@hiai-gg/docsmint 2.2.3 → 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 +60080 -40793
- 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,4255 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./bundle-mjs-clTO1WW-.js";
|
|
2
|
-
import "svelte/internal/disclose-version";
|
|
3
|
-
import * as t from "svelte/internal/client";
|
|
4
|
-
import { getContext as n, hasContext as r, onMount as i, setContext as a, tick as o, untrack as s } from "svelte";
|
|
5
|
-
import { on as c } from "svelte/events";
|
|
6
|
-
import { SvelteMap as l, createSubscriber as u } from "svelte/reactivity";
|
|
7
|
-
import { createAttachmentKey as d } from "svelte/attachments";
|
|
8
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/is.js
|
|
9
|
-
function f(e) {
|
|
10
|
-
return typeof e == "function";
|
|
11
|
-
}
|
|
12
|
-
function p(e) {
|
|
13
|
-
return typeof e == "object" && !!e;
|
|
14
|
-
}
|
|
15
|
-
var m = [
|
|
16
|
-
"string",
|
|
17
|
-
"number",
|
|
18
|
-
"bigint",
|
|
19
|
-
"boolean"
|
|
20
|
-
];
|
|
21
|
-
function h(e) {
|
|
22
|
-
return e == null || m.includes(typeof e) ? !0 : Array.isArray(e) ? e.every((e) => h(e)) : typeof e == "object" && Object.getPrototypeOf(e) === Object.prototype;
|
|
23
|
-
}
|
|
24
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/box/box-extras.svelte.js
|
|
25
|
-
var g = Symbol("box"), _ = Symbol("is-writable");
|
|
26
|
-
function v(e, n) {
|
|
27
|
-
let r = t.derived(e);
|
|
28
|
-
return n ? {
|
|
29
|
-
[g]: !0,
|
|
30
|
-
[_]: !0,
|
|
31
|
-
get current() {
|
|
32
|
-
return t.get(r);
|
|
33
|
-
},
|
|
34
|
-
set current(e) {
|
|
35
|
-
n(e);
|
|
36
|
-
}
|
|
37
|
-
} : {
|
|
38
|
-
[g]: !0,
|
|
39
|
-
get current() {
|
|
40
|
-
return e();
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function y(e) {
|
|
45
|
-
return p(e) && g in e;
|
|
46
|
-
}
|
|
47
|
-
function b(e) {
|
|
48
|
-
return y(e) && _ in e;
|
|
49
|
-
}
|
|
50
|
-
function x(e) {
|
|
51
|
-
return y(e) ? e : f(e) ? v(e) : w(e);
|
|
52
|
-
}
|
|
53
|
-
function S(e) {
|
|
54
|
-
return Object.entries(e).reduce((e, [t, n]) => y(n) ? (b(n) ? Object.defineProperty(e, t, {
|
|
55
|
-
get() {
|
|
56
|
-
return n.current;
|
|
57
|
-
},
|
|
58
|
-
set(e) {
|
|
59
|
-
n.current = e;
|
|
60
|
-
}
|
|
61
|
-
}) : Object.defineProperty(e, t, { get() {
|
|
62
|
-
return n.current;
|
|
63
|
-
} }), e) : Object.assign(e, { [t]: n }), {});
|
|
64
|
-
}
|
|
65
|
-
function C(e) {
|
|
66
|
-
return b(e) ? {
|
|
67
|
-
[g]: !0,
|
|
68
|
-
get current() {
|
|
69
|
-
return e.current;
|
|
70
|
-
}
|
|
71
|
-
} : e;
|
|
72
|
-
}
|
|
73
|
-
function w(e) {
|
|
74
|
-
let n = t.state(t.proxy(e));
|
|
75
|
-
return {
|
|
76
|
-
[g]: !0,
|
|
77
|
-
[_]: !0,
|
|
78
|
-
get current() {
|
|
79
|
-
return t.get(n);
|
|
80
|
-
},
|
|
81
|
-
set current(e) {
|
|
82
|
-
t.set(n, e, !0);
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/box/box.svelte.js
|
|
87
|
-
function T(e) {
|
|
88
|
-
let n = t.state(t.proxy(e));
|
|
89
|
-
return {
|
|
90
|
-
[g]: !0,
|
|
91
|
-
[_]: !0,
|
|
92
|
-
get current() {
|
|
93
|
-
return t.get(n);
|
|
94
|
-
},
|
|
95
|
-
set current(e) {
|
|
96
|
-
t.set(n, e, !0);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
T.from = x, T.with = v, T.flatten = S, T.readonly = C, T.isBox = y, T.isWritableBox = b;
|
|
101
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/compose-handlers.js
|
|
102
|
-
function ee(...e) {
|
|
103
|
-
return function(t) {
|
|
104
|
-
for (let n of e) if (n) {
|
|
105
|
-
if (t.defaultPrevented) return;
|
|
106
|
-
typeof n == "function" ? n.call(this, t) : n.current?.call(this, t);
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
// ../node_modules/.bun/inline-style-parser@0.2.7/node_modules/inline-style-parser/esm/index.mjs
|
|
111
|
-
var te = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, ne = /\n/g, re = /^\s*/, E = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, ie = /^:\s*/, ae = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, oe = /^[;\s]*/, se = /^\s+|\s+$/g, ce = "\n", le = "/", ue = "*", D = "", de = "comment", fe = "declaration";
|
|
112
|
-
function pe(e, t) {
|
|
113
|
-
if (typeof e != "string") throw TypeError("First argument must be a string");
|
|
114
|
-
if (!e) return [];
|
|
115
|
-
t ||= {};
|
|
116
|
-
var n = 1, r = 1;
|
|
117
|
-
function i(e) {
|
|
118
|
-
var t = e.match(ne);
|
|
119
|
-
t && (n += t.length);
|
|
120
|
-
var i = e.lastIndexOf(ce);
|
|
121
|
-
r = ~i ? e.length - i : r + e.length;
|
|
122
|
-
}
|
|
123
|
-
function a() {
|
|
124
|
-
var e = {
|
|
125
|
-
line: n,
|
|
126
|
-
column: r
|
|
127
|
-
};
|
|
128
|
-
return function(t) {
|
|
129
|
-
return t.position = new o(e), l(), t;
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
function o(e) {
|
|
133
|
-
this.start = e, this.end = {
|
|
134
|
-
line: n,
|
|
135
|
-
column: r
|
|
136
|
-
}, this.source = t.source;
|
|
137
|
-
}
|
|
138
|
-
o.prototype.content = e;
|
|
139
|
-
function s(i) {
|
|
140
|
-
var a = /* @__PURE__ */ Error(t.source + ":" + n + ":" + r + ": " + i);
|
|
141
|
-
if (a.reason = i, a.filename = t.source, a.line = n, a.column = r, a.source = e, !t.silent) throw a;
|
|
142
|
-
}
|
|
143
|
-
function c(t) {
|
|
144
|
-
var n = t.exec(e);
|
|
145
|
-
if (n) {
|
|
146
|
-
var r = n[0];
|
|
147
|
-
return i(r), e = e.slice(r.length), n;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
function l() {
|
|
151
|
-
c(re);
|
|
152
|
-
}
|
|
153
|
-
function u(e) {
|
|
154
|
-
var t;
|
|
155
|
-
for (e ||= []; t = d();) t !== !1 && e.push(t);
|
|
156
|
-
return e;
|
|
157
|
-
}
|
|
158
|
-
function d() {
|
|
159
|
-
var t = a();
|
|
160
|
-
if (le == e.charAt(0) && ue == e.charAt(1)) {
|
|
161
|
-
for (var n = 2; D != e.charAt(n) && (ue != e.charAt(n) || le != e.charAt(n + 1));) ++n;
|
|
162
|
-
if (n += 2, D === e.charAt(n - 1)) return s("End of comment missing");
|
|
163
|
-
var o = e.slice(2, n - 2);
|
|
164
|
-
return r += 2, i(o), e = e.slice(n), r += 2, t({
|
|
165
|
-
type: de,
|
|
166
|
-
comment: o
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
function f() {
|
|
171
|
-
var e = a(), t = c(E);
|
|
172
|
-
if (t) {
|
|
173
|
-
if (d(), !c(ie)) return s("property missing ':'");
|
|
174
|
-
var n = c(ae), r = e({
|
|
175
|
-
type: fe,
|
|
176
|
-
property: me(t[0].replace(te, D)),
|
|
177
|
-
value: n ? me(n[0].replace(te, D)) : D
|
|
178
|
-
});
|
|
179
|
-
return c(oe), r;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
function p() {
|
|
183
|
-
var e = [];
|
|
184
|
-
u(e);
|
|
185
|
-
for (var t; t = f();) t !== !1 && (e.push(t), u(e));
|
|
186
|
-
return e;
|
|
187
|
-
}
|
|
188
|
-
return l(), p();
|
|
189
|
-
}
|
|
190
|
-
function me(e) {
|
|
191
|
-
return e ? e.replace(se, D) : D;
|
|
192
|
-
}
|
|
193
|
-
// ../node_modules/.bun/style-to-object@1.0.14/node_modules/style-to-object/esm/index.mjs
|
|
194
|
-
function he(e, t) {
|
|
195
|
-
let n = null;
|
|
196
|
-
if (!e || typeof e != "string") return n;
|
|
197
|
-
let r = pe(e), i = typeof t == "function";
|
|
198
|
-
return r.forEach((e) => {
|
|
199
|
-
if (e.type !== "declaration") return;
|
|
200
|
-
let { property: r, value: a } = e;
|
|
201
|
-
i ? t(r, a, e) : a && (n ||= {}, n[r] = a);
|
|
202
|
-
}), n;
|
|
203
|
-
}
|
|
204
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/strings.js
|
|
205
|
-
var ge = /\d/, _e = [
|
|
206
|
-
"-",
|
|
207
|
-
"_",
|
|
208
|
-
"/",
|
|
209
|
-
"."
|
|
210
|
-
];
|
|
211
|
-
function ve(e = "") {
|
|
212
|
-
if (!ge.test(e)) return e !== e.toLowerCase();
|
|
213
|
-
}
|
|
214
|
-
function ye(e) {
|
|
215
|
-
let t = [], n = "", r, i;
|
|
216
|
-
for (let a of e) {
|
|
217
|
-
let e = _e.includes(a);
|
|
218
|
-
if (e === !0) {
|
|
219
|
-
t.push(n), n = "", r = void 0;
|
|
220
|
-
continue;
|
|
221
|
-
}
|
|
222
|
-
let o = ve(a);
|
|
223
|
-
if (i === !1) {
|
|
224
|
-
if (r === !1 && o === !0) {
|
|
225
|
-
t.push(n), n = a, r = o;
|
|
226
|
-
continue;
|
|
227
|
-
}
|
|
228
|
-
if (r === !0 && o === !1 && n.length > 1) {
|
|
229
|
-
let e = n.at(-1);
|
|
230
|
-
t.push(n.slice(0, Math.max(0, n.length - 1))), n = e + a, r = o;
|
|
231
|
-
continue;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
n += a, r = o, i = e;
|
|
235
|
-
}
|
|
236
|
-
return t.push(n), t;
|
|
237
|
-
}
|
|
238
|
-
function be(e) {
|
|
239
|
-
return e ? ye(e).map((e) => Se(e)).join("") : "";
|
|
240
|
-
}
|
|
241
|
-
function xe(e) {
|
|
242
|
-
return Ce(be(e || ""));
|
|
243
|
-
}
|
|
244
|
-
function Se(e) {
|
|
245
|
-
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
246
|
-
}
|
|
247
|
-
function Ce(e) {
|
|
248
|
-
return e ? e[0].toLowerCase() + e.slice(1) : "";
|
|
249
|
-
}
|
|
250
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/css-to-style-obj.js
|
|
251
|
-
function we(e) {
|
|
252
|
-
if (!e) return {};
|
|
253
|
-
let t = {};
|
|
254
|
-
function n(e, n) {
|
|
255
|
-
e.startsWith("-moz-") || e.startsWith("-webkit-") || e.startsWith("-ms-") || e.startsWith("-o-") ? t[be(e)] = n : e.startsWith("--") ? t[e] = n : t[xe(e)] = n;
|
|
256
|
-
}
|
|
257
|
-
return he(e, n), t;
|
|
258
|
-
}
|
|
259
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/execute-callbacks.js
|
|
260
|
-
function O(...e) {
|
|
261
|
-
return (...t) => {
|
|
262
|
-
for (let n of e) typeof n == "function" && n(...t);
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/style-to-css.js
|
|
266
|
-
function Te(e, t) {
|
|
267
|
-
let n = RegExp(e, "g");
|
|
268
|
-
return (e) => {
|
|
269
|
-
if (typeof e != "string") throw TypeError(`expected an argument of type string, but got ${typeof e}`);
|
|
270
|
-
return e.match(n) ? e.replace(n, t) : e;
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
var Ee = Te(/[A-Z]/, (e) => `-${e.toLowerCase()}`);
|
|
274
|
-
function De(e) {
|
|
275
|
-
if (!e || typeof e != "object" || Array.isArray(e)) throw TypeError(`expected an argument of type object, but got ${typeof e}`);
|
|
276
|
-
return Object.keys(e).map((t) => `${Ee(t)}: ${e[t]};`).join("\n");
|
|
277
|
-
}
|
|
278
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/style.js
|
|
279
|
-
function Oe(e = {}) {
|
|
280
|
-
return De(e).replace("\n", " ");
|
|
281
|
-
}
|
|
282
|
-
var ke = new Set(/* @__PURE__ */ "onabort.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onauxclick.onbeforeinput.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncompositionend.oncompositionstart.oncompositionupdate.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onfocusin.onfocusout.onformdata.ongotpointercapture.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onlostpointercapture.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onpaste.onpause.onplay.onplaying.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointermove.onpointerout.onpointerover.onpointerup.onprogress.onratechange.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectionchange.onselectstart.onslotchange.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onvolumechange.onwaiting.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkittransitionend.onwheel".split("."));
|
|
283
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/merge-props.js
|
|
284
|
-
function Ae(e) {
|
|
285
|
-
return ke.has(e);
|
|
286
|
-
}
|
|
287
|
-
function je(...t) {
|
|
288
|
-
let n = { ...t[0] };
|
|
289
|
-
for (let r = 1; r < t.length; r++) {
|
|
290
|
-
let i = t[r];
|
|
291
|
-
if (i) {
|
|
292
|
-
for (let t of Object.keys(i)) {
|
|
293
|
-
let r = n[t], a = i[t], o = typeof r == "function", s = typeof a == "function";
|
|
294
|
-
if (o && typeof s && Ae(t)) n[t] = ee(r, a);
|
|
295
|
-
else if (o && s) n[t] = O(r, a);
|
|
296
|
-
else if (t === "class") {
|
|
297
|
-
let i = h(r), o = h(a);
|
|
298
|
-
i && o ? n[t] = e(r, a) : i ? n[t] = e(r) : o && (n[t] = e(a));
|
|
299
|
-
} else if (t === "style") {
|
|
300
|
-
let e = typeof r == "object", i = typeof a == "object", o = typeof r == "string", s = typeof a == "string";
|
|
301
|
-
if (e && i) n[t] = {
|
|
302
|
-
...r,
|
|
303
|
-
...a
|
|
304
|
-
};
|
|
305
|
-
else if (e && s) {
|
|
306
|
-
let e = we(a);
|
|
307
|
-
n[t] = {
|
|
308
|
-
...r,
|
|
309
|
-
...e
|
|
310
|
-
};
|
|
311
|
-
} else if (o && i) n[t] = {
|
|
312
|
-
...we(r),
|
|
313
|
-
...a
|
|
314
|
-
};
|
|
315
|
-
else if (o && s) {
|
|
316
|
-
let e = we(r), i = we(a);
|
|
317
|
-
n[t] = {
|
|
318
|
-
...e,
|
|
319
|
-
...i
|
|
320
|
-
};
|
|
321
|
-
} else e ? n[t] = r : i ? n[t] = a : o ? n[t] = r : s && (n[t] = a);
|
|
322
|
-
} else n[t] = a === void 0 ? r : a;
|
|
323
|
-
}
|
|
324
|
-
for (let e of Object.getOwnPropertySymbols(i)) {
|
|
325
|
-
let t = n[e], r = i[e];
|
|
326
|
-
n[e] = r === void 0 ? t : r;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
return typeof n.style == "object" && (n.style = Oe(n.style).replaceAll("\n", " ")), n.hidden === !1 && (n.hidden = void 0, delete n.hidden), n.disabled === !1 && (n.disabled = void 0, delete n.disabled), n;
|
|
331
|
-
}
|
|
332
|
-
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/internal/configurable-globals.js
|
|
333
|
-
var Me = typeof window < "u" ? window : void 0;
|
|
334
|
-
typeof window < "u" && window.document, typeof window < "u" && window.navigator, typeof window < "u" && window.location;
|
|
335
|
-
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/internal/utils/dom.js
|
|
336
|
-
function Ne(e) {
|
|
337
|
-
let t = e.activeElement;
|
|
338
|
-
for (; t?.shadowRoot;) {
|
|
339
|
-
let e = t.shadowRoot.activeElement;
|
|
340
|
-
if (e === t) break;
|
|
341
|
-
t = e;
|
|
342
|
-
}
|
|
343
|
-
return t;
|
|
344
|
-
}
|
|
345
|
-
new class {
|
|
346
|
-
#e;
|
|
347
|
-
#t;
|
|
348
|
-
constructor(e = {}) {
|
|
349
|
-
let { window: t = Me, document: n = t?.document } = e;
|
|
350
|
-
t !== void 0 && (this.#e = n, this.#t = u((e) => {
|
|
351
|
-
let n = c(t, "focusin", e), r = c(t, "focusout", e);
|
|
352
|
-
return () => {
|
|
353
|
-
n(), r();
|
|
354
|
-
};
|
|
355
|
-
}));
|
|
356
|
-
}
|
|
357
|
-
get current() {
|
|
358
|
-
return this.#t?.(), this.#e ? Ne(this.#e) : null;
|
|
359
|
-
}
|
|
360
|
-
}();
|
|
361
|
-
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/internal/utils/is.js
|
|
362
|
-
function Pe(e) {
|
|
363
|
-
return typeof e == "function";
|
|
364
|
-
}
|
|
365
|
-
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/utilities/context/context.js
|
|
366
|
-
var k = class {
|
|
367
|
-
#e;
|
|
368
|
-
#t;
|
|
369
|
-
constructor(e) {
|
|
370
|
-
this.#e = e, this.#t = Symbol(e);
|
|
371
|
-
}
|
|
372
|
-
get key() {
|
|
373
|
-
return this.#t;
|
|
374
|
-
}
|
|
375
|
-
exists() {
|
|
376
|
-
return r(this.#t);
|
|
377
|
-
}
|
|
378
|
-
get() {
|
|
379
|
-
let e = n(this.#t);
|
|
380
|
-
if (e === void 0) throw Error(`Context "${this.#e}" not found`);
|
|
381
|
-
return e;
|
|
382
|
-
}
|
|
383
|
-
getOr(e) {
|
|
384
|
-
let t = n(this.#t);
|
|
385
|
-
return t === void 0 ? e : t;
|
|
386
|
-
}
|
|
387
|
-
set(e) {
|
|
388
|
-
return a(this.#t, e);
|
|
389
|
-
}
|
|
390
|
-
};
|
|
391
|
-
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/utilities/watch/watch.svelte.js
|
|
392
|
-
function Fe(e, n) {
|
|
393
|
-
switch (e) {
|
|
394
|
-
case "post":
|
|
395
|
-
t.user_effect(n);
|
|
396
|
-
break;
|
|
397
|
-
case "pre": t.user_pre_effect(n);
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
function Ie(e, t, n, r = {}) {
|
|
401
|
-
let { lazy: i = !1 } = r, a = !i, o = Array.isArray(e) ? [] : void 0;
|
|
402
|
-
Fe(t, () => {
|
|
403
|
-
let t = Array.isArray(e) ? e.map((e) => e()) : e();
|
|
404
|
-
if (!a) {
|
|
405
|
-
a = !0, o = t;
|
|
406
|
-
return;
|
|
407
|
-
}
|
|
408
|
-
let r = s(() => n(t, o));
|
|
409
|
-
return o = t, r;
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
function A(e, t, n) {
|
|
413
|
-
Ie(e, "post", t, n);
|
|
414
|
-
}
|
|
415
|
-
function Le(e, t, n) {
|
|
416
|
-
Ie(e, "pre", t, n);
|
|
417
|
-
}
|
|
418
|
-
A.pre = Le;
|
|
419
|
-
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/internal/utils/get.js
|
|
420
|
-
function Re(e) {
|
|
421
|
-
return Pe(e) ? e() : e;
|
|
422
|
-
}
|
|
423
|
-
// ../node_modules/.bun/runed@0.35.1+049bff67fe79e627/node_modules/runed/dist/utilities/element-size/element-size.svelte.js
|
|
424
|
-
var ze = class {
|
|
425
|
-
#e = {
|
|
426
|
-
width: 0,
|
|
427
|
-
height: 0
|
|
428
|
-
};
|
|
429
|
-
#t = !1;
|
|
430
|
-
#n;
|
|
431
|
-
#r;
|
|
432
|
-
#i;
|
|
433
|
-
#a = t.derived(() => (t.get(this.#s)?.(), this.getSize().width));
|
|
434
|
-
#o = t.derived(() => (t.get(this.#s)?.(), this.getSize().height));
|
|
435
|
-
#s = t.derived(() => {
|
|
436
|
-
let e = Re(this.#r);
|
|
437
|
-
if (e) return u((t) => {
|
|
438
|
-
if (!this.#i) return;
|
|
439
|
-
let n = new this.#i.ResizeObserver((e) => {
|
|
440
|
-
this.#t = !0;
|
|
441
|
-
for (let t of e) {
|
|
442
|
-
let e = this.#n.box === "content-box" ? t.contentBoxSize : t.borderBoxSize, n = Array.isArray(e) ? e : [e];
|
|
443
|
-
this.#e.width = n.reduce((e, t) => Math.max(e, t.inlineSize), 0), this.#e.height = n.reduce((e, t) => Math.max(e, t.blockSize), 0);
|
|
444
|
-
}
|
|
445
|
-
t();
|
|
446
|
-
});
|
|
447
|
-
return n.observe(e), () => {
|
|
448
|
-
this.#t = !1, n.disconnect();
|
|
449
|
-
};
|
|
450
|
-
});
|
|
451
|
-
});
|
|
452
|
-
constructor(e, t = { box: "border-box" }) {
|
|
453
|
-
this.#i = t.window ?? Me, this.#n = t, this.#r = e, this.#e = {
|
|
454
|
-
width: 0,
|
|
455
|
-
height: 0
|
|
456
|
-
};
|
|
457
|
-
}
|
|
458
|
-
calculateSize() {
|
|
459
|
-
let e = Re(this.#r);
|
|
460
|
-
if (!e || !this.#i) return;
|
|
461
|
-
let t = e.offsetWidth, n = e.offsetHeight;
|
|
462
|
-
if (this.#n.box === "border-box") return {
|
|
463
|
-
width: t,
|
|
464
|
-
height: n
|
|
465
|
-
};
|
|
466
|
-
let r = this.#i.getComputedStyle(e), i = parseFloat(r.paddingLeft) + parseFloat(r.paddingRight), a = parseFloat(r.paddingTop) + parseFloat(r.paddingBottom), o = parseFloat(r.borderLeftWidth) + parseFloat(r.borderRightWidth), s = parseFloat(r.borderTopWidth) + parseFloat(r.borderBottomWidth);
|
|
467
|
-
return {
|
|
468
|
-
width: t - i - o,
|
|
469
|
-
height: n - a - s
|
|
470
|
-
};
|
|
471
|
-
}
|
|
472
|
-
getSize() {
|
|
473
|
-
return this.#t ? this.#e : this.calculateSize() ?? this.#e;
|
|
474
|
-
}
|
|
475
|
-
get current() {
|
|
476
|
-
return t.get(this.#s)?.(), this.getSize();
|
|
477
|
-
}
|
|
478
|
-
get width() {
|
|
479
|
-
return t.get(this.#a);
|
|
480
|
-
}
|
|
481
|
-
get height() {
|
|
482
|
-
return t.get(this.#o);
|
|
483
|
-
}
|
|
484
|
-
}, Be = class {
|
|
485
|
-
#e = () => void 0;
|
|
486
|
-
#t = t.derived(() => this.#e());
|
|
487
|
-
constructor(e, t) {
|
|
488
|
-
let n;
|
|
489
|
-
t !== void 0 && (n = t), this.#e = () => {
|
|
490
|
-
try {
|
|
491
|
-
return n;
|
|
492
|
-
} finally {
|
|
493
|
-
n = e();
|
|
494
|
-
}
|
|
495
|
-
};
|
|
496
|
-
}
|
|
497
|
-
get current() {
|
|
498
|
-
return t.get(this.#t);
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/on-destroy-effect.svelte.js
|
|
502
|
-
function j(e) {
|
|
503
|
-
t.user_effect(() => () => {
|
|
504
|
-
e();
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/after-sleep.js
|
|
508
|
-
function Ve(e, t) {
|
|
509
|
-
return setTimeout(t, e);
|
|
510
|
-
}
|
|
511
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/after-tick.js
|
|
512
|
-
function M(e) {
|
|
513
|
-
o().then(e);
|
|
514
|
-
}
|
|
515
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/dom.js
|
|
516
|
-
var He = 1, Ue = 9, We = 11;
|
|
517
|
-
function Ge(e) {
|
|
518
|
-
return p(e) && e.nodeType === He && typeof e.nodeName == "string";
|
|
519
|
-
}
|
|
520
|
-
function Ke(e) {
|
|
521
|
-
return p(e) && e.nodeType === Ue;
|
|
522
|
-
}
|
|
523
|
-
function qe(e) {
|
|
524
|
-
return p(e) && e.constructor?.name === "VisualViewport";
|
|
525
|
-
}
|
|
526
|
-
function Je(e) {
|
|
527
|
-
return p(e) && e.nodeType !== void 0;
|
|
528
|
-
}
|
|
529
|
-
function Ye(e) {
|
|
530
|
-
return Je(e) && e.nodeType === We && "host" in e;
|
|
531
|
-
}
|
|
532
|
-
function Xe(e, t) {
|
|
533
|
-
if (!e || !t || !Ge(e) || !Ge(t)) return !1;
|
|
534
|
-
let n = t.getRootNode?.();
|
|
535
|
-
if (e === t || e.contains(t)) return !0;
|
|
536
|
-
if (n && Ye(n)) {
|
|
537
|
-
let n = t;
|
|
538
|
-
for (; n;) {
|
|
539
|
-
if (e === n) return !0;
|
|
540
|
-
n = n.parentNode || n.host;
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
return !1;
|
|
544
|
-
}
|
|
545
|
-
function Ze(e) {
|
|
546
|
-
return Ke(e) ? e : qe(e) ? e.document : e?.ownerDocument ?? document;
|
|
547
|
-
}
|
|
548
|
-
function Qe(e) {
|
|
549
|
-
return Ye(e) ? Qe(e.host) : Ke(e) ? e.defaultView ?? window : Ge(e) ? e.ownerDocument?.defaultView ?? window : window;
|
|
550
|
-
}
|
|
551
|
-
function $e(e) {
|
|
552
|
-
let t = e.activeElement;
|
|
553
|
-
for (; t?.shadowRoot;) {
|
|
554
|
-
let e = t.shadowRoot.activeElement;
|
|
555
|
-
if (e === t) break;
|
|
556
|
-
t = e;
|
|
557
|
-
}
|
|
558
|
-
return t;
|
|
559
|
-
}
|
|
560
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/dom-context.svelte.js
|
|
561
|
-
var et = class {
|
|
562
|
-
element;
|
|
563
|
-
#e = t.derived(() => this.element.current ? this.element.current.getRootNode() ?? document : document);
|
|
564
|
-
get root() {
|
|
565
|
-
return t.get(this.#e);
|
|
566
|
-
}
|
|
567
|
-
set root(e) {
|
|
568
|
-
t.set(this.#e, e);
|
|
569
|
-
}
|
|
570
|
-
constructor(e) {
|
|
571
|
-
this.element = typeof e == "function" ? v(e) : e;
|
|
572
|
-
}
|
|
573
|
-
getDocument = () => Ze(this.root);
|
|
574
|
-
getWindow = () => this.getDocument().defaultView ?? window;
|
|
575
|
-
getActiveElement = () => $e(this.root);
|
|
576
|
-
isActiveElement = (e) => e === this.getActiveElement();
|
|
577
|
-
getElementById(e) {
|
|
578
|
-
return this.root.getElementById(e);
|
|
579
|
-
}
|
|
580
|
-
querySelector = (e) => this.root ? this.root.querySelector(e) : null;
|
|
581
|
-
querySelectorAll = (e) => this.root ? this.root.querySelectorAll(e) : [];
|
|
582
|
-
setTimeout = (e, t) => this.getWindow().setTimeout(e, t);
|
|
583
|
-
clearTimeout = (e) => this.getWindow().clearTimeout(e);
|
|
584
|
-
};
|
|
585
|
-
// ../node_modules/.bun/svelte-toolbelt@0.10.6+049bff67fe79e627/node_modules/svelte-toolbelt/dist/utils/attach-ref.js
|
|
586
|
-
function N(e, t) {
|
|
587
|
-
return { [d()]: (n) => y(e) ? (e.current = n, s(() => t?.(n)), () => {
|
|
588
|
-
"isConnected" in n && n.isConnected || (e.current = null, t?.(null));
|
|
589
|
-
}) : (e(n), s(() => t?.(n)), () => {
|
|
590
|
-
"isConnected" in n && n.isConnected || (e(null), t?.(null));
|
|
591
|
-
}) };
|
|
592
|
-
}
|
|
593
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/attrs.js
|
|
594
|
-
function tt(e) {
|
|
595
|
-
return e ? "true" : "false";
|
|
596
|
-
}
|
|
597
|
-
function nt(e) {
|
|
598
|
-
return e ? "" : void 0;
|
|
599
|
-
}
|
|
600
|
-
function rt(e) {
|
|
601
|
-
return e ? !0 : void 0;
|
|
602
|
-
}
|
|
603
|
-
function it(e) {
|
|
604
|
-
return e ? "open" : "closed";
|
|
605
|
-
}
|
|
606
|
-
function at(e) {
|
|
607
|
-
return e === "starting" ? { "data-starting-style": "" } : e === "ending" ? { "data-ending-style": "" } : {};
|
|
608
|
-
}
|
|
609
|
-
var ot = class {
|
|
610
|
-
#e;
|
|
611
|
-
#t;
|
|
612
|
-
attrs;
|
|
613
|
-
constructor(e) {
|
|
614
|
-
this.#e = e.getVariant ? e.getVariant() : null, this.#t = this.#e ? `data-${this.#e}-` : `data-${e.component}-`, this.getAttr = this.getAttr.bind(this), this.selector = this.selector.bind(this), this.attrs = Object.fromEntries(e.parts.map((e) => [e, this.getAttr(e)]));
|
|
615
|
-
}
|
|
616
|
-
getAttr(e, t) {
|
|
617
|
-
return t ? `data-${t}-${e}` : `${this.#t}${e}`;
|
|
618
|
-
}
|
|
619
|
-
selector(e, t) {
|
|
620
|
-
return `[${this.getAttr(e, t)}]`;
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
function st(e) {
|
|
624
|
-
let t = new ot(e);
|
|
625
|
-
return {
|
|
626
|
-
...t.attrs,
|
|
627
|
-
selector: t.selector,
|
|
628
|
-
getAttr: t.getAttr
|
|
629
|
-
};
|
|
630
|
-
}
|
|
631
|
-
var ct = "ArrowDown", lt = "ArrowLeft", ut = "ArrowRight", dt = "ArrowUp", ft = "CapsLock", pt = "Control", mt = "Enter", ht = "Escape", gt = "Home", _t = "Meta", vt = "PageDown", yt = "PageUp", bt = "Shift";
|
|
632
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/locale.js
|
|
633
|
-
function xt(e) {
|
|
634
|
-
return window.getComputedStyle(e).getPropertyValue("direction");
|
|
635
|
-
}
|
|
636
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/get-directional-keys.js
|
|
637
|
-
var St = [
|
|
638
|
-
ct,
|
|
639
|
-
yt,
|
|
640
|
-
gt
|
|
641
|
-
], Ct = [
|
|
642
|
-
dt,
|
|
643
|
-
vt,
|
|
644
|
-
"End"
|
|
645
|
-
];
|
|
646
|
-
[...St, ...Ct];
|
|
647
|
-
function wt(e = "ltr", t = "horizontal") {
|
|
648
|
-
return {
|
|
649
|
-
horizontal: e === "rtl" ? lt : ut,
|
|
650
|
-
vertical: ct
|
|
651
|
-
}[t];
|
|
652
|
-
}
|
|
653
|
-
function Tt(e = "ltr", t = "horizontal") {
|
|
654
|
-
return {
|
|
655
|
-
horizontal: e === "rtl" ? ut : lt,
|
|
656
|
-
vertical: dt
|
|
657
|
-
}[t];
|
|
658
|
-
}
|
|
659
|
-
function Et(e = "ltr", t = "horizontal") {
|
|
660
|
-
return ["ltr", "rtl"].includes(e) || (e = "ltr"), ["horizontal", "vertical"].includes(t) || (t = "horizontal"), {
|
|
661
|
-
nextKey: wt(e, t),
|
|
662
|
-
prevKey: Tt(e, t)
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/is.js
|
|
666
|
-
var Dt = typeof document < "u", Ot = kt();
|
|
667
|
-
function kt() {
|
|
668
|
-
return Dt && window?.navigator?.userAgent && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || window?.navigator?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
669
|
-
}
|
|
670
|
-
function P(e) {
|
|
671
|
-
return e instanceof HTMLElement;
|
|
672
|
-
}
|
|
673
|
-
function At(e) {
|
|
674
|
-
return e instanceof Element;
|
|
675
|
-
}
|
|
676
|
-
function jt(e) {
|
|
677
|
-
return e instanceof Element || e instanceof SVGElement;
|
|
678
|
-
}
|
|
679
|
-
function Mt(e) {
|
|
680
|
-
return e !== null;
|
|
681
|
-
}
|
|
682
|
-
function Nt(e) {
|
|
683
|
-
return e instanceof HTMLInputElement && "select" in e;
|
|
684
|
-
}
|
|
685
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/roving-focus-group.js
|
|
686
|
-
var Pt = class {
|
|
687
|
-
#e;
|
|
688
|
-
#t = T(null);
|
|
689
|
-
constructor(e) {
|
|
690
|
-
this.#e = e;
|
|
691
|
-
}
|
|
692
|
-
getCandidateNodes() {
|
|
693
|
-
return this.#e.rootNode.current ? this.#e.candidateSelector ? Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)) : this.#e.candidateAttr ? Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)) : [] : [];
|
|
694
|
-
}
|
|
695
|
-
focusFirstCandidate() {
|
|
696
|
-
let e = this.getCandidateNodes();
|
|
697
|
-
e.length && e[0]?.focus();
|
|
698
|
-
}
|
|
699
|
-
handleKeydown(e, t, n = !1) {
|
|
700
|
-
let r = this.#e.rootNode.current;
|
|
701
|
-
if (!r || !e) return;
|
|
702
|
-
let i = this.getCandidateNodes();
|
|
703
|
-
if (!i.length) return;
|
|
704
|
-
let a = i.indexOf(e), { nextKey: o, prevKey: s } = Et(xt(r), this.#e.orientation.current), c = this.#e.loop.current, l = {
|
|
705
|
-
[o]: a + 1,
|
|
706
|
-
[s]: a - 1,
|
|
707
|
-
[gt]: 0,
|
|
708
|
-
End: i.length - 1
|
|
709
|
-
};
|
|
710
|
-
if (n) {
|
|
711
|
-
let e = o === "ArrowDown" ? ut : ct, t = s === "ArrowUp" ? lt : dt;
|
|
712
|
-
l[e] = a + 1, l[t] = a - 1;
|
|
713
|
-
}
|
|
714
|
-
let u = l[t.key];
|
|
715
|
-
if (u === void 0) return;
|
|
716
|
-
t.preventDefault(), u < 0 && c ? u = i.length - 1 : u === i.length && c && (u = 0);
|
|
717
|
-
let d = i[u];
|
|
718
|
-
if (d) return d.focus(), this.#t.current = d.id, this.#e.onCandidateFocus?.(d), d;
|
|
719
|
-
}
|
|
720
|
-
getTabIndex(e) {
|
|
721
|
-
let t = this.getCandidateNodes(), n = this.#t.current !== null;
|
|
722
|
-
return e && !n && t[0] === e ? (this.#t.current = e.id, 0) : e?.id === this.#t.current ? 0 : -1;
|
|
723
|
-
}
|
|
724
|
-
setCurrentTabStopId(e) {
|
|
725
|
-
this.#t.current = e;
|
|
726
|
-
}
|
|
727
|
-
focusCurrentTabStop() {
|
|
728
|
-
let e = this.#t.current;
|
|
729
|
-
if (!e) return;
|
|
730
|
-
let t = this.#e.rootNode.current?.querySelector(`#${e}`);
|
|
731
|
-
t && P(t) && t.focus();
|
|
732
|
-
}
|
|
733
|
-
}, Ft = class {
|
|
734
|
-
#e;
|
|
735
|
-
#t = null;
|
|
736
|
-
#n = null;
|
|
737
|
-
#r = 0;
|
|
738
|
-
constructor(e) {
|
|
739
|
-
this.#e = e, j(() => this.#i());
|
|
740
|
-
}
|
|
741
|
-
#i() {
|
|
742
|
-
this.#t !== null && (window.cancelAnimationFrame(this.#t), this.#t = null), this.#n?.disconnect(), this.#n = null, this.#r++;
|
|
743
|
-
}
|
|
744
|
-
run(e) {
|
|
745
|
-
this.#i();
|
|
746
|
-
let t = this.#e.ref.current;
|
|
747
|
-
if (!t) return;
|
|
748
|
-
if (typeof t.getAnimations != "function") {
|
|
749
|
-
this.#a(e);
|
|
750
|
-
return;
|
|
751
|
-
}
|
|
752
|
-
let n = this.#r, r = () => {
|
|
753
|
-
n === this.#r && this.#a(e);
|
|
754
|
-
}, i = () => {
|
|
755
|
-
if (n !== this.#r) return;
|
|
756
|
-
let e = t.getAnimations();
|
|
757
|
-
e.length === 0 ? r() : Promise.all(e.map((e) => e.finished)).then(() => {
|
|
758
|
-
r();
|
|
759
|
-
}).catch(() => {
|
|
760
|
-
n === this.#r && (t.getAnimations().some((e) => e.pending || e.playState !== "finished") ? i() : r());
|
|
761
|
-
});
|
|
762
|
-
}, a = () => {
|
|
763
|
-
this.#t = window.requestAnimationFrame(() => {
|
|
764
|
-
this.#t = null, i();
|
|
765
|
-
});
|
|
766
|
-
};
|
|
767
|
-
this.#e.afterTick.current ? this.#t = window.requestAnimationFrame(() => {
|
|
768
|
-
this.#t = null;
|
|
769
|
-
let e = "data-starting-style";
|
|
770
|
-
t.hasAttribute(e) ? (this.#n = new MutationObserver(() => {
|
|
771
|
-
n === this.#r && (t.hasAttribute(e) || (this.#n?.disconnect(), this.#n = null, a()));
|
|
772
|
-
}), this.#n.observe(t, {
|
|
773
|
-
attributes: !0,
|
|
774
|
-
attributeFilter: [e]
|
|
775
|
-
})) : a();
|
|
776
|
-
}) : a();
|
|
777
|
-
}
|
|
778
|
-
#a(e) {
|
|
779
|
-
let t = () => {
|
|
780
|
-
e();
|
|
781
|
-
};
|
|
782
|
-
this.#e.afterTick ? M(t) : t();
|
|
783
|
-
}
|
|
784
|
-
}, It = class {
|
|
785
|
-
#e;
|
|
786
|
-
#t;
|
|
787
|
-
#n;
|
|
788
|
-
#r = t.state(!1);
|
|
789
|
-
#i = t.state(void 0);
|
|
790
|
-
#a = !1;
|
|
791
|
-
#o = null;
|
|
792
|
-
constructor(e) {
|
|
793
|
-
this.#e = e, t.set(this.#r, e.open.current, !0), this.#t = e.enabled ?? !0, this.#n = new Ft({
|
|
794
|
-
ref: this.#e.ref,
|
|
795
|
-
afterTick: this.#e.open
|
|
796
|
-
}), j(() => this.#s()), A(() => this.#e.open.current, (e) => {
|
|
797
|
-
this.#a ? (this.#s(), !e && this.#e.shouldSkipExitAnimation?.() ? (t.set(this.#r, !1), t.set(this.#i, void 0), this.#e.onComplete?.()) : (e && t.set(this.#r, !0), t.set(this.#i, e ? "starting" : "ending", !0), e && (this.#o = window.requestAnimationFrame(() => {
|
|
798
|
-
this.#o = null, this.#e.open.current && t.set(this.#i, void 0);
|
|
799
|
-
})), this.#t ? this.#n.run(() => {
|
|
800
|
-
e === this.#e.open.current && (this.#e.open.current || t.set(this.#r, !1), t.set(this.#i, void 0), this.#e.onComplete?.());
|
|
801
|
-
}) : (e || t.set(this.#r, !1), t.set(this.#i, void 0), this.#e.onComplete?.()))) : this.#a = !0;
|
|
802
|
-
});
|
|
803
|
-
}
|
|
804
|
-
get shouldRender() {
|
|
805
|
-
return t.get(this.#r);
|
|
806
|
-
}
|
|
807
|
-
get transitionStatus() {
|
|
808
|
-
return t.get(this.#i);
|
|
809
|
-
}
|
|
810
|
-
#s() {
|
|
811
|
-
this.#o !== null && (window.cancelAnimationFrame(this.#o), this.#o = null);
|
|
812
|
-
}
|
|
813
|
-
};
|
|
814
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/noop.js
|
|
815
|
-
function F() {}
|
|
816
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/create-id.js
|
|
817
|
-
function Lt(e, t) {
|
|
818
|
-
return t === void 0 ? `bits-${e}` : `bits-${e}-${t}`;
|
|
819
|
-
}
|
|
820
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/events.js
|
|
821
|
-
var Rt = class {
|
|
822
|
-
eventName;
|
|
823
|
-
options;
|
|
824
|
-
constructor(e, t = {
|
|
825
|
-
bubbles: !0,
|
|
826
|
-
cancelable: !0
|
|
827
|
-
}) {
|
|
828
|
-
this.eventName = e, this.options = t;
|
|
829
|
-
}
|
|
830
|
-
createEvent(e) {
|
|
831
|
-
return new CustomEvent(this.eventName, {
|
|
832
|
-
...this.options,
|
|
833
|
-
detail: e
|
|
834
|
-
});
|
|
835
|
-
}
|
|
836
|
-
dispatch(e, t) {
|
|
837
|
-
let n = this.createEvent(t);
|
|
838
|
-
return e.dispatchEvent(n), n;
|
|
839
|
-
}
|
|
840
|
-
listen(e, t, n) {
|
|
841
|
-
return c(e, this.eventName, (e) => {
|
|
842
|
-
t(e);
|
|
843
|
-
}, n);
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/debounce.js
|
|
847
|
-
function zt(e, t = 500) {
|
|
848
|
-
let n = null, r = (...r) => {
|
|
849
|
-
n !== null && clearTimeout(n), n = setTimeout(() => {
|
|
850
|
-
e(...r);
|
|
851
|
-
}, t);
|
|
852
|
-
};
|
|
853
|
-
return r.destroy = () => {
|
|
854
|
-
n !== null && (clearTimeout(n), n = null);
|
|
855
|
-
}, r;
|
|
856
|
-
}
|
|
857
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/elements.js
|
|
858
|
-
function Bt(e, t) {
|
|
859
|
-
return e === t || e.contains(t);
|
|
860
|
-
}
|
|
861
|
-
function Vt(e) {
|
|
862
|
-
return e?.ownerDocument ?? document;
|
|
863
|
-
}
|
|
864
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/dom.js
|
|
865
|
-
function Ht(e, t) {
|
|
866
|
-
let { clientX: n, clientY: r } = e, i = t.getBoundingClientRect();
|
|
867
|
-
return n < i.left || n > i.right || r < i.top || r > i.bottom;
|
|
868
|
-
}
|
|
869
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/menu/utils.js
|
|
870
|
-
var Ut = [mt, " "], Wt = [
|
|
871
|
-
ct,
|
|
872
|
-
yt,
|
|
873
|
-
gt
|
|
874
|
-
], Gt = [
|
|
875
|
-
dt,
|
|
876
|
-
vt,
|
|
877
|
-
"End"
|
|
878
|
-
], Kt = [...Wt, ...Gt];
|
|
879
|
-
[...Ut], [...Ut];
|
|
880
|
-
function I(e) {
|
|
881
|
-
return e.pointerType === "mouse";
|
|
882
|
-
}
|
|
883
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/focus.js
|
|
884
|
-
function qt(e, { select: t = !1 } = {}) {
|
|
885
|
-
if (!e || !e.focus) return;
|
|
886
|
-
let n = Ze(e);
|
|
887
|
-
if (n.activeElement === e) return;
|
|
888
|
-
let r = n.activeElement;
|
|
889
|
-
e.focus({ preventScroll: !0 }), e !== r && Nt(e) && t && e.select();
|
|
890
|
-
}
|
|
891
|
-
function Jt(e, { select: t = !1 } = {}, n) {
|
|
892
|
-
let r = n();
|
|
893
|
-
for (let i of e) if (qt(i, { select: t }), n() !== r) return !0;
|
|
894
|
-
}
|
|
895
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/is-using-keyboard/is-using-keyboard.svelte.js
|
|
896
|
-
var Yt = t.state(!1), Xt = class e {
|
|
897
|
-
static _refs = 0;
|
|
898
|
-
static _cleanup;
|
|
899
|
-
constructor() {
|
|
900
|
-
t.user_effect(() => (e._refs === 0 && (e._cleanup = t.effect_root(() => {
|
|
901
|
-
let e = [], n = (e) => {
|
|
902
|
-
t.set(Yt, !1);
|
|
903
|
-
};
|
|
904
|
-
return e.push(c(document, "pointerdown", n, { capture: !0 }), c(document, "pointermove", n, { capture: !0 }), c(document, "keydown", (e) => {
|
|
905
|
-
t.set(Yt, !0);
|
|
906
|
-
}, { capture: !0 })), O(...e);
|
|
907
|
-
})), e._refs++, () => {
|
|
908
|
-
e._refs--, e._refs === 0 && (t.set(Yt, !1), e._cleanup?.());
|
|
909
|
-
}));
|
|
910
|
-
}
|
|
911
|
-
get current() {
|
|
912
|
-
return t.get(Yt);
|
|
913
|
-
}
|
|
914
|
-
set current(e) {
|
|
915
|
-
t.set(Yt, e, !0);
|
|
916
|
-
}
|
|
917
|
-
}, Zt = [
|
|
918
|
-
"input:not([inert]):not([inert] *)",
|
|
919
|
-
"select:not([inert]):not([inert] *)",
|
|
920
|
-
"textarea:not([inert]):not([inert] *)",
|
|
921
|
-
"a[href]:not([inert]):not([inert] *)",
|
|
922
|
-
"button:not([inert]):not([inert] *)",
|
|
923
|
-
"[tabindex]:not(slot):not([inert]):not([inert] *)",
|
|
924
|
-
"audio[controls]:not([inert]):not([inert] *)",
|
|
925
|
-
"video[controls]:not([inert]):not([inert] *)",
|
|
926
|
-
"[contenteditable]:not([contenteditable=\"false\"]):not([inert]):not([inert] *)",
|
|
927
|
-
"details>summary:first-of-type:not([inert]):not([inert] *)",
|
|
928
|
-
"details:not([inert]):not([inert] *)"
|
|
929
|
-
], Qt = /* #__PURE__ */ Zt.join(","), $t = typeof Element > "u", L = $t ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, en = !$t && Element.prototype.getRootNode ? function(e) {
|
|
930
|
-
return e?.getRootNode?.call(e);
|
|
931
|
-
} : function(e) {
|
|
932
|
-
return e?.ownerDocument;
|
|
933
|
-
}, tn = function(e, t) {
|
|
934
|
-
t === void 0 && (t = !0);
|
|
935
|
-
var n = e?.getAttribute?.call(e, "inert");
|
|
936
|
-
return n === "" || n === "true" || t && e && (typeof e.closest == "function" ? e.closest("[inert]") : tn(e.parentNode));
|
|
937
|
-
}, nn = function(e) {
|
|
938
|
-
var t = e?.getAttribute?.call(e, "contenteditable");
|
|
939
|
-
return t === "" || t === "true";
|
|
940
|
-
}, rn = function(e, t, n) {
|
|
941
|
-
if (tn(e)) return [];
|
|
942
|
-
var r = Array.prototype.slice.apply(e.querySelectorAll(Qt));
|
|
943
|
-
return t && L.call(e, Qt) && r.unshift(e), r = r.filter(n), r;
|
|
944
|
-
}, an = function(e, t, n) {
|
|
945
|
-
for (var r = [], i = Array.from(e); i.length;) {
|
|
946
|
-
var a = i.shift();
|
|
947
|
-
if (!tn(a, !1)) {
|
|
948
|
-
if (a.tagName === "SLOT") {
|
|
949
|
-
var o = a.assignedElements(), s = an(o.length ? o : a.children, !0, n);
|
|
950
|
-
n.flatten ? r.push.apply(r, s) : r.push({
|
|
951
|
-
scopeParent: a,
|
|
952
|
-
candidates: s
|
|
953
|
-
});
|
|
954
|
-
} else {
|
|
955
|
-
L.call(a, Qt) && n.filter(a) && (t || !e.includes(a)) && r.push(a);
|
|
956
|
-
var c = a.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(a), l = !tn(c, !1) && (!n.shadowRootFilter || n.shadowRootFilter(a));
|
|
957
|
-
if (c && l) {
|
|
958
|
-
var u = an(c === !0 ? a.children : c.children, !0, n);
|
|
959
|
-
n.flatten ? r.push.apply(r, u) : r.push({
|
|
960
|
-
scopeParent: a,
|
|
961
|
-
candidates: u
|
|
962
|
-
});
|
|
963
|
-
} else i.unshift.apply(i, a.children);
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
return r;
|
|
968
|
-
}, on = function(e) {
|
|
969
|
-
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
970
|
-
}, sn = function(e) {
|
|
971
|
-
if (!e) throw Error("No node provided");
|
|
972
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || nn(e)) && !on(e) ? 0 : e.tabIndex;
|
|
973
|
-
}, cn = function(e, t) {
|
|
974
|
-
var n = sn(e);
|
|
975
|
-
return n < 0 && t && !on(e) ? 0 : n;
|
|
976
|
-
}, ln = function(e, t) {
|
|
977
|
-
return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
|
|
978
|
-
}, un = function(e) {
|
|
979
|
-
return e.tagName === "INPUT";
|
|
980
|
-
}, dn = function(e) {
|
|
981
|
-
return un(e) && e.type === "hidden";
|
|
982
|
-
}, fn = function(e) {
|
|
983
|
-
return e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(e) {
|
|
984
|
-
return e.tagName === "SUMMARY";
|
|
985
|
-
});
|
|
986
|
-
}, pn = function(e, t) {
|
|
987
|
-
for (var n = 0; n < e.length; n++) if (e[n].checked && e[n].form === t) return e[n];
|
|
988
|
-
}, mn = function(e) {
|
|
989
|
-
if (!e.name) return !0;
|
|
990
|
-
var t = e.form || en(e), n = function(e) {
|
|
991
|
-
return t.querySelectorAll("input[type=\"radio\"][name=\"" + e + "\"]");
|
|
992
|
-
}, r;
|
|
993
|
-
if (typeof window < "u" && window.CSS !== void 0 && typeof window.CSS.escape == "function") r = n(window.CSS.escape(e.name));
|
|
994
|
-
else try {
|
|
995
|
-
r = n(e.name);
|
|
996
|
-
} catch (e) {
|
|
997
|
-
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", e.message), !1;
|
|
998
|
-
}
|
|
999
|
-
var i = pn(r, e.form);
|
|
1000
|
-
return !i || i === e;
|
|
1001
|
-
}, hn = function(e) {
|
|
1002
|
-
return un(e) && e.type === "radio";
|
|
1003
|
-
}, gn = function(e) {
|
|
1004
|
-
return hn(e) && !mn(e);
|
|
1005
|
-
}, _n = function(e) {
|
|
1006
|
-
var t = e && en(e), n = t?.host, r = !1;
|
|
1007
|
-
if (t && t !== e) {
|
|
1008
|
-
var i, a, o;
|
|
1009
|
-
for (r = !!((i = n) != null && (a = i.ownerDocument) != null && a.contains(n) || e != null && (o = e.ownerDocument) != null && o.contains(e)); !r && n;) {
|
|
1010
|
-
var s, c;
|
|
1011
|
-
t = en(n), n = t?.host, r = !!((s = n) != null && (c = s.ownerDocument) != null && c.contains(n));
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
return r;
|
|
1015
|
-
}, vn = function(e) {
|
|
1016
|
-
var t = e.getBoundingClientRect(), n = t.width, r = t.height;
|
|
1017
|
-
return n === 0 && r === 0;
|
|
1018
|
-
}, yn = function(e, t) {
|
|
1019
|
-
var n = t.displayCheck, r = t.getShadowRoot;
|
|
1020
|
-
if (n === "full-native" && "checkVisibility" in e) return !e.checkVisibility({
|
|
1021
|
-
checkOpacity: !1,
|
|
1022
|
-
opacityProperty: !1,
|
|
1023
|
-
contentVisibilityAuto: !0,
|
|
1024
|
-
visibilityProperty: !0,
|
|
1025
|
-
checkVisibilityCSS: !0
|
|
1026
|
-
});
|
|
1027
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1028
|
-
var i = L.call(e, "details>summary:first-of-type") ? e.parentElement : e;
|
|
1029
|
-
if (L.call(i, "details:not([open]) *")) return !0;
|
|
1030
|
-
if (!n || n === "full" || n === "full-native" || n === "legacy-full") {
|
|
1031
|
-
if (typeof r == "function") {
|
|
1032
|
-
for (var a = e; e;) {
|
|
1033
|
-
var o = e.parentElement, s = en(e);
|
|
1034
|
-
if (o && !o.shadowRoot && r(o) === !0) return vn(e);
|
|
1035
|
-
e = e.assignedSlot ? e.assignedSlot : !o && s !== e.ownerDocument ? s.host : o;
|
|
1036
|
-
}
|
|
1037
|
-
e = a;
|
|
1038
|
-
}
|
|
1039
|
-
if (_n(e)) return !e.getClientRects().length;
|
|
1040
|
-
if (n !== "legacy-full") return !0;
|
|
1041
|
-
} else if (n === "non-zero-area") return vn(e);
|
|
1042
|
-
return !1;
|
|
1043
|
-
}, bn = function(e) {
|
|
1044
|
-
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)) for (var t = e.parentElement; t;) {
|
|
1045
|
-
if (t.tagName === "FIELDSET" && t.disabled) {
|
|
1046
|
-
for (var n = 0; n < t.children.length; n++) {
|
|
1047
|
-
var r = t.children.item(n);
|
|
1048
|
-
if (r.tagName === "LEGEND") return L.call(t, "fieldset[disabled] *") ? !0 : !r.contains(e);
|
|
1049
|
-
}
|
|
1050
|
-
return !0;
|
|
1051
|
-
}
|
|
1052
|
-
t = t.parentElement;
|
|
1053
|
-
}
|
|
1054
|
-
return !1;
|
|
1055
|
-
}, xn = function(e, t) {
|
|
1056
|
-
return !(t.disabled || dn(t) || yn(t, e) || fn(t) || bn(t));
|
|
1057
|
-
}, Sn = function(e, t) {
|
|
1058
|
-
return !(gn(t) || sn(t) < 0 || !xn(e, t));
|
|
1059
|
-
}, Cn = function(e) {
|
|
1060
|
-
var t = parseInt(e.getAttribute("tabindex"), 10);
|
|
1061
|
-
return !!(isNaN(t) || t >= 0);
|
|
1062
|
-
}, wn = function(e) {
|
|
1063
|
-
var t = [], n = [];
|
|
1064
|
-
return e.forEach(function(e, r) {
|
|
1065
|
-
var i = !!e.scopeParent, a = i ? e.scopeParent : e, o = cn(a, i), s = i ? wn(e.candidates) : a;
|
|
1066
|
-
o === 0 ? i ? t.push.apply(t, s) : t.push(a) : n.push({
|
|
1067
|
-
documentOrder: r,
|
|
1068
|
-
tabIndex: o,
|
|
1069
|
-
item: e,
|
|
1070
|
-
isScope: i,
|
|
1071
|
-
content: s
|
|
1072
|
-
});
|
|
1073
|
-
}), n.sort(ln).reduce(function(e, t) {
|
|
1074
|
-
return t.isScope ? e.push.apply(e, t.content) : e.push(t.content), e;
|
|
1075
|
-
}, []).concat(t);
|
|
1076
|
-
}, Tn = function(e, t) {
|
|
1077
|
-
return t ||= {}, wn(t.getShadowRoot ? an([e], t.includeContainer, {
|
|
1078
|
-
filter: Sn.bind(null, t),
|
|
1079
|
-
flatten: !1,
|
|
1080
|
-
getShadowRoot: t.getShadowRoot,
|
|
1081
|
-
shadowRootFilter: Cn
|
|
1082
|
-
}) : rn(e, t.includeContainer, Sn.bind(null, t)));
|
|
1083
|
-
}, En = function(e, t) {
|
|
1084
|
-
return t ||= {}, t.getShadowRoot ? an([e], t.includeContainer, {
|
|
1085
|
-
filter: xn.bind(null, t),
|
|
1086
|
-
flatten: !0,
|
|
1087
|
-
getShadowRoot: t.getShadowRoot
|
|
1088
|
-
}) : rn(e, t.includeContainer, xn.bind(null, t));
|
|
1089
|
-
}, Dn = function(e, t) {
|
|
1090
|
-
if (t ||= {}, !e) throw Error("No node provided");
|
|
1091
|
-
return L.call(e, Qt) !== !1 && Sn(t, e);
|
|
1092
|
-
}, On = /* #__PURE__ */ Zt.concat("iframe:not([inert]):not([inert] *)").join(","), kn = function(e, t) {
|
|
1093
|
-
if (t ||= {}, !e) throw Error("No node provided");
|
|
1094
|
-
return L.call(e, On) !== !1 && xn(t, e);
|
|
1095
|
-
};
|
|
1096
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/tabbable.js
|
|
1097
|
-
function An() {
|
|
1098
|
-
return {
|
|
1099
|
-
getShadowRoot: !0,
|
|
1100
|
-
displayCheck: typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
1101
|
-
};
|
|
1102
|
-
}
|
|
1103
|
-
function jn(e, t) {
|
|
1104
|
-
if (!Dn(e, An())) return Mn(e, t);
|
|
1105
|
-
let n = Ze(e), r = Tn(n.body, An());
|
|
1106
|
-
t === "prev" && r.reverse();
|
|
1107
|
-
let i = r.indexOf(e);
|
|
1108
|
-
return i === -1 ? n.body : r.slice(i + 1)[0];
|
|
1109
|
-
}
|
|
1110
|
-
function Mn(e, t) {
|
|
1111
|
-
let n = Ze(e);
|
|
1112
|
-
if (!kn(e, An())) return n.body;
|
|
1113
|
-
let r = En(n.body, An());
|
|
1114
|
-
t === "prev" && r.reverse();
|
|
1115
|
-
let i = r.indexOf(e);
|
|
1116
|
-
return i === -1 ? n.body : r.slice(i + 1).find((e) => Dn(e, An())) ?? n.body;
|
|
1117
|
-
}
|
|
1118
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/arrays.js
|
|
1119
|
-
function Nn(e, t, n = !0) {
|
|
1120
|
-
if (!(e.length === 0 || t < 0 || t >= e.length)) return e.length === 1 && t === 0 ? e[0] : t === e.length - 1 ? n ? e[0] : void 0 : e[t + 1];
|
|
1121
|
-
}
|
|
1122
|
-
function Pn(e, t, n = !0) {
|
|
1123
|
-
if (!(e.length === 0 || t < 0 || t >= e.length)) return e.length === 1 && t === 0 ? e[0] : t === 0 ? n ? e[e.length - 1] : void 0 : e[t - 1];
|
|
1124
|
-
}
|
|
1125
|
-
function Fn(e, t, n, r = !0) {
|
|
1126
|
-
if (e.length === 0 || t < 0 || t >= e.length) return;
|
|
1127
|
-
let i = t + n;
|
|
1128
|
-
return i = r ? (i % e.length + e.length) % e.length : Math.max(0, Math.min(i, e.length - 1)), e[i];
|
|
1129
|
-
}
|
|
1130
|
-
function In(e, t, n, r = !0) {
|
|
1131
|
-
if (e.length === 0 || t < 0 || t >= e.length) return;
|
|
1132
|
-
let i = t - n;
|
|
1133
|
-
return i = r ? (i % e.length + e.length) % e.length : Math.max(0, Math.min(i, e.length - 1)), e[i];
|
|
1134
|
-
}
|
|
1135
|
-
function Ln(e, t, n) {
|
|
1136
|
-
let r = t.toLowerCase();
|
|
1137
|
-
if (r.endsWith(" ")) {
|
|
1138
|
-
let i = r.slice(0, -1);
|
|
1139
|
-
if (e.filter((e) => e.toLowerCase().startsWith(i)).length <= 1) return Ln(e, i, n);
|
|
1140
|
-
let a = n?.toLowerCase();
|
|
1141
|
-
if (a && a.startsWith(i) && a.charAt(i.length) === " " && t.trim() === i) return n;
|
|
1142
|
-
let o = e.filter((e) => e.toLowerCase().startsWith(r));
|
|
1143
|
-
if (o.length > 0) {
|
|
1144
|
-
let t = n ? e.indexOf(n) : -1;
|
|
1145
|
-
return Rn(o, Math.max(t, 0)).find((e) => e !== n) || n;
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
let i = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, a = i.toLowerCase(), o = n ? e.indexOf(n) : -1, s = Rn(e, Math.max(o, 0));
|
|
1149
|
-
i.length === 1 && (s = s.filter((e) => e !== n));
|
|
1150
|
-
let c = s.find((e) => e?.toLowerCase().startsWith(a));
|
|
1151
|
-
return c === n ? void 0 : c;
|
|
1152
|
-
}
|
|
1153
|
-
function Rn(e, t) {
|
|
1154
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
1155
|
-
}
|
|
1156
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/box-auto-reset.svelte.js
|
|
1157
|
-
var zn = {
|
|
1158
|
-
afterMs: 1e4,
|
|
1159
|
-
onChange: F
|
|
1160
|
-
};
|
|
1161
|
-
function Bn(e, n) {
|
|
1162
|
-
let { afterMs: r, onChange: i, getWindow: a } = {
|
|
1163
|
-
...zn,
|
|
1164
|
-
...n
|
|
1165
|
-
}, o = null, s = t.state(t.proxy(e));
|
|
1166
|
-
function c() {
|
|
1167
|
-
return a().setTimeout(() => {
|
|
1168
|
-
t.set(s, e, !0), i?.(e);
|
|
1169
|
-
}, r);
|
|
1170
|
-
}
|
|
1171
|
-
return t.user_effect(() => () => {
|
|
1172
|
-
o && a().clearTimeout(o);
|
|
1173
|
-
}), v(() => t.get(s), (e) => {
|
|
1174
|
-
t.set(s, e, !0), i?.(e), o && a().clearTimeout(o), o = c();
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/dom-typeahead.svelte.js
|
|
1178
|
-
var Vn = class {
|
|
1179
|
-
#e;
|
|
1180
|
-
#t;
|
|
1181
|
-
#n = t.derived(() => this.#e.onMatch ? this.#e.onMatch : (e) => e.focus());
|
|
1182
|
-
#r = t.derived(() => this.#e.getCurrentItem ? this.#e.getCurrentItem : this.#e.getActiveElement);
|
|
1183
|
-
constructor(e) {
|
|
1184
|
-
this.#e = e, this.#t = Bn("", {
|
|
1185
|
-
afterMs: 1e3,
|
|
1186
|
-
getWindow: e.getWindow
|
|
1187
|
-
}), this.handleTypeaheadSearch = this.handleTypeaheadSearch.bind(this), this.resetTypeahead = this.resetTypeahead.bind(this);
|
|
1188
|
-
}
|
|
1189
|
-
handleTypeaheadSearch(e, n) {
|
|
1190
|
-
if (!n.length) return;
|
|
1191
|
-
this.#t.current = this.#t.current + e;
|
|
1192
|
-
let r = t.get(this.#r)(), i = n.find((e) => e === r)?.textContent?.trim() ?? "", a = Ln(n.map((e) => e.textContent?.trim() ?? ""), this.#t.current, i), o = n.find((e) => e.textContent?.trim() === a);
|
|
1193
|
-
return o && t.get(this.#n)(o), o;
|
|
1194
|
-
}
|
|
1195
|
-
resetTypeahead() {
|
|
1196
|
-
this.#t.current = "";
|
|
1197
|
-
}
|
|
1198
|
-
get search() {
|
|
1199
|
-
return this.#t.current;
|
|
1200
|
-
}
|
|
1201
|
-
}, Hn = "data-context-menu-trigger", Un = "data-context-menu-content", Wn = new k("Menu.Root"), Gn = new k("Menu.Root | Menu.Sub"), Kn = new k("Menu.Content"), qn = new k("Menu.Group | Menu.RadioGroup");
|
|
1202
|
-
new k("Menu.RadioGroup"), new k("Menu.CheckboxGroup");
|
|
1203
|
-
var Jn = new Rt("bitsmenuopen", {
|
|
1204
|
-
bubbles: !1,
|
|
1205
|
-
cancelable: !0
|
|
1206
|
-
}), Yn = st({
|
|
1207
|
-
component: "menu",
|
|
1208
|
-
parts: [
|
|
1209
|
-
"trigger",
|
|
1210
|
-
"content",
|
|
1211
|
-
"sub-trigger",
|
|
1212
|
-
"item",
|
|
1213
|
-
"group",
|
|
1214
|
-
"group-heading",
|
|
1215
|
-
"checkbox-group",
|
|
1216
|
-
"checkbox-item",
|
|
1217
|
-
"radio-group",
|
|
1218
|
-
"radio-item",
|
|
1219
|
-
"separator",
|
|
1220
|
-
"sub-content",
|
|
1221
|
-
"arrow"
|
|
1222
|
-
]
|
|
1223
|
-
}), Xn = class {
|
|
1224
|
-
#e;
|
|
1225
|
-
#t = null;
|
|
1226
|
-
#n = null;
|
|
1227
|
-
#r = !1;
|
|
1228
|
-
#i = null;
|
|
1229
|
-
#a = null;
|
|
1230
|
-
#o = null;
|
|
1231
|
-
#s = null;
|
|
1232
|
-
constructor(e) {
|
|
1233
|
-
this.#e = e, A([
|
|
1234
|
-
e.triggerNode,
|
|
1235
|
-
e.contentNode,
|
|
1236
|
-
e.enabled
|
|
1237
|
-
], ([e, t, n]) => {
|
|
1238
|
-
if (this.#_(), !e || !t || !n) return;
|
|
1239
|
-
let r = (e) => {
|
|
1240
|
-
I(e) && (this.#s = {
|
|
1241
|
-
x: e.clientX,
|
|
1242
|
-
y: e.clientY
|
|
1243
|
-
}, this.#r || this.#d(e, "content"));
|
|
1244
|
-
}, i = (e) => {
|
|
1245
|
-
I(e) && this.#f(e, "content");
|
|
1246
|
-
}, a = (e) => {
|
|
1247
|
-
I(e) && (this.#r || this.#d(e, "trigger"));
|
|
1248
|
-
}, o = (e) => {
|
|
1249
|
-
if (I(e)) {
|
|
1250
|
-
if (At(e.relatedTarget)) {
|
|
1251
|
-
let n = this.#e.subContentSelector(), r = e.relatedTarget.closest(n);
|
|
1252
|
-
if (r && r !== t && r.id && t.querySelector(`[aria-controls="${r.id}"]`)) return;
|
|
1253
|
-
}
|
|
1254
|
-
this.#f(e, "trigger");
|
|
1255
|
-
}
|
|
1256
|
-
}, s = (e) => {
|
|
1257
|
-
I(e) && this.#m();
|
|
1258
|
-
}, c = (e) => {
|
|
1259
|
-
I(e) && this.#m();
|
|
1260
|
-
};
|
|
1261
|
-
return e.addEventListener("pointermove", r), e.addEventListener("pointerleave", i), e.addEventListener("pointerenter", s), t.addEventListener("pointermove", a), t.addEventListener("pointerleave", o), t.addEventListener("pointerenter", c), () => {
|
|
1262
|
-
e.removeEventListener("pointermove", r), e.removeEventListener("pointerleave", i), e.removeEventListener("pointerenter", s), t.removeEventListener("pointermove", a), t.removeEventListener("pointerleave", o), t.removeEventListener("pointerenter", c), this.#_();
|
|
1263
|
-
};
|
|
1264
|
-
}), j(() => {
|
|
1265
|
-
this.#_();
|
|
1266
|
-
});
|
|
1267
|
-
}
|
|
1268
|
-
#c() {
|
|
1269
|
-
let e = this.#e.parentContentNode();
|
|
1270
|
-
return e ? e.getBoundingClientRect() : this.#e.triggerNode()?.getBoundingClientRect() ?? null;
|
|
1271
|
-
}
|
|
1272
|
-
#l(e, t) {
|
|
1273
|
-
let n = this.#e.triggerNode(), r = this.#e.contentNode();
|
|
1274
|
-
if (!n || !r) return null;
|
|
1275
|
-
let i = n.getBoundingClientRect(), a = r.getBoundingClientRect(), o = er(i, a), s, c, l;
|
|
1276
|
-
return t === "content" ? (s = this.#r ? this.#a ?? e : e, c = a) : (s = this.#s ?? e, c = this.#c() ?? i, l = a), this.#a = s, {
|
|
1277
|
-
corridor: tr(i, a, o),
|
|
1278
|
-
intent: nr(s, c, o, t, l),
|
|
1279
|
-
targetRect: c,
|
|
1280
|
-
side: o
|
|
1281
|
-
};
|
|
1282
|
-
}
|
|
1283
|
-
#u(e, t, n) {
|
|
1284
|
-
return Zn(e, t) || Zn(e, n);
|
|
1285
|
-
}
|
|
1286
|
-
#d(e, t) {
|
|
1287
|
-
let n = {
|
|
1288
|
-
x: e.clientX,
|
|
1289
|
-
y: e.clientY
|
|
1290
|
-
};
|
|
1291
|
-
this.#l(n, t) && (this.#i = t, this.#o = n);
|
|
1292
|
-
}
|
|
1293
|
-
#f(e, t) {
|
|
1294
|
-
if (!this.#e.enabled()) return;
|
|
1295
|
-
let n = this.#e.triggerNode(), r = this.#e.contentNode();
|
|
1296
|
-
if (!n || !r) return;
|
|
1297
|
-
let i = e.relatedTarget;
|
|
1298
|
-
if (At(i) && (t === "content" && r.contains(i) || t === "trigger" && n.contains(i))) return;
|
|
1299
|
-
let a = {
|
|
1300
|
-
x: e.clientX,
|
|
1301
|
-
y: e.clientY
|
|
1302
|
-
}, o = this.#l(a, t);
|
|
1303
|
-
o && (!Qn(a, o.targetRect) && !this.#u(a, o.corridor, o.intent) ? this.#w() : (this.#r = !0, this.#i = t, this.#o = a, this.#e.setIsPointerInTransit(!0), this.#b(), this.#S()));
|
|
1304
|
-
}
|
|
1305
|
-
#p = null;
|
|
1306
|
-
#m() {
|
|
1307
|
-
if (!this.#r) return;
|
|
1308
|
-
let e = this.#i === "trigger";
|
|
1309
|
-
this.#x(), this.#C(), this.#r = !1, this.#w(), e ? (this.#h(), this.#p = setTimeout(() => {
|
|
1310
|
-
this.#p = null, this.#e.setIsPointerInTransit(!1);
|
|
1311
|
-
}, 100)) : this.#e.setIsPointerInTransit(!1);
|
|
1312
|
-
}
|
|
1313
|
-
#h() {
|
|
1314
|
-
this.#p !== null && (clearTimeout(this.#p), this.#p = null);
|
|
1315
|
-
}
|
|
1316
|
-
#g() {
|
|
1317
|
-
let e = this.#o;
|
|
1318
|
-
this.#x(), this.#C(), this.#h(), this.#r = !1, this.#e.setIsPointerInTransit(!1), this.#w(), this.#e.onIntentExit(e);
|
|
1319
|
-
}
|
|
1320
|
-
#_() {
|
|
1321
|
-
this.#x(), this.#C(), this.#h(), this.#r && this.#e.setIsPointerInTransit(!1), this.#r = !1, this.#i = null, this.#a = null, this.#o = null, this.#s = null;
|
|
1322
|
-
}
|
|
1323
|
-
#v(e) {
|
|
1324
|
-
let t = this.#e.contentNode();
|
|
1325
|
-
if (!t) return !1;
|
|
1326
|
-
let n = t.ownerDocument.elementFromPoint(e.x, e.y);
|
|
1327
|
-
if (!n) return !1;
|
|
1328
|
-
let r = this.#e.subContentSelector(), i = n.closest(r);
|
|
1329
|
-
return !i || i === t ? !1 : i.id ? !!t.querySelector(`[aria-controls="${i.id}"]`) : !1;
|
|
1330
|
-
}
|
|
1331
|
-
#y = (e) => {
|
|
1332
|
-
if (!this.#r || !this.#i || !I(e)) return;
|
|
1333
|
-
let t = this.#e.triggerNode(), n = this.#e.contentNode();
|
|
1334
|
-
if (!t || !n) {
|
|
1335
|
-
this.#g();
|
|
1336
|
-
return;
|
|
1337
|
-
}
|
|
1338
|
-
this.#C();
|
|
1339
|
-
let r = {
|
|
1340
|
-
x: e.clientX,
|
|
1341
|
-
y: e.clientY
|
|
1342
|
-
};
|
|
1343
|
-
this.#o = r;
|
|
1344
|
-
let i = t.getBoundingClientRect(), a = n.getBoundingClientRect();
|
|
1345
|
-
if (this.#i === "content" && Qn(r, a) || this.#i === "trigger" && $n(r, i, 4)) {
|
|
1346
|
-
this.#m();
|
|
1347
|
-
return;
|
|
1348
|
-
}
|
|
1349
|
-
if (this.#v(r)) {
|
|
1350
|
-
this.#S();
|
|
1351
|
-
return;
|
|
1352
|
-
}
|
|
1353
|
-
let o = this.#l(r, this.#i);
|
|
1354
|
-
o && this.#u(r, o.corridor, o.intent) ? this.#S() : this.#g();
|
|
1355
|
-
};
|
|
1356
|
-
#b() {
|
|
1357
|
-
if (this.#t) return;
|
|
1358
|
-
let e = Ze(this.#e.triggerNode() ?? this.#e.contentNode());
|
|
1359
|
-
e && (e.addEventListener("pointermove", this.#y, !0), this.#t = () => {
|
|
1360
|
-
e.removeEventListener("pointermove", this.#y, !0), this.#t = null;
|
|
1361
|
-
});
|
|
1362
|
-
}
|
|
1363
|
-
#x() {
|
|
1364
|
-
this.#t?.();
|
|
1365
|
-
}
|
|
1366
|
-
#S() {
|
|
1367
|
-
this.#C(), this.#n = setTimeout(() => {
|
|
1368
|
-
this.#n = null, this.#r && this.#g();
|
|
1369
|
-
}, 500);
|
|
1370
|
-
}
|
|
1371
|
-
#C() {
|
|
1372
|
-
this.#n !== null && (clearTimeout(this.#n), this.#n = null);
|
|
1373
|
-
}
|
|
1374
|
-
#w() {
|
|
1375
|
-
this.#i = null, this.#a = null, this.#o = null;
|
|
1376
|
-
}
|
|
1377
|
-
};
|
|
1378
|
-
function Zn(e, t) {
|
|
1379
|
-
let { x: n, y: r } = e, i = !1;
|
|
1380
|
-
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
1381
|
-
let o = t[e].x, s = t[e].y, c = t[a].x, l = t[a].y;
|
|
1382
|
-
s > r != l > r && n < (c - o) * (r - s) / (l - s) + o && (i = !i);
|
|
1383
|
-
}
|
|
1384
|
-
return i;
|
|
1385
|
-
}
|
|
1386
|
-
function Qn(e, t) {
|
|
1387
|
-
return e.x >= t.left && e.x <= t.right && e.y >= t.top && e.y <= t.bottom;
|
|
1388
|
-
}
|
|
1389
|
-
function $n(e, t, n) {
|
|
1390
|
-
return e.x >= t.left + n && e.x <= t.right - n && e.y >= t.top + n && e.y <= t.bottom - n;
|
|
1391
|
-
}
|
|
1392
|
-
function er(e, t) {
|
|
1393
|
-
let n = e.left + e.width / 2, r = e.top + e.height / 2, i = t.left + t.width / 2, a = t.top + t.height / 2, o = i - n, s = a - r;
|
|
1394
|
-
return Math.abs(o) > Math.abs(s) ? o > 0 ? "right" : "left" : s > 0 ? "bottom" : "top";
|
|
1395
|
-
}
|
|
1396
|
-
function tr(e, t, n) {
|
|
1397
|
-
switch (n) {
|
|
1398
|
-
case "top": return [
|
|
1399
|
-
{
|
|
1400
|
-
x: Math.min(e.left, t.left) - 2,
|
|
1401
|
-
y: e.top
|
|
1402
|
-
},
|
|
1403
|
-
{
|
|
1404
|
-
x: Math.min(e.left, t.left) - 2,
|
|
1405
|
-
y: t.bottom
|
|
1406
|
-
},
|
|
1407
|
-
{
|
|
1408
|
-
x: Math.max(e.right, t.right) + 2,
|
|
1409
|
-
y: t.bottom
|
|
1410
|
-
},
|
|
1411
|
-
{
|
|
1412
|
-
x: Math.max(e.right, t.right) + 2,
|
|
1413
|
-
y: e.top
|
|
1414
|
-
}
|
|
1415
|
-
];
|
|
1416
|
-
case "bottom": return [
|
|
1417
|
-
{
|
|
1418
|
-
x: Math.min(e.left, t.left) - 2,
|
|
1419
|
-
y: e.bottom
|
|
1420
|
-
},
|
|
1421
|
-
{
|
|
1422
|
-
x: Math.min(e.left, t.left) - 2,
|
|
1423
|
-
y: t.top
|
|
1424
|
-
},
|
|
1425
|
-
{
|
|
1426
|
-
x: Math.max(e.right, t.right) + 2,
|
|
1427
|
-
y: t.top
|
|
1428
|
-
},
|
|
1429
|
-
{
|
|
1430
|
-
x: Math.max(e.right, t.right) + 2,
|
|
1431
|
-
y: e.bottom
|
|
1432
|
-
}
|
|
1433
|
-
];
|
|
1434
|
-
case "left": return [
|
|
1435
|
-
{
|
|
1436
|
-
x: e.left,
|
|
1437
|
-
y: Math.min(e.top, t.top) - 2
|
|
1438
|
-
},
|
|
1439
|
-
{
|
|
1440
|
-
x: t.right,
|
|
1441
|
-
y: Math.min(e.top, t.top) - 2
|
|
1442
|
-
},
|
|
1443
|
-
{
|
|
1444
|
-
x: t.right,
|
|
1445
|
-
y: Math.max(e.bottom, t.bottom) + 2
|
|
1446
|
-
},
|
|
1447
|
-
{
|
|
1448
|
-
x: e.left,
|
|
1449
|
-
y: Math.max(e.bottom, t.bottom) + 2
|
|
1450
|
-
}
|
|
1451
|
-
];
|
|
1452
|
-
case "right": return [
|
|
1453
|
-
{
|
|
1454
|
-
x: e.right,
|
|
1455
|
-
y: Math.min(e.top, t.top) - 2
|
|
1456
|
-
},
|
|
1457
|
-
{
|
|
1458
|
-
x: t.left,
|
|
1459
|
-
y: Math.min(e.top, t.top) - 2
|
|
1460
|
-
},
|
|
1461
|
-
{
|
|
1462
|
-
x: t.left,
|
|
1463
|
-
y: Math.max(e.bottom, t.bottom) + 2
|
|
1464
|
-
},
|
|
1465
|
-
{
|
|
1466
|
-
x: e.right,
|
|
1467
|
-
y: Math.max(e.bottom, t.bottom) + 2
|
|
1468
|
-
}
|
|
1469
|
-
];
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
function nr(e, t, n, r, i) {
|
|
1473
|
-
let a = r === "trigger" ? rr(n) : n, o = i ? Math.min(t.top, i.top) - 8 : t.top - 8, s = i ? Math.max(t.bottom, i.bottom) + 8 : t.bottom + 8, c = i ? Math.min(t.left, i.left) - 8 : t.left - 8, l = i ? Math.max(t.right, i.right) + 8 : t.right + 8;
|
|
1474
|
-
switch (a) {
|
|
1475
|
-
case "right": return [
|
|
1476
|
-
e,
|
|
1477
|
-
{
|
|
1478
|
-
x: t.left,
|
|
1479
|
-
y: o
|
|
1480
|
-
},
|
|
1481
|
-
{
|
|
1482
|
-
x: t.left,
|
|
1483
|
-
y: s
|
|
1484
|
-
}
|
|
1485
|
-
];
|
|
1486
|
-
case "left": return [
|
|
1487
|
-
e,
|
|
1488
|
-
{
|
|
1489
|
-
x: t.right,
|
|
1490
|
-
y: o
|
|
1491
|
-
},
|
|
1492
|
-
{
|
|
1493
|
-
x: t.right,
|
|
1494
|
-
y: s
|
|
1495
|
-
}
|
|
1496
|
-
];
|
|
1497
|
-
case "bottom": return [
|
|
1498
|
-
e,
|
|
1499
|
-
{
|
|
1500
|
-
x: c,
|
|
1501
|
-
y: t.top
|
|
1502
|
-
},
|
|
1503
|
-
{
|
|
1504
|
-
x: l,
|
|
1505
|
-
y: t.top
|
|
1506
|
-
}
|
|
1507
|
-
];
|
|
1508
|
-
case "top": return [
|
|
1509
|
-
e,
|
|
1510
|
-
{
|
|
1511
|
-
x: c,
|
|
1512
|
-
y: t.bottom
|
|
1513
|
-
},
|
|
1514
|
-
{
|
|
1515
|
-
x: l,
|
|
1516
|
-
y: t.bottom
|
|
1517
|
-
}
|
|
1518
|
-
];
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
function rr(e) {
|
|
1522
|
-
switch (e) {
|
|
1523
|
-
case "top": return "bottom";
|
|
1524
|
-
case "bottom": return "top";
|
|
1525
|
-
case "left": return "right";
|
|
1526
|
-
case "right": return "left";
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
var ir = class e {
|
|
1530
|
-
static create(t) {
|
|
1531
|
-
let n = new e(t);
|
|
1532
|
-
return Wn.set(n);
|
|
1533
|
-
}
|
|
1534
|
-
opts;
|
|
1535
|
-
isUsingKeyboard = new Xt();
|
|
1536
|
-
#e = t.state(!1);
|
|
1537
|
-
get ignoreCloseAutoFocus() {
|
|
1538
|
-
return t.get(this.#e);
|
|
1539
|
-
}
|
|
1540
|
-
set ignoreCloseAutoFocus(e) {
|
|
1541
|
-
t.set(this.#e, e, !0);
|
|
1542
|
-
}
|
|
1543
|
-
#t = t.state(!1);
|
|
1544
|
-
get isPointerInTransit() {
|
|
1545
|
-
return t.get(this.#t);
|
|
1546
|
-
}
|
|
1547
|
-
set isPointerInTransit(e) {
|
|
1548
|
-
t.set(this.#t, e, !0);
|
|
1549
|
-
}
|
|
1550
|
-
constructor(e) {
|
|
1551
|
-
this.opts = e;
|
|
1552
|
-
}
|
|
1553
|
-
getBitsAttr = (e) => Yn.getAttr(e, this.opts.variant.current);
|
|
1554
|
-
}, ar = class e {
|
|
1555
|
-
static create(t, n) {
|
|
1556
|
-
return Gn.set(new e(t, n, null));
|
|
1557
|
-
}
|
|
1558
|
-
opts;
|
|
1559
|
-
root;
|
|
1560
|
-
parentMenu;
|
|
1561
|
-
contentId = v(() => "");
|
|
1562
|
-
#e = t.state(null);
|
|
1563
|
-
get contentNode() {
|
|
1564
|
-
return t.get(this.#e);
|
|
1565
|
-
}
|
|
1566
|
-
set contentNode(e) {
|
|
1567
|
-
t.set(this.#e, e, !0);
|
|
1568
|
-
}
|
|
1569
|
-
contentPresence;
|
|
1570
|
-
#t = t.state(null);
|
|
1571
|
-
get triggerNode() {
|
|
1572
|
-
return t.get(this.#t);
|
|
1573
|
-
}
|
|
1574
|
-
set triggerNode(e) {
|
|
1575
|
-
t.set(this.#t, e, !0);
|
|
1576
|
-
}
|
|
1577
|
-
constructor(e, t, n) {
|
|
1578
|
-
this.opts = e, this.root = t, this.parentMenu = n, this.contentPresence = new It({
|
|
1579
|
-
ref: v(() => this.contentNode),
|
|
1580
|
-
open: this.opts.open,
|
|
1581
|
-
onComplete: () => {
|
|
1582
|
-
this.opts.onOpenChangeComplete.current(this.opts.open.current);
|
|
1583
|
-
},
|
|
1584
|
-
shouldSkipExitAnimation: () => this.root.opts.variant.current !== "menubar" || this.parentMenu !== null ? !1 : this.root.opts.shouldSkipExitAnimation?.() ?? !1
|
|
1585
|
-
}), n && A(() => n.opts.open.current, () => {
|
|
1586
|
-
n.opts.open.current || (this.opts.open.current = !1);
|
|
1587
|
-
});
|
|
1588
|
-
}
|
|
1589
|
-
toggleOpen() {
|
|
1590
|
-
this.opts.open.current = !this.opts.open.current;
|
|
1591
|
-
}
|
|
1592
|
-
onOpen() {
|
|
1593
|
-
this.opts.open.current = !0;
|
|
1594
|
-
}
|
|
1595
|
-
onClose() {
|
|
1596
|
-
this.opts.open.current = !1;
|
|
1597
|
-
}
|
|
1598
|
-
}, or = class e {
|
|
1599
|
-
static create(t) {
|
|
1600
|
-
return Kn.set(new e(t, Gn.get()));
|
|
1601
|
-
}
|
|
1602
|
-
opts;
|
|
1603
|
-
parentMenu;
|
|
1604
|
-
rovingFocusGroup;
|
|
1605
|
-
domContext;
|
|
1606
|
-
attachment;
|
|
1607
|
-
#e = t.state("");
|
|
1608
|
-
get search() {
|
|
1609
|
-
return t.get(this.#e);
|
|
1610
|
-
}
|
|
1611
|
-
set search(e) {
|
|
1612
|
-
t.set(this.#e, e, !0);
|
|
1613
|
-
}
|
|
1614
|
-
#t = 0;
|
|
1615
|
-
#n;
|
|
1616
|
-
#r = t.state(!1);
|
|
1617
|
-
get mounted() {
|
|
1618
|
-
return t.get(this.#r);
|
|
1619
|
-
}
|
|
1620
|
-
set mounted(e) {
|
|
1621
|
-
t.set(this.#r, e, !0);
|
|
1622
|
-
}
|
|
1623
|
-
#i;
|
|
1624
|
-
constructor(e, n) {
|
|
1625
|
-
this.opts = e, this.parentMenu = n, this.domContext = new et(e.ref), this.attachment = N(this.opts.ref, (e) => {
|
|
1626
|
-
this.parentMenu.contentNode !== e && (this.parentMenu.contentNode = e);
|
|
1627
|
-
}), n.contentId = e.id, this.#i = e.isSub ?? !1, this.onkeydown = this.onkeydown.bind(this), this.onblur = this.onblur.bind(this), this.onfocus = this.onfocus.bind(this), this.handleInteractOutside = this.handleInteractOutside.bind(this), new Xn({
|
|
1628
|
-
contentNode: () => this.parentMenu.contentNode,
|
|
1629
|
-
triggerNode: () => this.parentMenu.triggerNode,
|
|
1630
|
-
parentContentNode: () => this.parentMenu.parentMenu?.contentNode ?? null,
|
|
1631
|
-
subContentSelector: () => `[${this.parentMenu.root.getBitsAttr("sub-content")}]`,
|
|
1632
|
-
enabled: () => this.parentMenu.opts.open.current && !!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),
|
|
1633
|
-
onIntentExit: (e) => {
|
|
1634
|
-
this.parentMenu.opts.open.current = !1, this.#s(e);
|
|
1635
|
-
},
|
|
1636
|
-
setIsPointerInTransit: (e) => {
|
|
1637
|
-
this.parentMenu.root.isPointerInTransit = e;
|
|
1638
|
-
}
|
|
1639
|
-
}), this.#n = new Vn({
|
|
1640
|
-
getActiveElement: () => this.domContext.getActiveElement(),
|
|
1641
|
-
getWindow: () => this.domContext.getWindow()
|
|
1642
|
-
}).handleTypeaheadSearch, this.rovingFocusGroup = new Pt({
|
|
1643
|
-
rootNode: v(() => this.parentMenu.contentNode),
|
|
1644
|
-
candidateAttr: this.parentMenu.root.getBitsAttr("item"),
|
|
1645
|
-
loop: this.opts.loop,
|
|
1646
|
-
orientation: v(() => "vertical")
|
|
1647
|
-
}), A(() => this.parentMenu.contentNode, (e) => e ? Jn.listen(e, () => {
|
|
1648
|
-
M(() => {
|
|
1649
|
-
this.parentMenu.root.isUsingKeyboard.current && this.rovingFocusGroup.focusFirstCandidate();
|
|
1650
|
-
});
|
|
1651
|
-
}) : void 0), t.user_effect(() => {
|
|
1652
|
-
this.parentMenu.opts.open.current || this.domContext.getWindow().clearTimeout(this.#t);
|
|
1653
|
-
});
|
|
1654
|
-
}
|
|
1655
|
-
#a() {
|
|
1656
|
-
let e = this.parentMenu.contentNode;
|
|
1657
|
-
return e ? Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)) : [];
|
|
1658
|
-
}
|
|
1659
|
-
#o() {
|
|
1660
|
-
return this.parentMenu.root.isPointerInTransit;
|
|
1661
|
-
}
|
|
1662
|
-
#s(e) {
|
|
1663
|
-
if (!e) return;
|
|
1664
|
-
let t = this.parentMenu.parentMenu?.contentNode;
|
|
1665
|
-
if (!t) return;
|
|
1666
|
-
let n = this.domContext.getDocument().elementFromPoint(e.x, e.y);
|
|
1667
|
-
if (!At(n)) return;
|
|
1668
|
-
let r = n.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);
|
|
1669
|
-
r && t.contains(r) && r !== this.parentMenu.triggerNode && r.dispatchEvent(new PointerEvent("pointermove", {
|
|
1670
|
-
bubbles: !0,
|
|
1671
|
-
cancelable: !0,
|
|
1672
|
-
pointerType: "mouse",
|
|
1673
|
-
clientX: e.x,
|
|
1674
|
-
clientY: e.y
|
|
1675
|
-
}));
|
|
1676
|
-
}
|
|
1677
|
-
onCloseAutoFocus = (e) => {
|
|
1678
|
-
this.opts.onCloseAutoFocus.current?.(e), e.defaultPrevented || this.#i || (this.parentMenu.root.ignoreCloseAutoFocus ? e.preventDefault() : this.parentMenu.triggerNode && Dn(this.parentMenu.triggerNode) && (e.preventDefault(), this.parentMenu.triggerNode.focus()));
|
|
1679
|
-
};
|
|
1680
|
-
handleTabKeyDown(e) {
|
|
1681
|
-
let t = this.parentMenu;
|
|
1682
|
-
for (; t.parentMenu !== null;) t = t.parentMenu;
|
|
1683
|
-
if (!t.triggerNode) return;
|
|
1684
|
-
e.preventDefault();
|
|
1685
|
-
let n = jn(t.triggerNode, e.shiftKey ? "prev" : "next");
|
|
1686
|
-
n ? (this.parentMenu.root.ignoreCloseAutoFocus = !0, t.onClose(), M(() => {
|
|
1687
|
-
n.focus(), M(() => {
|
|
1688
|
-
this.parentMenu.root.ignoreCloseAutoFocus = !1;
|
|
1689
|
-
});
|
|
1690
|
-
})) : this.domContext.getDocument().body.focus();
|
|
1691
|
-
}
|
|
1692
|
-
onkeydown(e) {
|
|
1693
|
-
if (e.defaultPrevented) return;
|
|
1694
|
-
if (e.key === "Tab") {
|
|
1695
|
-
this.handleTabKeyDown(e);
|
|
1696
|
-
return;
|
|
1697
|
-
}
|
|
1698
|
-
let t = e.target, n = e.currentTarget;
|
|
1699
|
-
if (!P(t) || !P(n)) return;
|
|
1700
|
-
let r = t.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id === this.parentMenu.contentId.current, i = e.ctrlKey || e.altKey || e.metaKey, a = e.key.length === 1;
|
|
1701
|
-
if (this.rovingFocusGroup.handleKeydown(t, e) || e.code === "Space") return;
|
|
1702
|
-
let o = this.#a();
|
|
1703
|
-
r && !i && a && this.#n(e.key, o), e.target?.id === this.parentMenu.contentId.current && Kt.includes(e.key) && (e.preventDefault(), Gt.includes(e.key) && o.reverse(), Jt(o, { select: !1 }, () => this.domContext.getActiveElement()));
|
|
1704
|
-
}
|
|
1705
|
-
onblur(e) {
|
|
1706
|
-
At(e.currentTarget) && At(e.target) && (e.currentTarget.contains?.(e.target) || (this.domContext.getWindow().clearTimeout(this.#t), this.search = ""));
|
|
1707
|
-
}
|
|
1708
|
-
onfocus(e) {
|
|
1709
|
-
this.parentMenu.root.isUsingKeyboard.current && M(() => this.rovingFocusGroup.focusFirstCandidate());
|
|
1710
|
-
}
|
|
1711
|
-
onItemEnter() {
|
|
1712
|
-
return this.#o();
|
|
1713
|
-
}
|
|
1714
|
-
onItemLeave(e) {
|
|
1715
|
-
e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")) || this.#o() || this.parentMenu.root.isUsingKeyboard.current || (this.parentMenu.contentNode?.focus({ preventScroll: !0 }), this.rovingFocusGroup.setCurrentTabStopId(""));
|
|
1716
|
-
}
|
|
1717
|
-
onTriggerLeave() {
|
|
1718
|
-
return !!this.#o();
|
|
1719
|
-
}
|
|
1720
|
-
handleInteractOutside(e) {
|
|
1721
|
-
if (!jt(e.target)) return;
|
|
1722
|
-
let t = this.parentMenu.triggerNode?.id;
|
|
1723
|
-
e.target.id === t || e.target.closest(`#${t}`) ? e.preventDefault() : (this.parentMenu.root.ignoreCloseAutoFocus = !0, M(() => {
|
|
1724
|
-
this.parentMenu.root.ignoreCloseAutoFocus = !1;
|
|
1725
|
-
}));
|
|
1726
|
-
}
|
|
1727
|
-
get shouldRender() {
|
|
1728
|
-
return this.parentMenu.contentPresence.shouldRender;
|
|
1729
|
-
}
|
|
1730
|
-
#c = t.derived(() => ({ open: this.parentMenu.opts.open.current }));
|
|
1731
|
-
get snippetProps() {
|
|
1732
|
-
return t.get(this.#c);
|
|
1733
|
-
}
|
|
1734
|
-
set snippetProps(e) {
|
|
1735
|
-
t.set(this.#c, e);
|
|
1736
|
-
}
|
|
1737
|
-
#l = t.derived(() => ({
|
|
1738
|
-
id: this.opts.id.current,
|
|
1739
|
-
role: "menu",
|
|
1740
|
-
"aria-orientation": "vertical",
|
|
1741
|
-
[this.parentMenu.root.getBitsAttr("content")]: "",
|
|
1742
|
-
"data-state": it(this.parentMenu.opts.open.current),
|
|
1743
|
-
...at(this.parentMenu.contentPresence.transitionStatus),
|
|
1744
|
-
onkeydown: this.onkeydown,
|
|
1745
|
-
onblur: this.onblur,
|
|
1746
|
-
onfocus: this.onfocus,
|
|
1747
|
-
dir: this.parentMenu.root.opts.dir.current,
|
|
1748
|
-
style: {
|
|
1749
|
-
pointerEvents: "auto",
|
|
1750
|
-
contain: "layout style"
|
|
1751
|
-
},
|
|
1752
|
-
...this.attachment
|
|
1753
|
-
}));
|
|
1754
|
-
get props() {
|
|
1755
|
-
return t.get(this.#l);
|
|
1756
|
-
}
|
|
1757
|
-
set props(e) {
|
|
1758
|
-
t.set(this.#l, e);
|
|
1759
|
-
}
|
|
1760
|
-
popperProps = { onCloseAutoFocus: (e) => this.onCloseAutoFocus(e) };
|
|
1761
|
-
}, sr = class {
|
|
1762
|
-
opts;
|
|
1763
|
-
content;
|
|
1764
|
-
attachment;
|
|
1765
|
-
#e = t.state(!1);
|
|
1766
|
-
constructor(e, t) {
|
|
1767
|
-
this.opts = e, this.content = t, this.attachment = N(this.opts.ref), this.onpointermove = this.onpointermove.bind(this), this.onpointerleave = this.onpointerleave.bind(this), this.onfocus = this.onfocus.bind(this), this.onblur = this.onblur.bind(this);
|
|
1768
|
-
}
|
|
1769
|
-
onpointermove(e) {
|
|
1770
|
-
if (!e.defaultPrevented && I(e)) {
|
|
1771
|
-
if (this.opts.disabled.current) this.content.onItemLeave(e);
|
|
1772
|
-
else {
|
|
1773
|
-
if (this.content.onItemEnter()) return;
|
|
1774
|
-
let t = e.currentTarget;
|
|
1775
|
-
if (!P(t)) return;
|
|
1776
|
-
t.focus({ preventScroll: !0 });
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
onpointerleave(e) {
|
|
1781
|
-
e.defaultPrevented || I(e) && this.content.onItemLeave(e);
|
|
1782
|
-
}
|
|
1783
|
-
onfocus(e) {
|
|
1784
|
-
M(() => {
|
|
1785
|
-
e.defaultPrevented || this.opts.disabled.current || t.set(this.#e, !0);
|
|
1786
|
-
});
|
|
1787
|
-
}
|
|
1788
|
-
onblur(e) {
|
|
1789
|
-
M(() => {
|
|
1790
|
-
e.defaultPrevented || t.set(this.#e, !1);
|
|
1791
|
-
});
|
|
1792
|
-
}
|
|
1793
|
-
#t = t.derived(() => ({
|
|
1794
|
-
id: this.opts.id.current,
|
|
1795
|
-
tabindex: -1,
|
|
1796
|
-
role: "menuitem",
|
|
1797
|
-
"aria-disabled": tt(this.opts.disabled.current),
|
|
1798
|
-
"data-disabled": nt(this.opts.disabled.current),
|
|
1799
|
-
"data-highlighted": t.get(this.#e) ? "" : void 0,
|
|
1800
|
-
[this.content.parentMenu.root.getBitsAttr("item")]: "",
|
|
1801
|
-
onpointermove: this.onpointermove,
|
|
1802
|
-
onpointerleave: this.onpointerleave,
|
|
1803
|
-
onfocus: this.onfocus,
|
|
1804
|
-
onblur: this.onblur,
|
|
1805
|
-
...this.attachment
|
|
1806
|
-
}));
|
|
1807
|
-
get props() {
|
|
1808
|
-
return t.get(this.#t);
|
|
1809
|
-
}
|
|
1810
|
-
set props(e) {
|
|
1811
|
-
t.set(this.#t, e);
|
|
1812
|
-
}
|
|
1813
|
-
}, cr = class e {
|
|
1814
|
-
static create(t) {
|
|
1815
|
-
let n = new sr(t, Kn.get());
|
|
1816
|
-
return new e(t, n);
|
|
1817
|
-
}
|
|
1818
|
-
opts;
|
|
1819
|
-
item;
|
|
1820
|
-
root;
|
|
1821
|
-
#e = !1;
|
|
1822
|
-
constructor(e, t) {
|
|
1823
|
-
this.opts = e, this.item = t, this.root = t.content.parentMenu.root, this.onkeydown = this.onkeydown.bind(this), this.onclick = this.onclick.bind(this), this.onpointerdown = this.onpointerdown.bind(this), this.onpointerup = this.onpointerup.bind(this);
|
|
1824
|
-
}
|
|
1825
|
-
#t() {
|
|
1826
|
-
if (this.item.opts.disabled.current) return;
|
|
1827
|
-
let e = new CustomEvent("menuitemselect", {
|
|
1828
|
-
bubbles: !0,
|
|
1829
|
-
cancelable: !0
|
|
1830
|
-
});
|
|
1831
|
-
this.opts.onSelect.current(e), e.defaultPrevented ? this.item.content.parentMenu.root.isUsingKeyboard.current = !1 : this.opts.closeOnSelect.current && this.item.content.parentMenu.root.opts.onClose();
|
|
1832
|
-
}
|
|
1833
|
-
onkeydown(e) {
|
|
1834
|
-
let t = this.item.content.search !== "";
|
|
1835
|
-
if (!(this.item.opts.disabled.current || t && e.key === " ") && Ut.includes(e.key)) {
|
|
1836
|
-
if (!P(e.currentTarget)) return;
|
|
1837
|
-
e.currentTarget.click(), e.preventDefault();
|
|
1838
|
-
}
|
|
1839
|
-
}
|
|
1840
|
-
onclick(e) {
|
|
1841
|
-
this.item.opts.disabled.current || this.#t();
|
|
1842
|
-
}
|
|
1843
|
-
onpointerup(e) {
|
|
1844
|
-
if (!e.defaultPrevented && !this.#e) {
|
|
1845
|
-
if (!P(e.currentTarget)) return;
|
|
1846
|
-
e.currentTarget?.click();
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1849
|
-
onpointerdown(e) {
|
|
1850
|
-
this.#e = !0;
|
|
1851
|
-
}
|
|
1852
|
-
#n = t.derived(() => je(this.item.props, {
|
|
1853
|
-
onclick: this.onclick,
|
|
1854
|
-
onpointerdown: this.onpointerdown,
|
|
1855
|
-
onpointerup: this.onpointerup,
|
|
1856
|
-
onkeydown: this.onkeydown
|
|
1857
|
-
}));
|
|
1858
|
-
get props() {
|
|
1859
|
-
return t.get(this.#n);
|
|
1860
|
-
}
|
|
1861
|
-
set props(e) {
|
|
1862
|
-
t.set(this.#n, e);
|
|
1863
|
-
}
|
|
1864
|
-
}, lr = class e {
|
|
1865
|
-
static create(t) {
|
|
1866
|
-
return qn.set(new e(t, Wn.get()));
|
|
1867
|
-
}
|
|
1868
|
-
opts;
|
|
1869
|
-
root;
|
|
1870
|
-
attachment;
|
|
1871
|
-
#e = t.state(void 0);
|
|
1872
|
-
get groupHeadingId() {
|
|
1873
|
-
return t.get(this.#e);
|
|
1874
|
-
}
|
|
1875
|
-
set groupHeadingId(e) {
|
|
1876
|
-
t.set(this.#e, e, !0);
|
|
1877
|
-
}
|
|
1878
|
-
constructor(e, t) {
|
|
1879
|
-
this.opts = e, this.root = t, this.attachment = N(this.opts.ref);
|
|
1880
|
-
}
|
|
1881
|
-
#t = t.derived(() => ({
|
|
1882
|
-
id: this.opts.id.current,
|
|
1883
|
-
role: "group",
|
|
1884
|
-
"aria-labelledby": this.groupHeadingId,
|
|
1885
|
-
[this.root.getBitsAttr("group")]: "",
|
|
1886
|
-
...this.attachment
|
|
1887
|
-
}));
|
|
1888
|
-
get props() {
|
|
1889
|
-
return t.get(this.#t);
|
|
1890
|
-
}
|
|
1891
|
-
set props(e) {
|
|
1892
|
-
t.set(this.#t, e);
|
|
1893
|
-
}
|
|
1894
|
-
}, ur = class e {
|
|
1895
|
-
static create(t) {
|
|
1896
|
-
return new e(t, Wn.get());
|
|
1897
|
-
}
|
|
1898
|
-
opts;
|
|
1899
|
-
root;
|
|
1900
|
-
attachment;
|
|
1901
|
-
constructor(e, t) {
|
|
1902
|
-
this.opts = e, this.root = t, this.attachment = N(this.opts.ref);
|
|
1903
|
-
}
|
|
1904
|
-
#e = t.derived(() => ({
|
|
1905
|
-
id: this.opts.id.current,
|
|
1906
|
-
role: "group",
|
|
1907
|
-
[this.root.getBitsAttr("separator")]: "",
|
|
1908
|
-
...this.attachment
|
|
1909
|
-
}));
|
|
1910
|
-
get props() {
|
|
1911
|
-
return t.get(this.#e);
|
|
1912
|
-
}
|
|
1913
|
-
set props(e) {
|
|
1914
|
-
t.set(this.#e, e);
|
|
1915
|
-
}
|
|
1916
|
-
}, dr = class e {
|
|
1917
|
-
static create(t) {
|
|
1918
|
-
return new e(t, Gn.get());
|
|
1919
|
-
}
|
|
1920
|
-
opts;
|
|
1921
|
-
parentMenu;
|
|
1922
|
-
attachment;
|
|
1923
|
-
constructor(e, t) {
|
|
1924
|
-
this.opts = e, this.parentMenu = t, this.attachment = N(this.opts.ref, (e) => this.parentMenu.triggerNode = e);
|
|
1925
|
-
}
|
|
1926
|
-
onclick = (e) => {
|
|
1927
|
-
this.opts.disabled.current || e.detail !== 0 || (this.parentMenu.toggleOpen(), e.preventDefault());
|
|
1928
|
-
};
|
|
1929
|
-
onpointerdown = (e) => {
|
|
1930
|
-
if (!this.opts.disabled.current) {
|
|
1931
|
-
if (e.pointerType === "touch") return e.preventDefault();
|
|
1932
|
-
e.button === 0 && e.ctrlKey === !1 && (this.parentMenu.toggleOpen(), this.parentMenu.opts.open.current || e.preventDefault());
|
|
1933
|
-
}
|
|
1934
|
-
};
|
|
1935
|
-
onpointerup = (e) => {
|
|
1936
|
-
this.opts.disabled.current || e.pointerType === "touch" && (e.preventDefault(), this.parentMenu.toggleOpen());
|
|
1937
|
-
};
|
|
1938
|
-
onkeydown = (e) => {
|
|
1939
|
-
this.opts.disabled.current || (e.key === " " || e.key === "Enter" ? (this.parentMenu.toggleOpen(), e.preventDefault()) : e.key === "ArrowDown" && (this.parentMenu.onOpen(), e.preventDefault()));
|
|
1940
|
-
};
|
|
1941
|
-
#e = t.derived(() => {
|
|
1942
|
-
if (this.parentMenu.opts.open.current && this.parentMenu.contentId.current) return this.parentMenu.contentId.current;
|
|
1943
|
-
});
|
|
1944
|
-
#t = t.derived(() => ({
|
|
1945
|
-
id: this.opts.id.current,
|
|
1946
|
-
disabled: this.opts.disabled.current,
|
|
1947
|
-
"aria-haspopup": "menu",
|
|
1948
|
-
"aria-expanded": tt(this.parentMenu.opts.open.current),
|
|
1949
|
-
"aria-controls": t.get(this.#e),
|
|
1950
|
-
"data-disabled": nt(this.opts.disabled.current),
|
|
1951
|
-
"data-state": it(this.parentMenu.opts.open.current),
|
|
1952
|
-
[this.parentMenu.root.getBitsAttr("trigger")]: "",
|
|
1953
|
-
onclick: this.onclick,
|
|
1954
|
-
onpointerdown: this.onpointerdown,
|
|
1955
|
-
onpointerup: this.onpointerup,
|
|
1956
|
-
onkeydown: this.onkeydown,
|
|
1957
|
-
...this.attachment
|
|
1958
|
-
}));
|
|
1959
|
-
get props() {
|
|
1960
|
-
return t.get(this.#t);
|
|
1961
|
-
}
|
|
1962
|
-
set props(e) {
|
|
1963
|
-
t.set(this.#t, e);
|
|
1964
|
-
}
|
|
1965
|
-
}, fr = class {
|
|
1966
|
-
static create(e) {
|
|
1967
|
-
let t = Gn.get();
|
|
1968
|
-
return Gn.set(new ar(e, t.root, t));
|
|
1969
|
-
}
|
|
1970
|
-
};
|
|
1971
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/dismissible-layer/use-dismissable-layer.svelte.js
|
|
1972
|
-
globalThis.bitsDismissableLayers ??= /* @__PURE__ */ new Map();
|
|
1973
|
-
var pr = class e {
|
|
1974
|
-
static create(t) {
|
|
1975
|
-
return new e(t);
|
|
1976
|
-
}
|
|
1977
|
-
opts;
|
|
1978
|
-
#e;
|
|
1979
|
-
#t;
|
|
1980
|
-
#n = { pointerdown: !1 };
|
|
1981
|
-
#r = !1;
|
|
1982
|
-
#i = !1;
|
|
1983
|
-
#a = void 0;
|
|
1984
|
-
#o;
|
|
1985
|
-
#s = F;
|
|
1986
|
-
constructor(e) {
|
|
1987
|
-
this.opts = e, this.#t = e.interactOutsideBehavior, this.#e = e.onInteractOutside, this.#o = e.onFocusOutside, t.user_effect(() => {
|
|
1988
|
-
this.#a = Vt(this.opts.ref.current);
|
|
1989
|
-
});
|
|
1990
|
-
let n = F, r = null, i = !1, a = () => {
|
|
1991
|
-
r != null && (clearTimeout(r), r = null);
|
|
1992
|
-
}, o = () => {
|
|
1993
|
-
a(), this.#g(), globalThis.bitsDismissableLayers.delete(this), this.#d.destroy(), n();
|
|
1994
|
-
};
|
|
1995
|
-
A([() => this.opts.enabled.current, () => this.opts.ref.current], () => {
|
|
1996
|
-
if (this.opts.enabled.current && this.opts.ref.current) return a(), r = Ve(1, () => {
|
|
1997
|
-
r = null, !i && this.opts.ref.current && (globalThis.bitsDismissableLayers.set(this, this.#t), n(), n = this.#l());
|
|
1998
|
-
}), o;
|
|
1999
|
-
}), j(() => {
|
|
2000
|
-
i = !0, a(), this.#g.destroy(), globalThis.bitsDismissableLayers.delete(this), this.#d.destroy(), this.#s(), n();
|
|
2001
|
-
});
|
|
2002
|
-
}
|
|
2003
|
-
#c = (e) => {
|
|
2004
|
-
e.defaultPrevented || this.opts.ref.current && M(() => {
|
|
2005
|
-
this.opts.ref.current && !this.#h(e.target) && e.target && !this.#i && this.#o.current?.(e);
|
|
2006
|
-
});
|
|
2007
|
-
};
|
|
2008
|
-
#l() {
|
|
2009
|
-
return O(c(this.#a, "pointerdown", O(this.#f, this.#m), { capture: !0 }), c(this.#a, "pointerdown", O(this.#p, this.#d)), c(this.#a, "focusin", this.#c));
|
|
2010
|
-
}
|
|
2011
|
-
#u = (e) => {
|
|
2012
|
-
let t = e;
|
|
2013
|
-
t.defaultPrevented && (t = _r(e)), this.#e.current(e);
|
|
2014
|
-
};
|
|
2015
|
-
#d = zt((e) => {
|
|
2016
|
-
if (!this.opts.ref.current) {
|
|
2017
|
-
this.#s();
|
|
2018
|
-
return;
|
|
2019
|
-
}
|
|
2020
|
-
let t = this.opts.isValidEvent.current(e, this.opts.ref.current) || gr(e, this.opts.ref.current);
|
|
2021
|
-
if (!this.#r || this.#_() || !t) {
|
|
2022
|
-
this.#s();
|
|
2023
|
-
return;
|
|
2024
|
-
}
|
|
2025
|
-
let n = e;
|
|
2026
|
-
n.defaultPrevented && (n = _r(n)), this.#t.current !== "close" && this.#t.current !== "defer-otherwise-close" ? this.#s() : e.pointerType === "touch" ? (this.#s(), this.#s = c(this.#a, "click", this.#u, { once: !0 })) : this.#e.current(n);
|
|
2027
|
-
}, 10);
|
|
2028
|
-
#f = (e) => {
|
|
2029
|
-
this.#n[e.type] = !0;
|
|
2030
|
-
};
|
|
2031
|
-
#p = (e) => {
|
|
2032
|
-
this.#n[e.type] = !1;
|
|
2033
|
-
};
|
|
2034
|
-
#m = () => {
|
|
2035
|
-
this.opts.ref.current && (this.#r = hr(this.opts.ref.current));
|
|
2036
|
-
};
|
|
2037
|
-
#h = (e) => this.opts.ref.current ? Bt(this.opts.ref.current, e) : !1;
|
|
2038
|
-
#g = zt(() => {
|
|
2039
|
-
for (let e in this.#n) this.#n[e] = !1;
|
|
2040
|
-
this.#r = !1;
|
|
2041
|
-
}, 20);
|
|
2042
|
-
#_() {
|
|
2043
|
-
return Object.values(this.#n).some(Boolean);
|
|
2044
|
-
}
|
|
2045
|
-
#v = () => {
|
|
2046
|
-
this.#i = !0;
|
|
2047
|
-
};
|
|
2048
|
-
#y = () => {
|
|
2049
|
-
this.#i = !1;
|
|
2050
|
-
};
|
|
2051
|
-
props = {
|
|
2052
|
-
onfocuscapture: this.#v,
|
|
2053
|
-
onblurcapture: this.#y
|
|
2054
|
-
};
|
|
2055
|
-
};
|
|
2056
|
-
function mr(e = [...globalThis.bitsDismissableLayers]) {
|
|
2057
|
-
return e.findLast(([e, { current: t }]) => t === "close" || t === "ignore");
|
|
2058
|
-
}
|
|
2059
|
-
function hr(e) {
|
|
2060
|
-
let t = [...globalThis.bitsDismissableLayers], n = mr(t);
|
|
2061
|
-
if (n) return n[0].opts.ref.current === e;
|
|
2062
|
-
let [r] = t[0];
|
|
2063
|
-
return r.opts.ref.current === e;
|
|
2064
|
-
}
|
|
2065
|
-
function gr(e, t) {
|
|
2066
|
-
let n = e.target;
|
|
2067
|
-
if (!jt(n)) return !1;
|
|
2068
|
-
let r = !!n.closest(`[${Hn}]`), i = !!t.closest(`[${Un}]`);
|
|
2069
|
-
return "button" in e && e.button > 0 && !r ? !1 : "button" in e && e.button === 0 && r && i ? !0 : r && i ? !1 : Vt(n).documentElement.contains(n) && !Bt(t, n) && Ht(e, t);
|
|
2070
|
-
}
|
|
2071
|
-
function _r(e) {
|
|
2072
|
-
let t = e.currentTarget, n = e.target, r;
|
|
2073
|
-
r = e instanceof PointerEvent ? new PointerEvent(e.type, e) : new PointerEvent("pointerdown", e);
|
|
2074
|
-
let i = !1;
|
|
2075
|
-
return new Proxy(r, { get: (r, a) => a === "currentTarget" ? t : a === "target" ? n : a === "preventDefault" ? () => {
|
|
2076
|
-
i = !0, typeof r.preventDefault == "function" && r.preventDefault();
|
|
2077
|
-
} : a === "defaultPrevented" ? i : a in r ? r[a] : e[a] });
|
|
2078
|
-
}
|
|
2079
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/dismissible-layer/dismissible-layer.svelte
|
|
2080
|
-
function vr(e, n) {
|
|
2081
|
-
t.push(n, !0);
|
|
2082
|
-
let r = t.prop(n, "interactOutsideBehavior", 3, "close"), i = t.prop(n, "onInteractOutside", 3, F), a = t.prop(n, "onFocusOutside", 3, F), o = t.prop(n, "isValidEvent", 3, () => !1), s = pr.create({
|
|
2083
|
-
id: v(() => n.id),
|
|
2084
|
-
interactOutsideBehavior: v(() => r()),
|
|
2085
|
-
onInteractOutside: v(() => i()),
|
|
2086
|
-
enabled: v(() => n.enabled),
|
|
2087
|
-
onFocusOutside: v(() => a()),
|
|
2088
|
-
isValidEvent: v(() => o()),
|
|
2089
|
-
ref: n.ref
|
|
2090
|
-
});
|
|
2091
|
-
var c = t.comment(), l = t.first_child(c);
|
|
2092
|
-
t.snippet(l, () => n.children ?? t.noop, () => ({ props: s.props })), t.append(e, c), t.pop();
|
|
2093
|
-
}
|
|
2094
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/escape-layer/use-escape-layer.svelte.js
|
|
2095
|
-
globalThis.bitsEscapeLayers ??= /* @__PURE__ */ new Map();
|
|
2096
|
-
var yr = class e {
|
|
2097
|
-
static create(t) {
|
|
2098
|
-
return new e(t);
|
|
2099
|
-
}
|
|
2100
|
-
opts;
|
|
2101
|
-
domContext;
|
|
2102
|
-
constructor(e) {
|
|
2103
|
-
this.opts = e, this.domContext = new et(this.opts.ref);
|
|
2104
|
-
let t = F;
|
|
2105
|
-
A(() => e.enabled.current, (n) => (n && (globalThis.bitsEscapeLayers.set(this, e.escapeKeydownBehavior), t = this.#e()), () => {
|
|
2106
|
-
t(), globalThis.bitsEscapeLayers.delete(this);
|
|
2107
|
-
}));
|
|
2108
|
-
}
|
|
2109
|
-
#e = () => c(this.domContext.getDocument(), "keydown", this.#t, { passive: !1 });
|
|
2110
|
-
#t = (e) => {
|
|
2111
|
-
if (e.key !== "Escape" || !br(this)) return;
|
|
2112
|
-
let t = new KeyboardEvent(e.type, e);
|
|
2113
|
-
e.preventDefault();
|
|
2114
|
-
let n = this.opts.escapeKeydownBehavior.current;
|
|
2115
|
-
(n === "close" || n === "defer-otherwise-close") && this.opts.onEscapeKeydown.current(t);
|
|
2116
|
-
};
|
|
2117
|
-
};
|
|
2118
|
-
function br(e) {
|
|
2119
|
-
let t = [...globalThis.bitsEscapeLayers], n = t.findLast(([e, { current: t }]) => t === "close" || t === "ignore");
|
|
2120
|
-
if (n) return n[0] === e;
|
|
2121
|
-
let [r] = t[0];
|
|
2122
|
-
return r === e;
|
|
2123
|
-
}
|
|
2124
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/escape-layer/escape-layer.svelte
|
|
2125
|
-
function xr(e, n) {
|
|
2126
|
-
t.push(n, !0);
|
|
2127
|
-
let r = t.prop(n, "escapeKeydownBehavior", 3, "close"), i = t.prop(n, "onEscapeKeydown", 3, F);
|
|
2128
|
-
yr.create({
|
|
2129
|
-
escapeKeydownBehavior: v(() => r()),
|
|
2130
|
-
onEscapeKeydown: v(() => i()),
|
|
2131
|
-
enabled: v(() => n.enabled),
|
|
2132
|
-
ref: n.ref
|
|
2133
|
-
});
|
|
2134
|
-
var a = t.comment(), o = t.first_child(a);
|
|
2135
|
-
t.snippet(o, () => n.children ?? t.noop), t.append(e, a), t.pop();
|
|
2136
|
-
}
|
|
2137
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope-manager.js
|
|
2138
|
-
var Sr = class e {
|
|
2139
|
-
static instance;
|
|
2140
|
-
#e = w([]);
|
|
2141
|
-
#t = /* @__PURE__ */ new WeakMap();
|
|
2142
|
-
#n = /* @__PURE__ */ new WeakMap();
|
|
2143
|
-
static getInstance() {
|
|
2144
|
-
return this.instance ||= new e(), this.instance;
|
|
2145
|
-
}
|
|
2146
|
-
register(e) {
|
|
2147
|
-
let t = this.getActive();
|
|
2148
|
-
t && t !== e && t.pause();
|
|
2149
|
-
let n = document.activeElement;
|
|
2150
|
-
n && n !== document.body && this.#n.set(e, n), this.#e.current = this.#e.current.filter((t) => t !== e), this.#e.current.unshift(e);
|
|
2151
|
-
}
|
|
2152
|
-
unregister(e) {
|
|
2153
|
-
this.#e.current = this.#e.current.filter((t) => t !== e);
|
|
2154
|
-
let t = this.getActive();
|
|
2155
|
-
t && t.resume();
|
|
2156
|
-
}
|
|
2157
|
-
getActive() {
|
|
2158
|
-
return this.#e.current[0];
|
|
2159
|
-
}
|
|
2160
|
-
setFocusMemory(e, t) {
|
|
2161
|
-
this.#t.set(e, t);
|
|
2162
|
-
}
|
|
2163
|
-
getFocusMemory(e) {
|
|
2164
|
-
return this.#t.get(e);
|
|
2165
|
-
}
|
|
2166
|
-
isActiveScope(e) {
|
|
2167
|
-
return this.getActive() === e;
|
|
2168
|
-
}
|
|
2169
|
-
setPreFocusMemory(e, t) {
|
|
2170
|
-
this.#n.set(e, t);
|
|
2171
|
-
}
|
|
2172
|
-
getPreFocusMemory(e) {
|
|
2173
|
-
return this.#n.get(e);
|
|
2174
|
-
}
|
|
2175
|
-
clearPreFocusMemory(e) {
|
|
2176
|
-
this.#n.delete(e);
|
|
2177
|
-
}
|
|
2178
|
-
}, Cr = class e {
|
|
2179
|
-
#e = !1;
|
|
2180
|
-
#t = null;
|
|
2181
|
-
#n = Sr.getInstance();
|
|
2182
|
-
#r = [];
|
|
2183
|
-
#i;
|
|
2184
|
-
constructor(e) {
|
|
2185
|
-
this.#i = e;
|
|
2186
|
-
}
|
|
2187
|
-
get paused() {
|
|
2188
|
-
return this.#e;
|
|
2189
|
-
}
|
|
2190
|
-
pause() {
|
|
2191
|
-
this.#e = !0;
|
|
2192
|
-
}
|
|
2193
|
-
resume() {
|
|
2194
|
-
this.#e = !1;
|
|
2195
|
-
}
|
|
2196
|
-
#a() {
|
|
2197
|
-
for (let e of this.#r) e();
|
|
2198
|
-
this.#r = [];
|
|
2199
|
-
}
|
|
2200
|
-
mount(e) {
|
|
2201
|
-
this.#t && this.unmount(), this.#t = e, this.#n.register(this), this.#c(), this.#o();
|
|
2202
|
-
}
|
|
2203
|
-
unmount() {
|
|
2204
|
-
this.#t &&= (this.#a(), this.#s(), this.#n.unregister(this), this.#n.clearPreFocusMemory(this), null);
|
|
2205
|
-
}
|
|
2206
|
-
#o() {
|
|
2207
|
-
if (!this.#t) return;
|
|
2208
|
-
let e = new CustomEvent("focusScope.onOpenAutoFocus", {
|
|
2209
|
-
bubbles: !1,
|
|
2210
|
-
cancelable: !0
|
|
2211
|
-
});
|
|
2212
|
-
this.#i.onOpenAutoFocus.current(e), e.defaultPrevented || requestAnimationFrame(() => {
|
|
2213
|
-
if (!this.#t) return;
|
|
2214
|
-
let e = this.#u();
|
|
2215
|
-
e ? (e.focus(), this.#n.setFocusMemory(this, e)) : this.#t.focus();
|
|
2216
|
-
});
|
|
2217
|
-
}
|
|
2218
|
-
#s() {
|
|
2219
|
-
let e = new CustomEvent("focusScope.onCloseAutoFocus", {
|
|
2220
|
-
bubbles: !1,
|
|
2221
|
-
cancelable: !0
|
|
2222
|
-
});
|
|
2223
|
-
if (this.#i.onCloseAutoFocus.current?.(e), !e.defaultPrevented) {
|
|
2224
|
-
let e = this.#n.getPreFocusMemory(this);
|
|
2225
|
-
if (e && document.contains(e)) try {
|
|
2226
|
-
e.focus();
|
|
2227
|
-
} catch {
|
|
2228
|
-
document.body.focus();
|
|
2229
|
-
}
|
|
2230
|
-
}
|
|
2231
|
-
}
|
|
2232
|
-
#c() {
|
|
2233
|
-
if (!this.#t || !this.#i.trap.current) return;
|
|
2234
|
-
let e = this.#t, t = e.ownerDocument;
|
|
2235
|
-
this.#r.push(c(t, "focusin", (t) => {
|
|
2236
|
-
if (this.#e || !this.#n.isActiveScope(this)) return;
|
|
2237
|
-
let n = t.target;
|
|
2238
|
-
if (n) {
|
|
2239
|
-
if (e.contains(n)) this.#n.setFocusMemory(this, n);
|
|
2240
|
-
else {
|
|
2241
|
-
let n = this.#n.getFocusMemory(this);
|
|
2242
|
-
if (n && e.contains(n) && kn(n)) t.preventDefault(), n.focus();
|
|
2243
|
-
else {
|
|
2244
|
-
let t = this.#u(), n = this.#d()[0];
|
|
2245
|
-
(t || n || e).focus();
|
|
2246
|
-
}
|
|
2247
|
-
}
|
|
2248
|
-
}
|
|
2249
|
-
}, { capture: !0 }), c(e, "keydown", (e) => {
|
|
2250
|
-
if (!this.#i.loop || this.#e || e.key !== "Tab" || !this.#n.isActiveScope(this)) return;
|
|
2251
|
-
let n = this.#l();
|
|
2252
|
-
if (n.length === 0) return;
|
|
2253
|
-
let r = n[0], i = n[n.length - 1];
|
|
2254
|
-
!e.shiftKey && t.activeElement === i ? (e.preventDefault(), r.focus()) : e.shiftKey && t.activeElement === r && (e.preventDefault(), i.focus());
|
|
2255
|
-
}));
|
|
2256
|
-
let n = new MutationObserver(() => {
|
|
2257
|
-
let t = this.#n.getFocusMemory(this);
|
|
2258
|
-
if (t && !e.contains(t)) {
|
|
2259
|
-
let t = this.#u(), n = this.#d()[0], r = t || n;
|
|
2260
|
-
r ? (r.focus(), this.#n.setFocusMemory(this, r)) : e.focus();
|
|
2261
|
-
}
|
|
2262
|
-
});
|
|
2263
|
-
n.observe(e, {
|
|
2264
|
-
childList: !0,
|
|
2265
|
-
subtree: !0
|
|
2266
|
-
}), this.#r.push(() => n.disconnect());
|
|
2267
|
-
}
|
|
2268
|
-
#l() {
|
|
2269
|
-
return this.#t ? Tn(this.#t, {
|
|
2270
|
-
includeContainer: !1,
|
|
2271
|
-
getShadowRoot: !0
|
|
2272
|
-
}) : [];
|
|
2273
|
-
}
|
|
2274
|
-
#u() {
|
|
2275
|
-
return this.#l()[0] || null;
|
|
2276
|
-
}
|
|
2277
|
-
#d() {
|
|
2278
|
-
return this.#t ? En(this.#t, {
|
|
2279
|
-
includeContainer: !1,
|
|
2280
|
-
getShadowRoot: !0
|
|
2281
|
-
}) : [];
|
|
2282
|
-
}
|
|
2283
|
-
static use(t) {
|
|
2284
|
-
let n = null;
|
|
2285
|
-
return A([() => t.ref.current, () => t.enabled.current], ([r, i]) => {
|
|
2286
|
-
r && i ? (n ||= new e(t), n.mount(r)) : n &&= (n.unmount(), null);
|
|
2287
|
-
}), j(() => {
|
|
2288
|
-
n?.unmount();
|
|
2289
|
-
}), { get props() {
|
|
2290
|
-
return { tabindex: -1 };
|
|
2291
|
-
} };
|
|
2292
|
-
}
|
|
2293
|
-
};
|
|
2294
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope.svelte
|
|
2295
|
-
function wr(e, n) {
|
|
2296
|
-
t.push(n, !0);
|
|
2297
|
-
let r = t.prop(n, "enabled", 3, !1), i = t.prop(n, "trapFocus", 3, !1), a = t.prop(n, "loop", 3, !1), o = t.prop(n, "onCloseAutoFocus", 3, F), s = t.prop(n, "onOpenAutoFocus", 3, F), c = Cr.use({
|
|
2298
|
-
enabled: v(() => r()),
|
|
2299
|
-
trap: v(() => i()),
|
|
2300
|
-
loop: a(),
|
|
2301
|
-
onCloseAutoFocus: v(() => o()),
|
|
2302
|
-
onOpenAutoFocus: v(() => s()),
|
|
2303
|
-
ref: n.ref
|
|
2304
|
-
});
|
|
2305
|
-
var l = t.comment(), u = t.first_child(l);
|
|
2306
|
-
t.snippet(u, () => n.focusScope ?? t.noop, () => ({ props: c.props })), t.append(e, l), t.pop();
|
|
2307
|
-
}
|
|
2308
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/text-selection-layer/use-text-selection-layer.svelte.js
|
|
2309
|
-
var Tr = () => {};
|
|
2310
|
-
globalThis.bitsTextSelectionLayers ??= /* @__PURE__ */ new Map();
|
|
2311
|
-
var Er = class e {
|
|
2312
|
-
static create(t) {
|
|
2313
|
-
return new e(t);
|
|
2314
|
-
}
|
|
2315
|
-
opts;
|
|
2316
|
-
domContext;
|
|
2317
|
-
#e = F;
|
|
2318
|
-
#t = !1;
|
|
2319
|
-
#n = Tr;
|
|
2320
|
-
#r = Tr;
|
|
2321
|
-
constructor(e) {
|
|
2322
|
-
this.opts = e, this.domContext = new et(e.ref);
|
|
2323
|
-
let t = F;
|
|
2324
|
-
A(() => [
|
|
2325
|
-
this.opts.enabled.current,
|
|
2326
|
-
this.opts.onPointerDown.current,
|
|
2327
|
-
this.opts.onPointerUp.current
|
|
2328
|
-
], ([e, n, r]) => (this.#t = e, this.#n = n, this.#r = r, e && (globalThis.bitsTextSelectionLayers.set(this, this.opts.enabled), t(), t = this.#i()), () => {
|
|
2329
|
-
this.#t = !1, t(), this.#s(), globalThis.bitsTextSelectionLayers.delete(this);
|
|
2330
|
-
}));
|
|
2331
|
-
}
|
|
2332
|
-
#i() {
|
|
2333
|
-
return O(c(this.domContext.getDocument(), "pointerdown", this.#o), c(this.domContext.getDocument(), "pointerup", ee(this.#s, this.#a)));
|
|
2334
|
-
}
|
|
2335
|
-
#a = (e) => {
|
|
2336
|
-
this.#r(e);
|
|
2337
|
-
};
|
|
2338
|
-
#o = (e) => {
|
|
2339
|
-
if (!this.#t) return;
|
|
2340
|
-
let t = this.opts.ref.current, n = e.target;
|
|
2341
|
-
P(t) && P(n) && Ar(this) && Xe(t, n) && (this.#n(e), e.defaultPrevented || (this.#e = Or(t, this.domContext.getDocument().body)));
|
|
2342
|
-
};
|
|
2343
|
-
#s = () => {
|
|
2344
|
-
this.#e(), this.#e = F;
|
|
2345
|
-
};
|
|
2346
|
-
}, Dr = (e) => e.style.userSelect || e.style.webkitUserSelect;
|
|
2347
|
-
function Or(e, t) {
|
|
2348
|
-
let n = Dr(t), r = Dr(e);
|
|
2349
|
-
return kr(t, "none"), kr(e, "text"), () => {
|
|
2350
|
-
kr(t, n), kr(e, r);
|
|
2351
|
-
};
|
|
2352
|
-
}
|
|
2353
|
-
function kr(e, t) {
|
|
2354
|
-
e.style.userSelect = t, e.style.webkitUserSelect = t;
|
|
2355
|
-
}
|
|
2356
|
-
function Ar(e) {
|
|
2357
|
-
let t = [...globalThis.bitsTextSelectionLayers];
|
|
2358
|
-
if (!t.length) return !1;
|
|
2359
|
-
let n = t.at(-1);
|
|
2360
|
-
return n ? n[0] === e : !1;
|
|
2361
|
-
}
|
|
2362
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/text-selection-layer/text-selection-layer.svelte
|
|
2363
|
-
function jr(e, n) {
|
|
2364
|
-
t.push(n, !0);
|
|
2365
|
-
let r = t.prop(n, "preventOverflowTextSelection", 3, !0), i = t.prop(n, "onPointerDown", 3, F), a = t.prop(n, "onPointerUp", 3, F);
|
|
2366
|
-
Er.create({
|
|
2367
|
-
id: v(() => n.id),
|
|
2368
|
-
onPointerDown: v(() => i()),
|
|
2369
|
-
onPointerUp: v(() => a()),
|
|
2370
|
-
enabled: v(() => n.enabled && r()),
|
|
2371
|
-
ref: n.ref
|
|
2372
|
-
});
|
|
2373
|
-
var o = t.comment(), s = t.first_child(o);
|
|
2374
|
-
t.snippet(s, () => n.children ?? t.noop), t.append(e, o), t.pop();
|
|
2375
|
-
}
|
|
2376
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/use-id.js
|
|
2377
|
-
globalThis.bitsIdCounter ??= { current: 0 };
|
|
2378
|
-
function Mr(e = "bits") {
|
|
2379
|
-
return globalThis.bitsIdCounter.current++, `${e}-${globalThis.bitsIdCounter.current}`;
|
|
2380
|
-
}
|
|
2381
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/shared-state.svelte.js
|
|
2382
|
-
var Nr = class {
|
|
2383
|
-
#e;
|
|
2384
|
-
#t = 0;
|
|
2385
|
-
#n = t.state();
|
|
2386
|
-
#r;
|
|
2387
|
-
constructor(e) {
|
|
2388
|
-
this.#e = e;
|
|
2389
|
-
}
|
|
2390
|
-
#i() {
|
|
2391
|
-
--this.#t, this.#r && this.#t <= 0 && (this.#r(), t.set(this.#n, void 0), this.#r = void 0);
|
|
2392
|
-
}
|
|
2393
|
-
get(...e) {
|
|
2394
|
-
return this.#t += 1, t.get(this.#n) === void 0 && (this.#r = t.effect_root(() => {
|
|
2395
|
-
t.set(this.#n, this.#e(...e), !0);
|
|
2396
|
-
})), t.user_effect(() => () => {
|
|
2397
|
-
this.#i();
|
|
2398
|
-
}), t.get(this.#n);
|
|
2399
|
-
}
|
|
2400
|
-
}, Pr = new l(), Fr = t.state(null), Ir = null, Lr = null, Rr = !1, zr = v(() => {
|
|
2401
|
-
for (let e of Pr.values()) if (e) return !0;
|
|
2402
|
-
return !1;
|
|
2403
|
-
}), Br = null, Vr = new Nr(() => {
|
|
2404
|
-
function e() {
|
|
2405
|
-
document.body.setAttribute("style", t.get(Fr) ?? ""), document.body.style.removeProperty("--scrollbar-width"), Ot && Ir?.(), t.set(Fr, null);
|
|
2406
|
-
}
|
|
2407
|
-
function n() {
|
|
2408
|
-
Lr !== null && (window.clearTimeout(Lr), Lr = null);
|
|
2409
|
-
}
|
|
2410
|
-
function r(e, t) {
|
|
2411
|
-
n(), Rr = !0, Br = Date.now();
|
|
2412
|
-
let r = Br, i = () => {
|
|
2413
|
-
Lr = null, Br === r && (Ur(Pr) ? Rr = !1 : (Rr = !1, t()));
|
|
2414
|
-
}, a = e === null ? 24 : e;
|
|
2415
|
-
Lr = window.setTimeout(i, a);
|
|
2416
|
-
}
|
|
2417
|
-
function i() {
|
|
2418
|
-
t.get(Fr) === null && Pr.size === 0 && !Rr && t.set(Fr, document.body.getAttribute("style"), !0);
|
|
2419
|
-
}
|
|
2420
|
-
return A(() => zr.current, () => {
|
|
2421
|
-
if (!zr.current) return;
|
|
2422
|
-
i(), Rr = !1;
|
|
2423
|
-
let e = getComputedStyle(document.documentElement), t = getComputedStyle(document.body), n = e.scrollbarGutter?.includes("stable") || t.scrollbarGutter?.includes("stable"), r = window.innerWidth - document.documentElement.clientWidth, a = {
|
|
2424
|
-
padding: Number.parseInt(t.paddingRight ?? "0", 10) + r,
|
|
2425
|
-
margin: Number.parseInt(t.marginRight ?? "0", 10)
|
|
2426
|
-
};
|
|
2427
|
-
r > 0 && !n && (document.body.style.paddingRight = `${a.padding}px`, document.body.style.marginRight = `${a.margin}px`, document.body.style.setProperty("--scrollbar-width", `${r}px`)), document.body.style.overflow = "hidden", Ot && (Ir = c(document, "touchmove", (e) => {
|
|
2428
|
-
e.target === document.documentElement && (e.touches.length > 1 || e.preventDefault());
|
|
2429
|
-
}, { passive: !1 })), M(() => {
|
|
2430
|
-
document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden";
|
|
2431
|
-
});
|
|
2432
|
-
}), j(() => () => {
|
|
2433
|
-
Ir?.();
|
|
2434
|
-
}), {
|
|
2435
|
-
get lockMap() {
|
|
2436
|
-
return Pr;
|
|
2437
|
-
},
|
|
2438
|
-
resetBodyStyle: e,
|
|
2439
|
-
scheduleCleanupIfNoNewLocks: r,
|
|
2440
|
-
cancelPendingCleanup: n,
|
|
2441
|
-
ensureInitialStyleCaptured: i
|
|
2442
|
-
};
|
|
2443
|
-
}), Hr = class {
|
|
2444
|
-
#e = Mr();
|
|
2445
|
-
#t;
|
|
2446
|
-
#n = () => null;
|
|
2447
|
-
#r;
|
|
2448
|
-
locked;
|
|
2449
|
-
constructor(e, t = () => null) {
|
|
2450
|
-
this.#t = e, this.#n = t, this.#r = Vr.get(), this.#r && (this.#r.cancelPendingCleanup(), this.#r.ensureInitialStyleCaptured(), this.#r.lockMap.set(this.#e, this.#t ?? !1), this.locked = v(() => this.#r.lockMap.get(this.#e) ?? !1, (e) => this.#r.lockMap.set(this.#e, e)), j(() => {
|
|
2451
|
-
if (this.#r.lockMap.delete(this.#e), Ur(this.#r.lockMap)) return;
|
|
2452
|
-
let e = this.#n();
|
|
2453
|
-
this.#r.scheduleCleanupIfNoNewLocks(e, () => {
|
|
2454
|
-
this.#r.resetBodyStyle();
|
|
2455
|
-
});
|
|
2456
|
-
}));
|
|
2457
|
-
}
|
|
2458
|
-
};
|
|
2459
|
-
function Ur(e) {
|
|
2460
|
-
for (let [t, n] of e) if (n) return !0;
|
|
2461
|
-
return !1;
|
|
2462
|
-
}
|
|
2463
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/scroll-lock/scroll-lock.svelte
|
|
2464
|
-
function Wr(e, n) {
|
|
2465
|
-
t.push(n, !0);
|
|
2466
|
-
let r = t.prop(n, "preventScroll", 3, !0), i = t.prop(n, "restoreScrollDelay", 3, null);
|
|
2467
|
-
r() && new Hr(r(), () => i()), t.pop();
|
|
2468
|
-
}
|
|
2469
|
-
// ../node_modules/.bun/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
2470
|
-
var Gr = [
|
|
2471
|
-
"top",
|
|
2472
|
-
"right",
|
|
2473
|
-
"bottom",
|
|
2474
|
-
"left"
|
|
2475
|
-
], R = Math.min, z = Math.max, Kr = Math.round, qr = Math.floor, B = (e) => ({
|
|
2476
|
-
x: e,
|
|
2477
|
-
y: e
|
|
2478
|
-
}), Jr = {
|
|
2479
|
-
left: "right",
|
|
2480
|
-
right: "left",
|
|
2481
|
-
bottom: "top",
|
|
2482
|
-
top: "bottom"
|
|
2483
|
-
};
|
|
2484
|
-
function Yr(e, t, n) {
|
|
2485
|
-
return z(e, R(t, n));
|
|
2486
|
-
}
|
|
2487
|
-
function V(e, t) {
|
|
2488
|
-
return typeof e == "function" ? e(t) : e;
|
|
2489
|
-
}
|
|
2490
|
-
function H(e) {
|
|
2491
|
-
return e.split("-")[0];
|
|
2492
|
-
}
|
|
2493
|
-
function U(e) {
|
|
2494
|
-
return e.split("-")[1];
|
|
2495
|
-
}
|
|
2496
|
-
function Xr(e) {
|
|
2497
|
-
return e === "x" ? "y" : "x";
|
|
2498
|
-
}
|
|
2499
|
-
function Zr(e) {
|
|
2500
|
-
return e === "y" ? "height" : "width";
|
|
2501
|
-
}
|
|
2502
|
-
function W(e) {
|
|
2503
|
-
let t = e[0];
|
|
2504
|
-
return t === "t" || t === "b" ? "y" : "x";
|
|
2505
|
-
}
|
|
2506
|
-
function Qr(e) {
|
|
2507
|
-
return Xr(W(e));
|
|
2508
|
-
}
|
|
2509
|
-
function $r(e, t, n) {
|
|
2510
|
-
n === void 0 && (n = !1);
|
|
2511
|
-
let r = U(e), i = Qr(e), a = Zr(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
2512
|
-
return t.reference[a] > t.floating[a] && (o = ci(o)), [o, ci(o)];
|
|
2513
|
-
}
|
|
2514
|
-
function ei(e) {
|
|
2515
|
-
let t = ci(e);
|
|
2516
|
-
return [
|
|
2517
|
-
ti(e),
|
|
2518
|
-
t,
|
|
2519
|
-
ti(t)
|
|
2520
|
-
];
|
|
2521
|
-
}
|
|
2522
|
-
function ti(e) {
|
|
2523
|
-
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
2524
|
-
}
|
|
2525
|
-
var ni = ["left", "right"], ri = ["right", "left"], ii = ["top", "bottom"], ai = ["bottom", "top"];
|
|
2526
|
-
function oi(e, t, n) {
|
|
2527
|
-
switch (e) {
|
|
2528
|
-
case "top":
|
|
2529
|
-
case "bottom": return n ? t ? ri : ni : t ? ni : ri;
|
|
2530
|
-
case "left":
|
|
2531
|
-
case "right": return t ? ii : ai;
|
|
2532
|
-
default: return [];
|
|
2533
|
-
}
|
|
2534
|
-
}
|
|
2535
|
-
function si(e, t, n, r) {
|
|
2536
|
-
let i = U(e), a = oi(H(e), n === "start", r);
|
|
2537
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(ti)))), a;
|
|
2538
|
-
}
|
|
2539
|
-
function ci(e) {
|
|
2540
|
-
let t = H(e);
|
|
2541
|
-
return Jr[t] + e.slice(t.length);
|
|
2542
|
-
}
|
|
2543
|
-
function li(e) {
|
|
2544
|
-
return {
|
|
2545
|
-
top: 0,
|
|
2546
|
-
right: 0,
|
|
2547
|
-
bottom: 0,
|
|
2548
|
-
left: 0,
|
|
2549
|
-
...e
|
|
2550
|
-
};
|
|
2551
|
-
}
|
|
2552
|
-
function ui(e) {
|
|
2553
|
-
return typeof e == "number" ? {
|
|
2554
|
-
top: e,
|
|
2555
|
-
right: e,
|
|
2556
|
-
bottom: e,
|
|
2557
|
-
left: e
|
|
2558
|
-
} : li(e);
|
|
2559
|
-
}
|
|
2560
|
-
function di(e) {
|
|
2561
|
-
let { x: t, y: n, width: r, height: i } = e;
|
|
2562
|
-
return {
|
|
2563
|
-
width: r,
|
|
2564
|
-
height: i,
|
|
2565
|
-
top: n,
|
|
2566
|
-
left: t,
|
|
2567
|
-
right: t + r,
|
|
2568
|
-
bottom: n + i,
|
|
2569
|
-
x: t,
|
|
2570
|
-
y: n
|
|
2571
|
-
};
|
|
2572
|
-
}
|
|
2573
|
-
// ../node_modules/.bun/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
2574
|
-
function fi(e, t, n) {
|
|
2575
|
-
let { reference: r, floating: i } = e, a = W(t), o = Qr(t), s = Zr(o), c = H(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
2576
|
-
switch (c) {
|
|
2577
|
-
case "top":
|
|
2578
|
-
p = {
|
|
2579
|
-
x: u,
|
|
2580
|
-
y: r.y - i.height
|
|
2581
|
-
};
|
|
2582
|
-
break;
|
|
2583
|
-
case "bottom":
|
|
2584
|
-
p = {
|
|
2585
|
-
x: u,
|
|
2586
|
-
y: r.y + r.height
|
|
2587
|
-
};
|
|
2588
|
-
break;
|
|
2589
|
-
case "right":
|
|
2590
|
-
p = {
|
|
2591
|
-
x: r.x + r.width,
|
|
2592
|
-
y: d
|
|
2593
|
-
};
|
|
2594
|
-
break;
|
|
2595
|
-
case "left":
|
|
2596
|
-
p = {
|
|
2597
|
-
x: r.x - i.width,
|
|
2598
|
-
y: d
|
|
2599
|
-
};
|
|
2600
|
-
break;
|
|
2601
|
-
default: p = {
|
|
2602
|
-
x: r.x,
|
|
2603
|
-
y: r.y
|
|
2604
|
-
};
|
|
2605
|
-
}
|
|
2606
|
-
switch (U(t)) {
|
|
2607
|
-
case "start":
|
|
2608
|
-
p[o] -= f * (n && l ? -1 : 1);
|
|
2609
|
-
break;
|
|
2610
|
-
case "end": p[o] += f * (n && l ? -1 : 1);
|
|
2611
|
-
}
|
|
2612
|
-
return p;
|
|
2613
|
-
}
|
|
2614
|
-
async function pi(e, t) {
|
|
2615
|
-
t === void 0 && (t = {});
|
|
2616
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = V(t, e), p = ui(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = di(await i.getClippingRect({
|
|
2617
|
-
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
2618
|
-
boundary: c,
|
|
2619
|
-
rootBoundary: l,
|
|
2620
|
-
strategy: s
|
|
2621
|
-
})), g = u === "floating" ? {
|
|
2622
|
-
x: n,
|
|
2623
|
-
y: r,
|
|
2624
|
-
width: a.floating.width,
|
|
2625
|
-
height: a.floating.height
|
|
2626
|
-
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
2627
|
-
x: 1,
|
|
2628
|
-
y: 1
|
|
2629
|
-
}, y = di(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
2630
|
-
elements: o,
|
|
2631
|
-
rect: g,
|
|
2632
|
-
offsetParent: _,
|
|
2633
|
-
strategy: s
|
|
2634
|
-
}) : g);
|
|
2635
|
-
return {
|
|
2636
|
-
top: (h.top - y.top + p.top) / v.y,
|
|
2637
|
-
bottom: (y.bottom - h.bottom + p.bottom) / v.y,
|
|
2638
|
-
left: (h.left - y.left + p.left) / v.x,
|
|
2639
|
-
right: (y.right - h.right + p.right) / v.x
|
|
2640
|
-
};
|
|
2641
|
-
}
|
|
2642
|
-
var mi = 50, hi = async (e, t, n) => {
|
|
2643
|
-
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
2644
|
-
...o,
|
|
2645
|
-
detectOverflow: pi
|
|
2646
|
-
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
2647
|
-
reference: e,
|
|
2648
|
-
floating: t,
|
|
2649
|
-
strategy: i
|
|
2650
|
-
}), { x: u, y: d } = fi(l, r, c), f = r, p = 0, m = {};
|
|
2651
|
-
for (let n = 0; n < a.length; n++) {
|
|
2652
|
-
let h = a[n];
|
|
2653
|
-
if (!h) continue;
|
|
2654
|
-
let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
|
|
2655
|
-
x: u,
|
|
2656
|
-
y: d,
|
|
2657
|
-
initialPlacement: r,
|
|
2658
|
-
placement: f,
|
|
2659
|
-
strategy: i,
|
|
2660
|
-
middlewareData: m,
|
|
2661
|
-
rects: l,
|
|
2662
|
-
platform: s,
|
|
2663
|
-
elements: {
|
|
2664
|
-
reference: e,
|
|
2665
|
-
floating: t
|
|
2666
|
-
}
|
|
2667
|
-
});
|
|
2668
|
-
u = v ?? u, d = y ?? d, m[g] = {
|
|
2669
|
-
...m[g],
|
|
2670
|
-
...b
|
|
2671
|
-
}, x && p < mi && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
2672
|
-
reference: e,
|
|
2673
|
-
floating: t,
|
|
2674
|
-
strategy: i
|
|
2675
|
-
}) : x.rects), {x: u, y: d} = fi(l, f, c)), n = -1);
|
|
2676
|
-
}
|
|
2677
|
-
return {
|
|
2678
|
-
x: u,
|
|
2679
|
-
y: d,
|
|
2680
|
-
placement: f,
|
|
2681
|
-
strategy: i,
|
|
2682
|
-
middlewareData: m
|
|
2683
|
-
};
|
|
2684
|
-
}, gi = (e) => ({
|
|
2685
|
-
name: "arrow",
|
|
2686
|
-
options: e,
|
|
2687
|
-
async fn(t) {
|
|
2688
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = V(e, t) || {};
|
|
2689
|
-
if (l == null) return {};
|
|
2690
|
-
let d = ui(u), f = {
|
|
2691
|
-
x: n,
|
|
2692
|
-
y: r
|
|
2693
|
-
}, p = Qr(i), m = Zr(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
2694
|
-
C && await (o.isElement == null ? void 0 : o.isElement(S)) || (C = s.floating[y] || a.floating[m]);
|
|
2695
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, ee = R(d[_], T), te = R(d[v], T), ne = ee, re = C - h[m] - te, E = C / 2 - h[m] / 2 + w, ie = Yr(ne, E, re), ae = !c.arrow && U(i) != null && E !== ie && a.reference[m] / 2 - (E < ne ? ee : te) - h[m] / 2 < 0, oe = ae ? E < ne ? E - ne : E - re : 0;
|
|
2696
|
-
return {
|
|
2697
|
-
[p]: f[p] + oe,
|
|
2698
|
-
data: {
|
|
2699
|
-
[p]: ie,
|
|
2700
|
-
centerOffset: E - ie - oe,
|
|
2701
|
-
...ae && { alignmentOffset: oe }
|
|
2702
|
-
},
|
|
2703
|
-
reset: ae
|
|
2704
|
-
};
|
|
2705
|
-
}
|
|
2706
|
-
}), _i = function(e) {
|
|
2707
|
-
return e === void 0 && (e = {}), {
|
|
2708
|
-
name: "flip",
|
|
2709
|
-
options: e,
|
|
2710
|
-
async fn(t) {
|
|
2711
|
-
var n;
|
|
2712
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = V(e, t);
|
|
2713
|
-
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
2714
|
-
let g = H(r), _ = W(o), v = H(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [ci(o)] : ei(o)), x = p !== "none";
|
|
2715
|
-
!d && x && b.push(...si(o, m, p, y));
|
|
2716
|
-
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
2717
|
-
if (l && w.push(C[g]), u) {
|
|
2718
|
-
let e = $r(r, a, y);
|
|
2719
|
-
w.push(C[e[0]], C[e[1]]);
|
|
2720
|
-
}
|
|
2721
|
-
if (T = [...T, {
|
|
2722
|
-
placement: r,
|
|
2723
|
-
overflows: w
|
|
2724
|
-
}], !w.every((e) => e <= 0)) {
|
|
2725
|
-
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
2726
|
-
if (t && (u !== "alignment" || _ === W(t) || T.every((e) => W(e.placement) !== _ || e.overflows[0] > 0))) return {
|
|
2727
|
-
data: {
|
|
2728
|
-
index: e,
|
|
2729
|
-
overflows: T
|
|
2730
|
-
},
|
|
2731
|
-
reset: { placement: t }
|
|
2732
|
-
};
|
|
2733
|
-
let n = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
2734
|
-
if (!n) switch (f) {
|
|
2735
|
-
case "bestFit": {
|
|
2736
|
-
let e = T.filter((e) => {
|
|
2737
|
-
if (x) {
|
|
2738
|
-
let t = W(e.placement);
|
|
2739
|
-
return t === _ || t === "y";
|
|
2740
|
-
}
|
|
2741
|
-
return !0;
|
|
2742
|
-
}).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
|
|
2743
|
-
e && (n = e);
|
|
2744
|
-
break;
|
|
2745
|
-
}
|
|
2746
|
-
case "initialPlacement": n = o;
|
|
2747
|
-
}
|
|
2748
|
-
if (r !== n) return { reset: { placement: n } };
|
|
2749
|
-
}
|
|
2750
|
-
return {};
|
|
2751
|
-
}
|
|
2752
|
-
};
|
|
2753
|
-
};
|
|
2754
|
-
function vi(e, t) {
|
|
2755
|
-
return {
|
|
2756
|
-
top: e.top - t.height,
|
|
2757
|
-
right: e.right - t.width,
|
|
2758
|
-
bottom: e.bottom - t.height,
|
|
2759
|
-
left: e.left - t.width
|
|
2760
|
-
};
|
|
2761
|
-
}
|
|
2762
|
-
function yi(e) {
|
|
2763
|
-
return Gr.some((t) => e[t] >= 0);
|
|
2764
|
-
}
|
|
2765
|
-
var bi = function(e) {
|
|
2766
|
-
return e === void 0 && (e = {}), {
|
|
2767
|
-
name: "hide",
|
|
2768
|
-
options: e,
|
|
2769
|
-
async fn(t) {
|
|
2770
|
-
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = V(e, t);
|
|
2771
|
-
switch (i) {
|
|
2772
|
-
case "referenceHidden": {
|
|
2773
|
-
let e = vi(await r.detectOverflow(t, {
|
|
2774
|
-
...a,
|
|
2775
|
-
elementContext: "reference"
|
|
2776
|
-
}), n.reference);
|
|
2777
|
-
return { data: {
|
|
2778
|
-
referenceHiddenOffsets: e,
|
|
2779
|
-
referenceHidden: yi(e)
|
|
2780
|
-
} };
|
|
2781
|
-
}
|
|
2782
|
-
case "escaped": {
|
|
2783
|
-
let e = vi(await r.detectOverflow(t, {
|
|
2784
|
-
...a,
|
|
2785
|
-
altBoundary: !0
|
|
2786
|
-
}), n.floating);
|
|
2787
|
-
return { data: {
|
|
2788
|
-
escapedOffsets: e,
|
|
2789
|
-
escaped: yi(e)
|
|
2790
|
-
} };
|
|
2791
|
-
}
|
|
2792
|
-
default: return {};
|
|
2793
|
-
}
|
|
2794
|
-
}
|
|
2795
|
-
};
|
|
2796
|
-
}, xi = /*#__PURE__*/ new Set(["left", "top"]);
|
|
2797
|
-
async function Si(e, t) {
|
|
2798
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = H(n), s = U(n), c = W(n) === "y", l = xi.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = V(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
2799
|
-
mainAxis: d,
|
|
2800
|
-
crossAxis: 0,
|
|
2801
|
-
alignmentAxis: null
|
|
2802
|
-
} : {
|
|
2803
|
-
mainAxis: d.mainAxis || 0,
|
|
2804
|
-
crossAxis: d.crossAxis || 0,
|
|
2805
|
-
alignmentAxis: d.alignmentAxis
|
|
2806
|
-
};
|
|
2807
|
-
return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
|
|
2808
|
-
x: p * u,
|
|
2809
|
-
y: f * l
|
|
2810
|
-
} : {
|
|
2811
|
-
x: f * l,
|
|
2812
|
-
y: p * u
|
|
2813
|
-
};
|
|
2814
|
-
}
|
|
2815
|
-
var Ci = function(e) {
|
|
2816
|
-
return e === void 0 && (e = 0), {
|
|
2817
|
-
name: "offset",
|
|
2818
|
-
options: e,
|
|
2819
|
-
async fn(t) {
|
|
2820
|
-
var n;
|
|
2821
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Si(t, e);
|
|
2822
|
-
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
2823
|
-
x: r + s.x,
|
|
2824
|
-
y: i + s.y,
|
|
2825
|
-
data: {
|
|
2826
|
-
...s,
|
|
2827
|
-
placement: a
|
|
2828
|
-
}
|
|
2829
|
-
};
|
|
2830
|
-
}
|
|
2831
|
-
};
|
|
2832
|
-
}, wi = function(e) {
|
|
2833
|
-
return e === void 0 && (e = {}), {
|
|
2834
|
-
name: "shift",
|
|
2835
|
-
options: e,
|
|
2836
|
-
async fn(t) {
|
|
2837
|
-
let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: o = !0, crossAxis: s = !1, limiter: c = { fn: (e) => {
|
|
2838
|
-
let { x: t, y: n } = e;
|
|
2839
|
-
return {
|
|
2840
|
-
x: t,
|
|
2841
|
-
y: n
|
|
2842
|
-
};
|
|
2843
|
-
} }, ...l } = V(e, t), u = {
|
|
2844
|
-
x: n,
|
|
2845
|
-
y: r
|
|
2846
|
-
}, d = await a.detectOverflow(t, l), f = W(H(i)), p = Xr(f), m = u[p], h = u[f];
|
|
2847
|
-
if (o) {
|
|
2848
|
-
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
2849
|
-
m = Yr(n, m, r);
|
|
2850
|
-
}
|
|
2851
|
-
if (s) {
|
|
2852
|
-
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
2853
|
-
h = Yr(n, h, r);
|
|
2854
|
-
}
|
|
2855
|
-
let g = c.fn({
|
|
2856
|
-
...t,
|
|
2857
|
-
[p]: m,
|
|
2858
|
-
[f]: h
|
|
2859
|
-
});
|
|
2860
|
-
return {
|
|
2861
|
-
...g,
|
|
2862
|
-
data: {
|
|
2863
|
-
x: g.x - n,
|
|
2864
|
-
y: g.y - r,
|
|
2865
|
-
enabled: {
|
|
2866
|
-
[p]: o,
|
|
2867
|
-
[f]: s
|
|
2868
|
-
}
|
|
2869
|
-
}
|
|
2870
|
-
};
|
|
2871
|
-
}
|
|
2872
|
-
};
|
|
2873
|
-
}, Ti = function(e) {
|
|
2874
|
-
return e === void 0 && (e = {}), {
|
|
2875
|
-
options: e,
|
|
2876
|
-
fn(t) {
|
|
2877
|
-
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = V(e, t), u = {
|
|
2878
|
-
x: n,
|
|
2879
|
-
y: r
|
|
2880
|
-
}, d = W(i), f = Xr(d), p = u[f], m = u[d], h = V(s, t), g = typeof h == "number" ? {
|
|
2881
|
-
mainAxis: h,
|
|
2882
|
-
crossAxis: 0
|
|
2883
|
-
} : {
|
|
2884
|
-
mainAxis: 0,
|
|
2885
|
-
crossAxis: 0,
|
|
2886
|
-
...h
|
|
2887
|
-
};
|
|
2888
|
-
if (c) {
|
|
2889
|
-
let e = f === "y" ? "height" : "width", t = a.reference[f] - a.floating[e] + g.mainAxis, n = a.reference[f] + a.reference[e] - g.mainAxis;
|
|
2890
|
-
p < t ? p = t : p > n && (p = n);
|
|
2891
|
-
}
|
|
2892
|
-
if (l) {
|
|
2893
|
-
let e = f === "y" ? "width" : "height", t = xi.has(H(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
|
|
2894
|
-
m < n ? m = n : m > r && (m = r);
|
|
2895
|
-
}
|
|
2896
|
-
return {
|
|
2897
|
-
[f]: p,
|
|
2898
|
-
[d]: m
|
|
2899
|
-
};
|
|
2900
|
-
}
|
|
2901
|
-
};
|
|
2902
|
-
}, Ei = function(e) {
|
|
2903
|
-
return e === void 0 && (e = {}), {
|
|
2904
|
-
name: "size",
|
|
2905
|
-
options: e,
|
|
2906
|
-
async fn(t) {
|
|
2907
|
-
var n, r;
|
|
2908
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = V(e, t), u = await o.detectOverflow(t, l), d = H(i), f = U(i), p = W(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
2909
|
-
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
2910
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = R(h - u[g], v), x = R(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
2911
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
2912
|
-
let e = z(u.left, 0), t = z(u.right, 0), n = z(u.top, 0), r = z(u.bottom, 0);
|
|
2913
|
-
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : z(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : z(u.top, u.bottom));
|
|
2914
|
-
}
|
|
2915
|
-
await c({
|
|
2916
|
-
...t,
|
|
2917
|
-
availableWidth: w,
|
|
2918
|
-
availableHeight: C
|
|
2919
|
-
});
|
|
2920
|
-
let T = await o.getDimensions(s.floating);
|
|
2921
|
-
return m !== T.width || h !== T.height ? { reset: { rects: !0 } } : {};
|
|
2922
|
-
}
|
|
2923
|
-
};
|
|
2924
|
-
};
|
|
2925
|
-
// ../node_modules/.bun/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
2926
|
-
function Di() {
|
|
2927
|
-
return typeof window < "u";
|
|
2928
|
-
}
|
|
2929
|
-
function Oi(e) {
|
|
2930
|
-
return ki(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2931
|
-
}
|
|
2932
|
-
function G(e) {
|
|
2933
|
-
var t;
|
|
2934
|
-
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
2935
|
-
}
|
|
2936
|
-
function K(e) {
|
|
2937
|
-
return ((ki(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
2938
|
-
}
|
|
2939
|
-
function ki(e) {
|
|
2940
|
-
return Di() ? e instanceof Node || e instanceof G(e).Node : !1;
|
|
2941
|
-
}
|
|
2942
|
-
function q(e) {
|
|
2943
|
-
return Di() ? e instanceof Element || e instanceof G(e).Element : !1;
|
|
2944
|
-
}
|
|
2945
|
-
function J(e) {
|
|
2946
|
-
return Di() ? e instanceof HTMLElement || e instanceof G(e).HTMLElement : !1;
|
|
2947
|
-
}
|
|
2948
|
-
function Ai(e) {
|
|
2949
|
-
return !Di() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof G(e).ShadowRoot;
|
|
2950
|
-
}
|
|
2951
|
-
function ji(e) {
|
|
2952
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } = X(e);
|
|
2953
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
2954
|
-
}
|
|
2955
|
-
function Mi(e) {
|
|
2956
|
-
return /^(table|td|th)$/.test(Oi(e));
|
|
2957
|
-
}
|
|
2958
|
-
function Ni(e) {
|
|
2959
|
-
try {
|
|
2960
|
-
if (e.matches(":popover-open")) return !0;
|
|
2961
|
-
} catch {}
|
|
2962
|
-
try {
|
|
2963
|
-
return e.matches(":modal");
|
|
2964
|
-
} catch {
|
|
2965
|
-
return !1;
|
|
2966
|
-
}
|
|
2967
|
-
}
|
|
2968
|
-
var Pi = /transform|translate|scale|rotate|perspective|filter/, Fi = /paint|layout|strict|content/, Y = (e) => !!e && e !== "none", Ii;
|
|
2969
|
-
function Li(e) {
|
|
2970
|
-
let t = q(e) ? X(e) : e;
|
|
2971
|
-
return Y(t.transform) || Y(t.translate) || Y(t.scale) || Y(t.rotate) || Y(t.perspective) || !zi() && (Y(t.backdropFilter) || Y(t.filter)) || Pi.test(t.willChange || "") || Fi.test(t.contain || "");
|
|
2972
|
-
}
|
|
2973
|
-
function Ri(e) {
|
|
2974
|
-
let t = Z(e);
|
|
2975
|
-
for (; J(t) && !Bi(t);) {
|
|
2976
|
-
if (Li(t)) return t;
|
|
2977
|
-
if (Ni(t)) return null;
|
|
2978
|
-
t = Z(t);
|
|
2979
|
-
}
|
|
2980
|
-
return null;
|
|
2981
|
-
}
|
|
2982
|
-
function zi() {
|
|
2983
|
-
return Ii ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Ii;
|
|
2984
|
-
}
|
|
2985
|
-
function Bi(e) {
|
|
2986
|
-
return /^(html|body|#document)$/.test(Oi(e));
|
|
2987
|
-
}
|
|
2988
|
-
function X(e) {
|
|
2989
|
-
return G(e).getComputedStyle(e);
|
|
2990
|
-
}
|
|
2991
|
-
function Vi(e) {
|
|
2992
|
-
return q(e) ? {
|
|
2993
|
-
scrollLeft: e.scrollLeft,
|
|
2994
|
-
scrollTop: e.scrollTop
|
|
2995
|
-
} : {
|
|
2996
|
-
scrollLeft: e.scrollX,
|
|
2997
|
-
scrollTop: e.scrollY
|
|
2998
|
-
};
|
|
2999
|
-
}
|
|
3000
|
-
function Z(e) {
|
|
3001
|
-
if (Oi(e) === "html") return e;
|
|
3002
|
-
let t = e.assignedSlot || e.parentNode || Ai(e) && e.host || K(e);
|
|
3003
|
-
return Ai(t) ? t.host : t;
|
|
3004
|
-
}
|
|
3005
|
-
function Hi(e) {
|
|
3006
|
-
let t = Z(e);
|
|
3007
|
-
return Bi(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) && ji(t) ? t : Hi(t);
|
|
3008
|
-
}
|
|
3009
|
-
function Ui(e, t, n) {
|
|
3010
|
-
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
3011
|
-
let r = Hi(e), i = r === e.ownerDocument?.body, a = G(r);
|
|
3012
|
-
if (i) {
|
|
3013
|
-
let e = Wi(a);
|
|
3014
|
-
return t.concat(a, a.visualViewport || [], ji(r) ? r : [], e && n ? Ui(e) : []);
|
|
3015
|
-
}
|
|
3016
|
-
return t.concat(r, Ui(r, [], n));
|
|
3017
|
-
}
|
|
3018
|
-
function Wi(e) {
|
|
3019
|
-
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
3020
|
-
}
|
|
3021
|
-
// ../node_modules/.bun/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
3022
|
-
function Gi(e) {
|
|
3023
|
-
let t = X(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = J(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Kr(n) !== a || Kr(r) !== o;
|
|
3024
|
-
return s && (n = a, r = o), {
|
|
3025
|
-
width: n,
|
|
3026
|
-
height: r,
|
|
3027
|
-
$: s
|
|
3028
|
-
};
|
|
3029
|
-
}
|
|
3030
|
-
function Ki(e) {
|
|
3031
|
-
return q(e) ? e : e.contextElement;
|
|
3032
|
-
}
|
|
3033
|
-
function qi(e) {
|
|
3034
|
-
let t = Ki(e);
|
|
3035
|
-
if (!J(t)) return B(1);
|
|
3036
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Gi(t), o = (a ? Kr(n.width) : n.width) / r, s = (a ? Kr(n.height) : n.height) / i;
|
|
3037
|
-
return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
|
|
3038
|
-
x: o,
|
|
3039
|
-
y: s
|
|
3040
|
-
};
|
|
3041
|
-
}
|
|
3042
|
-
var Ji = /*#__PURE__*/ B(0);
|
|
3043
|
-
function Yi(e) {
|
|
3044
|
-
let t = G(e);
|
|
3045
|
-
return !zi() || !t.visualViewport ? Ji : {
|
|
3046
|
-
x: t.visualViewport.offsetLeft,
|
|
3047
|
-
y: t.visualViewport.offsetTop
|
|
3048
|
-
};
|
|
3049
|
-
}
|
|
3050
|
-
function Xi(e, t, n) {
|
|
3051
|
-
return t === void 0 && (t = !1), !n || t && n !== G(e) ? !1 : t;
|
|
3052
|
-
}
|
|
3053
|
-
function Q(e, t, n, r) {
|
|
3054
|
-
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
3055
|
-
let i = e.getBoundingClientRect(), a = Ki(e), o = B(1);
|
|
3056
|
-
t && (r ? q(r) && (o = qi(r)) : o = qi(e));
|
|
3057
|
-
let s = Xi(a, n, r) ? Yi(a) : B(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
3058
|
-
if (a) {
|
|
3059
|
-
let e = G(a), t = r && q(r) ? G(r) : r, n = e, i = Wi(n);
|
|
3060
|
-
for (; i && r && t !== n;) {
|
|
3061
|
-
let e = qi(i), t = i.getBoundingClientRect(), r = X(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
3062
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = G(i), i = Wi(n);
|
|
3063
|
-
}
|
|
3064
|
-
}
|
|
3065
|
-
return di({
|
|
3066
|
-
width: u,
|
|
3067
|
-
height: d,
|
|
3068
|
-
x: c,
|
|
3069
|
-
y: l
|
|
3070
|
-
});
|
|
3071
|
-
}
|
|
3072
|
-
function Zi(e, t) {
|
|
3073
|
-
let n = Vi(e).scrollLeft;
|
|
3074
|
-
return t ? t.left + n : Q(K(e)).left + n;
|
|
3075
|
-
}
|
|
3076
|
-
function Qi(e, t) {
|
|
3077
|
-
let n = e.getBoundingClientRect();
|
|
3078
|
-
return {
|
|
3079
|
-
x: n.left + t.scrollLeft - Zi(e, n),
|
|
3080
|
-
y: n.top + t.scrollTop
|
|
3081
|
-
};
|
|
3082
|
-
}
|
|
3083
|
-
function $i(e) {
|
|
3084
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = K(r), s = t ? Ni(t.floating) : !1;
|
|
3085
|
-
if (r === o || s && a) return n;
|
|
3086
|
-
let c = {
|
|
3087
|
-
scrollLeft: 0,
|
|
3088
|
-
scrollTop: 0
|
|
3089
|
-
}, l = B(1), u = B(0), d = J(r);
|
|
3090
|
-
if ((d || !d && !a) && ((Oi(r) !== "body" || ji(o)) && (c = Vi(r)), d)) {
|
|
3091
|
-
let e = Q(r);
|
|
3092
|
-
l = qi(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
3093
|
-
}
|
|
3094
|
-
let f = o && !d && !a ? Qi(o, c) : B(0);
|
|
3095
|
-
return {
|
|
3096
|
-
width: n.width * l.x,
|
|
3097
|
-
height: n.height * l.y,
|
|
3098
|
-
x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
|
|
3099
|
-
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
3100
|
-
};
|
|
3101
|
-
}
|
|
3102
|
-
function ea(e) {
|
|
3103
|
-
return Array.from(e.getClientRects());
|
|
3104
|
-
}
|
|
3105
|
-
function ta(e) {
|
|
3106
|
-
let t = K(e), n = Vi(e), r = e.ownerDocument.body, i = z(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = z(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Zi(e), s = -n.scrollTop;
|
|
3107
|
-
return X(r).direction === "rtl" && (o += z(t.clientWidth, r.clientWidth) - i), {
|
|
3108
|
-
width: i,
|
|
3109
|
-
height: a,
|
|
3110
|
-
x: o,
|
|
3111
|
-
y: s
|
|
3112
|
-
};
|
|
3113
|
-
}
|
|
3114
|
-
var na = 25;
|
|
3115
|
-
function ra(e, t) {
|
|
3116
|
-
let n = G(e), r = K(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
3117
|
-
if (i) {
|
|
3118
|
-
a = i.width, o = i.height;
|
|
3119
|
-
let e = zi();
|
|
3120
|
-
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
3121
|
-
}
|
|
3122
|
-
let l = Zi(r);
|
|
3123
|
-
if (l <= 0) {
|
|
3124
|
-
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
3125
|
-
o <= na && (a -= o);
|
|
3126
|
-
} else l <= na && (a += l);
|
|
3127
|
-
return {
|
|
3128
|
-
width: a,
|
|
3129
|
-
height: o,
|
|
3130
|
-
x: s,
|
|
3131
|
-
y: c
|
|
3132
|
-
};
|
|
3133
|
-
}
|
|
3134
|
-
function ia(e, t) {
|
|
3135
|
-
let n = Q(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = J(e) ? qi(e) : B(1);
|
|
3136
|
-
return {
|
|
3137
|
-
width: e.clientWidth * a.x,
|
|
3138
|
-
height: e.clientHeight * a.y,
|
|
3139
|
-
x: i * a.x,
|
|
3140
|
-
y: r * a.y
|
|
3141
|
-
};
|
|
3142
|
-
}
|
|
3143
|
-
function aa(e, t, n) {
|
|
3144
|
-
let r;
|
|
3145
|
-
if (t === "viewport") r = ra(e, n);
|
|
3146
|
-
else if (t === "document") r = ta(K(e));
|
|
3147
|
-
else if (q(t)) r = ia(t, n);
|
|
3148
|
-
else {
|
|
3149
|
-
let n = Yi(e);
|
|
3150
|
-
r = {
|
|
3151
|
-
x: t.x - n.x,
|
|
3152
|
-
y: t.y - n.y,
|
|
3153
|
-
width: t.width,
|
|
3154
|
-
height: t.height
|
|
3155
|
-
};
|
|
3156
|
-
}
|
|
3157
|
-
return di(r);
|
|
3158
|
-
}
|
|
3159
|
-
function oa(e, t) {
|
|
3160
|
-
let n = Z(e);
|
|
3161
|
-
return n === t || !q(n) || Bi(n) ? !1 : X(n).position === "fixed" || oa(n, t);
|
|
3162
|
-
}
|
|
3163
|
-
function sa(e, t) {
|
|
3164
|
-
let n = t.get(e);
|
|
3165
|
-
if (n) return n;
|
|
3166
|
-
let r = Ui(e, [], !1).filter((e) => q(e) && Oi(e) !== "body"), i = null, a = X(e).position === "fixed", o = a ? Z(e) : e;
|
|
3167
|
-
for (; q(o) && !Bi(o);) {
|
|
3168
|
-
let t = X(o), n = Li(o);
|
|
3169
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || ji(o) && !n && oa(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Z(o);
|
|
3170
|
-
}
|
|
3171
|
-
return t.set(e, r), r;
|
|
3172
|
-
}
|
|
3173
|
-
function ca(e) {
|
|
3174
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Ni(t) ? [] : sa(t, this._c) : [].concat(n), r], o = aa(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
3175
|
-
for (let e = 1; e < a.length; e++) {
|
|
3176
|
-
let n = aa(t, a[e], i);
|
|
3177
|
-
s = z(n.top, s), c = R(n.right, c), l = R(n.bottom, l), u = z(n.left, u);
|
|
3178
|
-
}
|
|
3179
|
-
return {
|
|
3180
|
-
width: c - u,
|
|
3181
|
-
height: l - s,
|
|
3182
|
-
x: u,
|
|
3183
|
-
y: s
|
|
3184
|
-
};
|
|
3185
|
-
}
|
|
3186
|
-
function la(e) {
|
|
3187
|
-
let { width: t, height: n } = Gi(e);
|
|
3188
|
-
return {
|
|
3189
|
-
width: t,
|
|
3190
|
-
height: n
|
|
3191
|
-
};
|
|
3192
|
-
}
|
|
3193
|
-
function ua(e, t, n) {
|
|
3194
|
-
let r = J(t), i = K(t), a = n === "fixed", o = Q(e, !0, a, t), s = {
|
|
3195
|
-
scrollLeft: 0,
|
|
3196
|
-
scrollTop: 0
|
|
3197
|
-
}, c = B(0);
|
|
3198
|
-
function l() {
|
|
3199
|
-
c.x = Zi(i);
|
|
3200
|
-
}
|
|
3201
|
-
if (r || !r && !a) {
|
|
3202
|
-
if ((Oi(t) !== "body" || ji(i)) && (s = Vi(t)), r) {
|
|
3203
|
-
let e = Q(t, !0, a, t);
|
|
3204
|
-
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
3205
|
-
} else i && l();
|
|
3206
|
-
}
|
|
3207
|
-
a && !r && i && l();
|
|
3208
|
-
let u = i && !r && !a ? Qi(i, s) : B(0);
|
|
3209
|
-
return {
|
|
3210
|
-
x: o.left + s.scrollLeft - c.x - u.x,
|
|
3211
|
-
y: o.top + s.scrollTop - c.y - u.y,
|
|
3212
|
-
width: o.width,
|
|
3213
|
-
height: o.height
|
|
3214
|
-
};
|
|
3215
|
-
}
|
|
3216
|
-
function da(e) {
|
|
3217
|
-
return X(e).position === "static";
|
|
3218
|
-
}
|
|
3219
|
-
function fa(e, t) {
|
|
3220
|
-
if (!J(e) || X(e).position === "fixed") return null;
|
|
3221
|
-
if (t) return t(e);
|
|
3222
|
-
let n = e.offsetParent;
|
|
3223
|
-
return K(e) === n && (n = n.ownerDocument.body), n;
|
|
3224
|
-
}
|
|
3225
|
-
function pa(e, t) {
|
|
3226
|
-
let n = G(e);
|
|
3227
|
-
if (Ni(e)) return n;
|
|
3228
|
-
if (!J(e)) {
|
|
3229
|
-
let t = Z(e);
|
|
3230
|
-
for (; t && !Bi(t);) {
|
|
3231
|
-
if (q(t) && !da(t)) return t;
|
|
3232
|
-
t = Z(t);
|
|
3233
|
-
}
|
|
3234
|
-
return n;
|
|
3235
|
-
}
|
|
3236
|
-
let r = fa(e, t);
|
|
3237
|
-
for (; r && Mi(r) && da(r);) r = fa(r, t);
|
|
3238
|
-
return r && Bi(r) && da(r) && !Li(r) ? n : r || Ri(e) || n;
|
|
3239
|
-
}
|
|
3240
|
-
var ma = async function(e) {
|
|
3241
|
-
let t = this.getOffsetParent || pa, n = this.getDimensions, r = await n(e.floating);
|
|
3242
|
-
return {
|
|
3243
|
-
reference: ua(e.reference, await t(e.floating), e.strategy),
|
|
3244
|
-
floating: {
|
|
3245
|
-
x: 0,
|
|
3246
|
-
y: 0,
|
|
3247
|
-
width: r.width,
|
|
3248
|
-
height: r.height
|
|
3249
|
-
}
|
|
3250
|
-
};
|
|
3251
|
-
};
|
|
3252
|
-
function ha(e) {
|
|
3253
|
-
return X(e).direction === "rtl";
|
|
3254
|
-
}
|
|
3255
|
-
var ga = {
|
|
3256
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: $i,
|
|
3257
|
-
getDocumentElement: K,
|
|
3258
|
-
getClippingRect: ca,
|
|
3259
|
-
getOffsetParent: pa,
|
|
3260
|
-
getElementRects: ma,
|
|
3261
|
-
getClientRects: ea,
|
|
3262
|
-
getDimensions: la,
|
|
3263
|
-
getScale: qi,
|
|
3264
|
-
isElement: q,
|
|
3265
|
-
isRTL: ha
|
|
3266
|
-
};
|
|
3267
|
-
function _a(e, t) {
|
|
3268
|
-
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
3269
|
-
}
|
|
3270
|
-
function va(e, t) {
|
|
3271
|
-
let n = null, r, i = K(e);
|
|
3272
|
-
function a() {
|
|
3273
|
-
var e;
|
|
3274
|
-
clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
|
|
3275
|
-
}
|
|
3276
|
-
function o(s, c) {
|
|
3277
|
-
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
3278
|
-
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
3279
|
-
if (s || t(), !f || !p) return;
|
|
3280
|
-
let m = qr(d), h = qr(i.clientWidth - (u + f)), g = qr(i.clientHeight - (d + p)), _ = qr(u), v = {
|
|
3281
|
-
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
3282
|
-
threshold: z(0, R(1, c)) || 1
|
|
3283
|
-
}, y = !0;
|
|
3284
|
-
function b(t) {
|
|
3285
|
-
let n = t[0].intersectionRatio;
|
|
3286
|
-
if (n !== c) {
|
|
3287
|
-
if (!y) return o();
|
|
3288
|
-
n ? o(!1, n) : r = setTimeout(() => {
|
|
3289
|
-
o(!1, 1e-7);
|
|
3290
|
-
}, 1e3);
|
|
3291
|
-
}
|
|
3292
|
-
n === 1 && !_a(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
3293
|
-
}
|
|
3294
|
-
try {
|
|
3295
|
-
n = new IntersectionObserver(b, {
|
|
3296
|
-
...v,
|
|
3297
|
-
root: i.ownerDocument
|
|
3298
|
-
});
|
|
3299
|
-
} catch {
|
|
3300
|
-
n = new IntersectionObserver(b, v);
|
|
3301
|
-
}
|
|
3302
|
-
n.observe(e);
|
|
3303
|
-
}
|
|
3304
|
-
return o(!0), a;
|
|
3305
|
-
}
|
|
3306
|
-
function ya(e, t, n, r) {
|
|
3307
|
-
r === void 0 && (r = {});
|
|
3308
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Ki(e), u = i || a ? [...l ? Ui(l) : [], ...t ? Ui(t) : []] : [];
|
|
3309
|
-
u.forEach((e) => {
|
|
3310
|
-
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
3311
|
-
});
|
|
3312
|
-
let d = l && s ? va(l, n) : null, f = -1, p = null;
|
|
3313
|
-
o && (p = new ResizeObserver((e) => {
|
|
3314
|
-
let [r] = e;
|
|
3315
|
-
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
3316
|
-
var e;
|
|
3317
|
-
(e = p) == null || e.observe(t);
|
|
3318
|
-
})), n();
|
|
3319
|
-
}), l && !c && p.observe(l), t && p.observe(t));
|
|
3320
|
-
let m, h = c ? Q(e) : null;
|
|
3321
|
-
c && g();
|
|
3322
|
-
function g() {
|
|
3323
|
-
let t = Q(e);
|
|
3324
|
-
h && !_a(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
3325
|
-
}
|
|
3326
|
-
return n(), () => {
|
|
3327
|
-
var e;
|
|
3328
|
-
u.forEach((e) => {
|
|
3329
|
-
i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
|
|
3330
|
-
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
3331
|
-
};
|
|
3332
|
-
}
|
|
3333
|
-
var ba = Ci, xa = wi, Sa = _i, Ca = Ei, wa = bi, Ta = gi, Ea = Ti, Da = (e, t, n) => {
|
|
3334
|
-
let r = /* @__PURE__ */ new Map(), i = {
|
|
3335
|
-
platform: ga,
|
|
3336
|
-
...n
|
|
3337
|
-
}, a = {
|
|
3338
|
-
...i.platform,
|
|
3339
|
-
_c: r
|
|
3340
|
-
};
|
|
3341
|
-
return hi(e, t, {
|
|
3342
|
-
...i,
|
|
3343
|
-
platform: a
|
|
3344
|
-
});
|
|
3345
|
-
};
|
|
3346
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/floating-svelte/floating-utils.svelte.js
|
|
3347
|
-
function $(e) {
|
|
3348
|
-
return typeof e == "function" ? e() : e;
|
|
3349
|
-
}
|
|
3350
|
-
function Oa(e) {
|
|
3351
|
-
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
3352
|
-
}
|
|
3353
|
-
function ka(e, t) {
|
|
3354
|
-
let n = Oa(e);
|
|
3355
|
-
return Math.round(t * n) / n;
|
|
3356
|
-
}
|
|
3357
|
-
function Aa(e) {
|
|
3358
|
-
return {
|
|
3359
|
-
[`--bits-${e}-content-transform-origin`]: "var(--bits-floating-transform-origin)",
|
|
3360
|
-
[`--bits-${e}-content-available-width`]: "var(--bits-floating-available-width)",
|
|
3361
|
-
[`--bits-${e}-content-available-height`]: "var(--bits-floating-available-height)",
|
|
3362
|
-
[`--bits-${e}-anchor-width`]: "var(--bits-floating-anchor-width)",
|
|
3363
|
-
[`--bits-${e}-anchor-height`]: "var(--bits-floating-anchor-height)"
|
|
3364
|
-
};
|
|
3365
|
-
}
|
|
3366
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/internal/floating-svelte/use-floating.svelte.js
|
|
3367
|
-
function ja(e) {
|
|
3368
|
-
let n = e.whileElementsMounted, r = t.derived(() => $(e.open) ?? !0), i = t.derived(() => $(e.middleware)), a = t.derived(() => $(e.transform) ?? !0), o = t.derived(() => $(e.placement) ?? "bottom"), s = t.derived(() => $(e.strategy) ?? "absolute"), c = t.derived(() => $(e.sideOffset) ?? 0), l = t.derived(() => $(e.alignOffset) ?? 0), u = e.reference, d = t.state(0), f = t.state(0), p = w(null), m = t.state(t.proxy(t.get(s))), h = t.state(t.proxy(t.get(o))), g = t.state(t.proxy({})), _ = t.state(!1), v = !1, y = 0, b = t.derived(() => {
|
|
3369
|
-
let e = p.current ? ka(p.current, t.get(d)) : t.get(d), n = p.current ? ka(p.current, t.get(f)) : t.get(f);
|
|
3370
|
-
return t.get(a) ? {
|
|
3371
|
-
position: t.get(m),
|
|
3372
|
-
left: "0",
|
|
3373
|
-
top: "0",
|
|
3374
|
-
transform: `translate(${e}px, ${n}px)`,
|
|
3375
|
-
...p.current && Oa(p.current) >= 1.5 && { willChange: "transform" }
|
|
3376
|
-
} : {
|
|
3377
|
-
position: t.get(m),
|
|
3378
|
-
left: `${e}px`,
|
|
3379
|
-
top: `${n}px`
|
|
3380
|
-
};
|
|
3381
|
-
}), x;
|
|
3382
|
-
function S() {
|
|
3383
|
-
if (u.current === null || p.current === null) return;
|
|
3384
|
-
let e = u.current, n = p.current, a = ++y;
|
|
3385
|
-
Da(e, n, {
|
|
3386
|
-
middleware: t.get(i),
|
|
3387
|
-
placement: t.get(o),
|
|
3388
|
-
strategy: t.get(s)
|
|
3389
|
-
}).then((i) => {
|
|
3390
|
-
if (a === y && u.current === e && p.current === n) {
|
|
3391
|
-
if (Ma(e)) t.set(g, {
|
|
3392
|
-
...t.get(g),
|
|
3393
|
-
hide: {
|
|
3394
|
-
...t.get(g).hide,
|
|
3395
|
-
referenceHidden: !0
|
|
3396
|
-
}
|
|
3397
|
-
}, !0);
|
|
3398
|
-
else {
|
|
3399
|
-
if (!t.get(r) && t.get(d) !== 0 && t.get(f) !== 0) {
|
|
3400
|
-
let e = Math.max(Math.abs(t.get(c)), Math.abs(t.get(l)), 15);
|
|
3401
|
-
if (i.x <= e && i.y <= e) return;
|
|
3402
|
-
}
|
|
3403
|
-
t.set(d, i.x, !0), t.set(f, i.y, !0), t.set(m, i.strategy, !0), t.set(h, i.placement, !0), t.set(g, i.middlewareData, !0), t.set(_, !0);
|
|
3404
|
-
}
|
|
3405
|
-
}
|
|
3406
|
-
});
|
|
3407
|
-
}
|
|
3408
|
-
function C() {
|
|
3409
|
-
typeof x == "function" && (x(), x = void 0), y++;
|
|
3410
|
-
}
|
|
3411
|
-
function T() {
|
|
3412
|
-
C(), n === void 0 ? S() : t.get(r) && u.current !== null && p.current !== null && (x = n(u.current, p.current, S));
|
|
3413
|
-
}
|
|
3414
|
-
function ee() {
|
|
3415
|
-
!t.get(r) && p.current === null && t.set(_, !1);
|
|
3416
|
-
}
|
|
3417
|
-
function te() {
|
|
3418
|
-
return [
|
|
3419
|
-
t.get(i),
|
|
3420
|
-
t.get(o),
|
|
3421
|
-
t.get(s),
|
|
3422
|
-
t.get(c),
|
|
3423
|
-
t.get(l),
|
|
3424
|
-
t.get(r)
|
|
3425
|
-
];
|
|
3426
|
-
}
|
|
3427
|
-
return t.user_effect(() => {
|
|
3428
|
-
n === void 0 && t.get(r) && S();
|
|
3429
|
-
}), t.user_effect(T), t.user_effect(() => {
|
|
3430
|
-
n !== void 0 && (te(), t.get(r) && t.get(_) ? v ? S() : v = !0 : v = !1);
|
|
3431
|
-
}), t.user_effect(ee), t.user_effect(() => C), {
|
|
3432
|
-
floating: p,
|
|
3433
|
-
reference: u,
|
|
3434
|
-
get strategy() {
|
|
3435
|
-
return t.get(m);
|
|
3436
|
-
},
|
|
3437
|
-
get placement() {
|
|
3438
|
-
return t.get(h);
|
|
3439
|
-
},
|
|
3440
|
-
get middlewareData() {
|
|
3441
|
-
return t.get(g);
|
|
3442
|
-
},
|
|
3443
|
-
get isPositioned() {
|
|
3444
|
-
return t.get(_);
|
|
3445
|
-
},
|
|
3446
|
-
get floatingStyles() {
|
|
3447
|
-
return t.get(b);
|
|
3448
|
-
},
|
|
3449
|
-
get update() {
|
|
3450
|
-
return S;
|
|
3451
|
-
}
|
|
3452
|
-
};
|
|
3453
|
-
}
|
|
3454
|
-
function Ma(e) {
|
|
3455
|
-
return e instanceof Element ? !e.isConnected || e instanceof HTMLElement && e.hidden ? !0 : e.getClientRects().length === 0 : !1;
|
|
3456
|
-
}
|
|
3457
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js
|
|
3458
|
-
var Na = {
|
|
3459
|
-
top: "bottom",
|
|
3460
|
-
right: "left",
|
|
3461
|
-
bottom: "top",
|
|
3462
|
-
left: "right"
|
|
3463
|
-
}, Pa = new k("Floating.Root"), Fa = new k("Floating.Content"), Ia = new k("Floating.Root"), La = class e {
|
|
3464
|
-
static create(t = !1) {
|
|
3465
|
-
return t ? Ia.set(new e()) : Pa.set(new e());
|
|
3466
|
-
}
|
|
3467
|
-
anchorNode = w(null);
|
|
3468
|
-
customAnchorNode = w(null);
|
|
3469
|
-
triggerNode = w(null);
|
|
3470
|
-
constructor() {
|
|
3471
|
-
t.user_effect(() => {
|
|
3472
|
-
this.customAnchorNode.current ? typeof this.customAnchorNode.current == "string" ? this.anchorNode.current = document.querySelector(this.customAnchorNode.current) : this.anchorNode.current = this.customAnchorNode.current : this.anchorNode.current = this.triggerNode.current;
|
|
3473
|
-
});
|
|
3474
|
-
}
|
|
3475
|
-
}, Ra = class e {
|
|
3476
|
-
static create(t, n = !1) {
|
|
3477
|
-
return n ? Fa.set(new e(t, Ia.get())) : Fa.set(new e(t, Pa.get()));
|
|
3478
|
-
}
|
|
3479
|
-
opts;
|
|
3480
|
-
root;
|
|
3481
|
-
contentRef = w(null);
|
|
3482
|
-
wrapperRef = w(null);
|
|
3483
|
-
arrowRef = w(null);
|
|
3484
|
-
contentAttachment = N(this.contentRef);
|
|
3485
|
-
wrapperAttachment = N(this.wrapperRef);
|
|
3486
|
-
arrowAttachment = N(this.arrowRef);
|
|
3487
|
-
arrowId = w(Mr());
|
|
3488
|
-
#e = t.derived(() => {
|
|
3489
|
-
if (typeof this.opts.style == "string") return we(this.opts.style);
|
|
3490
|
-
if (!this.opts.style) return {};
|
|
3491
|
-
});
|
|
3492
|
-
#t = void 0;
|
|
3493
|
-
#n = new ze(() => this.arrowRef.current ?? void 0);
|
|
3494
|
-
#r = t.derived(() => this.#n?.width ?? 0);
|
|
3495
|
-
#i = t.derived(() => this.#n?.height ?? 0);
|
|
3496
|
-
#a = t.derived(() => this.opts.side?.current + (this.opts.align.current === "center" ? "" : `-${this.opts.align.current}`));
|
|
3497
|
-
#o = t.derived(() => Array.isArray(this.opts.collisionBoundary.current) ? this.opts.collisionBoundary.current : [this.opts.collisionBoundary.current]);
|
|
3498
|
-
#s = t.derived(() => t.get(this.#o).length > 0);
|
|
3499
|
-
get hasExplicitBoundaries() {
|
|
3500
|
-
return t.get(this.#s);
|
|
3501
|
-
}
|
|
3502
|
-
set hasExplicitBoundaries(e) {
|
|
3503
|
-
t.set(this.#s, e);
|
|
3504
|
-
}
|
|
3505
|
-
#c = t.derived(() => ({
|
|
3506
|
-
padding: this.opts.collisionPadding.current,
|
|
3507
|
-
boundary: t.get(this.#o).filter(Mt),
|
|
3508
|
-
altBoundary: this.hasExplicitBoundaries
|
|
3509
|
-
}));
|
|
3510
|
-
get detectOverflowOptions() {
|
|
3511
|
-
return t.get(this.#c);
|
|
3512
|
-
}
|
|
3513
|
-
set detectOverflowOptions(e) {
|
|
3514
|
-
t.set(this.#c, e);
|
|
3515
|
-
}
|
|
3516
|
-
#l = t.state(void 0);
|
|
3517
|
-
#u = t.state(void 0);
|
|
3518
|
-
#d = t.state(void 0);
|
|
3519
|
-
#f = t.state(void 0);
|
|
3520
|
-
#p = t.derived(() => [
|
|
3521
|
-
ba({
|
|
3522
|
-
mainAxis: this.opts.sideOffset.current + t.get(this.#i),
|
|
3523
|
-
alignmentAxis: this.opts.alignOffset.current
|
|
3524
|
-
}),
|
|
3525
|
-
this.opts.avoidCollisions.current && xa({
|
|
3526
|
-
mainAxis: !0,
|
|
3527
|
-
crossAxis: !1,
|
|
3528
|
-
limiter: this.opts.sticky.current === "partial" ? Ea() : void 0,
|
|
3529
|
-
...this.detectOverflowOptions
|
|
3530
|
-
}),
|
|
3531
|
-
this.opts.avoidCollisions.current && Sa({ ...this.detectOverflowOptions }),
|
|
3532
|
-
Ca({
|
|
3533
|
-
...this.detectOverflowOptions,
|
|
3534
|
-
apply: ({ rects: e, availableWidth: n, availableHeight: r }) => {
|
|
3535
|
-
let { width: i, height: a } = e.reference;
|
|
3536
|
-
t.set(this.#l, n, !0), t.set(this.#u, r, !0), t.set(this.#d, i, !0), t.set(this.#f, a, !0);
|
|
3537
|
-
}
|
|
3538
|
-
}),
|
|
3539
|
-
this.arrowRef.current && Ta({
|
|
3540
|
-
element: this.arrowRef.current,
|
|
3541
|
-
padding: this.opts.arrowPadding.current
|
|
3542
|
-
}),
|
|
3543
|
-
Ba({
|
|
3544
|
-
arrowWidth: t.get(this.#r),
|
|
3545
|
-
arrowHeight: t.get(this.#i)
|
|
3546
|
-
}),
|
|
3547
|
-
this.opts.hideWhenDetached.current && wa({
|
|
3548
|
-
strategy: "referenceHidden",
|
|
3549
|
-
...this.detectOverflowOptions
|
|
3550
|
-
})
|
|
3551
|
-
].filter(Boolean));
|
|
3552
|
-
get middleware() {
|
|
3553
|
-
return t.get(this.#p);
|
|
3554
|
-
}
|
|
3555
|
-
set middleware(e) {
|
|
3556
|
-
t.set(this.#p, e);
|
|
3557
|
-
}
|
|
3558
|
-
floating;
|
|
3559
|
-
#m = t.derived(() => Ha(this.floating.placement));
|
|
3560
|
-
get placedSide() {
|
|
3561
|
-
return t.get(this.#m);
|
|
3562
|
-
}
|
|
3563
|
-
set placedSide(e) {
|
|
3564
|
-
t.set(this.#m, e);
|
|
3565
|
-
}
|
|
3566
|
-
#h = t.derived(() => Ua(this.floating.placement));
|
|
3567
|
-
get placedAlign() {
|
|
3568
|
-
return t.get(this.#h);
|
|
3569
|
-
}
|
|
3570
|
-
set placedAlign(e) {
|
|
3571
|
-
t.set(this.#h, e);
|
|
3572
|
-
}
|
|
3573
|
-
#g = t.derived(() => this.floating.middlewareData.arrow?.x ?? 0);
|
|
3574
|
-
get arrowX() {
|
|
3575
|
-
return t.get(this.#g);
|
|
3576
|
-
}
|
|
3577
|
-
set arrowX(e) {
|
|
3578
|
-
t.set(this.#g, e);
|
|
3579
|
-
}
|
|
3580
|
-
#_ = t.derived(() => this.floating.middlewareData.arrow?.y ?? 0);
|
|
3581
|
-
get arrowY() {
|
|
3582
|
-
return t.get(this.#_);
|
|
3583
|
-
}
|
|
3584
|
-
set arrowY(e) {
|
|
3585
|
-
t.set(this.#_, e);
|
|
3586
|
-
}
|
|
3587
|
-
#v = t.derived(() => this.floating.middlewareData.arrow?.centerOffset !== 0);
|
|
3588
|
-
get cannotCenterArrow() {
|
|
3589
|
-
return t.get(this.#v);
|
|
3590
|
-
}
|
|
3591
|
-
set cannotCenterArrow(e) {
|
|
3592
|
-
t.set(this.#v, e);
|
|
3593
|
-
}
|
|
3594
|
-
#y = t.state();
|
|
3595
|
-
get contentZIndex() {
|
|
3596
|
-
return t.get(this.#y);
|
|
3597
|
-
}
|
|
3598
|
-
set contentZIndex(e) {
|
|
3599
|
-
t.set(this.#y, e, !0);
|
|
3600
|
-
}
|
|
3601
|
-
#b = t.derived(() => Na[this.placedSide]);
|
|
3602
|
-
get arrowBaseSide() {
|
|
3603
|
-
return t.get(this.#b);
|
|
3604
|
-
}
|
|
3605
|
-
set arrowBaseSide(e) {
|
|
3606
|
-
t.set(this.#b, e);
|
|
3607
|
-
}
|
|
3608
|
-
#x = t.derived(() => ({
|
|
3609
|
-
id: this.opts.wrapperId.current,
|
|
3610
|
-
"data-bits-floating-content-wrapper": "",
|
|
3611
|
-
style: {
|
|
3612
|
-
...this.floating.floatingStyles,
|
|
3613
|
-
transform: this.floating.isPositioned ? this.floating.floatingStyles.transform : "translate(0, -200%)",
|
|
3614
|
-
minWidth: "max-content",
|
|
3615
|
-
zIndex: this.contentZIndex,
|
|
3616
|
-
"--bits-floating-transform-origin": `${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,
|
|
3617
|
-
"--bits-floating-available-width": `${t.get(this.#l)}px`,
|
|
3618
|
-
"--bits-floating-available-height": `${t.get(this.#u)}px`,
|
|
3619
|
-
"--bits-floating-anchor-width": `${t.get(this.#d)}px`,
|
|
3620
|
-
"--bits-floating-anchor-height": `${t.get(this.#f)}px`,
|
|
3621
|
-
...this.floating.middlewareData.hide?.referenceHidden && {
|
|
3622
|
-
visibility: "hidden",
|
|
3623
|
-
"pointer-events": "none"
|
|
3624
|
-
},
|
|
3625
|
-
...t.get(this.#e)
|
|
3626
|
-
},
|
|
3627
|
-
dir: this.opts.dir.current,
|
|
3628
|
-
...this.wrapperAttachment
|
|
3629
|
-
}));
|
|
3630
|
-
get wrapperProps() {
|
|
3631
|
-
return t.get(this.#x);
|
|
3632
|
-
}
|
|
3633
|
-
set wrapperProps(e) {
|
|
3634
|
-
t.set(this.#x, e);
|
|
3635
|
-
}
|
|
3636
|
-
#S = t.derived(() => ({
|
|
3637
|
-
"data-side": this.placedSide,
|
|
3638
|
-
"data-align": this.placedAlign,
|
|
3639
|
-
style: Oe({ ...t.get(this.#e) }),
|
|
3640
|
-
...this.contentAttachment
|
|
3641
|
-
}));
|
|
3642
|
-
get props() {
|
|
3643
|
-
return t.get(this.#S);
|
|
3644
|
-
}
|
|
3645
|
-
set props(e) {
|
|
3646
|
-
t.set(this.#S, e);
|
|
3647
|
-
}
|
|
3648
|
-
#C = t.derived(() => ({
|
|
3649
|
-
position: "absolute",
|
|
3650
|
-
left: this.arrowX ? `${this.arrowX}px` : void 0,
|
|
3651
|
-
top: this.arrowY ? `${this.arrowY}px` : void 0,
|
|
3652
|
-
[this.arrowBaseSide]: 0,
|
|
3653
|
-
"transform-origin": {
|
|
3654
|
-
top: "",
|
|
3655
|
-
right: "0 0",
|
|
3656
|
-
bottom: "center 0",
|
|
3657
|
-
left: "100% 0"
|
|
3658
|
-
}[this.placedSide],
|
|
3659
|
-
transform: {
|
|
3660
|
-
top: "translateY(100%)",
|
|
3661
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
3662
|
-
bottom: "rotate(180deg)",
|
|
3663
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
3664
|
-
}[this.placedSide],
|
|
3665
|
-
visibility: this.cannotCenterArrow ? "hidden" : void 0
|
|
3666
|
-
}));
|
|
3667
|
-
get arrowStyle() {
|
|
3668
|
-
return t.get(this.#C);
|
|
3669
|
-
}
|
|
3670
|
-
set arrowStyle(e) {
|
|
3671
|
-
t.set(this.#C, e);
|
|
3672
|
-
}
|
|
3673
|
-
constructor(e, n) {
|
|
3674
|
-
this.opts = e, this.root = n, this.#t = e.updatePositionStrategy, e.customAnchor && (this.root.customAnchorNode.current = e.customAnchor.current), A(() => e.customAnchor.current, (e) => {
|
|
3675
|
-
this.root.customAnchorNode.current = e;
|
|
3676
|
-
}), this.floating = ja({
|
|
3677
|
-
strategy: () => this.opts.strategy.current,
|
|
3678
|
-
placement: () => t.get(this.#a),
|
|
3679
|
-
middleware: () => this.middleware,
|
|
3680
|
-
reference: this.root.anchorNode,
|
|
3681
|
-
whileElementsMounted: (...e) => ya(...e, { animationFrame: this.#t?.current === "always" }),
|
|
3682
|
-
open: () => this.opts.enabled.current,
|
|
3683
|
-
sideOffset: () => this.opts.sideOffset.current,
|
|
3684
|
-
alignOffset: () => this.opts.alignOffset.current
|
|
3685
|
-
}), t.user_effect(() => {
|
|
3686
|
-
this.floating.isPositioned && this.opts.onPlaced?.current();
|
|
3687
|
-
}), A(() => this.contentRef.current, (e) => {
|
|
3688
|
-
if (!e || !this.opts.enabled.current) return;
|
|
3689
|
-
let t = Qe(e), n = t.requestAnimationFrame(() => {
|
|
3690
|
-
if (this.contentRef.current !== e || !this.opts.enabled.current) return;
|
|
3691
|
-
let n = t.getComputedStyle(e).zIndex;
|
|
3692
|
-
n !== this.contentZIndex && (this.contentZIndex = n);
|
|
3693
|
-
});
|
|
3694
|
-
return () => {
|
|
3695
|
-
t.cancelAnimationFrame(n);
|
|
3696
|
-
};
|
|
3697
|
-
}), t.user_effect(() => {
|
|
3698
|
-
this.floating.floating.current = this.wrapperRef.current;
|
|
3699
|
-
});
|
|
3700
|
-
}
|
|
3701
|
-
}, za = class e {
|
|
3702
|
-
static create(t, n = !1) {
|
|
3703
|
-
return n ? new e(t, Ia.get()) : new e(t, Pa.get());
|
|
3704
|
-
}
|
|
3705
|
-
opts;
|
|
3706
|
-
root;
|
|
3707
|
-
constructor(e, t) {
|
|
3708
|
-
this.opts = e, this.root = t, t.triggerNode = e.virtualEl && e.virtualEl.current ? x(e.virtualEl.current) : e.ref;
|
|
3709
|
-
}
|
|
3710
|
-
};
|
|
3711
|
-
function Ba(e) {
|
|
3712
|
-
return {
|
|
3713
|
-
name: "transformOrigin",
|
|
3714
|
-
options: e,
|
|
3715
|
-
fn(t) {
|
|
3716
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = Va(n), u = {
|
|
3717
|
-
start: "0%",
|
|
3718
|
-
center: "50%",
|
|
3719
|
-
end: "100%"
|
|
3720
|
-
}[l], d = (i.arrow?.x ?? 0) + o / 2, f = (i.arrow?.y ?? 0) + s / 2, p = "", m = "";
|
|
3721
|
-
return c === "bottom" ? (p = a ? u : `${d}px`, m = `${-s}px`) : c === "top" ? (p = a ? u : `${d}px`, m = `${r.floating.height + s}px`) : c === "right" ? (p = `${-s}px`, m = a ? u : `${f}px`) : c === "left" && (p = `${r.floating.width + s}px`, m = a ? u : `${f}px`), { data: {
|
|
3722
|
-
x: p,
|
|
3723
|
-
y: m
|
|
3724
|
-
} };
|
|
3725
|
-
}
|
|
3726
|
-
};
|
|
3727
|
-
}
|
|
3728
|
-
function Va(e) {
|
|
3729
|
-
let [t, n = "center"] = e.split("-");
|
|
3730
|
-
return [t, n];
|
|
3731
|
-
}
|
|
3732
|
-
function Ha(e) {
|
|
3733
|
-
return Va(e)[0];
|
|
3734
|
-
}
|
|
3735
|
-
function Ua(e) {
|
|
3736
|
-
return Va(e)[1];
|
|
3737
|
-
}
|
|
3738
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer.svelte
|
|
3739
|
-
function Wa(e, n) {
|
|
3740
|
-
t.push(n, !0);
|
|
3741
|
-
let r = t.prop(n, "tooltip", 3, !1);
|
|
3742
|
-
La.create(r());
|
|
3743
|
-
var i = t.comment(), a = t.first_child(i);
|
|
3744
|
-
t.snippet(a, () => n.children ?? t.noop), t.append(e, i), t.pop();
|
|
3745
|
-
}
|
|
3746
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-anchor.svelte
|
|
3747
|
-
function Ga(e, n) {
|
|
3748
|
-
t.push(n, !0);
|
|
3749
|
-
let r = t.prop(n, "tooltip", 3, !1);
|
|
3750
|
-
za.create({
|
|
3751
|
-
id: v(() => n.id),
|
|
3752
|
-
virtualEl: v(() => n.virtualEl),
|
|
3753
|
-
ref: n.ref
|
|
3754
|
-
}, r());
|
|
3755
|
-
var i = t.comment(), a = t.first_child(i);
|
|
3756
|
-
t.snippet(a, () => n.children ?? t.noop), t.append(e, i), t.pop();
|
|
3757
|
-
}
|
|
3758
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-content.svelte
|
|
3759
|
-
function Ka(e, n) {
|
|
3760
|
-
t.push(n, !0);
|
|
3761
|
-
let r = t.prop(n, "side", 3, "bottom"), i = t.prop(n, "sideOffset", 3, 0), a = t.prop(n, "align", 3, "center"), o = t.prop(n, "alignOffset", 3, 0), s = t.prop(n, "arrowPadding", 3, 0), c = t.prop(n, "avoidCollisions", 3, !0), l = t.prop(n, "collisionBoundary", 19, () => []), u = t.prop(n, "collisionPadding", 3, 0), d = t.prop(n, "hideWhenDetached", 3, !1), f = t.prop(n, "onPlaced", 3, () => {}), p = t.prop(n, "sticky", 3, "partial"), m = t.prop(n, "updatePositionStrategy", 3, "optimized"), h = t.prop(n, "strategy", 3, "fixed"), g = t.prop(n, "dir", 3, "ltr"), _ = t.prop(n, "style", 19, () => ({})), y = t.prop(n, "wrapperId", 19, Mr), b = t.prop(n, "customAnchor", 3, null), x = t.prop(n, "tooltip", 3, !1), S = Ra.create({
|
|
3762
|
-
side: v(() => r()),
|
|
3763
|
-
sideOffset: v(() => i()),
|
|
3764
|
-
align: v(() => a()),
|
|
3765
|
-
alignOffset: v(() => o()),
|
|
3766
|
-
id: v(() => n.id),
|
|
3767
|
-
arrowPadding: v(() => s()),
|
|
3768
|
-
avoidCollisions: v(() => c()),
|
|
3769
|
-
collisionBoundary: v(() => l()),
|
|
3770
|
-
collisionPadding: v(() => u()),
|
|
3771
|
-
hideWhenDetached: v(() => d()),
|
|
3772
|
-
onPlaced: v(() => f()),
|
|
3773
|
-
sticky: v(() => p()),
|
|
3774
|
-
updatePositionStrategy: v(() => m()),
|
|
3775
|
-
strategy: v(() => h()),
|
|
3776
|
-
dir: v(() => g()),
|
|
3777
|
-
style: v(() => _()),
|
|
3778
|
-
enabled: v(() => n.enabled),
|
|
3779
|
-
wrapperId: v(() => y()),
|
|
3780
|
-
customAnchor: v(() => b())
|
|
3781
|
-
}, x()), C = t.derived(() => je(S.wrapperProps, { style: { pointerEvents: "auto" } }));
|
|
3782
|
-
var w = t.comment(), T = t.first_child(w);
|
|
3783
|
-
t.snippet(T, () => n.content ?? t.noop, () => ({
|
|
3784
|
-
props: S.props,
|
|
3785
|
-
wrapperProps: t.get(C)
|
|
3786
|
-
})), t.append(e, w), t.pop();
|
|
3787
|
-
}
|
|
3788
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-content-static.svelte
|
|
3789
|
-
function qa(e, n) {
|
|
3790
|
-
t.push(n, !0), i(() => {
|
|
3791
|
-
n.onPlaced?.();
|
|
3792
|
-
});
|
|
3793
|
-
var r = t.comment(), a = t.first_child(r);
|
|
3794
|
-
t.snippet(a, () => n.content ?? t.noop, () => ({
|
|
3795
|
-
props: {},
|
|
3796
|
-
wrapperProps: {}
|
|
3797
|
-
})), t.append(e, r), t.pop();
|
|
3798
|
-
}
|
|
3799
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-content.svelte
|
|
3800
|
-
var Ja = /* @__PURE__ */ new Set([
|
|
3801
|
-
"$$slots",
|
|
3802
|
-
"$$events",
|
|
3803
|
-
"$$legacy",
|
|
3804
|
-
"content",
|
|
3805
|
-
"isStatic",
|
|
3806
|
-
"onPlaced"
|
|
3807
|
-
]);
|
|
3808
|
-
function Ya(e, n) {
|
|
3809
|
-
let r = t.prop(n, "isStatic", 3, !1), i = t.rest_props(n, Ja);
|
|
3810
|
-
var a = t.comment(), o = t.first_child(a), s = (e) => {
|
|
3811
|
-
qa(e, {
|
|
3812
|
-
get content() {
|
|
3813
|
-
return n.content;
|
|
3814
|
-
},
|
|
3815
|
-
get onPlaced() {
|
|
3816
|
-
return n.onPlaced;
|
|
3817
|
-
}
|
|
3818
|
-
});
|
|
3819
|
-
}, c = (e) => {
|
|
3820
|
-
Ka(e, t.spread_props({
|
|
3821
|
-
get content() {
|
|
3822
|
-
return n.content;
|
|
3823
|
-
},
|
|
3824
|
-
get onPlaced() {
|
|
3825
|
-
return n.onPlaced;
|
|
3826
|
-
}
|
|
3827
|
-
}, () => i));
|
|
3828
|
-
};
|
|
3829
|
-
t.if(o, (e) => {
|
|
3830
|
-
r() ? e(s) : e(c, -1);
|
|
3831
|
-
}), t.append(e, a);
|
|
3832
|
-
}
|
|
3833
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer-inner.svelte
|
|
3834
|
-
var Xa = /* @__PURE__ */ new Set(/* @__PURE__ */ "$$slots.$$events.$$legacy.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled.ref.tooltip.contentPointerEvents".split(".")), Za = t.from_html("<!> <!>", 1);
|
|
3835
|
-
function Qa(e, n) {
|
|
3836
|
-
t.push(n, !0);
|
|
3837
|
-
let r = t.prop(n, "interactOutsideBehavior", 3, "close"), i = t.prop(n, "trapFocus", 3, !0), a = t.prop(n, "isValidEvent", 3, () => !1), o = t.prop(n, "customAnchor", 3, null), s = t.prop(n, "isStatic", 3, !1), c = t.prop(n, "tooltip", 3, !1), l = t.prop(n, "contentPointerEvents", 3, "auto"), u = t.rest_props(n, Xa), d = t.derived(() => n.preventScroll ?? !0), f = t.derived(() => n.strategy ?? (t.get(d) ? "fixed" : "absolute"));
|
|
3838
|
-
Ya(e, {
|
|
3839
|
-
get isStatic() {
|
|
3840
|
-
return s();
|
|
3841
|
-
},
|
|
3842
|
-
get id() {
|
|
3843
|
-
return n.id;
|
|
3844
|
-
},
|
|
3845
|
-
get side() {
|
|
3846
|
-
return n.side;
|
|
3847
|
-
},
|
|
3848
|
-
get sideOffset() {
|
|
3849
|
-
return n.sideOffset;
|
|
3850
|
-
},
|
|
3851
|
-
get align() {
|
|
3852
|
-
return n.align;
|
|
3853
|
-
},
|
|
3854
|
-
get alignOffset() {
|
|
3855
|
-
return n.alignOffset;
|
|
3856
|
-
},
|
|
3857
|
-
get arrowPadding() {
|
|
3858
|
-
return n.arrowPadding;
|
|
3859
|
-
},
|
|
3860
|
-
get avoidCollisions() {
|
|
3861
|
-
return n.avoidCollisions;
|
|
3862
|
-
},
|
|
3863
|
-
get collisionBoundary() {
|
|
3864
|
-
return n.collisionBoundary;
|
|
3865
|
-
},
|
|
3866
|
-
get collisionPadding() {
|
|
3867
|
-
return n.collisionPadding;
|
|
3868
|
-
},
|
|
3869
|
-
get sticky() {
|
|
3870
|
-
return n.sticky;
|
|
3871
|
-
},
|
|
3872
|
-
get hideWhenDetached() {
|
|
3873
|
-
return n.hideWhenDetached;
|
|
3874
|
-
},
|
|
3875
|
-
get updatePositionStrategy() {
|
|
3876
|
-
return n.updatePositionStrategy;
|
|
3877
|
-
},
|
|
3878
|
-
get strategy() {
|
|
3879
|
-
return t.get(f);
|
|
3880
|
-
},
|
|
3881
|
-
get dir() {
|
|
3882
|
-
return n.dir;
|
|
3883
|
-
},
|
|
3884
|
-
get wrapperId() {
|
|
3885
|
-
return n.wrapperId;
|
|
3886
|
-
},
|
|
3887
|
-
get style() {
|
|
3888
|
-
return n.style;
|
|
3889
|
-
},
|
|
3890
|
-
get onPlaced() {
|
|
3891
|
-
return n.onPlaced;
|
|
3892
|
-
},
|
|
3893
|
-
get customAnchor() {
|
|
3894
|
-
return o();
|
|
3895
|
-
},
|
|
3896
|
-
get enabled() {
|
|
3897
|
-
return n.enabled;
|
|
3898
|
-
},
|
|
3899
|
-
get tooltip() {
|
|
3900
|
-
return c();
|
|
3901
|
-
},
|
|
3902
|
-
content: (e, o) => {
|
|
3903
|
-
let s = () => (o?.()).props, c = () => (o?.()).wrapperProps;
|
|
3904
|
-
var f = Za(), p = t.first_child(f), m = (e) => {
|
|
3905
|
-
Wr(e, { get preventScroll() {
|
|
3906
|
-
return t.get(d);
|
|
3907
|
-
} });
|
|
3908
|
-
}, h = (e) => {
|
|
3909
|
-
Wr(e, { get preventScroll() {
|
|
3910
|
-
return t.get(d);
|
|
3911
|
-
} });
|
|
3912
|
-
};
|
|
3913
|
-
t.if(p, (e) => {
|
|
3914
|
-
n.forceMount && n.enabled ? e(m) : n.forceMount || e(h, 1);
|
|
3915
|
-
}), wr(t.sibling(p, 2), {
|
|
3916
|
-
get onOpenAutoFocus() {
|
|
3917
|
-
return n.onOpenAutoFocus;
|
|
3918
|
-
},
|
|
3919
|
-
get onCloseAutoFocus() {
|
|
3920
|
-
return n.onCloseAutoFocus;
|
|
3921
|
-
},
|
|
3922
|
-
get loop() {
|
|
3923
|
-
return n.loop;
|
|
3924
|
-
},
|
|
3925
|
-
get enabled() {
|
|
3926
|
-
return n.enabled;
|
|
3927
|
-
},
|
|
3928
|
-
get trapFocus() {
|
|
3929
|
-
return i();
|
|
3930
|
-
},
|
|
3931
|
-
get forceMount() {
|
|
3932
|
-
return n.forceMount;
|
|
3933
|
-
},
|
|
3934
|
-
get ref() {
|
|
3935
|
-
return n.ref;
|
|
3936
|
-
},
|
|
3937
|
-
focusScope: (e, i) => {
|
|
3938
|
-
let o = () => (i?.()).props;
|
|
3939
|
-
xr(e, {
|
|
3940
|
-
get onEscapeKeydown() {
|
|
3941
|
-
return n.onEscapeKeydown;
|
|
3942
|
-
},
|
|
3943
|
-
get escapeKeydownBehavior() {
|
|
3944
|
-
return n.escapeKeydownBehavior;
|
|
3945
|
-
},
|
|
3946
|
-
get enabled() {
|
|
3947
|
-
return n.enabled;
|
|
3948
|
-
},
|
|
3949
|
-
get ref() {
|
|
3950
|
-
return n.ref;
|
|
3951
|
-
},
|
|
3952
|
-
children: (e, i) => {
|
|
3953
|
-
vr(e, {
|
|
3954
|
-
get id() {
|
|
3955
|
-
return n.id;
|
|
3956
|
-
},
|
|
3957
|
-
get onInteractOutside() {
|
|
3958
|
-
return n.onInteractOutside;
|
|
3959
|
-
},
|
|
3960
|
-
get onFocusOutside() {
|
|
3961
|
-
return n.onFocusOutside;
|
|
3962
|
-
},
|
|
3963
|
-
get interactOutsideBehavior() {
|
|
3964
|
-
return r();
|
|
3965
|
-
},
|
|
3966
|
-
get isValidEvent() {
|
|
3967
|
-
return a();
|
|
3968
|
-
},
|
|
3969
|
-
get enabled() {
|
|
3970
|
-
return n.enabled;
|
|
3971
|
-
},
|
|
3972
|
-
get ref() {
|
|
3973
|
-
return n.ref;
|
|
3974
|
-
},
|
|
3975
|
-
children: (e, r) => {
|
|
3976
|
-
let i = () => (r?.()).props;
|
|
3977
|
-
jr(e, {
|
|
3978
|
-
get id() {
|
|
3979
|
-
return n.id;
|
|
3980
|
-
},
|
|
3981
|
-
get preventOverflowTextSelection() {
|
|
3982
|
-
return n.preventOverflowTextSelection;
|
|
3983
|
-
},
|
|
3984
|
-
get onPointerDown() {
|
|
3985
|
-
return n.onPointerDown;
|
|
3986
|
-
},
|
|
3987
|
-
get onPointerUp() {
|
|
3988
|
-
return n.onPointerUp;
|
|
3989
|
-
},
|
|
3990
|
-
get enabled() {
|
|
3991
|
-
return n.enabled;
|
|
3992
|
-
},
|
|
3993
|
-
get ref() {
|
|
3994
|
-
return n.ref;
|
|
3995
|
-
},
|
|
3996
|
-
children: (e, r) => {
|
|
3997
|
-
var a = t.comment(), d = t.first_child(a);
|
|
3998
|
-
{
|
|
3999
|
-
let e = t.derived(() => ({
|
|
4000
|
-
props: je(u, s(), i(), o(), { style: { pointerEvents: l() } }),
|
|
4001
|
-
wrapperProps: c()
|
|
4002
|
-
}));
|
|
4003
|
-
t.snippet(d, () => n.popper ?? t.noop, () => t.get(e));
|
|
4004
|
-
}
|
|
4005
|
-
t.append(e, a);
|
|
4006
|
-
},
|
|
4007
|
-
$$slots: { default: !0 }
|
|
4008
|
-
});
|
|
4009
|
-
},
|
|
4010
|
-
$$slots: { default: !0 }
|
|
4011
|
-
});
|
|
4012
|
-
},
|
|
4013
|
-
$$slots: { default: !0 }
|
|
4014
|
-
});
|
|
4015
|
-
},
|
|
4016
|
-
$$slots: { focusScope: !0 }
|
|
4017
|
-
}), t.append(e, f);
|
|
4018
|
-
},
|
|
4019
|
-
$$slots: { content: !0 }
|
|
4020
|
-
}), t.pop();
|
|
4021
|
-
}
|
|
4022
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer.svelte
|
|
4023
|
-
var $a = /* @__PURE__ */ new Set(/* @__PURE__ */ "$$slots.$$events.$$legacy.popper.open.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.ref.shouldRender".split("."));
|
|
4024
|
-
function eo(e, n) {
|
|
4025
|
-
let r = t.prop(n, "interactOutsideBehavior", 3, "close"), i = t.prop(n, "trapFocus", 3, !0), a = t.prop(n, "isValidEvent", 3, () => !1), o = t.prop(n, "customAnchor", 3, null), s = t.prop(n, "isStatic", 3, !1), c = t.rest_props(n, $a);
|
|
4026
|
-
var l = t.comment(), u = t.first_child(l), d = (e) => {
|
|
4027
|
-
Qa(e, t.spread_props({
|
|
4028
|
-
get popper() {
|
|
4029
|
-
return n.popper;
|
|
4030
|
-
},
|
|
4031
|
-
get onEscapeKeydown() {
|
|
4032
|
-
return n.onEscapeKeydown;
|
|
4033
|
-
},
|
|
4034
|
-
get escapeKeydownBehavior() {
|
|
4035
|
-
return n.escapeKeydownBehavior;
|
|
4036
|
-
},
|
|
4037
|
-
get preventOverflowTextSelection() {
|
|
4038
|
-
return n.preventOverflowTextSelection;
|
|
4039
|
-
},
|
|
4040
|
-
get id() {
|
|
4041
|
-
return n.id;
|
|
4042
|
-
},
|
|
4043
|
-
get onPointerDown() {
|
|
4044
|
-
return n.onPointerDown;
|
|
4045
|
-
},
|
|
4046
|
-
get onPointerUp() {
|
|
4047
|
-
return n.onPointerUp;
|
|
4048
|
-
},
|
|
4049
|
-
get side() {
|
|
4050
|
-
return n.side;
|
|
4051
|
-
},
|
|
4052
|
-
get sideOffset() {
|
|
4053
|
-
return n.sideOffset;
|
|
4054
|
-
},
|
|
4055
|
-
get align() {
|
|
4056
|
-
return n.align;
|
|
4057
|
-
},
|
|
4058
|
-
get alignOffset() {
|
|
4059
|
-
return n.alignOffset;
|
|
4060
|
-
},
|
|
4061
|
-
get arrowPadding() {
|
|
4062
|
-
return n.arrowPadding;
|
|
4063
|
-
},
|
|
4064
|
-
get avoidCollisions() {
|
|
4065
|
-
return n.avoidCollisions;
|
|
4066
|
-
},
|
|
4067
|
-
get collisionBoundary() {
|
|
4068
|
-
return n.collisionBoundary;
|
|
4069
|
-
},
|
|
4070
|
-
get collisionPadding() {
|
|
4071
|
-
return n.collisionPadding;
|
|
4072
|
-
},
|
|
4073
|
-
get sticky() {
|
|
4074
|
-
return n.sticky;
|
|
4075
|
-
},
|
|
4076
|
-
get hideWhenDetached() {
|
|
4077
|
-
return n.hideWhenDetached;
|
|
4078
|
-
},
|
|
4079
|
-
get updatePositionStrategy() {
|
|
4080
|
-
return n.updatePositionStrategy;
|
|
4081
|
-
},
|
|
4082
|
-
get strategy() {
|
|
4083
|
-
return n.strategy;
|
|
4084
|
-
},
|
|
4085
|
-
get dir() {
|
|
4086
|
-
return n.dir;
|
|
4087
|
-
},
|
|
4088
|
-
get preventScroll() {
|
|
4089
|
-
return n.preventScroll;
|
|
4090
|
-
},
|
|
4091
|
-
get wrapperId() {
|
|
4092
|
-
return n.wrapperId;
|
|
4093
|
-
},
|
|
4094
|
-
get style() {
|
|
4095
|
-
return n.style;
|
|
4096
|
-
},
|
|
4097
|
-
get onPlaced() {
|
|
4098
|
-
return n.onPlaced;
|
|
4099
|
-
},
|
|
4100
|
-
get customAnchor() {
|
|
4101
|
-
return o();
|
|
4102
|
-
},
|
|
4103
|
-
get isStatic() {
|
|
4104
|
-
return s();
|
|
4105
|
-
},
|
|
4106
|
-
get enabled() {
|
|
4107
|
-
return n.open;
|
|
4108
|
-
},
|
|
4109
|
-
get onInteractOutside() {
|
|
4110
|
-
return n.onInteractOutside;
|
|
4111
|
-
},
|
|
4112
|
-
get onCloseAutoFocus() {
|
|
4113
|
-
return n.onCloseAutoFocus;
|
|
4114
|
-
},
|
|
4115
|
-
get onOpenAutoFocus() {
|
|
4116
|
-
return n.onOpenAutoFocus;
|
|
4117
|
-
},
|
|
4118
|
-
get interactOutsideBehavior() {
|
|
4119
|
-
return r();
|
|
4120
|
-
},
|
|
4121
|
-
get loop() {
|
|
4122
|
-
return n.loop;
|
|
4123
|
-
},
|
|
4124
|
-
get trapFocus() {
|
|
4125
|
-
return i();
|
|
4126
|
-
},
|
|
4127
|
-
get isValidEvent() {
|
|
4128
|
-
return a();
|
|
4129
|
-
},
|
|
4130
|
-
get onFocusOutside() {
|
|
4131
|
-
return n.onFocusOutside;
|
|
4132
|
-
},
|
|
4133
|
-
forceMount: !1,
|
|
4134
|
-
get ref() {
|
|
4135
|
-
return n.ref;
|
|
4136
|
-
}
|
|
4137
|
-
}, () => c));
|
|
4138
|
-
};
|
|
4139
|
-
t.if(u, (e) => {
|
|
4140
|
-
n.shouldRender && e(d);
|
|
4141
|
-
}), t.append(e, l);
|
|
4142
|
-
}
|
|
4143
|
-
// ../node_modules/.bun/bits-ui@2.19.0+c45836e0534e7f3d/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer-force-mount.svelte
|
|
4144
|
-
var to = /* @__PURE__ */ new Set(/* @__PURE__ */ "$$slots.$$events.$$legacy.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled".split("."));
|
|
4145
|
-
function no(e, n) {
|
|
4146
|
-
let r = t.prop(n, "interactOutsideBehavior", 3, "close"), i = t.prop(n, "trapFocus", 3, !0), a = t.prop(n, "isValidEvent", 3, () => !1), o = t.prop(n, "customAnchor", 3, null), s = t.prop(n, "isStatic", 3, !1), c = t.rest_props(n, to);
|
|
4147
|
-
Qa(e, t.spread_props({
|
|
4148
|
-
get popper() {
|
|
4149
|
-
return n.popper;
|
|
4150
|
-
},
|
|
4151
|
-
get onEscapeKeydown() {
|
|
4152
|
-
return n.onEscapeKeydown;
|
|
4153
|
-
},
|
|
4154
|
-
get escapeKeydownBehavior() {
|
|
4155
|
-
return n.escapeKeydownBehavior;
|
|
4156
|
-
},
|
|
4157
|
-
get preventOverflowTextSelection() {
|
|
4158
|
-
return n.preventOverflowTextSelection;
|
|
4159
|
-
},
|
|
4160
|
-
get id() {
|
|
4161
|
-
return n.id;
|
|
4162
|
-
},
|
|
4163
|
-
get onPointerDown() {
|
|
4164
|
-
return n.onPointerDown;
|
|
4165
|
-
},
|
|
4166
|
-
get onPointerUp() {
|
|
4167
|
-
return n.onPointerUp;
|
|
4168
|
-
},
|
|
4169
|
-
get side() {
|
|
4170
|
-
return n.side;
|
|
4171
|
-
},
|
|
4172
|
-
get sideOffset() {
|
|
4173
|
-
return n.sideOffset;
|
|
4174
|
-
},
|
|
4175
|
-
get align() {
|
|
4176
|
-
return n.align;
|
|
4177
|
-
},
|
|
4178
|
-
get alignOffset() {
|
|
4179
|
-
return n.alignOffset;
|
|
4180
|
-
},
|
|
4181
|
-
get arrowPadding() {
|
|
4182
|
-
return n.arrowPadding;
|
|
4183
|
-
},
|
|
4184
|
-
get avoidCollisions() {
|
|
4185
|
-
return n.avoidCollisions;
|
|
4186
|
-
},
|
|
4187
|
-
get collisionBoundary() {
|
|
4188
|
-
return n.collisionBoundary;
|
|
4189
|
-
},
|
|
4190
|
-
get collisionPadding() {
|
|
4191
|
-
return n.collisionPadding;
|
|
4192
|
-
},
|
|
4193
|
-
get sticky() {
|
|
4194
|
-
return n.sticky;
|
|
4195
|
-
},
|
|
4196
|
-
get hideWhenDetached() {
|
|
4197
|
-
return n.hideWhenDetached;
|
|
4198
|
-
},
|
|
4199
|
-
get updatePositionStrategy() {
|
|
4200
|
-
return n.updatePositionStrategy;
|
|
4201
|
-
},
|
|
4202
|
-
get strategy() {
|
|
4203
|
-
return n.strategy;
|
|
4204
|
-
},
|
|
4205
|
-
get dir() {
|
|
4206
|
-
return n.dir;
|
|
4207
|
-
},
|
|
4208
|
-
get preventScroll() {
|
|
4209
|
-
return n.preventScroll;
|
|
4210
|
-
},
|
|
4211
|
-
get wrapperId() {
|
|
4212
|
-
return n.wrapperId;
|
|
4213
|
-
},
|
|
4214
|
-
get style() {
|
|
4215
|
-
return n.style;
|
|
4216
|
-
},
|
|
4217
|
-
get onPlaced() {
|
|
4218
|
-
return n.onPlaced;
|
|
4219
|
-
},
|
|
4220
|
-
get customAnchor() {
|
|
4221
|
-
return o();
|
|
4222
|
-
},
|
|
4223
|
-
get isStatic() {
|
|
4224
|
-
return s();
|
|
4225
|
-
},
|
|
4226
|
-
get enabled() {
|
|
4227
|
-
return n.enabled;
|
|
4228
|
-
},
|
|
4229
|
-
get onInteractOutside() {
|
|
4230
|
-
return n.onInteractOutside;
|
|
4231
|
-
},
|
|
4232
|
-
get onCloseAutoFocus() {
|
|
4233
|
-
return n.onCloseAutoFocus;
|
|
4234
|
-
},
|
|
4235
|
-
get onOpenAutoFocus() {
|
|
4236
|
-
return n.onOpenAutoFocus;
|
|
4237
|
-
},
|
|
4238
|
-
get interactOutsideBehavior() {
|
|
4239
|
-
return r();
|
|
4240
|
-
},
|
|
4241
|
-
get loop() {
|
|
4242
|
-
return n.loop;
|
|
4243
|
-
},
|
|
4244
|
-
get trapFocus() {
|
|
4245
|
-
return i();
|
|
4246
|
-
},
|
|
4247
|
-
get isValidEvent() {
|
|
4248
|
-
return a();
|
|
4249
|
-
},
|
|
4250
|
-
get onFocusOutside() {
|
|
4251
|
-
return n.onFocusOutside;
|
|
4252
|
-
}
|
|
4253
|
-
}, () => c, { forceMount: !0 }));
|
|
4254
|
-
}
|
|
4255
|
-
export { Oe as $, ft as A, tt as B, It as C, lt as D, ct as E, _t as F, N as G, st as H, vt as I, j as J, et as K, yt as L, mt as M, ht as N, ut as O, gt as P, je as Q, bt as R, F as S, Ot as T, it as U, rt as V, at as W, A as X, Be as Y, k as Z, Fn as _, Aa as a, Pn as b, lr as c, ir as d, v as et, ur as f, In as g, Bn as h, Wa as i, pt as j, dt as k, cr as l, Vn as m, eo as n, dr as o, fr as p, M as q, Ga as r, or as s, no as t, ar as u, Ln as v, Dt as w, Lt as x, Nn as y, nt as z };
|