alinea 1.7.0 → 2.0.0-preview.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.init/content/pages/welcome.json +1 -1
- package/dist/.init/src/app/(alinea)/api/cms/route.ts +8 -8
- package/dist/.init/src/cms.ts +45 -47
- package/dist/LICENSES.md +208 -560
- package/dist/adapter/core/cms.js +1 -1
- package/dist/adapter/core/handler.js +1 -1
- package/dist/adapter/core/preview.js +2 -2
- package/dist/adapter/core/previewContext.d.ts +1 -1
- package/dist/adapter/core/previewContext.js +1 -1
- package/dist/adapter/next/cms.d.ts +1 -1
- package/dist/adapter/next/cms.js +7 -7
- package/dist/adapter/next/context.js +1 -1
- package/dist/adapter/next/handler.d.ts +2 -4
- package/dist/adapter/next/handler.js +11 -5
- package/dist/adapter/next/previews.d.ts +2 -2
- package/dist/adapter/next/previews.js +13 -17
- package/dist/adapter/next/with-alinea.js +20 -10
- package/dist/adapter/vite/plugin.d.ts +2 -0
- package/dist/adapter/vite/plugin.js +66 -0
- package/dist/backend/Auth.js +1 -1
- package/dist/backend/HandleAction.d.ts +1 -0
- package/dist/backend/HandleAction.js +2 -1
- package/dist/backend/Handler.js +125 -17
- package/dist/backend/Previews.d.ts +2 -5
- package/dist/backend/api/BasicAuth.d.ts +2 -2
- package/dist/backend/api/BasicAuth.js +5 -3
- package/dist/backend/api/CreateBackend.d.ts +11 -2
- package/dist/backend/api/CreateBackend.js +45 -2502
- package/dist/backend/api/DatabaseApi.d.ts +8 -2
- package/dist/backend/api/DatabaseApi.js +252 -123
- package/dist/backend/api/GithubApi.d.ts +0 -4
- package/dist/backend/api/GithubApi.js +11 -7
- package/dist/backend/api/OAuth2.d.ts +3 -3
- package/dist/backend/api/OAuth2.js +36 -25
- package/dist/backend/api/S3Uploads.d.ts +32 -0
- package/dist/backend/api/S3Uploads.js +178 -0
- package/dist/backend/api/SupabaseUploads.d.ts +28 -0
- package/dist/backend/api/SupabaseUploads.js +41 -0
- package/dist/backend/api/UploadPaths.d.ts +7 -0
- package/dist/backend/api/UploadPaths.js +53 -0
- package/dist/backend/api/auth.d.ts +5 -0
- package/dist/backend/api/auth.js +15 -0
- package/dist/backend/api/database.d.ts +2 -0
- package/dist/backend/api/database.js +16 -0
- package/dist/backend/api/github.d.ts +3 -0
- package/dist/backend/api/github.js +10 -0
- package/dist/backend/api/uploads.d.ts +9 -0
- package/dist/backend/api/uploads.js +23 -0
- package/dist/backend/loader/JsonLoader.js +1 -1
- package/dist/backend/resolver/ParsePreview.js +2 -2
- package/dist/backend/router/NodeHandler.js +1 -1
- package/dist/backend/router/Router.js +32 -6
- package/dist/backend/store/GeneratedRelease.js +1 -1
- package/dist/backend/store/GeneratedSource.js +1 -1
- package/dist/backend/util/ExecGit.js +4 -4
- package/dist/backend/util/JWTPreviews.d.ts +3 -3
- package/dist/backend/util/JWTPreviews.js +19 -5
- package/dist/backend/util/JsonPatch.js +1 -1
- package/dist/backend/util/ORM.js +2 -2
- package/dist/backend/util/Syncable.js +2 -2
- package/dist/backend.d.ts +5 -0
- package/dist/backend.js +17 -0
- package/dist/bundled.d.ts +8233 -8178
- package/dist/chunks/chunk-53DZYORR.js +3705 -0
- package/dist/chunks/chunk-7ORQ7BYK.js +1187 -0
- package/dist/chunks/chunk-AC4U3IMS.js +205 -0
- package/dist/chunks/chunk-BYJRQTFR.js +57 -0
- package/dist/chunks/chunk-CQ52GEHY.js +39 -0
- package/dist/chunks/chunk-EQ3TDHYD.js +79 -0
- package/dist/chunks/chunk-F36YGSHN.js +335 -0
- package/dist/chunks/chunk-G6E35DMJ.js +1997 -0
- package/dist/chunks/chunk-I4GC3E65.js +170 -0
- package/dist/chunks/chunk-I4OYYAX5.js +63 -0
- package/dist/chunks/chunk-I7X64JTZ.js +10402 -0
- package/dist/chunks/chunk-IWN3T3FL.js +19493 -0
- package/dist/chunks/chunk-IYAQC63Y.js +1265 -0
- package/dist/chunks/chunk-JFROOUG6.js +6363 -0
- package/dist/chunks/chunk-LB3UYTOL.js +95 -0
- package/dist/chunks/chunk-LUBOGJCG.js +129 -0
- package/dist/chunks/chunk-NWQXN4SB.js +227 -0
- package/dist/chunks/chunk-RKDPDEF7.js +160 -0
- package/dist/chunks/chunk-SJBZFMQ2.js +2966 -0
- package/dist/chunks/chunk-STAJCW4Z.js +322 -0
- package/dist/chunks/chunk-TL7ZW6BX.js +17963 -0
- package/dist/chunks/chunk-U4VOHNR2.js +210 -0
- package/dist/chunks/chunk-U5Z2VE7Z.js +120 -0
- package/dist/chunks/chunk-X47OVDF3.js +1974 -0
- package/dist/chunks/chunk-Y7XOMJOC.js +791 -0
- package/dist/chunks/chunk-YK3OSMDM.js +5473 -0
- package/dist/chunks/crypto-UO2XRCJS.js +11 -0
- package/dist/cli/Generate.js +9 -4
- package/dist/cli/Init.js +1 -1
- package/dist/cli/Serve.d.ts +2 -2
- package/dist/cli/Serve.js +54 -100
- package/dist/cli/bin.js +85 -12
- package/dist/cli/build/BuildEmitter.js +1 -1
- package/dist/cli/build/BuildOptions.js +1 -1
- package/dist/cli/generate/CompileConfig.d.ts +1 -1
- package/dist/cli/generate/CompileConfig.js +1 -1
- package/dist/cli/generate/CopyStaticFiles.js +2 -1
- package/dist/cli/generate/DevDB.js +2 -8
- package/dist/cli/generate/FillCache.js +2 -2
- package/dist/cli/generate/GenerateDashboard.js +1 -1
- package/dist/cli/generate/LoadConfig.js +2 -3
- package/dist/cli/serve/CreateLocalServer.d.ts +1 -1
- package/dist/cli/serve/CreateLocalServer.js +81 -26
- package/dist/cli/serve/DevServer.d.ts +19 -0
- package/dist/cli/serve/DevServer.js +134 -0
- package/dist/cli/serve/GitHistory.d.ts +1 -2
- package/dist/cli/serve/GitHistory.js +15 -2
- package/dist/cli/serve/LiveReload.js +1 -1
- package/dist/cli/serve/LocalAuth.js +1 -1
- package/dist/cli/serve/MemoryDrafts.js +1 -1
- package/dist/cli/serve/StartServer.js +1 -1
- package/dist/cli/static/init/cms.js +45 -47
- package/dist/cli/static/init/next-handler.js +8 -8
- package/dist/cli/util/CommitMessage.js +1 -1
- package/dist/cli/util/CommitSha.js +1 -1
- package/dist/cli/util/Dirname.js +1 -1
- package/dist/cli/util/Emitter.js +1 -1
- package/dist/cli/util/EnsureEnv.js +1 -1
- package/dist/cli/util/EnsureLibs.js +1 -1
- package/dist/cli/util/EnsureNode.js +1 -1
- package/dist/cli/util/ExternalPlugin.js +595 -486
- package/dist/cli/util/FS.js +1 -1
- package/dist/cli/util/FindConfigFile.js +1 -1
- package/dist/cli/util/ForwardCommand.js +1 -1
- package/dist/cli/util/IgnorePlugin.js +1 -1
- package/dist/cli/util/PublicDefines.js +1 -1
- package/dist/cli/util/Report.js +1 -1
- package/dist/cli/util/ViewsPlugin.js +2 -2
- package/dist/cli/util/WarnPublicEnv.js +1 -1
- package/dist/cli/util/Watcher.js +1 -1
- package/dist/cloud/AuthResult.js +1 -1
- package/dist/cloud/CloudConfig.d.ts +1 -0
- package/dist/cloud/CloudConfig.js +2 -1
- package/dist/cloud/CloudRemote.d.ts +10 -4
- package/dist/cloud/CloudRemote.js +56 -9
- package/dist/components/Breadcrumbs.d.ts +3 -0
- package/dist/components/Breadcrumbs.js +42 -0
- package/dist/components/Button.d.ts +10 -0
- package/dist/components/Button.js +57 -0
- package/dist/components/Calendar.d.ts +3 -0
- package/dist/components/Calendar.js +94 -0
- package/dist/components/Checkbox.d.ts +9 -0
- package/dist/components/Checkbox.js +75 -0
- package/dist/components/CheckboxGroup.d.ts +6 -0
- package/dist/components/CheckboxGroup.js +45 -0
- package/dist/components/ColorSwatch.d.ts +2 -0
- package/dist/components/ColorSwatch.js +45 -0
- package/dist/components/ColorSwatchPicker.d.ts +3 -0
- package/dist/components/ColorSwatchPicker.js +66 -0
- package/dist/components/ComboBox.d.ts +13 -0
- package/dist/components/ComboBox.js +147 -0
- package/dist/components/DateField.d.ts +5 -0
- package/dist/components/DateField.js +61 -0
- package/dist/components/DatePicker.d.ts +5 -0
- package/dist/components/DatePicker.js +78 -0
- package/dist/components/DateRangePicker.d.ts +5 -0
- package/dist/components/DateRangePicker.js +95 -0
- package/dist/components/Dialog.d.ts +3 -0
- package/dist/components/Dialog.js +43 -0
- package/dist/components/Disclosure.d.ts +5 -0
- package/dist/components/Disclosure.js +106 -0
- package/dist/components/DropZone.d.ts +4 -0
- package/dist/components/DropZone.js +41 -0
- package/dist/components/FoldIcon.d.ts +6 -0
- package/dist/components/FoldIcon.js +31 -0
- package/dist/components/Icon.d.ts +7 -0
- package/dist/components/Icon.js +40 -0
- package/dist/components/Label.d.ts +48 -0
- package/dist/components/Label.js +210 -0
- package/dist/components/Link.d.ts +5 -0
- package/dist/components/Link.js +42 -0
- package/dist/components/List.d.ts +99 -0
- package/dist/components/List.js +397 -0
- package/dist/components/Menu.d.ts +16 -0
- package/dist/components/Menu.js +95 -0
- package/dist/components/Modal.d.ts +7 -0
- package/dist/components/Modal.js +58 -0
- package/dist/components/MultipleSelect.d.ts +25 -0
- package/dist/components/MultipleSelect.js +278 -0
- package/dist/components/NumberField.d.ts +6 -0
- package/dist/components/NumberField.js +90 -0
- package/dist/components/Popover.d.ts +6 -0
- package/dist/components/Popover.js +42 -0
- package/dist/components/ProgressCircle.d.ts +6 -0
- package/dist/components/ProgressCircle.js +96 -0
- package/dist/components/RadioGroup.d.ts +8 -0
- package/dist/components/RadioGroup.js +64 -0
- package/dist/components/SearchField.d.ts +8 -0
- package/dist/components/SearchField.js +86 -0
- package/dist/components/Select.d.ts +13 -0
- package/dist/components/Select.js +150 -0
- package/dist/components/Surface.d.ts +15 -0
- package/dist/components/Surface.js +53 -0
- package/dist/components/Switch.d.ts +5 -0
- package/dist/components/Switch.js +47 -0
- package/dist/components/Table.d.ts +14 -0
- package/dist/components/Table.js +147 -0
- package/dist/components/Tabs.d.ts +13 -0
- package/dist/components/Tabs.js +96 -0
- package/dist/components/TagGroup.d.ts +10 -0
- package/dist/components/TagGroup.js +81 -0
- package/dist/components/TextField.d.ts +13 -0
- package/dist/components/TextField.js +77 -0
- package/dist/components/TimeField.d.ts +5 -0
- package/dist/components/TimeField.js +55 -0
- package/dist/components/Toggle.d.ts +8 -0
- package/dist/components/Toggle.js +61 -0
- package/dist/components/Toolbar.d.ts +8 -0
- package/dist/components/Toolbar.js +80 -0
- package/dist/components/Tooltip.d.ts +7 -0
- package/dist/components/Tooltip.js +54 -0
- package/dist/components/Tree.d.ts +23 -0
- package/dist/components/Tree.js +130 -0
- package/dist/components.d.ts +38 -0
- package/dist/components.js +39 -0
- package/dist/config.js +1 -1
- package/dist/core/CMS.js +1 -1
- package/dist/core/Client.d.ts +11 -7
- package/dist/core/Client.js +53 -10
- package/dist/core/Config.d.ts +2 -0
- package/dist/core/Config.js +1 -3
- package/dist/core/Connection.d.ts +28 -9
- package/dist/core/Document.js +10 -8
- package/dist/core/Draft.js +1 -1
- package/dist/core/Entry.d.ts +6 -0
- package/dist/core/Entry.js +16 -1
- package/dist/core/EntryFields.d.ts +4 -0
- package/dist/core/EntryFields.js +4 -2
- package/dist/core/EntryRecord.js +1 -1
- package/dist/core/Expr.d.ts +1 -0
- package/dist/core/Expr.js +1 -1
- package/dist/core/Field.d.ts +46 -5
- package/dist/core/Field.js +56 -10
- package/dist/core/Graph.d.ts +6 -0
- package/dist/core/Graph.js +1 -1
- package/dist/core/HttpError.js +1 -1
- package/dist/core/Id.js +1 -1
- package/dist/core/Infer.d.ts +1 -1
- package/dist/core/Internal.js +6 -6
- package/dist/core/ListRow.d.ts +10 -0
- package/dist/core/ListRow.js +12 -0
- package/dist/core/Outcome.js +1 -1
- package/dist/core/Page.js +2 -2
- package/dist/core/Picker.d.ts +0 -2
- package/dist/core/Picker.js +1 -1
- package/dist/core/Reference.js +1 -1
- package/dist/core/Role.d.ts +3 -0
- package/dist/core/Role.js +7 -1
- package/dist/core/Root.d.ts +4 -0
- package/dist/core/Root.js +7 -2
- package/dist/core/Schema.d.ts +0 -2
- package/dist/core/Schema.js +2 -16
- package/dist/core/Scope.js +1 -1
- package/dist/core/Section.js +2 -2
- package/dist/core/TextDoc.d.ts +4 -0
- package/dist/core/TextDoc.js +3 -1
- package/dist/core/Tracker.d.ts +1 -6
- package/dist/core/Tracker.js +2 -12
- package/dist/core/Trigger.js +1 -1
- package/dist/core/Type.d.ts +15 -6
- package/dist/core/Type.js +108 -28
- package/dist/core/UnionRow.d.ts +11 -0
- package/dist/core/UnionRow.js +11 -0
- package/dist/core/User.d.ts +7 -1
- package/dist/core/User.js +1 -1
- package/dist/core/View.js +1 -1
- package/dist/core/Workspace.d.ts +4 -1
- package/dist/core/Workspace.js +1 -1
- package/dist/core/db/CommitRequest.d.ts +2 -0
- package/dist/core/db/CommitRequest.js +1 -1
- package/dist/core/db/EntryAliases.d.ts +2 -0
- package/dist/core/db/EntryAliases.js +28 -0
- package/dist/core/db/EntryDB.d.ts +2 -2
- package/dist/core/db/EntryDB.js +3 -3
- package/dist/core/db/EntryIndex.d.ts +7 -0
- package/dist/core/db/EntryIndex.js +168 -26
- package/dist/core/db/EntryReference.d.ts +44 -0
- package/dist/core/db/EntryReference.js +9 -0
- package/dist/core/db/EntryReferenceIndex.d.ts +21 -0
- package/dist/core/db/EntryReferenceIndex.js +131 -0
- package/dist/core/db/EntryResolver.d.ts +10 -7
- package/dist/core/db/EntryResolver.js +90 -35
- package/dist/core/db/EntryTransaction.d.ts +1 -1
- package/dist/core/db/EntryTransaction.js +395 -57
- package/dist/core/db/EntryUrlConflictError.d.ts +11 -0
- package/dist/core/db/EntryUrlConflictError.js +16 -0
- package/dist/core/db/IndexEvent.d.ts +5 -2
- package/dist/core/db/IndexEvent.js +2 -1
- package/dist/core/db/LinkResolver.d.ts +1 -1
- package/dist/core/db/LinkResolver.js +4 -1
- package/dist/core/db/LocalDB.d.ts +4 -2
- package/dist/core/db/LocalDB.js +8 -6
- package/dist/core/db/Mutation.d.ts +3 -3
- package/dist/core/db/Operation.d.ts +8 -3
- package/dist/core/db/Operation.js +67 -23
- package/dist/core/db/TestDB.d.ts +9 -1
- package/dist/core/db/TestDB.js +24 -1
- package/dist/core/db/WriteableGraph.d.ts +15 -4
- package/dist/core/db/WriteableGraph.js +14 -2
- package/dist/core/field/CreateField.d.ts +5 -4
- package/dist/core/field/CreateField.js +9 -5
- package/dist/core/field/ListField.d.ts +13 -4
- package/dist/core/field/ListField.js +146 -13
- package/dist/core/field/RecordField.d.ts +5 -3
- package/dist/core/field/RecordField.js +58 -2
- package/dist/core/field/RichTextField.d.ts +7 -2
- package/dist/core/field/RichTextField.js +325 -10
- package/dist/core/field/ScalarField.js +9 -7
- package/dist/core/field/UnionField.d.ts +2 -3
- package/dist/core/field/UnionField.js +61 -12
- package/dist/core/media/CreatePreview.browser.js +5 -5
- package/dist/core/media/CreatePreview.js +15 -10
- package/dist/core/media/IsImage.js +1 -1
- package/dist/core/media/MediaAltField.d.ts +9 -0
- package/dist/core/media/MediaAltField.js +17 -0
- package/dist/core/media/MediaLocation.d.ts +39 -0
- package/dist/core/media/MediaLocation.js +55 -2
- package/dist/core/media/MediaRoot.d.ts +2 -2
- package/dist/core/media/MediaRoot.js +12 -11
- package/dist/core/media/MediaTypes.d.ts +21 -15
- package/dist/core/media/MediaTypes.js +33 -16
- package/dist/core/media/Summary.d.ts +8 -8
- package/dist/core/media/Summary.js +1 -1
- package/dist/core/media/UploadLimits.d.ts +1 -0
- package/dist/core/media/UploadLimits.js +20 -0
- package/dist/core/pages/Snippet.js +1 -1
- package/dist/core/shape/ListShape.d.ts +1 -47
- package/dist/core/shape/ListShape.js +1 -224
- package/dist/core/source/CombinedSource.js +1 -1
- package/dist/core/source/FSSource.d.ts +3 -2
- package/dist/core/source/FSSource.js +25 -12
- package/dist/core/source/FilePatch.js +5 -2
- package/dist/core/source/GitDelta.js +1 -1
- package/dist/core/source/GitUtils.js +1 -1
- package/dist/core/source/GithubSource.d.ts +1 -0
- package/dist/core/source/GithubSource.js +17 -4
- package/dist/core/source/IndexedDBSource.js +23 -11
- package/dist/core/source/MemorySource.js +1 -1
- package/dist/core/source/ShaMismatchError.js +3 -1
- package/dist/core/source/Source.js +1 -1
- package/dist/core/source/SourceExport.js +3 -3
- package/dist/core/source/Tree.js +1 -1
- package/dist/core/source/Utils.js +2 -5
- package/dist/core/util/Anchors.d.ts +4 -0
- package/dist/core/util/Anchors.js +45 -0
- package/dist/core/util/ArrayBuffers.js +1 -1
- package/dist/core/util/Assert.js +1 -1
- package/dist/core/util/Async.js +1 -1
- package/dist/core/util/BufferToBase64.js +1 -1
- package/dist/core/util/Callable.js +1 -1
- package/dist/core/util/Checks.js +2 -2
- package/dist/core/util/CodeGen.js +3 -1
- package/dist/core/util/ContentHash.js +1 -1
- package/dist/core/util/Debounce.js +1 -1
- package/dist/core/util/DeepMap.d.ts +14 -0
- package/dist/core/util/DeepMap.js +75 -0
- package/dist/core/util/Encoding.js +1 -1
- package/dist/core/util/EntryFilenames.d.ts +0 -1
- package/dist/core/util/EntryFilenames.js +2 -6
- package/dist/core/util/EntryRows.js +1 -1
- package/dist/core/util/FractionalIndexing.js +1 -1
- package/dist/core/util/GetRandomColor.js +20 -20
- package/dist/core/util/Identifiers.js +1 -1
- package/dist/core/util/JWT.js +1 -1
- package/dist/core/util/Lazy.js +1 -1
- package/dist/core/util/LazyRecord.js +1 -1
- package/dist/core/util/Logger.js +2 -1
- package/dist/core/util/Objects.d.ts +1 -0
- package/dist/core/util/Objects.js +5 -1
- package/dist/core/util/Paths.js +2 -2
- package/dist/core/util/RowId.js +1 -1
- package/dist/core/util/Slugs.js +1 -1
- package/dist/core/util/Timer.js +1 -1
- package/dist/core/util/Types.js +1 -1
- package/dist/core/util/Urls.js +1 -1
- package/dist/core.d.ts +1 -0
- package/dist/core.js +2 -1
- package/dist/dashboard/App.css +319 -0
- package/dist/dashboard/App.d.ts +8 -8
- package/dist/dashboard/App.js +188 -142
- package/dist/dashboard/StoryProvider.d.ts +12 -0
- package/dist/dashboard/StoryProvider.js +82 -0
- package/dist/dashboard/ViewKeys.d.ts +26 -0
- package/dist/dashboard/ViewKeys.js +32 -0
- package/dist/dashboard/app/AccessDenied.d.ts +5 -0
- package/dist/dashboard/app/AccessDenied.js +53 -0
- package/dist/dashboard/app/ActivityStatus.d.ts +10 -0
- package/dist/dashboard/app/ActivityStatus.js +459 -0
- package/dist/dashboard/app/AlineaLogo.d.ts +4 -0
- package/dist/dashboard/app/AlineaLogo.js +26 -0
- package/dist/dashboard/app/AppShell.d.ts +4 -0
- package/dist/dashboard/app/AppShell.js +29 -0
- package/dist/dashboard/app/AuthView.d.ts +8 -0
- package/dist/dashboard/app/AuthView.js +111 -0
- package/dist/dashboard/app/Badge.d.ts +8 -0
- package/dist/dashboard/app/Badge.js +42 -0
- package/dist/dashboard/app/CompactField.d.ts +14 -0
- package/dist/dashboard/app/CompactField.js +178 -0
- package/dist/dashboard/app/DashboardErrorBoundary.d.ts +2 -0
- package/dist/dashboard/app/DashboardErrorBoundary.js +122 -0
- package/dist/dashboard/app/DashboardLayout.d.ts +18 -0
- package/dist/dashboard/app/DashboardLayout.js +88 -0
- package/dist/dashboard/app/DashboardMeta.d.ts +7 -0
- package/dist/dashboard/app/DashboardMeta.js +28 -0
- package/dist/dashboard/app/EditorBackButton.d.ts +5 -0
- package/dist/dashboard/app/EditorBackButton.js +33 -0
- package/dist/dashboard/app/EntryFields.d.ts +21 -0
- package/dist/dashboard/app/EntryFields.js +101 -0
- package/dist/dashboard/app/EntryHeader.d.ts +15 -0
- package/dist/dashboard/app/EntryHeader.js +452 -0
- package/dist/dashboard/app/EntryHeaderActions.d.ts +37 -0
- package/dist/dashboard/app/EntryHeaderActions.js +71 -0
- package/dist/dashboard/app/EntryReferences.d.ts +6 -0
- package/dist/dashboard/app/EntryReferences.js +209 -0
- package/dist/dashboard/app/EntrySidebar.d.ts +25 -0
- package/dist/dashboard/app/EntrySidebar.js +378 -0
- package/dist/dashboard/app/EntrySidebarPreview.d.ts +10 -0
- package/dist/dashboard/app/EntrySidebarPreview.js +260 -0
- package/dist/dashboard/app/EntrySidebarPreview.story.d.ts +1 -0
- package/dist/dashboard/app/EntrySidebarToggle.d.ts +6 -0
- package/dist/dashboard/app/EntrySidebarToggle.js +29 -0
- package/dist/dashboard/app/EntryTranslationBanner.d.ts +7 -0
- package/dist/dashboard/app/EntryTranslationBanner.js +60 -0
- package/dist/dashboard/app/Explorer.d.ts +41 -0
- package/dist/dashboard/app/Explorer.js +804 -0
- package/dist/dashboard/app/ExplorerCards.d.ts +12 -0
- package/dist/dashboard/app/ExplorerCards.js +389 -0
- package/dist/dashboard/app/ExplorerFileCard.d.ts +10 -0
- package/dist/dashboard/app/ExplorerFileCard.js +115 -0
- package/dist/dashboard/app/ExplorerList.d.ts +9 -0
- package/dist/dashboard/app/ExplorerList.js +165 -0
- package/dist/dashboard/app/ExplorerModal.d.ts +16 -0
- package/dist/dashboard/app/ExplorerModal.js +89 -0
- package/dist/dashboard/app/ExplorerPickerContent.d.ts +13 -0
- package/dist/dashboard/app/ExplorerPickerContent.js +114 -0
- package/dist/dashboard/app/ExplorerTable.d.ts +14 -0
- package/dist/dashboard/app/ExplorerTable.js +497 -0
- package/dist/dashboard/app/ExternalLinkPicker.d.ts +12 -0
- package/dist/dashboard/app/ExternalLinkPicker.js +97 -0
- package/dist/dashboard/app/ImagePicker.d.ts +6 -0
- package/dist/dashboard/app/ImagePicker.js +145 -0
- package/dist/dashboard/app/LinkPicker.d.ts +9 -0
- package/dist/dashboard/app/LinkPicker.js +317 -0
- package/dist/dashboard/app/LocaleMenu.d.ts +8 -0
- package/dist/dashboard/app/LocaleMenu.js +110 -0
- package/dist/dashboard/app/LogoShape.d.ts +8 -0
- package/dist/dashboard/app/LogoShape.js +60 -0
- package/dist/dashboard/app/SidebarTree.d.ts +37 -0
- package/dist/dashboard/app/SidebarTree.js +433 -0
- package/dist/dashboard/app/StatusBadge.d.ts +6 -0
- package/dist/dashboard/app/StatusBadge.js +26 -0
- package/dist/dashboard/app/ViewToggle.d.ts +7 -0
- package/dist/dashboard/app/ViewToggle.js +27 -0
- package/dist/dashboard/app/WorkspaceMenu.d.ts +24 -0
- package/dist/dashboard/app/WorkspaceMenu.js +264 -0
- package/dist/dashboard/app/WorkspaceMenu.stories.d.ts +5 -0
- package/dist/dashboard/app/WorkspaceRoots.d.ts +6 -0
- package/dist/dashboard/app/WorkspaceRoots.js +285 -0
- package/dist/dashboard/app/editor/FileEditor.d.ts +5 -0
- package/dist/dashboard/app/editor/FileEditor.js +190 -0
- package/dist/dashboard/app/editor/FilePreview.d.ts +13 -0
- package/dist/dashboard/app/editor/FilePreview.js +196 -0
- package/dist/dashboard/app/editor/MediaAltField.view.d.ts +5 -0
- package/dist/dashboard/app/editor/MediaAltField.view.js +98 -0
- package/dist/dashboard/app/modals/CreateEntry.d.ts +1 -0
- package/dist/dashboard/app/modals/CreateEntry.js +283 -0
- package/dist/dashboard/app/pages/EntryPage.d.ts +11 -0
- package/dist/dashboard/app/pages/EntryPage.js +354 -0
- package/dist/dashboard/app/pages/RootPage.d.ts +9 -0
- package/dist/dashboard/app/pages/RootPage.js +90 -0
- package/dist/dashboard/app/pages/UsersPage.d.ts +7 -0
- package/dist/dashboard/app/pages/UsersPage.js +552 -0
- package/dist/dashboard/app/ui/DashboardModal.d.ts +34 -0
- package/dist/dashboard/app/ui/DashboardModal.js +192 -0
- package/dist/dashboard/app/ui/Rail.d.ts +18 -0
- package/dist/dashboard/app/ui/Rail.js +41 -0
- package/dist/dashboard/app/ui/Sidebar.d.ts +15 -0
- package/dist/dashboard/app/ui/Sidebar.js +55 -0
- package/dist/dashboard/atoms/ReactiveNode.d.ts +41 -0
- package/dist/dashboard/atoms/ReactiveNode.js +248 -0
- package/dist/dashboard/atoms/activity.d.ts +48 -0
- package/dist/dashboard/atoms/activity.js +189 -0
- package/dist/dashboard/atoms/auth.d.ts +38 -0
- package/dist/dashboard/atoms/auth.js +106 -0
- package/dist/dashboard/atoms/config.d.ts +27 -0
- package/dist/dashboard/atoms/config.js +49 -0
- package/dist/dashboard/atoms/core.d.ts +15 -0
- package/dist/dashboard/atoms/core.js +37 -0
- package/dist/dashboard/atoms/create.d.ts +13 -0
- package/dist/dashboard/atoms/create.js +79 -0
- package/dist/dashboard/atoms/dashboard.d.ts +12 -0
- package/dist/dashboard/atoms/dashboard.js +71 -0
- package/dist/dashboard/atoms/editor.d.ts +80 -0
- package/dist/dashboard/atoms/editor.js +132 -0
- package/dist/dashboard/atoms/entry.d.ts +223 -0
- package/dist/dashboard/atoms/entry.js +609 -0
- package/dist/dashboard/atoms/explorer.d.ts +257 -0
- package/dist/dashboard/atoms/explorer.js +677 -0
- package/dist/dashboard/atoms/graph.d.ts +5 -0
- package/dist/dashboard/atoms/graph.js +62 -0
- package/dist/dashboard/atoms/link.d.ts +24 -0
- package/dist/dashboard/atoms/link.js +82 -0
- package/dist/dashboard/atoms/nav.d.ts +47 -0
- package/dist/dashboard/atoms/nav.js +220 -0
- package/dist/dashboard/atoms/preview.d.ts +4 -0
- package/dist/dashboard/atoms/preview.js +10 -0
- package/dist/dashboard/atoms/root.d.ts +88 -0
- package/dist/dashboard/atoms/root.js +444 -0
- package/dist/dashboard/atoms/upload.d.ts +9 -0
- package/dist/dashboard/atoms/upload.js +81 -0
- package/dist/dashboard/atoms/user.d.ts +9 -0
- package/dist/dashboard/atoms/user.js +75 -0
- package/dist/dashboard/atoms/utils.d.ts +17 -0
- package/dist/dashboard/atoms/utils.js +151 -0
- package/dist/dashboard/boot/ActivityEvent.d.ts +44 -0
- package/dist/dashboard/boot/ActivityEvent.js +14 -0
- package/dist/dashboard/boot/Boot.js +9 -5
- package/dist/dashboard/boot/BootDev.js +2 -1
- package/dist/dashboard/boot/BootProd.js +1 -1
- package/dist/dashboard/boot/DashboardWorker.d.ts +7 -7
- package/dist/dashboard/boot/DashboardWorker.js +370 -30
- package/dist/dashboard/boot/LoadWorker.js +6 -3
- package/dist/dashboard/boot/WorkerDB.d.ts +9 -2
- package/dist/dashboard/boot/WorkerDB.js +20 -3
- package/dist/dashboard/editor/UseField.d.ts +29 -10
- package/dist/dashboard/editor/UseField.js +27 -59
- package/dist/dashboard/fixture/cms.d.ts +116 -0
- package/dist/dashboard/fixture/cms.js +230 -0
- package/dist/dashboard/hook/UseEntryEditor.d.ts +25 -6
- package/dist/dashboard/hook/UseEntryEditor.js +34 -12
- package/dist/dashboard/hook/UseGraph.d.ts +3 -0
- package/dist/dashboard/hook/UseGraph.js +5 -5
- package/dist/dashboard/hook/UseLocale.d.ts +4 -1
- package/dist/dashboard/hook/UseLocale.js +5 -7
- package/dist/dashboard/hook/UseRoot.d.ts +7 -12
- package/dist/dashboard/hook/UseRoot.js +8 -5
- package/dist/dashboard/hook/UseWorkspace.d.ts +7 -9
- package/dist/dashboard/hook/UseWorkspace.js +5 -7
- package/dist/dashboard/hooks.d.ts +157 -0
- package/dist/dashboard/hooks.js +229 -0
- package/dist/dashboard/icons.d.ts +171 -0
- package/dist/dashboard/icons.js +2686 -0
- package/dist/dashboard/plugins/alineaFixturePlugin.d.ts +2 -0
- package/dist/dashboard/plugins/alineaFixturePlugin.js +200 -0
- package/dist/dashboard.d.ts +1 -2
- package/dist/dashboard.js +6 -2
- package/dist/edit.d.ts +1 -1
- package/dist/edit.js +2 -4
- package/dist/field/check/CheckField.js +3 -3
- package/dist/field/check/CheckField.view.d.ts +3 -3
- package/dist/field/check/CheckField.view.js +37 -84
- package/dist/field/code/CodeField.js +2 -2
- package/dist/field/code/CodeField.view.d.ts +21 -3
- package/dist/field/code/CodeField.view.js +177 -39
- package/dist/field/code/SimpleCodeEditor.d.ts +50 -0
- package/dist/field/code/SimpleCodeEditor.js +452 -0
- package/dist/field/date/DateField.js +3 -3
- package/dist/field/date/DateField.view.d.ts +3 -3
- package/dist/field/date/DateField.view.js +26 -26
- package/dist/field/hidden/HiddenField.js +2 -2
- package/dist/field/hidden/HiddenField.view.js +1 -1
- package/dist/field/json/JsonField.js +2 -2
- package/dist/field/json/JsonField.view.d.ts +4 -4
- package/dist/field/json/JsonField.view.js +53 -76
- package/dist/field/link/EntryLink.d.ts +9 -8
- package/dist/field/link/EntryLink.js +4 -2
- package/dist/field/link/FileLink.d.ts +5 -5
- package/dist/field/link/FileLink.js +7 -3
- package/dist/field/link/ImageLink.d.ts +4 -2
- package/dist/field/link/ImageLink.js +4 -1
- package/dist/field/link/Link.d.ts +1 -1
- package/dist/field/link/Link.js +1 -1
- package/dist/field/link/LinkEditor.d.ts +1 -1
- package/dist/field/link/LinkEditor.js +1 -1
- package/dist/field/link/LinkField.d.ts +5 -3
- package/dist/field/link/LinkField.js +56 -17
- package/dist/field/link/LinkField.stories.d.ts +11 -1
- package/dist/field/link/LinkField.view.d.ts +8 -10
- package/dist/field/link/LinkField.view.js +1444 -362
- package/dist/field/link/UrlLink.d.ts +2 -2
- package/dist/field/link/UrlLink.js +4 -2
- package/dist/field/list/ListField.d.ts +3 -3
- package/dist/field/list/ListField.js +5 -6
- package/dist/field/list/ListField.stories.d.ts +2 -1
- package/dist/field/list/ListField.view.d.ts +15 -7
- package/dist/field/list/ListField.view.js +888 -377
- package/dist/field/localiser/LocalisedField.view.d.ts +5 -0
- package/dist/field/localiser/LocalisedField.view.js +63 -0
- package/dist/field/localiser/LocalisedFieldTabs.d.ts +8 -0
- package/dist/field/localiser/LocalisedFieldTabs.js +38 -0
- package/dist/field/localiser/Localiser.d.ts +25 -0
- package/dist/field/localiser/Localiser.js +140 -0
- package/dist/field/localiser.d.ts +1 -0
- package/dist/field/localiser.js +2 -0
- package/dist/field/metadata/MetadataAliases.d.ts +20 -0
- package/dist/field/metadata/MetadataAliases.js +22 -0
- package/dist/field/metadata/MetadataField.d.ts +31 -8
- package/dist/field/metadata/MetadataField.js +127 -11
- package/dist/field/metadata/MetadataField.view.d.ts +11 -3
- package/dist/field/metadata/MetadataField.view.js +130 -96
- package/dist/field/number/NumberField.js +3 -3
- package/dist/field/number/NumberField.view.d.ts +3 -3
- package/dist/field/number/NumberField.view.js +22 -54
- package/dist/field/object/ObjectField.d.ts +1 -1
- package/dist/field/object/ObjectField.js +11 -4
- package/dist/field/object/ObjectField.view.d.ts +4 -4
- package/dist/field/object/ObjectField.view.js +28 -19
- package/dist/field/path/PathField.js +3 -3
- package/dist/field/path/PathField.view.d.ts +3 -3
- package/dist/field/path/PathField.view.js +33 -133
- package/dist/field/path/SlugField.d.ts +16 -0
- package/dist/field/path/SlugField.js +52 -0
- package/dist/field/richtext/Extensions.d.ts +1 -28
- package/dist/field/richtext/Extensions.js +2 -4146
- package/dist/field/richtext/PickTextAnchor.d.ts +19 -0
- package/dist/field/richtext/PickTextAnchor.js +99 -0
- package/dist/field/richtext/PickTextLink.d.ts +18 -17
- package/dist/field/richtext/PickTextLink.js +133 -88
- package/dist/field/richtext/ReferenceLink.d.ts +2 -0
- package/dist/field/richtext/ReferenceLink.js +13 -4
- package/dist/field/richtext/RichTextBlock.d.ts +11 -0
- package/dist/field/richtext/RichTextBlock.js +143 -0
- package/dist/field/richtext/RichTextBlockHost.d.ts +13 -0
- package/dist/field/richtext/RichTextBlockHost.js +56 -0
- package/dist/field/richtext/RichTextBlockValue.d.ts +5 -0
- package/dist/field/richtext/RichTextBlockValue.js +34 -0
- package/dist/field/richtext/RichTextBlocks.d.ts +16 -0
- package/dist/field/richtext/RichTextBlocks.js +40 -0
- package/dist/field/richtext/RichTextDocument.d.ts +4 -0
- package/dist/field/richtext/RichTextDocument.js +162 -0
- package/dist/field/richtext/RichTextExtensions.d.ts +67 -0
- package/dist/field/richtext/RichTextExtensions.js +8219 -0
- package/dist/field/richtext/RichTextField.d.ts +10 -3
- package/dist/field/richtext/RichTextField.js +13 -3
- package/dist/field/richtext/RichTextField.story.d.ts +8 -0
- package/dist/field/richtext/RichTextField.view.d.ts +11 -5
- package/dist/field/richtext/RichTextField.view.js +385 -2447
- package/dist/field/richtext/RichTextInsertMenu.d.ts +9 -0
- package/dist/field/richtext/RichTextInsertMenu.js +1014 -0
- package/dist/field/richtext/RichTextState.d.ts +6 -0
- package/dist/field/richtext/RichTextState.js +58 -0
- package/dist/field/richtext/RichTextToolbar.d.ts +9 -36
- package/dist/field/richtext/RichTextToolbar.js +206 -178
- package/dist/field/richtext/Toolbar.d.ts +111 -65
- package/dist/field/richtext/Toolbar.js +60 -45
- package/dist/field/richtext/extensions/Anchor.d.ts +19 -0
- package/dist/field/richtext/extensions/Anchor.js +94 -0
- package/dist/field/richtext/extensions/Link.d.ts +3 -13
- package/dist/field/richtext/extensions/Link.js +15 -37
- package/dist/field/richtext/extensions/Small.d.ts +1 -10
- package/dist/field/richtext/extensions/Small.js +7 -19
- package/dist/field/select/SelectField.d.ts +15 -4
- package/dist/field/select/SelectField.js +17 -2
- package/dist/field/select/SelectField.view.d.ts +7 -3
- package/dist/field/select/SelectField.view.js +112 -155
- package/dist/field/tabs/Tabs.js +3 -2
- package/dist/field/tabs/Tabs.view.d.ts +1 -6
- package/dist/field/tabs/Tabs.view.js +22 -29
- package/dist/field/text/TextField.js +8 -3
- package/dist/field/text/TextField.view.d.ts +2 -2
- package/dist/field/text/TextField.view.js +40 -60
- package/dist/field/time/TimeField.js +3 -3
- package/dist/field/time/TimeField.view.d.ts +3 -3
- package/dist/field/time/TimeField.view.js +30 -30
- package/dist/field/view/View.js +1 -1
- package/dist/field/views.d.ts +2 -0
- package/dist/field/views.js +65 -0
- package/dist/field.d.ts +1 -0
- package/dist/field.js +3 -1
- package/dist/index.css +7034 -3625
- package/dist/index.js +1 -1
- package/dist/inter-latin-500-normal-JSHNAZJU.woff2 +0 -0
- package/dist/inter-latin-ext-500-normal-5ARINTHO.woff2 +0 -0
- package/dist/next.cjs +19 -9
- package/dist/next.edge.js +1 -1
- package/dist/next.js +1 -1
- package/dist/picker/entry/EntryPicker.d.ts +9 -4
- package/dist/picker/entry/EntryPicker.js +97 -19
- package/dist/picker/entry/EntryReference.d.ts +4 -0
- package/dist/picker/entry/EntryReference.js +3 -1
- package/dist/picker/url/UrlPicker.js +2 -12
- package/dist/preview/ChunkCookieValue.js +1 -1
- package/dist/preview/PreviewCookies.js +1 -1
- package/dist/preview/PreviewMessage.js +1 -1
- package/dist/preview/PreviewPayload.js +237 -10
- package/dist/preview/RegisterPreview.js +1 -1
- package/dist/preview/react.js +10 -3
- package/dist/preview/widget.js +1 -1
- package/dist/query.d.ts +116 -92
- package/dist/query.js +7 -1
- package/dist/types.d.ts +1 -0
- package/dist/ui/Link.d.ts +6 -5
- package/dist/ui/Link.js +37 -13
- package/dist/ui/RichText.d.ts +37 -11
- package/dist/ui/RichText.js +81 -44
- package/dist/ui/Stack.d.ts +11 -22
- package/dist/ui/Stack.js +54 -67
- package/dist/ui/icons/IcAlignCenter.d.ts +4 -2
- package/dist/ui/icons/IcAlignCenter.js +6 -12
- package/dist/ui/icons/IcOutlineGridView.d.ts +3 -2
- package/dist/ui/icons/IcOutlineGridView.js +3 -11
- package/dist/ui/icons/IcOutlineSettings.d.ts +3 -2
- package/dist/ui/icons/IcOutlineSettings.js +3 -11
- package/dist/ui/icons/IcRoundAccountTree.d.ts +4 -2
- package/dist/ui/icons/IcRoundAccountTree.js +6 -22
- package/dist/ui/icons/IcRoundClose.d.ts +4 -2
- package/dist/ui/icons/IcRoundClose.js +6 -12
- package/dist/ui/icons/IcRoundCode.d.ts +4 -2
- package/dist/ui/icons/IcRoundCode.js +6 -12
- package/dist/ui/icons/IcRoundDateRange.d.ts +3 -2
- package/dist/ui/icons/IcRoundDateRange.js +3 -11
- package/dist/ui/icons/IcRoundDelete.d.ts +4 -2
- package/dist/ui/icons/IcRoundDelete.js +6 -12
- package/dist/ui/icons/IcRoundEdit.d.ts +4 -2
- package/dist/ui/icons/IcRoundEdit.js +6 -12
- package/dist/ui/icons/IcRoundFormatListNumbered.d.ts +3 -2
- package/dist/ui/icons/IcRoundFormatListNumbered.js +3 -11
- package/dist/ui/icons/IcRoundLink.d.ts +4 -2
- package/dist/ui/icons/IcRoundLink.js +6 -12
- package/dist/ui/icons/IcRoundOpenInNew.d.ts +4 -2
- package/dist/ui/icons/IcRoundOpenInNew.js +6 -12
- package/dist/ui/icons/IcRoundPanorama.d.ts +4 -2
- package/dist/ui/icons/IcRoundPanorama.js +6 -6
- package/dist/ui/icons/IcRoundRefresh.d.ts +3 -2
- package/dist/ui/icons/IcRoundRefresh.js +3 -11
- package/dist/ui/icons/IcRoundSave.d.ts +4 -2
- package/dist/ui/icons/IcRoundSave.js +6 -22
- package/dist/ui/icons/IcRoundSearch.d.ts +4 -2
- package/dist/ui/icons/IcRoundSearch.js +6 -12
- package/dist/ui/icons/IcRoundShare.d.ts +4 -2
- package/dist/ui/icons/IcRoundShare.js +6 -12
- package/dist/ui/icons/IcRoundSync.d.ts +4 -2
- package/dist/ui/icons/IcRoundSync.js +6 -22
- package/dist/ui/icons/MaterialSymbolsDatabase.d.ts +4 -2
- package/dist/ui/icons/MaterialSymbolsDatabase.js +6 -22
- package/dist/ui/icons/TableInsert.d.ts +4 -2
- package/dist/ui/icons/TableInsert.js +6 -12
- package/dist/ui/util/ImageBlurUrl.js +1 -1
- package/dist/ui.d.ts +0 -8
- package/dist/ui.js +0 -8
- package/package.json +49 -64
- package/dist/backend/router/Proxy.d.ts +0 -1
- package/dist/backend/router/Proxy.js +0 -32
- package/dist/chunks/chunk-2NTSADJL.js +0 -20
- package/dist/chunks/chunk-2STBQ2Y4.js +0 -166
- package/dist/chunks/chunk-2X5P2RZV.js +0 -94
- package/dist/chunks/chunk-3DIW62EI.js +0 -2900
- package/dist/chunks/chunk-3TNMMA3W.js +0 -249
- package/dist/chunks/chunk-467JA2PB.js +0 -29
- package/dist/chunks/chunk-5LTN67OE.js +0 -51
- package/dist/chunks/chunk-76QF5YTJ.js +0 -107
- package/dist/chunks/chunk-A5O3N2GS.js +0 -63
- package/dist/chunks/chunk-AICQFCVN.js +0 -19
- package/dist/chunks/chunk-AJJSW27C.js +0 -728
- package/dist/chunks/chunk-C53YJRET.js +0 -112
- package/dist/chunks/chunk-CKT37OYJ.js +0 -9
- package/dist/chunks/chunk-F2HHHLEQ.js +0 -72
- package/dist/chunks/chunk-FKWEJTSK.js +0 -16282
- package/dist/chunks/chunk-G2AFWRAD.js +0 -12
- package/dist/chunks/chunk-HSIHEWFC.js +0 -101
- package/dist/chunks/chunk-I26ZIF6Q.js +0 -360
- package/dist/chunks/chunk-JL5K3F7X.js +0 -1116
- package/dist/chunks/chunk-NZLE2WMY.js +0 -35
- package/dist/chunks/chunk-ORDS5C6Z.js +0 -83
- package/dist/chunks/chunk-PNILF4WM.js +0 -251
- package/dist/chunks/chunk-QUIANN6B.js +0 -8001
- package/dist/chunks/chunk-RSX2DILK.js +0 -335
- package/dist/chunks/chunk-SKF4L7JN.js +0 -401
- package/dist/chunks/chunk-SOTBYUJY.js +0 -120
- package/dist/chunks/chunk-TOJF2G3X.js +0 -96
- package/dist/chunks/chunk-TPUTTEHF.js +0 -3002
- package/dist/chunks/chunk-VUACWPFC.js +0 -892
- package/dist/chunks/chunk-WD7H5L2L.js +0 -168
- package/dist/chunks/chunk-WDCPVJJC.js +0 -341
- package/dist/chunks/chunk-WJ67RR7S.js +0 -554
- package/dist/chunks/chunk-WKC37UOZ.js +0 -143
- package/dist/chunks/chunk-WLKPH7JA.js +0 -2786
- package/dist/chunks/chunk-YWCPLD22.js +0 -2343
- package/dist/chunks/crypto-HZTUU327.js +0 -11
- package/dist/cloud/view/CloudAuth.browser.d.ts +0 -2
- package/dist/cloud/view/CloudAuth.browser.js +0 -111
- package/dist/cloud/view/CloudAuth.d.ts +0 -1
- package/dist/cloud/view/CloudAuth.js +0 -9
- package/dist/core/Doc.d.ts +0 -11
- package/dist/core/Doc.js +0 -44
- package/dist/core/Role.test.d.ts +0 -1
- package/dist/core/Shape.d.ts +0 -19
- package/dist/core/Trigger.test.d.ts +0 -1
- package/dist/core/Type.test.d.ts +0 -1
- package/dist/core/db/EntryIndex.test.d.ts +0 -1
- package/dist/core/db/EntryResolver.test.d.ts +0 -1
- package/dist/core/db/LocalDB.test.d.ts +0 -1
- package/dist/core/field/RichTextField.test.d.ts +0 -1
- package/dist/core/shape/ListShape.test.d.ts +0 -1
- package/dist/core/shape/RecordShape.d.ts +0 -26
- package/dist/core/shape/RecordShape.js +0 -102
- package/dist/core/shape/RecordShape.test.d.ts +0 -1
- package/dist/core/shape/RichTextShape.d.ts +0 -75
- package/dist/core/shape/RichTextShape.js +0 -435
- package/dist/core/shape/RichTextShape.test.d.ts +0 -1
- package/dist/core/shape/ScalarShape.d.ts +0 -20
- package/dist/core/shape/ScalarShape.js +0 -53
- package/dist/core/shape/ScalarShape.test.d.ts +0 -1
- package/dist/core/shape/UnionShape.d.ts +0 -34
- package/dist/core/shape/UnionShape.js +0 -141
- package/dist/core/shape/UnionShape.test.d.ts +0 -1
- package/dist/core/source/CombinedSource.test.d.ts +0 -1
- package/dist/core/source/FSSource.test.d.ts +0 -1
- package/dist/core/source/FilePatch.test.d.ts +0 -1
- package/dist/core/source/GitDelta.test.d.ts +0 -1
- package/dist/core/source/GitUtils.test.d.ts +0 -1
- package/dist/core/source/GithubSource.test.d.ts +0 -1
- package/dist/core/source/IndexedDBSource.test.d.ts +0 -1
- package/dist/core/source/MemorySource.test.d.ts +0 -1
- package/dist/core/source/SourceExport.test.d.ts +0 -1
- package/dist/core/source/Tree.test.d.ts +0 -1
- package/dist/core/source/Utils.test.d.ts +0 -1
- package/dist/core/util/CodeGen.test.d.ts +0 -1
- package/dist/core/util/EntryFilenames.test.d.ts +0 -1
- package/dist/core/util/JWT.test.d.ts +0 -1
- package/dist/core/util/Paths.test.d.ts +0 -1
- package/dist/core/util/Slugs.test.d.ts +0 -1
- package/dist/dashboard/DashboardNav.d.ts +0 -22
- package/dist/dashboard/DashboardNav.js +0 -44
- package/dist/dashboard/DashboardProvider.d.ts +0 -16
- package/dist/dashboard/DashboardProvider.js +0 -28
- package/dist/dashboard/Routes.d.ts +0 -111
- package/dist/dashboard/Routes.js +0 -78
- package/dist/dashboard/Welcome.d.ts +0 -1
- package/dist/dashboard/Welcome.js +0 -21
- package/dist/dashboard/atoms/DashboardAtoms.d.ts +0 -18
- package/dist/dashboard/atoms/DashboardAtoms.js +0 -86
- package/dist/dashboard/atoms/DbAtoms.d.ts +0 -5
- package/dist/dashboard/atoms/DbAtoms.js +0 -95
- package/dist/dashboard/atoms/Edits.d.ts +0 -31
- package/dist/dashboard/atoms/Edits.js +0 -93
- package/dist/dashboard/atoms/EntryAtoms.d.ts +0 -34
- package/dist/dashboard/atoms/EntryAtoms.js +0 -298
- package/dist/dashboard/atoms/EntryEditorAtoms.d.ts +0 -255
- package/dist/dashboard/atoms/EntryEditorAtoms.js +0 -629
- package/dist/dashboard/atoms/EntrySummaryAtoms.d.ts +0 -21
- package/dist/dashboard/atoms/EntrySummaryAtoms.js +0 -58
- package/dist/dashboard/atoms/ErrorAtoms.d.ts +0 -4
- package/dist/dashboard/atoms/ErrorAtoms.js +0 -18
- package/dist/dashboard/atoms/FormAtoms.d.ts +0 -56
- package/dist/dashboard/atoms/FormAtoms.js +0 -189
- package/dist/dashboard/atoms/LocationAtoms.d.ts +0 -25
- package/dist/dashboard/atoms/LocationAtoms.js +0 -104
- package/dist/dashboard/atoms/NavigationAtoms.d.ts +0 -38
- package/dist/dashboard/atoms/NavigationAtoms.js +0 -124
- package/dist/dashboard/atoms/PolicyAtom.d.ts +0 -6
- package/dist/dashboard/atoms/PolicyAtom.js +0 -29
- package/dist/dashboard/atoms/PreferencesAtoms.d.ts +0 -16
- package/dist/dashboard/atoms/PreferencesAtoms.js +0 -53
- package/dist/dashboard/atoms/RouterAtoms.d.ts +0 -78
- package/dist/dashboard/atoms/RouterAtoms.js +0 -161
- package/dist/dashboard/atoms/StyleAtoms.d.ts +0 -1
- package/dist/dashboard/atoms/StyleAtoms.js +0 -14
- package/dist/dashboard/atoms/YAtom.d.ts +0 -2
- package/dist/dashboard/atoms/YAtom.js +0 -24
- package/dist/dashboard/editor/DefaultViews.d.ts +0 -19
- package/dist/dashboard/editor/DefaultViews.js +0 -52
- package/dist/dashboard/editor/InputForm.d.ts +0 -26
- package/dist/dashboard/editor/InputForm.js +0 -53
- package/dist/dashboard/editor/ViewKeys.d.ts +0 -23
- package/dist/dashboard/editor/ViewKeys.js +0 -29
- package/dist/dashboard/hook/UseConfig.d.ts +0 -1
- package/dist/dashboard/hook/UseConfig.js +0 -12
- package/dist/dashboard/hook/UseDashboard.d.ts +0 -1
- package/dist/dashboard/hook/UseDashboard.js +0 -12
- package/dist/dashboard/hook/UseDb.d.ts +0 -2
- package/dist/dashboard/hook/UseDb.js +0 -14
- package/dist/dashboard/hook/UseDebounce.d.ts +0 -1
- package/dist/dashboard/hook/UseDebounce.js +0 -23
- package/dist/dashboard/hook/UseEntryLocation.d.ts +0 -1
- package/dist/dashboard/hook/UseEntryLocation.js +0 -12
- package/dist/dashboard/hook/UseEntrySummary.d.ts +0 -1
- package/dist/dashboard/hook/UseEntrySummary.js +0 -16
- package/dist/dashboard/hook/UseExplorer.d.ts +0 -14
- package/dist/dashboard/hook/UseExplorer.js +0 -13
- package/dist/dashboard/hook/UseFocusList.d.ts +0 -14
- package/dist/dashboard/hook/UseFocusList.js +0 -113
- package/dist/dashboard/hook/UseNav.d.ts +0 -10
- package/dist/dashboard/hook/UseNav.js +0 -12
- package/dist/dashboard/hook/UsePolicy.d.ts +0 -1
- package/dist/dashboard/hook/UsePolicy.js +0 -14
- package/dist/dashboard/hook/UsePreferences.d.ts +0 -6
- package/dist/dashboard/hook/UsePreferences.js +0 -30
- package/dist/dashboard/hook/UseSession.d.ts +0 -1
- package/dist/dashboard/hook/UseSession.js +0 -12
- package/dist/dashboard/hook/UseUploads.d.ts +0 -42
- package/dist/dashboard/hook/UseUploads.js +0 -91
- package/dist/dashboard/pages/ContentView.d.ts +0 -5
- package/dist/dashboard/pages/ContentView.js +0 -96
- package/dist/dashboard/util/Atoms.d.ts +0 -2
- package/dist/dashboard/util/Atoms.js +0 -21
- package/dist/dashboard/util/DebounceAtom.d.ts +0 -2
- package/dist/dashboard/util/DebounceAtom.js +0 -26
- package/dist/dashboard/util/HashRouter.d.ts +0 -1
- package/dist/dashboard/util/HashRouter.js +0 -2
- package/dist/dashboard/util/Head.d.ts +0 -2
- package/dist/dashboard/util/Head.js +0 -10
- package/dist/dashboard/util/KeepInView.d.ts +0 -2
- package/dist/dashboard/util/KeepInView.js +0 -19
- package/dist/dashboard/util/KeepPreviousData.d.ts +0 -9
- package/dist/dashboard/util/KeepPreviousData.js +0 -32
- package/dist/dashboard/util/Loader.d.ts +0 -17
- package/dist/dashboard/util/Loader.js +0 -31
- package/dist/dashboard/util/SuspenseBoundary.d.ts +0 -4
- package/dist/dashboard/util/SuspenseBoundary.js +0 -23
- package/dist/dashboard/util/WithResolvers.d.ts +0 -2
- package/dist/dashboard/util/WithResolvers.js +0 -16
- package/dist/dashboard/view/AlineaLogo.d.ts +0 -2
- package/dist/dashboard/view/AlineaLogo.js +0 -16
- package/dist/dashboard/view/Breadcrumbs.d.ts +0 -3
- package/dist/dashboard/view/Breadcrumbs.js +0 -33
- package/dist/dashboard/view/Create.d.ts +0 -13
- package/dist/dashboard/view/Create.js +0 -75
- package/dist/dashboard/view/EntryEdit.d.ts +0 -5
- package/dist/dashboard/view/EntryEdit.js +0 -222
- package/dist/dashboard/view/EntryTree.d.ts +0 -5
- package/dist/dashboard/view/EntryTree.js +0 -1463
- package/dist/dashboard/view/ErrorBoundary.d.ts +0 -6
- package/dist/dashboard/view/ErrorBoundary.js +0 -95
- package/dist/dashboard/view/IconButton.d.ts +0 -18
- package/dist/dashboard/view/IconButton.js +0 -51
- package/dist/dashboard/view/InputLabel.d.ts +0 -36
- package/dist/dashboard/view/InputLabel.js +0 -151
- package/dist/dashboard/view/MediaExplorer.d.ts +0 -7
- package/dist/dashboard/view/MediaExplorer.js +0 -121
- package/dist/dashboard/view/Modal.d.ts +0 -8
- package/dist/dashboard/view/Modal.js +0 -63
- package/dist/dashboard/view/PageHeader.d.ts +0 -5
- package/dist/dashboard/view/PageHeader.js +0 -26
- package/dist/dashboard/view/Preview.d.ts +0 -3
- package/dist/dashboard/view/Preview.js +0 -20
- package/dist/dashboard/view/RootOverview.d.ts +0 -5
- package/dist/dashboard/view/RootOverview.js +0 -46
- package/dist/dashboard/view/SearchBox.d.ts +0 -1
- package/dist/dashboard/view/SearchBox.js +0 -126
- package/dist/dashboard/view/Sidebar.d.ts +0 -21
- package/dist/dashboard/view/Sidebar.js +0 -312
- package/dist/dashboard/view/Toolbar.d.ts +0 -9
- package/dist/dashboard/view/Toolbar.js +0 -240
- package/dist/dashboard/view/Viewport.d.ts +0 -8
- package/dist/dashboard/view/Viewport.js +0 -69
- package/dist/dashboard/view/WorkspaceLabel.d.ts +0 -7
- package/dist/dashboard/view/WorkspaceLabel.js +0 -32
- package/dist/dashboard/view/diff/ChangeBox.d.ts +0 -14
- package/dist/dashboard/view/diff/ChangeBox.js +0 -36
- package/dist/dashboard/view/diff/DiffUtils.d.ts +0 -16
- package/dist/dashboard/view/diff/DiffUtils.js +0 -82
- package/dist/dashboard/view/diff/DiffUtils.test.d.ts +0 -1
- package/dist/dashboard/view/diff/EntryDiff.d.ts +0 -6
- package/dist/dashboard/view/diff/EntryDiff.js +0 -45
- package/dist/dashboard/view/diff/FieldDiff.d.ts +0 -10
- package/dist/dashboard/view/diff/FieldDiff.js +0 -51
- package/dist/dashboard/view/diff/FieldsDiff.d.ts +0 -7
- package/dist/dashboard/view/diff/FieldsDiff.js +0 -24
- package/dist/dashboard/view/diff/ListDiff.d.ts +0 -10
- package/dist/dashboard/view/diff/ListDiff.js +0 -32
- package/dist/dashboard/view/diff/RichTextDiff.d.ts +0 -11
- package/dist/dashboard/view/diff/RichTextDiff.js +0 -94
- package/dist/dashboard/view/diff/ScalarDiff.d.ts +0 -5
- package/dist/dashboard/view/diff/ScalarDiff.js +0 -1520
- package/dist/dashboard/view/entry/EditModeToggle.d.ts +0 -9
- package/dist/dashboard/view/entry/EditModeToggle.js +0 -51
- package/dist/dashboard/view/entry/EntryHeader.d.ts +0 -5
- package/dist/dashboard/view/entry/EntryHeader.js +0 -414
- package/dist/dashboard/view/entry/EntryHistory.d.ts +0 -2
- package/dist/dashboard/view/entry/EntryHistory.js +0 -78
- package/dist/dashboard/view/entry/EntryNotice.d.ts +0 -7
- package/dist/dashboard/view/entry/EntryNotice.js +0 -44
- package/dist/dashboard/view/entry/EntryPreview.d.ts +0 -10
- package/dist/dashboard/view/entry/EntryPreview.js +0 -44
- package/dist/dashboard/view/entry/EntrySummary.d.ts +0 -3
- package/dist/dashboard/view/entry/EntrySummary.js +0 -75
- package/dist/dashboard/view/entry/EntryTitle.d.ts +0 -7
- package/dist/dashboard/view/entry/EntryTitle.js +0 -64
- package/dist/dashboard/view/entry/FieldToolbar.d.ts +0 -11
- package/dist/dashboard/view/entry/FieldToolbar.js +0 -41
- package/dist/dashboard/view/entry/LangSwitch.d.ts +0 -7
- package/dist/dashboard/view/entry/LangSwitch.js +0 -110
- package/dist/dashboard/view/entry/NewEntry.d.ts +0 -4
- package/dist/dashboard/view/entry/NewEntry.js +0 -288
- package/dist/dashboard/view/entry/RootHeader.d.ts +0 -4
- package/dist/dashboard/view/entry/RootHeader.js +0 -61
- package/dist/dashboard/view/explorer/Explorer.d.ts +0 -24
- package/dist/dashboard/view/explorer/Explorer.js +0 -2230
- package/dist/dashboard/view/explorer/ExplorerItem.d.ts +0 -11
- package/dist/dashboard/view/explorer/ExplorerItem.js +0 -128
- package/dist/dashboard/view/explorer/ExplorerRow.d.ts +0 -15
- package/dist/dashboard/view/explorer/ExplorerRow.js +0 -73
- package/dist/dashboard/view/media/CardOverview.d.ts +0 -1
- package/dist/dashboard/view/media/CardOverview.js +0 -10
- package/dist/dashboard/view/media/FileEntry.d.ts +0 -6
- package/dist/dashboard/view/media/FileEntry.js +0 -223
- package/dist/dashboard/view/media/FileSummary.d.ts +0 -3
- package/dist/dashboard/view/media/FileSummary.js +0 -102
- package/dist/dashboard/view/media/FileUploadRow.d.ts +0 -2
- package/dist/dashboard/view/media/FileUploadRow.js +0 -53
- package/dist/dashboard/view/media/FileUploader.d.ts +0 -10
- package/dist/dashboard/view/media/FileUploader.js +0 -151
- package/dist/dashboard/view/media/MediaThumbnail.d.ts +0 -11
- package/dist/dashboard/view/media/MediaThumbnail.js +0 -55
- package/dist/dashboard/view/preview/BrowserPreview.d.ts +0 -12
- package/dist/dashboard/view/preview/BrowserPreview.js +0 -210
- package/dist/dashboard/view/sidebar/SidebarSettings.d.ts +0 -1
- package/dist/dashboard/view/sidebar/SidebarSettings.js +0 -192
- package/dist/field/check/CheckField.stories.d.ts +0 -5
- package/dist/field/code/CodeField.stories.d.ts +0 -5
- package/dist/field/date/DateField.stories.d.ts +0 -5
- package/dist/field/json/JsonField.stories.d.ts +0 -5
- package/dist/field/metadata/MetadataField.stories.d.ts +0 -5
- package/dist/field/number/NumberField.stories.d.ts +0 -5
- package/dist/field/object/ObjectField.stories.d.ts +0 -5
- package/dist/field/path/PathField.stories.d.ts +0 -5
- package/dist/field/richtext/RichText.stories.d.ts +0 -5
- package/dist/field/select/SelectField.stories.d.ts +0 -5
- package/dist/field/tabs/Tabs.stories.d.ts +0 -5
- package/dist/field/text/TextField.stories.d.ts +0 -5
- package/dist/field/time/TimeField.stories.d.ts +0 -5
- package/dist/picker/entry/EntryPicker.browser.d.ts +0 -7
- package/dist/picker/entry/EntryPicker.browser.js +0 -373
- package/dist/picker/entry/EntryPicker.stories.d.ts +0 -2
- package/dist/picker/entry/EntryPickerRow.d.ts +0 -5
- package/dist/picker/entry/EntryPickerRow.js +0 -24
- package/dist/picker/url/UrlPicker.browser.d.ts +0 -6
- package/dist/picker/url/UrlPicker.browser.js +0 -83
- package/dist/picker/url/UrlPicker.stories.d.ts +0 -5
- package/dist/picker/url/UrlPickerRow.d.ts +0 -5
- package/dist/picker/url/UrlPickerRow.js +0 -38
- package/dist/preview/ChunkCookieValue.test.d.ts +0 -1
- package/dist/preview/PreviewPayload.test.d.ts +0 -1
- package/dist/test/EntryFixture.d.ts +0 -30
- package/dist/test/EntryFixture.js +0 -91
- package/dist/test/broken-index.test.d.ts +0 -1
- package/dist/test/cms.d.ts +0 -17
- package/dist/test/cms.js +0 -38
- package/dist/test/drafts.test.d.ts +0 -1
- package/dist/test/example.d.ts +0 -137
- package/dist/test/example.js +0 -230
- package/dist/test/insert-order.test.d.ts +0 -1
- package/dist/test/links.test.d.ts +0 -1
- package/dist/test/locales.test.d.ts +0 -1
- package/dist/test/moves.test.d.ts +0 -1
- package/dist/test/mutate.test.d.ts +0 -1
- package/dist/test/query.test.d.ts +0 -1
- package/dist/test/renames.test.d.ts +0 -1
- package/dist/test/roles.test.d.ts +0 -1
- package/dist/test/schema/DemoHome.d.ts +0 -25
- package/dist/test/schema/DemoHome.js +0 -25
- package/dist/test/schema/DemoRecipe.d.ts +0 -14
- package/dist/test/schema/DemoRecipe.js +0 -22
- package/dist/test/schema/DemoRecipes.d.ts +0 -4
- package/dist/test/schema/DemoRecipes.js +0 -14
- package/dist/test/schema/index.d.ts +0 -3
- package/dist/test/schema/index.js +0 -4
- package/dist/test/seeding.test.d.ts +0 -1
- package/dist/test/shared.test.d.ts +0 -1
- package/dist/test/status.test.d.ts +0 -1
- package/dist/test/uploads.test.d.ts +0 -1
- package/dist/ui/AppBar.d.ts +0 -14
- package/dist/ui/AppBar.js +0 -68
- package/dist/ui/Avatar.d.ts +0 -6
- package/dist/ui/Avatar.js +0 -33
- package/dist/ui/Badge.d.ts +0 -9
- package/dist/ui/Badge.js +0 -44
- package/dist/ui/Button.d.ts +0 -9
- package/dist/ui/Button.js +0 -57
- package/dist/ui/Button.stories.d.ts +0 -6
- package/dist/ui/Chip.d.ts +0 -8
- package/dist/ui/Chip.js +0 -46
- package/dist/ui/DropdownMenu.d.ts +0 -12
- package/dist/ui/DropdownMenu.js +0 -415
- package/dist/ui/Ellipsis.d.ts +0 -2
- package/dist/ui/Ellipsis.js +0 -33
- package/dist/ui/ErrorMessage.d.ts +0 -4
- package/dist/ui/ErrorMessage.js +0 -17
- package/dist/ui/Icon.d.ts +0 -9
- package/dist/ui/Icon.js +0 -41
- package/dist/ui/Lift.d.ts +0 -3
- package/dist/ui/Lift.js +0 -22
- package/dist/ui/Loader.d.ts +0 -8
- package/dist/ui/Loader.js +0 -32
- package/dist/ui/Main.d.ts +0 -12
- package/dist/ui/Main.js +0 -56
- package/dist/ui/Pane.d.ts +0 -9
- package/dist/ui/Pane.js +0 -132
- package/dist/ui/PopoverMenu.d.ts +0 -12
- package/dist/ui/PopoverMenu.js +0 -418
- package/dist/ui/Property.d.ts +0 -1
- package/dist/ui/Property.js +0 -7
- package/dist/ui/Sink.d.ts +0 -9
- package/dist/ui/Sink.js +0 -49
- package/dist/ui/Statusbar.d.ts +0 -15
- package/dist/ui/Statusbar.js +0 -54
- package/dist/ui/Tabs.d.ts +0 -11
- package/dist/ui/Tabs.js +0 -293
- package/dist/ui/TextLabel.d.ts +0 -5
- package/dist/ui/TextLabel.js +0 -10
- package/dist/ui/Typo.d.ts +0 -35
- package/dist/ui/Typo.js +0 -28
- package/dist/ui/UIStory.d.ts +0 -8
- package/dist/ui/branding/FavIcon.d.ts +0 -5
- package/dist/ui/branding/FavIcon.js +0 -56
- package/dist/ui/branding/LogoShape.d.ts +0 -6
- package/dist/ui/branding/LogoShape.js +0 -52
- package/dist/ui/hook/UseAutoHide.d.ts +0 -8
- package/dist/ui/hook/UseAutoHide.js +0 -43
- package/dist/ui/hook/UseColorScheme.d.ts +0 -4
- package/dist/ui/hook/UseColorScheme.js +0 -13
- package/dist/ui/hook/UseContrastColor.d.ts +0 -1
- package/dist/ui/hook/UseContrastColor.js +0 -12
- package/dist/ui/hook/UseElementSize.d.ts +0 -6
- package/dist/ui/hook/UseElementSize.js +0 -52
- package/dist/ui/hook/UseForceUpdate.d.ts +0 -1
- package/dist/ui/hook/UseForceUpdate.js +0 -11
- package/dist/ui/hook/UseHash.d.ts +0 -1
- package/dist/ui/hook/UseHash.js +0 -24
- package/dist/ui/hook/UseInitialEffect.d.ts +0 -2
- package/dist/ui/hook/UseInitialEffect.js +0 -15
- package/dist/ui/hook/UseLocalStorage.d.ts +0 -1
- package/dist/ui/hook/UseLocalStorage.js +0 -36
- package/dist/ui/hook/UseNonInitialEffect.d.ts +0 -2
- package/dist/ui/hook/UseNonInitialEffect.js +0 -17
- package/dist/ui/hook/UseTrigger.d.ts +0 -7
- package/dist/ui/hook/UseTrigger.js +0 -29
- package/dist/ui/icons/IcAlignJustify.d.ts +0 -3
- package/dist/ui/icons/IcAlignJustify.js +0 -18
- package/dist/ui/icons/IcAlignLeft.d.ts +0 -2
- package/dist/ui/icons/IcAlignLeft.js +0 -16
- package/dist/ui/icons/IcAlignRight.d.ts +0 -2
- package/dist/ui/icons/IcAlignRight.js +0 -16
- package/dist/ui/icons/IcBaselineAccountCircle.d.ts +0 -2
- package/dist/ui/icons/IcBaselineAccountCircle.js +0 -26
- package/dist/ui/icons/IcBaselineContentCopy.d.ts +0 -2
- package/dist/ui/icons/IcBaselineContentCopy.js +0 -26
- package/dist/ui/icons/IcBaselineContentPasteGo.d.ts +0 -2
- package/dist/ui/icons/IcBaselineContentPasteGo.js +0 -35
- package/dist/ui/icons/IcBaselineDesktopMac.d.ts +0 -2
- package/dist/ui/icons/IcBaselineDesktopMac.js +0 -16
- package/dist/ui/icons/IcBaselineErrorOutline.d.ts +0 -2
- package/dist/ui/icons/IcBaselineErrorOutline.js +0 -26
- package/dist/ui/icons/IcBaselinePause.d.ts +0 -2
- package/dist/ui/icons/IcBaselinePause.js +0 -20
- package/dist/ui/icons/IcBaselinePhoneIphone.d.ts +0 -2
- package/dist/ui/icons/IcBaselinePhoneIphone.js +0 -16
- package/dist/ui/icons/IcBaselineWifiTethering.d.ts +0 -2
- package/dist/ui/icons/IcBaselineWifiTethering.js +0 -26
- package/dist/ui/icons/IcOutlineArchive.d.ts +0 -2
- package/dist/ui/icons/IcOutlineArchive.js +0 -26
- package/dist/ui/icons/IcOutlineArrowCircleRight.d.ts +0 -2
- package/dist/ui/icons/IcOutlineArrowCircleRight.js +0 -16
- package/dist/ui/icons/IcOutlineAvTimer.d.ts +0 -2
- package/dist/ui/icons/IcOutlineAvTimer.js +0 -26
- package/dist/ui/icons/IcOutlineCloudUpload.d.ts +0 -2
- package/dist/ui/icons/IcOutlineCloudUpload.js +0 -26
- package/dist/ui/icons/IcOutlineDarkMode.d.ts +0 -2
- package/dist/ui/icons/IcOutlineDarkMode.js +0 -16
- package/dist/ui/icons/IcOutlineDescription.d.ts +0 -2
- package/dist/ui/icons/IcOutlineDescription.js +0 -26
- package/dist/ui/icons/IcOutlineDrafts.d.ts +0 -2
- package/dist/ui/icons/IcOutlineDrafts.js +0 -26
- package/dist/ui/icons/IcOutlineFolder.d.ts +0 -2
- package/dist/ui/icons/IcOutlineFolder.js +0 -26
- package/dist/ui/icons/IcOutlineInsertDriveFile.d.ts +0 -2
- package/dist/ui/icons/IcOutlineInsertDriveFile.js +0 -26
- package/dist/ui/icons/IcOutlineKeyboardTab.d.ts +0 -2
- package/dist/ui/icons/IcOutlineKeyboardTab.js +0 -26
- package/dist/ui/icons/IcOutlineLightMode.d.ts +0 -2
- package/dist/ui/icons/IcOutlineLightMode.js +0 -16
- package/dist/ui/icons/IcOutlineList.d.ts +0 -3
- package/dist/ui/icons/IcOutlineList.js +0 -18
- package/dist/ui/icons/IcOutlineLock.d.ts +0 -2
- package/dist/ui/icons/IcOutlineLock.js +0 -26
- package/dist/ui/icons/IcOutlineMoreHoriz.d.ts +0 -3
- package/dist/ui/icons/IcOutlineMoreHoriz.js +0 -18
- package/dist/ui/icons/IcOutlinePreview.d.ts +0 -2
- package/dist/ui/icons/IcOutlinePreview.js +0 -16
- package/dist/ui/icons/IcOutlineRemoveRedEye.d.ts +0 -2
- package/dist/ui/icons/IcOutlineRemoveRedEye.js +0 -26
- package/dist/ui/icons/IcOutlineScreenshot.d.ts +0 -2
- package/dist/ui/icons/IcOutlineScreenshot.js +0 -16
- package/dist/ui/icons/IcOutlineTableRows.d.ts +0 -2
- package/dist/ui/icons/IcOutlineTableRows.js +0 -26
- package/dist/ui/icons/IcRoundAdd.d.ts +0 -2
- package/dist/ui/icons/IcRoundAdd.js +0 -16
- package/dist/ui/icons/IcRoundAddCircle.d.ts +0 -3
- package/dist/ui/icons/IcRoundAddCircle.js +0 -18
- package/dist/ui/icons/IcRoundAddCircleOutline.d.ts +0 -2
- package/dist/ui/icons/IcRoundAddCircleOutline.js +0 -16
- package/dist/ui/icons/IcRoundArchive.d.ts +0 -2
- package/dist/ui/icons/IcRoundArchive.js +0 -16
- package/dist/ui/icons/IcRoundArrowBack.d.ts +0 -2
- package/dist/ui/icons/IcRoundArrowBack.js +0 -16
- package/dist/ui/icons/IcRoundArrowDownward.d.ts +0 -2
- package/dist/ui/icons/IcRoundArrowDownward.js +0 -26
- package/dist/ui/icons/IcRoundArrowDropDown.d.ts +0 -3
- package/dist/ui/icons/IcRoundArrowDropDown.js +0 -18
- package/dist/ui/icons/IcRoundArrowDropDownCircle.d.ts +0 -3
- package/dist/ui/icons/IcRoundArrowDropDownCircle.js +0 -18
- package/dist/ui/icons/IcRoundArrowDropUp.d.ts +0 -3
- package/dist/ui/icons/IcRoundArrowDropUp.js +0 -18
- package/dist/ui/icons/IcRoundArrowForward.d.ts +0 -2
- package/dist/ui/icons/IcRoundArrowForward.js +0 -16
- package/dist/ui/icons/IcRoundArrowUpward.d.ts +0 -2
- package/dist/ui/icons/IcRoundArrowUpward.js +0 -26
- package/dist/ui/icons/IcRoundAttachFile.d.ts +0 -2
- package/dist/ui/icons/IcRoundAttachFile.js +0 -10
- package/dist/ui/icons/IcRoundCheck.d.ts +0 -2
- package/dist/ui/icons/IcRoundCheck.js +0 -16
- package/dist/ui/icons/IcRoundCheckBox.d.ts +0 -2
- package/dist/ui/icons/IcRoundCheckBox.js +0 -16
- package/dist/ui/icons/IcRoundCheckBoxOutlineBlank.d.ts +0 -2
- package/dist/ui/icons/IcRoundCheckBoxOutlineBlank.js +0 -16
- package/dist/ui/icons/IcRoundChevronRight.d.ts +0 -2
- package/dist/ui/icons/IcRoundChevronRight.js +0 -26
- package/dist/ui/icons/IcRoundDescription.d.ts +0 -2
- package/dist/ui/icons/IcRoundDescription.js +0 -26
- package/dist/ui/icons/IcRoundDragHandle.d.ts +0 -3
- package/dist/ui/icons/IcRoundDragHandle.js +0 -18
- package/dist/ui/icons/IcRoundExitToApp.d.ts +0 -2
- package/dist/ui/icons/IcRoundExitToApp.js +0 -26
- package/dist/ui/icons/IcRoundFeed.d.ts +0 -2
- package/dist/ui/icons/IcRoundFeed.js +0 -16
- package/dist/ui/icons/IcRoundFormatBold.d.ts +0 -3
- package/dist/ui/icons/IcRoundFormatBold.js +0 -18
- package/dist/ui/icons/IcRoundFormatClear.d.ts +0 -3
- package/dist/ui/icons/IcRoundFormatClear.js +0 -18
- package/dist/ui/icons/IcRoundFormatItalic.d.ts +0 -3
- package/dist/ui/icons/IcRoundFormatItalic.js +0 -18
- package/dist/ui/icons/IcRoundFormatListBulleted.d.ts +0 -3
- package/dist/ui/icons/IcRoundFormatListBulleted.js +0 -18
- package/dist/ui/icons/IcRoundFormatPaint.d.ts +0 -2
- package/dist/ui/icons/IcRoundFormatPaint.js +0 -10
- package/dist/ui/icons/IcRoundHamburger.d.ts +0 -3
- package/dist/ui/icons/IcRoundHamburger.js +0 -18
- package/dist/ui/icons/IcRoundHdrStrong.d.ts +0 -3
- package/dist/ui/icons/IcRoundHdrStrong.js +0 -18
- package/dist/ui/icons/IcRoundHorizontalRule.d.ts +0 -3
- package/dist/ui/icons/IcRoundHorizontalRule.js +0 -19
- package/dist/ui/icons/IcRoundInsertDriveFile.d.ts +0 -2
- package/dist/ui/icons/IcRoundInsertDriveFile.js +0 -16
- package/dist/ui/icons/IcRoundKeyboardArrowDown.d.ts +0 -2
- package/dist/ui/icons/IcRoundKeyboardArrowDown.js +0 -16
- package/dist/ui/icons/IcRoundKeyboardArrowLeft.d.ts +0 -3
- package/dist/ui/icons/IcRoundKeyboardArrowLeft.js +0 -18
- package/dist/ui/icons/IcRoundKeyboardArrowRight.d.ts +0 -2
- package/dist/ui/icons/IcRoundKeyboardArrowRight.js +0 -16
- package/dist/ui/icons/IcRoundKeyboardArrowUp.d.ts +0 -2
- package/dist/ui/icons/IcRoundKeyboardArrowUp.js +0 -16
- package/dist/ui/icons/IcRoundLanguage.d.ts +0 -2
- package/dist/ui/icons/IcRoundLanguage.js +0 -16
- package/dist/ui/icons/IcRoundLastPage.d.ts +0 -2
- package/dist/ui/icons/IcRoundLastPage.js +0 -26
- package/dist/ui/icons/IcRoundLock.d.ts +0 -3
- package/dist/ui/icons/IcRoundLock.js +0 -18
- package/dist/ui/icons/IcRoundMenu.d.ts +0 -2
- package/dist/ui/icons/IcRoundMenu.js +0 -16
- package/dist/ui/icons/IcRoundMoreHoriz.d.ts +0 -2
- package/dist/ui/icons/IcRoundMoreHoriz.js +0 -16
- package/dist/ui/icons/IcRoundMoreVert.d.ts +0 -2
- package/dist/ui/icons/IcRoundMoreVert.js +0 -26
- package/dist/ui/icons/IcRoundNorthEast.d.ts +0 -2
- package/dist/ui/icons/IcRoundNorthEast.js +0 -16
- package/dist/ui/icons/IcRoundNotes.d.ts +0 -2
- package/dist/ui/icons/IcRoundNotes.js +0 -16
- package/dist/ui/icons/IcRoundNumbers.d.ts +0 -2
- package/dist/ui/icons/IcRoundNumbers.js +0 -16
- package/dist/ui/icons/IcRoundPermMedia.d.ts +0 -2
- package/dist/ui/icons/IcRoundPermMedia.js +0 -25
- package/dist/ui/icons/IcRoundPublish.d.ts +0 -2
- package/dist/ui/icons/IcRoundPublish.js +0 -16
- package/dist/ui/icons/IcRoundPublishedWithChanges.d.ts +0 -2
- package/dist/ui/icons/IcRoundPublishedWithChanges.js +0 -26
- package/dist/ui/icons/IcRoundQuote.d.ts +0 -2
- package/dist/ui/icons/IcRoundQuote.js +0 -16
- package/dist/ui/icons/IcRoundRedo.d.ts +0 -3
- package/dist/ui/icons/IcRoundRedo.js +0 -18
- package/dist/ui/icons/IcRoundRemoveCircleOutline.d.ts +0 -2
- package/dist/ui/icons/IcRoundRemoveCircleOutline.js +0 -16
- package/dist/ui/icons/IcRoundRotateLeft.d.ts +0 -2
- package/dist/ui/icons/IcRoundRotateLeft.js +0 -16
- package/dist/ui/icons/IcRoundSend.d.ts +0 -2
- package/dist/ui/icons/IcRoundSend.js +0 -26
- package/dist/ui/icons/IcRoundSouthWest.d.ts +0 -2
- package/dist/ui/icons/IcRoundSouthWest.js +0 -16
- package/dist/ui/icons/IcRoundSubscript.d.ts +0 -2
- package/dist/ui/icons/IcRoundSubscript.js +0 -26
- package/dist/ui/icons/IcRoundSuperscript.d.ts +0 -2
- package/dist/ui/icons/IcRoundSuperscript.js +0 -26
- package/dist/ui/icons/IcRoundTabletMac.d.ts +0 -2
- package/dist/ui/icons/IcRoundTabletMac.js +0 -16
- package/dist/ui/icons/IcRoundTextFields.d.ts +0 -2
- package/dist/ui/icons/IcRoundTextFields.js +0 -16
- package/dist/ui/icons/IcRoundTranslate.d.ts +0 -2
- package/dist/ui/icons/IcRoundTranslate.js +0 -26
- package/dist/ui/icons/IcRoundUndo.d.ts +0 -3
- package/dist/ui/icons/IcRoundUndo.js +0 -18
- package/dist/ui/icons/IcRoundUnfoldLess.d.ts +0 -2
- package/dist/ui/icons/IcRoundUnfoldLess.js +0 -26
- package/dist/ui/icons/IcRoundUnfoldMore.d.ts +0 -2
- package/dist/ui/icons/IcRoundUnfoldMore.js +0 -16
- package/dist/ui/icons/IcRoundUploadFile.d.ts +0 -3
- package/dist/ui/icons/IcRoundUploadFile.js +0 -18
- package/dist/ui/icons/IcRoundVisibilityOff.d.ts +0 -2
- package/dist/ui/icons/IcRoundVisibilityOff.js +0 -16
- package/dist/ui/icons/IcRoundWarning.d.ts +0 -2
- package/dist/ui/icons/IcRoundWarning.js +0 -16
- package/dist/ui/icons/IcSharpBrightnessMedium.d.ts +0 -2
- package/dist/ui/icons/IcSharpBrightnessMedium.js +0 -16
- package/dist/ui/icons/IcSharpVerticalAlignCenter.d.ts +0 -2
- package/dist/ui/icons/IcSharpVerticalAlignCenter.js +0 -16
- package/dist/ui/icons/IcTwotoneDescription.d.ts +0 -2
- package/dist/ui/icons/IcTwotoneDescription.js +0 -37
- package/dist/ui/icons/IcTwotoneFolder.d.ts +0 -2
- package/dist/ui/icons/IcTwotoneFolder.js +0 -37
- package/dist/ui/icons/IcTwotoneInsertDriveFile.d.ts +0 -2
- package/dist/ui/icons/IcTwotoneInsertDriveFile.js +0 -30
- package/dist/ui/icons/MdiGithub.d.ts +0 -3
- package/dist/ui/icons/MdiGithub.js +0 -18
- package/dist/ui/icons/MdiSourceBranch.d.ts +0 -2
- package/dist/ui/icons/MdiSourceBranch.js +0 -16
- package/dist/ui/icons/MdiTwitterCircle.d.ts +0 -2
- package/dist/ui/icons/MdiTwitterCircle.js +0 -26
- package/dist/ui/icons/MiLayers.d.ts +0 -3
- package/dist/ui/icons/MiLayers.js +0 -16
- package/dist/ui/icons/PhGlobe.d.ts +0 -2
- package/dist/ui/icons/PhGlobe.js +0 -26
- package/dist/ui/icons/RiFlashlightFill.d.ts +0 -2
- package/dist/ui/icons/RiFlashlightFill.js +0 -10
- package/dist/ui/icons/TableDelete.d.ts +0 -2
- package/dist/ui/icons/TableDelete.js +0 -25
- package/dist/ui/icons/TableDeleteColumn.d.ts +0 -2
- package/dist/ui/icons/TableDeleteColumn.js +0 -16
- package/dist/ui/icons/TableDeleteRow.d.ts +0 -2
- package/dist/ui/icons/TableDeleteRow.js +0 -16
- package/dist/ui/icons/TableHeaderCell.d.ts +0 -2
- package/dist/ui/icons/TableHeaderCell.js +0 -16
- package/dist/ui/icons/TableHeaderColumn.d.ts +0 -2
- package/dist/ui/icons/TableHeaderColumn.js +0 -16
- package/dist/ui/icons/TableHeaderRow.d.ts +0 -2
- package/dist/ui/icons/TableHeaderRow.js +0 -16
- package/dist/ui/icons/TableInsertColumnAfter.d.ts +0 -2
- package/dist/ui/icons/TableInsertColumnAfter.js +0 -16
- package/dist/ui/icons/TableInsertColumnBefore.d.ts +0 -2
- package/dist/ui/icons/TableInsertColumnBefore.js +0 -16
- package/dist/ui/icons/TableInsertRowAfter.d.ts +0 -2
- package/dist/ui/icons/TableInsertRowAfter.js +0 -16
- package/dist/ui/icons/TableInsertRowBefore.d.ts +0 -2
- package/dist/ui/icons/TableInsertRowBefore.js +0 -16
- package/dist/ui/icons/TableMergeCells.d.ts +0 -2
- package/dist/ui/icons/TableMergeCells.js +0 -16
- package/dist/ui/icons/TableSplitCell.d.ts +0 -2
- package/dist/ui/icons/TableSplitCell.js +0 -16
- package/dist/ui/util/ContrastColor.d.ts +0 -1
- package/dist/ui/util/ContrastColor.js +0 -17
- package/dist/ui/util/CreateTypo.d.ts +0 -62
- package/dist/ui/util/CreateTypo.js +0 -119
- package/dist/ui/util/Elevation.d.ts +0 -12
- package/dist/ui/util/Elevation.js +0 -20
- package/dist/ui/util/PropsWithAs.d.ts +0 -12
- package/dist/ui/util/PropsWithAs.js +0 -10
- package/dist/ui/util/Slots.d.ts +0 -11
- package/dist/ui/util/Slots.js +0 -50
- package/dist/ui/util/TextareaAutosize.d.ts +0 -2
- package/dist/ui/util/TextareaAutosize.js +0 -40
- package/dist/ui/util/Units.d.ts +0 -1
- package/dist/ui/util/Units.js +0 -7
- package/dist/ui/util/UseId.d.ts +0 -1
- package/dist/ui/util/UseId.js +0 -11
- package/dist/yjs.d.ts +0 -1
- package/dist/yjs.js +0 -206
- /package/dist/{core/Shape.js → chunks/chunk-NUFRM6SI.js} +0 -0
- /package/dist/{backend/Handler.test.d.ts → dashboard/app/EntrySidebarPreview.spec.d.ts} +0 -0
- /package/dist/{backend/router/Router.test.d.ts → dashboard/app/WorkspaceMenu.spec.d.ts} +0 -0
- /package/dist/{cli/Init.test.d.ts → field/link/LinkField.spec.d.ts} +0 -0
- /package/dist/{cli/util/CommitMessage.test.d.ts → field/list/ListField.spec.d.ts} +0 -0
- /package/dist/{core/Config.test.d.ts → field/richtext/RichTextField.spec.d.ts} +0 -0
|
@@ -0,0 +1,1265 @@
|
|
|
1
|
+
// node_modules/@internationalized/date/dist/private/utils.mjs
|
|
2
|
+
function $09ec6a572d60460f$export$842a2cf37af977e1(amount, numerator) {
|
|
3
|
+
return amount - numerator * Math.floor(amount / numerator);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
// node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.mjs
|
|
7
|
+
var $93635573935797de$var$EPOCH = 1721426;
|
|
8
|
+
function $93635573935797de$export$f297eb839006d339(era, year, month, day) {
|
|
9
|
+
year = $93635573935797de$export$c36e0ecb2d4fa69d(era, year);
|
|
10
|
+
let y1 = year - 1;
|
|
11
|
+
let monthOffset = -2;
|
|
12
|
+
if (month <= 2) monthOffset = 0;
|
|
13
|
+
else if ($93635573935797de$export$553d7fa8e3805fc0(year)) monthOffset = -1;
|
|
14
|
+
return $93635573935797de$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);
|
|
15
|
+
}
|
|
16
|
+
function $93635573935797de$export$553d7fa8e3805fc0(year) {
|
|
17
|
+
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
18
|
+
}
|
|
19
|
+
function $93635573935797de$export$c36e0ecb2d4fa69d(era, year) {
|
|
20
|
+
return era === "BC" ? 1 - year : year;
|
|
21
|
+
}
|
|
22
|
+
function $93635573935797de$export$4475b7e617eb123c(year) {
|
|
23
|
+
let era = "AD";
|
|
24
|
+
if (year <= 0) {
|
|
25
|
+
era = "BC";
|
|
26
|
+
year = 1 - year;
|
|
27
|
+
}
|
|
28
|
+
return [
|
|
29
|
+
era,
|
|
30
|
+
year
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
var $93635573935797de$var$daysInMonth = {
|
|
34
|
+
standard: [
|
|
35
|
+
31,
|
|
36
|
+
28,
|
|
37
|
+
31,
|
|
38
|
+
30,
|
|
39
|
+
31,
|
|
40
|
+
30,
|
|
41
|
+
31,
|
|
42
|
+
31,
|
|
43
|
+
30,
|
|
44
|
+
31,
|
|
45
|
+
30,
|
|
46
|
+
31
|
|
47
|
+
],
|
|
48
|
+
leapyear: [
|
|
49
|
+
31,
|
|
50
|
+
29,
|
|
51
|
+
31,
|
|
52
|
+
30,
|
|
53
|
+
31,
|
|
54
|
+
30,
|
|
55
|
+
31,
|
|
56
|
+
31,
|
|
57
|
+
30,
|
|
58
|
+
31,
|
|
59
|
+
30,
|
|
60
|
+
31
|
|
61
|
+
]
|
|
62
|
+
};
|
|
63
|
+
var $93635573935797de$export$80ee6245ec4f29ec = class {
|
|
64
|
+
fromJulianDay(jd) {
|
|
65
|
+
let jd0 = jd;
|
|
66
|
+
let depoch = jd0 - $93635573935797de$var$EPOCH;
|
|
67
|
+
let quadricent = Math.floor(depoch / 146097);
|
|
68
|
+
let dqc = (0, $09ec6a572d60460f$export$842a2cf37af977e1)(depoch, 146097);
|
|
69
|
+
let cent = Math.floor(dqc / 36524);
|
|
70
|
+
let dcent = (0, $09ec6a572d60460f$export$842a2cf37af977e1)(dqc, 36524);
|
|
71
|
+
let quad = Math.floor(dcent / 1461);
|
|
72
|
+
let dquad = (0, $09ec6a572d60460f$export$842a2cf37af977e1)(dcent, 1461);
|
|
73
|
+
let yindex = Math.floor(dquad / 365);
|
|
74
|
+
let extendedYear = quadricent * 400 + cent * 100 + quad * 4 + yindex + (cent !== 4 && yindex !== 4 ? 1 : 0);
|
|
75
|
+
let [era, year] = $93635573935797de$export$4475b7e617eb123c(extendedYear);
|
|
76
|
+
let yearDay = jd0 - $93635573935797de$export$f297eb839006d339(era, year, 1, 1);
|
|
77
|
+
let leapAdj = 2;
|
|
78
|
+
if (jd0 < $93635573935797de$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;
|
|
79
|
+
else if ($93635573935797de$export$553d7fa8e3805fc0(year)) leapAdj = 1;
|
|
80
|
+
let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
|
|
81
|
+
let day = jd0 - $93635573935797de$export$f297eb839006d339(era, year, month, 1) + 1;
|
|
82
|
+
return new (0, $2aaf608024c21ca1$export$99faa760c7908e4f)(era, year, month, day);
|
|
83
|
+
}
|
|
84
|
+
toJulianDay(date) {
|
|
85
|
+
return $93635573935797de$export$f297eb839006d339(date.era, date.year, date.month, date.day);
|
|
86
|
+
}
|
|
87
|
+
getDaysInMonth(date) {
|
|
88
|
+
return $93635573935797de$var$daysInMonth[$93635573935797de$export$553d7fa8e3805fc0(date.year) ? "leapyear" : "standard"][date.month - 1];
|
|
89
|
+
}
|
|
90
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
91
|
+
getMonthsInYear(date) {
|
|
92
|
+
return 12;
|
|
93
|
+
}
|
|
94
|
+
getDaysInYear(date) {
|
|
95
|
+
return $93635573935797de$export$553d7fa8e3805fc0(date.year) ? 366 : 365;
|
|
96
|
+
}
|
|
97
|
+
getMaximumMonthsInYear() {
|
|
98
|
+
return 12;
|
|
99
|
+
}
|
|
100
|
+
getMaximumDaysInMonth() {
|
|
101
|
+
return 31;
|
|
102
|
+
}
|
|
103
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
104
|
+
getYearsInEra(date) {
|
|
105
|
+
return 9999;
|
|
106
|
+
}
|
|
107
|
+
getEras() {
|
|
108
|
+
return [
|
|
109
|
+
"BC",
|
|
110
|
+
"AD"
|
|
111
|
+
];
|
|
112
|
+
}
|
|
113
|
+
isInverseEra(date) {
|
|
114
|
+
return date.era === "BC";
|
|
115
|
+
}
|
|
116
|
+
balanceDate(date) {
|
|
117
|
+
if (date.year <= 0) {
|
|
118
|
+
date.era = date.era === "BC" ? "AD" : "BC";
|
|
119
|
+
date.year = 1 - date.year;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
constructor() {
|
|
123
|
+
this.identifier = "gregory";
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
// node_modules/@internationalized/date/dist/private/weekStartData.mjs
|
|
128
|
+
var $d2ca8165c9aa885a$export$7a5acbd77d414bd9 = {
|
|
129
|
+
"001": 1,
|
|
130
|
+
AD: 1,
|
|
131
|
+
AE: 6,
|
|
132
|
+
AF: 6,
|
|
133
|
+
AI: 1,
|
|
134
|
+
AL: 1,
|
|
135
|
+
AM: 1,
|
|
136
|
+
AN: 1,
|
|
137
|
+
AR: 1,
|
|
138
|
+
AT: 1,
|
|
139
|
+
AU: 1,
|
|
140
|
+
AX: 1,
|
|
141
|
+
AZ: 1,
|
|
142
|
+
BA: 1,
|
|
143
|
+
BE: 1,
|
|
144
|
+
BG: 1,
|
|
145
|
+
BH: 6,
|
|
146
|
+
BM: 1,
|
|
147
|
+
BN: 1,
|
|
148
|
+
BY: 1,
|
|
149
|
+
CH: 1,
|
|
150
|
+
CL: 1,
|
|
151
|
+
CM: 1,
|
|
152
|
+
CN: 1,
|
|
153
|
+
CR: 1,
|
|
154
|
+
CY: 1,
|
|
155
|
+
CZ: 1,
|
|
156
|
+
DE: 1,
|
|
157
|
+
DJ: 6,
|
|
158
|
+
DK: 1,
|
|
159
|
+
DZ: 6,
|
|
160
|
+
EC: 1,
|
|
161
|
+
EE: 1,
|
|
162
|
+
EG: 6,
|
|
163
|
+
ES: 1,
|
|
164
|
+
FI: 1,
|
|
165
|
+
FJ: 1,
|
|
166
|
+
FO: 1,
|
|
167
|
+
FR: 1,
|
|
168
|
+
GB: 1,
|
|
169
|
+
GE: 1,
|
|
170
|
+
GF: 1,
|
|
171
|
+
GP: 1,
|
|
172
|
+
GR: 1,
|
|
173
|
+
HR: 1,
|
|
174
|
+
HU: 1,
|
|
175
|
+
IE: 1,
|
|
176
|
+
IQ: 6,
|
|
177
|
+
IR: 6,
|
|
178
|
+
IS: 1,
|
|
179
|
+
IT: 1,
|
|
180
|
+
JO: 6,
|
|
181
|
+
KG: 1,
|
|
182
|
+
KW: 6,
|
|
183
|
+
KZ: 1,
|
|
184
|
+
LB: 1,
|
|
185
|
+
LI: 1,
|
|
186
|
+
LK: 1,
|
|
187
|
+
LT: 1,
|
|
188
|
+
LU: 1,
|
|
189
|
+
LV: 1,
|
|
190
|
+
LY: 6,
|
|
191
|
+
MC: 1,
|
|
192
|
+
MD: 1,
|
|
193
|
+
ME: 1,
|
|
194
|
+
MK: 1,
|
|
195
|
+
MN: 1,
|
|
196
|
+
MQ: 1,
|
|
197
|
+
MV: 5,
|
|
198
|
+
MY: 1,
|
|
199
|
+
NL: 1,
|
|
200
|
+
NO: 1,
|
|
201
|
+
NZ: 1,
|
|
202
|
+
OM: 6,
|
|
203
|
+
PL: 1,
|
|
204
|
+
QA: 6,
|
|
205
|
+
RE: 1,
|
|
206
|
+
RO: 1,
|
|
207
|
+
RS: 1,
|
|
208
|
+
RU: 1,
|
|
209
|
+
SD: 6,
|
|
210
|
+
SE: 1,
|
|
211
|
+
SI: 1,
|
|
212
|
+
SK: 1,
|
|
213
|
+
SM: 1,
|
|
214
|
+
SY: 6,
|
|
215
|
+
TJ: 1,
|
|
216
|
+
TM: 1,
|
|
217
|
+
TR: 1,
|
|
218
|
+
UA: 1,
|
|
219
|
+
UY: 1,
|
|
220
|
+
UZ: 1,
|
|
221
|
+
VA: 1,
|
|
222
|
+
VN: 1,
|
|
223
|
+
XK: 1
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
// node_modules/@internationalized/date/dist/private/queries.mjs
|
|
227
|
+
function $ad063034c8620db8$export$ea39ec197993aef0(a, b) {
|
|
228
|
+
b = (0, $d07e34cce18680fd$export$b4a036af3fc0b032)(b, a.calendar);
|
|
229
|
+
return a.era === b.era && a.year === b.year && a.month === b.month && a.day === b.day;
|
|
230
|
+
}
|
|
231
|
+
function $ad063034c8620db8$export$91b62ebf2ba703ee(a, b) {
|
|
232
|
+
return $ad063034c8620db8$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $ad063034c8620db8$export$ea39ec197993aef0(a, b);
|
|
233
|
+
}
|
|
234
|
+
function $ad063034c8620db8$export$dbc69fd56b53d5e(a, b) {
|
|
235
|
+
return a.isEqual?.(b) ?? b.isEqual?.(a) ?? a.identifier === b.identifier;
|
|
236
|
+
}
|
|
237
|
+
var $ad063034c8620db8$var$DAY_MAP = {
|
|
238
|
+
sun: 0,
|
|
239
|
+
mon: 1,
|
|
240
|
+
tue: 2,
|
|
241
|
+
wed: 3,
|
|
242
|
+
thu: 4,
|
|
243
|
+
fri: 5,
|
|
244
|
+
sat: 6
|
|
245
|
+
};
|
|
246
|
+
function $ad063034c8620db8$export$2061056d06d7cdf7(date, locale, firstDayOfWeek) {
|
|
247
|
+
let julian = date.calendar.toJulianDay(date);
|
|
248
|
+
let weekStart = firstDayOfWeek ? $ad063034c8620db8$var$DAY_MAP[firstDayOfWeek] : $ad063034c8620db8$var$getWeekStart(locale);
|
|
249
|
+
let dayOfWeek = Math.ceil(julian + 1 - weekStart) % 7;
|
|
250
|
+
if (dayOfWeek < 0) dayOfWeek += 7;
|
|
251
|
+
return dayOfWeek;
|
|
252
|
+
}
|
|
253
|
+
function $ad063034c8620db8$export$461939dd4422153(timeZone) {
|
|
254
|
+
return (0, $d07e34cce18680fd$export$1b96692a1ba042ac)(Date.now(), timeZone);
|
|
255
|
+
}
|
|
256
|
+
function $ad063034c8620db8$export$d0bdf45af03a6ea3(timeZone) {
|
|
257
|
+
return (0, $d07e34cce18680fd$export$93522d1a439f3617)($ad063034c8620db8$export$461939dd4422153(timeZone));
|
|
258
|
+
}
|
|
259
|
+
function $ad063034c8620db8$export$68781ddf31c0090f(a, b) {
|
|
260
|
+
return a.calendar.toJulianDay(a) - b.calendar.toJulianDay(b);
|
|
261
|
+
}
|
|
262
|
+
function $ad063034c8620db8$export$c19a80a9721b80f6(a, b) {
|
|
263
|
+
return $ad063034c8620db8$var$timeToMs(a) - $ad063034c8620db8$var$timeToMs(b);
|
|
264
|
+
}
|
|
265
|
+
function $ad063034c8620db8$var$timeToMs(a) {
|
|
266
|
+
return a.hour * 36e5 + a.minute * 6e4 + a.second * 1e3 + a.millisecond;
|
|
267
|
+
}
|
|
268
|
+
var $ad063034c8620db8$var$localTimeZone = null;
|
|
269
|
+
var $ad063034c8620db8$var$localTimeZoneOverride = false;
|
|
270
|
+
function $ad063034c8620db8$export$aa8b41735afcabd2() {
|
|
271
|
+
if ($ad063034c8620db8$var$localTimeZone == null) $ad063034c8620db8$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
272
|
+
return $ad063034c8620db8$var$localTimeZone;
|
|
273
|
+
}
|
|
274
|
+
function $ad063034c8620db8$export$6ab69b273755230b() {
|
|
275
|
+
return $ad063034c8620db8$var$localTimeZoneOverride;
|
|
276
|
+
}
|
|
277
|
+
function $ad063034c8620db8$export$a5a3b454ada2268e(date) {
|
|
278
|
+
return date.subtract({
|
|
279
|
+
days: date.day - 1
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
function $ad063034c8620db8$export$a2258d9c4118825c(date) {
|
|
283
|
+
return date.add({
|
|
284
|
+
days: date.calendar.getDaysInMonth(date) - date.day
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
function $ad063034c8620db8$export$f91e89d3d0406102(date) {
|
|
288
|
+
return $ad063034c8620db8$export$a5a3b454ada2268e(date.subtract({
|
|
289
|
+
months: date.month - 1
|
|
290
|
+
}));
|
|
291
|
+
}
|
|
292
|
+
function $ad063034c8620db8$export$42c81a444fbfb5d4(date, locale, firstDayOfWeek) {
|
|
293
|
+
let dayOfWeek = $ad063034c8620db8$export$2061056d06d7cdf7(date, locale, firstDayOfWeek);
|
|
294
|
+
return date.subtract({
|
|
295
|
+
days: dayOfWeek
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
function $ad063034c8620db8$export$ef8b6d9133084f4e(date, locale, firstDayOfWeek) {
|
|
299
|
+
return $ad063034c8620db8$export$42c81a444fbfb5d4(date, locale, firstDayOfWeek).add({
|
|
300
|
+
days: 6
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
var $ad063034c8620db8$var$cachedRegions = /* @__PURE__ */ new Map();
|
|
304
|
+
var $ad063034c8620db8$var$cachedWeekInfo = /* @__PURE__ */ new Map();
|
|
305
|
+
function $ad063034c8620db8$var$getRegion(locale) {
|
|
306
|
+
if (Intl.Locale) {
|
|
307
|
+
let region = $ad063034c8620db8$var$cachedRegions.get(locale);
|
|
308
|
+
if (!region) {
|
|
309
|
+
region = new Intl.Locale(locale).maximize().region;
|
|
310
|
+
if (region) $ad063034c8620db8$var$cachedRegions.set(locale, region);
|
|
311
|
+
}
|
|
312
|
+
return region;
|
|
313
|
+
}
|
|
314
|
+
let part = locale.split("-")[1];
|
|
315
|
+
return part === "u" ? void 0 : part;
|
|
316
|
+
}
|
|
317
|
+
function $ad063034c8620db8$var$getWeekStart(locale) {
|
|
318
|
+
let weekInfo = $ad063034c8620db8$var$cachedWeekInfo.get(locale);
|
|
319
|
+
if (!weekInfo) {
|
|
320
|
+
if (Intl.Locale) {
|
|
321
|
+
let localeInst = new Intl.Locale(locale);
|
|
322
|
+
if ("getWeekInfo" in localeInst) {
|
|
323
|
+
weekInfo = localeInst.getWeekInfo();
|
|
324
|
+
if (weekInfo) {
|
|
325
|
+
$ad063034c8620db8$var$cachedWeekInfo.set(locale, weekInfo);
|
|
326
|
+
return weekInfo.firstDay;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
let region = $ad063034c8620db8$var$getRegion(locale);
|
|
331
|
+
if (locale.includes("-fw-")) {
|
|
332
|
+
let day = locale.split("-fw-")[1].split("-")[0];
|
|
333
|
+
if (day === "mon") weekInfo = {
|
|
334
|
+
firstDay: 1
|
|
335
|
+
};
|
|
336
|
+
else if (day === "tue") weekInfo = {
|
|
337
|
+
firstDay: 2
|
|
338
|
+
};
|
|
339
|
+
else if (day === "wed") weekInfo = {
|
|
340
|
+
firstDay: 3
|
|
341
|
+
};
|
|
342
|
+
else if (day === "thu") weekInfo = {
|
|
343
|
+
firstDay: 4
|
|
344
|
+
};
|
|
345
|
+
else if (day === "fri") weekInfo = {
|
|
346
|
+
firstDay: 5
|
|
347
|
+
};
|
|
348
|
+
else if (day === "sat") weekInfo = {
|
|
349
|
+
firstDay: 6
|
|
350
|
+
};
|
|
351
|
+
else weekInfo = {
|
|
352
|
+
firstDay: 0
|
|
353
|
+
};
|
|
354
|
+
} else if (locale.includes("-ca-iso8601")) weekInfo = {
|
|
355
|
+
firstDay: 1
|
|
356
|
+
};
|
|
357
|
+
else weekInfo = {
|
|
358
|
+
firstDay: region ? (0, $d2ca8165c9aa885a$export$7a5acbd77d414bd9)[region] || 0 : 0
|
|
359
|
+
};
|
|
360
|
+
$ad063034c8620db8$var$cachedWeekInfo.set(locale, weekInfo);
|
|
361
|
+
}
|
|
362
|
+
return weekInfo.firstDay;
|
|
363
|
+
}
|
|
364
|
+
function $ad063034c8620db8$export$5c333a116e949cdd(a, b) {
|
|
365
|
+
if (a && b) return a.compare(b) <= 0 ? a : b;
|
|
366
|
+
return a || b;
|
|
367
|
+
}
|
|
368
|
+
function $ad063034c8620db8$export$a75f2bff57811055(a, b) {
|
|
369
|
+
if (a && b) return a.compare(b) >= 0 ? a : b;
|
|
370
|
+
return a || b;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// node_modules/@internationalized/date/dist/private/conversion.mjs
|
|
374
|
+
function $d07e34cce18680fd$export$bd4fb2bc8bb06fb(date) {
|
|
375
|
+
date = $d07e34cce18680fd$export$b4a036af3fc0b032(date, new (0, $93635573935797de$export$80ee6245ec4f29ec)());
|
|
376
|
+
let year = (0, $93635573935797de$export$c36e0ecb2d4fa69d)(date.era, date.year);
|
|
377
|
+
return $d07e34cce18680fd$var$epochFromParts(year, date.month, date.day, date.hour, date.minute, date.second, date.millisecond);
|
|
378
|
+
}
|
|
379
|
+
function $d07e34cce18680fd$var$epochFromParts(year, month, day, hour, minute, second, millisecond) {
|
|
380
|
+
let date = /* @__PURE__ */ new Date();
|
|
381
|
+
date.setUTCHours(hour, minute, second, millisecond);
|
|
382
|
+
date.setUTCFullYear(year, month - 1, day);
|
|
383
|
+
return date.getTime();
|
|
384
|
+
}
|
|
385
|
+
function $d07e34cce18680fd$export$59c99f3515d3493f(ms, timeZone) {
|
|
386
|
+
if (timeZone === "UTC") return 0;
|
|
387
|
+
if (ms > 0 && timeZone === (0, $ad063034c8620db8$export$aa8b41735afcabd2)() && !(0, $ad063034c8620db8$export$6ab69b273755230b)()) return new Date(ms).getTimezoneOffset() * -6e4;
|
|
388
|
+
let { year, month, day, hour, minute, second } = $d07e34cce18680fd$var$getTimeZoneParts(ms, timeZone);
|
|
389
|
+
let utc = $d07e34cce18680fd$var$epochFromParts(year, month, day, hour, minute, second, 0);
|
|
390
|
+
return utc - Math.floor(ms / 1e3) * 1e3;
|
|
391
|
+
}
|
|
392
|
+
var $d07e34cce18680fd$var$formattersByTimeZone = /* @__PURE__ */ new Map();
|
|
393
|
+
function $d07e34cce18680fd$var$getTimeZoneParts(ms, timeZone) {
|
|
394
|
+
let formatter = $d07e34cce18680fd$var$formattersByTimeZone.get(timeZone);
|
|
395
|
+
if (!formatter) {
|
|
396
|
+
formatter = new Intl.DateTimeFormat("en-US", {
|
|
397
|
+
timeZone,
|
|
398
|
+
hour12: false,
|
|
399
|
+
era: "short",
|
|
400
|
+
year: "numeric",
|
|
401
|
+
month: "numeric",
|
|
402
|
+
day: "numeric",
|
|
403
|
+
hour: "numeric",
|
|
404
|
+
minute: "numeric",
|
|
405
|
+
second: "numeric"
|
|
406
|
+
});
|
|
407
|
+
$d07e34cce18680fd$var$formattersByTimeZone.set(timeZone, formatter);
|
|
408
|
+
}
|
|
409
|
+
let parts = formatter.formatToParts(new Date(ms));
|
|
410
|
+
let namedParts = {};
|
|
411
|
+
for (let part of parts) if (part.type !== "literal") namedParts[part.type] = part.value;
|
|
412
|
+
return {
|
|
413
|
+
// Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
|
|
414
|
+
year: namedParts.era === "BC" || namedParts.era === "B" ? -namedParts.year + 1 : +namedParts.year,
|
|
415
|
+
month: +namedParts.month,
|
|
416
|
+
day: +namedParts.day,
|
|
417
|
+
hour: namedParts.hour === "24" ? 0 : +namedParts.hour,
|
|
418
|
+
minute: +namedParts.minute,
|
|
419
|
+
second: +namedParts.second
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
var $d07e34cce18680fd$var$DAYMILLIS = 864e5;
|
|
423
|
+
function $d07e34cce18680fd$var$getValidWallTimes(date, timeZone, earlier, later) {
|
|
424
|
+
let found = earlier === later ? [
|
|
425
|
+
earlier
|
|
426
|
+
] : [
|
|
427
|
+
earlier,
|
|
428
|
+
later
|
|
429
|
+
];
|
|
430
|
+
return found.filter((absolute) => $d07e34cce18680fd$var$isValidWallTime(date, timeZone, absolute));
|
|
431
|
+
}
|
|
432
|
+
function $d07e34cce18680fd$var$isValidWallTime(date, timeZone, absolute) {
|
|
433
|
+
let parts = $d07e34cce18680fd$var$getTimeZoneParts(absolute, timeZone);
|
|
434
|
+
return date.year === parts.year && date.month === parts.month && date.day === parts.day && date.hour === parts.hour && date.minute === parts.minute && date.second === parts.second;
|
|
435
|
+
}
|
|
436
|
+
function $d07e34cce18680fd$export$5107c82f94518f5c(date, timeZone, disambiguation = "compatible") {
|
|
437
|
+
let dateTime = $d07e34cce18680fd$export$b21e0b124e224484(date);
|
|
438
|
+
if (timeZone === "UTC") return $d07e34cce18680fd$export$bd4fb2bc8bb06fb(dateTime);
|
|
439
|
+
if (timeZone === (0, $ad063034c8620db8$export$aa8b41735afcabd2)() && disambiguation === "compatible" && !(0, $ad063034c8620db8$export$6ab69b273755230b)()) {
|
|
440
|
+
dateTime = $d07e34cce18680fd$export$b4a036af3fc0b032(dateTime, new (0, $93635573935797de$export$80ee6245ec4f29ec)());
|
|
441
|
+
let date2 = /* @__PURE__ */ new Date();
|
|
442
|
+
let year = (0, $93635573935797de$export$c36e0ecb2d4fa69d)(dateTime.era, dateTime.year);
|
|
443
|
+
date2.setFullYear(year, dateTime.month - 1, dateTime.day);
|
|
444
|
+
date2.setHours(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
|
|
445
|
+
return date2.getTime();
|
|
446
|
+
}
|
|
447
|
+
let ms = $d07e34cce18680fd$export$bd4fb2bc8bb06fb(dateTime);
|
|
448
|
+
let offsetBefore = $d07e34cce18680fd$export$59c99f3515d3493f(ms - $d07e34cce18680fd$var$DAYMILLIS, timeZone);
|
|
449
|
+
let offsetAfter = $d07e34cce18680fd$export$59c99f3515d3493f(ms + $d07e34cce18680fd$var$DAYMILLIS, timeZone);
|
|
450
|
+
let valid = $d07e34cce18680fd$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
|
|
451
|
+
if (valid.length === 1) return valid[0];
|
|
452
|
+
if (valid.length > 1) switch (disambiguation) {
|
|
453
|
+
// 'compatible' means 'earlier' for "fall back" transitions
|
|
454
|
+
case "compatible":
|
|
455
|
+
case "earlier":
|
|
456
|
+
return valid[0];
|
|
457
|
+
case "later":
|
|
458
|
+
return valid[valid.length - 1];
|
|
459
|
+
case "reject":
|
|
460
|
+
throw new RangeError("Multiple possible absolute times found");
|
|
461
|
+
}
|
|
462
|
+
switch (disambiguation) {
|
|
463
|
+
case "earlier":
|
|
464
|
+
return Math.min(ms - offsetBefore, ms - offsetAfter);
|
|
465
|
+
// 'compatible' means 'later' for "spring forward" transitions
|
|
466
|
+
case "compatible":
|
|
467
|
+
case "later":
|
|
468
|
+
return Math.max(ms - offsetBefore, ms - offsetAfter);
|
|
469
|
+
case "reject":
|
|
470
|
+
throw new RangeError("No such absolute time found");
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
function $d07e34cce18680fd$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = "compatible") {
|
|
474
|
+
return new Date($d07e34cce18680fd$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));
|
|
475
|
+
}
|
|
476
|
+
function $d07e34cce18680fd$export$1b96692a1ba042ac(ms, timeZone) {
|
|
477
|
+
let offset = $d07e34cce18680fd$export$59c99f3515d3493f(ms, timeZone);
|
|
478
|
+
let date = new Date(ms + offset);
|
|
479
|
+
let year = date.getUTCFullYear();
|
|
480
|
+
let month = date.getUTCMonth() + 1;
|
|
481
|
+
let day = date.getUTCDate();
|
|
482
|
+
let hour = date.getUTCHours();
|
|
483
|
+
let minute = date.getUTCMinutes();
|
|
484
|
+
let second = date.getUTCSeconds();
|
|
485
|
+
let millisecond = date.getUTCMilliseconds();
|
|
486
|
+
return new (0, $2aaf608024c21ca1$export$d3b7288e7994edea)(year < 1 ? "BC" : "AD", year < 1 ? -year + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond);
|
|
487
|
+
}
|
|
488
|
+
function $d07e34cce18680fd$export$93522d1a439f3617(dateTime) {
|
|
489
|
+
return new (0, $2aaf608024c21ca1$export$99faa760c7908e4f)(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);
|
|
490
|
+
}
|
|
491
|
+
function $d07e34cce18680fd$export$b21e0b124e224484(date, time) {
|
|
492
|
+
let hour = 0, minute = 0, second = 0, millisecond = 0;
|
|
493
|
+
if ("timeZone" in date) ({ hour, minute, second, millisecond } = date);
|
|
494
|
+
else if ("hour" in date && !time) return date;
|
|
495
|
+
if (time) ({ hour, minute, second, millisecond } = time);
|
|
496
|
+
return new (0, $2aaf608024c21ca1$export$ca871e8dbb80966f)(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
|
|
497
|
+
}
|
|
498
|
+
function $d07e34cce18680fd$export$d33f79e3ffc3dc83(dateTime) {
|
|
499
|
+
return new (0, $2aaf608024c21ca1$export$680ea196effce5f)(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
|
|
500
|
+
}
|
|
501
|
+
function $d07e34cce18680fd$export$b4a036af3fc0b032(date, calendar) {
|
|
502
|
+
if ((0, $ad063034c8620db8$export$dbc69fd56b53d5e)(date.calendar, calendar)) return date;
|
|
503
|
+
let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
|
|
504
|
+
let copy = date.copy();
|
|
505
|
+
copy.calendar = calendar;
|
|
506
|
+
copy.era = calendarDate.era;
|
|
507
|
+
copy.year = calendarDate.year;
|
|
508
|
+
copy.month = calendarDate.month;
|
|
509
|
+
copy.day = calendarDate.day;
|
|
510
|
+
(0, $435a2ceaa8778ed8$export$c4e2ecac49351ef2)(copy);
|
|
511
|
+
return copy;
|
|
512
|
+
}
|
|
513
|
+
function $d07e34cce18680fd$export$84c95a83c799e074(date, timeZone, disambiguation) {
|
|
514
|
+
if (date instanceof (0, $2aaf608024c21ca1$export$d3b7288e7994edea)) {
|
|
515
|
+
if (date.timeZone === timeZone) return date;
|
|
516
|
+
return $d07e34cce18680fd$export$538b00033cc11c75(date, timeZone);
|
|
517
|
+
}
|
|
518
|
+
let ms = $d07e34cce18680fd$export$5107c82f94518f5c(date, timeZone, disambiguation);
|
|
519
|
+
return $d07e34cce18680fd$export$1b96692a1ba042ac(ms, timeZone);
|
|
520
|
+
}
|
|
521
|
+
function $d07e34cce18680fd$export$83aac07b4c37b25(date) {
|
|
522
|
+
let ms = $d07e34cce18680fd$export$bd4fb2bc8bb06fb(date) - date.offset;
|
|
523
|
+
return new Date(ms);
|
|
524
|
+
}
|
|
525
|
+
function $d07e34cce18680fd$export$538b00033cc11c75(date, timeZone) {
|
|
526
|
+
let ms = $d07e34cce18680fd$export$bd4fb2bc8bb06fb(date) - date.offset;
|
|
527
|
+
return $d07e34cce18680fd$export$b4a036af3fc0b032($d07e34cce18680fd$export$1b96692a1ba042ac(ms, timeZone), date.calendar);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
// node_modules/@internationalized/date/dist/private/manipulation.mjs
|
|
531
|
+
var $435a2ceaa8778ed8$var$ONE_HOUR = 36e5;
|
|
532
|
+
function $435a2ceaa8778ed8$export$e16d8520af44a096(date, duration) {
|
|
533
|
+
let mutableDate = date.copy();
|
|
534
|
+
let days = "hour" in mutableDate ? $435a2ceaa8778ed8$var$addTimeFields(mutableDate, duration) : 0;
|
|
535
|
+
$435a2ceaa8778ed8$var$addYears(mutableDate, duration.years || 0);
|
|
536
|
+
if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);
|
|
537
|
+
mutableDate.month += duration.months || 0;
|
|
538
|
+
$435a2ceaa8778ed8$var$balanceYearMonth(mutableDate);
|
|
539
|
+
$435a2ceaa8778ed8$var$constrainMonthDay(mutableDate);
|
|
540
|
+
mutableDate.day += (duration.weeks || 0) * 7;
|
|
541
|
+
mutableDate.day += duration.days || 0;
|
|
542
|
+
mutableDate.day += days;
|
|
543
|
+
$435a2ceaa8778ed8$var$balanceDay(mutableDate);
|
|
544
|
+
if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);
|
|
545
|
+
if (mutableDate.year < 1) {
|
|
546
|
+
mutableDate.year = 1;
|
|
547
|
+
mutableDate.month = 1;
|
|
548
|
+
mutableDate.day = 1;
|
|
549
|
+
}
|
|
550
|
+
let maxYear = mutableDate.calendar.getYearsInEra(mutableDate);
|
|
551
|
+
if (mutableDate.year > maxYear) {
|
|
552
|
+
let isInverseEra = mutableDate.calendar.isInverseEra?.(mutableDate);
|
|
553
|
+
mutableDate.year = maxYear;
|
|
554
|
+
mutableDate.month = isInverseEra ? 1 : mutableDate.calendar.getMonthsInYear(mutableDate);
|
|
555
|
+
mutableDate.day = isInverseEra ? 1 : mutableDate.calendar.getDaysInMonth(mutableDate);
|
|
556
|
+
}
|
|
557
|
+
if (mutableDate.month < 1) {
|
|
558
|
+
mutableDate.month = 1;
|
|
559
|
+
mutableDate.day = 1;
|
|
560
|
+
}
|
|
561
|
+
let maxMonth = mutableDate.calendar.getMonthsInYear(mutableDate);
|
|
562
|
+
if (mutableDate.month > maxMonth) {
|
|
563
|
+
mutableDate.month = maxMonth;
|
|
564
|
+
mutableDate.day = mutableDate.calendar.getDaysInMonth(mutableDate);
|
|
565
|
+
}
|
|
566
|
+
mutableDate.day = Math.max(1, Math.min(mutableDate.calendar.getDaysInMonth(mutableDate), mutableDate.day));
|
|
567
|
+
return mutableDate;
|
|
568
|
+
}
|
|
569
|
+
function $435a2ceaa8778ed8$var$addYears(date, years) {
|
|
570
|
+
if (date.calendar.isInverseEra?.(date)) years = -years;
|
|
571
|
+
date.year += years;
|
|
572
|
+
}
|
|
573
|
+
function $435a2ceaa8778ed8$var$balanceYearMonth(date) {
|
|
574
|
+
while (date.month < 1) {
|
|
575
|
+
$435a2ceaa8778ed8$var$addYears(date, -1);
|
|
576
|
+
date.month += date.calendar.getMonthsInYear(date);
|
|
577
|
+
}
|
|
578
|
+
let monthsInYear = 0;
|
|
579
|
+
while (date.month > (monthsInYear = date.calendar.getMonthsInYear(date))) {
|
|
580
|
+
date.month -= monthsInYear;
|
|
581
|
+
$435a2ceaa8778ed8$var$addYears(date, 1);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
function $435a2ceaa8778ed8$var$balanceDay(date) {
|
|
585
|
+
while (date.day < 1) {
|
|
586
|
+
date.month--;
|
|
587
|
+
$435a2ceaa8778ed8$var$balanceYearMonth(date);
|
|
588
|
+
date.day += date.calendar.getDaysInMonth(date);
|
|
589
|
+
}
|
|
590
|
+
while (date.day > date.calendar.getDaysInMonth(date)) {
|
|
591
|
+
date.day -= date.calendar.getDaysInMonth(date);
|
|
592
|
+
date.month++;
|
|
593
|
+
$435a2ceaa8778ed8$var$balanceYearMonth(date);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
function $435a2ceaa8778ed8$var$constrainMonthDay(date) {
|
|
597
|
+
date.month = Math.max(1, Math.min(date.calendar.getMonthsInYear(date), date.month));
|
|
598
|
+
date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
|
|
599
|
+
}
|
|
600
|
+
function $435a2ceaa8778ed8$export$c4e2ecac49351ef2(date) {
|
|
601
|
+
if (date.calendar.constrainDate) date.calendar.constrainDate(date);
|
|
602
|
+
date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
|
|
603
|
+
$435a2ceaa8778ed8$var$constrainMonthDay(date);
|
|
604
|
+
}
|
|
605
|
+
function $435a2ceaa8778ed8$export$3e2544e88a25bff8(duration) {
|
|
606
|
+
let inverseDuration = {};
|
|
607
|
+
for (let key in duration) if (typeof duration[key] === "number") inverseDuration[key] = -duration[key];
|
|
608
|
+
return inverseDuration;
|
|
609
|
+
}
|
|
610
|
+
function $435a2ceaa8778ed8$export$4e2d2ead65e5f7e3(date, duration) {
|
|
611
|
+
return $435a2ceaa8778ed8$export$e16d8520af44a096(date, $435a2ceaa8778ed8$export$3e2544e88a25bff8(duration));
|
|
612
|
+
}
|
|
613
|
+
function $435a2ceaa8778ed8$export$adaa4cf7ef1b65be(date, fields) {
|
|
614
|
+
let mutableDate = date.copy();
|
|
615
|
+
if (fields.era != null) mutableDate.era = fields.era;
|
|
616
|
+
if (fields.year != null) mutableDate.year = fields.year;
|
|
617
|
+
if (fields.month != null) mutableDate.month = fields.month;
|
|
618
|
+
if (fields.day != null) mutableDate.day = fields.day;
|
|
619
|
+
$435a2ceaa8778ed8$export$c4e2ecac49351ef2(mutableDate);
|
|
620
|
+
return mutableDate;
|
|
621
|
+
}
|
|
622
|
+
function $435a2ceaa8778ed8$export$e5d5e1c1822b6e56(value, fields) {
|
|
623
|
+
let mutableValue = value.copy();
|
|
624
|
+
if (fields.hour != null) mutableValue.hour = fields.hour;
|
|
625
|
+
if (fields.minute != null) mutableValue.minute = fields.minute;
|
|
626
|
+
if (fields.second != null) mutableValue.second = fields.second;
|
|
627
|
+
if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
|
|
628
|
+
$435a2ceaa8778ed8$export$7555de1e070510cb(mutableValue);
|
|
629
|
+
return mutableValue;
|
|
630
|
+
}
|
|
631
|
+
function $435a2ceaa8778ed8$var$balanceTime(time) {
|
|
632
|
+
time.second += Math.floor(time.millisecond / 1e3);
|
|
633
|
+
time.millisecond = $435a2ceaa8778ed8$var$nonNegativeMod(time.millisecond, 1e3);
|
|
634
|
+
time.minute += Math.floor(time.second / 60);
|
|
635
|
+
time.second = $435a2ceaa8778ed8$var$nonNegativeMod(time.second, 60);
|
|
636
|
+
time.hour += Math.floor(time.minute / 60);
|
|
637
|
+
time.minute = $435a2ceaa8778ed8$var$nonNegativeMod(time.minute, 60);
|
|
638
|
+
let days = Math.floor(time.hour / 24);
|
|
639
|
+
time.hour = $435a2ceaa8778ed8$var$nonNegativeMod(time.hour, 24);
|
|
640
|
+
return days;
|
|
641
|
+
}
|
|
642
|
+
function $435a2ceaa8778ed8$export$7555de1e070510cb(time) {
|
|
643
|
+
time.millisecond = Math.max(0, Math.min(time.millisecond, 1e3));
|
|
644
|
+
time.second = Math.max(0, Math.min(time.second, 59));
|
|
645
|
+
time.minute = Math.max(0, Math.min(time.minute, 59));
|
|
646
|
+
time.hour = Math.max(0, Math.min(time.hour, 23));
|
|
647
|
+
}
|
|
648
|
+
function $435a2ceaa8778ed8$var$nonNegativeMod(a, b) {
|
|
649
|
+
let result = a % b;
|
|
650
|
+
if (result < 0) result += b;
|
|
651
|
+
return result;
|
|
652
|
+
}
|
|
653
|
+
function $435a2ceaa8778ed8$var$addTimeFields(time, duration) {
|
|
654
|
+
time.hour += duration.hours || 0;
|
|
655
|
+
time.minute += duration.minutes || 0;
|
|
656
|
+
time.second += duration.seconds || 0;
|
|
657
|
+
time.millisecond += duration.milliseconds || 0;
|
|
658
|
+
return $435a2ceaa8778ed8$var$balanceTime(time);
|
|
659
|
+
}
|
|
660
|
+
function $435a2ceaa8778ed8$export$7ed87b6bc2506470(time, duration) {
|
|
661
|
+
let res = time.copy();
|
|
662
|
+
$435a2ceaa8778ed8$var$addTimeFields(res, duration);
|
|
663
|
+
return res;
|
|
664
|
+
}
|
|
665
|
+
function $435a2ceaa8778ed8$export$fe34d3a381cd7501(time, duration) {
|
|
666
|
+
return $435a2ceaa8778ed8$export$7ed87b6bc2506470(time, $435a2ceaa8778ed8$export$3e2544e88a25bff8(duration));
|
|
667
|
+
}
|
|
668
|
+
function $435a2ceaa8778ed8$export$d52ced6badfb9a4c(value, field, amount, options) {
|
|
669
|
+
let mutable = value.copy();
|
|
670
|
+
switch (field) {
|
|
671
|
+
case "era": {
|
|
672
|
+
let eras = value.calendar.getEras();
|
|
673
|
+
let eraIndex = eras.indexOf(value.era);
|
|
674
|
+
if (eraIndex < 0) throw new Error("Invalid era: " + value.era);
|
|
675
|
+
eraIndex = $435a2ceaa8778ed8$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options?.round);
|
|
676
|
+
mutable.era = eras[eraIndex];
|
|
677
|
+
$435a2ceaa8778ed8$export$c4e2ecac49351ef2(mutable);
|
|
678
|
+
break;
|
|
679
|
+
}
|
|
680
|
+
case "year":
|
|
681
|
+
if (mutable.calendar.isInverseEra?.(mutable)) amount = -amount;
|
|
682
|
+
mutable.year = $435a2ceaa8778ed8$var$cycleValue(value.year, amount, -Infinity, 9999, options?.round);
|
|
683
|
+
if (mutable.year === -Infinity) mutable.year = 1;
|
|
684
|
+
if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);
|
|
685
|
+
break;
|
|
686
|
+
case "month":
|
|
687
|
+
mutable.month = $435a2ceaa8778ed8$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options?.round);
|
|
688
|
+
break;
|
|
689
|
+
case "day":
|
|
690
|
+
mutable.day = $435a2ceaa8778ed8$var$cycleValue(value.day, amount, 1, value.calendar.getDaysInMonth(value), options?.round);
|
|
691
|
+
break;
|
|
692
|
+
default:
|
|
693
|
+
throw new Error("Unsupported field " + field);
|
|
694
|
+
}
|
|
695
|
+
if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);
|
|
696
|
+
$435a2ceaa8778ed8$export$c4e2ecac49351ef2(mutable);
|
|
697
|
+
return mutable;
|
|
698
|
+
}
|
|
699
|
+
function $435a2ceaa8778ed8$export$dd02b3e0007dfe28(value, field, amount, options) {
|
|
700
|
+
let mutable = value.copy();
|
|
701
|
+
switch (field) {
|
|
702
|
+
case "hour": {
|
|
703
|
+
let hours = value.hour;
|
|
704
|
+
let min = 0;
|
|
705
|
+
let max = 23;
|
|
706
|
+
if (options?.hourCycle === 12) {
|
|
707
|
+
let isPM = hours >= 12;
|
|
708
|
+
min = isPM ? 12 : 0;
|
|
709
|
+
max = isPM ? 23 : 11;
|
|
710
|
+
}
|
|
711
|
+
mutable.hour = $435a2ceaa8778ed8$var$cycleValue(hours, amount, min, max, options?.round);
|
|
712
|
+
break;
|
|
713
|
+
}
|
|
714
|
+
case "minute":
|
|
715
|
+
mutable.minute = $435a2ceaa8778ed8$var$cycleValue(value.minute, amount, 0, 59, options?.round);
|
|
716
|
+
break;
|
|
717
|
+
case "second":
|
|
718
|
+
mutable.second = $435a2ceaa8778ed8$var$cycleValue(value.second, amount, 0, 59, options?.round);
|
|
719
|
+
break;
|
|
720
|
+
case "millisecond":
|
|
721
|
+
mutable.millisecond = $435a2ceaa8778ed8$var$cycleValue(value.millisecond, amount, 0, 999, options?.round);
|
|
722
|
+
break;
|
|
723
|
+
default:
|
|
724
|
+
throw new Error("Unsupported field " + field);
|
|
725
|
+
}
|
|
726
|
+
return mutable;
|
|
727
|
+
}
|
|
728
|
+
function $435a2ceaa8778ed8$var$cycleValue(value, amount, min, max, round = false) {
|
|
729
|
+
if (round) {
|
|
730
|
+
value += Math.sign(amount);
|
|
731
|
+
if (value < min) value = max;
|
|
732
|
+
let div = Math.abs(amount);
|
|
733
|
+
if (amount > 0) value = Math.ceil(value / div) * div;
|
|
734
|
+
else value = Math.floor(value / div) * div;
|
|
735
|
+
if (value > max) value = min;
|
|
736
|
+
} else {
|
|
737
|
+
value += amount;
|
|
738
|
+
if (value < min) value = max - (min - value - 1);
|
|
739
|
+
else if (value > max) value = min + (value - max - 1);
|
|
740
|
+
}
|
|
741
|
+
return value;
|
|
742
|
+
}
|
|
743
|
+
function $435a2ceaa8778ed8$export$96b1d28349274637(dateTime, duration) {
|
|
744
|
+
let ms;
|
|
745
|
+
if (duration.years != null && duration.years !== 0 || duration.months != null && duration.months !== 0 || duration.weeks != null && duration.weeks !== 0 || duration.days != null && duration.days !== 0) {
|
|
746
|
+
let res2 = $435a2ceaa8778ed8$export$e16d8520af44a096((0, $d07e34cce18680fd$export$b21e0b124e224484)(dateTime), {
|
|
747
|
+
years: duration.years,
|
|
748
|
+
months: duration.months,
|
|
749
|
+
weeks: duration.weeks,
|
|
750
|
+
days: duration.days
|
|
751
|
+
});
|
|
752
|
+
ms = (0, $d07e34cce18680fd$export$5107c82f94518f5c)(res2, dateTime.timeZone);
|
|
753
|
+
} else
|
|
754
|
+
ms = (0, $d07e34cce18680fd$export$bd4fb2bc8bb06fb)(dateTime) - dateTime.offset;
|
|
755
|
+
ms += duration.milliseconds || 0;
|
|
756
|
+
ms += (duration.seconds || 0) * 1e3;
|
|
757
|
+
ms += (duration.minutes || 0) * 6e4;
|
|
758
|
+
ms += (duration.hours || 0) * 36e5;
|
|
759
|
+
let res = (0, $d07e34cce18680fd$export$1b96692a1ba042ac)(ms, dateTime.timeZone);
|
|
760
|
+
return (0, $d07e34cce18680fd$export$b4a036af3fc0b032)(res, dateTime.calendar);
|
|
761
|
+
}
|
|
762
|
+
function $435a2ceaa8778ed8$export$6814caac34ca03c7(dateTime, duration) {
|
|
763
|
+
return $435a2ceaa8778ed8$export$96b1d28349274637(dateTime, $435a2ceaa8778ed8$export$3e2544e88a25bff8(duration));
|
|
764
|
+
}
|
|
765
|
+
function $435a2ceaa8778ed8$export$9a297d111fc86b79(dateTime, field, amount, options) {
|
|
766
|
+
switch (field) {
|
|
767
|
+
case "hour": {
|
|
768
|
+
let min = 0;
|
|
769
|
+
let max = 23;
|
|
770
|
+
if (options?.hourCycle === 12) {
|
|
771
|
+
let isPM = dateTime.hour >= 12;
|
|
772
|
+
min = isPM ? 12 : 0;
|
|
773
|
+
max = isPM ? 23 : 11;
|
|
774
|
+
}
|
|
775
|
+
let plainDateTime = (0, $d07e34cce18680fd$export$b21e0b124e224484)(dateTime);
|
|
776
|
+
let minDate = (0, $d07e34cce18680fd$export$b4a036af3fc0b032)($435a2ceaa8778ed8$export$e5d5e1c1822b6e56(plainDateTime, {
|
|
777
|
+
hour: min
|
|
778
|
+
}), new (0, $93635573935797de$export$80ee6245ec4f29ec)());
|
|
779
|
+
let minAbsolute = [
|
|
780
|
+
(0, $d07e34cce18680fd$export$5107c82f94518f5c)(minDate, dateTime.timeZone, "earlier"),
|
|
781
|
+
(0, $d07e34cce18680fd$export$5107c82f94518f5c)(minDate, dateTime.timeZone, "later")
|
|
782
|
+
].filter((ms2) => (0, $d07e34cce18680fd$export$1b96692a1ba042ac)(ms2, dateTime.timeZone).day === minDate.day)[0];
|
|
783
|
+
let maxDate = (0, $d07e34cce18680fd$export$b4a036af3fc0b032)($435a2ceaa8778ed8$export$e5d5e1c1822b6e56(plainDateTime, {
|
|
784
|
+
hour: max
|
|
785
|
+
}), new (0, $93635573935797de$export$80ee6245ec4f29ec)());
|
|
786
|
+
let maxAbsolute = [
|
|
787
|
+
(0, $d07e34cce18680fd$export$5107c82f94518f5c)(maxDate, dateTime.timeZone, "earlier"),
|
|
788
|
+
(0, $d07e34cce18680fd$export$5107c82f94518f5c)(maxDate, dateTime.timeZone, "later")
|
|
789
|
+
].filter((ms2) => (0, $d07e34cce18680fd$export$1b96692a1ba042ac)(ms2, dateTime.timeZone).day === maxDate.day).pop();
|
|
790
|
+
let ms = (0, $d07e34cce18680fd$export$bd4fb2bc8bb06fb)(dateTime) - dateTime.offset;
|
|
791
|
+
let hours = Math.floor(ms / $435a2ceaa8778ed8$var$ONE_HOUR);
|
|
792
|
+
let remainder = ms % $435a2ceaa8778ed8$var$ONE_HOUR;
|
|
793
|
+
ms = $435a2ceaa8778ed8$var$cycleValue(hours, amount, Math.floor(minAbsolute / $435a2ceaa8778ed8$var$ONE_HOUR), Math.floor(maxAbsolute / $435a2ceaa8778ed8$var$ONE_HOUR), options?.round) * $435a2ceaa8778ed8$var$ONE_HOUR + remainder;
|
|
794
|
+
return (0, $d07e34cce18680fd$export$b4a036af3fc0b032)((0, $d07e34cce18680fd$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);
|
|
795
|
+
}
|
|
796
|
+
case "minute":
|
|
797
|
+
case "second":
|
|
798
|
+
case "millisecond":
|
|
799
|
+
return $435a2ceaa8778ed8$export$dd02b3e0007dfe28(dateTime, field, amount, options);
|
|
800
|
+
case "era":
|
|
801
|
+
case "year":
|
|
802
|
+
case "month":
|
|
803
|
+
case "day": {
|
|
804
|
+
let res = $435a2ceaa8778ed8$export$d52ced6badfb9a4c((0, $d07e34cce18680fd$export$b21e0b124e224484)(dateTime), field, amount, options);
|
|
805
|
+
let ms = (0, $d07e34cce18680fd$export$5107c82f94518f5c)(res, dateTime.timeZone);
|
|
806
|
+
return (0, $d07e34cce18680fd$export$b4a036af3fc0b032)((0, $d07e34cce18680fd$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);
|
|
807
|
+
}
|
|
808
|
+
default:
|
|
809
|
+
throw new Error("Unsupported field " + field);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
function $435a2ceaa8778ed8$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
|
|
813
|
+
let plainDateTime = (0, $d07e34cce18680fd$export$b21e0b124e224484)(dateTime);
|
|
814
|
+
let res = $435a2ceaa8778ed8$export$e5d5e1c1822b6e56($435a2ceaa8778ed8$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
|
|
815
|
+
if (res.compare(plainDateTime) === 0) return dateTime;
|
|
816
|
+
let ms = (0, $d07e34cce18680fd$export$5107c82f94518f5c)(res, dateTime.timeZone, disambiguation);
|
|
817
|
+
return (0, $d07e34cce18680fd$export$b4a036af3fc0b032)((0, $d07e34cce18680fd$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
// node_modules/@internationalized/date/dist/private/CalendarDate.mjs
|
|
821
|
+
function $2aaf608024c21ca1$var$shiftArgs(args) {
|
|
822
|
+
let calendar = typeof args[0] === "object" ? args.shift() : new (0, $93635573935797de$export$80ee6245ec4f29ec)();
|
|
823
|
+
let era;
|
|
824
|
+
if (typeof args[0] === "string") era = args.shift();
|
|
825
|
+
else {
|
|
826
|
+
let eras = calendar.getEras();
|
|
827
|
+
era = eras[eras.length - 1];
|
|
828
|
+
}
|
|
829
|
+
let year = args.shift();
|
|
830
|
+
let month = args.shift();
|
|
831
|
+
let day = args.shift();
|
|
832
|
+
return [
|
|
833
|
+
calendar,
|
|
834
|
+
era,
|
|
835
|
+
year,
|
|
836
|
+
month,
|
|
837
|
+
day
|
|
838
|
+
];
|
|
839
|
+
}
|
|
840
|
+
var $2aaf608024c21ca1$export$99faa760c7908e4f = class _$2aaf608024c21ca1$export$99faa760c7908e4f {
|
|
841
|
+
// This prevents TypeScript from allowing other types with the same fields to match.
|
|
842
|
+
// i.e. a ZonedDateTime should not be be passable to a parameter that expects CalendarDate.
|
|
843
|
+
// If that behavior is desired, use the AnyCalendarDate interface instead.
|
|
844
|
+
// @ts-ignore
|
|
845
|
+
#type;
|
|
846
|
+
constructor(...args) {
|
|
847
|
+
let [calendar, era, year, month, day] = $2aaf608024c21ca1$var$shiftArgs(args);
|
|
848
|
+
this.calendar = calendar;
|
|
849
|
+
this.era = era;
|
|
850
|
+
this.year = year;
|
|
851
|
+
this.month = month;
|
|
852
|
+
this.day = day;
|
|
853
|
+
(0, $435a2ceaa8778ed8$export$c4e2ecac49351ef2)(this);
|
|
854
|
+
}
|
|
855
|
+
/** Returns a copy of this date. */
|
|
856
|
+
copy() {
|
|
857
|
+
if (this.era) return new _$2aaf608024c21ca1$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
|
|
858
|
+
else return new _$2aaf608024c21ca1$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
|
|
859
|
+
}
|
|
860
|
+
/** Returns a new `CalendarDate` with the given duration added to it. */
|
|
861
|
+
add(duration) {
|
|
862
|
+
return (0, $435a2ceaa8778ed8$export$e16d8520af44a096)(this, duration);
|
|
863
|
+
}
|
|
864
|
+
/** Returns a new `CalendarDate` with the given duration subtracted from it. */
|
|
865
|
+
subtract(duration) {
|
|
866
|
+
return (0, $435a2ceaa8778ed8$export$4e2d2ead65e5f7e3)(this, duration);
|
|
867
|
+
}
|
|
868
|
+
/** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */
|
|
869
|
+
set(fields) {
|
|
870
|
+
return (0, $435a2ceaa8778ed8$export$adaa4cf7ef1b65be)(this, fields);
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* Returns a new `CalendarDate` with the given field adjusted by a specified amount.
|
|
874
|
+
* When the resulting value reaches the limits of the field, it wraps around.
|
|
875
|
+
*/
|
|
876
|
+
cycle(field, amount, options) {
|
|
877
|
+
return (0, $435a2ceaa8778ed8$export$d52ced6badfb9a4c)(this, field, amount, options);
|
|
878
|
+
}
|
|
879
|
+
/** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */
|
|
880
|
+
toDate(timeZone) {
|
|
881
|
+
return (0, $d07e34cce18680fd$export$e67a095c620b86fe)(this, timeZone);
|
|
882
|
+
}
|
|
883
|
+
/** Converts the date to an ISO 8601 formatted string. */
|
|
884
|
+
toString() {
|
|
885
|
+
return (0, $58246871e4652552$export$60dfd74aa96791bd)(this);
|
|
886
|
+
}
|
|
887
|
+
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
|
|
888
|
+
compare(b) {
|
|
889
|
+
return (0, $ad063034c8620db8$export$68781ddf31c0090f)(this, b);
|
|
890
|
+
}
|
|
891
|
+
};
|
|
892
|
+
var $2aaf608024c21ca1$export$680ea196effce5f = class _$2aaf608024c21ca1$export$680ea196effce5f {
|
|
893
|
+
// This prevents TypeScript from allowing other types with the same fields to match.
|
|
894
|
+
// @ts-ignore
|
|
895
|
+
#type;
|
|
896
|
+
constructor(hour = 0, minute = 0, second = 0, millisecond = 0) {
|
|
897
|
+
this.hour = hour;
|
|
898
|
+
this.minute = minute;
|
|
899
|
+
this.second = second;
|
|
900
|
+
this.millisecond = millisecond;
|
|
901
|
+
(0, $435a2ceaa8778ed8$export$7555de1e070510cb)(this);
|
|
902
|
+
}
|
|
903
|
+
/** Returns a copy of this time. */
|
|
904
|
+
copy() {
|
|
905
|
+
return new _$2aaf608024c21ca1$export$680ea196effce5f(this.hour, this.minute, this.second, this.millisecond);
|
|
906
|
+
}
|
|
907
|
+
/** Returns a new `Time` with the given duration added to it. */
|
|
908
|
+
add(duration) {
|
|
909
|
+
return (0, $435a2ceaa8778ed8$export$7ed87b6bc2506470)(this, duration);
|
|
910
|
+
}
|
|
911
|
+
/** Returns a new `Time` with the given duration subtracted from it. */
|
|
912
|
+
subtract(duration) {
|
|
913
|
+
return (0, $435a2ceaa8778ed8$export$fe34d3a381cd7501)(this, duration);
|
|
914
|
+
}
|
|
915
|
+
/** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */
|
|
916
|
+
set(fields) {
|
|
917
|
+
return (0, $435a2ceaa8778ed8$export$e5d5e1c1822b6e56)(this, fields);
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* Returns a new `Time` with the given field adjusted by a specified amount.
|
|
921
|
+
* When the resulting value reaches the limits of the field, it wraps around.
|
|
922
|
+
*/
|
|
923
|
+
cycle(field, amount, options) {
|
|
924
|
+
return (0, $435a2ceaa8778ed8$export$dd02b3e0007dfe28)(this, field, amount, options);
|
|
925
|
+
}
|
|
926
|
+
/** Converts the time to an ISO 8601 formatted string. */
|
|
927
|
+
toString() {
|
|
928
|
+
return (0, $58246871e4652552$export$f59dee82248f5ad4)(this);
|
|
929
|
+
}
|
|
930
|
+
/** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */
|
|
931
|
+
compare(b) {
|
|
932
|
+
return (0, $ad063034c8620db8$export$c19a80a9721b80f6)(this, b);
|
|
933
|
+
}
|
|
934
|
+
};
|
|
935
|
+
var $2aaf608024c21ca1$export$ca871e8dbb80966f = class _$2aaf608024c21ca1$export$ca871e8dbb80966f {
|
|
936
|
+
// This prevents TypeScript from allowing other types with the same fields to match.
|
|
937
|
+
// @ts-ignore
|
|
938
|
+
#type;
|
|
939
|
+
constructor(...args) {
|
|
940
|
+
let [calendar, era, year, month, day] = $2aaf608024c21ca1$var$shiftArgs(args);
|
|
941
|
+
this.calendar = calendar;
|
|
942
|
+
this.era = era;
|
|
943
|
+
this.year = year;
|
|
944
|
+
this.month = month;
|
|
945
|
+
this.day = day;
|
|
946
|
+
this.hour = args.shift() || 0;
|
|
947
|
+
this.minute = args.shift() || 0;
|
|
948
|
+
this.second = args.shift() || 0;
|
|
949
|
+
this.millisecond = args.shift() || 0;
|
|
950
|
+
(0, $435a2ceaa8778ed8$export$c4e2ecac49351ef2)(this);
|
|
951
|
+
}
|
|
952
|
+
/** Returns a copy of this date. */
|
|
953
|
+
copy() {
|
|
954
|
+
if (this.era) return new _$2aaf608024c21ca1$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
955
|
+
else return new _$2aaf608024c21ca1$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
|
|
956
|
+
}
|
|
957
|
+
/** Returns a new `CalendarDateTime` with the given duration added to it. */
|
|
958
|
+
add(duration) {
|
|
959
|
+
return (0, $435a2ceaa8778ed8$export$e16d8520af44a096)(this, duration);
|
|
960
|
+
}
|
|
961
|
+
/** Returns a new `CalendarDateTime` with the given duration subtracted from it. */
|
|
962
|
+
subtract(duration) {
|
|
963
|
+
return (0, $435a2ceaa8778ed8$export$4e2d2ead65e5f7e3)(this, duration);
|
|
964
|
+
}
|
|
965
|
+
/** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
|
|
966
|
+
set(fields) {
|
|
967
|
+
return (0, $435a2ceaa8778ed8$export$adaa4cf7ef1b65be)((0, $435a2ceaa8778ed8$export$e5d5e1c1822b6e56)(this, fields), fields);
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.
|
|
971
|
+
* When the resulting value reaches the limits of the field, it wraps around.
|
|
972
|
+
*/
|
|
973
|
+
cycle(field, amount, options) {
|
|
974
|
+
switch (field) {
|
|
975
|
+
case "era":
|
|
976
|
+
case "year":
|
|
977
|
+
case "month":
|
|
978
|
+
case "day":
|
|
979
|
+
return (0, $435a2ceaa8778ed8$export$d52ced6badfb9a4c)(this, field, amount, options);
|
|
980
|
+
default:
|
|
981
|
+
return (0, $435a2ceaa8778ed8$export$dd02b3e0007dfe28)(this, field, amount, options);
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
/** Converts the date to a native JavaScript Date object in the given time zone. */
|
|
985
|
+
toDate(timeZone, disambiguation) {
|
|
986
|
+
return (0, $d07e34cce18680fd$export$e67a095c620b86fe)(this, timeZone, disambiguation);
|
|
987
|
+
}
|
|
988
|
+
/** Converts the date to an ISO 8601 formatted string. */
|
|
989
|
+
toString() {
|
|
990
|
+
return (0, $58246871e4652552$export$4223de14708adc63)(this);
|
|
991
|
+
}
|
|
992
|
+
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
|
|
993
|
+
compare(b) {
|
|
994
|
+
let res = (0, $ad063034c8620db8$export$68781ddf31c0090f)(this, b);
|
|
995
|
+
if (res === 0) return (0, $ad063034c8620db8$export$c19a80a9721b80f6)(this, (0, $d07e34cce18680fd$export$b21e0b124e224484)(b));
|
|
996
|
+
return res;
|
|
997
|
+
}
|
|
998
|
+
};
|
|
999
|
+
var $2aaf608024c21ca1$export$d3b7288e7994edea = class _$2aaf608024c21ca1$export$d3b7288e7994edea {
|
|
1000
|
+
// This prevents TypeScript from allowing other types with the same fields to match.
|
|
1001
|
+
// @ts-ignore
|
|
1002
|
+
#type;
|
|
1003
|
+
constructor(...args) {
|
|
1004
|
+
let [calendar, era, year, month, day] = $2aaf608024c21ca1$var$shiftArgs(args);
|
|
1005
|
+
let timeZone = args.shift();
|
|
1006
|
+
let offset = args.shift();
|
|
1007
|
+
this.calendar = calendar;
|
|
1008
|
+
this.era = era;
|
|
1009
|
+
this.year = year;
|
|
1010
|
+
this.month = month;
|
|
1011
|
+
this.day = day;
|
|
1012
|
+
this.timeZone = timeZone;
|
|
1013
|
+
this.offset = offset;
|
|
1014
|
+
this.hour = args.shift() || 0;
|
|
1015
|
+
this.minute = args.shift() || 0;
|
|
1016
|
+
this.second = args.shift() || 0;
|
|
1017
|
+
this.millisecond = args.shift() || 0;
|
|
1018
|
+
(0, $435a2ceaa8778ed8$export$c4e2ecac49351ef2)(this);
|
|
1019
|
+
}
|
|
1020
|
+
/** Returns a copy of this date. */
|
|
1021
|
+
copy() {
|
|
1022
|
+
if (this.era) return new _$2aaf608024c21ca1$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
1023
|
+
else return new _$2aaf608024c21ca1$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
|
|
1024
|
+
}
|
|
1025
|
+
/** Returns a new `ZonedDateTime` with the given duration added to it. */
|
|
1026
|
+
add(duration) {
|
|
1027
|
+
return (0, $435a2ceaa8778ed8$export$96b1d28349274637)(this, duration);
|
|
1028
|
+
}
|
|
1029
|
+
/** Returns a new `ZonedDateTime` with the given duration subtracted from it. */
|
|
1030
|
+
subtract(duration) {
|
|
1031
|
+
return (0, $435a2ceaa8778ed8$export$6814caac34ca03c7)(this, duration);
|
|
1032
|
+
}
|
|
1033
|
+
/** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
|
|
1034
|
+
set(fields, disambiguation) {
|
|
1035
|
+
return (0, $435a2ceaa8778ed8$export$31b5430eb18be4f8)(this, fields, disambiguation);
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
|
|
1039
|
+
* When the resulting value reaches the limits of the field, it wraps around.
|
|
1040
|
+
*/
|
|
1041
|
+
cycle(field, amount, options) {
|
|
1042
|
+
return (0, $435a2ceaa8778ed8$export$9a297d111fc86b79)(this, field, amount, options);
|
|
1043
|
+
}
|
|
1044
|
+
/** Converts the date to a native JavaScript Date object. */
|
|
1045
|
+
toDate() {
|
|
1046
|
+
return (0, $d07e34cce18680fd$export$83aac07b4c37b25)(this);
|
|
1047
|
+
}
|
|
1048
|
+
/** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */
|
|
1049
|
+
toString() {
|
|
1050
|
+
return (0, $58246871e4652552$export$bf79f1ebf4b18792)(this);
|
|
1051
|
+
}
|
|
1052
|
+
/** Converts the date to an ISO 8601 formatted string in UTC. */
|
|
1053
|
+
toAbsoluteString() {
|
|
1054
|
+
return this.toDate().toISOString();
|
|
1055
|
+
}
|
|
1056
|
+
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
|
|
1057
|
+
compare(b) {
|
|
1058
|
+
return this.toDate().getTime() - (0, $d07e34cce18680fd$export$84c95a83c799e074)(b, this.timeZone).toDate().getTime();
|
|
1059
|
+
}
|
|
1060
|
+
};
|
|
1061
|
+
|
|
1062
|
+
// node_modules/@internationalized/date/dist/private/string.mjs
|
|
1063
|
+
var $58246871e4652552$var$TIME_RE = /^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;
|
|
1064
|
+
var $58246871e4652552$var$DATE_RE = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;
|
|
1065
|
+
var $58246871e4652552$var$ABSOLUTE_RE = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;
|
|
1066
|
+
var $58246871e4652552$var$requiredDurationTimeGroups = [
|
|
1067
|
+
"hours",
|
|
1068
|
+
"minutes",
|
|
1069
|
+
"seconds"
|
|
1070
|
+
];
|
|
1071
|
+
var $58246871e4652552$var$requiredDurationGroups = [
|
|
1072
|
+
"years",
|
|
1073
|
+
"months",
|
|
1074
|
+
"weeks",
|
|
1075
|
+
"days",
|
|
1076
|
+
...$58246871e4652552$var$requiredDurationTimeGroups
|
|
1077
|
+
];
|
|
1078
|
+
function $58246871e4652552$export$c9698ec7f05a07e1(value) {
|
|
1079
|
+
let m = value.match($58246871e4652552$var$TIME_RE);
|
|
1080
|
+
if (!m) throw new Error("Invalid ISO 8601 time string: " + value);
|
|
1081
|
+
return new (0, $2aaf608024c21ca1$export$680ea196effce5f)($58246871e4652552$var$parseNumber(m[1], 0, 23), m[2] ? $58246871e4652552$var$parseNumber(m[2], 0, 59) : 0, m[3] ? $58246871e4652552$var$parseNumber(m[3], 0, 59) : 0, m[4] ? $58246871e4652552$var$parseNumber(m[4], 0, Infinity) * 1e3 : 0);
|
|
1082
|
+
}
|
|
1083
|
+
function $58246871e4652552$export$6b862160d295c8e(value) {
|
|
1084
|
+
let m = value.match($58246871e4652552$var$DATE_RE);
|
|
1085
|
+
if (!m) {
|
|
1086
|
+
if ($58246871e4652552$var$ABSOLUTE_RE.test(value)) throw new Error(`Invalid ISO 8601 date string: ${value}. Use parseAbsolute() instead.`);
|
|
1087
|
+
throw new Error("Invalid ISO 8601 date string: " + value);
|
|
1088
|
+
}
|
|
1089
|
+
let date = new (0, $2aaf608024c21ca1$export$99faa760c7908e4f)($58246871e4652552$var$parseNumber(m[1], 0, 9999), $58246871e4652552$var$parseNumber(m[2], 1, 12), 1);
|
|
1090
|
+
date.day = $58246871e4652552$var$parseNumber(m[3], 1, date.calendar.getDaysInMonth(date));
|
|
1091
|
+
return date;
|
|
1092
|
+
}
|
|
1093
|
+
function $58246871e4652552$var$parseNumber(value, min, max) {
|
|
1094
|
+
let val = Number(value);
|
|
1095
|
+
if (val < min || val > max) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max}`);
|
|
1096
|
+
return val;
|
|
1097
|
+
}
|
|
1098
|
+
function $58246871e4652552$export$f59dee82248f5ad4(time) {
|
|
1099
|
+
return `${String(time.hour).padStart(2, "0")}:${String(time.minute).padStart(2, "0")}:${String(time.second).padStart(2, "0")}${time.millisecond ? String(time.millisecond / 1e3).slice(1) : ""}`;
|
|
1100
|
+
}
|
|
1101
|
+
function $58246871e4652552$export$60dfd74aa96791bd(date) {
|
|
1102
|
+
let gregorianDate = (0, $d07e34cce18680fd$export$b4a036af3fc0b032)(date, new (0, $93635573935797de$export$80ee6245ec4f29ec)());
|
|
1103
|
+
let year;
|
|
1104
|
+
if (gregorianDate.era === "BC") year = gregorianDate.year === 1 ? "0000" : "-" + String(Math.abs(1 - gregorianDate.year)).padStart(6, "00");
|
|
1105
|
+
else year = String(gregorianDate.year).padStart(4, "0");
|
|
1106
|
+
return `${year}-${String(gregorianDate.month).padStart(2, "0")}-${String(gregorianDate.day).padStart(2, "0")}`;
|
|
1107
|
+
}
|
|
1108
|
+
function $58246871e4652552$export$4223de14708adc63(date) {
|
|
1109
|
+
return `${$58246871e4652552$export$60dfd74aa96791bd(date)}T${$58246871e4652552$export$f59dee82248f5ad4(date)}`;
|
|
1110
|
+
}
|
|
1111
|
+
function $58246871e4652552$var$offsetToString(offset) {
|
|
1112
|
+
let sign = Math.sign(offset) < 0 ? "-" : "+";
|
|
1113
|
+
offset = Math.abs(offset);
|
|
1114
|
+
let offsetHours = Math.floor(offset / 36e5);
|
|
1115
|
+
let offsetMinutes = Math.floor(offset % 36e5 / 6e4);
|
|
1116
|
+
let offsetSeconds = Math.floor(offset % 36e5 % 6e4 / 1e3);
|
|
1117
|
+
let stringOffset = `${sign}${String(offsetHours).padStart(2, "0")}:${String(offsetMinutes).padStart(2, "0")}`;
|
|
1118
|
+
if (offsetSeconds !== 0) stringOffset += `:${String(offsetSeconds).padStart(2, "0")}`;
|
|
1119
|
+
return stringOffset;
|
|
1120
|
+
}
|
|
1121
|
+
function $58246871e4652552$export$bf79f1ebf4b18792(date) {
|
|
1122
|
+
return `${$58246871e4652552$export$4223de14708adc63(date)}${$58246871e4652552$var$offsetToString(date.offset)}[${date.timeZone}]`;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
// node_modules/@internationalized/date/dist/private/DateFormatter.mjs
|
|
1126
|
+
var $12a3c853105e5a70$var$formatterCache = /* @__PURE__ */ new Map();
|
|
1127
|
+
var $12a3c853105e5a70$export$ad991b66133851cf = class {
|
|
1128
|
+
constructor(locale, options = {}) {
|
|
1129
|
+
this.formatter = $12a3c853105e5a70$var$getCachedDateFormatter(locale, options);
|
|
1130
|
+
this.options = options;
|
|
1131
|
+
}
|
|
1132
|
+
/** Formats a date as a string according to the locale and format options passed to the constructor. */
|
|
1133
|
+
format(value) {
|
|
1134
|
+
return this.formatter.format(value);
|
|
1135
|
+
}
|
|
1136
|
+
/** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */
|
|
1137
|
+
formatToParts(value) {
|
|
1138
|
+
return this.formatter.formatToParts(value);
|
|
1139
|
+
}
|
|
1140
|
+
/** Formats a date range as a string. */
|
|
1141
|
+
formatRange(start, end) {
|
|
1142
|
+
if (typeof this.formatter.formatRange === "function")
|
|
1143
|
+
return this.formatter.formatRange(start, end);
|
|
1144
|
+
if (end < start) throw new RangeError("End date must be >= start date");
|
|
1145
|
+
return `${this.formatter.format(start)} \u2013 ${this.formatter.format(end)}`;
|
|
1146
|
+
}
|
|
1147
|
+
/** Formats a date range as an array of parts. */
|
|
1148
|
+
formatRangeToParts(start, end) {
|
|
1149
|
+
if (typeof this.formatter.formatRangeToParts === "function")
|
|
1150
|
+
return this.formatter.formatRangeToParts(start, end);
|
|
1151
|
+
if (end < start) throw new RangeError("End date must be >= start date");
|
|
1152
|
+
let startParts = this.formatter.formatToParts(start);
|
|
1153
|
+
let endParts = this.formatter.formatToParts(end);
|
|
1154
|
+
return [
|
|
1155
|
+
...startParts.map((p) => ({
|
|
1156
|
+
...p,
|
|
1157
|
+
source: "startRange"
|
|
1158
|
+
})),
|
|
1159
|
+
{
|
|
1160
|
+
type: "literal",
|
|
1161
|
+
value: " \u2013 ",
|
|
1162
|
+
source: "shared"
|
|
1163
|
+
},
|
|
1164
|
+
...endParts.map((p) => ({
|
|
1165
|
+
...p,
|
|
1166
|
+
source: "endRange"
|
|
1167
|
+
}))
|
|
1168
|
+
];
|
|
1169
|
+
}
|
|
1170
|
+
/** Returns the resolved formatting options based on the values passed to the constructor. */
|
|
1171
|
+
resolvedOptions() {
|
|
1172
|
+
let resolvedOptions = this.formatter.resolvedOptions();
|
|
1173
|
+
if ($12a3c853105e5a70$var$hasBuggyResolvedHourCycle()) {
|
|
1174
|
+
if (!this.resolvedHourCycle) this.resolvedHourCycle = $12a3c853105e5a70$var$getResolvedHourCycle(resolvedOptions.locale, this.options);
|
|
1175
|
+
resolvedOptions.hourCycle = this.resolvedHourCycle;
|
|
1176
|
+
resolvedOptions.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12";
|
|
1177
|
+
}
|
|
1178
|
+
if (resolvedOptions.calendar === "ethiopic-amete-alem") resolvedOptions.calendar = "ethioaa";
|
|
1179
|
+
return resolvedOptions;
|
|
1180
|
+
}
|
|
1181
|
+
};
|
|
1182
|
+
var $12a3c853105e5a70$var$hour12Preferences = {
|
|
1183
|
+
true: {
|
|
1184
|
+
// Only Japanese uses the h11 style for 12 hour time. All others use h12.
|
|
1185
|
+
ja: "h11"
|
|
1186
|
+
},
|
|
1187
|
+
false: {}
|
|
1188
|
+
};
|
|
1189
|
+
function $12a3c853105e5a70$var$getCachedDateFormatter(locale, options = {}) {
|
|
1190
|
+
if (typeof options.hour12 === "boolean" && $12a3c853105e5a70$var$hasBuggyHour12Behavior()) {
|
|
1191
|
+
options = {
|
|
1192
|
+
...options
|
|
1193
|
+
};
|
|
1194
|
+
let pref = $12a3c853105e5a70$var$hour12Preferences[String(options.hour12)][locale.split("-")[0]];
|
|
1195
|
+
let defaultHourCycle = options.hour12 ? "h12" : "h23";
|
|
1196
|
+
options.hourCycle = pref ?? defaultHourCycle;
|
|
1197
|
+
delete options.hour12;
|
|
1198
|
+
}
|
|
1199
|
+
let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
|
|
1200
|
+
if ($12a3c853105e5a70$var$formatterCache.has(cacheKey)) return $12a3c853105e5a70$var$formatterCache.get(cacheKey);
|
|
1201
|
+
let numberFormatter = new Intl.DateTimeFormat(locale, options);
|
|
1202
|
+
$12a3c853105e5a70$var$formatterCache.set(cacheKey, numberFormatter);
|
|
1203
|
+
return numberFormatter;
|
|
1204
|
+
}
|
|
1205
|
+
var $12a3c853105e5a70$var$_hasBuggyHour12Behavior = null;
|
|
1206
|
+
function $12a3c853105e5a70$var$hasBuggyHour12Behavior() {
|
|
1207
|
+
if ($12a3c853105e5a70$var$_hasBuggyHour12Behavior == null) $12a3c853105e5a70$var$_hasBuggyHour12Behavior = new Intl.DateTimeFormat("en-US", {
|
|
1208
|
+
hour: "numeric",
|
|
1209
|
+
hour12: false
|
|
1210
|
+
}).format(new Date(2020, 2, 3, 0)) === "24";
|
|
1211
|
+
return $12a3c853105e5a70$var$_hasBuggyHour12Behavior;
|
|
1212
|
+
}
|
|
1213
|
+
var $12a3c853105e5a70$var$_hasBuggyResolvedHourCycle = null;
|
|
1214
|
+
function $12a3c853105e5a70$var$hasBuggyResolvedHourCycle() {
|
|
1215
|
+
if ($12a3c853105e5a70$var$_hasBuggyResolvedHourCycle == null) $12a3c853105e5a70$var$_hasBuggyResolvedHourCycle = new Intl.DateTimeFormat("fr", {
|
|
1216
|
+
hour: "numeric",
|
|
1217
|
+
hour12: false
|
|
1218
|
+
}).resolvedOptions().hourCycle === "h12";
|
|
1219
|
+
return $12a3c853105e5a70$var$_hasBuggyResolvedHourCycle;
|
|
1220
|
+
}
|
|
1221
|
+
function $12a3c853105e5a70$var$getResolvedHourCycle(locale, options) {
|
|
1222
|
+
if (!options.timeStyle && !options.hour) return void 0;
|
|
1223
|
+
locale = locale.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, "");
|
|
1224
|
+
locale += (locale.includes("-u-") ? "" : "-u") + "-nu-latn";
|
|
1225
|
+
let formatter = $12a3c853105e5a70$var$getCachedDateFormatter(locale, {
|
|
1226
|
+
...options,
|
|
1227
|
+
timeZone: void 0
|
|
1228
|
+
// use local timezone
|
|
1229
|
+
});
|
|
1230
|
+
let min = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 0)).find((p) => p.type === "hour").value, 10);
|
|
1231
|
+
let max = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 23)).find((p) => p.type === "hour").value, 10);
|
|
1232
|
+
if (min === 0 && max === 23) return "h23";
|
|
1233
|
+
if (min === 24 && max === 23) return "h24";
|
|
1234
|
+
if (min === 0 && max === 11) return "h11";
|
|
1235
|
+
if (min === 12 && max === 11) return "h12";
|
|
1236
|
+
throw new Error("Unexpected hour cycle result");
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
export {
|
|
1240
|
+
$93635573935797de$export$80ee6245ec4f29ec,
|
|
1241
|
+
$ad063034c8620db8$export$ea39ec197993aef0,
|
|
1242
|
+
$ad063034c8620db8$export$91b62ebf2ba703ee,
|
|
1243
|
+
$ad063034c8620db8$export$dbc69fd56b53d5e,
|
|
1244
|
+
$ad063034c8620db8$export$2061056d06d7cdf7,
|
|
1245
|
+
$ad063034c8620db8$export$461939dd4422153,
|
|
1246
|
+
$ad063034c8620db8$export$d0bdf45af03a6ea3,
|
|
1247
|
+
$ad063034c8620db8$export$aa8b41735afcabd2,
|
|
1248
|
+
$ad063034c8620db8$export$a5a3b454ada2268e,
|
|
1249
|
+
$ad063034c8620db8$export$a2258d9c4118825c,
|
|
1250
|
+
$ad063034c8620db8$export$f91e89d3d0406102,
|
|
1251
|
+
$ad063034c8620db8$export$42c81a444fbfb5d4,
|
|
1252
|
+
$ad063034c8620db8$export$ef8b6d9133084f4e,
|
|
1253
|
+
$ad063034c8620db8$export$5c333a116e949cdd,
|
|
1254
|
+
$ad063034c8620db8$export$a75f2bff57811055,
|
|
1255
|
+
$d07e34cce18680fd$export$93522d1a439f3617,
|
|
1256
|
+
$d07e34cce18680fd$export$b21e0b124e224484,
|
|
1257
|
+
$d07e34cce18680fd$export$d33f79e3ffc3dc83,
|
|
1258
|
+
$d07e34cce18680fd$export$b4a036af3fc0b032,
|
|
1259
|
+
$d07e34cce18680fd$export$84c95a83c799e074,
|
|
1260
|
+
$58246871e4652552$export$c9698ec7f05a07e1,
|
|
1261
|
+
$58246871e4652552$export$6b862160d295c8e,
|
|
1262
|
+
$2aaf608024c21ca1$export$99faa760c7908e4f,
|
|
1263
|
+
$2aaf608024c21ca1$export$680ea196effce5f,
|
|
1264
|
+
$12a3c853105e5a70$export$ad991b66133851cf
|
|
1265
|
+
};
|