@pstdio/ui 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/EquationComponent-DeDYHvqY.js +62 -0
- package/dist/EquationComponent-DeDYHvqY.js.map +1 -0
- package/dist/chat-ui.js +347 -0
- package/dist/chat-ui.js.map +1 -0
- package/dist/components/button.stories.d.ts +18 -0
- package/dist/components/chat-ui/components/ai-conversation.d.ts +1161 -0
- package/dist/components/chat-ui/index.d.ts +10 -0
- package/dist/components/chat-ui/utils/get-icon.d.ts +34 -0
- package/{storybook-static → dist}/components/column-file-browser.d.ts +1 -2
- package/dist/components/column-file-browser.stories.d.ts +15 -0
- package/dist/components/data-table/build-columns.d.ts +3 -0
- package/dist/components/data-table/data-table.d.ts +2 -0
- package/{storybook-static/components → dist/components/data-table}/data-table.stories.d.ts +1 -1
- package/dist/components/data-table/helpers.d.ts +10 -0
- package/dist/components/data-table/index.d.ts +3 -0
- package/dist/components/data-table/pagination-footer.d.ts +5 -0
- package/dist/components/data-table/selection-toolbar.d.ts +9 -0
- package/{storybook-static/components/data-table.d.ts → dist/components/data-table/types.d.ts} +6 -4
- package/{storybook-static → dist}/components/file-selector.d.ts +1 -2
- package/{storybook-static/components/style-guide.stories.d.ts → dist/components/file-selector.stories.d.ts} +6 -3
- package/{storybook-static → dist}/components/info-card.d.ts +1 -2
- package/dist/components/info-card.stories.d.ts +41 -0
- package/{storybook-static → dist}/components/menu-item.d.ts +1 -1
- package/dist/components/menu-item.stories.d.ts +72 -0
- package/dist/components/number-input.d.ts +8 -0
- package/{storybook-static → dist}/components/param-editor.stories.d.ts +1 -0
- package/{storybook-static → dist}/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.d.ts +1 -0
- package/dist/components/rich-text/utils/inferResourceType.d.ts +1 -0
- package/dist/components/session-indicator.d.ts +14 -0
- package/dist/components/session-indicator.stories.d.ts +11 -0
- package/dist/components/slider.stories.d.ts +15 -0
- package/dist/components/style-guide.stories.d.ts +28 -0
- package/dist/components/ticket-board.d.ts +33 -0
- package/dist/components/ticket-board.stories.d.ts +5 -0
- package/dist/components/ticket-card.d.ts +24 -0
- package/dist/components/ticket-card.stories.d.ts +17 -0
- package/dist/components/toaster.d.ts +3 -0
- package/{storybook-static → dist}/index.d.ts +5 -3
- package/dist/index.js +435 -0
- package/dist/index.js.map +1 -0
- package/dist/rich-message-CiA3ripk.js +1401 -0
- package/dist/rich-message-CiA3ripk.js.map +1 -0
- package/dist/rich-text.js +485 -0
- package/dist/rich-text.js.map +1 -0
- package/dist/style.css +1 -0
- package/{storybook-static → dist}/theme/primitives/colors.d.ts +6 -0
- package/dist/theme-9E0MRtZk.js +1985 -0
- package/dist/theme-9E0MRtZk.js.map +1 -0
- package/{src/theme/index.ts → dist/theme.js} +5 -2
- package/dist/theme.js.map +1 -0
- package/dist/tooltip-Gm7PLwZG.js +51 -0
- package/dist/tooltip-Gm7PLwZG.js.map +1 -0
- package/{storybook-static/theme/applyThemePreference.d.ts → dist/utils/apply-theme-preference.d.ts} +1 -1
- package/{storybook-static/theme → dist/utils}/theme-preference.d.ts +3 -3
- package/package.json +4 -1
- package/.storybook/main.ts +0 -28
- package/.storybook/preview.tsx +0 -28
- package/.storybook/vitest.setup.ts +0 -6
- package/src/components/alert.tsx +0 -27
- package/src/components/breadcrumb.stories.tsx +0 -40
- package/src/components/breadcrumb.tsx +0 -67
- package/src/components/button.stories.tsx +0 -151
- package/src/components/chat-ui/agent-types.ts +0 -231
- package/src/components/chat-ui/components/ai-conversation.stories.tsx +0 -49
- package/src/components/chat-ui/components/ai-conversation.tsx +0 -68
- package/src/components/chat-ui/components/ai-message.stories.tsx +0 -60
- package/src/components/chat-ui/components/ai-message.tsx +0 -103
- package/src/components/chat-ui/components/ai-response.stories.tsx +0 -48
- package/src/components/chat-ui/components/ai-response.tsx +0 -19
- package/src/components/chat-ui/components/approval-prompt.tsx +0 -51
- package/src/components/chat-ui/components/attachment-list.stories.tsx +0 -24
- package/src/components/chat-ui/components/attachment-list.tsx +0 -76
- package/src/components/chat-ui/components/auto-scroll.tsx +0 -42
- package/src/components/chat-ui/components/chat-input.stories.tsx +0 -114
- package/src/components/chat-ui/components/chat-input.tsx +0 -142
- package/src/components/chat-ui/components/chat-panel.stories.tsx +0 -396
- package/src/components/chat-ui/components/chat-panel.tsx +0 -97
- package/src/components/chat-ui/components/message-parts-renderer.stories.tsx +0 -59
- package/src/components/chat-ui/components/message-parts-renderer.tsx +0 -133
- package/src/components/chat-ui/components/message-types.ts +0 -40
- package/src/components/chat-ui/components/model-swap-separator.stories.tsx +0 -27
- package/src/components/chat-ui/components/model-swap-separator.tsx +0 -20
- package/src/components/chat-ui/components/send-button.tsx +0 -56
- package/src/components/chat-ui/components/timeline.tsx +0 -414
- package/src/components/chat-ui/components/tool-invocation-timeline.stories.tsx +0 -32
- package/src/components/chat-ui/components/tool-invocation-timeline.tsx +0 -16
- package/src/components/chat-ui/index.ts +0 -15
- package/src/components/chat-ui/mocks/full-conversation-normalized.json +0 -3557
- package/src/components/chat-ui/tool-rendering/build-timeline.ts +0 -127
- package/src/components/chat-ui/tool-rendering/default-renderers.ts +0 -420
- package/src/components/chat-ui/tool-rendering/index.ts +0 -3
- package/src/components/chat-ui/tool-rendering/types.ts +0 -19
- package/src/components/chat-ui/utils/diff.ts +0 -228
- package/src/components/chat-ui/utils/editor-state.ts +0 -5
- package/src/components/chat-ui/utils/get-icon.ts +0 -81
- package/src/components/code-editor.tsx +0 -147
- package/src/components/column-file-browser.stories.tsx +0 -217
- package/src/components/column-file-browser.tsx +0 -380
- package/src/components/content-placeholder.tsx +0 -21
- package/src/components/data-table/build-columns.tsx +0 -78
- package/src/components/data-table/data-table.css +0 -51
- package/src/components/data-table/data-table.stories.tsx +0 -209
- package/src/components/data-table/data-table.tsx +0 -232
- package/src/components/data-table/helpers.tsx +0 -69
- package/src/components/data-table/index.ts +0 -3
- package/src/components/data-table/pagination-footer.tsx +0 -58
- package/src/components/data-table/selection-toolbar.tsx +0 -26
- package/src/components/data-table/types.ts +0 -21
- package/src/components/delete-confirmation-modal.stories.tsx +0 -46
- package/src/components/delete-confirmation-modal.tsx +0 -56
- package/src/components/diff-bubble.stories.tsx +0 -70
- package/src/components/diff-bubble.tsx +0 -70
- package/src/components/diff-card.tsx +0 -139
- package/src/components/diff-drawer.stories.tsx +0 -106
- package/src/components/diff-drawer.tsx +0 -59
- package/src/components/diff-editor.tsx +0 -55
- package/src/components/drawer-inline.stories.tsx +0 -124
- package/src/components/drawer-inline.tsx +0 -90
- package/src/components/empty-state.stories.tsx +0 -65
- package/src/components/empty-state.tsx +0 -28
- package/src/components/error-boundary.tsx +0 -80
- package/src/components/file-selector.stories.tsx +0 -166
- package/src/components/file-selector.tsx +0 -192
- package/src/components/file-tree-helpers.ts +0 -28
- package/src/components/horizontal-menu-stack.tsx +0 -15
- package/src/components/info-card.stories.tsx +0 -120
- package/src/components/info-card.tsx +0 -60
- package/src/components/item-section.stories.tsx +0 -57
- package/src/components/item-section.tsx +0 -57
- package/src/components/layout.stories.tsx +0 -341
- package/src/components/layout.tsx +0 -67
- package/src/components/menu-item.stories.tsx +0 -162
- package/src/components/menu-item.tsx +0 -207
- package/src/components/number-input.tsx +0 -21
- package/src/components/open-source-notices-screen.stories.tsx +0 -69
- package/src/components/open-source-notices-screen.tsx +0 -154
- package/src/components/panel-menu.stories.tsx +0 -44
- package/src/components/panel-menu.tsx +0 -27
- package/src/components/param-editor-color-input.tsx +0 -98
- package/src/components/param-editor-date-input.tsx +0 -106
- package/src/components/param-editor-horizontal-text-input.tsx +0 -130
- package/src/components/param-editor-horizontal.stories.tsx +0 -545
- package/src/components/param-editor-horizontal.tsx +0 -137
- package/src/components/param-editor-input-group.tsx +0 -145
- package/src/components/param-editor-number-input.tsx +0 -145
- package/src/components/param-editor-selection-input.tsx +0 -181
- package/src/components/param-editor-text-input.tsx +0 -113
- package/src/components/param-editor.stories.tsx +0 -986
- package/src/components/param-editor.tsx +0 -142
- package/src/components/param-editor.types.ts +0 -95
- package/src/components/properties.stories.tsx +0 -108
- package/src/components/properties.tsx +0 -73
- package/src/components/pstdio-logo.tsx +0 -26
- package/src/components/resource-badge.stories.tsx +0 -26
- package/src/components/resource-badge.tsx +0 -173
- package/src/components/rich-text/collaborative-markdown-editor/awareness-cursors.tsx +0 -45
- package/src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.stories.tsx +0 -230
- package/src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.tsx +0 -131
- package/src/components/rich-text/index.ts +0 -14
- package/src/components/rich-text/markdown-editor/markdown-editor.stories.tsx +0 -147
- package/src/components/rich-text/markdown-editor/markdown-editor.tsx +0 -112
- package/src/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkNode.tsx +0 -100
- package/src/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.ts +0 -32
- package/src/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/index.ts +0 -2
- package/src/components/rich-text/prompt-input/commands.ts +0 -44
- package/src/components/rich-text/prompt-input/events.ts +0 -21
- package/src/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.tsx +0 -8
- package/src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.ts +0 -49
- package/src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.ts +0 -30
- package/src/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.tsx +0 -127
- package/src/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.tsx +0 -32
- package/src/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.tsx +0 -30
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuOption.ts +0 -15
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuPlugin.tsx +0 -88
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenu.tsx +0 -90
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenuItem.tsx +0 -50
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/constants.ts +0 -3
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/hooks/useContextLookup.tsx +0 -50
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/checkForTriggers.ts +0 -45
- package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/getSortedMenuOptions.ts +0 -20
- package/src/components/rich-text/prompt-input/plugins/ReferencePlugin/ReferencePlugin.tsx +0 -50
- package/src/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.tsx +0 -107
- package/src/components/rich-text/prompt-input/plugins/keyboard-shortcuts.ts +0 -13
- package/src/components/rich-text/prompt-input/prompt-input.stories.tsx +0 -87
- package/src/components/rich-text/prompt-input/prompt-input.tsx +0 -106
- package/src/components/rich-text/prompt-input/theme/prompt-input-theme.css +0 -3
- package/src/components/rich-text/prompt-input/theme/prompt-input-theme.ts +0 -11
- package/src/components/rich-text/prompt-input/utils.ts +0 -158
- package/src/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkNode.tsx +0 -100
- package/src/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.ts +0 -32
- package/src/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/index.ts +0 -2
- package/src/components/rich-text/rich-message/rich-message.stories.tsx +0 -146
- package/src/components/rich-text/rich-message/rich-message.tsx +0 -118
- package/src/components/rich-text/shared/components/content-editable.tsx +0 -28
- package/src/components/rich-text/shared/components/default-rich-text-components.tsx +0 -99
- package/src/components/rich-text/shared/editor-config.ts +0 -38
- package/src/components/rich-text/shared/nodes/DataTableNode.stories.tsx +0 -52
- package/src/components/rich-text/shared/nodes/DataTableNode.tsx +0 -73
- package/src/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.tsx +0 -22
- package/src/components/rich-text/shared/plugins/CodePlugin/CodeNode.tsx +0 -57
- package/src/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.tsx +0 -46
- package/src/components/rich-text/shared/plugins/EquationPlugin/EquationNode.tsx +0 -161
- package/src/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.css +0 -16
- package/src/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.tsx +0 -45
- package/src/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.tsx +0 -40
- package/src/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.css +0 -26
- package/src/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.tsx +0 -414
- package/src/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/index.ts +0 -1
- package/src/components/rich-text/shared/plugins/HorizontalRulePlugin/HorizontalRuleNode.ts +0 -52
- package/src/components/rich-text/shared/plugins/HorizontalRulePlugin/horizontalRule.ts +0 -16
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.css +0 -163
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.tsx +0 -355
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/LinkPlugin.tsx +0 -6
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/utils/getSelectedNode.ts +0 -17
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.ts +0 -39
- package/src/components/rich-text/shared/plugins/LinkEditorPlugin/utils/url.ts +0 -23
- package/src/components/rich-text/shared/plugins/StateUpdatePlugin.tsx +0 -21
- package/src/components/rich-text/shared/plugins/TableActionMenuPlugin/TableActionMenuPlugin.tsx +0 -224
- package/src/components/rich-text/shared/plugins/TableCellResizerPlugin/TableCellResizerPlugin.css +0 -3
- package/src/components/rich-text/shared/plugins/TableCellResizerPlugin/TableCellResizerPlugin.tsx +0 -315
- package/src/components/rich-text/shared/plugins/ToggleEditablePlugin.tsx +0 -12
- package/src/components/rich-text/shared/plugins/TreeViewPlugin/TreeViewPlugin.tsx +0 -20
- package/src/components/rich-text/shared/transformers/markdown-transformers.ts +0 -123
- package/src/components/rich-text/shared/types/rich-text-components.ts +0 -17
- package/src/components/rich-text/theme/report-theme.tsx +0 -81
- package/src/components/rich-text/theme/rich-text-theme.css +0 -773
- package/src/components/rich-text/theme/rich-text-theme.tsx +0 -81
- package/src/components/rich-text/types.ts +0 -9
- package/src/components/rich-text/utils/inferResourceType.ts +0 -17
- package/src/components/rich-text/utils/markdown.ts +0 -12
- package/src/components/rich-text/utils/mediaType.ts +0 -31
- package/src/components/session-indicator.stories.tsx +0 -46
- package/src/components/session-indicator.tsx +0 -40
- package/src/components/slider.stories.tsx +0 -38
- package/src/components/slider.tsx +0 -20
- package/src/components/style-guide-data.ts +0 -374
- package/src/components/style-guide.stories.tsx +0 -212
- package/src/components/style-guide.tsx +0 -305
- package/src/components/ticket-board.stories.tsx +0 -109
- package/src/components/ticket-board.tsx +0 -167
- package/src/components/ticket-card.stories.tsx +0 -133
- package/src/components/ticket-card.tsx +0 -126
- package/src/components/toaster.stories.tsx +0 -79
- package/src/components/toaster.tsx +0 -26
- package/src/components/tooltip.tsx +0 -43
- package/src/index.ts +0 -16
- package/src/theme/global.ts +0 -49
- package/src/theme/primitives/colors.ts +0 -209
- package/src/theme/primitives/fonts.ts +0 -33
- package/src/theme/primitives/sizes.ts +0 -49
- package/src/theme/recipes/alert.ts +0 -12
- package/src/theme/recipes/button.ts +0 -124
- package/src/theme/recipes/dialog.ts +0 -11
- package/src/theme/recipes/divider.ts +0 -7
- package/src/theme/recipes/drawer.ts +0 -16
- package/src/theme/recipes/editable.ts +0 -42
- package/src/theme/recipes/form.ts +0 -11
- package/src/theme/recipes/input.ts +0 -25
- package/src/theme/recipes/menu.ts +0 -40
- package/src/theme/recipes/popover.ts +0 -46
- package/src/theme/recipes/progress-circle.ts +0 -22
- package/src/theme/recipes/skeleton.ts +0 -8
- package/src/theme/recipes/textarea.ts +0 -29
- package/src/theme/recipes/tooltip.ts +0 -15
- package/src/theme/theme.ts +0 -70
- package/src/theme/tokens/borders.ts +0 -38
- package/src/theme/tokens/colors.ts +0 -488
- package/src/theme/tokens/layer-styles.ts +0 -15
- package/src/theme/tokens/shadows.ts +0 -47
- package/src/theme/tokens/text.ts +0 -236
- package/src/utils/apply-theme-preference.ts +0 -17
- package/src/utils/formats.ts +0 -27
- package/src/utils/get-file-type-icon.ts +0 -52
- package/src/utils/theme-preference.tsx +0 -60
- package/src/vite-env.d.ts +0 -6
- package/storybook-static/assets/CodeBlockPlugin-C3OWpvP8.js +0 -281
- package/storybook-static/assets/CodeBlockPlugin-e2vWgtYm.css +0 -1
- package/storybook-static/assets/DataTableNode.stories-DLgTftOI.js +0 -33
- package/storybook-static/assets/EquationComponent-CUFxwyNf.js +0 -1
- package/storybook-static/assets/EquationComponent-DWZwfaVI.css +0 -1
- package/storybook-static/assets/FloatingTextFormatToolbarPlugin-B6jc8xvg.js +0 -1
- package/storybook-static/assets/FloatingTextFormatToolbarPlugin-D2l3--Te.css +0 -1
- package/storybook-static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/storybook-static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/storybook-static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/storybook-static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/storybook-static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/storybook-static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/storybook-static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/storybook-static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/storybook-static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/storybook-static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/storybook-static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/storybook-static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/storybook-static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/storybook-static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/storybook-static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/storybook-static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/storybook-static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/storybook-static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/storybook-static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/storybook-static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/storybook-static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/storybook-static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/storybook-static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/storybook-static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/storybook-static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/storybook-static/assets/LexicalHistoryPlugin.prod-BQAibkDj.js +0 -1
- package/storybook-static/assets/TreeViewPlugin-CyVKCrKJ.js +0 -24
- package/storybook-static/assets/ai-conversation-DcjS--ee.js +0 -1
- package/storybook-static/assets/ai-conversation.stories-COjWuS8V.js +0 -3
- package/storybook-static/assets/ai-message-DLdAGhWH.js +0 -1
- package/storybook-static/assets/ai-message.stories-CRTyreKL.js +0 -3
- package/storybook-static/assets/ai-response-ySM6s0iN.js +0 -1
- package/storybook-static/assets/ai-response.stories-DVBYlrGf.js +0 -11
- package/storybook-static/assets/attachment-list-1p1601I5.js +0 -1
- package/storybook-static/assets/attachment-list.stories-Cydlsnio.js +0 -7
- package/storybook-static/assets/badge-CtgJasjB.js +0 -1
- package/storybook-static/assets/breadcrumb.stories-SAjB-iqH.js +0 -5
- package/storybook-static/assets/button-C7it2n8t.js +0 -1
- package/storybook-static/assets/button.stories-BMVbbb4y.js +0 -72
- package/storybook-static/assets/chat-input-B-915nCM.js +0 -1
- package/storybook-static/assets/chat-input.stories-DrxvpT9p.js +0 -32
- package/storybook-static/assets/chat-panel.stories-D0L6eIte.js +0 -96
- package/storybook-static/assets/chevron-down-BYCAGyCV.js +0 -1
- package/storybook-static/assets/chevron-right-owK1wZnx.js +0 -1
- package/storybook-static/assets/collaborative-markdown-editor-Bj0GvTvv.js +0 -41
- package/storybook-static/assets/collaborative-markdown-editor.stories-B_MUIC5s.js +0 -11
- package/storybook-static/assets/collapsible-DBDG7h1r.js +0 -1
- package/storybook-static/assets/collapsible-content-B1Uq3jUM.js +0 -1
- package/storybook-static/assets/column-file-browser.stories-DPMQnHCw.js +0 -54
- package/storybook-static/assets/compiler-runtime-BXE7OOXE.js +0 -1
- package/storybook-static/assets/computed-style-C0hzrq9-.js +0 -1
- package/storybook-static/assets/create-recipe-context-BU56IzEo.js +0 -1
- package/storybook-static/assets/create-slot-recipe-context-DAhDE6G_.js +0 -1
- package/storybook-static/assets/create-split-props-u5h9OPvL.js +0 -1
- package/storybook-static/assets/createLucideIcon-CcBBUKX8.js +0 -1
- package/storybook-static/assets/data-table-vuIeWXui.css +0 -1
- package/storybook-static/assets/data-table.stories-Cs-q7dpj.js +0 -19
- package/storybook-static/assets/delete-confirmation-modal.stories-C8vDKFRD.js +0 -14
- package/storybook-static/assets/diff-bubble-_zZypMRt.js +0 -1
- package/storybook-static/assets/diff-bubble.stories-DfonanIk.js +0 -39
- package/storybook-static/assets/diff-drawer.stories-CGDWiKD8.js +0 -38
- package/storybook-static/assets/diff-editor-DV9BXqbn.js +0 -11
- package/storybook-static/assets/dismissable-layer-Cc5dFRd8.js +0 -1
- package/storybook-static/assets/drawer-inline.stories-B3Tp7vjL.js +0 -88
- package/storybook-static/assets/empty-state-BXkyq69k.js +0 -1
- package/storybook-static/assets/empty-state.stories-6eYYBOWR.js +0 -29
- package/storybook-static/assets/factory-BR3bc_RM.js +0 -1
- package/storybook-static/assets/factory-DAJZwK4o.js +0 -1
- package/storybook-static/assets/file-selector.stories-PKIGBUd5.js +0 -31
- package/storybook-static/assets/file-text-D5m8MJlG.js +0 -1
- package/storybook-static/assets/flex-DAJL4AFZ.js +0 -1
- package/storybook-static/assets/folder-C5dba_Co.js +0 -1
- package/storybook-static/assets/form-D_Xln9tK.js +0 -1
- package/storybook-static/assets/full-conversation-normalized-LUbl1coD.js +0 -1
- package/storybook-static/assets/grid-7OIKBlfh.js +0 -1
- package/storybook-static/assets/h-stack-DWHd8f97.js +0 -1
- package/storybook-static/assets/horizontal-menu-stack-Cph6x7ui.js +0 -1
- package/storybook-static/assets/icon-C8FN9JqD.js +0 -1
- package/storybook-static/assets/icon-button-DHiUe7rR.js +0 -1
- package/storybook-static/assets/icons-WRA1cA-W.js +0 -1
- package/storybook-static/assets/iframe-2XPD_vrQ.css +0 -1
- package/storybook-static/assets/iframe-B8FSoBNY.js +0 -1075
- package/storybook-static/assets/index-B0y2_lLF.js +0 -1
- package/storybook-static/assets/index-CXwl6T4k.js +0 -1
- package/storybook-static/assets/index-DaXC_qY_.js +0 -1
- package/storybook-static/assets/index-DpB4ozcR.js +0 -1
- package/storybook-static/assets/index-cFwdnc0b.js +0 -1
- package/storybook-static/assets/info-DlgY5-DW.js +0 -1
- package/storybook-static/assets/info-card.stories-Cry0Qfrn.js +0 -55
- package/storybook-static/assets/input-ZSs5cSFQ.js +0 -1
- package/storybook-static/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
- package/storybook-static/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
- package/storybook-static/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
- package/storybook-static/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
- package/storybook-static/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
- package/storybook-static/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
- package/storybook-static/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
- package/storybook-static/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
- package/storybook-static/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
- package/storybook-static/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
- package/storybook-static/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
- package/storybook-static/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
- package/storybook-static/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
- package/storybook-static/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
- package/storybook-static/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
- package/storybook-static/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
- package/storybook-static/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
- package/storybook-static/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
- package/storybook-static/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
- package/storybook-static/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
- package/storybook-static/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
- package/storybook-static/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
- package/storybook-static/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
- package/storybook-static/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
- package/storybook-static/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
- package/storybook-static/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
- package/storybook-static/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
- package/storybook-static/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
- package/storybook-static/assets/item-section-AoQrVPNJ.js +0 -1
- package/storybook-static/assets/item-section.stories-kYTPHRsx.js +0 -24
- package/storybook-static/assets/layout.stories-DhSjwzU1.js +0 -3
- package/storybook-static/assets/link-DE5grRtm.js +0 -1
- package/storybook-static/assets/markdown-BLUemkxK.js +0 -1
- package/storybook-static/assets/markdown-editor-Y4eMsgVb.js +0 -1
- package/storybook-static/assets/markdown-editor.stories-DIWw-hRP.js +0 -115
- package/storybook-static/assets/menu-item-CrqDaj9K.js +0 -1
- package/storybook-static/assets/menu-item.stories-D9Isjjrf.js +0 -68
- package/storybook-static/assets/message-parts-renderer.stories-CewRvbm7.js +0 -5
- package/storybook-static/assets/message-types-CEyA7Qm7.js +0 -60
- package/storybook-static/assets/model-swap-separator.stories-DrQW2NWQ.js +0 -9
- package/storybook-static/assets/mutation-observer-CAfGweIM.js +0 -1
- package/storybook-static/assets/normalize-props-D7NI5JRu.js +0 -1
- package/storybook-static/assets/number-C92MPsRM.js +0 -1
- package/storybook-static/assets/number-input-D1aC-9ls.js +0 -7
- package/storybook-static/assets/onest-cyrillic-400-normal-BxvCLB5P.woff +0 -0
- package/storybook-static/assets/onest-cyrillic-400-normal-DH8vlB-A.woff2 +0 -0
- package/storybook-static/assets/onest-cyrillic-500-normal-CyY1vN0Q.woff +0 -0
- package/storybook-static/assets/onest-cyrillic-500-normal-DHyr8B2c.woff2 +0 -0
- package/storybook-static/assets/onest-cyrillic-700-normal-CwpXuTGk.woff2 +0 -0
- package/storybook-static/assets/onest-cyrillic-700-normal-DOtXtm0s.woff +0 -0
- package/storybook-static/assets/onest-latin-400-normal-BAzPRZHg.woff +0 -0
- package/storybook-static/assets/onest-latin-400-normal-bladozIj.woff2 +0 -0
- package/storybook-static/assets/onest-latin-500-normal-oFTiz6Nq.woff +0 -0
- package/storybook-static/assets/onest-latin-500-normal-qHiQtL66.woff2 +0 -0
- package/storybook-static/assets/onest-latin-700-normal-Bd6qVL4Q.woff2 +0 -0
- package/storybook-static/assets/onest-latin-700-normal-XTvQgpoh.woff +0 -0
- package/storybook-static/assets/onest-latin-ext-400-normal--mQR5RlC.woff2 +0 -0
- package/storybook-static/assets/onest-latin-ext-400-normal-BbXTNVXw.woff +0 -0
- package/storybook-static/assets/onest-latin-ext-500-normal-BlXa29q8.woff2 +0 -0
- package/storybook-static/assets/onest-latin-ext-500-normal-CoujUMv_.woff +0 -0
- package/storybook-static/assets/onest-latin-ext-700-normal-C-Tcltod.woff2 +0 -0
- package/storybook-static/assets/onest-latin-ext-700-normal-CSGWRWNE.woff +0 -0
- package/storybook-static/assets/open-source-notices-screen.stories-BpdJxDZC.js +0 -21
- package/storybook-static/assets/overflow-CkG1DOya.js +0 -1
- package/storybook-static/assets/panel-menu-CqLSrdTB.js +0 -1
- package/storybook-static/assets/panel-menu.stories-CxdWaWjq.js +0 -14
- package/storybook-static/assets/param-editor-horizontal.stories-C1o-VOjG.js +0 -561
- package/storybook-static/assets/param-editor-selection-input-2pJE1_W1.js +0 -1
- package/storybook-static/assets/param-editor.stories-0ae3y4Vu.js +0 -921
- package/storybook-static/assets/playfair-display-cyrillic-400-normal-CjW2EstV.woff2 +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-400-normal-ZiRag6zj.woff +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-600-normal-DbWAkkgN.woff +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-600-normal-oLY6jnZ7.woff2 +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-700-normal-Dk1mTcxf.woff +0 -0
- package/storybook-static/assets/playfair-display-cyrillic-700-normal-Dw3uKy19.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-400-normal-CFtfchNt.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-400-normal-DHYHbkg3.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-600-normal-CZLGqjJe.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-600-normal-CxxueQ0Z.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-700-normal-Bc_1Q1cG.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-700-normal-CuDiGg7c.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-400-normal-BxlSGspa.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-400-normal-qdZwdvNS.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-600-normal-BumBfC1v.woff +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-600-normal-CEjQclLc.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-700-normal-C58ejOkc.woff2 +0 -0
- package/storybook-static/assets/playfair-display-latin-ext-700-normal-D5HUU8GT.woff +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-400-normal-BV2APVTb.woff2 +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-400-normal-BbvUAu4N.woff +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-600-normal-BPJkAZPN.woff +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-600-normal-ICsRR-qJ.woff2 +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-700-normal-CaKJSIny.woff2 +0 -0
- package/storybook-static/assets/playfair-display-vietnamese-700-normal-Cr1rw0mr.woff +0 -0
- package/storybook-static/assets/portal-CZHfPTRw.js +0 -1
- package/storybook-static/assets/preload-helper-PPVm8Dsz.js +0 -1
- package/storybook-static/assets/prompt-input-BLCttowi.js +0 -14
- package/storybook-static/assets/prompt-input-BVbz9joI.css +0 -1
- package/storybook-static/assets/prompt-input.stories-J8-AMVXy.js +0 -9
- package/storybook-static/assets/properties.stories-Bs7ivKgb.js +0 -59
- package/storybook-static/assets/react-18-KY0R7ltw.js +0 -9
- package/storybook-static/assets/render-strategy-BebqUNCa.js +0 -1
- package/storybook-static/assets/resource-badge-Bw5UoU4J.js +0 -1
- package/storybook-static/assets/resource-badge.stories-DtSh-RX9.js +0 -9
- package/storybook-static/assets/rich-message-BIkzo1SM.js +0 -1
- package/storybook-static/assets/rich-message.stories-C9Wc4d3O.js +0 -115
- package/storybook-static/assets/rich-text-theme-Bkhh9rAZ.js +0 -14
- package/storybook-static/assets/rich-text-theme-K2MBoCbx.css +0 -1
- package/storybook-static/assets/separator-CQkMOHNm.js +0 -1
- package/storybook-static/assets/settings-DUgg22A7.js +0 -1
- package/storybook-static/assets/simple-grid-DIKjhnVI.js +0 -1
- package/storybook-static/assets/spinner-ZYH_gvW-.js +0 -1
- package/storybook-static/assets/stack-CN4X31TA.js +0 -1
- package/storybook-static/assets/star-CvcHIXRa.js +0 -1
- package/storybook-static/assets/style-guide.stories-BUvEhZov.js +0 -6
- package/storybook-static/assets/tabbable-DHAf8oAu.js +0 -1
- package/storybook-static/assets/table-BKNSzs2r.js +0 -1
- package/storybook-static/assets/textarea-rqmaWSc5.js +0 -1
- package/storybook-static/assets/toaster-d9nN0H7K.js +0 -1
- package/storybook-static/assets/toaster.stories-BRVCYyaM.js +0 -52
- package/storybook-static/assets/tool-invocation-timeline-B-cS0W6M.js +0 -59
- package/storybook-static/assets/tool-invocation-timeline.stories-DXO59O73.js +0 -5
- package/storybook-static/assets/tooltip-C_a-XGZ8.js +0 -1
- package/storybook-static/assets/tooltip-DZxUoouw.js +0 -1
- package/storybook-static/assets/trash-2-BO05slEk.js +0 -1
- package/storybook-static/assets/typeahead-CuY9WxfQ.js +0 -1
- package/storybook-static/assets/use-field-context-DoxKQlMm.js +0 -1
- package/storybook-static/assets/use-presence-context-DK2PGZth.js +0 -1
- package/storybook-static/assets/v-stack-Btoq6OB_.js +0 -1
- package/storybook-static/assets/x-D42ziktz.js +0 -1
- package/storybook-static/components/chat-ui/mocks/full-conversation-normalized.json.d.ts +0 -3560
- package/storybook-static/components/rich-text/utils/inferResourceType.d.ts +0 -1
- package/storybook-static/favicon-wrapper.svg +0 -46
- package/storybook-static/favicon.svg +0 -1
- package/storybook-static/iframe.html +0 -705
- package/storybook-static/index.html +0 -150
- package/storybook-static/index.json +0 -1
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +0 -1
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -628
- package/storybook-static/sb-addons/themes-1/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/vitest-2/manager-bundle.js +0 -3
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +0 -46
- package/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-runtime.js +0 -77956
- package/storybook-static/sb-manager/globals.js +0 -24
- package/storybook-static/sb-manager/manager-stores.js +0 -23
- package/storybook-static/sb-manager/runtime.js +0 -20422
- package/storybook-static/theme/types.d.ts +0 -1
- package/storybook-static/vite-inject-mocker-entry.js +0 -2
- package/tsconfig.json +0 -29
- package/vite.config.ts +0 -85
- package/vitest.shims.d.ts +0 -1
- /package/{storybook-static → dist}/components/alert.d.ts +0 -0
- /package/{storybook-static → dist}/components/breadcrumb.d.ts +0 -0
- /package/{storybook-static → dist}/components/breadcrumb.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/agent-types.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/ai-conversation.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/ai-message.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/ai-message.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/ai-response.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/ai-response.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/approval-prompt.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/attachment-list.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/attachment-list.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/auto-scroll.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/chat-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/chat-input.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/chat-panel.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/chat-panel.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/message-parts-renderer.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/message-parts-renderer.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/message-types.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/model-swap-separator.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/model-swap-separator.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/send-button.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/timeline.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/tool-invocation-timeline.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/components/tool-invocation-timeline.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/tool-rendering/build-timeline.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/tool-rendering/default-renderers.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/tool-rendering/index.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/tool-rendering/types.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/utils/diff.d.ts +0 -0
- /package/{storybook-static → dist}/components/chat-ui/utils/editor-state.d.ts +0 -0
- /package/{storybook-static → dist}/components/code-editor.d.ts +0 -0
- /package/{storybook-static → dist}/components/content-placeholder.d.ts +0 -0
- /package/{storybook-static → dist}/components/delete-confirmation-modal.d.ts +0 -0
- /package/{storybook-static → dist}/components/delete-confirmation-modal.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/diff-bubble.d.ts +0 -0
- /package/{storybook-static → dist}/components/diff-bubble.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/diff-card.d.ts +0 -0
- /package/{storybook-static → dist}/components/diff-drawer.d.ts +0 -0
- /package/{storybook-static → dist}/components/diff-drawer.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/diff-editor.d.ts +0 -0
- /package/{storybook-static → dist}/components/drawer-inline.d.ts +0 -0
- /package/{storybook-static → dist}/components/drawer-inline.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/empty-state.d.ts +0 -0
- /package/{storybook-static → dist}/components/empty-state.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/error-boundary.d.ts +0 -0
- /package/{storybook-static → dist}/components/file-tree-helpers.d.ts +0 -0
- /package/{storybook-static → dist}/components/horizontal-menu-stack.d.ts +0 -0
- /package/{storybook-static → dist}/components/item-section.d.ts +0 -0
- /package/{storybook-static → dist}/components/item-section.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/layout.d.ts +0 -0
- /package/{storybook-static → dist}/components/layout.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/open-source-notices-screen.d.ts +0 -0
- /package/{storybook-static → dist}/components/open-source-notices-screen.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/panel-menu.d.ts +0 -0
- /package/{storybook-static → dist}/components/panel-menu.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-color-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-date-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-horizontal-text-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-horizontal.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-horizontal.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-input-group.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-number-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-selection-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor-text-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor.d.ts +0 -0
- /package/{storybook-static → dist}/components/param-editor.types.d.ts +0 -0
- /package/{storybook-static → dist}/components/properties.d.ts +0 -0
- /package/{storybook-static → dist}/components/properties.stories.d.ts +0 -0
- /package/{storybook-static/components/schub-logo.d.ts → dist/components/pstdio-logo.d.ts} +0 -0
- /package/{storybook-static → dist}/components/resource-badge.d.ts +0 -0
- /package/{storybook-static → dist}/components/resource-badge.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/collaborative-markdown-editor/awareness-cursors.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/index.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/markdown-editor/markdown-editor.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/markdown-editor/markdown-editor.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/index.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/commands.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/events.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuOption.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenu.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenuItem.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/constants.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/hooks/useContextLookup.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/checkForTriggers.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/getSortedMenuOptions.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferencePlugin/ReferencePlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/keyboard-shortcuts.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/prompt-input.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/prompt-input.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/theme/prompt-input-theme.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/prompt-input/utils.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/index.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/rich-message/rich-message.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/rich-message/rich-message.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/components/content-editable.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/components/default-rich-text-components.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/editor-config.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/nodes/DataTableNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/nodes/DataTableNode.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/CodePlugin/CodeNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/EquationPlugin/EquationNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/HorizontalRulePlugin/HorizontalRuleNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/HorizontalRulePlugin/horizontalRule.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/LinkPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/utils/getSelectedNode.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/utils/url.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/StateUpdatePlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/TableActionMenuPlugin/TableActionMenuPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/TableCellResizerPlugin/TableCellResizerPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/ToggleEditablePlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/transformers/markdown-transformers.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/shared/types/rich-text-components.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/theme/report-theme.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/theme/rich-text-theme.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/types.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/utils/markdown.d.ts +0 -0
- /package/{storybook-static → dist}/components/rich-text/utils/mediaType.d.ts +0 -0
- /package/{storybook-static → dist}/components/slider.d.ts +0 -0
- /package/{storybook-static → dist}/components/style-guide-data.d.ts +0 -0
- /package/{storybook-static → dist}/components/style-guide.d.ts +0 -0
- /package/{storybook-static → dist}/components/toaster.stories.d.ts +0 -0
- /package/{storybook-static → dist}/components/tooltip.d.ts +0 -0
- /package/{storybook-static → dist}/theme/global.d.ts +0 -0
- /package/{storybook-static → dist}/theme/index.d.ts +0 -0
- /package/{storybook-static → dist}/theme/primitives/fonts.d.ts +0 -0
- /package/{storybook-static → dist}/theme/primitives/sizes.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/alert.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/button.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/dialog.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/divider.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/drawer.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/editable.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/form.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/input.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/menu.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/popover.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/progress-circle.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/skeleton.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/textarea.d.ts +0 -0
- /package/{storybook-static → dist}/theme/recipes/tooltip.d.ts +0 -0
- /package/{storybook-static → dist}/theme/theme.d.ts +0 -0
- /package/{storybook-static → dist}/theme/tokens/borders.d.ts +0 -0
- /package/{storybook-static → dist}/theme/tokens/colors.d.ts +0 -0
- /package/{storybook-static → dist}/theme/tokens/layer-styles.d.ts +0 -0
- /package/{storybook-static → dist}/theme/tokens/shadows.d.ts +0 -0
- /package/{storybook-static → dist}/theme/tokens/text.d.ts +0 -0
- /package/{storybook-static → dist}/utils/formats.d.ts +0 -0
- /package/{storybook-static → dist}/utils/get-file-type-icon.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as a}from"./factory-DAJZwK4o.js";const o=a("div");o.displayName="Box";export{o as B};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as a}from"./factory-DAJZwK4o.js";const p=a("span");p.displayName="Span";export{p as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r}from"./index-DpB4ozcR.js";var a=r();export{a as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as O}from"./iframe-B8FSoBNY.js";var y={exports:{}},n={};var o;function S(){if(o)return n;o=1;var u=O();function g(r){var e="https://react.dev/errors/"+r;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+r+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var i={d:{f:c,r:function(){throw Error(g(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(r,e,t){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:a==null?null:""+a,children:r,containerInfo:e,implementation:t}}var f=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(r,e){if(r==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}return n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,n.createPortal=function(r,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(g(299));return v(r,e,null,t)},n.flushSync=function(r){var e=f.T,t=i.p;try{if(f.T=null,i.p=2,r)return r()}finally{f.T=e,i.p=t,i.d.f()}},n.preconnect=function(r,e){typeof r=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,i.d.C(r,e))},n.prefetchDNS=function(r){typeof r=="string"&&i.d.D(r)},n.preinit=function(r,e){if(typeof r=="string"&&e&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin),s=typeof e.integrity=="string"?e.integrity:void 0,l=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;t==="style"?i.d.S(r,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:a,integrity:s,fetchPriority:l}):t==="script"&&i.d.X(r,{crossOrigin:a,integrity:s,fetchPriority:l,nonce:typeof e.nonce=="string"?e.nonce:void 0})}},n.preinitModule=function(r,e){if(typeof r=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var t=d(e.as,e.crossOrigin);i.d.M(r,{crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&i.d.M(r)},n.preload=function(r,e){if(typeof r=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin);i.d.L(r,t,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}},n.preloadModule=function(r,e){if(typeof r=="string")if(e){var t=d(e.as,e.crossOrigin);i.d.m(r,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else i.d.m(r)},n.requestFormReset=function(r){i.d.r(r)},n.unstable_batchedUpdates=function(r,e){return r(e)},n.useFormState=function(r,e,t){return f.H.useFormState(r,e,t)},n.useFormStatus=function(){return f.H.useHostTransitionStatus()},n.version="19.2.3",n}var _;function T(){if(_)return y.exports;_=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(g){console.error(g)}}return u(),y.exports=S(),y.exports}export{T as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t}from"./create-recipe-context-BU56IzEo.js";const{withContext:e}=t({key:"text"}),o=e("p");o.displayName="Text";export{o as T};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c}from"./createLucideIcon-CcBBUKX8.js";const o=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],t=c("info",o);export{t as I};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./iframe-B8FSoBNY.js";import{c as _}from"./compiler-runtime-BXE7OOXE.js";import{H as m}from"./h-stack-DWHd8f97.js";import{S}from"./stack-CN4X31TA.js";import{T as u}from"./index-cFwdnc0b.js";import{a as A,f as P,c as q,d as $,M as N,g as H}from"./menu-item-CrqDaj9K.js";import{B as g}from"./index-B0y2_lLF.js";import{B as E}from"./badge-CtgJasjB.js";import{B as W}from"./button-C7it2n8t.js";import{I as T}from"./icon-C8FN9JqD.js";import{c as M}from"./createLucideIcon-CcBBUKX8.js";import{S as O}from"./settings-DUgg22A7.js";import"./preload-helper-PPVm8Dsz.js";import"./factory-DAJZwK4o.js";import"./create-recipe-context-BU56IzEo.js";import"./tooltip-DZxUoouw.js";import"./portal-CZHfPTRw.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./normalize-props-D7NI5JRu.js";import"./factory-BR3bc_RM.js";import"./tooltip-C_a-XGZ8.js";import"./create-slot-recipe-context-DAhDE6G_.js";import"./use-presence-context-DK2PGZth.js";import"./create-split-props-u5h9OPvL.js";import"./computed-style-C0hzrq9-.js";import"./overflow-CkG1DOya.js";import"./icons-WRA1cA-W.js";import"./tabbable-DHAf8oAu.js";import"./typeahead-CuY9WxfQ.js";import"./mutation-observer-CAfGweIM.js";import"./dismissable-layer-Cc5dFRd8.js";import"./flex-DAJL4AFZ.js";import"./spinner-ZYH_gvW-.js";import"./index-CXwl6T4k.js";const F=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],D=M("ellipsis",F);const Q=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],U=M("play",Q);const V=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],G=M("shield-check",V);const J=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],K=M("sparkles",J),p=t=>{const e=_.c(25),{title:B,description:R,infoItems:x,actions:n,badge:w}=t;let f;e[0]!==x?(f=x===void 0?[]:x,e[0]=x,e[1]=f):f=e[1];const h=f,L=h.length>0;let z;e:{if(!n){z=null;break e}let j;e[2]!==n?(j=Array.isArray(n)?n:[n],e[2]=n,e[3]=j):j=e[3],z=j}const y=z;let a;e[4]!==B?(a=r.jsx(u,{textStyle:"heading/M",children:B}),e[4]=B,e[5]=a):a=e[5];let i;e[6]!==w||e[7]!==a?(i=r.jsxs(m,{gap:"2",children:[w,a]}),e[6]=w,e[7]=a,e[8]=i):i=e[8];let s;e[9]!==R?(s=r.jsx(u,{textStyle:"paragraph/S/regular",color:"fg.muted",children:R}),e[9]=R,e[10]=s):s=e[10];let o;e[11]!==i||e[12]!==s?(o=r.jsxs(S,{flex:"1",minW:"0",children:[i,s]}),e[11]=i,e[12]=s,e[13]=o):o=e[13];let l;e[14]!==y?(l=y?r.jsx(m,{gap:"xs",alignItems:"center",children:y.map(X)}):null,e[14]=y,e[15]=l):l=e[15];let c;e[16]!==o||e[17]!==l?(c=r.jsxs(m,{alignItems:"flex-start",justifyContent:"space-between",gap:"md",children:[o,l]}),e[16]=o,e[17]=l,e[18]=c):c=e[18];let d;e[19]!==L||e[20]!==h?(d=L?r.jsx(m,{gap:"lg",mt:"sm",flexWrap:"wrap",children:h.map(Y)}):null,e[19]=L,e[20]=h,e[21]=d):d=e[21];let b;return e[22]!==c||e[23]!==d?(b=r.jsxs(S,{gap:"xs",children:[c,d]}),e[22]=c,e[23]=d,e[24]=b):b=e[24],b};p.__docgenInfo={description:"",methods:[],displayName:"InfoCard",props:{title:{required:!0,tsType:{name:"string"},description:""},description:{required:!0,tsType:{name:"string"},description:""},infoItems:{required:!1,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:"{ label: string; value: ReactNode }",signature:{properties:[{key:"label",value:{name:"string",required:!0}},{key:"value",value:{name:"ReactNode",required:!0}}]}}],raw:"Array<{ label: string; value: ReactNode }>"},description:""},actions:{required:!1,tsType:{name:"union",raw:"ReactNode | ReactNode[]",elements:[{name:"ReactNode"},{name:"Array",elements:[{name:"ReactNode"}],raw:"ReactNode[]"}]},description:""},badge:{required:!1,tsType:{name:"ReactNode"},description:""}}};function X(t,e){return r.jsx(S,{gap:"0",children:t},`info-card-action-${e}`)}function Y(t,e){return r.jsxs(S,{gap:"2px",children:[r.jsx(u,{textStyle:"label/S/medium",color:"fg.muted",children:t.label}),typeof t.value=="string"?r.jsx(u,{textStyle:"paragraph/S/regular",children:t.value}):t.value]},`info-item-${e}`)}const Te={title:"Components/InfoCard",component:p,decorators:[t=>r.jsx(g,{padding:"sm",background:"bg",children:r.jsx(t,{})})],args:{title:"Fraud review pipeline",description:"Checks incoming claims against historical activity for anomalies.",infoItems:[{label:"Created",value:"Sep 18, 2024"},{label:"Updated",value:"Oct 2, 2024"}]}},v={render:t=>r.jsx(g,{maxWidth:"520px",children:r.jsx(p,{...t})})},I={render:t=>{const e=[r.jsx(W,{size:"md",variant:"solid",children:r.jsxs(m,{gap:"2px",children:[r.jsx(T,{as:U,boxSize:"18px"}),r.jsx(u,{children:"Run"})]})},"run"),r.jsxs(A,{children:[r.jsx(P,{asChild:!0,children:r.jsx(W,{size:"md",variant:"outline","aria-label":"Options menu",children:r.jsx(T,{as:D,boxSize:"18px"})})}),r.jsx(q,{children:r.jsxs($,{minW:"240px",bg:"bg",children:[r.jsx(N,{id:"favorite",primaryLabel:"Feature pipeline",secondaryLabel:"Pin to overview",leftIcon:K}),r.jsx(N,{id:"restrict",primaryLabel:"Restrict access",secondaryLabel:"Limit to admins",leftIcon:G}),r.jsx(H,{}),r.jsx(N,{id:"settings",primaryLabel:"Pipeline settings",secondaryLabel:"Configure inputs and outputs",leftIcon:O})]})})]},"options")];return r.jsx(g,{maxWidth:"520px",children:r.jsx(p,{...t,actions:e})})}},k={args:{badge:r.jsx(E,{size:"lg",variant:"subtle",colorPalette:"blue",children:"Pipeline"})},render:t=>r.jsx(g,{maxWidth:"520px",children:r.jsx(p,{...t})})},C={args:{title:"Northwind Traders Q4 validation",description:"Monthly invoice and credit memo validation set with regional edge cases, multi-currency rounding, and fallback parsing rules.",infoItems:[{label:"Rows",value:"1,248"},{label:"Coverage",value:"85%"}]},render:t=>r.jsx(g,{maxWidth:"520px",children:r.jsx(p,{...t})})};v.parameters={...v.parameters,docs:{...v.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
render: (args: InfoCardArgs) => <Box maxWidth="520px">
|
|
3
|
-
<InfoCard {...args} />
|
|
4
|
-
</Box>
|
|
5
|
-
}`,...v.parameters?.docs?.source}}};I.parameters={...I.parameters,docs:{...I.parameters?.docs,source:{originalSource:`{
|
|
6
|
-
render: (args: InfoCardArgs) => {
|
|
7
|
-
const actions = [<Button key="run" size="md" variant="solid">
|
|
8
|
-
<HStack gap="2px">
|
|
9
|
-
<Icon as={PlayIcon} boxSize="18px" />
|
|
10
|
-
<Text>Run</Text>
|
|
11
|
-
</HStack>
|
|
12
|
-
</Button>, <Menu.Root key="options">
|
|
13
|
-
<Menu.Trigger asChild>
|
|
14
|
-
<Button size="md" variant="outline" aria-label="Options menu">
|
|
15
|
-
<Icon as={MoreHorizontal} boxSize="18px" />
|
|
16
|
-
</Button>
|
|
17
|
-
</Menu.Trigger>
|
|
18
|
-
<Menu.Positioner>
|
|
19
|
-
<Menu.Content minW="240px" bg="bg">
|
|
20
|
-
<MenuItem id="favorite" primaryLabel="Feature pipeline" secondaryLabel="Pin to overview" leftIcon={Sparkles} />
|
|
21
|
-
<MenuItem id="restrict" primaryLabel="Restrict access" secondaryLabel="Limit to admins" leftIcon={ShieldCheck} />
|
|
22
|
-
<Menu.Separator />
|
|
23
|
-
<MenuItem id="settings" primaryLabel="Pipeline settings" secondaryLabel="Configure inputs and outputs" leftIcon={Settings} />
|
|
24
|
-
</Menu.Content>
|
|
25
|
-
</Menu.Positioner>
|
|
26
|
-
</Menu.Root>];
|
|
27
|
-
return <Box maxWidth="520px">
|
|
28
|
-
<InfoCard {...args} actions={actions} />
|
|
29
|
-
</Box>;
|
|
30
|
-
}
|
|
31
|
-
}`,...I.parameters?.docs?.source}}};k.parameters={...k.parameters,docs:{...k.parameters?.docs,source:{originalSource:`{
|
|
32
|
-
args: {
|
|
33
|
-
badge: <Badge size="lg" variant="subtle" colorPalette="blue">
|
|
34
|
-
Pipeline
|
|
35
|
-
</Badge>
|
|
36
|
-
},
|
|
37
|
-
render: (args: InfoCardArgs) => <Box maxWidth="520px">
|
|
38
|
-
<InfoCard {...args} />
|
|
39
|
-
</Box>
|
|
40
|
-
}`,...k.parameters?.docs?.source}}};C.parameters={...C.parameters,docs:{...C.parameters?.docs,source:{originalSource:`{
|
|
41
|
-
args: {
|
|
42
|
-
title: "Northwind Traders Q4 validation",
|
|
43
|
-
description: "Monthly invoice and credit memo validation set with regional edge cases, multi-currency rounding, and fallback parsing rules.",
|
|
44
|
-
infoItems: [{
|
|
45
|
-
label: "Rows",
|
|
46
|
-
value: "1,248"
|
|
47
|
-
}, {
|
|
48
|
-
label: "Coverage",
|
|
49
|
-
value: "85%"
|
|
50
|
-
}]
|
|
51
|
-
},
|
|
52
|
-
render: (args: InfoCardArgs) => <Box maxWidth="520px">
|
|
53
|
-
<InfoCard {...args} />
|
|
54
|
-
</Box>
|
|
55
|
-
}`,...C.parameters?.docs?.source}}};const _e=["Default","WithActions","WithBadge","LongCopy"];export{v as Default,C as LongCopy,I as WithActions,k as WithBadge,_e as __namedExportsOrder,Te as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as p}from"./create-recipe-context-BU56IzEo.js";import{r as n,j as a}from"./iframe-B8FSoBNY.js";import{m as i,a as m}from"./factory-BR3bc_RM.js";import{u}from"./use-field-context-DoxKQlMm.js";const t=n.forwardRef((e,r)=>{const o=u(),s=i(o?.getInputProps(),e);return a.jsx(m.input,{...s,ref:r})});t.displayName="FieldInput";const{withContext:c}=p({key:"input"}),I=c(t);export{I};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./iframe-B8FSoBNY.js";import{c as h}from"./compiler-runtime-BXE7OOXE.js";import{T as g}from"./index-cFwdnc0b.js";import{C as b}from"./chevron-right-owK1wZnx.js";import{B as j}from"./index-B0y2_lLF.js";import{F as y}from"./flex-DAJL4AFZ.js";import{S as C}from"./stack-CN4X31TA.js";import{C as _,a as R,b as S,c as I}from"./collapsible-DBDG7h1r.js";import{a as T}from"./menu-item-CrqDaj9K.js";const q=d=>{const e=h.c(17),{children:f,title:n,defaultOpen:x,action:a}=d,u=x===void 0?!0:x;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={background:"bg.muted"},e[0]=m):m=e[0];let i;e[1]!==n?(i=n&&t.jsx(g,{fontWeight:"600",textStyle:"label/S/medium",children:n}),e[1]=n,e[2]=i):i=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(_,{transition:"transform 0.2s",_open:{transform:"rotate(90deg)"},children:t.jsx(b,{size:16})}),e[3]=c):c=e[3];let o;e[4]!==i?(o=t.jsxs(R,{_hover:m,borderRadius:"xs",padding:"sm",height:"2rem",display:"flex",gap:"2",alignItems:"center",cursor:"pointer",children:[i,c]}),e[4]=i,e[5]=o):o=e[5];let s;e[6]!==a?(s=a&&t.jsx(j,{marginLeft:"auto",onClick:k,children:a}),e[6]=a,e[7]=s):s=e[7];let r;e[8]!==o||e[9]!==s?(r=t.jsxs(y,{children:[o,s]}),e[8]=o,e[9]=s,e[10]=r):r=e[10];let l;e[11]!==f?(l=t.jsx(S,{children:t.jsx(T,{children:t.jsx(C,{gap:"0",paddingLeft:"xs",paddingY:"xs",children:f})})}),e[11]=f,e[12]=l):l=e[12];let p;return e[13]!==u||e[14]!==r||e[15]!==l?(p=t.jsxs(I,{defaultOpen:u,width:"full",children:[r,l]}),e[13]=u,e[14]=r,e[15]=l,e[16]=p):p=e[16],p};q.__docgenInfo={description:"A collapsible component that displays a section of items (typically MenuItems).",methods:[],displayName:"ItemSection",props:{children:{required:!0,tsType:{name:"ReactNode"},description:""},title:{required:!1,tsType:{name:"string"},description:""},defaultOpen:{required:!1,tsType:{name:"boolean"},description:""},action:{required:!1,tsType:{name:"ReactNode"},description:""}}};function k(d){return d.stopPropagation()}export{q as I};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./iframe-B8FSoBNY.js";import{I as t}from"./item-section-AoQrVPNJ.js";import{M as r}from"./menu-item-CrqDaj9K.js";import{F as n}from"./file-text-D5m8MJlG.js";import{F as m}from"./folder-C5dba_Co.js";import{S as p}from"./settings-DUgg22A7.js";import{S as l}from"./stack-CN4X31TA.js";import{S as c}from"./star-CvcHIXRa.js";import{B as d}from"./index-B0y2_lLF.js";import"./preload-helper-PPVm8Dsz.js";import"./compiler-runtime-BXE7OOXE.js";import"./index-cFwdnc0b.js";import"./create-recipe-context-BU56IzEo.js";import"./factory-DAJZwK4o.js";import"./chevron-right-owK1wZnx.js";import"./createLucideIcon-CcBBUKX8.js";import"./flex-DAJL4AFZ.js";import"./collapsible-DBDG7h1r.js";import"./create-slot-recipe-context-DAhDE6G_.js";import"./factory-BR3bc_RM.js";import"./collapsible-content-B1Uq3jUM.js";import"./create-split-props-u5h9OPvL.js";import"./normalize-props-D7NI5JRu.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./mutation-observer-CAfGweIM.js";import"./tabbable-DHAf8oAu.js";import"./computed-style-C0hzrq9-.js";import"./number-C92MPsRM.js";import"./tooltip-DZxUoouw.js";import"./portal-CZHfPTRw.js";import"./tooltip-C_a-XGZ8.js";import"./use-presence-context-DK2PGZth.js";import"./overflow-CkG1DOya.js";import"./icons-WRA1cA-W.js";import"./typeahead-CuY9WxfQ.js";import"./dismissable-layer-Cc5dFRd8.js";import"./icon-C8FN9JqD.js";import"./badge-CtgJasjB.js";const Z={title:"Components/ItemSection",component:t,decorators:[s=>e.jsx(d,{padding:"lg",background:"bg",maxWidth:"300px",children:e.jsx(s,{})})]},o={render:()=>e.jsxs(t,{title:"Files",children:[e.jsx(r,{primaryLabel:"Project Overview",leftIcon:n}),e.jsx(r,{primaryLabel:"Assets",leftIcon:m}),e.jsx(r,{primaryLabel:"Settings",leftIcon:p})]})},a={render:()=>e.jsxs(l,{gap:"sm",children:[e.jsxs(t,{title:"Favorites",children:[e.jsx(r,{primaryLabel:"Main Dashboard",leftIcon:c}),e.jsx(r,{primaryLabel:"Reports",leftIcon:n})]}),e.jsxs(t,{title:"Recent",defaultOpen:!1,children:[e.jsx(r,{primaryLabel:"Project Alpha",leftIcon:m}),e.jsx(r,{primaryLabel:"Project Beta",leftIcon:m})]})]})},i={render:()=>e.jsxs(t,{title:"Members",children:[e.jsx(r,{primaryLabel:"John Doe",secondaryLabel:"Admin"}),e.jsx(r,{primaryLabel:"Jane Smith",secondaryLabel:"Editor"}),e.jsx(r,{primaryLabel:"Bob Wilson",secondaryLabel:"Viewer",isDisabled:!0})]})};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
render: () => <ItemSection title="Files">
|
|
3
|
-
<MenuItem primaryLabel="Project Overview" leftIcon={FileText} />
|
|
4
|
-
<MenuItem primaryLabel="Assets" leftIcon={Folder} />
|
|
5
|
-
<MenuItem primaryLabel="Settings" leftIcon={Settings} />
|
|
6
|
-
</ItemSection>
|
|
7
|
-
}`,...o.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
|
|
8
|
-
render: () => <Stack gap="sm">
|
|
9
|
-
<ItemSection title="Favorites">
|
|
10
|
-
<MenuItem primaryLabel="Main Dashboard" leftIcon={Star} />
|
|
11
|
-
<MenuItem primaryLabel="Reports" leftIcon={FileText} />
|
|
12
|
-
</ItemSection>
|
|
13
|
-
<ItemSection title="Recent" defaultOpen={false}>
|
|
14
|
-
<MenuItem primaryLabel="Project Alpha" leftIcon={Folder} />
|
|
15
|
-
<MenuItem primaryLabel="Project Beta" leftIcon={Folder} />
|
|
16
|
-
</ItemSection>
|
|
17
|
-
</Stack>
|
|
18
|
-
}`,...a.parameters?.docs?.source}}};i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
|
|
19
|
-
render: () => <ItemSection title="Members">
|
|
20
|
-
<MenuItem primaryLabel="John Doe" secondaryLabel="Admin" />
|
|
21
|
-
<MenuItem primaryLabel="Jane Smith" secondaryLabel="Editor" />
|
|
22
|
-
<MenuItem primaryLabel="Bob Wilson" secondaryLabel="Viewer" isDisabled />
|
|
23
|
-
</ItemSection>
|
|
24
|
-
}`,...i.parameters?.docs?.source}}};const $=["Default","MultipleSections","WithSecondaryLabels"];export{o as Default,a as MultipleSections,i as WithSecondaryLabels,$ as __namedExportsOrder,Z as default};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{j as y,e as Fn,r as R,R as Et,f as Vs}from"./iframe-B8FSoBNY.js";import{c as X}from"./compiler-runtime-BXE7OOXE.js";import{r as An}from"./index-DaXC_qY_.js";import{C as zs,H as Dn}from"./horizontal-menu-stack-Cph6x7ui.js";import{c as Bn}from"./create-slot-recipe-context-DAhDE6G_.js";import{c as Nn}from"./factory-DAJZwK4o.js";import{I as ds,W as fs,b as Un}from"./icons-WRA1cA-W.js";import{T as ht}from"./index-cFwdnc0b.js";import{B as Ce,A as qn}from"./button-C7it2n8t.js";import{S as Q}from"./stack-CN4X31TA.js";import{P as Hn}from"./panel-menu-CqLSrdTB.js";import{T as $n}from"./toaster-d9nN0H7K.js";import{F as Ot}from"./flex-DAJL4AFZ.js";import{B as Qs}from"./index-B0y2_lLF.js";import{H as Kn}from"./h-stack-DWHd8f97.js";import"./preload-helper-PPVm8Dsz.js";import"./index-DpB4ozcR.js";import"./create-recipe-context-BU56IzEo.js";import"./spinner-ZYH_gvW-.js";import"./index-CXwl6T4k.js";import"./factory-BR3bc_RM.js";import"./normalize-props-D7NI5JRu.js";import"./portal-CZHfPTRw.js";import"./dismissable-layer-Cc5dFRd8.js";import"./tabbable-DHAf8oAu.js";import"./overflow-CkG1DOya.js";const[Wn,Vn]=Fn({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:"<Alert />"}),{withProvider:zn,withContext:Ae,useStyles:Qn}=Bn({key:"alert"}),Gn=zn("div","root",{forwardAsChild:!0,wrapElement(t,e){return y.jsx(Wn,{value:{status:e.status||"info"},children:t})}}),ps=Ae("div","title"),Yn=Ae("div","description"),Jn=Ae("div","content"),Xn={info:ds,warning:fs,success:Un,error:fs,neutral:ds},Zn=R.forwardRef(function(e,s){const n=Vn(),r=Qn(),o=typeof n.status=="string"?Xn[n.status]:R.Fragment,{children:a=y.jsx(o,{}),...i}=e;return y.jsx(Nn.span,{ref:s,...i,css:[r.indicator,e.css],children:a})});var ie=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},tr={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},er=class{#t=tr;#s=!1;setTimeoutProvider(t){this.#t=t}setTimeout(t,e){return this.#t.setTimeout(t,e)}clearTimeout(t){this.#t.clearTimeout(t)}setInterval(t,e){return this.#t.setInterval(t,e)}clearInterval(t){this.#t.clearInterval(t)}},Le=new er;function sr(t){setTimeout(t,0)}var ae=typeof window>"u"||"Deno"in globalThis;function W(){}function nr(t,e){return typeof t=="function"?t(e):t}function rr(t){return typeof t=="number"&&t>=0&&t!==1/0}function or(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Me(t,e){return typeof t=="function"?t(e):t}function ir(t,e){return typeof t=="function"?t(e):t}function ms(t,e){const{type:s="all",exact:n,fetchStatus:r,predicate:o,queryKey:a,stale:i}=t;if(a){if(n){if(e.queryHash!==De(a,e.options))return!1}else if(!Ft(e.queryKey,a))return!1}if(s!=="all"){const c=e.isActive();if(s==="active"&&!c||s==="inactive"&&c)return!1}return!(typeof i=="boolean"&&e.isStale()!==i||r&&r!==e.state.fetchStatus||o&&!o(e))}function gs(t,e){const{exact:s,status:n,predicate:r,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(s){if(jt(e.options.mutationKey)!==jt(o))return!1}else if(!Ft(e.options.mutationKey,o))return!1}return!(n&&e.state.status!==n||r&&!r(e))}function De(t,e){return(e?.queryKeyHashFn||jt)(t)}function jt(t){return JSON.stringify(t,(e,s)=>Te(s)?Object.keys(s).sort().reduce((n,r)=>(n[r]=s[r],n),{}):s)}function Ft(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(s=>Ft(t[s],e[s])):!1}var ar=Object.prototype.hasOwnProperty;function Gs(t,e,s=0){if(t===e)return t;if(s>500)return e;const n=ys(t)&&ys(e);if(!n&&!(Te(t)&&Te(e)))return e;const o=(n?t:Object.keys(t)).length,a=n?e:Object.keys(e),i=a.length,c=n?new Array(i):{};let l=0;for(let u=0;u<i;u++){const h=n?u:a[u],d=t[h],f=e[h];if(d===f){c[h]=d,(n?u<o:ar.call(t,h))&&l++;continue}if(d===null||f===null||typeof d!="object"||typeof f!="object"){c[h]=f;continue}const p=Gs(d,f,s+1);c[h]=p,p===d&&l++}return o===i&&l===o?t:c}function ys(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Te(t){if(!vs(t))return!1;const e=t.constructor;if(e===void 0)return!0;const s=e.prototype;return!(!vs(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function vs(t){return Object.prototype.toString.call(t)==="[object Object]"}function cr(t){return new Promise(e=>{Le.setTimeout(e,t)})}function lr(t,e,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,e):s.structuralSharing!==!1?Gs(t,e):e}function ur(t,e,s=0){const n=[...t,e];return s&&n.length>s?n.slice(1):n}function hr(t,e,s=0){const n=[e,...t];return s&&n.length>s?n.slice(0,-1):n}var Be=Symbol();function Ys(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===Be?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function dr(t,e,s){let n=!1,r;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(r??=e(),n||(n=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),t}var fr=class extends ie{#t;#s;#e;constructor(){super(),this.#e=t=>{if(!ae&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#s||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(t){this.#e=t,this.#s?.(),this.#s=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Js=new fr;function pr(){let t,e;const s=new Promise((r,o)=>{t=r,e=o});s.status="pending",s.catch(()=>{});function n(r){Object.assign(s,r),delete s.resolve,delete s.reject}return s.resolve=r=>{n({status:"fulfilled",value:r}),t(r)},s.reject=r=>{n({status:"rejected",reason:r}),e(r)},s}var mr=sr;function gr(){let t=[],e=0,s=i=>{i()},n=i=>{i()},r=mr;const o=i=>{e?t.push(i):r(()=>{s(i)})},a=()=>{const i=t;t=[],i.length&&r(()=>{n(()=>{i.forEach(c=>{s(c)})})})};return{batch:i=>{let c;e++;try{c=i()}finally{e--,e||a()}return c},batchCalls:i=>(...c)=>{o(()=>{i(...c)})},schedule:o,setNotifyFunction:i=>{s=i},setBatchNotifyFunction:i=>{n=i},setScheduler:i=>{r=i}}}var A=gr(),yr=class extends ie{#t=!0;#s;#e;constructor(){super(),this.#e=t=>{if(!ae&&window.addEventListener){const e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#s||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(t){this.#e=t,this.#s?.(),this.#s=t(this.setOnline.bind(this))}setOnline(t){this.#t!==t&&(this.#t=t,this.listeners.forEach(s=>{s(t)}))}isOnline(){return this.#t}},Xt=new yr;function vr(t){return Math.min(1e3*2**t,3e4)}function Xs(t){return(t??"online")==="online"?Xt.isOnline():!0}var ke=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Zs(t){let e=!1,s=0,n;const r=pr(),o=()=>r.status!=="pending",a=m=>{if(!o()){const g=new ke(m);d(g),t.onCancel?.(g)}},i=()=>{e=!0},c=()=>{e=!1},l=()=>Js.isFocused()&&(t.networkMode==="always"||Xt.isOnline())&&t.canRun(),u=()=>Xs(t.networkMode)&&t.canRun(),h=m=>{o()||(n?.(),r.resolve(m))},d=m=>{o()||(n?.(),r.reject(m))},f=()=>new Promise(m=>{n=g=>{(o()||l())&&m(g)},t.onPause?.()}).then(()=>{n=void 0,o()||t.onContinue?.()}),p=()=>{if(o())return;let m;const g=s===0?t.initialPromise:void 0;try{m=g??t.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(h).catch(v=>{if(o())return;const S=t.retry??(ae?0:3),w=t.retryDelay??vr,P=typeof w=="function"?w(s,v):w,C=S===!0||typeof S=="number"&&s<S||typeof S=="function"&&S(s,v);if(e||!C){d(v);return}s++,t.onFail?.(s,v),cr(P).then(()=>l()?void 0:f()).then(()=>{e?d(v):p()})})};return{promise:r,status:()=>r.status,cancel:a,continue:()=>(n?.(),r),cancelRetry:i,continueRetry:c,canStart:u,start:()=>(u()?p():f().then(p),r)}}var tn=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),rr(this.gcTime)&&(this.#t=Le.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ae?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Le.clearTimeout(this.#t),this.#t=void 0)}},Sr=class extends tn{#t;#s;#e;#r;#n;#i;#a;constructor(t){super(),this.#a=!1,this.#i=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#e=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=Ps(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(t){if(this.options={...this.#i,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=Ps(this.options);e.data!==void 0&&(this.setState(Ss(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#e.remove(this)}setData(t,e){const s=lr(this.state.data,t,this.options);return this.#o({data:s,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),s}setState(t,e){this.#o({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#n?.promise;return this.#n?.cancel(t),e?e.then(W).catch(W):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(t=>ir(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Be||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Me(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!or(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#n&&(this.#a?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#e.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(t&&this.setOptions(t),!this.options.queryFn){const i=this.observers.find(c=>c.options.queryFn);i&&this.setOptions(i.options)}const s=new AbortController,n=i=>{Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(this.#a=!0,s.signal)})},r=()=>{const i=Ys(this.options,e),l=(()=>{const u={client:this.#r,queryKey:this.queryKey,meta:this.meta};return n(u),u})();return this.#a=!1,this.options.persister?this.options.persister(i,l,this):i(l)},a=(()=>{const i={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:r};return n(i),i})();this.options.behavior?.onFetch(a,this),this.#s=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#o({type:"fetch",meta:a.fetchOptions?.meta}),this.#n=Zs({initialPromise:e?.initialPromise,fn:a.fetchFn,onCancel:i=>{i instanceof ke&&i.revert&&this.setState({...this.#s,fetchStatus:"idle"}),s.abort()},onFail:(i,c)=>{this.#o({type:"failed",failureCount:i,error:c})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const i=await this.#n.start();if(i===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(i),this.#e.config.onSuccess?.(i,this),this.#e.config.onSettled?.(i,this.state.error,this),i}catch(i){if(i instanceof ke){if(i.silent)return this.#n.promise;if(i.revert){if(this.state.data===void 0)throw i;return this.state.data}}throw this.#o({type:"error",error:i}),this.#e.config.onError?.(i,this),this.#e.config.onSettled?.(this.state.data,i,this),i}finally{this.scheduleGc()}}#o(t){const e=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Pr(s.data,this.options),fetchMeta:t.meta??null};case"success":const n={...s,...Ss(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#s=t.manual?n:void 0,n;case"error":const r=t.error;return{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=e(this.state),A.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#e.notify({query:this,type:"updated",action:t})})}};function Pr(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Xs(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Ss(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ps(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,s=e!==void 0,n=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}function bs(t){return{onFetch:(e,s)=>{const n=e.options,r=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],a=e.state.data?.pageParams||[];let i={pages:[],pageParams:[]},c=0;const l=async()=>{let u=!1;const h=p=>{dr(p,()=>e.signal,()=>u=!0)},d=Ys(e.options,e.fetchOptions),f=async(p,m,g)=>{if(u)return Promise.reject();if(m==null&&p.pages.length)return Promise.resolve(p);const S=(()=>{const L={client:e.client,queryKey:e.queryKey,pageParam:m,direction:g?"backward":"forward",meta:e.options.meta};return h(L),L})(),w=await d(S),{maxPages:P}=e.options,C=g?hr:ur;return{pages:C(p.pages,w,P),pageParams:C(p.pageParams,m,P)}};if(r&&o.length){const p=r==="backward",m=p?br:ws,g={pages:o,pageParams:a},v=m(n,g);i=await f(g,v,p)}else{const p=t??o.length;do{const m=c===0?a[0]??n.initialPageParam:ws(n,i);if(c>0&&m==null)break;i=await f(i,m),c++}while(c<p)}return i};e.options.persister?e.fetchFn=()=>e.options.persister?.(l,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s):e.fetchFn=l}}}function ws(t,{pages:e,pageParams:s}){const n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,s[n],s):void 0}function br(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}var wr=class extends tn{#t;#s;#e;#r;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#e=t.mutationCache,this.#s=[],this.state=t.state||xr(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#s.includes(t)||(this.#s.push(t),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#s=this.#s.filter(e=>e!==t),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#s.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#n({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Zs({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(o,a)=>{this.#n({type:"failed",failureCount:o,error:a})},onPause:()=>{this.#n({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#r.canStart();try{if(n)e();else{this.#n({type:"pending",variables:t,isPaused:r}),this.#e.config.onMutate&&await this.#e.config.onMutate(t,this,s);const a=await this.options.onMutate?.(t,s);a!==this.state.context&&this.#n({type:"pending",context:a,variables:t,isPaused:r})}const o=await this.#r.start();return await this.#e.config.onSuccess?.(o,t,this.state.context,this,s),await this.options.onSuccess?.(o,t,this.state.context,s),await this.#e.config.onSettled?.(o,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(o,null,t,this.state.context,s),this.#n({type:"success",data:o}),o}catch(o){try{await this.#e.config.onError?.(o,t,this.state.context,this,s)}catch(a){Promise.reject(a)}try{await this.options.onError?.(o,t,this.state.context,s)}catch(a){Promise.reject(a)}try{await this.#e.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,s)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,o,t,this.state.context,s)}catch(a){Promise.reject(a)}throw this.#n({type:"error",error:o}),o}finally{this.#e.runNext(this)}}#n(t){const e=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),A.batch(()=>{this.#s.forEach(s=>{s.onMutationUpdate(t)}),this.#e.notify({mutation:this,type:"updated",action:t})})}};function xr(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Rr=class extends ie{constructor(t={}){super(),this.config=t,this.#t=new Set,this.#s=new Map,this.#e=0}#t;#s;#e;build(t,e,s){const n=new wr({client:t,mutationCache:this,mutationId:++this.#e,options:t.defaultMutationOptions(e),state:s});return this.add(n),n}add(t){this.#t.add(t);const e=$t(t);if(typeof e=="string"){const s=this.#s.get(e);s?s.push(t):this.#s.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){const e=$t(t);if(typeof e=="string"){const s=this.#s.get(e);if(s)if(s.length>1){const n=s.indexOf(t);n!==-1&&s.splice(n,1)}else s[0]===t&&this.#s.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=$t(t);if(typeof e=="string"){const n=this.#s.get(e)?.find(r=>r.state.status==="pending");return!n||n===t}else return!0}runNext(t){const e=$t(t);return typeof e=="string"?this.#s.get(e)?.find(n=>n!==t&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){A.batch(()=>{this.#t.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#t.clear(),this.#s.clear()})}getAll(){return Array.from(this.#t)}find(t){const e={exact:!0,...t};return this.getAll().find(s=>gs(e,s))}findAll(t={}){return this.getAll().filter(e=>gs(t,e))}notify(t){A.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return A.batch(()=>Promise.all(t.map(e=>e.continue().catch(W))))}};function $t(t){return t.options.scope?.id}var _r=class extends ie{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,e,s){const n=e.queryKey,r=e.queryHash??De(n,e);let o=this.get(r);return o||(o=new Sr({client:t,queryKey:n,queryHash:r,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(n)}),this.add(o)),o}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#t.get(t.queryHash);e&&(t.destroy(),e===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){A.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(s=>ms(e,s))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(s=>ms(t,s)):e}notify(t){A.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){A.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){A.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Cr=class{#t;#s;#e;#r;#n;#i;#a;#o;constructor(t={}){this.#t=t.queryCache||new _r,this.#s=t.mutationCache||new Rr,this.#e=t.defaultOptions||{},this.#r=new Map,this.#n=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=Js.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=Xt.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(t){return this.#t.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#s.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#t.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=this.#t.build(this,e),n=s.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(Me(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return this.#t.findAll(t).map(({queryKey:e,state:s})=>{const n=s.data;return[e,n]})}setQueryData(t,e,s){const n=this.defaultQueryOptions({queryKey:t}),o=this.#t.get(n.queryHash)?.state.data,a=nr(e,o);if(a!==void 0)return this.#t.build(this,n).setData(a,{...s,manual:!0})}setQueriesData(t,e,s){return A.batch(()=>this.#t.findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,s)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#t.get(e.queryHash)?.state}removeQueries(t){const e=this.#t;A.batch(()=>{e.findAll(t).forEach(s=>{e.remove(s)})})}resetQueries(t,e){const s=this.#t;return A.batch(()=>(s.findAll(t).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const s={revert:!0,...e},n=A.batch(()=>this.#t.findAll(t).map(r=>r.cancel(s)));return Promise.all(n).then(W).catch(W)}invalidateQueries(t,e={}){return A.batch(()=>(this.#t.findAll(t).forEach(s=>{s.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const s={...e,cancelRefetch:e.cancelRefetch??!0},n=A.batch(()=>this.#t.findAll(t).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let o=r.fetch(void 0,s);return s.throwOnError||(o=o.catch(W)),r.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(W)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const s=this.#t.build(this,e);return s.isStaleByTime(Me(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(W).catch(W)}fetchInfiniteQuery(t){return t.behavior=bs(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(W).catch(W)}ensureInfiniteQueryData(t){return t.behavior=bs(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Xt.isOnline()?this.#s.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#s}getDefaultOptions(){return this.#e}setDefaultOptions(t){this.#e=t}setQueryDefaults(t,e){this.#r.set(jt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#r.values()],s={};return e.forEach(n=>{Ft(t,n.queryKey)&&Object.assign(s,n.defaultOptions)}),s}setMutationDefaults(t,e){this.#n.set(jt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#n.values()],s={};return e.forEach(n=>{Ft(t,n.mutationKey)&&Object.assign(s,n.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#e.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=De(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Be&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#e.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#t.clear(),this.#s.clear()}},Lr=R.createContext(void 0),Mr=({client:t,children:e})=>(R.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),y.jsx(Lr.Provider,{value:t,children:e})),E=(t=>(t[t.None=0]="None",t[t.Mutable=1]="Mutable",t[t.Watching=2]="Watching",t[t.RecursedCheck=4]="RecursedCheck",t[t.Recursed=8]="Recursed",t[t.Dirty=16]="Dirty",t[t.Pending=32]="Pending",t))(E||{});function en({update:t,notify:e,unwatched:s}){return{link:n,unlink:r,propagate:o,checkDirty:a,shallowPropagate:i};function n(l,u,h){const d=u.depsTail;if(d!==void 0&&d.dep===l)return;const f=d!==void 0?d.nextDep:u.deps;if(f!==void 0&&f.dep===l){f.version=h,u.depsTail=f;return}const p=l.subsTail;if(p!==void 0&&p.version===h&&p.sub===u)return;const m=u.depsTail=l.subsTail={version:h,dep:l,sub:u,prevDep:d,nextDep:f,prevSub:p,nextSub:void 0};f!==void 0&&(f.prevDep=m),d!==void 0?d.nextDep=m:u.deps=m,p!==void 0?p.nextSub=m:l.subs=m}function r(l,u=l.sub){const h=l.dep,d=l.prevDep,f=l.nextDep,p=l.nextSub,m=l.prevSub;return f!==void 0?f.prevDep=d:u.depsTail=d,d!==void 0?d.nextDep=f:u.deps=f,p!==void 0?p.prevSub=m:h.subsTail=m,m!==void 0?m.nextSub=p:(h.subs=p)===void 0&&s(h),f}function o(l){let u=l.nextSub,h;t:do{const d=l.sub;let f=d.flags;if(f&60?f&12?f&4?!(f&48)&&c(l,d)?(d.flags=f|40,f&=1):f=0:d.flags=f&-9|32:f=0:d.flags=f|32,f&2&&e(d),f&1){const p=d.subs;if(p!==void 0){const m=(l=p).nextSub;m!==void 0&&(h={value:u,prev:h},u=m);continue}}if((l=u)!==void 0){u=l.nextSub;continue}for(;h!==void 0;)if(l=h.value,h=h.prev,l!==void 0){u=l.nextSub;continue t}break}while(!0)}function a(l,u){let h,d=0,f=!1;t:do{const p=l.dep,m=p.flags;if(u.flags&16)f=!0;else if((m&17)===17){if(t(p)){const g=p.subs;g.nextSub!==void 0&&i(g),f=!0}}else if((m&33)===33){(l.nextSub!==void 0||l.prevSub!==void 0)&&(h={value:l,prev:h}),l=p.deps,u=p,++d;continue}if(!f){const g=l.nextDep;if(g!==void 0){l=g;continue}}for(;d--;){const g=u.subs,v=g.nextSub!==void 0;if(v?(l=h.value,h=h.prev):l=g,f){if(t(u)){v&&i(g),u=l.sub;continue}f=!1}else u.flags&=-33;u=l.sub;const S=l.nextDep;if(S!==void 0){l=S;continue t}}return f}while(!0)}function i(l){do{const u=l.sub,h=u.flags;(h&48)===32&&(u.flags=h|16,(h&6)===2&&e(u))}while((l=l.nextSub)!==void 0)}function c(l,u){let h=u.depsTail;for(;h!==void 0;){if(h===l)return!0;h=h.prevDep}return!1}}let Ne=0,it=0,kt=0;const Y=[],{link:wa,unlink:sn,propagate:xa,checkDirty:Tr,shallowPropagate:Ra}=en({update(t){return t.depsTail!==void 0?Or(t):jr(t)},notify(t){let e=kt,s=e;do if(Y[e++]=t,t.flags&=-3,t=t.subs?.sub,t===void 0||!(t.flags&2))break;while(!0);for(kt=e;s<--e;){const n=Y[s];Y[s++]=Y[e],Y[e]=n}},unwatched(t){t.flags&1?t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=17,ce(t)):Dr.call(t)}});function kr(){return Ne}function Ir(){++Ne}function Er(){--Ne||Ar()}function Or(t){t.depsTail=void 0,t.flags=5;try{const e=t.value;return e!==(t.value=t.getter(e))}finally{t.flags&=-5,ce(t)}}function jr(t){return t.flags=1,t.currentValue!==(t.currentValue=t.pendingValue)}function Fr(t){const e=t.flags;if(e&16||e&32&&Tr(t.deps,t)){t.depsTail=void 0,t.flags=6;try{t.fn()}finally{t.flags&=-5,ce(t)}}else t.flags=2}function Ar(){try{for(;it<kt;){const t=Y[it];Y[it++]=void 0,Fr(t)}}finally{for(;it<kt;){const t=Y[it];Y[it++]=void 0,t.flags|=10}it=0,kt=0}}function Dr(){this.depsTail=void 0,this.flags=0,ce(this);const t=this.subs;t!==void 0&&sn(t)}function ce(t){const e=t.depsTail;let s=e!==void 0?e.nextDep:t.deps;for(;s!==void 0;)s=sn(s,t)}function Ue(t,e,s){const n=typeof t=="object",r=n?t:void 0;return{next:(n?t.next:t)?.bind(r),error:(n?t.error:e)?.bind(r),complete:(n?t.complete:s)?.bind(r)}}const Ie=[];let Qt=0;const{link:xs,unlink:Br,propagate:Nr,checkDirty:nn,shallowPropagate:Rs}=en({update(t){return t._update()},notify(t){Ie[Ee++]=t,t.flags&=~E.Watching},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=E.Mutable|E.Dirty,Zt(t))}});let Kt=0,Ee=0,z;function Zt(t){const e=t.depsTail;let s=e!==void 0?e.nextDep:t.deps;for(;s!==void 0;)s=Br(s,t)}function rn(){if(!(kr()>0)){for(;Kt<Ee;){const t=Ie[Kt];Ie[Kt++]=void 0,t.notify()}Kt=0,Ee=0}}function on(t,e){const s=typeof t=="function",n=t,r={_snapshot:s?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:s?E.None:E.Mutable,get(){return z!==void 0&&xs(r,z,Qt),r._snapshot},subscribe(o){const a=Ue(o),i={current:!1},c=Ur(()=>{r.get(),i.current?a.next?.(r._snapshot):i.current=!0});return{unsubscribe:()=>{c.stop()}}},_update(o){const a=z,i=Object.is;z=r,++Qt,r.depsTail=void 0,s&&(r.flags=E.Mutable|E.RecursedCheck);try{const c=r._snapshot,l=typeof o=="function"?o(c):o===void 0&&s?n(c):o;return c===void 0||!i(c,l)?(r._snapshot=l,!0):!1}finally{z=a,s&&(r.flags&=~E.RecursedCheck),Zt(r)}}};return s?(r.flags=E.Mutable|E.Dirty,r.get=function(){const o=r.flags;if(o&E.Dirty||o&E.Pending&&nn(r.deps,r)){if(r._update()){const a=r.subs;a!==void 0&&Rs(a)}}else o&E.Pending&&(r.flags=o&~E.Pending);return z!==void 0&&xs(r,z,Qt),r._snapshot}):r.set=function(o){if(r._update(o)){const a=r.subs;a!==void 0&&(Nr(a),Rs(a),rn())}},r}function Ur(t){const e=()=>{const n=z;z=s,++Qt,s.depsTail=void 0,s.flags=E.Watching|E.RecursedCheck;try{return t()}finally{z=n,s.flags&=~E.RecursedCheck,Zt(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:E.Watching|E.RecursedCheck,notify(){const n=this.flags;n&E.Dirty||n&E.Pending&&nn(this.deps,this)?e():this.flags=E.Watching},stop(){this.flags=E.None,this.depsTail=void 0,Zt(this)}};return e(),s}class qr{constructor(e){this.atom=on(e)}setState(e){this.atom.set(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(Ue(e))}}class Hr{constructor(e){this.atom=on(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(Ue(e))}}function $r(t){return typeof t=="function"?new Hr(t):new qr(t)}function Kr(t){try{Ir(),t()}finally{Er(),rn()}}const nt="__TSR_index",_s="popstate",Cs="beforeunload";function an(t){let e=t.getLocation();const s=new Set,n=a=>{e=t.getLocation(),s.forEach(i=>i({location:e,action:a}))},r=a=>{t.notifyOnIndexChange??!0?n(a):e=t.getLocation()},o=async({task:a,navigateOpts:i,...c})=>{if(i?.ignoreBlocker??!1){a();return}const u=t.getBlockers?.()??[],h=c.type==="PUSH"||c.type==="REPLACE";if(typeof document<"u"&&u.length&&h)for(const d of u){const f=At(c.path,c.state);if(await d.blockerFn({currentLocation:e,nextLocation:f,action:c.type})){t.onBlocked?.();return}}a()};return{get location(){return e},get length(){return t.getLength()},subscribers:s,subscribe:a=>(s.add(a),()=>{s.delete(a)}),push:(a,i,c)=>{const l=e.state[nt];i=Oe(l+1,i),o({task:()=>{t.pushState(a,i),n({type:"PUSH"})},navigateOpts:c,type:"PUSH",path:a,state:i})},replace:(a,i,c)=>{const l=e.state[nt];i=Oe(l,i),o({task:()=>{t.replaceState(a,i),n({type:"REPLACE"})},navigateOpts:c,type:"REPLACE",path:a,state:i})},go:(a,i)=>{o({task:()=>{t.go(a),r({type:"GO",index:a})},navigateOpts:i,type:"GO"})},back:a=>{o({task:()=>{t.back(a?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:a,type:"BACK"})},forward:a=>{o({task:()=>{t.forward(a?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:a,type:"FORWARD"})},canGoBack:()=>e.state[nt]!==0,createHref:a=>t.createHref(a),block:a=>{if(!t.setBlockers)return()=>{};const i=t.getBlockers?.()??[];return t.setBlockers([...i,a]),()=>{const c=t.getBlockers?.()??[];t.setBlockers?.(c.filter(l=>l!==a))}},flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:n}}function Oe(t,e){e||(e={});const s=qe();return{...e,key:s,__TSR_key:s,[nt]:t}}function Wr(t){const e=typeof document<"u"?window:void 0,s=e.history.pushState,n=e.history.replaceState;let r=[];const o=()=>r,a=b=>r=b,i=(b=>b),c=(()=>At(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));if(!e.history.state?.__TSR_key&&!e.history.state?.key){const b=qe();e.history.replaceState({[nt]:0,key:b,__TSR_key:b},"")}let l=c(),u,h=!1,d=!1,f=!1,p=!1;const m=()=>l;let g,v;const S=()=>{g&&(_._ignoreSubscribers=!0,(g.isPush?e.history.pushState:e.history.replaceState)(g.state,"",g.href),_._ignoreSubscribers=!1,g=void 0,v=void 0,u=void 0)},w=(b,x,k)=>{const M=i(x);v||(u=l),l=At(x,k),g={href:M,state:k,isPush:g?.isPush||b==="push"},v||(v=Promise.resolve().then(()=>S()))},P=b=>{l=c(),_.notify({type:b})},C=async()=>{if(d){d=!1;return}const b=c(),x=b.state[nt]-l.state[nt],k=x===1,M=x===-1,T=!k&&!M||h;h=!1;const F=T?"GO":M?"BACK":"FORWARD",O=T?{type:"GO",index:x}:{type:M?"BACK":"FORWARD"};if(f)f=!1;else{const Z=o();if(typeof document<"u"&&Z.length){for(const V of Z)if(await V.blockerFn({currentLocation:l,nextLocation:b,action:F})){d=!0,e.history.go(1),_.notify(O);return}}}l=c(),_.notify(O)},L=b=>{if(p){p=!1;return}let x=!1;const k=o();if(typeof document<"u"&&k.length)for(const M of k){const T=M.enableBeforeUnload??!0;if(T===!0){x=!0;break}if(typeof T=="function"&&T()===!0){x=!0;break}}if(x)return b.preventDefault(),b.returnValue=""},_=an({getLocation:m,getLength:()=>e.history.length,pushState:(b,x)=>w("push",b,x),replaceState:(b,x)=>w("replace",b,x),back:b=>(b&&(f=!0),p=!0,e.history.back()),forward:b=>{b&&(f=!0),p=!0,e.history.forward()},go:b=>{h=!0,e.history.go(b)},createHref:b=>i(b),flush:S,destroy:()=>{e.history.pushState=s,e.history.replaceState=n,e.removeEventListener(Cs,L,{capture:!0}),e.removeEventListener(_s,C)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:o,setBlockers:a,notifyOnIndexChange:!1});return e.addEventListener(Cs,L,{capture:!0}),e.addEventListener(_s,C),e.history.pushState=function(...b){const x=s.apply(e.history,b);return _._ignoreSubscribers||P("PUSH"),x},e.history.replaceState=function(...b){const x=n.apply(e.history,b);return _._ignoreSubscribers||P("REPLACE"),x},_}function Vr(t={initialEntries:["/"]}){const e=t.initialEntries;let s=t.initialIndex?Math.min(Math.max(t.initialIndex,0),e.length-1):e.length-1;const n=e.map((c,l)=>Oe(l,void 0)),r=()=>At(e[s],n[s]);let o=[];return an({getLocation:r,getLength:()=>e.length,pushState:(c,l)=>{s<e.length-1&&(e.splice(s+1),n.splice(s+1)),n.push(l),e.push(c),s=Math.max(e.length-1,0)},replaceState:(c,l)=>{n[s]=l,e[s]=c},back:()=>{s=Math.max(s-1,0)},forward:()=>{s=Math.min(s+1,e.length-1)},go:c=>{s=Math.min(Math.max(s+c,0),e.length-1)},createHref:c=>c,getBlockers:()=>o,setBlockers:c=>o=c})}function zr(t){let e=t.replace(/[\x00-\x1f\x7f]/g,"");return e.startsWith("//")&&(e="/"+e.replace(/^\/+/,"")),e}function At(t,e){const s=zr(t),n=s.indexOf("#"),r=s.indexOf("?"),o=qe();return{href:s,pathname:s.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:s.length),hash:n>-1?s.substring(n):"",search:r>-1?s.slice(r,n===-1?void 0:n):"",state:e||{[nt]:0,key:o,__TSR_key:o}}}function qe(){return(Math.random()+1).toString(36).substring(7)}const Qr=!1;function It(t){let e;return Kr(()=>{e=t()}),e}function Dt(t){return t[t.length-1]}function Gr(t){return typeof t=="function"}function et(t,e){return Gr(t)?t(e):t}const Yr=Object.prototype.hasOwnProperty,Ls=Object.prototype.propertyIsEnumerable;function D(t,e,s=0){if(t===e)return t;if(s>500)return e;const n=e,r=ks(t)&&ks(n);if(!r&&!(te(t)&&te(n)))return n;const o=r?t:Ms(t);if(!o)return n;const a=r?n:Ms(n);if(!a)return n;const i=o.length,c=a.length,l=r?new Array(c):{};let u=0;for(let h=0;h<c;h++){const d=r?h:a[h],f=t[d],p=n[d];if(f===p){l[d]=f,(r?h<i:Yr.call(t,d))&&u++;continue}if(f===null||p===null||typeof f!="object"||typeof p!="object"){l[d]=p;continue}const m=D(f,p,s+1);l[d]=m,m===f&&u++}return i===c&&u===i?t:l}function Ms(t){const e=Object.getOwnPropertyNames(t);for(const r of e)if(!Ls.call(t,r))return!1;const s=Object.getOwnPropertySymbols(t);if(s.length===0)return e;const n=e;for(const r of s){if(!Ls.call(t,r))return!1;n.push(r)}return n}function te(t){if(!Ts(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const s=e.prototype;return!(!Ts(s)||!s.hasOwnProperty("isPrototypeOf"))}function Ts(t){return Object.prototype.toString.call(t)==="[object Object]"}function ks(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function lt(t,e,s){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n<r;n++)if(!lt(t[n],e[n],s))return!1;return!0}if(te(t)&&te(e)){const n=s?.ignoreUndefined??!0;if(s?.partial){for(const a in e)if((!n||e[a]!==void 0)&&!lt(t[a],e[a],s))return!1;return!0}let r=0;if(!n)r=Object.keys(t).length;else for(const a in t)t[a]!==void 0&&r++;let o=0;for(const a in e)if((!n||e[a]!==void 0)&&(o++,o>r||!lt(t[a],e[a],s)))return!1;return r===o}return!1}function St(t){let e,s;const n=new Promise((r,o)=>{e=r,s=o});return n.status="pending",n.resolve=r=>{n.status="resolved",n.value=r,e(r),t?.(r)},n.reject=r=>{n.status="rejected",s(r)},n}function yt(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}function Jr(t){return t.replace(/[\x00-\x1f\x7f]/g,"")}function Is(t){let e;try{e=decodeURI(t)}catch{e=t.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return Jr(e)}const Xr=["http:","https:","mailto:","tel:"];function ee(t,e){if(!t)return!1;try{const s=new URL(t);return!e.has(s.protocol)}catch{return!1}}function Ct(t){if(!t)return{path:t,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(t)&&!t.startsWith("//"))return{path:t,handledProtocolRelativeURL:!1};const e=/%25|%5C/gi;let s=0,n="",r;for(;(r=e.exec(t))!==null;)n+=Is(t.slice(s,r.index))+r[0],s=e.lastIndex;n=n+Is(s?t.slice(s):t);let o=!1;return n.startsWith("//")&&(o=!0,n="/"+n.replace(/^\/+/,"")),{path:n,handledProtocolRelativeURL:o}}function Zr(t){return/\s|[^\u0000-\u007F]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}var to="Invariant failed";function J(t,e){if(!t)throw new Error(to)}function se(t){const e=new Map;let s,n;const r=o=>{o.next&&(o.prev?(o.prev.next=o.next,o.next.prev=o.prev,o.next=void 0,n&&(n.next=o,o.prev=n)):(o.next.prev=void 0,s=o.next,o.next=void 0,n&&(o.prev=n,n.next=o)),n=o)};return{get(o){const a=e.get(o);if(a)return r(a),a.value},set(o,a){if(e.size>=t&&s){const c=s;e.delete(c.key),c.next&&(s=c.next,c.next.prev=void 0),c===n&&(n=void 0)}const i=e.get(o);if(i)i.value=a,r(i);else{const c={key:o,value:a,prev:n};n&&(n.next=c),n=c,s||(s=c),e.set(o,c)}},clear(){e.clear(),s=void 0,n=void 0}}}const Pt=0,dt=1,ft=2,Bt=3,at=4,cn=5;function eo(t){const e=t.indexOf("{");if(e===-1)return null;const s=t.indexOf("}",e);return s===-1||e+1>=t.length?null:[e,s]}function He(t,e,s=new Uint16Array(6)){const n=t.indexOf("/",e),r=n===-1?t.length:n,o=t.substring(e,r);if(!o||!o.includes("$"))return s[0]=Pt,s[1]=e,s[2]=e,s[3]=r,s[4]=r,s[5]=r,s;if(o==="$"){const i=t.length;return s[0]=ft,s[1]=e,s[2]=e,s[3]=i,s[4]=i,s[5]=i,s}if(o.charCodeAt(0)===36)return s[0]=dt,s[1]=e,s[2]=e+1,s[3]=r,s[4]=r,s[5]=r,s;const a=eo(o);if(a){const[i,c]=a,l=o.charCodeAt(i+1);if(l===45){if(i+2<o.length&&o.charCodeAt(i+2)===36){const u=i+3,h=c;if(u<h)return s[0]=Bt,s[1]=e+i,s[2]=e+u,s[3]=e+h,s[4]=e+c+1,s[5]=r,s}}else if(l===36){const u=i+1,h=i+2;return h===c?(s[0]=ft,s[1]=e+i,s[2]=e+u,s[3]=e+h,s[4]=e+c+1,s[5]=t.length,s):(s[0]=dt,s[1]=e+i,s[2]=e+h,s[3]=e+c,s[4]=e+c+1,s[5]=r,s)}}return s[0]=Pt,s[1]=e,s[2]=e,s[3]=r,s[4]=r,s[5]=r,s}function le(t,e,s,n,r,o,a){a?.(s);let i=n;{const c=s.fullPath??s.from,l=c.length,u=s.options?.caseSensitive??t,h=!!(s.options?.params?.parse&&s.options?.skipRouteOnParseError?.params);for(;i<l;){const f=He(c,i,e);let p;const m=i,g=f[5];switch(i=g+1,o++,f[0]){case Pt:{const S=c.substring(f[2],f[3]);if(u){const w=r.static?.get(S);if(w)p=w;else{r.static??=new Map;const P=ct(s.fullPath??s.from);P.parent=r,P.depth=o,p=P,r.static.set(S,P)}}else{const w=S.toLowerCase(),P=r.staticInsensitive?.get(w);if(P)p=P;else{r.staticInsensitive??=new Map;const C=ct(s.fullPath??s.from);C.parent=r,C.depth=o,p=C,r.staticInsensitive.set(w,C)}}break}case dt:{const S=c.substring(m,f[1]),w=c.substring(f[4],g),P=u&&!!(S||w),C=S?P?S:S.toLowerCase():void 0,L=w?P?w:w.toLowerCase():void 0,_=!h&&r.dynamic?.find(b=>!b.skipOnParamError&&b.caseSensitive===P&&b.prefix===C&&b.suffix===L);if(_)p=_;else{const b=ge(dt,s.fullPath??s.from,P,C,L);p=b,b.depth=o,b.parent=r,r.dynamic??=[],r.dynamic.push(b)}break}case Bt:{const S=c.substring(m,f[1]),w=c.substring(f[4],g),P=u&&!!(S||w),C=S?P?S:S.toLowerCase():void 0,L=w?P?w:w.toLowerCase():void 0,_=!h&&r.optional?.find(b=>!b.skipOnParamError&&b.caseSensitive===P&&b.prefix===C&&b.suffix===L);if(_)p=_;else{const b=ge(Bt,s.fullPath??s.from,P,C,L);p=b,b.parent=r,b.depth=o,r.optional??=[],r.optional.push(b)}break}case ft:{const S=c.substring(m,f[1]),w=c.substring(f[4],g),P=u&&!!(S||w),C=S?P?S:S.toLowerCase():void 0,L=w?P?w:w.toLowerCase():void 0,_=ge(ft,s.fullPath??s.from,P,C,L);p=_,_.parent=r,_.depth=o,r.wildcard??=[],r.wildcard.push(_)}}r=p}if(h&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const f=ct(s.fullPath??s.from);f.kind=cn,f.parent=r,o++,f.depth=o,r.pathless??=[],r.pathless.push(f),r=f}const d=(s.path||!s.children)&&!s.isRoot;if(d&&c.endsWith("/")){const f=ct(s.fullPath??s.from);f.kind=at,f.parent=r,o++,f.depth=o,r.index=f,r=f}r.parse=s.options?.params?.parse??null,r.skipOnParamError=h,r.parsingPriority=s.options?.skipRouteOnParseError?.priority??0,d&&!r.route&&(r.route=s,r.fullPath=s.fullPath??s.from)}if(s.children)for(const c of s.children)le(t,e,c,i,r,o,a)}function me(t,e){if(t.skipOnParamError&&!e.skipOnParamError)return-1;if(!t.skipOnParamError&&e.skipOnParamError)return 1;if(t.skipOnParamError&&e.skipOnParamError&&(t.parsingPriority||e.parsingPriority))return e.parsingPriority-t.parsingPriority;if(t.prefix&&e.prefix&&t.prefix!==e.prefix){if(t.prefix.startsWith(e.prefix))return-1;if(e.prefix.startsWith(t.prefix))return 1}if(t.suffix&&e.suffix&&t.suffix!==e.suffix){if(t.suffix.endsWith(e.suffix))return-1;if(e.suffix.endsWith(t.suffix))return 1}return t.prefix&&!e.prefix?-1:!t.prefix&&e.prefix?1:t.suffix&&!e.suffix?-1:!t.suffix&&e.suffix?1:t.caseSensitive&&!e.caseSensitive?-1:!t.caseSensitive&&e.caseSensitive?1:0}function tt(t){if(t.pathless)for(const e of t.pathless)tt(e);if(t.static)for(const e of t.static.values())tt(e);if(t.staticInsensitive)for(const e of t.staticInsensitive.values())tt(e);if(t.dynamic?.length){t.dynamic.sort(me);for(const e of t.dynamic)tt(e)}if(t.optional?.length){t.optional.sort(me);for(const e of t.optional)tt(e)}if(t.wildcard?.length){t.wildcard.sort(me);for(const e of t.wildcard)tt(e)}}function ct(t){return{kind:Pt,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function ge(t,e,s,n,r){return{kind:t,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:s,prefix:n,suffix:r}}function so(t,e){const s=ct("/"),n=new Uint16Array(6);for(const r of t)le(!1,n,r,1,s,0);tt(s),e.masksTree=s,e.flatCache=se(1e3)}function no(t,e){t||="/";const s=e.flatCache.get(t);if(s)return s;const n=$e(t,e.masksTree);return e.flatCache.set(t,n),n}function ro(t,e,s,n,r){t||="/",n||="/";const o=e?`case\0${t}`:t;let a=r.singleCache.get(o);if(!a){a=ct("/");const i=new Uint16Array(6);le(e,i,{from:t},1,a,0),r.singleCache.set(o,a)}return $e(n,a,s)}function oo(t,e,s=!1){const n=s?t:`nofuzz\0${t}`,r=e.matchCache.get(n);if(r!==void 0)return r;t||="/";let o;try{o=$e(t,e.segmentTree,s)}catch(a){if(a instanceof URIError)o=null;else throw a}return o&&(o.branch=co(o.route)),e.matchCache.set(n,o),o}function io(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function ao(t,e=!1,s){const n=ct(t.fullPath),r=new Uint16Array(6),o={},a={};let i=0;return le(e,r,t,1,n,0,l=>{if(s?.(l,i),J(!(l.id in o),`Duplicate routes found with id: ${String(l.id)}`),o[l.id]=l,i!==0&&l.path){const u=io(l.fullPath);(!a[u]||l.fullPath.endsWith("/"))&&(a[u]=l)}i++}),tt(n),{processedTree:{segmentTree:n,singleCache:se(1e3),matchCache:se(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:a}}function $e(t,e,s=!1){const n=t.split("/"),r=uo(t,n,e,s);if(!r)return null;const[o]=ln(t,n,r);return{route:r.node.route,rawParams:o,parsedParams:r.parsedParams}}function ln(t,e,s){const n=lo(s.node);let r=null;const o={};let a=s.extract?.part??0,i=s.extract?.node??0,c=s.extract?.path??0,l=s.extract?.segment??0;for(;i<n.length;a++,i++,c++,l++){const u=n[i];if(u.kind===at)break;if(u.kind===cn){l--,a--,c--;continue}const h=e[a],d=c;if(h&&(c+=h.length),u.kind===dt){r??=s.node.fullPath.split("/");const f=r[l],p=u.prefix?.length??0;if(f.charCodeAt(p)===123){const g=u.suffix?.length??0,v=f.substring(p+2,f.length-g-1),S=h.substring(p,h.length-g);o[v]=decodeURIComponent(S)}else{const g=f.substring(1);o[g]=decodeURIComponent(h)}}else if(u.kind===Bt){if(s.skipped&1<<i){a--,c=d-1;continue}r??=s.node.fullPath.split("/");const f=r[l],p=u.prefix?.length??0,m=u.suffix?.length??0,g=f.substring(p+3,f.length-m-1),v=u.suffix||u.prefix?h.substring(p,h.length-m):h;v&&(o[g]=decodeURIComponent(v))}else if(u.kind===ft){const f=u,p=t.substring(d+(f.prefix?.length??0),t.length-(f.suffix?.length??0)),m=decodeURIComponent(p);o["*"]=m,o._splat=m;break}}return s.rawParams&&Object.assign(o,s.rawParams),[o,{part:a,node:i,path:c,segment:l}]}function co(t){const e=[t];for(;t.parentRoute;)t=t.parentRoute,e.push(t);return e.reverse(),e}function lo(t){const e=Array(t.depth+1);do e[t.depth]=t,t=t.parent;while(t);return e}function uo(t,e,s,n){if(t==="/"&&s.index)return{node:s.index,skipped:0};const r=!Dt(e),o=r&&t!=="/",a=e.length-(r?1:0),i=[{node:s,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let c=null,l=null,u=null;for(;i.length;){const h=i.pop(),{node:d,index:f,skipped:p,depth:m,statics:g,dynamics:v,optionals:S}=h;let{extract:w,rawParams:P,parsedParams:C}=h;if(d.skipOnParamError){if(!ye(t,e,h))continue;P=h.rawParams,w=h.extract,C=h.parsedParams}n&&d.route&&d.kind!==at&&Lt(l,h)&&(l=h);const L=f===a;if(L&&(d.route&&!o&&Lt(u,h)&&(u=h),!d.optional&&!d.wildcard&&!d.index&&!d.pathless))continue;const _=L?void 0:e[f];let b;if(L&&d.index){const x={node:d.index,index:f,skipped:p,depth:m+1,statics:g,dynamics:v,optionals:S,extract:w,rawParams:P,parsedParams:C};let k=!0;if(d.index.skipOnParamError&&(ye(t,e,x)||(k=!1)),k){if(g===a&&!v&&!S&&!p)return x;Lt(u,x)&&(u=x)}}if(d.wildcard&&Lt(c,h))for(const x of d.wildcard){const{prefix:k,suffix:M}=x;if(k&&(L||!(x.caseSensitive?_:b??=_.toLowerCase()).startsWith(k)))continue;if(M){if(L)continue;const F=e.slice(f).join("/").slice(-M.length);if((x.caseSensitive?F:F.toLowerCase())!==M)continue}const T={node:x,index:a,skipped:p,depth:m,statics:g,dynamics:v,optionals:S,extract:w,rawParams:P,parsedParams:C};if(!(x.skipOnParamError&&!ye(t,e,T))){c=T;break}}if(d.optional){const x=p|1<<m,k=m+1;for(let M=d.optional.length-1;M>=0;M--){const T=d.optional[M];i.push({node:T,index:f,skipped:x,depth:k,statics:g,dynamics:v,optionals:S,extract:w,rawParams:P,parsedParams:C})}if(!L)for(let M=d.optional.length-1;M>=0;M--){const T=d.optional[M],{prefix:F,suffix:O}=T;if(F||O){const Z=T.caseSensitive?_:b??=_.toLowerCase();if(F&&!Z.startsWith(F)||O&&!Z.endsWith(O))continue}i.push({node:T,index:f+1,skipped:p,depth:k,statics:g,dynamics:v,optionals:S+1,extract:w,rawParams:P,parsedParams:C})}}if(!L&&d.dynamic&&_)for(let x=d.dynamic.length-1;x>=0;x--){const k=d.dynamic[x],{prefix:M,suffix:T}=k;if(M||T){const F=k.caseSensitive?_:b??=_.toLowerCase();if(M&&!F.startsWith(M)||T&&!F.endsWith(T))continue}i.push({node:k,index:f+1,skipped:p,depth:m+1,statics:g,dynamics:v+1,optionals:S,extract:w,rawParams:P,parsedParams:C})}if(!L&&d.staticInsensitive){const x=d.staticInsensitive.get(b??=_.toLowerCase());x&&i.push({node:x,index:f+1,skipped:p,depth:m+1,statics:g+1,dynamics:v,optionals:S,extract:w,rawParams:P,parsedParams:C})}if(!L&&d.static){const x=d.static.get(_);x&&i.push({node:x,index:f+1,skipped:p,depth:m+1,statics:g+1,dynamics:v,optionals:S,extract:w,rawParams:P,parsedParams:C})}if(d.pathless){const x=m+1;for(let k=d.pathless.length-1;k>=0;k--){const M=d.pathless[k];i.push({node:M,index:f,skipped:p,depth:x,statics:g,dynamics:v,optionals:S,extract:w,rawParams:P,parsedParams:C})}}}if(u&&c)return Lt(c,u)?u:c;if(u)return u;if(c)return c;if(n&&l){let h=l.index;for(let f=0;f<l.index;f++)h+=e[f].length;const d=h===t.length?"/":t.slice(h);return l.rawParams??={},l.rawParams["**"]=decodeURIComponent(d),l}return null}function ye(t,e,s){try{const[n,r]=ln(t,e,s);s.rawParams=n,s.extract=r;const o=s.node.parse(n);return s.parsedParams=Object.assign({},s.parsedParams,o),!0}catch{return null}}function Lt(t,e){return t?e.statics>t.statics||e.statics===t.statics&&(e.dynamics>t.dynamics||e.dynamics===t.dynamics&&(e.optionals>t.optionals||e.optionals===t.optionals&&((e.node.kind===at)>(t.node.kind===at)||e.node.kind===at==(t.node.kind===at)&&e.depth>t.depth))):!0}function Gt(t){return Ke(t.filter(e=>e!==void 0).join("/"))}function Ke(t){return t.replace(/\/{2,}/g,"/")}function un(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function rt(t){const e=t.length;return e>1&&t[e-1]==="/"?t.replace(/\/{1,}$/,""):t}function hn(t){return rt(un(t))}function ne(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function ho(t,e,s){return ne(t,s)===ne(e,s)}function fo({base:t,to:e,trailingSlash:s="never",cache:n}){const r=e.startsWith("/"),o=!r&&e===".";let a;if(n){a=r?e:o?t:t+"\0"+e;const h=n.get(a);if(h)return h}let i;if(o)i=t.split("/");else if(r)i=e.split("/");else{for(i=t.split("/");i.length>1&&Dt(i)==="";)i.pop();const h=e.split("/");for(let d=0,f=h.length;d<f;d++){const p=h[d];p===""?d?d===f-1&&i.push(p):i=[p]:p===".."?i.pop():p==="."||i.push(p)}}i.length>1&&(Dt(i)===""?s==="never"&&i.pop():s==="always"&&i.push(""));let c,l="";for(let h=0;h<i.length;h++){h>0&&(l+="/");const d=i[h];if(!d)continue;c=He(d,0,c);const f=c[0];if(f===Pt){l+=d;continue}const p=c[5],m=d.substring(0,c[1]),g=d.substring(c[4],p),v=d.substring(c[2],c[3]);f===dt?l+=m||g?`${m}{$${v}}${g}`:`$${v}`:f===ft?l+=m||g?`${m}{$}${g}`:"$":l+=`${m}{-$${v}}${g}`}l=Ke(l);const u=l||"/";return a&&n&&n.set(a,u),u}function po(t){const e=new Map(t.map(r=>[encodeURIComponent(r),r])),s=Array.from(e.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),n=new RegExp(s,"g");return r=>r.replace(n,o=>e.get(o)??o)}function ve(t,e,s){const n=e[t];return typeof n!="string"?n:t==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(n)?n:n.split("/").map(r=>Os(r,s)).join("/"):Os(n,s)}function Es({path:t,params:e,decoder:s,...n}){let r=!1;const o={};if(!t||t==="/")return{interpolatedPath:"/",usedParams:o,isMissingParams:r};if(!t.includes("$"))return{interpolatedPath:t,usedParams:o,isMissingParams:r};const a=t.length;let i=0,c,l="";for(;i<a;){const h=i;c=He(t,h,c);const d=c[5];if(i=d+1,h===d)continue;const f=c[0];if(f===Pt){l+="/"+t.substring(h,d);continue}if(f===ft){const p=e._splat;o._splat=p,o["*"]=p;const m=t.substring(h,c[1]),g=t.substring(c[4],d);if(!p){r=!0,(m||g)&&(l+="/"+m+g);continue}const v=ve("_splat",e,s);l+="/"+m+v+g;continue}if(f===dt){const p=t.substring(c[2],c[3]);!r&&!(p in e)&&(r=!0),o[p]=e[p];const m=t.substring(h,c[1]),g=t.substring(c[4],d),v=ve(p,e,s)??"undefined";l+="/"+m+v+g;continue}if(f===Bt){const p=t.substring(c[2],c[3]),m=e[p];if(m==null)continue;o[p]=m;const g=t.substring(h,c[1]),v=t.substring(c[4],d),S=ve(p,e,s)??"";l+="/"+g+S+v;continue}}return t.endsWith("/")&&(l+="/"),{usedParams:o,interpolatedPath:l||"/",isMissingParams:r}}function Os(t,e){const s=encodeURIComponent(t);return e?.(s)??s}function B(t){return!!t?.isNotFound}function mo(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const je="tsr-scroll-restoration-v1_3",go=(t,e)=>{let s;return(...n)=>{s||(s=setTimeout(()=>{t(...n),s=null},e))}};function yo(){const t=mo();if(!t)return null;const e=t.getItem(je);let s=e?JSON.parse(e):{};return{state:s,set:n=>{s=et(n,s)||s;try{t.setItem(je,JSON.stringify(s))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Wt=yo(),vo=t=>t.state.__TSR_key||t.href;function So(t){const e=[];let s;for(;s=t.parentNode;)e.push(`${t.tagName}:nth-child(${Array.prototype.indexOf.call(s.children,t)+1})`),t=s;return`${e.reverse().join(" > ")}`.toLowerCase()}let re=!1;function Po({storageKey:t,key:e,behavior:s,shouldScrollRestoration:n,scrollToTopSelectors:r,location:o}){let a;try{a=JSON.parse(sessionStorage.getItem(t)||"{}")}catch(l){console.error(l);return}const i=e||window.history.state?.__TSR_key,c=a[i];re=!0;t:{if(n&&c&&Object.keys(c).length>0){for(const h in c){const d=c[h];if(h==="window")window.scrollTo({top:d.scrollY,left:d.scrollX,behavior:s});else if(h){const f=document.querySelector(h);f&&(f.scrollLeft=d.scrollX,f.scrollTop=d.scrollY)}}break t}const l=(o??window.location).hash.split("#",2)[1];if(l){const h=window.history.state?.__hashScrollIntoViewOptions??!0;if(h){const d=document.getElementById(l);d&&d.scrollIntoView(h)}break t}const u={top:0,left:0,behavior:s};if(window.scrollTo(u),r)for(const h of r){if(h==="window")continue;const d=typeof h=="function"?h():document.querySelector(h);d&&d.scrollTo(u)}}re=!1}function bo(t,e){if(!Wt||((t.options.scrollRestoration??!1)&&(t.isScrollRestoring=!0),t.isScrollRestorationSetup||!Wt))return;t.isScrollRestorationSetup=!0,re=!1;const n=t.options.getScrollRestorationKey||vo;window.history.scrollRestoration="manual";const r=o=>{if(re||!t.isScrollRestoring)return;let a="";if(o.target===document||o.target===window)a="window";else{const c=o.target.getAttribute("data-scroll-restoration-id");c?a=`[data-scroll-restoration-id="${c}"]`:a=So(o.target)}const i=n(t.state.location);Wt.set(c=>{const l=c[i]||={},u=l[a]||={};if(a==="window")u.scrollX=window.scrollX||0,u.scrollY=window.scrollY||0;else if(a){const h=document.querySelector(a);h&&(u.scrollX=h.scrollLeft||0,u.scrollY=h.scrollTop||0)}return c})};typeof document<"u"&&document.addEventListener("scroll",go(r,100),!0),t.subscribe("onRendered",o=>{const a=n(o.toLocation);if(!t.resetNextScroll){t.resetNextScroll=!0;return}typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation})||(Po({storageKey:je,key:a,behavior:t.options.scrollRestorationBehavior,shouldScrollRestoration:t.isScrollRestoring,scrollToTopSelectors:t.options.scrollToTopSelectors,location:t.history.location}),t.isScrollRestoring&&Wt.set(i=>(i[a]||={},i)))})}function wo(t){if(typeof document<"u"&&document.querySelector){const e=t.state.location.state.__hashScrollIntoViewOptions??!0;if(e&&t.state.location.hash!==""){const s=document.getElementById(t.state.location.hash);s&&s.scrollIntoView(e)}}}function xo(t,e=String){const s=new URLSearchParams;for(const n in t){const r=t[n];r!==void 0&&s.set(n,e(r))}return s.toString()}function Se(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function Ro(t){const e=new URLSearchParams(t),s={};for(const[n,r]of e.entries()){const o=s[n];o==null?s[n]=Se(r):Array.isArray(o)?o.push(Se(r)):s[n]=[o,Se(r)]}return s}const _o=Lo(JSON.parse),Co=Mo(JSON.stringify,JSON.parse);function Lo(t){return e=>{e[0]==="?"&&(e=e.substring(1));const s=Ro(e);for(const n in s){const r=s[n];if(typeof r=="string")try{s[n]=t(r)}catch{}}return s}}function Mo(t,e){const s=typeof e=="function";function n(r){if(typeof r=="object"&&r!==null)try{return t(r)}catch{}else if(s&&typeof r=="string")try{return e(r),t(r)}catch{}return r}return r=>{const o=xo(r,n);return o?`?${o}`:""}}const q="__root__";function To(t){if(t.statusCode=t.statusCode||t.code||307,!t._builtLocation&&!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}const e=new Headers(t.headers);t.href&&e.get("Location")===null&&e.set("Location",t.href);const s=new Response(null,{status:t.statusCode,headers:e});if(s.options=t,t.throw)throw s;return s}function H(t){return t instanceof Response&&!!t.options}const Yt=t=>{if(!t.rendered)return t.rendered=!0,t.onReady?.()},ue=(t,e)=>!!(t.preload&&!t.router.state.matches.some(s=>s.id===e)),vt=(t,e,s=!0)=>{const n={...t.router.options.context??{}},r=s?e:e-1;for(let o=0;o<=r;o++){const a=t.matches[o];if(!a)continue;const i=t.router.getMatch(a.id);i&&Object.assign(n,i.__routeContext,i.__beforeLoadContext)}return n},dn=(t,e,s)=>{const n=t.router.routesById[e.routeId??""]??t.router.routeTree;!n.options.notFoundComponent&&t.router.options?.defaultNotFoundComponent&&(n.options.notFoundComponent=t.router.options.defaultNotFoundComponent);const r=s==="BEFORE_LOAD"&&n.parentRoute;r||J(n.options.notFoundComponent);const o=t.matches.find(a=>a.routeId===n.id);J(o,"Could not find match for route: "+n.id),t.updateMatch(o.id,a=>({...a,status:"notFound",error:e,isFetching:!1})),r&&(e.routeId=n.parentRoute.id,dn(t,e,s))},st=(t,e,s,n)=>{if(!(!H(s)&&!B(s))){if(H(s)&&s.redirectHandled&&!s.options.reloadDocument)throw s;if(e){e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.loaderPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loaderPromise=void 0;const r=H(s)?"redirected":"notFound";e._nonReactive.error=s,t.updateMatch(e.id,o=>({...o,status:r,context:vt(t,e.index),isFetching:!1,error:s})),B(s)&&!s.routeId&&(s.routeId=e.routeId),e._nonReactive.loadPromise?.resolve()}throw H(s)?(t.rendered=!0,s.options._fromLocation=t.location,s.redirectHandled=!0,s=t.router.resolveRedirect(s),s):(dn(t,s,n),s)}},fn=(t,e)=>!!t.router.getMatch(e)._nonReactive.dehydrated,Mt=(t,e,s,n)=>{const{id:r,routeId:o}=t.matches[e],a=t.router.looseRoutesById[o];if(s instanceof Promise)throw s;s.routerCode=n,t.firstBadMatchIndex??=e,st(t,t.router.getMatch(r),s,n);try{a.options.onError?.(s)}catch(i){s=i,st(t,t.router.getMatch(r),s,n)}t.updateMatch(r,i=>(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loadPromise?.resolve(),{...i,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},pn=(t,e,s,n)=>{if(n._nonReactive.pendingTimeout!==void 0)return;const r=s.options.pendingMs??t.router.options.defaultPendingMs;if(!!(t.onReady&&!ue(t,e)&&(s.options.loader||s.options.beforeLoad||yn(s))&&typeof r=="number"&&r!==1/0&&(s.options.pendingComponent??t.router.options?.defaultPendingComponent))){const a=setTimeout(()=>{Yt(t)},r);n._nonReactive.pendingTimeout=a}},ko=(t,e,s)=>{const n=t.router.getMatch(e);if(!n._nonReactive.beforeLoadPromise&&!n._nonReactive.loaderPromise)return;pn(t,e,s,n);const r=()=>{const o=t.router.getMatch(e);o.preload&&(o.status==="redirected"||o.status==="notFound")&&st(t,o,o.error)};return n._nonReactive.beforeLoadPromise?n._nonReactive.beforeLoadPromise.then(r):r()},Io=(t,e,s,n)=>{const r=t.router.getMatch(e),o=r._nonReactive.loadPromise;r._nonReactive.loadPromise=St(()=>{o?.resolve()});const{paramsError:a,searchError:i}=r;a&&Mt(t,s,a,"PARSE_PARAMS"),i&&Mt(t,s,i,"VALIDATE_SEARCH"),pn(t,e,n,r);const c=new AbortController;let l=!1;const u=()=>{l||(l=!0,t.updateMatch(e,P=>({...P,isFetching:"beforeLoad",fetchCount:P.fetchCount+1,abortController:c})))},h=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,t.updateMatch(e,P=>({...P,isFetching:!1}))};if(!n.options.beforeLoad){It(()=>{u(),h()});return}r._nonReactive.beforeLoadPromise=St();const d={...vt(t,s,!1),...r.__routeContext},{search:f,params:p,cause:m}=r,g=ue(t,e),v={search:f,abortController:c,params:p,preload:g,context:d,location:t.location,navigate:P=>t.router.navigate({...P,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:g?"preload":m,matches:t.matches,routeId:n.id,...t.router.options.additionalContext},S=P=>{if(P===void 0){It(()=>{u(),h()});return}(H(P)||B(P))&&(u(),Mt(t,s,P,"BEFORE_LOAD")),It(()=>{u(),t.updateMatch(e,C=>({...C,__beforeLoadContext:P})),h()})};let w;try{if(w=n.options.beforeLoad(v),yt(w))return u(),w.catch(P=>{Mt(t,s,P,"BEFORE_LOAD")}).then(S)}catch(P){u(),Mt(t,s,P,"BEFORE_LOAD")}S(w)},Eo=(t,e)=>{const{id:s,routeId:n}=t.matches[e],r=t.router.looseRoutesById[n],o=()=>i(),a=()=>Io(t,s,e,r),i=()=>{if(fn(t,s))return;const c=ko(t,s,r);return yt(c)?c.then(a):a()};return o()},Oo=(t,e,s)=>{const n=t.router.getMatch(e);if(!n||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const r={ssr:t.router.options.ssr,matches:t.matches,match:n,params:n.params,loaderData:n.loaderData};return Promise.all([s.options.head?.(r),s.options.scripts?.(r),s.options.headers?.(r)]).then(([o,a,i])=>{const c=o?.meta,l=o?.links,u=o?.scripts,h=o?.styles;return{meta:c,links:l,headScripts:u,headers:i,scripts:a,styles:h}})},mn=(t,e,s,n)=>{const r=t.matchPromises[s-1],{params:o,loaderDeps:a,abortController:i,cause:c}=t.router.getMatch(e),l=vt(t,s),u=ue(t,e);return{params:o,deps:a,preload:!!u,parentMatchPromise:r,abortController:i,context:l,location:t.location,navigate:h=>t.router.navigate({...h,_fromLocation:t.location}),cause:u?"preload":c,route:n,...t.router.options.additionalContext}},js=async(t,e,s,n)=>{try{const r=t.router.getMatch(e);try{(!(Qr??t.router.isServer)||r.ssr===!0)&&gn(n);const o=n.options.loader?.(mn(t,e,s,n)),a=n.options.loader&&yt(o);if((a||n._lazyPromise||n._componentsPromise||n.options.head||n.options.scripts||n.options.headers||r._nonReactive.minPendingPromise)&&t.updateMatch(e,l=>({...l,isFetching:"loader"})),n.options.loader){const l=a?await o:o;st(t,t.router.getMatch(e),l),l!==void 0&&t.updateMatch(e,u=>({...u,loaderData:l}))}n._lazyPromise&&await n._lazyPromise;const c=r._nonReactive.minPendingPromise;c&&await c,n._componentsPromise&&await n._componentsPromise,t.updateMatch(e,l=>({...l,error:void 0,context:vt(t,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(o){let a=o;if(a?.name==="AbortError"){if(r.abortController.signal.aborted){r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loaderPromise=void 0;return}t.updateMatch(e,c=>({...c,status:c.status==="pending"?"success":c.status,isFetching:!1,context:vt(t,s)}));return}const i=r._nonReactive.minPendingPromise;i&&await i,B(o)&&await n.options.notFoundComponent?.preload?.(),st(t,t.router.getMatch(e),o);try{n.options.onError?.(o)}catch(c){a=c,st(t,t.router.getMatch(e),c)}t.updateMatch(e,c=>({...c,error:a,context:vt(t,s),status:"error",isFetching:!1}))}}catch(r){const o=t.router.getMatch(e);o&&(o._nonReactive.loaderPromise=void 0),st(t,o,r)}},jo=async(t,e)=>{async function s(u,h,d,f){const p=Date.now()-h.updatedAt,m=u?f.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:f.options.staleTime??t.router.options.defaultStaleTime??0,g=f.options.shouldReload,v=typeof g=="function"?g(mn(t,n,e,f)):g,{status:S,invalid:w}=d;o=S==="success"&&(w||(v??p>m)),u&&f.options.preload===!1||(o&&!t.sync?(a=!0,(async()=>{try{await js(t,n,e,f);const P=t.router.getMatch(n);P._nonReactive.loaderPromise?.resolve(),P._nonReactive.loadPromise?.resolve(),P._nonReactive.loaderPromise=void 0}catch(P){H(P)&&await t.router.navigate(P.options)}})()):(S!=="success"||o&&t.sync)&&await js(t,n,e,f))}const{id:n,routeId:r}=t.matches[e];let o=!1,a=!1;const i=t.router.looseRoutesById[r];if(!fn(t,n)){const u=t.router.getMatch(n),h=ue(t,n);if(u._nonReactive.loaderPromise){if(u.status==="success"&&!t.sync&&!u.preload)return u;await u._nonReactive.loaderPromise;const d=t.router.getMatch(n),f=d._nonReactive.error||d.error;f&&st(t,d,f),d.status==="pending"&&await s(h,u,d,i)}else{const d=h&&!t.router.state.matches.some(p=>p.id===n),f=t.router.getMatch(n);f._nonReactive.loaderPromise=St(),d!==f.preload&&t.updateMatch(n,p=>({...p,preload:d})),await s(h,u,f,i)}}const c=t.router.getMatch(n);a||(c._nonReactive.loaderPromise?.resolve(),c._nonReactive.loadPromise?.resolve()),clearTimeout(c._nonReactive.pendingTimeout),c._nonReactive.pendingTimeout=void 0,a||(c._nonReactive.loaderPromise=void 0),c._nonReactive.dehydrated=void 0;const l=a?c.isFetching:!1;return l!==c.isFetching||c.invalid!==!1?(t.updateMatch(n,u=>({...u,isFetching:l,invalid:!1})),t.router.getMatch(n)):c};async function Fs(t){const e=Object.assign(t,{matchPromises:[]});e.router.state.matches.some(s=>s._forcePending)&&Yt(e);try{for(let i=0;i<e.matches.length;i++){const c=Eo(e,i);yt(c)&&await c}const s=e.firstBadMatchIndex??e.matches.length;for(let i=0;i<s;i++)e.matchPromises.push(jo(e,i));const r=(await Promise.allSettled(e.matchPromises)).filter(i=>i.status==="rejected").map(i=>i.reason);let o;for(const i of r){if(H(i))throw i;!o&&B(i)&&(o=i)}for(const i of e.matches){const{id:c,routeId:l}=i,u=e.router.looseRoutesById[l];try{const h=Oo(e,c,u);if(h){const d=await h;e.updateMatch(c,f=>({...f,...d}))}}catch(h){console.error(`Error executing head for route ${l}:`,h)}}if(o)throw o;const a=Yt(e);yt(a)&&await a}catch(s){if(B(s)&&!e.preload){const n=Yt(e);throw yt(n)&&await n,s}if(H(s))throw s}return e.matches}async function gn(t){if(!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(e=>{const{id:s,...n}=e.options;Object.assign(t.options,n),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0),!t._componentsLoaded&&t._componentsPromise===void 0){const e=()=>{const s=[];for(const n of vn){const r=t.options[n]?.preload;r&&s.push(r())}if(s.length)return Promise.all(s).then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0});t._componentsLoaded=!0,t._componentsPromise=void 0};t._componentsPromise=t._lazyPromise?t._lazyPromise.then(e):e()}return t._componentsPromise}function yn(t){for(const e of vn)if(t.options[e]?.preload)return!0;return!1}const vn=["component","errorComponent","pendingComponent","notFoundComponent"];function Fo(t){return{input:({url:e})=>{for(const s of t)e=Fe(s,e);return e},output:({url:e})=>{for(let s=t.length-1;s>=0;s--)e=Sn(t[s],e);return e}}}function Ao(t){const e=hn(t.basepath),s=`/${e}`,n=`${s}/`,r=t.caseSensitive?s:s.toLowerCase(),o=t.caseSensitive?n:n.toLowerCase();return{input:({url:a})=>{const i=t.caseSensitive?a.pathname:a.pathname.toLowerCase();return i===r?a.pathname="/":i.startsWith(o)&&(a.pathname=a.pathname.slice(s.length)),a},output:({url:a})=>(a.pathname=Gt(["/",e,a.pathname]),a)}}function Fe(t,e){const s=t?.input?.({url:e});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return e}function Sn(t,e){const s=t?.output?.({url:e});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return e}function ut(t){const e=t.resolvedLocation,s=t.location,n=e?.pathname!==s.pathname,r=e?.href!==s.href,o=e?.hash!==s.hash;return{fromLocation:e,toLocation:s,pathChanged:n,hrefChanged:r,hashChanged:o}}function Do(t){const e=t.filter(s=>s.status!=="redirected");return e.length===t.length?t:e}class Bo{constructor(e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=s=>s(),this.update=s=>{const n=this.options,r=this.basepath??n?.basepath??"/",o=this.basepath===void 0,a=n?.rewrite;if(this.options={...n,...s},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=po(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Wr()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let d;this.resolvePathCache=se(1e3),d=this.buildRouteTree(),this.setRoutes(d)}!this.__store&&this.latestLocation&&(this.__store=$r(Uo(this.latestLocation)),bo(this));let i=!1;const c=this.options.basepath??"/",l=this.options.rewrite;if(o||r!==c||a!==l){this.basepath=c;const d=[],f=hn(c);f&&f!=="/"&&d.push(Ao({basepath:c})),l&&d.push(l),this.rewrite=d.length===0?void 0:d.length===1?d[0]:Fo(d),this.history&&this.updateLatestLocation(),i=!0}i&&this.__store&&this.__store.setState(d=>({...d,location:this.latestLocation})),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const s=ao(this.routeTree,this.options.caseSensitive,(n,r)=>{n.init({originalIndex:r})});return this.options.routeMasks&&so(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,n)=>{const r={eventType:s,fn:n};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=s=>{this.subscribers.forEach(n=>{n.eventType===s.type&&n.fn(s)})},this.parseLocation=(s,n)=>{const r=({pathname:c,search:l,hash:u,href:h,state:d})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(c)){const S=this.options.parseSearch(l),w=this.options.stringifySearch(S);return{href:c+w+u,publicHref:h,pathname:Ct(c).path,external:!1,searchStr:w,search:D(n?.search,S),hash:Ct(u.slice(1)).path,state:D(n?.state,d)}}const f=new URL(h,this.origin),p=Fe(this.rewrite,f),m=this.options.parseSearch(p.search),g=this.options.stringifySearch(m);return p.search=g,{href:p.href.replace(p.origin,""),publicHref:h,pathname:Ct(p.pathname).path,external:!!this.rewrite&&p.origin!==this.origin,searchStr:g,search:D(n?.search,m),hash:Ct(p.hash.slice(1)).path,state:D(n?.state,d)}},o=r(s),{__tempLocation:a,__tempKey:i}=o.state;if(a&&(!i||i===this.tempLocationKey)){const c=r(a);return c.state.key=o.state.key,c.state.__TSR_key=o.state.__TSR_key,delete c.state.__tempLocation,{...c,maskedLocation:o}}return o},this.resolvePathWithBase=(s,n)=>fo({base:s,to:Ke(n),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,n,r)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:n},r):this.matchRoutesInternal(s,n),this.getMatchedRoutes=s=>qo({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const n=this.getMatch(s);n&&(n.abortController.abort(),clearTimeout(n._nonReactive.pendingTimeout),n._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const s=this.state.matches.filter(o=>o.status==="pending"),n=this.state.matches.filter(o=>o.isFetching==="loader");new Set([...this.state.pendingMatches??[],...s,...n]).forEach(o=>{this.cancelMatch(o.id)})},this.buildLocation=s=>{const n=(o={})=>{const a=o._fromLocation||this.pendingBuiltLocation||this.latestLocation,i=this.matchRoutesLightweight(a);o.from;const c=o.unsafeRelative==="path"?a.pathname:o.from??i.fullPath,l=this.resolvePathWithBase(c,"."),u=i.search,h={...i.params},d=o.to?this.resolvePathWithBase(l,`${o.to}`):this.resolvePathWithBase(l,"."),f=o.params===!1||o.params===null?{}:(o.params??!0)===!0?h:Object.assign(h,et(o.params,h)),p=this.getMatchedRoutes(d);let m=p.matchedRoutes;if((!p.foundRoute||p.foundRoute.path!=="/"&&p.routeParams["**"])&&this.options.notFoundRoute&&(m=[...m,this.options.notFoundRoute]),Object.keys(f).length>0)for(const M of m){const T=M.options.params?.stringify??M.options.stringifyParams;if(T)try{Object.assign(f,T(f))}catch{}}const v=s.leaveParams?d:Ct(Es({path:d,params:f,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let S=u;if(s._includeValidateSearch&&this.options.search?.strict){const M={};m.forEach(T=>{if(T.options.validateSearch)try{Object.assign(M,Jt(T.options.validateSearch,{...M,...S}))}catch{}}),S=M}S=Ho({search:S,dest:o,destRoutes:m,_includeValidateSearch:s._includeValidateSearch}),S=D(u,S);const w=this.options.stringifySearch(S),P=o.hash===!0?a.hash:o.hash?et(o.hash,a.hash):void 0,C=P?`#${P}`:"";let L=o.state===!0?a.state:o.state?et(o.state,a.state):{};L=D(a.state,L);const _=`${v}${w}${C}`;let b,x,k=!1;if(this.rewrite){const M=new URL(_,this.origin),T=Sn(this.rewrite,M);b=M.href.replace(M.origin,""),T.origin!==this.origin?(x=T.href,k=!0):x=T.pathname+T.search+T.hash}else b=Zr(_),x=b;return{publicHref:x,href:b,pathname:v,search:S,searchStr:w,state:L,hash:P??"",external:k,unmaskOnReload:o.unmaskOnReload}},r=(o={},a)=>{const i=n(o);let c=a?n(a):void 0;if(!c){const l={};if(this.options.routeMasks){const u=no(i.pathname,this.processedTree);if(u){Object.assign(l,u.rawParams);const{from:h,params:d,...f}=u.route,p=d===!1||d===null?{}:(d??!0)===!0?l:Object.assign(l,et(d,l));a={from:s.from,...f,params:p},c=n(a)}}}return c&&(i.maskedLocation=c),i};return s.mask?r(s,{from:s.from,...s.mask}):r(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:n,...r})=>{const o=()=>{const c=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];c.forEach(u=>{r.state[u]=this.latestLocation.state[u]});const l=lt(r.state,this.latestLocation.state);return c.forEach(u=>{delete r.state[u]}),l},a=rt(this.latestLocation.href)===rt(r.href),i=this.commitLocationPromise;if(this.commitLocationPromise=St(()=>{i?.resolve()}),a&&o())this.load();else{let{maskedLocation:c,hashScrollIntoView:l,...u}=r;c&&(u={...c,state:{...c.state,__tempKey:void 0,__tempLocation:{...u,search:u.searchStr,state:{...u.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(u.unmaskOnReload??this.options.unmaskOnReload??!1)&&(u.state.__tempKey=this.tempLocationKey)),u.state.__hashScrollIntoViewOptions=l??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[r.replace?"replace":"push"](u.publicHref,u.state,{ignoreBlocker:n})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:n,hashScrollIntoView:r,viewTransition:o,ignoreBlocker:a,href:i,...c}={})=>{if(i){const h=this.history.location.state.__TSR_index,d=At(i,{__TSR_index:s?h:h+1}),f=new URL(d.pathname,this.origin),p=Fe(this.rewrite,f);c.to=p.pathname,c.search=this.options.parseSearch(d.search),c.hash=d.hash.slice(1)}const l=this.buildLocation({...c,_includeValidateSearch:!0});this.pendingBuiltLocation=l;const u=this.commitLocation({...l,viewTransition:o,replace:s,resetScroll:n,hashScrollIntoView:r,ignoreBlocker:a});return Promise.resolve().then(()=>{this.pendingBuiltLocation===l&&(this.pendingBuiltLocation=void 0)}),u},this.navigate=async({to:s,reloadDocument:n,href:r,publicHref:o,...a})=>{let i=!1;if(r)try{new URL(`${r}`),i=!0}catch{}if(i&&!n&&(n=!0),n){if(s!==void 0||!r){const l=this.buildLocation({to:s,...a});r=r??l.publicHref,o=o??l.publicHref}const c=!i&&o?o:r;if(ee(c,this.protocolAllowlist))return Promise.resolve();if(!a.ignoreBlocker){const u=this.history.getBlockers?.()??[];for(const h of u)if(h?.blockerFn&&await h.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return a.replace?window.location.replace(c):window.location.href=c,Promise.resolve()}return this.buildAndCommitLocation({...a,href:r,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation);this.__store.setState(n=>({...n,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:s,cachedMatches:n.cachedMatches.filter(r=>!s.some(o=>o.id===r.id))}))},this.load=async s=>{let n,r,o;for(o=new Promise(i=>{this.startTransition(async()=>{try{this.beforeLoad();const c=this.latestLocation,l=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...ut({resolvedLocation:l,location:c})}),this.emit({type:"onBeforeLoad",...ut({resolvedLocation:l,location:c})}),await Fs({router:this,sync:s?.sync,matches:this.state.pendingMatches,location:c,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let u=[],h=[],d=[];It(()=>{this.__store.setState(f=>{const p=f.matches,m=f.pendingMatches||f.matches;return u=p.filter(g=>!m.some(v=>v.id===g.id)),h=m.filter(g=>!p.some(v=>v.id===g.id)),d=m.filter(g=>p.some(v=>v.id===g.id)),{...f,isLoading:!1,loadedAt:Date.now(),matches:m,pendingMatches:void 0,cachedMatches:[...f.cachedMatches,...u.filter(g=>g.status!=="error"&&g.status!=="notFound"&&g.status!=="redirected")]}}),this.clearExpiredCache()}),[[u,"onLeave"],[h,"onEnter"],[d,"onStay"]].forEach(([f,p])=>{f.forEach(m=>{this.looseRoutesById[m.routeId].options[p]?.(m)})})})})}})}catch(c){H(c)?(n=c,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):B(c)&&(r=c),this.__store.setState(l=>({...l,statusCode:n?n.status:r?404:l.matches.some(u=>u.status==="error")?500:200,redirect:n}))}this.latestLoadPromise===o&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),i()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;let a;this.hasNotFoundMatch()?a=404:this.__store.state.matches.some(i=>i.status==="error")&&(a=500),a!==void 0&&this.__store.setState(i=>({...i,statusCode:a}))},this.startViewTransition=s=>{const n=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,n&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof n=="object"&&this.isViewTransitionTypesSupported){const o=this.latestLocation,a=this.state.resolvedLocation,i=typeof n.types=="function"?n.types(ut({resolvedLocation:a,location:o})):n.types;if(i===!1){s();return}r={update:s,types:i}}else r=s;document.startViewTransition(r)}else s()},this.updateMatch=(s,n)=>{this.startTransition(()=>{const r=this.state.pendingMatches?.some(o=>o.id===s)?"pendingMatches":this.state.matches.some(o=>o.id===s)?"matches":this.state.cachedMatches.some(o=>o.id===s)?"cachedMatches":"";r&&(r==="cachedMatches"?this.__store.setState(o=>({...o,cachedMatches:Do(o.cachedMatches.map(a=>a.id===s?n(a):a))})):this.__store.setState(o=>({...o,[r]:o[r]?.map(a=>a.id===s?n(a):a)})))})},this.getMatch=s=>{const n=r=>r.id===s;return this.state.cachedMatches.find(n)??this.state.pendingMatches?.find(n)??this.state.matches.find(n)},this.invalidate=s=>{const n=r=>s?.filter?.(r)??!0?{...r,invalid:!0,...s?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.__store.setState(r=>({...r,matches:r.matches.map(n),cachedMatches:r.cachedMatches.map(n),pendingMatches:r.pendingMatches?.map(n)})),this.shouldViewTransition=!1,this.load({sync:s?.sync})},this.getParsedLocationHref=s=>s.publicHref||"/",this.resolveRedirect=s=>{const n=s.headers.get("Location");if(!s.options.href||s.options._builtLocation){const r=s.options._builtLocation??this.buildLocation(s.options),o=this.getParsedLocationHref(r);s.options.href=o,s.headers.set("Location",o)}else if(n)try{const r=new URL(n);if(this.origin&&r.origin===this.origin){const o=r.pathname+r.search+r.hash;s.options.href=o,s.headers.set("Location",o)}}catch{}if(s.options.href&&!s.options._builtLocation&&ee(s.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const n=s?.filter;n!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(o=>!n(o))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const s=n=>{const r=this.looseRoutesById[n.routeId];if(!r.options.loader)return!0;const o=(n.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return n.status==="error"?!0:Date.now()-n.updatedAt>=o};this.clearCache({filter:s})},this.loadRouteChunk=gn,this.preloadRoute=async s=>{const n=s._builtLocation??this.buildLocation(s);let r=this.matchRoutes(n,{throwOnError:!0,preload:!0,dest:s});const o=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(i=>i.id)),a=new Set([...o,...this.state.cachedMatches.map(i=>i.id)]);It(()=>{r.forEach(i=>{a.has(i.id)||this.__store.setState(c=>({...c,cachedMatches:[...c.cachedMatches,i]}))})});try{return r=await Fs({router:this,matches:r,location:n,preload:!0,updateMatch:(i,c)=>{o.has(i)?r=r.map(l=>l.id===i?c(l):l):this.updateMatch(i,c)}}),r}catch(i){if(H(i))return i.options.reloadDocument?void 0:await this.preloadRoute({...i.options,_fromLocation:n});B(i)||console.error(i);return}},this.matchRoute=(s,n)=>{const r={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},o=this.buildLocation(r);if(n?.pending&&this.state.status!=="pending")return!1;const i=(n?.pending===void 0?!this.state.isLoading:n.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,c=ro(o.pathname,n?.caseSensitive??!1,n?.fuzzy??!1,i.pathname,this.processedTree);return!c||s.params&&!lt(c.rawParams,s.params,{partial:!0})?!1:n?.includeSearch??!0?lt(i.search,o.search,{partial:!0})?c.rawParams:!1:c.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(s=>s.status==="notFound"||s.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??Co,parseSearch:e.parseSearch??_o,protocolAllowlist:e.protocolAllowlist??Xr}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:e,routesByPath:s,processedTree:n}){this.routesById=e,this.routesByPath=s,this.processedTree=n;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,s){const n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:o,parsedParams:a}=n;let{matchedRoutes:i}=n,c=!1;(r?r.path!=="/"&&o["**"]:rt(e.pathname))&&(this.options.notFoundRoute?i=[...i,this.options.notFoundRoute]:c=!0);const l=c?Ko(this.options.notFoundMode,i):void 0,u=new Array(i.length),h=new Map(this.state.matches.map(d=>[d.routeId,d]));for(let d=0;d<i.length;d++){const f=i[d],p=u[d-1];let m,g,v;{const O=p?.search??e.search,Z=p?._strictSearch??void 0;try{const V=Jt(f.options.validateSearch,{...O})??void 0;m={...O,...V},g={...Z,...V},v=void 0}catch(V){let xt=V;if(V instanceof oe||(xt=new oe(V.message,{cause:V})),s?.throwOnError)throw xt;m=O,g={},v=xt}}const S=f.options.loaderDeps?.({search:m})??"",w=S?JSON.stringify(S):"",{interpolatedPath:P,usedParams:C}=Es({path:f.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),L=f.id+P+w,_=this.getMatch(L),b=h.get(f.id),x=_?._strictParams??C;let k;if(!_)try{As(f,C,a,x)}catch(O){if(B(O)||H(O)?k=O:k=new No(O.message,{cause:O}),s?.throwOnError)throw k}Object.assign(o,x);const M=b?"stay":"enter";let T;if(_)T={..._,cause:M,params:b?.params??o,_strictParams:x,search:D(b?b.search:_.search,m),_strictSearch:g};else{const O=f.options.loader||f.options.beforeLoad||f.lazyFn||yn(f)?"pending":"success";T={id:L,ssr:f.options.ssr,index:d,routeId:f.id,params:b?.params??o,_strictParams:x,pathname:P,updatedAt:Date.now(),search:b?D(b.search,m):m,_strictSearch:g,searchError:void 0,status:O,isFetching:!1,error:void 0,paramsError:k,__routeContext:void 0,_nonReactive:{loadPromise:St()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:M,loaderDeps:b?D(b.loaderDeps,S):S,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:f.options.staticData||{},fullPath:f.fullPath}}s?.preload||(T.globalNotFound=l===f.id),T.searchError=v;const F=this.getParentContext(p);T.context={...F,...T.__routeContext,...T.__beforeLoadContext},u[d]=T}for(let d=0;d<u.length;d++){const f=u[d],p=this.looseRoutesById[f.routeId],m=this.getMatch(f.id),g=h.get(f.routeId);if(f.params=g?D(g.params,o):o,!m){const v=u[d-1],S=this.getParentContext(v);if(p.options.context){const w={deps:f.loaderDeps,params:f.params,context:S??{},location:e,navigate:P=>this.navigate({...P,_fromLocation:e}),buildLocation:this.buildLocation,cause:f.cause,abortController:f.abortController,preload:!!f.preload,matches:u,routeId:p.id};f.__routeContext=p.options.context(w)??void 0}f.context={...S,...f.__routeContext,...f.__beforeLoadContext}}}return u}matchRoutesLightweight(e){const{matchedRoutes:s,routeParams:n,parsedParams:r}=this.getMatchedRoutes(e.pathname),o=Dt(s),a={...e.search};for(const u of s)try{Object.assign(a,Jt(u.options.validateSearch,a))}catch{}const i=Dt(this.state.matches),c=i&&i.routeId===o.id&&e.pathname===this.state.location.pathname;let l;if(c)l=i.params;else{const u={...n};for(const h of s)try{As(h,n,r??{},u)}catch{}l=u}return{matchedRoutes:s,fullPath:o.fullPath,search:a,params:l}}}class oe extends Error{}class No extends Error{}function Uo(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Jt(t,e){if(t==null)return{};if("~standard"in t){const s=t["~standard"].validate(e);if(s instanceof Promise)throw new oe("Async validation not supported");if(s.issues)throw new oe(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in t?t.parse(e):typeof t=="function"?t(e):{}}function qo({pathname:t,routesById:e,processedTree:s}){const n={},r=rt(t);let o,a;const i=oo(r,s,!0);return i&&(o=i.route,Object.assign(n,i.rawParams),a=Object.assign({},i.parsedParams)),{matchedRoutes:i?.branch||[e[q]],routeParams:n,foundRoute:o,parsedParams:a}}function Ho({search:t,dest:e,destRoutes:s,_includeValidateSearch:n}){return $o(s)(t,e,n??!1)}function $o(t){const e={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of t){if("search"in r.options)r.options.search?.middlewares&&e.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const o=({search:a,next:i})=>{let c=a;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(c=r.options.preSearchFilters.reduce((u,h)=>h(u),a));const l=i(c);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((u,h)=>h(u),l):l};e.middlewares.push(o)}if(r.options.validateSearch){const o=({search:a,next:i})=>{const c=i(a);if(!e._includeValidateSearch)return c;try{return{...c,...Jt(r.options.validateSearch,c)??void 0}}catch{return c}};e.middlewares.push(o)}}const s=({search:r})=>{const o=e.dest;return o.search?o.search===!0?r:et(o.search,r):{}};e.middlewares.push(s);const n=(r,o,a)=>{if(r>=a.length)return o;const i=a[r];return i({search:o,next:l=>n(r+1,l,a)})};return function(o,a,i){return e.dest=a,e._includeValidateSearch=i,n(0,o,e.middlewares)}}function Ko(t,e){if(t!=="root")for(let s=e.length-1;s>=0;s--){const n=e[s];if(n.children)return n.id}return q}function As(t,e,s,n){const r=t.options.params?.parse??t.options.parseParams;if(r)if(t.options.skipRouteOnParseError)for(const o in e)o in s&&(n[o]=s[o]);else{const o=r(n);Object.assign(n,o)}}const Wo="Error preloading route! ☝️";class Pn{constructor(e){if(this.init=s=>{this.originalIndex=s.originalIndex;const n=this.options,r=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=q:this.parentRoute||J(!1);let o=r?q:n?.path;o&&o!=="/"&&(o=un(o));const a=n?.id||o;let i=r?q:Gt([this.parentRoute.id===q?"":this.parentRoute.id,a]);o===q&&(o="/"),i!==q&&(i=Gt(["/",i]));const c=i===q?"/":Gt([this.parentRoute.fullPath,o]);this._path=o,this._id=i,this._fullPath=c,this._to=rt(c)},this.addChildren=s=>this._addFileChildren(s),this._addFileChildren=s=>(Array.isArray(s)&&(this.children=s),typeof s=="object"&&s!==null&&(this.children=Object.values(s)),this),this._addFileTypes=()=>this,this.updateLoader=s=>(Object.assign(this.options,s),this),this.update=s=>(Object.assign(this.options,s),this),this.lazy=s=>(this.lazyFn=s,this),this.redirect=s=>To({from:this.fullPath,...s}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class Vo extends Pn{constructor(e){super(e)}}const Vt=typeof window<"u"?R.useLayoutEffect:R.useEffect;function Pe(t){const e=R.useRef({value:t,prev:null}),s=e.current.value;return t!==s&&(e.current={value:t,prev:s}),e.current.prev}function zo(t,e,s={},n={}){R.useEffect(()=>{if(!t.current||n.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([o])=>{e(o)},s);return r.observe(t.current),()=>{r.disconnect()}},[e,s,n.disabled,t])}function Qo(t){const e=R.useRef(null);return R.useImperativeHandle(t,()=>e.current,[]),e}function We(t){const e=t.errorComponent??Ve;return y.jsx(Go,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:s,reset:n})=>s?R.createElement(e,{error:s,reset:n}):t.children})}class Go extends R.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(e){return{resetKey:e.getResetKey()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidUpdate(e,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(e,s){this.props.onCatch&&this.props.onCatch(e,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Ve({error:t}){const[e,s]=R.useState(!1);return y.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[y.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),y.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(n=>!n),children:e?"Hide Error":"Show Error"})]}),y.jsx("div",{style:{height:".25rem"}}),e?y.jsx("div",{children:y.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?y.jsx("code",{children:t.message}):null})}):null]})}function Yo({children:t,fallback:e=null}){return bn()?y.jsx(Et.Fragment,{children:t}):y.jsx(Et.Fragment,{children:e})}function bn(){return Et.useSyncExternalStore(Jo,()=>!0,()=>!1)}function Jo(){return()=>{}}var be={exports:{}},we={},xe={exports:{}},Re={};var Ds;function Xo(){if(Ds)return Re;Ds=1;var t=Vs();function e(h,d){return h===d&&(h!==0||1/h===1/d)||h!==h&&d!==d}var s=typeof Object.is=="function"?Object.is:e,n=t.useState,r=t.useEffect,o=t.useLayoutEffect,a=t.useDebugValue;function i(h,d){var f=d(),p=n({inst:{value:f,getSnapshot:d}}),m=p[0].inst,g=p[1];return o(function(){m.value=f,m.getSnapshot=d,c(m)&&g({inst:m})},[h,f,d]),r(function(){return c(m)&&g({inst:m}),h(function(){c(m)&&g({inst:m})})},[h]),a(f),f}function c(h){var d=h.getSnapshot;h=h.value;try{var f=d();return!s(h,f)}catch{return!0}}function l(h,d){return d()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:i;return Re.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,Re}var Bs;function Zo(){return Bs||(Bs=1,xe.exports=Xo()),xe.exports}var Ns;function ti(){if(Ns)return we;Ns=1;var t=Vs(),e=Zo();function s(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var n=typeof Object.is=="function"?Object.is:s,r=e.useSyncExternalStore,o=t.useRef,a=t.useEffect,i=t.useMemo,c=t.useDebugValue;return we.useSyncExternalStoreWithSelector=function(l,u,h,d,f){var p=o(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=i(function(){function v(L){if(!S){if(S=!0,w=L,L=d(L),f!==void 0&&m.hasValue){var _=m.value;if(f(_,L))return P=_}return P=L}if(_=P,n(w,L))return _;var b=d(L);return f!==void 0&&f(_,b)?(w=L,_):(w=L,P=b)}var S=!1,w,P,C=h===void 0?null:h;return[function(){return v(u())},C===null?void 0:function(){return v(C())}]},[u,h,d,f]);var g=r(l,p[0],p[1]);return a(function(){m.hasValue=!0,m.value=g},[g]),c(g),g},we}var Us;function ei(){return Us||(Us=1,be.exports=ti()),be.exports}var si=ei();function ni(t,e){return t===e}function ri(t,e,s=ni){const n=R.useCallback(a=>{if(!t)return()=>{};const{unsubscribe:i}=t.subscribe(a);return i},[t]),r=R.useCallback(()=>t?.get(),[t]);return si.useSyncExternalStoreWithSelector(n,r,r,e,s)}const wn=R.createContext(null);function $(t){const e=R.useContext(wn);return t?.warn,e}function N(t){const e=$({warn:t?.router===void 0}),s=t?.router||e,n=R.useRef(void 0);return ri(s.__store,r=>{if(t?.select){if(t.structuralSharing??s.options.defaultStructuralSharing){const o=D(n.current,t.select(r));return n.current=o,o}return t.select(r)}return r})}const he=R.createContext(void 0),oi=R.createContext(void 0);function G(t){const e=R.useContext(t.from?oi:he);return N({select:n=>{const r=n.matches.find(o=>t.from?t.from===o.routeId:o.id===e);if(J(!((t.shouldThrow??!0)&&!r),`Could not find ${t.from?`an active match from "${t.from}"`:"a nearest match!"}`),r!==void 0)return t.select?t.select(r):r},structuralSharing:t.structuralSharing})}function ze(t){return G({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.loaderData):e.loaderData})}function Qe(t){const{select:e,...s}=t;return G({...s,select:n=>e?e(n.loaderDeps):n.loaderDeps})}function Ge(t){return G({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:e=>{const s=t.strict===!1?e.params:e._strictParams;return t.select?t.select(s):s}})}function Ye(t){return G({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.search):e.search})}function Je(t){const e=$();return R.useCallback(s=>e.navigate({...s,from:s.from??t?.from}),[t?.from,e])}function ii(t,e){const s=$(),n=Qo(e),{activeProps:r,inactiveProps:o,activeOptions:a,to:i,preload:c,preloadDelay:l,hashScrollIntoView:u,replace:h,startTransition:d,resetScroll:f,viewTransition:p,children:m,target:g,disabled:v,style:S,className:w,onClick:P,onBlur:C,onFocus:L,onMouseEnter:_,onMouseLeave:b,onTouchStart:x,ignoreBlocker:k,params:M,search:T,hash:F,state:O,mask:Z,reloadDocument:V,unsafeRelative:xt,from:Qi,_fromLocation:Gi,...ts}=t,es=bn(),kn=N({select:I=>{const j=I.matches[I.matches.length-1];return{search:j?.search,hash:I.location.hash,path:j?.pathname}},structuralSharing:!0}),ss=t.from,Rt=R.useMemo(()=>({...t,from:ss}),[s,kn,ss,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),U=R.useMemo(()=>s.buildLocation({...Rt}),[s,Rt]),ns=U.maskedLocation?U.maskedLocation.publicHref:U.publicHref,rs=U.maskedLocation?U.maskedLocation.external:U.external,_t=R.useMemo(()=>di(ns,rs,s.history,v),[v,rs,ns,s.history]),Ut=R.useMemo(()=>{if(_t?.external)return ee(_t.href,s.protocolAllowlist)?void 0:_t.href;if(!fi(i)&&!(typeof i!="string"||i.indexOf(":")===-1))try{return new URL(i),ee(i,s.protocolAllowlist)?void 0:i}catch{}},[i,_t,s.protocolAllowlist]),fe=N({select:I=>{if(Ut)return!1;if(a?.exact){if(!ho(I.location.pathname,U.pathname,s.basepath))return!1}else{const j=ne(I.location.pathname,s.basepath),K=ne(U.pathname,s.basepath);if(!(j.startsWith(K)&&(j.length===K.length||j[K.length]==="/")))return!1}return(a?.includeSearch??!0)&&!lt(I.location.search,U.search,{partial:!a?.exact,ignoreUndefined:!a?.explicitUndefined})?!1:a?.includeHash?es&&I.location.hash===U.hash:!0}}),qt=fe?et(r,{})??ai:_e,Ht=fe?_e:et(o,{})??_e,os=[w,qt.className,Ht.className].filter(Boolean).join(" "),is=(S||qt.style||Ht.style)&&{...S,...qt.style,...Ht.style},[In,as]=R.useState(!1),cs=R.useRef(!1),pt=t.reloadDocument||Ut?!1:c??s.options.defaultPreload,pe=l??s.options.defaultPreloadDelay??0,ot=R.useCallback(()=>{s.preloadRoute({...Rt,_builtLocation:U}).catch(I=>{console.warn(I),console.warn(Wo)})},[s,Rt,U]),En=R.useCallback(I=>{I?.isIntersecting&&ot()},[ot]);zo(n,En,hi,{disabled:!!v||pt!=="viewport"}),R.useEffect(()=>{cs.current||!v&&pt==="render"&&(ot(),cs.current=!0)},[v,ot,pt]);const On=I=>{const j=I.currentTarget.getAttribute("target"),K=g!==void 0?g:j;if(!v&&!pi(I)&&!I.defaultPrevented&&(!K||K==="_self")&&I.button===0){I.preventDefault(),An.flushSync(()=>{as(!0)});const hs=s.subscribe("onResolved",()=>{hs(),as(!1)});s.navigate({...Rt,replace:h,resetScroll:f,hashScrollIntoView:u,startTransition:d,viewTransition:p,ignoreBlocker:k})}};if(Ut)return{...ts,ref:n,href:Ut,...m&&{children:m},...g&&{target:g},...v&&{disabled:v},...S&&{style:S},...w&&{className:w},...P&&{onClick:P},...C&&{onBlur:C},...L&&{onFocus:L},..._&&{onMouseEnter:_},...b&&{onMouseLeave:b},...x&&{onTouchStart:x}};const ls=I=>{if(v||pt!=="intent")return;if(!pe){ot();return}const j=I.currentTarget;if(Tt.has(j))return;const K=setTimeout(()=>{Tt.delete(j),ot()},pe);Tt.set(j,K)},jn=I=>{v||pt!=="intent"||ot()},us=I=>{if(v||!pt||!pe)return;const j=I.currentTarget,K=Tt.get(j);K&&(clearTimeout(K),Tt.delete(j))};return{...ts,...qt,...Ht,href:_t?.href,ref:n,onClick:mt([P,On]),onBlur:mt([C,us]),onFocus:mt([L,ls]),onMouseEnter:mt([_,ls]),onMouseLeave:mt([b,us]),onTouchStart:mt([x,jn]),disabled:!!v,target:g,...is&&{style:is},...os&&{className:os},...v&&ci,...fe&&li,...es&&In&&ui}}const _e={},ai={className:"active"},ci={role:"link","aria-disabled":!0},li={"data-status":"active","aria-current":"page"},ui={"data-transitioning":"transitioning"},Tt=new WeakMap,hi={rootMargin:"100px"},mt=t=>e=>{for(const s of t)if(s){if(e.defaultPrevented)return;s(e)}};function di(t,e,s,n){if(!n)return e?{href:t,external:!0}:{href:s.createHref(t)||"/",external:!1}}function fi(t){if(typeof t!="string")return!1;const e=t.charCodeAt(0);return e===47?t.charCodeAt(1)!==47:e===46}const xn=R.forwardRef((t,e)=>{const{_asChild:s,...n}=t,{type:r,...o}=ii(n,e),a=typeof n.children=="function"?n.children({isActive:o["data-status"]==="active"}):n.children;if(!s){const{disabled:i,...c}=o;return R.createElement("a",c,a)}return R.createElement(s,o,a)});function pi(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}class mi extends Pn{constructor(e){super(e),this.useMatch=s=>G({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>G({...s,from:this.id,select:n=>s?.select?s.select(n.context):n.context}),this.useSearch=s=>Ye({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>Ge({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Qe({...s,from:this.id}),this.useLoaderData=s=>ze({...s,from:this.id}),this.useNavigate=()=>Je({from:this.fullPath}),this.Link=Et.forwardRef((s,n)=>y.jsx(xn,{ref:n,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function bt(t){return new mi(t)}class gi extends Vo{constructor(e){super(e),this.useMatch=s=>G({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>G({...s,from:this.id,select:n=>s?.select?s.select(n.context):n.context}),this.useSearch=s=>Ye({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>Ge({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Qe({...s,from:this.id}),this.useLoaderData=s=>ze({...s,from:this.id}),this.useNavigate=()=>Je({from:this.fullPath}),this.Link=Et.forwardRef((s,n)=>y.jsx(xn,{ref:n,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function yi(t){return new gi(t)}function qs(t){return typeof t=="object"?new Hs(t,{silent:!0}).createRoute(t):new Hs(t,{silent:!0}).createRoute}class Hs{constructor(e,s){this.path=e,this.createRoute=n=>{const r=bt(n);return r.isRoot=!1,r},this.silent=s?.silent}}class $s{constructor(e){this.useMatch=s=>G({select:s?.select,from:this.options.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>G({from:this.options.id,select:n=>s?.select?s.select(n.context):n.context}),this.useSearch=s=>Ye({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useParams=s=>Ge({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useLoaderDeps=s=>Qe({...s,from:this.options.id}),this.useLoaderData=s=>ze({...s,from:this.options.id}),this.useNavigate=()=>{const s=$();return Je({from:s.routesById[this.options.id].fullPath})},this.options=e,this.$$typeof=Symbol.for("react.memo")}}function Ks(t){return typeof t=="object"?new $s(t):e=>new $s({id:t,...e})}function vi(){const t=$(),e=R.useRef({router:t,mounted:!1}),[s,n]=R.useState(!1),{hasPendingMatches:r,isLoading:o}=N({select:h=>({isLoading:h.isLoading,hasPendingMatches:h.matches.some(d=>d.status==="pending")}),structuralSharing:!0}),a=Pe(o),i=o||s||r,c=Pe(i),l=o||r,u=Pe(l);return t.startTransition=h=>{n(!0),R.startTransition(()=>{h(),n(!1)})},R.useEffect(()=>{const h=t.history.subscribe(t.load),d=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return rt(t.latestLocation.publicHref)!==rt(d.publicHref)&&t.commitLocation({...d,replace:!0}),()=>{h()}},[t,t.history]),Vt(()=>{if(typeof window<"u"&&t.ssr||e.current.router===t&&e.current.mounted)return;e.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(d){console.error(d)}})()},[t]),Vt(()=>{a&&!o&&t.emit({type:"onLoad",...ut(t.state)})},[a,t,o]),Vt(()=>{u&&!l&&t.emit({type:"onBeforeRouteMount",...ut(t.state)})},[l,u,t]),Vt(()=>{if(c&&!i){const h=ut(t.state);t.emit({type:"onResolved",...h}),t.__store.setState(d=>({...d,status:"idle",resolvedLocation:d.location})),h.hrefChanged&&wo(t)}},[i,c,t]),null}function Si(t){const e=N({select:s=>`not-found-${s.location.pathname}-${s.status}`});return y.jsx(We,{getResetKey:()=>e,onCatch:(s,n)=>{if(B(s))t.onCatch?.(s,n);else throw s},errorComponent:({error:s})=>{if(B(s))return t.fallback?.(s);throw s},children:t.children})}function Pi(){return y.jsx("p",{children:"Not Found"})}function gt(t){return y.jsx(y.Fragment,{children:t.children})}function Rn(t,e,s){return e.options.notFoundComponent?y.jsx(e.options.notFoundComponent,{...s}):t.options.defaultNotFoundComponent?y.jsx(t.options.defaultNotFoundComponent,{...s}):y.jsx(Pi,{})}function bi(){return $().isScrollRestoring,null}const _n=R.memo(function({matchId:e}){const s=$(),n=N({select:m=>{const g=m.matches.findIndex(S=>S.id===e),v=m.matches[g];return J(v),{routeId:v.routeId,ssr:v.ssr,_displayPending:v._displayPending,resetKey:m.loadedAt,parentRouteId:m.matches[g-1]?.routeId}},structuralSharing:!0}),r=s.routesById[n.routeId],o=r.options.pendingComponent??s.options.defaultPendingComponent,a=o?y.jsx(o,{}):null,i=r.options.errorComponent??s.options.defaultErrorComponent,c=r.options.onCatch??s.options.defaultOnCatch,l=r.isRoot?r.options.notFoundComponent??s.options.notFoundRoute?.options.component:r.options.notFoundComponent,u=n.ssr===!1||n.ssr==="data-only",h=(!r.isRoot||r.options.wrapInSuspense||u)&&(r.options.wrapInSuspense??o??(r.options.errorComponent?.preload||u))?R.Suspense:gt,d=i?We:gt,f=l?Si:gt,p=r.isRoot?r.options.shellComponent??gt:gt;return y.jsxs(p,{children:[y.jsx(he.Provider,{value:e,children:y.jsx(h,{fallback:a,children:y.jsx(d,{getResetKey:()=>n.resetKey,errorComponent:i||Ve,onCatch:(m,g)=>{if(B(m))throw m;c?.(m,g)},children:y.jsx(f,{fallback:m=>{if(!l||m.routeId&&m.routeId!==n.routeId||!m.routeId&&!r.isRoot)throw m;return R.createElement(l,m)},children:u||n._displayPending?y.jsx(Yo,{fallback:a,children:y.jsx(Ws,{matchId:e})}):y.jsx(Ws,{matchId:e})})})})}),n.parentRouteId===q&&s.options.scrollRestoration?y.jsxs(y.Fragment,{children:[y.jsx(wi,{}),y.jsx(bi,{})]}):null]})});function wi(){const t=$(),e=R.useRef(void 0);return y.jsx("script",{suppressHydrationWarning:!0,ref:s=>{s&&(e.current===void 0||e.current.href!==t.latestLocation.href)&&(t.emit({type:"onRendered",...ut(t.state)}),e.current=t.latestLocation)}},t.latestLocation.state.__TSR_key)}const Ws=R.memo(function({matchId:e}){const s=$(),{match:n,key:r,routeId:o}=N({select:c=>{const l=c.matches.find(p=>p.id===e),u=l.routeId,d=(s.routesById[u].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:u,loaderDeps:l.loaderDeps,params:l._strictParams,search:l._strictSearch});return{key:d?JSON.stringify(d):void 0,routeId:u,match:{id:l.id,status:l.status,error:l.error,invalid:l.invalid,_forcePending:l._forcePending,_displayPending:l._displayPending}}},structuralSharing:!0}),a=s.routesById[o],i=R.useMemo(()=>{const c=a.options.component??s.options.defaultComponent;return c?y.jsx(c,{},r):y.jsx(Xe,{})},[r,a.options.component,s.options.defaultComponent]);if(n._displayPending)throw s.getMatch(n.id)?._nonReactive.displayPendingPromise;if(n._forcePending)throw s.getMatch(n.id)?._nonReactive.minPendingPromise;if(n.status==="pending"){const c=a.options.pendingMinMs??s.options.defaultPendingMinMs;if(c){const l=s.getMatch(n.id);if(l&&!l._nonReactive.minPendingPromise){const u=St();l._nonReactive.minPendingPromise=u,setTimeout(()=>{u.resolve(),l._nonReactive.minPendingPromise=void 0},c)}}throw s.getMatch(n.id)?._nonReactive.loadPromise}if(n.status==="notFound")return J(B(n.error)),Rn(s,a,n.error);if(n.status==="redirected")throw J(H(n.error)),s.getMatch(n.id)?._nonReactive.loadPromise;if(n.status==="error")throw n.error;return i}),Xe=R.memo(function(){const e=$(),s=R.useContext(he),n=N({select:l=>l.matches.find(u=>u.id===s)?.routeId}),r=e.routesById[n],o=N({select:l=>{const h=l.matches.find(d=>d.id===s);return J(h),h.globalNotFound}}),a=N({select:l=>{const u=l.matches,h=u.findIndex(d=>d.id===s);return u[h+1]?.id}}),i=e.options.defaultPendingComponent?y.jsx(e.options.defaultPendingComponent,{}):null;if(o)return Rn(e,r,void 0);if(!a)return null;const c=y.jsx(_n,{matchId:a});return n===q?y.jsx(R.Suspense,{fallback:i,children:c}):c});function xi(){const t=$(),s=t.routesById[q].options.pendingComponent??t.options.defaultPendingComponent,n=s?y.jsx(s,{}):null,r=typeof document<"u"&&t.ssr?gt:R.Suspense,o=y.jsxs(r,{fallback:n,children:[y.jsx(vi,{}),y.jsx(Ri,{})]});return t.options.InnerWrap?y.jsx(t.options.InnerWrap,{children:o}):o}function Ri(){const t=$(),e=N({select:r=>r.matches[0]?.id}),s=N({select:r=>r.loadedAt}),n=e?y.jsx(_n,{matchId:e}):null;return y.jsx(he.Provider,{value:e,children:t.options.disableGlobalCatchBoundary?n:y.jsx(We,{getResetKey:()=>s,errorComponent:Ve,onCatch:void 0,children:n})})}const _i=t=>new Ci(t);class Ci extends Bo{constructor(e){super(e)}}typeof globalThis<"u"?(globalThis.createFileRoute=qs,globalThis.createLazyFileRoute=Ks):typeof window<"u"&&(window.createFileRoute=qs,window.createLazyFileRoute=Ks);function Li({router:t,children:e,...s}){Object.keys(s).length>0&&t.update({...t.options,...s,context:{...t.options.context,...s.context}});const n=y.jsx(wn.Provider,{value:t,children:e});return t.options.Wrap?y.jsx(t.options.Wrap,{children:n}):n}function Mi({router:t,...e}){return y.jsx(Li,{router:t,...e,children:y.jsx(xi,{})})}const Cn=R.forwardRef(function(e,s){const n=X.c(19);let r,o,a,i,c,l;n[0]!==e?({title:l,children:r,icon:a,startElement:c,endElement:o,...i}=e,n[0]=e,n[1]=r,n[2]=o,n[3]=a,n[4]=i,n[5]=c,n[6]=l):(r=n[1],o=n[2],a=n[3],i=n[4],c=n[5],l=n[6]);let u;n[7]!==a||n[8]!==c?(u=c||y.jsx(Zn,{children:a}),n[7]=a,n[8]=c,n[9]=u):u=n[9];let h;n[10]!==r||n[11]!==l?(h=r?y.jsxs(Jn,{children:[y.jsx(ps,{children:l}),y.jsx(Yn,{children:r})]}):y.jsx(ps,{flex:"1",children:l}),n[10]=r,n[11]=l,n[12]=h):h=n[12];let d;return n[13]!==o||n[14]!==s||n[15]!==i||n[16]!==u||n[17]!==h?(d=y.jsxs(Gn,{ref:s,...i,children:[u,h,o]}),n[13]=o,n[14]=s,n[15]=i,n[16]=u,n[17]=h,n[18]=d):d=n[18],d});Cn.__docgenInfo={description:"",methods:[],displayName:"AlertMessage",props:{startElement:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},endElement:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},title:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},icon:{required:!1,tsType:{name:"ReactReactElement",raw:"React.ReactElement"},description:""}},composes:["Omit"]};class de extends R.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,s){console.error("Dashboard error boundary caught an error",e,s)}handleReset=()=>{this.setState({error:null}),this.props.onReset?.()};render(){const{children:e,fallback:s,label:n}=this.props,{error:r}=this.state;return r?s||y.jsx(Ln,{error:r,label:n,onReset:this.handleReset}):e}}const Ln=t=>{const e=X.c(12),{error:s,label:n,onReset:r}=t,o=n??"Something went wrong";let a;e[0]!==o?(a=y.jsx(ht,{textStyle:"paragraph/M/medium",children:o}),e[0]=o,e[1]=a):a=e[1];const i=s.message||"An unexpected error occurred while rendering this section.";let c;e[2]!==i?(c=y.jsx(ht,{textStyle:"paragraph/S/regular",children:i}),e[2]=i,e[3]=c):c=e[3];let l;e[4]!==r?(l=r?y.jsx(Ce,{size:"sm",variant:"solid",colorScheme:"black",onClick:r,children:"Try again"}):null,e[4]=r,e[5]=l):l=e[5];let u;e[6]!==c||e[7]!==l?(u=y.jsxs(Q,{gap:"sm",children:[c,l]}),e[6]=c,e[7]=l,e[8]=u):u=e[8];let h;return e[9]!==a||e[10]!==u?(h=y.jsx(zs,{height:"100%",width:"100%",children:y.jsx(qn,{children:y.jsx(Cn,{status:"error",title:a,children:u})})}),e[9]=a,e[10]=u,e[11]=h):h=e[11],h};de.__docgenInfo={description:"",methods:[{name:"handleReset",docblock:null,modifiers:[],params:[],returns:null}],displayName:"ErrorBoundary",props:{children:{required:!0,tsType:{name:"ReactNode"},description:""},fallback:{required:!1,tsType:{name:"ReactNode"},description:""},label:{required:!1,tsType:{name:"string"},description:""},onReset:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};Ln.__docgenInfo={description:"",methods:[],displayName:"ErrorFallback",props:{error:{required:!0,tsType:{name:"Error"},description:""},label:{required:!1,tsType:{name:"string"},description:""},onReset:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const Ze=()=>{const t=X.c(6),{location:e}=N();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=y.jsx(Xe,{}),t[0]=s):s=t[0];let n;t[1]!==e.pathname?(n=y.jsx(Q,{flex:"1",minH:"100vh",gap:"0",overflow:"hidden",children:y.jsx(Ot,{flex:"1",height:"100%",alignItems:"stretch",overflow:"hidden",children:y.jsx(Qs,{flex:"1",bg:"bg",overflowY:"auto",children:y.jsx(de,{label:"Unable to render this page.",children:s},e.pathname)})})}),t[1]=e.pathname,t[2]=n):n=t[2];let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx($n,{}),t[3]=r):r=t[3];let o;return t[4]!==n?(o=y.jsxs(y.Fragment,{children:[n,r]}),t[4]=n,t[5]=o):o=t[5],o},Mn=t=>{const e=X.c(13),{title:s,menuContent:n,errorLabel:r,children:o}=t;let a;e[0]!==n||e[1]!==s?(a=y.jsx(Hn,{title:s,children:n}),e[0]=n,e[1]=s,e[2]=a):a=e[2];const i=r??"Unable to render the panel.";let c;e[3]!==o?(c=o??y.jsx(Xe,{}),e[3]=o,e[4]=c):c=e[4];let l;e[5]!==c?(l=y.jsx(Ot,{flex:"1",overflow:"hidden",minH:"0",children:c}),e[5]=c,e[6]=l):l=e[6];let u;e[7]!==i||e[8]!==l?(u=y.jsx(de,{label:i,children:l}),e[7]=i,e[8]=l,e[9]=u):u=e[9];let h;return e[10]!==a||e[11]!==u?(h=y.jsxs(Ot,{height:"100%",width:"100%",minH:"0",children:[a,u]}),e[10]=a,e[11]=u,e[12]=h):h=e[12],h},Tn=t=>{const e=X.c(7),{actions:s,content:n}=t;let r;e[0]!==s?(r=y.jsx(Dn,{align:"flex-start",flexWrap:"wrap",gap:"sm",children:s}),e[0]=s,e[1]=r):r=e[1];let o;e[2]!==n?(o=y.jsx(de,{label:"Unable to render the panel.",children:y.jsx(Ot,{flex:"1",overflow:"hidden",minH:"0",children:n})}),e[2]=n,e[3]=o):o=e[3];let a;return e[4]!==r||e[5]!==o?(a=y.jsxs(Q,{height:"100%",width:"100%",gap:"0",minH:"0",children:[r,o]}),e[4]=r,e[5]=o,e[6]=a):a=e[6],a};Ze.__docgenInfo={description:"",methods:[],displayName:"Layout"};Mn.__docgenInfo={description:"",methods:[],displayName:"PanelLayout",props:{title:{required:!0,tsType:{name:"string"},description:""},menuContent:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},errorLabel:{required:!1,tsType:{name:"string"},description:""},children:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};Tn.__docgenInfo={description:"",methods:[],displayName:"PanelSectionLayout",props:{actions:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},content:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};const Ti=new Cr({defaultOptions:{queries:{retry:!1,staleTime:Number.POSITIVE_INFINITY},mutations:{retry:!1}}}),ki=t=>{const e=X.c(4),{items:s}=t;let n;e[0]!==s?(n=s.map(Vi),e[0]=s,e[1]=n):n=e[1];let r;return e[2]!==n?(r=y.jsx(Q,{gap:"xs",children:n}),e[2]=n,e[3]=r):r=e[3],r},Ii=t=>{const e=X.c(12),{title:s,primaryLabel:n,secondaryLabel:r}=t;let o;e[0]!==s?(o=y.jsx(Q,{gap:"2xs",children:y.jsx(ht,{textStyle:"label/L/medium",children:s})}),e[0]=s,e[1]=o):o=e[1];let a;e[2]!==n?(a=y.jsx(Ce,{size:"sm",variant:"solid",children:n}),e[2]=n,e[3]=a):a=e[3];let i;e[4]!==r?(i=y.jsx(Ce,{size:"sm",variant:"ghost",children:r}),e[4]=r,e[5]=i):i=e[5];let c;e[6]!==a||e[7]!==i?(c=y.jsxs(Kn,{gap:"sm",ml:"auto",children:[a,i]}),e[6]=a,e[7]=i,e[8]=c):c=e[8];let l;return e[9]!==o||e[10]!==c?(l=y.jsxs(Ot,{width:"100%",alignItems:"center",gap:"sm",flexWrap:"wrap",children:[o,c]}),e[9]=o,e[10]=c,e[11]=l):l=e[11],l},Ei=t=>{const e=X.c(4),{sections:s}=t;let n;e[0]!==s?(n=s.map(zi),e[0]=s,e[1]=n):n=e[1];let r;return e[2]!==n?(r=y.jsx(Q,{flex:"1",minH:"0",width:"100%",p:"md",gap:"lg",overflowY:"auto",children:n}),e[2]=n,e[3]=r):r=e[3],r},Oi=t=>{const e=X.c(16),{title:s,menuItems:n,actions:r,contentSections:o}=t;let a;e[0]!==n?(a=y.jsx(ki,{items:n}),e[0]=n,e[1]=a):a=e[1];const i=`Unable to render the ${s} panel.`,c=`${s} workspace`;let l;e[2]!==r.primaryLabel||e[3]!==r.secondaryLabel||e[4]!==c?(l=y.jsx(Ii,{title:c,primaryLabel:r.primaryLabel,secondaryLabel:r.secondaryLabel}),e[2]=r.primaryLabel,e[3]=r.secondaryLabel,e[4]=c,e[5]=l):l=e[5];let u;e[6]!==o?(u=y.jsx(Ei,{sections:o}),e[6]=o,e[7]=u):u=e[7];let h;e[8]!==l||e[9]!==u?(h=y.jsx(Q,{gap:"lg",height:"100%",width:"100%",children:y.jsx(Tn,{actions:l,content:u})}),e[8]=l,e[9]=u,e[10]=h):h=e[10];let d;return e[11]!==a||e[12]!==i||e[13]!==h||e[14]!==s?(d=y.jsx(Mn,{title:s,menuContent:a,errorLabel:i,children:h}),e[11]=a,e[12]=i,e[13]=h,e[14]=s,e[15]=d):d=e[15],d},Nt=t=>()=>y.jsx(Oi,{...t}),ji=Nt({title:"Files",description:"Browse uploads, assets, and artifacts across the Schub buckets.",menuItems:["Inbox","Archive","Shared"],actions:{primaryLabel:"Upload file",secondaryLabel:"Refresh"},contentSections:[{id:"incoming",title:"Incoming uploads",description:"Newly added files ready for ingestion.",placeholderHeight:"360px"},{id:"processing",title:"Processing queue",description:"Jobs running extraction or cleanup.",placeholderHeight:"240px"},{id:"library",title:"Library",description:"Previously processed documents and assets.",placeholderHeight:"320px"}]}),Fi=Nt({title:"Pipelines",description:"Configure workflows, versions, and execution targets.",menuItems:["Active pipelines","Drafts","Retired"],actions:{primaryLabel:"New pipeline",secondaryLabel:"Import"},contentSections:[{id:"versions",title:"Current versions",description:"Rollouts and approvals for each pipeline.",placeholderHeight:"300px"},{id:"runs",title:"Recent runs",description:"Latest executions with status and outputs.",placeholderHeight:"260px"},{id:"approvals",title:"Approval queue",description:"Changes awaiting review before shipping.",placeholderHeight:"220px"}]}),Ai=Nt({title:"Jobs",description:"Track status and outputs for each processing run.",menuItems:["Running","Completed","Failed"],actions:{primaryLabel:"Create job",secondaryLabel:"Retry failed"},contentSections:[{id:"live",title:"Live jobs",description:"Active runs streaming logs and metrics.",placeholderHeight:"340px"},{id:"history",title:"History",description:"Completed work with artifacts and summaries.",placeholderHeight:"280px"},{id:"alerts",title:"Alerts",description:"Failures that need your attention.",placeholderHeight:"200px"}]}),Di=Nt({title:"Extraction",description:"Manage schemas, previews, and extraction templates.",menuItems:["Schemas","Previews","Mappings"],actions:{primaryLabel:"New schema",secondaryLabel:"Run preview"},contentSections:[{id:"schemas",title:"Schemas",description:"Fields and validation rules for incoming data.",placeholderHeight:"260px"},{id:"previews",title:"Previews",description:"Sample documents and rendered results.",placeholderHeight:"320px"},{id:"templates",title:"Templates",description:"Reusable extraction logic across datasets.",placeholderHeight:"240px"}]}),Bi=Nt({title:"Evals",description:"Review evals, datasets, and validation runs.",menuItems:["Datasets","Runs","Reports"],actions:{primaryLabel:"New eval",secondaryLabel:"Refresh"},contentSections:[{id:"datasets",title:"Datasets",description:"Collections of labeled documents for checks.",placeholderHeight:"300px"},{id:"runs",title:"Eval runs",description:"Execution history across evaluators.",placeholderHeight:"260px"},{id:"reports",title:"Reports",description:"Metrics, charts, and downloadable summaries.",placeholderHeight:"340px"}]}),wt=yi({component:Ze}),Ni=bt({getParentRoute:()=>wt,path:"files",component:ji}),Ui=bt({getParentRoute:()=>wt,path:"pipelines",component:Fi}),qi=bt({getParentRoute:()=>wt,path:"jobs",component:Ai}),Hi=bt({getParentRoute:()=>wt,path:"extraction",component:Di}),$i=bt({getParentRoute:()=>wt,path:"evals",component:Bi}),Ki=wt.addChildren([Ni,Ui,qi,Hi,$i]),Wi=_i({routeTree:Ki,history:Vr({initialEntries:["/files"]})}),_a={title:"Components/Layout",component:Ze,decorators:[t=>y.jsx(Mr,{client:Ti,children:y.jsx(Qs,{height:"100vh",background:"bg",display:"flex",flexDirection:"column",overflow:"hidden",children:y.jsx(t,{})})})]},zt={render:()=>y.jsx(Mi,{router:Wi})};function Vi(t){return y.jsxs(Q,{gap:"2xs",p:"xs",borderWidth:"1px",borderRadius:"md",children:[y.jsx(ht,{textStyle:"label/M/medium",children:t}),y.jsx(ht,{textStyle:"paragraph/XS/regular",color:"fg.muted",children:"Quick links and filters live here inside the panel menu."})]},t)}function zi(t){return y.jsxs(Q,{gap:"md",children:[y.jsxs(Q,{gap:"2xs",children:[y.jsx(ht,{textStyle:"label/L/medium",children:t.title}),y.jsx(ht,{textStyle:"paragraph/XS/regular",color:"fg.muted",children:t.description})]}),y.jsx(zs,{minH:t.placeholderHeight??"260px",borderRadius:"md"})]},t.id)}zt.parameters={...zt.parameters,docs:{...zt.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
render: () => <RouterProvider router={router} />
|
|
3
|
-
}`,...zt.parameters?.docs?.source}}};const Ca=["AppShell"];export{zt as AppShell,Ca as __namedExportsOrder,_a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t}from"./create-recipe-context-BU56IzEo.js";const{withContext:e}=t({key:"link"}),i=e("a");i.displayName="Link";export{i as L};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const n=/^---\s*\n([\s\S]*?)\n---\s*(?:\n|$)/;function s(t){const r=t.match(n);return r?{frontmatter:r[0],body:t.slice(r[0].length)}:{frontmatter:"",body:t}}export{s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as R,j as t}from"./iframe-B8FSoBNY.js";import{c as J}from"./compiler-runtime-BXE7OOXE.js";import{C as O,L as H,n as L,D as V,f as z}from"./rich-text-theme-Bkhh9rAZ.js";import{J as G,l as Q,s as U,n as X,I as Y,E as Z,K as ee}from"./CodeBlockPlugin-C3OWpvP8.js";import{a as te}from"./LexicalHistoryPlugin.prod-BQAibkDj.js";import{n as oe,T as re,a as se}from"./TreeViewPlugin-CyVKCrKJ.js";import{e as ne,a as ie,F as le,b as N}from"./FloatingTextFormatToolbarPlugin-B6jc8xvg.js";import{s as ae}from"./markdown-BLUemkxK.js";import{B as de}from"./index-B0y2_lLF.js";import{F as me}from"./flex-DAJL4AFZ.js";function ce(S){const e=J.c(38),{debug:k,defaultState:P,isEditable:D,placeholder:m,onChange:c}=S,_=k===void 0?!1:k,w=P===void 0?"":P,o=D===void 0?!1:D;let f;e[0]!==w?(f=ae(w),e[0]=w,e[1]=f):f=e[1];const{frontmatter:F,body:q}=f,B=o&&!!c,I=R.useRef(null),[u,A]=R.useState(null);let p,g;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{A(I.current)},g=[],e[2]=p,e[3]=g):(p=e[2],g=e[3]),R.useEffect(p,g);let r;e[4]!==q?(r=()=>G(q,N,void 0,!1),e[4]=q,e[5]=r):r=e[5];let h;e[6]!==o||e[7]!==r?(h={namespace:"MARKDOWN_EDITOR",nodes:ie,editorState:r,onError:fe,editable:o,theme:ne},e[6]=o,e[7]=r,e[8]=h):h=e[8];const M=h;let x,b,E,j,y,T;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(te,{}),T=t.jsx(Q,{}),x=t.jsx(U,{}),b=t.jsx(X,{}),E=t.jsx(Y,{}),j=t.jsx(Z,{}),e[9]=x,e[10]=b,e[11]=E,e[12]=j,e[13]=y,e[14]=T):(x=e[9],b=e[10],E=e[11],j=e[12],y=e[13],T=e[14]);let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(O,{fullWidth:!1}),e[15]=C):C=e[15];let s;e[16]!==m?(s=m?t.jsx(de,{position:"absolute",top:"0",color:"fg.muted",pointerEvents:"none",userSelect:"none",textStyle:"paragraph/M/regular",children:m}):null,e[16]=m,e[17]=s):s=e[17];let n;e[18]!==s?(n=t.jsx(H,{contentEditable:C,placeholder:s,ErrorBoundary:L}),e[18]=s,e[19]=n):n=e[19];let i;e[20]!==u||e[21]!==o?(i=o&&u?t.jsx(le,{anchorElem:u}):null,e[20]=u,e[21]=o,e[22]=i):i=e[22];let l;e[23]!==F||e[24]!==c||e[25]!==B?(l=B?t.jsx(oe,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!1,onChange:K=>{K.read(()=>{const W=V(),$=ee(N,W);c?.(F+$)})}}):null,e[23]=F,e[24]=c,e[25]=B,e[26]=l):l=e[26];let a;e[27]!==o?(a=t.jsx(re,{isEditable:o}),e[27]=o,e[28]=a):a=e[28];let d;e[29]!==_?(d=_&&t.jsx(se,{}),e[29]=_,e[30]=d):d=e[30];let v;return e[31]!==M||e[32]!==n||e[33]!==i||e[34]!==l||e[35]!==a||e[36]!==d?(v=t.jsx(me,{ref:I,className:"rich-text",justifyContent:"space-between",width:"100%",maxWidth:"100%",height:"100%",position:"relative",direction:"column",overflow:"hidden",children:t.jsxs(z,{initialConfig:M,children:[y,T,x,b,E,j,n,i,l,a,d]})}),e[31]=M,e[32]=n,e[33]=i,e[34]=l,e[35]=a,e[36]=d,e[37]=v):v=e[37],v}function fe(S){return console.error(S)}ce.__docgenInfo={description:"",methods:[],displayName:"MarkdownEditor",props:{debug:{required:!1,tsType:{name:"boolean"},description:""},defaultState:{required:!0,tsType:{name:"string"},description:""},isEditable:{required:!1,tsType:{name:"boolean"},description:""},placeholder:{required:!1,tsType:{name:"string"},description:""},onChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""}}};export{ce as M};
|