zudoku 0.0.0-fix-circular-ref-false-positives.zbe02c6a6 → 0.0.0-fix-warnings.z053d4e27
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/config/validators/InputNavigationSchema.d.ts +56 -56
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/index.d.ts +18 -74
- package/dist/lib/components/index.js +19 -36
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +7 -30
- package/dist/lib/hooks/index.js +7 -15
- package/dist/lib/hooks/index.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +1 -1
- package/dist/lib/oas/graphql/circular.js +35 -18
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/graphql/circular.test.js +2 -33
- package/dist/lib/oas/graphql/circular.test.js.map +1 -1
- package/dist/lib/oas/parser/index.js +14 -5
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/util/flattenAllOf.d.ts +0 -2
- package/dist/lib/util/flattenAllOf.js +0 -46
- package/dist/lib/util/flattenAllOf.js.map +1 -1
- package/dist/lib/util/flattenAllOf.test.js +2 -1
- package/dist/lib/util/flattenAllOf.test.js.map +1 -1
- package/dist/lib/util/flattenAllOfProcessor.d.ts +2 -0
- package/dist/lib/util/flattenAllOfProcessor.js +48 -0
- package/dist/lib/util/flattenAllOfProcessor.js.map +1 -0
- package/dist/lib/util/readFrontmatter.js +2 -1
- package/dist/lib/util/readFrontmatter.js.map +1 -1
- package/dist/vite/api/SchemaManager.js +1 -1
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +1 -1
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/build.js +91 -73
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/mdx/remark-inject-filepath.js +5 -1
- package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
- package/dist/vite/mdx/remark-link-rewrite.js +3 -2
- package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
- package/dist/vite/plugin-docs.js +9 -7
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-markdown-export.js +4 -2
- package/dist/vite/plugin-markdown-export.js.map +1 -1
- package/lib/{ClaudeLogo-DJ9bU-sO.js → ClaudeLogo-C6q-Xn_l.js} +26 -22
- package/lib/{ClaudeLogo-DJ9bU-sO.js.map → ClaudeLogo-C6q-Xn_l.js.map} +1 -1
- package/lib/{MdxPage-stpAoBtx.js → MdxPage-B1G4W1TK.js} +8 -8
- package/lib/{MdxPage-stpAoBtx.js.map → MdxPage-B1G4W1TK.js.map} +1 -1
- package/lib/{Mermaid-Koc3z8mU.js → Mermaid-B1xNo-pf.js} +3 -2
- package/lib/{Mermaid-Koc3z8mU.js.map → Mermaid-B1xNo-pf.js.map} +1 -1
- package/lib/{OAuthErrorPage-DJ811Bn_.js → OAuthErrorPage-01Ke086W.js} +20 -18
- package/lib/{OAuthErrorPage-DJ811Bn_.js.map → OAuthErrorPage-01Ke086W.js.map} +1 -1
- package/lib/{OasProvider-B2KxIBsI.js → OasProvider-BG-FWDIq.js} +3 -3
- package/lib/{OasProvider-B2KxIBsI.js.map → OasProvider-BG-FWDIq.js.map} +1 -1
- package/lib/{OperationList-C2tAfThO.js → OperationList-GGkJ1vac.js} +948 -945
- package/lib/OperationList-GGkJ1vac.js.map +1 -0
- package/lib/{RouteGuard--A04ESy8.js → RouteGuard-B1lCR0C_.js} +5 -5
- package/lib/{RouteGuard--A04ESy8.js.map → RouteGuard-B1lCR0C_.js.map} +1 -1
- package/lib/{SchemaList-Ep8DleP_.js → SchemaList-CNVdC9f-.js} +7 -7
- package/lib/{SchemaList-Ep8DleP_.js.map → SchemaList-CNVdC9f-.js.map} +1 -1
- package/lib/{SchemaView-BpaEKRYx.js → SchemaView-CrV0yIwR.js} +3 -3
- package/lib/{SchemaView-BpaEKRYx.js.map → SchemaView-CrV0yIwR.js.map} +1 -1
- package/lib/{SignUp-DCBViNUi.js → SignUp-8kDBaLbO.js} +31 -26
- package/lib/{SignUp-DCBViNUi.js.map → SignUp-8kDBaLbO.js.map} +1 -1
- package/lib/{SyntaxHighlight-Dshjn3Zf.js → SyntaxHighlight-hZOFnYl0.js} +3 -3
- package/lib/{SyntaxHighlight-Dshjn3Zf.js.map → SyntaxHighlight-hZOFnYl0.js.map} +1 -1
- package/lib/{Toc-Cgz6CPiE.js → Toc-qEIii_-W.js} +2 -2
- package/lib/{Toc-Cgz6CPiE.js.map → Toc-qEIii_-W.js.map} +1 -1
- package/lib/{index-CL8eDnQW.js → Zudoku-DUsdmPME.js} +2250 -2268
- package/lib/Zudoku-DUsdmPME.js.map +1 -0
- package/lib/{ZudokuContext-BZB1TWdT.js → ZudokuContext-BBI06sOx.js} +5 -5
- package/lib/{ZudokuContext-BZB1TWdT.js.map → ZudokuContext-BBI06sOx.js.map} +1 -1
- package/lib/{circular-CG3e0_Uz.js → circular-bbWO95zs.js} +1346 -1327
- package/lib/{circular-CG3e0_Uz.js.map → circular-bbWO95zs.js.map} +1 -1
- package/lib/createServer-B7POuwZp.js +13036 -0
- package/lib/createServer-B7POuwZp.js.map +1 -0
- package/lib/{errors-b9I-fAOY.js → errors-7hgPDs1h.js} +3 -3
- package/lib/{errors-b9I-fAOY.js.map → errors-7hgPDs1h.js.map} +1 -1
- package/lib/{firebase-BCXX7Qv5.js → firebase-Dwn-2ju-.js} +13 -13
- package/lib/firebase-Dwn-2ju-.js.map +1 -0
- package/lib/{hook-BGlHBdET.js → hook-ZEd1Es7D.js} +2 -2
- package/lib/{hook-BGlHBdET.js.map → hook-ZEd1Es7D.js.map} +1 -1
- package/lib/{index-I3kmZ7tG.js → index-CTCT4jlW.js} +463 -461
- package/lib/{index-I3kmZ7tG.js.map → index-CTCT4jlW.js.map} +1 -1
- package/lib/index-DAWHN3cH.js +86 -0
- package/lib/index-DAWHN3cH.js.map +1 -0
- package/lib/{index-UOLtazB8.js → index-Dxdhrp-I.js} +2 -2
- package/lib/{index-UOLtazB8.js.map → index-Dxdhrp-I.js.map} +1 -1
- package/lib/{index.esm-B_0dvNjB.js → index.esm-Ca5zvoff.js} +20 -20
- package/lib/{index.esm-B_0dvNjB.js.map → index.esm-Ca5zvoff.js.map} +1 -1
- package/lib/{index.esm-C5CBsVzN.js → index.esm-DG4KaDKR.js} +2 -2
- package/lib/index.esm-DG4KaDKR.js.map +1 -0
- package/lib/{invariant-BJAl77rw.js → invariant-B_t_F2s_.js} +3 -3
- package/lib/{invariant-BJAl77rw.js.map → invariant-B_t_F2s_.js.map} +1 -1
- package/lib/ui/SyntaxHighlight.js +3 -3
- package/lib/useExposedProps-CzTDfXfq.js +30 -0
- package/lib/useExposedProps-CzTDfXfq.js.map +1 -0
- package/lib/zudoku.__internal.js +366 -365
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +4 -4
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-firebase.js +5 -5
- package/lib/zudoku.auth-openid.js +5 -5
- package/lib/zudoku.auth-supabase.js +4 -4
- package/lib/zudoku.components.js +31 -29
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +24 -11
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.mermaid.js +4 -3
- package/lib/zudoku.mermaid.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +36 -32
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +131 -130
- 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 +2 -2
- package/lib/zudoku.plugin-search-pagefind.js +2 -2
- package/package.json +3 -2
- package/src/lib/components/index.ts +19 -39
- package/src/lib/hooks/index.ts +7 -16
- package/src/lib/oas/graphql/circular.test.ts +2 -37
- package/src/lib/oas/graphql/circular.ts +51 -25
- package/src/lib/oas/parser/index.ts +17 -6
- package/src/lib/util/flattenAllOf.test.ts +2 -1
- package/src/lib/util/flattenAllOf.ts +0 -57
- package/src/lib/util/flattenAllOfProcessor.ts +58 -0
- package/src/lib/util/readFrontmatter.ts +2 -1
- package/src/zuplo/enrich-with-zuplo-mcp.ts +168 -0
- package/src/zuplo/enrich-with-zuplo.ts +254 -0
- package/src/zuplo/policy-types.ts +46 -0
- package/src/zuplo/with-zuplo-processors.ts +35 -0
- package/src/zuplo/with-zuplo.ts +14 -0
- package/lib/OperationList-C2tAfThO.js.map +0 -1
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js +0 -9
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +0 -1
- package/lib/createServer-CNeRqj98.js +0 -16693
- package/lib/createServer-CNeRqj98.js.map +0 -1
- package/lib/firebase-BCXX7Qv5.js.map +0 -1
- package/lib/index-CL8eDnQW.js.map +0 -1
- package/lib/index-DBjOT2H1.js +0 -133
- package/lib/index-DBjOT2H1.js.map +0 -1
- package/lib/index.esm-C5CBsVzN.js.map +0 -1
package/lib/zudoku.__internal.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { a as Ae, H as Oe } from "./index.esm-
|
|
1
|
+
import { a as Ae, H as Oe } from "./index.esm-Ca5zvoff.js";
|
|
2
2
|
import { j as a } from "./jsx-runtime-BzflLqGi.js";
|
|
3
3
|
import { b as mt, H as gt } from "./HydrationBoundary-CNF2ZV3E.js";
|
|
4
4
|
import { M as Se, e as _t } from "./useSuspenseQuery-CSB_rVek.js";
|
|
5
5
|
import * as F from "react";
|
|
6
|
-
import { StrictMode as Ne, useEffect as
|
|
6
|
+
import { StrictMode as Ne, useEffect as G, useRef as De, useState as vt, Suspense as wt } from "react";
|
|
7
7
|
import { n as zt, S as bt, a as Re, b3 as yt, O as kt, d as xt, L as Zt, h as $t, w as jt } from "./chunk-EPOLDU6W-C6C8jAwd.js";
|
|
8
8
|
import * as Et from "react-dom";
|
|
9
|
-
import {
|
|
10
|
-
import { B as Le, R as
|
|
11
|
-
import { CircleFadingArrowUpIcon as
|
|
12
|
-
import { Button as
|
|
9
|
+
import { d as Pt, a as P, A as Tt, s as It, P as At, N as pe, f as Ot, g as St, h as Nt, T as Ce, H as Ue, D as Dt, i as Fe } from "./Zudoku-DUsdmPME.js";
|
|
10
|
+
import { B as Le, R as Rt } from "./RouteGuard-B1lCR0C_.js";
|
|
11
|
+
import { CircleFadingArrowUpIcon as Ct, LoaderCircleIcon as Ut, ExternalLink as Ft, PanelLeftIcon as Lt, UnlinkIcon as Bt } from "lucide-react";
|
|
12
|
+
import { Button as Mt } from "./ui/Button.js";
|
|
13
13
|
import { c as x } from "./cn-5-Gd1Dss.js";
|
|
14
|
-
import { a as
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
14
|
+
import { a as L, e as Wt, j as qt } from "./ZudokuContext-BBI06sOx.js";
|
|
15
|
+
import "./index-DAWHN3cH.js";
|
|
16
|
+
import { D as $, a as Vt, b as Ht } from "./Drawer-Ch7927PF.js";
|
|
17
|
+
import { VisuallyHidden as Jt } from "@radix-ui/react-visually-hidden";
|
|
18
|
+
import { S as Kt } from "./Spinner-CI6bRyZw.js";
|
|
18
19
|
import { C as Be } from "./CategoryHeading-DhmodDcq.js";
|
|
19
20
|
/**
|
|
20
21
|
* react-router v7.12.0
|
|
@@ -26,19 +27,19 @@ import { C as Be } from "./CategoryHeading-DhmodDcq.js";
|
|
|
26
27
|
*
|
|
27
28
|
* @license MIT
|
|
28
29
|
*/
|
|
29
|
-
function
|
|
30
|
+
function Gt(e) {
|
|
30
31
|
return /* @__PURE__ */ F.createElement(zt, { flushSync: Et.flushSync, ...e });
|
|
31
32
|
}
|
|
32
|
-
const
|
|
33
|
+
const Yt = new mt({
|
|
33
34
|
defaultOptions: {
|
|
34
35
|
queries: {
|
|
35
36
|
staleTime: 1e3 * 60 * 5
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
|
-
}),
|
|
39
|
+
}), Qt = ({
|
|
39
40
|
router: e,
|
|
40
41
|
hydrate: t = !1
|
|
41
|
-
}) => /* @__PURE__ */ a.jsx(Ne, { children: /* @__PURE__ */ a.jsx(Se, { client:
|
|
42
|
+
}) => /* @__PURE__ */ a.jsx(Ne, { children: /* @__PURE__ */ a.jsx(Se, { client: Yt, children: /* @__PURE__ */ a.jsx(gt, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Le, { value: !1, children: /* @__PURE__ */ a.jsx(Ae, { children: /* @__PURE__ */ a.jsx(Pt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Gt, { router: e }) }) }) }) }) }) }), Xt = ({
|
|
42
43
|
router: e,
|
|
43
44
|
context: t,
|
|
44
45
|
queryClient: n,
|
|
@@ -86,7 +87,7 @@ const We = {};
|
|
|
86
87
|
function I(e) {
|
|
87
88
|
return We;
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function en(e) {
|
|
90
91
|
const t = Object.values(e).filter((r) => typeof r == "number");
|
|
91
92
|
return Object.entries(e).filter(([r, o]) => t.indexOf(+r) === -1).map(([r, o]) => o);
|
|
92
93
|
}
|
|
@@ -148,10 +149,10 @@ function me(e) {
|
|
|
148
149
|
}
|
|
149
150
|
const qe = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
150
151
|
};
|
|
151
|
-
function
|
|
152
|
+
function H(e) {
|
|
152
153
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
153
154
|
}
|
|
154
|
-
const
|
|
155
|
+
const tn = se(() => {
|
|
155
156
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
156
157
|
return !1;
|
|
157
158
|
try {
|
|
@@ -162,18 +163,18 @@ const nn = se(() => {
|
|
|
162
163
|
}
|
|
163
164
|
});
|
|
164
165
|
function C(e) {
|
|
165
|
-
if (
|
|
166
|
+
if (H(e) === !1)
|
|
166
167
|
return !1;
|
|
167
168
|
const t = e.constructor;
|
|
168
169
|
if (t === void 0)
|
|
169
170
|
return !0;
|
|
170
171
|
const n = t.prototype;
|
|
171
|
-
return !(
|
|
172
|
+
return !(H(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
|
|
172
173
|
}
|
|
173
174
|
function Ve(e) {
|
|
174
175
|
return C(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
175
176
|
}
|
|
176
|
-
const
|
|
177
|
+
const nn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
177
178
|
function Y(e) {
|
|
178
179
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
179
180
|
}
|
|
@@ -194,10 +195,10 @@ function f(e) {
|
|
|
194
195
|
}
|
|
195
196
|
return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
+
function rn(e) {
|
|
198
199
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
199
200
|
}
|
|
200
|
-
function
|
|
201
|
+
function on(e, t) {
|
|
201
202
|
const n = e._zod.def, r = S(e._zod.def, {
|
|
202
203
|
get shape() {
|
|
203
204
|
const o = {};
|
|
@@ -212,7 +213,7 @@ function sn(e, t) {
|
|
|
212
213
|
});
|
|
213
214
|
return T(e, r);
|
|
214
215
|
}
|
|
215
|
-
function
|
|
216
|
+
function sn(e, t) {
|
|
216
217
|
const n = e._zod.def, r = S(e._zod.def, {
|
|
217
218
|
get shape() {
|
|
218
219
|
const o = { ...e._zod.def.shape };
|
|
@@ -227,7 +228,7 @@ function an(e, t) {
|
|
|
227
228
|
});
|
|
228
229
|
return T(e, r);
|
|
229
230
|
}
|
|
230
|
-
function
|
|
231
|
+
function an(e, t) {
|
|
231
232
|
if (!C(t))
|
|
232
233
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
233
234
|
const n = e._zod.def.checks;
|
|
@@ -242,7 +243,7 @@ function cn(e, t) {
|
|
|
242
243
|
});
|
|
243
244
|
return T(e, o);
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
+
function cn(e, t) {
|
|
246
247
|
if (!C(t))
|
|
247
248
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
248
249
|
const n = {
|
|
@@ -255,7 +256,7 @@ function un(e, t) {
|
|
|
255
256
|
};
|
|
256
257
|
return T(e, n);
|
|
257
258
|
}
|
|
258
|
-
function
|
|
259
|
+
function un(e, t) {
|
|
259
260
|
const n = S(e._zod.def, {
|
|
260
261
|
get shape() {
|
|
261
262
|
const r = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
@@ -269,7 +270,7 @@ function ln(e, t) {
|
|
|
269
270
|
});
|
|
270
271
|
return T(e, n);
|
|
271
272
|
}
|
|
272
|
-
function
|
|
273
|
+
function ln(e, t, n) {
|
|
273
274
|
const r = S(t._zod.def, {
|
|
274
275
|
get shape() {
|
|
275
276
|
const o = t._zod.def.shape, s = { ...o };
|
|
@@ -294,7 +295,7 @@ function dn(e, t, n) {
|
|
|
294
295
|
});
|
|
295
296
|
return T(t, r);
|
|
296
297
|
}
|
|
297
|
-
function
|
|
298
|
+
function dn(e, t, n) {
|
|
298
299
|
const r = S(t._zod.def, {
|
|
299
300
|
get shape() {
|
|
300
301
|
const o = t._zod.def.shape, s = { ...o };
|
|
@@ -333,13 +334,13 @@ function He(e, t) {
|
|
|
333
334
|
return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
|
|
334
335
|
});
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
+
function M(e) {
|
|
337
338
|
return typeof e == "string" ? e : e?.message;
|
|
338
339
|
}
|
|
339
340
|
function A(e, t, n) {
|
|
340
341
|
const r = { ...e, path: e.path ?? [] };
|
|
341
342
|
if (!e.message) {
|
|
342
|
-
const o =
|
|
343
|
+
const o = M(e.inst?._zod.def?.error?.(e)) ?? M(t?.error?.(e)) ?? M(n.customError?.(e)) ?? M(n.localeError?.(e)) ?? "Invalid input";
|
|
343
344
|
r.message = o;
|
|
344
345
|
}
|
|
345
346
|
return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
|
|
@@ -368,13 +369,13 @@ const Je = (e, t) => {
|
|
|
368
369
|
enumerable: !1
|
|
369
370
|
});
|
|
370
371
|
}, Ke = c("$ZodError", Je), Ge = c("$ZodError", Je, { Parent: Error });
|
|
371
|
-
function
|
|
372
|
+
function fn(e, t = (n) => n.message) {
|
|
372
373
|
const n = {}, r = [];
|
|
373
374
|
for (const o of e.issues)
|
|
374
375
|
o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
|
|
375
376
|
return { formErrors: r, fieldErrors: n };
|
|
376
377
|
}
|
|
377
|
-
function
|
|
378
|
+
function pn(e, t = (n) => n.message) {
|
|
378
379
|
const n = { _errors: [] }, r = (o) => {
|
|
379
380
|
for (const s of o.issues)
|
|
380
381
|
if (s.code === "invalid_union" && s.errors.length)
|
|
@@ -420,50 +421,50 @@ const ue = (e) => (t, n, r, o) => {
|
|
|
420
421
|
success: !1,
|
|
421
422
|
error: new (e ?? Ke)(s.issues.map((i) => A(i, o, I())))
|
|
422
423
|
} : { success: !0, data: s.value };
|
|
423
|
-
},
|
|
424
|
+
}, hn = /* @__PURE__ */ Q(Ge), X = (e) => async (t, n, r) => {
|
|
424
425
|
const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
425
426
|
let s = t._zod.run({ value: n, issues: [] }, o);
|
|
426
427
|
return s instanceof Promise && (s = await s), s.issues.length ? {
|
|
427
428
|
success: !1,
|
|
428
429
|
error: new e(s.issues.map((i) => A(i, o, I())))
|
|
429
430
|
} : { success: !0, data: s.value };
|
|
430
|
-
},
|
|
431
|
+
}, mn = /* @__PURE__ */ X(Ge), gn = (e) => (t, n, r) => {
|
|
431
432
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
432
433
|
return ue(e)(t, n, o);
|
|
433
|
-
},
|
|
434
|
+
}, _n = (e) => (t, n, r) => ue(e)(t, n, r), vn = (e) => async (t, n, r) => {
|
|
434
435
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
435
436
|
return le(e)(t, n, o);
|
|
436
|
-
},
|
|
437
|
+
}, wn = (e) => async (t, n, r) => le(e)(t, n, r), zn = (e) => (t, n, r) => {
|
|
437
438
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
438
439
|
return Q(e)(t, n, o);
|
|
439
|
-
},
|
|
440
|
+
}, bn = (e) => (t, n, r) => Q(e)(t, n, r), yn = (e) => async (t, n, r) => {
|
|
440
441
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
441
442
|
return X(e)(t, n, o);
|
|
442
|
-
},
|
|
443
|
-
function
|
|
444
|
-
return new RegExp(
|
|
443
|
+
}, kn = (e) => async (t, n, r) => X(e)(t, n, r), xn = /^[cC][^\s-]{8,}$/, Zn = /^[0-9a-z]+$/, $n = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, jn = /^[0-9a-vA-V]{20}$/, En = /^[A-Za-z0-9]{27}$/, Pn = /^[a-zA-Z0-9_-]{21}$/, Tn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, In = /^([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})$/, ge = (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)$/, An = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, On = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
444
|
+
function Sn() {
|
|
445
|
+
return new RegExp(On, "u");
|
|
445
446
|
}
|
|
446
|
-
const
|
|
447
|
+
const Nn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Dn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Rn = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Cn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Un = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ye = /^[A-Za-z0-9_-]*$/, Fn = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Ln = /^\+(?:[0-9]){6,14}[0-9]$/, Qe = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Bn = /* @__PURE__ */ new RegExp(`^${Qe}$`);
|
|
447
448
|
function Xe(e) {
|
|
448
449
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
449
450
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
450
451
|
}
|
|
451
|
-
function
|
|
452
|
+
function Mn(e) {
|
|
452
453
|
return new RegExp(`^${Xe(e)}$`);
|
|
453
454
|
}
|
|
454
|
-
function
|
|
455
|
+
function Wn(e) {
|
|
455
456
|
const t = Xe({ precision: e.precision }), n = ["Z"];
|
|
456
457
|
e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
457
458
|
const r = `${t}(?:${n.join("|")})`;
|
|
458
459
|
return new RegExp(`^${Qe}T(?:${r})$`);
|
|
459
460
|
}
|
|
460
|
-
const
|
|
461
|
+
const qn = (e) => {
|
|
461
462
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
462
463
|
return new RegExp(`^${t}$`);
|
|
463
|
-
},
|
|
464
|
+
}, Vn = /^[^A-Z]*$/, Hn = /^[^a-z]*$/, j = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
|
|
464
465
|
var n;
|
|
465
466
|
e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
466
|
-
}),
|
|
467
|
+
}), Jn = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
|
|
467
468
|
var n;
|
|
468
469
|
j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
469
470
|
const o = r.value;
|
|
@@ -486,7 +487,7 @@ const Vn = (e) => {
|
|
|
486
487
|
continue: !t.abort
|
|
487
488
|
});
|
|
488
489
|
};
|
|
489
|
-
}),
|
|
490
|
+
}), Kn = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
|
|
490
491
|
var n;
|
|
491
492
|
j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
492
493
|
const o = r.value;
|
|
@@ -509,7 +510,7 @@ const Vn = (e) => {
|
|
|
509
510
|
continue: !t.abort
|
|
510
511
|
});
|
|
511
512
|
};
|
|
512
|
-
}),
|
|
513
|
+
}), Gn = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
|
|
513
514
|
var n;
|
|
514
515
|
j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
515
516
|
const o = r.value;
|
|
@@ -549,7 +550,7 @@ const Vn = (e) => {
|
|
|
549
550
|
});
|
|
550
551
|
}) : (r = e._zod).check ?? (r.check = () => {
|
|
551
552
|
});
|
|
552
|
-
}),
|
|
553
|
+
}), Yn = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
|
|
553
554
|
ee.init(e, t), e._zod.check = (n) => {
|
|
554
555
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
555
556
|
origin: "string",
|
|
@@ -561,11 +562,11 @@ const Vn = (e) => {
|
|
|
561
562
|
continue: !t.abort
|
|
562
563
|
});
|
|
563
564
|
};
|
|
564
|
-
}),
|
|
565
|
+
}), Qn = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
|
|
566
|
+
t.pattern ?? (t.pattern = Vn), ee.init(e, t);
|
|
567
|
+
}), Xn = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
|
|
565
568
|
t.pattern ?? (t.pattern = Hn), ee.init(e, t);
|
|
566
|
-
}), er = /* @__PURE__ */ c("$
|
|
567
|
-
t.pattern ?? (t.pattern = Jn), ee.init(e, t);
|
|
568
|
-
}), tr = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
|
|
569
|
+
}), er = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
|
|
569
570
|
j.init(e, t);
|
|
570
571
|
const n = Y(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
571
572
|
t.pattern = r, e._zod.onattach.push((o) => {
|
|
@@ -582,7 +583,7 @@ const Vn = (e) => {
|
|
|
582
583
|
continue: !t.abort
|
|
583
584
|
});
|
|
584
585
|
};
|
|
585
|
-
}),
|
|
586
|
+
}), tr = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
|
|
586
587
|
j.init(e, t);
|
|
587
588
|
const n = new RegExp(`^${Y(t.prefix)}.*`);
|
|
588
589
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
@@ -599,7 +600,7 @@ const Vn = (e) => {
|
|
|
599
600
|
continue: !t.abort
|
|
600
601
|
});
|
|
601
602
|
};
|
|
602
|
-
}),
|
|
603
|
+
}), nr = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
|
|
603
604
|
j.init(e, t);
|
|
604
605
|
const n = new RegExp(`.*${Y(t.suffix)}$`);
|
|
605
606
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
@@ -616,12 +617,12 @@ const Vn = (e) => {
|
|
|
616
617
|
continue: !t.abort
|
|
617
618
|
});
|
|
618
619
|
};
|
|
619
|
-
}),
|
|
620
|
+
}), rr = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
|
|
620
621
|
j.init(e, t), e._zod.check = (n) => {
|
|
621
622
|
n.value = t.tx(n.value);
|
|
622
623
|
};
|
|
623
624
|
});
|
|
624
|
-
class
|
|
625
|
+
class or {
|
|
625
626
|
constructor(t = []) {
|
|
626
627
|
this.content = [], this.indent = 0, this && (this.args = t);
|
|
627
628
|
}
|
|
@@ -644,13 +645,13 @@ class sr {
|
|
|
644
645
|
`));
|
|
645
646
|
}
|
|
646
647
|
}
|
|
647
|
-
const
|
|
648
|
+
const sr = {
|
|
648
649
|
major: 4,
|
|
649
650
|
minor: 1,
|
|
650
651
|
patch: 12
|
|
651
652
|
}, v = /* @__PURE__ */ c("$ZodType", (e, t) => {
|
|
652
653
|
var n;
|
|
653
|
-
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
654
|
+
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = sr;
|
|
654
655
|
const r = [...e._zod.def.checks ?? []];
|
|
655
656
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
656
657
|
for (const o of r)
|
|
@@ -713,17 +714,17 @@ const ir = {
|
|
|
713
714
|
e["~standard"] = {
|
|
714
715
|
validate: (o) => {
|
|
715
716
|
try {
|
|
716
|
-
const s =
|
|
717
|
+
const s = hn(e, o);
|
|
717
718
|
return s.success ? { value: s.data } : { issues: s.error?.issues };
|
|
718
719
|
} catch {
|
|
719
|
-
return
|
|
720
|
+
return mn(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
|
|
720
721
|
}
|
|
721
722
|
},
|
|
722
723
|
vendor: "zod",
|
|
723
724
|
version: 1
|
|
724
725
|
};
|
|
725
726
|
}), de = /* @__PURE__ */ c("$ZodString", (e, t) => {
|
|
726
|
-
v.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ??
|
|
727
|
+
v.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? qn(e._zod.bag), e._zod.parse = (n, r) => {
|
|
727
728
|
if (t.coerce)
|
|
728
729
|
try {
|
|
729
730
|
n.value = String(n.value);
|
|
@@ -738,9 +739,9 @@ const ir = {
|
|
|
738
739
|
};
|
|
739
740
|
}), m = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
|
|
740
741
|
ee.init(e, t), de.init(e, t);
|
|
741
|
-
}),
|
|
742
|
-
t.pattern ?? (t.pattern =
|
|
743
|
-
}),
|
|
742
|
+
}), ir = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
|
|
743
|
+
t.pattern ?? (t.pattern = In), m.init(e, t);
|
|
744
|
+
}), ar = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
|
|
744
745
|
if (t.version) {
|
|
745
746
|
const r = {
|
|
746
747
|
v1: 1,
|
|
@@ -758,9 +759,9 @@ const ir = {
|
|
|
758
759
|
} else
|
|
759
760
|
t.pattern ?? (t.pattern = ge());
|
|
760
761
|
m.init(e, t);
|
|
761
|
-
}),
|
|
762
|
-
t.pattern ?? (t.pattern =
|
|
763
|
-
}),
|
|
762
|
+
}), cr = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
|
|
763
|
+
t.pattern ?? (t.pattern = An), m.init(e, t);
|
|
764
|
+
}), ur = /* @__PURE__ */ c("$ZodURL", (e, t) => {
|
|
764
765
|
m.init(e, t), e._zod.check = (n) => {
|
|
765
766
|
try {
|
|
766
767
|
const r = n.value.trim(), o = new URL(r);
|
|
@@ -768,7 +769,7 @@ const ir = {
|
|
|
768
769
|
code: "invalid_format",
|
|
769
770
|
format: "url",
|
|
770
771
|
note: "Invalid hostname",
|
|
771
|
-
pattern:
|
|
772
|
+
pattern: Fn.source,
|
|
772
773
|
input: n.value,
|
|
773
774
|
inst: e,
|
|
774
775
|
continue: !t.abort
|
|
@@ -792,35 +793,35 @@ const ir = {
|
|
|
792
793
|
});
|
|
793
794
|
}
|
|
794
795
|
};
|
|
795
|
-
}),
|
|
796
|
-
t.pattern ?? (t.pattern =
|
|
797
|
-
}),
|
|
798
|
-
t.pattern ?? (t.pattern =
|
|
799
|
-
}),
|
|
796
|
+
}), lr = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
|
|
797
|
+
t.pattern ?? (t.pattern = Sn()), m.init(e, t);
|
|
798
|
+
}), dr = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
|
|
799
|
+
t.pattern ?? (t.pattern = Pn), m.init(e, t);
|
|
800
|
+
}), fr = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
|
|
801
|
+
t.pattern ?? (t.pattern = xn), m.init(e, t);
|
|
802
|
+
}), pr = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
|
|
800
803
|
t.pattern ?? (t.pattern = Zn), m.init(e, t);
|
|
801
|
-
}), hr = /* @__PURE__ */ c("$
|
|
804
|
+
}), hr = /* @__PURE__ */ c("$ZodULID", (e, t) => {
|
|
802
805
|
t.pattern ?? (t.pattern = $n), m.init(e, t);
|
|
803
|
-
}), mr = /* @__PURE__ */ c("$
|
|
806
|
+
}), mr = /* @__PURE__ */ c("$ZodXID", (e, t) => {
|
|
804
807
|
t.pattern ?? (t.pattern = jn), m.init(e, t);
|
|
805
|
-
}), gr = /* @__PURE__ */ c("$
|
|
808
|
+
}), gr = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
|
|
806
809
|
t.pattern ?? (t.pattern = En), m.init(e, t);
|
|
807
|
-
}), _r = /* @__PURE__ */ c("$
|
|
808
|
-
t.pattern ?? (t.pattern = Pn), m.init(e, t);
|
|
809
|
-
}), vr = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
|
|
810
|
-
t.pattern ?? (t.pattern = qn(t)), m.init(e, t);
|
|
811
|
-
}), wr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
|
|
812
|
-
t.pattern ?? (t.pattern = Mn), m.init(e, t);
|
|
813
|
-
}), zr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
|
|
810
|
+
}), _r = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
|
|
814
811
|
t.pattern ?? (t.pattern = Wn(t)), m.init(e, t);
|
|
815
|
-
}),
|
|
816
|
-
t.pattern ?? (t.pattern =
|
|
817
|
-
}),
|
|
818
|
-
t.pattern ?? (t.pattern =
|
|
812
|
+
}), vr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
|
|
813
|
+
t.pattern ?? (t.pattern = Bn), m.init(e, t);
|
|
814
|
+
}), wr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
|
|
815
|
+
t.pattern ?? (t.pattern = Mn(t)), m.init(e, t);
|
|
816
|
+
}), zr = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
|
|
817
|
+
t.pattern ?? (t.pattern = Tn), m.init(e, t);
|
|
818
|
+
}), br = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
|
|
819
|
+
t.pattern ?? (t.pattern = Nn), m.init(e, t), e._zod.onattach.push((n) => {
|
|
819
820
|
const r = n._zod.bag;
|
|
820
821
|
r.format = "ipv4";
|
|
821
822
|
});
|
|
822
|
-
}),
|
|
823
|
-
t.pattern ?? (t.pattern =
|
|
823
|
+
}), yr = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
|
|
824
|
+
t.pattern ?? (t.pattern = Dn), m.init(e, t), e._zod.onattach.push((n) => {
|
|
824
825
|
const r = n._zod.bag;
|
|
825
826
|
r.format = "ipv6";
|
|
826
827
|
}), e._zod.check = (n) => {
|
|
@@ -836,10 +837,10 @@ const ir = {
|
|
|
836
837
|
});
|
|
837
838
|
}
|
|
838
839
|
};
|
|
839
|
-
}),
|
|
840
|
-
t.pattern ?? (t.pattern =
|
|
841
|
-
}),
|
|
842
|
-
t.pattern ?? (t.pattern =
|
|
840
|
+
}), kr = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
|
|
841
|
+
t.pattern ?? (t.pattern = Rn), m.init(e, t);
|
|
842
|
+
}), xr = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
|
|
843
|
+
t.pattern ?? (t.pattern = Cn), m.init(e, t), e._zod.check = (n) => {
|
|
843
844
|
const r = n.value.split("/");
|
|
844
845
|
try {
|
|
845
846
|
if (r.length !== 2)
|
|
@@ -875,8 +876,8 @@ function et(e) {
|
|
|
875
876
|
return !1;
|
|
876
877
|
}
|
|
877
878
|
}
|
|
878
|
-
const
|
|
879
|
-
t.pattern ?? (t.pattern =
|
|
879
|
+
const Zr = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
880
|
+
t.pattern ?? (t.pattern = Un), m.init(e, t), e._zod.onattach.push((n) => {
|
|
880
881
|
n._zod.bag.contentEncoding = "base64";
|
|
881
882
|
}), e._zod.check = (n) => {
|
|
882
883
|
et(n.value) || n.issues.push({
|
|
@@ -888,17 +889,17 @@ const $r = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
|
888
889
|
});
|
|
889
890
|
};
|
|
890
891
|
});
|
|
891
|
-
function
|
|
892
|
+
function $r(e) {
|
|
892
893
|
if (!Ye.test(e))
|
|
893
894
|
return !1;
|
|
894
895
|
const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
|
|
895
896
|
return et(n);
|
|
896
897
|
}
|
|
897
|
-
const
|
|
898
|
+
const jr = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
898
899
|
t.pattern ?? (t.pattern = Ye), m.init(e, t), e._zod.onattach.push((n) => {
|
|
899
900
|
n._zod.bag.contentEncoding = "base64url";
|
|
900
901
|
}), e._zod.check = (n) => {
|
|
901
|
-
|
|
902
|
+
$r(n.value) || n.issues.push({
|
|
902
903
|
code: "invalid_format",
|
|
903
904
|
format: "base64url",
|
|
904
905
|
input: n.value,
|
|
@@ -906,10 +907,10 @@ const Er = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
|
906
907
|
continue: !t.abort
|
|
907
908
|
});
|
|
908
909
|
};
|
|
909
|
-
}),
|
|
910
|
-
t.pattern ?? (t.pattern =
|
|
910
|
+
}), Er = /* @__PURE__ */ c("$ZodE164", (e, t) => {
|
|
911
|
+
t.pattern ?? (t.pattern = Ln), m.init(e, t);
|
|
911
912
|
});
|
|
912
|
-
function
|
|
913
|
+
function Pr(e, t = null) {
|
|
913
914
|
try {
|
|
914
915
|
const n = e.split(".");
|
|
915
916
|
if (n.length !== 3)
|
|
@@ -923,9 +924,9 @@ function Tr(e, t = null) {
|
|
|
923
924
|
return !1;
|
|
924
925
|
}
|
|
925
926
|
}
|
|
926
|
-
const
|
|
927
|
+
const Tr = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
927
928
|
m.init(e, t), e._zod.check = (n) => {
|
|
928
|
-
|
|
929
|
+
Pr(n.value, t.alg) || n.issues.push({
|
|
929
930
|
code: "invalid_format",
|
|
930
931
|
format: "jwt",
|
|
931
932
|
input: n.value,
|
|
@@ -933,9 +934,9 @@ const Ir = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
|
933
934
|
continue: !t.abort
|
|
934
935
|
});
|
|
935
936
|
};
|
|
936
|
-
}),
|
|
937
|
+
}), Ir = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
|
|
937
938
|
v.init(e, t), e._zod.parse = (n) => n;
|
|
938
|
-
}),
|
|
939
|
+
}), Ar = /* @__PURE__ */ c("$ZodNever", (e, t) => {
|
|
939
940
|
v.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
|
|
940
941
|
expected: "never",
|
|
941
942
|
code: "invalid_type",
|
|
@@ -946,7 +947,7 @@ const Ir = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
|
946
947
|
function _e(e, t, n) {
|
|
947
948
|
e.issues.length && t.issues.push(...He(n, e.issues)), t.value[n] = e.value;
|
|
948
949
|
}
|
|
949
|
-
const
|
|
950
|
+
const Or = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
950
951
|
v.init(e, t), e._zod.parse = (n, r) => {
|
|
951
952
|
const o = n.value;
|
|
952
953
|
if (!Array.isArray(o))
|
|
@@ -968,7 +969,7 @@ const Sr = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
|
968
969
|
return s.length ? Promise.all(s).then(() => n) : n;
|
|
969
970
|
};
|
|
970
971
|
});
|
|
971
|
-
function
|
|
972
|
+
function J(e, t, n, r) {
|
|
972
973
|
e.issues.length && t.issues.push(...He(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
973
974
|
}
|
|
974
975
|
function tt(e) {
|
|
@@ -976,7 +977,7 @@ function tt(e) {
|
|
|
976
977
|
for (const r of t)
|
|
977
978
|
if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
|
|
978
979
|
throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
|
|
979
|
-
const n =
|
|
980
|
+
const n = rn(e.shape);
|
|
980
981
|
return {
|
|
981
982
|
...e,
|
|
982
983
|
keys: t,
|
|
@@ -995,7 +996,7 @@ function nt(e, t, n, r, o, s) {
|
|
|
995
996
|
continue;
|
|
996
997
|
}
|
|
997
998
|
const b = l.run({ value: t[p], issues: [] }, r);
|
|
998
|
-
b instanceof Promise ? e.push(b.then((_) =>
|
|
999
|
+
b instanceof Promise ? e.push(b.then((_) => J(_, n, p, t))) : J(b, n, p, t);
|
|
999
1000
|
}
|
|
1000
1001
|
return i.length && n.issues.push({
|
|
1001
1002
|
code: "unrecognized_keys",
|
|
@@ -1004,7 +1005,7 @@ function nt(e, t, n, r, o, s) {
|
|
|
1004
1005
|
inst: s
|
|
1005
1006
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1006
1007
|
}
|
|
1007
|
-
const
|
|
1008
|
+
const Sr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
1008
1009
|
if (v.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1009
1010
|
const u = t.shape;
|
|
1010
1011
|
Object.defineProperty(t, "shape", {
|
|
@@ -1029,7 +1030,7 @@ const Nr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1029
1030
|
}
|
|
1030
1031
|
return l;
|
|
1031
1032
|
});
|
|
1032
|
-
const o =
|
|
1033
|
+
const o = H, s = t.catchall;
|
|
1033
1034
|
let i;
|
|
1034
1035
|
e._zod.parse = (u, l) => {
|
|
1035
1036
|
i ?? (i = r.value);
|
|
@@ -1045,14 +1046,14 @@ const Nr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1045
1046
|
const p = [], b = i.shape;
|
|
1046
1047
|
for (const _ of i.keys) {
|
|
1047
1048
|
const y = b[_]._zod.run({ value: d[_], issues: [] }, l);
|
|
1048
|
-
y instanceof Promise ? p.push(y.then((te) =>
|
|
1049
|
+
y instanceof Promise ? p.push(y.then((te) => J(te, u, _, d))) : J(y, u, _, d);
|
|
1049
1050
|
}
|
|
1050
1051
|
return s ? nt(p, d, u, l, r.value, e) : p.length ? Promise.all(p).then(() => u) : u;
|
|
1051
1052
|
};
|
|
1052
|
-
}),
|
|
1053
|
-
|
|
1053
|
+
}), Nr = /* @__PURE__ */ c("$ZodObjectJIT", (e, t) => {
|
|
1054
|
+
Sr.init(e, t);
|
|
1054
1055
|
const n = e._zod.parse, r = se(() => tt(t)), o = (_) => {
|
|
1055
|
-
const w = new
|
|
1056
|
+
const w = new or(["shape", "payload", "ctx"]), y = r.value, te = (E) => {
|
|
1056
1057
|
const Z = me(E);
|
|
1057
1058
|
return `shape[${Z}]._zod.run({ value: input[${Z}], issues: [] }, ctx)`;
|
|
1058
1059
|
};
|
|
@@ -1088,7 +1089,7 @@ const Nr = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1088
1089
|
return (E, Z) => ht(_, E, Z);
|
|
1089
1090
|
};
|
|
1090
1091
|
let s;
|
|
1091
|
-
const i =
|
|
1092
|
+
const i = H, u = !We.jitless, d = u && tn.value, p = t.catchall;
|
|
1092
1093
|
let b;
|
|
1093
1094
|
e._zod.parse = (_, w) => {
|
|
1094
1095
|
b ?? (b = r.value);
|
|
@@ -1113,7 +1114,7 @@ function ve(e, t, n, r) {
|
|
|
1113
1114
|
errors: e.map((s) => s.issues.map((i) => A(i, r, I())))
|
|
1114
1115
|
}), t);
|
|
1115
1116
|
}
|
|
1116
|
-
const
|
|
1117
|
+
const Dr = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
1117
1118
|
v.init(e, t), h(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), h(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), h(e._zod, "values", () => {
|
|
1118
1119
|
if (t.options.every((o) => o._zod.values))
|
|
1119
1120
|
return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
|
|
@@ -1144,7 +1145,7 @@ const Rr = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
|
1144
1145
|
}
|
|
1145
1146
|
return i ? Promise.all(u).then((l) => ve(l, o, e, s)) : ve(u, o, e, s);
|
|
1146
1147
|
};
|
|
1147
|
-
}),
|
|
1148
|
+
}), Rr = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
|
|
1148
1149
|
v.init(e, t), e._zod.parse = (n, r) => {
|
|
1149
1150
|
const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
|
|
1150
1151
|
return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([l, d]) => we(n, l, d)) : we(n, s, i);
|
|
@@ -1193,10 +1194,10 @@ function we(e, t, n) {
|
|
|
1193
1194
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
|
|
1194
1195
|
return e.value = r.data, e;
|
|
1195
1196
|
}
|
|
1196
|
-
const
|
|
1197
|
+
const Cr = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
1197
1198
|
v.init(e, t);
|
|
1198
|
-
const n =
|
|
1199
|
-
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) =>
|
|
1199
|
+
const n = en(t.entries), r = new Set(n);
|
|
1200
|
+
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => nn.has(typeof o)).map((o) => typeof o == "string" ? Y(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
|
|
1200
1201
|
const i = o.value;
|
|
1201
1202
|
return r.has(i) || o.issues.push({
|
|
1202
1203
|
code: "invalid_value",
|
|
@@ -1205,7 +1206,7 @@ const Ur = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
|
1205
1206
|
inst: e
|
|
1206
1207
|
}), o;
|
|
1207
1208
|
};
|
|
1208
|
-
}),
|
|
1209
|
+
}), Ur = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
|
|
1209
1210
|
v.init(e, t), e._zod.parse = (n, r) => {
|
|
1210
1211
|
if (r.direction === "backward")
|
|
1211
1212
|
throw new Me(e.constructor.name);
|
|
@@ -1220,7 +1221,7 @@ const Ur = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
|
1220
1221
|
function ze(e, t) {
|
|
1221
1222
|
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
1222
1223
|
}
|
|
1223
|
-
const
|
|
1224
|
+
const Fr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
|
|
1224
1225
|
v.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", h(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), h(e._zod, "pattern", () => {
|
|
1225
1226
|
const n = t.innerType._zod.pattern;
|
|
1226
1227
|
return n ? new RegExp(`^(${ae(n.source)})?$`) : void 0;
|
|
@@ -1231,12 +1232,12 @@ const Lr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
|
|
|
1231
1232
|
}
|
|
1232
1233
|
return n.value === void 0 ? n : t.innerType._zod.run(n, r);
|
|
1233
1234
|
};
|
|
1234
|
-
}),
|
|
1235
|
+
}), Lr = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
|
|
1235
1236
|
v.init(e, t), h(e._zod, "optin", () => t.innerType._zod.optin), h(e._zod, "optout", () => t.innerType._zod.optout), h(e._zod, "pattern", () => {
|
|
1236
1237
|
const n = t.innerType._zod.pattern;
|
|
1237
1238
|
return n ? new RegExp(`^(${ae(n.source)}|null)$`) : void 0;
|
|
1238
1239
|
}), h(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
|
|
1239
|
-
}),
|
|
1240
|
+
}), Br = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
|
|
1240
1241
|
v.init(e, t), e._zod.optin = "optional", h(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
1241
1242
|
if (r.direction === "backward")
|
|
1242
1243
|
return t.innerType._zod.run(n, r);
|
|
@@ -1249,9 +1250,9 @@ const Lr = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
|
|
|
1249
1250
|
function be(e, t) {
|
|
1250
1251
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1251
1252
|
}
|
|
1252
|
-
const
|
|
1253
|
+
const Mr = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
|
|
1253
1254
|
v.init(e, t), e._zod.optin = "optional", h(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
|
|
1254
|
-
}),
|
|
1255
|
+
}), Wr = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
|
|
1255
1256
|
v.init(e, t), h(e._zod, "values", () => {
|
|
1256
1257
|
const n = t.innerType._zod.values;
|
|
1257
1258
|
return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
|
|
@@ -1268,7 +1269,7 @@ function ye(e, t) {
|
|
|
1268
1269
|
inst: t
|
|
1269
1270
|
}), e;
|
|
1270
1271
|
}
|
|
1271
|
-
const
|
|
1272
|
+
const qr = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
1272
1273
|
v.init(e, t), h(e._zod, "optin", () => t.innerType._zod.optin), h(e._zod, "optout", () => t.innerType._zod.optout), h(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
1273
1274
|
if (r.direction === "backward")
|
|
1274
1275
|
return t.innerType._zod.run(n, r);
|
|
@@ -1287,20 +1288,20 @@ const Vr = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
|
1287
1288
|
input: n.value
|
|
1288
1289
|
}), n.issues = []), n);
|
|
1289
1290
|
};
|
|
1290
|
-
}),
|
|
1291
|
+
}), Vr = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
|
|
1291
1292
|
v.init(e, t), h(e._zod, "values", () => t.in._zod.values), h(e._zod, "optin", () => t.in._zod.optin), h(e._zod, "optout", () => t.out._zod.optout), h(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
|
|
1292
1293
|
if (r.direction === "backward") {
|
|
1293
1294
|
const s = t.out._zod.run(n, r);
|
|
1294
|
-
return s instanceof Promise ? s.then((i) =>
|
|
1295
|
+
return s instanceof Promise ? s.then((i) => W(i, t.in, r)) : W(s, t.in, r);
|
|
1295
1296
|
}
|
|
1296
1297
|
const o = t.in._zod.run(n, r);
|
|
1297
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1298
|
+
return o instanceof Promise ? o.then((s) => W(s, t.out, r)) : W(o, t.out, r);
|
|
1298
1299
|
};
|
|
1299
1300
|
});
|
|
1300
|
-
function
|
|
1301
|
+
function W(e, t, n) {
|
|
1301
1302
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
|
|
1302
1303
|
}
|
|
1303
|
-
const
|
|
1304
|
+
const Hr = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
|
|
1304
1305
|
v.init(e, t), h(e._zod, "propValues", () => t.innerType._zod.propValues), h(e._zod, "values", () => t.innerType._zod.values), h(e._zod, "optin", () => t.innerType._zod.optin), h(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (n, r) => {
|
|
1305
1306
|
if (r.direction === "backward")
|
|
1306
1307
|
return t.innerType._zod.run(n, r);
|
|
@@ -1311,7 +1312,7 @@ const Jr = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
|
|
|
1311
1312
|
function ke(e) {
|
|
1312
1313
|
return e.value = Object.freeze(e.value), e;
|
|
1313
1314
|
}
|
|
1314
|
-
const
|
|
1315
|
+
const Jr = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
|
|
1315
1316
|
j.init(e, t), v.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
|
|
1316
1317
|
const r = n.value, o = t.fn(r);
|
|
1317
1318
|
if (o instanceof Promise)
|
|
@@ -1334,7 +1335,7 @@ function xe(e, t, n, r) {
|
|
|
1334
1335
|
r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(U(o));
|
|
1335
1336
|
}
|
|
1336
1337
|
}
|
|
1337
|
-
class
|
|
1338
|
+
class Kr {
|
|
1338
1339
|
constructor() {
|
|
1339
1340
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1340
1341
|
}
|
|
@@ -1368,17 +1369,17 @@ class Gr {
|
|
|
1368
1369
|
return this._map.has(t);
|
|
1369
1370
|
}
|
|
1370
1371
|
}
|
|
1371
|
-
function
|
|
1372
|
-
return new
|
|
1372
|
+
function Gr() {
|
|
1373
|
+
return new Kr();
|
|
1373
1374
|
}
|
|
1374
|
-
const
|
|
1375
|
-
function
|
|
1375
|
+
const q = /* @__PURE__ */ Gr();
|
|
1376
|
+
function Yr(e, t) {
|
|
1376
1377
|
return new e({
|
|
1377
1378
|
type: "string",
|
|
1378
1379
|
...f(t)
|
|
1379
1380
|
});
|
|
1380
1381
|
}
|
|
1381
|
-
function
|
|
1382
|
+
function Qr(e, t) {
|
|
1382
1383
|
return new e({
|
|
1383
1384
|
type: "string",
|
|
1384
1385
|
format: "email",
|
|
@@ -1396,7 +1397,7 @@ function Ze(e, t) {
|
|
|
1396
1397
|
...f(t)
|
|
1397
1398
|
});
|
|
1398
1399
|
}
|
|
1399
|
-
function
|
|
1400
|
+
function Xr(e, t) {
|
|
1400
1401
|
return new e({
|
|
1401
1402
|
type: "string",
|
|
1402
1403
|
format: "uuid",
|
|
@@ -1405,7 +1406,7 @@ function eo(e, t) {
|
|
|
1405
1406
|
...f(t)
|
|
1406
1407
|
});
|
|
1407
1408
|
}
|
|
1408
|
-
function
|
|
1409
|
+
function eo(e, t) {
|
|
1409
1410
|
return new e({
|
|
1410
1411
|
type: "string",
|
|
1411
1412
|
format: "uuid",
|
|
@@ -1415,7 +1416,7 @@ function to(e, t) {
|
|
|
1415
1416
|
...f(t)
|
|
1416
1417
|
});
|
|
1417
1418
|
}
|
|
1418
|
-
function
|
|
1419
|
+
function to(e, t) {
|
|
1419
1420
|
return new e({
|
|
1420
1421
|
type: "string",
|
|
1421
1422
|
format: "uuid",
|
|
@@ -1425,7 +1426,7 @@ function no(e, t) {
|
|
|
1425
1426
|
...f(t)
|
|
1426
1427
|
});
|
|
1427
1428
|
}
|
|
1428
|
-
function
|
|
1429
|
+
function no(e, t) {
|
|
1429
1430
|
return new e({
|
|
1430
1431
|
type: "string",
|
|
1431
1432
|
format: "uuid",
|
|
@@ -1435,7 +1436,7 @@ function ro(e, t) {
|
|
|
1435
1436
|
...f(t)
|
|
1436
1437
|
});
|
|
1437
1438
|
}
|
|
1438
|
-
function
|
|
1439
|
+
function ro(e, t) {
|
|
1439
1440
|
return new e({
|
|
1440
1441
|
type: "string",
|
|
1441
1442
|
format: "url",
|
|
@@ -1444,7 +1445,7 @@ function oo(e, t) {
|
|
|
1444
1445
|
...f(t)
|
|
1445
1446
|
});
|
|
1446
1447
|
}
|
|
1447
|
-
function
|
|
1448
|
+
function oo(e, t) {
|
|
1448
1449
|
return new e({
|
|
1449
1450
|
type: "string",
|
|
1450
1451
|
format: "emoji",
|
|
@@ -1453,7 +1454,7 @@ function so(e, t) {
|
|
|
1453
1454
|
...f(t)
|
|
1454
1455
|
});
|
|
1455
1456
|
}
|
|
1456
|
-
function
|
|
1457
|
+
function so(e, t) {
|
|
1457
1458
|
return new e({
|
|
1458
1459
|
type: "string",
|
|
1459
1460
|
format: "nanoid",
|
|
@@ -1462,7 +1463,7 @@ function io(e, t) {
|
|
|
1462
1463
|
...f(t)
|
|
1463
1464
|
});
|
|
1464
1465
|
}
|
|
1465
|
-
function
|
|
1466
|
+
function io(e, t) {
|
|
1466
1467
|
return new e({
|
|
1467
1468
|
type: "string",
|
|
1468
1469
|
format: "cuid",
|
|
@@ -1471,7 +1472,7 @@ function ao(e, t) {
|
|
|
1471
1472
|
...f(t)
|
|
1472
1473
|
});
|
|
1473
1474
|
}
|
|
1474
|
-
function
|
|
1475
|
+
function ao(e, t) {
|
|
1475
1476
|
return new e({
|
|
1476
1477
|
type: "string",
|
|
1477
1478
|
format: "cuid2",
|
|
@@ -1480,7 +1481,7 @@ function co(e, t) {
|
|
|
1480
1481
|
...f(t)
|
|
1481
1482
|
});
|
|
1482
1483
|
}
|
|
1483
|
-
function
|
|
1484
|
+
function co(e, t) {
|
|
1484
1485
|
return new e({
|
|
1485
1486
|
type: "string",
|
|
1486
1487
|
format: "ulid",
|
|
@@ -1489,7 +1490,7 @@ function uo(e, t) {
|
|
|
1489
1490
|
...f(t)
|
|
1490
1491
|
});
|
|
1491
1492
|
}
|
|
1492
|
-
function
|
|
1493
|
+
function uo(e, t) {
|
|
1493
1494
|
return new e({
|
|
1494
1495
|
type: "string",
|
|
1495
1496
|
format: "xid",
|
|
@@ -1498,7 +1499,7 @@ function lo(e, t) {
|
|
|
1498
1499
|
...f(t)
|
|
1499
1500
|
});
|
|
1500
1501
|
}
|
|
1501
|
-
function
|
|
1502
|
+
function lo(e, t) {
|
|
1502
1503
|
return new e({
|
|
1503
1504
|
type: "string",
|
|
1504
1505
|
format: "ksuid",
|
|
@@ -1507,7 +1508,7 @@ function fo(e, t) {
|
|
|
1507
1508
|
...f(t)
|
|
1508
1509
|
});
|
|
1509
1510
|
}
|
|
1510
|
-
function
|
|
1511
|
+
function fo(e, t) {
|
|
1511
1512
|
return new e({
|
|
1512
1513
|
type: "string",
|
|
1513
1514
|
format: "ipv4",
|
|
@@ -1516,7 +1517,7 @@ function po(e, t) {
|
|
|
1516
1517
|
...f(t)
|
|
1517
1518
|
});
|
|
1518
1519
|
}
|
|
1519
|
-
function
|
|
1520
|
+
function po(e, t) {
|
|
1520
1521
|
return new e({
|
|
1521
1522
|
type: "string",
|
|
1522
1523
|
format: "ipv6",
|
|
@@ -1525,7 +1526,7 @@ function ho(e, t) {
|
|
|
1525
1526
|
...f(t)
|
|
1526
1527
|
});
|
|
1527
1528
|
}
|
|
1528
|
-
function
|
|
1529
|
+
function ho(e, t) {
|
|
1529
1530
|
return new e({
|
|
1530
1531
|
type: "string",
|
|
1531
1532
|
format: "cidrv4",
|
|
@@ -1534,7 +1535,7 @@ function mo(e, t) {
|
|
|
1534
1535
|
...f(t)
|
|
1535
1536
|
});
|
|
1536
1537
|
}
|
|
1537
|
-
function
|
|
1538
|
+
function mo(e, t) {
|
|
1538
1539
|
return new e({
|
|
1539
1540
|
type: "string",
|
|
1540
1541
|
format: "cidrv6",
|
|
@@ -1543,7 +1544,7 @@ function go(e, t) {
|
|
|
1543
1544
|
...f(t)
|
|
1544
1545
|
});
|
|
1545
1546
|
}
|
|
1546
|
-
function
|
|
1547
|
+
function go(e, t) {
|
|
1547
1548
|
return new e({
|
|
1548
1549
|
type: "string",
|
|
1549
1550
|
format: "base64",
|
|
@@ -1552,7 +1553,7 @@ function _o(e, t) {
|
|
|
1552
1553
|
...f(t)
|
|
1553
1554
|
});
|
|
1554
1555
|
}
|
|
1555
|
-
function
|
|
1556
|
+
function _o(e, t) {
|
|
1556
1557
|
return new e({
|
|
1557
1558
|
type: "string",
|
|
1558
1559
|
format: "base64url",
|
|
@@ -1561,7 +1562,7 @@ function vo(e, t) {
|
|
|
1561
1562
|
...f(t)
|
|
1562
1563
|
});
|
|
1563
1564
|
}
|
|
1564
|
-
function
|
|
1565
|
+
function vo(e, t) {
|
|
1565
1566
|
return new e({
|
|
1566
1567
|
type: "string",
|
|
1567
1568
|
format: "e164",
|
|
@@ -1570,7 +1571,7 @@ function wo(e, t) {
|
|
|
1570
1571
|
...f(t)
|
|
1571
1572
|
});
|
|
1572
1573
|
}
|
|
1573
|
-
function
|
|
1574
|
+
function wo(e, t) {
|
|
1574
1575
|
return new e({
|
|
1575
1576
|
type: "string",
|
|
1576
1577
|
format: "jwt",
|
|
@@ -1579,7 +1580,7 @@ function zo(e, t) {
|
|
|
1579
1580
|
...f(t)
|
|
1580
1581
|
});
|
|
1581
1582
|
}
|
|
1582
|
-
function
|
|
1583
|
+
function zo(e, t) {
|
|
1583
1584
|
return new e({
|
|
1584
1585
|
type: "string",
|
|
1585
1586
|
format: "datetime",
|
|
@@ -1590,7 +1591,7 @@ function bo(e, t) {
|
|
|
1590
1591
|
...f(t)
|
|
1591
1592
|
});
|
|
1592
1593
|
}
|
|
1593
|
-
function
|
|
1594
|
+
function bo(e, t) {
|
|
1594
1595
|
return new e({
|
|
1595
1596
|
type: "string",
|
|
1596
1597
|
format: "date",
|
|
@@ -1598,7 +1599,7 @@ function yo(e, t) {
|
|
|
1598
1599
|
...f(t)
|
|
1599
1600
|
});
|
|
1600
1601
|
}
|
|
1601
|
-
function
|
|
1602
|
+
function yo(e, t) {
|
|
1602
1603
|
return new e({
|
|
1603
1604
|
type: "string",
|
|
1604
1605
|
format: "time",
|
|
@@ -1607,7 +1608,7 @@ function ko(e, t) {
|
|
|
1607
1608
|
...f(t)
|
|
1608
1609
|
});
|
|
1609
1610
|
}
|
|
1610
|
-
function
|
|
1611
|
+
function ko(e, t) {
|
|
1611
1612
|
return new e({
|
|
1612
1613
|
type: "string",
|
|
1613
1614
|
format: "duration",
|
|
@@ -1615,103 +1616,103 @@ function xo(e, t) {
|
|
|
1615
1616
|
...f(t)
|
|
1616
1617
|
});
|
|
1617
1618
|
}
|
|
1618
|
-
function
|
|
1619
|
+
function xo(e) {
|
|
1619
1620
|
return new e({
|
|
1620
1621
|
type: "unknown"
|
|
1621
1622
|
});
|
|
1622
1623
|
}
|
|
1623
|
-
function
|
|
1624
|
+
function Zo(e, t) {
|
|
1624
1625
|
return new e({
|
|
1625
1626
|
type: "never",
|
|
1626
1627
|
...f(t)
|
|
1627
1628
|
});
|
|
1628
1629
|
}
|
|
1629
1630
|
function rt(e, t) {
|
|
1630
|
-
return new
|
|
1631
|
+
return new Jn({
|
|
1631
1632
|
check: "max_length",
|
|
1632
1633
|
...f(t),
|
|
1633
1634
|
maximum: e
|
|
1634
1635
|
});
|
|
1635
1636
|
}
|
|
1636
|
-
function
|
|
1637
|
-
return new
|
|
1637
|
+
function K(e, t) {
|
|
1638
|
+
return new Kn({
|
|
1638
1639
|
check: "min_length",
|
|
1639
1640
|
...f(t),
|
|
1640
1641
|
minimum: e
|
|
1641
1642
|
});
|
|
1642
1643
|
}
|
|
1643
1644
|
function ot(e, t) {
|
|
1644
|
-
return new
|
|
1645
|
+
return new Gn({
|
|
1645
1646
|
check: "length_equals",
|
|
1646
1647
|
...f(t),
|
|
1647
1648
|
length: e
|
|
1648
1649
|
});
|
|
1649
1650
|
}
|
|
1650
|
-
function
|
|
1651
|
-
return new
|
|
1651
|
+
function $o(e, t) {
|
|
1652
|
+
return new Yn({
|
|
1652
1653
|
check: "string_format",
|
|
1653
1654
|
format: "regex",
|
|
1654
1655
|
...f(t),
|
|
1655
1656
|
pattern: e
|
|
1656
1657
|
});
|
|
1657
1658
|
}
|
|
1658
|
-
function
|
|
1659
|
-
return new
|
|
1659
|
+
function jo(e) {
|
|
1660
|
+
return new Qn({
|
|
1660
1661
|
check: "string_format",
|
|
1661
1662
|
format: "lowercase",
|
|
1662
1663
|
...f(e)
|
|
1663
1664
|
});
|
|
1664
1665
|
}
|
|
1665
|
-
function
|
|
1666
|
-
return new
|
|
1666
|
+
function Eo(e) {
|
|
1667
|
+
return new Xn({
|
|
1667
1668
|
check: "string_format",
|
|
1668
1669
|
format: "uppercase",
|
|
1669
1670
|
...f(e)
|
|
1670
1671
|
});
|
|
1671
1672
|
}
|
|
1672
|
-
function
|
|
1673
|
-
return new
|
|
1673
|
+
function Po(e, t) {
|
|
1674
|
+
return new er({
|
|
1674
1675
|
check: "string_format",
|
|
1675
1676
|
format: "includes",
|
|
1676
1677
|
...f(t),
|
|
1677
1678
|
includes: e
|
|
1678
1679
|
});
|
|
1679
1680
|
}
|
|
1680
|
-
function
|
|
1681
|
-
return new
|
|
1681
|
+
function To(e, t) {
|
|
1682
|
+
return new tr({
|
|
1682
1683
|
check: "string_format",
|
|
1683
1684
|
format: "starts_with",
|
|
1684
1685
|
...f(t),
|
|
1685
1686
|
prefix: e
|
|
1686
1687
|
});
|
|
1687
1688
|
}
|
|
1688
|
-
function
|
|
1689
|
-
return new
|
|
1689
|
+
function Io(e, t) {
|
|
1690
|
+
return new nr({
|
|
1690
1691
|
check: "string_format",
|
|
1691
1692
|
format: "ends_with",
|
|
1692
1693
|
...f(t),
|
|
1693
1694
|
suffix: e
|
|
1694
1695
|
});
|
|
1695
1696
|
}
|
|
1696
|
-
function
|
|
1697
|
-
return new
|
|
1697
|
+
function B(e) {
|
|
1698
|
+
return new rr({
|
|
1698
1699
|
check: "overwrite",
|
|
1699
1700
|
tx: e
|
|
1700
1701
|
});
|
|
1701
1702
|
}
|
|
1702
|
-
function
|
|
1703
|
-
return
|
|
1703
|
+
function Ao(e) {
|
|
1704
|
+
return B((t) => t.normalize(e));
|
|
1705
|
+
}
|
|
1706
|
+
function Oo() {
|
|
1707
|
+
return B((e) => e.trim());
|
|
1704
1708
|
}
|
|
1705
1709
|
function So() {
|
|
1706
|
-
return
|
|
1710
|
+
return B((e) => e.toLowerCase());
|
|
1707
1711
|
}
|
|
1708
1712
|
function No() {
|
|
1709
|
-
return
|
|
1713
|
+
return B((e) => e.toUpperCase());
|
|
1710
1714
|
}
|
|
1711
|
-
function Do() {
|
|
1712
|
-
return L((e) => e.toUpperCase());
|
|
1713
|
-
}
|
|
1714
|
-
function Ro(e, t, n) {
|
|
1715
|
+
function Do(e, t, n) {
|
|
1715
1716
|
return new e({
|
|
1716
1717
|
type: "array",
|
|
1717
1718
|
element: t,
|
|
@@ -1721,7 +1722,7 @@ function Ro(e, t, n) {
|
|
|
1721
1722
|
...f(n)
|
|
1722
1723
|
});
|
|
1723
1724
|
}
|
|
1724
|
-
function
|
|
1725
|
+
function Ro(e, t, n) {
|
|
1725
1726
|
return new e({
|
|
1726
1727
|
type: "custom",
|
|
1727
1728
|
check: "custom",
|
|
@@ -1729,8 +1730,8 @@ function Co(e, t, n) {
|
|
|
1729
1730
|
...f(n)
|
|
1730
1731
|
});
|
|
1731
1732
|
}
|
|
1732
|
-
function
|
|
1733
|
-
const t =
|
|
1733
|
+
function Co(e) {
|
|
1734
|
+
const t = Uo((n) => (n.addIssue = (r) => {
|
|
1734
1735
|
if (typeof r == "string")
|
|
1735
1736
|
n.issues.push(U(r, n.value, t._zod.def));
|
|
1736
1737
|
else {
|
|
@@ -1740,45 +1741,45 @@ function Uo(e) {
|
|
|
1740
1741
|
}, e(n.value, n)));
|
|
1741
1742
|
return t;
|
|
1742
1743
|
}
|
|
1743
|
-
function
|
|
1744
|
+
function Uo(e, t) {
|
|
1744
1745
|
const n = new j({
|
|
1745
1746
|
check: "custom",
|
|
1746
1747
|
...f(t)
|
|
1747
1748
|
});
|
|
1748
1749
|
return n._zod.check = e, n;
|
|
1749
1750
|
}
|
|
1750
|
-
const
|
|
1751
|
+
const Fo = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
|
|
1752
|
+
_r.init(e, t), g.init(e, t);
|
|
1753
|
+
});
|
|
1754
|
+
function Lo(e) {
|
|
1755
|
+
return zo(Fo, e);
|
|
1756
|
+
}
|
|
1757
|
+
const Bo = /* @__PURE__ */ c("ZodISODate", (e, t) => {
|
|
1751
1758
|
vr.init(e, t), g.init(e, t);
|
|
1752
1759
|
});
|
|
1753
|
-
function
|
|
1754
|
-
return bo(
|
|
1760
|
+
function Mo(e) {
|
|
1761
|
+
return bo(Bo, e);
|
|
1755
1762
|
}
|
|
1756
|
-
const
|
|
1763
|
+
const Wo = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
|
|
1757
1764
|
wr.init(e, t), g.init(e, t);
|
|
1758
1765
|
});
|
|
1759
|
-
function
|
|
1760
|
-
return yo(
|
|
1766
|
+
function qo(e) {
|
|
1767
|
+
return yo(Wo, e);
|
|
1761
1768
|
}
|
|
1762
|
-
const
|
|
1769
|
+
const Vo = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
|
|
1763
1770
|
zr.init(e, t), g.init(e, t);
|
|
1764
1771
|
});
|
|
1765
|
-
function
|
|
1766
|
-
return ko(
|
|
1772
|
+
function Ho(e) {
|
|
1773
|
+
return ko(Vo, e);
|
|
1767
1774
|
}
|
|
1768
|
-
const
|
|
1769
|
-
br.init(e, t), g.init(e, t);
|
|
1770
|
-
});
|
|
1771
|
-
function Jo(e) {
|
|
1772
|
-
return xo(Ho, e);
|
|
1773
|
-
}
|
|
1774
|
-
const Ko = (e, t) => {
|
|
1775
|
+
const Jo = (e, t) => {
|
|
1775
1776
|
Ke.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
1776
1777
|
format: {
|
|
1777
|
-
value: (n) =>
|
|
1778
|
+
value: (n) => pn(e, n)
|
|
1778
1779
|
// enumerable: false,
|
|
1779
1780
|
},
|
|
1780
1781
|
flatten: {
|
|
1781
|
-
value: (n) =>
|
|
1782
|
+
value: (n) => fn(e, n)
|
|
1782
1783
|
// enumerable: false,
|
|
1783
1784
|
},
|
|
1784
1785
|
addIssue: {
|
|
@@ -1800,127 +1801,127 @@ const Ko = (e, t) => {
|
|
|
1800
1801
|
// enumerable: false,
|
|
1801
1802
|
}
|
|
1802
1803
|
});
|
|
1803
|
-
}, k = c("ZodError",
|
|
1804
|
+
}, k = c("ZodError", Jo, {
|
|
1804
1805
|
Parent: Error
|
|
1805
|
-
}),
|
|
1806
|
+
}), Ko = /* @__PURE__ */ ue(k), Go = /* @__PURE__ */ le(k), Yo = /* @__PURE__ */ Q(k), Qo = /* @__PURE__ */ X(k), Xo = /* @__PURE__ */ gn(k), es = /* @__PURE__ */ _n(k), ts = /* @__PURE__ */ vn(k), ns = /* @__PURE__ */ wn(k), rs = /* @__PURE__ */ zn(k), os = /* @__PURE__ */ bn(k), ss = /* @__PURE__ */ yn(k), is = /* @__PURE__ */ kn(k), z = /* @__PURE__ */ c("ZodType", (e, t) => (v.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(S(t, {
|
|
1806
1807
|
checks: [
|
|
1807
1808
|
...t.checks ?? [],
|
|
1808
1809
|
...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
1809
1810
|
]
|
|
1810
|
-
})), e.clone = (n, r) => T(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) =>
|
|
1811
|
+
})), e.clone = (n, r) => T(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Ko(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Yo(e, n, r), e.parseAsync = async (n, r) => Go(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Qo(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => Xo(e, n, r), e.decode = (n, r) => es(e, n, r), e.encodeAsync = async (n, r) => ts(e, n, r), e.decodeAsync = async (n, r) => ns(e, n, r), e.safeEncode = (n, r) => rs(e, n, r), e.safeDecode = (n, r) => os(e, n, r), e.safeEncodeAsync = async (n, r) => ss(e, n, r), e.safeDecodeAsync = async (n, r) => is(e, n, r), e.refine = (n, r) => e.check(Gs(n, r)), e.superRefine = (n) => e.check(Ys(n)), e.overwrite = (n) => e.check(B(n)), e.optional = () => Pe(e), e.nullable = () => Te(e), e.nullish = () => Pe(Te(e)), e.nonoptional = (n) => Ms(e, n), e.array = () => Ps(e), e.or = (n) => Os([e, n]), e.and = (n) => Ns(e, n), e.transform = (n) => Ie(e, Rs(n)), e.default = (n) => Fs(e, n), e.prefault = (n) => Bs(e, n), e.catch = (n) => qs(e, n), e.pipe = (n) => Ie(e, n), e.readonly = () => Js(e), e.describe = (n) => {
|
|
1811
1812
|
const r = e.clone();
|
|
1812
|
-
return
|
|
1813
|
+
return q.add(r, { description: n }), r;
|
|
1813
1814
|
}, Object.defineProperty(e, "description", {
|
|
1814
1815
|
get() {
|
|
1815
|
-
return
|
|
1816
|
+
return q.get(e)?.description;
|
|
1816
1817
|
},
|
|
1817
1818
|
configurable: !0
|
|
1818
1819
|
}), e.meta = (...n) => {
|
|
1819
1820
|
if (n.length === 0)
|
|
1820
|
-
return
|
|
1821
|
+
return q.get(e);
|
|
1821
1822
|
const r = e.clone();
|
|
1822
|
-
return
|
|
1823
|
+
return q.add(r, n[0]), r;
|
|
1823
1824
|
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), st = /* @__PURE__ */ c("_ZodString", (e, t) => {
|
|
1824
1825
|
de.init(e, t), z.init(e, t);
|
|
1825
1826
|
const n = e._zod.bag;
|
|
1826
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(
|
|
1827
|
-
}),
|
|
1828
|
-
de.init(e, t), st.init(e, t), e.email = (n) => e.check(
|
|
1827
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check($o(...r)), e.includes = (...r) => e.check(Po(...r)), e.startsWith = (...r) => e.check(To(...r)), e.endsWith = (...r) => e.check(Io(...r)), e.min = (...r) => e.check(K(...r)), e.max = (...r) => e.check(rt(...r)), e.length = (...r) => e.check(ot(...r)), e.nonempty = (...r) => e.check(K(1, ...r)), e.lowercase = (r) => e.check(jo(r)), e.uppercase = (r) => e.check(Eo(r)), e.trim = () => e.check(Oo()), e.normalize = (...r) => e.check(Ao(...r)), e.toLowerCase = () => e.check(So()), e.toUpperCase = () => e.check(No());
|
|
1828
|
+
}), as = /* @__PURE__ */ c("ZodString", (e, t) => {
|
|
1829
|
+
de.init(e, t), st.init(e, t), e.email = (n) => e.check(Qr(cs, n)), e.url = (n) => e.check(ro(us, n)), e.jwt = (n) => e.check(wo(xs, n)), e.emoji = (n) => e.check(oo(ls, n)), e.guid = (n) => e.check(Ze(je, n)), e.uuid = (n) => e.check(Xr(V, n)), e.uuidv4 = (n) => e.check(eo(V, n)), e.uuidv6 = (n) => e.check(to(V, n)), e.uuidv7 = (n) => e.check(no(V, n)), e.nanoid = (n) => e.check(so(ds, n)), e.guid = (n) => e.check(Ze(je, n)), e.cuid = (n) => e.check(io(fs, n)), e.cuid2 = (n) => e.check(ao(ps, n)), e.ulid = (n) => e.check(co(hs, n)), e.base64 = (n) => e.check(go(bs, n)), e.base64url = (n) => e.check(_o(ys, n)), e.xid = (n) => e.check(uo(ms, n)), e.ksuid = (n) => e.check(lo(gs, n)), e.ipv4 = (n) => e.check(fo(_s, n)), e.ipv6 = (n) => e.check(po(vs, n)), e.cidrv4 = (n) => e.check(ho(ws, n)), e.cidrv6 = (n) => e.check(mo(zs, n)), e.e164 = (n) => e.check(vo(ks, n)), e.datetime = (n) => e.check(Lo(n)), e.date = (n) => e.check(Mo(n)), e.time = (n) => e.check(qo(n)), e.duration = (n) => e.check(Ho(n));
|
|
1829
1830
|
});
|
|
1830
1831
|
function $e(e) {
|
|
1831
|
-
return
|
|
1832
|
+
return Yr(as, e);
|
|
1832
1833
|
}
|
|
1833
1834
|
const g = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
|
|
1834
1835
|
m.init(e, t), st.init(e, t);
|
|
1835
|
-
}),
|
|
1836
|
-
|
|
1836
|
+
}), cs = /* @__PURE__ */ c("ZodEmail", (e, t) => {
|
|
1837
|
+
cr.init(e, t), g.init(e, t);
|
|
1837
1838
|
}), je = /* @__PURE__ */ c("ZodGUID", (e, t) => {
|
|
1839
|
+
ir.init(e, t), g.init(e, t);
|
|
1840
|
+
}), V = /* @__PURE__ */ c("ZodUUID", (e, t) => {
|
|
1838
1841
|
ar.init(e, t), g.init(e, t);
|
|
1839
|
-
}),
|
|
1840
|
-
|
|
1841
|
-
}), ls = /* @__PURE__ */ c("
|
|
1842
|
+
}), us = /* @__PURE__ */ c("ZodURL", (e, t) => {
|
|
1843
|
+
ur.init(e, t), g.init(e, t);
|
|
1844
|
+
}), ls = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
|
|
1842
1845
|
lr.init(e, t), g.init(e, t);
|
|
1843
|
-
}), ds = /* @__PURE__ */ c("
|
|
1846
|
+
}), ds = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
|
|
1844
1847
|
dr.init(e, t), g.init(e, t);
|
|
1845
|
-
}), fs = /* @__PURE__ */ c("
|
|
1848
|
+
}), fs = /* @__PURE__ */ c("ZodCUID", (e, t) => {
|
|
1846
1849
|
fr.init(e, t), g.init(e, t);
|
|
1847
|
-
}), ps = /* @__PURE__ */ c("
|
|
1850
|
+
}), ps = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
|
|
1848
1851
|
pr.init(e, t), g.init(e, t);
|
|
1849
|
-
}), hs = /* @__PURE__ */ c("
|
|
1852
|
+
}), hs = /* @__PURE__ */ c("ZodULID", (e, t) => {
|
|
1850
1853
|
hr.init(e, t), g.init(e, t);
|
|
1851
|
-
}), ms = /* @__PURE__ */ c("
|
|
1854
|
+
}), ms = /* @__PURE__ */ c("ZodXID", (e, t) => {
|
|
1852
1855
|
mr.init(e, t), g.init(e, t);
|
|
1853
|
-
}), gs = /* @__PURE__ */ c("
|
|
1856
|
+
}), gs = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
|
|
1854
1857
|
gr.init(e, t), g.init(e, t);
|
|
1855
|
-
}), _s = /* @__PURE__ */ c("
|
|
1856
|
-
|
|
1857
|
-
}), vs = /* @__PURE__ */ c("
|
|
1858
|
+
}), _s = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
|
|
1859
|
+
br.init(e, t), g.init(e, t);
|
|
1860
|
+
}), vs = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
|
|
1858
1861
|
yr.init(e, t), g.init(e, t);
|
|
1859
|
-
}), ws = /* @__PURE__ */ c("
|
|
1862
|
+
}), ws = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
|
|
1860
1863
|
kr.init(e, t), g.init(e, t);
|
|
1861
|
-
}), zs = /* @__PURE__ */ c("
|
|
1864
|
+
}), zs = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
|
|
1862
1865
|
xr.init(e, t), g.init(e, t);
|
|
1863
|
-
}), bs = /* @__PURE__ */ c("
|
|
1866
|
+
}), bs = /* @__PURE__ */ c("ZodBase64", (e, t) => {
|
|
1864
1867
|
Zr.init(e, t), g.init(e, t);
|
|
1865
|
-
}), ys = /* @__PURE__ */ c("
|
|
1866
|
-
|
|
1867
|
-
}), ks = /* @__PURE__ */ c("
|
|
1868
|
+
}), ys = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
|
|
1869
|
+
jr.init(e, t), g.init(e, t);
|
|
1870
|
+
}), ks = /* @__PURE__ */ c("ZodE164", (e, t) => {
|
|
1868
1871
|
Er.init(e, t), g.init(e, t);
|
|
1869
|
-
}), xs = /* @__PURE__ */ c("
|
|
1870
|
-
|
|
1871
|
-
}), Zs = /* @__PURE__ */ c("
|
|
1872
|
-
Ir.init(e, t),
|
|
1873
|
-
}), $s = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
|
|
1874
|
-
Ar.init(e, t), z.init(e, t);
|
|
1872
|
+
}), xs = /* @__PURE__ */ c("ZodJWT", (e, t) => {
|
|
1873
|
+
Tr.init(e, t), g.init(e, t);
|
|
1874
|
+
}), Zs = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
|
|
1875
|
+
Ir.init(e, t), z.init(e, t);
|
|
1875
1876
|
});
|
|
1876
1877
|
function Ee() {
|
|
1877
|
-
return
|
|
1878
|
+
return xo(Zs);
|
|
1878
1879
|
}
|
|
1879
|
-
const
|
|
1880
|
-
|
|
1880
|
+
const $s = /* @__PURE__ */ c("ZodNever", (e, t) => {
|
|
1881
|
+
Ar.init(e, t), z.init(e, t);
|
|
1881
1882
|
});
|
|
1882
|
-
function
|
|
1883
|
-
return $
|
|
1883
|
+
function js(e) {
|
|
1884
|
+
return Zo($s, e);
|
|
1884
1885
|
}
|
|
1885
|
-
const
|
|
1886
|
-
|
|
1886
|
+
const Es = /* @__PURE__ */ c("ZodArray", (e, t) => {
|
|
1887
|
+
Or.init(e, t), z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(K(n, r)), e.nonempty = (n) => e.check(K(1, n)), e.max = (n, r) => e.check(rt(n, r)), e.length = (n, r) => e.check(ot(n, r)), e.unwrap = () => e.element;
|
|
1887
1888
|
});
|
|
1888
|
-
function
|
|
1889
|
-
return
|
|
1889
|
+
function Ps(e, t) {
|
|
1890
|
+
return Do(Es, e, t);
|
|
1890
1891
|
}
|
|
1891
|
-
const
|
|
1892
|
-
|
|
1892
|
+
const Ts = /* @__PURE__ */ c("ZodObject", (e, t) => {
|
|
1893
|
+
Nr.init(e, t), z.init(e, t), h(e, "shape", () => t.shape), e.keyof = () => it(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ee() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ee() }), e.strict = () => e.clone({ ...e._zod.def, catchall: js() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => an(e, n), e.safeExtend = (n) => cn(e, n), e.merge = (n) => un(e, n), e.pick = (n) => on(e, n), e.omit = (n) => sn(e, n), e.partial = (...n) => ln(at, e, n[0]), e.required = (...n) => dn(ct, e, n[0]);
|
|
1893
1894
|
});
|
|
1894
|
-
function
|
|
1895
|
+
function Is(e, t) {
|
|
1895
1896
|
const n = {
|
|
1896
1897
|
type: "object",
|
|
1897
1898
|
shape: e ?? {},
|
|
1898
1899
|
...f(t)
|
|
1899
1900
|
};
|
|
1900
|
-
return new
|
|
1901
|
+
return new Ts(n);
|
|
1901
1902
|
}
|
|
1902
|
-
const
|
|
1903
|
-
|
|
1903
|
+
const As = /* @__PURE__ */ c("ZodUnion", (e, t) => {
|
|
1904
|
+
Dr.init(e, t), z.init(e, t), e.options = t.options;
|
|
1904
1905
|
});
|
|
1905
|
-
function
|
|
1906
|
-
return new
|
|
1906
|
+
function Os(e, t) {
|
|
1907
|
+
return new As({
|
|
1907
1908
|
type: "union",
|
|
1908
1909
|
options: e,
|
|
1909
1910
|
...f(t)
|
|
1910
1911
|
});
|
|
1911
1912
|
}
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1913
|
+
const Ss = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
|
|
1914
|
+
Rr.init(e, t), z.init(e, t);
|
|
1914
1915
|
});
|
|
1915
|
-
function
|
|
1916
|
-
return new
|
|
1916
|
+
function Ns(e, t) {
|
|
1917
|
+
return new Ss({
|
|
1917
1918
|
type: "intersection",
|
|
1918
1919
|
left: e,
|
|
1919
1920
|
right: t
|
|
1920
1921
|
});
|
|
1921
1922
|
}
|
|
1922
1923
|
const oe = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
1923
|
-
|
|
1924
|
+
Cr.init(e, t), z.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
1924
1925
|
const n = new Set(Object.keys(t.entries));
|
|
1925
1926
|
e.extract = (r, o) => {
|
|
1926
1927
|
const s = {};
|
|
@@ -1958,8 +1959,8 @@ function it(e, t) {
|
|
|
1958
1959
|
...f(t)
|
|
1959
1960
|
});
|
|
1960
1961
|
}
|
|
1961
|
-
const
|
|
1962
|
-
|
|
1962
|
+
const Ds = /* @__PURE__ */ c("ZodTransform", (e, t) => {
|
|
1963
|
+
Ur.init(e, t), z.init(e, t), e._zod.parse = (n, r) => {
|
|
1963
1964
|
if (r.direction === "backward")
|
|
1964
1965
|
throw new Me(e.constructor.name);
|
|
1965
1966
|
n.addIssue = (s) => {
|
|
@@ -1974,14 +1975,14 @@ const Rs = /* @__PURE__ */ c("ZodTransform", (e, t) => {
|
|
|
1974
1975
|
return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
|
|
1975
1976
|
};
|
|
1976
1977
|
});
|
|
1977
|
-
function
|
|
1978
|
-
return new
|
|
1978
|
+
function Rs(e) {
|
|
1979
|
+
return new Ds({
|
|
1979
1980
|
type: "transform",
|
|
1980
1981
|
transform: e
|
|
1981
1982
|
});
|
|
1982
1983
|
}
|
|
1983
1984
|
const at = /* @__PURE__ */ c("ZodOptional", (e, t) => {
|
|
1984
|
-
|
|
1985
|
+
Fr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
1985
1986
|
});
|
|
1986
1987
|
function Pe(e) {
|
|
1987
1988
|
return new at({
|
|
@@ -1989,20 +1990,20 @@ function Pe(e) {
|
|
|
1989
1990
|
innerType: e
|
|
1990
1991
|
});
|
|
1991
1992
|
}
|
|
1992
|
-
const
|
|
1993
|
-
|
|
1993
|
+
const Cs = /* @__PURE__ */ c("ZodNullable", (e, t) => {
|
|
1994
|
+
Lr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
1994
1995
|
});
|
|
1995
1996
|
function Te(e) {
|
|
1996
|
-
return new
|
|
1997
|
+
return new Cs({
|
|
1997
1998
|
type: "nullable",
|
|
1998
1999
|
innerType: e
|
|
1999
2000
|
});
|
|
2000
2001
|
}
|
|
2001
|
-
const
|
|
2002
|
-
|
|
2002
|
+
const Us = /* @__PURE__ */ c("ZodDefault", (e, t) => {
|
|
2003
|
+
Br.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2003
2004
|
});
|
|
2004
|
-
function
|
|
2005
|
-
return new
|
|
2005
|
+
function Fs(e, t) {
|
|
2006
|
+
return new Us({
|
|
2006
2007
|
type: "default",
|
|
2007
2008
|
innerType: e,
|
|
2008
2009
|
get defaultValue() {
|
|
@@ -2010,11 +2011,11 @@ function Ls(e, t) {
|
|
|
2010
2011
|
}
|
|
2011
2012
|
});
|
|
2012
2013
|
}
|
|
2013
|
-
const
|
|
2014
|
-
|
|
2014
|
+
const Ls = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
|
|
2015
|
+
Mr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2015
2016
|
});
|
|
2016
|
-
function
|
|
2017
|
-
return new
|
|
2017
|
+
function Bs(e, t) {
|
|
2018
|
+
return new Ls({
|
|
2018
2019
|
type: "prefault",
|
|
2019
2020
|
innerType: e,
|
|
2020
2021
|
get defaultValue() {
|
|
@@ -2023,59 +2024,59 @@ function Ms(e, t) {
|
|
|
2023
2024
|
});
|
|
2024
2025
|
}
|
|
2025
2026
|
const ct = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
|
|
2026
|
-
|
|
2027
|
+
Wr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2027
2028
|
});
|
|
2028
|
-
function
|
|
2029
|
+
function Ms(e, t) {
|
|
2029
2030
|
return new ct({
|
|
2030
2031
|
type: "nonoptional",
|
|
2031
2032
|
innerType: e,
|
|
2032
2033
|
...f(t)
|
|
2033
2034
|
});
|
|
2034
2035
|
}
|
|
2035
|
-
const
|
|
2036
|
-
|
|
2036
|
+
const Ws = /* @__PURE__ */ c("ZodCatch", (e, t) => {
|
|
2037
|
+
qr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2037
2038
|
});
|
|
2038
|
-
function
|
|
2039
|
-
return new
|
|
2039
|
+
function qs(e, t) {
|
|
2040
|
+
return new Ws({
|
|
2040
2041
|
type: "catch",
|
|
2041
2042
|
innerType: e,
|
|
2042
2043
|
catchValue: typeof t == "function" ? t : () => t
|
|
2043
2044
|
});
|
|
2044
2045
|
}
|
|
2045
|
-
const
|
|
2046
|
-
|
|
2046
|
+
const Vs = /* @__PURE__ */ c("ZodPipe", (e, t) => {
|
|
2047
|
+
Vr.init(e, t), z.init(e, t), e.in = t.in, e.out = t.out;
|
|
2047
2048
|
});
|
|
2048
2049
|
function Ie(e, t) {
|
|
2049
|
-
return new
|
|
2050
|
+
return new Vs({
|
|
2050
2051
|
type: "pipe",
|
|
2051
2052
|
in: e,
|
|
2052
2053
|
out: t
|
|
2053
2054
|
// ...util.normalizeParams(params),
|
|
2054
2055
|
});
|
|
2055
2056
|
}
|
|
2056
|
-
const
|
|
2057
|
-
|
|
2057
|
+
const Hs = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
|
|
2058
|
+
Hr.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2058
2059
|
});
|
|
2059
|
-
function
|
|
2060
|
-
return new
|
|
2060
|
+
function Js(e) {
|
|
2061
|
+
return new Hs({
|
|
2061
2062
|
type: "readonly",
|
|
2062
2063
|
innerType: e
|
|
2063
2064
|
});
|
|
2064
2065
|
}
|
|
2065
|
-
const
|
|
2066
|
-
|
|
2066
|
+
const Ks = /* @__PURE__ */ c("ZodCustom", (e, t) => {
|
|
2067
|
+
Jr.init(e, t), z.init(e, t);
|
|
2067
2068
|
});
|
|
2068
|
-
function
|
|
2069
|
-
return
|
|
2069
|
+
function Gs(e, t = {}) {
|
|
2070
|
+
return Ro(Ks, e, t);
|
|
2070
2071
|
}
|
|
2071
|
-
function
|
|
2072
|
-
return
|
|
2072
|
+
function Ys(e) {
|
|
2073
|
+
return Co(e);
|
|
2073
2074
|
}
|
|
2074
|
-
const
|
|
2075
|
+
const Qs = Is({
|
|
2075
2076
|
buildId: $e(),
|
|
2076
2077
|
timestamp: $e(),
|
|
2077
2078
|
status: it(["in-progress", "success", "failed"])
|
|
2078
|
-
}),
|
|
2079
|
+
}), Xs = ({
|
|
2079
2080
|
buildId: e,
|
|
2080
2081
|
environmentType: t,
|
|
2081
2082
|
endpoint: n = "/__zuplo/docs"
|
|
@@ -2088,24 +2089,24 @@ const Xs = As({
|
|
|
2088
2089
|
queryFn: () => fetch(n, { signal: AbortSignal.timeout(2e3) }).then((s) => {
|
|
2089
2090
|
if (!s.ok) throw new Error("Failed to fetch build status");
|
|
2090
2091
|
return s.json();
|
|
2091
|
-
}).then((s) =>
|
|
2092
|
+
}).then((s) => Qs.parse(s))
|
|
2092
2093
|
});
|
|
2093
|
-
if (
|
|
2094
|
+
if (G(() => {
|
|
2094
2095
|
r.data?.status === "success" && r.data.buildId && (document.cookie = `zuplo-build=${r.data.buildId}; path=/; max-age=300; secure; SameSite=None`);
|
|
2095
2096
|
}, [r.data]), r.isError || !r.data || r.data.buildId === e)
|
|
2096
2097
|
return null;
|
|
2097
2098
|
const o = r.data.status === "success";
|
|
2098
2099
|
return /* @__PURE__ */ a.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: [
|
|
2099
2100
|
o ? /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2100
|
-
/* @__PURE__ */ a.jsx(
|
|
2101
|
+
/* @__PURE__ */ a.jsx(Ct, { size: 16 }),
|
|
2101
2102
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "New version available" })
|
|
2102
2103
|
] }) : /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2103
|
-
/* @__PURE__ */ a.jsx(
|
|
2104
|
+
/* @__PURE__ */ a.jsx(Ut, { size: 16, className: "animate-spin" }),
|
|
2104
2105
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Building new version..." })
|
|
2105
2106
|
] }),
|
|
2106
2107
|
/* @__PURE__ */ a.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." }),
|
|
2107
2108
|
o && /* @__PURE__ */ a.jsx(
|
|
2108
|
-
|
|
2109
|
+
Mt,
|
|
2109
2110
|
{
|
|
2110
2111
|
variant: "outline",
|
|
2111
2112
|
size: "sm",
|
|
@@ -2117,13 +2118,13 @@ const Xs = As({
|
|
|
2117
2118
|
}
|
|
2118
2119
|
)
|
|
2119
2120
|
] });
|
|
2120
|
-
},
|
|
2121
|
+
}, ei = () => {
|
|
2121
2122
|
const e = Re(), t = De(e.pathname);
|
|
2122
|
-
|
|
2123
|
+
G(() => {
|
|
2123
2124
|
const n = t.current !== e.pathname, r = e.hash !== "";
|
|
2124
2125
|
n && !r && window.scrollTo(0, 0), t.current = e.pathname;
|
|
2125
2126
|
}, [e.pathname, e.hash]);
|
|
2126
|
-
},
|
|
2127
|
+
}, ti = ({
|
|
2127
2128
|
icon: e
|
|
2128
2129
|
}) => typeof e == "string" ? /* @__PURE__ */ a.jsx(
|
|
2129
2130
|
"img",
|
|
@@ -2132,8 +2133,8 @@ const Xs = As({
|
|
|
2132
2133
|
className: "size-5",
|
|
2133
2134
|
alt: e
|
|
2134
2135
|
}
|
|
2135
|
-
) : e,
|
|
2136
|
-
const { site: e } =
|
|
2136
|
+
) : e, ni = (e) => /^https?:/.test(e), ri = () => {
|
|
2137
|
+
const { site: e } = L(), t = e?.footer;
|
|
2137
2138
|
return t ? /* @__PURE__ */ a.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ a.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
|
|
2138
2139
|
/* @__PURE__ */ a.jsxs(
|
|
2139
2140
|
"div",
|
|
@@ -2162,7 +2163,7 @@ const Xs = As({
|
|
|
2162
2163
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm font-semibold", children: n.title }),
|
|
2163
2164
|
/* @__PURE__ */ a.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((r) => {
|
|
2164
2165
|
const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
|
|
2165
|
-
return /* @__PURE__ */ a.jsx("li", { children:
|
|
2166
|
+
return /* @__PURE__ */ a.jsx("li", { children: ni(r.href) ? /* @__PURE__ */ a.jsxs(
|
|
2166
2167
|
"a",
|
|
2167
2168
|
{
|
|
2168
2169
|
href: r.href,
|
|
@@ -2171,10 +2172,10 @@ const Xs = As({
|
|
|
2171
2172
|
className: o,
|
|
2172
2173
|
children: [
|
|
2173
2174
|
/* @__PURE__ */ a.jsx("span", { children: r.label }),
|
|
2174
|
-
/* @__PURE__ */ a.jsx(
|
|
2175
|
+
/* @__PURE__ */ a.jsx(Ft, { size: 12 })
|
|
2175
2176
|
]
|
|
2176
2177
|
}
|
|
2177
|
-
) : /* @__PURE__ */ a.jsx(
|
|
2178
|
+
) : /* @__PURE__ */ a.jsx(Tt, { to: r.href, className: o, children: /* @__PURE__ */ a.jsx("span", { children: r.label }) }) }, r.href + r.label);
|
|
2178
2179
|
}) })
|
|
2179
2180
|
]
|
|
2180
2181
|
},
|
|
@@ -2223,7 +2224,7 @@ const Xs = As({
|
|
|
2223
2224
|
rel: "noopener noreferrer",
|
|
2224
2225
|
className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
|
|
2225
2226
|
children: [
|
|
2226
|
-
/* @__PURE__ */ a.jsx(
|
|
2227
|
+
/* @__PURE__ */ a.jsx(ti, { icon: n.icon }),
|
|
2227
2228
|
n.label
|
|
2228
2229
|
]
|
|
2229
2230
|
},
|
|
@@ -2244,7 +2245,7 @@ const Xs = As({
|
|
|
2244
2245
|
}
|
|
2245
2246
|
);
|
|
2246
2247
|
ut.displayName = "Drawer";
|
|
2247
|
-
const
|
|
2248
|
+
const oi = $.Trigger, si = $.Portal, lt = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
2248
2249
|
$.Overlay,
|
|
2249
2250
|
{
|
|
2250
2251
|
ref: n,
|
|
@@ -2253,8 +2254,8 @@ const si = $.Trigger, ii = $.Portal, lt = F.forwardRef(({ className: e, ...t },
|
|
|
2253
2254
|
}
|
|
2254
2255
|
));
|
|
2255
2256
|
lt.displayName = $.Overlay.displayName;
|
|
2256
|
-
const
|
|
2257
|
-
({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
2257
|
+
const ii = F.forwardRef(
|
|
2258
|
+
({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(si, { children: [
|
|
2258
2259
|
/* @__PURE__ */ a.jsx(lt, {}),
|
|
2259
2260
|
/* @__PURE__ */ a.jsxs(
|
|
2260
2261
|
$.Content,
|
|
@@ -2273,8 +2274,8 @@ const ai = F.forwardRef(
|
|
|
2273
2274
|
)
|
|
2274
2275
|
] })
|
|
2275
2276
|
);
|
|
2276
|
-
|
|
2277
|
-
const
|
|
2277
|
+
ii.displayName = "DrawerContent";
|
|
2278
|
+
const ai = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
2278
2279
|
$.Title,
|
|
2279
2280
|
{
|
|
2280
2281
|
ref: n,
|
|
@@ -2285,8 +2286,8 @@ const ci = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
|
2285
2286
|
...t
|
|
2286
2287
|
}
|
|
2287
2288
|
));
|
|
2288
|
-
|
|
2289
|
-
const
|
|
2289
|
+
ai.displayName = $.Title.displayName;
|
|
2290
|
+
const ci = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
2290
2291
|
$.Description,
|
|
2291
2292
|
{
|
|
2292
2293
|
ref: n,
|
|
@@ -2294,15 +2295,15 @@ const ui = F.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
|
2294
2295
|
...t
|
|
2295
2296
|
}
|
|
2296
2297
|
));
|
|
2297
|
-
|
|
2298
|
+
ci.displayName = $.Description.displayName;
|
|
2298
2299
|
const dt = ({
|
|
2299
2300
|
children: e,
|
|
2300
2301
|
className: t
|
|
2301
2302
|
}) => {
|
|
2302
|
-
const { options: n } =
|
|
2303
|
-
return
|
|
2303
|
+
const { options: n } = L(), r = De(null);
|
|
2304
|
+
return G(() => {
|
|
2304
2305
|
const o = r.current?.querySelector('[aria-current="page"]');
|
|
2305
|
-
|
|
2306
|
+
It(o ?? null);
|
|
2306
2307
|
}, []), /* @__PURE__ */ a.jsxs(
|
|
2307
2308
|
"div",
|
|
2308
2309
|
{
|
|
@@ -2326,13 +2327,13 @@ const dt = ({
|
|
|
2326
2327
|
children: e
|
|
2327
2328
|
}
|
|
2328
2329
|
),
|
|
2329
|
-
/* @__PURE__ */ a.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__ */ a.jsx(
|
|
2330
|
+
/* @__PURE__ */ a.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__ */ a.jsx(At, {}) })
|
|
2330
2331
|
]
|
|
2331
2332
|
}
|
|
2332
2333
|
);
|
|
2333
2334
|
};
|
|
2334
2335
|
dt.displayName = "NavigationWrapper";
|
|
2335
|
-
const
|
|
2336
|
+
const ui = ({
|
|
2336
2337
|
onRequestClose: e,
|
|
2337
2338
|
navigation: t
|
|
2338
2339
|
}) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -2348,12 +2349,12 @@ const li = ({
|
|
|
2348
2349
|
/* @__PURE__ */ a.jsx(P.Target, { name: "navigation-after" })
|
|
2349
2350
|
] }),
|
|
2350
2351
|
/* @__PURE__ */ a.jsx(
|
|
2351
|
-
|
|
2352
|
+
Vt,
|
|
2352
2353
|
{
|
|
2353
2354
|
className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
|
|
2354
2355
|
"aria-describedby": void 0,
|
|
2355
2356
|
children: /* @__PURE__ */ a.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
2356
|
-
/* @__PURE__ */ a.jsx(
|
|
2357
|
+
/* @__PURE__ */ a.jsx(Jt, { children: /* @__PURE__ */ a.jsx(Ht, { children: "Navigation" }) }),
|
|
2357
2358
|
t.map((n) => /* @__PURE__ */ a.jsx(
|
|
2358
2359
|
pe,
|
|
2359
2360
|
{
|
|
@@ -2365,8 +2366,8 @@ const li = ({
|
|
|
2365
2366
|
] })
|
|
2366
2367
|
}
|
|
2367
2368
|
)
|
|
2368
|
-
] }),
|
|
2369
|
-
const [t, n] = vt(!1), { navigation: r } =
|
|
2369
|
+
] }), li = ({ children: e }) => {
|
|
2370
|
+
const [t, n] = vt(!1), { navigation: r } = Wt(), o = r.length > 0, s = yt().state === "loading", { options: i } = L();
|
|
2370
2371
|
return /* @__PURE__ */ a.jsxs(
|
|
2371
2372
|
ut,
|
|
2372
2373
|
{
|
|
@@ -2375,14 +2376,14 @@ const li = ({
|
|
|
2375
2376
|
onOpenChange: (u) => n(u),
|
|
2376
2377
|
children: [
|
|
2377
2378
|
o && /* @__PURE__ */ a.jsx(
|
|
2378
|
-
|
|
2379
|
+
ui,
|
|
2379
2380
|
{
|
|
2380
2381
|
onRequestClose: () => n(!1),
|
|
2381
2382
|
navigation: r
|
|
2382
2383
|
}
|
|
2383
2384
|
),
|
|
2384
|
-
o && /* @__PURE__ */ a.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__ */ a.jsxs(
|
|
2385
|
-
/* @__PURE__ */ a.jsx(
|
|
2385
|
+
o && /* @__PURE__ */ a.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__ */ a.jsxs(oi, { className: "flex items-center gap-2 px-4", children: [
|
|
2386
|
+
/* @__PURE__ */ a.jsx(Lt, { size: 16, strokeWidth: 1.5 }),
|
|
2386
2387
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
|
|
2387
2388
|
] }) }),
|
|
2388
2389
|
/* @__PURE__ */ a.jsxs(
|
|
@@ -2404,13 +2405,13 @@ const li = ({
|
|
|
2404
2405
|
]
|
|
2405
2406
|
}
|
|
2406
2407
|
);
|
|
2407
|
-
},
|
|
2408
|
-
const { authentication: t } =
|
|
2409
|
-
return
|
|
2408
|
+
}, di = () => /* @__PURE__ */ a.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ a.jsx(Kt, {}) }), fi = ({ children: e }) => {
|
|
2409
|
+
const { authentication: t } = L();
|
|
2410
|
+
return Ot(), ei(), G(() => {
|
|
2410
2411
|
t?.onPageLoad?.();
|
|
2411
|
-
}, [t]), /* @__PURE__ */ a.jsxs(
|
|
2412
|
+
}, [t]), /* @__PURE__ */ a.jsxs(St, { children: [
|
|
2412
2413
|
/* @__PURE__ */ a.jsx(P.Target, { name: "layout-before-head" }),
|
|
2413
|
-
/* @__PURE__ */ a.jsx(
|
|
2414
|
+
/* @__PURE__ */ a.jsx(Nt, {}),
|
|
2414
2415
|
/* @__PURE__ */ a.jsx(P.Target, { name: "layout-after-head" }),
|
|
2415
2416
|
/* @__PURE__ */ a.jsx(
|
|
2416
2417
|
"div",
|
|
@@ -2420,20 +2421,20 @@ const li = ({
|
|
|
2420
2421
|
"[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
|
|
2421
2422
|
"grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
|
|
2422
2423
|
),
|
|
2423
|
-
children: /* @__PURE__ */ a.jsx(wt, { fallback: /* @__PURE__ */ a.jsx(
|
|
2424
|
+
children: /* @__PURE__ */ a.jsx(wt, { fallback: /* @__PURE__ */ a.jsx(di, {}), children: /* @__PURE__ */ a.jsx(li, { children: e ?? /* @__PURE__ */ a.jsx(kt, {}) }) })
|
|
2424
2425
|
}
|
|
2425
2426
|
),
|
|
2426
|
-
/* @__PURE__ */ a.jsx(
|
|
2427
|
+
/* @__PURE__ */ a.jsx(ri, {})
|
|
2427
2428
|
] });
|
|
2428
|
-
},
|
|
2429
|
-
const { meta: t, options: n } =
|
|
2429
|
+
}, pi = ({ children: e }) => {
|
|
2430
|
+
const { meta: t, options: n } = L(), r = Re();
|
|
2430
2431
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2431
2432
|
/* @__PURE__ */ a.jsxs(Oe, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
|
|
2432
2433
|
n.canonicalUrlOrigin && /* @__PURE__ */ a.jsx(
|
|
2433
2434
|
"link",
|
|
2434
2435
|
{
|
|
2435
2436
|
rel: "canonical",
|
|
2436
|
-
href:
|
|
2437
|
+
href: qt(
|
|
2437
2438
|
n.canonicalUrlOrigin,
|
|
2438
2439
|
n.basePath,
|
|
2439
2440
|
r.pathname
|
|
@@ -2452,7 +2453,7 @@ const li = ({
|
|
|
2452
2453
|
] }),
|
|
2453
2454
|
e
|
|
2454
2455
|
] });
|
|
2455
|
-
},
|
|
2456
|
+
}, hi = ({
|
|
2456
2457
|
title: e = "An error occurred",
|
|
2457
2458
|
message: t,
|
|
2458
2459
|
category: n
|
|
@@ -2466,9 +2467,9 @@ const li = ({
|
|
|
2466
2467
|
/* @__PURE__ */ a.jsx(Be, { children: "404" }),
|
|
2467
2468
|
/* @__PURE__ */ a.jsxs(Ue, { level: 1, className: "flex gap-3.5 items-center", children: [
|
|
2468
2469
|
"Page not found",
|
|
2469
|
-
/* @__PURE__ */ a.jsx(
|
|
2470
|
+
/* @__PURE__ */ a.jsx(Bt, { size: 24 })
|
|
2470
2471
|
] }),
|
|
2471
|
-
/* @__PURE__ */ a.jsxs(
|
|
2472
|
+
/* @__PURE__ */ a.jsxs(Dt, { children: [
|
|
2472
2473
|
"Start by adding a file at",
|
|
2473
2474
|
" ",
|
|
2474
2475
|
/* @__PURE__ */ a.jsxs("code", { children: [
|
|
@@ -2486,7 +2487,7 @@ const li = ({
|
|
|
2486
2487
|
/* @__PURE__ */ a.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." }),
|
|
2487
2488
|
/* @__PURE__ */ a.jsx(Zt, { to: "/", children: "Go back home" })
|
|
2488
2489
|
] });
|
|
2489
|
-
},
|
|
2490
|
+
}, mi = (e) => {
|
|
2490
2491
|
switch (e) {
|
|
2491
2492
|
case 400:
|
|
2492
2493
|
return {
|
|
@@ -2549,12 +2550,12 @@ const li = ({
|
|
|
2549
2550
|
message: "Something went wrong while processing your request."
|
|
2550
2551
|
};
|
|
2551
2552
|
}
|
|
2552
|
-
},
|
|
2553
|
+
}, gi = ({ statusCode: e, message: t }) => {
|
|
2553
2554
|
if (e === 404)
|
|
2554
2555
|
return /* @__PURE__ */ a.jsx(ft, {});
|
|
2555
|
-
const n =
|
|
2556
|
+
const n = mi(e);
|
|
2556
2557
|
return /* @__PURE__ */ a.jsx(
|
|
2557
|
-
|
|
2558
|
+
hi,
|
|
2558
2559
|
{
|
|
2559
2560
|
title: n.title,
|
|
2560
2561
|
message: t ?? n.message,
|
|
@@ -2562,14 +2563,14 @@ const li = ({
|
|
|
2562
2563
|
}
|
|
2563
2564
|
);
|
|
2564
2565
|
};
|
|
2565
|
-
function
|
|
2566
|
+
function _i({ className: e }) {
|
|
2566
2567
|
const t = $t();
|
|
2567
2568
|
return jt(t) && t.status === 404 ? /* @__PURE__ */ a.jsx(ft, {}) : /* @__PURE__ */ a.jsx("div", { className: x("mx-4 max-w-2xl", e), children: /* @__PURE__ */ a.jsx(Fe, { error: t }) });
|
|
2568
2569
|
}
|
|
2569
|
-
function
|
|
2570
|
+
function vi({ error: e }) {
|
|
2570
2571
|
return /* @__PURE__ */ a.jsx(Fe, { error: e });
|
|
2571
2572
|
}
|
|
2572
|
-
const Di =
|
|
2573
|
+
const Di = fi, Ri = _i, Ci = vi, Ui = Qt, Fi = Xt, Li = Rt, Bi = Oe, Mi = gi, Wi = Xs, qi = pi;
|
|
2573
2574
|
export {
|
|
2574
2575
|
Ui as Bootstrap,
|
|
2575
2576
|
Fi as BootstrapStatic,
|