@powerhousedao/connect 6.0.0-dev.12 → 6.0.0-dev.121
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/.env +1 -1
- package/dist/AddDriveModal-A2SuEFot.js +88 -0
- package/dist/AddDriveModal-A2SuEFot.js.map +1 -0
- package/dist/ClearStorageModal-YXOJ7a-i.js +44 -0
- package/dist/ClearStorageModal-YXOJ7a-i.js.map +1 -0
- package/dist/CookiesPolicyModal-Gae1QuhA.js +30 -0
- package/dist/CookiesPolicyModal-Gae1QuhA.js.map +1 -0
- package/dist/CreateDocumentModal-5i6rmv3C.js +28 -0
- package/dist/CreateDocumentModal-5i6rmv3C.js.map +1 -0
- package/dist/DebugSettingsModal-Ko7M_1hz.js +139 -0
- package/dist/DebugSettingsModal-Ko7M_1hz.js.map +1 -0
- package/dist/DeleteDriveModal-BbAx_yXt.js +40 -0
- package/dist/DeleteDriveModal-BbAx_yXt.js.map +1 -0
- package/dist/DeleteItemModal-CkWegLlh.js +39 -0
- package/dist/DeleteItemModal-CkWegLlh.js.map +1 -0
- package/dist/DisclaimerModal-CCnvwoB5.js +21 -0
- package/dist/DisclaimerModal-CCnvwoB5.js.map +1 -0
- package/dist/DriveSettingsModal-DxMjOsLg.js +45 -0
- package/dist/DriveSettingsModal-DxMjOsLg.js.map +1 -0
- package/dist/ExportDocumentWithErrorsModal-hgliF8Gy.js +41 -0
- package/dist/ExportDocumentWithErrorsModal-hgliF8Gy.js.map +1 -0
- package/dist/InspectorModal-C4rE0Y5E.js +302 -0
- package/dist/InspectorModal-C4rE0Y5E.js.map +1 -0
- package/dist/MissingPackageModal-BOeTH4V6.js +33 -0
- package/dist/MissingPackageModal-BOeTH4V6.js.map +1 -0
- package/dist/SettingsModal-BXxXWLMD.js +153 -0
- package/dist/SettingsModal-BXxXWLMD.js.map +1 -0
- package/dist/UpgradeDriveModal-DldcNCaT.js +31 -0
- package/dist/UpgradeDriveModal-DldcNCaT.js.map +1 -0
- package/dist/connect.config-CUbxYkCy.js +140 -0
- package/dist/connect.config-CUbxYkCy.js.map +1 -0
- package/dist/i18n-Ch408v5-.js +125 -0
- package/dist/i18n-Ch408v5-.js.map +1 -0
- package/dist/load-Bulh94bS.js +105 -0
- package/dist/load-Bulh94bS.js.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +9 -0
- package/dist/main.js.map +1 -0
- package/dist/package-DZSXLZjW.js +109 -0
- package/dist/package-DZSXLZjW.js.map +1 -0
- package/dist/pglite.worker.d.ts +1 -0
- package/dist/pglite.worker.js +15 -0
- package/dist/pglite.worker.js.map +1 -0
- package/dist/reactor-C8wn290P.js +568 -0
- package/dist/reactor-C8wn290P.js.map +1 -0
- package/dist/registerServiceWorker-fSbJUcrq.js +76 -0
- package/dist/registerServiceWorker-fSbJUcrq.js.map +1 -0
- package/dist/sidebar-BX2MNrOv.js +1147 -0
- package/dist/sidebar-BX2MNrOv.js.map +1 -0
- package/dist/start-connect.d.ts +7 -0
- package/dist/start-connect.d.ts.map +1 -0
- package/dist/start-connect.js +14 -0
- package/dist/start-connect.js.map +1 -0
- package/{lib → dist}/style.css +1874 -258
- package/dist/toast-iD-70hL8.js +16 -0
- package/dist/toast-iD-70hL8.js.map +1 -0
- package/dist/useRegistryPackages-Ctlhv061.js +96 -0
- package/dist/useRegistryPackages-Ctlhv061.js.map +1 -0
- package/heroku/Dockerfile +1 -1
- package/package.json +53 -122
- package/dist/assets/AddDriveModal-DYdMKRBb.js +0 -1
- package/dist/assets/ClearStorageModal-D2VSUrKM.js +0 -1
- package/dist/assets/CookiesPolicyModal-vJhwIE5D.js +0 -1
- package/dist/assets/CreateDocumentModal-BxVL-Tm-.js +0 -1
- package/dist/assets/DebugSettingsModal-Dl-uJwqJ.js +0 -1
- package/dist/assets/DeleteDriveModal-CbmpTwLo.js +0 -1
- package/dist/assets/DeleteItemModal-7msm3BXu.js +0 -1
- package/dist/assets/DisclaimerModal-fTNJBF7Y.js +0 -1
- package/dist/assets/DriveSettingsModal-Dj7NxEEn.js +0 -1
- package/dist/assets/ExportDocumentWithErrorsModal-CWPT6tyy.js +0 -1
- package/dist/assets/SettingsModal-BrC-22Pq.js +0 -1
- package/dist/assets/UpgradeDriveModal-B1PkFrgc.js +0 -1
- package/dist/assets/_virtual_ph_external-packages-CM1tCR4L.js +0 -1
- package/dist/assets/config-CU-aFfVJ.js +0 -1
- package/dist/assets/connect-loader-CvOC68Ih.mp4 +0 -0
- package/dist/assets/design_system-C9rqhsgB.js +0 -45
- package/dist/assets/design_system_connect-D83LcbxV.js +0 -47
- package/dist/assets/design_system_ui-BBjFHSQI.js +0 -1
- package/dist/assets/document_drive-Bubv8iix.js +0 -316
- package/dist/assets/document_engineering-BlVUiZtL.js +0 -1
- package/dist/assets/document_model-_oCbt5YE.js +0 -230
- package/dist/assets/document_model_editor-BMc0xTih.js +0 -25
- package/dist/assets/drive_explorer-CZ0gwuur.js +0 -2
- package/dist/assets/graphql-AKTCpY7l.js +0 -75
- package/dist/assets/graphql-editor-AqScv-sL.js +0 -73
- package/dist/assets/graphql_request-BJtmW2JS.js +0 -3
- package/dist/assets/hmr-LMNkvzP7.js +0 -1
- package/dist/assets/home-bg-BEhF9NuW.png +0 -0
- package/dist/assets/home-bg-BRYzhkhi.avif +0 -0
- package/dist/assets/hooks-Ck8stgJI.js +0 -12
- package/dist/assets/index-DYdiZMfn.css +0 -1
- package/dist/assets/index-UAgaBjNi.js +0 -18
- package/dist/assets/index-mDB_DELe.js +0 -28
- package/dist/assets/json-editor-B9OMiwEz.js +0 -1
- package/dist/assets/nodefs-CxFmoiox.js +0 -1
- package/dist/assets/opfs-ahp-Cj7B8aNP.js +0 -3
- package/dist/assets/pg_dump-CW0pN9tG.wasm +0 -0
- package/dist/assets/postgres-CkP7QCDB.data +0 -0
- package/dist/assets/postgres-CyuUVpXN.wasm +0 -0
- package/dist/assets/powerhouse-rounded-CeKGGUG4.png +0 -0
- package/dist/assets/react/jsx-runtime-DldvXD6N.js +0 -1
- package/dist/assets/react-DQSxOgtG.js +0 -1
- package/dist/assets/react-dom/client-BVPiT_FE.js +0 -9
- package/dist/assets/react-dom-D6zQJsh6.js +0 -1
- package/dist/assets/reactor_browser-yx1Q9KgX.js +0 -129
- package/dist/assets/renown-short-hover-BiSLBV7L.png +0 -0
- package/dist/assets/rwa-report-Bb0W5-ac.png +0 -0
- package/dist/assets/sentry_browser-B4YoBIIG.js +0 -498
- package/dist/assets/sentry_react-cODD7zWc.js +0 -3
- package/dist/assets/state-schemas-CtdvQS_F.js +0 -2
- package/dist/assets/tailwind_merge-Dr4f9Rms.js +0 -1
- package/dist/assets/zod-9j67vCAu.js +0 -39
- package/dist/icon.ico +0 -0
- package/dist/index.html +0 -51
- package/dist/robots.txt +0 -3
- package/dist/settings.png +0 -0
- package/lib/cypress/e2e/navigation.cy.d.ts +0 -2
- package/lib/cypress/e2e/navigation.cy.d.ts.map +0 -1
- package/lib/cypress/e2e/navigation.cy.js +0 -221
- package/lib/cypress/e2e/navigation.cy.js.map +0 -1
- package/lib/cypress/e2e/utils/index.d.ts +0 -15
- package/lib/cypress/e2e/utils/index.d.ts.map +0 -1
- package/lib/cypress/e2e/utils/index.js +0 -121
- package/lib/cypress/e2e/utils/index.js.map +0 -1
- package/lib/cypress/support/commands.d.ts +0 -2
- package/lib/cypress/support/commands.d.ts.map +0 -1
- package/lib/cypress/support/commands.js +0 -29
- package/lib/cypress/support/commands.js.map +0 -1
- package/lib/cypress/support/e2e.d.ts +0 -2
- package/lib/cypress/support/e2e.d.ts.map +0 -1
- package/lib/cypress/support/e2e.js +0 -19
- package/lib/cypress/support/e2e.js.map +0 -1
- package/lib/cypress.config.d.ts +0 -3
- package/lib/cypress.config.d.ts.map +0 -1
- package/lib/cypress.config.js +0 -15
- package/lib/cypress.config.js.map +0 -1
- package/lib/package.copy.json +0 -177
- package/lib/scripts/render-skeleton.d.ts +0 -2
- package/lib/scripts/render-skeleton.d.ts.map +0 -1
- package/lib/scripts/render-skeleton.js +0 -11
- package/lib/scripts/render-skeleton.js.map +0 -1
- package/lib/src/components/analytics.d.ts +0 -8
- package/lib/src/components/analytics.d.ts.map +0 -1
- package/lib/src/components/analytics.js +0 -30
- package/lib/src/components/analytics.js.map +0 -1
- package/lib/src/components/app-loader.d.ts +0 -3
- package/lib/src/components/app-loader.d.ts.map +0 -1
- package/lib/src/components/app-loader.js +0 -20
- package/lib/src/components/app-loader.js.map +0 -1
- package/lib/src/components/app-skeleton.d.ts +0 -3
- package/lib/src/components/app-skeleton.d.ts.map +0 -1
- package/lib/src/components/app-skeleton.js +0 -38
- package/lib/src/components/app-skeleton.js.map +0 -1
- package/lib/src/components/app.d.ts +0 -2
- package/lib/src/components/app.d.ts.map +0 -1
- package/lib/src/components/app.js +0 -29
- package/lib/src/components/app.js.map +0 -1
- package/lib/src/components/button.d.ts +0 -3
- package/lib/src/components/button.d.ts.map +0 -1
- package/lib/src/components/button.js +0 -7
- package/lib/src/components/button.js.map +0 -1
- package/lib/src/components/cookie-banner.d.ts +0 -2
- package/lib/src/components/cookie-banner.d.ts.map +0 -1
- package/lib/src/components/cookie-banner.js +0 -48
- package/lib/src/components/cookie-banner.js.map +0 -1
- package/lib/src/components/document-editor-container.d.ts +0 -2
- package/lib/src/components/document-editor-container.d.ts.map +0 -1
- package/lib/src/components/document-editor-container.js +0 -65
- package/lib/src/components/document-editor-container.js.map +0 -1
- package/lib/src/components/dots-loader.d.ts +0 -2
- package/lib/src/components/dots-loader.d.ts.map +0 -1
- package/lib/src/components/dots-loader.js +0 -15
- package/lib/src/components/dots-loader.js.map +0 -1
- package/lib/src/components/drive-editor-container.d.ts +0 -2
- package/lib/src/components/drive-editor-container.d.ts.map +0 -1
- package/lib/src/components/drive-editor-container.js +0 -22
- package/lib/src/components/drive-editor-container.js.map +0 -1
- package/lib/src/components/drive-icon.d.ts +0 -5
- package/lib/src/components/drive-icon.d.ts.map +0 -1
- package/lib/src/components/drive-icon.js +0 -15
- package/lib/src/components/drive-icon.js.map +0 -1
- package/lib/src/components/editor-loader.d.ts +0 -9
- package/lib/src/components/editor-loader.d.ts.map +0 -1
- package/lib/src/components/editor-loader.js +0 -19
- package/lib/src/components/editor-loader.js.map +0 -1
- package/lib/src/components/editors.d.ts +0 -10
- package/lib/src/components/editors.d.ts.map +0 -1
- package/lib/src/components/editors.js +0 -87
- package/lib/src/components/editors.js.map +0 -1
- package/lib/src/components/error-boundary.d.ts +0 -103
- package/lib/src/components/error-boundary.d.ts.map +0 -1
- package/lib/src/components/error-boundary.js +0 -104
- package/lib/src/components/error-boundary.js.map +0 -1
- package/lib/src/components/footer.d.ts +0 -2
- package/lib/src/components/footer.d.ts.map +0 -1
- package/lib/src/components/footer.js +0 -16
- package/lib/src/components/footer.js.map +0 -1
- package/lib/src/components/index.d.ts +0 -22
- package/lib/src/components/index.d.ts.map +0 -1
- package/lib/src/components/index.js +0 -22
- package/lib/src/components/index.js.map +0 -1
- package/lib/src/components/login.d.ts +0 -2
- package/lib/src/components/login.d.ts.map +0 -1
- package/lib/src/components/login.js +0 -12
- package/lib/src/components/login.js.map +0 -1
- package/lib/src/components/modal/index.d.ts +0 -18
- package/lib/src/components/modal/index.d.ts.map +0 -1
- package/lib/src/components/modal/index.js +0 -18
- package/lib/src/components/modal/index.js.map +0 -1
- package/lib/src/components/modal/modals/AddDriveModal.d.ts +0 -2
- package/lib/src/components/modal/modals/AddDriveModal.d.ts.map +0 -1
- package/lib/src/components/modal/modals/AddDriveModal.js +0 -121
- package/lib/src/components/modal/modals/AddDriveModal.js.map +0 -1
- package/lib/src/components/modal/modals/ClearStorageModal.d.ts +0 -2
- package/lib/src/components/modal/modals/ClearStorageModal.d.ts.map +0 -1
- package/lib/src/components/modal/modals/ClearStorageModal.js +0 -35
- package/lib/src/components/modal/modals/ClearStorageModal.js.map +0 -1
- package/lib/src/components/modal/modals/CookiesPolicyModal.d.ts +0 -2
- package/lib/src/components/modal/modals/CookiesPolicyModal.d.ts.map +0 -1
- package/lib/src/components/modal/modals/CookiesPolicyModal.js +0 -16
- package/lib/src/components/modal/modals/CookiesPolicyModal.js.map +0 -1
- package/lib/src/components/modal/modals/CreateDocumentModal.d.ts +0 -2
- package/lib/src/components/modal/modals/CreateDocumentModal.d.ts.map +0 -1
- package/lib/src/components/modal/modals/CreateDocumentModal.js +0 -24
- package/lib/src/components/modal/modals/CreateDocumentModal.js.map +0 -1
- package/lib/src/components/modal/modals/DebugSettingsModal.d.ts +0 -2
- package/lib/src/components/modal/modals/DebugSettingsModal.d.ts.map +0 -1
- package/lib/src/components/modal/modals/DebugSettingsModal.js +0 -108
- package/lib/src/components/modal/modals/DebugSettingsModal.js.map +0 -1
- package/lib/src/components/modal/modals/DeleteDriveModal.d.ts +0 -2
- package/lib/src/components/modal/modals/DeleteDriveModal.d.ts.map +0 -1
- package/lib/src/components/modal/modals/DeleteDriveModal.js +0 -32
- package/lib/src/components/modal/modals/DeleteDriveModal.js.map +0 -1
- package/lib/src/components/modal/modals/DeleteItemModal.d.ts +0 -3
- package/lib/src/components/modal/modals/DeleteItemModal.d.ts.map +0 -1
- package/lib/src/components/modal/modals/DeleteItemModal.js +0 -33
- package/lib/src/components/modal/modals/DeleteItemModal.js.map +0 -1
- package/lib/src/components/modal/modals/DisclaimerModal.d.ts +0 -3
- package/lib/src/components/modal/modals/DisclaimerModal.d.ts.map +0 -1
- package/lib/src/components/modal/modals/DisclaimerModal.js +0 -12
- package/lib/src/components/modal/modals/DisclaimerModal.js.map +0 -1
- package/lib/src/components/modal/modals/DriveSettingsModal.d.ts +0 -2
- package/lib/src/components/modal/modals/DriveSettingsModal.d.ts.map +0 -1
- package/lib/src/components/modal/modals/DriveSettingsModal.js +0 -28
- package/lib/src/components/modal/modals/DriveSettingsModal.js.map +0 -1
- package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.d.ts +0 -2
- package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.d.ts.map +0 -1
- package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.js +0 -30
- package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.js.map +0 -1
- package/lib/src/components/modal/modals/InspectorModal/InspectorModal.d.ts +0 -2
- package/lib/src/components/modal/modals/InspectorModal/InspectorModal.d.ts.map +0 -1
- package/lib/src/components/modal/modals/InspectorModal/InspectorModal.js +0 -29
- package/lib/src/components/modal/modals/InspectorModal/InspectorModal.js.map +0 -1
- package/lib/src/components/modal/modals/InspectorModal/index.d.ts +0 -2
- package/lib/src/components/modal/modals/InspectorModal/index.d.ts.map +0 -1
- package/lib/src/components/modal/modals/InspectorModal/index.js +0 -2
- package/lib/src/components/modal/modals/InspectorModal/index.js.map +0 -1
- package/lib/src/components/modal/modals/InspectorModal/useDbExplorer.d.ts +0 -31
- package/lib/src/components/modal/modals/InspectorModal/useDbExplorer.d.ts.map +0 -1
- package/lib/src/components/modal/modals/InspectorModal/useDbExplorer.js +0 -211
- package/lib/src/components/modal/modals/InspectorModal/useDbExplorer.js.map +0 -1
- package/lib/src/components/modal/modals/InspectorModal/useRemotesInspector.d.ts +0 -4
- package/lib/src/components/modal/modals/InspectorModal/useRemotesInspector.d.ts.map +0 -1
- package/lib/src/components/modal/modals/InspectorModal/useRemotesInspector.js +0 -12
- package/lib/src/components/modal/modals/InspectorModal/useRemotesInspector.js.map +0 -1
- package/lib/src/components/modal/modals/SettingsModal.d.ts +0 -3
- package/lib/src/components/modal/modals/SettingsModal.d.ts.map +0 -1
- package/lib/src/components/modal/modals/SettingsModal.js +0 -45
- package/lib/src/components/modal/modals/SettingsModal.js.map +0 -1
- package/lib/src/components/modal/modals/UpgradeDriveModal.d.ts +0 -3
- package/lib/src/components/modal/modals/UpgradeDriveModal.d.ts.map +0 -1
- package/lib/src/components/modal/modals/UpgradeDriveModal.js +0 -21
- package/lib/src/components/modal/modals/UpgradeDriveModal.js.map +0 -1
- package/lib/src/components/modal/modals/settings/about.d.ts +0 -2
- package/lib/src/components/modal/modals/settings/about.d.ts.map +0 -1
- package/lib/src/components/modal/modals/settings/about.js +0 -10
- package/lib/src/components/modal/modals/settings/about.js.map +0 -1
- package/lib/src/components/modal/modals/settings/danger-zone.d.ts +0 -2
- package/lib/src/components/modal/modals/settings/danger-zone.d.ts.map +0 -1
- package/lib/src/components/modal/modals/settings/danger-zone.js +0 -15
- package/lib/src/components/modal/modals/settings/danger-zone.js.map +0 -1
- package/lib/src/components/modal/modals/settings/default-editor.d.ts +0 -2
- package/lib/src/components/modal/modals/settings/default-editor.d.ts.map +0 -1
- package/lib/src/components/modal/modals/settings/default-editor.js +0 -18
- package/lib/src/components/modal/modals/settings/default-editor.js.map +0 -1
- package/lib/src/components/modal/modals/settings/package-manager.d.ts +0 -3
- package/lib/src/components/modal/modals/settings/package-manager.d.ts.map +0 -1
- package/lib/src/components/modal/modals/settings/package-manager.js +0 -87
- package/lib/src/components/modal/modals/settings/package-manager.js.map +0 -1
- package/lib/src/components/modal/modals-container.d.ts +0 -2
- package/lib/src/components/modal/modals-container.d.ts.map +0 -1
- package/lib/src/components/modal/modals-container.js +0 -66
- package/lib/src/components/modal/modals-container.js.map +0 -1
- package/lib/src/components/ph-logo.d.ts +0 -2
- package/lib/src/components/ph-logo.d.ts.map +0 -1
- package/lib/src/components/ph-logo.js +0 -7
- package/lib/src/components/ph-logo.js.map +0 -1
- package/lib/src/components/reload-connect-toast.d.ts +0 -2
- package/lib/src/components/reload-connect-toast.d.ts.map +0 -1
- package/lib/src/components/reload-connect-toast.js +0 -7
- package/lib/src/components/reload-connect-toast.js.map +0 -1
- package/lib/src/components/root.d.ts +0 -2
- package/lib/src/components/root.d.ts.map +0 -1
- package/lib/src/components/root.js +0 -8
- package/lib/src/components/root.js.map +0 -1
- package/lib/src/components/router.d.ts +0 -2
- package/lib/src/components/router.d.ts.map +0 -1
- package/lib/src/components/router.js +0 -41
- package/lib/src/components/router.js.map +0 -1
- package/lib/src/components/search-bar.d.ts +0 -2
- package/lib/src/components/search-bar.d.ts.map +0 -1
- package/lib/src/components/search-bar.js +0 -36
- package/lib/src/components/search-bar.js.map +0 -1
- package/lib/src/components/sidebar.d.ts +0 -2
- package/lib/src/components/sidebar.d.ts.map +0 -1
- package/lib/src/components/sidebar.js +0 -28
- package/lib/src/components/sidebar.js.map +0 -1
- package/lib/src/connect.config.d.ts +0 -115
- package/lib/src/connect.config.d.ts.map +0 -1
- package/lib/src/connect.config.js +0 -148
- package/lib/src/connect.config.js.map +0 -1
- package/lib/src/context/index.d.ts +0 -4
- package/lib/src/context/index.d.ts.map +0 -1
- package/lib/src/context/index.js +0 -4
- package/lib/src/context/index.js.map +0 -1
- package/lib/src/context/processor-manager.d.ts +0 -3
- package/lib/src/context/processor-manager.d.ts.map +0 -1
- package/lib/src/context/processor-manager.js +0 -189
- package/lib/src/context/processor-manager.js.map +0 -1
- package/lib/src/context/read-mode.d.ts +0 -2
- package/lib/src/context/read-mode.d.ts.map +0 -1
- package/lib/src/context/read-mode.js +0 -219
- package/lib/src/context/read-mode.js.map +0 -1
- package/lib/src/context/sentry-provider.d.ts +0 -6
- package/lib/src/context/sentry-provider.d.ts.map +0 -1
- package/lib/src/context/sentry-provider.js +0 -6
- package/lib/src/context/sentry-provider.js.map +0 -1
- package/lib/src/feature-flags.d.ts +0 -53
- package/lib/src/feature-flags.d.ts.map +0 -1
- package/lib/src/feature-flags.js +0 -173
- package/lib/src/feature-flags.js.map +0 -1
- package/lib/src/globals.d.ts +0 -9
- package/lib/src/globals.d.ts.map +0 -1
- package/lib/src/globals.js +0 -2
- package/lib/src/globals.js.map +0 -1
- package/lib/src/hmr.d.ts +0 -3
- package/lib/src/hmr.d.ts.map +0 -1
- package/lib/src/hmr.js +0 -2
- package/lib/src/hmr.js.map +0 -1
- package/lib/src/hooks/index.d.ts +0 -10
- package/lib/src/hooks/index.d.ts.map +0 -1
- package/lib/src/hooks/index.js +0 -10
- package/lib/src/hooks/index.js.map +0 -1
- package/lib/src/hooks/useAcceptedCookies.d.ts +0 -9
- package/lib/src/hooks/useAcceptedCookies.d.ts.map +0 -1
- package/lib/src/hooks/useAcceptedCookies.js +0 -34
- package/lib/src/hooks/useAcceptedCookies.js.map +0 -1
- package/lib/src/hooks/useCheckLatestVersion.d.ts +0 -2
- package/lib/src/hooks/useCheckLatestVersion.d.ts.map +0 -1
- package/lib/src/hooks/useCheckLatestVersion.js +0 -33
- package/lib/src/hooks/useCheckLatestVersion.js.map +0 -1
- package/lib/src/hooks/useClientErrorHandler.d.ts +0 -6
- package/lib/src/hooks/useClientErrorHandler.d.ts.map +0 -1
- package/lib/src/hooks/useClientErrorHandler.js +0 -131
- package/lib/src/hooks/useClientErrorHandler.js.map +0 -1
- package/lib/src/hooks/useCookieBanner.d.ts +0 -5
- package/lib/src/hooks/useCookieBanner.d.ts.map +0 -1
- package/lib/src/hooks/useCookieBanner.js +0 -32
- package/lib/src/hooks/useCookieBanner.js.map +0 -1
- package/lib/src/hooks/useInitSentry.d.ts +0 -2
- package/lib/src/hooks/useInitSentry.d.ts.map +0 -1
- package/lib/src/hooks/useInitSentry.js +0 -80
- package/lib/src/hooks/useInitSentry.js.map +0 -1
- package/lib/src/hooks/useNodeActions.d.ts +0 -6
- package/lib/src/hooks/useNodeActions.d.ts.map +0 -1
- package/lib/src/hooks/useNodeActions.js +0 -35
- package/lib/src/hooks/useNodeActions.js.map +0 -1
- package/lib/src/hooks/useUndoRedoShortcuts.d.ts +0 -8
- package/lib/src/hooks/useUndoRedoShortcuts.d.ts.map +0 -1
- package/lib/src/hooks/useUndoRedoShortcuts.js +0 -26
- package/lib/src/hooks/useUndoRedoShortcuts.js.map +0 -1
- package/lib/src/hooks/useWindowSize.d.ts +0 -5
- package/lib/src/hooks/useWindowSize.d.ts.map +0 -1
- package/lib/src/hooks/useWindowSize.js +0 -21
- package/lib/src/hooks/useWindowSize.js.map +0 -1
- package/lib/src/hooks/utils.d.ts +0 -7
- package/lib/src/hooks/utils.d.ts.map +0 -1
- package/lib/src/hooks/utils.js +0 -46
- package/lib/src/hooks/utils.js.map +0 -1
- package/lib/src/i18n/index.d.ts +0 -4
- package/lib/src/i18n/index.d.ts.map +0 -1
- package/lib/src/i18n/index.js +0 -26
- package/lib/src/i18n/index.js.map +0 -1
- package/lib/src/i18n/locales/en.json +0 -114
- package/lib/src/index.d.ts +0 -2
- package/lib/src/index.d.ts.map +0 -1
- package/lib/src/index.js +0 -2
- package/lib/src/index.js.map +0 -1
- package/lib/src/main.d.ts +0 -2
- package/lib/src/main.d.ts.map +0 -1
- package/lib/src/main.js +0 -5
- package/lib/src/main.js.map +0 -1
- package/lib/src/pages/content.d.ts +0 -2
- package/lib/src/pages/content.d.ts.map +0 -1
- package/lib/src/pages/content.js +0 -39
- package/lib/src/pages/content.js.map +0 -1
- package/lib/src/pages/demo/atlas-import.d.ts +0 -2
- package/lib/src/pages/demo/atlas-import.d.ts.map +0 -1
- package/lib/src/pages/demo/atlas-import.js +0 -122
- package/lib/src/pages/demo/atlas-import.js.map +0 -1
- package/lib/src/pages/index.d.ts +0 -4
- package/lib/src/pages/index.d.ts.map +0 -1
- package/lib/src/pages/index.js +0 -4
- package/lib/src/pages/index.js.map +0 -1
- package/lib/src/pages/settings.d.ts +0 -4
- package/lib/src/pages/settings.d.ts.map +0 -1
- package/lib/src/pages/settings.js +0 -9
- package/lib/src/pages/settings.js.map +0 -1
- package/lib/src/service-worker.d.ts +0 -2
- package/lib/src/service-worker.d.ts.map +0 -1
- package/lib/src/service-worker.js +0 -58
- package/lib/src/service-worker.js.map +0 -1
- package/lib/src/services/hmr.d.ts +0 -13
- package/lib/src/services/hmr.d.ts.map +0 -1
- package/lib/src/services/hmr.js +0 -85
- package/lib/src/services/hmr.js.map +0 -1
- package/lib/src/services/index.d.ts +0 -10
- package/lib/src/services/index.d.ts.map +0 -1
- package/lib/src/services/index.js +0 -9
- package/lib/src/services/index.js.map +0 -1
- package/lib/src/services/logger.d.ts +0 -2
- package/lib/src/services/logger.d.ts.map +0 -1
- package/lib/src/services/logger.js +0 -28
- package/lib/src/services/logger.js.map +0 -1
- package/lib/src/services/renown/browser.d.ts +0 -2
- package/lib/src/services/renown/browser.d.ts.map +0 -1
- package/lib/src/services/renown/browser.js +0 -6
- package/lib/src/services/renown/browser.js.map +0 -1
- package/lib/src/services/renown/constants.d.ts +0 -130
- package/lib/src/services/renown/constants.d.ts.map +0 -1
- package/lib/src/services/renown/constants.js +0 -41
- package/lib/src/services/renown/constants.js.map +0 -1
- package/lib/src/services/renown/utils.d.ts +0 -7
- package/lib/src/services/renown/utils.d.ts.map +0 -1
- package/lib/src/services/renown/utils.js +0 -20
- package/lib/src/services/renown/utils.js.map +0 -1
- package/lib/src/services/storage/base-storage.d.ts +0 -9
- package/lib/src/services/storage/base-storage.d.ts.map +0 -1
- package/lib/src/services/storage/base-storage.js +0 -21
- package/lib/src/services/storage/base-storage.js.map +0 -1
- package/lib/src/services/storage/browser.d.ts +0 -5
- package/lib/src/services/storage/browser.d.ts.map +0 -1
- package/lib/src/services/storage/browser.js +0 -25
- package/lib/src/services/storage/browser.js.map +0 -1
- package/lib/src/services/storage/types.d.ts +0 -6
- package/lib/src/services/storage/types.d.ts.map +0 -1
- package/lib/src/services/storage/types.js +0 -2
- package/lib/src/services/storage/types.js.map +0 -1
- package/lib/src/services/toast.d.ts +0 -8
- package/lib/src/services/toast.d.ts.map +0 -1
- package/lib/src/services/toast.js +0 -11
- package/lib/src/services/toast.js.map +0 -1
- package/lib/src/store/document-model.d.ts +0 -3
- package/lib/src/store/document-model.d.ts.map +0 -1
- package/lib/src/store/document-model.js +0 -80
- package/lib/src/store/document-model.js.map +0 -1
- package/lib/src/store/editor.d.ts +0 -5
- package/lib/src/store/editor.d.ts.map +0 -1
- package/lib/src/store/editor.js +0 -31
- package/lib/src/store/editor.js.map +0 -1
- package/lib/src/store/external-packages.d.ts +0 -4
- package/lib/src/store/external-packages.d.ts.map +0 -1
- package/lib/src/store/external-packages.js +0 -36
- package/lib/src/store/external-packages.js.map +0 -1
- package/lib/src/store/index.d.ts +0 -7
- package/lib/src/store/index.d.ts.map +0 -1
- package/lib/src/store/index.js +0 -7
- package/lib/src/store/index.js.map +0 -1
- package/lib/src/store/reactor.d.ts +0 -3
- package/lib/src/store/reactor.d.ts.map +0 -1
- package/lib/src/store/reactor.js +0 -257
- package/lib/src/store/reactor.js.map +0 -1
- package/lib/src/store/user.d.ts +0 -2
- package/lib/src/store/user.d.ts.map +0 -1
- package/lib/src/store/user.js +0 -16
- package/lib/src/store/user.js.map +0 -1
- package/lib/src/store/utils.d.ts +0 -2
- package/lib/src/store/utils.d.ts.map +0 -1
- package/lib/src/store/utils.js +0 -59
- package/lib/src/store/utils.js.map +0 -1
- package/lib/src/utils/browser.d.ts +0 -2
- package/lib/src/utils/browser.d.ts.map +0 -1
- package/lib/src/utils/browser.js +0 -9
- package/lib/src/utils/browser.js.map +0 -1
- package/lib/src/utils/document-editor-debug-tools.d.ts +0 -17
- package/lib/src/utils/document-editor-debug-tools.d.ts.map +0 -1
- package/lib/src/utils/document-editor-debug-tools.js +0 -55
- package/lib/src/utils/document-editor-debug-tools.js.map +0 -1
- package/lib/src/utils/drive-preservation.d.ts +0 -19
- package/lib/src/utils/drive-preservation.d.ts.map +0 -1
- package/lib/src/utils/drive-preservation.js +0 -51
- package/lib/src/utils/drive-preservation.js.map +0 -1
- package/lib/src/utils/drive-sections.d.ts +0 -31
- package/lib/src/utils/drive-sections.d.ts.map +0 -1
- package/lib/src/utils/drive-sections.js +0 -63
- package/lib/src/utils/drive-sections.js.map +0 -1
- package/lib/src/utils/index.d.ts +0 -12
- package/lib/src/utils/index.d.ts.map +0 -1
- package/lib/src/utils/index.js +0 -12
- package/lib/src/utils/index.js.map +0 -1
- package/lib/src/utils/join.d.ts +0 -2
- package/lib/src/utils/join.d.ts.map +0 -1
- package/lib/src/utils/join.js +0 -11
- package/lib/src/utils/join.js.map +0 -1
- package/lib/src/utils/openUrl.d.ts +0 -2
- package/lib/src/utils/openUrl.d.ts.map +0 -1
- package/lib/src/utils/openUrl.js +0 -3
- package/lib/src/utils/openUrl.js.map +0 -1
- package/lib/src/utils/path.d.ts +0 -4
- package/lib/src/utils/path.d.ts.map +0 -1
- package/lib/src/utils/path.js +0 -17
- package/lib/src/utils/path.js.map +0 -1
- package/lib/src/utils/reactor.d.ts +0 -13
- package/lib/src/utils/reactor.d.ts.map +0 -1
- package/lib/src/utils/reactor.js +0 -93
- package/lib/src/utils/reactor.js.map +0 -1
- package/lib/src/utils/registerServiceWorker.d.ts +0 -12
- package/lib/src/utils/registerServiceWorker.d.ts.map +0 -1
- package/lib/src/utils/registerServiceWorker.js +0 -97
- package/lib/src/utils/registerServiceWorker.js.map +0 -1
- package/lib/src/utils/signature.d.ts +0 -4
- package/lib/src/utils/signature.d.ts.map +0 -1
- package/lib/src/utils/signature.js +0 -36
- package/lib/src/utils/signature.js.map +0 -1
- package/lib/src/utils/slug.d.ts +0 -2
- package/lib/src/utils/slug.d.ts.map +0 -1
- package/lib/src/utils/slug.js +0 -4
- package/lib/src/utils/slug.js.map +0 -1
- package/lib/src/workers/pglite-worker.d.ts +0 -2
- package/lib/src/workers/pglite-worker.d.ts.map +0 -1
- package/lib/src/workers/pglite-worker.js +0 -32
- package/lib/src/workers/pglite-worker.js.map +0 -1
- package/lib/test/utils/signer.test.d.ts +0 -2
- package/lib/test/utils/signer.test.d.ts.map +0 -1
- package/lib/test/utils/signer.test.js +0 -330
- package/lib/test/utils/signer.test.js.map +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/vite.config.d.ts +0 -3
- package/lib/vite.config.d.ts.map +0 -1
- package/lib/vite.config.js +0 -59
- package/lib/vite.config.js.map +0 -1
- package/lib/vitest.config.d.ts +0 -3
- package/lib/vitest.config.d.ts.map +0 -1
- package/lib/vitest.config.js +0 -8
- package/lib/vitest.config.js.map +0 -1
- package/package.copy.json +0 -177
- package/src/index.css +0 -5
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/reactor_browser-yx1Q9KgX.js","assets/document_model-_oCbt5YE.js","assets/zod-9j67vCAu.js","assets/react-DQSxOgtG.js","assets/document_drive-Bubv8iix.js","assets/graphql-AKTCpY7l.js","assets/config-CU-aFfVJ.js","assets/sentry_react-cODD7zWc.js","assets/sentry_browser-B4YoBIIG.js","assets/drive_explorer-CZ0gwuur.js","assets/document_model_editor-BMc0xTih.js","assets/react/jsx-runtime-DldvXD6N.js","assets/design_system-C9rqhsgB.js","assets/tailwind_merge-Dr4f9Rms.js","assets/react-dom-D6zQJsh6.js","assets/design_system_connect-D83LcbxV.js","assets/design_system_ui-BBjFHSQI.js","assets/react-dom/client-BVPiT_FE.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{j as V}from"./document_model_editor-BMc0xTih.js";import{b5 as W,b6 as z,b7 as E,b8 as y,b9 as j,a3 as H,aP as q}from"./reactor_browser-yx1Q9KgX.js";import{_ as G}from"./drive_explorer-CZ0gwuur.js";import{p as N}from"./react-DQSxOgtG.js";import{r as k}from"./sentry_react-cODD7zWc.js";import{L as K}from"./design_system_connect-D83LcbxV.js";import"./graphql-AKTCpY7l.js";import"./react/jsx-runtime-DldvXD6N.js";import"./document_model-_oCbt5YE.js";import"./zod-9j67vCAu.js";import"./design_system-C9rqhsgB.js";import"./tailwind_merge-Dr4f9Rms.js";import"./react-dom-D6zQJsh6.js";import"./document_drive-Bubv8iix.js";import"./config-CU-aFfVJ.js";import"./sentry_browser-B4YoBIIG.js";import"./design_system_ui-BBjFHSQI.js";import"./react-dom/client-BVPiT_FE.js";var O=class extends Error{constructor(t){super(`Exit with code ${t}`),this.code=t}},Q=class{appendFileSync(t,e,i={}){throw new Error("appendFileSync not implemented")}fsyncSync(t){throw new Error("fsyncSync not implemented")}linkSync(t,e){throw new Error("linkSync not implemented")}mkdirSync(t,e={}){throw new Error("mkdirSync not implemented")}readdirSync(t,e={}){throw new Error("readdirSync not implemented")}readFileSync(t,e={}){throw new Error("readFileSync not implemented")}readlinkSync(t,e={}){throw new Error("readlinkSync not implemented")}renameSync(t,e){throw new Error("renameSync not implemented")}rmdirSync(t,e={}){throw new Error("rmdirSync not implemented")}setFlagsSync(t,e){throw new Error("setFlagsSync not implemented")}statSync(t,e={}){throw new Error("statSync not implemented")}symlinkSync(t,e,i="file"){throw new Error("symlinkSync not implemented")}truncateSync(t,e=0){throw new Error("truncateSync not implemented")}unlinkSync(t){throw new Error("unlinkSync not implemented")}utimesSync(t,e,i){throw new Error("utimesSync not implemented")}writeFileSync(t,e,i={}){throw new Error("writeFileSync not implemented")}},Y=class{constructor(t={}){if(this.args=t.args||[],this.env=t.env||{},this.fs=t.fs||new Q,!this.fs)throw new Error("File system implementation required");this.fds=new Map([[0,{type:"stdio"}],[1,{type:"stdio"}],[2,{type:"stdio"}],[3,{type:"directory",preopenPath:"/"}]]),this.nextFd=this.fds.size,this.textDecoder=new TextDecoder,this.textEncoder=new TextEncoder,this.args_get=this.args_get.bind(this),this.args_sizes_get=this.args_sizes_get.bind(this),this.environ_get=this.environ_get.bind(this),this.environ_sizes_get=this.environ_sizes_get.bind(this),this.clock_res_get=this.clock_res_get.bind(this),this.clock_time_get=this.clock_time_get.bind(this),this.fd_close=this.fd_close.bind(this),this.fd_seek=this.fd_seek.bind(this),this.fd_write=this.fd_write.bind(this),this.fd_read=this.fd_read.bind(this),this.fd_fdstat_get=this.fd_fdstat_get.bind(this),this.fd_fdstat_set_flags=this.fd_fdstat_set_flags.bind(this),this.fd_prestat_get=this.fd_prestat_get.bind(this),this.fd_prestat_dir_name=this.fd_prestat_dir_name.bind(this),this.path_open=this.path_open.bind(this),this.path_filestat_get=this.path_filestat_get.bind(this),this.proc_exit=this.proc_exit.bind(this),this.fd_advise=this.fd_advise.bind(this),this.fd_allocate=this.fd_allocate.bind(this),this.fd_datasync=this.fd_datasync.bind(this),this.fd_filestat_get=this.fd_filestat_get.bind(this),this.fd_filestat_set_size=this.fd_filestat_set_size.bind(this),this.fd_filestat_set_times=this.fd_filestat_set_times.bind(this),this.fd_pread=this.fd_pread.bind(this),this.fd_pwrite=this.fd_pwrite.bind(this),this.fd_readdir=this.fd_readdir.bind(this),this.fd_renumber=this.fd_renumber.bind(this),this.fd_sync=this.fd_sync.bind(this),this.fd_tell=this.fd_tell.bind(this),this.path_create_directory=this.path_create_directory.bind(this),this.path_filestat_set_times=this.path_filestat_set_times.bind(this),this.path_link=this.path_link.bind(this),this.path_readlink=this.path_readlink.bind(this),this.path_remove_directory=this.path_remove_directory.bind(this),this.path_rename=this.path_rename.bind(this),this.path_symlink=this.path_symlink.bind(this),this.path_unlink_file=this.path_unlink_file.bind(this),this.poll_oneoff=this.poll_oneoff.bind(this),this.sock_accept=this.sock_accept.bind(this),this.sock_recv=this.sock_recv.bind(this),this.sock_send=this.sock_send.bind(this),this.sock_shutdown=this.sock_shutdown.bind(this),this.random_get=this.random_get.bind(this),this.sched_yield=this.sched_yield.bind(this)}setup(t){this.wasm=t}start(t){this.setup(t);try{return t._start&&t._start(),0}catch(e){if(e instanceof O)return e.code;throw e}}stdin(){return new Uint8Array}stdout(t){let e=this.textDecoder.decode(t).replace(/\n$/g,"");e&&console.log(e)}stderr(t){let e=this.textDecoder.decode(t).replace(/\n$/g,"");e&&console.error(e)}args_get(t,e){let i=new DataView(this.wasm.memory.buffer),s=new Uint8Array(this.wasm.memory.buffer);for(let r of this.args){i.setUint32(t,e,!0),t+=4;let n=this.textEncoder.encode(r);s.set(n,e),s[e+n.length]=0,e+=n.length+1}return 0}args_sizes_get(t,e){let i=new DataView(this.wasm.memory.buffer);i.setUint32(t,this.args.length,!0);let s=this.args.reduce((r,n)=>r+n.length+1,0);return i.setUint32(e,s,!0),0}environ_get(t,e){let i=new DataView(this.wasm.memory.buffer),s=new Uint8Array(this.wasm.memory.buffer);for(let[r,n]of Object.entries(this.env)){i.setUint32(t,e,!0),t+=4;let c=`${r}=${n}\0`,l=this.textEncoder.encode(c);s.set(l,e),e+=l.length}return 0}environ_sizes_get(t,e){let i=new DataView(this.wasm.memory.buffer),s=Object.keys(this.env).length;i.setUint32(t,s,!0);let r=Object.entries(this.env).reduce((n,[c,l])=>n+c.length+l.length+2,0);return i.setUint32(e,r,!0),0}clock_res_get(t,e){let i=new DataView(this.wasm.memory.buffer),s;switch(t){case 0:s=1000000n;break;case 1:s=1000n;break;default:return 28}return i.setBigUint64(e,s,!0),0}clock_time_get(t,e,i){let s=new DataView(this.wasm.memory.buffer),r;switch(t){case 0:{let n=Date.now();r=BigInt(n)*1000000n;break}case 1:{r=BigInt(Math.round(performance.now()*1e6));break}default:return 28}return s.setBigUint64(i,r,!0),0}fd_close(t){return this.fds.get(t)?(this.fds.delete(t),0):8}fd_seek(t,e,i,s){let r=this.fds.get(t);if(!r)return 8;if(r.type==="stdio")return 70;var n=null;let c=0,l=Number(e);try{n=this.fs.statSync(r.handle.path)}catch{return 29}switch(i){case 0:c=l;break;case 1:c=Number(r.handle.position)+l;break;case 2:c=Number(n.size)+l;break;default:return console.error("fd_seek invalid mode",i),28}return r.handle.position=c,new DataView(this.wasm.memory.buffer).setBigUint64(s,BigInt(c),!0),0}fd_write(t,e,i,s){let r=0,n=[],c=new DataView(this.wasm.memory.buffer),l=new Uint8Array(this.wasm.memory.buffer);for(let a=0;a<i;a++){let h=e+a*8,f=c.getUint32(h,!0),d=c.getUint32(h+4,!0);n.push(new Uint8Array(l.buffer,f,d)),r+=d}let o;if(n.length===1)o=n[0];else{o=new Uint8Array(r);let a=0;for(let h of n)o.set(h,a),a+=h.length}if(t===1)this.stdout(o);else if(t===2)this.stderr(o);else{let a=this.fds.get(t);if(!a)return 8;a.handle.position+=r;try{this.fs.writeFileSync(a.handle.path,o)}catch{return 29}}return c.setUint32(s,r,!0),0}fd_read(t,e,i,s){let r=this.fds.get(t);if(!r)return 8;let n=0,c=new DataView(this.wasm.memory.buffer),l=new Uint8Array(this.wasm.memory.buffer);try{let o;t===0?o=this.stdin():o=this.fs.readFileSync(r.handle.path);for(let a=0;a<i;a++){let h=e+a*8,f=c.getUint32(h,!0),d=c.getUint32(h+4,!0),u=r.handle.position,m=Math.min(u+d,o.length),p=m-u;if(p<=0||(l.set(new Uint8Array(o.slice(u,m)),f),n+=p,r.handle.position+=p,p<d))break}return c.setUint32(s,n,!0),0}catch{return 29}}path_open(t,e,i,s,r,n,c,l,o){var a=this.fds.get(t);if(!a)return 8;let h=new Uint8Array(this.wasm.memory.buffer).slice(i,i+s),f=this.textDecoder.decode(h),d=f;var u=0;let m=new DataView(this.wasm.memory.buffer);a.preopenPath&&(f.startsWith("/")&&(d=f.slice(1)),d=a.preopenPath+(a.preopenPath.endsWith("/")?"":"/")+d);var p=!1,_=null;let w=(r&4)==4,A=(r&8)==8;try{_=this.fs.statSync(d),p=!0}catch{}if((w||A)&&w&&p)return m.setUint32(o,u,!0),20;let $={path:d,position:0},I="file";u=this.nextFd++;let R={type:I,handle:$,fd:u};return this.fds.set(u,R),a=this.fds.get(u),a.handle.position=0,A&&(a.handle.size=0),m.setUint32(o,u,!0),0}proc_exit(t){throw new O(t)}fd_fdstat_get(t,e){let i=this.fds.get(t);if(!i)return 8;let s=new DataView(this.wasm.memory.buffer),r;switch(i.type){case"stdio":r=2;break;case"directory":r=3;break;case"file":r=4;break;default:r=0}s.setUint8(e,r);let n=0;i.append&&(n|=1),s.setUint16(e+2,n,!0);let c=0n;i.type==="file"?c=2097254:i.type==="directory"&&(c=100688384);let l=BigInt(c);return s.setBigUint64(e+8,l,!0),s.setBigUint64(e+16,l,!0),0}fd_fdstat_set_flags(t,e){let i=this.fds.get(t);if(!i)return 8;if(e&-32)return 28;if(i.type==="stdio")return 58;try{return i.append=!!(e&1),i.handle&&typeof this.fs.setFlagsSync=="function"&&this.fs.setFlagsSync(i.handle,e),0}catch{return 29}}fd_prestat_get(t,e){let i=this.fds.get(t);if(!i||i.type!=="directory"||!i.preopenPath)return 8;let s=new DataView(this.wasm.memory.buffer);s.setUint8(e,0);let r=i.preopenPath.length;return s.setUint32(e+4,r,!0),0}fd_prestat_dir_name(t,e,i){let s=this.fds.get(t);if(!s||s.type!=="directory"||!s.preopenPath)return 8;if(i<s.preopenPath.length)return 37;let r=new Uint8Array(this.wasm.memory.buffer),n=this.textEncoder.encode(s.preopenPath);return r.set(n,e),0}path_filestat_get(t,e,i,s,r){let n=this.fds.get(t);if(!n)return 8;let c=new Uint8Array(this.wasm.memory.buffer),l=new Uint8Array(c.buffer,i,s),o=this.textDecoder.decode(l);try{let a=o;n.preopenPath&&(o.startsWith("/")&&(a=o.slice(1)),a=n.preopenPath+(n.preopenPath.endsWith("/")?"":"/")+a);let h=this.fs.statSync(a,{followSymlinks:(e&void 0)!==0}),f=new DataView(this.wasm.memory.buffer);f.setBigUint64(r,BigInt(h.dev||0),!0),f.setBigUint64(r+8,BigInt(h.ino||0),!0);let d=0;return h.isFile()?d=4:h.isDirectory()?d=3:h.isSymbolicLink()?d=7:h.isCharacterDevice()?d=2:h.isBlockDevice()?d=1:h.isFIFO()&&(d=6),f.setUint8(r+16,d),f.setBigUint64(r+24,BigInt(h.nlink||1),!0),f.setBigUint64(r+32,BigInt(h.size||0),!0),f.setBigUint64(r+40,BigInt(h.atimeMs*1e6),!0),f.setBigUint64(r+48,BigInt(h.mtimeMs*1e6),!0),f.setBigUint64(r+56,BigInt(h.ctimeMs*1e6),!0),0}catch(a){return a.code==="ENOENT"?44:a.code==="EACCES"?2:29}}fd_advise(t,e,i,s){let r=this.fds.get(t);return r?r.type!=="file"?8:0:8}fd_allocate(t,e,i){let s=this.fds.get(t);if(!s||s.type!=="file")return 8;try{let r=this.fs.statSync(s.handle.path),n=Number(e)+Number(i);if(n>r.size){let c=new Uint8Array(n-r.size);this.fs.appendFileSync(s.handle.path,c)}return 0}catch{return 29}}fd_datasync(t){let e=this.fds.get(t);if(!e||e.type!=="file")return 8;try{return typeof this.fs.fsyncSync=="function"&&this.fs.fsyncSync(e.handle.path),0}catch{return 29}}fd_filestat_get(t,e){let i=this.fds.get(t);if(!i||!i.handle)return 8;let s=new DataView(this.wasm.memory.buffer),r=this.fs.statSync(i.handle.path);return s.setBigUint64(e,BigInt(r.dev),!0),s.setBigUint64(e+8,BigInt(r.ino),!0),s.setUint8(e+16,r.filetype),s.setBigUint64(e+24,BigInt(r.nlink),!0),s.setBigUint64(e+32,BigInt(r.size),!0),s.setBigUint64(e+38,BigInt(r.atime),!0),s.setBigUint64(e+46,BigInt(r.mtime),!0),s.setBigUint64(e+52,BigInt(r.ctime),!0),0}fd_filestat_set_size(t,e){let i=this.fds.get(t);if(!i||i.type!=="file")return 8;try{return this.fs.truncateSync(i.handle.path,Number(e)),0}catch{return 29}}fd_filestat_set_times(t,e,i,s){let r=this.fds.get(t);if(!r||r.type!=="file")return 8;try{let n={atime:Number(e)/1e9,mtime:Number(i)/1e9};return this.fs.utimesSync(r.handle.path,n.atime,n.mtime),0}catch{return 29}}fd_pread(t,e,i,s,r){let n=this.fds.get(t);if(!n||n.type!=="file")return 8;try{let c=this.fs.readFileSync(n.handle.path),l=0,o=new DataView(this.wasm.memory.buffer),a=new Uint8Array(this.wasm.memory.buffer),h=Number(s);for(let f=0;f<i;f++){let d=e+f*8,u=o.getUint32(d,!0),m=o.getUint32(d+4,!0),p=h+l,_=Math.min(p+m,c.length),w=_-p;if(w<=0||(a.set(new Uint8Array(c.slice(p,_)),u),l+=w,w<m))break}return o.setUint32(r,l,!0),0}catch{return 29}}fd_pwrite(t,e,i,s,r){let n=this.fds.get(t);if(!n||n.type!=="file")return 8;try{let c=0,l=[],o=new DataView(this.wasm.memory.buffer),a=new Uint8Array(this.wasm.memory.buffer);for(let u=0;u<i;u++){let m=e+u*8,p=o.getUint32(m,!0),_=o.getUint32(m+4,!0);l.push(new Uint8Array(a.buffer,p,_)),c+=_}let h;if(l.length===1)h=l[0];else{h=new Uint8Array(c);let u=0;for(let m of l)h.set(m,u),u+=m.length}let f=this.fs.readFileSync(n.handle.path),d=new Uint8Array(Math.max(Number(s)+h.length,f.length));return d.set(f),d.set(h,Number(s)),this.fs.writeFileSync(n.handle.path,d),o.setUint32(r,c,!0),0}catch{return 29}}fd_readdir(t,e,i,s,r){let n=this.fds.get(t);if(!n)return 8;if(n.type!=="directory")return 54;try{let c=this.fs.readdirSync(n.handle.path,{withFileTypes:!0}),l=new DataView(this.wasm.memory.buffer),o=new Uint8Array(this.wasm.memory.buffer),a=0,h=0,f=Number(s);for(let d=f;d<c.length;d++){let u=c[d],m=u.name,p=this.textEncoder.encode(m),_=24+p.length;if(a+_>i)break;l.setBigUint64(e+a,BigInt(d+1),!0),l.setBigUint64(e+a+8,0n,!0),l.setUint32(e+a+16,p.length,!0);let w=0;u.isFile()?w=4:u.isDirectory()&&(w=3),l.setUint8(e+a+20,w),o.set(p,e+a+24),a+=_,h++}return l.setUint32(r,a,!0),0}catch{return 29}}fd_renumber(t,e){let i=this.fds.get(t);return i?(this.fds.delete(e),this.fds.set(e,i),this.fds.delete(t),0):8}fd_sync(t){let e=this.fds.get(t);if(!e||e.type!=="file")return 8;try{return typeof this.fs.fsyncSync=="function"&&this.fs.fsyncSync(e.handle.path),0}catch{return 29}}fd_tell(t,e){let i=this.fds.get(t);return i?i.type!=="file"?8:(new DataView(this.wasm.memory.buffer).setBigUint64(e,BigInt(i.handle.position),!0),0):8}path_create_directory(t,e,i){let s=this.fds.get(t);if(!s)return 8;let r=this.textDecoder.decode(new Uint8Array(this.wasm.memory.buffer,e,i));try{let n=r;return s.preopenPath&&(r.startsWith("/")&&(n=r.slice(1)),n=s.preopenPath+"/"+n),this.fs.mkdirSync(n),0}catch{return 29}}path_filestat_set_times(t,e,i,s,r,n,c){let l=this.fds.get(t);if(!l)return 8;let o=this.textDecoder.decode(new Uint8Array(this.wasm.memory.buffer,i,s));try{let a=o;l.preopenPath&&(o.startsWith("/")&&(a=o.slice(1)),a=l.preopenPath+"/"+a);let h={atime:Number(r)/1e9,mtime:Number(n)/1e9};return this.fs.utimesSync(a,h.atime,h.mtime),0}catch{return 29}}path_link(t,e,i,s,r,n,c){let l=this.fds.get(t),o=this.fds.get(r);if(!l||!o)return 8;let a=this.textDecoder.decode(new Uint8Array(this.wasm.memory.buffer,i,s)),h=this.textDecoder.decode(new Uint8Array(this.wasm.memory.buffer,n,c));try{let f=a,d=h;return l.preopenPath&&(a.startsWith("/")&&(f=a.slice(1)),f=l.preopenPath+"/"+f),o.preopenPath&&(h.startsWith("/")&&(d=h.slice(1)),d=o.preopenPath+"/"+d),this.fs.linkSync(f,d),0}catch{return 29}}path_readlink(t,e,i,s,r,n){let c=this.fds.get(t);if(!c)return 8;let l=this.textDecoder.decode(new Uint8Array(this.wasm.memory.buffer,e,i));try{let o=l;c.preopenPath&&(l.startsWith("/")&&(o=l.slice(1)),o=c.preopenPath+"/"+o);let a=this.fs.readlinkSync(o),h=this.textEncoder.encode(a);return h.length>r?61:(new Uint8Array(this.wasm.memory.buffer).set(h,s),new DataView(this.wasm.memory.buffer).setUint32(n,h.length,!0),0)}catch{return 29}}path_remove_directory(t,e,i){let s=this.fds.get(t);if(!s)return 8;let r=this.textDecoder.decode(new Uint8Array(this.wasm.memory.buffer,e,i));try{let n=r;return s.preopenPath&&(r.startsWith("/")&&(n=r.slice(1)),n=s.preopenPath+"/"+n),this.fs.rmdirSync(n),0}catch{return 29}}path_rename(t,e,i,s,r,n){let c=this.fds.get(t),l=this.fds.get(s);if(!c||!l)return 8;let o=this.textDecoder.decode(new Uint8Array(this.wasm.memory.buffer,e,i)),a=this.textDecoder.decode(new Uint8Array(this.wasm.memory.buffer,r,n));try{let h=o,f=a;return c.preopenPath&&(o.startsWith("/")&&(h=o.slice(1)),h=c.preopenPath+"/"+h),l.preopenPath&&(a.startsWith("/")&&(f=a.slice(1)),f=l.preopenPath+"/"+f),this.fs.renameSync(h,f),0}catch{return 29}}path_symlink(t,e,i,s,r){let n=this.fds.get(i);if(!n)return 8;let c=this.textDecoder.decode(new Uint8Array(this.wasm.memory.buffer,t,e)),l=this.textDecoder.decode(new Uint8Array(this.wasm.memory.buffer,s,r));try{let o=l;return n.preopenPath&&(l.startsWith("/")&&(o=l.slice(1)),o=n.preopenPath+"/"+o),this.fs.symlinkSync(c,o),0}catch{return 29}}path_unlink_file(t,e,i){let s=this.fds.get(t);if(!s)return 8;let r=this.textDecoder.decode(new Uint8Array(this.wasm.memory.buffer,e,i));try{let n=r;return s.preopenPath&&(r.startsWith("/")&&(n=r.slice(1)),n=s.preopenPath+"/"+n),this.fs.unlinkSync(n),0}catch{return 29}}poll_oneoff(t,e,i,s){let r=new DataView(this.wasm.memory.buffer),n=0;for(let c=0;c<i;c++){let l=t+c*48,o=r.getBigUint64(l,!0),a=r.getUint8(l+8),h=e+n*32;r.setBigUint64(h,o,!0),r.setUint8(h+8,a),r.setUint8(h+9,1),r.setUint16(h+10,0,!0),n++}return r.setUint32(s,n,!0),0}random_get(t,e){let i=new Uint8Array(this.wasm.memory.buffer,t,e);return crypto.getRandomValues(i),0}sched_yield(){return os.sched_yield(),0}sock_accept(t,e){return 52}sock_recv(t,e,i){return 52}sock_send(t,e,i){return 52}sock_shutdown(t,e){return 52}};console.log("easywasi");var Z=typeof N=="object"&&typeof N.versions=="object"&&typeof N.versions.node=="string";function J(t,e){return{...t,...Object.fromEntries(["appendFileSync","fsyncSync","linkSync","setFlagsSync","mkdirSync","readdirSync","readFileSync","readlinkSync","renameSync","rmdirSync","statSync","symlinkSync","truncateSync","unlinkSync","utimesSync","writeFileSync"].map(i=>{let s=i.slice(0,i.length-4);return s in t?[i,(...r)=>(i==="writeFileSync"&&r[0]==="/tmp/out.sql"&&e.push(r[1]),t[s](...r))]:[i,()=>{throw new Error(`${s} not implemented.`)}]}).filter(i=>i!==void 0))}}async function X({pg:t,args:e}){let i=new URL("/assets/pg_dump-CW0pN9tG.wasm",import.meta.url),s=[],r=J(t.Module.FS,s),n=new Y({fs:r,args:["pg_dump",...e],env:{PWD:"/"}});n.stdout=h=>{};let c=new TextDecoder,l="";n.stderr=h=>{let f=c.decode(h);f&&(l+=f)},n.sched_yield=()=>{let h="/tmp/pglite/base/.s.PGSQL.5432.in",f="/tmp/pglite/base/.s.PGSQL.5432.out";if(r.analyzePath(h).exists){let d=r.readFileSync(h);if(r.unlinkSync(h),d[0]===0){let m=new Uint8Array([...et,...st,...rt]);return r.writeFileSync(f,m),0}let u=t.execProtocolRawSync(d);r.writeFileSync(f,u)}return 0},await r.writeFile("/pg_dump","\0",{mode:18});let o;if(Z){let h=await(await G(async()=>{const{readFile:f}=await import("./reactor_browser-yx1Q9KgX.js").then(d=>d.bk);return{readFile:f}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))).readFile(i.toString().slice(7));o=await WebAssembly.instantiate(h,{wasi_snapshot_preview1:n})}else o=await WebAssembly.instantiateStreaming(fetch(i),{wasi_snapshot_preview1:n});let a;return await t.runExclusive(async()=>{a=n.start(o.instance.exports)}),[a,s,l]}async function tt({pg:t,args:e,fileName:i="dump.sql"}){let s=(await t.query("SHOW SEARCH_PATH;")).rows[0].search_path,r="/tmp/out.sql",n=["-U","postgres","--inserts","-j","1","-f",r,"postgres"],[c,l,o]=await X({pg:t,args:[...e??[],...n]});if(t.exec(`DEALLOCATE ALL; SET SEARCH_PATH = ${s}`),c!==0)throw new Error(`pg_dump failed with exit code ${c}.
|
|
3
|
-
Error message: ${o}`);let a=new File(l,i,{type:"text/plain"});return t.Module.FS.unlink(r),a}function B(t){return t.charCodeAt(0)}function F(t){let e=new ArrayBuffer(4);return new DataView(e).setInt32(0,t,!1),new Uint8Array(e)}function T(t){let e=new TextEncoder().encode(t);return new Uint8Array([...e,0])}var et=new Uint8Array([B("R"),...F(8),...F(0)]),rt=new Uint8Array([B("Z"),...F(5),B("I")]),C=T("server_version"),M=T("16.3 (PGlite 0.2.0)"),it=4+C.length+M.length,st=new Uint8Array([B("S"),...F(it),...C,...M]);const v=["documentType","documentId","scope","branch","index","skip"];function nt(){const t=W(),e=z(),i=k.useCallback(async()=>{if(!t)return[];const l=await y`
|
|
4
|
-
SELECT
|
|
5
|
-
c.table_name,
|
|
6
|
-
c.column_name,
|
|
7
|
-
c.data_type,
|
|
8
|
-
c.is_nullable
|
|
9
|
-
FROM information_schema.columns c
|
|
10
|
-
INNER JOIN information_schema.tables t
|
|
11
|
-
ON c.table_name = t.table_name
|
|
12
|
-
AND c.table_schema = t.table_schema
|
|
13
|
-
WHERE c.table_schema = ${E}
|
|
14
|
-
AND t.table_type = 'BASE TABLE'
|
|
15
|
-
ORDER BY c.table_name, c.ordinal_position
|
|
16
|
-
`.execute(t),o=new Map;for(const a of l.rows)o.has(a.table_name)||o.set(a.table_name,[]),o.get(a.table_name).push({name:a.column_name,dataType:a.data_type,isNullable:a.is_nullable==="YES"});return Array.from(o).map(([a,h])=>{const f=h.map(u=>u.name),d=[...v.filter(u=>f.includes(u)).map(u=>h.find(m=>m.name===u)),...h.filter(u=>!v.includes(u.name))];return{name:a,columns:d}})},[t]),s=k.useCallback(async(l,o)=>{if(!t)return{columns:[],rows:[],total:null};const a=o.limit,h=o.offset,f=o.sort,d=o.filters,u=y.raw(`${E}."${l}"`);let m=y``;if(d?.clauses&&d.clauses.length>0){const g=[];for(let S=0;S<d.clauses.length;S++){const b=d.clauses[S];if(!b)continue;const P=y.raw(`"${b.column}"`);let D;if(b.operator==="IS NULL")D=y`${P} IS NULL`;else if(b.operator==="IS NOT NULL")D=y`${P} IS NOT NULL`;else if(b.operator==="LIKE"||b.operator==="ILIKE"){const x=b.value,U=b.operator==="LIKE"?y`LIKE`:y`ILIKE`;D=y`${P} ${U} ${x}`}else{const x=y.raw(b.operator),U=b.value;let L=U;U!==""&&!isNaN(Number(U))&&U.trim()!==""&&(L=Number(U)),D=y`${P} ${x} ${L}`}if(g.push(D),S<d.clauses.length-1){const x=d.connectors?.[S]??"AND";g.push(y.raw(x))}}g.length>0&&(m=y`WHERE ${y.join(g,y` `)}`)}let p;if(f){const g=y.raw(`"${f.column}"`),S=f.direction==="desc"?y`DESC`:y`ASC`;p=y`
|
|
17
|
-
SELECT * FROM ${u}
|
|
18
|
-
${m}
|
|
19
|
-
ORDER BY ${g} ${S}
|
|
20
|
-
LIMIT ${a} OFFSET ${h}
|
|
21
|
-
`}else p=y`
|
|
22
|
-
SELECT * FROM ${u}
|
|
23
|
-
${m}
|
|
24
|
-
LIMIT ${a} OFFSET ${h}
|
|
25
|
-
`;const _=await p.execute(t),A=await y`
|
|
26
|
-
SELECT COUNT(*) as count FROM ${u}
|
|
27
|
-
${m}
|
|
28
|
-
`.execute(t),$=A.rows[0]?parseInt(A.rows[0].count,10):null,I=_.rows.length>0?Object.keys(_.rows[0]):[];return{columns:[...v.filter(g=>I.includes(g)),...I.filter(g=>!v.includes(g))],rows:_.rows,total:$}},[t]),r=k.useCallback(async()=>{if(!e)return;const o=await(await tt({pg:e})).text(),a=new Blob([o],{type:"text/sql"}),h=URL.createObjectURL(a),f=document.createElement("a");f.href=h,f.download=`database-export-${Date.now()}.sql`,f.click(),URL.revokeObjectURL(h)},[e]),n=k.useCallback(async l=>{e&&await e.transaction(async o=>{await o.exec(`DROP SCHEMA ${E} CASCADE`),await o.exec(`CREATE SCHEMA ${E}`),await o.exec(l),await o.exec(`SET search_path TO ${E}`)})},[e]),c=k.useCallback(l=>{if(l==="Operation")return{column:"timestampUtcMs",direction:"desc"}},[]);return{getTables:i,getTableRows:s,getDefaultSort:c,onExportDb:r,onImportDb:n}}function at(){const t=j();return{getRemotes:k.useCallback(()=>Promise.resolve(t?.list()??[]),[t])}}const ot=25,Dt=()=>{const e=H()?.type==="inspector",{getTables:i,getTableRows:s,getDefaultSort:r,onExportDb:n,onImportDb:c}=nt(),{getRemotes:l}=at();return V.jsx(K,{open:e,onOpenChange:o=>{o||q()},dbExplorerProps:{schema:E,getTables:i,getTableRows:s,getDefaultSort:r,pageSize:ot,onExportDb:n,onImportDb:c},remotesInspectorProps:{getRemotes:l}})};export{Dt as InspectorModal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./document_model_editor-BMc0xTih.js";import{b as g,s as f,t,L as R,i as y,f as T,x as m,c as h,a as S,u as b,E as k,g as u,h as j,k as C,j as E,l as x,m as $,n as N,o as V,p as Z,q as w,r as W,v as X,w as Y}from"./hooks-Ck8stgJI.js";import{r as Q}from"./sentry_react-cODD7zWc.js";import"./graphql-AKTCpY7l.js";import"./drive_explorer-CZ0gwuur.js";import"./react/jsx-runtime-DldvXD6N.js";import"./document_model-_oCbt5YE.js";import"./zod-9j67vCAu.js";import"./react-DQSxOgtG.js";import"./design_system-C9rqhsgB.js";import"./tailwind_merge-Dr4f9Rms.js";import"./react-dom-D6zQJsh6.js";import"./reactor_browser-yx1Q9KgX.js";import"./document_drive-Bubv8iix.js";import"./config-CU-aFfVJ.js";import"./design_system_connect-D83LcbxV.js";import"./design_system_ui-BBjFHSQI.js";import"./react-dom/client-BVPiT_FE.js";import"./sentry_browser-B4YoBIIG.js";const L=f({String:t.string,Number:t.number,"True False":t.bool,PropertyName:t.propertyName,Null:t.null,", :":t.separator,"[ ]":t.squareBracket,"{ }":t.brace}),H=g.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[L],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),q=()=>a=>{try{JSON.parse(a.state.doc.toString())}catch(r){if(!(r instanceof SyntaxError))throw r;const e=v(r,a.state.doc);return[{from:e,message:r.message,severity:"error",to:e}]}return[]};function v(a,r){let e;return(e=a.message.match(/at position (\d+)/))?Math.min(+e[1],r.length):(e=a.message.match(/at line (\d+) column (\d+)/))?Math.min(r.line(+e[1]).from+ +e[2]-1,r.length):0}const d=R.define({name:"json",parser:H.configure({props:[y.add({Object:m({except:/^\s*\}/}),Array:m({except:/^\s*\]/})}),T.add({"Object Array":h})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function G(){return new S(d)}const ie=Q.memo(function(r){const{doc:e,readonly:o=!1,updateDocumentInModel:n}=r,{editorRef:i,viewRef:O,updateListenerCompartment:c,focusHandlerCompartment:p,pasteHandlerCompartment:P,timeoutRef:s}=b();return Q.useEffect(()=>{O.current||(O.current=new k({state:u.create({doc:e,extensions:[...j,C.of($),E,d,G(),x(q()),c.current.of(N(o,s,n)),p.current.of(V(o,s,n)),P.current.of(Z(o,s,n)),u.readOnly.of(o)]}),parent:i.current}),w(O.current))},[]),W(O),X(O.current,o,s,n,{updateListener:c.current,focusHandler:p.current,pasteHandler:P.current}),Y(O.current,e),l.jsx("div",{ref:i})});export{ie as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ba as m,bb as o,bc as s}from"./reactor_browser-yx1Q9KgX.js";import"./document_model-_oCbt5YE.js";import"./zod-9j67vCAu.js";import"./react-DQSxOgtG.js";import"./document_drive-Bubv8iix.js";import"./graphql-AKTCpY7l.js";import"./config-CU-aFfVJ.js";import"./sentry_react-cODD7zWc.js";import"./sentry_browser-B4YoBIIG.js";import"./drive_explorer-CZ0gwuur.js";import"./document_model_editor-BMc0xTih.js";import"./react/jsx-runtime-DldvXD6N.js";import"./design_system-C9rqhsgB.js";import"./tailwind_merge-Dr4f9Rms.js";import"./react-dom-D6zQJsh6.js";import"./design_system_connect-D83LcbxV.js";import"./design_system_ui-BBjFHSQI.js";import"./react-dom/client-BVPiT_FE.js";s();var R=class extends m{constructor(t){super(t),this.rootDir=(void 0)(t),(void 0)((void 0)(this.rootDir))||(void 0)(this.rootDir)}async init(t,r){return this.pg=t,{emscriptenOpts:{...r,preRun:[...r.preRun||[],i=>{let p=i.FS.filesystems.NODEFS;i.FS.mkdir(o),i.FS.mount(p,{root:this.rootDir},o)}]}}}async closeFs(){this.pg.Module.FS.quit()}};export{R as NodeFS};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{bd as H,be as m,bf as o,bg as s,bh as A,bc as C,bi as P,bj as x}from"./reactor_browser-yx1Q9KgX.js";import"./document_model-_oCbt5YE.js";import"./zod-9j67vCAu.js";import"./react-DQSxOgtG.js";import"./document_drive-Bubv8iix.js";import"./graphql-AKTCpY7l.js";import"./config-CU-aFfVJ.js";import"./sentry_react-cODD7zWc.js";import"./sentry_browser-B4YoBIIG.js";import"./drive_explorer-CZ0gwuur.js";import"./document_model_editor-BMc0xTih.js";import"./react/jsx-runtime-DldvXD6N.js";import"./design_system-C9rqhsgB.js";import"./tailwind_merge-Dr4f9Rms.js";import"./react-dom-D6zQJsh6.js";import"./design_system_connect-D83LcbxV.js";import"./design_system_ui-BBjFHSQI.js";import"./react-dom/client-BVPiT_FE.js";C();var B="state.txt",L="data",$={DIR:16384,FILE:32768},T,I,E,_,w,k,y,j,N,b,S,l,v,O,M,g,f,D,R,W,ht=class extends H{constructor(t,{initialPoolSize:e=1e3,maintainedPoolSize:a=100,debug:i=!1}={}){super(t,{debug:i}),m(this,l),m(this,T),m(this,I),m(this,E),m(this,_),m(this,w),m(this,k,new Map),m(this,y,new Map),m(this,j,0),m(this,N,new Map),m(this,b,new Map),this.lastCheckpoint=0,this.checkpointInterval=1e3*60,this.poolCounter=0,m(this,S,new Set),this.initialPoolSize=e,this.maintainedPoolSize=a}async init(t,e){return await o(this,l,v).call(this),super.init(t,e)}async syncToFs(t=!1){await this.maybeCheckpointState(),await this.maintainPool(),t||this.flush()}async closeFs(){for(let t of s(this,y).values())t.close();s(this,w).flush(),s(this,w).close(),this.pg.Module.FS.quit()}async maintainPool(t){t=t||this.maintainedPoolSize;let e=t-this.state.pool.length,a=[];for(let i=0;i<e;i++)a.push(new Promise(async h=>{++this.poolCounter;let r=`${(Date.now()-1704063600).toString(16).padStart(8,"0")}-${this.poolCounter.toString(16).padStart(8,"0")}`,c=await s(this,E).getFileHandle(r,{create:!0}),d=await c.createSyncAccessHandle();s(this,k).set(r,c),s(this,y).set(r,d),o(this,l,M).call(this,{opp:"createPoolFile",args:[r]}),this.state.pool.push(r),h()}));for(let i=0;i>e;i--)a.push(new Promise(async h=>{let r=this.state.pool.pop();o(this,l,M).call(this,{opp:"deletePoolFile",args:[r]});let c=s(this,k).get(r);s(this,y).get(r)?.close(),await s(this,E).removeEntry(c.name),s(this,k).delete(r),s(this,y).delete(r),h()}));await Promise.all(a)}_createPoolFileState(t){this.state.pool.push(t)}_deletePoolFileState(t){let e=this.state.pool.indexOf(t);e>-1&&this.state.pool.splice(e,1)}async maybeCheckpointState(){Date.now()-this.lastCheckpoint>this.checkpointInterval&&await this.checkpointState()}async checkpointState(){let t=new TextEncoder().encode(JSON.stringify(this.state));s(this,w).truncate(0),s(this,w).write(t,{at:0}),s(this,w).flush(),this.lastCheckpoint=Date.now()}flush(){for(let t of s(this,S))try{t.flush()}catch{}s(this,S).clear()}chmod(t,e){o(this,l,O).call(this,{opp:"chmod",args:[t,e]},()=>{this._chmodState(t,e)})}_chmodState(t,e){let a=o(this,l,f).call(this,t);a.mode=e}close(t){let e=o(this,l,D).call(this,t);s(this,N).delete(t),s(this,b).delete(e)}fstat(t){let e=o(this,l,D).call(this,t);return this.lstat(e)}lstat(t){let e=o(this,l,f).call(this,t),a=e.type==="file"?s(this,y).get(e.backingFilename).getSize():0,i=4096;return{dev:0,ino:0,mode:e.mode,nlink:1,uid:0,gid:0,rdev:0,size:a,blksize:i,blocks:Math.ceil(a/i),atime:e.lastModified,mtime:e.lastModified,ctime:e.lastModified}}mkdir(t,e){o(this,l,O).call(this,{opp:"mkdir",args:[t,e]},()=>{this._mkdirState(t,e)})}_mkdirState(t,e){let a=o(this,l,g).call(this,t),i=a.pop(),h=[],r=this.state.root;for(let d of a){if(h.push(t),!Object.prototype.hasOwnProperty.call(r.children,d))if(e?.recursive)this.mkdir(h.join("/"));else throw new p("ENOENT","No such file or directory");if(r.children[d].type!=="directory")throw new p("ENOTDIR","Not a directory");r=r.children[d]}if(Object.prototype.hasOwnProperty.call(r.children,i))throw new p("EEXIST","File exists");let c={type:"directory",lastModified:Date.now(),mode:e?.mode||$.DIR,children:{}};r.children[i]=c}open(t,e,a){if(o(this,l,f).call(this,t).type!=="file")throw new p("EISDIR","Is a directory");let i=o(this,l,R).call(this);return s(this,N).set(i,t),s(this,b).set(t,i),i}readdir(t){let e=o(this,l,f).call(this,t);if(e.type!=="directory")throw new p("ENOTDIR","Not a directory");return Object.keys(e.children)}read(t,e,a,i,h){let r=o(this,l,D).call(this,t),c=o(this,l,f).call(this,r);if(c.type!=="file")throw new p("EISDIR","Is a directory");return s(this,y).get(c.backingFilename).read(new Uint8Array(e.buffer,a,i),{at:h})}rename(t,e){o(this,l,O).call(this,{opp:"rename",args:[t,e]},()=>{this._renameState(t,e,!0)})}_renameState(t,e,a=!1){let i=o(this,l,g).call(this,t),h=i.pop(),r=o(this,l,f).call(this,i.join("/"));if(!Object.prototype.hasOwnProperty.call(r.children,h))throw new p("ENOENT","No such file or directory");let c=o(this,l,g).call(this,e),d=c.pop(),n=o(this,l,f).call(this,c.join("/"));if(a&&Object.prototype.hasOwnProperty.call(n.children,d)){let u=n.children[d];s(this,y).get(u.backingFilename).truncate(0),this.state.pool.push(u.backingFilename)}n.children[d]=r.children[h],delete r.children[h]}rmdir(t){o(this,l,O).call(this,{opp:"rmdir",args:[t]},()=>{this._rmdirState(t)})}_rmdirState(t){let e=o(this,l,g).call(this,t),a=e.pop(),i=o(this,l,f).call(this,e.join("/"));if(!Object.prototype.hasOwnProperty.call(i.children,a))throw new p("ENOENT","No such file or directory");let h=i.children[a];if(h.type!=="directory")throw new p("ENOTDIR","Not a directory");if(Object.keys(h.children).length>0)throw new p("ENOTEMPTY","Directory not empty");delete i.children[a]}truncate(t,e=0){let a=o(this,l,f).call(this,t);if(a.type!=="file")throw new p("EISDIR","Is a directory");let i=s(this,y).get(a.backingFilename);if(!i)throw new p("ENOENT","No such file or directory");i.truncate(e),s(this,S).add(i)}unlink(t){o(this,l,O).call(this,{opp:"unlink",args:[t]},()=>{this._unlinkState(t,!0)})}_unlinkState(t,e=!1){let a=o(this,l,g).call(this,t),i=a.pop(),h=o(this,l,f).call(this,a.join("/"));if(!Object.prototype.hasOwnProperty.call(h.children,i))throw new p("ENOENT","No such file or directory");let r=h.children[i];if(r.type!=="file")throw new p("EISDIR","Is a directory");if(delete h.children[i],e){let c=s(this,y).get(r.backingFilename);c?.truncate(0),s(this,S).add(c),s(this,b).has(t)&&(s(this,N).delete(s(this,b).get(t)),s(this,b).delete(t))}this.state.pool.push(r.backingFilename)}utimes(t,e,a){o(this,l,O).call(this,{opp:"utimes",args:[t,e,a]},()=>{this._utimesState(t,e,a)})}_utimesState(t,e,a){let i=o(this,l,f).call(this,t);i.lastModified=a}writeFile(t,e,a){let i=o(this,l,g).call(this,t),h=i.pop(),r=o(this,l,f).call(this,i.join("/"));if(Object.prototype.hasOwnProperty.call(r.children,h)){let n=r.children[h];n.lastModified=Date.now(),o(this,l,M).call(this,{opp:"setLastModified",args:[t,n.lastModified]})}else{if(this.state.pool.length===0)throw new Error("No more file handles available in the pool");let n={type:"file",lastModified:Date.now(),mode:a?.mode||$.FILE,backingFilename:this.state.pool.pop()};r.children[h]=n,o(this,l,M).call(this,{opp:"createFileNode",args:[t,n]})}let c=r.children[h],d=s(this,y).get(c.backingFilename);e.length>0&&(d.write(typeof e=="string"?new TextEncoder().encode(e):new Uint8Array(e),{at:0}),t.startsWith("/pg_wal")&&s(this,S).add(d))}_createFileNodeState(t,e){let a=o(this,l,g).call(this,t),i=a.pop(),h=o(this,l,f).call(this,a.join("/"));h.children[i]=e;let r=this.state.pool.indexOf(e.backingFilename);return r>-1&&this.state.pool.splice(r,1),e}_setLastModifiedState(t,e){let a=o(this,l,f).call(this,t);a.lastModified=e}write(t,e,a,i,h){let r=o(this,l,D).call(this,t),c=o(this,l,f).call(this,r);if(c.type!=="file")throw new p("EISDIR","Is a directory");let d=s(this,y).get(c.backingFilename);if(!d)throw new p("EBADF","Bad file descriptor");let n=d.write(new Uint8Array(e,a,i),{at:h});return r.startsWith("/pg_wal")&&s(this,S).add(d),n}};T=new WeakMap,I=new WeakMap,E=new WeakMap,_=new WeakMap,w=new WeakMap,k=new WeakMap,y=new WeakMap,j=new WeakMap,N=new WeakMap,b=new WeakMap,S=new WeakMap,l=new WeakSet,v=async function(){P(this,T,await navigator.storage.getDirectory()),P(this,I,await o(this,l,W).call(this,this.dataDir,{create:!0})),P(this,E,await o(this,l,W).call(this,L,{from:s(this,I),create:!0})),P(this,_,await s(this,I).getFileHandle(B,{create:!0})),P(this,w,await s(this,_).createSyncAccessHandle());let t=new ArrayBuffer(s(this,w).getSize());s(this,w).read(t,{at:0});let e,a=new TextDecoder().decode(t).split(`
|
|
2
|
-
`),i=!1;try{e=JSON.parse(a[0])}catch{e={root:{type:"directory",lastModified:Date.now(),mode:$.DIR,children:{}},pool:[]},s(this,w).truncate(0),s(this,w).write(new TextEncoder().encode(JSON.stringify(e)),{at:0}),i=!0}this.state=e;let h=a.slice(1).filter(Boolean).map(n=>JSON.parse(n));for(let n of h){let u=`_${n.opp}State`;if(typeof this[u]=="function")try{this[u].bind(this)(...n.args)}catch(F){console.warn("Error applying OPFS AHP WAL entry",n,F)}}let r=[],c=async n=>{if(n.type==="file")try{let u=await s(this,E).getFileHandle(n.backingFilename),F=await u.createSyncAccessHandle();s(this,k).set(n.backingFilename,u),s(this,y).set(n.backingFilename,F)}catch(u){console.error("Error opening file handle for node",n,u)}else for(let u of Object.values(n.children))r.push(c(u))};await c(this.state.root);let d=[];for(let n of this.state.pool)d.push(new Promise(async u=>{s(this,k).has(n)&&console.warn("File handle already exists for pool file",n);let F=await s(this,E).getFileHandle(n),z=await F.createSyncAccessHandle();s(this,k).set(n,F),s(this,y).set(n,z),u()}));await Promise.all([...r,...d]),await this.maintainPool(i?this.initialPoolSize:this.maintainedPoolSize)},O=function(t,e){let a=o(this,l,M).call(this,t);try{e()}catch(i){throw s(this,w).truncate(a),i}},M=function(t){let e=JSON.stringify(t),a=new TextEncoder().encode(`
|
|
3
|
-
${e}`),i=s(this,w).getSize();return s(this,w).write(a,{at:i}),s(this,S).add(s(this,w)),i},g=function(t){return t.split("/").filter(Boolean)},f=function(t,e){let a=o(this,l,g).call(this,t),i=e||this.state.root;for(let h of a){if(i.type!=="directory")throw new p("ENOTDIR","Not a directory");if(!Object.prototype.hasOwnProperty.call(i.children,h))throw new p("ENOENT","No such file or directory");i=i.children[h]}return i},D=function(t){let e=s(this,N).get(t);if(!e)throw new p("EBADF","Bad file descriptor");return e},R=function(){let t=++x(this,j)._;for(;s(this,N).has(t);)x(this,j)._++;return t},W=async function(t,e){let a=o(this,l,g).call(this,t),i=e?.from||s(this,T);for(let h of a)i=await i.getDirectoryHandle(h,{create:e?.create});return i};var p=class extends Error{constructor(t,e){super(e),typeof t=="number"?this.code=t:typeof t=="string"&&(this.code=A[t])}};export{ht as OpfsAhpFS};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var s={exports:{}},e={};var o;function d(){if(o)return e;o=1;var R=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(v,r,t){var u=null;if(t!==void 0&&(u=""+t),r.key!==void 0&&(u=""+r.key),"key"in r){t={};for(var n in r)n!=="key"&&(t[n]=r[n])}else t=r;return r=t.ref,{$$typeof:R,type:v,key:u,ref:r!==void 0?r:null,props:t}}return e.Fragment=a,e.jsx=i,e.jsxs=i,e}var x;function l(){return x||(x=1,s.exports=d()),s.exports}export{l as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function de(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Te(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var l=r.default;if(typeof l=="function"){var p=function T(){var h=!1;try{h=this instanceof T}catch{}return h?Reflect.construct(l,arguments,this.constructor):l.apply(this,arguments)};p.prototype=l.prototype}else p={};return Object.defineProperty(p,"__esModule",{value:!0}),Object.keys(r).forEach(function(T){var h=Object.getOwnPropertyDescriptor(r,T);Object.defineProperty(p,T,h.get?h:{enumerable:!0,get:function(){return r[T]}})}),p}function pe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var X={exports:{}},a=X.exports={},E,v;function I(){throw new Error("setTimeout has not been defined")}function L(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=I}catch{E=I}try{typeof clearTimeout=="function"?v=clearTimeout:v=L}catch{v=L}})();function Z(r){if(E===setTimeout)return setTimeout(r,0);if((E===I||!E)&&setTimeout)return E=setTimeout,setTimeout(r,0);try{return E(r,0)}catch{try{return E.call(null,r,0)}catch{return E.call(this,r,0)}}}function ye(r){if(v===clearTimeout)return clearTimeout(r);if((v===L||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(r);try{return v(r)}catch{try{return v.call(null,r)}catch{return v.call(this,r)}}}var m=[],C=!1,g,O=-1;function _e(){!C||!g||(C=!1,g.length?m=g.concat(m):O=-1,m.length&&J())}function J(){if(!C){var r=Z(_e);C=!0;for(var l=m.length;l;){for(g=m,m=[];++O<l;)g&&g[O].run();O=-1,l=m.length}g=null,C=!1,ye(r)}}a.nextTick=function(r){var l=new Array(arguments.length-1);if(arguments.length>1)for(var p=1;p<arguments.length;p++)l[p-1]=arguments[p];m.push(new V(r,l)),m.length===1&&!C&&Z(J)};function V(r,l){this.fun=r,this.array=l}V.prototype.run=function(){this.fun.apply(null,this.array)};a.title="browser";a.browser=!0;a.env={};a.argv=[];a.version="";a.versions={};function d(){}a.on=d;a.addListener=d;a.once=d;a.off=d;a.removeListener=d;a.removeAllListeners=d;a.emit=d;a.prependListener=d;a.prependOnceListener=d;a.listeners=function(r){return[]};a.binding=function(r){throw new Error("process.binding is not supported")};a.cwd=function(){return"/"};a.chdir=function(r){throw new Error("process.chdir is not supported")};a.umask=function(){return 0};var Ee=X.exports;const M=pe(Ee);var N={exports:{}},n={},B;function ve(){if(B)return n;B=1;var r=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),ne=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),x=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=x&&e[x]||e["@@iterator"],typeof e=="function"?e:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,D={};function R(e,t,o){this.props=e,this.context=t,this.refs=D,this.updater=o||U}R.prototype.isReactComponent={},R.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},R.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function k(){}k.prototype=R.prototype;function S(e,t,o){this.props=e,this.context=t,this.refs=D,this.updater=o||U}var j=S.prototype=new k;j.constructor=S,q(j,R.prototype),j.isPureReactComponent=!0;var z=Array.isArray;function P(){}var f={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function b(e,t,o){var u=o.ref;return{$$typeof:r,type:e,key:t,ref:u!==void 0?u:null,props:o}}function se(e,t){return b(e.type,t,e.props)}function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function ie(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(o){return t[o]})}var K=/\/+/g;function $(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ie(""+e.key):t.toString(36)}function fe(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(P,P):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function w(e,t,o,u,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(i){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case r:case l:c=!0;break;case Y:return c=e._init,w(c(e._payload),t,o,u,s)}}if(c)return s=s(e),c=u===""?"."+$(e,0):u,z(s)?(o="",c!=null&&(o=c.replace(K,"$&/")+"/"),w(s,t,o,"",function(le){return le})):s!=null&&(H(s)&&(s=se(s,o+(s.key==null||e&&e.key===s.key?"":(""+s.key).replace(K,"$&/")+"/")+c)),t.push(s)),1;c=0;var _=u===""?".":u+":";if(z(e))for(var y=0;y<e.length;y++)u=e[y],i=_+$(u,y),c+=w(u,t,o,i,s);else if(y=oe(e),typeof y=="function")for(e=y.call(e),y=0;!(u=e.next()).done;)u=u.value,i=_+$(u,y++),c+=w(u,t,o,i,s);else if(i==="object"){if(typeof e.then=="function")return w(fe(e),t,o,u,s);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function A(e,t,o){if(e==null)return e;var u=[],s=0;return w(e,u,"","",function(i){return t.call(o,i,s++)}),u}function ce(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(o){(e._status===0||e._status===-1)&&(e._status=1,e._result=o)},function(o){(e._status===0||e._status===-1)&&(e._status=2,e._result=o)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Q=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof M=="object"&&typeof M.emit=="function"){M.emit("uncaughtException",e);return}console.error(e)},ae={map:A,forEach:function(e,t,o){A(e,function(){t.apply(this,arguments)},o)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(t){return t})||[]},only:function(e){if(!H(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return n.Activity=ue,n.Children=ae,n.Component=R,n.Fragment=p,n.Profiler=h,n.PureComponent=S,n.StrictMode=T,n.Suspense=re,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,n.__COMPILER_RUNTIME={__proto__:null,c:function(e){return f.H.useMemoCache(e)}},n.cache=function(e){return function(){return e.apply(null,arguments)}},n.cacheSignal=function(){return null},n.cloneElement=function(e,t,o){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var u=q({},e.props),s=e.key;if(t!=null)for(i in t.key!==void 0&&(s=""+t.key),t)!G.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(u[i]=t[i]);var i=arguments.length-2;if(i===1)u.children=o;else if(1<i){for(var c=Array(i),_=0;_<i;_++)c[_]=arguments[_+2];u.children=c}return b(e.type,s,u)},n.createContext=function(e){return e={$$typeof:ee,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:F,_context:e},e},n.createElement=function(e,t,o){var u,s={},i=null;if(t!=null)for(u in t.key!==void 0&&(i=""+t.key),t)G.call(t,u)&&u!=="key"&&u!=="__self"&&u!=="__source"&&(s[u]=t[u]);var c=arguments.length-2;if(c===1)s.children=o;else if(1<c){for(var _=Array(c),y=0;y<c;y++)_[y]=arguments[y+2];s.children=_}if(e&&e.defaultProps)for(u in c=e.defaultProps,c)s[u]===void 0&&(s[u]=c[u]);return b(e,i,s)},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:te,render:e}},n.isValidElement=H,n.lazy=function(e){return{$$typeof:Y,_payload:{_status:-1,_result:e},_init:ce}},n.memo=function(e,t){return{$$typeof:ne,type:e,compare:t===void 0?null:t}},n.startTransition=function(e){var t=f.T,o={};f.T=o;try{var u=e(),s=f.S;s!==null&&s(o,u),typeof u=="object"&&u!==null&&typeof u.then=="function"&&u.then(P,Q)}catch(i){Q(i)}finally{t!==null&&o.types!==null&&(t.types=o.types),f.T=t}},n.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()},n.use=function(e){return f.H.use(e)},n.useActionState=function(e,t,o){return f.H.useActionState(e,t,o)},n.useCallback=function(e,t){return f.H.useCallback(e,t)},n.useContext=function(e){return f.H.useContext(e)},n.useDebugValue=function(){},n.useDeferredValue=function(e,t){return f.H.useDeferredValue(e,t)},n.useEffect=function(e,t){return f.H.useEffect(e,t)},n.useEffectEvent=function(e){return f.H.useEffectEvent(e)},n.useId=function(){return f.H.useId()},n.useImperativeHandle=function(e,t,o){return f.H.useImperativeHandle(e,t,o)},n.useInsertionEffect=function(e,t){return f.H.useInsertionEffect(e,t)},n.useLayoutEffect=function(e,t){return f.H.useLayoutEffect(e,t)},n.useMemo=function(e,t){return f.H.useMemo(e,t)},n.useOptimistic=function(e,t){return f.H.useOptimistic(e,t)},n.useReducer=function(e,t,o){return f.H.useReducer(e,t,o)},n.useRef=function(e){return f.H.useRef(e)},n.useState=function(e){return f.H.useState(e)},n.useSyncExternalStore=function(e,t,o){return f.H.useSyncExternalStore(e,t,o)},n.useTransition=function(){return f.H.useTransition()},n.version="19.2.0",n}var W;function he(){return W||(W=1,N.exports=ve()),N.exports}export{Te as a,me as c,de as g,M as p,he as r};
|