corequery 0.21.0 → 0.21.2

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.
Files changed (62) hide show
  1. package/package.json +23 -23
  2. package/server/dist/server/data/color.js.map +1 -1
  3. package/web/dist/assets/About-DAaLYPD7.js +1 -0
  4. package/web/dist/assets/AdminControls-CAHIvSqy.js +1 -0
  5. package/web/dist/assets/Alert-DoABxmqI.js +1 -0
  6. package/web/dist/assets/Clickable-D1TNwGuC.js +1 -0
  7. package/web/dist/assets/Debug-Cy4c3jP2.js +1 -0
  8. package/web/dist/assets/Divider-CcI2YbQH.js +1 -0
  9. package/web/dist/assets/Home-CV-4QET7.js +1 -0
  10. package/web/dist/assets/Line-B1rtq4vk.js +1 -0
  11. package/web/dist/assets/LinkText-DtF3nxj9.js +1 -0
  12. package/web/dist/assets/Markdown-Cr97bVX7.js +2 -0
  13. package/web/dist/assets/MingcuteHome4Line-BiUjjVvN.js +1 -0
  14. package/web/dist/assets/Nearby-D2FmJANF.js +1 -0
  15. package/web/dist/assets/NotFound-B8gcnYIb.js +1 -0
  16. package/web/dist/assets/NotFoundPage-DgTdlJO8.js +1 -0
  17. package/web/dist/assets/Page-DP1FhtBp.js +1 -0
  18. package/web/dist/assets/Picker-DC5JdQKt.js +1 -0
  19. package/web/dist/assets/Placeholder-DoWVgZc6.js +1 -0
  20. package/web/dist/assets/Row-D1d3ltVs.js +1 -0
  21. package/web/dist/assets/Settings-qCtXXePy.js +1 -0
  22. package/web/dist/assets/Status-CzmNe0Oq.js +1 -0
  23. package/web/dist/assets/Stop-Dhga96zY.js +1 -0
  24. package/web/dist/assets/Strong-FZRGw19l.js +1 -0
  25. package/web/dist/assets/UilInfoCircle-lrrGtmxR.js +1 -0
  26. package/web/dist/assets/ZenMode-CtKDtYm2.js +1 -0
  27. package/web/dist/assets/index-BNcE_gna.js +2 -0
  28. package/web/dist/assets/index-BYo_H_BZ.css +2 -0
  29. package/web/dist/assets/use-environment-YCRIEvb0.js +1 -0
  30. package/web/dist/assets/use-foundational-data-Dljl0K9y.js +1 -0
  31. package/web/dist/assets/use-nav-exemptions-g-rkHMZJ.js +1 -0
  32. package/web/dist/assets/use-query-DbYzoCD4.js +65 -0
  33. package/web/dist/assets/use-settings-Bzc3dwPw.js +1 -0
  34. package/web/dist/assets/use-simple-headers-C4GxWMlc.js +1 -0
  35. package/web/dist/assets/use-terminology-DXfjUncT.js +1 -0
  36. package/web/dist/assets/workbox-window.prod.es5-Bd17z0YL.js +2 -0
  37. package/web/dist/index.html +12 -2
  38. package/web/dist/sw.js +1 -1
  39. package/web/dist/assets/About-Ox_VHZSH.js +0 -1
  40. package/web/dist/assets/AdminControls-T82I_J0H.js +0 -1
  41. package/web/dist/assets/Alert-DdYsBO4M.js +0 -1
  42. package/web/dist/assets/Debug-BCwT0ejz.js +0 -1
  43. package/web/dist/assets/Divider-CaLjEkYe.js +0 -1
  44. package/web/dist/assets/Home-DLW2yF_Y.js +0 -1
  45. package/web/dist/assets/Line-CqR10xU6.js +0 -1
  46. package/web/dist/assets/LinkText-B0hg25AL.js +0 -1
  47. package/web/dist/assets/Markdown-mEZJYyxY.js +0 -2
  48. package/web/dist/assets/Nearby-CviKUhza.js +0 -1
  49. package/web/dist/assets/NotFound-RPjPQRng.js +0 -1
  50. package/web/dist/assets/NotFoundPage-DVDEdASu.js +0 -1
  51. package/web/dist/assets/Page-waBiyr-H.js +0 -1
  52. package/web/dist/assets/Picker-BBuQ4CDJ.js +0 -1
  53. package/web/dist/assets/Placeholder-DVm4pq0L.js +0 -1
  54. package/web/dist/assets/Settings-BXFuXEkQ.js +0 -1
  55. package/web/dist/assets/Status-rl4TTMi0.js +0 -1
  56. package/web/dist/assets/Stop-Bal6GMIZ.js +0 -1
  57. package/web/dist/assets/Strong-Ct5Lg6YN.js +0 -1
  58. package/web/dist/assets/ZenMode-DrqD2L8i.js +0 -1
  59. package/web/dist/assets/index-DdDab3g7.css +0 -1
  60. package/web/dist/assets/index-Dk2v2v0A.js +0 -66
  61. package/web/dist/assets/use-simple-headers-L7e4rL0b.js +0 -1
  62. package/web/dist/assets/workbox-window.prod.es5-BBnX5xw4.js +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corequery",
3
- "version": "0.21.0",
3
+ "version": "0.21.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "server/dist",
@@ -26,40 +26,40 @@
26
26
  "bump-check": "bump-check --ignore \"^renovate\\/\""
27
27
  },
28
28
  "dependencies": {
29
- "@dan-schel/js-utils": "^4.13.0",
29
+ "@dan-schel/js-utils": "^4.14.1",
30
30
  "express": "^5.2.1",
31
- "node-html-parser": "^7.1.0",
31
+ "node-html-parser": "^9.0.1",
32
32
  "sharp": "^0.34.5",
33
- "temporal-polyfill": "1.0.1",
33
+ "temporal-polyfill": "1.0.4",
34
34
  "zod": "^4.4.3"
35
35
  },
36
36
  "devDependencies": {
37
- "@eslint/js": "9.39.4",
38
- "@preact/preset-vite": "2.10.5",
39
- "@tailwindcss/vite": "4.3.0",
37
+ "@eslint/js": "9.39.5",
38
+ "@preact/preset-vite": "2.10.6",
39
+ "@tailwindcss/vite": "4.3.3",
40
40
  "@types/express": "5.0.6",
41
- "@types/node": "24.12.4",
42
- "@vitest/coverage-v8": "4.1.6",
43
- "chalk": "5.6.2",
41
+ "@types/node": "24.13.3",
42
+ "@vitest/coverage-v8": "4.1.10",
43
+ "chalk": "6.0.0",
44
44
  "clsx": "2.1.1",
45
- "eslint": "9.39.4",
45
+ "eslint": "9.39.5",
46
46
  "eslint-config-prettier": "10.1.8",
47
- "eslint-plugin-prettier": "5.5.5",
47
+ "eslint-plugin-prettier": "5.5.6",
48
48
  "eslint-plugin-react": "7.37.5",
49
49
  "eslint-plugin-react-hooks": "7.1.1",
50
- "globals": "17.6.0",
51
- "knip": "6.14.1",
52
- "preact": "10.29.2",
53
- "preact-iso": "2.12.0",
54
- "prettier": "3.8.3",
55
- "tailwindcss": "4.3.0",
56
- "tsc-alias": "1.8.17",
57
- "tsx": "4.22.1",
50
+ "globals": "17.11.0",
51
+ "knip": "6.32.2",
52
+ "preact": "10.29.8",
53
+ "preact-iso": "2.12.2",
54
+ "prettier": "3.9.6",
55
+ "tailwindcss": "4.3.3",
56
+ "tsc-alias": "1.9.2",
57
+ "tsx": "4.23.12",
58
58
  "typescript": "6.0.3",
59
- "typescript-eslint": "8.59.3",
60
- "vite": "7.3.3",
59
+ "typescript-eslint": "8.67.0",
60
+ "vite": "8.2.1",
61
61
  "vite-plugin-pwa": "1.3.0",
62
- "vitest": "4.1.6"
62
+ "vitest": "4.1.10"
63
63
  },
64
64
  "author": "dan-schel",
65
65
  "description": "A platform for building web apps serving transit information.",
@@ -1 +1 @@
1
- {"version":3,"file":"color.js","sourceRoot":"","sources":["../../../data/color.ts"],"names":[],"mappings":"AAeA,MAAM,QAAQ,GAA4B;IACxC,GAAG,EAAE;QACH,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,MAAM,EAAE;QACN,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,KAAK,EAAE;QACL,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,MAAM,EAAE;QACN,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,WAAW;QAC7B,eAAe,EAAE,WAAW;KAC7B;CACF,CAAC;AAEF,MAAM,UAAU,mBAAmB,CAAC,KAAY;IAC9C,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC"}
1
+ {"version":3,"file":"color.js","sourceRoot":"","sources":["../../../data/color.ts"],"names":[],"mappings":"AAQA,MAAM,QAAQ,GAA4B;IACxC,GAAG,EAAE;QACH,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,MAAM,EAAE;QACN,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,KAAK,EAAE;QACL,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,MAAM,EAAE;QACN,gBAAgB,EAAE,SAAS;QAC3B,eAAe,EAAE,SAAS;KAC3B;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,WAAW;QAC7B,eAAe,EAAE,WAAW;KAC7B;CACF,CAAC;AAEF,MAAM,UAAU,mBAAmB,CAAC,KAAY;IAC9C,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC"}
@@ -0,0 +1 @@
1
+ import{f as e,l as t,t as n}from"./use-query-DbYzoCD4.js";import{c as r,i,r as a}from"./use-nav-exemptions-g-rkHMZJ.js";import{n as o}from"./use-foundational-data-Dljl0K9y.js";import{t as s}from"./Placeholder-DoWVgZc6.js";import{n as c,t as l}from"./Markdown-Cr97bVX7.js";import{t as u}from"./Page-DP1FhtBp.js";import{t as d}from"./use-simple-headers-C4GxWMlc.js";import{t as f}from"./Divider-CcI2YbQH.js";import{t as p}from"./Alert-DoABxmqI.js";function m(){let{appName:m}=e(),{foda:h}=o(),{data:g,loading:_,error:v}=n(t,{}),y=d({title:`About ${m}`});return _?r(u,{...y,children:r(a,{class:`px-4 py-8`,children:[r(s,{class:`w-[30%] text-xl`}),r(`div`,{class:`h-8`}),r(s,{class:`w-full text-md`}),r(`div`,{class:`h-3`}),r(s,{class:`w-full text-md`}),r(`div`,{class:`h-3`}),r(s,{class:`w-[60%] text-md`}),r(`div`,{class:`h-12`}),r(s,{class:`w-[40%] text-lg`}),r(`div`,{class:`h-8`}),r(s,{class:`w-full text-md`}),r(`div`,{class:`h-3`}),r(s,{class:`w-full text-md`}),r(`div`,{class:`h-3`}),r(s,{class:`w-[20%] text-md`}),r(`div`,{class:`h-12`}),r(s,{class:`w-[50%] text-lg`}),r(`div`,{class:`h-8`}),r(s,{class:`w-full text-md`}),r(`div`,{class:`h-3`}),r(s,{class:`w-[80%] text-md`})]})}):v!=null||g==null?r(u,{...y,children:r(a,{class:`px-4 py-8`,children:r(p,{type:`error`,children:r(i,{children:`Unable to load the about page.`})})})}):r(u,{...y,children:r(a,{class:`px-4 py-8 gap-12`,children:[r(l,{markdown:g.primaryMarkdown}),r(a,{class:`gap-8`,children:[r(f,{}),r(i,{as:`p`,style:`small-weak`,children:r(c,{markdown:h.footerPrimaryMarkdown})})]})]})})}export{m as default};
@@ -0,0 +1 @@
1
+ import{c as e,i as t,r as n}from"./use-nav-exemptions-g-rkHMZJ.js";import{t as r}from"./Page-DP1FhtBp.js";import{t as i}from"./use-simple-headers-C4GxWMlc.js";function a(){return e(r,{...i({title:`Admin controls`}),children:e(n,{class:`px-4 py-8 gap-8`,children:e(t,{children:`Maybe the real admin controls were the friends we made along the way?`})})})}export{a as default};
@@ -0,0 +1 @@
1
+ import{a as e,c as t,o as n,s as r}from"./use-nav-exemptions-g-rkHMZJ.js";import{n as i,t as a}from"./UilInfoCircle-lrrGtmxR.js";function o(e){return t(`div`,{class:r(e.class,`flex flex-col justify-center items-stretch`),style:{height:`${e.heightRem}rem`},children:e.children})}function s(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`,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:`m13.299 3.148l8.634 14.954a1.5 1.5 0 0 1-1.299 2.25H3.366a1.5 1.5 0 0 1-1.299-2.25l8.634-14.954c.577-1 2.02-1 2.598 0M12 4.898L4.232 18.352h15.536zM12 15a1 1 0 1 1 0 2a1 1 0 0 1 0-2m0-7a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V9a1 1 0 0 1 1-1`})]})})}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:a,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(n,{class:r(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(o,{heightRem:e(`text-md`),children:t(d,{class:`text-fg text-icon-lg`})}),l.children]})}export{s as n,o as r,l as t};
@@ -0,0 +1 @@
1
+ import{c as e,s as t}from"./use-nav-exemptions-g-rkHMZJ.js";function n(n){let r=t(`grid not-disabled:cursor-pointer select-none`,n.class);return n.onClick==null&&n.href!=null&&!(n.disabled??!1)?e(`a`,{class:r,href:n.href,onClick:n.onHrefClick,children:n.children}):e(`button`,{class:r,onClick:n.onClick,disabled:n.disabled,children:n.children})}export{n as t};
@@ -0,0 +1 @@
1
+ import{f as e,i as t,t as n}from"./use-query-DbYzoCD4.js";import{S as r,a as i,c as a,i as o,o as s,r as c,s as l,y as u}from"./use-nav-exemptions-g-rkHMZJ.js";import{c as d,i as f,r as p,t as m}from"./use-environment-YCRIEvb0.js";import{t as h}from"./Row-D1d3ltVs.js";import{n as g}from"./use-foundational-data-Dljl0K9y.js";import{n as _}from"./index-BNcE_gna.js";import{t as v}from"./Placeholder-DoWVgZc6.js";import{t as y}from"./Page-DP1FhtBp.js";import{t as b}from"./use-simple-headers-C4GxWMlc.js";import{t as x}from"./Divider-CcI2YbQH.js";import{r as S,t as C}from"./Alert-DoABxmqI.js";var w=r(null);function T(){let e=u(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],n={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 a(s,{class:l(e.class,t,n,`px-2 py-1.5 rounded-full`),children:a(o,{style:`small`,children:e.text})})}function D(e){return a(h,{class:l(e.class,`gap-x-2 gap-y-3`),wrap:!0,children:[a(o,{style:`strong`,children:e.header}),e.loading&&a(v,{class:`w-[20%] text-md`}),!e.loading&&e.pillContent!=null&&a(S,{heightRem:i(`text-md`),children:a(E,{type:e.pillContent.type,text:e.pillContent.text})})]})}function O(e){return a(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?a(s,{class:e.class,children:a(v,{class:`w-[40%] text-md`})}):e.value==null?null:a(o,{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:n}=p();return t?a(f,{theme:`accent`,text:`Refresh & update`,class:`self-start`,icon:_,onClick:()=>void n()}):a(h,{class:l(e.class,`gap-2`),children:[a(S,{heightRem:i(`text-md`),children:a(d,{})}),a(o,{class:`min-w-0 shrink`,children:`Waiting for service worker to install update...`})]})}function N(e){let{isHotReloadingEnabled:t}=m();return a(t?P:F,{...e})}function P(e){let{data:t,loading:n}=T();return a(c,{class:l(e.class,`gap-6`),children:[a(D,{header:`App version`,pillContent:{text:`Development`,type:`info`},loading:!1}),a(o,{children:`All frontend code is being served with hot-reloading enabled, not through the PWA. (The below values are meaningless.)`}),a(I,{}),a(A,{prefix:`Latest version`,value:t?.frontendVersion.slice(0,8)??null,loading:n})]})}function F(t){let{frontendVersion:n}=e(),{data:r,loading:i}=T(),o=!i&&r!=null&&r?.frontendVersion!==n;return a(c,{class:l(t.class,`gap-8`),children:a(c,{class:`gap-6`,children:[a(O,{header:`App version`,currentValue:n,latestValue:r?.frontendVersion??null,loading:i}),a(I,{}),a(A,{prefix:`Latest version`,value:j(r?.frontendVersion),loading:i}),o&&a(M,{})]})})}function I(){let{frontendVersion:t,versionsOnLastUpdate:n}=e();return a(c,{class:`gap-4`,children:[a(o,{children:[`Current version: `,j(t)]}),a(c,{class:`gap-3`,children:[a(o,{style:`small-weak`,children:[`Server version: `,j(n.serverVersion)]}),a(o,{style:`small-weak`,children:[`CoreQuery version: `,n.corequeryPackageVersion]})]})]})}function L(e){let r=n(t,{});return a(w.Provider,{value:r,children:e.children})}function R(e){let{data:t,loading:n}=T(),{foda:r}=g();return a(c,{class:l(e.class,`gap-6`),children:[a(O,{header:`Foundational data`,currentValue:r.hash,latestValue:t?.foundationalDataHash??null,loading:n}),a(c,{class:`gap-4`,children:[a(o,{children:[`Current version: `,j(r.hash)]}),a(o,{style:`small-weak`,children:[`Server version: `,j(r.serverVersion)]})]}),a(A,{prefix:`Latest version`,value:j(t?.foundationalDataHash),loading:n})]})}function z(e){let{data:t,loading:n}=T();return a(c,{class:l(e.class,`gap-8`),children:a(c,{class:`gap-6`,children:[a(o,{style:`strong`,children:`Server`}),a(B,{}),a(c,{class:`gap-4`,children:[a(A,{prefix:`Server version`,value:j(t?.serverVersion),loading:n}),a(A,{prefix:`CoreQuery version`,value:t?.corequeryPackageVersion??null,loading:n})]})]})})}function B(){let{error:e}=T();return e==null?null:a(C,{type:`error`,children:a(o,{children:`Unable to fetch the latest version info from the server.`})})}function V(){return a(y,{...b({title:`Developer info`}),children:a(L,{children:a(c,{class:`px-4 py-8 gap-8`,children:[a(H,{}),a(N,{}),a(x,{}),a(R,{}),a(x,{}),a(z,{}),a(x,{})]})})})}function H(){let{error:e}=T();return e==null?null:a(C,{type:`error`,children:a(o,{children:`Unable to fetch the latest version info from the server.`})})}export{V as default};
@@ -0,0 +1 @@
1
+ import{c as e,s as t}from"./use-nav-exemptions-g-rkHMZJ.js";function n(n){return e(`div`,{class:t(n.class,`border-b border-soft-border`)})}export{n as t};
@@ -0,0 +1 @@
1
+ import{c as e,r as t}from"./use-nav-exemptions-g-rkHMZJ.js";import{n}from"./use-foundational-data-Dljl0K9y.js";import{t as r}from"./Markdown-Cr97bVX7.js";import{t as i}from"./Page-DP1FhtBp.js";import{t as a}from"./use-simple-headers-C4GxWMlc.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};
@@ -0,0 +1 @@
1
+ import{c as e,f as t}from"./use-query-DbYzoCD4.js";import{_ as n,c as r,g as i,h as a,i as o,m as s,o as c,p as l,r as u,s as d,v as f}from"./use-nav-exemptions-g-rkHMZJ.js";import{n as p}from"./use-foundational-data-Dljl0K9y.js";import{n as m}from"./use-settings-Bzc3dwPw.js";import{n as h,t as ee}from"./use-terminology-DXfjUncT.js";import{t as g}from"./LinkText-DtF3nxj9.js";import{t as _}from"./Page-DP1FhtBp.js";import{t as v}from"./use-simple-headers-C4GxWMlc.js";import{n as y,t as b}from"./Alert-DoABxmqI.js";import{t as x}from"./NotFoundPage-DgTdlJO8.js";import{t as S}from"./Picker-DC5JdQKt.js";function C(e){throw Error(`Unexpected value: ${String(e)}`)}function w(e){if(!/^-?[0-9]+$/g.test(e))throw T(e);return parseInt(e,10)}var T=e=>Error(`"${e}" is not an integer.`);function te(e){let{foda:n}=p(),{appName:i}=t(),s=a(()=>e.fallbackStopList.map(e=>n.stops.require(e)).sort((e,t)=>e.name.localeCompare(t.name)),[n.stops,e.fallbackStopList]);return r(u,{class:d(e.class,`gap-6`),children:[r(o,{style:`subtitle`,children:`Stops`}),r(b,{type:`info`,children:r(u,{class:`gap-6`,children:[r(o,{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 `,i,` to be able to view.`,` `]}),r(o,{style:`strong`,children:r(g,{href:`/debug`,children:`Help me update`})})]})}),r(`ul`,{class:`flex-col flex list-disc list-inside gap-4`,children:s.map(e=>r(o,{children:r(`li`,{children:r(g,{href:`/stop/${e.urlPath}`,children:e.name})})}))})]})}var E=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 D(e){let{data:t,createController:a}=e,o=s(null),c=s(null),[l,u]=i(null),f=e.interceptTouches??!1?{touchAction:`none`}:void 0;return n(()=>{if(o.current==null||c.current==null)return;let e=a(o.current,c.current);return u(e),()=>{e?.destroy()}},[a]),n(()=>{l?.setData(t)},[l,t]),r(`div`,{ref:o,className:d(e.class,`relative overflow-hidden`),children:r(`canvas`,{className:`absolute top-0 left-0`,ref:c,style:f})})}function O(){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 ne=6,k=6,A=1,j=class extends E{_css;_prefersDark;constructor(e,t){super(e,t),this._css=O(),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=h(n[0]),s=h(n[n.length-1]);this._drawLine(e=>{e.moveTo(t,o-A),e.lineTo(t,s+A)}),e.forEach((o,s)=>{let c=h(n[s]),l=s===0&&r||s===e.length-1&&i;(o.drawMark??!0)&&this._drawMark(t,c,l,a)})}_drawLine(e){this.ctx.lineWidth=k,this.ctx.beginPath(),e(this.ctx),this.ctx.stroke()}_drawMark(e,t,n,r){let i={left:-1,right:1}[r];this.ctx.lineWidth=ne,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=h(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}},re=class extends j{_onRenderStructure(){let e=this.data.structure;this._renderSection({stops:e.stops,x:this.width/2,yLevels:this._extractYLevels(e.stops,N),terminatesAtTop:!0,terminatesAtBottom:!0,notchSide:`right`})}};function M(e){return r(u,{class:d(e.class,`gap-2`),xAlign:`center`,children:[r(y,{class:`text-icon-xl text-fg`}),r(o,{align:`center`,children:`An error occurred rendering this diagram.`})]})}var N=`_diagram-stops`;function P(e){let{settings:t}=m(),n=a(()=>({structure:e.structure,lightThemeColorHexCode:e.lightThemeColorHexCode,darkThemeColorHexCode:e.darkThemeColorHexCode,colorTheme:t.theme}),[e.darkThemeColorHexCode,e.lightThemeColorHexCode,e.structure,t.theme]),i=f((e,t)=>new re(e,t),[]);return n.structure.stops.length<2?r(M,{}):r(c,{class:d(e.class,`grid-cols-[auto_1fr] gap-4`),children:[r(D,{class:`w-4`,createController:i,data:n}),r(u,{class:d(`gap-6`,N),children:e.structure.stops.map(e=>r(c,{children:e.content}))})]})}function F(e,t){return t.map(t=>{let n=e.stops.require(t.stopId),i=`/stop/${n.urlPath}`;if(t.type===`regular`)return{content:r(o,{style:`strong`,children:r(g,{href:i,style:`subtle`,children:n.name})})};if(t.type===`always-express`)return{content:r(o,{style:`small-weak`,children:r(g,{href:i,style:`subtle`,children:[`Skips `,n.name]})}),drawMark:!1};C(t.type)})}function I(e){let{foda:t}=p(),n=a(()=>({type:`linear`,stops:F(t,e.diagram.stops)}),[t,e.diagram.stops]);return r(P,{class:e.class,structure:n,lightThemeColorHexCode:e.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:e.diagram.color?.darkModeHexCode??null})}var L=10,R=15,z=class extends j{_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+L),e.bezierCurveTo(r.common,i.common.bottom+R+L,r.branchA,i.branches.top-R,r.branchA,i.branches.top),e.lineTo(r.branchA,i.branchA.top),e.moveTo(r.common,i.common.bottom+L),e.bezierCurveTo(r.common,i.common.bottom+R+L,r.branchB,i.branches.top-R,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,B),i=h(r[0]),a=h(r[r.length-1]),o=this._extractYLevels(t,V),s=h(o[0]),c=h(o[o.length-1]),l=this._extractYLevels(n,H),u=h(l[0]),d=h(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:d},branches:{top:Math.min(s,u),bottom:Math.max(c,d)}}}}},B=`_diagram-common-stops`,V=`_diagram-branch-a-stops`,H=`_diagram-branch-b-stops`;function U(e){let{settings:t}=m(),n=a(()=>({structure:e.structure,lightThemeColorHexCode:e.lightThemeColorHexCode,darkThemeColorHexCode:e.darkThemeColorHexCode,colorTheme:t.theme}),[e.darkThemeColorHexCode,e.lightThemeColorHexCode,e.structure,t.theme]),i=f((e,t)=>new z(e,t),[]);return n.structure.commonStops.length<1||n.structure.branchAStops.length<1||n.structure.branchBStops.length<1?r(M,{}):r(c,{class:d(e.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-y-8 gap-x-4`),children:[r(D,{class:`w-12 col-2 row-span-full`,createController:i,data:n}),r(u,{class:d(`gap-6 col-3 row-1 -ml-4`,B),xAlign:`left`,children:e.structure.commonStops.map(e=>r(c,{children:e.content}))}),r(u,{class:d(`gap-6 col-1 row-2`,V),xAlign:`right`,children:e.structure.branchAStops.map(e=>r(c,{children:e.content}))}),r(u,{class:d(`gap-6 col-3 row-2`,H),xAlign:`left`,children:e.structure.branchBStops.map(e=>r(c,{children:e.content}))})]})}function W(e){let{foda:t}=p(),n=a(()=>({type:`branch`,commonStops:F(t,e.diagram.commonStops),branchAStops:F(t,e.diagram.branchAStops),branchBStops:F(t,e.diagram.branchBStops)}),[t,e.diagram]);return r(U,{class:e.class,structure:n,lightThemeColorHexCode:e.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:e.diagram.color?.darkModeHexCode??null})}var G=10,K=15,q=24,J=1,Y=class extends j{_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-J),e.lineTo(r.loopLeft,i.loopLeft.bottom+J)}),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-J),e.lineTo(r.loopRight,i.loopRight.bottom+J)}),n.length>0){let e=h(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-G),t.bezierCurveTo(r.main,e-K-G,r.loopLeft,i.loop.bottom+K,r.loopLeft,i.loop.bottom),t.lineTo(r.loopLeft,i.loopLeft.bottom),t.moveTo(r.main,e-G),t.bezierCurveTo(r.main,e-K-G,r.loopRight,i.loop.bottom+K,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+q,r.loopRight,i.loop.bottom+q,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-q,r.loopRight,i.loop.top-q,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,Z),i=this._extractYLevels(t,Q),a=this._extractYLevels(n,X),o=r[0],s=i[0],c=r[r.length-1],l=i[i.length-1],u=h(o??s),d=h(s??o),f=h(c??l),p=h(l??c);return{x:{loopLeft:8,loopRight:this.width-8,main:this.width/2},y:{loopLeft:{all:r,top:u,bottom:f},loopRight:{all:i,top:d,bottom:p},main:{all:a,top:a[0]??null,bottom:a[a.length-1]??null},loop:{top:Math.min(u,d),bottom:Math.max(f,p)}}}}},X=`_diagram-main-stops`,Z=`_diagram-loop-left-stops`,Q=`_diagram-loop-right-stops`;function ie(e){let{settings:t}=m(),n=a(()=>({structure:e.structure,lightThemeColorHexCode:e.lightThemeColorHexCode,darkThemeColorHexCode:e.darkThemeColorHexCode,colorTheme:t.theme}),[e.darkThemeColorHexCode,e.lightThemeColorHexCode,e.structure,t.theme]),i=f((e,t)=>new Y(e,t),[]),{loopLeftStops:o,loopRightStops:s}=n.structure;return o.length+s.length<1?r(M,{}):r(c,{class:d(e.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-x-4`),children:[r(D,{class:`w-12 col-2 row-span-full`,createController:i,data:n}),r(u,{class:d(`gap-6 col-1 row-1 py-4`,Z),xAlign:`right`,yAlign:`center`,children:e.structure.loopLeftStops.map(e=>r(c,{children:e.content}))}),r(u,{class:d(`gap-6 col-3 row-1 py-4`,Q),xAlign:`left`,yAlign:`center`,children:e.structure.loopRightStops.map(e=>r(c,{children:e.content}))}),r(u,{class:d(`gap-6 col-3 row-2 -ml-4`,X,{"pt-4":e.structure.mainStops.length>0}),xAlign:`left`,children:e.structure.mainStops.map(e=>r(c,{children:e.content}))})]})}function ae(e){let{foda:t}=p(),n=a(()=>({type:`loop`,loopLeftStops:F(t,e.diagram.loopLeftStops),loopRightStops:F(t,e.diagram.loopRightStops),mainStops:F(t,e.diagram.mainStops)}),[t,e.diagram]);return r(ie,{class:e.class,structure:n,lightThemeColorHexCode:e.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:e.diagram.color?.darkModeHexCode??null})}function $(e){return r(c,{class:d(e.class,`bg-bg-raised px-4 py-8 justify-center rounded-sm border border-soft-border`),children:r(oe,{diagram:e.diagram})})}function oe(e){if(e.diagram.type===`linear`)return r(I,{diagram:e.diagram});if(e.diagram.type===`branch`)return r(W,{diagram:e.diagram});if(e.diagram.type===`loop`)return r(ae,{diagram:e.diagram});C(e.diagram)}function se(t){let n=t.diagram.entries.filter(t=>e(t.type));return n.length<t.diagram.entries.length?r(te,{fallbackStopList:t.diagram.fallbackStopList}):r(u,{class:d(t.class,`gap-6`),children:[r(o,{style:`subtitle`,children:`Diagram`}),n.length===1?r($,{diagram:h(n[0])}):r(ce,{entries:n},n.length)]})}function ce(e){let[t,n]=i(0),o=a(()=>e.entries.map((e,t)=>({value:t.toFixed(),label:e.name??`Route ${t+1}`})),[e.entries]);return r(u,{class:`gap-4`,children:[r(S,{class:`self-start`,value:t.toFixed(),options:o,onChange:e=>{n(w(e))}}),r($,{diagram:h(e.entries[t])})]})}function le(){let{params:{id:e}}=l(),{foda:t}=p(),n=a(()=>t.lines.getByUrlPath(e??``),[t.lines,e]);return n===null?r(x,{afterConfirming:`foundational-data-version`}):r(ue,{line:n})}function ue(e){let{formatLine:t}=ee();return r(_,{...v({title:t(e.line.name)}),children:r(u,{class:`px-4 py-8 gap-8`,children:e.line.diagram.entries.length>0&&r(se,{diagram:e.line.diagram})})})}export{le as default};
@@ -0,0 +1 @@
1
+ import{c as e,s as t}from"./use-nav-exemptions-g-rkHMZJ.js";var n={default:`text-accent-text underline`,subtle:`hover:underline`};function r(r){let i=n[r.style??`default`],a=t(i,`inline`,r.class);return r.onClick==null?r.href==null?e(`span`,{class:a,children:r.children}):e(`a`,{class:a,href:r.href,children:r.children}):e(`span`,{class:a,onClick:r.onClick,children:r.children})}export{r as t};
@@ -0,0 +1,2 @@
1
+ import{c as e,h as t,i as n,r,s as i,x as a}from"./use-nav-exemptions-g-rkHMZJ.js";import{t as o}from"./LinkText-DtF3nxj9.js";import{t as s}from"./Strong-FZRGw19l.js";var c=/\[([^[\]]+)\]\(([^()]+)\)/,l=/\*\*(.+?)\*\*/,u=/\*([^*]+)\*/,d=/_([^_]+)_/;function f(t,n){let r=[],i=t;for(;i.length>0;){let t=p(i);if(t==null){r.push(i);break}t.index>0&&r.push(i.slice(0,t.index));let o=f(t.innerContent,n);r.push(t.wrap(e(a,{children:o}),n)),i=i.slice(t.index+t.fullMatch.length)}return r}function p(e){let t=[m(e),h(e),g(e,u),g(e,d)],n=null;for(let e of t)e!=null&&(n==null||e.index<n.index)&&(n=e);return n}function m(e){let t=e.match(c);if(t==null||t.index==null||t[1]==null||t[2]==null)return null;let n=t[2];return!n.startsWith(`https://`)&&!n.startsWith(`/`)?null:{index:t.index,fullMatch:t[0],innerContent:t[1],wrap:(e,t)=>t.link(e,n)}}function h(e){let t=e.match(l);return t==null||t.index==null||t[1]==null?null:{index:t.index,fullMatch:t[0],innerContent:t[1],wrap:(e,t)=>t.bold(e)}}function g(e,t){let n=e.match(t);return n==null||n.index==null||n[1]==null?null:{index:n.index,fullMatch:n[0],innerContent:n[1],wrap:(e,t)=>t.italic(e)}}function _(t){return e(`em`,{class:i(t.class),children:t.children})}var v={bold:t=>e(s,{children:t}),italic:t=>e(_,{children:t}),link:(t,n)=>e(o,{href:n,children:t})},y={h1:{render:(t,r)=>e(n,{as:`h1`,style:`title`,children:t},r),marginTop:`mt-12`},h2:{render:(t,r)=>e(n,{as:`h2`,style:`subtitle`,children:t},r),marginTop:`mt-12`},h3:{render:(t,r)=>e(n,{as:`h3`,style:`strong`,children:t},r),marginTop:`mt-12`},p:{render:(t,r)=>e(n,{as:`p`,children:t},r),marginTop:`mt-8`},bold:v.bold,italic:v.italic,link:v.link};function b(n){let r=n.style??v,i=t(()=>f(n.markdown,r),[n.markdown,r]);return e(a,{children:i})}function x(e){return e.split(`
2
+ `).map(e=>e.replace(/[\r\t]/g,``).trim()).filter(e=>e.length>0).map(e=>{let t=e.match(/^### (.+)$/);if(t!=null&&t[1]!=null)return{kind:`h3`,content:t[1]};let n=e.match(/^## (.+)$/);if(n!=null&&n[1]!=null)return{kind:`h2`,content:n[1]};let r=e.match(/^# (.+)$/);return r!=null&&r[1]!=null?{kind:`h1`,content:r[1]}:{kind:`p`,content:e}})}function S(n){let a=n.style??y,o=t(()=>x(n.markdown).map((t,n)=>{let r=a[t.kind],i=n===0?``:r.marginTop;return e(`div`,{class:i,children:r.render(e(b,{style:a,markdown:t.content}),n)},n)}),[n.markdown,a]);return e(r,{class:i(n.class),children:o})}export{b as n,S as t};
@@ -0,0 +1 @@
1
+ import{s as e}from"./use-query-DbYzoCD4.js";import{c as t}from"./use-nav-exemptions-g-rkHMZJ.js";var n=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}},r=class extends n{_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)}},i=class extends n{_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)}},a=class t{_raw;stops;lines;constructor(e){this._raw=e,this.stops=new r(e.stops),this.lines=new i(e.lines)}get hash(){return this._raw.metadata.hash}get serverVersion(){return this._raw.metadata.serverVersion}get footerPrimaryMarkdown(){return this._raw.footer.primaryMarkdown}get terminology(){return this._raw.terminology}get landingPage(){return this._raw.landingPage}static json=e.transform(e=>new t(e));toJson(){return this._raw}};function o(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:`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`})]})})}export{a as n,o as t};
@@ -0,0 +1 @@
1
+ import{c as e,i as t,r as n}from"./use-nav-exemptions-g-rkHMZJ.js";import{t as r}from"./Page-DP1FhtBp.js";function i(){return e(r,{mobileHeader:null,desktopHeader:null,children:e(n,{class:`px-4 py-8 gap-8`,children:e(t,{children:`Idk`})})})}export{i as default};
@@ -0,0 +1 @@
1
+ import{c as e}from"./use-nav-exemptions-g-rkHMZJ.js";import{t}from"./NotFoundPage-DgTdlJO8.js";function n(){return e(t,{afterConfirming:`frontend-version`})}export{n as default};
@@ -0,0 +1 @@
1
+ import{f as e,i as t,o as n,r,t as i}from"./use-query-DbYzoCD4.js";import{_ as a,c as o,g as s,i as c,r as l}from"./use-nav-exemptions-g-rkHMZJ.js";import{n as u,t as d}from"./MingcuteHome4Line-BiUjjVvN.js";import{c as f,i as p,r as m,t as h}from"./use-environment-YCRIEvb0.js";import{n as g}from"./use-foundational-data-Dljl0K9y.js";import{t as _}from"./Page-DP1FhtBp.js";function v({afterConfirming:v}){let{isHotReloadingEnabled:y}=h(),{frontendVersion:b}=e(),{unregister:x}=m(),{foda:S,updateFoda:C}=g(),{callApi:w}=r(),{data:T,loading:E,error:D}=i(t,{}),[O,k]=s(!1),A=v===`frontend-version`&&!y&&!E&&D==null&&T!=null&&T.frontendVersion!==b,j=v===`foundational-data-version`&&!E&&D==null&&T!=null&&T.foundationalDataHash!==S.hash;return a(()=>{if(!A)return;async function e(){await x(),window.location.reload()}e()},[A,x]),a(()=>{if(!j)return;async function e(){k(!0);try{let e=await w(n,{hash:S.hash});e.result===`outdated`&&C(new u(e.foundationalData))}catch{}finally{k(!1)}}e()},[j,w,S.hash,C]),E||A||O?o(_,{mobileHeader:null,desktopHeader:null,children:o(l,{xAlign:`center`,yAlign:`center`,children:o(f,{})})}):o(_,{mobileHeader:null,desktopHeader:null,children:o(l,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[o(c,{style:`title`,align:`center`,children:`Page not found`}),o(c,{align:`center`,children:`This page doesn't exist, at least not anymore!`}),o(p,{href:`/`,text:`Go home`,icon:d})]})})}export{v as t};
@@ -0,0 +1 @@
1
+ import{c as e,n as t,o as n,s as r,t as i}from"./use-nav-exemptions-g-rkHMZJ.js";function a(t){return e(n,{class:r(t.class,`not-desktop:hidden`),children:t.children})}function o(t){return e(n,{class:r(t.class,`fixed top-0 left-0 right-0 bg-bg-navbar border-b border-soft-border desktop:hidden`),children:t.children})}function s(s){let{showMobileNav:c}=i(),l=s.centered??!0;return e(n,{class:r(`bg-bg min-h-svh relative`,{"pt-14":s.mobileHeader!=null,"not-desktop:pb-18":c,"desktop:grid-rows-[auto_1fr]":s.desktopHeader!=null},`desktop:pt-12`),children:[s.desktopHeader!=null&&e(a,{children:s.desktopHeader}),s.mobileHeader!=null&&e(o,{class:`h-14 z-1`,children:s.mobileHeader}),e(n,{class:`z-0`,children:l?e(t,{children:s.children}):s.children})]})}export{s as t};
@@ -0,0 +1 @@
1
+ import{c as e,i as t,s as n}from"./use-nav-exemptions-g-rkHMZJ.js";import{t as r}from"./Clickable-D1TNwGuC.js";import{t as i}from"./Row-D1d3ltVs.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=n(a),l=n(o),u=n(s);function d(t){return e(i,{class:n(t.class,`overflow-hidden rounded-sm border border-accent max-w-full`),children:t.options.map((n,r)=>e(f,{class:`shrink`,label:n.label,active:n.value===t.value,last:r===t.options.length-1,onClick:()=>t.onChange(n.value)},n.value))})}function f(a){return e(r,{class:n(a.class,`relative group min-h-8`,{[u]:a.active,"border-r border-accent":!a.last}),onClick:a.onClick,children:[e(`div`,{class:n(`absolute z-0 top-0 bottom-0 left-0 right-0`,{[c]:!a.active,[l]:a.active})}),e(i,{class:`relative z-1 px-6 py-2 min-w-0`,xAlign:`center`,yAlign:`center`,children:e(t,{class:`shrink min-w-min`,align:`center`,children:a.label})})]})}export{d as t};
@@ -0,0 +1 @@
1
+ import{c as e,s as t}from"./use-nav-exemptions-g-rkHMZJ.js";function n(n){return e(`div`,{class:t(n.class,`bg-placeholder animate-placeholder-pulse`)})}function r(r){return e(n,{...r,class:t(r.class,`h-[1em] -my-[0.13em]`)})}export{r as t};
@@ -0,0 +1 @@
1
+ import{c as e,s as t}from"./use-nav-exemptions-g-rkHMZJ.js";var n={left:`justify-start`,center:`justify-center`,right:`justify-end`,"space-between":`justify-between`},r={top:`items-start`,center:`items-center`,bottom:`items-end`,stretch:`items-stretch`};function i(i){let a=i.as??`div`,o=n[i.xAlign??`left`],s=r[i.yAlign??`stretch`];return e(a,{class:t(`flex flex-row`,o,s,{"flex-wrap":i.wrap},i.class),children:i.children})}export{i as t};
@@ -0,0 +1 @@
1
+ import{c as e,i as t,r as n}from"./use-nav-exemptions-g-rkHMZJ.js";import{n as r}from"./use-settings-Bzc3dwPw.js";import{t as i}from"./index-BNcE_gna.js";import{t as a}from"./Page-DP1FhtBp.js";import{t as o}from"./use-simple-headers-C4GxWMlc.js";import{t as s}from"./Divider-CcI2YbQH.js";import{t as c}from"./Picker-DC5JdQKt.js";var l={auto:`Auto`,light:`Light`,dark:`Dark`},u=i.map(e=>({value:e,label:l[e]}));function d(t){let{settings:n,updateSettings:i}=r();return e(c,{class:t.class,value:n.theme,options:u,onChange:e=>{i(t=>t.with({theme:e}))}})}function f(){return e(a,{...o({title:`Settings`}),children:e(n,{class:`px-4 py-8 gap-8`,children:[e(n,{class:`gap-6`,children:[e(t,{style:`strong`,children:`Theme`}),e(t,{children:`"Auto" means the colour theme should follow your device's/browser's settings.`}),e(d,{class:`self-start`})]}),e(s,{}),e(t,{style:`small-weak`,children:`(Settings are saved to your device's/browser's local storage.)`})]})})}export{f as default};
@@ -0,0 +1 @@
1
+ import{c as e,i as t,r as n}from"./use-nav-exemptions-g-rkHMZJ.js";import{t as r}from"./Page-DP1FhtBp.js";import{t as i}from"./use-simple-headers-C4GxWMlc.js";function a(){return e(r,{...i({title:`Status`}),children:e(n,{class:`px-4 py-8 gap-8`,children:e(t,{children:`LGTM`})})})}export{a as default};
@@ -0,0 +1 @@
1
+ import"./use-query-DbYzoCD4.js";import{c as e,h as t,i as n,p as r,r as i}from"./use-nav-exemptions-g-rkHMZJ.js";import{n as a}from"./use-foundational-data-Dljl0K9y.js";import{t as o}from"./Page-DP1FhtBp.js";import{t as s}from"./use-simple-headers-C4GxWMlc.js";import{t as c}from"./NotFoundPage-DgTdlJO8.js";function l(e,t,n,r){return e.length===0?``:e.length===1?e[0]:e.length===2?`${e[0]}${r}${e[1]}`:`${e.slice(0,-1).join(t)}${n}${e[e.length-1]}`}function u(e){return l(e,`, `,`, and `,` and `)}function d(){let{params:{id:n}}=r(),{foda:i}=a(),o=t(()=>i.stops.getByUrlPath(n??``),[i.stops,n]);return o===null?e(c,{afterConfirming:`foundational-data-version`}):e(f,{stop:o})}function f(t){let{foda:r}=a();return e(o,{...s({title:t.stop.name}),children:e(i,{class:`px-4 py-8 gap-8`,children:e(n,{children:[u(t.stop.canonicalLinesServingStop.map(e=>r.lines.require(e).name).sort((e,t)=>e.localeCompare(t))),` `,t.stop.canonicalLinesServingStop.length===1?`Line`:`lines`]})})})}export{d as default};
@@ -0,0 +1 @@
1
+ import{c as e,s as t}from"./use-nav-exemptions-g-rkHMZJ.js";function n(n){return e(`strong`,{class:t(n.class,`text-fg-strong`),children:n.children})}export{n as t};
@@ -0,0 +1 @@
1
+ import{c as e}from"./use-nav-exemptions-g-rkHMZJ.js";function t(t){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...t,children:e(`g`,{fill:`none`,children:[e(`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`}),e(`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 n(t){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...t,children:e(`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`})})}export{t as n,n as t};
@@ -0,0 +1 @@
1
+ import{c as e,i as t,r as n}from"./use-nav-exemptions-g-rkHMZJ.js";import{t as r}from"./Strong-FZRGw19l.js";import{t as i}from"./Page-DP1FhtBp.js";import{t as a}from"./use-simple-headers-C4GxWMlc.js";function o(){return e(i,{...a({title:`Zen mode`}),children:e(n,{class:`px-4 py-8 gap-8`,children:e(t,{children:[e(r,{children:`✨`}),` Zen! `,e(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-DAaLYPD7.js","assets/use-query-DbYzoCD4.js","assets/use-nav-exemptions-g-rkHMZJ.js","assets/use-foundational-data-Dljl0K9y.js","assets/Placeholder-DoWVgZc6.js","assets/Markdown-Cr97bVX7.js","assets/LinkText-DtF3nxj9.js","assets/Strong-FZRGw19l.js","assets/Page-DP1FhtBp.js","assets/use-simple-headers-C4GxWMlc.js","assets/Row-D1d3ltVs.js","assets/Divider-CcI2YbQH.js","assets/Alert-DoABxmqI.js","assets/UilInfoCircle-lrrGtmxR.js","assets/AdminControls-CAHIvSqy.js","assets/Debug-Cy4c3jP2.js","assets/use-environment-YCRIEvb0.js","assets/Clickable-D1TNwGuC.js","assets/Home-CV-4QET7.js","assets/Nearby-D2FmJANF.js","assets/Settings-qCtXXePy.js","assets/use-settings-Bzc3dwPw.js","assets/Picker-DC5JdQKt.js","assets/Status-CzmNe0Oq.js","assets/ZenMode-CtKDtYm2.js","assets/Stop-Dhga96zY.js","assets/NotFoundPage-DgTdlJO8.js","assets/MingcuteHome4Line-BiUjjVvN.js","assets/Line-B1rtq4vk.js","assets/use-terminology-DXfjUncT.js","assets/NotFound-B8gcnYIb.js"])))=>i.map(i=>d[i]);
2
+ import{a as e,d as t,f as n,n as r,o as i,r as a,t as o,u as s}from"./use-query-DbYzoCD4.js";import{C as c,_ as l,b as u,c as d,d as f,f as p,g as m,h,i as g,l as _,m as v,n as y,o as b,r as x,s as S,t as ee,u as C,v as w,w as T}from"./use-nav-exemptions-g-rkHMZJ.js";import{n as E,t as D}from"./MingcuteHome4Line-BiUjjVvN.js";import{a as O,c as te,i as k,n as A,o as j,r as M,s as ne,t as re}from"./use-environment-YCRIEvb0.js";import{t as ie}from"./Clickable-D1TNwGuC.js";import{t as N}from"./Row-D1d3ltVs.js";import{n as ae,t as oe}from"./use-foundational-data-Dljl0K9y.js";import{n as se,t as ce}from"./use-settings-Bzc3dwPw.js";import{n as le,r as P,t as ue}from"./use-terminology-DXfjUncT.js";import{n as F,t as I}from"./UilInfoCircle-lrrGtmxR.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 L=T.__b;T.__b=e=>{e.type&&e.type._forwarded&&e.ref&&(e.props.ref=e.ref,e.ref=null),L&&L(e)};function R(e){let t,n,r=()=>e().then(e=>n=e&&e.default||e),i=e=>{let[,i]=m(0),a=v(n);if(t||=r(),n!==void 0)return c(n,e);throw a.current||=t.then(()=>i(1)),t};return i.preload=()=>(t||=r(),t),i._forwarded=!0,i}var z=T.__e;T.__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)}z&&z(e,t,n)};function B(e){return this.__c=V,this.componentDidCatch=e.onError,e.children}function V(e){e.then(()=>this.forceUpdate())}var H=`modulepreload`,U=function(e){return`/`+e},W={},G=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),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?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=U(t,n),t=s(t),t in W)return;W[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:H,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}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)})};function de(e){let{Provider:n}=t,r=h(()=>fe(document),[]);return d(n,{value:r,children:e.children})}function fe(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"]`)}}}function K(e,t){let n=w(()=>{let n=localStorage.getItem(e);if(n==null)return null;try{return t.parse(JSON.parse(n))}catch{return null}},[e,t]),r=w(t=>{let n=JSON.stringify(t);localStorage.setItem(e,n)},[e]);return h(()=>({get:n,set:r}),[n,r])}function q(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 pe(e){let{appName:t}=n();return d(b,{class:`w-svw h-svh items-center justify-center`,children:d(x,{class:`gap-12`,xAlign:`center`,children:[d(x,{class:`gap-6`,xAlign:`center`,children:[d(`img`,{class:`w-24 h-24`,src:`/favicon.svg`}),d(g,{style:`title`,children:t})]}),e.error?d(x,{class:`gap-4`,xAlign:`center`,children:[d(g,{children:`Failed to load data :(`}),d(k,{text:`Retry`,icon:q,onClick:e.onRetry})]}):d(te,{style:`large`})]})})}var me=`corequery-foundational-data`,he=2e3;function ge(e){let{Provider:t}=oe,{revalidateSettings:n}=se(),{callApi:r}=a(),i=K(me,E.json),[o]=m(()=>i.get()),[s,c]=m(null),[u,f]=m(!1),p=w(e=>{c(e),n(e),i.set(e.toJson())},[i,n]),g=w(()=>{f(!1),_e({callApi:r,cachedData:o,onDataReady:(e,t)=>{p(e),t&&i.set(e.toJson())},onFailure:()=>{f(!0)}})},[i,o,r,p]);l(()=>{g()},[g]);let _=h(()=>s==null?null:{foda:s,updateFoda:p},[s,p]);return _==null?d(pe,{error:u,onRetry:g}):d(t,{value:_,children:e.children})}async function _e({callApi:e,cachedData:t,onDataReady:n,onFailure:r}){if(t!=null)try{let r=await e(i,{hash:t.hash},{timeout:he});r.result===`up-to-date`?n(t,!1):n(new E(r.foundationalData),!0)}catch(e){console.warn(`Foundational data refresh failed - using cache.`,e),n(t,!1)}else try{let t=await e(i,{hash:null});if(t.result===`up-to-date`)throw Error(`Huh?`);n(new E(t.foundationalData),!0)}catch{r()}}var J=class e{theme;constructor(e){this.theme=e.theme}static default=new e({theme:`auto`});static json=s.object({version:s.literal(1),theme:s.enum([`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 r(this.toJson(),e.toJson())}},ve=[`auto`,`light`,`dark`];function ye(){window.applyTheme?.()}function be(e){let{Provider:t}=ce,n=K(`corequery-settings`,J.json),[r,i]=m(()=>n.get()??(console.warn(`Failed to load settings, using defaults.`),J.default)),a=w((e,t)=>{i(r=>{let i=e(r);return(t?.persist??!0)&&n.set(i.toJson()),i}),ye()},[n]),o=w(e=>{a(t=>{let n=t.validate(e);return n.equals(t)||console.warn(`Settings updated due to foundational data changes.`),n},{persist:!1})},[a]),s=h(()=>({settings:r,updateSettings:a,revalidateSettings:o}),[r,a,o]);return d(t,{value:s,children:e.children})}function xe(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 Se(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 Ce(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 we(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 Te(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 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`,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 Ee(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 De(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 Oe(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 ke(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 X(){return[{name:`Home`,href:`/`,regularIcon:D,activeIcon:Se,isActive:e=>e===`/`},{name:`Status`,href:`/status`,regularIcon:F,activeIcon:xe,isActive:e=>e===`/status`},{name:`Nearby`,href:`/nearby`,regularIcon:we,activeIcon:Ce,isActive:e=>e===`/nearby`},{name:`Search`,icon:Y,opensSearchDrawer:!0},{name:`More`,icon:Te,opensMoreDrawer:!0}]}function Ae(){let{appName:e}=n();return[{name:`About ${e}`,href:`/about`,icon:I},{name:`Settings`,href:`/settings`,icon:De},{name:`Developer info`,href:`/debug`,icon:Ee},{name:`Admin controls`,href:`/admin`,icon:Oe},{name:`Zen mode`,href:`/zen`,icon:ke}]}function je(e){let{isUpdateAvailable:t,update:n}=M(),[r,i]=m(!1);return l(()=>{e.menuFullyClosed&&i(t)},[t,e.menuFullyClosed]),r?d(ne,{rounded:!1,onClick:()=>void n(),children:d(y,{children:d(O,{icon:q,text:`Update available — click to refresh`,outerPadding:!0})})}):null}function Z(e,t){let[n,r]=m(!1);return l(()=>{if(!e){r(!1);return}let n=setTimeout(()=>{r(!0)},t);return()=>{clearTimeout(n)}},[e,t]),n}function Me(e){let t=Ae(),n=Z(!e.open,300);return d(`div`,{class:S(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(x,{class:`relative z-1 desktop:flex-col-reverse`,children:[d(y,{children:d(x,{class:`py-2`,children:t.map(t=>d(k,{icon:t.icon,text:t.name,href:t.href,onHrefClick:e.onClose,theme:`hover-square`,layout:`menu-item`},t.href))})}),d(je,{menuFullyClosed:n})]})]})}function Ne(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 Pe(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`})]})})}function Fe(){let{foda:e}=ae(),{formatStop:t,formatLine:n,pluralStopsTerm:r,pluralLinesTerm:i}=ue();return{candidates:h(()=>{let r=e.stops.map(e=>({id:`stop-${e.id}`,primary:t(e.name),alternatives:[],data:{name:t(e.name),url:`/stop/${e.urlPath}`,icon:Ne}})),i=e.lines.map(e=>({id:`line-${e.id}`,primary:n(e.name),alternatives:[],data:{name:n(e.name),url:`/line/${e.urlPath}`,icon:Pe}}));return[...r,...i]},[e.lines,e.stops,n,t]),placeholder:h(()=>`Search ${r}, ${i}, etc.`,[i,r])}}var Ie={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 Le(e){let t=Ie[e.style??`regular`];return d(Re,{onSubmit:e.onSubmit,children:d(`input`,{class:S(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`,type:e.search??!1?`search`:`text`})})}function Re(e){return e.onSubmit==null?e.children:d(`form`,{class:`grid`,autoComplete:`off`,onSubmit:t=>{t.preventDefault(),e.onSubmit?.()},children:e.children})}var ze=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 Be(e,t){return t.filter(t=>t.primary===e||t.alternatives.includes(e))}function Ve(e,t){return t.filter(t=>t.primary.startsWith(e)).sort((e,t)=>e.primary.length-t.primary.length)}function He(e,t){return t.filter(t=>t.primary.includes(e)).sort((e,t)=>e.primary.length-t.primary.length)}function Ue(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(P).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function We(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(P).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function Ge(e,t,{maxResults:n=5}={}){let r=e.trim().toLowerCase();if(r.length===0)return[];let i=new ze(r,t.map(e=>({...e,primary:e.primary.toLowerCase(),alternatives:e.alternatives.map(e=>e.toLowerCase())})),n);return i.appendResults(Be,{passCandidatesRequiringExactMatch:!0}),i.appendResults(Ve),i.appendResults(He),i.appendResults(Ue),i.appendResults(We),i.getResults()}function Ke(e){let[t,n]=m(``),{candidates:r,placeholder:i}=Fe(),{route:a}=p(),o=h(()=>Ge(t,r,{maxResults:5}),[t,r]),s=Z(!e.open,300);l(()=>{s&&n(``)},[s]);let c=v(null),u=Z(e.open,100);l(()=>{u&&c.current?.focus()},[u]);function f(){o.length>0&&(a(le(o[0]).url),e.onClose())}return d(`div`,{class:S(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(y,{class:`relative z-1`,children:d(x,{children:[d(b,{class:`relative py-2 border-b border-b-soft-border not-desktop:bg-bg-navbar`,children:[d(Le,{style:`search`,value:t,onChange:n,class:`px-4 pl-12 h-10 desktop:h-8 desktop:pl-11`,placeholder:i,inputRef:c,onSubmit:f,search:!0}),d(Y,{class:`absolute left-4 top-[50%] translate-y-[-50%] pointer-events-none text-fg-weak text-icon-xl desktop:text-icon-lg`})]}),d(x,{class:`h-54 py-2`,children:[o.length===0&&d(b,{class:`h-10 items-center`,children:d(g,{class:`px-4`,style:`weak`,children:`No results.`})}),o.map(t=>d(k,{text:t.name,icon:t.icon,href:t.url,onHrefClick:e.onClose,theme:`hover-square`,layout:`menu-item`},t.url))]})]})})]})}function qe(e){let t=e.active??!1;return d(ie,{class:S(e.class,`group`),onClick:e.onClick,href:e.href,children:d(x,{class:`gap-1 pb-1.5`,xAlign:`center`,yAlign:`center`,children:[d(b,{class:S(`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(g,{style:t?`small-strong-accent`:`small`,children:e.text})]})})}function Je(e){let{url:t}=p(),n=X(),{isUpdateAvailable:r}=M();return d(b,{class:S(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(qe,{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 Ye(e){let t=e.active??!1;return d(b,{class:S(e.class,`border-y-2 border-y-transparent items-center`,{"border-b-accent":t}),children:d(j,{class:e.class,onClick:e.onClick,href:e.href,children:d(N,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[d(b,{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(b,{class:`relative`,children:[d(g,{class:S(`absolute left-0 right-0`,{hidden:t}),style:`regular`,align:`center`,children:e.text}),d(g,{class:S({invisible:!t}),style:`strong`,children:e.text})]})]})})})}function Xe(e){return d(`img`,{class:S(e.class,`w-[1em] h-[1em]`),src:`/favicon.svg`})}function Ze(e){let{appName:t}=n(),{url:r}=p(),i=X(),{isUpdateAvailable:a}=M();return d(y,{class:S(e.class,`h-12 bg-bg-navbar border-b border-soft-border`),children:d(N,{class:`gap-2`,children:[d(j,{class:`self-center`,href:`/`,children:d(N,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[d(Xe,{class:`text-icon-md`}),d(g,{style:`wordmark`,children:t})]})}),d(N,{children:i.map(t=>d(Ye,{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(r),href:`href`in t?t.href:void 0,onClick:t.opensMoreDrawer?e.onOpenMoreDrawerRequest:t.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:a&&t.opensMoreDrawer},t.name))})]})})}function Qe(e){let{showMobileNav:t,showDesktopNav:n}=ee(),{url:r}=p(),[i,a]=m(!1),[o,s]=m(!1);function c(){s(!1),a(e=>!e)}function u(){a(!1),s(e=>!e)}function f(){a(!1),s(!1)}return l(()=>{a(!1),s(!1)},[r]),d(b,{class:S(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&&!o}),children:[d(`div`,{class:`desktop:hidden row-2 pointer-events-auto relative z-1`,children:t&&d(Je,{onOpenMoreDrawerRequest:c,onOpenSearchDrawerRequest:u})}),d(`div`,{class:`not-desktop:hidden row-1 pointer-events-auto relative z-1`,children:n&&d(Ze,{onOpenMoreDrawerRequest:c,onOpenSearchDrawerRequest:u})}),d(`div`,{class:`relative z-0 h-full desktop:row-2 not-desktop:row-1`,children:[d(`div`,{class:S(`absolute desktop:top-0 not-desktop:bottom-0 left-0 right-0 z-1`,{"pointer-events-none":!i}),children:d(Me,{open:i,onClose:f})}),d(`div`,{class:S(`absolute top-0 left-0 right-0 z-1`,{"pointer-events-none":!o}),children:d(Ke,{open:o,onClose:f})}),d(`div`,{class:`absolute top-0 left-0 right-0 bottom-0 z-0`,onClick:f})]})]})}function $e(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(Qe,{})})]})}var et=`false`,tt=`false`,Q=et===`true`,$=tt===`true`;function nt(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,Q||u?.()};async function f(){if(`serviceWorker`in navigator){if(c=await G(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()},!$){if(Q)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 rt(e){let{Provider:t}=A,[n,r]=m(!1),[i,a]=m(!1),o=h(()=>nt({onRegisteredSW:()=>{},onRegisterError:e=>console.warn(`Service worker error:`,e),onNeedRefresh:()=>r(!0),onOfflineReady:()=>a(!0)}),[]),s=w(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)}},[]),c=h(()=>({isUpdateAvailable:n,isOfflineReady:i,update:o,unregister:s}),[n,i,o,s]);return d(t,{value:c,children:e.children})}function it(t){let{isHotReloadingEnabled:r}=re(),{frontendVersion:i,versionsOnLastUpdate:a}=n(),{unregister:s}=M(),{data:c,loading:u,error:d}=o(e,{frontendVersion:i,corequeryPackageVersion:a.corequeryPackageVersion}),f=!r&&!u&&d==null&&c!=null&&c.isForceUpdateOfServiceWorkerRequired;return l(()=>{async function e(){f&&(await s(),window.location.reload())}e()},[f,s]),t.children}var at=R(()=>G(()=>import(`./About-DAaLYPD7.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),ot=R(()=>G(()=>import(`./AdminControls-CAHIvSqy.js`),__vite__mapDeps([14,2,8,9,10]))),st=R(()=>G(()=>import(`./Debug-Cy4c3jP2.js`),__vite__mapDeps([15,1,2,16,17,10,3,4,8,9,11,12,13]))),ct=R(()=>G(()=>import(`./Home-CV-4QET7.js`),__vite__mapDeps([18,2,3,5,6,7,8,9,10]))),lt=R(()=>G(()=>import(`./Nearby-D2FmJANF.js`),__vite__mapDeps([19,2,8]))),ut=R(()=>G(()=>import(`./Settings-qCtXXePy.js`),__vite__mapDeps([20,2,21,8,9,10,11,22,17]))),dt=R(()=>G(()=>import(`./Status-CzmNe0Oq.js`),__vite__mapDeps([23,2,8,9,10]))),ft=R(()=>G(()=>import(`./ZenMode-CtKDtYm2.js`),__vite__mapDeps([24,2,7,8,9,10]))),pt=R(()=>G(()=>import(`./Stop-Dhga96zY.js`),__vite__mapDeps([25,1,2,3,8,9,10,26,27,16,17]))),mt=R(()=>G(()=>import(`./Line-B1rtq4vk.js`),__vite__mapDeps([28,1,2,3,21,29,6,8,9,10,12,13,26,27,16,17,22]))),ht=R(()=>G(()=>import(`./NotFound-B8gcnYIb.js`),__vite__mapDeps([30,2,26,1,27,16,17,10,3,8])));function gt(){return d(rt,{children:d(de,{children:d(it,{children:d(be,{children:d(ge,{children:d(_,{children:d($e,{children:d(B,{children:d(f,{children:[d(C,{path:`/`,component:ct}),d(C,{path:`/about`,component:at}),d(C,{path:`/admin`,component:ot}),d(C,{path:`/debug`,component:st}),d(C,{path:`/line/:id`,component:mt}),d(C,{path:`/nearby`,component:lt}),d(C,{path:`/settings`,component:ut}),d(C,{path:`/status`,component:dt}),d(C,{path:`/stop/:id`,component:pt}),d(C,{path:`/zen`,component:ft}),d(C,{default:!0,component:ht})]})})})})})})})})})}u(d(gt,{}),document.body);export{q as n,ve as t};
@@ -0,0 +1,2 @@
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-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-sm:.75rem;--text-md:.9rem;--text-mdlg:1rem;--text-lg:1.1rem;--text-xl:1.25rem;--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;--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:#001b5233;--color-soft-border-disabled:#001e5a1f;--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-\[0\.38em\]{margin-top:-.38em}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-12{margin-top:calc(var(--spacing) * 12)}.-mb-\[0\.38em\]{margin-bottom:-.38em}.-ml-4{margin-left:calc(var(--spacing) * -4)}.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-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-54{height:calc(var(--spacing) * 54)}.h-\[1em\]{height:1em}.h-full{height:100%}.h-svh{height:100svh}.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}.-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-\[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)}.self-center{align-self:center}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:2147483647px}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.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)}.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-4{padding-block:calc(var(--spacing) * 4)}.py-4\.5{padding-block:calc(var(--spacing) * 4.5)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.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-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)}.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)}.italic{font-style:italic}.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)}.duration-100{--tw-duration:.1s;transition-duration:.1s}.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-t{border-top-style:var(--tw-border-style);border-top-width:1px}.not-desktop\:bg-bg-navbar{background-color:var(--color-bg-navbar)}.not-desktop\:pb-18{padding-bottom:calc(var(--spacing) * 18)}}.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 (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\:hidden{display:none}.desktop\:h-8{height:calc(var(--spacing) * 8)}.desktop\:-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.desktop\:grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.desktop\:flex-col-reverse{flex-direction:column-reverse}.desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.desktop\:pt-12{padding-top:calc(var(--spacing) * 12)}.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:#adc9ff33;--color-soft-border-disabled:#a5c3ff1f;--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:#adc9ff33;--color-soft-border-disabled:#a5c3ff1f;--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-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}}
@@ -0,0 +1 @@
1
+ import{S as e,c as t,h as n,i as r,o as i,s as a,y as o}from"./use-nav-exemptions-g-rkHMZJ.js";import{t as s}from"./Clickable-D1TNwGuC.js";import{t as c}from"./Row-D1d3ltVs.js";var l={default:`text-icon-lg text-fg-weak`,large:`text-icon-xl text-fg-weak`};function u(e){return t(`svg`,{className:a(`_loading-spinner`,l[e.style??`default`],e.class),xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`,role:`img`,children:[t(`title`,{children:`Loading spinner`}),t(`circle`,{cx:`4`,cy:`4`,r:`2`,fill:`currentColor`}),t(`circle`,{cx:`12`,cy:`4`,r:`2`,fill:`currentColor`}),t(`circle`,{cx:`12`,cy:`12`,r:`2`,fill:`currentColor`}),t(`circle`,{cx:`4`,cy:`12`,r:`2`,fill:`currentColor`})]})}function d(e){return t(i,{class:a(`relative`,e.class),children:[t(i,{class:a({invisible:e.loading}),children:e.children}),e.loading&&t(c,{class:`absolute top-0 left-0 right-0 bottom-0`,xAlign:`center`,yAlign:`center`,children:t(u,{})})]})}var f=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)]`]),p=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 m(e){let n=e.rounded??!0;return t(s,{class:a(e.class,f),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[t(`div`,{class:a(p,{"rounded-sm":n})}),t(d,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function h(e){return t(c,{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&&t(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&t(r,{children:e.text})]})}var g=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),_=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 v(e){return t(s,{class:a(e.class,g),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[t(`div`,{class:_}),t(d,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var y=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),b=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 x(e){return t(s,{class:a(e.class,y),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[t(`div`,{class:b}),t(d,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var S=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),C=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 w(e){return t(s,{class:a(e.class,S),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[t(`div`,{class:C}),t(d,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var T=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),E=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 D(e){return t(s,{class:a(e.class,T),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[t(`div`,{class:E}),t(d,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function O(e){let n=e.outerPadding??!1;return t(c,{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":!n,"min-h-12":n}),yAlign:`center`,children:[e.icon!=null&&t(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&t(r,{class:`shrink min-w-0`,children:e.text})]})}var k=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)]`]),A=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 j(e){return t(s,{class:a(e.class,k),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[t(`div`,{class:A}),t(d,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var M=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)]`]),N=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 P(e){return t(s,{class:a(e.class,M),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[t(`div`,{class:N}),t(d,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var F=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)]`]),I=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 L(e){return t(s,{class:a(e.class,F),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[t(`div`,{class:I}),t(d,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var R={default:v,accent:m,outlined:x,hover:w,"hover-square":D,error:j,warning:P,success:L},z={simple:h,"menu-item":O};function B(e){let n=R[e.theme??`default`],r=z[e.layout??`simple`];return t(n,{class:e.class,onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:e.disabled,loading:e.loading,children:t(r,{icon:e.icon,text:e.text})})}var V=e(null);function H(){let e=o(V);if(e==null)throw Error(`Service worker data unavailable outside provider.`);return e}function U(){return{isHotReloadingEnabled:n(()=>!1,[])}}export{O as a,u as c,B as i,V as n,w as o,H as r,m as s,U as t};
@@ -0,0 +1 @@
1
+ import{S as e,y as t}from"./use-nav-exemptions-g-rkHMZJ.js";var n=e(null);function r(){let e=t(n);if(e==null)throw Error(`Foundational data unavailable outside provider.`);return e}export{r as n,n as t};
@@ -0,0 +1 @@
1
+ var e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h={},g=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function y(e,t){for(var n in t)e[n]=t[n];return e}function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function x(t,n,r){var i,a,o,s={};for(o in n)o==`key`?i=n[o]:o==`ref`?a=n[o]:s[o]=n[o];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),typeof t==`function`&&t.defaultProps!=null)for(o in t.defaultProps)s[o]===void 0&&(s[o]=t.defaultProps[o]);return S(t,s,i,a,null)}function S(e,r,i,a,o){var s={type:e,props:r,key:i,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++n,__i:-1,__u:0};return o==null&&t.vnode!=null&&t.vnode(s),s}function C(e){return e.children}function w(e,t){this.props=e,this.context=t}function T(e,t){if(t==null)return e.__?T(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?T(e):null}function E(e){if(e.__P&&e.__d){var n=e.__v,r=n.__e,i=[],a=[],o=y({},n);o.__v=n.__v+1,t.vnode&&t.vnode(o),I(e.__P,o,n,e.__n,e.__P.namespaceURI,32&n.__u?[r]:null,i,r??T(n),!!(32&n.__u),a),o.__v=n.__v,o.__.__k[o.__i]=o,re(i,o,a),n.__e=n.__=null,o.__e!=r&&D(o)}}function D(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),D(e)}function O(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!k.__r++||i!=t.debounceRendering)&&((i=t.debounceRendering)||a)(k)}function k(){try{for(var e,t=1;r.length;)r.length>t&&r.sort(o),e=r.shift(),t=r.length,E(e)}finally{r.length=k.__r=0}}function ee(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,_,v,y=r&&r.__k||g,b=t.length;for(c=A(n,t,y,c,b),d=0;d<b;d++)(p=n.__k[d])!=null&&(f=p.__i!=-1&&y[p.__i]||h,p.__i=d,v=I(e,p,f,i,a,o,s,c,l,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&L(f.ref,null,p),u.push(p.ref,p.__c||m,p)),_==null&&m!=null&&(_=m),4&p.__u?(c=j(p,c,e),f.__e&&(f.__e=null)):typeof p.type==`function`&&v!==void 0?c=v:m&&(c=m.nextSibling),p.__u&=-7);return n.__e=_,c}function A(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?o=e.__k[a]=S(null,o,null,null,null):v(o)?o=e.__k[a]=S(C,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=e.__k[a]=S(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[a]=o,c=a+f,o.__=e,o.__b=e.__b+1,s=null,(l=o.__i=N(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=T(s)),oe(s,s));return r}function j(e,t,n){var r,i;if(typeof e.type==`function`){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=j(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=T(e)),t=n.insertBefore(e.__e,t||null));do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function M(e,t){return t||=[],e==null||typeof e==`boolean`||(v(e)?e.some(function(e){M(e,t)}):t.push(e)),t}function N(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&!(2&l.__u);if(l===null&&s==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function P(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||_.test(t)?n:n+`px`}function F(e,t,n,r,i){var a,o;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||P(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||P(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(u,`$1`)),o=t.toLowerCase(),t=o in e||t==`onFocusOut`||t==`onFocusIn`?o.slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r?n[l]=r[l]:(n[l]=d,e.addEventListener(t,a?p:f,a)):e.removeEventListener(t,a?p:f,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function te(e){return function(n){if(this.l){var r=this.l[n.type+e];if(n[c]==null)n[c]=d++;else if(n[c]<r[l])return;return r(t.event?t.event(n):n)}}}function I(e,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,_,x,S,E,D,O,k,A,j,M,N,P=n.type;if(n.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[c=n.__e=r.__e]),(d=t.__b)&&d(n);n:if(typeof P==`function`){f=s.length;try{if(E=n.props,D=P.prototype&&P.prototype.render,O=(d=P.contextType)&&i[d.__c],k=d?O?O.props.value:d.__:i,r.__c?S=(p=n.__c=r.__c).__=p.__E:(D?n.__c=p=new P(E,k):(n.__c=p=new w(E,k),p.constructor=P,p.render=se),O&&O.sub(p),p.state||(p.state={}),p.__n=i,m=p.__d=!0,p.__h=[],p._sb=[]),D&&p.__s==null&&(p.__s=p.state),D&&P.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=y({},p.__s)),y(p.__s,P.getDerivedStateFromProps(E,p.__s))),h=p.props,_=p.state,p.__v=n,m)D&&P.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),D&&p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(D&&P.getDerivedStateFromProps==null&&E!==h&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(E,k),n.__v==r.__v||!p.__e&&p.shouldComponentUpdate!=null&&!1===p.shouldComponentUpdate(E,p.__s,k)){n.__v!=r.__v&&(p.props=E,p.state=p.__s,p.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.some(function(e){e&&(e.__=n)}),g.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&s.push(p),c=T(r);break n}p.componentWillUpdate!=null&&p.componentWillUpdate(E,p.__s,k),D&&p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(h,_,x)})}if(p.context=k,p.props=E,p.__P=e,p.__e=!1,A=t.__r,j=0,D)p.state=p.__s,p.__d=!1,A&&A(n),d=p.render(p.props,p.state,p.context),g.push.apply(p.__h,p._sb),p._sb=[];else do p.__d=!1,A&&A(n),d=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++j<25);p.state=p.__s,p.getChildContext!=null&&(i=y(y({},i),p.getChildContext())),D&&!m&&p.getSnapshotBeforeUpdate!=null&&(x=p.getSnapshotBeforeUpdate(h,_)),M=d!=null&&d.type===C&&d.key==null?ie(d.props.children):d,c=ee(e,v(M)?M:[M],n,r,i,a,o,s,c,l,u),p.base=n.__e,n.__u&=-161,p.__h.length&&s.push(p),S&&(p.__E=p.__=null)}catch(e){if(s.length=f,n.__v=null,l||o!=null){if(e.then){for(n.__u|=l?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;o!=null&&(o[o.indexOf(c)]=null),n.__e=c}else if(o!=null)for(N=o.length;N--;)b(o[N])}else n.__e=r.__e;n.__k??=r.__k||[],e.then||ne(n),t.__e(e,n,r)}}else o==null&&n.__v==r.__v?(n.__k=r.__k,n.__e=r.__e):c=n.__e=ae(r.__e,n,r,i,a,o,s,l,u);return(d=t.diffed)&&d(n),128&n.__u?void 0:c}function ne(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(ne))}function re(e,n,r){for(var i=0;i<r.length;i++)L(r[i],r[++i],r[++i]);t.__c&&t.__c(n,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(e){e.call(n)})}catch(e){t.__e(e,n.__v)}})}function ie(e){return typeof e!=`object`||!e||e.__b>0?e:v(e)?e.map(ie):e.constructor===void 0?y({},e):null}function ae(n,r,i,a,o,s,c,l,u){var d,f,p,m,g,_,y,x=i.props||h,S=r.props,C=r.type;if(C==`svg`?o=`http://www.w3.org/2000/svg`:C==`math`?o=`http://www.w3.org/1998/Math/MathML`:o||=`http://www.w3.org/1999/xhtml`,s!=null){for(d=0;d<s.length;d++)if((g=s[d])&&`setAttribute`in g==!!C&&(C?g.localName==C:g.nodeType==3)){n=g,s[d]=null;break}}if(n==null){if(C==null)return document.createTextNode(S);n=document.createElementNS(o,C,S.is&&S),l&&=(t.__m&&t.__m(r,s),!1),s=null}if(C==null)x===S||l&&n.data==S||(n.data=S);else{if(s=C==`textarea`&&S.defaultValue!=null?null:s&&e.call(n.childNodes),!l&&s!=null)for(x={},d=0;d<n.attributes.length;d++)x[(g=n.attributes[d]).name]=g.value;for(d in x)g=x[d],d==`dangerouslySetInnerHTML`?p=g:d==`children`||d in S||d==`value`&&`defaultValue`in S||d==`checked`&&`defaultChecked`in S||F(n,d,null,g,o);for(d in S)g=S[d],d==`children`?m=g:d==`dangerouslySetInnerHTML`?f=g:d==`value`?_=g:d==`checked`?y=g:l&&typeof g!=`function`||x[d]===g||F(n,d,g,x[d],o);if(f)l||p&&(f.__html==p.__html||f.__html==n.innerHTML)||(n.innerHTML=f.__html),r.__k=[];else if(p&&(n.innerHTML=``),ee(r.type==`template`?n.content:n,v(m)?m:[m],r,i,a,C==`foreignObject`?`http://www.w3.org/1999/xhtml`:o,s,c,s?s[0]:i.__k&&T(i,0),l,u),s!=null)for(d=s.length;d--;)b(s[d]);l&&C!=`textarea`||(d=`value`,C==`progress`&&_==null?n.removeAttribute(`value`):_!=null&&(_!==n[d]||C==`progress`&&!_||C==`option`&&_!=x[d])&&F(n,d,_,x[d],o),d=`checked`,y!=null&&y!=n[d]&&F(n,d,y,x[d],o))}return n}function L(e,n,r){try{if(typeof e==`function`){var i=typeof e.__u==`function`;i&&e.__u(),i&&n==null||(e.__u=e(n))}else e.current=n}catch(e){t.__e(e,r)}}function oe(e,n,r){var i,a;if(t.unmount&&t.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||L(i,null,n)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t.__e(e,n)}i.base=i.__P=i.__n=null}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&oe(i[a],n,r||typeof e.type!=`function`);r||b(e.__e),e.__c=e.__=e.__e=void 0}function se(e,t,n){return this.constructor(e,n)}function ce(n,r,i){var a,o,s,c;r==document&&(r=document.documentElement),t.__&&t.__(n,r),o=(a=typeof i==`function`)?null:i&&i.__k||r.__k,s=[],c=[],I(r,n=(!a&&i||r).__k=x(C,null,[n]),o||h,h,r.namespaceURI,!a&&i?[i]:o?null:r.firstChild?e.call(r.childNodes):null,s,!a&&i?i:o?o.__e:r.firstChild,a,c),re(s,n,c),n.props.children=null}function le(t,n,r){var i,a,o,s,c=y({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),n)o==`key`?i=n[o]:o==`ref`?a=n[o]:c[o]=n[o]===void 0&&s!=null?s[o]:n[o];return arguments.length>2&&(c.children=arguments.length>3?e.call(arguments,2):r),S(t.type,c,i||t.key,a||t.ref,null)}function ue(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,O(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c=`__cC`+m++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}e=g.slice,t={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},n=0,w.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=y({},this.state);typeof e==`function`&&(e=e(y({},n),this.props)),e&&y(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),O(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},w.prototype.render=C,r=[],a=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o=function(e,t){return e.__v.__b-t.__v.__b},k.__r=0,s=Math.random().toString(8),c=`__d`+s,l=`__a`+s,u=/(PointerCapture)$|Capture$/i,d=0,f=te(!1),p=te(!0),m=0;var R,z,de,fe,B=0,pe=[],V=t,me=V.__b,he=V.__r,ge=V.diffed,_e=V.__c,ve=V.unmount,ye=V.__;function H(e,t){V.__h&&V.__h(z,e,B||t),B=0;var n=z.__H||(z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function be(e){return B=1,xe(Ae,e)}function xe(e,t,n){var r=H(R++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ae(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=z,!z.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=!1,o=r.__c.props!==e;if(r.__c.__H.__.some(function(e){if(e.__N){i=!0;var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),a){var s=a.call(this,e,t,n);return i?s||o:s}return!i||o};z.__f=!0;var a=z.shouldComponentUpdate,o=z.componentWillUpdate;z.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},z.shouldComponentUpdate=i}return r.__N||r.__}function Se(e,t){var n=H(R++,3);!V.__s&&ke(n.__H,t)&&(n.__=e,n.u=t,z.__H.__h.push(n))}function Ce(e,t){var n=H(R++,4);!V.__s&&ke(n.__H,t)&&(n.__=e,n.u=t,z.__h.push(n))}function U(e){return B=5,W(function(){return{current:e}},[])}function W(e,t){var n=H(R++,7);return ke(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function we(e,t){return B=8,W(function(){return e},t)}function G(e){var t=z.context[e.__c],n=H(R++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(z)),t.props.value):e.__}function Te(){for(var e;e=pe.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(K),t.__h.some(Oe),t.__h=[]}catch(n){t.__h=[],V.__e(n,e.__v)}}}V.__b=function(e){z=null,me&&me(e)},V.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ye&&ye(e,t)},V.__r=function(e){he&&he(e),R=0;var t=(z=e.__c).__H;t&&(de===z?(t.__h=[],z.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(K),t.__h.some(Oe),t.__h=[],R=0)),de=z},V.diffed=function(e){ge&&ge(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(pe.push(t)!==1&&fe===V.requestAnimationFrame||((fe=V.requestAnimationFrame)||De)(Te)),t.__H.__.some(function(e){e.u&&=(e.__H=e.u,void 0)})),de=z=null},V.__c=function(e,t){t.some(function(e){try{e.__h.some(K),e.__h=e.__h.filter(function(e){return!e.__||Oe(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],V.__e(n,e.__v)}}),_e&&_e(e,t)},V.unmount=function(e){ve&&ve(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{K(e)}catch(e){t=e}}),n.__H=void 0,t&&V.__e(t,n.__v))};var Ee=typeof requestAnimationFrame==`function`;function De(e){var t,n=function(){clearTimeout(r),Ee&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Ee&&(t=requestAnimationFrame(n))}function K(e){var t=z,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),z=t}function Oe(e){var t=z;e.__c=e.__(),z=t}function ke(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Ae(e,t){return typeof t==`function`?t(e):t}var q,J;function je(e){return!J||(typeof J==`string`?e.startsWith(J):J.test(e))}function Me(e,t){let n=``;if(q=void 0,t&&t.type===`click`){if(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||t.button!==0)return e;let r=t.composedPath().find(e=>e.nodeName==`A`&&e.href),i=r&&r.getAttribute(`href`);if(!r||r.origin!=location.origin||/^#/.test(i)||!/^(_?self)?$/i.test(r.target)||!je(i)||r.download)return e;q=!0,t.preventDefault(),n=r.href.replace(location.origin,``)}else t&&t.url?(q=!t.replace,n=t.url):n=location.pathname+location.search;return q===!0?history.pushState(null,``,n):q===!1&&history.replaceState(null,``,n),n}var Ne=(e,t,n={})=>{e=e.split(`/`).filter(Boolean),t=(t||``).split(`/`).filter(Boolean),n.params||={};for(let r=0,i,a;r<Math.max(e.length,t.length);r++){let[,o,s,c]=(t[r]||``).match(/^(:?)(.*?)([+*?]?)$/);if(i=e[r],!(!o&&s==i)){if(!o&&i&&c==`*`){n.rest=`/`+e.slice(r).join(`/`);break}if(!o||!i&&c!=`?`&&c!=`*`)return;if(a=c==`+`||c==`*`,a?i=e.slice(r).map(decodeURIComponent).join(`/`)||void 0:i&&=decodeURIComponent(i),n.params[s]=i,s in n||(n[s]=i),a)break}}return n};function Y(e){let[t,n]=xe(Me,e.url||location.pathname+location.search);e.scope&&(J=e.scope);let r=q===!0,i=W(()=>{let e=new URL(t,location.origin),i=e.pathname.replace(/\/+$/g,``)||`/`;return{url:t,path:i,query:Object.fromEntries(e.searchParams),route:(e,t)=>n({url:e,replace:t}),back:()=>{history.back()},forward:()=>{history.forward()},wasPush:r}},[t]);return Ce(()=>(addEventListener(`click`,n),addEventListener(`popstate`,n),()=>{removeEventListener(`click`,n),removeEventListener(`popstate`,n)}),[]),x(Y.ctx.Provider,{value:i},e.children)}var Pe=Promise.resolve();function Fe(e){let[t,n]=xe(e=>e+1,0),{url:r,query:i,wasPush:a,path:o}=ze();if(!r)throw Error(`preact-iso's <Router> must be used within a <LocationProvider>, see: https://github.com/preactjs/preact-iso#locationprovider`);let{rest:s=o,params:c={}}=G(Le),l=U(!1),u=U(o),d=U(1),f=U(),p=U(),m=U(),h=U(!1),g=U();g.current=!1;let _,v,y;M(e.children).some(e=>{if(Ne(s,e.props.path,y={...e.props,path:s,query:i,params:Object.assign({},c),rest:``}))return _=le(e,y);e.props.default&&(v=le(e,y))});let b=_||v,S=f.current&&f.current.__u&X&&f.current.__u&Z,C=f.current&&f.current.__h,w=W(()=>{p.current=f.current,f.current=x(Le.Provider,{value:y},b);let e=p.current&&p.current.props.children;return!e||!b||b.type!==e.type||b.props.component!==e.props.component?(d.current++,!0):!1},[r,JSON.stringify(y)]);S?(f.current.__u|=X,f.current.__u|=Z):C&&(f.current.__h=!0);let T=p.current;return p.current=null,this.__c=(t,i)=>{g.current=!0,p.current=T,e.onLoadStart&&e.onLoadStart(r),l.current=!0;let a=d.current;t.then(()=>{a===d.current&&(p.current=null,f.current&&(i.__h&&(f.current.__h=i.__h),i.__u&Z&&(f.current.__u|=Z),i.__u&X&&(f.current.__u|=X)),Pe.then(n))})},Ce(()=>{let t=this.__v&&this.__v.__e;if(g.current){!h.current&&!m.current&&(m.current=t);return}!h.current&&m.current&&(m.current!==t&&m.current.remove(),m.current=null),h.current=!0,u.current!==o&&(a&&scrollTo(0,0),e.onRouteChange&&e.onRouteChange(r),u.current=o),e.onLoadEnd&&l.current&&e.onLoadEnd(r),l.current=!1},[o,a,t]),w?[x(Ie,{r:f,key:d.current}),x(Ie,{r:p,key:d.current-1})]:x(Ie,{r:f,key:d.current})}var X=32,Z=128,Ie=({r:e})=>e.current;Fe.Provider=Y,Y.ctx=ue({});var Le=ue({}),Re=e=>x(e.component,e),ze=()=>G(Y.ctx),Be=()=>G(Le),Ve=0;Array.isArray;function Q(e,n,r,i,a,o){n||={};var s,c,l=n;if(`ref`in l)for(c in l={},n)c==`ref`?s=n[c]:l[c]=n[c];var u={type:e,props:l,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ve,__i:-1,__u:0,__source:a,__self:o};if(typeof e==`function`&&(s=e.defaultProps))for(c in s)l[c]===void 0&&(l[c]=s[c]);return t.vnode&&t.vnode(u),u}function He(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=He(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function $(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=He(e))&&(r&&(r+=` `),r+=t);return r}function Ue(e){return Q(e.as??`div`,{class:$(`grid`,e.class),children:e.children})}function We(e){return Q(`span`,{class:`block -mt-[0.38em] -mb-[0.38em]`,children:e.children})}var Ge={"text-sm":.75,"text-md":.9,"text-mdlg":1,"text-lg":1.1,"text-xl":1.25};function Ke(e){let t=typeof e==`number`?e:Ge[e];return t*1.5-.76*t}var qe={small:`text-sm text-fg`,"small-weak":`text-sm text-fg-weak`,"small-strong-accent":`text-sm text-accent-text font-bold`,regular:`text-md text-fg`,weak:`text-md text-fg-weak`,strong:`text-md font-bold text-fg-strong`,"strong-accent":`text-md font-bold text-accent-text`,wordmark:`text-mdlg font-bold text-fg-strong`,subtitle:`text-lg font-bold text-fg-strong`,title:`text-xl font-bold text-fg-strong`},Je={left:`text-left`,center:`text-center`,right:`text-right`,justify:`text-justify`};function Ye(e){let t=e.as??`span`,n=Je[e.align??`left`],r=qe[e.style??`regular`],i=e.oneLine??!1?Q(`span`,{class:`whitespace-nowrap overflow-hidden block text-ellipsis`,children:e.children}):e.children;return Q(t,{class:$(e.class,r,n),children:Q(We,{children:i})})}var Xe={left:`items-start`,center:`items-center`,right:`items-end`,stretch:`items-stretch`},Ze={top:`justify-start`,center:`justify-center`,bottom:`justify-end`,"space-between":`justify-between`};function Qe(e){let t=e.as??`div`,n=Xe[e.xAlign??`stretch`],r=Ze[e.yAlign??`top`];return Q(t,{class:$(`flex flex-col`,r,n,{"flex-wrap":e.wrap},e.class),children:e.children})}function $e(e){return Q(Ue,{class:$(e.class,`grid-cols-[0px_1fr_0px] widescreen:grid-cols-[1fr_64rem_1fr]`),children:Q(Ue,{class:`col-start-2`,children:e.children})})}function et(){let{url:e}=ze();return W(()=>({showMobileNav:e!==`askdjflhasdfjklhasdflkjhasdflkjhasdlfkjhasdfa`,showDesktopNav:e!==`askdjflhasdfjklhasdflkjhasdflkjhasdlfkjhasdfa`}),[e])}export{x as C,ue as S,Se as _,Ke as a,ce as b,Q as c,Fe as d,ze as f,be as g,W as h,Ye as i,Y as l,U as m,$e as n,Ue as o,Be as p,Qe as r,$ as s,et as t,Re as u,we as v,t as w,C as x,G as y};