zudoku 0.66.4 → 0.66.6
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.
- package/dist/app/main.d.ts +6 -6
- package/dist/config/validators/InputNavigationSchema.d.ts +2 -0
- package/dist/config/validators/InputNavigationSchema.js +1 -0
- package/dist/config/validators/InputNavigationSchema.js.map +1 -1
- package/dist/config/validators/NavigationSchema.js +6 -1
- package/dist/config/validators/NavigationSchema.js.map +1 -1
- package/dist/flat-config.d.ts +1 -0
- package/dist/lib/authentication/components/CallbackHandler.js +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.js +11 -7
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +0 -22
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.js +6 -15
- package/dist/lib/authentication/providers/supabase.js.map +1 -1
- package/dist/lib/core/RouteGuard.js +12 -7
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +1 -0
- package/dist/lib/oas/graphql/circular.js +20 -5
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +9 -5
- package/dist/lib/plugins/api-keys/index.js +18 -8
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.js +3 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +5 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.js +11 -3
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/util/invariant.d.ts +1 -1
- package/dist/lib/util/invariant.js +2 -2
- package/dist/lib/util/invariant.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +1 -0
- package/dist/vite/api/SchemaManager.js +9 -3
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/mdx/remark-link-rewrite.js +1 -1
- package/dist/vite/plugin-api-keys.js +1 -0
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/prerender/utils.js +9 -3
- package/dist/vite/prerender/utils.js.map +1 -1
- package/lib/{ActionButton-BSM2oNHF.js → ActionButton-B0CXL1Lq.js} +3 -3
- package/lib/{ActionButton-BSM2oNHF.js.map → ActionButton-B0CXL1Lq.js.map} +1 -1
- package/lib/{Button-IOAeVaIH.js → Button-GUVe7pmt.js} +2 -2
- package/lib/{Button-IOAeVaIH.js.map → Button-GUVe7pmt.js.map} +1 -1
- package/lib/{Card-KFniaZn5.js → Card-DCdq37aA.js} +2 -2
- package/lib/{Card-KFniaZn5.js.map → Card-DCdq37aA.js.map} +1 -1
- package/lib/{ClaudeLogo-DgjivS8A.js → ClaudeLogo-BpqHBMS8.js} +4 -4
- package/lib/{ClaudeLogo-DgjivS8A.js.map → ClaudeLogo-BpqHBMS8.js.map} +1 -1
- package/lib/{Command-BpT1iBE6.js → Command-N6VujV30.js} +3 -3
- package/lib/{Command-BpT1iBE6.js.map → Command-N6VujV30.js.map} +1 -1
- package/lib/{Dialog-BQciPiHN.js → Dialog-hlvmmQ_c.js} +2 -2
- package/lib/{Dialog-BQciPiHN.js.map → Dialog-hlvmmQ_c.js.map} +1 -1
- package/lib/{Drawer-BRMcpfuF.js → Drawer-Ch7927PF.js} +2 -2
- package/lib/{Drawer-BRMcpfuF.js.map → Drawer-Ch7927PF.js.map} +1 -1
- package/lib/{DropdownMenu-C8SX_-S_.js → DropdownMenu-DN0jNrjj.js} +2 -2
- package/lib/{DropdownMenu-C8SX_-S_.js.map → DropdownMenu-DN0jNrjj.js.map} +1 -1
- package/lib/{Frame-DxlznfVd.js → Frame-DKlOmSkU.js} +2 -2
- package/lib/{Frame-DxlznfVd.js.map → Frame-DKlOmSkU.js.map} +1 -1
- package/lib/{IndexingDialog-DZWj_3cU.js → IndexingDialog-D0YdGfbn.js} +3 -3
- package/lib/{IndexingDialog-DZWj_3cU.js.map → IndexingDialog-D0YdGfbn.js.map} +1 -1
- package/lib/{Input-D-kqEQ5M.js → Input-B6YcAPv-.js} +39 -18
- package/lib/Input-B6YcAPv-.js.map +1 -0
- package/lib/{MdxPage-BL-HbZrv.js → MdxPage-CeFSxGb_.js} +11 -11
- package/lib/{MdxPage-BL-HbZrv.js.map → MdxPage-CeFSxGb_.js.map} +1 -1
- package/lib/{Mermaid-BjSczjLW.js → Mermaid-COVtAqcZ.js} +4 -4
- package/lib/{Mermaid-BjSczjLW.js.map → Mermaid-COVtAqcZ.js.map} +1 -1
- package/lib/{OAuthErrorPage-DQtg28Go.js → OAuthErrorPage-XTPBOMN8.js} +9 -9
- package/lib/OAuthErrorPage-XTPBOMN8.js.map +1 -0
- package/lib/{OasProvider--qcZwrKS.js → OasProvider-BS4rdzZC.js} +4 -4
- package/lib/{OasProvider--qcZwrKS.js.map → OasProvider-BS4rdzZC.js.map} +1 -1
- package/lib/{OperationList-CSJYzxQY.js → OperationList-Dg0Nm1tg.js} +136 -133
- package/lib/{OperationList-CSJYzxQY.js.map → OperationList-Dg0Nm1tg.js.map} +1 -1
- package/lib/RouteGuard-kCicqF3x.js +77 -0
- package/lib/RouteGuard-kCicqF3x.js.map +1 -0
- package/lib/{SchemaList-DtyuDrQA.js → SchemaList-DZKBH2WC.js} +9 -9
- package/lib/{SchemaList-DtyuDrQA.js.map → SchemaList-DZKBH2WC.js.map} +1 -1
- package/lib/{SchemaView-G-SVXxAG.js → SchemaView-DBaqV2yU.js} +95 -92
- package/lib/SchemaView-DBaqV2yU.js.map +1 -0
- package/lib/{Secret-BxGpIhDP.js → Secret-BDBqq4p3.js} +2 -2
- package/lib/{Secret-BxGpIhDP.js.map → Secret-BDBqq4p3.js.map} +1 -1
- package/lib/{Separator-CTPSeW1S.js → Separator-BXt1LYnm.js} +2 -2
- package/lib/{Separator-CTPSeW1S.js.map → Separator-BXt1LYnm.js.map} +1 -1
- package/lib/{SignUp-CDl7bQj3.js → SignUp-DNmOFbLD.js} +5 -5
- package/lib/{SignUp-CDl7bQj3.js.map → SignUp-DNmOFbLD.js.map} +1 -1
- package/lib/{SyntaxHighlight-Dgd0AaaX.js → SyntaxHighlight-C75W8uCn.js} +374 -365
- package/lib/SyntaxHighlight-C75W8uCn.js.map +1 -0
- package/lib/{Toc-D_Rj4jVx.js → Toc-ICilS65g.js} +3 -3
- package/lib/{Toc-D_Rj4jVx.js.map → Toc-ICilS65g.js.map} +1 -1
- package/lib/{ZudokuContext-DNHMZfcP.js → ZudokuContext-Ea7gxmGq.js} +542 -469
- package/lib/ZudokuContext-Ea7gxmGq.js.map +1 -0
- package/lib/{___vite-browser-external_commonjs-proxy-Cga3HsWk.js → ___vite-browser-external_commonjs-proxy-BttVsNON.js} +2 -2
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +1 -0
- package/lib/chunk-EPOLDU6W-C6C8jAwd.js +8558 -0
- package/lib/chunk-EPOLDU6W-C6C8jAwd.js.map +1 -0
- package/lib/{circular-BxODTa7z.js → circular-DleWPaPP.js} +767 -747
- package/lib/{circular-BxODTa7z.js.map → circular-DleWPaPP.js.map} +1 -1
- package/lib/{cn-dYga0KKN.js → cn-5-Gd1Dss.js} +531 -498
- package/lib/cn-5-Gd1Dss.js.map +1 -0
- package/lib/{createServer-BpreIXp6.js → createServer-nqMW9kro.js} +6 -6
- package/lib/{createServer-BpreIXp6.js.map → createServer-nqMW9kro.js.map} +1 -1
- package/lib/{createVariantComponent-CQVt-H3r.js → createVariantComponent-Dc0vtOvr.js} +2 -2
- package/lib/{createVariantComponent-CQVt-H3r.js.map → createVariantComponent-Dc0vtOvr.js.map} +1 -1
- package/lib/{errors-DliW1dED.js → errors-D2FbERKl.js} +3 -3
- package/lib/{errors-DliW1dED.js.map → errors-D2FbERKl.js.map} +1 -1
- package/lib/{firebase-D4tbaCYB.js → firebase-Cn9CmB6h.js} +21 -21
- package/lib/{firebase-D4tbaCYB.js.map → firebase-Cn9CmB6h.js.map} +1 -1
- package/lib/{hook-CHw_R_xu.js → hook-B2nmfmYN.js} +3 -3
- package/lib/{hook-CHw_R_xu.js.map → hook-B2nmfmYN.js.map} +1 -1
- package/lib/{index-DXXZDuSJ.js → index-CC4L3gtM.js} +4 -4
- package/lib/{index-DXXZDuSJ.js.map → index-CC4L3gtM.js.map} +1 -1
- package/lib/{index-9MxNUgg4.js → index-CSDW7CHl.js} +21 -21
- package/lib/{index-9MxNUgg4.js.map → index-CSDW7CHl.js.map} +1 -1
- package/lib/{index-CboxZOVW.js → index-D5NeW2z6.js} +12 -12
- package/lib/{index-CboxZOVW.js.map → index-D5NeW2z6.js.map} +1 -1
- package/lib/{index-1TbL0HXQ.js → index-DSKBOdpT.js} +2 -2
- package/lib/{index-1TbL0HXQ.js.map → index-DSKBOdpT.js.map} +1 -1
- package/lib/{index.esm-ti5zvZS_.js → index.esm-B35e7P83.js} +2 -2
- package/lib/index.esm-B35e7P83.js.map +1 -0
- package/lib/{index.esm-DtzT_KoE.js → index.esm-B_0dvNjB.js} +2 -2
- package/lib/{index.esm-DtzT_KoE.js.map → index.esm-B_0dvNjB.js.map} +1 -1
- package/lib/{invariant-CGOLuIIz.js → invariant-BJAl77rw.js} +4 -4
- package/lib/invariant-BJAl77rw.js.map +1 -0
- package/lib/{mutation-DMHWqmFp.js → mutation-BOYnEDf6.js} +70 -44
- package/lib/mutation-BOYnEDf6.js.map +1 -0
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +2 -2
- package/lib/ui/Alert.js +1 -1
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +1 -1
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Button.js +1 -1
- package/lib/ui/ButtonGroup.js +1 -1
- package/lib/ui/Callout.js +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +1 -1
- package/lib/ui/Checkbox.js +1 -1
- package/lib/ui/CodeBlock.js +1 -1
- package/lib/ui/Command.js +2 -2
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/EmbeddedCodeBlock.js +1 -1
- package/lib/ui/Form.js +1 -1
- package/lib/ui/Frame.js +1 -1
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Item.js +1 -1
- package/lib/ui/Label.js +1 -1
- package/lib/ui/NativeSelect.js +1 -1
- package/lib/ui/Pagination.js +1 -1
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Secret.js +1 -1
- package/lib/ui/Separator.js +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +3 -3
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +1 -1
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Value.js +1 -1
- package/lib/ui/util.js +1 -1
- package/lib/zudoku.__internal.js +604 -602
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +16 -16
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-azureb2c.js +4 -4
- package/lib/zudoku.auth-clerk.js +52 -75
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-firebase.js +5 -5
- package/lib/zudoku.auth-openid.js +5 -5
- package/lib/zudoku.auth-supabase.js +31 -40
- package/lib/zudoku.auth-supabase.js.map +1 -1
- package/lib/zudoku.components.js +6 -6
- package/lib/zudoku.hooks.js +3 -3
- package/lib/zudoku.mermaid.js +3 -3
- package/lib/zudoku.plugin-api-catalog.js +5 -5
- package/lib/zudoku.plugin-api-keys.js +258 -240
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +7 -7
- package/lib/zudoku.router.js +1130 -1404
- package/lib/zudoku.router.js.map +1 -1
- package/package.json +12 -12
- package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
- package/src/lib/authentication/providers/auth0.tsx +15 -9
- package/src/lib/authentication/providers/clerk.tsx +0 -26
- package/src/lib/authentication/providers/supabase.tsx +6 -15
- package/src/lib/core/RouteGuard.tsx +30 -24
- package/src/lib/oas/graphql/circular.ts +36 -3
- package/src/lib/plugins/api-keys/index.tsx +46 -16
- package/src/lib/plugins/api-keys/settings/ApiKeyList.tsx +3 -0
- package/src/lib/plugins/openapi/OperationList.tsx +6 -1
- package/src/lib/plugins/openapi/schema/utils.ts +15 -4
- package/src/lib/util/invariant.ts +2 -1
- package/lib/Input-D-kqEQ5M.js.map +0 -1
- package/lib/OAuthErrorPage-DQtg28Go.js.map +0 -1
- package/lib/RouteGuard-D0f743SM.js +0 -77
- package/lib/RouteGuard-D0f743SM.js.map +0 -1
- package/lib/SchemaView-G-SVXxAG.js.map +0 -1
- package/lib/SyntaxHighlight-Dgd0AaaX.js.map +0 -1
- package/lib/ZudokuContext-DNHMZfcP.js.map +0 -1
- package/lib/___vite-browser-external_commonjs-proxy-Cga3HsWk.js.map +0 -1
- package/lib/chunk-PVWAREVJ-ClM0m2aJ.js +0 -7965
- package/lib/chunk-PVWAREVJ-ClM0m2aJ.js.map +0 -1
- package/lib/cn-dYga0KKN.js.map +0 -1
- package/lib/index.esm-ti5zvZS_.js.map +0 -1
- package/lib/invariant-CGOLuIIz.js.map +0 -1
- package/lib/mutation-DMHWqmFp.js.map +0 -1
package/lib/zudoku.__internal.js
CHANGED
|
@@ -1,92 +1,158 @@
|
|
|
1
|
-
import { a as Ke, H as He } from "./index.esm-
|
|
2
|
-
import { j as
|
|
3
|
-
import {
|
|
4
|
-
import { M as
|
|
1
|
+
import { a as Ke, H as He } from "./index.esm-B_0dvNjB.js";
|
|
2
|
+
import { j as i } from "./jsx-runtime-BzflLqGi.js";
|
|
3
|
+
import { o as Et, i as A, p as At, q as Tt, r as Dt, S as Ve, n as j, v as ye, w as Je, Q as St, x as we, y as It, z as be, A as ze, B as Ct, h as ke, D as xe, E as Nt, g as Rt, F as Ge, f as Ut, a as re, G as Ft, j as Mt } from "./ZudokuContext-Ea7gxmGq.js";
|
|
4
|
+
import { M as qt } from "./mutation-BOYnEDf6.js";
|
|
5
5
|
import * as I from "react";
|
|
6
6
|
import { StrictMode as Ye, useEffect as oe, useRef as Xe, useState as Qt, Suspense as Lt } from "react";
|
|
7
|
-
import {
|
|
7
|
+
import { n as Bt, S as Wt, a as et, b3 as Kt, O as Ht, d as Vt, L as Jt, h as Gt, w as Yt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
|
|
8
8
|
import * as Xt from "react-dom";
|
|
9
|
-
import { f as en, a as tn, d as C, A as nn, s as rn, P as on, N as Ze, g as sn, h as an, i as cn, T as tt, H as nt, D as un, j as rt } from "./index-
|
|
10
|
-
import { B as ot, R as ln } from "./RouteGuard-
|
|
9
|
+
import { f as en, a as tn, d as C, A as nn, s as rn, P as on, N as Ze, g as sn, h as an, i as cn, T as tt, H as nt, D as un, j as rt } from "./index-D5NeW2z6.js";
|
|
10
|
+
import { B as ot, R as ln } from "./RouteGuard-kCicqF3x.js";
|
|
11
11
|
import { CircleFadingArrowUpIcon as dn, LoaderCircleIcon as hn, ExternalLink as fn, PanelLeftIcon as pn, UnlinkIcon as mn } from "lucide-react";
|
|
12
12
|
import { Button as gn } from "./ui/Button.js";
|
|
13
|
-
import { c as E } from "./cn-
|
|
14
|
-
import { D as
|
|
13
|
+
import { c as E } from "./cn-5-Gd1Dss.js";
|
|
14
|
+
import { D as T, a as vn, b as _n } from "./Drawer-Ch7927PF.js";
|
|
15
15
|
import { VisuallyHidden as yn } from "@radix-ui/react-visually-hidden";
|
|
16
16
|
import { S as wn } from "./Spinner-CI6bRyZw.js";
|
|
17
17
|
import { C as st } from "./CategoryHeading-DhmodDcq.js";
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
add(e) {
|
|
36
|
-
this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
|
|
37
|
-
type: "added",
|
|
38
|
-
query: e
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
remove(e) {
|
|
42
|
-
const t = this.#e.get(e.queryHash);
|
|
43
|
-
t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
44
|
-
}
|
|
45
|
-
clear() {
|
|
46
|
-
j.batch(() => {
|
|
47
|
-
this.getAll().forEach((e) => {
|
|
48
|
-
this.remove(e);
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
get(e) {
|
|
53
|
-
return this.#e.get(e);
|
|
54
|
-
}
|
|
55
|
-
getAll() {
|
|
56
|
-
return [...this.#e.values()];
|
|
57
|
-
}
|
|
58
|
-
find(e) {
|
|
59
|
-
const t = { exact: !0, ...e };
|
|
60
|
-
return this.getAll().find(
|
|
61
|
-
(n) => ye(t, n)
|
|
18
|
+
function bn(e) {
|
|
19
|
+
return e;
|
|
20
|
+
}
|
|
21
|
+
function $e(e, t, n) {
|
|
22
|
+
if (typeof t != "object" || t === null)
|
|
23
|
+
return;
|
|
24
|
+
const r = e.getMutationCache(), o = e.getQueryCache(), s = n?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? bn, a = t.mutations || [], u = t.queries || [];
|
|
25
|
+
a.forEach(({ state: d, ...l }) => {
|
|
26
|
+
r.build(
|
|
27
|
+
e,
|
|
28
|
+
{
|
|
29
|
+
...e.getDefaultOptions().hydrate?.mutations,
|
|
30
|
+
...n?.defaultOptions?.mutations,
|
|
31
|
+
...l
|
|
32
|
+
},
|
|
33
|
+
d
|
|
62
34
|
);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
35
|
+
}), u.forEach(
|
|
36
|
+
({ queryKey: d, state: l, queryHash: f, meta: g, promise: p, dehydratedAt: v }) => {
|
|
37
|
+
const m = p ? Et(p) : void 0, k = l.data === void 0 ? m?.data : l.data, P = k === void 0 ? k : s(k);
|
|
38
|
+
let Z = o.get(f);
|
|
39
|
+
const L = Z?.state.status === "pending", $ = Z?.state.fetchStatus === "fetching";
|
|
40
|
+
if (Z) {
|
|
41
|
+
const x = m && // We only need this undefined check to handle older dehydration
|
|
42
|
+
// payloads that might not have dehydratedAt
|
|
43
|
+
v !== void 0 && v > Z.state.dataUpdatedAt;
|
|
44
|
+
if (l.dataUpdatedAt > Z.state.dataUpdatedAt || x) {
|
|
45
|
+
const { fetchStatus: S, ...H } = l;
|
|
46
|
+
Z.setState({
|
|
47
|
+
...H,
|
|
48
|
+
data: P
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
} else
|
|
52
|
+
Z = o.build(
|
|
53
|
+
e,
|
|
54
|
+
{
|
|
55
|
+
...e.getDefaultOptions().hydrate?.queries,
|
|
56
|
+
...n?.defaultOptions?.queries,
|
|
57
|
+
queryKey: d,
|
|
58
|
+
queryHash: f,
|
|
59
|
+
meta: g
|
|
60
|
+
},
|
|
61
|
+
// Reset fetch status to idle to avoid
|
|
62
|
+
// query being stuck in fetching state upon hydration
|
|
63
|
+
{
|
|
64
|
+
...l,
|
|
65
|
+
data: P,
|
|
66
|
+
fetchStatus: "idle",
|
|
67
|
+
status: P !== void 0 ? "success" : l.status
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
p && !L && !$ && // Only hydrate if dehydration is newer than any existing data,
|
|
71
|
+
// this is always true for new queries
|
|
72
|
+
(v === void 0 || v > Z.state.dataUpdatedAt) && Z.fetch(void 0, {
|
|
73
|
+
// RSC transformed promises are not thenable
|
|
74
|
+
initialPromise: Promise.resolve(p).then(s)
|
|
75
|
+
}).catch(A);
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
function je(e) {
|
|
80
|
+
return {
|
|
81
|
+
onFetch: (t, n) => {
|
|
82
|
+
const r = t.options, o = t.fetchOptions?.meta?.fetchMore?.direction, s = t.state.data?.pages || [], a = t.state.data?.pageParams || [];
|
|
83
|
+
let u = { pages: [], pageParams: [] }, d = 0;
|
|
84
|
+
const l = async () => {
|
|
85
|
+
let f = !1;
|
|
86
|
+
const g = (m) => {
|
|
87
|
+
Object.defineProperty(m, "signal", {
|
|
88
|
+
enumerable: !0,
|
|
89
|
+
get: () => (t.signal.aborted ? f = !0 : t.signal.addEventListener("abort", () => {
|
|
90
|
+
f = !0;
|
|
91
|
+
}), t.signal)
|
|
92
|
+
});
|
|
93
|
+
}, p = At(t.options, t.fetchOptions), v = async (m, k, P) => {
|
|
94
|
+
if (f)
|
|
95
|
+
return Promise.reject();
|
|
96
|
+
if (k == null && m.pages.length)
|
|
97
|
+
return Promise.resolve(m);
|
|
98
|
+
const L = (() => {
|
|
99
|
+
const H = {
|
|
100
|
+
client: t.client,
|
|
101
|
+
queryKey: t.queryKey,
|
|
102
|
+
pageParam: k,
|
|
103
|
+
direction: P ? "backward" : "forward",
|
|
104
|
+
meta: t.options.meta
|
|
105
|
+
};
|
|
106
|
+
return g(H), H;
|
|
107
|
+
})(), $ = await p(L), { maxPages: x } = t.options, S = P ? Tt : Dt;
|
|
108
|
+
return {
|
|
109
|
+
pages: S(m.pages, $, x),
|
|
110
|
+
pageParams: S(m.pageParams, k, x)
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
if (o && s.length) {
|
|
114
|
+
const m = o === "backward", k = m ? zn : Pe, P = {
|
|
115
|
+
pages: s,
|
|
116
|
+
pageParams: a
|
|
117
|
+
}, Z = k(r, P);
|
|
118
|
+
u = await v(P, Z, m);
|
|
119
|
+
} else {
|
|
120
|
+
const m = e ?? s.length;
|
|
121
|
+
do {
|
|
122
|
+
const k = d === 0 ? a[0] ?? r.initialPageParam : Pe(r, u);
|
|
123
|
+
if (d > 0 && k == null)
|
|
124
|
+
break;
|
|
125
|
+
u = await v(u, k), d++;
|
|
126
|
+
} while (d < m);
|
|
127
|
+
}
|
|
128
|
+
return u;
|
|
129
|
+
};
|
|
130
|
+
t.options.persister ? t.fetchFn = () => t.options.persister?.(
|
|
131
|
+
l,
|
|
132
|
+
{
|
|
133
|
+
client: t.client,
|
|
134
|
+
queryKey: t.queryKey,
|
|
135
|
+
meta: t.options.meta,
|
|
136
|
+
signal: t.signal
|
|
137
|
+
},
|
|
138
|
+
n
|
|
139
|
+
) : t.fetchFn = l;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function Pe(e, { pages: t, pageParams: n }) {
|
|
144
|
+
const r = t.length - 1;
|
|
145
|
+
return t.length > 0 ? e.getNextPageParam(
|
|
146
|
+
t[r],
|
|
147
|
+
t,
|
|
148
|
+
n[r],
|
|
149
|
+
n
|
|
150
|
+
) : void 0;
|
|
151
|
+
}
|
|
152
|
+
function zn(e, { pages: t, pageParams: n }) {
|
|
153
|
+
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
154
|
+
}
|
|
155
|
+
var kn = class extends Ve {
|
|
90
156
|
constructor(e = {}) {
|
|
91
157
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
92
158
|
}
|
|
@@ -94,7 +160,8 @@ var bn = class extends Ve {
|
|
|
94
160
|
#t;
|
|
95
161
|
#n;
|
|
96
162
|
build(e, t, n) {
|
|
97
|
-
const r = new
|
|
163
|
+
const r = new qt({
|
|
164
|
+
client: e,
|
|
98
165
|
mutationCache: this,
|
|
99
166
|
mutationId: ++this.#n,
|
|
100
167
|
options: e.defaultMutationOptions(t),
|
|
@@ -152,11 +219,11 @@ var bn = class extends Ve {
|
|
|
152
219
|
find(e) {
|
|
153
220
|
const t = { exact: !0, ...e };
|
|
154
221
|
return this.getAll().find(
|
|
155
|
-
(n) =>
|
|
222
|
+
(n) => ye(t, n)
|
|
156
223
|
);
|
|
157
224
|
}
|
|
158
225
|
findAll(e = {}) {
|
|
159
|
-
return this.getAll().filter((t) =>
|
|
226
|
+
return this.getAll().filter((t) => ye(e, t));
|
|
160
227
|
}
|
|
161
228
|
notify(e) {
|
|
162
229
|
j.batch(() => {
|
|
@@ -169,7 +236,7 @@ var bn = class extends Ve {
|
|
|
169
236
|
const e = this.getAll().filter((t) => t.state.isPaused);
|
|
170
237
|
return j.batch(
|
|
171
238
|
() => Promise.all(
|
|
172
|
-
e.map((t) => t.continue().catch(
|
|
239
|
+
e.map((t) => t.continue().catch(A))
|
|
173
240
|
)
|
|
174
241
|
);
|
|
175
242
|
}
|
|
@@ -177,103 +244,98 @@ var bn = class extends Ve {
|
|
|
177
244
|
function V(e) {
|
|
178
245
|
return e.options.scope?.id;
|
|
179
246
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
253
|
-
function kn(e, { pages: t, pageParams: n }) {
|
|
254
|
-
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
255
|
-
}
|
|
256
|
-
var xn = class {
|
|
247
|
+
var xn = class extends Ve {
|
|
248
|
+
constructor(e = {}) {
|
|
249
|
+
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
250
|
+
}
|
|
251
|
+
#e;
|
|
252
|
+
build(e, t, n) {
|
|
253
|
+
const r = t.queryKey, o = t.queryHash ?? Je(r, t);
|
|
254
|
+
let s = this.get(o);
|
|
255
|
+
return s || (s = new St({
|
|
256
|
+
client: e,
|
|
257
|
+
queryKey: r,
|
|
258
|
+
queryHash: o,
|
|
259
|
+
options: e.defaultQueryOptions(t),
|
|
260
|
+
state: n,
|
|
261
|
+
defaultOptions: e.getQueryDefaults(r)
|
|
262
|
+
}), this.add(s)), s;
|
|
263
|
+
}
|
|
264
|
+
add(e) {
|
|
265
|
+
this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
|
|
266
|
+
type: "added",
|
|
267
|
+
query: e
|
|
268
|
+
}));
|
|
269
|
+
}
|
|
270
|
+
remove(e) {
|
|
271
|
+
const t = this.#e.get(e.queryHash);
|
|
272
|
+
t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
273
|
+
}
|
|
274
|
+
clear() {
|
|
275
|
+
j.batch(() => {
|
|
276
|
+
this.getAll().forEach((e) => {
|
|
277
|
+
this.remove(e);
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
get(e) {
|
|
282
|
+
return this.#e.get(e);
|
|
283
|
+
}
|
|
284
|
+
getAll() {
|
|
285
|
+
return [...this.#e.values()];
|
|
286
|
+
}
|
|
287
|
+
find(e) {
|
|
288
|
+
const t = { exact: !0, ...e };
|
|
289
|
+
return this.getAll().find(
|
|
290
|
+
(n) => we(t, n)
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
findAll(e = {}) {
|
|
294
|
+
const t = this.getAll();
|
|
295
|
+
return Object.keys(e).length > 0 ? t.filter((n) => we(e, n)) : t;
|
|
296
|
+
}
|
|
297
|
+
notify(e) {
|
|
298
|
+
j.batch(() => {
|
|
299
|
+
this.listeners.forEach((t) => {
|
|
300
|
+
t(e);
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
onFocus() {
|
|
305
|
+
j.batch(() => {
|
|
306
|
+
this.getAll().forEach((e) => {
|
|
307
|
+
e.onFocus();
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
onOnline() {
|
|
312
|
+
j.batch(() => {
|
|
313
|
+
this.getAll().forEach((e) => {
|
|
314
|
+
e.onOnline();
|
|
315
|
+
});
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
}, Zn = class {
|
|
257
319
|
#e;
|
|
258
320
|
#t;
|
|
259
321
|
#n;
|
|
260
322
|
#o;
|
|
261
323
|
#s;
|
|
262
324
|
#r;
|
|
263
|
-
#i;
|
|
264
325
|
#a;
|
|
326
|
+
#i;
|
|
265
327
|
constructor(e = {}) {
|
|
266
|
-
this.#e = e.queryCache || new
|
|
328
|
+
this.#e = e.queryCache || new xn(), this.#t = e.mutationCache || new kn(), this.#n = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#r = 0;
|
|
267
329
|
}
|
|
268
330
|
mount() {
|
|
269
|
-
this.#r++, this.#r === 1 && (this.#
|
|
331
|
+
this.#r++, this.#r === 1 && (this.#a = It.subscribe(async (e) => {
|
|
270
332
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
271
|
-
}), this.#
|
|
333
|
+
}), this.#i = be.subscribe(async (e) => {
|
|
272
334
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
273
335
|
}));
|
|
274
336
|
}
|
|
275
337
|
unmount() {
|
|
276
|
-
this.#r--, this.#r === 0 && (this.#
|
|
338
|
+
this.#r--, this.#r === 0 && (this.#a?.(), this.#a = void 0, this.#i?.(), this.#i = void 0);
|
|
277
339
|
}
|
|
278
340
|
isFetching(e) {
|
|
279
341
|
return this.#e.findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -305,9 +367,9 @@ var xn = class {
|
|
|
305
367
|
setQueryData(e, t, n) {
|
|
306
368
|
const r = this.defaultQueryOptions({ queryKey: e }), s = this.#e.get(
|
|
307
369
|
r.queryHash
|
|
308
|
-
)?.state.data,
|
|
309
|
-
if (
|
|
310
|
-
return this.#e.build(this, r).setData(
|
|
370
|
+
)?.state.data, a = Ct(t, s);
|
|
371
|
+
if (a !== void 0)
|
|
372
|
+
return this.#e.build(this, r).setData(a, { ...n, manual: !0 });
|
|
311
373
|
}
|
|
312
374
|
setQueriesData(e, t, n) {
|
|
313
375
|
return j.batch(
|
|
@@ -347,7 +409,7 @@ var xn = class {
|
|
|
347
409
|
const n = { revert: !0, ...t }, r = j.batch(
|
|
348
410
|
() => this.#e.findAll(e).map((o) => o.cancel(n))
|
|
349
411
|
);
|
|
350
|
-
return Promise.all(r).then(
|
|
412
|
+
return Promise.all(r).then(A).catch(A);
|
|
351
413
|
}
|
|
352
414
|
invalidateQueries(e, t = {}) {
|
|
353
415
|
return j.batch(() => (this.#e.findAll(e).forEach((n) => {
|
|
@@ -367,10 +429,10 @@ var xn = class {
|
|
|
367
429
|
}, r = j.batch(
|
|
368
430
|
() => this.#e.findAll(e).filter((o) => !o.isDisabled() && !o.isStatic()).map((o) => {
|
|
369
431
|
let s = o.fetch(void 0, n);
|
|
370
|
-
return n.throwOnError || (s = s.catch(
|
|
432
|
+
return n.throwOnError || (s = s.catch(A)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
371
433
|
})
|
|
372
434
|
);
|
|
373
|
-
return Promise.all(r).then(
|
|
435
|
+
return Promise.all(r).then(A);
|
|
374
436
|
}
|
|
375
437
|
fetchQuery(e) {
|
|
376
438
|
const t = this.defaultQueryOptions(e);
|
|
@@ -381,16 +443,16 @@ var xn = class {
|
|
|
381
443
|
) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
382
444
|
}
|
|
383
445
|
prefetchQuery(e) {
|
|
384
|
-
return this.fetchQuery(e).then(
|
|
446
|
+
return this.fetchQuery(e).then(A).catch(A);
|
|
385
447
|
}
|
|
386
448
|
fetchInfiniteQuery(e) {
|
|
387
|
-
return e.behavior =
|
|
449
|
+
return e.behavior = je(e.pages), this.fetchQuery(e);
|
|
388
450
|
}
|
|
389
451
|
prefetchInfiniteQuery(e) {
|
|
390
|
-
return this.fetchInfiniteQuery(e).then(
|
|
452
|
+
return this.fetchInfiniteQuery(e).then(A).catch(A);
|
|
391
453
|
}
|
|
392
454
|
ensureInfiniteQueryData(e) {
|
|
393
|
-
return e.behavior =
|
|
455
|
+
return e.behavior = je(e.pages), this.ensureQueryData(e);
|
|
394
456
|
}
|
|
395
457
|
resumePausedMutations() {
|
|
396
458
|
return be.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
@@ -443,7 +505,7 @@ var xn = class {
|
|
|
443
505
|
return t.queryHash || (t.queryHash = Je(
|
|
444
506
|
t.queryKey,
|
|
445
507
|
t
|
|
446
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn ===
|
|
508
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Nt && (t.enabled = !1), t;
|
|
447
509
|
}
|
|
448
510
|
defaultMutationOptions(e) {
|
|
449
511
|
return e?._defaulted ? e : {
|
|
@@ -456,77 +518,17 @@ var xn = class {
|
|
|
456
518
|
clear() {
|
|
457
519
|
this.#e.clear(), this.#t.clear();
|
|
458
520
|
}
|
|
459
|
-
}
|
|
460
|
-
function Zn(e) {
|
|
461
|
-
return e;
|
|
462
|
-
}
|
|
463
|
-
function Pe(e, t, n) {
|
|
464
|
-
if (typeof t != "object" || t === null)
|
|
465
|
-
return;
|
|
466
|
-
const r = e.getMutationCache(), o = e.getQueryCache(), s = n?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? Zn, i = t.mutations || [], u = t.queries || [];
|
|
467
|
-
i.forEach(({ state: d, ...l }) => {
|
|
468
|
-
r.build(
|
|
469
|
-
e,
|
|
470
|
-
{
|
|
471
|
-
...e.getDefaultOptions().hydrate?.mutations,
|
|
472
|
-
...n?.defaultOptions?.mutations,
|
|
473
|
-
...l
|
|
474
|
-
},
|
|
475
|
-
d
|
|
476
|
-
);
|
|
477
|
-
}), u.forEach(
|
|
478
|
-
({ queryKey: d, state: l, queryHash: f, meta: g, promise: p, dehydratedAt: v }) => {
|
|
479
|
-
const m = p ? Nt(p) : void 0, k = l.data === void 0 ? m?.data : l.data, P = k === void 0 ? k : s(k);
|
|
480
|
-
let Z = o.get(f);
|
|
481
|
-
const L = Z?.state.status === "pending", $ = Z?.state.fetchStatus === "fetching";
|
|
482
|
-
if (Z) {
|
|
483
|
-
const x = m && // We only need this undefined check to handle older dehydration
|
|
484
|
-
// payloads that might not have dehydratedAt
|
|
485
|
-
v !== void 0 && v > Z.state.dataUpdatedAt;
|
|
486
|
-
if (l.dataUpdatedAt > Z.state.dataUpdatedAt || x) {
|
|
487
|
-
const { fetchStatus: D, ...H } = l;
|
|
488
|
-
Z.setState({
|
|
489
|
-
...H,
|
|
490
|
-
data: P
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
} else
|
|
494
|
-
Z = o.build(
|
|
495
|
-
e,
|
|
496
|
-
{
|
|
497
|
-
...e.getDefaultOptions().hydrate?.queries,
|
|
498
|
-
...n?.defaultOptions?.queries,
|
|
499
|
-
queryKey: d,
|
|
500
|
-
queryHash: f,
|
|
501
|
-
meta: g
|
|
502
|
-
},
|
|
503
|
-
// Reset fetch status to idle to avoid
|
|
504
|
-
// query being stuck in fetching state upon hydration
|
|
505
|
-
{
|
|
506
|
-
...l,
|
|
507
|
-
data: P,
|
|
508
|
-
fetchStatus: "idle",
|
|
509
|
-
status: P !== void 0 ? "success" : l.status
|
|
510
|
-
}
|
|
511
|
-
);
|
|
512
|
-
p && !L && !$ && // Only hydrate if dehydration is newer than any existing data,
|
|
513
|
-
// this is always true for new queries
|
|
514
|
-
(v === void 0 || v > Z.state.dataUpdatedAt) && Z.fetch(void 0, {
|
|
515
|
-
// RSC transformed promises are not thenable
|
|
516
|
-
initialPromise: Promise.resolve(p).then(s)
|
|
517
|
-
});
|
|
518
|
-
}
|
|
519
|
-
);
|
|
520
|
-
}
|
|
521
|
-
var $n = ({
|
|
521
|
+
}, $n = ({
|
|
522
522
|
children: e,
|
|
523
523
|
options: t = {},
|
|
524
524
|
state: n,
|
|
525
525
|
queryClient: r
|
|
526
526
|
}) => {
|
|
527
527
|
const o = Rt(r), s = I.useRef(t);
|
|
528
|
-
|
|
529
|
-
|
|
528
|
+
I.useEffect(() => {
|
|
529
|
+
s.current = t;
|
|
530
|
+
});
|
|
531
|
+
const a = I.useMemo(() => {
|
|
530
532
|
if (n) {
|
|
531
533
|
if (typeof n != "object")
|
|
532
534
|
return;
|
|
@@ -535,16 +537,16 @@ var $n = ({
|
|
|
535
537
|
const p = u.get(g.queryHash);
|
|
536
538
|
p ? (g.state.dataUpdatedAt > p.state.dataUpdatedAt || g.promise && p.state.status !== "pending" && p.state.fetchStatus !== "fetching" && g.dehydratedAt !== void 0 && g.dehydratedAt > p.state.dataUpdatedAt) && f.push(g) : l.push(g);
|
|
537
539
|
}
|
|
538
|
-
if (l.length > 0 &&
|
|
540
|
+
if (l.length > 0 && $e(o, { queries: l }, s.current), f.length > 0)
|
|
539
541
|
return f;
|
|
540
542
|
}
|
|
541
543
|
}, [o, n]);
|
|
542
544
|
return I.useEffect(() => {
|
|
543
|
-
|
|
544
|
-
}, [o,
|
|
545
|
+
a && $e(o, { queries: a }, s.current);
|
|
546
|
+
}, [o, a]), e;
|
|
545
547
|
};
|
|
546
548
|
/**
|
|
547
|
-
* react-router v7.
|
|
549
|
+
* react-router v7.12.0
|
|
548
550
|
*
|
|
549
551
|
* Copyright (c) Remix Software Inc.
|
|
550
552
|
*
|
|
@@ -556,7 +558,7 @@ var $n = ({
|
|
|
556
558
|
function jn(e) {
|
|
557
559
|
return /* @__PURE__ */ I.createElement(Bt, { flushSync: Xt.flushSync, ...e });
|
|
558
560
|
}
|
|
559
|
-
const Pn = new
|
|
561
|
+
const Pn = new Zn({
|
|
560
562
|
defaultOptions: {
|
|
561
563
|
queries: {
|
|
562
564
|
staleTime: 1e3 * 60 * 5
|
|
@@ -565,13 +567,13 @@ const Pn = new xn({
|
|
|
565
567
|
}), On = ({
|
|
566
568
|
router: e,
|
|
567
569
|
hydrate: t = !1
|
|
568
|
-
}) => /* @__PURE__ */
|
|
570
|
+
}) => /* @__PURE__ */ i.jsx(Ye, { children: /* @__PURE__ */ i.jsx(Ge, { client: Pn, children: /* @__PURE__ */ i.jsx($n, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ i.jsx(ot, { value: !1, children: /* @__PURE__ */ i.jsx(Ke, { children: /* @__PURE__ */ i.jsx(en.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ i.jsx(jn, { router: e }) }) }) }) }) }) }), En = ({
|
|
569
571
|
router: e,
|
|
570
572
|
context: t,
|
|
571
573
|
queryClient: n,
|
|
572
574
|
helmetContext: r,
|
|
573
575
|
bypassProtection: o = !1
|
|
574
|
-
}) => /* @__PURE__ */
|
|
576
|
+
}) => /* @__PURE__ */ i.jsx(Ye, { children: /* @__PURE__ */ i.jsx(Ge, { client: n, children: /* @__PURE__ */ i.jsx(Ke, { context: r, children: /* @__PURE__ */ i.jsx(ot, { value: o, children: /* @__PURE__ */ i.jsx(Wt, { router: e, context: t }) }) }) }) });
|
|
575
577
|
function c(e, t, n) {
|
|
576
578
|
function r(u, d) {
|
|
577
579
|
var l;
|
|
@@ -579,15 +581,15 @@ function c(e, t, n) {
|
|
|
579
581
|
value: u._zod ?? {},
|
|
580
582
|
enumerable: !1
|
|
581
583
|
}), (l = u._zod).traits ?? (l.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u, d);
|
|
582
|
-
for (const f in
|
|
583
|
-
f in u || Object.defineProperty(u, f, { value:
|
|
584
|
-
u._zod.constr =
|
|
584
|
+
for (const f in a.prototype)
|
|
585
|
+
f in u || Object.defineProperty(u, f, { value: a.prototype[f].bind(u) });
|
|
586
|
+
u._zod.constr = a, u._zod.def = d;
|
|
585
587
|
}
|
|
586
588
|
const o = n?.Parent ?? Object;
|
|
587
589
|
class s extends o {
|
|
588
590
|
}
|
|
589
591
|
Object.defineProperty(s, "name", { value: e });
|
|
590
|
-
function
|
|
592
|
+
function a(u) {
|
|
591
593
|
var d;
|
|
592
594
|
const l = n?.Parent ? new s() : this;
|
|
593
595
|
r(l, u), (d = l._zod).deferred ?? (d.deferred = []);
|
|
@@ -595,23 +597,23 @@ function c(e, t, n) {
|
|
|
595
597
|
f();
|
|
596
598
|
return l;
|
|
597
599
|
}
|
|
598
|
-
return Object.defineProperty(
|
|
600
|
+
return Object.defineProperty(a, "init", { value: r }), Object.defineProperty(a, Symbol.hasInstance, {
|
|
599
601
|
value: (u) => n?.Parent && u instanceof n.Parent ? !0 : u?._zod?.traits?.has(e)
|
|
600
|
-
}), Object.defineProperty(
|
|
602
|
+
}), Object.defineProperty(a, "name", { value: e }), a;
|
|
601
603
|
}
|
|
602
604
|
class Q extends Error {
|
|
603
605
|
constructor() {
|
|
604
606
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
605
607
|
}
|
|
606
608
|
}
|
|
607
|
-
class
|
|
609
|
+
class at extends Error {
|
|
608
610
|
constructor(t) {
|
|
609
611
|
super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
|
|
610
612
|
}
|
|
611
613
|
}
|
|
612
|
-
const
|
|
614
|
+
const it = {};
|
|
613
615
|
function R(e) {
|
|
614
|
-
return
|
|
616
|
+
return it;
|
|
615
617
|
}
|
|
616
618
|
function An(e) {
|
|
617
619
|
const t = Object.values(e).filter((r) => typeof r == "number");
|
|
@@ -662,7 +664,7 @@ function F(e, t, n) {
|
|
|
662
664
|
configurable: !0
|
|
663
665
|
});
|
|
664
666
|
}
|
|
665
|
-
function
|
|
667
|
+
function M(...e) {
|
|
666
668
|
const t = {};
|
|
667
669
|
for (const n of e) {
|
|
668
670
|
const r = Object.getOwnPropertyDescriptors(n);
|
|
@@ -725,7 +727,7 @@ function Sn(e) {
|
|
|
725
727
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
726
728
|
}
|
|
727
729
|
function In(e, t) {
|
|
728
|
-
const n = e._zod.def, r =
|
|
730
|
+
const n = e._zod.def, r = M(e._zod.def, {
|
|
729
731
|
get shape() {
|
|
730
732
|
const o = {};
|
|
731
733
|
for (const s in t) {
|
|
@@ -740,7 +742,7 @@ function In(e, t) {
|
|
|
740
742
|
return N(e, r);
|
|
741
743
|
}
|
|
742
744
|
function Cn(e, t) {
|
|
743
|
-
const n = e._zod.def, r =
|
|
745
|
+
const n = e._zod.def, r = M(e._zod.def, {
|
|
744
746
|
get shape() {
|
|
745
747
|
const o = { ...e._zod.def.shape };
|
|
746
748
|
for (const s in t) {
|
|
@@ -760,7 +762,7 @@ function Nn(e, t) {
|
|
|
760
762
|
const n = e._zod.def.checks;
|
|
761
763
|
if (n && n.length > 0)
|
|
762
764
|
throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
|
|
763
|
-
const o =
|
|
765
|
+
const o = M(e._zod.def, {
|
|
764
766
|
get shape() {
|
|
765
767
|
const s = { ...e._zod.def.shape, ...t };
|
|
766
768
|
return F(this, "shape", s), s;
|
|
@@ -783,7 +785,7 @@ function Rn(e, t) {
|
|
|
783
785
|
return N(e, n);
|
|
784
786
|
}
|
|
785
787
|
function Un(e, t) {
|
|
786
|
-
const n =
|
|
788
|
+
const n = M(e._zod.def, {
|
|
787
789
|
get shape() {
|
|
788
790
|
const r = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
789
791
|
return F(this, "shape", r), r;
|
|
@@ -797,48 +799,48 @@ function Un(e, t) {
|
|
|
797
799
|
return N(e, n);
|
|
798
800
|
}
|
|
799
801
|
function Fn(e, t, n) {
|
|
800
|
-
const r =
|
|
802
|
+
const r = M(t._zod.def, {
|
|
801
803
|
get shape() {
|
|
802
804
|
const o = t._zod.def.shape, s = { ...o };
|
|
803
805
|
if (n)
|
|
804
|
-
for (const
|
|
805
|
-
if (!(
|
|
806
|
-
throw new Error(`Unrecognized key: "${
|
|
807
|
-
n[
|
|
806
|
+
for (const a in n) {
|
|
807
|
+
if (!(a in o))
|
|
808
|
+
throw new Error(`Unrecognized key: "${a}"`);
|
|
809
|
+
n[a] && (s[a] = e ? new e({
|
|
808
810
|
type: "optional",
|
|
809
|
-
innerType: o[
|
|
810
|
-
}) : o[
|
|
811
|
+
innerType: o[a]
|
|
812
|
+
}) : o[a]);
|
|
811
813
|
}
|
|
812
814
|
else
|
|
813
|
-
for (const
|
|
814
|
-
s[
|
|
815
|
+
for (const a in o)
|
|
816
|
+
s[a] = e ? new e({
|
|
815
817
|
type: "optional",
|
|
816
|
-
innerType: o[
|
|
817
|
-
}) : o[
|
|
818
|
+
innerType: o[a]
|
|
819
|
+
}) : o[a];
|
|
818
820
|
return F(this, "shape", s), s;
|
|
819
821
|
},
|
|
820
822
|
checks: []
|
|
821
823
|
});
|
|
822
824
|
return N(t, r);
|
|
823
825
|
}
|
|
824
|
-
function
|
|
825
|
-
const r =
|
|
826
|
+
function Mn(e, t, n) {
|
|
827
|
+
const r = M(t._zod.def, {
|
|
826
828
|
get shape() {
|
|
827
829
|
const o = t._zod.def.shape, s = { ...o };
|
|
828
830
|
if (n)
|
|
829
|
-
for (const
|
|
830
|
-
if (!(
|
|
831
|
-
throw new Error(`Unrecognized key: "${
|
|
832
|
-
n[
|
|
831
|
+
for (const a in n) {
|
|
832
|
+
if (!(a in s))
|
|
833
|
+
throw new Error(`Unrecognized key: "${a}"`);
|
|
834
|
+
n[a] && (s[a] = new e({
|
|
833
835
|
type: "nonoptional",
|
|
834
|
-
innerType: o[
|
|
836
|
+
innerType: o[a]
|
|
835
837
|
}));
|
|
836
838
|
}
|
|
837
839
|
else
|
|
838
|
-
for (const
|
|
839
|
-
s[
|
|
840
|
+
for (const a in o)
|
|
841
|
+
s[a] = new e({
|
|
840
842
|
type: "nonoptional",
|
|
841
|
-
innerType: o[
|
|
843
|
+
innerType: o[a]
|
|
842
844
|
});
|
|
843
845
|
return F(this, "shape", s), s;
|
|
844
846
|
},
|
|
@@ -846,7 +848,7 @@ function qn(e, t, n) {
|
|
|
846
848
|
});
|
|
847
849
|
return N(t, r);
|
|
848
850
|
}
|
|
849
|
-
function
|
|
851
|
+
function q(e, t = 0) {
|
|
850
852
|
if (e.aborted === !0)
|
|
851
853
|
return !0;
|
|
852
854
|
for (let n = t; n < e.issues.length; n++)
|
|
@@ -895,7 +897,7 @@ const dt = (e, t) => {
|
|
|
895
897
|
enumerable: !1
|
|
896
898
|
});
|
|
897
899
|
}, ht = c("$ZodError", dt), ft = c("$ZodError", dt, { Parent: Error });
|
|
898
|
-
function
|
|
900
|
+
function qn(e, t = (n) => n.message) {
|
|
899
901
|
const n = {}, r = [];
|
|
900
902
|
for (const o of e.issues)
|
|
901
903
|
o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
|
|
@@ -905,7 +907,7 @@ function Qn(e, t = (n) => n.message) {
|
|
|
905
907
|
const n = { _errors: [] }, r = (o) => {
|
|
906
908
|
for (const s of o.issues)
|
|
907
909
|
if (s.code === "invalid_union" && s.errors.length)
|
|
908
|
-
s.errors.map((
|
|
910
|
+
s.errors.map((a) => r({ issues: a }));
|
|
909
911
|
else if (s.code === "invalid_key")
|
|
910
912
|
r({ issues: s.issues });
|
|
911
913
|
else if (s.code === "invalid_element")
|
|
@@ -913,60 +915,60 @@ function Qn(e, t = (n) => n.message) {
|
|
|
913
915
|
else if (s.path.length === 0)
|
|
914
916
|
n._errors.push(t(s));
|
|
915
917
|
else {
|
|
916
|
-
let
|
|
918
|
+
let a = n, u = 0;
|
|
917
919
|
for (; u < s.path.length; ) {
|
|
918
920
|
const d = s.path[u];
|
|
919
|
-
u === s.path.length - 1 ? (
|
|
921
|
+
u === s.path.length - 1 ? (a[d] = a[d] || { _errors: [] }, a[d]._errors.push(t(s))) : a[d] = a[d] || { _errors: [] }, a = a[d], u++;
|
|
920
922
|
}
|
|
921
923
|
}
|
|
922
924
|
};
|
|
923
925
|
return r(e), n;
|
|
924
926
|
}
|
|
925
927
|
const ge = (e) => (t, n, r, o) => {
|
|
926
|
-
const s = r ? Object.assign(r, { async: !1 }) : { async: !1 },
|
|
927
|
-
if (
|
|
928
|
+
const s = r ? Object.assign(r, { async: !1 }) : { async: !1 }, a = t._zod.run({ value: n, issues: [] }, s);
|
|
929
|
+
if (a instanceof Promise)
|
|
928
930
|
throw new Q();
|
|
929
|
-
if (
|
|
930
|
-
const u = new (o?.Err ?? e)(
|
|
931
|
+
if (a.issues.length) {
|
|
932
|
+
const u = new (o?.Err ?? e)(a.issues.map((d) => U(d, s, R())));
|
|
931
933
|
throw ct(u, o?.callee), u;
|
|
932
934
|
}
|
|
933
|
-
return
|
|
935
|
+
return a.value;
|
|
934
936
|
}, ve = (e) => async (t, n, r, o) => {
|
|
935
937
|
const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
936
|
-
let
|
|
937
|
-
if (
|
|
938
|
-
const u = new (o?.Err ?? e)(
|
|
938
|
+
let a = t._zod.run({ value: n, issues: [] }, s);
|
|
939
|
+
if (a instanceof Promise && (a = await a), a.issues.length) {
|
|
940
|
+
const u = new (o?.Err ?? e)(a.issues.map((d) => U(d, s, R())));
|
|
939
941
|
throw ct(u, o?.callee), u;
|
|
940
942
|
}
|
|
941
|
-
return
|
|
942
|
-
},
|
|
943
|
+
return a.value;
|
|
944
|
+
}, ae = (e) => (t, n, r) => {
|
|
943
945
|
const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
|
|
944
946
|
if (s instanceof Promise)
|
|
945
947
|
throw new Q();
|
|
946
948
|
return s.issues.length ? {
|
|
947
949
|
success: !1,
|
|
948
|
-
error: new (e ?? ht)(s.issues.map((
|
|
950
|
+
error: new (e ?? ht)(s.issues.map((a) => U(a, o, R())))
|
|
949
951
|
} : { success: !0, data: s.value };
|
|
950
|
-
}, Ln = /* @__PURE__ */
|
|
952
|
+
}, Ln = /* @__PURE__ */ ae(ft), ie = (e) => async (t, n, r) => {
|
|
951
953
|
const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
952
954
|
let s = t._zod.run({ value: n, issues: [] }, o);
|
|
953
955
|
return s instanceof Promise && (s = await s), s.issues.length ? {
|
|
954
956
|
success: !1,
|
|
955
|
-
error: new e(s.issues.map((
|
|
957
|
+
error: new e(s.issues.map((a) => U(a, o, R())))
|
|
956
958
|
} : { success: !0, data: s.value };
|
|
957
|
-
}, Bn = /* @__PURE__ */
|
|
959
|
+
}, Bn = /* @__PURE__ */ ie(ft), Wn = (e) => (t, n, r) => {
|
|
958
960
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
959
961
|
return ge(e)(t, n, o);
|
|
960
962
|
}, Kn = (e) => (t, n, r) => ge(e)(t, n, r), Hn = (e) => async (t, n, r) => {
|
|
961
963
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
962
964
|
return ve(e)(t, n, o);
|
|
963
965
|
}, Vn = (e) => async (t, n, r) => ve(e)(t, n, r), Jn = (e) => (t, n, r) => {
|
|
964
|
-
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
965
|
-
return ie(e)(t, n, o);
|
|
966
|
-
}, Gn = (e) => (t, n, r) => ie(e)(t, n, r), Yn = (e) => async (t, n, r) => {
|
|
967
966
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
968
967
|
return ae(e)(t, n, o);
|
|
969
|
-
},
|
|
968
|
+
}, Gn = (e) => (t, n, r) => ae(e)(t, n, r), Yn = (e) => async (t, n, r) => {
|
|
969
|
+
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
970
|
+
return ie(e)(t, n, o);
|
|
971
|
+
}, Xn = (e) => async (t, n, r) => ie(e)(t, n, r), er = /^[cC][^\s-]{8,}$/, tr = /^[0-9a-z]+$/, nr = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, rr = /^[0-9a-vA-V]{20}$/, or = /^[A-Za-z0-9]{27}$/, sr = /^[a-zA-Z0-9_-]{21}$/, ar = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, ir = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Ae = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, cr = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, ur = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
970
972
|
function lr() {
|
|
971
973
|
return new RegExp(ur, "u");
|
|
972
974
|
}
|
|
@@ -987,12 +989,12 @@ function wr(e) {
|
|
|
987
989
|
const br = (e) => {
|
|
988
990
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
989
991
|
return new RegExp(`^${t}$`);
|
|
990
|
-
}, zr = /^[^A-Z]*$/, kr = /^[^a-z]*$/,
|
|
992
|
+
}, zr = /^[^A-Z]*$/, kr = /^[^a-z]*$/, D = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
|
|
991
993
|
var n;
|
|
992
994
|
e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
993
995
|
}), xr = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
|
|
994
996
|
var n;
|
|
995
|
-
|
|
997
|
+
D.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
996
998
|
const o = r.value;
|
|
997
999
|
return !fe(o) && o.length !== void 0;
|
|
998
1000
|
}), e._zod.onattach.push((r) => {
|
|
@@ -1002,9 +1004,9 @@ const br = (e) => {
|
|
|
1002
1004
|
const o = r.value;
|
|
1003
1005
|
if (o.length <= t.maximum)
|
|
1004
1006
|
return;
|
|
1005
|
-
const
|
|
1007
|
+
const a = me(o);
|
|
1006
1008
|
r.issues.push({
|
|
1007
|
-
origin:
|
|
1009
|
+
origin: a,
|
|
1008
1010
|
code: "too_big",
|
|
1009
1011
|
maximum: t.maximum,
|
|
1010
1012
|
inclusive: !0,
|
|
@@ -1015,7 +1017,7 @@ const br = (e) => {
|
|
|
1015
1017
|
};
|
|
1016
1018
|
}), Zr = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
|
|
1017
1019
|
var n;
|
|
1018
|
-
|
|
1020
|
+
D.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
1019
1021
|
const o = r.value;
|
|
1020
1022
|
return !fe(o) && o.length !== void 0;
|
|
1021
1023
|
}), e._zod.onattach.push((r) => {
|
|
@@ -1025,9 +1027,9 @@ const br = (e) => {
|
|
|
1025
1027
|
const o = r.value;
|
|
1026
1028
|
if (o.length >= t.minimum)
|
|
1027
1029
|
return;
|
|
1028
|
-
const
|
|
1030
|
+
const a = me(o);
|
|
1029
1031
|
r.issues.push({
|
|
1030
|
-
origin:
|
|
1032
|
+
origin: a,
|
|
1031
1033
|
code: "too_small",
|
|
1032
1034
|
minimum: t.minimum,
|
|
1033
1035
|
inclusive: !0,
|
|
@@ -1038,7 +1040,7 @@ const br = (e) => {
|
|
|
1038
1040
|
};
|
|
1039
1041
|
}), $r = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
|
|
1040
1042
|
var n;
|
|
1041
|
-
|
|
1043
|
+
D.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
1042
1044
|
const o = r.value;
|
|
1043
1045
|
return !fe(o) && o.length !== void 0;
|
|
1044
1046
|
}), e._zod.onattach.push((r) => {
|
|
@@ -1048,9 +1050,9 @@ const br = (e) => {
|
|
|
1048
1050
|
const o = r.value, s = o.length;
|
|
1049
1051
|
if (s === t.length)
|
|
1050
1052
|
return;
|
|
1051
|
-
const
|
|
1053
|
+
const a = me(o), u = s > t.length;
|
|
1052
1054
|
r.issues.push({
|
|
1053
|
-
origin:
|
|
1055
|
+
origin: a,
|
|
1054
1056
|
...u ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
|
|
1055
1057
|
inclusive: !0,
|
|
1056
1058
|
exact: !0,
|
|
@@ -1061,7 +1063,7 @@ const br = (e) => {
|
|
|
1061
1063
|
};
|
|
1062
1064
|
}), ce = /* @__PURE__ */ c("$ZodCheckStringFormat", (e, t) => {
|
|
1063
1065
|
var n, r;
|
|
1064
|
-
|
|
1066
|
+
D.init(e, t), e._zod.onattach.push((o) => {
|
|
1065
1067
|
const s = o._zod.bag;
|
|
1066
1068
|
s.format = t.format, t.pattern && (s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(t.pattern));
|
|
1067
1069
|
}), t.pattern ? (n = e._zod).check ?? (n.check = (o) => {
|
|
@@ -1093,7 +1095,7 @@ const br = (e) => {
|
|
|
1093
1095
|
}), Or = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
|
|
1094
1096
|
t.pattern ?? (t.pattern = kr), ce.init(e, t);
|
|
1095
1097
|
}), Er = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
|
|
1096
|
-
|
|
1098
|
+
D.init(e, t);
|
|
1097
1099
|
const n = se(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
1098
1100
|
t.pattern = r, e._zod.onattach.push((o) => {
|
|
1099
1101
|
const s = o._zod.bag;
|
|
@@ -1110,7 +1112,7 @@ const br = (e) => {
|
|
|
1110
1112
|
});
|
|
1111
1113
|
};
|
|
1112
1114
|
}), Ar = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
|
|
1113
|
-
|
|
1115
|
+
D.init(e, t);
|
|
1114
1116
|
const n = new RegExp(`^${se(t.prefix)}.*`);
|
|
1115
1117
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
1116
1118
|
const o = r._zod.bag;
|
|
@@ -1127,7 +1129,7 @@ const br = (e) => {
|
|
|
1127
1129
|
});
|
|
1128
1130
|
};
|
|
1129
1131
|
}), Tr = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
|
|
1130
|
-
|
|
1132
|
+
D.init(e, t);
|
|
1131
1133
|
const n = new RegExp(`.*${se(t.suffix)}$`);
|
|
1132
1134
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
1133
1135
|
const o = r._zod.bag;
|
|
@@ -1144,7 +1146,7 @@ const br = (e) => {
|
|
|
1144
1146
|
});
|
|
1145
1147
|
};
|
|
1146
1148
|
}), Dr = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
|
|
1147
|
-
|
|
1149
|
+
D.init(e, t), e._zod.check = (n) => {
|
|
1148
1150
|
n.value = t.tx(n.value);
|
|
1149
1151
|
};
|
|
1150
1152
|
});
|
|
@@ -1161,9 +1163,9 @@ class Sr {
|
|
|
1161
1163
|
return;
|
|
1162
1164
|
}
|
|
1163
1165
|
const r = t.split(`
|
|
1164
|
-
`).filter((
|
|
1165
|
-
for (const
|
|
1166
|
-
this.content.push(
|
|
1166
|
+
`).filter((a) => a), o = Math.min(...r.map((a) => a.length - a.trimStart().length)), s = r.map((a) => a.slice(o)).map((a) => " ".repeat(this.indent * 2) + a);
|
|
1167
|
+
for (const a of s)
|
|
1168
|
+
this.content.push(a);
|
|
1167
1169
|
}
|
|
1168
1170
|
compile() {
|
|
1169
1171
|
const t = Function, n = this?.args, o = [...(this?.content ?? [""]).map((s) => ` ${s}`)];
|
|
@@ -1188,31 +1190,31 @@ const Ir = {
|
|
|
1188
1190
|
e._zod.run = e._zod.parse;
|
|
1189
1191
|
});
|
|
1190
1192
|
else {
|
|
1191
|
-
const o = (
|
|
1192
|
-
let l =
|
|
1193
|
+
const o = (a, u, d) => {
|
|
1194
|
+
let l = q(a), f;
|
|
1193
1195
|
for (const g of u) {
|
|
1194
1196
|
if (g._zod.def.when) {
|
|
1195
|
-
if (!g._zod.def.when(
|
|
1197
|
+
if (!g._zod.def.when(a))
|
|
1196
1198
|
continue;
|
|
1197
1199
|
} else if (l)
|
|
1198
1200
|
continue;
|
|
1199
|
-
const p =
|
|
1201
|
+
const p = a.issues.length, v = g._zod.check(a);
|
|
1200
1202
|
if (v instanceof Promise && d?.async === !1)
|
|
1201
1203
|
throw new Q();
|
|
1202
1204
|
if (f || v instanceof Promise)
|
|
1203
1205
|
f = (f ?? Promise.resolve()).then(async () => {
|
|
1204
|
-
await v,
|
|
1206
|
+
await v, a.issues.length !== p && (l || (l = q(a, p)));
|
|
1205
1207
|
});
|
|
1206
1208
|
else {
|
|
1207
|
-
if (
|
|
1209
|
+
if (a.issues.length === p)
|
|
1208
1210
|
continue;
|
|
1209
|
-
l || (l =
|
|
1211
|
+
l || (l = q(a, p));
|
|
1210
1212
|
}
|
|
1211
1213
|
}
|
|
1212
|
-
return f ? f.then(() =>
|
|
1213
|
-
}, s = (
|
|
1214
|
-
if (
|
|
1215
|
-
return
|
|
1214
|
+
return f ? f.then(() => a) : a;
|
|
1215
|
+
}, s = (a, u, d) => {
|
|
1216
|
+
if (q(a))
|
|
1217
|
+
return a.aborted = !0, a;
|
|
1216
1218
|
const l = o(u, r, d);
|
|
1217
1219
|
if (l instanceof Promise) {
|
|
1218
1220
|
if (d.async === !1)
|
|
@@ -1221,14 +1223,14 @@ const Ir = {
|
|
|
1221
1223
|
}
|
|
1222
1224
|
return e._zod.parse(l, d);
|
|
1223
1225
|
};
|
|
1224
|
-
e._zod.run = (
|
|
1226
|
+
e._zod.run = (a, u) => {
|
|
1225
1227
|
if (u.skipChecks)
|
|
1226
|
-
return e._zod.parse(
|
|
1228
|
+
return e._zod.parse(a, u);
|
|
1227
1229
|
if (u.direction === "backward") {
|
|
1228
|
-
const l = e._zod.parse({ value:
|
|
1229
|
-
return l instanceof Promise ? l.then((f) => s(f,
|
|
1230
|
+
const l = e._zod.parse({ value: a.value, issues: [] }, { ...u, skipChecks: !0 });
|
|
1231
|
+
return l instanceof Promise ? l.then((f) => s(f, a, u)) : s(l, a, u);
|
|
1230
1232
|
}
|
|
1231
|
-
const d = e._zod.parse(
|
|
1233
|
+
const d = e._zod.parse(a, u);
|
|
1232
1234
|
if (d instanceof Promise) {
|
|
1233
1235
|
if (u.async === !1)
|
|
1234
1236
|
throw new Q();
|
|
@@ -1243,7 +1245,7 @@ const Ir = {
|
|
|
1243
1245
|
const s = Ln(e, o);
|
|
1244
1246
|
return s.success ? { value: s.data } : { issues: s.error?.issues };
|
|
1245
1247
|
} catch {
|
|
1246
|
-
return Bn(e, o).then((
|
|
1248
|
+
return Bn(e, o).then((a) => a.success ? { value: a.data } : { issues: a.error?.issues });
|
|
1247
1249
|
}
|
|
1248
1250
|
},
|
|
1249
1251
|
vendor: "zod",
|
|
@@ -1266,7 +1268,7 @@ const Ir = {
|
|
|
1266
1268
|
}), y = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
|
|
1267
1269
|
ce.init(e, t), _e.init(e, t);
|
|
1268
1270
|
}), Cr = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
|
|
1269
|
-
t.pattern ?? (t.pattern =
|
|
1271
|
+
t.pattern ?? (t.pattern = ir), y.init(e, t);
|
|
1270
1272
|
}), Nr = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
|
|
1271
1273
|
if (t.version) {
|
|
1272
1274
|
const r = {
|
|
@@ -1321,9 +1323,9 @@ const Ir = {
|
|
|
1321
1323
|
};
|
|
1322
1324
|
}), Fr = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
|
|
1323
1325
|
t.pattern ?? (t.pattern = lr()), y.init(e, t);
|
|
1324
|
-
}),
|
|
1326
|
+
}), Mr = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
|
|
1325
1327
|
t.pattern ?? (t.pattern = sr), y.init(e, t);
|
|
1326
|
-
}),
|
|
1328
|
+
}), qr = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
|
|
1327
1329
|
t.pattern ?? (t.pattern = er), y.init(e, t);
|
|
1328
1330
|
}), Qr = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
|
|
1329
1331
|
t.pattern ?? (t.pattern = tr), y.init(e, t);
|
|
@@ -1340,7 +1342,7 @@ const Ir = {
|
|
|
1340
1342
|
}), Vr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
|
|
1341
1343
|
t.pattern ?? (t.pattern = yr(t)), y.init(e, t);
|
|
1342
1344
|
}), Jr = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
|
|
1343
|
-
t.pattern ?? (t.pattern =
|
|
1345
|
+
t.pattern ?? (t.pattern = ar), y.init(e, t);
|
|
1344
1346
|
}), Gr = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
|
|
1345
1347
|
t.pattern ?? (t.pattern = dr), y.init(e, t), e._zod.onattach.push((n) => {
|
|
1346
1348
|
const r = n._zod.bag;
|
|
@@ -1374,10 +1376,10 @@ const Ir = {
|
|
|
1374
1376
|
const [o, s] = r;
|
|
1375
1377
|
if (!s)
|
|
1376
1378
|
throw new Error();
|
|
1377
|
-
const
|
|
1378
|
-
if (`${
|
|
1379
|
+
const a = Number(s);
|
|
1380
|
+
if (`${a}` !== s)
|
|
1379
1381
|
throw new Error();
|
|
1380
|
-
if (
|
|
1382
|
+
if (a < 0 || a > 128)
|
|
1381
1383
|
throw new Error();
|
|
1382
1384
|
new URL(`http://[${o}]`);
|
|
1383
1385
|
} catch {
|
|
@@ -1450,7 +1452,7 @@ function so(e, t = null) {
|
|
|
1450
1452
|
return !1;
|
|
1451
1453
|
}
|
|
1452
1454
|
}
|
|
1453
|
-
const
|
|
1455
|
+
const ao = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
1454
1456
|
y.init(e, t), e._zod.check = (n) => {
|
|
1455
1457
|
so(n.value, t.alg) || n.issues.push({
|
|
1456
1458
|
code: "invalid_format",
|
|
@@ -1460,7 +1462,7 @@ const io = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
|
1460
1462
|
continue: !t.abort
|
|
1461
1463
|
});
|
|
1462
1464
|
};
|
|
1463
|
-
}),
|
|
1465
|
+
}), io = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
|
|
1464
1466
|
b.init(e, t), e._zod.parse = (n) => n;
|
|
1465
1467
|
}), co = /* @__PURE__ */ c("$ZodNever", (e, t) => {
|
|
1466
1468
|
b.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
|
|
@@ -1485,12 +1487,12 @@ const uo = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
|
1485
1487
|
}), n;
|
|
1486
1488
|
n.value = Array(o.length);
|
|
1487
1489
|
const s = [];
|
|
1488
|
-
for (let
|
|
1489
|
-
const u = o[
|
|
1490
|
+
for (let a = 0; a < o.length; a++) {
|
|
1491
|
+
const u = o[a], d = t.element._zod.run({
|
|
1490
1492
|
value: u,
|
|
1491
1493
|
issues: []
|
|
1492
1494
|
}, r);
|
|
1493
|
-
d instanceof Promise ? s.push(d.then((l) => Te(l, n,
|
|
1495
|
+
d instanceof Promise ? s.push(d.then((l) => Te(l, n, a))) : Te(d, n, a);
|
|
1494
1496
|
}
|
|
1495
1497
|
return s.length ? Promise.all(s).then(() => n) : n;
|
|
1496
1498
|
};
|
|
@@ -1513,20 +1515,20 @@ function _t(e) {
|
|
|
1513
1515
|
};
|
|
1514
1516
|
}
|
|
1515
1517
|
function yt(e, t, n, r, o, s) {
|
|
1516
|
-
const
|
|
1518
|
+
const a = [], u = o.keySet, d = o.catchall._zod, l = d.def.type;
|
|
1517
1519
|
for (const f of Object.keys(t)) {
|
|
1518
1520
|
if (u.has(f))
|
|
1519
1521
|
continue;
|
|
1520
1522
|
if (l === "never") {
|
|
1521
|
-
|
|
1523
|
+
a.push(f);
|
|
1522
1524
|
continue;
|
|
1523
1525
|
}
|
|
1524
1526
|
const g = d.run({ value: t[f], issues: [] }, r);
|
|
1525
1527
|
g instanceof Promise ? e.push(g.then((p) => te(p, n, f, t))) : te(g, n, f, t);
|
|
1526
1528
|
}
|
|
1527
|
-
return
|
|
1529
|
+
return a.length && n.issues.push({
|
|
1528
1530
|
code: "unrecognized_keys",
|
|
1529
|
-
keys:
|
|
1531
|
+
keys: a,
|
|
1530
1532
|
input: t,
|
|
1531
1533
|
inst: s
|
|
1532
1534
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
@@ -1557,9 +1559,9 @@ const lo = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1557
1559
|
return d;
|
|
1558
1560
|
});
|
|
1559
1561
|
const o = ee, s = t.catchall;
|
|
1560
|
-
let
|
|
1562
|
+
let a;
|
|
1561
1563
|
e._zod.parse = (u, d) => {
|
|
1562
|
-
|
|
1564
|
+
a ?? (a = r.value);
|
|
1563
1565
|
const l = u.value;
|
|
1564
1566
|
if (!o(l))
|
|
1565
1567
|
return u.issues.push({
|
|
@@ -1569,8 +1571,8 @@ const lo = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1569
1571
|
inst: e
|
|
1570
1572
|
}), u;
|
|
1571
1573
|
u.value = {};
|
|
1572
|
-
const f = [], g =
|
|
1573
|
-
for (const p of
|
|
1574
|
+
const f = [], g = a.shape;
|
|
1575
|
+
for (const p of a.keys) {
|
|
1574
1576
|
const m = g[p]._zod.run({ value: l[p], issues: [] }, d);
|
|
1575
1577
|
m instanceof Promise ? f.push(m.then((k) => te(k, u, p, l))) : te(m, u, p, l);
|
|
1576
1578
|
}
|
|
@@ -1590,22 +1592,22 @@ const lo = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1590
1592
|
P[$] = `key_${Z++}`;
|
|
1591
1593
|
v.write("const newResult = {};");
|
|
1592
1594
|
for (const $ of m.keys) {
|
|
1593
|
-
const x = P[$],
|
|
1595
|
+
const x = P[$], S = Ee($);
|
|
1594
1596
|
v.write(`const ${x} = ${k($)};`), v.write(`
|
|
1595
1597
|
if (${x}.issues.length) {
|
|
1596
1598
|
payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
|
|
1597
1599
|
...iss,
|
|
1598
|
-
path: iss.path ? [${
|
|
1600
|
+
path: iss.path ? [${S}, ...iss.path] : [${S}]
|
|
1599
1601
|
})));
|
|
1600
1602
|
}
|
|
1601
1603
|
|
|
1602
1604
|
|
|
1603
1605
|
if (${x}.value === undefined) {
|
|
1604
|
-
if (${
|
|
1605
|
-
newResult[${
|
|
1606
|
+
if (${S} in input) {
|
|
1607
|
+
newResult[${S}] = undefined;
|
|
1606
1608
|
}
|
|
1607
1609
|
} else {
|
|
1608
|
-
newResult[${
|
|
1610
|
+
newResult[${S}] = ${x}.value;
|
|
1609
1611
|
}
|
|
1610
1612
|
|
|
1611
1613
|
`);
|
|
@@ -1615,12 +1617,12 @@ const lo = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1615
1617
|
return ($, x) => L(p, $, x);
|
|
1616
1618
|
};
|
|
1617
1619
|
let s;
|
|
1618
|
-
const
|
|
1620
|
+
const a = ee, u = !it.jitless, l = u && Tn.value, f = t.catchall;
|
|
1619
1621
|
let g;
|
|
1620
1622
|
e._zod.parse = (p, v) => {
|
|
1621
1623
|
g ?? (g = r.value);
|
|
1622
1624
|
const m = p.value;
|
|
1623
|
-
return
|
|
1625
|
+
return a(m) ? u && l && v?.async === !1 && v.jitless !== !0 ? (s || (s = o(t.shape)), p = s(p, v), f ? yt([], m, p, v, g, e) : p) : n(p, v) : (p.issues.push({
|
|
1624
1626
|
expected: "object",
|
|
1625
1627
|
code: "invalid_type",
|
|
1626
1628
|
input: m,
|
|
@@ -1632,12 +1634,12 @@ function De(e, t, n, r) {
|
|
|
1632
1634
|
for (const s of e)
|
|
1633
1635
|
if (s.issues.length === 0)
|
|
1634
1636
|
return t.value = s.value, t;
|
|
1635
|
-
const o = e.filter((s) => !
|
|
1637
|
+
const o = e.filter((s) => !q(s));
|
|
1636
1638
|
return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
|
|
1637
1639
|
code: "invalid_union",
|
|
1638
1640
|
input: t.value,
|
|
1639
1641
|
inst: n,
|
|
1640
|
-
errors: e.map((s) => s.issues.map((
|
|
1642
|
+
errors: e.map((s) => s.issues.map((a) => U(a, r, R())))
|
|
1641
1643
|
}), t);
|
|
1642
1644
|
}
|
|
1643
1645
|
const fo = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
@@ -1654,7 +1656,7 @@ const fo = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
|
1654
1656
|
e._zod.parse = (o, s) => {
|
|
1655
1657
|
if (n)
|
|
1656
1658
|
return r(o, s);
|
|
1657
|
-
let
|
|
1659
|
+
let a = !1;
|
|
1658
1660
|
const u = [];
|
|
1659
1661
|
for (const d of t.options) {
|
|
1660
1662
|
const l = d._zod.run({
|
|
@@ -1662,19 +1664,19 @@ const fo = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
|
1662
1664
|
issues: []
|
|
1663
1665
|
}, s);
|
|
1664
1666
|
if (l instanceof Promise)
|
|
1665
|
-
u.push(l),
|
|
1667
|
+
u.push(l), a = !0;
|
|
1666
1668
|
else {
|
|
1667
1669
|
if (l.issues.length === 0)
|
|
1668
1670
|
return l;
|
|
1669
1671
|
u.push(l);
|
|
1670
1672
|
}
|
|
1671
1673
|
}
|
|
1672
|
-
return
|
|
1674
|
+
return a ? Promise.all(u).then((d) => De(d, o, e, s)) : De(u, o, e, s);
|
|
1673
1675
|
};
|
|
1674
1676
|
}), po = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
|
|
1675
1677
|
b.init(e, t), e._zod.parse = (n, r) => {
|
|
1676
|
-
const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r),
|
|
1677
|
-
return s instanceof Promise ||
|
|
1678
|
+
const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), a = t.right._zod.run({ value: o, issues: [] }, r);
|
|
1679
|
+
return s instanceof Promise || a instanceof Promise ? Promise.all([s, a]).then(([d, l]) => Se(n, d, l)) : Se(n, s, a);
|
|
1678
1680
|
};
|
|
1679
1681
|
});
|
|
1680
1682
|
function le(e, t) {
|
|
@@ -1685,13 +1687,13 @@ function le(e, t) {
|
|
|
1685
1687
|
if (B(e) && B(t)) {
|
|
1686
1688
|
const n = Object.keys(t), r = Object.keys(e).filter((s) => n.indexOf(s) !== -1), o = { ...e, ...t };
|
|
1687
1689
|
for (const s of r) {
|
|
1688
|
-
const
|
|
1689
|
-
if (!
|
|
1690
|
+
const a = le(e[s], t[s]);
|
|
1691
|
+
if (!a.valid)
|
|
1690
1692
|
return {
|
|
1691
1693
|
valid: !1,
|
|
1692
|
-
mergeErrorPath: [s, ...
|
|
1694
|
+
mergeErrorPath: [s, ...a.mergeErrorPath]
|
|
1693
1695
|
};
|
|
1694
|
-
o[s] =
|
|
1696
|
+
o[s] = a.data;
|
|
1695
1697
|
}
|
|
1696
1698
|
return { valid: !0, data: o };
|
|
1697
1699
|
}
|
|
@@ -1700,20 +1702,20 @@ function le(e, t) {
|
|
|
1700
1702
|
return { valid: !1, mergeErrorPath: [] };
|
|
1701
1703
|
const n = [];
|
|
1702
1704
|
for (let r = 0; r < e.length; r++) {
|
|
1703
|
-
const o = e[r], s = t[r],
|
|
1704
|
-
if (!
|
|
1705
|
+
const o = e[r], s = t[r], a = le(o, s);
|
|
1706
|
+
if (!a.valid)
|
|
1705
1707
|
return {
|
|
1706
1708
|
valid: !1,
|
|
1707
|
-
mergeErrorPath: [r, ...
|
|
1709
|
+
mergeErrorPath: [r, ...a.mergeErrorPath]
|
|
1708
1710
|
};
|
|
1709
|
-
n.push(
|
|
1711
|
+
n.push(a.data);
|
|
1710
1712
|
}
|
|
1711
1713
|
return { valid: !0, data: n };
|
|
1712
1714
|
}
|
|
1713
1715
|
return { valid: !1, mergeErrorPath: [] };
|
|
1714
1716
|
}
|
|
1715
1717
|
function Se(e, t, n) {
|
|
1716
|
-
if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues),
|
|
1718
|
+
if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), q(e))
|
|
1717
1719
|
return e;
|
|
1718
1720
|
const r = le(t.value, n.value);
|
|
1719
1721
|
if (!r.valid)
|
|
@@ -1724,21 +1726,21 @@ const mo = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
|
1724
1726
|
b.init(e, t);
|
|
1725
1727
|
const n = An(t.entries), r = new Set(n);
|
|
1726
1728
|
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => Dn.has(typeof o)).map((o) => typeof o == "string" ? se(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
|
|
1727
|
-
const
|
|
1728
|
-
return r.has(
|
|
1729
|
+
const a = o.value;
|
|
1730
|
+
return r.has(a) || o.issues.push({
|
|
1729
1731
|
code: "invalid_value",
|
|
1730
1732
|
values: n,
|
|
1731
|
-
input:
|
|
1733
|
+
input: a,
|
|
1732
1734
|
inst: e
|
|
1733
1735
|
}), o;
|
|
1734
1736
|
};
|
|
1735
1737
|
}), go = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
|
|
1736
1738
|
b.init(e, t), e._zod.parse = (n, r) => {
|
|
1737
1739
|
if (r.direction === "backward")
|
|
1738
|
-
throw new
|
|
1740
|
+
throw new at(e.constructor.name);
|
|
1739
1741
|
const o = t.transform(n.value, n);
|
|
1740
1742
|
if (r.async)
|
|
1741
|
-
return (o instanceof Promise ? o : Promise.resolve(o)).then((
|
|
1743
|
+
return (o instanceof Promise ? o : Promise.resolve(o)).then((a) => (n.value = a, n));
|
|
1742
1744
|
if (o instanceof Promise)
|
|
1743
1745
|
throw new Q();
|
|
1744
1746
|
return n.value = o, n;
|
|
@@ -1803,7 +1805,7 @@ const zo = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
|
1803
1805
|
return o instanceof Promise ? o.then((s) => (n.value = s.value, s.issues.length && (n.value = t.catchValue({
|
|
1804
1806
|
...n,
|
|
1805
1807
|
error: {
|
|
1806
|
-
issues: s.issues.map((
|
|
1808
|
+
issues: s.issues.map((a) => U(a, r, R()))
|
|
1807
1809
|
},
|
|
1808
1810
|
input: n.value
|
|
1809
1811
|
}), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
|
|
@@ -1818,7 +1820,7 @@ const zo = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
|
1818
1820
|
b.init(e, t), _(e._zod, "values", () => t.in._zod.values), _(e._zod, "optin", () => t.in._zod.optin), _(e._zod, "optout", () => t.out._zod.optout), _(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
|
|
1819
1821
|
if (r.direction === "backward") {
|
|
1820
1822
|
const s = t.out._zod.run(n, r);
|
|
1821
|
-
return s instanceof Promise ? s.then((
|
|
1823
|
+
return s instanceof Promise ? s.then((a) => G(a, t.in, r)) : G(s, t.in, r);
|
|
1822
1824
|
}
|
|
1823
1825
|
const o = t.in._zod.run(n, r);
|
|
1824
1826
|
return o instanceof Promise ? o.then((s) => G(s, t.out, r)) : G(o, t.out, r);
|
|
@@ -1839,7 +1841,7 @@ function Re(e) {
|
|
|
1839
1841
|
return e.value = Object.freeze(e.value), e;
|
|
1840
1842
|
}
|
|
1841
1843
|
const Zo = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
|
|
1842
|
-
|
|
1844
|
+
D.init(e, t), b.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
|
|
1843
1845
|
const r = n.value, o = t.fn(r);
|
|
1844
1846
|
if (o instanceof Promise)
|
|
1845
1847
|
return o.then((s) => Ue(s, n, r, e));
|
|
@@ -2025,7 +2027,7 @@ function Fo(e, t) {
|
|
|
2025
2027
|
...h(t)
|
|
2026
2028
|
});
|
|
2027
2029
|
}
|
|
2028
|
-
function
|
|
2030
|
+
function Mo(e, t) {
|
|
2029
2031
|
return new e({
|
|
2030
2032
|
type: "string",
|
|
2031
2033
|
format: "ksuid",
|
|
@@ -2034,7 +2036,7 @@ function qo(e, t) {
|
|
|
2034
2036
|
...h(t)
|
|
2035
2037
|
});
|
|
2036
2038
|
}
|
|
2037
|
-
function
|
|
2039
|
+
function qo(e, t) {
|
|
2038
2040
|
return new e({
|
|
2039
2041
|
type: "string",
|
|
2040
2042
|
format: "ipv4",
|
|
@@ -2204,7 +2206,7 @@ function ss(e, t) {
|
|
|
2204
2206
|
includes: e
|
|
2205
2207
|
});
|
|
2206
2208
|
}
|
|
2207
|
-
function
|
|
2209
|
+
function as(e, t) {
|
|
2208
2210
|
return new Ar({
|
|
2209
2211
|
check: "string_format",
|
|
2210
2212
|
format: "starts_with",
|
|
@@ -2212,7 +2214,7 @@ function is(e, t) {
|
|
|
2212
2214
|
prefix: e
|
|
2213
2215
|
});
|
|
2214
2216
|
}
|
|
2215
|
-
function
|
|
2217
|
+
function is(e, t) {
|
|
2216
2218
|
return new Tr({
|
|
2217
2219
|
check: "string_format",
|
|
2218
2220
|
format: "ends_with",
|
|
@@ -2268,7 +2270,7 @@ function ps(e) {
|
|
|
2268
2270
|
return t;
|
|
2269
2271
|
}
|
|
2270
2272
|
function ms(e, t) {
|
|
2271
|
-
const n = new
|
|
2273
|
+
const n = new D({
|
|
2272
2274
|
check: "custom",
|
|
2273
2275
|
...h(t)
|
|
2274
2276
|
});
|
|
@@ -2305,7 +2307,7 @@ const xs = (e, t) => {
|
|
|
2305
2307
|
// enumerable: false,
|
|
2306
2308
|
},
|
|
2307
2309
|
flatten: {
|
|
2308
|
-
value: (n) =>
|
|
2310
|
+
value: (n) => qn(e, n)
|
|
2309
2311
|
// enumerable: false,
|
|
2310
2312
|
},
|
|
2311
2313
|
addIssue: {
|
|
@@ -2329,12 +2331,12 @@ const xs = (e, t) => {
|
|
|
2329
2331
|
});
|
|
2330
2332
|
}, O = c("ZodError", xs, {
|
|
2331
2333
|
Parent: Error
|
|
2332
|
-
}), Zs = /* @__PURE__ */ ge(O), $s = /* @__PURE__ */ ve(O), js = /* @__PURE__ */
|
|
2334
|
+
}), Zs = /* @__PURE__ */ ge(O), $s = /* @__PURE__ */ ve(O), js = /* @__PURE__ */ ae(O), Ps = /* @__PURE__ */ ie(O), Os = /* @__PURE__ */ Wn(O), Es = /* @__PURE__ */ Kn(O), As = /* @__PURE__ */ Hn(O), Ts = /* @__PURE__ */ Vn(O), Ds = /* @__PURE__ */ Jn(O), Ss = /* @__PURE__ */ Gn(O), Is = /* @__PURE__ */ Yn(O), Cs = /* @__PURE__ */ Xn(O), z = /* @__PURE__ */ c("ZodType", (e, t) => (b.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(M(t, {
|
|
2333
2335
|
checks: [
|
|
2334
2336
|
...t.checks ?? [],
|
|
2335
2337
|
...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
2336
2338
|
]
|
|
2337
|
-
})), e.clone = (n, r) => N(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Zs(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => js(e, n, r), e.parseAsync = async (n, r) => $s(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Ps(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => Os(e, n, r), e.decode = (n, r) => Es(e, n, r), e.encodeAsync = async (n, r) => As(e, n, r), e.decodeAsync = async (n, r) => Ts(e, n, r), e.safeEncode = (n, r) => Ds(e, n, r), e.safeDecode = (n, r) => Ss(e, n, r), e.safeEncodeAsync = async (n, r) => Is(e, n, r), e.safeDecodeAsync = async (n, r) => Cs(e, n, r), e.refine = (n, r) => e.check($
|
|
2339
|
+
})), e.clone = (n, r) => N(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Zs(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => js(e, n, r), e.parseAsync = async (n, r) => $s(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Ps(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => Os(e, n, r), e.decode = (n, r) => Es(e, n, r), e.encodeAsync = async (n, r) => As(e, n, r), e.decodeAsync = async (n, r) => Ts(e, n, r), e.safeEncode = (n, r) => Ds(e, n, r), e.safeDecode = (n, r) => Ss(e, n, r), e.safeEncodeAsync = async (n, r) => Is(e, n, r), e.safeDecodeAsync = async (n, r) => Cs(e, n, r), e.refine = (n, r) => e.check($a(n, r)), e.superRefine = (n) => e.check(ja(n)), e.overwrite = (n) => e.check(K(n)), e.optional = () => Le(e), e.nullable = () => Be(e), e.nullish = () => Le(Be(e)), e.nonoptional = (n) => ya(e, n), e.array = () => sa(e), e.or = (n) => ua([e, n]), e.and = (n) => da(e, n), e.transform = (n) => We(e, fa(n)), e.default = (n) => ga(e, n), e.prefault = (n) => _a(e, n), e.catch = (n) => ba(e, n), e.pipe = (n) => We(e, n), e.readonly = () => xa(e), e.describe = (n) => {
|
|
2338
2340
|
const r = e.clone();
|
|
2339
2341
|
return Y.add(r, { description: n }), r;
|
|
2340
2342
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2350,18 +2352,18 @@ const xs = (e, t) => {
|
|
|
2350
2352
|
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), zt = /* @__PURE__ */ c("_ZodString", (e, t) => {
|
|
2351
2353
|
_e.init(e, t), z.init(e, t);
|
|
2352
2354
|
const n = e._zod.bag;
|
|
2353
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(ns(...r)), e.includes = (...r) => e.check(ss(...r)), e.startsWith = (...r) => e.check(
|
|
2355
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(ns(...r)), e.includes = (...r) => e.check(ss(...r)), e.startsWith = (...r) => e.check(as(...r)), e.endsWith = (...r) => e.check(is(...r)), e.min = (...r) => e.check(ne(...r)), e.max = (...r) => e.check(wt(...r)), e.length = (...r) => e.check(bt(...r)), e.nonempty = (...r) => e.check(ne(1, ...r)), e.lowercase = (r) => e.check(rs(r)), e.uppercase = (r) => e.check(os(r)), e.trim = () => e.check(us()), e.normalize = (...r) => e.check(cs(...r)), e.toLowerCase = () => e.check(ls()), e.toUpperCase = () => e.check(ds());
|
|
2354
2356
|
}), Ns = /* @__PURE__ */ c("ZodString", (e, t) => {
|
|
2355
|
-
_e.init(e, t), zt.init(e, t), e.email = (n) => e.check(Oo(Rs, n)), e.url = (n) => e.check(So(Us, n)), e.jwt = (n) => e.check(Vo(
|
|
2357
|
+
_e.init(e, t), zt.init(e, t), e.email = (n) => e.check(Oo(Rs, n)), e.url = (n) => e.check(So(Us, n)), e.jwt = (n) => e.check(Vo(ea, n)), e.emoji = (n) => e.check(Io(Fs, n)), e.guid = (n) => e.check(Fe(qe, n)), e.uuid = (n) => e.check(Eo(X, n)), e.uuidv4 = (n) => e.check(Ao(X, n)), e.uuidv6 = (n) => e.check(To(X, n)), e.uuidv7 = (n) => e.check(Do(X, n)), e.nanoid = (n) => e.check(Co(Ms, n)), e.guid = (n) => e.check(Fe(qe, n)), e.cuid = (n) => e.check(No(qs, n)), e.cuid2 = (n) => e.check(Ro(Qs, n)), e.ulid = (n) => e.check(Uo(Ls, n)), e.base64 = (n) => e.check(Wo(Gs, n)), e.base64url = (n) => e.check(Ko(Ys, n)), e.xid = (n) => e.check(Fo(Bs, n)), e.ksuid = (n) => e.check(Mo(Ws, n)), e.ipv4 = (n) => e.check(qo(Ks, n)), e.ipv6 = (n) => e.check(Qo(Hs, n)), e.cidrv4 = (n) => e.check(Lo(Vs, n)), e.cidrv6 = (n) => e.check(Bo(Js, n)), e.e164 = (n) => e.check(Ho(Xs, n)), e.datetime = (n) => e.check(vs(n)), e.date = (n) => e.check(ys(n)), e.time = (n) => e.check(bs(n)), e.duration = (n) => e.check(ks(n));
|
|
2356
2358
|
});
|
|
2357
|
-
function
|
|
2359
|
+
function Me(e) {
|
|
2358
2360
|
return Po(Ns, e);
|
|
2359
2361
|
}
|
|
2360
2362
|
const w = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
|
|
2361
2363
|
y.init(e, t), zt.init(e, t);
|
|
2362
2364
|
}), Rs = /* @__PURE__ */ c("ZodEmail", (e, t) => {
|
|
2363
2365
|
Rr.init(e, t), w.init(e, t);
|
|
2364
|
-
}),
|
|
2366
|
+
}), qe = /* @__PURE__ */ c("ZodGUID", (e, t) => {
|
|
2365
2367
|
Cr.init(e, t), w.init(e, t);
|
|
2366
2368
|
}), X = /* @__PURE__ */ c("ZodUUID", (e, t) => {
|
|
2367
2369
|
Nr.init(e, t), w.init(e, t);
|
|
@@ -2369,10 +2371,10 @@ const w = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
|
|
|
2369
2371
|
Ur.init(e, t), w.init(e, t);
|
|
2370
2372
|
}), Fs = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
|
|
2371
2373
|
Fr.init(e, t), w.init(e, t);
|
|
2372
|
-
}),
|
|
2373
|
-
qr.init(e, t), w.init(e, t);
|
|
2374
|
-
}), Ms = /* @__PURE__ */ c("ZodCUID", (e, t) => {
|
|
2374
|
+
}), Ms = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
|
|
2375
2375
|
Mr.init(e, t), w.init(e, t);
|
|
2376
|
+
}), qs = /* @__PURE__ */ c("ZodCUID", (e, t) => {
|
|
2377
|
+
qr.init(e, t), w.init(e, t);
|
|
2376
2378
|
}), Qs = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
|
|
2377
2379
|
Qr.init(e, t), w.init(e, t);
|
|
2378
2380
|
}), Ls = /* @__PURE__ */ c("ZodULID", (e, t) => {
|
|
@@ -2395,52 +2397,52 @@ const w = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
|
|
|
2395
2397
|
ro.init(e, t), w.init(e, t);
|
|
2396
2398
|
}), Xs = /* @__PURE__ */ c("ZodE164", (e, t) => {
|
|
2397
2399
|
oo.init(e, t), w.init(e, t);
|
|
2398
|
-
}),
|
|
2399
|
-
|
|
2400
|
-
}),
|
|
2401
|
-
|
|
2400
|
+
}), ea = /* @__PURE__ */ c("ZodJWT", (e, t) => {
|
|
2401
|
+
ao.init(e, t), w.init(e, t);
|
|
2402
|
+
}), ta = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
|
|
2403
|
+
io.init(e, t), z.init(e, t);
|
|
2402
2404
|
});
|
|
2403
2405
|
function Qe() {
|
|
2404
|
-
return es(
|
|
2406
|
+
return es(ta);
|
|
2405
2407
|
}
|
|
2406
|
-
const
|
|
2408
|
+
const na = /* @__PURE__ */ c("ZodNever", (e, t) => {
|
|
2407
2409
|
co.init(e, t), z.init(e, t);
|
|
2408
2410
|
});
|
|
2409
|
-
function
|
|
2410
|
-
return ts(
|
|
2411
|
+
function ra(e) {
|
|
2412
|
+
return ts(na, e);
|
|
2411
2413
|
}
|
|
2412
|
-
const
|
|
2414
|
+
const oa = /* @__PURE__ */ c("ZodArray", (e, t) => {
|
|
2413
2415
|
uo.init(e, t), z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(ne(n, r)), e.nonempty = (n) => e.check(ne(1, n)), e.max = (n, r) => e.check(wt(n, r)), e.length = (n, r) => e.check(bt(n, r)), e.unwrap = () => e.element;
|
|
2414
2416
|
});
|
|
2415
|
-
function
|
|
2416
|
-
return hs(
|
|
2417
|
+
function sa(e, t) {
|
|
2418
|
+
return hs(oa, e, t);
|
|
2417
2419
|
}
|
|
2418
|
-
const
|
|
2419
|
-
ho.init(e, t), z.init(e, t), _(e, "shape", () => t.shape), e.keyof = () => kt(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Qe() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Qe() }), e.strict = () => e.clone({ ...e._zod.def, catchall:
|
|
2420
|
+
const aa = /* @__PURE__ */ c("ZodObject", (e, t) => {
|
|
2421
|
+
ho.init(e, t), z.init(e, t), _(e, "shape", () => t.shape), e.keyof = () => kt(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Qe() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Qe() }), e.strict = () => e.clone({ ...e._zod.def, catchall: ra() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => Nn(e, n), e.safeExtend = (n) => Rn(e, n), e.merge = (n) => Un(e, n), e.pick = (n) => In(e, n), e.omit = (n) => Cn(e, n), e.partial = (...n) => Fn(xt, e, n[0]), e.required = (...n) => Mn(Zt, e, n[0]);
|
|
2420
2422
|
});
|
|
2421
|
-
function
|
|
2423
|
+
function ia(e, t) {
|
|
2422
2424
|
const n = {
|
|
2423
2425
|
type: "object",
|
|
2424
2426
|
shape: e ?? {},
|
|
2425
2427
|
...h(t)
|
|
2426
2428
|
};
|
|
2427
|
-
return new
|
|
2429
|
+
return new aa(n);
|
|
2428
2430
|
}
|
|
2429
|
-
const
|
|
2431
|
+
const ca = /* @__PURE__ */ c("ZodUnion", (e, t) => {
|
|
2430
2432
|
fo.init(e, t), z.init(e, t), e.options = t.options;
|
|
2431
2433
|
});
|
|
2432
|
-
function
|
|
2433
|
-
return new
|
|
2434
|
+
function ua(e, t) {
|
|
2435
|
+
return new ca({
|
|
2434
2436
|
type: "union",
|
|
2435
2437
|
options: e,
|
|
2436
2438
|
...h(t)
|
|
2437
2439
|
});
|
|
2438
2440
|
}
|
|
2439
|
-
const
|
|
2441
|
+
const la = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
|
|
2440
2442
|
po.init(e, t), z.init(e, t);
|
|
2441
2443
|
});
|
|
2442
|
-
function
|
|
2443
|
-
return new
|
|
2444
|
+
function da(e, t) {
|
|
2445
|
+
return new la({
|
|
2444
2446
|
type: "intersection",
|
|
2445
2447
|
left: e,
|
|
2446
2448
|
right: t
|
|
@@ -2451,11 +2453,11 @@ const de = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
|
2451
2453
|
const n = new Set(Object.keys(t.entries));
|
|
2452
2454
|
e.extract = (r, o) => {
|
|
2453
2455
|
const s = {};
|
|
2454
|
-
for (const
|
|
2455
|
-
if (n.has(
|
|
2456
|
-
s[
|
|
2456
|
+
for (const a of r)
|
|
2457
|
+
if (n.has(a))
|
|
2458
|
+
s[a] = t.entries[a];
|
|
2457
2459
|
else
|
|
2458
|
-
throw new Error(`Key ${
|
|
2460
|
+
throw new Error(`Key ${a} not found in enum`);
|
|
2459
2461
|
return new de({
|
|
2460
2462
|
...t,
|
|
2461
2463
|
checks: [],
|
|
@@ -2464,11 +2466,11 @@ const de = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
|
2464
2466
|
});
|
|
2465
2467
|
}, e.exclude = (r, o) => {
|
|
2466
2468
|
const s = { ...t.entries };
|
|
2467
|
-
for (const
|
|
2468
|
-
if (n.has(
|
|
2469
|
-
delete s[
|
|
2469
|
+
for (const a of r)
|
|
2470
|
+
if (n.has(a))
|
|
2471
|
+
delete s[a];
|
|
2470
2472
|
else
|
|
2471
|
-
throw new Error(`Key ${
|
|
2473
|
+
throw new Error(`Key ${a} not found in enum`);
|
|
2472
2474
|
return new de({
|
|
2473
2475
|
...t,
|
|
2474
2476
|
checks: [],
|
|
@@ -2485,24 +2487,24 @@ function kt(e, t) {
|
|
|
2485
2487
|
...h(t)
|
|
2486
2488
|
});
|
|
2487
2489
|
}
|
|
2488
|
-
const
|
|
2490
|
+
const ha = /* @__PURE__ */ c("ZodTransform", (e, t) => {
|
|
2489
2491
|
go.init(e, t), z.init(e, t), e._zod.parse = (n, r) => {
|
|
2490
2492
|
if (r.direction === "backward")
|
|
2491
|
-
throw new
|
|
2493
|
+
throw new at(e.constructor.name);
|
|
2492
2494
|
n.addIssue = (s) => {
|
|
2493
2495
|
if (typeof s == "string")
|
|
2494
2496
|
n.issues.push(W(s, n.value, t));
|
|
2495
2497
|
else {
|
|
2496
|
-
const
|
|
2497
|
-
|
|
2498
|
+
const a = s;
|
|
2499
|
+
a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = n.value), a.inst ?? (a.inst = e), n.issues.push(W(a));
|
|
2498
2500
|
}
|
|
2499
2501
|
};
|
|
2500
2502
|
const o = t.transform(n.value, n);
|
|
2501
2503
|
return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
|
|
2502
2504
|
};
|
|
2503
2505
|
});
|
|
2504
|
-
function
|
|
2505
|
-
return new
|
|
2506
|
+
function fa(e) {
|
|
2507
|
+
return new ha({
|
|
2506
2508
|
type: "transform",
|
|
2507
2509
|
transform: e
|
|
2508
2510
|
});
|
|
@@ -2516,20 +2518,20 @@ function Le(e) {
|
|
|
2516
2518
|
innerType: e
|
|
2517
2519
|
});
|
|
2518
2520
|
}
|
|
2519
|
-
const
|
|
2521
|
+
const pa = /* @__PURE__ */ c("ZodNullable", (e, t) => {
|
|
2520
2522
|
_o.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2521
2523
|
});
|
|
2522
2524
|
function Be(e) {
|
|
2523
|
-
return new
|
|
2525
|
+
return new pa({
|
|
2524
2526
|
type: "nullable",
|
|
2525
2527
|
innerType: e
|
|
2526
2528
|
});
|
|
2527
2529
|
}
|
|
2528
|
-
const
|
|
2530
|
+
const ma = /* @__PURE__ */ c("ZodDefault", (e, t) => {
|
|
2529
2531
|
yo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2530
2532
|
});
|
|
2531
|
-
function
|
|
2532
|
-
return new
|
|
2533
|
+
function ga(e, t) {
|
|
2534
|
+
return new ma({
|
|
2533
2535
|
type: "default",
|
|
2534
2536
|
innerType: e,
|
|
2535
2537
|
get defaultValue() {
|
|
@@ -2537,11 +2539,11 @@ function gi(e, t) {
|
|
|
2537
2539
|
}
|
|
2538
2540
|
});
|
|
2539
2541
|
}
|
|
2540
|
-
const
|
|
2542
|
+
const va = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
|
|
2541
2543
|
wo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2542
2544
|
});
|
|
2543
|
-
function
|
|
2544
|
-
return new
|
|
2545
|
+
function _a(e, t) {
|
|
2546
|
+
return new va({
|
|
2545
2547
|
type: "prefault",
|
|
2546
2548
|
innerType: e,
|
|
2547
2549
|
get defaultValue() {
|
|
@@ -2552,57 +2554,57 @@ function _i(e, t) {
|
|
|
2552
2554
|
const Zt = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
|
|
2553
2555
|
bo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2554
2556
|
});
|
|
2555
|
-
function
|
|
2557
|
+
function ya(e, t) {
|
|
2556
2558
|
return new Zt({
|
|
2557
2559
|
type: "nonoptional",
|
|
2558
2560
|
innerType: e,
|
|
2559
2561
|
...h(t)
|
|
2560
2562
|
});
|
|
2561
2563
|
}
|
|
2562
|
-
const
|
|
2564
|
+
const wa = /* @__PURE__ */ c("ZodCatch", (e, t) => {
|
|
2563
2565
|
zo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2564
2566
|
});
|
|
2565
|
-
function
|
|
2566
|
-
return new
|
|
2567
|
+
function ba(e, t) {
|
|
2568
|
+
return new wa({
|
|
2567
2569
|
type: "catch",
|
|
2568
2570
|
innerType: e,
|
|
2569
2571
|
catchValue: typeof t == "function" ? t : () => t
|
|
2570
2572
|
});
|
|
2571
2573
|
}
|
|
2572
|
-
const
|
|
2574
|
+
const za = /* @__PURE__ */ c("ZodPipe", (e, t) => {
|
|
2573
2575
|
ko.init(e, t), z.init(e, t), e.in = t.in, e.out = t.out;
|
|
2574
2576
|
});
|
|
2575
2577
|
function We(e, t) {
|
|
2576
|
-
return new
|
|
2578
|
+
return new za({
|
|
2577
2579
|
type: "pipe",
|
|
2578
2580
|
in: e,
|
|
2579
2581
|
out: t
|
|
2580
2582
|
// ...util.normalizeParams(params),
|
|
2581
2583
|
});
|
|
2582
2584
|
}
|
|
2583
|
-
const
|
|
2585
|
+
const ka = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
|
|
2584
2586
|
xo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2585
2587
|
});
|
|
2586
|
-
function
|
|
2587
|
-
return new
|
|
2588
|
+
function xa(e) {
|
|
2589
|
+
return new ka({
|
|
2588
2590
|
type: "readonly",
|
|
2589
2591
|
innerType: e
|
|
2590
2592
|
});
|
|
2591
2593
|
}
|
|
2592
|
-
const
|
|
2594
|
+
const Za = /* @__PURE__ */ c("ZodCustom", (e, t) => {
|
|
2593
2595
|
Zo.init(e, t), z.init(e, t);
|
|
2594
2596
|
});
|
|
2595
|
-
function $
|
|
2596
|
-
return fs(
|
|
2597
|
+
function $a(e, t = {}) {
|
|
2598
|
+
return fs(Za, e, t);
|
|
2597
2599
|
}
|
|
2598
|
-
function
|
|
2600
|
+
function ja(e) {
|
|
2599
2601
|
return ps(e);
|
|
2600
2602
|
}
|
|
2601
|
-
const
|
|
2602
|
-
buildId:
|
|
2603
|
-
timestamp:
|
|
2603
|
+
const Pa = ia({
|
|
2604
|
+
buildId: Me(),
|
|
2605
|
+
timestamp: Me(),
|
|
2604
2606
|
status: kt(["in-progress", "success", "failed"])
|
|
2605
|
-
}),
|
|
2607
|
+
}), Oa = ({
|
|
2606
2608
|
buildId: e,
|
|
2607
2609
|
environmentType: t,
|
|
2608
2610
|
endpoint: n = "/__zuplo/docs"
|
|
@@ -2615,23 +2617,23 @@ const Pi = ai({
|
|
|
2615
2617
|
queryFn: () => fetch(n, { signal: AbortSignal.timeout(2e3) }).then((s) => {
|
|
2616
2618
|
if (!s.ok) throw new Error("Failed to fetch build status");
|
|
2617
2619
|
return s.json();
|
|
2618
|
-
}).then((s) =>
|
|
2620
|
+
}).then((s) => Pa.parse(s))
|
|
2619
2621
|
});
|
|
2620
2622
|
if (oe(() => {
|
|
2621
2623
|
r.data?.status === "success" && r.data.buildId && (document.cookie = `zuplo-build=${r.data.buildId}; path=/; max-age=300; secure; SameSite=None`);
|
|
2622
2624
|
}, [r.data]), r.isError || !r.data || r.data.buildId === e)
|
|
2623
2625
|
return null;
|
|
2624
2626
|
const o = r.data.status === "success";
|
|
2625
|
-
return /* @__PURE__ */
|
|
2626
|
-
o ? /* @__PURE__ */
|
|
2627
|
-
/* @__PURE__ */
|
|
2628
|
-
/* @__PURE__ */
|
|
2629
|
-
] }) : /* @__PURE__ */
|
|
2630
|
-
/* @__PURE__ */
|
|
2631
|
-
/* @__PURE__ */
|
|
2627
|
+
return /* @__PURE__ */ i.jsxs("div", { className: "fixed flex flex-col gap-3 p-4 rounded-xl w-96 border z-20 bg-background left-0 right-0 top-4 mx-auto shadow-lg", children: [
|
|
2628
|
+
o ? /* @__PURE__ */ i.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2629
|
+
/* @__PURE__ */ i.jsx(dn, { size: 16 }),
|
|
2630
|
+
/* @__PURE__ */ i.jsx("span", { className: "text-sm", children: "New version available" })
|
|
2631
|
+
] }) : /* @__PURE__ */ i.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2632
|
+
/* @__PURE__ */ i.jsx(hn, { size: 16, className: "animate-spin" }),
|
|
2633
|
+
/* @__PURE__ */ i.jsx("span", { className: "text-sm", children: "Building new version..." })
|
|
2632
2634
|
] }),
|
|
2633
|
-
/* @__PURE__ */
|
|
2634
|
-
o && /* @__PURE__ */
|
|
2635
|
+
/* @__PURE__ */ i.jsx("span", { className: "text-xs", children: o ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
|
|
2636
|
+
o && /* @__PURE__ */ i.jsx(
|
|
2635
2637
|
gn,
|
|
2636
2638
|
{
|
|
2637
2639
|
variant: "outline",
|
|
@@ -2644,25 +2646,25 @@ const Pi = ai({
|
|
|
2644
2646
|
}
|
|
2645
2647
|
)
|
|
2646
2648
|
] });
|
|
2647
|
-
},
|
|
2649
|
+
}, Ea = () => {
|
|
2648
2650
|
const e = et(), t = Xe(e.pathname);
|
|
2649
2651
|
oe(() => {
|
|
2650
2652
|
const n = t.current !== e.pathname, r = e.hash !== "";
|
|
2651
2653
|
n && !r && window.scrollTo(0, 0), t.current = e.pathname;
|
|
2652
2654
|
}, [e.pathname, e.hash]);
|
|
2653
|
-
},
|
|
2655
|
+
}, Aa = ({
|
|
2654
2656
|
icon: e
|
|
2655
|
-
}) => typeof e == "string" ? /* @__PURE__ */
|
|
2657
|
+
}) => typeof e == "string" ? /* @__PURE__ */ i.jsx(
|
|
2656
2658
|
"img",
|
|
2657
2659
|
{
|
|
2658
2660
|
src: `https://cdn.simpleicons.org/${e}/000000/ffffff`,
|
|
2659
2661
|
className: "size-5",
|
|
2660
2662
|
alt: e
|
|
2661
2663
|
}
|
|
2662
|
-
) : e,
|
|
2664
|
+
) : e, Ta = (e) => /^https?:/.test(e), Da = () => {
|
|
2663
2665
|
const { site: e } = tn(), t = e?.footer;
|
|
2664
|
-
return t ? /* @__PURE__ */
|
|
2665
|
-
/* @__PURE__ */
|
|
2666
|
+
return t ? /* @__PURE__ */ i.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ i.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
|
|
2667
|
+
/* @__PURE__ */ i.jsxs(
|
|
2666
2668
|
"div",
|
|
2667
2669
|
{
|
|
2668
2670
|
className: E("flex flex-row gap-8", {
|
|
@@ -2671,13 +2673,13 @@ const Pi = ai({
|
|
|
2671
2673
|
"justify-end": t.position === "end"
|
|
2672
2674
|
}),
|
|
2673
2675
|
children: [
|
|
2674
|
-
/* @__PURE__ */
|
|
2675
|
-
t.columns && /* @__PURE__ */
|
|
2676
|
+
/* @__PURE__ */ i.jsx(C.Target, { name: "footer-before" }),
|
|
2677
|
+
t.columns && /* @__PURE__ */ i.jsx(
|
|
2676
2678
|
"div",
|
|
2677
2679
|
{
|
|
2678
2680
|
className: "w-full md:max-w-screen-md grid grid-cols-[1fr_1fr] gap-8 md:grid-cols-[repeat(var(--columns),minmax(0,1fr))]",
|
|
2679
2681
|
style: { "--columns": t.columns.length },
|
|
2680
|
-
children: t.columns.map((n) => /* @__PURE__ */
|
|
2682
|
+
children: t.columns.map((n) => /* @__PURE__ */ i.jsxs(
|
|
2681
2683
|
"div",
|
|
2682
2684
|
{
|
|
2683
2685
|
className: E({
|
|
@@ -2686,10 +2688,10 @@ const Pi = ai({
|
|
|
2686
2688
|
"justify-self-end": n.position === "end"
|
|
2687
2689
|
}),
|
|
2688
2690
|
children: [
|
|
2689
|
-
/* @__PURE__ */
|
|
2690
|
-
/* @__PURE__ */
|
|
2691
|
+
/* @__PURE__ */ i.jsx("span", { className: "text-sm font-semibold", children: n.title }),
|
|
2692
|
+
/* @__PURE__ */ i.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((r) => {
|
|
2691
2693
|
const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
|
|
2692
|
-
return /* @__PURE__ */
|
|
2694
|
+
return /* @__PURE__ */ i.jsx("li", { children: Ta(r.href) ? /* @__PURE__ */ i.jsxs(
|
|
2693
2695
|
"a",
|
|
2694
2696
|
{
|
|
2695
2697
|
href: r.href,
|
|
@@ -2697,11 +2699,11 @@ const Pi = ai({
|
|
|
2697
2699
|
rel: "noopener noreferrer",
|
|
2698
2700
|
className: o,
|
|
2699
2701
|
children: [
|
|
2700
|
-
/* @__PURE__ */
|
|
2701
|
-
/* @__PURE__ */
|
|
2702
|
+
/* @__PURE__ */ i.jsx("span", { children: r.label }),
|
|
2703
|
+
/* @__PURE__ */ i.jsx(fn, { size: 12 })
|
|
2702
2704
|
]
|
|
2703
2705
|
}
|
|
2704
|
-
) : /* @__PURE__ */
|
|
2706
|
+
) : /* @__PURE__ */ i.jsx(nn, { to: r.href, className: o, children: /* @__PURE__ */ i.jsx("span", { children: r.label }) }) }, r.href + r.label);
|
|
2705
2707
|
}) })
|
|
2706
2708
|
]
|
|
2707
2709
|
},
|
|
@@ -2709,11 +2711,11 @@ const Pi = ai({
|
|
|
2709
2711
|
))
|
|
2710
2712
|
}
|
|
2711
2713
|
),
|
|
2712
|
-
/* @__PURE__ */
|
|
2714
|
+
/* @__PURE__ */ i.jsx(C.Target, { name: "footer-after" })
|
|
2713
2715
|
]
|
|
2714
2716
|
}
|
|
2715
2717
|
),
|
|
2716
|
-
/* @__PURE__ */
|
|
2718
|
+
/* @__PURE__ */ i.jsxs(
|
|
2717
2719
|
"div",
|
|
2718
2720
|
{
|
|
2719
2721
|
className: E(
|
|
@@ -2721,8 +2723,8 @@ const Pi = ai({
|
|
|
2721
2723
|
t.columns && "border-t mt-8 pt-8"
|
|
2722
2724
|
),
|
|
2723
2725
|
children: [
|
|
2724
|
-
t.logo && /* @__PURE__ */
|
|
2725
|
-
/* @__PURE__ */
|
|
2726
|
+
t.logo && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2727
|
+
/* @__PURE__ */ i.jsx(
|
|
2726
2728
|
"img",
|
|
2727
2729
|
{
|
|
2728
2730
|
src: t.logo.src.light,
|
|
@@ -2731,7 +2733,7 @@ const Pi = ai({
|
|
|
2731
2733
|
style: { width: t.logo.width }
|
|
2732
2734
|
}
|
|
2733
2735
|
),
|
|
2734
|
-
/* @__PURE__ */
|
|
2736
|
+
/* @__PURE__ */ i.jsx(
|
|
2735
2737
|
"img",
|
|
2736
2738
|
{
|
|
2737
2739
|
src: t.logo.src.dark,
|
|
@@ -2741,8 +2743,8 @@ const Pi = ai({
|
|
|
2741
2743
|
}
|
|
2742
2744
|
)
|
|
2743
2745
|
] }),
|
|
2744
|
-
t.copyright && /* @__PURE__ */
|
|
2745
|
-
/* @__PURE__ */
|
|
2746
|
+
t.copyright && /* @__PURE__ */ i.jsx("p", { className: "text-sm text-muted-foreground", children: t.copyright }),
|
|
2747
|
+
/* @__PURE__ */ i.jsx("div", { className: "flex items-center gap-2", children: t.social?.map((n) => /* @__PURE__ */ i.jsxs(
|
|
2746
2748
|
"a",
|
|
2747
2749
|
{
|
|
2748
2750
|
href: n.href,
|
|
@@ -2750,7 +2752,7 @@ const Pi = ai({
|
|
|
2750
2752
|
rel: "noopener noreferrer",
|
|
2751
2753
|
className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
|
|
2752
2754
|
children: [
|
|
2753
|
-
/* @__PURE__ */
|
|
2755
|
+
/* @__PURE__ */ i.jsx(Aa, { icon: n.icon }),
|
|
2754
2756
|
n.label
|
|
2755
2757
|
]
|
|
2756
2758
|
},
|
|
@@ -2763,28 +2765,28 @@ const Pi = ai({
|
|
|
2763
2765
|
}, $t = ({
|
|
2764
2766
|
shouldScaleBackground: e = !0,
|
|
2765
2767
|
...t
|
|
2766
|
-
}) => /* @__PURE__ */
|
|
2767
|
-
|
|
2768
|
+
}) => /* @__PURE__ */ i.jsx(
|
|
2769
|
+
T.Root,
|
|
2768
2770
|
{
|
|
2769
2771
|
shouldScaleBackground: e,
|
|
2770
2772
|
...t
|
|
2771
2773
|
}
|
|
2772
2774
|
);
|
|
2773
2775
|
$t.displayName = "Drawer";
|
|
2774
|
-
const
|
|
2775
|
-
|
|
2776
|
+
const Sa = T.Trigger, Ia = T.Portal, jt = I.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
|
|
2777
|
+
T.Overlay,
|
|
2776
2778
|
{
|
|
2777
2779
|
ref: n,
|
|
2778
2780
|
className: E("fixed inset-0 z-50 bg-black/80", e),
|
|
2779
2781
|
...t
|
|
2780
2782
|
}
|
|
2781
2783
|
));
|
|
2782
|
-
jt.displayName =
|
|
2783
|
-
const
|
|
2784
|
-
({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */
|
|
2785
|
-
/* @__PURE__ */
|
|
2786
|
-
/* @__PURE__ */
|
|
2787
|
-
|
|
2784
|
+
jt.displayName = T.Overlay.displayName;
|
|
2785
|
+
const Ca = I.forwardRef(
|
|
2786
|
+
({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ i.jsxs(Ia, { children: [
|
|
2787
|
+
/* @__PURE__ */ i.jsx(jt, {}),
|
|
2788
|
+
/* @__PURE__ */ i.jsxs(
|
|
2789
|
+
T.Content,
|
|
2788
2790
|
{
|
|
2789
2791
|
ref: o,
|
|
2790
2792
|
className: E(
|
|
@@ -2793,16 +2795,16 @@ const Ci = I.forwardRef(
|
|
|
2793
2795
|
),
|
|
2794
2796
|
...r,
|
|
2795
2797
|
children: [
|
|
2796
|
-
!n && /* @__PURE__ */
|
|
2798
|
+
!n && /* @__PURE__ */ i.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
2797
2799
|
t
|
|
2798
2800
|
]
|
|
2799
2801
|
}
|
|
2800
2802
|
)
|
|
2801
2803
|
] })
|
|
2802
2804
|
);
|
|
2803
|
-
|
|
2804
|
-
const
|
|
2805
|
-
|
|
2805
|
+
Ca.displayName = "DrawerContent";
|
|
2806
|
+
const Na = I.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
|
|
2807
|
+
T.Title,
|
|
2806
2808
|
{
|
|
2807
2809
|
ref: n,
|
|
2808
2810
|
className: E(
|
|
@@ -2812,16 +2814,16 @@ const Ni = I.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
|
2812
2814
|
...t
|
|
2813
2815
|
}
|
|
2814
2816
|
));
|
|
2815
|
-
|
|
2816
|
-
const
|
|
2817
|
-
|
|
2817
|
+
Na.displayName = T.Title.displayName;
|
|
2818
|
+
const Ra = I.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
|
|
2819
|
+
T.Description,
|
|
2818
2820
|
{
|
|
2819
2821
|
ref: n,
|
|
2820
2822
|
className: E("text-sm text-muted-foreground", e),
|
|
2821
2823
|
...t
|
|
2822
2824
|
}
|
|
2823
2825
|
));
|
|
2824
|
-
|
|
2826
|
+
Ra.displayName = T.Description.displayName;
|
|
2825
2827
|
const Pt = ({
|
|
2826
2828
|
children: e,
|
|
2827
2829
|
className: t
|
|
@@ -2830,13 +2832,13 @@ const Pt = ({
|
|
|
2830
2832
|
return oe(() => {
|
|
2831
2833
|
const o = r.current?.querySelector('[aria-current="page"]');
|
|
2832
2834
|
rn(o ?? null);
|
|
2833
|
-
}, []), /* @__PURE__ */
|
|
2835
|
+
}, []), /* @__PURE__ */ i.jsxs(
|
|
2834
2836
|
"div",
|
|
2835
2837
|
{
|
|
2836
2838
|
className: "grid sticky top-(--header-height) lg:h-[calc(100vh-var(--header-height))] grid-rows-[1fr_min-content] border-r",
|
|
2837
2839
|
"data-pagefind-ignore": "all",
|
|
2838
2840
|
children: [
|
|
2839
|
-
/* @__PURE__ */
|
|
2841
|
+
/* @__PURE__ */ i.jsx(
|
|
2840
2842
|
"nav",
|
|
2841
2843
|
{
|
|
2842
2844
|
ref: r,
|
|
@@ -2853,35 +2855,35 @@ const Pt = ({
|
|
|
2853
2855
|
children: e
|
|
2854
2856
|
}
|
|
2855
2857
|
),
|
|
2856
|
-
/* @__PURE__ */
|
|
2858
|
+
/* @__PURE__ */ i.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ i.jsx(on, {}) })
|
|
2857
2859
|
]
|
|
2858
2860
|
}
|
|
2859
2861
|
);
|
|
2860
2862
|
};
|
|
2861
2863
|
Pt.displayName = "NavigationWrapper";
|
|
2862
|
-
const
|
|
2864
|
+
const Ua = ({
|
|
2863
2865
|
onRequestClose: e,
|
|
2864
2866
|
navigation: t
|
|
2865
|
-
}) => /* @__PURE__ */
|
|
2866
|
-
/* @__PURE__ */
|
|
2867
|
-
/* @__PURE__ */
|
|
2868
|
-
t.map((n) => /* @__PURE__ */
|
|
2867
|
+
}) => /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2868
|
+
/* @__PURE__ */ i.jsxs(Pt, { children: [
|
|
2869
|
+
/* @__PURE__ */ i.jsx(C.Target, { name: "navigation-before" }),
|
|
2870
|
+
t.map((n) => /* @__PURE__ */ i.jsx(
|
|
2869
2871
|
Ze,
|
|
2870
2872
|
{
|
|
2871
2873
|
item: n
|
|
2872
2874
|
},
|
|
2873
2875
|
n.type + (n.label ?? "") + ("path" in n ? n.path : "") + ("file" in n ? n.file : "") + ("to" in n ? n.to : "")
|
|
2874
2876
|
)),
|
|
2875
|
-
/* @__PURE__ */
|
|
2877
|
+
/* @__PURE__ */ i.jsx(C.Target, { name: "navigation-after" })
|
|
2876
2878
|
] }),
|
|
2877
|
-
/* @__PURE__ */
|
|
2879
|
+
/* @__PURE__ */ i.jsx(
|
|
2878
2880
|
vn,
|
|
2879
2881
|
{
|
|
2880
2882
|
className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
|
|
2881
2883
|
"aria-describedby": void 0,
|
|
2882
|
-
children: /* @__PURE__ */
|
|
2883
|
-
/* @__PURE__ */
|
|
2884
|
-
t.map((n) => /* @__PURE__ */
|
|
2884
|
+
children: /* @__PURE__ */ i.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
2885
|
+
/* @__PURE__ */ i.jsx(yn, { children: /* @__PURE__ */ i.jsx(_n, { children: "Navigation" }) }),
|
|
2886
|
+
t.map((n) => /* @__PURE__ */ i.jsx(
|
|
2885
2887
|
Ze,
|
|
2886
2888
|
{
|
|
2887
2889
|
item: n,
|
|
@@ -2892,27 +2894,27 @@ const Ui = ({
|
|
|
2892
2894
|
] })
|
|
2893
2895
|
}
|
|
2894
2896
|
)
|
|
2895
|
-
] }),
|
|
2896
|
-
const [t, n] = Qt(!1), { navigation: r } = Ft(), o = r.length > 0, s = Kt().state === "loading", { options:
|
|
2897
|
-
return /* @__PURE__ */
|
|
2897
|
+
] }), Fa = ({ children: e }) => {
|
|
2898
|
+
const [t, n] = Qt(!1), { navigation: r } = Ft(), o = r.length > 0, s = Kt().state === "loading", { options: a } = re();
|
|
2899
|
+
return /* @__PURE__ */ i.jsxs(
|
|
2898
2900
|
$t,
|
|
2899
2901
|
{
|
|
2900
|
-
direction:
|
|
2902
|
+
direction: a.site?.dir === "rtl" ? "right" : "left",
|
|
2901
2903
|
open: t,
|
|
2902
2904
|
onOpenChange: (u) => n(u),
|
|
2903
2905
|
children: [
|
|
2904
|
-
o && /* @__PURE__ */
|
|
2905
|
-
|
|
2906
|
+
o && /* @__PURE__ */ i.jsx(
|
|
2907
|
+
Ua,
|
|
2906
2908
|
{
|
|
2907
2909
|
onRequestClose: () => n(!1),
|
|
2908
2910
|
navigation: r
|
|
2909
2911
|
}
|
|
2910
2912
|
),
|
|
2911
|
-
o && /* @__PURE__ */
|
|
2912
|
-
/* @__PURE__ */
|
|
2913
|
-
/* @__PURE__ */
|
|
2913
|
+
o && /* @__PURE__ */ i.jsx("div", { className: "lg:hidden m-0 p-0 md:-mx-4 md:px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ i.jsxs(Sa, { className: "flex items-center gap-2 px-4", children: [
|
|
2914
|
+
/* @__PURE__ */ i.jsx(pn, { size: 16, strokeWidth: 1.5 }),
|
|
2915
|
+
/* @__PURE__ */ i.jsx("span", { className: "text-sm", children: "Menu" })
|
|
2914
2916
|
] }) }),
|
|
2915
|
-
/* @__PURE__ */
|
|
2917
|
+
/* @__PURE__ */ i.jsxs(
|
|
2916
2918
|
"main",
|
|
2917
2919
|
{
|
|
2918
2920
|
"data-pagefind-body": !0,
|
|
@@ -2922,24 +2924,24 @@ const Ui = ({
|
|
|
2922
2924
|
s && "animate-pulse"
|
|
2923
2925
|
),
|
|
2924
2926
|
children: [
|
|
2925
|
-
/* @__PURE__ */
|
|
2927
|
+
/* @__PURE__ */ i.jsx(C.Target, { name: "content-before" }),
|
|
2926
2928
|
e,
|
|
2927
|
-
/* @__PURE__ */
|
|
2929
|
+
/* @__PURE__ */ i.jsx(C.Target, { name: "content-after" })
|
|
2928
2930
|
]
|
|
2929
2931
|
}
|
|
2930
2932
|
)
|
|
2931
2933
|
]
|
|
2932
2934
|
}
|
|
2933
2935
|
);
|
|
2934
|
-
},
|
|
2936
|
+
}, Ma = () => /* @__PURE__ */ i.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ i.jsx(wn, {}) }), qa = ({ children: e }) => {
|
|
2935
2937
|
const { authentication: t } = re();
|
|
2936
|
-
return sn(),
|
|
2938
|
+
return sn(), Ea(), oe(() => {
|
|
2937
2939
|
t?.onPageLoad?.();
|
|
2938
|
-
}, [t]), /* @__PURE__ */
|
|
2939
|
-
/* @__PURE__ */
|
|
2940
|
-
/* @__PURE__ */
|
|
2941
|
-
/* @__PURE__ */
|
|
2942
|
-
/* @__PURE__ */
|
|
2940
|
+
}, [t]), /* @__PURE__ */ i.jsxs(an, { children: [
|
|
2941
|
+
/* @__PURE__ */ i.jsx(C.Target, { name: "layout-before-head" }),
|
|
2942
|
+
/* @__PURE__ */ i.jsx(cn, {}),
|
|
2943
|
+
/* @__PURE__ */ i.jsx(C.Target, { name: "layout-after-head" }),
|
|
2944
|
+
/* @__PURE__ */ i.jsx(
|
|
2943
2945
|
"div",
|
|
2944
2946
|
{
|
|
2945
2947
|
className: E(
|
|
@@ -2947,58 +2949,58 @@ const Ui = ({
|
|
|
2947
2949
|
"[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
|
|
2948
2950
|
"grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
|
|
2949
2951
|
),
|
|
2950
|
-
children: /* @__PURE__ */
|
|
2952
|
+
children: /* @__PURE__ */ i.jsx(Lt, { fallback: /* @__PURE__ */ i.jsx(Ma, {}), children: /* @__PURE__ */ i.jsx(Fa, { children: e ?? /* @__PURE__ */ i.jsx(Ht, {}) }) })
|
|
2951
2953
|
}
|
|
2952
2954
|
),
|
|
2953
|
-
/* @__PURE__ */
|
|
2955
|
+
/* @__PURE__ */ i.jsx(Da, {})
|
|
2954
2956
|
] });
|
|
2955
|
-
},
|
|
2957
|
+
}, Qa = ({ children: e }) => {
|
|
2956
2958
|
const { meta: t, options: n } = re(), r = et();
|
|
2957
|
-
return /* @__PURE__ */
|
|
2958
|
-
/* @__PURE__ */
|
|
2959
|
-
n.canonicalUrlOrigin && /* @__PURE__ */
|
|
2959
|
+
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2960
|
+
/* @__PURE__ */ i.jsxs(He, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
|
|
2961
|
+
n.canonicalUrlOrigin && /* @__PURE__ */ i.jsx(
|
|
2960
2962
|
"link",
|
|
2961
2963
|
{
|
|
2962
2964
|
rel: "canonical",
|
|
2963
|
-
href:
|
|
2965
|
+
href: Mt(
|
|
2964
2966
|
n.canonicalUrlOrigin,
|
|
2965
2967
|
n.basePath,
|
|
2966
2968
|
r.pathname
|
|
2967
2969
|
)
|
|
2968
2970
|
}
|
|
2969
2971
|
),
|
|
2970
|
-
t?.description && /* @__PURE__ */
|
|
2971
|
-
t?.favicon && /* @__PURE__ */
|
|
2972
|
-
t?.generator && /* @__PURE__ */
|
|
2973
|
-
t?.applicationName && /* @__PURE__ */
|
|
2974
|
-
t?.referrer && /* @__PURE__ */
|
|
2975
|
-
t?.keywords && t.keywords.length > 0 && /* @__PURE__ */
|
|
2976
|
-
t?.authors?.map((o) => /* @__PURE__ */
|
|
2977
|
-
t?.creator && /* @__PURE__ */
|
|
2978
|
-
t?.publisher && /* @__PURE__ */
|
|
2972
|
+
t?.description && /* @__PURE__ */ i.jsx("meta", { name: "description", content: t.description }),
|
|
2973
|
+
t?.favicon && /* @__PURE__ */ i.jsx("link", { rel: "icon", href: t.favicon }),
|
|
2974
|
+
t?.generator && /* @__PURE__ */ i.jsx("meta", { name: "generator", content: t.generator }),
|
|
2975
|
+
t?.applicationName && /* @__PURE__ */ i.jsx("meta", { name: "application-name", content: t.applicationName }),
|
|
2976
|
+
t?.referrer && /* @__PURE__ */ i.jsx("meta", { name: "referrer", content: t.referrer }),
|
|
2977
|
+
t?.keywords && t.keywords.length > 0 && /* @__PURE__ */ i.jsx("meta", { name: "keywords", content: t.keywords.join(", ") }),
|
|
2978
|
+
t?.authors?.map((o) => /* @__PURE__ */ i.jsx("meta", { name: "author", content: o }, o)),
|
|
2979
|
+
t?.creator && /* @__PURE__ */ i.jsx("meta", { name: "creator", content: t.creator }),
|
|
2980
|
+
t?.publisher && /* @__PURE__ */ i.jsx("meta", { name: "publisher", content: t.publisher })
|
|
2979
2981
|
] }),
|
|
2980
2982
|
e
|
|
2981
2983
|
] });
|
|
2982
|
-
},
|
|
2984
|
+
}, La = ({
|
|
2983
2985
|
title: e = "An error occurred",
|
|
2984
2986
|
message: t,
|
|
2985
2987
|
category: n
|
|
2986
|
-
}) => /* @__PURE__ */
|
|
2987
|
-
n && /* @__PURE__ */
|
|
2988
|
-
e && /* @__PURE__ */
|
|
2989
|
-
/* @__PURE__ */
|
|
2988
|
+
}) => /* @__PURE__ */ i.jsxs(tt, { className: "h-full pt-(--padding-content-top)", children: [
|
|
2989
|
+
n && /* @__PURE__ */ i.jsx(st, { children: n }),
|
|
2990
|
+
e && /* @__PURE__ */ i.jsx(nt, { level: 1, className: "flex gap-3.5 items-center", children: e }),
|
|
2991
|
+
/* @__PURE__ */ i.jsx("p", { children: t })
|
|
2990
2992
|
] }), Ot = () => {
|
|
2991
2993
|
const e = Vt();
|
|
2992
|
-
return /* @__PURE__ */
|
|
2993
|
-
/* @__PURE__ */
|
|
2994
|
-
/* @__PURE__ */
|
|
2994
|
+
return /* @__PURE__ */ i.jsxs(tt, { className: "h-full pt-(--padding-content-top)", children: [
|
|
2995
|
+
/* @__PURE__ */ i.jsx(st, { children: "404" }),
|
|
2996
|
+
/* @__PURE__ */ i.jsxs(nt, { level: 1, className: "flex gap-3.5 items-center", children: [
|
|
2995
2997
|
"Page not found",
|
|
2996
|
-
/* @__PURE__ */
|
|
2998
|
+
/* @__PURE__ */ i.jsx(mn, { size: 24 })
|
|
2997
2999
|
] }),
|
|
2998
|
-
/* @__PURE__ */
|
|
3000
|
+
/* @__PURE__ */ i.jsxs(un, { children: [
|
|
2999
3001
|
"Start by adding a file at",
|
|
3000
3002
|
" ",
|
|
3001
|
-
/* @__PURE__ */
|
|
3003
|
+
/* @__PURE__ */ i.jsxs("code", { children: [
|
|
3002
3004
|
"{DOCUMENT_ROOT}",
|
|
3003
3005
|
"/",
|
|
3004
3006
|
e["*"],
|
|
@@ -3007,13 +3009,13 @@ const Ui = ({
|
|
|
3007
3009
|
" ",
|
|
3008
3010
|
"and add some content to make this error go away. By default",
|
|
3009
3011
|
" ",
|
|
3010
|
-
/* @__PURE__ */
|
|
3012
|
+
/* @__PURE__ */ i.jsx("code", { children: "DOCUMENT_ROOT" }),
|
|
3011
3013
|
" is the `pages` directory."
|
|
3012
3014
|
] }),
|
|
3013
|
-
/* @__PURE__ */
|
|
3014
|
-
/* @__PURE__ */
|
|
3015
|
+
/* @__PURE__ */ i.jsx("p", { children: "It seems that the page you are looking for does not exist or may have been moved. Please check the URL for any typos or use the navigation menu to find the correct page." }),
|
|
3016
|
+
/* @__PURE__ */ i.jsx(Jt, { to: "/", children: "Go back home" })
|
|
3015
3017
|
] });
|
|
3016
|
-
},
|
|
3018
|
+
}, Ba = (e) => {
|
|
3017
3019
|
switch (e) {
|
|
3018
3020
|
case 400:
|
|
3019
3021
|
return {
|
|
@@ -3076,12 +3078,12 @@ const Ui = ({
|
|
|
3076
3078
|
message: "Something went wrong while processing your request."
|
|
3077
3079
|
};
|
|
3078
3080
|
}
|
|
3079
|
-
},
|
|
3081
|
+
}, Wa = ({ statusCode: e, message: t }) => {
|
|
3080
3082
|
if (e === 404)
|
|
3081
|
-
return /* @__PURE__ */
|
|
3082
|
-
const n =
|
|
3083
|
-
return /* @__PURE__ */
|
|
3084
|
-
|
|
3083
|
+
return /* @__PURE__ */ i.jsx(Ot, {});
|
|
3084
|
+
const n = Ba(e);
|
|
3085
|
+
return /* @__PURE__ */ i.jsx(
|
|
3086
|
+
La,
|
|
3085
3087
|
{
|
|
3086
3088
|
title: n.title,
|
|
3087
3089
|
message: t ?? n.message,
|
|
@@ -3089,24 +3091,24 @@ const Ui = ({
|
|
|
3089
3091
|
}
|
|
3090
3092
|
);
|
|
3091
3093
|
};
|
|
3092
|
-
function
|
|
3094
|
+
function Ka({ className: e }) {
|
|
3093
3095
|
const t = Gt();
|
|
3094
|
-
return Yt(t) && t.status === 404 ? /* @__PURE__ */
|
|
3096
|
+
return Yt(t) && t.status === 404 ? /* @__PURE__ */ i.jsx(Ot, {}) : /* @__PURE__ */ i.jsx("div", { className: E("mx-4 max-w-2xl", e), children: /* @__PURE__ */ i.jsx(rt, { error: t }) });
|
|
3095
3097
|
}
|
|
3096
|
-
function
|
|
3097
|
-
return /* @__PURE__ */
|
|
3098
|
+
function Ha({ error: e }) {
|
|
3099
|
+
return /* @__PURE__ */ i.jsx(rt, { error: e });
|
|
3098
3100
|
}
|
|
3099
|
-
const
|
|
3101
|
+
const li = qa, di = Ka, hi = Ha, fi = On, pi = En, mi = ln, gi = He, vi = Wa, _i = Oa, yi = Qa;
|
|
3100
3102
|
export {
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3103
|
+
fi as Bootstrap,
|
|
3104
|
+
pi as BootstrapStatic,
|
|
3105
|
+
_i as BuildCheck,
|
|
3106
|
+
gi as Head,
|
|
3107
|
+
li as Layout,
|
|
3108
|
+
yi as Meta,
|
|
3109
|
+
mi as RouteGuard,
|
|
3110
|
+
di as RouterError,
|
|
3111
|
+
hi as ServerError,
|
|
3112
|
+
vi as StatusPage
|
|
3111
3113
|
};
|
|
3112
3114
|
//# sourceMappingURL=zudoku.__internal.js.map
|