corequery 0.35.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/package.json +1 -1
  2. package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.js +2 -0
  3. package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.js.map +1 -1
  4. package/server/dist/shared/apis/foundational-data/v1/foundational-data.d.ts +8 -0
  5. package/server/dist/shared/apis/foundational-data/v1/foundational-data.js +8 -27
  6. package/server/dist/shared/apis/foundational-data/v1/foundational-data.js.map +1 -1
  7. package/server/dist/shared/apis/foundational-data/v1/index.d.ts +8 -0
  8. package/web/dist/assets/{About-DJhKXgnn.js → About-C3wnI7Tt.js} +1 -1
  9. package/web/dist/assets/AdminControls-DrThgKnx.js +1 -0
  10. package/web/dist/assets/Alert-DztxgpkO.js +1 -0
  11. package/web/dist/assets/Debug-Bj0JQBuG.js +1 -0
  12. package/web/dist/assets/Divider-DoDjWpxt.js +1 -0
  13. package/web/dist/assets/ErrorMessage-C9JxifQk.js +1 -0
  14. package/web/dist/assets/Home-Dh99ZtY6.js +1 -0
  15. package/web/dist/assets/Line-DAVFWc_l.js +1 -0
  16. package/web/dist/assets/{LinkText-Co4qc0dx.js → LinkText-oghSfaf2.js} +1 -1
  17. package/web/dist/assets/{Markdown-BY6JcM-Z.js → Markdown-Ds6uHrmO.js} +1 -1
  18. package/web/dist/assets/{MingcuteAlertLine-DxgntDGK.js → MingcuteAlertLine-Cp5hrd7X.js} +1 -1
  19. package/web/dist/assets/Nearby-DV_tFaX_.js +1 -0
  20. package/web/dist/assets/NotFound-CySH3zss.js +1 -0
  21. package/web/dist/assets/NotFoundPage-BsfQWwp9.js +1 -0
  22. package/web/dist/assets/{Page-eZ-IZNxm.js → Page-B2FZWIBP.js} +1 -1
  23. package/web/dist/assets/{Picker-D4ga8LYJ.js → Picker-B95kmKwR.js} +1 -1
  24. package/web/dist/assets/{Placeholder-B5DNAGHP.js → Placeholder-CCHaFkJj.js} +1 -1
  25. package/web/dist/assets/Service-CETSSNTt.js +1 -0
  26. package/web/dist/assets/Settings-7eYiXBh4.js +1 -0
  27. package/web/dist/assets/{SimpleMobileHeaderContent-y6m4_5yJ.js → SimpleMobileHeaderContent-CvSCYR3o.js} +1 -1
  28. package/web/dist/assets/Status-DYPebws5.js +1 -0
  29. package/web/dist/assets/Stop-WWINwzYk.js +11 -0
  30. package/web/dist/assets/Strong--F1YzYdg.js +1 -0
  31. package/web/dist/assets/ZenMode-DmkrZopO.js +1 -0
  32. package/web/dist/assets/corequery-urls-78N8ADzG.js +1 -0
  33. package/web/dist/assets/index-CYVVbfmA.js +2 -0
  34. package/web/dist/assets/index-Duc7TGHj.css +2 -0
  35. package/web/dist/assets/linear-71VpCPEr.js +1 -0
  36. package/web/dist/assets/{use-api-_Y5vsFb-.js → use-api-qDZl9CKn.js} +2 -2
  37. package/web/dist/assets/{use-foda-synced-query-BsS3nwV1.js → use-foda-synced-query-CIfQETe2.js} +1 -1
  38. package/web/dist/assets/{use-foundational-data-DyAlFXWG.js → use-foundational-data-0jB3Jf9I.js} +1 -1
  39. package/web/dist/assets/{use-nav-exemptions-Daz3EeSR.js → use-nav-exemptions-D8bA5W60.js} +1 -1
  40. package/web/dist/assets/{use-simple-headers-BGdX3p-e.js → use-simple-headers-BpV0B8HW.js} +1 -1
  41. package/web/dist/assets/use-terminology-BNoP6KZJ.js +1 -0
  42. package/web/dist/index.html +8 -7
  43. package/web/dist/sw.js +1 -1
  44. package/web/dist/assets/AdminControls-D0pgA5wf.js +0 -1
  45. package/web/dist/assets/Alert-DSl3_gX3.js +0 -1
  46. package/web/dist/assets/Debug-Cd_f8CKx.js +0 -1
  47. package/web/dist/assets/Divider-C465PGQW.js +0 -1
  48. package/web/dist/assets/ErrorMessage-Mp0VVnTj.js +0 -1
  49. package/web/dist/assets/Home-DIEadcoR.js +0 -1
  50. package/web/dist/assets/Line-Dxew3yXf.js +0 -1
  51. package/web/dist/assets/Nearby-CqDDKuYT.js +0 -1
  52. package/web/dist/assets/NotFound-Dmj1p5xO.js +0 -1
  53. package/web/dist/assets/NotFoundPage-CoVT8xxG.js +0 -1
  54. package/web/dist/assets/Service-frX-LyRg.js +0 -1
  55. package/web/dist/assets/Settings-BgHb1nlk.js +0 -1
  56. package/web/dist/assets/Status-sLRF_nKb.js +0 -1
  57. package/web/dist/assets/Stop-DEsRmVC1.js +0 -11
  58. package/web/dist/assets/Strong-DYvq_eAK.js +0 -1
  59. package/web/dist/assets/ZenMode-DdoTtVJG.js +0 -1
  60. package/web/dist/assets/index-ByA44-P7.js +0 -2
  61. package/web/dist/assets/index-C46bcc5o.css +0 -2
  62. package/web/dist/assets/linear-BWJmB0m_.js +0 -1
  63. package/web/dist/assets/scope-B-e4l8Dr.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corequery",
3
- "version": "0.35.0",
3
+ "version": "0.37.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "server/dist",
@@ -71,6 +71,7 @@ export class MultiversionalFoda {
71
71
  stop: app.terminologyConfig.stop,
72
72
  line: app.terminologyConfig.line,
73
73
  service: app.terminologyConfig.service,
74
+ stopPosition: app.terminologyConfig.stopPosition,
74
75
  },
75
76
  formatTimezone: app.formatTimezone,
76
77
  };
@@ -101,6 +102,7 @@ export class MultiversionalFoda {
101
102
  stop: this.obj.terminology.stop,
102
103
  line: this.obj.terminology.line,
103
104
  service: this.obj.terminology.service,
105
+ stopPosition: this.obj.terminology.stopPosition,
104
106
  },
105
107
  formatTimezone: this.obj.formatTimezone,
106
108
  };
@@ -1 +1 @@
1
- {"version":3,"file":"multiversional-foda.js","sourceRoot":"","sources":["../../../../../../api/handlers/foundational-data/multiversional/multiversional-foda.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,oFAAoF,CAAC;AA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WAAW,CAAC,eAAe;aACtD;YACD,MAAM,EAAE;gBACN,eAAe,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,eAAe;aACjD;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI;gBAC/B,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI;gBAC/B,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,OAAO;aACtC;YACD,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc;SACxC,CAAC;IACJ,CAAC;CAMF"}
1
+ {"version":3,"file":"multiversional-foda.js","sourceRoot":"","sources":["../../../../../../api/handlers/foundational-data/multiversional/multiversional-foda.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,oFAAoF,CAAC;AAC5H,OAAO,EAAE,sBAAsB,EAAE,MAAM,oFAAoF,CAAC;AAI5H,2EAA2E;AAC3E,8EAA8E;AAC9E,0EAA0E;AAC1E,2EAA2E;AAC3E,6EAA6E;AAC7E,+CAA+C;AAC/C,EAAE;AACF,+EAA+E;AAC/E,2EAA2E;AAC3E,gFAAgF;AAChF,+EAA+E;AAC/E,8EAA8E;AAC9E,0EAA0E;AAC1E,2EAA2E;AAC3E,UAAU;AAEV,MAAM,OAAO,kBAAkB;IAOR;IANZ,IAAI,CAAS;IAEtB,0EAA0E;IAC1E,4EAA4E;IAC5E,qEAAqE;IACrE,qDAAqD;IACrD,YAAqB,GAAoD;QAApD,QAAG,GAAH,GAAG,CAAiD;QACvE,2EAA2E;QAC3E,uEAAuE;QACvE,yEAAyE;QACzE,6DAA6D;QAC7D,IAAI,CAAC,IAAI,GAAG,MAAM;aACf,UAAU,CAAC,QAAQ,CAAC;aACpB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aACh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ACJ,CAAC;IAED,8EAA8E;IAC9E,0EAA0E;IAC1E,wEAAwE;IACxE,2EAA2E;IAC3E,uEAAuE;IACvE,6EAA6E;IAC7E,yCAAyC;IACzC,QAAQ;QACN,OAAO;YACL,QAAQ,EAAE;gBACR,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,cAAc,EAAE,GAAG;gBACnB,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,aAAa;aACtC;YAED,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAC9B,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CACzC;YACD,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAC9B,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CACzC;YACD,WAAW,EAAE;gBACX,eAAe,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,eAAe;aACtD;YACD,MAAM,EAAE;gBACN,eAAe,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,eAAe;aACjD;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI;gBAC/B,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI;gBAC/B,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,OAAO;gBACrC,YAAY,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,YAAY;aAChD;YACD,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc;SACxC,CAAC;IACJ,CAAC;CAMF"}
@@ -409,6 +409,14 @@ export declare const fodaSchema: z.ZodObject<{
409
409
  tram: "tram";
410
410
  bus: "bus";
411
411
  }>;
412
+ stopPosition: z.ZodEnum<{
413
+ platform: "platform";
414
+ track: "track";
415
+ bay: "bay";
416
+ wharf: "wharf";
417
+ "wharf-and-side": "wharf-and-side";
418
+ stand: "stand";
419
+ }>;
412
420
  }, z.z.core.$strip>;
413
421
  formatTimezone: z.ZodString;
414
422
  landingPage: z.ZodObject<{
@@ -136,33 +136,14 @@ const terminologySchema = z.object({
136
136
  stop: z.enum(["stop", "station"]),
137
137
  line: z.enum(["line", "route"]),
138
138
  service: z.enum(["service", "trip", "train", "tram", "bus"]),
139
- // Not sure if this is really needed yet. It will be if stop filters are
140
- // included in the foundational data, as they're not pre-formatted by the
141
- // server (i.e. sent over as `position: 1` and expect the frontend to format
142
- // that to "Platform 1").
143
- //
144
- // Pre-formatting could make sense if we want to support customly named
145
- // filters for maximum flexibility, but NOT pre-formatting allows us to
146
- // smartly combine multiple filters together, e.g. "Citybound Frankston trains
147
- // on Platform 6". I think we'll end up pre-formatting the filters, due to how
148
- // Southern Cross has platforms 16a, 16b, and 16, and we just want a single
149
- // "Platform 16" filter to cover all three.
150
- //
151
- // This could also be needed for showing the little "Platform XYZ" badges on
152
- // each departure. It probably makes more sense to send it over as part of the
153
- // foundational data rather than each departures/service API response.
154
- //
155
- // Gonna omit it for now, until I'm sure, then I don't have to make a breaking
156
- // change.
157
- //
158
- // stopPosition: z.enum([
159
- // "platform",
160
- // "track",
161
- // "bay",
162
- // "wharf",
163
- // "wharf-and-side",
164
- // "stand",
165
- // ]),
139
+ stopPosition: z.enum([
140
+ "platform",
141
+ "track",
142
+ "bay",
143
+ "wharf",
144
+ "wharf-and-side",
145
+ "stand",
146
+ ]),
166
147
  });
167
148
  const landingPageFodaSchema = z.object({
168
149
  // Would feel weird needing to load copy from an API while the rest of the
@@ -1 +1 @@
1
- {"version":3,"file":"foundational-data.js","sourceRoot":"","sources":["../../../../../../shared/apis/foundational-data/v1/foundational-data.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,6EAA6E;AAC7E,4EAA4E;AAC5E,6EAA6E;AAC7E,2E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ACX,aAAa;IACb,sBAAsB;IACtB,aAAa;IACb,MAAM;CACP,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,0EAA0E;IAC1E,uEAAuE;IACvE,iBAAiB;IACjB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,6EAA6E;IAC7E,uEAAuE;IACvE,4EAA4E;IAC5E,6EAA6E;IAC7E,sBAAsB;IACtB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC;QAC9B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;KAC1B,CAAC;IAEF,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACxC,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACxC,WAAW,EAAE,iBAAiB;IAC9B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,WAAW,EAAE,qBAAqB;IAClC,MAAM,EAAE,gBAAgB;CACzB,CAAC,CAAC"}
1
+ {"version":3,"file":"foundational-data.js","sourceRoot":"","sources":["../../../../../../shared/apis/foundational-data/v1/foundational-data.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,6EAA6E;AAC7E,4EAA4E;AAC5E,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,4EAA4E;AAC5E,yDAAyD;AACzD,EAAE;AACF,gFAAgF;AAChF,+EAA+E;AAC/E,6EAA6E;AAC7E,8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AAE,CAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC;QAC9B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;KAC1B,CAAC;IAEF,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACxC,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACxC,WAAW,EAAE,iBAAiB;IAC9B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,WAAW,EAAE,qBAAqB;IAClC,MAAM,EAAE,gBAAgB;CACzB,CAAC,CAAC"}
@@ -143,6 +143,14 @@ declare const resultSchema: z.ZodUnion<readonly [z.ZodObject<{
143
143
  tram: "tram";
144
144
  bus: "bus";
145
145
  }>;
146
+ stopPosition: z.ZodEnum<{
147
+ platform: "platform";
148
+ track: "track";
149
+ bay: "bay";
150
+ wharf: "wharf";
151
+ "wharf-and-side": "wharf-and-side";
152
+ stand: "stand";
153
+ }>;
146
154
  }, z.z.core.$strip>;
147
155
  formatTimezone: z.ZodString;
148
156
  landingPage: z.ZodObject<{
@@ -1 +1 @@
1
- import{i as e,l as t,r as n}from"./use-nav-exemptions-Daz3EeSR.js";import{d as r}from"./use-api-_Y5vsFb-.js";import{n as i}from"./use-foundational-data-DyAlFXWG.js";import{r as a,y as o}from"./index-ByA44-P7.js";import{t as s}from"./Placeholder-B5DNAGHP.js";import{n as c,t as l}from"./Markdown-BY6JcM-Z.js";import{t as u}from"./Page-eZ-IZNxm.js";import{t as d}from"./use-simple-headers-BGdX3p-e.js";import{t as f}from"./Divider-C465PGQW.js";import{t as p}from"./Alert-DSl3_gX3.js";function m(){let{appName:m}=o(),{foda:h}=i(),{data:g,loading:_,error:v}=a(r,{}),y=d({title:`About ${m}`});return _?t(u,{...y,children:t(n,{class:`px-4 py-8`,children:[t(s,{class:`w-[30%] text-xl`}),t(`div`,{class:`h-8`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-[60%] text-md`}),t(`div`,{class:`h-12`}),t(s,{class:`w-[40%] text-lg`}),t(`div`,{class:`h-8`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-[20%] text-md`}),t(`div`,{class:`h-12`}),t(s,{class:`w-[50%] text-lg`}),t(`div`,{class:`h-8`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-[80%] text-md`})]})}):v!=null||g==null?t(u,{...y,children:t(n,{class:`px-4 py-8`,children:t(p,{type:`error`,children:t(e,{children:`An error occurred while loading the about page.`})})})}):t(u,{...y,children:t(n,{class:`px-4 py-8 gap-12`,children:[t(l,{markdown:g.primaryMarkdown}),t(n,{class:`gap-8`,children:[t(f,{}),t(e,{as:`p`,style:`small-weak`,children:t(c,{markdown:h.footerPrimaryMarkdown})})]})]})})}export{m as default};
1
+ import{i as e,l as t,r as n}from"./use-nav-exemptions-D8bA5W60.js";import{d as r}from"./use-api-qDZl9CKn.js";import{n as i}from"./use-foundational-data-0jB3Jf9I.js";import{r as a,v as o}from"./index-CYVVbfmA.js";import{t as s}from"./Placeholder-CCHaFkJj.js";import{n as c,t as l}from"./Markdown-Ds6uHrmO.js";import{t as u}from"./Page-B2FZWIBP.js";import{t as d}from"./use-simple-headers-BpV0B8HW.js";import{t as f}from"./Divider-DoDjWpxt.js";import{t as p}from"./Alert-DztxgpkO.js";function m(){let{appName:m}=o(),{foda:h}=i(),{data:g,loading:_,error:v}=a(r,{}),y=d({title:`About ${m}`});return _?t(u,{...y,children:t(n,{class:`px-4 py-8`,children:[t(s,{class:`w-[30%] text-xl`}),t(`div`,{class:`h-8`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-[60%] text-md`}),t(`div`,{class:`h-12`}),t(s,{class:`w-[40%] text-lg`}),t(`div`,{class:`h-8`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-[20%] text-md`}),t(`div`,{class:`h-12`}),t(s,{class:`w-[50%] text-lg`}),t(`div`,{class:`h-8`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-[80%] text-md`})]})}):v!=null||g==null?t(u,{...y,children:t(n,{class:`px-4 py-8`,children:t(p,{type:`error`,children:t(e,{children:`An error occurred while loading the about page.`})})})}):t(u,{...y,children:t(n,{class:`px-4 py-8 gap-12`,children:[t(l,{markdown:g.primaryMarkdown}),t(n,{class:`gap-8`,children:[t(f,{}),t(e,{as:`p`,style:`small-weak`,children:t(c,{markdown:h.footerPrimaryMarkdown})})]})]})})}export{m as default};
@@ -0,0 +1 @@
1
+ import{i as e,l as t,r as n}from"./use-nav-exemptions-D8bA5W60.js";import{t as r}from"./Page-B2FZWIBP.js";import{t as i}from"./use-simple-headers-BpV0B8HW.js";function a(){return t(r,{...i({title:`Admin controls`}),children:t(n,{class:`px-4 py-8 gap-8`,children:t(e,{children:`Maybe the real admin controls were the friends we made along the way?`})})})}export{a as default};
@@ -0,0 +1 @@
1
+ import{c as e,l as t,o as n,s as r}from"./use-nav-exemptions-D8bA5W60.js";import{a as i,c as a,i as o,l as s}from"./index-CYVVbfmA.js";import{t as c}from"./MingcuteAlertLine-Cp5hrd7X.js";function l(l){let u={info:a,error:s,warning:c,success:o}[l.type],d=l.icon===void 0?u:l.icon,f={info:`bg-soft-accent`,error:`bg-soft-error`,warning:`bg-soft-warning`,success:`bg-soft-success`}[l.type],p={info:[`[--color-fg:var(--color-accent-text)]`,`[--color-fg-strong:var(--color-accent-text)]`,`[--color-fg-weak:var(--color-accent-text)]`],error:[`[--color-fg:var(--color-error-text)]`,`[--color-fg-strong:var(--color-error-text)]`,`[--color-fg-weak:var(--color-error-text)]`],warning:[`[--color-fg:var(--color-warning-text)]`,`[--color-fg-strong:var(--color-warning-text)]`,`[--color-fg-weak:var(--color-warning-text)]`],success:[`[--color-fg:var(--color-success-text)]`,`[--color-fg-strong:var(--color-success-text)]`,`[--color-fg-weak:var(--color-success-text)]`]}[l.type];return t(r,{class:e(l.class,f,p,`px-4 py-4.5 rounded-sm gap-2 items-start`,{"grid-cols-[auto_1fr]":d!=null}),children:[d!=null&&t(i,{heightRem:n(`text-md`),children:t(d,{class:`text-fg text-icon-lg`})}),l.children]})}export{l as t};
@@ -0,0 +1 @@
1
+ import{c as e,h as t,i as n,l as r,o as i,r as a,s as o,v as s}from"./use-nav-exemptions-D8bA5W60.js";import{i as c}from"./use-api-qDZl9CKn.js";import{n as l}from"./use-foundational-data-0jB3Jf9I.js";import{_ as u,a as d,f,g as p,m,n as h,r as g,s as _,v}from"./index-CYVVbfmA.js";import{t as y}from"./Placeholder-CCHaFkJj.js";import{t as b}from"./Page-B2FZWIBP.js";import{t as x}from"./use-simple-headers-BpV0B8HW.js";import{t as S}from"./Divider-DoDjWpxt.js";import{t as C}from"./Alert-DztxgpkO.js";function w(t){let i={info:`bg-soft-accent`,error:`bg-soft-error`,warning:`bg-soft-warning`,success:`bg-soft-success`}[t.type],a={info:`[--color-fg:var(--color-accent-text)]`,error:`[--color-fg:var(--color-error-text)]`,warning:`[--color-fg:var(--color-warning-text)]`,success:`[--color-fg:var(--color-success-text)]`}[t.type];return r(o,{class:e(t.class,i,a,`px-2 py-1.5 rounded-full`),children:r(n,{style:`small`,children:t.text})})}function T(t){return r(m,{class:e(t.class,`gap-x-2 gap-y-3`),wrap:!0,children:[r(n,{style:`strong`,children:t.header}),t.loading&&r(y,{class:`w-[20%] text-md`}),!t.loading&&t.pillContent!=null&&r(d,{heightRem:i(`text-md`),children:r(w,{type:t.pillContent.type,text:t.pillContent.text})})]})}function E(e){return r(T,{class:e.class,header:e.header,pillContent:D(e.currentValue,e.latestValue),loading:e.loading})}function D(e,t){return t==null?null:{text:e===t?`Up to date`:`Outdated`,type:e===t?`success`:`error`}}function O(e){return e.loading?r(o,{class:e.class,children:r(y,{class:`w-[40%] text-md`})}):e.value==null?null:r(n,{class:e.class,children:[e.prefix,`: `,e.value]})}function k(e){return e==null?null:e.length<32||!/^[0-9a-f]+$/.test(e)?e:e.slice(0,7)}function A(t){let{isUpdateAvailable:a,update:o}=_();return a?r(f,{theme:`accent`,text:`Refresh & update`,class:`self-start`,icon:p,onClick:()=>void o()}):r(m,{class:e(t.class,`gap-2`),children:[r(d,{heightRem:i(`text-md`),children:r(u,{})}),r(n,{class:`min-w-0 shrink`,children:`Waiting for service worker to install update...`})]})}function j(e){let{isHotReloadingEnabled:t}=h();return r(t?M:N,{...e})}function M(t){return r(a,{class:e(t.class,`gap-6`),children:[r(T,{header:`App version`,pillContent:{text:`Development`,type:`info`},loading:!1}),r(n,{children:`All frontend code is being served with hot-reloading enabled, not through the PWA. (The below values are meaningless.)`}),r(P,{}),r(O,{prefix:`Latest version`,value:t.latestVersion?.slice(0,8)??null,loading:t.loading})]})}function N(t){let{frontendVersion:n}=v(),i=!t.loading&&t.latestVersion!=null&&t.latestVersion!==n;return r(a,{class:e(t.class,`gap-6`),children:[r(E,{header:`App version`,currentValue:n,latestValue:t.latestVersion,loading:t.loading}),r(P,{}),r(O,{prefix:`Latest version`,value:k(t.latestVersion),loading:t.loading}),i&&r(A,{})]})}function P(){let{frontendVersion:e,versionsOnLastUpdate:t}=v();return r(a,{class:`gap-4`,children:[r(n,{children:[`Current version: `,k(e)]}),r(a,{class:`gap-3`,children:[r(n,{style:`small-weak`,children:[`Server version: `,k(t.serverVersion)]}),r(n,{style:`small-weak`,children:[`CoreQuery version: `,t.corequeryPackageVersion]})]})]})}function F(t){let{foda:i}=l();return r(a,{class:e(t.class,`gap-6`),children:[r(E,{header:`Foundational data`,currentValue:i.hash,latestValue:t.latestVersion,loading:t.loading}),r(a,{class:`gap-4`,children:[r(n,{children:[`Current version: `,k(i.hash)]}),r(n,{style:`small-weak`,children:[`Server version: `,k(i.serverVersion)]})]}),r(O,{prefix:`Latest version`,value:k(t.latestVersion),loading:t.loading})]})}function I(t){return r(a,{class:e(t.class,`gap-6`),children:[r(n,{style:`strong`,children:`Server`}),t.error!=null&&r(C,{type:`error`,children:r(n,{children:`An error occurred while fetching the latest version info from the server.`})}),r(a,{class:`gap-4 empty:hidden`,children:[r(O,{prefix:`Server version`,value:k(t.serverVersion),loading:t.loading}),r(O,{prefix:`CoreQuery version`,value:t.corequeryPackageVersion,loading:t.loading})]})]})}function L(e){return e<2e3?`${e.toFixed(0)} bytes`:e<2e6?`${(e/1e3).toFixed(2)} KB`:e<2e9?`${(e/1e6).toFixed(2)} MB`:e<2e12?`${(e/1e9).toFixed(2)} GB`:`${(e/0xe8d4a51000).toFixed(2)} TB`}function R(){let[e,i]=s(null),[o,c]=s(!0),[l,u]=s(!1);t(()=>{async function e(){c(!0),u(!1);try{let e=await navigator.storage.estimate();i(e)}catch(e){console.warn(`An error occurred while retrieving storage metrics.`,e),u(!0)}finally{c(!1)}}e()},[]);let d=e?.usage==null?null:L(e.usage),f=e?.quota==null?null:L(e.quota);return r(a,{class:`gap-6`,children:[r(n,{style:`strong`,children:`On-device storage`}),l&&r(C,{type:`error`,children:r(n,{children:`An error occurred while retrieving storage metrics.`})}),r(a,{class:`gap-4 empty:hidden`,children:[r(O,{prefix:`Storage used`,value:d,loading:o}),r(O,{prefix:`Storage quota`,value:f,loading:o})]})]})}function z(){let{data:e,loading:t,error:i}=g(c,{});return r(b,{...x({title:`Developer info`}),children:r(a,{class:`px-4 py-8 gap-8`,children:[i!=null&&r(C,{type:`error`,children:r(n,{children:`An error occurred while fetching the latest version info from the server.`})}),r(j,{latestVersion:e?.frontendVersion??null,loading:t}),r(S,{}),r(F,{latestVersion:e?.foundationalDataHash??null,loading:t}),r(S,{}),r(I,{serverVersion:e?.serverVersion??null,corequeryPackageVersion:e?.corequeryPackageVersion??null,loading:t,error:i}),r(S,{}),r(R,{}),r(S,{})]})})}export{z as default};
@@ -0,0 +1 @@
1
+ import{c as e,l as t}from"./use-nav-exemptions-D8bA5W60.js";function n(n){return t(`div`,{class:e(n.class,`border-b border-soft-border`)})}export{n as t};
@@ -0,0 +1 @@
1
+ import{c as e,i as t,l as n,r}from"./use-nav-exemptions-D8bA5W60.js";import{t as i}from"./MingcuteAlertLine-Cp5hrd7X.js";function a(a){let o=a.icon??i;return n(r,{class:e(a.class,`gap-3`),xAlign:`center`,children:[n(o,{class:`text-icon-xl text-fg`}),n(t,{align:`center`,children:a.text})]})}export{a as t};
@@ -0,0 +1 @@
1
+ import{l as e,r as t}from"./use-nav-exemptions-D8bA5W60.js";import{n}from"./use-foundational-data-0jB3Jf9I.js";import{t as r}from"./Markdown-Ds6uHrmO.js";import{t as i}from"./Page-B2FZWIBP.js";import{t as a}from"./use-simple-headers-BpV0B8HW.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{_ as e,c as t,i as n,l as r,m as i,r as a,s as o,v as s,y as c}from"./use-nav-exemptions-D8bA5W60.js";import{l}from"./use-api-qDZl9CKn.js";import{n as u}from"./use-foundational-data-0jB3Jf9I.js";import{n as d,t as f}from"./use-terminology-BNoP6KZJ.js";import{i as p,n as m,o as h,r as g,t as _}from"./linear-71VpCPEr.js";import{t as v}from"./corequery-urls-78N8ADzG.js";import{t as y}from"./LinkText-oghSfaf2.js";import{d as b,v as x}from"./index-CYVVbfmA.js";import{t as S}from"./Page-B2FZWIBP.js";import{t as C}from"./use-simple-headers-BpV0B8HW.js";import{t as w}from"./Alert-DztxgpkO.js";import{t as T}from"./NotFoundPage-BsfQWwp9.js";import{t as E}from"./Picker-B95kmKwR.js";function D(e){throw Error(`Unexpected value: ${String(e)}`)}function O(i){let{foda:o}=u(),{appName:s}=x(),c=e(()=>i.fallbackStopList.map(e=>o.stops.require(e)).sort((e,t)=>e.name.localeCompare(t.name)),[o.stops,i.fallbackStopList]);return r(a,{class:t(i.class,`gap-6`),children:[r(n,{style:`subtitle`,children:`Stops`}),r(w,{type:`info`,children:r(a,{class:`gap-6`,children:[r(n,{children:[`A neat little diagram is also available for this line, but it's of a new type, and so requires a newer version of `,s,` to be able to view.`,` `]}),r(n,{style:`strong`,children:r(y,{href:v.debug,children:`Help me update`})})]})}),r(`ul`,{class:`flex-col flex list-disc list-inside gap-4`,children:c.map((e,t)=>r(n,{children:r(`li`,{children:r(y,{href:v.stop(e.urlPath),children:e.name})})},t))})]})}function k(e,t){return t.map(t=>{let i=e.stops.require(t.stopId),a=v.stop(i.urlPath);if(t.type===`regular`)return{content:r(n,{style:`strong`,children:r(y,{href:a,style:`subtle`,children:i.name})})};if(t.type===`always-express`)return{content:r(n,{style:`small-weak`,children:r(y,{href:a,style:`subtle`,children:[`Skips `,i.name]})}),drawMark:!1};D(t.type)})}function A(t){let{foda:n}=u(),i=e(()=>({type:`linear`,stops:k(n,t.diagram.stops)}),[n,t.diagram.stops]);return r(_,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}var j=10,M=15,N=class extends g{_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+j),e.bezierCurveTo(r.common,i.common.bottom+M+j,r.branchA,i.branches.top-M,r.branchA,i.branches.top),e.lineTo(r.branchA,i.branchA.top),e.moveTo(r.common,i.common.bottom+j),e.bezierCurveTo(r.common,i.common.bottom+M+j,r.branchB,i.branches.top-M,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,P),i=d(r[0]),a=d(r[r.length-1]),o=this._extractYLevels(t,F),s=d(o[0]),c=d(o[o.length-1]),l=this._extractYLevels(n,I),u=d(l[0]),f=d(l[l.length-1]);return{x:{common:this.width/2,branchA:8,branchB:this.width-8},y:{common:{all:r,top:i,bottom:a},branchA:{all:o,top:s,bottom:c},branchB:{all:l,top:u,bottom:f},branches:{top:Math.min(s,u),bottom:Math.max(c,f)}}}}},P=`_diagram-common-stops`,F=`_diagram-branch-a-stops`,I=`_diagram-branch-b-stops`;function L(n){let{settings:i}=b(),s=e(()=>({structure:n.structure,lightThemeColorHexCode:n.lightThemeColorHexCode,darkThemeColorHexCode:n.darkThemeColorHexCode,colorTheme:i.theme}),[n.darkThemeColorHexCode,n.lightThemeColorHexCode,n.structure,i.theme]),l=c((e,t)=>new N(e,t),[]);return s.structure.commonStops.length<1||s.structure.branchAStops.length<1||s.structure.branchBStops.length<1?r(m,{}):r(o,{class:t(n.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-y-8 gap-x-4`),children:[r(p,{class:`w-12 col-2 row-span-full`,createController:l,data:s}),r(a,{class:t(`gap-6 col-3 row-1 -ml-4`,P),xAlign:`left`,children:n.structure.commonStops.map((e,t)=>r(o,{children:e.content},t))}),r(a,{class:t(`gap-6 col-1 row-2`,F),xAlign:`right`,children:n.structure.branchAStops.map((e,t)=>r(o,{children:e.content},t))}),r(a,{class:t(`gap-6 col-3 row-2`,I),xAlign:`left`,children:n.structure.branchBStops.map((e,t)=>r(o,{children:e.content},t))})]})}function R(t){let{foda:n}=u(),i=e(()=>({type:`branch`,commonStops:k(n,t.diagram.commonStops),branchAStops:k(n,t.diagram.branchAStops),branchBStops:k(n,t.diagram.branchBStops)}),[n,t.diagram]);return r(L,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}var z=10,B=15,V=24,H=1,U=class extends g{_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-H),e.lineTo(r.loopLeft,i.loopLeft.bottom+H)}),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-H),e.lineTo(r.loopRight,i.loopRight.bottom+H)}),n.length>0){let e=d(i.main.top);this._renderSection({stops:n,x:r.main,yLevels:i.main.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`right`}),this._drawLine(t=>{t.moveTo(r.main,e),t.lineTo(r.main,e-z),t.bezierCurveTo(r.main,e-B-z,r.loopLeft,i.loop.bottom+B,r.loopLeft,i.loop.bottom),t.lineTo(r.loopLeft,i.loopLeft.bottom),t.moveTo(r.main,e-z),t.bezierCurveTo(r.main,e-B-z,r.loopRight,i.loop.bottom+B,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+V,r.loopRight,i.loop.bottom+V,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-V,r.loopRight,i.loop.top-V,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,G),i=this._extractYLevels(t,K),a=this._extractYLevels(n,W),o=r[0],s=i[0],c=r[r.length-1],l=i[i.length-1],u=d(o??s),f=d(s??o),p=d(c??l),m=d(l??c);return{x:{loopLeft:8,loopRight:this.width-8,main:this.width/2},y:{loopLeft:{all:r,top:u,bottom:p},loopRight:{all:i,top:f,bottom:m},main:{all:a,top:a[0]??null,bottom:a[a.length-1]??null},loop:{top:Math.min(u,f),bottom:Math.max(p,m)}}}}},W=`_diagram-main-stops`,G=`_diagram-loop-left-stops`,K=`_diagram-loop-right-stops`;function q(n){let{settings:i}=b(),s=e(()=>({structure:n.structure,lightThemeColorHexCode:n.lightThemeColorHexCode,darkThemeColorHexCode:n.darkThemeColorHexCode,colorTheme:i.theme}),[n.darkThemeColorHexCode,n.lightThemeColorHexCode,n.structure,i.theme]),l=c((e,t)=>new U(e,t),[]),{loopLeftStops:u,loopRightStops:d}=s.structure;return u.length+d.length<1?r(m,{}):r(o,{class:t(n.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-x-4`),children:[r(p,{class:`w-12 col-2 row-span-full`,createController:l,data:s}),r(a,{class:t(`gap-6 col-1 row-1 py-4`,G),xAlign:`right`,yAlign:`center`,children:n.structure.loopLeftStops.map((e,t)=>r(o,{children:e.content},t))}),r(a,{class:t(`gap-6 col-3 row-1 py-4`,K),xAlign:`left`,yAlign:`center`,children:n.structure.loopRightStops.map((e,t)=>r(o,{children:e.content},t))}),r(a,{class:t(`gap-6 col-3 row-2 -ml-4`,W,{"pt-4":n.structure.mainStops.length>0}),xAlign:`left`,children:n.structure.mainStops.map((e,t)=>r(o,{children:e.content},t))})]})}function J(t){let{foda:n}=u(),i=e(()=>({type:`loop`,loopLeftStops:k(n,t.diagram.loopLeftStops),loopRightStops:k(n,t.diagram.loopRightStops),mainStops:k(n,t.diagram.mainStops)}),[n,t.diagram]);return r(q,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}function Y(e){return r(o,{class:t(e.class,`bg-bg-raised px-4 py-8 justify-center rounded-sm border border-soft-border`),children:r(X,{diagram:e.diagram})})}function X(e){if(e.diagram.type===`linear`)return r(A,{diagram:e.diagram});if(e.diagram.type===`branch`)return r(R,{diagram:e.diagram});if(e.diagram.type===`loop`)return r(J,{diagram:e.diagram});D(e.diagram)}function Z(e){let i=e.diagram.entries.filter(e=>l(e.type));return i.length<e.diagram.entries.length?r(O,{fallbackStopList:e.diagram.fallbackStopList}):r(a,{class:t(e.class,`gap-6`),children:[r(n,{style:`subtitle`,children:`Diagram`}),i.length===1?r(Y,{diagram:d(i[0])}):r(Q,{entries:i},i.length)]})}function Q(t){let[n,i]=s(0),o=e(()=>t.entries.map((e,t)=>({value:t.toFixed(),label:e.name??`Route ${t+1}`})),[t.entries]);return r(a,{class:`gap-4`,children:[r(E,{class:`self-start`,value:n.toFixed(),options:o,onChange:e=>{i(h(e))}}),r(Y,{diagram:d(t.entries[n])})]})}function $(){let{params:{id:t}}=i(),{foda:n}=u(),a=e(()=>n.lines.getByUrlPath(t??``),[n.lines,t]);return a==null?r(T,{afterConfirming:`foundational-data-version`}):r(ee,{line:a},a.id)}function ee(e){let{formatLine:t}=f();return r(S,{...C({title:t(e.line.name),back:{href:v.home,text:`Home`}}),children:r(a,{class:`px-4 py-8 gap-8`,children:e.line.diagram.entries.length>0&&r(Z,{diagram:e.line.diagram})})})}export{$ as default};
@@ -1 +1 @@
1
- import{a as e,c as t,l as n}from"./use-nav-exemptions-Daz3EeSR.js";var r={default:`text-accent-text underline`,subtle:`hover:underline`,"strong-subtle":`font-bold text-fg-strong hover:underline`};function i(i){let a=r[i.style??`default`],o=t(a,`inline`,i.class);return i.onClick==null?i.href==null?n(`span`,{class:o,style:e(i.dynamicColor),children:i.children}):n(`a`,{class:o,style:e(i.dynamicColor),href:i.href,children:i.children}):n(`span`,{class:o,style:e(i.dynamicColor),onClick:i.onClick,children:i.children})}export{i as t};
1
+ import{a as e,c as t,l as n}from"./use-nav-exemptions-D8bA5W60.js";var r={default:`text-accent-text underline`,subtle:`hover:underline`,"strong-subtle":`font-bold text-fg-strong hover:underline`};function i(i){let a=r[i.style??`default`],o=t(a,`inline`,i.class);return i.onClick==null?i.href==null?n(`span`,{class:o,style:e(i.dynamicColor),children:i.children}):n(`a`,{class:o,style:e(i.dynamicColor),href:i.href,children:i.children}):n(`span`,{class:o,style:e(i.dynamicColor),onClick:i.onClick,children:i.children})}export{i as t};
@@ -1,2 +1,2 @@
1
- import{C as e,_ as t,c as n,i as r,l as i,r as a}from"./use-nav-exemptions-Daz3EeSR.js";import{t as o}from"./LinkText-Co4qc0dx.js";import{t as s}from"./Strong-DYvq_eAK.js";var c=/\[([^[\]]+)\]\(([^()]+)\)/,l=/\*\*(.+?)\*\*/,u=/\*([^*]+)\*/,d=/_([^_]+)_/;function f(t,n){let r=[],a=t;for(;a.length>0;){let t=p(a);if(t==null){r.push(a);break}t.index>0&&r.push(a.slice(0,t.index));let o=f(t.innerContent,n);r.push(t.wrap(i(e,{children:o}),n)),a=a.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 _(e){return i(`em`,{class:n(e.class),children:e.children})}var v={bold:e=>i(s,{children:e}),italic:e=>i(_,{children:e}),link:(e,t)=>i(o,{href:t,children:e})},y={h1:{render:(e,t)=>i(r,{as:`h1`,style:`title`,children:e},t),marginTop:`mt-12`},h2:{render:(e,t)=>i(r,{as:`h2`,style:`subtitle`,children:e},t),marginTop:`mt-12`},h3:{render:(e,t)=>i(r,{as:`h3`,style:`strong`,children:e},t),marginTop:`mt-12`},p:{render:(e,t)=>i(r,{as:`p`,children:e},t),marginTop:`mt-8`},bold:v.bold,italic:v.italic,link:v.link};function b(n){let r=n.style??v,a=t(()=>f(n.markdown,r),[n.markdown,r]);return i(e,{children:a})}function x(e){return e.split(`
1
+ import{C as e,_ as t,c as n,i as r,l as i,r as a}from"./use-nav-exemptions-D8bA5W60.js";import{t as o}from"./LinkText-oghSfaf2.js";import{t as s}from"./Strong--F1YzYdg.js";var c=/\[([^[\]]+)\]\(([^()]+)\)/,l=/\*\*(.+?)\*\*/,u=/\*([^*]+)\*/,d=/_([^_]+)_/;function f(t,n){let r=[],a=t;for(;a.length>0;){let t=p(a);if(t==null){r.push(a);break}t.index>0&&r.push(a.slice(0,t.index));let o=f(t.innerContent,n);r.push(t.wrap(i(e,{children:o}),n)),a=a.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 _(e){return i(`em`,{class:n(e.class),children:e.children})}var v={bold:e=>i(s,{children:e}),italic:e=>i(_,{children:e}),link:(e,t)=>i(o,{href:t,children:e})},y={h1:{render:(e,t)=>i(r,{as:`h1`,style:`title`,children:e},t),marginTop:`mt-12`},h2:{render:(e,t)=>i(r,{as:`h2`,style:`subtitle`,children:e},t),marginTop:`mt-12`},h3:{render:(e,t)=>i(r,{as:`h3`,style:`strong`,children:e},t),marginTop:`mt-12`},p:{render:(e,t)=>i(r,{as:`p`,children:e},t),marginTop:`mt-8`},bold:v.bold,italic:v.italic,link:v.link};function b(n){let r=n.style??v,a=t(()=>f(n.markdown,r),[n.markdown,r]);return i(e,{children:a})}function x(e){return e.split(`
2
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(e){let r=e.style??y,o=t(()=>x(e.markdown).map((e,t)=>{let n=r[e.kind],a=t===0?``:n.marginTop;return i(`div`,{class:a,children:n.render(i(b,{style:r,markdown:e.content}),t)},t)}),[e.markdown,r]);return i(a,{class:n(e.class),children:o})}export{b as n,S as t};
@@ -1 +1 @@
1
- import{l as e}from"./use-nav-exemptions-Daz3EeSR.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.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`}),e(`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`})]})})}export{t};
1
+ import{l as e}from"./use-nav-exemptions-D8bA5W60.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.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`}),e(`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`})]})})}export{t};
@@ -0,0 +1 @@
1
+ import{i as e,l as t,r as n}from"./use-nav-exemptions-D8bA5W60.js";import{t as r}from"./Page-B2FZWIBP.js";function i(){return t(r,{mobileHeader:null,desktopHeader:null,children:t(n,{class:`px-4 py-8 gap-8`,children:t(e,{children:`Idk`})})})}export{i as default};
@@ -0,0 +1 @@
1
+ import{l as e}from"./use-nav-exemptions-D8bA5W60.js";import{t}from"./NotFoundPage-BsfQWwp9.js";function n(){return e(t,{afterConfirming:`frontend-version`})}export{n as default};
@@ -0,0 +1 @@
1
+ import{h as e,i as t,l as n,r,v as i}from"./use-nav-exemptions-D8bA5W60.js";import{i as a}from"./use-api-qDZl9CKn.js";import{n as o}from"./use-foundational-data-0jB3Jf9I.js";import{n as s,t as c}from"./corequery-urls-78N8ADzG.js";import{_ as l,f as u,n as d,r as f,s as p,v as m}from"./index-CYVVbfmA.js";import{t as h}from"./Page-B2FZWIBP.js";function g(e){let t=f(a,{}),n=_(e===`frontend-version`,t),r=v(e===`foundational-data-version`,t);return t.loading||n||r}function _(t,n){let{isHotReloadingEnabled:r}=d(),{frontendVersion:i}=m(),{unregister:a}=p(),o=t&&!r&&!n.loading&&n.error==null&&n.data!=null&&n.data.frontendVersion!==i;return e(()=>{if(!o)return;async function e(){await a(),window.location.reload()}e()},[o,a]),o}function v(t,n){let{foda:r,forceFodaUpdate:a}=o(),[s,c]=i(!1),[l,u]=i(!1),d=t&&!n.loading&&n.error==null&&n.data!=null&&n.data.foundationalDataHash!==r.hash;return e(()=>{if(!d)return;async function e(){u(!0);try{await a()}catch{console.warn(`Foundational data is outdated, but force update failed.`)}finally{c(!0),u(!1)}}e()},[d,a]),d&&!s||l}function y({afterConfirming:e}){return g(e)?n(h,{mobileHeader:null,desktopHeader:null,children:n(r,{xAlign:`center`,yAlign:`center`,children:n(l,{})})}):n(h,{mobileHeader:null,desktopHeader:null,children:n(r,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[n(t,{style:`title`,align:`center`,children:`Page not found`}),n(t,{align:`center`,children:`This page doesn't exist, at least not anymore!`}),n(u,{href:c.home,text:`Go home`,icon:s})]})})}export{y as t};
@@ -1 +1 @@
1
- import{c as e,h as t,l as n,n as r,r as i,s as a,t as o,v as s}from"./use-nav-exemptions-Daz3EeSR.js";function c(t){return n(a,{class:e(t.class,`not-desktop:hidden`),children:t.children})}var l=32;function u(r){let[i,o]=s(!0);return t(()=>{function e(){o(window.scrollY<l)}return document.addEventListener(`scroll`,e),e(),()=>{document.removeEventListener(`scroll`,e)}},[]),n(a,{class:e(r.class,`fixed top-0 left-0 right-0 bg-bg-navbar border-b border-soft-border desktop:hidden transition-[opacity,visibility] duration-200`,{"invisible opacity-0":r.hideWhenScrolledToTop&&i}),children:r.children})}function d(t){let{showMobileNav:s}=o(),l=t.centered??!0,d=t.hideMobileHeaderWhenScrolledToTop??!1;return n(i,{class:e(`bg-bg min-h-svh relative`,{"pt-14":t.mobileHeader!=null&&!d,"not-desktop:pb-18":s,"desktop:grid-rows-[auto_1fr]":t.desktopHeader!=null},`desktop:pt-12`),children:[t.desktopHeader!=null&&n(c,{class:`z-0`,children:t.desktopHeader}),t.mobileHeader!=null&&n(u,{class:`h-14 z-1`,hideWhenScrolledToTop:d,children:t.mobileHeader}),t.agnosticHeader!=null&&n(a,{class:`z-0`,children:t.agnosticHeader}),n(a,{class:`z-0 grow`,children:l?n(r,{children:t.children}):t.children})]})}export{d as t};
1
+ import{c as e,h as t,l as n,n as r,r as i,s as a,t as o,v as s}from"./use-nav-exemptions-D8bA5W60.js";function c(t){return n(a,{class:e(t.class,`not-desktop:hidden`),children:t.children})}var l=32;function u(r){let[i,o]=s(!0);return t(()=>{function e(){o(window.scrollY<l)}return document.addEventListener(`scroll`,e),e(),()=>{document.removeEventListener(`scroll`,e)}},[]),n(a,{class:e(r.class,`fixed top-0 left-0 right-0 bg-bg-navbar border-b border-soft-border desktop:hidden transition-[opacity,visibility] duration-200`,{"invisible opacity-0":r.hideWhenScrolledToTop&&i}),children:r.children})}function d(t){let{showMobileNav:s}=o(),l=t.centered??!0,d=t.hideMobileHeaderWhenScrolledToTop??!1;return n(i,{class:e(`bg-bg min-h-svh relative`,{"pt-14":t.mobileHeader!=null&&!d,"not-desktop:pb-18":s,"desktop:grid-rows-[auto_1fr]":t.desktopHeader!=null},`desktop:pt-12`),children:[t.desktopHeader!=null&&n(c,{class:`z-0`,children:t.desktopHeader}),t.mobileHeader!=null&&n(u,{class:`h-14 z-1`,hideWhenScrolledToTop:d,children:t.mobileHeader}),t.agnosticHeader!=null&&n(a,{class:`z-0`,children:t.agnosticHeader}),n(a,{class:`z-0 grow`,children:l?n(r,{children:t.children}):t.children})]})}export{d as t};
@@ -1 +1 @@
1
- import{c as e,i as t,l as n}from"./use-nav-exemptions-Daz3EeSR.js";import{g as r,h as i}from"./index-ByA44-P7.js";var a=[`bg-transparent`,`group-hover:bg-soft-hover`,`group-active:bg-soft-active`],o=[`bg-accent`,`group-hover:bg-accent-hover`,`group-active:bg-accent-active`],s=[`[--color-fg:var(--color-on-accent)]`,`[--color-fg-strong:var(--color-on-accent)]`,`[--color-fg-weak:var(--color-on-accent)]`],c=e(a),l=e(o),u=e(s);function d(t){return n(i,{class:e(t.class,`overflow-hidden rounded-sm border border-accent max-w-full`),children:t.options.map((e,r)=>n(f,{class:`shrink`,label:e.label,active:e.value===t.value,last:r===t.options.length-1,onClick:()=>t.onChange(e.value)},e.value))})}function f(a){return n(r,{class:e(a.class,`relative group min-h-8`,{[u]:a.active,"border-r border-accent":!a.last}),onClick:a.onClick,children:[n(`div`,{class:e(`absolute z-0 top-0 bottom-0 left-0 right-0`,{[c]:!a.active,[l]:a.active})}),n(i,{class:`relative z-1 px-6 py-2 min-w-0`,xAlign:`center`,yAlign:`center`,children:n(t,{class:`shrink min-w-min`,align:`center`,children:a.label})})]})}export{d as t};
1
+ import{c as e,i as t,l as n}from"./use-nav-exemptions-D8bA5W60.js";import{h as r,m as i}from"./index-CYVVbfmA.js";var a=[`bg-transparent`,`group-hover:bg-soft-hover`,`group-active:bg-soft-active`],o=[`bg-accent`,`group-hover:bg-accent-hover`,`group-active:bg-accent-active`],s=[`[--color-fg:var(--color-on-accent)]`,`[--color-fg-strong:var(--color-on-accent)]`,`[--color-fg-weak:var(--color-on-accent)]`],c=e(a),l=e(o),u=e(s);function d(t){return n(i,{class:e(t.class,`overflow-hidden rounded-sm border border-accent max-w-full`),children:t.options.map((e,r)=>n(f,{class:`shrink`,label:e.label,active:e.value===t.value,last:r===t.options.length-1,onClick:()=>t.onChange(e.value)},e.value))})}function f(a){return n(r,{class:e(a.class,`relative group min-h-8`,{[u]:a.active,"border-r border-accent":!a.last}),onClick:a.onClick,children:[n(`div`,{class:e(`absolute z-0 top-0 bottom-0 left-0 right-0`,{[c]:!a.active,[l]:a.active})}),n(i,{class:`relative z-1 px-6 py-2 min-w-0`,xAlign:`center`,yAlign:`center`,children:n(t,{class:`shrink min-w-min`,align:`center`,children:a.label})})]})}export{d as t};
@@ -1 +1 @@
1
- import{c as e,l as t}from"./use-nav-exemptions-Daz3EeSR.js";function n(n){return t(`div`,{class:e(n.class,`bg-placeholder animate-placeholder-pulse`)})}function r(r){return t(n,{...r,class:e(r.class,`h-[1em] -my-[0.13em]`)})}export{r as t};
1
+ import{c as e,l as t}from"./use-nav-exemptions-D8bA5W60.js";function n(n){return t(`div`,{class:e(n.class,`bg-placeholder animate-placeholder-pulse`)})}function r(r){return t(n,{...r,class:e(r.class,`h-[1em] -my-[0.13em]`)})}export{r as t};
@@ -0,0 +1 @@
1
+ import{_ as e,c as t,i as n,l as r,m as i,r as a,s as o}from"./use-nav-exemptions-D8bA5W60.js";import{o as s}from"./use-api-qDZl9CKn.js";import{n as c}from"./use-foundational-data-0jB3Jf9I.js";import{t as l}from"./use-terminology-BNoP6KZJ.js";import{a as u,t as d}from"./linear-71VpCPEr.js";import{n as f,t as p}from"./corequery-urls-78N8ADzG.js";import{t as m}from"./LinkText-oghSfaf2.js";import{_ as h,f as g,m as _}from"./index-CYVVbfmA.js";import{t as v}from"./Page-B2FZWIBP.js";import{t as y}from"./use-simple-headers-BpV0B8HW.js";import{t as b}from"./use-foda-synced-query-CIfQETe2.js";function x(n){let{foda:i}=c(),a=e(()=>({type:`linear`,stops:S(i,n.service.movements)}),[i,n.service.movements]);return r(o,{class:t(n.class),children:r(d,{class:n.class,structure:a,lightThemeColorHexCode:n.service.color?.lightModeHexCode??null,darkThemeColorHexCode:n.service.color?.darkModeHexCode??null})})}function S(e,t){return t.map(t=>{let i=e.stops.require(t.stopId),a=p.stop(i.urlPath),o=t.arrivalTime==null?null:new Date(Date.parse(t.arrivalTime)).toLocaleString(),s=t.departureTime==null?null:new Date(Date.parse(t.departureTime)).toLocaleString();if(o==null&&s==null)return{content:r(n,{style:`small-weak`,children:r(m,{href:a,style:`subtle`,children:[`Skips `,i.name]})}),drawMark:!1};let c=s??o;return{content:r(_,{class:`gap-2 min-w-0`,children:[r(n,{style:`strong`,children:r(m,{href:a,style:`subtle`,children:i.name})}),r(n,{children:`•`}),r(n,{class:`shrink min-w-0`,oneLine:!0,children:c})]})}})}function C(){let{params:{sourceId:e,intrasourceId:t},query:{from:n}}=i(),{data:a,loading:o,error:c}=b(s,{sourceId:e??``,intrasourceId:t??``}),l=u(n??``);return o?r(T,{}):c!=null||a==null||l==null||l<0||a.service!=null&&l>a.service.movements.length-1?r(E,{}):a.service==null?r(D,{}):r(w,{service:a.service,movementIndex:l},`${e}/${t}`)}function w(e){let{singularServiceTerm:t}=l();return r(v,{...y({title:`${e.service.primaryDestinationText} ${t}`,back:{href:p.home,text:`Home`}}),children:r(a,{class:`px-4 py-8 gap-8`,children:[r(x,{service:e.service}),r(n,{style:`disclaimer`,children:`(Real-time data has not been provided for all stops. Times marked with * are estimates, extrapolated from the available data.)`})]})})}function T(){return r(v,{...y({title:`Loading...`,back:{href:p.home,text:`Home`}}),children:r(h,{})})}function E(){return r(v,{...y({title:`Error`,back:{href:p.home,text:`Home`}}),children:r(n,{children:`Failed to load service.`})})}function D(){return r(v,{mobileHeader:null,desktopHeader:null,children:r(a,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[r(n,{style:`title`,align:`center`,children:`Service not found`}),r(n,{align:`center`,children:`This can happen if the service was cancelled, or the timetable changed since this link was generated. You might be able to find it again by searching for one of the stops it departed from.`}),r(g,{href:p.home,text:`Go home`,icon:f})]})})}export{C as default};
@@ -0,0 +1 @@
1
+ import{i as e,l as t,r as n}from"./use-nav-exemptions-D8bA5W60.js";import{d as r,u as i}from"./index-CYVVbfmA.js";import{t as a}from"./Page-B2FZWIBP.js";import{t as o}from"./use-simple-headers-BpV0B8HW.js";import{t as s}from"./Divider-DoDjWpxt.js";import{t as c}from"./Picker-B95kmKwR.js";var l={auto:`Auto`,light:`Light`,dark:`Dark`},u=i.map(e=>({value:e,label:l[e]}));function d(e){let{settings:n,updateSettings:i}=r();return t(c,{class:e.class,value:n.theme,options:u,onChange:e=>{i(t=>t.with({theme:e}))}})}function f(){return t(a,{...o({title:`Settings`}),children:t(n,{class:`px-4 py-8 gap-8`,children:[t(n,{class:`gap-6`,children:[t(e,{style:`strong`,children:`Theme`}),t(e,{children:`"Auto" means the colour theme should follow your device's/browser's settings.`}),t(d,{class:`self-start`})]}),t(s,{}),t(e,{style:`small-weak`,children:`(Settings are saved to your device's/browser's local storage.)`})]})})}export{f as default};
@@ -1 +1 @@
1
- import{c as e,i as t,l as n}from"./use-nav-exemptions-Daz3EeSR.js";import{h as r,p as i}from"./index-ByA44-P7.js";function a(e){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:n(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M14.657 17.657L9 12l5.657-5.657`})})}function o(o){return n(r,{class:e(o.class,`gap-2`,{"px-4":o.backHref==null,"pl-2 pr-4":o.backHref!=null}),yAlign:`center`,children:[o.backHref!=null&&n(i,{href:o.backHref,icon:a,theme:`hover`}),n(t,{style:`title`,children:o.title})]})}export{a as n,o as t};
1
+ import{c as e,i as t,l as n}from"./use-nav-exemptions-D8bA5W60.js";import{f as r,m as i}from"./index-CYVVbfmA.js";function a(e){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:n(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M14.657 17.657L9 12l5.657-5.657`})})}function o(o){return n(i,{class:e(o.class,`gap-2`,{"px-4":o.backHref==null,"pl-2 pr-4":o.backHref!=null}),yAlign:`center`,children:[o.backHref!=null&&n(r,{href:o.backHref,icon:a,theme:`hover`}),n(t,{style:`title`,children:o.title})]})}export{a as n,o as t};
@@ -0,0 +1 @@
1
+ import{i as e,l as t,r as n}from"./use-nav-exemptions-D8bA5W60.js";import{t as r}from"./Page-B2FZWIBP.js";import{t as i}from"./use-simple-headers-BpV0B8HW.js";function a(){return t(r,{...i({title:`Status`}),children:t(n,{class:`px-4 py-8 gap-8`,children:t(e,{children:`LGTM`})})})}export{a as default};
@@ -0,0 +1,11 @@
1
+ import{C as e,_ as t,a as n,c as r,i,l as a,m as o,n as s,o as c,r as l,s as u}from"./use-nav-exemptions-D8bA5W60.js";import{u as d}from"./use-api-qDZl9CKn.js";import{n as f}from"./use-foundational-data-0jB3Jf9I.js";import{t as p}from"./use-terminology-BNoP6KZJ.js";import{t as m}from"./corequery-urls-78N8ADzG.js";import{_ as h,a as g,f as _,l as v,m as y,o as b,p as x,t as S}from"./index-CYVVbfmA.js";import{t as C}from"./Page-B2FZWIBP.js";import{n as w,t as T}from"./SimpleMobileHeaderContent-CvSCYR3o.js";import{t as ee}from"./NotFoundPage-BsfQWwp9.js";import{t as E}from"./ErrorMessage-C9JxifQk.js";import{t as D}from"./use-foda-synced-query-CIfQETe2.js";function O(e,t){return(e%t+t)%t}function k(e){return{hour:O(e-1,12)+1,half:e<12?`am`:`pm`}}function A(e){return{hideMobileHeaderWhenScrolledToTop:!0,mobileHeader:a(T,{title:e.title,backHref:e.back?.href??null}),agnosticHeader:a(u,{class:`not-desktop:bg-bg-navbar not-desktop:border-b not-desktop:border-soft-border`,children:a(s,{children:a(u,{class:`not-desktop:px-4 desktop:mx-4 desktop:border-b desktop:border-soft-border`,children:a(l,{class:r(`gap-8`,{"pt-4 pb-6 desktop:pt-6":e.back!=null,"py-6 desktop:pt-8":e.back==null,"desktop:pb-4":e.additionalContent==null}),children:[e.back!=null&&a(_,{text:e.back.text,href:e.back.href,icon:w,class:`self-start`,layout:`narrow-icon`}),a(l,{class:`gap-4`,children:[a(i,{style:`megatitle`,children:e.title}),e.additionalContent]})]})})})})}}function j(e){return a(`svg`,{class:r(e.class,`text-fg _dynamic-live-icon`),style:n(e.dynamicColor),xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,children:[a(`path`,{style:`
2
+ fill: none;
3
+ stroke: currentColor;
4
+ stroke-width: 4;
5
+ stroke-linecap: round;
6
+ `,d:`M 4,4 A 16,16 0 0 1 20,20`,class:`outer`}),a(`path`,{style:`
7
+ fill: none;
8
+ stroke: currentColor;
9
+ stroke-width: 4;
10
+ stroke-linecap: round;
11
+ `,d:`M 4,12 A 8,8 0 0 1 12,20`,class:`inner`})]})}function M(t){return a(y,{class:r(t.class,`relative gap-1`),children:[t.isCancelled?a(i,{style:`departure-headline-struckout`,children:t.timeStrings.primary}):a(e,{children:[t.timeStrings.struckout!=null&&a(i,{style:`departure-headline-struckout`,children:t.timeStrings.struckout}),t.timeStrings.primary!=null&&a(i,{style:`departure-headline`,dynamicColor:t.serviceColor,children:t.timeStrings.primary})]}),t.timeType!==`scheduled-time`&&!t.isCancelled&&a(j,{dynamicColor:t.serviceColor,class:`absolute right-[-0.65rem] -top-2 text-icon-xs`})]})}function N(t){let{singularServiceTerm:n}=p();return t.isCancelled?a(y,{class:r(t.class,`gap-1`),children:[a(g,{heightRem:c(`text-sm`),children:a(v,{class:`text-error text-icon-md`})}),a(i,{style:`departure-info-error`,children:[`This `,n,` has been cancelled`]})]}):a(y,{class:r(t.class,`gap-1`),children:[t.timeStrings.delay!=null&&a(e,{children:[a(P,{delay:t.timeStrings.delay}),a(i,{style:`departure-info`,children:`•`})]}),t.timeStrings.schedule==null?a(b,{style:`departure-info`,lineIds:t.lineIds}):a(i,{style:`departure-info`,class:`shrink min-w-0`,oneLine:!0,children:[`Scheduled for `,t.timeStrings.schedule]})]})}function P(e){let t={green:`departure-info-success`,yellow:`departure-info-warning`,red:`departure-info-error`}[e.delay.color];return a(i,{style:t,children:e.delay.text})}function F(e){let{foda:n}=f(),{positionIndicatorHeader:o}=p(),s=t(()=>e.positionId==null?null:n.stops.require(e.stopId).positions.require(e.positionId).name,[n,e.stopId,e.positionId]);return s==null?null:a(l,{yAlign:`space-between`,class:r(e.class,`border-2 px-1.5 py-1 border-soft-border rounded-sm h-8.5 min-w-10`),children:[a(i,{style:`tiny-narrow`,align:`center`,children:o}),a(i,{style:`strong`,align:`center`,children:s})]})}var I=3.5;function L(e){let{currentMinute:n}=S(),{foda:o}=f(),s=t(()=>e.departure.getTimeStrings(n,o.formatTimezone),[e.departure,n,o.formatTimezone]);return a(l,{class:r(e.class,`h-14 min-w-0`),yAlign:`space-between`,children:[a(y,{xAlign:`space-between`,class:`gap-2 `,children:[a(y,{yAlign:`bottom`,class:`gap-1 shrink min-w-0`,children:[a(i,{style:`departure-headline`,dynamicColor:e.departure.color,children:e.departure.primaryDestinationText}),e.departure.secondaryDestinationText!=null&&a(i,{style:`departure-info`,class:`shrink min-w-0`,dynamicColor:e.departure.color,oneLine:!0,children:e.departure.secondaryDestinationText})]}),a(M,{timeType:e.departure.timeType,isCancelled:e.departure.isCancelled,timeStrings:s,serviceColor:e.departure.color})]}),a(y,{xAlign:`space-between`,yAlign:`bottom`,children:[a(l,{class:`gap-3 min-w-0 shrink`,children:[a(i,{style:e.departure.isCancelled?`departure-info-struckout`:`departure-info`,oneLine:!0,children:`The stopping pattern goes here`}),a(N,{timeStrings:s,lineIds:e.departure.lineIds,isCancelled:e.departure.isCancelled})]}),a(F,{class:`-mb-0.5`,stopId:e.departure.stopId,positionId:e.departure.positionId})]})]})}function R(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9.343 6.343L15 12l-5.657 5.657`})})}var z=I+2;function B(e){return a(x,{class:r(e.class),href:e.departure.servicePageUrl,children:a(u,{class:`grid-cols-[1fr_auto] p-4 items-center pr-2 gap-2`,children:[a(L,{departure:e.departure}),a(R,{class:`text-icon-lg text-fg`})]})})}function V(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M11 20H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4H4m12-7v2M8 4v2m12.121 9.879L18 18m0 0l-2.121 2.121M18 18l-2.121-2.121M18 18l2.121 2.121`})})}function te(e){let{pluralServicesTerm:t}=p();return e.loading?a(H,{class:e.class,queryCount:e.queryCount,centerContent:!0,children:a(h,{})}):e.hadError?a(H,{class:r(e.class,`gap-2`),queryCount:e.queryCount,centerContent:!0,children:a(E,{text:`An error occurred while retrieving departures`})}):e.departures.length===0?a(H,{class:e.class,queryCount:e.queryCount,centerContent:!0,children:a(E,{text:`No ${t} scheduled`,icon:V})}):a(H,{class:e.class,queryCount:e.queryCount,children:e.departures.map((t,n)=>a(u,{class:`relative`,children:[a(B,{departure:t}),n<e.queryCount-1&&a(`hr`,{class:`border-soft-border absolute bottom-0 left-0 right-0 mx-4`})]},U(t)))})}function H(e){let t=e.centerContent??!1;return a(l,{class:e.class,xAlign:t?`center`:`stretch`,yAlign:t?`center`:`top`,dynamicMinHeightRem:z*e.queryCount,children:e.children})}function U(e){return`${e.sourceId}/${e.intrasourceId}/${e.movementIndex}`}function W(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m4 20l5-5m0 0l3.956 3.956a1 1 0 0 0 1.626-.314l2.255-5.261a1 1 0 0 1 .548-.535l3.207-1.283a1 1 0 0 0 .336-1.635l-6.856-6.856a1 1 0 0 0-1.635.336l-1.283 3.207a1 1 0 0 1-.535.548L5.358 9.418a1 1 0 0 0-.314 1.626z`})})}function G(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9 20H4v-5m0 5l6.5-6.5M15 4h5v5m0-5l-6.5 6.5`})})}function K(e){return a(l,{class:r(e.class,`min-w-0`),children:[a(y,{xAlign:`space-between`,yAlign:`center`,class:`gap-2 not-desktop:pl-4 not-desktop:pr-2 not-desktop:pt-6 pb-2`,children:[a(i,{style:`subtitle`,class:`shrink min-w-0`,oneLine:!0,children:e.feed.title}),a(y,{class:`gap-2`,children:[a(_,{theme:`hover`,icon:W}),a(_,{theme:`hover`,icon:G})]})]}),a(te,{class:`bg-bg-raised desktop:border not-desktop:border-y border-soft-border desktop:rounded-lg overflow-hidden box-content`,departures:e.departures,queryCount:e.feed.desiredCount,loading:e.loading,hadError:e.hadError})]})}function q(e,{includeSeconds:t=!1}={}){let n=k(e.hour),r=n.hour.toFixed(),i=e.minute.toFixed().padStart(2,`0`),a=n.half;return t?`${r}:${i}:${e.second.toFixed().padStart(2,`0`)}${a}`:`${r}:${i}${a}`}function J(e,{suppressAgo:t=!1}={}){let n=e.sign===-1,{days:r,hours:i,minutes:a,seconds:o}=e.abs().round({largestUnit:`day`,smallestUnit:`second`}),s=[];r!==0&&s.push(r===1?`1 day`:`${r.toFixed()} days`),i!==0&&s.push(i===1?`1 hr`:`${i.toFixed()} hrs`),a!==0&&s.push(a===1?`1 min`:`${a.toFixed()} mins`),(o!==0||s.length===0)&&s.push(o===1?`1 sec`:`${o.toFixed()} secs`);let c=n&&!t;return s.join(`, `)+(c?` ago`:``)}function Y(e,{includeYear:t=!1}={}){let n=e.toLocaleString(`en-US`,{weekday:`short`}),r=e.toLocaleString(`en-US`,{month:`short`});return`${n}, ${e.day.toFixed()} ${r}${t?` ${e.year.toFixed()}`:``}`}function X(e,t,{suppressEarlierToday:n=!1}={}){let r=e.toPlainTime(),i=e.toPlainDate(),a=t.toPlainTime(),o=t.toPlainDate(),s=q(r),c=i.since(o).days;return c===0?Temporal.PlainTime.compare(r,a)<=0&&!n?`${s} earlier today`:s:c===1?r.hour<=2?`${s} tonight`:`${s} tomorrow`:c===-1?`${s} yesterday`:c>1&&c<7?`${s} ${i.toLocaleString(`en-US`,{weekday:`long`})}`:c<-1&&c>=-7?`${s} last ${i.toLocaleString(`en-US`,{weekday:`long`})}`:`${s} (${Y(i)})`}var Z=class e{primary;struckout;delay;schedule;constructor(e){this.primary=e.primary,this.struckout=e.struckout,this.delay=e.delay,this.schedule=e.schedule}static build(t,n,r){let{time:i,formerTime:a,timeType:o}=t,s=this._inFormatTimezone(n,r),c=X(this._inFormatTimezone(i,r),s,{suppressEarlierToday:!0});if(o===`scheduled-time`||a==null)return new e({primary:c,struckout:null,delay:null,schedule:null});let l=X(this._inFormatTimezone(a,r),s,{suppressEarlierToday:!0}),u=i.since(n),d=this._getDelay(i.since(a));if(u.total({unit:`minutes`})>60)return new e({primary:c,struckout:c===l?null:l,delay:d,schedule:null});let f=a.since(n),p=this._formatDurationWithNow(u),m=this._formatDurationWithNow(f);return new e({primary:p,struckout:p===m?null:m,delay:d,schedule:l})}static _getDelay(e){let t=e.total({unit:`minutes`}),n=J(e,{suppressAgo:!0});return t<0?{text:`${n} early`,color:`green`}:t===0?{text:`On time`,color:`green`}:{text:`${n} late`,color:this._getDelayColor(t)}}static _getDelayColor(e){return e<3?`green`:e<15?`yellow`:`red`}static _formatDurationWithNow(e){return e.sign>=0&&e.total({unit:`minutes`})<1?`Now`:J(e)}static _inFormatTimezone(e,t){return e.toZonedDateTimeISO(t).toPlainDateTime()}},Q=class e{sourceId;intrasourceId;lineIds;primaryDestinationText;secondaryDestinationText;color;isCancelled;stopId;positionId;timeType;time;formerTime;movementIndex;constructor(e){this.sourceId=e.sourceId,this.intrasourceId=e.intrasourceId,this.lineIds=e.lineIds,this.primaryDestinationText=e.primaryDestinationText,this.secondaryDestinationText=e.secondaryDestinationText,this.color=e.color,this.isCancelled=e.isCancelled,this.stopId=e.stopId,this.positionId=e.positionId,this.timeType=e.timeType,this.time=e.time,this.formerTime=e.formerTime,this.movementIndex=e.movementIndex}get servicePageUrl(){return m.service(this.sourceId,this.intrasourceId,this.movementIndex)}getTimeStrings(e,t){return Z.build(this,e,t)}static wrap(t,n){return new e({sourceId:n.sourceId,intrasourceId:n.intrasourceId,lineIds:n.lineIds,primaryDestinationText:n.primaryDestinationText,secondaryDestinationText:n.secondaryDestinationText,color:n.color,isCancelled:n.isCancelled,stopId:t,positionId:n.movement.positionId??null,timeType:n.movement.timeType,time:Temporal.Instant.from(n.movement.time),formerTime:n.movement.formerTime==null?null:Temporal.Instant.from(n.movement.formerTime),movementIndex:n.movement.index})}static wrapAll(t,n){return n?.map(n=>e.wrap(t,n))??[]}};function ne(e){let{data:n,loading:i,error:o}=D(d,{instant:e.instant.toString(),direction:`forwards`,feeds:e.feeds.map(e=>({...e,skips:[]}))}),s=t(()=>e.feeds.map((e,t)=>({feed:e,departures:Q.wrapAll(e.stopId,n?.feeds[t]?.departures)})),[e.feeds,n]);return a(u,{class:r(e.class,`desktop:grid-cols-[1fr_1fr] desktop:gap-6 desktop:px-4 desktop:py-8`),children:s.map((e,t)=>a(K,{feed:e.feed,departures:e.departures,loading:i,hadError:o!=null,class:`not-desktop:last:-mb-px`},t))})}function $(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M17.657 9.343L12 15L6.343 9.343`})})}function re(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 7v5l3 3m6-3a9 9 0 1 1-18 0a9 9 0 0 1 18 0`})})}function ie(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M19.5 4h-15a.5.5 0 0 0-.5.5v2.086a1 1 0 0 0 .293.707L10 13v5.691a.5.5 0 0 0 .276.447L14 21v-8l5.707-5.707A1 1 0 0 0 20 6.586V4.5a.5.5 0 0 0-.5-.5Z`})})}function ae(e){return a(u,{class:`desktop:pt-6 desktop:px-4`,children:a(u,{class:r(e.class,`grid-cols-[1fr_1fr] desktop:max-w-150 bg-bg-raised divide-x divide-soft-border desktop:border not-desktop:border-b border-soft-border desktop:rounded-lg overflow-hidden`),children:[a(x,{children:a(y,{xAlign:`space-between`,yAlign:`center`,class:`p-4`,children:[a(y,{yAlign:`center`,class:`gap-2`,children:[a(g,{heightRem:c(`text-md`),children:a(re,{class:`text-icon-lg text-fg`})}),a(i,{children:`Now`})]}),a(g,{heightRem:c(`text-md`),children:a($,{class:`text-icon-lg text-fg`})})]})}),a(x,{children:a(y,{xAlign:`space-between`,yAlign:`center`,class:`p-4`,children:[a(y,{yAlign:`center`,class:`gap-2`,children:[a(g,{heightRem:c(`text-md`),children:a(ie,{class:`text-icon-lg text-fg`})}),a(i,{children:`All trains`})]}),a(g,{heightRem:c(`text-md`),children:a($,{class:`text-icon-lg text-fg`})})]})})]})})}function oe(){let{params:{id:e}}=o(),{foda:n}=f(),r=t(()=>n.stops.getByUrlPath(e??``),[n.stops,e]);return r==null?a(ee,{afterConfirming:`foundational-data-version`}):a(se,{stop:r},r.id)}function se(e){let{currentMinute:t}=S(),n=e.stop.defaultDepartureFeeds.map(t=>({title:t.name,stopId:e.stop.id,desiredCount:t.desiredCount,filterExpression:`${t.filterExpression} !arr !sdo`.trim()}));return a(C,{...A({title:e.stop.name,back:{href:m.home,text:`Home`},additionalContent:a(b,{lineIds:e.stop.canonicalLinesServingStop,withLinks:!0})}),children:a(l,{children:[a(ae,{}),a(ne,{feeds:n,instant:t})]})})}export{oe as default};
@@ -0,0 +1 @@
1
+ import{c as e,l as t}from"./use-nav-exemptions-D8bA5W60.js";function n(n){return t(`strong`,{class:e(n.class,`text-fg-strong`),children:n.children})}export{n as t};
@@ -0,0 +1 @@
1
+ import{i as e,l as t,r as n}from"./use-nav-exemptions-D8bA5W60.js";import{t as r}from"./Strong--F1YzYdg.js";import{t as i}from"./Page-B2FZWIBP.js";import{t as a}from"./use-simple-headers-BpV0B8HW.js";function o(){return t(i,{...a({title:`Zen mode`}),children:t(n,{class:`px-4 py-8 gap-8`,children:t(e,{children:[t(r,{children:`✨`}),` Zen! `,t(r,{children:`✨`})]})})})}export{o as default};
@@ -0,0 +1 @@
1
+ import{l as e}from"./use-nav-exemptions-D8bA5W60.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`,fillRule:`evenodd`,children:[e(`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`}),e(`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`})]})})}var n=class{static home=`/`;static about=`/about`;static admin=`/admin`;static debug=`/debug`;static nearby=`/nearby`;static settings=`/settings`;static status=`/status`;static zen=`/zen`;static lineUrlTemplate=`/line/:id`;static stopUrlTemplate=`/stop/:id`;static serviceUrlTemplate=`/service/:sourceId/:intrasourceId`;static stop(e){return`/stop/${e}`}static line(e){return`/line/${e}`}static service(e,t,n){return`/service/${encodeURIComponent(e)}/${encodeURIComponent(t)}?from=${encodeURIComponent(n.toString())}`}};export{t as n,n as t};