ignotum 0.0.16 → 0.0.17

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 (123) hide show
  1. package/README.md +6 -6
  2. package/dist/cli/bin.mjs +13256 -2688
  3. package/dist/cli/bin.mjs.map +1 -1
  4. package/dist/platform/_headers +3 -0
  5. package/dist/platform/_ignotum/v1.0/client.js +12 -0
  6. package/dist/runtime/{api-B4fwp5a2.d.ts → api-BnUKx9cj-D49Tf0rX.d.ts} +4 -3
  7. package/dist/runtime/api-C-tltz6s.js +31 -0
  8. package/dist/runtime/api-C-tltz6s.js.map +1 -0
  9. package/dist/runtime/artifact-BB5qzoa6.js +42 -0
  10. package/dist/runtime/artifact-BB5qzoa6.js.map +1 -0
  11. package/dist/runtime/{bootstrap-BTFScKAc.d.ts → bootstrap-DjTwGJao-DBx5zdFI.d.ts} +64 -64
  12. package/dist/runtime/{bootstrap-BISQSn_O.js → bootstrap-DlNIfH-r.js} +9 -9
  13. package/dist/runtime/bootstrap-DlNIfH-r.js.map +1 -0
  14. package/dist/runtime/client.d.ts +24 -20
  15. package/dist/runtime/client.js +9 -9
  16. package/dist/runtime/client.js.map +1 -1
  17. package/dist/runtime/id-BI08JkmR.d.ts +1 -0
  18. package/dist/runtime/{id--1m0NuUL.js → id-BrEnxY-r.js} +118 -53
  19. package/dist/runtime/id-BrEnxY-r.js.map +1 -0
  20. package/dist/runtime/{image-Djtjy4Z8.js → image-gofzZeCm.js} +2 -2
  21. package/dist/runtime/image-gofzZeCm.js.map +1 -0
  22. package/dist/runtime/{index-D4seNHlX.d.ts → index-Biaw5vdF.d.ts} +2 -2
  23. package/dist/runtime/internal/api.d.ts +1 -1
  24. package/dist/runtime/internal/api.js +1 -30
  25. package/dist/runtime/internal/bootstrap.d.ts +1 -1
  26. package/dist/runtime/internal/bootstrap.js +1 -1
  27. package/dist/runtime/internal/client.d.ts +2 -2
  28. package/dist/runtime/internal/client.js +4 -4
  29. package/dist/runtime/internal/client.js.map +1 -1
  30. package/dist/runtime/internal/host.d.ts +4 -4
  31. package/dist/runtime/internal/host.js +4 -4
  32. package/dist/runtime/internal/routes.d.ts +1 -1
  33. package/dist/runtime/internal/routes.js +1 -1
  34. package/dist/runtime/internal/server.d.ts +3 -2
  35. package/dist/runtime/internal/server.js +2 -2
  36. package/dist/runtime/internal/server.js.map +1 -1
  37. package/dist/runtime/internal/types.d.ts +2 -2
  38. package/dist/runtime/internal/types.js +1 -1
  39. package/dist/runtime/{pagination-D3qd6s9N.js → pagination--f4kMKf6.js} +2 -2
  40. package/dist/runtime/{pagination-D3qd6s9N.js.map → pagination--f4kMKf6.js.map} +1 -1
  41. package/dist/runtime/pagination-BI08JkmR.d.ts +1 -0
  42. package/dist/runtime/{router-BSBI1oN1.js → router-C1eC9yy5.js} +462 -419
  43. package/dist/runtime/router-C1eC9yy5.js.map +1 -0
  44. package/dist/runtime/routes-DnU39R7c.js +152 -0
  45. package/dist/runtime/routes-DnU39R7c.js.map +1 -0
  46. package/dist/runtime/{schema-D1wOqiNH.js → schema-BSjepoNF.js} +271 -6
  47. package/dist/runtime/schema-BSjepoNF.js.map +1 -0
  48. package/dist/runtime/server.d.ts +5 -4
  49. package/dist/runtime/server.js +3 -3
  50. package/dist/runtime/server.js.map +1 -1
  51. package/dist/runtime/{sync-DzUwA8W9.js → sync-BwgS19Xy.js} +4 -16
  52. package/dist/runtime/sync-BwgS19Xy.js.map +1 -0
  53. package/dist/runtime/{sync-D-GK2sv9.d.ts → sync-By2hX5ev.d.ts} +1 -2
  54. package/dist/runtime/{types-DeCCyqLU-BIm7rU-0.d.ts → types-DeCCyqLU-CHx7KFtx.d.ts} +2 -2
  55. package/package.json +8 -2
  56. package/src/cli/agent-files.ts +2 -0
  57. package/src/cli/build/asset-names.ts +190 -0
  58. package/src/cli/build/managed-client.ts +151 -81
  59. package/src/cli/build/managed-server.ts +4 -4
  60. package/src/cli/build/managed.ts +5 -6
  61. package/src/cli/command.ts +6 -15
  62. package/src/cli/control-client.ts +7 -9
  63. package/src/cli/deploy.ts +45 -15
  64. package/src/cli/dev.ts +50 -99
  65. package/src/cli/image-assets.ts +5 -2
  66. package/src/cli/managed-client-boundaries.ts +6 -6
  67. package/src/cli/managed-dev-platform.ts +52 -66
  68. package/src/cli/managed-exports.ts +5 -66
  69. package/src/cli/new-app.ts +7 -2
  70. package/src/cli/upload-journal.ts +130 -0
  71. package/src/client/bootstrap.ts +1 -110
  72. package/src/client/errors.ts +1 -70
  73. package/src/client/files.ts +1 -233
  74. package/src/client/hooks.ts +1 -367
  75. package/src/client/id.ts +1 -263
  76. package/src/client/image.ts +1 -28
  77. package/src/client/index.ts +1 -126
  78. package/src/client/jsx-dev-runtime.ts +1 -2
  79. package/src/client/jsx-runtime.ts +1 -2
  80. package/src/client/managed-client.ts +1 -729
  81. package/src/client/managed-upgrade.ts +1 -283
  82. package/src/client/page-observers.ts +1 -77
  83. package/src/client/query.ts +1 -17
  84. package/src/client/recovery-journal.ts +1 -195
  85. package/src/client/route-boundaries.ts +1 -184
  86. package/src/client/router-history.ts +1 -152
  87. package/src/client/router-store.ts +1 -644
  88. package/src/client/router.ts +1 -324
  89. package/src/client/routes.ts +1 -28
  90. package/src/client/sync.ts +1 -286
  91. package/src/dev-runtime/id.ts +1 -1
  92. package/src/dev-runtime/managed-functions.ts +10 -18
  93. package/src/dev-runtime/managed-sync.ts +16 -16
  94. package/src/dev-runtime/sync.ts +6 -4
  95. package/src/internal/api.ts +1 -156
  96. package/src/internal/client.ts +1 -186
  97. package/src/internal/host.ts +1 -1
  98. package/src/internal/http-paths.ts +1 -4
  99. package/src/internal/routes.ts +1 -45
  100. package/src/internal/server.ts +1 -3
  101. package/src/internal/types.ts +1 -2
  102. package/src/server/index.ts +1 -27
  103. package/dist/cli/managed-release-WHYLZwaS.mjs +0 -10902
  104. package/dist/cli/managed-release-WHYLZwaS.mjs.map +0 -1
  105. package/dist/cli/managed-release.d.mts +0 -1
  106. package/dist/cli/managed-release.mjs +0 -14
  107. package/dist/cli/managed-release.mjs.map +0 -1
  108. package/dist/runtime/bootstrap-BISQSn_O.js.map +0 -1
  109. package/dist/runtime/descriptor-CTY4mtwS-cS43EbwS.js +0 -269
  110. package/dist/runtime/descriptor-CTY4mtwS-cS43EbwS.js.map +0 -1
  111. package/dist/runtime/id--1m0NuUL.js.map +0 -1
  112. package/dist/runtime/id-CBOt2kDo.d.ts +0 -1
  113. package/dist/runtime/identity-QjtJRxBD.d.ts +0 -2
  114. package/dist/runtime/image-Djtjy4Z8.js.map +0 -1
  115. package/dist/runtime/internal/api.js.map +0 -1
  116. package/dist/runtime/pagination-CBOt2kDo.d.ts +0 -1
  117. package/dist/runtime/router-BSBI1oN1.js.map +0 -1
  118. package/dist/runtime/routes-Ce8TVP-T.js +0 -690
  119. package/dist/runtime/routes-Ce8TVP-T.js.map +0 -1
  120. package/dist/runtime/schema-D1wOqiNH.js.map +0 -1
  121. package/dist/runtime/sync-DzUwA8W9.js.map +0 -1
  122. package/src/cli/managed-release-bin.ts +0 -13
  123. package/src/cli/managed-release.ts +0 -260
@@ -1,8 +1,9 @@
1
1
  import { a as InternalServerError, g as FileValue, i as ErrorValue } from "./id-7an3nxTu-DZJSM5xh.js";
2
2
  import "./result-BkziOG1L.js";
3
- import { t as FunctionAddress } from "./sync-D-GK2sv9.js";
3
+ import { t as FunctionAddress } from "./sync-By2hX5ev.js";
4
4
  import { Effect } from "effect";
5
- //#region src/internal/api.d.ts
5
+ //#region ../platform/dist/api-BnUKx9cj.d.ts
6
+ //#region src/versions/1/common/api.d.ts
6
7
  declare const FunctionReferenceTypeId: unique symbol;
7
8
  declare const FunctionReferenceTypesTypeId: unique symbol;
8
9
  type FunctionKind = "Mutation" | "Query";
@@ -43,4 +44,4 @@ declare const functionPathOf: <Kind extends FunctionKind, Args, Success, Failure
43
44
  declare function createApi<Modules>(): Api<Modules>;
44
45
  //#endregion
45
46
  export { functionPathOf as a, createApi as i, FunctionReference as n, MutationInput as r, Api as t };
46
- //# sourceMappingURL=api-B4fwp5a2.d.ts.map
47
+ //# sourceMappingURL=api-BnUKx9cj-D49Tf0rX.d.ts.map
@@ -0,0 +1,31 @@
1
+ import { t as FunctionAddress } from "./sync-BwgS19Xy.js";
2
+ import { Predicate } from "effect";
3
+ //#region ../platform/dist/versions/1/common/api.js
4
+ const FunctionReferenceTypeId = Symbol.for("ignotum/internal/api/FunctionReference");
5
+ const functionPathOf = (reference) => reference[FunctionReferenceTypeId];
6
+ const makeModuleReference = (moduleName) => {
7
+ const references = /* @__PURE__ */ new Map();
8
+ return new Proxy({}, { get: (_target, functionName) => {
9
+ if (!Predicate.isString(functionName)) return;
10
+ const existing = references.get(functionName);
11
+ if (existing !== void 0) return existing;
12
+ const reference = { [FunctionReferenceTypeId]: FunctionAddress.make(`api.${moduleName}.${functionName}`) };
13
+ references.set(functionName, reference);
14
+ return reference;
15
+ } });
16
+ };
17
+ function createApi() {
18
+ const modules = /* @__PURE__ */ new Map();
19
+ return new Proxy({}, { get: (_target, moduleName) => {
20
+ if (!Predicate.isString(moduleName)) return;
21
+ const existing = modules.get(moduleName);
22
+ if (existing !== void 0) return existing;
23
+ const moduleReference = makeModuleReference(moduleName);
24
+ modules.set(moduleName, moduleReference);
25
+ return moduleReference;
26
+ } });
27
+ }
28
+ //#endregion
29
+ export { functionPathOf as n, createApi as t };
30
+
31
+ //# sourceMappingURL=api-C-tltz6s.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-C-tltz6s.js","names":[],"sources":["../../../platform/dist/versions/1/common/api.js"],"sourcesContent":["import { Predicate } from \"effect\";\nimport { FunctionAddress } from \"@ignotum/contracts/runtime/sync\";\n//#region src/versions/1/common/api.ts\nconst FunctionReferenceTypeId = Symbol.for(\"ignotum/internal/api/FunctionReference\");\nconst functionPathOf = (reference) => reference[FunctionReferenceTypeId];\nconst makeModuleReference = (moduleName) => {\n\tconst references = /* @__PURE__ */ new Map();\n\treturn new Proxy({}, { get: (_target, functionName) => {\n\t\tif (!Predicate.isString(functionName)) return;\n\t\tconst existing = references.get(functionName);\n\t\tif (existing !== void 0) return existing;\n\t\tconst reference = { [FunctionReferenceTypeId]: FunctionAddress.make(`api.${moduleName}.${functionName}`) };\n\t\treferences.set(functionName, reference);\n\t\treturn reference;\n\t} });\n};\nfunction createApi() {\n\tconst modules = /* @__PURE__ */ new Map();\n\treturn new Proxy({}, { get: (_target, moduleName) => {\n\t\tif (!Predicate.isString(moduleName)) return;\n\t\tconst existing = modules.get(moduleName);\n\t\tif (existing !== void 0) return existing;\n\t\tconst moduleReference = makeModuleReference(moduleName);\n\t\tmodules.set(moduleName, moduleReference);\n\t\treturn moduleReference;\n\t} });\n}\n//#endregion\nexport { createApi, functionPathOf };\n\n//# sourceMappingURL=api.js.map"],"mappings":";;;AAGA,MAAM,0BAA0B,OAAO,IAAI,wCAAwC;AACnF,MAAM,kBAAkB,cAAc,UAAU;AAChD,MAAM,uBAAuB,eAAe;CAC3C,MAAM,6BAA6B,IAAI,IAAI;CAC3C,OAAO,IAAI,MAAM,CAAC,GAAG,EAAE,MAAM,SAAS,iBAAiB;EACtD,IAAI,CAAC,UAAU,SAAS,YAAY,GAAG;EACvC,MAAM,WAAW,WAAW,IAAI,YAAY;EAC5C,IAAI,aAAa,KAAK,GAAG,OAAO;EAChC,MAAM,YAAY,GAAG,0BAA0B,gBAAgB,KAAK,OAAO,WAAW,GAAG,cAAc,EAAE;EACzG,WAAW,IAAI,cAAc,SAAS;EACtC,OAAO;CACR,EAAE,CAAC;AACJ;AACA,SAAS,YAAY;CACpB,MAAM,0BAA0B,IAAI,IAAI;CACxC,OAAO,IAAI,MAAM,CAAC,GAAG,EAAE,MAAM,SAAS,eAAe;EACpD,IAAI,CAAC,UAAU,SAAS,UAAU,GAAG;EACrC,MAAM,WAAW,QAAQ,IAAI,UAAU;EACvC,IAAI,aAAa,KAAK,GAAG,OAAO;EAChC,MAAM,kBAAkB,oBAAoB,UAAU;EACtD,QAAQ,IAAI,YAAY,eAAe;EACvC,OAAO;CACR,EAAE,CAAC;AACJ"}
@@ -0,0 +1,42 @@
1
+ import { Schema } from "effect";
2
+ //#region ../contracts/dist/runtime/id.js
3
+ const IdAlphabet = "0123456789abcdefghijklmnopqrstuvwxyz";
4
+ const IdPrefix = Schema.String.check(Schema.isPattern(/^[a-z]+$/));
5
+ const IdPayloadPattern = /^[0-9a-z]{24}$/;
6
+ const withPrefix = (definition, idPrefix) => Object.assign(definition, { idPrefix });
7
+ const defineId = (prefix, brand) => {
8
+ const idPrefix = Schema.decodeSync(IdPrefix)(prefix);
9
+ return withPrefix(Schema.String.check(Schema.isPattern(new RegExp(`^${idPrefix}_[0-9a-z]{24}$`))).pipe(Schema.brand(brand)), idPrefix);
10
+ };
11
+ const GeneratedId = withPrefix(Schema.String.check(Schema.isPattern(IdPayloadPattern)).pipe(Schema.brand("ignotum/id")), void 0);
12
+ const AppId = defineId("app", "ignotum/hosted/AppId");
13
+ const VersionId = defineId("dep", "ignotum/hosted/VersionId");
14
+ defineId("team", "ignotum/hosted/TeamId");
15
+ const TableId = defineId("table", "ignotum/runtime/TableId");
16
+ defineId("prn", "ignotum/control/PlatformPrincipalId");
17
+ defineId("ses", "ignotum/auth/SessionId");
18
+ defineId("acct", "ignotum/auth/AccountId");
19
+ defineId("ver", "ignotum/auth/VerificationId");
20
+ defineId("mbr", "ignotum/auth/MemberId");
21
+ defineId("invt", "ignotum/auth/InvitationId");
22
+ defineId("dvc", "ignotum/auth/DeviceCodeId");
23
+ defineId("auth", "ignotum/auth/InternalId");
24
+ const InvocationId = defineId("inv", "ignotum/sync/InvocationId");
25
+ const SubscriptionId = defineId("sub", "ignotum/sync/SubscriptionId");
26
+ defineId("conn", "ignotum/gateway/ConnectionId");
27
+ defineId("nonce", "ignotum/runtime/RequestNonce");
28
+ const RequestId = defineId("req", "ignotum/runtime/RequestId");
29
+ defineId("lock", "ignotum/dev/DatabaseLockId");
30
+ defineId("iid", "ignotum/id/AppUserId");
31
+ defineId("idu", "ignotum/id/GlobalUserId");
32
+ defineId("ids", "ignotum/id/SessionId");
33
+ defineId("idr", "ignotum/id/RequestId");
34
+ const SessionEpoch = defineId("epoch", "ignotum/id/SessionEpoch");
35
+ //#endregion
36
+ //#region ../contracts/dist/artifact.js
37
+ const ArtifactPath = Schema.String.check(Schema.isPattern(/^(?!\/)(?![A-Za-z]:\/)(?!.*(?:^|\/)\.\.(?:\/|$))(?!.*(?:^|\/)\.(?:\/|$))(?!.*\/\/)[^\\\0]+$/)).pipe(Schema.brand("ignotum/version/ArtifactPath"));
38
+ const Sha256 = Schema.String.check(Schema.isPattern(/^[0-9a-f]{64}$/)).pipe(Schema.brand("ignotum/version/Sha256"));
39
+ //#endregion
40
+ export { IdAlphabet as a, SessionEpoch as c, VersionId as d, defineId as f, GeneratedId as i, SubscriptionId as l, Sha256 as n, InvocationId as o, AppId as r, RequestId as s, ArtifactPath as t, TableId as u };
41
+
42
+ //# sourceMappingURL=artifact-BB5qzoa6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact-BB5qzoa6.js","names":[],"sources":["../../../contracts/dist/runtime/id.js","../../../contracts/dist/artifact.js"],"sourcesContent":["import { Schema } from \"effect\";\n//#region src/runtime/id.ts\nconst IdAlphabet = \"0123456789abcdefghijklmnopqrstuvwxyz\";\nconst IdLength = 24;\nconst IdPrefix = Schema.String.check(Schema.isPattern(/^[a-z]+$/));\nconst IdPayloadPattern = /^[0-9a-z]{24}$/;\nconst withPrefix = (definition, idPrefix) => Object.assign(definition, { idPrefix });\nconst defineId = (prefix, brand) => {\n\tconst idPrefix = Schema.decodeSync(IdPrefix)(prefix);\n\treturn withPrefix(Schema.String.check(Schema.isPattern(new RegExp(`^${idPrefix}_[0-9a-z]{24}$`))).pipe(Schema.brand(brand)), idPrefix);\n};\nconst GeneratedId = withPrefix(Schema.String.check(Schema.isPattern(IdPayloadPattern)).pipe(Schema.brand(\"ignotum/id\")), void 0);\nconst AppId = defineId(\"app\", \"ignotum/hosted/AppId\");\nconst VersionId = defineId(\"dep\", \"ignotum/hosted/VersionId\");\nconst TeamId = defineId(\"team\", \"ignotum/hosted/TeamId\");\nconst TableId = defineId(\"table\", \"ignotum/runtime/TableId\");\nconst PlatformPrincipalId = defineId(\"prn\", \"ignotum/control/PlatformPrincipalId\");\nconst AuthSessionId = defineId(\"ses\", \"ignotum/auth/SessionId\");\nconst AuthAccountId = defineId(\"acct\", \"ignotum/auth/AccountId\");\nconst AuthVerificationId = defineId(\"ver\", \"ignotum/auth/VerificationId\");\nconst AuthMemberId = defineId(\"mbr\", \"ignotum/auth/MemberId\");\nconst AuthInvitationId = defineId(\"invt\", \"ignotum/auth/InvitationId\");\nconst AuthDeviceCodeId = defineId(\"dvc\", \"ignotum/auth/DeviceCodeId\");\nconst AuthInternalId = defineId(\"auth\", \"ignotum/auth/InternalId\");\nconst InvocationId = defineId(\"inv\", \"ignotum/sync/InvocationId\");\nconst SubscriptionId = defineId(\"sub\", \"ignotum/sync/SubscriptionId\");\nconst ConnectionId = defineId(\"conn\", \"ignotum/gateway/ConnectionId\");\nconst RuntimeRequestNonce = defineId(\"nonce\", \"ignotum/runtime/RequestNonce\");\nconst RequestId = defineId(\"req\", \"ignotum/runtime/RequestId\");\nconst DevDatabaseLockId = defineId(\"lock\", \"ignotum/dev/DatabaseLockId\");\nconst IdUserId = defineId(\"iid\", \"ignotum/id/AppUserId\");\nconst IdGlobalUserId = defineId(\"idu\", \"ignotum/id/GlobalUserId\");\nconst IdSessionId = defineId(\"ids\", \"ignotum/id/SessionId\");\nconst IdRequestId = defineId(\"idr\", \"ignotum/id/RequestId\");\nconst SessionEpoch = defineId(\"epoch\", \"ignotum/id/SessionEpoch\");\n//#endregion\nexport { AppId, AuthAccountId, AuthDeviceCodeId, AuthInternalId, AuthInvitationId, AuthMemberId, AuthSessionId, AuthVerificationId, ConnectionId, DevDatabaseLockId, GeneratedId, IdAlphabet, IdGlobalUserId, IdLength, IdRequestId, IdSessionId, IdUserId, InvocationId, PlatformPrincipalId, RequestId, RuntimeRequestNonce, SessionEpoch, SubscriptionId, TableId, TeamId, VersionId, defineId };\n\n//# sourceMappingURL=id.js.map","import { Schema } from \"effect\";\n//#region src/artifact.ts\nconst ArtifactPath = Schema.String.check(Schema.isPattern(/^(?!\\/)(?![A-Za-z]:\\/)(?!.*(?:^|\\/)\\.\\.(?:\\/|$))(?!.*(?:^|\\/)\\.(?:\\/|$))(?!.*\\/\\/)[^\\\\\\0]+$/)).pipe(Schema.brand(\"ignotum/version/ArtifactPath\"));\nconst Sha256 = Schema.String.check(Schema.isPattern(/^[0-9a-f]{64}$/)).pipe(Schema.brand(\"ignotum/version/Sha256\"));\n//#endregion\nexport { ArtifactPath, Sha256 };\n\n//# sourceMappingURL=artifact.js.map"],"mappings":";;AAEA,MAAM,aAAa;AAEnB,MAAM,WAAW,OAAO,OAAO,MAAM,OAAO,UAAU,UAAU,CAAC;AACjE,MAAM,mBAAmB;AACzB,MAAM,cAAc,YAAY,aAAa,OAAO,OAAO,YAAY,EAAE,SAAS,CAAC;AACnF,MAAM,YAAY,QAAQ,UAAU;CACnC,MAAM,WAAW,OAAO,WAAW,QAAQ,CAAC,CAAC,MAAM;CACnD,OAAO,WAAW,OAAO,OAAO,MAAM,OAAO,UAAU,IAAI,OAAO,IAAI,SAAS,eAAe,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,MAAM,KAAK,CAAC,GAAG,QAAQ;AACtI;AACA,MAAM,cAAc,WAAW,OAAO,OAAO,MAAM,OAAO,UAAU,gBAAgB,CAAC,CAAC,CAAC,KAAK,OAAO,MAAM,YAAY,CAAC,GAAG,KAAK,CAAC;AAC/H,MAAM,QAAQ,SAAS,OAAO,sBAAsB;AACpD,MAAM,YAAY,SAAS,OAAO,0BAA0B;AAC7C,SAAS,QAAQ,uBAAuB;AACvD,MAAM,UAAU,SAAS,SAAS,yBAAyB;AAC/B,SAAS,OAAO,qCAAqC;AAC3D,SAAS,OAAO,wBAAwB;AACxC,SAAS,QAAQ,wBAAwB;AACpC,SAAS,OAAO,6BAA6B;AACnD,SAAS,OAAO,uBAAuB;AACnC,SAAS,QAAQ,2BAA2B;AAC5C,SAAS,OAAO,2BAA2B;AAC7C,SAAS,QAAQ,yBAAyB;AACjE,MAAM,eAAe,SAAS,OAAO,2BAA2B;AAChE,MAAM,iBAAiB,SAAS,OAAO,6BAA6B;AAC/C,SAAS,QAAQ,8BAA8B;AACxC,SAAS,SAAS,8BAA8B;AAC5E,MAAM,YAAY,SAAS,OAAO,2BAA2B;AACnC,SAAS,QAAQ,4BAA4B;AACtD,SAAS,OAAO,sBAAsB;AAChC,SAAS,OAAO,yBAAyB;AAC5C,SAAS,OAAO,sBAAsB;AACtC,SAAS,OAAO,sBAAsB;AAC1D,MAAM,eAAe,SAAS,SAAS,yBAAyB;;;AChChE,MAAM,eAAe,OAAO,OAAO,MAAM,OAAO,UAAU,6FAA6F,CAAC,CAAC,CAAC,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAC3M,MAAM,SAAS,OAAO,OAAO,MAAM,OAAO,UAAU,gBAAgB,CAAC,CAAC,CAAC,KAAK,OAAO,MAAM,wBAAwB,CAAC"}
@@ -1,9 +1,45 @@
1
- import { a as Id } from "./types-DeCCyqLU-BIm7rU-0.js";
2
- import "./index-D4seNHlX.js";
3
- import "./identity-QjtJRxBD.js";
1
+ import { a as Id } from "./types-DeCCyqLU-CHx7KFtx.js";
2
+ import "./index-Biaw5vdF.js";
4
3
  import { Effect, Schema } from "effect";
5
4
  import { ComponentChildren, ComponentType, JSX } from "preact";
6
- //#region ../contracts/dist/app-definition.d.ts
5
+ //#region ../platform/dist/image-RbN1SSCI.d.ts
6
+ //#region src/versions/1/browser/image.d.ts
7
+ declare const ImageSourceTypeId: unique symbol;
8
+ /** A compiler-provided reference to an imported image. */
9
+ interface ImageSource {
10
+ readonly type: "ImageSource";
11
+ readonly url: string;
12
+ readonly [ImageSourceTypeId]: true;
13
+ }
14
+ type ImageProps = Omit<JSX.ImgHTMLAttributes<HTMLImageElement>, "alt" | "src" | "srcSet" | "srcset"> & {
15
+ readonly src: ImageSource;
16
+ readonly alt: string;
17
+ };
18
+ /** Renders an imported image. */
19
+ declare const Image: ({ src, alt, ...attributes }: ImageProps) => JSX.Element;
20
+ /** @internal Creates an image reference from a compiler-resolved URL. */
21
+ declare const createImageSource: (url: string) => ImageSource;
22
+ //#endregion
23
+ //#region ../contracts/dist/deployment.d.ts
24
+ declare const ServingSelection: Schema.Struct<{
25
+ formatVersion: Schema.Literal<1>;
26
+ appId: Schema.brand<Schema.String, "ignotum/hosted/AppId"> & {
27
+ readonly idPrefix: string;
28
+ };
29
+ versionNumber: Schema.brand<Schema.Int, "ignotum/hosted/VersionNumber">;
30
+ platform: Schema.Struct<{
31
+ major: Schema.Int;
32
+ minor: Schema.Int;
33
+ }>;
34
+ activationGeneration: Schema.brand<Schema.Natural, "ignotum/hosted/ActivationGeneration">;
35
+ deploymentEpoch: Schema.Int;
36
+ dataHistoryId: Schema.brand<Schema.String, "ignotum/hosted/DataHistoryId"> & {
37
+ readonly idPrefix: string;
38
+ };
39
+ }>;
40
+ type ServingSelection = typeof ServingSelection.Type;
41
+ //#endregion
42
+ //#region ../contracts/dist/routes-DMy-zbBX.d.ts
7
43
  declare const AppModuleId: Schema.brand<Schema.String, "ignotum/app-definition/AppModuleId">;
8
44
  type AppModuleId = typeof AppModuleId.Type;
9
45
  declare const UrlValueDescriptor: Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
@@ -314,7 +350,7 @@ declare const RouteDefinition: Schema.Struct<{
314
350
  }>;
315
351
  }>;
316
352
  type RouteDefinition = typeof RouteDefinition.Type;
317
- declare const LayoutDefinition$1: Schema.Struct<{
353
+ declare const LayoutDefinition: Schema.Struct<{
318
354
  id: Schema.brand<Schema.String, "ignotum/app-definition/LayoutId">;
319
355
  scope: Schema.String;
320
356
  parent: Schema.optional<Schema.brand<Schema.String, "ignotum/app-definition/LayoutId">>;
@@ -336,46 +372,10 @@ declare const LayoutDefinition$1: Schema.Struct<{
336
372
  notFound: Schema.Boolean;
337
373
  }>;
338
374
  }>;
339
- type LayoutDefinition$1 = typeof LayoutDefinition$1.Type;
340
- //#endregion
341
- //#region src/client/image.d.ts
342
- declare const ImageSourceTypeId: unique symbol;
343
- /** A compiler-provided reference to an imported image. */
344
- interface ImageSource {
345
- readonly type: "ImageSource";
346
- readonly url: string;
347
- readonly [ImageSourceTypeId]: true;
348
- }
349
- type ImageProps = Omit<JSX.ImgHTMLAttributes<HTMLImageElement>, "alt" | "src" | "srcSet" | "srcset"> & {
350
- readonly src: ImageSource;
351
- readonly alt: string;
352
- };
353
- /** Renders an imported image. */
354
- declare const Image: ({ src, alt, ...attributes }: ImageProps) => JSX.Element;
355
- /** @internal Creates an image reference from a compiler-resolved URL. */
356
- declare const createImageSource: (url: string) => ImageSource;
357
- //#endregion
358
- //#region ../contracts/dist/platform.d.ts
359
- declare const ExecutionSelection: Schema.Struct<{
360
- formatVersion: Schema.Literal<1>;
361
- appId: Schema.brand<Schema.String, "ignotum/hosted/AppId"> & {
362
- readonly idPrefix: string;
363
- };
364
- versionId: Schema.brand<Schema.String, "ignotum/hosted/VersionId"> & {
365
- readonly idPrefix: string;
366
- };
367
- activationGeneration: Schema.brand<Schema.Natural, "ignotum/hosted/ActivationGeneration">;
368
- platformReleaseId: Schema.brand<Schema.String, "ignotum/platform/PlatformReleaseId"> & {
369
- readonly idPrefix: string;
370
- };
371
- platformGeneration: Schema.brand<Schema.Natural, "ignotum/platform/PlatformGeneration">;
372
- dataHistoryId: Schema.brand<Schema.String, "ignotum/hosted/DataHistoryId"> & {
373
- readonly idPrefix: string;
374
- };
375
- }>;
376
- type ExecutionSelection = typeof ExecutionSelection.Type;
375
+ type LayoutDefinition = typeof LayoutDefinition.Type;
377
376
  //#endregion
378
- //#region src/client/router-store.d.ts
377
+ //#region ../platform/dist/bootstrap-DjTwGJao.d.ts
378
+ //#region src/versions/1/browser/router-store.d.ts
379
379
  interface RegisteredClientModule {
380
380
  readonly load: () => Promise<object>;
381
381
  readonly styles?: readonly string[];
@@ -384,7 +384,7 @@ interface RegisteredClientModule {
384
384
  interface ClientRegistration {
385
385
  readonly applicationName: string;
386
386
  readonly routes: readonly RouteDefinition[];
387
- readonly layouts: readonly LayoutDefinition$1[];
387
+ readonly layouts: readonly LayoutDefinition[];
388
388
  readonly modules: ReadonlyMap<AppModuleId, RegisteredClientModule>;
389
389
  readonly styles?: readonly string[];
390
390
  }
@@ -408,11 +408,11 @@ interface NavigationOptions {
408
408
  readonly scroll?: "auto" | "preserve";
409
409
  }
410
410
  //#endregion
411
- //#region src/internal/client.d.ts
411
+ //#region src/versions/1/browser/internal/client.d.ts
412
412
  declare const UrlValueTypeId: unique symbol;
413
413
  type Scalar = string | number | boolean;
414
414
  type Mode = "required" | "optional" | "default";
415
- interface UrlValue<Value, Kind extends "scalar" | "array" = "scalar" | "array", Presence extends Mode = Mode> {
415
+ interface UrlValue$1<Value, Kind extends "scalar" | "array" = "scalar" | "array", Presence extends Mode = Mode> {
416
416
  readonly descriptor: UrlValueDescriptor;
417
417
  readonly [UrlValueTypeId]?: {
418
418
  readonly value: Value;
@@ -420,14 +420,14 @@ interface UrlValue<Value, Kind extends "scalar" | "array" = "scalar" | "array",
420
420
  readonly presence: Presence;
421
421
  };
422
422
  }
423
- interface RequiredUrlValue<Value, Kind extends "scalar" | "array"> extends UrlValue<Value, Kind, "required"> {
424
- default(value: Value): UrlValue<Value, Kind, "default">;
423
+ interface RequiredUrlValue<Value, Kind extends "scalar" | "array"> extends UrlValue$1<Value, Kind, "required"> {
424
+ default(value: Value): UrlValue$1<Value, Kind, "default">;
425
425
  }
426
- type UrlFields = Readonly<Record<string, UrlValue<unknown>>>;
427
- type PathFields = Readonly<Record<string, UrlValue<unknown, "scalar", "required"> | UrlValue<readonly string[], "array", "required">>>;
428
- type ValueOf<Value> = Value extends UrlValue<infer Decoded> ? Decoded : never;
429
- type OptionalKeys<Fields extends UrlFields> = { [Key in keyof Fields]: Fields[Key] extends UrlValue<unknown, "scalar" | "array", "optional" | "default"> ? Key : never; }[keyof Fields];
430
- type DecodedFields<Fields extends UrlFields> = { readonly [Key in keyof Fields]: Fields[Key] extends UrlValue<unknown, "scalar" | "array", "optional"> ? ValueOf<Fields[Key]> | undefined : ValueOf<Fields[Key]>; };
426
+ type UrlFields = Readonly<Record<string, UrlValue$1<unknown>>>;
427
+ type PathFields = Readonly<Record<string, UrlValue$1<unknown, "scalar", "required"> | UrlValue$1<readonly string[], "array", "required">>>;
428
+ type ValueOf<Value> = Value extends UrlValue$1<infer Decoded> ? Decoded : never;
429
+ type OptionalKeys<Fields extends UrlFields> = { [Key in keyof Fields]: Fields[Key] extends UrlValue$1<unknown, "scalar" | "array", "optional" | "default"> ? Key : never; }[keyof Fields];
430
+ type DecodedFields<Fields extends UrlFields> = { readonly [Key in keyof Fields]: Fields[Key] extends UrlValue$1<unknown, "scalar" | "array", "optional"> ? ValueOf<Fields[Key]> | undefined : ValueOf<Fields[Key]>; };
431
431
  type InputFields<Fields extends UrlFields> = { readonly [Key in Exclude<keyof Fields, OptionalKeys<Fields>>]: ValueOf<Fields[Key]>; } & { readonly [Key in OptionalKeys<Fields>]?: ValueOf<Fields[Key]> | undefined; };
432
432
  interface UrlValues<DataModel> {
433
433
  string(): RequiredUrlValue<string, "scalar">;
@@ -437,7 +437,7 @@ interface UrlValues<DataModel> {
437
437
  boolean(): RequiredUrlValue<boolean, "scalar">;
438
438
  literal<const Value extends Scalar>(value: Value): RequiredUrlValue<Value, "scalar">;
439
439
  literals<const Values extends readonly [Scalar, ...Scalar[]]>(...values: Values): RequiredUrlValue<Values[number], "scalar">;
440
- optional<Value, Kind extends "scalar" | "array">(value: RequiredUrlValue<Value, Kind>): UrlValue<Value, Kind, "optional">;
440
+ optional<Value, Kind extends "scalar" | "array">(value: RequiredUrlValue<Value, Kind>): UrlValue$1<Value, Kind, "optional">;
441
441
  array<Value>(value: RequiredUrlValue<Value, "scalar">): RequiredUrlValue<readonly Value[], "array">;
442
442
  }
443
443
  interface RouteErrorProps {
@@ -462,7 +462,7 @@ interface PageDefinition<Params extends PathFields | undefined = PathFields | un
462
462
  readonly error?: ComponentType<RouteErrorProps>;
463
463
  readonly invalid?: ComponentType<InvalidRouteProps>;
464
464
  }
465
- interface LayoutDefinition extends LayoutMetadata {
465
+ interface LayoutDefinition$1 extends LayoutMetadata {
466
466
  readonly component: ComponentType<{
467
467
  readonly children: ComponentChildren;
468
468
  }>;
@@ -472,13 +472,13 @@ interface LayoutDefinition extends LayoutMetadata {
472
472
  readonly location: RouteLocation;
473
473
  }>;
474
474
  }
475
- declare const bindSchema: <DataModel>() => {
475
+ declare const bindSchema$1: <DataModel>() => {
476
476
  route: <const Params extends PathFields | undefined = undefined, const Search extends UrlFields = {}>(definition: PageDefinition<Params, Search>) => PageDefinition<Params, Search>;
477
- layout: (definition: LayoutDefinition) => LayoutDefinition;
477
+ layout: (definition: LayoutDefinition$1) => LayoutDefinition$1;
478
478
  values: UrlValues<DataModel>;
479
479
  };
480
480
  //#endregion
481
- //#region src/internal/routes.d.ts
481
+ //#region src/versions/1/browser/internal/routes.d.ts
482
482
  declare const RouteReferenceTypeId: unique symbol;
483
483
  declare const RouteReferenceTypesTypeId: unique symbol;
484
484
  interface RouteReference<Params = unknown, Search = unknown, SearchInputs = unknown> {
@@ -503,7 +503,7 @@ type SearchOf<Page> = Page extends {
503
503
  declare const createRouteReference: <Page, InferredParams>(definition: typeof RouteDefinition.Encoded) => RouteReference<ParamsOf<Page, InferredParams>, DecodedFields<SearchOf<Page>>, InputFields<SearchOf<Page>>>;
504
504
  declare const getRouteDefinition: (reference: RouteReference) => RouteDefinition;
505
505
  //#endregion
506
- //#region src/client/routes.d.ts
506
+ //#region src/versions/1/browser/routes.d.ts
507
507
  type Empty = Readonly<Record<string, never>>;
508
508
  type Group<Name extends string, Fields> = keyof Fields extends never ? { readonly [Key in Name]?: Empty; } : {} extends Fields ? { readonly [Key in Name]?: Fields; } : { readonly [Key in Name]: Fields; };
509
509
  /** Decoded values delivered to a page component. */
@@ -533,13 +533,13 @@ type NavigationResult = {
533
533
  readonly error: unknown;
534
534
  };
535
535
  //#endregion
536
- //#region src/client/bootstrap.d.ts
536
+ //#region src/versions/1/browser/bootstrap.d.ts
537
537
  /** The platform owns mounting. Generated registrations contain no Preact render/bootstrap code. */
538
- declare const mountClient: (registration: ClientRegistration, selection: ExecutionSelection) => {
538
+ declare const mountClient: (registration: ClientRegistration, selection: ServingSelection) => {
539
539
  ready: Promise<NavigationResult>;
540
540
  upgrade: () => Promise<void>;
541
541
  dispose: () => void;
542
542
  };
543
543
  //#endregion
544
- export { ImageSource as A, BlockerState as C, RegisteredClientModule as D, NavigationState as E, Image as O, bindSchema as S, NavigationOptions as T, RequiredUrlValue as _, RouteMatch as a, UrlValue as b, RouteReference as c, DecodedFields as d, InputFields as f, PathFields as g, PageDefinition as h, RouteLocation as i, createImageSource as j, ImageProps as k, createRouteReference as l, LayoutDefinition as m, NavigationResult as n, RouteProps as o, InvalidRouteProps as p, RouteInputs as r, ReferenceTypes as s, mountClient as t, getRouteDefinition as u, RouteErrorProps as v, ClientRegistration as w, UrlValues as x, UrlFields as y };
545
- //# sourceMappingURL=bootstrap-BTFScKAc.d.ts.map
544
+ export { ImageSource as A, UrlValues as C, mountClient as D, getRouteDefinition as E, Image as O, UrlValue$1 as S, createRouteReference as T, RouteLocation as _, InvalidRouteProps as a, RouteReference as b, NavigationResult as c, PathFields as d, ReferenceTypes as f, RouteInputs as g, RouteErrorProps as h, InputFields as i, createImageSource as j, ImageProps as k, NavigationState as l, RequiredUrlValue as m, ClientRegistration as n, LayoutDefinition$1 as o, RegisteredClientModule as p, DecodedFields as r, NavigationOptions as s, BlockerState as t, PageDefinition as u, RouteMatch as v, bindSchema$1 as w, UrlFields as x, RouteProps as y };
545
+ //# sourceMappingURL=bootstrap-DjTwGJao-DBx5zdFI.d.ts.map
@@ -1,6 +1,6 @@
1
- import { m as upgrade, p as initial } from "./id--1m0NuUL.js";
2
- import { _ as matchPattern, f as useRouterSnapshot, g as matchDirectory, h as compilePatterns, i as RouterContext, m as parseLocation, p as decodeRouteInputs, y as mountManagedSync } from "./router-BSBI1oN1.js";
3
- import { i as LayoutMetadata, l as appDefinitionLimits, o as StaticMetadata, u as ExecutionSelection } from "./routes-Ce8TVP-T.js";
1
+ import { T as upgrade, w as initial, x as ServingSelection } from "./id-BrEnxY-r.js";
2
+ import { _ as matchPattern, f as useRouterSnapshot, g as matchDirectory, h as compilePatterns, i as RouterContext, m as parseLocation, p as decodeRouteInputs, y as mountManagedSync } from "./router-C1eC9yy5.js";
3
+ import { i as LayoutMetadata, l as appDefinitionLimits, o as StaticMetadata } from "./routes-DnU39R7c.js";
4
4
  import { Deferred, Effect, Predicate, Schema } from "effect";
5
5
  import { useErrorBoundary, useLayoutEffect, useState } from "preact/hooks";
6
6
  import { Fragment, createElement, render } from "preact";
@@ -104,7 +104,7 @@ const matchLocation = Effect.fn("Routing.matchLocation")(function* (patterns, in
104
104
  };
105
105
  });
106
106
  //#endregion
107
- //#region src/client/router-history.ts
107
+ //#region ../platform/dist/versions/1/browser/router-history.js
108
108
  const HistoryEntryV1 = Schema.Struct({
109
109
  formatVersion: Schema.Literal(1),
110
110
  key: Schema.String
@@ -259,7 +259,7 @@ var RouterHistory = class {
259
259
  }
260
260
  };
261
261
  //#endregion
262
- //#region src/client/router-store.ts
262
+ //#region ../platform/dist/versions/1/browser/router-store.js
263
263
  const ErrorComponent = Schema.declare((value) => Predicate.isFunction(value));
264
264
  const InvalidComponent = Schema.declare((value) => Predicate.isFunction(value));
265
265
  const NotFoundComponent = Schema.declare((value) => Predicate.isFunction(value));
@@ -323,7 +323,7 @@ var RouterStore = class {
323
323
  constructor(registration, selection, browser) {
324
324
  this.registration = registration;
325
325
  this.browser = browser;
326
- this.selection = Schema.decodeSync(ExecutionSelection)(selection);
326
+ this.selection = Schema.decodeSync(ServingSelection)(selection);
327
327
  this.patterns = Effect.runSync(compilePatterns(registration.routes, registration.layouts));
328
328
  for (const reference of [...registration.routes.map((route) => route.page), ...registration.layouts.map((layout) => layout.module)]) if (!registration.modules.has(reference.module)) throw new Error(`Client module '${reference.module}' is missing from registration.`);
329
329
  }
@@ -726,7 +726,7 @@ var RouterStore = class {
726
726
  }
727
727
  };
728
728
  //#endregion
729
- //#region src/client/route-boundaries.ts
729
+ //#region ../platform/dist/versions/1/browser/route-boundaries.js
730
730
  const DefaultError = ({ error, retry }) => createElement("div", { role: "alert" }, error instanceof Error ? error.message : "This page could not load or render. ", createElement("button", { onClick: retry }, "Retry"));
731
731
  const Boundary = ({ children, component, branch, router, onRetry }) => {
732
732
  const [failure, setFailure] = useState();
@@ -847,7 +847,7 @@ const LoadFailure = ({ failure, router, layouts }) => {
847
847
  }));
848
848
  };
849
849
  //#endregion
850
- //#region src/client/bootstrap.ts
850
+ //#region ../platform/dist/versions/1/browser/bootstrap.js
851
851
  const RouterView = ({ router }) => {
852
852
  const snapshot = useRouterSnapshot(router);
853
853
  useLayoutEffect(() => {
@@ -913,4 +913,4 @@ const mountClient = (registration, selection) => {
913
913
  //#endregion
914
914
  export { mountClient as t };
915
915
 
916
- //# sourceMappingURL=bootstrap-BISQSn_O.js.map
916
+ //# sourceMappingURL=bootstrap-DlNIfH-r.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bootstrap-DlNIfH-r.js","names":["Versioned.upgrade","Versioned.initial"],"sources":["../../../shared/dist/routing/metadata.js","../../../shared/dist/routing.js","../../../platform/dist/versions/1/browser/router-history.js","../../../platform/dist/versions/1/browser/router-store.js","../../../platform/dist/versions/1/browser/route-boundaries.js","../../../platform/dist/versions/1/browser/bootstrap.js"],"sourcesContent":["import { Effect, Schema } from \"effect\";\nimport { LayoutMetadata, StaticMetadata, appDefinitionLimits } from \"@ignotum/contracts/routes\";\n//#region src/routing/metadata.ts\nconst MetadataInput = Schema.Struct({\n\tapplicationName: Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(256)),\n\tlayouts: Schema.Array(LayoutMetadata).check(Schema.isMaxLength(appDefinitionLimits.layouts)),\n\tpage: Schema.optional(StaticMetadata),\n\toutcome: Schema.Literals([\n\t\t\"Matched\",\n\t\t\"Invalid\",\n\t\t\"NotFound\"\n\t])\n}).annotate({ parseOptions: { onExcessProperty: \"error\" } });\nvar InvalidMetadata = class extends Schema.TaggedError()(\"InvalidMetadata\", { message: Schema.String }) {};\n/**\n* Layouts run from outermost to nearest. Values remain plain text: document writers must escape\n* HTML text and attributes, and browser writers must use textContent and setAttribute.\n* `remove` names managed tags absent from this result, including after navigation.\n*/\nconst resolveMetadata = Effect.fn(\"Routing.resolveMetadata\")(function* (input) {\n\tconst { applicationName, layouts, page, outcome } = yield* Schema.decodeEffect(MetadataInput)(input).pipe(Effect.mapError(() => InvalidMetadata.make({ message: \"Static metadata is invalid.\" })));\n\tlet title = applicationName;\n\tlet template;\n\tlet description;\n\tlet robots;\n\tfor (const layout of layouts) {\n\t\ttitle = layout.title ?? title;\n\t\ttemplate = layout.titleTemplate ?? template;\n\t\tdescription = layout.meta?.description ?? description;\n\t\trobots = layout.meta?.robots ?? robots;\n\t}\n\tconst matchedPage = outcome === \"NotFound\" ? void 0 : page;\n\tconst pageTitle = matchedPage?.title;\n\tif (pageTitle !== void 0) title = template === void 0 ? pageTitle : template.replace(\"%s\", () => pageTitle);\n\tdescription = matchedPage?.meta?.description ?? description;\n\trobots = outcome === \"Matched\" ? matchedPage?.meta?.robots ?? robots : \"noindex\";\n\tconst remove = [];\n\tif (description === void 0) remove.push(\"description\");\n\tif (robots === void 0) remove.push(\"robots\");\n\treturn {\n\t\ttitle,\n\t\tmeta: {\n\t\t\tdescription,\n\t\t\trobots\n\t\t},\n\t\tremove\n\t};\n});\n//#endregion\nexport { InvalidMetadata, MetadataInput, resolveMetadata };\n\n//# sourceMappingURL=metadata.js.map","import { RoutingDefinitionError, compilePatterns, matchDirectory, matchPattern, parsePattern, validateRoutePattern } from \"./routing/pattern.js\";\nimport { InvalidUrl, ParsedLocation, PartialLocation, UrlIssue, buildUrl, decodeRouteInputs, parseLocation } from \"./routing/url.js\";\nimport { InvalidMetadata, MetadataInput, resolveMetadata } from \"./routing/metadata.js\";\nimport { Effect } from \"effect\";\n//#region src/routing/index.ts\nconst reservedSegments = (segments) => segments[0] === \"_ignotum\";\n/** Accept a root-relative location before a URL parser can discard invalid dot segments. */\nconst matchLocation = Effect.fn(\"Routing.matchLocation\")(function* (patterns, input) {\n\tconst parsed = yield* parseLocation(input).pipe(Effect.result);\n\tif (parsed._tag === \"Failure\") {\n\t\tconst error = parsed.failure;\n\t\tconst partial = error.partial;\n\t\tconst segments = partial?.segments ?? [];\n\t\tconst reserved = reservedSegments(segments);\n\t\tconst branch = partial?.pathComplete ? matchPattern(patterns, segments) : matchDirectory(patterns, segments);\n\t\treturn {\n\t\t\t_tag: \"Invalid\",\n\t\t\tstatus: 400,\n\t\t\troute: !reserved && partial?.pathComplete ? branch.route : void 0,\n\t\t\tlayouts: reserved ? [] : branch.layouts,\n\t\t\treserved,\n\t\t\tlocation: void 0,\n\t\t\tissues: error.issues\n\t\t};\n\t}\n\tconst location = parsed.success;\n\tconst reserved = reservedSegments(location.segments);\n\tconst branch = matchPattern(patterns, location.segments);\n\tif (reserved || branch.route === void 0) return {\n\t\t_tag: \"NotFound\",\n\t\tstatus: 404,\n\t\tlayouts: reserved ? [] : branch.layouts,\n\t\treserved,\n\t\tlocation\n\t};\n\tconst route = branch.route;\n\tconst decoded = yield* decodeRouteInputs(route, branch.params, location.search).pipe(Effect.result);\n\tif (decoded._tag === \"Failure\") return {\n\t\t_tag: \"Invalid\",\n\t\tstatus: 400,\n\t\troute,\n\t\tlayouts: branch.layouts,\n\t\treserved: false,\n\t\tlocation,\n\t\tissues: decoded.failure.issues\n\t};\n\treturn {\n\t\t_tag: \"Matched\",\n\t\tstatus: 200,\n\t\troute,\n\t\tlayouts: branch.layouts,\n\t\treserved: false,\n\t\tlocation,\n\t\t...decoded.success\n\t};\n});\n/** Contains no URL, decoded values, or request-specific validation issues. */\nconst documentVariant = (outcome) => ({\n\toutcome: outcome._tag,\n\trouteId: outcome._tag === \"NotFound\" ? null : outcome.route?.id ?? null,\n\tlayoutIds: outcome.layouts.map((layout) => layout.id),\n\treserved: outcome.reserved\n});\nconst documentVariantKey = (outcome) => {\n\tconst variant = documentVariant(outcome);\n\treturn JSON.stringify([\n\t\tvariant.outcome,\n\t\tvariant.routeId,\n\t\tvariant.layoutIds,\n\t\tvariant.reserved\n\t]);\n};\n//#endregion\nexport { InvalidMetadata, InvalidUrl, MetadataInput, ParsedLocation, PartialLocation, RoutingDefinitionError, UrlIssue, buildUrl, compilePatterns, decodeRouteInputs, documentVariant, documentVariantKey, matchDirectory, matchLocation, matchPattern, parseLocation, parsePattern, resolveMetadata, validateRoutePattern };\n\n//# sourceMappingURL=routing.js.map","import { Deferred, Effect, Schema } from \"effect\";\nimport * as Versioned from \"@ignotum/contracts/versioned\";\n//#region src/versions/1/browser/router-history.ts\nconst HistoryEntryV1 = Schema.Struct({\n\tformatVersion: Schema.Literal(1),\n\tkey: Schema.String\n});\nconst HistoryEntryV2 = Schema.Struct({\n\tformatVersion: Schema.Literal(2),\n\tkey: Schema.String,\n\tindex: Schema.NullOr(Schema.Int)\n});\nconst HistoryEntry = Versioned.upgrade(Versioned.initial(HistoryEntryV1), HistoryEntryV2, (old) => ({\n\tformatVersion: 2,\n\tkey: old.key,\n\tindex: null\n}));\nconst HistoryState = Schema.Struct({ __ignotumRouter: HistoryEntry });\nconst StateObject = Schema.Record(Schema.String, Schema.Unknown);\nconst hrefOf = (browser) => `${browser.location.pathname}${browser.location.search}${browser.location.hash}`;\n/** Serializes router corrections to native traversal without adding duplicate entries. */\nvar RouterHistory = class {\n\tbrowser;\n\tonTraversal;\n\tcommitted;\n\tactual;\n\tpositions = /* @__PURE__ */ new Map();\n\tseeking;\n\toriginalScrollRestoration;\n\tdirection = -1;\n\tscrollPending = false;\n\texpectedKey;\n\tscroll = /* @__PURE__ */ new Map();\n\tconstructor(browser, onTraversal) {\n\t\tthis.browser = browser;\n\t\tthis.onTraversal = onTraversal;\n\t\tconst parsed = Schema.decodeUnknownOption(HistoryState)(browser.history.state);\n\t\tconst entry = parsed._tag === \"Some\" ? parsed.value.__ignotumRouter : void 0;\n\t\tthis.actual = this.committed = {\n\t\t\tkey: entry?.key ?? browser.crypto.randomUUID(),\n\t\t\tindex: entry?.index ?? 0,\n\t\t\thref: hrefOf(browser)\n\t\t};\n\t\tthis.write(this.actual, false);\n\t\tthis.originalScrollRestoration = browser.history.scrollRestoration;\n\t\tbrowser.history.scrollRestoration = \"manual\";\n\t\tbrowser.addEventListener(\"popstate\", this.onPop);\n\t\tbrowser.addEventListener(\"scroll\", this.saveScroll);\n\t}\n\twrite(position, push) {\n\t\tconst parsed = Schema.decodeUnknownOption(StateObject)(this.browser.history.state);\n\t\tconst owned = { __ignotumRouter: Schema.encodeSync(HistoryEntry)({\n\t\t\tformatVersion: 2,\n\t\t\tkey: position.key,\n\t\t\tindex: position.index\n\t\t}) };\n\t\tconst state = parsed._tag === \"Some\" ? {\n\t\t\t...parsed.value,\n\t\t\t...owned\n\t\t} : owned;\n\t\tif (push) this.browser.history.pushState(state, \"\", position.href);\n\t\telse this.browser.history.replaceState(state, \"\", position.href);\n\t\tthis.positions.set(position.key, position.index);\n\t}\n\tsaveScroll = () => {\n\t\tif (this.scrollPending) return;\n\t\tthis.scroll.set(this.committed.key, {\n\t\t\tx: this.browser.scrollX,\n\t\t\ty: this.browser.scrollY\n\t\t});\n\t};\n\tcaptureScroll() {\n\t\tthis.saveScroll();\n\t\tthis.scrollPending = true;\n\t\treturn this.scroll.get(this.committed.key) ?? {\n\t\t\tx: this.browser.scrollX,\n\t\t\ty: this.browser.scrollY\n\t\t};\n\t}\n\tfinishScroll() {\n\t\tthis.scrollPending = false;\n\t\tthis.saveScroll();\n\t}\n\trestoreSourceScroll() {\n\t\tif (!this.scrollPending) return;\n\t\tconst saved = this.scroll.get(this.committed.key);\n\t\tif (saved !== void 0) this.browser.scrollTo(saved.x, saved.y);\n\t\tthis.finishScroll();\n\t}\n\tonPop = () => {\n\t\tconst parsed = Schema.decodeUnknownOption(HistoryState)(this.browser.history.state);\n\t\tconst entry = parsed._tag === \"Some\" ? parsed.value.__ignotumRouter : void 0;\n\t\tconst key = entry?.key ?? this.browser.crypto.randomUUID();\n\t\tconst index = entry?.index ?? this.positions.get(key) ?? this.actual.index + this.direction;\n\t\tthis.actual = {\n\t\t\tkey,\n\t\t\tindex,\n\t\t\thref: hrefOf(this.browser)\n\t\t};\n\t\tthis.write(this.actual, false);\n\t\tconst expected = this.expectedKey;\n\t\tthis.expectedKey = void 0;\n\t\tconst seeking = this.seeking;\n\t\tif (seeking !== void 0 && (expected === key || seeking.position.key === key)) {\n\t\t\tthis.advanceSeek();\n\t\t\treturn;\n\t\t}\n\t\tif (seeking !== void 0) {\n\t\t\tthis.seeking = void 0;\n\t\t\tEffect.runSync(Deferred.succeed(seeking.done, false));\n\t\t}\n\t\tthis.onTraversal(this.actual);\n\t};\n\tadvanceSeek() {\n\t\tconst seeking = this.seeking;\n\t\tif (seeking === void 0 || this.expectedKey !== void 0) return;\n\t\tif (this.actual.key === seeking.position.key) {\n\t\t\tthis.seeking = void 0;\n\t\t\tEffect.runSync(Deferred.succeed(seeking.done, true));\n\t\t} else {\n\t\t\tthis.expectedKey = seeking.position.key;\n\t\t\tthis.browser.history.go(seeking.position.index - this.actual.index);\n\t\t}\n\t}\n\tseek(position) {\n\t\tif (this.seeking !== void 0) {\n\t\t\tif (this.seeking.position.key === position.key) return Effect.runPromise(Deferred.await(this.seeking.done));\n\t\t\tEffect.runSync(Deferred.succeed(this.seeking.done, false));\n\t\t}\n\t\tconst done = Deferred.makeUnsafe();\n\t\tthis.seeking = {\n\t\t\tposition,\n\t\t\tdone\n\t\t};\n\t\tthis.advanceSeek();\n\t\treturn Effect.runPromise(Deferred.await(done));\n\t}\n\tcommit(position, kind) {\n\t\tif (kind === \"push\" || kind === \"replace\") this.write(position, kind === \"push\");\n\t\tthis.actual = this.committed = position;\n\t}\n\tback = () => {\n\t\tthis.direction = -1;\n\t\tthis.browser.history.back();\n\t};\n\tforward = () => {\n\t\tthis.direction = 1;\n\t\tthis.browser.history.forward();\n\t};\n\tdispose() {\n\t\tthis.browser.removeEventListener(\"popstate\", this.onPop);\n\t\tthis.browser.removeEventListener(\"scroll\", this.saveScroll);\n\t\tthis.browser.history.scrollRestoration = this.originalScrollRestoration;\n\t\tif (this.seeking !== void 0) Effect.runSync(Deferred.succeed(this.seeking.done, false));\n\t}\n};\n//#endregion\nexport { RouterHistory };\n\n//# sourceMappingURL=router-history.js.map","import { RouterHistory } from \"./router-history.js\";\nimport { Deferred, Effect, Predicate, Schema } from \"effect\";\nimport { ServingSelection } from \"@ignotum/contracts/execution\";\nimport { compilePatterns, matchLocation, resolveMetadata } from \"@ignotum/shared/routing\";\n//#region src/versions/1/browser/router-store.ts\nconst ErrorComponent = Schema.declare((value) => Predicate.isFunction(value));\nconst InvalidComponent = Schema.declare((value) => Predicate.isFunction(value));\nconst NotFoundComponent = Schema.declare((value) => Predicate.isFunction(value));\nconst PageModule = Schema.Struct({\n\terror: Schema.optional(ErrorComponent),\n\tinvalid: Schema.optional(InvalidComponent),\n\tcomponent: Schema.declare((value) => Predicate.isFunction(value))\n});\nconst LayoutModule = Schema.Struct({\n\terror: Schema.optional(ErrorComponent),\n\tinvalid: Schema.optional(InvalidComponent),\n\tnotFound: Schema.optional(NotFoundComponent),\n\tcomponent: Schema.declare((value) => Predicate.isFunction(value))\n});\nconst ModuleExports = Schema.Record(Schema.String, Schema.Unknown);\nvar BranchLoadError = class extends Schema.TaggedError()(\"BranchLoadError\", {\n\terror: Schema.Unknown,\n\tbranch: Schema.declare((value) => Predicate.isObject(value))\n}) {};\nconst locationOf = (href, key, origin) => {\n\tconst parsed = new URL(href, origin);\n\tlet hash = parsed.hash.slice(1);\n\ttry {\n\t\thash = decodeURIComponent(hash);\n\t} catch {}\n\treturn {\n\t\tpathname: parsed.pathname,\n\t\tsearch: parsed.search,\n\t\thash,\n\t\tkey\n\t};\n};\n/** One store per mount. Load caches contain code and CSS only, never component/query state. */\nvar RouterStore = class {\n\tregistration;\n\tbrowser;\n\tselection;\n\tpatterns;\n\tlisteners = /* @__PURE__ */ new Set();\n\tmodules = /* @__PURE__ */ new Map();\n\tstyles = /* @__PURE__ */ new Map();\n\tstyleCleanups = /* @__PURE__ */ new Set();\n\tredirects = /* @__PURE__ */ new Set();\n\thistory;\n\tblockers = /* @__PURE__ */ new Set();\n\tblocked;\n\tupgrading = false;\n\tadmission;\n\tserial = 0;\n\ttransition;\n\tcommittedHref;\n\tdisposed = false;\n\tstarted = false;\n\tsnapshot = {\n\t\tlocation: void 0,\n\t\tbranch: void 0,\n\t\tnavigation: { status: \"idle\" },\n\t\tfailure: void 0,\n\t\tcommit: 0\n\t};\n\tconstructor(registration, selection, browser) {\n\t\tthis.registration = registration;\n\t\tthis.browser = browser;\n\t\tthis.selection = Schema.decodeSync(ServingSelection)(selection);\n\t\tthis.patterns = Effect.runSync(compilePatterns(registration.routes, registration.layouts));\n\t\tfor (const reference of [...registration.routes.map((route) => route.page), ...registration.layouts.map((layout) => layout.module)]) if (!registration.modules.has(reference.module)) throw new Error(`Client module '${reference.module}' is missing from registration.`);\n\t}\n\tgetSnapshot = () => this.snapshot;\n\tsubscribe = (listener) => {\n\t\tthis.listeners.add(listener);\n\t\treturn () => this.listeners.delete(listener);\n\t};\n\tupdate(snapshot) {\n\t\tthis.snapshot = snapshot;\n\t\tfor (const listener of this.listeners) listener();\n\t}\n\tstart() {\n\t\tif (this.started) throw new Error(\"The Ignotum router has already started.\");\n\t\tthis.started = true;\n\t\tthis.history = new RouterHistory(this.browser, this.onTraversal);\n\t\tthis.browser.addEventListener(\"beforeunload\", this.onBeforeUnload);\n\t\tconst position = this.history.committed;\n\t\treturn this.transitionTo(position.href, \"initial\", position.key, {}, position);\n\t}\n\tonTraversal = (position) => {\n\t\tthis.redirects.clear();\n\t\tthis.history?.seek(this.history.committed);\n\t\tthis.transitionTo(position.href, \"traverse\", position.key, {}, position);\n\t};\n\tback = () => this.history?.back();\n\tforward = () => this.history?.forward();\n\tonBeforeUnload = (event) => {\n\t\tif (this.upgrading || this.blockers.size === 0) return;\n\t\tevent.preventDefault();\n\t\tevent.returnValue = \"\";\n\t};\n\t/** Internal platform upgrade entry; route confirmation never delays this reload. */\n\tstopForUpgrade = () => {\n\t\tif (this.disposed) return;\n\t\tthis.upgrading = true;\n\t\tthis.browser.removeEventListener(\"beforeunload\", this.onBeforeUnload);\n\t\tthis.blockers.clear();\n\t\tthis.cancelPending();\n\t};\n\tupgrade = () => {\n\t\tif (this.disposed) return;\n\t\tthis.stopForUpgrade();\n\t\tthis.browser.location.reload();\n\t};\n\tsetAdmission(admission) {\n\t\tthis.admission = admission;\n\t}\n\tsetBlocker(id, when) {\n\t\tif (when) this.blockers.add(id);\n\t\telse this.blockers.delete(id);\n\t\tif (!when && this.blocked?.remaining.delete(id) === true) this.releaseBlocked();\n\t}\n\tgetBlocker(id) {\n\t\tconst blocked = this.blocked;\n\t\tconst from = this.snapshot.location;\n\t\tif (blocked === void 0 || from === void 0 || !blocked.remaining.has(id)) return { status: \"idle\" };\n\t\treturn {\n\t\t\tstatus: \"blocked\",\n\t\t\tfrom,\n\t\t\tto: blocked.transition.location,\n\t\t\tproceed: () => {\n\t\t\t\tif (this.blocked !== blocked) return;\n\t\t\t\tblocked.remaining.delete(id);\n\t\t\t\tthis.releaseBlocked();\n\t\t\t},\n\t\t\treset: () => {\n\t\t\t\tif (this.blocked !== blocked) return;\n\t\t\t\tthis.cancelPending();\n\t\t\t\tthis.update({\n\t\t\t\t\t...this.snapshot,\n\t\t\t\t\tnavigation: { status: \"idle\" }\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\t}\n\treleaseBlocked() {\n\t\tconst blocked = this.blocked;\n\t\tif (blocked === void 0) return;\n\t\tif (blocked.remaining.size === 0) {\n\t\t\tthis.blocked = void 0;\n\t\t\tthis.loadTransition(blocked.transition);\n\t\t} else this.update({ ...this.snapshot });\n\t}\n\tnavigate(href, options = {}, redirect = false) {\n\t\tif (this.disposed || this.upgrading) return Promise.resolve({ status: \"cancelled\" });\n\t\tif (!redirect) this.redirects.clear();\n\t\tif (href === this.committedHref) {\n\t\t\tthis.cancelPending();\n\t\t\tthis.update({\n\t\t\t\t...this.snapshot,\n\t\t\t\tnavigation: { status: \"idle\" },\n\t\t\t\tfailure: void 0\n\t\t\t});\n\t\t\treturn Promise.resolve({ status: \"committed\" });\n\t\t}\n\t\tif (redirect) {\n\t\t\tif (this.committedHref !== void 0) this.redirects.add(this.committedHref);\n\t\t\tif (this.redirects.has(href) || this.redirects.size >= 32) {\n\t\t\t\tconst error = /* @__PURE__ */ new Error(`Ignotum redirect loop at '${href}'.`);\n\t\t\t\tthis.cancelPending();\n\t\t\t\tthis.update({\n\t\t\t\t\t...this.snapshot,\n\t\t\t\t\tnavigation: { status: \"idle\" },\n\t\t\t\t\tfailure: {\n\t\t\t\t\t\terror,\n\t\t\t\t\t\tretry: () => {\n\t\t\t\t\t\t\tthis.redirects.clear();\n\t\t\t\t\t\t\tthis.navigate(href, options, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\treturn Promise.resolve({\n\t\t\t\t\tstatus: \"failed\",\n\t\t\t\t\terror\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tconst key = options.replace === true ? this.snapshot.location?.key ?? this.browser.crypto.randomUUID() : this.browser.crypto.randomUUID();\n\t\treturn this.transitionTo(href, options.replace === true ? \"replace\" : \"push\", key, options);\n\t}\n\tpreload = async (href) => {\n\t\tif (this.disposed || this.upgrading || this.admission !== void 0 && !await this.admission.validate()) return;\n\t\tconst outcome = Effect.runSync(matchLocation(this.patterns, href));\n\t\tawait this.loadBranch(outcome, false);\n\t};\n\tcancelPending() {\n\t\tif (this.history !== void 0) this.history.seek(this.history.committed);\n\t\tthis.blocked = void 0;\n\t\tif (this.transition !== void 0) Effect.runSync(Deferred.succeed(this.transition.completion, { status: \"cancelled\" }));\n\t\tthis.transition = void 0;\n\t}\n\ttransitionTo(href, kind, key, options = {}, historyPosition) {\n\t\tif (this.disposed || this.upgrading) return Promise.resolve({ status: \"cancelled\" });\n\t\tconst sourceScroll = this.history?.captureScroll() ?? {\n\t\t\tx: this.browser.scrollX,\n\t\t\ty: this.browser.scrollY\n\t\t};\n\t\tthis.cancelPending();\n\t\tconst location = locationOf(href, key, this.browser.location.origin);\n\t\tconst previous = this.snapshot.location;\n\t\tconst searchOnly = previous !== void 0 && previous.pathname === location.pathname && previous.hash === location.hash;\n\t\tconst completion = Deferred.makeUnsafe();\n\t\tconst position = historyPosition ?? {\n\t\t\tkey,\n\t\t\thref,\n\t\t\tindex: (this.history?.committed.index ?? 0) + (kind === \"push\" ? 1 : 0)\n\t\t};\n\t\tconst transition = {\n\t\t\tid: ++this.serial,\n\t\t\thref,\n\t\t\tlocation,\n\t\t\tkind,\n\t\t\tcompletion,\n\t\t\tposition,\n\t\t\tscroll: options.scroll ?? (searchOnly ? \"preserve\" : \"auto\"),\n\t\t\tsearchOnly,\n\t\t\tsourceScroll\n\t\t};\n\t\tthis.transition = transition;\n\t\tif (kind !== \"initial\" && this.blockers.size > 0 && this.snapshot.location !== void 0) {\n\t\t\tthis.blocked = {\n\t\t\t\ttransition,\n\t\t\t\tremaining: new Set(this.blockers)\n\t\t\t};\n\t\t\tthis.update({\n\t\t\t\t...this.snapshot,\n\t\t\t\tnavigation: { status: \"idle\" },\n\t\t\t\tfailure: void 0\n\t\t\t});\n\t\t} else this.loadTransition(transition);\n\t\treturn Effect.runPromise(Deferred.await(completion));\n\t}\n\tloadTransition(transition) {\n\t\tconst { href, location, kind } = transition;\n\t\tconst outcome = Effect.runSync(matchLocation(this.patterns, href));\n\t\tthis.update({\n\t\t\t...this.snapshot,\n\t\t\tnavigation: {\n\t\t\t\tstatus: \"loading\",\n\t\t\t\tto: location\n\t\t\t},\n\t\t\tfailure: void 0\n\t\t});\n\t\tconst load = async () => {\n\t\t\tif (this.admission !== void 0 && !await this.admission.validate()) throw new Error(\"The app must verify its current selection before navigating.\");\n\t\t\tif (this.upgrading || this.disposed) throw new Error(\"The app is updating.\");\n\t\t\treturn this.loadBranch(outcome);\n\t\t};\n\t\tload().then(async (branch) => {\n\t\t\tif (this.transition !== transition || this.disposed) return;\n\t\t\ttry {\n\t\t\t\tconst history = this.history;\n\t\t\t\tif (history !== void 0) {\n\t\t\t\t\tif (!await history.seek(history.committed) || this.transition !== transition || this.disposed) return;\n\t\t\t\t\tif (kind === \"traverse\") {\n\t\t\t\t\t\tif (!await history.seek(transition.position) || this.transition !== transition || this.disposed) return;\n\t\t\t\t\t}\n\t\t\t\t\thistory.commit(transition.position, kind);\n\t\t\t\t}\n\t\t\t\tthis.applyMetadata(outcome);\n\t\t\t\tthis.committedHref = href;\n\t\t\t\tthis.update({\n\t\t\t\t\tlocation,\n\t\t\t\t\tbranch,\n\t\t\t\t\tnavigation: { status: \"idle\" },\n\t\t\t\t\tfailure: void 0,\n\t\t\t\t\tcommit: transition.id\n\t\t\t\t});\n\t\t\t} catch (error) {\n\t\t\t\tthis.fail(transition, error);\n\t\t\t}\n\t\t}, (error) => {\n\t\t\tthis.fail(transition, error);\n\t\t\tif (!this.upgrading) this.admission?.recoverLoad();\n\t\t});\n\t}\n\t/** Called by the mounted view after Preact has committed the destination DOM. */\n\trendered(commit) {\n\t\tif (this.transition?.id !== commit || this.snapshot.commit !== commit) {\n\t\t\tif (this.snapshot.navigation.status === \"idle\" && this.blocked === void 0) this.history?.restoreSourceScroll();\n\t\t\treturn;\n\t\t}\n\t\tconst transition = this.transition;\n\t\tconst document = this.browser.document;\n\t\tif (!transition.searchOnly) {\n\t\t\tconst target = document.querySelector(\"#app main, #app [role=main]\") ?? document.getElementById(\"app\");\n\t\t\tif (target !== null) {\n\t\t\t\tif (!target.hasAttribute(\"tabindex\")) target.setAttribute(\"tabindex\", \"-1\");\n\t\t\t\ttarget.focus({ preventScroll: true });\n\t\t\t}\n\t\t}\n\t\tconst saved = this.history?.scroll.get(transition.location.key);\n\t\tif (transition.kind === \"traverse\" && saved !== void 0) this.browser.scrollTo(saved.x, saved.y);\n\t\telse if (transition.scroll === \"auto\") {\n\t\t\tconst target = transition.location.hash === \"\" ? null : document.getElementById(transition.location.hash);\n\t\t\tif (target !== null) target.scrollIntoView();\n\t\t\telse this.browser.scrollTo(0, 0);\n\t\t} else this.browser.scrollTo(transition.sourceScroll.x, transition.sourceScroll.y);\n\t\tthis.history?.finishScroll();\n\t\tEffect.runSync(Deferred.succeed(this.transition.completion, { status: \"committed\" }));\n\t\tthis.transition = void 0;\n\t}\n\tfail(transition, error) {\n\t\tif (this.transition !== transition || this.disposed) return;\n\t\tthis.transition = void 0;\n\t\tconst loadFailure = error instanceof BranchLoadError ? error : void 0;\n\t\tconst originalError = loadFailure === void 0 ? error : loadFailure.error;\n\t\tthis.update({\n\t\t\t...this.snapshot,\n\t\t\tnavigation: { status: \"idle\" },\n\t\t\tfailure: {\n\t\t\t\terror: originalError,\n\t\t\t\tbranch: transition.kind === \"initial\" ? void 0 : loadFailure?.branch,\n\t\t\t\tretry: () => {\n\t\t\t\t\tthis.transitionTo(transition.href, transition.kind, transition.location.key, { scroll: transition.scroll }, transition.position);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tEffect.runSync(Deferred.succeed(transition.completion, {\n\t\t\tstatus: \"failed\",\n\t\t\terror: originalError\n\t\t}));\n\t}\n\tloadStyle(href) {\n\t\tconst absolute = new URL(href, this.browser.location.origin).href;\n\t\tconst cached = this.styles.get(absolute);\n\t\tif (cached !== void 0) return cached;\n\t\tconst document = this.browser.document;\n\t\tconst existing = Array.from(document.querySelectorAll(\"link[rel=\\\"stylesheet\\\"]\")).find((link) => link.href === absolute);\n\t\tif (existing?.sheet !== null && existing?.sheet !== void 0) return Promise.resolve();\n\t\tconst link = existing ?? document.createElement(\"link\");\n\t\tconst promise = Effect.runPromise(Effect.callback((resume) => {\n\t\t\tconst cleanup = () => {\n\t\t\t\tlink.removeEventListener(\"load\", onLoad);\n\t\t\t\tlink.removeEventListener(\"error\", onError);\n\t\t\t\tthis.styleCleanups.delete(cancel);\n\t\t\t};\n\t\t\tconst onLoad = () => {\n\t\t\t\tcleanup();\n\t\t\t\tresume(Effect.void);\n\t\t\t};\n\t\t\tconst onError = () => {\n\t\t\t\tcleanup();\n\t\t\t\tlink.remove();\n\t\t\t\tresume(Effect.fail(/* @__PURE__ */ new Error(`Could not load route stylesheet '${href}'.`)));\n\t\t\t};\n\t\t\tconst cancel = () => {\n\t\t\t\tcleanup();\n\t\t\t\tif (existing === void 0) link.remove();\n\t\t\t\tresume(Effect.fail(/* @__PURE__ */ new Error(\"Router disposed.\")));\n\t\t\t};\n\t\t\tthis.styleCleanups.add(cancel);\n\t\t\tlink.addEventListener(\"load\", onLoad);\n\t\t\tlink.addEventListener(\"error\", onError);\n\t\t\tif (existing === void 0) {\n\t\t\t\tlink.rel = \"stylesheet\";\n\t\t\t\tlink.crossOrigin = \"anonymous\";\n\t\t\t\tlink.href = absolute;\n\t\t\t\tdocument.head.append(link);\n\t\t\t}\n\t\t\treturn Effect.sync(cleanup);\n\t\t})).catch((error) => {\n\t\t\tthis.styles.delete(absolute);\n\t\t\tthrow error;\n\t\t});\n\t\tthis.styles.set(absolute, promise);\n\t\treturn promise;\n\t}\n\tloadModule(id) {\n\t\tconst cached = this.modules.get(id);\n\t\tif (cached !== void 0) return cached;\n\t\tconst module = this.registration.modules.get(id);\n\t\tif (module === void 0) return Promise.reject(/* @__PURE__ */ new Error(`Client module '${id}' is not registered.`));\n\t\tconst loaded = Promise.resolve().then(module.load).then(Schema.decodeUnknownSync(ModuleExports)).catch((error) => {\n\t\t\tthis.modules.delete(id);\n\t\t\tthrow error;\n\t\t});\n\t\tthis.modules.set(id, loaded);\n\t\treturn loaded;\n\t}\n\tasync loadExport(reference) {\n\t\tconst exports = await this.loadModule(reference.module);\n\t\tif (!Object.hasOwn(exports, reference.exportName)) throw new Error(`Module '${reference.module}' has no '${reference.exportName}' export.`);\n\t\treturn exports[reference.exportName];\n\t}\n\tasync loadBranch(outcome, withStyles = true) {\n\t\tconst route = outcome._tag === \"NotFound\" ? void 0 : outcome.route;\n\t\tconst available = /* @__PURE__ */ new Map();\n\t\ttry {\n\t\t\tconst [layouts, page] = await Promise.all([\n\t\t\t\tPromise.all(outcome.layouts.map(async (layout) => {\n\t\t\t\t\tconst [loaded] = await Promise.all([this.loadExport(layout.module).then(Schema.decodeUnknownSync(LayoutModule)), withStyles ? Promise.all((this.registration.modules.get(layout.module.module)?.styles ?? []).map((href) => this.loadStyle(href))) : void 0]);\n\t\t\t\t\tconst result = {\n\t\t\t\t\t\tid: layout.id,\n\t\t\t\t\t\t...loaded\n\t\t\t\t\t};\n\t\t\t\t\tavailable.set(layout.id, result);\n\t\t\t\t\treturn result;\n\t\t\t\t})),\n\t\t\t\troute === void 0 ? void 0 : this.loadExport(route.page).then(Schema.decodeUnknownSync(PageModule)),\n\t\t\t\tPromise.all(withStyles ? [...this.registration.styles ?? [], ...route === void 0 ? [] : this.registration.modules.get(route.page.module)?.styles ?? []].map(async (href) => this.loadStyle(href)) : [])\n\t\t\t]);\n\t\t\treturn {\n\t\t\t\toutcome,\n\t\t\t\tlayouts,\n\t\t\t\tpage: page?.component,\n\t\t\t\tpageBoundaries: page\n\t\t\t};\n\t\t} catch (error) {\n\t\t\tconst layouts = [];\n\t\t\tfor (const definition of outcome.layouts) {\n\t\t\t\tconst loaded = available.get(definition.id);\n\t\t\t\tif (loaded === void 0) break;\n\t\t\t\tlayouts.push(loaded);\n\t\t\t}\n\t\t\tthrow BranchLoadError.make({\n\t\t\t\terror,\n\t\t\t\tbranch: {\n\t\t\t\t\toutcome,\n\t\t\t\t\tlayouts,\n\t\t\t\t\tpage: void 0\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\tsetRenderError(error) {\n\t\tif (this.snapshot.branch !== void 0) this.applyMetadata(this.snapshot.branch.outcome, error);\n\t}\n\tapplyMetadata(outcome, renderError = false) {\n\t\tconst resolved = Effect.runSync(resolveMetadata({\n\t\t\tapplicationName: this.registration.applicationName,\n\t\t\tlayouts: outcome.layouts.map((layout) => layout.metadata),\n\t\t\tpage: outcome._tag === \"NotFound\" ? void 0 : outcome.route?.metadata,\n\t\t\toutcome: renderError ? \"Invalid\" : outcome._tag\n\t\t}));\n\t\tconst document = this.browser.document;\n\t\tdocument.title = resolved.title;\n\t\tfor (const name of [\"description\", \"robots\"]) {\n\t\t\tconst tags = Array.from(document.head.querySelectorAll(`meta[name=\"${name}\"]`));\n\t\t\tconst value = resolved.meta[name];\n\t\t\tif (value === void 0) {\n\t\t\t\tfor (const tag of tags) tag.remove();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst tag = tags.shift() ?? document.createElement(\"meta\");\n\t\t\tfor (const duplicate of tags) duplicate.remove();\n\t\t\ttag.name = name;\n\t\t\ttag.content = value;\n\t\t\tif (!tag.isConnected) document.head.append(tag);\n\t\t}\n\t}\n\tdispose() {\n\t\tthis.disposed = true;\n\t\tthis.cancelPending();\n\t\tthis.history?.dispose();\n\t\tthis.browser.removeEventListener(\"beforeunload\", this.onBeforeUnload);\n\t\tfor (const cleanup of this.styleCleanups) cleanup();\n\t\tthis.listeners.clear();\n\t}\n};\n//#endregion\nexport { BranchLoadError, RouterStore };\n\n//# sourceMappingURL=router-store.js.map","import { useErrorBoundary, useState } from \"preact/hooks\";\nimport { Fragment, createElement } from \"preact\";\n//#region src/versions/1/browser/route-boundaries.ts\nconst DefaultError = ({ error, retry }) => createElement(\"div\", { role: \"alert\" }, error instanceof Error ? error.message : \"This page could not load or render. \", createElement(\"button\", { onClick: retry }, \"Retry\"));\nconst Boundary = ({ children, component, branch, router, onRetry }) => {\n\tconst [failure, setFailure] = useState();\n\tconst [, reset] = useErrorBoundary((error) => {\n\t\tsetFailure({\n\t\t\tbranch,\n\t\t\terror\n\t\t});\n\t\trouter.setRenderError(true);\n\t});\n\treturn failure?.branch !== branch ? children : createElement(component, {\n\t\terror: failure.error,\n\t\tretry: () => {\n\t\t\trouter.setRenderError(false);\n\t\t\tonRetry?.();\n\t\t\tsetFailure(void 0);\n\t\t\treset();\n\t\t}\n\t});\n};\nconst Branch = ({ branch, location, router, failure }) => {\n\tconst outcome = branch.outcome;\n\tlet child;\n\tlet lastLayout = branch.layouts.length - 1;\n\tlet boundaryOwner;\n\tif (outcome._tag === \"Matched\" && branch.page !== void 0) child = createElement(branch.page, {\n\t\tkey: outcome.route.id,\n\t\tparams: outcome.params,\n\t\tsearchParams: outcome.searchParams\n\t});\n\telse if (outcome._tag === \"Invalid\" && branch.pageBoundaries?.invalid !== void 0) child = createElement(branch.pageBoundaries.invalid, {\n\t\tlocation,\n\t\tissues: outcome.issues\n\t});\n\telse {\n\t\tchild = createElement(\"main\", { \"data-ignotum-outcome\": outcome._tag }, outcome._tag === \"Invalid\" ? \"Invalid URL\" : \"Page not found\");\n\t\tfor (let index = lastLayout; index >= 0; index--) {\n\t\t\tconst layout = branch.layouts[index];\n\t\t\tif (outcome._tag === \"Invalid\" && layout.invalid !== void 0) {\n\t\t\t\tchild = createElement(layout.invalid, {\n\t\t\t\t\tlocation,\n\t\t\t\t\tissues: outcome.issues\n\t\t\t\t});\n\t\t\t\tlastLayout = index;\n\t\t\t\tboundaryOwner = index;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (outcome._tag === \"NotFound\" && layout.notFound !== void 0) {\n\t\t\t\tchild = createElement(layout.notFound, { location });\n\t\t\t\tlastLayout = index;\n\t\t\t\tboundaryOwner = index;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif (branch.pageBoundaries?.error !== void 0 && outcome._tag === \"Matched\") child = createElement(Boundary, {\n\t\tkey: \"page-boundary\",\n\t\tcomponent: branch.pageBoundaries.error,\n\t\tbranch,\n\t\trouter,\n\t\tchildren: child\n\t});\n\tlet sharedLayouts = 0;\n\twhile (sharedLayouts <= lastLayout && branch.layouts[sharedLayouts]?.id === failure?.branch?.layouts[sharedLayouts]?.id) sharedLayouts++;\n\tconst loadFailure = failure === void 0 ? null : createElement(LoadFailure, {\n\t\tfailure,\n\t\trouter,\n\t\tlayouts: branch.layouts.slice(0, sharedLayouts)\n\t});\n\tfor (let index = lastLayout; index >= 0; index--) {\n\t\tconst layout = branch.layouts[index];\n\t\tif (layout.error !== void 0 && index !== boundaryOwner) child = createElement(Boundary, {\n\t\t\tkey: layout.id,\n\t\t\tcomponent: layout.error,\n\t\t\tbranch,\n\t\t\trouter,\n\t\t\tchildren: child\n\t\t});\n\t\tchild = createElement(layout.component, {\n\t\t\tkey: layout.id,\n\t\t\tchildren: createElement(Fragment, {}, child, index === sharedLayouts - 1 ? loadFailure : null)\n\t\t});\n\t}\n\treturn createElement(Boundary, {\n\t\tcomponent: DefaultError,\n\t\tbranch,\n\t\trouter,\n\t\tchildren: createElement(Fragment, {}, child, sharedLayouts === 0 ? loadFailure : null)\n\t});\n};\nconst LoadFailure = ({ failure, router, layouts }) => {\n\tconst branch = failure.branch;\n\tif (branch === void 0) return createElement(\"div\", { \"data-ignotum-load-error\": \"\" }, createElement(DefaultError, failure));\n\tlet child = createElement(DefaultError, failure);\n\tlet found = false;\n\tfor (const layout of [...layouts ?? branch.layouts].reverse()) {\n\t\tif (layout.error === void 0) continue;\n\t\tif (!found) {\n\t\t\tchild = createElement(layout.error, {\n\t\t\t\terror: failure.error,\n\t\t\t\tretry: failure.retry\n\t\t\t});\n\t\t\tfound = true;\n\t\t} else child = createElement(Boundary, {\n\t\t\tcomponent: layout.error,\n\t\t\tbranch,\n\t\t\trouter,\n\t\t\tonRetry: failure.retry,\n\t\t\tchildren: child\n\t\t});\n\t}\n\treturn createElement(\"div\", { \"data-ignotum-load-error\": \"\" }, createElement(Boundary, {\n\t\tcomponent: DefaultError,\n\t\tbranch,\n\t\trouter,\n\t\tonRetry: failure.retry,\n\t\tchildren: child\n\t}));\n};\n//#endregion\nexport { Branch, DefaultError, LoadFailure };\n\n//# sourceMappingURL=route-boundaries.js.map","import { mountManagedSync } from \"./sync.js\";\nimport { RouterStore } from \"./router-store.js\";\nimport { RouterContext, useRouterSnapshot } from \"./router.js\";\nimport { Branch, LoadFailure } from \"./route-boundaries.js\";\nimport { useLayoutEffect, useState } from \"preact/hooks\";\nimport { Fragment, createElement, render } from \"preact\";\n//#region src/versions/1/browser/bootstrap.ts\nconst RouterView = ({ router }) => {\n\tconst snapshot = useRouterSnapshot(router);\n\tuseLayoutEffect(() => {\n\t\trouter.rendered(snapshot.commit);\n\t}, [router, snapshot]);\n\treturn createElement(RouterContext.Provider, { value: router }, snapshot.branch === void 0 || snapshot.location === void 0 ? createElement(\"div\", { role: \"status\" }, snapshot.failure === void 0 ? \"Loading…\" : null) : createElement(Branch, {\n\t\tbranch: snapshot.branch,\n\t\tlocation: snapshot.location,\n\t\trouter,\n\t\tfailure: snapshot.failure\n\t}), snapshot.failure !== void 0 && snapshot.branch === void 0 ? createElement(LoadFailure, {\n\t\tfailure: snapshot.failure,\n\t\trouter\n\t}) : null);\n};\nconst mounts = /* @__PURE__ */ new WeakSet();\nconst ManagedStatus = ({ client }) => {\n\tconst [snapshot, setSnapshot] = useState(client.upgrade.getSnapshot);\n\tuseLayoutEffect(() => client.upgrade.subscribe(() => setSnapshot(client.upgrade.getSnapshot())), [client]);\n\tif (snapshot.phase === \"ready\" && snapshot.recovery.length === 0) return null;\n\treturn createElement(\"aside\", {\n\t\t\"data-ignotum-update\": snapshot.phase,\n\t\trole: snapshot.phase === \"error\" ? \"alert\" : \"status\"\n\t}, snapshot.message ?? (snapshot.phase === \"connecting\" ? \"Connecting to the app…\" : null), snapshot.recovery.length === 0 ? null : createElement(\"ul\", null, snapshot.recovery.map((message) => createElement(\"li\", { key: message }, message))), snapshot.phase === \"error\" ? createElement(\"button\", {\n\t\ttype: \"button\",\n\t\tonClick: () => client.retry()\n\t}, \"Reload app\") : null, snapshot.recovery.length === 0 ? null : createElement(\"button\", {\n\t\ttype: \"button\",\n\t\tonClick: client.upgrade.dismissRecovery\n\t}, \"Dismiss\"));\n};\n/** The platform owns mounting. Generated registrations contain no Preact render/bootstrap code. */\nconst mountClient = (registration, selection) => {\n\tconst root = window.document.getElementById(\"app\");\n\tif (root === null) throw new Error(\"Ignotum mount element is missing.\");\n\tif (mounts.has(root)) throw new Error(\"The Ignotum client is already mounted.\");\n\tconst router = new RouterStore(registration, selection, window);\n\tconst managed = mountManagedSync(selection, window, {\n\t\tstopAdmission: router.stopForUpgrade,\n\t\treload: router.upgrade\n\t});\n\trouter.setAdmission({\n\t\tvalidate: managed.client.validate,\n\t\trecoverLoad: managed.client.recoverLoad\n\t});\n\trender(createElement(Fragment, null, createElement(ManagedStatus, { client: managed.client }), createElement(RouterView, { router })), root);\n\tconst ready = managed.client.whenReady().then((accepted) => accepted ? router.start() : { status: \"cancelled\" });\n\tmounts.add(root);\n\tlet disposed = false;\n\treturn {\n\t\tready,\n\t\tupgrade: () => managed.client.upgrade.require(),\n\t\tdispose: () => {\n\t\t\tif (disposed) return;\n\t\t\tdisposed = true;\n\t\t\tmounts.delete(root);\n\t\t\trouter.dispose();\n\t\t\tmanaged.dispose();\n\t\t\trender(null, root);\n\t\t}\n\t};\n};\n//#endregion\nexport { mountClient };\n\n//# sourceMappingURL=bootstrap.js.map"],"mappings":";;;;;;;AAGA,MAAM,gBAAgB,OAAO,OAAO;CACnC,iBAAiB,OAAO,OAAO,MAAM,OAAO,YAAY,CAAC,GAAG,OAAO,YAAY,GAAG,CAAC;CACnF,SAAS,OAAO,MAAM,cAAc,CAAC,CAAC,MAAM,OAAO,YAAY,oBAAoB,OAAO,CAAC;CAC3F,MAAM,OAAO,SAAS,cAAc;CACpC,SAAS,OAAO,SAAS;EACxB;EACA;EACA;CACD,CAAC;AACF,CAAC,CAAC,CAAC,SAAS,EAAE,cAAc,EAAE,kBAAkB,QAAQ,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,cAAc,YAAY,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI;CAC3I,MAAM,QAAQ,QAAQ,OAAO,UAAU,CAAC,CAAC,MAAM,aAAa,WAAW,OAAO,MAAM,IAAI,EAAE,QAAQ,YAAY,CAAC;CAC/G,OAAO,IAAI,IAAI;CACf,IAAI,WAAW;CACf,OAAO;EACN;EACA,eAAe,QAAQ,OAAO,QAAQ,QAAQ;EAC9C,eAAe;GACd,IAAI,UAAU;GACd,WAAW;GACX,OAAO,OAAO,IAAI;GAClB,OAAO,QAAQ;GACf,QAAQ,QAAQ;GAChB,OAAO,MAAM,IAAI;EAClB;CACD;AACD"}
@@ -1,20 +1,31 @@
1
- import { C as SessionOutcome, S as ProfileField, T as UserId, b as PaginationPage, w as User, y as PaginationOptions } from "./types-DeCCyqLU-BIm7rU-0.js";
2
- import { A as ImageSource, C as BlockerState, E as NavigationState, O as Image, T as NavigationOptions, a as RouteMatch, c as RouteReference, i as RouteLocation, k as ImageProps, n as NavigationResult, o as RouteProps, r as RouteInputs, s as ReferenceTypes } from "./bootstrap-BTFScKAc.js";
1
+ import { A as ImageSource, O as Image, _ as RouteLocation, b as RouteReference, c as NavigationResult, f as ReferenceTypes, g as RouteInputs, k as ImageProps, l as NavigationState, s as NavigationOptions, t as BlockerState, v as RouteMatch, y as RouteProps } from "./bootstrap-DjTwGJao-DBx5zdFI.js";
2
+ import { C as SessionOutcome, S as ProfileField, T as UserId, b as PaginationPage, w as User, y as PaginationOptions } from "./types-DeCCyqLU-CHx7KFtx.js";
3
3
  import { a as InternalServerError, g as FileValue, h as FileMimeType, i as ErrorValue, l as SettledResult, m as FileMetadata, o as Match, p as FileFormat, s as QueryResult$1 } from "./id-7an3nxTu-DZJSM5xh.js";
4
4
  import "./result-BkziOG1L.js";
5
- import "./sync-D-GK2sv9.js";
6
- import "./id-CBOt2kDo.js";
7
- import { n as FunctionReference } from "./api-B4fwp5a2.js";
8
- import "./pagination-CBOt2kDo.js";
5
+ import "./sync-By2hX5ev.js";
6
+ import "./id-BI08JkmR.js";
7
+ import { n as FunctionReference } from "./api-BnUKx9cj-D49Tf0rX.js";
8
+ import "./pagination-BI08JkmR.js";
9
9
  import { Cause, Context as Context$1, Effect, Layer, Schema } from "effect";
10
10
  import { Dispatch, Reducer, StateUpdater, useCallback, useContext, useDebugValue, useEffect, useErrorBoundary, useId as useElementId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState } from "preact/hooks";
11
11
  import { AnyComponent, Attributes, ClassAttributes, Component, ComponentChild, ComponentChildren, ComponentClass, ComponentConstructor, ComponentFactory, ComponentProps, ComponentType, Consumer, Context, ContextType, ErrorInfo, Fragment, FunctionComponent, FunctionalComponent, JSX, JSX as JSX$1, Key, PreactConsumer, PreactContext, PreactDOMAttributes, PreactProvider, Provider, Ref, RefCallback, RefObject, RenderableProps, TargetedAnimationEvent, TargetedClipboardEvent, TargetedCommandEvent, TargetedCompositionEvent, TargetedDragEvent, TargetedEvent, TargetedFocusEvent, TargetedInputEvent, TargetedKeyboardEvent, TargetedMouseEvent, TargetedPictureInPictureEvent, TargetedPointerEvent, TargetedSnapEvent, TargetedSubmitEvent, TargetedToggleEvent, TargetedTouchEvent, TargetedTransitionEvent, TargetedUIEvent, TargetedWheelEvent, VNode, cloneElement, createContext, createElement, createRef, h, isValidElement, toChildArray } from "preact";
12
- //#region src/client/files.d.ts
12
+ //#region ../platform/dist/versions/1/browser/files.d.ts
13
+ //#region src/versions/1/browser/files.d.ts
13
14
  declare const Files: {
14
15
  readonly url: (file: FileValue) => string;
15
16
  };
16
17
  //#endregion
17
- //#region src/client/id.d.ts
18
+ //#region ../platform/dist/versions/1/browser/query.d.ts
19
+ //#region src/versions/1/browser/query.d.ts
20
+ declare const QuerySkipTypeId: unique symbol;
21
+ interface QuerySkip {
22
+ readonly [QuerySkipTypeId]: typeof QuerySkipTypeId;
23
+ }
24
+ declare const Query: {
25
+ skip: QuerySkip;
26
+ };
27
+ //#endregion
28
+ //#region ../platform/dist/id-C8zu3wdT.d.ts
18
29
  type IdState = {
19
30
  readonly status: "pending";
20
31
  readonly outcome?: SessionOutcome;
@@ -31,16 +42,8 @@ type IdState = {
31
42
  readonly outcome?: SessionOutcome;
32
43
  };
33
44
  //#endregion
34
- //#region src/client/query.d.ts
35
- declare const QuerySkipTypeId: unique symbol;
36
- interface QuerySkip {
37
- readonly [QuerySkipTypeId]: typeof QuerySkipTypeId;
38
- }
39
- declare const Query: {
40
- skip: QuerySkip;
41
- };
42
- //#endregion
43
- //#region src/client/hooks.d.ts
45
+ //#region ../platform/dist/versions/1/browser/hooks.d.ts
46
+ //#region src/versions/1/browser/hooks.d.ts
44
47
  declare function useQuery<Success, Failure extends ErrorValue>(reference: FunctionReference<"Query", void, Success, Failure>): QueryResult$1<Success, Failure>;
45
48
  declare function useQuery<Success, Failure extends ErrorValue>(reference: FunctionReference<"Query", void, Success, Failure>, args: QuerySkip): QueryResult$1<Success, Failure>;
46
49
  declare function useQuery<Args extends object, Success, Failure extends ErrorValue>(reference: FunctionReference<"Query", Args, Success, Failure>, args: NoInfer<Args> | QuerySkip): QueryResult$1<Success, Failure>;
@@ -74,7 +77,7 @@ type IdResult = IdState & {
74
77
  };
75
78
  declare function useId(): IdResult;
76
79
  //#endregion
77
- //#region src/client/router.d.ts
80
+ //#region ../platform/dist/versions/1/browser/router.d.ts
78
81
  type OptionsArgs<Options> = {} extends Options ? [options?: Options] : [options: Options];
79
82
  type NavigateOptions<Reference extends RouteReference> = RouteInputs<Reference> & NavigationOptions;
80
83
  interface Navigate {
@@ -115,7 +118,8 @@ type RedirectProps<Reference extends RouteReference> = NavigateOptions<Reference
115
118
  };
116
119
  declare function Redirect<Reference extends RouteReference>(props: RedirectProps<Reference>): null;
117
120
  //#endregion
118
- //#region src/client/index.d.ts
121
+ //#region ../platform/dist/versions/1/browser/index.d.ts
122
+ //#region src/versions/1/browser/index.d.ts
119
123
  declare const Result: {
120
124
  match: Match;
121
125
  };