corequery 0.8.0 → 0.10.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 (59) hide show
  1. package/package.json +1 -1
  2. package/server/dist/server/api/create-api-router.js +2 -0
  3. package/server/dist/server/api/create-api-router.js.map +1 -1
  4. package/server/dist/server/api/handlers/{foundational-data-v1 → foundational-data/v1}/builder.d.ts +2 -2
  5. package/server/dist/server/api/handlers/foundational-data/v1/builder.js.map +1 -0
  6. package/server/dist/server/api/handlers/foundational-data/v1/index.d.ts +4 -0
  7. package/server/dist/server/api/handlers/{foundational-data-v1 → foundational-data/v1}/index.js +1 -1
  8. package/server/dist/server/api/handlers/foundational-data/v1/index.js.map +1 -0
  9. package/server/dist/server/api/handlers/index.d.ts +3 -1
  10. package/server/dist/server/api/handlers/index.js +3 -1
  11. package/server/dist/server/api/handlers/index.js.map +1 -1
  12. package/server/dist/server/api/handlers/version-check/v1/index.d.ts +4 -0
  13. package/server/dist/server/api/handlers/version-check/v1/index.js +21 -0
  14. package/server/dist/server/api/handlers/version-check/v1/index.js.map +1 -0
  15. package/server/dist/server/api/handlers/versions/v1/index.d.ts +4 -0
  16. package/server/dist/server/api/handlers/versions/v1/index.js +20 -0
  17. package/server/dist/server/api/handlers/versions/v1/index.js.map +1 -0
  18. package/server/dist/server/corequery.d.ts +1 -0
  19. package/server/dist/server/corequery.js +3 -0
  20. package/server/dist/server/corequery.js.map +1 -1
  21. package/server/dist/server/get-corequery-package-version.d.ts +1 -0
  22. package/server/dist/server/get-corequery-package-version.js +14 -0
  23. package/server/dist/server/get-corequery-package-version.js.map +1 -0
  24. package/server/dist/server/web-server/asset-preparer.d.ts +3 -2
  25. package/server/dist/server/web-server/asset-preparer.js +7 -4
  26. package/server/dist/server/web-server/asset-preparer.js.map +1 -1
  27. package/server/dist/server/web-server/index-html-preparer.d.ts +2 -1
  28. package/server/dist/server/web-server/index-html-preparer.js +3 -1
  29. package/server/dist/server/web-server/index-html-preparer.js.map +1 -1
  30. package/server/dist/server/web-server/web-server.js +13 -3
  31. package/server/dist/server/web-server/web-server.js.map +1 -1
  32. package/server/dist/shared/apis/index.d.ts +2 -0
  33. package/server/dist/shared/apis/index.js +2 -0
  34. package/server/dist/shared/apis/index.js.map +1 -1
  35. package/server/dist/shared/apis/version-check/v1/index.d.ts +11 -0
  36. package/server/dist/shared/apis/version-check/v1/index.js +25 -0
  37. package/server/dist/shared/apis/version-check/v1/index.js.map +1 -0
  38. package/server/dist/shared/apis/versions/v1/index.d.ts +12 -0
  39. package/server/dist/shared/apis/versions/v1/index.js +15 -0
  40. package/server/dist/shared/apis/versions/v1/index.js.map +1 -0
  41. package/web/dist/assets/{About-BUbvU_Xn.js → About-DZzvxTsC.js} +1 -1
  42. package/web/dist/assets/Debug-DLDWv0xn.js +1 -0
  43. package/web/dist/assets/Home-CT0wZ4Lg.js +1 -0
  44. package/web/dist/assets/NotFound-BLjxBrp8.js +1 -0
  45. package/web/dist/assets/{Page-yw9jm8U2.js → Page-C-5JtnHw.js} +1 -1
  46. package/web/dist/assets/index-CwS5Ckic.css +1 -0
  47. package/web/dist/assets/index-DIo4XJLj.js +41 -0
  48. package/web/dist/assets/{use-simple-headers-DahnFkvQ.js → use-simple-headers-siUQCJxx.js} +1 -1
  49. package/web/dist/index.html +3 -2
  50. package/web/dist/reset.html +197 -0
  51. package/web/dist/sw.js +1 -1
  52. package/server/dist/server/api/handlers/foundational-data-v1/builder.js.map +0 -1
  53. package/server/dist/server/api/handlers/foundational-data-v1/index.d.ts +0 -4
  54. package/server/dist/server/api/handlers/foundational-data-v1/index.js.map +0 -1
  55. package/web/dist/assets/Home-CksuUUdu.js +0 -1
  56. package/web/dist/assets/NotFound-D3ZfmfJJ.js +0 -1
  57. package/web/dist/assets/index-BSYyGt6C.js +0 -41
  58. package/web/dist/assets/index-DTmc0Ty4.css +0 -1
  59. /package/server/dist/server/api/handlers/{foundational-data-v1 → foundational-data/v1}/builder.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corequery",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "server/dist",
@@ -31,6 +31,8 @@ export function createApiRouter(app) {
31
31
  }
32
32
  // List all APIs here.
33
33
  setup(apis.FOUNDATIONAL_DATA_V1, handlers.FOUNDATIONAL_DATA_V1);
34
+ setup(apis.VERSION_CHECK_V1, handlers.VERSION_CHECK_V1);
35
+ setup(apis.VERSIONS_V1, handlers.VERSIONS_V1);
34
36
  router.use(/(.*)/, (_req, res) => {
35
37
  res.sendStatus(404);
36
38
  });
@@ -1 +1 @@
1
- {"version":3,"file":"create-api-router.js","sourceRoot":"","sources":["../../../api/create-api-router.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,IAAI,MAAM,wBAAwB,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAI3D,MAAM,UAAU,eAAe,CAAC,GAAc;IAC5C,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC;IAExB,cAAc;IACd,sCAAsC;IAEtC,SAAS,KAAK,CACZ,GAAsB,EACtB,OAAiC;QAEjC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;YACvC,IAAI,CAAC;gBACH,MAAM,IAAI,GAAG,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAChD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;oBAClB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBACjC,OAAO;gBACT,CAAC;gBAED,+BAA+B;gBAC/B,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,EAAE,GAAG,CAAC,WAA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EAAE,CAAC;oBAClB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBACjC,OAAO;gBACT,CAAC;gBAED,+BAA+B;gBAC/B,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,EAAE,GAAG,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC7D,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACnB,CAAC;YAAC,MAAM,WAAW,CAAC,CAAC;gBACnB,kEAAkE;gBAClE,wEAAwE;gBACxE,wEAAwE;gBACxE,wDAAwD;gBAExD,iBAAiB;gBACjB,kDAAkD;gBAClD,qBAAqB;gBACrB,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACtB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,sBAAsB;IACtB,KAAK,CAAC,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IAChE,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACxD,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IAE9C,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;QAC/B,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { Corequery } from "../../../../server/corequery.js";
2
- import type { fodaSchema } from "../../../../shared/apis/foundational-data/v1/foundational-data.js";
1
+ import type { Corequery } from "../../../../../server/corequery.js";
2
+ import type { fodaSchema } from "../../../../../shared/apis/foundational-data/v1/foundational-data.js";
3
3
  import type z from "zod";
4
4
  type Result = z.input<typeof fodaSchema>;
5
5
  export declare class FoundationalDataV1Builder {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../../../../api/handlers/foundational-data/v1/builder.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAQ5B,MAAM,OAAO,yBAAyB;IACP;IAA7B,YAA6B,IAAe;QAAf,SAAI,GAAJ,IAAI,CAAW;IAAG,CAAC;IAEhD,KAAK;QACH,MAAM,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAE3D,2EAA2E;QAC3E,yEAAyE;QACzE,uEAAuE;QACvE,wEAAwE;QACxE,kEAAkE;QAClE,MAAM,IAAI,GAAG,MAAM;aAChB,UAAU,CAAC,QAAQ,CAAC;aACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;aACjE,MAAM,CAAC,KAAK,CAAC,CAAC;QAEjB,OAAO;YACL,GAAG,qBAAqB;YACxB,QAAQ,EAAE;gBACR,IAAI,EAAE,IAAI;gBACV,aAAa,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO;aACjC;SACF,CAAC;IACJ,CAAC;IAEO,qBAAqB;QAC3B,OAAO;YACL,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;YAC7C,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;YAC7C,WAAW,EAAE;gBACX,eAAe,EAAE,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,eAAe;aAC7D;YACD,MAAM,EAAE;gBACN,eAAe,EAAE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,eAAe;aACxD;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ import type { FOUNDATIONAL_DATA_V1 } from "../../../../../shared/apis/index.js";
2
+ import type { ApiContext } from "../../../../../server/api/types.js";
3
+ import type { ArgsOf, ResultOf } from "../../../../../shared/apis/types.js";
4
+ export declare function handle(ctx: ApiContext, args: ArgsOf<typeof FOUNDATIONAL_DATA_V1>): Promise<ResultOf<typeof FOUNDATIONAL_DATA_V1>>;
@@ -1,4 +1,4 @@
1
- import { FoundationalDataV1Builder } from "../../../../server/api/handlers/foundational-data-v1/builder.js";
1
+ import { FoundationalDataV1Builder } from "../../../../../server/api/handlers/foundational-data/v1/builder.js";
2
2
  // eslint-disable-next-line @typescript-eslint/require-await
3
3
  export async function handle(ctx, args) {
4
4
  // await new Promise((resolve) => setTimeout(resolve, 500));
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../api/handlers/foundational-data/v1/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uDAAuD,CAAC;AAElG,4DAA4D;AAC5D,MAAM,CAAC,KAAK,UAAU,MAAM,CAC1B,GAAe,EACf,IAAyC;IAEzC,4DAA4D;IAE5D,MAAM,IAAI,GAAG,IAAI,yBAAyB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC;IAE5D,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,QAAQ,CAAC,IAAI;QAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;IAEtE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC;AACxD,CAAC"}
@@ -1 +1,3 @@
1
- export { handle as FOUNDATIONAL_DATA_V1 } from "./foundational-data-v1/index.js";
1
+ export { handle as FOUNDATIONAL_DATA_V1 } from "./foundational-data/v1/index.js";
2
+ export { handle as VERSION_CHECK_V1 } from "./version-check/v1/index.js";
3
+ export { handle as VERSIONS_V1 } from "./versions/v1/index.js";
@@ -1,2 +1,4 @@
1
- export { handle as FOUNDATIONAL_DATA_V1 } from "./foundational-data-v1/index.js";
1
+ export { handle as FOUNDATIONAL_DATA_V1 } from "./foundational-data/v1/index.js";
2
+ export { handle as VERSION_CHECK_V1 } from "./version-check/v1/index.js";
3
+ export { handle as VERSIONS_V1 } from "./versions/v1/index.js";
2
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../api/handlers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,oBAAoB,EAAE,MAAM,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../api/handlers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { VERSION_CHECK_V1 } from "../../../../../shared/apis/index.js";
2
+ import type { ApiContext } from "../../../../../server/api/types.js";
3
+ import type { ArgsOf, ResultOf } from "../../../../../shared/apis/types.js";
4
+ export declare function handle(_ctx: ApiContext, _args: ArgsOf<typeof VERSION_CHECK_V1>): Promise<ResultOf<typeof VERSION_CHECK_V1>>;
@@ -0,0 +1,21 @@
1
+ // eslint-disable-next-line @typescript-eslint/require-await
2
+ export async function handle(_ctx, _args) {
3
+ return {
4
+ // In theory, one day we might want a way to ensure old versions of the app
5
+ // are updated automatically upon loading, e.g. to deprecate an old version
6
+ // of an API. If we return `isForceUpdateOfServiceWorkerRequired: true`, the
7
+ // frontend will automatically unregister the service worker and reload the
8
+ // page.
9
+ //
10
+ // We can decide this based on the frontend version or corequery package
11
+ // version, as they're each given in the args. My current thinking is that
12
+ // this'll primarily to be used such that we define a "minimum supported
13
+ // corequery package version", as most breaking changes will happen within
14
+ // the corequery project itself, not a consumer project configuration
15
+ // change. But "frontend version" is there just in case (harder to use
16
+ // though, as it's based on a random hash right now, not a nicely ordered
17
+ // versioning system).
18
+ isForceUpdateOfServiceWorkerRequired: false,
19
+ };
20
+ }
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../api/handlers/version-check/v1/index.ts"],"names":[],"mappings":"AAIA,4DAA4D;AAC5D,MAAM,CAAC,KAAK,UAAU,MAAM,CAC1B,IAAgB,EAChB,KAAsC;IAEtC,OAAO;QACL,2EAA2E;QAC3E,2EAA2E;QAC3E,4EAA4E;QAC5E,2EAA2E;QAC3E,QAAQ;QACR,EAAE;QACF,wEAAwE;QACxE,0EAA0E;QAC1E,wEAAwE;QACxE,0EAA0E;QAC1E,qEAAqE;QACrE,sEAAsE;QACtE,yEAAyE;QACzE,sBAAsB;QACtB,oCAAoC,EAAE,KAAK;KAC5C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { VERSIONS_V1 } from "../../../../../shared/apis/index.js";
2
+ import type { ApiContext } from "../../../../../server/api/types.js";
3
+ import type { ArgsOf, ResultOf } from "../../../../../shared/apis/types.js";
4
+ export declare function handle(ctx: ApiContext, _args: ArgsOf<typeof VERSIONS_V1>): Promise<ResultOf<typeof VERSIONS_V1>>;
@@ -0,0 +1,20 @@
1
+ import { FoundationalDataV1Builder } from "../../../../../server/api/handlers/foundational-data/v1/builder.js";
2
+ // eslint-disable-next-line @typescript-eslint/require-await
3
+ export async function handle(ctx, _args) {
4
+ const foda = new FoundationalDataV1Builder(ctx.app).build();
5
+ return {
6
+ serverVersion: ctx.app.version,
7
+ // One day, this will diverge from the server version, because the frontend
8
+ // code doesn't necessarily change in every release of the corequery
9
+ // package, let alone every commit in a consumer package (which is what
10
+ // serverVersion is based on). My current thinking is that it can be based
11
+ // on a hash of the sw.js file (which includes hashes of all the files it
12
+ // pre-caches).
13
+ frontendVersion: ctx.app.version,
14
+ corequeryPackageVersion: ctx.app.corequeryPackageVersion,
15
+ foundationalDataHash: foda.metadata.hash,
16
+ // Deprecated, but kept for backwards compatibility.
17
+ version: ctx.app.version,
18
+ };
19
+ }
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../api/handlers/versions/v1/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uDAAuD,CAAC;AAElG,4DAA4D;AAC5D,MAAM,CAAC,KAAK,UAAU,MAAM,CAC1B,GAAe,EACf,KAAiC;IAEjC,MAAM,IAAI,GAAG,IAAI,yBAAyB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC;IAE5D,OAAO;QACL,aAAa,EAAE,GAAG,CAAC,GAAG,CAAC,OAAO;QAE9B,2EAA2E;QAC3E,oEAAoE;QACpE,uEAAuE;QACvE,0EAA0E;QAC1E,yEAAyE;QACzE,eAAe;QACf,eAAe,EAAE,GAAG,CAAC,GAAG,CAAC,OAAO;QAEhC,uBAAuB,EAAE,GAAG,CAAC,GAAG,CAAC,uBAAuB;QACxD,oBAAoB,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI;QAExC,oDAAoD;QACpD,OAAO,EAAE,GAAG,CAAC,GAAG,CAAC,OAAO;KACzB,CAAC;AACJ,CAAC"}
@@ -7,6 +7,7 @@ export declare class Corequery {
7
7
  private readonly _config;
8
8
  private readonly _webServer;
9
9
  readonly version: string;
10
+ readonly corequeryPackageVersion: string;
10
11
  readonly stops: StopCollection;
11
12
  readonly lines: LineCollection;
12
13
  readonly landingPageConfig: LandingPageConfig;
@@ -3,10 +3,12 @@ import { env } from "../server/env.js";
3
3
  import { WebServer } from "../server/web-server/web-server.js";
4
4
  import { StopCollection } from "../server/data/stop-collection.js";
5
5
  import { LineCollection } from "../server/data/line-collection.js";
6
+ import { getCorequeryPackageVersion } from "../server/get-corequery-package-version.js";
6
7
  export class Corequery {
7
8
  _config;
8
9
  _webServer;
9
10
  version;
11
+ corequeryPackageVersion;
10
12
  stops;
11
13
  lines;
12
14
  // I'm happy just exposing the config for now. Can be migrated to full classes
@@ -17,6 +19,7 @@ export class Corequery {
17
19
  this._config = configBuilder(this);
18
20
  this._webServer = new WebServer(this, this._config.port, this._config.assets, env.COREQUERY_HOT_RELOAD ? "vite-middleware" : "dist-folder", serverFolderPath);
19
21
  this.version = this._config.version;
22
+ this.corequeryPackageVersion = getCorequeryPackageVersion();
20
23
  const { stopTagSuccession, lineTagSuccession } = this._config.tags;
21
24
  this.stops = StopCollection.build(this._config.stops, stopTagSuccession);
22
25
  this.lines = LineCollection.build(this._config.lines, lineTagSuccession);
@@ -1 +1 @@
1
- {"version":3,"file":"corequery.js","sourceRoot":"","sources":["../../corequery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAKlE,MAAM,OAAO,SAAS;IACH,OAAO,CAAkB;IACzB,UAAU,CAAY;IAE9B,OAAO,CAAS;IAChB,KAAK,CAAiB;IACtB,KAAK,CAAiB;IAE/B,8EAA8E;IAC9E,6CAA6C;IACpC,iBAAiB,CAAoB;IACrC,YAAY,CAAe;IAEpC,YAAY,aAAqC;QAC/C,IAAI,CAAC,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;QAEnC,IAAI,CAAC,UAAU,GAAG,IAAI,SAAS,CAC7B,IAAI,EACJ,IAAI,CAAC,OAAO,CAAC,IAAI,EACjB,IAAI,CAAC,OAAO,CAAC,MAAM,E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+1,14 @@
1
+ import { serverFolderPath } from "../server/dirname.js";
2
+ import fs from "fs";
3
+ import path from "path";
4
+ import z from "zod";
5
+ const packageJsonSchema = z.object({
6
+ version: z.string(),
7
+ });
8
+ export function getCorequeryPackageVersion() {
9
+ const packageJsonPath = path.resolve(serverFolderPath, "../../../package.json");
10
+ const packageJsonStr = fs.readFileSync(packageJsonPath, "utf-8");
11
+ const parseResult = packageJsonSchema.parse(JSON.parse(packageJsonStr));
12
+ return parseResult.version;
13
+ }
14
+ //# sourceMappingURL=get-corequery-package-version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-corequery-package-version.js","sourceRoot":"","sources":["../../get-corequery-package-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B;IACxC,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAClC,gBAAgB,EAChB,uBAAuB,CACxB,CAAC;IACF,MAAM,cAAc,GAAG,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACjE,MAAM,WAAW,GAAG,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;IACxE,OAAO,WAAW,CAAC,OAAO,CAAC;AAC7B,CAAC"}
@@ -2,13 +2,14 @@ import type { AssetConfig } from "../../server/config/types/asset-config.js";
2
2
  export declare class AssetPreparer {
3
3
  private readonly _distFolderPath;
4
4
  private readonly _config;
5
- private readonly _version;
5
+ private readonly _frontendVersion;
6
+ private readonly _corequeryPackageVersion;
6
7
  static readonly ALL_MODIFIED_FILES: string[];
7
8
  private readonly _indexHtml;
8
9
  private readonly _manifest;
9
10
  private readonly _icons;
10
11
  private readonly _serviceWorker;
11
- constructor(_distFolderPath: string, _config: AssetConfig, _version: string);
12
+ constructor(_distFolderPath: string, _config: AssetConfig, _frontendVersion: string, _corequeryPackageVersion: string);
12
13
  run(): Promise<void>;
13
14
  validateDistFolder(): Promise<void>;
14
15
  }
@@ -5,7 +5,8 @@ import { ServiceWorkerPreparer } from "../../server/web-server/service-worker-pr
5
5
  export class AssetPreparer {
6
6
  _distFolderPath;
7
7
  _config;
8
- _version;
8
+ _frontendVersion;
9
+ _corequeryPackageVersion;
9
10
  static ALL_MODIFIED_FILES = [
10
11
  IndexHtmlPreparer.FILE_PATH,
11
12
  ManifestPreparer.FILE_PATH,
@@ -15,13 +16,15 @@ export class AssetPreparer {
15
16
  _manifest;
16
17
  _icons;
17
18
  _serviceWorker;
18
- constructor(_distFolderPath, _config, _version) {
19
+ constructor(_distFolderPath, _config, _frontendVersion, _corequeryPackageVersion) {
19
20
  this._distFolderPath = _distFolderPath;
20
21
  this._config = _config;
21
- this._version = _version;
22
+ this._frontendVersion = _frontendVersion;
23
+ this._corequeryPackageVersion = _corequeryPackageVersion;
22
24
  this._indexHtml = new IndexHtmlPreparer(this._distFolderPath, {
23
25
  ...this._config,
24
- version: this._version,
26
+ frontendVersion: this._frontendVersion,
27
+ corequeryPackageVersion: this._corequeryPackageVersion,
25
28
  });
26
29
  this._manifest = new ManifestPreparer(this._distFolderPath, this._config);
27
30
  this._icons = new IconsPreparer(this._distFolderPath, this._config);
@@ -1 +1 @@
1
- {"version":3,"file":"asset-preparer.js","sourceRoot":"","sources":["../../../web-server/asset-preparer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,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IAAI,CAAC,SAAS,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1E,IAAI,CAAC,MAAM,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACpE,IAAI,CAAC,cAAc,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,eAAe,EAAE;YACpE,aAAa,EAAE,aAAa,CAAC,kBAAkB;SAChD,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,GAAG;QACP,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;QAC5B,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC;QAC3B,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;QAExB,2EAA2E;QAC3E,eAAe;QACf,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;QAC7B,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC;IACvC,CAAC"}
@@ -2,7 +2,8 @@ type Config = {
2
2
  readonly appName: string;
3
3
  readonly shortAppName: string;
4
4
  readonly description: string;
5
- readonly version: string;
5
+ readonly frontendVersion: string;
6
+ readonly corequeryPackageVersion: string;
6
7
  };
7
8
  export declare class IndexHtmlPreparer {
8
9
  private readonly _distFolderPath;
@@ -17,7 +17,8 @@ export class IndexHtmlPreparer {
17
17
  tags.title.textContent = this._config.appName;
18
18
  tags.description.setAttribute("content", this._config.description);
19
19
  tags.appName.setAttribute("content", this._config.appName);
20
- tags.frontendVersion.setAttribute("content", this._config.version);
20
+ tags.frontendVersion.setAttribute("content", this._config.frontendVersion);
21
+ tags.corequeryPackageVersion.setAttribute("content", this._config.corequeryPackageVersion);
21
22
  return tags.indexHtml.toString();
22
23
  }
23
24
  async validate() {
@@ -40,6 +41,7 @@ export class IndexHtmlPreparer {
40
41
  description: requireTag('meta[name="description"]'),
41
42
  appName: requireTag('meta[name="corequery-app-name"]'),
42
43
  frontendVersion: requireTag('meta[name="corequery-frontend-version"]'),
44
+ corequeryPackageVersion: requireTag('meta[name="corequery-package-version"]'),
43
45
  };
44
46
  }
45
47
  _fullFilePath() {
@@ -1 +1 @@
1
- {"version":3,"file":"index-html-preparer.js","sourceRoot":"","sources":["../../../web-server/index-html-preparer.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AASzC,MAAM,OAAO,iBAAiB;IAIT;IACA;IAJnB,MAAM,CAAU,SAAS,GAAG,YAAY,CAAC;IAEzC,YACmB,eAAuB,EACvB,OAAe;QADf,oBAAe,GAAf,eAAe,CAAQ;QACvB,YAAO,GAAP,OAAO,CAAQ;IAC/B,CAAC;IAEJ,KAAK,CAAC,GAAG;QACP,MAAM,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QAEpC,IAAI,CAAC,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QAC9C,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACnE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,SAAS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AO,CAAC,CAAC;QACvE,MAAM,SAAS,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;QAEtC,SAAS,UAAU,CAAC,QAAgB;YAClC,MAAM,GAAG,GAAG,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YAC9C,IAAI,GAAG,IAAI,IAAI;gBAAE,MAAM,IAAI,KAAK,CAAC,IAAI,QAAQ,kBAAkB,CAAC,CAAC;YACjE,OAAO,GAAG,CAAC;QACb,CAAC;QAED,OAAO;YACL,SAAS;YACT,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;YAC1B,WAAW,EAAE,UAAU,CAAC,0BAA0B,CAAC;YACnD,OAAO,EAAE,UAAU,CAAC,iCAAiC,CAAC;YACtD,eAAe,EAAE,UAAU,CAAC,yCAAyC,CAAC;YACtE,uBAAuB,EAAE,UAAU,CACjC,wCAAwC,CACzC;SACF,CAAC;IACJ,CAAC;IAEO,aAAa;QACnB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IACtE,CAAC"}
@@ -19,7 +19,7 @@ export class WebServer {
19
19
  async prepareAssets() {
20
20
  if (this._clientMode === "dist-folder") {
21
21
  const distFolderPath = this._getWebFolderPath("dist");
22
- await new AssetPreparer(distFolderPath, this._assetConfig, this._app.version).run();
22
+ await new AssetPreparer(distFolderPath, this._assetConfig, this._app.version, this._app.corequeryPackageVersion).run();
23
23
  }
24
24
  // It's hard to think of a way to reasonably replace the assets in
25
25
  // middleware mode, as you'd be replacing the source assets. It's only a
@@ -42,10 +42,20 @@ export class WebServer {
42
42
  });
43
43
  }
44
44
  async _serveFrontendFromDistFolder(server) {
45
+ server.use(express.static(this._getWebFolderPath("dist")));
46
+ // The /reset page, which intentionally exists separately to the rest of the
47
+ // Preact app, to help the user reset their service worker and local storage
48
+ // if they get into a broken state.
49
+ const resetHtmlPath = this._getWebFolderPath("dist/reset.html");
50
+ const resetHtml = await fsp.readFile(resetHtmlPath, "utf-8");
51
+ server.get("/reset", (_req, res) => {
52
+ res.status(200).set({ "Content-Type": "text/html" }).end(resetHtml);
53
+ });
54
+ // Every other non-static-file & non-reset-page URL serves index.html, and
55
+ // the Preact router takes care of showing the correct page or 404 page.
45
56
  const indexHtmlPath = this._getWebFolderPath("dist/index.html");
46
57
  const indexHtml = await fsp.readFile(indexHtmlPath, "utf-8");
47
- server.use(express.static(this._getWebFolderPath("dist")));
48
- server.use("*all", (_req, res) => {
58
+ server.get("*all", (_req, res) => {
49
59
  res.status(200).set({ "Content-Type": "text/html" }).end(indexHtml);
50
60
  });
51
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"web-server.js","sourceRoot":"","sources":["../../../web-server/web-server.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAIpE,MAAM,OAAO,SAAS;IAED;IACA;IACA;IACA;IACA;IALnB,YACmB,IAAe,EACf,KAAa,EACb,YAAyB,EACzB,WAAuB,EACvB,iBAAyB;QAJzB,SAAI,GAAJ,IAAI,CAAW;QACf,UAAK,GAAL,KAAK,CAAQ;QACb,iBAAY,GAAZ,YAAY,CAAa;QACzB,gBAAW,GAAX,WAAW,CAAY;QACvB,sBAAiB,GAAjB,iBAAiB,CAAQ;IACzC,CAAC;IAEJ,KAAK,CAAC,aAAa;QACjB,IAAI,IAAI,CAAC,WAAW,KAAK,aAAa,EAAE,CAAC;YACvC,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;YAEtD,MAAM,IAAI,aAAa,CACrB,cAAc,EACd,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,IAAI,CAAC,OAAO,CAClB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,CAAC,iBAAiB,EAAE;SAC/B,CAAC,CAAC;QACH,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC/B,CAAC;IAEO,iBAAiB,CAAC,YAAoB,EAAE;QAC9C,OAAO,IAAI,CAAC,OAAO,CACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,cAAc,CAAC,EACpD,SAAS,CACV,CAAC;IACJ,CAAC;CACF"}
@@ -1 +1,3 @@
1
1
  export { api as FOUNDATIONAL_DATA_V1 } from "./foundational-data/v1/index.js";
2
+ export { api as VERSION_CHECK_V1 } from "./version-check/v1/index.js";
3
+ export { api as VERSIONS_V1 } from "./versions/v1/index.js";
@@ -2,4 +2,6 @@
2
2
  // be on the latest version of the PWA, and we might need to make breaking
3
3
  // changes sometimes.
4
4
  export { api as FOUNDATIONAL_DATA_V1 } from "./foundational-data/v1/index.js";
5
+ export { api as VERSION_CHECK_V1 } from "./version-check/v1/index.js";
6
+ export { api as VERSIONS_V1 } from "./versions/v1/index.js";
5
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../shared/apis/index.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,0EAA0E;AAC1E,qBAAqB;AAErB,OAAO,EAAE,GAAG,IAAI,oBAAoB,EAAE,MAAM,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../shared/apis/index.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,0EAA0E;AAC1E,qBAAqB;AAErB,OAAO,EAAE,GAAG,IAAI,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,GAAG,IAAI,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,GAAG,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import z from "zod";
2
+ import type { Api } from "../../../../shared/apis/types.js";
3
+ declare const argsSchema: z.ZodObject<{
4
+ frontendVersion: z.ZodString;
5
+ corequeryPackageVersion: z.ZodString;
6
+ }, z.z.core.$strip>;
7
+ declare const resultSchema: z.ZodObject<{
8
+ isForceUpdateOfServiceWorkerRequired: z.ZodBoolean;
9
+ }, z.z.core.$strip>;
10
+ export declare const api: Api<typeof argsSchema, typeof resultSchema>;
11
+ export {};
@@ -0,0 +1,25 @@
1
+ import z from "zod";
2
+ const argsSchema = z.object({
3
+ frontendVersion: z.string(),
4
+ corequeryPackageVersion: z.string(),
5
+ // Originally I thought I'd include foundationalDataHash here too, but
6
+ // actually I want the force update mechanism to live outside the
7
+ // <FoundationalDataProvider> on the frontend, because if it's inside it, then
8
+ // it can't be used to rescue apps stuck loading the foundational data.
9
+ //
10
+ // Admitedly, it's hard to imagine an app is both (1) on an old version of the
11
+ // app, and (2) has never successfully loaded the foundational data (because
12
+ // if it had EVER loaded it, even an API failure should have it fall back to
13
+ // it's cached version), but you never know what sort of freak bug couldn't
14
+ // make it into the frontend one day, so the higher this mechanism lives in
15
+ // the chain, the better imo.
16
+ });
17
+ const resultSchema = z.object({
18
+ isForceUpdateOfServiceWorkerRequired: z.boolean(),
19
+ });
20
+ export const api = {
21
+ path: "/version-check/v1",
22
+ argsSchema,
23
+ resultSchema,
24
+ };
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../shared/apis/version-check/v1/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE;IAEnC,sEAAsE;IACtE,iEAAiE;IACjE,8EAA8E;IAC9E,uEAAuE;IACvE,EAAE;IACF,8EAA8E;IAC9E,4EAA4E;IAC5E,4EAA4E;IAC5E,2EAA2E;IAC3E,2EAA2E;IAC3E,6BAA6B;CAC9B,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,oCAAoC,EAAE,CAAC,CAAC,OAAO,EAAE;CAClD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,GAAG,GAAgD;IAC9D,IAAI,EAAE,mBAAmB;IACzB,UAAU;IACV,YAAY;CACb,CAAC"}
@@ -0,0 +1,12 @@
1
+ import z from "zod";
2
+ import type { Api } from "../../../../shared/apis/types.js";
3
+ declare const argsSchema: z.ZodObject<{}, z.z.core.$strip>;
4
+ declare const resultSchema: z.ZodObject<{
5
+ serverVersion: z.ZodString;
6
+ frontendVersion: z.ZodString;
7
+ corequeryPackageVersion: z.ZodString;
8
+ foundationalDataHash: z.ZodString;
9
+ version: z.ZodString;
10
+ }, z.z.core.$strip>;
11
+ export declare const api: Api<typeof argsSchema, typeof resultSchema>;
12
+ export {};
@@ -0,0 +1,15 @@
1
+ import z from "zod";
2
+ const argsSchema = z.object({});
3
+ const resultSchema = z.object({
4
+ serverVersion: z.string(),
5
+ frontendVersion: z.string(),
6
+ corequeryPackageVersion: z.string(),
7
+ foundationalDataHash: z.string(),
8
+ version: z.string().meta({ deprecated: true }),
9
+ });
10
+ export const api = {
11
+ path: "/versions/v1",
12
+ argsSchema,
13
+ resultSchema,
14
+ };
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../shared/apis/versions/v1/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEhC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE;IACnC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE;IAEhC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;CAC/C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,GAAG,GAAgD;IAC9D,IAAI,EAAE,cAAc;IACpB,UAAU;IACV,YAAY;CACb,CAAC"}
@@ -1 +1 @@
1
- import{e as u,a as e,u as l,C as t,T as a}from"./index-BSYyGt6C.js";import{P as o}from"./Page-yw9jm8U2.js";import{u as r}from"./use-simple-headers-DahnFkvQ.js";function n(i){const s=u("text-accent-text inline underline",i.class);return i.onClick!=null?e("span",{class:s,onClick:i.onClick,children:i.children}):i.href!=null?e("a",{class:s,href:i.href,children:i.children}):e("span",{class:s,children:i.children})}function p(){const{appName:i}=l();return e(o,{...r({title:"About"}),children:e(t,{class:"px-4 py-8 gap-12",children:[e(t,{class:"gap-8",children:[e(a,{style:"title",children:["About ",i]}),e(a,{children:["This is text so long that it needs to wrap. Lorem ipsum dolor sit amet consectetur adipisicing elit. Earum corporis, autem expedita, minus voluptatem ex voluptatum quis illum, quae dicta eius amet soluta consequatur beatae"," ",e(n,{href:"/deleniti-repellendus",children:"deleniti repellendus"}),"? Eos impedit adipisci molestiae similique quae corporis accusantium voluptates? Quod odit est ea id nihil in saepe minus quia tempore illum, dolorum, atque facilis natus delectus ratione omnis mollitia! Eveniet aliquam nam temporibus velit quae iusto facere, earum rerum, voluptate saepe officiis accusamus laboriosam maiores porro."]}),e(a,{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Esse quisquam molestias, cumque distinctio, laborum optio quam aut quasi rem tempora, minima placeat labore dolor maiores expedita pariatur reprehenderit mollitia modi."})]}),e(t,{class:"gap-6",children:[e(a,{style:"subtitle",children:"Mmm, yes"}),e(a,{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Deleniti eos quisquam laborum in eveniet officiis ab, perferendis ipsam natus doloribus, qui ratione sit. Eos eligendi voluptatibus, nesciunt asperiores commodi nemo minima beatae veritatis omnis magnam ipsam minus enim ab dolorem nulla."})]}),e(t,{class:"gap-6",children:[e(a,{style:"subtitle",children:"I simply must agree"}),e(a,{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Obcaecati fugiat officia, culpa asperiores architecto recusandae beatae illum aliquam magni ab sed a soluta id quae tenetur. Sit facere iste harum dolorum molestias omnis animi vitae. Expedita voluptatum perspiciatis dolor ex quam, tempore voluptates culpa ab nisi, officia iure reiciendis. Atque quis, amet recusandae quisquam iure fugiat tenetur voluptate harum inventore doloremque deleniti repudiandae, facere, praesentium temporibus quidem modi culpa similique eum ea architecto dolorem? Optio natus officiis, architecto necessitatibus ab accusamus placeat. Similique, ea mollitia excepturi neque nam odit doloremque molestias deleniti praesentium officia veniam dolorem cumque temporibus quos possimus error libero nisi voluptate reiciendis! Officiis dolorem fugit at dignissimos."})]}),e(t,{class:"gap-6",children:[e(a,{style:"subtitle",children:"Good chat"}),e(a,{children:"Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ipsa magni repudiandae tempore? Repellendus, fugit iusto!"})]})]})})}export{p as default};
1
+ import{c as u,a as e,u as l,C as t,T as a}from"./index-DIo4XJLj.js";import{P as o}from"./Page-C-5JtnHw.js";import{u as r}from"./use-simple-headers-siUQCJxx.js";function n(i){const s=u("text-accent-text inline underline",i.class);return i.onClick!=null?e("span",{class:s,onClick:i.onClick,children:i.children}):i.href!=null?e("a",{class:s,href:i.href,children:i.children}):e("span",{class:s,children:i.children})}function p(){const{appName:i}=l();return e(o,{...r({title:"About"}),children:e(t,{class:"px-4 py-8 gap-12",children:[e(t,{class:"gap-8",children:[e(a,{style:"title",children:["About ",i]}),e(a,{children:["This is text so long that it needs to wrap. Lorem ipsum dolor sit amet consectetur adipisicing elit. Earum corporis, autem expedita, minus voluptatem ex voluptatum quis illum, quae dicta eius amet soluta consequatur beatae"," ",e(n,{href:"/deleniti-repellendus",children:"deleniti repellendus"}),"? Eos impedit adipisci molestiae similique quae corporis accusantium voluptates? Quod odit est ea id nihil in saepe minus quia tempore illum, dolorum, atque facilis natus delectus ratione omnis mollitia! Eveniet aliquam nam temporibus velit quae iusto facere, earum rerum, voluptate saepe officiis accusamus laboriosam maiores porro."]}),e(a,{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Esse quisquam molestias, cumque distinctio, laborum optio quam aut quasi rem tempora, minima placeat labore dolor maiores expedita pariatur reprehenderit mollitia modi."})]}),e(t,{class:"gap-6",children:[e(a,{style:"subtitle",children:"Mmm, yes"}),e(a,{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Deleniti eos quisquam laborum in eveniet officiis ab, perferendis ipsam natus doloribus, qui ratione sit. Eos eligendi voluptatibus, nesciunt asperiores commodi nemo minima beatae veritatis omnis magnam ipsam minus enim ab dolorem nulla."})]}),e(t,{class:"gap-6",children:[e(a,{style:"subtitle",children:"I simply must agree"}),e(a,{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Obcaecati fugiat officia, culpa asperiores architecto recusandae beatae illum aliquam magni ab sed a soluta id quae tenetur. Sit facere iste harum dolorum molestias omnis animi vitae. Expedita voluptatum perspiciatis dolor ex quam, tempore voluptates culpa ab nisi, officia iure reiciendis. Atque quis, amet recusandae quisquam iure fugiat tenetur voluptate harum inventore doloremque deleniti repudiandae, facere, praesentium temporibus quidem modi culpa similique eum ea architecto dolorem? Optio natus officiis, architecto necessitatibus ab accusamus placeat. Similique, ea mollitia excepturi neque nam odit doloremque molestias deleniti praesentium officia veniam dolorem cumque temporibus quos possimus error libero nisi voluptate reiciendis! Officiis dolorem fugit at dignissimos."})]}),e(t,{class:"gap-6",children:[e(a,{style:"subtitle",children:"Good chat"}),e(a,{children:"Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ipsa magni repudiandae tempore? Repellendus, fugit iusto!"})]})]})})}export{p as default};
@@ -0,0 +1 @@
1
+ import{a as l,c as s,M as b,U as C,g as d,G as u,T as a,R as v,b as y,d as V,B as k,L as p,e as L,u as R,f as q,h as A,i as D,C as c}from"./index-DIo4XJLj.js";import{P}from"./Page-C-5JtnHw.js";import{u as H}from"./use-simple-headers-siUQCJxx.js";function h(e){return l("div",{class:s(e.class,"border-b border-soft-border")})}function g(e){return l("div",{class:s(e.class,"flex flex-col justify-center items-stretch"),style:{height:`${e.heightRem}rem`},children:e.children})}function B(e){return l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:l("g",{fill:"none",children:[l("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"}),l("path",{fill:"currentColor",d:"m13.299 3.148l8.634 14.954a1.5 1.5 0 0 1-1.299 2.25H3.366a1.5 1.5 0 0 1-1.299-2.25l8.634-14.954c.577-1 2.02-1 2.598 0M12 4.898L4.232 18.352h15.536zM12 15a1 1 0 1 1 0 2a1 1 0 0 1 0-2m0-7a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V9a1 1 0 0 1 1-1"})]})})}function M(e){return l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:l("g",{fill:"none",fillRule:"evenodd",children:[l("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"}),l("path",{fill:"currentColor",d:"M21.192 5.465a1 1 0 0 1 0 1.414L9.95 18.122a1.1 1.1 0 0 1-1.556 0l-5.586-5.586a1 1 0 1 1 1.415-1.415l4.95 4.95L19.777 5.465a1 1 0 0 1 1.414 0Z"})]})})}function U(e){const r={info:C,error:b,warning:B,success:M}[e.type],t=e.icon!==void 0?e.icon:r,n={info:"bg-soft-accent",error:"bg-soft-error",warning:"bg-soft-warning",success:"bg-soft-success"}[e.type],o={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)]"]}[e.type];return l(u,{class:s(e.class,n,o,"px-4 py-4.5 rounded-sm gap-2 items-start",{"grid-cols-[auto_1fr]":t!=null}),children:[t!=null&&l(g,{heightRem:d("text-md"),children:l(t,{class:"text-fg text-lg"})}),e.children]})}function T(e){return l("div",{class:s(e.class,"bg-placeholder animate-placeholder-pulse")})}function m(e){return l(T,{...e,class:s(e.class,"h-[1em] -my-[0.13em]")})}function i(e){return e.loading?l(u,{class:e.class,children:l(m,{class:"w-[40%] text-md"})}):e.value==null?null:l(a,{class:e.class,children:[e.prefix,": ",e.value]})}function S(e){const r={info:"bg-soft-accent",error:"bg-soft-error",warning:"bg-soft-warning",success:"bg-soft-success"}[e.type],t={info:"[--color-fg:var(--color-accent-text)]",error:"[--color-fg:var(--color-error-text)]",warning:"[--color-fg:var(--color-warning-text)]",success:"[--color-fg:var(--color-success-text)]"}[e.type];return l(u,{class:s(e.class,r,t,"px-2 py-1.5 rounded-full"),children:l(a,{style:"small",children:e.text})})}function x(e){return l(v,{class:s(e.class,"gap-x-2 gap-y-3"),wrap:!0,children:[l(a,{style:"strong",children:e.header}),e.loading&&l(m,{class:"w-[20%] text-md"}),!e.loading&&e.pillContent!=null&&l(g,{heightRem:d("text-md"),children:l(S,{type:e.pillContent.type,text:e.pillContent.text})})]})}function f(e){return l(x,{class:e.class,header:e.header,pillContent:W(e.currentValue,e.latestValue),loading:e.loading})}function W(e,r){return r==null?null:{text:e===r?"Up to date":"Outdated",type:e===r?"success":"error"}}function z(e){const{isUpdateAvailable:r,update:t}=y();return r?l(k,{theme:"accent",text:"Refresh & update",class:"self-start",icon:V,onClick:()=>{t()}}):l(v,{class:s(e.class,"gap-2"),children:[l(g,{heightRem:d("text-md"),children:l(p,{})}),l(a,{class:"min-w-0 shrink w-full",children:"Waiting for service worker to install update..."})]})}function E(){const{isHotReloadingEnabled:e}=L(),{frontendVersion:r}=R(),t=q(),{data:n,loading:o,error:w}=A(D,{});return l(P,{...H({title:"Developer info"}),children:l(c,{class:"px-4 py-8 gap-8",children:[w!=null&&l(U,{type:"error",children:l(a,{children:"Unable to fetch the latest version info from the server."})}),e?l(c,{class:"gap-8",children:[l(c,{class:"gap-4",children:[l(x,{header:"App version",pillContent:{text:"Development",type:"info"},loading:!1}),l(a,{children:"All frontend code is being served with hot-reloading enabled, not through the PWA. (The below values are meaningless.)"})]}),l(c,{class:"gap-4",children:[l(a,{children:["Current version: ",r]}),l(i,{prefix:"Latest version",value:n?.frontendVersion??null,loading:o})]})]}):l(c,{class:"gap-8",children:[l(c,{class:"gap-4",children:[l(f,{header:"App version",currentValue:r,latestValue:n?.frontendVersion??null,loading:o}),l(a,{children:["Current version: ",r]}),l(i,{prefix:"Latest version",value:n?.frontendVersion??null,loading:o})]}),!o&&n!=null&&n?.frontendVersion!==r&&l(z,{})]}),l(h,{}),l(c,{class:"gap-4",children:[l(f,{header:"Foundational data",currentValue:t.hash,latestValue:n?.foundationalDataHash??null,loading:o}),l(a,{class:"break-all",children:["Current version: ",t.serverVersion," (hash: ",t.hash,")"]}),l(i,{class:"break-all",prefix:"Latest version",value:n==null?null:`${n.serverVersion} (hash: ${n.foundationalDataHash})`,loading:o})]}),l(h,{})]})})}export{E as default};
@@ -0,0 +1 @@
1
+ import{u as t,a as e,C as s,T as o}from"./index-DIo4XJLj.js";import{P as r}from"./Page-C-5JtnHw.js";import{u as i}from"./use-simple-headers-siUQCJxx.js";function u(){const{appName:a}=t();return e(r,{...i({title:"Home"}),children:e(s,{class:"px-4 py-8 gap-8",children:e(o,{style:"title",children:a})})})}export{u as default};
@@ -0,0 +1 @@
1
+ import{e as g,u as p,b as f,h as m,i as h,y,a as e,C as r,T as i,B as x,j as H,L as b}from"./index-DIo4XJLj.js";import{P as l}from"./Page-C-5JtnHw.js";function A(){const{isHotReloadingEnabled:s}=g(),{frontendVersion:d}=p(),{unregister:t}=f(),{data:a,loading:o,error:c}=m(h,{}),n=!s&&!o&&c==null&&a!=null&&a.frontendVersion!==d;return y(()=>{async function u(){n&&(await t(),window.location.reload())}u()},[n,t]),!o&&!n?e(l,{mobileHeader:null,desktopHeader:null,children:e(r,{class:"px-4 py-8 gap-8",xAlign:"center",yAlign:"center",children:[e(i,{style:"title",align:"center",children:"Page not found"}),e(i,{align:"center",children:"This page doesn't exist, at least not anymore!"}),e(x,{href:"/",text:"Go home",icon:H})]})}):e(l,{mobileHeader:null,desktopHeader:null,children:e(r,{xAlign:"center",yAlign:"center",children:e(b,{})})})}export{A as default};
@@ -1 +1 @@
1
- import{a as d,e as n,G as r,f as a,P as i}from"./index-BSYyGt6C.js";function s(e){return d(r,{class:n(e.class,"fixed top-0 left-0 right-0 bg-bg-navbar border-b border-soft-border desktop:hidden"),children:e.children})}function c(e){return d(r,{class:n(e.class,"not-desktop:hidden"),children:e.children})}function h(e){const{showMobileNav:t}=a(),l=e.centered??!0;return d(r,{class:n("bg-bg min-h-svh",{"pt-12":e.mobileHeader!=null,"not-desktop:pb-18":t,"desktop:grid-rows-[auto_1fr]":e.desktopHeader!=null},"desktop:pt-12"),children:[e.mobileHeader!=null&&d(s,{class:"h-12",children:e.mobileHeader}),e.desktopHeader!=null&&d(c,{children:e.desktopHeader}),l?d(i,{children:e.children}):e.children]})}export{h as P};
1
+ import{a as d,c as n,G as r,k as a,P as i}from"./index-DIo4XJLj.js";function s(e){return d(r,{class:n(e.class,"fixed top-0 left-0 right-0 bg-bg-navbar border-b border-soft-border desktop:hidden"),children:e.children})}function c(e){return d(r,{class:n(e.class,"not-desktop:hidden"),children:e.children})}function h(e){const{showMobileNav:t}=a(),l=e.centered??!0;return d(r,{class:n("bg-bg min-h-svh",{"pt-12":e.mobileHeader!=null,"not-desktop:pb-18":t,"desktop:grid-rows-[auto_1fr]":e.desktopHeader!=null},"desktop:pt-12"),children:[e.mobileHeader!=null&&d(s,{class:"h-12",children:e.mobileHeader}),e.desktopHeader!=null&&d(c,{children:e.desktopHeader}),l?d(i,{children:e.children}):e.children]})}export{h as P};
@@ -0,0 +1 @@
1
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-duration:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:root,:host{--default-font-family:"Mona Sans", sans-serif;--spacing:.25rem;--text-sm:.7rem;--text-md:.9rem;--text-mdlg:1rem;--text-lg:1.25rem;--text-xl:1.5rem;--text-2xl:2rem;--font-weight-bold:700;--radius-sm:.25rem;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#ccddff80;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#adc9ff33;--color-soft-border-disabled:#a5c3ff1f;--color-placeholder:#b8cfff4d;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000;--animate-placeholder-pulse:placeholder-pulse 1s ease-in-out infinite}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}svg._loading-spinner{animation:1s ease-out infinite loading-spinner-flip}._loading-spinner circle:nth-child(2){transform-origin:25% 25%;animation:1s linear infinite loading-spinner-pulse}._loading-spinner circle:nth-child(3){transform-origin:75% 25%;animation:1s linear .1s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(4){transform-origin:75% 75%;animation:1s linear .2s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(5){transform-origin:25% 75%;animation:1s linear .3s infinite loading-spinner-pulse}@keyframes loading-spinner-pulse{0%{transform:scale(1)}10%{transform:scale(2)}30%{transform:scale(1)}}@keyframes loading-spinner-flip{0%{transform:rotate(0)}60%{transform:rotate(0)}to{transform:rotate(180deg)}}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:calc(var(--spacing) * 0)}.top-1{top:calc(var(--spacing) * 1)}.right-0{right:calc(var(--spacing) * 0)}.right-3{right:calc(var(--spacing) * 3)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.z-0{z-index:0}.z-1{z-index:1}.z-2{z-index:2}.col-start-2{grid-column-start:2}.row-1{grid-row:1}.row-2{grid-row:2}.row-3{grid-row:3}.mx-4{margin-inline:calc(var(--spacing) * 4)}.-my-\[0\.13em\]{margin-block:-.13em}.-mt-\[0\.38em\]{margin-top:-.38em}.-mb-\[0\.38em\]{margin-bottom:-.38em}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.h-2{height:calc(var(--spacing) * 2)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-18{height:calc(var(--spacing) * 18)}.h-24{height:calc(var(--spacing) * 24)}.h-\[1em\]{height:1em}.h-full{height:100%}.h-svh{height:100svh}.min-h-svh{min-height:100svh}.w-2{width:calc(var(--spacing) * 2)}.w-24{width:calc(var(--spacing) * 24)}.w-\[1em\]{width:1em}.w-\[20\%\]{width:20%}.w-\[40\%\]{width:40%}.w-full{width:100%}.w-svw{width:100svw}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-8{min-width:calc(var(--spacing) * 8)}.shrink{flex-shrink:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-placeholder-pulse{animation:var(--animate-placeholder-pulse)}.grid-cols-\[0px_1fr_0px\]{grid-template-columns:0 1fr 0}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-cols-\[repeat\(auto-fit\,minmax\(0\,1fr\)\)\]{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-12{gap:calc(var(--spacing) * 12)}.gap-16{gap:calc(var(--spacing) * 16)}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:3.40282e38px}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-y-2{border-block-style:var(--tw-border-style);border-block-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-soft-border{border-color:var(--color-soft-border)}.border-y-transparent{border-block-color:#0000}.border-b-accent{border-bottom-color:var(--color-accent)}.bg-accent{background-color:var(--color-accent)}.bg-bg{background-color:var(--color-bg)}.bg-bg-navbar{background-color:var(--color-bg-navbar)}.bg-bg-raised{background-color:var(--color-bg-raised)}.bg-error-text{background-color:var(--color-error-text)}.bg-placeholder{background-color:var(--color-placeholder)}.bg-soft-accent{background-color:var(--color-soft-accent)}.bg-soft-error{background-color:var(--color-soft-error)}.bg-soft-success{background-color:var(--color-soft-success)}.bg-soft-warning{background-color:var(--color-soft-warning)}.bg-success-text{background-color:var(--color-success-text)}.bg-warning-text{background-color:var(--color-warning-text)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-4\.5{padding-block:calc(var(--spacing) * 4.5)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-2xl{font-size:var(--text-2xl)}.text-lg{font-size:var(--text-lg)}.text-md{font-size:var(--text-md)}.text-mdlg{font-size:var(--text-mdlg)}.text-sm{font-size:var(--text-sm)}.text-xl{font-size:var(--text-xl)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-accent-text{color:var(--color-accent-text)}.text-fg{color:var(--color-fg)}.text-fg-strong{color:var(--color-fg-strong)}.text-fg-weak{color:var(--color-fg-weak)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-95{opacity:.95}.transition-\[opacity\,visibility\,translate\]{transition-property:opacity,visibility,translate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-100{--tw-duration:.1s;transition-duration:.1s}.select-none{-webkit-user-select:none;user-select:none}.\[--color-fg-strong\:var\(--color-accent-text\)\]{--color-fg-strong:var(--color-accent-text)}.\[--color-fg-strong\:var\(--color-error-text\)\]{--color-fg-strong:var(--color-error-text)}.\[--color-fg-strong\:var\(--color-success-text\)\]{--color-fg-strong:var(--color-success-text)}.\[--color-fg-strong\:var\(--color-warning-text\)\]{--color-fg-strong:var(--color-warning-text)}.\[--color-fg-weak\:var\(--color-accent-text\)\]{--color-fg-weak:var(--color-accent-text)}.\[--color-fg-weak\:var\(--color-error-text\)\]{--color-fg-weak:var(--color-error-text)}.\[--color-fg-weak\:var\(--color-success-text\)\]{--color-fg-weak:var(--color-success-text)}.\[--color-fg-weak\:var\(--color-warning-text\)\]{--color-fg-weak:var(--color-warning-text)}.\[--color-fg\:var\(--color-accent-text\)\]{--color-fg:var(--color-accent-text)}.\[--color-fg\:var\(--color-error-text\)\]{--color-fg:var(--color-error-text)}.\[--color-fg\:var\(--color-success-text\)\]{--color-fg:var(--color-success-text)}.\[--color-fg\:var\(--color-warning-text\)\]{--color-fg:var(--color-warning-text)}.not-disabled\:cursor-pointer:not(:disabled){cursor:pointer}.not-disabled\:\[--color-fg-strong\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-strong:var(--color-on-accent)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-error\)\]:not(:disabled){--color-fg-strong:var(--color-on-error)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-success\)\]:not(:disabled){--color-fg-strong:var(--color-on-success)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-strong:var(--color-on-warning)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-weak:var(--color-on-accent)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-error\)\]:not(:disabled){--color-fg-weak:var(--color-on-error)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-success\)\]:not(:disabled){--color-fg-weak:var(--color-on-success)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-weak:var(--color-on-warning)}.not-disabled\:\[--color-fg\:var\(--color-on-accent\)\]:not(:disabled){--color-fg:var(--color-on-accent)}.not-disabled\:\[--color-fg\:var\(--color-on-error\)\]:not(:disabled){--color-fg:var(--color-on-error)}.not-disabled\:\[--color-fg\:var\(--color-on-success\)\]:not(:disabled){--color-fg:var(--color-on-success)}.not-disabled\:\[--color-fg\:var\(--color-on-warning\)\]:not(:disabled){--color-fg:var(--color-on-warning)}@media not all and (min-width:48rem){.not-desktop\:top-0{top:calc(var(--spacing) * 0)}.not-desktop\:bottom-0{bottom:calc(var(--spacing) * 0)}.not-desktop\:row-1{grid-row:1}.not-desktop\:hidden{display:none}.not-desktop\:translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.not-desktop\:grid-rows-\[1fr_auto_auto\]{grid-template-rows:1fr auto auto}.not-desktop\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.not-desktop\:pb-18{padding-bottom:calc(var(--spacing) * 18)}}.group-not-disabled\:border-soft-border:is(:where(.group):not(:disabled) *){border-color:var(--color-soft-border)}.group-not-disabled\:border-transparent:is(:where(.group):not(:disabled) *){border-color:#0000}.group-not-disabled\:bg-accent:is(:where(.group):not(:disabled) *){background-color:var(--color-accent)}.group-not-disabled\:bg-error:is(:where(.group):not(:disabled) *){background-color:var(--color-error)}.group-not-disabled\:bg-soft:is(:where(.group):not(:disabled) *){background-color:var(--color-soft)}.group-not-disabled\:bg-success:is(:where(.group):not(:disabled) *){background-color:var(--color-success)}.group-not-disabled\:bg-transparent:is(:where(.group):not(:disabled) *){background-color:#0000}.group-not-disabled\:bg-warning:is(:where(.group):not(:disabled) *){background-color:var(--color-warning)}@media(hover:hover){.group-hover\:bg-soft:is(:where(.group):hover *){background-color:var(--color-soft)}.group-not-disabled\:group-hover\:bg-accent-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-not-disabled\:group-hover\:bg-error-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-error-hover)}.group-not-disabled\:group-hover\:bg-soft-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-success-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-success-hover)}.group-not-disabled\:group-hover\:bg-warning-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-warning-hover)}}.group-active\:bg-soft-active:is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-accent-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-accent-active)}.group-not-disabled\:group-active\:bg-error-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-error-active)}.group-not-disabled\:group-active\:bg-soft-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-success-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-success-active)}.group-not-disabled\:group-active\:bg-warning-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-warning-active)}.group-disabled\:border-soft-border-disabled:is(:where(.group):disabled *){border-color:var(--color-soft-border-disabled)}.disabled\:\[--color-fg-strong\:var\(--color-fg-weak\)\]:disabled{--color-fg-strong:var(--color-fg-weak)}.disabled\:\[--color-fg\:var\(--color-fg-weak\)\]:disabled{--color-fg:var(--color-fg-weak)}@media(min-width:48rem){.desktop\:top-0{top:calc(var(--spacing) * 0)}.desktop\:bottom-0{bottom:calc(var(--spacing) * 0)}.desktop\:row-3{grid-row:3}.desktop\:hidden{display:none}.desktop\:-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.desktop\:grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.desktop\:grid-rows-\[auto_auto_1fr\]{grid-template-rows:auto auto 1fr}.desktop\:flex-col-reverse{flex-direction:column-reverse}.desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.desktop\:pt-12{padding-top:calc(var(--spacing) * 12)}}@media(min-width:64rem){.widescreen\:grid-cols-\[1fr_64rem_1fr\]{grid-template-columns:1fr 64rem 1fr}}}:root{background-color:var(--color-bg-navbar)}*{flex-shrink:0}@font-face{font-family:Mona Sans;font-weight:200 900;font-display:swap;src:url(/mona-sans.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes placeholder-pulse{0%,to{opacity:.5}50%{opacity:1}}