@hiai-gg/docsmint 2.2.4 → 2.2.5
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 +10 -8
- package/dist/backend/index.js +59962 -40726
- package/dist/frontend/CategoryDialog-CtBDBrmR.js +603 -0
- package/dist/frontend/ConfirmDialog-B7rUgX7M.js +219 -0
- package/dist/frontend/CreateSnapshotDialog-bUKdc0Zb.js +219 -0
- package/dist/frontend/DatePicker-CKTDDpVx.js +291 -0
- package/dist/frontend/DeleteDialog-D28HGxN7.js +175 -0
- package/dist/frontend/FolderNode-CVd22MJS.js +291 -0
- package/dist/frontend/FolderTreeSelector-DObSptCD.js +102 -0
- package/dist/frontend/HiAiEditor--V0-gKwv.js +3266 -0
- package/dist/frontend/HiaiDocsExtensionProvider-B1bCAtpa.js +13 -0
- package/dist/frontend/{Icon-CiHcxcpv.js → Icon-DNapb_KY.js} +3 -2
- package/dist/frontend/SettingsDialog-CN-PrNpM.js +979 -0
- package/dist/frontend/ShareDialog-UO_6vvoT.js +272 -0
- package/dist/frontend/Sidebar-CAxrqTAQ.js +2169 -0
- package/dist/frontend/TagCreateDialog-BdWu4bPX.js +268 -0
- package/dist/frontend/{action_cancel-BdsWzQKU.js → action_cancel-DxbRD-bG.js} +1 -1
- package/dist/frontend/{action_close-CVhfLPRQ.js → action_close-Ct6lVumm.js} +1 -1
- package/dist/frontend/{action_create-ByaroO1_.js → action_create-DKOlnVyX.js} +1 -1
- package/dist/frontend/{action_delete-SRloglWY.js → action_delete-DRb7fBnB.js} +1 -1
- package/dist/frontend/{action_go_to-DO1bicF-.js → action_go_to-D0fF5t1d.js} +1 -1
- package/dist/frontend/{action_loading-iQ0KsN6i.js → action_loading-YGvDyzYG.js} +1 -1
- package/dist/frontend/{action_save-DeqrZQwV.js → action_save-BHYTeFmm.js} +1 -1
- package/dist/frontend/api/categories.js +1 -1
- package/dist/frontend/api/settings.js +1 -1
- package/dist/frontend/api/tags.js +1 -1
- package/dist/frontend/app-shell.js +177 -176
- package/dist/frontend/{auth-client-Dx7d9Tzo.js → auth-client-DahfoSYo.js} +297 -277
- package/dist/frontend/{bundle-mjs-clTO1WW-.js → bundle-mjs-654jE5XN.js} +397 -300
- package/dist/frontend/{camera-DsdOPOcD.js → camera-C6JuKKhr.js} +9 -8
- package/dist/frontend/{categories-CusvHb5Y.js → categories-CUfKlgrs.js} +1 -1
- package/dist/frontend/{categories_update_error-Cn8DBBHv.js → categories_update_error-BrLD-j9s.js} +1 -1
- package/dist/frontend/check-B_e1XqT2.js +25 -0
- package/dist/frontend/chevron-down-BsnN2mp2.js +25 -0
- package/dist/frontend/circle-check-CJH5zxd9.js +29 -0
- package/dist/frontend/clock-CU0gCiiM.js +29 -0
- package/dist/frontend/collaboration.js +113 -113
- package/dist/frontend/components/category-dialog.js +1 -1
- package/dist/frontend/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend/components/delete-dialog.js +1 -1
- package/dist/frontend/components/editor/compact-editor.js +5 -4
- package/dist/frontend/components/editor/document-editor.js +1 -1
- package/dist/frontend/components/editor/document-title.js +3 -2
- package/dist/frontend/components/editor/docx-serializer.js +8359 -12358
- package/dist/frontend/components/editor/extensions.js +1 -1
- package/dist/frontend/components/editor/markdown-toggle.js +33 -32
- package/dist/frontend/components/editor/markdown.js +1 -1
- package/dist/frontend/components/folder-node.js +1 -1
- package/dist/frontend/components/folder-tree-selector.js +1 -1
- package/dist/frontend/components/save-as-dialog.js +168 -167
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.js +1 -1
- package/dist/frontend/components/sidebar.js +1 -1
- package/dist/frontend/components/tag-create-dialog.js +1 -1
- package/dist/frontend/components/version-history.js +252 -251
- package/dist/frontend/{copy-Bag46YaR.js → copy-DYNRCHgk.js} +9 -8
- package/dist/frontend/dashboard.js +1301 -1300
- package/dist/frontend/db-yN0Vve_2.js +4296 -0
- package/dist/frontend/{dialog-C0Bpok1d.js → dialog-Dqp04jso.js} +11 -10
- package/dist/frontend/dist-4xBCgXNT.js +40 -0
- package/dist/frontend/{dist-DjId3RKL.js → dist-BaAULhmK.js} +3 -9
- package/dist/frontend/dist-C1oIyJLI.js +302 -0
- package/dist/frontend/dndzone-CWg1kmdZ.js +1483 -0
- package/dist/frontend/{doc_title_label-BOuZzvqv.js → doc_title_label-BPlghiRM.js} +1 -1
- package/dist/frontend/{doc_title_placeholder-ZxpdWWEn.js → doc_title_placeholder-D-LfSoC5.js} +1 -1
- package/dist/frontend/dropdown-menu-HePwCxoQ.js +1429 -0
- package/dist/frontend/{editorExtensions-DbiFj4tn.js → editorExtensions-QKIFSqEG.js} +9 -9
- package/dist/frontend/{editor_markdown_placeholder-BztIY9Ci.js → editor_markdown_placeholder-BXRPm7JG.js} +1 -1
- package/dist/frontend/{ellipsis-vertical-Oymsv1R4.js → ellipsis-vertical-CR25MyeP.js} +9 -8
- package/dist/frontend/{error_dismiss-C651ZdWI.js → error_dismiss-Ckia7GQe.js} +1 -1
- package/dist/frontend/{error_generic-BlWqOE-a.js → error_generic-gyQMdET_.js} +1 -1
- package/dist/frontend/extension.js +1 -1
- package/dist/frontend/{folder-BpmB_sAy.js → folder-BpA690ie.js} +4 -3
- package/dist/frontend/{folders_rename-Cxbg5GIw.js → folders_rename-BHa_gSXw.js} +1 -1
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/i18n.js +29 -29
- package/dist/frontend/{identity-B7HeOzDJ.js → identity-ndFYB8Nt.js} +1 -1
- package/dist/frontend/{input-CbeB9220.js → input-Cv3qF4J3.js} +9 -8
- package/dist/frontend/label-DXjefKfF.js +30 -0
- package/dist/frontend/{lib-CITdCbKa.js → lib-DJthN0w9.js} +7108 -5196
- package/dist/frontend/loader-circle-CvWX1HHL.js +25 -0
- package/dist/frontend/{markdown-6E9TWC6V.js → markdown-CksQVQ6a.js} +2 -2
- package/dist/frontend/offline/identity.js +1 -1
- package/dist/frontend/popper-layer-force-mount-DS--Cvfo.js +3493 -0
- package/dist/frontend/rolldown-runtime-DKYsOz5J.js +19 -0
- package/dist/frontend/{rotate-ccw-DAUX7np7.js → rotate-ccw-Box7QP5X.js} +9 -8
- package/dist/frontend/{runtime-CGUiMzK6.js → runtime-CJv8UGYl.js} +1 -4
- package/dist/frontend/{schemas-YXxhj5o8.js → schemas-BYbeR0Ky.js} +11 -11
- package/dist/frontend/{scroll_to_top_aria-lJc2RSx_.js → scroll_to_top_aria-CP7_oyCo.js} +1 -1
- package/dist/frontend/search.js +650 -649
- package/dist/frontend/{search_title-BETwQYJq.js → search_title-C2aOzN_J.js} +1 -1
- package/dist/frontend/select-value-DAMTi0zc.js +1473 -0
- package/dist/frontend/{settings-DyePuqjp.js → settings-DTsCVJEi.js} +1 -1
- package/dist/frontend/{share-context-C2xyVP9M.js → share-context-CtRMIIhL.js} +15 -14
- package/dist/frontend/{share_copied-BuAnmpbz.js → share_copied-BHb_9sOo.js} +1 -1
- package/dist/frontend/{share_toggle_password-LEYUeHWr.js → share_toggle_password-DjCMq4Eq.js} +1 -1
- package/dist/frontend/shared-document.js +49 -48
- package/dist/frontend/{sidebar_uncategorized-C5PGOflV.js → sidebar_uncategorized-BJSB_sc9.js} +1 -1
- package/dist/frontend/{sort_relevance-DpCVLby_.js → sort_relevance-CXuNTq6L.js} +1 -1
- package/dist/frontend/{tag-Wdfe0rKU.js → tag-BPOFgBQw.js} +4 -3
- package/dist/frontend/tag-store.svelte-DyqQNx7H.js +28 -0
- package/dist/frontend/{tags-DlDVothf.js → tags-DwilrkrM.js} +1 -1
- package/dist/frontend/{tags_load_error-BINNpPPV.js → tags_load_error-BOyuQEGc.js} +1 -1
- package/dist/frontend/{tags_new-Dw0Uy43-.js → tags_new-CGF3Hi1j.js} +1 -1
- package/dist/frontend/textarea-DDdgNvnf.js +23 -0
- package/dist/frontend/theme.js +1 -1
- package/dist/frontend/{theme.svelte-BiXvrqwh.js → theme.svelte-Dx01qWc3.js} +2 -2
- package/dist/frontend/{theme_system-YIfa_2Xt.js → theme_system-Bt9ItDgj.js} +1 -1
- package/dist/frontend/utils/dndzone.js +1 -1
- package/dist/frontend/{utils-CnAmIMwr.js → utils-BQMesoNf.js} +1 -1
- package/dist/frontend/utils-BavN35Bw.js +6 -0
- package/dist/frontend/utils.js +1 -1
- package/dist/frontend/{version_create_snapshot-D8xjbuCq.js → version_create_snapshot-BvoOuUeh.js} +1 -1
- package/dist/frontend/{version_restored_from-DYFFSuQj.js → version_restored_from-BIEEKFbx.js} +1 -1
- package/dist/frontend/{version_snapshot_label_placeholder-BhKq1NQ7.js → version_snapshot_label_placeholder-h9r2_0u3.js} +1 -1
- package/dist/frontend/{weekday_we-BxbzNVWR.js → weekday_we-DsuVW6rh.js} +1 -1
- package/dist/frontend/x-hIpDH7DU.js +25 -0
- package/dist/frontend/{yjs-BbwnvxgY.js → yjs--VgxqIlB.js} +607 -628
- package/dist/frontend-ssr/api/categories.js +1 -1
- package/dist/frontend-ssr/api/settings.js +1 -1
- package/dist/frontend-ssr/api/tags.js +1 -1
- package/dist/frontend-ssr/app-shell.js +11 -11
- package/dist/frontend-ssr/assets/{CategoryDialog-2CCX508O.js → CategoryDialog-DRItbO_9.js} +13 -13
- package/dist/frontend-ssr/assets/{ConfirmDialog-Cc6lcY1N.js → ConfirmDialog-B0NXRrel.js} +8 -8
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-BB8fXF9W.js → CreateSnapshotDialog-nj8PjuON.js} +7 -7
- package/dist/frontend-ssr/assets/{DatePicker-CfzKzipR.js → DatePicker-CdUKLPtP.js} +8 -8
- package/dist/frontend-ssr/assets/{DeleteDialog-DRU4UgOW.js → DeleteDialog-B83NoxAg.js} +3 -3
- package/dist/frontend-ssr/assets/{FolderNode-CyOrLJ2Y.js → FolderNode-CSeC3051.js} +10 -10
- package/dist/frontend-ssr/assets/{FolderTreeSelector-D0reTdFS.js → FolderTreeSelector-Dh-ViJPU.js} +4 -4
- package/dist/frontend-ssr/assets/{HiAiEditor-BQGlGd3z.js → HiAiEditor-DB2PjHm9.js} +41 -41
- package/dist/frontend-ssr/assets/{Icon-CrIRbT5O.js → Icon-CBEeswQ2.js} +4 -4
- package/dist/frontend-ssr/assets/{SettingsDialog-BpHY3IMb.js → SettingsDialog-kc3O9PXG.js} +21 -21
- package/dist/frontend-ssr/assets/{ShareDialog-CY40nWZJ.js → ShareDialog-Dmrj55QP.js} +4 -4
- package/dist/frontend-ssr/assets/{Sidebar-dTp4DyW4.js → Sidebar-CDQcIuyv.js} +45 -45
- package/dist/frontend-ssr/assets/{TagCreateDialog-C2tpdEuj.js → TagCreateDialog-CP-yYfpQ.js} +11 -11
- package/dist/frontend-ssr/assets/{action_cancel-CsBbxW0m.js → action_cancel-B8i5P3wt.js} +1 -1
- package/dist/frontend-ssr/assets/{action_close-lFKBqBwg.js → action_close-DPgIB-cY.js} +1 -1
- package/dist/frontend-ssr/assets/{action_create-BV4ZOcQW.js → action_create-DAlNPFeN.js} +1 -1
- package/dist/frontend-ssr/assets/{action_delete-CNmRhKQP.js → action_delete-C6lsQCtY.js} +1 -1
- package/dist/frontend-ssr/assets/{action_go_to-tN5I26xM.js → action_go_to-C6tegi-k.js} +1 -1
- package/dist/frontend-ssr/assets/{action_save-YCfMiKb4.js → action_save-BQCej1sh.js} +1 -1
- package/dist/frontend-ssr/assets/{auth-client-BnnnJDAb.js → auth-client-CwXGsJIQ.js} +44 -38
- package/dist/frontend-ssr/assets/{camera-OYNSMvMd.js → camera-kjjsHmQu.js} +2 -2
- package/dist/frontend-ssr/assets/{categories_update_error-Bfx5vtvt.js → categories_update_error-Kq8q_FJp.js} +1 -1
- package/dist/frontend-ssr/assets/{chevron-down-DB6YsSbQ.js → chevron-down-DPc-Owbl.js} +2 -2
- package/dist/frontend-ssr/assets/{chevron-right-DOt2uY6b.js → chevron-right-C-jY4mqk.js} +2 -2
- package/dist/frontend-ssr/assets/{circle-check-DQhTm9YR.js → circle-check-CnueRXrc.js} +2 -2
- package/dist/frontend-ssr/assets/{clock-B08dVWtf.js → clock-CoRtIDhT.js} +2 -2
- package/dist/frontend-ssr/assets/{copy-2jsznHar.js → copy-CDNZIGVg.js} +2 -2
- package/dist/frontend-ssr/assets/{db-BEKLU5Fc.js → db-NhMsSg1f.js} +1 -1
- package/dist/frontend-ssr/assets/{dialog-C6U-DqLr.js → dialog-B09MN2S-.js} +9 -9
- package/dist/frontend-ssr/assets/{dist-DqXTz_zE.js → dist-D4MAfF0i.js} +13 -13
- package/dist/frontend-ssr/assets/{dist-ip9bPdma.js → dist-cDG_u5EF.js} +8 -8
- package/dist/frontend-ssr/assets/{dndzone-C7KnICM0.js → dndzone-DyM8UtoT.js} +378 -216
- package/dist/frontend-ssr/assets/{doc_title_label-CE_l-Gum.js → doc_title_label-BqCuH3eY.js} +1 -1
- package/dist/frontend-ssr/assets/{doc_title_placeholder-7_i7PtG6.js → doc_title_placeholder-C3tGSpRB.js} +1 -1
- package/dist/frontend-ssr/assets/dropdown-menu-C9H45F9X.js +1721 -0
- package/dist/frontend-ssr/assets/{editor_markdown_placeholder-CAeLJjFT.js → editor_markdown_placeholder-Cxa5uq87.js} +1 -1
- package/dist/frontend-ssr/assets/{editor_toolbar_undo-CVCfQIS1.js → editor_toolbar_undo-D-gLz88j.js} +1 -1
- package/dist/frontend-ssr/assets/{ellipsis-vertical-IFHt2NM1.js → ellipsis-vertical-oBvMj3Jm.js} +2 -2
- package/dist/frontend-ssr/assets/{error_generic-BB80i0Vk.js → error_generic-BSoVZ_4p.js} +1 -1
- package/dist/frontend-ssr/assets/{folder-CXa1_bm5.js → folder-Ptjeaody.js} +2 -2
- package/dist/frontend-ssr/assets/{folders_rename-ydbfwQlj.js → folders_rename-DBtQcf2R.js} +1 -1
- package/dist/frontend-ssr/assets/{identity-DTz1SQwC.js → identity-CigCqYEA.js} +1 -1
- package/dist/frontend-ssr/assets/{input-Bxw9sFF0.js → input-Cc45dG_S.js} +2 -2
- package/dist/frontend-ssr/assets/{label-CMWedjs6.js → label-C1_J2397.js} +2 -2
- package/dist/frontend-ssr/assets/{loader-circle-zbKj9Qb-.js → loader-circle-CK3McH5n.js} +2 -2
- package/dist/frontend-ssr/assets/{markdown-BmIhDQp7.js → markdown-WQsa_gay.js} +1 -1
- package/dist/frontend-ssr/assets/{popper-layer-force-mount-CSHZsG2E.js → popper-layer-force-mount-CGKwdZaZ.js} +1448 -2402
- package/dist/frontend-ssr/assets/{rotate-ccw-B7SaTFWf.js → rotate-ccw-B1lCxJ5d.js} +2 -2
- package/dist/frontend-ssr/assets/{runtime-BX6-jTn_.js → runtime-CoxALrm1.js} +2 -28
- package/dist/frontend-ssr/assets/{scroll_to_top_aria-CAYSiGHO.js → scroll_to_top_aria-CmLwsPln.js} +1 -1
- package/dist/frontend-ssr/assets/{search_title-C7NVXXq3.js → search_title-CZIl0wkq.js} +1 -1
- package/dist/frontend-ssr/assets/{search_toggle_filters-Bq_YVD8s.js → search_toggle_filters-BG-CRM9G.js} +1 -1
- package/dist/frontend-ssr/assets/{select-value-TgslfiUB.js → select-value-BeUHHkLq.js} +157 -66
- package/dist/frontend-ssr/assets/{settings-B1MA_FjO.js → settings-BqyemuQv.js} +1 -1
- package/dist/frontend-ssr/assets/{share-context-RVh8AExX.js → share-context-BM1sUnlP.js} +15 -15
- package/dist/frontend-ssr/assets/{share_copied-CrwEwkb3.js → share_copied-BVGtm9Ud.js} +1 -1
- package/dist/frontend-ssr/assets/{share_toggle_password-Co56z0Ha.js → share_toggle_password-z0gwy0TG.js} +1 -1
- package/dist/frontend-ssr/assets/{sidebar_uncategorized-COWdmZ3d.js → sidebar_uncategorized-rpbsgLVr.js} +1 -1
- package/dist/frontend-ssr/assets/{tag-BGhtDKpP.js → tag-D_ZqINN3.js} +3 -3
- package/dist/frontend-ssr/assets/{tags_load_error-DW4FbHvr.js → tags_load_error-DvhlyMMY.js} +1 -1
- package/dist/frontend-ssr/assets/{tags_new-Dr3ByMPZ.js → tags_new-DStxzBII.js} +1 -1
- package/dist/frontend-ssr/assets/{textarea-Bz5Tz4rw.js → textarea-S9uzw6je.js} +2 -2
- package/dist/frontend-ssr/assets/{theme.svelte-CdHah46l.js → theme.svelte-CqAzqvik.js} +2 -2
- package/dist/frontend-ssr/assets/{theme_system-E97FASeq.js → theme_system-DjbsL0RQ.js} +1 -1
- package/dist/frontend-ssr/assets/{utils-DF6CmRDX.js → utils-DF93j6z-.js} +1 -1
- package/dist/frontend-ssr/assets/{version_create_snapshot-DeeYB7bb.js → version_create_snapshot-SwYsTZ56.js} +1 -1
- package/dist/frontend-ssr/assets/{version_restored_from-CTt2LM4A.js → version_restored_from-pYBnudye.js} +1 -1
- package/dist/frontend-ssr/assets/{version_snapshot_label_placeholder-BbGD9YuN.js → version_snapshot_label_placeholder-DtDnHip8.js} +1 -1
- package/dist/frontend-ssr/assets/{weekday_we-BzGQ-iFc.js → weekday_we-CV1TMROW.js} +1 -1
- package/dist/frontend-ssr/components/category-dialog.js +1 -1
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend-ssr/components/delete-dialog.js +1 -1
- package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
- package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
- package/dist/frontend-ssr/components/editor/document-title.js +2 -2
- package/dist/frontend-ssr/components/editor/extensions.js +1 -1
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +3 -3
- package/dist/frontend-ssr/components/editor/markdown.js +1 -1
- package/dist/frontend-ssr/components/folder-node.js +1 -1
- package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
- package/dist/frontend-ssr/components/save-as-dialog.js +10 -10
- package/dist/frontend-ssr/components/settings.js +1 -1
- package/dist/frontend-ssr/components/share-dialog.js +1 -1
- package/dist/frontend-ssr/components/sidebar.js +1 -1
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
- package/dist/frontend-ssr/components/version-history.js +17 -17
- package/dist/frontend-ssr/dashboard.js +61 -158
- package/dist/frontend-ssr/extension.js +1 -1
- package/dist/frontend-ssr/i18n.js +31 -31
- package/dist/frontend-ssr/offline/identity.js +1 -1
- package/dist/frontend-ssr/search.js +13 -13
- package/dist/frontend-ssr/shared-document.js +1 -1
- package/dist/frontend-ssr/theme.js +1 -1
- package/dist/frontend-ssr/utils/dndzone.js +1 -1
- package/dist/lifecycle-runtime.js +17768 -11203
- package/dist/mcp-cli.js +1 -1
- package/dist/mcp-server.js +1 -1
- package/package.json +13 -13
- package/packages/cli/src/index.ts +1 -1
- package/server.json +2 -2
- package/dist/frontend/CategoryDialog-CVJi5PJu.js +0 -602
- package/dist/frontend/ConfirmDialog-0JwB8mKN.js +0 -218
- package/dist/frontend/CreateSnapshotDialog-BLrtuYs5.js +0 -218
- package/dist/frontend/DatePicker-BwSb8TRv.js +0 -326
- package/dist/frontend/DeleteDialog-s7Dr6bXg.js +0 -174
- package/dist/frontend/FolderNode-Ds0LDfK3.js +0 -290
- package/dist/frontend/FolderTreeSelector-BR3lYmPU.js +0 -101
- package/dist/frontend/HiAiEditor-BHz46Iqd.js +0 -3078
- package/dist/frontend/HiaiDocsExtensionProvider-A2nGddUR.js +0 -12
- package/dist/frontend/SettingsDialog-BvS74JZu.js +0 -978
- package/dist/frontend/ShareDialog-Bo50h_Oe.js +0 -271
- package/dist/frontend/Sidebar-DerKtpWB.js +0 -2168
- package/dist/frontend/TagCreateDialog-DhKfsfv3.js +0 -267
- package/dist/frontend/check-DiMZRkKS.js +0 -24
- package/dist/frontend/chevron-down-CxFrMFDJ.js +0 -24
- package/dist/frontend/circle-check-B4F_qgPx.js +0 -28
- package/dist/frontend/clock-dcpueRk-.js +0 -28
- package/dist/frontend/db-B1ZV452J.js +0 -3792
- package/dist/frontend/dist-BlcV_BOY.js +0 -39
- package/dist/frontend/dist-Dl9qg10h.js +0 -301
- package/dist/frontend/dndzone-B9jA0yIS.js +0 -1372
- package/dist/frontend/dropdown-menu-B3nk2aM-.js +0 -482
- package/dist/frontend/label-CfBWf3gI.js +0 -29
- package/dist/frontend/loader-circle-skKwfRCB.js +0 -24
- package/dist/frontend/popper-layer-force-mount-BG0eyrCk.js +0 -4255
- package/dist/frontend/rolldown-runtime-CwxnZyOB.js +0 -22
- package/dist/frontend/select-value-BY5Hw6Rl.js +0 -1412
- package/dist/frontend/tag-store.svelte-C9VYWqLQ.js +0 -28
- package/dist/frontend/textarea-D6emvAwM.js +0 -22
- package/dist/frontend/utils-DH0uqK40.js +0 -6
- package/dist/frontend/x-CBUgPygC.js +0 -24
- package/dist/frontend-ssr/assets/dropdown-menu-BS5fcN9l.js +0 -446
- package/dist/frontend-ssr/assets/{HiaiDocsExtensionProvider-D6cGL-9s.js → HiaiDocsExtensionProvider-BdfQP817.js} +1 -1
- package/dist/frontend-ssr/assets/{categories-bBPviKjl.js → categories-CMmudpEk.js} +1 -1
- package/dist/frontend-ssr/assets/{editorExtensions-2O7O2Nhv.js → editorExtensions-DOPTTKUS.js} +2 -2
- package/dist/frontend-ssr/assets/{tag-store.svelte-CUUgAaDD.js → tag-store.svelte-Djpf1W0n.js} +1 -1
- package/dist/frontend-ssr/assets/{tags-C7u-LBsl.js → tags-GQOEtqET.js} +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../node_modules/.bun/better-auth@1.7.
|
|
1
|
+
// ../node_modules/.bun/better-auth@1.7.29+21e7ec724477b6ed/node_modules/better-auth/dist/client/broadcast-channel.mjs
|
|
2
2
|
var e = Symbol.for("better-auth:broadcast-channel"), t = () => Math.floor(Date.now() / 1e3), n = class {
|
|
3
3
|
listeners = /* @__PURE__ */ new Set();
|
|
4
4
|
name;
|
|
@@ -20,25 +20,39 @@ var e = Symbol.for("better-auth:broadcast-channel"), t = () => Math.floor(Date.n
|
|
|
20
20
|
}
|
|
21
21
|
setup() {
|
|
22
22
|
if (typeof window > "u" || window.addEventListener === void 0) return () => {};
|
|
23
|
-
let e = (e) => {
|
|
23
|
+
let e = window, t = (e) => {
|
|
24
24
|
if (e.key !== this.name) return;
|
|
25
25
|
let t = JSON.parse(e.newValue ?? "{}");
|
|
26
26
|
t?.event === "session" && t?.data && this.listeners.forEach((e) => e(t));
|
|
27
27
|
};
|
|
28
|
-
return
|
|
29
|
-
|
|
28
|
+
return e.addEventListener("storage", t), () => {
|
|
29
|
+
e.removeEventListener("storage", t);
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
function r(t = "better-auth.message") {
|
|
34
34
|
return globalThis[e] || (globalThis[e] = new n(t)), globalThis[e];
|
|
35
35
|
}
|
|
36
|
-
// ../node_modules/.bun/nanostores@1.
|
|
36
|
+
// ../node_modules/.bun/nanostores@1.5.5/node_modules/nanostores/clean-stores/index.js
|
|
37
37
|
var i = Symbol("clean"), a = [], o = 0, s = null, c = 4, l = globalThis.nanostoresGlobal ||= { epoch: 0 }, u = () => {
|
|
38
|
-
|
|
39
|
-
a.length
|
|
38
|
+
let e, t;
|
|
39
|
+
for (; o < a.length;) {
|
|
40
|
+
t = o, o += c;
|
|
41
|
+
let n = s?.get(a[t]);
|
|
42
|
+
if (n) {
|
|
43
|
+
if (!n.has(a[t + 1])) continue;
|
|
44
|
+
n.clear();
|
|
45
|
+
}
|
|
46
|
+
try {
|
|
47
|
+
a[t](a[t + 1].value, a[t + 2], a[t + 3]);
|
|
48
|
+
} catch (t) {
|
|
49
|
+
e = t;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
if (a.length = o = 0, e) throw e;
|
|
40
53
|
}, d = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
41
54
|
let t = [], n = {
|
|
55
|
+
eq: Object.is,
|
|
42
56
|
get() {
|
|
43
57
|
return n.lc || n.listen(() => {})(), n.value;
|
|
44
58
|
},
|
|
@@ -46,7 +60,8 @@ var i = Symbol("clean"), a = [], o = 0, s = null, c = 4, l = globalThis.nanostor
|
|
|
46
60
|
lc: 0,
|
|
47
61
|
listen(e) {
|
|
48
62
|
return n.lc = t.push(e), () => {
|
|
49
|
-
|
|
63
|
+
s?.get(e)?.delete(n);
|
|
64
|
+
for (let t = o; t < a.length;) a[t] === e && a[t + 1] === n ? a.splice(t, c) : t += c;
|
|
50
65
|
let r = t.indexOf(e);
|
|
51
66
|
~r && (t.splice(r, 1), --n.lc || n.off());
|
|
52
67
|
};
|
|
@@ -54,13 +69,13 @@ var i = Symbol("clean"), a = [], o = 0, s = null, c = 4, l = globalThis.nanostor
|
|
|
54
69
|
notify(e, r) {
|
|
55
70
|
l.epoch++;
|
|
56
71
|
let i = !a.length && !0;
|
|
57
|
-
for (let i of t)
|
|
72
|
+
for (let i of t) a.push(i, n, e, r);
|
|
58
73
|
i && u();
|
|
59
74
|
},
|
|
60
75
|
off() {},
|
|
61
76
|
set(e) {
|
|
62
77
|
let t = n.value;
|
|
63
|
-
t
|
|
78
|
+
n.eq(t, e) || (n.value = e, n.notify(t));
|
|
64
79
|
},
|
|
65
80
|
subscribe(e) {
|
|
66
81
|
let t = n.listen(e);
|
|
@@ -78,7 +93,7 @@ var i = Symbol("clean"), a = [], o = 0, s = null, c = 4, l = globalThis.nanostor
|
|
|
78
93
|
});
|
|
79
94
|
})), e.events[n] = e.events[n] || [], e.events[n].push(t), () => {
|
|
80
95
|
let r = e.events[n], i = r.indexOf(t);
|
|
81
|
-
r.splice(i, 1), r.length || (
|
|
96
|
+
~i && (r.splice(i, 1), r.length || (e.events[n + h](), delete e.events[n + h]));
|
|
82
97
|
}), _ = (e, t) => g(e, t, f, (t) => {
|
|
83
98
|
let n = e.set, r = e.setKey;
|
|
84
99
|
return e.setKey &&= (n, i) => {
|
|
@@ -130,7 +145,7 @@ var i = Symbol("clean"), a = [], o = 0, s = null, c = 4, l = globalThis.nanostor
|
|
|
130
145
|
e.listen = n, e.off = r;
|
|
131
146
|
};
|
|
132
147
|
});
|
|
133
|
-
// ../node_modules/.bun/better-auth@1.7.
|
|
148
|
+
// ../node_modules/.bun/better-auth@1.7.29+21e7ec724477b6ed/node_modules/better-auth/dist/client/equality.mjs
|
|
134
149
|
function b(e) {
|
|
135
150
|
if (typeof e != "object" || !e) return !1;
|
|
136
151
|
let t = Object.getPrototypeOf(e);
|
|
@@ -156,7 +171,7 @@ function S(e, t) {
|
|
|
156
171
|
t(e.value, n) && r();
|
|
157
172
|
});
|
|
158
173
|
}
|
|
159
|
-
// ../node_modules/.bun/better-auth@1.7.
|
|
174
|
+
// ../node_modules/.bun/better-auth@1.7.29+21e7ec724477b6ed/node_modules/better-auth/dist/client/focus-manager.mjs
|
|
160
175
|
var C = Symbol.for("better-auth:focus-manager"), w = class {
|
|
161
176
|
listeners = /* @__PURE__ */ new Set();
|
|
162
177
|
subscribe(e) {
|
|
@@ -169,21 +184,21 @@ var C = Symbol.for("better-auth:focus-manager"), w = class {
|
|
|
169
184
|
}
|
|
170
185
|
setup() {
|
|
171
186
|
if (typeof window > "u" || typeof document > "u" || window.addEventListener === void 0) return () => {};
|
|
172
|
-
let e = () => {
|
|
187
|
+
let e = document, t = () => {
|
|
173
188
|
document.visibilityState === "visible" && this.setFocused(!0);
|
|
174
189
|
};
|
|
175
|
-
return
|
|
176
|
-
|
|
190
|
+
return e.addEventListener("visibilitychange", t, !1), () => {
|
|
191
|
+
e.removeEventListener("visibilitychange", t, !1);
|
|
177
192
|
};
|
|
178
193
|
}
|
|
179
194
|
};
|
|
180
|
-
function
|
|
195
|
+
function T() {
|
|
181
196
|
return globalThis[C] || (globalThis[C] = new w()), globalThis[C];
|
|
182
197
|
}
|
|
183
|
-
// ../node_modules/.bun/better-auth@1.7.
|
|
184
|
-
var
|
|
198
|
+
// ../node_modules/.bun/better-auth@1.7.29+21e7ec724477b6ed/node_modules/better-auth/dist/client/online-manager.mjs
|
|
199
|
+
var E = Symbol.for("better-auth:online-manager"), ee = class {
|
|
185
200
|
listeners = /* @__PURE__ */ new Set();
|
|
186
|
-
isOnline =
|
|
201
|
+
isOnline = globalThis.navigator?.onLine ?? !0;
|
|
187
202
|
subscribe(e) {
|
|
188
203
|
return this.listeners.add(e), () => {
|
|
189
204
|
this.listeners.delete(e);
|
|
@@ -194,44 +209,44 @@ var T = Symbol.for("better-auth:online-manager"), te = class {
|
|
|
194
209
|
}
|
|
195
210
|
setup() {
|
|
196
211
|
if (typeof window > "u" || window.addEventListener === void 0) return () => {};
|
|
197
|
-
let e = () => this.setOnline(!0),
|
|
198
|
-
return
|
|
199
|
-
|
|
212
|
+
let e = window, t = () => this.setOnline(!0), n = () => this.setOnline(!1);
|
|
213
|
+
return e.addEventListener("online", t, !1), e.addEventListener("offline", n, !1), () => {
|
|
214
|
+
e.removeEventListener("online", t, !1), e.removeEventListener("offline", n, !1);
|
|
200
215
|
};
|
|
201
216
|
}
|
|
202
217
|
};
|
|
203
|
-
function
|
|
204
|
-
return globalThis[
|
|
218
|
+
function D() {
|
|
219
|
+
return globalThis[E] || (globalThis[E] = new ee()), globalThis[E];
|
|
205
220
|
}
|
|
206
|
-
// ../node_modules/.bun/better-auth@1.7.
|
|
207
|
-
var
|
|
221
|
+
// ../node_modules/.bun/better-auth@1.7.29+21e7ec724477b6ed/node_modules/better-auth/dist/client/parser.mjs
|
|
222
|
+
var te = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/, O = {
|
|
208
223
|
true: !0,
|
|
209
224
|
false: !1,
|
|
210
225
|
null: null,
|
|
211
226
|
undefined: void 0,
|
|
212
227
|
nan: NaN,
|
|
213
|
-
infinity:
|
|
214
|
-
"-infinity": -
|
|
215
|
-
},
|
|
216
|
-
function
|
|
228
|
+
infinity: 1e400,
|
|
229
|
+
"-infinity": -1e400
|
|
230
|
+
}, ne = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;
|
|
231
|
+
function re(e) {
|
|
217
232
|
return e instanceof Date && !isNaN(e.getTime());
|
|
218
233
|
}
|
|
219
|
-
function
|
|
220
|
-
let t =
|
|
234
|
+
function ie(e) {
|
|
235
|
+
let t = ne.exec(e);
|
|
221
236
|
if (!t) return null;
|
|
222
237
|
let [, n, r, i, a, o, s, c, l, u, d] = t, f = new Date(Date.UTC(parseInt(n, 10), parseInt(r, 10) - 1, parseInt(i, 10), parseInt(a, 10), parseInt(o, 10), parseInt(s, 10), c ? parseInt(c.padEnd(3, "0"), 10) : 0));
|
|
223
238
|
if (l) {
|
|
224
239
|
let e = (parseInt(u, 10) * 60 + parseInt(d, 10)) * (l === "+" ? -1 : 1);
|
|
225
240
|
f.setUTCMinutes(f.getUTCMinutes() + e);
|
|
226
241
|
}
|
|
227
|
-
return
|
|
242
|
+
return re(f) ? f : null;
|
|
228
243
|
}
|
|
229
|
-
function
|
|
244
|
+
function ae(e, t = {}) {
|
|
230
245
|
let { strict: n = !1, warnings: r = !1, reviver: i, parseDates: a = !0 } = t;
|
|
231
246
|
if (typeof e != "string") return e;
|
|
232
247
|
let o = e.trim(), s = o.toLowerCase();
|
|
233
|
-
if (s.length <= 9 && s in
|
|
234
|
-
if (!
|
|
248
|
+
if (s.length <= 9 && s in O) return O[s];
|
|
249
|
+
if (!te.test(o)) {
|
|
235
250
|
if (n) throw SyntaxError("[better-json] Invalid JSON");
|
|
236
251
|
return e;
|
|
237
252
|
}
|
|
@@ -242,7 +257,7 @@ function oe(e, t = {}) {
|
|
|
242
257
|
r && console.warn(`[better-json] Dropping "${e}" key to prevent prototype pollution`);
|
|
243
258
|
} else {
|
|
244
259
|
if (a && typeof t == "string") {
|
|
245
|
-
let e =
|
|
260
|
+
let e = ie(t);
|
|
246
261
|
if (e) return e;
|
|
247
262
|
}
|
|
248
263
|
return i ? i(e, t) : t;
|
|
@@ -253,28 +268,28 @@ function oe(e, t = {}) {
|
|
|
253
268
|
return e;
|
|
254
269
|
}
|
|
255
270
|
}
|
|
256
|
-
function
|
|
257
|
-
return
|
|
271
|
+
function oe(e, t = { strict: !0 }) {
|
|
272
|
+
return ae(e, t);
|
|
258
273
|
}
|
|
259
|
-
// ../node_modules/.bun/better-auth@1.7.
|
|
260
|
-
var
|
|
261
|
-
function
|
|
274
|
+
// ../node_modules/.bun/better-auth@1.7.29+21e7ec724477b6ed/node_modules/better-auth/dist/client/query-atom.mjs
|
|
275
|
+
var se = Symbol.for("better-auth:auth-query");
|
|
276
|
+
function ce(e) {
|
|
262
277
|
let t = /* @__PURE__ */ d(e);
|
|
263
|
-
return Object.defineProperty(t,
|
|
278
|
+
return Object.defineProperty(t, se, { value: !0 }), t;
|
|
264
279
|
}
|
|
265
|
-
// ../node_modules/.bun/better-auth@1.7.
|
|
266
|
-
var
|
|
267
|
-
function
|
|
280
|
+
// ../node_modules/.bun/better-auth@1.7.29+21e7ec724477b6ed/node_modules/better-auth/dist/client/session-refresh.mjs
|
|
281
|
+
var k = () => Math.floor(Date.now() / 1e3), le = 5;
|
|
282
|
+
function ue(e) {
|
|
268
283
|
let { fetchSession: t, shouldPollSession: n = () => !0, sessionSignal: i, options: a = {} } = e, o = a.sessionOptions?.refetchInterval ?? 0, s = a.sessionOptions?.refetchOnWindowFocus ?? !0, c = a.sessionOptions?.refetchWhenOffline ?? !1, l = {
|
|
269
284
|
isInitialized: !1,
|
|
270
285
|
lastSessionRequest: 0
|
|
271
|
-
}, u = () => c ||
|
|
286
|
+
}, u = () => c || D().isOnline, d = (e) => {
|
|
272
287
|
if (u()) {
|
|
273
288
|
if (e?.event === "storage") t();
|
|
274
|
-
else if (e?.event === "poll") l.lastSessionRequest =
|
|
289
|
+
else if (e?.event === "poll") l.lastSessionRequest = k(), t();
|
|
275
290
|
else if (e?.event === "visibilitychange") {
|
|
276
|
-
if (
|
|
277
|
-
l.lastSessionRequest =
|
|
291
|
+
if (k() - l.lastSessionRequest < le) return;
|
|
292
|
+
l.lastSessionRequest = k(), t();
|
|
278
293
|
} else t();
|
|
279
294
|
}
|
|
280
295
|
}, f = (e) => {
|
|
@@ -292,11 +307,11 @@ function de(e) {
|
|
|
292
307
|
d({ event: "storage" });
|
|
293
308
|
});
|
|
294
309
|
}, h = () => {
|
|
295
|
-
s && (l.unsubscribeFocus =
|
|
310
|
+
s && (l.unsubscribeFocus = T().subscribe(() => {
|
|
296
311
|
d({ event: "visibilitychange" });
|
|
297
312
|
}));
|
|
298
313
|
}, g = () => {
|
|
299
|
-
l.unsubscribeOnline =
|
|
314
|
+
l.unsubscribeOnline = D().subscribe((e) => {
|
|
300
315
|
e && d({ event: "visibilitychange" });
|
|
301
316
|
});
|
|
302
317
|
}, _ = () => {
|
|
@@ -306,7 +321,7 @@ function de(e) {
|
|
|
306
321
|
};
|
|
307
322
|
return {
|
|
308
323
|
init: () => {
|
|
309
|
-
l.isInitialized || (l.isInitialized = !0, p(), m(), h(), g(),
|
|
324
|
+
l.isInitialized || (l.isInitialized = !0, _(), typeof window < "u" && (p(), m(), h(), g(), l.cleanupBroadcastSetup = r().setup(), l.cleanupFocusSetup = T().setup(), l.cleanupOnlineSetup = D().setup()));
|
|
310
325
|
},
|
|
311
326
|
cleanup: () => {
|
|
312
327
|
l.isInitialized && (l.pollInterval &&= (clearInterval(l.pollInterval), void 0), l.unsubscribeBroadcast &&= (l.unsubscribeBroadcast(), void 0), l.unsubscribeFocus &&= (l.unsubscribeFocus(), void 0), l.unsubscribeOnline &&= (l.unsubscribeOnline(), void 0), l.unsubscribeSignal &&= (l.unsubscribeSignal(), void 0), l.cleanupBroadcastSetup &&= (l.cleanupBroadcastSetup(), void 0), l.cleanupFocusSetup &&= (l.cleanupFocusSetup(), void 0), l.cleanupOnlineSetup &&= (l.cleanupOnlineSetup(), void 0), l.isInitialized = !1, l.lastSessionRequest = 0);
|
|
@@ -315,74 +330,74 @@ function de(e) {
|
|
|
315
330
|
broadcastSessionUpdate: f
|
|
316
331
|
};
|
|
317
332
|
}
|
|
318
|
-
// ../node_modules/.bun/@better-auth+core@1.7.
|
|
319
|
-
var
|
|
333
|
+
// ../node_modules/.bun/@better-auth+core@1.7.29+a5be2c1e11d7dcc2/node_modules/@better-auth/core/dist/env/runtime.mjs
|
|
334
|
+
var de = () => "Deno" in globalThis, fe = () => "Bun" in globalThis, A = Object.create(null), j = (e) => globalThis.process?.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? A : globalThis), M = new Proxy(A, {
|
|
320
335
|
get(e, t) {
|
|
321
|
-
return
|
|
336
|
+
return j()[t] ?? A[t];
|
|
322
337
|
},
|
|
323
338
|
has(e, t) {
|
|
324
|
-
return t in
|
|
339
|
+
return t in j() || t in A;
|
|
325
340
|
},
|
|
326
341
|
set(e, t, n) {
|
|
327
|
-
let r =
|
|
342
|
+
let r = j(!0);
|
|
328
343
|
return r[t] = n, !0;
|
|
329
344
|
},
|
|
330
345
|
deleteProperty(e, t) {
|
|
331
346
|
if (!t) return !1;
|
|
332
|
-
let n =
|
|
347
|
+
let n = j(!0);
|
|
333
348
|
return delete n[t], !0;
|
|
334
349
|
},
|
|
335
350
|
ownKeys() {
|
|
336
|
-
let e =
|
|
351
|
+
let e = j(!0);
|
|
337
352
|
return Object.keys(e);
|
|
338
353
|
}
|
|
339
354
|
});
|
|
340
|
-
|
|
341
|
-
function
|
|
342
|
-
return typeof process < "u" && process.env ? process.env[e] ?? t :
|
|
355
|
+
M.NODE_ENV;
|
|
356
|
+
function N(e, t) {
|
|
357
|
+
return typeof process < "u" && process.env ? process.env[e] ?? t : de() ? Deno.env.get(e) ?? t : fe() ? Bun.env[e] ?? t : t;
|
|
343
358
|
}
|
|
344
359
|
Object.freeze({
|
|
345
360
|
get BETTER_AUTH_SECRET() {
|
|
346
|
-
return
|
|
361
|
+
return N("BETTER_AUTH_SECRET");
|
|
347
362
|
},
|
|
348
363
|
get AUTH_SECRET() {
|
|
349
|
-
return
|
|
364
|
+
return N("AUTH_SECRET");
|
|
350
365
|
},
|
|
351
366
|
get BETTER_AUTH_TELEMETRY() {
|
|
352
|
-
return
|
|
367
|
+
return N("BETTER_AUTH_TELEMETRY");
|
|
353
368
|
},
|
|
354
369
|
get BETTER_AUTH_TELEMETRY_ID() {
|
|
355
|
-
return
|
|
370
|
+
return N("BETTER_AUTH_TELEMETRY_ID");
|
|
356
371
|
},
|
|
357
372
|
get NODE_ENV() {
|
|
358
|
-
return
|
|
373
|
+
return N("NODE_ENV", "development");
|
|
359
374
|
},
|
|
360
375
|
get PACKAGE_VERSION() {
|
|
361
|
-
return
|
|
376
|
+
return N("PACKAGE_VERSION", "0.0.0");
|
|
362
377
|
},
|
|
363
378
|
get BETTER_AUTH_TELEMETRY_ENDPOINT() {
|
|
364
|
-
return
|
|
379
|
+
return N("BETTER_AUTH_TELEMETRY_ENDPOINT", "");
|
|
365
380
|
}
|
|
366
381
|
});
|
|
367
|
-
// ../node_modules/.bun/better-call@1.4.
|
|
368
|
-
function
|
|
382
|
+
// ../node_modules/.bun/better-call@1.4.6+969a6d035afea0f4/node_modules/better-call/dist/error.mjs
|
|
383
|
+
function pe() {
|
|
369
384
|
let e = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
370
385
|
return e === void 0 ? Object.isExtensible(Error) : Object.prototype.hasOwnProperty.call(e, "writable") ? e.writable : e.set !== void 0;
|
|
371
386
|
}
|
|
372
|
-
function
|
|
387
|
+
function me(e) {
|
|
373
388
|
let t = e.split("\n at ");
|
|
374
389
|
return t.length <= 1 ? e : (t.splice(1, 1), t.join("\n at "));
|
|
375
390
|
}
|
|
376
|
-
function
|
|
391
|
+
function he(e, t) {
|
|
377
392
|
class n extends e {
|
|
378
393
|
#e;
|
|
379
394
|
constructor(...e) {
|
|
380
|
-
if (
|
|
395
|
+
if (pe()) {
|
|
381
396
|
let t = Error.stackTraceLimit;
|
|
382
397
|
Error.stackTraceLimit = 0, super(...e), Error.stackTraceLimit = t;
|
|
383
398
|
} else super(...e);
|
|
384
399
|
let t = (/* @__PURE__ */ Error()).stack;
|
|
385
|
-
t && (this.#e =
|
|
400
|
+
t && (this.#e = me(t.replace(/^Error/, this.name)));
|
|
386
401
|
}
|
|
387
402
|
get errorStack() {
|
|
388
403
|
return this.#e;
|
|
@@ -396,7 +411,7 @@ function me(e, t) {
|
|
|
396
411
|
configurable: !0
|
|
397
412
|
}), n;
|
|
398
413
|
}
|
|
399
|
-
var
|
|
414
|
+
var ge = {
|
|
400
415
|
OK: 200,
|
|
401
416
|
CREATED: 201,
|
|
402
417
|
ACCEPTED: 202,
|
|
@@ -448,12 +463,12 @@ var he = {
|
|
|
448
463
|
NOT_EXTENDED: 510,
|
|
449
464
|
NETWORK_AUTHENTICATION_REQUIRED: 511
|
|
450
465
|
};
|
|
451
|
-
|
|
466
|
+
he(class extends Error {
|
|
452
467
|
status;
|
|
453
468
|
body;
|
|
454
469
|
headers;
|
|
455
470
|
statusCode;
|
|
456
|
-
constructor(e = "INTERNAL_SERVER_ERROR", t = void 0, n = {}, r = typeof e == "number" ? e :
|
|
471
|
+
constructor(e = "INTERNAL_SERVER_ERROR", t = void 0, n = {}, r = typeof e == "number" ? e : ge[e]) {
|
|
457
472
|
if (super(t?.message, t && "cause" in t ? { cause: t.cause } : void 0), this.status = e, this.body = t, this.headers = n, this.statusCode = r, this.name = "APIError", this.status = e, this.headers = n, this.statusCode = r, t && "cause" in t) {
|
|
458
473
|
let { cause: e, ...n } = t;
|
|
459
474
|
this.body = Object.defineProperty(n, "cause", {
|
|
@@ -464,38 +479,38 @@ me(class extends Error {
|
|
|
464
479
|
} else this.body = t;
|
|
465
480
|
}
|
|
466
481
|
}, Error);
|
|
467
|
-
// ../node_modules/.bun/@better-auth+core@1.7.
|
|
468
|
-
var
|
|
482
|
+
// ../node_modules/.bun/@better-auth+core@1.7.29+a5be2c1e11d7dcc2/node_modules/@better-auth/core/dist/error/index.mjs
|
|
483
|
+
var P = class extends Error {
|
|
469
484
|
constructor(e, t) {
|
|
470
485
|
super(e, t), this.name = "BetterAuthError", this.message = e, this.stack = "";
|
|
471
486
|
}
|
|
472
|
-
},
|
|
473
|
-
function
|
|
487
|
+
}, _e = 47;
|
|
488
|
+
function F(e) {
|
|
474
489
|
let t = e.length;
|
|
475
|
-
for (; t > 0 && e.charCodeAt(t - 1) ===
|
|
490
|
+
for (; t > 0 && e.charCodeAt(t - 1) === _e;) t--;
|
|
476
491
|
return t === e.length ? e : e.slice(0, t);
|
|
477
492
|
}
|
|
478
|
-
function
|
|
493
|
+
function ve(e) {
|
|
479
494
|
try {
|
|
480
|
-
return (
|
|
495
|
+
return (F(new URL(e).pathname) || "/") !== "/";
|
|
481
496
|
} catch {
|
|
482
|
-
throw new
|
|
497
|
+
throw new P(`Invalid base URL: ${e}. Please provide a valid base URL.`);
|
|
483
498
|
}
|
|
484
499
|
}
|
|
485
|
-
function
|
|
500
|
+
function ye(e) {
|
|
486
501
|
try {
|
|
487
502
|
let t = new URL(e);
|
|
488
|
-
if (t.protocol !== "http:" && t.protocol !== "https:") throw new
|
|
503
|
+
if (t.protocol !== "http:" && t.protocol !== "https:") throw new P(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`);
|
|
489
504
|
} catch (t) {
|
|
490
|
-
throw t instanceof
|
|
505
|
+
throw t instanceof P ? t : new P(`Invalid base URL: ${e}. Please provide a valid base URL.`, { cause: t });
|
|
491
506
|
}
|
|
492
507
|
}
|
|
493
|
-
function
|
|
494
|
-
if (
|
|
495
|
-
let n =
|
|
508
|
+
function I(e, t = "/api/auth") {
|
|
509
|
+
if (ye(e), ve(e)) return e;
|
|
510
|
+
let n = F(e);
|
|
496
511
|
return !t || t === "/" ? n : (t = t.startsWith("/") ? t : `/${t}`, `${n}${t}`);
|
|
497
512
|
}
|
|
498
|
-
function
|
|
513
|
+
function L(e, t) {
|
|
499
514
|
return !e || e.trim() === "" ? !1 : t === "proto" ? e === "http" || e === "https" : t === "host" ? [
|
|
500
515
|
/\.\./,
|
|
501
516
|
/\0/,
|
|
@@ -507,24 +522,24 @@ function I(e, t) {
|
|
|
507
522
|
/data:/i
|
|
508
523
|
].some((t) => t.test(e)) ? !1 : /^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*(:[0-9]{1,5})?$/.test(e) || /^(\d{1,3}\.){3}\d{1,3}(:[0-9]{1,5})?$/.test(e) || /^\[[0-9a-fA-F:]+\](:[0-9]{1,5})?$/.test(e) || /^localhost(:[0-9]{1,5})?$/i.test(e) : !1;
|
|
509
524
|
}
|
|
510
|
-
function
|
|
511
|
-
if (e) return
|
|
525
|
+
function be(e, t, n, r, i) {
|
|
526
|
+
if (e) return I(e, t);
|
|
512
527
|
if (r !== !1) {
|
|
513
|
-
let e =
|
|
514
|
-
if (e) return
|
|
528
|
+
let e = M.BETTER_AUTH_URL || M.NEXT_PUBLIC_BETTER_AUTH_URL || M.PUBLIC_BETTER_AUTH_URL || M.NUXT_PUBLIC_BETTER_AUTH_URL || M.NUXT_PUBLIC_AUTH_URL || (M.BASE_URL === "/" ? void 0 : M.BASE_URL);
|
|
529
|
+
if (e) return I(e, t);
|
|
515
530
|
}
|
|
516
531
|
let a = n?.headers.get("x-forwarded-host"), o = n?.headers.get("x-forwarded-proto");
|
|
517
|
-
if (a && o && i &&
|
|
518
|
-
return
|
|
532
|
+
if (a && o && i && L(o, "proto") && L(a, "host")) try {
|
|
533
|
+
return I(`${o}://${a}`, t);
|
|
519
534
|
} catch {}
|
|
520
535
|
if (n) {
|
|
521
|
-
let e =
|
|
522
|
-
if (!e) throw new
|
|
523
|
-
return
|
|
536
|
+
let e = xe(n.url);
|
|
537
|
+
if (!e) throw new P("Could not get origin from request. Please provide a valid base URL.");
|
|
538
|
+
return I(e, t);
|
|
524
539
|
}
|
|
525
|
-
if (typeof window < "u" && window.location) return
|
|
540
|
+
if (typeof window < "u" && window.location) return I(window.location.origin, t);
|
|
526
541
|
}
|
|
527
|
-
function
|
|
542
|
+
function xe(e) {
|
|
528
543
|
try {
|
|
529
544
|
let t = new URL(e);
|
|
530
545
|
return t.origin === "null" ? null : t.origin;
|
|
@@ -532,32 +547,32 @@ function be(e) {
|
|
|
532
547
|
return null;
|
|
533
548
|
}
|
|
534
549
|
}
|
|
535
|
-
// ../node_modules/.bun/@better-auth+core@1.7.
|
|
536
|
-
var
|
|
550
|
+
// ../node_modules/.bun/@better-auth+core@1.7.29+a5be2c1e11d7dcc2/node_modules/@better-auth/core/dist/utils/url.mjs
|
|
551
|
+
var Se = [
|
|
537
552
|
"javascript:",
|
|
538
553
|
"data:",
|
|
539
554
|
"vbscript:"
|
|
540
555
|
];
|
|
541
|
-
function
|
|
556
|
+
function Ce(e) {
|
|
542
557
|
let t;
|
|
543
558
|
try {
|
|
544
559
|
t = new URL(e);
|
|
545
560
|
} catch {
|
|
546
561
|
return !0;
|
|
547
562
|
}
|
|
548
|
-
return !
|
|
563
|
+
return !Se.includes(t.protocol);
|
|
549
564
|
}
|
|
550
|
-
// ../node_modules/.bun/better-auth@1.7.
|
|
551
|
-
var
|
|
565
|
+
// ../node_modules/.bun/better-auth@1.7.29+21e7ec724477b6ed/node_modules/better-auth/dist/client/fetch-plugins.mjs
|
|
566
|
+
var we = {
|
|
552
567
|
id: "redirect",
|
|
553
568
|
name: "Redirect",
|
|
554
569
|
hooks: { onSuccess(e) {
|
|
555
|
-
if (e.data?.url && e.data?.redirect &&
|
|
570
|
+
if (e.data?.url && e.data?.redirect && Ce(e.data.url) && typeof window < "u" && window.location && window.location) try {
|
|
556
571
|
window.location.href = e.data.url;
|
|
557
572
|
} catch {}
|
|
558
573
|
} }
|
|
559
|
-
},
|
|
560
|
-
function
|
|
574
|
+
}, Te = () => typeof window > "u", Ee = v;
|
|
575
|
+
function De(e, t) {
|
|
561
576
|
if (typeof window > "u") return;
|
|
562
577
|
let n = e.get();
|
|
563
578
|
n.data === null && t !== null && e.set({
|
|
@@ -567,31 +582,31 @@ function Ee(e, t) {
|
|
|
567
582
|
isPending: !1
|
|
568
583
|
});
|
|
569
584
|
}
|
|
570
|
-
function
|
|
585
|
+
function R(e) {
|
|
571
586
|
return typeof e == "object" && e && "data" in e && "error" in e ? e : {
|
|
572
587
|
data: e,
|
|
573
588
|
error: null
|
|
574
589
|
};
|
|
575
590
|
}
|
|
576
|
-
function
|
|
591
|
+
function Oe(e) {
|
|
577
592
|
return !e || e.session === null && e.user === null ? null : e;
|
|
578
593
|
}
|
|
579
|
-
function
|
|
594
|
+
function ke(e, t) {
|
|
580
595
|
return x(e.data, t.data) && e.error === t.error && e.isPending === t.isPending && e.isRefetching === t.isRefetching && e.refetch === t.refetch;
|
|
581
596
|
}
|
|
582
|
-
function
|
|
597
|
+
function Ae(e, t) {
|
|
583
598
|
let n = /* @__PURE__ */ d(!1), r, i = 0, a = 0;
|
|
584
599
|
n.listen(() => {
|
|
585
600
|
a++, i = 0;
|
|
586
601
|
});
|
|
587
|
-
let o = (e) => u(e), s =
|
|
602
|
+
let o = (e) => u(e), s = ce({
|
|
588
603
|
data: null,
|
|
589
604
|
error: null,
|
|
590
605
|
isPending: !0,
|
|
591
606
|
isRefetching: !1,
|
|
592
607
|
refetch: o
|
|
593
608
|
});
|
|
594
|
-
S(s,
|
|
609
|
+
S(s, ke);
|
|
595
610
|
let c = async (t, n) => {
|
|
596
611
|
let r = s.value;
|
|
597
612
|
if (s.set({
|
|
@@ -608,14 +623,15 @@ function ke(e, t) {
|
|
|
608
623
|
signal: t
|
|
609
624
|
});
|
|
610
625
|
if (t.aborted) return "aborted";
|
|
611
|
-
let { data: i, error: a } =
|
|
626
|
+
let { data: i, error: a } = R(r), c = "fresh";
|
|
612
627
|
if (i?.needsRefresh) try {
|
|
613
628
|
let n = await e("/get-session", {
|
|
614
629
|
method: "POST",
|
|
630
|
+
body: {},
|
|
615
631
|
signal: t
|
|
616
632
|
});
|
|
617
633
|
if (t.aborted) return "aborted";
|
|
618
|
-
({data: i, error: a} =
|
|
634
|
+
({data: i, error: a} = R(n));
|
|
619
635
|
} catch {
|
|
620
636
|
if (t.aborted) return "aborted";
|
|
621
637
|
c = "stale";
|
|
@@ -630,7 +646,7 @@ function ke(e, t) {
|
|
|
630
646
|
refetch: o
|
|
631
647
|
}), "failed";
|
|
632
648
|
}
|
|
633
|
-
let l =
|
|
649
|
+
let l = Oe(i), u = s.value, d = u.data != null && l != null && x(u.data, l) ? u.data : l;
|
|
634
650
|
return s.set({
|
|
635
651
|
data: d,
|
|
636
652
|
error: null,
|
|
@@ -650,8 +666,8 @@ function ke(e, t) {
|
|
|
650
666
|
}), "failed";
|
|
651
667
|
}
|
|
652
668
|
}, l = () => {
|
|
653
|
-
let e = s.value.data?.session?.expiresAt, t = e instanceof Date ? e.getTime() :
|
|
654
|
-
return Math.min(Date.now() +
|
|
669
|
+
let e = s.value.data?.session?.expiresAt, t = e instanceof Date ? e.getTime() : 1e400;
|
|
670
|
+
return Math.min(Date.now() + Ee, t);
|
|
655
671
|
}, u = (e) => {
|
|
656
672
|
i = 0, r?.cancel();
|
|
657
673
|
let t = new AbortController(), n = {
|
|
@@ -667,10 +683,10 @@ function ke(e, t) {
|
|
|
667
683
|
}, f = () => r?.revision === a ? r.promise.then(() => void 0) : Date.now() < i ? Promise.resolve() : u(), p = () => {};
|
|
668
684
|
return y(s, () => {
|
|
669
685
|
let e;
|
|
670
|
-
|
|
686
|
+
Te() || (e = setTimeout(() => {
|
|
671
687
|
f();
|
|
672
688
|
}, 0));
|
|
673
|
-
let r =
|
|
689
|
+
let r = ue({
|
|
674
690
|
fetchSession: u,
|
|
675
691
|
shouldPollSession: () => s.value.data != null,
|
|
676
692
|
sessionSignal: n,
|
|
@@ -686,29 +702,29 @@ function ke(e, t) {
|
|
|
686
702
|
};
|
|
687
703
|
}
|
|
688
704
|
// ../node_modules/.bun/defu@6.1.7/node_modules/defu/dist/defu.mjs
|
|
689
|
-
function
|
|
705
|
+
function z(e) {
|
|
690
706
|
if (typeof e != "object" || !e) return !1;
|
|
691
707
|
let t = Object.getPrototypeOf(e);
|
|
692
708
|
return t !== null && t !== Object.prototype && Object.getPrototypeOf(t) !== null || Symbol.iterator in e ? !1 : Symbol.toStringTag in e ? Object.prototype.toString.call(e) === "[object Module]" : !0;
|
|
693
709
|
}
|
|
694
|
-
function
|
|
695
|
-
if (!
|
|
710
|
+
function B(e, t, n = ".", r) {
|
|
711
|
+
if (!z(t)) return B(e, {}, n, r);
|
|
696
712
|
let i = { ...t };
|
|
697
713
|
for (let t of Object.keys(e)) {
|
|
698
714
|
if (t === "__proto__" || t === "constructor") continue;
|
|
699
715
|
let a = e[t];
|
|
700
|
-
a != null && (r && r(i, t, a, n) || (i[t] = Array.isArray(a) && Array.isArray(i[t]) ? [...a, ...i[t]] :
|
|
716
|
+
a != null && (r && r(i, t, a, n) || (i[t] = Array.isArray(a) && Array.isArray(i[t]) ? [...a, ...i[t]] : z(a) && z(i[t]) ? B(a, i[t], (n ? `${n}.` : "") + t.toString(), r) : a));
|
|
701
717
|
}
|
|
702
718
|
return i;
|
|
703
719
|
}
|
|
704
|
-
function
|
|
705
|
-
return (...t) => t.reduce((t, n) =>
|
|
720
|
+
function je(e) {
|
|
721
|
+
return (...t) => t.reduce((t, n) => B(t, n, "", e), {});
|
|
706
722
|
}
|
|
707
|
-
var
|
|
723
|
+
var Me = je(), Ne = class extends Error {
|
|
708
724
|
constructor(e, t, n) {
|
|
709
725
|
super(t || e.toString(), { cause: n }), this.status = e, this.statusText = t, this.error = n, Error.captureStackTrace(this, this.constructor);
|
|
710
726
|
}
|
|
711
|
-
},
|
|
727
|
+
}, Pe = async (e, t) => {
|
|
712
728
|
let n = t || {}, r = {
|
|
713
729
|
onRequest: [t?.onRequest],
|
|
714
730
|
onResponse: [t?.onResponse],
|
|
@@ -733,7 +749,7 @@ var je = Ae(), Me = class extends Error {
|
|
|
733
749
|
options: n,
|
|
734
750
|
hooks: r
|
|
735
751
|
};
|
|
736
|
-
},
|
|
752
|
+
}, V = class {
|
|
737
753
|
constructor(e) {
|
|
738
754
|
this.options = e;
|
|
739
755
|
}
|
|
@@ -743,7 +759,7 @@ var je = Ae(), Me = class extends Error {
|
|
|
743
759
|
getDelay() {
|
|
744
760
|
return this.options.delay;
|
|
745
761
|
}
|
|
746
|
-
},
|
|
762
|
+
}, Fe = class {
|
|
747
763
|
constructor(e) {
|
|
748
764
|
this.options = e;
|
|
749
765
|
}
|
|
@@ -754,32 +770,32 @@ var je = Ae(), Me = class extends Error {
|
|
|
754
770
|
return Math.min(this.options.maxDelay, this.options.baseDelay * 2 ** e);
|
|
755
771
|
}
|
|
756
772
|
};
|
|
757
|
-
function
|
|
758
|
-
if (typeof e == "number") return new
|
|
773
|
+
function Ie(e) {
|
|
774
|
+
if (typeof e == "number") return new V({
|
|
759
775
|
type: "linear",
|
|
760
776
|
attempts: e,
|
|
761
777
|
delay: 1e3
|
|
762
778
|
});
|
|
763
779
|
switch (e.type) {
|
|
764
|
-
case "linear": return new
|
|
765
|
-
case "exponential": return new
|
|
780
|
+
case "linear": return new V(e);
|
|
781
|
+
case "exponential": return new Fe(e);
|
|
766
782
|
default: throw Error("Invalid retry strategy");
|
|
767
783
|
}
|
|
768
784
|
}
|
|
769
|
-
var
|
|
785
|
+
var Le = [
|
|
770
786
|
"get",
|
|
771
787
|
"post",
|
|
772
788
|
"put",
|
|
773
789
|
"patch",
|
|
774
790
|
"delete"
|
|
775
791
|
];
|
|
776
|
-
function
|
|
792
|
+
function H(e) {
|
|
777
793
|
if (!e.startsWith("@")) return {
|
|
778
794
|
method: void 0,
|
|
779
795
|
path: e
|
|
780
796
|
};
|
|
781
797
|
let t = e.indexOf("/"), n = e.slice(1, t === -1 ? void 0 : t);
|
|
782
|
-
return
|
|
798
|
+
return Le.includes(n) ? {
|
|
783
799
|
method: n,
|
|
784
800
|
path: t === -1 ? e : e.slice(t + 1)
|
|
785
801
|
} : {
|
|
@@ -787,24 +803,24 @@ function V(e) {
|
|
|
787
803
|
path: e
|
|
788
804
|
};
|
|
789
805
|
}
|
|
790
|
-
var
|
|
791
|
-
function
|
|
806
|
+
var U = /^[a-z][a-z\d+.-]*:\/\/[^/?#]+/i, Re = /^\/+/;
|
|
807
|
+
function W(e) {
|
|
792
808
|
let t = e.length;
|
|
793
809
|
for (; t > 0 && e[t - 1] === "/";) t--;
|
|
794
810
|
return e.slice(0, t);
|
|
795
811
|
}
|
|
796
|
-
function
|
|
812
|
+
function G(e, t) {
|
|
797
813
|
let n = e.indexOf(t);
|
|
798
814
|
return n === -1 ? [e, void 0] : [e.slice(0, n), e.slice(n + 1)];
|
|
799
815
|
}
|
|
800
|
-
var
|
|
801
|
-
function
|
|
816
|
+
var ze = (e) => e === "." || e === "..", Be = (e) => e.split(":").map((e) => encodeURIComponent(e)).join(":");
|
|
817
|
+
function Ve(e, t) {
|
|
802
818
|
let n = t.get(e);
|
|
803
|
-
if (n === void 0) return
|
|
804
|
-
if (
|
|
819
|
+
if (n === void 0) return Be(e);
|
|
820
|
+
if (ze(n)) throw TypeError("Path parameters cannot be reserved path segments");
|
|
805
821
|
return encodeURIComponent(n);
|
|
806
822
|
}
|
|
807
|
-
function
|
|
823
|
+
function He(e, t) {
|
|
808
824
|
let n = /* @__PURE__ */ new Map();
|
|
809
825
|
if (t) {
|
|
810
826
|
if (Array.isArray(t)) {
|
|
@@ -817,11 +833,11 @@ function Ve(e, t) {
|
|
|
817
833
|
}
|
|
818
834
|
return n;
|
|
819
835
|
}
|
|
820
|
-
function He(e, t) {
|
|
821
|
-
let n = Ve(e, t);
|
|
822
|
-
return e.split("/").map((e) => Be(e, n)).join("/");
|
|
823
|
-
}
|
|
824
836
|
function Ue(e, t) {
|
|
837
|
+
let n = He(e, t);
|
|
838
|
+
return e.split("/").map((e) => Ve(e, n)).join("/");
|
|
839
|
+
}
|
|
840
|
+
function We(e, t) {
|
|
825
841
|
let n = new URLSearchParams(e);
|
|
826
842
|
for (let [e, r] of Object.entries(t || {})) {
|
|
827
843
|
if (r == null) continue;
|
|
@@ -836,24 +852,24 @@ function Ue(e, t) {
|
|
|
836
852
|
let r = n.toString();
|
|
837
853
|
return r.length > 0 ? `?${r}`.replace(/\+/g, "%20") : "";
|
|
838
854
|
}
|
|
839
|
-
function
|
|
855
|
+
function Ge(e, t) {
|
|
840
856
|
if (!t) return e;
|
|
841
|
-
let n = `${
|
|
857
|
+
let n = `${W(t)}/`;
|
|
842
858
|
return e.startsWith(n) ? e.slice(n.length) : e;
|
|
843
859
|
}
|
|
844
|
-
function
|
|
845
|
-
let [i] =
|
|
846
|
-
return
|
|
860
|
+
function Ke(e, t, n, r) {
|
|
861
|
+
let [i] = G(e, "#"), [a, o = ""] = G(i, "?"), s = t.replace(Re, ""), c = We(`${o}&${n ?? ""}`, r), l = `${W(a)}/${s}${c}`;
|
|
862
|
+
return U.test(l) ? new URL(l) : l;
|
|
847
863
|
}
|
|
848
|
-
function
|
|
864
|
+
function qe(e, t) {
|
|
849
865
|
let { baseURL: n, params: r, query: i } = t || {
|
|
850
866
|
query: {},
|
|
851
867
|
params: {},
|
|
852
868
|
baseURL: ""
|
|
853
|
-
}, { path: a } =
|
|
854
|
-
return
|
|
869
|
+
}, { path: a } = H(e), o = a === e ? e : `/${a}`, s = o.match(U)?.[0], [c, l] = G(s ? o.slice(s.length) : Ge(o, n), "?"), u = Ue(c, r);
|
|
870
|
+
return Ke(s ?? n ?? "", u, l, i);
|
|
855
871
|
}
|
|
856
|
-
var
|
|
872
|
+
var Je = async (e) => {
|
|
857
873
|
let t = {}, n = async (e) => typeof e == "function" ? await e() : e;
|
|
858
874
|
if (e?.auth) {
|
|
859
875
|
if (e.auth.type === "Bearer") {
|
|
@@ -871,8 +887,8 @@ var qe = async (e) => {
|
|
|
871
887
|
}
|
|
872
888
|
}
|
|
873
889
|
return t;
|
|
874
|
-
},
|
|
875
|
-
function
|
|
890
|
+
}, Ye = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
|
|
891
|
+
function Xe(e) {
|
|
876
892
|
let t = e.headers.get("content-type"), n = /* @__PURE__ */ new Set([
|
|
877
893
|
"image/svg",
|
|
878
894
|
"application/xml",
|
|
@@ -881,37 +897,45 @@ function Ye(e) {
|
|
|
881
897
|
]);
|
|
882
898
|
if (!t) return "json";
|
|
883
899
|
let r = t.split(";").shift() || "";
|
|
884
|
-
return
|
|
900
|
+
return Ye.test(r) ? "json" : n.has(r) || r.startsWith("text/") ? "text" : "blob";
|
|
885
901
|
}
|
|
886
|
-
function
|
|
902
|
+
function Ze(e) {
|
|
887
903
|
try {
|
|
888
904
|
return JSON.parse(e), !0;
|
|
889
905
|
} catch {
|
|
890
906
|
return !1;
|
|
891
907
|
}
|
|
892
908
|
}
|
|
893
|
-
function
|
|
909
|
+
function K(e) {
|
|
894
910
|
if (e === void 0) return !1;
|
|
895
911
|
let t = typeof e;
|
|
896
912
|
return t === "string" || t === "number" || t === "boolean" || t === null ? !0 : t === "object" ? Array.isArray(e) ? !0 : e.buffer ? !1 : e.constructor && e.constructor.name === "Object" || typeof e.toJSON == "function" : !1;
|
|
897
913
|
}
|
|
898
|
-
function
|
|
914
|
+
function q(e) {
|
|
899
915
|
try {
|
|
900
916
|
return JSON.parse(e);
|
|
901
917
|
} catch {
|
|
902
918
|
return e;
|
|
903
919
|
}
|
|
904
920
|
}
|
|
905
|
-
function
|
|
921
|
+
function J(e) {
|
|
906
922
|
return typeof e == "function";
|
|
907
923
|
}
|
|
908
|
-
function
|
|
924
|
+
function Qe(e) {
|
|
909
925
|
if (e?.customFetchImpl) return e.customFetchImpl;
|
|
910
|
-
if (typeof globalThis < "u" &&
|
|
911
|
-
if (typeof window < "u" &&
|
|
926
|
+
if (typeof globalThis < "u" && J(globalThis.fetch)) return globalThis.fetch;
|
|
927
|
+
if (typeof window < "u" && J(window.fetch)) return window.fetch;
|
|
912
928
|
throw Error("No fetch implementation found");
|
|
913
929
|
}
|
|
914
|
-
function
|
|
930
|
+
function $e(e) {
|
|
931
|
+
return e ? [
|
|
932
|
+
"POST",
|
|
933
|
+
"PUT",
|
|
934
|
+
"PATCH",
|
|
935
|
+
"DELETE"
|
|
936
|
+
].includes(e.toUpperCase()) : !1;
|
|
937
|
+
}
|
|
938
|
+
function Y(...e) {
|
|
915
939
|
let t = {};
|
|
916
940
|
for (let n of e) if (n) {
|
|
917
941
|
if (n instanceof Headers) n.forEach((e, n) => {
|
|
@@ -924,31 +948,31 @@ function J(...e) {
|
|
|
924
948
|
}
|
|
925
949
|
return t;
|
|
926
950
|
}
|
|
927
|
-
async function
|
|
928
|
-
let t = new Headers(
|
|
951
|
+
async function et(e) {
|
|
952
|
+
let t = new Headers(Y(e?.headers, await Je(e)));
|
|
929
953
|
if (!t.has("content-type")) {
|
|
930
|
-
let n =
|
|
954
|
+
let n = tt(e?.body);
|
|
931
955
|
n && t.set("content-type", n);
|
|
932
956
|
}
|
|
933
957
|
return t;
|
|
934
958
|
}
|
|
935
|
-
function
|
|
936
|
-
return
|
|
959
|
+
function tt(e) {
|
|
960
|
+
return K(e) ? "application/json" : null;
|
|
937
961
|
}
|
|
938
|
-
function
|
|
962
|
+
function nt(e) {
|
|
939
963
|
let t = e.get("content-type");
|
|
940
964
|
return t ? t.split(";")[0].trim().toLowerCase() : null;
|
|
941
965
|
}
|
|
942
|
-
function
|
|
966
|
+
function rt(e, t) {
|
|
943
967
|
let { body: n } = e;
|
|
944
|
-
return n ? !
|
|
968
|
+
return n ? !K(n) || typeof n == "string" ? n : nt(t) === "application/x-www-form-urlencoded" ? new URLSearchParams(n).toString() : JSON.stringify(n) : null;
|
|
945
969
|
}
|
|
946
|
-
function
|
|
970
|
+
function it(e, t) {
|
|
947
971
|
if (t?.method) return t.method.toUpperCase();
|
|
948
|
-
let { method: n } =
|
|
972
|
+
let { method: n } = H(e);
|
|
949
973
|
return n ? n.toUpperCase() : t?.body ? "POST" : "GET";
|
|
950
974
|
}
|
|
951
|
-
function
|
|
975
|
+
function at(e, t) {
|
|
952
976
|
let n;
|
|
953
977
|
return !e?.signal && e?.timeout && (n = setTimeout(() => t?.abort(), e?.timeout)), {
|
|
954
978
|
abortTimeout: n,
|
|
@@ -957,47 +981,47 @@ function rt(e, t) {
|
|
|
957
981
|
}
|
|
958
982
|
};
|
|
959
983
|
}
|
|
960
|
-
var
|
|
984
|
+
var ot = class e extends Error {
|
|
961
985
|
constructor(t, n) {
|
|
962
986
|
super(n || JSON.stringify(t, null, 2)), this.issues = t, Object.setPrototypeOf(this, e.prototype);
|
|
963
987
|
}
|
|
964
988
|
};
|
|
965
|
-
async function
|
|
989
|
+
async function X(e, t) {
|
|
966
990
|
let n = await e["~standard"].validate(t);
|
|
967
|
-
if (n.issues) throw new
|
|
991
|
+
if (n.issues) throw new ot(n.issues);
|
|
968
992
|
return n.value;
|
|
969
993
|
}
|
|
970
|
-
function
|
|
994
|
+
function Z(e) {
|
|
971
995
|
"@babel/helpers - typeof";
|
|
972
|
-
return
|
|
996
|
+
return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
973
997
|
return typeof e;
|
|
974
998
|
} : function(e) {
|
|
975
999
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
976
|
-
},
|
|
1000
|
+
}, Z(e);
|
|
977
1001
|
}
|
|
978
|
-
function
|
|
979
|
-
if (
|
|
1002
|
+
function st(e, t) {
|
|
1003
|
+
if (Z(e) != "object" || !e) return e;
|
|
980
1004
|
var n = e[Symbol.toPrimitive];
|
|
981
1005
|
if (n !== void 0) {
|
|
982
1006
|
var r = n.call(e, t || "default");
|
|
983
|
-
if (
|
|
1007
|
+
if (Z(r) != "object") return r;
|
|
984
1008
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
985
1009
|
}
|
|
986
1010
|
return (t === "string" ? String : Number)(e);
|
|
987
1011
|
}
|
|
988
|
-
function
|
|
989
|
-
var t =
|
|
990
|
-
return
|
|
1012
|
+
function ct(e) {
|
|
1013
|
+
var t = st(e, "string");
|
|
1014
|
+
return Z(t) == "symbol" ? t : t + "";
|
|
991
1015
|
}
|
|
992
|
-
function
|
|
993
|
-
return (t =
|
|
1016
|
+
function lt(e, t, n) {
|
|
1017
|
+
return (t = ct(t)) in e ? Object.defineProperty(e, t, {
|
|
994
1018
|
value: n,
|
|
995
1019
|
enumerable: !0,
|
|
996
1020
|
configurable: !0,
|
|
997
1021
|
writable: !0
|
|
998
1022
|
}) : e[t] = n, e;
|
|
999
1023
|
}
|
|
1000
|
-
function
|
|
1024
|
+
function ut(e, t) {
|
|
1001
1025
|
var n = Object.keys(e);
|
|
1002
1026
|
if (Object.getOwnPropertySymbols) {
|
|
1003
1027
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1007,20 +1031,20 @@ function ct(e, t) {
|
|
|
1007
1031
|
}
|
|
1008
1032
|
return n;
|
|
1009
1033
|
}
|
|
1010
|
-
function
|
|
1034
|
+
function Q(e) {
|
|
1011
1035
|
for (var t = 1; t < arguments.length; t++) {
|
|
1012
1036
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
1013
|
-
t % 2 ?
|
|
1014
|
-
|
|
1015
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
1037
|
+
t % 2 ? ut(Object(n), !0).forEach(function(t) {
|
|
1038
|
+
lt(e, t, n[t]);
|
|
1039
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ut(Object(n)).forEach(function(t) {
|
|
1016
1040
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1017
1041
|
});
|
|
1018
1042
|
}
|
|
1019
1043
|
return e;
|
|
1020
1044
|
}
|
|
1021
|
-
var
|
|
1045
|
+
var $ = async (e, t) => {
|
|
1022
1046
|
var n;
|
|
1023
|
-
let { hooks: r, url: i, options: a } = await
|
|
1047
|
+
let { hooks: r, url: i, options: a } = await Pe(e, t), o = Qe(a), s = new AbortController(), c = a.signal ?? s.signal, l = qe(i, a), u = await et(a), d = rt(a, u), f = it(i, a), p = Q(Q({}, a), {}, {
|
|
1024
1048
|
url: l,
|
|
1025
1049
|
headers: u,
|
|
1026
1050
|
body: d,
|
|
@@ -1032,7 +1056,7 @@ var Q = async (e, t) => {
|
|
|
1032
1056
|
typeof t == "object" && t && Object.assign(p, t);
|
|
1033
1057
|
}
|
|
1034
1058
|
("pipeTo" in p && typeof p.pipeTo == "function" || typeof (t == null || (n = t.body) == null ? void 0 : n.pipe) == "function") && ("duplex" in p || (p.duplex = "half"));
|
|
1035
|
-
let { clearTimeout: m } =
|
|
1059
|
+
let { clearTimeout: m } = at(a, s), h = await o(p.url, p);
|
|
1036
1060
|
m();
|
|
1037
1061
|
let g = {
|
|
1038
1062
|
response: h,
|
|
@@ -1040,7 +1064,7 @@ var Q = async (e, t) => {
|
|
|
1040
1064
|
};
|
|
1041
1065
|
for (let e of r.onResponse) if (e) {
|
|
1042
1066
|
var _;
|
|
1043
|
-
let n = await e(
|
|
1067
|
+
let n = await e(Q(Q({}, g), {}, { response: t != null && (_ = t.hookOptions) != null && _.cloneResponse ? h.clone() : h }));
|
|
1044
1068
|
n instanceof Response ? h = n : typeof n == "object" && n && (h = n.response);
|
|
1045
1069
|
}
|
|
1046
1070
|
if (h.ok) {
|
|
@@ -1048,67 +1072,67 @@ var Q = async (e, t) => {
|
|
|
1048
1072
|
data: "",
|
|
1049
1073
|
error: null
|
|
1050
1074
|
};
|
|
1051
|
-
let e =
|
|
1075
|
+
let e = Xe(h), n = {
|
|
1052
1076
|
data: null,
|
|
1053
1077
|
response: h,
|
|
1054
1078
|
request: p
|
|
1055
1079
|
};
|
|
1056
1080
|
if (e === "json" || e === "text") {
|
|
1057
1081
|
let e = await h.text();
|
|
1058
|
-
n.data = await (p.jsonParser ??
|
|
1082
|
+
n.data = await (p.jsonParser ?? q)(e);
|
|
1059
1083
|
} else n.data = await h[e]();
|
|
1060
|
-
p?.output && p.output && !p.disableValidation && (n.data = await
|
|
1084
|
+
p?.output && p.output && !p.disableValidation && (n.data = await X(p.output, n.data));
|
|
1061
1085
|
for (let e of r.onSuccess) if (e) {
|
|
1062
1086
|
var v;
|
|
1063
|
-
await e(
|
|
1087
|
+
await e(Q(Q({}, n), {}, { response: t != null && (v = t.hookOptions) != null && v.cloneResponse ? h.clone() : h }));
|
|
1064
1088
|
}
|
|
1065
1089
|
return t?.throw ? n.data : {
|
|
1066
1090
|
data: n.data,
|
|
1067
1091
|
error: null
|
|
1068
1092
|
};
|
|
1069
1093
|
}
|
|
1070
|
-
let y = t?.jsonParser ??
|
|
1094
|
+
let y = t?.jsonParser ?? q, b = await h.text(), x = Ze(b), S = x ? await y(b) : null, C = {
|
|
1071
1095
|
response: h,
|
|
1072
1096
|
responseText: b,
|
|
1073
1097
|
request: p,
|
|
1074
|
-
error:
|
|
1098
|
+
error: Q(Q({}, S), {}, {
|
|
1075
1099
|
status: h.status,
|
|
1076
1100
|
statusText: h.statusText
|
|
1077
1101
|
})
|
|
1078
1102
|
};
|
|
1079
1103
|
for (let e of r.onError) if (e) {
|
|
1080
1104
|
var w;
|
|
1081
|
-
await e(
|
|
1105
|
+
await e(Q(Q({}, C), {}, { response: t != null && (w = t.hookOptions) != null && w.cloneResponse ? h.clone() : h }));
|
|
1082
1106
|
}
|
|
1083
1107
|
if (t?.retry) {
|
|
1084
|
-
let n =
|
|
1108
|
+
let n = Ie(t.retry), i = t.retryAttempt ?? 0;
|
|
1085
1109
|
if (await n.shouldAttemptRetry(i, h)) {
|
|
1086
1110
|
for (let e of r.onRetry) e && await e(g);
|
|
1087
1111
|
let a = n.getDelay(i);
|
|
1088
|
-
return await new Promise((e) => setTimeout(e, a)), await
|
|
1112
|
+
return await new Promise((e) => setTimeout(e, a)), await $(e, Q(Q({}, t), {}, { retryAttempt: i + 1 }));
|
|
1089
1113
|
}
|
|
1090
1114
|
}
|
|
1091
|
-
if (t?.throw) throw new
|
|
1115
|
+
if (t?.throw) throw new Ne(h.status, h.statusText, x ? S : b);
|
|
1092
1116
|
return {
|
|
1093
1117
|
data: null,
|
|
1094
|
-
error:
|
|
1118
|
+
error: Q(Q({}, S), {}, {
|
|
1095
1119
|
status: h.status,
|
|
1096
1120
|
statusText: h.statusText
|
|
1097
1121
|
})
|
|
1098
1122
|
};
|
|
1099
|
-
},
|
|
1123
|
+
}, dt = (e) => ({
|
|
1100
1124
|
id: "apply-schema",
|
|
1101
1125
|
name: "Apply Schema",
|
|
1102
1126
|
version: "1.0.0",
|
|
1103
1127
|
async init(t, n) {
|
|
1104
1128
|
var r;
|
|
1105
|
-
let i =
|
|
1129
|
+
let i = Q(Q({}, n), e.query !== void 0 && { query: Q(Q({}, e.query), n?.query) }), a = ((r = e.plugins) == null || (r = r.find((e) => e.schema?.config ? t.startsWith(e.schema.config.baseURL || "") || t.startsWith(e.schema.config.prefix || "") : !1)) == null ? void 0 : r.schema) || e.schema;
|
|
1106
1130
|
if (a) {
|
|
1107
1131
|
let r = t;
|
|
1108
1132
|
a.config?.prefix && r.startsWith(a.config.prefix) && (r = r.replace(a.config.prefix, ""), a.config.baseURL && (t = t.replace(a.config.prefix, a.config.baseURL))), a.config?.baseURL && r.startsWith(a.config.baseURL) && (r = r.replace(a.config.baseURL, "")), r.startsWith("/") && r.charAt(1) === "@" && (r = r.substring(1));
|
|
1109
1133
|
let o = a.schema[r];
|
|
1110
1134
|
if (o) {
|
|
1111
|
-
let { method: a, path: s } =
|
|
1135
|
+
let { method: a, path: s } = H(r);
|
|
1112
1136
|
a && (t = t.slice(0, t.length - r.length) + s);
|
|
1113
1137
|
let c = n?.headers;
|
|
1114
1138
|
if (o.headers && !n?.disableValidation) {
|
|
@@ -1119,20 +1143,20 @@ var Q = async (e, t) => {
|
|
|
1119
1143
|
});
|
|
1120
1144
|
else if (typeof n.headers == "object") for (let [t, r] of Object.entries(n.headers)) r != null && (e[t.toLowerCase()] = r);
|
|
1121
1145
|
}
|
|
1122
|
-
let t = await
|
|
1146
|
+
let t = await X(o.headers, e), r = {};
|
|
1123
1147
|
for (let [e, n] of Object.entries(t)) r[e.toLowerCase()] = n;
|
|
1124
1148
|
c = r;
|
|
1125
1149
|
}
|
|
1126
1150
|
let l = o.method ?? a;
|
|
1127
|
-
if (i =
|
|
1128
|
-
if (o.query && (i.query = await
|
|
1129
|
-
let t =
|
|
1151
|
+
if (i = Q(Q(Q(Q({}, i), l !== void 0 && { method: l }), o.output !== void 0 && { output: o.output }), c !== void 0 && { headers: c }), !n?.disableValidation) {
|
|
1152
|
+
if (o.query && (i.query = await X(o.query, n?.query), i.query !== null && typeof i.query == "object")) {
|
|
1153
|
+
let t = Q({}, e.query);
|
|
1130
1154
|
for (let e of Object.keys(t)) n?.query && Object.prototype.hasOwnProperty.call(n.query, e) && (t[e] = n.query[e]);
|
|
1131
|
-
i.query =
|
|
1155
|
+
i.query = Q(Q({}, t), i.query);
|
|
1132
1156
|
}
|
|
1133
|
-
i =
|
|
1134
|
-
body: o.input ? await
|
|
1135
|
-
params: o.params ? await
|
|
1157
|
+
i = Q(Q({}, i), {}, {
|
|
1158
|
+
body: o.input ? await X(o.input, n?.body) : n?.body,
|
|
1159
|
+
params: o.params ? await X(o.params, n?.params) : n?.params
|
|
1136
1160
|
});
|
|
1137
1161
|
}
|
|
1138
1162
|
return {
|
|
@@ -1141,20 +1165,20 @@ var Q = async (e, t) => {
|
|
|
1141
1165
|
};
|
|
1142
1166
|
}
|
|
1143
1167
|
}
|
|
1144
|
-
return
|
|
1168
|
+
return Q({ url: t }, (n !== void 0 || e.query !== void 0) && { options: i });
|
|
1145
1169
|
}
|
|
1146
|
-
}),
|
|
1170
|
+
}), ft = (e) => {
|
|
1147
1171
|
async function t(t, n) {
|
|
1148
|
-
let r =
|
|
1149
|
-
headers:
|
|
1172
|
+
let r = Q(Q(Q({}, e), n), {}, {
|
|
1173
|
+
headers: Y(e?.headers, n?.headers),
|
|
1150
1174
|
plugins: [
|
|
1151
1175
|
...e?.plugins || [],
|
|
1152
|
-
|
|
1176
|
+
dt(e || {}),
|
|
1153
1177
|
...n?.plugins || []
|
|
1154
1178
|
]
|
|
1155
1179
|
});
|
|
1156
1180
|
if (e?.catchAllError) try {
|
|
1157
|
-
return await
|
|
1181
|
+
return await $(t, r);
|
|
1158
1182
|
} catch (e) {
|
|
1159
1183
|
return {
|
|
1160
1184
|
data: null,
|
|
@@ -1166,10 +1190,10 @@ var Q = async (e, t) => {
|
|
|
1166
1190
|
}
|
|
1167
1191
|
};
|
|
1168
1192
|
}
|
|
1169
|
-
return await
|
|
1193
|
+
return await $(t, r);
|
|
1170
1194
|
}
|
|
1171
1195
|
return t;
|
|
1172
|
-
},
|
|
1196
|
+
}, pt = (e) => {
|
|
1173
1197
|
if (typeof process > "u") return;
|
|
1174
1198
|
let t = e ?? "/api/auth";
|
|
1175
1199
|
if (process.env.NEXT_PUBLIC_AUTH_URL) return process.env.NEXT_PUBLIC_AUTH_URL;
|
|
@@ -1182,8 +1206,8 @@ var Q = async (e, t) => {
|
|
|
1182
1206
|
return `${new URL(`${e}${process.env.VERCEL_URL}`).origin}${t}`;
|
|
1183
1207
|
} catch {}
|
|
1184
1208
|
}
|
|
1185
|
-
},
|
|
1186
|
-
let n = "credentials" in Request.prototype, r =
|
|
1209
|
+
}, mt = (e) => e === "/sign-out" || e === "/update-user" || e === "/update-session" || e === "/sign-up/email" || e === "/sign-in/email" || e === "/delete-user" || e === "/verify-email" || e === "/revoke-sessions" || e === "/revoke-session" || e === "/revoke-other-sessions" || e === "/change-email" || e === "/change-password", ht = (e, t) => {
|
|
1210
|
+
let n = "credentials" in Request.prototype, r = be(e?.baseURL, e?.basePath, void 0, t) ?? pt(e?.basePath) ?? "/api/auth", i = e?.plugins?.flatMap((e) => e.fetchPlugins).filter((e) => e !== void 0) || [], a = {
|
|
1187
1211
|
id: "lifecycle-hooks",
|
|
1188
1212
|
name: "lifecycle-hooks",
|
|
1189
1213
|
hooks: {
|
|
@@ -1192,23 +1216,23 @@ var Q = async (e, t) => {
|
|
|
1192
1216
|
onRequest: e?.fetchOptions?.onRequest,
|
|
1193
1217
|
onResponse: e?.fetchOptions?.onResponse
|
|
1194
1218
|
}
|
|
1195
|
-
}, { onSuccess: o, onError: s, onRequest: c, onResponse: l, ...u } = e?.fetchOptions || {}, d =
|
|
1219
|
+
}, { onSuccess: o, onError: s, onRequest: c, onResponse: l, ...u } = e?.fetchOptions || {}, d = ft({
|
|
1196
1220
|
baseURL: r,
|
|
1197
1221
|
...n ? { credentials: "include" } : {},
|
|
1198
1222
|
method: "GET",
|
|
1199
1223
|
jsonParser(e) {
|
|
1200
|
-
return e ?
|
|
1224
|
+
return e ? oe(e, { strict: !1 }) : null;
|
|
1201
1225
|
},
|
|
1202
1226
|
customFetchImpl: fetch,
|
|
1203
1227
|
...u,
|
|
1204
1228
|
plugins: [
|
|
1205
1229
|
a,
|
|
1206
1230
|
...u.plugins || [],
|
|
1207
|
-
...e?.disableDefaultFetchPlugins ? [] : [
|
|
1231
|
+
...e?.disableDefaultFetchPlugins ? [] : [we],
|
|
1208
1232
|
...i
|
|
1209
1233
|
]
|
|
1210
|
-
}), { $sessionSignal: f, session: p, broadcastSessionUpdate: m } =
|
|
1211
|
-
h || e === null || (h = !0,
|
|
1234
|
+
}), { $sessionSignal: f, session: p, broadcastSessionUpdate: m } = Ae(d, e), h = !1, g = (e) => {
|
|
1235
|
+
h || e === null || (h = !0, De(p, e));
|
|
1212
1236
|
}, _ = e?.plugins || [], v = {}, y = {
|
|
1213
1237
|
$sessionSignal: f,
|
|
1214
1238
|
session: p
|
|
@@ -1219,7 +1243,7 @@ var Q = async (e, t) => {
|
|
|
1219
1243
|
"/delete-user": "POST"
|
|
1220
1244
|
}, x = [{
|
|
1221
1245
|
signal: "$sessionSignal",
|
|
1222
|
-
matcher:
|
|
1246
|
+
matcher: mt,
|
|
1223
1247
|
callback(e) {
|
|
1224
1248
|
e === "/sign-out" ? m("signout") : (e === "/update-user" || e === "/update-session") && m("updateUser");
|
|
1225
1249
|
}
|
|
@@ -1234,7 +1258,7 @@ var Q = async (e, t) => {
|
|
|
1234
1258
|
},
|
|
1235
1259
|
atoms: y
|
|
1236
1260
|
};
|
|
1237
|
-
for (let t of _) t.getActions && (v =
|
|
1261
|
+
for (let t of _) t.getActions && (v = Me(t.getActions?.(d, S, e) ?? {}, v));
|
|
1238
1262
|
return {
|
|
1239
1263
|
get baseURL() {
|
|
1240
1264
|
return r;
|
|
@@ -1249,27 +1273,23 @@ var Q = async (e, t) => {
|
|
|
1249
1273
|
$store: S
|
|
1250
1274
|
};
|
|
1251
1275
|
};
|
|
1252
|
-
// ../node_modules/.bun/better-auth@1.7.
|
|
1253
|
-
function
|
|
1276
|
+
// ../node_modules/.bun/better-auth@1.7.29+21e7ec724477b6ed/node_modules/better-auth/dist/utils/is-atom.mjs
|
|
1277
|
+
function gt(e) {
|
|
1254
1278
|
return typeof e == "object" && !!e && "get" in e && typeof e.get == "function" && "lc" in e && typeof e.lc == "number";
|
|
1255
1279
|
}
|
|
1256
|
-
// ../node_modules/.bun/@better-auth+core@1.7.
|
|
1257
|
-
function
|
|
1280
|
+
// ../node_modules/.bun/@better-auth+core@1.7.29+a5be2c1e11d7dcc2/node_modules/@better-auth/core/dist/utils/string.mjs
|
|
1281
|
+
function _t(e) {
|
|
1258
1282
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1259
1283
|
}
|
|
1260
|
-
var
|
|
1261
|
-
function
|
|
1262
|
-
return e.replace(
|
|
1263
|
-
}
|
|
1264
|
-
function yt(e) {
|
|
1265
|
-
return vt(e).map((e) => e.toLowerCase()).join("-");
|
|
1284
|
+
var vt = /[\p{Ll}\d]+|\p{Lu}+(?!\p{Ll})|\p{Lu}[\p{Ll}\d]+|\p{Lo}+/gu, yt = /['\u2019]/g;
|
|
1285
|
+
function bt(e) {
|
|
1286
|
+
return e.replace(yt, "").match(vt) ?? [];
|
|
1266
1287
|
}
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
let r = t[e], { fetchOptions: i, query: a, ...o } = n || {};
|
|
1270
|
-
return r || (i?.method ? i.method : o && Object.keys(o).length > 0 ? "POST" : "GET");
|
|
1288
|
+
function xt(e) {
|
|
1289
|
+
return bt(e).map((e) => e.toLowerCase()).join("-");
|
|
1271
1290
|
}
|
|
1272
|
-
|
|
1291
|
+
// ../node_modules/.bun/better-auth@1.7.29+21e7ec724477b6ed/node_modules/better-auth/dist/client/proxy.mjs
|
|
1292
|
+
function St(e, t, n, r, i) {
|
|
1273
1293
|
function a(o = []) {
|
|
1274
1294
|
return new Proxy(function() {}, {
|
|
1275
1295
|
get(t, n) {
|
|
@@ -1280,19 +1300,19 @@ function xt(e, t, n, r, i) {
|
|
|
1280
1300
|
i = void 0;
|
|
1281
1301
|
break;
|
|
1282
1302
|
}
|
|
1283
|
-
return typeof i == "function" ||
|
|
1303
|
+
return typeof i == "function" || gt(i) ? i : a(r);
|
|
1284
1304
|
},
|
|
1285
1305
|
apply: async (e, a, s) => {
|
|
1286
|
-
let c = "/" + o.map(
|
|
1306
|
+
let c = "/" + o.map(xt).join("/"), l = s[0] || {}, u = s[1] || {}, { query: d, fetchOptions: f, ...p } = l, m = {
|
|
1287
1307
|
...u,
|
|
1288
1308
|
...f
|
|
1289
|
-
}, h =
|
|
1309
|
+
}, h = n[c] || m.method || (Object.keys(p).length > 0 ? "POST" : "GET");
|
|
1290
1310
|
return await t(c, {
|
|
1291
1311
|
...m,
|
|
1292
|
-
body: h
|
|
1312
|
+
body: $e(h) ? {
|
|
1293
1313
|
...p,
|
|
1294
1314
|
...m?.body || {}
|
|
1295
|
-
},
|
|
1315
|
+
} : void 0,
|
|
1296
1316
|
query: d || m?.query,
|
|
1297
1317
|
method: h,
|
|
1298
1318
|
async onSuccess(e) {
|
|
@@ -1317,11 +1337,11 @@ function xt(e, t, n, r, i) {
|
|
|
1317
1337
|
}
|
|
1318
1338
|
return a();
|
|
1319
1339
|
}
|
|
1320
|
-
// ../node_modules/.bun/better-auth@1.7.
|
|
1321
|
-
function
|
|
1322
|
-
let { pluginPathMethods: t, pluginsActions: n, pluginsAtoms: r, hydrateSession: i, $fetch: a, atomListeners: o, $store: s } =
|
|
1323
|
-
for (let [e, t] of Object.entries(r)) c[`use${
|
|
1324
|
-
return
|
|
1340
|
+
// ../node_modules/.bun/better-auth@1.7.29+21e7ec724477b6ed/node_modules/better-auth/dist/client/vanilla.mjs
|
|
1341
|
+
function Ct(e) {
|
|
1342
|
+
let { pluginPathMethods: t, pluginsActions: n, pluginsAtoms: r, hydrateSession: i, $fetch: a, atomListeners: o, $store: s } = ht(e), c = {};
|
|
1343
|
+
for (let [e, t] of Object.entries(r)) c[`use${_t(e)}`] = t;
|
|
1344
|
+
return St({
|
|
1325
1345
|
...n,
|
|
1326
1346
|
...c,
|
|
1327
1347
|
hydrateSession: i,
|
|
@@ -1330,5 +1350,5 @@ function St(e) {
|
|
|
1330
1350
|
}, a, t, r, o);
|
|
1331
1351
|
}
|
|
1332
1352
|
// src/lib/auth-client.ts
|
|
1333
|
-
var
|
|
1334
|
-
export {
|
|
1353
|
+
var wt = Ct({ baseURL: typeof window < "u" ? window.location.origin : "" }), { signIn: Tt, signUp: Et, signOut: Dt, getSession: Ot } = wt;
|
|
1354
|
+
export { Ot as n, Dt as r, wt as t };
|