@vokril/ui-solid 0.29.0 → 0.32.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 +121 -0
- package/README.md +90 -0
- package/dist/AttributeGrid-CNkALmJq.cjs +1 -0
- package/dist/AttributeGrid-DnuTPJ_P.js +320 -0
- package/dist/Button-CX7mylBT.js +308 -0
- package/dist/Button-lMUW5P3O.cjs +1 -0
- package/dist/CommandPalette-DAR9VMqY.cjs +2 -0
- package/dist/CommandPalette-DlLcdd4o.js +4029 -0
- package/dist/CopyButton-BVvv5M8g.js +63 -0
- package/dist/CopyButton-Dnd8_2Lj.cjs +1 -0
- package/dist/DateRangePicker-BlJWtJBA.cjs +9 -0
- package/dist/DateRangePicker-CHmUU4PA.js +552 -0
- package/dist/GuidedTour-9rqvNB_m.js +483 -0
- package/dist/GuidedTour-DbXeuTc7.cjs +1 -0
- package/dist/{HostPortal-CXGUUhP8.js → HostPortal-De65s6CU.js} +1 -1
- package/dist/HostPortal-Dm4BmY8M.cjs +1 -0
- package/dist/{IconPicker-DYqNi5ud.js → IconPicker-CsYW8CXe.js} +4 -4
- package/dist/IconPicker-D-GU1mD3.cjs +1 -0
- package/dist/Input-C3rEQffK.js +382 -0
- package/dist/Input-CHtvL4_4.cjs +1 -0
- package/dist/Modal-3L6p7Dwt.js +599 -0
- package/dist/Modal-CtrWEnJ7.cjs +1 -0
- package/dist/OverlayScrollArea-Cr0VAApT.cjs +1 -0
- package/dist/OverlayScrollArea-CrrPFLq9.js +180 -0
- package/dist/{PageSkeleton-CLnJO6uD.js → PageSkeleton-BRuqaDzr.js} +372 -371
- package/dist/PageSkeleton-Cz2bckO4.cjs +30 -0
- package/dist/Popover-CLTXG8W0.cjs +1 -0
- package/dist/Popover-DkqGvMNy.js +207 -0
- package/dist/SearchableSelect-C-lV1vSv.cjs +1 -0
- package/dist/SearchableSelect-Du12kcI9.js +328 -0
- package/dist/StatusBarNotificationBell-CNs_obmZ.cjs +50 -0
- package/dist/{StatusBarNotificationBell-7Izs_msz.js → StatusBarNotificationBell-CgsYrrpj.js} +5205 -4850
- package/dist/Stepper-DzI-gtKd.js +586 -0
- package/dist/Stepper-rpu7lpzB.cjs +1 -0
- package/dist/{Textarea-CeAGf08O.cjs → Textarea-D4nYoQ0J.cjs} +1 -1
- package/dist/{Textarea-B5QqqKnI.js → Textarea-DOzZCc-O.js} +1 -1
- package/dist/TimeSeriesChart-BJqQpeEJ.cjs +1 -0
- package/dist/TimeSeriesChart-DvAhuyVl.js +442 -0
- package/dist/ToggleButton-B-hBpdzk.js +2144 -0
- package/dist/ToggleButton-BMH1A-IX.cjs +1 -0
- package/dist/_internal/app/onboarding/pageTourState.d.cts +0 -2
- package/dist/_internal/app/onboarding/pageTourState.d.ts +0 -2
- package/dist/_internal/app/onboarding/pageTourTypes.d.cts +2 -1
- package/dist/_internal/app/onboarding/pageTourTypes.d.ts +2 -1
- package/dist/_internal/contract/notification.d.cts +28 -3
- package/dist/_internal/contract/notification.d.ts +28 -3
- package/dist/_internal/contract/notificationCatalog.d.cts +2 -0
- package/dist/_internal/contract/notificationCatalog.d.ts +2 -0
- package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -8
- package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -8
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/anchoredLayout-CBjQ1etD.cjs +1 -0
- package/dist/anchoredLayout-E0mqCWxk.js +233 -0
- package/dist/base.css +3 -3
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/context/DesktopContextMenuContext.d.cts +8 -1
- package/dist/context/DesktopContextMenuContext.d.ts +8 -1
- package/dist/createDialogShellFocus-DI1rUvYf.js +282 -0
- package/dist/createDialogShellFocus-kzkNSLWS.cjs +1 -0
- package/dist/createResizableSidebar--Ve6DbDu.js +504 -0
- package/dist/createResizableSidebar-DlVAuq5t.cjs +1 -0
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +229 -228
- package/dist/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +4 -4
- package/dist/{focusModality-BISb6-yg.cjs → focusModality-D704CJVN.cjs} +1 -1
- package/dist/{focusModality-FoLPWF-_.js → focusModality-ROUF6YGR.js} +1 -1
- package/dist/forms/Input.d.cts +20 -0
- package/dist/forms/Input.d.ts +20 -0
- package/dist/forms/InputMessage.d.cts +19 -0
- package/dist/forms/InputMessage.d.ts +19 -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/host/index.cjs +1 -1
- package/dist/host/index.d.cts +1 -0
- package/dist/host/index.d.ts +1 -0
- package/dist/host/index.js +38 -39
- package/dist/host/kitHost.d.cts +8 -0
- package/dist/host/kitHost.d.ts +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +936 -928
- package/dist/kitHost-BMMWpU4w.js +47 -0
- package/dist/kitHost-u0-mKvEK.cjs +1 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/layout/resizeCarry.d.cts +17 -0
- package/dist/layout/resizeCarry.d.ts +17 -0
- package/dist/mainRealmDom-BcPuVvcy.cjs +1 -0
- package/dist/mainRealmDom-DydRT2Us.js +54 -0
- package/dist/nativeTitleHold-A9jUISgQ.js +170 -0
- package/dist/nativeTitleHold-B7Ou-W9b.cjs +1 -0
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notificationCatalog-CRERhjp6.js +168 -0
- package/dist/notificationCatalog-DqTkd7M6.cjs +1 -0
- package/dist/notifications/NotificationItem.d.cts +9 -0
- package/dist/notifications/NotificationItem.d.ts +9 -0
- package/dist/notifications/NotificationsCenter.d.cts +18 -0
- package/dist/notifications/NotificationsCenter.d.ts +18 -0
- package/dist/notifications/RunningProgressCards.d.cts +3 -0
- package/dist/notifications/RunningProgressCards.d.ts +3 -0
- package/dist/notifications/fireNotification.d.cts +35 -16
- package/dist/notifications/fireNotification.d.ts +35 -16
- package/dist/notifications/holdWhileShown.d.cts +18 -0
- package/dist/notifications/holdWhileShown.d.ts +18 -0
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.d.cts +1 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.js +55 -52
- package/dist/notifications/nativeEngine.d.cts +38 -5
- package/dist/notifications/nativeEngine.d.ts +38 -5
- package/dist/notifications/notificationEntryList.d.cts +104 -0
- package/dist/notifications/notificationEntryList.d.ts +104 -0
- package/dist/notifications/notificationService.d.cts +23 -2
- package/dist/notifications/notificationService.d.ts +23 -2
- package/dist/notifications/toast.d.cts +3 -0
- package/dist/notifications/toast.d.ts +3 -0
- package/dist/notifications/toastCorner.d.cts +8 -0
- package/dist/notifications/toastCorner.d.ts +8 -0
- package/dist/notifications/toastFilterPolicy.d.cts +33 -1
- package/dist/notifications/toastFilterPolicy.d.ts +33 -1
- package/dist/overlay/Modal.d.cts +19 -0
- package/dist/overlay/Modal.d.ts +19 -0
- package/dist/overlay/backgroundInert.d.cts +6 -2
- package/dist/overlay/backgroundInert.d.ts +6 -2
- package/dist/overlay/command-palette/CommandPalette.d.cts +12 -0
- package/dist/overlay/command-palette/CommandPalette.d.ts +12 -0
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -1
- package/dist/overlay/index.d.ts +2 -1
- package/dist/overlay/index.js +80 -75
- package/dist/overlay/modalDefaults.d.cts +23 -0
- package/dist/overlay/modalDefaults.d.ts +23 -0
- package/dist/overlay/modalViewport.d.cts +16 -2
- package/dist/overlay/modalViewport.d.ts +16 -2
- package/dist/overlay/nativeTitleHold.d.cts +24 -0
- package/dist/overlay/nativeTitleHold.d.ts +24 -0
- package/dist/ownerAnimationFrame-DzFcMSmn.js +19 -0
- package/dist/ownerAnimationFrame-T6jf6qYC.cjs +1 -0
- package/dist/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/{pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
- package/dist/rowSource-BRGZHclZ.js +1231 -0
- package/dist/rowSource-C3zlzAtR.cjs +1 -0
- package/dist/server/AttributeGrid-B9j_c2wM.js +281 -0
- package/dist/server/AttributeGrid-BALCTvOI.cjs +1 -0
- package/dist/server/Button-DHefmmYz.cjs +1 -0
- package/dist/server/Button-ft_8RNJj.js +226 -0
- package/dist/server/CommandPalette-CHdfYtxs.js +3305 -0
- package/dist/server/CommandPalette-D0Prl7by.cjs +1 -0
- package/dist/server/CopyButton-CiYcsQcI.js +64 -0
- package/dist/server/CopyButton-D2q7tQ0m.cjs +1 -0
- package/dist/server/DateRangePicker-C6wZI7No.js +487 -0
- package/dist/server/DateRangePicker-CF70G2yr.cjs +9 -0
- package/dist/server/GuidedTour-BmDAWNfN.cjs +1 -0
- package/dist/server/GuidedTour-DYBhprVK.js +400 -0
- package/dist/server/{HostPortal-CXGUUhP8.js → HostPortal-C4xdfRyM.js} +1 -1
- package/dist/server/HostPortal-CwyePpDX.cjs +1 -0
- package/dist/server/{IconPicker-B4aXspLw.js → IconPicker--Xso9fUf.js} +5 -5
- package/dist/server/IconPicker-BTI4cNgf.cjs +1 -0
- package/dist/server/Input-UX0Hk53M.cjs +1 -0
- package/dist/server/Input-V9Szcw6w.js +249 -0
- package/dist/server/Modal-CBnNlaTx.cjs +1 -0
- package/dist/server/Modal-D9CjieKK.js +426 -0
- package/dist/server/OverlayScrollArea-DuwGRSMm.cjs +1 -0
- package/dist/server/OverlayScrollArea-h6G3yk6U.js +66 -0
- package/dist/server/{PageSkeleton-DoxlE_bD.js → PageSkeleton-CFs7AdTA.js} +267 -266
- package/dist/server/PageSkeleton-D0KOKLsb.cjs +30 -0
- package/dist/server/Popover-BBDBIpT6.cjs +1 -0
- package/dist/server/Popover-e9JpRh11.js +439 -0
- package/dist/server/SearchableSelect-B2ZFnp6i.js +205 -0
- package/dist/server/SearchableSelect-BBu5cP6P.cjs +1 -0
- package/dist/server/{StatusBarNotificationBell-D8Jt3PXI.js → StatusBarNotificationBell-CJJFE4rf.js} +5043 -4698
- package/dist/server/StatusBarNotificationBell-Cxs_bVKX.cjs +49 -0
- package/dist/server/Stepper-C04rOZcI.cjs +1 -0
- package/dist/server/Stepper-CVAOsf3o.js +381 -0
- package/dist/server/{Textarea-BQf2lL59.cjs → Textarea-BG6F8taO.cjs} +1 -1
- package/dist/server/{Textarea-BTH48NET.js → Textarea-DM4zpgWo.js} +1 -1
- package/dist/server/TimeSeriesChart-kuuqH7we.js +242 -0
- package/dist/server/TimeSeriesChart-tWbSF6fJ.cjs +1 -0
- package/dist/server/ToggleButton-BdqufQ7G.js +1344 -0
- package/dist/server/ToggleButton-Bo24NK3o.cjs +1 -0
- package/dist/server/{VpTrash-Dlq8o6Uv.js → VpTrash-CZMWCIpF.js} +84 -70
- package/dist/server/VpTrash-DiczWhwm.cjs +1 -0
- package/dist/server/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/createDialogShellFocus-DvoNWpIu.cjs +1 -0
- package/dist/server/createDialogShellFocus-J8wqPlsa.js +370 -0
- package/dist/server/{createResizableSidebar-BImbKlLe.js → createResizableSidebar-CIrhLNKW.js} +104 -102
- package/dist/server/createResizableSidebar-DcZ2Cnpf.cjs +1 -0
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +154 -153
- package/dist/server/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/server/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +4 -4
- package/dist/server/{focusModality-nWNVX3JG.js → focusModality-Bu4Kuwm4.js} +1 -1
- package/dist/server/{focusModality-D-nxv8Er.cjs → focusModality-G2i60_7y.cjs} +1 -1
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +9 -9
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +38 -39
- package/dist/server/{index-UIjsx3oJ.js → index-CPUZyKo7.js} +3604 -3617
- package/dist/server/index-CVbkasNJ.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +656 -649
- package/dist/server/kitHost-BMMWpU4w.js +47 -0
- package/dist/server/kitHost-u0-mKvEK.cjs +1 -0
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/mainRealmDom-BuGEeM_r.cjs +1 -0
- package/dist/server/{EmptyState-Csydyy_7.js → mainRealmDom-CzckS_ss.js} +12 -8
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notificationCatalog-CEDltsJS.cjs +1 -0
- package/dist/server/notificationCatalog-Cl1dH4aJ.js +122 -0
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +55 -52
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +72 -68
- package/dist/server/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/server/{pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
- package/dist/server/rowSource-C1F4l0xZ.cjs +1 -0
- package/dist/server/rowSource-CoeHYNsV.js +1123 -0
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +29 -26
- package/dist/server/tokens/palette/index.cjs +1 -0
- package/dist/server/tokens/palette/index.js +31 -0
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +11 -10
- package/dist/solid/_internal/app/onboarding/pageTourState.js +12 -23
- package/dist/solid/charts/TimeSeriesChart.jsx +23 -22
- package/dist/solid/desktop/WindowControls.jsx +6 -3
- package/dist/solid/feedback/Badge.jsx +12 -19
- package/dist/solid/feedback/ErrorBoundary.jsx +18 -14
- package/dist/solid/forms/Button.jsx +18 -23
- package/dist/solid/forms/Checkbox.jsx +5 -4
- package/dist/solid/forms/Combobox.jsx +12 -10
- package/dist/solid/forms/CopyButton.jsx +7 -4
- package/dist/solid/forms/DatePicker.jsx +12 -7
- package/dist/solid/forms/Dropzone.jsx +17 -13
- package/dist/solid/forms/FilePickerButton.jsx +5 -4
- package/dist/solid/forms/HiddenFileInput.jsx +3 -1
- package/dist/solid/forms/Input.jsx +31 -5
- package/dist/solid/forms/Input.module.css.js +1 -0
- package/dist/solid/forms/InputMessage.jsx +87 -0
- package/dist/solid/forms/MultiSearchableSelect.jsx +8 -7
- package/dist/solid/forms/NumberInput.jsx +25 -19
- package/dist/solid/forms/Picker.jsx +8 -6
- package/dist/solid/forms/PressableSurface.jsx +17 -23
- package/dist/solid/forms/RadioGroup.jsx +4 -3
- package/dist/solid/forms/SearchInput.jsx +4 -3
- package/dist/solid/forms/SearchableSelect.jsx +4 -3
- package/dist/solid/forms/SegmentedControl.jsx +4 -3
- package/dist/solid/forms/TagInput.jsx +22 -16
- package/dist/solid/forms/ToggleButton.jsx +4 -3
- package/dist/solid/forms/date-range-picker/DateRangePicker.jsx +12 -10
- package/dist/solid/grid/Pagination.jsx +7 -3
- package/dist/solid/host/kitHost.jsx +5 -1
- package/dist/solid/layout/PageHeaderIcon.jsx +11 -9
- package/dist/solid/layout/ResizableSplitPane.jsx +4 -4
- package/dist/solid/layout/ResizeHandle.jsx +15 -4
- package/dist/solid/layout/resizeCarry.js +31 -0
- package/dist/solid/navigation/Accordion.jsx +8 -5
- package/dist/solid/navigation/Tabs.jsx +11 -8
- package/dist/solid/notifications/NotificationHost.jsx +5 -18
- package/dist/solid/notifications/NotificationItem.jsx +62 -58
- package/dist/solid/notifications/NotificationPanel.jsx +27 -9
- package/dist/solid/notifications/NotificationsCenter.jsx +72 -12
- package/dist/solid/notifications/RunningProgressCards.jsx +1 -1
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +12 -6
- package/dist/solid/notifications/catalogAdapter.js +1 -0
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +2 -0
- package/dist/solid/notifications/fireNotification.js +21 -16
- package/dist/solid/notifications/holdWhileShown.js +30 -0
- package/dist/solid/notifications/index.js +1 -0
- package/dist/solid/notifications/nativeEngine.js +52 -1
- package/dist/solid/notifications/notificationEntryList.js +184 -0
- package/dist/solid/notifications/notificationService.js +20 -4
- package/dist/solid/notifications/toast.js +58 -7
- package/dist/solid/notifications/toastCorner.js +3 -0
- package/dist/solid/notifications/toastFilterPolicy.js +12 -0
- package/dist/solid/overlay/ConfirmDialog.jsx +21 -16
- package/dist/solid/overlay/DangerousActionDialogParts.jsx +5 -3
- package/dist/solid/overlay/Disclosure.jsx +4 -3
- package/dist/solid/overlay/Drawer.jsx +2 -1
- package/dist/solid/overlay/DropdownMenu.jsx +6 -4
- package/dist/solid/overlay/FloatingWindow.jsx +3 -3
- package/dist/solid/overlay/HoverTooltip.jsx +9 -7
- package/dist/solid/overlay/Modal.jsx +81 -34
- package/dist/solid/overlay/OverlayScrollArea.jsx +5 -3
- package/dist/solid/overlay/Tooltip.jsx +5 -4
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +11 -11
- package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +73 -57
- package/dist/solid/overlay/index.js +2 -1
- package/dist/solid/overlay/menu/MenuParts.jsx +11 -8
- package/dist/solid/overlay/modalDefaults.jsx +10 -0
- package/dist/solid/overlay/modalViewport.js +17 -4
- package/dist/solid/overlay/nativeTitleHold.js +33 -0
- package/dist/solid/overlay/popover/Popover.jsx +17 -11
- package/dist/solid/overlay/tooltipDirective.js +3 -11
- package/dist/solid/overlay/tour/GuidedTour.jsx +18 -14
- package/dist/solid/tokens/index.js +1 -0
- package/dist/solid/tokens/palette/index.js +1 -0
- package/dist/solid/tokens/palette/paletteContract.js +27 -0
- package/dist/solid/tree/TreeRow.jsx +19 -16
- package/dist/solid/tree/TreeSurface.jsx +15 -14
- package/dist/solid/widgets/SettingsField.jsx +11 -10
- package/dist/style.css +4 -3
- package/dist/theme.css +3 -2
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +1 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +29 -26
- package/dist/tokens/palette/index.cjs +1 -0
- package/dist/tokens/palette/index.d.cts +12 -0
- package/dist/tokens/palette/index.d.ts +12 -0
- package/dist/tokens/palette/index.js +31 -0
- package/dist/tokens/palette/paletteContract.d.cts +17 -0
- package/dist/tokens/palette/paletteContract.d.ts +17 -0
- package/dist/tokens/tokens.css +3 -2
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +25 -1
- package/dist/AttributeGrid-CASILa4u.js +0 -320
- package/dist/AttributeGrid-eND8YDby.cjs +0 -1
- package/dist/Button-Bb68ymNP.cjs +0 -1
- package/dist/Button-D-T0tyGF.js +0 -305
- package/dist/CommandPalette-5FQRgPG9.cjs +0 -2
- package/dist/CommandPalette-Cj618AOz.js +0 -4017
- package/dist/CopyButton-B5gS2ft3.cjs +0 -1
- package/dist/CopyButton-g-WSiBDZ.js +0 -63
- package/dist/DateRangePicker-CJD9ADgB.js +0 -550
- package/dist/DateRangePicker-Frc0HVxp.cjs +0 -9
- package/dist/EmptyState-B9TxGJ5v.cjs +0 -1
- package/dist/EmptyState-Dph6HU74.js +0 -50
- package/dist/GuidedTour-B6q7lYhn.cjs +0 -1
- package/dist/GuidedTour-CFCvRJN4.js +0 -483
- package/dist/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/IconPicker-CIbJb1ei.cjs +0 -1
- package/dist/Input-CZruORyy.cjs +0 -1
- package/dist/Input-DkPhsdfk.js +0 -227
- package/dist/Modal-CY6ePolt.cjs +0 -1
- package/dist/Modal-NzZzHSwb.js +0 -559
- package/dist/OverlayScrollArea-BSlaXG1h.cjs +0 -1
- package/dist/OverlayScrollArea-c8Za77qs.js +0 -180
- package/dist/PageSkeleton-BPbb28-H.cjs +0 -30
- package/dist/Popover-CWrR51eG.cjs +0 -1
- package/dist/Popover-Cttb6NYT.js +0 -206
- package/dist/SearchableSelect-BvCm4enQ.js +0 -327
- package/dist/SearchableSelect-CVqdVMOC.cjs +0 -1
- package/dist/StatusBarNotificationBell-BJiORN4s.cjs +0 -50
- package/dist/Stepper-Ci5JpLbS.cjs +0 -1
- package/dist/Stepper-D9i1Xclm.js +0 -583
- package/dist/TimeSeriesChart-DOwi2lJs.js +0 -441
- package/dist/TimeSeriesChart-huvheefm.cjs +0 -1
- package/dist/ToggleButton-BFWh1_o5.cjs +0 -1
- package/dist/ToggleButton-CFM8P3JY.js +0 -2137
- package/dist/anchoredLayout-Dstwa5OH.cjs +0 -1
- package/dist/anchoredLayout-FC-qv8xm.js +0 -250
- package/dist/createDialogShellFocus-B4piXDU4.js +0 -282
- package/dist/createDialogShellFocus-CJaw9-B9.cjs +0 -1
- package/dist/createResizableSidebar-BDUlX9-G.js +0 -472
- package/dist/createResizableSidebar-BVJBU2kP.cjs +0 -1
- package/dist/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/kitHost-BfJExE1G.cjs +0 -1
- package/dist/kitHost-CVAEi9sF.js +0 -23
- package/dist/mainRealmDom-C12lr9lm.js +0 -171
- package/dist/mainRealmDom-S6teqEr4.cjs +0 -1
- package/dist/pageTourState-CrbEU7QW.cjs +0 -5
- package/dist/rowSource-D__7o4h0.js +0 -1230
- package/dist/rowSource-DiwTu_r8.cjs +0 -1
- package/dist/server/AttributeGrid-B7sb3btp.cjs +0 -1
- package/dist/server/AttributeGrid-CMi-UtWb.js +0 -281
- package/dist/server/Button-0AXWRw9Q.cjs +0 -1
- package/dist/server/Button-3yNrnn4P.js +0 -220
- package/dist/server/CommandPalette-CozogFlk.js +0 -3265
- package/dist/server/CommandPalette-DQK6N98N.cjs +0 -1
- package/dist/server/CopyButton-B6xd9Z6j.js +0 -64
- package/dist/server/CopyButton-D8IN6Vnd.cjs +0 -1
- package/dist/server/DateRangePicker-C35q8BTw.js +0 -484
- package/dist/server/DateRangePicker-KLZzyuPJ.cjs +0 -9
- package/dist/server/EmptyState-BnAHklc5.cjs +0 -1
- package/dist/server/GuidedTour-DfV0yzqh.cjs +0 -1
- package/dist/server/GuidedTour-DmLbBttx.js +0 -400
- package/dist/server/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/server/IconPicker-B1soopAp.cjs +0 -1
- package/dist/server/Input-CjvD8w18.cjs +0 -1
- package/dist/server/Input-DaEN2JJd.js +0 -127
- package/dist/server/Modal-BheFQLs1.js +0 -415
- package/dist/server/Modal-BswxV8Pn.cjs +0 -1
- package/dist/server/OverlayScrollArea-221dfKyz.js +0 -65
- package/dist/server/OverlayScrollArea-D4e9D9Nd.cjs +0 -1
- package/dist/server/PageSkeleton-DBo7hQq-.cjs +0 -30
- package/dist/server/Popover-BsxIKBbl.cjs +0 -1
- package/dist/server/Popover-Cg28aPUZ.js +0 -439
- package/dist/server/SearchableSelect-09ECcDlB.cjs +0 -1
- package/dist/server/SearchableSelect-vjhS4c-H.js +0 -205
- package/dist/server/StatusBarNotificationBell-LJHLMT9F.cjs +0 -49
- package/dist/server/Stepper-DxNrskdq.cjs +0 -1
- package/dist/server/Stepper-n5f9r-ye.js +0 -375
- package/dist/server/TimeSeriesChart-BQVXUFoj.cjs +0 -1
- package/dist/server/TimeSeriesChart-PAb95s6x.js +0 -242
- package/dist/server/ToggleButton-FywO2CCI.js +0 -1335
- package/dist/server/ToggleButton-TE3Xf2yD.cjs +0 -1
- package/dist/server/VpTrash-D49oUUJh.cjs +0 -1
- package/dist/server/createDialogShellFocus-BFo8awdj.js +0 -369
- package/dist/server/createDialogShellFocus-BiBAZOCI.cjs +0 -1
- package/dist/server/createResizableSidebar-GFgZIj-5.cjs +0 -1
- package/dist/server/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/server/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/server/index-2mQPVEDR.cjs +0 -1
- package/dist/server/kitHost-BfJExE1G.cjs +0 -1
- package/dist/server/kitHost-CVAEi9sF.js +0 -23
- package/dist/server/mainRealmDom-DPNaDWtw.js +0 -121
- package/dist/server/mainRealmDom-DwZVMPnO.cjs +0 -1
- package/dist/server/pageTourState-CrbEU7QW.cjs +0 -5
- package/dist/server/rowSource-D-wcDmFU.js +0 -1122
- package/dist/server/rowSource-DltiY0o3.cjs +0 -1
- package/dist/tooltipCoordinator-BzxEyKhA.js +0 -144
- package/dist/tooltipCoordinator-DslqMlsI.cjs +0 -1
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";var Vs=Object.defineProperty;var Ws=(e,t,n)=>t in e?Vs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>Ws(e,typeof t!="symbol"?t+"":t,n);const ot=require("./electronBridge-cT0xww92.cjs"),go=require("./bugIndicatingError-D2X5Hfgg.cjs"),ne=require("./useSettingsSubscription-DKjCwmRd.cjs"),S=require("./i18n-D3s-a2a0.cjs"),Dt=require("./errorHandler-DoDAPpv2.cjs"),l=require("solid-js/web"),A=require("solid-js"),Uu=require("solid-js/store"),Wr=require("./createDialogShellFocus-CJaw9-B9.cjs"),Yu=require("./OverlayScrollArea-BSlaXG1h.cjs"),di=require("./HostPortal-CgJwxt-f.cjs"),po=require("./HostWindowContext-_VZCt7xE.cjs"),Rn=require("./kitHost-BfJExE1G.cjs"),Ut=require("./builtins-DM7FDxEt.cjs"),qs=require("./window-_BfSgFGO.cjs"),Eo=require("./prefersReducedMotion-BQp-Q4UR.cjs"),mt=require("./keys-GMxY2wcl.cjs"),at=require("./mainRealmDom-S6teqEr4.cjs"),qr=require("./Input-CZruORyy.cjs"),ge=require("@vokril/icons"),Pn=require("./GuidedTour-B6q7lYhn.cjs"),Yr=require("./DesktopContextMenuContext-DMGNVjaR.cjs"),$e=require("./Button-Bb68ymNP.cjs"),$n=require("./DateRangePicker-Frc0HVxp.cjs"),Ys=require("./Popover-CWrR51eG.cjs"),Ks=require("./isOneOf-9EXOSYJu.cjs"),Xs=require("./windowRegistry-CxXtP-iY.cjs"),Bu=require("./anchoredLayout-Dstwa5OH.cjs"),fr=require("./iconScale.module-CzmKG1rf.cjs"),js=require("./EmptyState-B9TxGJ5v.cjs"),Zs="vk_bar_iSxMW",Qs="vk_barCompact_SCRfr",Js="vk_search_P2Oii",ec="vk_dateBtn_v3RN1",Ru={bar:Zs,barCompact:Qs,search:Js,dateBtn:ec};var tc=l.template("<div>");function bo(e){return(()=>{var t=tc();return l.insert(t,l.createComponent(qr.Input,{type:"text",get class(){return Ru.search},get placeholder(){return e.searchPlaceholder??S.t("Search…")},get value(){return e.searchValue},onInput:n=>e.onSearchInput(n.currentTarget.value)}),null),l.insert(t,l.createComponent(A.Show,{get when(){return e.onDateRangeChange},get children(){return l.createComponent($n.DateRangePicker,l.mergeProps({get value(){return e.dateRange??null},onChange:n=>{var u;return(u=e.onDateRangeChange)==null?void 0:u.call(e,n)},get triggerClass(){return Ru.dateBtn}},()=>e.dateRangeAlign?{align:e.dateRangeAlign}:{}))}}),null),l.insert(t,()=>e.children,null),l.effect(()=>l.className(t,`${Ru.bar} ${e.compact?Ru.barCompact:""} ${e.class??""}`)),t})()}const Kr=["general","vendor-error","sql-execution","connection","ssh","schema","users","tablespaces","locking","monitoring","source-control","file-system","settings","rss","plugins","workspace","dev"];function _o(e){return Ks.isOneOf(Kr,e)}const fi={dispose:()=>{}};function mo(e){return e.id===""}function hu(e,t){if(e.durationMs!==void 0)return e.durationMs;switch(e.severity){case"info":return t.infoDurationMs;case"success":return t.successDurationMs;case"warning":return t.warningDurationMs;case"error":return t.errorDurationMs}}function gu(e,t){if(e.sticky||e.priority==="urgent"||e.priority==="acknowledgment-required"||e.progress&&!e.progress.done||e.severity==="error"&&t.errorsAlwaysSticky||e.severity==="warning"&&t.warningsAlwaysSticky)return!0;const n=e.durationMs;return n!==void 0&&(!Number.isFinite(n)||n<=0)}function Pt(e){return e.progress!==void 0&&e.progress.done!==!0&&e.isolated!==!0}function Xr(e){return e.priority!=="acknowledgment-required"&&e.hidden!==!0}function Ao(e){return e.flatMap(t=>t.outOfSightSince!==void 0&&Pt(t)?[{item:t,since:t.outOfSightSince}]:[]).reverse().sort((t,n)=>n.since-t.since).map(({item:t})=>t)}function nc(e,t){if(t!==void 0)return{...e,outOfSightSince:t};const{outOfSightSince:n,...u}=e;return u}function jr(e){const{getSettings:t,warn:n}=e,u=e.isSilenced??(()=>!1),r=e.isTurnedDown??(()=>!1),i=e.centerReachable??(()=>!0),o=e.now??(()=>Date.now()),s=e.setTimeout??((T,z)=>window.setTimeout(T,z)),c=e.clearTimeout??(T=>window.clearTimeout(T)),a=e.recordAutoFade,h=new Map,g=new Set,E=new Map,_=new Map,p=new Map;function C(){return[...h.values()].sort((T,z)=>T.createdAt-z.createdAt)}function D(){const T=C().filter(Xr),z=Math.max(1,t().maxVisibleNotifications);return new Set(T.slice(0,Math.max(0,T.length-z)).map(({id:V})=>V))}function I(T){return t().pauseTimerWhileHidden&&D().has(T)}function F(){const T=D();for(const V of p.keys())h.has(V)||p.delete(V);let z=!1;for(const[V,_e]of h){_e.hidden!==!0&&!T.has(V)?p.delete(V):p.has(V)||p.set(V,o());const me=p.get(V);_e.outOfSightSince!==me&&(h.set(V,nc(_e,me)),z=!0)}return z}function y(){for(const T of h.keys()){if(E.has(T)){I(T)&&H(T);continue}G(T)}}function R(){F();const T=C();for(const z of Array.from(g))try{z(T)}catch(V){n("a notification engine listener threw:",V)}y()}function x(T){return!!(gu(T,t())||T.hovered||T.focused)}function L(T){return hu(T,t())}function H(T){const z=E.get(T);z!==void 0&&(c(z),E.delete(T))}function Z(T){const z=_.get(T);if(z)return z;const V={state:"open",changed:new ot.Emitter};return _.set(T,V),V}function ee(T,z){const V=_.get(T);return _.delete(T),V&&(V.state=z),V}function he(T){T&&(T.changed.fire(T.state),T.changed.dispose())}function ce(T,z){if(H(T),!h.delete(T))return;const V=ee(T,z);R(),he(V)}function ye(T){return{...T,hidden:!0,hovered:!1,focused:!1}}function xe(T){return{...T,hidden:!1,createdAt:o()}}function Ae(T,z){const V=h.get(T);if(!V)return;const _e={...V,...z},me=Pt(V)&&!Pt(_e);if(me&&u(_e)){ce(T,"suppressed");return}h.set(T,me&&_e.hidden?xe(_e):_e),R(),G(T)}function G(T){H(T);const z=h.get(T);if(!z||x(z)||I(T))return;const V=L(z);if(!Number.isFinite(V)||V<=0)return;const _e=s(()=>{E.delete(T);const me=h.get(T);if(!me||x(me))return;a(me.source??"general"),h.delete(T);const Be=ee(T,"closed");R(),he(Be)},V);E.set(T,_e)}let Te=0;function Re(){return Te+=1,`n-${o().toString(36)}-${Te.toString(36)}`}const U=800,te=3,X=[];function oe(){const T=o();for(;X.length>0&&(X[0]??0)<T-U;)X.shift();return X.length>=te}function Ie(){X.push(o())}function Ue(T){return!T||T.length===0?"":T.filter(z=>z.primary).map(z=>`${z.id??""}::${z.label}`).sort().join("|")}function Y(T){const z=T.source??"",V=Ue(T.actions);for(const[_e,me]of h)if((me.source??"")===z&&me.title===T.title&&Ue(me.actions)===V)return _e;return null}function ae(T){const z=T.id,V=z??Y(T),_e=V===null;if(_e&&!z&&oe())return{id:"",update:()=>{},setProgress:()=>{},close:()=>{},state:()=>"suppressed",onDidChangeState:()=>fi};const me=V??Re(),Be=h.get(me),St={...T,id:me,createdAt:(Be==null?void 0:Be.createdAt)??o(),expanded:(Be==null?void 0:Be.expanded)??!1,hovered:(Be==null?void 0:Be.hovered)??!1,focused:(Be==null?void 0:Be.focused)??!1},ht=Pt(St)&&u(St)?ye(St):Be!=null&&Be.hidden?xe(St):St;h.set(me,ht);const Ct=Z(me);return _e&&Ie(),R(),G(me),{id:me,update(Je){Ae(me,Je)},setProgress(Je){Ae(me,{progress:Je})},close(){ce(me,"closed")},state:()=>Ct.state,onDidChangeState:(Je,Nt)=>Ct.state==="open"?Ct.changed.event(Je,Nt):fi}}function W(T){return g.add(T),T(C()),()=>{g.delete(T)}}function Le(T,z){const V=h.get(T);!V||V.hovered===z||(h.set(T,{...V,hovered:z}),R(),z?H(T):G(T))}function P(T,z){const V=h.get(T);!V||V.focused===z||(h.set(T,{...V,focused:z}),R(),z?H(T):G(T))}function ue(T){const z=h.get(T);z&&(h.set(T,{...z,expanded:!z.expanded}),R(),G(T))}function Ee(T){ce(T,"closed")}function we(T){const z=h.get(T);if(z){if(!Pt(z)||r(z)){ce(T,"dismissed");return}z.hidden||!i()||(h.set(T,ye(z)),R())}}function se(T){const z=[...h.values()].filter(_e=>_e.hidden!==!0&&T(_e));if(z.length===0)return;for(const _e of z.filter(Pt))h.set(_e.id,ye(_e));const V=z.filter(_e=>!Pt(_e)).map(({id:_e})=>(H(_e),h.delete(_e),ee(_e,"suppressed")));R();for(const _e of V)he(_e)}function Ve(T){var z;((z=h.get(T))==null?void 0:z.priority)!=="acknowledgment-required"&&ce(T,"suppressed")}function ct(){F()&&R()}function Qe(){for(const z of E.keys())H(z);const T=[..._.keys()].map(z=>ee(z,"closed"));h.clear(),p.clear(),g.clear();for(const z of T)he(z)}return{notify:ae,subscribe:W,setHover:Le,setFocus:P,toggleExpanded:ue,close:Ee,dismiss:we,suppress:se,reject:Ve,refresh:ct,dispose:Qe}}function Hu(e,t){return t.vendorError===void 0?null:ot.resolveVendorError(e,t.vendorError)}function tu(e){if(e)return[{label:e.label,onClick:e.onClick,primary:!0}]}const uc=200;class To{constructor(t){ve(this,"entries",[]);ve(this,"listeners",new Set);ve(this,"unreadSeq",0);ve(this,"seenSeq",0);ve(this,"unreadListeners",new Set);ve(this,"lastSyncedBadge",-1);this.deps=t}add(t,n,u="general",r="default",i,o){if(!t.trim())return;const s={id:`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,message:Dt.scrubSecrets(t),tone:n,createdAt:Date.now(),source:u,priority:r,...i&&i.length>0?{actions:i}:{},...o?{vendorError:o}:{}};this.write([s,...this.entries]),this.unreadSeq+=1,this.notifyUnread()}subscribe(t){return this.listeners.add(t),t([...this.entries]),()=>{this.listeners.delete(t)}}subscribeUnread(t){return this.unreadListeners.add(t),t(this.unreadCount()),()=>{this.unreadListeners.delete(t)}}find(t){return this.entries.find(n=>n.id===t)}markSeen(){this.seenSeq!==this.unreadSeq&&(this.seenSeq=this.unreadSeq,this.notifyUnread())}clear(){this.write([])}dismiss(t){this.write(this.entries.filter(n=>n.id!==t))}dismissMany(t){if(t.length===0)return;const n=new Set(t);this.write(this.entries.filter(u=>!n.has(u.id)))}dismissBySource(t){this.write(this.entries.filter(n=>n.source!==t))}togglePin(t){this.write(this.entries.map(n=>{if(n.id!==t)return n;const{pinnedAt:u,...r}=n;return n.pinned?{...r,pinned:!1}:{...r,pinned:!0,pinnedAt:Date.now()}}))}refreshBadge(){this.lastSyncedBadge=-1,this.syncBadge(this.unreadCount())}unreadCount(){return Math.max(0,this.unreadSeq-this.seenSeq)}write(t){const n=[...t].sort((s,c)=>c.createdAt-s.createdAt),u=n.filter(s=>s.pinned===!0),i=n.filter(s=>s.pinned!==!0).slice(0,Math.max(0,uc-u.length)),o=[...u].sort((s,c)=>(c.pinnedAt??c.createdAt)-(s.pinnedAt??s.createdAt));this.entries=[...o,...i];for(const s of Array.from(this.listeners))try{s(this.entries)}catch(c){this.deps.warn("a timeline listener threw:",c)}}notifyUnread(){const t=this.unreadCount();for(const n of Array.from(this.unreadListeners))try{n(t)}catch(u){this.deps.warn("an unread count listener threw:",u)}this.syncBadge(t)}syncBadge(t){const n=ne.notificationSettings.get(),u=n.badgeCountEnabled?Math.min(t,n.badgeCountMax):0;u!==this.lastSyncedBadge&&(this.lastSyncedBadge=u,this.deps.setBadgeCount(u))}}class rc{constructor(){ve(this,"stats",new Map)}recordFire(t,n,u){const r=this.bucket(t);r.total+=1,n&&(r.shown+=1),u&&(r.muted+=1)}recordClick(t){this.bucket(t).clicked+=1}recordDismiss(t){this.bucket(t).dismissed+=1}recordAutoFade(t){this.bucket(t).autoFaded+=1}snapshot(){return[...this.stats.values()].map(t=>({...t})).sort((t,n)=>n.total-t.total)}reset(){this.stats.clear()}bucket(t){let n=this.stats.get(t);return n||(n={source:t,total:0,shown:0,clicked:0,dismissed:0,autoFaded:0,muted:0},this.stats.set(t,n)),n}}class ic{constructor(t){ve(this,"dataUrls",new Map);ve(this,"inFlight",new Map);this.readAudioAsDataUrl=t}async load(t){const n=this.dataUrls.get(t);if(n)return n;let u=this.inFlight.get(t);return u||(u=this.readAudioAsDataUrl(t).then(r=>(this.inFlight.delete(t),r&&this.dataUrls.set(t,r),r)),this.inFlight.set(t,u)),await u??void 0}invalidate(){this.dataUrls.clear(),this.inFlight.clear()}}const So={info:{freq:660,ms:140},success:{freq:880,ms:180},warning:{freq:520,ms:220},error:{freq:320,ms:260}},oc={info:"soundOnInfo",success:"soundOnSuccess",warning:"soundOnWarning",error:"soundOnError"},sc={info:"customSoundInfo",success:"customSoundSuccess",warning:"customSoundWarning",error:"customSoundError"};function Co(e,t,n){if(!t[oc[e]]||t.quietHoursMutesSounds&&n)return null;const u=t[sc[e]].trim();if(u)return{kind:"custom",path:u};const r=So[e];return{kind:"builtin",freq:r.freq,ms:r.ms}}class cc{constructor(t,n){ve(this,"context",null);ve(this,"contextFailed",!1);this.sounds=t,this.log=n}playQueryCompletedCue(){this.playTone(800,200)}playSeverityToneIfEnabled(t,n){const u=Co(t,ne.notificationSettings.get(),n);if(u){if(u.kind==="custom"){this.playCustomSound(u.path);return}this.playTone(u.freq,u.ms)}}dispose(){const t=this.context;this.context=null,t&&t.close().catch(n=>{this.log.warn("AudioContext could not be closed:",n)})}audioContext(){if(this.contextFailed)return null;if(this.context)return this.context;try{const t=window.AudioContext??window.webkitAudioContext;return t?(this.context=new t,this.context):(this.contextFailed=!0,null)}catch(t){return this.contextFailed=!0,this.log.warn("AudioContext could not be created; notification sounds are off:",t),null}}async playCustomSound(t){const n=await this.sounds.load(t);if(n)try{const u=new Audio(n);u.volume=.6,await u.play()}catch(u){this.log.warn("Custom notification sound could not be played:",u)}}playTone(t,n){const u=this.audioContext();if(u)try{const r=u.currentTime,i=u.createOscillator(),o=u.createGain();i.connect(o),o.connect(u.destination),i.frequency.value=t,o.gain.setValueAtTime(.3,r),o.gain.exponentialRampToValueAtTime(.01,r+n/1e3),i.start(r),i.stop(r+n/1e3)}catch(r){this.log.warn("Notification tone could not be played:",r)}}}const Lr="notification.emailDigestSmtpPass",wr="notification.webhook.url.";function ru(e){return`${wr}${e}`}function No(e){return e.get(Lr)}async function ac(e,t){t?await e.set(Lr,t):await e.delete(Lr)}function Ro(e,t){return e.get(ru(t))}async function lc(e,t,n){n?await e.set(ru(t),n):await e.delete(ru(t))}function dc(e,t){return e.delete(ru(t))}async function fc(e,t){const n=new Set(t),u=(await e.keys()).filter(r=>r.startsWith(wr)).map(r=>r.slice(wr.length)).filter(r=>!n.has(r));await Promise.all(u.map(r=>e.delete(ru(r))))}const hc={info:"#007AB0",success:"#108846",warning:"#D27908",error:"#BE2E34"},gc={info:1668818,success:3046706,warning:16088064,error:12986408};function pc(e,t){const{severities:n,priorities:u,sources:r}=e.filters;return!(n.length>0&&!n.includes(t.severity)||u.length>0&&!u.includes(t.priority)||r.length>0&&!r.includes(t.source))}function Ec(e,t){switch(e.type){case"slack":return{text:t.title,attachments:[{color:hc[t.severity],fields:[{title:"Source",value:t.source,short:!0},{title:"Severity",value:t.severity,short:!0},{title:"Priority",value:t.priority,short:!0}],text:t.body??""}]};case"discord":return{embeds:[{title:t.title,description:t.body??"",color:gc[t.severity],fields:[{name:"Source",value:t.source,inline:!0},{name:"Severity",value:t.severity,inline:!0},{name:"Priority",value:t.priority,inline:!0}]}]};case"generic":default:return{title:t.title,body:t.body??"",severity:t.severity,priority:t.priority,source:t.source,timestamp:Date.now()}}}class bc{constructor(t,n){this.secrets=t,this.log=n}dispatch(t){const n=ne.notificationSettings.get().webhooks.filter(u=>u.enabled&&pc(u,t));for(const u of n)this.deliver(u,t)}async deliver(t,n){try{const u=await Ro(this.secrets,t.id)??"";if(!u)return;await fetch(u,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ec(t,n))})}catch(u){this.log.warn("Webhook delivery failed:",u)}}}const hi=500,gi={info:0,success:1,warning:2,error:3},Iu=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");function _c(e,t){const n=t.map(u=>`<tr>
|
|
2
|
-
<td style="padding:4px 8px">${new Date(u.at).toISOString().slice(11,19)}</td>
|
|
3
|
-
<td style="padding:4px 8px"><strong>${u.severity}</strong></td>
|
|
4
|
-
<td style="padding:4px 8px">${Iu(u.source)}</td>
|
|
5
|
-
<td style="padding:4px 8px">${Iu(u.title)}${u.body?`<br><small>${Iu(u.body)}</small>`:""}</td>
|
|
6
|
-
</tr>`).join(`
|
|
7
|
-
`);return`<!doctype html>
|
|
8
|
-
<html><body>
|
|
9
|
-
<h2>${e?`${Iu(e)} notification digest`:"Notification digest"}</h2>
|
|
10
|
-
<p>${t.length} notification(s) since the last digest.</p>
|
|
11
|
-
<table style="border-collapse:collapse">
|
|
12
|
-
<thead><tr style="background:#eee">
|
|
13
|
-
<th style="padding:4px 8px;text-align:left">Time (UTC)</th>
|
|
14
|
-
<th style="padding:4px 8px;text-align:left">Severity</th>
|
|
15
|
-
<th style="padding:4px 8px;text-align:left">Source</th>
|
|
16
|
-
<th style="padding:4px 8px;text-align:left">Message</th>
|
|
17
|
-
</tr></thead>
|
|
18
|
-
<tbody>
|
|
19
|
-
${n}
|
|
20
|
-
</tbody></table>
|
|
21
|
-
</body></html>`}function mc(e){const t=e.map(n=>`[${new Date(n.at).toISOString()}] ${n.severity.toUpperCase()} (${n.source}): ${n.title}${n.body?` — ${n.body}`:""}`);return`${e.length} notification(s):
|
|
22
|
-
|
|
23
|
-
${t.join(`
|
|
24
|
-
`)}`}function Ac(e){const t=ne.notificationSettings.get();if(!t.emailDigestEnabled)return!1;const n=e.getHours(),u=e.getMinutes(),r=e.getDay();switch(t.emailDigestSchedule){case"hourly":return u===0;case"daily-9am":return n===9&&u===0;case"daily-5pm":return n===17&&u===0;case"weekly-mon-9am":return r===1&&n===9&&u===0}}class Tc{constructor(t){ve(this,"queue",[]);ve(this,"lastSentMinute",0);ve(this,"scheduler");this.deps=t,this.scheduler=setInterval(()=>this.tick(),6e4)}enqueue(t){const n=ne.notificationSettings.get();n.emailDigestEnabled&&(gi[t.severity]<gi[n.emailDigestMinSeverity]||(this.queue.push(t),this.queue.length>hi&&this.queue.splice(0,this.queue.length-hi)))}async flush(){const t=ne.notificationSettings.get();if(!t.emailDigestEnabled)return{kind:"not-sent",reason:{kind:"disabled"}};if(this.queue.length===0)return{kind:"sent",count:0};if(!t.emailDigestSmtpHost||!t.emailDigestFrom||!t.emailDigestTo)return{kind:"not-sent",reason:{kind:"smtp-incomplete"}};const n=this.queue.splice(0,this.queue.length),u=this.deps.appName;try{const r=await No(this.deps.secrets)??"";return await this.deps.send({smtp:{host:t.emailDigestSmtpHost,port:t.emailDigestSmtpPort,secure:t.emailDigestSmtpSecure,user:t.emailDigestSmtpUser,pass:r},from:t.emailDigestFrom,to:t.emailDigestTo,subject:`${u?`[${u}] `:""}${n.length} notification(s)`,html:_c(u,n),text:mc(n)}),{kind:"sent",count:n.length}}catch(r){return this.queue.unshift(...n),{kind:"not-sent",reason:{kind:"send-failed",error:r}}}}notSentText(t){switch(t.kind){case"disabled":return S.t("Email digest is turned off.");case"smtp-incomplete":return S.t("SMTP host, sender and recipient are required.");case"send-failed":return this.deps.errorText(t.error,S.t("The digest could not be sent."))}}dispose(){clearInterval(this.scheduler)}tick(){const t=new Date;if(!Ac(t))return;const n=Math.floor(t.getTime()/6e4);n!==this.lastSentMinute&&(this.lastSentMinute=n,this.flush().then(u=>{u.kind==="not-sent"&&u.reason.kind==="send-failed"&&this.deps.log.warn("scheduled email digest failed",u.reason.error)}))}}const Lu=new Map;function Io(){Lu.clear()}function Sc(e){if(Lu.has(e))return Lu.get(e)??null;let t;try{t=new RegExp(e,"i")}catch{t=null}return Lu.set(e,t),t}function Cc(e,t){const n=e.conditions;if(n.source&&n.source!==t.source||n.severities&&n.severities.length>0&&!n.severities.includes(t.severity))return!1;if(n.titleRegex){const u=Sc(n.titleRegex);if(!u||!u.test(t.title))return!1}return!0}function Zr(e,t){if(t.length===0)return e;let n={...e};for(const u of t)if(u.enabled&&Cc(u,n)){if(u.actions.suppress===!0)return null;if(u.actions.setSeverity&&(n={...n,severity:u.actions.setSeverity}),u.actions.setPriority&&(n={...n,priority:u.actions.setPriority}),u.actions.addPrefix){const r=u.actions.addPrefix.trim();r&&(n={...n,title:`${r} ${n.title}`})}}return n}function Mr(e){const t=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!t)return null;const n=Number(t[1]),u=Number(t[2]);return n>23||u>59?null:n*60+u}function iu(e,t){if(!e.quietHoursEnabled||!e.quietHoursWeekdays.includes(t.getDay()))return!1;const n=Mr(e.quietHoursStart),u=Mr(e.quietHoursEnd);if(n===null||u===null||n===u)return!1;const r=t.getHours()*60+t.getMinutes();return n<u?r>=n&&r<u:r>=n||r<u}function Oo(e,t){if(!e.quietHoursEnabled)return null;const n=Mr(e.quietHoursStart);if(n===null)return null;for(let u=0;u<=7;u++)for(const r of n===0?[0]:[0,n]){const i=new Date(t.getFullYear(),t.getMonth(),t.getDate()+u,0,r);if(i.getTime()<=t.getTime())continue;const o=new Date(i.getTime()-6e4);if(iu(e,i)&&!iu(e,o))return i}return null}function pu(e,t){return`__remind:${e}:${t}`}function ou(e,t,n){const{priority:u}=e,r=e.recordTimeline!==!1;if(!t.notificationsEnabled)return{showToast:!1,recordTimeline:!1};if(n.dismissed)return{showToast:!1,recordTimeline:!1};if(n.remindSuppressed)return{showToast:!1,recordTimeline:!1};if(u==="silent")return{showToast:!1,recordTimeline:r};const i=u==="urgent"||u==="acknowledgment-required";return t.doNotDisturb&&(!i||u==="urgent"&&t.dndBlocksUrgent)?{showToast:!1,recordTimeline:r}:n.inQuietHours&&(!i||u==="urgent"&&t.quietHoursBlocksUrgent)?{showToast:!1,recordTimeline:r}:i?t.urgentRoutesToCenterOnly&&u==="urgent"?{showToast:!1,recordTimeline:r}:{showToast:!0,recordTimeline:r}:n.sourceMuted?{showToast:!1,recordTimeline:r}:{showToast:!0,recordTimeline:r}}function Nc(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}const Fr={info:0,success:1,warning:2,error:3};function yo(e,t){return t.osNativeEnabled?e.priority==="urgent"&&t.osNativeUrgentAlways?{fire:!0,onlyWhenUnfocused:!1}:Fr[e.severity]<Fr[t.osNativeMinSeverity]?{fire:!1,onlyWhenUnfocused:!1}:{fire:!0,onlyWhenUnfocused:t.osNativeOnlyWhenUnfocused}:{fire:!1,onlyWhenUnfocused:!1}}const Rc={"sql-execution":"sql",users:"users",tablespaces:"tablespaces",rss:"rss-feeds",locking:"locking",monitoring:"monitoring"};function Ic(e,t){if(t)return t;if(e!==void 0)return Rc[e]}function en(e){return ne.notificationSettings.get().mutedSources.includes(e)}function Qr(e){return ne.notificationSettings.get().dontShowAgainKeys.includes(e)}function Gu(e){const t=Date.now();return ne.notificationSettings.get().remindersUntil.some(u=>u.key===e&&u.remindAt>t)}async function xo(e,t){if(!e||t<=0)return;const n=ne.notificationSettings.get(),u=Date.now()+t,i=[...n.remindersUntil.filter(o=>o.key!==e),{key:e,remindAt:u}];ne.notificationSettings.applyFromBroadcast({...n,remindersUntil:i}),await ne.notificationSettings.update({...n,remindersUntil:i})}async function Do(e,t){const n=ne.notificationSettings.get(),u=t?Array.from(new Set([...n.mutedSources,e])):n.mutedSources.filter(r=>r!==e);ne.notificationSettings.applyFromBroadcast({...n,mutedSources:u}),await ne.notificationSettings.update({...n,mutedSources:u})}async function ko(e){const t=ne.notificationSettings.get();if(t.dontShowAgainKeys.includes(e))return;const n=[...t.dontShowAgainKeys,e];ne.notificationSettings.applyFromBroadcast({...t,dontShowAgainKeys:n}),await ne.notificationSettings.update({...t,dontShowAgainKeys:n})}async function Oc(e){const t=ne.notificationSettings.get();if(!t.dontShowAgainKeys.includes(e))return;const n=t.dontShowAgainKeys.filter(u=>u!==e);ne.notificationSettings.applyFromBroadcast({...t,dontShowAgainKeys:n}),await ne.notificationSettings.update({...t,dontShowAgainKeys:n})}async function yc(){const e=ne.notificationSettings.get();e.dontShowAgainKeys.length!==0&&(ne.notificationSettings.applyFromBroadcast({...e,dontShowAgainKeys:[]}),await ne.notificationSettings.update({...e,dontShowAgainKeys:[]}))}async function xc(){const e=ne.notificationSettings.get();e.mutedSources.length!==0&&(ne.notificationSettings.applyFromBroadcast({...e,mutedSources:[]}),await ne.notificationSettings.update({...e,mutedSources:[]}))}function Jr(){return iu(ne.notificationSettings.get(),new Date)}function vo(e,t,n){return{dismissed:n!==void 0&&Qr(n),remindSuppressed:n!==void 0&&Gu(n)||Gu(pu(e,t))}}function eu(e,t,n,u,r){return ou({priority:n,recordTimeline:r},ne.notificationSettings.get(),{...vo(e,t,u),sourceMuted:en(e),inQuietHours:Jr()})}function Dc(e,t,n){const u=vo(e,t,n);return u.dismissed||u.remindSuppressed}function kc(e){const t=e.neverShowAgainKey;return t!==void 0&&Qr(t)||Gu(t??e.remindKey??pu(e.source??"general",e.title))}function vc(e,t){return!ou({priority:t,recordTimeline:void 0},ne.notificationSettings.get(),{dismissed:!1,remindSuppressed:!1,sourceMuted:en(e),inQuietHours:Jr()}).showToast}function Lc(e,t,n,u,r){return{label:t.label,primary:r,keepOpen:t.expireOnAction===!1,onClick:()=>{e.analytics.recordClick(u);try{t.onClick()}finally{const i=n();t.expireOnAction!==!1&&i&&e.engine.close(i)}}}}function Lo(e,t,n,u,r){return[...t?[t]:[],...n??[]].map((i,o)=>Lc(e,i,u,r,o===0))}function wo(e){var r,i;const t=((r=e.subtitle)==null?void 0:r.trim())||((i=e.description)==null?void 0:i.trim()),n=e.markdown??ne.notificationSettings.get().markdownEnabled,u=Ic(e.source,e.defaultRoute);return{...t?{body:t}:{},...n?{markdown:!0}:{},...e.duration!==void 0?{durationMs:e.duration}:{},...e.dontShowAgainKey?{neverShowAgainKey:e.dontShowAgainKey}:{},...e.icon?{icon:e.icon}:{},...e.announce?{announce:e.announce}:{},...u?{defaultRoute:u}:{}}}function wu(e,t){const n=t.options.source??"general";if(e.analytics.recordFire(n,t.decision.showToast,en(n)),!t.decision.showToast)return null;e.audio.playSeverityToneIfEnabled(t.severity,Jr());const{options:u}=t,r=wo(u),i=r.body,o=u.id!==void 0?String(u.id):void 0;let s=null;const c=Lo(e,t.primaryAction,u.actions,()=>s==null?void 0:s.id,n),a=e.engine.notify({severity:t.severity,title:t.title,...r,source:u.source??"general",priority:u.priority??"default",...o?{id:o}:{},...t.vendorError?{vendorError:t.vendorError}:{},...c.length>0?{actions:c}:{}});if(s=a,mo(a)||u.inAppOnly)return a;const h=Dt.scrubSecrets(t.title),g=i?Dt.scrubSecrets(i):void 0,E={title:h,...g?{body:g}:{},severity:t.severity,priority:u.priority??"default",source:u.source??"general"};return wc(e,E),e.webhooks.dispatch(E),e.digest.enqueue({...E,at:Date.now()}),a}function wc(e,t){const n=yo(t,ne.notificationSettings.get());n.fire&&e.osNotify({title:t.title,...t.body?{body:t.body}:{},severity:t.severity,urgent:t.priority==="urgent",onlyWhenUnfocused:n.onlyWhenUnfocused})}function Fn(e){return typeof e=="string"?e:e instanceof Error?e.message:e==null?"":String(e)}function ei(e,t,n,u){var h,g,E;const r=Fn(e),i=(h=t.title)==null?void 0:h.trim(),o=((g=t.subtitle)==null?void 0:g.trim())||((E=t.description)==null?void 0:E.trim());let s=i??r,c=o;if(n&&!i){const _=n.helpers.formatCode(n.code),p=new RegExp(`^\\s*${Nc(_)}\\s*[:-]\\s*(.+)$`,"i"),C=r.match(p);if(C!=null&&C[1]){s=_;const D=C[1].trim();c=c?`${D}
|
|
25
|
-
|
|
26
|
-
${c}`:D}}let a=t.action;if(!a&&n){const _=n.helpers.docsUrl(n.code);_&&(a={label:`${n.helpers.formatCode(n.code)} ${n.helpers.docsLinkLabel}`,onClick:()=>u(_)})}return{text:r,displayText:s,bodyText:c,primaryAction:a}}const Mo={update:()=>{},success:()=>{},fail:()=>{},dismiss:()=>{},updateActions:()=>{},state:()=>"suppressed",onDidChangeState:()=>({dispose:()=>{}})};function Pr(e){return Zr(e,ne.notificationSettings.get().notificationRules)}function Mc(e){const{sinks:t,timeline:n}=e;return{success(u,r={}){const i=Fn(u),o=ne.notificationSettings.get(),s=Pr({severity:"success",title:i,priority:r.priority??"default",source:r.source??"general"});if(!s)return"";const c=eu(s.source,s.title,s.priority,r.dontShowAgainKey,r.recordTimeline);if(c.recordTimeline&&n.add(s.title,s.severity,s.source,s.priority,tu(r.action)),!o.showSuccessToasts&&s.priority!=="urgent")return"";const a=wu(t,{severity:s.severity,title:s.title,options:{...r,source:s.source,priority:s.priority},decision:c,...r.action?{primaryAction:r.action}:{}});return(a==null?void 0:a.id)??""},error(u,r={}){const i=Fn(u),o=r.vendorError===void 0?null:ot.resolveVendorError(e.vendorErrors,r.vendorError),s=ei(i,r,o,e.openExternal),c=o!==null,a=s.bodyText,h=a?`${s.displayText}
|
|
27
|
-
${a}`:i,g=c&&ne.notificationSettings.get().vendorCodesAreUrgent,E=Pr({severity:"error",title:s.displayText,priority:r.priority??(g?"urgent":"default"),source:r.source??(c?"vendor-error":"general")});if(!E)return"";const{source:_,priority:p}=E,C=eu(_,E.title,p,r.dontShowAgainKey,r.recordTimeline);C.recordTimeline&&n.add(h,E.severity,_,p,tu(r.action),r.vendorError);const D=wu(t,{severity:E.severity,title:E.title,options:{...r,source:_,priority:p,...a?{description:a}:{}},decision:C,...s.primaryAction?{primaryAction:s.primaryAction}:{},...r.vendorError?{vendorError:r.vendorError}:{}});return(D==null?void 0:D.id)??""},info(u,r={}){return pi(e,"info",u,r)},warning(u,r={}){return pi(e,"warning",u,r)},queryCompleted(u,r={}){const i=Fn(u),o=ne.notificationSettings.get(),s=r.source??"sql-execution",c=r.priority??"default",a=eu(s,i,c,r.dontShowAgainKey,r.recordTimeline);if(a.recordTimeline&&n.add(i,"success",s,c,tu(r.action)),o.notificationsEnabled&&o.soundOnQueryCompletion&&!(o.quietHoursMutesSounds&&iu(o,new Date))&&t.audio.playQueryCompletedCue(),!o.showSuccessToasts&&c!=="urgent")return"";const h=wu(t,{severity:"success",title:i,options:{...r,source:s,priority:c},decision:a,...r.action?{primaryAction:r.action}:{}});return(h==null?void 0:h.id)??""},progress(u,r={}){const i=Fn(u),o=r.onCancel,s=r.source??"general",c=r.priority??"default",a=r.id!==void 0?String(r.id):void 0,h=eu(s,i,c,r.dontShowAgainKey,r.recordTimeline);if(h.recordTimeline&&n.add(i,"info",s,c),!h.showToast&&(Dc(s,i,r.dontShowAgainKey)||c==="acknowledgment-required"))return a!==void 0&&t.engine.reject(a),Mo;const g=a??`progress-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,E=C=>Lo(t,C.action,C.actions,()=>g,s),_=E(r),p=t.engine.notify({id:g,severity:"info",title:i,...wo({...r,source:s}),source:s,priority:c,sticky:!0,progress:o?{onCancel:o}:{},remindKey:pu(s,i),..._.length>0?{actions:_}:{}});return{update:(C,D)=>{p.update({title:C}),D!==void 0&&p.setProgress({value:Math.max(0,Math.min(1,D)),...o?{onCancel:o}:{}})},success:C=>{const D=C??i;h.recordTimeline&&n.add(D,"success",s,c),p.update({title:D,severity:"success",sticky:!1,progress:{done:!0}})},fail:C=>{const D=C??i;h.recordTimeline&&n.add(D,"error",s,c),p.update({title:D,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0})},dismiss:()=>p.close(),updateActions:C=>{const D=E(C);p.update({actions:D.length>0?D:void 0})},state:()=>p.state(),onDidChangeState:p.onDidChangeState}}}}function pi(e,t,n,u){const r=Pr({severity:t,title:Fn(n),priority:u.priority??"default",source:u.source??"general"});if(!r)return"";const i=eu(r.source,r.title,r.priority,u.dontShowAgainKey,u.recordTimeline);i.recordTimeline&&e.timeline.add(r.title,r.severity,r.source,r.priority,tu(u.action));const o=wu(e.sinks,{severity:r.severity,title:r.title,options:{...u,source:r.source,priority:r.priority},decision:i,...u.action?{primaryAction:u.action}:{}});return(o==null?void 0:o.id)??""}function Fo(e,t,n){if(!("cause"in e))return e;const{cause:u,...r}=e,i=t(u).map(n);return i.length===0?r:{...r,actions:[...r.actions??[],...i]}}function Fc(e){return t=>({label:t.label,onClick:()=>{Promise.resolve().then(()=>t.run()).catch(e)}})}function Ei(e,t){return{...e.severity==="error"&&e.source==="general"?{}:{source:e.source},...e.severity==="error"&&e.priority==="default"?{}:{priority:e.priority},...t.subtitle?{subtitle:t.subtitle}:{},...t.description?{description:t.description}:{},...t.action?{action:t.action}:{},...t.actions?{actions:t.actions}:{},...t.duration!==void 0?{duration:t.duration}:{},...t.dontShowAgainKey?{dontShowAgainKey:t.dontShowAgainKey}:{},...t.defaultRoute?{defaultRoute:t.defaultRoute}:{},...t.icon?{icon:t.icon}:{},...t.markdown!==void 0?{markdown:t.markdown}:{},...t.recordTimeline!==void 0?{recordTimeline:t.recordTimeline}:{},...t.id!==void 0?{id:t.id}:{},...t.announce!==void 0?{announce:t.announce}:{},...e.delivery==="in-app-only"?{inAppOnly:!0}:{}}}function Pc(e){const t=Fc(e.onActionFailed),n=u=>Fo(u,e.errorActions,t);return{notify(u,r){const i=n(r);if(u.delivery==="os-only"){const s=i.title??i.message,c=i.description??i.subtitle??(i.title?i.message:void 0);return e.osNotify({title:s,...c?{body:c}:{},severity:u.severity,urgent:u.priority==="urgent",onlyWhenUnfocused:!1}),""}const o=Ei(u,i);if(u.kind==="query-completed")return e.toast.queryCompleted(i.message,o);switch(u.severity){case"success":return e.toast.success(i.message,o);case"error":{const s={...o,...i.title?{title:i.title}:{},...i.vendorError?{vendorError:i.vendorError}:{}};return e.toast.error(i.message,s)}case"warning":return e.toast.warning(i.message,o);case"info":return e.toast.info(i.message,o)}},progress(u,r){const i=n(r);if(u.delivery==="os-only")throw new go.BugIndicatingError("Progress notifications require an in-app catalog definition.");return e.toast.progress(i.message,{...Ei(u,i),...i.onCancel?{onCancel:i.onCancel}:{}})}}}function ti(e,t,n,u){return e==="error"&&t==="default"&&n&&u?"urgent":t}function Uc(e,t,n){var h;const u=n.vendorError===void 0?null:ot.resolveVendorError(e.vendorErrors,n.vendorError),r=t.severity==="error"?ei(n.message,{...n.title?{title:n.title}:{},...n.subtitle?{subtitle:n.subtitle}:{},...n.description?{description:n.description}:{},...n.action?{action:n.action}:{}},u,e.openExternal):null,i=(r==null?void 0:r.displayText)??n.title??n.message,o=(r==null?void 0:r.bodyText)??n.subtitle??n.description,s=(r==null?void 0:r.primaryAction)??n.action,c=t.severity==="error"&&t.source==="general"&&u!==null?"vendor-error":t.source,a=ti(t.severity,t.priority,u!==null,ne.notificationSettings.get().vendorCodesAreUrgent);return e.engine.notify({severity:t.severity,title:Dt.scrubSecrets(i),...o?{body:Dt.scrubSecrets(o)}:{},source:c,priority:a,isolated:!0,...n.duration!==void 0?{durationMs:n.duration}:{},...n.id!==void 0?{id:`dev-preview:${n.id}`}:{},...n.icon?{icon:n.icon}:{},...n.markdown?{markdown:!0}:{},...t.kind==="progress"?{sticky:!0,progress:{done:!1}}:{},...s||(h=n.actions)!=null&&h.length?{actions:[s,...n.actions??[]].filter(g=>g!==void 0).map((g,E)=>({id:`dev-preview-action-${E}`,label:g.label,primary:E===0,onClick:()=>{g.onClick()}}))}:{}}).id}function Ku(e,t){return{message:e,...t!=null&&t.title?{title:t.title}:{},...t!=null&&t.subtitle?{subtitle:t.subtitle}:{},...t!=null&&t.description?{description:t.description}:{},...t!=null&&t.action?{action:t.action}:{},...(t==null?void 0:t.duration)!==void 0?{duration:t.duration}:{},...t!=null&&t.dontShowAgainKey?{dontShowAgainKey:t.dontShowAgainKey}:{},...t!=null&&t.defaultRoute?{defaultRoute:t.defaultRoute}:{},...t!=null&&t.icon?{icon:t.icon}:{},...(t==null?void 0:t.markdown)!==void 0?{markdown:t.markdown}:{},...(t==null?void 0:t.recordTimeline)!==void 0?{recordTimeline:t.recordTimeline}:{},...(t==null?void 0:t.id)!==void 0?{id:t.id}:{},...t!=null&&t.onCancel?{onCancel:t.onCancel}:{}}}const Bc=at.defineNotification({id:"notifications.timeline.replay.error",source:"general",severity:"error",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Ku(e,t)),Hc=at.defineNotification({id:"notifications.timeline.replay.warning",source:"general",severity:"warning",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Ku(e,t)),Gc=at.defineNotification({id:"notifications.timeline.replay.success",source:"general",severity:"success",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Ku(e,t)),$c=at.defineNotification({id:"notifications.timeline.replay.info",source:"general",severity:"info",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Ku(e,t)),zc=at.defineNotification({id:"notifications.timeline.exported",source:"general",severity:"success",priority:"default",delivery:"in-app",kind:"message"},({entryCount:e})=>({message:S.t("Exported {count} notifications",{count:e})})),Vc=at.defineNotification({id:"notifications.timeline.export.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:S.t("Export failed: {message}",{message:t(e,S.t("Operation failed."))}),cause:e})),Wc=at.defineNotification({id:"notifications.errorAction.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:S.t("The action could not be completed: {message}",{message:t(e,S.t("Operation failed."))}),cause:e})),Po=at.defineNotification({id:"notifications.settings.update.failed",source:"settings",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:t(e,S.t("Operation failed.")),cause:e})),qc=60*6e4;function bi(e){return!e.isolated&&e.priority!=="acknowledgment-required"&&vc(e.source??"general",e.priority??"default")}class Yc{constructor(t){ve(this,"renderHost");ve(this,"toast");ve(this,"stack");ve(this,"timeline");ve(this,"onDidRequestNavigation");ve(this,"engine");ve(this,"analytics",new rc);ve(this,"sounds");ve(this,"audio");ve(this,"digest");ve(this,"delivery");ve(this,"navigation",new ot.Emitter);ve(this,"log");ve(this,"onSettingsChanged");ve(this,"stopWatchingCards");ve(this,"watchingQuietHours",!1);ve(this,"quietHoursTimer");this.deps=t;const n=t.log.withTag("Notifications");this.log=n,this.renderHost={errorText:t.errorPresenter.text},this.engine=jr({getSettings:()=>ne.notificationSettings.get(),recordAutoFade:r=>this.analytics.recordAutoFade(r),warn:(r,i)=>n.warn(r,i),isSilenced:bi,isTurnedDown:kc,centerReachable:t.centerReachable}),this.stack=this.engine,this.timeline=new To({setBadgeCount:r=>this.unawaited("the OS badge could not be set",t.desktop.setBadgeCount(r)),warn:(r,i)=>n.warn(r,i)}),this.sounds=new ic(r=>t.desktop.readAudioAsDataUrl(r).catch(i=>(n.warn("custom sound could not be read",{filePath:r,error:i}),null))),this.audio=new cc(this.sounds,n),this.digest=new Tc({secrets:t.secrets,send:t.sendEmailDigest,appName:t.appName,errorText:t.errorPresenter.text,log:n});const u=r=>this.unawaited("the OS notification was not shown",t.desktop.osNotify(r));this.toast=Mc({sinks:{engine:this.engine,analytics:this.analytics,audio:this.audio,webhooks:new bc(t.secrets,n),digest:this.digest,osNotify:u},timeline:this.timeline,vendorErrors:t.vendorErrors,openExternal:r=>ot.openExternalUrl(t.desktop,n,r)}),this.delivery=Pc({toast:this.toast,osNotify:u,errorActions:t.errorPresenter.actions,onActionFailed:r=>this.notify(Wc,{cause:r})}),this.onDidRequestNavigation=this.navigation.event,this.onSettingsChanged=()=>{Io(),this.sounds.invalidate(),this.timeline.refreshBadge(),this.takeBackSilencedCards(),this.engine.refresh(),this.watchingQuietHours&&this.watchQuietHoursStart()},window.addEventListener(ne.notificationSettings.changeEvent,this.onSettingsChanged),this.stopWatchingCards=this.engine.subscribe(r=>{r.length===0?this.stopWatchingQuietHours():this.watchingQuietHours||this.watchQuietHoursStart()})}notify(t,n){return this.delivery.notify(t,t.build(n,this.renderHost))}progress(t,n){if(t.kind!=="progress")throw new go.BugIndicatingError("notifications: a message definition cannot be delivered as progress.");return this.delivery.progress(t,t.build(n,this.renderHost))}showPreview(t,n){return Uc({engine:this.engine,vendorErrors:this.deps.vendorErrors,openExternal:u=>ot.openExternalUrl(this.deps.desktop,this.log,u)},t,n)}dismissEntry(t){const n=this.timeline.find(t);n!==void 0&&(this.analytics.recordDismiss(n.source),this.timeline.dismiss(t))}flushDigest(){return this.digest.flush()}digestNotSentText(t){return this.digest.notSentText(t)}getStatsSnapshot(){return this.analytics.snapshot()}resetStats(){this.analytics.reset()}requestNavigation(t){this.navigation.fire(t)}dispose(){window.removeEventListener(ne.notificationSettings.changeEvent,this.onSettingsChanged),this.stopWatchingCards(),this.stopWatchingQuietHours(),this.digest.dispose(),this.audio.dispose(),this.engine.dispose(),this.navigation.dispose()}takeBackSilencedCards(){this.engine.suppress(bi)}watchQuietHoursStart(){this.stopWatchingQuietHours(),this.watchingQuietHours=!0;const t=Oo(ne.notificationSettings.get(),new Date);if(t===null)return;const n=Math.max(0,t.getTime()-Date.now());this.quietHoursTimer=setTimeout(()=>{this.quietHoursTimer=void 0,this.takeBackSilencedCards(),this.watchingQuietHours&&this.watchQuietHoursStart()},Math.min(n,qc))}stopWatchingQuietHours(){clearTimeout(this.quietHoursTimer),this.quietHoursTimer=void 0,this.watchingQuietHours=!1}unawaited(t,n){Promise.resolve(n).catch(u=>this.log.debug(t,u))}}function Uo(e,t){const n=e.trim();if(!n)return null;if(t)try{const u=new RegExp(n,"i");return{test:r=>u.test(r)}}catch{return _i(n)}return _i(n)}function _i(e){const t=e.toLowerCase();return{test:n=>n.toLowerCase().includes(t)}}function Bo(e,t){const{tones:n,sources:u,priorities:r,dateBounds:i,searchMatcher:o}=t;return e.filter(s=>!(n.size>0&&!n.has(s.tone)||u.size>0&&!u.has(s.source)||r.size>0&&!r.has(s.priority)||i&&(s.createdAt<i.start||s.createdAt>i.end)||o&&!o.test(`${s.message} ${s.source}`)))}const Kc="acknowledgment-required";function Ho(e){return e.filter(t=>t.priority!==Kc).map(t=>t.id)}const Xc={general:{label:"General",description:"Uncategorized notifications. Default for callers that do not pass a source."},"vendor-error":{label:"Database errors",description:"Errors carrying a recognised vendor code (Oracle ORA-NNNNN, PG SQLSTATE, MSSQL Msg N, …). Treated as urgent when the matching setting is enabled."},"sql-execution":{label:"SQL execution",description:"Query completion / cancellation / failure notifications."},connection:{label:"Connection",description:"Connect, disconnect, test, vault credential events."},ssh:{label:"SSH & terminal",description:"SSH dock, tunnels, terminal lifecycle."},schema:{label:"Schema browser",description:"DDL extraction, copy-name, refresh."},users:{label:"Users",description:"User management — create, unlock, alter."},tablespaces:{label:"Tablespaces",description:"Tablespace creation, quota warnings."},locking:{label:"Locking",description:"Blocking sessions and deadlock alerts."},monitoring:{label:"Monitoring",description:"Threshold alerts — CPU, blocked sessions, long-running ops, invalid objects, failed logins."},"source-control":{label:"Source control",description:"Git commit / pull / push outcomes."},"file-system":{label:"File system",description:"Save, copy, paste, image clipboard."},settings:{label:"Settings",description:"Preference saves, layout reset, import/export."},rss:{label:"RSS feeds",description:"Feed refresh, post counts."},plugins:{label:"Plugins",description:"Plugin install, activation, marketplace and sandbox events."},workspace:{label:"Workspace",description:"Workspace tabs, session restore and layout events."},dev:{label:"Developer",description:"Dev test surface and internal diagnostics."}},Xu=Kr.map(e=>({id:e,...Xc[e]})),mi=new Map(Xu.map(e=>[e.id,e]));function En(e){if(e){const t=mi.get(e);if(t)return t}return mi.get("general")??Xu[0]}function jc(){return Xu}function Go(e,t){const n=[];let u=0;for(;u<e.length;){const r=e[u];if(!r)break;if(r.pinned===!0){n.push({type:"entry",id:r.id,entry:r}),u+=1;continue}const i=t==="source"?r.source:`${r.source}|${r.tone}`;let o=u+1;for(;o<e.length;){const c=e[o];if(!c||c.pinned===!0||(t==="source"?c.source:`${c.source}|${c.tone}`)!==i)break;o+=1}const s=o-u;s===1?n.push({type:"entry",id:r.id,entry:r}):n.push({type:"group",id:`group:${i}:${r.id}`,groupKey:i,groupCount:s,groupSource:r.source,groupTone:r.tone,groupItems:e.slice(u,o)}),u=o}return n}function Zc(e,t){return(e+t).indexOf(t)<e.length}const Qc=/^[=+\-@\t\r]/,Jc=/^[+-]?\d[\d.,' \u00A0\u202F]*(?:[eE][+-]?\d+)?$/,ea=/^[ \t]|[ \t]$/;function $o(e){return Qc.test(e)}function ta(e,t){return $o(e)?t==="quotePrefix"?`'${e}`:` ${e}`:e}function na(e,t,n={}){if(e==null)return"";const u=String(e),r=n.numeric===!0&&Jc.test(u),i=r?u:ta(u,t.policy),o=n.forceQuote===!0,s=t.quoteChar,c=t.escape==="backslash";return t.alwaysQuote||o||ea.test(u)||!r&&t.policy==="tabPrefix"&&$o(u)||Zc(i,t.delimiter)||i.includes(s)||i.includes(`
|
|
28
|
-
`)||i.includes("\r")||c&&i.includes("\\")?ua(i,s,t.escape):i}function ua(e,t,n){const u=n==="backslash"?e.replace(/\\/g,"\\\\").split(t).join(`\\${t}`):e.split(t).join(t+t);return`${t}${u}${t}`}const ra=e=>e==="crlf"?`\r
|
|
29
|
-
`:`
|
|
30
|
-
`,ia="\uFEFF",oa=Object.freeze({cell:Object.freeze({delimiter:",",quoteChar:'"',escape:"double",alwaysQuote:!1,policy:"quotePrefix"}),lineEnd:"crlf",byteOrderMark:!0});function sa(e,t){const n=e instanceof Date?e.toISOString():e;return na(n,t,{numeric:typeof e=="number"})}function ca(e,t,n){const u=ra(n.lineEnd),r=i=>i.map(o=>sa(o,n.cell)).join(n.cell.delimiter)+u;return r(t.map(i=>i.header))+e.map(i=>r(t.map(o=>o.value(i)))).join("")}function aa(e,t,n){return(n.byteOrderMark?ia:"")+ca(e,t,n)}const la=[{header:"timestamp",value:e=>new Date(e.createdAt)},{header:"source",value:e=>e.source},{header:"tone",value:e=>e.tone},{header:"priority",value:e=>e.priority},{header:"pinned",value:e=>e.pinned===!0},{header:"message",value:e=>e.message}];function zo(e){return aa(e,la,oa)}function Vo(e){return JSON.stringify(e,null,2)}function da(e,t){return{update:(n,u)=>{e.update({title:n}),u!==void 0&&e.setProgress({value:Math.max(0,Math.min(1,u)),...t.onCancel?{onCancel:t.onCancel}:{}})},success:n=>e.update({title:n??t.message,severity:"success",sticky:!1,progress:{done:!0}}),fail:n=>e.update({title:n??t.message,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0}),dismiss:()=>e.close(),updateActions:n=>{var u;return e.update({actions:Ur(n.action?nu(n.action):void 0,(u=n.actions)==null?void 0:u.map(nu),()=>e.close())})},state:()=>e.state(),onDidChangeState:e.onDidChangeState}}const Wo=()=>{};function nu(e){return{label:e.label,onClick:Wo,...e.expireOnAction!==void 0?{expireOnAction:e.expireOnAction}:{}}}function Ur(e,t,n){const u=[e,...t??[]].filter(r=>r!==void 0);if(u.length!==0)return u.map((r,i)=>({label:r.label,primary:i===0,keepOpen:r.expireOnAction===!1,onClick:()=>{r.onClick(),r.expireOnAction!==!1&&n()}}))}function Ai(e,t){return{...t?{body:Dt.scrubSecrets(t)}:{},...e.duration!==void 0?{durationMs:e.duration}:{},...e.icon?{icon:e.icon}:{},...e.markdown?{markdown:!0}:{},...e.announce?{announce:e.announce}:{}}}function Ti(e,t){const n=Fo(e,t,nu);return{...n,...n.action?{action:nu(n.action)}:{},...n.actions?{actions:n.actions.map(nu)}:{},...n.onCancel?{onCancel:Wo}:{}}}function fa(e,t){return t.vendorError===void 0?null:ot.resolveVendorError(e,t.vendorError)}function ha(e){let t={...ne.DEFAULT_NOTIFICATION_SETTINGS},n={dismissed:!1,remindSuppressed:!1,sourceMuted:!1,inQuietHours:!1};const u=[],r=jr({getSettings:()=>t,recordAutoFade:()=>{},warn:(a,h)=>e.log.warn(a,h)});let i=[];const o=r.subscribe(a=>{i=a}),s={close:a=>r.dismiss(a),setFocus:(a,h)=>r.setFocus(a,h),setHover:(a,h)=>r.setHover(a,h),toggleExpanded:a=>r.toggleExpanded(a),isSticky:a=>gu(a,t),duration:a=>hu(a,t),resolveVendorError:a=>ot.resolveVendorError(e.vendorErrors,a),openExternal:e.openExternal,announcer:e.announcer};return{host:{notify(a,h){const g=Ti(h,e.errorActions),E=fa(e.vendorErrors,g),_=a.severity==="error"?ei(g.message,{...g.title?{title:g.title}:{},...g.subtitle?{subtitle:g.subtitle}:{},...g.description?{description:g.description}:{},...g.action?{action:g.action}:{}},E,e.openExternal):null,p=a.severity==="error"&&a.source==="general"&&E!==null?"vendor-error":a.source,C=ti(a.severity,a.priority,E!==null,t.vendorCodesAreUrgent),D=Zr({severity:a.severity,title:(_==null?void 0:_.displayText)??g.title??g.message,priority:C,source:p},t.notificationRules),I=D===null?{showToast:!1,recordTimeline:!1}:ou({priority:D.priority,recordTimeline:g.recordTimeline},t,n),F=a.delivery==="os-only"?"mock-os":I.showToast?"shown":I.recordTimeline?"timeline-only":"suppressed",y={definition:a,payload:{...g,message:Dt.scrubSecrets(g.message),...g.title?{title:Dt.scrubSecrets(g.title)}:{},...g.description?{description:Dt.scrubSecrets(g.description)}:{}},channel:a.delivery,decision:I,outcome:F};if(a.delivery==="os-only"||D===null||!I.showToast)return u.push(y),"";const R=(_==null?void 0:_.bodyText)??g.subtitle??g.description;let x;const L=Ur((_==null?void 0:_.primaryAction)??g.action,g.actions,()=>x==null?void 0:x.close()),H=r.notify({severity:D.severity,title:Dt.scrubSecrets(D.title),...Ai(g,R),source:D.source,priority:D.priority,isolated:!0,...g.id!==void 0?{id:String(g.id)}:{},...L?{actions:L}:{}});return x=H,u.push(H.id?y:{...y,outcome:"spam-dropped"}),H.id},progress(a,h){const g=Ti(h,e.errorActions),E=ou({priority:a.priority,recordTimeline:g.recordTimeline},t,n);u.push({definition:a,payload:g,channel:a.delivery,decision:E,outcome:E.showToast?"shown":E.recordTimeline?"timeline-only":"suppressed"});const _=g.id!==void 0?String(g.id):void 0;if(!E.showToast)return _!==void 0&&r.suppress(I=>I.id===_),Mo;let p;const C=Ur(g.action,g.actions,()=>p==null?void 0:p.close()),D=r.notify({severity:a.severity,title:Dt.scrubSecrets(g.message),...Ai(g,g.subtitle??g.description),source:a.source,priority:a.priority,isolated:!0,sticky:!0,progress:g.onCancel?{onCancel:g.onCancel}:{},..._!==void 0?{id:_}:{},...C?{actions:C}:{}});return p=D,da(D,g)}},controller:s,deliveries:u,setBehavior:a=>{t={...ne.DEFAULT_NOTIFICATION_SETTINGS},n={dismissed:a==="dismissed",remindSuppressed:a==="reminder",sourceMuted:a==="source-muted",inQuietHours:a==="quiet-hours"},a==="dnd"?t={...t,doNotDisturb:!0}:a==="rule-transform"?t={...t,notificationRules:[{id:"preview-transform",name:"Preview transform",enabled:!0,conditions:{source:"dev"},actions:{setSeverity:"warning",setPriority:"urgent",addPrefix:"[RULE]"}}]}:a==="rule-suppress"&&(t={...t,notificationRules:[{id:"preview-suppress",name:"Preview suppress",enabled:!0,conditions:{source:"dev"},actions:{suppress:!0}}]})},subscribe:a=>r.subscribe(a),clear:()=>{for(const a of i)r.close(a.id);u.splice(0,u.length)},dispose:()=>{o(),r.dispose()}}}function qo(e,t){const n=e.notifications.stack;return{close:u=>n.dismiss(u),setFocus:(u,r)=>n.setFocus(u,r),setHover:(u,r)=>n.setHover(u,r),toggleExpanded:u=>n.toggleExpanded(u),isSticky:u=>gu(u,t()),duration:u=>hu(u,t()),resolveVendorError:u=>ot.resolveVendorError(e.vendorErrors,u),openExternal:u=>ot.openExternalUrl(e.desktop,e.log,u),announcer:e.announcer}}function ju(e){const t=n=>{n.catch(u=>e.notifications.notify(Po,{cause:u}))};return{remindLaterEnabled:()=>ne.notificationSettings.get().remindLaterEnabled,isSourceMuted:en,setSourceMuted:(n,u)=>t(Do(n,u)),dismissKey:n=>t(ko(n)),remindLater:(n,u)=>t(xo(n,u)),openSettings:()=>e.openNotificationSettings(),navigate:n=>e.notifications.requestNavigation(n)}}const ga=3e4,[pa,Si]=A.createSignal(Date.now());let Mu=0,uu;function Ea(){Mu+=1,uu===void 0&&(typeof window>"u"||(Si(Date.now()),uu=setInterval(()=>Si(Date.now()),ga)))}function ba(){Mu=Math.max(0,Mu-1),!(Mu>0||uu===void 0)&&(clearInterval(uu),uu=void 0)}function _a(){return Ea(),A.onCleanup(ba),pa}const ma=1e3,Aa=6e4,Ta=60,Sa=60,Ci=24,Ca=30;function Na(e){const t=Math.max(0,e);if(Math.floor(t/ma)<Ca)return{key:"now"};const u=Math.floor(t/Aa);if(u<1)return{key:"now"};if(u<Sa)return{key:"{n}m ago",values:{n:u}};const r=Math.floor(u/Ta);return r<Ci?{key:"{n}h ago",values:{n:r}}:{key:"{n}d ago",values:{n:Math.floor(r/Ci)}}}const Ni={};function Ra(e){let t=Ni[e];if(t)return t;t=Ni[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function Hn(e,t){typeof t!="string"&&(t=Hn.defaultChars);const n=Ra(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let r="";for(let i=0,o=u.length;i<o;i+=3){const s=parseInt(u.slice(i+1,i+3),16);if(s<128){r+=n[s];continue}if((s&224)===192&&i+3<o){const c=parseInt(u.slice(i+4,i+6),16);if((c&192)===128){const a=s<<6&1984|c&63;a<128?r+="��":r+=String.fromCharCode(a),i+=3;continue}}if((s&240)===224&&i+6<o){const c=parseInt(u.slice(i+4,i+6),16),a=parseInt(u.slice(i+7,i+9),16);if((c&192)===128&&(a&192)===128){const h=s<<12&61440|c<<6&4032|a&63;h<2048||h>=55296&&h<=57343?r+="���":r+=String.fromCharCode(h),i+=6;continue}}if((s&248)===240&&i+9<o){const c=parseInt(u.slice(i+4,i+6),16),a=parseInt(u.slice(i+7,i+9),16),h=parseInt(u.slice(i+10,i+12),16);if((c&192)===128&&(a&192)===128&&(h&192)===128){let g=s<<18&1835008|c<<12&258048|a<<6&4032|h&63;g<65536||g>1114111?r+="����":(g-=65536,r+=String.fromCharCode(55296+(g>>10),56320+(g&1023))),i+=9;continue}}r+="�"}return r})}Hn.defaultChars=";/?:@&=+$,#";Hn.componentChars="";const Ri={};function Ia(e){let t=Ri[e];if(t)return t;t=Ri[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Eu(e,t,n){typeof t!="string"&&(n=t,t=Eu.defaultChars),typeof n>"u"&&(n=!0);const u=Ia(t);let r="";for(let i=0,o=e.length;i<o;i++){const s=e.charCodeAt(i);if(n&&s===37&&i+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){r+=e.slice(i,i+3),i+=2;continue}if(s<128){r+=u[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<o){const c=e.charCodeAt(i+1);if(c>=56320&&c<=57343){r+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[i])}return r}Eu.defaultChars=";/?:@&=+$,-_.!~*'()#";Eu.componentChars="-_.!~*'()";function ni(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function $u(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Oa=/^([a-z0-9.+-]+:)/i,ya=/:[0-9]*$/,xa=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Da=["<",">",'"',"`"," ","\r",`
|
|
31
|
-
`," "],ka=["{","}","|","\\","^","`"].concat(Da),va=["'"].concat(ka),Ii=["%","/","?",";","#"].concat(va),Oi=["/","?","#"],La=255,yi=/^[+a-z0-9A-Z_-]{0,63}$/,wa=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xi={javascript:!0,"javascript:":!0},Di={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ui(e,t){if(e&&e instanceof $u)return e;const n=new $u;return n.parse(e,t),n}$u.prototype.parse=function(e,t){let n,u,r,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const a=xa.exec(i);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}let o=Oa.exec(i);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,i=i.substr(o.length)),(t||o||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=i.substr(0,2)==="//",r&&!(o&&xi[o])&&(i=i.substr(2),this.slashes=!0)),!xi[o]&&(r||o&&!Di[o])){let a=-1;for(let p=0;p<Oi.length;p++)u=i.indexOf(Oi[p]),u!==-1&&(a===-1||u<a)&&(a=u);let h,g;a===-1?g=i.lastIndexOf("@"):g=i.lastIndexOf("@",a),g!==-1&&(h=i.slice(0,g),i=i.slice(g+1),this.auth=h),a=-1;for(let p=0;p<Ii.length;p++)u=i.indexOf(Ii[p]),u!==-1&&(a===-1||u<a)&&(a=u);a===-1&&(a=i.length),i[a-1]===":"&&a--;const E=i.slice(0,a);i=i.slice(a),this.parseHost(E),this.hostname=this.hostname||"";const _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_){const p=this.hostname.split(/\./);for(let C=0,D=p.length;C<D;C++){const I=p[C];if(I&&!I.match(yi)){let F="";for(let y=0,R=I.length;y<R;y++)I.charCodeAt(y)>127?F+="x":F+=I[y];if(!F.match(yi)){const y=p.slice(0,C),R=p.slice(C+1),x=I.match(wa);x&&(y.push(x[1]),R.unshift(x[2])),R.length&&(i=R.join(".")+i),this.hostname=y.join(".");break}}}}this.hostname.length>La&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=i.indexOf("#");s!==-1&&(this.hash=i.substr(s),i=i.slice(0,s));const c=i.indexOf("?");return c!==-1&&(this.search=i.substr(c),i=i.slice(0,c)),i&&(this.pathname=i),Di[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};$u.prototype.parseHost=function(e){let t=ya.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Ma=Object.freeze(Object.defineProperty({__proto__:null,decode:Hn,encode:Eu,format:ni,parse:ui},Symbol.toStringTag,{value:"Module"})),Yo=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ko=/[\0-\x1F\x7F-\x9F]/,Fa=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,ri=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Xo=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,jo=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Pa=Object.freeze(Object.defineProperty({__proto__:null,Any:Yo,Cc:Ko,Cf:Fa,P:ri,S:Xo,Z:jo},Symbol.toStringTag,{value:"Module"})),Ua=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Ba=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var hr;const Ha=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Ga=(hr=String.fromCodePoint)!==null&&hr!==void 0?hr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function $a(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Ha.get(e))!==null&&t!==void 0?t:e}var nt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(nt||(nt={}));const za=32;var bn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(bn||(bn={}));function Br(e){return e>=nt.ZERO&&e<=nt.NINE}function Va(e){return e>=nt.UPPER_A&&e<=nt.UPPER_F||e>=nt.LOWER_A&&e<=nt.LOWER_F}function Wa(e){return e>=nt.UPPER_A&&e<=nt.UPPER_Z||e>=nt.LOWER_A&&e<=nt.LOWER_Z||Br(e)}function qa(e){return e===nt.EQUALS||Wa(e)}var tt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(tt||(tt={}));var Jt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Jt||(Jt={}));class Ya{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=tt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Jt.Strict}startEntity(t){this.decodeMode=t,this.state=tt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case tt.EntityStart:return t.charCodeAt(n)===nt.NUM?(this.state=tt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=tt.NamedEntity,this.stateNamedEntity(t,n));case tt.NumericStart:return this.stateNumericStart(t,n);case tt.NumericDecimal:return this.stateNumericDecimal(t,n);case tt.NumericHex:return this.stateNumericHex(t,n);case tt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|za)===nt.LOWER_X?(this.state=tt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=tt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,r){if(n!==u){const i=u-n;this.result=this.result*Math.pow(r,i)+parseInt(t.substr(n,i),r),this.consumed+=i}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(Br(r)||Va(r))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(Br(r))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===nt.SEMI)this.consumed+=1;else if(this.decodeMode===Jt.Strict)return 0;return this.emitCodePoint($a(this.result),this.consumed),this.errors&&(t!==nt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let r=u[this.treeIndex],i=(r&bn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=Ka(u,r,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===Jt.Attribute&&(i===0||qa(o))?0:this.emitNotTerminatedNamedEntity();if(r=u[this.treeIndex],i=(r&bn.VALUE_LENGTH)>>14,i!==0){if(o===nt.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Jt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,r=(u[n]&bn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~bn.VALUE_LENGTH:r[t+1],u),n===3&&this.emitCodePoint(r[t+2],u),u}end(){var t;switch(this.state){case tt.NamedEntity:return this.result!==0&&(this.decodeMode!==Jt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case tt.NumericDecimal:return this.emitNumericEntity(0,2);case tt.NumericHex:return this.emitNumericEntity(0,3);case tt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case tt.EntityStart:return 0}}}function Zo(e){let t="";const n=new Ya(e,u=>t+=Ga(u));return function(r,i){let o=0,s=0;for(;(s=r.indexOf("&",s))>=0;){t+=r.slice(o,s),n.startEntity(i);const a=n.write(r,s+1);if(a<0){o=s+n.end();break}o=s+a,s=a===0?o+1:o}const c=t+r.slice(o);return t="",c}}function Ka(e,t,n,u){const r=(t&bn.BRANCH_LENGTH)>>7,i=t&bn.JUMP_TABLE;if(r===0)return i!==0&&u===i?n:-1;if(i){const c=u-i;return c<0||c>=r?-1:e[n+c]-1}let o=n,s=o+r-1;for(;o<=s;){const c=o+s>>>1,a=e[c];if(a<u)o=c+1;else if(a>u)s=c-1;else return e[c+r]}return-1}const Qo=Zo(Ua);Zo(Ba);function Xa(e,t=Jt.Legacy){return Qo(e,t)}function ja(e){return Qo(e,Jt.Strict)}function Za(e){return Object.prototype.toString.call(e)}function ii(e){return Za(e)==="[object String]"}const Qa=Object.prototype.hasOwnProperty;function Ja(e,t){return Qa.call(e,t)}function Zu(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function el(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function oi(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function su(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Jo=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,tl=/&([a-z#][a-z0-9]{1,31});/gi,nl=new RegExp(Jo.source+"|"+tl.source,"gi"),ul=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function rl(e,t){if(t.charCodeAt(0)===35&&ul.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return oi(u)?su(u):e}const n=Xa(e);return n!==e?n:e}function il(e){return e.indexOf("\\")<0?e:e.replace(Jo,"$1")}function Gn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(nl,function(t,n,u){return n||rl(t,u)})}const ol=/[&<>"]/,sl=/[&<>"]/g,cl={"&":"&","<":"<",">":">",'"':"""};function al(e){return cl[e]}function _n(e){return ol.test(e)?e.replace(sl,al):e}const ll=/[.?*+^$[\]\\(){}|-]/g;function dl(e){return e.replace(ll,"\\$&")}function ze(e){switch(e){case 9:case 32:return!0}return!1}function cu(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function es(e){return ri.test(e)||Xo.test(e)}function au(e){return es(su(e))}function lu(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Qu(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function ki(e){return e===32||e===9||e===10||e===13}function Ju(e){let t=0;for(;t<e.length&&ki(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&ki(e.charCodeAt(n));n--);return e.slice(t,n+1)}const fl={mdurl:Ma,ucmicro:Pa},hl=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:el,asciiTrim:Ju,assign:Zu,escapeHtml:_n,escapeRE:dl,fromCodePoint:su,has:Ja,isMdAsciiPunct:lu,isPunctChar:es,isPunctCharCode:au,isSpace:ze,isString:ii,isValidEntityCode:oi,isWhiteSpace:cu,lib:fl,normalizeReference:Qu,unescapeAll:Gn,unescapeMd:il},Symbol.toStringTag,{value:"Module"}));function gl(e,t,n){let u,r,i,o;const s=e.posMax,c=e.pos;for(e.pos=t+1,u=1;e.pos<s;){if(i=e.src.charCodeAt(e.pos),i===93&&(u--,u===0)){r=!0;break}if(o=e.pos,e.md.inline.skipToken(e),i===91){if(o===e.pos-1)u++;else if(n)return e.pos=c,-1}}let a=-1;return r&&(a=e.pos),e.pos=c,a}function pl(e,t,n){let u,r=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(u=e.charCodeAt(r),u===10||u===60)return i;if(u===62)return i.pos=r+1,i.str=Gn(e.slice(t+1,r)),i.ok=!0,i;if(u===92&&r+1<n){r+=2;continue}r++}return i}let o=0;for(;r<n&&(u=e.charCodeAt(r),!(u===32||u<32||u===127));){if(u===92&&r+1<n){if(e.charCodeAt(r+1)===32){r++;continue}r+=2;continue}if(u===40&&(o++,o>32))return i;if(u===41){if(o===0)break;o--}r++}return t===r||o!==0||(i.str=Gn(e.slice(t,r)),i.pos=r,i.ok=!0),i}function El(e,t,n,u){let r,i=t;const o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)o.str=u.str,o.marker=u.marker;else{if(i>=n)return o;let s=e.charCodeAt(i);if(s!==34&&s!==39&&s!==40)return o;t++,i++,s===40&&(s=41),o.marker=s}for(;i<n;){if(r=e.charCodeAt(i),r===o.marker)return o.pos=i+1,o.str+=Gn(e.slice(t,i)),o.ok=!0,o;if(r===40&&o.marker===41)return o;r===92&&i+1<n&&i++,i++}return o.can_continue=!0,o.str+=Gn(e.slice(t,i)),o}const bl=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:pl,parseLinkLabel:gl,parseLinkTitle:El},Symbol.toStringTag,{value:"Module"})),Yt={};Yt.code_inline=function(e,t,n,u,r){const i=e[t];return"<code"+r.renderAttrs(i)+">"+_n(i.content)+"</code>"};Yt.code_block=function(e,t,n,u,r){const i=e[t];return"<pre"+r.renderAttrs(i)+"><code>"+_n(e[t].content)+`</code></pre>
|
|
32
|
-
`};Yt.fence=function(e,t,n,u,r){const i=e[t],o=i.info?Gn(i.info).trim():"";let s="",c="";if(o){const h=o.split(/(\s+)/g);s=h[0],c=h.slice(2).join("")}let a;if(n.highlight?a=n.highlight(i.content,s,c)||_n(i.content):a=_n(i.content),a.indexOf("<pre")===0)return a+`
|
|
33
|
-
`;if(o){const h=i.attrIndex("class"),g=i.attrs?i.attrs.slice():[];h<0?g.push(["class",n.langPrefix+s]):(g[h]=g[h].slice(),g[h][1]+=" "+n.langPrefix+s);const E={attrs:g};return`<pre><code${r.renderAttrs(E)}>${a}</code></pre>
|
|
34
|
-
`}return`<pre><code${r.renderAttrs(i)}>${a}</code></pre>
|
|
35
|
-
`};Yt.image=function(e,t,n,u,r){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,u),r.renderToken(e,t,n)};Yt.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
36
|
-
`:`<br>
|
|
37
|
-
`};Yt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
38
|
-
`:`<br>
|
|
39
|
-
`:`
|
|
40
|
-
`};Yt.text=function(e,t){return _n(e[t].content)};Yt.html_block=function(e,t){return e[t].content};Yt.html_inline=function(e,t){return e[t].content};function zn(){this.rules=Zu({},Yt)}zn.prototype.renderAttrs=function(t){let n,u,r;if(!t.attrs)return"";for(r="",n=0,u=t.attrs.length;n<u;n++)r+=" "+_n(t.attrs[n][0])+'="'+_n(t.attrs[n][1])+'"';return r};zn.prototype.renderToken=function(t,n,u){const r=t[n];let i="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&t[n-1].hidden&&(i+=`
|
|
41
|
-
`),i+=(r.nesting===-1?"</":"<")+r.tag,i+=this.renderAttrs(r),r.nesting===0&&u.xhtmlOut&&(i+=" /");let o=!1;if(r.block&&(o=!0,r.nesting===1&&n+1<t.length)){const s=t[n+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===r.tag)&&(o=!1)}return i+=o?`>
|
|
42
|
-
`:">",i};zn.prototype.renderInline=function(e,t,n){let u="";const r=this.rules;for(let i=0,o=e.length;i<o;i++){const s=e[i].type;typeof r[s]<"u"?u+=r[s](e,i,t,n,this):u+=this.renderToken(e,i,t)}return u};zn.prototype.renderInlineAsText=function(e,t,n){let u="";for(let r=0,i=e.length;r<i;r++)switch(e[r].type){case"text":u+=e[r].content;break;case"image":u+=this.renderInlineAsText(e[r].children,t,n);break;case"html_inline":case"html_block":u+=e[r].content;break;case"softbreak":case"hardbreak":u+=`
|
|
43
|
-
`;break}return u};zn.prototype.render=function(e,t,n){let u="";const r=this.rules;for(let i=0,o=e.length;i<o;i++){const s=e[i].type;s==="inline"?u+=this.renderInline(e[i].children,t,n):typeof r[s]<"u"?u+=r[s](e,i,t,n,this):u+=this.renderToken(e,i,t,n)}return u};function _t(){this.__rules__=[],this.__cache__=null}_t.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};_t.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})};_t.prototype.at=function(e,t,n){const u=this.__find__(e),r=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=r.alt||[],this.__cache__=null};_t.prototype.before=function(e,t,n,u){const r=this.__find__(e),i=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};_t.prototype.after=function(e,t,n,u){const r=this.__find__(e),i=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};_t.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null};_t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!0,n.push(u)},this),this.__cache__=null,n};_t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};_t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!1,n.push(u)},this),this.__cache__=null,n};_t.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Bt(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Bt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,r=n.length;u<r;u++)if(n[u][0]===t)return u;return-1};Bt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Bt.prototype.attrSet=function(t,n){const u=this.attrIndex(t),r=[t,n];u<0?this.attrPush(r):this.attrs[u]=r};Bt.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u};Bt.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function ts(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}ts.prototype.Token=Bt;const _l=/\r\n?|\n/g,ml=/\0/g;function Al(e){let t;t=e.src.replace(_l,`
|
|
44
|
-
`),t=t.replace(ml,"�"),e.src=t}function Tl(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Sl(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function Cl(e){return/^<a[>\s]/i.test(e)}function Nl(e){return/^<\/a\s*>/i.test(e)}function Rl(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;const r=t[n].children,i=[];let o=0;for(let s=r.length-1;s>=0;s--){const c=r[s];if(c.type==="link_close"){for(s--;r[s].level!==c.level&&r[s].type!=="link_open";)s--;continue}if(c.type==="html_inline"&&(Cl(c.content)&&o>0&&o--,Nl(c.content)&&o++),!(o>0)&&c.type==="text"&&e.md.linkify.test(c.content)){const a=c.content;let h=e.md.linkify.match(a);const g=[];let E=c.level,_=0;h.length>0&&h[0].index===0&&s>0&&r[s-1].type==="text_special"&&(h=h.slice(1));for(let p=0;p<h.length;p++){const C=h[p].url,D=e.md.normalizeLink(C);if(!e.md.validateLink(D))continue;let I=h[p].text;h[p].schema?h[p].schema==="mailto:"&&!/^mailto:/i.test(I)?I=e.md.normalizeLinkText("mailto:"+I).replace(/^mailto:/,""):I=e.md.normalizeLinkText(I):I=e.md.normalizeLinkText("http://"+I).replace(/^http:\/\//,"");const F=h[p].index;if(F>_){const L=new e.Token("text","",0);L.content=a.slice(_,F),L.level=E,g.push(L)}const y=new e.Token("link_open","a",1);y.attrs=[["href",D]],y.level=E++,y.markup="linkify",y.info="auto",g.push(y);const R=new e.Token("text","",0);R.content=I,R.level=E,g.push(R);const x=new e.Token("link_close","a",-1);x.level=--E,x.markup="linkify",x.info="auto",g.push(x),_=h[p].lastIndex}if(_<a.length){const p=new e.Token("text","",0);p.content=a.slice(_),p.level=E,g.push(p)}i.push({index:s,nodes:g})}}if(i.length>0){let s=r.length;for(const g of i)s+=g.nodes.length-1;const c=new Array(s);let a=0,h=0;i.reverse();for(let g=0;g<r.length;g++){const E=i[a];if((E==null?void 0:E.index)===g){for(const _ of E.nodes)c[h++]=_;a++}else c[h++]=r[g]}t[n].children=c}}}const ns=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Il=/\((c|tm|r)\)/i,Ol=/\((c|tm|r)\)/ig,yl={c:"©",r:"®",tm:"™"};function xl(e,t){return yl[t.toLowerCase()]}function Dl(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(Ol,xl)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function kl(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&ns.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function vl(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Il.test(e.tokens[t].content)&&Dl(e.tokens[t].children),ns.test(e.tokens[t].content)&&kl(e.tokens[t].children))}const Ll=/['"]/,vi=/['"]/g,Li="’",wl=1e3;function wi(e,t,n){for(;e.length>n;){const u=e.pop();u.isSingleQuote?t.single=u.prevSameQuoteIdx:t.double=u.prevSameQuoteIdx}}function Ou(e,t,n,u){e[t]||(e[t]=[]),e[t].push({pos:n,ch:u})}function Ml(e,t){let n="",u=0;t.sort((r,i)=>r.pos-i.pos);for(let r=0;r<t.length;r++){const i=t[r];n+=e.slice(u,i.pos)+i.ch,u=i.pos+1}return n+e.slice(u)}function Fl(e,t){let n;const u=[],r={single:-1,double:-1},i={};for(let o=0;o<e.length;o++){const s=e[o],c=e[o].level;for(n=u.length-1;n>=0&&!(u[n].level<=c);n--);if(wi(u,r,n+1),s.type!=="text")continue;const a=s.content;let h=0;const g=a.length;e:for(;h<g;){vi.lastIndex=h;const E=vi.exec(a);if(!E)break;let _=!0,p=!0;h=E.index+1;const C=E[0]==="'";let D=32;if(E.index-1>=0)D=a.charCodeAt(E.index-1);else for(n=o-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){D=e[n].content.charCodeAt(e[n].content.length-1);break}let I=32;if(h<g)I=a.charCodeAt(h);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){I=e[n].content.charCodeAt(0);break}const F=lu(D)||au(D),y=lu(I)||au(I),R=cu(D),x=cu(I);if(x?_=!1:y&&(R||F||(_=!1)),R?p=!1:F&&(x||y||(p=!1)),I===34&&E[0]==='"'&&D>=48&&D<=57&&(p=_=!1),_&&p&&(_=F,p=y),!_&&!p){C&&Ou(i,o,E.index,Li);continue}if(p&&(n=C?r.single:r.double,n>=0&&u[n].level===c)){const L=u[n];let H,Z;C?(H=t.md.options.quotes[2],Z=t.md.options.quotes[3]):(H=t.md.options.quotes[0],Z=t.md.options.quotes[1]),Ou(i,o,E.index,Z),Ou(i,L.tokenIdx,L.contentPos,H),wi(u,r,n);continue e}if(_){if(u.length>=wl)return;u.push({tokenIdx:o,contentPos:E.index,isSingleQuote:C,level:c,prevSameQuoteIdx:C?r.single:r.double}),C?r.single=u.length-1:r.double=u.length-1}else p&&C&&Ou(i,o,E.index,Li)}}Object.keys(i).forEach(function(o){e[o].content=Ml(e[o].content,i[o])})}function Pl(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Ll.test(e.tokens[t].content)||Fl(e.tokens[t].children,e)}function Ul(e){let t,n;const u=e.tokens,r=u.length;for(let i=0;i<r;i++){if(u[i].type!=="inline")continue;const o=u[i].children,s=o.length;for(t=0;t<s;t++)o[t].type==="text_special"&&(o[t].type="text");for(t=n=0;t<s;t++)o[t].type==="text"&&t+1<s&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}}const gr=[["normalize",Al],["block",Tl],["inline",Sl],["linkify",Rl],["replacements",vl],["smartquotes",Pl],["text_join",Ul]];function si(){this.ruler=new _t;for(let e=0;e<gr.length;e++)this.ruler.push(gr[e][0],gr[e][1])}si.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)};si.prototype.State=ts;function Kt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let i=0,o=0,s=0,c=0,a=r.length,h=!1;o<a;o++){const g=r.charCodeAt(o);if(!h)if(ze(g)){s++,g===9?c+=4-c%4:c++;continue}else h=!0;(g===10||o===a-1)&&(g!==10&&o++,this.bMarks.push(i),this.eMarks.push(o),this.tShift.push(s),this.sCount.push(c),this.bsCount.push(0),h=!1,s=0,c=0,i=o+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Kt.prototype.push=function(e,t,n){const u=new Bt(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u};Kt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Kt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Kt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!ze(u))break}return t};Kt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!ze(this.src.charCodeAt(--t)))return t+1;return t};Kt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t};Kt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Kt.prototype.getLines=function(t,n,u,r){if(t>=n)return"";const i=new Array(n-t);for(let o=0,s=t;s<n;s++,o++){let c=0;const a=this.bMarks[s];let h=a,g;for(s+1<n||r?g=this.eMarks[s]+1:g=this.eMarks[s];h<g&&c<u;){const E=this.src.charCodeAt(h);if(ze(E))E===9?c+=4-(c+this.bsCount[s])%4:c++;else if(h-a<this.tShift[s])c++;else break;h++}c>u?i[o]=new Array(c-u+1).join(" ")+this.src.slice(h,g):i[o]=this.src.slice(h,g)}return i.join("")};Kt.prototype.Token=Bt;const Bl=65536;function pr(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function Mi(e){const t=[],n=e.length;let u=0,r=e.charCodeAt(u),i=!1,o=0,s="";for(;u<n;)r===124&&(i?(s+=e.substring(o,u-1),o=u):(t.push(s+e.substring(o,u)),s="",o=u+1)),i=r===92,u++,r=e.charCodeAt(u);return t.push(s+e.substring(o)),t}function Hl(e,t,n,u){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let i=e.bMarks[r]+e.tShift[r];if(i>=e.eMarks[r])return!1;const o=e.src.charCodeAt(i++);if(o!==124&&o!==45&&o!==58||i>=e.eMarks[r])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58&&!ze(s)||o===45&&ze(s))return!1;for(;i<e.eMarks[r];){const R=e.src.charCodeAt(i);if(R!==124&&R!==45&&R!==58&&!ze(R))return!1;i++}let c=pr(e,t+1),a=c.split("|");const h=[];for(let R=0;R<a.length;R++){const x=a[R].trim();if(!x){if(R===0||R===a.length-1)continue;return!1}if(!/^:?-+:?$/.test(x))return!1;x.charCodeAt(x.length-1)===58?h.push(x.charCodeAt(0)===58?"center":"right"):x.charCodeAt(0)===58?h.push("left"):h.push("")}if(c=pr(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;a=Mi(c),a.length&&a[0]===""&&a.shift(),a.length&&a[a.length-1]===""&&a.pop();const g=a.length;if(g===0||g!==h.length)return!1;if(u)return!0;const E=e.parentType;e.parentType="table";const _=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),C=[t,0];p.map=C;const D=e.push("thead_open","thead",1);D.map=[t,t+1];const I=e.push("tr_open","tr",1);I.map=[t,t+1];for(let R=0;R<a.length;R++){const x=e.push("th_open","th",1);h[R]&&(x.attrs=[["style","text-align:"+h[R]]]);const L=e.push("inline","",0);L.content=a[R].trim(),L.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let F,y=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let R=!1;for(let L=0,H=_.length;L<H;L++)if(_[L](e,r,n,!0)){R=!0;break}if(R||(c=pr(e,r).trim(),!c)||e.sCount[r]-e.blkIndent>=4||(a=Mi(c),a.length&&a[0]===""&&a.shift(),a.length&&a[a.length-1]===""&&a.pop(),y+=g-a.length,y>Bl))break;if(r===t+2){const L=e.push("tbody_open","tbody",1);L.map=F=[t+2,0]}const x=e.push("tr_open","tr",1);x.map=[r,r+1];for(let L=0;L<g;L++){const H=e.push("td_open","td",1);h[L]&&(H.attrs=[["style","text-align:"+h[L]]]);const Z=e.push("inline","",0);Z.content=a[L]?a[L].trim():"",Z.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return F&&(e.push("tbody_close","tbody",-1),F[1]=r),e.push("table_close","table",-1),C[1]=r,e.parentType=E,e.line=r,!0}function Gl(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,r=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,r=u;continue}break}e.line=r;const i=e.push("code_block","code",0);return i.content=e.getLines(t,r,4+e.blkIndent,!1)+`
|
|
45
|
-
`,i.map=[t,e.line],!0}function $l(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>i)return!1;const o=e.src.charCodeAt(r);if(o!==126&&o!==96)return!1;let s=r;r=e.skipChars(r,o);let c=r-s;if(c<3)return!1;const a=e.src.slice(s,r),h=e.src.slice(r,i);if(o===96&&h.indexOf(String.fromCharCode(o))>=0)return!1;if(u)return!0;let g=t,E=!1;for(;g++,!(g>=n||(r=s=e.bMarks[g]+e.tShift[g],i=e.eMarks[g],r<i&&e.sCount[g]<e.blkIndent));)if(e.src.charCodeAt(r)===o&&!(e.sCount[g]-e.blkIndent>=4)&&(r=e.skipChars(r,o),!(r-s<c)&&(r=e.skipSpaces(r),!(r<i)))){E=!0;break}c=e.sCount[t],e.line=g+(E?1:0);const _=e.push("fence","code",0);return _.info=h,_.content=e.getLines(t+1,g,c,!0),_.markup=a,_.map=[t,e.line],!0}function zl(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(u)return!0;const s=[],c=[],a=[],h=[],g=e.md.block.ruler.getRules("blockquote"),E=e.parentType;e.parentType="blockquote";let _=!1,p;for(p=t;p<n;p++){const y=e.sCount[p]<e.blkIndent;if(r=e.bMarks[p]+e.tShift[p],i=e.eMarks[p],r>=i)break;if(e.src.charCodeAt(r++)===62&&!y){let x=e.sCount[p]+1,L,H;e.src.charCodeAt(r)===32?(r++,x++,H=!1,L=!0):e.src.charCodeAt(r)===9?(L=!0,(e.bsCount[p]+x)%4===3?(r++,x++,H=!1):H=!0):L=!1;let Z=x;for(s.push(e.bMarks[p]),e.bMarks[p]=r;r<i;){const ee=e.src.charCodeAt(r);if(ze(ee))ee===9?Z+=4-(Z+e.bsCount[p]+(H?1:0))%4:Z++;else break;r++}_=r>=i,c.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(L?1:0),a.push(e.sCount[p]),e.sCount[p]=Z-x,h.push(e.tShift[p]),e.tShift[p]=r-e.bMarks[p];continue}if(_)break;let R=!1;for(let x=0,L=g.length;x<L;x++)if(g[x](e,p,n,!0)){R=!0;break}if(R){e.lineMax=p,e.blkIndent!==0&&(s.push(e.bMarks[p]),c.push(e.bsCount[p]),h.push(e.tShift[p]),a.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),c.push(e.bsCount[p]),h.push(e.tShift[p]),a.push(e.sCount[p]),e.sCount[p]=-1}const C=e.blkIndent;e.blkIndent=0;const D=e.push("blockquote_open","blockquote",1);D.markup=">";const I=[t,0];D.map=I,e.md.block.tokenize(e,t,p);const F=e.push("blockquote_close","blockquote",-1);F.markup=">",e.lineMax=o,e.parentType=E,I[1]=e.line;for(let y=0;y<h.length;y++)e.bMarks[y+t]=s[y],e.tShift[y+t]=h[y],e.sCount[y+t]=a[y],e.bsCount[y+t]=c[y];return e.blkIndent=C,!0}function Vl(e,t,n,u){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(i++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;i<r;){const a=e.src.charCodeAt(i++);if(a!==o&&!ze(a))return!1;a===o&&s++}if(s<3)return!1;if(u)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function Fi(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(u++);if(r!==42&&r!==45&&r!==43)return-1;if(u<n){const i=e.src.charCodeAt(u);if(!ze(i))return-1}return u}function Pi(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let r=n;if(r+1>=u)return-1;let i=e.src.charCodeAt(r++);if(i<48||i>57)return-1;for(;;){if(r>=u)return-1;if(i=e.src.charCodeAt(r++),i>=48&&i<=57){if(r-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return r<u&&(i=e.src.charCodeAt(r),!ze(i))?-1:r}function Wl(e,t){const n=e.level+2;for(let u=t+2,r=e.tokens.length-2;u<r;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function ql(e,t,n,u){let r,i,o,s,c=t,a=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let h=!1;u&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(h=!0);let g,E,_;if((_=Pi(e,c))>=0){if(g=!0,o=e.bMarks[c]+e.tShift[c],E=Number(e.src.slice(o,_-1)),h&&E!==1)return!1}else if((_=Fi(e,c))>=0)g=!1;else return!1;if(h&&e.skipSpaces(_)>=e.eMarks[c])return!1;if(u)return!0;const p=e.src.charCodeAt(_-1),C=e.tokens.length;g?(s=e.push("ordered_list_open","ol",1),E!==1&&(s.attrs=[["start",E]])):s=e.push("bullet_list_open","ul",1);const D=[c,0];s.map=D,s.markup=String.fromCharCode(p);let I=!1;const F=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";c<n;){i=_,r=e.eMarks[c];const R=e.sCount[c]+_-(e.bMarks[c]+e.tShift[c]);let x=R;for(;i<r;){const G=e.src.charCodeAt(i);if(G===9)x+=4-(x+e.bsCount[c])%4;else if(G===32)x++;else break;i++}const L=i;let H;L>=r?H=1:H=x-R,H>4&&(H=1);const Z=R+H;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(p);const ee=[c,0];s.map=ee,g&&(s.info=e.src.slice(o,_-1));const he=e.tight,ce=e.tShift[c],ye=e.sCount[c],xe=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=Z,e.tight=!0,e.tShift[c]=L-e.bMarks[c],e.sCount[c]=x,L>=r&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||I)&&(a=!1),I=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=xe,e.tShift[c]=ce,e.sCount[c]=ye,e.tight=he,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(p),c=e.line,ee[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let Ae=!1;for(let G=0,Te=F.length;G<Te;G++)if(F[G](e,c,n,!0)){Ae=!0;break}if(Ae)break;if(g){if(_=Pi(e,c),_<0)break;o=e.bMarks[c]+e.tShift[c]}else if(_=Fi(e,c),_<0)break;if(p!==e.src.charCodeAt(_-1))break}return g?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(p),D[1]=c,e.line=c,e.parentType=y,a&&Wl(e,C),!0}function Yl(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function s(F){const y=e.lineMax;if(F>=y||e.isEmpty(F))return null;let R=!1;if(e.sCount[F]-e.blkIndent>3&&(R=!0),e.sCount[F]<0&&(R=!0),!R){const H=e.md.block.ruler.getRules("reference"),Z=e.parentType;e.parentType="reference";let ee=!1;for(let he=0,ce=H.length;he<ce;he++)if(H[he](e,F,y,!0)){ee=!0;break}if(e.parentType=Z,ee)return null}const x=e.bMarks[F]+e.tShift[F],L=e.eMarks[F];return e.src.slice(x,L+1)}let c=e.src.slice(r,i+1);i=c.length;let a=-1;for(r=1;r<i;r++){const F=c.charCodeAt(r);if(F===91)return!1;if(F===93){a=r;break}else if(F===10){const y=s(o);y!==null&&(c+=y,i=c.length,o++)}else if(F===92&&(r++,r<i&&c.charCodeAt(r)===10)){const y=s(o);y!==null&&(c+=y,i=c.length,o++)}}if(a<0||c.charCodeAt(a+1)!==58)return!1;for(r=a+2;r<i;r++){const F=c.charCodeAt(r);if(F===10){const y=s(o);y!==null&&(c+=y,i=c.length,o++)}else if(!ze(F))break}const h=e.md.helpers.parseLinkDestination(c,r,i);if(!h.ok)return!1;const g=e.md.normalizeLink(h.str);if(!e.md.validateLink(g))return!1;r=h.pos;const E=r,_=o,p=r;for(;r<i;r++){const F=c.charCodeAt(r);if(F===10){const y=s(o);y!==null&&(c+=y,i=c.length,o++)}else if(!ze(F))break}let C=e.md.helpers.parseLinkTitle(c,r,i);for(;C.can_continue;){const F=s(o);if(F===null)break;c+=F,r=i,i=c.length,o++,C=e.md.helpers.parseLinkTitle(c,r,i,C)}let D;for(r<i&&p!==r&&C.ok?(D=C.str,r=C.pos):(D="",r=E,o=_);r<i;){const F=c.charCodeAt(r);if(!ze(F))break;r++}if(r<i&&c.charCodeAt(r)!==10&&D)for(D="",r=E,o=_;r<i;){const F=c.charCodeAt(r);if(!ze(F))break;r++}if(r<i&&c.charCodeAt(r)!==10)return!1;const I=Qu(c.slice(1,a));return I?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[I]>"u"&&(e.env.references[I]={title:D,href:g}),e.line=o),!0):!1}const Kl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Xl="[a-zA-Z_:][a-zA-Z0-9:._-]*",jl="[^\"'=<>`\\x00-\\x20]+",Zl="'[^']*'",Ql='"[^"]*"',Jl="(?:"+jl+"|"+Zl+"|"+Ql+")",e0="(?:\\s+"+Xl+"(?:\\s*=\\s*"+Jl+")?)",us="<[A-Za-z][A-Za-z0-9\\-]*"+e0+"*\\s*\\/?>",rs="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",t0="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",n0="<[?][\\s\\S]*?[?]>",u0="<![A-Za-z][^>]*>",r0="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",i0=new RegExp("^(?:"+us+"|"+rs+"|"+t0+"|"+n0+"|"+u0+"|"+r0+")"),o0=new RegExp("^(?:"+us+"|"+rs+")"),Cn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Kl.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(o0.source+"\\s*$"),/^$/,!1]];function s0(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let o=e.src.slice(r,i),s=0;for(;s<Cn.length&&!Cn[s][0].test(o);s++);if(s===Cn.length)return!1;if(u)return Cn[s][2];let c=t+1;const a=Cn[s][1].test("");if(!Cn[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(a||!e.isEmpty(c)));c++)if(r=e.bMarks[c]+e.tShift[c],i=e.eMarks[c],o=e.src.slice(r,i),Cn[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;const h=e.push("html_block","",0);return h.map=[t,c],h.content=e.getLines(t,c,e.blkIndent,!0),!0}function c0(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(r);if(o!==35||r>=i)return!1;let s=1;for(o=e.src.charCodeAt(++r);o===35&&r<i&&s<=6;)s++,o=e.src.charCodeAt(++r);if(s>6||r<i&&!ze(o))return!1;if(u)return!0;i=e.skipSpacesBack(i,r);const c=e.skipCharsBack(i,35,r);c>r&&ze(e.src.charCodeAt(c-1))&&(i=c),e.line=t+1;const a=e.push("heading_open","h"+String(s),1);a.markup="########".slice(0,s),a.map=[t,e.line];const h=e.push("inline","",0);h.content=Ju(e.src.slice(r,i)),h.map=[t,e.line],h.children=[];const g=e.push("heading_close","h"+String(s),-1);return g.markup="########".slice(0,s),!0}function a0(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let i=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let _=e.bMarks[s]+e.tShift[s];const p=e.eMarks[s];if(_<p&&(o=e.src.charCodeAt(_),(o===45||o===61)&&(_=e.skipChars(_,o),_=e.skipSpaces(_),_>=p))){i=o===61?1:2;break}}if(e.sCount[s]<0)continue;let E=!1;for(let _=0,p=u.length;_<p;_++)if(u[_](e,s,n,!0)){E=!0;break}if(E)break}if(!i)return e.parentType=r,!1;const c=Ju(e.getLines(t,s,e.blkIndent,!1));e.line=s+1;const a=e.push("heading_open","h"+String(i),1);a.markup=String.fromCharCode(o),a.map=[t,e.line];const h=e.push("inline","",0);h.content=c,h.map=[t,e.line-1],h.children=[];const g=e.push("heading_close","h"+String(i),-1);return g.markup=String.fromCharCode(o),e.parentType=r,!0}function l0(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let a=!1;for(let h=0,g=u.length;h<g;h++)if(u[h](e,i,n,!0)){a=!0;break}if(a)break}const o=Ju(e.getLines(t,i,e.blkIndent,!1));e.line=i;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const c=e.push("inline","",0);return c.content=o,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const yu=[["table",Hl,["paragraph","reference"]],["code",Gl],["fence",$l,["paragraph","reference","blockquote","list"]],["blockquote",zl,["paragraph","reference","blockquote","list"]],["hr",Vl,["paragraph","reference","blockquote","list"]],["list",ql,["paragraph","reference","blockquote"]],["reference",Yl],["html_block",s0,["paragraph","reference","blockquote"]],["heading",c0,["paragraph","reference","blockquote"]],["lheading",a0],["paragraph",l0]];function er(){this.ruler=new _t;for(let e=0;e<yu.length;e++)this.ruler.push(yu[e][0],yu[e][1],{alt:(yu[e][2]||[]).slice()})}er.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),r=u.length,i=e.md.options.maxNesting;let o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=i){e.line=n;break}const c=e.line;let a=!1;for(let h=0;h<r;h++)if(a=u[h](e,o,n,!1),a){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!a)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}};er.prototype.parse=function(e,t,n,u){if(!e)return;const r=new this.State(e,t,n,u);this.tokenize(r,r.line,r.lineMax)};er.prototype.State=Kt;function bu(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}bu.prototype.pushPending=function(){const e=new Bt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};bu.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new Bt(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(r),u};bu.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e);let r;if(e===0)r=32;else if(e===1)r=this.src.charCodeAt(0),(r&63488)===55296&&(r=65533);else if(r=this.src.charCodeAt(e-1),(r&64512)===56320){const D=this.src.charCodeAt(e-2);r=(D&64512)===55296?65536+(D-55296<<10)+(r-56320):65533}else(r&64512)===55296&&(r=65533);let i=e;for(;i<n&&this.src.charCodeAt(i)===u;)i++;const o=i-e;let s=i<n?this.src.charCodeAt(i):32;if((s&64512)===55296){const D=this.src.charCodeAt(i+1);s=(D&64512)===56320?65536+(s-55296<<10)+(D-56320):65533}else(s&64512)===56320&&(s=65533);const c=lu(r)||au(r),a=lu(s)||au(s),h=cu(r),g=cu(s),E=!g&&(!a||h||c),_=!h&&(!c||g||a);return{can_open:E&&(t||!_||c),can_close:_&&(t||!E||a),length:o}};bu.prototype.Token=Bt;function d0(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function f0(e,t){let n=e.pos;for(;n<e.posMax&&!d0(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function h0(e){return e>=65&&e<=90||e>=97&&e<=122}function g0(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function p0(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=n-Math.min(10,e.pending.length,n);let i=n;for(;i>r&&g0(e.src.charCodeAt(i-1));)i--;if(i===n||!h0(e.src.charCodeAt(i)))return!1;const o=n-i,s=e.md.linkify.matchAtStart(e.src.slice(i));if(!s)return!1;let c=s.url;if(c.length<=o)return!1;let a=c.length;for(;a>0&&c.charCodeAt(a-1)===42;)a--;a!==c.length&&(c=c.slice(0,a));const h=e.md.normalizeLink(c);if(!e.md.validateLink(h))return!1;if(!t){e.pending=e.pending.slice(0,-o);const g=e.push("link_open","a",1);g.attrs=[["href",h]],g.markup="linkify",g.info="auto";const E=e.push("text","",0);E.content=e.md.normalizeLinkText(c);const _=e.push("link_close","a",-1);_.markup="linkify",_.info="auto"}return e.pos+=c.length-o,!0}function E0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,r=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let i=u-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<r&&ze(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const ci=[];for(let e=0;e<256;e++)ci.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ci[e.charCodeAt(0)]=1});function b0(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(r=e.src.charCodeAt(n),!!ze(r));)n++;return e.pos=n,!0}if(r===32){if(!t){const s=e.push("text_special","",0);s.content="\\",s.markup="\\",s.info="escape"}return e.pos=n,!0}let i=e.src[n];if(r>=55296&&r<=56319&&n+1<u){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(i+=e.src[n+1],n++)}const o="\\"+i;if(!t){const s=e.push("text_special","",0);r<256&&ci[r]!==0?s.content=i:s.content=o,s.markup=o,s.info="escape"}return e.pos=n+1,!0}function _0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;const o=e.src.slice(r,n),s=o.length;if(e.backticksScanned&&(e.backticks[s]||0)<=r)return t||(e.pending+=o),e.pos+=s,!0;let c=n,a;for(;(a=e.src.indexOf("`",c))!==-1;){for(c=a+1;c<i&&e.src.charCodeAt(c)===96;)c++;const h=c-a;if(h===s){if(!t){const g=e.push("code_inline","code",0);g.markup=o,g.content=e.src.slice(n,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[h]=a}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=s,!0}function m0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const r=e.scanDelims(e.pos,!0);let i=r.length;const o=String.fromCharCode(u);if(i<2)return!1;let s;i%2&&(s=e.push("text","",0),s.content=o,i--);for(let c=0;c<i;c+=2)s=e.push("text","",0),s.content=o+o,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function Ui(e,t){let n;const u=[],r=t.length;for(let i=0;i<r;i++){const o=t[i];if(o.marker!==126||o.end===-1)continue;const s=t[o.end];n=e.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&u.push(s.token-1)}for(;u.length;){const i=u.pop();let o=i+1;for(;o<e.tokens.length&&e.tokens[o].type==="s_close";)o++;o--,i!==o&&(n=e.tokens[o],e.tokens[o]=e.tokens[i],e.tokens[i]=n)}}function A0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ui(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Ui(e,t[u].delimiters)}const is={tokenize:m0,postProcess:A0};function T0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const r=e.scanDelims(e.pos,u===42);for(let i=0;i<r.length;i++){const o=e.push("text","",0);o.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function Bi(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const r=t[u];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const i=t[r.end],o=u>0&&t[u-1].end===r.end+1&&t[u-1].marker===r.marker&&t[u-1].token===r.token-1&&t[r.end+1].token===i.token+1,s=String.fromCharCode(r.marker),c=e.tokens[r.token];c.type=o?"strong_open":"em_open",c.tag=o?"strong":"em",c.nesting=1,c.markup=o?s+s:s,c.content="";const a=e.tokens[i.token];a.type=o?"strong_close":"em_close",a.tag=o?"strong":"em",a.nesting=-1,a.markup=o?s+s:s,a.content="",o&&(e.tokens[t[u-1].token].content="",e.tokens[t[r.end+1].token].content="",u--)}}function S0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Bi(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Bi(e,t[u].delimiters)}const os={tokenize:T0,postProcess:S0};function C0(e,t){let n,u,r,i,o="",s="",c=e.pos,a=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const h=e.pos,g=e.posMax,E=e.pos+1,_=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(_<0)return!1;let p=_+1;if(p<g&&e.src.charCodeAt(p)===40){for(a=!1,p++;p<g&&(n=e.src.charCodeAt(p),!(!ze(n)&&n!==10));p++);if(p>=g)return!1;if(c=p,r=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),r.ok){for(o=e.md.normalizeLink(r.str),e.md.validateLink(o)?p=r.pos:o="",c=p;p<g&&(n=e.src.charCodeAt(p),!(!ze(n)&&n!==10));p++);if(r=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<g&&c!==p&&r.ok)for(s=r.str,p=r.pos;p<g&&(n=e.src.charCodeAt(p),!(!ze(n)&&n!==10));p++);}(p>=g||e.src.charCodeAt(p)!==41)&&(a=!0),p++}if(a){if(typeof e.env.references>"u")return!1;if(p<g&&e.src.charCodeAt(p)===91?(c=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?u=e.src.slice(c,p++):p=_+1):p=_+1,u||(u=e.src.slice(E,_)),i=e.env.references[Qu(u)],!i)return e.pos=h,!1;o=i.href,s=i.title}if(!t){e.pos=E,e.posMax=_;const C=e.push("link_open","a",1),D=[["href",o]];C.attrs=D,s&&D.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=g,!0}function N0(e,t){let n,u,r,i,o,s,c,a,h="";const g=e.pos,E=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const _=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(i=p+1,i<E&&e.src.charCodeAt(i)===40){for(i++;i<E&&(n=e.src.charCodeAt(i),!(!ze(n)&&n!==10));i++);if(i>=E)return!1;for(a=i,s=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),s.ok&&(h=e.md.normalizeLink(s.str),e.md.validateLink(h)?i=s.pos:h=""),a=i;i<E&&(n=e.src.charCodeAt(i),!(!ze(n)&&n!==10));i++);if(s=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<E&&a!==i&&s.ok)for(c=s.str,i=s.pos;i<E&&(n=e.src.charCodeAt(i),!(!ze(n)&&n!==10));i++);else c="";if(i>=E||e.src.charCodeAt(i)!==41)return e.pos=g,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<E&&e.src.charCodeAt(i)===91?(a=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?r=e.src.slice(a,i++):i=p+1):i=p+1,r||(r=e.src.slice(_,p)),o=e.env.references[Qu(r)],!o)return e.pos=g,!1;h=o.href,c=o.title}if(!t){u=e.src.slice(_,p);const C=[];e.md.inline.parse(u,e.md,e.env,C);const D=e.push("image","img",0),I=[["src",h],["alt",""]];D.attrs=I,D.children=C,D.content=u,c&&I.push(["title",c])}return e.pos=i,e.posMax=E,!0}const R0=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,I0=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function O0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const o=e.src.charCodeAt(n);if(o===60)return!1;if(o===62)break}const i=e.src.slice(u+1,n);if(I0.test(i)){const o=e.md.normalizeLink(i);if(!e.md.validateLink(o))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const a=e.push("link_close","a",-1);a.markup="autolink",a.info="auto"}return e.pos+=i.length+2,!0}if(R0.test(i)){const o=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(o))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const a=e.push("link_close","a",-1);a.markup="autolink",a.info="auto"}return e.pos+=i.length+2,!0}return!1}function y0(e){return/^<a[>\s]/i.test(e)}function x0(e){return/^<\/a\s*>/i.test(e)}function D0(e){const t=e|32;return t>=97&&t<=122}function k0(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const r=e.src.charCodeAt(u+1);if(r!==33&&r!==63&&r!==47&&!D0(r))return!1;const i=e.src.slice(u).match(i0);if(!i)return!1;if(!t){const o=e.push("html_inline","",0);o.content=i[0],y0(o.content)&&e.linkLevel++,x0(o.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const v0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,L0=/^&([a-z][a-z0-9]{1,31});/i;function w0(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const i=e.src.slice(n).match(v0);if(i){if(!t){const o=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),s=e.push("text_special","",0);s.content=oi(o)?su(o):su(65533),s.markup=i[0],s.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(L0);if(i){const o=ja(i[0]);if(o!==i[0]){if(!t){const s=e.push("text_special","",0);s.content=o,s.markup=i[0],s.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function Hi(e){const t={},n=e.length;if(!n)return;let u=0,r=-2;const i=[];for(let o=0;o<n;o++){const s=e[o];if(i.push(0),(e[u].marker!==s.marker||r!==s.token-1)&&(u=o),r=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[s.marker][(s.open?3:0)+s.length%3];let a=u-i[u]-1,h=a;for(;a>c;a-=i[a]+1){const g=e[a];if(g.marker===s.marker&&g.open&&g.end<0){let E=!1;if((g.close||s.open)&&(g.length+s.length)%3===0&&(g.length%3!==0||s.length%3!==0)&&(E=!0),!E){const _=a>0&&!e[a-1].open?i[a-1]+1:0;i[o]=o-a+_,i[a]=_,s.open=!1,g.end=o,g.close=!1,h=-1,r=-2;break}}}h!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=h)}}function M0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Hi(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Hi(t[u].delimiters)}function F0(e){let t,n,u=0;const r=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)r[t].nesting<0&&u--,r[t].level=u,r[t].nesting>0&&u++,r[t].type==="text"&&t+1<i&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}const Er=[["text",f0],["linkify",p0],["newline",E0],["escape",b0],["backticks",_0],["strikethrough",is.tokenize],["emphasis",os.tokenize],["link",C0],["image",N0],["autolink",O0],["html_inline",k0],["entity",w0]],br=[["balance_pairs",M0],["strikethrough",is.postProcess],["emphasis",os.postProcess],["fragments_join",F0]];function _u(){this.ruler=new _t;for(let e=0;e<Er.length;e++)this.ruler.push(Er[e][0],Er[e][1]);this.ruler2=new _t;for(let e=0;e<br.length;e++)this.ruler2.push(br[e][0],br[e][1])}_u.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,r=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let o=!1;if(e.level<r){for(let s=0;s<u;s++)if(e.level++,o=n[s](e,!0),e.level--,o){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,i[t]=e.pos};_u.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,r=e.md.options.maxNesting;for(;e.pos<u;){const i=e.pos;let o=!1;if(e.level<r){for(let s=0;s<n;s++)if(o=t[s](e,!1),o){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};_u.prototype.parse=function(e,t,n,u){const r=new this.State(e,t,n,u);this.tokenize(r);const i=this.ruler2.getRules(""),o=i.length;for(let s=0;s<o;s++)i[s](r)};_u.prototype.State=bu;function P0(e){const t={};e=e||{},t.src_Any=Yo.source,t.src_Cc=Ko.source,t.src_Z=jo.source,t.src_P=ri.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain="(?:"+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy="(?:"+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function Hr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function tr(e){return Object.prototype.toString.call(e)}function U0(e){return tr(e)==="[object String]"}function B0(e){return tr(e)==="[object Object]"}function H0(e){return tr(e)==="[object RegExp]"}function Gi(e){return tr(e)==="[object Function]"}function G0(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const ss={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function $0(e){return Object.keys(e||{}).reduce(function(t,n){return t||ss.hasOwnProperty(n)},!1)}const z0={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},V0="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",W0="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function q0(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function $i(){return function(e,t){t.normalize(e)}}function zu(e){const t=e.re=P0(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(V0),n.push(t.src_xn),t.src_tlds=n.join("|");function u(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(u(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(u(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(u(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function i(s,c){throw new Error(`(LinkifyIt) Invalid schema "${s}": ${c}`)}Object.keys(e.__schemas__).forEach(function(s){const c=e.__schemas__[s];if(c===null)return;const a={validate:null,link:null};if(e.__compiled__[s]=a,B0(c)){H0(c.validate)?a.validate=q0(c.validate):Gi(c.validate)?a.validate=c.validate:i(s,c),Gi(c.normalize)?a.normalize=c.normalize:c.normalize?i(s,c):a.normalize=$i();return}if(U0(c)){r.push(s);return}i(s,c)}),r.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:$i()};const o=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(G0).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${o})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${o})`,"ig"),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,"i"),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,"i")}function cs(e,t,n,u){const r=e.slice(n,u);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=u,this.raw=r,this.text=r,this.url=r}function Tt(e,t){if(!(this instanceof Tt))return new Tt(e,t);t||$0(e)&&(t=e,e={}),this.__opts__=Hr({},ss,t),this.__schemas__=Hr({},z0,e),this.__compiled__={},this.__tlds__=W0,this.__tlds_replaced__=!1,this.re={},zu(this)}Tt.prototype.add=function(t,n){return this.__schemas__[t]=n,zu(this),this};Tt.prototype.set=function(t){return this.__opts__=Hr(this.__opts__,t),this};Tt.prototype.test=function(t){if(!t.length)return!1;let n,u;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(t))!==null;)if(this.testSchemaAt(t,n[2],u.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};Tt.prototype.pretest=function(t){return this.re.pretest.test(t)};Tt.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0};Tt.prototype.match=function(t){const n=[],u=[],r=[],i=[];let o,s,c;function a(E,_){return E?_?E.index!==_.index?E.index<_.index?E:_:E.lastIndex>=_.lastIndex?E:_:E:_}if(!t.length)return null;if(this.re.schema_test.test(t))for(c=this.re.schema_search,c.lastIndex=0;(o=c.exec(t))!==null;)s=this.testSchemaAt(t,o[2],c.lastIndex),s&&u.push({schema:o[2],index:o.index+o[1].length,lastIndex:o.index+o[0].length+s});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(c=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,c.lastIndex=0;(o=c.exec(t))!==null;)r.push({schema:"",index:o.index+o[1].length,lastIndex:o.index+o[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(c=this.re.email_fuzzy_global,c.lastIndex=0;(o=c.exec(t))!==null;)i.push({schema:"mailto:",index:o.index+o[1].length,lastIndex:o.index+o[0].length});const h=[0,0,0];let g=0;for(;;){const E=[u[h[0]],i[h[1]],r[h[2]]],_=a(a(E[0],E[1]),E[2]);if(!_)break;if(_===E[0]?h[0]++:_===E[1]?h[1]++:h[2]++,_.index<g)continue;const p=new cs(t,_.schema,_.index,_.lastIndex);this.__compiled__[p.schema].normalize(p,this),n.push(p),g=_.lastIndex}return n.length?n:null};Tt.prototype.matchAtStart=function(t){if(!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);if(!u)return null;const r=new cs(t,n[2],n.index+n[1].length,n.index+n[0].length+u);return this.__compiled__[r.schema].normalize(r,this),r};Tt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,r,i){return u!==i[r-1]}).reverse(),zu(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,zu(this),this)};Tt.prototype.normalize=function(t){t.schema||(t.url=`http://${t.url}`),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url=`mailto:${t.url}`)};Tt.prototype.onCompile=function(){};const Un=2147483647,Wt=36,ai=1,du=26,Y0=38,K0=700,as=72,ls=128,ds="-",X0=/^xn--/,j0=/[^\0-\x7F]/,Z0=/[\x2E\u3002\uFF0E\uFF61]/g,Q0={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_r=Wt-ai,qt=Math.floor,mr=String.fromCharCode;function pn(e){throw new RangeError(Q0[e])}function J0(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function fs(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(Z0,".");const r=e.split("."),i=J0(r,t).join(".");return u+i}function hs(e){const t=[];let n=0;const u=e.length;for(;n<u;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<u){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((r&1023)<<10)+(i&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const ed=e=>String.fromCodePoint(...e),td=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Wt},zi=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},gs=function(e,t,n){let u=0;for(e=n?qt(e/K0):e>>1,e+=qt(e/t);e>_r*du>>1;u+=Wt)e=qt(e/_r);return qt(u+(_r+1)*e/(e+Y0))},ps=function(e){const t=[],n=e.length;let u=0,r=ls,i=as,o=e.lastIndexOf(ds);o<0&&(o=0);for(let s=0;s<o;++s)e.charCodeAt(s)>=128&&pn("not-basic"),t.push(e.charCodeAt(s));for(let s=o>0?o+1:0;s<n;){const c=u;for(let h=1,g=Wt;;g+=Wt){s>=n&&pn("invalid-input");const E=td(e.charCodeAt(s++));E>=Wt&&pn("invalid-input"),E>qt((Un-u)/h)&&pn("overflow"),u+=E*h;const _=g<=i?ai:g>=i+du?du:g-i;if(E<_)break;const p=Wt-_;h>qt(Un/p)&&pn("overflow"),h*=p}const a=t.length+1;i=gs(u-c,a,c==0),qt(u/a)>Un-r&&pn("overflow"),r+=qt(u/a),u%=a,t.splice(u++,0,r)}return String.fromCodePoint(...t)},Es=function(e){const t=[];e=hs(e);const n=e.length;let u=ls,r=0,i=as;for(const c of e)c<128&&t.push(mr(c));const o=t.length;let s=o;for(o&&t.push(ds);s<n;){let c=Un;for(const h of e)h>=u&&h<c&&(c=h);const a=s+1;c-u>qt((Un-r)/a)&&pn("overflow"),r+=(c-u)*a,u=c;for(const h of e)if(h<u&&++r>Un&&pn("overflow"),h===u){let g=r;for(let E=Wt;;E+=Wt){const _=E<=i?ai:E>=i+du?du:E-i;if(g<_)break;const p=g-_,C=Wt-_;t.push(mr(zi(_+p%C,0))),g=qt(p/C)}t.push(mr(zi(g,0))),i=gs(r,a,s===o),r=0,++s}++r,++u}return t.join("")},nd=function(e){return fs(e,function(t){return X0.test(t)?ps(t.slice(4).toLowerCase()):t})},ud=function(e){return fs(e,function(t){return j0.test(t)?"xn--"+Es(t):t})},bs={version:"2.3.1",ucs2:{decode:hs,encode:ed},decode:ps,encode:Es,toASCII:ud,toUnicode:nd},rd={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},id={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},od={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},sd={default:rd,zero:id,commonmark:od},cd=/^(vbscript|javascript|file|data):/,ad=/^data:image\/(gif|png|jpeg|webp);/;function ld(e){const t=e.trim().toLowerCase();return cd.test(t)?ad.test(t):!0}const _s=["http:","https:","mailto:"];function dd(e){const t=ui(e,!0);if(t.hostname&&(!t.protocol||_s.indexOf(t.protocol)>=0))try{t.hostname=bs.toASCII(t.hostname)}catch{}return Eu(ni(t))}function fd(e){const t=ui(e,!0);if(t.hostname&&(!t.protocol||_s.indexOf(t.protocol)>=0))try{t.hostname=bs.toUnicode(t.hostname)}catch{}return Hn(ni(t),Hn.defaultChars+"%")}function kt(e,t){if(!(this instanceof kt))return new kt(e,t);t||ii(e)||(t=e||{},e="default"),this.inline=new _u,this.block=new er,this.core=new si,this.renderer=new zn,this.linkify=new Tt,this.validateLink=ld,this.normalizeLink=dd,this.normalizeLinkText=fd,this.utils=hl,this.helpers=Zu({},bl),this.options={},this.configure(e),t&&this.set(t)}kt.prototype.set=function(e){return Zu(this.options,e),this};kt.prototype.configure=function(e){const t=this;if(ii(e)){const n=e;if(e=sd[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};kt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this};kt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this};kt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};kt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};kt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};kt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};kt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function Vi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,u=Array(t);n<t;n++)u[n]=e[n];return u}function hd(e){if(Array.isArray(e))return e}function gd(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var u,r,i,o,s=[],c=!0,a=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(u=i.call(n)).done)&&(s.push(u.value),s.length!==t);c=!0);}catch(h){a=!0,r=h}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(a)throw r}}return s}}function pd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
46
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function Ed(e,t){return hd(e)||gd(e,t)||bd(e,t)||pd()}function bd(e,t){if(e){if(typeof e=="string")return Vi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vi(e,t):void 0}}const ms=Object.entries,Wi=Object.setPrototypeOf,_d=Object.isFrozen,As=Object.getPrototypeOf,Ts=Object.getOwnPropertyDescriptor;let ut=Object.freeze,st=Object.seal,Mn=Object.create,Ss=typeof Reflect<"u"&&Reflect,Gr=Ss.apply,$r=Ss.construct;ut||(ut=function(t){return t});st||(st=function(t){return t});Gr||(Gr=function(t,n){for(var u=arguments.length,r=new Array(u>2?u-2:0),i=2;i<u;i++)r[i-2]=arguments[i];return t.apply(n,r)});$r||($r=function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),r=1;r<n;r++)u[r-1]=arguments[r];return new t(...u)});const Zt=We(Array.prototype.forEach),md=We(Array.prototype.lastIndexOf),qi=We(Array.prototype.pop),Xn=We(Array.prototype.push),Ad=We(Array.prototype.slice),Td=We(Array.prototype.splice),Bn=Array.isArray,Ar=Cs(Set),Tr=We(Set.prototype.add),jn=We(Set.prototype.has),Nn=We(String.prototype.toLowerCase),Sr=We(String.prototype.toString),Yi=We(String.prototype.match),Zn=We(String.prototype.replace),Ki=We(String.prototype.indexOf),Sd=We(String.prototype.trim),Cd=We(Number.prototype.toString),Nd=We(Boolean.prototype.toString),Xi=typeof BigInt>"u"?null:We(BigInt.prototype.toString),ji=typeof Symbol>"u"?null:We(Symbol.prototype.toString),bt=We(Object.prototype.hasOwnProperty),Qn=We(Object.prototype.toString),it=We(RegExp.prototype.test),Qt=Cs(TypeError);function We(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,u=new Array(n>1?n-1:0),r=1;r<n;r++)u[r-1]=arguments[r];return Gr(e,t,u)}}function Cs(e){return function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return $r(e,n)}}function De(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Nn;if(Wi&&Wi(e,null),!Bn(t))return e;let u=t.length;for(;u--;){let r=t[u];if(typeof r=="string"){const i=n(r);i!==r&&(_d(t)||(t[u]=i),r=i)}e[r]=!0}return e}function Rd(e){for(let t=0;t<e.length;t++)bt(e,t)||(e[t]=null);return e}function At(e){const t=Mn(null);for(const u of ms(e)){var n=Ed(u,2);const r=n[0],i=n[1];bt(e,r)&&(Bn(i)?t[r]=Rd(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=At(i):t[r]=i)}return t}function Id(e){switch(typeof e){case"string":return e;case"number":return Cd(e);case"boolean":return Nd(e);case"bigint":return Xi?Xi(e):"0";case"symbol":return ji?ji(e):"Symbol()";case"undefined":return Qn(e);case"function":case"object":{if(e===null)return Qn(e);const t=e,n=xt(t,"toString");if(typeof n=="function"){const u=n(t);return typeof u=="string"?u:Qn(u)}return Qn(e)}default:return Qn(e)}}function xt(e,t){for(;e!==null;){const u=Ts(e,t);if(u){if(u.get)return We(u.get);if(typeof u.value=="function")return We(u.value)}e=As(e)}function n(){return null}return n}function Od(e,t){for(;e!==null;){const n=Ts(e,t);if(n)return n.get?We(n.get):null;e=As(e)}return null}function yd(e){try{return it(e,""),!0}catch{return!1}}const Zi=ut(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Cr=ut(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Nr=ut(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),xd=ut(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Rr=ut(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Dd=ut(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qi=ut(["#text"]),Ji=ut(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ir=ut(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),eo=ut(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xu=ut(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kd=st(/{{[\w\W]*|^[\w\W]*}}/g),vd=st(/<%[\w\W]*|^[\w\W]*%>/g),Ld=st(/\${[\w\W]*/g),wd=st(/^data-[\-\w.\u00B7-\uFFFF]+$/),Md=st(/^aria-[\-\w]+$/),to=st(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fd=st(/^(?:\w+script|data):/i),Pd=st(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ud=st(/^html$/i),Bd=st(/^[a-z][.\w]*(-[.\w]+)+$/i),Or=st(/<[/\w!]/g),no=st(/<[/\w]/g),Hd=st(/<\/no(script|embed|frames)/i),uo=st(/\/>/i),Xe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Gd=ut(De({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),$d=function(){return typeof window>"u"?null:window},zd=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let u=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(u=n.getAttribute(r));const i="dompurify"+(u?"#"+u:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ro=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},hn=function(t,n,u,r){return bt(t,n)&&Bn(t[n])?De(r.base?At(r.base):{},t[n],r.transform):u},yr=function(t,n,u){const r=bt(t,n)?t[n]:void 0;return r&&typeof r=="object"?At(r):u()};function Ns(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$d();const t=w=>Ns(w);if(t.version="3.4.17",t.removed=[],!e||!e.document||e.document.nodeType!==Xe.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const u=n,r=u.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const a=e.DOMParser,h=e.trustedTypes,g=s.prototype,E=xt(g,"cloneNode"),_=xt(g,"remove"),p=xt(g,"removeAttributeNode"),C=xt(g,"nextSibling"),D=xt(g,"childNodes"),I=xt(g,"parentNode"),F=xt(g,"shadowRoot"),y=xt(g,"attributes"),R=o&&o.prototype?xt(o.prototype,"nodeType"):null,x=o&&o.prototype?xt(o.prototype,"nodeName"):null,L=o&&o.prototype?xt(o.prototype,"ownerDocument"):null,H=function(d){return R?R(d):d.nodeType},Z=function(d){return x?x(d):d.nodeName},ee=Od(g,"namespaceURI"),he=function(d){return ee?ee(d):d.namespaceURI};if(typeof i=="function"){const w=n.createElement("template");w.content&&w.content.ownerDocument&&(n=w.content.ownerDocument)}let ce,ye="",xe,Ae=!1,G=0;const Te=function(){if(G>0)throw Qt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Re=function(d){Te(),G++;try{return ce.createHTML(d)}finally{G--}},U=function(d){Te(),G++;try{return ce.createScriptURL(d)}finally{G--}},te=function(){return Ae||(xe=zd(h,r),Ae=!0),xe},X=n,oe=X.implementation,Ie=X.createNodeIterator,Ue=X.createDocumentFragment,Y=X.getElementsByTagName,ae=u.importNode;let W=ro();t.isSupported=typeof ms=="function"&&typeof I=="function"&&oe&&oe.createHTMLDocument!==void 0;const Le=kd,P=vd,ue=Ld,Ee=wd,we=Md,se=Fd,Ve=Pd,ct=Bd;let Qe=to,T=null;const z=De({},[...Zi,...Cr,...Nr,...Rr,...Qi]);let V=null;const _e=De({},[...Ji,...Ir,...eo,...xu]);let me=Object.seal(Mn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Be=null,St=null;const ft=Object.seal(Mn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ht=!0,Ct=!0,Je=!1,Nt=!0,et=!1,vt=!0,Lt=!1,tn=!1,Xt=null,nn=null,un=!1,wt=!1,Ht=!1,jt=!1,rn=!0,on=!1;const mn="user-content-";let sn=!0,N=!1,q=null,f={},m=null;const O=De({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let K=null;const be=De({},["audio","video","img","source","image","track"]);let Oe=null;const j=De({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),M="http://www.w3.org/1998/Math/MathML",ie="http://www.w3.org/2000/svg",ke="http://www.w3.org/1999/xhtml";let Fe=ke,Rt=!1,Gt=null;const cn=De({},[M,ie,ke],Sr),An=ut(["mi","mo","mn","ms","mtext"]);let $t=De({},An);const Tn=ut(["annotation-xml"]);let an=De({},Tn);const nr=De({},["title","style","font","a","script"]);let ln=null;const In=["application/xhtml+xml","text/html"],ur="text/html";let qe=null,dn=null;const zt=n.createElement("form"),Vn=function(d){return d instanceof RegExp||d instanceof Function},On=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(dn&&dn===d)return;(!d||typeof d!="object")&&(d={}),d=At(d),ln=In.indexOf(d.PARSER_MEDIA_TYPE)===-1?ur:d.PARSER_MEDIA_TYPE,qe=ln==="application/xhtml+xml"?Sr:Nn,T=hn(d,"ALLOWED_TAGS",z,{transform:qe}),V=hn(d,"ALLOWED_ATTR",_e,{transform:qe}),Gt=hn(d,"ALLOWED_NAMESPACES",cn,{transform:Sr}),Oe=hn(d,"ADD_URI_SAFE_ATTR",j,{transform:qe,base:j}),K=hn(d,"ADD_DATA_URI_TAGS",be,{transform:qe,base:be}),m=hn(d,"FORBID_CONTENTS",O,{transform:qe}),Be=hn(d,"FORBID_TAGS",At({}),{transform:qe}),St=hn(d,"FORBID_ATTR",At({}),{transform:qe}),f=bt(d,"USE_PROFILES")?d.USE_PROFILES&&typeof d.USE_PROFILES=="object"?At(d.USE_PROFILES):d.USE_PROFILES:!1,ht=d.ALLOW_ARIA_ATTR!==!1,Ct=d.ALLOW_DATA_ATTR!==!1,Je=d.ALLOW_UNKNOWN_PROTOCOLS||!1,Nt=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,et=d.SAFE_FOR_TEMPLATES||!1,vt=d.SAFE_FOR_XML!==!1,Lt=d.WHOLE_DOCUMENT||!1,wt=d.RETURN_DOM||!1,Ht=d.RETURN_DOM_FRAGMENT||!1,jt=d.RETURN_TRUSTED_TYPE||!1,un=d.FORCE_BODY||!1,rn=d.SANITIZE_DOM!==!1,on=d.SANITIZE_NAMED_PROPS||!1,sn=d.KEEP_CONTENT!==!1,N=d.IN_PLACE||!1,Qe=yd(d.ALLOWED_URI_REGEXP)?d.ALLOWED_URI_REGEXP:to,Fe=typeof d.NAMESPACE=="string"?d.NAMESPACE:ke,$t=yr(d,"MATHML_TEXT_INTEGRATION_POINTS",()=>De({},An)),an=yr(d,"HTML_INTEGRATION_POINTS",()=>De({},Tn));const b=yr(d,"CUSTOM_ELEMENT_HANDLING",()=>Mn(null));if(me=Mn(null),bt(b,"tagNameCheck")&&Vn(b.tagNameCheck)&&(me.tagNameCheck=b.tagNameCheck),bt(b,"attributeNameCheck")&&Vn(b.attributeNameCheck)&&(me.attributeNameCheck=b.attributeNameCheck),bt(b,"allowCustomizedBuiltInElements")&&typeof b.allowCustomizedBuiltInElements=="boolean"&&(me.allowCustomizedBuiltInElements=b.allowCustomizedBuiltInElements),st(me),et&&(Ct=!1),Ht&&(wt=!0),f&&(T=De({},Qi),V=Mn(null),f.html===!0&&(De(T,Zi),De(V,Ji)),f.svg===!0&&(De(T,Cr),De(V,Ir),De(V,xu)),f.svgFilters===!0&&(De(T,Nr),De(V,Ir),De(V,xu)),f.mathMl===!0&&(De(T,Rr),De(V,eo),De(V,xu))),ft.tagCheck=null,ft.attributeCheck=null,bt(d,"ADD_TAGS")&&(typeof d.ADD_TAGS=="function"?ft.tagCheck=d.ADD_TAGS:Bn(d.ADD_TAGS)&&(T===z&&(T=At(T)),De(T,d.ADD_TAGS,qe))),bt(d,"ADD_ATTR")&&(typeof d.ADD_ATTR=="function"?ft.attributeCheck=d.ADD_ATTR:Bn(d.ADD_ATTR)&&(V===_e&&(V=At(V)),De(V,d.ADD_ATTR,qe))),bt(d,"ADD_FORBID_CONTENTS")&&Bn(d.ADD_FORBID_CONTENTS)&&(m===O&&(m=At(m)),De(m,d.ADD_FORBID_CONTENTS,qe)),sn&&(T["#text"]=!0),Lt&&De(T,["html","head","body"]),T.table&&(De(T,["tbody"]),delete Be.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const k=ce;ce=d.TRUSTED_TYPES_POLICY;try{ye=Re("")}catch(v){throw ce=k,v}}else d.TRUSTED_TYPES_POLICY===null?(ce=void 0,ye=""):(ce===void 0&&(ce=te()),ce&&typeof ye=="string"&&(ye=Re("")));ut&&ut(d),dn=d},mu=De({},[...Cr,...Nr,...xd]),Au=De({},[...Rr,...Dd]),rr=function(d,b,k){return b.namespaceURI===ke?d==="svg":b.namespaceURI===M?d==="svg"&&(k==="annotation-xml"||$t[k]):!!mu[d]},yn=function(d,b,k){return b.namespaceURI===ke?d==="math":b.namespaceURI===ie?d==="math"&&an[k]:!!Au[d]},ir=function(d,b,k){return b.namespaceURI===ie&&!an[k]||b.namespaceURI===M&&!$t[k]?!1:!Au[d]&&(nr[d]||!mu[d])},B=function(d){const b=he(d),k=Nn(Z(d)),v=I(d);let re,de;return v&&H(v)===Xe.element?(re={namespaceURI:he(v)},de=Nn(Z(v))):(re={namespaceURI:Fe},de="template"),Gt[b]?b===ie?rr(k,re,de):b===M?yn(k,re,de):b===ke?ir(k,re,de):!!(ln==="application/xhtml+xml"&&Gt[b]):!1},Q=function(d){Xn(t.removed,{element:d});try{I(d).removeChild(d)}catch{if(_(d),!I(d))throw Qt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Se=function(d,b,k){try{p(d,b)}catch{try{d.removeAttribute(k)}catch{}}},Pe=function(d){fn(d);const b=D(d);b&&Zt(Ad(b),v=>{try{_(v)}catch{}});const k=H(d)===Xe.element?y(d):null;if(k)for(let v=k.length-1;v>=0;--v){const re=k[v],de=re&&re.name;typeof de=="string"&&Se(d,re,de)}},He=function(d,b,k){if(!k)try{k=b.getAttributeNode(d)}catch{k=null}Xn(t.removed,{attribute:k||null,from:b});try{k?p(b,k):b.removeAttribute(d)}catch{try{b.removeAttribute(d)}catch{}}if(d==="is")if(wt||Ht)try{Q(b)}catch{}else try{b.setAttribute(d,"")}catch{}},gt=function(d){const b=y(d);if(b)for(let k=b.length-1;k>=0;--k){const v=b[k],re=v&&v.name;typeof re!="string"||V[qe(re)]||Se(d,v,re)}},It=function(d,b){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const v=[d];for(;v.length>0;){const re=v.pop();if(b(re)===!1)continue;if(k&&H(re)===Xe.element){const Ne=F(re);Mt(Ne)&&v.push(Ne)}const de=D(re);if(de)for(let Ne=de.length-1;Ne>=0;--Ne)v.push(de[Ne])}},fn=function(d){It(d,b=>{H(b)===Xe.element&>(b)})},rt=function(d){const b=[];return It(d,k=>{b.push(k)},!0),b},Ot=function(d,b){const k=Ar();Zt(rt(d),v=>{H(v)===Xe.element&&Tr(k,v)}),Zt(b,v=>{H(v)===Xe.element&&!jn(k,v)&>(v)})},Wn=function(d,b){let k=!1;return Zt(t.removed,v=>{v.element&&(k=k||v.element===d,fn(v.element))}),Ot(d,b),k},Tu=8,Su=function(d,b){const k=q;let v=null;const re=()=>(v||(v=Ar(),Zt(b,de=>{Tr(v,de)})),v);for(let de=0;;de++){const Ne=rt(d),Ze=[d];let Vt=!1;if(Zt(Ne,dt=>{H(dt)===Xe.documentFragment?Xn(Ze,dt):!Vt&&!jn(k,dt)&&(Vt=jn(re(),dt))}),!Vt)return;if(de>=Tu)throw Qt("the tree kept changing during in-place sanitization; refusing to return it");Zt(Ze,(dt,pt)=>{or(dt,pt>0,d,re())})}},or=function(d,b,k,v){const re=xn(d);let de;for(;de=re.nextNode();)!jn(v,de)||jn(q,de)||(b&&Ce(W.uponSanitizeShadowNode,de,null),J(de,k),lr(de,k),Mt(de.content)&&Kn(de.content))},sr=function(d){q&&Tr(q,d)},Cu=function(d,b){return vt?d==="patchsrc"?!0:d==="for"&&b!=="label"&&b!=="output":!1},cr=function(d){vt&&It(d,b=>{const k=H(b);if(k===Xe.processingInstruction||k===Xe.comment&&it(no,b.data)){try{_(b)}catch{}return!1}if(k===Xe.element){const v=b,re=qe(Z(b));try{v.hasAttribute&&v.hasAttribute("patchsrc")&&v.removeAttribute("patchsrc"),v.hasAttribute&&v.hasAttribute("for")&&Cu("for",re)&&v.removeAttribute("for")}catch{}}return!0})},Sn=function(d){let b=null,k=null;if(un)d="<remove></remove>"+d;else{const de=Yi(d,/^[\r\n\t ]+/);k=de&&de[0]}ln==="application/xhtml+xml"&&Fe===ke&&(d='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+d+"</body></html>");const v=ce?Re(d):d;if(Fe===ke)try{b=new a().parseFromString(v,ln)}catch{}if(!b||!b.documentElement){b=oe.createDocument(Fe,"template",null);try{b.documentElement.innerHTML=Rt?ye:v}catch{}}const re=b.body||b.documentElement;return d&&k&&re.insertBefore(n.createTextNode(k),re.childNodes[0]||null),Fe===ke?Y.call(b,Lt?"html":"body")[0]:Lt?b.documentElement:re},xn=function(d){const b=L?L(d):d.ownerDocument;return Ie.call(b||d,d,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},lt=function(d){return d=Zn(d,Le," "),d=Zn(d,P," "),d=Zn(d,ue," "),d},qn=function(d){var b;Dn(d);const k=(b=d.querySelectorAll)===null||b===void 0?void 0:b.call(d,"template");k&&Zt(k,v=>{Mt(v.content)&&qn(v.content)})},Dn=function(d){d.normalize();const b=L?L(d):d.ownerDocument,k=Ie.call(b||d,d,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let v=k.nextNode();for(;v;)v.data=lt(v.data),v=k.nextNode()},le=function(d){const b=x?x(d):null;return typeof b!="string"||qe(b)!=="form"?!1:typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||d.attributes!==y(d)||typeof d.removeAttribute!="function"||typeof d.removeAttributeNode!="function"||typeof d.getAttributeNode!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function"||d.nodeType!==R(d)||d.childNodes!==D(d)},Mt=function(d){if(!R||typeof d!="object"||d===null)return!1;try{return R(d)===Xe.documentFragment}catch{return!1}},Ye=function(d){if(!R||typeof d!="object"||d===null)return!1;try{return typeof R(d)=="number"}catch{return!1}};function Ce(w,d,b){w.length!==0&&Zt(w,k=>{k.call(t,d,b,dn)})}const kn=function(d,b){return!!(vt&&d.hasChildNodes()&&!Ye(d.firstElementChild)&&it(Or,d.textContent)&&it(Or,d.innerHTML)||vt&&Gd[b]&&H(d)===Xe.element&&he(d)===ke&&(Ye(d.firstElementChild)||typeof d.textContent=="string"&&it(Or,d.textContent))||d.nodeType===Xe.processingInstruction||vt&&d.nodeType===Xe.comment&&it(no,d.data))},yt=function(d,b){if(d instanceof RegExp)return it(d,b);if(d instanceof Function){for(var k=arguments.length,v=new Array(k>2?k-2:0),re=2;re<k;re++)v[re-2]=arguments[re];return!!d(b,...v)}return!1},Yn=function(d,b,k){if(!Be[b]&&je(b)&&yt(me.tagNameCheck,b))return!1;if(sn&&!m[b]&&!m[Nn(b)]){const v=I(d),re=D(d);if(re&&v){const de=re.length;for(let Ne=de-1;Ne>=0;--Ne){const Ze=d===k?E(re[Ne],!0):re[Ne];v.insertBefore(Ze,C(d))}}}return Q(d),!0},vn=function(d,b,k,v){return d.length===0?b:b===k||b===v?At(b):b},$=function(d,b){return d===b||I(d)!==null?!1:(N&&fn(d),!0)},J=function(d,b){if(sr(d),Ce(W.beforeSanitizeElements,d,null),$(d,b))return!0;if(le(d))return Q(d),!0;const k=qe(Z(d));if(T=vn(W.uponSanitizeElement,T,z,Xt),Ce(W.uponSanitizeElement,d,{tagName:k,allowedTags:T}),$(d,b))return!0;if(kn(d,k))return Q(d),!0;if(Be[k]||!(ft.tagCheck instanceof Function&&ft.tagCheck(k))&&!T[k]){const v=Yn(d,k,b);return v===!1&&(Ce(W.afterSanitizeElements,d,null),$(d,b))?!0:v}if(H(d)===Xe.element&&!B(d)||(k==="noscript"||k==="noembed"||k==="noframes")&&it(Hd,d.innerHTML))return Q(d),!0;if(et&&d.nodeType===Xe.text){const v=lt(d.textContent);d.textContent!==v&&(Xn(t.removed,{element:d.cloneNode()}),d.textContent=v)}return Ce(W.afterSanitizeElements,d,null),$(d,b)},pe=function(d,b,k){if(St[b]||Cu(b,d)||rn&&(b==="id"||b==="name")&&(k in n||k in zt))return!1;const v=V[b]||ft.attributeCheck instanceof Function&&ft.attributeCheck(b,d);return Ct&&it(Ee,b)||ht&&it(we,b)?!0:v?Oe[b]||it(Qe,Zn(k,Ve,""))||(b==="src"||b==="xlink:href"||b==="href")&&d!=="script"&&Ki(k,"data:")===0&&K[d]||Je&&!it(se,Zn(k,Ve,""))?!0:!k:je(d)&&yt(me.tagNameCheck,d)&&yt(me.attributeNameCheck,b,d)||b==="is"&&me.allowCustomizedBuiltInElements&&yt(me.tagNameCheck,k)},Me=De({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),je=function(d){return!Me[Nn(d)]&&it(ct,d)},Ft=function(d,b,k,v){if(ce&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!k)switch(h.getAttributeType(d,b)){case"TrustedHTML":return Re(v);case"TrustedScriptURL":return U(v)}return v},ar=function(d,b,k,v){try{return k?d.setAttributeNS(k,b,v):d.setAttribute(b,v),le(d)?(Q(d),!1):!0}catch{return He(b,d),!1}},Nu=function(d,b){return vt&&it(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,b)?!0:Nn(d)==="attributename"&&Yi(b,"href")!==null},lr=function(d,b){if(Ce(W.beforeSanitizeAttributes,d,null),$(d,b))return;const k=d.attributes;if(!k||le(d))return;V=vn(W.uponSanitizeAttribute,V,_e,nn);const v={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let re=k.length;const de=qe(d.nodeName);for(;re--;){const Ne=k[re],Ze=Ne.name,Vt=Ne.namespaceURI,dt=Ne.value,pt=qe(Ze),Ln=dt;let Et=Ze==="value"?Ln:Sd(Ln),li=!1;if(v.attrName=pt,v.attrValue=Et,v.keepAttr=!0,v.forceKeepAttr=void 0,Ce(W.uponSanitizeAttribute,d,v),Et=v.attrValue,on&&(pt==="id"||pt==="name")&&Ki(Et,mn)!==0&&(He(Ze,d,Ne),Et=mn+Et,li=!0),Nu(Ze,Et)){He(Ze,d,Ne);continue}if(!v.forceKeepAttr){if(!v.keepAttr){He(Ze,d,Ne);continue}if(!Nt&&it(uo,Et)){He(Ze,d,Ne);continue}if(et&&(Et=lt(Et)),!pe(de,pt,Et)){He(Ze,d,Ne);continue}Et=Ft(de,pt,Vt,Et),Et!==Ln&&ar(d,Ze,Vt,Et)&&li&&qi(t.removed)}}Ce(W.afterSanitizeAttributes,d,null),$(d,b)},Kn=function(d){let b=null;const k=xn(d);for(Ce(W.beforeSanitizeShadowDOM,d,null);b=k.nextNode();)if(Ce(W.uponSanitizeShadowNode,b,null),J(b,d),lr(b,d),Mt(b.content)&&Kn(b.content),H(b)===Xe.element){const v=F(b);Mt(v)&&(dr(v),Kn(v))}et&&Dn(d),Ce(W.afterSanitizeShadowDOM,d,null)},dr=function(d){const b=[{node:d,shadow:null}];for(;b.length>0;){const k=b.pop();if(k.shadow){Kn(k.shadow);continue}const v=k.node,re=H(v)===Xe.element,de=D(v);if(de)for(let Ne=de.length-1;Ne>=0;--Ne)b.push({node:de[Ne],shadow:null});if(re){const Ne=x?x(v):null;if(typeof Ne=="string"&&qe(Ne)==="template"){const Ze=v.content;Mt(Ze)&&b.push({node:Ze,shadow:null})}}if(re){const Ne=F(v);Mt(Ne)&&b.push({node:null,shadow:Ne},{node:Ne,shadow:null})}}};return t.sanitize=function(w){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,k=null,v=null,re=null;if(Rt=!w,Rt&&(w="<!-->"),typeof w!="string"&&!Ye(w)&&(w=Id(w),typeof w!="string"))throw Qt("dirty is not a string, aborting");if(!t.isSupported)return w;tn?(T=Xt,V=nn):On(d),(W.uponSanitizeElement.length>0||W.uponSanitizeAttribute.length>0)&&(T=At(T)),W.uponSanitizeAttribute.length>0&&(V=At(V)),t.removed=[];const de=N&&typeof w!="string"&&Ye(w);let Ne=[];const Ze=q;if(de){cr(w);const pt=Z(w);if(typeof pt=="string"){const Ln=qe(pt);if(!T[Ln]||Be[Ln])throw Pe(w),Qt("root node is forbidden and cannot be sanitized in-place")}if(le(w))throw Pe(w),Qt("root node is clobbered and cannot be sanitized in-place");Ne=rt(w),q=Ar()}else if(Ye(w))b=Sn("<!---->"),k=b.ownerDocument.importNode(w,!0),k.nodeType===Xe.element&&k.nodeName==="BODY"||k.nodeName==="HTML"?b=k:b.appendChild(k),dr(b);else{if(!wt&&!et&&!Lt&&w.indexOf("<")===-1)return ce&&jt?Re(w):w;if(b=Sn(w),!b)return wt?null:jt?ye:""}b&&un&&Q(b.firstChild);const Vt=de?w:b;try{de&&dr(w);const pt=xn(Vt);for(;v=pt.nextNode();)J(v,Vt),lr(v,Vt),Mt(v.content)&&Kn(v.content);de&&Su(w,Ne)}catch(pt){throw de&&(Pe(w),Wn(w,Ne)),pt}finally{q=Ze}if(de){if(Wn(w,Ne))throw Qt("a node selected for removal could not be safely returned; refusing to sanitize in place");return et&&qn(w),w}if(wt){if(et&&qn(b),Ht)for(re=Ue.call(b.ownerDocument);b.firstChild;)re.appendChild(b.firstChild);else re=b;return(V.shadowroot||V.shadowrootmode)&&(re=ae.call(u,re,!0)),re}let dt=Lt?b.outerHTML:b.innerHTML;return Lt&&T["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&it(Ud,b.ownerDocument.doctype.name)&&(dt="<!DOCTYPE "+b.ownerDocument.doctype.name+`>
|
|
47
|
-
`+dt),et&&(dt=lt(dt)),ce&&jt?Re(dt):dt},t.setConfig=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};On(w),tn=!0,Xt=T,nn=V},t.clearConfig=function(){dn=null,tn=!1,Xt=null,nn=null,ce=xe,ye=""},t.isValidAttribute=function(w,d,b){dn||On({});const k=qe(w),v=qe(d);return typeof b=="string"&&(Nu(d,b)||!Nt&&it(uo,b))?!1:pe(k,v,b)},t.addHook=function(w,d){typeof d=="function"&&bt(W,w)&&Xn(W[w],d)},t.removeHook=function(w,d){if(bt(W,w)){if(d!==void 0){const b=md(W[w],d);return b===-1?void 0:Td(W[w],b,1)[0]}return qi(W[w])}},t.removeHooks=function(w){bt(W,w)&&(W[w]=[])},t.removeAllHooks=function(){W=ro()},t}var Vd=Ns();function Wd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xr,io;function qd(){if(io)return xr;io=1;function e(f){return f instanceof Map?f.clear=f.delete=f.set=function(){throw new Error("map is read-only")}:f instanceof Set&&(f.add=f.clear=f.delete=function(){throw new Error("set is read-only")}),Object.freeze(f),Object.getOwnPropertyNames(f).forEach(m=>{const O=f[m],K=typeof O;(K==="object"||K==="function")&&!Object.isFrozen(O)&&e(O)}),f}class t{constructor(m){m.data===void 0&&(m.data={}),this.data=m.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(f){return f.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function u(f,...m){const O=Object.create(null);for(const K in f)O[K]=f[K];return m.forEach(function(K){for(const be in K)O[be]=K[be]}),O}const r="</span>",i=f=>!!f.scope,o=(f,{prefix:m})=>{if(f.startsWith("language:"))return f.replace("language:","language-");if(f.includes(".")){const O=f.split(".");return[`${m}${O.shift()}`,...O.map((K,be)=>`${K}${"_".repeat(be+1)}`)].join(" ")}return`${m}${f}`};class s{constructor(m,O){this.buffer="",this.classPrefix=O.classPrefix,m.walk(this)}addText(m){this.buffer+=n(m)}openNode(m){if(!i(m))return;const O=o(m.scope,{prefix:this.classPrefix});this.span(O)}closeNode(m){i(m)&&(this.buffer+=r)}value(){return this.buffer}span(m){this.buffer+=`<span class="${m}">`}}const c=(f={})=>{const m={children:[]};return Object.assign(m,f),m};class a{constructor(){this.rootNode=c(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(m){this.top.children.push(m)}openNode(m){const O=c({scope:m});this.add(O),this.stack.push(O)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(m){return this.constructor._walk(m,this.rootNode)}static _walk(m,O){return typeof O=="string"?m.addText(O):O.children&&(m.openNode(O),O.children.forEach(K=>this._walk(m,K)),m.closeNode(O)),m}static _collapse(m){typeof m!="string"&&m.children&&(m.children.every(O=>typeof O=="string")?m.children=[m.children.join("")]:m.children.forEach(O=>{a._collapse(O)}))}}class h extends a{constructor(m){super(),this.options=m}addText(m){m!==""&&this.add(m)}startScope(m){this.openNode(m)}endScope(){this.closeNode()}__addSublanguage(m,O){const K=m.root;O&&(K.scope=`language:${O}`),this.add(K)}toHTML(){return new s(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function g(f){return f?typeof f=="string"?f:f.source:null}function E(f){return C("(?=",f,")")}function _(f){return C("(?:",f,")*")}function p(f){return C("(?:",f,")?")}function C(...f){return f.map(O=>g(O)).join("")}function D(f){const m=f[f.length-1];return typeof m=="object"&&m.constructor===Object?(f.splice(f.length-1,1),m):{}}function I(...f){return"("+(D(f).capture?"":"?:")+f.map(K=>g(K)).join("|")+")"}function F(f){return new RegExp(f.toString()+"|").exec("").length-1}function y(f,m){const O=f&&f.exec(m);return O&&O.index===0}const R=new RegExp(I(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function x(f,{joinWith:m}){let O=0;return f.map(K=>{O+=1;const be=O;let Oe=g(K),j="";for(;Oe.length>0;){const M=R.exec(Oe);if(!M){j+=Oe;break}j+=Oe.substring(0,M.index),Oe=Oe.substring(M.index+M[0].length),M[0][0]==="\\"&&M[1]?j+="\\"+String(Number(M[1])+be):(j+=M[0],(M[0]==="("||/^\(\?[<']/.test(M[0]))&&O++)}return j}).map(K=>`(${K})`).join(m)}const L=/\b\B/,H="[a-zA-Z]\\w*",Z="[a-zA-Z_]\\w*",ee="\\b\\d+(\\.\\d+)?",he="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ce="\\b(0b[01]+)",ye="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",xe=(f={})=>{const m=/^#![ ]*\//;return f.binary&&(f.begin=C(m,/.*\b/,f.binary,/\b.*/)),u({scope:"meta",begin:m,end:/$/,relevance:0,"on:begin":(O,K)=>{O.index!==0&&K.ignoreMatch()}},f)},Ae={begin:"\\\\[\\s\\S]",relevance:0},G={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ae]},Te={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ae]},Re={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},U=function(f,m,O={}){const K=u({scope:"comment",begin:f,end:m,contains:[]},O);K.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const be=I("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return K.contains.push({begin:C(/[ ]+/,"(",be,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),K},te=U("//","$"),X=U("/\\*","\\*/"),oe=U("#","$"),Ie={scope:"number",begin:ee,relevance:0},Ue={scope:"number",begin:he,relevance:0},Y={scope:"number",begin:ce,relevance:0},ae={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ae,{begin:/\[/,end:/\]/,relevance:0,contains:[Ae]}]},W={scope:"title",begin:H,relevance:0},Le={scope:"title",begin:Z,relevance:0},P={begin:"\\.\\s*"+Z,relevance:0};var Ee=Object.freeze({__proto__:null,APOS_STRING_MODE:G,BACKSLASH_ESCAPE:Ae,BINARY_NUMBER_MODE:Y,BINARY_NUMBER_RE:ce,COMMENT:U,C_BLOCK_COMMENT_MODE:X,C_LINE_COMMENT_MODE:te,C_NUMBER_MODE:Ue,C_NUMBER_RE:he,END_SAME_AS_BEGIN:function(f){return Object.assign(f,{"on:begin":(m,O)=>{O.data._beginMatch=m[1]},"on:end":(m,O)=>{O.data._beginMatch!==m[1]&&O.ignoreMatch()}})},HASH_COMMENT_MODE:oe,IDENT_RE:H,MATCH_NOTHING_RE:L,METHOD_GUARD:P,NUMBER_MODE:Ie,NUMBER_RE:ee,PHRASAL_WORDS_MODE:Re,QUOTE_STRING_MODE:Te,REGEXP_MODE:ae,RE_STARTERS_RE:ye,SHEBANG:xe,TITLE_MODE:W,UNDERSCORE_IDENT_RE:Z,UNDERSCORE_TITLE_MODE:Le});function we(f,m){f.input[f.index-1]==="."&&m.ignoreMatch()}function se(f,m){f.className!==void 0&&(f.scope=f.className,delete f.className)}function Ve(f,m){m&&f.beginKeywords&&(f.begin="\\b("+f.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",f.__beforeBegin=we,f.keywords=f.keywords||f.beginKeywords,delete f.beginKeywords,f.relevance===void 0&&(f.relevance=0))}function ct(f,m){Array.isArray(f.illegal)&&(f.illegal=I(...f.illegal))}function Qe(f,m){if(f.match){if(f.begin||f.end)throw new Error("begin & end are not supported with match");f.begin=f.match,delete f.match}}function T(f,m){f.relevance===void 0&&(f.relevance=1)}const z=(f,m)=>{if(!f.beforeMatch)return;if(f.starts)throw new Error("beforeMatch cannot be used with starts");const O=Object.assign({},f);Object.keys(f).forEach(K=>{delete f[K]}),f.keywords=O.keywords,f.begin=C(O.beforeMatch,E(O.begin)),f.starts={relevance:0,contains:[Object.assign(O,{endsParent:!0})]},f.relevance=0,delete O.beforeMatch},V=["of","and","for","in","not","or","if","then","parent","list","value"],_e="keyword";function me(f,m,O=_e){const K=Object.create(null);return typeof f=="string"?be(O,f.split(" ")):Array.isArray(f)?be(O,f):Object.keys(f).forEach(function(Oe){Object.assign(K,me(f[Oe],m,Oe))}),K;function be(Oe,j){m&&(j=j.map(M=>M.toLowerCase())),j.forEach(function(M){const ie=M.split("|");K[ie[0]]=[Oe,Be(ie[0],ie[1])]})}}function Be(f,m){return m?Number(m):St(f)?0:1}function St(f){return V.includes(f.toLowerCase())}const ft={},ht=f=>{console.error(f)},Ct=(f,...m)=>{console.log(`WARN: ${f}`,...m)},Je=(f,m)=>{ft[`${f}/${m}`]||(console.log(`Deprecated as of ${f}. ${m}`),ft[`${f}/${m}`]=!0)},Nt=new Error;function et(f,m,{key:O}){let K=0;const be=f[O],Oe={},j={};for(let M=1;M<=m.length;M++)j[M+K]=be[M],Oe[M+K]=!0,K+=F(m[M-1]);f[O]=j,f[O]._emit=Oe,f[O]._multi=!0}function vt(f){if(Array.isArray(f.begin)){if(f.skip||f.excludeBegin||f.returnBegin)throw ht("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Nt;if(typeof f.beginScope!="object"||f.beginScope===null)throw ht("beginScope must be object"),Nt;et(f,f.begin,{key:"beginScope"}),f.begin=x(f.begin,{joinWith:""})}}function Lt(f){if(Array.isArray(f.end)){if(f.skip||f.excludeEnd||f.returnEnd)throw ht("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Nt;if(typeof f.endScope!="object"||f.endScope===null)throw ht("endScope must be object"),Nt;et(f,f.end,{key:"endScope"}),f.end=x(f.end,{joinWith:""})}}function tn(f){f.scope&&typeof f.scope=="object"&&f.scope!==null&&(f.beginScope=f.scope,delete f.scope)}function Xt(f){tn(f),typeof f.beginScope=="string"&&(f.beginScope={_wrap:f.beginScope}),typeof f.endScope=="string"&&(f.endScope={_wrap:f.endScope}),vt(f),Lt(f)}function nn(f){function m(j,M){return new RegExp(g(j),"m"+(f.case_insensitive?"i":"")+(f.unicodeRegex?"u":"")+(M?"g":""))}class O{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(M,ie){ie.position=this.position++,this.matchIndexes[this.matchAt]=ie,this.regexes.push([ie,M]),this.matchAt+=F(M)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const M=this.regexes.map(ie=>ie[1]);this.matcherRe=m(x(M,{joinWith:"|"}),!0),this.lastIndex=0}exec(M){this.matcherRe.lastIndex=this.lastIndex;const ie=this.matcherRe.exec(M);if(!ie)return null;const ke=ie.findIndex((Rt,Gt)=>Gt>0&&Rt!==void 0),Fe=this.matchIndexes[ke];return ie.splice(0,ke),Object.assign(ie,Fe)}}class K{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(M){if(this.multiRegexes[M])return this.multiRegexes[M];const ie=new O;return this.rules.slice(M).forEach(([ke,Fe])=>ie.addRule(ke,Fe)),ie.compile(),this.multiRegexes[M]=ie,ie}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(M,ie){this.rules.push([M,ie]),ie.type==="begin"&&this.count++}exec(M){const ie=this.getMatcher(this.regexIndex);ie.lastIndex=this.lastIndex;let ke=ie.exec(M);if(this.resumingScanAtSamePosition()&&!(ke&&ke.index===this.lastIndex)){const Fe=this.getMatcher(0);Fe.lastIndex=this.lastIndex+1,ke=Fe.exec(M)}return ke&&(this.regexIndex+=ke.position+1,this.regexIndex===this.count&&this.considerAll()),ke}}function be(j){const M=new K;return j.contains.forEach(ie=>M.addRule(ie.begin,{rule:ie,type:"begin"})),j.terminatorEnd&&M.addRule(j.terminatorEnd,{type:"end"}),j.illegal&&M.addRule(j.illegal,{type:"illegal"}),M}function Oe(j,M){const ie=j;if(j.isCompiled)return ie;[se,Qe,Xt,z].forEach(Fe=>Fe(j,M)),f.compilerExtensions.forEach(Fe=>Fe(j,M)),j.__beforeBegin=null,[Ve,ct,T].forEach(Fe=>Fe(j,M)),j.isCompiled=!0;let ke=null;return typeof j.keywords=="object"&&j.keywords.$pattern&&(j.keywords=Object.assign({},j.keywords),ke=j.keywords.$pattern,delete j.keywords.$pattern),ke=ke||/\w+/,j.keywords&&(j.keywords=me(j.keywords,f.case_insensitive)),ie.keywordPatternRe=m(ke,!0),M&&(j.begin||(j.begin=/\B|\b/),ie.beginRe=m(ie.begin),!j.end&&!j.endsWithParent&&(j.end=/\B|\b/),j.end&&(ie.endRe=m(ie.end)),ie.terminatorEnd=g(ie.end)||"",j.endsWithParent&&M.terminatorEnd&&(ie.terminatorEnd+=(j.end?"|":"")+M.terminatorEnd)),j.illegal&&(ie.illegalRe=m(j.illegal)),j.contains||(j.contains=[]),j.contains=[].concat(...j.contains.map(function(Fe){return wt(Fe==="self"?j:Fe)})),j.contains.forEach(function(Fe){Oe(Fe,ie)}),j.starts&&Oe(j.starts,M),ie.matcher=be(ie),ie}if(f.compilerExtensions||(f.compilerExtensions=[]),f.contains&&f.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return f.classNameAliases=u(f.classNameAliases||{}),Oe(f)}function un(f){return f?f.endsWithParent||un(f.starts):!1}function wt(f){return f.variants&&!f.cachedVariants&&(f.cachedVariants=f.variants.map(function(m){return u(f,{variants:null},m)})),f.cachedVariants?f.cachedVariants:un(f)?u(f,{starts:f.starts?u(f.starts):null}):Object.isFrozen(f)?u(f):f}var Ht="11.12.0";class jt extends Error{constructor(m,O){super(m),this.name="HTMLInjectionError",this.html=O}}const rn=n,on=u,mn=Symbol("nomatch"),sn=7,N=function(f){const m=Object.create(null),O=Object.create(null),K=[];let be=!0;const Oe="Could not find the language '{}', did you forget to load/include a language module?",j={disableAutodetect:!0,name:"Plain text",contains:[]};let M={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:h};function ie(B){return M.noHighlightRe.test(B)}function ke(B){let Q=B.className+" ";Q+=B.parentNode?B.parentNode.className:"";const Se=M.languageDetectRe.exec(Q);if(Se){const Pe=zt(Se[1]);return Pe||(Ct(Oe.replace("{}",Se[1])),Ct("Falling back to no-highlight mode for this block.",B)),Pe?Se[1]:"no-highlight"}return Q.split(/\s+/).find(Pe=>ie(Pe)||zt(Pe))}function Fe(B,Q,Se){let Pe="",He="";typeof Q=="object"?(Pe=B,Se=Q.ignoreIllegals,He=Q.language):(Je("10.7.0","highlight(lang, code, ...args) has been deprecated."),Je("10.7.0",`Please use highlight(code, options) instead.
|
|
48
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),He=B,Pe=Q),Se===void 0&&(Se=!0);const gt={code:Pe,language:He};yn("before:highlight",gt);const It=gt.result?gt.result:Rt(gt.language,gt.code,Se);return It.code=gt.code,yn("after:highlight",It),It}function Rt(B,Q,Se,Pe){const He=Object.create(null);function gt($,J){return $.keywords[J]}function It(){if(!le.keywords){Ye.addText(Ce);return}let $=0;le.keywordPatternRe.lastIndex=0;let J=le.keywordPatternRe.exec(Ce),pe="";for(;J;){pe+=Ce.substring($,J.index);const Me=lt.case_insensitive?J[0].toLowerCase():J[0],je=gt(le,Me);if(je){const[Ft,ar]=je;if(Ye.addText(pe),pe="",He[Me]=(He[Me]||0)+1,He[Me]<=sn&&(kn+=ar),Ft.startsWith("_"))pe+=J[0];else{const Nu=lt.classNameAliases[Ft]||Ft;Ot(J[0],Nu)}}else pe+=J[0];$=le.keywordPatternRe.lastIndex,J=le.keywordPatternRe.exec(Ce)}pe+=Ce.substring($),Ye.addText(pe)}function fn(){if(Ce==="")return;let $=null;if(typeof le.subLanguage=="string"){if(!m[le.subLanguage]){Ye.addText(Ce);return}$=Rt(le.subLanguage,Ce,!0,Mt[le.subLanguage]),Mt[le.subLanguage]=$._top}else $=cn(Ce,le.subLanguage.length?le.subLanguage:null);le.relevance>0&&(kn+=$.relevance),Ye.__addSublanguage($._emitter,$.language)}function rt(){le.subLanguage!=null?fn():It(),Ce=""}function Ot($,J){$!==""&&(Ye.startScope(J),Ye.addText($),Ye.endScope())}function Wn($,J){let pe=1;const Me=J.length-1;for(;pe<=Me;){if(!$._emit[pe]){pe++;continue}const je=lt.classNameAliases[$[pe]]||$[pe],Ft=J[pe];je?Ot(Ft,je):(Ce=Ft,It(),Ce=""),pe++}}function Tu($,J){return $.scope&&typeof $.scope=="string"&&Ye.openNode(lt.classNameAliases[$.scope]||$.scope),$.beginScope&&($.beginScope._wrap?(Ot(Ce,lt.classNameAliases[$.beginScope._wrap]||$.beginScope._wrap),Ce=""):$.beginScope._multi&&(Wn($.beginScope,J),Ce="")),le=Object.create($,{parent:{value:le}}),le}function Su($,J,pe){let Me=y($.endRe,pe);if(Me){if($["on:end"]){const je=new t($);$["on:end"](J,je),je.isMatchIgnored&&(Me=!1)}if(Me){for(;$.endsParent&&$.parent;)$=$.parent;return $}}if($.endsWithParent)return Su($.parent,J,pe)}function or($){return le.matcher.regexIndex===0?(Ce+=$[0],1):(vn=!0,0)}function sr($){const J=$[0],pe=$.rule,Me=new t(pe),je=[pe.__beforeBegin,pe["on:begin"]];for(const Ft of je)if(Ft&&(Ft($,Me),Me.isMatchIgnored))return or(J);return pe.skip?Ce+=J:(pe.excludeBegin&&(Ce+=J),rt(),!pe.returnBegin&&!pe.excludeBegin&&(Ce=J)),Tu(pe,$),pe.returnBegin?0:J.length}function Cu($){const J=$[0],pe=Q.substring($.index),Me=Su(le,$,pe);if(!Me)return mn;const je=le;le.endScope&&le.endScope._wrap?(rt(),Ot(J,le.endScope._wrap)):le.endScope&&le.endScope._multi?(rt(),Wn(le.endScope,$)):je.skip?Ce+=J:(je.returnEnd||je.excludeEnd||(Ce+=J),rt(),je.excludeEnd&&(Ce=J));do le.scope&&Ye.closeNode(),!le.skip&&!le.subLanguage&&(kn+=le.relevance),le=le.parent;while(le!==Me.parent);return Me.starts&&Tu(Me.starts,$),je.returnEnd?0:J.length}function cr(){const $=[];for(let J=le;J!==lt;J=J.parent)J.scope&&$.unshift(J.scope);$.forEach(J=>Ye.openNode(J))}let Sn={};function xn($,J){const pe=J&&J[0];if(Ce+=$,pe==null)return rt(),0;if(Sn.type==="begin"&&J.type==="end"&&Sn.index===J.index&&pe===""){if(Ce+=Q.slice(J.index,J.index+1),!be){const Me=new Error(`0 width match regex (${B})`);throw Me.languageName=B,Me.badRule=Sn.rule,Me}return 1}if(Sn=J,J.type==="begin")return sr(J);if(J.type==="illegal"&&!Se){const Me=new Error('Illegal lexeme "'+pe+'" for mode "'+(le.scope||"<unnamed>")+'"');throw Me.mode=le,Me}else if(J.type==="end"){const Me=Cu(J);if(Me!==mn)return Me}if(J.type==="illegal"&&pe==="")return J.index===Q.length||(Ce+=`
|
|
49
|
-
`),1;if(Yn>1e5&&Yn>J.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ce+=pe,pe.length}const lt=zt(B);if(!lt)throw ht(Oe.replace("{}",B)),new Error('Unknown language: "'+B+'"');const qn=nn(lt);let Dn="",le=Pe||qn;const Mt={},Ye=new M.__emitter(M);cr();let Ce="",kn=0,yt=0,Yn=0,vn=!1;try{if(lt.__emitTokens)lt.__emitTokens(Q,Ye);else{for(le.matcher.considerAll();;){Yn++,vn?vn=!1:le.matcher.considerAll(),le.matcher.lastIndex=yt;const $=le.matcher.exec(Q);if(!$)break;const J=Q.substring(yt,$.index),pe=xn(J,$);yt=$.index+pe}xn(Q.substring(yt))}return Ye.finalize(),Dn=Ye.toHTML(),{language:B,value:Dn,relevance:kn,illegal:!1,_emitter:Ye,_top:le}}catch($){if($.message&&$.message.includes("Illegal"))return{language:B,value:rn(Q),illegal:!0,relevance:0,_illegalBy:{message:$.message,index:yt,context:Q.slice(yt-100,yt+100),mode:$.mode,resultSoFar:Dn},_emitter:Ye};if(be)return{language:B,value:rn(Q),illegal:!1,relevance:0,errorRaised:$,_emitter:Ye,_top:le};throw $}}function Gt(B){const Q={value:rn(B),illegal:!1,relevance:0,_top:j,_emitter:new M.__emitter(M)};return Q._emitter.addText(B),Q}function cn(B,Q){Q=Q||M.languages||Object.keys(m);const Se=Gt(B),Pe=Q.filter(zt).filter(On).map(rt=>Rt(rt,B,!1));Pe.unshift(Se);const He=Pe.sort((rt,Ot)=>{if(rt.relevance!==Ot.relevance)return Ot.relevance-rt.relevance;if(rt.language&&Ot.language){if(zt(rt.language).supersetOf===Ot.language)return 1;if(zt(Ot.language).supersetOf===rt.language)return-1}return 0}),[gt,It]=He,fn=gt;return fn.secondBest=It,fn}function An(B,Q,Se){const Pe=Q&&O[Q]||Se;B.classList.add("hljs"),B.classList.add(`language-${Pe}`)}function $t(B){let Q=null;const Se=ke(B);if(ie(Se))return;if(yn("before:highlightElement",{el:B,language:Se}),B.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",B);return}if(B.children.length>0&&(M.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(B)),M.throwUnescapedHTML))throw new jt("One of your code blocks includes unescaped HTML.",B.innerHTML);Q=B;const Pe=Q.textContent,He=Se?Fe(Pe,{language:Se,ignoreIllegals:!0}):cn(Pe);B.innerHTML=He.value,B.dataset.highlighted="yes",An(B,Se,He.language),B.result={language:He.language,re:He.relevance,relevance:He.relevance},He.secondBest&&(B.secondBest={language:He.secondBest.language,relevance:He.secondBest.relevance}),yn("after:highlightElement",{el:B,result:He,text:Pe})}function Tn(B){M=on(M,B)}const an=()=>{In(),Je("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function nr(){In(),Je("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ln=!1;function In(){function B(){In()}if(document.readyState==="loading"){ln||window.addEventListener("DOMContentLoaded",B,!1),ln=!0;return}document.querySelectorAll(M.cssSelector).forEach($t)}function ur(B,Q){let Se=null;try{Se=Q(f)}catch(Pe){if(ht("Language definition for '{}' could not be registered.".replace("{}",B)),be)ht(Pe);else throw Pe;Se=j}Se.name||(Se.name=B),m[B]=Se,Se.rawDefinition=Q.bind(null,f),Se.aliases&&Vn(Se.aliases,{languageName:B})}function qe(B){delete m[B];for(const Q of Object.keys(O))O[Q]===B&&delete O[Q]}function dn(){return Object.keys(m)}function zt(B){return B=(B||"").toLowerCase(),m[B]||m[O[B]]}function Vn(B,{languageName:Q}){typeof B=="string"&&(B=[B]),B.forEach(Se=>{O[Se.toLowerCase()]=Q})}function On(B){const Q=zt(B);return Q&&!Q.disableAutodetect}function mu(B){B["before:highlightBlock"]&&!B["before:highlightElement"]&&(B["before:highlightElement"]=Q=>{B["before:highlightBlock"](Object.assign({block:Q.el},Q))}),B["after:highlightBlock"]&&!B["after:highlightElement"]&&(B["after:highlightElement"]=Q=>{B["after:highlightBlock"](Object.assign({block:Q.el},Q))})}function Au(B){mu(B),K.push(B)}function rr(B){const Q=K.indexOf(B);Q!==-1&&K.splice(Q,1)}function yn(B,Q){const Se=B;K.forEach(function(Pe){Pe[Se]&&Pe[Se](Q)})}function ir(B){return Je("10.7.0","highlightBlock will be removed entirely in v12.0"),Je("10.7.0","Please use highlightElement now."),$t(B)}Object.assign(f,{highlight:Fe,highlightAuto:cn,highlightAll:In,highlightElement:$t,highlightBlock:ir,configure:Tn,initHighlighting:an,initHighlightingOnLoad:nr,registerLanguage:ur,unregisterLanguage:qe,listLanguages:dn,getLanguage:zt,registerAliases:Vn,autoDetection:On,inherit:on,addPlugin:Au,removePlugin:rr}),f.debugMode=function(){be=!1},f.safeMode=function(){be=!0},f.versionString=Ht,f.regex={concat:C,lookahead:E,either:I,optional:p,anyNumberOfTimes:_};for(const B in Ee)typeof Ee[B]=="object"&&e(Ee[B]);return Object.assign(f,Ee),f},q=N({});return q.newInstance=()=>N({}),xr=q,q.HighlightJS=q,q.default=q,xr}var Yd=qd();const fu=Wd(Yd);function Kd(e){const t=e.regex,n=e.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},r={begin:/"/,end:/"/,contains:[{match:/""/}]},i=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],a=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],h=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],g=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],E=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=h,p=[...a,...c].filter(x=>!h.includes(x)),C={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},D={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},I={match:t.concat(/\b/,t.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function F(x){return t.concat(/\b/,t.either(...x.map(L=>L.replace(/\s+/,"\\s+"))),/\b/)}const y={scope:"keyword",match:F(E),relevance:0};function R(x,{exceptions:L,when:H}={}){const Z=H;return L=L||[],x.map(ee=>ee.match(/\|\d+$/)||L.includes(ee)?ee:Z(ee)?`${ee}|0`:ee)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:R(p,{when:x=>x.length<3}),literal:i,type:s,built_in:g},contains:[{scope:"type",match:F(o)},y,I,C,u,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,D]}}function Xd(e){const t=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",u="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",r="<<\\s*"+n+"\\s*>>",i="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",o="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",s="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",c="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",a=c.trim().split(" ").map(function(C){return C.split("|")[0]}).join("|"),h="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",g="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",E="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",p="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(C){return C.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:i+s+o,built_in:h+g+E},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+p+")\\s*\\("},{begin:"\\.("+a+")\\b"},{begin:"\\b("+a+")\\s+PATH\\b",keywords:{keyword:"PATH",type:c.replace("PATH ","")}},{className:"type",begin:"\\b("+a+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:u,end:u,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:r,relevance:10}]}}const oo="[A-Za-z$_][0-9A-Za-z$_]*",jd=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Zd=["true","false","null","undefined","NaN","Infinity"],Rs=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Is=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Os=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Qd=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],Jd=[].concat(Os,Rs,Is);function ef(e){const t=e.regex,n=(U,{after:te})=>{const X="</"+U[0].slice(1);return U.input.indexOf(X,te)!==-1},u=oo,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(U,te)=>{const X=U[0].length+U.index,oe=U.input[X];if(oe==="<"||oe===","){te.ignoreMatch();return}oe===">"&&(n(U,{after:X})||te.ignoreMatch());let Ie;const Ue=U.input.substring(X);if(Ie=Ue.match(/^\s*=/)){te.ignoreMatch();return}if((Ie=Ue.match(/^\s+extends\s+/))&&Ie.index===0){te.ignoreMatch();return}}},s={$pattern:oo,keyword:jd,literal:Zd,built_in:Jd,"variable.language":Qd},c="[0-9](_?[0-9])*",a=`\\.(${c})`,h="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${h})((${a})|\\.)?|(${a}))[eE][+-]?(${c})\\b`},{begin:`\\b(${h})\\b((${a})\\b|\\.)?|(${a})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},_={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},C={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},D={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},F={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:u+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,p,C,D,{match:/\$\d+/},g];E.contains=y.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(y)});const R=[].concat(F,E.contains),x=R.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(R)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:x},H={variants:[{match:[/class/,/\s+/,u,/\s+/,/extends/,/\s+/,t.concat(u,"(",t.concat(/\./,u),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,u],scope:{1:"keyword",3:"title.class"}}]},Z={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Rs,...Is]}},ee={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},he={variants:[{match:[/function/,/\s+/,u,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},ce={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ye(U){return t.concat("(?!",U.join("|"),")")}const xe={match:t.concat(/\b/,ye([...Os,"super","import","await"].map(U=>`${U}\\s*\\(`)),u,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ae={begin:t.concat(/\./,t.lookahead(t.concat(u,/(?![0-9A-Za-z$_(])/))),end:u,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},G={match:[/get|set/,/\s+/,u,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},Te="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Re={match:[/const|var|let/,/\s+/,u,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(Te)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:x,CLASS_REFERENCE:Z},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ee,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,p,C,D,F,{match:/\$\d+/},g,Z,{scope:"attr",match:u+t.lookahead(":"),relevance:0},Re,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,e.REGEXP_MODE,{className:"function",begin:Te,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:x}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},he,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,e.inherit(e.TITLE_MODE,{begin:u,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ae,{match:"\\$"+u,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},xe,ce,H,G,{match:/\$[(.]/}]}}const Vu="[A-Za-z$_][0-9A-Za-z$_]*",ys=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],xs=["true","false","null","undefined","NaN","Infinity"],Ds=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ks=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],vs=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Ls=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],ws=[].concat(vs,Ds,ks);function tf(e){const t=e.regex,n=(U,{after:te})=>{const X="</"+U[0].slice(1);return U.input.indexOf(X,te)!==-1},u=Vu,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(U,te)=>{const X=U[0].length+U.index,oe=U.input[X];if(oe==="<"||oe===","){te.ignoreMatch();return}oe===">"&&(n(U,{after:X})||te.ignoreMatch());let Ie;const Ue=U.input.substring(X);if(Ie=Ue.match(/^\s*=/)){te.ignoreMatch();return}if((Ie=Ue.match(/^\s+extends\s+/))&&Ie.index===0){te.ignoreMatch();return}}},s={$pattern:Vu,keyword:ys,literal:xs,built_in:ws,"variable.language":Ls},c="[0-9](_?[0-9])*",a=`\\.(${c})`,h="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${h})((${a})|\\.)?|(${a}))[eE][+-]?(${c})\\b`},{begin:`\\b(${h})\\b((${a})\\b|\\.)?|(${a})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},_={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},C={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},D={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},F={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:u+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,p,C,D,{match:/\$\d+/},g];E.contains=y.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(y)});const R=[].concat(F,E.contains),x=R.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(R)}]),L={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:x},H={variants:[{match:[/class/,/\s+/,u,/\s+/,/extends/,/\s+/,t.concat(u,"(",t.concat(/\./,u),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,u],scope:{1:"keyword",3:"title.class"}}]},Z={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ds,...ks]}},ee={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},he={variants:[{match:[/function/,/\s+/,u,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[L],illegal:/%/},ce={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ye(U){return t.concat("(?!",U.join("|"),")")}const xe={match:t.concat(/\b/,ye([...vs,"super","import","await"].map(U=>`${U}\\s*\\(`)),u,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ae={begin:t.concat(/\./,t.lookahead(t.concat(u,/(?![0-9A-Za-z$_(])/))),end:u,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},G={match:[/get|set/,/\s+/,u,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},L]},Te="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Re={match:[/const|var|let/,/\s+/,u,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(Te)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[L]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:x,CLASS_REFERENCE:Z},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ee,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,p,C,D,F,{match:/\$\d+/},g,Z,{scope:"attr",match:u+t.lookahead(":"),relevance:0},Re,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,e.REGEXP_MODE,{className:"function",begin:Te,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:x}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},he,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[L,e.inherit(e.TITLE_MODE,{begin:u,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ae,{match:"\\$"+u,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[L]},xe,ce,H,G,{match:/\$[(.]/}]}}function nf(e){const t=e.regex,n=tf(e),u=Vu,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[n.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},c=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],a={$pattern:Vu,keyword:ys.concat(c),literal:xs,built_in:ws.concat(r),"variable.language":Ls},h={className:"meta",begin:"@"+u},g=(C,D,I)=>{const F=C.contains.findIndex(y=>y.label===D);if(F===-1)throw new Error("can not find mode to replace");C.contains.splice(F,1,I)};Object.assign(n.keywords,a),n.exports.PARAMS_CONTAINS.push(h);const E=n.contains.find(C=>C.scope==="attr"),_=Object.assign({},E,{match:t.concat(u,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,E,_]),n.contains=n.contains.concat([h,i,o,_]),g(n,"shebang",e.SHEBANG()),g(n,"use_strict",s);const p=n.contains.find(C=>C.label==="func.def");return p.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}const uf="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",rf={scope:"number",match:uf,relevance:0};function of(e){const t={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},u=["true","false","null"],r={scope:"literal",beginKeywords:u.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:u},contains:[t,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,rf,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function sf(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(i,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),a={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,o,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[a],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[a],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:a}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function cf(e){const t=e.regex,n={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,r]};r.contains.push(s);const c={match:/\\"/},a={className:"string",begin:/'/,end:/'/},h={match:/\\'/},g={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},E=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=e.SHEBANG({binary:`(${E.join("|")})`,relevance:10}),p={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},C=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],D=["true","false"],I={match:/(\/[a-z._-]+)+/},F=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],y=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],R=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],x=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:C,literal:D,built_in:[...F,...y,"set","shopt",...R,...x]},contains:[_,e.SHEBANG(),p,g,i,o,I,s,c,a,h,n]}}function af(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},a={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},h={begin:/\{\{/,relevance:0},g={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,h,a]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,h,a]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,h,a]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,h,a]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},E="[0-9](_?[0-9])*",_=`(\\b(${E}))?\\.(${E})|\\b(${E})\\.`,p=`\\b|${u.join("|")}`,C={className:"number",relevance:0,variants:[{begin:`(\\b(${E})|(${_}))[eE][+-]?(${E})[jJ]?(?=${p})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${p})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${p})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`},{begin:`\\b(${E})[jJ](?=${p})`}]},D={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},I={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",c,C,g,e.HASH_COMMENT_MODE]}]};return a.contains=[g,C,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[c,C,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},g,D,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[I]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[C,I,g]}]}}function lf(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),E={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},p={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},C={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},D=[u,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},E,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},p,C,i,o],I=[...D];return I.pop(),I.push(s),_.contains=I,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:D}}function df(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}const ff={sql:Kd,pgsql:Xd,javascript:ef,typescript:nf,json:of,xml:sf,bash:cf,python:af,yaml:lf,plaintext:df};for(const[e,t]of Object.entries(ff))fu.registerLanguage(e,t);const Ms=[];function hf(e,t){Ms.push({aliases:e,languageName:t}),fu.registerAliases([...e],{languageName:t})}let Dr=null;function gf(){for(const{aliases:e,languageName:t}of Ms)fu.registerAliases([...e],{languageName:t})}const pf=/text-align:\s*(left|center|right)/;function Ef(e){for(const t of["th_open","td_open"]){const n=e.renderer.rules[t]??((r,i,o,s,c)=>c.renderToken(r,i,o)),u=(r,i,o,s,c)=>{var g,E;const a=r[i],h=(a==null?void 0:a.attrIndex("style"))??-1;if(a&&a.attrs&&h>=0){const _=((g=a.attrs[h])==null?void 0:g[1])??"",p=(E=pf.exec(_))==null?void 0:E[1];a.attrs.splice(h,1),p&&a.attrSet("data-align",p)}return n(r,i,o,s,c)};e.renderer.rules[t]=u}}function bf(){if(Dr)return Dr;gf();const e=new kt({html:!1,linkify:!0,breaks:!0,typographer:!1,highlight:(n,u)=>{if(u&&fu.getLanguage(u))try{const r=fu.highlight(n,{language:u,ignoreIllegals:!0}).value;return`<pre class="hljs"><code class="hljs language-${u}">${r}</code></pre>`}catch(r){Dt.bestEffortFailed("fall through to markdown-it's escaped default",r)}return""}}),t=e.renderer.rules.link_open??((n,u,r,i,o)=>o.renderToken(n,u,r));return e.renderer.rules.link_open=(n,u,r,i,o)=>{const s=n[u];return s&&(s.attrSet("target","_blank"),s.attrSet("rel","noopener noreferrer")),t(n,u,r,i,o)},Ef(e),Dr=e,e}const so=["a","p","br","strong","em","code","pre","kbd","s","del","ul","ol","li","blockquote","hr","h1","h2","h3","h4","h5","h6","span","table","thead","tbody","tr","th","td"],_f="img",mf=["href","target","rel","src","alt","title","width","height","class"],Af=/^(?:https?:|mailto:|tel:|data:image\/(?:png|jpe?g|gif|webp|svg\+xml);base64,)/i,Tf=["target","rel"];function Sf(e,t){if(!e)return"";const n=bf().render(e);return Vd.sanitize(n,{ALLOWED_TAGS:t!=null&&t.allowImages?[...so,_f]:so,ALLOWED_ATTR:mf,ALLOWED_URI_REGEXP:Af,ADD_URI_SAFE_ATTR:Tf})}function Cf(e,t=!0){return Sf(e,{allowImages:t})}const Fs={info:"Info",success:"Success",warning:"Warning",error:"Error"};function Nf(e){return e==="above"?Bu.AnchorPosition.ABOVE:Bu.AnchorPosition.BELOW}function Rf(e){return e==="right"?Bu.AnchorAlignment.RIGHT:Bu.AnchorAlignment.LEFT}function Ps(e,t={}){const n=e.getBoundingClientRect();return{ownerWindow:Xs.getWindow(e),triggerEl:e,anchor:{top:n.top,left:n.left,width:n.width,height:n.height},anchorAlignment:Rf(t.horizontal),anchorPosition:Nf(t.vertical)}}const If="vk_item_iu5b9",Of="vk_itemExiting_1AEmJ",yf="vk_closeFuse_uJM3j",xf="vk_subtitleCollapse_TrzAH",Df="vk_detailsCollapse_nY1gW",kf="vk_subtitle_XM9-h",vf="vk_detailsRow_QOjtY",Lf="vk_chevron_8399G",wf="vk_mainRow_Or-HS",Mf="vk_icon_tpHzZ",Ff="vk_body_M1AsL",Pf="vk_titleRow_P14EL",Uf="vk_title_LULCY",Bf="vk_timestamp_oi-zj",Hf="vk_subtitleViewport_-M4DV",Gf="vk_toolbar_Pojzw",$f="vk_actions_c2fy8",zf="vk_source_0ZwCJ",Vf="vk_progressRow_HGeTR vk_rowCenter_saaBE",Wf="vk_progress_oqKTw",qf="vk_progressCancel_d41du",Yf="vk_closeWrapper_al-7O",Kf="vk_closeButton_PbZLT",Xf="vk_fuseTrack_oN787",jf="vk_fusePath_vX094",Ge={item:If,itemExiting:Of,closeFuse:yf,subtitleCollapse:xf,detailsCollapse:Df,subtitle:kf,detailsRow:vf,chevron:Lf,mainRow:wf,icon:Mf,body:Ff,titleRow:Pf,title:Uf,timestamp:Bf,subtitleViewport:Hf,toolbar:Gf,actions:$f,source:zf,progressRow:Vf,progress:Wf,progressCancel:qf,closeWrapper:Yf,closeButton:Kf,fuseTrack:Xf,fusePath:jf};function Zf(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var co=l.template("<span>"),Qf=l.template("<div tabindex=-1>"),kr=l.template("<div>"),Jf=l.template("<div><div>"),e1=l.template("<div tabindex=-1><div><span aria-hidden=true></span><div><div><span>"),t1=l.template('<svg viewBox="0 0 100 100"aria-hidden=true><path d="M 50 3 H 79 A 18 18 0 0 1 97 21 V 79 A 18 18 0 0 1 79 97 H 21 A 18 18 0 0 1 3 79 V 21 A 18 18 0 0 1 21 3 Z"></path><path pathLength=100 stroke-dasharray="100 100"stroke-dashoffset=0 d="M 50 3 H 79 A 18 18 0 0 1 97 21 V 79 A 18 18 0 0 1 79 97 H 21 A 18 18 0 0 1 3 79 V 21 A 18 18 0 0 1 21 3 Z">');const vr=new WeakMap;function n1(e,t){const n=Na(t-e);return S.t(n.key,n.values)}function u1(e){try{return $n.formatDateTime(new Date(e))}catch{return new Date(e).toISOString()}}const r1={info:ge.VpInfo,warning:ge.VpWarning,error:ge.VpError,success:ge.VpPass},ao={plug:ge.VpTreePlug,key:ge.VpTreeKey,cloud:ge.VpTreeCloud,database:ge.VpTreeDatabase,"git-merge":ge.VpTreeGitMerge,terminal:ge.VpTerminal,rocket:ge.VpRocket,bell:ge.VpTreeBell,lock:ge.VpLock},Wu=e=>{const t=_a(),n=A.useContext(Yr.DesktopContextMenuContext),[u,r]=A.createSignal(!1);let i;A.onCleanup(()=>{i!==void 0&&clearTimeout(i)});const o=A.createMemo(()=>!Pt(e.item)),s=()=>{if(!u()){if(!o()||Eo.prefersReducedMotion(document)){e.controller.close(e.item.id);return}r(!0),i!==void 0&&clearTimeout(i),i=setTimeout(()=>e.controller.close(e.item.id),180)}},c=U=>e.controller.setFocus(e.item.id,U),a=U=>e.controller.setHover(e.item.id,U),h=()=>e.controller.toggleExpanded(e.item.id),g=A.createMemo(()=>{const U=e.item.icon;return U&&ao[U]?ao[U]:r1[e.item.severity]}),E=A.createMemo(()=>n1(e.item.createdAt,t())),_=A.createMemo(()=>u1(e.item.createdAt)),p=A.createMemo(()=>e.controller.isSticky(e.item)),C=A.createMemo(()=>e.controller.duration(e.item)),D=A.createMemo(()=>{if(p())return!1;const U=C();return Number.isFinite(U)&&U>0}),[I,F]=A.createSignal(!1),[y,R]=A.createSignal(!1);A.onCleanup(()=>{const U=I(),te=y();if(!U&&!te)return;const X=e.item;if(X===void 0)return;const{id:oe}=X,Ie=e.controller;queueMicrotask(()=>{U&&Ie.setHover(oe,!1),te&&Ie.setFocus(oe,!1)})});const[x,L]=A.createSignal(0),H=A.createMemo(()=>I()||y()||!!(e.item.hovered||e.item.focused));let Z=!1;A.createEffect(()=>{const U=H();Z&&!U&&L(te=>te+1),Z=U});let ee=e.item.expanded;A.createEffect(()=>{const U=e.item.expanded;U!==ee&&(ee=U,L(te=>te+1))});const he=A.createMemo(()=>D()?`${e.item.id}-${C()}-${x()}`:null),ce=()=>e.item.announce??(e.item.severity==="error"?"assertive":"polite");A.createEffect(()=>{if(e.inCenter)return;const U=e.item.title,te=e.item.body,X=te?`${U}: ${te}`:U;ce()==="assertive"?e.controller.announcer.assertive(X):e.controller.announcer.polite(X)});const ye=A.createMemo(()=>{const U=e.item.body;return U?e.item.markdown?Cf(U,e.shell!==null):Zf(U).replace(/\n/g,"<br>"):""}),xe=U=>e.controller.openExternal(U),Ae=U=>{const te=U.target,X=te==null?void 0:te.closest("a");if(X){const Y=X.getAttribute("href");if(!Y||Y.startsWith("#"))return;U.preventDefault(),xe(Y);return}const oe=e.shell;if(oe===null){U.preventDefault();return}if(te==null?void 0:te.closest('a, button, [role="button"], input, select, textarea'))return;const Ue=e.item.defaultRoute;Ue&&oe.navigate(Ue)},G=U=>{if(!n)return;const te=`${e.item.title}${e.item.body?`
|
|
50
|
-
${e.item.body}`:""}`.trim(),X=e.item.vendorError?e.controller.resolveVendorError(e.item.vendorError):null;U.preventDefault(),U.stopPropagation(),n.open(U.clientX,U.clientY,[{label:S.t("Search on Google"),onSelect:()=>xe(ot.getGoogleSearchUrl(te))},...X?[{label:S.t("Open {vendor} ({code})",{vendor:X.helpers.docsLinkLabel,code:X.helpers.formatCode(X.code)}),onSelect:()=>xe(X.helpers.docsUrl(X.code))},{label:S.t("Copy error code"),onSelect:()=>{var oe;(oe=navigator.clipboard)==null||oe.writeText(X.helpers.formatCode(X.code)).catch(()=>{})}}]:[],{type:"separator"},{label:S.t("Copy log message"),onSelect:()=>{var oe;(oe=navigator.clipboard)==null||oe.writeText(te).catch(()=>{})}}])},Te=U=>{const te=e.shell;if(te===null||!n)return;if(U.preventDefault(),U.stopPropagation(),n.state()&&vr.get(n)===e.item.id){n.close(),vr.set(n,null);return}vr.set(n,e.item.id);const X=U.currentTarget,oe=e.item.source,Ie=e.item.neverShowAgainKey,Ue=Ie??e.item.remindKey??pu(oe??"general",e.item.title),Y=[];if(Ie&&Y.push({label:S.t("Don't show again"),onSelect:()=>{te.dismissKey(Ie),s()}}),te.remindLaterEnabled()){const P=()=>{const ue=new Date;return ue.setDate(ue.getDate()+1),ue.setHours(9,0,0,0),ue.getTime()-Date.now()};Y.push({label:S.t("Remind me in 15 minutes"),onSelect:()=>{te.remindLater(Ue,15*6e4),s()}}),Y.push({label:S.t("Remind me in 1 hour"),onSelect:()=>{te.remindLater(Ue,36e5),s()}}),Y.push({label:S.t("Remind me tomorrow morning"),onSelect:()=>{te.remindLater(Ue,P()),s()}})}if(oe&&oe!=="general"){const W=te.isSourceMuted(oe);Y.push({label:W?S.t("Unmute notifications from this source"):S.t("Mute notifications from this source"),onSelect:()=>te.setSourceMuted(oe,!W)})}const ae=e.item.secondaryActions;if(ae&&ae.length>0){Y.length>0&&Y.push({type:"separator"});for(const W of ae)Y.push({label:W.label,onSelect:()=>{W.onClick()}})}Y.length>0&&Y.push({type:"separator"}),Y.push({label:S.t("Notification settings…"),onSelect:()=>te.openSettings()}),n.openWithPlacement(Ps(X,{vertical:"auto",horizontal:"auto"}),Y)},Re=async U=>{try{await U.onClick()}finally{U.keepOpen||s()}};return(()=>{var U=e1(),te=U.firstChild,X=te.firstChild,oe=X.nextSibling,Ie=oe.firstChild,Ue=Ie.firstChild;return l.spread(U,l.mergeProps({get class(){return`${Ge.item} card ${u()?Ge.itemExiting:""}`},get id(){return l.memo(()=>!!e.inCenter)()?void 0:`notification-card-${e.item.id}`},get"data-severity"(){return e.item.severity},get"data-expanded"(){return e.item.expanded},get"data-has-actions"(){return e.item.actions&&e.item.actions.length>0?"true":"false"},get"data-has-timer"(){return D()?"true":"false"}},()=>e.inCenter?{}:{"aria-live":ce()},{get"aria-atomic"(){return e.inCenter?void 0:"true"},get"aria-label"(){return S.t("{severity}: {title}",{severity:S.t(Fs[e.item.severity]),title:e.item.title})},onMouseEnter:()=>{F(!0),a(!0)},onMouseLeave:()=>{F(!1),a(!1)},onFocusIn:()=>{R(!0),c(!0)},onFocusOut:()=>{R(!1),c(!1)},onContextMenu:G}),!1,!0),l.insert(X,l.createComponent(l.Dynamic,{get component(){return g()},size:16})),l.insert(Ue,()=>e.item.title),l.insert(Ie,l.createComponent(Wr.HoverTooltip,{get content(){return _()},delayMs:400,get children(){var Y=co();return l.insert(Y,E),l.effect(()=>l.className(Y,Ge.timestamp)),Y}}),null),l.insert(oe,l.createComponent(A.Show,{get when(){return e.item.body},get children(){return l.createComponent(Yu.OverlayScrollArea,{get rootClass(){return Ge.subtitleCollapse},get viewportClass(){return Ge.subtitleViewport},hideHorizontal:!0,get children(){var Y=Qf();return Y.$$keydown=ae=>{mt.isKey(ae,"Enter")&&Ae(ae)},Y.$$click=Ae,l.effect(ae=>{var W=Ge.subtitle,Le=ye();return W!==ae.e&&l.className(Y,ae.e=W),Le!==ae.t&&(Y.innerHTML=ae.t=Le),ae},{e:void 0,t:void 0}),Y}})}}),null),l.insert(te,l.createComponent(Pn.Panel.Toolbar,{get class(){return Ge.toolbar},get children(){return[l.createComponent(A.Show,{get when(){return e.item.body},get children(){return l.createComponent($e.Button,{variant:"ghost",size:"sm",iconOnly:!0,get"aria-label"(){return l.memo(()=>!!e.item.expanded)()?S.t("Collapse"):S.t("Expand")},get title(){return l.memo(()=>!!e.item.expanded)()?S.t("Collapse"):S.t("Expand")},onClick:h,get children(){return l.createComponent(ge.VpChevronDown,{get class(){return`${fr.iconScale.iconMd} ${Ge.chevron}`}})}})}}),l.createComponent(A.Show,{get when(){return e.shell!==null},get children(){return l.createComponent($e.Button,{variant:"ghost",size:"sm",iconOnly:!0,get"aria-label"(){return S.t("More actions")},get title(){return S.t("More actions")},onMouseDown:Y=>Y.stopPropagation(),onClick:Te,get children(){return l.createComponent(ge.VpGear,{get class(){return fr.iconScale.iconMd}})}})}}),l.createComponent(A.Show,{get when(){return o()},get children(){var Y=kr();return l.insert(Y,l.createComponent($e.Button,{variant:"ghost",size:"sm",iconOnly:!0,get class(){return`${Ge.closeButton} close-btn`},"data-testid":"notification-close-btn",get"aria-label"(){return S.t("Close")},get title(){return S.t("Close")},onClick:s,get children(){return l.createComponent(ge.VpTreeClose,{get class(){return fr.iconScale.iconMd}})}}),null),l.insert(Y,l.createComponent(A.Show,{keyed:!0,get when(){return he()},children:ae=>(()=>{var W=t1(),Le=W.firstChild,P=Le.nextSibling;return l.setAttribute(W,"data-fuse-key",ae),l.effect(ue=>{var Ee=Ge.closeFuse,we=`${C()}ms`,se=Ge.fuseTrack,Ve=Ge.fusePath;return Ee!==ue.e&&l.setAttribute(W,"class",ue.e=Ee),we!==ue.t&&l.setStyleProperty(W,"--fuse-duration",ue.t=we),se!==ue.a&&l.setAttribute(Le,"class",ue.a=se),Ve!==ue.o&&l.setAttribute(P,"class",ue.o=Ve),ue},{e:void 0,t:void 0,a:void 0,o:void 0}),W})()}),null),l.effect(()=>l.className(Y,Ge.closeWrapper)),Y}})]}}),null),l.insert(U,l.createComponent(A.Show,{get when(){return l.memo(()=>!!e.item.actions)()&&e.item.actions.length>0||typeof e.item.source=="string"&&e.item.source.length>0&&e.item.source!=="general"&&e.item.source!=="undefined"},get children(){var Y=Jf(),ae=Y.firstChild;return l.insert(ae,l.createComponent(A.Show,{get when(){return l.memo(()=>!!e.item.actions)()&&e.item.actions.length>0},get children(){var W=kr();return l.insert(W,l.createComponent(A.For,{get each(){return e.item.actions},children:Le=>l.createComponent($e.Button,{get variant(){return Le.primary?"primary":"secondary"},size:"sm",get class(){return`${Le.primary?"primary ":""}btn`},onClick:()=>void Re(Le),get children(){return Le.label}})})),l.effect(()=>l.className(W,Ge.actions)),W}}),null),l.insert(ae,l.createComponent(A.Show,{get when(){return l.memo(()=>typeof e.item.source=="string"&&e.item.source.length>0&&e.item.source!=="general")()&&e.item.source!=="undefined"},get children(){var W=co();return l.insert(W,()=>S.t("Source: {source}",{source:String(e.item.source)})),l.effect(()=>l.className(W,Ge.source)),W}}),null),l.effect(W=>{var Le=Ge.detailsCollapse,P=Ge.detailsRow;return Le!==W.e&&l.className(Y,W.e=Le),P!==W.t&&l.className(ae,W.t=P),W},{e:void 0,t:void 0}),Y}}),null),l.insert(U,l.createComponent(A.Show,{get when(){return l.memo(()=>!!e.item.progress)()&&!e.item.progress.done},get children(){var Y=kr();return l.insert(Y,l.createComponent(A.Show,{get when(){var ae;return typeof((ae=e.item.progress)==null?void 0:ae.value)=="number"},get fallback(){return l.createComponent(at.Progress,{indeterminate:!0,size:"2xs",get class(){return Ge.progress},get ariaLabel(){return S.t("Progress")}})},get children(){return l.createComponent(at.Progress,{get value(){var ae;return((ae=e.item.progress)==null?void 0:ae.value)??0},max:1,size:"2xs",get class(){return Ge.progress},get ariaLabel(){return S.t("Progress")}})}}),null),l.insert(Y,l.createComponent(A.Show,{get when(){var ae;return(ae=e.item.progress)==null?void 0:ae.onCancel},get children(){return l.createComponent($e.Button,{iconOnly:!0,variant:"ghost",size:"sm",get class(){return Ge.progressCancel},get title(){return S.t("Cancel")},get"aria-label"(){return S.t("Cancel")},onClick:()=>{var ae,W;return(W=(ae=e.item.progress)==null?void 0:ae.onCancel)==null?void 0:W.call(ae)},get children(){return l.createComponent(ge.VpTreeClose,{})}})}}),null),l.effect(()=>l.className(Y,Ge.progressRow)),Y}}),null),l.effect(Y=>{var ae=Ge.mainRow,W=Ge.icon,Le=e.item.severity,P=`${Ge.body} body`,ue=Ge.titleRow,Ee=`${Ge.title} title`;return ae!==Y.e&&l.className(te,Y.e=ae),W!==Y.t&&l.className(X,Y.t=W),Le!==Y.a&&l.setAttribute(X,"data-severity",Y.a=Le),P!==Y.o&&l.className(oe,Y.o=P),ue!==Y.i&&l.className(Ie,Y.i=ue),Ee!==Y.n&&l.className(Ue,Y.n=Ee),Y},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),U})()};l.delegateEvents(["click","keydown"]);const Du=200,zr="notification.acceptPrimaryAction",Vr="notification.clear",Fu="notifications.hideToasts",i1=`${Ut.ACCESSIBILITY_MODE_ENABLED_KEY} && (${Ut.FOCUS_CONTEXT_KEYS.notificationFocus} || ${Ut.FOCUS_CONTEXT_KEYS.notificationToastsVisible})`,o1=Ut.FOCUS_CONTEXT_KEYS.notificationToastsVisible,s1=`${Ut.FOCUS_CONTEXT_KEYS.notificationToastsVisible} && ${Ut.FOCUS_CONTEXT_KEYS.notificationFocus}`;function Us(e,t){const n=[e.commands.register({id:zr,handler:()=>t.acceptPrimaryAction(),metadata:{label:"Accept Notification Primary Action",category:"Notifications"}}),e.bindings.register({command:zr,key:"CmdOrCtrl+Shift+A",when:i1,weight:Du+1,source:"core"}),e.commands.register({id:Vr,handler:()=>t.clearFocused(),metadata:{label:"Clear Notification",category:"Notifications"}}),e.bindings.register({command:Vr,key:"Delete",mac:"Cmd+Backspace",when:Ut.FOCUS_CONTEXT_KEYS.notificationFocus,weight:Du,source:"core"}),e.commands.register({id:Fu,handler:()=>t.hideToasts(),metadata:{label:"Hide notifications",category:"Notifications"}}),e.bindings.register({command:Fu,key:"Escape",when:o1,weight:Du-50,source:"core"}),e.bindings.register({command:Fu,key:"Escape",when:s1,weight:Du+100,source:"core"})];return()=>{for(const u of n.reverse())u()}}const Bs={kind:"none"};function Hs(e){const t=e.notificationOverlay(qs.getMainWindow().window);return t?{kind:"native",port:t}:Bs}function Pu(e){return e&&e.width>0&&e.height>0?{x:e.x,y:e.y,width:e.width,height:e.height}:void 0}function c1(e){var t;return[(t=e.progress)==null?void 0:t.onCancel,e.defaultRoute,e.source,e.neverShowAgainKey,...(e.actions??[]).flatMap(n=>[n.id,n.label,n.primary,n.keepOpen,n.onClick]),...(e.secondaryActions??[]).flatMap(n=>[n.label,n.onClick])]}function a1(e){return{...e.value!==void 0?{value:e.value}:{},done:e.done??!1,hasCancel:typeof e.onCancel=="function"}}function l1(e){return e.map(t=>({label:t.label,...t.id?{id:t.id}:{},...t.primary!==void 0?{primary:t.primary}:{},...t.keepOpen!==void 0?{keepOpen:t.keepOpen}:{}}))}function d1(e,t){const n=hu(e,t.settings);return{id:e.id,itemRevision:t.revision,severity:e.severity,title:e.title,...e.body?{body:e.body}:{},...e.markdown!==void 0?{markdown:e.markdown}:{},...e.icon?{icon:e.icon}:{},...e.announce?{announce:e.announce}:{},...e.expanded!==void 0?{expanded:e.expanded}:{},...e.progress?{progress:a1(e.progress)}:{},duration:Number.isFinite(n)?n:0,sticky:gu(e,t.settings),hovered:e.hovered,focused:e.focused,sourceMuted:e.source?en(e.source):!1,...t.bounds?{bounds:t.bounds}:{},...e.source?{source:e.source}:{},...e.neverShowAgainKey?{neverShowAgainKey:e.neverShowAgainKey}:{},...e.remindKey?{remindKey:e.remindKey}:{},...e.defaultRoute?{defaultRoute:e.defaultRoute}:{},...e.actions?{actions:l1(e.actions)}:{},...e.secondaryActions?{secondaryActions:e.secondaryActions.map(u=>({label:u.label}))}:{},createdAt:e.createdAt}}function f1(e){return{visible:e.visible,position:e.position,width:e.width,theme:e.theme,language:e.language,...e.appearance??{},generation:e.generation,reduceMotion:e.reduceMotion,animationDuration:e.animationDuration,remindLaterEnabled:e.remindLaterEnabled,sequence:e.sequence,...e.bounds?{bounds:e.bounds}:{},...e.clipBounds?{clipBounds:e.clipBounds}:{},items:e.items}}function h1(){const e=new Map;let t=0;return{revisionOf(n){const u=c1(n),r=e.get(n.id);if(r&&r.callbacks.length===u.length&&u.every((o,s)=>o===r.callbacks[s]))return r.revision;const i=++t;return e.set(n.id,{revision:i,callbacks:u}),i},current:n=>{var u;return(u=e.get(n))==null?void 0:u.revision},prune(n){for(const u of e.keys())n.some(r=>r.id===u)||e.delete(u)}}}function g1(e){const t=Math.min(...e.map(i=>i.x)),n=Math.min(...e.map(i=>i.y)),u=Math.max(...e.map(i=>i.x+i.width)),r=Math.max(...e.map(i=>i.y+i.height));return{x:t,y:n,width:u-t,height:r-n}}function p1(e,t){return!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y)}function E1(e){return e?{x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}:void 0}function b1(e){const t=i=>{var g,E;const o=e.hostEl(),s=(o==null?void 0:o.getBoundingClientRect())??i.getBoundingClientRect();let c=0,a=0,h=i;for(;h&&h!==o;)c+=h.offsetLeft,a+=h.offsetTop,h=h.offsetParent;return{x:s.x+c-(((g=e.scrollEl())==null?void 0:g.scrollLeft)??0),y:s.y+a-(((E=e.scrollEl())==null?void 0:E.scrollTop)??0),width:i.offsetWidth,height:i.offsetHeight}},n=()=>{const i=e.hostEl();if(!i)return;const o=e.cards().map(t).filter(s=>s.width>0&&s.height>0);return o.length>0?g1(o):Pu(i.getBoundingClientRect())},[u,r]=A.createSignal();return A.createEffect(()=>{const i=e.hostEl(),o=e.hostWindow.ResizeObserver;if(!i||!o)return;const s=()=>{const h=n();h&&r(h)},c=new o(s),a=e.scrollEl();a==null||a.addEventListener("scroll",s),a&&c.observe(a),c.observe(i),s(),A.onCleanup(()=>{c.disconnect(),a==null||a.removeEventListener("scroll",s)})}),{cardBounds:t,stackBounds:n,hostRect:u}}function _1(e,t){return A.createMemo(()=>{const n=ot.getVisibleBrowsers(e.hostWindow);if(n.length===0)return!1;const u=e.hostEl();if(!u)return!1;const r=t.hostRect()??t.stackBounds()??u.getBoundingClientRect();return r.width<=0||r.height<=0?!1:n.some(i=>p1(i.bounds,r))})}function m1(e,t,n){var r,i;if(t.actionType==="secondary"){const o=(r=e==null?void 0:e.secondaryActions)==null?void 0:r[t.actionIndex];o&&o.onClick();return}const u=(i=e==null?void 0:e.actions)==null?void 0:i[t.actionIndex];u&&(u.onClick(),u.keepOpen||n.close(t.id))}function A1(e,t,n){var u,r,i;switch(e.type){case"scroll-stack":(u=n.scrollEl())==null||u.scrollBy({top:e.deltaY});break;case"open-settings":n.shell.openSettings();break;case"cancel-progress":(i=(r=t.progress)==null?void 0:r.onCancel)==null||i.call(r);break;case"navigate":t.defaultRoute&&n.shell.navigate(t.defaultRoute);break;case"open-external":n.controller.openExternal(e.url);break;case"dismiss-key":n.shell.dismissKey(e.key);break;case"remind-later":n.shell.remindLater(e.key,e.ttlMs);break;case"mute-source":n.shell.setSourceMuted(e.source,e.muted);break}}function T1(e,t){const n=r=>t.items().find(i=>i.id===r),{controller:u}=t;A.onCleanup(e.onNotificationOverlayClose(r=>{t.isCurrent(r)&&u.close(r.id)})),A.onCleanup(e.onNotificationOverlayAction(r=>{t.isCurrent(r,!0)&&m1(n(r.id),r,u)})),A.onCleanup(e.onNotificationOverlayHover(r=>{t.isCurrent(r)&&u.setHover(r.id,r.hovered)})),A.onCleanup(e.onNotificationOverlayFocus(r=>{t.isCurrent(r)&&u.setFocus(r.id,r.focused)})),A.onCleanup(e.onNotificationOverlayPresented(t.onPresented)),A.onCleanup(e.onNotificationOverlayToggleExpanded(r=>{t.isCurrent(r)&&u.toggleExpanded(r.id)})),A.onCleanup(e.onNotificationOverlayCommand(r=>{if(!t.isCurrent(r,r.type!=="scroll-stack"))return;const i=n(r.id);i&&A1(r,i,t)}))}function S1(e,t){for(const n of e)n.hovered&&t.setHover(n.id,!1),n.focused&&t.setFocus(n.id,!1)}function C1(e,t,n,u){var s,c,a;const r=e.hostEl(),i=r?t.stackBounds()??t.hostRect()??r.getBoundingClientRect():void 0,o=h=>{const g=r==null?void 0:r.ownerDocument.getElementById(`notification-card-${h}`);return Pu(g?t.cardBounds(g):void 0)};return f1({visible:u.active,position:e.position(),width:e.width(),theme:((s=e.appearance())==null?void 0:s.theme)??((a=(c=e.hostWindow.document)==null?void 0:c.documentElement)!=null&&a.classList.contains("light")?"light":"dark"),language:S.appI18n.language,appearance:e.appearance(),generation:u.generation,sequence:u.sequence,reduceMotion:e.reduceMotion(),animationDuration:e.animationDuration(),remindLaterEnabled:e.settings().remindLaterEnabled,bounds:E1(Pu(i)),clipBounds:Pu(r==null?void 0:r.getBoundingClientRect()),items:e.visible().map(h=>d1(h,{revision:n.revisionOf(h),settings:e.settings(),bounds:o(h.id)}))})}function N1(e){const t=e.channel;if(t.kind==="none")return{nativeRendered:()=>!1};const n=t.port,u=Math.floor(performance.timeOrigin*1e3+performance.now());let r=0,i=!1;const o=h1(),s=b1(e),c=_1(e,s),[a,h]=A.createSignal(!1),g=(E,_=!1)=>e.ownsDisplay()&&i&&E.generation===u&&E.sequence<=r&&(!_||o.current(E.id)===E.itemRevision);return A.onMount(()=>T1(n,{...e,isCurrent:g,onPresented:E=>{E.generation!==u||E.sequence>r||h(i&&E.visible)}})),A.createEffect(()=>{const E=e.visible(),_=e.ownsDisplay()&&!e.isCenterOpen()&&E.length>0,p=c()&&_,C=i;i=p,C&&!p&&queueMicrotask(()=>{i||S1(e.items(),e.controller)}),o.prune(e.items()),p||h(!1),n.setNotificationOverlay(C1(e,s,o,{active:p,generation:u,sequence:++r}))}),A.onCleanup(()=>{n.setNotificationOverlay({visible:!1,position:e.position(),width:e.width(),items:[],generation:u,sequence:++r})}),{nativeRendered:a}}const R1="vk_host_-dTTD",I1="vk_scrollArea_FaEtH",O1="vk_stack_4LHtI",y1="vk_enter_GAjwE",x1="vk_ackOverlay_1dc3n",D1="vk_ackCenterWrap_ZPFTX",k1="vk_ackQueueHint_HL0SL",gn={host:R1,scrollArea:I1,stack:O1,enter:y1,ackOverlay:x1,ackCenterWrap:D1,ackQueueHint:k1};var lo=l.template("<div>"),v1=l.template("<p>"),L1=l.template("<div role=alertdialog aria-modal=true><div>");const w1=e=>{var Le;const t=po.useHostWindow().window,n=Rn.useKitHost(),u=n.notifications.stack,r=n.displayOwner.register(t);A.onCleanup(r.dispose);const[i,o]=Uu.createStore({items:[]}),s=ne.notificationSettings.get(),[c,a]=A.createSignal(s),[h,g]=A.createSignal(),[E,_]=A.createSignal(s.toastPosition),p=()=>E(),[C,D]=A.createSignal(s.notificationWidth),[I,F]=A.createSignal(s.animationDuration),[y,R]=A.createSignal(s.reduceMotion),[x,L]=A.createSignal(),[H,Z]=A.createSignal(),[ee,he]=A.createSignal(null),ce=qo(n,c),ye=ju(n),xe=()=>i.items.filter(P=>P.priority==="acknowledgment-required"),Ae=()=>i.items.filter(P=>Xr(P)&&P.outOfSightSince===void 0),G=()=>xe()[0]??null,Te=()=>e.centerOpen(),Re=P=>{P&&(a(ue=>({...ue,...P})),P.toastPosition&&_(P.toastPosition),typeof P.notificationWidth=="number"&&D(P.notificationWidth),(P.animationDuration==="fast"||P.animationDuration==="normal"||P.animationDuration==="slow")&&F(P.animationDuration),typeof P.reduceMotion=="boolean"&&R(P.reduceMotion))},U=()=>{var se;const P=Ae(),ue=ee(),Ee=ue!==null?P[ue]:P[0],we=(se=Ee==null?void 0:Ee.actions)==null?void 0:se.find(Ve=>Ve.primary);!Ee||!we||(we.onClick(),we.keepOpen||u.close(Ee.id))},te=()=>{const P=Ae(),ue=ee();if(ue===null)return;const Ee=P[ue];!Ee||Pt(Ee)||(u.dismiss(Ee.id),he(P.length<=1?null:Math.min(ue,P.length-2)))},X=()=>{Ae().length!==0&&(Ho(i.items).forEach(P=>u.dismiss(P)),he(null))},oe=Ut.useKeybindingsOptional(),Ie=oe===null,Ue=/Mac OS X|Macintosh/i.test(((Le=t.navigator)==null?void 0:Le.userAgent)??""),Y=P=>{var Ve;const ue=Ae();if(ue.length===0)return;if(Ie&&!P.defaultPrevented&&mt.isKey(P,"Escape")){P.preventDefault(),X();return}const Ee=P.target;if(!Ee||typeof Ee.nodeType!="number"||!((Ve=x())!=null&&Ve.contains(Ee)))return;const we=ee();if(mt.isKey(P,"ArrowDown")||mt.isKey(P,"PageDown")){P.preventDefault(),he(we===null?0:Math.min(ue.length-1,we+1));return}if(mt.isKey(P,"ArrowUp")||mt.isKey(P,"PageUp")){P.preventDefault(),he(we===null?ue.length-1:Math.max(0,we-1));return}if(mt.isKey(P,"Home")){P.preventDefault(),he(0);return}if(mt.isKey(P,"End")){P.preventDefault(),he(ue.length-1);return}if(we===null)return;const se=ue[we];if(se){if(mt.isKey(P,"ArrowRight")&&!se.expanded){P.preventDefault(),u.toggleExpanded(se.id);return}if(mt.isKey(P,"ArrowLeft")&&se.expanded){P.preventDefault(),u.toggleExpanded(se.id);return}if(Ie&&!P.defaultPrevented&&(mt.isKey(P,"Delete")||Ue&&mt.isKey(P,"Backspace")&&P.metaKey)){P.preventDefault(),te();return}(P.key===" "||mt.isKey(P,"Enter"))&&(P.preventDefault(),u.toggleExpanded(se.id))}};ne.useSettingsSubscription(ne.notificationSettings,Re),oe&&(Ut.createFocusContextKey({contextKeys:oe.contextKeys,key:Ut.FOCUS_CONTEXT_KEYS.notificationFocus,containerRef:x}),A.createRenderEffect(()=>{oe.contextKeys.setContext(Ut.FOCUS_CONTEXT_KEYS.notificationToastsVisible,r.ownsDisplay()&&!Te()&&Ae().length>0)}),A.onCleanup(Us(oe,{acceptPrimaryAction:U,clearFocused:te,hideToasts:X}))),A.onMount(()=>{const P=t.document.documentElement,ue=()=>{const se=t.getComputedStyle(P),Ve={};for(let Qe=0;Qe<se.length;Qe++){const T=se.item(Qe);T.startsWith("--")&&(Ve[T]=se.getPropertyValue(T))}const ct={cssVariables:Ve,fontFamily:se.fontFamily,fontSize:se.fontSize,theme:P.classList.contains("light")?"light":"dark"};g(Qe=>JSON.stringify(Qe)===JSON.stringify(ct)?Qe:ct)};ue();const Ee=new t.MutationObserver(ue);Ee.observe(P,{attributes:!0,attributeFilter:["class","style","data-theme","data-palette"]}),A.onCleanup(()=>Ee.disconnect());const we=u.subscribe(se=>{o("items",Uu.reconcile(se,{key:"id",merge:!0}))});t.addEventListener("keydown",Y),A.onCleanup(()=>{we(),t.removeEventListener("keydown",Y)})}),A.createEffect(()=>{var P;(P=x())==null||P.style.setProperty("--notif-width",`${C()}px`)});const ae=N1({channel:e.overlay??Hs(n.desktop),hostWindow:t,ownsDisplay:r.ownsDisplay,items:()=>i.items,visible:Ae,isCenterOpen:Te,hostEl:x,scrollEl:H,cards:()=>{var P;return[...((P=x())==null?void 0:P.querySelectorAll(`.${gn.enter}`))??[]]},position:E,width:C,appearance:h,reduceMotion:y,animationDuration:I,settings:c,controller:ce,shell:ye});A.createEffect(()=>{const P=x();if(P){if(y()){P.style.setProperty("--notif-anim-duration","0ms");return}switch(I()){case"fast":P.style.setProperty("--notif-anim-duration","100ms");break;case"normal":P.style.setProperty("--notif-anim-duration","220ms");break;case"slow":P.style.setProperty("--notif-anim-duration","400ms");break}}});const W=Wr.createDialogShellFocus({open:()=>r.ownsDisplay()&&G()!==null,onDismiss:()=>{},ownerDocument:()=>globalThis.document,dismissDisabled:()=>!0});return[l.createComponent(di.HostPortal,{element:()=>x(),type:"toast",open:()=>!!(r.ownsDisplay()&&!Te()&&Ae().length>0),idPrefix:"notification-toast",get children(){return l.createComponent(A.Show,{get when(){return l.memo(()=>!!r.ownsDisplay())()&&!Te()},get children(){var P=lo();return l.use(L,P),l.spread(P,l.mergeProps(()=>Eo.modalBackgroundExemption("notifications"),{get class(){return gn.host},get"data-position"(){return p()},get"data-presenter"(){return ae.nativeRendered()?"native":"dom"},"aria-label":"Notifications",tabIndex:-1}),!1,!0),l.insert(P,l.createComponent(Yu.OverlayScrollArea,{get rootClass(){return gn.scrollArea},get viewportClass(){return gn.stack},viewportRef:Z,hideHorizontal:!0,get children(){return l.createComponent(A.For,{get each(){return Ae()},children:(ue,Ee)=>(()=>{var we=lo();return l.insert(we,l.createComponent(Wu,{item:ue,controller:ce,get shell(){return ue.isolated?null:ye}})),l.effect(se=>{var Ve=gn.enter,ct=ee()===Ee()?"true":"false";return Ve!==se.e&&l.className(we,se.e=Ve),ct!==se.t&&l.setAttribute(we,"data-focused",se.t=ct),se},{e:void 0,t:void 0}),we})()})}})),P}})}}),l.createComponent(di.HostPortal,{modal:!0,open:()=>!!(r.ownsDisplay()&&G()),idPrefix:"notification-ack",get children(){return l.createComponent(A.Show,{keyed:!0,get when(){return l.memo(()=>!!r.ownsDisplay())()?G():null},children:P=>(()=>{var ue=L1(),Ee=ue.firstChild;l.addEventListener(ue,"keydown",W.handleKeyDown,!0);var we=W.captureDialog;return typeof we=="function"?l.use(we,ue):W.captureDialog=ue,l.insert(Ee,l.createComponent(Wu,{item:P,controller:ce,get shell(){return P.isolated?null:ye}}),null),l.insert(Ee,l.createComponent(A.Show,{get when(){return xe().length>1},get children(){var se=v1();return l.insert(se,()=>S.t("+{count} pending acknowledgment",{count:xe().length-1})),l.effect(()=>l.className(se,gn.ackQueueHint)),se}}),null),l.effect(se=>{var Ve=gn.ackOverlay,ct=`notif-ack-${P.id}`,Qe=xe().length>1?xe().length:void 0,T=gn.ackCenterWrap,z=`notif-ack-${P.id}`;return Ve!==se.e&&l.className(ue,se.e=Ve),ct!==se.t&&l.setAttribute(ue,"aria-labelledby",se.t=ct),Qe!==se.a&&l.setAttribute(ue,"data-ack-queue-size",se.a=Qe),T!==se.o&&l.className(Ee,se.o=T),z!==se.i&&l.setAttribute(Ee,"id",se.i=z),se},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),ue})()})}})]};l.delegateEvents(["keydown"]);const M1=at.defineNotification({id:"onboarding.PageTourHost.info.1",source:"general",severity:"info",priority:"default",delivery:"in-app",kind:"message"},()=>({message:S.t("You can reopen this tour from Help → Page tours.")}));function qu(e){return e.getClientRects().length>0&&e.getBoundingClientRect().width>0&&e.getBoundingClientRect().height>0}function ku(e){return t=>t.matches(e)&&qu(t)?t:Array.from(t.querySelectorAll(e)).find(qu)??null}var F1=l.template("<span hidden>");function P1(e){const t=A.useContext(ot.ToolWindowContext),{tours:n,notifications:u,log:r}=Rn.useKitHost(),i=r.withTag("PageTour");let o;const[s,c]=A.createSignal(!1),[a,h]=A.createSignal(0),[g,E]=A.createSignal([]);let _=!1,p=!1,C=!1;const D={},I=()=>o.parentElement,F=()=>qu(I()),y=(L,H=!0)=>{var Z;c(!1),n.release(D),n.setActive(null),(Z=e.onTourActiveChange)==null||Z.call(e,!1);try{n.writeStatus(e.definition.pageId,L?"completed":"skipped")}catch(ee){i.warn("Could not save tour progress",ee)}_&&H&&u.notify(M1,{}),_=!1},R=()=>{n.setNeverShowAgain(!0),y(!1,!1)},x=(L=!1)=>{var Z;if(!F()||!n.claim(D))return;p=!1;const H=e.definition.steps.filter(ee=>{var he;return((he=ee.available)==null?void 0:he.call(ee))!==!1});if(!H.length){n.release(D);return}E(H),h(0),_=L;try{n.writeStatus(e.definition.pageId,"shown")}catch(ee){i.warn("Could not save tour progress",ee)}n.setActive(e.definition.pageId),(Z=e.onTourActiveChange)==null||Z.call(e,!0),c(!0)};return A.onMount(()=>{const L=I(),H=L.hasAttribute("tabindex");H||(L.tabIndex=-1),A.onCleanup(()=>{H||L.removeAttribute("tabindex")});const ee=o.ownerDocument.defaultView;if(!ee)return;const he=()=>Array.from(o.ownerDocument.querySelectorAll('[role="dialog"], [role="alertdialog"]')).some(G=>qu(G)&&!G.contains(I()));let ce=0;const ye=()=>{var G;if(!F()){ce=0,s()&&y(!1,!1);return}if(!(s()||he()||((G=t==null?void 0:t.isReady)==null?void 0:G.call(t))===!1)&&!(++ce<2)){if(n.consumeRequest(e.definition.pageId)&&(p=!0),p){x();return}if(!C&&!n.skipWelcome())try{n.readStatus(e.definition.pageId)||x(!0)}catch(Te){C=!0,i.warn("Could not read tour progress",Te)}}},xe=n.registerHost({page:e.definition.pageId,document:()=>o.ownerDocument,visible:F,start:()=>{p=!0,(s()||!he())&&x()},dismiss:()=>{s()&&y(!1,!1)}}),Ae=ee.setInterval(ye,250);A.onCleanup(()=>{var G;ee.clearInterval(Ae),xe(),n.release(D),n.activePage()===e.definition.pageId&&(n.setActive(null),(G=e.onTourActiveChange)==null||G.call(e,!1))})}),[(()=>{var L=F1(),H=o;return typeof H=="function"?l.use(H,L):o=L,l.effect(()=>l.setAttribute(L,"data-page-tour-host",e.definition.pageId)),L})(),l.createComponent(A.Show,{get when(){return s()},get children(){return l.createComponent(Pn.GuidedTour,{get document(){return o.ownerDocument},focusFallback:()=>F()?I():null,get steps(){return g()},get index(){return a()},target:()=>{var L;return((L=g()[a()])==null?void 0:L.target(I()))??null},onSelect:h,onClose:y,onNeverShowAgain:R})}})]}const U1={id:"notifications",pageId:"notifications",version:1,steps:[{id:"panel",title:"Notification Center",description:"Stay informed on database events, completed exports, query execution errors, and background system alerts.",target:ku('[data-tour-target="notifications-panel"]')},{id:"actions",title:"Timeline Actions & Filter Options",description:"Search notifications, filter by priority or notification source, pin important entries, and export history to CSV or JSON.",target:ku('[data-tour-target="notifications-actions"]')},{id:"settings",title:"Notification Settings & DND",description:"Open the notification menu to configure do-not-disturb, quiet hours, and notification delivery preferences.",target:ku('[data-tour-target="notifications-settings"]')},{id:"timeline",title:"Interactive Timeline Cards",description:"Click notification entries to expand stack traces, inspect vendor error codes, or navigate directly to affected queries.",target:ku('[data-tour-target="notifications-timeline"]')}]},B1=e=>Pt(e)&&e.priority!=="acknowledgment-required";function Gs(){const{stack:e}=Rn.useKitHost().notifications,[t,n]=Uu.createStore({items:[]});return A.onMount(()=>{const u=e.subscribe(r=>{n("items",Uu.reconcile(r.filter(B1),{key:"id",merge:!0}))});A.onCleanup(u)}),()=>t.items}function $s(e){const t=Rn.useKitHost(),n=qo(t,()=>ne.notificationSettings.get()),u=ju(t);return l.createComponent(A.For,{get each(){return e.items},children:r=>l.createComponent(Wu,{item:r,controller:n,shell:u,inCenter:!0})})}function H1(e,t,n,u,r=2){return e<=0||e>n?0:Math.min(t,r+Math.floor((n-e)/u))}function Jn(e,t){e(n=>{const u=new Set(n);return u.has(t)?u.delete(t):u.add(t),u})}const G1="vk_rightRail_HtYMh",$1="vk_notificationPanel_nrSZl",z1="vk_filterBar_WTQg3",V1="vk_notificationPanelHeader_aHtxT vk_headerRail_CLLzD",W1="vk_notificationPanelTitleWrap_cOfAP vk_titleWrapRail_b0Czp",q1="vk_notificationPanelTitle_9iMrQ vk_titleSmMargin_PPvAx",Y1="vk_notificationPanelActions_7fRj6 vk_actionsRail_QqUv8",K1="vk_notificationActionIcon_d5EzT",X1="vk_notificationTimeline_K-mMI",j1="vk_notificationEmpty_IU6kY",Z1="vk_notificationItem_tm8HP",Q1="vk_notificationGroup_4hkdy",J1="vk_notificationGroupToggle_Opmmd",eh="vk_notificationGroupBody_nlrmq",th="vk_notificationItemSelected_DspyF",nh="vk_notificationItemCheckbox_knWVX",uh="vk_bulkActionBar_6MHEY",rh="vk_bulkActionCount_Mb4tN",ih="vk_notificationItemTop_Mt0D7",oh="vk_notificationToneDot_Z-LOj",sh="vk_notificationToneInfo_rxKOj",ch="vk_notificationToneSuccess_Bxc9E",ah="vk_notificationToneWarning_uBK0T",lh="vk_notificationToneError_p9EYY",dh="vk_notificationItemTime_WT4cd",fh="vk_notificationItemCopyDone_P39uT",hh="vk_notificationItemMessage_G2mnV",gh="vk_notificationItemMeta_xdFUH",ph="vk_notificationSourceLabel_VvB0i",Eh="vk_priorityBadgeIcon_UaJX0",fe={rightRail:G1,notificationPanel:$1,filterBar:z1,notificationPanelHeader:V1,notificationPanelTitleWrap:W1,notificationPanelTitle:q1,notificationPanelActions:Y1,notificationActionIcon:K1,notificationTimeline:X1,notificationEmpty:j1,notificationItem:Z1,notificationGroup:Q1,notificationGroupToggle:J1,notificationGroupBody:eh,notificationItemSelected:th,notificationItemCheckbox:nh,bulkActionBar:uh,bulkActionCount:rh,notificationItemTop:ih,notificationToneDot:oh,notificationToneInfo:sh,notificationToneSuccess:ch,notificationToneWarning:ah,notificationToneError:lh,notificationItemTime:dh,notificationItemCopyDone:fh,notificationItemMessage:hh,notificationItemMeta:gh,notificationSourceLabel:ph,priorityBadgeIcon:Eh};var bh=l.template("<h3>"),_h=l.template("<div data-tour-target=notifications-actions>"),mh=l.template("<div role=toolbar><span>"),Ah=l.template("<span>📌 "),Th=l.template("<aside tabindex=-1><section data-tour-target=notifications-panel>"),Sh=l.template("<p>"),fo=l.template("<span>"),Ch=l.template("<article><div><span></span><time></time></div><p></p><div><span>");function Nh(e){return new Intl.DateTimeFormat($n.systemFormatLocale(),{hour:"2-digit",minute:"2-digit"}).format(new Date(e))}function Rh(e){return new Intl.DateTimeFormat($n.systemFormatLocale(),{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(e))}function ho(e){switch(e){case"success":return fe.notificationToneSuccess;case"error":return fe.notificationToneError;case"warning":return fe.notificationToneWarning;default:return fe.notificationToneInfo}}const vu=["error","warning","info","success"],Ih=189,Oh=27;function yh(e){const t=po.useHostDocument(),n=Rn.useKitHost(),{notifications:u}=n,r=u.timeline,i=ju(n),o=n.log.withTag("NotificationPanel"),s=N=>ot.openExternalUrl(n.desktop,o,N),c=N=>Hu(n.vendorErrors,N),[a,h]=A.createSignal(null),[g,E]=A.createSignal(0),[_,p]=A.createSignal(""),[C,D]=A.createSignal(null),[I,F]=A.createSignal(new Set),[y,R]=A.createSignal(!1),[x,L]=A.createSignal(new Set),[H,Z]=A.createSignal(new Set),[ee,he]=A.createSignal(new Set),[ce,ye]=A.createSignal(!1),[xe,Ae]=A.createSignal(0);let G=null,Te;const Re=Yr.useDesktopContextMenu(),U=Gs(),te=A.createMemo(()=>Uo(_(),ce())),X=A.createMemo(()=>Bo(e.notificationTimeline(),{tones:I(),sources:H(),priorities:ee(),dateBounds:C(),searchMatcher:te()})),oe=A.createMemo(()=>{const N=new Set;for(const q of e.notificationTimeline())N.add(q.source);return Array.from(N).sort()}),Ie=A.createMemo(()=>X().filter(N=>N.pinned===!0)),[Ue,Y]=A.createSignal(0);ne.useSettingsSubscription(ne.notificationSettings,()=>{Y(N=>N+1)});const[ae,W]=A.createSignal(new Set),Le=A.createMemo(()=>{Ue();const N=ne.notificationSettings.get();return N.timelineGroupingEnabled?Go(X(),N.timelineGroupBy):X().map(q=>({type:"entry",id:q.id,entry:q}))}),P=N=>{Jn(W,N)},ue=()=>_().trim()!==""||C()!==null||I().size>0||H().size>0||ee().size>0,Ee=()=>{p(""),D(null),F(new Set),Z(new Set),he(new Set)},we=N=>{Jn(Z,N)},se=N=>{Jn(he,N)},Ve=["urgent","acknowledgment-required","default","optional","silent"],ct=N=>{if(N.preventDefault(),N.stopPropagation(),Re.state()!==null){Re.close();return}const f=N.currentTarget.getBoundingClientRect(),m=oe(),O={urgent:S.t("Urgent"),"acknowledgment-required":S.t("Acknowledgment required"),default:S.t("Default"),optional:S.t("Optional"),silent:S.t("Silent")};Re.open(f.left,f.bottom+4,[{label:S.t("Use regex in search"),checked:()=>ce(),keepOpenOnSelect:!0,onSelect:()=>{ye(K=>!K)}},{type:"separator"},{label:S.t("Filter by priority"),submenu:Ve.map(K=>({label:O[K],checked:()=>ee().has(K),keepOpenOnSelect:!0,onSelect:()=>se(K)}))},...m.length>0?[{label:S.t("Filter by source"),submenu:m.map(K=>({label:En(K).label,checked:()=>H().has(K),keepOpenOnSelect:!0,onSelect:()=>we(K)}))}]:[],{type:"separator"},{label:S.t("Clear advanced filters"),disabled:H().size===0&&ee().size===0,onSelect:()=>{Z(new Set),he(new Set)}}])},Qe=N=>{Jn(F,N)},T=()=>{const N=I();return N.size===0||N.size===vu.length?S.t("All tones"):Array.from(N).join(", ")},z=N=>{if(N.preventDefault(),N.stopPropagation(),Re.state()!==null){Re.close();return}const f=N.currentTarget.getBoundingClientRect();Re.open(f.left,f.bottom+4,[...vu.map(m=>({label:S.t(Fs[m]),checked:()=>I().has(m),keepOpenOnSelect:!0,onSelect:()=>Qe(m)})),{type:"separator"},...I().size===vu.length?[{label:S.t("Select none"),onSelect:()=>{F(new Set)}}]:[{label:S.t("Select all"),onSelect:()=>{F(new Set(vu))}}]])};A.onMount(()=>{const N=r.subscribeUnread(E);A.onCleanup(N)});const V=()=>{g()>0&&r.markSeen()},_e=N=>u.dismissEntry(N),me=N=>{const q={source:_o(N.source)?N.source:"general",priority:"urgent",recordTimeline:!1},f=N.tone;f==="error"?u.notify(Bc,{timelineMessage:N.message,options:q}):f==="warning"?u.notify(Hc,{timelineMessage:N.message,options:q}):f==="success"?u.notify(Gc,{timelineMessage:N.message,options:q}):u.notify($c,{timelineMessage:N.message,options:q})},Be=N=>{const q=c(N);q&&s(q.helpers.docsUrl(q.code))},St=(N,q)=>{N.preventDefault(),N.stopPropagation();const f=c(q),m=En(q.source),O=en(q.source);Re.open(N.clientX,N.clientY,[{label:S.t("Search on Google"),onSelect:()=>{s(ot.getGoogleSearchUrl(q.message))}},...f?[{label:S.t("Open {vendor} ({code})",{vendor:f.helpers.docsLinkLabel,code:f.helpers.formatCode(f.code)}),onSelect:()=>{s(f.helpers.docsUrl(f.code))}},{label:S.t("Copy error code"),onSelect:()=>{var K;(K=navigator.clipboard)==null||K.writeText(f.helpers.formatCode(f.code)).catch(be=>{o.warn("Clipboard write failed:",be)})}}]:[],{type:"separator"},{label:O?S.t('Unmute "{source}"',{source:m.label}):S.t('Mute "{source}"',{source:m.label}),onSelect:()=>i.setSourceMuted(q.source,!O)},{type:"separator"},{label:S.t("Copy log message"),onSelect:()=>{wt(q)}},{label:q.pinned?S.t("Unpin notification"):S.t("Pin notification"),onSelect:()=>r.togglePin(q.id)},{label:S.t("Remove notification"),danger:!0,onSelect:()=>{_e(q.id)}},...m?[{label:S.t('Remove all from "{source}"',{source:m.label}),danger:!0,onSelect:()=>r.dismissBySource(q.source)}]:[]])},ft=()=>r.clear(),ht=N=>{Jn(L,N)},Ct=()=>{R(!0),L(new Set)},Je=()=>{R(!1),L(new Set)},Nt=()=>{L(new Set(X().map(N=>N.id)))},et=()=>x().size,vt=()=>{const N=x();return X().filter(q=>N.has(q.id)).map(q=>q.id)},Lt=()=>{const N=vt();N.length!==0&&(r.dismissMany(N),Je())},tn=N=>{const q=x(),f=e.notificationTimeline().filter(m=>q.has(m.id));for(const m of f)(m.pinned??!1)!==N&&r.togglePin(m.id)},Xt=async N=>{const q=X();if(q.length===0)return;const f=n.desktop.fs,O=`notifications-${new Date().toISOString().replace(/[:T]/g,"-").slice(0,19)}.${N}`,K=N==="csv"?[{name:"CSV",extensions:["csv"]}]:[{name:"JSON",extensions:["json"]}];try{const be=await f.showSaveDialog({title:S.t("Export notifications"),defaultPath:O,filters:K});if(!(be!=null&&be.filePath))return;const Oe=N==="csv"?zo(q):Vo(q);await f.writeFile(be.filePath,Oe),u.notify(zc,{entryCount:q.length})}catch(be){u.notify(Vc,{cause:be})}},nn=()=>n.openNotificationSettings(),un=N=>{if(N.preventDefault(),N.stopPropagation(),Re.state()!==null){Re.close();return}const f=N.currentTarget.getBoundingClientRect(),m=X().length===0;Re.open(f.left,f.bottom+4,[{label:S.t("Export"),disabled:m,submenu:[{label:S.t("Export as CSV"),onSelect:()=>{Xt("csv")}},{label:S.t("Export as JSON"),onSelect:()=>{Xt("json")}}]},{type:"separator"},{label:S.t("Notification settings…"),onSelect:nn}])},wt=async N=>{var f;const q=N.message.trim();if(q)try{if((f=navigator.clipboard)!=null&&f.writeText)await navigator.clipboard.writeText(q);else{const m=t,O=at.createElement("textarea");O.value=q,O.setAttribute("readonly","true"),O.style.position="fixed",O.style.opacity="0",m.body.appendChild(O),O.select(),m.execCommand("copy"),m.body.removeChild(O)}h(N.id),G!==null&&window.clearTimeout(G),G=window.setTimeout(()=>{h(m=>m===N.id?null:m),G=null},1400)}catch(m){o.warn("Timeline entry could not be copied:",m)}};A.onCleanup(()=>{G!==null&&window.clearTimeout(G)}),A.onMount(()=>{if(!Te)return;const N=new ResizeObserver(q=>{for(const f of q)Ae(f.contentRect.width)});N.observe(Te),A.onCleanup(()=>N.disconnect())});const Ht=A.createMemo(()=>[{id:"select",icon:()=>l.createComponent(ge.VpSquareCheck,{get class(){return fe.notificationActionIcon}}),label:()=>S.t("Select multiple notifications"),disabled:()=>X().length===0,onSelect:Ct},{id:"mark-read",icon:()=>l.createComponent(ge.VpMailOpened,{get class(){return fe.notificationActionIcon}}),label:()=>S.t("Mark all as read"),disabled:()=>g()===0,onSelect:()=>r.markSeen()},{id:"clear",icon:()=>l.createComponent(ge.VpTrash,{get class(){return fe.notificationActionIcon}}),label:()=>S.t("Clear all notifications"),disabled:()=>e.notificationTimeline().length===0,onSelect:ft}]),jt=A.createMemo(()=>H1(xe(),Ht().length,Ih,Oh)),rn=A.createMemo(()=>{const N=Ht();return N.slice(0,N.length-jt())}),on=A.createMemo(()=>{const N=Ht();return N.slice(N.length-jt())}),mn=N=>{if(N.preventDefault(),N.stopPropagation(),Re.state()!==null){Re.close();return}Re.openWithPlacement(Ps(N.currentTarget,{horizontal:"right"}),on().map(q=>({label:q.label(),icon:q.icon(),disabled:q.disabled(),onSelect:q.onSelect})))};return(()=>{var N=Th(),q=N.firstChild;return N.$$keydown=V,N.$$click=V,l.insert(q,l.createComponent(Pn.Panel.Header,{get class(){return fe.notificationPanelHeader},ref:f=>Te=f,get children(){return[l.createComponent(qr.PressableSurface,{type:"button",get class(){return fe.notificationPanelTitleWrap},"data-tour-target":"notifications-settings",onClick:un,ref:f=>f.setAttribute("data-desktop-menu-depth","trigger"),get title(){return S.t("Notification menu")},"aria-haspopup":"menu",get children(){return[(()=>{var f=bh();return l.insert(f,()=>S.t("Notifications")),l.effect(()=>l.className(f,fe.notificationPanelTitle)),f})(),l.createComponent(A.Show,{get when(){return g()>0},get children(){return l.createComponent(at.Badge,{tone:"danger",size:"sm",get tooltip(){return S.t("{count} unread",{count:g()})},get children(){return l.memo(()=>g()>99)()?"99+":g()}})}})]}}),(()=>{var f=_h();return l.insert(f,l.createComponent(A.Show,{get when(){return!y()},get fallback(){return l.createComponent($e.Button,{variant:"ghost",size:"sm",onClick:Je,get title(){return S.t("Exit selection mode")},get children(){return S.t("Cancel")}})},get children(){return[l.createComponent(A.For,{get each(){return rn()},children:m=>l.createComponent($e.Button,{variant:"ghost",size:"sm",iconOnly:!0,get onClick(){return m.onSelect},get disabled(){return m.disabled()},get title(){return m.label()},get"aria-label"(){return m.label()},get children(){return m.icon()}})}),l.createComponent(A.Show,{get when(){return on().length>0},get children(){return l.createComponent($e.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:mn,ref:m=>m.setAttribute("data-desktop-menu-depth","trigger"),get title(){return S.t("More actions")},get"aria-label"(){return S.t("More actions")},get children(){return l.createComponent(ge.VpDots,{get class(){return fe.notificationActionIcon}})}})}})]}})),l.effect(()=>l.className(f,fe.notificationPanelActions)),f})()]}}),null),l.insert(q,l.createComponent(A.Show,{get when(){return y()},get children(){var f=mh(),m=f.firstChild;return l.insert(m,()=>S.t("{count} selected",{count:et()})),l.insert(f,l.createComponent($e.Button,{variant:"ghost",size:"sm",onClick:Nt,get disabled(){return X().length===0||et()===X().length},get title(){return S.t("Select all visible")},get children(){return S.t("Select all")}}),null),l.insert(f,l.createComponent($e.Button,{variant:"ghost",size:"sm",onClick:()=>tn(!0),get disabled(){return et()===0},get title(){return S.t("Pin selected")},get children(){return S.t("Pin")}}),null),l.insert(f,l.createComponent($e.Button,{variant:"ghost",size:"sm",onClick:()=>tn(!1),get disabled(){return et()===0},get title(){return S.t("Unpin selected")},get children(){return S.t("Unpin")}}),null),l.insert(f,l.createComponent($e.Button,{variant:"ghost",size:"sm",onClick:Lt,get disabled(){return et()===0},get title(){return S.t("Delete selected")},get leadingIcon(){return l.createComponent(ge.VpTrash,{get class(){return fe.notificationActionIcon}})},get children(){return S.t("Delete")}}),null),l.effect(O=>{var K=fe.bulkActionBar,be=S.t("Bulk actions"),Oe=fe.bulkActionCount;return K!==O.e&&l.className(f,O.e=K),be!==O.t&&l.setAttribute(f,"aria-label",O.t=be),Oe!==O.a&&l.className(m,O.a=Oe),O},{e:void 0,t:void 0,a:void 0}),f}}),null),l.insert(q,l.createComponent(bo,{get class(){return fe.filterBar},get searchValue(){return _()},onSearchInput:p,get searchPlaceholder(){return S.t("Search notifications…")},get dateRange(){return C()},onDateRangeChange:D,dateRangeAlign:"end",get children(){return[l.createComponent($e.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return I().size>0},onClick:z,ref:f=>f.setAttribute("data-desktop-menu-depth","trigger"),get title(){return l.memo(()=>I().size===0)()?S.t("Filter by tone"):S.t("Tone filter: {tones}",{tones:T()})},get children(){return l.createComponent(ge.VpFilter,{get class(){return fe.notificationActionIcon}})}}),l.createComponent($e.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return H().size>0||ee().size>0||ce()},onClick:ct,ref:f=>f.setAttribute("data-desktop-menu-depth","trigger"),get title(){return S.t("Advanced filters (source, priority, regex)")},get children(){return l.createComponent(ge.VpAdjustments,{get class(){return fe.notificationActionIcon}})}}),l.createComponent(A.Show,{get when(){return ue()},get children(){return l.createComponent($e.Button,{variant:"ghost",size:"sm",onClick:Ee,get title(){return S.t("Clear filters")},get children(){return S.t("Clear")}})}})]}}),null),l.insert(q,l.createComponent(Yu.OverlayScrollArea,{get viewportClass(){return fe.notificationTimeline},"data-tour-target":"notifications-timeline",get children(){return[l.createComponent($s,{get items(){return U()}}),l.createComponent(A.Show,{get when(){return X().length>0},get fallback(){return l.createComponent(A.Show,{get when(){return ue()||U().length===0},get children(){var f=Sh();return l.insert(f,(()=>{var m=l.memo(()=>!!ue());return()=>m()?S.t("No notifications match the current filter."):S.t("No notifications yet.")})()),l.effect(()=>l.className(f,fe.notificationEmpty)),f}})},get children(){return[l.createComponent(A.Show,{get when(){return Ie().length>0},get children(){return l.createComponent(Pn.Panel.Header,{get class(){return fe.notificationItemTop},get children(){var f=Ah();return f.firstChild,l.insert(f,()=>S.t("Pinned ({count})",{count:Ie().length}),null),l.effect(()=>l.className(f,fe.notificationSourceLabel)),f}})}}),l.createComponent(A.For,{get each(){return Le()},children:f=>{if(f.type==="group"&&f.groupItems){const m=()=>ae().has(f.id);return l.createComponent(Pn.Disclosure,{get class(){return fe.notificationGroup},get toggleClass(){return fe.notificationGroupToggle},get open(){return m()},onToggle:()=>P(f.id),get bodyClass(){return fe.notificationGroupBody},get title(){return[(()=>{var O=fo();return l.effect(()=>l.className(O,`${fe.notificationToneDot} ${ho(f.groupTone??"info")}`)),O})(),(()=>{var O=fo();return l.insert(O,()=>S.t('{count} from "{source}"',{count:f.groupCount??0,source:En(f.groupSource??"").label})),l.effect(()=>l.className(O,fe.notificationItemMessage)),O})()]},get children(){return l.createComponent(A.For,{get each(){return f.groupItems},children:O=>sn(O)})}})}return f.type==="entry"&&f.entry?sn(f.entry):null}})]}})]}}),null),l.insert(q,l.createComponent(P1,{definition:U1}),null),l.effect(f=>{var m=fe.rightRail,O=fe.notificationPanel;return m!==f.e&&l.className(N,f.e=m),O!==f.t&&l.className(q,f.t=O),f},{e:void 0,t:void 0}),N})();function sn(N){const q=()=>c(N);return(()=>{var f=Ch(),m=f.firstChild,O=m.firstChild,K=O.nextSibling,be=m.nextSibling,Oe=be.nextSibling,j=Oe.firstChild;return f.$$contextmenu=M=>{St(M,N)},l.insert(m,l.createComponent(A.Show,{get when(){return y()},get children(){return l.createComponent(Wr.Checkbox,{get class(){return fe.notificationItemCheckbox},get checked(){return x().has(N.id)},onChange:()=>ht(N.id),get ariaLabel(){return S.t("Select notification")}})}}),O),l.insert(K,()=>Nh(N.createdAt)),l.insert(m,l.createComponent(A.Show,{keyed:!0,get when(){return q()},children:M=>l.createComponent($e.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>{Be(N)},get title(){return S.t("Open {vendor} ({code})",{vendor:M.helpers.docsLinkLabel,code:M.helpers.formatCode(M.code)})},get"aria-label"(){return S.t("Open {vendor} ({code})",{vendor:M.helpers.docsLinkLabel,code:M.helpers.formatCode(M.code)})},get leadingIcon(){return l.createComponent(ge.VpBook,{get class(){return fe.notificationActionIcon}})}})}),null),l.insert(m,l.createComponent($e.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>me(N),get title(){return S.t("Show as toast again")},get"aria-label"(){return S.t("Show as toast again")},get leadingIcon(){return l.createComponent(ge.VpBellRinging,{get class(){return fe.notificationActionIcon}})}}),null),l.insert(m,l.createComponent($e.Button,{variant:"ghost",size:"2xs",iconOnly:!0,get class(){return l.memo(()=>a()===N.id)()?fe.notificationItemCopyDone:void 0},onClick:()=>{wt(N)},get title(){return l.memo(()=>a()===N.id)()?S.t("Copied"):S.t("Copy log message")},get"aria-label"(){return l.memo(()=>a()===N.id)()?S.t("Copied"):S.t("Copy log message")},get children(){return l.createComponent(A.Show,{get when(){return a()===N.id},get fallback(){return l.createComponent(ge.VpCopy,{get class(){return fe.notificationActionIcon}})},get children(){return l.createComponent(ge.VpCheck,{get class(){return fe.notificationActionIcon}})}})}}),null),l.insert(m,l.createComponent($e.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>{_e(N.id)},get title(){return S.t("Remove notification")},get"aria-label"(){return S.t("Remove notification")},get leadingIcon(){return l.createComponent(ge.VpMinus,{get class(){return fe.notificationActionIcon}})}}),null),l.insert(be,()=>N.message),l.insert(j,()=>En(N.source).label),l.insert(Oe,l.createComponent(A.Show,{get when(){return N.priority==="urgent"},get children(){return l.createComponent(at.Badge,{tone:"danger",size:"sm",children:"urgent"})}}),null),l.insert(Oe,l.createComponent(A.Show,{get when(){return N.priority==="silent"},get children(){return l.createComponent(at.Badge,{tone:"neutral",size:"sm",get icon(){return l.createComponent(ge.VpBellOff,{get class(){return fe.priorityBadgeIcon}})},get tooltip(){return S.t("Silent — timeline only")},children:"silent"})}}),null),l.insert(Oe,l.createComponent(A.Show,{get when(){return en(N.source)},get children(){return l.createComponent(at.Badge,{tone:"warning",size:"sm",get tooltip(){return S.t("Source muted")},children:"muted"})}}),null),l.effect(M=>{var ie=`${fe.notificationItem} ${y()&&x().has(N.id)?fe.notificationItemSelected:""}`,ke=fe.notificationItemTop,Fe=`${fe.notificationToneDot} ${ho(N.tone)}`,Rt=fe.notificationItemTime,Gt=new Date(N.createdAt).toISOString(),cn=Rh(N.createdAt),An=fe.notificationItemMessage,$t=fe.notificationItemMeta,Tn=fe.notificationSourceLabel,an=En(N.source).description;return ie!==M.e&&l.className(f,M.e=ie),ke!==M.t&&l.className(m,M.t=ke),Fe!==M.a&&l.className(O,M.a=Fe),Rt!==M.o&&l.className(K,M.o=Rt),Gt!==M.i&&l.setAttribute(K,"datetime",M.i=Gt),cn!==M.n&&l.setAttribute(K,"title",M.n=cn),An!==M.s&&l.className(be,M.s=An),$t!==M.h&&l.className(Oe,M.h=$t),Tn!==M.r&&l.className(j,M.r=Tn),an!==M.d&&l.setAttribute(j,"title",M.d=an),M},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0}),f})()}}l.delegateEvents(["click","keydown","contextmenu"]);const xh="vk_center_5Vlx7",Dh="vk_header_vo883",kh="vk_title_JpYEU",vh="vk_actions_ErJgC",Lh="vk_actionIcon_-JWZ1",wh="vk_list_YLy-l",Mh="vk_card_-fwSa",Fh="vk_cardIcon_RBj-W",Ph="vk_cardBody_z8pxK",Uh="vk_cardMessage_aN-yw",Bh="vk_cardMeta_XQ3my",Hh="vk_cardButtons_1PXZE",Gh="vk_cardSource_Z8c0M",$h="vk_cardTime_OXbCq",zh="vk_cardActions_QOc1i",Ke={center:xh,header:Dh,title:kh,actions:vh,actionIcon:Lh,list:wh,card:Mh,cardIcon:Fh,cardBody:Ph,cardMessage:Uh,cardMeta:Bh,cardButtons:Hh,cardSource:Gh,cardTime:$h,cardActions:zh};var Vh=l.template("<h3>"),Wh=l.template("<div>"),qh=l.template("<section data-notification-center>"),Yh=l.template("<div data-notification-card-actions>"),Kh=l.template("<article><span aria-hidden=true></span><div><p></p><div><span></span><time></time></div></div><div>");const Xh={info:ge.VpInfo,warning:ge.VpWarning,error:ge.VpError,success:ge.VpPass};function jh(e){return new Intl.DateTimeFormat($n.systemFormatLocale(),{hour:"2-digit",minute:"2-digit"}).format(new Date(e))}function Zh(e){return new Intl.DateTimeFormat($n.systemFormatLocale(),{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(e))}function zs(e){const t=Rn.useKitHost(),{notifications:n}=t,u=ju(t),r=t.log.withTag("NotificationsCenter"),i=y=>ot.openExternalUrl(t.desktop,r,y),[o,s]=A.createSignal([]),[c,a]=A.createSignal(ne.notificationSettings.get().doNotDisturb),h=Yr.useDesktopContextMenu(),g=Gs();A.onMount(()=>{const y=n.timeline.subscribe(s);A.onCleanup(y)}),ne.useSettingsSubscription(ne.notificationSettings,()=>{a(ne.notificationSettings.get().doNotDisturb)});const E=A.createMemo(()=>[...o()].sort((y,R)=>R.createdAt-y.createdAt)),_=y=>Xh[y],p=()=>{const y=ne.notificationSettings.get();ne.notificationSettings.update({...y,doNotDisturb:!y.doNotDisturb}).catch(R=>{n.notify(Po,{cause:R})})},C=()=>t.openNotificationSettings(),D=y=>{const R=[...y.actions??[]],x=Hu(t.vendorErrors,y);if(x){const L=x.helpers.docsUrl(x.code);if(L){const H=`${x.helpers.formatCode(x.code)} ${x.helpers.docsLinkLabel}`;R.some(Z=>Z.label===H)||R.push({label:H,onClick:()=>i(L)})}}return R},I=y=>{var x;const R=y.message.trim();R&&((x=navigator.clipboard)==null||x.writeText(R).catch(L=>{r.warn("notification message could not be copied",L)}))},F=(y,R,x)=>{if(h.state()!==null){h.close();return}const L=En(x.source),H=en(L.id),Z=Hu(t.vendorErrors,x);h.open(y,R,[{label:S.t("Copy log message"),onSelect:()=>I(x)},...Z?[{label:S.t("Open {vendor} ({code})",{vendor:Z.helpers.docsLinkLabel,code:Z.helpers.formatCode(Z.code)}),onSelect:()=>i(Z.helpers.docsUrl(Z.code))}]:[],{type:"separator"},{label:H?S.t('Unmute "{source}"',{source:L.label}):S.t('Mute "{source}"',{source:L.label}),onSelect:()=>u.setSourceMuted(L.id,!H)},{type:"separator"},{label:S.t("Remove notification"),danger:!0,onSelect:()=>n.dismissEntry(x.id)},{label:S.t('Remove all from "{source}"',{source:L.label}),danger:!0,onSelect:()=>n.timeline.dismissBySource(L.id)}])};return(()=>{var y=qh();return l.insert(y,l.createComponent(Pn.Panel.Header,{get class(){return Ke.header},get children(){return[(()=>{var R=Vh();return l.insert(R,()=>S.t("Notifications"),null),l.insert(R,l.createComponent(A.Show,{get when(){return E().length>0},get children(){return` (${E().length})`}}),null),l.effect(()=>l.className(R,Ke.title)),R})(),(()=>{var R=Wh();return l.insert(R,l.createComponent($e.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:()=>n.timeline.clear(),get disabled(){return E().length===0},get title(){return S.t("Clear all notifications")},get"aria-label"(){return S.t("Clear all notifications")},get children(){return l.createComponent(ge.VpTrash,{get class(){return Ke.actionIcon}})}}),null),l.insert(R,l.createComponent($e.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return c()},onClick:p,get title(){return l.memo(()=>!!c())()?S.t("Disable Do Not Disturb"):S.t("Enable Do Not Disturb")},get"aria-label"(){return l.memo(()=>!!c())()?S.t("Disable Do Not Disturb"):S.t("Enable Do Not Disturb")},get children(){return l.createComponent(A.Show,{get when(){return c()},get fallback(){return l.createComponent(ge.VpBell,{get class(){return Ke.actionIcon}})},get children(){return l.createComponent(ge.VpBellOff,{get class(){return Ke.actionIcon}})}})}}),null),l.insert(R,l.createComponent($e.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:C,get title(){return S.t("Notification settings")},get"aria-label"(){return S.t("Notification settings")},get children(){return l.createComponent(ge.VpGear,{get class(){return Ke.actionIcon}})}}),null),l.insert(R,l.createComponent($e.Button,{variant:"ghost",size:"sm",iconOnly:!0,get onClick(){return e.onHide},get title(){return S.t("Hide notifications")},get"aria-label"(){return S.t("Hide notifications")},get children(){return l.createComponent(ge.VpChevronDown,{get class(){return Ke.actionIcon}})}}),null),l.effect(()=>l.className(R,Ke.actions)),R})()]}}),null),l.insert(y,l.createComponent(A.Show,{get when(){return g().length>0||E().length>0},get fallback(){return l.createComponent(js.EmptyState,{size:"sm",get title(){return S.t("No new notifications")}})},get children(){return l.createComponent(Yu.OverlayScrollArea,{get viewportClass(){return Ke.list},get children(){return[l.createComponent($s,{get items(){return g()}}),l.createComponent(A.For,{get each(){return E()},children:R=>{const x=En(R.source),L=D(R);return(()=>{var H=Kh(),Z=H.firstChild,ee=Z.nextSibling,he=ee.firstChild,ce=he.nextSibling,ye=ce.firstChild,xe=ye.nextSibling,Ae=ee.nextSibling;return H.$$contextmenu=G=>{G.preventDefault(),F(G.clientX,G.clientY,R)},l.insert(Z,l.createComponent(l.Dynamic,{get component(){return _(R.tone)}})),l.insert(he,()=>R.message),l.insert(ye,()=>S.t("Source: {source}",{source:x.label})),l.insert(xe,()=>jh(R.createdAt)),l.insert(ee,l.createComponent(A.Show,{get when(){return L.length>0},get children(){var G=Yh();return l.insert(G,l.createComponent(A.For,{each:L,children:Te=>l.createComponent($e.Button,{get variant(){return Te.primary?"primary":"secondary"},size:"sm",onClick:()=>Te.onClick(),get children(){return Te.label}})})),l.effect(()=>l.className(G,Ke.cardButtons)),G}}),null),l.insert(Ae,l.createComponent($e.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:G=>{const Te=G.currentTarget.getBoundingClientRect();F(Te.left,Te.bottom+4,R)},get title(){return S.t("More actions")},get"aria-label"(){return S.t("More actions")},get children(){return l.createComponent(ge.VpGear,{get class(){return Ke.actionIcon}})}}),null),l.insert(Ae,l.createComponent($e.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:()=>n.dismissEntry(R.id),get title(){return S.t("Remove notification")},get"aria-label"(){return S.t("Remove notification")},get children(){return l.createComponent(ge.VpTreeClose,{get class(){return Ke.actionIcon}})}}),null),l.effect(G=>{var Te=Ke.card,Re=Ke.cardIcon,U=R.tone,te=Ke.cardBody,X=Ke.cardMessage,oe=Ke.cardMeta,Ie=Ke.cardSource,Ue=x.description,Y=Ke.cardTime,ae=new Date(R.createdAt).toISOString(),W=Zh(R.createdAt),Le=Ke.cardActions;return Te!==G.e&&l.className(H,G.e=Te),Re!==G.t&&l.className(Z,G.t=Re),U!==G.a&&l.setAttribute(Z,"data-tone",G.a=U),te!==G.o&&l.className(ee,G.o=te),X!==G.i&&l.className(he,G.i=X),oe!==G.n&&l.className(ce,G.n=oe),Ie!==G.s&&l.className(ye,G.s=Ie),Ue!==G.h&&l.setAttribute(ye,"title",G.h=Ue),Y!==G.r&&l.className(xe,G.r=Y),ae!==G.d&&l.setAttribute(xe,"datetime",G.d=ae),W!==G.l&&l.setAttribute(xe,"title",G.l=W),Le!==G.u&&l.className(Ae,G.u=Le),G},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0}),H})()}})]}})}}),null),l.effect(()=>l.className(y,Ke.center)),y})()}l.delegateEvents(["contextmenu"]);const Qh="vk_bell_tx9ag vk_buttonReset_3WpyU",Jh="vk_bellIcon_w6Lmy",eg="vk_badge_2L8Eg",tg="vk_progressDot_yphKG",ng="vk_centerPopover_48x5p",wn={bell:Qh,bellIcon:Jh,badge:eg,progressDot:tg,centerPopover:ng};var ug=l.template("<span>"),rg=l.template("<span aria-hidden=true>");function ig(e){const{timeline:t,stack:n}=Rn.useKitHost().notifications,[u,r]=A.createSignal(!1),i=()=>e.open??u(),[o,s]=A.createSignal(0),[c,a]=A.createSignal(ne.notificationSettings.get().doNotDisturb),[h,g]=A.createSignal(0);let E;A.onMount(()=>{const I=t.subscribeUnread(s),F=n.subscribe(y=>g(Ao(y).length));A.onCleanup(()=>{I(),F()})}),ne.useSettingsSubscription(ne.notificationSettings,()=>{a(ne.notificationSettings.get().doNotDisturb)});const _=I=>{var F;I!==i()&&(e.open===void 0&&r(I),(F=e.onOpenChange)==null||F.call(e,I))};A.createEffect(A.on(i,I=>{I&&t.markSeen()})),A.onCleanup(()=>_(!1));const p=()=>i()?0:h(),C=()=>{const I=p();return c()?I>0?S.t("Notifications (Do Not Disturb on, {count} in progress)",{count:I}):S.t("Notifications (Do Not Disturb on)"):i()?S.t("Hide notifications"):I>0?S.t("Notifications ({count} in progress)",{count:I}):S.t("Show notifications")},D=()=>o()>99?"99+":String(o());return[l.createComponent(qr.PressableSurface,{ref(I){var F=E;typeof F=="function"?F(I):E=I},type:"button",get class(){return wn.bell},"data-status-bar-bell":!0,get"data-open"(){return i()?"true":"false"},onClick:()=>_(!i()),get title(){return C()},get"aria-label"(){return C()},"aria-haspopup":"dialog",get"aria-expanded"(){return i()},get children(){return[l.createComponent(A.Show,{get when(){return c()},get fallback(){return l.createComponent(ge.VpBell,{get class(){return wn.bellIcon}})},get children(){return l.createComponent(ge.VpBellOff,{get class(){return wn.bellIcon}})}}),l.createComponent(A.Show,{get when(){return o()>0},get fallback(){return l.createComponent(A.Show,{get when(){return p()>0},get children(){var I=rg();return l.effect(()=>l.className(I,wn.progressDot)),I}})},get children(){var I=ug();return l.insert(I,D),l.effect(()=>l.className(I,wn.badge)),I}})]}}),l.createComponent(Ys.Popover,{get open(){return i()},onClose:()=>_(!1),anchor:()=>E,placement:"top-end",gap:6,role:"dialog",get ariaLabel(){return S.t("Notifications")},get class(){return wn.centerPopover},get children(){return l.createComponent(zs,{onHide:()=>_(!1)})}})]}exports.ACCEPT_PRIMARY_ACTION_NOTIFICATION=zr;exports.CLEAR_NOTIFICATION=Vr;exports.HIDE_NOTIFICATION_TOASTS=Fu;exports.LogFilterBar=bo;exports.NOTIFICATION_SOURCES=Xu;exports.NOTIFICATION_SOURCE_IDS=Kr;exports.NO_NOTIFICATION_OVERLAY=Bs;exports.NotificationHost=w1;exports.NotificationItem=Wu;exports.NotificationPanel=yh;exports.NotificationService=Yc;exports.NotificationTimeline=To;exports.NotificationsCenter=zs;exports.SEVERITY_ORDER=Fr;exports.SEVERITY_TONES=So;exports.StatusBarNotificationBell=ig;exports.appWindowNotificationOverlay=Hs;exports.applyNotificationRules=Zr;exports.clearCompiledRuleRegexCache=Io;exports.compileNotificationSearchMatcher=Uo;exports.createNativeNotificationEngine=jr;exports.createNotificationPreviewRuntime=ha;exports.decideFilter=ou;exports.deleteWebhookUrl=dc;exports.deriveImplicitRemindKey=pu;exports.dismissKey=ko;exports.dismissableToastIds=Ho;exports.entryVendorMatch=Hu;exports.exportTimelineAsCsv=zo;exports.exportTimelineAsJson=Vo;exports.filterNotificationTimeline=Bo;exports.getSmtpPass=No;exports.getWebhookUrl=Ro;exports.groupTimelineEntries=Go;exports.hiddenRunningProgress=Ao;exports.isInQuietHours=iu;exports.isKeyDismissed=Qr;exports.isKeyRemindSuppressed=Gu;exports.isNotificationSourceId=_o;exports.isNotificationSticky=gu;exports.isOnToastStack=Xr;exports.isProgressRunning=Pt;exports.isSourceMuted=en;exports.isSpamDropHandle=mo;exports.listNotificationSources=jc;exports.nextQuietHoursStart=Oo;exports.pruneOrphanWebhookSecrets=fc;exports.registerFenceAliases=hf;exports.registerNotificationCommands=Us;exports.remindLater=xo;exports.resolveCatalogPreviewPriority=ti;exports.resolveNotificationDuration=hu;exports.resolveNotificationSource=En;exports.resolveSeverityTone=Co;exports.restoreAllKeys=yc;exports.restoreKey=Oc;exports.setSmtpPass=ac;exports.setSourceMuted=Do;exports.setWebhookUrl=lc;exports.shouldFireOsNative=yo;exports.toTimelineActions=tu;exports.unmuteAllSources=xc;
|