@vokril/ui-solid 0.13.0 → 0.18.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/CHANGELOG.md +52 -0
- package/README.md +110 -31
- package/dist/{AttributeGrid-Bg88JYZI.cjs → AttributeGrid-7cLOWtPn.cjs} +1 -1
- package/dist/{AttributeGrid-BypjAajJ.js → AttributeGrid-CVyqzT7-.js} +5 -5
- package/dist/{Button-Db6wMY-3.js → Button-BiKPB3cH.js} +2 -2
- package/dist/{Button-d9jJBibg.cjs → Button-Nx7byQZc.cjs} +1 -1
- package/dist/CommandPalette-BH7c1cbU.js +3968 -0
- package/dist/CommandPalette-Dfb4V-Hb.cjs +2 -0
- package/dist/{CopyButton-C93PFyYK.js → CopyButton-BF7L1TCO.js} +1 -1
- package/dist/{CopyButton-CXaZRU7b.cjs → CopyButton-BtgGbiy9.cjs} +1 -1
- package/dist/DateRangePicker-Ce2tTbJ4.cjs +9 -0
- package/dist/{DateRangePicker-D-5rg3h1.js → DateRangePicker-jSQBwB78.js} +181 -166
- package/dist/GuidedTour-CWDtBRHv.js +483 -0
- package/dist/GuidedTour-CYaR5Ozj.cjs +1 -0
- package/dist/HostPortal-B9Tzk_uN.cjs +1 -0
- package/dist/HostPortal-X1iw719T.js +33 -0
- package/dist/HostWindowContext-B2m0bVra.js +32 -0
- package/dist/HostWindowContext-_VZCt7xE.cjs +1 -0
- package/dist/{IconPicker-DPT-QfsC.cjs → IconPicker-4bdAeGxS.cjs} +1 -1
- package/dist/{IconPicker-C3ZwWkB1.js → IconPicker-Df6uIUpJ.js} +4 -4
- package/dist/{Input-Ca8fLm_s.cjs → Input-CZruORyy.cjs} +1 -1
- package/dist/{Input-gq8EcQao.js → Input-DkPhsdfk.js} +2 -2
- package/dist/Modal-CQG8l4x7.cjs +1 -0
- package/dist/{Modal-C4l_yuY9.js → Modal-CUPe98-o.js} +5 -5
- package/dist/PageSkeleton-C3mo6UGh.cjs +30 -0
- package/dist/{PageSkeleton-C95fXUUk.js → PageSkeleton-CUTLh9Ip.js} +630 -628
- package/dist/{Popover-C24npAQ7.js → Popover-Dht1jFEy.js} +1 -1
- package/dist/{Popover-hhGcYQ-a.cjs → Popover-YfzC0Tjh.cjs} +1 -1
- package/dist/{SearchableSelect-BpOD2_A-.js → SearchableSelect-C01brsF0.js} +5 -5
- package/dist/{SearchableSelect-MN5azo9r.cjs → SearchableSelect-pCaUie2M.cjs} +1 -1
- package/dist/StatusBarNotificationBell-BwqVV09r.js +14266 -0
- package/dist/StatusBarNotificationBell-C5Zc2IvW.cjs +50 -0
- package/dist/{Stepper-BgDx1cPX.js → Stepper-38IAEOyT.js} +3 -3
- package/dist/{Stepper-D7rXGxdg.cjs → Stepper-CtaTpnQu.cjs} +1 -1
- package/dist/{Textarea-BueHsjOk.js → Textarea-B5QqqKnI.js} +1 -1
- package/dist/{Textarea-BltpSavs.cjs → Textarea-CeAGf08O.cjs} +1 -1
- package/dist/{TimeSeriesChart-C3o7NZPh.js → TimeSeriesChart-ByKG4E1G.js} +2 -2
- package/dist/{TimeSeriesChart-DhYtrAgX.cjs → TimeSeriesChart-_NOs_Job.cjs} +1 -1
- package/dist/ToggleButton-Bz3zAtec.cjs +1 -0
- package/dist/{ToggleButton-DCP7f6Uo.js → ToggleButton-D-N0C2Fu.js} +54 -53
- package/dist/_internal/app/keybindings/context/keybindingsContext.d.cts +11 -6
- package/dist/_internal/app/keybindings/context/keybindingsContext.d.ts +11 -6
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.cts +4 -3
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.ts +4 -3
- package/dist/_internal/app/keybindings/context/useListCommands.d.cts +6 -5
- package/dist/_internal/app/keybindings/context/useListCommands.d.ts +6 -5
- package/dist/_internal/app/keybindings/index.d.cts +0 -10
- package/dist/_internal/app/keybindings/index.d.ts +0 -10
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.cts +14 -9
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.ts +14 -9
- package/dist/_internal/app/menu/menuFavorites.d.cts +35 -8
- package/dist/_internal/app/menu/menuFavorites.d.ts +35 -8
- package/dist/_internal/app/onboarding/pageTourState.d.cts +75 -22
- package/dist/_internal/app/onboarding/pageTourState.d.ts +75 -22
- package/dist/_internal/app/platform/electronBridge.d.cts +35 -29
- package/dist/_internal/app/platform/electronBridge.d.ts +35 -29
- package/dist/_internal/app/settings/secrets/notificationSecrets.d.cts +8 -4
- package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +8 -4
- package/dist/_internal/app/windows/window/HostWindowContext.d.cts +8 -14
- package/dist/_internal/app/windows/window/HostWindowContext.d.ts +8 -14
- package/dist/_internal/contract/catalogNotify.d.cts +6 -19
- package/dist/_internal/contract/catalogNotify.d.ts +6 -19
- package/dist/_internal/contract/hostErrorText.d.cts +13 -23
- package/dist/_internal/contract/hostErrorText.d.ts +13 -23
- package/dist/_internal/contract/notificationCatalog.d.cts +16 -5
- package/dist/_internal/contract/notificationCatalog.d.ts +16 -5
- package/dist/_internal/platform/errors/diagnosticReport.d.cts +3 -1
- package/dist/_internal/platform/errors/diagnosticReport.d.ts +3 -1
- package/dist/_internal/platform/logging/consoleLogger.d.cts +7 -0
- package/dist/_internal/platform/logging/consoleLogger.d.ts +7 -0
- package/dist/_internal/platform/settings/registry/defineSettings.d.cts +19 -8
- package/dist/_internal/platform/settings/registry/defineSettings.d.ts +19 -8
- package/dist/_internal/platform/settings/registry/stateDbStore.d.cts +23 -15
- package/dist/_internal/platform/settings/registry/stateDbStore.d.ts +23 -15
- package/dist/_internal/platform/settings/settingsTypes.d.cts +5 -0
- package/dist/_internal/platform/settings/settingsTypes.d.ts +5 -0
- package/dist/_internal/platform/vendorErrors/index.d.cts +7 -17
- package/dist/_internal/platform/vendorErrors/index.d.ts +7 -17
- package/dist/_internal/platform/window/displayOwner.d.cts +35 -14
- package/dist/_internal/platform/window/displayOwner.d.ts +35 -14
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/actions-DtaFGwh2.cjs +1 -0
- package/dist/actions-wwAHs3ZU.js +16 -0
- package/dist/{server/appThemeDerivation-BiCyiSuz.js → appThemeDerivation-B7-DjMIM.js} +181 -184
- package/dist/appThemeDerivation-NS3Vws8q.cjs +1 -0
- package/dist/async/createGuardedListLoader.d.cts +3 -0
- package/dist/async/createGuardedListLoader.d.ts +3 -0
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/createDialogShellFocus-BBFu3Z_O.js +282 -0
- package/dist/createDialogShellFocus-CxRqhbRN.cjs +1 -0
- package/dist/createResizableSidebar-CfFxQUny.js +449 -0
- package/dist/createResizableSidebar-q7aC7SAO.cjs +1 -0
- package/dist/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
- package/dist/{server/createVirtualScroller-DBvqT0UW.js → createVirtualScroller-vu-l4rVv.js} +7 -7
- package/dist/defineSettings-D0CSMcyy.cjs +1 -0
- package/dist/defineSettings-Di1sG81q.js +407 -0
- package/dist/descriptor-CaHgh9N_.cjs +1 -0
- package/dist/{descriptor-CrCl515S.js → descriptor-eGtcBtpI.js} +5 -5
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +500 -426
- package/dist/dialogFocusRestore-BrALT8Ew.js +35 -0
- package/dist/dialogFocusRestore-CcEsB50v.cjs +1 -0
- package/dist/electronBridge-BK92fycw.js +235 -0
- package/dist/electronBridge-cT0xww92.cjs +1 -0
- package/dist/errorHandler-BvPGW-Nm.js +373 -0
- package/dist/errorHandler-DoDAPpv2.cjs +3 -0
- package/dist/feedback/Loader.d.cts +6 -1
- package/dist/feedback/Loader.d.ts +6 -1
- package/dist/feedback/createPreference.d.cts +4 -1
- package/dist/feedback/createPreference.d.ts +4 -1
- package/dist/feedback/guidedInstallOutcome.d.cts +15 -2
- package/dist/feedback/guidedInstallOutcome.d.ts +15 -2
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +37 -38
- package/dist/feedback/readFailureText.d.cts +20 -1
- package/dist/feedback/readFailureText.d.ts +20 -1
- package/dist/focusModality-BISb6-yg.cjs +1 -0
- package/dist/focusModality-FoLPWF-_.js +135 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +9 -9
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
- package/dist/{server/headerIconOverrides-B7TQUBmD.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +14 -16
- package/dist/host/index.d.ts +14 -16
- package/dist/host/index.js +53 -90
- package/dist/host/kitHost.d.cts +42 -0
- package/dist/host/kitHost.d.ts +42 -0
- package/dist/host/window.d.cts +3 -11
- package/dist/host/window.d.ts +3 -11
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/{server/i18n-D9k9xwuD.js → i18n-DW9kcu0G.js} +180 -178
- package/dist/i18n-DZ0JlZal.cjs +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +665 -738
- package/dist/isOneOf-9EXOSYJu.cjs +1 -0
- package/dist/isOneOf-Dtomuazg.js +6 -0
- package/dist/{keys-Bfgdfak_.js → keys-B2nlkpqc.js} +6 -9
- package/dist/keys-GMxY2wcl.cjs +1 -0
- package/dist/layout/createResizableSidebar.d.cts +14 -0
- package/dist/layout/createResizableSidebar.d.ts +14 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +3 -3
- package/dist/layout/sidebarWidthClamp.d.cts +1 -1
- package/dist/layout/sidebarWidthClamp.d.ts +1 -1
- package/dist/mainRealmDom-C12lr9lm.js +171 -0
- package/dist/mainRealmDom-S6teqEr4.cjs +1 -0
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/NotificationHost.d.cts +7 -1
- package/dist/notifications/NotificationHost.d.ts +7 -1
- package/dist/notifications/NotificationItem.d.cts +48 -15
- package/dist/notifications/NotificationItem.d.ts +48 -15
- package/dist/notifications/catalogAdapter.d.cts +28 -6
- package/dist/notifications/catalogAdapter.d.ts +28 -6
- package/dist/notifications/createNotificationPreviewRuntime.d.cts +21 -3
- package/dist/notifications/createNotificationPreviewRuntime.d.ts +21 -3
- package/dist/notifications/customSoundCache.d.cts +24 -24
- package/dist/notifications/customSoundCache.d.ts +24 -24
- package/dist/notifications/emailDigest.d.cts +34 -16
- package/dist/notifications/emailDigest.d.ts +34 -16
- package/dist/notifications/errorActionButtons.d.cts +18 -1
- package/dist/notifications/errorActionButtons.d.ts +18 -1
- package/dist/notifications/fireNotification.d.cts +27 -17
- package/dist/notifications/fireNotification.d.ts +27 -17
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.d.cts +6 -12
- package/dist/notifications/index.d.ts +6 -12
- package/dist/notifications/index.js +64 -104
- package/dist/notifications/nativeEngine.d.cts +18 -15
- package/dist/notifications/nativeEngine.d.ts +18 -15
- package/dist/notifications/notificationAnalytics.d.cts +11 -6
- package/dist/notifications/notificationAnalytics.d.ts +11 -6
- package/dist/notifications/notificationAudio.d.cts +30 -23
- package/dist/notifications/notificationAudio.d.ts +30 -23
- package/dist/notifications/notificationCardServices.d.cts +23 -0
- package/dist/notifications/notificationCardServices.d.ts +23 -0
- package/dist/notifications/notificationOverlayChannel.d.cts +4 -4
- package/dist/notifications/notificationOverlayChannel.d.ts +4 -4
- package/dist/notifications/notificationOverlaySync.d.cts +7 -2
- package/dist/notifications/notificationOverlaySync.d.ts +7 -2
- package/dist/notifications/notificationService.d.cts +101 -0
- package/dist/notifications/notificationService.d.ts +101 -0
- package/dist/notifications/notificationTimeline.d.cts +47 -49
- package/dist/notifications/notificationTimeline.d.ts +47 -49
- package/dist/notifications/notifications.notifications.d.cts +0 -4
- package/dist/notifications/notifications.notifications.d.ts +0 -4
- package/dist/notifications/toast.d.cts +24 -28
- package/dist/notifications/toast.d.ts +24 -28
- package/dist/notifications/webhookDelivery.d.cts +12 -17
- package/dist/notifications/webhookDelivery.d.ts +12 -17
- package/dist/overlay/ConfirmDialog.d.cts +16 -17
- package/dist/overlay/ConfirmDialog.d.ts +16 -17
- package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
- package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
- package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
- package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
- package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
- package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
- package/dist/overlay/dialogShellKeyIntent.d.cts +3 -3
- package/dist/overlay/dialogShellKeyIntent.d.ts +3 -3
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -3
- package/dist/overlay/index.d.ts +2 -3
- package/dist/overlay/index.js +114 -119
- package/dist/pageTourState-BcBF8w89.js +516 -0
- package/dist/pageTourState-CrbEU7QW.cjs +5 -0
- package/dist/server/{AttributeGrid-UJtHTip2.js → AttributeGrid-B2s_rp00.js} +3 -3
- package/dist/server/{AttributeGrid-CyMsR4GC.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
- package/dist/server/{Button-BesBg6eW.js → Button-Ck03cbUs.js} +1 -1
- package/dist/server/{Button-PZulLru4.cjs → Button-DWFMF5y0.cjs} +1 -1
- package/dist/server/CommandPalette-DwlWZI1s.js +3224 -0
- package/dist/server/CommandPalette-VewDIghb.cjs +1 -0
- package/dist/server/{CopyButton-D_sN2Ggp.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
- package/dist/server/{CopyButton-I5xsXV07.js → CopyButton-UvtFwOtA.js} +1 -1
- package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
- package/dist/server/{DateRangePicker-DGUl2aE3.js → DateRangePicker-Cr58DczM.js} +158 -143
- package/dist/server/GuidedTour-C4msn-Ag.js +400 -0
- package/dist/server/GuidedTour-Rlsp8rOe.cjs +1 -0
- package/dist/server/HostPortal-B9Tzk_uN.cjs +1 -0
- package/dist/server/HostPortal-X1iw719T.js +33 -0
- package/dist/server/HostWindowContext-B2m0bVra.js +32 -0
- package/dist/server/HostWindowContext-_VZCt7xE.cjs +1 -0
- package/dist/server/{IconPicker-BlD0VBca.cjs → IconPicker-9DfOxql6.cjs} +1 -1
- package/dist/server/{IconPicker-o8hUxjYU.js → IconPicker-N0wub1Aj.js} +4 -4
- package/dist/server/Modal-D__GTo-n.cjs +1 -0
- package/dist/server/{Modal-DmF6CwfY.js → Modal-DeQjfpkG.js} +3 -3
- package/dist/server/{PageSkeleton-BigztY5i.js → PageSkeleton-C41pXOcr.js} +460 -458
- package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
- package/dist/server/{SearchableSelect-Dn-cssWx.js → SearchableSelect-CEcuBnge.js} +2 -2
- package/dist/server/{SearchableSelect-R0Dwz9rz.cjs → SearchableSelect-Ca9g8ztu.cjs} +1 -1
- package/dist/server/StatusBarNotificationBell-BotYny7q.cjs +49 -0
- package/dist/server/StatusBarNotificationBell-DyEQF2W7.js +13968 -0
- package/dist/server/{Stepper-dBm8YaCw.cjs → Stepper--pusyxso.cjs} +1 -1
- package/dist/server/{Stepper-BaQ6Kexj.js → Stepper-B_eL85hK.js} +1 -1
- package/dist/server/{TimeSeriesChart-BbbfDyeA.js → TimeSeriesChart-aSHquoBv.js} +1 -1
- package/dist/server/{TimeSeriesChart-qPgMkkaW.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
- package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
- package/dist/server/{ToggleButton-C0_QpslP.js → ToggleButton-DjlWwgLJ.js} +4 -4
- package/dist/server/VpTrash-D49oUUJh.cjs +1 -0
- package/dist/server/VpTrash-Dlq8o6Uv.js +298 -0
- package/dist/server/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- package/dist/server/actions-DtaFGwh2.cjs +1 -0
- package/dist/server/actions-wwAHs3ZU.js +16 -0
- package/dist/{appThemeDerivation-BiCyiSuz.js → server/appThemeDerivation-B7-DjMIM.js} +181 -184
- package/dist/server/appThemeDerivation-NS3Vws8q.cjs +1 -0
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/{format-CYCi8g4r.js → createDialogShellFocus-DNjzmcGj.js} +110 -126
- package/dist/server/createDialogShellFocus-PRRfMli-.cjs +1 -0
- package/dist/server/createResizableSidebar-CZtGmUnA.cjs +1 -0
- package/dist/server/createResizableSidebar-DdWdAB9l.js +287 -0
- package/dist/server/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
- package/dist/{createVirtualScroller-DBvqT0UW.js → server/createVirtualScroller-vu-l4rVv.js} +7 -7
- package/dist/server/defineSettings-D0CSMcyy.cjs +1 -0
- package/dist/server/defineSettings-Di1sG81q.js +407 -0
- package/dist/server/descriptor-CEGvvJZh.cjs +1 -0
- package/dist/server/{descriptor-DtZDXBe6.js → descriptor-GLoKPx6x.js} +4 -4
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +389 -315
- package/dist/server/dialogFocusRestore-BrALT8Ew.js +35 -0
- package/dist/server/dialogFocusRestore-CcEsB50v.cjs +1 -0
- package/dist/server/electronBridge-BK92fycw.js +235 -0
- package/dist/server/electronBridge-cT0xww92.cjs +1 -0
- package/dist/server/errorHandler-BvPGW-Nm.js +373 -0
- package/dist/server/errorHandler-DoDAPpv2.cjs +3 -0
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +37 -38
- package/dist/server/focusModality-D-nxv8Er.cjs +1 -0
- package/dist/server/{focusModality-BCX5GH0P.js → focusModality-nWNVX3JG.js} +41 -41
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +7 -7
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
- package/dist/{headerIconOverrides-B7TQUBmD.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +53 -90
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/{i18n-D9k9xwuD.js → server/i18n-DW9kcu0G.js} +180 -178
- package/dist/server/i18n-DZ0JlZal.cjs +4 -0
- package/dist/server/{index-B4epvfiq.js → index-BNYr6EIW.js} +89 -90
- package/dist/server/index-Cqod09d_.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +825 -898
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +3 -3
- package/dist/server/mainRealmDom-DPNaDWtw.js +121 -0
- package/dist/server/mainRealmDom-DwZVMPnO.cjs +1 -0
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +63 -103
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +115 -120
- package/dist/server/pageTourState-BcBF8w89.js +516 -0
- package/dist/server/pageTourState-CrbEU7QW.cjs +5 -0
- package/dist/server/settings/index.cjs +1 -1
- package/dist/server/settings/index.js +23 -24
- package/dist/server/stateDbStore-CThsVch-.cjs +1 -0
- package/dist/server/stateDbStore-DHZFUIEt.js +57 -0
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +19 -20
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/server/useListCommands-BO_XrRHj.js +38 -0
- package/dist/server/useListCommands-Dnm4ktP1.cjs +1 -0
- package/dist/server/useSettingsSubscription-DKjCwmRd.cjs +1 -0
- package/dist/server/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
- package/dist/server/window-CUK6x8Pj.js +36 -0
- package/dist/server/window-_BfSgFGO.cjs +1 -0
- package/dist/server/windowRegistry-CxXtP-iY.cjs +1 -0
- package/dist/server/windowRegistry-DeGmXt6W.js +20 -0
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.d.cts +1 -1
- package/dist/settings/index.d.ts +1 -1
- package/dist/settings/index.js +23 -24
- package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +3 -10
- package/dist/solid/_internal/app/keybindings/context/useListCommands.js +1 -2
- package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +8 -1
- package/dist/solid/_internal/app/menu/menuFavorites.js +45 -40
- package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +22 -22
- package/dist/solid/_internal/app/onboarding/pageTourState.js +94 -92
- package/dist/solid/_internal/app/platform/electronBridge.js +15 -49
- package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +0 -10
- package/dist/solid/_internal/app/windows/window/HostWindowContext.jsx +4 -13
- package/dist/solid/_internal/contract/catalogNotify.js +1 -24
- package/dist/solid/_internal/contract/hostErrorText.js +1 -14
- package/dist/solid/_internal/contract/notificationCatalog.js +1 -1
- package/dist/solid/_internal/platform/errors/diagnosticReport.js +2 -3
- package/dist/solid/_internal/platform/logging/consoleLogger.js +6 -0
- package/dist/solid/_internal/platform/settings/registry/defineSettings.js +48 -20
- package/dist/solid/_internal/platform/settings/registry/stateDbStore.js +29 -19
- package/dist/solid/_internal/platform/vendorErrors/index.js +4 -17
- package/dist/solid/_internal/platform/window/displayOwner.js +105 -114
- package/dist/solid/a11y/AriaAnnouncer.jsx +2 -3
- package/dist/solid/async/createGuardedListLoader.js +1 -1
- package/dist/solid/desktop/menu/MenuPanel.jsx +7 -7
- package/dist/solid/feedback/ErrorBoundary.jsx +7 -4
- package/dist/solid/feedback/Loader.jsx +1 -2
- package/dist/solid/feedback/createPreference.js +3 -2
- package/dist/solid/feedback/guidedInstallOutcome.js +1 -2
- package/dist/solid/feedback/preference.notifications.js +1 -2
- package/dist/solid/feedback/readFailureText.js +1 -2
- package/dist/solid/host/index.js +8 -16
- package/dist/solid/host/window.js +15 -22
- package/dist/solid/i18n/i18n.js +5 -6
- package/dist/solid/index.js +0 -1
- package/dist/solid/layout/createResizableSidebar.js +15 -23
- package/dist/solid/notifications/NotificationHost.jsx +21 -29
- package/dist/solid/notifications/NotificationItem.jsx +28 -104
- package/dist/solid/notifications/NotificationPanel.jsx +33 -44
- package/dist/solid/notifications/NotificationsCenter.jsx +22 -20
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
- package/dist/solid/notifications/catalogAdapter.js +61 -62
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +29 -19
- package/dist/solid/notifications/customSoundCache.js +26 -21
- package/dist/solid/notifications/emailDigest.js +74 -86
- package/dist/solid/notifications/errorActionButtons.js +6 -11
- package/dist/solid/notifications/fireNotification.js +14 -19
- package/dist/solid/notifications/index.js +3 -12
- package/dist/solid/notifications/nativeEngine.js +6 -19
- package/dist/solid/notifications/notificationAnalytics.js +32 -38
- package/dist/solid/notifications/notificationAudio.js +77 -74
- package/dist/solid/notifications/notificationCardServices.js +34 -0
- package/dist/solid/notifications/notificationOverlayChannel.js +3 -3
- package/dist/solid/notifications/notificationOverlaySync.js +18 -23
- package/dist/solid/notifications/notificationService.js +135 -0
- package/dist/solid/notifications/notificationTimeline.js +117 -124
- package/dist/solid/notifications/notifications.notifications.js +3 -22
- package/dist/solid/notifications/toast.js +168 -213
- package/dist/solid/notifications/webhookDelivery.js +27 -53
- package/dist/solid/overlay/ConfirmDialog.jsx +14 -58
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +3 -1
- package/dist/solid/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.js +26 -25
- package/dist/solid/overlay/command-palette/unifiedSearch/settingsSearchContributor.js +2 -7
- package/dist/solid/overlay/index.js +0 -3
- package/dist/solid/settings/index.js +1 -1
- package/dist/solid/tokens/index.js +1 -1
- package/dist/solid/tokens/palette/themeRegistry.js +20 -22
- package/dist/stateDbStore-CThsVch-.cjs +1 -0
- package/dist/stateDbStore-DHZFUIEt.js +57 -0
- package/dist/style.css +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.js +19 -20
- package/dist/tokens/palette/themeRegistry.d.cts +17 -22
- package/dist/tokens/palette/themeRegistry.d.ts +17 -22
- package/dist/{tooltipCoordinator-Zim5pWzk.js → tooltipCoordinator-BzxEyKhA.js} +2 -2
- package/dist/tooltipCoordinator-DslqMlsI.cjs +1 -0
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/dist/{useFloatingDropdown-CfPEYRut.js → useFloatingDropdown-BN4J092P.js} +1 -1
- package/dist/{useFloatingDropdown-DcU7ozDg.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
- package/dist/useListCommands-BO_XrRHj.js +38 -0
- package/dist/useListCommands-Dnm4ktP1.cjs +1 -0
- package/dist/useSettingsSubscription-DKjCwmRd.cjs +1 -0
- package/dist/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
- package/dist/window-CUK6x8Pj.js +36 -0
- package/dist/window-_BfSgFGO.cjs +1 -0
- package/dist/windowRegistry-CxXtP-iY.cjs +1 -0
- package/dist/windowRegistry-DeGmXt6W.js +20 -0
- package/package.json +1 -1
- package/dist/CommandPalette-DeEImZ8D.cjs +0 -2
- package/dist/CommandPalette-yqvM9AuU.js +0 -3897
- package/dist/DateRangePicker-7t4JKCp1.cjs +0 -9
- package/dist/GuidedTour-C_Lxe1t_.cjs +0 -21
- package/dist/GuidedTour-lsljVkPL.js +0 -11216
- package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
- package/dist/HostWindowContext-KL4U1qUv.js +0 -40
- package/dist/Modal-CJhd27dM.cjs +0 -1
- package/dist/PageSkeleton-SYSL4Adl.cjs +0 -30
- package/dist/Progress-B5YmNeyU.js +0 -56
- package/dist/Progress-BNy0wsJl.cjs +0 -1
- package/dist/StatusBarNotificationBell-B1bvE_SO.js +0 -2140
- package/dist/StatusBarNotificationBell-Cqo6cZbO.cjs +0 -4
- package/dist/ToggleButton-BmwDfsn4.cjs +0 -1
- package/dist/_internal/app/contexts/WorkspaceTabsContext.d.cts +0 -20
- package/dist/_internal/app/contexts/WorkspaceTabsContext.d.ts +0 -20
- package/dist/_internal/app/settings/theme/appThemeChange.d.cts +0 -20
- package/dist/_internal/app/settings/theme/appThemeChange.d.ts +0 -20
- package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.cts +0 -6
- package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.ts +0 -6
- package/dist/_internal/base/listenerDispatch.d.cts +0 -14
- package/dist/_internal/base/listenerDispatch.d.ts +0 -14
- package/dist/_internal/contract/appName.d.cts +0 -10
- package/dist/_internal/contract/appName.d.ts +0 -10
- package/dist/_internal/contract/hostText.d.cts +0 -25
- package/dist/_internal/contract/hostText.d.ts +0 -25
- package/dist/_internal/platform/logging/rendererLogging.d.cts +0 -65
- package/dist/_internal/platform/logging/rendererLogging.d.ts +0 -65
- package/dist/_internal/platform/settings/preferencesCache.d.cts +0 -162
- package/dist/_internal/platform/settings/preferencesCache.d.ts +0 -162
- package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
- package/dist/catalogNotify-BcY9oqVy.js +0 -1223
- package/dist/catalogNotify-DacJjC-p.cjs +0 -27
- package/dist/createResizableSidebar-BIhyo5zN.cjs +0 -1
- package/dist/createResizableSidebar-Cqv-1IXG.js +0 -461
- package/dist/defineSettings-CcYXt2Jf.js +0 -391
- package/dist/defineSettings-yHQdUwxI.cjs +0 -1
- package/dist/descriptor-Dmch-3AF.cjs +0 -1
- package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
- package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
- package/dist/displayOwner-eYQHHvjt.cjs +0 -1
- package/dist/displayOwner-mT80Oyi-.js +0 -75
- package/dist/feedback/preference.notifications.samples.d.cts +0 -1
- package/dist/feedback/preference.notifications.samples.d.ts +0 -1
- package/dist/focusModality-BNjYldd9.cjs +0 -1
- package/dist/focusModality-DxudpWPs.js +0 -135
- package/dist/format-BS7oDguE.js +0 -298
- package/dist/format-CuANkXXB.cjs +0 -1
- package/dist/i18n-DXXArz-m.cjs +0 -4
- package/dist/keys-BeeC5_RZ.cjs +0 -1
- package/dist/mainRealmDom-CkoRyNhZ.cjs +0 -1
- package/dist/mainRealmDom-kEStLHIY.js +0 -102
- package/dist/menuFavorites-BmdM_qV5.js +0 -69
- package/dist/menuFavorites-DoDFvtlQ.cjs +0 -1
- package/dist/notification-DygvQB_o.cjs +0 -1
- package/dist/notificationSuppressions-DGfo2QKG.cjs +0 -1
- package/dist/notificationSuppressions-ddyK85cB.js +0 -430
- package/dist/notifications/copyToClipboard.d.cts +0 -6
- package/dist/notifications/copyToClipboard.d.ts +0 -6
- package/dist/notifications/createCopyFlash.d.cts +0 -17
- package/dist/notifications/createCopyFlash.d.ts +0 -17
- package/dist/notifications/notificationDisplayOwner.d.cts +0 -27
- package/dist/notifications/notificationDisplayOwner.d.ts +0 -27
- package/dist/notifications/notificationRepeaterEntryFactory.d.cts +0 -36
- package/dist/notifications/notificationRepeaterEntryFactory.d.ts +0 -36
- package/dist/notifications/notifications.notifications.samples.d.cts +0 -1
- package/dist/notifications/notifications.notifications.samples.d.ts +0 -1
- package/dist/notifications/persistWithRollbackOnFailure.d.cts +0 -18
- package/dist/notifications/persistWithRollbackOnFailure.d.ts +0 -18
- package/dist/notifications/startNotificationSchedulers.d.cts +0 -2
- package/dist/notifications/startNotificationSchedulers.d.ts +0 -2
- package/dist/notifications/startNotificationSettingsReactions.d.cts +0 -46
- package/dist/notifications/startNotificationSettingsReactions.d.ts +0 -46
- package/dist/overlay/ToastHost.d.cts +0 -7
- package/dist/overlay/ToastHost.d.ts +0 -7
- package/dist/pageTourState-CIr8ockR.js +0 -92
- package/dist/pageTourState-D8Uapyft.cjs +0 -1
- package/dist/preferencesCache-Bow6TxP1.js +0 -65
- package/dist/preferencesCache-D7mm43_n.cjs +0 -1
- package/dist/rendererLogging-Dt5FZ8mq.cjs +0 -7
- package/dist/rendererLogging-gAhiHWkA.js +0 -822
- package/dist/server/CommandPalette-C8treS8g.cjs +0 -1
- package/dist/server/CommandPalette-Dslsq5Ez.js +0 -3155
- package/dist/server/DateRangePicker-CDKi9BAf.cjs +0 -9
- package/dist/server/GuidedTour-B3T9rAPX.cjs +0 -20
- package/dist/server/GuidedTour-DSoSZZby.js +0 -10983
- package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
- package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
- package/dist/server/Modal-CCUwQYso.cjs +0 -1
- package/dist/server/PageSkeleton-DdpXfZoC.cjs +0 -30
- package/dist/server/Progress-CRbj6nEy.cjs +0 -1
- package/dist/server/Progress-nsDy6clG.js +0 -41
- package/dist/server/StatusBarNotificationBell-C64Odn2C.js +0 -1974
- package/dist/server/StatusBarNotificationBell-DY0Q27su.cjs +0 -4
- package/dist/server/ToggleButton-1bNYk35x.cjs +0 -1
- package/dist/server/VpTerminal-Bpw-d9wD.js +0 -186
- package/dist/server/VpTerminal-C-U_dN_x.cjs +0 -1
- package/dist/server/VpTrash-CagiU2Uj.cjs +0 -1
- package/dist/server/VpTrash-DVBfts9_.js +0 -116
- package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
- package/dist/server/catalogNotify-MCW2sa2e.cjs +0 -27
- package/dist/server/catalogNotify-s3YymAe8.js +0 -1261
- package/dist/server/createResizableSidebar-MIzUlfdd.js +0 -299
- package/dist/server/createResizableSidebar-TdxLuiY8.cjs +0 -1
- package/dist/server/defineSettings-CcYXt2Jf.js +0 -391
- package/dist/server/defineSettings-yHQdUwxI.cjs +0 -1
- package/dist/server/descriptor-DAyyoF-I.cjs +0 -1
- package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
- package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
- package/dist/server/displayOwner-eYQHHvjt.cjs +0 -1
- package/dist/server/displayOwner-mT80Oyi-.js +0 -75
- package/dist/server/focusModality-BKgJWRlC.cjs +0 -1
- package/dist/server/format-WfZycMBL.cjs +0 -1
- package/dist/server/i18n-DXXArz-m.cjs +0 -4
- package/dist/server/index-DlQYWckZ.cjs +0 -1
- package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
- package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
- package/dist/server/menuFavorites-BmdM_qV5.js +0 -69
- package/dist/server/menuFavorites-DoDFvtlQ.cjs +0 -1
- package/dist/server/notification-DygvQB_o.cjs +0 -1
- package/dist/server/notificationSuppressions-B-LKq9ZU.js +0 -391
- package/dist/server/notificationSuppressions-Dcc2WFBZ.cjs +0 -1
- package/dist/server/pageTourState-CIr8ockR.js +0 -92
- package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
- package/dist/server/preferencesCache-Bow6TxP1.js +0 -65
- package/dist/server/preferencesCache-D7mm43_n.cjs +0 -1
- package/dist/server/rendererLogging-Dt5FZ8mq.cjs +0 -7
- package/dist/server/rendererLogging-gAhiHWkA.js +0 -822
- package/dist/server/settingsSearchContributor-CRZsl2Q_.js +0 -199
- package/dist/server/settingsSearchContributor-DH8UFpp2.cjs +0 -1
- package/dist/server/stateDbStore-Ds3zJ4cd.js +0 -47
- package/dist/server/stateDbStore-THFfFGa0.cjs +0 -1
- package/dist/server/useListCommands-Bf7aOTXZ.js +0 -61
- package/dist/server/useListCommands-ucngC3t4.cjs +0 -1
- package/dist/server/useSettingsSubscription-cu943hND.js +0 -11
- package/dist/server/useSettingsSubscription-vlMrNNH9.cjs +0 -1
- package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
- package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
- package/dist/server/windowRegistry-Bk5lXIVd.js +0 -62
- package/dist/server/windowRegistry-CGvOBUsw.cjs +0 -1
- package/dist/settingsSearchContributor-DWP5dwn3.js +0 -199
- package/dist/settingsSearchContributor-Dltbs1j_.cjs +0 -1
- package/dist/solid/_internal/app/contexts/WorkspaceTabsContext.js +0 -10
- package/dist/solid/_internal/app/settings/theme/appThemeChange.js +0 -5
- package/dist/solid/_internal/app/settings/ui/shell/openSettingsModal.js +0 -15
- package/dist/solid/_internal/base/listenerDispatch.js +0 -12
- package/dist/solid/_internal/contract/appName.js +0 -7
- package/dist/solid/_internal/contract/hostText.js +0 -15
- package/dist/solid/_internal/platform/logging/rendererLogging.js +0 -42
- package/dist/solid/_internal/platform/settings/preferencesCache.js +0 -329
- package/dist/solid/feedback/preference.notifications.samples.js +0 -5
- package/dist/solid/notifications/copyToClipboard.js +0 -21
- package/dist/solid/notifications/createCopyFlash.js +0 -26
- package/dist/solid/notifications/notificationDisplayOwner.js +0 -1
- package/dist/solid/notifications/notificationRepeaterEntryFactory.js +0 -20
- package/dist/solid/notifications/notifications.notifications.samples.js +0 -14
- package/dist/solid/notifications/persistWithRollbackOnFailure.js +0 -11
- package/dist/solid/notifications/startNotificationSchedulers.js +0 -8
- package/dist/solid/notifications/startNotificationSettingsReactions.js +0 -22
- package/dist/solid/overlay/ToastHost.jsx +0 -1
- package/dist/stateDbStore-Ds3zJ4cd.js +0 -47
- package/dist/stateDbStore-THFfFGa0.cjs +0 -1
- package/dist/tooltipCoordinator-Causlcgt.cjs +0 -1
- package/dist/useListCommands-Bf7aOTXZ.js +0 -61
- package/dist/useListCommands-ucngC3t4.cjs +0 -1
- package/dist/useSettingsSubscription-cu943hND.js +0 -11
- package/dist/useSettingsSubscription-vlMrNNH9.cjs +0 -1
- package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
- package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
- package/dist/windowRegistry-Bk5lXIVd.js +0 -62
- package/dist/windowRegistry-CGvOBUsw.cjs +0 -1
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
import { createRoot as
|
|
2
|
-
import { createStore as
|
|
3
|
-
import { template as
|
|
4
|
-
import {
|
|
5
|
-
function
|
|
1
|
+
import { createRoot as q, createEffect as J, createSignal as Q } from "solid-js";
|
|
2
|
+
import { createStore as Z } from "solid-js/store";
|
|
3
|
+
import { template as k, insert as I } from "solid-js/web";
|
|
4
|
+
import { o as H } from "./errorHandler-BvPGW-Nm.js";
|
|
5
|
+
function F(t, e, n) {
|
|
6
6
|
return new Intl.NumberFormat(e, n).format(t);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function V(t, e, n) {
|
|
9
9
|
return new Intl.DateTimeFormat(e, n).format(t);
|
|
10
10
|
}
|
|
11
|
-
var
|
|
11
|
+
var f;
|
|
12
12
|
(function(t) {
|
|
13
13
|
t.number = "number", t.plural = "plural", t.date = "date", t.tag = "tag";
|
|
14
|
-
})(
|
|
15
|
-
function
|
|
14
|
+
})(f || (f = {}));
|
|
15
|
+
function P(t) {
|
|
16
16
|
return typeof t == "number";
|
|
17
17
|
}
|
|
18
18
|
function g(t) {
|
|
19
19
|
return typeof t == "string";
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function tt(t) {
|
|
22
22
|
return t instanceof Date;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function et(t) {
|
|
25
25
|
return typeof t == "function";
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function nt(t) {
|
|
28
28
|
return t !== null && typeof t == "object";
|
|
29
29
|
}
|
|
30
30
|
function w(t, e) {
|
|
31
31
|
return g(e) ? t == null ? void 0 : t[e] : t == null ? void 0 : t.default;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function rt(t, e, n, r = {}, i) {
|
|
34
34
|
if (typeof n == "string")
|
|
35
35
|
return n;
|
|
36
|
-
const [o,
|
|
37
|
-
if (
|
|
38
|
-
return
|
|
39
|
-
if (
|
|
40
|
-
return
|
|
41
|
-
if (
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
return
|
|
45
|
-
if (
|
|
46
|
-
const y = g(
|
|
47
|
-
return
|
|
36
|
+
const [o, a, u] = n, s = r[o];
|
|
37
|
+
if (P(s) && (!a || a === f.number))
|
|
38
|
+
return F(s, t, w(e.number, u));
|
|
39
|
+
if (tt(s) || (g(s) || P(s)) && a === f.date)
|
|
40
|
+
return V(new Date(s), t, w(e.dateTime, u));
|
|
41
|
+
if (a === f.tag) {
|
|
42
|
+
const l = g(u) || Array.isArray(u) ? T(t, e, u, r, i) : void 0;
|
|
43
|
+
if (et(s))
|
|
44
|
+
return s(l);
|
|
45
|
+
if (i) {
|
|
46
|
+
const y = g(s) ? s : o;
|
|
47
|
+
return i(y, l);
|
|
48
48
|
}
|
|
49
49
|
return "";
|
|
50
|
-
} else if (
|
|
51
|
-
if (
|
|
50
|
+
} else if (a === f.plural && P(s) && nt(u)) {
|
|
51
|
+
if (s === 0 && u["=0"])
|
|
52
52
|
return u["=0"];
|
|
53
|
-
const
|
|
54
|
-
return T(t, e, y, r,
|
|
53
|
+
const l = new Intl.PluralRules(t).select(s), y = u[l] || u.other || "";
|
|
54
|
+
return T(t, e, y, r, i);
|
|
55
55
|
} else
|
|
56
|
-
return String(
|
|
56
|
+
return String(s);
|
|
57
57
|
}
|
|
58
|
-
function T(t, e, n, r = {},
|
|
58
|
+
function T(t, e, n, r = {}, i) {
|
|
59
59
|
if (Array.isArray(n)) {
|
|
60
|
-
const o = n.map((
|
|
60
|
+
const o = n.map((a) => rt(t, e, a, r, i));
|
|
61
61
|
return o.every(g) ? o.join("") : o;
|
|
62
62
|
}
|
|
63
63
|
return n;
|
|
64
64
|
}
|
|
65
|
-
const _ = "var", v = "%%%",
|
|
65
|
+
const _ = "var", v = "%%%", X = "num|number|plural|date", L = "=0|zero|one|two|few|many|other", ot = new RegExp(`((${L})\\s{)`, "g"), ut = new RegExp(`^(${L})\\s{(.+?)}$`), it = /(<(\w+?)>(.+?)<\/\w+?>|<(\w+?)(| )\/>)/g, at = /^<(\w+?)(?:(?:| )\/>|>(.+?)<\/\w+?>)$/, st = new RegExp(`{(\\w+?)(, (${X})(, ((${L}) {.+?}+|\\w+?)|)|)}`, "g"), ct = new RegExp(`^{(\\w+?)(?:, (${X})(?:, ((?:${L}) {.+?}+|\\w+?)|)|)}$`);
|
|
66
66
|
function ft(t) {
|
|
67
67
|
if (t === "num" || t === "number")
|
|
68
|
-
return
|
|
68
|
+
return f.number;
|
|
69
69
|
if (t === "plural")
|
|
70
|
-
return
|
|
70
|
+
return f.plural;
|
|
71
71
|
if (t === "date")
|
|
72
|
-
return
|
|
72
|
+
return f.date;
|
|
73
73
|
}
|
|
74
74
|
function $(t, e, n) {
|
|
75
|
-
return e.reduce((r,
|
|
76
|
-
const
|
|
77
|
-
return
|
|
75
|
+
return e.reduce((r, i, o) => r.replace(i, `${v}${_}${o}${v}`), t).split(v).filter((r) => r !== "").map((r) => {
|
|
76
|
+
const i = r.match(new RegExp(`^${_}(\\d+?)$`));
|
|
77
|
+
return i && i[1] ? n(e[i[1]], r) : r;
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
function D(t) {
|
|
81
81
|
return t.reduceRight((e, n) => !n && !e.length ? e : [n, ...e], []);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function lt(t) {
|
|
84
84
|
return t !== null && t.length === 3;
|
|
85
85
|
}
|
|
86
86
|
function M(t) {
|
|
87
87
|
return t !== null && [...t].filter(Boolean).slice(1);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return t.replace(
|
|
89
|
+
function gt(t) {
|
|
90
|
+
return t.replace(ot, `
|
|
91
91
|
$1`).split(`
|
|
92
|
-
`).map((e) => e.trim().match(
|
|
92
|
+
`).map((e) => e.trim().match(ut)).filter(lt).reduce((e, n) => (e[n[1]] = O(n[2]), e), {});
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return t ===
|
|
94
|
+
function mt(t, e) {
|
|
95
|
+
return t === f.plural && e ? gt(e) : e;
|
|
96
96
|
}
|
|
97
97
|
function O(t) {
|
|
98
98
|
const e = [t].reduce((n, r) => {
|
|
99
|
-
const
|
|
100
|
-
return n.push(...
|
|
101
|
-
const u = M(o.match(
|
|
102
|
-
return u ? D([u[0],
|
|
99
|
+
const i = r.match(it);
|
|
100
|
+
return n.push(...i ? $(t, i, (o, a) => {
|
|
101
|
+
const u = M(o.match(at));
|
|
102
|
+
return u ? D([u[0], f.tag, u[1] && O(u[1])]) : a;
|
|
103
103
|
}) : [r]), n;
|
|
104
104
|
}, []).reduce((n, r) => {
|
|
105
|
-
const
|
|
106
|
-
return n.push(...
|
|
107
|
-
const u = M(o.match(
|
|
105
|
+
const i = g(r) && r.match(st);
|
|
106
|
+
return n.push(...i ? $(r, i, (o, a) => {
|
|
107
|
+
const u = M(o.match(ct));
|
|
108
108
|
if (!u)
|
|
109
|
-
return
|
|
110
|
-
const
|
|
111
|
-
return D([u[0],
|
|
109
|
+
return a;
|
|
110
|
+
const s = ft(u[1]);
|
|
111
|
+
return D([u[0], s, mt(s, u[2])]);
|
|
112
112
|
}) : [r]), n;
|
|
113
113
|
}, []);
|
|
114
114
|
return e.length === 1 && typeof e[0] == "string" ? e[0] : e;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function pt(t) {
|
|
117
117
|
const e = /* @__PURE__ */ new Set();
|
|
118
118
|
function n() {
|
|
119
119
|
[...e.values()].forEach((o) => o());
|
|
@@ -128,35 +128,35 @@ function dt(t) {
|
|
|
128
128
|
setLocales: (o) => {
|
|
129
129
|
r.locales = Object.assign(Object.assign({}, r.locales), { [r.language]: Object.assign(Object.assign({}, r.locales[r.language]), o) }), n();
|
|
130
130
|
},
|
|
131
|
-
t: (o,
|
|
131
|
+
t: (o, a) => {
|
|
132
132
|
var u;
|
|
133
|
-
const
|
|
134
|
-
return T(r.language, r.presets, O(((u = r.locales[r.language]) === null || u === void 0 ? void 0 : u[
|
|
133
|
+
const s = g(o) ? void 0 : o.id, l = g(o) ? o : o.message;
|
|
134
|
+
return T(r.language, r.presets, O(((u = r.locales[r.language]) === null || u === void 0 ? void 0 : u[s || l]) || l), a, t.formatTag);
|
|
135
135
|
},
|
|
136
|
-
formatNumber: (o,
|
|
137
|
-
const u = !
|
|
138
|
-
return
|
|
136
|
+
formatNumber: (o, a) => {
|
|
137
|
+
const u = !a || g(a) ? w(r.presets.number, a) : a;
|
|
138
|
+
return F(o, r.language, u);
|
|
139
139
|
},
|
|
140
|
-
formatDateTime: (o,
|
|
141
|
-
const u = typeof o == "string" ? new Date(o) : o,
|
|
142
|
-
return
|
|
140
|
+
formatDateTime: (o, a) => {
|
|
141
|
+
const u = typeof o == "string" ? new Date(o) : o, s = !a || g(a) ? w(r.presets.dateTime, a) : a;
|
|
142
|
+
return V(u, r.language, s);
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
|
-
function
|
|
145
|
+
function i(o) {
|
|
146
146
|
return e.add(o), () => {
|
|
147
147
|
e.delete(o);
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
return { i18n: r, subscribe:
|
|
150
|
+
return { i18n: r, subscribe: i };
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
return
|
|
152
|
+
function dt(t, e) {
|
|
153
|
+
return wt(t) || ht(t, e) || bt(t, e) || yt();
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function yt() {
|
|
156
156
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
157
157
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function bt(t, e) {
|
|
160
160
|
if (t) {
|
|
161
161
|
if (typeof t == "string") return G(t, e);
|
|
162
162
|
var n = Object.prototype.toString.call(t).slice(8, -1);
|
|
@@ -169,56 +169,56 @@ function G(t, e) {
|
|
|
169
169
|
for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n];
|
|
170
170
|
return r;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function ht(t, e) {
|
|
173
173
|
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
174
174
|
if (n != null) {
|
|
175
|
-
var r,
|
|
175
|
+
var r, i, o, a, u = [], s = !0, l = !1;
|
|
176
176
|
try {
|
|
177
|
-
if (o = (n = n.call(t)).next, e !== 0) for (; !(
|
|
177
|
+
if (o = (n = n.call(t)).next, e !== 0) for (; !(s = (r = o.call(n)).done) && (u.push(r.value), u.length !== e); s = !0) ;
|
|
178
178
|
} catch (y) {
|
|
179
|
-
|
|
179
|
+
l = !0, i = y;
|
|
180
180
|
} finally {
|
|
181
181
|
try {
|
|
182
|
-
if (!
|
|
182
|
+
if (!s && n.return != null && (a = n.return(), Object(a) !== a)) return;
|
|
183
183
|
} finally {
|
|
184
|
-
if (
|
|
184
|
+
if (l) throw i;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
return u;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function wt(t) {
|
|
191
191
|
if (Array.isArray(t)) return t;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function x(t, e) {
|
|
194
194
|
var n = Object.keys(t);
|
|
195
195
|
if (Object.getOwnPropertySymbols) {
|
|
196
196
|
var r = Object.getOwnPropertySymbols(t);
|
|
197
|
-
e && (r = r.filter(function(
|
|
198
|
-
return Object.getOwnPropertyDescriptor(t,
|
|
197
|
+
e && (r = r.filter(function(i) {
|
|
198
|
+
return Object.getOwnPropertyDescriptor(t, i).enumerable;
|
|
199
199
|
})), n.push.apply(n, r);
|
|
200
200
|
}
|
|
201
201
|
return n;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function E(t) {
|
|
204
204
|
for (var e = 1; e < arguments.length; e++) {
|
|
205
205
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
206
|
-
e % 2 ?
|
|
207
|
-
|
|
208
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
206
|
+
e % 2 ? x(Object(n), !0).forEach(function(r) {
|
|
207
|
+
Et(t, r, n[r]);
|
|
208
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : x(Object(n)).forEach(function(r) {
|
|
209
209
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
return t;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
return e =
|
|
214
|
+
function Et(t, e, n) {
|
|
215
|
+
return e = Lt(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
var e =
|
|
217
|
+
function Lt(t) {
|
|
218
|
+
var e = Pt(t, "string");
|
|
219
219
|
return typeof e == "symbol" ? e : String(e);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Pt(t, e) {
|
|
222
222
|
if (typeof t != "object" || t === null) return t;
|
|
223
223
|
var n = t[Symbol.toPrimitive];
|
|
224
224
|
if (n !== void 0) {
|
|
@@ -228,77 +228,77 @@ function vt(t, e) {
|
|
|
228
228
|
}
|
|
229
229
|
return (e === "string" ? String : Number)(t);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
232
|
-
var n =
|
|
231
|
+
function vt(t, e) {
|
|
232
|
+
var n = k(`<${t}>`);
|
|
233
233
|
return I(n(), () => e), n;
|
|
234
234
|
}
|
|
235
235
|
function A(t) {
|
|
236
236
|
return t.bind({});
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
return
|
|
238
|
+
function N(t) {
|
|
239
|
+
return E(E({}, t), {}, {
|
|
240
240
|
t: A(t.t),
|
|
241
241
|
formatNumber: A(t.formatNumber),
|
|
242
242
|
formatDateTime: A(t.formatDateTime)
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
var e =
|
|
247
|
-
formatTag:
|
|
248
|
-
})), n = e.i18n, r = e.subscribe,
|
|
249
|
-
return r(() => u(
|
|
245
|
+
function At(t) {
|
|
246
|
+
var e = pt(E(E({}, t), {}, {
|
|
247
|
+
formatTag: vt
|
|
248
|
+
})), n = e.i18n, r = e.subscribe, i = Z(N(n)), o = dt(i, 2), a = o[0], u = o[1];
|
|
249
|
+
return r(() => u(N(n))), a;
|
|
250
250
|
}
|
|
251
251
|
const d = /* @__PURE__ */ new Map();
|
|
252
|
-
function
|
|
252
|
+
function Ft(t, e, n) {
|
|
253
253
|
let r = d.get(t);
|
|
254
254
|
r || (r = /* @__PURE__ */ new Map(), d.set(t, r)), r.set(e, new Map(Object.entries(n)));
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function Vt(t) {
|
|
257
257
|
d.delete(t);
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Xt() {
|
|
260
260
|
d.clear();
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function zt(t) {
|
|
263
263
|
return d.has(t);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
var
|
|
265
|
+
function Tt(t, e, n) {
|
|
266
|
+
var i, o;
|
|
267
267
|
const r = d.get(t);
|
|
268
|
-
return ((
|
|
268
|
+
return ((i = r == null ? void 0 : r.get(n)) == null ? void 0 : i.get(e)) ?? ((o = r == null ? void 0 : r.get("en")) == null ? void 0 : o.get(e)) ?? e;
|
|
269
269
|
}
|
|
270
270
|
const S = {
|
|
271
271
|
en: { label: "English", navigatorMatch: ["en"] },
|
|
272
272
|
tr: { label: "Turkish", navigatorMatch: ["tr"] },
|
|
273
273
|
de: { label: "German", navigatorMatch: ["de"] }
|
|
274
|
-
},
|
|
274
|
+
}, z = Object.keys(
|
|
275
275
|
S
|
|
276
|
-
),
|
|
277
|
-
function
|
|
276
|
+
), C = z.map((t) => ({ id: t, ...S[t] }));
|
|
277
|
+
function Ct(t) {
|
|
278
278
|
return S[t].label;
|
|
279
279
|
}
|
|
280
|
-
const
|
|
281
|
-
function
|
|
282
|
-
return
|
|
280
|
+
const B = "en";
|
|
281
|
+
function K(t) {
|
|
282
|
+
return C.some((e) => e.id === t);
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Ot(t, e, n) {
|
|
285
285
|
const r = (t ?? "").toLowerCase();
|
|
286
286
|
if (!r) return n;
|
|
287
|
-
for (const
|
|
288
|
-
if (
|
|
287
|
+
for (const i of e)
|
|
288
|
+
if (i.navigatorMatch.some(
|
|
289
289
|
(o) => r === o || r.startsWith(`${o}-`)
|
|
290
290
|
))
|
|
291
|
-
return
|
|
291
|
+
return i.id;
|
|
292
292
|
return n;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
return
|
|
294
|
+
function Bt(t) {
|
|
295
|
+
return Ot(
|
|
296
296
|
t,
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
C,
|
|
298
|
+
B
|
|
299
299
|
);
|
|
300
300
|
}
|
|
301
|
-
async function
|
|
301
|
+
async function St(t) {
|
|
302
302
|
switch (t) {
|
|
303
303
|
case "tr":
|
|
304
304
|
return (await import("./tr-CxuAFkCi.js")).default;
|
|
@@ -306,11 +306,11 @@ async function jt(t) {
|
|
|
306
306
|
return (await import("./de-CEltsqV5.js")).default;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
const
|
|
309
|
+
const p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
|
|
310
310
|
function W(t) {
|
|
311
|
-
return
|
|
311
|
+
return K(t) && t !== "en";
|
|
312
312
|
}
|
|
313
|
-
async function
|
|
313
|
+
async function jt(t) {
|
|
314
314
|
const e = p.get(t);
|
|
315
315
|
if (e) return e;
|
|
316
316
|
if (!W(t)) {
|
|
@@ -318,110 +318,112 @@ async function Rt(t) {
|
|
|
318
318
|
return p.set(t, n), n;
|
|
319
319
|
}
|
|
320
320
|
try {
|
|
321
|
-
const r = { ...await
|
|
321
|
+
const r = { ...await St(t), ...m.get(t) ?? {} };
|
|
322
322
|
return p.set(t, r), r;
|
|
323
323
|
} catch (n) {
|
|
324
|
-
return
|
|
324
|
+
return H(new Error(`[i18n] the "${t}" dictionary could not be loaded`, { cause: n })), null;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
function j(t) {
|
|
328
328
|
const e = Y(t);
|
|
329
329
|
if (e === "en" && !m.has("en")) return Promise.resolve();
|
|
330
330
|
const n = p.get(e);
|
|
331
|
-
return n ? (
|
|
332
|
-
r &&
|
|
331
|
+
return n ? (c.language === e && c.setLocales(n), Promise.resolve()) : jt(e).then((r) => {
|
|
332
|
+
r && c.language === e && c.setLocales(r);
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
335
|
function Y(t) {
|
|
336
|
-
return
|
|
337
|
-
|
|
336
|
+
return K(t) || m.has(t) ? t : (H(
|
|
337
|
+
new Error(
|
|
338
|
+
`[i18n] unsupported language "${t}" — English is shown. Supported: ${[...z, ...m.keys()].join(", ")}`
|
|
339
|
+
)
|
|
338
340
|
), "en");
|
|
339
341
|
}
|
|
340
|
-
const
|
|
341
|
-
language:
|
|
342
|
+
const c = At({
|
|
343
|
+
language: B,
|
|
342
344
|
locales: {}
|
|
343
|
-
}), [R,
|
|
345
|
+
}), [R, Rt] = Q(null);
|
|
344
346
|
let b = null, h = null;
|
|
345
|
-
function
|
|
346
|
-
if (b == null || b(), b = null, t && h === null && (h =
|
|
347
|
+
function Kt(t) {
|
|
348
|
+
if (b == null || b(), b = null, t && h === null && (h = c.language), Rt(() => t), !t) {
|
|
347
349
|
if (h !== null) {
|
|
348
350
|
const e = h;
|
|
349
|
-
h = null,
|
|
351
|
+
h = null, c.setLanguage(e), j(e);
|
|
350
352
|
}
|
|
351
353
|
return;
|
|
352
354
|
}
|
|
353
|
-
|
|
354
|
-
b = e,
|
|
355
|
+
q((e) => {
|
|
356
|
+
b = e, J(() => {
|
|
355
357
|
const n = t.language();
|
|
356
|
-
n &&
|
|
358
|
+
n && c.language !== n && c.setLanguage(n);
|
|
357
359
|
});
|
|
358
360
|
});
|
|
359
361
|
}
|
|
360
|
-
function
|
|
362
|
+
function _t(t, e) {
|
|
361
363
|
const n = typeof HTMLElement < "u";
|
|
362
364
|
return typeof t == "string" ? t : Array.isArray(t) ? t.map((r) => typeof r == "string" ? r : n && r instanceof HTMLElement ? r.textContent ?? "" : "").join("") : n && t instanceof HTMLElement ? t.textContent ?? e : e;
|
|
363
365
|
}
|
|
364
|
-
function
|
|
366
|
+
function U(t, e) {
|
|
365
367
|
const n = R();
|
|
366
|
-
return n ? n.t(t, e) : (
|
|
368
|
+
return n ? n.t(t, e) : (c.language, _t(c.t(t, e), t));
|
|
367
369
|
}
|
|
368
|
-
function
|
|
370
|
+
function $t(t, e) {
|
|
369
371
|
const n = R();
|
|
370
|
-
return n != null && n.pluginText ? n.pluginText(t, e) :
|
|
372
|
+
return n != null && n.pluginText ? n.pluginText(t, e) : Tt(t, e, Gt());
|
|
371
373
|
}
|
|
372
|
-
function
|
|
373
|
-
if (typeof t == "string") return
|
|
374
|
+
function Dt(t) {
|
|
375
|
+
if (typeof t == "string") return U(t);
|
|
374
376
|
switch (t.kind) {
|
|
375
377
|
case "message": {
|
|
376
378
|
const e = {};
|
|
377
379
|
for (const [n, r] of Object.entries(t.values))
|
|
378
|
-
e[n] = typeof r == "number" ? r :
|
|
379
|
-
return
|
|
380
|
+
e[n] = typeof r == "number" ? r : Dt(r);
|
|
381
|
+
return U(t.key, e);
|
|
380
382
|
}
|
|
381
383
|
case "plugin":
|
|
382
|
-
return
|
|
384
|
+
return $t(t.pluginId, t.text);
|
|
383
385
|
case "verbatim":
|
|
384
386
|
return t.text;
|
|
385
387
|
}
|
|
386
388
|
}
|
|
387
|
-
function
|
|
389
|
+
function Mt(t) {
|
|
388
390
|
const e = Y(t);
|
|
389
|
-
return
|
|
391
|
+
return c.setLanguage(e), (e !== "en" || m.has("en")) && j(e), typeof document < "u" && (document.documentElement.lang = e), e;
|
|
390
392
|
}
|
|
391
|
-
function
|
|
392
|
-
return
|
|
393
|
+
function Wt(t) {
|
|
394
|
+
return Mt(t);
|
|
393
395
|
}
|
|
394
|
-
function
|
|
396
|
+
function Gt() {
|
|
395
397
|
var t;
|
|
396
|
-
return ((t = R()) == null ? void 0 : t.language()) ??
|
|
398
|
+
return ((t = R()) == null ? void 0 : t.language()) ?? c.language;
|
|
397
399
|
}
|
|
398
|
-
function
|
|
400
|
+
function Yt(t, e) {
|
|
399
401
|
const n = { ...m.get(t) ?? {}, ...e };
|
|
400
402
|
m.set(t, n);
|
|
401
403
|
const r = p.get(t);
|
|
402
|
-
(r || !W(t)) && p.set(t, { ...r ?? {}, ...n }),
|
|
404
|
+
(r || !W(t)) && p.set(t, { ...r ?? {}, ...n }), c.language === t && j(t);
|
|
403
405
|
}
|
|
404
406
|
export {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
407
|
+
B as D,
|
|
408
|
+
C as S,
|
|
409
|
+
z as a,
|
|
410
|
+
c as b,
|
|
411
|
+
Xt as c,
|
|
412
|
+
Ct as d,
|
|
411
413
|
j as e,
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
414
|
+
Ot as f,
|
|
415
|
+
Gt as g,
|
|
416
|
+
zt as h,
|
|
417
|
+
K as i,
|
|
418
|
+
Tt as j,
|
|
419
|
+
Wt as k,
|
|
420
|
+
Dt as l,
|
|
421
|
+
Bt as m,
|
|
422
|
+
Yt as n,
|
|
423
|
+
$t as o,
|
|
424
|
+
Kt as p,
|
|
425
|
+
Ft as r,
|
|
426
|
+
Mt as s,
|
|
427
|
+
U as t,
|
|
428
|
+
Vt as u
|
|
427
429
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const O=require("solid-js"),ne=require("solid-js/store"),N=require("solid-js/web"),B=require("./errorHandler-DoDAPpv2.cjs");function C(e,t,n){return new Intl.NumberFormat(t,n).format(e)}function K(e,t,n){return new Intl.DateTimeFormat(t,n).format(e)}var l;(function(e){e.number="number",e.plural="plural",e.date="date",e.tag="tag"})(l||(l={}));function A(e){return typeof e=="number"}function g(e){return typeof e=="string"}function re(e){return e instanceof Date}function oe(e){return typeof e=="function"}function ue(e){return e!==null&&typeof e=="object"}function P(e,t){return g(t)?e==null?void 0:e[t]:e==null?void 0:e.default}function ie(e,t,n,r={},i){if(typeof n=="string")return n;const[o,a,u]=n,c=r[o];if(A(c)&&(!a||a===l.number))return C(c,e,P(t.number,u));if(re(c)||(g(c)||A(c))&&a===l.date)return K(new Date(c),e,P(t.dateTime,u));if(a===l.tag){const f=g(u)||Array.isArray(u)?S(e,t,u,r,i):void 0;if(oe(c))return c(f);if(i){const y=g(c)?c:o;return i(y,f)}return""}else if(a===l.plural&&A(c)&&ue(u)){if(c===0&&u["=0"])return u["=0"];const f=new Intl.PluralRules(e).select(c),y=u[f]||u.other||"";return S(e,t,y,r,i)}else return String(c)}function S(e,t,n,r={},i){if(Array.isArray(n)){const o=n.map(a=>ie(e,t,a,r,i));return o.every(g)?o.join(""):o}return n}const x="var",v="%%%",W="num|number|plural|date",E="=0|zero|one|two|few|many|other",ae=new RegExp(`((${E})\\s{)`,"g"),ce=new RegExp(`^(${E})\\s{(.+?)}$`),se=/(<(\w+?)>(.+?)<\/\w+?>|<(\w+?)(| )\/>)/g,le=/^<(\w+?)(?:(?:| )\/>|>(.+?)<\/\w+?>)$/,fe=new RegExp(`{(\\w+?)(, (${W})(, ((${E}) {.+?}+|\\w+?)|)|)}`,"g"),ge=new RegExp(`^{(\\w+?)(?:, (${W})(?:, ((?:${E}) {.+?}+|\\w+?)|)|)}$`);function me(e){if(e==="num"||e==="number")return l.number;if(e==="plural")return l.plural;if(e==="date")return l.date}function H(e,t,n){return t.reduce((r,i,o)=>r.replace(i,`${v}${x}${o}${v}`),e).split(v).filter(r=>r!=="").map(r=>{const i=r.match(new RegExp(`^${x}(\\d+?)$`));return i&&i[1]?n(t[i[1]],r):r})}function F(e){return e.reduceRight((t,n)=>!n&&!t.length?t:[n,...t],[])}function pe(e){return e!==null&&e.length===3}function q(e){return e!==null&&[...e].filter(Boolean).slice(1)}function de(e){return e.replace(ae,`
|
|
2
|
+
$1`).split(`
|
|
3
|
+
`).map(t=>t.trim().match(ce)).filter(pe).reduce((t,n)=>(t[n[1]]=j(n[2]),t),{})}function ye(e,t){return e===l.plural&&t?de(t):t}function j(e){const t=[e].reduce((n,r)=>{const i=r.match(se);return n.push(...i?H(e,i,(o,a)=>{const u=q(o.match(le));return u?F([u[0],l.tag,u[1]&&j(u[1])]):a}):[r]),n},[]).reduce((n,r)=>{const i=g(r)&&r.match(fe);return n.push(...i?H(r,i,(o,a)=>{const u=q(o.match(ge));if(!u)return a;const c=me(u[1]);return F([u[0],c,ye(c,u[2])])}):[r]),n},[]);return t.length===1&&typeof t[0]=="string"?t[0]:t}function be(e){const t=new Set;function n(){[...t.values()].forEach(o=>o())}const r={language:e.language,locales:Object.assign({},e.locales),presets:Object.assign({},e.presets),setLanguage:o=>{r.language=o,n()},setLocales:o=>{r.locales=Object.assign(Object.assign({},r.locales),{[r.language]:Object.assign(Object.assign({},r.locales[r.language]),o)}),n()},t:(o,a)=>{var u;const c=g(o)?void 0:o.id,f=g(o)?o:o.message;return S(r.language,r.presets,j(((u=r.locales[r.language])===null||u===void 0?void 0:u[c||f])||f),a,e.formatTag)},formatNumber:(o,a)=>{const u=!a||g(a)?P(r.presets.number,a):a;return C(o,r.language,u)},formatDateTime:(o,a)=>{const u=typeof o=="string"?new Date(o):o,c=!a||g(a)?P(r.presets.dateTime,a):a;return K(u,r.language,c)}};function i(o){return t.add(o),()=>{t.delete(o)}}return{i18n:r,subscribe:i}}function Le(e,t){return we(e)||Ee(e,t)||he(e,t)||Pe()}function Pe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function he(e,t){if(e){if(typeof e=="string")return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V(e,t)}}function V(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,u=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(y){f=!0,i=y}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return u}}function we(e){if(Array.isArray(e))return e}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X(Object(n),!0).forEach(function(r){Ae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ae(e,t,n){return t=ve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(e){var t=Te(e,"string");return typeof t=="symbol"?t:String(t)}function Te(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oe(e,t){var n=N.template(`<${e}>`);return N.insert(n(),()=>t),n}function T(e){return e.bind({})}function z(e){return h(h({},e),{},{t:T(e.t),formatNumber:T(e.formatNumber),formatDateTime:T(e.formatDateTime)})}function Se(e){var t=be(h(h({},e),{},{formatTag:Oe})),n=t.i18n,r=t.subscribe,i=ne.createStore(z(n)),o=Le(i,2),a=o[0],u=o[1];return r(()=>u(z(n))),a}const d=new Map;function _e(e,t,n){let r=d.get(e);r||(r=new Map,d.set(e,r)),r.set(t,new Map(Object.entries(n)))}function je(e){d.delete(e)}function Re(){d.clear()}function De(e){return d.has(e)}function I(e,t,n){var i,o;const r=d.get(e);return((i=r==null?void 0:r.get(n))==null?void 0:i.get(t))??((o=r==null?void 0:r.get("en"))==null?void 0:o.get(t))??t}const R={en:{label:"English",navigatorMatch:["en"]},tr:{label:"Turkish",navigatorMatch:["tr"]},de:{label:"German",navigatorMatch:["de"]}},D=Object.keys(R),$=D.map(e=>({id:e,...R[e]}));function $e(e){return R[e].label}const G="en";function M(e){return $.some(t=>t.id===e)}function Y(e,t,n){const r=(e??"").toLowerCase();if(!r)return n;for(const i of t)if(i.navigatorMatch.some(o=>r===o||r.startsWith(`${o}-`)))return i.id;return n}function Ge(e){return Y(e,$,G)}async function Me(e){switch(e){case"tr":return(await Promise.resolve().then(()=>require("./tr-BDbiY5YD.cjs"))).default;case"de":return(await Promise.resolve().then(()=>require("./de-DRobPEJV.cjs"))).default}}const p=new Map,m=new Map;function J(e){return M(e)&&e!=="en"}async function Ue(e){const t=p.get(e);if(t)return t;if(!J(e)){const n=m.get(e)??{};return p.set(e,n),n}try{const r={...await Me(e),...m.get(e)??{}};return p.set(e,r),r}catch(n){return B.onUnexpectedError(new Error(`[i18n] the "${e}" dictionary could not be loaded`,{cause:n})),null}}function w(e){const t=Q(e);if(t==="en"&&!m.has("en"))return Promise.resolve();const n=p.get(t);return n?(s.language===t&&s.setLocales(n),Promise.resolve()):Ue(t).then(r=>{r&&s.language===t&&s.setLocales(r)})}function Q(e){return M(e)||m.has(e)?e:(B.onUnexpectedError(new Error(`[i18n] unsupported language "${e}" — English is shown. Supported: ${[...D,...m.keys()].join(", ")}`)),"en")}const s=Se({language:G,locales:{}}),[U,Ne]=O.createSignal(null);let b=null,L=null;function xe(e){if(b==null||b(),b=null,e&&L===null&&(L=s.language),Ne(()=>e),!e){if(L!==null){const t=L;L=null,s.setLanguage(t),w(t)}return}O.createRoot(t=>{b=t,O.createEffect(()=>{const n=e.language();n&&s.language!==n&&s.setLanguage(n)})})}function He(e,t){const n=typeof HTMLElement<"u";return typeof e=="string"?e:Array.isArray(e)?e.map(r=>typeof r=="string"?r:n&&r instanceof HTMLElement?r.textContent??"":"").join(""):n&&e instanceof HTMLElement?e.textContent??t:t}function _(e,t){const n=U();return n?n.t(e,t):(s.language,He(s.t(e,t),e))}function Z(e,t){const n=U();return n!=null&&n.pluginText?n.pluginText(e,t):I(e,t,te())}function k(e){if(typeof e=="string")return _(e);switch(e.kind){case"message":{const t={};for(const[n,r]of Object.entries(e.values))t[n]=typeof r=="number"?r:k(r);return _(e.key,t)}case"plugin":return Z(e.pluginId,e.text);case"verbatim":return e.text}}function ee(e){const t=Q(e);return s.setLanguage(t),(t!=="en"||m.has("en"))&&w(t),typeof document<"u"&&(document.documentElement.lang=t),t}function Fe(e){return ee(e)}function te(){var e;return((e=U())==null?void 0:e.language())??s.language}function qe(e,t){const n={...m.get(e)??{},...t};m.set(e,n);const r=p.get(e);(r||!J(e))&&p.set(e,{...r??{},...n}),s.language===e&&w(e)}exports.DEFAULT_LANGUAGE_ID=G;exports.SUPPORTED_LANGUAGES=$;exports.SUPPORTED_LANGUAGE_IDS=D;exports.appI18n=s;exports.clearPluginLocales=Re;exports.ensureLocaleLoaded=w;exports.getLocale=te;exports.hasPluginLocale=De;exports.isSupportedLanguage=M;exports.labelText=k;exports.languageLabel=$e;exports.matchNavigatorLanguage=Ge;exports.provideHostTranslator=xe;exports.registerPluginLocale=_e;exports.resolveLanguageByNavigator=Y;exports.resolvePluginText=I;exports.setAppLanguage=ee;exports.setLocale=Fe;exports.setMessages=qe;exports.t=_;exports.translatePluginText=Z;exports.unregisterPluginLocale=je;
|