@hiai-gg/docsmint 2.1.0 → 2.1.3
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/README.md +11 -3
- package/dist/backend/index.js +50507 -67754
- package/dist/backend-account-runtime-cleanup.js +308 -292
- package/dist/backend-api-key-facade.js +4 -4
- package/dist/backend-pipeline-cancellation.js +285 -285
- package/dist/frontend/CategoryDialog-CVJi5PJu.js +602 -0
- package/dist/frontend/{ConfirmDialog-B1MjKlVQ.js → ConfirmDialog-0JwB8mKN.js} +5 -8
- package/dist/frontend/{CreateSnapshotDialog-BTMoPFdj.js → CreateSnapshotDialog-BLrtuYs5.js} +63 -68
- package/dist/frontend/{DatePicker-Bmjko3X7.js → DatePicker-BwSb8TRv.js} +17 -29
- package/dist/frontend/{DeleteDialog-BkfIeKXO.js → DeleteDialog-s7Dr6bXg.js} +51 -56
- package/dist/frontend/{FolderNode-Do8pIfyA.js → FolderNode-Y7cV9xeX.js} +105 -106
- package/dist/frontend/{FolderTreeSelector-FyxhcHjr.js → FolderTreeSelector-BR3lYmPU.js} +18 -20
- package/dist/frontend/HiAiEditor-BHz46Iqd.js +3078 -0
- package/dist/frontend/{HiaiDocsExtensionProvider-Cc3yzW5I.js → HiaiDocsExtensionProvider-A2nGddUR.js} +2 -3
- package/dist/frontend/{Icon-3EYzvNyk.js → Icon-CiHcxcpv.js} +1 -2
- package/dist/frontend/SettingsDialog-BvS74JZu.js +978 -0
- package/dist/frontend/{ShareDialog-Ddvl7xvb.js → ShareDialog-Bo50h_Oe.js} +23 -25
- package/dist/frontend/Sidebar-i0kbanpg.js +2123 -0
- package/dist/frontend/{TagCreateDialog-DQmMJe_E.js → TagCreateDialog-DhKfsfv3.js} +78 -86
- package/dist/frontend/action_cancel-BdsWzQKU.js +4 -0
- package/dist/frontend/action_close-CVhfLPRQ.js +4 -0
- package/dist/frontend/action_create-ByaroO1_.js +4 -0
- package/dist/frontend/action_delete-SRloglWY.js +4 -0
- package/dist/frontend/action_go_to-DO1bicF-.js +4 -0
- package/dist/frontend/action_loading-iQ0KsN6i.js +4 -0
- package/dist/frontend/action_save-DeqrZQwV.js +4 -0
- package/dist/frontend/api/attachments.js +1 -2
- package/dist/frontend/api/categories.js +1 -2
- package/dist/frontend/api/documents.js +1 -2
- package/dist/frontend/api/folders.js +1 -2
- package/dist/frontend/api/settings.js +1 -2
- package/dist/frontend/api/share.js +1 -2
- package/dist/frontend/api/tags.js +1 -2
- package/dist/frontend/{api-keys-DIwAdYkg.js → api-keys-B63imiLr.js} +2 -3
- package/dist/frontend/app-shell.js +55 -79
- package/dist/frontend/{attachments-C225gTA7.js → attachments-Bfly-sam.js} +2 -3
- package/dist/frontend/{auth-client-C5EyWdAF.js → auth-client-Dx7d9Tzo.js} +252 -253
- package/dist/frontend/{bundle-mjs-CZ3g1Uzr.js → bundle-mjs-clTO1WW-.js} +5 -23
- package/dist/frontend/{camera-DtgHzfVI.js → camera-DsdOPOcD.js} +2 -3
- package/dist/frontend/{categories-C8AAkhCR.js → categories-CusvHb5Y.js} +3 -4
- package/dist/frontend/{categories_update_error-4aSI8PTr.js → categories_update_error-Cn8DBBHv.js} +2 -3
- package/dist/frontend/{check-DVx65aSv.js → check-DiMZRkKS.js} +2 -3
- package/dist/frontend/{chevron-down-C2tbZ8Ol.js → chevron-down-CxFrMFDJ.js} +2 -3
- package/dist/frontend/{circle-check-BAN-D7yg.js → circle-check-B4F_qgPx.js} +2 -3
- package/dist/frontend/{client-GbtOH90i.js → client-BDdDd84W.js} +1 -2
- package/dist/frontend/{clipboard-Cgzxc0_R.js → clipboard-Dt1oW6nm.js} +1 -2
- package/dist/frontend/{clock-ByiB0SwQ.js → clock-dcpueRk-.js} +2 -3
- package/dist/frontend/collaboration.js +9 -13
- package/dist/frontend/components/category-dialog.js +1 -2
- package/dist/frontend/components/create-snapshot-dialog.js +1 -2
- package/dist/frontend/components/delete-dialog.js +1 -2
- package/dist/frontend/components/editor/compact-editor.js +2 -3
- package/dist/frontend/components/editor/document-editor.js +1 -2
- package/dist/frontend/components/editor/document-title.js +3 -4
- package/dist/frontend/components/editor/docx-serializer.js +123 -167
- package/dist/frontend/components/editor/extensions.js +1 -2
- package/dist/frontend/components/editor/markdown-toggle.js +5 -6
- package/dist/frontend/components/editor/markdown.js +1 -2
- package/dist/frontend/components/folder-node.js +1 -2
- package/dist/frontend/components/folder-tree-selector.js +1 -2
- package/dist/frontend/components/save-as-dialog.js +86 -90
- package/dist/frontend/components/settings.js +1 -2
- package/dist/frontend/components/share-dialog.js +1 -2
- package/dist/frontend/components/sidebar.js +1 -2
- package/dist/frontend/components/tag-create-dialog.js +1 -2
- package/dist/frontend/components/version-history.js +256 -190
- package/dist/frontend/{context-D0zPFXZ4.js → context-BguSRnCt.js} +1 -2
- package/dist/frontend/{copy-CRzvfZGb.js → copy-Bag46YaR.js} +2 -3
- package/dist/frontend/dashboard.js +666 -690
- package/dist/frontend/{db-CgTtukT4.js → db-B1ZV452J.js} +22 -39
- package/dist/frontend/{dialog-a_ZcpEC5.js → dialog-C0Bpok1d.js} +10 -18
- package/dist/frontend/{dist-CcHOStsA.js → dist-BlcV_BOY.js} +2 -3
- package/dist/frontend/{dist-qd_OnyUC.js → dist-DjId3RKL.js} +8 -21
- package/dist/frontend/dist-Dl9qg10h.js +301 -0
- package/dist/frontend/{dndzone-CDhrbpTg.js → dndzone-C62yjeG3.js} +38 -53
- package/dist/frontend/doc-tabs.js +1 -2
- package/dist/frontend/doc_title_label-BOuZzvqv.js +4 -0
- package/dist/frontend/doc_title_placeholder-ZxpdWWEn.js +4 -0
- package/dist/frontend/{document-drop-coordinator-Da7HcXgv.js → document-drop-coordinator-C_o93kKW.js} +3 -4
- package/dist/frontend/document-drop-coordinator.js +1 -2
- package/dist/frontend/{documents-CwCs1rA7.js → documents-CDJb8dv-.js} +4 -8
- package/dist/frontend/{dropdown-menu-DrHYReIC.js → dropdown-menu-B3nk2aM-.js} +13 -24
- package/dist/frontend/{editor-content-sanitizer-CWjqiz0T.js → editor-content-sanitizer-5MjSVPVn.js} +1 -2
- package/dist/frontend/editor-preferences.js +1 -2
- package/dist/frontend/{editor-preferences.svelte-Bt_A9k7n.js → editor-preferences.svelte-BpTE4mbz.js} +3 -5
- package/dist/frontend/{editorExtensions-DPR-CjMu.js → editorExtensions-DbiFj4tn.js} +3 -4
- package/dist/frontend/{editor_markdown_placeholder-BIWDUF1E.js → editor_markdown_placeholder-BztIY9Ci.js} +2 -3
- package/dist/frontend/{ellipsis-vertical-qxNgoXu-.js → ellipsis-vertical-Oymsv1R4.js} +2 -3
- package/dist/frontend/{error_dismiss-Dx_JbRjs.js → error_dismiss-C651ZdWI.js} +2 -3
- package/dist/frontend/error_generic-BlWqOE-a.js +4 -0
- package/dist/frontend/extension.js +1 -2
- package/dist/frontend/{folder-D74E-Kdp.js → folder-BpmB_sAy.js} +3 -5
- package/dist/frontend/folder-refresh.js +1 -2
- package/dist/frontend/{folders-CC0UWkZH.js → folders-DgKSovXa.js} +2 -3
- package/dist/frontend/{folders_rename-BJo4Gipq.js → folders_rename-Cxbg5GIw.js} +2 -3
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/i18n.js +144 -145
- package/dist/frontend/{identity-CNhtuCJV.js → identity-B7HeOzDJ.js} +4 -5
- package/dist/frontend/{input-Q_7qCfnU.js → input-CbeB9220.js} +2 -3
- package/dist/frontend/keyboard.js +1 -2
- package/dist/frontend/{keyboard.svelte-CApmX0vl.js → keyboard.svelte-BBUdhTsM.js} +2 -3
- package/dist/frontend/{label-Dj8FDEhf.js → label-CfBWf3gI.js} +2 -3
- package/dist/frontend/{lib-aUbBbIW2.js → lib-CITdCbKa.js} +176 -365
- package/dist/frontend/{loader-circle-D3t5NkvC.js → loader-circle-skKwfRCB.js} +2 -3
- package/dist/frontend/markdown-6E9TWC6V.js +11 -0
- package/dist/frontend/offline/identity.js +1 -2
- package/dist/frontend/{popper-layer-force-mount-CNtiLgbV.js → popper-layer-force-mount-BG0eyrCk.js} +112 -284
- package/dist/frontend/{resolve-BG4HgzpN.js → resolve-DbT-KhGZ.js} +2 -3
- package/dist/frontend/{rolldown-runtime-DArdT4gl.js → rolldown-runtime-CwxnZyOB.js} +2 -3
- package/dist/frontend/{rotate-ccw-B1ybQ8oQ.js → rotate-ccw-DAUX7np7.js} +2 -3
- package/dist/frontend/{route-context-DYQlUfzL.js → route-context-6OHiGtfb.js} +2 -4
- package/dist/frontend/{runtime-CwWSo6c9.js → runtime-CGUiMzK6.js} +1 -2
- package/dist/frontend/{schemas-1Na35n71.js → schemas-YXxhj5o8.js} +850 -880
- package/dist/frontend/scroll_to_top_aria-lJc2RSx_.js +4 -0
- package/dist/frontend/{search-preferences-B1GdbdUc.js → search-preferences-DuLDczRu.js} +1 -2
- package/dist/frontend/search.js +277 -292
- package/dist/frontend/{search_title-DOC0cPlQ.js → search_title-BETwQYJq.js} +2 -3
- package/dist/frontend/{select-value-BkI1W1bn.js → select-value-BY5Hw6Rl.js} +28 -65
- package/dist/frontend/{settings-CHx4wBwb.js → settings-DyePuqjp.js} +3 -4
- package/dist/frontend/{share-D5yo0JOh.js → share-3gWTTYvH.js} +2 -3
- package/dist/frontend/{share-context-BJ4GF4yT.js → share-context-C2xyVP9M.js} +29 -37
- package/dist/frontend/{share_copied-DPxVzfWh.js → share_copied-BuAnmpbz.js} +2 -3
- package/dist/frontend/{share_toggle_password-DdxfIjj1.js → share_toggle_password-LEYUeHWr.js} +2 -3
- package/dist/frontend/shared-document.js +27 -36
- package/dist/frontend/{sidebar_uncategorized-qJ2_Aonf.js → sidebar_uncategorized-C5PGOflV.js} +2 -3
- package/dist/frontend/{sort_relevance-DwYX5MO9.js → sort_relevance-DpCVLby_.js} +2 -3
- package/dist/frontend/{subfolders-refresh-store.svelte-DxP21a1c.js → subfolders-refresh-store.svelte-CeyqvNpu.js} +1 -2
- package/dist/frontend/{tag-qbTBLj-g.js → tag-Wdfe0rKU.js} +3 -5
- package/dist/frontend/{tag-store.svelte-ogVCMCbv.js → tag-store.svelte-C9VYWqLQ.js} +2 -3
- package/dist/frontend/{tags-CF_cqzSV.js → tags-DlDVothf.js} +3 -4
- package/dist/frontend/{tags_load_error-BKjA1pI0.js → tags_load_error-BINNpPPV.js} +2 -3
- package/dist/frontend/{tags_new-BiNAJ9Bx.js → tags_new-Dw0Uy43-.js} +2 -3
- package/dist/frontend/{textarea-BNK0LFUK.js → textarea-D6emvAwM.js} +2 -3
- package/dist/frontend/theme.js +2 -3
- package/dist/frontend/{theme.svelte-BRdxXd-B.js → theme.svelte-BiXvrqwh.js} +7 -23
- package/dist/frontend/{theme_system-BBNUhYKh.js → theme_system-YIfa_2Xt.js} +2 -3
- package/dist/frontend/utils/clipboard.js +1 -2
- package/dist/frontend/utils/dndzone.js +1 -2
- package/dist/frontend/{utils-BovMJHdA.js → utils-CnAmIMwr.js} +2 -3
- package/dist/frontend/utils-DH0uqK40.js +6 -0
- package/dist/frontend/utils.js +1 -2
- package/dist/frontend/version_create_snapshot-D8xjbuCq.js +4 -0
- package/dist/frontend/{version_restored_from-dVRN3Zdk.js → version_restored_from-DYFFSuQj.js} +2 -3
- package/dist/frontend/{version_snapshot_label_placeholder-DrMikux0.js → version_snapshot_label_placeholder-BhKq1NQ7.js} +2 -3
- package/dist/frontend/{weekday_we-C5H_M-df.js → weekday_we-BxbzNVWR.js} +2 -3
- package/dist/frontend/{x-CvSSnrjl.js → x-CBUgPygC.js} +2 -3
- package/dist/frontend/{yjs-VUcKqaKW.js → yjs-BbwnvxgY.js} +9 -23
- package/dist/frontend-ssr/api/attachments.js +2 -3
- package/dist/frontend-ssr/api/categories.js +1 -2
- package/dist/frontend-ssr/api/documents.js +1 -2
- package/dist/frontend-ssr/api/folders.js +1 -2
- package/dist/frontend-ssr/api/settings.js +1 -2
- package/dist/frontend-ssr/api/share.js +2 -3
- package/dist/frontend-ssr/api/tags.js +1 -2
- package/dist/frontend-ssr/app-shell.js +19 -28
- package/dist/frontend-ssr/assets/{CategoryDialog-DuZLLlt7.js → CategoryDialog-2CCX508O.js} +17 -20
- package/dist/frontend-ssr/assets/{ConfirmDialog-0WVu9BCE.js → ConfirmDialog-Cc6lcY1N.js} +8 -14
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-3vhDTFNu.js → CreateSnapshotDialog-BB8fXF9W.js} +9 -10
- package/dist/frontend-ssr/assets/{DatePicker-t12leL2Y.js → DatePicker-CfzKzipR.js} +9 -15
- package/dist/frontend-ssr/assets/{DeleteDialog-B0AU1fJR.js → DeleteDialog-DRU4UgOW.js} +4 -5
- package/dist/frontend-ssr/assets/{FolderNode-C-B-s8x1.js → FolderNode-Dg_5-orQ.js} +11 -12
- package/dist/frontend-ssr/assets/{FolderTreeSelector-DdQuEcj0.js → FolderTreeSelector-D0reTdFS.js} +5 -7
- package/dist/frontend-ssr/assets/{HiAiEditor-Cj3B2Dt6.js → HiAiEditor-BQGlGd3z.js} +57 -83
- package/dist/frontend-ssr/assets/{HiaiDocsExtensionProvider-BRKWmcDd.js → HiaiDocsExtensionProvider-D6cGL-9s.js} +2 -3
- package/dist/frontend-ssr/assets/{Icon-DE_3EnuF.js → Icon-CrIRbT5O.js} +4 -8
- package/dist/frontend-ssr/assets/{SettingsDialog-DAT-Zxu0.js → SettingsDialog-BpHY3IMb.js} +29 -40
- package/dist/frontend-ssr/assets/{ShareDialog-CpE9zd_f.js → ShareDialog-CY40nWZJ.js} +7 -9
- package/dist/frontend-ssr/assets/{Sidebar-B_Ey6QNL.js → Sidebar-fpYk5MGO.js} +55 -63
- package/dist/frontend-ssr/assets/{TagCreateDialog-DBHO1DPU.js → TagCreateDialog-C2tpdEuj.js} +13 -14
- package/dist/frontend-ssr/assets/{action_cancel-OVgQDP5Q.js → action_cancel-CsBbxW0m.js} +2 -3
- package/dist/frontend-ssr/assets/{action_close-DagDyMXk.js → action_close-lFKBqBwg.js} +2 -3
- package/dist/frontend-ssr/assets/{action_create-hqJWjyqh.js → action_create-BV4ZOcQW.js} +2 -3
- package/dist/frontend-ssr/assets/{action_delete-B1-16jSo.js → action_delete-CNmRhKQP.js} +2 -3
- package/dist/frontend-ssr/assets/{action_go_to-DQScgw7P.js → action_go_to-tN5I26xM.js} +2 -3
- package/dist/frontend-ssr/assets/{action_save-Bx7vlLZI.js → action_save-YCfMiKb4.js} +2 -3
- package/dist/frontend-ssr/assets/{api-keys-CHOrbU-Q.js → api-keys-G6oimJIv.js} +2 -3
- package/dist/frontend-ssr/assets/{auth-client-CITU3xkE.js → auth-client-BnnnJDAb.js} +102 -71
- package/dist/frontend-ssr/assets/{camera-B6ldo_Js.js → camera-OYNSMvMd.js} +2 -3
- package/dist/frontend-ssr/assets/{categories-C_dxFoHi.js → categories-bBPviKjl.js} +2 -3
- package/dist/frontend-ssr/assets/{categories_update_error-DkKgsqdD.js → categories_update_error-Bfx5vtvt.js} +11 -21
- package/dist/frontend-ssr/assets/{chevron-down-DQcr6JUc.js → chevron-down-DB6YsSbQ.js} +2 -3
- package/dist/frontend-ssr/assets/{chevron-right-9szrliZx.js → chevron-right-DOt2uY6b.js} +2 -3
- package/dist/frontend-ssr/assets/{circle-check-BgP9MRRv.js → circle-check-DQhTm9YR.js} +2 -3
- package/dist/frontend-ssr/assets/{client-rfwQYYHY.js → client-B2AniXwV.js} +1 -2
- package/dist/frontend-ssr/assets/{clipboard-CXOaoz2W.js → clipboard-CXKnyYba.js} +1 -2
- package/dist/frontend-ssr/assets/{clock-roNtGlT6.js → clock-B08dVWtf.js} +2 -3
- package/dist/frontend-ssr/assets/{context-Bi_mO-NS.js → context-C_xxvxnR.js} +1 -2
- package/dist/frontend-ssr/assets/{copy-BYqYnBIQ.js → copy-2jsznHar.js} +2 -3
- package/dist/frontend-ssr/assets/{db-DxRzq-kx.js → db-BEKLU5Fc.js} +2 -3
- package/dist/frontend-ssr/assets/{dialog-SqCnTT43.js → dialog-C6U-DqLr.js} +9 -17
- package/dist/frontend-ssr/assets/{dist-CaZQ1FhA.js → dist-DqXTz_zE.js} +9 -12
- package/dist/frontend-ssr/assets/{dist-CqxHwOlp.js → dist-ip9bPdma.js} +3 -6
- package/dist/frontend-ssr/assets/{dndzone-CnTCMhPd.js → dndzone-Dx3jt_e4.js} +4 -6
- package/dist/frontend-ssr/assets/{doc_title_label-Ev_ltlh3.js → doc_title_label-CE_l-Gum.js} +2 -3
- package/dist/frontend-ssr/assets/{doc_title_placeholder-DSHpUb7w.js → doc_title_placeholder-7_i7PtG6.js} +2 -3
- package/dist/frontend-ssr/assets/{document-drop-coordinator-CEaYACsC.js → document-drop-coordinator-BVytYy2K.js} +1 -2
- package/dist/frontend-ssr/assets/{documents-CEuA1V6N.js → documents-B_wpQFTh.js} +2 -3
- package/dist/frontend-ssr/assets/{dropdown-menu-CE6U0f1b.js → dropdown-menu-BS5fcN9l.js} +12 -23
- package/dist/frontend-ssr/assets/{editor-content-sanitizer-Gjm93iR-.js → editor-content-sanitizer-CIdFjBSC.js} +1 -2
- package/dist/frontend-ssr/assets/{editor-preferences.svelte-iI5jJM1x.js → editor-preferences.svelte-CdAXTd-I.js} +2 -4
- package/dist/frontend-ssr/assets/{editorExtensions-rhletNji.js → editorExtensions-2O7O2Nhv.js} +2 -3
- package/dist/frontend-ssr/assets/{editor_markdown_placeholder-BpezdkOr.js → editor_markdown_placeholder-CAeLJjFT.js} +3 -5
- package/dist/frontend-ssr/assets/{editor_toolbar_undo-CKJAOqv2.js → editor_toolbar_undo-CVCfQIS1.js} +29 -57
- package/dist/frontend-ssr/assets/{ellipsis-vertical-Cg1MrZsl.js → ellipsis-vertical-IFHt2NM1.js} +2 -3
- package/dist/frontend-ssr/assets/{error_generic-DTK0kwxT.js → error_generic-BB80i0Vk.js} +3 -5
- package/dist/frontend-ssr/assets/{folder-DHB-CEcQ.js → folder-CXa1_bm5.js} +2 -3
- package/dist/frontend-ssr/assets/{folders-BOXeb9hz.js → folders-CTLqWbMm.js} +2 -3
- package/dist/frontend-ssr/assets/{folders_rename-DvciOb6K.js → folders_rename-ydbfwQlj.js} +7 -13
- package/dist/frontend-ssr/assets/{identity-B7ngLQzZ.js → identity-DTz1SQwC.js} +2 -3
- package/dist/frontend-ssr/assets/{input-DVrBVPgs.js → input-Bxw9sFF0.js} +2 -3
- package/dist/frontend-ssr/assets/{keyboard.svelte-BgF47N3L.js → keyboard.svelte-njehUCm3.js} +1 -2
- package/dist/frontend-ssr/assets/{label-vtCK3pTp.js → label-CMWedjs6.js} +2 -3
- package/dist/frontend-ssr/assets/{loader-circle-D3NWhCif.js → loader-circle-zbKj9Qb-.js} +2 -3
- package/dist/frontend-ssr/assets/{markdown-Co31-Tl2.js → markdown-BmIhDQp7.js} +2 -3
- package/dist/frontend-ssr/assets/{popper-layer-force-mount-C4dMMt-f.js → popper-layer-force-mount-CSHZsG2E.js} +78 -156
- package/dist/frontend-ssr/assets/{resolve-BqHozBXl.js → resolve-Wqdff4CL.js} +1 -2
- package/dist/frontend-ssr/assets/{rotate-ccw-DNf3nwMD.js → rotate-ccw-B7SaTFWf.js} +2 -3
- package/dist/frontend-ssr/assets/{route-context-BPRerEtZ.js → route-context-BsqLFt5Y.js} +2 -4
- package/dist/frontend-ssr/assets/{runtime-O78RzRqx.js → runtime-BX6-jTn_.js} +1 -2
- package/dist/frontend-ssr/assets/{scroll_to_top_aria-BN4ZfOnM.js → scroll_to_top_aria-CAYSiGHO.js} +2 -3
- package/dist/frontend-ssr/assets/{search_title-CKUsQDT0.js → search_title-C7NVXXq3.js} +2 -3
- package/dist/frontend-ssr/assets/{search_toggle_filters-hS9rvQhC.js → search_toggle_filters-Bq_YVD8s.js} +15 -29
- package/dist/frontend-ssr/assets/{select-value-Ce5c_fuA.js → select-value-TgslfiUB.js} +18 -34
- package/dist/frontend-ssr/assets/{settings-BRxvn30Y.js → settings-B1MA_FjO.js} +3 -4
- package/dist/frontend-ssr/assets/{share-context-B4UpvTSw.js → share-context-RVh8AExX.js} +17 -22
- package/dist/frontend-ssr/assets/{share_copied-BxU9rjXG.js → share_copied-CrwEwkb3.js} +31 -61
- package/dist/frontend-ssr/assets/{share_toggle_password-C6OmroqR.js → share_toggle_password-Co56z0Ha.js} +11 -21
- package/dist/frontend-ssr/assets/{sidebar_uncategorized-Dx-LTd5w.js → sidebar_uncategorized-COWdmZ3d.js} +6 -11
- package/dist/frontend-ssr/assets/{subfolders-refresh-store.svelte-CXHxQWKh.js → subfolders-refresh-store.svelte-LxG18U0n.js} +1 -2
- package/dist/frontend-ssr/assets/{tag-Cqv0fWVG.js → tag-BGhtDKpP.js} +3 -5
- package/dist/frontend-ssr/assets/{tag-store.svelte-QRysvGKe.js → tag-store.svelte-CUUgAaDD.js} +2 -3
- package/dist/frontend-ssr/assets/{tags-BBCoFYro.js → tags-C7u-LBsl.js} +2 -3
- package/dist/frontend-ssr/assets/{tags_load_error-CPrc6Gzs.js → tags_load_error-DW4FbHvr.js} +19 -37
- package/dist/frontend-ssr/assets/{tags_new-VmMr9v2V.js → tags_new-Dr3ByMPZ.js} +4 -7
- package/dist/frontend-ssr/assets/{textarea-BdjOJJVb.js → textarea-Bz5Tz4rw.js} +2 -3
- package/dist/frontend-ssr/assets/{theme.svelte-D6bbaJ9m.js → theme.svelte-CdHah46l.js} +3 -5
- package/dist/frontend-ssr/assets/{theme_system-BucaNntV.js → theme_system-E97FASeq.js} +19 -37
- package/dist/frontend-ssr/assets/{utils-DvZnctjz.js → utils-085zSPe5.js} +1 -2
- package/dist/frontend-ssr/assets/{utils-D3X7I8nz.js → utils-DF6CmRDX.js} +1 -2
- package/dist/frontend-ssr/assets/{version_create_snapshot-COHzwjle.js → version_create_snapshot-DeeYB7bb.js} +2 -3
- package/dist/frontend-ssr/assets/{version_restored_from-CertjFDl.js → version_restored_from-CTt2LM4A.js} +13 -25
- package/dist/frontend-ssr/assets/{version_snapshot_label_placeholder-Cy_rMCij.js → version_snapshot_label_placeholder-BbGD9YuN.js} +12 -23
- package/dist/frontend-ssr/assets/{weekday_we-DrI3U230.js → weekday_we-BzGQ-iFc.js} +22 -43
- package/dist/frontend-ssr/collaboration.js +5 -5
- package/dist/frontend-ssr/components/category-dialog.js +1 -2
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -2
- package/dist/frontend-ssr/components/delete-dialog.js +1 -2
- package/dist/frontend-ssr/components/editor/compact-editor.js +2 -3
- package/dist/frontend-ssr/components/editor/document-editor.js +1 -2
- package/dist/frontend-ssr/components/editor/document-title.js +3 -4
- package/dist/frontend-ssr/components/editor/docx-serializer.js +1 -2
- package/dist/frontend-ssr/components/editor/extensions.js +1 -2
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +4 -5
- package/dist/frontend-ssr/components/editor/markdown.js +1 -2
- package/dist/frontend-ssr/components/folder-node.js +1 -2
- package/dist/frontend-ssr/components/folder-tree-selector.js +1 -2
- package/dist/frontend-ssr/components/save-as-dialog.js +12 -13
- package/dist/frontend-ssr/components/settings.js +1 -2
- package/dist/frontend-ssr/components/share-dialog.js +1 -2
- package/dist/frontend-ssr/components/sidebar.js +1 -2
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -2
- package/dist/frontend-ssr/components/version-history.js +70 -29
- package/dist/frontend-ssr/dashboard.js +64 -88
- package/dist/frontend-ssr/doc-tabs.js +1 -2
- package/dist/frontend-ssr/document-drop-coordinator.js +1 -2
- package/dist/frontend-ssr/editor-preferences.js +1 -2
- package/dist/frontend-ssr/extension.js +1 -2
- package/dist/frontend-ssr/folder-refresh.js +1 -2
- package/dist/frontend-ssr/i18n.js +315 -603
- package/dist/frontend-ssr/keyboard.js +1 -2
- package/dist/frontend-ssr/offline/identity.js +1 -2
- package/dist/frontend-ssr/search.js +17 -20
- package/dist/frontend-ssr/shared-document.js +5 -8
- package/dist/frontend-ssr/theme.js +2 -3
- package/dist/frontend-ssr/utils/clipboard.js +1 -2
- package/dist/frontend-ssr/utils/dndzone.js +1 -2
- package/dist/frontend-ssr/utils.js +1 -2
- package/dist/lifecycle-runtime.js +3996 -17873
- package/dist/mcp-cli.js +64 -64
- package/dist/mcp-server.js +68 -68
- package/package.json +4 -4
- package/packages/cli/src/index.ts +1 -1
- package/server.json +2 -2
- package/dist/frontend/CategoryDialog-CJeAYxcd.js +0 -630
- package/dist/frontend/HiAiEditor-D6ad_auS.js +0 -3129
- package/dist/frontend/SettingsDialog-B8Oswuqb.js +0 -991
- package/dist/frontend/Sidebar-BV0IDqTS.js +0 -2149
- package/dist/frontend/action_cancel-Cuxsznzz.js +0 -5
- package/dist/frontend/action_close-BJm_52wm.js +0 -5
- package/dist/frontend/action_create-CtBQrRuj.js +0 -5
- package/dist/frontend/action_delete-BXBIzvn0.js +0 -5
- package/dist/frontend/action_go_to-VmK5jmEk.js +0 -5
- package/dist/frontend/action_loading-BLCGJVA9.js +0 -5
- package/dist/frontend/action_save-BRN2Z_GP.js +0 -5
- package/dist/frontend/dist-DcHl92QO.js +0 -316
- package/dist/frontend/doc_title_label-DS9jSIh2.js +0 -5
- package/dist/frontend/doc_title_placeholder-DBQpM1aH.js +0 -5
- package/dist/frontend/error_generic-CzNtmBT4.js +0 -5
- package/dist/frontend/markdown-O9YJA70S.js +0 -12
- package/dist/frontend/scroll_to_top_aria-CvkNF_Hu.js +0 -5
- package/dist/frontend/utils-BlHvR6OL.js +0 -7
- package/dist/frontend/version_create_snapshot-3bu-0qzH.js +0 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
// ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/util.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
let t = Object.values(e).filter((e) => typeof e == "number");
|
|
4
4
|
return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
|
|
5
5
|
}
|
|
6
6
|
function t(e, t = "|") {
|
|
7
|
-
return e.map((e) =>
|
|
7
|
+
return e.map((e) => ce(e)).join(t);
|
|
8
8
|
}
|
|
9
9
|
function n(e, t) {
|
|
10
10
|
return typeof t == "bigint" ? t.toString() : t;
|
|
@@ -91,40 +91,40 @@ function te(e) {
|
|
|
91
91
|
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
92
92
|
}
|
|
93
93
|
var ne = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
|
|
94
|
-
function
|
|
94
|
+
function re(e) {
|
|
95
95
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
96
96
|
}
|
|
97
|
-
var
|
|
98
|
-
if (
|
|
97
|
+
var ie = /* @__PURE__*/ i(() => {
|
|
98
|
+
if (k.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
|
|
99
99
|
try {
|
|
100
100
|
return Function(""), !0;
|
|
101
101
|
} catch {
|
|
102
102
|
return !1;
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
|
-
function
|
|
106
|
-
if (
|
|
105
|
+
function g(e) {
|
|
106
|
+
if (re(e) === !1) return !1;
|
|
107
107
|
let t = e.constructor;
|
|
108
108
|
if (t === void 0 || typeof t != "function") return !0;
|
|
109
109
|
let n = t.prototype;
|
|
110
|
-
return
|
|
110
|
+
return re(n) !== !1 && Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") !== !1;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function ae(e) {
|
|
113
|
+
return g(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
|
|
114
114
|
}
|
|
115
|
-
var
|
|
115
|
+
var oe = /* @__PURE__*/ new Set([
|
|
116
116
|
"string",
|
|
117
117
|
"number",
|
|
118
118
|
"symbol"
|
|
119
119
|
]);
|
|
120
|
-
function
|
|
120
|
+
function se(e) {
|
|
121
121
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function _(e, t, n) {
|
|
124
124
|
let r = new e._zod.constr(t ?? e._zod.def);
|
|
125
125
|
return (!t || n?.parent) && (r._zod.parent = e), r;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function v(e) {
|
|
128
128
|
let t = e;
|
|
129
129
|
if (!t) return {};
|
|
130
130
|
if (typeof t == "string") return { error: () => t };
|
|
@@ -137,32 +137,32 @@ function y(e) {
|
|
|
137
137
|
error: () => t.error
|
|
138
138
|
} : t;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function ce(e) {
|
|
141
141
|
return typeof e == "bigint" ? e.toString() + "n" : typeof e == "string" ? `"${e}"` : `${e}`;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function le(e) {
|
|
144
144
|
return Object.keys(e).filter((t) => e[t]._zod.optin !== void 0 && e[t]._zod.optout === "optional");
|
|
145
145
|
}
|
|
146
|
-
var
|
|
146
|
+
var ue = {
|
|
147
147
|
safeint: [-(2 ** 53 - 1), 2 ** 53 - 1],
|
|
148
148
|
int32: [-2147483648, 2147483647],
|
|
149
149
|
uint32: [0, 4294967295],
|
|
150
150
|
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
151
151
|
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
152
|
-
},
|
|
152
|
+
}, de = {
|
|
153
153
|
int64: [/* @__PURE__*/ BigInt("-9223372036854775808"), /* @__PURE__*/ BigInt("9223372036854775807")],
|
|
154
154
|
uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt("18446744073709551615")]
|
|
155
155
|
};
|
|
156
|
-
function
|
|
156
|
+
function fe(e, t) {
|
|
157
157
|
let n = e._zod.def, r = n.checks;
|
|
158
158
|
if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
|
|
159
159
|
let i = {};
|
|
160
|
-
return p(i, e,
|
|
160
|
+
return p(i, e, y(e, t)), _(e, h(n, {
|
|
161
161
|
shape: i,
|
|
162
162
|
checks: []
|
|
163
163
|
}));
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function y(e, t) {
|
|
166
166
|
let n = u(e), r = [];
|
|
167
167
|
for (let e of Reflect.ownKeys(t)) {
|
|
168
168
|
if (!Object.getOwnPropertyDescriptor(n, e)?.enumerable) throw Error(`Unrecognized key: "${String(e)}"`);
|
|
@@ -170,37 +170,37 @@ function b(e, t) {
|
|
|
170
170
|
}
|
|
171
171
|
return r;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function pe(e, t) {
|
|
174
174
|
let n = e._zod.def, r = n.checks;
|
|
175
175
|
if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
|
|
176
|
-
let i = new Set(
|
|
177
|
-
return p(a, e, Reflect.ownKeys(u(e)).filter((e) => !i.has(e))),
|
|
176
|
+
let i = new Set(y(e, t)), a = {};
|
|
177
|
+
return p(a, e, Reflect.ownKeys(u(e)).filter((e) => !i.has(e))), _(e, h(n, {
|
|
178
178
|
shape: a,
|
|
179
179
|
checks: []
|
|
180
180
|
}));
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
if (!
|
|
182
|
+
function me(e, t) {
|
|
183
|
+
if (!g(t)) throw Error("Invalid input to extend: expected a plain object");
|
|
184
184
|
let n = e._zod.def.checks;
|
|
185
185
|
if (n && n.length > 0) {
|
|
186
186
|
let n = u(e);
|
|
187
187
|
for (let e of Reflect.ownKeys(t)) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
188
188
|
}
|
|
189
|
-
return
|
|
189
|
+
return _(e, h(e._zod.def, { shape: he(e, t) }));
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function he(e, t) {
|
|
192
192
|
let n = {};
|
|
193
193
|
return p(n, e, Reflect.ownKeys(u(e))), m(n, t), n;
|
|
194
194
|
}
|
|
195
|
-
function he(e, t) {
|
|
196
|
-
if (!_(t)) throw Error("Invalid input to safeExtend: expected a plain object");
|
|
197
|
-
return v(e, h(e._zod.def, { shape: me(e, t) }));
|
|
198
|
-
}
|
|
199
195
|
function ge(e, t) {
|
|
196
|
+
if (!g(t)) throw Error("Invalid input to safeExtend: expected a plain object");
|
|
197
|
+
return _(e, h(e._zod.def, { shape: he(e, t) }));
|
|
198
|
+
}
|
|
199
|
+
function _e(e, t) {
|
|
200
200
|
if (!t?._zod?.def) throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");
|
|
201
201
|
if (e._zod.def.checks?.length) throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
202
202
|
let n = {};
|
|
203
|
-
return p(n, e, Reflect.ownKeys(u(e))), p(n, t, Reflect.ownKeys(u(t))),
|
|
203
|
+
return p(n, e, Reflect.ownKeys(u(e))), p(n, t, Reflect.ownKeys(u(t))), _(e, h(e._zod.def, {
|
|
204
204
|
shape: n,
|
|
205
205
|
get catchall() {
|
|
206
206
|
return t._zod.def.catchall;
|
|
@@ -208,45 +208,45 @@ function ge(e, t) {
|
|
|
208
208
|
checks: t._zod.def.checks ?? []
|
|
209
209
|
}));
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function ve(e, t, n, r = "partial") {
|
|
212
212
|
let i = t._zod.def.checks;
|
|
213
213
|
if (i && i.length > 0) throw Error(`.${r}() cannot be used on object schemas containing refinements`);
|
|
214
|
-
let a = n ? new Set(
|
|
214
|
+
let a = n ? new Set(y(t, n)) : void 0, o = {};
|
|
215
215
|
return p(o, t, Reflect.ownKeys(u(t)), e && ((t, n) => a && !a.has(n) ? t : new e({
|
|
216
216
|
type: "optional",
|
|
217
217
|
innerType: t
|
|
218
|
-
}))),
|
|
218
|
+
}))), _(t, h(t._zod.def, {
|
|
219
219
|
shape: o,
|
|
220
220
|
checks: []
|
|
221
221
|
}));
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
let r = n ? new Set(
|
|
223
|
+
function ye(e, t, n) {
|
|
224
|
+
let r = n ? new Set(y(t, n)) : void 0, i = {};
|
|
225
225
|
return p(i, t, Reflect.ownKeys(u(t)), (t, n) => r && !r.has(n) ? t : new e({
|
|
226
226
|
type: "nonoptional",
|
|
227
227
|
innerType: t
|
|
228
|
-
})),
|
|
228
|
+
})), _(t, h(t._zod.def, { shape: i }));
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function b(e, t = 0) {
|
|
231
231
|
if (e.aborted === !0) return !0;
|
|
232
232
|
for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
|
|
233
233
|
return !1;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function be(e, t = 0) {
|
|
236
236
|
if (e.aborted === !0) return !0;
|
|
237
237
|
for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
|
|
238
238
|
return !1;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function xe(e, t) {
|
|
241
241
|
return t.map((t) => {
|
|
242
242
|
var n;
|
|
243
243
|
return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function x(e) {
|
|
247
247
|
return typeof e == "string" ? e : e?.message;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Se(e) {
|
|
250
250
|
let t = [];
|
|
251
251
|
for (let n of e ?? []) {
|
|
252
252
|
let e = n._zod.def;
|
|
@@ -256,30 +256,30 @@ function xe(e) {
|
|
|
256
256
|
}
|
|
257
257
|
return t;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Ce(e, t, n) {
|
|
260
260
|
var r;
|
|
261
261
|
for (let i = t; i < e.length; i++) (r = e[i]).schema ?? (r.schema = n);
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function S(e, t, n) {
|
|
264
264
|
var r;
|
|
265
265
|
let i = e.inst?._zod?.traits;
|
|
266
266
|
i?.has("$ZodType") && (i.has("$ZodCheck") ? (r = e).schema ?? (r.schema = e.inst) : e.schema = e.inst);
|
|
267
|
-
let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message :
|
|
267
|
+
let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message : x(e.inst?._zod.def?.error?.(e)) ?? x(a?.(e)) ?? x(t?.error?.(e)) ?? x(n.customError?.(e)) ?? x(n.localeError?.(e)) ?? "Invalid input", s = {};
|
|
268
268
|
for (let t of Object.keys(e)) t !== "inst" && t !== "schema" && t !== "continue" && t !== "input" && t !== "__proto__" && (s[t] = e[t]);
|
|
269
269
|
return s.path ??= [], s.message = o, t?.reportInput && (s.input = e.input), s;
|
|
270
270
|
}
|
|
271
|
-
var
|
|
272
|
-
function
|
|
271
|
+
var we = /[\uD800-\uDBFF]/;
|
|
272
|
+
function Te(e) {
|
|
273
273
|
let t = e.length;
|
|
274
|
-
if (!
|
|
274
|
+
if (!we.test(e)) return t;
|
|
275
275
|
let n = t;
|
|
276
276
|
for (let r = 0; r < t - 1; r++) (e.charCodeAt(r) & 64512) == 55296 && (e.charCodeAt(r + 1) & 64512) == 56320 && (n--, r++);
|
|
277
277
|
return n;
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function Ee(e) {
|
|
280
280
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function De(e) {
|
|
283
283
|
let t = typeof e;
|
|
284
284
|
switch (t) {
|
|
285
285
|
case "number": return Number.isNaN(e) ? "nan" : "number";
|
|
@@ -292,7 +292,7 @@ function Ee(e) {
|
|
|
292
292
|
}
|
|
293
293
|
return t;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function C(...e) {
|
|
296
296
|
let [t, n, r] = e;
|
|
297
297
|
return typeof t == "string" ? {
|
|
298
298
|
message: t,
|
|
@@ -301,16 +301,16 @@ function w(...e) {
|
|
|
301
301
|
inst: r
|
|
302
302
|
} : { ...t };
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Oe(e, t) {
|
|
305
305
|
for (let n in t) {
|
|
306
306
|
let r = Object.getOwnPropertyDescriptor(t, n);
|
|
307
307
|
r.get ? Object.defineProperty(e, n, {
|
|
308
308
|
...r,
|
|
309
309
|
enumerable: !1
|
|
310
|
-
}) :
|
|
310
|
+
}) : je(e, n, r.value);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function w(e, t, n, r = !0) {
|
|
314
314
|
return Object.defineProperty(e, t, {
|
|
315
315
|
configurable: !0,
|
|
316
316
|
writable: !0,
|
|
@@ -318,67 +318,64 @@ function T(e, t, n, r = !0) {
|
|
|
318
318
|
value: n
|
|
319
319
|
}), n;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
return
|
|
321
|
+
function ke(e, t, n) {
|
|
322
|
+
return w(e, t, n, !1);
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
325
|
+
function Ae(e, t) {
|
|
325
326
|
for (let n in e) {
|
|
326
327
|
let r = e[n];
|
|
327
328
|
Object.defineProperty(t, n, {
|
|
328
329
|
configurable: !0,
|
|
329
330
|
enumerable: !0,
|
|
330
331
|
get() {
|
|
331
|
-
return
|
|
332
|
+
return w(this, n, r(this));
|
|
332
333
|
},
|
|
333
334
|
set(e) {
|
|
334
|
-
|
|
335
|
+
w(this, n, e);
|
|
335
336
|
}
|
|
336
337
|
});
|
|
337
338
|
}
|
|
338
339
|
return t;
|
|
339
340
|
}
|
|
340
|
-
function
|
|
341
|
+
function je(e, t, n) {
|
|
341
342
|
Object.defineProperty(e, t, {
|
|
342
343
|
configurable: !0,
|
|
343
344
|
get() {
|
|
344
|
-
return this == null ? n :
|
|
345
|
+
return this == null ? n : w(this, t, n.bind(this));
|
|
345
346
|
},
|
|
346
347
|
set(e) {
|
|
347
|
-
|
|
348
|
+
w(this, t, e);
|
|
348
349
|
}
|
|
349
350
|
});
|
|
350
351
|
}
|
|
351
|
-
function
|
|
352
|
+
function Me(e, t) {
|
|
352
353
|
let n = Object.getPrototypeOf(e);
|
|
353
354
|
return t in n ? void 0 : n;
|
|
354
355
|
}
|
|
355
|
-
var
|
|
356
|
+
var Ne, T = !1, Pe = {
|
|
356
357
|
configurable: !0,
|
|
357
358
|
get() {
|
|
358
|
-
|
|
359
|
+
T = !0;
|
|
359
360
|
}
|
|
360
361
|
};
|
|
361
|
-
function
|
|
362
|
+
function E(e, t, n) {
|
|
362
363
|
let r = Object.getPrototypeOf(e._zod);
|
|
363
|
-
|
|
364
|
-
Me = void 0;
|
|
365
|
-
return;
|
|
366
|
-
}
|
|
367
|
-
Me = e._zod, Object.defineProperty(r, t, {
|
|
364
|
+
t in r && Ne !== e._zod ? Ne = void 0 : (Ne = e._zod, Object.defineProperty(r, t, {
|
|
368
365
|
configurable: !0,
|
|
369
366
|
get() {
|
|
370
|
-
Object.defineProperty(this, t,
|
|
371
|
-
let e =
|
|
372
|
-
|
|
367
|
+
Object.defineProperty(this, t, Pe);
|
|
368
|
+
let e = T;
|
|
369
|
+
T = !1;
|
|
373
370
|
try {
|
|
374
371
|
let r = n(this);
|
|
375
|
-
return
|
|
372
|
+
return T ? delete this[t] : Object.defineProperty(this, t, {
|
|
376
373
|
configurable: !0,
|
|
377
374
|
writable: !0,
|
|
378
375
|
value: r
|
|
379
|
-
}),
|
|
376
|
+
}), T ||= e, r;
|
|
380
377
|
} catch (n) {
|
|
381
|
-
throw delete this[t],
|
|
378
|
+
throw delete this[t], T ||= e, n;
|
|
382
379
|
}
|
|
383
380
|
},
|
|
384
381
|
set(e) {
|
|
@@ -388,10 +385,10 @@ function D(e, t, n) {
|
|
|
388
385
|
value: e
|
|
389
386
|
});
|
|
390
387
|
}
|
|
391
|
-
});
|
|
388
|
+
}));
|
|
392
389
|
}
|
|
393
|
-
function
|
|
394
|
-
let i =
|
|
390
|
+
function Fe(e, t, n, r) {
|
|
391
|
+
let i = Me(e, t);
|
|
395
392
|
i && Object.defineProperty(i, t, {
|
|
396
393
|
configurable: !0,
|
|
397
394
|
get() {
|
|
@@ -413,26 +410,25 @@ function Pe(e, t, n, r) {
|
|
|
413
410
|
}
|
|
414
411
|
});
|
|
415
412
|
}
|
|
416
|
-
var
|
|
417
|
-
function
|
|
413
|
+
var Ie = "~constantCatch";
|
|
414
|
+
function Le(e) {
|
|
418
415
|
let t = () => e;
|
|
419
|
-
return t[
|
|
416
|
+
return t[Ie] = !0, t;
|
|
420
417
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
var Le, Re = {
|
|
418
|
+
// ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/core.js
|
|
419
|
+
var Re, ze = {
|
|
424
420
|
value: void 0,
|
|
425
421
|
enumerable: !1
|
|
426
|
-
},
|
|
427
|
-
function
|
|
428
|
-
let t =
|
|
422
|
+
}, Be = "captureStackTrace" in Error ? Error : null;
|
|
423
|
+
function Ve(e) {
|
|
424
|
+
let t = Be;
|
|
429
425
|
if (t) {
|
|
430
426
|
let n = t.stackTraceLimit;
|
|
431
427
|
if (typeof n == "number") {
|
|
432
428
|
try {
|
|
433
429
|
t.stackTraceLimit = 0;
|
|
434
430
|
} catch {
|
|
435
|
-
return
|
|
431
|
+
return Be = null, new e();
|
|
436
432
|
}
|
|
437
433
|
try {
|
|
438
434
|
return new e();
|
|
@@ -443,7 +439,8 @@ function Be(e) {
|
|
|
443
439
|
}
|
|
444
440
|
return new e();
|
|
445
441
|
}
|
|
446
|
-
|
|
442
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
443
|
+
function D(e, t, n, r) {
|
|
447
444
|
let i = {};
|
|
448
445
|
function a(e) {
|
|
449
446
|
this.def = e, this.constr = d, this.traits = /* @__PURE__ */ new Set();
|
|
@@ -452,18 +449,18 @@ function O(e, t, n, r) {
|
|
|
452
449
|
let o = n, s = o && /* @__PURE__ */ new WeakSet();
|
|
453
450
|
function c(n, r) {
|
|
454
451
|
if (!n._zod) {
|
|
455
|
-
|
|
452
|
+
ze.value = new a(r);
|
|
456
453
|
try {
|
|
457
|
-
Object.defineProperty(n, "_zod",
|
|
454
|
+
Object.defineProperty(n, "_zod", ze);
|
|
458
455
|
} finally {
|
|
459
|
-
|
|
456
|
+
ze.value = void 0;
|
|
460
457
|
}
|
|
461
458
|
} else if (n._zod.traits.has(e)) return;
|
|
462
459
|
if (n._zod.traits.add(e), t(n, r), s) {
|
|
463
460
|
let e = Object.getPrototypeOf(n), t = n._zod.constr.prototype, r = e;
|
|
464
461
|
for (; r && r !== t;) r = Object.getPrototypeOf(r);
|
|
465
462
|
let i = r ?? e;
|
|
466
|
-
s.has(i) || (s.add(i),
|
|
463
|
+
s.has(i) || (s.add(i), Oe(i, o));
|
|
467
464
|
}
|
|
468
465
|
let i = d.prototype;
|
|
469
466
|
for (let e in i) Object.prototype.hasOwnProperty.call(i, e) && (e in n || (n[e] = i[e].bind(n)));
|
|
@@ -472,7 +469,7 @@ function O(e, t, n, r) {
|
|
|
472
469
|
class u extends l {}
|
|
473
470
|
Object.defineProperty(u, "name", { value: e });
|
|
474
471
|
function d(e) {
|
|
475
|
-
let t = r?.Parent ?
|
|
472
|
+
let t = r?.Parent ? Ve(u) : this;
|
|
476
473
|
c(t, e);
|
|
477
474
|
let n = t._zod.deferred;
|
|
478
475
|
if (n) {
|
|
@@ -484,41 +481,40 @@ function O(e, t, n, r) {
|
|
|
484
481
|
}
|
|
485
482
|
return Object.defineProperty(d, "init", { value: c }), Object.defineProperty(d, Symbol.hasInstance, { value: (t) => r?.Parent && t instanceof r.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(d, "name", { value: e }), d;
|
|
486
483
|
}
|
|
487
|
-
var
|
|
484
|
+
var O = class extends Error {
|
|
488
485
|
constructor() {
|
|
489
486
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
490
487
|
}
|
|
491
|
-
},
|
|
488
|
+
}, He = class extends Error {
|
|
492
489
|
constructor(e) {
|
|
493
490
|
super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
|
|
494
491
|
}
|
|
495
492
|
};
|
|
496
|
-
(
|
|
497
|
-
var
|
|
498
|
-
function
|
|
499
|
-
return e && Object.assign(
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
function He() {
|
|
493
|
+
(Re = globalThis).__zod_globalConfig ?? (Re.__zod_globalConfig = {});
|
|
494
|
+
var k = globalThis.__zod_globalConfig;
|
|
495
|
+
function A(e) {
|
|
496
|
+
return e && Object.assign(k, e), k;
|
|
497
|
+
}
|
|
498
|
+
// ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/errors.js
|
|
499
|
+
function Ue() {
|
|
504
500
|
let e = this._zod;
|
|
505
501
|
return e.message ??= JSON.stringify(e.def, n, 2), e.message;
|
|
506
502
|
}
|
|
507
|
-
function
|
|
503
|
+
function We(e) {
|
|
508
504
|
this._zod.message = e;
|
|
509
505
|
}
|
|
510
|
-
var
|
|
511
|
-
get:
|
|
512
|
-
set:
|
|
506
|
+
var Ge = {
|
|
507
|
+
get: Ue,
|
|
508
|
+
set: We,
|
|
513
509
|
enumerable: !0,
|
|
514
510
|
configurable: !0
|
|
515
|
-
},
|
|
511
|
+
}, Ke = {
|
|
516
512
|
value: void 0,
|
|
517
513
|
enumerable: !1
|
|
518
|
-
},
|
|
519
|
-
e.name = "$ZodError",
|
|
514
|
+
}, qe = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), Je = /* @__PURE__ */ D("$ZodError", (e, t) => {
|
|
515
|
+
e.name = "$ZodError", Ke.value = t, Object.defineProperty(e, "issues", Ke), Ke.value = void 0, Object.defineProperty(e, "message", Ge);
|
|
520
516
|
let n = Object.getPrototypeOf(e);
|
|
521
|
-
|
|
517
|
+
qe.has(n) || (qe.add(n), Object.defineProperty(n, "toString", {
|
|
522
518
|
configurable: !0,
|
|
523
519
|
enumerable: !1,
|
|
524
520
|
get() {
|
|
@@ -537,8 +533,7 @@ var We = {
|
|
|
537
533
|
});
|
|
538
534
|
}
|
|
539
535
|
}));
|
|
540
|
-
}
|
|
541
|
-
O("$ZodError", qe, void 0, { Parent: Error });
|
|
536
|
+
});
|
|
542
537
|
function Ye(e, t, n) {
|
|
543
538
|
return Object.prototype.hasOwnProperty.call(e, t) || (t === "__proto__" ? Object.defineProperty(e, t, {
|
|
544
539
|
value: n(),
|
|
@@ -585,15 +580,14 @@ function Ze(e, t = (e) => e.message) {
|
|
|
585
580
|
};
|
|
586
581
|
return r(e), n;
|
|
587
582
|
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
function M(e, t) {
|
|
583
|
+
// ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/parse.js
|
|
584
|
+
function Qe(e, t) {
|
|
591
585
|
return {
|
|
592
586
|
callee: t?.callee ?? e,
|
|
593
587
|
Err: t?.Err
|
|
594
588
|
};
|
|
595
589
|
}
|
|
596
|
-
var
|
|
590
|
+
var $e = (e) => {
|
|
597
591
|
let t = (n, r, i, a) => {
|
|
598
592
|
let o = i ? {
|
|
599
593
|
...i,
|
|
@@ -602,15 +596,15 @@ var Qe = (e) => {
|
|
|
602
596
|
value: r,
|
|
603
597
|
issues: []
|
|
604
598
|
}, o);
|
|
605
|
-
if (s instanceof Promise) throw new
|
|
599
|
+
if (s instanceof Promise) throw new O();
|
|
606
600
|
if (s.issues.length) {
|
|
607
|
-
let n = new ((a?.Err) ?? e)(s.issues.map((e) =>
|
|
601
|
+
let n = new ((a?.Err) ?? e)(s.issues.map((e) => S(e, o, A())));
|
|
608
602
|
throw ne(n, a?.callee ?? t), n;
|
|
609
603
|
}
|
|
610
604
|
return s.value;
|
|
611
605
|
};
|
|
612
606
|
return t;
|
|
613
|
-
},
|
|
607
|
+
}, et = (e) => {
|
|
614
608
|
let t = async (n, r, i, a) => {
|
|
615
609
|
let o = i ? {
|
|
616
610
|
...i,
|
|
@@ -620,13 +614,13 @@ var Qe = (e) => {
|
|
|
620
614
|
issues: []
|
|
621
615
|
}, o);
|
|
622
616
|
if (s instanceof Promise && (s = await s), s.issues.length) {
|
|
623
|
-
let n = new ((a?.Err) ?? e)(s.issues.map((e) =>
|
|
617
|
+
let n = new ((a?.Err) ?? e)(s.issues.map((e) => S(e, o, A())));
|
|
624
618
|
throw ne(n, a?.callee ?? t), n;
|
|
625
619
|
}
|
|
626
620
|
return s.value;
|
|
627
621
|
};
|
|
628
622
|
return t;
|
|
629
|
-
},
|
|
623
|
+
}, tt = (e) => (t, n, r) => {
|
|
630
624
|
let i = r ? {
|
|
631
625
|
...r,
|
|
632
626
|
async: !1
|
|
@@ -634,25 +628,25 @@ var Qe = (e) => {
|
|
|
634
628
|
value: n,
|
|
635
629
|
issues: []
|
|
636
630
|
}, i);
|
|
637
|
-
if (a instanceof Promise) throw new
|
|
638
|
-
return a.issues.length ?
|
|
631
|
+
if (a instanceof Promise) throw new O();
|
|
632
|
+
return a.issues.length ? nt(e, a.issues, i) : {
|
|
639
633
|
success: !0,
|
|
640
634
|
data: a.value
|
|
641
635
|
};
|
|
642
636
|
};
|
|
643
|
-
function
|
|
637
|
+
function nt(e, t, n) {
|
|
644
638
|
let r;
|
|
645
639
|
return {
|
|
646
640
|
success: !1,
|
|
647
641
|
get error() {
|
|
648
|
-
return r || (r = new e(t.map((e) =>
|
|
642
|
+
return r || (r = new e(t.map((e) => S(e, n, A()))), t = void 0, n = void 0), r;
|
|
649
643
|
},
|
|
650
644
|
set error(e) {
|
|
651
645
|
r = e, t = void 0, n = void 0;
|
|
652
646
|
}
|
|
653
647
|
};
|
|
654
648
|
}
|
|
655
|
-
var
|
|
649
|
+
var rt = (e) => async (t, n, r) => {
|
|
656
650
|
let i = r ? {
|
|
657
651
|
...r,
|
|
658
652
|
async: !0
|
|
@@ -660,19 +654,19 @@ var nt = (e) => async (t, n, r) => {
|
|
|
660
654
|
value: n,
|
|
661
655
|
issues: []
|
|
662
656
|
}, i);
|
|
663
|
-
return a instanceof Promise && (a = await a), a.issues.length ?
|
|
657
|
+
return a instanceof Promise && (a = await a), a.issues.length ? nt(e, a.issues, i) : {
|
|
664
658
|
success: !0,
|
|
665
659
|
data: a.value
|
|
666
660
|
};
|
|
667
|
-
},
|
|
661
|
+
}, it = /* @__PURE__ */ Symbol.for("zod.compile.invalid"), at = /* @__PURE__ */ Symbol.for("zod.compile.fallback"), ot = ((e, t, n) => {
|
|
668
662
|
let r = e._zod.bag.validator;
|
|
669
663
|
if (r !== void 0) {
|
|
670
|
-
if (r(t) !==
|
|
664
|
+
if (r(t) !== it) return !0;
|
|
671
665
|
if (r.definite === !0 && n === void 0) return !1;
|
|
672
666
|
}
|
|
673
|
-
return
|
|
667
|
+
return st(e, t, n);
|
|
674
668
|
});
|
|
675
|
-
function
|
|
669
|
+
function st(e, t, n) {
|
|
676
670
|
let r = n ? {
|
|
677
671
|
...n,
|
|
678
672
|
async: !1,
|
|
@@ -681,16 +675,16 @@ function ot(e, t, n) {
|
|
|
681
675
|
async: !1,
|
|
682
676
|
abortEarly: !0
|
|
683
677
|
}, i = e._zod.bag.fallbackRun, a;
|
|
684
|
-
if (i ? (r[
|
|
678
|
+
if (i ? (r[at] = !0, a = i({
|
|
685
679
|
value: t,
|
|
686
680
|
issues: []
|
|
687
681
|
}, r)) : a = e._zod.run({
|
|
688
682
|
value: t,
|
|
689
683
|
issues: []
|
|
690
|
-
}, r), a instanceof Promise) throw new
|
|
684
|
+
}, r), a instanceof Promise) throw new O();
|
|
691
685
|
return a.issues.length === 0;
|
|
692
686
|
}
|
|
693
|
-
var
|
|
687
|
+
var ct = async (e, t, n) => {
|
|
694
688
|
let r = n ? {
|
|
695
689
|
...n,
|
|
696
690
|
async: !0,
|
|
@@ -703,87 +697,87 @@ var st = async (e, t, n) => {
|
|
|
703
697
|
issues: []
|
|
704
698
|
}, r);
|
|
705
699
|
return i instanceof Promise && (i = await i), i.issues.length === 0;
|
|
706
|
-
},
|
|
707
|
-
let t =
|
|
700
|
+
}, lt = (e) => {
|
|
701
|
+
let t = $e(e), n = (e, r, i, a) => {
|
|
708
702
|
let o = i ? {
|
|
709
703
|
...i,
|
|
710
704
|
direction: "backward"
|
|
711
705
|
} : { direction: "backward" };
|
|
712
|
-
return t(e, r, o,
|
|
706
|
+
return t(e, r, o, Qe(n, a));
|
|
713
707
|
};
|
|
714
708
|
return n;
|
|
715
|
-
}, lt = (e) => {
|
|
716
|
-
let t = Qe(e), n = (e, r, i, a) => t(e, r, i, M(n, a));
|
|
717
|
-
return n;
|
|
718
709
|
}, ut = (e) => {
|
|
719
|
-
let t = $e(e), n =
|
|
710
|
+
let t = $e(e), n = (e, r, i, a) => t(e, r, i, Qe(n, a));
|
|
711
|
+
return n;
|
|
712
|
+
}, dt = (e) => {
|
|
713
|
+
let t = et(e), n = async (e, r, i, a) => {
|
|
720
714
|
let o = i ? {
|
|
721
715
|
...i,
|
|
722
716
|
direction: "backward"
|
|
723
717
|
} : { direction: "backward" };
|
|
724
|
-
return await t(e, r, o,
|
|
718
|
+
return await t(e, r, o, Qe(n, a));
|
|
725
719
|
};
|
|
726
720
|
return n;
|
|
727
|
-
},
|
|
728
|
-
let t =
|
|
721
|
+
}, ft = (e) => {
|
|
722
|
+
let t = et(e), n = async (e, r, i, a) => await t(e, r, i, Qe(n, a));
|
|
729
723
|
return n;
|
|
730
|
-
},
|
|
724
|
+
}, pt = (e) => (t, n, r) => {
|
|
731
725
|
let i = r ? {
|
|
732
726
|
...r,
|
|
733
727
|
direction: "backward"
|
|
734
728
|
} : { direction: "backward" };
|
|
735
|
-
return
|
|
736
|
-
},
|
|
729
|
+
return tt(e)(t, n, i);
|
|
730
|
+
}, mt = (e) => (t, n, r) => tt(e)(t, n, r), ht = (e) => async (t, n, r) => {
|
|
737
731
|
let i = r ? {
|
|
738
732
|
...r,
|
|
739
733
|
direction: "backward"
|
|
740
734
|
} : { direction: "backward" };
|
|
741
|
-
return
|
|
742
|
-
},
|
|
743
|
-
function
|
|
735
|
+
return rt(e)(t, n, i);
|
|
736
|
+
}, gt = (e) => async (t, n, r) => rt(e)(t, n, r), _t = /^[cC][0-9a-z]{6,}$/, vt = /^[0-9a-z]+$/, yt = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/, bt = /^[0-9a-vA-V]{20}$/, xt = /^[A-Za-z0-9]{27}$/, St = /^[a-zA-Z0-9_-]{21}$/;
|
|
737
|
+
function Ct(e) {
|
|
744
738
|
return RegExp(`^[a-zA-Z0-9_-]{${e}}$`);
|
|
745
739
|
}
|
|
746
|
-
var
|
|
747
|
-
function
|
|
748
|
-
return new RegExp(
|
|
740
|
+
var wt = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Tt = /^([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})$/, Et = (e) => e ? 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)$/, Dt = /^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ot = "^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";
|
|
741
|
+
function kt() {
|
|
742
|
+
return new RegExp(Ot, "u");
|
|
749
743
|
}
|
|
750
|
-
var
|
|
751
|
-
function
|
|
744
|
+
var At = /^(?:(?: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])$/, jt = /^(([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}|:))$/, Mt = /^((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])$/, Nt = /^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Pt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ft = /^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/, It = /^https?$/, Lt = /^\+[1-9]\d{6,14}$/, Rt = "(?:(?:\\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])))";
|
|
745
|
+
function zt(e) {
|
|
752
746
|
return RegExp(`^${e}$`);
|
|
753
747
|
}
|
|
754
|
-
var
|
|
755
|
-
function
|
|
748
|
+
var Bt = /*@__PURE__*/ zt(Rt);
|
|
749
|
+
function Vt(e) {
|
|
756
750
|
let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
757
751
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : e.seconds ? `${t}:[0-5]\\d(?:\\.\\d+)?` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
758
752
|
}
|
|
759
|
-
function Vt(e) {
|
|
760
|
-
return RegExp(`^${Bt(e)}$`);
|
|
761
|
-
}
|
|
762
753
|
function Ht(e) {
|
|
754
|
+
return RegExp(`^${Vt(e)}$`);
|
|
755
|
+
}
|
|
756
|
+
function Ut(e) {
|
|
763
757
|
let t = ["Z"];
|
|
764
758
|
e.offset && t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
765
|
-
let n = `${
|
|
759
|
+
let n = `${Vt({
|
|
766
760
|
precision: e.precision,
|
|
767
761
|
seconds: !0
|
|
768
|
-
})}(?:${t.join("|")})`, r = e.local ? `${n}|${
|
|
769
|
-
return RegExp(`^${
|
|
762
|
+
})}(?:${t.join("|")})`, r = e.local ? `${n}|${Vt({ precision: e.precision })}` : n;
|
|
763
|
+
return RegExp(`^${Rt}T(?:${r})$`);
|
|
770
764
|
}
|
|
771
|
-
var
|
|
765
|
+
var Wt = /^[\s\S]{0,}$/, Gt = /^-?\d+(?:\.\d+)?$/, Kt = /^(?:true|false)$/i, qt = /^[^A-Z]*$/, Jt = /^[^a-z]*$/, j = /*@__PURE__*/ D("$ZodCheck", (e, t) => {
|
|
772
766
|
var n;
|
|
773
767
|
e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
774
|
-
}),
|
|
768
|
+
}), Yt = (e) => {
|
|
775
769
|
let t = e.value;
|
|
776
770
|
return !a(t) && t.length !== void 0;
|
|
777
|
-
},
|
|
771
|
+
}, Xt = {
|
|
778
772
|
number: "number",
|
|
779
773
|
bigint: "bigint",
|
|
780
774
|
object: "date"
|
|
781
|
-
},
|
|
782
|
-
|
|
783
|
-
let n =
|
|
775
|
+
}, Zt = /*@__PURE__*/ D("$ZodCheckLessThan", (e, t) => {
|
|
776
|
+
j.init(e, t);
|
|
777
|
+
let n = Xt[typeof t.value];
|
|
784
778
|
e._zod.check = (r) => {
|
|
785
779
|
(t.inclusive ? r.value <= t.value : r.value < t.value) || r.issues.push({
|
|
786
|
-
origin:
|
|
780
|
+
origin: Xt[typeof r.value] ?? n,
|
|
787
781
|
code: "too_big",
|
|
788
782
|
maximum: typeof t.value == "object" ? t.value.getTime() : t.value,
|
|
789
783
|
input: r.value,
|
|
@@ -792,12 +786,12 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
792
786
|
continue: !t.abort
|
|
793
787
|
});
|
|
794
788
|
};
|
|
795
|
-
}),
|
|
796
|
-
|
|
797
|
-
let n =
|
|
789
|
+
}), Qt = /*@__PURE__*/ D("$ZodCheckGreaterThan", (e, t) => {
|
|
790
|
+
j.init(e, t);
|
|
791
|
+
let n = Xt[typeof t.value];
|
|
798
792
|
e._zod.check = (r) => {
|
|
799
793
|
(t.inclusive ? r.value >= t.value : r.value > t.value) || r.issues.push({
|
|
800
|
-
origin:
|
|
794
|
+
origin: Xt[typeof r.value] ?? n,
|
|
801
795
|
code: "too_small",
|
|
802
796
|
minimum: typeof t.value == "object" ? t.value.getTime() : t.value,
|
|
803
797
|
input: r.value,
|
|
@@ -806,8 +800,8 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
806
800
|
continue: !t.abort
|
|
807
801
|
});
|
|
808
802
|
};
|
|
809
|
-
}),
|
|
810
|
-
|
|
803
|
+
}), $t = /*@__PURE__*/ D("$ZodCheckMultipleOf", (e, t) => {
|
|
804
|
+
j.init(e, t), e._zod.check = (n) => {
|
|
811
805
|
if (typeof n.value != typeof t.value) throw Error("Cannot mix number and bigint in multiple_of check.");
|
|
812
806
|
(typeof n.value == "bigint" ? t.value !== BigInt(0) && n.value % t.value === BigInt(0) : s(n.value, t.value) === 0) || n.issues.push({
|
|
813
807
|
origin: typeof n.value,
|
|
@@ -818,9 +812,9 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
818
812
|
continue: !t.abort
|
|
819
813
|
});
|
|
820
814
|
};
|
|
821
|
-
}),
|
|
822
|
-
|
|
823
|
-
let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] =
|
|
815
|
+
}), en = /*@__PURE__*/ D("$ZodCheckNumberFormat", (e, t) => {
|
|
816
|
+
j.init(e, t), t.format = t.format || "float64";
|
|
817
|
+
let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = ue[t.format];
|
|
824
818
|
e._zod.check = (o) => {
|
|
825
819
|
let s = o.value;
|
|
826
820
|
if (n) {
|
|
@@ -876,12 +870,12 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
876
870
|
continue: !t.abort
|
|
877
871
|
});
|
|
878
872
|
};
|
|
879
|
-
}),
|
|
873
|
+
}), tn = /*@__PURE__*/ D("$ZodCheckMaxLength", (e, t) => {
|
|
880
874
|
var n;
|
|
881
|
-
|
|
875
|
+
j.init(e, t), (n = e._zod.def).when ?? (n.when = Yt), e._zod.check = (n) => {
|
|
882
876
|
let r = n.value, i = r.length;
|
|
883
|
-
if ((typeof r == "string" && i > t.maximum ?
|
|
884
|
-
let a =
|
|
877
|
+
if ((typeof r == "string" && i > t.maximum ? Te(r) : i) <= t.maximum) return;
|
|
878
|
+
let a = Ee(r);
|
|
885
879
|
n.issues.push({
|
|
886
880
|
origin: a,
|
|
887
881
|
code: "too_big",
|
|
@@ -892,12 +886,12 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
892
886
|
continue: !t.abort
|
|
893
887
|
});
|
|
894
888
|
};
|
|
895
|
-
}),
|
|
889
|
+
}), nn = /*@__PURE__*/ D("$ZodCheckMinLength", (e, t) => {
|
|
896
890
|
var n;
|
|
897
|
-
|
|
891
|
+
j.init(e, t), (n = e._zod.def).when ?? (n.when = Yt), e._zod.check = (n) => {
|
|
898
892
|
let r = n.value, i = r.length;
|
|
899
|
-
if ((typeof r == "string" && i >= t.minimum && i < t.minimum * 2 ?
|
|
900
|
-
let a =
|
|
893
|
+
if ((typeof r == "string" && i >= t.minimum && i < t.minimum * 2 ? Te(r) : i) >= t.minimum) return;
|
|
894
|
+
let a = Ee(r);
|
|
901
895
|
n.issues.push({
|
|
902
896
|
origin: a,
|
|
903
897
|
code: "too_small",
|
|
@@ -908,12 +902,12 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
908
902
|
continue: !t.abort
|
|
909
903
|
});
|
|
910
904
|
};
|
|
911
|
-
}),
|
|
905
|
+
}), rn = /*@__PURE__*/ D("$ZodCheckLengthEquals", (e, t) => {
|
|
912
906
|
var n;
|
|
913
|
-
|
|
914
|
-
let r = n.value, i = r.length, a = typeof r == "string" && i >= t.length && i <= t.length * 2 ?
|
|
907
|
+
j.init(e, t), (n = e._zod.def).when ?? (n.when = Yt), e._zod.check = (n) => {
|
|
908
|
+
let r = n.value, i = r.length, a = typeof r == "string" && i >= t.length && i <= t.length * 2 ? Te(r) : i;
|
|
915
909
|
if (a === t.length) return;
|
|
916
|
-
let o =
|
|
910
|
+
let o = Ee(r), s = a > t.length;
|
|
917
911
|
n.issues.push({
|
|
918
912
|
origin: o,
|
|
919
913
|
...s ? {
|
|
@@ -930,10 +924,10 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
930
924
|
continue: !t.abort
|
|
931
925
|
});
|
|
932
926
|
};
|
|
933
|
-
}),
|
|
927
|
+
}), an = /*@__PURE__*/ D("$ZodCheckStringFormat", (e, t) => {
|
|
934
928
|
var n, r;
|
|
935
|
-
|
|
936
|
-
t.pattern.lastIndex = 0,
|
|
929
|
+
j.init(e, t), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
|
|
930
|
+
t.pattern.lastIndex = 0, t.pattern.test(n.value) || n.issues.push({
|
|
937
931
|
origin: "string",
|
|
938
932
|
code: "invalid_format",
|
|
939
933
|
format: t.format,
|
|
@@ -943,9 +937,9 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
943
937
|
continue: !t.abort
|
|
944
938
|
});
|
|
945
939
|
}) : (r = e._zod).check ?? (r.check = () => {});
|
|
946
|
-
}),
|
|
947
|
-
|
|
948
|
-
t.pattern.lastIndex = 0,
|
|
940
|
+
}), on = /*@__PURE__*/ D("$ZodCheckRegex", (e, t) => {
|
|
941
|
+
an.init(e, t), e._zod.check = (n) => {
|
|
942
|
+
t.pattern.lastIndex = 0, t.pattern.test(n.value) || n.issues.push({
|
|
949
943
|
origin: "string",
|
|
950
944
|
code: "invalid_format",
|
|
951
945
|
format: "regex",
|
|
@@ -955,13 +949,13 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
955
949
|
continue: !t.abort
|
|
956
950
|
});
|
|
957
951
|
};
|
|
958
|
-
}),
|
|
959
|
-
t.pattern ??=
|
|
960
|
-
}),
|
|
961
|
-
t.pattern ??=
|
|
962
|
-
}),
|
|
963
|
-
|
|
964
|
-
let n =
|
|
952
|
+
}), sn = /*@__PURE__*/ D("$ZodCheckLowerCase", (e, t) => {
|
|
953
|
+
t.pattern ??= qt, an.init(e, t);
|
|
954
|
+
}), cn = /*@__PURE__*/ D("$ZodCheckUpperCase", (e, t) => {
|
|
955
|
+
t.pattern ??= Jt, an.init(e, t);
|
|
956
|
+
}), ln = /*@__PURE__*/ D("$ZodCheckIncludes", (e, t) => {
|
|
957
|
+
j.init(e, t);
|
|
958
|
+
let n = se(t.includes);
|
|
965
959
|
t.pattern = new RegExp(typeof t.position == "number" ? `^.{${t.position},}${n}` : n), e._zod.check = (n) => {
|
|
966
960
|
n.value.includes(t.includes, t.position) || n.issues.push({
|
|
967
961
|
origin: "string",
|
|
@@ -973,9 +967,9 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
973
967
|
continue: !t.abort
|
|
974
968
|
});
|
|
975
969
|
};
|
|
976
|
-
}),
|
|
977
|
-
|
|
978
|
-
let n = RegExp(`^${
|
|
970
|
+
}), un = /*@__PURE__*/ D("$ZodCheckStartsWith", (e, t) => {
|
|
971
|
+
j.init(e, t);
|
|
972
|
+
let n = RegExp(`^${se(t.prefix)}.*`);
|
|
979
973
|
t.pattern ??= n, e._zod.check = (n) => {
|
|
980
974
|
n.value.startsWith(t.prefix) || n.issues.push({
|
|
981
975
|
origin: "string",
|
|
@@ -987,9 +981,9 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
987
981
|
continue: !t.abort
|
|
988
982
|
});
|
|
989
983
|
};
|
|
990
|
-
}),
|
|
991
|
-
|
|
992
|
-
let n = RegExp(`.*${
|
|
984
|
+
}), dn = /*@__PURE__*/ D("$ZodCheckEndsWith", (e, t) => {
|
|
985
|
+
j.init(e, t);
|
|
986
|
+
let n = RegExp(`.*${se(t.suffix)}$`);
|
|
993
987
|
t.pattern ??= n, e._zod.check = (n) => {
|
|
994
988
|
n.value.endsWith(t.suffix) || n.issues.push({
|
|
995
989
|
origin: "string",
|
|
@@ -1001,11 +995,11 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
1001
995
|
continue: !t.abort
|
|
1002
996
|
});
|
|
1003
997
|
};
|
|
1004
|
-
}),
|
|
1005
|
-
|
|
998
|
+
}), fn = /*@__PURE__*/ D("$ZodCheckOverwrite", (e, t) => {
|
|
999
|
+
j.init(e, t), e._zod.check = (e) => {
|
|
1006
1000
|
e.value = t.tx(e.value);
|
|
1007
1001
|
};
|
|
1008
|
-
}),
|
|
1002
|
+
}), pn = class {
|
|
1009
1003
|
constructor(e = [], t = {}) {
|
|
1010
1004
|
this.content = [], this.indent = 0, this.args = e, this.closed = t;
|
|
1011
1005
|
}
|
|
@@ -1029,13 +1023,13 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
1029
1023
|
let e = Function, t = this?.content ?? [""];
|
|
1030
1024
|
return new e(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${t.join("\n")}\n};`)(...Object.values(this.closed));
|
|
1031
1025
|
}
|
|
1032
|
-
},
|
|
1026
|
+
}, mn = {
|
|
1033
1027
|
major: 4,
|
|
1034
1028
|
minor: 6,
|
|
1035
1029
|
patch: 7
|
|
1036
|
-
},
|
|
1030
|
+
}, M = /*@__PURE__*/ D("$ZodType", (e, t) => {
|
|
1037
1031
|
var n;
|
|
1038
|
-
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
1032
|
+
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = mn;
|
|
1039
1033
|
let r = e._zod.def.checks, i = e._zod.traits.has("$ZodCheck") ? [e, ...r ?? []] : r?.length ? [...r] : [];
|
|
1040
1034
|
for (let t of i) for (let n of t._zod.onattach) n(e);
|
|
1041
1035
|
if (i.length === 0) (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
|
|
@@ -1044,27 +1038,27 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
1044
1038
|
else {
|
|
1045
1039
|
let t = (t, n, r) => {
|
|
1046
1040
|
if (t.memo) return t;
|
|
1047
|
-
let i =
|
|
1041
|
+
let i = b(t), a;
|
|
1048
1042
|
for (let o of n) {
|
|
1049
1043
|
if (o._zod.def.when) {
|
|
1050
|
-
if (
|
|
1044
|
+
if (be(t) || !o._zod.def.when(t)) continue;
|
|
1051
1045
|
} else if (i) continue;
|
|
1052
1046
|
let n = t.issues.length, s = o._zod.check(t);
|
|
1053
|
-
if (s instanceof Promise && r?.async === !1) throw new
|
|
1047
|
+
if (s instanceof Promise && r?.async === !1) throw new O();
|
|
1054
1048
|
if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
|
|
1055
|
-
await s, t.issues.length !== n && (
|
|
1049
|
+
await s, t.issues.length !== n && (Ce(t.issues, n, e), i ||= b(t, n));
|
|
1056
1050
|
});
|
|
1057
1051
|
else {
|
|
1058
1052
|
if (t.issues.length === n) continue;
|
|
1059
|
-
|
|
1053
|
+
Ce(t.issues, n, e), i ||= b(t, n);
|
|
1060
1054
|
}
|
|
1061
1055
|
}
|
|
1062
1056
|
return a ? a.then(() => t) : t;
|
|
1063
1057
|
}, n = (n, r, a) => {
|
|
1064
|
-
if (
|
|
1058
|
+
if (b(n)) return n.aborted = !0, n;
|
|
1065
1059
|
let o = t(r, i, a);
|
|
1066
1060
|
if (o instanceof Promise) {
|
|
1067
|
-
if (a.async === !1) throw new
|
|
1061
|
+
if (a.async === !1) throw new O();
|
|
1068
1062
|
return o.then((t) => e._zod.parse(t, a));
|
|
1069
1063
|
}
|
|
1070
1064
|
return e._zod.parse(o, a);
|
|
@@ -1083,7 +1077,7 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
1083
1077
|
}
|
|
1084
1078
|
let o = e._zod.parse(r, a);
|
|
1085
1079
|
if (o instanceof Promise) {
|
|
1086
|
-
if (a.async === !1) throw new
|
|
1080
|
+
if (a.async === !1) throw new O();
|
|
1087
1081
|
return o.then((e) => t(e, i, a));
|
|
1088
1082
|
}
|
|
1089
1083
|
return t(o, i, a);
|
|
@@ -1091,20 +1085,20 @@ var Ut = /^[\s\S]{0,}$/, Wt = /^-?\d+(?:\.\d+)?$/, Gt = /^(?:true|false)$/i, Kt
|
|
|
1091
1085
|
}
|
|
1092
1086
|
}, {
|
|
1093
1087
|
get "~standard"() {
|
|
1094
|
-
return
|
|
1088
|
+
return ke(this, "~standard", _n(this));
|
|
1095
1089
|
},
|
|
1096
1090
|
set "~standard"(e) {
|
|
1097
|
-
|
|
1091
|
+
w(this, "~standard", e);
|
|
1098
1092
|
}
|
|
1099
|
-
}),
|
|
1100
|
-
async function
|
|
1093
|
+
}), hn = (e, t) => e.issues.length ? { issues: e.issues.map((e) => S(e, t, A())) } : { value: e.value };
|
|
1094
|
+
async function gn(e, t) {
|
|
1101
1095
|
let n = { async: !0 };
|
|
1102
|
-
return
|
|
1096
|
+
return hn(await e._zod.run({
|
|
1103
1097
|
value: t,
|
|
1104
1098
|
issues: []
|
|
1105
1099
|
}, n), n);
|
|
1106
1100
|
}
|
|
1107
|
-
function
|
|
1101
|
+
function _n(e) {
|
|
1108
1102
|
return {
|
|
1109
1103
|
validate: (t) => {
|
|
1110
1104
|
let n = { async: !1 };
|
|
@@ -1113,16 +1107,16 @@ function gn(e) {
|
|
|
1113
1107
|
value: t,
|
|
1114
1108
|
issues: []
|
|
1115
1109
|
}, n);
|
|
1116
|
-
if (!(r instanceof Promise)) return
|
|
1110
|
+
if (!(r instanceof Promise)) return hn(r, n);
|
|
1117
1111
|
} catch {}
|
|
1118
|
-
return
|
|
1112
|
+
return gn(e, t);
|
|
1119
1113
|
},
|
|
1120
1114
|
vendor: "zod",
|
|
1121
1115
|
version: 1
|
|
1122
1116
|
};
|
|
1123
1117
|
}
|
|
1124
|
-
var
|
|
1125
|
-
|
|
1118
|
+
var vn = /*@__PURE__*/ D("$ZodString", (e, t) => {
|
|
1119
|
+
M.init(e, t), e._zod.pattern = t.pattern ?? Wt, e._zod.parse = (n, r) => {
|
|
1126
1120
|
if (t.coerce) try {
|
|
1127
1121
|
n.value = String(n.value);
|
|
1128
1122
|
} catch {}
|
|
@@ -1133,11 +1127,11 @@ var _n = /*@__PURE__*/ O("$ZodString", (e, t) => {
|
|
|
1133
1127
|
inst: e
|
|
1134
1128
|
}), n;
|
|
1135
1129
|
};
|
|
1136
|
-
}),
|
|
1137
|
-
|
|
1138
|
-
}),
|
|
1139
|
-
t.pattern ??=
|
|
1140
|
-
}),
|
|
1130
|
+
}), N = /*@__PURE__*/ D("$ZodStringFormat", (e, t) => {
|
|
1131
|
+
an.init(e, t), vn.init(e, t);
|
|
1132
|
+
}), yn = /*@__PURE__*/ D("$ZodGUID", (e, t) => {
|
|
1133
|
+
t.pattern ??= Tt, N.init(e, t);
|
|
1134
|
+
}), bn = /*@__PURE__*/ D("$ZodUUID", (e, t) => {
|
|
1141
1135
|
if (t.version) {
|
|
1142
1136
|
let e = {
|
|
1143
1137
|
v1: 1,
|
|
@@ -1150,24 +1144,24 @@ var _n = /*@__PURE__*/ O("$ZodString", (e, t) => {
|
|
|
1150
1144
|
v8: 8
|
|
1151
1145
|
}[t.version];
|
|
1152
1146
|
if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
|
|
1153
|
-
t.pattern ??=
|
|
1154
|
-
} else t.pattern ??=
|
|
1155
|
-
|
|
1156
|
-
}),
|
|
1157
|
-
t.pattern ??=
|
|
1147
|
+
t.pattern ??= Et(e);
|
|
1148
|
+
} else t.pattern ??= Et();
|
|
1149
|
+
N.init(e, t);
|
|
1150
|
+
}), xn = /*@__PURE__*/ D("$ZodEmail", (e, t) => {
|
|
1151
|
+
t.pattern ??= Dt, N.init(e, t);
|
|
1158
1152
|
});
|
|
1159
|
-
function
|
|
1153
|
+
function Sn(e) {
|
|
1160
1154
|
try {
|
|
1161
1155
|
return typeof URL < "u" && typeof URL.canParse == "function" ? URL.canParse(e) : (new URL(e), !0);
|
|
1162
1156
|
} catch {
|
|
1163
1157
|
return !1;
|
|
1164
1158
|
}
|
|
1165
1159
|
}
|
|
1166
|
-
function Sn(e, t) {
|
|
1167
|
-
return !("normalize" in t) && !("hostname" in t) && !("protocol" in t) ? xn(e) || 2 : Cn(e, t);
|
|
1168
|
-
}
|
|
1169
1160
|
function Cn(e, t) {
|
|
1170
|
-
|
|
1161
|
+
return !("normalize" in t) && !("hostname" in t) && !("protocol" in t) ? Sn(e) || 2 : wn(e, t);
|
|
1162
|
+
}
|
|
1163
|
+
function wn(e, t) {
|
|
1164
|
+
if (!t.normalize && t.protocol?.source === It.source && !/^https?:\/\//i.test(e)) return 1;
|
|
1171
1165
|
try {
|
|
1172
1166
|
if (typeof URL < "u") {
|
|
1173
1167
|
let t = URL;
|
|
@@ -1178,20 +1172,20 @@ function Cn(e, t) {
|
|
|
1178
1172
|
return 2;
|
|
1179
1173
|
}
|
|
1180
1174
|
}
|
|
1181
|
-
var
|
|
1182
|
-
function
|
|
1183
|
-
return e.replace(
|
|
1175
|
+
var Tn = /[\t\n\r]/g;
|
|
1176
|
+
function En(e) {
|
|
1177
|
+
return e.replace(Tn, "");
|
|
1184
1178
|
}
|
|
1185
|
-
function
|
|
1179
|
+
function Dn(e, t) {
|
|
1186
1180
|
return t.lastIndex = 0, t.test(e.hostname);
|
|
1187
1181
|
}
|
|
1188
|
-
function
|
|
1182
|
+
function On(e, t) {
|
|
1189
1183
|
return t.lastIndex = 0, t.test(e.protocol.endsWith(":") ? e.protocol.slice(0, -1) : e.protocol);
|
|
1190
1184
|
}
|
|
1191
|
-
var
|
|
1192
|
-
|
|
1185
|
+
var kn = /*@__PURE__*/ D("$ZodURL", (e, t) => {
|
|
1186
|
+
N.init(e, t), e._zod.check = (n) => {
|
|
1193
1187
|
try {
|
|
1194
|
-
let r = n.value.trim(), i =
|
|
1188
|
+
let r = n.value.trim(), i = Cn(r, t);
|
|
1195
1189
|
if (i === 1) {
|
|
1196
1190
|
n.issues.push({
|
|
1197
1191
|
code: "invalid_format",
|
|
@@ -1214,10 +1208,10 @@ var On = /*@__PURE__*/ O("$ZodURL", (e, t) => {
|
|
|
1214
1208
|
return;
|
|
1215
1209
|
}
|
|
1216
1210
|
if (i === !0) {
|
|
1217
|
-
n.value =
|
|
1211
|
+
n.value = En(r);
|
|
1218
1212
|
return;
|
|
1219
1213
|
}
|
|
1220
|
-
t.hostname && !
|
|
1214
|
+
t.hostname && !Dn(i, t.hostname) && n.issues.push({
|
|
1221
1215
|
code: "invalid_format",
|
|
1222
1216
|
format: "url",
|
|
1223
1217
|
note: "Invalid hostname",
|
|
@@ -1225,7 +1219,7 @@ var On = /*@__PURE__*/ O("$ZodURL", (e, t) => {
|
|
|
1225
1219
|
input: n.value,
|
|
1226
1220
|
inst: e,
|
|
1227
1221
|
continue: !t.abort
|
|
1228
|
-
}), t.protocol && !
|
|
1222
|
+
}), t.protocol && !On(i, t.protocol) && n.issues.push({
|
|
1229
1223
|
code: "invalid_format",
|
|
1230
1224
|
format: "url",
|
|
1231
1225
|
note: "Invalid protocol",
|
|
@@ -1233,7 +1227,7 @@ var On = /*@__PURE__*/ O("$ZodURL", (e, t) => {
|
|
|
1233
1227
|
input: n.value,
|
|
1234
1228
|
inst: e,
|
|
1235
1229
|
continue: !t.abort
|
|
1236
|
-
}), n.value = t.normalize ? i.href :
|
|
1230
|
+
}), n.value = t.normalize ? i.href : En(r);
|
|
1237
1231
|
return;
|
|
1238
1232
|
} catch {
|
|
1239
1233
|
n.issues.push({
|
|
@@ -1245,38 +1239,38 @@ var On = /*@__PURE__*/ O("$ZodURL", (e, t) => {
|
|
|
1245
1239
|
});
|
|
1246
1240
|
}
|
|
1247
1241
|
};
|
|
1248
|
-
}),
|
|
1249
|
-
t.pattern ??=
|
|
1250
|
-
}),
|
|
1242
|
+
}), An = /*@__PURE__*/ D("$ZodEmoji", (e, t) => {
|
|
1243
|
+
t.pattern ??= kt(), N.init(e, t);
|
|
1244
|
+
}), jn = /*@__PURE__*/ D("$ZodNanoID", (e, t) => {
|
|
1251
1245
|
if (t.length !== void 0 && (!Number.isInteger(t.length) || t.length < 1)) throw Error(`Invalid nanoid length: ${t.length}`);
|
|
1252
|
-
t.pattern ??= t.length === void 0 ?
|
|
1253
|
-
}),
|
|
1254
|
-
t.pattern ??=
|
|
1255
|
-
}),
|
|
1256
|
-
t.pattern ??=
|
|
1257
|
-
}),
|
|
1258
|
-
t.pattern ??=
|
|
1259
|
-
}),
|
|
1260
|
-
t.pattern ??=
|
|
1261
|
-
}),
|
|
1262
|
-
t.pattern ??=
|
|
1263
|
-
}),
|
|
1264
|
-
t.pattern ??=
|
|
1265
|
-
}),
|
|
1266
|
-
t.pattern ??=
|
|
1267
|
-
}),
|
|
1268
|
-
t.pattern ??=
|
|
1269
|
-
}),
|
|
1270
|
-
t.pattern ??=
|
|
1271
|
-
}),
|
|
1272
|
-
t.pattern ??=
|
|
1273
|
-
}),
|
|
1274
|
-
function
|
|
1275
|
-
return
|
|
1276
|
-
}
|
|
1277
|
-
var
|
|
1278
|
-
t.pattern ??=
|
|
1279
|
-
|
|
1246
|
+
t.pattern ??= t.length === void 0 ? St : Ct(t.length), N.init(e, t);
|
|
1247
|
+
}), Mn = /*@__PURE__*/ D("$ZodCUID", (e, t) => {
|
|
1248
|
+
t.pattern ??= _t, N.init(e, t);
|
|
1249
|
+
}), Nn = /*@__PURE__*/ D("$ZodCUID2", (e, t) => {
|
|
1250
|
+
t.pattern ??= vt, N.init(e, t);
|
|
1251
|
+
}), Pn = /*@__PURE__*/ D("$ZodULID", (e, t) => {
|
|
1252
|
+
t.pattern ??= yt, N.init(e, t);
|
|
1253
|
+
}), Fn = /*@__PURE__*/ D("$ZodXID", (e, t) => {
|
|
1254
|
+
t.pattern ??= bt, N.init(e, t);
|
|
1255
|
+
}), In = /*@__PURE__*/ D("$ZodKSUID", (e, t) => {
|
|
1256
|
+
t.pattern ??= xt, N.init(e, t);
|
|
1257
|
+
}), Ln = /*@__PURE__*/ D("$ZodISODateTime", (e, t) => {
|
|
1258
|
+
t.pattern ??= Ut(t), N.init(e, t);
|
|
1259
|
+
}), Rn = /*@__PURE__*/ D("$ZodISODate", (e, t) => {
|
|
1260
|
+
t.pattern ??= Bt, N.init(e, t);
|
|
1261
|
+
}), zn = /*@__PURE__*/ D("$ZodISOTime", (e, t) => {
|
|
1262
|
+
t.pattern ??= Ht(t), N.init(e, t);
|
|
1263
|
+
}), Bn = /*@__PURE__*/ D("$ZodISODuration", (e, t) => {
|
|
1264
|
+
t.pattern ??= wt, N.init(e, t);
|
|
1265
|
+
}), Vn = /*@__PURE__*/ D("$ZodIPv4", (e, t) => {
|
|
1266
|
+
t.pattern ??= At, N.init(e, t);
|
|
1267
|
+
}), Hn = /^[0-9a-fA-F:.]+$/;
|
|
1268
|
+
function Un(e) {
|
|
1269
|
+
return Hn.test(e) ? Sn(`http://[${e}]`) : !1;
|
|
1270
|
+
}
|
|
1271
|
+
var Wn = /*@__PURE__*/ D("$ZodIPv6", (e, t) => {
|
|
1272
|
+
t.pattern ??= jt, N.init(e, t), e._zod.check = (n) => {
|
|
1273
|
+
Un(n.value) || n.issues.push({
|
|
1280
1274
|
code: "invalid_format",
|
|
1281
1275
|
format: "ipv6",
|
|
1282
1276
|
input: n.value,
|
|
@@ -1284,20 +1278,20 @@ var Un = /*@__PURE__*/ O("$ZodIPv6", (e, t) => {
|
|
|
1284
1278
|
continue: !t.abort
|
|
1285
1279
|
});
|
|
1286
1280
|
};
|
|
1287
|
-
}),
|
|
1288
|
-
t.pattern ??=
|
|
1281
|
+
}), Gn = /*@__PURE__*/ D("$ZodCIDRv4", (e, t) => {
|
|
1282
|
+
t.pattern ??= Mt, N.init(e, t);
|
|
1289
1283
|
});
|
|
1290
|
-
function
|
|
1284
|
+
function Kn(e) {
|
|
1291
1285
|
let t = e.split("/");
|
|
1292
1286
|
if (t.length !== 2) return !1;
|
|
1293
1287
|
let [n, r] = t;
|
|
1294
1288
|
if (!r) return !1;
|
|
1295
1289
|
let i = Number(r);
|
|
1296
|
-
return `${i}` !== r || i < 0 || i > 128 ? !1 :
|
|
1290
|
+
return `${i}` !== r || i < 0 || i > 128 ? !1 : Un(n);
|
|
1297
1291
|
}
|
|
1298
|
-
var
|
|
1299
|
-
t.pattern ??=
|
|
1300
|
-
|
|
1292
|
+
var qn = /*@__PURE__*/ D("$ZodCIDRv6", (e, t) => {
|
|
1293
|
+
t.pattern ??= Nt, N.init(e, t), e._zod.check = (n) => {
|
|
1294
|
+
Kn(n.value) || n.issues.push({
|
|
1301
1295
|
code: "invalid_format",
|
|
1302
1296
|
format: "cidrv6",
|
|
1303
1297
|
input: n.value,
|
|
@@ -1306,7 +1300,7 @@ var Kn = /*@__PURE__*/ O("$ZodCIDRv6", (e, t) => {
|
|
|
1306
1300
|
});
|
|
1307
1301
|
};
|
|
1308
1302
|
});
|
|
1309
|
-
function
|
|
1303
|
+
function Jn(e) {
|
|
1310
1304
|
if (e === "") return !0;
|
|
1311
1305
|
if (/\s/.test(e) || e.length % 4 != 0) return !1;
|
|
1312
1306
|
try {
|
|
@@ -1315,9 +1309,9 @@ function qn(e) {
|
|
|
1315
1309
|
return !1;
|
|
1316
1310
|
}
|
|
1317
1311
|
}
|
|
1318
|
-
var
|
|
1319
|
-
t.pattern ??=
|
|
1320
|
-
|
|
1312
|
+
var Yn = /^[0-9a-zA-Z+/]*={0,2}$/, Xn = /*@__PURE__*/ D("$ZodBase64", (e, t) => {
|
|
1313
|
+
t.pattern ??= Yn, N.init(e, t), e._zod.check = (n) => {
|
|
1314
|
+
Jn(n.value) || n.issues.push({
|
|
1321
1315
|
code: "invalid_format",
|
|
1322
1316
|
format: "base64",
|
|
1323
1317
|
input: n.value,
|
|
@@ -1325,15 +1319,15 @@ var Jn = /^[0-9a-zA-Z+/]*={0,2}$/, Yn = /*@__PURE__*/ O("$ZodBase64", (e, t) =>
|
|
|
1325
1319
|
continue: !t.abort
|
|
1326
1320
|
});
|
|
1327
1321
|
};
|
|
1328
|
-
}),
|
|
1329
|
-
function
|
|
1330
|
-
if (!
|
|
1322
|
+
}), Zn = /^[A-Za-z0-9_-]*$/;
|
|
1323
|
+
function Qn(e) {
|
|
1324
|
+
if (!Zn.test(e)) return !1;
|
|
1331
1325
|
let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
|
|
1332
|
-
return
|
|
1326
|
+
return Jn(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
|
|
1333
1327
|
}
|
|
1334
|
-
var
|
|
1335
|
-
t.pattern ??=
|
|
1336
|
-
|
|
1328
|
+
var $n = /*@__PURE__*/ D("$ZodBase64URL", (e, t) => {
|
|
1329
|
+
t.pattern ??= Zn, N.init(e, t), e._zod.check = (n) => {
|
|
1330
|
+
Qn(n.value) || n.issues.push({
|
|
1337
1331
|
code: "invalid_format",
|
|
1338
1332
|
format: "base64url",
|
|
1339
1333
|
input: n.value,
|
|
@@ -1341,10 +1335,10 @@ var Qn = /*@__PURE__*/ O("$ZodBase64URL", (e, t) => {
|
|
|
1341
1335
|
continue: !t.abort
|
|
1342
1336
|
});
|
|
1343
1337
|
};
|
|
1344
|
-
}),
|
|
1345
|
-
t.pattern ??=
|
|
1338
|
+
}), er = /*@__PURE__*/ D("$ZodE164", (e, t) => {
|
|
1339
|
+
t.pattern ??= Lt, N.init(e, t);
|
|
1346
1340
|
});
|
|
1347
|
-
function
|
|
1341
|
+
function tr(e, t = null) {
|
|
1348
1342
|
try {
|
|
1349
1343
|
let n = e.split(".");
|
|
1350
1344
|
if (n.length !== 3) return !1;
|
|
@@ -1356,9 +1350,9 @@ function er(e, t = null) {
|
|
|
1356
1350
|
return !1;
|
|
1357
1351
|
}
|
|
1358
1352
|
}
|
|
1359
|
-
var
|
|
1360
|
-
|
|
1361
|
-
|
|
1353
|
+
var nr = /*@__PURE__*/ D("$ZodJWT", (e, t) => {
|
|
1354
|
+
N.init(e, t), e._zod.check = (n) => {
|
|
1355
|
+
tr(n.value, t.alg) || n.issues.push({
|
|
1362
1356
|
code: "invalid_format",
|
|
1363
1357
|
format: "jwt",
|
|
1364
1358
|
input: n.value,
|
|
@@ -1366,8 +1360,8 @@ var tr = /*@__PURE__*/ O("$ZodJWT", (e, t) => {
|
|
|
1366
1360
|
continue: !t.abort
|
|
1367
1361
|
});
|
|
1368
1362
|
};
|
|
1369
|
-
}),
|
|
1370
|
-
|
|
1363
|
+
}), rr = /*@__PURE__*/ D("$ZodNumber", (e, t) => {
|
|
1364
|
+
M.init(e, t), e._zod.pattern = Gt, e._zod.parse = (n, r) => {
|
|
1371
1365
|
if (t.coerce) try {
|
|
1372
1366
|
n.value = Number(n.value);
|
|
1373
1367
|
} catch {}
|
|
@@ -1382,10 +1376,10 @@ var tr = /*@__PURE__*/ O("$ZodJWT", (e, t) => {
|
|
|
1382
1376
|
...a ? { received: a } : {}
|
|
1383
1377
|
}), n;
|
|
1384
1378
|
};
|
|
1385
|
-
}),
|
|
1386
|
-
|
|
1387
|
-
}),
|
|
1388
|
-
|
|
1379
|
+
}), ir = /*@__PURE__*/ D("$ZodNumberFormat", (e, t) => {
|
|
1380
|
+
en.init(e, t), rr.init(e, t);
|
|
1381
|
+
}), ar = /*@__PURE__*/ D("$ZodBoolean", (e, t) => {
|
|
1382
|
+
M.init(e, t), e._zod.pattern = Kt, e._zod.parse = (n, r) => {
|
|
1389
1383
|
if (t.coerce) try {
|
|
1390
1384
|
n.value = !!n.value;
|
|
1391
1385
|
} catch {}
|
|
@@ -1397,38 +1391,38 @@ var tr = /*@__PURE__*/ O("$ZodJWT", (e, t) => {
|
|
|
1397
1391
|
inst: e
|
|
1398
1392
|
}), n;
|
|
1399
1393
|
};
|
|
1400
|
-
}),
|
|
1401
|
-
|
|
1402
|
-
}),
|
|
1403
|
-
|
|
1394
|
+
}), or = /*@__PURE__*/ D("$ZodUnknown", (e, t) => {
|
|
1395
|
+
M.init(e, t), e._zod.parse = (e) => e;
|
|
1396
|
+
}), sr = /*@__PURE__*/ D("$ZodNever", (e, t) => {
|
|
1397
|
+
M.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
1404
1398
|
expected: "never",
|
|
1405
1399
|
code: "invalid_type",
|
|
1406
1400
|
input: t.value,
|
|
1407
1401
|
inst: e
|
|
1408
1402
|
}), t);
|
|
1409
1403
|
});
|
|
1410
|
-
function
|
|
1411
|
-
let n =
|
|
1404
|
+
function cr(e, t) {
|
|
1405
|
+
let n = Se(e._zod.def.checks);
|
|
1412
1406
|
if (!n.length) return;
|
|
1413
1407
|
let r = Math.min(...n.map((e) => e[0])), i = e._zod.parse;
|
|
1414
1408
|
e._zod.parse = (n, a) => {
|
|
1415
1409
|
let o = t(n.value);
|
|
1416
1410
|
if (o > r && !a?.skipChecks && a?.direction !== "backward") {
|
|
1417
|
-
for (let [t, r] of
|
|
1411
|
+
for (let [t, r] of Se(e._zod.def.checks)) if (o > t && r._zod.def.when(n)) {
|
|
1418
1412
|
let t = n.issues.length;
|
|
1419
|
-
return r._zod.check(n), n.issues[t].continue = !1,
|
|
1413
|
+
return r._zod.check(n), n.issues[t].continue = !1, Ce(n.issues, t, e), n;
|
|
1420
1414
|
}
|
|
1421
1415
|
}
|
|
1422
1416
|
return i(n, a);
|
|
1423
1417
|
};
|
|
1424
1418
|
}
|
|
1425
|
-
var
|
|
1426
|
-
function
|
|
1427
|
-
e.issues.length && t.issues.push(...
|
|
1419
|
+
var lr = (e) => Array.isArray(e) ? e.length : -1;
|
|
1420
|
+
function ur(e, t, n) {
|
|
1421
|
+
e.issues.length && t.issues.push(...xe(n, e.issues)), t.value[n] = e.value;
|
|
1428
1422
|
}
|
|
1429
|
-
var
|
|
1430
|
-
|
|
1431
|
-
let n =
|
|
1423
|
+
var dr = /*@__PURE__*/ D("$ZodArray", (e, t) => {
|
|
1424
|
+
M.init(e, t);
|
|
1425
|
+
let n = k.memoizer;
|
|
1432
1426
|
n?.attach(e), e._zod.parse = (r, i) => {
|
|
1433
1427
|
let a = r.value;
|
|
1434
1428
|
if (!Array.isArray(a)) return r.issues.push({
|
|
@@ -1444,36 +1438,32 @@ var ur = /*@__PURE__*/ O("$ZodArray", (e, t) => {
|
|
|
1444
1438
|
value: n,
|
|
1445
1439
|
issues: []
|
|
1446
1440
|
}, i);
|
|
1447
|
-
if (c instanceof Promise) o.push(c.then((t) =>
|
|
1448
|
-
else if (
|
|
1441
|
+
if (c instanceof Promise) o.push(c.then((t) => ur(t, r, e)));
|
|
1442
|
+
else if (ur(c, r, e), s && c.issues.length !== 0 && b(c)) break;
|
|
1449
1443
|
}
|
|
1450
1444
|
return o.length ? Promise.all(o).then(() => r) : r;
|
|
1451
|
-
},
|
|
1445
|
+
}, cr(e, lr);
|
|
1452
1446
|
});
|
|
1453
|
-
function
|
|
1447
|
+
function P(e, t, n, r, i, a) {
|
|
1454
1448
|
let o = n in r, s = a === "optional";
|
|
1455
|
-
if (
|
|
1449
|
+
if (o || !s || i !== "optional") {
|
|
1456
1450
|
if (e.issues.length) {
|
|
1457
1451
|
if (i !== void 0 && s && !o) return;
|
|
1458
|
-
t.issues.push(...
|
|
1452
|
+
t.issues.push(...xe(n, e.issues));
|
|
1459
1453
|
}
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
});
|
|
1467
|
-
return;
|
|
1468
|
-
}
|
|
1469
|
-
e.value === void 0 ? (o || i === "defaulted" && !s) && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1454
|
+
!o && i === void 0 ? e.issues.length || t.issues.push({
|
|
1455
|
+
code: "invalid_type",
|
|
1456
|
+
expected: "nonoptional",
|
|
1457
|
+
input: void 0,
|
|
1458
|
+
path: [n]
|
|
1459
|
+
}) : e.value === void 0 ? (o || i === "defaulted" && !s) && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1470
1460
|
}
|
|
1471
1461
|
}
|
|
1472
|
-
var
|
|
1473
|
-
function
|
|
1474
|
-
let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n :
|
|
1462
|
+
var fr = [];
|
|
1463
|
+
function pr(e) {
|
|
1464
|
+
let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n : fr, i = r.length ? [...t, ...r] : t;
|
|
1475
1465
|
for (let t of i) if (!e.shape?.[t]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);
|
|
1476
|
-
let a =
|
|
1466
|
+
let a = le(e.shape);
|
|
1477
1467
|
return {
|
|
1478
1468
|
...e,
|
|
1479
1469
|
allKeys: i,
|
|
@@ -1483,11 +1473,11 @@ function fr(e) {
|
|
|
1483
1473
|
optionalKeys: new Set(a)
|
|
1484
1474
|
};
|
|
1485
1475
|
}
|
|
1486
|
-
function
|
|
1476
|
+
function mr(e, t, n, r, i, a, o) {
|
|
1487
1477
|
let s = [], c = i.keySet, l = i.catchall._zod, u = l.def.type, d = l.optin, f = l.optout, p = 0;
|
|
1488
1478
|
for (let i in t) {
|
|
1489
1479
|
if (o && n.issues.length !== p) {
|
|
1490
|
-
if (
|
|
1480
|
+
if (b(n, p)) break;
|
|
1491
1481
|
p = n.issues.length;
|
|
1492
1482
|
}
|
|
1493
1483
|
if (c.has(i)) continue;
|
|
@@ -1503,7 +1493,7 @@ function pr(e, t, n, r, i, a, o) {
|
|
|
1503
1493
|
value: t[i],
|
|
1504
1494
|
issues: []
|
|
1505
1495
|
}, r);
|
|
1506
|
-
a instanceof Promise ? e.push(a.then((e) =>
|
|
1496
|
+
a instanceof Promise ? e.push(a.then((e) => P(e, n, i, t, d, f))) : P(a, n, i, t, d, f);
|
|
1507
1497
|
}
|
|
1508
1498
|
return s.length && n.issues.push({
|
|
1509
1499
|
code: "unrecognized_keys",
|
|
@@ -1513,8 +1503,8 @@ function pr(e, t, n, r, i, a, o) {
|
|
|
1513
1503
|
continue: !0
|
|
1514
1504
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1515
1505
|
}
|
|
1516
|
-
var
|
|
1517
|
-
|
|
1506
|
+
var hr = /*@__PURE__*/ D("$ZodObject", (e, t) => {
|
|
1507
|
+
M.init(e, t);
|
|
1518
1508
|
let n = Object.getOwnPropertyDescriptor(t, "shape"), r = n?.get ? n.get.raw : t.shape ?? {};
|
|
1519
1509
|
if (r) {
|
|
1520
1510
|
let e = () => {
|
|
@@ -1523,8 +1513,8 @@ var mr = /*@__PURE__*/ O("$ZodObject", (e, t) => {
|
|
|
1523
1513
|
};
|
|
1524
1514
|
e.raw = r, Object.defineProperty(t, "shape", { get: e });
|
|
1525
1515
|
}
|
|
1526
|
-
let a = i(() =>
|
|
1527
|
-
|
|
1516
|
+
let a = i(() => pr(t));
|
|
1517
|
+
E(e, "propValues", (e) => {
|
|
1528
1518
|
let t = e.def.shape, n = {};
|
|
1529
1519
|
for (let e in t) {
|
|
1530
1520
|
let r = t[e]._zod;
|
|
@@ -1536,7 +1526,7 @@ var mr = /*@__PURE__*/ O("$ZodObject", (e, t) => {
|
|
|
1536
1526
|
}
|
|
1537
1527
|
return n;
|
|
1538
1528
|
});
|
|
1539
|
-
let o =
|
|
1529
|
+
let o = re, s = t.catchall, l, u = k.memoizer;
|
|
1540
1530
|
u?.attach(e), e._zod.parse = (t, n) => {
|
|
1541
1531
|
l ??= a.value;
|
|
1542
1532
|
let r = t.value;
|
|
@@ -1550,7 +1540,7 @@ var mr = /*@__PURE__*/ O("$ZodObject", (e, t) => {
|
|
|
1550
1540
|
let i = [], c = l.shape, d = n?.abortEarly, f = t.issues.length;
|
|
1551
1541
|
for (let e of l.allKeys) {
|
|
1552
1542
|
if (d && t.issues.length !== f) {
|
|
1553
|
-
if (
|
|
1543
|
+
if (b(t, f)) break;
|
|
1554
1544
|
f = t.issues.length;
|
|
1555
1545
|
}
|
|
1556
1546
|
if (e === "__proto__") continue;
|
|
@@ -1558,14 +1548,14 @@ var mr = /*@__PURE__*/ O("$ZodObject", (e, t) => {
|
|
|
1558
1548
|
value: r[e],
|
|
1559
1549
|
issues: []
|
|
1560
1550
|
}, n);
|
|
1561
|
-
l instanceof Promise ? i.push(l.then((n) =>
|
|
1551
|
+
l instanceof Promise ? i.push(l.then((n) => P(n, t, e, r, o, s))) : P(l, t, e, r, o, s);
|
|
1562
1552
|
}
|
|
1563
|
-
return s ?
|
|
1553
|
+
return s ? mr(i, r, t, n, a.value, e, d === !0) : i.length ? Promise.all(i).then(() => t) : t;
|
|
1564
1554
|
};
|
|
1565
|
-
}),
|
|
1566
|
-
|
|
1567
|
-
let n = e._zod.parse, r = i(() =>
|
|
1568
|
-
let n = r.value, i = n.symbolKeys, o = new
|
|
1555
|
+
}), gr = /*@__PURE__*/ D("$ZodObjectJIT", (e, t) => {
|
|
1556
|
+
hr.init(e, t);
|
|
1557
|
+
let n = e._zod.parse, r = i(() => pr(t)), a = k.memoizer, o = (t) => {
|
|
1558
|
+
let n = r.value, i = n.symbolKeys, o = new pn(["payload", "ctx"], {
|
|
1569
1559
|
shape: t,
|
|
1570
1560
|
inst: e,
|
|
1571
1561
|
memo: a,
|
|
@@ -1634,11 +1624,11 @@ var mr = /*@__PURE__*/ O("$ZodObject", (e, t) => {
|
|
|
1634
1624
|
`);
|
|
1635
1625
|
}
|
|
1636
1626
|
return o.write("payload.value = newResult;"), o.write("return payload;"), o.compile();
|
|
1637
|
-
}, s, c =
|
|
1627
|
+
}, s, c = re, l = !k.jitless, u = l && ie.value, d = t.catchall, f;
|
|
1638
1628
|
e._zod.parse = (i, a) => {
|
|
1639
1629
|
f ??= r.value;
|
|
1640
1630
|
let p = i.value;
|
|
1641
|
-
return c(p) ? l && u && a?.async === !1 && a.jitless !== !0 ? (s ||= o(t.shape), i = s(i, a), d ?
|
|
1631
|
+
return c(p) ? l && u && a?.async === !1 && a.jitless !== !0 ? (s ||= o(t.shape), i = s(i, a), d ? mr([], p, i, a, f, e, a?.abortEarly === !0) : i) : n(i, a) : (i.issues.push({
|
|
1642
1632
|
expected: "object",
|
|
1643
1633
|
code: "invalid_type",
|
|
1644
1634
|
input: p,
|
|
@@ -1646,20 +1636,20 @@ var mr = /*@__PURE__*/ O("$ZodObject", (e, t) => {
|
|
|
1646
1636
|
}), i);
|
|
1647
1637
|
};
|
|
1648
1638
|
});
|
|
1649
|
-
function
|
|
1639
|
+
function _r(e, t, n, r) {
|
|
1650
1640
|
for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
|
|
1651
|
-
let i = e.filter((e) => !
|
|
1641
|
+
let i = e.filter((e) => !b(e));
|
|
1652
1642
|
return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
|
|
1653
1643
|
code: "invalid_union",
|
|
1654
1644
|
input: t.value,
|
|
1655
1645
|
inst: n,
|
|
1656
|
-
errors: e.map((e) => e.issues.map((e) =>
|
|
1646
|
+
errors: e.map((e) => e.issues.map((e) => S(e, r, A())))
|
|
1657
1647
|
}), t);
|
|
1658
1648
|
}
|
|
1659
|
-
var
|
|
1660
|
-
|
|
1649
|
+
var vr = /*@__PURE__*/ D("$ZodUnion", (e, t) => {
|
|
1650
|
+
M.init(e, t), E(e, "optin", (e) => e.def.options.some((e) => e._zod.optin === "defaulted") ? "defaulted" : e.def.options.some((e) => e._zod.optin !== void 0) ? "optional" : void 0), E(e, "optout", (e) => e.def.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), E(e, "values", (e) => {
|
|
1661
1651
|
if (e.def.options.every((e) => e._zod.values)) return new Set(e.def.options.flatMap((e) => Array.from(e._zod.values)));
|
|
1662
|
-
}),
|
|
1652
|
+
}), E(e, "pattern", (e) => {
|
|
1663
1653
|
if (e.def.options.every((e) => e._zod.pattern)) {
|
|
1664
1654
|
let t = e.def.options.map((e) => e._zod.pattern);
|
|
1665
1655
|
return RegExp(`^(${t.map((e) => o(e.source)).join("|")})$`);
|
|
@@ -1680,10 +1670,10 @@ var _r = /*@__PURE__*/ O("$ZodUnion", (e, t) => {
|
|
|
1680
1670
|
o.push(t);
|
|
1681
1671
|
}
|
|
1682
1672
|
}
|
|
1683
|
-
return a ? Promise.all(o).then((t) =>
|
|
1673
|
+
return a ? Promise.all(o).then((t) => _r(t, r, e, i)) : _r(o, r, e, i);
|
|
1684
1674
|
};
|
|
1685
|
-
}),
|
|
1686
|
-
|
|
1675
|
+
}), yr = /*@__PURE__*/ D("$ZodIntersection", (e, t) => {
|
|
1676
|
+
M.init(e, t), e._zod.parse = (e, n) => {
|
|
1687
1677
|
let r = e.value, i = t.left._zod.run({
|
|
1688
1678
|
value: r,
|
|
1689
1679
|
issues: []
|
|
@@ -1691,15 +1681,15 @@ var _r = /*@__PURE__*/ O("$ZodUnion", (e, t) => {
|
|
|
1691
1681
|
value: r,
|
|
1692
1682
|
issues: []
|
|
1693
1683
|
}, n);
|
|
1694
|
-
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) =>
|
|
1684
|
+
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => xr(e, t, n)) : xr(e, i, a);
|
|
1695
1685
|
};
|
|
1696
1686
|
});
|
|
1697
|
-
function
|
|
1687
|
+
function br(e, t) {
|
|
1698
1688
|
if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
|
|
1699
1689
|
valid: !0,
|
|
1700
1690
|
data: e
|
|
1701
1691
|
};
|
|
1702
|
-
if (
|
|
1692
|
+
if (g(e) && g(t)) {
|
|
1703
1693
|
let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
|
|
1704
1694
|
...e,
|
|
1705
1695
|
...t
|
|
@@ -1707,7 +1697,7 @@ function yr(e, t) {
|
|
|
1707
1697
|
Object.prototype.hasOwnProperty.call(i, "__proto__") && delete i.__proto__;
|
|
1708
1698
|
for (let n of r) {
|
|
1709
1699
|
if (n === "__proto__") continue;
|
|
1710
|
-
let r =
|
|
1700
|
+
let r = br(e[n], t[n]);
|
|
1711
1701
|
if (!r.valid) return {
|
|
1712
1702
|
valid: !1,
|
|
1713
1703
|
mergeErrorPath: [n, ...r.mergeErrorPath]
|
|
@@ -1726,7 +1716,7 @@ function yr(e, t) {
|
|
|
1726
1716
|
};
|
|
1727
1717
|
let n = [];
|
|
1728
1718
|
for (let r = 0; r < e.length; r++) {
|
|
1729
|
-
let i = e[r], a = t[r], o =
|
|
1719
|
+
let i = e[r], a = t[r], o = br(i, a);
|
|
1730
1720
|
if (!o.valid) return {
|
|
1731
1721
|
valid: !1,
|
|
1732
1722
|
mergeErrorPath: [r, ...o.mergeErrorPath]
|
|
@@ -1743,7 +1733,7 @@ function yr(e, t) {
|
|
|
1743
1733
|
mergeErrorPath: []
|
|
1744
1734
|
};
|
|
1745
1735
|
}
|
|
1746
|
-
function
|
|
1736
|
+
function xr(e, t, n) {
|
|
1747
1737
|
let r = /* @__PURE__ */ new Map(), i, a = /* @__PURE__ */ new Map(), o = (e, t) => {
|
|
1748
1738
|
let n;
|
|
1749
1739
|
if (e.code === "unrecognized_keys" && !e.path?.length) i ??= e, n = e.keys;
|
|
@@ -1765,19 +1755,19 @@ function br(e, t, n) {
|
|
|
1765
1755
|
});
|
|
1766
1756
|
for (let n of s) !t.includes(n) && a.has(n) && e.issues.push(a.get(n));
|
|
1767
1757
|
}
|
|
1768
|
-
let c =
|
|
1758
|
+
let c = br(t.value, n.value);
|
|
1769
1759
|
if (!c.valid) {
|
|
1770
|
-
if (
|
|
1760
|
+
if (b(e)) return e;
|
|
1771
1761
|
throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);
|
|
1772
1762
|
}
|
|
1773
1763
|
return e.value = c.data, e;
|
|
1774
1764
|
}
|
|
1775
|
-
var
|
|
1776
|
-
|
|
1765
|
+
var Sr = /*@__PURE__*/ D("$ZodEnum", (t, n) => {
|
|
1766
|
+
M.init(t, n);
|
|
1777
1767
|
let r = e(n.entries), i = new Set(r);
|
|
1778
|
-
t._zod.values = i,
|
|
1779
|
-
let n = e(t.def.entries).filter((e) =>
|
|
1780
|
-
return RegExp(n.length ? `^(${n.map((e) =>
|
|
1768
|
+
t._zod.values = i, E(t, "pattern", (t) => {
|
|
1769
|
+
let n = e(t.def.entries).filter((e) => oe.has(typeof e));
|
|
1770
|
+
return RegExp(n.length ? `^(${n.map((e) => se(e.toString())).join("|")})$` : "^[^\\s\\S]$");
|
|
1781
1771
|
}), t._zod.parse = (e, n) => {
|
|
1782
1772
|
let a = e.value;
|
|
1783
1773
|
return i.has(a) || e.issues.push({
|
|
@@ -1787,23 +1777,23 @@ var xr = /*@__PURE__*/ O("$ZodEnum", (t, n) => {
|
|
|
1787
1777
|
inst: t
|
|
1788
1778
|
}), e;
|
|
1789
1779
|
};
|
|
1790
|
-
}),
|
|
1791
|
-
|
|
1792
|
-
if (r.direction === "backward") throw new
|
|
1780
|
+
}), Cr = /*@__PURE__*/ D("$ZodTransform", (e, t) => {
|
|
1781
|
+
M.init(e, t), e._zod.optin = "optional", k.memoizer?.guard(e), e._zod.parse = (n, r) => {
|
|
1782
|
+
if (r.direction === "backward") throw new He(e.constructor.name);
|
|
1793
1783
|
let i = t.transform(n.value, n);
|
|
1794
1784
|
if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
|
|
1795
|
-
if (i instanceof Promise) throw new
|
|
1785
|
+
if (i instanceof Promise) throw new O();
|
|
1796
1786
|
return n.value = i, n;
|
|
1797
1787
|
};
|
|
1798
1788
|
});
|
|
1799
|
-
function
|
|
1789
|
+
function wr(e, t) {
|
|
1800
1790
|
return e.value = t.issues.length ? void 0 : t.value, e;
|
|
1801
1791
|
}
|
|
1802
|
-
var
|
|
1803
|
-
|
|
1792
|
+
var Tr = /*@__PURE__*/ D("$ZodOptional", (e, t) => {
|
|
1793
|
+
M.init(e, t), E(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", E(e, "values", (e) => {
|
|
1804
1794
|
let t = e.def.innerType._zod.values;
|
|
1805
1795
|
return t ? /* @__PURE__ */ new Set([...t, void 0]) : void 0;
|
|
1806
|
-
}),
|
|
1796
|
+
}), E(e, "pattern", (e) => {
|
|
1807
1797
|
let t = e.def.innerType._zod.pattern;
|
|
1808
1798
|
return t ? RegExp(`^(${o(t.source)})?$`) : void 0;
|
|
1809
1799
|
}), e._zod.parse = (e, n) => {
|
|
@@ -1813,40 +1803,40 @@ var wr = /*@__PURE__*/ O("$ZodOptional", (e, t) => {
|
|
|
1813
1803
|
value: e.value,
|
|
1814
1804
|
issues: []
|
|
1815
1805
|
}, n);
|
|
1816
|
-
return r instanceof Promise ? r.then((t) =>
|
|
1806
|
+
return r instanceof Promise ? r.then((t) => wr(e, t)) : wr(e, r);
|
|
1817
1807
|
}
|
|
1818
1808
|
return t.innerType._zod.run(e, n);
|
|
1819
1809
|
};
|
|
1820
|
-
}),
|
|
1821
|
-
|
|
1822
|
-
}),
|
|
1823
|
-
|
|
1810
|
+
}), Er = /*@__PURE__*/ D("$ZodExactOptional", (e, t) => {
|
|
1811
|
+
Tr.init(e, t), E(e, "values", (e) => e.def.innerType._zod.values), E(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
|
|
1812
|
+
}), Dr = /*@__PURE__*/ D("$ZodNullable", (e, t) => {
|
|
1813
|
+
M.init(e, t), E(e, "optin", (e) => e.def.innerType._zod.optin), E(e, "optout", (e) => e.def.innerType._zod.optout), E(e, "pattern", (e) => {
|
|
1824
1814
|
let t = e.def.innerType._zod.pattern;
|
|
1825
1815
|
return t ? RegExp(`^(${o(t.source)}|null)$`) : void 0;
|
|
1826
|
-
}),
|
|
1827
|
-
}),
|
|
1828
|
-
|
|
1816
|
+
}), E(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
|
|
1817
|
+
}), Or = /*@__PURE__*/ D("$ZodDefault", (e, t) => {
|
|
1818
|
+
M.init(e, t), e._zod.optin = "defaulted", E(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1829
1819
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1830
1820
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
1831
1821
|
let r = t.innerType._zod.run(e, n);
|
|
1832
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1822
|
+
return r instanceof Promise ? r.then((e) => kr(e, t)) : kr(r, t);
|
|
1833
1823
|
};
|
|
1834
1824
|
});
|
|
1835
|
-
function
|
|
1825
|
+
function kr(e, t) {
|
|
1836
1826
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1837
1827
|
}
|
|
1838
|
-
var
|
|
1839
|
-
|
|
1840
|
-
}),
|
|
1841
|
-
|
|
1828
|
+
var Ar = /*@__PURE__*/ D("$ZodPrefault", (e, t) => {
|
|
1829
|
+
M.init(e, t), e._zod.optin = "defaulted", E(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
|
|
1830
|
+
}), jr = /*@__PURE__*/ D("$ZodNonOptional", (e, t) => {
|
|
1831
|
+
M.init(e, t), E(e, "values", (e) => {
|
|
1842
1832
|
let t = e.def.innerType._zod.values;
|
|
1843
1833
|
return t ? new Set([...t].filter((e) => e !== void 0)) : void 0;
|
|
1844
1834
|
}), e._zod.parse = (n, r) => {
|
|
1845
1835
|
let i = t.innerType._zod.run(n, r);
|
|
1846
|
-
return i instanceof Promise ? i.then((t) =>
|
|
1836
|
+
return i instanceof Promise ? i.then((t) => Mr(t, e)) : Mr(i, e);
|
|
1847
1837
|
};
|
|
1848
1838
|
});
|
|
1849
|
-
function
|
|
1839
|
+
function Mr(e, t) {
|
|
1850
1840
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1851
1841
|
code: "invalid_type",
|
|
1852
1842
|
expected: "nonoptional",
|
|
@@ -1854,57 +1844,57 @@ function jr(e, t) {
|
|
|
1854
1844
|
inst: t
|
|
1855
1845
|
}), e;
|
|
1856
1846
|
}
|
|
1857
|
-
function
|
|
1847
|
+
function Nr(e, t, n, r) {
|
|
1858
1848
|
return t.issues.length ? (e.value = n.catchValue({
|
|
1859
1849
|
...t,
|
|
1860
1850
|
value: e.value,
|
|
1861
|
-
error: { issues: t.issues.map((e) =>
|
|
1851
|
+
error: { issues: t.issues.map((e) => S(e, r, A())) },
|
|
1862
1852
|
input: e.value
|
|
1863
1853
|
}), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
|
|
1864
1854
|
}
|
|
1865
|
-
var
|
|
1866
|
-
|
|
1855
|
+
var Pr = /*@__PURE__*/ D("$ZodCatch", (e, t) => {
|
|
1856
|
+
M.init(e, t), E(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), E(e, "optout", (e) => e.def.innerType._zod.optout), E(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1867
1857
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1868
1858
|
let r = t.innerType._zod.run({
|
|
1869
1859
|
value: e.value,
|
|
1870
1860
|
issues: []
|
|
1871
1861
|
}, n);
|
|
1872
|
-
return r instanceof Promise ? r.then((r) =>
|
|
1862
|
+
return r instanceof Promise ? r.then((r) => Nr(e, r, t, n)) : Nr(e, r, t, n);
|
|
1873
1863
|
};
|
|
1874
|
-
}),
|
|
1875
|
-
|
|
1864
|
+
}), Fr = /*@__PURE__*/ D("$ZodPipe", (e, t) => {
|
|
1865
|
+
M.init(e, t), E(e, "values", (e) => e.def.in._zod.values), E(e, "optin", (e) => e.def.in._zod.optin), E(e, "optout", (e) => e.def.out._zod.optout), E(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
1876
1866
|
if (n.direction === "backward") {
|
|
1877
1867
|
let r = t.out._zod.run(e, n);
|
|
1878
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1868
|
+
return r instanceof Promise ? r.then((e) => F(e, t.in, n)) : F(r, t.in, n);
|
|
1879
1869
|
}
|
|
1880
1870
|
let r = t.in._zod.run(e, n);
|
|
1881
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1871
|
+
return r instanceof Promise ? r.then((e) => F(e, t.out, n)) : F(r, t.out, n);
|
|
1882
1872
|
};
|
|
1883
1873
|
});
|
|
1884
|
-
function
|
|
1874
|
+
function F(e, t, n) {
|
|
1885
1875
|
return e.issues.some((e) => e.code !== "unrecognized_keys") ? (e.aborted = !0, e) : t._zod.run({
|
|
1886
1876
|
value: e.value,
|
|
1887
1877
|
issues: e.issues
|
|
1888
1878
|
}, n);
|
|
1889
1879
|
}
|
|
1890
|
-
var
|
|
1891
|
-
|
|
1880
|
+
var Ir = /*@__PURE__*/ D("$ZodReadonly", (e, t) => {
|
|
1881
|
+
M.init(e, t), E(e, "propValues", (e) => e.def.innerType._zod.propValues), E(e, "values", (e) => e.def.innerType._zod.values), E(e, "optin", (e) => e.def.innerType?._zod?.optin), E(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
|
|
1892
1882
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1893
1883
|
let r = t.innerType._zod.run(e, n);
|
|
1894
|
-
return r instanceof Promise ? r.then(
|
|
1884
|
+
return r instanceof Promise ? r.then(Lr) : Lr(r);
|
|
1895
1885
|
};
|
|
1896
1886
|
});
|
|
1897
|
-
function
|
|
1887
|
+
function Lr(e) {
|
|
1898
1888
|
return e.memo || (e.value = Object.freeze(e.value)), e;
|
|
1899
1889
|
}
|
|
1900
|
-
var
|
|
1901
|
-
|
|
1890
|
+
var Rr = /*@__PURE__*/ D("$ZodCustom", (e, t) => {
|
|
1891
|
+
j.init(e, t), M.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
1902
1892
|
let r = n.value, i = t.fn(r);
|
|
1903
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
1904
|
-
|
|
1893
|
+
if (i instanceof Promise) return i.then((t) => zr(t, n, r, e));
|
|
1894
|
+
zr(i, n, r, e);
|
|
1905
1895
|
};
|
|
1906
1896
|
});
|
|
1907
|
-
function
|
|
1897
|
+
function zr(e, t, n, r) {
|
|
1908
1898
|
if (!e) {
|
|
1909
1899
|
let e = {
|
|
1910
1900
|
code: "custom",
|
|
@@ -1913,42 +1903,41 @@ function Rr(e, t, n, r) {
|
|
|
1913
1903
|
path: [...r._zod.def.path ?? []],
|
|
1914
1904
|
continue: !r._zod.def.abort
|
|
1915
1905
|
};
|
|
1916
|
-
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(
|
|
1906
|
+
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(C(e));
|
|
1917
1907
|
}
|
|
1918
1908
|
}
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
var zr = class extends Error {
|
|
1909
|
+
// ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/memoizer.js
|
|
1910
|
+
var Br = class extends Error {
|
|
1922
1911
|
constructor() {
|
|
1923
1912
|
super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
|
|
1924
1913
|
}
|
|
1925
|
-
},
|
|
1926
|
-
function
|
|
1914
|
+
}, Vr = "~memo", Hr = [];
|
|
1915
|
+
function Ur(e) {
|
|
1927
1916
|
return typeof e == "object" && !!e;
|
|
1928
1917
|
}
|
|
1929
|
-
function
|
|
1918
|
+
function Wr(e) {
|
|
1930
1919
|
return e.map((e) => e.path ? {
|
|
1931
1920
|
...e,
|
|
1932
1921
|
path: e.path.slice()
|
|
1933
1922
|
} : { ...e });
|
|
1934
1923
|
}
|
|
1935
|
-
var
|
|
1936
|
-
function
|
|
1937
|
-
let r =
|
|
1938
|
-
if (r !== void 0) return r ?
|
|
1939
|
-
if (t.has(e)) return
|
|
1924
|
+
var Gr = /*@__PURE__*/ new WeakMap(), I = 0, L = 1, R = 2;
|
|
1925
|
+
function z(e, t, n) {
|
|
1926
|
+
let r = Gr.get(e);
|
|
1927
|
+
if (r !== void 0) return r ? R : I;
|
|
1928
|
+
if (t.has(e)) return R;
|
|
1940
1929
|
t.add(e);
|
|
1941
|
-
let i =
|
|
1942
|
-
if (i !==
|
|
1943
|
-
let r =
|
|
1930
|
+
let i = I, a = (e) => {
|
|
1931
|
+
if (i !== R && e?._zod) {
|
|
1932
|
+
let r = z(e, t, n);
|
|
1944
1933
|
r > i && (i = r);
|
|
1945
1934
|
}
|
|
1946
1935
|
}, o = (e, r) => {
|
|
1947
|
-
let i =
|
|
1936
|
+
let i = I;
|
|
1948
1937
|
for (let a of Reflect.ownKeys(e)) {
|
|
1949
1938
|
let o = Object.getOwnPropertyDescriptor(e, a);
|
|
1950
1939
|
if (r && !o.enumerable) continue;
|
|
1951
|
-
let s = o.get ?
|
|
1940
|
+
let s = o.get ? L : o.value?._zod ? z(o.value, t, n) : I;
|
|
1952
1941
|
s > i && (i = s);
|
|
1953
1942
|
}
|
|
1954
1943
|
return i;
|
|
@@ -1958,7 +1947,7 @@ function V(e, t, n) {
|
|
|
1958
1947
|
switch (c.type) {
|
|
1959
1948
|
case "object": {
|
|
1960
1949
|
let e = l(c);
|
|
1961
|
-
s(e ? o(e, !0) :
|
|
1950
|
+
s(e ? o(e, !0) : L), a(c.catchall);
|
|
1962
1951
|
break;
|
|
1963
1952
|
}
|
|
1964
1953
|
case "array":
|
|
@@ -2000,7 +1989,7 @@ function V(e, t, n) {
|
|
|
2000
1989
|
break;
|
|
2001
1990
|
case "lazy": {
|
|
2002
1991
|
let r = c._cachedInner ?? (n ? e._zod.innerType : void 0);
|
|
2003
|
-
s(r ?
|
|
1992
|
+
s(r ? z(r, t, !1) : L);
|
|
2004
1993
|
break;
|
|
2005
1994
|
}
|
|
2006
1995
|
case "template_literal":
|
|
@@ -2027,26 +2016,26 @@ function V(e, t, n) {
|
|
|
2027
2016
|
let t = Object.getOwnPropertyDescriptor(c, e);
|
|
2028
2017
|
if (!t || t.get) continue;
|
|
2029
2018
|
let n = t.value;
|
|
2030
|
-
if (
|
|
2019
|
+
if (n && typeof n == "object") {
|
|
2031
2020
|
if (n._zod) a(n);
|
|
2032
2021
|
else if (Array.isArray(n)) for (let e of n) a(e);
|
|
2033
2022
|
}
|
|
2034
2023
|
}
|
|
2035
2024
|
}
|
|
2036
|
-
return t.delete(e),
|
|
2037
|
-
}
|
|
2038
|
-
function Gr(e, t) {
|
|
2039
|
-
return t !== z && Wr.set(e, t === B), t;
|
|
2025
|
+
return t.delete(e), Kr(e, i);
|
|
2040
2026
|
}
|
|
2041
2027
|
function Kr(e, t) {
|
|
2028
|
+
return t !== L && Gr.set(e, t === R), t;
|
|
2029
|
+
}
|
|
2030
|
+
function qr(e, t) {
|
|
2042
2031
|
let n = e.buckets.get(t);
|
|
2043
2032
|
return n || (n = /* @__PURE__ */ new WeakMap(), e.buckets.set(t, n)), n;
|
|
2044
2033
|
}
|
|
2045
|
-
var
|
|
2034
|
+
var B, Jr = [], Yr = {
|
|
2046
2035
|
alloc(e, t, n) {
|
|
2047
|
-
let r =
|
|
2036
|
+
let r = B;
|
|
2048
2037
|
if (!r) return n;
|
|
2049
|
-
|
|
2038
|
+
B = void 0;
|
|
2050
2039
|
let i = {
|
|
2051
2040
|
value: n,
|
|
2052
2041
|
issues: null
|
|
@@ -2057,7 +2046,7 @@ var qr, Jr = [], Yr = {
|
|
|
2057
2046
|
var t;
|
|
2058
2047
|
(t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
|
|
2059
2048
|
let t = e._zod.parse, n = (e, n) => {
|
|
2060
|
-
if (n.direction !== "backward" && Zr(n, e.value)) throw new
|
|
2049
|
+
if (n.direction !== "backward" && Zr(n, e.value)) throw new Br();
|
|
2061
2050
|
return t(e, n);
|
|
2062
2051
|
};
|
|
2063
2052
|
e._zod.parse = n, e._zod.run === t && (e._zod.run = n);
|
|
@@ -2069,26 +2058,26 @@ var qr, Jr = [], Yr = {
|
|
|
2069
2058
|
(t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
|
|
2070
2059
|
let t = e._zod.parse, o = (s, c) => {
|
|
2071
2060
|
if (n === void 0) {
|
|
2072
|
-
let i =
|
|
2073
|
-
if (i ===
|
|
2074
|
-
i ===
|
|
2061
|
+
let i = z(e, /* @__PURE__ */ new Set(), !1);
|
|
2062
|
+
if (i === I) return e._zod.parse = t, e._zod.run === o && (e._zod.run = t), t(s, c);
|
|
2063
|
+
i === R || r ? n = !0 : r = !0;
|
|
2075
2064
|
}
|
|
2076
2065
|
let l = s.value;
|
|
2077
|
-
if (!
|
|
2078
|
-
let u = c[
|
|
2066
|
+
if (!Ur(l)) return t(s, c);
|
|
2067
|
+
let u = c[Vr];
|
|
2079
2068
|
u || (u = {
|
|
2080
2069
|
buckets: /* @__PURE__ */ new WeakMap(),
|
|
2081
2070
|
backEdges: void 0
|
|
2082
|
-
}, c[
|
|
2071
|
+
}, c[Vr] = u);
|
|
2083
2072
|
let d;
|
|
2084
|
-
i === c ? d = a : (d =
|
|
2073
|
+
i === c ? d = a : (d = qr(u, e), i = c, a = d);
|
|
2085
2074
|
let f = d.get(l);
|
|
2086
|
-
if (f) return s.value = f.value, f.issues ? f.issues.length && s.issues.push(...
|
|
2087
|
-
|
|
2075
|
+
if (f) return s.value = f.value, f.issues ? f.issues.length && s.issues.push(...Wr(f.issues)) : (s.memo = !0, u.backEdges ?? (u.backEdges = /* @__PURE__ */ new WeakSet()), u.backEdges.add(f.value)), s;
|
|
2076
|
+
B = d;
|
|
2088
2077
|
let p = Jr.length, m = t(s, c);
|
|
2089
|
-
|
|
2078
|
+
B = void 0;
|
|
2090
2079
|
let h = Jr.length > p ? Jr.pop() : void 0;
|
|
2091
|
-
return m instanceof Promise ? m.then((e) => (h && (h.issues = e.issues.length ?
|
|
2080
|
+
return m instanceof Promise ? m.then((e) => (h && (h.issues = e.issues.length ? Wr(e.issues) : Hr), e)) : (h && (h.issues = m.issues.length ? Wr(m.issues) : Hr), m);
|
|
2092
2081
|
};
|
|
2093
2082
|
e._zod.parse = o, e._zod.run === t && (e._zod.run = o);
|
|
2094
2083
|
});
|
|
@@ -2098,11 +2087,10 @@ function Xr() {
|
|
|
2098
2087
|
return Yr;
|
|
2099
2088
|
}
|
|
2100
2089
|
function Zr(e, t) {
|
|
2101
|
-
let n = e[
|
|
2102
|
-
return n !== void 0 &&
|
|
2090
|
+
let n = e[Vr]?.backEdges;
|
|
2091
|
+
return n !== void 0 && Ur(t) && n.has(t);
|
|
2103
2092
|
}
|
|
2104
|
-
|
|
2105
|
-
//#region ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/locales/en.js
|
|
2093
|
+
// ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/locales/en.js
|
|
2106
2094
|
var Qr = () => {
|
|
2107
2095
|
let e = {
|
|
2108
2096
|
string: {
|
|
@@ -2168,8 +2156,8 @@ var Qr = () => {
|
|
|
2168
2156
|
}
|
|
2169
2157
|
return (e) => {
|
|
2170
2158
|
switch (e.code) {
|
|
2171
|
-
case "invalid_type": return `Invalid input: expected ${a(e.expected)}, received ${a(
|
|
2172
|
-
case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${
|
|
2159
|
+
case "invalid_type": return `Invalid input: expected ${a(e.expected)}, received ${a(De(e.input), e.input)}`;
|
|
2160
|
+
case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${ce(e.values[0])}` : `Invalid option: expected one of ${t(e.values, "|")}`;
|
|
2173
2161
|
case "too_big": {
|
|
2174
2162
|
let t = e.exact ? "exactly " : e.inclusive ? "<=" : "<", r = n(e.origin);
|
|
2175
2163
|
return r ? `Too big: expected ${e.origin ?? "value"} to have ${t}${e.maximum.toString()} ${r.unit ?? "elements"}` : `Too big: expected ${e.origin ?? "value"} to be ${t}${e.maximum.toString()}`;
|
|
@@ -2194,8 +2182,7 @@ var Qr = () => {
|
|
|
2194
2182
|
function $r() {
|
|
2195
2183
|
return { localeError: Qr() };
|
|
2196
2184
|
}
|
|
2197
|
-
|
|
2198
|
-
//#region ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/registries.js
|
|
2185
|
+
// ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/registries.js
|
|
2199
2186
|
var ei, ti = class {
|
|
2200
2187
|
constructor() {
|
|
2201
2188
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
@@ -2232,9 +2219,8 @@ function ni() {
|
|
|
2232
2219
|
return new ti();
|
|
2233
2220
|
}
|
|
2234
2221
|
(ei = globalThis).__zod_globalRegistry ?? (ei.__zod_globalRegistry = ni());
|
|
2235
|
-
var
|
|
2236
|
-
|
|
2237
|
-
//#region ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/api.js
|
|
2222
|
+
var V = globalThis.__zod_globalRegistry;
|
|
2223
|
+
// ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/api.js
|
|
2238
2224
|
function ri(e) {
|
|
2239
2225
|
return e.checks &&= [...e.checks], e;
|
|
2240
2226
|
}
|
|
@@ -2242,7 +2228,7 @@ function ri(e) {
|
|
|
2242
2228
|
function ii(e, t) {
|
|
2243
2229
|
return new e(ri({
|
|
2244
2230
|
type: "string",
|
|
2245
|
-
...
|
|
2231
|
+
...v(t)
|
|
2246
2232
|
}));
|
|
2247
2233
|
}
|
|
2248
2234
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2252,7 +2238,7 @@ function ai(e, t) {
|
|
|
2252
2238
|
format: "email",
|
|
2253
2239
|
check: "string_format",
|
|
2254
2240
|
abort: !1,
|
|
2255
|
-
...
|
|
2241
|
+
...v(t)
|
|
2256
2242
|
});
|
|
2257
2243
|
}
|
|
2258
2244
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2262,7 +2248,7 @@ function oi(e, t) {
|
|
|
2262
2248
|
format: "guid",
|
|
2263
2249
|
check: "string_format",
|
|
2264
2250
|
abort: !1,
|
|
2265
|
-
...
|
|
2251
|
+
...v(t)
|
|
2266
2252
|
});
|
|
2267
2253
|
}
|
|
2268
2254
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2272,7 +2258,7 @@ function si(e, t) {
|
|
|
2272
2258
|
format: "uuid",
|
|
2273
2259
|
check: "string_format",
|
|
2274
2260
|
abort: !1,
|
|
2275
|
-
...
|
|
2261
|
+
...v(t)
|
|
2276
2262
|
});
|
|
2277
2263
|
}
|
|
2278
2264
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2283,7 +2269,7 @@ function ci(e, t) {
|
|
|
2283
2269
|
check: "string_format",
|
|
2284
2270
|
abort: !1,
|
|
2285
2271
|
version: "v4",
|
|
2286
|
-
...
|
|
2272
|
+
...v(t)
|
|
2287
2273
|
});
|
|
2288
2274
|
}
|
|
2289
2275
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2294,7 +2280,7 @@ function li(e, t) {
|
|
|
2294
2280
|
check: "string_format",
|
|
2295
2281
|
abort: !1,
|
|
2296
2282
|
version: "v6",
|
|
2297
|
-
...
|
|
2283
|
+
...v(t)
|
|
2298
2284
|
});
|
|
2299
2285
|
}
|
|
2300
2286
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2305,7 +2291,7 @@ function ui(e, t) {
|
|
|
2305
2291
|
check: "string_format",
|
|
2306
2292
|
abort: !1,
|
|
2307
2293
|
version: "v7",
|
|
2308
|
-
...
|
|
2294
|
+
...v(t)
|
|
2309
2295
|
});
|
|
2310
2296
|
}
|
|
2311
2297
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2315,7 +2301,7 @@ function di(e, t) {
|
|
|
2315
2301
|
format: "url",
|
|
2316
2302
|
check: "string_format",
|
|
2317
2303
|
abort: !1,
|
|
2318
|
-
...
|
|
2304
|
+
...v(t)
|
|
2319
2305
|
});
|
|
2320
2306
|
}
|
|
2321
2307
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2325,7 +2311,7 @@ function fi(e, t) {
|
|
|
2325
2311
|
format: "emoji",
|
|
2326
2312
|
check: "string_format",
|
|
2327
2313
|
abort: !1,
|
|
2328
|
-
...
|
|
2314
|
+
...v(t)
|
|
2329
2315
|
});
|
|
2330
2316
|
}
|
|
2331
2317
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2335,7 +2321,7 @@ function pi(e, t) {
|
|
|
2335
2321
|
format: "nanoid",
|
|
2336
2322
|
check: "string_format",
|
|
2337
2323
|
abort: !1,
|
|
2338
|
-
...
|
|
2324
|
+
...v(t)
|
|
2339
2325
|
});
|
|
2340
2326
|
}
|
|
2341
2327
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2345,7 +2331,7 @@ function mi(e, t) {
|
|
|
2345
2331
|
format: "cuid",
|
|
2346
2332
|
check: "string_format",
|
|
2347
2333
|
abort: !1,
|
|
2348
|
-
...
|
|
2334
|
+
...v(t)
|
|
2349
2335
|
});
|
|
2350
2336
|
}
|
|
2351
2337
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2355,7 +2341,7 @@ function hi(e, t) {
|
|
|
2355
2341
|
format: "cuid2",
|
|
2356
2342
|
check: "string_format",
|
|
2357
2343
|
abort: !1,
|
|
2358
|
-
...
|
|
2344
|
+
...v(t)
|
|
2359
2345
|
});
|
|
2360
2346
|
}
|
|
2361
2347
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2365,7 +2351,7 @@ function gi(e, t) {
|
|
|
2365
2351
|
format: "ulid",
|
|
2366
2352
|
check: "string_format",
|
|
2367
2353
|
abort: !1,
|
|
2368
|
-
...
|
|
2354
|
+
...v(t)
|
|
2369
2355
|
});
|
|
2370
2356
|
}
|
|
2371
2357
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2375,7 +2361,7 @@ function _i(e, t) {
|
|
|
2375
2361
|
format: "xid",
|
|
2376
2362
|
check: "string_format",
|
|
2377
2363
|
abort: !1,
|
|
2378
|
-
...
|
|
2364
|
+
...v(t)
|
|
2379
2365
|
});
|
|
2380
2366
|
}
|
|
2381
2367
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2385,7 +2371,7 @@ function vi(e, t) {
|
|
|
2385
2371
|
format: "ksuid",
|
|
2386
2372
|
check: "string_format",
|
|
2387
2373
|
abort: !1,
|
|
2388
|
-
...
|
|
2374
|
+
...v(t)
|
|
2389
2375
|
});
|
|
2390
2376
|
}
|
|
2391
2377
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2395,7 +2381,7 @@ function yi(e, t) {
|
|
|
2395
2381
|
format: "ipv4",
|
|
2396
2382
|
check: "string_format",
|
|
2397
2383
|
abort: !1,
|
|
2398
|
-
...
|
|
2384
|
+
...v(t)
|
|
2399
2385
|
});
|
|
2400
2386
|
}
|
|
2401
2387
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2405,7 +2391,7 @@ function bi(e, t) {
|
|
|
2405
2391
|
format: "ipv6",
|
|
2406
2392
|
check: "string_format",
|
|
2407
2393
|
abort: !1,
|
|
2408
|
-
...
|
|
2394
|
+
...v(t)
|
|
2409
2395
|
});
|
|
2410
2396
|
}
|
|
2411
2397
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2415,7 +2401,7 @@ function xi(e, t) {
|
|
|
2415
2401
|
format: "cidrv4",
|
|
2416
2402
|
check: "string_format",
|
|
2417
2403
|
abort: !1,
|
|
2418
|
-
...
|
|
2404
|
+
...v(t)
|
|
2419
2405
|
});
|
|
2420
2406
|
}
|
|
2421
2407
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2425,7 +2411,7 @@ function Si(e, t) {
|
|
|
2425
2411
|
format: "cidrv6",
|
|
2426
2412
|
check: "string_format",
|
|
2427
2413
|
abort: !1,
|
|
2428
|
-
...
|
|
2414
|
+
...v(t)
|
|
2429
2415
|
});
|
|
2430
2416
|
}
|
|
2431
2417
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2435,7 +2421,7 @@ function Ci(e, t) {
|
|
|
2435
2421
|
format: "base64",
|
|
2436
2422
|
check: "string_format",
|
|
2437
2423
|
abort: !1,
|
|
2438
|
-
...
|
|
2424
|
+
...v(t)
|
|
2439
2425
|
});
|
|
2440
2426
|
}
|
|
2441
2427
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2445,7 +2431,7 @@ function wi(e, t) {
|
|
|
2445
2431
|
format: "base64url",
|
|
2446
2432
|
check: "string_format",
|
|
2447
2433
|
abort: !1,
|
|
2448
|
-
...
|
|
2434
|
+
...v(t)
|
|
2449
2435
|
});
|
|
2450
2436
|
}
|
|
2451
2437
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2455,7 +2441,7 @@ function Ti(e, t) {
|
|
|
2455
2441
|
format: "e164",
|
|
2456
2442
|
check: "string_format",
|
|
2457
2443
|
abort: !1,
|
|
2458
|
-
...
|
|
2444
|
+
...v(t)
|
|
2459
2445
|
});
|
|
2460
2446
|
}
|
|
2461
2447
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2465,7 +2451,7 @@ function Ei(e, t) {
|
|
|
2465
2451
|
format: "jwt",
|
|
2466
2452
|
check: "string_format",
|
|
2467
2453
|
abort: !1,
|
|
2468
|
-
...
|
|
2454
|
+
...v(t)
|
|
2469
2455
|
});
|
|
2470
2456
|
}
|
|
2471
2457
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2477,7 +2463,7 @@ function Di(e, t) {
|
|
|
2477
2463
|
offset: !1,
|
|
2478
2464
|
local: !1,
|
|
2479
2465
|
precision: null,
|
|
2480
|
-
...
|
|
2466
|
+
...v(t)
|
|
2481
2467
|
});
|
|
2482
2468
|
}
|
|
2483
2469
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2486,7 +2472,7 @@ function Oi(e, t) {
|
|
|
2486
2472
|
type: "string",
|
|
2487
2473
|
format: "date",
|
|
2488
2474
|
check: "string_format",
|
|
2489
|
-
...
|
|
2475
|
+
...v(t)
|
|
2490
2476
|
});
|
|
2491
2477
|
}
|
|
2492
2478
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2496,7 +2482,7 @@ function ki(e, t) {
|
|
|
2496
2482
|
format: "time",
|
|
2497
2483
|
check: "string_format",
|
|
2498
2484
|
precision: null,
|
|
2499
|
-
...
|
|
2485
|
+
...v(t)
|
|
2500
2486
|
});
|
|
2501
2487
|
}
|
|
2502
2488
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2505,7 +2491,7 @@ function Ai(e, t) {
|
|
|
2505
2491
|
type: "string",
|
|
2506
2492
|
format: "duration",
|
|
2507
2493
|
check: "string_format",
|
|
2508
|
-
...
|
|
2494
|
+
...v(t)
|
|
2509
2495
|
});
|
|
2510
2496
|
}
|
|
2511
2497
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2513,7 +2499,7 @@ function ji(e, t) {
|
|
|
2513
2499
|
return new e(ri({
|
|
2514
2500
|
type: "number",
|
|
2515
2501
|
checks: [],
|
|
2516
|
-
...
|
|
2502
|
+
...v(t)
|
|
2517
2503
|
}));
|
|
2518
2504
|
}
|
|
2519
2505
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2523,14 +2509,14 @@ function Mi(e, t) {
|
|
|
2523
2509
|
check: "number_format",
|
|
2524
2510
|
abort: !1,
|
|
2525
2511
|
format: "safeint",
|
|
2526
|
-
...
|
|
2512
|
+
...v(t)
|
|
2527
2513
|
});
|
|
2528
2514
|
}
|
|
2529
2515
|
// @__NO_SIDE_EFFECTS__
|
|
2530
2516
|
function Ni(e, t) {
|
|
2531
2517
|
return new e({
|
|
2532
2518
|
type: "boolean",
|
|
2533
|
-
...
|
|
2519
|
+
...v(t)
|
|
2534
2520
|
});
|
|
2535
2521
|
}
|
|
2536
2522
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2541,162 +2527,162 @@ function Pi(e) {
|
|
|
2541
2527
|
function Fi(e, t) {
|
|
2542
2528
|
return new e({
|
|
2543
2529
|
type: "never",
|
|
2544
|
-
...
|
|
2530
|
+
...v(t)
|
|
2545
2531
|
});
|
|
2546
2532
|
}
|
|
2547
2533
|
// @__NO_SIDE_EFFECTS__
|
|
2548
2534
|
function Ii(e, t) {
|
|
2549
|
-
return new
|
|
2535
|
+
return new Zt({
|
|
2550
2536
|
check: "less_than",
|
|
2551
|
-
...
|
|
2537
|
+
...v(t),
|
|
2552
2538
|
value: e,
|
|
2553
2539
|
inclusive: !1
|
|
2554
2540
|
});
|
|
2555
2541
|
}
|
|
2556
2542
|
// @__NO_SIDE_EFFECTS__
|
|
2557
2543
|
function Li(e, t) {
|
|
2558
|
-
return new
|
|
2544
|
+
return new Zt({
|
|
2559
2545
|
check: "less_than",
|
|
2560
|
-
...
|
|
2546
|
+
...v(t),
|
|
2561
2547
|
value: e,
|
|
2562
2548
|
inclusive: !0
|
|
2563
2549
|
});
|
|
2564
2550
|
}
|
|
2565
2551
|
// @__NO_SIDE_EFFECTS__
|
|
2566
2552
|
function Ri(e, t) {
|
|
2567
|
-
return new
|
|
2553
|
+
return new Qt({
|
|
2568
2554
|
check: "greater_than",
|
|
2569
|
-
...
|
|
2555
|
+
...v(t),
|
|
2570
2556
|
value: e,
|
|
2571
2557
|
inclusive: !1
|
|
2572
2558
|
});
|
|
2573
2559
|
}
|
|
2574
2560
|
// @__NO_SIDE_EFFECTS__
|
|
2575
2561
|
function zi(e, t) {
|
|
2576
|
-
return new
|
|
2562
|
+
return new Qt({
|
|
2577
2563
|
check: "greater_than",
|
|
2578
|
-
...
|
|
2564
|
+
...v(t),
|
|
2579
2565
|
value: e,
|
|
2580
2566
|
inclusive: !0
|
|
2581
2567
|
});
|
|
2582
2568
|
}
|
|
2583
2569
|
// @__NO_SIDE_EFFECTS__
|
|
2584
2570
|
function Bi(e, t) {
|
|
2585
|
-
return new
|
|
2571
|
+
return new $t({
|
|
2586
2572
|
check: "multiple_of",
|
|
2587
|
-
...
|
|
2573
|
+
...v(t),
|
|
2588
2574
|
value: e
|
|
2589
2575
|
});
|
|
2590
2576
|
}
|
|
2591
2577
|
// @__NO_SIDE_EFFECTS__
|
|
2592
2578
|
function Vi(e, t) {
|
|
2593
|
-
return new
|
|
2579
|
+
return new tn({
|
|
2594
2580
|
check: "max_length",
|
|
2595
|
-
...
|
|
2581
|
+
...v(t),
|
|
2596
2582
|
maximum: e
|
|
2597
2583
|
});
|
|
2598
2584
|
}
|
|
2599
2585
|
// @__NO_SIDE_EFFECTS__
|
|
2600
2586
|
function Hi(e, t) {
|
|
2601
|
-
return new
|
|
2587
|
+
return new nn({
|
|
2602
2588
|
check: "min_length",
|
|
2603
|
-
...
|
|
2589
|
+
...v(t),
|
|
2604
2590
|
minimum: e
|
|
2605
2591
|
});
|
|
2606
2592
|
}
|
|
2607
2593
|
// @__NO_SIDE_EFFECTS__
|
|
2608
2594
|
function Ui(e, t) {
|
|
2609
|
-
return new
|
|
2595
|
+
return new rn({
|
|
2610
2596
|
check: "length_equals",
|
|
2611
|
-
...
|
|
2597
|
+
...v(t),
|
|
2612
2598
|
length: e
|
|
2613
2599
|
});
|
|
2614
2600
|
}
|
|
2615
2601
|
// @__NO_SIDE_EFFECTS__
|
|
2616
2602
|
function Wi(e, t) {
|
|
2617
|
-
return new
|
|
2603
|
+
return new on({
|
|
2618
2604
|
check: "string_format",
|
|
2619
2605
|
format: "regex",
|
|
2620
|
-
...
|
|
2606
|
+
...v(t),
|
|
2621
2607
|
pattern: e
|
|
2622
2608
|
});
|
|
2623
2609
|
}
|
|
2624
2610
|
// @__NO_SIDE_EFFECTS__
|
|
2625
2611
|
function Gi(e) {
|
|
2626
|
-
return new
|
|
2612
|
+
return new sn({
|
|
2627
2613
|
check: "string_format",
|
|
2628
2614
|
format: "lowercase",
|
|
2629
|
-
...
|
|
2615
|
+
...v(e)
|
|
2630
2616
|
});
|
|
2631
2617
|
}
|
|
2632
2618
|
// @__NO_SIDE_EFFECTS__
|
|
2633
2619
|
function Ki(e) {
|
|
2634
|
-
return new
|
|
2620
|
+
return new cn({
|
|
2635
2621
|
check: "string_format",
|
|
2636
2622
|
format: "uppercase",
|
|
2637
|
-
...
|
|
2623
|
+
...v(e)
|
|
2638
2624
|
});
|
|
2639
2625
|
}
|
|
2640
2626
|
// @__NO_SIDE_EFFECTS__
|
|
2641
2627
|
function qi(e, t) {
|
|
2642
|
-
return new
|
|
2628
|
+
return new ln({
|
|
2643
2629
|
check: "string_format",
|
|
2644
2630
|
format: "includes",
|
|
2645
|
-
...
|
|
2631
|
+
...v(t),
|
|
2646
2632
|
includes: e
|
|
2647
2633
|
});
|
|
2648
2634
|
}
|
|
2649
2635
|
// @__NO_SIDE_EFFECTS__
|
|
2650
2636
|
function Ji(e, t) {
|
|
2651
|
-
return new
|
|
2637
|
+
return new un({
|
|
2652
2638
|
check: "string_format",
|
|
2653
2639
|
format: "starts_with",
|
|
2654
|
-
...
|
|
2640
|
+
...v(t),
|
|
2655
2641
|
prefix: e
|
|
2656
2642
|
});
|
|
2657
2643
|
}
|
|
2658
2644
|
// @__NO_SIDE_EFFECTS__
|
|
2659
2645
|
function Yi(e, t) {
|
|
2660
|
-
return new
|
|
2646
|
+
return new dn({
|
|
2661
2647
|
check: "string_format",
|
|
2662
2648
|
format: "ends_with",
|
|
2663
|
-
...
|
|
2649
|
+
...v(t),
|
|
2664
2650
|
suffix: e
|
|
2665
2651
|
});
|
|
2666
2652
|
}
|
|
2667
2653
|
// @__NO_SIDE_EFFECTS__
|
|
2668
|
-
function
|
|
2669
|
-
return new
|
|
2654
|
+
function H(e) {
|
|
2655
|
+
return new fn({
|
|
2670
2656
|
check: "overwrite",
|
|
2671
2657
|
tx: e
|
|
2672
2658
|
});
|
|
2673
2659
|
}
|
|
2674
2660
|
// @__NO_SIDE_EFFECTS__
|
|
2675
2661
|
function Xi(e) {
|
|
2676
|
-
return /* @__PURE__ */
|
|
2662
|
+
return /* @__PURE__ */ H((t) => t.normalize(e));
|
|
2677
2663
|
}
|
|
2678
2664
|
// @__NO_SIDE_EFFECTS__
|
|
2679
2665
|
function Zi() {
|
|
2680
|
-
return /* @__PURE__ */
|
|
2666
|
+
return /* @__PURE__ */ H((e) => e.trim());
|
|
2681
2667
|
}
|
|
2682
2668
|
// @__NO_SIDE_EFFECTS__
|
|
2683
2669
|
function Qi() {
|
|
2684
|
-
return /* @__PURE__ */
|
|
2670
|
+
return /* @__PURE__ */ H((e) => e.toLowerCase());
|
|
2685
2671
|
}
|
|
2686
2672
|
// @__NO_SIDE_EFFECTS__
|
|
2687
2673
|
function $i() {
|
|
2688
|
-
return /* @__PURE__ */
|
|
2674
|
+
return /* @__PURE__ */ H((e) => e.toUpperCase());
|
|
2689
2675
|
}
|
|
2690
2676
|
// @__NO_SIDE_EFFECTS__
|
|
2691
2677
|
function ea() {
|
|
2692
|
-
return /* @__PURE__ */
|
|
2678
|
+
return /* @__PURE__ */ H((e) => te(e));
|
|
2693
2679
|
}
|
|
2694
2680
|
// @__NO_SIDE_EFFECTS__
|
|
2695
2681
|
function ta(e, t, n) {
|
|
2696
2682
|
return new e({
|
|
2697
2683
|
type: "array",
|
|
2698
2684
|
element: t,
|
|
2699
|
-
...
|
|
2685
|
+
...v(n)
|
|
2700
2686
|
});
|
|
2701
2687
|
}
|
|
2702
2688
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2705,31 +2691,30 @@ function na(e, t, n) {
|
|
|
2705
2691
|
type: "custom",
|
|
2706
2692
|
check: "custom",
|
|
2707
2693
|
fn: t,
|
|
2708
|
-
...
|
|
2694
|
+
...v(n)
|
|
2709
2695
|
});
|
|
2710
2696
|
}
|
|
2711
2697
|
// @__NO_SIDE_EFFECTS__
|
|
2712
2698
|
function ra(e, t) {
|
|
2713
2699
|
let n = /* @__PURE__ */ ia((t) => (t.addIssue = (e) => {
|
|
2714
|
-
if (typeof e == "string") t.issues.push(
|
|
2700
|
+
if (typeof e == "string") t.issues.push(C(e, t.value, n._zod.def));
|
|
2715
2701
|
else {
|
|
2716
2702
|
let r = e;
|
|
2717
|
-
r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(
|
|
2703
|
+
r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(C(r));
|
|
2718
2704
|
}
|
|
2719
2705
|
}, e(t.value, t)), t);
|
|
2720
2706
|
return n;
|
|
2721
2707
|
}
|
|
2722
2708
|
// @__NO_SIDE_EFFECTS__
|
|
2723
2709
|
function ia(e, t) {
|
|
2724
|
-
let n = new
|
|
2710
|
+
let n = new j({
|
|
2725
2711
|
check: "custom",
|
|
2726
|
-
...
|
|
2712
|
+
...v(t)
|
|
2727
2713
|
});
|
|
2728
2714
|
return n._zod.check = e, n;
|
|
2729
2715
|
}
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
function W(e, ...t) {
|
|
2716
|
+
// ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js
|
|
2717
|
+
function U(e, ...t) {
|
|
2733
2718
|
for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) && c(e, t, n[t]);
|
|
2734
2719
|
return e;
|
|
2735
2720
|
}
|
|
@@ -2737,7 +2722,7 @@ function aa(e) {
|
|
|
2737
2722
|
let t = e?.target ?? "draft-2020-12";
|
|
2738
2723
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
2739
2724
|
processors: e.processors ?? {},
|
|
2740
|
-
metadataRegistry: e?.metadata ??
|
|
2725
|
+
metadataRegistry: e?.metadata ?? V,
|
|
2741
2726
|
target: t,
|
|
2742
2727
|
unrepresentable: e?.unrepresentable ?? "throw",
|
|
2743
2728
|
override: e?.override ?? (() => {}),
|
|
@@ -2753,7 +2738,7 @@ function aa(e) {
|
|
|
2753
2738
|
external: e?.external ?? void 0
|
|
2754
2739
|
};
|
|
2755
2740
|
}
|
|
2756
|
-
function
|
|
2741
|
+
function W(e, t, n, r, i) {
|
|
2757
2742
|
let a = typeof t.unrepresentable == "function" ? t.unrepresentable({
|
|
2758
2743
|
zodSchema: e,
|
|
2759
2744
|
path: r.path,
|
|
@@ -2763,7 +2748,7 @@ function G(e, t, n, r, i) {
|
|
|
2763
2748
|
if (a === void 0 || a === "throw") throw Error(i);
|
|
2764
2749
|
return Object.assign(n, a), !0;
|
|
2765
2750
|
}
|
|
2766
|
-
function
|
|
2751
|
+
function G(e, t, n = {
|
|
2767
2752
|
path: [],
|
|
2768
2753
|
schemaPath: []
|
|
2769
2754
|
}) {
|
|
@@ -2792,10 +2777,10 @@ function K(e, t, n = {
|
|
|
2792
2777
|
a(e, t, n, r);
|
|
2793
2778
|
}
|
|
2794
2779
|
let a = e._zod.parent;
|
|
2795
|
-
a && (o.ref ||= a,
|
|
2780
|
+
a && (o.ref ||= a, G(a, t, r), t.seen.get(a).isParent = !0);
|
|
2796
2781
|
}
|
|
2797
2782
|
let c = t.metadataRegistry.get(e);
|
|
2798
|
-
return c &&
|
|
2783
|
+
return c && U(o.schema, c), t.io === "input" && K(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
|
|
2799
2784
|
}
|
|
2800
2785
|
function oa(e) {
|
|
2801
2786
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
@@ -2847,26 +2832,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
2847
2832
|
}
|
|
2848
2833
|
for (let n of e.seen.entries()) {
|
|
2849
2834
|
let r = n[1];
|
|
2850
|
-
if (t === n[0])
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
continue;
|
|
2835
|
+
if (t === n[0]) a(n);
|
|
2836
|
+
else {
|
|
2837
|
+
if (e.external) {
|
|
2838
|
+
let r = e.external.registry.get(n[0])?.id;
|
|
2839
|
+
if (t !== n[0] && r) {
|
|
2840
|
+
a(n);
|
|
2841
|
+
continue;
|
|
2842
|
+
}
|
|
2859
2843
|
}
|
|
2844
|
+
(e.metadataRegistry.get(n[0])?.id || r.cycle || r.count > 1 && e.reused === "ref") && a(n);
|
|
2860
2845
|
}
|
|
2861
|
-
if (e.metadataRegistry.get(n[0])?.id) {
|
|
2862
|
-
a(n);
|
|
2863
|
-
continue;
|
|
2864
|
-
}
|
|
2865
|
-
if (r.cycle) {
|
|
2866
|
-
a(n);
|
|
2867
|
-
continue;
|
|
2868
|
-
}
|
|
2869
|
-
r.count > 1 && e.reused === "ref" && a(n);
|
|
2870
2846
|
}
|
|
2871
2847
|
e.external && (e.sharedDefsExtractedFor = e.external);
|
|
2872
2848
|
}
|
|
@@ -2945,7 +2921,7 @@ function pa(e) {
|
|
|
2945
2921
|
if (o.some((e) => !e)) return;
|
|
2946
2922
|
r = { [i]: o };
|
|
2947
2923
|
}
|
|
2948
|
-
r && (delete e.allOf,
|
|
2924
|
+
r && (delete e.allOf, U(e, r));
|
|
2949
2925
|
}
|
|
2950
2926
|
function ma(e, t) {
|
|
2951
2927
|
let n = e.seen.get(t);
|
|
@@ -2957,7 +2933,7 @@ function ma(e, t) {
|
|
|
2957
2933
|
if (n.ref = null, o) {
|
|
2958
2934
|
r(o);
|
|
2959
2935
|
let n = e.seen.get(o), s = n.schema;
|
|
2960
|
-
if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) :
|
|
2936
|
+
if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : U(i, s), U(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
|
|
2961
2937
|
if (s.$ref && n.def) for (let e in i) e !== "$ref" && e !== "allOf" && e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
|
|
2962
2938
|
}
|
|
2963
2939
|
let s = t._zod.parent;
|
|
@@ -2993,7 +2969,7 @@ function ma(e, t) {
|
|
|
2993
2969
|
if (!n) throw Error("Schema is missing an `id` property");
|
|
2994
2970
|
i.$id = e.external.uri(n);
|
|
2995
2971
|
}
|
|
2996
|
-
|
|
2972
|
+
U(i, n.defId ? n.schema : n.def ?? n.schema);
|
|
2997
2973
|
let a = e.metadataRegistry.get(t)?.id;
|
|
2998
2974
|
a !== void 0 && i.id === a && delete i.id;
|
|
2999
2975
|
let o = e.external?.defs ?? {};
|
|
@@ -3019,30 +2995,30 @@ function ma(e, t) {
|
|
|
3019
2995
|
throw Error("Error converting schema to JSON.");
|
|
3020
2996
|
}
|
|
3021
2997
|
}
|
|
3022
|
-
function
|
|
2998
|
+
function K(e, t) {
|
|
3023
2999
|
let n = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
3024
3000
|
if (n.seen.has(e)) return !1;
|
|
3025
3001
|
n.seen.add(e);
|
|
3026
3002
|
let r = e._zod.def;
|
|
3027
3003
|
if (r.type === "transform") return !0;
|
|
3028
|
-
if (r.type === "array") return
|
|
3029
|
-
if (r.type === "set") return
|
|
3030
|
-
if (r.type === "lazy") return
|
|
3031
|
-
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return
|
|
3032
|
-
if (r.type === "intersection") return
|
|
3033
|
-
if (r.type === "record" || r.type === "map") return
|
|
3034
|
-
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 :
|
|
3004
|
+
if (r.type === "array") return K(r.element, n);
|
|
3005
|
+
if (r.type === "set") return K(r.valueType, n);
|
|
3006
|
+
if (r.type === "lazy") return K(r.getter(), n);
|
|
3007
|
+
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return K(r.innerType, n);
|
|
3008
|
+
if (r.type === "intersection") return K(r.left, n) || K(r.right, n);
|
|
3009
|
+
if (r.type === "record" || r.type === "map") return K(r.keyType, n) || K(r.valueType, n);
|
|
3010
|
+
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : K(r.in, n) || K(r.out, n);
|
|
3035
3011
|
if (r.type === "object") {
|
|
3036
|
-
for (let e in r.shape) if (
|
|
3012
|
+
for (let e in r.shape) if (K(r.shape[e], n)) return !0;
|
|
3037
3013
|
return !1;
|
|
3038
3014
|
}
|
|
3039
3015
|
if (r.type === "union") {
|
|
3040
|
-
for (let e of r.options) if (
|
|
3016
|
+
for (let e of r.options) if (K(e, n)) return !0;
|
|
3041
3017
|
return !1;
|
|
3042
3018
|
}
|
|
3043
3019
|
if (r.type === "tuple") {
|
|
3044
|
-
for (let e of r.items) if (
|
|
3045
|
-
return !!(r.rest &&
|
|
3020
|
+
for (let e of r.items) if (K(e, n)) return !0;
|
|
3021
|
+
return !!(r.rest && K(r.rest, n));
|
|
3046
3022
|
}
|
|
3047
3023
|
return !1;
|
|
3048
3024
|
}
|
|
@@ -3051,7 +3027,7 @@ var ha = (e, t = {}) => (n) => {
|
|
|
3051
3027
|
...n,
|
|
3052
3028
|
processors: t
|
|
3053
3029
|
});
|
|
3054
|
-
return
|
|
3030
|
+
return G(e, r), sa(r, e), ma(r, e);
|
|
3055
3031
|
}, ga = (e, t, n = {}) => (r) => {
|
|
3056
3032
|
let { libraryOptions: i, target: a } = r ?? {}, o = aa({
|
|
3057
3033
|
...i ?? {},
|
|
@@ -3059,13 +3035,13 @@ var ha = (e, t = {}) => (n) => {
|
|
|
3059
3035
|
io: t,
|
|
3060
3036
|
processors: n
|
|
3061
3037
|
});
|
|
3062
|
-
return
|
|
3063
|
-
},
|
|
3038
|
+
return G(e, o), sa(o, e), ma(o, e);
|
|
3039
|
+
}, q = (e, t, n) => {
|
|
3064
3040
|
(e[t] === void 0 || n > e[t]) && (e[t] = n);
|
|
3065
|
-
},
|
|
3041
|
+
}, J = (e, t, n) => {
|
|
3066
3042
|
(e[t] === void 0 || n < e[t]) && (e[t] = n);
|
|
3067
3043
|
}, _a = (e, t) => {
|
|
3068
|
-
|
|
3044
|
+
q(e, "minimum", t), J(e, "maximum", t);
|
|
3069
3045
|
}, va = (e, t) => {
|
|
3070
3046
|
e.multipleOf ??= [], e.multipleOf.includes(t) || e.multipleOf.push(t);
|
|
3071
3047
|
}, ya = (e, t) => {
|
|
@@ -3074,16 +3050,16 @@ var ha = (e, t = {}) => (n) => {
|
|
|
3074
3050
|
e.mime = e.mime ? e.mime.filter((e) => t.includes(e)) : [...t];
|
|
3075
3051
|
}, xa = (e, t) => {
|
|
3076
3052
|
e.format = t, t.includes("int") && (e.isInt = !0);
|
|
3077
|
-
}, Sa = (e, t) =>
|
|
3053
|
+
}, Sa = (e, t) => q(e, "minimum", t.minimum), Ca = (e, t) => J(e, "maximum", t.maximum), wa = (e) => (t, n) => {
|
|
3078
3054
|
xa(t, n.format);
|
|
3079
3055
|
let [r, i] = e[n.format];
|
|
3080
|
-
|
|
3056
|
+
q(t, "minimum", r), J(t, "maximum", i);
|
|
3081
3057
|
}, Ta = {
|
|
3082
|
-
greater_than: (e, t) =>
|
|
3083
|
-
less_than: (e, t) =>
|
|
3058
|
+
greater_than: (e, t) => q(e, t.inclusive ? "minimum" : "exclusiveMinimum", t.value),
|
|
3059
|
+
less_than: (e, t) => J(e, t.inclusive ? "maximum" : "exclusiveMaximum", t.value),
|
|
3084
3060
|
multiple_of: (e, t) => va(e, t.value),
|
|
3085
|
-
number_format: wa(
|
|
3086
|
-
bigint_format: wa(
|
|
3061
|
+
number_format: wa(ue),
|
|
3062
|
+
bigint_format: wa(de),
|
|
3087
3063
|
min_length: Sa,
|
|
3088
3064
|
max_length: Ca,
|
|
3089
3065
|
length_equals: (e, t) => _a(e, t.length),
|
|
@@ -3095,11 +3071,11 @@ var ha = (e, t = {}) => (n) => {
|
|
|
3095
3071
|
},
|
|
3096
3072
|
mime_type: (e, t) => ba(e, t.mime)
|
|
3097
3073
|
};
|
|
3098
|
-
function
|
|
3074
|
+
function Y(e) {
|
|
3099
3075
|
let t = {}, n = e._zod.def, r = e._zod.traits.has("$ZodCheck") ? [e, ...n.checks ?? []] : n.checks ?? [];
|
|
3100
3076
|
for (let e of r) Ta[e._zod.def.check]?.(t, e._zod.def);
|
|
3101
3077
|
let i = e._zod.bag;
|
|
3102
|
-
i.minimum !== void 0 &&
|
|
3078
|
+
i.minimum !== void 0 && q(t, "minimum", i.minimum), i.exclusiveMinimum !== void 0 && q(t, "exclusiveMinimum", i.exclusiveMinimum), i.maximum !== void 0 && J(t, "maximum", i.maximum), i.exclusiveMaximum !== void 0 && J(t, "exclusiveMaximum", i.exclusiveMaximum), i.multipleOf !== void 0 && va(t, i.multipleOf), i.format !== void 0 && (t.format ??= i.format, i.format.includes("int") && (t.isInt = !0)), i.mime && ba(t, i.mime);
|
|
3103
3079
|
for (let e of i.patterns ?? []) ya(t, e);
|
|
3104
3080
|
return t;
|
|
3105
3081
|
}
|
|
@@ -3109,10 +3085,10 @@ var Ea = {
|
|
|
3109
3085
|
datetime: "date-time",
|
|
3110
3086
|
json_string: "json-string",
|
|
3111
3087
|
regex: ""
|
|
3112
|
-
}, Da = /* @__PURE__ */ new Map([[
|
|
3088
|
+
}, Da = /* @__PURE__ */ new Map([[Yn, Pt], [Zn, Ft]]), Oa = (e) => Da.get(e) ?? e, ka = (e, t, n, r) => {
|
|
3113
3089
|
let i = n;
|
|
3114
3090
|
i.type = "string";
|
|
3115
|
-
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } =
|
|
3091
|
+
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } = Y(e);
|
|
3116
3092
|
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Ea[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
|
|
3117
3093
|
let e = [...c].map(Oa);
|
|
3118
3094
|
e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
|
|
@@ -3121,12 +3097,12 @@ var Ea = {
|
|
|
3121
3097
|
}))]);
|
|
3122
3098
|
}
|
|
3123
3099
|
}, Aa = (e, t, n, r) => {
|
|
3124
|
-
let i = n, { minimum: a, maximum: o, multipleOf: s, exclusiveMaximum: c, exclusiveMinimum: l, isInt: u } =
|
|
3100
|
+
let i = n, { minimum: a, maximum: o, multipleOf: s, exclusiveMaximum: c, exclusiveMinimum: l, isInt: u } = Y(e);
|
|
3125
3101
|
i.type = u ? "integer" : "number";
|
|
3126
3102
|
let d = typeof l == "number" && l >= (a ?? -Infinity), f = typeof c == "number" && c <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
|
|
3127
3103
|
if (d ? p ? (i.minimum = l, i.exclusiveMinimum = !0) : i.exclusiveMinimum = l : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = c, i.exclusiveMaximum = !0) : i.exclusiveMaximum = c : typeof o == "number" && (i.maximum = o), s) {
|
|
3128
3104
|
let n = /* @__PURE__ */ new Set();
|
|
3129
|
-
for (let a of s) Number.isFinite(a) && a !== 0 ? n.add(Math.abs(a)) :
|
|
3105
|
+
for (let a of s) Number.isFinite(a) && a !== 0 ? n.add(Math.abs(a)) : W(e, t, i, r, `A multipleOf divisor of ${a} cannot be represented in JSON Schema`);
|
|
3130
3106
|
let [a, ...o] = n;
|
|
3131
3107
|
a !== void 0 && (i.multipleOf = a), o.length && (i.allOf = [...i.allOf ?? [], ...o.map((e) => ({ multipleOf: e }))]);
|
|
3132
3108
|
}
|
|
@@ -3136,18 +3112,14 @@ var Ea = {
|
|
|
3136
3112
|
n.not = {};
|
|
3137
3113
|
}, Na = (t, n, r, i) => {
|
|
3138
3114
|
let a = t._zod.def, o = e(a.entries);
|
|
3139
|
-
|
|
3140
|
-
r.not = {};
|
|
3141
|
-
return;
|
|
3142
|
-
}
|
|
3143
|
-
o.every((e) => typeof e == "number") && (r.type = "number"), o.every((e) => typeof e == "string") && (r.type = "string"), r.enum = o;
|
|
3115
|
+
o.length === 0 ? r.not = {} : (o.every((e) => typeof e == "number") && (r.type = "number"), o.every((e) => typeof e == "string") && (r.type = "string"), r.enum = o);
|
|
3144
3116
|
}, Pa = (e, t, n, r) => {
|
|
3145
|
-
|
|
3117
|
+
W(e, t, n, r, "Custom types cannot be represented in JSON Schema");
|
|
3146
3118
|
}, Fa = (e, t, n, r) => {
|
|
3147
|
-
|
|
3119
|
+
W(e, t, n, r, "Transforms cannot be represented in JSON Schema");
|
|
3148
3120
|
}, Ia = (e, t, n, r) => {
|
|
3149
|
-
let i = n, a = e._zod.def, { minimum: o, maximum: s } =
|
|
3150
|
-
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items =
|
|
3121
|
+
let i = n, a = e._zod.def, { minimum: o, maximum: s } = Y(e);
|
|
3122
|
+
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = G(a.element, t, {
|
|
3151
3123
|
...r,
|
|
3152
3124
|
path: [...r.path, "items"]
|
|
3153
3125
|
});
|
|
@@ -3158,9 +3130,9 @@ function La(e) {
|
|
|
3158
3130
|
}
|
|
3159
3131
|
var Ra = (e, t, n, r) => {
|
|
3160
3132
|
let i = n, a = e._zod.def, o = a.shape;
|
|
3161
|
-
if (Object.getOwnPropertySymbols(o).length &&
|
|
3133
|
+
if (Object.getOwnPropertySymbols(o).length && W(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
|
|
3162
3134
|
i.type = "object", i.properties = {};
|
|
3163
|
-
for (let e in o) c(i.properties, e,
|
|
3135
|
+
for (let e in o) c(i.properties, e, G(o[e], t, {
|
|
3164
3136
|
...r,
|
|
3165
3137
|
path: [
|
|
3166
3138
|
...r.path,
|
|
@@ -3173,12 +3145,12 @@ var Ra = (e, t, n, r) => {
|
|
|
3173
3145
|
let n = a.shape[e];
|
|
3174
3146
|
(t.io === "input" ? La(n) === void 0 : n._zod.optout === void 0) && s.push(e);
|
|
3175
3147
|
}
|
|
3176
|
-
s.length > 0 && (i.required = s), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties =
|
|
3148
|
+
s.length > 0 && (i.required = s), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = G(a.catchall, t, {
|
|
3177
3149
|
...r,
|
|
3178
3150
|
path: [...r.path, "additionalProperties"]
|
|
3179
3151
|
})) : t.io === "output" && (i.additionalProperties = !1);
|
|
3180
3152
|
}, za = (e, t, n, r) => {
|
|
3181
|
-
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) =>
|
|
3153
|
+
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => G(e, t, {
|
|
3182
3154
|
...r,
|
|
3183
3155
|
path: [
|
|
3184
3156
|
...r.path,
|
|
@@ -3188,14 +3160,14 @@ var Ra = (e, t, n, r) => {
|
|
|
3188
3160
|
}));
|
|
3189
3161
|
a ? n.oneOf = o : n.anyOf = o;
|
|
3190
3162
|
}, Ba = (e, t, n, r) => {
|
|
3191
|
-
let i = e._zod.def, a =
|
|
3163
|
+
let i = e._zod.def, a = G(i.left, t, {
|
|
3192
3164
|
...r,
|
|
3193
3165
|
path: [
|
|
3194
3166
|
...r.path,
|
|
3195
3167
|
"allOf",
|
|
3196
3168
|
0
|
|
3197
3169
|
]
|
|
3198
|
-
}), o =
|
|
3170
|
+
}), o = G(i.right, t, {
|
|
3199
3171
|
...r,
|
|
3200
3172
|
path: [
|
|
3201
3173
|
...r.path,
|
|
@@ -3205,58 +3177,58 @@ var Ra = (e, t, n, r) => {
|
|
|
3205
3177
|
}), s = (e) => "allOf" in e && Object.keys(e).length === 1, c = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
|
|
3206
3178
|
n.allOf = c, t.intersections.push(c);
|
|
3207
3179
|
}, Va = (e, t, n, r) => {
|
|
3208
|
-
let i = e._zod.def, a =
|
|
3180
|
+
let i = e._zod.def, a = G(i.innerType, t, r), o = t.seen.get(e);
|
|
3209
3181
|
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
3210
3182
|
}, Ha = (e, t, n, r) => {
|
|
3211
3183
|
let i = e._zod.def;
|
|
3212
|
-
|
|
3184
|
+
G(i.innerType, t, r);
|
|
3213
3185
|
let a = t.seen.get(e);
|
|
3214
3186
|
a.ref = i.innerType;
|
|
3215
3187
|
}, Ua = Symbol();
|
|
3216
3188
|
function Wa(e, t, n, r, i) {
|
|
3217
3189
|
let a = !1, o = JSON.stringify(e, (e, t) => typeof t == "bigint" ? (a = !0, null) : t);
|
|
3218
|
-
return a ? (
|
|
3190
|
+
return a ? (W(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), Ua) : JSON.parse(o);
|
|
3219
3191
|
}
|
|
3220
3192
|
var Ga = (e, t, n, r) => {
|
|
3221
3193
|
let i = e._zod.def;
|
|
3222
|
-
|
|
3194
|
+
G(i.innerType, t, r);
|
|
3223
3195
|
let a = t.seen.get(e);
|
|
3224
3196
|
a.ref = i.innerType;
|
|
3225
3197
|
let o = Wa(i.defaultValue, e, t, n, r);
|
|
3226
3198
|
o !== Ua && (n.default = o);
|
|
3227
3199
|
}, Ka = (e, t, n, r) => {
|
|
3228
3200
|
let i = e._zod.def;
|
|
3229
|
-
|
|
3201
|
+
G(i.innerType, t, r);
|
|
3230
3202
|
let a = t.seen.get(e);
|
|
3231
3203
|
if (a.ref = i.innerType, t.io !== "input") return;
|
|
3232
3204
|
let o = Wa(i.defaultValue, e, t, n, r);
|
|
3233
3205
|
o !== Ua && (n._prefault = o);
|
|
3234
3206
|
}, qa = (e, t, n, r) => {
|
|
3235
3207
|
let i = e._zod.def;
|
|
3236
|
-
|
|
3208
|
+
G(i.innerType, t, r);
|
|
3237
3209
|
let a = t.seen.get(e);
|
|
3238
3210
|
a.ref = i.innerType;
|
|
3239
3211
|
let o;
|
|
3240
3212
|
try {
|
|
3241
3213
|
o = i.catchValue(void 0);
|
|
3242
3214
|
} catch {
|
|
3243
|
-
|
|
3215
|
+
W(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
|
|
3244
3216
|
return;
|
|
3245
3217
|
}
|
|
3246
3218
|
n.default = o;
|
|
3247
3219
|
}, Ja = (e, t, n, r) => {
|
|
3248
3220
|
let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
|
|
3249
|
-
|
|
3221
|
+
G(o, t, r);
|
|
3250
3222
|
let s = t.seen.get(e);
|
|
3251
3223
|
s.ref = o;
|
|
3252
3224
|
}, Ya = (e, t, n, r) => {
|
|
3253
3225
|
let i = e._zod.def;
|
|
3254
|
-
|
|
3226
|
+
G(i.innerType, t, r);
|
|
3255
3227
|
let a = t.seen.get(e);
|
|
3256
3228
|
a.ref = i.innerType, n.readOnly = !0;
|
|
3257
3229
|
}, Xa = (e, t, n, r) => {
|
|
3258
3230
|
let i = e._zod.def;
|
|
3259
|
-
|
|
3231
|
+
G(i.innerType, t, r);
|
|
3260
3232
|
let a = t.seen.get(e);
|
|
3261
3233
|
a.ref = i.innerType;
|
|
3262
3234
|
}, Za = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
@@ -3281,7 +3253,7 @@ function Qa(e, t, n) {
|
|
|
3281
3253
|
}
|
|
3282
3254
|
});
|
|
3283
3255
|
}
|
|
3284
|
-
var
|
|
3256
|
+
var X = /*@__PURE__*/ D("ZodError", (e, t) => {
|
|
3285
3257
|
Je.init(e, t), e.name = "ZodError";
|
|
3286
3258
|
let r = Object.getPrototypeOf(e);
|
|
3287
3259
|
Za.has(r) || (Za.add(r), Qa(r, "format", (e) => (t) => Ze(e, t)), Qa(r, "flatten", (e) => (t) => Xe(e, t)), Qa(r, "addIssue", (e) => (t) => {
|
|
@@ -3295,16 +3267,15 @@ var Z = /*@__PURE__*/ O("ZodError", (e, t) => {
|
|
|
3295
3267
|
return this.issues.length === 0;
|
|
3296
3268
|
}
|
|
3297
3269
|
}));
|
|
3298
|
-
}, void 0, { Parent: Error }), $a = /* @__PURE__ */
|
|
3299
|
-
|
|
3300
|
-
//#region ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
|
|
3270
|
+
}, void 0, { Parent: Error }), $a = /* @__PURE__ */ $e(X), eo = /* @__PURE__ */ et(X), to = /* @__PURE__ */ tt(X), no = /* @__PURE__ */ rt(X), ro = /* @__PURE__ */ lt(X), io = /* @__PURE__ */ ut(X), ao = /* @__PURE__ */ dt(X), oo = /* @__PURE__ */ ft(X), so = /* @__PURE__ */ pt(X), co = /* @__PURE__ */ mt(X), lo = /* @__PURE__ */ ht(X), uo = /* @__PURE__ */ gt(X);
|
|
3271
|
+
// ../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
|
|
3301
3272
|
function fo() {
|
|
3302
|
-
|
|
3273
|
+
k.localeError || A($r());
|
|
3303
3274
|
}
|
|
3304
3275
|
function po() {
|
|
3305
|
-
|
|
3276
|
+
k.memoizer || A({ memoizer: Xr() });
|
|
3306
3277
|
}
|
|
3307
|
-
var
|
|
3278
|
+
var Z = /*@__PURE__*/ D("ZodType", (e, t) => (fo(), M.init(e, t), e.def = t, e.type = t.type, e), {
|
|
3308
3279
|
check(...e) {
|
|
3309
3280
|
let t = this.def;
|
|
3310
3281
|
return this.clone(h(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
|
|
@@ -3317,7 +3288,7 @@ var Q = /*@__PURE__*/ O("ZodType", (e, t) => (fo(), P.init(e, t), e.def = t, e.t
|
|
|
3317
3288
|
return this.check(...e);
|
|
3318
3289
|
},
|
|
3319
3290
|
clone(e, t) {
|
|
3320
|
-
return
|
|
3291
|
+
return _(this, e, t);
|
|
3321
3292
|
},
|
|
3322
3293
|
brand() {
|
|
3323
3294
|
return this;
|
|
@@ -3326,64 +3297,64 @@ var Q = /*@__PURE__*/ O("ZodType", (e, t) => (fo(), P.init(e, t), e.def = t, e.t
|
|
|
3326
3297
|
return e.add(this, t), this;
|
|
3327
3298
|
},
|
|
3328
3299
|
refine(e, t) {
|
|
3329
|
-
return this.check(
|
|
3300
|
+
return this.check(Es(e, t));
|
|
3330
3301
|
},
|
|
3331
3302
|
superRefine(e, t) {
|
|
3332
|
-
return this.check(
|
|
3303
|
+
return this.check(Ds(e, t));
|
|
3333
3304
|
},
|
|
3334
3305
|
overwrite(e) {
|
|
3335
|
-
return this.check(/* @__PURE__ */
|
|
3306
|
+
return this.check(/* @__PURE__ */ H(e));
|
|
3336
3307
|
},
|
|
3337
3308
|
optional() {
|
|
3338
|
-
return
|
|
3309
|
+
return cs(this);
|
|
3339
3310
|
},
|
|
3340
3311
|
exactOptional() {
|
|
3341
|
-
return
|
|
3312
|
+
return us(this);
|
|
3342
3313
|
},
|
|
3343
3314
|
nullable() {
|
|
3344
|
-
return
|
|
3315
|
+
return fs(this);
|
|
3345
3316
|
},
|
|
3346
3317
|
nullish() {
|
|
3347
|
-
return
|
|
3318
|
+
return cs(fs(this));
|
|
3348
3319
|
},
|
|
3349
3320
|
nonoptional(e) {
|
|
3350
|
-
return
|
|
3321
|
+
return vs(this, e);
|
|
3351
3322
|
},
|
|
3352
3323
|
array() {
|
|
3353
|
-
return
|
|
3324
|
+
return Xo(this);
|
|
3354
3325
|
},
|
|
3355
3326
|
or(e) {
|
|
3356
|
-
return
|
|
3327
|
+
return es([this, e]);
|
|
3357
3328
|
},
|
|
3358
3329
|
and(e) {
|
|
3359
|
-
return
|
|
3330
|
+
return ns(this, e);
|
|
3360
3331
|
},
|
|
3361
3332
|
transform(e) {
|
|
3362
|
-
return
|
|
3333
|
+
return Ss(this, os(e));
|
|
3363
3334
|
},
|
|
3364
3335
|
default(e) {
|
|
3365
|
-
return
|
|
3336
|
+
return ms(this, e);
|
|
3366
3337
|
},
|
|
3367
3338
|
prefault(e) {
|
|
3368
|
-
return
|
|
3339
|
+
return gs(this, e);
|
|
3369
3340
|
},
|
|
3370
3341
|
catch(e) {
|
|
3371
|
-
return
|
|
3342
|
+
return bs(this, e);
|
|
3372
3343
|
},
|
|
3373
3344
|
pipe(e) {
|
|
3374
|
-
return
|
|
3345
|
+
return Ss(this, e);
|
|
3375
3346
|
},
|
|
3376
3347
|
readonly() {
|
|
3377
|
-
return
|
|
3348
|
+
return ws(this);
|
|
3378
3349
|
},
|
|
3379
3350
|
describe(e) {
|
|
3380
3351
|
let t = this.clone();
|
|
3381
|
-
return
|
|
3352
|
+
return V.add(t, { description: e }), t;
|
|
3382
3353
|
},
|
|
3383
3354
|
meta(...e) {
|
|
3384
|
-
if (e.length === 0) return
|
|
3355
|
+
if (e.length === 0) return V.get(this);
|
|
3385
3356
|
let t = this.clone();
|
|
3386
|
-
return
|
|
3357
|
+
return V.add(t, e[0]), t;
|
|
3387
3358
|
},
|
|
3388
3359
|
isOptional() {
|
|
3389
3360
|
return this.safeParse(void 0).success;
|
|
@@ -3395,8 +3366,8 @@ var Q = /*@__PURE__*/ O("ZodType", (e, t) => (fo(), P.init(e, t), e.def = t, e.t
|
|
|
3395
3366
|
return t.length === 0 ? e(this) : e(this, ...t);
|
|
3396
3367
|
},
|
|
3397
3368
|
get "~standard"() {
|
|
3398
|
-
return
|
|
3399
|
-
...
|
|
3369
|
+
return ke(this, "~standard", {
|
|
3370
|
+
..._n(this),
|
|
3400
3371
|
jsonSchema: {
|
|
3401
3372
|
input: ga(this, "input"),
|
|
3402
3373
|
output: ga(this, "output")
|
|
@@ -3404,7 +3375,7 @@ var Q = /*@__PURE__*/ O("ZodType", (e, t) => (fo(), P.init(e, t), e.def = t, e.t
|
|
|
3404
3375
|
});
|
|
3405
3376
|
},
|
|
3406
3377
|
set "~standard"(e) {
|
|
3407
|
-
|
|
3378
|
+
w(this, "~standard", e);
|
|
3408
3379
|
},
|
|
3409
3380
|
parse: function e(t, n) {
|
|
3410
3381
|
return $a(this, t, n, { callee: e });
|
|
@@ -3422,13 +3393,13 @@ var Q = /*@__PURE__*/ O("ZodType", (e, t) => (fo(), P.init(e, t), e.def = t, e.t
|
|
|
3422
3393
|
return this?.safeParseAsync;
|
|
3423
3394
|
},
|
|
3424
3395
|
set spa(e) {
|
|
3425
|
-
|
|
3396
|
+
w(this, "spa", e);
|
|
3426
3397
|
},
|
|
3427
3398
|
validate(e, t) {
|
|
3428
|
-
return
|
|
3399
|
+
return ot(this, e, t);
|
|
3429
3400
|
},
|
|
3430
3401
|
validateAsync(e, t) {
|
|
3431
|
-
return
|
|
3402
|
+
return ct(this, e, t);
|
|
3432
3403
|
},
|
|
3433
3404
|
encode: function e(t, n) {
|
|
3434
3405
|
return ro(this, t, n, { callee: e });
|
|
@@ -3458,17 +3429,17 @@ var Q = /*@__PURE__*/ O("ZodType", (e, t) => (fo(), P.init(e, t), e.def = t, e.t
|
|
|
3458
3429
|
return ha(this, {})(e);
|
|
3459
3430
|
},
|
|
3460
3431
|
get description() {
|
|
3461
|
-
return
|
|
3432
|
+
return V.get(this)?.description;
|
|
3462
3433
|
},
|
|
3463
3434
|
get _def() {
|
|
3464
3435
|
return this._zod.def;
|
|
3465
3436
|
}
|
|
3466
|
-
}), mo = /*@__PURE__*/
|
|
3467
|
-
|
|
3468
|
-
}, /*@__PURE__*/
|
|
3469
|
-
format: (e) =>
|
|
3470
|
-
minLength: (e) =>
|
|
3471
|
-
maxLength: (e) =>
|
|
3437
|
+
}), mo = /*@__PURE__*/ D("_ZodString", (e, t) => {
|
|
3438
|
+
vn.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ka(e, t, n, r);
|
|
3439
|
+
}, /*@__PURE__*/ Ae({
|
|
3440
|
+
format: (e) => Y(e).format ?? null,
|
|
3441
|
+
minLength: (e) => Y(e).minimum ?? null,
|
|
3442
|
+
maxLength: (e) => Y(e).maximum ?? null
|
|
3472
3443
|
}, {
|
|
3473
3444
|
regex(...e) {
|
|
3474
3445
|
return this.check(/* @__PURE__ */ Wi(...e));
|
|
@@ -3515,74 +3486,74 @@ var Q = /*@__PURE__*/ O("ZodType", (e, t) => (fo(), P.init(e, t), e.def = t, e.t
|
|
|
3515
3486
|
slugify() {
|
|
3516
3487
|
return this.check(/* @__PURE__ */ ea());
|
|
3517
3488
|
}
|
|
3518
|
-
})), ho = /*@__PURE__*/
|
|
3519
|
-
|
|
3489
|
+
})), ho = /*@__PURE__*/ D("ZodString", (e, t) => {
|
|
3490
|
+
vn.init(e, t), mo.init(e, t);
|
|
3520
3491
|
}, {
|
|
3521
3492
|
email(e) {
|
|
3522
3493
|
return this.check(/* @__PURE__ */ ai(xo, e));
|
|
3523
3494
|
},
|
|
3524
3495
|
url(e) {
|
|
3525
|
-
return this.check(/* @__PURE__ */ di(
|
|
3496
|
+
return this.check(/* @__PURE__ */ di(Co, e));
|
|
3526
3497
|
},
|
|
3527
3498
|
jwt(e) {
|
|
3528
|
-
return this.check(/* @__PURE__ */ Ei(
|
|
3499
|
+
return this.check(/* @__PURE__ */ Ei(Ro, e));
|
|
3529
3500
|
},
|
|
3530
3501
|
emoji(e) {
|
|
3531
|
-
return this.check(/* @__PURE__ */ fi(
|
|
3502
|
+
return this.check(/* @__PURE__ */ fi(wo, e));
|
|
3532
3503
|
},
|
|
3533
3504
|
guid(e) {
|
|
3534
3505
|
return this.check(/* @__PURE__ */ oi(So, e));
|
|
3535
3506
|
},
|
|
3536
3507
|
uuid(e) {
|
|
3537
|
-
return this.check(/* @__PURE__ */ si(
|
|
3508
|
+
return this.check(/* @__PURE__ */ si($, e));
|
|
3538
3509
|
},
|
|
3539
3510
|
uuidv4(e) {
|
|
3540
|
-
return this.check(/* @__PURE__ */ ci(
|
|
3511
|
+
return this.check(/* @__PURE__ */ ci($, e));
|
|
3541
3512
|
},
|
|
3542
3513
|
uuidv6(e) {
|
|
3543
|
-
return this.check(/* @__PURE__ */ li(
|
|
3514
|
+
return this.check(/* @__PURE__ */ li($, e));
|
|
3544
3515
|
},
|
|
3545
3516
|
uuidv7(e) {
|
|
3546
|
-
return this.check(/* @__PURE__ */ ui(
|
|
3517
|
+
return this.check(/* @__PURE__ */ ui($, e));
|
|
3547
3518
|
},
|
|
3548
3519
|
nanoid(e) {
|
|
3549
|
-
return this.check(/* @__PURE__ */ pi(
|
|
3520
|
+
return this.check(/* @__PURE__ */ pi(To, e));
|
|
3550
3521
|
},
|
|
3551
3522
|
cuid(e) {
|
|
3552
|
-
return this.check(/* @__PURE__ */ mi(
|
|
3523
|
+
return this.check(/* @__PURE__ */ mi(Eo, e));
|
|
3553
3524
|
},
|
|
3554
3525
|
cuid2(e) {
|
|
3555
|
-
return this.check(/* @__PURE__ */ hi(
|
|
3526
|
+
return this.check(/* @__PURE__ */ hi(Do, e));
|
|
3556
3527
|
},
|
|
3557
3528
|
ulid(e) {
|
|
3558
|
-
return this.check(/* @__PURE__ */ gi(
|
|
3529
|
+
return this.check(/* @__PURE__ */ gi(Oo, e));
|
|
3559
3530
|
},
|
|
3560
3531
|
base64(e) {
|
|
3561
|
-
return this.check(/* @__PURE__ */ Ci(
|
|
3532
|
+
return this.check(/* @__PURE__ */ Ci(Fo, e));
|
|
3562
3533
|
},
|
|
3563
3534
|
base64url(e) {
|
|
3564
|
-
return this.check(/* @__PURE__ */ wi(
|
|
3535
|
+
return this.check(/* @__PURE__ */ wi(Io, e));
|
|
3565
3536
|
},
|
|
3566
3537
|
xid(e) {
|
|
3567
|
-
return this.check(/* @__PURE__ */ _i(
|
|
3538
|
+
return this.check(/* @__PURE__ */ _i(ko, e));
|
|
3568
3539
|
},
|
|
3569
3540
|
ksuid(e) {
|
|
3570
|
-
return this.check(/* @__PURE__ */ vi(
|
|
3541
|
+
return this.check(/* @__PURE__ */ vi(Ao, e));
|
|
3571
3542
|
},
|
|
3572
3543
|
ipv4(e) {
|
|
3573
|
-
return this.check(/* @__PURE__ */ yi(
|
|
3544
|
+
return this.check(/* @__PURE__ */ yi(jo, e));
|
|
3574
3545
|
},
|
|
3575
3546
|
ipv6(e) {
|
|
3576
|
-
return this.check(/* @__PURE__ */ bi(
|
|
3547
|
+
return this.check(/* @__PURE__ */ bi(Mo, e));
|
|
3577
3548
|
},
|
|
3578
3549
|
cidrv4(e) {
|
|
3579
|
-
return this.check(/* @__PURE__ */ xi(
|
|
3550
|
+
return this.check(/* @__PURE__ */ xi(No, e));
|
|
3580
3551
|
},
|
|
3581
3552
|
cidrv6(e) {
|
|
3582
|
-
return this.check(/* @__PURE__ */ Si(
|
|
3553
|
+
return this.check(/* @__PURE__ */ Si(Po, e));
|
|
3583
3554
|
},
|
|
3584
3555
|
e164(e) {
|
|
3585
|
-
return this.check(/* @__PURE__ */ Ti(
|
|
3556
|
+
return this.check(/* @__PURE__ */ Ti(Lo, e));
|
|
3586
3557
|
},
|
|
3587
3558
|
datetime(e) {
|
|
3588
3559
|
return this.check(/* @__PURE__ */ Di(_o, e));
|
|
@@ -3600,70 +3571,70 @@ var Q = /*@__PURE__*/ O("ZodType", (e, t) => (fo(), P.init(e, t), e.def = t, e.t
|
|
|
3600
3571
|
function go(e) {
|
|
3601
3572
|
return /* @__PURE__ */ ii(ho, e);
|
|
3602
3573
|
}
|
|
3603
|
-
var
|
|
3604
|
-
|
|
3605
|
-
}), _o = /*@__PURE__*/
|
|
3606
|
-
|
|
3607
|
-
}), vo = /*@__PURE__*/
|
|
3608
|
-
|
|
3609
|
-
}), yo = /*@__PURE__*/
|
|
3610
|
-
|
|
3611
|
-
}), bo = /*@__PURE__*/
|
|
3612
|
-
|
|
3613
|
-
}), xo = /*@__PURE__*/
|
|
3614
|
-
|
|
3615
|
-
}), So = /*@__PURE__*/
|
|
3616
|
-
|
|
3617
|
-
}),
|
|
3618
|
-
|
|
3619
|
-
}),
|
|
3620
|
-
|
|
3621
|
-
}),
|
|
3622
|
-
|
|
3623
|
-
}),
|
|
3624
|
-
|
|
3625
|
-
}),
|
|
3626
|
-
|
|
3627
|
-
}),
|
|
3628
|
-
|
|
3629
|
-
}),
|
|
3630
|
-
|
|
3631
|
-
}),
|
|
3632
|
-
|
|
3633
|
-
}),
|
|
3634
|
-
|
|
3635
|
-
}),
|
|
3636
|
-
|
|
3637
|
-
}),
|
|
3638
|
-
|
|
3639
|
-
}),
|
|
3640
|
-
|
|
3641
|
-
}),
|
|
3642
|
-
|
|
3643
|
-
}),
|
|
3644
|
-
|
|
3645
|
-
}),
|
|
3646
|
-
|
|
3647
|
-
}),
|
|
3648
|
-
|
|
3649
|
-
}),
|
|
3650
|
-
|
|
3651
|
-
}),
|
|
3652
|
-
|
|
3653
|
-
}, /*@__PURE__*/
|
|
3574
|
+
var Q = /*@__PURE__*/ D("ZodStringFormat", (e, t) => {
|
|
3575
|
+
N.init(e, t), mo.init(e, t);
|
|
3576
|
+
}), _o = /*@__PURE__*/ D("ZodISODateTime", (e, t) => {
|
|
3577
|
+
Ln.init(e, t), Q.init(e, t);
|
|
3578
|
+
}), vo = /*@__PURE__*/ D("ZodISODate", (e, t) => {
|
|
3579
|
+
Rn.init(e, t), Q.init(e, t);
|
|
3580
|
+
}), yo = /*@__PURE__*/ D("ZodISOTime", (e, t) => {
|
|
3581
|
+
zn.init(e, t), Q.init(e, t);
|
|
3582
|
+
}), bo = /*@__PURE__*/ D("ZodISODuration", (e, t) => {
|
|
3583
|
+
Bn.init(e, t), Q.init(e, t);
|
|
3584
|
+
}), xo = /*@__PURE__*/ D("ZodEmail", (e, t) => {
|
|
3585
|
+
xn.init(e, t), Q.init(e, t);
|
|
3586
|
+
}), So = /*@__PURE__*/ D("ZodGUID", (e, t) => {
|
|
3587
|
+
yn.init(e, t), Q.init(e, t);
|
|
3588
|
+
}), $ = /*@__PURE__*/ D("ZodUUID", (e, t) => {
|
|
3589
|
+
bn.init(e, t), Q.init(e, t);
|
|
3590
|
+
}), Co = /*@__PURE__*/ D("ZodURL", (e, t) => {
|
|
3591
|
+
kn.init(e, t), Q.init(e, t);
|
|
3592
|
+
}), wo = /*@__PURE__*/ D("ZodEmoji", (e, t) => {
|
|
3593
|
+
An.init(e, t), Q.init(e, t);
|
|
3594
|
+
}), To = /*@__PURE__*/ D("ZodNanoID", (e, t) => {
|
|
3595
|
+
jn.init(e, t), Q.init(e, t);
|
|
3596
|
+
}), Eo = /*@__PURE__*/ D("ZodCUID", (e, t) => {
|
|
3597
|
+
Mn.init(e, t), Q.init(e, t);
|
|
3598
|
+
}), Do = /*@__PURE__*/ D("ZodCUID2", (e, t) => {
|
|
3599
|
+
Nn.init(e, t), Q.init(e, t);
|
|
3600
|
+
}), Oo = /*@__PURE__*/ D("ZodULID", (e, t) => {
|
|
3601
|
+
Pn.init(e, t), Q.init(e, t);
|
|
3602
|
+
}), ko = /*@__PURE__*/ D("ZodXID", (e, t) => {
|
|
3603
|
+
Fn.init(e, t), Q.init(e, t);
|
|
3604
|
+
}), Ao = /*@__PURE__*/ D("ZodKSUID", (e, t) => {
|
|
3605
|
+
In.init(e, t), Q.init(e, t);
|
|
3606
|
+
}), jo = /*@__PURE__*/ D("ZodIPv4", (e, t) => {
|
|
3607
|
+
Vn.init(e, t), Q.init(e, t);
|
|
3608
|
+
}), Mo = /*@__PURE__*/ D("ZodIPv6", (e, t) => {
|
|
3609
|
+
Wn.init(e, t), Q.init(e, t);
|
|
3610
|
+
}), No = /*@__PURE__*/ D("ZodCIDRv4", (e, t) => {
|
|
3611
|
+
Gn.init(e, t), Q.init(e, t);
|
|
3612
|
+
}), Po = /*@__PURE__*/ D("ZodCIDRv6", (e, t) => {
|
|
3613
|
+
qn.init(e, t), Q.init(e, t);
|
|
3614
|
+
}), Fo = /*@__PURE__*/ D("ZodBase64", (e, t) => {
|
|
3615
|
+
Xn.init(e, t), Q.init(e, t);
|
|
3616
|
+
}), Io = /*@__PURE__*/ D("ZodBase64URL", (e, t) => {
|
|
3617
|
+
$n.init(e, t), Q.init(e, t);
|
|
3618
|
+
}), Lo = /*@__PURE__*/ D("ZodE164", (e, t) => {
|
|
3619
|
+
er.init(e, t), Q.init(e, t);
|
|
3620
|
+
}), Ro = /*@__PURE__*/ D("ZodJWT", (e, t) => {
|
|
3621
|
+
nr.init(e, t), Q.init(e, t);
|
|
3622
|
+
}), zo = /*@__PURE__*/ D("ZodNumber", (e, t) => {
|
|
3623
|
+
rr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Aa(e, t, n, r), e.isFinite = !0;
|
|
3624
|
+
}, /*@__PURE__*/ Ae({
|
|
3654
3625
|
minValue: (e) => {
|
|
3655
|
-
let { minimum: t, exclusiveMinimum: n } =
|
|
3626
|
+
let { minimum: t, exclusiveMinimum: n } = Y(e);
|
|
3656
3627
|
return Math.max(t ?? -Infinity, n ?? -Infinity);
|
|
3657
3628
|
},
|
|
3658
3629
|
maxValue: (e) => {
|
|
3659
|
-
let { maximum: t, exclusiveMaximum: n } =
|
|
3630
|
+
let { maximum: t, exclusiveMaximum: n } = Y(e);
|
|
3660
3631
|
return Math.min(t ?? Infinity, n ?? Infinity);
|
|
3661
3632
|
},
|
|
3662
3633
|
isInt: (e) => {
|
|
3663
|
-
let { isInt: t, multipleOf: n } =
|
|
3634
|
+
let { isInt: t, multipleOf: n } = Y(e);
|
|
3664
3635
|
return !!t || !!n?.some(Number.isSafeInteger);
|
|
3665
3636
|
},
|
|
3666
|
-
format: (e) =>
|
|
3637
|
+
format: (e) => Y(e).format ?? null
|
|
3667
3638
|
}, {
|
|
3668
3639
|
gt(e, t) {
|
|
3669
3640
|
return this.check(/* @__PURE__ */ Ri(e, t));
|
|
@@ -3684,10 +3655,10 @@ var $ = /*@__PURE__*/ O("ZodStringFormat", (e, t) => {
|
|
|
3684
3655
|
return this.check(/* @__PURE__ */ Li(e, t));
|
|
3685
3656
|
},
|
|
3686
3657
|
int(e) {
|
|
3687
|
-
return this.check(
|
|
3658
|
+
return this.check(Ho(e));
|
|
3688
3659
|
},
|
|
3689
3660
|
safe(e) {
|
|
3690
|
-
return this.check(
|
|
3661
|
+
return this.check(Ho(e));
|
|
3691
3662
|
},
|
|
3692
3663
|
positive(e) {
|
|
3693
3664
|
return this.check(/* @__PURE__ */ Ri(0, e));
|
|
@@ -3711,35 +3682,35 @@ var $ = /*@__PURE__*/ O("ZodStringFormat", (e, t) => {
|
|
|
3711
3682
|
return this;
|
|
3712
3683
|
}
|
|
3713
3684
|
}));
|
|
3714
|
-
function
|
|
3715
|
-
return /* @__PURE__ */ ji(
|
|
3685
|
+
function Bo(e) {
|
|
3686
|
+
return /* @__PURE__ */ ji(zo, e);
|
|
3716
3687
|
}
|
|
3717
|
-
var
|
|
3718
|
-
|
|
3688
|
+
var Vo = /*@__PURE__*/ D("ZodNumberFormat", (e, t) => {
|
|
3689
|
+
ir.init(e, t), zo.init(e, t);
|
|
3719
3690
|
});
|
|
3720
|
-
function
|
|
3721
|
-
return /* @__PURE__ */ Mi(
|
|
3691
|
+
function Ho(e) {
|
|
3692
|
+
return /* @__PURE__ */ Mi(Vo, e);
|
|
3722
3693
|
}
|
|
3723
|
-
var
|
|
3724
|
-
|
|
3694
|
+
var Uo = /*@__PURE__*/ D("ZodBoolean", (e, t) => {
|
|
3695
|
+
ar.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ja(e, t, n, r);
|
|
3725
3696
|
});
|
|
3726
|
-
function
|
|
3727
|
-
return /* @__PURE__ */ Ni(
|
|
3697
|
+
function Wo(e) {
|
|
3698
|
+
return /* @__PURE__ */ Ni(Uo, e);
|
|
3728
3699
|
}
|
|
3729
|
-
var
|
|
3730
|
-
|
|
3700
|
+
var Go = /*@__PURE__*/ D("ZodUnknown", (e, t) => {
|
|
3701
|
+
or.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
3731
3702
|
});
|
|
3732
|
-
function
|
|
3733
|
-
return /* @__PURE__ */ Pi(
|
|
3703
|
+
function Ko() {
|
|
3704
|
+
return /* @__PURE__ */ Pi(Go);
|
|
3734
3705
|
}
|
|
3735
|
-
var
|
|
3736
|
-
|
|
3706
|
+
var qo = /*@__PURE__*/ D("ZodNever", (e, t) => {
|
|
3707
|
+
sr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ma(e, t, n, r);
|
|
3737
3708
|
});
|
|
3738
|
-
function
|
|
3739
|
-
return /* @__PURE__ */ Fi(
|
|
3709
|
+
function Jo(e) {
|
|
3710
|
+
return /* @__PURE__ */ Fi(qo, e);
|
|
3740
3711
|
}
|
|
3741
|
-
var
|
|
3742
|
-
po(),
|
|
3712
|
+
var Yo = /*@__PURE__*/ D("ZodArray", (e, t) => {
|
|
3713
|
+
po(), dr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ia(e, t, n, r), e.element = t.element;
|
|
3743
3714
|
}, {
|
|
3744
3715
|
min(e, t) {
|
|
3745
3716
|
return this.check(/* @__PURE__ */ Hi(e, t));
|
|
@@ -3757,232 +3728,231 @@ var Xo = /*@__PURE__*/ O("ZodArray", (e, t) => {
|
|
|
3757
3728
|
return this.element;
|
|
3758
3729
|
}
|
|
3759
3730
|
});
|
|
3760
|
-
function
|
|
3761
|
-
return /* @__PURE__ */ ta(
|
|
3731
|
+
function Xo(e, t) {
|
|
3732
|
+
return /* @__PURE__ */ ta(Yo, e, t);
|
|
3762
3733
|
}
|
|
3763
|
-
var
|
|
3764
|
-
po(),
|
|
3734
|
+
var Zo = /*@__PURE__*/ D("ZodObject", (e, t) => {
|
|
3735
|
+
po(), gr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ra(e, t, n, r), Fe(e, "shape", (e) => e._zod.def.shape, !1);
|
|
3765
3736
|
}, {
|
|
3766
3737
|
keyof() {
|
|
3767
|
-
return
|
|
3738
|
+
return is(Object.keys(this._zod.def.shape));
|
|
3768
3739
|
},
|
|
3769
3740
|
catchall(e) {
|
|
3770
3741
|
return this.clone(h(this._zod.def, { catchall: e }));
|
|
3771
3742
|
},
|
|
3772
3743
|
passthrough() {
|
|
3773
|
-
return this.clone(h(this._zod.def, { catchall:
|
|
3744
|
+
return this.clone(h(this._zod.def, { catchall: Ko() }));
|
|
3774
3745
|
},
|
|
3775
3746
|
loose() {
|
|
3776
|
-
return this.clone(h(this._zod.def, { catchall:
|
|
3747
|
+
return this.clone(h(this._zod.def, { catchall: Ko() }));
|
|
3777
3748
|
},
|
|
3778
3749
|
strict() {
|
|
3779
|
-
return this.clone(h(this._zod.def, { catchall:
|
|
3750
|
+
return this.clone(h(this._zod.def, { catchall: Jo() }));
|
|
3780
3751
|
},
|
|
3781
3752
|
strip() {
|
|
3782
3753
|
return this.clone(h(this._zod.def, { catchall: void 0 }));
|
|
3783
3754
|
},
|
|
3784
3755
|
extend(e) {
|
|
3785
|
-
return
|
|
3756
|
+
return me(this, e);
|
|
3786
3757
|
},
|
|
3787
3758
|
safeExtend(e) {
|
|
3788
|
-
return
|
|
3759
|
+
return ge(this, e);
|
|
3789
3760
|
},
|
|
3790
3761
|
merge(e) {
|
|
3791
|
-
return
|
|
3762
|
+
return _e(this, e);
|
|
3792
3763
|
},
|
|
3793
3764
|
pick(e) {
|
|
3794
|
-
return
|
|
3765
|
+
return fe(this, e);
|
|
3795
3766
|
},
|
|
3796
3767
|
omit(e) {
|
|
3797
|
-
return
|
|
3768
|
+
return pe(this, e);
|
|
3798
3769
|
},
|
|
3799
3770
|
partial(...e) {
|
|
3800
|
-
return
|
|
3771
|
+
return ve(ss, this, e[0]);
|
|
3801
3772
|
},
|
|
3802
3773
|
exactPartial(...e) {
|
|
3803
|
-
return
|
|
3774
|
+
return ve(ls, this, e[0], "exactPartial");
|
|
3804
3775
|
},
|
|
3805
3776
|
required(...e) {
|
|
3806
|
-
return
|
|
3777
|
+
return ye(_s, this, e[0]);
|
|
3807
3778
|
}
|
|
3808
3779
|
});
|
|
3809
|
-
function
|
|
3810
|
-
return new
|
|
3780
|
+
function Qo(e, t) {
|
|
3781
|
+
return new Zo({
|
|
3811
3782
|
type: "object",
|
|
3812
3783
|
shape: e ?? {},
|
|
3813
|
-
...
|
|
3784
|
+
...v(t)
|
|
3814
3785
|
});
|
|
3815
3786
|
}
|
|
3816
|
-
var
|
|
3817
|
-
|
|
3787
|
+
var $o = /*@__PURE__*/ D("ZodUnion", (e, t) => {
|
|
3788
|
+
vr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => za(e, t, n, r), e.options = t.options;
|
|
3818
3789
|
});
|
|
3819
|
-
function
|
|
3820
|
-
return new
|
|
3790
|
+
function es(e, t) {
|
|
3791
|
+
return new $o({
|
|
3821
3792
|
type: "union",
|
|
3822
3793
|
options: e,
|
|
3823
|
-
...
|
|
3794
|
+
...v(t)
|
|
3824
3795
|
});
|
|
3825
3796
|
}
|
|
3826
|
-
var
|
|
3827
|
-
|
|
3797
|
+
var ts = /*@__PURE__*/ D("ZodIntersection", (e, t) => {
|
|
3798
|
+
yr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ba(e, t, n, r);
|
|
3828
3799
|
});
|
|
3829
|
-
function
|
|
3830
|
-
return new
|
|
3800
|
+
function ns(e, t) {
|
|
3801
|
+
return new ts({
|
|
3831
3802
|
type: "intersection",
|
|
3832
3803
|
left: e,
|
|
3833
3804
|
right: t
|
|
3834
3805
|
});
|
|
3835
3806
|
}
|
|
3836
|
-
var
|
|
3837
|
-
|
|
3807
|
+
var rs = /*@__PURE__*/ D("ZodEnum", (e, t) => {
|
|
3808
|
+
Sr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Na(e, t, n, r), e.enum = t.entries, e.options = [...e._zod.values];
|
|
3838
3809
|
let n = new Set(Object.keys(t.entries));
|
|
3839
3810
|
e.extract = (e, r) => {
|
|
3840
3811
|
let i = {};
|
|
3841
3812
|
for (let r of e) if (n.has(r)) i[r] = t.entries[r];
|
|
3842
3813
|
else throw Error(`Key ${r} not found in enum`);
|
|
3843
|
-
return new
|
|
3814
|
+
return new rs({
|
|
3844
3815
|
...t,
|
|
3845
3816
|
checks: [],
|
|
3846
|
-
...
|
|
3817
|
+
...v(r),
|
|
3847
3818
|
entries: i
|
|
3848
3819
|
});
|
|
3849
3820
|
}, e.exclude = (e, r) => {
|
|
3850
3821
|
let i = { ...t.entries };
|
|
3851
3822
|
for (let t of e) if (n.has(t)) delete i[t];
|
|
3852
3823
|
else throw Error(`Key ${t} not found in enum`);
|
|
3853
|
-
return new
|
|
3824
|
+
return new rs({
|
|
3854
3825
|
...t,
|
|
3855
3826
|
checks: [],
|
|
3856
|
-
...
|
|
3827
|
+
...v(r),
|
|
3857
3828
|
entries: i
|
|
3858
3829
|
});
|
|
3859
3830
|
};
|
|
3860
3831
|
});
|
|
3861
|
-
function
|
|
3862
|
-
return new
|
|
3832
|
+
function is(e, t) {
|
|
3833
|
+
return new rs({
|
|
3863
3834
|
type: "enum",
|
|
3864
3835
|
entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
|
|
3865
|
-
...
|
|
3836
|
+
...v(t)
|
|
3866
3837
|
});
|
|
3867
3838
|
}
|
|
3868
|
-
var
|
|
3869
|
-
po(),
|
|
3870
|
-
if (r.direction === "backward") throw new
|
|
3839
|
+
var as = /*@__PURE__*/ D("ZodTransform", (e, t) => {
|
|
3840
|
+
po(), Cr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Fa(e, t, n, r), e._zod.parse = (n, r) => {
|
|
3841
|
+
if (r.direction === "backward") throw new He(e.constructor.name);
|
|
3871
3842
|
n.addIssue = (r) => {
|
|
3872
|
-
if (typeof r == "string") n.issues.push(
|
|
3843
|
+
if (typeof r == "string") n.issues.push(C(r, n.value, t));
|
|
3873
3844
|
else {
|
|
3874
3845
|
let t = r;
|
|
3875
|
-
t.fatal && (t.continue = !1), t.code ??= "custom", "input" in t || (t.input = n.value), t.inst ??= e, n.issues.push(
|
|
3846
|
+
t.fatal && (t.continue = !1), t.code ??= "custom", "input" in t || (t.input = n.value), t.inst ??= e, n.issues.push(C(t));
|
|
3876
3847
|
}
|
|
3877
3848
|
};
|
|
3878
3849
|
let i = t.transform(n.value, n);
|
|
3879
3850
|
return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
|
|
3880
3851
|
};
|
|
3881
3852
|
});
|
|
3882
|
-
function
|
|
3883
|
-
return new
|
|
3853
|
+
function os(e) {
|
|
3854
|
+
return new as({
|
|
3884
3855
|
type: "transform",
|
|
3885
3856
|
transform: e
|
|
3886
3857
|
});
|
|
3887
3858
|
}
|
|
3888
|
-
var
|
|
3889
|
-
|
|
3859
|
+
var ss = /*@__PURE__*/ D("ZodOptional", (e, t) => {
|
|
3860
|
+
Tr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xa(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3890
3861
|
});
|
|
3891
|
-
function
|
|
3892
|
-
return new
|
|
3862
|
+
function cs(e) {
|
|
3863
|
+
return new ss({
|
|
3893
3864
|
type: "optional",
|
|
3894
3865
|
innerType: e
|
|
3895
3866
|
});
|
|
3896
3867
|
}
|
|
3897
|
-
var
|
|
3898
|
-
|
|
3868
|
+
var ls = /*@__PURE__*/ D("ZodExactOptional", (e, t) => {
|
|
3869
|
+
Er.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xa(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3899
3870
|
});
|
|
3900
|
-
function
|
|
3901
|
-
return new
|
|
3871
|
+
function us(e) {
|
|
3872
|
+
return new ls({
|
|
3902
3873
|
type: "optional",
|
|
3903
3874
|
innerType: e
|
|
3904
3875
|
});
|
|
3905
3876
|
}
|
|
3906
|
-
var
|
|
3907
|
-
|
|
3877
|
+
var ds = /*@__PURE__*/ D("ZodNullable", (e, t) => {
|
|
3878
|
+
Dr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Va(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3908
3879
|
});
|
|
3909
|
-
function
|
|
3910
|
-
return new
|
|
3880
|
+
function fs(e) {
|
|
3881
|
+
return new ds({
|
|
3911
3882
|
type: "nullable",
|
|
3912
3883
|
innerType: e
|
|
3913
3884
|
});
|
|
3914
3885
|
}
|
|
3915
|
-
var
|
|
3916
|
-
|
|
3886
|
+
var ps = /*@__PURE__*/ D("ZodDefault", (e, t) => {
|
|
3887
|
+
Or.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ga(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
3917
3888
|
});
|
|
3918
|
-
function
|
|
3919
|
-
return new
|
|
3889
|
+
function ms(e, t) {
|
|
3890
|
+
return new ps({
|
|
3920
3891
|
type: "default",
|
|
3921
3892
|
innerType: e,
|
|
3922
3893
|
get defaultValue() {
|
|
3923
|
-
return typeof t == "function" ? t() :
|
|
3894
|
+
return typeof t == "function" ? t() : ae(t);
|
|
3924
3895
|
}
|
|
3925
3896
|
});
|
|
3926
3897
|
}
|
|
3927
|
-
var
|
|
3928
|
-
|
|
3898
|
+
var hs = /*@__PURE__*/ D("ZodPrefault", (e, t) => {
|
|
3899
|
+
Ar.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ka(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3929
3900
|
});
|
|
3930
|
-
function
|
|
3931
|
-
return new
|
|
3901
|
+
function gs(e, t) {
|
|
3902
|
+
return new hs({
|
|
3932
3903
|
type: "prefault",
|
|
3933
3904
|
innerType: e,
|
|
3934
3905
|
get defaultValue() {
|
|
3935
|
-
return typeof t == "function" ? t() :
|
|
3906
|
+
return typeof t == "function" ? t() : ae(t);
|
|
3936
3907
|
}
|
|
3937
3908
|
});
|
|
3938
3909
|
}
|
|
3939
|
-
var
|
|
3940
|
-
|
|
3910
|
+
var _s = /*@__PURE__*/ D("ZodNonOptional", (e, t) => {
|
|
3911
|
+
jr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ha(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3941
3912
|
});
|
|
3942
|
-
function
|
|
3943
|
-
return new
|
|
3913
|
+
function vs(e, t) {
|
|
3914
|
+
return new _s({
|
|
3944
3915
|
type: "nonoptional",
|
|
3945
3916
|
innerType: e,
|
|
3946
|
-
...
|
|
3917
|
+
...v(t)
|
|
3947
3918
|
});
|
|
3948
3919
|
}
|
|
3949
|
-
var
|
|
3950
|
-
|
|
3920
|
+
var ys = /*@__PURE__*/ D("ZodCatch", (e, t) => {
|
|
3921
|
+
Pr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => qa(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
3951
3922
|
});
|
|
3952
|
-
function
|
|
3953
|
-
return new
|
|
3923
|
+
function bs(e, t) {
|
|
3924
|
+
return new ys({
|
|
3954
3925
|
type: "catch",
|
|
3955
3926
|
innerType: e,
|
|
3956
|
-
catchValue: typeof t == "function" ? t :
|
|
3927
|
+
catchValue: typeof t == "function" ? t : Le(t)
|
|
3957
3928
|
});
|
|
3958
3929
|
}
|
|
3959
|
-
var
|
|
3960
|
-
|
|
3930
|
+
var xs = /*@__PURE__*/ D("ZodPipe", (e, t) => {
|
|
3931
|
+
Fr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ja(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
3961
3932
|
});
|
|
3962
|
-
function
|
|
3963
|
-
return new
|
|
3933
|
+
function Ss(e, t) {
|
|
3934
|
+
return new xs({
|
|
3964
3935
|
type: "pipe",
|
|
3965
3936
|
in: e,
|
|
3966
3937
|
out: t
|
|
3967
3938
|
});
|
|
3968
3939
|
}
|
|
3969
|
-
var
|
|
3970
|
-
|
|
3940
|
+
var Cs = /*@__PURE__*/ D("ZodReadonly", (e, t) => {
|
|
3941
|
+
Ir.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ya(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3971
3942
|
});
|
|
3972
|
-
function
|
|
3973
|
-
return new
|
|
3943
|
+
function ws(e) {
|
|
3944
|
+
return new Cs({
|
|
3974
3945
|
type: "readonly",
|
|
3975
3946
|
innerType: e
|
|
3976
3947
|
});
|
|
3977
3948
|
}
|
|
3978
|
-
var
|
|
3979
|
-
|
|
3949
|
+
var Ts = /*@__PURE__*/ D("ZodCustom", (e, t) => {
|
|
3950
|
+
Rr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Pa(e, t, n, r);
|
|
3980
3951
|
});
|
|
3981
|
-
function
|
|
3982
|
-
return /* @__PURE__ */ na(
|
|
3952
|
+
function Es(e, t = {}) {
|
|
3953
|
+
return /* @__PURE__ */ na(Ts, e, t);
|
|
3983
3954
|
}
|
|
3984
|
-
function
|
|
3955
|
+
function Ds(e, t) {
|
|
3985
3956
|
return /* @__PURE__ */ ra(e, t);
|
|
3986
3957
|
}
|
|
3987
|
-
|
|
3988
|
-
export { go as a, $o as i, Go as n, Vo as r, as as t };
|
|
3958
|
+
export { go as a, Qo as i, Wo as n, Bo as r, is as t };
|