corequery 0.30.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/dist/assets/{About-DpFLDTV_.js → About-DGmg1TM-.js} +1 -1
- package/web/dist/assets/{AdminControls-BMTTV4kR.js → AdminControls-T05hoDB-.js} +1 -1
- package/web/dist/assets/{Alert-k_U4L_j3.js → Alert-DfpdtaOB.js} +1 -1
- package/web/dist/assets/Debug-Q4Vy4lZ_.js +1 -0
- package/web/dist/assets/{Home-LcK9TehM.js → Home-C6T20k8G.js} +1 -1
- package/web/dist/assets/{Line-ZicduquS.js → Line-6nd7KD0E.js} +1 -1
- package/web/dist/assets/NotFound-BozS7u6u.js +1 -0
- package/web/dist/assets/{NotFoundPage-DLkgQE3z.js → NotFoundPage-UhXr10a9.js} +1 -1
- package/web/dist/assets/{Picker-ByWHXE97.js → Picker-D-TjVZAI.js} +1 -1
- package/web/dist/assets/{Service-CqfnDpff.js → Service-CkHxNopv.js} +1 -1
- package/web/dist/assets/{Settings-1Z6FXsgC.js → Settings-Ccrmh7u8.js} +1 -1
- package/web/dist/assets/{SimpleMobileHeaderContent-DnaUyjiU.js → SimpleMobileHeaderContent-Ja68XAJd.js} +1 -1
- package/web/dist/assets/{Status-DIIRyqgr.js → Status-CO5w5a1E.js} +1 -1
- package/web/dist/assets/Stop-BWZOcpvU.js +1 -0
- package/web/dist/assets/{ZenMode-qKwx-pZt.js → ZenMode-C3S7FmYt.js} +1 -1
- package/web/dist/assets/index-CrhwkQ9k.js +2 -0
- package/web/dist/assets/{index-BQNbqGv2.css → index-DJPX60jz.css} +1 -1
- package/web/dist/assets/{linear-CMwrWzQJ.js → linear-CtNhjlrM.js} +1 -1
- package/web/dist/assets/{use-simple-headers-Bihzijd5.js → use-simple-headers-Cbv0t_De.js} +1 -1
- package/web/dist/index.html +2 -2
- package/web/dist/reset.html +8 -4
- package/web/dist/sw.js +1 -1
- package/web/dist/assets/Debug-DGqHdl31.js +0 -1
- package/web/dist/assets/NotFound-zNBih-TR.js +0 -1
- package/web/dist/assets/Stop-DKWaUN6o.js +0 -1
- package/web/dist/assets/index-CE8NAPhv.js +0 -2
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{d as r}from"./use-api-BJomuYg6.js";import{n as i}from"./use-foundational-data-BEVQRFj9.js";import{n as a,v as o}from"./index-
|
|
1
|
+
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{d as r}from"./use-api-BJomuYg6.js";import{n as i}from"./use-foundational-data-BEVQRFj9.js";import{n as a,v as o}from"./index-CrhwkQ9k.js";import{t as s}from"./Placeholder-BRnxNmKm.js";import{n as c,t as l}from"./Markdown-D5fQv556.js";import{t as u}from"./Page-BMcxP_9m.js";import{t as d}from"./use-simple-headers-Cbv0t_De.js";import{t as f}from"./Divider-lz6Cf6K8.js";import{t as p}from"./Alert-DfpdtaOB.js";function m(){let{appName:m}=o(),{foda:h}=i(),{data:g,loading:_,error:v}=a(r,{}),y=d({title:`About ${m}`});return _?t(u,{...y,children:t(n,{class:`px-4 py-8`,children:[t(s,{class:`w-[30%] text-xl`}),t(`div`,{class:`h-8`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-[60%] text-md`}),t(`div`,{class:`h-12`}),t(s,{class:`w-[40%] text-lg`}),t(`div`,{class:`h-8`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-[20%] text-md`}),t(`div`,{class:`h-12`}),t(s,{class:`w-[50%] text-lg`}),t(`div`,{class:`h-8`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-[80%] text-md`})]})}):v!=null||g==null?t(u,{...y,children:t(n,{class:`px-4 py-8`,children:t(p,{type:`error`,children:t(e,{children:`An error occurred while loading the about page.`})})})}):t(u,{...y,children:t(n,{class:`px-4 py-8 gap-12`,children:[t(l,{markdown:g.primaryMarkdown}),t(n,{class:`gap-8`,children:[t(f,{}),t(e,{as:`p`,style:`small-weak`,children:t(c,{markdown:h.footerPrimaryMarkdown})})]})]})})}export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{t as r}from"./Page-BMcxP_9m.js";import{t as i}from"./use-simple-headers-
|
|
1
|
+
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{t as r}from"./Page-BMcxP_9m.js";import{t as i}from"./use-simple-headers-Cbv0t_De.js";function a(){return t(r,{...i({title:`Admin controls`}),children:t(n,{class:`px-4 py-8 gap-8`,children:t(e,{children:`Maybe the real admin controls were the friends we made along the way?`})})})}export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,l as t,o as n,s as r}from"./use-nav-exemptions-QtGbfEPT.js";import{l as i,r as a,s as o}from"./index-
|
|
1
|
+
import{c as e,l as t,o as n,s as r}from"./use-nav-exemptions-QtGbfEPT.js";import{l as i,r as a,s as o}from"./index-CrhwkQ9k.js";import{t as s}from"./MingcuteAlertLine-CdthHQmK.js";function c(e){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:t(`g`,{fill:`none`,fillRule:`evenodd`,children:[t(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),t(`path`,{fill:`currentColor`,d:`M21.192 5.465a1 1 0 0 1 0 1.414L9.95 18.122a1.1 1.1 0 0 1-1.556 0l-5.586-5.586a1 1 0 1 1 1.415-1.415l4.95 4.95L19.777 5.465a1 1 0 0 1 1.414 0Z`})]})})}function l(l){let u={info:o,error:i,warning:s,success:c}[l.type],d=l.icon===void 0?u:l.icon,f={info:`bg-soft-accent`,error:`bg-soft-error`,warning:`bg-soft-warning`,success:`bg-soft-success`}[l.type],p={info:[`[--color-fg:var(--color-accent-text)]`,`[--color-fg-strong:var(--color-accent-text)]`,`[--color-fg-weak:var(--color-accent-text)]`],error:[`[--color-fg:var(--color-error-text)]`,`[--color-fg-strong:var(--color-error-text)]`,`[--color-fg-weak:var(--color-error-text)]`],warning:[`[--color-fg:var(--color-warning-text)]`,`[--color-fg-strong:var(--color-warning-text)]`,`[--color-fg-weak:var(--color-warning-text)]`],success:[`[--color-fg:var(--color-success-text)]`,`[--color-fg-strong:var(--color-success-text)]`,`[--color-fg-weak:var(--color-success-text)]`]}[l.type];return t(r,{class:e(l.class,f,p,`px-4 py-4.5 rounded-sm gap-2 items-start`,{"grid-cols-[auto_1fr]":d!=null}),children:[d!=null&&t(a,{heightRem:n(`text-md`),children:t(d,{class:`text-fg text-icon-lg`})}),l.children]})}export{l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,h as t,i as n,l as r,o as i,r as a,s as o,v as s}from"./use-nav-exemptions-QtGbfEPT.js";import{i as c}from"./use-api-BJomuYg6.js";import{n as l}from"./use-foundational-data-BEVQRFj9.js";import{_ as u,f as d,g as f,m as p,n as m,o as h,r as g,t as _,v}from"./index-CrhwkQ9k.js";import{t as y}from"./Placeholder-BRnxNmKm.js";import{t as b}from"./Page-BMcxP_9m.js";import{t as x}from"./use-simple-headers-Cbv0t_De.js";import{t as S}from"./Divider-lz6Cf6K8.js";import{t as C}from"./Alert-DfpdtaOB.js";function w(t){let i={info:`bg-soft-accent`,error:`bg-soft-error`,warning:`bg-soft-warning`,success:`bg-soft-success`}[t.type],a={info:`[--color-fg:var(--color-accent-text)]`,error:`[--color-fg:var(--color-error-text)]`,warning:`[--color-fg:var(--color-warning-text)]`,success:`[--color-fg:var(--color-success-text)]`}[t.type];return r(o,{class:e(t.class,i,a,`px-2 py-1.5 rounded-full`),children:r(n,{style:`small`,children:t.text})})}function T(t){return r(p,{class:e(t.class,`gap-x-2 gap-y-3`),wrap:!0,children:[r(n,{style:`strong`,children:t.header}),t.loading&&r(y,{class:`w-[20%] text-md`}),!t.loading&&t.pillContent!=null&&r(g,{heightRem:i(`text-md`),children:r(w,{type:t.pillContent.type,text:t.pillContent.text})})]})}function E(e){return r(T,{class:e.class,header:e.header,pillContent:D(e.currentValue,e.latestValue),loading:e.loading})}function D(e,t){return t==null?null:{text:e===t?`Up to date`:`Outdated`,type:e===t?`success`:`error`}}function O(e){return e.loading?r(o,{class:e.class,children:r(y,{class:`w-[40%] text-md`})}):e.value==null?null:r(n,{class:e.class,children:[e.prefix,`: `,e.value]})}function k(e){return e==null?null:e.length<32||!/^[0-9a-f]+$/.test(e)?e:e.slice(0,7)}function A(t){let{isUpdateAvailable:a,update:o}=h();return a?r(d,{theme:`accent`,text:`Refresh & update`,class:`self-start`,icon:f,onClick:()=>void o()}):r(p,{class:e(t.class,`gap-2`),children:[r(g,{heightRem:i(`text-md`),children:r(u,{})}),r(n,{class:`min-w-0 shrink`,children:`Waiting for service worker to install update...`})]})}function j(e){let{isHotReloadingEnabled:t}=_();return r(t?M:N,{...e})}function M(t){return r(a,{class:e(t.class,`gap-6`),children:[r(T,{header:`App version`,pillContent:{text:`Development`,type:`info`},loading:!1}),r(n,{children:`All frontend code is being served with hot-reloading enabled, not through the PWA. (The below values are meaningless.)`}),r(P,{}),r(O,{prefix:`Latest version`,value:t.latestVersion?.slice(0,8)??null,loading:t.loading})]})}function N(t){let{frontendVersion:n}=v(),i=!t.loading&&t.latestVersion!=null&&t.latestVersion!==n;return r(a,{class:e(t.class,`gap-6`),children:[r(E,{header:`App version`,currentValue:n,latestValue:t.latestVersion,loading:t.loading}),r(P,{}),r(O,{prefix:`Latest version`,value:k(t.latestVersion),loading:t.loading}),i&&r(A,{})]})}function P(){let{frontendVersion:e,versionsOnLastUpdate:t}=v();return r(a,{class:`gap-4`,children:[r(n,{children:[`Current version: `,k(e)]}),r(a,{class:`gap-3`,children:[r(n,{style:`small-weak`,children:[`Server version: `,k(t.serverVersion)]}),r(n,{style:`small-weak`,children:[`CoreQuery version: `,t.corequeryPackageVersion]})]})]})}function F(t){let{foda:i}=l();return r(a,{class:e(t.class,`gap-6`),children:[r(E,{header:`Foundational data`,currentValue:i.hash,latestValue:t.latestVersion,loading:t.loading}),r(a,{class:`gap-4`,children:[r(n,{children:[`Current version: `,k(i.hash)]}),r(n,{style:`small-weak`,children:[`Server version: `,k(i.serverVersion)]})]}),r(O,{prefix:`Latest version`,value:k(t.latestVersion),loading:t.loading})]})}function I(t){return r(a,{class:e(t.class,`gap-6`),children:[r(n,{style:`strong`,children:`Server`}),t.error!=null&&r(C,{type:`error`,children:r(n,{children:`An error occurred while fetching the latest version info from the server.`})}),r(a,{class:`gap-4 empty:hidden`,children:[r(O,{prefix:`Server version`,value:k(t.serverVersion),loading:t.loading}),r(O,{prefix:`CoreQuery version`,value:t.corequeryPackageVersion,loading:t.loading})]})]})}function L(e){return e<2e3?`${e.toFixed(0)} bytes`:e<2e6?`${(e/1e3).toFixed(2)} KB`:e<2e9?`${(e/1e6).toFixed(2)} MB`:e<2e12?`${(e/1e9).toFixed(2)} GB`:`${(e/0xe8d4a51000).toFixed(2)} TB`}function R(){let[e,i]=s(null),[o,c]=s(!0),[l,u]=s(!1);t(()=>{async function e(){c(!0),u(!1);try{let e=await navigator.storage.estimate();i(e)}catch(e){console.warn(`An error occurred while retrieving storage metrics.`,e),u(!0)}finally{c(!1)}}e()},[]);let d=e?.usage==null?null:L(e.usage),f=e?.quota==null?null:L(e.quota);return r(a,{class:`gap-6`,children:[r(n,{style:`strong`,children:`On-device storage`}),l&&r(C,{type:`error`,children:r(n,{children:`An error occurred while retrieving storage metrics.`})}),r(a,{class:`gap-4 empty:hidden`,children:[r(O,{prefix:`Storage used`,value:d,loading:o}),r(O,{prefix:`Storage quota`,value:f,loading:o})]})]})}function z(){let{data:e,loading:t,error:i}=m(c,{});return r(b,{...x({title:`Developer info`}),children:r(a,{class:`px-4 py-8 gap-8`,children:[i!=null&&r(C,{type:`error`,children:r(n,{children:`An error occurred while fetching the latest version info from the server.`})}),r(j,{latestVersion:e?.frontendVersion??null,loading:t}),r(S,{}),r(F,{latestVersion:e?.foundationalDataHash??null,loading:t}),r(S,{}),r(I,{serverVersion:e?.serverVersion??null,corequeryPackageVersion:e?.corequeryPackageVersion??null,loading:t,error:i}),r(S,{}),r(R,{}),r(S,{})]})})}export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e,r as t}from"./use-nav-exemptions-QtGbfEPT.js";import{n}from"./use-foundational-data-BEVQRFj9.js";import{t as r}from"./Markdown-D5fQv556.js";import{t as i}from"./Page-BMcxP_9m.js";import{t as a}from"./use-simple-headers-
|
|
1
|
+
import{l as e,r as t}from"./use-nav-exemptions-QtGbfEPT.js";import{n}from"./use-foundational-data-BEVQRFj9.js";import{t as r}from"./Markdown-D5fQv556.js";import{t as i}from"./Page-BMcxP_9m.js";import{t as a}from"./use-simple-headers-Cbv0t_De.js";function o(){let{foda:o}=n();return e(i,{...a({title:`Home`}),children:e(t,{class:`px-4 py-8 gap-12`,children:e(r,{markdown:o.landingPage.primaryMarkdown})})})}export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,c as t,i as n,l as r,m as i,r as a,s as o,v as s,y as c}from"./use-nav-exemptions-QtGbfEPT.js";import{l}from"./use-api-BJomuYg6.js";import{n as u}from"./use-foundational-data-BEVQRFj9.js";import{t as d}from"./scope-B-e4l8Dr.js";import{i as f,n as p,o as m,r as h,t as g}from"./linear-
|
|
1
|
+
import{_ as e,c as t,i as n,l as r,m as i,r as a,s as o,v as s,y as c}from"./use-nav-exemptions-QtGbfEPT.js";import{l}from"./use-api-BJomuYg6.js";import{n as u}from"./use-foundational-data-BEVQRFj9.js";import{t as d}from"./scope-B-e4l8Dr.js";import{i as f,n as p,o as m,r as h,t as g}from"./linear-CtNhjlrM.js";import{t as _}from"./LinkText-sdmJpshg.js";import{a as v,d as y,v as b}from"./index-CrhwkQ9k.js";import{t as x}from"./Page-BMcxP_9m.js";import{t as S}from"./use-simple-headers-Cbv0t_De.js";import{t as C}from"./Alert-DfpdtaOB.js";import{t as w}from"./NotFoundPage-UhXr10a9.js";import{t as T}from"./Picker-D-TjVZAI.js";function E(e){throw Error(`Unexpected value: ${String(e)}`)}function D(i){let{foda:o}=u(),{appName:s}=b(),c=e(()=>i.fallbackStopList.map(e=>o.stops.require(e)).sort((e,t)=>e.name.localeCompare(t.name)),[o.stops,i.fallbackStopList]);return r(a,{class:t(i.class,`gap-6`),children:[r(n,{style:`subtitle`,children:`Stops`}),r(C,{type:`info`,children:r(a,{class:`gap-6`,children:[r(n,{children:[`A neat little diagram is also available for this line, but it's of a new type, and so requires a newer version of `,s,` to be able to view.`,` `]}),r(n,{style:`strong`,children:r(_,{href:`/debug`,children:`Help me update`})})]})}),r(`ul`,{class:`flex-col flex list-disc list-inside gap-4`,children:c.map(e=>r(n,{children:r(`li`,{children:r(_,{href:`/stop/${e.urlPath}`,children:e.name})})}))})]})}function O(e,t){return t.map(t=>{let i=e.stops.require(t.stopId),a=`/stop/${i.urlPath}`;if(t.type===`regular`)return{content:r(n,{style:`strong`,children:r(_,{href:a,style:`subtle`,children:i.name})})};if(t.type===`always-express`)return{content:r(n,{style:`small-weak`,children:r(_,{href:a,style:`subtle`,children:[`Skips `,i.name]})}),drawMark:!1};E(t.type)})}function k(t){let{foda:n}=u(),i=e(()=>({type:`linear`,stops:O(n,t.diagram.stops)}),[n,t.diagram.stops]);return r(g,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}var A=10,j=15,M=class extends h{_onRenderStructure(){let{commonStops:e,branchAStops:t,branchBStops:n}=this.data.structure,{x:r,y:i}=this._measure();this._renderSection({stops:e,x:r.common,yLevels:i.common.all,terminatesAtTop:!0,terminatesAtBottom:!1,notchSide:`right`}),this._renderSection({stops:t,x:r.branchA,yLevels:i.branchA.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`left`}),this._renderSection({stops:n,x:r.branchB,yLevels:i.branchB.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`right`}),this._drawLine(e=>{e.moveTo(r.common,i.common.bottom),e.lineTo(r.common,i.common.bottom+A),e.bezierCurveTo(r.common,i.common.bottom+j+A,r.branchA,i.branches.top-j,r.branchA,i.branches.top),e.lineTo(r.branchA,i.branchA.top),e.moveTo(r.common,i.common.bottom+A),e.bezierCurveTo(r.common,i.common.bottom+j+A,r.branchB,i.branches.top-j,r.branchB,i.branches.top),e.lineTo(r.branchB,i.branchA.top)})}_measure(){let{commonStops:e,branchAStops:t,branchBStops:n}=this.data.structure,r=this._extractYLevels(e,N),i=d(r[0]),a=d(r[r.length-1]),o=this._extractYLevels(t,P),s=d(o[0]),c=d(o[o.length-1]),l=this._extractYLevels(n,F),u=d(l[0]),f=d(l[l.length-1]);return{x:{common:this.width/2,branchA:8,branchB:this.width-8},y:{common:{all:r,top:i,bottom:a},branchA:{all:o,top:s,bottom:c},branchB:{all:l,top:u,bottom:f},branches:{top:Math.min(s,u),bottom:Math.max(c,f)}}}}},N=`_diagram-common-stops`,P=`_diagram-branch-a-stops`,F=`_diagram-branch-b-stops`;function I(n){let{settings:i}=y(),s=e(()=>({structure:n.structure,lightThemeColorHexCode:n.lightThemeColorHexCode,darkThemeColorHexCode:n.darkThemeColorHexCode,colorTheme:i.theme}),[n.darkThemeColorHexCode,n.lightThemeColorHexCode,n.structure,i.theme]),l=c((e,t)=>new M(e,t),[]);return s.structure.commonStops.length<1||s.structure.branchAStops.length<1||s.structure.branchBStops.length<1?r(p,{}):r(o,{class:t(n.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-y-8 gap-x-4`),children:[r(f,{class:`w-12 col-2 row-span-full`,createController:l,data:s}),r(a,{class:t(`gap-6 col-3 row-1 -ml-4`,N),xAlign:`left`,children:n.structure.commonStops.map(e=>r(o,{children:e.content}))}),r(a,{class:t(`gap-6 col-1 row-2`,P),xAlign:`right`,children:n.structure.branchAStops.map(e=>r(o,{children:e.content}))}),r(a,{class:t(`gap-6 col-3 row-2`,F),xAlign:`left`,children:n.structure.branchBStops.map(e=>r(o,{children:e.content}))})]})}function L(t){let{foda:n}=u(),i=e(()=>({type:`branch`,commonStops:O(n,t.diagram.commonStops),branchAStops:O(n,t.diagram.branchAStops),branchBStops:O(n,t.diagram.branchBStops)}),[n,t.diagram]);return r(I,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}var R=10,z=15,B=24,V=1,H=class extends h{_onRenderStructure(){let{loopLeftStops:e,loopRightStops:t,mainStops:n}=this.data.structure,{x:r,y:i}=this._measure();if(e.length>0?this._renderSection({stops:e,x:r.loopLeft,yLevels:i.loopLeft.all,terminatesAtTop:!1,terminatesAtBottom:!1,notchSide:`left`}):this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.top-V),e.lineTo(r.loopLeft,i.loopLeft.bottom+V)}),t.length>0?this._renderSection({stops:t,x:r.loopRight,yLevels:i.loopRight.all,terminatesAtTop:!1,terminatesAtBottom:!1,notchSide:`right`}):this._drawLine(e=>{e.moveTo(r.loopRight,i.loopRight.top-V),e.lineTo(r.loopRight,i.loopRight.bottom+V)}),n.length>0){let e=d(i.main.top);this._renderSection({stops:n,x:r.main,yLevels:i.main.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`right`}),this._drawLine(t=>{t.moveTo(r.main,e),t.lineTo(r.main,e-R),t.bezierCurveTo(r.main,e-z-R,r.loopLeft,i.loop.bottom+z,r.loopLeft,i.loop.bottom),t.lineTo(r.loopLeft,i.loopLeft.bottom),t.moveTo(r.main,e-R),t.bezierCurveTo(r.main,e-z-R,r.loopRight,i.loop.bottom+z,r.loopRight,i.loop.bottom),t.lineTo(r.loopRight,i.loopRight.bottom)}),this.ctx.stroke()}else this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.bottom),e.lineTo(r.loopLeft,i.loop.bottom),e.bezierCurveTo(r.loopLeft,i.loop.bottom+B,r.loopRight,i.loop.bottom+B,r.loopRight,i.loop.bottom),e.lineTo(r.loopRight,i.loopRight.bottom)});this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.top),e.lineTo(r.loopLeft,i.loop.top),e.bezierCurveTo(r.loopLeft,i.loop.top-B,r.loopRight,i.loop.top-B,r.loopRight,i.loop.top),e.lineTo(r.loopRight,i.loopRight.top)})}_measure(){let{loopLeftStops:e,loopRightStops:t,mainStops:n}=this.data.structure,r=this._extractYLevels(e,W),i=this._extractYLevels(t,G),a=this._extractYLevels(n,U),o=r[0],s=i[0],c=r[r.length-1],l=i[i.length-1],u=d(o??s),f=d(s??o),p=d(c??l),m=d(l??c);return{x:{loopLeft:8,loopRight:this.width-8,main:this.width/2},y:{loopLeft:{all:r,top:u,bottom:p},loopRight:{all:i,top:f,bottom:m},main:{all:a,top:a[0]??null,bottom:a[a.length-1]??null},loop:{top:Math.min(u,f),bottom:Math.max(p,m)}}}}},U=`_diagram-main-stops`,W=`_diagram-loop-left-stops`,G=`_diagram-loop-right-stops`;function K(n){let{settings:i}=y(),s=e(()=>({structure:n.structure,lightThemeColorHexCode:n.lightThemeColorHexCode,darkThemeColorHexCode:n.darkThemeColorHexCode,colorTheme:i.theme}),[n.darkThemeColorHexCode,n.lightThemeColorHexCode,n.structure,i.theme]),l=c((e,t)=>new H(e,t),[]),{loopLeftStops:u,loopRightStops:d}=s.structure;return u.length+d.length<1?r(p,{}):r(o,{class:t(n.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-x-4`),children:[r(f,{class:`w-12 col-2 row-span-full`,createController:l,data:s}),r(a,{class:t(`gap-6 col-1 row-1 py-4`,W),xAlign:`right`,yAlign:`center`,children:n.structure.loopLeftStops.map(e=>r(o,{children:e.content}))}),r(a,{class:t(`gap-6 col-3 row-1 py-4`,G),xAlign:`left`,yAlign:`center`,children:n.structure.loopRightStops.map(e=>r(o,{children:e.content}))}),r(a,{class:t(`gap-6 col-3 row-2 -ml-4`,U,{"pt-4":n.structure.mainStops.length>0}),xAlign:`left`,children:n.structure.mainStops.map(e=>r(o,{children:e.content}))})]})}function q(t){let{foda:n}=u(),i=e(()=>({type:`loop`,loopLeftStops:O(n,t.diagram.loopLeftStops),loopRightStops:O(n,t.diagram.loopRightStops),mainStops:O(n,t.diagram.mainStops)}),[n,t.diagram]);return r(K,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}function J(e){return r(o,{class:t(e.class,`bg-bg-raised px-4 py-8 justify-center rounded-sm border border-soft-border`),children:r(Y,{diagram:e.diagram})})}function Y(e){if(e.diagram.type===`linear`)return r(k,{diagram:e.diagram});if(e.diagram.type===`branch`)return r(L,{diagram:e.diagram});if(e.diagram.type===`loop`)return r(q,{diagram:e.diagram});E(e.diagram)}function X(e){let i=e.diagram.entries.filter(e=>l(e.type));return i.length<e.diagram.entries.length?r(D,{fallbackStopList:e.diagram.fallbackStopList}):r(a,{class:t(e.class,`gap-6`),children:[r(n,{style:`subtitle`,children:`Diagram`}),i.length===1?r(J,{diagram:d(i[0])}):r(Z,{entries:i},i.length)]})}function Z(t){let[n,i]=s(0),o=e(()=>t.entries.map((e,t)=>({value:t.toFixed(),label:e.name??`Route ${t+1}`})),[t.entries]);return r(a,{class:`gap-4`,children:[r(T,{class:`self-start`,value:n.toFixed(),options:o,onChange:e=>{i(m(e))}}),r(J,{diagram:d(t.entries[n])})]})}function Q(){let{params:{id:t}}=i(),{foda:n}=u(),a=e(()=>n.lines.getByUrlPath(t??``),[n.lines,t]);return a==null?r(w,{afterConfirming:`foundational-data-version`}):r($,{line:a},a.id)}function $(e){let{formatLine:t}=v();return r(x,{...S({title:t(e.line.name),back:{href:`/`,text:`Home`}}),children:r(a,{class:`px-4 py-8 gap-8`,children:e.line.diagram.entries.length>0&&r(X,{diagram:e.line.diagram})})})}export{Q as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e}from"./use-nav-exemptions-QtGbfEPT.js";import{t}from"./NotFoundPage-UhXr10a9.js";function n(){return e(t,{afterConfirming:`frontend-version`})}export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,i as t,l as n,r,v as i}from"./use-nav-exemptions-QtGbfEPT.js";import{i as a}from"./use-api-BJomuYg6.js";import{n as o}from"./use-foundational-data-BEVQRFj9.js";import{_ as s,c,f as l,n as u,o as d,t as f,v as p}from"./index-
|
|
1
|
+
import{h as e,i as t,l as n,r,v as i}from"./use-nav-exemptions-QtGbfEPT.js";import{i as a}from"./use-api-BJomuYg6.js";import{n as o}from"./use-foundational-data-BEVQRFj9.js";import{_ as s,c,f as l,n as u,o as d,t as f,v as p}from"./index-CrhwkQ9k.js";import{t as m}from"./Page-BMcxP_9m.js";function h(e){let t=u(a,{}),n=g(e===`frontend-version`,t),r=_(e===`foundational-data-version`,t);return t.loading||n||r}function g(t,n){let{isHotReloadingEnabled:r}=f(),{frontendVersion:i}=p(),{unregister:a}=d(),o=t&&!r&&!n.loading&&n.error==null&&n.data!=null&&n.data.frontendVersion!==i;return e(()=>{if(!o)return;async function e(){await a(),window.location.reload()}e()},[o,a]),o}function _(t,n){let{foda:r,forceFodaUpdate:a}=o(),[s,c]=i(!1),[l,u]=i(!1),d=t&&!n.loading&&n.error==null&&n.data!=null&&n.data.foundationalDataHash!==r.hash;return e(()=>{if(!d)return;async function e(){u(!0);try{await a()}catch{console.warn(`Foundational data is outdated, but force update failed.`)}finally{c(!0),u(!1)}}e()},[d,a]),d&&!s||l}function v({afterConfirming:e}){return h(e)?n(m,{mobileHeader:null,desktopHeader:null,children:n(r,{xAlign:`center`,yAlign:`center`,children:n(s,{})})}):n(m,{mobileHeader:null,desktopHeader:null,children:n(r,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[n(t,{style:`title`,align:`center`,children:`Page not found`}),n(t,{align:`center`,children:`This page doesn't exist, at least not anymore!`}),n(l,{href:`/`,text:`Go home`,icon:c})]})})}export{v as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,i as t,l as n}from"./use-nav-exemptions-QtGbfEPT.js";import{h as r,m as i}from"./index-
|
|
1
|
+
import{c as e,i as t,l as n}from"./use-nav-exemptions-QtGbfEPT.js";import{h as r,m as i}from"./index-CrhwkQ9k.js";var a=[`bg-transparent`,`group-hover:bg-soft-hover`,`group-active:bg-soft-active`],o=[`bg-accent`,`group-hover:bg-accent-hover`,`group-active:bg-accent-active`],s=[`[--color-fg:var(--color-on-accent)]`,`[--color-fg-strong:var(--color-on-accent)]`,`[--color-fg-weak:var(--color-on-accent)]`],c=e(a),l=e(o),u=e(s);function d(t){return n(i,{class:e(t.class,`overflow-hidden rounded-sm border border-accent max-w-full`),children:t.options.map((e,r)=>n(f,{class:`shrink`,label:e.label,active:e.value===t.value,last:r===t.options.length-1,onClick:()=>t.onChange(e.value)},e.value))})}function f(a){return n(r,{class:e(a.class,`relative group min-h-8`,{[u]:a.active,"border-r border-accent":!a.last}),onClick:a.onClick,children:[n(`div`,{class:e(`absolute z-0 top-0 bottom-0 left-0 right-0`,{[c]:!a.active,[l]:a.active})}),n(i,{class:`relative z-1 px-6 py-2 min-w-0`,xAlign:`center`,yAlign:`center`,children:n(t,{class:`shrink min-w-min`,align:`center`,children:a.label})})]})}export{d as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,c as t,i as n,l as r,m as i,r as a,s as o}from"./use-nav-exemptions-QtGbfEPT.js";import{o as s}from"./use-api-BJomuYg6.js";import{n as c}from"./use-foundational-data-BEVQRFj9.js";import{a as l,t as u}from"./linear-
|
|
1
|
+
import{_ as e,c as t,i as n,l as r,m as i,r as a,s as o}from"./use-nav-exemptions-QtGbfEPT.js";import{o as s}from"./use-api-BJomuYg6.js";import{n as c}from"./use-foundational-data-BEVQRFj9.js";import{a as l,t as u}from"./linear-CtNhjlrM.js";import{t as d}from"./LinkText-sdmJpshg.js";import{_ as f,c as p,f as m,m as h}from"./index-CrhwkQ9k.js";import{t as g}from"./Page-BMcxP_9m.js";import{t as _}from"./use-simple-headers-Cbv0t_De.js";import{t as v}from"./use-foda-synced-query-BM-OPAql.js";function y(n){let{foda:i}=c(),a=e(()=>({type:`linear`,stops:b(i,n.service.movements)}),[i,n.service.movements]);return r(o,{class:t(n.class),children:r(u,{class:n.class,structure:a,lightThemeColorHexCode:n.service.color?.lightModeHexCode??null,darkThemeColorHexCode:n.service.color?.darkModeHexCode??null})})}function b(e,t){return t.map(t=>{let i=e.stops.require(t.stopId),a=`/stop/${i.urlPath}`,o=t.arrivalTime==null?null:new Date(Date.parse(t.arrivalTime)).toLocaleString(),s=t.departureTime==null?null:new Date(Date.parse(t.departureTime)).toLocaleString();if(o==null&&s==null)return{content:r(n,{style:`small-weak`,children:r(d,{href:a,style:`subtle`,children:[`Skips `,i.name]})}),drawMark:!1};let c=s??o;return{content:r(h,{class:`gap-2 min-w-0`,children:[r(n,{style:`strong`,children:r(d,{href:a,style:`subtle`,children:i.name})}),r(n,{children:`•`}),r(n,{class:`shrink min-w-0`,oneLine:!0,children:c})]})}})}function x(){let{params:{sourceId:e,intrasourceId:t},query:{from:n}}=i(),{data:a,loading:o,error:c}=v(s,{sourceId:e??``,intrasourceId:t??``}),u=l(n??``);return o?r(C,{}):c!=null||a==null||u==null||u<0||a.service!=null&&u>a.service.movements.length-1?r(w,{}):a.service==null?r(T,{}):r(S,{service:a.service,movementIndex:u},`${e}/${t}`)}function S(e){return r(g,{..._({title:`${e.service.primaryDestinationText} service`,back:{href:`/`,text:`Home`}}),children:r(a,{class:`px-4 py-8 gap-8`,children:[r(y,{service:e.service}),r(n,{style:`small-narrow`,children:`(Real-time data has not been provided for all stops. Times marked with * are estimates, extrapolated from the available data.)`})]})})}function C(){return r(g,{..._({title:`Loading...`,back:{href:`/`,text:`Home`}}),children:r(f,{})})}function w(){return r(g,{..._({title:`Error`,back:{href:`/`,text:`Home`}}),children:r(n,{children:`Failed to load service.`})})}function T(){return r(g,{mobileHeader:null,desktopHeader:null,children:r(a,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[r(n,{style:`title`,align:`center`,children:`Service not found`}),r(n,{align:`center`,children:`This can happen if the service was cancelled, or the timetable changed since this link was generated. You might be able to find it again by searching for one of the stops it departed from.`}),r(m,{href:`/`,text:`Go home`,icon:p})]})})}export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{d as r,u as i}from"./index-
|
|
1
|
+
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{d as r,u as i}from"./index-CrhwkQ9k.js";import{t as a}from"./Page-BMcxP_9m.js";import{t as o}from"./use-simple-headers-Cbv0t_De.js";import{t as s}from"./Divider-lz6Cf6K8.js";import{t as c}from"./Picker-D-TjVZAI.js";var l={auto:`Auto`,light:`Light`,dark:`Dark`},u=i.map(e=>({value:e,label:l[e]}));function d(e){let{settings:n,updateSettings:i}=r();return t(c,{class:e.class,value:n.theme,options:u,onChange:e=>{i(t=>t.with({theme:e}))}})}function f(){return t(a,{...o({title:`Settings`}),children:t(n,{class:`px-4 py-8 gap-8`,children:[t(n,{class:`gap-6`,children:[t(e,{style:`strong`,children:`Theme`}),t(e,{children:`"Auto" means the colour theme should follow your device's/browser's settings.`}),t(d,{class:`self-start`})]}),t(s,{}),t(e,{style:`small-weak`,children:`(Settings are saved to your device's/browser's local storage.)`})]})})}export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,i as t,l as n}from"./use-nav-exemptions-QtGbfEPT.js";import{f as r,m as i}from"./index-
|
|
1
|
+
import{c as e,i as t,l as n}from"./use-nav-exemptions-QtGbfEPT.js";import{f as r,m as i}from"./index-CrhwkQ9k.js";function a(e){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:n(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M14.657 17.657L9 12l5.657-5.657`})})}function o(o){return n(i,{class:e(o.class,`gap-2`,{"px-4":o.backHref==null,"pl-2 pr-4":o.backHref!=null}),yAlign:`center`,children:[o.backHref!=null&&n(r,{href:o.backHref,icon:a,theme:`hover`}),n(t,{style:`title`,children:o.title})]})}export{a as n,o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{t as r}from"./Page-BMcxP_9m.js";import{t as i}from"./use-simple-headers-
|
|
1
|
+
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{t as r}from"./Page-BMcxP_9m.js";import{t as i}from"./use-simple-headers-Cbv0t_De.js";function a(){return t(r,{...i({title:`Status`}),children:t(n,{class:`px-4 py-8 gap-8`,children:t(e,{children:`LGTM`})})})}export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,c as t,i as n,l as r,m as i,n as a,o,r as s,s as c}from"./use-nav-exemptions-QtGbfEPT.js";import{u as l}from"./use-api-BJomuYg6.js";import{n as u}from"./use-foundational-data-BEVQRFj9.js";import{_ as d,a as f,f as p,i as m,m as h,p as g,r as _}from"./index-CrhwkQ9k.js";import{t as v}from"./Page-BMcxP_9m.js";import{n as y,t as b}from"./SimpleMobileHeaderContent-Ja68XAJd.js";import{t as x}from"./NotFoundPage-UhXr10a9.js";import{t as S}from"./ErrorMessage-CCAB4vXB.js";import{t as C}from"./use-foda-synced-query-BM-OPAql.js";function w(e){return{hideMobileHeaderWhenScrolledToTop:!0,mobileHeader:r(b,{title:e.title,backHref:e.back?.href??null}),agnosticHeader:r(c,{class:`not-desktop:bg-bg-navbar not-desktop:border-b not-desktop:border-soft-border`,children:r(a,{children:r(c,{class:`not-desktop:px-4 desktop:mx-4 desktop:border-b desktop:border-soft-border`,children:r(s,{class:t(`gap-8`,{"pt-4 pb-6 desktop:pt-6":e.back!=null,"py-6 desktop:pt-8":e.back==null,"desktop:pb-4":e.additionalContent==null}),children:[e.back!=null&&r(p,{text:e.back.text,href:e.back.href,icon:y,class:`self-start`,layout:`narrow-icon`}),r(s,{class:`gap-4`,children:[r(n,{style:`megatitle`,children:e.title}),e.additionalContent]})]})})})})}}function T(e){return r(h,{class:t(e.class),children:r(n,{style:`strong`,dynamicColor:e.serviceColor,children:e.time})})}var E=3.5;function D(e){return r(s,{class:t(e.class,`h-14 min-w-0`),yAlign:`space-between`,children:[r(h,{xAlign:`space-between`,class:`gap-2 `,children:[r(h,{yAlign:`bottom`,class:`gap-1 shrink min-w-0`,children:[r(n,{style:`strong`,dynamicColor:e.departure.color,children:e.departure.primaryDestinationText}),r(n,{style:`small-narrow`,class:`shrink min-w-0`,dynamicColor:e.departure.color,oneLine:!0,children:`via Train Tracks`})]}),r(T,{time:e.departure.movement.time,formerTime:e.departure.movement.formerTime,serviceColor:e.departure.color})]}),r(h,{xAlign:`space-between`,yAlign:`bottom`,children:[r(s,{class:`gap-3 min-w-0 shrink`,children:[r(n,{style:`small-narrow`,oneLine:!0,children:`The stopping pattern goes here`}),r(h,{class:`gap-1`,children:[r(n,{style:`small-narrow-strong-success`,children:`Solid`}),r(n,{style:`small-narrow`,children:`•`}),r(n,{style:`small-narrow`,class:`shrink min-w-0`,oneLine:!0,children:`And then this row shows all sorts of stuff`})]})]}),r(s,{yAlign:`space-between`,class:`border-2 px-1.5 py-1 border-soft-border rounded-sm -mb-0.5 h-8.5`,children:[r(n,{style:`tiny-narrow`,align:`center`,children:`Platform`}),r(n,{style:`strong`,align:`center`,children:`X`})]})]})]})}function O(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9.343 6.343L15 12l-5.657 5.657`})})}var k=E+2;function A(e){return r(g,{class:t(e.class),href:j(e.departure),children:r(c,{class:`grid-cols-[1fr_auto] p-4 items-center pr-2 gap-2`,children:[r(D,{departure:e.departure}),r(O,{class:`text-icon-lg text-fg`})]})})}function j(e){return`/service/${encodeURIComponent(e.sourceId)}/${encodeURIComponent(e.intrasourceId)}?from=${encodeURIComponent(e.movement.index.toString())}`}function M(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M11 20H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4H4m12-7v2M8 4v2m12.121 9.879L18 18m0 0l-2.121 2.121M18 18l-2.121-2.121M18 18l2.121 2.121`})})}function N(e){let{pluralServicesTerm:n}=f();return e.loading?r(P,{class:e.class,queryCount:e.queryCount,centerContent:!0,children:r(d,{})}):e.hadError?r(P,{class:t(e.class,`gap-2`),queryCount:e.queryCount,centerContent:!0,children:r(S,{text:`An error occurred while retrieving departures`})}):e.departures.length===0?r(P,{class:e.class,queryCount:e.queryCount,centerContent:!0,children:r(S,{text:`No ${n} scheduled`,icon:M})}):r(P,{class:e.class,queryCount:e.queryCount,children:e.departures.map((t,n)=>r(c,{class:`relative`,children:[r(A,{departure:t}),n<e.queryCount-1&&r(`hr`,{class:`border-soft-border absolute bottom-0 left-0 right-0 mx-4`})]},F(t)))})}function P(e){let t=e.centerContent??!1;return r(s,{class:e.class,xAlign:t?`center`:`stretch`,yAlign:t?`center`:`top`,dynamicMinHeightRem:k*e.queryCount,children:e.children})}function F(e){return`${e.sourceId}/${e.intrasourceId}/${e.movement.index}`}function I(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m4 20l5-5m0 0l3.956 3.956a1 1 0 0 0 1.626-.314l2.255-5.261a1 1 0 0 1 .548-.535l3.207-1.283a1 1 0 0 0 .336-1.635l-6.856-6.856a1 1 0 0 0-1.635.336l-1.283 3.207a1 1 0 0 1-.535.548L5.358 9.418a1 1 0 0 0-.314 1.626z`})})}function L(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9 20H4v-5m0 5l6.5-6.5M15 4h5v5m0-5l-6.5 6.5`})})}function R(e){return r(s,{class:t(e.class,`min-w-0`),children:[r(h,{xAlign:`space-between`,yAlign:`center`,class:`gap-2 not-desktop:pl-4 not-desktop:pr-2 not-desktop:pt-6 pb-2`,children:[r(n,{style:`subtitle`,class:`shrink min-w-0`,oneLine:!0,children:e.feed.query.title}),r(h,{class:`gap-2`,children:[r(p,{theme:`hover`,icon:I}),r(p,{theme:`hover`,icon:L})]})]}),r(N,{class:`bg-bg-raised desktop:border not-desktop:border-y border-soft-border desktop:rounded-lg overflow-hidden box-content`,departures:e.feed.departures,queryCount:e.feed.query.count,loading:e.feed.loading,hadError:e.feed.hadError})]})}function z(e){return r(c,{class:t(e.class,`desktop:grid-cols-[1fr_1fr] desktop:gap-6 desktop:px-4 desktop:py-8`),children:e.feeds.map((e,t)=>r(R,{feed:e,class:`not-desktop:last:-mb-px`},t))})}function B(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M17.657 9.343L12 15L6.343 9.343`})})}function V(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 7v5l3 3m6-3a9 9 0 1 1-18 0a9 9 0 0 1 18 0`})})}function H(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M19.5 4h-15a.5.5 0 0 0-.5.5v2.086a1 1 0 0 0 .293.707L10 13v5.691a.5.5 0 0 0 .276.447L14 21v-8l5.707-5.707A1 1 0 0 0 20 6.586V4.5a.5.5 0 0 0-.5-.5Z`})})}function U(e){return r(c,{class:`desktop:pt-6 desktop:px-4`,children:r(c,{class:t(e.class,`grid-cols-[1fr_1fr] desktop:max-w-150 bg-bg-raised divide-x divide-soft-border desktop:border not-desktop:border-b border-soft-border desktop:rounded-lg overflow-hidden`),children:[r(g,{children:r(h,{xAlign:`space-between`,yAlign:`center`,class:`p-4`,children:[r(h,{yAlign:`center`,class:`gap-2`,children:[r(_,{heightRem:o(`text-md`),children:r(V,{class:`text-icon-lg text-fg`})}),r(n,{children:`Now`})]}),r(_,{heightRem:o(`text-md`),children:r(B,{class:`text-icon-lg text-fg`})})]})}),r(g,{children:r(h,{xAlign:`space-between`,yAlign:`center`,class:`p-4`,children:[r(h,{yAlign:`center`,class:`gap-2`,children:[r(_,{heightRem:o(`text-md`),children:r(H,{class:`text-icon-lg text-fg`})}),r(n,{children:`All trains`})]}),r(_,{heightRem:o(`text-md`),children:r(B,{class:`text-icon-lg text-fg`})})]})})]})})}function W(){let{params:{id:t}}=i(),{foda:n}=u(),a=e(()=>n.stops.getByUrlPath(t??``),[n.stops,t]);return a==null?r(x,{afterConfirming:`foundational-data-version`}):r(G,{stop:a},a.id)}function G(t){let{data:n,loading:i,error:a}=C(l,{stopId:t.stop.id,count:5}),o=e(()=>[{query:{title:`Citybound trains`,count:5},departures:n?.departures??[],loading:i,hadError:a!=null},{query:{title:`Outbound trains`,count:5},departures:n?.departures??[],loading:i,hadError:a!=null}],[n?.departures,i,a]);return r(v,{...w({title:t.stop.name,back:{href:`/`,text:`Home`},additionalContent:r(m,{lineIds:t.stop.canonicalLinesServingStop,withLinks:!0})}),children:r(s,{children:[r(U,{}),r(z,{feeds:o})]})})}export{W as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{t as r}from"./Strong-C0VDYprE.js";import{t as i}from"./Page-BMcxP_9m.js";import{t as a}from"./use-simple-headers-
|
|
1
|
+
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{t as r}from"./Strong-C0VDYprE.js";import{t as i}from"./Page-BMcxP_9m.js";import{t as a}from"./use-simple-headers-Cbv0t_De.js";function o(){return t(i,{...a({title:`Zen mode`}),children:t(n,{class:`px-4 py-8 gap-8`,children:t(e,{children:[t(r,{children:`✨`}),` Zen! `,t(r,{children:`✨`})]})})})}export{o as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-DGmg1TM-.js","assets/use-nav-exemptions-QtGbfEPT.js","assets/use-api-BJomuYg6.js","assets/use-foundational-data-BEVQRFj9.js","assets/Placeholder-BRnxNmKm.js","assets/Markdown-D5fQv556.js","assets/LinkText-sdmJpshg.js","assets/Strong-C0VDYprE.js","assets/Page-BMcxP_9m.js","assets/use-simple-headers-Cbv0t_De.js","assets/SimpleMobileHeaderContent-Ja68XAJd.js","assets/Divider-lz6Cf6K8.js","assets/Alert-DfpdtaOB.js","assets/MingcuteAlertLine-CdthHQmK.js","assets/AdminControls-T05hoDB-.js","assets/Debug-Q4Vy4lZ_.js","assets/Home-C6T20k8G.js","assets/Nearby-BNDxZx1J.js","assets/Service-CkHxNopv.js","assets/linear-CtNhjlrM.js","assets/scope-B-e4l8Dr.js","assets/ErrorMessage-CCAB4vXB.js","assets/use-foda-synced-query-BM-OPAql.js","assets/Settings-Ccrmh7u8.js","assets/Picker-D-TjVZAI.js","assets/Status-CO5w5a1E.js","assets/ZenMode-C3S7FmYt.js","assets/Stop-BWZOcpvU.js","assets/NotFoundPage-UhXr10a9.js","assets/Line-6nd7KD0E.js","assets/NotFound-BozS7u6u.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{C as e,S as t,T as n,_ as r,b as i,c as a,d as o,f as s,g as c,h as l,i as u,l as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y,w as b,x as ee,y as x}from"./use-nav-exemptions-QtGbfEPT.js";import{a as te,c as ne,f as re,g as ie,h as ae,m as S,n as oe,p as C,r as se,s as ce,t as le}from"./use-api-BJomuYg6.js";import{n as w,t as ue}from"./use-foundational-data-BEVQRFj9.js";import{n as de,t as T}from"./scope-B-e4l8Dr.js";import{t as fe}from"./LinkText-sdmJpshg.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var pe=n.__b;n.__b=e=>{e.type&&e.type._forwarded&&e.ref&&(e.props.ref=e.ref,e.ref=null),pe&&pe(e)};function E(e){let t,n,r=()=>e().then(e=>n=e&&e.default||e),i=e=>{let[,i]=y(0),a=c(n);if(t||=r(),n!==void 0)return b(n,e);throw a.current||=t.then(()=>i(1)),t};return i.preload=()=>(t||=r(),t),i._forwarded=!0,i}var D=n.__e;n.__e=(e,t,n)=>{if(e&&e.then){let r=t;for(;r=r.__;)if(r.__c&&r.__c.__c)return t.__e??(t.__c.__z=[n.__e],t.__e=n.__e,t.__k=n.__k),t.__k||=[],r.__c.__c(e,t)}D&&D(e,t,n)};function me(e){return this.__c=he,this.componentDidCatch=e.onError,e.children}function he(e){e.then(()=>this.forceUpdate())}var ge=`modulepreload`,_e=function(e){return`/`+e},ve={},ye=function(e){return e.pathname.endsWith(`.css`)},be=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=_e(t,n);let r=s(t),i=ye(r);return be(ve,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:ge,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},k=t(null);function A(){let e=i(k);if(e==null)throw Error(`Static data unavailable outside provider.`);return e}function xe(e){let{Provider:t}=k,n=r(()=>Se(document),[]);return d(t,{value:n,children:e.children})}function Se(e){function t(t){let n=e.querySelector(t);if(n==null)throw Error(`${t} tag not found.`);let r=n.getAttribute(`content`);if(r==null)throw Error(`${t} tag was empty.`);return r}return{appName:t(`meta[name="corequery-app-name"]`),frontendVersion:t(`meta[name="corequery-frontend-version"]`),versionsOnLastUpdate:{corequeryPackageVersion:t(`meta[name="corequery-package-version-on-last-update"]`),serverVersion:t(`meta[name="corequery-server-version-on-last-update"]`)}}}var j=class{_array;_map;constructor(e){this._array=e,this._map=new Map(e.map(e=>[this._getID(e),e]))}all(){return this._array}get(e){return this._map.get(e)??null}require(e){let t=this.get(e);if(t==null)throw this._getRequireFailError(e);return t}has(e){return this._map.has(e)}map(e){return this._array.map(e)}filter(e){return this._array.filter(e)}first(e){return this._array.find(e)??null}requireFirst(e){let t=this.first(e);if(t==null)throw this._getPredicateFailError();return t}},Ce=class extends j{_getID(e){return e.id}_getRequireFailError(e){return Error(`No stop with ID #${e}.`)}_getPredicateFailError(){return Error(`No matching stop.`)}getByUrlPath(e){return this.first(t=>t.urlPath===e)}},we=class extends j{_getID(e){return e.id}_getRequireFailError(e){return Error(`No line with ID #${e}.`)}_getPredicateFailError(){return Error(`No matching line.`)}getByUrlPath(e){return this.first(t=>t.urlPath===e)}},M=class e{_obj;stops;lines;constructor(e){this._obj=e,this.stops=new Ce(e.stops),this.lines=new we(e.lines)}static json=ne.transform(t=>new e(t));get hash(){return this._obj.metadata.hash}get fodaApiVersion(){return this._obj.metadata.fodaApiVersion}get serverVersion(){return this._obj.metadata.serverVersion}get footerPrimaryMarkdown(){return this._obj.footer.primaryMarkdown}get terminology(){return this._obj.terminology}get landingPage(){return this._obj.landingPage}},N=`corequery-local-cache`;function Te(e,t){let n=x(async()=>{try{let n=await(await caches.open(N)).match(P(e));return n==null?null:t.parse(await n.json())}catch(t){return console.warn(`Failed to parse "${e}" in browser cache.`,t),null}},[e,t]),i=x(async t=>{try{await(await caches.open(N)).put(P(e),Response.json(t))}catch(t){console.warn(`Failed to write "${e}" to browser cache.`,t)}},[e]);return r(()=>({get:n,set:i}),[n,i])}function P(e){return new URL(`/corequery-local-cache/${encodeURIComponent(e)}.json`,window.location.origin).href}var Ee={default:`text-icon-lg text-fg-weak`,large:`text-icon-xl text-fg-weak`};function F(e){return d(`svg`,{className:a(`_loading-spinner`,Ee[e.style??`default`],e.class),xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`,role:`img`,children:[d(`title`,{children:`Loading spinner`}),d(`circle`,{cx:`4`,cy:`4`,r:`2`,fill:`currentColor`}),d(`circle`,{cx:`12`,cy:`4`,r:`2`,fill:`currentColor`}),d(`circle`,{cx:`12`,cy:`12`,r:`2`,fill:`currentColor`}),d(`circle`,{cx:`4`,cy:`12`,r:`2`,fill:`currentColor`})]})}function I(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,children:[d(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M20 9a1 1 0 0 1 1 1v1a8 8 0 0 1-8 8H9.414l.793.793a1 1 0 0 1-1.414 1.414l-2.496-2.496a1 1 0 0 1-.287-.567L6 17.991a1 1 0 0 1 .237-.638l.056-.06l2.5-2.5a1 1 0 0 1 1.414 1.414L9.414 17H13a6 6 0 0 0 6-6v-1a1 1 0 0 1 1-1m-4.793-6.207l2.5 2.5a1 1 0 0 1 0 1.414l-2.5 2.5a1 1 0 1 1-1.414-1.414L14.586 7H11a6 6 0 0 0-6 6v1a1 1 0 1 1-2 0v-1a8 8 0 0 1 8-8h3.586l-.793-.793a1 1 0 0 1 1.414-1.414`})]})})}function L(e){let t=a(`grid not-disabled:cursor-pointer select-none`,e.class);return e.onClick==null&&e.href!=null&&!(e.disabled??!1)?d(`a`,{class:t,href:e.href,onClick:e.onHrefClick,children:e.children}):d(`button`,{class:t,onClick:e.onClick,disabled:e.disabled,children:e.children})}var De={left:`justify-start`,center:`justify-center`,right:`justify-end`,"space-between":`justify-between`},Oe={top:`items-start`,center:`items-center`,bottom:`items-end`,stretch:`items-stretch`};function R(e){let t=e.as??`div`,n=De[e.xAlign??`left`],r=Oe[e.yAlign??`stretch`];return d(t,{class:a(`flex flex-row`,n,r,{"flex-wrap":e.wrap},e.class),children:e.children})}function z(e){return d(g,{class:a(`relative`,e.class),children:[d(g,{class:a({invisible:e.loading}),children:e.children}),e.loading&&d(R,{class:`absolute top-0 left-0 right-0 bottom-0`,xAlign:`center`,yAlign:`center`,children:d(F,{})})]})}var ke=a([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-accent)]`,`not-disabled:[--color-fg-strong:var(--color-on-accent)]`,`not-disabled:[--color-fg-weak:var(--color-on-accent)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Ae=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`group-not-disabled:bg-accent`,`group-not-disabled:group-hover:bg-accent-hover`,`group-not-disabled:group-active:bg-accent-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function je(e){let t=e.rounded??!0;return d(L,{class:a(e.class,ke),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:a(Ae,{"rounded-sm":t})}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function Me(e){return d(R,{class:a(e.class,`gap-2 h-8`,{"px-4":e.text!=null,"min-w-8":e.text==null}),yAlign:`center`,xAlign:`center`,children:[e.icon!=null&&d(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&d(u,{children:e.text})]})}var Ne=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Pe=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-soft`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Fe(e){return d(L,{class:a(e.class,Ne),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:Pe}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Ie=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Le=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`,`border`,`group-not-disabled:border-soft-border`,`group-disabled:border-soft-border-disabled`]);function Re(e){return d(L,{class:a(e.class,Ie),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:Le}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var ze=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Be=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`]);function B(e){return d(L,{class:a(e.class,ze),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:Be}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Ve=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),He=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`]);function V(e){return d(L,{class:a(e.class,Ve),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:He}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function H(e){let t=e.outerPadding??!1;return d(R,{class:a(e.class,`gap-2 min-w-0 py-2`,{"px-4":e.text!=null,"min-w-8":e.text==null,"min-h-10":!t,"min-h-12":t}),yAlign:`center`,children:[e.icon!=null&&d(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&d(u,{class:`shrink min-w-0`,children:e.text})]})}var Ue=a([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-error)]`,`not-disabled:[--color-fg-strong:var(--color-on-error)]`,`not-disabled:[--color-fg-weak:var(--color-on-error)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),We=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-error`,`group-not-disabled:group-hover:bg-error-hover`,`group-not-disabled:group-active:bg-error-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Ge(e){return d(L,{class:a(e.class,Ue),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:We}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Ke=a([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-warning)]`,`not-disabled:[--color-fg-strong:var(--color-on-warning)]`,`not-disabled:[--color-fg-weak:var(--color-on-warning)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),qe=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-warning`,`group-not-disabled:group-hover:bg-warning-hover`,`group-not-disabled:group-active:bg-warning-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Je(e){return d(L,{class:a(e.class,Ke),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:qe}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Ye=a([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-success)]`,`not-disabled:[--color-fg-strong:var(--color-on-success)]`,`not-disabled:[--color-fg-weak:var(--color-on-success)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Xe=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-success`,`group-not-disabled:group-hover:bg-success-hover`,`group-not-disabled:group-active:bg-success-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Ze(e){return d(L,{class:a(e.class,Ye),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:Xe}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function Qe(e){return d(R,{class:a(e.class,`gap-2 h-8 pl-2 pr-3`),yAlign:`center`,xAlign:`center`,children:[e.icon!=null&&d(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&d(u,{children:e.text})]})}var $e={default:Fe,accent:je,outlined:Re,hover:B,"hover-square":V,error:Ge,warning:Je,success:Ze},et={simple:Me,"menu-item":H,"narrow-icon":Qe};function U(e){let t=$e[e.theme??`default`],n=et[e.layout??`simple`];return d(t,{class:e.class,onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:e.disabled,loading:e.loading,children:d(n,{icon:e.icon,text:e.text})})}function tt(e){let{appName:t}=A();return d(g,{class:`w-svw h-svh items-center justify-center`,children:d(h,{class:`gap-12`,xAlign:`center`,children:[d(h,{class:`gap-6`,xAlign:`center`,children:[d(`img`,{class:`w-24 h-24`,src:`/favicon.svg`}),d(u,{style:`title`,children:t})]}),e.error?d(h,{class:`gap-4`,xAlign:`center`,children:[d(u,{children:`An error occurred while loading foundational data`}),d(U,{text:`Retry`,icon:I,onClick:e.onRetry})]}):d(F,{style:`large`})]})})}var W=t(null);function G(){let e=i(W);if(e==null)throw Error(`Settings unavailable outside provider.`);return e}var K=ce,nt=ae([S({result:C(`outdated`),foundationalData:ie()}),S({result:C(`up-to-date`)})]),rt=`corequery-foundational-data`,it=2e3;function at(e){let{Provider:t}=ue,{revalidateSettings:n}=G(),i=Te(rt,M.json),[a,o]=y(null),[s,c]=y(!1),u=x(e=>{o(e),n(e)},[n]),f=x(async e=>{let t=M.json.parse(e);return u(t),await i.set(e),t.hash},[u,i]),p=x(async()=>{let e=await q(null,null);if(e.result===`up-to-date`)throw Error();return await f(e.foundationalData)},[f]),m=x(()=>{c(!1),ot({getCachedData:async()=>await i.get(),onFreshFoda:async e=>await f(e),onUseCachedFoda:e=>u(e),onFailure:()=>c(!0)})},[i,f,u]);l(()=>{m()},[m]);let h=r(()=>a==null?null:{foda:a,forceFodaUpdate:p},[a,p]);return h==null?d(tt,{error:s,onRetry:m}):d(t,{value:h,children:e.children})}async function ot({getCachedData:e,onFreshFoda:t,onUseCachedFoda:n,onFailure:r}){let i=await e();if(i!=null)try{let e=await q(i.hash,it);e.result===`up-to-date`?n(i):await t(e.foundationalData)}catch(e){console.warn(`Foundational data refresh failed - using cache.`,e),n(i)}else try{let e=await q(null,null);if(e.result===`up-to-date`)throw Error();await t(e.foundationalData)}catch{r()}}async function q(e,t){let n=await fetch(`/api${K.path}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({hash:e}),signal:t==null?void 0:AbortSignal.timeout(t)});if(!n.ok){let e=await n.text();throw Error(`Error ${n.status} calling /api${K.path}: ${e}`)}return nt.parse(await n.json())}var J=class e{theme;constructor(e){this.theme=e.theme}static default=new e({theme:`auto`});static json=S({version:C(1),theme:re([`dark`,`light`,`auto`]).optional()}).transform(t=>new e({theme:t.theme??e.default.theme}));with(t){return new e({...this,...t})}toJson(){return{version:1,theme:this.theme}}validate(e){return this}equals(e){return se(this.toJson(),e.toJson())}},st=[`auto`,`light`,`dark`];function ct(){window.applyTheme?.()}function lt(e,t){let n=x(()=>{try{let n=localStorage.getItem(e);return n==null?null:t.parse(JSON.parse(n))}catch{return console.warn(`Failed to parse "${e}" in local storage.`),null}},[e,t]),i=x(t=>{try{let n=JSON.stringify(t);localStorage.setItem(e,n)}catch(t){console.warn(`Failed to write "${e}" to local storage.`,t)}},[e]);return r(()=>({get:n,set:i}),[n,i])}function ut(e){let{Provider:t}=W,n=lt(`corequery-settings`,J.json),[i,a]=y(()=>n.get()??(console.warn(`Failed to load settings, using defaults.`),J.default)),o=x((e,t)=>{a(r=>{let i=e(r);return(t?.persist??!0)&&n.set(i.toJson()),i}),ct()},[n]),s=x(e=>{o(t=>{let n=t.validate(e);return n.equals(t)||console.warn(`Settings updated due to foundational data changes.`),n},{persist:!1})},[o]),c=r(()=>({settings:i,updateSettings:o,revalidateSettings:s}),[i,o,s]);return d(t,{value:c,children:e.children})}function dt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`m13.414 2.807l7.778 7.779a2 2 0 0 1 0 2.828l-7.778 7.778a2 2 0 0 1-2.828 0l-7.778-7.778a2 2 0 0 1 0-2.828l7.778-7.779a2 2 0 0 1 2.828 0M12.002 15a1 1 0 0 0-.119 1.993l.12.007a1 1 0 0 0 0-2ZM12 8a1.44 1.44 0 0 0-1.44 1.485l.01.135l.438 3.504a1 1 0 0 0 1.964.113l.02-.113l.438-3.504A1.44 1.44 0 0 0 12 8`})]})})}function Y(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,children:[d(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`m13.414 2.808l7.778 7.778a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.828 0l-7.778-7.778a2 2 0 0 1 0-2.829l7.778-7.778a2 2 0 0 1 2.828 0M12 4.222L4.222 12L12 19.78L19.778 12zM12.002 15a1 1 0 0 1 .117 1.993l-.117.007a1 1 0 0 1-.119-1.993zM12 8c.867 0 1.538.76 1.43 1.62l-.438 3.504a1 1 0 0 1-1.984 0L10.57 9.62A1.44 1.44 0 0 1 12 8`})]})})}function ft(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M13.2 2.65a2 2 0 0 0-2.4 0l-7 5.25A2 2 0 0 0 3 9.5V19a2 2 0 0 0 2 2h3.9a1.1 1.1 0 0 0 1.1-1.1V15a2 2 0 1 1 4 0v4.9a1.1 1.1 0 0 0 1.1 1.1H19a2 2 0 0 0 2-2V9.5a2 2 0 0 0-.8-1.6z`})]})})}function X(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M10.8 2.65a2 2 0 0 1 2.4 0l7 5.25a2 2 0 0 1 .8 1.6V19a2 2 0 0 1-2 2h-4.9a1.1 1.1 0 0 1-1.1-1.1V14a1 1 0 1 0-2 0v5.9A1.1 1.1 0 0 1 9.9 21H5a2 2 0 0 1-2-2V9.5a2 2 0 0 1 .8-1.6zm1.2 1.6L5 9.5V19h4v-5a3 3 0 1 1 6 0v5h4V9.5z`})]})})}function pt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M7 7a5 5 0 1 1 6 4.9V17a1 1 0 1 1-2 0v-5.1A5 5 0 0 1 7 7m2.489 9.1a1 1 0 0 1-.838 1.14c-1.278.195-2.293.489-2.96.815c-.335.164-.534.313-.637.422l-.021.023c.033.039.09.096.19.169c.28.207.749.435 1.418.644C7.968 19.728 9.863 20 12 20s4.032-.272 5.359-.687c.67-.209 1.138-.437 1.418-.644c.1-.073.157-.13.19-.169l-.021-.023c-.103-.109-.302-.258-.637-.422c-.667-.326-1.682-.62-2.96-.815a1 1 0 1 1 .301-1.977c1.388.21 2.622.547 3.539.996c.457.224.884.5 1.208.842c.33.347.603.82.603 1.399c0 .811-.524 1.4-1.034 1.777c-.53.392-1.233.702-2.01.945c-1.57.49-3.674.778-5.956.778s-4.387-.288-5.955-.778c-.778-.243-1.48-.553-2.01-.945C3.524 19.9 3 19.311 3 18.5c0-.58.273-1.052.603-1.4c.325-.342.751-.617 1.208-.84c.917-.45 2.152-.786 3.538-.997a1 1 0 0 1 1.14.838Z`})]})})}function mt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M12 4a3 3 0 1 0 0 6a3 3 0 0 0 0-6M7 7a5 5 0 1 1 6 4.9V17a1 1 0 1 1-2 0v-5.1A5 5 0 0 1 7 7m2.489 9.1a1 1 0 0 1-.838 1.14c-1.278.194-2.293.489-2.96.815c-1.22.597.206 1.026.95 1.258C7.968 19.728 9.863 20 12 20s4.032-.272 5.359-.687c.749-.234 2.17-.66.95-1.258c-.667-.326-1.682-.62-2.96-.815a1 1 0 1 1 .301-1.977c1.388.21 2.622.547 3.539.996c.884.433 1.811 1.162 1.811 2.241c0 .811-.524 1.4-1.034 1.777C17.816 21.865 14.536 22 12 22c-2.282 0-4.387-.288-5.955-.778C4.795 20.832 3 20.062 3 18.5c0-1.08.927-1.808 1.811-2.24c.917-.45 2.152-.786 3.538-.997a1 1 0 0 1 1.14.838Z`})]})})}function ht(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M20 18a1 1 0 0 1 .117 1.993L20 20H4a1 1 0 0 1-.117-1.993L4 18zm0-7a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zm0-7a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z`})]})})}function gt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M5 10a5 5 0 1 1 10 0a5 5 0 0 1-10 0m5-7a7 7 0 1 0 4.192 12.606l5.1 5.101a1 1 0 0 0 1.415-1.414l-5.1-5.1A7 7 0 0 0 10 3`})]})})}function _t(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M5 5a1 1 0 0 0-2 0v14a1 1 0 0 0 1 1h16a1 1 0 1 0 0-2H5zm4 7a1 1 0 1 0-2 0v3a1 1 0 1 0 2 0zm3-6a1 1 0 0 1 1 1v8a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1m5 4a1 1 0 1 0-2 0v5a1 1 0 1 0 2 0z`})]})})}function vt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M12 2a1 1 0 0 1 1 1v1.062a8 8 0 0 1 2.104.562l.53-.918a1 1 0 1 1 1.732 1l-.531.92c.58.44 1.098.959 1.54 1.54l.92-.532a1 1 0 1 1 1 1.732l-.92.53c.279.661.471 1.367.563 2.104H21a1 1 0 1 1 0 2h-1.062a8 8 0 0 1-.562 2.104l.918.53a1 1 0 1 1-1 1.732l-.92-.531a8 8 0 0 1-1.54 1.54l.532.92a1 1 0 1 1-1.732 1l-.53-.92a8 8 0 0 1-2.104.563V21a1 1 0 1 1-2 0v-1.062a8 8 0 0 1-2.104-.562l-.53.918a1 1 0 1 1-1.732-1l.531-.92a8 8 0 0 1-1.54-1.54l-.92.532a1 1 0 1 1-1-1.732l.92-.53A8 8 0 0 1 4.061 13H3a1 1 0 1 1 0-2h1.062a8 8 0 0 1 .562-2.104l-.918-.53a1 1 0 0 1 1-1.732l.92.531c.44-.58.959-1.098 1.54-1.54l-.532-.92a1 1 0 0 1 1.732-1l.53.92A8 8 0 0 1 11 4.061V3a1 1 0 0 1 1-1m0 11.155l-4.624 2.67a6 6 0 0 0 1.588 1.351l.073.043A6 6 0 0 0 12 18c.97 0 1.886-.23 2.697-.639l.34-.185a6 6 0 0 0 1.587-1.352zm-1-7.072a6 6 0 0 0-1.703.559l-.26.14l-.073.042a6 6 0 0 0-1.978 1.88l-.162.26l-.042.073A6 6 0 0 0 6 12c0 .63.097 1.24.278 1.81l.097.283L11 11.423zm2 0v5.34l4.625 2.67A6 6 0 0 0 18 12c0-.97-.23-1.886-.639-2.697l-.143-.266l-.032-.055l-.01-.018a6 6 0 0 0-1.88-1.978l-.333-.205a6 6 0 0 0-1.664-.64z`})]})})}function yt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`path`,{fill:`currentColor`,d:`M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8.01 8.01 0 0 1-8 8m0-8.5a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0v-3a1 1 0 0 0-1-1m0-4a1.25 1.25 0 1 0 1.25 1.25A1.25 1.25 0 0 0 12 7.5`})})}function bt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M6.798 2.884a7.002 7.002 0 0 1 9.294 8.565l4.394 3.718a3.76 3.76 0 1 1-5.3 5.3l-3.717-4.394a7.002 7.002 0 0 1-8.565-9.295c.358-.894 1.48-1.007 2.063-.373L8.17 9.883l1.446-.288l.29-1.449l-3.48-3.198c-.634-.583-.522-1.706.373-2.064ZM8.805 4.42l2.763 2.54c.322.296.466.738.38 1.165l-.47 2.354a1.25 1.25 0 0 1-.982.981l-2.35.467a1.25 1.25 0 0 1-1.164-.38L4.438 8.785a5.002 5.002 0 0 0 6.804 5.25a1.26 1.26 0 0 1 1.422.355l4.05 4.786a1.76 1.76 0 1 0 2.48-2.48l-4.785-4.05a1.26 1.26 0 0 1-.355-1.422a5 5 0 0 0-5.25-6.804Z`})]})})}function xt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M16 19a1 1 0 0 1 .117 1.993L16 21H8a1 1 0 0 1-.117-1.993L8 19zm4-15a2 2 0 0 1 1.995 1.85L22 6v10a2 2 0 0 1-1.85 1.995L20 18H4a2 2 0 0 1-1.995-1.85L2 16V6a2 2 0 0 1 1.85-1.995L4 4zm0 2H4v10h16z`})]})})}function St(){return[{name:`Home`,href:`/`,regularIcon:X,activeIcon:ft,isActive:e=>e===`/`},{name:`Status`,href:`/status`,regularIcon:Y,activeIcon:dt,isActive:e=>e===`/status`},{name:`Nearby`,href:`/nearby`,regularIcon:mt,activeIcon:pt,isActive:e=>e===`/nearby`},{name:`Search`,icon:gt,opensSearchDrawer:!0},{name:`More`,icon:ht,opensMoreDrawer:!0}]}function Ct(){let{appName:e}=A();return[{name:`About ${e}`,href:`/about`,icon:yt},{name:`Settings`,href:`/settings`,icon:vt},{name:`Developer info`,href:`/debug`,icon:_t},{name:`Admin controls`,href:`/admin`,icon:bt},{name:`Zen mode`,href:`/zen`,icon:xt}]}var wt=t(null);function Z(){let e=i(wt);if(e==null)throw Error(`Service worker data unavailable outside provider.`);return e}function Tt(e){let{isUpdateAvailable:t,update:n}=Z(),[r,i]=y(!1);return l(()=>{e.menuFullyClosed&&i(t)},[t,e.menuFullyClosed]),r?d(je,{rounded:!1,onClick:()=>void n(),children:d(f,{children:d(H,{icon:I,text:`Update available — click to refresh`,outerPadding:!0})})}):null}function Q(e,t){let[n,r]=y(!1);return l(()=>{if(!e){r(!1);return}let n=setTimeout(()=>{r(!0)},t);return()=>{clearTimeout(n)}},[e,t]),n}function Et(e){let t=Ct(),n=Q(!e.open,300);return d(`div`,{class:a(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"not-desktop:translate-y-4":!e.open,"desktop:-translate-y-4":!e.open}),children:[d(`div`,{class:`z-0 absolute top-0 bottom-0 left-0 right-0 bg-bg-raised desktop:border-b not-desktop:border-t border-soft-border opacity-97`}),d(h,{class:`relative z-1 desktop:flex-col-reverse`,children:[d(f,{children:d(h,{class:`py-2`,children:t.map(t=>d(U,{icon:t.icon,text:t.name,href:t.href,onHrefClick:e.onClose,theme:`hover-square`,layout:`menu-item`},t.href))})}),d(Tt,{menuFullyClosed:n})]})]})}function Dt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M12 2a9 9 0 0 1 9 9c0 3.074-1.676 5.59-3.442 7.395a20.4 20.4 0 0 1-2.876 2.416l-.426.29l-.2.133l-.377.24l-.336.205l-.416.242a1.87 1.87 0 0 1-1.854 0l-.416-.242l-.52-.32l-.192-.125l-.41-.273a20.6 20.6 0 0 1-3.093-2.566C4.676 16.589 3 14.074 3 11a9 9 0 0 1 9-9m0 2a7 7 0 0 0-7 7c0 2.322 1.272 4.36 2.871 5.996a18 18 0 0 0 2.222 1.91l.458.326q.222.155.427.288l.39.25l.343.209l.289.169l.455-.269l.367-.23q.293-.186.627-.417l.458-.326a18 18 0 0 0 2.222-1.91C17.728 15.361 19 13.322 19 11a7 7 0 0 0-7-7m0 3a4 4 0 1 1 0 8a4 4 0 0 1 0-8m0 2a2 2 0 1 0 0 4a2 2 0 0 0 0-4`})]})})}function Ot(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M12 2a1 1 0 0 1 1 1v5.126a4.002 4.002 0 0 1 0 7.748V21a1 1 0 1 1-2 0v-5.126a4.002 4.002 0 0 1 0-7.748V3a1 1 0 0 1 1-1m0 12a2 2 0 1 0 0-4a2 2 0 0 0 0 4`})]})})}var kt={stop:e=>e,station:e=>`${e} Station`},At={line:e=>`${e} Line`,route:e=>`Route ${e}`},jt={stop:`stops`,station:`stations`},Mt={line:`lines`,route:`routes`},Nt={service:`services`,trip:`trips`,train:`trains`,tram:`trams`,bus:`buses`};function Pt(){let{foda:e}=w();return r(()=>({formatStop:kt[e.terminology.stop],formatLine:At[e.terminology.line],pluralStopsTerm:jt[e.terminology.stop],pluralLinesTerm:Mt[e.terminology.line],pluralServicesTerm:Nt[e.terminology.service]}),[e.terminology])}function Ft(e){let t=e.withLinks??!1;return d(u,{class:a(e.class),style:e.style,children:d(It,{lineIds:e.lineIds,withLinks:t})})}function It({lineIds:t,withLinks:n}){let{foda:r}=w();if(t.length===0)return{line:`No lines`,route:`No routes`}[r.terminology.line];let i=d(Lt,{lineIds:t,withLinks:n});return{line:d(e,{children:[i,` `,t.length===1?`Line`:`lines`]}),route:d(e,{children:[t.length===1?`Route`:`Routes`,` `,i]})}[r.terminology.line]}function Lt({lineIds:t,withLinks:n}){let{foda:i}=w(),a=r(()=>t.map(e=>Rt(e,i)).sort((e,t)=>e.name.localeCompare(t.name)),[t,i]);return a.length===1?d($,{data:T(a[0]),withLink:n}):a.length===2?d(e,{children:[d($,{data:T(a[0]),withLink:n}),` and`,` `,d($,{data:T(a[1]),withLink:n})]}):d(e,{children:[a.slice(0,-1).map((t,r)=>d(e,{children:[d($,{data:T(t),withLink:n},r),`,`,` `]})),` and `,d($,{data:T(a[a.length-1]),withLink:n})]})}function $({data:t,withLink:n}){return n?d(fe,{href:t.href,style:`strong-subtle`,dynamicColor:t.color,children:t.name}):d(e,{children:t.name})}function Rt(e,t){let n=t.lines.require(e);return{name:n.name,href:`/line/${n.urlPath}`,color:n.color}}function zt(){let{foda:e}=w(),{formatStop:t,formatLine:n,pluralStopsTerm:i,pluralLinesTerm:a}=Pt();return{candidates:r(()=>{let r=e.stops.map(e=>({id:`stop-${e.id}`,primary:t(e.name),alternatives:[],data:{title:t(e.name),description:d(Ft,{lineIds:e.canonicalLinesServingStop,style:`small`}),url:`/stop/${e.urlPath}`,icon:Dt}})),i=e.lines.map(e=>({id:`line-${e.id}`,primary:n(e.name),alternatives:[],data:{title:n(e.name),description:null,url:`/line/${e.urlPath}`,icon:Ot}}));return[...r,...i]},[e.lines,e.stops,n,t]),placeholder:r(()=>`Search ${i}, ${a}, etc.`,[a,i])}}var Bt={regular:`text-fg text-md outline-none border-none placeholder:text-fg-weak`,search:`text-fg-strong text-xl desktop:text-md font-bold outline-none border-none placeholder:text-fg-weak placeholder:font-normal`};function Vt(e){let t=Bt[e.style??`regular`],n={class:a(e.class,t),value:e.value,onInput:t=>{t.target!=null&&`value`in t.target&&typeof t.target.value==`string`&&e.onChange(t.target.value)},placeholder:e.placeholder,ref:e.inputRef,autoComplete:`off`};return d(Ht,{onSubmit:e.onSubmit,children:e.search??!1?d(`input`,{type:`search`,...n}):d(`input`,{type:`text`,...n})})}function Ht(e){return e.onSubmit==null?e.children:d(`form`,{class:`grid`,autoComplete:`off`,onSubmit:t=>{t.preventDefault(),e.onSubmit?.()},children:e.children})}var Ut=class{_query;_candidates;_maxResults;_results;_candidatesNotRequiringExactMatch;constructor(e,t,n){this._query=e,this._candidates=t,this._maxResults=n,this._results=new Map,this._candidatesNotRequiringExactMatch=t.filter(e=>!(e.requiresExactMatch??!1))}getResults(){return Array.from(this._results.values()).slice(0,this._maxResults)}appendResults(e,{passCandidatesRequiringExactMatch:t=!1}={}){if(this._results.size>=this._maxResults)return;let n=t?this._candidates:this._candidatesNotRequiringExactMatch,r=e(this._query,n);for(let e of r)this._results.has(e.id)||this._results.set(e.id,e.data)}};function Wt(e,t){return t.filter(t=>t.primary===e||t.alternatives.includes(e))}function Gt(e,t){return t.filter(t=>t.primary.startsWith(e)).sort((e,t)=>e.primary.length-t.primary.length)}function Kt(e,t){return t.filter(t=>t.primary.includes(e)).sort((e,t)=>e.primary.length-t.primary.length)}function qt(e,t){return t.map(t=>{let n=t.alternatives.filter(t=>t.startsWith(e)).sort((e,t)=>e.length-t.length)[0];return n==null?null:{candidate:t,bestMatch:n,percentageMatched:e.length/n.length}}).filter(de).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function Jt(e,t){return t.map(t=>{let n=t.alternatives.filter(t=>t.includes(e)).sort((e,t)=>e.length-t.length)[0];return n==null?null:{candidate:t,bestMatch:n,percentageMatched:e.length/n.length}}).filter(de).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function Yt(e,t,{maxResults:n=5}={}){let r=e.trim().toLowerCase();if(r.length===0)return[];let i=new Ut(r,t.map(e=>({...e,primary:e.primary.toLowerCase(),alternatives:e.alternatives.map(e=>e.toLowerCase())})),n);return i.appendResults(Wt,{passCandidatesRequiringExactMatch:!0}),i.appendResults(Gt),i.appendResults(Kt),i.appendResults(qt),i.appendResults(Jt),i.getResults()}function Xt(e){return d(`div`,{class:a(e.class,`flex flex-col justify-center items-stretch`),style:{height:`${e.heightRem}rem`},children:e.children})}function Zt(e){return d(V,{href:e.href,onHrefClick:e.onHrefClick,class:a(e.class),children:d(R,{class:a(e.class,`gap-3 desktop:gap-2 min-w-0 py-3 px-4 min-h-10`),yAlign:`center`,children:[d(Xt,{heightRem:p(`text-md`),children:d(e.icon,{class:`text-fg text-icon-lg`})}),d(h,{class:`gap-3 shrink`,children:[d(u,{style:`strong`,children:e.title}),e.description]})]})})}function Qt(e){let[t,n]=y(``),{candidates:i,placeholder:o}=zt(),{route:s}=m(),p=r(()=>Yt(t,i,{maxResults:5}),[t,i]),_=Q(!e.open,300);l(()=>{_&&n(``)},[_]);let v=c(null),b=Q(e.open,100);l(()=>{b&&v.current?.focus()},[b]);function ee(){p.length>0&&(s(T(p[0]).url),e.onClose())}return d(`div`,{class:a(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"-translate-y-4":!e.open}),children:[d(`div`,{class:`absolute top-0 bottom-0 left-0 right-0 bg-bg-raised border-b border-soft-border opacity-97`}),d(f,{class:`relative z-1`,children:d(h,{children:[d(g,{class:`relative py-2 border-b border-b-soft-border not-desktop:bg-bg-navbar`,children:[d(Vt,{style:`search`,value:t,onChange:n,class:`px-4 pl-12 h-10 desktop:h-8 desktop:pl-11`,placeholder:o,inputRef:v,onSubmit:ee,search:!0}),d(gt,{class:`absolute left-4 top-[50%] translate-y-[-50%] pointer-events-none text-fg-weak text-icon-xl desktop:text-icon-lg`})]}),d(h,{class:`max-h-[calc(100vh-12rem)] py-3 overflow-y-scroll`,children:[p.length===0&&d(g,{class:`h-32 items-center`,children:d(u,{class:`px-4`,style:`weak`,children:t.length===0?`Results will appear here.`:`No results.`})}),p.map(t=>d(Zt,{title:t.title,description:t.description,icon:t.icon,href:t.url,onHrefClick:e.onClose},t.url))]})]})})]})}function $t(e){let t=e.active??!1;return d(L,{class:a(e.class,`group`),onClick:e.onClick,href:e.href,children:d(h,{class:`gap-1 pb-1.5`,xAlign:`center`,yAlign:`center`,children:[d(g,{class:a(`px-3 py-1 rounded-full relative`,{"bg-soft-accent":t,"group-hover:bg-soft":!t,"group-active:bg-soft-active":!t}),children:[(e.showBadge??!1)&&d(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-1 right-3`}),t===!0?d(e.activeIcon,{class:`text-accent-text text-icon-xl`}):d(e.regularIcon,{class:`text-fg text-icon-xl`})]}),d(u,{style:t?`small-strong-accent`:`small`,children:e.text})]})})}function en(e){let{url:t}=m(),n=St(),{isUpdateAvailable:r}=Z();return d(g,{class:a(e.class,`h-18 bg-bg-navbar grid-cols-[repeat(auto-fit,minmax(0,1fr))] border-t border-soft-border px-2`),children:n.map(n=>d($t,{text:n.name,regularIcon:`icon`in n?n.icon:n.regularIcon,activeIcon:`icon`in n?n.icon:n.activeIcon,active:`isActive`in n&&n.isActive(t),href:`href`in n?n.href:void 0,onClick:n.opensMoreDrawer?e.onOpenMoreDrawerRequest:n.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:r&&n.opensMoreDrawer},n.name))})}function tn(e){let t=e.active??!1;return d(g,{class:a(e.class,`border-y-2 border-y-transparent items-center`,{"border-b-accent":t}),children:d(B,{class:e.class,onClick:e.onClick,href:e.href,children:d(R,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[d(g,{class:`relative`,children:[(e.showBadge??!1)&&d(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-0 right-0`}),t===!0?d(e.activeIcon,{class:`text-fg-strong text-icon-lg`}):d(e.regularIcon,{class:`text-fg text-icon-lg`})]}),d(g,{class:`relative`,children:[d(u,{class:a(`absolute left-0 right-0`,{hidden:t}),style:`regular`,align:`center`,children:e.text}),d(u,{class:a({invisible:!t}),style:`strong`,children:e.text})]})]})})})}function nn(e){return d(`img`,{class:a(e.class,`w-[1em] h-[1em]`),src:`/favicon.svg`})}function rn(e){let{appName:t}=A(),{url:n}=m(),r=St(),{isUpdateAvailable:i}=Z();return d(f,{class:a(e.class,`h-12 bg-bg-navbar border-b border-soft-border`),children:d(R,{class:`gap-2`,children:[d(B,{class:`self-center`,href:`/`,children:d(R,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[d(nn,{class:`text-icon-md`}),d(u,{style:`wordmark`,children:t})]})}),d(R,{children:r.map(t=>d(tn,{text:t.name,regularIcon:`icon`in t?t.icon:t.regularIcon,activeIcon:`icon`in t?t.icon:t.activeIcon,active:`isActive`in t&&t.isActive(n),href:`href`in t?t.href:void 0,onClick:t.opensMoreDrawer?e.onOpenMoreDrawerRequest:t.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:i&&t.opensMoreDrawer},t.name))})]})})}function an(e){let{showMobileNav:t,showDesktopNav:n}=_(),{url:r}=m(),[i,o]=y(!1),[s,c]=y(!1);function u(){c(!1),o(e=>!e)}function f(){o(!1),c(e=>!e)}function p(){o(!1),c(!1)}return l(()=>{o(!1),c(!1)},[r]),d(g,{class:a(e.class,`fixed top-0 bottom-0 left-0 right-0 desktop:grid-rows-[auto_1fr] not-desktop:grid-rows-[1fr_auto]`,{"pointer-events-none":!i&&!s}),children:[d(`div`,{class:`desktop:hidden row-2 pointer-events-auto relative z-1`,children:t&&d(en,{onOpenMoreDrawerRequest:u,onOpenSearchDrawerRequest:f})}),d(`div`,{class:`not-desktop:hidden row-1 pointer-events-auto relative z-1`,children:n&&d(rn,{onOpenMoreDrawerRequest:u,onOpenSearchDrawerRequest:f})}),d(`div`,{class:`relative z-0 h-full desktop:row-2 not-desktop:row-1`,children:[d(`div`,{class:a(`absolute desktop:top-0 not-desktop:bottom-0 left-0 right-0 z-1`,{"pointer-events-none":!i}),children:d(Et,{open:i,onClose:p})}),d(`div`,{class:a(`absolute top-0 left-0 right-0 z-1`,{"pointer-events-none":!s}),children:d(Qt,{open:s,onClose:p})}),d(`div`,{class:`absolute top-0 left-0 right-0 bottom-0 z-0`,onClick:p})]})]})}function on(e){return d(`div`,{class:e.class,children:[d(`div`,{class:`relative z-0`,children:e.children}),d(`div`,{class:`relative z-1`,children:d(an,{})})]})}var sn=`false`,cn=`false`,ln=sn===`true`,un=cn===`true`;function dn(e={}){let{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:a,onRegisteredSW:o,onRegisterError:s}=e,c,l,u,d=async(e=!0)=>{await l,ln||u?.()};async function f(){if(`serviceWorker`in navigator){if(c=await O(async()=>{let{Workbox:e}=await import(`./workbox-window.prod.es5-Bd17z0YL.js`);return{Workbox:e}},[]).then(({Workbox:e})=>new e(`/sw.js`,{scope:`/`,type:`classic`})).catch(e=>{s?.(e)}),!c)return;if(u=()=>{c?.messageSkipWaiting()},!un){if(ln)c.addEventListener(`activated`,e=>{(e.isUpdate||e.isExternal)&&(n?n():window.location.reload())}),c.addEventListener(`installed`,e=>{e.isUpdate||i?.()});else{let e=!1,t=()=>{e=!0,c?.addEventListener(`controlling`,e=>{e.isUpdate&&(n?n():window.location.reload())}),r?.()};c.addEventListener(`installed`,n=>{n.isUpdate===void 0?n.isExternal===void 0?!e&&i?.():n.isExternal?t():!e&&i?.():n.isUpdate||i?.()}),c.addEventListener(`waiting`,t)}}c.register({immediate:t}).then(e=>{o?o(`/sw.js`,e):a?.(e)}).catch(e=>{s?.(e)})}}return l=f(),d}function fn(e){let{Provider:t}=wt,[n,i]=y(!1),[a,o]=y(!1),s=r(()=>dn({onRegisteredSW:()=>{},onRegisterError:e=>console.warn(`Service worker error:`,e),onNeedRefresh:()=>i(!0),onOfflineReady:()=>o(!0)}),[]),c=x(async()=>{try{let e=await navigator.serviceWorker.getRegistrations();for(let t of e)await t.unregister()}catch(e){console.warn(`Failed to unregister service worker:`,e)}},[]),l=r(()=>({isUpdateAvailable:n,isOfflineReady:a,update:s,unregister:c}),[n,a,s,c]);return d(t,{value:l,children:e.children})}function pn(e,t,n={}){let{callApi:r}=le(),[i,a]=y(null),[o,s]=y(!0),[c,l]=y(null);return oe(()=>{let i=!1;async function o(){try{s(!0),l(null);let o=await r(e,t,n);if(i)return;a(o)}catch(e){if(i)return;console.warn(e),l(e)}finally{i||s(!1)}}return o(),()=>{i=!0}},[e,t,n]),{data:i,loading:o,error:c}}function mn(){return{isHotReloadingEnabled:r(()=>!1,[])}}function hn(e){let{isHotReloadingEnabled:t}=mn(),{frontendVersion:n,versionsOnLastUpdate:r}=A(),{unregister:i}=Z(),{data:a,loading:o,error:s}=pn(te,{frontendVersion:n,corequeryPackageVersion:r.corequeryPackageVersion}),c=!t&&!o&&s==null&&a!=null&&a.isForceUpdateOfServiceWorkerRequired;return l(()=>{async function e(){c&&(await i(),window.location.reload())}e()},[c,i]),e.children}var gn=E(()=>O(()=>import(`./About-DGmg1TM-.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),_n=E(()=>O(()=>import(`./AdminControls-T05hoDB-.js`),__vite__mapDeps([14,1,8,9,10]))),vn=E(()=>O(()=>import(`./Debug-Q4Vy4lZ_.js`),__vite__mapDeps([15,1,2,3,4,8,9,10,11,12,13]))),yn=E(()=>O(()=>import(`./Home-C6T20k8G.js`),__vite__mapDeps([16,1,3,5,6,7,8,9,10]))),bn=E(()=>O(()=>import(`./Nearby-BNDxZx1J.js`),__vite__mapDeps([17,1,8]))),xn=E(()=>O(()=>import(`./Service-CkHxNopv.js`),__vite__mapDeps([18,1,2,3,19,20,21,13,6,8,9,10,22]))),Sn=E(()=>O(()=>import(`./Settings-Ccrmh7u8.js`),__vite__mapDeps([23,1,8,9,10,11,24]))),Cn=E(()=>O(()=>import(`./Status-CO5w5a1E.js`),__vite__mapDeps([25,1,8,9,10]))),wn=E(()=>O(()=>import(`./ZenMode-C3S7FmYt.js`),__vite__mapDeps([26,1,7,8,9,10]))),Tn=E(()=>O(()=>import(`./Stop-BWZOcpvU.js`),__vite__mapDeps([27,1,2,3,8,10,28,21,13,22]))),En=E(()=>O(()=>import(`./Line-6nd7KD0E.js`),__vite__mapDeps([29,1,2,3,20,19,21,13,6,8,9,10,12,28,24]))),Dn=E(()=>O(()=>import(`./NotFound-BozS7u6u.js`),__vite__mapDeps([30,1,28,2,3,8])));function On(){return d(fn,{children:d(xe,{children:d(hn,{children:d(ut,{children:d(at,{children:d(v,{children:d(on,{children:d(me,{children:d(s,{children:[d(o,{path:`/`,component:yn}),d(o,{path:`/about`,component:gn}),d(o,{path:`/admin`,component:_n}),d(o,{path:`/debug`,component:vn}),d(o,{path:`/line/:id`,component:En}),d(o,{path:`/nearby`,component:bn}),d(o,{path:`/service/:sourceId/:intrasourceId`,component:xn}),d(o,{path:`/settings`,component:Sn}),d(o,{path:`/status`,component:Cn}),d(o,{path:`/stop/:id`,component:Tn}),d(o,{path:`/zen`,component:wn}),d(o,{default:!0,component:Dn})]})})})})})})})})})}ee(d(On,{}),document.body);export{F as _,Pt as a,X as c,G as d,U as f,I as g,L as h,Ft as i,Y as l,R as m,pn as n,Z as o,V as p,Xt as r,yt as s,mn as t,st as u,A as v};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-duration:initial}}}@layer theme{:root,:host{--default-font-family:"Mona Sans", system-ui, sans-serif;--spacing:.25rem;--text-xs:.6rem;--text-sm:.75rem;--text-md:.9rem;--text-mdlg:1rem;--text-lg:1.1rem;--text-xl:1.25rem;--text-2xl:1.75rem;--text-icon-md:1rem;--text-icon-lg:1.25rem;--text-icon-xl:1.5rem;--font-weight-normal:400;--font-weight-bold:700;--radius-sm:.25rem;--radius-lg:.75rem;--color-bg:#e9edf3;--color-bg-raised:#f5f6fa;--color-bg-navbar:#fff;--color-fg:#000714cc;--color-fg-strong:#000;--color-fg-weak:#000e2999;--color-accent:#1773cf;--color-accent-hover:#1a80e6;--color-accent-active:#1466b8;--color-accent-text:#06c;--color-soft-accent:#1773cf26;--color-on-accent:#fff;--color-soft:#001e5a1f;--color-soft-hover:#001f5e14;--color-soft-active:#001d5629;--color-soft-border:#c2c9d6;--color-soft-border-disabled:#d1d6e0;--color-placeholder:#0018474d;--color-error:#a11212;--color-error-hover:#b81414;--color-error-active:#8a0f0f;--color-error-text:#b30000;--color-soft-error:#b3000026;--color-on-error:#fff;--color-warning:#b88114;--color-warning-hover:#cf9117;--color-warning-active:#a17112;--color-warning-text:#b37700;--color-soft-warning:#e6990033;--color-on-warning:#fff;--color-success:#1f7a2e;--color-success-hover:#248f36;--color-success-active:#196626;--color-success-text:#1f7a2e;--color-soft-success:#00991926;--color-on-success:#fff;--animate-placeholder-pulse:placeholder-pulse 1s ease-in-out infinite}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}svg._loading-spinner{animation:1s ease-out infinite loading-spinner-flip}._loading-spinner circle:nth-child(2){transform-origin:25% 25%;animation:1s linear infinite loading-spinner-pulse}._loading-spinner circle:nth-child(3){transform-origin:75% 25%;animation:1s linear .1s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(4){transform-origin:75% 75%;animation:1s linear .2s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(5){transform-origin:25% 75%;animation:1s linear .3s infinite loading-spinner-pulse}@keyframes loading-spinner-pulse{0%{transform:scale(1)}10%{transform:scale(2)}30%{transform:scale(1)}}@keyframes loading-spinner-flip{0%{transform:rotate(0)}60%{transform:rotate(0)}to{transform:rotate(180deg)}}*{flex-shrink:0}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:0}.top-1{top:var(--spacing)}.top-\[50\%\]{top:50%}.right-0{right:0}.right-3{right:calc(var(--spacing) * 3)}.bottom-0{bottom:0}.left-0{left:0}.left-4{left:calc(var(--spacing) * 4)}.z-0{z-index:0}.z-1{z-index:1}.col-1{grid-column:1}.col-2{grid-column:2}.col-3{grid-column:3}.col-start-2{grid-column-start:2}.row-1{grid-row:1}.row-2{grid-row:2}.row-span-full{grid-row:1/-1}.container{width:100%}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}.mx-4{margin-inline:calc(var(--spacing) * 4)}.-my-\[0\.13em\]{margin-block:-.13em}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-\[-0\.38em\]{margin-top:-.38em}.-mb-0\.5{margin-bottom:calc(var(--spacing) * -.5)}.mb-\[-0\.38em\]{margin-bottom:-.38em}.-ml-4{margin-left:calc(var(--spacing) * -4)}.box-content{box-sizing:content-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-8{height:calc(var(--spacing) * 8)}.h-8\.5{height:calc(var(--spacing) * 8.5)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-18{height:calc(var(--spacing) * 18)}.h-24{height:calc(var(--spacing) * 24)}.h-32{height:calc(var(--spacing) * 32)}.h-\[1em\]{height:1em}.h-full{height:100%}.h-svh{height:100svh}.max-h-\[calc\(100vh-12rem\)\]{max-height:calc(100vh - 12rem)}.min-h-8{min-height:calc(var(--spacing) * 8)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-svh{min-height:100svh}.w-2{width:calc(var(--spacing) * 2)}.w-4{width:calc(var(--spacing) * 4)}.w-12{width:calc(var(--spacing) * 12)}.w-24{width:calc(var(--spacing) * 24)}.w-\[1em\]{width:1em}.w-\[20\%\]{width:20%}.w-\[30\%\]{width:30%}.w-\[40\%\]{width:40%}.w-\[50\%\]{width:50%}.w-\[60\%\]{width:60%}.w-\[80\%\]{width:80%}.w-full{width:100%}.w-svw{width:100svw}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-min{min-width:min-content}.shrink{flex-shrink:1}.grow{flex-grow:1}.-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-placeholder-pulse{animation:var(--animate-placeholder-pulse)}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-\[0px_1fr_0px\]{grid-template-columns:0 1fr 0}.grid-cols-\[1fr_1fr\]{grid-template-columns:1fr 1fr}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-cols-\[auto_auto_auto\]{grid-template-columns:auto auto auto}.grid-cols-\[repeat\(auto-fit\,minmax\(0\,1fr\)\)\]{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-12{gap:calc(var(--spacing) * 12)}.gap-16{gap:calc(var(--spacing) * 16)}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-8{row-gap:calc(var(--spacing) * 8)}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-soft-border>:not(:last-child)){border-color:var(--color-soft-border)}.self-center{align-self:center}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-scroll{overflow-y:scroll}.rounded-full{border-radius:2147483647px}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y-2{border-block-style:var(--tw-border-style);border-block-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-accent{border-color:var(--color-accent)}.border-soft-border{border-color:var(--color-soft-border)}.border-y-transparent{border-block-color:#0000}.border-b-accent{border-bottom-color:var(--color-accent)}.border-b-soft-border{border-bottom-color:var(--color-soft-border)}.bg-accent{background-color:var(--color-accent)}.bg-bg{background-color:var(--color-bg)}.bg-bg-navbar{background-color:var(--color-bg-navbar)}.bg-bg-raised{background-color:var(--color-bg-raised)}.bg-error-text{background-color:var(--color-error-text)}.bg-placeholder{background-color:var(--color-placeholder)}.bg-soft-accent{background-color:var(--color-soft-accent)}.bg-soft-error{background-color:var(--color-soft-error)}.bg-soft-success{background-color:var(--color-soft-success)}.bg-soft-warning{background-color:var(--color-soft-warning)}.bg-success-text{background-color:var(--color-success-text)}.bg-transparent{background-color:#0000}.bg-warning-text{background-color:var(--color-warning-text)}.p-4{padding:calc(var(--spacing) * 4)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-4\.5{padding-block:calc(var(--spacing) * 4.5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-12{padding-left:calc(var(--spacing) * 12)}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-2xl{font-size:var(--text-2xl)}.text-icon-lg{font-size:var(--text-icon-lg)}.text-icon-md{font-size:var(--text-icon-md)}.text-icon-xl{font-size:var(--text-icon-xl)}.text-lg{font-size:var(--text-lg)}.text-md{font-size:var(--text-md)}.text-mdlg{font-size:var(--text-mdlg)}.text-sm{font-size:var(--text-sm)}.text-xl{font-size:var(--text-xl)}.text-xs{font-size:var(--text-xs)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-accent-text{color:var(--color-accent-text)}.text-fg{color:var(--color-fg)}.text-fg-strong{color:var(--color-fg-strong)}.text-fg-weak{color:var(--color-fg-weak)}.text-success-text{color:var(--color-success-text)}.italic{font-style:italic}.font-stretch-semi-condensed{font-stretch:87.5%}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-97{opacity:.97}.transition-\[opacity\,visibility\,translate\]{transition-property:opacity,visibility,translate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-\[opacity\,visibility\]{transition-property:opacity,visibility;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[--color-fg-strong\:var\(--color-accent-text\)\]{--color-fg-strong:var(--color-accent-text)}.\[--color-fg-strong\:var\(--color-error-text\)\]{--color-fg-strong:var(--color-error-text)}.\[--color-fg-strong\:var\(--color-on-accent\)\]{--color-fg-strong:var(--color-on-accent)}.\[--color-fg-strong\:var\(--color-success-text\)\]{--color-fg-strong:var(--color-success-text)}.\[--color-fg-strong\:var\(--color-warning-text\)\]{--color-fg-strong:var(--color-warning-text)}.\[--color-fg-weak\:var\(--color-accent-text\)\]{--color-fg-weak:var(--color-accent-text)}.\[--color-fg-weak\:var\(--color-error-text\)\]{--color-fg-weak:var(--color-error-text)}.\[--color-fg-weak\:var\(--color-on-accent\)\]{--color-fg-weak:var(--color-on-accent)}.\[--color-fg-weak\:var\(--color-success-text\)\]{--color-fg-weak:var(--color-success-text)}.\[--color-fg-weak\:var\(--color-warning-text\)\]{--color-fg-weak:var(--color-warning-text)}.\[--color-fg\:var\(--color-accent-text\)\]{--color-fg:var(--color-accent-text)}.\[--color-fg\:var\(--color-error-text\)\]{--color-fg:var(--color-error-text)}.\[--color-fg\:var\(--color-on-accent\)\]{--color-fg:var(--color-on-accent)}.\[--color-fg\:var\(--color-success-text\)\]{--color-fg:var(--color-success-text)}.\[--color-fg\:var\(--color-warning-text\)\]{--color-fg:var(--color-warning-text)}.not-disabled\:cursor-pointer:not(:disabled){cursor:pointer}.not-disabled\:\[--color-fg-strong\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-strong:var(--color-on-accent)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-error\)\]:not(:disabled){--color-fg-strong:var(--color-on-error)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-success\)\]:not(:disabled){--color-fg-strong:var(--color-on-success)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-strong:var(--color-on-warning)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-weak:var(--color-on-accent)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-error\)\]:not(:disabled){--color-fg-weak:var(--color-on-error)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-success\)\]:not(:disabled){--color-fg-weak:var(--color-on-success)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-weak:var(--color-on-warning)}.not-disabled\:\[--color-fg\:var\(--color-on-accent\)\]:not(:disabled){--color-fg:var(--color-on-accent)}.not-disabled\:\[--color-fg\:var\(--color-on-error\)\]:not(:disabled){--color-fg:var(--color-on-error)}.not-disabled\:\[--color-fg\:var\(--color-on-success\)\]:not(:disabled){--color-fg:var(--color-on-success)}.not-disabled\:\[--color-fg\:var\(--color-on-warning\)\]:not(:disabled){--color-fg:var(--color-on-warning)}@media not all and (width>=48rem){.not-desktop\:bottom-0{bottom:0}.not-desktop\:row-1{grid-row:1}.not-desktop\:hidden{display:none}.not-desktop\:translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.not-desktop\:grid-rows-\[1fr_auto\]{grid-template-rows:1fr auto}.not-desktop\:border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.not-desktop\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.not-desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.not-desktop\:border-soft-border{border-color:var(--color-soft-border)}.not-desktop\:bg-bg-navbar{background-color:var(--color-bg-navbar)}.not-desktop\:px-4{padding-inline:calc(var(--spacing) * 4)}.not-desktop\:pt-6{padding-top:calc(var(--spacing) * 6)}.not-desktop\:pr-2{padding-right:calc(var(--spacing) * 2)}.not-desktop\:pb-18{padding-bottom:calc(var(--spacing) * 18)}.not-desktop\:pl-4{padding-left:calc(var(--spacing) * 4)}}.group-not-disabled\:border-soft-border:is(:where(.group):not(:disabled) *){border-color:var(--color-soft-border)}.group-not-disabled\:border-transparent:is(:where(.group):not(:disabled) *){border-color:#0000}.group-not-disabled\:bg-accent:is(:where(.group):not(:disabled) *){background-color:var(--color-accent)}.group-not-disabled\:bg-error:is(:where(.group):not(:disabled) *){background-color:var(--color-error)}.group-not-disabled\:bg-soft:is(:where(.group):not(:disabled) *){background-color:var(--color-soft)}.group-not-disabled\:bg-success:is(:where(.group):not(:disabled) *){background-color:var(--color-success)}.group-not-disabled\:bg-transparent:is(:where(.group):not(:disabled) *){background-color:#0000}.group-not-disabled\:bg-warning:is(:where(.group):not(:disabled) *){background-color:var(--color-warning)}@media (hover:hover){.group-hover\:bg-accent-hover:is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-hover\:bg-soft:is(:where(.group):hover *){background-color:var(--color-soft)}.group-hover\:bg-soft-hover:is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-accent-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-not-disabled\:group-hover\:bg-error-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-error-hover)}.group-not-disabled\:group-hover\:bg-soft-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-success-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-success-hover)}.group-not-disabled\:group-hover\:bg-warning-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-warning-hover)}}.group-active\:bg-accent-active:is(:where(.group):active *){background-color:var(--color-accent-active)}.group-active\:bg-soft-active:is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-accent-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-accent-active)}.group-not-disabled\:group-active\:bg-error-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-error-active)}.group-not-disabled\:group-active\:bg-soft-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-success-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-success-active)}.group-not-disabled\:group-active\:bg-warning-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-warning-active)}.group-disabled\:border-soft-border-disabled:is(:where(.group):disabled *){border-color:var(--color-soft-border-disabled)}.placeholder\:font-normal::placeholder{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.placeholder\:text-fg-weak::placeholder{color:var(--color-fg-weak)}@media not all and (width>=48rem){.not-desktop\:last\:-mb-px:last-child{margin-bottom:-1px}}@media (hover:hover){.hover\:underline:hover{text-decoration-line:underline}}.disabled\:\[--color-fg-strong\:var\(--color-fg-weak\)\]:disabled{--color-fg-strong:var(--color-fg-weak)}.disabled\:\[--color-fg\:var\(--color-fg-weak\)\]:disabled{--color-fg:var(--color-fg-weak)}@media (width>=48rem){.desktop\:top-0{top:0}.desktop\:row-2{grid-row:2}.desktop\:mx-4{margin-inline:calc(var(--spacing) * 4)}.desktop\:hidden{display:none}.desktop\:h-8{height:calc(var(--spacing) * 8)}.desktop\:max-w-150{max-width:calc(var(--spacing) * 150)}.desktop\:-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.desktop\:grid-cols-\[1fr_1fr\]{grid-template-columns:1fr 1fr}.desktop\:grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.desktop\:flex-col-reverse{flex-direction:column-reverse}.desktop\:gap-2{gap:calc(var(--spacing) * 2)}.desktop\:gap-6{gap:calc(var(--spacing) * 6)}.desktop\:rounded-lg{border-radius:var(--radius-lg)}.desktop\:border{border-style:var(--tw-border-style);border-width:1px}.desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.desktop\:border-soft-border{border-color:var(--color-soft-border)}.desktop\:px-4{padding-inline:calc(var(--spacing) * 4)}.desktop\:py-8{padding-block:calc(var(--spacing) * 8)}.desktop\:pt-6{padding-top:calc(var(--spacing) * 6)}.desktop\:pt-8{padding-top:calc(var(--spacing) * 8)}.desktop\:pt-12{padding-top:calc(var(--spacing) * 12)}.desktop\:pb-4{padding-bottom:calc(var(--spacing) * 4)}.desktop\:pl-11{padding-left:calc(var(--spacing) * 11)}.desktop\:text-icon-lg{font-size:var(--text-icon-lg)}.desktop\:text-md{font-size:var(--text-md)}}@media (width>=64rem){.widescreen\:grid-cols-\[1fr_64rem_1fr\]{grid-template-columns:1fr 64rem 1fr}}}body{background-color:var(--color-bg-navbar);font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility}body.light,body.light dialog{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){body:not(.light),body:not(.light) dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#3f485a;--color-soft-border-disabled:#343c4b;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}}body.dark,body.dark dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#3f485a;--color-soft-border-disabled:#343c4b;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}@font-face{font-family:Mona Sans;font-weight:200 900;font-display:swap;src:url(/mona-sans.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes placeholder-pulse{0%,to{opacity:.5}50%{opacity:1}}
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-duration:initial}}}@layer theme{:root,:host{--default-font-family:"Mona Sans", system-ui, sans-serif;--spacing:.25rem;--text-xs:.6rem;--text-sm:.75rem;--text-md:.9rem;--text-mdlg:1rem;--text-lg:1.1rem;--text-xl:1.25rem;--text-2xl:1.75rem;--text-icon-md:1rem;--text-icon-lg:1.25rem;--text-icon-xl:1.5rem;--font-weight-normal:400;--font-weight-bold:700;--radius-sm:.25rem;--radius-lg:.75rem;--color-bg:#e9edf3;--color-bg-raised:#f5f6fa;--color-bg-navbar:#fff;--color-fg:#000714cc;--color-fg-strong:#000;--color-fg-weak:#000e2999;--color-accent:#1773cf;--color-accent-hover:#1a80e6;--color-accent-active:#1466b8;--color-accent-text:#06c;--color-soft-accent:#1773cf26;--color-on-accent:#fff;--color-soft:#001e5a1f;--color-soft-hover:#001f5e14;--color-soft-active:#001d5629;--color-soft-border:#c2c9d6;--color-soft-border-disabled:#d1d6e0;--color-placeholder:#0018474d;--color-error:#a11212;--color-error-hover:#b81414;--color-error-active:#8a0f0f;--color-error-text:#b30000;--color-soft-error:#b3000026;--color-on-error:#fff;--color-warning:#b88114;--color-warning-hover:#cf9117;--color-warning-active:#a17112;--color-warning-text:#b37700;--color-soft-warning:#e6990033;--color-on-warning:#fff;--color-success:#1f7a2e;--color-success-hover:#248f36;--color-success-active:#196626;--color-success-text:#1f7a2e;--color-soft-success:#00991926;--color-on-success:#fff;--animate-placeholder-pulse:placeholder-pulse 1s ease-in-out infinite}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}svg._loading-spinner{animation:1s ease-out infinite loading-spinner-flip}._loading-spinner circle:nth-child(2){transform-origin:25% 25%;animation:1s linear infinite loading-spinner-pulse}._loading-spinner circle:nth-child(3){transform-origin:75% 25%;animation:1s linear .1s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(4){transform-origin:75% 75%;animation:1s linear .2s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(5){transform-origin:25% 75%;animation:1s linear .3s infinite loading-spinner-pulse}@keyframes loading-spinner-pulse{0%{transform:scale(1)}10%{transform:scale(2)}30%{transform:scale(1)}}@keyframes loading-spinner-flip{0%{transform:rotate(0)}60%{transform:rotate(0)}to{transform:rotate(180deg)}}*{flex-shrink:0}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:0}.top-1{top:var(--spacing)}.top-\[50\%\]{top:50%}.right-0{right:0}.right-3{right:calc(var(--spacing) * 3)}.bottom-0{bottom:0}.left-0{left:0}.left-4{left:calc(var(--spacing) * 4)}.z-0{z-index:0}.z-1{z-index:1}.col-1{grid-column:1}.col-2{grid-column:2}.col-3{grid-column:3}.col-start-2{grid-column-start:2}.row-1{grid-row:1}.row-2{grid-row:2}.row-span-full{grid-row:1/-1}.container{width:100%}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}.mx-4{margin-inline:calc(var(--spacing) * 4)}.-my-\[0\.13em\]{margin-block:-.13em}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-\[-0\.38em\]{margin-top:-.38em}.-mb-0\.5{margin-bottom:calc(var(--spacing) * -.5)}.mb-\[-0\.38em\]{margin-bottom:-.38em}.-ml-4{margin-left:calc(var(--spacing) * -4)}.box-content{box-sizing:content-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-8{height:calc(var(--spacing) * 8)}.h-8\.5{height:calc(var(--spacing) * 8.5)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-18{height:calc(var(--spacing) * 18)}.h-24{height:calc(var(--spacing) * 24)}.h-32{height:calc(var(--spacing) * 32)}.h-\[1em\]{height:1em}.h-full{height:100%}.h-svh{height:100svh}.max-h-\[calc\(100vh-12rem\)\]{max-height:calc(100vh - 12rem)}.min-h-8{min-height:calc(var(--spacing) * 8)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-svh{min-height:100svh}.w-2{width:calc(var(--spacing) * 2)}.w-4{width:calc(var(--spacing) * 4)}.w-12{width:calc(var(--spacing) * 12)}.w-24{width:calc(var(--spacing) * 24)}.w-\[1em\]{width:1em}.w-\[20\%\]{width:20%}.w-\[30\%\]{width:30%}.w-\[40\%\]{width:40%}.w-\[50\%\]{width:50%}.w-\[60\%\]{width:60%}.w-\[80\%\]{width:80%}.w-full{width:100%}.w-svw{width:100svw}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-min{min-width:min-content}.shrink{flex-shrink:1}.grow{flex-grow:1}.-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-placeholder-pulse{animation:var(--animate-placeholder-pulse)}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-\[0px_1fr_0px\]{grid-template-columns:0 1fr 0}.grid-cols-\[1fr_1fr\]{grid-template-columns:1fr 1fr}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-cols-\[auto_auto_auto\]{grid-template-columns:auto auto auto}.grid-cols-\[repeat\(auto-fit\,minmax\(0\,1fr\)\)\]{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-12{gap:calc(var(--spacing) * 12)}.gap-16{gap:calc(var(--spacing) * 16)}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-8{row-gap:calc(var(--spacing) * 8)}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-soft-border>:not(:last-child)){border-color:var(--color-soft-border)}.self-center{align-self:center}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-scroll{overflow-y:scroll}.rounded-full{border-radius:2147483647px}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y-2{border-block-style:var(--tw-border-style);border-block-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-accent{border-color:var(--color-accent)}.border-soft-border{border-color:var(--color-soft-border)}.border-y-transparent{border-block-color:#0000}.border-b-accent{border-bottom-color:var(--color-accent)}.border-b-soft-border{border-bottom-color:var(--color-soft-border)}.bg-accent{background-color:var(--color-accent)}.bg-bg{background-color:var(--color-bg)}.bg-bg-navbar{background-color:var(--color-bg-navbar)}.bg-bg-raised{background-color:var(--color-bg-raised)}.bg-error-text{background-color:var(--color-error-text)}.bg-placeholder{background-color:var(--color-placeholder)}.bg-soft-accent{background-color:var(--color-soft-accent)}.bg-soft-error{background-color:var(--color-soft-error)}.bg-soft-success{background-color:var(--color-soft-success)}.bg-soft-warning{background-color:var(--color-soft-warning)}.bg-success-text{background-color:var(--color-success-text)}.bg-transparent{background-color:#0000}.bg-warning-text{background-color:var(--color-warning-text)}.p-4{padding:calc(var(--spacing) * 4)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-4\.5{padding-block:calc(var(--spacing) * 4.5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-12{padding-left:calc(var(--spacing) * 12)}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-2xl{font-size:var(--text-2xl)}.text-icon-lg{font-size:var(--text-icon-lg)}.text-icon-md{font-size:var(--text-icon-md)}.text-icon-xl{font-size:var(--text-icon-xl)}.text-lg{font-size:var(--text-lg)}.text-md{font-size:var(--text-md)}.text-mdlg{font-size:var(--text-mdlg)}.text-sm{font-size:var(--text-sm)}.text-xl{font-size:var(--text-xl)}.text-xs{font-size:var(--text-xs)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-accent-text{color:var(--color-accent-text)}.text-fg{color:var(--color-fg)}.text-fg-strong{color:var(--color-fg-strong)}.text-fg-weak{color:var(--color-fg-weak)}.text-success-text{color:var(--color-success-text)}.italic{font-style:italic}.font-stretch-semi-condensed{font-stretch:87.5%}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-97{opacity:.97}.transition-\[opacity\,visibility\,translate\]{transition-property:opacity,visibility,translate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-\[opacity\,visibility\]{transition-property:opacity,visibility;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[--color-fg-strong\:var\(--color-accent-text\)\]{--color-fg-strong:var(--color-accent-text)}.\[--color-fg-strong\:var\(--color-error-text\)\]{--color-fg-strong:var(--color-error-text)}.\[--color-fg-strong\:var\(--color-on-accent\)\]{--color-fg-strong:var(--color-on-accent)}.\[--color-fg-strong\:var\(--color-success-text\)\]{--color-fg-strong:var(--color-success-text)}.\[--color-fg-strong\:var\(--color-warning-text\)\]{--color-fg-strong:var(--color-warning-text)}.\[--color-fg-weak\:var\(--color-accent-text\)\]{--color-fg-weak:var(--color-accent-text)}.\[--color-fg-weak\:var\(--color-error-text\)\]{--color-fg-weak:var(--color-error-text)}.\[--color-fg-weak\:var\(--color-on-accent\)\]{--color-fg-weak:var(--color-on-accent)}.\[--color-fg-weak\:var\(--color-success-text\)\]{--color-fg-weak:var(--color-success-text)}.\[--color-fg-weak\:var\(--color-warning-text\)\]{--color-fg-weak:var(--color-warning-text)}.\[--color-fg\:var\(--color-accent-text\)\]{--color-fg:var(--color-accent-text)}.\[--color-fg\:var\(--color-error-text\)\]{--color-fg:var(--color-error-text)}.\[--color-fg\:var\(--color-on-accent\)\]{--color-fg:var(--color-on-accent)}.\[--color-fg\:var\(--color-success-text\)\]{--color-fg:var(--color-success-text)}.\[--color-fg\:var\(--color-warning-text\)\]{--color-fg:var(--color-warning-text)}.not-disabled\:cursor-pointer:not(:disabled){cursor:pointer}.not-disabled\:\[--color-fg-strong\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-strong:var(--color-on-accent)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-error\)\]:not(:disabled){--color-fg-strong:var(--color-on-error)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-success\)\]:not(:disabled){--color-fg-strong:var(--color-on-success)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-strong:var(--color-on-warning)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-weak:var(--color-on-accent)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-error\)\]:not(:disabled){--color-fg-weak:var(--color-on-error)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-success\)\]:not(:disabled){--color-fg-weak:var(--color-on-success)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-weak:var(--color-on-warning)}.not-disabled\:\[--color-fg\:var\(--color-on-accent\)\]:not(:disabled){--color-fg:var(--color-on-accent)}.not-disabled\:\[--color-fg\:var\(--color-on-error\)\]:not(:disabled){--color-fg:var(--color-on-error)}.not-disabled\:\[--color-fg\:var\(--color-on-success\)\]:not(:disabled){--color-fg:var(--color-on-success)}.not-disabled\:\[--color-fg\:var\(--color-on-warning\)\]:not(:disabled){--color-fg:var(--color-on-warning)}@media not all and (width>=48rem){.not-desktop\:bottom-0{bottom:0}.not-desktop\:row-1{grid-row:1}.not-desktop\:hidden{display:none}.not-desktop\:translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.not-desktop\:grid-rows-\[1fr_auto\]{grid-template-rows:1fr auto}.not-desktop\:border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.not-desktop\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.not-desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.not-desktop\:border-soft-border{border-color:var(--color-soft-border)}.not-desktop\:bg-bg-navbar{background-color:var(--color-bg-navbar)}.not-desktop\:px-4{padding-inline:calc(var(--spacing) * 4)}.not-desktop\:pt-6{padding-top:calc(var(--spacing) * 6)}.not-desktop\:pr-2{padding-right:calc(var(--spacing) * 2)}.not-desktop\:pb-18{padding-bottom:calc(var(--spacing) * 18)}.not-desktop\:pl-4{padding-left:calc(var(--spacing) * 4)}}.group-not-disabled\:border-soft-border:is(:where(.group):not(:disabled) *){border-color:var(--color-soft-border)}.group-not-disabled\:border-transparent:is(:where(.group):not(:disabled) *){border-color:#0000}.group-not-disabled\:bg-accent:is(:where(.group):not(:disabled) *){background-color:var(--color-accent)}.group-not-disabled\:bg-error:is(:where(.group):not(:disabled) *){background-color:var(--color-error)}.group-not-disabled\:bg-soft:is(:where(.group):not(:disabled) *){background-color:var(--color-soft)}.group-not-disabled\:bg-success:is(:where(.group):not(:disabled) *){background-color:var(--color-success)}.group-not-disabled\:bg-transparent:is(:where(.group):not(:disabled) *){background-color:#0000}.group-not-disabled\:bg-warning:is(:where(.group):not(:disabled) *){background-color:var(--color-warning)}@media (hover:hover){.group-hover\:bg-accent-hover:is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-hover\:bg-soft:is(:where(.group):hover *){background-color:var(--color-soft)}.group-hover\:bg-soft-hover:is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-accent-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-not-disabled\:group-hover\:bg-error-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-error-hover)}.group-not-disabled\:group-hover\:bg-soft-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-success-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-success-hover)}.group-not-disabled\:group-hover\:bg-warning-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-warning-hover)}}.group-active\:bg-accent-active:is(:where(.group):active *){background-color:var(--color-accent-active)}.group-active\:bg-soft-active:is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-accent-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-accent-active)}.group-not-disabled\:group-active\:bg-error-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-error-active)}.group-not-disabled\:group-active\:bg-soft-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-success-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-success-active)}.group-not-disabled\:group-active\:bg-warning-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-warning-active)}.group-disabled\:border-soft-border-disabled:is(:where(.group):disabled *){border-color:var(--color-soft-border-disabled)}.placeholder\:font-normal::placeholder{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.placeholder\:text-fg-weak::placeholder{color:var(--color-fg-weak)}@media not all and (width>=48rem){.not-desktop\:last\:-mb-px:last-child{margin-bottom:-1px}}.empty\:hidden:empty{display:none}@media (hover:hover){.hover\:underline:hover{text-decoration-line:underline}}.disabled\:\[--color-fg-strong\:var\(--color-fg-weak\)\]:disabled{--color-fg-strong:var(--color-fg-weak)}.disabled\:\[--color-fg\:var\(--color-fg-weak\)\]:disabled{--color-fg:var(--color-fg-weak)}@media (width>=48rem){.desktop\:top-0{top:0}.desktop\:row-2{grid-row:2}.desktop\:mx-4{margin-inline:calc(var(--spacing) * 4)}.desktop\:hidden{display:none}.desktop\:h-8{height:calc(var(--spacing) * 8)}.desktop\:max-w-150{max-width:calc(var(--spacing) * 150)}.desktop\:-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.desktop\:grid-cols-\[1fr_1fr\]{grid-template-columns:1fr 1fr}.desktop\:grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.desktop\:flex-col-reverse{flex-direction:column-reverse}.desktop\:gap-2{gap:calc(var(--spacing) * 2)}.desktop\:gap-6{gap:calc(var(--spacing) * 6)}.desktop\:rounded-lg{border-radius:var(--radius-lg)}.desktop\:border{border-style:var(--tw-border-style);border-width:1px}.desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.desktop\:border-soft-border{border-color:var(--color-soft-border)}.desktop\:px-4{padding-inline:calc(var(--spacing) * 4)}.desktop\:py-8{padding-block:calc(var(--spacing) * 8)}.desktop\:pt-6{padding-top:calc(var(--spacing) * 6)}.desktop\:pt-8{padding-top:calc(var(--spacing) * 8)}.desktop\:pt-12{padding-top:calc(var(--spacing) * 12)}.desktop\:pb-4{padding-bottom:calc(var(--spacing) * 4)}.desktop\:pl-11{padding-left:calc(var(--spacing) * 11)}.desktop\:text-icon-lg{font-size:var(--text-icon-lg)}.desktop\:text-md{font-size:var(--text-md)}}@media (width>=64rem){.widescreen\:grid-cols-\[1fr_64rem_1fr\]{grid-template-columns:1fr 64rem 1fr}}}body{background-color:var(--color-bg-navbar);font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility}body.light,body.light dialog{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){body:not(.light),body:not(.light) dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#3f485a;--color-soft-border-disabled:#343c4b;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}}body.dark,body.dark dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#3f485a;--color-soft-border-disabled:#343c4b;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}@font-face{font-family:Mona Sans;font-weight:200 900;font-display:swap;src:url(/mona-sans.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes placeholder-pulse{0%,to{opacity:.5}50%{opacity:1}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,c as t,g as n,h as r,l as i,r as a,s as o,v as s,y as c}from"./use-nav-exemptions-QtGbfEPT.js";import"./use-api-BJomuYg6.js";import{t as l}from"./scope-B-e4l8Dr.js";import{d as u}from"./index-
|
|
1
|
+
import{_ as e,c as t,g as n,h as r,l as i,r as a,s as o,v as s,y as c}from"./use-nav-exemptions-QtGbfEPT.js";import"./use-api-BJomuYg6.js";import{t as l}from"./scope-B-e4l8Dr.js";import{d as u}from"./index-CrhwkQ9k.js";import{t as d}from"./ErrorMessage-CCAB4vXB.js";function f(e){if(!/^-?[0-9]+$/g.test(e))throw m(e);return parseInt(e,10)}function p(e){return/^-?[0-9]+$/g.test(e)?parseInt(e,10):null}var m=e=>Error(`"${e}" is not an integer.`),h=class{_canvasContainer;_canvas;ctx;_resizeListener;_resizeObserver;_data;_width;_height;_dpiRatio;_dirty;_running;constructor(e,t){this._canvasContainer=e,this._canvas=t;let n=this._canvas.getContext(`2d`);if(n==null)throw Error(`Failed to get 2D rendering context.`);this.ctx=n,this._resizeListener=this._onResize.bind(this),this._resizeObserver=new ResizeObserver(this._resizeListener),this._data=null,this._width=1,this._height=1,this._dpiRatio=1,this._dirty=!0,this._running=!1}get data(){if(this._data==null)throw Error(`Data not set.`);return this._data}get width(){return this._width}get height(){return this._height}setData(e){this._data=e,this.onDataUpdated(),this._dirty=!0,this._running||this._start()}_start(){this._fitCanvas(),this._running=!0,this._render(),window.addEventListener(`resize`,this._resizeListener),this._resizeObserver.observe(this._canvasContainer),this.onStart()}destroy(){this._running=!1,window.removeEventListener(`resize`,this._resizeListener),this._resizeObserver.unobserve(this._canvasContainer),this.onDestroy()}_render(){this._running&&(requestAnimationFrame(()=>{this._render()}),this._dirty&&(this._dirty=!1,this.ctx.save(),this.ctx.clearRect(0,0,this._width*this._dpiRatio,this._height*this._dpiRatio),this.ctx.scale(this._dpiRatio,this._dpiRatio),this.onRender(),this.ctx.restore()))}onStart(){}onDestroy(){}onDataUpdated(){}_onResize(){this._fitCanvas()}_fitCanvas(){let e=this._canvasContainer.getBoundingClientRect();this._width=e.width,this._height=e.height;let t=window.devicePixelRatio??1,n=this.ctx.backingStorePixelRatio??1;this._dpiRatio=t/n,this._canvas.style.width=`${this._width}px`,this._canvas.style.height=`${this._height}px`,this._canvas.width=this._width*this._dpiRatio,this._canvas.height=this._height*this._dpiRatio,this._dirty=!0}markDirty(){this._dirty=!0}};function g(e){let{data:a,createController:o}=e,c=n(null),l=n(null),[u,d]=s(null),f=e.interceptTouches??!1?{touchAction:`none`}:void 0;return r(()=>{if(c.current==null||l.current==null)return;let e=o(c.current,l.current);return d(e),()=>{e?.destroy()}},[o]),r(()=>{u?.setData(a)},[u,a]),i(`div`,{ref:c,className:t(e.class,`relative overflow-hidden`),children:i(`canvas`,{className:`absolute top-0 left-0`,ref:l,style:f})})}function _(){let e=window.getComputedStyle(document.body);return{bg:e.getPropertyValue(`--color-bg`),fg:e.getPropertyValue(`--color-fg`),"fg-strong":e.getPropertyValue(`--color-fg-strong`),"fg-weak":e.getPropertyValue(`--color-fg-weak`)}}var v=6,y=6,b=1,x=class extends h{_css;_prefersDark;constructor(e,t){super(e,t),this._css=_(),this._prefersDark=window.matchMedia(`(prefers-color-scheme: dark)`).matches}onRender(){this.ctx.strokeStyle=`#000000`,this._onRenderStructure(),this.ctx.globalCompositeOperation=`source-in`,this.ctx.fillStyle=this._getDiagramColor(),this.ctx.fillRect(0,0,this.width,this.height)}_renderSection({stops:e,x:t,yLevels:n,terminatesAtTop:r,terminatesAtBottom:i,notchSide:a}){if(e.length<1)throw Error(`Expecting at least one stop.`);if(e.length!==n.length)throw Error(`Bad length.`);let o=l(n[0]),s=l(n[n.length-1]);this._drawLine(e=>{e.moveTo(t,o-b),e.lineTo(t,s+b)}),e.forEach((o,s)=>{let c=l(n[s]),u=s===0&&r||s===e.length-1&&i;(o.drawMark??!0)&&this._drawMark(t,c,u,a)})}_drawLine(e){this.ctx.lineWidth=y,this.ctx.beginPath(),e(this.ctx),this.ctx.stroke()}_drawMark(e,t,n,r){let i={left:-1,right:1}[r];this.ctx.lineWidth=v,this.ctx.beginPath(),this.ctx.moveTo(n?e-8*i:e,t),this.ctx.lineTo(e+8*i,t),this.ctx.stroke()}_extractYLevels(e,t){let n=this._extractChildElements(t);if(e.length!==n.length)throw Error(`Bad length.`);return e.map((e,t)=>{let r=l(n[t]);return e.getOverriddenMarkYPosition==null?this._getDefaultMarkYPosition(r):e.getOverriddenMarkYPosition(r)})}_extractChildElements(e){let t=this._canvasContainer.parentElement?.querySelector(`.${e}`);if(t==null)throw Error(`Couldn't find "${e}".`);return Array.from(t.childNodes.values()).filter(e=>e instanceof HTMLElement)}_getDefaultMarkYPosition(e){let t=this._canvasContainer.getBoundingClientRect(),n=e.getBoundingClientRect();return n.top-t.top+n.height/2}_getDiagramColor(){let e={dark:`darkThemeColorHexCode`,light:`lightThemeColorHexCode`,auto:this._prefersDark?`darkThemeColorHexCode`:`lightThemeColorHexCode`}[this.data.colorTheme];return this.data[e]??this._css.fg}},S=class extends x{_onRenderStructure(){let e=this.data.structure;this._renderSection({stops:e.stops,x:this.width/2,yLevels:this._extractYLevels(e.stops,w),terminatesAtTop:!0,terminatesAtBottom:!0,notchSide:`right`})}};function C(e){return i(d,{class:e.class,text:`An error occurred while rendering this diagram`})}var w=`_diagram-stops`;function T(n){let{settings:r}=u(),s=e(()=>({structure:n.structure,lightThemeColorHexCode:n.lightThemeColorHexCode,darkThemeColorHexCode:n.darkThemeColorHexCode,colorTheme:r.theme}),[n.darkThemeColorHexCode,n.lightThemeColorHexCode,n.structure,r.theme]),l=c((e,t)=>new S(e,t),[]);return s.structure.stops.length<2?i(C,{}):i(o,{class:t(n.class,`grid-cols-[auto_1fr] gap-4`),children:[i(g,{class:`w-4`,createController:l,data:s}),i(a,{class:t(`gap-6`,w),children:n.structure.stops.map(e=>i(o,{children:e.content}))})]})}export{p as a,g as i,C as n,f as o,x as r,T as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,i as t,l as n,n as r,r as i}from"./use-nav-exemptions-QtGbfEPT.js";import{f as a}from"./index-
|
|
1
|
+
import{c as e,i as t,l as n,n as r,r as i}from"./use-nav-exemptions-QtGbfEPT.js";import{f as a}from"./index-CrhwkQ9k.js";import{n as o,t as s}from"./SimpleMobileHeaderContent-Ja68XAJd.js";function c(c){return{mobileHeader:n(s,{title:c.title,backHref:c.back?.href??null}),desktopHeader:n(r,{children:n(i,{class:e(`mx-4 py-4 gap-8 border-b border-soft-border`,{"pt-8":c.back==null,"pt-6":c.back!=null}),children:[c.back!=null&&n(a,{text:c.back.text,href:c.back.href,icon:o,class:`self-start`,layout:`narrow-icon`}),n(t,{style:`megatitle`,children:c.title})]})})}}export{c as t};
|
package/web/dist/index.html
CHANGED
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
<link rel="mask-icon" href="/favicon.svg" color="#FFFFFF" />
|
|
16
16
|
<meta name="theme-color" content="#242933" />
|
|
17
17
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-CrhwkQ9k.js"></script>
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/assets/use-nav-exemptions-QtGbfEPT.js">
|
|
20
20
|
<link rel="modulepreload" crossorigin href="/assets/use-api-BJomuYg6.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/assets/use-foundational-data-BEVQRFj9.js">
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/scope-B-e4l8Dr.js">
|
|
23
23
|
<link rel="modulepreload" crossorigin href="/assets/LinkText-sdmJpshg.js">
|
|
24
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
24
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DJPX60jz.css">
|
|
25
25
|
<link rel="manifest" href="/manifest.webmanifest"></head>
|
|
26
26
|
<body>
|
|
27
27
|
<script>
|
package/web/dist/reset.html
CHANGED
|
@@ -146,8 +146,9 @@
|
|
|
146
146
|
<div class="gap-2">
|
|
147
147
|
<p>When you click "Factory reset", it will:</p>
|
|
148
148
|
<ol class="gap-2">
|
|
149
|
-
<li>Unregister all service workers for this web app</li>
|
|
150
149
|
<li>Clear all local storage entries for this web app</li>
|
|
150
|
+
<li>Unregister all service workers for this web app</li>
|
|
151
|
+
<li>Clear all caches for this web app</li>
|
|
151
152
|
<li>Then, navigate you back to the homepage</li>
|
|
152
153
|
</ol>
|
|
153
154
|
</div>
|
|
@@ -167,13 +168,14 @@
|
|
|
167
168
|
</section>
|
|
168
169
|
<script>
|
|
169
170
|
const resetButton = document.getElementById("reset-button");
|
|
171
|
+
|
|
170
172
|
resetButton.addEventListener("click", async () => {
|
|
171
173
|
let anyFailures = false;
|
|
172
174
|
|
|
173
175
|
try {
|
|
174
176
|
localStorage.clear();
|
|
175
177
|
} catch (error) {
|
|
176
|
-
alert(
|
|
178
|
+
alert(`An error occurred while clearing local storage.\n\n${error}`);
|
|
177
179
|
anyFailures = true;
|
|
178
180
|
}
|
|
179
181
|
|
|
@@ -184,7 +186,9 @@
|
|
|
184
186
|
await registration.unregister();
|
|
185
187
|
}
|
|
186
188
|
} catch (error) {
|
|
187
|
-
alert(
|
|
189
|
+
alert(
|
|
190
|
+
`An error occurred while unregistering the service worker.\n\n${error}`,
|
|
191
|
+
);
|
|
188
192
|
anyFailures = true;
|
|
189
193
|
}
|
|
190
194
|
|
|
@@ -193,7 +197,7 @@
|
|
|
193
197
|
await window.caches.delete(cacheName);
|
|
194
198
|
}
|
|
195
199
|
} catch (error) {
|
|
196
|
-
alert(
|
|
200
|
+
alert(`An error occurred while clearing caches.\n\n${error}`);
|
|
197
201
|
anyFailures = true;
|
|
198
202
|
}
|
|
199
203
|
|
package/web/dist/sw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
if(!self.define){let s,e={};const l=(l,n)=>(l=new URL(l+".js",n).href,e[l]||new Promise(e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()}).then(()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s}));self.define=(n,i)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let u={};const o=s=>l(s,r),a={module:{uri:r},exports:u,require:o};e[r]=Promise.all(n.map(s=>a[s]||o(s))).then(s=>(i(...s),u))}}define(["./workbox-2fbc6a65"],function(s){"use strict";self.addEventListener("message",s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()}),s.precacheAndRoute([{url:"pwa-maskable-512x512.png",revision:"9e859d049e78f70ddb5872a3bce2622b"},{url:"pwa-maskable-192x192.png",revision:"f1e5f837a116221b26c9cb9447db5e92"},{url:"pwa-512x512.png",revision:"e5560dba9f85e2959637abbb546643cd"},{url:"pwa-192x192.png",revision:"8b590313fc6296f57d609982dc21f302"},{url:"mona-sans.woff2",revision:"b96cc834af467cf02885a067356abae7"},{url:"index.html",revision:"
|
|
1
|
+
if(!self.define){let s,e={};const l=(l,n)=>(l=new URL(l+".js",n).href,e[l]||new Promise(e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()}).then(()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s}));self.define=(n,i)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let u={};const o=s=>l(s,r),a={module:{uri:r},exports:u,require:o};e[r]=Promise.all(n.map(s=>a[s]||o(s))).then(s=>(i(...s),u))}}define(["./workbox-2fbc6a65"],function(s){"use strict";self.addEventListener("message",s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()}),s.precacheAndRoute([{url:"pwa-maskable-512x512.png",revision:"9e859d049e78f70ddb5872a3bce2622b"},{url:"pwa-maskable-192x192.png",revision:"f1e5f837a116221b26c9cb9447db5e92"},{url:"pwa-512x512.png",revision:"e5560dba9f85e2959637abbb546643cd"},{url:"pwa-192x192.png",revision:"8b590313fc6296f57d609982dc21f302"},{url:"mona-sans.woff2",revision:"b96cc834af467cf02885a067356abae7"},{url:"index.html",revision:"84b50db4bfa19b3e82c26ab3bd2857ab"},{url:"favicon.svg",revision:"570c2a249bbd511b386a843cd96545e7"},{url:"apple-touch-icon.png",revision:"d5d6ea39bc40ffd5b045b9593da0c890"},{url:"assets/workbox-window.prod.es5-Bd17z0YL.js",revision:null},{url:"assets/use-simple-headers-Cbv0t_De.js",revision:null},{url:"assets/use-nav-exemptions-QtGbfEPT.js",revision:null},{url:"assets/use-foundational-data-BEVQRFj9.js",revision:null},{url:"assets/use-foda-synced-query-BM-OPAql.js",revision:null},{url:"assets/use-api-BJomuYg6.js",revision:null},{url:"assets/scope-B-e4l8Dr.js",revision:null},{url:"assets/linear-CtNhjlrM.js",revision:null},{url:"assets/index-DJPX60jz.css",revision:null},{url:"assets/index-CrhwkQ9k.js",revision:null},{url:"assets/ZenMode-C3S7FmYt.js",revision:null},{url:"assets/Strong-C0VDYprE.js",revision:null},{url:"assets/Stop-BWZOcpvU.js",revision:null},{url:"assets/Status-CO5w5a1E.js",revision:null},{url:"assets/SimpleMobileHeaderContent-Ja68XAJd.js",revision:null},{url:"assets/Settings-Ccrmh7u8.js",revision:null},{url:"assets/Service-CkHxNopv.js",revision:null},{url:"assets/Placeholder-BRnxNmKm.js",revision:null},{url:"assets/Picker-D-TjVZAI.js",revision:null},{url:"assets/Page-BMcxP_9m.js",revision:null},{url:"assets/NotFoundPage-UhXr10a9.js",revision:null},{url:"assets/NotFound-BozS7u6u.js",revision:null},{url:"assets/Nearby-BNDxZx1J.js",revision:null},{url:"assets/MingcuteAlertLine-CdthHQmK.js",revision:null},{url:"assets/Markdown-D5fQv556.js",revision:null},{url:"assets/LinkText-sdmJpshg.js",revision:null},{url:"assets/Line-6nd7KD0E.js",revision:null},{url:"assets/Home-C6T20k8G.js",revision:null},{url:"assets/ErrorMessage-CCAB4vXB.js",revision:null},{url:"assets/Divider-lz6Cf6K8.js",revision:null},{url:"assets/Debug-Q4Vy4lZ_.js",revision:null},{url:"assets/Alert-DfpdtaOB.js",revision:null},{url:"assets/AdminControls-T05hoDB-.js",revision:null},{url:"assets/About-DGmg1TM-.js",revision:null},{url:"pwa-192x192.png",revision:"8b590313fc6296f57d609982dc21f302"},{url:"pwa-512x512.png",revision:"e5560dba9f85e2959637abbb546643cd"},{url:"pwa-maskable-192x192.png",revision:"f1e5f837a116221b26c9cb9447db5e92"},{url:"pwa-maskable-512x512.png",revision:"9e859d049e78f70ddb5872a3bce2622b"},{url:"manifest.webmanifest",revision:"a39f5f893f233a6eed74e0ab828a668b"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"),{denylist:[/^\/reset\/?$/]}))});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as e,b as t,c as n,i as r,l as i,o as a,r as o,s}from"./use-nav-exemptions-QtGbfEPT.js";import{i as c}from"./use-api-BJomuYg6.js";import{n as l}from"./use-foundational-data-BEVQRFj9.js";import{_ as u,f as d,g as f,m as p,n as m,o as h,r as g,t as _,v}from"./index-CE8NAPhv.js";import{t as y}from"./Placeholder-BRnxNmKm.js";import{t as b}from"./Page-BMcxP_9m.js";import{t as x}from"./use-simple-headers-Bihzijd5.js";import{t as S}from"./Divider-lz6Cf6K8.js";import{t as C}from"./Alert-k_U4L_j3.js";var w=e(null);function T(){let e=t(w);if(e==null)throw Error(`Foundational data unavailable outside provider.`);return e}function E(e){let t={info:`bg-soft-accent`,error:`bg-soft-error`,warning:`bg-soft-warning`,success:`bg-soft-success`}[e.type],a={info:`[--color-fg:var(--color-accent-text)]`,error:`[--color-fg:var(--color-error-text)]`,warning:`[--color-fg:var(--color-warning-text)]`,success:`[--color-fg:var(--color-success-text)]`}[e.type];return i(s,{class:n(e.class,t,a,`px-2 py-1.5 rounded-full`),children:i(r,{style:`small`,children:e.text})})}function D(e){return i(p,{class:n(e.class,`gap-x-2 gap-y-3`),wrap:!0,children:[i(r,{style:`strong`,children:e.header}),e.loading&&i(y,{class:`w-[20%] text-md`}),!e.loading&&e.pillContent!=null&&i(g,{heightRem:a(`text-md`),children:i(E,{type:e.pillContent.type,text:e.pillContent.text})})]})}function O(e){return i(D,{class:e.class,header:e.header,pillContent:k(e.currentValue,e.latestValue),loading:e.loading})}function k(e,t){return t==null?null:{text:e===t?`Up to date`:`Outdated`,type:e===t?`success`:`error`}}function A(e){return e.loading?i(s,{class:e.class,children:i(y,{class:`w-[40%] text-md`})}):e.value==null?null:i(r,{class:e.class,children:[e.prefix,`: `,e.value]})}function j(e){return e==null?null:e.length<32||!/^[0-9a-f]+$/.test(e)?e:e.slice(0,7)}function M(e){let{isUpdateAvailable:t,update:o}=h();return t?i(d,{theme:`accent`,text:`Refresh & update`,class:`self-start`,icon:f,onClick:()=>void o()}):i(p,{class:n(e.class,`gap-2`),children:[i(g,{heightRem:a(`text-md`),children:i(u,{})}),i(r,{class:`min-w-0 shrink`,children:`Waiting for service worker to install update...`})]})}function N(e){let{isHotReloadingEnabled:t}=_();return i(t?P:F,{...e})}function P(e){let{data:t,loading:a}=T();return i(o,{class:n(e.class,`gap-6`),children:[i(D,{header:`App version`,pillContent:{text:`Development`,type:`info`},loading:!1}),i(r,{children:`All frontend code is being served with hot-reloading enabled, not through the PWA. (The below values are meaningless.)`}),i(I,{}),i(A,{prefix:`Latest version`,value:t?.frontendVersion.slice(0,8)??null,loading:a})]})}function F(e){let{frontendVersion:t}=v(),{data:r,loading:a}=T(),s=!a&&r!=null&&r?.frontendVersion!==t;return i(o,{class:n(e.class,`gap-8`),children:i(o,{class:`gap-6`,children:[i(O,{header:`App version`,currentValue:t,latestValue:r?.frontendVersion??null,loading:a}),i(I,{}),i(A,{prefix:`Latest version`,value:j(r?.frontendVersion),loading:a}),s&&i(M,{})]})})}function I(){let{frontendVersion:e,versionsOnLastUpdate:t}=v();return i(o,{class:`gap-4`,children:[i(r,{children:[`Current version: `,j(e)]}),i(o,{class:`gap-3`,children:[i(r,{style:`small-weak`,children:[`Server version: `,j(t.serverVersion)]}),i(r,{style:`small-weak`,children:[`CoreQuery version: `,t.corequeryPackageVersion]})]})]})}function L(e){let t=m(c,{});return i(w.Provider,{value:t,children:e.children})}function R(e){let{data:t,loading:a}=T(),{foda:s}=l();return i(o,{class:n(e.class,`gap-6`),children:[i(O,{header:`Foundational data`,currentValue:s.hash,latestValue:t?.foundationalDataHash??null,loading:a}),i(o,{class:`gap-4`,children:[i(r,{children:[`Current version: `,j(s.hash)]}),i(r,{style:`small-weak`,children:[`Server version: `,j(s.serverVersion)]})]}),i(A,{prefix:`Latest version`,value:j(t?.foundationalDataHash),loading:a})]})}function z(e){let{data:t,loading:a}=T();return i(o,{class:n(e.class,`gap-8`),children:i(o,{class:`gap-6`,children:[i(r,{style:`strong`,children:`Server`}),i(B,{}),i(o,{class:`gap-4`,children:[i(A,{prefix:`Server version`,value:j(t?.serverVersion),loading:a}),i(A,{prefix:`CoreQuery version`,value:t?.corequeryPackageVersion??null,loading:a})]})]})})}function B(){let{error:e}=T();return e==null?null:i(C,{type:`error`,children:i(r,{children:`Unable to fetch the latest version info from the server.`})})}function V(){return i(b,{...x({title:`Developer info`}),children:i(L,{children:i(o,{class:`px-4 py-8 gap-8`,children:[i(H,{}),i(N,{}),i(S,{}),i(R,{}),i(S,{}),i(z,{}),i(S,{})]})})})}function H(){let{error:e}=T();return e==null?null:i(C,{type:`error`,children:i(r,{children:`Unable to fetch the latest version info from the server.`})})}export{V as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as e}from"./use-nav-exemptions-QtGbfEPT.js";import{t}from"./NotFoundPage-DLkgQE3z.js";function n(){return e(t,{afterConfirming:`frontend-version`})}export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,c as t,i as n,l as r,m as i,n as a,o,r as s,s as c}from"./use-nav-exemptions-QtGbfEPT.js";import{u as l}from"./use-api-BJomuYg6.js";import{n as u}from"./use-foundational-data-BEVQRFj9.js";import{_ as d,a as f,f as p,i as m,m as h,p as g,r as _}from"./index-CE8NAPhv.js";import{t as v}from"./Page-BMcxP_9m.js";import{n as y,t as b}from"./SimpleMobileHeaderContent-DnaUyjiU.js";import{t as x}from"./NotFoundPage-DLkgQE3z.js";import{t as S}from"./ErrorMessage-CCAB4vXB.js";import{t as C}from"./use-foda-synced-query-BM-OPAql.js";function w(e){return{hideMobileHeaderWhenScrolledToTop:!0,mobileHeader:r(b,{title:e.title,backHref:e.back?.href??null}),agnosticHeader:r(c,{class:`not-desktop:bg-bg-navbar not-desktop:border-b not-desktop:border-soft-border`,children:r(a,{children:r(c,{class:`not-desktop:px-4 desktop:mx-4 desktop:border-b desktop:border-soft-border`,children:r(s,{class:t(`gap-8`,{"pt-4 pb-6 desktop:pt-6":e.back!=null,"py-6 desktop:pt-8":e.back==null,"desktop:pb-4":e.additionalContent==null}),children:[e.back!=null&&r(p,{text:e.back.text,href:e.back.href,icon:y,class:`self-start`,layout:`narrow-icon`}),r(s,{class:`gap-4`,children:[r(n,{style:`megatitle`,children:e.title}),e.additionalContent]})]})})})})}}function T(e){return r(h,{class:t(e.class),children:r(n,{style:`strong`,dynamicColor:e.serviceColor,children:e.time})})}var E=3.5;function D(e){return r(s,{class:t(e.class,`h-14 min-w-0`),yAlign:`space-between`,children:[r(h,{xAlign:`space-between`,class:`gap-2 `,children:[r(h,{yAlign:`bottom`,class:`gap-1 shrink min-w-0`,children:[r(n,{style:`strong`,dynamicColor:e.departure.color,children:e.departure.primaryDestinationText}),r(n,{style:`small-narrow`,class:`shrink min-w-0`,dynamicColor:e.departure.color,oneLine:!0,children:`via Train Tracks`})]}),r(T,{time:e.departure.movement.time,formerTime:e.departure.movement.formerTime,serviceColor:e.departure.color})]}),r(h,{xAlign:`space-between`,yAlign:`bottom`,children:[r(s,{class:`gap-3 min-w-0 shrink`,children:[r(n,{style:`small-narrow`,oneLine:!0,children:`The stopping pattern goes here`}),r(h,{class:`gap-1`,children:[r(n,{style:`small-narrow-strong-success`,children:`Solid`}),r(n,{style:`small-narrow`,children:`•`}),r(n,{style:`small-narrow`,class:`shrink min-w-0`,oneLine:!0,children:`And then this row shows all sorts of stuff`})]})]}),r(s,{yAlign:`space-between`,class:`border-2 px-1.5 py-1 border-soft-border rounded-sm -mb-0.5 h-8.5`,children:[r(n,{style:`tiny-narrow`,align:`center`,children:`Platform`}),r(n,{style:`strong`,align:`center`,children:`X`})]})]})]})}function O(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9.343 6.343L15 12l-5.657 5.657`})})}var k=E+2;function A(e){return r(g,{class:t(e.class),href:j(e.departure),children:r(c,{class:`grid-cols-[1fr_auto] p-4 items-center pr-2 gap-2`,children:[r(D,{departure:e.departure}),r(O,{class:`text-icon-lg text-fg`})]})})}function j(e){return`/service/${encodeURIComponent(e.sourceId)}/${encodeURIComponent(e.intrasourceId)}?from=${encodeURIComponent(e.movement.index.toString())}`}function M(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M11 20H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4H4m12-7v2M8 4v2m12.121 9.879L18 18m0 0l-2.121 2.121M18 18l-2.121-2.121M18 18l2.121 2.121`})})}function N(e){let{pluralServicesTerm:n}=f();return e.loading?r(P,{class:e.class,queryCount:e.queryCount,centerContent:!0,children:r(d,{})}):e.isError?r(P,{class:t(e.class,`gap-2`),queryCount:e.queryCount,centerContent:!0,children:r(S,{text:`An error occurred while retrieving departures`})}):e.departures.length===0?r(P,{class:e.class,queryCount:e.queryCount,centerContent:!0,children:r(S,{text:`No ${n} scheduled`,icon:M})}):r(P,{class:e.class,queryCount:e.queryCount,children:e.departures.map((t,n)=>r(c,{class:`relative`,children:[r(A,{departure:t}),n<e.queryCount-1&&r(`hr`,{class:`border-soft-border absolute bottom-0 left-0 right-0 mx-4`})]},F(t)))})}function P(e){let t=e.centerContent??!1;return r(s,{class:e.class,xAlign:t?`center`:`stretch`,yAlign:t?`center`:`top`,dynamicMinHeightRem:k*e.queryCount,children:e.children})}function F(e){return`${e.sourceId}/${e.intrasourceId}/${e.movement.index}`}function I(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m4 20l5-5m0 0l3.956 3.956a1 1 0 0 0 1.626-.314l2.255-5.261a1 1 0 0 1 .548-.535l3.207-1.283a1 1 0 0 0 .336-1.635l-6.856-6.856a1 1 0 0 0-1.635.336l-1.283 3.207a1 1 0 0 1-.535.548L5.358 9.418a1 1 0 0 0-.314 1.626z`})})}function L(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9 20H4v-5m0 5l6.5-6.5M15 4h5v5m0-5l-6.5 6.5`})})}function R(e){return r(s,{class:t(e.class,`min-w-0`),children:[r(h,{xAlign:`space-between`,yAlign:`center`,class:`gap-2 not-desktop:pl-4 not-desktop:pr-2 not-desktop:pt-6 pb-2`,children:[r(n,{style:`subtitle`,class:`shrink min-w-0`,oneLine:!0,children:e.feed.query.title}),r(h,{class:`gap-2`,children:[r(p,{theme:`hover`,icon:I}),r(p,{theme:`hover`,icon:L})]})]}),r(N,{class:`bg-bg-raised desktop:border not-desktop:border-y border-soft-border desktop:rounded-lg overflow-hidden box-content`,departures:e.feed.departures,queryCount:e.feed.query.count,loading:e.feed.loading,isError:e.feed.isError})]})}function z(e){return r(c,{class:t(e.class,`desktop:grid-cols-[1fr_1fr] desktop:gap-6 desktop:px-4 desktop:py-8`),children:e.feeds.map((e,t)=>r(R,{feed:e,class:`not-desktop:last:-mb-px`},t))})}function B(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M17.657 9.343L12 15L6.343 9.343`})})}function V(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 7v5l3 3m6-3a9 9 0 1 1-18 0a9 9 0 0 1 18 0`})})}function H(e){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:r(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M19.5 4h-15a.5.5 0 0 0-.5.5v2.086a1 1 0 0 0 .293.707L10 13v5.691a.5.5 0 0 0 .276.447L14 21v-8l5.707-5.707A1 1 0 0 0 20 6.586V4.5a.5.5 0 0 0-.5-.5Z`})})}function U(e){return r(c,{class:`desktop:pt-6 desktop:px-4`,children:r(c,{class:t(e.class,`grid-cols-[1fr_1fr] desktop:max-w-150 bg-bg-raised divide-x divide-soft-border desktop:border not-desktop:border-b border-soft-border desktop:rounded-lg overflow-hidden`),children:[r(g,{children:r(h,{xAlign:`space-between`,yAlign:`center`,class:`p-4`,children:[r(h,{yAlign:`center`,class:`gap-2`,children:[r(_,{heightRem:o(`text-md`),children:r(V,{class:`text-icon-lg text-fg`})}),r(n,{children:`Now`})]}),r(_,{heightRem:o(`text-md`),children:r(B,{class:`text-icon-lg text-fg`})})]})}),r(g,{children:r(h,{xAlign:`space-between`,yAlign:`center`,class:`p-4`,children:[r(h,{yAlign:`center`,class:`gap-2`,children:[r(_,{heightRem:o(`text-md`),children:r(H,{class:`text-icon-lg text-fg`})}),r(n,{children:`All trains`})]}),r(_,{heightRem:o(`text-md`),children:r(B,{class:`text-icon-lg text-fg`})})]})})]})})}function W(){let{params:{id:t}}=i(),{foda:n}=u(),a=e(()=>n.stops.getByUrlPath(t??``),[n.stops,t]);return a==null?r(x,{afterConfirming:`foundational-data-version`}):r(G,{stop:a},a.id)}function G(t){let{data:n,loading:i,error:a}=C(l,{stopId:t.stop.id,count:5}),o=e(()=>[{query:{title:`Citybound trains`,count:5},departures:n?.departures??[],loading:i,isError:a!=null},{query:{title:`Outbound trains`,count:5},departures:n?.departures??[],loading:i,isError:a!=null}],[n?.departures,i,a]);return r(v,{...w({title:t.stop.name,back:{href:`/`,text:`Home`},additionalContent:r(m,{lineIds:t.stop.canonicalLinesServingStop,withLinks:!0})}),children:r(s,{children:[r(U,{}),r(z,{feeds:o})]})})}export{W as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-DpFLDTV_.js","assets/use-nav-exemptions-QtGbfEPT.js","assets/use-api-BJomuYg6.js","assets/use-foundational-data-BEVQRFj9.js","assets/Placeholder-BRnxNmKm.js","assets/Markdown-D5fQv556.js","assets/LinkText-sdmJpshg.js","assets/Strong-C0VDYprE.js","assets/Page-BMcxP_9m.js","assets/use-simple-headers-Bihzijd5.js","assets/SimpleMobileHeaderContent-DnaUyjiU.js","assets/Divider-lz6Cf6K8.js","assets/Alert-k_U4L_j3.js","assets/MingcuteAlertLine-CdthHQmK.js","assets/AdminControls-BMTTV4kR.js","assets/Debug-DGqHdl31.js","assets/Home-LcK9TehM.js","assets/Nearby-BNDxZx1J.js","assets/Service-CqfnDpff.js","assets/linear-CMwrWzQJ.js","assets/scope-B-e4l8Dr.js","assets/ErrorMessage-CCAB4vXB.js","assets/use-foda-synced-query-BM-OPAql.js","assets/Settings-1Z6FXsgC.js","assets/Picker-ByWHXE97.js","assets/Status-DIIRyqgr.js","assets/ZenMode-qKwx-pZt.js","assets/Stop-DKWaUN6o.js","assets/NotFoundPage-DLkgQE3z.js","assets/Line-ZicduquS.js","assets/NotFound-zNBih-TR.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{C as e,S as t,T as n,_ as r,b as i,c as a,d as o,f as s,g as c,h as l,i as u,l as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y,w as b,x,y as S}from"./use-nav-exemptions-QtGbfEPT.js";import{a as ee,c as te,f as ne,g as re,h as ie,m as C,n as ae,p as w,r as oe,s as se,t as ce}from"./use-api-BJomuYg6.js";import{n as T,t as le}from"./use-foundational-data-BEVQRFj9.js";import{n as E,t as D}from"./scope-B-e4l8Dr.js";import{t as ue}from"./LinkText-sdmJpshg.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var de=n.__b;n.__b=e=>{e.type&&e.type._forwarded&&e.ref&&(e.props.ref=e.ref,e.ref=null),de&&de(e)};function O(e){let t,n,r=()=>e().then(e=>n=e&&e.default||e),i=e=>{let[,i]=y(0),a=c(n);if(t||=r(),n!==void 0)return b(n,e);throw a.current||=t.then(()=>i(1)),t};return i.preload=()=>(t||=r(),t),i._forwarded=!0,i}var fe=n.__e;n.__e=(e,t,n)=>{if(e&&e.then){let r=t;for(;r=r.__;)if(r.__c&&r.__c.__c)return t.__e??(t.__c.__z=[n.__e],t.__e=n.__e,t.__k=n.__k),t.__k||=[],r.__c.__c(e,t)}fe&&fe(e,t,n)};function pe(e){return this.__c=me,this.componentDidCatch=e.onError,e.children}function me(e){e.then(()=>this.forceUpdate())}var he=`modulepreload`,ge=function(e){return`/`+e},_e={},ve=function(e){return e.pathname.endsWith(`.css`)},ye=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},k=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=ge(t,n);let r=s(t),i=ve(r);return ye(_e,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:he,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},A=t(null);function j(){let e=i(A);if(e==null)throw Error(`Static data unavailable outside provider.`);return e}function be(e){let{Provider:t}=A,n=r(()=>xe(document),[]);return d(t,{value:n,children:e.children})}function xe(e){function t(t){let n=e.querySelector(t);if(n==null)throw Error(`${t} tag not found.`);let r=n.getAttribute(`content`);if(r==null)throw Error(`${t} tag was empty.`);return r}return{appName:t(`meta[name="corequery-app-name"]`),frontendVersion:t(`meta[name="corequery-frontend-version"]`),versionsOnLastUpdate:{corequeryPackageVersion:t(`meta[name="corequery-package-version-on-last-update"]`),serverVersion:t(`meta[name="corequery-server-version-on-last-update"]`)}}}var M=class{_array;_map;constructor(e){this._array=e,this._map=new Map(e.map(e=>[this._getID(e),e]))}all(){return this._array}get(e){return this._map.get(e)??null}require(e){let t=this.get(e);if(t==null)throw this._getRequireFailError(e);return t}has(e){return this._map.has(e)}map(e){return this._array.map(e)}filter(e){return this._array.filter(e)}first(e){return this._array.find(e)??null}requireFirst(e){let t=this.first(e);if(t==null)throw this._getPredicateFailError();return t}},Se=class extends M{_getID(e){return e.id}_getRequireFailError(e){return Error(`No stop with ID #${e}.`)}_getPredicateFailError(){return Error(`No matching stop.`)}getByUrlPath(e){return this.first(t=>t.urlPath===e)}},Ce=class extends M{_getID(e){return e.id}_getRequireFailError(e){return Error(`No line with ID #${e}.`)}_getPredicateFailError(){return Error(`No matching line.`)}getByUrlPath(e){return this.first(t=>t.urlPath===e)}},N=class e{_obj;stops;lines;constructor(e){this._obj=e,this.stops=new Se(e.stops),this.lines=new Ce(e.lines)}static json=te.transform(t=>new e(t));get hash(){return this._obj.metadata.hash}get fodaApiVersion(){return this._obj.metadata.fodaApiVersion}get serverVersion(){return this._obj.metadata.serverVersion}get footerPrimaryMarkdown(){return this._obj.footer.primaryMarkdown}get terminology(){return this._obj.terminology}get landingPage(){return this._obj.landingPage}};function P(e,t){let n=S(()=>{let n=localStorage.getItem(e);if(n==null)return null;try{return t.parse(JSON.parse(n))}catch{return null}},[e,t]),i=S(t=>{let n=JSON.stringify(t);localStorage.setItem(e,n)},[e]);return r(()=>({get:n,set:i}),[n,i])}var we={default:`text-icon-lg text-fg-weak`,large:`text-icon-xl text-fg-weak`};function F(e){return d(`svg`,{className:a(`_loading-spinner`,we[e.style??`default`],e.class),xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`,role:`img`,children:[d(`title`,{children:`Loading spinner`}),d(`circle`,{cx:`4`,cy:`4`,r:`2`,fill:`currentColor`}),d(`circle`,{cx:`12`,cy:`4`,r:`2`,fill:`currentColor`}),d(`circle`,{cx:`12`,cy:`12`,r:`2`,fill:`currentColor`}),d(`circle`,{cx:`4`,cy:`12`,r:`2`,fill:`currentColor`})]})}function I(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,children:[d(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M20 9a1 1 0 0 1 1 1v1a8 8 0 0 1-8 8H9.414l.793.793a1 1 0 0 1-1.414 1.414l-2.496-2.496a1 1 0 0 1-.287-.567L6 17.991a1 1 0 0 1 .237-.638l.056-.06l2.5-2.5a1 1 0 0 1 1.414 1.414L9.414 17H13a6 6 0 0 0 6-6v-1a1 1 0 0 1 1-1m-4.793-6.207l2.5 2.5a1 1 0 0 1 0 1.414l-2.5 2.5a1 1 0 1 1-1.414-1.414L14.586 7H11a6 6 0 0 0-6 6v1a1 1 0 1 1-2 0v-1a8 8 0 0 1 8-8h3.586l-.793-.793a1 1 0 0 1 1.414-1.414`})]})})}function L(e){let t=a(`grid not-disabled:cursor-pointer select-none`,e.class);return e.onClick==null&&e.href!=null&&!(e.disabled??!1)?d(`a`,{class:t,href:e.href,onClick:e.onHrefClick,children:e.children}):d(`button`,{class:t,onClick:e.onClick,disabled:e.disabled,children:e.children})}var Te={left:`justify-start`,center:`justify-center`,right:`justify-end`,"space-between":`justify-between`},Ee={top:`items-start`,center:`items-center`,bottom:`items-end`,stretch:`items-stretch`};function R(e){let t=e.as??`div`,n=Te[e.xAlign??`left`],r=Ee[e.yAlign??`stretch`];return d(t,{class:a(`flex flex-row`,n,r,{"flex-wrap":e.wrap},e.class),children:e.children})}function z(e){return d(g,{class:a(`relative`,e.class),children:[d(g,{class:a({invisible:e.loading}),children:e.children}),e.loading&&d(R,{class:`absolute top-0 left-0 right-0 bottom-0`,xAlign:`center`,yAlign:`center`,children:d(F,{})})]})}var De=a([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-accent)]`,`not-disabled:[--color-fg-strong:var(--color-on-accent)]`,`not-disabled:[--color-fg-weak:var(--color-on-accent)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Oe=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`group-not-disabled:bg-accent`,`group-not-disabled:group-hover:bg-accent-hover`,`group-not-disabled:group-active:bg-accent-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function B(e){let t=e.rounded??!0;return d(L,{class:a(e.class,De),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:a(Oe,{"rounded-sm":t})}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function ke(e){return d(R,{class:a(e.class,`gap-2 h-8`,{"px-4":e.text!=null,"min-w-8":e.text==null}),yAlign:`center`,xAlign:`center`,children:[e.icon!=null&&d(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&d(u,{children:e.text})]})}var Ae=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),je=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-soft`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Me(e){return d(L,{class:a(e.class,Ae),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:je}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Ne=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Pe=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`,`border`,`group-not-disabled:border-soft-border`,`group-disabled:border-soft-border-disabled`]);function Fe(e){return d(L,{class:a(e.class,Ne),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:Pe}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Ie=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Le=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`]);function V(e){return d(L,{class:a(e.class,Ie),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:Le}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Re=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),ze=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`]);function H(e){return d(L,{class:a(e.class,Re),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:ze}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function U(e){let t=e.outerPadding??!1;return d(R,{class:a(e.class,`gap-2 min-w-0 py-2`,{"px-4":e.text!=null,"min-w-8":e.text==null,"min-h-10":!t,"min-h-12":t}),yAlign:`center`,children:[e.icon!=null&&d(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&d(u,{class:`shrink min-w-0`,children:e.text})]})}var Be=a([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-error)]`,`not-disabled:[--color-fg-strong:var(--color-on-error)]`,`not-disabled:[--color-fg-weak:var(--color-on-error)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Ve=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-error`,`group-not-disabled:group-hover:bg-error-hover`,`group-not-disabled:group-active:bg-error-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function He(e){return d(L,{class:a(e.class,Be),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:Ve}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Ue=a([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-warning)]`,`not-disabled:[--color-fg-strong:var(--color-on-warning)]`,`not-disabled:[--color-fg-weak:var(--color-on-warning)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),We=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-warning`,`group-not-disabled:group-hover:bg-warning-hover`,`group-not-disabled:group-active:bg-warning-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Ge(e){return d(L,{class:a(e.class,Ue),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:We}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Ke=a([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-success)]`,`not-disabled:[--color-fg-strong:var(--color-on-success)]`,`not-disabled:[--color-fg-weak:var(--color-on-success)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),qe=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-success`,`group-not-disabled:group-hover:bg-success-hover`,`group-not-disabled:group-active:bg-success-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Je(e){return d(L,{class:a(e.class,Ke),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:qe}),d(z,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function Ye(e){return d(R,{class:a(e.class,`gap-2 h-8 pl-2 pr-3`),yAlign:`center`,xAlign:`center`,children:[e.icon!=null&&d(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&d(u,{children:e.text})]})}var Xe={default:Me,accent:B,outlined:Fe,hover:V,"hover-square":H,error:He,warning:Ge,success:Je},Ze={simple:ke,"menu-item":U,"narrow-icon":Ye};function W(e){let t=Xe[e.theme??`default`],n=Ze[e.layout??`simple`];return d(t,{class:e.class,onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:e.disabled,loading:e.loading,children:d(n,{icon:e.icon,text:e.text})})}function Qe(e){let{appName:t}=j();return d(g,{class:`w-svw h-svh items-center justify-center`,children:d(h,{class:`gap-12`,xAlign:`center`,children:[d(h,{class:`gap-6`,xAlign:`center`,children:[d(`img`,{class:`w-24 h-24`,src:`/favicon.svg`}),d(u,{style:`title`,children:t})]}),e.error?d(h,{class:`gap-4`,xAlign:`center`,children:[d(u,{children:`An error occurred while loading foundational data`}),d(W,{text:`Retry`,icon:I,onClick:e.onRetry})]}):d(F,{style:`large`})]})})}var G=t(null);function K(){let e=i(G);if(e==null)throw Error(`Settings unavailable outside provider.`);return e}var q=se,$e=ie([C({result:w(`outdated`),foundationalData:re()}),C({result:w(`up-to-date`)})]),et=`corequery-foundational-data`,tt=2e3;function nt(e){let{Provider:t}=le,{revalidateSettings:n}=K(),i=P(et,N.json),[a]=y(()=>i.get()),[o,s]=y(null),[c,u]=y(!1),f=S(e=>{s(e),n(e)},[n]),p=S(e=>{let t=N.json.parse(e);return f(t),i.set(e),t.hash},[f,i]),m=S(async()=>{let e=await J(null,null);if(e.result===`up-to-date`)throw Error();return p(e.foundationalData)},[p]),h=S(()=>{u(!1),rt({cachedData:a,onFreshFoda:e=>p(e),onUseCachedFoda:e=>f(e),onFailure:()=>u(!0)})},[a,p,f]);l(()=>{h()},[h]);let g=r(()=>o==null?null:{foda:o,forceFodaUpdate:m},[o,m]);return g==null?d(Qe,{error:c,onRetry:h}):d(t,{value:g,children:e.children})}async function rt({cachedData:e,onFreshFoda:t,onUseCachedFoda:n,onFailure:r}){if(e!=null)try{let r=await J(e.hash,tt);r.result===`up-to-date`?n(e):t(r.foundationalData)}catch(t){console.warn(`Foundational data refresh failed - using cache.`,t),n(e)}else try{let e=await J(null,null);if(e.result===`up-to-date`)throw Error();t(e.foundationalData)}catch{r()}}async function J(e,t){let n=await fetch(`/api${q.path}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({hash:e}),signal:t==null?void 0:AbortSignal.timeout(t)});if(!n.ok){let e=await n.text();throw Error(`Error ${n.status} calling /api${q.path}: ${e}`)}return $e.parse(await n.json())}var Y=class e{theme;constructor(e){this.theme=e.theme}static default=new e({theme:`auto`});static json=C({version:w(1),theme:ne([`dark`,`light`,`auto`]).optional()}).transform(t=>new e({theme:t.theme??e.default.theme}));with(t){return new e({...this,...t})}toJson(){return{version:1,theme:this.theme}}validate(e){return this}equals(e){return oe(this.toJson(),e.toJson())}},it=[`auto`,`light`,`dark`];function at(){window.applyTheme?.()}function ot(e){let{Provider:t}=G,n=P(`corequery-settings`,Y.json),[i,a]=y(()=>n.get()??(console.warn(`Failed to load settings, using defaults.`),Y.default)),o=S((e,t)=>{a(r=>{let i=e(r);return(t?.persist??!0)&&n.set(i.toJson()),i}),at()},[n]),s=S(e=>{o(t=>{let n=t.validate(e);return n.equals(t)||console.warn(`Settings updated due to foundational data changes.`),n},{persist:!1})},[o]),c=r(()=>({settings:i,updateSettings:o,revalidateSettings:s}),[i,o,s]);return d(t,{value:c,children:e.children})}function st(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`m13.414 2.807l7.778 7.779a2 2 0 0 1 0 2.828l-7.778 7.778a2 2 0 0 1-2.828 0l-7.778-7.778a2 2 0 0 1 0-2.828l7.778-7.779a2 2 0 0 1 2.828 0M12.002 15a1 1 0 0 0-.119 1.993l.12.007a1 1 0 0 0 0-2ZM12 8a1.44 1.44 0 0 0-1.44 1.485l.01.135l.438 3.504a1 1 0 0 0 1.964.113l.02-.113l.438-3.504A1.44 1.44 0 0 0 12 8`})]})})}function ct(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,children:[d(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`m13.414 2.808l7.778 7.778a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.828 0l-7.778-7.778a2 2 0 0 1 0-2.829l7.778-7.778a2 2 0 0 1 2.828 0M12 4.222L4.222 12L12 19.78L19.778 12zM12.002 15a1 1 0 0 1 .117 1.993l-.117.007a1 1 0 0 1-.119-1.993zM12 8c.867 0 1.538.76 1.43 1.62l-.438 3.504a1 1 0 0 1-1.984 0L10.57 9.62A1.44 1.44 0 0 1 12 8`})]})})}function lt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M13.2 2.65a2 2 0 0 0-2.4 0l-7 5.25A2 2 0 0 0 3 9.5V19a2 2 0 0 0 2 2h3.9a1.1 1.1 0 0 0 1.1-1.1V15a2 2 0 1 1 4 0v4.9a1.1 1.1 0 0 0 1.1 1.1H19a2 2 0 0 0 2-2V9.5a2 2 0 0 0-.8-1.6z`})]})})}function ut(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M10.8 2.65a2 2 0 0 1 2.4 0l7 5.25a2 2 0 0 1 .8 1.6V19a2 2 0 0 1-2 2h-4.9a1.1 1.1 0 0 1-1.1-1.1V14a1 1 0 1 0-2 0v5.9A1.1 1.1 0 0 1 9.9 21H5a2 2 0 0 1-2-2V9.5a2 2 0 0 1 .8-1.6zm1.2 1.6L5 9.5V19h4v-5a3 3 0 1 1 6 0v5h4V9.5z`})]})})}function dt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M7 7a5 5 0 1 1 6 4.9V17a1 1 0 1 1-2 0v-5.1A5 5 0 0 1 7 7m2.489 9.1a1 1 0 0 1-.838 1.14c-1.278.195-2.293.489-2.96.815c-.335.164-.534.313-.637.422l-.021.023c.033.039.09.096.19.169c.28.207.749.435 1.418.644C7.968 19.728 9.863 20 12 20s4.032-.272 5.359-.687c.67-.209 1.138-.437 1.418-.644c.1-.073.157-.13.19-.169l-.021-.023c-.103-.109-.302-.258-.637-.422c-.667-.326-1.682-.62-2.96-.815a1 1 0 1 1 .301-1.977c1.388.21 2.622.547 3.539.996c.457.224.884.5 1.208.842c.33.347.603.82.603 1.399c0 .811-.524 1.4-1.034 1.777c-.53.392-1.233.702-2.01.945c-1.57.49-3.674.778-5.956.778s-4.387-.288-5.955-.778c-.778-.243-1.48-.553-2.01-.945C3.524 19.9 3 19.311 3 18.5c0-.58.273-1.052.603-1.4c.325-.342.751-.617 1.208-.84c.917-.45 2.152-.786 3.538-.997a1 1 0 0 1 1.14.838Z`})]})})}function ft(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M12 4a3 3 0 1 0 0 6a3 3 0 0 0 0-6M7 7a5 5 0 1 1 6 4.9V17a1 1 0 1 1-2 0v-5.1A5 5 0 0 1 7 7m2.489 9.1a1 1 0 0 1-.838 1.14c-1.278.194-2.293.489-2.96.815c-1.22.597.206 1.026.95 1.258C7.968 19.728 9.863 20 12 20s4.032-.272 5.359-.687c.749-.234 2.17-.66.95-1.258c-.667-.326-1.682-.62-2.96-.815a1 1 0 1 1 .301-1.977c1.388.21 2.622.547 3.539.996c.884.433 1.811 1.162 1.811 2.241c0 .811-.524 1.4-1.034 1.777C17.816 21.865 14.536 22 12 22c-2.282 0-4.387-.288-5.955-.778C4.795 20.832 3 20.062 3 18.5c0-1.08.927-1.808 1.811-2.24c.917-.45 2.152-.786 3.538-.997a1 1 0 0 1 1.14.838Z`})]})})}function pt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M20 18a1 1 0 0 1 .117 1.993L20 20H4a1 1 0 0 1-.117-1.993L4 18zm0-7a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zm0-7a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z`})]})})}function mt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M5 10a5 5 0 1 1 10 0a5 5 0 0 1-10 0m5-7a7 7 0 1 0 4.192 12.606l5.1 5.101a1 1 0 0 0 1.415-1.414l-5.1-5.1A7 7 0 0 0 10 3`})]})})}function ht(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M5 5a1 1 0 0 0-2 0v14a1 1 0 0 0 1 1h16a1 1 0 1 0 0-2H5zm4 7a1 1 0 1 0-2 0v3a1 1 0 1 0 2 0zm3-6a1 1 0 0 1 1 1v8a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1m5 4a1 1 0 1 0-2 0v5a1 1 0 1 0 2 0z`})]})})}function gt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M12 2a1 1 0 0 1 1 1v1.062a8 8 0 0 1 2.104.562l.53-.918a1 1 0 1 1 1.732 1l-.531.92c.58.44 1.098.959 1.54 1.54l.92-.532a1 1 0 1 1 1 1.732l-.92.53c.279.661.471 1.367.563 2.104H21a1 1 0 1 1 0 2h-1.062a8 8 0 0 1-.562 2.104l.918.53a1 1 0 1 1-1 1.732l-.92-.531a8 8 0 0 1-1.54 1.54l.532.92a1 1 0 1 1-1.732 1l-.53-.92a8 8 0 0 1-2.104.563V21a1 1 0 1 1-2 0v-1.062a8 8 0 0 1-2.104-.562l-.53.918a1 1 0 1 1-1.732-1l.531-.92a8 8 0 0 1-1.54-1.54l-.92.532a1 1 0 1 1-1-1.732l.92-.53A8 8 0 0 1 4.061 13H3a1 1 0 1 1 0-2h1.062a8 8 0 0 1 .562-2.104l-.918-.53a1 1 0 0 1 1-1.732l.92.531c.44-.58.959-1.098 1.54-1.54l-.532-.92a1 1 0 0 1 1.732-1l.53.92A8 8 0 0 1 11 4.061V3a1 1 0 0 1 1-1m0 11.155l-4.624 2.67a6 6 0 0 0 1.588 1.351l.073.043A6 6 0 0 0 12 18c.97 0 1.886-.23 2.697-.639l.34-.185a6 6 0 0 0 1.587-1.352zm-1-7.072a6 6 0 0 0-1.703.559l-.26.14l-.073.042a6 6 0 0 0-1.978 1.88l-.162.26l-.042.073A6 6 0 0 0 6 12c0 .63.097 1.24.278 1.81l.097.283L11 11.423zm2 0v5.34l4.625 2.67A6 6 0 0 0 18 12c0-.97-.23-1.886-.639-2.697l-.143-.266l-.032-.055l-.01-.018a6 6 0 0 0-1.88-1.978l-.333-.205a6 6 0 0 0-1.664-.64z`})]})})}function _t(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`path`,{fill:`currentColor`,d:`M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8.01 8.01 0 0 1-8 8m0-8.5a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0v-3a1 1 0 0 0-1-1m0-4a1.25 1.25 0 1 0 1.25 1.25A1.25 1.25 0 0 0 12 7.5`})})}function vt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M6.798 2.884a7.002 7.002 0 0 1 9.294 8.565l4.394 3.718a3.76 3.76 0 1 1-5.3 5.3l-3.717-4.394a7.002 7.002 0 0 1-8.565-9.295c.358-.894 1.48-1.007 2.063-.373L8.17 9.883l1.446-.288l.29-1.449l-3.48-3.198c-.634-.583-.522-1.706.373-2.064ZM8.805 4.42l2.763 2.54c.322.296.466.738.38 1.165l-.47 2.354a1.25 1.25 0 0 1-.982.981l-2.35.467a1.25 1.25 0 0 1-1.164-.38L4.438 8.785a5.002 5.002 0 0 0 6.804 5.25a1.26 1.26 0 0 1 1.422.355l4.05 4.786a1.76 1.76 0 1 0 2.48-2.48l-4.785-4.05a1.26 1.26 0 0 1-.355-1.422a5 5 0 0 0-5.25-6.804Z`})]})})}function yt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M16 19a1 1 0 0 1 .117 1.993L16 21H8a1 1 0 0 1-.117-1.993L8 19zm4-15a2 2 0 0 1 1.995 1.85L22 6v10a2 2 0 0 1-1.85 1.995L20 18H4a2 2 0 0 1-1.995-1.85L2 16V6a2 2 0 0 1 1.85-1.995L4 4zm0 2H4v10h16z`})]})})}function bt(){return[{name:`Home`,href:`/`,regularIcon:ut,activeIcon:lt,isActive:e=>e===`/`},{name:`Status`,href:`/status`,regularIcon:ct,activeIcon:st,isActive:e=>e===`/status`},{name:`Nearby`,href:`/nearby`,regularIcon:ft,activeIcon:dt,isActive:e=>e===`/nearby`},{name:`Search`,icon:mt,opensSearchDrawer:!0},{name:`More`,icon:pt,opensMoreDrawer:!0}]}function xt(){let{appName:e}=j();return[{name:`About ${e}`,href:`/about`,icon:_t},{name:`Settings`,href:`/settings`,icon:gt},{name:`Developer info`,href:`/debug`,icon:ht},{name:`Admin controls`,href:`/admin`,icon:vt},{name:`Zen mode`,href:`/zen`,icon:yt}]}var St=t(null);function X(){let e=i(St);if(e==null)throw Error(`Service worker data unavailable outside provider.`);return e}function Ct(e){let{isUpdateAvailable:t,update:n}=X(),[r,i]=y(!1);return l(()=>{e.menuFullyClosed&&i(t)},[t,e.menuFullyClosed]),r?d(B,{rounded:!1,onClick:()=>void n(),children:d(f,{children:d(U,{icon:I,text:`Update available — click to refresh`,outerPadding:!0})})}):null}function Z(e,t){let[n,r]=y(!1);return l(()=>{if(!e){r(!1);return}let n=setTimeout(()=>{r(!0)},t);return()=>{clearTimeout(n)}},[e,t]),n}function wt(e){let t=xt(),n=Z(!e.open,300);return d(`div`,{class:a(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"not-desktop:translate-y-4":!e.open,"desktop:-translate-y-4":!e.open}),children:[d(`div`,{class:`z-0 absolute top-0 bottom-0 left-0 right-0 bg-bg-raised desktop:border-b not-desktop:border-t border-soft-border opacity-97`}),d(h,{class:`relative z-1 desktop:flex-col-reverse`,children:[d(f,{children:d(h,{class:`py-2`,children:t.map(t=>d(W,{icon:t.icon,text:t.name,href:t.href,onHrefClick:e.onClose,theme:`hover-square`,layout:`menu-item`},t.href))})}),d(Ct,{menuFullyClosed:n})]})]})}function Tt(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M12 2a9 9 0 0 1 9 9c0 3.074-1.676 5.59-3.442 7.395a20.4 20.4 0 0 1-2.876 2.416l-.426.29l-.2.133l-.377.24l-.336.205l-.416.242a1.87 1.87 0 0 1-1.854 0l-.416-.242l-.52-.32l-.192-.125l-.41-.273a20.6 20.6 0 0 1-3.093-2.566C4.676 16.589 3 14.074 3 11a9 9 0 0 1 9-9m0 2a7 7 0 0 0-7 7c0 2.322 1.272 4.36 2.871 5.996a18 18 0 0 0 2.222 1.91l.458.326q.222.155.427.288l.39.25l.343.209l.289.169l.455-.269l.367-.23q.293-.186.627-.417l.458-.326a18 18 0 0 0 2.222-1.91C17.728 15.361 19 13.322 19 11a7 7 0 0 0-7-7m0 3a4 4 0 1 1 0 8a4 4 0 0 1 0-8m0 2a2 2 0 1 0 0 4a2 2 0 0 0 0-4`})]})})}function Et(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),d(`path`,{fill:`currentColor`,d:`M12 2a1 1 0 0 1 1 1v5.126a4.002 4.002 0 0 1 0 7.748V21a1 1 0 1 1-2 0v-5.126a4.002 4.002 0 0 1 0-7.748V3a1 1 0 0 1 1-1m0 12a2 2 0 1 0 0-4a2 2 0 0 0 0 4`})]})})}var Dt={stop:e=>e,station:e=>`${e} Station`},Ot={line:e=>`${e} Line`,route:e=>`Route ${e}`},kt={stop:`stops`,station:`stations`},At={line:`lines`,route:`routes`},jt={service:`services`,trip:`trips`,train:`trains`,tram:`trams`,bus:`buses`};function Mt(){let{foda:e}=T();return r(()=>({formatStop:Dt[e.terminology.stop],formatLine:Ot[e.terminology.line],pluralStopsTerm:kt[e.terminology.stop],pluralLinesTerm:At[e.terminology.line],pluralServicesTerm:jt[e.terminology.service]}),[e.terminology])}function Nt(e){let t=e.withLinks??!1;return d(u,{class:a(e.class),style:e.style,children:d(Pt,{lineIds:e.lineIds,withLinks:t})})}function Pt({lineIds:t,withLinks:n}){let{foda:r}=T();if(t.length===0)return{line:`No lines`,route:`No routes`}[r.terminology.line];let i=d(Ft,{lineIds:t,withLinks:n});return{line:d(e,{children:[i,` `,t.length===1?`Line`:`lines`]}),route:d(e,{children:[t.length===1?`Route`:`Routes`,` `,i]})}[r.terminology.line]}function Ft({lineIds:t,withLinks:n}){let{foda:i}=T(),a=r(()=>t.map(e=>It(e,i)).sort((e,t)=>e.name.localeCompare(t.name)),[t,i]);return a.length===1?d(Q,{data:D(a[0]),withLink:n}):a.length===2?d(e,{children:[d(Q,{data:D(a[0]),withLink:n}),` and`,` `,d(Q,{data:D(a[1]),withLink:n})]}):d(e,{children:[a.slice(0,-1).map((t,r)=>d(e,{children:[d(Q,{data:D(t),withLink:n},r),`,`,` `]})),` and `,d(Q,{data:D(a[a.length-1]),withLink:n})]})}function Q({data:t,withLink:n}){return n?d(ue,{href:t.href,style:`strong-subtle`,dynamicColor:t.color,children:t.name}):d(e,{children:t.name})}function It(e,t){let n=t.lines.require(e);return{name:n.name,href:`/line/${n.urlPath}`,color:n.color}}function Lt(){let{foda:e}=T(),{formatStop:t,formatLine:n,pluralStopsTerm:i,pluralLinesTerm:a}=Mt();return{candidates:r(()=>{let r=e.stops.map(e=>({id:`stop-${e.id}`,primary:t(e.name),alternatives:[],data:{title:t(e.name),description:d(Nt,{lineIds:e.canonicalLinesServingStop,style:`small`}),url:`/stop/${e.urlPath}`,icon:Tt}})),i=e.lines.map(e=>({id:`line-${e.id}`,primary:n(e.name),alternatives:[],data:{title:n(e.name),description:null,url:`/line/${e.urlPath}`,icon:Et}}));return[...r,...i]},[e.lines,e.stops,n,t]),placeholder:r(()=>`Search ${i}, ${a}, etc.`,[a,i])}}var Rt={regular:`text-fg text-md outline-none border-none placeholder:text-fg-weak`,search:`text-fg-strong text-xl desktop:text-md font-bold outline-none border-none placeholder:text-fg-weak placeholder:font-normal`};function zt(e){let t=Rt[e.style??`regular`],n={class:a(e.class,t),value:e.value,onInput:t=>{t.target!=null&&`value`in t.target&&typeof t.target.value==`string`&&e.onChange(t.target.value)},placeholder:e.placeholder,ref:e.inputRef,autoComplete:`off`};return d(Bt,{onSubmit:e.onSubmit,children:e.search??!1?d(`input`,{type:`search`,...n}):d(`input`,{type:`text`,...n})})}function Bt(e){return e.onSubmit==null?e.children:d(`form`,{class:`grid`,autoComplete:`off`,onSubmit:t=>{t.preventDefault(),e.onSubmit?.()},children:e.children})}var Vt=class{_query;_candidates;_maxResults;_results;_candidatesNotRequiringExactMatch;constructor(e,t,n){this._query=e,this._candidates=t,this._maxResults=n,this._results=new Map,this._candidatesNotRequiringExactMatch=t.filter(e=>!(e.requiresExactMatch??!1))}getResults(){return Array.from(this._results.values()).slice(0,this._maxResults)}appendResults(e,{passCandidatesRequiringExactMatch:t=!1}={}){if(this._results.size>=this._maxResults)return;let n=t?this._candidates:this._candidatesNotRequiringExactMatch,r=e(this._query,n);for(let e of r)this._results.has(e.id)||this._results.set(e.id,e.data)}};function Ht(e,t){return t.filter(t=>t.primary===e||t.alternatives.includes(e))}function Ut(e,t){return t.filter(t=>t.primary.startsWith(e)).sort((e,t)=>e.primary.length-t.primary.length)}function Wt(e,t){return t.filter(t=>t.primary.includes(e)).sort((e,t)=>e.primary.length-t.primary.length)}function Gt(e,t){return t.map(t=>{let n=t.alternatives.filter(t=>t.startsWith(e)).sort((e,t)=>e.length-t.length)[0];return n==null?null:{candidate:t,bestMatch:n,percentageMatched:e.length/n.length}}).filter(E).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function Kt(e,t){return t.map(t=>{let n=t.alternatives.filter(t=>t.includes(e)).sort((e,t)=>e.length-t.length)[0];return n==null?null:{candidate:t,bestMatch:n,percentageMatched:e.length/n.length}}).filter(E).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function qt(e,t,{maxResults:n=5}={}){let r=e.trim().toLowerCase();if(r.length===0)return[];let i=new Vt(r,t.map(e=>({...e,primary:e.primary.toLowerCase(),alternatives:e.alternatives.map(e=>e.toLowerCase())})),n);return i.appendResults(Ht,{passCandidatesRequiringExactMatch:!0}),i.appendResults(Ut),i.appendResults(Wt),i.appendResults(Gt),i.appendResults(Kt),i.getResults()}function Jt(e){return d(`div`,{class:a(e.class,`flex flex-col justify-center items-stretch`),style:{height:`${e.heightRem}rem`},children:e.children})}function Yt(e){return d(H,{href:e.href,onHrefClick:e.onHrefClick,class:a(e.class),children:d(R,{class:a(e.class,`gap-3 desktop:gap-2 min-w-0 py-3 px-4 min-h-10`),yAlign:`center`,children:[d(Jt,{heightRem:p(`text-md`),children:d(e.icon,{class:`text-fg text-icon-lg`})}),d(h,{class:`gap-3 shrink`,children:[d(u,{style:`strong`,children:e.title}),e.description]})]})})}function Xt(e){let[t,n]=y(``),{candidates:i,placeholder:o}=Lt(),{route:s}=m(),p=r(()=>qt(t,i,{maxResults:5}),[t,i]),_=Z(!e.open,300);l(()=>{_&&n(``)},[_]);let v=c(null),b=Z(e.open,100);l(()=>{b&&v.current?.focus()},[b]);function x(){p.length>0&&(s(D(p[0]).url),e.onClose())}return d(`div`,{class:a(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"-translate-y-4":!e.open}),children:[d(`div`,{class:`absolute top-0 bottom-0 left-0 right-0 bg-bg-raised border-b border-soft-border opacity-97`}),d(f,{class:`relative z-1`,children:d(h,{children:[d(g,{class:`relative py-2 border-b border-b-soft-border not-desktop:bg-bg-navbar`,children:[d(zt,{style:`search`,value:t,onChange:n,class:`px-4 pl-12 h-10 desktop:h-8 desktop:pl-11`,placeholder:o,inputRef:v,onSubmit:x,search:!0}),d(mt,{class:`absolute left-4 top-[50%] translate-y-[-50%] pointer-events-none text-fg-weak text-icon-xl desktop:text-icon-lg`})]}),d(h,{class:`max-h-[calc(100vh-12rem)] py-3 overflow-y-scroll`,children:[p.length===0&&d(g,{class:`h-32 items-center`,children:d(u,{class:`px-4`,style:`weak`,children:t.length===0?`Results will appear here.`:`No results.`})}),p.map(t=>d(Yt,{title:t.title,description:t.description,icon:t.icon,href:t.url,onHrefClick:e.onClose},t.url))]})]})})]})}function Zt(e){let t=e.active??!1;return d(L,{class:a(e.class,`group`),onClick:e.onClick,href:e.href,children:d(h,{class:`gap-1 pb-1.5`,xAlign:`center`,yAlign:`center`,children:[d(g,{class:a(`px-3 py-1 rounded-full relative`,{"bg-soft-accent":t,"group-hover:bg-soft":!t,"group-active:bg-soft-active":!t}),children:[(e.showBadge??!1)&&d(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-1 right-3`}),t===!0?d(e.activeIcon,{class:`text-accent-text text-icon-xl`}):d(e.regularIcon,{class:`text-fg text-icon-xl`})]}),d(u,{style:t?`small-strong-accent`:`small`,children:e.text})]})})}function Qt(e){let{url:t}=m(),n=bt(),{isUpdateAvailable:r}=X();return d(g,{class:a(e.class,`h-18 bg-bg-navbar grid-cols-[repeat(auto-fit,minmax(0,1fr))] border-t border-soft-border px-2`),children:n.map(n=>d(Zt,{text:n.name,regularIcon:`icon`in n?n.icon:n.regularIcon,activeIcon:`icon`in n?n.icon:n.activeIcon,active:`isActive`in n&&n.isActive(t),href:`href`in n?n.href:void 0,onClick:n.opensMoreDrawer?e.onOpenMoreDrawerRequest:n.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:r&&n.opensMoreDrawer},n.name))})}function $t(e){let t=e.active??!1;return d(g,{class:a(e.class,`border-y-2 border-y-transparent items-center`,{"border-b-accent":t}),children:d(V,{class:e.class,onClick:e.onClick,href:e.href,children:d(R,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[d(g,{class:`relative`,children:[(e.showBadge??!1)&&d(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-0 right-0`}),t===!0?d(e.activeIcon,{class:`text-fg-strong text-icon-lg`}):d(e.regularIcon,{class:`text-fg text-icon-lg`})]}),d(g,{class:`relative`,children:[d(u,{class:a(`absolute left-0 right-0`,{hidden:t}),style:`regular`,align:`center`,children:e.text}),d(u,{class:a({invisible:!t}),style:`strong`,children:e.text})]})]})})})}function en(e){return d(`img`,{class:a(e.class,`w-[1em] h-[1em]`),src:`/favicon.svg`})}function tn(e){let{appName:t}=j(),{url:n}=m(),r=bt(),{isUpdateAvailable:i}=X();return d(f,{class:a(e.class,`h-12 bg-bg-navbar border-b border-soft-border`),children:d(R,{class:`gap-2`,children:[d(V,{class:`self-center`,href:`/`,children:d(R,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[d(en,{class:`text-icon-md`}),d(u,{style:`wordmark`,children:t})]})}),d(R,{children:r.map(t=>d($t,{text:t.name,regularIcon:`icon`in t?t.icon:t.regularIcon,activeIcon:`icon`in t?t.icon:t.activeIcon,active:`isActive`in t&&t.isActive(n),href:`href`in t?t.href:void 0,onClick:t.opensMoreDrawer?e.onOpenMoreDrawerRequest:t.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:i&&t.opensMoreDrawer},t.name))})]})})}function nn(e){let{showMobileNav:t,showDesktopNav:n}=_(),{url:r}=m(),[i,o]=y(!1),[s,c]=y(!1);function u(){c(!1),o(e=>!e)}function f(){o(!1),c(e=>!e)}function p(){o(!1),c(!1)}return l(()=>{o(!1),c(!1)},[r]),d(g,{class:a(e.class,`fixed top-0 bottom-0 left-0 right-0 desktop:grid-rows-[auto_1fr] not-desktop:grid-rows-[1fr_auto]`,{"pointer-events-none":!i&&!s}),children:[d(`div`,{class:`desktop:hidden row-2 pointer-events-auto relative z-1`,children:t&&d(Qt,{onOpenMoreDrawerRequest:u,onOpenSearchDrawerRequest:f})}),d(`div`,{class:`not-desktop:hidden row-1 pointer-events-auto relative z-1`,children:n&&d(tn,{onOpenMoreDrawerRequest:u,onOpenSearchDrawerRequest:f})}),d(`div`,{class:`relative z-0 h-full desktop:row-2 not-desktop:row-1`,children:[d(`div`,{class:a(`absolute desktop:top-0 not-desktop:bottom-0 left-0 right-0 z-1`,{"pointer-events-none":!i}),children:d(wt,{open:i,onClose:p})}),d(`div`,{class:a(`absolute top-0 left-0 right-0 z-1`,{"pointer-events-none":!s}),children:d(Xt,{open:s,onClose:p})}),d(`div`,{class:`absolute top-0 left-0 right-0 bottom-0 z-0`,onClick:p})]})]})}function rn(e){return d(`div`,{class:e.class,children:[d(`div`,{class:`relative z-0`,children:e.children}),d(`div`,{class:`relative z-1`,children:d(nn,{})})]})}var an=`false`,on=`false`,sn=an===`true`,cn=on===`true`;function ln(e={}){let{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:a,onRegisteredSW:o,onRegisterError:s}=e,c,l,u,d=async(e=!0)=>{await l,sn||u?.()};async function f(){if(`serviceWorker`in navigator){if(c=await k(async()=>{let{Workbox:e}=await import(`./workbox-window.prod.es5-Bd17z0YL.js`);return{Workbox:e}},[]).then(({Workbox:e})=>new e(`/sw.js`,{scope:`/`,type:`classic`})).catch(e=>{s?.(e)}),!c)return;if(u=()=>{c?.messageSkipWaiting()},!cn){if(sn)c.addEventListener(`activated`,e=>{(e.isUpdate||e.isExternal)&&(n?n():window.location.reload())}),c.addEventListener(`installed`,e=>{e.isUpdate||i?.()});else{let e=!1,t=()=>{e=!0,c?.addEventListener(`controlling`,e=>{e.isUpdate&&(n?n():window.location.reload())}),r?.()};c.addEventListener(`installed`,n=>{n.isUpdate===void 0?n.isExternal===void 0?!e&&i?.():n.isExternal?t():!e&&i?.():n.isUpdate||i?.()}),c.addEventListener(`waiting`,t)}}c.register({immediate:t}).then(e=>{o?o(`/sw.js`,e):a?.(e)}).catch(e=>{s?.(e)})}}return l=f(),d}function un(e){let{Provider:t}=St,[n,i]=y(!1),[a,o]=y(!1),s=r(()=>ln({onRegisteredSW:()=>{},onRegisterError:e=>console.warn(`Service worker error:`,e),onNeedRefresh:()=>i(!0),onOfflineReady:()=>o(!0)}),[]),c=S(async()=>{try{let e=await navigator.serviceWorker.getRegistrations();for(let t of e)await t.unregister()}catch(e){console.warn(`Failed to unregister service worker:`,e)}},[]),l=r(()=>({isUpdateAvailable:n,isOfflineReady:a,update:s,unregister:c}),[n,a,s,c]);return d(t,{value:l,children:e.children})}function dn(e,t,n={}){let{callApi:r}=ce(),[i,a]=y(null),[o,s]=y(!0),[c,l]=y(null);return ae(()=>{let i=!1;async function o(){try{s(!0),l(null);let o=await r(e,t,n);if(i)return;a(o)}catch(e){if(i)return;console.warn(e),l(e)}finally{i||s(!1)}}return o(),()=>{i=!0}},[e,t,n]),{data:i,loading:o,error:c}}function $(){return{isHotReloadingEnabled:r(()=>!1,[])}}function fn(e){let{isHotReloadingEnabled:t}=$(),{frontendVersion:n,versionsOnLastUpdate:r}=j(),{unregister:i}=X(),{data:a,loading:o,error:s}=dn(ee,{frontendVersion:n,corequeryPackageVersion:r.corequeryPackageVersion}),c=!t&&!o&&s==null&&a!=null&&a.isForceUpdateOfServiceWorkerRequired;return l(()=>{async function e(){c&&(await i(),window.location.reload())}e()},[c,i]),e.children}var pn=O(()=>k(()=>import(`./About-DpFLDTV_.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),mn=O(()=>k(()=>import(`./AdminControls-BMTTV4kR.js`),__vite__mapDeps([14,1,8,9,10]))),hn=O(()=>k(()=>import(`./Debug-DGqHdl31.js`),__vite__mapDeps([15,1,2,3,4,8,9,10,11,12,13]))),gn=O(()=>k(()=>import(`./Home-LcK9TehM.js`),__vite__mapDeps([16,1,3,5,6,7,8,9,10]))),_n=O(()=>k(()=>import(`./Nearby-BNDxZx1J.js`),__vite__mapDeps([17,1,8]))),vn=O(()=>k(()=>import(`./Service-CqfnDpff.js`),__vite__mapDeps([18,1,2,3,19,20,21,13,6,8,9,10,22]))),yn=O(()=>k(()=>import(`./Settings-1Z6FXsgC.js`),__vite__mapDeps([23,1,8,9,10,11,24]))),bn=O(()=>k(()=>import(`./Status-DIIRyqgr.js`),__vite__mapDeps([25,1,8,9,10]))),xn=O(()=>k(()=>import(`./ZenMode-qKwx-pZt.js`),__vite__mapDeps([26,1,7,8,9,10]))),Sn=O(()=>k(()=>import(`./Stop-DKWaUN6o.js`),__vite__mapDeps([27,1,2,3,8,10,28,21,13,22]))),Cn=O(()=>k(()=>import(`./Line-ZicduquS.js`),__vite__mapDeps([29,1,2,3,20,19,21,13,6,8,9,10,12,28,24]))),wn=O(()=>k(()=>import(`./NotFound-zNBih-TR.js`),__vite__mapDeps([30,1,28,2,3,8])));function Tn(){return d(un,{children:d(be,{children:d(fn,{children:d(ot,{children:d(nt,{children:d(v,{children:d(rn,{children:d(pe,{children:d(s,{children:[d(o,{path:`/`,component:gn}),d(o,{path:`/about`,component:pn}),d(o,{path:`/admin`,component:mn}),d(o,{path:`/debug`,component:hn}),d(o,{path:`/line/:id`,component:Cn}),d(o,{path:`/nearby`,component:_n}),d(o,{path:`/service/:sourceId/:intrasourceId`,component:vn}),d(o,{path:`/settings`,component:yn}),d(o,{path:`/status`,component:bn}),d(o,{path:`/stop/:id`,component:Sn}),d(o,{path:`/zen`,component:xn}),d(o,{default:!0,component:wn})]})})})})})})})})})}x(d(Tn,{}),document.body);export{F as _,Mt as a,ut as c,K as d,W as f,I as g,L as h,Nt as i,ct as l,R as m,dn as n,X as o,H as p,Jt as r,_t as s,$ as t,it as u,j as v};
|