corequery 0.25.0 → 0.25.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 (192) hide show
  1. package/package.json +18 -18
  2. package/server/dist/server/api/create-api-router.d.ts +1 -1
  3. package/server/dist/server/api/create-api-router.js +1 -1
  4. package/server/dist/server/api/handlers/about-page/v1/index.d.ts +1 -1
  5. package/server/dist/server/api/handlers/departures/v0/index.d.ts +1 -1
  6. package/server/dist/server/api/handlers/foundational-data/v1/builder.d.ts +1 -1
  7. package/server/dist/server/api/handlers/foundational-data/v1/index.d.ts +1 -1
  8. package/server/dist/server/api/handlers/foundational-data/v1/index.js +1 -1
  9. package/server/dist/server/api/handlers/service/v0/index.d.ts +1 -1
  10. package/server/dist/server/api/handlers/version-check/v1/index.d.ts +1 -1
  11. package/server/dist/server/api/handlers/versions/v1/index.d.ts +1 -1
  12. package/server/dist/server/api/handlers/versions/v1/index.js +1 -1
  13. package/server/dist/server/api/types.d.ts +1 -1
  14. package/server/dist/server/config/config.d.ts +4 -4
  15. package/server/dist/server/config/helpers/create-canonical-lines-serving-stop-algorithm.d.ts +3 -3
  16. package/server/dist/server/config/helpers/create-canonical-lines-serving-stop-algorithm.js +2 -2
  17. package/server/dist/server/config/helpers/extract-stops-from-line-diagram-shape.d.ts +2 -2
  18. package/server/dist/server/config/linting/line/all-or-none-codes.d.ts +3 -3
  19. package/server/dist/server/config/linting/line/all-or-none-codes.js +2 -2
  20. package/server/dist/server/config/linting/line/all-or-none-colors.d.ts +3 -3
  21. package/server/dist/server/config/linting/line/all-or-none-colors.js +2 -2
  22. package/server/dist/server/config/linting/line/diagram/entry-minimum-stops.d.ts +2 -2
  23. package/server/dist/server/config/linting/line/diagram/entry-minimum-stops.js +2 -2
  24. package/server/dist/server/config/linting/line/diagram/has-entries.d.ts +3 -3
  25. package/server/dist/server/config/linting/line/diagram/has-entries.js +1 -1
  26. package/server/dist/server/config/linting/line/diagram/index.d.ts +4 -4
  27. package/server/dist/server/config/linting/line/diagram/index.js +3 -3
  28. package/server/dist/server/config/linting/line/diagram/stops-exist.d.ts +3 -3
  29. package/server/dist/server/config/linting/line/diagram/stops-exist.js +3 -3
  30. package/server/dist/server/config/linting/line/index.d.ts +4 -4
  31. package/server/dist/server/config/linting/line/index.js +11 -11
  32. package/server/dist/server/config/linting/line/no-duplicate-tags.d.ts +2 -2
  33. package/server/dist/server/config/linting/line/no-duplicate-tags.js +2 -2
  34. package/server/dist/server/config/linting/line/non-empty-code.d.ts +2 -2
  35. package/server/dist/server/config/linting/line/non-empty-code.js +1 -1
  36. package/server/dist/server/config/linting/line/non-empty-name.d.ts +2 -2
  37. package/server/dist/server/config/linting/line/non-empty-name.js +1 -1
  38. package/server/dist/server/config/linting/line/non-empty-url-path.d.ts +2 -2
  39. package/server/dist/server/config/linting/line/non-empty-url-path.js +1 -1
  40. package/server/dist/server/config/linting/line/unique-codes.d.ts +3 -3
  41. package/server/dist/server/config/linting/line/unique-codes.js +2 -2
  42. package/server/dist/server/config/linting/line/unique-ids.d.ts +2 -2
  43. package/server/dist/server/config/linting/line/unique-ids.js +2 -2
  44. package/server/dist/server/config/linting/line/unique-names.d.ts +3 -3
  45. package/server/dist/server/config/linting/line/unique-names.js +2 -2
  46. package/server/dist/server/config/linting/line/unique-url-paths.d.ts +2 -2
  47. package/server/dist/server/config/linting/line/unique-url-paths.js +2 -2
  48. package/server/dist/server/config/linting/lines-page/all-lines-listed.d.ts +5 -5
  49. package/server/dist/server/config/linting/lines-page/all-lines-listed.js +2 -2
  50. package/server/dist/server/config/linting/lines-page/index.d.ts +5 -5
  51. package/server/dist/server/config/linting/lines-page/index.js +2 -2
  52. package/server/dist/server/config/linting/lines-page/no-duplicate-lines.d.ts +5 -5
  53. package/server/dist/server/config/linting/lines-page/no-duplicate-lines.js +2 -2
  54. package/server/dist/server/config/linting/lint.d.ts +1 -1
  55. package/server/dist/server/config/linting/lint.js +5 -5
  56. package/server/dist/server/config/linting/stop/all-or-none-locations.d.ts +3 -3
  57. package/server/dist/server/config/linting/stop/all-or-none-locations.js +2 -2
  58. package/server/dist/server/config/linting/stop/all-or-none-positions.d.ts +3 -3
  59. package/server/dist/server/config/linting/stop/all-or-none-positions.js +2 -2
  60. package/server/dist/server/config/linting/stop/appears-in-diagrams.d.ts +4 -4
  61. package/server/dist/server/config/linting/stop/appears-in-diagrams.js +2 -2
  62. package/server/dist/server/config/linting/stop/index.d.ts +4 -4
  63. package/server/dist/server/config/linting/stop/index.js +10 -10
  64. package/server/dist/server/config/linting/stop/no-duplicate-tags.d.ts +2 -2
  65. package/server/dist/server/config/linting/stop/no-duplicate-tags.js +2 -2
  66. package/server/dist/server/config/linting/stop/non-empty-name.d.ts +2 -2
  67. package/server/dist/server/config/linting/stop/non-empty-name.js +1 -1
  68. package/server/dist/server/config/linting/stop/non-empty-url-path.d.ts +2 -2
  69. package/server/dist/server/config/linting/stop/non-empty-url-path.js +1 -1
  70. package/server/dist/server/config/linting/stop/position/index.d.ts +3 -3
  71. package/server/dist/server/config/linting/stop/position/index.js +3 -3
  72. package/server/dist/server/config/linting/stop/position/non-empty-name.d.ts +2 -2
  73. package/server/dist/server/config/linting/stop/position/non-empty-name.js +1 -1
  74. package/server/dist/server/config/linting/stop/position/unique-ids.d.ts +2 -2
  75. package/server/dist/server/config/linting/stop/position/unique-ids.js +2 -2
  76. package/server/dist/server/config/linting/stop/position/unique-names.d.ts +3 -3
  77. package/server/dist/server/config/linting/stop/position/unique-names.js +2 -2
  78. package/server/dist/server/config/linting/stop/unique-ids.d.ts +2 -2
  79. package/server/dist/server/config/linting/stop/unique-ids.js +2 -2
  80. package/server/dist/server/config/linting/stop/unique-names.d.ts +3 -3
  81. package/server/dist/server/config/linting/stop/unique-names.js +2 -2
  82. package/server/dist/server/config/linting/stop/unique-url-paths.d.ts +2 -2
  83. package/server/dist/server/config/linting/stop/unique-url-paths.js +2 -2
  84. package/server/dist/server/config/linting/tags/index.d.ts +2 -2
  85. package/server/dist/server/config/linting/tags/index.js +1 -1
  86. package/server/dist/server/config/linting/tags/no-duplicates-in-succession.d.ts +2 -2
  87. package/server/dist/server/config/linting/tags/no-duplicates-in-succession.js +2 -2
  88. package/server/dist/server/config/linting/types.d.ts +1 -1
  89. package/server/dist/server/config/linting/utils/issue-collector.d.ts +1 -1
  90. package/server/dist/server/config/types/line-config.d.ts +1 -1
  91. package/server/dist/server/config/types/service-sources-config.d.ts +1 -1
  92. package/server/dist/server/corequery.d.ts +6 -6
  93. package/server/dist/server/corequery.js +7 -7
  94. package/server/dist/server/data/line-collection.d.ts +2 -2
  95. package/server/dist/server/data/line-collection.js +1 -1
  96. package/server/dist/server/data/line-diagram-entry.d.ts +2 -2
  97. package/server/dist/server/data/line-diagram-entry.js +2 -2
  98. package/server/dist/server/data/line-diagram.d.ts +2 -2
  99. package/server/dist/server/data/line-diagram.js +1 -1
  100. package/server/dist/server/data/line.d.ts +4 -4
  101. package/server/dist/server/data/line.js +3 -3
  102. package/server/dist/server/data/service/connection/service-connection.d.ts +2 -2
  103. package/server/dist/server/data/service/departure.d.ts +2 -2
  104. package/server/dist/server/data/service/service-movement.d.ts +4 -4
  105. package/server/dist/server/data/service/service-originating-movement.d.ts +1 -1
  106. package/server/dist/server/data/service/service-regular-movement.d.ts +1 -1
  107. package/server/dist/server/data/service/service-repository.d.ts +3 -3
  108. package/server/dist/server/data/service/service-repository.js +1 -1
  109. package/server/dist/server/data/service/service-source.d.ts +2 -2
  110. package/server/dist/server/data/service/service-terminating-movement.d.ts +1 -1
  111. package/server/dist/server/data/service/service.d.ts +7 -7
  112. package/server/dist/server/data/service/service.js +1 -1
  113. package/server/dist/server/data/service/zipper-departures-iterator.d.ts +2 -2
  114. package/server/dist/server/data/stop-collection.d.ts +2 -2
  115. package/server/dist/server/data/stop-collection.js +1 -1
  116. package/server/dist/server/data/stop.d.ts +3 -3
  117. package/server/dist/server/data/stop.js +2 -2
  118. package/server/dist/server/data/tags.d.ts +1 -1
  119. package/server/dist/server/get-corequery-package-version.js +1 -1
  120. package/server/dist/server/logger/console-logger.d.ts +1 -1
  121. package/server/dist/server/logger/console-logger.js +1 -1
  122. package/server/dist/server/logger/logger.d.ts +2 -2
  123. package/server/dist/server/logger/logger.js +2 -2
  124. package/server/dist/server/web-server/asset-preparer.d.ts +1 -1
  125. package/server/dist/server/web-server/asset-preparer.js +4 -4
  126. package/server/dist/server/web-server/web-server.d.ts +2 -2
  127. package/server/dist/server/web-server/web-server.js +2 -2
  128. package/server/dist/shared/apis/about-page/v1/index.d.ts +1 -1
  129. package/server/dist/shared/apis/departures/v0/index.d.ts +1 -1
  130. package/server/dist/shared/apis/foundational-data/v1/index.d.ts +1 -1
  131. package/server/dist/shared/apis/foundational-data/v1/index.js +1 -1
  132. package/server/dist/shared/apis/service/v0/index.d.ts +1 -1
  133. package/server/dist/shared/apis/version-check/v1/index.d.ts +1 -1
  134. package/server/dist/shared/apis/versions/v1/index.d.ts +1 -1
  135. package/web/dist/assets/About-gTOOjZbV.js +1 -0
  136. package/web/dist/assets/AdminControls-ceQZMnWA.js +1 -0
  137. package/web/dist/assets/Alert-DzonI_hr.js +1 -0
  138. package/web/dist/assets/Debug-CA0X_mxL.js +1 -0
  139. package/web/dist/assets/Divider-NV4IYC9i.js +1 -0
  140. package/web/dist/assets/Home-CXGoEWH-.js +1 -0
  141. package/web/dist/assets/Line-8h63OUmZ.js +1 -0
  142. package/web/dist/assets/{LinkText-BO3BQABI.js → LinkText-D_zogsSd.js} +1 -1
  143. package/web/dist/assets/{Markdown-5DSrRUK6.js → Markdown-DaULZ6y8.js} +1 -1
  144. package/web/dist/assets/Nearby-byRott_O.js +1 -0
  145. package/web/dist/assets/NotFound-CXJ2SsU8.js +1 -0
  146. package/web/dist/assets/NotFoundPage-CznkfVzc.js +1 -0
  147. package/web/dist/assets/{Page-DCUzSHpc.js → Page-C1T-Mo8y.js} +1 -1
  148. package/web/dist/assets/Picker-CFuzTz0h.js +1 -0
  149. package/web/dist/assets/{Placeholder-BLK-raB4.js → Placeholder-Dndy-q2_.js} +1 -1
  150. package/web/dist/assets/Service-BspkQUTP.js +1 -0
  151. package/web/dist/assets/Settings-CQaTsJt5.js +1 -0
  152. package/web/dist/assets/Status-BbEhsAB_.js +1 -0
  153. package/web/dist/assets/Stop-5XU3_c5j.js +1 -0
  154. package/web/dist/assets/Strong-DV_ol9V4.js +1 -0
  155. package/web/dist/assets/ZenMode-zVL4BMZh.js +1 -0
  156. package/web/dist/assets/index-AfQjfg7z.js +2 -0
  157. package/web/dist/assets/{use-foundational-data-CJfuPRzD.js → use-foundational-data-vgqiOgvz.js} +1 -1
  158. package/web/dist/assets/{use-nav-exemptions-K_D5A5Dp.js → use-nav-exemptions-CKh77kPR.js} +1 -1
  159. package/web/dist/assets/use-query-eYS5fPDo.js +55 -0
  160. package/web/dist/assets/use-simple-headers-zWGPz12F.js +1 -0
  161. package/web/dist/index.html +5 -15
  162. package/web/dist/sw.js +1 -1
  163. package/web/dist/assets/About-VbQoAmyQ.js +0 -1
  164. package/web/dist/assets/AdminControls-DUl1Ekw-.js +0 -1
  165. package/web/dist/assets/Alert-BjESlX9K.js +0 -1
  166. package/web/dist/assets/Button-XyONIh2Y.js +0 -1
  167. package/web/dist/assets/Clickable-BwARU32_.js +0 -1
  168. package/web/dist/assets/Debug-dgWz5wjb.js +0 -1
  169. package/web/dist/assets/Divider-DTKq8RTH.js +0 -1
  170. package/web/dist/assets/Home-BMl9F4ZR.js +0 -1
  171. package/web/dist/assets/Line-GAcjy1Iz.js +0 -1
  172. package/web/dist/assets/MingcuteHome4Line-C9WpirCC.js +0 -1
  173. package/web/dist/assets/Nearby-D9MN_gGw.js +0 -1
  174. package/web/dist/assets/NotFound-cw9_c07G.js +0 -1
  175. package/web/dist/assets/NotFoundPage-CLuz-y7a.js +0 -1
  176. package/web/dist/assets/Picker-CZiJZO75.js +0 -1
  177. package/web/dist/assets/Row-Dgd0uJoX.js +0 -1
  178. package/web/dist/assets/Service-CD939QH3.js +0 -1
  179. package/web/dist/assets/Settings-Ds60yPNk.js +0 -1
  180. package/web/dist/assets/Status-Cx8LBciv.js +0 -1
  181. package/web/dist/assets/Stop-sFriiw23.js +0 -1
  182. package/web/dist/assets/Strong-Cipefot2.js +0 -1
  183. package/web/dist/assets/VerticalBleed-DXsU7qEF.js +0 -1
  184. package/web/dist/assets/ZenMode-BTXaHvYK.js +0 -1
  185. package/web/dist/assets/foundational-data-BNBGYMsF.js +0 -1
  186. package/web/dist/assets/index-BOsLvNEK.js +0 -2
  187. package/web/dist/assets/use-environment-DCSCZZ2k.js +0 -1
  188. package/web/dist/assets/use-query-aKyk6jW2.js +0 -65
  189. package/web/dist/assets/use-settings-DmVCxG2H.js +0 -1
  190. package/web/dist/assets/use-simple-headers-zgszX2CN.js +0 -1
  191. package/web/dist/assets/use-static-data-Bd-JldH5.js +0 -1
  192. package/web/dist/assets/use-terminology-BOv-viOC.js +0 -1
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-VbQoAmyQ.js","assets/use-query-aKyk6jW2.js","assets/use-nav-exemptions-K_D5A5Dp.js","assets/use-static-data-Bd-JldH5.js","assets/use-foundational-data-CJfuPRzD.js","assets/Placeholder-BLK-raB4.js","assets/Markdown-5DSrRUK6.js","assets/LinkText-BO3BQABI.js","assets/Strong-Cipefot2.js","assets/Page-DCUzSHpc.js","assets/use-simple-headers-zgszX2CN.js","assets/Row-Dgd0uJoX.js","assets/Divider-DTKq8RTH.js","assets/Alert-BjESlX9K.js","assets/VerticalBleed-DXsU7qEF.js","assets/AdminControls-DUl1Ekw-.js","assets/Debug-dgWz5wjb.js","assets/Button-XyONIh2Y.js","assets/Clickable-BwARU32_.js","assets/use-environment-DCSCZZ2k.js","assets/Home-BMl9F4ZR.js","assets/Nearby-D9MN_gGw.js","assets/Service-CD939QH3.js","assets/integers-BYp6YHG5.js","assets/MingcuteHome4Line-C9WpirCC.js","assets/Settings-Ds60yPNk.js","assets/use-settings-DmVCxG2H.js","assets/Picker-CZiJZO75.js","assets/Status-Cx8LBciv.js","assets/ZenMode-BTXaHvYK.js","assets/Stop-sFriiw23.js","assets/NotFoundPage-CLuz-y7a.js","assets/foundational-data-BNBGYMsF.js","assets/Line-GAcjy1Iz.js","assets/scope-B-e4l8Dr.js","assets/use-terminology-BOv-viOC.js","assets/NotFound-cw9_c07G.js"])))=>i.map(i=>d[i]);
2
- import{a as e,f as t,n,r,s as i,t as a}from"./use-query-aKyk6jW2.js";import{C as o,_ as s,a as c,b as l,c as u,d,f,g as p,h as m,i as h,l as g,m as _,n as v,o as y,r as b,s as x,t as S,u as C,v as w,w as T,x as E}from"./use-nav-exemptions-K_D5A5Dp.js";import{n as D,t as ee}from"./use-static-data-Bd-JldH5.js";import{t as O}from"./foundational-data-BNBGYMsF.js";import{i as k,n as te,o as ne,r as re,s as ie,t as A}from"./Button-XyONIh2Y.js";import{t as j}from"./Clickable-BwARU32_.js";import{t as M}from"./Row-Dgd0uJoX.js";import{n as N,t as ae}from"./use-foundational-data-CJfuPRzD.js";import{n as oe,t as se}from"./use-settings-DmVCxG2H.js";import{n as P,t as F}from"./scope-B-e4l8Dr.js";import{n as ce,r as le,t as ue}from"./VerticalBleed-DXsU7qEF.js";import{t as de}from"./MingcuteHome4Line-C9WpirCC.js";import{n as fe,r as I,t as pe}from"./use-environment-DCSCZZ2k.js";import{t as L}from"./use-terminology-BOv-viOC.js";import{t as R}from"./LinkText-BO3BQABI.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 z=T.__b;T.__b=e=>{e.type&&e.type._forwarded&&e.ref&&(e.props.ref=e.ref,e.ref=null),z&&z(e)};function B(e){let t,n,r=()=>e().then(e=>n=e&&e.default||e),i=e=>{let[,i]=p(0),a=_(n);if(t||=r(),n!==void 0)return o(n,e);throw a.current||=t.then(()=>i(1)),t};return i.preload=()=>(t||=r(),t),i._forwarded=!0,i}var V=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)}V&&V(e,t,n)};function me(e){return this.__c=he,this.componentDidCatch=e.onError,e.children}function he(e){e.then(()=>this.forceUpdate())}var ge=`modulepreload`,_e=function(e){return`/`+e},H={},U=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=_e(t,n),t=s(t),t in H)return;H[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`:ge,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 ve(e){let{Provider:t}=ee,n=m(()=>ye(document),[]);return u(t,{value:n,children:e.children})}function ye(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 W(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 m(()=>({get:n,set:r}),[n,r])}function G(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,children:[u(`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`}),u(`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 be(e){let{appName:t}=D();return u(y,{class:`w-svw h-svh items-center justify-center`,children:u(b,{class:`gap-12`,xAlign:`center`,children:[u(b,{class:`gap-6`,xAlign:`center`,children:[u(`img`,{class:`w-24 h-24`,src:`/favicon.svg`}),u(h,{style:`title`,children:t})]}),e.error?u(b,{class:`gap-4`,xAlign:`center`,children:[u(h,{children:`Failed to load data :(`}),u(A,{text:`Retry`,icon:G,onClick:e.onRetry})]}):u(ie,{style:`large`})]})})}var xe=`corequery-foundational-data`,Se=2e3;function Ce(e){let{Provider:t}=ae,{revalidateSettings:n}=oe(),{callApi:i}=r(),a=W(xe,O.json),[o]=p(()=>a.get()),[c,l]=p(null),[d,f]=p(!1),h=w(e=>{l(e),n(e),a.set(e.toJson())},[a,n]),g=w(()=>{f(!1),we({callApi:i,cachedData:o,onDataReady:(e,t)=>{h(e),t&&a.set(e.toJson())},onFailure:()=>{f(!0)}})},[a,o,i,h]);s(()=>{g()},[g]);let _=m(()=>c==null?null:{foda:c,updateFoda:h},[c,h]);return _==null?u(be,{error:d,onRetry:g}):u(t,{value:_,children:e.children})}async function we({callApi:e,cachedData:t,onDataReady:n,onFailure:r}){if(t!=null)try{let r=await e(i,{hash:t.hash},{timeout:Se});r.result===`up-to-date`?n(t,!1):n(new O(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 O(t.foundationalData),!0)}catch{r()}}var K=class e{theme;constructor(e){this.theme=e.theme}static default=new e({theme:`auto`});static json=t.object({version:t.literal(1),theme:t.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 n(this.toJson(),e.toJson())}},Te=[`auto`,`light`,`dark`];function Ee(){window.applyTheme?.()}function De(e){let{Provider:t}=se,n=W(`corequery-settings`,K.json),[r,i]=p(()=>n.get()??(console.warn(`Failed to load settings, using defaults.`),K.default)),a=w((e,t)=>{i(r=>{let i=e(r);return(t?.persist??!0)&&n.set(i.toJson()),i}),Ee()},[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=m(()=>({settings:r,updateSettings:a,revalidateSettings:o}),[r,a,o]);return u(t,{value:s,children:e.children})}function Oe(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`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`}),u(`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 ke(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,children:[u(`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`}),u(`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 Ae(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`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`}),u(`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 je(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`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`}),u(`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 Me(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,children:[u(`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`}),u(`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 q(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`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`}),u(`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 Ne(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`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`}),u(`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 Pe(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`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`}),u(`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 Fe(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`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`}),u(`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 Ie(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`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`}),u(`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 J(){return[{name:`Home`,href:`/`,regularIcon:de,activeIcon:ke,isActive:e=>e===`/`},{name:`Status`,href:`/status`,regularIcon:le,activeIcon:Oe,isActive:e=>e===`/status`},{name:`Nearby`,href:`/nearby`,regularIcon:je,activeIcon:Ae,isActive:e=>e===`/nearby`},{name:`Search`,icon:q,opensSearchDrawer:!0},{name:`More`,icon:Me,opensMoreDrawer:!0}]}function Le(){let{appName:e}=D();return[{name:`About ${e}`,href:`/about`,icon:ce},{name:`Settings`,href:`/settings`,icon:Pe},{name:`Developer info`,href:`/debug`,icon:Ne},{name:`Admin controls`,href:`/admin`,icon:Fe},{name:`Zen mode`,href:`/zen`,icon:Ie}]}function Re(e){let{isUpdateAvailable:t,update:n}=I(),[r,i]=p(!1);return s(()=>{e.menuFullyClosed&&i(t)},[t,e.menuFullyClosed]),r?u(ne,{rounded:!1,onClick:()=>void n(),children:u(v,{children:u(te,{icon:G,text:`Update available — click to refresh`,outerPadding:!0})})}):null}function Y(e,t){let[n,r]=p(!1);return s(()=>{if(!e){r(!1);return}let n=setTimeout(()=>{r(!0)},t);return()=>{clearTimeout(n)}},[e,t]),n}function ze(e){let t=Le(),n=Y(!e.open,300);return u(`div`,{class:x(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:[u(`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`}),u(b,{class:`relative z-1 desktop:flex-col-reverse`,children:[u(v,{children:u(b,{class:`py-2`,children:t.map(t=>u(A,{icon:t.icon,text:t.name,href:t.href,onHrefClick:e.onClose,theme:`hover-square`,layout:`menu-item`},t.href))})}),u(Re,{menuFullyClosed:n})]})]})}function Be(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`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`}),u(`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 Ve(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`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`}),u(`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 X(e){let t=e.withLinks??!1;return u(h,{class:x(e.class),style:e.style,children:u(He,{lineIds:e.lineIds,withLinks:t})})}function He({lineIds:e,withLinks:t}){let{foda:n}=N();if(e.length===0)return{line:`No lines`,route:`No routes`}[n.terminology.line];let r=u(Ue,{lineIds:e,withLinks:t});return{line:u(E,{children:[r,` `,e.length===1?`Line`:`lines`]}),route:u(E,{children:[e.length===1?`Route`:`Routes`,` `,r]})}[n.terminology.line]}function Ue({lineIds:e,withLinks:t}){let{foda:n}=N(),r=m(()=>e.map(e=>We(e,n)).sort((e,t)=>e.name.localeCompare(t.name)),[e,n]);return r.length===1?u(Z,{data:F(r[0]),withLink:t}):r.length===2?u(E,{children:[u(Z,{data:F(r[0]),withLink:t}),` and`,` `,u(Z,{data:F(r[1]),withLink:t})]}):u(E,{children:[r.slice(0,-1).map((e,n)=>u(E,{children:[u(Z,{data:F(e),withLink:t},n),`,`,` `]})),` and `,u(Z,{data:F(r[r.length-1]),withLink:t})]})}function Z({data:e,withLink:t}){return t?u(R,{href:e.href,style:`strong-subtle`,colorOverride:e.color,children:e.name}):u(E,{children:e.name})}function We(e,t){let n=t.lines.require(e);return{name:n.name,href:`/line/${n.urlPath}`,color:n.color}}function Ge(){let{foda:e}=N(),{formatStop:t,formatLine:n,pluralStopsTerm:r,pluralLinesTerm:i}=L();return{candidates:m(()=>{let r=e.stops.map(e=>({id:`stop-${e.id}`,primary:t(e.name),alternatives:[],data:{title:t(e.name),description:u(X,{lineIds:e.canonicalLinesServingStop,style:`small`}),url:`/stop/${e.urlPath}`,icon:Be}})),i=e.lines.map(e=>({id:`line-${e.id}`,primary:n(e.name),alternatives:[],data:{title:n(e.name),description:null,url:`/line/${e.urlPath}`,icon:Ve}}));return[...r,...i]},[e.lines,e.stops,n,t]),placeholder:m(()=>`Search ${r}, ${i}, etc.`,[i,r])}}var Ke={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 qe(e){let t=Ke[e.style??`regular`];return u(Je,{onSubmit:e.onSubmit,children:u(`input`,{class:x(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 Je(e){return e.onSubmit==null?e.children:u(`form`,{class:`grid`,autoComplete:`off`,onSubmit:t=>{t.preventDefault(),e.onSubmit?.()},children:e.children})}var Ye=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 Xe(e,t){return t.filter(t=>t.primary===e||t.alternatives.includes(e))}function Ze(e,t){return t.filter(t=>t.primary.startsWith(e)).sort((e,t)=>e.primary.length-t.primary.length)}function Qe(e,t){return t.filter(t=>t.primary.includes(e)).sort((e,t)=>e.primary.length-t.primary.length)}function $e(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 et(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 tt(e,t,{maxResults:n=5}={}){let r=e.trim().toLowerCase();if(r.length===0)return[];let i=new Ye(r,t.map(e=>({...e,primary:e.primary.toLowerCase(),alternatives:e.alternatives.map(e=>e.toLowerCase())})),n);return i.appendResults(Xe,{passCandidatesRequiringExactMatch:!0}),i.appendResults(Ze),i.appendResults(Qe),i.appendResults($e),i.appendResults(et),i.getResults()}function nt(e){return u(re,{href:e.href,onHrefClick:e.onHrefClick,class:x(e.class),children:u(M,{class:x(e.class,`gap-2 min-w-0 py-3 px-3 min-h-10`),yAlign:`center`,children:[u(ue,{heightRem:c(`text-md`),children:u(e.icon,{class:`text-fg text-icon-lg`})}),u(b,{class:`gap-2 shrink`,children:[u(h,{style:`strong`,children:e.title}),e.description]})]})})}function rt(e){let[t,n]=p(``),{candidates:r,placeholder:i}=Ge(),{route:a}=f(),o=m(()=>tt(t,r,{maxResults:5}),[t,r]),c=Y(!e.open,300);s(()=>{c&&n(``)},[c]);let l=_(null),d=Y(e.open,100);s(()=>{d&&l.current?.focus()},[d]);function g(){o.length>0&&(a(F(o[0]).url),e.onClose())}return u(`div`,{class:x(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"-translate-y-4":!e.open}),children:[u(`div`,{class:`absolute top-0 bottom-0 left-0 right-0 bg-bg-raised border-b border-soft-border opacity-97`}),u(v,{class:`relative z-1`,children:u(b,{children:[u(y,{class:`relative py-2 border-b border-b-soft-border not-desktop:bg-bg-navbar`,children:[u(qe,{style:`search`,value:t,onChange:n,class:`px-4 pl-12 h-10 desktop:h-8 desktop:pl-11`,placeholder:i,inputRef:l,onSubmit:g,search:!0}),u(q,{class:`absolute left-4 top-[50%] translate-y-[-50%] pointer-events-none text-fg-weak text-icon-xl desktop:text-icon-lg`})]}),u(b,{class:`max-h-[calc(100vh-12rem)] py-2 overflow-y-scroll`,children:[o.length===0&&u(y,{class:`h-32 items-center`,children:u(h,{class:`px-4`,style:`weak`,children:t.length===0?`Results will appear here.`:`No results.`})}),o.map(t=>u(nt,{title:t.title,description:t.description,icon:t.icon,href:t.url,onHrefClick:e.onClose},t.url))]})]})})]})}function it(e){let t=e.active??!1;return u(j,{class:x(e.class,`group`),onClick:e.onClick,href:e.href,children:u(b,{class:`gap-1 pb-1.5`,xAlign:`center`,yAlign:`center`,children:[u(y,{class:x(`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)&&u(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-1 right-3`}),t===!0?u(e.activeIcon,{class:`text-accent-text text-icon-xl`}):u(e.regularIcon,{class:`text-fg text-icon-xl`})]}),u(h,{style:t?`small-strong-accent`:`small`,children:e.text})]})})}function at(e){let{url:t}=f(),n=J(),{isUpdateAvailable:r}=I();return u(y,{class:x(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=>u(it,{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 ot(e){let t=e.active??!1;return u(y,{class:x(e.class,`border-y-2 border-y-transparent items-center`,{"border-b-accent":t}),children:u(k,{class:e.class,onClick:e.onClick,href:e.href,children:u(M,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[u(y,{class:`relative`,children:[(e.showBadge??!1)&&u(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-0 right-0`}),t===!0?u(e.activeIcon,{class:`text-fg-strong text-icon-lg`}):u(e.regularIcon,{class:`text-fg text-icon-lg`})]}),u(y,{class:`relative`,children:[u(h,{class:x(`absolute left-0 right-0`,{hidden:t}),style:`regular`,align:`center`,children:e.text}),u(h,{class:x({invisible:!t}),style:`strong`,children:e.text})]})]})})})}function st(e){return u(`img`,{class:x(e.class,`w-[1em] h-[1em]`),src:`/favicon.svg`})}function ct(e){let{appName:t}=D(),{url:n}=f(),r=J(),{isUpdateAvailable:i}=I();return u(v,{class:x(e.class,`h-12 bg-bg-navbar border-b border-soft-border`),children:u(M,{class:`gap-2`,children:[u(k,{class:`self-center`,href:`/`,children:u(M,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[u(st,{class:`text-icon-md`}),u(h,{style:`wordmark`,children:t})]})}),u(M,{children:r.map(t=>u(ot,{text:t.name,regularIcon:`icon`in t?t.icon:t.regularIcon,activeIcon:`icon`in t?t.icon:t.activeIcon,active:`isActive`in t&&t.isActive(n),href:`href`in t?t.href:void 0,onClick:t.opensMoreDrawer?e.onOpenMoreDrawerRequest:t.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:i&&t.opensMoreDrawer},t.name))})]})})}function lt(e){let{showMobileNav:t,showDesktopNav:n}=S(),{url:r}=f(),[i,a]=p(!1),[o,c]=p(!1);function l(){c(!1),a(e=>!e)}function d(){a(!1),c(e=>!e)}function m(){a(!1),c(!1)}return s(()=>{a(!1),c(!1)},[r]),u(y,{class:x(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:[u(`div`,{class:`desktop:hidden row-2 pointer-events-auto relative z-1`,children:t&&u(at,{onOpenMoreDrawerRequest:l,onOpenSearchDrawerRequest:d})}),u(`div`,{class:`not-desktop:hidden row-1 pointer-events-auto relative z-1`,children:n&&u(ct,{onOpenMoreDrawerRequest:l,onOpenSearchDrawerRequest:d})}),u(`div`,{class:`relative z-0 h-full desktop:row-2 not-desktop:row-1`,children:[u(`div`,{class:x(`absolute desktop:top-0 not-desktop:bottom-0 left-0 right-0 z-1`,{"pointer-events-none":!i}),children:u(ze,{open:i,onClose:m})}),u(`div`,{class:x(`absolute top-0 left-0 right-0 z-1`,{"pointer-events-none":!o}),children:u(rt,{open:o,onClose:m})}),u(`div`,{class:`absolute top-0 left-0 right-0 bottom-0 z-0`,onClick:m})]})]})}function ut(e){return u(`div`,{class:e.class,children:[u(`div`,{class:`relative z-0`,children:e.children}),u(`div`,{class:`relative z-1`,children:u(lt,{})})]})}var dt=`false`,ft=`false`,Q=dt===`true`,pt=ft===`true`;function mt(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 U(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()},!pt){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 ht(e){let{Provider:t}=fe,[n,r]=p(!1),[i,a]=p(!1),o=m(()=>mt({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=m(()=>({isUpdateAvailable:n,isOfflineReady:i,update:o,unregister:s}),[n,i,o,s]);return u(t,{value:c,children:e.children})}function gt(t){let{isHotReloadingEnabled:n}=pe(),{frontendVersion:r,versionsOnLastUpdate:i}=D(),{unregister:o}=I(),{data:c,loading:l,error:u}=a(e,{frontendVersion:r,corequeryPackageVersion:i.corequeryPackageVersion}),d=!n&&!l&&u==null&&c!=null&&c.isForceUpdateOfServiceWorkerRequired;return s(()=>{async function e(){d&&(await o(),window.location.reload())}e()},[d,o]),t.children}var _t=B(()=>U(()=>import(`./About-VbQoAmyQ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),vt=B(()=>U(()=>import(`./AdminControls-DUl1Ekw-.js`),__vite__mapDeps([15,2,9,10,11]))),yt=B(()=>U(()=>import(`./Debug-dgWz5wjb.js`),__vite__mapDeps([16,1,2,3,17,18,11,4,14,19,5,9,10,12,13]))),bt=B(()=>U(()=>import(`./Home-BMl9F4ZR.js`),__vite__mapDeps([20,2,4,6,7,8,9,10,11]))),xt=B(()=>U(()=>import(`./Nearby-D9MN_gGw.js`),__vite__mapDeps([21,2,9]))),St=B(()=>U(()=>import(`./Service-CD939QH3.js`),__vite__mapDeps([22,1,2,17,18,11,4,23,24,8,9,10]))),Ct=B(()=>U(()=>import(`./Settings-Ds60yPNk.js`),__vite__mapDeps([25,2,26,9,10,11,12,27,18]))),wt=B(()=>U(()=>import(`./Status-Cx8LBciv.js`),__vite__mapDeps([28,2,9,10,11]))),Tt=B(()=>U(()=>import(`./ZenMode-BTXaHvYK.js`),__vite__mapDeps([29,2,8,9,10,11]))),$=B(()=>U(()=>import(`./Stop-sFriiw23.js`),__vite__mapDeps([30,1,2,17,18,11,4,8,9,10,31,3,32,24,19]))),Et=B(()=>U(()=>import(`./Line-GAcjy1Iz.js`),__vite__mapDeps([33,1,2,3,4,26,34,23,35,7,9,10,11,13,14,31,32,17,18,24,19,27]))),Dt=B(()=>U(()=>import(`./NotFound-cw9_c07G.js`),__vite__mapDeps([36,2,31,1,3,32,17,18,11,4,24,19,9])));function Ot(){return u(ht,{children:u(ve,{children:u(gt,{children:u(De,{children:u(Ce,{children:u(g,{children:u(ut,{children:u(me,{children:u(d,{children:[u(C,{path:`/`,component:bt}),u(C,{path:`/about`,component:_t}),u(C,{path:`/admin`,component:vt}),u(C,{path:`/debug`,component:yt}),u(C,{path:`/line/:id`,component:Et}),u(C,{path:`/nearby`,component:xt}),u(C,{path:`/service/:sourceId/:intrasourceId`,component:St}),u(C,{path:`/settings`,component:Ct}),u(C,{path:`/status`,component:wt}),u(C,{path:`/stop/:id`,component:$}),u(C,{path:`/zen`,component:Tt}),u(C,{default:!0,component:Dt})]})})})})})})})})})}l(u(Ot,{}),document.body);export{Te as n,G as r,X as t};
@@ -1 +0,0 @@
1
- import{S as e,h as t,y as n}from"./use-nav-exemptions-K_D5A5Dp.js";var r=e(null);function i(){let e=n(r);if(e==null)throw Error(`Service worker data unavailable outside provider.`);return e}function a(){return{isHotReloadingEnabled:t(()=>!1,[])}}export{r as n,i as r,a as t};