sparkdesign 0.4.5 → 0.4.7
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/AI_README.md +60 -0
- package/README.md +74 -22
- package/cli/dist/commands/add.js +23 -13
- package/cli/dist/commands/diff.js +8 -4
- package/cli/dist/commands/init.js +85 -10
- package/cli/dist/commands/list.js +8 -4
- package/cli/dist/index.js +9 -6
- package/cli/dist/utils/config.js +16 -8
- package/cli/dist/utils/package-manager.js +75 -0
- package/cli/dist/utils/registry.js +8 -4
- package/cli/dist/utils/tokens.js +33 -25
- package/cli/dist/utils/transform.js +9 -5
- package/cli/dist/utils/tsconfig.js +182 -0
- package/cli/registry/AGENTS.md +25 -0
- package/cli/registry/__tests__/chat/thinking-indicator.test.tsx +2 -2
- package/cli/registry/agent-manifest.json +794 -0
- package/cli/registry/basic/alert.tsx +76 -0
- package/cli/registry/basic/aspect-ratio.tsx +8 -0
- package/cli/registry/basic/breadcrumb.tsx +117 -0
- package/cli/registry/basic/button-group.tsx +79 -0
- package/cli/registry/basic/button.tsx +1 -1
- package/cli/registry/basic/calendar.tsx +221 -0
- package/cli/registry/basic/card.tsx +103 -0
- package/cli/registry/basic/carousel.tsx +241 -0
- package/cli/registry/basic/chart.tsx +372 -0
- package/cli/registry/basic/checkbox.tsx +42 -0
- package/cli/registry/basic/collapsible-card.tsx +2 -2
- package/cli/registry/basic/combobox.tsx +75 -0
- package/cli/registry/basic/command.tsx +184 -0
- package/cli/registry/basic/context-menu.tsx +239 -0
- package/cli/registry/basic/data-table.tsx +73 -0
- package/cli/registry/basic/date-picker.tsx +13 -0
- package/cli/registry/basic/dialog.tsx +169 -0
- package/cli/registry/basic/direction.tsx +25 -0
- package/cli/registry/basic/drawer.tsx +164 -0
- package/cli/registry/basic/dropdown-menu.tsx +0 -4
- package/cli/registry/basic/empty.tsx +104 -0
- package/cli/registry/basic/field.tsx +248 -0
- package/cli/registry/basic/hover-card.tsx +58 -0
- package/cli/registry/basic/input-group.tsx +168 -0
- package/cli/registry/basic/input-otp.tsx +75 -0
- package/cli/registry/basic/input.tsx +27 -0
- package/cli/registry/basic/item.tsx +204 -0
- package/cli/registry/basic/label.tsx +24 -0
- package/cli/registry/basic/menubar.tsx +274 -0
- package/cli/registry/basic/native-select.tsx +62 -0
- package/cli/registry/basic/navigation-menu.tsx +168 -0
- package/cli/registry/basic/popover.tsx +59 -0
- package/cli/registry/basic/scroll-area.tsx +58 -0
- package/cli/registry/basic/select.tsx +2 -1
- package/cli/registry/basic/separator.tsx +26 -0
- package/cli/registry/basic/sheet.tsx +18 -0
- package/cli/registry/basic/textarea.tsx +25 -0
- package/cli/registry/basic/toggle.tsx +1 -1
- package/cli/registry/basic/typography.tsx +1 -1
- package/cli/registry/chat/chat-input/chat-input-folder-selector.tsx +1 -1
- package/cli/registry/chat/chat-input/chat-input-textarea.tsx +1 -1
- package/cli/registry/chat/chat-input/compound.tsx +4 -3
- package/cli/registry/chat/chat-input/context.tsx +4 -1
- package/cli/registry/chat/chat-input/folder-permission-dialog.tsx +2 -2
- package/cli/registry/chat/code-block-part.tsx +1 -1
- package/cli/registry/chat/conversation-anchor-nav.tsx +349 -0
- package/cli/registry/chat/file-attachment.tsx +2 -1
- package/cli/registry/chat/file-review-part.tsx +21 -21
- package/cli/registry/chat/image-generating.tsx +1 -1
- package/cli/registry/chat/markdown.tsx +2 -2
- package/cli/registry/chat/queue-indicator.tsx +1 -0
- package/cli/registry/chat/response/context.tsx +1 -1
- package/cli/registry/chat/streaming-markdown-block.tsx +12 -8
- package/cli/registry/chat/thinking-indicator.tsx +1 -1
- package/cli/registry/chat/tool-invocation-card.tsx +4 -1
- package/cli/registry/lib/file-icon-maps.ts +22 -22
- package/cli/registry/meta.json +518 -0
- package/cli/registry/tokens/index.css +8 -5
- package/cli/registry/tokens/ontology.json +404 -0
- package/cli/registry/tokens/scale/presets/compact.css +16 -5
- package/cli/registry/tokens/scale/presets/dense.css +13 -2
- package/cli/registry/tokens/scale/presets/sharp.css +18 -6
- package/cli/registry/tokens/scale/presets/soft.css +23 -1
- package/cli/registry/tokens/theme-base.css +235 -0
- package/{dist/tokens/themes/dark-qoder.css → cli/registry/tokens/themes/dark-mint.css} +1 -1
- package/cli/registry/tokens/themes/dark-parchment.css +104 -103
- package/{dist/tokens/themes/light-qoder.css → cli/registry/tokens/themes/light-mint.css} +1 -1
- package/cli/registry/tokens/themes/light-parchment.css +103 -102
- package/dist/registry/basic/alert-dialog.d.ts +7 -5
- package/dist/registry/basic/alert.d.ts +24 -0
- package/dist/registry/basic/aspect-ratio.d.ts +16 -0
- package/dist/registry/basic/avatar.d.ts +7 -5
- package/dist/registry/basic/breadcrumb.d.ts +24 -0
- package/dist/registry/basic/button-group.d.ts +26 -0
- package/dist/registry/basic/button.d.ts +1 -1
- package/dist/registry/basic/calendar.d.ts +22 -0
- package/dist/registry/basic/card.d.ts +27 -0
- package/dist/registry/basic/carousel.d.ts +19 -0
- package/dist/registry/basic/chart.d.ts +55 -0
- package/dist/registry/basic/checkbox.d.ts +21 -0
- package/dist/registry/basic/collapse.d.ts +7 -5
- package/dist/registry/basic/collapsible-card.d.ts +7 -6
- package/dist/registry/basic/collapsible.d.ts +7 -5
- package/dist/registry/basic/combobox.d.ts +26 -0
- package/dist/registry/basic/command.d.ts +18 -0
- package/dist/registry/basic/context-menu.d.ts +44 -0
- package/dist/registry/basic/data-table.d.ts +26 -0
- package/dist/registry/basic/date-picker.d.ts +18 -0
- package/dist/registry/basic/dialog.d.ts +39 -0
- package/dist/registry/basic/direction.d.ts +19 -0
- package/dist/registry/basic/drawer.d.ts +37 -0
- package/dist/registry/basic/dropdown-menu.d.ts +7 -5
- package/dist/registry/basic/empty.d.ts +22 -0
- package/dist/registry/basic/field.d.ts +24 -0
- package/dist/registry/basic/hover-card.d.ts +22 -0
- package/dist/registry/basic/icons-inline.d.ts +7 -5
- package/dist/registry/basic/input-group.d.ts +27 -0
- package/dist/registry/basic/input-otp.d.ts +22 -0
- package/dist/registry/basic/input.d.ts +15 -0
- package/dist/registry/basic/item.d.ts +34 -0
- package/dist/registry/basic/kbd.d.ts +7 -5
- package/dist/registry/basic/label.d.ts +16 -0
- package/dist/registry/basic/menubar.d.ts +37 -0
- package/dist/registry/basic/native-select.d.ts +18 -0
- package/dist/registry/basic/navigation-menu.d.ts +25 -0
- package/dist/registry/basic/pagination.d.ts +7 -5
- package/dist/registry/basic/popover.d.ts +23 -0
- package/dist/registry/basic/progress.d.ts +7 -5
- package/dist/registry/basic/radio-group.d.ts +7 -5
- package/dist/registry/basic/resizable.d.ts +7 -5
- package/dist/registry/basic/scroll-area.d.ts +5 -0
- package/dist/registry/basic/select.d.ts +7 -5
- package/dist/registry/basic/separator.d.ts +16 -0
- package/dist/registry/basic/sheet.d.ts +13 -0
- package/dist/registry/basic/slider.d.ts +7 -5
- package/dist/registry/basic/sonner.d.ts +7 -5
- package/dist/registry/basic/switch.d.ts +7 -5
- package/dist/registry/basic/tabs.d.ts +7 -5
- package/dist/registry/basic/tag.d.ts +7 -5
- package/dist/registry/basic/textarea.d.ts +15 -0
- package/dist/registry/basic/theme-from-document.d.ts +7 -5
- package/dist/registry/basic/toggle.d.ts +1 -1
- package/dist/registry/basic/tooltip.d.ts +7 -5
- package/dist/registry/basic/typography.d.ts +7 -5
- package/dist/registry/chat/ask-user-part.d.ts +9 -3
- package/dist/registry/chat/browser-action-part.d.ts +9 -3
- package/dist/registry/chat/chat-input/compound.d.ts +7 -5
- package/dist/registry/chat/chat-input/context.d.ts +10 -6
- package/dist/registry/chat/chat-input/index.d.ts +7 -5
- package/dist/registry/chat/chat-input/types.d.ts +9 -3
- package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +9 -3
- package/dist/registry/chat/code-block-part.d.ts +9 -3
- package/dist/registry/chat/conversation-anchor-nav.d.ts +72 -0
- package/dist/registry/chat/file-attachment.d.ts +7 -5
- package/dist/registry/chat/file-review-part.d.ts +9 -4
- package/dist/registry/chat/generated-images-grid.d.ts +9 -3
- package/dist/registry/chat/generation-status-bar.d.ts +8 -4
- package/dist/registry/chat/hint-banner.d.ts +9 -3
- package/dist/registry/chat/mermaid-part.d.ts +9 -3
- package/dist/registry/chat/plan-part.d.ts +9 -3
- package/dist/registry/chat/reasoning-step/index.d.ts +8 -6
- package/dist/registry/chat/reasoning-step/types.d.ts +9 -3
- package/dist/registry/chat/related-prompts.d.ts +9 -3
- package/dist/registry/chat/response/index.d.ts +8 -6
- package/dist/registry/chat/response/types.d.ts +9 -3
- package/dist/registry/chat/task-part.d.ts +9 -3
- package/dist/registry/chat/terminal-code-block-part.d.ts +9 -3
- package/dist/registry/chat/tool-invocation-card.d.ts +2 -0
- package/dist/registry/chat/user-question/UserQuestionCard.d.ts +9 -3
- package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +9 -3
- package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +9 -3
- package/dist/registry/chat/user-question/types.d.ts +8 -5
- package/dist/registry/lib/file-icon-maps.d.ts +7 -7
- package/dist/registry/lib/utils.d.ts +8 -6
- package/dist/scale/presets/compact.css +16 -5
- package/dist/scale/presets/dense.css +13 -2
- package/dist/scale/presets/sharp.css +18 -6
- package/dist/scale/presets/soft.css +23 -1
- package/dist/spark-design.cjs.js +40 -36
- package/dist/spark-design.es.js +8653 -8663
- package/dist/sparkdesign.css +2 -0
- package/dist/src/components/basic/Alert/index.d.ts +13 -0
- package/dist/src/components/basic/AlertDialog/index.d.ts +7 -5
- package/dist/src/components/basic/AspectRatio/index.d.ts +13 -0
- package/dist/src/components/basic/Avatar/index.d.ts +9 -3
- package/dist/src/components/basic/Breadcrumb/index.d.ts +12 -0
- package/dist/src/components/basic/Button/index.d.ts +9 -3
- package/dist/src/components/basic/ButtonGroup/index.d.ts +13 -0
- package/dist/src/components/basic/Calendar/index.d.ts +13 -0
- package/dist/src/components/basic/Card/index.d.ts +13 -0
- package/dist/src/components/basic/Carousel/index.d.ts +12 -0
- package/dist/src/components/basic/Chart/index.d.ts +13 -0
- package/dist/src/components/basic/Checkbox/index.d.ts +13 -0
- package/dist/src/components/basic/Collapse/index.d.ts +7 -4
- package/dist/src/components/basic/Collapsible/index.d.ts +9 -4
- package/dist/src/components/basic/CollapsibleCard/index.d.ts +9 -3
- package/dist/src/components/basic/CollapsibleSection/index.d.ts +7 -7
- package/dist/src/components/basic/Combobox/index.d.ts +13 -0
- package/dist/src/components/basic/Command/index.d.ts +12 -0
- package/dist/src/components/basic/ContextMenu/index.d.ts +19 -0
- package/dist/src/components/basic/DataTable/index.d.ts +13 -0
- package/dist/src/components/basic/DatePicker/index.d.ts +13 -0
- package/dist/src/components/basic/Dialog/index.d.ts +16 -0
- package/dist/src/components/basic/Direction/index.d.ts +13 -0
- package/dist/src/components/basic/Drawer/index.d.ts +16 -0
- package/dist/src/components/basic/DropdownMenu/index.d.ts +7 -5
- package/dist/src/components/basic/EllipsisText/index.d.ts +7 -15
- package/dist/src/components/basic/Empty/index.d.ts +12 -0
- package/dist/src/components/basic/Field/index.d.ts +12 -0
- package/dist/src/components/basic/HoverCard/index.d.ts +16 -0
- package/dist/src/components/basic/IconButton/index.d.ts +9 -3
- package/dist/src/components/basic/Input/index.d.ts +13 -0
- package/dist/src/components/basic/InputGroup/index.d.ts +12 -0
- package/dist/src/components/basic/InputOTP/index.d.ts +12 -0
- package/dist/src/components/basic/Item/index.d.ts +12 -0
- package/dist/src/components/basic/Kbd/index.d.ts +9 -3
- package/dist/src/components/basic/Label/index.d.ts +13 -0
- package/dist/src/components/basic/Menubar/index.d.ts +12 -0
- package/dist/src/components/basic/NativeSelect/index.d.ts +12 -0
- package/dist/src/components/basic/NavigationMenu/index.d.ts +12 -0
- package/dist/src/components/basic/OptionList/index.d.ts +9 -3
- package/dist/src/components/basic/Pagination/index.d.ts +9 -3
- package/dist/src/components/basic/Popover/index.d.ts +16 -0
- package/dist/src/components/basic/Progress/index.d.ts +9 -3
- package/dist/src/components/basic/RadioGroup/index.d.ts +9 -3
- package/dist/src/components/basic/Resizable/index.d.ts +9 -3
- package/dist/src/components/basic/ScrollArea/index.d.ts +12 -0
- package/dist/src/components/basic/Scrollbar/index.d.ts +9 -3
- package/dist/src/components/basic/Select/index.d.ts +7 -4
- package/dist/src/components/basic/Separator/index.d.ts +13 -0
- package/dist/src/components/basic/Sheet/index.d.ts +13 -0
- package/dist/src/components/basic/ShimmeringText/index.d.ts +9 -3
- package/dist/src/components/basic/Skeleton/index.d.ts +9 -3
- package/dist/src/components/basic/Slider/index.d.ts +9 -3
- package/dist/src/components/basic/Spinner/index.d.ts +9 -3
- package/dist/src/components/basic/Switch/index.d.ts +8 -5
- package/dist/src/components/basic/Table/index.d.ts +9 -3
- package/dist/src/components/basic/Tabs/index.d.ts +9 -3
- package/dist/src/components/basic/Tag/index.d.ts +7 -4
- package/dist/src/components/basic/Textarea/index.d.ts +13 -0
- package/dist/src/components/basic/Toggle/index.d.ts +9 -3
- package/dist/src/components/basic/Tooltip/index.d.ts +7 -4
- package/dist/src/components/basic/Typography/index.d.ts +9 -3
- package/dist/src/components/chat/ConversationAnchorNav/index.d.ts +13 -0
- package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +9 -3
- package/dist/src/components/chat/GenerationStatusBar/index.d.ts +9 -3
- package/dist/src/components/chat/Markdown/demo-content.d.ts +1 -1
- package/dist/src/components/chat/Markdown/index.d.ts +9 -3
- package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +9 -3
- package/dist/src/components/chat/Response/index.d.ts +8 -6
- package/dist/src/components/chat/StreamingMarkdownBlock/index.d.ts +13 -0
- package/dist/src/components/chat/UserMessage/index.d.ts +9 -3
- package/dist/src/components/index.d.ts +64 -9
- package/dist/src/icons/context.d.ts +7 -6
- package/dist/src/icons/types.d.ts +7 -5
- package/dist/src/lib/ThemeStyleContext.d.ts +9 -9
- package/dist/src/lib/file-icon.d.ts +7 -6
- package/dist/src/lib/i18n.d.ts +7 -6
- package/dist/src/lib/index.d.ts +9 -3
- package/dist/src/lib/utils.d.ts +7 -5
- package/dist/theme-base.css +7 -8
- package/dist/theme.css +2 -2
- package/dist/themes/{dark-qoder.css → dark-mint.css} +1 -1
- package/dist/themes/{light-qoder.css → light-mint.css} +1 -1
- package/dist/tokens/AGENTS.md +48 -0
- package/dist/tokens/index.css +10 -19
- package/dist/tokens/scale/presets/compact.css +16 -5
- package/dist/tokens/scale/presets/dense.css +13 -2
- package/dist/tokens/scale/presets/sharp.css +18 -6
- package/dist/tokens/scale/presets/soft.css +23 -1
- package/dist/tokens/theme-base.css +7 -8
- package/dist/tokens/theme.css +2 -2
- package/dist/tokens/themes/dark-mint.css +133 -0
- package/dist/tokens/themes/light-mint.css +132 -0
- package/docs/agent/component-selection.md +60 -0
- package/docs/agent/token-ontology.md +37 -0
- package/package.json +41 -9
- package/registry/agent-manifest.json +794 -0
- package/registry/tokens/ontology.json +404 -0
- package/cli/registry/tokens/themes/dark-qoder.css +0 -132
- package/cli/registry/tokens/themes/light-qoder.css +0 -131
- package/dist/_basePickBy-DnQN8w3y.js +0 -151
- package/dist/_basePickBy-a-kPMlkg.cjs +0 -1
- package/dist/_baseUniq-B-N2NQ50.js +0 -614
- package/dist/_baseUniq-Cc_zbSif.cjs +0 -1
- package/dist/arc-BQBhijZ6.js +0 -83
- package/dist/arc-mWQt0Yph.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +0 -36
- package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +0 -4661
- package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +0 -2256
- package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +0 -122
- package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +0 -1580
- package/dist/channel-BQn0o8bs.js +0 -5
- package/dist/channel-DaN7XniJ.cjs +0 -1
- package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +0 -1
- package/dist/chunk-4BX2VUAB-Czitj3Kc.js +0 -8
- package/dist/chunk-55IACEB6-DXacNZbO.js +0 -8
- package/dist/chunk-55IACEB6-DnDxpye9.cjs +0 -1
- package/dist/chunk-B4BG7PRW-CBdN0q_V.js +0 -1375
- package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +0 -165
- package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +0 -220
- package/dist/chunk-DI55MBZ5-NCQTvayw.js +0 -1370
- package/dist/chunk-FMBD7UC4-CsGMbrtr.js +0 -19
- package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +0 -15
- package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +0 -1
- package/dist/chunk-QN33PNHL-3GERZBRm.js +0 -19
- package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +0 -15
- package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +0 -1
- package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +0 -1
- package/dist/chunk-TZMSLE5B-sbiflal0.js +0 -64
- package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +0 -16
- package/dist/clone-Cde_NQ8V.js +0 -8
- package/dist/clone-DCNjWuM2.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +0 -2608
- package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
- package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
- package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +0 -444
- package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +0 -4
- package/dist/defaultLocale-BgPVtth8.js +0 -171
- package/dist/defaultLocale-C4wbwF1n.cjs +0 -1
- package/dist/diagram-PSM6KHXK-D2bdb7MT.js +0 -531
- package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +0 -24
- package/dist/diagram-QEK2KX5R-BpUSoh0-.js +0 -217
- package/dist/diagram-QEK2KX5R-DZPGteon.cjs +0 -43
- package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +0 -24
- package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +0 -142
- package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +0 -841
- package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +0 -60
- package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +0 -162
- package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +0 -1620
- package/dist/ganttDiagram-JELNMOA3-pZiJeFio.cjs +0 -267
- package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +0 -2670
- package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +0 -699
- package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +0 -65
- package/dist/graph-DIbblrZP.cjs +0 -1
- package/dist/graph-DPcK91G3.js +0 -247
- package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +0 -2
- package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +0 -24
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +0 -834
- package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +0 -139
- package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +0 -89
- package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +0 -719
- package/dist/layout-Byuh8f-J.cjs +0 -1
- package/dist/layout-CdLdvj1j.js +0 -1335
- package/dist/linear-C2Q_PI9B.js +0 -259
- package/dist/linear-C69aPBW1.cjs +0 -1
- package/dist/mermaid.core-DBwAx_jp.cjs +0 -249
- package/dist/mermaid.core-gFR0XUlD.js +0 -15300
- package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +0 -784
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +0 -161
- package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +0 -30
- package/dist/qoder-design.css +0 -2
- package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +0 -7
- package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +0 -1022
- package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +0 -10
- package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +0 -145
- package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +0 -2511
- package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +0 -1
- package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +0 -263
- package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +0 -16
- package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +0 -1
- package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +0 -61
- package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +0 -795
- package/dist/tokens/CLAUDE.md +0 -305
- package/dist/treemap-GDKQZRPO-B9sfERx8.js +0 -17922
- package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +0 -160
- package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +0 -1340
- package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +0 -7
package/dist/spark-design.cjs.js
CHANGED
|
@@ -1,35 +1,41 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),x=require("react"),te=require("framer-motion"),Qi=require("@radix-ui/react-tooltip"),ke=require("clsx"),Yi=require("@radix-ui/react-dropdown-menu"),se=require("class-variance-authority"),Ki=require("@radix-ui/react-alert-dialog"),Xi=require("@radix-ui/react-switch"),ia=require("react-dom"),la=require("sonner"),Ji=require("@radix-ui/react-select"),el=require("react-markdown"),tl=require("remark-gfm"),nl=require("remark-math"),sl=require("rehype-katex"),ws=require("lottie-react"),ca=require("react-i18next"),al=require("@radix-ui/react-avatar"),rl=require("@radix-ui/react-accordion"),ol=require("@radix-ui/react-progress"),il=require("@radix-ui/react-radio-group"),jn=require("react-resizable-panels"),ll=require("@radix-ui/react-slider"),cl=require("@radix-ui/react-tabs"),dl=require("@radix-ui/react-toggle"),ul=require("@radix-ui/react-toggle-group");function ue(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const N=ue(x),qe=ue(Qi),K=ue(Yi),ce=ue(Ki),Ns=ue(Xi),ae=ue(Ji),Ye=ue(al),st=ue(rl),js=ue(ol),xn=ue(il),wt=ue(ll),Be=ue(cl),pl=ue(dl),hn=ue(ul),yn=se.cva("inline-flex items-center justify-center gap-1.5 font-medium transition-colors duration-200 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",{variants:{variant:{primary:"bg-primary text-text-on-primary hover:bg-primary-hover",secondary:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover",tertiary:"bg-fill-secondary text-text hover:bg-fill",ghost:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text",text:"bg-transparent text-text-secondary hover:text-text"},size:{sm:"h-7 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},rounded:{square:"rounded",pill:"rounded-full"},textOnly:{true:"h-auto px-0 py-0.5",false:""}},compoundVariants:[{textOnly:!0,size:"sm",className:"text-xs"},{textOnly:!0,size:"md",className:"text-sm"},{textOnly:!0,size:"lg",className:"text-base"}],defaultVariants:{variant:"ghost",size:"md",rounded:"square",textOnly:!1}}),ne=x.forwardRef(({variant:e="ghost",children:t,size:s="md",textButton:a=!1,prefixIcon:r,suffixIcon:o,rounded:i="square",disabled:l=!1,className:c,...d},p)=>n.jsxs("button",{ref:p,className:yn({variant:a?"text":e,size:s,rounded:i,textOnly:a,className:c}),disabled:l,...d,children:[r&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}),t,o&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]}));ne.displayName="Button";const ml=(e,t)=>{const s=new Array(e.length+t.length);for(let a=0;a<e.length;a++)s[a]=e[a];for(let a=0;a<t.length;a++)s[e.length+a]=t[a];return s},fl=(e,t)=>({classGroupId:e,validator:t}),da=(e=new Map,t=null,s)=>({nextPart:e,validators:t,classGroupId:s}),_t="-",Cs=[],gl="arbitrary..",xl=e=>{const t=yl(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return hl(i);const l=i.split(_t),c=l[0]===""&&l.length>1?1:0;return ua(l,c,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const c=a[i],d=s[i];return c?d?ml(d,c):c:d||Cs}return s[i]||Cs}}},ua=(e,t,s)=>{if(e.length-t===0)return s.classGroupId;const r=e[t],o=s.nextPart.get(r);if(o){const d=ua(e,t+1,o);if(d)return d}const i=s.validators;if(i===null)return;const l=t===0?e.join(_t):e.slice(t).join(_t),c=i.length;for(let d=0;d<c;d++){const p=i[d];if(p.validator(l))return p.classGroupId}},hl=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),s=t.indexOf(":"),a=t.slice(0,s);return a?gl+a:void 0})(),yl=e=>{const{theme:t,classGroups:s}=e;return bl(s,t)},bl=(e,t)=>{const s=da();for(const a in e){const r=e[a];Cn(r,s,a,t)}return s},Cn=(e,t,s,a)=>{const r=e.length;for(let o=0;o<r;o++){const i=e[o];vl(i,t,s,a)}},vl=(e,t,s,a)=>{if(typeof e=="string"){kl(e,t,s);return}if(typeof e=="function"){wl(e,t,s,a);return}Nl(e,t,s,a)},kl=(e,t,s)=>{const a=e===""?t:pa(t,e);a.classGroupId=s},wl=(e,t,s,a)=>{if(jl(e)){Cn(e(a),t,s,a);return}t.validators===null&&(t.validators=[]),t.validators.push(fl(s,e))},Nl=(e,t,s,a)=>{const r=Object.entries(e),o=r.length;for(let i=0;i<o;i++){const[l,c]=r[i];Cn(c,pa(t,l),s,a)}},pa=(e,t)=>{let s=e;const a=t.split(_t),r=a.length;for(let o=0;o<r;o++){const i=a[o];let l=s.nextPart.get(i);l||(l=da(),s.nextPart.set(i,l)),s=l}return s},jl=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Cl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,s=Object.create(null),a=Object.create(null);const r=(o,i)=>{s[o]=i,t++,t>e&&(t=0,a=s,s=Object.create(null))};return{get(o){let i=s[o];if(i!==void 0)return i;if((i=a[o])!==void 0)return r(o,i),i},set(o,i){o in s?s[o]=i:r(o,i)}}},bn="!",Ss=":",Sl=[],Is=(e,t,s,a,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:s,maybePostfixModifierPosition:a,isExternal:r}),Il=e=>{const{prefix:t,experimentalParseClassName:s}=e;let a=r=>{const o=[];let i=0,l=0,c=0,d;const p=r.length;for(let g=0;g<p;g++){const f=r[g];if(i===0&&l===0){if(f===Ss){o.push(r.slice(c,g)),c=g+1;continue}if(f==="/"){d=g;continue}}f==="["?i++:f==="]"?i--:f==="("?l++:f===")"&&l--}const m=o.length===0?r:r.slice(c);let b=m,w=!1;m.endsWith(bn)?(b=m.slice(0,-1),w=!0):m.startsWith(bn)&&(b=m.slice(1),w=!0);const u=d&&d>c?d-c:void 0;return Is(o,w,b,u)};if(t){const r=t+Ss,o=a;a=i=>i.startsWith(r)?o(i.slice(r.length)):Is(Sl,!1,i,void 0,!0)}if(s){const r=a;a=o=>s({className:o,parseClassName:r})}return a},Rl=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((s,a)=>{t.set(s,1e6+a)}),s=>{const a=[];let r=[];for(let o=0;o<s.length;o++){const i=s[o],l=i[0]==="[",c=t.has(i);l||c?(r.length>0&&(r.sort(),a.push(...r),r=[]),a.push(i)):r.push(i)}return r.length>0&&(r.sort(),a.push(...r)),a}},Al=e=>({cache:Cl(e.cacheSize),parseClassName:Il(e),sortModifiers:Rl(e),...xl(e)}),El=/\s+/,Tl=(e,t)=>{const{parseClassName:s,getClassGroupId:a,getConflictingClassGroupIds:r,sortModifiers:o}=t,i=[],l=e.trim().split(El);let c="";for(let d=l.length-1;d>=0;d-=1){const p=l[d],{isExternal:m,modifiers:b,hasImportantModifier:w,baseClassName:u,maybePostfixModifierPosition:g}=s(p);if(m){c=p+(c.length>0?" "+c:c);continue}let f=!!g,k=a(f?u.substring(0,g):u);if(!k){if(!f){c=p+(c.length>0?" "+c:c);continue}if(k=a(u),!k){c=p+(c.length>0?" "+c:c);continue}f=!1}const h=b.length===0?"":b.length===1?b[0]:o(b).join(":"),v=w?h+bn:h,S=v+k;if(i.indexOf(S)>-1)continue;i.push(S);const C=r(k,f);for(let T=0;T<C.length;++T){const E=C[T];i.push(v+E)}c=p+(c.length>0?" "+c:c)}return c},Ll=(...e)=>{let t=0,s,a,r="";for(;t<e.length;)(s=e[t++])&&(a=ma(s))&&(r&&(r+=" "),r+=a);return r},ma=e=>{if(typeof e=="string")return e;let t,s="";for(let a=0;a<e.length;a++)e[a]&&(t=ma(e[a]))&&(s&&(s+=" "),s+=t);return s},_l=(e,...t)=>{let s,a,r,o;const i=c=>{const d=t.reduce((p,m)=>m(p),e());return s=Al(d),a=s.cache.get,r=s.cache.set,o=l,l(c)},l=c=>{const d=a(c);if(d)return d;const p=Tl(c,s);return r(c,p),p};return o=i,(...c)=>o(Ll(...c))},Pl=[],le=e=>{const t=s=>s[e]||Pl;return t.isThemeGetter=!0,t},fa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ga=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fl=/^\d+\/\d+$/,zl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dl=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ml=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ol=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$l=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>Fl.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),Ee=e=>!!e&&Number.isInteger(Number(e)),pn=e=>e.endsWith("%")&&B(e.slice(0,-1)),Se=e=>zl.test(e),xa=()=>!0,Bl=e=>Dl.test(e)&&!Ml.test(e),Sn=()=>!1,Gl=e=>Ol.test(e),Hl=e=>$l.test(e),Ul=e=>!L(e)&&!_(e),Vl=e=>Le(e,ba,Sn),L=e=>fa.test(e),De=e=>Le(e,va,Bl),Rs=e=>Le(e,Jl,B),ql=e=>Le(e,wa,xa),Wl=e=>Le(e,ka,Sn),As=e=>Le(e,ha,Sn),Zl=e=>Le(e,ya,Hl),Nt=e=>Le(e,Na,Gl),_=e=>ga.test(e),Xe=e=>Ge(e,va),Ql=e=>Ge(e,ka),Es=e=>Ge(e,ha),Yl=e=>Ge(e,ba),Kl=e=>Ge(e,ya),jt=e=>Ge(e,Na,!0),Xl=e=>Ge(e,wa,!0),Le=(e,t,s)=>{const a=fa.exec(e);return a?a[1]?t(a[1]):s(a[2]):!1},Ge=(e,t,s=!1)=>{const a=ga.exec(e);return a?a[1]?t(a[1]):s:!1},ha=e=>e==="position"||e==="percentage",ya=e=>e==="image"||e==="url",ba=e=>e==="length"||e==="size"||e==="bg-size",va=e=>e==="length",Jl=e=>e==="number",ka=e=>e==="family-name",wa=e=>e==="number"||e==="weight",Na=e=>e==="shadow",ec=()=>{const e=le("color"),t=le("font"),s=le("text"),a=le("font-weight"),r=le("tracking"),o=le("leading"),i=le("breakpoint"),l=le("container"),c=le("spacing"),d=le("radius"),p=le("shadow"),m=le("inset-shadow"),b=le("text-shadow"),w=le("drop-shadow"),u=le("blur"),g=le("perspective"),f=le("aspect"),k=le("ease"),h=le("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...S(),_,L],T=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],I=()=>[_,L,c],F=()=>[Ve,"full","auto",...I()],Q=()=>[Ee,"none","subgrid",_,L],z=()=>["auto",{span:["full",Ee,_,L]},Ee,_,L],G=()=>[Ee,"auto",_,L],re=()=>["auto","min","max","fr",_,L],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...I()],ee=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],A=()=>[e,_,L],O=()=>[...S(),Es,As,{position:[_,L]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],oe=()=>["auto","cover","contain",Yl,Vl,{size:[_,L]}],Z=()=>[pn,Xe,De],V=()=>["","none","full",d,_,L],ie=()=>["",B,Xe,De],he=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[B,pn,Es,As],Re=()=>["","none",u,_,L],ge=()=>["none",B,_,L],Ae=()=>["none",B,_,L],D=()=>[B,_,L],P=()=>[Ve,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Se],breakpoint:[Se],color:[xa],container:[Se],"drop-shadow":[Se],ease:["in","out","in-out"],font:[Ul],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Se],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Se],shadow:[Se],spacing:["px",B],text:[Se],"text-shadow":[Se],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,L,_,f]}],container:["container"],columns:[{columns:[B,L,_,l]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Ee,"auto",_,L]}],basis:[{basis:[Ve,"full","auto",l,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[B,Ve,"auto","initial","none",L]}],grow:[{grow:["",B,_,L]}],shrink:[{shrink:["",B,_,L]}],order:[{order:[Ee,"first","last","none",_,L]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[l,"screen",...ee()]}],"min-w":[{"min-w":[l,"screen","none",...ee()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",s,Xe,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Xl,ql]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pn,L]}],"font-family":[{font:[Ql,Wl,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,_,L]}],"line-clamp":[{"line-clamp":[B,"none",_,Rs]}],leading:[{leading:[o,...I()]}],"list-image":[{"list-image":["none",_,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[B,"from-font","auto",_,De]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[B,"auto",_,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ee,_,L],radial:["",_,L],conic:[Ee,_,L]},Kl,Zl]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[B,_,L]}],"outline-w":[{outline:["",B,Xe,De]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",p,jt,Nt]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",m,jt,Nt]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[B,De]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",b,jt,Nt]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[B,_,L]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[_,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,L]}],filter:[{filter:["","none",_,L]}],blur:[{blur:Re()}],brightness:[{brightness:[B,_,L]}],contrast:[{contrast:[B,_,L]}],"drop-shadow":[{"drop-shadow":["","none",w,jt,Nt]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",B,_,L]}],"hue-rotate":[{"hue-rotate":[B,_,L]}],invert:[{invert:["",B,_,L]}],saturate:[{saturate:[B,_,L]}],sepia:[{sepia:["",B,_,L]}],"backdrop-filter":[{"backdrop-filter":["","none",_,L]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[B,_,L]}],"backdrop-contrast":[{"backdrop-contrast":[B,_,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",B,_,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,_,L]}],"backdrop-invert":[{"backdrop-invert":["",B,_,L]}],"backdrop-opacity":[{"backdrop-opacity":[B,_,L]}],"backdrop-saturate":[{"backdrop-saturate":[B,_,L]}],"backdrop-sepia":[{"backdrop-sepia":["",B,_,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[B,"initial",_,L]}],ease:[{ease:["linear","initial",k,_,L]}],delay:[{delay:[B,_,L]}],animate:[{animate:["none",h,_,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,_,L]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:D()}],"skew-x":[{"skew-x":D()}],"skew-y":[{"skew-y":D()}],transform:[{transform:[_,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:P()}],"translate-x":[{"translate-x":P()}],"translate-y":[{"translate-y":P()}],"translate-z":[{"translate-z":P()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_,L]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_,L]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[B,Xe,De,Rs]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},tc=_l(ec);function y(...e){return tc(ke.clsx(e))}const nc=se.cva("flex-none shrink-0 inline-flex items-center justify-center box-border transition-colors duration-200 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer [&>*]:flex [&>*]:items-center [&>*]:justify-center [&>*]:size-full [&>*]:[&>svg]:block [&>*]:[&>svg]:leading-none",{variants:{variant:{primary:"bg-primary text-text-on-primary hover:bg-primary-hover",secondary:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover",tertiary:"bg-fill-secondary text-text hover:bg-fill",ghost:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text",iconOnly:"bg-transparent text-text-secondary hover:text-text"},rounded:{square:"rounded",pill:"rounded-full"},size:{sm:"h-7 w-7 min-h-7 min-w-7 p-1.5",md:"h-9 w-9 min-h-9 min-w-9 p-1.5",lg:"h-11 w-11 min-h-11 min-w-11 p-2"}},defaultVariants:{variant:"secondary",size:"md",rounded:"square"}}),je=x.forwardRef(({variant:e="secondary",size:t="md",rounded:s="square",icon:a,disabled:r=!1,className:o,...i},l)=>n.jsx("button",{ref:l,className:y(nc({variant:e,size:t,rounded:s}),o),disabled:r,...i,children:n.jsx("span",{className:"inline-flex shrink-0 size-full items-center justify-center",children:a})}));je.displayName="IconButton";function Ke(){if(typeof document>"u")return{};const e=document.documentElement,t={},s=e.getAttribute("data-theme"),a=e.getAttribute("data-style");return s&&(t["data-theme"]=s),a&&(t["data-style"]=a),t}const sc=qe.Provider,ac=qe.Root,rc=qe.Trigger,ja=N.forwardRef(({className:e,sideOffset:t=8,children:s,dataStyle:a,dataTheme:r,...o},i)=>{const l=Ke(),c=a!==void 0?{"data-style":a,"data-theme":r??l["data-theme"]??""}:l;return n.jsx(qe.Portal,{children:n.jsx("div",{style:{display:"contents"},...c,children:n.jsx(qe.Content,{ref:i,sideOffset:t,className:y("z-50 max-w-60 overflow-hidden rounded px-2 py-1 text-xs leading-5","bg-bg-highlight text-text-on-primary shadow-sm",e),...o,children:n.jsx(te.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},children:s})})})})});ja.displayName=qe.Content.displayName;function at({content:e,children:t,side:s="top",contentClassName:a,dataStyle:r,dataTheme:o}){return n.jsx(sc,{delayDuration:300,children:n.jsxs(ac,{children:[n.jsx(rc,{asChild:!0,children:t}),n.jsx(ja,{side:s,className:a,dataStyle:r,dataTheme:o,children:e})]})})}at.displayName="Tooltip";const Ca=x.createContext(null);function Sa(e){return typeof e=="object"&&"name"in e}function Ia(e){return typeof e=="object"&&"name"in e}function oc(e,t){return Sa(t)?`${e}-${t.name}`:t==="qoder"?e:`${e}-${t}`}function ic(e){return Ia(e)?e.name:e}function lc(e,t){const s={};if(Sa(e)){const{tokens:a}=e;for(const[r,o]of Object.entries(a))if(o!==void 0){const i=r.startsWith("--")?r:`--${r}`;s[i]=o}}if(Ia(t)){const{radius:a,spacing:r,fontSize:o}=t;a&&(a.sm&&(s["--radius-sm"]=a.sm),a.default&&(s["--radius-DEFAULT"]=a.default),a.md&&(s["--radius-md"]=a.md),a.lg&&(s["--radius-lg"]=a.lg),a.xl&&(s["--radius-xl"]=a.xl),a["2xl"]&&(s["--radius-2xl"]=a["2xl"]),a["3xl"]&&(s["--radius-3xl"]=a["3xl"])),r&&(r[3]&&(s["--spacing-3"]=r[3]),r[4]&&(s["--spacing-4"]=r[4]),r[9]&&(s["--spacing-9"]=r[9]),r[11]&&(s["--spacing-11"]=r[11])),o&&(o.sm&&(s["--font-size-sm"]=o.sm),o.lg&&(s["--font-size-lg"]=o.lg),o.xl&&(s["--font-size-xl"]=o.xl),o["2xl"]&&(s["--font-size-2xl"]=o["2xl"]),o["3xl"]&&(s["--font-size-3xl"]=o["3xl"]))}return s}function cc({children:e,appearance:t="light",theme:s="qoder",style:a="neutral"}){const r=x.useMemo(()=>oc(t,s),[t,s]),o=x.useMemo(()=>ic(a),[a]),i=x.useMemo(()=>lc(s,a),[s,a]),l=x.useMemo(()=>({appearance:t,themeConfig:s,styleConfig:a,dataTheme:r,dataStyle:o,theme:r,style:o}),[t,s,a,r,o]),c=Object.keys(i).length>0;return n.jsx(Ca.Provider,{value:l,children:n.jsx("div",{"data-theme":r,"data-style":o,style:c?i:void 0,children:e})})}function me(){const e=x.useContext(Ca);return e||{appearance:"light",themeConfig:"qoder",styleConfig:"neutral",dataTheme:"light",dataStyle:"neutral",theme:"light",style:"neutral"}}function In({placement:e,side:t=e??"top",...s}){const{style:a,theme:r}=me();return n.jsx(at,{side:t,dataStyle:a,dataTheme:r,...s})}In.displayName="Tooltip";function Ts(e,t){e&&(typeof e=="function"?e(t):e.current=t)}const Ra=x.forwardRef(({children:e,lines:t=1,className:s="",placement:a="top",tooltipClassName:r="",tooltipContent:o,disabled:i=!1,style:l,as:c="span"},d)=>{const p=x.useRef(null),[m,b]=x.useState(!1),w=x.useCallback(()=>{const h=p.current;if(!h)return;const v=t===1?h.scrollWidth>h.clientWidth:h.scrollHeight>h.clientHeight;b(v)},[t]);x.useEffect(()=>{const h=requestAnimationFrame(()=>w()),v=p.current;if(!v)return()=>cancelAnimationFrame(h);const S=new ResizeObserver(()=>w());return S.observe(v),window.addEventListener("resize",w),()=>{cancelAnimationFrame(h),S.disconnect(),window.removeEventListener("resize",w)}},[w,e]);const u=t===1?{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...l}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",...l},g=x.useCallback(h=>{Ts(p,h),Ts(d,h)},[d]),f=n.jsx(c,{ref:g,className:s,style:u,children:e});return m&&!i?n.jsx(In,{content:o??e,placement:a,contentClassName:ke.clsx(r),children:n.jsx("span",{ref:g,className:s,style:u,children:e})}):f});Ra.displayName="EllipsisText";const dc="flex flex-col gap-1",uc=se.cva("w-full flex flex-col gap-0.5 items-start p-2 text-sm rounded text-left transition-colors outline-none focus-visible:bg-fill-tertiary focus-visible:ring-0",{variants:{selected:{true:"",false:""},disabled:{true:"opacity-50 cursor-not-allowed",false:"cursor-pointer hover:bg-fill-tertiary"},dimmed:{true:"opacity-40",false:""}},defaultVariants:{selected:!1,disabled:!1,dimmed:!1}}),pc=se.cva("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs font-mono font-medium transition-colors",{variants:{selected:{true:"bg-primary-active text-text-on-primary",false:"bg-fill-secondary text-text-tertiary"}},defaultVariants:{selected:!1}}),Rn=x.forwardRef(({items:e,selectedIds:t=[],focusedId:s,onItemClick:a,showPrefix:r=!0,disabled:o=!1,className:i,...l},c)=>{const d=p=>String(p+1);return n.jsx("div",{ref:c,role:"listbox","aria-multiselectable":t.length>1,className:y(dc,i),...l,children:e.map((p,m)=>{const b=t.includes(p.id),w=s===p.id,u=o||p.disabled,f=t.length>0&&!b&&!u;return n.jsxs("button",{type:"button",role:"option","aria-selected":b,"aria-disabled":u,onClick:()=>{u||a?.(p,m)},disabled:u,className:y(uc({selected:b,disabled:u,dimmed:f}),w&&"bg-fill-tertiary"),children:[n.jsxs("div",{className:"flex items-center gap-3",children:[r&&n.jsx("div",{className:pc({selected:b}),children:d(m)}),n.jsx("span",{className:"font-medium text-text",children:p.label})]}),p.description&&n.jsx("div",{className:"ml-8 text-xs text-text-tertiary",children:p.description})]},p.id)})})});Rn.displayName="OptionList";const mc="0 0 24 24",fc="1em";function U(e,t){const s=N.forwardRef(({className:a,size:r=fc,...o},i)=>n.jsx("svg",{ref:i,viewBox:mc,width:r,height:r,fill:"currentColor",className:a,xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,...o,children:n.jsx("path",{d:e})}));return s.displayName=t,s}U("M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z","ArrowDownLine");const An=U("M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z","ArrowUpLine"),ot=U("M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z","ArrowRightLine"),gc=U("M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z","ArrowLeftLine"),Ie=U("M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z","CheckLine"),_e=U("M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z","CloseLine"),Aa=U("M10.5859 12L2.79297 4.20706L4.20718 2.79285L12.0001 10.5857L19.793 2.79285L21.2072 4.20706L13.4143 12L21.2072 19.7928L19.793 21.2071L12.0001 13.4142L4.20718 21.2071L2.79297 19.7928L10.5859 12Z","CloseLargeLine"),xc=U("M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z","CodeSSlashLine"),Ea=U("M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z","EyeLine"),Ta=U("M11.9995 2C12.5518 2 12.9995 2.44772 12.9995 3V6C12.9995 6.55228 12.5518 7 11.9995 7C11.4472 7 10.9995 6.55228 10.9995 6V3C10.9995 2.44772 11.4472 2 11.9995 2ZM11.9995 17C12.5518 17 12.9995 17.4477 12.9995 18V21C12.9995 21.5523 12.5518 22 11.9995 22C11.4472 22 10.9995 21.5523 10.9995 21V18C10.9995 17.4477 11.4472 17 11.9995 17ZM20.6597 7C20.9359 7.47829 20.772 8.08988 20.2937 8.36602L17.6956 9.86602C17.2173 10.1422 16.6057 9.97829 16.3296 9.5C16.0535 9.02171 16.2173 8.41012 16.6956 8.13398L19.2937 6.63397C19.772 6.35783 20.3836 6.52171 20.6597 7ZM7.66935 14.5C7.94549 14.9783 7.78161 15.5899 7.30332 15.866L4.70525 17.366C4.22695 17.6422 3.61536 17.4783 3.33922 17C3.06308 16.5217 3.22695 15.9101 3.70525 15.634L6.30332 14.134C6.78161 13.8578 7.3932 14.0217 7.66935 14.5ZM20.6597 17C20.3836 17.4783 19.772 17.6422 19.2937 17.366L16.6956 15.866C16.2173 15.5899 16.0535 14.9783 16.3296 14.5C16.6057 14.0217 17.2173 13.8578 17.6956 14.134L20.2937 15.634C20.772 15.9101 20.9359 16.5217 20.6597 17ZM7.66935 9.5C7.3932 9.97829 6.78161 10.1422 6.30332 9.86602L3.70525 8.36602C3.22695 8.08988 3.06308 7.47829 3.33922 7C3.61536 6.52171 4.22695 6.35783 4.70525 6.63397L7.30332 8.13398C7.78161 8.41012 7.94549 9.02171 7.66935 9.5Z","LoaderLine"),hc=U("M1.946 9.315c-.946-.35-.946-1.09 0-1.436l18.108-6.732c.946-.35 1.704.21 1.573 1.236L20.1 21.894c-.117.932-.93 1.636 1.897 1.636.967 0 1.754-.704 1.636-1.636l-.527-4.18L10 12 20.073 7.264l-.527-4.18c-.117-.932.67-1.636 1.637-1.636.967 0 2.014.704 1.897 1.636L21.627 18.57c-.131 1.026-.627 1.586-1.573 1.236L1.946 9.315Z","SendPlaneLine"),yc=U("M6 6h12v12H6V6Zm2 2v8h8V8H8Z","StopLine"),bc=U("M12 3a3 3 0 0 1 3 3v6a3 3 0 0 1-6 0V6a3 3 0 0 1 3-3Zm0 14a5 5 0 0 0 5-5v-1a1 1 0 1 1 2 0v1a7 7 0 0 1-14 0v-1a1 1 0 1 1 2 0v1a5 5 0 0 0 5 5Z","MicLine"),La=U("M3 3h8.828l2 2H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm2 2v12h14V7h-8.414l-2-2H5Z","FolderLine"),_a=U("M12.414 5H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414l2 2Z","FolderFillLine"),En=U("M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm4 18H6V4h7v5h5v11z","FileLine"),Pa=U("M12 2C6.477 2 2 6.477 2 12c0 1.5.328 2.932.917 4.215L1.5 21l4.785-1.417A9.966 9.966 0 0 0 12 22c5.523 0 10-4.477 10-10S17.523 2 12 2zm0 2a8 8 0 1 1 0 16 7.99 7.99 0 0 1-3.918-1.018l-.26-.15-2.683.795.795-2.683-.15-.26A7.99 7.99 0 0 1 4 12a8 8 0 0 1 8-8z","Chat3Line"),it=U("M12 7a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V8a1 1 0 0 1 1-1zm0 10a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5z","WarningLine"),ye=U("M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z","ArrowDownSLine"),Tn=U("M14 2l.5 2.5L17 5l-2.5.5L14 8l-.5-2.5L11 5l2.5-.5L14 2zM6 12l1 4 4 1 1-4-4-1-1-4zm8-2l.5 2.5 2.5.5-2.5.5-.5 2.5-.5-2.5-2.5-.5 2.5-.5.5-2.5z","SparklingLine"),Fa=U("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 2v5.586l3.707 3.707-1.414 1.414L11 11.414V6h2z","TimeLine"),Bt=U("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 5.536l-4.95 4.95-2.121-2.122-1.414 1.414 3.535 3.536 6.364-6.364-1.414-1.414z","CheckboxCircleLine"),za=U("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 2.464l-1.414 1.414L12 10.586 9.878 8.464 8.464 9.878 10.586 12l-2.122 2.121 1.414 1.415L12 13.414l2.121 2.122 1.415-1.414L13.414 12l2.122-2.121z","CloseCircleLine"),Da=U("M6 12c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z","MoreLine"),vc=U("M5.763 17H20V5H4v13.385L5.763 17zm.692 2L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455z","QuestionAnswerLine"),Ma=U("M7 14h10v2H7v-2zm0-4h10v2H7v-2zm0-4h10v2H7V6zm-4 12h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V6z","RequestChangesLine"),Oa=U("M3 5h2v2H3V5zm4 0h14v2H7V5zm-4 6h2v2H3v-2zm4 0h14v2H7v-2zm-4 6h2v2H3v-2zm4 0h14v2H7v-2z","CatalogLine"),$a=U("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16z","CircleLine"),Ba=U("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm4 5v2H8V9h8z","IndeterminateCircleLine"),Ga=U("M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 10l-4-4v3H6v2h6v3l4-4z","ArrowRightCircleFillLine"),Gt=U("M3 4h14v2H3V4zm0 4h14v2H3V8zm0 4h10v2H3v-2zm0 4h8v2H3v-2z","FileList2Line"),Ha=U("M13 10h5l-6 6-6-6h5V3h2v7zM4 19h16v2H4v-2z","DownloadLine"),Ua=U("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 5v6h-2V9h2zm0-4v2h-2V6h2z","QuestionnaireLine"),Va=U("M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm2 2v12h14V5H5zm2 2h2v2H7V7zm4 0h6v2h-6V7zm-4 4h2v2H7v-2zm4 0h6v2h-6v-2z","TerminalBoxLine"),qa=U("M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm11-3v8h-2V6.413l-7.793 7.794-1.414-1.414L17.585 5H13V3h8z","ExternalLinkLine"),Wa=U("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 2.05v1.9c.93.13 1.8.44 2.57.9L14.5 7.2c-.55-.36-1.15-.65-1.78-.9L13 6.05zM6.05 11H4.1c.13.93.44 1.8.9 2.57L7.2 9.5c-.36-.55-.65-1.15-.9-1.78L6.05 11zm1.25 4.5L4.6 16.33c.77.57 1.64.88 2.57 1.01v1.9c.63-.25 1.23-.54 1.78-.9L7.3 15.5zm7.4 0c.55.36 1.15.65 1.78.9v1.9a8.1 8.1 0 0 1-2.57-.9L16.8 15.5l-1.25-1.25zM17.9 13h-1.95c-.25-.63-.54-1.23-.9-1.78L16.8 14.5c.57.77.88 1.64 1.01 2.57zm-5.4-5.4c-.36.55-.65 1.15-.9 1.78H6.05c.13-.93.44-1.8.9-2.57L9.5 7.2l1.25 1.25zm-.9 6.8l1.25 1.25c.77-.57 1.64-.88 2.57-1.01v1.95c-.63.25-1.23.54-1.78.9L9.5 16.8zm4.5-4.5l1.25 1.25L16.8 9.5c-.36-.55-.65-1.15-.9-1.78h1.95c.13.93.44 1.8.9 2.57z","GlobalLine"),Za=U("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 2.464l-9.072 9.072a8 8 0 0 1 9.072-9.072zM8.464 17.536a8 8 0 0 1 9.072-9.072l-9.072 9.072z","Forbid2Line"),Oe=K.Root,$e=K.Trigger,kc=K.Group,wc=K.Portal,Qa=K.Sub,Nc=K.RadioGroup,Ya="min-w-32 overflow-hidden rounded-lg border border-border-tertiary bg-bg-container p-1 text-text shadow-lg z-50 outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none focus-visible:!ring-0",Te=N.forwardRef(({className:e,sideOffset:t=4,children:s,dataStyle:a,dataTheme:r,...o},i)=>{const l=Ke(),c=a!==void 0?{"data-style":a,"data-theme":r??l["data-theme"]??""}:l;return n.jsx(K.Portal,{children:n.jsx("div",{style:{display:"contents"},...c,children:n.jsx(K.Content,{ref:i,sideOffset:t,className:y(Ya,e),...o,children:n.jsx(te.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15,ease:[.4,0,.2,1]},children:s})})})})});Te.displayName=K.Content.displayName;const jc=se.cva("flex h-9 w-full cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none hover:bg-fill-secondary focus:bg-fill-secondary data-[highlighted]:bg-fill-secondary data-[state=open]:bg-fill-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),Ln=N.forwardRef(({className:e,inset:t=!1,children:s,subTriggerIcon:a,...r},o)=>n.jsxs(K.SubTrigger,{ref:o,className:jc({inset:t,className:e}),...r,children:[s,n.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center",children:a??n.jsx(ot,{className:"h-4 w-4"})})]}));Ln.displayName=K.SubTrigger.displayName;const _n=N.forwardRef(({className:e,sideOffset:t=-1,dataStyle:s,dataTheme:a,...r},o)=>{const i=Ke(),l=s!==void 0?{"data-style":s,"data-theme":a??i["data-theme"]??""}:i;return n.jsx(K.Portal,{children:n.jsx("div",{style:{display:"contents"},...l,children:n.jsx(K.SubContent,{ref:o,sideOffset:t,className:y(Ya,e),...r})})})});_n.displayName=K.SubContent.displayName;const Cc=se.cva("relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{variant:{default:"hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text",destructive:"text-error hover:bg-error-bg focus:bg-error-bg focus:text-error data-[highlighted]:bg-error-bg data-[highlighted]:text-error"},inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{variant:"default",inset:!1}}),we=N.forwardRef(({className:e,inset:t=!1,variant:s="default",...a},r)=>n.jsx(K.Item,{ref:r,className:Cc({variant:s,inset:t,className:e}),...a}));we.displayName=K.Item.displayName;const Ka="relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm pl-8 pr-3 text-sm outline-none transition-colors hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Xa=N.forwardRef(({className:e,children:t,checked:s,checkIcon:a,...r},o)=>n.jsxs(K.CheckboxItem,{ref:o,className:y(Ka,e),checked:s,...r,children:[n.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:n.jsx(K.ItemIndicator,{children:a??n.jsx(Ie,{className:"h-4 w-4"})})}),t]}));Xa.displayName=K.CheckboxItem.displayName;const Ja=N.forwardRef(({className:e,children:t,...s},a)=>n.jsxs(K.RadioItem,{ref:a,className:y(Ka,e),...s,children:[n.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:n.jsx(K.ItemIndicator,{children:n.jsx("div",{className:"h-2 w-2 rounded-full bg-primary"})})}),t]}));Ja.displayName=K.RadioItem.displayName;const Sc=se.cva("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),er=N.forwardRef(({className:e,inset:t=!1,...s},a)=>n.jsx(K.Label,{ref:a,className:Sc({inset:t,className:e}),...s}));er.displayName=K.Label.displayName;const tr=N.forwardRef(({className:e,...t},s)=>n.jsx(K.Separator,{ref:s,className:y("my-1 mx-1 h-px bg-border-tertiary",e),...t}));tr.displayName=K.Separator.displayName;const nr=({className:e,...t})=>n.jsx("span",{className:y("ml-auto text-xs tracking-widest text-text-tertiary",e),...t});nr.displayName="DropdownMenuShortcut";const sr=x.createContext(null);function Ic({value:e,children:t}){return n.jsx(sr.Provider,{value:e,children:t})}function lt(){return x.useContext(sr)??{icons:{}}}function R(e,t){const{icons:s}=lt(),a=s[e];if(a)return n.jsx(a,{className:t,"aria-hidden":!0})}const ar=N.forwardRef((e,t)=>{const{style:s,theme:a}=me();return n.jsx(Te,{ref:t,dataStyle:s,dataTheme:a,...e})});ar.displayName="DropdownMenuContent";function Rc(e){const t=R("arrowRight","h-4 w-4 shrink-0"),s=e.subTriggerIcon??t;return n.jsx(Ln,{...e,subTriggerIcon:s})}const rr=N.forwardRef((e,t)=>{const{style:s,theme:a}=me();return n.jsx(_n,{ref:t,dataStyle:s,dataTheme:a,...e})});rr.displayName="DropdownMenuSubContent";const or=ce.Root,Ac=ce.Trigger,ir=ce.Portal,Pn=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Overlay,{ref:s,asChild:!0,...t,children:n.jsx(te.motion.div,{className:y("fixed inset-0 z-50 bg-bg-mask/60",e),initial:{opacity:0},animate:{opacity:1},transition:{duration:.15}})}));Pn.displayName=ce.Overlay.displayName;const Ec=se.cva("font-sans fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-bg-base text-text shadow-lg p-6",{variants:{size:{default:"max-w-lg",sm:"max-w-sm"}},defaultVariants:{size:"default"}}),Fn=N.forwardRef(({className:e,children:t,size:s="default",dataStyle:a,dataTheme:r,...o},i)=>{const l=Ke(),c=a!==void 0?{"data-style":a,"data-theme":r??l["data-theme"]??""}:l;return n.jsx(ir,{children:n.jsxs("div",{style:{display:"contents"},...c,children:[n.jsx(Pn,{}),n.jsx(ce.Content,{ref:i,asChild:!0,...o,children:n.jsx(te.motion.div,{className:y(Ec({size:s}),e),initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.4,0,.2,1]},children:t})})]})})});Fn.displayName=ce.Content.displayName;const zn=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:y("flex flex-col gap-2",e),...t}));zn.displayName="AlertDialogHeader";const Dn=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:y("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t}));Dn.displayName="AlertDialogFooter";const Mn=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Title,{ref:s,className:y("font-sans text-base font-medium leading-6 text-text",e),...t}));Mn.displayName=ce.Title.displayName;const On=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Description,{ref:s,className:y("text-sm leading-6 text-text-tertiary",e),...t}));On.displayName=ce.Description.displayName;const Tc=se.cva("inline-flex h-9 items-center justify-center rounded px-4 text-sm font-medium transition-colors focus:outline-none disabled:pointer-events-none disabled:opacity-50 cursor-pointer",{variants:{destructive:{true:"bg-error text-text-on-primary hover:bg-error-hover active:bg-error",false:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover"}},defaultVariants:{destructive:!1}}),lr=N.forwardRef(({className:e,destructive:t=!1,...s},a)=>n.jsx(ce.Action,{ref:a,className:y(Tc({destructive:t}),e),...s}));lr.displayName=ce.Action.displayName;const $n=N.forwardRef(({className:e,...t},s)=>n.jsx(ce.Cancel,{ref:s,className:y("inline-flex h-9 items-center justify-center rounded px-4 text-sm font-medium cursor-pointer","bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text","transition-colors focus:outline-none",e),...t}));$n.displayName=ce.Cancel.displayName;const cr=N.forwardRef((e,t)=>{const{style:s,theme:a}=me();return n.jsx(Fn,{ref:t,dataStyle:s,dataTheme:a,...e})});cr.displayName="AlertDialogContent";const dr=N.forwardRef(({className:e,...t},s)=>n.jsx("div",{ref:s,className:y("mb-4 inline-flex h-10 w-10 items-center justify-center rounded-lg bg-fill-tertiary text-text",e),...t}));dr.displayName="AlertDialogMedia";function ur({className:e,...t}){return n.jsx("kbd",{className:y("pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 !font-sans text-xs font-medium","bg-fill-secondary text-text-secondary","[.tooltip-content_&]:bg-bg-highlight-hover [.tooltip-content_&]:text-text-on-primary","dark:[.tooltip-content_&]:bg-[color:var(--color-bg-base)]/10 dark:[.tooltip-content_&]:text-[var(--color-bg-base)]",e),...t})}ur.displayName="Kbd";function pr({className:e,children:t,separator:s="+",...a}){const r=N.Children.toArray(t);return n.jsx("span",{className:y("inline-flex items-center gap-1",e),...a,children:r.map((o,i)=>n.jsxs(N.Fragment,{children:[o,i<r.length-1&&n.jsx("span",{className:"select-none !font-sans text-xs font-medium text-text-secondary",children:s})]},i))})}pr.displayName="KbdGroup";const et={fast:.15,base:.2,slow:.3},tt={standard:[.16,1,.3,1],emphasized:[.2,.8,.2,1],out:[0,0,.2,1]},mr={snappy:{type:"spring",stiffness:520,damping:34,mass:.7}},Lc=se.cva("peer inline-flex shrink-0 cursor-pointer items-center rounded-full overflow-hidden border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-fill-secondary",{variants:{size:{md:"h-5 w-9",lg:"h-6 w-11"}},defaultVariants:{size:"md"}}),_c=se.cva("pointer-events-none block rounded-full bg-text-on-primary ring-0 transition-transform data-[state=unchecked]:translate-x-0",{variants:{size:{md:"h-4 w-4 data-[state=checked]:translate-x-4",lg:"h-5 w-5 data-[state=checked]:translate-x-4.5"}},defaultVariants:{size:"md"}}),fr=N.forwardRef(({className:e,size:t="md",disabled:s=!1,...a},r)=>n.jsx(Ns.Root,{ref:r,className:y(Lc({size:t}),e),disabled:s,...a,children:n.jsx(Ns.Thumb,{className:_c({size:t})})}));fr.displayName="Switch";const Ls={sm:{buttonClass:"w-5 h-5",iconClass:"w-3.5 h-3.5",trackClass:"p-0.5 rounded-md gap-0.5",thumbClass:"w-5 h-5 rounded-sm top-0.5 bottom-0.5",buttonRounded:"rounded-sm"},md:{buttonClass:"w-6 h-6",iconClass:"w-4 h-4",trackClass:"p-0.5 rounded-lg gap-0.5",thumbClass:"w-6 h-6 rounded-md top-0.5 bottom-0.5",buttonRounded:"rounded-md"}};function Pc(e){if(e==="normal"||!e)return 0;const t=parseFloat(e);return e.endsWith("px")?t:e.endsWith("rem")?t*16:t}const Bn=N.forwardRef(({variant:e="toggle",className:t,size:s="md",options:a,value:r,defaultValue:o="preview",onValueChange:i,segmentSize:l="md",disabled:c=!1,...d},p)=>{const{style:m,theme:b}=me(),w={};if(m&&(w["data-style"]=m),b&&(w["data-theme"]=b),e==="toggle")return n.jsx("div",{ref:p,...w,className:"inline-flex",children:n.jsx(fr,{size:s,className:t,disabled:c,...d})});const u=Ls[l].iconClass,g=n.jsx(xc,{className:u}),f=n.jsx(Ea,{className:u}),[k,h]=N.useState(o),v=N.useRef(null),[S,C]=N.useState({buttonWidth:24,gapPx:2});N.useLayoutEffect(()=>{if(!v.current)return;const O=v.current,W=O.querySelector("button"),oe=W?Pc(getComputedStyle(O).gap):0,Z=W?.offsetWidth??24;C(V=>V.buttonWidth===Z&&V.gapPx===oe?V:{buttonWidth:Z,gapPx:oe})},[m,l,a?.length]);const T=[{value:"code",label:"Code",icon:g},{value:"preview",label:"Preview",icon:f}],E=a?.length?a:T,I=r!==void 0,F=(I?r:k)??o,Q=O=>{c||(I||h(O),i?.(O))},z=E.findIndex(O=>O.value===F),G=z>=0?z:0,re=Ls[l],{buttonClass:M,trackClass:$,thumbClass:q,buttonRounded:ee}=re,A=G*(S.buttonWidth+S.gapPx);return n.jsx("div",{ref:p,...w,className:"inline-flex",children:n.jsxs("div",{ref:v,role:"radiogroup","aria-disabled":c||void 0,className:ke.clsx("relative inline-flex items-center",$,"bg-fill-secondary",c?"opacity-50 cursor-not-allowed":"cursor-pointer",t),...d,children:[n.jsx(te.motion.span,{className:ke.clsx("absolute left-0.5 bg-bg-base shadow-sm",q),initial:!1,animate:{x:A},transition:{type:"tween",duration:et.base,ease:tt.out}}),E.map(O=>{const W=O.value===F;return n.jsx("button",{type:"button",role:"radio","aria-checked":W,"aria-label":O.label,disabled:c,onClick:()=>Q(O.value),className:ke.clsx("relative z-10 inline-flex items-center justify-center",ee,M,"transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border",W?"text-primary-active":"text-text-secondary"),children:n.jsx("span",{className:"inline-flex items-center justify-center",children:O.icon})},O.value)})]})})});Bn.displayName="Switch";function Fc({size:e="md",value:t,defaultValue:s="preview",onValueChange:a,disabled:r=!1,className:o,...i}){return n.jsx(Bn,{variant:"segment",segmentSize:e,value:t,defaultValue:s,onValueChange:a,disabled:r,className:o,...i})}const gr=se.cva("inline-flex items-center justify-center gap-1.5 font-medium transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:pointer-events-none disabled:opacity-50 cursor-pointer data-[state=on]:bg-fill data-[state=on]:text-text",{variants:{variant:{default:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text data-[state=on]:bg-fill data-[state=on]:text-text",outline:"border border-border-tertiary bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text data-[state=on]:border-border-secondary data-[state=on]:bg-fill data-[state=on]:text-text"},size:{sm:"h-7 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},rounded:{square:"rounded",pill:"rounded-full"}},defaultVariants:{variant:"default",size:"md",rounded:"square"}}),xr=x.forwardRef(({variant:e="default",size:t="md",rounded:s="square",className:a,prefixIcon:r,suffixIcon:o,children:i,...l},c)=>n.jsxs(pl.Root,{ref:c,className:gr({variant:e,size:t,rounded:s,className:a}),...l,children:[r&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}),i,o&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]}));xr.displayName="Toggle";const hr=x.createContext(null),zc={none:"gap-0",sm:"gap-1",md:"gap-2"},Dc=["shrink-0","group-data-[spacing=0]/toggle-group:rounded-none","group-data-[spacing=0]/toggle-group:group-data-[orientation=horizontal]/toggle-group:first:rounded-l","group-data-[spacing=0]/toggle-group:group-data-[orientation=horizontal]/toggle-group:last:rounded-r","group-data-[spacing=0]/toggle-group:group-data-[orientation=vertical]/toggle-group:first:rounded-t","group-data-[spacing=0]/toggle-group:group-data-[orientation=vertical]/toggle-group:last:rounded-b","group-data-[spacing=0]/toggle-group:data-[variant=outline]:group-data-[orientation=horizontal]/toggle-group:[&:not(:first-child)]:border-l-0","group-data-[spacing=0]/toggle-group:data-[variant=outline]:group-data-[orientation=vertical]/toggle-group:[&:not(:first-child)]:border-t-0"].join(" "),yr=x.forwardRef(({type:e="single",variant:t="default",size:s="md",rounded:a="square",spacing:r="none",className:o,orientation:i="horizontal",children:l,...c},d)=>{const p=y("group/toggle-group inline-flex w-fit",i==="horizontal"?"flex-row":"flex-col",i==="vertical"&&"items-stretch",zc[r],o),m={ref:d,orientation:i,"data-spacing":r==="none"?"0":r,"data-orientation":i,"data-variant":t,"data-size":s,className:p};return n.jsx(hr.Provider,{value:{variant:t,size:s,rounded:a,spacing:r},children:e==="multiple"?n.jsx(hn.Root,{...m,...c,type:"multiple",children:l}):n.jsx(hn.Root,{...m,...c,type:"single",children:l})})});yr.displayName="ToggleGroup";const br=x.forwardRef(({variant:e,size:t,rounded:s,className:a,prefixIcon:r,suffixIcon:o,children:i,...l},c)=>{const d=x.useContext(hr),p=e??d?.variant??"default",m=t??d?.size??"md",b=s??d?.rounded??"square";return n.jsxs(hn.Item,{ref:c,"data-variant":p,"data-size":m,className:y(gr({variant:p,size:m,rounded:b}),d&&Dc,"focus-visible:z-10",a),...l,children:[r&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}),i,o&&n.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]})});br.displayName="ToggleGroupItem";const Mc=se.cva("grid gap-2",{variants:{orientation:{vertical:"grid-flow-row",horizontal:"grid-flow-col auto-cols-max"}},defaultVariants:{orientation:"vertical"}}),Oc=se.cva("shrink-0 rounded-full border border-border-tertiary outline-offset-2 cursor-pointer transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-border disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-text data-[state=checked]:bg-text data-[state=checked]:text-bg-base",{variants:{size:{sm:"size-3.5",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}}),$c={sm:"size-1.5",md:"size-2",lg:"size-2.5"},vr=N.forwardRef(({className:e,orientation:t="vertical",...s},a)=>n.jsx(xn.Root,{ref:a,className:y(Mc({orientation:t,className:e})),orientation:t??"vertical",...s}));vr.displayName="RadioGroup";const kr=N.forwardRef(({className:e,size:t="md",...s},a)=>n.jsx(xn.Item,{ref:a,className:y(Oc({size:t,className:e})),...s,children:n.jsx(xn.Indicator,{className:"flex items-center justify-center",children:n.jsx("span",{className:y("rounded-full bg-current",$c[t??"md"])})})}));kr.displayName="RadioGroupItem";const _s=`
|
|
1
|
+
"use strict";var lc=Object.create;var Hs=Object.defineProperty;var cc=Object.getOwnPropertyDescriptor;var dc=Object.getOwnPropertyNames;var uc=Object.getPrototypeOf,mc=Object.prototype.hasOwnProperty;var pc=(e,a,s,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of dc(a))!mc.call(e,r)&&r!==s&&Hs(e,r,{get:()=>a[r],enumerable:!(n=cc(a,r))||n.enumerable});return e};var xc=(e,a,s)=>(s=e!=null?lc(uc(e)):{},pc(a||!e||!e.__esModule?Hs(s,"default",{value:e,enumerable:!0}):s,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),u=require("react"),V=require("framer-motion"),fc=require("@radix-ui/react-tooltip"),Le=require("clsx"),hc=require("@radix-ui/react-dropdown-menu"),F=require("class-variance-authority"),gc=require("@radix-ui/react-alert-dialog"),yc=require("@radix-ui/react-switch"),Cn=require("react-dom"),Sn=require("sonner"),bc=require("@radix-ui/react-select"),vc=require("@radix-ui/react-dialog"),wc=require("@radix-ui/react-popover"),kc=require("@radix-ui/react-hover-card"),jc=require("@radix-ui/react-context-menu"),Nc=require("react-markdown"),Cc=require("remark-gfm"),Sc=require("remark-math"),Ic=require("rehype-katex"),Gs=require("lottie-react"),In=require("react-i18next"),Rc=require("prism-react-renderer"),zc=require("@radix-ui/react-aspect-ratio"),Tc=require("@radix-ui/react-avatar"),he=require("lucide-react"),wa=require("react-day-picker"),Lc=require("embla-carousel-react"),Mc=require("recharts"),Pc=require("@radix-ui/react-checkbox"),Ac=require("@radix-ui/react-accordion"),Dc=require("@radix-ui/react-collapsible"),Be=require("cmdk"),_c=require("@radix-ui/react-label"),Ec=require("@radix-ui/react-separator"),Rn=require("input-otp"),H=require("radix-ui"),Fc=require("@radix-ui/react-progress"),$c=require("@radix-ui/react-radio-group"),La=require("react-resizable-panels"),Oc=require("@radix-ui/react-slider"),Bc=require("@radix-ui/react-tabs"),Vc=require("@radix-ui/react-toggle"),Hc=require("@radix-ui/react-toggle-group");function se(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(a,s,n.get?n:{enumerable:!0,get:()=>e[s]})}}return a.default=e,Object.freeze(a)}const y=se(u),Ze=se(fc),Z=se(hc),pe=se(gc),qs=se(yc),oe=se(bc),K=se(vc),Ke=se(wc),ct=se(kc),Y=se(jc),Gc=se(zc),tt=se(Tc),Ma=se(Mc),ka=se(Pc),dt=se(Ac),Ut=se(Dc),zn=se(_c),Tn=se(Ec),Us=se(Fc),ja=se($c),Rt=se(Oc),Ve=se(Bc),qc=se(Vc),Na=se(Hc),ut=F.cva("inline-flex items-center justify-center gap-1.5 font-medium transition-colors duration-200 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",{variants:{variant:{primary:"bg-primary text-text-on-primary hover:bg-primary-hover",secondary:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover",tertiary:"bg-fill-secondary text-text hover:bg-fill",outline:"border border-border-tertiary bg-bg-container text-text hover:bg-fill-secondary",ghost:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text",text:"bg-transparent text-text-secondary hover:text-text"},size:{sm:"h-7 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},rounded:{square:"rounded",pill:"rounded-full"},textOnly:{true:"h-auto px-0 py-0.5",false:""}},compoundVariants:[{textOnly:!0,size:"sm",className:"text-xs"},{textOnly:!0,size:"md",className:"text-sm"},{textOnly:!0,size:"lg",className:"text-base"}],defaultVariants:{variant:"ghost",size:"md",rounded:"square",textOnly:!1}}),W=u.forwardRef(({variant:e="ghost",children:a,size:s="md",textButton:n=!1,prefixIcon:r,suffixIcon:o,rounded:l="square",disabled:c=!1,className:d,...m},p)=>t.jsxs("button",{ref:p,className:ut({variant:n?"text":e,size:s,rounded:l,textOnly:n,className:d}),disabled:c,...m,children:[r&&t.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}),a,o&&t.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]}));W.displayName="Button";const Uc=(e,a)=>{const s=new Array(e.length+a.length);for(let n=0;n<e.length;n++)s[n]=e[n];for(let n=0;n<a.length;n++)s[e.length+n]=a[n];return s},Qc=(e,a)=>({classGroupId:e,validator:a}),Ln=(e=new Map,a=null,s)=>({nextPart:e,validators:a,classGroupId:s}),Ft="-",Qs=[],Wc="arbitrary..",Zc=e=>{const a=Yc(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Kc(l);const c=l.split(Ft),d=c[0]===""&&c.length>1?1:0;return Mn(c,d,a)},getConflictingClassGroupIds:(l,c)=>{if(c){const d=n[l],m=s[l];return d?m?Uc(m,d):d:m||Qs}return s[l]||Qs}}},Mn=(e,a,s)=>{if(e.length-a===0)return s.classGroupId;const r=e[a],o=s.nextPart.get(r);if(o){const m=Mn(e,a+1,o);if(m)return m}const l=s.validators;if(l===null)return;const c=a===0?e.join(Ft):e.slice(a).join(Ft),d=l.length;for(let m=0;m<d;m++){const p=l[m];if(p.validator(c))return p.classGroupId}},Kc=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=e.slice(1,-1),s=a.indexOf(":"),n=a.slice(0,s);return n?Wc+n:void 0})(),Yc=e=>{const{theme:a,classGroups:s}=e;return Xc(s,a)},Xc=(e,a)=>{const s=Ln();for(const n in e){const r=e[n];Pa(r,s,n,a)}return s},Pa=(e,a,s,n)=>{const r=e.length;for(let o=0;o<r;o++){const l=e[o];Jc(l,a,s,n)}},Jc=(e,a,s,n)=>{if(typeof e=="string"){ed(e,a,s);return}if(typeof e=="function"){td(e,a,s,n);return}ad(e,a,s,n)},ed=(e,a,s)=>{const n=e===""?a:Pn(a,e);n.classGroupId=s},td=(e,a,s,n)=>{if(sd(e)){Pa(e(n),a,s,n);return}a.validators===null&&(a.validators=[]),a.validators.push(Qc(s,e))},ad=(e,a,s,n)=>{const r=Object.entries(e),o=r.length;for(let l=0;l<o;l++){const[c,d]=r[l];Pa(d,Pn(a,c),s,n)}},Pn=(e,a)=>{let s=e;const n=a.split(Ft),r=n.length;for(let o=0;o<r;o++){const l=n[o];let c=s.nextPart.get(l);c||(c=Ln(),s.nextPart.set(l,c)),s=c}return s},sd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,nd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,s=Object.create(null),n=Object.create(null);const r=(o,l)=>{s[o]=l,a++,a>e&&(a=0,n=s,s=Object.create(null))};return{get(o){let l=s[o];if(l!==void 0)return l;if((l=n[o])!==void 0)return r(o,l),l},set(o,l){o in s?s[o]=l:r(o,l)}}},Ca="!",Ws=":",rd=[],Zs=(e,a,s,n,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:s,maybePostfixModifierPosition:n,isExternal:r}),od=e=>{const{prefix:a,experimentalParseClassName:s}=e;let n=r=>{const o=[];let l=0,c=0,d=0,m;const p=r.length;for(let b=0;b<p;b++){const h=r[b];if(l===0&&c===0){if(h===Ws){o.push(r.slice(d,b)),d=b+1;continue}if(h==="/"){m=b;continue}}h==="["?l++:h==="]"?l--:h==="("?c++:h===")"&&c--}const x=o.length===0?r:r.slice(d);let g=x,v=!1;x.endsWith(Ca)?(g=x.slice(0,-1),v=!0):x.startsWith(Ca)&&(g=x.slice(1),v=!0);const f=m&&m>d?m-d:void 0;return Zs(o,v,g,f)};if(a){const r=a+Ws,o=n;n=l=>l.startsWith(r)?o(l.slice(r.length)):Zs(rd,!1,l,void 0,!0)}if(s){const r=n;n=o=>s({className:o,parseClassName:r})}return n},id=e=>{const a=new Map;return e.orderSensitiveModifiers.forEach((s,n)=>{a.set(s,1e6+n)}),s=>{const n=[];let r=[];for(let o=0;o<s.length;o++){const l=s[o],c=l[0]==="[",d=a.has(l);c||d?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(l)):r.push(l)}return r.length>0&&(r.sort(),n.push(...r)),n}},ld=e=>({cache:nd(e.cacheSize),parseClassName:od(e),sortModifiers:id(e),...Zc(e)}),cd=/\s+/,dd=(e,a)=>{const{parseClassName:s,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:o}=a,l=[],c=e.trim().split(cd);let d="";for(let m=c.length-1;m>=0;m-=1){const p=c[m],{isExternal:x,modifiers:g,hasImportantModifier:v,baseClassName:f,maybePostfixModifierPosition:b}=s(p);if(x){d=p+(d.length>0?" "+d:d);continue}let h=!!b,w=n(h?f.substring(0,b):f);if(!w){if(!h){d=p+(d.length>0?" "+d:d);continue}if(w=n(f),!w){d=p+(d.length>0?" "+d:d);continue}h=!1}const j=g.length===0?"":g.length===1?g[0]:o(g).join(":"),k=v?j+Ca:j,T=k+w;if(l.indexOf(T)>-1)continue;l.push(T);const S=r(w,h);for(let P=0;P<S.length;++P){const A=S[P];l.push(k+A)}d=p+(d.length>0?" "+d:d)}return d},ud=(...e)=>{let a=0,s,n,r="";for(;a<e.length;)(s=e[a++])&&(n=An(s))&&(r&&(r+=" "),r+=n);return r},An=e=>{if(typeof e=="string")return e;let a,s="";for(let n=0;n<e.length;n++)e[n]&&(a=An(e[n]))&&(s&&(s+=" "),s+=a);return s},md=(e,...a)=>{let s,n,r,o;const l=d=>{const m=a.reduce((p,x)=>x(p),e());return s=ld(m),n=s.cache.get,r=s.cache.set,o=c,c(d)},c=d=>{const m=n(d);if(m)return m;const p=dd(d,s);return r(d,p),p};return o=l,(...d)=>o(ud(...d))},pd=[],ce=e=>{const a=s=>s[e]||pd;return a.isThemeGetter=!0,a},Dn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_n=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xd=/^\d+\/\d+$/,fd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,We=e=>xd.test(e),E=e=>!!e&&!Number.isNaN(Number(e)),Te=e=>!!e&&Number.isInteger(Number(e)),ga=e=>e.endsWith("%")&&E(e.slice(0,-1)),Ie=e=>fd.test(e),En=()=>!0,vd=e=>hd.test(e)&&!gd.test(e),Aa=()=>!1,wd=e=>yd.test(e),kd=e=>bd.test(e),jd=e=>!R(e)&&!z(e),Nd=e=>Pe(e,On,Aa),R=e=>Dn.test(e),Ee=e=>Pe(e,Bn,vd),Ks=e=>Pe(e,Md,E),Cd=e=>Pe(e,Hn,En),Sd=e=>Pe(e,Vn,Aa),Ys=e=>Pe(e,Fn,Aa),Id=e=>Pe(e,$n,kd),zt=e=>Pe(e,Gn,wd),z=e=>_n.test(e),st=e=>He(e,Bn),Rd=e=>He(e,Vn),Xs=e=>He(e,Fn),zd=e=>He(e,On),Td=e=>He(e,$n),Tt=e=>He(e,Gn,!0),Ld=e=>He(e,Hn,!0),Pe=(e,a,s)=>{const n=Dn.exec(e);return n?n[1]?a(n[1]):s(n[2]):!1},He=(e,a,s=!1)=>{const n=_n.exec(e);return n?n[1]?a(n[1]):s:!1},Fn=e=>e==="position"||e==="percentage",$n=e=>e==="image"||e==="url",On=e=>e==="length"||e==="size"||e==="bg-size",Bn=e=>e==="length",Md=e=>e==="number",Vn=e=>e==="family-name",Hn=e=>e==="number"||e==="weight",Gn=e=>e==="shadow",Pd=()=>{const e=ce("color"),a=ce("font"),s=ce("text"),n=ce("font-weight"),r=ce("tracking"),o=ce("leading"),l=ce("breakpoint"),c=ce("container"),d=ce("spacing"),m=ce("radius"),p=ce("shadow"),x=ce("inset-shadow"),g=ce("text-shadow"),v=ce("drop-shadow"),f=ce("blur"),b=ce("perspective"),h=ce("aspect"),w=ce("ease"),j=ce("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...T(),z,R],P=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],I=()=>[z,R,d],_=()=>[We,"full","auto",...I()],ne=()=>[Te,"none","subgrid",z,R],D=()=>["auto",{span:["full",Te,z,R]},Te,z,R],q=()=>[Te,"auto",z,R],ie=()=>["auto","min","max","fr",z,R],X=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],ae=()=>["auto",...I()],le=()=>[We,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],C=()=>[e,z,R],O=()=>[...T(),Xs,Ys,{position:[z,R]}],J=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",zd,Nd,{size:[z,R]}],U=()=>[ga,st,Ee],Q=()=>["","none","full",m,z,R],me=()=>["",E,st,Ee],we=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[E,ga,Xs,Ys],Qe=()=>["","none",f,z,R],Re=()=>["none",E,z,R],ze=()=>["none",E,z,R],L=()=>[E,z,R],M=()=>[We,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ie],breakpoint:[Ie],color:[En],container:[Ie],"drop-shadow":[Ie],ease:["in","out","in-out"],font:[jd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ie],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ie],shadow:[Ie],spacing:["px",E],text:[Ie],"text-shadow":[Ie],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",We,R,z,h]}],container:["container"],columns:[{columns:[E,R,z,c]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[Te,"auto",z,R]}],basis:[{basis:[We,"full","auto",c,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,We,"auto","initial","none",R]}],grow:[{grow:["",E,z,R]}],shrink:[{shrink:["",E,z,R]}],order:[{order:[Te,"first","last","none",z,R]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...X(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...X()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":X()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:ae()}],mx:[{mx:ae()}],my:[{my:ae()}],ms:[{ms:ae()}],me:[{me:ae()}],mt:[{mt:ae()}],mr:[{mr:ae()}],mb:[{mb:ae()}],ml:[{ml:ae()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:le()}],w:[{w:[c,"screen",...le()]}],"min-w":[{"min-w":[c,"screen","none",...le()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...le()]}],h:[{h:["screen","lh",...le()]}],"min-h":[{"min-h":["screen","lh","none",...le()]}],"max-h":[{"max-h":["screen","lh",...le()]}],"font-size":[{text:["base",s,st,Ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Ld,Cd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ga,R]}],"font-family":[{font:[Rd,Sd,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,z,R]}],"line-clamp":[{"line-clamp":[E,"none",z,Ks]}],leading:[{leading:[o,...I()]}],"list-image":[{"list-image":["none",z,R]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",z,R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[E,"from-font","auto",z,Ee]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[E,"auto",z,R]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z,R]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z,R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:J()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Te,z,R],radial:["",z,R],conic:[Te,z,R]},Td,Id]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[E,z,R]}],"outline-w":[{outline:["",E,st,Ee]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",p,Tt,zt]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",x,Tt,zt]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[E,Ee]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",g,Tt,zt]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[E,z,R]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[z,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[E]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:J()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",z,R]}],filter:[{filter:["","none",z,R]}],blur:[{blur:Qe()}],brightness:[{brightness:[E,z,R]}],contrast:[{contrast:[E,z,R]}],"drop-shadow":[{"drop-shadow":["","none",v,Tt,zt]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",E,z,R]}],"hue-rotate":[{"hue-rotate":[E,z,R]}],invert:[{invert:["",E,z,R]}],saturate:[{saturate:[E,z,R]}],sepia:[{sepia:["",E,z,R]}],"backdrop-filter":[{"backdrop-filter":["","none",z,R]}],"backdrop-blur":[{"backdrop-blur":Qe()}],"backdrop-brightness":[{"backdrop-brightness":[E,z,R]}],"backdrop-contrast":[{"backdrop-contrast":[E,z,R]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,z,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,z,R]}],"backdrop-invert":[{"backdrop-invert":["",E,z,R]}],"backdrop-opacity":[{"backdrop-opacity":[E,z,R]}],"backdrop-saturate":[{"backdrop-saturate":[E,z,R]}],"backdrop-sepia":[{"backdrop-sepia":["",E,z,R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",z,R]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",z,R]}],ease:[{ease:["linear","initial",w,z,R]}],delay:[{delay:[E,z,R]}],animate:[{animate:["none",j,z,R]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,z,R]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:ze()}],"scale-x":[{"scale-x":ze()}],"scale-y":[{"scale-y":ze()}],"scale-z":[{"scale-z":ze()}],"scale-3d":["scale-3d"],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[z,R,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:M()}],"translate-x":[{"translate-x":M()}],"translate-y":[{"translate-y":M()}],"translate-z":[{"translate-z":M()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",z,R]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",z,R]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[E,st,Ee,Ks]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ad=md(Pd);function i(...e){return Ad(Le.clsx(e))}const qn=F.cva("inline-flex isolate [&>*]:focus-visible:relative [&>*]:focus-visible:z-10",{variants:{orientation:{horizontal:"flex-row items-stretch [&>*:not(:first-child)]:-ml-px [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:rounded-t-none [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}}),Un=y.forwardRef(({className:e,orientation:a="horizontal",...s},n)=>t.jsx("div",{ref:n,role:"group","data-orientation":a??"horizontal",className:i(qn({orientation:a}),e),...s}));Un.displayName="ButtonGroup";const Qn=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("inline-flex h-9 shrink-0 items-center gap-1.5 rounded bg-fill-secondary px-3 text-sm font-medium text-text select-none","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...a}));Qn.displayName="ButtonGroupText";const Wn=y.forwardRef(({className:e,orientation:a="vertical",...s},n)=>t.jsx("div",{ref:n,role:"separator","aria-orientation":a,"data-orientation":a,className:i("shrink-0 self-stretch bg-border-tertiary",a==="vertical"?"w-px":"h-px w-full",e),...s}));Wn.displayName="ButtonGroupSeparator";const Dd=F.cva("flex-none shrink-0 inline-flex items-center justify-center box-border transition-colors duration-200 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer [&>*]:flex [&>*]:items-center [&>*]:justify-center [&>*]:size-full [&>*]:[&>svg]:block [&>*]:[&>svg]:leading-none",{variants:{variant:{primary:"bg-primary text-text-on-primary hover:bg-primary-hover",secondary:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover",tertiary:"bg-fill-secondary text-text hover:bg-fill",ghost:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text",iconOnly:"bg-transparent text-text-secondary hover:text-text"},rounded:{square:"rounded",pill:"rounded-full"},size:{sm:"h-7 w-7 min-h-7 min-w-7 p-1.5",md:"h-9 w-9 min-h-9 min-w-9 p-1.5",lg:"h-11 w-11 min-h-11 min-w-11 p-2"}},defaultVariants:{variant:"secondary",size:"md",rounded:"square"}}),Ne=u.forwardRef(({variant:e="secondary",size:a="md",rounded:s="square",icon:n,disabled:r=!1,className:o,...l},c)=>t.jsx("button",{ref:c,className:i(Dd({variant:e,size:a,rounded:s}),o),disabled:r,...l,children:t.jsx("span",{className:"inline-flex shrink-0 size-full items-center justify-center",children:n})}));Ne.displayName="IconButton";function ge(){if(typeof document>"u")return{};const e=document.documentElement,a={},s=e.getAttribute("data-theme"),n=e.getAttribute("data-style");return s&&(a["data-theme"]=s),n&&(a["data-style"]=n),a}const _d=Ze.Provider,Ed=Ze.Root,Fd=Ze.Trigger,Zn=y.forwardRef(({className:e,sideOffset:a=8,children:s,dataStyle:n,dataTheme:r,...o},l)=>{const c=ge(),d=n!==void 0?{"data-style":n,"data-theme":r??c["data-theme"]??""}:c;return t.jsx(Ze.Portal,{children:t.jsx("div",{style:{display:"contents"},...d,children:t.jsx(Ze.Content,{ref:l,sideOffset:a,className:i("z-50 max-w-60 overflow-hidden rounded px-2 py-1 text-xs leading-5","bg-bg-highlight text-text-on-primary shadow-sm",e),...o,children:t.jsx(V.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},children:s})})})})});Zn.displayName=Ze.Content.displayName;function Ye({content:e,children:a,side:s="top",contentClassName:n,dataStyle:r,dataTheme:o}){return t.jsx(_d,{delayDuration:300,children:t.jsxs(Ed,{children:[t.jsx(Fd,{asChild:!0,children:a}),t.jsx(Zn,{side:s,className:n,dataStyle:r,dataTheme:o,children:e})]})})}Ye.displayName="Tooltip";const Kn=u.createContext(null);function Yn(e){return typeof e=="object"&&"name"in e}function Xn(e){return typeof e=="object"&&"name"in e}function $d(e,a){return Yn(a)?`${e}-${a.name}`:a==="mint"?e:`${e}-${a}`}function Od(e){return Xn(e)?e.name:e}function Bd(e,a){const s={};if(Yn(e)){const{tokens:n}=e;for(const[r,o]of Object.entries(n))if(o!==void 0){const l=r.startsWith("--")?r:`--${r}`;s[l]=o}}if(Xn(a)){const{radius:n,spacing:r,fontSize:o}=a;n&&(n.sm&&(s["--radius-sm"]=n.sm),n.default&&(s["--radius-DEFAULT"]=n.default),n.md&&(s["--radius-md"]=n.md),n.lg&&(s["--radius-lg"]=n.lg),n.xl&&(s["--radius-xl"]=n.xl),n["2xl"]&&(s["--radius-2xl"]=n["2xl"]),n["3xl"]&&(s["--radius-3xl"]=n["3xl"])),r&&(r[3]&&(s["--spacing-3"]=r[3]),r[4]&&(s["--spacing-4"]=r[4]),r[9]&&(s["--spacing-9"]=r[9]),r[11]&&(s["--spacing-11"]=r[11])),o&&(o.sm&&(s["--font-size-sm"]=o.sm),o.lg&&(s["--font-size-lg"]=o.lg),o.xl&&(s["--font-size-xl"]=o.xl),o["2xl"]&&(s["--font-size-2xl"]=o["2xl"]),o["3xl"]&&(s["--font-size-3xl"]=o["3xl"]))}return s}function Vd({children:e,appearance:a="light",theme:s="mint",style:n="neutral"}){const r=u.useMemo(()=>$d(a,s),[a,s]),o=u.useMemo(()=>Od(n),[n]),l=u.useMemo(()=>Bd(s,n),[s,n]),c=u.useMemo(()=>({appearance:a,themeConfig:s,styleConfig:n,dataTheme:r,dataStyle:o,theme:r,style:o}),[a,s,n,r,o]),d=Object.keys(l).length>0;return t.jsx(Kn.Provider,{value:c,children:t.jsx("div",{"data-theme":r,"data-style":o,style:d?l:void 0,children:e})})}function de(){const e=u.useContext(Kn);return e||{appearance:"light",themeConfig:"mint",styleConfig:"neutral",dataTheme:"light",dataStyle:"neutral",theme:"light",style:"neutral"}}function Da({placement:e,side:a=e??"top",...s}){const{style:n,theme:r}=de();return t.jsx(Ye,{side:a,dataStyle:n,dataTheme:r,...s})}Da.displayName="Tooltip";function Js(e,a){e&&(typeof e=="function"?e(a):e.current=a)}const Jn=u.forwardRef(({children:e,lines:a=1,className:s="",placement:n="top",tooltipClassName:r="",tooltipContent:o,disabled:l=!1,style:c,as:d="span"},m)=>{const p=u.useRef(null),[x,g]=u.useState(!1),v=u.useCallback(()=>{const j=p.current;if(!j)return;const k=a===1?j.scrollWidth>j.clientWidth:j.scrollHeight>j.clientHeight;g(k)},[a]);u.useEffect(()=>{const j=requestAnimationFrame(()=>v()),k=p.current;if(!k)return()=>cancelAnimationFrame(j);const T=new ResizeObserver(()=>v());return T.observe(k),window.addEventListener("resize",v),()=>{cancelAnimationFrame(j),T.disconnect(),window.removeEventListener("resize",v)}},[v,e]);const f=a===1?{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...c}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:a,WebkitBoxOrient:"vertical",...c},b=u.useCallback(j=>{Js(p,j),Js(m,j)},[m]),h=t.jsx(d,{ref:b,className:s,style:f,children:e});return x&&!l?t.jsx(Da,{content:o??e,placement:n,contentClassName:Le.clsx(r),children:t.jsx("span",{ref:b,className:s,style:f,children:e})}):h});Jn.displayName="EllipsisText";const Hd="flex flex-col gap-1",Gd=F.cva("w-full flex flex-col gap-0.5 items-start p-2 text-sm rounded text-left transition-colors outline-none focus-visible:bg-fill-tertiary focus-visible:ring-0",{variants:{selected:{true:"",false:""},disabled:{true:"opacity-50 cursor-not-allowed",false:"cursor-pointer hover:bg-fill-tertiary"},dimmed:{true:"opacity-40",false:""}},defaultVariants:{selected:!1,disabled:!1,dimmed:!1}}),qd=F.cva("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs font-mono font-medium transition-colors",{variants:{selected:{true:"bg-primary-active text-text-on-primary",false:"bg-fill-secondary text-text-tertiary"}},defaultVariants:{selected:!1}}),_a=u.forwardRef(({items:e,selectedIds:a=[],focusedId:s,onItemClick:n,showPrefix:r=!0,disabled:o=!1,className:l,...c},d)=>{const m=p=>String(p+1);return t.jsx("div",{ref:d,role:"listbox","aria-multiselectable":a.length>1,className:i(Hd,l),...c,children:e.map((p,x)=>{const g=a.includes(p.id),v=s===p.id,f=o||p.disabled,h=a.length>0&&!g&&!f;return t.jsxs("button",{type:"button",role:"option","aria-selected":g,"aria-disabled":f,onClick:()=>{f||n?.(p,x)},disabled:f,className:i(Gd({selected:g,disabled:f,dimmed:h}),v&&"bg-fill-tertiary"),children:[t.jsxs("div",{className:"flex items-center gap-3",children:[r&&t.jsx("div",{className:qd({selected:g}),children:m(x)}),t.jsx("span",{className:"font-medium text-text",children:p.label})]}),p.description&&t.jsx("div",{className:"ml-8 text-xs text-text-tertiary",children:p.description})]},p.id)})})});_a.displayName="OptionList";const Ud="0 0 24 24",Qd="1em";function $(e,a){const s=y.forwardRef(({className:n,size:r=Qd,...o},l)=>t.jsx("svg",{ref:l,viewBox:Ud,width:r,height:r,fill:"currentColor",className:n,xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,...o,children:t.jsx("path",{d:e})}));return s.displayName=a,s}$("M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z","ArrowDownLine");const Ea=$("M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z","ArrowUpLine"),at=$("M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z","ArrowRightLine"),Wd=$("M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z","ArrowLeftLine"),ye=$("M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z","CheckLine"),Ce=$("M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z","CloseLine"),er=$("M10.5859 12L2.79297 4.20706L4.20718 2.79285L12.0001 10.5857L19.793 2.79285L21.2072 4.20706L13.4143 12L21.2072 19.7928L19.793 21.2071L12.0001 13.4142L4.20718 21.2071L2.79297 19.7928L10.5859 12Z","CloseLargeLine"),Zd=$("M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z","CodeSSlashLine"),tr=$("M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z","EyeLine"),ar=$("M11.9995 2C12.5518 2 12.9995 2.44772 12.9995 3V6C12.9995 6.55228 12.5518 7 11.9995 7C11.4472 7 10.9995 6.55228 10.9995 6V3C10.9995 2.44772 11.4472 2 11.9995 2ZM11.9995 17C12.5518 17 12.9995 17.4477 12.9995 18V21C12.9995 21.5523 12.5518 22 11.9995 22C11.4472 22 10.9995 21.5523 10.9995 21V18C10.9995 17.4477 11.4472 17 11.9995 17ZM20.6597 7C20.9359 7.47829 20.772 8.08988 20.2937 8.36602L17.6956 9.86602C17.2173 10.1422 16.6057 9.97829 16.3296 9.5C16.0535 9.02171 16.2173 8.41012 16.6956 8.13398L19.2937 6.63397C19.772 6.35783 20.3836 6.52171 20.6597 7ZM7.66935 14.5C7.94549 14.9783 7.78161 15.5899 7.30332 15.866L4.70525 17.366C4.22695 17.6422 3.61536 17.4783 3.33922 17C3.06308 16.5217 3.22695 15.9101 3.70525 15.634L6.30332 14.134C6.78161 13.8578 7.3932 14.0217 7.66935 14.5ZM20.6597 17C20.3836 17.4783 19.772 17.6422 19.2937 17.366L16.6956 15.866C16.2173 15.5899 16.0535 14.9783 16.3296 14.5C16.6057 14.0217 17.2173 13.8578 17.6956 14.134L20.2937 15.634C20.772 15.9101 20.9359 16.5217 20.6597 17ZM7.66935 9.5C7.3932 9.97829 6.78161 10.1422 6.30332 9.86602L3.70525 8.36602C3.22695 8.08988 3.06308 7.47829 3.33922 7C3.61536 6.52171 4.22695 6.35783 4.70525 6.63397L7.30332 8.13398C7.78161 8.41012 7.94549 9.02171 7.66935 9.5Z","LoaderLine"),Kd=$("M1.946 9.315c-.946-.35-.946-1.09 0-1.436l18.108-6.732c.946-.35 1.704.21 1.573 1.236L20.1 21.894c-.117.932-.93 1.636 1.897 1.636.967 0 1.754-.704 1.636-1.636l-.527-4.18L10 12 20.073 7.264l-.527-4.18c-.117-.932.67-1.636 1.637-1.636.967 0 2.014.704 1.897 1.636L21.627 18.57c-.131 1.026-.627 1.586-1.573 1.236L1.946 9.315Z","SendPlaneLine"),Yd=$("M6 6h12v12H6V6Zm2 2v8h8V8H8Z","StopLine"),Xd=$("M12 3a3 3 0 0 1 3 3v6a3 3 0 0 1-6 0V6a3 3 0 0 1 3-3Zm0 14a5 5 0 0 0 5-5v-1a1 1 0 1 1 2 0v1a7 7 0 0 1-14 0v-1a1 1 0 1 1 2 0v1a5 5 0 0 0 5 5Z","MicLine"),sr=$("M3 3h8.828l2 2H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm2 2v12h14V7h-8.414l-2-2H5Z","FolderLine"),nr=$("M12.414 5H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414l2 2Z","FolderFillLine"),Fa=$("M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm4 18H6V4h7v5h5v11z","FileLine"),rr=$("M12 2C6.477 2 2 6.477 2 12c0 1.5.328 2.932.917 4.215L1.5 21l4.785-1.417A9.966 9.966 0 0 0 12 22c5.523 0 10-4.477 10-10S17.523 2 12 2zm0 2a8 8 0 1 1 0 16 7.99 7.99 0 0 1-3.918-1.018l-.26-.15-2.683.795.795-2.683-.15-.26A7.99 7.99 0 0 1 4 12a8 8 0 0 1 8-8z","Chat3Line"),mt=$("M12 7a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V8a1 1 0 0 1 1-1zm0 10a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5z","WarningLine"),be=$("M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z","ArrowDownSLine"),$a=$("M14 2l.5 2.5L17 5l-2.5.5L14 8l-.5-2.5L11 5l2.5-.5L14 2zM6 12l1 4 4 1 1-4-4-1-1-4zm8-2l.5 2.5 2.5.5-2.5.5-.5 2.5-.5-2.5-2.5-.5 2.5-.5.5-2.5z","SparklingLine"),or=$("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 2v5.586l3.707 3.707-1.414 1.414L11 11.414V6h2z","TimeLine"),Qt=$("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 5.536l-4.95 4.95-2.121-2.122-1.414 1.414 3.535 3.536 6.364-6.364-1.414-1.414z","CheckboxCircleLine"),ir=$("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 2.464l-1.414 1.414L12 10.586 9.878 8.464 8.464 9.878 10.586 12l-2.122 2.121 1.414 1.415L12 13.414l2.121 2.122 1.415-1.414L13.414 12l2.122-2.121z","CloseCircleLine"),Oa=$("M6 12c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z","MoreLine"),Jd=$("M5.763 17H20V5H4v13.385L5.763 17zm.692 2L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455z","QuestionAnswerLine"),lr=$("M7 14h10v2H7v-2zm0-4h10v2H7v-2zm0-4h10v2H7V6zm-4 12h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V6z","RequestChangesLine"),cr=$("M3 5h2v2H3V5zm4 0h14v2H7V5zm-4 6h2v2H3v-2zm4 0h14v2H7v-2zm-4 6h2v2H3v-2zm4 0h14v2H7v-2z","CatalogLine"),dr=$("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16z","CircleLine"),ur=$("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm4 5v2H8V9h8z","IndeterminateCircleLine"),mr=$("M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 10l-4-4v3H6v2h6v3l4-4z","ArrowRightCircleFillLine"),Wt=$("M3 4h14v2H3V4zm0 4h14v2H3V8zm0 4h10v2H3v-2zm0 4h8v2H3v-2z","FileList2Line"),pr=$("M13 10h5l-6 6-6-6h5V3h2v7zM4 19h16v2H4v-2z","DownloadLine"),xr=$("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 5v6h-2V9h2zm0-4v2h-2V6h2z","QuestionnaireLine"),fr=$("M3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm2 2v12h14V5H5zm2 2h2v2H7V7zm4 0h6v2h-6V7zm-4 4h2v2H7v-2zm4 0h6v2h-6v-2z","TerminalBoxLine"),hr=$("M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm11-3v8h-2V6.413l-7.793 7.794-1.414-1.414L17.585 5H13V3h8z","ExternalLinkLine"),gr=$("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 2.05v1.9c.93.13 1.8.44 2.57.9L14.5 7.2c-.55-.36-1.15-.65-1.78-.9L13 6.05zM6.05 11H4.1c.13.93.44 1.8.9 2.57L7.2 9.5c-.36-.55-.65-1.15-.9-1.78L6.05 11zm1.25 4.5L4.6 16.33c.77.57 1.64.88 2.57 1.01v1.9c.63-.25 1.23-.54 1.78-.9L7.3 15.5zm7.4 0c.55.36 1.15.65 1.78.9v1.9a8.1 8.1 0 0 1-2.57-.9L16.8 15.5l-1.25-1.25zM17.9 13h-1.95c-.25-.63-.54-1.23-.9-1.78L16.8 14.5c.57.77.88 1.64 1.01 2.57zm-5.4-5.4c-.36.55-.65 1.15-.9 1.78H6.05c.13-.93.44-1.8.9-2.57L9.5 7.2l1.25 1.25zm-.9 6.8l1.25 1.25c.77-.57 1.64-.88 2.57-1.01v1.95c-.63.25-1.23.54-1.78.9L9.5 16.8zm4.5-4.5l1.25 1.25L16.8 9.5c-.36-.55-.65-1.15-.9-1.78h1.95c.13.93.44 1.8.9 2.57z","GlobalLine"),yr=$("M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm3.536 2.464l-9.072 9.072a8 8 0 0 1 9.072-9.072zM8.464 17.536a8 8 0 0 1 9.072-9.072l-9.072 9.072z","Forbid2Line"),$e=Z.Root,Oe=Z.Trigger,eu=Z.Group,tu=Z.Portal,br=Z.Sub,au=Z.RadioGroup,vr="min-w-32 overflow-hidden rounded-lg border border-border-tertiary bg-bg-container p-1 text-text shadow-lg z-50 outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none focus-visible:!ring-0",Me=y.forwardRef(({className:e,sideOffset:a=4,children:s,dataStyle:n,dataTheme:r,...o},l)=>{const c=ge(),d=n!==void 0?{"data-style":n,"data-theme":r??c["data-theme"]??""}:c;return t.jsx(Z.Portal,{children:t.jsx("div",{style:{display:"contents"},...d,children:t.jsx(Z.Content,{ref:l,sideOffset:a,className:i(vr,e),...o,children:t.jsx(V.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15,ease:[.4,0,.2,1]},children:s})})})})});Me.displayName=Z.Content.displayName;const su=F.cva("flex h-9 w-full cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none hover:bg-fill-secondary focus:bg-fill-secondary data-[highlighted]:bg-fill-secondary data-[state=open]:bg-fill-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),Ba=y.forwardRef(({className:e,inset:a=!1,children:s,subTriggerIcon:n,...r},o)=>t.jsxs(Z.SubTrigger,{ref:o,className:su({inset:a,className:e}),...r,children:[s,t.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center",children:n??t.jsx(at,{className:"h-4 w-4"})})]}));Ba.displayName=Z.SubTrigger.displayName;const Va=y.forwardRef(({className:e,sideOffset:a=-1,dataStyle:s,dataTheme:n,...r},o)=>{const l=ge(),c=s!==void 0?{"data-style":s,"data-theme":n??l["data-theme"]??""}:l;return t.jsx(Z.Portal,{children:t.jsx("div",{style:{display:"contents"},...c,children:t.jsx(Z.SubContent,{ref:o,sideOffset:a,className:i(vr,e),...r})})})});Va.displayName=Z.SubContent.displayName;const nu=F.cva("relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{variant:{default:"hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text",destructive:"text-error hover:bg-error-bg focus:bg-error-bg focus:text-error data-[highlighted]:bg-error-bg data-[highlighted]:text-error"},inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{variant:"default",inset:!1}}),je=y.forwardRef(({className:e,inset:a=!1,variant:s="default",...n},r)=>t.jsx(Z.Item,{ref:r,className:nu({variant:s,inset:a,className:e}),...n}));je.displayName=Z.Item.displayName;const wr="relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm pl-8 pr-3 text-sm outline-none transition-colors hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50",kr=y.forwardRef(({className:e,children:a,checked:s,checkIcon:n,...r},o)=>t.jsxs(Z.CheckboxItem,{ref:o,className:i(wr,e),checked:s,...r,children:[t.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:t.jsx(Z.ItemIndicator,{children:n??t.jsx(ye,{className:"h-4 w-4"})})}),a]}));kr.displayName=Z.CheckboxItem.displayName;const jr=y.forwardRef(({className:e,children:a,...s},n)=>t.jsxs(Z.RadioItem,{ref:n,className:i(wr,e),...s,children:[t.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:t.jsx(Z.ItemIndicator,{children:t.jsx("div",{className:"h-2 w-2 rounded-full bg-primary"})})}),a]}));jr.displayName=Z.RadioItem.displayName;const ru=F.cva("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),Nr=y.forwardRef(({className:e,inset:a=!1,...s},n)=>t.jsx(Z.Label,{ref:n,className:ru({inset:a,className:e}),...s}));Nr.displayName=Z.Label.displayName;const Cr=y.forwardRef(({className:e,...a},s)=>t.jsx(Z.Separator,{ref:s,className:i("my-1 mx-1 h-px bg-border-tertiary",e),...a}));Cr.displayName=Z.Separator.displayName;const Sr=({className:e,...a})=>t.jsx("span",{className:i("ml-auto text-xs tracking-widest text-text-tertiary",e),...a});Sr.displayName="DropdownMenuShortcut";const Ir=u.createContext(null);function ou({value:e,children:a}){return t.jsx(Ir.Provider,{value:e,children:a})}function pt(){return u.useContext(Ir)??{icons:{}}}function N(e,a){const{icons:s}=pt(),n=s[e];if(n)return t.jsx(n,{className:a,"aria-hidden":!0})}const Rr=y.forwardRef((e,a)=>{const{style:s,theme:n}=de();return t.jsx(Me,{ref:a,dataStyle:s,dataTheme:n,...e})});Rr.displayName="DropdownMenuContent";function iu(e){const a=N("arrowRight","h-4 w-4 shrink-0"),s=e.subTriggerIcon??a;return t.jsx(Ba,{...e,subTriggerIcon:s})}const zr=y.forwardRef((e,a)=>{const{style:s,theme:n}=de();return t.jsx(Va,{ref:a,dataStyle:s,dataTheme:n,...e})});zr.displayName="DropdownMenuSubContent";const Tr=pe.Root,lu=pe.Trigger,Lr=pe.Portal,Ha=y.forwardRef(({className:e,...a},s)=>t.jsx(pe.Overlay,{ref:s,asChild:!0,...a,children:t.jsx(V.motion.div,{className:i("fixed inset-0 z-50 bg-bg-mask/60",e),initial:{opacity:0},animate:{opacity:1},transition:{duration:.15}})}));Ha.displayName=pe.Overlay.displayName;const cu=F.cva("font-sans fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-bg-base text-text shadow-lg p-6",{variants:{size:{default:"max-w-lg",sm:"max-w-sm"}},defaultVariants:{size:"default"}}),Ga=y.forwardRef(({className:e,children:a,size:s="default",dataStyle:n,dataTheme:r,...o},l)=>{const c=ge(),d=n!==void 0?{"data-style":n,"data-theme":r??c["data-theme"]??""}:c;return t.jsx(Lr,{children:t.jsxs("div",{style:{display:"contents"},...d,children:[t.jsx(Ha,{}),t.jsx(pe.Content,{ref:l,asChild:!0,...o,children:t.jsx(V.motion.div,{className:i(cu({size:s}),e),initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.4,0,.2,1]},children:a})})]})})});Ga.displayName=pe.Content.displayName;const qa=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("flex flex-col gap-2",e),...a}));qa.displayName="AlertDialogHeader";const Ua=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...a}));Ua.displayName="AlertDialogFooter";const Qa=y.forwardRef(({className:e,...a},s)=>t.jsx(pe.Title,{ref:s,className:i("font-sans text-base font-medium leading-6 text-text",e),...a}));Qa.displayName=pe.Title.displayName;const Wa=y.forwardRef(({className:e,...a},s)=>t.jsx(pe.Description,{ref:s,className:i("text-sm leading-6 text-text-tertiary",e),...a}));Wa.displayName=pe.Description.displayName;const du=F.cva("inline-flex h-9 items-center justify-center rounded px-4 text-sm font-medium transition-colors focus:outline-none disabled:pointer-events-none disabled:opacity-50 cursor-pointer",{variants:{destructive:{true:"bg-error text-text-on-primary hover:bg-error-hover active:bg-error",false:"bg-bg-highlight text-text-on-primary hover:bg-bg-highlight-hover"}},defaultVariants:{destructive:!1}}),Mr=y.forwardRef(({className:e,destructive:a=!1,...s},n)=>t.jsx(pe.Action,{ref:n,className:i(du({destructive:a}),e),...s}));Mr.displayName=pe.Action.displayName;const Za=y.forwardRef(({className:e,...a},s)=>t.jsx(pe.Cancel,{ref:s,className:i("inline-flex h-9 items-center justify-center rounded px-4 text-sm font-medium cursor-pointer","bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text","transition-colors focus:outline-none",e),...a}));Za.displayName=pe.Cancel.displayName;const Pr=y.forwardRef((e,a)=>{const{style:s,theme:n}=de();return t.jsx(Ga,{ref:a,dataStyle:s,dataTheme:n,...e})});Pr.displayName="AlertDialogContent";const Ar=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("mb-4 inline-flex h-10 w-10 items-center justify-center rounded-lg bg-fill-tertiary text-text",e),...a}));Ar.displayName="AlertDialogMedia";function Dr({className:e,...a}){return t.jsx("kbd",{className:i("pointer-events-none inline-flex h-5 w-fit min-w-5 select-none items-center justify-center gap-1 rounded-sm px-1 !font-sans text-xs font-medium","bg-fill-secondary text-text-secondary","[.tooltip-content_&]:bg-bg-highlight-hover [.tooltip-content_&]:text-text-on-primary","dark:[.tooltip-content_&]:bg-[color:var(--color-bg-base)]/10 dark:[.tooltip-content_&]:text-[var(--color-bg-base)]",e),...a})}Dr.displayName="Kbd";function _r({className:e,children:a,separator:s="+",...n}){const r=y.Children.toArray(a);return t.jsx("span",{className:i("inline-flex items-center gap-1",e),...n,children:r.map((o,l)=>t.jsxs(y.Fragment,{children:[o,l<r.length-1&&t.jsx("span",{className:"select-none !font-sans text-xs font-medium text-text-secondary",children:s})]},l))})}_r.displayName="KbdGroup";const rt={fast:.15,base:.2,slow:.3},ot={standard:[.16,1,.3,1],emphasized:[.2,.8,.2,1],out:[0,0,.2,1]},Er={snappy:{type:"spring",stiffness:520,damping:34,mass:.7}},uu=F.cva("peer inline-flex shrink-0 cursor-pointer items-center rounded-full overflow-hidden border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-fill-secondary",{variants:{size:{md:"h-5 w-9",lg:"h-6 w-11"}},defaultVariants:{size:"md"}}),mu=F.cva("pointer-events-none block rounded-full bg-text-on-primary ring-0 transition-transform data-[state=unchecked]:translate-x-0",{variants:{size:{md:"h-4 w-4 data-[state=checked]:translate-x-4",lg:"h-5 w-5 data-[state=checked]:translate-x-4.5"}},defaultVariants:{size:"md"}}),Fr=y.forwardRef(({className:e,size:a="md",disabled:s=!1,...n},r)=>t.jsx(qs.Root,{ref:r,className:i(uu({size:a}),e),disabled:s,...n,children:t.jsx(qs.Thumb,{className:mu({size:a})})}));Fr.displayName="Switch";const en={sm:{buttonClass:"w-5 h-5",iconClass:"w-3.5 h-3.5",trackClass:"p-0.5 rounded-md gap-0.5",thumbClass:"w-5 h-5 rounded-sm top-0.5 bottom-0.5",buttonRounded:"rounded-sm"},md:{buttonClass:"w-6 h-6",iconClass:"w-4 h-4",trackClass:"p-0.5 rounded-lg gap-0.5",thumbClass:"w-6 h-6 rounded-md top-0.5 bottom-0.5",buttonRounded:"rounded-md"}};function pu(e){if(e==="normal"||!e)return 0;const a=parseFloat(e);return e.endsWith("px")?a:e.endsWith("rem")?a*16:a}const Ka=y.forwardRef(({variant:e="toggle",className:a,size:s="md",options:n,value:r,defaultValue:o="preview",onValueChange:l,segmentSize:c="md",disabled:d=!1,...m},p)=>{const{style:x,theme:g}=de(),v={};x&&(v["data-style"]=x),g&&(v["data-theme"]=g);const f=en[c].iconClass,b=t.jsx(Zd,{className:f}),h=t.jsx(tr,{className:f}),[w,j]=y.useState(o),k=y.useRef(null),[T,S]=y.useState({buttonWidth:24,gapPx:2});y.useLayoutEffect(()=>{if(!k.current)return;const O=k.current,J=O.querySelector("button"),ue=J?pu(getComputedStyle(O).gap):0,U=J?.offsetWidth??24;S(Q=>Q.buttonWidth===U&&Q.gapPx===ue?Q:{buttonWidth:U,gapPx:ue})},[x,c,n?.length]);const P=[{value:"code",label:"Code",icon:b},{value:"preview",label:"Preview",icon:h}],A=n?.length?n:P;if(e==="toggle")return t.jsx("div",{ref:p,...v,className:"inline-flex",children:t.jsx(Fr,{size:s,className:a,disabled:d,...m})});const I=r!==void 0,_=(I?r:w)??o,ne=O=>{d||(I||j(O),l?.(O))},D=A.findIndex(O=>O.value===_),q=D>=0?D:0,ie=en[c],{buttonClass:X,trackClass:G,thumbClass:ae,buttonRounded:le}=ie,C=q*(T.buttonWidth+T.gapPx);return t.jsx("div",{ref:p,...v,className:"inline-flex",children:t.jsxs("div",{ref:k,role:"radiogroup","aria-disabled":d||void 0,className:Le.clsx("relative inline-flex items-center",G,"bg-fill-secondary",d?"opacity-50 cursor-not-allowed":"cursor-pointer",a),...m,children:[t.jsx(V.motion.span,{className:Le.clsx("absolute left-0.5 bg-bg-base shadow-sm",ae),initial:!1,animate:{x:C},transition:{type:"tween",duration:rt.base,ease:ot.out}}),A.map(O=>{const J=O.value===_;return t.jsx("button",{type:"button",role:"radio","aria-checked":J,"aria-label":O.label,disabled:d,onClick:()=>ne(O.value),className:Le.clsx("relative z-10 inline-flex items-center justify-center",le,X,"transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border",J?"text-primary-active":"text-text-secondary"),children:t.jsx("span",{className:"inline-flex items-center justify-center",children:O.icon})},O.value)})]})})});Ka.displayName="Switch";function xu({size:e="md",value:a,defaultValue:s="preview",onValueChange:n,disabled:r=!1,className:o,...l}){return t.jsx(Ka,{variant:"segment",segmentSize:e,value:a,defaultValue:s,onValueChange:n,disabled:r,className:o,...l})}const $r=F.cva("inline-flex items-center justify-center gap-1.5 font-medium transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:pointer-events-none disabled:opacity-50 cursor-pointer data-[state=on]:bg-fill data-[state=on]:text-text",{variants:{variant:{default:"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text data-[state=on]:bg-fill data-[state=on]:text-text",outline:"border border-border-tertiary bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text data-[state=on]:border-border-secondary data-[state=on]:bg-fill data-[state=on]:text-text"},size:{sm:"h-7 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},rounded:{square:"rounded",pill:"rounded-full"}},defaultVariants:{variant:"default",size:"md",rounded:"square"}}),Or=u.forwardRef(({variant:e="default",size:a="md",rounded:s="square",className:n,prefixIcon:r,suffixIcon:o,children:l,...c},d)=>t.jsxs(qc.Root,{ref:d,className:$r({variant:e,size:a,rounded:s,className:n}),...c,children:[r&&t.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}),l,o&&t.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]}));Or.displayName="Toggle";const Br=u.createContext(null),fu={none:"gap-0",sm:"gap-1",md:"gap-2"},hu=["shrink-0","group-data-[spacing=0]/toggle-group:rounded-none","group-data-[spacing=0]/toggle-group:group-data-[orientation=horizontal]/toggle-group:first:rounded-l","group-data-[spacing=0]/toggle-group:group-data-[orientation=horizontal]/toggle-group:last:rounded-r","group-data-[spacing=0]/toggle-group:group-data-[orientation=vertical]/toggle-group:first:rounded-t","group-data-[spacing=0]/toggle-group:group-data-[orientation=vertical]/toggle-group:last:rounded-b","group-data-[spacing=0]/toggle-group:data-[variant=outline]:group-data-[orientation=horizontal]/toggle-group:[&:not(:first-child)]:border-l-0","group-data-[spacing=0]/toggle-group:data-[variant=outline]:group-data-[orientation=vertical]/toggle-group:[&:not(:first-child)]:border-t-0"].join(" "),Vr=u.forwardRef(({type:e="single",variant:a="default",size:s="md",rounded:n="square",spacing:r="none",className:o,orientation:l="horizontal",children:c,...d},m)=>{const p=i("group/toggle-group inline-flex w-fit",l==="horizontal"?"flex-row":"flex-col",l==="vertical"&&"items-stretch",fu[r],o),x={ref:m,orientation:l,"data-spacing":r==="none"?"0":r,"data-orientation":l,"data-variant":a,"data-size":s,className:p};return t.jsx(Br.Provider,{value:{variant:a,size:s,rounded:n,spacing:r},children:e==="multiple"?t.jsx(Na.Root,{...x,...d,type:"multiple",children:c}):t.jsx(Na.Root,{...x,...d,type:"single",children:c})})});Vr.displayName="ToggleGroup";const Hr=u.forwardRef(({variant:e,size:a,rounded:s,className:n,prefixIcon:r,suffixIcon:o,children:l,...c},d)=>{const m=u.useContext(Br),p=e??m?.variant??"default",x=a??m?.size??"md",g=s??m?.rounded??"square";return t.jsxs(Na.Item,{ref:d,"data-variant":p,"data-size":x,className:i($r({variant:p,size:x,rounded:g}),m&&hu,"focus-visible:z-10",n),...c,children:[r&&t.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:r}),l,o&&t.jsx("span",{className:"inline-flex shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",children:o})]})});Hr.displayName="ToggleGroupItem";const gu=F.cva("grid gap-2",{variants:{orientation:{vertical:"grid-flow-row",horizontal:"grid-flow-col auto-cols-max"}},defaultVariants:{orientation:"vertical"}}),yu=F.cva("shrink-0 rounded-full border border-border-tertiary outline-offset-2 cursor-pointer transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-border disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-text data-[state=checked]:bg-text data-[state=checked]:text-bg-base",{variants:{size:{sm:"size-3.5",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}}),bu={sm:"size-1.5",md:"size-2",lg:"size-2.5"},Gr=y.forwardRef(({className:e,orientation:a="vertical",...s},n)=>t.jsx(ja.Root,{ref:n,className:i(gu({orientation:a,className:e})),orientation:a??"vertical",...s}));Gr.displayName="RadioGroup";const qr=y.forwardRef(({className:e,size:a="md",...s},n)=>t.jsx(ja.Item,{ref:n,className:i(yu({size:a,className:e})),...s,children:t.jsx(ja.Indicator,{className:"flex items-center justify-center",children:t.jsx("span",{className:i("rounded-full bg-current",bu[a??"md"])})})}));qr.displayName="RadioGroupItem";const tn=`
|
|
2
2
|
.CollapsibleSection-scroll-list::-webkit-scrollbar { display: none; }
|
|
3
3
|
.CollapsibleSection-scroll-list { scrollbar-width: none; -ms-overflow-style: none; }
|
|
4
|
-
`;function Bc({maxHeight:e,children:t}){const s=x.useRef(null),[a,r]=x.useState(!1),[o,i]=x.useState(!1),l=x.useCallback(()=>{const c=s.current;if(!c)return;const{scrollTop:d,scrollHeight:p,clientHeight:m}=c;r(d>0),i(d+m<p-1)},[]);return x.useEffect(()=>{const c=s.current;if(!c)return;l();const d=new ResizeObserver(l);return d.observe(c),c.addEventListener("scroll",l,{passive:!0}),()=>{d.disconnect(),c.removeEventListener("scroll",l)}},[e,l]),n.jsxs("div",{className:"relative flex flex-1 min-h-0 flex-col overflow-hidden",children:[n.jsx("div",{ref:s,className:"CollapsibleSection-scroll-list flex flex-1 min-h-0 flex-col overflow-y-auto overflow-x-hidden",style:{maxHeight:e,scrollbarWidth:"none",msOverflowStyle:"none"},children:t}),a&&n.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to bottom, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0}),o&&n.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to top, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0})]})}function Gc({children:e}){const t=x.useRef(null),[s,a]=x.useState(!1),[r,o]=x.useState(!1),i=x.useCallback(()=>{const l=t.current;if(!l)return;const{scrollTop:c,scrollHeight:d,clientHeight:p}=l;a(c>0),o(c+p<d-1)},[]);return x.useEffect(()=>{const l=t.current;if(!l)return;i();const c=new ResizeObserver(i);return c.observe(l),l.addEventListener("scroll",i,{passive:!0}),()=>{c.disconnect(),l.removeEventListener("scroll",i)}},[i]),n.jsxs("div",{className:"relative flex flex-1 min-h-0 flex-col overflow-hidden",children:[n.jsx("div",{ref:t,className:"CollapsibleSection-scroll-list flex flex-1 min-h-0 flex-col overflow-y-auto overflow-x-hidden",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:e}),s&&n.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to bottom, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0}),r&&n.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to top, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0})]})}function wr({title:e,description:t,children:s,open:a,onToggle:r,isLast:o=!1,className:i,id:l,contentMaxHeight:c,footer:d}){const p=x.useId(),m=l??`collapsible-section-${p.replace(/:/g,"")}`,b=R("arrowRight","w-4 h-4 text-text-secondary")??n.jsx(ot,{className:"w-4 h-4 text-text-secondary"}),w=s!=null?c!=null?d!=null?n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:_s}}),n.jsxs("div",{className:"flex flex-col flex-1 min-h-0",style:{maxHeight:c},children:[n.jsx(Gc,{children:s}),n.jsx("div",{className:"shrink-0",children:d})]})]}):n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:_s}}),n.jsx(Bc,{maxHeight:c,children:s})]}):n.jsx("div",{className:"flex flex-1 min-h-0 flex-col",children:s}):void 0;return n.jsxs("div",{className:ke.clsx("flex flex-col justify-center self-stretch border-border-tertiary",!o&&"border-b border-dashed",a?"gap-1.5 py-4":"py-4",i),children:[n.jsxs("button",{type:"button",onClick:r,className:ke.clsx("flex flex-row items-center justify-between self-stretch w-full","bg-transparent border-0 cursor-pointer p-0","hover:opacity-90 transition-opacity focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1 rounded"),"aria-expanded":a,"aria-controls":m,"aria-label":`${a?"收起":"展开"} ${e}`,children:[n.jsx("span",{className:"font-medium text-sm leading-[var(--font-size-sm--line-height)] text-text-secondary",children:e}),n.jsx("span",{className:ke.clsx("inline-flex items-center justify-center p-1.5 rounded-full","hover:bg-fill-tertiary active:bg-fill-secondary"),"aria-hidden":!0,children:n.jsx(te.motion.span,{className:"inline-flex items-center justify-center",animate:{rotate:a?90:0},transition:mr.snappy,children:b})})]}),n.jsx(te.AnimatePresence,{initial:!1,children:a&&n.jsx(te.motion.div,{id:m,className:"overflow-hidden",initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:et.base,ease:tt.emphasized},children:n.jsxs(te.motion.div,{className:"flex flex-col gap-1.5",initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:et.fast,ease:tt.emphasized},children:[t!=null&&n.jsx(te.motion.p,{className:"text-xs leading-[var(--font-size-xs--line-height)] text-text-quaternary w-full max-w-54",initial:{opacity:0},animate:{opacity:1},transition:{duration:et.fast,ease:tt.emphasized},children:t}),w]})},"content")})]})}wr.displayName="CollapsibleSection";function Hc(e,t,{checkForDefaultPrevented:s=!0}={}){return function(r){if(e?.(r),s===!1||!r.defaultPrevented)return t?.(r)}}function Uc(e,t=[]){let s=[];function a(o,i){const l=N.createContext(i),c=s.length;s=[...s,i];const d=m=>{const{scope:b,children:w,...u}=m,g=b?.[e]?.[c]||l,f=N.useMemo(()=>u,Object.values(u));return n.jsx(g.Provider,{value:f,children:w})};d.displayName=o+"Provider";function p(m,b){const w=b?.[e]?.[c]||l,u=N.useContext(w);if(u)return u;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${o}\``)}return[d,p]}const r=()=>{const o=s.map(i=>N.createContext(i));return function(l){const c=l?.[e]||o;return N.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return r.scopeName=e,[a,Vc(r,...t)]}function Vc(...e){const t=e[0];if(e.length===1)return t;const s=()=>{const a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const i=a.reduce((l,{useScope:c,scopeName:d})=>{const m=c(o)[`__scope${d}`];return{...l,...m}},{});return N.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return s.scopeName=t.scopeName,s}var rt=globalThis?.document?N.useLayoutEffect:()=>{},qc=N[" useInsertionEffect ".trim().toString()]||rt;function Wc({prop:e,defaultProp:t,onChange:s=()=>{},caller:a}){const[r,o,i]=Zc({defaultProp:t,onChange:s}),l=e!==void 0,c=l?e:r;{const p=N.useRef(e!==void 0);N.useEffect(()=>{const m=p.current;m!==l&&console.warn(`${a} is changing from ${m?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,a])}const d=N.useCallback(p=>{if(l){const m=Qc(p)?p(e):p;m!==e&&i.current?.(m)}else o(p)},[l,e,o,i]);return[c,d]}function Zc({defaultProp:e,onChange:t}){const[s,a]=N.useState(e),r=N.useRef(s),o=N.useRef(t);return qc(()=>{o.current=t},[t]),N.useEffect(()=>{r.current!==s&&(o.current?.(s),r.current=s)},[s,r]),[s,a,o]}function Qc(e){return typeof e=="function"}function Ps(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Nr(...e){return t=>{let s=!1;const a=e.map(r=>{const o=Ps(r,t);return!s&&typeof o=="function"&&(s=!0),o});if(s)return()=>{for(let r=0;r<a.length;r++){const o=a[r];typeof o=="function"?o():Ps(e[r],null)}}}}function jr(...e){return N.useCallback(Nr(...e),e)}function Yc(e){const t=Kc(e),s=N.forwardRef((a,r)=>{const{children:o,...i}=a,l=N.Children.toArray(o),c=l.find(Jc);if(c){const d=c.props.children,p=l.map(m=>m===c?N.Children.count(d)>1?N.Children.only(null):N.isValidElement(d)?d.props.children:null:m);return n.jsx(t,{...i,ref:r,children:N.isValidElement(d)?N.cloneElement(d,void 0,p):null})}return n.jsx(t,{...i,ref:r,children:o})});return s.displayName=`${e}.Slot`,s}function Kc(e){const t=N.forwardRef((s,a)=>{const{children:r,...o}=s;if(N.isValidElement(r)){const i=td(r),l=ed(o,r.props);return r.type!==N.Fragment&&(l.ref=a?Nr(a,i):i),N.cloneElement(r,l)}return N.Children.count(r)>1?N.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xc=Symbol("radix.slottable");function Jc(e){return N.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xc}function ed(e,t){const s={...t};for(const a in t){const r=e[a],o=t[a];/^on[A-Z]/.test(a)?r&&o?s[a]=(...l)=>{const c=o(...l);return r(...l),c}:r&&(s[a]=r):a==="style"?s[a]={...r,...o}:a==="className"&&(s[a]=[r,o].filter(Boolean).join(" "))}return{...e,...s}}function td(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var nd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gn=nd.reduce((e,t)=>{const s=Yc(`Primitive.${t}`),a=N.forwardRef((r,o)=>{const{asChild:i,...l}=r,c=i?s:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(c,{...l,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function sd(e,t){return N.useReducer((s,a)=>t[s][a]??s,e)}var Cr=e=>{const{present:t,children:s}=e,a=ad(t),r=typeof s=="function"?s({present:a.isPresent}):N.Children.only(s),o=jr(a.ref,rd(r));return typeof s=="function"||a.isPresent?N.cloneElement(r,{ref:o}):null};Cr.displayName="Presence";function ad(e){const[t,s]=N.useState(),a=N.useRef(null),r=N.useRef(e),o=N.useRef("none"),i=e?"mounted":"unmounted",[l,c]=sd(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{const d=Ct(a.current);o.current=l==="mounted"?d:"none"},[l]),rt(()=>{const d=a.current,p=r.current;if(p!==e){const b=o.current,w=Ct(d);e?c("MOUNT"):w==="none"||d?.display==="none"?c("UNMOUNT"):c(p&&b!==w?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),rt(()=>{if(t){let d;const p=t.ownerDocument.defaultView??window,m=w=>{const g=Ct(a.current).includes(CSS.escape(w.animationName));if(w.target===t&&g&&(c("ANIMATION_END"),!r.current)){const f=t.style.animationFillMode;t.style.animationFillMode="forwards",d=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=f)})}},b=w=>{w.target===t&&(o.current=Ct(a.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(d),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:N.useCallback(d=>{a.current=d?getComputedStyle(d):null,s(d)},[])}}function Ct(e){return e?.animationName||"none"}function rd(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning;return s?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,s=t&&"isReactWarning"in t&&t.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var od=N[" useId ".trim().toString()]||(()=>{}),id=0;function ld(e){const[t,s]=N.useState(od());return rt(()=>{s(a=>a??String(id++))},[e]),e||(t?`radix-${t}`:"")}var Ht="Collapsible",[cd]=Uc(Ht),[dd,Hn]=cd(Ht),Sr=N.forwardRef((e,t)=>{const{__scopeCollapsible:s,open:a,defaultOpen:r,disabled:o,onOpenChange:i,...l}=e,[c,d]=Wc({prop:a,defaultProp:r??!1,onChange:i,caller:Ht});return n.jsx(dd,{scope:s,disabled:o,contentId:ld(),open:c,onOpenToggle:N.useCallback(()=>d(p=>!p),[d]),children:n.jsx(Gn.div,{"data-state":qn(c),"data-disabled":o?"":void 0,...l,ref:t})})});Sr.displayName=Ht;var Ir="CollapsibleTrigger",Rr=N.forwardRef((e,t)=>{const{__scopeCollapsible:s,...a}=e,r=Hn(Ir,s);return n.jsx(Gn.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":qn(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...a,ref:t,onClick:Hc(e.onClick,r.onOpenToggle)})});Rr.displayName=Ir;var Un="CollapsibleContent",Vn=N.forwardRef((e,t)=>{const{forceMount:s,...a}=e,r=Hn(Un,e.__scopeCollapsible);return n.jsx(Cr,{present:s||r.open,children:({present:o})=>n.jsx(ud,{...a,ref:t,present:o})})});Vn.displayName=Un;var ud=N.forwardRef((e,t)=>{const{__scopeCollapsible:s,present:a,children:r,...o}=e,i=Hn(Un,s),[l,c]=N.useState(a),d=N.useRef(null),p=jr(t,d),m=N.useRef(0),b=m.current,w=N.useRef(0),u=w.current,g=i.open||l,f=N.useRef(g),k=N.useRef(void 0);return N.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),rt(()=>{const h=d.current;if(h){k.current=k.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const v=h.getBoundingClientRect();m.current=v.height,w.current=v.width,f.current||(h.style.transitionDuration=k.current.transitionDuration,h.style.animationName=k.current.animationName),c(a)}},[i.open,a]),n.jsx(Gn.div,{"data-state":qn(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...o,ref:p,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":u?`${u}px`:void 0,...e.style},children:g&&r})});function qn(e){return e?"open":"closed"}var pd=Sr;const md=pd,fd=Rr,Ar=N.forwardRef(({className:e,...t},s)=>n.jsx(Vn,{ref:s,className:y("overflow-hidden",e),...t}));Ar.displayName=Vn.displayName;const Er=N.forwardRef(function({direction:t="horizontal",className:s,...a},r){return n.jsx(jn.Group,{elementRef:r,orientation:t,className:y("flex h-full w-full",t==="vertical"&&"flex-col",s),...a})});Er.displayName="ResizablePanelGroup";const Tr=N.forwardRef(function({className:t,...s},a){return n.jsx(jn.Panel,{elementRef:a,className:y(t),...s})});Tr.displayName="ResizablePanel";const Lr=N.forwardRef(function({withHandle:t=!1,className:s,...a},r){return n.jsx(jn.Separator,{elementRef:r,className:y("relative flex shrink-0 items-center justify-center bg-border-tertiary","after:absolute after:inset-0 after:transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1","data-[resize-handle-active]:bg-border-secondary","aria-[orientation=vertical]:h-full aria-[orientation=vertical]:w-px aria-[orientation=vertical]:cursor-col-resize","aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:cursor-row-resize","[&[aria-orientation=vertical]>div]:h-6 [&[aria-orientation=vertical]>div]:w-1","[&[aria-orientation=horizontal]>div]:h-1 [&[aria-orientation=horizontal]>div]:w-6",s),...a,children:t&&n.jsx("div",{className:"z-10 shrink-0 rounded-lg bg-border-secondary","data-resize-handle":!0})})});Lr.displayName="ResizableHandle";const be=x.forwardRef(function({children:t,className:s,style:a,maxHeight:r,scrollbarVisibility:o="auto",scrollbarWidth:i=6},l){const d=`Scrollbar-${x.useId().replace(/:/g,"")}`,p=x.useRef(null),[m,b]=x.useState(!1),w=x.useCallback(()=>{o==="auto"&&(b(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{p.current=null,b(!1)},800))},[o]);x.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const u=()=>{if(o==="hidden")return`
|
|
5
|
-
.${
|
|
6
|
-
.${
|
|
7
|
-
`;const
|
|
8
|
-
.${
|
|
9
|
-
.${
|
|
10
|
-
background-color: ${
|
|
4
|
+
`;function vu({maxHeight:e,children:a}){const s=u.useRef(null),[n,r]=u.useState(!1),[o,l]=u.useState(!1),c=u.useCallback(()=>{const d=s.current;if(!d)return;const{scrollTop:m,scrollHeight:p,clientHeight:x}=d;r(m>0),l(m+x<p-1)},[]);return u.useEffect(()=>{const d=s.current;if(!d)return;c();const m=new ResizeObserver(c);return m.observe(d),d.addEventListener("scroll",c,{passive:!0}),()=>{m.disconnect(),d.removeEventListener("scroll",c)}},[e,c]),t.jsxs("div",{className:"relative flex flex-1 min-h-0 flex-col overflow-hidden",children:[t.jsx("div",{ref:s,className:"CollapsibleSection-scroll-list flex flex-1 min-h-0 flex-col overflow-y-auto overflow-x-hidden",style:{maxHeight:e,scrollbarWidth:"none",msOverflowStyle:"none"},children:a}),n&&t.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to bottom, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0}),o&&t.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to top, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0})]})}function wu({children:e}){const a=u.useRef(null),[s,n]=u.useState(!1),[r,o]=u.useState(!1),l=u.useCallback(()=>{const c=a.current;if(!c)return;const{scrollTop:d,scrollHeight:m,clientHeight:p}=c;n(d>0),o(d+p<m-1)},[]);return u.useEffect(()=>{const c=a.current;if(!c)return;l();const d=new ResizeObserver(l);return d.observe(c),c.addEventListener("scroll",l,{passive:!0}),()=>{d.disconnect(),c.removeEventListener("scroll",l)}},[l]),t.jsxs("div",{className:"relative flex flex-1 min-h-0 flex-col overflow-hidden",children:[t.jsx("div",{ref:a,className:"CollapsibleSection-scroll-list flex flex-1 min-h-0 flex-col overflow-y-auto overflow-x-hidden",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:e}),s&&t.jsx("div",{className:"absolute top-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to bottom, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0}),r&&t.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 z-10 pointer-events-none",style:{background:"linear-gradient(to top, var(--color-bg-base) 0%, transparent 100%)"},"aria-hidden":!0})]})}function Ur({title:e,description:a,children:s,open:n,onToggle:r,isLast:o=!1,className:l,id:c,contentMaxHeight:d,footer:m}){const p=u.useId(),x=c??`collapsible-section-${p.replace(/:/g,"")}`,g=N("arrowRight","w-4 h-4 text-text-secondary")??t.jsx(at,{className:"w-4 h-4 text-text-secondary"}),v=s!=null?d!=null?m!=null?t.jsxs(t.Fragment,{children:[t.jsx("style",{dangerouslySetInnerHTML:{__html:tn}}),t.jsxs("div",{className:"flex flex-col flex-1 min-h-0",style:{maxHeight:d},children:[t.jsx(wu,{children:s}),t.jsx("div",{className:"shrink-0",children:m})]})]}):t.jsxs(t.Fragment,{children:[t.jsx("style",{dangerouslySetInnerHTML:{__html:tn}}),t.jsx(vu,{maxHeight:d,children:s})]}):t.jsx("div",{className:"flex flex-1 min-h-0 flex-col",children:s}):void 0;return t.jsxs("div",{className:Le.clsx("flex flex-col justify-center self-stretch border-border-tertiary",!o&&"border-b border-dashed",n?"gap-1.5 py-4":"py-4",l),children:[t.jsxs("button",{type:"button",onClick:r,className:Le.clsx("flex flex-row items-center justify-between self-stretch w-full","bg-transparent border-0 cursor-pointer p-0","hover:opacity-90 transition-opacity focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1 rounded"),"aria-expanded":n,"aria-controls":x,"aria-label":`${n?"收起":"展开"} ${e}`,children:[t.jsx("span",{className:"font-medium text-sm leading-[var(--font-size-sm--line-height)] text-text-secondary",children:e}),t.jsx("span",{className:Le.clsx("inline-flex items-center justify-center p-1.5 rounded-full","hover:bg-fill-tertiary active:bg-fill-secondary"),"aria-hidden":!0,children:t.jsx(V.motion.span,{className:"inline-flex items-center justify-center",animate:{rotate:n?90:0},transition:Er.snappy,children:g})})]}),t.jsx(V.AnimatePresence,{initial:!1,children:n&&t.jsx(V.motion.div,{id:x,className:"overflow-hidden",initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:rt.base,ease:ot.emphasized},children:t.jsxs(V.motion.div,{className:"flex flex-col gap-1.5",initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:rt.fast,ease:ot.emphasized},children:[a!=null&&t.jsx(V.motion.p,{className:"text-xs leading-[var(--font-size-xs--line-height)] text-text-quaternary w-full max-w-54",initial:{opacity:0},animate:{opacity:1},transition:{duration:rt.fast,ease:ot.emphasized},children:a}),v]})},"content")})]})}Ur.displayName="CollapsibleSection";const ku=Ut.Root,ju=Ut.CollapsibleTrigger,Qr=y.forwardRef(({className:e,...a},s)=>t.jsx(Ut.CollapsibleContent,{ref:s,className:i("overflow-hidden",e),...a}));Qr.displayName=Ut.CollapsibleContent.displayName;const Wr=y.forwardRef(function({direction:a="horizontal",className:s,...n},r){return t.jsx(La.Group,{elementRef:r,orientation:a,className:i("flex h-full w-full",a==="vertical"&&"flex-col",s),...n})});Wr.displayName="ResizablePanelGroup";const Zr=y.forwardRef(function({className:a,...s},n){return t.jsx(La.Panel,{elementRef:n,className:i(a),...s})});Zr.displayName="ResizablePanel";const Kr=y.forwardRef(function({withHandle:a=!1,className:s,...n},r){return t.jsx(La.Separator,{elementRef:r,className:i("relative flex shrink-0 items-center justify-center bg-border-tertiary","after:absolute after:inset-0 after:transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1","data-[resize-handle-active]:bg-border-secondary","aria-[orientation=vertical]:h-full aria-[orientation=vertical]:w-px aria-[orientation=vertical]:cursor-col-resize","aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:cursor-row-resize","[&[aria-orientation=vertical]>div]:h-6 [&[aria-orientation=vertical]>div]:w-1","[&[aria-orientation=horizontal]>div]:h-1 [&[aria-orientation=horizontal]>div]:w-6",s),...n,children:a&&t.jsx("div",{className:"z-10 shrink-0 rounded-lg bg-border-secondary","data-resize-handle":!0})})});Kr.displayName="ResizableHandle";const ve=u.forwardRef(function({children:a,className:s,style:n,maxHeight:r,scrollbarVisibility:o="auto",scrollbarWidth:l=6},c){const m=`Scrollbar-${u.useId().replace(/:/g,"")}`,p=u.useRef(null),[x,g]=u.useState(!1),v=u.useCallback(()=>{o==="auto"&&(g(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{p.current=null,g(!1)},800))},[o]);u.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const f=()=>{if(o==="hidden")return`
|
|
5
|
+
.${m}::-webkit-scrollbar { display: none; }
|
|
6
|
+
.${m} { scrollbar-width: none; }
|
|
7
|
+
`;const h=o==="auto",w=o==="always"?"var(--color-fill-secondary)":"transparent",j="var(--color-fill-secondary)",k=h?`
|
|
8
|
+
.${m}:hover::-webkit-scrollbar-thumb,
|
|
9
|
+
.${m}.Scrollbar-isScrolling::-webkit-scrollbar-thumb {
|
|
10
|
+
background-color: ${j};
|
|
11
11
|
}
|
|
12
12
|
`:`
|
|
13
|
-
.${
|
|
14
|
-
background-color: ${
|
|
13
|
+
.${m}:hover::-webkit-scrollbar-thumb {
|
|
14
|
+
background-color: ${j};
|
|
15
15
|
}
|
|
16
16
|
`;return`
|
|
17
|
-
.${
|
|
18
|
-
width: ${
|
|
19
|
-
height: ${
|
|
17
|
+
.${m}::-webkit-scrollbar {
|
|
18
|
+
width: ${l}px !important;
|
|
19
|
+
height: ${l}px !important;
|
|
20
20
|
}
|
|
21
|
-
.${
|
|
22
|
-
.${
|
|
23
|
-
background-color: ${
|
|
24
|
-
border-radius: ${Math.max(
|
|
21
|
+
.${m}::-webkit-scrollbar-track { background: transparent; }
|
|
22
|
+
.${m}::-webkit-scrollbar-thumb {
|
|
23
|
+
background-color: ${w};
|
|
24
|
+
border-radius: ${Math.max(l/2,2)}px;
|
|
25
25
|
min-height: var(--spacing-8);
|
|
26
26
|
transition: background-color 0.2s ease;
|
|
27
27
|
}
|
|
28
|
-
${
|
|
29
|
-
.${
|
|
30
|
-
`},
|
|
28
|
+
${k}
|
|
29
|
+
.${m}::-webkit-scrollbar-corner { background: transparent; }
|
|
30
|
+
`},b={...n,maxHeight:r};return t.jsxs(t.Fragment,{children:[t.jsx("style",{children:f()}),t.jsx("div",{ref:c,className:i(m,"overflow-y-auto",x&&"Scrollbar-isScrolling",s),style:b,onScroll:o==="auto"?v:void 0,children:a})]})});ve.displayName="Scrollbar";const Nu=F.cva("animate-pulse bg-fill-tertiary",{variants:{rounded:{default:"rounded-md",circle:"rounded-full"}},defaultVariants:{rounded:"default"}}),Yr=u.forwardRef(({className:e,rounded:a="default",...s},n)=>t.jsx("div",{ref:n,className:i(Nu({rounded:a}),e),...s}));Yr.displayName="Skeleton";const Xr=u.forwardRef(({text:e,duration:a=2,delay:s=0,repeat:n=!0,repeatDelay:r=.5,startOnView:o=!0,once:l=!1,inViewMargin:c,spread:d=2,color:m,shimmerColor:p,className:x,style:g,...v},f)=>{const b=u.useRef(null),h=V.useInView(b,{once:l,margin:c}),w=o?h:!0,j=u.useMemo(()=>e.length*d,[e,d]),k=m||"var(--color-text-secondary)",T=p||"var(--color-text)",S=u.useMemo(()=>({backgroundImage:`linear-gradient(90deg, transparent calc(50% - ${j}px), ${T}, transparent calc(50% + ${j}px)), linear-gradient(${k}, ${k})`}),[j,T,k]),P=A=>{b.current=A,typeof f=="function"?f(A):f&&(f.current=A)};return t.jsx(V.motion.span,{ref:P,className:i("relative inline-block bg-clip-text text-transparent","bg-[length:250%_100%,auto] bg-no-repeat",x),style:{...S,...g},initial:{backgroundPosition:"100% center"},animate:w?{backgroundPosition:"0% center"}:{backgroundPosition:"100% center"},transition:{repeat:n&&!l?1/0:0,repeatDelay:r,duration:a,delay:s,ease:"linear"},...v,children:e})});Xr.displayName="ShimmeringText";const Ya=u.forwardRef(({className:e,...a},s)=>t.jsx("span",{ref:s,role:"status","aria-label":"Loading",...a,children:t.jsx(ar,{className:i("size-4 animate-spin",e)})}));Ya.displayName="Spinner";const Xa=u.forwardRef(({className:e,...a},s)=>t.jsx("div",{className:"relative w-full overflow-auto scrollbar-auto",children:t.jsx("table",{ref:s,className:i("w-full caption-bottom text-sm",e),...a})}));Xa.displayName="Table";const Ja=u.forwardRef(({className:e,...a},s)=>t.jsx("thead",{ref:s,className:i("[&_tr]:border-b border-border-tertiary",e),...a}));Ja.displayName="TableHeader";const es=u.forwardRef(({className:e,...a},s)=>t.jsx("tbody",{ref:s,className:i("[&_tr:last-child]:border-0",e),...a}));es.displayName="TableBody";const Jr=u.forwardRef(({className:e,...a},s)=>t.jsx("tfoot",{ref:s,className:i("border-t border-border-tertiary bg-fill-tertiary font-medium [&>tr]:last:border-b-0",e),...a}));Jr.displayName="TableFooter";const it=u.forwardRef(({className:e,...a},s)=>t.jsx("tr",{ref:s,className:i("border-b border-border-tertiary transition-colors hover:bg-fill-tertiary data-[state=selected]:bg-fill-tertiary",e),...a}));it.displayName="TableRow";const ts=u.forwardRef(({className:e,...a},s)=>t.jsx("th",{ref:s,className:i("h-10 px-4 text-left align-middle font-medium text-text-secondary [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-0.5",e),...a}));ts.displayName="TableHead";const $t=u.forwardRef(({className:e,...a},s)=>t.jsx("td",{ref:s,className:i("p-4 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-0.5",e),...a}));$t.displayName="TableCell";const eo=u.forwardRef(({className:e,...a},s)=>t.jsx("caption",{ref:s,className:i("mt-4 text-sm text-text-secondary",e),...a}));eo.displayName="TableCaption";const Cu=F.cva("relative flex shrink-0 rounded-full",{variants:{size:{sm:"h-8 w-8",default:"h-10 w-10",lg:"h-12 w-12"}},defaultVariants:{size:"default"}}),to=y.forwardRef(({className:e,size:a="default",...s},n)=>t.jsx(tt.Root,{ref:n,className:i(Cu({size:a}),e),...s}));to.displayName=tt.Root.displayName;const ao=y.forwardRef(({className:e,...a},s)=>t.jsx(tt.Image,{ref:s,className:i("aspect-square h-full w-full overflow-hidden rounded-full object-cover",e),...a}));ao.displayName=tt.Image.displayName;const so=y.forwardRef(({className:e,...a},s)=>t.jsx(tt.Fallback,{ref:s,className:i("flex h-full w-full items-center justify-center overflow-hidden rounded-full bg-fill-tertiary text-sm font-medium text-text",e),...a}));so.displayName=tt.Fallback.displayName;const no=y.forwardRef(({className:e,...a},s)=>t.jsx("span",{ref:s,className:i("absolute bottom-0 right-0 z-10 block h-3 w-3 rounded-full border-2 border-bg-base bg-success",e),...a}));no.displayName="AvatarBadge";const ro=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("flex -space-x-2 [&>*]:ring-2 [&>*]:ring-bg-base",e),...a}));ro.displayName="AvatarGroup";const oo=y.forwardRef(({className:e,...a},s)=>t.jsx("span",{ref:s,className:i("inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full border-2 border-bg-base bg-fill-tertiary text-sm font-medium text-text",e),...a}));oo.displayName="AvatarGroupCount";const io="2px",Sa="8px",Su="8px",an="12px",Iu=`[data-sonner-toaster] [data-sonner-toast][data-styled="true"] { padding-left: ${Sa} !important; padding-right: ${Sa} !important; padding-top: ${an} !important; padding-bottom: ${an} !important; font-size: var(--font-size-sm) !important; line-height: var(--font-size-sm--line-height) !important; }
|
|
31
31
|
[data-sonner-toaster] [data-sonner-toast] [data-content] { flex: 1 !important; min-width: 0 !important; }
|
|
32
|
-
[data-sonner-toaster] [data-sonner-toast] [data-button]:not(:first-of-type) { margin-left: ${hd} !important; }`,zs={className:"text-sm",style:{padding:`var(--spacing-3) ${vn}`,gap:Qr,background:"var(--color-bg-container)",borderColor:"var(--color-border-tertiary)",color:"var(--color-text)"},descriptionClassName:"text-xs text-text-secondary",actionButtonStyle:{borderRadius:"var(--radius)",paddingLeft:"var(--spacing-2)",paddingRight:"var(--spacing-2)",height:"var(--spacing-7)",fontSize:"var(--font-size-xs)"},cancelButtonStyle:{borderRadius:"var(--radius)",paddingLeft:"var(--spacing-2)",paddingRight:"var(--spacing-2)",height:"var(--spacing-7)",fontSize:"var(--font-size-xs)"}},bd=14,vd=3,kd={right:8,left:8,top:24,bottom:24};function Yr({theme:e,toastOptions:t,dataStyle:s,dataTheme:a,icons:r,gap:o=bd,visibleToasts:i=vd,offset:l=kd,...c}){const d=Ke(),p=s!==void 0||a!==void 0?{"data-style":s,"data-theme":a}:d,m=e??(typeof document<"u"&&document.documentElement.getAttribute("data-theme")==="dark"?"dark":"light"),b=n.jsxs(n.Fragment,{children:[n.jsx("style",{dangerouslySetInnerHTML:{__html:yd}}),n.jsx("div",{style:{display:"contents"},...p,children:n.jsx(la.Toaster,{theme:m,closeButton:!0,icons:r,gap:o,visibleToasts:i,offset:l,toastOptions:{...zs,...t,style:{...zs.style,...t?.style}},style:{"--border-radius":"var(--radius-lg)",fontFamily:"inherit","--gap":`${o}px`,"--toast-icon-margin-start":"0","--toast-icon-margin-end":Qr,"--toast-button-margin-start":"auto","--toast-button-margin-end":"0"},...c})})]});return typeof document<"u"?ia.createPortal(b,document.body):null}Yr.displayName="Toaster";const Me="w-[var(--font-size-xl)] h-[var(--font-size-xl)] shrink-0",Ds="w-3.5 h-3.5 shrink-0 text-text-tertiary";function Kr({theme:e,toastOptions:t,dataStyle:s,dataTheme:a,...r}){const o=me(),i=s??o.style,l=a??o.theme,c=R("checkboxCircle",Me)??n.jsx(Bt,{className:Me}),d=R("closeCircle",Me)??n.jsx(za,{className:Me}),p=R("warning",Me)??n.jsx(it,{className:Me}),m=n.jsx(Wn,{className:Me}),b=R("close",Ds)??n.jsx(_e,{className:Ds}),w=x.useMemo(()=>({success:c,error:d,warning:p,loading:m,close:b}),[c,d,p,m,b]),u=x.useMemo(()=>({...t,style:{gap:"2px",...t?.style},classNames:{actionButton:yn({variant:"primary",size:"sm",rounded:"square"}),cancelButton:yn({variant:"tertiary",size:"sm",rounded:"square"}),...t?.classNames}}),[t]);return n.jsx(Yr,{theme:e,dataStyle:i,dataTheme:l,icons:w,toastOptions:u,...r})}Kr.displayName="Toaster";const We="outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none focus-visible:!ring-0 focus-visible:outline-offset-0 focus-visible:!outline-offset-0 focus-visible:ring-offset-0 focus-visible:!ring-offset-0",Xr=ae.Root,wd=ae.Group,Jr=ae.Value,Zn=N.forwardRef(({className:e,children:t,disabled:s,triggerIcon:a,...r},o)=>n.jsxs(ae.Trigger,{ref:o,disabled:s,className:y("flex h-9 w-full items-center justify-between gap-2 whitespace-nowrap rounded-lg border border-border-tertiary bg-bg-container px-3 py-2 text-sm text-text placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",We,e),...r,children:[t,n.jsx(ae.Icon,{asChild:!0,children:n.jsx("span",{className:"pointer-events-none flex shrink-0 text-current [&>svg]:text-current",children:a??n.jsx(ye,{className:"h-[1em] w-[1em] shrink-0"})})})]}));Zn.displayName=ae.Trigger.displayName;const Qn=N.forwardRef(({className:e,scrollUpIcon:t,...s},a)=>n.jsx(ae.ScrollUpButton,{ref:a,className:y("flex cursor-default items-center justify-center py-1",We,e),...s,children:t??n.jsx(An,{className:"h-[1em] w-[1em]"})}));Qn.displayName=ae.ScrollUpButton.displayName;const Yn=N.forwardRef(({className:e,scrollDownIcon:t,...s},a)=>n.jsx(ae.ScrollDownButton,{ref:a,className:y("flex cursor-default items-center justify-center py-1",We,e),...s,children:t??n.jsx(ye,{className:"h-[1em] w-[1em]"})}));Yn.displayName=ae.ScrollDownButton.displayName;const Kn=N.forwardRef(({className:e,children:t,position:s="popper",sideOffset:a=4,dataStyle:r,dataTheme:o,...i},l)=>{const c=Ke(),d=r!==void 0?{"data-style":r,"data-theme":o??c["data-theme"]??""}:c;return n.jsx(ae.Portal,{children:n.jsxs(ae.Content,{ref:l,className:y("relative z-[60] max-h-96 min-w-32 overflow-hidden rounded-lg border border-border-tertiary bg-bg-container p-1 text-text shadow-lg",We,"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),position:s,sideOffset:a,...d,...i,children:[n.jsx(Qn,{}),n.jsx(ae.Viewport,{className:y(We,s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),n.jsx(Yn,{})]})})});Kn.displayName=ae.Content.displayName;const eo=N.forwardRef(({className:e,...t},s)=>n.jsx(ae.Label,{ref:s,className:y("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",e),...t}));eo.displayName=ae.Label.displayName;const nt=N.forwardRef(({className:e,children:t,itemIndicatorIcon:s,...a},r)=>n.jsxs(ae.Item,{ref:r,className:y("relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm pl-3 pr-8 text-sm transition-colors",We,"hover:bg-fill-secondary data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text data-[state=checked]:bg-fill-secondary data-[state=checked]:text-text","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[n.jsx("span",{className:"absolute right-3 flex h-[1em] w-[1em] items-center justify-center",children:n.jsx(ae.ItemIndicator,{children:s??n.jsx(Ie,{className:"h-[1em] w-[1em]"})})}),n.jsx(ae.ItemText,{children:t})]}));nt.displayName=ae.Item.displayName;const to=N.forwardRef(({className:e,...t},s)=>n.jsx(ae.Separator,{ref:s,className:y("my-1 mx-1 h-px bg-border-tertiary",e),...t}));to.displayName=ae.Separator.displayName;const no=N.forwardRef((e,t)=>{const{style:s,theme:a}=me();return n.jsx(Kn,{ref:t,dataStyle:s,dataTheme:a,...e})});no.displayName="SelectContent";const Nd=Be.Root,jd=se.cva("inline-flex items-center justify-center text-text-secondary data-[orientation=horizontal]:flex-row data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch",{variants:{variant:{default:"rounded-lg bg-fill-secondary p-0.5 gap-0.5",line:"gap-6 border-b border-border-tertiary bg-transparent p-0"}},defaultVariants:{variant:"default"}}),Cd=se.cva("inline-flex items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-text cursor-pointer data-[orientation=vertical]:justify-start data-[orientation=vertical]:rounded-md data-[orientation=vertical]:px-3 data-[orientation=vertical]:py-2",{variants:{variant:{default:"rounded-md px-3 py-1.5 data-[state=active]:bg-bg-container data-[state=active]:shadow-sm",line:"rounded-none border-b-2 border-transparent px-1 pb-2 pt-0 data-[state=active]:border-primary data-[state=active]:shadow-none"}},defaultVariants:{variant:"default"}}),so=N.forwardRef(({className:e,variant:t="default",...s},a)=>n.jsx(Be.List,{ref:a,className:y(jd({variant:t}),e),...s}));so.displayName=Be.List.displayName;const ao=N.forwardRef(({className:e,variant:t="default",...s},a)=>n.jsx(Be.Trigger,{ref:a,className:y(Cd({variant:t}),e),...s}));ao.displayName=Be.Trigger.displayName;const ro=N.forwardRef(({className:e,...t},s)=>n.jsx(Be.Content,{ref:s,className:y("mt-2 outline-none ring-0 data-[state=inactive]:hidden","data-[orientation=vertical]:mt-0 data-[orientation=vertical]:ml-2",e),...t}));ro.displayName=Be.Content.displayName;const oo=N.forwardRef(({className:e,...t},s)=>n.jsx(st.Root,{ref:s,className:y("w-full font-sans",e),"data-slot":"collapse",...t}));oo.displayName="Collapse";const io=N.forwardRef(({className:e,...t},s)=>n.jsx(st.Item,{ref:s,className:y("border-b border-border-tertiary last:border-b-0 data-[orientation=horizontal]:border-b-0 data-[orientation=horizontal]:border-r data-[orientation=horizontal]:border-border-tertiary data-[orientation=horizontal]:last:border-r-0",e),"data-slot":"collapse-item",...t}));io.displayName="CollapseItem";const lo=N.forwardRef(({className:e,children:t,chevronIcon:s,...a},r)=>n.jsx(st.Header,{className:"flex font-sans",children:n.jsxs(st.Trigger,{ref:r,className:y("group flex flex-1 items-center justify-between gap-2 py-3 text-left text-sm font-medium text-text font-sans transition-colors outline-none","hover:text-text-secondary focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50","data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:justify-between data-[orientation=horizontal]:py-4 data-[orientation=horizontal]:text-left",e),"data-slot":"collapse-trigger",...a,children:[t,n.jsx("span",{className:"shrink-0 inline-flex transition-transform duration-200 group-data-[state=open]:rotate-180","aria-hidden":!0,children:s??n.jsx(ye,{className:"size-4 text-text-secondary"})})]})}));lo.displayName="CollapseTrigger";const co=N.forwardRef(({className:e,children:t,...s},a)=>n.jsx(st.Content,{ref:a,className:y("overflow-hidden text-sm text-text-secondary font-sans data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down","data-[orientation=horizontal]:data-[state=closed]:animate-accordion-left data-[orientation=horizontal]:data-[state=open]:animate-accordion-right",e),"data-slot":"collapse-content",...s,children:n.jsx("div",{className:"pb-3 pt-0 data-[orientation=horizontal]:pb-0 data-[orientation=horizontal]:pl-0 data-[orientation=horizontal]:pr-3",children:t})}));co.displayName="CollapseContent";function uo({className:e,...t}){return n.jsx("h1",{className:y("font-sans scroll-m-20 text-4xl font-extrabold tracking-tight text-balance text-text",e),...t})}uo.displayName="TypographyH1";function po({className:e,...t}){return n.jsx("h2",{className:y("font-sans scroll-m-20 border-b border-border-tertiary pb-2 text-3xl font-semibold tracking-tight first:mt-0 text-text",e),...t})}po.displayName="TypographyH2";function mo({className:e,...t}){return n.jsx("h3",{className:y("font-sans scroll-m-20 text-2xl font-semibold tracking-tight text-text",e),...t})}mo.displayName="TypographyH3";function fo({className:e,...t}){return n.jsx("h4",{className:y("font-sans scroll-m-20 text-xl font-semibold tracking-tight text-text",e),...t})}fo.displayName="TypographyH4";function go({className:e,...t}){return n.jsx("p",{className:y("font-sans leading-7 text-text [&:not(:first-child)]:mt-6",e),...t})}go.displayName="TypographyP";function xo({className:e,...t}){return n.jsx("blockquote",{className:y("font-sans mt-6 border-l-2 border-border-tertiary pl-6 italic text-text-secondary",e),...t})}xo.displayName="TypographyBlockquote";function ho({className:e,children:t,...s}){return n.jsx(be,{scrollbarVisibility:"auto",className:y("font-sans my-6 w-full",e),children:t})}ho.displayName="TypographyTable";function yo({className:e,...t}){return n.jsx("ul",{className:y("font-sans my-6 ml-6 list-disc text-text [&>li]:mt-2",e),...t})}yo.displayName="TypographyList";function bo({className:e,...t}){return n.jsx("code",{className:y("relative rounded bg-fill-secondary px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold text-text",e),...t})}bo.displayName="TypographyInlineCode";function vo({className:e,...t}){return n.jsx("p",{className:y("font-sans text-xl text-muted-foreground",e),...t})}vo.displayName="TypographyLead";function ko({className:e,...t}){return n.jsx("div",{className:y("font-sans text-lg font-semibold text-text",e),...t})}ko.displayName="TypographyLarge";function wo({className:e,...t}){return n.jsx("small",{className:y("font-sans text-sm font-medium leading-none text-text",e),...t})}wo.displayName="TypographySmall";function No({className:e,...t}){return n.jsx("p",{className:y("font-sans text-sm text-muted-foreground",e),...t})}No.displayName="TypographyMuted";const jo=N.forwardRef(({className:e,...t},s)=>{const a=t.value??t.defaultValue??[50];return n.jsxs(wt.Root,{ref:s,className:y("relative flex w-full touch-none select-none cursor-pointer items-center","data-[orientation=vertical]:flex-col data-[orientation=vertical]:w-auto data-[orientation=vertical]:h-full",e),...t,children:[n.jsx(wt.Track,{className:y("relative grow overflow-hidden rounded-full bg-fill-secondary","data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full","data-[orientation=vertical]:w-2 data-[orientation=vertical]:h-full"),children:n.jsx(wt.Range,{className:y("absolute rounded-full bg-primary","data-[orientation=horizontal]:h-full","data-[orientation=vertical]:w-full")})}),a.map((r,o)=>n.jsx(wt.Thumb,{className:y("block size-5 rounded-full border-2 border-primary bg-bg-base shadow-sm","transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50")},o))]})});jo.displayName="Slider";const Co=({className:e,...t})=>n.jsx("nav",{role:"navigation","aria-label":"pagination",className:y("flex w-full justify-center",e),...t});Co.displayName="Pagination";const So=N.forwardRef(({className:e,...t},s)=>n.jsx("ul",{ref:s,className:y("flex flex-row flex-wrap items-center gap-2",e),...t}));So.displayName="PaginationContent";const Io=N.forwardRef(({className:e,...t},s)=>n.jsx("li",{ref:s,className:y("list-none",e),...t}));Io.displayName="PaginationItem";const Ro=N.forwardRef(({className:e,isActive:t,...s},a)=>n.jsx("a",{ref:a,"aria-current":t?"page":void 0,className:y("inline-flex min-w-9 h-9 items-center justify-center rounded-md border text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",t&&"bg-fill-secondary border-border-tertiary text-text",e),...s}));Ro.displayName="PaginationLink";const Ao=N.forwardRef(({className:e,text:t="Previous",...s},a)=>n.jsxs("a",{ref:a,"aria-label":"Go to previous page",className:y("inline-flex h-9 min-w-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",e),...s,children:[n.jsx(gc,{className:"h-4 w-4 shrink-0"}),n.jsx("span",{className:"hidden sm:inline",children:t})]}));Ao.displayName="PaginationPrevious";const Eo=N.forwardRef(({className:e,text:t="Next",...s},a)=>n.jsxs("a",{ref:a,"aria-label":"Go to next page",className:y("inline-flex h-9 min-w-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",e),...s,children:[n.jsx("span",{className:"hidden sm:inline",children:t}),n.jsx(ot,{className:"h-4 w-4 shrink-0"})]}));Eo.displayName="PaginationNext";const To=({className:e,...t})=>n.jsx("span",{role:"presentation","aria-hidden":!0,className:y("flex h-9 w-9 shrink-0 items-center justify-center text-text-secondary",e),...t,children:"…"});To.displayName="PaginationEllipsis";const Lo=se.cva("inline-flex items-center justify-center gap-1.5 rounded-md border px-2.5 py-0.5 text-xs font-medium transition-colors whitespace-nowrap cursor-pointer group",{variants:{appearance:{filled:"",outline:"bg-transparent"},color:{primary:"",success:"",error:"",warning:"",info:"",link:"",pink:"",purple:"",yellow:"",orange:"",teal:"",blue:"",mauve:"",slate:"",lavender:"",sage:""}},compoundVariants:[{appearance:"filled",color:"primary",className:"border-transparent bg-primary text-text-on-primary hover:bg-primary-hover"},{appearance:"filled",color:"success",className:"border-transparent bg-success-bg text-success border-success-border hover:bg-success-bg-hover"},{appearance:"filled",color:"error",className:"border-transparent bg-error-bg text-error border-error-border hover:bg-error-bg-hover"},{appearance:"filled",color:"warning",className:"border-transparent bg-warning-bg text-warning border-warning-border hover:bg-warning-bg-hover"},{appearance:"filled",color:"info",className:"border-transparent bg-info-bg text-info border-info-border hover:bg-info-bg-hover"},{appearance:"filled",color:"link",className:"border-transparent bg-transparent text-link underline-offset-4 hover:underline hover:text-link"},{appearance:"filled",color:"pink",className:"border-transparent bg-pink-bg text-pink hover:bg-pink-bg-hover"},{appearance:"filled",color:"purple",className:"border-transparent bg-purple-bg text-purple hover:bg-purple-bg-hover"},{appearance:"filled",color:"yellow",className:"border-transparent bg-yellow-bg text-yellow hover:bg-yellow-bg-hover"},{appearance:"filled",color:"orange",className:"border-transparent bg-orange-bg text-orange hover:bg-orange-bg-hover"},{appearance:"filled",color:"teal",className:"border-transparent bg-teal-bg text-teal hover:bg-teal-bg-hover"},{appearance:"filled",color:"blue",className:"border-transparent bg-blue-bg text-blue hover:bg-blue-bg-hover"},{appearance:"filled",color:"mauve",className:"border-transparent bg-mauve-bg text-mauve hover:bg-mauve-bg-hover"},{appearance:"filled",color:"slate",className:"border-transparent bg-slate-bg text-slate hover:bg-slate-bg-hover"},{appearance:"filled",color:"lavender",className:"border-transparent bg-lavender-bg text-lavender hover:bg-lavender-bg-hover"},{appearance:"filled",color:"sage",className:"border-transparent bg-sage-bg text-sage hover:bg-sage-bg-hover"},{appearance:"outline",color:"primary",className:"border-primary-border text-primary hover:bg-primary-bg"},{appearance:"outline",color:"success",className:"border-success-border text-success hover:bg-success-bg"},{appearance:"outline",color:"error",className:"border-error-border text-error hover:bg-error-bg"},{appearance:"outline",color:"warning",className:"border-warning-border text-warning hover:bg-warning-bg"},{appearance:"outline",color:"info",className:"border-info-border text-info hover:bg-info-bg"},{appearance:"outline",color:"link",className:"border-transparent text-link underline-offset-4 hover:underline hover:text-link"},{appearance:"outline",color:"pink",className:"border-pink text-pink hover:bg-pink-bg"},{appearance:"outline",color:"purple",className:"border-purple text-purple hover:bg-purple-bg"},{appearance:"outline",color:"yellow",className:"border-yellow text-yellow hover:bg-yellow-bg"},{appearance:"outline",color:"orange",className:"border-orange text-orange hover:bg-orange-bg"},{appearance:"outline",color:"teal",className:"border-teal text-teal hover:bg-teal-bg"},{appearance:"outline",color:"blue",className:"border-blue text-blue hover:bg-blue-bg"},{appearance:"outline",color:"mauve",className:"border-mauve text-mauve hover:bg-mauve-bg"},{appearance:"outline",color:"slate",className:"border-slate text-slate hover:bg-slate-bg"},{appearance:"outline",color:"lavender",className:"border-lavender text-lavender hover:bg-lavender-bg"},{appearance:"outline",color:"sage",className:"border-sage text-sage hover:bg-sage-bg"}],defaultVariants:{appearance:"filled",color:"primary"}}),Xn=N.forwardRef(({className:e,appearance:t="filled",color:s="primary",closable:a=!1,onClose:r,closeAriaLabel:o="Close tag",closeIcon:i,children:l,onMouseEnter:c,onMouseLeave:d,...p},m)=>{const[b,w]=N.useState(!1),u=a&&typeof r=="function",g=v=>{u&&w(!0),c?.(v)},f=v=>{u&&w(!1),d?.(v)},k=v=>{v.preventDefault(),v.stopPropagation(),r?.(v)},h=v=>{v.key!=="Enter"&&v.key!==" "||(v.preventDefault(),v.stopPropagation(),r?.(v))};return n.jsxs("span",{ref:m,className:y(Lo({appearance:t,color:s}),u&&"gap-0 pr-1.5",e),onMouseEnter:g,onMouseLeave:f,...p,children:[l,u&&n.jsx(te.motion.div,{"aria-hidden":!0,initial:!1,animate:{width:b?16:0,marginLeft:b?2:0,opacity:b?1:0},transition:{duration:.2,ease:[.4,0,.2,1]},className:"flex min-w-0 shrink-0 overflow-hidden",style:{pointerEvents:b?"auto":"none"},children:n.jsx("button",{type:"button","aria-label":o,className:"inline-flex h-4 w-4 cursor-pointer items-center justify-center rounded-sm text-current/80 hover:text-current focus:outline-none",onClick:k,onKeyDown:h,children:i??n.jsx(Aa,{className:"h-3 w-3"})})})]})});Xn.displayName="Tag";const _o=N.forwardRef(({className:e,value:t,max:s=100,...a},r)=>{const o=t!=null?Math.min(s,Math.max(0,t)):void 0;return n.jsx(js.Root,{ref:r,value:o??null,max:s,className:y("relative h-1 w-full overflow-hidden rounded-full bg-fill-secondary",e),style:{height:4},...a,children:n.jsx(js.Indicator,{className:"h-full rounded-full bg-success transition-[width] duration-200 ease-out",style:{width:o!=null?`${o/s*100}%`:"0%"}})})});_o.displayName="Progress";const Sd=124;function Ce({headerIcon:e,headerTitle:t,headerRight:s,children:a,defaultExpanded:r=!0,contentPadding:o="var(--spacing-1.5) var(--spacing-2)",onToggle:i,collapsible:l=!0,footer:c,contentMaxHeight:d,showExpandAllBar:p=!1,maxHeight:m=Sd,titleShimmer:b=!1,className:w}){const[u,g]=x.useState(r),[f,k]=x.useState(!1),[h,v]=x.useState(!1),[S,C]=x.useState(!1),[T,E]=x.useState(0),[I,F]=x.useState(p&&r),[Q,z]=x.useState(!1),G=x.useRef(null);x.useLayoutEffect(()=>{if(!p||!u){C(!1),E(0),F(!1);return}F(!0);const O=()=>{const Z=G.current;if(!Z)return;const V=Z.scrollHeight;E(V),C(V>m),F(!1)},W=requestAnimationFrame(O);let oe=null;return G.current&&(oe=new ResizeObserver(O),oe.observe(G.current)),()=>{cancelAnimationFrame(W),oe?.disconnect()}},[p,u,a,m]);const re=()=>{if(!l)return;const O=!u;z(!0),O&&p&&F(!0),g(O),i?.(O),setTimeout(()=>z(!1),300)},$=l&&(f||e==null)?n.jsx(ye,{className:y("w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 transition-transform duration-200 text-text-secondary",u?"rotate-0":"-rotate-90")}):e,q=p&&u&&!d,ee=q&&(I||S&&!h||Q||!S&&T===0),A=d!=null?`${d}px`:ee?`${m}px`:q&&S&&h&&T>0?`${Math.max(T+50,2e3)}px`:void 0;return n.jsxs("div",{className:y("rounded-md overflow-hidden border border-border-tertiary bg-fill-tertiary relative",w),children:[n.jsxs("div",{className:y("flex flex-row items-center gap-2 px-2 py-1.5 select-none",u&&"border-b border-border-tertiary"),onMouseEnter:()=>l&&k(!0),onMouseLeave:()=>l&&k(!1),children:[n.jsxs("div",{className:y("flex flex-row items-center gap-2 flex-1 min-w-0",l&&"cursor-pointer"),onClick:re,role:l?"button":void 0,"aria-expanded":l?u:void 0,children:[n.jsx("div",{className:"w-[var(--font-size-sm)] h-[var(--font-size-sm)] flex items-center justify-center shrink-0 text-text-secondary [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",children:$}),n.jsx("div",{className:"min-w-0 flex-1 flex items-center text-xs leading-xs text-text-secondary",children:b?n.jsx("span",{className:"animate-pulse",children:t}):t})]}),s!=null&&n.jsx("div",{className:"flex items-center gap-1.5 shrink-0 relative z-10",onClick:O=>O.stopPropagation(),onMouseDown:O=>O.stopPropagation(),children:s})]}),n.jsx(te.AnimatePresence,{initial:!1,children:u&&n.jsxs(te.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:[.2,.8,.2,1]},className:y("overflow-hidden",Q&&"select-none"),children:[q&&n.jsx("div",{ref:G,className:"absolute invisible h-auto w-full pointer-events-none",style:{padding:o},"aria-hidden":!0,children:a}),n.jsxs("div",{className:y("relative overflow-x-hidden bg-bg-base scrollbar-auto",d!=null?"overflow-y-auto":ee?"overflow-y-hidden":"overflow-y-visible",S&&"transition-[max-height] duration-300 ease-in-out"),style:{padding:o,maxHeight:A},children:[a,q&&S&&T>m&&n.jsx("div",{className:y("absolute bottom-0 left-0 right-0 pointer-events-none h-[25px] bg-gradient-to-b from-transparent to-[var(--color-bg-base)] transition-opacity duration-300",h?"opacity-0":"opacity-100")})]}),q&&S&&n.jsx("button",{type:"button",className:"w-full h-4 flex items-center justify-center bg-bg-base border-0 cursor-pointer text-text-secondary hover:text-text transition-colors",onClick:O=>{O.stopPropagation(),z(!0),v(W=>!W),setTimeout(()=>z(!1),300)},"aria-label":h?"收起":"展开全部",children:n.jsx(ye,{className:y("w-[var(--font-size-sm)] h-[var(--font-size-sm)] transition-transform duration-200",h?"rotate-180":"rotate-0")})})]})}),c!=null&&n.jsx("div",{className:"flex flex-row items-center gap-2 px-2 py-1.5 border-t border-border-tertiary",children:c})]})}Ce.displayName="CollapsibleCard";const Id="w-4 h-4",Po=x.forwardRef(({items:e,selectedId:t,onItemClick:s,width:a="w-52",className:r,moreIcon:o,...i},l)=>{const[c,d]=x.useState(null),p="flex flex-col gap-1.5 rounded-md bg-transparent",m=o??n.jsx(Da,{className:Id});return n.jsx("div",{ref:l,className:y(p,a,r),...i,children:e.map(b=>{const w=t===b.id,u=b.disabled,g=c===b.id;return n.jsxs("div",{className:y("group flex items-center gap-2 py-1 px-2 rounded-md text-sm leading-sm transition-colors","focus-within:outline-none min-w-0",u&&"opacity-50 cursor-not-allowed",!u&&"cursor-pointer",w?"bg-fill-secondary text-text":"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text"),children:[n.jsx("button",{onClick:()=>{u||s?.(b),d(null)},disabled:u,className:"flex-1 text-left truncate min-w-0 outline-none bg-transparent border-none p-0 cursor-pointer",children:b.label}),b.actions&&b.actions.length>0?n.jsx("div",{onClick:f=>f.stopPropagation(),children:n.jsxs(Oe,{open:g,onOpenChange:f=>{d(f?b.id:null)},children:[n.jsx($e,{asChild:!0,children:n.jsx("button",{className:y("flex items-center justify-center p-1 rounded outline-none transition-all duration-200 relative z-10 cursor-pointer hover:bg-fill-primary"),style:{pointerEvents:"auto"},onClick:f=>f.stopPropagation(),onMouseDown:f=>f.stopPropagation(),children:n.jsx("span",{className:y("transition-opacity pointer-events-none flex items-center justify-center",w?"opacity-100":"opacity-0 group-hover:opacity-100"),children:b.icon??n.jsx("span",{className:y("w-4 h-4 inline-flex items-center justify-center",w?"text-text":"text-text-secondary"),children:m})})})}),n.jsx(Te,{align:"end",children:b.actions.map(f=>n.jsxs(we,{variant:f.destructive?"destructive":"default",onClick:k=>{k.stopPropagation(),d(null),f.onClick?.()},children:[f.icon&&n.jsx("span",{className:"mr-2 w-4 h-4 flex items-center justify-center",children:f.icon}),f.label]},f.id))})]})}):n.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",onClick:f=>f.stopPropagation(),children:b.icon?n.jsx("span",{className:y("transition-opacity pointer-events-none",w?"opacity-100":"opacity-0 group-hover:opacity-100"),children:b.icon}):n.jsx("span",{className:y("w-4 h-4 inline-flex items-center justify-center transition-opacity pointer-events-none",w?"opacity-100 text-text":"opacity-0 group-hover:opacity-100 text-text-secondary"),children:m})})]},b.id)})})});Po.displayName="SidebarMenu";const Rd="w-4 h-4",Fo=x.forwardRef((e,t)=>{const s=R("more",Rd);return n.jsx(Po,{ref:t,moreIcon:s,...e})});Fo.displayName="SidebarMenu";const Ad=se.cva("inline-flex items-center justify-center gap-2 font-medium transition-colors duration-200 focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0 group text-sm leading-sm",{variants:{size:{sm:"h-7 px-2 text-xs leading-xs",md:"h-9 px-3 text-sm leading-sm",lg:"h-11 px-4 text-base leading-base"},rounded:{square:"rounded",pill:"rounded-full"},selected:{true:"bg-info-bg text-info",false:"bg-fill-tertiary text-text hover:bg-fill-secondary"}},defaultVariants:{size:"md",rounded:"square",selected:!1}}),St="w-4 h-4",Pt=x.forwardRef(({label:e,selected:t=!1,disabled:s=!1,multipleFolders:a=!1,onClear:r,size:o="md",rounded:i="square",className:l,onMouseEnter:c,onMouseLeave:d,folderIcon:p,folderFillIcon:m,arrowRightIcon:b,closeIcon:w,...u},g)=>{const[f,k]=x.useState(!1),h=t&&!s&&!a&&typeof r=="function",v=y(Ad({size:o,rounded:i,selected:t,className:l}),s&&"opacity-50 cursor-not-allowed",!s&&"cursor-pointer"),S=z=>{h&&k(!0),c?.(z)},C=z=>{h&&k(!1),d?.(z)},T=p??n.jsx(La,{className:St}),E=m??n.jsx(_a,{className:St}),I=b??n.jsx(ot,{className:St}),F=w??n.jsx(_e,{className:St}),Q=n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0 relative text-current",children:t?E:T}),n.jsx("span",{children:e}),a&&n.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:I}),h?n.jsx(te.motion.span,{role:"button",tabIndex:0,"aria-label":"清空文件夹选择",className:"flex items-center justify-center flex-shrink-0 text-info hover:text-info-hover cursor-pointer overflow-hidden",initial:!1,animate:{width:f?20:0,opacity:f?1:0,marginLeft:f?2:0},transition:{duration:.2,ease:"easeOut"},style:{pointerEvents:f?"auto":"none",minWidth:0},onPointerDown:z=>{z.preventDefault(),z.stopPropagation()},onClick:z=>{z.preventDefault(),z.stopPropagation(),r()},onKeyDown:z=>{(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),z.stopPropagation(),r())},children:n.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:F})}):null]});return n.jsx("button",{ref:g,className:v,disabled:s,onMouseEnter:S,onMouseLeave:C,...u,children:Q})});Pt.displayName="FolderButton";const It="w-4 h-4",zo=x.forwardRef((e,t)=>{const s=R("folder",It),a=R("folderFill",It),r=R("arrowRight",It),o=R("close",It);return n.jsx(Pt,{ref:t,folderIcon:s,folderFillIcon:a,arrowRightIcon:r,closeIcon:o,...e})});zo.displayName="FolderButton";const Do=x.createContext(null);function Pe(){const e=x.useContext(Do);if(!e)throw new Error("ChatInput compound components must be used within ChatInput.Root");return e}function Ut({value:e,onChange:t,onSend:s,placeholder:a="What can I help you with today?",disabled:r=!1,maxRows:o=6,form:i,sendButtonStatus:l="normal",showFooter:c=!0,showFolderButton:d=!0,folderButtonLabel:p="Work in a Folder",onFolderButtonClick:m,onFolderClear:b,folderPermission:w,showMoreButton:u=!0,onMoreButtonClick:g,footerLeftConfig:f,showGenerationStatus:k=!1,generationStatus:h,attachments:v,addLargeIcon:S,folderIcon:C,folderOpenIcon:T,historyIcon:E,arrowDownIcon:I,subMenuArrowIcon:F,folderFillIcon:Q,closeIcon:z,dataStyle:G,dataTheme:re,className:M,children:$,...q}){const[ee,A]=x.useState(""),O=x.useRef(null),[W,oe]=x.useState(!1),Z=e!==void 0,V=Z?e:ee,ie=x.useCallback(P=>{O.current=P},[]),he=x.useCallback(P=>{Z||A(P),t?.(P)},[Z,t]),fe=x.useCallback(()=>{const H=(O.current?.value??V??"").trim();!H||r||!s||(s(H),Z||A(""),O.current&&(O.current.style.height="auto"))},[V,r,s,Z]),Y=x.useCallback(P=>{P.key==="Enter"&&!P.shiftKey&&!P.nativeEvent.isComposing&&(P.preventDefault(),fe()),q.onKeyDown?.(P)},[fe,q]),Re=x.useCallback(()=>oe(!0),[]),ge=x.useCallback(()=>{oe(!1),b?.()},[b]),Ae=V.trim().length>0&&!r,D={dataStyle:G,dataTheme:re,value:V,onChange:he,onSend:s,disabled:r,form:i,textareaRef:O,setTextareaRef:ie,handleSend:fe,handleKeyDown:Y,sendButtonStatus:l,canSend:Ae,hasFolderSelected:W,setHasFolderSelected:oe,handleFolderSelect:Re,handleFolderClear:ge,folderPermission:w,footerLeftConfig:f,showFolderButton:d,showMoreButton:u,folderButtonLabel:p,onFolderButtonClick:m,onFolderClear:b,onMoreButtonClick:g,addLargeIcon:S,folderIcon:C,folderOpenIcon:T,historyIcon:E,arrowDownIcon:I,subMenuArrowIcon:F,folderFillIcon:Q,closeIcon:z,showGenerationStatus:k,generationStatus:h,attachments:v,showFooter:c};return n.jsx(Do.Provider,{value:D,children:$})}Ut.displayName="ChatInputRootProvider";const Ed=se.cva("inline-flex items-center justify-center rounded-full p-1.5 transition-colors duration-200 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer transition-transform active:scale-95 active:translate-y-px",{variants:{status:{normal:"SendButton-send bg-bg-highlight hover:bg-bg-highlight-hover active:opacity-80",generating:"bg-primary hover:bg-primary-hover active:opacity-80",recording:"SendButton-send bg-bg-highlight hover:bg-bg-highlight-hover active:opacity-80",stopRecording:"bg-error-bg hover:bg-error-bg-hover active:opacity-80"}},defaultVariants:{status:"normal"}}),Td=se.cva("inline-flex h-4 w-4 shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",{variants:{status:{normal:"text-text-on-primary",generating:"text-text-on-primary",recording:"text-text-on-primary",stopRecording:"text-error"}},defaultVariants:{status:"normal"}}),mn="w-4 h-4",Jn=x.forwardRef(({status:e="normal",disabled:t=!1,className:s,sendIcon:a,stopIcon:r,micIcon:o,...i},l)=>{const m=e==="normal"?a??n.jsx(hc,{className:mn}):e==="generating"||e==="stopRecording"?r??n.jsx(yc,{className:mn}):o??n.jsx(bc,{className:mn});return n.jsx("button",{ref:l,type:"button",className:Ed({status:e,className:s}),disabled:t,...i,children:n.jsx("span",{className:Td({status:e}),children:m})})});Jn.displayName="SendButton";function Ld({content:e}){const t=e.replace(/\.+$/,"");return n.jsxs("span",{className:"text-sm leading-sm font-medium text-primary-active",children:[t,n.jsx("span",{className:"status-dots-anim",style:{fontFamily:"inherit"},children:"..."})]})}const es=({children:e,status:t,icon:s,time:a,className:r=""})=>{const o=t??(typeof e=="string"?e:null);if(!(o!=null||e!=null)&&!s&&!a)return null;const l=y("flex w-full h-9 items-center gap-2 rounded-t-xl bg-primary-bg px-3 text-sm leading-sm",r);return n.jsxs("div",{className:l,children:[n.jsx("style",{children:`
|
|
32
|
+
[data-sonner-toaster] [data-sonner-toast] [data-button]:not(:first-of-type) { margin-left: ${Su} !important; }`,sn={className:"text-sm",style:{padding:`var(--spacing-3) ${Sa}`,gap:io,background:"var(--color-bg-container)",borderColor:"var(--color-border-tertiary)",color:"var(--color-text)"},descriptionClassName:"text-xs text-text-secondary",actionButtonStyle:{borderRadius:"var(--radius)",paddingLeft:"var(--spacing-2)",paddingRight:"var(--spacing-2)",height:"var(--spacing-7)",fontSize:"var(--font-size-xs)"},cancelButtonStyle:{borderRadius:"var(--radius)",paddingLeft:"var(--spacing-2)",paddingRight:"var(--spacing-2)",height:"var(--spacing-7)",fontSize:"var(--font-size-xs)"}},Ru=14,zu=3,Tu={right:8,left:8,top:24,bottom:24};function lo({theme:e,toastOptions:a,dataStyle:s,dataTheme:n,icons:r,gap:o=Ru,visibleToasts:l=zu,offset:c=Tu,...d}){const m=ge(),p=s!==void 0||n!==void 0?{"data-style":s,"data-theme":n}:m,x=e??(typeof document<"u"&&document.documentElement.getAttribute("data-theme")==="dark"?"dark":"light"),g=t.jsxs(t.Fragment,{children:[t.jsx("style",{dangerouslySetInnerHTML:{__html:Iu}}),t.jsx("div",{style:{display:"contents"},...p,children:t.jsx(Sn.Toaster,{theme:x,closeButton:!0,icons:r,gap:o,visibleToasts:l,offset:c,toastOptions:{...sn,...a,style:{...sn.style,...a?.style}},style:{"--border-radius":"var(--radius-lg)",fontFamily:"inherit","--gap":`${o}px`,"--toast-icon-margin-start":"0","--toast-icon-margin-end":io,"--toast-button-margin-start":"auto","--toast-button-margin-end":"0"},...d})})]});return typeof document<"u"?Cn.createPortal(g,document.body):null}lo.displayName="Toaster";const Fe="w-[var(--font-size-xl)] h-[var(--font-size-xl)] shrink-0",nn="w-3.5 h-3.5 shrink-0 text-text-tertiary";function co({theme:e,toastOptions:a,dataStyle:s,dataTheme:n,...r}){const o=de(),l=s??o.style,c=n??o.theme,d=N("checkboxCircle",Fe),m=N("closeCircle",Fe),p=N("warning",Fe),x=N("close",nn),g=u.useMemo(()=>({success:d??t.jsx(Qt,{className:Fe}),error:m??t.jsx(ir,{className:Fe}),warning:p??t.jsx(mt,{className:Fe}),loading:t.jsx(Ya,{className:Fe}),close:x??t.jsx(Ce,{className:nn})}),[d,m,p,x]),v=u.useMemo(()=>({...a,style:{gap:"2px",...a?.style},classNames:{actionButton:ut({variant:"primary",size:"sm",rounded:"square"}),cancelButton:ut({variant:"tertiary",size:"sm",rounded:"square"}),...a?.classNames}}),[a]);return t.jsx(lo,{theme:e,dataStyle:l,dataTheme:c,icons:g,toastOptions:v,...r})}co.displayName="Toaster";const Xe="outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:!outline-none focus-visible:!ring-0 focus-visible:outline-offset-0 focus-visible:!outline-offset-0 focus-visible:ring-offset-0 focus-visible:!ring-offset-0",uo=oe.Root,Lu=oe.Group,mo=oe.Value,as=y.forwardRef(({className:e,children:a,disabled:s,triggerIcon:n,...r},o)=>t.jsxs(oe.Trigger,{ref:o,disabled:s,className:i("flex h-9 w-full items-center justify-between gap-2 whitespace-nowrap rounded-lg border border-border-tertiary bg-bg-container px-3 py-2 text-sm text-text placeholder:text-muted-foreground transition-colors disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","focus:border-border-secondary focus-visible:border-border-secondary data-[state=open]:border-border-secondary",Xe,e),...r,children:[a,t.jsx(oe.Icon,{asChild:!0,children:t.jsx("span",{className:"pointer-events-none flex shrink-0 text-current [&>svg]:text-current",children:n??t.jsx(be,{className:"h-[1em] w-[1em] shrink-0"})})})]}));as.displayName=oe.Trigger.displayName;const ss=y.forwardRef(({className:e,scrollUpIcon:a,...s},n)=>t.jsx(oe.ScrollUpButton,{ref:n,className:i("flex cursor-default items-center justify-center py-1",Xe,e),...s,children:a??t.jsx(Ea,{className:"h-[1em] w-[1em]"})}));ss.displayName=oe.ScrollUpButton.displayName;const ns=y.forwardRef(({className:e,scrollDownIcon:a,...s},n)=>t.jsx(oe.ScrollDownButton,{ref:n,className:i("flex cursor-default items-center justify-center py-1",Xe,e),...s,children:a??t.jsx(be,{className:"h-[1em] w-[1em]"})}));ns.displayName=oe.ScrollDownButton.displayName;const rs=y.forwardRef(({className:e,children:a,position:s="popper",sideOffset:n=4,dataStyle:r,dataTheme:o,...l},c)=>{const d=ge(),m=r!==void 0?{"data-style":r,"data-theme":o??d["data-theme"]??""}:d;return t.jsx(oe.Portal,{children:t.jsxs(oe.Content,{ref:c,className:i("relative z-[60] max-h-96 min-w-32 overflow-hidden rounded-lg border border-border-tertiary bg-bg-container p-1 text-text shadow-lg",Xe,"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),position:s,sideOffset:n,...m,...l,children:[t.jsx(ss,{}),t.jsx(oe.Viewport,{className:i(Xe,s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),t.jsx(ns,{})]})})});rs.displayName=oe.Content.displayName;const po=y.forwardRef(({className:e,...a},s)=>t.jsx(oe.Label,{ref:s,className:i("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",e),...a}));po.displayName=oe.Label.displayName;const lt=y.forwardRef(({className:e,children:a,itemIndicatorIcon:s,...n},r)=>t.jsxs(oe.Item,{ref:r,className:i("relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm pl-3 pr-8 text-sm transition-colors",Xe,"hover:bg-fill-secondary data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text data-[state=checked]:bg-fill-secondary data-[state=checked]:text-text","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[t.jsx("span",{className:"absolute right-3 flex h-[1em] w-[1em] items-center justify-center",children:t.jsx(oe.ItemIndicator,{children:s??t.jsx(ye,{className:"h-[1em] w-[1em]"})})}),t.jsx(oe.ItemText,{children:a})]}));lt.displayName=oe.Item.displayName;const xo=y.forwardRef(({className:e,...a},s)=>t.jsx(oe.Separator,{ref:s,className:i("my-1 mx-1 h-px bg-border-tertiary",e),...a}));xo.displayName=oe.Separator.displayName;const fo=y.forwardRef((e,a)=>{const{style:s,theme:n}=de();return t.jsx(rs,{ref:a,dataStyle:s,dataTheme:n,...e})});fo.displayName="SelectContent";const Mu=Ve.Root,Pu=F.cva("inline-flex items-center justify-center text-text-secondary data-[orientation=horizontal]:flex-row data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch",{variants:{variant:{default:"rounded-lg bg-fill-secondary p-0.5 gap-0.5",line:"gap-6 border-b border-border-tertiary bg-transparent p-0"}},defaultVariants:{variant:"default"}}),Au=F.cva("inline-flex items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-text cursor-pointer data-[orientation=vertical]:justify-start data-[orientation=vertical]:rounded-md data-[orientation=vertical]:px-3 data-[orientation=vertical]:py-2",{variants:{variant:{default:"rounded-md px-3 py-1.5 data-[state=active]:bg-bg-container data-[state=active]:shadow-sm",line:"rounded-none border-b-2 border-transparent px-1 pb-2 pt-0 data-[state=active]:border-primary data-[state=active]:shadow-none"}},defaultVariants:{variant:"default"}}),ho=y.forwardRef(({className:e,variant:a="default",...s},n)=>t.jsx(Ve.List,{ref:n,className:i(Pu({variant:a}),e),...s}));ho.displayName=Ve.List.displayName;const go=y.forwardRef(({className:e,variant:a="default",...s},n)=>t.jsx(Ve.Trigger,{ref:n,className:i(Au({variant:a}),e),...s}));go.displayName=Ve.Trigger.displayName;const yo=y.forwardRef(({className:e,...a},s)=>t.jsx(Ve.Content,{ref:s,className:i("mt-2 outline-none ring-0 data-[state=inactive]:hidden","data-[orientation=vertical]:mt-0 data-[orientation=vertical]:ml-2",e),...a}));yo.displayName=Ve.Content.displayName;const bo=y.forwardRef(({className:e,...a},s)=>t.jsx(dt.Root,{ref:s,className:i("w-full font-sans",e),"data-slot":"collapse",...a}));bo.displayName="Collapse";const vo=y.forwardRef(({className:e,...a},s)=>t.jsx(dt.Item,{ref:s,className:i("border-b border-border-tertiary last:border-b-0 data-[orientation=horizontal]:border-b-0 data-[orientation=horizontal]:border-r data-[orientation=horizontal]:border-border-tertiary data-[orientation=horizontal]:last:border-r-0",e),"data-slot":"collapse-item",...a}));vo.displayName="CollapseItem";const wo=y.forwardRef(({className:e,children:a,chevronIcon:s,...n},r)=>t.jsx(dt.Header,{className:"flex font-sans",children:t.jsxs(dt.Trigger,{ref:r,className:i("group flex flex-1 items-center justify-between gap-2 py-3 text-left text-sm font-medium text-text font-sans transition-colors outline-none","hover:text-text-secondary focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50","data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:justify-between data-[orientation=horizontal]:py-4 data-[orientation=horizontal]:text-left",e),"data-slot":"collapse-trigger",...n,children:[a,t.jsx("span",{className:"shrink-0 inline-flex transition-transform duration-200 group-data-[state=open]:rotate-180","aria-hidden":!0,children:s??t.jsx(be,{className:"size-4 text-text-secondary"})})]})}));wo.displayName="CollapseTrigger";const ko=y.forwardRef(({className:e,children:a,...s},n)=>t.jsx(dt.Content,{ref:n,className:i("overflow-hidden text-sm text-text-secondary font-sans data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down","data-[orientation=horizontal]:data-[state=closed]:animate-accordion-left data-[orientation=horizontal]:data-[state=open]:animate-accordion-right",e),"data-slot":"collapse-content",...s,children:t.jsx("div",{className:"pb-3 pt-0 data-[orientation=horizontal]:pb-0 data-[orientation=horizontal]:pl-0 data-[orientation=horizontal]:pr-3",children:a})}));ko.displayName="CollapseContent";function jo({className:e,...a}){return t.jsx("h1",{className:i("font-sans scroll-m-20 text-4xl font-extrabold tracking-tight text-balance text-text",e),...a})}jo.displayName="TypographyH1";function No({className:e,...a}){return t.jsx("h2",{className:i("font-sans scroll-m-20 border-b border-border-tertiary pb-2 text-3xl font-semibold tracking-tight first:mt-0 text-text",e),...a})}No.displayName="TypographyH2";function Co({className:e,...a}){return t.jsx("h3",{className:i("font-sans scroll-m-20 text-2xl font-semibold tracking-tight text-text",e),...a})}Co.displayName="TypographyH3";function So({className:e,...a}){return t.jsx("h4",{className:i("font-sans scroll-m-20 text-xl font-semibold tracking-tight text-text",e),...a})}So.displayName="TypographyH4";function Io({className:e,...a}){return t.jsx("p",{className:i("font-sans leading-7 text-text [&:not(:first-child)]:mt-6",e),...a})}Io.displayName="TypographyP";function Ro({className:e,...a}){return t.jsx("blockquote",{className:i("font-sans mt-6 border-l-2 border-border-tertiary pl-6 italic text-text-secondary",e),...a})}Ro.displayName="TypographyBlockquote";function zo({className:e,children:a,...s}){return t.jsx(ve,{scrollbarVisibility:"auto",className:i("font-sans my-6 w-full",e),children:a})}zo.displayName="TypographyTable";function To({className:e,...a}){return t.jsx("ul",{className:i("font-sans my-6 ml-6 list-disc text-text [&>li]:mt-2",e),...a})}To.displayName="TypographyList";function Lo({className:e,...a}){return t.jsx("code",{className:i("relative rounded bg-fill-secondary px-1 py-0.5 font-mono text-sm font-semibold text-text",e),...a})}Lo.displayName="TypographyInlineCode";function Mo({className:e,...a}){return t.jsx("p",{className:i("font-sans text-xl text-muted-foreground",e),...a})}Mo.displayName="TypographyLead";function Po({className:e,...a}){return t.jsx("div",{className:i("font-sans text-lg font-semibold text-text",e),...a})}Po.displayName="TypographyLarge";function Ao({className:e,...a}){return t.jsx("small",{className:i("font-sans text-sm font-medium leading-none text-text",e),...a})}Ao.displayName="TypographySmall";function Do({className:e,...a}){return t.jsx("p",{className:i("font-sans text-sm text-muted-foreground",e),...a})}Do.displayName="TypographyMuted";const _o=y.forwardRef(({className:e,...a},s)=>{const n=a.value??a.defaultValue??[50];return t.jsxs(Rt.Root,{ref:s,className:i("relative flex w-full touch-none select-none cursor-pointer items-center","data-[orientation=vertical]:flex-col data-[orientation=vertical]:w-auto data-[orientation=vertical]:h-full",e),...a,children:[t.jsx(Rt.Track,{className:i("relative grow overflow-hidden rounded-full bg-fill-secondary","data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full","data-[orientation=vertical]:w-2 data-[orientation=vertical]:h-full"),children:t.jsx(Rt.Range,{className:i("absolute rounded-full bg-primary","data-[orientation=horizontal]:h-full","data-[orientation=vertical]:w-full")})}),n.map((r,o)=>t.jsx(Rt.Thumb,{className:i("block size-5 rounded-full border-2 border-primary bg-bg-base shadow-sm","transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50")},o))]})});_o.displayName="Slider";const Eo=({className:e,...a})=>t.jsx("nav",{role:"navigation","aria-label":"pagination",className:i("flex w-full justify-center",e),...a});Eo.displayName="Pagination";const Fo=y.forwardRef(({className:e,...a},s)=>t.jsx("ul",{ref:s,className:i("flex flex-row flex-wrap items-center gap-2",e),...a}));Fo.displayName="PaginationContent";const $o=y.forwardRef(({className:e,...a},s)=>t.jsx("li",{ref:s,className:i("list-none",e),...a}));$o.displayName="PaginationItem";const Oo=y.forwardRef(({className:e,isActive:a,...s},n)=>t.jsx("a",{ref:n,"aria-current":a?"page":void 0,className:i("inline-flex min-w-9 h-9 items-center justify-center rounded-md border text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",a&&"bg-fill-secondary border-border-tertiary text-text",e),...s}));Oo.displayName="PaginationLink";const Bo=y.forwardRef(({className:e,text:a="Previous",...s},n)=>t.jsxs("a",{ref:n,"aria-label":"Go to previous page",className:i("inline-flex h-9 min-w-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",e),...s,children:[t.jsx(Wd,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"hidden sm:inline",children:a})]}));Bo.displayName="PaginationPrevious";const Vo=y.forwardRef(({className:e,text:a="Next",...s},n)=>t.jsxs("a",{ref:n,"aria-label":"Go to next page",className:i("inline-flex h-9 min-w-9 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium transition-colors","border-border-tertiary bg-bg-container text-text","hover:bg-fill-secondary hover:text-text hover:border-border-tertiary","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",e),...s,children:[t.jsx("span",{className:"hidden sm:inline",children:a}),t.jsx(at,{className:"h-4 w-4 shrink-0"})]}));Vo.displayName="PaginationNext";const Ho=({className:e,...a})=>t.jsx("span",{role:"presentation","aria-hidden":!0,className:i("flex h-9 w-9 shrink-0 items-center justify-center text-text-secondary",e),...a,children:"…"});Ho.displayName="PaginationEllipsis";const Go=F.cva("inline-flex items-center justify-center gap-1.5 rounded-md border px-2.5 py-0.5 text-xs font-medium transition-colors whitespace-nowrap cursor-pointer group",{variants:{appearance:{filled:"",outline:"bg-transparent"},color:{primary:"",success:"",error:"",warning:"",info:"",link:"",pink:"",purple:"",yellow:"",orange:"",teal:"",blue:"",mauve:"",slate:"",lavender:"",sage:""}},compoundVariants:[{appearance:"filled",color:"primary",className:"border-transparent bg-primary text-text-on-primary hover:bg-primary-hover"},{appearance:"filled",color:"success",className:"border-transparent bg-success-bg text-success border-success-border hover:bg-success-bg-hover"},{appearance:"filled",color:"error",className:"border-transparent bg-error-bg text-error border-error-border hover:bg-error-bg-hover"},{appearance:"filled",color:"warning",className:"border-transparent bg-warning-bg text-warning border-warning-border hover:bg-warning-bg-hover"},{appearance:"filled",color:"info",className:"border-transparent bg-info-bg text-info border-info-border hover:bg-info-bg-hover"},{appearance:"filled",color:"link",className:"border-transparent bg-transparent text-link underline-offset-4 hover:underline hover:text-link"},{appearance:"filled",color:"pink",className:"border-transparent bg-pink-bg text-pink hover:bg-pink-bg-hover"},{appearance:"filled",color:"purple",className:"border-transparent bg-purple-bg text-purple hover:bg-purple-bg-hover"},{appearance:"filled",color:"yellow",className:"border-transparent bg-yellow-bg text-yellow hover:bg-yellow-bg-hover"},{appearance:"filled",color:"orange",className:"border-transparent bg-orange-bg text-orange hover:bg-orange-bg-hover"},{appearance:"filled",color:"teal",className:"border-transparent bg-teal-bg text-teal hover:bg-teal-bg-hover"},{appearance:"filled",color:"blue",className:"border-transparent bg-blue-bg text-blue hover:bg-blue-bg-hover"},{appearance:"filled",color:"mauve",className:"border-transparent bg-mauve-bg text-mauve hover:bg-mauve-bg-hover"},{appearance:"filled",color:"slate",className:"border-transparent bg-slate-bg text-slate hover:bg-slate-bg-hover"},{appearance:"filled",color:"lavender",className:"border-transparent bg-lavender-bg text-lavender hover:bg-lavender-bg-hover"},{appearance:"filled",color:"sage",className:"border-transparent bg-sage-bg text-sage hover:bg-sage-bg-hover"},{appearance:"outline",color:"primary",className:"border-primary-border text-primary hover:bg-primary-bg"},{appearance:"outline",color:"success",className:"border-success-border text-success hover:bg-success-bg"},{appearance:"outline",color:"error",className:"border-error-border text-error hover:bg-error-bg"},{appearance:"outline",color:"warning",className:"border-warning-border text-warning hover:bg-warning-bg"},{appearance:"outline",color:"info",className:"border-info-border text-info hover:bg-info-bg"},{appearance:"outline",color:"link",className:"border-transparent text-link underline-offset-4 hover:underline hover:text-link"},{appearance:"outline",color:"pink",className:"border-pink text-pink hover:bg-pink-bg"},{appearance:"outline",color:"purple",className:"border-purple text-purple hover:bg-purple-bg"},{appearance:"outline",color:"yellow",className:"border-yellow text-yellow hover:bg-yellow-bg"},{appearance:"outline",color:"orange",className:"border-orange text-orange hover:bg-orange-bg"},{appearance:"outline",color:"teal",className:"border-teal text-teal hover:bg-teal-bg"},{appearance:"outline",color:"blue",className:"border-blue text-blue hover:bg-blue-bg"},{appearance:"outline",color:"mauve",className:"border-mauve text-mauve hover:bg-mauve-bg"},{appearance:"outline",color:"slate",className:"border-slate text-slate hover:bg-slate-bg"},{appearance:"outline",color:"lavender",className:"border-lavender text-lavender hover:bg-lavender-bg"},{appearance:"outline",color:"sage",className:"border-sage text-sage hover:bg-sage-bg"}],defaultVariants:{appearance:"filled",color:"primary"}}),os=y.forwardRef(({className:e,appearance:a="filled",color:s="primary",closable:n=!1,onClose:r,closeAriaLabel:o="Close tag",closeIcon:l,children:c,onMouseEnter:d,onMouseLeave:m,...p},x)=>{const[g,v]=y.useState(!1),f=n&&typeof r=="function",b=k=>{f&&v(!0),d?.(k)},h=k=>{f&&v(!1),m?.(k)},w=k=>{k.preventDefault(),k.stopPropagation(),r?.(k)},j=k=>{k.key!=="Enter"&&k.key!==" "||(k.preventDefault(),k.stopPropagation(),r?.(k))};return t.jsxs("span",{ref:x,className:i(Go({appearance:a,color:s}),f&&"gap-0 pr-1.5",e),onMouseEnter:b,onMouseLeave:h,...p,children:[c,f&&t.jsx(V.motion.div,{"aria-hidden":!0,initial:!1,animate:{width:g?16:0,marginLeft:g?2:0,opacity:g?1:0},transition:{duration:.2,ease:[.4,0,.2,1]},className:"flex min-w-0 shrink-0 overflow-hidden",style:{pointerEvents:g?"auto":"none"},children:t.jsx("button",{type:"button","aria-label":o,className:"inline-flex h-4 w-4 cursor-pointer items-center justify-center rounded-sm text-current/80 hover:text-current focus:outline-none",onClick:w,onKeyDown:j,children:l??t.jsx(er,{className:"h-3 w-3"})})})]})});os.displayName="Tag";const qo=y.forwardRef(({className:e,value:a,max:s=100,...n},r)=>{const o=a!=null?Math.min(s,Math.max(0,a)):void 0;return t.jsx(Us.Root,{ref:r,value:o??null,max:s,className:i("relative h-1 w-full overflow-hidden rounded-full bg-fill-secondary",e),style:{height:4},...n,children:t.jsx(Us.Indicator,{className:"h-full rounded-full bg-success transition-[width] duration-200 ease-out",style:{width:o!=null?`${o/s*100}%`:"0%"}})})});qo.displayName="Progress";const Du=124;function Se({headerIcon:e,headerTitle:a,headerRight:s,children:n,defaultExpanded:r=!0,contentPadding:o="var(--spacing-1.5) var(--spacing-2)",onToggle:l,collapsible:c=!0,footer:d,contentMaxHeight:m,showExpandAllBar:p=!1,maxHeight:x=Du,titleShimmer:g=!1,className:v}){const[f,b]=u.useState(r),[h,w]=u.useState(!1),[j,k]=u.useState(!1),[T,S]=u.useState(!1),[P,A]=u.useState(0),[I,_]=u.useState(p&&r),[ne,D]=u.useState(!1),q=u.useRef(null);u.useLayoutEffect(()=>{if(!p||!f){S(!1),A(0),_(!1);return}_(!0);const O=()=>{const U=q.current;if(!U)return;const Q=U.scrollHeight;A(Q),S(Q>x),_(!1)},J=requestAnimationFrame(O);let ue=null;return q.current&&(ue=new ResizeObserver(O),ue.observe(q.current)),()=>{cancelAnimationFrame(J),ue?.disconnect()}},[p,f,n,x]);const ie=()=>{if(!c)return;const O=!f;D(!0),O&&p&&_(!0),b(O),l?.(O),setTimeout(()=>D(!1),300)},G=c&&(h||e==null)?t.jsx(be,{className:i("w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 transition-transform duration-200 text-text-secondary",f?"rotate-0":"-rotate-90")}):e,ae=p&&f&&!m,le=ae&&(I||T&&!j||ne||!T&&P===0),C=m!=null?`${m}px`:le?`${x}px`:ae&&T&&j&&P>0?`${Math.max(P+50,2e3)}px`:void 0;return t.jsxs("div",{className:i("rounded-md overflow-hidden border border-border-tertiary bg-fill-tertiary relative",v),children:[t.jsxs("div",{className:i("flex flex-row items-center gap-2 px-2 py-1.5 select-none",f&&"border-b border-border-tertiary"),onMouseEnter:()=>c&&w(!0),onMouseLeave:()=>c&&w(!1),children:[t.jsxs("div",{className:i("flex flex-row items-center gap-2 flex-1 min-w-0",c&&"cursor-pointer"),onClick:ie,role:c?"button":void 0,"aria-expanded":c?f:void 0,children:[t.jsx("div",{className:"w-[var(--font-size-sm)] h-[var(--font-size-sm)] flex items-center justify-center shrink-0 text-text-secondary [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",children:G}),t.jsx("div",{className:"min-w-0 flex-1 flex items-center text-xs leading-xs text-text-secondary",children:g?t.jsx("span",{className:"animate-pulse",children:a}):a})]}),s!=null&&t.jsx("div",{className:"flex items-center gap-1.5 shrink-0 relative z-10",onClick:O=>O.stopPropagation(),onMouseDown:O=>O.stopPropagation(),children:s})]}),t.jsx(V.AnimatePresence,{initial:!1,children:f&&t.jsxs(V.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:[.2,.8,.2,1]},className:i("overflow-hidden",ne&&"select-none"),children:[ae&&t.jsx("div",{ref:q,className:"absolute invisible h-auto w-full pointer-events-none",style:{padding:o},"aria-hidden":!0,children:n}),t.jsxs("div",{className:i("relative overflow-x-hidden bg-bg-base scrollbar-auto",m!=null?"overflow-y-auto":le?"overflow-y-hidden":"overflow-y-visible",T&&"transition-[max-height] duration-300 ease-in-out"),style:{padding:o,maxHeight:C},children:[n,ae&&T&&P>x&&t.jsx("div",{className:i("absolute bottom-0 left-0 right-0 pointer-events-none h-6 bg-gradient-to-b from-transparent to-[var(--color-bg-base)] transition-opacity duration-300",j?"opacity-0":"opacity-100")})]}),ae&&T&&t.jsx("button",{type:"button",className:"w-full h-4 flex items-center justify-center bg-bg-base border-0 cursor-pointer text-text-secondary hover:text-text transition-colors",onClick:O=>{O.stopPropagation(),D(!0),k(J=>!J),setTimeout(()=>D(!1),300)},"aria-label":j?"收起":"展开全部",children:t.jsx(be,{className:i("w-[var(--font-size-sm)] h-[var(--font-size-sm)] transition-transform duration-200",j?"rotate-180":"rotate-0")})})]})}),d!=null&&t.jsx("div",{className:"flex flex-row items-center gap-2 px-2 py-1.5 border-t border-border-tertiary",children:d})]})}Se.displayName="CollapsibleCard";const _u="w-4 h-4",Uo=u.forwardRef(({items:e,selectedId:a,onItemClick:s,width:n="w-52",className:r,moreIcon:o,...l},c)=>{const[d,m]=u.useState(null),p="flex flex-col gap-1.5 rounded-md bg-transparent",x=o??t.jsx(Oa,{className:_u});return t.jsx("div",{ref:c,className:i(p,n,r),...l,children:e.map(g=>{const v=a===g.id,f=g.disabled,b=d===g.id;return t.jsxs("div",{className:i("group flex items-center gap-2 py-1 px-2 rounded-md text-sm leading-sm transition-colors","focus-within:outline-none min-w-0",f&&"opacity-50 cursor-not-allowed",!f&&"cursor-pointer",v?"bg-fill-secondary text-text":"bg-transparent text-text-secondary hover:bg-fill-secondary hover:text-text"),children:[t.jsx("button",{onClick:()=>{f||s?.(g),m(null)},disabled:f,className:"flex-1 text-left truncate min-w-0 outline-none bg-transparent border-none p-0 cursor-pointer",children:g.label}),g.actions&&g.actions.length>0?t.jsx("div",{onClick:h=>h.stopPropagation(),children:t.jsxs($e,{open:b,onOpenChange:h=>{m(h?g.id:null)},children:[t.jsx(Oe,{asChild:!0,children:t.jsx("button",{className:i("flex items-center justify-center p-1 rounded outline-none transition-all duration-200 relative z-10 cursor-pointer hover:bg-fill-primary"),style:{pointerEvents:"auto"},onClick:h=>h.stopPropagation(),onMouseDown:h=>h.stopPropagation(),children:t.jsx("span",{className:i("transition-opacity pointer-events-none flex items-center justify-center",v?"opacity-100":"opacity-0 group-hover:opacity-100"),children:g.icon??t.jsx("span",{className:i("w-4 h-4 inline-flex items-center justify-center",v?"text-text":"text-text-secondary"),children:x})})})}),t.jsx(Me,{align:"end",children:g.actions.map(h=>t.jsxs(je,{variant:h.destructive?"destructive":"default",onClick:w=>{w.stopPropagation(),m(null),h.onClick?.()},children:[h.icon&&t.jsx("span",{className:"mr-2 w-4 h-4 flex items-center justify-center",children:h.icon}),h.label]},h.id))})]})}):t.jsx("span",{className:"flex-shrink-0 w-4 h-4 flex items-center justify-center",onClick:h=>h.stopPropagation(),children:g.icon?t.jsx("span",{className:i("transition-opacity pointer-events-none",v?"opacity-100":"opacity-0 group-hover:opacity-100"),children:g.icon}):t.jsx("span",{className:i("w-4 h-4 inline-flex items-center justify-center transition-opacity pointer-events-none",v?"opacity-100 text-text":"opacity-0 group-hover:opacity-100 text-text-secondary"),children:x})})]},g.id)})})});Uo.displayName="SidebarMenu";const Eu="w-4 h-4",Qo=u.forwardRef((e,a)=>{const s=N("more",Eu);return t.jsx(Uo,{ref:a,moreIcon:s,...e})});Qo.displayName="SidebarMenu";const xt=y.forwardRef(({className:e,type:a,...s},n)=>t.jsx("input",{type:a,ref:n,className:i("flex h-9 w-full min-w-0 rounded-lg border border-border-tertiary bg-bg-container px-3 py-1 text-sm text-text transition-colors","placeholder:text-text-tertiary","file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-text","outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0","focus:border-border-secondary focus-visible:border-border-secondary","disabled:cursor-not-allowed disabled:opacity-50","aria-invalid:border-error aria-invalid:ring-0",e),...s}));xt.displayName="Input";const is=y.forwardRef(({className:e,...a},s)=>t.jsx("textarea",{ref:s,className:i("flex min-h-16 w-full rounded-lg border border-border-tertiary bg-bg-container px-3 py-2 text-sm text-text transition-colors","placeholder:text-text-tertiary","outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0","focus:border-border-secondary focus-visible:border-border-secondary","disabled:cursor-not-allowed disabled:opacity-50","aria-invalid:border-error aria-invalid:ring-0",e),...a}));is.displayName="Textarea";function Fu({className:e,...a}){return t.jsx("div",{"data-slot":"input-group",role:"group",className:i("group/input-group relative flex w-full items-center rounded-md border border-border-tertiary shadow-sm transition-[color,box-shadow] outline-none dark:bg-input/30","h-9 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-primary-border has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-primary-border/50","has-[[data-slot][aria-invalid=true]]:border-error has-[[data-slot][aria-invalid=true]]:ring-error/20 dark:has-[[data-slot][aria-invalid=true]]:ring-error/40",e),...a})}const $u=F.cva("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-text-tertiary select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3","block-end":"order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3"}},defaultVariants:{align:"inline-start"}});function Ou({className:e,align:a="inline-start",...s}){return t.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":a,className:i($u({align:a}),e),onClick:n=>{n.target.closest("button")||n.currentTarget.parentElement?.querySelector("input")?.focus()},...s})}const Bu=F.cva("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function Vu({className:e,type:a="button",variant:s="ghost",size:n="xs",...r}){return t.jsx(W,{type:a,"data-size":n,variant:s,className:i(Bu({size:n}),e),...r})}function Hu({className:e,...a}){return t.jsx("span",{className:i("flex items-center gap-2 text-sm text-text-tertiary [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",e),...a})}function Gu({className:e,...a}){return t.jsx(xt,{"data-slot":"input-group-control",className:i("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e),...a})}function qu({className:e,...a}){return t.jsx(is,{"data-slot":"input-group-control",className:i("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...a})}function Uu({className:e,containerClassName:a,...s}){return t.jsx(Rn.OTPInput,{"data-slot":"input-otp",containerClassName:i("flex items-center gap-2 has-disabled:opacity-50",a),className:i("disabled:cursor-not-allowed",e),...s})}function Qu({className:e,...a}){return t.jsx("div",{"data-slot":"input-otp-group",className:i("flex items-center",e),...a})}function Wu({index:e,className:a,...s}){const n=y.useContext(Rn.OTPInputContext),{char:r,hasFakeCaret:o,isActive:l}=n?.slots[e]??{};return t.jsxs("div",{"data-slot":"input-otp-slot","data-active":l,className:i("relative flex h-9 w-9 items-center justify-center border-y border-r border-border-tertiary text-sm shadow-sm transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md aria-invalid:border-error data-[active=true]:z-10 data-[active=true]:border-primary-border data-[active=true]:ring-[3px] data-[active=true]:ring-primary-border/50 data-[active=true]:aria-invalid:border-error data-[active=true]:aria-invalid:ring-error/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-error/40",a),...s,children:[r,o&&t.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:t.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})}function Zu({...e}){return t.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:t.jsx(he.MinusIcon,{})})}const ls=y.forwardRef(({className:e,...a},s)=>t.jsx(zn.Root,{ref:s,className:i("flex items-center gap-2 text-sm font-medium leading-none text-text","peer-disabled:cursor-not-allowed peer-disabled:opacity-50","has-[[disabled]]:cursor-not-allowed has-[[disabled]]:opacity-50",e),...a}));ls.displayName=zn.Root.displayName;const Zt=y.forwardRef(({className:e,orientation:a="horizontal",decorative:s=!0,...n},r)=>t.jsx(Tn.Root,{ref:r,decorative:s,orientation:a,className:i("shrink-0 bg-border-tertiary","data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full","data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n}));Zt.displayName=Tn.Root.displayName;function Ku({className:e,...a}){return t.jsx("fieldset",{"data-slot":"field-set",className:i("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",e),...a})}function Yu({className:e,variant:a="legend",...s}){return t.jsx("legend",{"data-slot":"field-legend","data-variant":a,className:i("mb-3 font-medium","data-[variant=legend]:text-base","data-[variant=label]:text-sm",e),...s})}function Xu({className:e,...a}){return t.jsx("div",{"data-slot":"field-group",className:i("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",e),...a})}const Ju=F.cva("group/field flex w-full gap-3 data-[invalid=true]:text-error",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function e0({className:e,orientation:a="vertical",...s}){return t.jsx("div",{role:"group","data-slot":"field","data-orientation":a,className:i(Ju({orientation:a}),e),...s})}function t0({className:e,...a}){return t.jsx("div",{"data-slot":"field-content",className:i("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",e),...a})}function a0({className:e,...a}){return t.jsx(ls,{"data-slot":"field-label",className:i("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:border-primary has-data-[state=checked]:bg-primary/5 dark:has-data-[state=checked]:bg-primary/10",e),...a})}function s0({className:e,...a}){return t.jsx("div",{"data-slot":"field-label",className:i("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",e),...a})}function n0({className:e,...a}){return t.jsx("p",{"data-slot":"field-description",className:i("text-sm leading-normal font-normal text-text-tertiary group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...a})}function r0({children:e,className:a,...s}){return t.jsxs("div",{"data-slot":"field-separator","data-content":!!e,className:i("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",a),...s,children:[t.jsx(Zt,{className:"absolute inset-0 top-1/2"}),e&&t.jsx("span",{className:"relative mx-auto block w-fit bg-bg-base px-2 text-text-tertiary","data-slot":"field-separator-content",children:e})]})}function o0({className:e,children:a,errors:s,...n}){const r=u.useMemo(()=>{if(a)return a;if(!s?.length)return null;const o=[...new Map(s.map(l=>[l?.message,l])).values()];return o?.length==1?o[0]?.message:t.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:o.map((l,c)=>l?.message&&t.jsx("li",{children:l.message},c))})},[a,s]);return r?t.jsx("div",{role:"alert","data-slot":"field-error",className:i("text-sm font-normal text-error",e),...n,children:r}):null}const Wo=F.cva("group peer shrink-0 rounded-sm border border-border-tertiary bg-bg-container outline-offset-2 transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-border disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-text-on-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-text-on-primary",{variants:{size:{sm:"size-3.5",md:"size-4",lg:"size-5"}},defaultVariants:{size:"md"}}),Zo=y.forwardRef(({className:e,size:a="md",...s},n)=>t.jsx(ka.Root,{ref:n,className:i(Wo({size:a}),e),...s,children:t.jsxs(ka.Indicator,{className:"flex items-center justify-center text-current",children:[t.jsx(ye,{className:"size-[0.875em] group-data-[state=indeterminate]:hidden"}),t.jsx("span",{className:"hidden h-[0.125em] w-[0.625em] rounded-sm bg-current group-data-[state=indeterminate]:block"})]})}));Zo.displayName=ka.Root.displayName;const i0=Gc.Root;function l0({className:e,...a}){return t.jsx("div",{"data-slot":"empty",className:i("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",e),...a})}function c0({className:e,...a}){return t.jsx("div",{"data-slot":"empty-header",className:i("flex max-w-sm flex-col items-center gap-2 text-center",e),...a})}const d0=F.cva("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-10 shrink-0 items-center justify-center rounded-lg bg-fill-tertiary text-text [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function u0({className:e,variant:a="default",...s}){return t.jsx("div",{"data-slot":"empty-icon","data-variant":a,className:i(d0({variant:a,className:e})),...s})}function m0({className:e,...a}){return t.jsx("div",{"data-slot":"empty-title",className:i("text-lg font-medium tracking-tight",e),...a})}function p0({className:e,...a}){return t.jsx("div",{"data-slot":"empty-description",className:i("text-sm/relaxed text-text-tertiary [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...a})}function x0({className:e,...a}){return t.jsx("div",{"data-slot":"empty-content",className:i("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",e),...a})}function f0({className:e,...a}){return t.jsx("div",{role:"list","data-slot":"item-group",className:i("group/item-group flex flex-col",e),...a})}function h0({className:e,...a}){return t.jsx(Zt,{"data-slot":"item-separator",orientation:"horizontal",className:i("my-0",e),...a})}const g0=F.cva("group/item flex flex-wrap items-center rounded-md border border-transparent text-sm transition-colors duration-100 outline-none focus-visible:border-primary-border focus-visible:ring-[3px] focus-visible:ring-primary-border/50 [a]:transition-colors [a]:hover:bg-fill-secondary/50",{variants:{variant:{default:"bg-transparent",outline:"border-border",muted:"bg-fill-tertiary/50"},size:{default:"gap-4 p-4",sm:"gap-2.5 px-4 py-3"}},defaultVariants:{variant:"default",size:"default"}});function y0({className:e,variant:a="default",size:s="default",asChild:n=!1,...r}){const o=n?H.Slot.Root:"div";return t.jsx(o,{"data-slot":"item","data-variant":a,"data-size":s,className:i(g0({variant:a,size:s,className:e})),...r})}const b0=F.cva("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"size-8 rounded-sm border bg-fill-tertiary [&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});function v0({className:e,variant:a="default",...s}){return t.jsx("div",{"data-slot":"item-media","data-variant":a,className:i(b0({variant:a,className:e})),...s})}function w0({className:e,...a}){return t.jsx("div",{"data-slot":"item-content",className:i("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",e),...a})}function k0({className:e,...a}){return t.jsx("div",{"data-slot":"item-title",className:i("flex w-fit items-center gap-2 text-sm leading-snug font-medium",e),...a})}function j0({className:e,...a}){return t.jsx("p",{"data-slot":"item-description",className:i("line-clamp-2 text-sm leading-normal font-normal text-balance text-text-tertiary","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...a})}function N0({className:e,...a}){return t.jsx("div",{"data-slot":"item-actions",className:i("flex items-center gap-2",e),...a})}function C0({className:e,...a}){return t.jsx("div",{"data-slot":"item-header",className:i("flex basis-full items-center justify-between gap-2",e),...a})}function S0({className:e,...a}){return t.jsx("div",{"data-slot":"item-footer",className:i("flex basis-full items-center justify-between gap-2",e),...a})}const Ko=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("flex flex-col gap-4 rounded-xl border border-border-tertiary bg-bg-container text-text shadow-sm","py-6",e),...a}));Ko.displayName="Card";const Yo=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6","has-data-[slot=card-action]:grid-cols-[1fr_auto]","[.border-b]:pb-4",e),...a}));Yo.displayName="CardHeader";const Xo=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("text-base font-semibold leading-none text-text",e),...a}));Xo.displayName="CardTitle";const Jo=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("text-sm leading-6 text-text-tertiary",e),...a}));Jo.displayName="CardDescription";const ei=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,"data-slot":"card-action",className:i("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...a}));ei.displayName="CardAction";const ti=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("px-6",e),...a}));ti.displayName="CardContent";const ai=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("flex items-center px-6 [.border-t]:pt-4",e),...a}));ai.displayName="CardFooter";const si=F.cva("relative grid w-full items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm",{variants:{variant:{default:"border-border-tertiary bg-bg-container text-text [&>svg]:text-text-secondary",info:"border-primary-border bg-primary-bg text-text [&>svg]:text-primary",success:"border-success-border bg-success-bg text-text [&>svg]:text-success",warning:"border-warning-border bg-warning-bg text-text [&>svg]:text-warning",destructive:"border-error-border bg-error-bg text-text [&>svg]:text-error"}},defaultVariants:{variant:"default"}}),ni=y.forwardRef(({className:e,variant:a,...s},n)=>t.jsx("div",{ref:n,role:"alert",className:i(si({variant:a}),"has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-3","[&>svg]:size-4 [&>svg]:translate-y-0.5",e),...s}));ni.displayName="Alert";const ri=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("col-start-2 min-h-4 font-medium leading-5 tracking-tight text-text","line-clamp-1",e),...a}));ri.displayName="AlertTitle";const oi=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("col-start-2 grid justify-items-start gap-1 text-sm leading-6 text-text-secondary","[&_p]:leading-6",e),...a}));oi.displayName="AlertDescription";const ii=y.forwardRef(({...e},a)=>t.jsx("nav",{ref:a,"aria-label":"breadcrumb",...e}));ii.displayName="Breadcrumb";const li=y.forwardRef(({className:e,...a},s)=>t.jsx("ol",{ref:s,className:i("flex flex-wrap items-center gap-1.5 text-sm text-text-tertiary break-words sm:gap-2.5",e),...a}));li.displayName="BreadcrumbList";const ci=y.forwardRef(({className:e,...a},s)=>t.jsx("li",{ref:s,className:i("inline-flex items-center gap-1.5",e),...a}));ci.displayName="BreadcrumbItem";const di=y.forwardRef(({className:e,asChild:a,...s},n)=>a?t.jsx("span",{className:i("transition-colors hover:text-text",e),...s}):t.jsx("a",{ref:n,className:i("transition-colors hover:text-text",e),...s}));di.displayName="BreadcrumbLink";const ui=y.forwardRef(({className:e,...a},s)=>t.jsx("span",{ref:s,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-normal text-text",e),...a}));ui.displayName="BreadcrumbPage";const mi=({children:e,className:a,...s})=>t.jsx("li",{role:"presentation","aria-hidden":"true",className:i("[&>svg]:size-3.5 text-text-tertiary",a),...s,children:e??t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:t.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"})})});mi.displayName="BreadcrumbSeparator";const pi=({className:e,...a})=>t.jsxs("span",{role:"presentation","aria-hidden":"true",className:i("flex size-9 items-center justify-center",e),...a,children:[t.jsx(Oa,{className:"size-4"}),t.jsx("span",{className:"sr-only",children:"More"})]});pi.displayName="BreadcrumbEllipsis";const xi=K.Root,I0=K.Trigger,fi=K.Portal,R0=K.Close,cs=y.forwardRef(({className:e,...a},s)=>t.jsx(K.Overlay,{ref:s,asChild:!0,...a,children:t.jsx(V.motion.div,{className:i("fixed inset-0 z-50 bg-bg-mask/60",e),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15}})}));cs.displayName=K.Overlay.displayName;const z0=F.cva("font-sans fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-bg-base text-text shadow-lg p-6 outline-none",{variants:{size:{sm:"max-w-sm",default:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"}},defaultVariants:{size:"default"}}),ds=y.forwardRef(({className:e,children:a,size:s="default",hideCloseButton:n=!1,dataStyle:r,dataTheme:o,...l},c)=>{const d=ge(),m=r!==void 0?{"data-style":r,"data-theme":o??d["data-theme"]??""}:d;return t.jsx(fi,{children:t.jsxs("div",{style:{display:"contents"},...m,children:[t.jsx(cs,{}),t.jsx(K.Content,{ref:c,asChild:!0,...l,children:t.jsxs(V.motion.div,{className:i(z0({size:s}),e),initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:.2,ease:[.4,0,.2,1]},children:[a,!n&&t.jsxs(K.Close,{className:i("absolute right-4 top-4 inline-flex size-7 items-center justify-center rounded-md text-text-tertiary opacity-70 transition-colors","hover:bg-fill-secondary hover:text-text hover:opacity-100","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border","disabled:pointer-events-none"),children:[t.jsx(Ce,{className:"size-4"}),t.jsx("span",{className:"sr-only",children:"Close"})]})]})})]})})});ds.displayName=K.Content.displayName;const us=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("flex flex-col gap-2 text-left",e),...a}));us.displayName="DialogHeader";const hi=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...a}));hi.displayName="DialogFooter";const ms=y.forwardRef(({className:e,...a},s)=>t.jsx(K.Title,{ref:s,className:i("font-sans text-base font-medium leading-6 text-text",e),...a}));ms.displayName=K.Title.displayName;const ps=y.forwardRef(({className:e,...a},s)=>t.jsx(K.Description,{ref:s,className:i("text-sm leading-6 text-text-tertiary",e),...a}));ps.displayName=K.Description.displayName;const gi=y.forwardRef((e,a)=>{const{style:s,theme:n}=de();return t.jsx(ds,{ref:a,dataStyle:s,dataTheme:n,...e})});gi.displayName="DialogContent";const yi=K.Root,bi=K.Trigger,vi=K.Close,xs=K.Portal,Kt=y.forwardRef(({className:e,...a},s)=>t.jsx(K.Overlay,{ref:s,asChild:!0,...a,children:t.jsx(V.motion.div,{className:i("fixed inset-0 z-50 bg-bg-mask/60",e),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15}})}));Kt.displayName=K.Overlay.displayName;const wi=F.cva("fixed z-50 gap-4 bg-bg-base text-text shadow-lg border-border p-6 outline-none flex flex-col",{variants:{side:{top:"inset-x-0 top-0 border-b",bottom:"inset-x-0 bottom-0 border-t",left:"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"}},defaultVariants:{side:"right"}}),T0={top:{initial:{y:"-100%"},animate:{y:0},exit:{y:"-100%"}},bottom:{initial:{y:"100%"},animate:{y:0},exit:{y:"100%"}},left:{initial:{x:"-100%"},animate:{x:0},exit:{x:"-100%"}},right:{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"}}},fs=y.forwardRef(({side:e="right",className:a,children:s,showCloseButton:n=!0,dataStyle:r,dataTheme:o,...l},c)=>{const d=ge(),m=r!==void 0?{"data-style":r,"data-theme":o??d["data-theme"]??""}:d,p=T0[e];return t.jsx(xs,{children:t.jsxs("div",{style:{display:"contents"},...m,children:[t.jsx(Kt,{}),t.jsx(K.Content,{ref:c,asChild:!0,...l,children:t.jsxs(V.motion.div,{className:i(wi({side:e}),a),initial:p.initial,animate:p.animate,exit:p.exit,transition:{duration:.25,ease:[.4,0,.2,1]},children:[s,n&&t.jsxs(K.Close,{className:i("absolute right-4 top-4 inline-flex size-7 items-center justify-center rounded-md text-text-tertiary opacity-70 transition-colors","hover:bg-fill-secondary hover:text-text hover:opacity-100","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-border","disabled:pointer-events-none"),children:[t.jsx(Ce,{className:"size-4"}),t.jsx("span",{className:"sr-only",children:"Close"})]})]})})]})})});fs.displayName=K.Content.displayName;const hs=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("flex flex-col gap-1.5",e),...a}));hs.displayName="DrawerHeader";const gs=y.forwardRef(({className:e,...a},s)=>t.jsx("div",{ref:s,className:i("mt-auto flex flex-col gap-2",e),...a}));gs.displayName="DrawerFooter";const ys=y.forwardRef(({className:e,...a},s)=>t.jsx(K.Title,{ref:s,className:i("text-base font-medium leading-6 text-text",e),...a}));ys.displayName=K.Title.displayName;const bs=y.forwardRef(({className:e,...a},s)=>t.jsx(K.Description,{ref:s,className:i("text-sm leading-6 text-text-tertiary",e),...a}));bs.displayName=K.Description.displayName;const ki=y.forwardRef((e,a)=>{const{style:s,theme:n}=de();return t.jsx(fs,{ref:a,dataStyle:s,dataTheme:n,...e})});ki.displayName="DrawerContent";const L0=Ke.Root,M0=Ke.Trigger,P0=Ke.Anchor,ji=y.forwardRef(({className:e,align:a="center",sideOffset:s=4,children:n,dataStyle:r,dataTheme:o,...l},c)=>{const d=ge(),m=r!==void 0?{"data-style":r,"data-theme":o??d["data-theme"]??""}:d;return t.jsx(Ke.Portal,{children:t.jsx("div",{style:{display:"contents"},...m,children:t.jsx(Ke.Content,{ref:c,align:a,sideOffset:s,className:i("z-50 w-72 rounded-lg border border-border-tertiary bg-bg-container p-4 text-sm text-text shadow-md outline-none",e),...l,children:t.jsx(V.motion.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.15,ease:[.4,0,.2,1]},children:n})})})})});ji.displayName=Ke.Content.displayName;const Ni=y.forwardRef((e,a)=>{const{style:s,theme:n}=de();return t.jsx(ji,{ref:a,dataStyle:s,dataTheme:n,...e})});Ni.displayName="PopoverContent";const A0=ct.Root,D0=ct.Trigger,Ci=y.forwardRef(({className:e,align:a="center",sideOffset:s=4,children:n,dataStyle:r,dataTheme:o,...l},c)=>{const d=ge(),m=r!==void 0?{"data-style":r,"data-theme":o??d["data-theme"]??""}:d;return t.jsx(ct.Portal,{children:t.jsx("div",{style:{display:"contents"},...m,children:t.jsx(ct.Content,{ref:c,align:a,sideOffset:s,className:i("z-50 w-64 rounded-lg border border-border-tertiary bg-bg-container p-4 text-sm text-text shadow-md outline-none",e),...l,children:t.jsx(V.motion.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.15,ease:[.4,0,.2,1]},children:n})})})})});Ci.displayName=ct.Content.displayName;const Si=y.forwardRef((e,a)=>{const{style:s,theme:n}=de();return t.jsx(Ci,{ref:a,dataStyle:s,dataTheme:n,...e})});Si.displayName="HoverCardContent";const _0=Y.Root,E0=Y.Trigger,F0=Y.Group,$0=Y.Portal,O0=Y.Sub,B0=Y.RadioGroup,Ii="z-50 min-w-32 overflow-hidden rounded-lg border border-border-tertiary bg-bg-container p-1 text-text shadow-lg outline-none",Ri=y.forwardRef(({className:e,children:a,dataStyle:s,dataTheme:n,...r},o)=>{const l=ge(),c=s!==void 0?{"data-style":s,"data-theme":n??l["data-theme"]??""}:l;return t.jsx(Y.Portal,{children:t.jsx("div",{style:{display:"contents"},...c,children:t.jsx(Y.Content,{ref:o,className:i(Ii,e),...r,children:t.jsx(V.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.12,ease:[.4,0,.2,1]},children:a})})})})});Ri.displayName=Y.Content.displayName;const V0=F.cva("flex h-9 w-full cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none hover:bg-fill-secondary focus:bg-fill-secondary data-[highlighted]:bg-fill-secondary data-[state=open]:bg-fill-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),zi=y.forwardRef(({className:e,inset:a=!1,children:s,...n},r)=>t.jsxs(Y.SubTrigger,{ref:r,className:i(V0({inset:a}),e),...n,children:[s,t.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center",children:t.jsx(at,{className:"h-4 w-4"})})]}));zi.displayName=Y.SubTrigger.displayName;const Ti=y.forwardRef(({className:e,dataStyle:a,dataTheme:s,...n},r)=>{const o=ge(),l=a!==void 0?{"data-style":a,"data-theme":s??o["data-theme"]??""}:o;return t.jsx(Y.Portal,{children:t.jsx("div",{style:{display:"contents"},...l,children:t.jsx(Y.SubContent,{ref:r,className:i(Ii,e),...n})})})});Ti.displayName=Y.SubContent.displayName;const H0=F.cva("relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-3 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{variant:{default:"hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text",destructive:"text-error hover:bg-error-bg focus:bg-error-bg focus:text-error data-[highlighted]:bg-error-bg data-[highlighted]:text-error"},inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{variant:"default",inset:!1}}),Li=y.forwardRef(({className:e,inset:a=!1,variant:s="default",...n},r)=>t.jsx(Y.Item,{ref:r,className:i(H0({variant:s,inset:a}),e),...n}));Li.displayName=Y.Item.displayName;const Mi="relative flex h-9 w-full min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm pl-8 pr-3 text-sm outline-none hover:bg-fill-secondary focus:bg-fill-secondary focus:text-text data-[highlighted]:bg-fill-secondary data-[highlighted]:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Pi=y.forwardRef(({className:e,children:a,checked:s,...n},r)=>t.jsxs(Y.CheckboxItem,{ref:r,checked:s,className:i(Mi,e),...n,children:[t.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:t.jsx(Y.ItemIndicator,{children:t.jsx(ye,{className:"h-4 w-4"})})}),a]}));Pi.displayName=Y.CheckboxItem.displayName;const Ai=y.forwardRef(({className:e,children:a,...s},n)=>t.jsxs(Y.RadioItem,{ref:n,className:i(Mi,e),...s,children:[t.jsx("span",{className:"absolute left-2 top-1/2 flex h-3.5 w-3.5 -translate-y-1/2 items-center justify-center",children:t.jsx(Y.ItemIndicator,{children:t.jsx("div",{className:"h-2 w-2 rounded-full bg-primary"})})}),a]}));Ai.displayName=Y.RadioItem.displayName;const G0=F.cva("flex h-9 items-center px-3 text-sm font-semibold text-text-secondary",{variants:{inset:{true:"pl-8 pr-3",false:""}},defaultVariants:{inset:!1}}),Di=y.forwardRef(({className:e,inset:a=!1,...s},n)=>t.jsx(Y.Label,{ref:n,className:i(G0({inset:a}),e),...s}));Di.displayName=Y.Label.displayName;const _i=y.forwardRef(({className:e,...a},s)=>t.jsx(Y.Separator,{ref:s,className:i("my-1 mx-1 h-px bg-border-tertiary",e),...a}));_i.displayName=Y.Separator.displayName;const Ei=({className:e,...a})=>t.jsx("span",{className:i("ml-auto text-xs tracking-widest text-text-tertiary",e),...a});Ei.displayName="ContextMenuShortcut";const Fi=y.forwardRef((e,a)=>{const{style:s,theme:n}=de();return t.jsx(Ri,{ref:a,dataStyle:s,dataTheme:n,...e})});Fi.displayName="ContextMenuContent";const $i=y.forwardRef((e,a)=>{const{style:s,theme:n}=de();return t.jsx(Ti,{ref:a,dataStyle:s,dataTheme:n,...e})});$i.displayName="ContextMenuSubContent";function q0({className:e,...a}){return t.jsx(H.Menubar.Root,{"data-slot":"menubar",className:i("flex h-9 items-center gap-1 rounded-md border bg-bg-base p-1 shadow-sm",e),...a})}function U0({...e}){return t.jsx(H.Menubar.Menu,{"data-slot":"menubar-menu",...e})}function Q0({...e}){return t.jsx(H.Menubar.Group,{"data-slot":"menubar-group",...e})}function Oi({...e}){return t.jsx(H.Menubar.Portal,{"data-slot":"menubar-portal",...e})}function W0({...e}){return t.jsx(H.Menubar.RadioGroup,{"data-slot":"menubar-radio-group",...e})}function Z0({className:e,...a}){return t.jsx(H.Menubar.Trigger,{"data-slot":"menubar-trigger",className:i("flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-none select-none focus:bg-fill-secondary focus:text-text data-[state=open]:bg-fill-secondary data-[state=open]:text-text",e),...a})}function K0({className:e,align:a="start",alignOffset:s=-4,sideOffset:n=8,...r}){return t.jsx(Oi,{children:t.jsx(H.Menubar.Content,{"data-slot":"menubar-content",align:a,alignOffset:s,sideOffset:n,className:i("z-50 min-w-48 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border bg-bg-container p-1 text-text shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...r})})}function Y0({className:e,inset:a,variant:s="default",...n}){return t.jsx(H.Menubar.Item,{"data-slot":"menubar-item","data-inset":a,"data-variant":s,className:i("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none focus:bg-fill-secondary focus:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-error data-[variant=destructive]:focus:bg-error/10 data-[variant=destructive]:focus:text-error dark:data-[variant=destructive]:focus:bg-error/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-text-tertiary data-[variant=destructive]:*:[svg]:text-error!",e),...n})}function X0({className:e,children:a,checked:s,...n}){return t.jsxs(H.Menubar.CheckboxItem,{"data-slot":"menubar-checkbox-item",className:i("relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-none select-none focus:bg-fill-secondary focus:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:s,...n,children:[t.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsx(H.Menubar.ItemIndicator,{children:t.jsx(he.CheckIcon,{className:"size-4"})})}),a]})}function J0({className:e,children:a,...s}){return t.jsxs(H.Menubar.RadioItem,{"data-slot":"menubar-radio-item",className:i("relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-none select-none focus:bg-fill-secondary focus:text-text data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...s,children:[t.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsx(H.Menubar.ItemIndicator,{children:t.jsx(he.CircleIcon,{className:"size-2 fill-current"})})}),a]})}function em({className:e,inset:a,...s}){return t.jsx(H.Menubar.Label,{"data-slot":"menubar-label","data-inset":a,className:i("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...s})}function tm({className:e,...a}){return t.jsx(H.Menubar.Separator,{"data-slot":"menubar-separator",className:i("-mx-1 my-1 h-px bg-border",e),...a})}function am({className:e,...a}){return t.jsx("span",{"data-slot":"menubar-shortcut",className:i("ml-auto text-xs tracking-widest text-text-tertiary",e),...a})}function sm({...e}){return t.jsx(H.Menubar.Sub,{"data-slot":"menubar-sub",...e})}function nm({className:e,inset:a,children:s,...n}){return t.jsxs(H.Menubar.SubTrigger,{"data-slot":"menubar-sub-trigger","data-inset":a,className:i("flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none focus:bg-fill-secondary focus:text-text data-[inset]:pl-8 data-[state=open]:bg-fill-secondary data-[state=open]:text-text",e),...n,children:[s,t.jsx(he.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]})}function rm({className:e,...a}){return t.jsx(H.Menubar.SubContent,{"data-slot":"menubar-sub-content",className:i("z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border bg-bg-container p-1 text-text shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...a})}function om({className:e,children:a,viewport:s=!0,...n}){return t.jsxs(H.NavigationMenu.Root,{"data-slot":"navigation-menu","data-viewport":s,className:i("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...n,children:[a,s&&t.jsx(Vi,{})]})}function im({className:e,...a}){return t.jsx(H.NavigationMenu.List,{"data-slot":"navigation-menu-list",className:i("group flex flex-1 list-none items-center justify-center gap-1",e),...a})}function lm({className:e,...a}){return t.jsx(H.NavigationMenu.Item,{"data-slot":"navigation-menu-item",className:i("relative",e),...a})}const Bi=F.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-bg-base px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none hover:bg-fill-secondary hover:text-text focus:bg-fill-secondary focus:text-text focus-visible:ring-[3px] focus-visible:ring-primary-border/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-fill-secondary/50 data-[state=open]:text-text data-[state=open]:hover:bg-fill-secondary data-[state=open]:focus:bg-fill-secondary");function cm({className:e,children:a,...s}){return t.jsxs(H.NavigationMenu.Trigger,{"data-slot":"navigation-menu-trigger",className:i(Bi(),"group",e),...s,children:[a," ",t.jsx(he.ChevronDownIcon,{className:"relative top-px ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function dm({className:e,...a}){return t.jsx(H.NavigationMenu.Content,{"data-slot":"navigation-menu-content",className:i("top-0 left-0 w-full p-2 pr-2.5 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:bg-bg-container group-data-[viewport=false]/navigation-menu:text-text group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95",e),...a})}function Vi({className:e,...a}){return t.jsx("div",{className:i("absolute top-full left-0 isolate z-50 flex justify-center"),children:t.jsx(H.NavigationMenu.Viewport,{"data-slot":"navigation-menu-viewport",className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-bg-container text-text shadow data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),...a})})}function um({className:e,...a}){return t.jsx(H.NavigationMenu.Link,{"data-slot":"navigation-menu-link",className:i("flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none hover:bg-fill-secondary hover:text-text focus:bg-fill-secondary focus:text-text focus-visible:ring-[3px] focus-visible:ring-primary-border/50 focus-visible:outline-1 data-[active=true]:bg-fill-secondary/50 data-[active=true]:text-text data-[active=true]:hover:bg-fill-secondary data-[active=true]:focus:bg-fill-secondary [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-text-tertiary",e),...a})}function mm({className:e,...a}){return t.jsx(H.NavigationMenu.Indicator,{"data-slot":"navigation-menu-indicator",className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in",e),...a,children:t.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})}function Hi({className:e,...a}){return t.jsx(Be.Command,{"data-slot":"command",className:i("flex h-full w-full flex-col overflow-hidden rounded-md bg-bg-container text-text",e),...a})}function pm({title:e="Command Palette",description:a="Search for a command to run...",children:s,className:n,showCloseButton:r=!0,...o}){return t.jsxs(xi,{...o,children:[t.jsxs(us,{className:"sr-only",children:[t.jsx(ms,{children:e}),t.jsx(ps,{children:a})]}),t.jsx(ds,{className:i("overflow-hidden p-0",n),hideCloseButton:!r,children:t.jsx(Hi,{className:"**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-text-tertiary [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:s})})]})}function xm({className:e,...a}){return t.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[t.jsx(he.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),t.jsx(Be.Command.Input,{"data-slot":"command-input",className:i("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-text-tertiary disabled:cursor-not-allowed disabled:opacity-50",e),...a})]})}function fm({className:e,...a}){return t.jsx(Be.Command.List,{"data-slot":"command-list",className:i("max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto",e),...a})}function hm({...e}){return t.jsx(Be.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function gm({className:e,...a}){return t.jsx(Be.Command.Group,{"data-slot":"command-group",className:i("overflow-hidden p-1 text-text [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-text-tertiary",e),...a})}function ym({className:e,...a}){return t.jsx(Be.Command.Separator,{"data-slot":"command-separator",className:i("-mx-1 h-px bg-border",e),...a})}function bm({className:e,...a}){return t.jsx(Be.Command.Item,{"data-slot":"command-item",className:i("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-fill-secondary data-[selected=true]:text-text [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-text-tertiary",e),...a})}function vm({className:e,...a}){return t.jsx("span",{"data-slot":"command-shortcut",className:i("ml-auto text-xs tracking-widest text-text-tertiary",e),...a})}function wm({options:e,value:a,onValueChange:s,placeholder:n="Search...",emptyText:r="No option found.",className:o,...l}){const[c,d]=y.useState(""),m=e.find(x=>x.value===a),p=e.filter(x=>x.label.toLowerCase().includes(c.toLowerCase()));return t.jsxs("div",{className:i("w-full rounded-lg border border-border-tertiary bg-bg-container p-1",o),...l,children:[t.jsx(xt,{role:"combobox","aria-expanded":"true",value:c||m?.label||"",onChange:x=>d(x.target.value),placeholder:n,className:"border-0 bg-transparent shadow-none"}),t.jsx("div",{role:"listbox",className:"mt-1 max-h-60 overflow-auto rounded-md",children:p.length>0?p.map(x=>t.jsx("button",{type:"button",role:"option","aria-selected":x.value===a,disabled:x.disabled,className:i("flex w-full items-center rounded-md px-3 py-2 text-left text-sm text-text transition-colors","hover:bg-fill-secondary focus:bg-fill-secondary focus:outline-none","disabled:pointer-events-none disabled:opacity-50",x.value===a&&"bg-fill-secondary"),onClick:()=>{s?.(x.value),d("")},children:x.label},x.value)):t.jsx("div",{className:"px-3 py-2 text-sm text-text-tertiary",children:r})})]})}function km({className:e,size:a="default",...s}){return t.jsxs("div",{className:"group/native-select relative w-fit has-[select:disabled]:opacity-50","data-slot":"native-select-wrapper",children:[t.jsx("select",{"data-slot":"native-select","data-size":a,className:i("h-9 w-full min-w-0 appearance-none rounded-md border border-border-tertiary bg-transparent px-3 py-2 pr-9 text-sm shadow-sm transition-[color,box-shadow] outline-none selection:bg-primary selection:text-text-on-primary placeholder:text-text-tertiary disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-8 data-[size=sm]:py-1 dark:bg-input/30 dark:hover:bg-input/50","focus-visible:border-primary-border focus-visible:ring-[3px] focus-visible:ring-primary-border/50","aria-invalid:border-error aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40",e),...s}),t.jsx(he.ChevronDownIcon,{className:"pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 text-text-tertiary opacity-50 select-none","aria-hidden":"true","data-slot":"native-select-icon"})]})}function jm({className:e,...a}){return t.jsx("option",{"data-slot":"native-select-option",className:i("bg-[Canvas] text-[CanvasText]",e),...a})}function Nm({className:e,...a}){return t.jsx("optgroup",{"data-slot":"native-select-optgroup",className:i("bg-[Canvas] text-[CanvasText]",e),...a})}function Cm({className:e,classNames:a,showOutsideDays:s=!0,captionLayout:n="label",buttonVariant:r="ghost",formatters:o,components:l,...c}){const d=wa.getDefaultClassNames();return t.jsx(wa.DayPicker,{showOutsideDays:s,className:i("group/calendar bg-bg-base p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:n,formatters:{formatMonthDropdown:m=>m.toLocaleString("default",{month:"short"}),...o},classNames:{root:i("w-fit",d.root),months:i("relative flex flex-col gap-4 md:flex-row",d.months),month:i("flex w-full flex-col gap-4",d.month),nav:i("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",d.nav),button_previous:i(ut({variant:r}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",d.button_previous),button_next:i(ut({variant:r}),"size-(--cell-size) p-0 select-none aria-disabled:opacity-50",d.button_next),month_caption:i("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",d.month_caption),dropdowns:i("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",d.dropdowns),dropdown_root:i("relative rounded-md border border-border-tertiary shadow-sm has-focus:border-primary-border has-focus:ring-[3px] has-focus:ring-primary-border/50",d.dropdown_root),dropdown:i("absolute inset-0 bg-bg-container opacity-0",d.dropdown),caption_label:i("font-medium select-none",n==="label"?"text-sm":"flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-text-tertiary",d.caption_label),table:"w-full border-collapse",weekdays:i("flex",d.weekdays),weekday:i("flex-1 rounded-md text-[0.8rem] font-normal text-text-tertiary select-none",d.weekday),week:i("mt-2 flex w-full",d.week),week_number_header:i("w-(--cell-size) select-none",d.week_number_header),week_number:i("text-[0.8rem] text-text-tertiary select-none",d.week_number),day:i("group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md",c.showWeekNumber?"[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"[&:first-child[data-selected=true]_button]:rounded-l-md",d.day),range_start:i("rounded-l-md bg-fill-secondary",d.range_start),range_middle:i("rounded-none",d.range_middle),range_end:i("rounded-r-md bg-fill-secondary",d.range_end),today:i("rounded-md bg-fill-secondary text-text data-[selected=true]:rounded-none",d.today),outside:i("text-text-tertiary aria-selected:text-text-tertiary",d.outside),disabled:i("text-text-tertiary opacity-50",d.disabled),hidden:i("invisible",d.hidden),...a},components:{Root:({className:m,rootRef:p,...x})=>t.jsx("div",{"data-slot":"calendar",ref:p,className:i(m),...x}),Chevron:({className:m,orientation:p,...x})=>p==="left"?t.jsx(he.ChevronLeftIcon,{className:i("size-4",m),...x}):p==="right"?t.jsx(he.ChevronRightIcon,{className:i("size-4",m),...x}):t.jsx(he.ChevronDownIcon,{className:i("size-4",m),...x}),DayButton:Gi,WeekNumber:({children:m,...p})=>t.jsx("td",{...p,children:t.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:m})}),...l},...c})}function Gi({className:e,day:a,modifiers:s,...n}){const r=wa.getDefaultClassNames(),o=y.useRef(null);return y.useEffect(()=>{s.focused&&o.current?.focus()},[s.focused]),t.jsx("button",{ref:o,"data-day":a.date.toLocaleDateString(),"data-selected-single":s.selected&&!s.range_start&&!s.range_end&&!s.range_middle,"data-range-start":s.range_start,"data-range-end":s.range_end,"data-range-middle":s.range_middle,className:i("inline-flex items-center justify-center transition-colors hover:bg-fill-secondary hover:text-text","flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 px-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-primary-border group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-primary-border/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-text-on-primary data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-fill-secondary data-[range-middle=true]:text-text data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-text-on-primary data-[selected-single=true]:bg-primary data-[selected-single=true]:text-text-on-primary dark:hover:text-text [&>span]:text-xs [&>span]:opacity-70",r.day,e),...n})}const qi=y.forwardRef(({type:e="date",...a},s)=>t.jsx(xt,{ref:s,type:e,...a}));qi.displayName="DatePicker";const Ui=y.createContext(null);function Yt(){const e=y.useContext(Ui);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function Sm({orientation:e="horizontal",opts:a,setApi:s,plugins:n,className:r,children:o,...l}){const[c,d]=Lc({...a,axis:e==="horizontal"?"x":"y"},n),[m,p]=y.useState(!1),[x,g]=y.useState(!1),v=y.useCallback(w=>{w&&(p(w.canScrollPrev()),g(w.canScrollNext()))},[]),f=y.useCallback(()=>{d?.scrollPrev()},[d]),b=y.useCallback(()=>{d?.scrollNext()},[d]),h=y.useCallback(w=>{w.key==="ArrowLeft"?(w.preventDefault(),f()):w.key==="ArrowRight"&&(w.preventDefault(),b())},[f,b]);return y.useEffect(()=>{!d||!s||s(d)},[d,s]),y.useEffect(()=>{if(d)return v(d),d.on("reInit",v),d.on("select",v),()=>{d?.off("select",v)}},[d,v]),t.jsx(Ui.Provider,{value:{carouselRef:c,api:d,opts:a,orientation:e||(a?.axis==="y"?"vertical":"horizontal"),scrollPrev:f,scrollNext:b,canScrollPrev:m,canScrollNext:x},children:t.jsx("div",{onKeyDownCapture:h,className:i("relative",r),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...l,children:o})})}function Im({className:e,...a}){const{carouselRef:s,orientation:n}=Yt();return t.jsx("div",{ref:s,className:"overflow-hidden","data-slot":"carousel-content",children:t.jsx("div",{className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...a})})}function Rm({className:e,...a}){const{orientation:s}=Yt();return t.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:i("min-w-0 shrink-0 grow-0 basis-full",s==="horizontal"?"pl-4":"pt-4",e),...a})}function zm({className:e,variant:a="outline",size:s="sm",...n}){const{orientation:r,scrollPrev:o,canScrollPrev:l}=Yt();return t.jsxs(W,{"data-slot":"carousel-previous",variant:a,size:s,className:i("absolute size-8 rounded-full",r==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...n,children:[t.jsx(he.ArrowLeft,{}),t.jsx("span",{className:"sr-only",children:"Previous slide"})]})}function Tm({className:e,variant:a="outline",size:s="sm",...n}){const{orientation:r,scrollNext:o,canScrollNext:l}=Yt();return t.jsxs(W,{"data-slot":"carousel-next",variant:a,size:s,className:i("absolute size-8 rounded-full",r==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...n,children:[t.jsx(he.ArrowRight,{}),t.jsx("span",{className:"sr-only",children:"Next slide"})]})}function Lm({columns:e,data:a,emptyText:s="No results.",className:n,...r}){return t.jsx("div",{className:i("w-full overflow-auto rounded-lg border border-border-tertiary",n),...r,children:t.jsxs(Xa,{children:[t.jsx(Ja,{children:t.jsx(it,{children:e.map(o=>t.jsx(ts,{className:o.className,children:o.header},o.key))})}),t.jsx(es,{children:a.length>0?a.map((o,l)=>t.jsx(it,{children:e.map(c=>t.jsx($t,{className:c.className,children:c.cell?c.cell(o,l):c.accessor?String(o[c.accessor]??""):null},c.key))},l)):t.jsx(it,{children:t.jsx($t,{colSpan:e.length,className:"h-24 text-center text-text-tertiary",children:s})})})]})})}const Mm={light:"",dark:".dark"},Pm={width:320,height:200},Qi=y.createContext(null);function Wi(){const e=y.useContext(Qi);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}function Am({id:e,className:a,children:s,config:n,initialDimension:r=Pm,...o}){const l=y.useId(),c=`chart-${e??l.replace(/:/g,"")}`;return t.jsx(Qi.Provider,{value:{config:n},children:t.jsxs("div",{"data-slot":"chart","data-chart":c,className:i("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-text-tertiary [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-layer]:outline-none [&_.recharts-radial-bar-background-sector]:fill-fill-tertiary [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-fill-tertiary [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",a),...o,children:[t.jsx(Zi,{id:c,config:n}),t.jsx(Ma.ResponsiveContainer,{initialDimension:r,children:s})]})})}const Zi=({id:e,config:a})=>{const s=Object.entries(a).filter(([,n])=>n.theme??n.color);return s.length?t.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Mm).map(([n,r])=>`
|
|
33
|
+
${r} [data-chart=${e}] {
|
|
34
|
+
${s.map(([o,l])=>{const c=l.theme?.[n]??l.color;return c?` --color-${o}: ${c};`:null}).join(`
|
|
35
|
+
`)}
|
|
36
|
+
}
|
|
37
|
+
`).join(`
|
|
38
|
+
`)}}):null},Dm=Ma.Tooltip;function _m({active:e,payload:a,className:s,indicator:n="dot",hideLabel:r=!1,hideIndicator:o=!1,label:l,labelFormatter:c,labelClassName:d,formatter:m,color:p,nameKey:x,labelKey:g}){const{config:v}=Wi(),f=y.useMemo(()=>{if(r||!a?.length)return null;const[h]=a,w=`${g??h?.dataKey??h?.name??"value"}`,j=Ia(v,h,w),k=!g&&typeof l=="string"?v[l]?.label??l:j?.label;return c?t.jsx("div",{className:i("font-medium",d),children:c(k,a)}):k?t.jsx("div",{className:i("font-medium",d),children:k}):null},[l,c,a,r,d,v,g]);if(!e||!a?.length)return null;const b=a.length===1&&n!=="dot";return t.jsxs("div",{className:i("grid min-w-32 items-start gap-1.5 rounded-lg border border-border/50 bg-bg-base px-2.5 py-1.5 text-xs shadow-xl",s),children:[b?null:f,t.jsx("div",{className:"grid gap-1.5",children:a.filter(h=>h.type!=="none").map((h,w)=>{const j=`${x??h.name??h.dataKey??"value"}`,k=Ia(v,h,j),T=p??h.payload?.fill??h.color;return t.jsx("div",{className:i("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-text-tertiary",n==="dot"&&"items-center"),children:m&&h?.value!==void 0&&h.name?m(h.value,h.name,h,w,h.payload):t.jsxs(t.Fragment,{children:[k?.icon?t.jsx(k.icon,{}):!o&&t.jsx("div",{className:i("shrink-0 rounded-sm border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":b&&n==="dashed"}),style:{"--color-bg":T,"--color-border":T}}),t.jsxs("div",{className:i("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[t.jsxs("div",{className:"grid gap-1.5",children:[b?f:null,t.jsx("span",{className:"text-text-tertiary",children:k?.label??h.name})]}),h.value!=null&&t.jsx("span",{className:"font-mono font-medium text-text tabular-nums",children:typeof h.value=="number"?h.value.toLocaleString():String(h.value)})]})]})},w)})})]})}const Em=Ma.Legend;function Fm({className:e,hideIcon:a=!1,payload:s,verticalAlign:n="bottom",nameKey:r}){const{config:o}=Wi();return s?.length?t.jsx("div",{className:i("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e),children:s.filter(l=>l.type!=="none").map((l,c)=>{const d=`${r??l.dataKey??"value"}`,m=Ia(o,l,d);return t.jsxs("div",{className:i("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-text-tertiary"),children:[m?.icon&&!a?t.jsx(m.icon,{}):t.jsx("div",{className:"h-2 w-2 shrink-0 rounded-sm",style:{backgroundColor:l.color}}),m?.label]},c)})}):null}function Ia(e,a,s){if(typeof a!="object"||a===null)return;const n="payload"in a&&typeof a.payload=="object"&&a.payload!==null?a.payload:void 0;let r=s;return s in a&&typeof a[s]=="string"?r=a[s]:n&&s in n&&typeof n[s]=="string"&&(r=n[s]),r in e?e[r]:e[s]}function $m({className:e,children:a,...s}){return t.jsxs(H.ScrollArea.Root,{"data-slot":"scroll-area",className:i("relative",e),...s,children:[t.jsx(H.ScrollArea.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-primary-border/50 focus-visible:outline-1",children:a}),t.jsx(Ki,{}),t.jsx(H.ScrollArea.Corner,{})]})}function Ki({className:e,orientation:a="vertical",...s}){return t.jsx(H.ScrollArea.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:a,className:i("flex touch-none p-px transition-colors select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...s,children:t.jsx(H.ScrollArea.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}const Yi=y.createContext("ltr");function Om({dir:e="ltr",children:a,...s}){return t.jsx(Yi.Provider,{value:e,children:t.jsx("div",{dir:e,...s,children:a})})}function Bm(){return y.useContext(Yi)}const Vm=F.cva("inline-flex items-center justify-center gap-2 font-medium transition-colors duration-200 focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0 group text-sm leading-sm",{variants:{size:{sm:"h-7 px-2 text-xs leading-xs",md:"h-9 px-3 text-sm leading-sm",lg:"h-11 px-4 text-base leading-base"},rounded:{square:"rounded",pill:"rounded-full"},selected:{true:"bg-info-bg text-info",false:"bg-fill-tertiary text-text hover:bg-fill-secondary"}},defaultVariants:{size:"md",rounded:"square",selected:!1}}),Lt="w-4 h-4",Ot=u.forwardRef(({label:e,selected:a=!1,disabled:s=!1,multipleFolders:n=!1,onClear:r,size:o="md",rounded:l="square",className:c,onMouseEnter:d,onMouseLeave:m,folderIcon:p,folderFillIcon:x,arrowRightIcon:g,closeIcon:v,...f},b)=>{const[h,w]=u.useState(!1),j=a&&!s&&!n&&typeof r=="function",k=i(Vm({size:o,rounded:l,selected:a,className:c}),s&&"opacity-50 cursor-not-allowed",!s&&"cursor-pointer"),T=D=>{j&&w(!0),d?.(D)},S=D=>{j&&w(!1),m?.(D)},P=p??t.jsx(sr,{className:Lt}),A=x??t.jsx(nr,{className:Lt}),I=g??t.jsx(at,{className:Lt}),_=v??t.jsx(Ce,{className:Lt}),ne=t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0 relative text-current",children:a?A:P}),t.jsx("span",{children:e}),n&&t.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:I}),j?t.jsx(V.motion.span,{role:"button",tabIndex:0,"aria-label":"清空文件夹选择",className:"flex items-center justify-center flex-shrink-0 text-info hover:text-info-hover cursor-pointer overflow-hidden",initial:!1,animate:{width:h?20:0,opacity:h?1:0,marginLeft:h?2:0},transition:{duration:.2,ease:"easeOut"},style:{pointerEvents:h?"auto":"none",minWidth:0},onPointerDown:D=>{D.preventDefault(),D.stopPropagation()},onClick:D=>{D.preventDefault(),D.stopPropagation(),r()},onKeyDown:D=>{(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),D.stopPropagation(),r())},children:t.jsx("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:_})}):null]});return t.jsx("button",{ref:b,className:k,disabled:s,onMouseEnter:T,onMouseLeave:S,...f,children:ne})});Ot.displayName="FolderButton";const Mt="w-4 h-4",Xi=u.forwardRef((e,a)=>{const s=N("folder",Mt),n=N("folderFill",Mt),r=N("arrowRight",Mt),o=N("close",Mt);return t.jsx(Ot,{ref:a,folderIcon:s,folderFillIcon:n,arrowRightIcon:r,closeIcon:o,...e})});Xi.displayName="FolderButton";const Ji=u.createContext(null);function Ae(){const e=u.useContext(Ji);if(!e)throw new Error("ChatInput compound components must be used within ChatInput.Root");return e}function Xt({value:e,onChange:a,onSend:s,placeholder:n="What can I help you with today?",disabled:r=!1,maxRows:o=6,form:l,sendButtonStatus:c="normal",showFooter:d=!0,showFolderButton:m=!0,folderButtonLabel:p="Work in a Folder",onFolderButtonClick:x,onFolderClear:g,folderPermission:v,showMoreButton:f=!0,onMoreButtonClick:b,footerLeftConfig:h,showGenerationStatus:w=!1,generationStatus:j,attachments:k,addLargeIcon:T,folderIcon:S,folderOpenIcon:P,historyIcon:A,arrowDownIcon:I,subMenuArrowIcon:_,folderFillIcon:ne,closeIcon:D,dataStyle:q,dataTheme:ie,children:X,...G}){const[ae,le]=u.useState(""),C=u.useRef(null),[O,J]=u.useState(!1),ue=e!==void 0,U=ue?e:ae,Q=u.useCallback(L=>{C.current=L},[]),me=u.useCallback(L=>{ue||le(L),a?.(L)},[ue,a]),we=u.useCallback(()=>{const M=(C.current?.value??U??"").trim();!M||r||!s||(s(M),ue||le(""),C.current&&(C.current.style.height="auto"))},[U,r,s,ue]),Ue=u.useCallback(L=>{L.key==="Enter"&&!L.shiftKey&&!L.nativeEvent.isComposing&&(L.preventDefault(),we()),G.onKeyDown?.(L)},[we,G]),re=u.useCallback(()=>J(!0),[]),Qe=u.useCallback(()=>{J(!1),g?.()},[g]),Re=U.trim().length>0&&!r,ze={dataStyle:q,dataTheme:ie,value:U,onChange:me,onSend:s,disabled:r,placeholder:n,maxRows:o,form:l,textareaRef:C,setTextareaRef:Q,handleSend:we,handleKeyDown:Ue,sendButtonStatus:c,canSend:Re,hasFolderSelected:O,setHasFolderSelected:J,handleFolderSelect:re,handleFolderClear:Qe,folderPermission:v,footerLeftConfig:h,showFolderButton:m,showMoreButton:f,folderButtonLabel:p,onFolderButtonClick:x,onFolderClear:g,onMoreButtonClick:b,addLargeIcon:T,folderIcon:S,folderOpenIcon:P,historyIcon:A,arrowDownIcon:I,subMenuArrowIcon:_,folderFillIcon:ne,closeIcon:D,showGenerationStatus:w,generationStatus:j,attachments:k,showFooter:d};return t.jsx(Ji.Provider,{value:ze,children:X})}Xt.displayName="ChatInputRootProvider";const Hm=F.cva("inline-flex items-center justify-center rounded-full p-1.5 transition-colors duration-200 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer transition-transform active:scale-95 active:translate-y-px",{variants:{status:{normal:"SendButton-send bg-bg-highlight hover:bg-bg-highlight-hover active:opacity-80",generating:"bg-primary hover:bg-primary-hover active:opacity-80",recording:"SendButton-send bg-bg-highlight hover:bg-bg-highlight-hover active:opacity-80",stopRecording:"bg-error-bg hover:bg-error-bg-hover active:opacity-80"}},defaultVariants:{status:"normal"}}),Gm=F.cva("inline-flex h-4 w-4 shrink-0 items-center justify-center [&>*]:block [&>*]:leading-none",{variants:{status:{normal:"text-text-on-primary",generating:"text-text-on-primary",recording:"text-text-on-primary",stopRecording:"text-error"}},defaultVariants:{status:"normal"}}),ya="w-4 h-4",vs=u.forwardRef(({status:e="normal",disabled:a=!1,className:s,sendIcon:n,stopIcon:r,micIcon:o,...l},c)=>{const x=e==="normal"?n??t.jsx(Kd,{className:ya}):e==="generating"||e==="stopRecording"?r??t.jsx(Yd,{className:ya}):o??t.jsx(Xd,{className:ya});return t.jsx("button",{ref:c,type:"button",className:Hm({status:e,className:s}),disabled:a,...l,children:t.jsx("span",{className:Gm({status:e}),children:x})})});vs.displayName="SendButton";function qm({content:e}){const a=e.replace(/\.+$/,"");return t.jsxs("span",{className:"text-sm leading-sm font-medium text-primary-active",children:[a,t.jsx("span",{className:"status-dots-anim",style:{fontFamily:"inherit"},children:"..."})]})}const ws=({children:e,status:a,icon:s,time:n,className:r=""})=>{const o=a??(typeof e=="string"?e:null);if(!(o!=null||e!=null)&&!s&&!n)return null;const c=i("flex w-full h-9 items-center gap-2 rounded-t-xl bg-primary-bg px-3 text-sm leading-sm",r);return t.jsxs("div",{className:c,children:[t.jsx("style",{children:`
|
|
33
39
|
@keyframes status-dots {
|
|
34
40
|
0%, 100% { opacity: 0.4; }
|
|
35
41
|
50% { opacity: 1; }
|
|
@@ -37,7 +43,7 @@
|
|
|
37
43
|
.status-dots-anim {
|
|
38
44
|
animation: status-dots 1.2s ease-in-out infinite;
|
|
39
45
|
}
|
|
40
|
-
`}),s&&n.jsx("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-primary-active",children:s}),o!=null&&n.jsx(Ld,{content:String(o)}),o==null&&e!=null&&n.jsx("span",{className:"font-medium text-primary-active",children:e}),a&&n.jsx("span",{className:"ml-auto font-medium font-mono text-primary-active",children:a})]})};es.displayName="GenerationStatusBar";function _d(e,t,s){x.useEffect(()=>{const a=e.current;if(!a)return;a.style.height="auto";const o=(parseFloat(getComputedStyle(a).lineHeight)||24)*s;a.scrollHeight<=o?a.style.height=`${a.scrollHeight}px`:a.style.height=`${o}px`},[e,t,s])}const Mo=x.forwardRef(({value:e,onChange:t,placeholder:s="What can I help you with today?",disabled:a=!1,maxRows:r=6,onKeyDown:o,className:i,style:l,...c},d)=>{const p=x.useRef(null);_d(p,e,r);const m=x.useCallback(g=>{p.current=g,typeof d=="function"?d(g):d&&(d.current=g)},[d]),b=x.useCallback(g=>t?.(g.target.value),[t]),w={outline:"none",border:"none",boxShadow:"none"},u="w-full resize-none border-none bg-transparent text-sm leading-sm font-normal placeholder:text-text-tertiary overflow-y-auto scrollbar-auto outline-none shadow-none focus:outline-none focus:ring-0 focus:shadow-none focus-visible:outline-none focus-visible:ring-0 focus-visible:shadow-none [&:focus-visible]:outline-none [&:focus-visible]:ring-0 [&:focus-visible]:ring-offset-0 [&:focus-visible]:shadow-none "+(e?.trim()?"text-text":"text-text-quaternary");return n.jsx("textarea",{ref:m,value:e,onChange:b,onKeyDown:o,placeholder:s,disabled:a,rows:1,className:u,...c,style:{...l??{},...w}})});Mo.displayName="ChatInputTextarea";function Oo({open:e,onOpenChange:t,projectName:s,onAllowOnce:a,onAllowAlways:r}){return n.jsx(or,{open:e,onOpenChange:t,children:n.jsxs(Fn,{className:"p-6",children:[n.jsxs(zn,{children:[n.jsxs(Mn,{className:"text-xl leading-xl font-semibold text-text",children:['Allow Qoder Work to access and modify files in "',s,'"?']}),n.jsx(On,{className:"mt-2 text-sm leading-sm text-text-tertiary",children:"This permission applies to all files and subfolders in this directory. Qoder Work may read, update, and permanently delete files here, and may share relevant file contents with connected tools when needed. Only allow access to folders you trust."})]}),n.jsxs(Dn,{className:"mt-6 flex flex-row justify-end gap-2",children:[n.jsx($n,{className:"h-9 rounded-full px-4",children:"Cancel"}),n.jsx("button",{type:"button",className:"inline-flex h-9 items-center justify-center rounded-full px-4 text-sm leading-sm font-medium border border-border bg-bg-base text-text transition-colors hover:bg-fill-tertiary active:bg-fill-secondary",onClick:r,children:"Always Allow"}),n.jsx("button",{type:"button",className:"inline-flex h-9 items-center justify-center rounded-full px-4 text-sm leading-sm font-medium bg-text text-text-on-primary transition-opacity hover:opacity-90 active:opacity-95",onClick:a,children:"Allow"})]})]})})}Oo.displayName="FolderPermissionDialog";const Pd=["~/Projects/qoder-work-ui","~/Documents/workspace","~/Desktop/demo","~/code/my-app"],fn="mr-2 w-4 h-4 shrink-0";function $o({disabled:e,folderButtonLabel:t,folderPermission:s,onFolderButtonClick:a,onFolderClear:r,onFolderSelect:o,hasFolderSelected:i,dataStyle:l,dataTheme:c,folderIcon:d=n.jsx(La,{className:fn}),folderOpenIcon:p=n.jsx(_a,{className:fn}),historyIcon:m=n.jsx(Fa,{className:fn}),subMenuArrowIcon:b,folderFillIcon:w,closeIcon:u}){const g=s?.enable??!1,f=s?.projectName??"04_代码",[k,h]=x.useState(!1),[v,S]=x.useState(!1),[C,T]=x.useState(!1),E=x.useRef(null),I=a??(()=>{}),F=()=>{E.current?.click()},Q=()=>{E.current&&(E.current.value=""),r?.()},z=x.useCallback(M=>{M==="always"&&S(!0),h(!1),T(!0)},[]),G=M=>{if(!g){T(M);return}if(!M){T(!1);return}if(v){T(!0);return}h(!0),T(!1)},re=M=>{const $=M.target.files;$&&$.length>0&&o($)};return a?n.jsx(Pt,{label:t,onClick:I,disabled:e,folderIcon:d,folderFillIcon:w}):n.jsxs(n.Fragment,{children:[n.jsxs(Oe,{open:C,onOpenChange:G,children:[n.jsx($e,{asChild:!0,children:n.jsx(Pt,{label:t,disabled:e,selected:i,onClear:Q,folderIcon:d,folderFillIcon:w,closeIcon:u,className:"focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0"})}),n.jsxs(Te,{align:"start",side:"top",className:"min-w-50",dataStyle:l,dataTheme:c,children:[n.jsxs(we,{onClick:F,children:[d,"Add folder"]}),i&&n.jsxs(we,{onClick:F,children:[p,"Replace folder"]}),n.jsxs(Qa,{children:[n.jsxs(Ln,{subTriggerIcon:b,children:[m,"Recent folders"]}),n.jsx(_n,{collisionPadding:{bottom:24,left:8},dataStyle:l,dataTheme:c,children:Pd.map(M=>n.jsx(we,{onClick:()=>{},children:M},M))})]})]})]}),n.jsx("input",{ref:E,type:"file",webkitdirectory:"",multiple:!0,style:{display:"none"},onChange:re}),g&&n.jsx(Oo,{open:k,onOpenChange:h,projectName:f,onAllowOnce:()=>z("once"),onAllowAlways:()=>z("always")})]})}$o.displayName="ChatInputFolderSelector";function Bo({config:e,disabled:t,dataStyle:s,dataTheme:a,arrowDownIcon:r=n.jsx(ye,{className:"h-3.5 w-3.5 shrink-0 text-text-secondary"})}){const i=e.modeSwitch.options.find(l=>l.value===e.modeSwitch.value)?.icon??e.modeSwitch.icon;return n.jsxs("div",{className:"flex items-center gap-3 text-sm leading-sm text-text-secondary",children:[n.jsxs(Oe,{children:[n.jsx($e,{asChild:!0,children:n.jsxs("button",{type:"button",className:"inline-flex items-center gap-1.5 rounded-md bg-fill-secondary px-2.5 py-1.5 text-sm leading-sm text-text hover:bg-fill focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",disabled:t,children:[i!=null&&n.jsx("span",{className:"flex shrink-0 items-center [&>*]:block [&>*]:leading-none",children:i}),n.jsx("span",{children:e.modeSwitch.label}),r]})}),n.jsx(Te,{align:"start",side:"top",className:"min-w-30",dataStyle:s,dataTheme:a,children:e.modeSwitch.options.map(l=>n.jsxs(we,{onClick:()=>e.modeSwitch.onChange(l.value),className:"flex items-center justify-between gap-2",children:[n.jsxs("span",{className:"flex items-center gap-2",children:[l.icon!=null&&n.jsx("span",{className:"flex shrink-0 [&>*]:block [&>*]:leading-none [&>*]:size-4",children:l.icon}),l.label]}),e.modeSwitch.value===l.value&&n.jsx(Ie,{className:"h-4 w-4 shrink-0 text-primary"})]},l.value))})]}),n.jsxs(Oe,{children:[n.jsx($e,{asChild:!0,children:n.jsxs("button",{type:"button",className:"inline-flex items-center gap-1 text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded px-1 py-0.5 disabled:opacity-50",disabled:t,children:[n.jsx("span",{children:e.modelSwitch.label}),r]})}),n.jsx(Te,{align:"start",side:"top",className:"min-w-25",dataStyle:s,dataTheme:a,children:e.modelSwitch.options.map(l=>n.jsxs(we,{onClick:()=>e.modelSwitch.onChange(l.value),className:"flex items-center justify-between gap-2",children:[l.label,e.modelSwitch.value===l.value&&n.jsx(Ie,{className:"h-4 w-4 shrink-0 text-primary"})]},l.value))})]}),e.consumptionMultiplier.options!=null&&e.consumptionMultiplier.options.length>0&&e.consumptionMultiplier.onChange!=null?n.jsxs(Oe,{children:[n.jsx($e,{asChild:!0,children:n.jsx("button",{type:"button",className:"inline-flex items-center text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded px-1 py-0.5 disabled:opacity-50",disabled:t,children:e.consumptionMultiplier.value})}),n.jsx(Te,{align:"start",side:"top",className:"min-w-20",dataStyle:s,dataTheme:a,children:e.consumptionMultiplier.options.map(l=>n.jsxs(we,{onClick:()=>e.consumptionMultiplier.onChange?.(l.value),className:"flex items-center justify-between gap-2",children:[l.label,e.consumptionMultiplier.value===l.value&&n.jsx(Ie,{className:"h-4 w-4 shrink-0 text-primary"})]},l.value))})]}):n.jsx("span",{className:"text-text-secondary",children:e.consumptionMultiplier.value})]})}Bo.displayName="ChatInputModelSwitcher";const Fd=se.cva(["flex flex-col w-full bg-bg-base border border-primary-border rounded-xl transition-all duration-200","shadow-[0_0.25rem_1.25rem_var(--color-shadow-secondary)]","hover:shadow-[0_0.25rem_1.25rem_var(--color-shadow-secondary)]","focus-within:shadow-[0_0.25rem_1.25rem_var(--color-shadow-quaternary)]","hover:focus-within:shadow-[0_0.25rem_1.25rem_var(--color-shadow-quaternary)]"].join(" "),{variants:{disabled:{true:"opacity-50 cursor-not-allowed",false:""}},defaultVariants:{disabled:!1}}),Lt="flex flex-wrap items-center gap-2 px-3 pt-3 pb-2",zd="flex flex-1 items-center min-h-6 p-3",Dd="flex shrink-0 items-center justify-between w-full self-stretch gap-2 p-3";function ct({className:e,style:t,children:s}){return n.jsx("div",{className:y("flex min-h-9 h-9 w-[calc(100%-2*var(--radius-xl))] mx-auto items-center overflow-hidden rounded-t-xl text-sm leading-sm",e),style:t,children:s})}ct.displayName="ChatInputAbove";function dt({className:e,children:t}){const s=Pe();return n.jsx("div",{className:Fd({disabled:s.disabled,className:y("relative",e)}),children:t})}dt.displayName="ChatInputBox";function Vt({className:e,children:t}){return t?n.jsx("div",{className:y(Lt,e),children:t}):null}Vt.displayName="ChatInputAttachments";const ut=x.forwardRef(({placeholder:e="What can I help you with today?",maxRows:t=6,...s},a)=>{const r=Pe(),o=x.useCallback(i=>{r.setTextareaRef(i),typeof a=="function"?a(i):a&&(a.current=i)},[r,a]);return n.jsx("div",{className:zd,children:n.jsx(Mo,{ref:o,value:r.value,onChange:r.onChange,onKeyDown:r.handleKeyDown,placeholder:e,disabled:r.disabled,maxRows:t,...s})})});ut.displayName="ChatInputInput";function pt({className:e,children:t}){return n.jsx("div",{className:y(Dd,e),children:t})}pt.displayName="ChatInputActions";function mt({className:e,children:t}){return n.jsx("div",{className:y("flex items-center gap-2",e),children:t})}mt.displayName="ChatInputActionsLeft";function Ze({className:e,children:t}){return n.jsx("div",{className:y("flex items-center gap-2",e),children:t})}Ze.displayName="ChatInputActionsRight";function qt({className:e,style:t,...s}){return n.jsx("button",{type:"button",className:y("absolute top-2 right-2 z-10 flex h-8 w-8 items-center justify-center rounded-lg text-text-secondary hover:bg-fill-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",e),style:{...t},...s})}qt.displayName="ChatInputExpandButton";function ft(){const e=Pe();return e.showFolderButton?n.jsx($o,{disabled:e.disabled,folderButtonLabel:e.folderButtonLabel,folderPermission:e.folderPermission,onFolderButtonClick:e.onFolderButtonClick,onFolderClear:e.handleFolderClear,onFolderSelect:e.handleFolderSelect,hasFolderSelected:e.hasFolderSelected,dataStyle:e.dataStyle,dataTheme:e.dataTheme,folderIcon:e.folderIcon,folderOpenIcon:e.folderOpenIcon,historyIcon:e.historyIcon,subMenuArrowIcon:e.subMenuArrowIcon,folderFillIcon:e.folderFillIcon,closeIcon:e.closeIcon}):null}ft.displayName="ChatInputFolderButton";function gt(){const e=Pe();return e.showMoreButton?n.jsx(je,{variant:"ghost",icon:e.addLargeIcon??n.jsx(Da,{className:"h-5 w-5"}),onClick:e.onMoreButtonClick,disabled:e.disabled}):null}gt.displayName="ChatInputMoreButton";function Ft(){const e=Pe();return n.jsx(Jn,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}Ft.displayName="ChatInputSendButton";function xt(){const e=Pe();return e.footerLeftConfig?n.jsx(Bo,{config:e.footerLeftConfig,disabled:e.disabled,arrowDownIcon:e.arrowDownIcon,dataStyle:e.dataStyle,dataTheme:e.dataTheme}):n.jsxs(n.Fragment,{children:[n.jsx(ft,{}),n.jsx(gt,{})]})}xt.displayName="ChatInputFooterLeft";const Go=x.forwardRef(function({className:t,hasAbove:s=!1,hasAttachments:a=!1,hasFooter:r=!0,aboveOverlap:o=!0},i){const l=Pe(),c=()=>{if(!a||l.attachments==null||l.attachments===!1)return null;const m=l.attachments;return typeof m=="object"&&!x.isValidElement(m)&&("files"in m||"images"in m)?n.jsxs(n.Fragment,{children:[m.files&&n.jsx("div",{className:Lt,children:m.files}),m.images&&n.jsx("div",{className:Lt,children:m.images})]}):n.jsx("div",{className:Lt,children:m})},d=()=>n.jsx(xt,{}),p=n.jsxs(dt,{className:y(!r&&!a&&"min-h-14"),children:[c(),n.jsx(ut,{ref:i}),n.jsx(pt,{children:r?n.jsxs(n.Fragment,{children:[n.jsx(mt,{children:d()}),n.jsx("div",{className:"flex-1 h-5"}),n.jsx(Ze,{children:n.jsx(Ft,{})})]}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"flex-1 h-5"}),n.jsx(Ze,{children:n.jsx(Ft,{})})]})})]});return s&&l.showGenerationStatus&&l.generationStatus?n.jsxs("div",{className:y("flex flex-col w-full",t),children:[n.jsx(ct,{children:n.jsx(es,{status:typeof l.generationStatus?.content=="string"?l.generationStatus.content:void 0,icon:l.generationStatus?.icon,time:l.generationStatus?.time,children:l.generationStatus?.content})}),p]}):n.jsx("div",{className:t,children:p})});Go.displayName="ChatInputDefaultLayout";function Md(e){return e==null||e===!1?!1:typeof e=="object"&&!x.isValidElement(e)?!!e.files||!!e.images:!0}const Od=x.forwardRef(function(t,s){const a=Md(t.attachments);return n.jsx(Ut,{...t,children:n.jsx(Go,{ref:s,className:t.className,hasAbove:t.showGenerationStatus,hasAttachments:a,hasFooter:t.showFooter,aboveOverlap:!0})})}),de=Od;de.displayName="ChatInput";de.Root=Ut;de.Above=ct;de.Box=dt;de.Attachments=Vt;de.Input=ut;de.Actions=pt;de.ActionsLeft=mt;de.ActionsRight=Ze;de.ExpandButton=qt;de.FolderButton=ft;de.MoreButton=gt;de.SendButton=Ft;de.FooterLeft=xt;const $d=de,gn="w-4 h-4",ts=x.forwardRef((e,t)=>{const s=R("send",gn),a=R("stop",gn),r=R("mic",gn);return n.jsx(Jn,{ref:t,sendIcon:s,stopIcon:a,micIcon:r,...e})});ts.displayName="SendButton";function ns(e){const{style:t,theme:s}=me(),a=R("more","h-5 w-5 shrink-0"),r=R("folder","mr-2 w-4 h-4 shrink-0"),o=R("folderOpen","mr-2 w-4 h-4 shrink-0"),i=R("history","mr-2 w-4 h-4 shrink-0"),l=R("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),c=R("arrowRight","h-4 w-4 shrink-0"),d=R("folderFill","w-4 h-4 shrink-0"),p=R("close","w-4 h-4 shrink-0");return n.jsx(Ut,{...e,dataStyle:t,dataTheme:s,addLargeIcon:a,folderIcon:r,folderOpenIcon:o,historyIcon:i,arrowDownIcon:l,subMenuArrowIcon:c,folderFillIcon:d,closeIcon:p})}ns.displayName="ChatInputRoot";const Ho=x.forwardRef(function(t,s){const{style:a,theme:r}=me(),o=R("more","h-5 w-5 shrink-0"),i=R("folder","mr-2 w-4 h-4 shrink-0"),l=R("folderOpen","mr-2 w-4 h-4 shrink-0"),c=R("history","mr-2 w-4 h-4 shrink-0"),d=R("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),p=R("arrowRight","h-4 w-4 shrink-0"),m=R("folderFill","w-4 h-4 shrink-0"),b=R("close","w-4 h-4 shrink-0");return n.jsx($d,{ref:s,dataStyle:a,dataTheme:r,addLargeIcon:o,folderIcon:i,folderOpenIcon:l,historyIcon:c,arrowDownIcon:d,subMenuArrowIcon:p,folderFillIcon:m,closeIcon:b,...t})});Ho.displayName="ChatInput";function ss(){const e=Pe();return n.jsx(ts,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}ss.displayName="ChatInputSendButton";const Bd=Object.assign(Ho,{Root:ns,Above:ct,Box:dt,Attachments:Vt,Input:ut,Actions:pt,ActionsLeft:mt,ActionsRight:Ze,ExpandButton:qt,FolderButton:ft,MoreButton:gt,SendButton:ss,FooterLeft:xt}),Gd="w-3.5 h-3.5 shrink-0 text-text-tertiary";function Uo({items:e,onSelect:t,singleLineText:s=!1,className:a,defaultIcon:r}){const o=e.slice(0,3),i=r??n.jsx(Pa,{className:Gd});return o.length===0?null:n.jsx("div",{className:y("flex flex-col gap-3 w-full min-w-0",!s&&"max-w-lg",a),role:"list","aria-label":"Related prompt suggestions",children:o.map((l,c)=>{const d=l.icon??i,p=n.jsxs("button",{type:"button",onClick:()=>t?.(l),className:y("flex items-center gap-2 w-full min-w-0 text-left","rounded-md px-0 py-0 min-h-0","text-xs leading-xs font-normal text-text-tertiary","transition-colors",t&&"cursor-pointer hover:text-text",!t&&"cursor-default"),role:"listitem",children:[n.jsx("span",{className:"w-3.5 h-3.5 flex-shrink-0 flex items-center justify-center",children:d}),n.jsx("span",{className:y("min-w-0 flex-1",s?"truncate":"line-clamp-2"),children:l.text})]});return s?n.jsx(at,{content:l.text,side:"top",children:p},`${l.prompt}-${c}`):n.jsx(x.Fragment,{children:p},`${l.prompt}-${c}`)})})}Uo.displayName="RelatedPrompts";const Hd="w-3.5 h-3.5 shrink-0 text-text-tertiary";function Vo(e){const t=R("chat3",Hd);return n.jsx(Uo,{defaultIcon:t,...e})}Vo.displayName="RelatedPrompts";const Ud="Repo Wiki",Vd=["English","中文","日本語","한국어"],qd="h-3.5 w-3.5",Wd="h-3 w-3",Ms="h-4 w-4";function qo({type:e="wiki",title:t,description:s,highlightText:a=Ud,language:r="English",rechargeText:o,onClose:i,onGenerate:l,onRecharge:c,onLanguageChange:d,closeIcon:p,arrowDownSIcon:m,suggestionIcon:b,dataStyle:w,dataTheme:u}){const g=e==="credits",f=p??n.jsx(_e,{className:qd}),k=m??n.jsx(ye,{className:Wd}),h=b??(g?n.jsx(it,{className:Ms}):n.jsx(Tn,{className:Ms})),v=t??(g?"Credits Exhausted":"Free Wiki Generation Available"),S=g?"Your credits have been exhausted. Please recharge to continue using.":`Generate ${a} for this repository to boost AI agent with structured context.`,C=s??S,T=()=>{if(!C.includes(a))return n.jsx("span",{children:C});const E=C.split(a),I=[];for(let F=0;F<E.length;F++)E[F]&&I.push(n.jsx("span",{children:E[F]},`text-${F}`)),F<E.length-1&&I.push(n.jsx("span",{className:"text-[var(--color-link)]",children:a},`highlight-${F}`));return n.jsx(n.Fragment,{children:I})};return n.jsxs("div",{className:"relative rounded-lg border border-border-tertiary bg-bg-base p-3",children:[i&&n.jsx("button",{type:"button",onClick:i,className:"absolute top-3 right-3 flex h-4 w-4 cursor-pointer items-center justify-center text-text-secondary transition-colors duration-200 hover:text-text","aria-label":"Close",children:f}),n.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[n.jsx("div",{className:y("flex h-4 w-4 shrink-0 items-center justify-center",g?"text-warning":"text-primary"),children:h}),n.jsx("h3",{className:"min-w-0 flex-1 text-base leading-base font-semibold text-text",children:v})]}),n.jsx(n.Fragment,{children:n.jsx(be,{scrollbarVisibility:"auto",maxHeight:96,className:"mb-2 ml-6 text-xs leading-xs text-text-tertiary",children:T()})}),n.jsx("div",{className:"flex items-center justify-end gap-2",children:g?o&&n.jsx(ne,{variant:"secondary",onClick:c,children:o??"前往充值"}):n.jsxs(n.Fragment,{children:[n.jsxs(Oe,{children:[n.jsx($e,{asChild:!0,children:n.jsxs(ne,{variant:"ghost",className:"flex items-center gap-1",children:[n.jsx("span",{children:r}),k]})}),n.jsx(Te,{dataStyle:w,dataTheme:u,children:Vd.map(E=>n.jsx(we,{onSelect:()=>d?.(E),children:E},E))})]}),n.jsx(ne,{variant:"secondary",onClick:l,children:"Generate"})]})})]})}qo.displayName="HintBanner";const Zd="h-3.5 w-3.5",Qd="h-3 w-3",Yd="h-4 w-4";function Wo(e){const{style:t,theme:s}=me(),a=R("close",Zd),r=R("arrowDownS",Qd),o=e.type==="credits",i=R(o?"warning":"sparkling",Yd);return n.jsx(qo,{closeIcon:a,arrowDownSIcon:r,suggestionIcon:i,dataStyle:t,dataTheme:s,...e})}Wo.displayName="HintBanner";function Kd(){return n.jsxs("span",{className:"relative block w-5 h-5 shrink-0 flex items-center justify-center","aria-hidden":!0,children:[n.jsx("style",{children:`
|
|
46
|
+
`}),s&&t.jsx("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-primary-active",children:s}),o!=null&&t.jsx(qm,{content:String(o)}),o==null&&e!=null&&t.jsx("span",{className:"font-medium text-primary-active",children:e}),n&&t.jsx("span",{className:"ml-auto font-medium font-mono text-primary-active",children:n})]})};ws.displayName="GenerationStatusBar";function Um(e,a,s){u.useEffect(()=>{const n=e.current;if(!n)return;n.style.height="auto";const o=(parseFloat(getComputedStyle(n).lineHeight)||24)*s;n.scrollHeight<=o?n.style.height=`${n.scrollHeight}px`:n.style.height=`${o}px`},[e,a,s])}const el=u.forwardRef(({value:e,onChange:a,placeholder:s="What can I help you with today?",disabled:n=!1,maxRows:r=6,onKeyDown:o,className:l,style:c,...d},m)=>{const p=u.useRef(null);Um(p,e,r);const x=u.useCallback(b=>{p.current=b,typeof m=="function"?m(b):m&&(m.current=b)},[m]),g=u.useCallback(b=>a?.(b.target.value),[a]),v={outline:"none",border:"none",boxShadow:"none"},f="w-full resize-none border-none bg-transparent text-sm leading-sm font-normal placeholder:text-text-tertiary overflow-y-auto scrollbar-auto outline-none shadow-none focus:outline-none focus:ring-0 focus:shadow-none focus-visible:outline-none focus-visible:ring-0 focus-visible:shadow-none [&:focus-visible]:outline-none [&:focus-visible]:ring-0 [&:focus-visible]:ring-offset-0 [&:focus-visible]:shadow-none "+(e?.trim()?"text-text":"text-text-quaternary");return t.jsx("textarea",{ref:x,value:e,onChange:g,onKeyDown:o,placeholder:s,disabled:n,rows:1,className:[f,l].filter(Boolean).join(" "),...d,style:{...c??{},...v}})});el.displayName="ChatInputTextarea";function tl({open:e,onOpenChange:a,projectName:s,onAllowOnce:n,onAllowAlways:r}){return t.jsx(Tr,{open:e,onOpenChange:a,children:t.jsxs(Ga,{className:"p-6",children:[t.jsxs(qa,{children:[t.jsxs(Qa,{className:"text-xl leading-xl font-semibold text-text",children:['Allow Spark Design to access and modify files in "',s,'"?']}),t.jsx(Wa,{className:"mt-2 text-sm leading-sm text-text-tertiary",children:"This permission applies to all files and subfolders in this directory. Spark Design may read, update, and permanently delete files here, and may share relevant file contents with connected tools when needed. Only allow access to folders you trust."})]}),t.jsxs(Ua,{className:"mt-6 flex flex-row justify-end gap-2",children:[t.jsx(Za,{className:"h-9 rounded-full px-4",children:"Cancel"}),t.jsx("button",{type:"button",className:"inline-flex h-9 items-center justify-center rounded-full px-4 text-sm leading-sm font-medium border border-border bg-bg-base text-text transition-colors hover:bg-fill-tertiary active:bg-fill-secondary",onClick:r,children:"Always Allow"}),t.jsx("button",{type:"button",className:"inline-flex h-9 items-center justify-center rounded-full px-4 text-sm leading-sm font-medium bg-text text-text-on-primary transition-opacity hover:opacity-90 active:opacity-95",onClick:n,children:"Allow"})]})]})})}tl.displayName="FolderPermissionDialog";const Qm=["~/Projects/spark-design-app","~/Documents/workspace","~/Desktop/demo","~/code/my-app"],ba="mr-2 w-4 h-4 shrink-0";function al({disabled:e,folderButtonLabel:a,folderPermission:s,onFolderButtonClick:n,onFolderClear:r,onFolderSelect:o,hasFolderSelected:l,dataStyle:c,dataTheme:d,folderIcon:m=t.jsx(sr,{className:ba}),folderOpenIcon:p=t.jsx(nr,{className:ba}),historyIcon:x=t.jsx(or,{className:ba}),subMenuArrowIcon:g,folderFillIcon:v,closeIcon:f}){const b=s?.enable??!1,h=s?.projectName??"04_代码",[w,j]=u.useState(!1),[k,T]=u.useState(!1),[S,P]=u.useState(!1),A=u.useRef(null),I=n??(()=>{}),_=()=>{A.current?.click()},ne=()=>{A.current&&(A.current.value=""),r?.()},D=u.useCallback(X=>{X==="always"&&T(!0),j(!1),P(!0)},[]),q=X=>{if(!b){P(X);return}if(!X){P(!1);return}if(k){P(!0);return}j(!0),P(!1)},ie=X=>{const G=X.target.files;G&&G.length>0&&o(G)};return n?t.jsx(Ot,{label:a,onClick:I,disabled:e,folderIcon:m,folderFillIcon:v}):t.jsxs(t.Fragment,{children:[t.jsxs($e,{open:S,onOpenChange:q,children:[t.jsx(Oe,{asChild:!0,children:t.jsx(Ot,{label:a,disabled:e,selected:l,onClear:ne,folderIcon:m,folderFillIcon:v,closeIcon:f,className:"focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0"})}),t.jsxs(Me,{align:"start",side:"top",className:"min-w-50",dataStyle:c,dataTheme:d,children:[t.jsxs(je,{onClick:_,children:[m,"Add folder"]}),l&&t.jsxs(je,{onClick:_,children:[p,"Replace folder"]}),t.jsxs(br,{children:[t.jsxs(Ba,{subTriggerIcon:g,children:[x,"Recent folders"]}),t.jsx(Va,{collisionPadding:{bottom:24,left:8},dataStyle:c,dataTheme:d,children:Qm.map(X=>t.jsx(je,{onClick:()=>{},children:X},X))})]})]})]}),t.jsx("input",{ref:A,type:"file",webkitdirectory:"",multiple:!0,style:{display:"none"},onChange:ie}),b&&t.jsx(tl,{open:w,onOpenChange:j,projectName:h,onAllowOnce:()=>D("once"),onAllowAlways:()=>D("always")})]})}al.displayName="ChatInputFolderSelector";function sl({config:e,disabled:a,dataStyle:s,dataTheme:n,arrowDownIcon:r=t.jsx(be,{className:"h-3.5 w-3.5 shrink-0 text-text-secondary"})}){const l=e.modeSwitch.options.find(c=>c.value===e.modeSwitch.value)?.icon??e.modeSwitch.icon;return t.jsxs("div",{className:"flex items-center gap-3 text-sm leading-sm text-text-secondary",children:[t.jsxs($e,{children:[t.jsx(Oe,{asChild:!0,children:t.jsxs("button",{type:"button",className:"inline-flex items-center gap-1.5 rounded-md bg-fill-secondary px-2.5 py-1.5 text-sm leading-sm text-text hover:bg-fill focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",disabled:a,children:[l!=null&&t.jsx("span",{className:"flex shrink-0 items-center [&>*]:block [&>*]:leading-none",children:l}),t.jsx("span",{children:e.modeSwitch.label}),r]})}),t.jsx(Me,{align:"start",side:"top",className:"min-w-30",dataStyle:s,dataTheme:n,children:e.modeSwitch.options.map(c=>t.jsxs(je,{onClick:()=>e.modeSwitch.onChange(c.value),className:"flex items-center justify-between gap-2",children:[t.jsxs("span",{className:"flex items-center gap-2",children:[c.icon!=null&&t.jsx("span",{className:"flex shrink-0 [&>*]:block [&>*]:leading-none [&>*]:size-4",children:c.icon}),c.label]}),e.modeSwitch.value===c.value&&t.jsx(ye,{className:"h-4 w-4 shrink-0 text-primary"})]},c.value))})]}),t.jsxs($e,{children:[t.jsx(Oe,{asChild:!0,children:t.jsxs("button",{type:"button",className:"inline-flex items-center gap-1 text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded px-1 py-0.5 disabled:opacity-50",disabled:a,children:[t.jsx("span",{children:e.modelSwitch.label}),r]})}),t.jsx(Me,{align:"start",side:"top",className:"min-w-25",dataStyle:s,dataTheme:n,children:e.modelSwitch.options.map(c=>t.jsxs(je,{onClick:()=>e.modelSwitch.onChange(c.value),className:"flex items-center justify-between gap-2",children:[c.label,e.modelSwitch.value===c.value&&t.jsx(ye,{className:"h-4 w-4 shrink-0 text-primary"})]},c.value))})]}),e.consumptionMultiplier.options!=null&&e.consumptionMultiplier.options.length>0&&e.consumptionMultiplier.onChange!=null?t.jsxs($e,{children:[t.jsx(Oe,{asChild:!0,children:t.jsx("button",{type:"button",className:"inline-flex items-center text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded px-1 py-0.5 disabled:opacity-50",disabled:a,children:e.consumptionMultiplier.value})}),t.jsx(Me,{align:"start",side:"top",className:"min-w-20",dataStyle:s,dataTheme:n,children:e.consumptionMultiplier.options.map(c=>t.jsxs(je,{onClick:()=>e.consumptionMultiplier.onChange?.(c.value),className:"flex items-center justify-between gap-2",children:[c.label,e.consumptionMultiplier.value===c.value&&t.jsx(ye,{className:"h-4 w-4 shrink-0 text-primary"})]},c.value))})]}):t.jsx("span",{className:"text-text-secondary",children:e.consumptionMultiplier.value})]})}sl.displayName="ChatInputModelSwitcher";const Wm=F.cva(["flex flex-col w-full bg-bg-base border border-primary-border rounded-xl transition-all duration-200","shadow-[0_0.25rem_1.25rem_var(--color-shadow-secondary)]","hover:shadow-[0_0.25rem_1.25rem_var(--color-shadow-secondary)]","focus-within:shadow-[0_0.25rem_1.25rem_var(--color-shadow-quaternary)]","hover:focus-within:shadow-[0_0.25rem_1.25rem_var(--color-shadow-quaternary)]"].join(" "),{variants:{disabled:{true:"opacity-50 cursor-not-allowed",false:""}},defaultVariants:{disabled:!1}}),Et="flex flex-wrap items-center gap-2 px-3 pt-3 pb-2",Zm="flex flex-1 items-center min-h-6 p-3",Km="flex shrink-0 items-center justify-between w-full self-stretch gap-2 p-3";function ft({className:e,style:a,children:s}){return t.jsx("div",{className:i("flex min-h-9 h-9 w-[calc(100%-2*var(--radius-xl))] mx-auto items-center overflow-hidden rounded-t-xl text-sm leading-sm",e),style:a,children:s})}ft.displayName="ChatInputAbove";function ht({className:e,children:a}){const s=Ae();return t.jsx("div",{className:Wm({disabled:s.disabled,className:i("relative",e)}),children:a})}ht.displayName="ChatInputBox";function Jt({className:e,children:a}){return a?t.jsx("div",{className:i(Et,e),children:a}):null}Jt.displayName="ChatInputAttachments";const gt=u.forwardRef(({placeholder:e,maxRows:a,...s},n)=>{const r=Ae(),o=u.useCallback(l=>{r.setTextareaRef(l),typeof n=="function"?n(l):n&&(n.current=l)},[r,n]);return t.jsx("div",{className:Zm,children:t.jsx(el,{ref:o,value:r.value,onChange:r.onChange,onKeyDown:r.handleKeyDown,placeholder:e??r.placeholder,disabled:r.disabled,maxRows:a??r.maxRows,...s})})});gt.displayName="ChatInputInput";function yt({className:e,children:a}){return t.jsx("div",{className:i(Km,e),children:a})}yt.displayName="ChatInputActions";function bt({className:e,children:a}){return t.jsx("div",{className:i("flex items-center gap-2",e),children:a})}bt.displayName="ChatInputActionsLeft";function Je({className:e,children:a}){return t.jsx("div",{className:i("flex items-center gap-2",e),children:a})}Je.displayName="ChatInputActionsRight";function ea({className:e,style:a,...s}){return t.jsx("button",{type:"button",className:i("absolute top-2 right-2 z-10 flex h-8 w-8 items-center justify-center rounded-lg text-text-secondary hover:bg-fill-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",e),style:{...a},...s})}ea.displayName="ChatInputExpandButton";function vt(){const e=Ae();return e.showFolderButton?t.jsx(al,{disabled:e.disabled,folderButtonLabel:e.folderButtonLabel,folderPermission:e.folderPermission,onFolderButtonClick:e.onFolderButtonClick,onFolderClear:e.handleFolderClear,onFolderSelect:e.handleFolderSelect,hasFolderSelected:e.hasFolderSelected,dataStyle:e.dataStyle,dataTheme:e.dataTheme,folderIcon:e.folderIcon,folderOpenIcon:e.folderOpenIcon,historyIcon:e.historyIcon,subMenuArrowIcon:e.subMenuArrowIcon,folderFillIcon:e.folderFillIcon,closeIcon:e.closeIcon}):null}vt.displayName="ChatInputFolderButton";function wt(){const e=Ae();return e.showMoreButton?t.jsx(Ne,{variant:"ghost",icon:e.addLargeIcon??t.jsx(Oa,{className:"h-5 w-5"}),onClick:e.onMoreButtonClick,disabled:e.disabled}):null}wt.displayName="ChatInputMoreButton";function Bt(){const e=Ae();return t.jsx(vs,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}Bt.displayName="ChatInputSendButton";function kt(){const e=Ae();return e.footerLeftConfig?t.jsx(sl,{config:e.footerLeftConfig,disabled:e.disabled,arrowDownIcon:e.arrowDownIcon,dataStyle:e.dataStyle,dataTheme:e.dataTheme}):t.jsxs(t.Fragment,{children:[t.jsx(vt,{}),t.jsx(wt,{})]})}kt.displayName="ChatInputFooterLeft";const nl=u.forwardRef(function({className:a,hasAbove:s=!1,hasAttachments:n=!1,hasFooter:r=!0,aboveOverlap:o=!0},l){const c=Ae(),d=()=>{if(!n||c.attachments==null||c.attachments===!1)return null;const x=c.attachments;return typeof x=="object"&&!u.isValidElement(x)&&("files"in x||"images"in x)?t.jsxs(t.Fragment,{children:[x.files&&t.jsx("div",{className:Et,children:x.files}),x.images&&t.jsx("div",{className:Et,children:x.images})]}):t.jsx("div",{className:Et,children:x})},m=()=>t.jsx(kt,{}),p=t.jsxs(ht,{className:i(!r&&!n&&"min-h-14"),children:[d(),t.jsx(gt,{ref:l}),t.jsx(yt,{children:r?t.jsxs(t.Fragment,{children:[t.jsx(bt,{children:m()}),t.jsx("div",{className:"flex-1 h-5"}),t.jsx(Je,{children:t.jsx(Bt,{})})]}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"flex-1 h-5"}),t.jsx(Je,{children:t.jsx(Bt,{})})]})})]});return s&&c.showGenerationStatus&&c.generationStatus?t.jsxs("div",{className:i("flex flex-col w-full",a),children:[t.jsx(ft,{children:t.jsx(ws,{status:typeof c.generationStatus?.content=="string"?c.generationStatus.content:void 0,icon:c.generationStatus?.icon,time:c.generationStatus?.time,children:c.generationStatus?.content})}),p]}):t.jsx("div",{className:a,children:p})});nl.displayName="ChatInputDefaultLayout";function Ym(e){return e==null||e===!1?!1:typeof e=="object"&&!u.isValidElement(e)?!!e.files||!!e.images:!0}const Xm=u.forwardRef(function(a,s){const n=Ym(a.attachments);return t.jsx(Xt,{...a,children:t.jsx(nl,{ref:s,className:a.className,hasAbove:a.showGenerationStatus,hasAttachments:n,hasFooter:a.showFooter,aboveOverlap:!0})})}),xe=Xm;xe.displayName="ChatInput";xe.Root=Xt;xe.Above=ft;xe.Box=ht;xe.Attachments=Jt;xe.Input=gt;xe.Actions=yt;xe.ActionsLeft=bt;xe.ActionsRight=Je;xe.ExpandButton=ea;xe.FolderButton=vt;xe.MoreButton=wt;xe.SendButton=Bt;xe.FooterLeft=kt;const Jm=xe,va="w-4 h-4",ks=u.forwardRef((e,a)=>{const s=N("send",va),n=N("stop",va),r=N("mic",va);return t.jsx(vs,{ref:a,sendIcon:s,stopIcon:n,micIcon:r,...e})});ks.displayName="SendButton";function js(e){const{style:a,theme:s}=de(),n=N("more","h-5 w-5 shrink-0"),r=N("folder","mr-2 w-4 h-4 shrink-0"),o=N("folderOpen","mr-2 w-4 h-4 shrink-0"),l=N("history","mr-2 w-4 h-4 shrink-0"),c=N("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),d=N("arrowRight","h-4 w-4 shrink-0"),m=N("folderFill","w-4 h-4 shrink-0"),p=N("close","w-4 h-4 shrink-0");return t.jsx(Xt,{...e,dataStyle:a,dataTheme:s,addLargeIcon:n,folderIcon:r,folderOpenIcon:o,historyIcon:l,arrowDownIcon:c,subMenuArrowIcon:d,folderFillIcon:m,closeIcon:p})}js.displayName="ChatInputRoot";const rl=u.forwardRef(function(a,s){const{style:n,theme:r}=de(),o=N("more","h-5 w-5 shrink-0"),l=N("folder","mr-2 w-4 h-4 shrink-0"),c=N("folderOpen","mr-2 w-4 h-4 shrink-0"),d=N("history","mr-2 w-4 h-4 shrink-0"),m=N("arrowDownS","h-3.5 w-3.5 shrink-0 text-text-secondary"),p=N("arrowRight","h-4 w-4 shrink-0"),x=N("folderFill","w-4 h-4 shrink-0"),g=N("close","w-4 h-4 shrink-0");return t.jsx(Jm,{ref:s,dataStyle:n,dataTheme:r,addLargeIcon:o,folderIcon:l,folderOpenIcon:c,historyIcon:d,arrowDownIcon:m,subMenuArrowIcon:p,folderFillIcon:x,closeIcon:g,...a})});rl.displayName="ChatInput";function Ns(){const e=Ae();return t.jsx(ks,{disabled:!e.canSend||e.disabled,status:e.sendButtonStatus,...e.form?{type:"submit",form:e.form}:{onClick:e.handleSend}})}Ns.displayName="ChatInputSendButton";const ep=Object.assign(rl,{Root:js,Above:ft,Box:ht,Attachments:Jt,Input:gt,Actions:yt,ActionsLeft:bt,ActionsRight:Je,ExpandButton:ea,FolderButton:vt,MoreButton:wt,SendButton:Ns,FooterLeft:kt}),tp="w-3.5 h-3.5 shrink-0 text-text-tertiary";function ol({items:e,onSelect:a,singleLineText:s=!1,className:n,defaultIcon:r}){const o=e.slice(0,3),l=r??t.jsx(rr,{className:tp});return o.length===0?null:t.jsx("div",{className:i("flex flex-col gap-3 w-full min-w-0",!s&&"max-w-lg",n),role:"list","aria-label":"Related prompt suggestions",children:o.map((c,d)=>{const m=c.icon??l,p=t.jsxs("button",{type:"button",onClick:()=>a?.(c),className:i("flex items-center gap-2 w-full min-w-0 text-left","rounded-md px-0 py-0 min-h-0","text-xs leading-xs font-normal text-text-tertiary","transition-colors",a&&"cursor-pointer hover:text-text",!a&&"cursor-default"),role:"listitem",children:[t.jsx("span",{className:"w-3.5 h-3.5 flex-shrink-0 flex items-center justify-center",children:m}),t.jsx("span",{className:i("min-w-0 flex-1",s?"truncate":"line-clamp-2"),children:c.text})]});return s?t.jsx(Ye,{content:c.text,side:"top",children:p},`${c.prompt}-${d}`):t.jsx(u.Fragment,{children:p},`${c.prompt}-${d}`)})})}ol.displayName="RelatedPrompts";const ap="w-3.5 h-3.5 shrink-0 text-text-tertiary";function il(e){const a=N("chat3",ap);return t.jsx(ol,{defaultIcon:a,...e})}il.displayName="RelatedPrompts";const sp="Repo Wiki",np=["English","中文","日本語","한국어"],rp="h-3.5 w-3.5",op="h-3 w-3",rn="h-4 w-4";function ll({type:e="wiki",title:a,description:s,highlightText:n=sp,language:r="English",rechargeText:o,onClose:l,onGenerate:c,onRecharge:d,onLanguageChange:m,closeIcon:p,arrowDownSIcon:x,suggestionIcon:g,dataStyle:v,dataTheme:f}){const b=e==="credits",h=p??t.jsx(Ce,{className:rp}),w=x??t.jsx(be,{className:op}),j=g??(b?t.jsx(mt,{className:rn}):t.jsx($a,{className:rn})),k=a??(b?"Credits Exhausted":"Free Wiki Generation Available"),T=b?"Your credits have been exhausted. Please recharge to continue using.":`Generate ${n} for this repository to boost AI agent with structured context.`,S=s??T,P=()=>{if(!S.includes(n))return t.jsx("span",{children:S});const A=S.split(n),I=[];for(let _=0;_<A.length;_++)A[_]&&I.push(t.jsx("span",{children:A[_]},`text-${_}`)),_<A.length-1&&I.push(t.jsx("span",{className:"text-[var(--color-link)]",children:n},`highlight-${_}`));return t.jsx(t.Fragment,{children:I})};return t.jsxs("div",{className:"relative rounded-lg border border-border-tertiary bg-bg-base p-3",children:[l&&t.jsx("button",{type:"button",onClick:l,className:"absolute top-3 right-3 flex h-4 w-4 cursor-pointer items-center justify-center text-text-secondary transition-colors duration-200 hover:text-text","aria-label":"Close",children:h}),t.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[t.jsx("div",{className:i("flex h-4 w-4 shrink-0 items-center justify-center",b?"text-warning":"text-primary"),children:j}),t.jsx("h3",{className:"min-w-0 flex-1 text-base leading-base font-semibold text-text",children:k})]}),t.jsx(t.Fragment,{children:t.jsx(ve,{scrollbarVisibility:"auto",maxHeight:96,className:"mb-2 ml-6 text-xs leading-xs text-text-tertiary",children:P()})}),t.jsx("div",{className:"flex items-center justify-end gap-2",children:b?o&&t.jsx(W,{variant:"secondary",onClick:d,children:o??"前往充值"}):t.jsxs(t.Fragment,{children:[t.jsxs($e,{children:[t.jsx(Oe,{asChild:!0,children:t.jsxs(W,{variant:"ghost",className:"flex items-center gap-1",children:[t.jsx("span",{children:r}),w]})}),t.jsx(Me,{dataStyle:v,dataTheme:f,children:np.map(A=>t.jsx(je,{onSelect:()=>m?.(A),children:A},A))})]}),t.jsx(W,{variant:"secondary",onClick:c,children:"Generate"})]})})]})}ll.displayName="HintBanner";const ip="h-3.5 w-3.5",lp="h-3 w-3",cp="h-4 w-4";function cl(e){const{style:a,theme:s}=de(),n=N("close",ip),r=N("arrowDownS",lp),o=e.type==="credits",l=N(o?"warning":"sparkling",cp);return t.jsx(ll,{closeIcon:n,arrowDownSIcon:r,suggestionIcon:l,dataStyle:a,dataTheme:s,...e})}cl.displayName="HintBanner";function dp(){return t.jsxs("span",{className:"relative block w-5 h-5 shrink-0 flex items-center justify-center","aria-hidden":!0,children:[t.jsx("style",{children:`
|
|
41
47
|
.thinking-dots span { animation: thinking-dot 1.4s ease-in-out infinite both; }
|
|
42
48
|
.thinking-dots span:nth-child(1) { animation-delay: 0s; }
|
|
43
49
|
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
|
|
@@ -46,11 +52,11 @@
|
|
|
46
52
|
0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
|
|
47
53
|
40% { transform: scale(1); opacity: 1; }
|
|
48
54
|
}
|
|
49
|
-
`}),
|
|
55
|
+
`}),t.jsxs("span",{className:"thinking-dots inline-flex gap-0.5",children:[t.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"}),t.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"}),t.jsx("span",{className:"w-1 h-1 rounded-full bg-current opacity-70"})]})]})}function Cs({text:e="Spark is Thinking...",textClassName:a,shimmer:s=!0,shimmerDuration:n=2,shimmerSpread:r=2,className:o,loader:l,...c}){const d=u.useMemo(()=>(e||"").length*r,[e,r]),m=l??t.jsx(dp,{});return t.jsxs("div",{className:i("inline-flex items-center gap-1.5 max-w-full",o),...c,children:[t.jsx("span",{className:"shrink-0 -translate-x-0.5","aria-hidden":!0,children:m}),t.jsx("div",{className:"flex-1 min-w-0 flex items-center",children:s?t.jsx(V.motion.span,{className:i("text-sm leading-sm relative inline-block bg-clip-text text-transparent","bg-[length:250%_100%,auto] bg-no-repeat truncate",a),style:{backgroundImage:`linear-gradient(90deg, transparent calc(50% - ${d}px), var(--color-text), transparent calc(50% + ${d}px)), linear-gradient(var(--color-text-secondary), var(--color-text-secondary))`},initial:{backgroundPosition:"100% center"},animate:{backgroundPosition:"0% center"},transition:{repeat:1/0,duration:n,ease:"linear"},children:e}):t.jsx("span",{className:i("text-sm leading-sm text-text-secondary truncate",a),children:e})})]})}Cs.displayName="ThinkingIndicator";const up={text:"Scanning local photo library",description:"Indexing metadata and building a rename plan",details:[{type:"action",action:"Discover photos",desc:"Found 1,000 images in /Pictures/Unsorted"},{type:"action",action:"Extract metadata",desc:"Read EXIF timestamps, GPS, and camera model"},{type:"action",action:"Detect duplicates",desc:"Hash-based matching + perceptual similarity"}]},mp={text:"Classifying photos into albums",description:"Clustering by time, location, and scene",details:[{type:"action",action:"Time buckets",desc:"Group into events using temporal gaps"},{type:"action",action:"Location clusters",desc:"Reverse geocode GPS into city/area labels"},{type:"action",action:"Scene tags",desc:"Detect indoor/outdoor, portraits, food, and documents"}]},pp={text:"Renaming files safely",description:"Dry-run, collision check, then atomic move",details:[{type:"action",action:"Dry run",desc:"Preview 1,000 rename operations"},{type:"action",action:"Collision handling",desc:"Append counter suffix to avoid overwrites"},{type:"action",action:"Write changes",desc:"Move files into album folders"}]},xp=[{step:up,simpleMd:"I'm **scanning** your library and building the index. Found 1,000 photos in `Pictures/Unsorted`; EXIF and duplicates are being analyzed.\n\n"},{step:mp,simpleMd:`**Classifying** into albums by time, location, and scene. Time buckets and GPS labels are done; next I'll tag indoor/outdoor and document vs. portrait.
|
|
50
56
|
|
|
51
|
-
`},{step:
|
|
57
|
+
`},{step:pp,simpleMd:`**Dry-run** is done and collision handling is in place. No overwrites; an audit log (CSV) is ready. Pending your confirmation to run the renames.
|
|
52
58
|
|
|
53
|
-
`}],
|
|
59
|
+
`}],fp=`## Plan
|
|
54
60
|
|
|
55
61
|
I will organize your **1,000 local photos** by building an index, clustering them into albums, and then performing a safe rename + move operation.
|
|
56
62
|
|
|
@@ -86,9 +92,9 @@ Example:
|
|
|
86
92
|
## Next step
|
|
87
93
|
|
|
88
94
|
If you want, I can generate a **preview report** first (top 50 renames + album summary) before applying changes.
|
|
89
|
-
`;function su(e,t){const s=[];for(const a of e)s.push({type:"think"}),s.push({type:"composer",step:a.step}),s.push({type:"md",md:a.simpleMd});return s.push({type:"think"}),s.push({type:"md",md:t}),s}const rs=x.createContext(null);rs.displayName="ResponseContext";function os(){const e=x.useContext(rs);if(!e)throw new Error("Response compound components must be used within Response.Root");return e}const au=n.jsx(as,{text:"Qoder is thinking..."});function Wt({simulate:e=!0,phase:t="thinking",rounds:s,finalMarkdown:a,onSimulateComplete:r,onStepChange:o,thinkingIndicator:i,children:l}){const c=s??tu,d=a??nu,p=i??au,m=x.useMemo(()=>su(c,d),[c,d]),[b,w]=x.useState(0),u=x.useRef(m.length),g=e?b>=m.length-1:t==="done",f=m[b]??null,k=f?.type==="think";x.useEffect(()=>{if(!e||m.length===0)return;const v=m[b]??null;v?.type==="composer"&&v.step?o?.(v.step.text,v.step.toolType):v?.type==="think"&&o?.("Thinking..."),b>=m.length&&r?.()},[e,m,b,o,r]),x.useEffect(()=>{!e||m.length===0||u.current!==m.length&&(u.current=m.length,requestAnimationFrame(()=>w(0)))},[e,m.length]),x.useEffect(()=>{if(!e||m.length===0)return;const v=m[b]??null;if(v?.type==="think"||v?.type==="composer"){const S=window.setTimeout(()=>w(C=>Math.min(C+1,m.length)),580);return()=>window.clearTimeout(S)}},[e,m,b]);const h={phase:t,simulate:e,rounds:c,finalMarkdown:d,blocks:m,visibleIndex:b,setVisibleIndex:w,isSimDone:g,currentBlock:f,showThink:k,onSimulateComplete:r,onStepChange:o,thinkingIndicator:p};return n.jsx(rs.Provider,{value:h,children:l})}Wt.displayName="ResponseRoot";const ru={p:({children:e})=>n.jsx("p",{className:"text-sm leading-sm text-text [&:not(:first-child)]:mt-6 last:mb-0",children:e}),h1:({children:e})=>n.jsx("h1",{className:"scroll-m-20 text-4xl font-medium tracking-tight text-text",children:e}),h2:({children:e})=>n.jsx("h2",{className:"scroll-m-20 border-b border-border-secondary pb-2 text-3xl font-semibold tracking-tight text-text first:mt-0 [&:not(:first-child)]:mt-10",children:e}),h3:({children:e})=>n.jsx("h3",{className:"scroll-m-20 text-2xl font-semibold tracking-tight text-text [&:not(:first-child)]:mt-8",children:e}),h4:({children:e})=>n.jsx("h4",{className:"scroll-m-20 text-xl font-semibold tracking-tight text-text [&:not(:first-child)]:mt-6",children:e}),h5:({children:e})=>n.jsx("h5",{className:"scroll-m-20 text-lg font-semibold tracking-tight text-text-secondary [&:not(:first-child)]:mt-4",children:e}),h6:({children:e})=>n.jsx("h6",{className:"scroll-m-20 text-base font-semibold tracking-tight text-text-tertiary uppercase [&:not(:first-child)]:mt-4",children:e}),blockquote:({children:e})=>n.jsx("blockquote",{className:"mt-6 border-l-2 border-border-secondary pl-6 italic text-text-secondary",children:e}),ul:({className:e,children:t})=>n.jsx("ul",{className:y("my-6 ml-6 text-text [&>li]:mt-2",String(e??"").includes("contains-task-list")?"list-none":"list-disc"),children:t}),ol:({children:e})=>n.jsx("ol",{className:"my-6 ml-6 list-decimal text-text [&>li]:mt-2",children:e}),li:({className:e,children:t})=>n.jsx("li",{className:y("leading-sm",String(e??"").includes("task-list-item")&&"list-none flex items-start gap-2 [&>input]:mt-0.5 [&>input]:shrink-0"),children:t}),pre:({children:e})=>n.jsx(be,{scrollbarVisibility:"auto",className:"my-6 rounded-lg border border-border-tertiary bg-bg-base p-4 font-mono text-sm leading-sm text-text",children:n.jsx("pre",{className:"m-0 font-mono text-sm leading-sm text-text border-0 bg-transparent p-0",children:e})}),code:({className:e,children:t,...s})=>typeof e=="string"&&e.startsWith("language-")?n.jsx("code",{className:y(e,"font-mono text-sm leading-sm"),...s,children:t}):n.jsx("code",{className:"relative rounded bg-fill-tertiary px-[0.3rem] py-[0.2rem] font-mono text-sm leading-sm font-semibold text-text",...s,children:t}),table:({children:e})=>n.jsx(be,{scrollbarVisibility:"auto",className:"my-6 w-full rounded-md border border-border-secondary",children:n.jsx("table",{className:"w-full border-collapse text-sm leading-sm text-text",children:e})}),thead:({children:e})=>n.jsx("thead",{className:"border-b border-border-secondary bg-fill-tertiary",children:e}),tbody:({children:e})=>n.jsx("tbody",{className:"[&>tr]:border-b [&>tr]:border-border-tertiary",children:e}),tr:({children:e})=>n.jsx("tr",{children:e}),th:({children:e})=>n.jsx("th",{className:"px-4 py-2 text-left font-semibold text-text",children:e}),td:({children:e})=>n.jsx("td",{className:"px-4 py-2 text-text",children:e}),a:({href:e,children:t})=>n.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:t}),hr:()=>n.jsx("hr",{className:"my-6 border-0 border-t border-border-secondary"}),strong:({children:e})=>n.jsx("strong",{className:"font-semibold text-text",children:e}),em:({children:e})=>n.jsx("em",{className:"italic text-text",children:e})};function Qe({children:e,className:t}){return n.jsx("div",{className:y("markdown-body text-sm leading-sm text-text",t),children:n.jsx(el,{remarkPlugins:[tl,nl],rehypePlugins:[sl],components:ru,children:e})})}Qe.displayName="MarkdownBody";const ou="w-full h-full text-text-tertiary transition-transform duration-200 ease-in-out",iu="w-full h-full transition-transform duration-200 ease-in-out",is=x.createContext(null);is.displayName="ReasoningStepContext";function Zt(){const e=x.useContext(is);if(!e)throw new Error("ReasoningStep compound components must be used within ReasoningStep.Root");return e}function Qt({text:e,description:t,status:s="completed",icon:a,showIcon:r=!0,details:o,children:i,detailsChildren:l,duration:c=2,spread:d=2,disableExpandAnimation:p=!1,defaultExpanded:m,expanded:b,onExpandedChange:w,eyeIcon:u,arrowRightIcon:g}){const f=b!==void 0,[k,h]=x.useState(m??!1),v=f?b:k,[S,C]=x.useState(!1),T=p&&m!==void 0?m:v,E=r&&typeof e=="string",I=E?"var(--spacing-1.5)":"var(--spacing-2.5)",Q=o!=null&&o.length>0||l!=null,z=x.useCallback(()=>{Q&&(f?w?.(!b):h(A=>!A))},[Q,f,b,w]),[G,re]=x.useState(new Set),M=x.useCallback(A=>{re(O=>{const W=new Set(O);return W.has(A)?W.delete(A):W.add(A),W})},[]),$=x.useMemo(()=>u??n.jsx(Ea,{className:ou}),[u]),q=x.useMemo(()=>g??n.jsx(ot,{className:iu}),[g]),ee={status:s,isExpanded:v,isHovered:S,setIsHovered:C,toggleExpanded:z,effectiveExpanded:T,effectiveShowIcon:E,hasExpandableContent:Q,text:e,description:t,details:o,detailsChildren:l,duration:c,spread:d,disableExpandAnimation:p,detailIndent:I,expandedNestedKeys:G,toggleNested:M,icon:a,eyeIcon:$,arrowRightIcon:q};return n.jsx(is.Provider,{value:ee,children:i})}Qt.displayName="ReasoningStepRoot";const zt={width:"var(--font-size-xs)",height:"var(--font-size-xs)"},lu={ts:"text-info",tsx:"text-info",js:"text-info",jsx:"text-info",py:"text-teal",md:"text-text-secondary",mdx:"text-text-secondary"};function cu(e,t){const s=(e??t?.split(".").pop()??"").toLowerCase();return lu[s]??"text-text-tertiary"}const du=x.memo(function({className:t}){return n.jsx("span",{className:y("inline-flex items-center justify-center text-xs leading-xs font-mono",t),style:zt,"aria-hidden":!0,children:"⎔"})}),uu=x.memo(function({prefix:t,primary:s,secondary:a}){return n.jsxs("div",{className:"flex flex-row items-center gap-1.5 min-w-0 flex-1",children:[t?n.jsx("div",{className:"flex items-center justify-center shrink-0",children:t}):null,n.jsxs("div",{className:"flex flex-row items-center gap-1 min-w-0 overflow-hidden flex-1",children:[n.jsx("span",{className:"text-xs leading-xs font-normal text-text-tertiary truncate",title:s,children:s}),a?n.jsx("span",{className:"text-xs leading-xs font-normal text-text-quaternary truncate",title:a,children:a}):null]})]})});function Yt({className:e}){const t=Zt(),s=x.useMemo(()=>typeof t.text=="string"?t.text.length*t.spread:10*t.spread,[t.text,t.spread]),a=()=>t.icon?t.icon:t.eyeIcon,r=()=>typeof t.text!="string"?t.text:t.status==="in-progress"?n.jsx(te.motion.span,{className:"text-xs leading-xs font-normal relative inline-block bg-clip-text text-transparent bg-[length:250%_100%,auto] bg-no-repeat truncate",style:{backgroundImage:`linear-gradient(90deg, transparent calc(50% - ${s}px), var(--color-text), transparent calc(50% + ${s}px)), linear-gradient(var(--color-text-tertiary), var(--color-text-tertiary))`},initial:{backgroundPosition:"100% center"},animate:{backgroundPosition:"0% center"},transition:{repeat:1/0,duration:t.duration,ease:"linear"},children:t.text}):n.jsx("span",{className:"text-xs leading-xs font-normal text-text-tertiary truncate",children:t.text}),o=()=>t.description?n.jsx("span",{className:"text-xs leading-xs font-normal text-text-quaternary truncate",children:t.description}):null;return n.jsxs("div",{className:y("flex flex-row items-center gap-1.5",t.hasExpandableContent&&"cursor-pointer",e),onClick:t.toggleExpanded,children:[t.effectiveShowIcon&&n.jsx("div",{className:"flex items-center justify-center shrink-0",style:zt,children:a()}),n.jsxs("div",{className:"flex flex-row items-center gap-1 flex-1 min-w-0",children:[r(),t.description?o():null,t.hasExpandableContent&&n.jsx("div",{className:y("flex items-center justify-center shrink-0 text-text-tertiary transition-opacity duration-200 ease-in-out",t.effectiveExpanded||t.isHovered?"opacity-100":"opacity-0",t.effectiveExpanded?"rotate-90":"rotate-0"),style:zt,children:t.arrowRightIcon})]})]})}Yt.displayName="ReasoningStepHeader";const Zo=x.memo(function e({detail:t,depth:s,pathKey:a,detailIndent:r,expandedNestedKeys:o,onToggleNested:i,arrowRightIcon:l}){const c=t.details!=null&&t.details.length>0,d=o.has(a),p=!c,m=t.type==="action"?t.action:t.filename,b=t.type==="action"?t.desc:[t.lines,t.path].filter(Boolean).join(" "),w=p&&t.type==="file"?n.jsx(du,{className:cu(t.fileType,t.filename)}):void 0,u=x.useCallback(()=>{c&&i(a)},[c,i,a]),g=n.jsxs("div",{className:y("flex flex-row items-center gap-1.5 self-stretch min-h-5 min-w-0",c&&"cursor-pointer"),onClick:c?u:void 0,children:[n.jsx(uu,{prefix:w,primary:m,secondary:b}),c&&n.jsx("div",{className:y("flex items-center justify-center shrink-0 text-text-tertiary",d?"rotate-90":"rotate-0"),style:zt,children:l})]}),f=n.jsxs("div",{className:"flex flex-row items-center gap-0 self-stretch",style:{marginLeft:r},children:[n.jsx("div",{className:"shrink-0 w-[var(--font-size-xs)] h-5 border-l border-border-tertiary"}),g]});if(!c)return n.jsx(x.Fragment,{children:f},a);const h=s===1?"rounded-lg border border-border-tertiary bg-bg-base p-2 flex flex-col gap-0":"flex flex-col";return n.jsxs("div",{className:"flex flex-col self-stretch",children:[f,n.jsx("div",{className:y("grid transition-[grid-template-rows,opacity] duration-150 ease-out",d?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:n.jsx("div",{className:"overflow-hidden",children:n.jsx("div",{className:y(h),children:t.details?.map((v,S)=>n.jsx(e,{detail:v,depth:s+1,pathKey:`${a}-${S}`,detailIndent:r,disableExpandAnimation:!1,expandedNestedKeys:o,onToggleNested:i,arrowRightIcon:l},`${a}-${S}`))})})})]},a)});function ls({detail:e,depth:t=0,pathKey:s="0"}){const a=Zt();return n.jsx(Zo,{detail:e,depth:t,pathKey:s,detailIndent:a.detailIndent,disableExpandAnimation:a.disableExpandAnimation,expandedNestedKeys:a.expandedNestedKeys,onToggleNested:a.toggleNested,arrowRightIcon:a.arrowRightIcon})}ls.displayName="ReasoningStepDetailRow";function Kt({className:e,children:t}){const s=Zt(),a=s.details!=null&&s.details.length>0;return n.jsx("div",{className:y("grid transition-[grid-template-rows,opacity] duration-200 ease-out",s.effectiveExpanded?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0",e),children:n.jsx("div",{className:"overflow-hidden",children:a?n.jsx("div",{className:"flex flex-col",children:s.details?.map((r,o)=>n.jsx(Zo,{detail:r,depth:0,pathKey:String(o),detailIndent:s.detailIndent,disableExpandAnimation:s.disableExpandAnimation,expandedNestedKeys:s.expandedNestedKeys,onToggleNested:s.toggleNested,arrowRightIcon:s.arrowRightIcon},String(o)))}):t??s.detailsChildren})})}Kt.displayName="ReasoningStepDetails";function Qo(){const e=Zt();return n.jsxs("div",{"data-reasoning-step":!0,className:"flex flex-col gap-1 py-0.5",onMouseEnter:()=>e.setIsHovered(!0),onMouseLeave:()=>e.setIsHovered(!1),children:[n.jsx(Yt,{}),e.hasExpandableContent&&n.jsx(Kt,{})]})}Qo.displayName="ReasoningStepDefaultLayout";function Yo(e){return n.jsx(Qt,{...e,children:n.jsx(Qo,{})})}Yo.displayName="ReasoningStep";const ht=Yo;ht.Root=Qt;ht.Header=Yt;ht.Details=Kt;ht.DetailRow=ls;const Dt=ht;function pu(e){const t=[];let s=0;const a=o=>/[\u4e00-\u9fff\u3040-\u30ff]/.test(o),r=o=>/[a-zA-Z0-9']/.test(o);for(;s<e.length;){const o=e[s];if(a(o))t.push(o),s+=1;else if(r(o)){let i=s;for(;i<e.length&&r(e[i]);)i+=1;t.push(e.slice(s,i)),s=i}else{let i=s;for(;i<e.length&&!a(e[i])&&!r(e[i]);)i+=1;t.push(e.slice(s,i)),s=i}}return t}function mu(e){const t=e.split(/\n\n+/);if(t.length<=1)return{completed:"",partial:e};const s=t.pop()??"";return{completed:t.join(`
|
|
95
|
+
`;function hp(e,a){const s=[];for(const n of e)s.push({type:"think"}),s.push({type:"composer",step:n.step}),s.push({type:"md",md:n.simpleMd});return s.push({type:"think"}),s.push({type:"md",md:a}),s}const Ss=u.createContext(null);Ss.displayName="ResponseContext";function Is(){const e=u.useContext(Ss);if(!e)throw new Error("Response compound components must be used within Response.Root");return e}const gp=t.jsx(Cs,{text:"Spark is thinking..."});function ta({simulate:e=!0,phase:a="thinking",rounds:s,finalMarkdown:n,onSimulateComplete:r,onStepChange:o,thinkingIndicator:l,children:c}){const d=s??xp,m=n??fp,p=l??gp,x=u.useMemo(()=>hp(d,m),[d,m]),[g,v]=u.useState(0),f=u.useRef(x.length),b=e?g>=x.length-1:a==="done",h=x[g]??null,w=h?.type==="think";u.useEffect(()=>{if(!e||x.length===0)return;const k=x[g]??null;k?.type==="composer"&&k.step?o?.(k.step.text,k.step.toolType):k?.type==="think"&&o?.("Thinking..."),g>=x.length&&r?.()},[e,x,g,o,r]),u.useEffect(()=>{!e||x.length===0||f.current!==x.length&&(f.current=x.length,requestAnimationFrame(()=>v(0)))},[e,x.length]),u.useEffect(()=>{if(!e||x.length===0)return;const k=x[g]??null;if(k?.type==="think"||k?.type==="composer"){const T=window.setTimeout(()=>v(S=>Math.min(S+1,x.length)),580);return()=>window.clearTimeout(T)}},[e,x,g]);const j={phase:a,simulate:e,rounds:d,finalMarkdown:m,blocks:x,visibleIndex:g,setVisibleIndex:v,isSimDone:b,currentBlock:h,showThink:w,onSimulateComplete:r,onStepChange:o,thinkingIndicator:p};return t.jsx(Ss.Provider,{value:j,children:c})}ta.displayName="ResponseRoot";const yp={p:({children:e})=>t.jsx("p",{className:"text-sm leading-sm text-text [&:not(:first-child)]:mt-6 last:mb-0",children:e}),h1:({children:e})=>t.jsx("h1",{className:"scroll-m-20 text-4xl font-medium tracking-tight text-text",children:e}),h2:({children:e})=>t.jsx("h2",{className:"scroll-m-20 border-b border-border-secondary pb-2 text-3xl font-semibold tracking-tight text-text first:mt-0 [&:not(:first-child)]:mt-10",children:e}),h3:({children:e})=>t.jsx("h3",{className:"scroll-m-20 text-2xl font-semibold tracking-tight text-text [&:not(:first-child)]:mt-8",children:e}),h4:({children:e})=>t.jsx("h4",{className:"scroll-m-20 text-xl font-semibold tracking-tight text-text [&:not(:first-child)]:mt-6",children:e}),h5:({children:e})=>t.jsx("h5",{className:"scroll-m-20 text-lg font-semibold tracking-tight text-text-secondary [&:not(:first-child)]:mt-4",children:e}),h6:({children:e})=>t.jsx("h6",{className:"scroll-m-20 text-base font-semibold tracking-tight text-text-tertiary uppercase [&:not(:first-child)]:mt-4",children:e}),blockquote:({children:e})=>t.jsx("blockquote",{className:"mt-6 border-l-2 border-border-secondary pl-6 italic text-text-secondary",children:e}),ul:({className:e,children:a})=>t.jsx("ul",{className:i("my-6 ml-6 text-text [&>li]:mt-2",String(e??"").includes("contains-task-list")?"list-none":"list-disc"),children:a}),ol:({children:e})=>t.jsx("ol",{className:"my-6 ml-6 list-decimal text-text [&>li]:mt-2",children:e}),li:({className:e,children:a})=>t.jsx("li",{className:i("leading-sm",String(e??"").includes("task-list-item")&&"list-none flex items-start gap-2 [&>input]:mt-0.5 [&>input]:shrink-0"),children:a}),pre:({children:e})=>t.jsx(ve,{scrollbarVisibility:"auto",className:"my-6 rounded-lg border border-border-tertiary bg-bg-base p-4 font-mono text-sm leading-sm text-text",children:t.jsx("pre",{className:"m-0 font-mono text-sm leading-sm text-text border-0 bg-transparent p-0",children:e})}),code:({className:e,children:a,...s})=>typeof e=="string"&&e.startsWith("language-")?t.jsx("code",{className:i(e,"font-mono text-sm leading-sm"),...s,children:a}):t.jsx("code",{className:"relative rounded bg-fill-tertiary px-1 py-0.5 font-mono text-sm leading-sm font-semibold text-text",...s,children:a}),table:({children:e})=>t.jsx(ve,{scrollbarVisibility:"auto",className:"my-6 w-full rounded-md border border-border-secondary",children:t.jsx("table",{className:"w-full border-collapse text-sm leading-sm text-text",children:e})}),thead:({children:e})=>t.jsx("thead",{className:"border-b border-border-secondary bg-fill-tertiary",children:e}),tbody:({children:e})=>t.jsx("tbody",{className:"[&>tr]:border-b [&>tr]:border-border-tertiary",children:e}),tr:({children:e})=>t.jsx("tr",{children:e}),th:({children:e})=>t.jsx("th",{className:"px-4 py-2 text-left font-semibold text-text",children:e}),td:({children:e})=>t.jsx("td",{className:"px-4 py-2 text-text",children:e}),a:({href:e,children:a})=>t.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:a}),hr:()=>t.jsx("hr",{className:"my-6 border-0 border-t border-border-secondary"}),strong:({children:e})=>t.jsx("strong",{className:"font-semibold text-text",children:e}),em:({children:e})=>t.jsx("em",{className:"italic text-text",children:e})};function et({children:e,className:a}){return t.jsx("div",{className:i("markdown-body text-sm leading-sm text-text",a),children:t.jsx(Nc,{remarkPlugins:[Cc,Sc],rehypePlugins:[Ic],components:yp,children:e})})}et.displayName="MarkdownBody";const bp="w-full h-full text-text-tertiary transition-transform duration-200 ease-in-out",vp="w-full h-full transition-transform duration-200 ease-in-out",Rs=u.createContext(null);Rs.displayName="ReasoningStepContext";function aa(){const e=u.useContext(Rs);if(!e)throw new Error("ReasoningStep compound components must be used within ReasoningStep.Root");return e}function sa({text:e,description:a,status:s="completed",icon:n,showIcon:r=!0,details:o,children:l,detailsChildren:c,duration:d=2,spread:m=2,disableExpandAnimation:p=!1,defaultExpanded:x,expanded:g,onExpandedChange:v,eyeIcon:f,arrowRightIcon:b}){const h=g!==void 0,[w,j]=u.useState(x??!1),k=h?g:w,[T,S]=u.useState(!1),P=p&&x!==void 0?x:k,A=r&&typeof e=="string",I=A?"var(--spacing-1.5)":"var(--spacing-2.5)",ne=o!=null&&o.length>0||c!=null,D=u.useCallback(()=>{ne&&(h?v?.(!g):j(C=>!C))},[ne,h,g,v]),[q,ie]=u.useState(new Set),X=u.useCallback(C=>{ie(O=>{const J=new Set(O);return J.has(C)?J.delete(C):J.add(C),J})},[]),G=u.useMemo(()=>f??t.jsx(tr,{className:bp}),[f]),ae=u.useMemo(()=>b??t.jsx(at,{className:vp}),[b]),le={status:s,isExpanded:k,isHovered:T,setIsHovered:S,toggleExpanded:D,effectiveExpanded:P,effectiveShowIcon:A,hasExpandableContent:ne,text:e,description:a,details:o,detailsChildren:c,duration:d,spread:m,disableExpandAnimation:p,detailIndent:I,expandedNestedKeys:q,toggleNested:X,icon:n,eyeIcon:G,arrowRightIcon:ae};return t.jsx(Rs.Provider,{value:le,children:l})}sa.displayName="ReasoningStepRoot";const Vt={width:"var(--font-size-xs)",height:"var(--font-size-xs)"},wp={ts:"text-info",tsx:"text-info",js:"text-info",jsx:"text-info",py:"text-teal",md:"text-text-secondary",mdx:"text-text-secondary"};function kp(e,a){const s=(e??a?.split(".").pop()??"").toLowerCase();return wp[s]??"text-text-tertiary"}const jp=u.memo(function({className:a}){return t.jsx("span",{className:i("inline-flex items-center justify-center text-xs leading-xs font-mono",a),style:Vt,"aria-hidden":!0,children:"⎔"})}),Np=u.memo(function({prefix:a,primary:s,secondary:n}){return t.jsxs("div",{className:"flex flex-row items-center gap-1.5 min-w-0 flex-1",children:[a?t.jsx("div",{className:"flex items-center justify-center shrink-0",children:a}):null,t.jsxs("div",{className:"flex flex-row items-center gap-1 min-w-0 overflow-hidden flex-1",children:[t.jsx("span",{className:"text-xs leading-xs font-normal text-text-tertiary truncate",title:s,children:s}),n?t.jsx("span",{className:"text-xs leading-xs font-normal text-text-quaternary truncate",title:n,children:n}):null]})]})});function na({className:e}){const a=aa(),s=u.useMemo(()=>typeof a.text=="string"?a.text.length*a.spread:10*a.spread,[a.text,a.spread]),n=()=>a.icon?a.icon:a.eyeIcon,r=()=>typeof a.text!="string"?a.text:a.status==="in-progress"?t.jsx(V.motion.span,{className:"text-xs leading-xs font-normal relative inline-block bg-clip-text text-transparent bg-[length:250%_100%,auto] bg-no-repeat truncate",style:{backgroundImage:`linear-gradient(90deg, transparent calc(50% - ${s}px), var(--color-text), transparent calc(50% + ${s}px)), linear-gradient(var(--color-text-tertiary), var(--color-text-tertiary))`},initial:{backgroundPosition:"100% center"},animate:{backgroundPosition:"0% center"},transition:{repeat:1/0,duration:a.duration,ease:"linear"},children:a.text}):t.jsx("span",{className:"text-xs leading-xs font-normal text-text-tertiary truncate",children:a.text}),o=()=>a.description?t.jsx("span",{className:"text-xs leading-xs font-normal text-text-quaternary truncate",children:a.description}):null;return t.jsxs("div",{className:i("flex flex-row items-center gap-1.5",a.hasExpandableContent&&"cursor-pointer",e),onClick:a.toggleExpanded,children:[a.effectiveShowIcon&&t.jsx("div",{className:"flex items-center justify-center shrink-0",style:Vt,children:n()}),t.jsxs("div",{className:"flex flex-row items-center gap-1 flex-1 min-w-0",children:[r(),a.description?o():null,a.hasExpandableContent&&t.jsx("div",{className:i("flex items-center justify-center shrink-0 text-text-tertiary transition-opacity duration-200 ease-in-out",a.effectiveExpanded||a.isHovered?"opacity-100":"opacity-0",a.effectiveExpanded?"rotate-90":"rotate-0"),style:Vt,children:a.arrowRightIcon})]})]})}na.displayName="ReasoningStepHeader";const dl=u.memo(function e({detail:a,depth:s,pathKey:n,detailIndent:r,expandedNestedKeys:o,onToggleNested:l,arrowRightIcon:c}){const d=a.details!=null&&a.details.length>0,m=o.has(n),p=!d,x=a.type==="action"?a.action:a.filename,g=a.type==="action"?a.desc:[a.lines,a.path].filter(Boolean).join(" "),v=p&&a.type==="file"?t.jsx(jp,{className:kp(a.fileType,a.filename)}):void 0,f=u.useCallback(()=>{d&&l(n)},[d,l,n]),b=t.jsxs("div",{className:i("flex flex-row items-center gap-1.5 self-stretch min-h-5 min-w-0",d&&"cursor-pointer"),onClick:d?f:void 0,children:[t.jsx(Np,{prefix:v,primary:x,secondary:g}),d&&t.jsx("div",{className:i("flex items-center justify-center shrink-0 text-text-tertiary",m?"rotate-90":"rotate-0"),style:Vt,children:c})]}),h=t.jsxs("div",{className:"flex flex-row items-center gap-0 self-stretch",style:{marginLeft:r},children:[t.jsx("div",{className:"shrink-0 w-[var(--font-size-xs)] h-5 border-l border-border-tertiary"}),b]});if(!d)return t.jsx(u.Fragment,{children:h},n);const j=s===1?"rounded-lg border border-border-tertiary bg-bg-base p-2 flex flex-col gap-0":"flex flex-col";return t.jsxs("div",{className:"flex flex-col self-stretch",children:[h,t.jsx("div",{className:i("grid transition-[grid-template-rows,opacity] duration-150 ease-out",m?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:t.jsx("div",{className:"overflow-hidden",children:t.jsx("div",{className:i(j),children:a.details?.map((k,T)=>t.jsx(e,{detail:k,depth:s+1,pathKey:`${n}-${T}`,detailIndent:r,disableExpandAnimation:!1,expandedNestedKeys:o,onToggleNested:l,arrowRightIcon:c},`${n}-${T}`))})})})]},n)});function zs({detail:e,depth:a=0,pathKey:s="0"}){const n=aa();return t.jsx(dl,{detail:e,depth:a,pathKey:s,detailIndent:n.detailIndent,disableExpandAnimation:n.disableExpandAnimation,expandedNestedKeys:n.expandedNestedKeys,onToggleNested:n.toggleNested,arrowRightIcon:n.arrowRightIcon})}zs.displayName="ReasoningStepDetailRow";function ra({className:e,children:a}){const s=aa(),n=s.details!=null&&s.details.length>0;return t.jsx("div",{className:i("grid transition-[grid-template-rows,opacity] duration-200 ease-out",s.effectiveExpanded?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0",e),children:t.jsx("div",{className:"overflow-hidden",children:n?t.jsx("div",{className:"flex flex-col",children:s.details?.map((r,o)=>t.jsx(dl,{detail:r,depth:0,pathKey:String(o),detailIndent:s.detailIndent,disableExpandAnimation:s.disableExpandAnimation,expandedNestedKeys:s.expandedNestedKeys,onToggleNested:s.toggleNested,arrowRightIcon:s.arrowRightIcon},String(o)))}):a??s.detailsChildren})})}ra.displayName="ReasoningStepDetails";function ul(){const e=aa();return t.jsxs("div",{"data-reasoning-step":!0,className:"flex flex-col gap-1 py-0.5",onMouseEnter:()=>e.setIsHovered(!0),onMouseLeave:()=>e.setIsHovered(!1),children:[t.jsx(na,{}),e.hasExpandableContent&&t.jsx(ra,{})]})}ul.displayName="ReasoningStepDefaultLayout";function ml(e){return t.jsx(sa,{...e,children:t.jsx(ul,{})})}ml.displayName="ReasoningStep";const jt=ml;jt.Root=sa;jt.Header=na;jt.Details=ra;jt.DetailRow=zs;const Ht=jt;function Cp(e){const a=[];let s=0;const n=o=>/[\u4e00-\u9fff\u3040-\u30ff]/.test(o),r=o=>/[a-zA-Z0-9']/.test(o);for(;s<e.length;){const o=e[s];if(n(o))a.push(o),s+=1;else if(r(o)){let l=s;for(;l<e.length&&r(e[l]);)l+=1;a.push(e.slice(s,l)),s=l}else{let l=s;for(;l<e.length&&!n(e[l])&&!r(e[l]);)l+=1;a.push(e.slice(s,l)),s=l}}return a}function Sp(e){const a=e.split(/\n\n+/);if(a.length<=1)return{completed:"",partial:e};const s=a.pop()??"";return{completed:a.join(`
|
|
90
96
|
|
|
91
|
-
`),partial:s}}const
|
|
97
|
+
`),partial:s}}const Ip=3;function Ts({content:e,isActive:a,onStreamComplete:s,tokenDelayMs:n=14,className:r}){const o=u.useMemo(()=>Cp(e),[e]),[l,c]=u.useState({content:e,visibleCount:a?0:o.length}),d=u.useRef(s);u.useEffect(()=>{d.current=s},[s]);const m=l.content===e?l.visibleCount:a?0:o.length,p=u.useMemo(()=>o.slice(0,m).join(""),[o,m]),{completed:x,partial:g}=u.useMemo(()=>Sp(p),[p]);u.useEffect(()=>{if(!a)return;const f=o.length;if(f===0){d.current?.();return}let b=0;const h=setInterval(()=>{b=Math.min(b+Ip,f),c({content:e,visibleCount:b}),b>=f&&(clearInterval(h),d.current?.())},n);return()=>clearInterval(h)},[a,e,o.length,n]);const v=a&&m<o.length;return o.length===0?null:v?t.jsxs("div",{className:r,children:[x?t.jsx("div",{className:"streaming-completed",children:t.jsx(et,{children:x})}):null,g?t.jsx("span",{className:"streaming-partial text-sm leading-sm text-text streaming-token-fade-in",children:g}):null]}):t.jsx("div",{className:r,children:t.jsx(et,{children:e})})}function on(...e){return e.filter(Boolean).join(" ")}const Rp=t.jsx($a,{className:"h-5 w-5 text-text-on-primary"});function Ls({width:e="var(--spacing-80)",height:a="var(--spacing-60)",speed:s=1,caption:n="Spark is drawing...",captionClassName:r,className:o,style:l,showOverlay:c=!1,overlayText:d,sparklingIcon:m=Rp,...p}){const x=u.useRef(null);return u.useEffect(()=>{if(typeof CSS<"u"&&CSS.registerProperty)try{CSS.registerProperty({name:"--a",syntax:"<angle>",inherits:!0,initialValue:"0deg"}),CSS.registerProperty({name:"--l",syntax:"<number>",inherits:!0,initialValue:"0"}),CSS.registerProperty({name:"--x",syntax:"<length>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:"--y",syntax:"<length>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:"--o",syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:"--value",syntax:"<angle>",inherits:!0,initialValue:"0deg"}),CSS.registerProperty({name:"--width-ratio",syntax:"<number>",inherits:!0,initialValue:"0"}),CSS.registerProperty({name:"--scale",syntax:"<number>",inherits:!0,initialValue:"0"})}catch{}},[]),u.useEffect(()=>{const g=x.current;if(!g)return;const v=()=>{const w=g.getBoundingClientRect();if(w.width>0&&w.height>0){const j=Math.max(w.width,w.height);g.style.setProperty("--actual-size",`${j}px`)}},f=typeof e=="string"&&e.includes("%")||typeof a=="string"&&a.includes("%");let b=null;const h=()=>{v(),b=new ResizeObserver(v),b.observe(g)};if(f){const w=requestAnimationFrame(()=>h());return()=>{cancelAnimationFrame(w),b?.disconnect()}}return h(),()=>b?.disconnect()},[e,a]),t.jsxs(t.Fragment,{children:[t.jsx("style",{children:`
|
|
92
98
|
@keyframes ai {
|
|
93
99
|
from { --a: 360deg; --l: 0.35; --o: 1; }
|
|
94
100
|
30% { --l: 1.5; }
|
|
@@ -243,14 +249,14 @@ If you want, I can generate a **preview report** first (top 50 renames + album s
|
|
|
243
249
|
font-weight: 600;
|
|
244
250
|
color: var(--color-text-on-primary);
|
|
245
251
|
}
|
|
246
|
-
`}),n.jsxs("div",{ref:m,className:Os("image-generating-container",o),style:{"--container-width":e,"--container-height":t,"--image-generating-speed":String(s),...i&&typeof i=="object"?i:{}},...p,children:[n.jsxs("div",{className:"fluid-inner",children:[n.jsx("div",{className:"c c4",style:{"--i":0}}),n.jsx("div",{className:"c c1",style:{"--i":1}}),n.jsx("div",{className:"c c2",style:{"--i":2}}),n.jsx("div",{className:"c c3",style:{"--i":3}}),n.jsx("div",{className:"rings"})]}),n.jsx("div",{className:"glass"}),l?n.jsx("div",{className:"content-overlay remaining-overlay",children:n.jsx("span",{className:"remaining-text",children:c})}):n.jsxs("div",{className:"content-overlay",children:[n.jsx(te.motion.span,{className:"inline-flex items-center justify-center",animate:{scale:[1,1.08,1],opacity:[.9,1,.9]},transition:{duration:1.2,repeat:1/0,ease:[.16,1,.3,1]},children:d}),n.jsx("span",{className:Os("caption",r),children:a})]})]})]})}cs.displayName="ImageGenerating";function ds({className:e}){const t=os();return(t.simulate?t.showThink:t.phase==="thinking"||t.phase==="streaming")?n.jsx("span",{className:e,children:t.thinkingIndicator}):null}ds.displayName="ResponseThinking";function us({className:e,children:t}){return n.jsx("div",{className:y("flex flex-col gap-1",e),children:t})}us.displayName="ResponseSteps";function ps({step:e,status:t="completed"}){return n.jsx(Dt,{text:e.text,description:e.description,details:e.details,status:t})}ps.displayName="ResponseStep";function ms({markdown:e,streaming:t=!1,onStreamComplete:s,className:a}){const r=os(),o=e??r.finalMarkdown;return t?n.jsx("div",{className:y("mt-1",a),children:n.jsx(Ko,{content:o,isActive:t,onStreamComplete:s})}):n.jsx("div",{className:y("mt-1",a),children:n.jsx(Qe,{children:o})})}ms.displayName="ResponseContent";function Xt({width:e="320px",height:t="240px",className:s}){return n.jsx(cs,{width:e,height:t,className:s})}Xt.displayName="ResponseImageGenerating";function Jt({className:e}){const t=os(),s=x.useMemo(()=>{if(!t.simulate)return[];const r=[],o=Math.min(t.visibleIndex,t.blocks.length-1);let i=-1;for(let l=0;l<=o;l++)t.blocks[l]?.type==="composer"&&(i=l);for(let l=0;l<=o;l++){const c=t.blocks[l];if(c){if(c.type==="think"){l===t.visibleIndex&&r.push(n.jsx("span",{children:t.thinkingIndicator},`think-${l}`));continue}if(c.type==="composer"&&c.step){const d=l===i&&!t.isSimDone;r.push(n.jsx(Dt,{text:c.step.text,description:c.step.description,details:c.step.details,status:d?"in-progress":"completed"},l))}c.type==="md"&&c.md&&r.push(n.jsx("div",{className:"mt-1",children:n.jsx(Ko,{content:c.md,isActive:l===o,onStreamComplete:()=>{t.setVisibleIndex(d=>Math.min(d+1,t.blocks.length)),l+1>=t.blocks.length&&t.onSimulateComplete?.()}})},`md-${l}`))}}return r},[t]),a=x.useMemo(()=>{if(t.simulate)return[];const r=[];for(let o=0;o<t.blocks.length;o++){const i=t.blocks[o];i&&(i.type==="composer"&&i.step&&r.push(n.jsx(Dt,{text:i.step.text,description:i.step.description,details:i.step.details,status:"completed",disableExpandAnimation:!0},o)),i.type==="md"&&i.md&&r.push(n.jsx("div",{className:"mt-1",children:n.jsx(Qe,{children:i.md})},`md-${o}`)))}return r},[t]);return t.phase==="imageGenerating"?n.jsx("div",{className:y("flex flex-col gap-3 font-body",e),children:n.jsx(Xt,{})}):t.simulate?n.jsx("div",{className:y("flex flex-col gap-3 font-body",e),children:n.jsx("div",{className:"flex flex-col gap-1",children:s})}):n.jsxs("div",{className:y("flex flex-col gap-3 font-body",e),children:[n.jsx("div",{className:"flex flex-col gap-1",children:a}),(t.phase==="thinking"||t.phase==="streaming")&&t.thinkingIndicator]})}Jt.displayName="ResponseDefaultLayout";function Xo({simulate:e,phase:t,rounds:s,finalMarkdown:a,onSimulateComplete:r,onStepChange:o,thinkingIndicator:i,className:l,...c}){return n.jsx(Wt,{simulate:e,phase:t,rounds:s,finalMarkdown:a,onSimulateComplete:r,onStepChange:o,thinkingIndicator:i,children:n.jsx("div",{...c,children:n.jsx(Jt,{className:l})})})}Xo.displayName="Response";const Fe=Xo;Fe.Root=Wt;Fe.Thinking=ds;Fe.Steps=us;Fe.Step=ps;Fe.Content=ms;Fe.ImageGenerating=Xt;Fe.DefaultLayout=Jt;const xu=Fe,hu=[{id:"6",layers:[{ind:5,ty:4,parent:4,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:4,ty:3,parent:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:48,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0},{ind:3,ty:3,ks:{p:{a:0,k:[1,1]}},ip:0,op:241,st:0}]},{id:"11",layers:[{ind:10,ty:4,parent:9,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:9,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:4.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:52.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"16",layers:[{ind:15,ty:4,parent:14,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:14,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:9,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:57,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"21",layers:[{ind:20,ty:4,parent:19,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:19,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:12.6,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:60.6,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"26",layers:[{ind:25,ty:4,parent:24,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:24,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:15,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:63,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"31",layers:[{ind:30,ty:4,parent:29,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:29,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:16.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:64.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"36",layers:[{ind:35,ty:4,parent:34,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:34,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:17.4,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:65.4,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"41",layers:[{ind:40,ty:4,parent:39,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:39,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:18,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:66,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]}],yu=60,bu=360,vu=0,ku=JSON.parse('[{"ind":8,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[11,61]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":80.16,"s":[100],"h":1},{"t":80.16,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":38.16,"s":[0],"i":{"x":1,"y":1},"o":{"x":0.82,"y":0}},{"t":80.16,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":22,"h":22,"ip":0,"op":241,"st":0,"refId":"6"},{"ind":13,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":92.22,"s":[100],"h":1},{"t":92.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":80.16,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":92.22,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":21,"ip":0,"op":241,"st":0,"refId":"11"},{"ind":18,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":101.22,"s":[100],"h":1},{"t":101.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":92.22,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":101.22,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":20,"ip":0,"op":241,"st":0,"refId":"16"},{"ind":23,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":107.22,"s":[100],"h":1},{"t":107.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":101.22,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":107.22,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":21,"ip":0,"op":241,"st":0,"refId":"21"},{"ind":28,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":112.02,"s":[100],"h":1},{"t":112.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":107.22,"s":[0],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":112.02,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"26"},{"ind":33,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":115.62,"s":[100],"h":1},{"t":115.62,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":112.02,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":115.62,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"31"},{"ind":38,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":118.02,"s":[100],"h":1},{"t":118.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":115.62,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":118.02,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":121,"ip":0,"op":241,"st":0,"refId":"36"},{"ind":43,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":119.76,"s":[100],"h":1},{"t":119.76,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":118.02,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.76,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":120,"ip":0,"op":241,"st":0,"refId":"41"},{"ind":2,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"i":{"x":0,"y":0.726},"o":{"x":0.077,"y":0.396}},{"t":0.947943,"s":[143.05],"i":{"x":0.584,"y":0.684},"o":{"x":0.258,"y":0.351}},{"t":1.872292,"s":[170.15],"i":{"x":0.585,"y":0.69},"o":{"x":0.258,"y":0.357}},{"t":3.748465,"s":[200.34],"i":{"x":0.586,"y":0.699},"o":{"x":0.259,"y":0.366}},{"t":7.503875,"s":[232.22],"i":{"x":0.586,"y":0.713},"o":{"x":0.259,"y":0.381}},{"t":15.005773,"s":[263.7],"i":{"x":0.587,"y":0.741},"o":{"x":0.259,"y":0.411}},{"t":30,"s":[291.3],"i":{"x":0.628,"y":0.768},"o":{"x":0.286,"y":0.488}},{"t":60,"s":[311.6],"i":{"x":0.699,"y":0.605},"o":{"x":0.346,"y":0.344}},{"t":90,"s":[324.38],"i":{"x":0.715,"y":0.561},"o":{"x":0.37,"y":0.251}},{"t":105,"s":[336.74],"i":{"x":0.741,"y":0.618},"o":{"x":0.413,"y":0.285}},{"t":112.493217,"s":[350.5],"i":{"x":0.741,"y":0.636},"o":{"x":0.414,"y":0.303}},{"t":116.236934,"s":[364.32],"i":{"x":0.741,"y":0.645},"o":{"x":0.414,"y":0.312}},{"t":118.107494,"s":[377.2],"i":{"x":0.744,"y":0.651},"o":{"x":0.418,"y":0.318}},{"t":119.063474,"s":[389.07],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.532358,"s":[399.45],"i":{"x":0.878,"y":0.625},"o":{"x":1,"y":0.292}},{"t":120,"s":[450],"h":1},{"t":240,"s":[450],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[70,70],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":120,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[100,100],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":47,"ty":4,"parent":46,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":46,"ty":3,"parent":45,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":120,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":183,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":216.06,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":45,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":50,"ty":4,"parent":49,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":49,"ty":3,"parent":48,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":126,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.72,0.72]}},{"t":187.44,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":189,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":219,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":48,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":53,"ty":4,"parent":52,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":52,"ty":3,"parent":51,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":132.12,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.54,0.54]}},{"t":191.52,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":195.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":221.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":51,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":56,"ty":4,"parent":55,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":55,"ty":3,"parent":54,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":137.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.36,0.36]}},{"t":195.72,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":200.94,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":225,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":54,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":59,"ty":4,"parent":58,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":58,"ty":3,"parent":57,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":143.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.18,0.18]}},{"t":199.68,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":207.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":228,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":57,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":62,"ty":4,"parent":61,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":61,"ty":3,"parent":60,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":149.88,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":204.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":213.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":230.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":60,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":65,"ty":4,"parent":64,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":64,"ty":3,"parent":63,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":155.88,"s":[0,0],"i":{"x":[0.06,0.06],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":208.08,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":219.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":234.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":63,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":68,"ty":4,"parent":67,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":67,"ty":3,"parent":66,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":162,"s":[0,0],"i":{"x":[0.12,0.12],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":212.4,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":225.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":237.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":66,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":44,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":120,"s":[0],"i":{"x":0,"y":0.691},"o":{"x":0,"y":0.358}},{"t":120.06,"s":[17.95],"i":{"x":0.113,"y":0.857},"o":{"x":0.017,"y":0.588}},{"t":150.045,"s":[83.52],"i":{"x":0.649,"y":0.696},"o":{"x":0.298,"y":0.432}},{"t":180.03,"s":[90.83],"i":{"x":0.975,"y":0.245},"o":{"x":0.804,"y":0.109}},{"t":240,"s":[184.05],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":119.76,"s":[100,100],"i":{"x":[1,1],"y":[0.1,0.1]},"o":{"x":[1,1],"y":[0,0]}},{"t":240,"s":[50,50],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":1,"ty":3,"parent":0,"ks":{},"ip":0,"op":241,"st":0},{"ind":0,"ty":3,"ks":{},"ip":0,"op":241,"st":0}]'),wu={g:"https://jitter.video"},Nu=240,ju="5.7.4",Cu=360,Su={assets:hu,fr:yu,h:bu,ip:vu,layers:ku,meta:wu,op:Nu,v:ju,w:Cu},Iu=[{id:"6",layers:[{ind:5,ty:4,parent:4,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:4,ty:3,parent:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:48,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0},{ind:3,ty:3,ks:{p:{a:0,k:[1,1]}},ip:0,op:241,st:0}]},{id:"11",layers:[{ind:10,ty:4,parent:9,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:9,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:4.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:52.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"16",layers:[{ind:15,ty:4,parent:14,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:14,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:9,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:57,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"21",layers:[{ind:20,ty:4,parent:19,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:19,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:12.6,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:60.6,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"26",layers:[{ind:25,ty:4,parent:24,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:24,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:15,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:63,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"31",layers:[{ind:30,ty:4,parent:29,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:29,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:16.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:64.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"36",layers:[{ind:35,ty:4,parent:34,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:34,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:17.4,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:65.4,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"41",layers:[{ind:40,ty:4,parent:39,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:39,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:18,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:66,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]}],Ru=60,Au=360,Eu=0,Tu=JSON.parse('[{"ind":8,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[11,61]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":80.16,"s":[100],"h":1},{"t":80.16,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":38.16,"s":[0],"i":{"x":1,"y":1},"o":{"x":0.82,"y":0}},{"t":80.16,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":22,"h":22,"ip":0,"op":241,"st":0,"refId":"6"},{"ind":13,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":92.22,"s":[100],"h":1},{"t":92.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":80.16,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":92.22,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":21,"ip":0,"op":241,"st":0,"refId":"11"},{"ind":18,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":101.22,"s":[100],"h":1},{"t":101.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":92.22,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":101.22,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":20,"ip":0,"op":241,"st":0,"refId":"16"},{"ind":23,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":107.22,"s":[100],"h":1},{"t":107.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":101.22,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":107.22,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":21,"ip":0,"op":241,"st":0,"refId":"21"},{"ind":28,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":112.02,"s":[100],"h":1},{"t":112.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":107.22,"s":[0],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":112.02,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"26"},{"ind":33,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":115.62,"s":[100],"h":1},{"t":115.62,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":112.02,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":115.62,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"31"},{"ind":38,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":118.02,"s":[100],"h":1},{"t":118.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":115.62,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":118.02,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":121,"ip":0,"op":241,"st":0,"refId":"36"},{"ind":43,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":119.76,"s":[100],"h":1},{"t":119.76,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":118.02,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.76,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":120,"ip":0,"op":241,"st":0,"refId":"41"},{"ind":2,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"i":{"x":0,"y":0.726},"o":{"x":0.077,"y":0.396}},{"t":0.947943,"s":[143.05],"i":{"x":0.584,"y":0.684},"o":{"x":0.258,"y":0.351}},{"t":1.872292,"s":[170.15],"i":{"x":0.585,"y":0.69},"o":{"x":0.258,"y":0.357}},{"t":3.748465,"s":[200.34],"i":{"x":0.586,"y":0.699},"o":{"x":0.259,"y":0.366}},{"t":7.503875,"s":[232.22],"i":{"x":0.586,"y":0.713},"o":{"x":0.259,"y":0.381}},{"t":15.005773,"s":[263.7],"i":{"x":0.587,"y":0.741},"o":{"x":0.259,"y":0.411}},{"t":30,"s":[291.3],"i":{"x":0.628,"y":0.768},"o":{"x":0.286,"y":0.488}},{"t":60,"s":[311.6],"i":{"x":0.699,"y":0.605},"o":{"x":0.346,"y":0.344}},{"t":90,"s":[324.38],"i":{"x":0.715,"y":0.561},"o":{"x":0.37,"y":0.251}},{"t":105,"s":[336.74],"i":{"x":0.741,"y":0.618},"o":{"x":0.413,"y":0.285}},{"t":112.493217,"s":[350.5],"i":{"x":0.741,"y":0.636},"o":{"x":0.414,"y":0.303}},{"t":116.236934,"s":[364.32],"i":{"x":0.741,"y":0.645},"o":{"x":0.414,"y":0.312}},{"t":118.107494,"s":[377.2],"i":{"x":0.744,"y":0.651},"o":{"x":0.418,"y":0.318}},{"t":119.063474,"s":[389.07],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.532358,"s":[399.45],"i":{"x":0.878,"y":0.625},"o":{"x":1,"y":0.292}},{"t":120,"s":[450],"h":1},{"t":240,"s":[450],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[70,70],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":120,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[100,100],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":47,"ty":4,"parent":46,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":46,"ty":3,"parent":45,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":120,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":183,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":216.06,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":45,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":50,"ty":4,"parent":49,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":49,"ty":3,"parent":48,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":126,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.72,0.72]}},{"t":187.44,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":189,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":219,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":48,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":53,"ty":4,"parent":52,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":52,"ty":3,"parent":51,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":132.12,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.54,0.54]}},{"t":191.52,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":195.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":221.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":51,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":56,"ty":4,"parent":55,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":55,"ty":3,"parent":54,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":137.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.36,0.36]}},{"t":195.72,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":200.94,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":225,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":54,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":59,"ty":4,"parent":58,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":58,"ty":3,"parent":57,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":143.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.18,0.18]}},{"t":199.68,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":207.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":228,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":57,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":62,"ty":4,"parent":61,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":61,"ty":3,"parent":60,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":149.88,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":204.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":213.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":230.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":60,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":65,"ty":4,"parent":64,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":64,"ty":3,"parent":63,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":155.88,"s":[0,0],"i":{"x":[0.06,0.06],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":208.08,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":219.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":234.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":63,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":68,"ty":4,"parent":67,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":67,"ty":3,"parent":66,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":162,"s":[0,0],"i":{"x":[0.12,0.12],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":212.4,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":225.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":237.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":66,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":44,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":120,"s":[0],"i":{"x":0,"y":0.691},"o":{"x":0,"y":0.358}},{"t":120.06,"s":[17.95],"i":{"x":0.113,"y":0.857},"o":{"x":0.017,"y":0.588}},{"t":150.045,"s":[83.52],"i":{"x":0.649,"y":0.696},"o":{"x":0.298,"y":0.432}},{"t":180.03,"s":[90.83],"i":{"x":0.975,"y":0.245},"o":{"x":0.804,"y":0.109}},{"t":240,"s":[184.05],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":119.76,"s":[100,100],"i":{"x":[1,1],"y":[0.1,0.1]},"o":{"x":[1,1],"y":[0,0]}},{"t":240,"s":[50,50],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":1,"ty":3,"parent":0,"ks":{},"ip":0,"op":241,"st":0},{"ind":0,"ty":3,"ks":{},"ip":0,"op":241,"st":0}]'),Lu={g:"https://jitter.video"},_u=240,Pu="5.7.4",Fu=360,zu={assets:Iu,fr:Ru,h:Au,ip:Eu,layers:Tu,meta:Lu,op:_u,v:Pu,w:Fu};function Du(){return n.jsxs("span",{className:"relative block w-5 h-5 shrink-0 overflow-hidden -translate-x-0.5","aria-hidden":!0,children:[n.jsx("span",{className:"absolute inset-0 w-5 h-5 thinking-light",children:n.jsx("span",{className:"absolute left-1/2 top-1/2",style:{transform:"translate(-50%, -50%) scale(1.8)"},children:n.jsx(ws,{animationData:Su,loop:!0,autoplay:!0,style:{width:20,height:20}})})}),n.jsx("span",{className:"absolute inset-0 w-5 h-5 thinking-dark",children:n.jsx("span",{className:"absolute left-1/2 top-1/2",style:{transform:"translate(-50%, -50%) scale(1.8)"},children:n.jsx(ws,{animationData:zu,loop:!0,autoplay:!0,style:{width:20,height:20}})})}),n.jsx("style",{children:`
|
|
252
|
+
`}),t.jsxs("div",{ref:x,className:on("image-generating-container",o),style:{"--container-width":e,"--container-height":a,"--image-generating-speed":String(s),...l&&typeof l=="object"?l:{}},...p,children:[t.jsxs("div",{className:"fluid-inner",children:[t.jsx("div",{className:"c c4",style:{"--i":0}}),t.jsx("div",{className:"c c1",style:{"--i":1}}),t.jsx("div",{className:"c c2",style:{"--i":2}}),t.jsx("div",{className:"c c3",style:{"--i":3}}),t.jsx("div",{className:"rings"})]}),t.jsx("div",{className:"glass"}),c?t.jsx("div",{className:"content-overlay remaining-overlay",children:t.jsx("span",{className:"remaining-text",children:d})}):t.jsxs("div",{className:"content-overlay",children:[t.jsx(V.motion.span,{className:"inline-flex items-center justify-center",animate:{scale:[1,1.08,1],opacity:[.9,1,.9]},transition:{duration:1.2,repeat:1/0,ease:[.16,1,.3,1]},children:m}),t.jsx("span",{className:on("caption",r),children:n})]})]})]})}Ls.displayName="ImageGenerating";function Ms({className:e}){const a=Is();return(a.simulate?a.showThink:a.phase==="thinking"||a.phase==="streaming")?t.jsx("span",{className:e,children:a.thinkingIndicator}):null}Ms.displayName="ResponseThinking";function Ps({className:e,children:a}){return t.jsx("div",{className:i("flex flex-col gap-1",e),children:a})}Ps.displayName="ResponseSteps";function As({step:e,status:a="completed"}){return t.jsx(Ht,{text:e.text,description:e.description,details:e.details,status:a})}As.displayName="ResponseStep";function Ds({markdown:e,streaming:a=!1,onStreamComplete:s,className:n}){const r=Is(),o=e??r.finalMarkdown;return a?t.jsx("div",{className:i("mt-1",n),children:t.jsx(Ts,{content:o,isActive:a,onStreamComplete:s})}):t.jsx("div",{className:i("mt-1",n),children:t.jsx(et,{children:o})})}Ds.displayName="ResponseContent";function oa({width:e="320px",height:a="240px",className:s}){return t.jsx(Ls,{width:e,height:a,className:s})}oa.displayName="ResponseImageGenerating";function ia({className:e}){const a=Is(),s=u.useMemo(()=>{if(!a.simulate)return[];const r=[],o=Math.min(a.visibleIndex,a.blocks.length-1);let l=-1;for(let c=0;c<=o;c++)a.blocks[c]?.type==="composer"&&(l=c);for(let c=0;c<=o;c++){const d=a.blocks[c];if(d){if(d.type==="think"){c===a.visibleIndex&&r.push(t.jsx("span",{children:a.thinkingIndicator},`think-${c}`));continue}if(d.type==="composer"&&d.step){const m=c===l&&!a.isSimDone;r.push(t.jsx(Ht,{text:d.step.text,description:d.step.description,details:d.step.details,status:m?"in-progress":"completed"},c))}d.type==="md"&&d.md&&r.push(t.jsx("div",{className:"mt-1",children:t.jsx(Ts,{content:d.md,isActive:c===o,onStreamComplete:()=>{a.setVisibleIndex(m=>Math.min(m+1,a.blocks.length)),c+1>=a.blocks.length&&a.onSimulateComplete?.()}})},`md-${c}`))}}return r},[a]),n=u.useMemo(()=>{if(a.simulate)return[];const r=[];for(let o=0;o<a.blocks.length;o++){const l=a.blocks[o];l&&(l.type==="composer"&&l.step&&r.push(t.jsx(Ht,{text:l.step.text,description:l.step.description,details:l.step.details,status:"completed",disableExpandAnimation:!0},o)),l.type==="md"&&l.md&&r.push(t.jsx("div",{className:"mt-1",children:t.jsx(et,{children:l.md})},`md-${o}`)))}return r},[a]);return a.phase==="imageGenerating"?t.jsx("div",{className:i("flex flex-col gap-3 font-body",e),children:t.jsx(oa,{})}):a.simulate?t.jsx("div",{className:i("flex flex-col gap-3 font-body",e),children:t.jsx("div",{className:"flex flex-col gap-1",children:s})}):t.jsxs("div",{className:i("flex flex-col gap-3 font-body",e),children:[t.jsx("div",{className:"flex flex-col gap-1",children:n}),(a.phase==="thinking"||a.phase==="streaming")&&a.thinkingIndicator]})}ia.displayName="ResponseDefaultLayout";function pl({simulate:e,phase:a,rounds:s,finalMarkdown:n,onSimulateComplete:r,onStepChange:o,thinkingIndicator:l,className:c,...d}){return t.jsx(ta,{simulate:e,phase:a,rounds:s,finalMarkdown:n,onSimulateComplete:r,onStepChange:o,thinkingIndicator:l,children:t.jsx("div",{...d,children:t.jsx(ia,{className:c})})})}pl.displayName="Response";const De=pl;De.Root=ta;De.Thinking=Ms;De.Steps=Ps;De.Step=As;De.Content=Ds;De.ImageGenerating=oa;De.DefaultLayout=ia;const zp=De,Tp=[{id:"6",layers:[{ind:5,ty:4,parent:4,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:4,ty:3,parent:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:48,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0},{ind:3,ty:3,ks:{p:{a:0,k:[1,1]}},ip:0,op:241,st:0}]},{id:"11",layers:[{ind:10,ty:4,parent:9,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:9,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:4.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:52.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"16",layers:[{ind:15,ty:4,parent:14,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:14,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:9,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:57,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"21",layers:[{ind:20,ty:4,parent:19,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:19,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:12.6,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:60.6,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"26",layers:[{ind:25,ty:4,parent:24,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:24,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:15,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:63,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"31",layers:[{ind:30,ty:4,parent:29,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:29,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:16.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:64.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"36",layers:[{ind:35,ty:4,parent:34,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:34,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:17.4,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:65.4,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"41",layers:[{ind:40,ty:4,parent:39,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[.031,.031,.027]},o:{a:0,k:100}}]},{ind:39,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:18,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:66,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]}],Lp=60,Mp=360,Pp=0,Ap=JSON.parse('[{"ind":8,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[11,61]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":80.16,"s":[100],"h":1},{"t":80.16,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":38.16,"s":[0],"i":{"x":1,"y":1},"o":{"x":0.82,"y":0}},{"t":80.16,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":22,"h":22,"ip":0,"op":241,"st":0,"refId":"6"},{"ind":13,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":92.22,"s":[100],"h":1},{"t":92.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":80.16,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":92.22,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":21,"ip":0,"op":241,"st":0,"refId":"11"},{"ind":18,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":101.22,"s":[100],"h":1},{"t":101.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":92.22,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":101.22,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":20,"ip":0,"op":241,"st":0,"refId":"16"},{"ind":23,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":107.22,"s":[100],"h":1},{"t":107.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":101.22,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":107.22,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":21,"ip":0,"op":241,"st":0,"refId":"21"},{"ind":28,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":112.02,"s":[100],"h":1},{"t":112.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":107.22,"s":[0],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":112.02,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"26"},{"ind":33,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":115.62,"s":[100],"h":1},{"t":115.62,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":112.02,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":115.62,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"31"},{"ind":38,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":118.02,"s":[100],"h":1},{"t":118.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":115.62,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":118.02,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":121,"ip":0,"op":241,"st":0,"refId":"36"},{"ind":43,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":119.76,"s":[100],"h":1},{"t":119.76,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":118.02,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.76,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":120,"ip":0,"op":241,"st":0,"refId":"41"},{"ind":2,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"i":{"x":0,"y":0.726},"o":{"x":0.077,"y":0.396}},{"t":0.947943,"s":[143.05],"i":{"x":0.584,"y":0.684},"o":{"x":0.258,"y":0.351}},{"t":1.872292,"s":[170.15],"i":{"x":0.585,"y":0.69},"o":{"x":0.258,"y":0.357}},{"t":3.748465,"s":[200.34],"i":{"x":0.586,"y":0.699},"o":{"x":0.259,"y":0.366}},{"t":7.503875,"s":[232.22],"i":{"x":0.586,"y":0.713},"o":{"x":0.259,"y":0.381}},{"t":15.005773,"s":[263.7],"i":{"x":0.587,"y":0.741},"o":{"x":0.259,"y":0.411}},{"t":30,"s":[291.3],"i":{"x":0.628,"y":0.768},"o":{"x":0.286,"y":0.488}},{"t":60,"s":[311.6],"i":{"x":0.699,"y":0.605},"o":{"x":0.346,"y":0.344}},{"t":90,"s":[324.38],"i":{"x":0.715,"y":0.561},"o":{"x":0.37,"y":0.251}},{"t":105,"s":[336.74],"i":{"x":0.741,"y":0.618},"o":{"x":0.413,"y":0.285}},{"t":112.493217,"s":[350.5],"i":{"x":0.741,"y":0.636},"o":{"x":0.414,"y":0.303}},{"t":116.236934,"s":[364.32],"i":{"x":0.741,"y":0.645},"o":{"x":0.414,"y":0.312}},{"t":118.107494,"s":[377.2],"i":{"x":0.744,"y":0.651},"o":{"x":0.418,"y":0.318}},{"t":119.063474,"s":[389.07],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.532358,"s":[399.45],"i":{"x":0.878,"y":0.625},"o":{"x":1,"y":0.292}},{"t":120,"s":[450],"h":1},{"t":240,"s":[450],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[70,70],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":120,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[100,100],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":47,"ty":4,"parent":46,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":46,"ty":3,"parent":45,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":120,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":183,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":216.06,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":45,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":50,"ty":4,"parent":49,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":49,"ty":3,"parent":48,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":126,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.72,0.72]}},{"t":187.44,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":189,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":219,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":48,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":53,"ty":4,"parent":52,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":52,"ty":3,"parent":51,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":132.12,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.54,0.54]}},{"t":191.52,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":195.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":221.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":51,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":56,"ty":4,"parent":55,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":55,"ty":3,"parent":54,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":137.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.36,0.36]}},{"t":195.72,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":200.94,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":225,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":54,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":59,"ty":4,"parent":58,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":58,"ty":3,"parent":57,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":143.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.18,0.18]}},{"t":199.68,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":207.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":228,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":57,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":62,"ty":4,"parent":61,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":61,"ty":3,"parent":60,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":149.88,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":204.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":213.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":230.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":60,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":65,"ty":4,"parent":64,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":64,"ty":3,"parent":63,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":155.88,"s":[0,0],"i":{"x":[0.06,0.06],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":208.08,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":219.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":234.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":63,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":68,"ty":4,"parent":67,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[0.031,0.031,0.027]},"o":{"a":0,"k":100}}]},{"ind":67,"ty":3,"parent":66,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":162,"s":[0,0],"i":{"x":[0.12,0.12],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":212.4,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":225.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":237.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":66,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":44,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":120,"s":[0],"i":{"x":0,"y":0.691},"o":{"x":0,"y":0.358}},{"t":120.06,"s":[17.95],"i":{"x":0.113,"y":0.857},"o":{"x":0.017,"y":0.588}},{"t":150.045,"s":[83.52],"i":{"x":0.649,"y":0.696},"o":{"x":0.298,"y":0.432}},{"t":180.03,"s":[90.83],"i":{"x":0.975,"y":0.245},"o":{"x":0.804,"y":0.109}},{"t":240,"s":[184.05],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":119.76,"s":[100,100],"i":{"x":[1,1],"y":[0.1,0.1]},"o":{"x":[1,1],"y":[0,0]}},{"t":240,"s":[50,50],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":1,"ty":3,"parent":0,"ks":{},"ip":0,"op":241,"st":0},{"ind":0,"ty":3,"ks":{},"ip":0,"op":241,"st":0}]'),Dp={g:"https://jitter.video"},_p=240,Ep="5.7.4",Fp=360,$p={assets:Tp,fr:Lp,h:Mp,ip:Pp,layers:Ap,meta:Dp,op:_p,v:Ep,w:Fp},Op=[{id:"6",layers:[{ind:5,ty:4,parent:4,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:4,ty:3,parent:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:48,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0},{ind:3,ty:3,ks:{p:{a:0,k:[1,1]}},ip:0,op:241,st:0}]},{id:"11",layers:[{ind:10,ty:4,parent:9,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:9,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:4.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:52.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"16",layers:[{ind:15,ty:4,parent:14,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:14,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:9,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:57,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"21",layers:[{ind:20,ty:4,parent:19,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:19,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,10]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:12.6,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:60.6,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"26",layers:[{ind:25,ty:4,parent:24,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:24,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:15,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:63,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"31",layers:[{ind:30,ty:4,parent:29,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:29,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:16.8,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:64.8,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"36",layers:[{ind:35,ty:4,parent:34,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:34,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:17.4,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:65.4,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]},{id:"41",layers:[{ind:40,ty:4,parent:39,ks:{},ip:0,op:241,st:0,shapes:[{ty:"el",p:{a:0,k:[10,10]},s:{a:0,k:[20,20]}},{ty:"fl",c:{a:0,k:[1,1,1]},o:{a:0,k:100}}]},{ind:39,ty:3,ks:{a:{a:0,k:[10,10]},p:{a:0,k:[10,110]},s:{a:1,k:[{t:0,s:[0,0],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:18,s:[0,0],i:{x:[0,0],y:[1,1]},o:{x:[0,0],y:[.9,.9]}},{t:66,s:[100,100],i:{x:[1,1],y:[1,1]},o:{x:[0,0],y:[0,0]}},{t:240,s:[100,100],h:1}]}},ip:0,op:241,st:0}]}],Bp=60,Vp=360,Hp=0,Gp=JSON.parse('[{"ind":8,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[11,61]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":80.16,"s":[100],"h":1},{"t":80.16,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":38.16,"s":[0],"i":{"x":1,"y":1},"o":{"x":0.82,"y":0}},{"t":80.16,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":22,"h":22,"ip":0,"op":241,"st":0,"refId":"6"},{"ind":13,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":92.22,"s":[100],"h":1},{"t":92.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":80.16,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":92.22,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":21,"ip":0,"op":241,"st":0,"refId":"11"},{"ind":18,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":101.22,"s":[100],"h":1},{"t":101.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":92.22,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":101.22,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":20,"ip":0,"op":241,"st":0,"refId":"16"},{"ind":23,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":107.22,"s":[100],"h":1},{"t":107.22,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":101.22,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":107.22,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":21,"ip":0,"op":241,"st":0,"refId":"21"},{"ind":28,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":112.02,"s":[100],"h":1},{"t":112.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":107.22,"s":[0],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":112.02,"s":[45],"h":1},{"t":240,"s":[45],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"26"},{"ind":33,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":115.62,"s":[100],"h":1},{"t":115.62,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[45],"h":1},{"t":112.02,"s":[45],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":115.62,"s":[90],"h":1},{"t":240,"s":[90],"h":1}]}},"w":20,"h":120,"ip":0,"op":241,"st":0,"refId":"31"},{"ind":38,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":118.02,"s":[100],"h":1},{"t":118.02,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[90],"h":1},{"t":115.62,"s":[90],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":118.02,"s":[135],"h":1},{"t":240,"s":[135],"h":1}]}},"w":20,"h":121,"ip":0,"op":241,"st":0,"refId":"36"},{"ind":43,"ty":0,"parent":2,"ks":{"a":{"a":0,"k":[10,60]},"o":{"a":1,"k":[{"t":0,"s":[100],"h":1},{"t":119.76,"s":[100],"h":1},{"t":119.76,"s":[0],"h":1},{"t":240,"s":[0],"h":1}]},"p":{"a":0,"k":[60,60]},"r":{"a":1,"k":[{"t":0,"s":[135],"h":1},{"t":118.02,"s":[135],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.76,"s":[180],"h":1},{"t":240,"s":[180],"h":1}]}},"w":21,"h":120,"ip":0,"op":241,"st":0,"refId":"41"},{"ind":2,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"i":{"x":0,"y":0.726},"o":{"x":0.077,"y":0.396}},{"t":0.947943,"s":[143.05],"i":{"x":0.584,"y":0.684},"o":{"x":0.258,"y":0.351}},{"t":1.872292,"s":[170.15],"i":{"x":0.585,"y":0.69},"o":{"x":0.258,"y":0.357}},{"t":3.748465,"s":[200.34],"i":{"x":0.586,"y":0.699},"o":{"x":0.259,"y":0.366}},{"t":7.503875,"s":[232.22],"i":{"x":0.586,"y":0.713},"o":{"x":0.259,"y":0.381}},{"t":15.005773,"s":[263.7],"i":{"x":0.587,"y":0.741},"o":{"x":0.259,"y":0.411}},{"t":30,"s":[291.3],"i":{"x":0.628,"y":0.768},"o":{"x":0.286,"y":0.488}},{"t":60,"s":[311.6],"i":{"x":0.699,"y":0.605},"o":{"x":0.346,"y":0.344}},{"t":90,"s":[324.38],"i":{"x":0.715,"y":0.561},"o":{"x":0.37,"y":0.251}},{"t":105,"s":[336.74],"i":{"x":0.741,"y":0.618},"o":{"x":0.413,"y":0.285}},{"t":112.493217,"s":[350.5],"i":{"x":0.741,"y":0.636},"o":{"x":0.414,"y":0.303}},{"t":116.236934,"s":[364.32],"i":{"x":0.741,"y":0.645},"o":{"x":0.414,"y":0.312}},{"t":118.107494,"s":[377.2],"i":{"x":0.744,"y":0.651},"o":{"x":0.418,"y":0.318}},{"t":119.063474,"s":[389.07],"i":{"x":1,"y":1},"o":{"x":0,"y":0}},{"t":119.532358,"s":[399.45],"i":{"x":0.878,"y":0.625},"o":{"x":1,"y":0.292}},{"t":120,"s":[450],"h":1},{"t":240,"s":[450],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[70,70],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":120,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[100,100],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":47,"ty":4,"parent":46,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":46,"ty":3,"parent":45,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":120,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.9,0.9]}},{"t":183,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":216.06,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":45,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":50,"ty":4,"parent":49,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":49,"ty":3,"parent":48,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":126,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.72,0.72]}},{"t":187.44,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":189,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":219,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":48,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":53,"ty":4,"parent":52,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":52,"ty":3,"parent":51,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":132.12,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.54,0.54]}},{"t":191.52,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":195.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":221.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":51,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":56,"ty":4,"parent":55,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":55,"ty":3,"parent":54,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,10]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":137.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.36,0.36]}},{"t":195.72,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":200.94,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":225,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":54,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":59,"ty":4,"parent":58,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":58,"ty":3,"parent":57,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":143.82,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0.18,0.18]}},{"t":199.68,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":207.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":228,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":57,"ty":3,"parent":44,"ks":{"p":{"a":0,"k":[50,0]}},"ip":0,"op":241,"st":0},{"ind":62,"ty":4,"parent":61,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":61,"ty":3,"parent":60,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":149.88,"s":[0,0],"i":{"x":[0,0],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":204.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":213.12,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":230.94,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":60,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":45}},"ip":0,"op":241,"st":0},{"ind":65,"ty":4,"parent":64,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":64,"ty":3,"parent":63,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":155.88,"s":[0,0],"i":{"x":[0.06,0.06],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":208.08,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":219.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":234.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":63,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":90}},"ip":0,"op":241,"st":0},{"ind":68,"ty":4,"parent":67,"ks":{},"ip":0,"op":241,"st":0,"shapes":[{"ty":"el","p":{"a":0,"k":[10,10]},"s":{"a":0,"k":[20,20]}},{"ty":"fl","c":{"a":0,"k":[1,1,1]},"o":{"a":0,"k":100}}]},{"ind":67,"ty":3,"parent":66,"ks":{"a":{"a":0,"k":[10,10]},"p":{"a":0,"k":[10,110]},"s":{"a":1,"k":[{"t":0,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":162,"s":[0,0],"i":{"x":[0.12,0.12],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":212.4,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":225.24,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[1,1],"y":[0,0]}},{"t":237.12,"s":[0,0],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":240,"s":[0,0],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":66,"ty":3,"parent":44,"ks":{"a":{"a":0,"k":[10,60]},"p":{"a":0,"k":[60,60]},"r":{"a":0,"k":135}},"ip":0,"op":241,"st":0},{"ind":44,"ty":3,"parent":1,"ks":{"a":{"a":0,"k":[60,60]},"p":{"a":0,"k":[180,180]},"r":{"a":1,"k":[{"t":0,"s":[0],"h":1},{"t":120,"s":[0],"i":{"x":0,"y":0.691},"o":{"x":0,"y":0.358}},{"t":120.06,"s":[17.95],"i":{"x":0.113,"y":0.857},"o":{"x":0.017,"y":0.588}},{"t":150.045,"s":[83.52],"i":{"x":0.649,"y":0.696},"o":{"x":0.298,"y":0.432}},{"t":180.03,"s":[90.83],"i":{"x":0.975,"y":0.245},"o":{"x":0.804,"y":0.109}},{"t":240,"s":[184.05],"h":1}]},"s":{"a":1,"k":[{"t":0,"s":[100,100],"i":{"x":[1,1],"y":[1,1]},"o":{"x":[0,0],"y":[0,0]}},{"t":119.76,"s":[100,100],"i":{"x":[1,1],"y":[0.1,0.1]},"o":{"x":[1,1],"y":[0,0]}},{"t":240,"s":[50,50],"h":1}]}},"ip":0,"op":241,"st":0},{"ind":1,"ty":3,"parent":0,"ks":{},"ip":0,"op":241,"st":0},{"ind":0,"ty":3,"ks":{},"ip":0,"op":241,"st":0}]'),qp={g:"https://jitter.video"},Up=240,Qp="5.7.4",Wp=360,Zp={assets:Op,fr:Bp,h:Vp,ip:Hp,layers:Gp,meta:qp,op:Up,v:Qp,w:Wp};function Kp(){return t.jsxs("span",{className:"relative block w-5 h-5 shrink-0 overflow-hidden -translate-x-0.5","aria-hidden":!0,children:[t.jsx("span",{className:"absolute inset-0 w-5 h-5 thinking-light",children:t.jsx("span",{className:"absolute left-1/2 top-1/2",style:{transform:"translate(-50%, -50%) scale(1.8)"},children:t.jsx(Gs,{animationData:$p,loop:!0,autoplay:!0,style:{width:20,height:20}})})}),t.jsx("span",{className:"absolute inset-0 w-5 h-5 thinking-dark",children:t.jsx("span",{className:"absolute left-1/2 top-1/2",style:{transform:"translate(-50%, -50%) scale(1.8)"},children:t.jsx(Gs,{animationData:Zp,loop:!0,autoplay:!0,style:{width:20,height:20}})})}),t.jsx("style",{children:`
|
|
247
253
|
.thinking-light { display: block; }
|
|
248
254
|
.thinking-dark { display: none; }
|
|
249
255
|
html[data-theme="dark"] .thinking-light, html[data-theme="classic-dark"] .thinking-light { display: none; }
|
|
250
256
|
html[data-theme="dark"] .thinking-dark, html[data-theme="classic-dark"] .thinking-dark { display: block; }
|
|
251
|
-
`})]})}function fs(e){return n.jsx(as,{loader:n.jsx(Du,{}),...e})}fs.displayName="ThinkingIndicator";function Jo(e){return n.jsx(xu,{...e,thinkingIndicator:e.thinkingIndicator??n.jsx(fs,{text:"Qoder is thinking..."})})}Jo.displayName="Response";const ze=Jo;ze.Root=Wt;ze.Thinking=ds;ze.Steps=us;ze.Step=ps;ze.Content=ms;ze.ImageGenerating=Xt;ze.DefaultLayout=Jt;const Mu=ze,ei=x.forwardRef(({children:e,className:t,maxWidth:s="752px",...a},r)=>{const o=y("w-full","bg-sage-bg","rounded-lg","p-3","text-sm leading-sm","font-normal","text-text",t);return n.jsx("div",{ref:r,className:o,style:{maxWidth:typeof s=="number"?`${s}px`:s},...a,children:e})});ei.displayName="UserMessage";const $s="w-5 h-5 text-text-secondary",ti=x.forwardRef(({filename:e,iconFilename:t,size:s,icon:a,getFileIcon:r,onClick:o,className:i,...l},c)=>{const p=a??(r?r(t??e,$s):n.jsx(En,{className:$s}));return n.jsxs("div",{ref:c,role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o,onKeyDown:o?m=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),o())}:void 0,className:y("flex flex-row items-center gap-4 w-full max-w-96","py-5 px-5 rounded-lg","bg-bg-base border border-border-tertiary","text-sm leading-sm","transition-colors cursor-pointer hover:border-border-secondary",i),...l,children:[n.jsx("div",{className:y("flex items-center justify-center w-10 h-10 shrink-0 rounded-md","bg-fill-tertiary"),children:p}),n.jsxs("div",{className:"flex flex-row items-center gap-3 min-w-0",children:[n.jsx("span",{className:"font-medium text-text truncate",children:e}),s!=null&&s!==""&&n.jsxs("span",{className:"shrink-0 text-text-tertiary",children:["(",s,")"]})]})]})});ti.displayName="FileCard";function Ou({className:e}){return n.jsxs("svg",{className:e,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[n.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),n.jsx("polyline",{points:"14 2 14 8 20 8"}),n.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),n.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),n.jsx("polyline",{points:"10 9 9 9 8 9"})]})}function ni(e,t){return n.jsx(Ou,{className:t})}const si=x.forwardRef((e,t)=>{const{getFileIcon:s}=lt(),a=s??((r,o)=>ni(r,o));return n.jsx(ti,{ref:t,getFileIcon:a,...e})});si.displayName="FileCard";const Bs="h-3.5 w-3.5 shrink-0 text-current",ai=x.forwardRef(({filename:e,iconFilename:t,onRemove:s,icon:a,getFileIcon:r,className:o,...i},l)=>{const d=a??(r?r(t??e,Bs):n.jsx(En,{className:Bs})),{color:p,...m}=i;return n.jsx(Xn,{ref:l,appearance:"filled",color:"mauve",closable:typeof s=="function",onClose:s,closeAriaLabel:"移除",className:o,...m,children:n.jsxs("span",{className:"inline-flex items-center gap-1.5 shrink-0",children:[d,e]})})});ai.displayName="FileAttachment";const ri=x.forwardRef((e,t)=>{const{getFileIcon:s}=lt(),a=s??((r,o)=>ni(r,o));return n.jsx(ai,{ref:t,getFileIcon:a,...e})});ri.displayName="FileAttachment";const $u={sm:"w-12 h-12",md:"w-16 h-16",lg:"w-20 h-20"},Bu="max-w-[90vw] max-h-[90vh] object-contain",Gu="h-2.5 w-2.5 text-text-secondary",Hu="h-4 w-4 text-text-secondary",oi=x.forwardRef(({src:e,alt:t="",onRemove:s,previewable:a=!0,onClick:r,size:o="sm",className:i,closeIcon:l,closeLargeIcon:c,...d},p)=>{const[m,b]=x.useState(!1),w=l??n.jsx(_e,{className:Gu}),u=c??n.jsx(Aa,{className:Hu}),g=typeof s=="function",f=x.useCallback(()=>{a&&b(!0)},[a]),k=x.useCallback(()=>b(!1),[]),h=x.useCallback(C=>{r?.(C),!C.defaultPrevented&&a&&f()},[r,a,f]),v=x.useCallback(C=>{C.stopPropagation(),s?.(C)},[s]);x.useEffect(()=>{if(!m)return;const C=T=>{T.key==="Escape"&&k()};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[m,k]);const S=m&&typeof document<"u"?ia.createPortal(n.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-bg-mask",role:"dialog","aria-modal":"true","aria-label":"图片预览",onClick:C=>{C.target===C.currentTarget&&k()},onKeyDown:C=>C.key==="Escape"&&k(),children:[n.jsx("img",{src:e,alt:t,className:y("rounded-lg shadow-xl",Bu),onClick:C=>C.stopPropagation(),draggable:!1}),n.jsx(je,{variant:"tertiary",size:"md",rounded:"pill",icon:u,onClick:k,"aria-label":"关闭预览",className:"absolute top-4 right-4 bg-bg-base border border-border-tertiary shadow-sm"})]}),document.body):null;return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:p,role:a?"button":void 0,tabIndex:a?0:void 0,className:y("relative group shrink-0",a&&"cursor-pointer",i),onClick:h,onKeyDown:a?C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),f())}:void 0,...d,children:[n.jsx("img",{src:e,alt:t,className:y("rounded-lg object-cover border border-border-tertiary",$u[o]),draggable:!1}),g&&n.jsx("button",{type:"button",onClick:v,"aria-label":"移除",className:"absolute -top-0.5 -right-0.5 flex h-4 w-4 cursor-pointer items-center justify-center rounded-full bg-bg-base border border-border-tertiary shadow-sm opacity-0 group-hover:opacity-100 transition-opacity hover:bg-fill-secondary",children:w})]}),S]})});oi.displayName="ImageAttachment";const Uu="h-2.5 w-2.5 text-text-secondary",Vu="h-4 w-4 text-text-secondary",ii=x.forwardRef((e,t)=>{const s=R("close",Uu),a=R("closeLarge",Vu);return n.jsx(oi,{ref:t,closeIcon:s,closeLargeIcon:a,...e})});ii.displayName="ImageAttachment";const li="w-3.5 h-3.5 text-text-tertiary",ci="w-3.5 h-3.5 transition-transform duration-200 ease-in-out";function di(e){const t=R("eye",li),s=R("arrowRight",ci);return n.jsx(Qt,{eyeIcon:t,arrowRightIcon:s,...e})}di.displayName="ReasoningStepRoot";function ui(e){const t=R("eye",li),s=R("arrowRight",ci);return n.jsx(Dt,{eyeIcon:t,arrowRightIcon:s,...e})}ui.displayName="ReasoningStep";const yt=ui;yt.Root=di;yt.Header=Yt;yt.Details=Kt;yt.DetailRow=ls;const qu=yt,gs="size-[1em] shrink-0",Wu=`${gs} text-text-tertiary`,Zu=`${gs} text-success`,Qu=`${gs} text-text-tertiary`,Yu="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",pi=x.memo(function({toolName:t,params:s,status:a,response:r,defaultExpanded:o=!1,statusText:i,className:l,timeIcon:c,checkboxCircleIcon:d,closeCircleIcon:p,arrowDownIcon:m,runningText:b="Running",ranText:w="Ran",failedText:u="Failed",responseLabel:g="Response"}){const[f,k]=x.useState(o),h=r!=null&&r.length>0,v=a==="running",S=a==="success",C=a==="error",E=i!==void 0?i:v?b:S?w:u,I=E!=="",F=c??n.jsx(Fa,{className:Wu}),Q=d??n.jsx(Bt,{className:Zu}),z=p??n.jsx(za,{className:Qu}),G=m??n.jsx(ye,{className:Yu});return n.jsxs("div",{className:y("flex flex-col",l),children:[n.jsxs("div",{onClick:()=>h&&!v&&k(!f),className:y("group flex items-center gap-1.5 min-h-5",h&&!v&&"cursor-pointer hover:opacity-80 transition-opacity"),children:[n.jsxs("div",{className:"shrink-0 flex items-center justify-center text-xs",children:[v&&F,S&&Q,C&&z]}),I&&n.jsx("span",{className:"text-xs leading-xs text-text-tertiary shrink-0",children:E}),n.jsx("span",{className:"text-xs leading-xs text-text-secondary shrink-0",children:t}),s!=null&&s!==""&&n.jsx("span",{className:"text-xs leading-xs text-text-tertiary min-w-0 shrink truncate",title:s,children:s}),h&&!v&&n.jsx("div",{className:y("shrink-0 inline-flex items-center justify-center","opacity-0 group-hover:opacity-100",f&&"!opacity-100",f?"rotate-180":"rotate-0"),children:G})]}),h&&f&&n.jsxs("div",{className:"mt-1 ml-4.5 rounded-md border border-border-tertiary bg-bg-base overflow-hidden font-mono text-xs leading-xs",children:[n.jsx("div",{className:"text-text-tertiary px-2 pt-1 pb-0 leading-xs",children:g}),n.jsx(be,{scrollbarVisibility:"auto",maxHeight:208,className:"px-2 pb-1 leading-xs",children:n.jsx("pre",{className:y("whitespace-pre-wrap break-words leading-xs",C?"text-error":"text-text-tertiary"),children:r})})]})]})});pi.displayName="ToolInvocationCard";const Ku="size-[1em] text-text-tertiary",Xu="size-[1em] text-success",Ju="size-[1em] text-text-tertiary",ep="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",mi=x.memo(function(t){const{t:s}=ca.useTranslation(),a=R("time",Ku),r=R("checkboxCircle",Xu),o=R("closeCircle",Ju),i=R("arrowDownS",ep);return n.jsx(pi,{timeIcon:a,checkboxCircleIcon:r,closeCircleIcon:o,arrowDownIcon:i,runningText:s("tools.status.running","Running"),ranText:s("tools.status.ran","Ran"),failedText:s("tools.status.failed","Failed"),...t})});mi.displayName="ToolInvocationCard";const tp=80;function Gs(e){if(!e)return{};const{label:t,...s}=e;return s}const np="Permission required",sp="This action requires your permission.",ap="Expand",rp="Collapse",op=", ",fi=x.forwardRef(({title:e,description:t,command:s,commandIntent:a,isLoadingIntent:r=!1,onClose:o,actions:i,className:l,closeIcon:c,warningIcon:d,expandLabel:p=ap,collapseLabel:m=rp,commaLabel:b=op,...w},u)=>{const g=e??np,f=t??sp,k=s.length>tp,[h,v]=x.useState(!k),S=c??n.jsx(_e,{className:"h-3.5 w-3.5"}),C=d??n.jsx(it,{className:"h-4 w-4"});return n.jsxs("div",{ref:u,className:y("relative rounded-lg border border-border-tertiary bg-bg-base p-3",l),...w,children:[o&&n.jsx("button",{type:"button",onClick:o,className:"absolute top-3 right-3 flex h-4 w-4 cursor-pointer items-center justify-center text-text-secondary transition-colors duration-200 hover:text-text","aria-label":"Close",children:S}),n.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[n.jsx("div",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-warning",children:C}),n.jsx("h3",{className:"min-w-0 flex-1 text-base leading-base font-semibold text-text",children:g})]}),n.jsx("p",{className:"mb-2 ml-6 text-xs leading-xs text-text-tertiary",children:r?n.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[n.jsx("div",{className:"inline-block h-3 w-3 animate-spin rounded-full border-2 border-text-tertiary border-t-transparent"}),n.jsx("span",{children:f})]}):n.jsxs(n.Fragment,{children:[f,a&&n.jsxs("span",{children:[b,a]})]})}),n.jsx("div",{className:"mb-4 ml-6",children:n.jsxs("div",{className:"rounded p-2 bg-fill-tertiary",children:[h||!k?n.jsx("div",{title:s,children:n.jsx(be,{scrollbarVisibility:"auto",maxHeight:240,className:"text-xs leading-xs font-medium text-text break-all",style:{fontFamily:"Fira Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},children:s})}):n.jsx("div",{className:"text-xs leading-xs font-medium text-text break-all line-clamp-2 overflow-hidden",style:{fontFamily:"Fira Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},title:s,children:s}),k&&n.jsx("button",{type:"button",onClick:()=>v(!h),className:"mt-1 flex items-center gap-1 text-xs leading-xs text-text-tertiary hover:text-text transition-colors",children:h?m:p})]})}),n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[i?.deny&&n.jsx(ne,{variant:"ghost",...Gs(i.deny),children:i.deny.label}),i?.allowOnce&&n.jsx("button",{type:"button",className:y("rounded-full inline-flex items-center justify-center","px-3 py-1 text-sm leading-sm font-medium","text-text-on-primary bg-error","cursor-pointer hover:opacity-90 active:opacity-95 transition-opacity","disabled:opacity-50 disabled:cursor-not-allowed"),...Gs(i.allowOnce),children:i.allowOnce.label})]})]})});fi.displayName="PermissionCard";const gi=x.forwardRef((e,t)=>{const{t:s}=ca.useTranslation(),a=R("close","h-3.5 w-3.5"),r=R("warning","h-4 w-4");return n.jsx(fi,{ref:t,...e,closeIcon:a,warningIcon:r,title:e.title??s("permission.title"),description:e.description??s("permission.description.default",{toolName:"Tool"}),expandLabel:s("permission.expand"),collapseLabel:s("permission.collapse"),commaLabel:s("common.comma")})});gi.displayName="PermissionCard";const ip="h-5 w-5 text-text-on-primary";function xi(e){const t=R("sparkling",ip);return n.jsx(cs,{sparklingIcon:t,...e})}xi.displayName="ImageGenerating";const hi=x.memo(function({children:t,className:s="",gridClassName:a="",isGenerating:r=!1,maxVisibleWhenGenerating:o=6,formatRemaining:i=l=>`+${l}`}){const l=x.Children.toArray(t),c=l.length,d=r&&c>o,p=d?o:c,m=c-o+1,w=l.slice(0,p).map((u,g)=>d&&g===p-1&&x.isValidElement(u)?x.cloneElement(u,{showOverlay:!0,overlayText:i(m)}):u);return n.jsx("div",{className:y("mt-5 mb-2",s),children:n.jsx("div",{className:y("flex flex-wrap gap-3",a),children:w})})});hi.displayName="GeneratedImagesGrid";const lp={multiSelect:"Multi-select",singleSelect:"Single-select",questionHeader:"Question",skipAll:"Skip All",continue:"Continue",submit:"Submit",sending:"Sending...",customInputPlaceholder:"Other (please specify)",recommend:"Recommend"},cp="[No preference]",xs=x.createContext(null);xs.displayName="UserQuestionContext";function bt(){const e=x.useContext(xs);if(!e)throw new Error("UserQuestion compound components must be used within UserQuestion.Root");return e}const dp=n.jsx(Pa,{className:"w-4 h-4 shrink-0 text-text-tertiary"}),up=n.jsx(An,{}),pp=n.jsx(ye,{}),mp=n.jsx(Tn,{className:"w-4 h-4 mr-1"}),en=x.forwardRef(function({questions:t,resetKey:s,onAnswer:a,onSkip:r,hasCustomText:o=!1,labels:i,chat4Icon:l=dp,arrowUpSIcon:c=up,arrowDownSIcon:d=pp,sparklingIcon:p=mp,children:m},b){const w={...lp,...i},[u,g]=x.useState(0),[f,k]=x.useState({}),[h,v]=x.useState({}),[S,C]=x.useState(0),[T,E]=x.useState(!1),[I,F]=x.useState(void 0),Q=x.useRef(s),z=x.useRef(null),G=x.useRef(new Map),re=x.useRef(u),M=x.useRef(!1),$=x.useRef(!1),q=x.useRef(new Map),ee=x.useRef(u),A=t[u],O=A?.options||[],W=t.every(D=>(f[D.question]||[]).length>0||(h[D.question]?.trim()||"").length>0),oe=(f[A?.question]||[]).length>0||(h[A?.question]?.trim()||"").length>0,Z=x.useCallback(D=>{const P=t[D];if(!P)return 0;const H=f[P.question]||[];if(H.length===0)return 0;const J=(P.options||[]).findIndex(xe=>H.includes(xe.label));return J>=0?J:0},[t,f]);x.useImperativeHandle(b,()=>({getAnswers:()=>{const D={};for(const P of t){const H=f[P.question]||[],X=h[P.question]?.trim(),J=[];H.length>0&&J.push(...H),X&&J.push(X),J.length>0&&(D[P.question]=J.join(", "))}return D}}),[f,h,t]),x.useEffect(()=>{Q.current!==s&&(Q.current=s,G.current.clear(),q.current.clear(),re.current=0,requestAnimationFrame(()=>{E(!1),g(0),k({}),v({}),C(0)}))},[s]),x.useEffect(()=>{if(ee.current!==u){if(re.current=u,$.current){M.current=!0;const D=G.current.get(u),P=z.current;if(D&&P){const H=()=>{M.current=!1,$.current=!1,P.removeEventListener("scrollend",H)};P.addEventListener("scrollend",H,{once:!0}),D.scrollIntoView({behavior:"smooth",block:"nearest"})}else M.current=!1,$.current=!1}ee.current=u}},[u]),x.useEffect(()=>{const D=setTimeout(()=>{let P=0;G.current.forEach(H=>{const X=H.getBoundingClientRect().height;X>P&&(P=X)}),P>0&&F(P)},50);return()=>clearTimeout(D)},[t,s]),x.useEffect(()=>{const D=z.current;if(!D)return;const P=new IntersectionObserver(H=>{if(M.current)return;let X=0,J=re.current;H.forEach(xe=>{xe.isIntersecting&&xe.intersectionRatio>X&&(X=xe.intersectionRatio,G.current.forEach((ks,un)=>{ks===xe.target&&(J=un)}))}),J!==re.current&&X>.5&&(re.current=J,g(J),C(Z(J)))},{root:D,threshold:[0,.25,.5,.75,1]});return G.current.forEach(H=>{H?.isConnected&&P.observe(H)}),()=>P.disconnect()},[t,Z]);const V=x.useCallback((D,P,H)=>{const J=t[H]?.multiSelect??!1,xe=H===t.length-1,un=(f[D]||[]).includes(P);k(ve=>{const kt=ve[D]||[];return J?kt.includes(P)?{...ve,[D]:kt.filter(Zi=>Zi!==P)}:{...ve,[D]:[...kt,P]}:kt.includes(P)?{...ve,[D]:[]}:{...ve,[D]:[P]}}),J||v(ve=>({...ve,[D]:""})),!J&&!xe&&!un&&setTimeout(()=>{const ve=H+1;$.current=!0,g(ve),C(Z(ve))},150)},[t,f,Z]),ie=x.useCallback(()=>{if(u>0){const D=u-1;$.current=!0,g(D),C(Z(D))}},[u,Z]),he=x.useCallback(()=>{if(u<t.length-1){const D=u+1;$.current=!0,g(D),C(Z(D))}},[u,t.length,Z]),fe=x.useCallback(()=>{if(!T)if(W){E(!0);const D={};for(const P of t){const H=f[P.question]||[],X=h[P.question]?.trim(),J=[];H.length>0&&J.push(...H),X&&J.push(X),D[P.question]=J.join(", ")}a(D)}else{const D=X=>(f[X.question]||[]).length===0&&(h[X.question]?.trim()||"").length===0,P=t.length;let H=-1;for(let X=1;X<P;X++){const J=(u+X)%P;if(D(t[J])){H=J;break}}H>=0&&($.current=!0,g(H),C(Z(H)))}},[T,W,t,f,h,u,a,Z]),Y=x.useCallback(()=>{if(T)return;E(!0);const D={};for(const P of t){const H=f[P.question]||[],X=h[P.question]?.trim();if(H.length>0||!!X){const xe=[];H.length>0&&xe.push(...H),X&&xe.push(X),D[P.question]=xe.join(", ")}else D[P.question]=cp}a(D),r()},[T,t,f,h,a,r]),Re=x.useCallback(()=>{if(T)return;const D={};for(const P of t){const H=P.options?.[0];H&&(D[P.question]=[H.label])}k(D),v({}),$.current=!0,g(t.length-1),C(0),setTimeout(()=>{z.current&&z.current.scrollTo({top:z.current.scrollHeight,behavior:"smooth"})},50)},[T,t]),ge=x.useCallback(D=>{$.current=D},[]),Ae={questions:t,labels:w,currentQuestionIndex:u,setCurrentQuestionIndex:g,answers:f,setAnswers:k,customInputs:h,setCustomInputs:v,focusedOptionIndex:S,setFocusedOptionIndex:C,isSubmitting:T,setIsSubmitting:E,maxQuestionHeight:I,scrollContainerRef:z,questionRefs:G,setShouldScrollToQuestion:ge,customInputRefs:q,currentQuestion:A,currentOptions:O,allQuestionsAnswered:W,currentQuestionHasAnswer:oe,getSelectedOptionIndex:Z,handleOptionClick:V,handlePrevious:ie,handleNext:he,handleContinue:fe,handleSkip:Y,handleRecommend:Re,chat4Icon:l,arrowUpSIcon:c,arrowDownSIcon:d,sparklingIcon:p,hasCustomText:o};return t.length===0?null:n.jsx(xs.Provider,{value:Ae,children:m})});en.displayName="UserQuestionRoot";function tn({className:e}){const t=bt();return n.jsxs("div",{className:y("flex items-center justify-between mb-2 -mt-2 px-3 pt-2 pb-2 rounded-t-xl bg-fill-tertiary",e),children:[n.jsxs("div",{className:"flex items-center gap-1.5",children:[t.chat4Icon,n.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:t.currentQuestion?.header||t.labels.questionHeader}),n.jsx("span",{className:"text-text-tertiary/50",children:"•"}),n.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:t.currentQuestion?.multiSelect?t.labels.multiSelect:t.labels.singleSelect})]}),t.questions.length>1&&n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(je,{size:"sm",variant:"ghost",onClick:t.handlePrevious,disabled:t.currentQuestionIndex===0,icon:t.arrowUpSIcon}),n.jsxs("span",{className:"text-xs leading-xs text-text-tertiary px-1",children:[t.currentQuestionIndex+1," / ",t.questions.length]}),n.jsx(je,{size:"sm",variant:"ghost",onClick:t.handleNext,disabled:t.currentQuestionIndex===t.questions.length-1,icon:t.arrowDownSIcon})]})]})}tn.displayName="UserQuestionHeader";function nn({question:e,qIndex:t,className:s}){const a=bt(),r=e.options||[],[o,i]=x.useState(!1),l=!!a.customInputs[e.question]?.trim(),c=o||l,d=t===a.currentQuestionIndex;return n.jsxs("div",{ref:p=>{p?a.questionRefs.current.set(t,p):a.questionRefs.current.delete(t)},className:y("transition-opacity duration-200",d?"opacity-100":"opacity-40",s),children:[n.jsxs("div",{className:"flex items-start gap-3 pl-2 mb-3",children:[n.jsxs("div",{className:"flex-shrink-0 w-5 flex items-center justify-center text-sm leading-sm font-medium text-text-tertiary",children:[t+1,"."]}),n.jsx("div",{className:"text-sm leading-sm font-medium text-text min-w-0 flex-1",children:e.question})]}),n.jsx(Rn,{items:r.map(p=>({id:p.label,label:p.label,description:p.description})),selectedIds:a.answers[e.question]?.map(p=>p)||[],focusedId:d?r[a.focusedOptionIndex]?.label:void 0,disabled:a.isSubmitting||!d,onItemClick:(p,m)=>{if(!d){a.setCurrentQuestionIndex(t),a.setFocusedOptionIndex(a.getSelectedOptionIndex(t));return}a.handleOptionClick(e.question,p.label,t),a.setFocusedOptionIndex(m)}}),e.allowCustomInput!==!1&&n.jsxs("div",{className:y("w-full flex gap-3 pl-2 mt-3 transition-colors",!d&&"opacity-40",a.isSubmitting&&"opacity-50"),children:[n.jsx("div",{className:y("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs leading-xs font-medium transition-colors",d&&a.focusedOptionIndex===r.length||a.customInputs[e.question]?.trim()?"bg-primary-active text-text-on-primary":"bg-fill-secondary text-text-tertiary"),children:r.length+1}),n.jsxs("div",{className:"flex-1 min-w-0 flex flex-col",children:[n.jsx("div",{className:"h-5 flex items-center",children:n.jsx("input",{ref:p=>{p?a.customInputRefs.current.set(e.question,p):a.customInputRefs.current.delete(e.question)},type:"text",value:a.customInputs[e.question]||"",style:{outline:"none",outlineOffset:0,boxShadow:"none",border:"none"},onChange:p=>{const m=p.target.value;a.setCustomInputs(b=>({...b,[e.question]:m})),!e.multiSelect&&m.trim()&&a.setAnswers(b=>({...b,[e.question]:[]}))},onFocus:()=>{i(!0),d&&(a.setFocusedOptionIndex(r.length),e.multiSelect||a.setAnswers(p=>({...p,[e.question]:[]})))},onBlur:()=>i(!1),onKeyDown:p=>{if(p.key==="Enter"&&!p.shiftKey){p.preventDefault(),p.stopPropagation();const m=a.customInputs[e.question]?.trim();if((a.answers[e.question]||[]).length>0||!!m)if(a.allQuestionsAnswered)a.handleContinue();else if(t<a.questions.length-1){const u=t+1;a.setShouldScrollToQuestion(!0),a.setCurrentQuestionIndex(u),a.setFocusedOptionIndex(0)}else a.handleContinue()}},placeholder:a.labels.customInputPlaceholder,disabled:a.isSubmitting||!d,className:y("w-full h-full py-0 bg-transparent text-sm leading-sm font-medium text-text","placeholder:text-text-tertiary placeholder:font-normal","border-0 rounded-none outline-none outline-offset-0","focus:outline-none focus:outline-offset-0","focus-visible:outline-none focus-visible:outline-offset-0","ring-0 focus:ring-0 focus:ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0 shadow-none","disabled:cursor-not-allowed")})}),n.jsx("div",{className:"mt-1.5 overflow-hidden origin-left transition-[width] duration-200 ease-out",style:{width:c?"100%":"0%"},"aria-hidden":!0,children:n.jsx("div",{className:"h-px bg-[var(--color-border-tertiary)]"})})]})]})]},e.question)}nn.displayName="UserQuestionCard";function sn({className:e,children:t}){const s=bt(),{scrollContainerRef:a,maxQuestionHeight:r,questions:o}=s;return n.jsx(be,{ref:a,scrollbarVisibility:"auto",maxHeight:r||void 0,className:y("scroll-smooth",e),children:n.jsx("div",{className:"space-y-4 px-3",children:t??o.map((i,l)=>n.jsx(nn,{question:i,qIndex:l},i.question))})})}sn.displayName="UserQuestionCards";function an({className:e}){const t=bt();return n.jsxs("div",{className:y("flex items-center justify-between px-3 py-2",e),children:[n.jsxs(ne,{variant:"ghost",size:"sm",onClick:t.handleRecommend,disabled:t.isSubmitting,children:[t.sparklingIcon,t.labels.recommend]}),n.jsxs("div",{className:"flex items-center gap-2",children:[!t.allQuestionsAnswered&&n.jsx(ne,{variant:"ghost",size:"sm",onClick:t.handleSkip,disabled:t.isSubmitting,children:t.labels.skipAll}),n.jsx(ne,{size:"sm",variant:"secondary",onClick:t.handleContinue,disabled:t.isSubmitting||t.hasCustomText||!t.allQuestionsAnswered,children:t.isSubmitting?t.labels.sending:n.jsxs(n.Fragment,{children:[t.allQuestionsAnswered?t.labels.submit:t.labels.continue,n.jsx("span",{className:"opacity-70",children:" ↵"})]})})]})]})}an.displayName="UserQuestionFooter";function rn(){return n.jsxs(te.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:y("border rounded-t-xl border-b-0 border-border border-border-tertiary bg-bg-base overflow-hidden pt-2 pb-2"),children:[n.jsx(tn,{}),n.jsx(sn,{}),n.jsx(an,{})]})}rn.displayName="UserQuestionDefaultLayout";function fp(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e?.getAttribute("contenteditable")==="true"}function gp({isSubmitting:e,currentQuestion:t,currentOptions:s,currentQuestionIndex:a,questions:r,focusedOptionIndex:o,setFocusedOptionIndex:i,currentQuestionHasAnswer:l,getSelectedOptionIndex:c,setShouldScrollToQuestion:d,setCurrentQuestionIndex:p,handleOptionClick:m,handleContinue:b}){x.useEffect(()=>{const w={ArrowDown(g){if(g.preventDefault(),o<s.length-1)i(o+1);else if(a<r.length-1){const f=a+1;d(!0),p(f),i(c(f))}},ArrowUp(g){if(g.preventDefault(),o>0)i(o-1);else if(a>0){const f=a-1;d(!0),p(f),i(c(f))}},Enter(g){g.preventDefault(),l?b():t&&s[o]&&m(t.question,s[o].label,a)}},u=g=>{if(e||fp(document.activeElement))return;const f=w[g.key];if(f){f(g);return}if(g.key>="1"&&g.key<="9"){const k=parseInt(g.key,10)-1;k>=0&&k<s.length&&t&&(g.preventDefault(),m(t.question,s[k].label,a),i(k))}};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[e,t,s,a,r.length,o,i,l,c,p,m,b,d])}function xp(){const e=bt();return gp({isSubmitting:e.isSubmitting,currentQuestion:e.currentQuestion,currentOptions:e.currentOptions,currentQuestionIndex:e.currentQuestionIndex,questions:e.questions,focusedOptionIndex:e.focusedOptionIndex,setFocusedOptionIndex:e.setFocusedOptionIndex,currentQuestionHasAnswer:e.currentQuestionHasAnswer,getSelectedOptionIndex:e.getSelectedOptionIndex,setShouldScrollToQuestion:e.setShouldScrollToQuestion,setCurrentQuestionIndex:e.setCurrentQuestionIndex,handleOptionClick:e.handleOptionClick,handleContinue:e.handleContinue}),null}const yi=x.forwardRef(function(t,s){return n.jsxs(en,{ref:s,...t,children:[n.jsx(xp,{}),n.jsx(rn,{})]})});yi.displayName="UserQuestion";const He=yi;He.Root=en;He.Header=tn;He.Card=nn;He.Cards=sn;He.Footer=an;He.DefaultLayout=rn;const hp=He;function yp(e,t){const s=R("chat4","w-4 h-4 shrink-0 text-text-tertiary"),a=R("arrowUpS"),r=R("arrowDownS"),o=R("sparkling","w-4 h-4 mr-1");return n.jsx(en,{ref:t,chat4Icon:s,arrowUpSIcon:a,arrowDownSIcon:r,sparklingIcon:o,...e})}const bi=x.forwardRef(yp);bi.displayName="UserQuestionRoot";const vi=x.forwardRef(function(t,s){const a=R("chat4","w-4 h-4 shrink-0 text-text-tertiary"),r=R("arrowUpS"),o=R("arrowDownS"),i=R("sparkling","w-4 h-4 mr-1");return n.jsx(hp,{ref:s,chat4Icon:a,arrowUpSIcon:r,arrowDownSIcon:o,sparklingIcon:i,...t})});vi.displayName="UserQuestion";const Ue=vi;Ue.Root=bi;Ue.Header=tn;Ue.Card=nn;Ue.Cards=sn;Ue.Footer=an;Ue.DefaultLayout=rn;const bp=Ue,vp={answer:"Answer",answers:"Answers"},kp="w-4 h-4 shrink-0 text-text-tertiary",ki=x.memo(function({answers:t,showHeader:s=!0,labels:a,className:r="",questionAnswerIcon:o}){const i={...vp,...a},l=Object.entries(t),c=o??n.jsx(vc,{className:kp});return l.length===0?null:n.jsxs("div",{className:`rounded-lg border border-border-tertiary bg-bg-container overflow-hidden mx-2 ${r}`.trim(),children:[s&&n.jsxs("div",{className:"flex items-center gap-2 pl-3 pr-3 h-8 border-b border-border-tertiary",children:[c,n.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:l.length===1?i.answer:i.answers})]}),n.jsx("div",{className:"flex flex-col gap-3 p-3 text-xs leading-xs",children:l.map(([d,p],m)=>n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx("span",{className:"font-medium text-text",children:d}),n.jsx("span",{className:"text-text-tertiary",children:p})]},m))})]})});ki.displayName="UserQuestionAnswer";const wp="w-4 h-4 shrink-0 text-text-tertiary",wi=x.memo(function(t){const s=R("questionAnswer",wp);return n.jsx(ki,{questionAnswerIcon:s,...t})});wi.displayName="UserQuestionAnswer";const Np={title:"In queue",sendNowTip:"Send now",removeTip:"Remove",fileLabel:"file",filesLabel:"files"},jp="w-3.5 h-3.5",Cp="w-3.5 h-3.5",Sp="w-4 h-4 text-text-tertiary transition-transform duration-200",Ip=x.memo(function({item:t,onRemove:s,onSendNow:a,labels:r,arrowUpIcon:o,closeIcon:i}){const l=x.useCallback(m=>{m.stopPropagation(),s?.(t.id)},[t.id,s]),c=x.useCallback(m=>{m.stopPropagation(),a?.(t.id)},[t.id,a]),d=t.attachmentCount??0,p=d===1?r.fileLabel:r.filesLabel;return n.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs leading-xs hover:bg-fill-tertiary transition-colors cursor-default",children:[n.jsx("span",{className:"truncate flex-1 text-text",children:t.label}),d>0&&n.jsxs("span",{className:"shrink-0 text-xs leading-xs text-text-tertiary",children:["+",d," ",p]}),n.jsxs("div",{className:"flex items-center gap-0.5",children:[a&&n.jsx(at,{content:r.sendNowTip,side:"top",children:n.jsx(je,{size:"sm",variant:"ghost",icon:o,"aria-label":r.sendNowTip,className:"shrink-0",onClick:c})}),s&&n.jsx(at,{content:r.removeTip,side:"top",children:n.jsx(je,{size:"sm",variant:"ghost",icon:i,"aria-label":r.removeTip,className:"shrink-0",onClick:l})})]})]})}),Ni=x.memo(function({items:t,onRemoveItem:s,onSendNow:a,isStreaming:r=!1,hasStatusCardBelow:o=!1,labels:i,defaultExpanded:l=!0,storageKey:c,arrowUpIcon:d,closeIcon:p,arrowDownSIcon:m}){const b={...Np,...i},w=d??n.jsx(An,{className:jp}),u=p??n.jsx(_e,{className:Cp}),g=m??n.jsx(ye,{className:Sp}),[f,k]=x.useState(()=>{if(typeof window>"u")return l;if(c){const v=localStorage.getItem(c);return v!==null?v==="true":l}return l});if(x.useEffect(()=>{c&&localStorage.setItem(c,String(f))},[c,f]),t.length===0)return null;const h=y("w-full overflow-hidden flex flex-col","border border-b-0 border-border border-border-tertiary bg-bg-base",!o&&"rounded-t-xl");return n.jsxs(te.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:h,children:[n.jsx("div",{role:"button",tabIndex:0,onClick:()=>k(!f),onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),k(!f))},"aria-expanded":f,"aria-label":`${f?"Collapse":"Expand"} queue`,className:"flex items-center justify-between px-3 py-1 h-7 cursor-pointer bg-fill-tertiary hover:bg-fill-secondary transition-colors duration-150 focus:outline-none",children:n.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[n.jsx("span",{className:y("inline-flex items-center justify-center",!f&&"-rotate-90"),children:g}),n.jsx("span",{className:"text-xs leading-xs font-medium text-text-secondary",children:b.title})]})}),n.jsx(te.AnimatePresence,{initial:!1,children:f&&n.jsx(te.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:[.23,1,.32,1]},className:"overflow-hidden",children:n.jsx(be,{scrollbarVisibility:"auto",maxHeight:208,className:"border-t border-border-tertiary scroll-smooth",children:t.map(v=>n.jsx(Ip,{item:v,onRemove:s,onSendNow:a,labels:b,arrowUpIcon:w,closeIcon:u},v.id))})})})]})});Ni.displayName="QueueIndicator";const Rp="w-3.5 h-3.5",Ap="w-3.5 h-3.5",Ep="w-4 h-4 text-text-tertiary transition-transform duration-200",ji=x.memo(function(t){const s=R("arrowUp",Rp),a=R("close",Ap),r=R("arrowDownS",Ep);return n.jsx(Ni,{arrowUpIcon:s,closeIcon:a,arrowDownSIcon:r,...t})});ji.displayName="QueueIndicator";const Hs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Tp="font-['Seti'] shrink-0 inline-flex items-center justify-center w-4 h-4 text-[16px] leading-[16px]",kn={javascript:"",typescript:"",react:"",json:"",html:"",css:"",python:"",java:"",go:"",rust:"",php:"",ruby:"",vue:"",svelte:"",markdown:"",yaml:"",xml:"",shell:"",sass:"",settings:"",default:""},Us={javascript:"#F8CA3E",typescript:"#1E8DEE",react:"#1E8DEE",json:"#F8CA3E",html:"#1E8DEE",css:"#1E8DEE",python:"#1E8DEE",java:"#E84654",go:"#1E8DEE",rust:"#6A89E6",php:"#AE4EE2",ruby:"#E84654",vue:"#4EBD35",svelte:"#E84654",markdown:"#1E8DEE",yaml:"#AE4EE2",xml:"#F18745",shell:"#4EBD35",sass:"#E84654",settings:"#6A89E6",default:"#6A89E6"},Rt={js:"javascript",jsx:"react",ts:"typescript",tsx:"typescript",json:"json",html:"html",css:"css",scss:"sass",sass:"sass",less:"css",py:"python",java:"java",go:"go",rs:"rust",php:"php",rb:"ruby",vue:"vue",svelte:"svelte",md:"markdown",yml:"yaml",yaml:"yaml",xml:"xml",sh:"shell",bash:"shell",zsh:"shell",config:"settings",conf:"settings"};function Ci(e,t){let s=null;if(t&&typeof t=="string"&&t.trim()){const a=t.lastIndexOf(".");if(a>0&&a<t.length-1){const r=t.substring(a+1).toLowerCase().trim();r&&Rt[r]&&(s=Rt[r])}}if(!s&&e&&typeof e=="string"&&e.trim()){const a=e.toLowerCase().trim();Rt[a]?s=Rt[a]:kn[a]&&(s=a)}return s||"default"}function Lp(e,t){const s=Ci(e,t);return kn[s]??kn.default}function _p(e,t){const s=Ci(e,t);return Us[s]??Us.default}function Si({files:e=[],defaultExpanded:t=!0,className:s,headerIcon:a,acceptIcon:r,rejectIcon:o,getFileIcon:i}){const[l,c]=x.useState(null),d=n.jsx(Ma,{className:y(Hs,"text-text-secondary")}),p="w-[var(--font-size-sm)] h-[var(--font-size-sm)]",m=n.jsx(Ie,{className:p}),b=n.jsx(_e,{className:p}),w="flex items-center justify-center shrink-0 rounded cursor-pointer transition-colors duration-200 text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-primary";return n.jsx(Ce,{headerIcon:a??d,headerTitle:n.jsxs("span",{className:"font-normal",children:[e.length," ",e.length===1?"File":"Files"]}),headerRight:n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(ne,{variant:"ghost",size:"sm",onClick:u=>u.stopPropagation(),children:"Undo All"}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:u=>u.stopPropagation(),children:"Keep All"}),n.jsx(ne,{variant:"secondary",size:"sm",onClick:u=>u.stopPropagation(),children:"Review"})]}),defaultExpanded:t,contentPadding:"var(--spacing-1\\.5) var(--spacing-1) var(--spacing-1\\.5)",className:s,children:n.jsx("div",{className:"flex flex-col gap-0.5",children:e.map((u,g)=>{const f=l===g,k=u.additions!=null&&Number.isFinite(u.additions)?u.additions:null,h=u.deletions!=null&&Number.isFinite(u.deletions)?u.deletions:null;return n.jsxs("div",{className:y("flex items-center gap-1 px-1 py-1 rounded-sm cursor-pointer transition-colors duration-200 relative h-6",f?"bg-fill-secondary":"bg-transparent"),onMouseEnter:()=>c(g),onMouseLeave:()=>c(null),children:[i?n.jsx("span",{className:y("shrink-0",Hs),children:i(u.fileType,u.filename)}):n.jsx("span",{className:y("shrink-0",Tp),style:{color:_p(u.fileType,u.filename)},"aria-hidden":!0,children:Lp(u.fileType,u.filename)}),n.jsx("span",{className:y("flex-1 text-xs font-medium truncate pr-12",f?"text-text":"text-text-tertiary"),children:u.filename}),n.jsxs("div",{className:y("absolute right-1 flex items-center gap-0.5 text-xs font-medium shrink-0 transition-opacity duration-200",f?"opacity-0 pointer-events-none":"opacity-100"),children:[k!=null&&n.jsxs("span",{className:"text-success",children:["+",k]}),h!=null&&n.jsxs("span",{className:"text-error",children:["-",h]})]}),n.jsxs("div",{className:y("flex items-center gap-0.5 shrink-0 absolute right-1 transition-opacity duration-200",f?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:v=>v.stopPropagation(),children:[n.jsx("button",{type:"button",className:y(w,"h-6 min-w-6 [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"),title:"Reject","aria-label":"Reject",onClick:v=>v.stopPropagation(),children:o??b}),n.jsx("button",{type:"button",className:y(w,"h-6 min-w-6 [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"),title:"Accept","aria-label":"Accept",onClick:v=>v.stopPropagation(),children:r??m})]})]},g)})})})}Si.displayName="FileReviewPart";const Vs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",At="w-[var(--font-size-sm)] h-[var(--font-size-sm)]";function Ii(e){const t=R("requestChanges",Vs)??n.jsx(Ma,{className:Vs}),s=R("checkLine",At)??n.jsx(Ie,{className:At}),a=R("close",At)??n.jsx(_e,{className:At}),r=e.getFileIcon;return n.jsx(Si,{headerIcon:t,acceptIcon:s,rejectIcon:a,getFileIcon:r,...e})}Ii.displayName="FileReviewPart";const vt="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Pp=n.jsx(Oa,{className:y(vt,"text-text-secondary")}),Fp=n.jsx($a,{className:y(vt,"text-text-tertiary")}),zp=n.jsx(Bt,{className:y(vt,"text-text-quaternary")}),Dp=n.jsx(Ba,{className:y(vt,"text-text-tertiary")}),Mp=n.jsx(Ga,{className:y(vt,"text-text")});function Op(e,t,s){return t?s.loaderIcon??Mp:e.status==="completed"?s.completedIcon??zp:e.status==="skipped"||e.status==="cancelled"?s.skippedIcon??Dp:s.uncompletedIcon??Fp}function Ri({tasks:e=[],title:t="To-dos",currentTaskId:s,defaultExpanded:a=!0,className:r,headerIcon:o,uncompletedIcon:i,completedIcon:l,skippedIcon:c,loaderIcon:d}){return n.jsx(Ce,{headerIcon:o??Pp,headerTitle:n.jsx("span",{className:"text-left",children:t}),defaultExpanded:a,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",showExpandAllBar:!0,maxHeight:124,className:r,children:n.jsx("div",{className:"flex flex-col gap-2",children:e.map((p,m)=>{const b=p.id??m,w=s!=null&&s===String(b),u=Op(p,w,{loaderIcon:d,completedIcon:l,skippedIcon:c,uncompletedIcon:i});return n.jsxs("div",{className:"flex flex-row gap-2 items-start",children:[n.jsx("div",{className:"flex items-center justify-center shrink-0 pt-0.5 [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",children:u}),n.jsx("span",{className:y("text-xs leading-xs flex-1 text-left",w?"text-text":p.status==="completed"?"text-text-quaternary line-through":"text-text-tertiary"),children:p.text})]},b)})})})}Ri.displayName="TaskPart";const on="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",qs=`${on} text-text-secondary`,Et=`${on} text-text-tertiary`,Ws=`${on} text-text-quaternary`,Zs=`${on} text-text`;function Ai(e){const t=R("catalog",qs)??n.jsx(Oa,{className:qs}),s=R("circle",Et)??n.jsx($a,{className:Et}),a=R("checkboxCircle",Ws)??n.jsx(Bt,{className:Ws}),r=R("indeterminateCircle",Et)??n.jsx(Ba,{className:Et}),o=R("arrowRightCircleFill",Zs)??n.jsx(Ga,{className:Zs});return n.jsx(Ri,{headerIcon:t,uncompletedIcon:s,completedIcon:a,skippedIcon:r,loaderIcon:o,...e})}Ai.displayName="TaskPart";const hs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",$p=n.jsx(Gt,{className:`${hs} text-text-secondary`}),Bp=n.jsx(Ha,{className:hs}),Gp=n.jsx(Ie,{className:y(hs,"text-success")});function Ei({title:e="Plan",description:t,content:s,viewText:a="View",buildText:r="Build ⌘⏎",builtText:o="Built",isBuilt:i=!1,isGenerating:l=!1,onView:c,onBuild:d,onDownload:p,defaultExpanded:m=!0,contentMaxHeight:b,collapsible:w=!1,className:u,headerIcon:g,downloadIcon:f,builtIcon:k}){const h=s.split(`
|
|
252
|
-
`),
|
|
253
|
-
`):s;return
|
|
257
|
+
`})]})}function _s(e){return t.jsx(Cs,{loader:t.jsx(Kp,{}),...e})}_s.displayName="ThinkingIndicator";function xl(e){return t.jsx(zp,{...e,thinkingIndicator:e.thinkingIndicator??t.jsx(_s,{text:"Spark is thinking..."})})}xl.displayName="Response";const _e=xl;_e.Root=ta;_e.Thinking=Ms;_e.Steps=Ps;_e.Step=As;_e.Content=Ds;_e.ImageGenerating=oa;_e.DefaultLayout=ia;const Yp=_e,fl=u.forwardRef(({children:e,className:a,maxWidth:s="752px",...n},r)=>{const o=i("w-full","bg-sage-bg","rounded-lg","p-3","text-sm leading-sm","font-normal","text-text",a);return t.jsx("div",{ref:r,className:o,style:{maxWidth:typeof s=="number"?`${s}px`:s},...n,children:e})});fl.displayName="UserMessage";const ln="w-5 h-5 text-text-secondary",hl=u.forwardRef(({filename:e,iconFilename:a,size:s,icon:n,getFileIcon:r,onClick:o,className:l,...c},d)=>{const p=n??(r?r(a??e,ln):t.jsx(Fa,{className:ln}));return t.jsxs("div",{ref:d,role:o?"button":void 0,tabIndex:o?0:void 0,onClick:o,onKeyDown:o?x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),o())}:void 0,className:i("flex flex-row items-center gap-4 w-full max-w-96","py-5 px-5 rounded-lg","bg-bg-base border border-border-tertiary","text-sm leading-sm","transition-colors cursor-pointer hover:border-border-secondary",l),...c,children:[t.jsx("div",{className:i("flex items-center justify-center w-10 h-10 shrink-0 rounded-md","bg-fill-tertiary"),children:p}),t.jsxs("div",{className:"flex flex-row items-center gap-3 min-w-0",children:[t.jsx("span",{className:"font-medium text-text truncate",children:e}),s!=null&&s!==""&&t.jsxs("span",{className:"shrink-0 text-text-tertiary",children:["(",s,")"]})]})]})});hl.displayName="FileCard";function Xp({className:e}){return t.jsxs("svg",{className:e,width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[t.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),t.jsx("polyline",{points:"14 2 14 8 20 8"}),t.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),t.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),t.jsx("polyline",{points:"10 9 9 9 8 9"})]})}function gl(e,a){return t.jsx(Xp,{className:a})}const yl=u.forwardRef((e,a)=>{const{getFileIcon:s}=pt(),n=s??((r,o)=>gl(r,o));return t.jsx(hl,{ref:a,getFileIcon:n,...e})});yl.displayName="FileCard";const cn="h-3.5 w-3.5 shrink-0 text-current",bl=u.forwardRef(({filename:e,iconFilename:a,onRemove:s,icon:n,getFileIcon:r,className:o,...l},c)=>{const m=n??(r?r(a??e,cn):t.jsx(Fa,{className:cn})),{color:p,...x}=l;return t.jsx(os,{ref:c,appearance:"filled",color:"mauve",closable:typeof s=="function",onClose:s,closeAriaLabel:"移除",className:o,...x,children:t.jsxs("span",{className:"inline-flex items-center gap-1.5 shrink-0",children:[m,e]})})});bl.displayName="FileAttachment";const vl=u.forwardRef((e,a)=>{const{getFileIcon:s}=pt(),n=s??((r,o)=>gl(r,o));return t.jsx(bl,{ref:a,getFileIcon:n,...e})});vl.displayName="FileAttachment";const Jp={sm:"w-12 h-12",md:"w-16 h-16",lg:"w-20 h-20"},ex="max-w-[90vw] max-h-[90vh] object-contain",tx="h-2.5 w-2.5 text-text-secondary",ax="h-4 w-4 text-text-secondary",wl=u.forwardRef(({src:e,alt:a="",onRemove:s,previewable:n=!0,onClick:r,size:o="sm",className:l,closeIcon:c,closeLargeIcon:d,...m},p)=>{const[x,g]=u.useState(!1),v=c??t.jsx(Ce,{className:tx}),f=d??t.jsx(er,{className:ax}),b=typeof s=="function",h=u.useCallback(()=>{n&&g(!0)},[n]),w=u.useCallback(()=>g(!1),[]),j=u.useCallback(S=>{r?.(S),!S.defaultPrevented&&n&&h()},[r,n,h]),k=u.useCallback(S=>{S.stopPropagation(),s?.(S)},[s]);u.useEffect(()=>{if(!x)return;const S=P=>{P.key==="Escape"&&w()};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[x,w]);const T=x&&typeof document<"u"?Cn.createPortal(t.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-bg-mask",role:"dialog","aria-modal":"true","aria-label":"图片预览",onClick:S=>{S.target===S.currentTarget&&w()},onKeyDown:S=>S.key==="Escape"&&w(),children:[t.jsx("img",{src:e,alt:a,className:i("rounded-lg shadow-xl",ex),onClick:S=>S.stopPropagation(),draggable:!1}),t.jsx(Ne,{variant:"tertiary",size:"md",rounded:"pill",icon:f,onClick:w,"aria-label":"关闭预览",className:"absolute top-4 right-4 bg-bg-base border border-border-tertiary shadow-sm"})]}),document.body):null;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:p,role:n?"button":void 0,tabIndex:n?0:void 0,className:i("relative group shrink-0",n&&"cursor-pointer",l),onClick:j,onKeyDown:n?S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),h())}:void 0,...m,children:[t.jsx("img",{src:e,alt:a,className:i("rounded-lg object-cover border border-border-tertiary",Jp[o]),draggable:!1}),b&&t.jsx("button",{type:"button",onClick:k,"aria-label":"移除",className:"absolute -top-0.5 -right-0.5 flex h-4 w-4 cursor-pointer items-center justify-center rounded-full bg-bg-base border border-border-tertiary shadow-sm opacity-0 group-hover:opacity-100 transition-opacity hover:bg-fill-secondary",children:v})]}),T]})});wl.displayName="ImageAttachment";const sx="h-2.5 w-2.5 text-text-secondary",nx="h-4 w-4 text-text-secondary",kl=u.forwardRef((e,a)=>{const s=N("close",sx),n=N("closeLarge",nx);return t.jsx(wl,{ref:a,closeIcon:s,closeLargeIcon:n,...e})});kl.displayName="ImageAttachment";const jl="w-3.5 h-3.5 text-text-tertiary",Nl="w-3.5 h-3.5 transition-transform duration-200 ease-in-out";function Cl(e){const a=N("eye",jl),s=N("arrowRight",Nl);return t.jsx(sa,{eyeIcon:a,arrowRightIcon:s,...e})}Cl.displayName="ReasoningStepRoot";function Sl(e){const a=N("eye",jl),s=N("arrowRight",Nl);return t.jsx(Ht,{eyeIcon:a,arrowRightIcon:s,...e})}Sl.displayName="ReasoningStep";const Nt=Sl;Nt.Root=Cl;Nt.Header=na;Nt.Details=ra;Nt.DetailRow=zs;const rx=Nt,Es="size-[1em] shrink-0",ox=`${Es} text-text-tertiary`,ix=`${Es} text-success`,lx=`${Es} text-text-tertiary`,cx="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",Il=u.memo(function({toolName:a,params:s,status:n,response:r,defaultExpanded:o=!1,statusText:l,className:c,timeIcon:d,checkboxCircleIcon:m,closeCircleIcon:p,arrowDownIcon:x,arrowRightIcon:g,runningText:v="Running",ranText:f="Ran",failedText:b="Failed",responseLabel:h="Response"}){const[w,j]=u.useState(o),k=r!=null&&r.length>0,T=n==="running",S=n==="success",P=n==="error",I=l!==void 0?l:T?v:S?f:b,_=I!=="",ne=d??t.jsx(or,{className:ox}),D=m??t.jsx(Qt,{className:ix}),q=p??t.jsx(ir,{className:lx}),ie=x??g??t.jsx(be,{className:cx});return t.jsxs("div",{className:i("flex flex-col",c),children:[t.jsxs("div",{onClick:()=>k&&!T&&j(!w),className:i("group flex items-center gap-1.5 min-h-5",k&&!T&&"cursor-pointer hover:opacity-80 transition-opacity"),children:[t.jsxs("div",{className:"shrink-0 flex items-center justify-center text-xs",children:[T&&ne,S&&D,P&&q]}),_&&t.jsx("span",{className:"text-xs leading-xs text-text-tertiary shrink-0",children:I}),t.jsx("span",{className:"text-xs leading-xs text-text-secondary shrink-0",children:a}),s!=null&&s!==""&&t.jsx("span",{className:"text-xs leading-xs text-text-tertiary min-w-0 shrink truncate",title:s,children:s}),k&&!T&&t.jsx("div",{className:i("shrink-0 inline-flex items-center justify-center","opacity-0 group-hover:opacity-100",w&&"!opacity-100",w?"rotate-180":"rotate-0"),children:ie})]}),k&&w&&t.jsxs("div",{className:"mt-1 ml-4.5 rounded-md border border-border-tertiary bg-bg-base overflow-hidden font-mono text-xs leading-xs",children:[t.jsx("div",{className:"text-text-tertiary px-2 pt-1 pb-0 leading-xs",children:h}),t.jsx(ve,{scrollbarVisibility:"auto",maxHeight:208,className:"px-2 pb-1 leading-xs",children:t.jsx("pre",{className:i("whitespace-pre-wrap break-words leading-xs",P?"text-error":"text-text-tertiary"),children:r})})]})]})});Il.displayName="ToolInvocationCard";const dx="size-[1em] text-text-tertiary",ux="size-[1em] text-success",mx="size-[1em] text-text-tertiary",px="w-3.5 h-3.5 text-text-tertiary transition-all duration-200",Rl=u.memo(function(a){const{t:s}=In.useTranslation(),n=N("time",dx),r=N("checkboxCircle",ux),o=N("closeCircle",mx),l=N("arrowDownS",px);return t.jsx(Il,{timeIcon:n,checkboxCircleIcon:r,closeCircleIcon:o,arrowDownIcon:l,runningText:s("tools.status.running","Running"),ranText:s("tools.status.ran","Ran"),failedText:s("tools.status.failed","Failed"),...a})});Rl.displayName="ToolInvocationCard";const xx=80;function dn(e){if(!e)return{};const{label:a,...s}=e;return s}const fx="Permission required",hx="This action requires your permission.",gx="Expand",yx="Collapse",bx=", ",zl=u.forwardRef(({title:e,description:a,command:s,commandIntent:n,isLoadingIntent:r=!1,onClose:o,actions:l,className:c,closeIcon:d,warningIcon:m,expandLabel:p=gx,collapseLabel:x=yx,commaLabel:g=bx,...v},f)=>{const b=e??fx,h=a??hx,w=s.length>xx,[j,k]=u.useState(!w),T=d??t.jsx(Ce,{className:"h-3.5 w-3.5"}),S=m??t.jsx(mt,{className:"h-4 w-4"});return t.jsxs("div",{ref:f,className:i("relative rounded-lg border border-border-tertiary bg-bg-base p-3",c),...v,children:[o&&t.jsx("button",{type:"button",onClick:o,className:"absolute top-3 right-3 flex h-4 w-4 cursor-pointer items-center justify-center text-text-secondary transition-colors duration-200 hover:text-text","aria-label":"Close",children:T}),t.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[t.jsx("div",{className:"flex h-4 w-4 shrink-0 items-center justify-center text-warning",children:S}),t.jsx("h3",{className:"min-w-0 flex-1 text-base leading-base font-semibold text-text",children:b})]}),t.jsx("p",{className:"mb-2 ml-6 text-xs leading-xs text-text-tertiary",children:r?t.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[t.jsx("div",{className:"inline-block h-3 w-3 animate-spin rounded-full border-2 border-text-tertiary border-t-transparent"}),t.jsx("span",{children:h})]}):t.jsxs(t.Fragment,{children:[h,n&&t.jsxs("span",{children:[g,n]})]})}),t.jsx("div",{className:"mb-4 ml-6",children:t.jsxs("div",{className:"rounded p-2 bg-fill-tertiary",children:[j||!w?t.jsx("div",{title:s,children:t.jsx(ve,{scrollbarVisibility:"auto",maxHeight:240,className:"text-xs leading-xs font-medium text-text break-all",style:{fontFamily:"Fira Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},children:s})}):t.jsx("div",{className:"text-xs leading-xs font-medium text-text break-all line-clamp-2 overflow-hidden",style:{fontFamily:"Fira Code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},title:s,children:s}),w&&t.jsx("button",{type:"button",onClick:()=>k(!j),className:"mt-1 flex items-center gap-1 text-xs leading-xs text-text-tertiary hover:text-text transition-colors",children:j?x:p})]})}),t.jsxs("div",{className:"flex items-center justify-end gap-2",children:[l?.deny&&t.jsx(W,{variant:"ghost",...dn(l.deny),children:l.deny.label}),l?.allowOnce&&t.jsx("button",{type:"button",className:i("rounded-full inline-flex items-center justify-center","px-3 py-1 text-sm leading-sm font-medium","text-text-on-primary bg-error","cursor-pointer hover:opacity-90 active:opacity-95 transition-opacity","disabled:opacity-50 disabled:cursor-not-allowed"),...dn(l.allowOnce),children:l.allowOnce.label})]})]})});zl.displayName="PermissionCard";const Tl=u.forwardRef((e,a)=>{const{t:s}=In.useTranslation(),n=N("close","h-3.5 w-3.5"),r=N("warning","h-4 w-4");return t.jsx(zl,{ref:a,...e,closeIcon:n,warningIcon:r,title:e.title??s("permission.title"),description:e.description??s("permission.description.default",{toolName:"Tool"}),expandLabel:s("permission.expand"),collapseLabel:s("permission.collapse"),commaLabel:s("common.comma")})});Tl.displayName="PermissionCard";const vx="h-5 w-5 text-text-on-primary";function Ll(e){const a=N("sparkling",vx);return t.jsx(Ls,{sparklingIcon:a,...e})}Ll.displayName="ImageGenerating";const Ml=u.memo(function({children:a,className:s="",gridClassName:n="",isGenerating:r=!1,maxVisibleWhenGenerating:o=6,formatRemaining:l=c=>`+${c}`}){const c=u.Children.toArray(a),d=c.length,m=r&&d>o,p=m?o:d,x=d-o+1,v=c.slice(0,p).map((f,b)=>m&&b===p-1&&u.isValidElement(f)?u.cloneElement(f,{showOverlay:!0,overlayText:l(x)}):f);return t.jsx("div",{className:i("mt-5 mb-2",s),children:t.jsx("div",{className:i("flex flex-wrap gap-3",n),children:v})})});Ml.displayName="GeneratedImagesGrid";const wx={multiSelect:"Multi-select",singleSelect:"Single-select",questionHeader:"Question",skipAll:"Skip All",continue:"Continue",submit:"Submit",sending:"Sending...",customInputPlaceholder:"Other (please specify)",recommend:"Recommend"},kx="[No preference]",Fs=u.createContext(null);Fs.displayName="UserQuestionContext";function Ct(){const e=u.useContext(Fs);if(!e)throw new Error("UserQuestion compound components must be used within UserQuestion.Root");return e}const jx=t.jsx(rr,{className:"w-4 h-4 shrink-0 text-text-tertiary"}),Nx=t.jsx(Ea,{}),Cx=t.jsx(be,{}),Sx=t.jsx($a,{className:"w-4 h-4 mr-1"}),la=u.forwardRef(function({questions:a,resetKey:s,onAnswer:n,onSkip:r,hasCustomText:o=!1,labels:l,chat4Icon:c=jx,arrowUpSIcon:d=Nx,arrowDownSIcon:m=Cx,sparklingIcon:p=Sx,children:x},g){const v={...wx,...l},[f,b]=u.useState(0),[h,w]=u.useState({}),[j,k]=u.useState({}),[T,S]=u.useState(0),[P,A]=u.useState(!1),[I,_]=u.useState(void 0),ne=u.useRef(s),D=u.useRef(null),q=u.useRef(new Map),ie=u.useRef(f),X=u.useRef(!1),G=u.useRef(!1),ae=u.useRef(new Map),le=u.useRef(f),C=a[f],O=C?.options||[],J=a.every(L=>(h[L.question]||[]).length>0||(j[L.question]?.trim()||"").length>0),ue=(h[C?.question]||[]).length>0||(j[C?.question]?.trim()||"").length>0,U=u.useCallback(L=>{const M=a[L];if(!M)return 0;const B=h[M.question]||[];if(B.length===0)return 0;const te=(M.options||[]).findIndex(fe=>B.includes(fe.label));return te>=0?te:0},[a,h]);u.useImperativeHandle(g,()=>({getAnswers:()=>{const L={};for(const M of a){const B=h[M.question]||[],ee=j[M.question]?.trim(),te=[];B.length>0&&te.push(...B),ee&&te.push(ee),te.length>0&&(L[M.question]=te.join(", "))}return L}}),[h,j,a]),u.useEffect(()=>{ne.current!==s&&(ne.current=s,q.current.clear(),ae.current.clear(),ie.current=0,requestAnimationFrame(()=>{A(!1),b(0),w({}),k({}),S(0)}))},[s]),u.useEffect(()=>{if(le.current!==f){if(ie.current=f,G.current){X.current=!0;const L=q.current.get(f),M=D.current;if(L&&M){const B=()=>{X.current=!1,G.current=!1,M.removeEventListener("scrollend",B)};M.addEventListener("scrollend",B,{once:!0}),L.scrollIntoView({behavior:"smooth",block:"nearest"})}else X.current=!1,G.current=!1}le.current=f}},[f]),u.useEffect(()=>{const L=setTimeout(()=>{let M=0;q.current.forEach(B=>{const ee=B.getBoundingClientRect().height;ee>M&&(M=ee)}),M>0&&_(M)},50);return()=>clearTimeout(L)},[a,s]),u.useEffect(()=>{const L=D.current;if(!L)return;const M=new IntersectionObserver(B=>{if(X.current)return;let ee=0,te=ie.current;B.forEach(fe=>{fe.isIntersecting&&fe.intersectionRatio>ee&&(ee=fe.intersectionRatio,q.current.forEach((Vs,ha)=>{Vs===fe.target&&(te=ha)}))}),te!==ie.current&&ee>.5&&(ie.current=te,b(te),S(U(te)))},{root:L,threshold:[0,.25,.5,.75,1]});return q.current.forEach(B=>{B?.isConnected&&M.observe(B)}),()=>M.disconnect()},[a,U]);const Q=u.useCallback((L,M,B)=>{const te=a[B]?.multiSelect??!1,fe=B===a.length-1,ha=(h[L]||[]).includes(M);w(ke=>{const It=ke[L]||[];return te?It.includes(M)?{...ke,[L]:It.filter(ic=>ic!==M)}:{...ke,[L]:[...It,M]}:It.includes(M)?{...ke,[L]:[]}:{...ke,[L]:[M]}}),te||k(ke=>({...ke,[L]:""})),!te&&!fe&&!ha&&setTimeout(()=>{const ke=B+1;G.current=!0,b(ke),S(U(ke))},150)},[a,h,U]),me=u.useCallback(()=>{if(f>0){const L=f-1;G.current=!0,b(L),S(U(L))}},[f,U]),we=u.useCallback(()=>{if(f<a.length-1){const L=f+1;G.current=!0,b(L),S(U(L))}},[f,a.length,U]),Ue=u.useCallback(()=>{if(!P)if(J){A(!0);const L={};for(const M of a){const B=h[M.question]||[],ee=j[M.question]?.trim(),te=[];B.length>0&&te.push(...B),ee&&te.push(ee),L[M.question]=te.join(", ")}n(L)}else{const L=ee=>(h[ee.question]||[]).length===0&&(j[ee.question]?.trim()||"").length===0,M=a.length;let B=-1;for(let ee=1;ee<M;ee++){const te=(f+ee)%M;if(L(a[te])){B=te;break}}B>=0&&(G.current=!0,b(B),S(U(B)))}},[P,J,a,h,j,f,n,U]),re=u.useCallback(()=>{if(P)return;A(!0);const L={};for(const M of a){const B=h[M.question]||[],ee=j[M.question]?.trim();if(B.length>0||!!ee){const fe=[];B.length>0&&fe.push(...B),ee&&fe.push(ee),L[M.question]=fe.join(", ")}else L[M.question]=kx}n(L),r()},[P,a,h,j,n,r]),Qe=u.useCallback(()=>{if(P)return;const L={};for(const M of a){const B=M.options?.[0];B&&(L[M.question]=[B.label])}w(L),k({}),G.current=!0,b(a.length-1),S(0),setTimeout(()=>{D.current&&D.current.scrollTo({top:D.current.scrollHeight,behavior:"smooth"})},50)},[P,a]),Re=u.useCallback(L=>{G.current=L},[]),ze={questions:a,labels:v,currentQuestionIndex:f,setCurrentQuestionIndex:b,answers:h,setAnswers:w,customInputs:j,setCustomInputs:k,focusedOptionIndex:T,setFocusedOptionIndex:S,isSubmitting:P,setIsSubmitting:A,maxQuestionHeight:I,scrollContainerRef:D,questionRefs:q,setShouldScrollToQuestion:Re,customInputRefs:ae,currentQuestion:C,currentOptions:O,allQuestionsAnswered:J,currentQuestionHasAnswer:ue,getSelectedOptionIndex:U,handleOptionClick:Q,handlePrevious:me,handleNext:we,handleContinue:Ue,handleSkip:re,handleRecommend:Qe,chat4Icon:c,arrowUpSIcon:d,arrowDownSIcon:m,sparklingIcon:p,hasCustomText:o};return a.length===0?null:t.jsx(Fs.Provider,{value:ze,children:x})});la.displayName="UserQuestionRoot";function ca({className:e}){const a=Ct();return t.jsxs("div",{className:i("flex items-center justify-between mb-2 -mt-2 px-3 pt-2 pb-2 rounded-t-xl bg-fill-tertiary",e),children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[a.chat4Icon,t.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:a.currentQuestion?.header||a.labels.questionHeader}),t.jsx("span",{className:"text-text-tertiary/50",children:"•"}),t.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:a.currentQuestion?.multiSelect?a.labels.multiSelect:a.labels.singleSelect})]}),a.questions.length>1&&t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(Ne,{size:"sm",variant:"ghost",onClick:a.handlePrevious,disabled:a.currentQuestionIndex===0,icon:a.arrowUpSIcon}),t.jsxs("span",{className:"text-xs leading-xs text-text-tertiary px-1",children:[a.currentQuestionIndex+1," / ",a.questions.length]}),t.jsx(Ne,{size:"sm",variant:"ghost",onClick:a.handleNext,disabled:a.currentQuestionIndex===a.questions.length-1,icon:a.arrowDownSIcon})]})]})}ca.displayName="UserQuestionHeader";function da({question:e,qIndex:a,className:s}){const n=Ct(),r=e.options||[],[o,l]=u.useState(!1),c=!!n.customInputs[e.question]?.trim(),d=o||c,m=a===n.currentQuestionIndex;return t.jsxs("div",{ref:p=>{p?n.questionRefs.current.set(a,p):n.questionRefs.current.delete(a)},className:i("transition-opacity duration-200",m?"opacity-100":"opacity-40",s),children:[t.jsxs("div",{className:"flex items-start gap-3 pl-2 mb-3",children:[t.jsxs("div",{className:"flex-shrink-0 w-5 flex items-center justify-center text-sm leading-sm font-medium text-text-tertiary",children:[a+1,"."]}),t.jsx("div",{className:"text-sm leading-sm font-medium text-text min-w-0 flex-1",children:e.question})]}),t.jsx(_a,{items:r.map(p=>({id:p.label,label:p.label,description:p.description})),selectedIds:n.answers[e.question]?.map(p=>p)||[],focusedId:m?r[n.focusedOptionIndex]?.label:void 0,disabled:n.isSubmitting||!m,onItemClick:(p,x)=>{if(!m){n.setCurrentQuestionIndex(a),n.setFocusedOptionIndex(n.getSelectedOptionIndex(a));return}n.handleOptionClick(e.question,p.label,a),n.setFocusedOptionIndex(x)}}),e.allowCustomInput!==!1&&t.jsxs("div",{className:i("w-full flex gap-3 pl-2 mt-3 transition-colors",!m&&"opacity-40",n.isSubmitting&&"opacity-50"),children:[t.jsx("div",{className:i("flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs leading-xs font-medium transition-colors",m&&n.focusedOptionIndex===r.length||n.customInputs[e.question]?.trim()?"bg-primary-active text-text-on-primary":"bg-fill-secondary text-text-tertiary"),children:r.length+1}),t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col",children:[t.jsx("div",{className:"h-5 flex items-center",children:t.jsx("input",{ref:p=>{p?n.customInputRefs.current.set(e.question,p):n.customInputRefs.current.delete(e.question)},type:"text",value:n.customInputs[e.question]||"",style:{outline:"none",outlineOffset:0,boxShadow:"none",border:"none"},onChange:p=>{const x=p.target.value;n.setCustomInputs(g=>({...g,[e.question]:x})),!e.multiSelect&&x.trim()&&n.setAnswers(g=>({...g,[e.question]:[]}))},onFocus:()=>{l(!0),m&&(n.setFocusedOptionIndex(r.length),e.multiSelect||n.setAnswers(p=>({...p,[e.question]:[]})))},onBlur:()=>l(!1),onKeyDown:p=>{if(p.key==="Enter"&&!p.shiftKey){p.preventDefault(),p.stopPropagation();const x=n.customInputs[e.question]?.trim();if((n.answers[e.question]||[]).length>0||!!x)if(n.allQuestionsAnswered)n.handleContinue();else if(a<n.questions.length-1){const f=a+1;n.setShouldScrollToQuestion(!0),n.setCurrentQuestionIndex(f),n.setFocusedOptionIndex(0)}else n.handleContinue()}},placeholder:n.labels.customInputPlaceholder,disabled:n.isSubmitting||!m,className:i("w-full h-full py-0 bg-transparent text-sm leading-sm font-medium text-text","placeholder:text-text-tertiary placeholder:font-normal","border-0 rounded-none outline-none outline-offset-0","focus:outline-none focus:outline-offset-0","focus-visible:outline-none focus-visible:outline-offset-0","ring-0 focus:ring-0 focus:ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0 shadow-none","disabled:cursor-not-allowed")})}),t.jsx("div",{className:"mt-1.5 overflow-hidden origin-left transition-[width] duration-200 ease-out",style:{width:d?"100%":"0%"},"aria-hidden":!0,children:t.jsx("div",{className:"h-px bg-[var(--color-border-tertiary)]"})})]})]})]},e.question)}da.displayName="UserQuestionCard";function ua({className:e,children:a}){const s=Ct(),{scrollContainerRef:n,maxQuestionHeight:r,questions:o}=s;return t.jsx(ve,{ref:n,scrollbarVisibility:"auto",maxHeight:r||void 0,className:i("scroll-smooth",e),children:t.jsx("div",{className:"space-y-4 px-3",children:a??o.map((l,c)=>t.jsx(da,{question:l,qIndex:c},l.question))})})}ua.displayName="UserQuestionCards";function ma({className:e}){const a=Ct();return t.jsxs("div",{className:i("flex items-center justify-between px-3 py-2",e),children:[t.jsxs(W,{variant:"ghost",size:"sm",onClick:a.handleRecommend,disabled:a.isSubmitting,children:[a.sparklingIcon,a.labels.recommend]}),t.jsxs("div",{className:"flex items-center gap-2",children:[!a.allQuestionsAnswered&&t.jsx(W,{variant:"ghost",size:"sm",onClick:a.handleSkip,disabled:a.isSubmitting,children:a.labels.skipAll}),t.jsx(W,{size:"sm",variant:"secondary",onClick:a.handleContinue,disabled:a.isSubmitting||a.hasCustomText||!a.allQuestionsAnswered,children:a.isSubmitting?a.labels.sending:t.jsxs(t.Fragment,{children:[a.allQuestionsAnswered?a.labels.submit:a.labels.continue,t.jsx("span",{className:"opacity-70",children:" ↵"})]})})]})]})}ma.displayName="UserQuestionFooter";function pa(){return t.jsxs(V.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:i("border rounded-t-xl border-b-0 border-border border-border-tertiary bg-bg-base overflow-hidden pt-2 pb-2"),children:[t.jsx(ca,{}),t.jsx(ua,{}),t.jsx(ma,{})]})}pa.displayName="UserQuestionDefaultLayout";function Ix(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e?.getAttribute("contenteditable")==="true"}function Rx({isSubmitting:e,currentQuestion:a,currentOptions:s,currentQuestionIndex:n,questions:r,focusedOptionIndex:o,setFocusedOptionIndex:l,currentQuestionHasAnswer:c,getSelectedOptionIndex:d,setShouldScrollToQuestion:m,setCurrentQuestionIndex:p,handleOptionClick:x,handleContinue:g}){u.useEffect(()=>{const v={ArrowDown(b){if(b.preventDefault(),o<s.length-1)l(o+1);else if(n<r.length-1){const h=n+1;m(!0),p(h),l(d(h))}},ArrowUp(b){if(b.preventDefault(),o>0)l(o-1);else if(n>0){const h=n-1;m(!0),p(h),l(d(h))}},Enter(b){b.preventDefault(),c?g():a&&s[o]&&x(a.question,s[o].label,n)}},f=b=>{if(e||Ix(document.activeElement))return;const h=v[b.key];if(h){h(b);return}if(b.key>="1"&&b.key<="9"){const w=parseInt(b.key,10)-1;w>=0&&w<s.length&&a&&(b.preventDefault(),x(a.question,s[w].label,n),l(w))}};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[e,a,s,n,r.length,o,l,c,d,p,x,g,m])}function zx(){const e=Ct();return Rx({isSubmitting:e.isSubmitting,currentQuestion:e.currentQuestion,currentOptions:e.currentOptions,currentQuestionIndex:e.currentQuestionIndex,questions:e.questions,focusedOptionIndex:e.focusedOptionIndex,setFocusedOptionIndex:e.setFocusedOptionIndex,currentQuestionHasAnswer:e.currentQuestionHasAnswer,getSelectedOptionIndex:e.getSelectedOptionIndex,setShouldScrollToQuestion:e.setShouldScrollToQuestion,setCurrentQuestionIndex:e.setCurrentQuestionIndex,handleOptionClick:e.handleOptionClick,handleContinue:e.handleContinue}),null}const Pl=u.forwardRef(function(a,s){return t.jsxs(la,{ref:s,...a,children:[t.jsx(zx,{}),t.jsx(pa,{})]})});Pl.displayName="UserQuestion";const Ge=Pl;Ge.Root=la;Ge.Header=ca;Ge.Card=da;Ge.Cards=ua;Ge.Footer=ma;Ge.DefaultLayout=pa;const Tx=Ge;function Lx(e,a){const s=N("chat4","w-4 h-4 shrink-0 text-text-tertiary"),n=N("arrowUpS"),r=N("arrowDownS"),o=N("sparkling","w-4 h-4 mr-1");return t.jsx(la,{ref:a,chat4Icon:s,arrowUpSIcon:n,arrowDownSIcon:r,sparklingIcon:o,...e})}const Al=u.forwardRef(Lx);Al.displayName="UserQuestionRoot";const Dl=u.forwardRef(function(a,s){const n=N("chat4","w-4 h-4 shrink-0 text-text-tertiary"),r=N("arrowUpS"),o=N("arrowDownS"),l=N("sparkling","w-4 h-4 mr-1");return t.jsx(Tx,{ref:s,chat4Icon:n,arrowUpSIcon:r,arrowDownSIcon:o,sparklingIcon:l,...a})});Dl.displayName="UserQuestion";const qe=Dl;qe.Root=Al;qe.Header=ca;qe.Card=da;qe.Cards=ua;qe.Footer=ma;qe.DefaultLayout=pa;const Mx=qe,Px={answer:"Answer",answers:"Answers"},Ax="w-4 h-4 shrink-0 text-text-tertiary",_l=u.memo(function({answers:a,showHeader:s=!0,labels:n,className:r="",questionAnswerIcon:o}){const l={...Px,...n},c=Object.entries(a),d=o??t.jsx(Jd,{className:Ax});return c.length===0?null:t.jsxs("div",{className:`rounded-lg border border-border-tertiary bg-bg-container overflow-hidden mx-2 ${r}`.trim(),children:[s&&t.jsxs("div",{className:"flex items-center gap-2 pl-3 pr-3 h-8 border-b border-border-tertiary",children:[d,t.jsx("span",{className:"text-xs leading-xs text-text-tertiary",children:c.length===1?l.answer:l.answers})]}),t.jsx("div",{className:"flex flex-col gap-3 p-3 text-xs leading-xs",children:c.map(([m,p],x)=>t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("span",{className:"font-medium text-text",children:m}),t.jsx("span",{className:"text-text-tertiary",children:p})]},x))})]})});_l.displayName="UserQuestionAnswer";const Dx="w-4 h-4 shrink-0 text-text-tertiary",El=u.memo(function(a){const s=N("questionAnswer",Dx);return t.jsx(_l,{questionAnswerIcon:s,...a})});El.displayName="UserQuestionAnswer";const _x={title:"In queue",sendNowTip:"Send now",removeTip:"Remove",fileLabel:"file",filesLabel:"files"},Ex="w-3.5 h-3.5",Fx="w-3.5 h-3.5",$x="w-4 h-4 text-text-tertiary transition-transform duration-200",Ox=u.memo(function({item:a,onRemove:s,onSendNow:n,labels:r,arrowUpIcon:o,closeIcon:l}){const c=u.useCallback(x=>{x.stopPropagation(),s?.(a.id)},[a.id,s]),d=u.useCallback(x=>{x.stopPropagation(),n?.(a.id)},[a.id,n]),m=a.attachmentCount??0,p=m===1?r.fileLabel:r.filesLabel;return t.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs leading-xs hover:bg-fill-tertiary transition-colors cursor-default",children:[t.jsx("span",{className:"truncate flex-1 text-text",children:a.label}),m>0&&t.jsxs("span",{className:"shrink-0 text-xs leading-xs text-text-tertiary",children:["+",m," ",p]}),t.jsxs("div",{className:"flex items-center gap-0.5",children:[n&&t.jsx(Ye,{content:r.sendNowTip,side:"top",children:t.jsx(Ne,{size:"sm",variant:"ghost",icon:o,"aria-label":r.sendNowTip,className:"shrink-0",onClick:d})}),s&&t.jsx(Ye,{content:r.removeTip,side:"top",children:t.jsx(Ne,{size:"sm",variant:"ghost",icon:l,"aria-label":r.removeTip,className:"shrink-0",onClick:c})})]})]})}),Fl=u.memo(function({items:a,onRemoveItem:s,onSendNow:n,isStreaming:r=!1,hasStatusCardBelow:o=!1,labels:l,defaultExpanded:c=!0,storageKey:d,arrowUpIcon:m,closeIcon:p,arrowDownSIcon:x}){const g={..._x,...l},v=m??t.jsx(Ea,{className:Ex}),f=p??t.jsx(Ce,{className:Fx}),b=x??t.jsx(be,{className:$x}),[h,w]=u.useState(()=>{if(typeof window>"u")return c;if(d){const k=localStorage.getItem(d);return k!==null?k==="true":c}return c});if(u.useEffect(()=>{d&&localStorage.setItem(d,String(h))},[d,h]),a.length===0)return null;const j=i("w-full overflow-hidden flex flex-col","border border-b-0 border-border border-border-tertiary bg-bg-base",!o&&"rounded-t-xl");return t.jsxs(V.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:j,children:[t.jsx("div",{role:"button",tabIndex:0,onClick:()=>w(!h),onKeyDown:k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),w(!h))},"aria-expanded":h,"aria-label":`${h?"Collapse":"Expand"} queue`,className:"flex items-center justify-between px-3 py-1 h-7 cursor-pointer bg-fill-tertiary hover:bg-fill-secondary transition-colors duration-150 focus:outline-none",children:t.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[t.jsx("span",{className:i("inline-flex items-center justify-center",!h&&"-rotate-90"),children:b}),t.jsx("span",{className:"text-xs leading-xs font-medium text-text-secondary",children:g.title})]})}),t.jsx(V.AnimatePresence,{initial:!1,children:h&&t.jsx(V.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:[.23,1,.32,1]},className:"overflow-hidden",children:t.jsx(ve,{scrollbarVisibility:"auto",maxHeight:208,className:"border-t border-border-tertiary scroll-smooth",children:a.map(k=>t.jsx(Ox,{item:k,onRemove:s,onSendNow:n,labels:g,arrowUpIcon:v,closeIcon:f},k.id))})})})]})});Fl.displayName="QueueIndicator";const Bx="w-3.5 h-3.5",Vx="w-3.5 h-3.5",Hx="w-4 h-4 text-text-tertiary transition-transform duration-200",$l=u.memo(function(a){const s=N("arrowUp",Bx),n=N("close",Vx),r=N("arrowDownS",Hx);return t.jsx(Fl,{arrowUpIcon:s,closeIcon:n,arrowDownSIcon:r,...a})});$l.displayName="QueueIndicator";const Gx={ariaLabel:"Conversation anchors",scrollTo:"Scroll to message"},Ol=u.memo(function({scrollContainerRef:a,items:s,onSelect:n,activeIndex:r,variant:o="bar",minItems:l=3,hidden:c=!1,labels:d,className:m,getAnchorElement:p,renderAnchor:x}){const g={...Gx,...d},v=Bl({scrollContainerRef:a,items:s,getAnchorElement:p,enabled:r===void 0&&!c}),f=r!==void 0?r:v,b=u.useCallback(w=>{const j=s[w];j&&n(w,j)},[s,n]),h=!c&&s.length>=l;return t.jsx(V.AnimatePresence,{mode:"wait",children:h&&t.jsx(V.motion.nav,{initial:{opacity:0,x:8},animate:{opacity:1,x:0,transition:{type:"spring",stiffness:500,damping:30,mass:.6}},exit:{opacity:0,x:8,transition:{duration:.15,ease:[.32,.72,0,1]}},className:i("absolute right-3 top-1/2 -translate-y-1/2 z-[40]","flex flex-col items-end gap-1.5 max-h-[80%] overflow-y-auto","scrollbar-hide",m),"aria-label":g.ariaLabel,children:s.map((w,j)=>t.jsx(qx,{item:w,index:j,isActive:j===f,variant:o,tooltipFallback:g.scrollTo,onClick:b,renderAnchor:x},w.id))},"spark-conversation-anchor-nav")})});Ol.displayName="ConversationAnchorNav";const qx=u.memo(function({item:a,index:s,isActive:n,variant:r,tooltipFallback:o,onClick:l,renderAnchor:c}){const d=u.useCallback(()=>l(s),[l,s]),m=c?c({item:a,index:s,isActive:n,variant:r}):null;return t.jsx(Ye,{content:a.summary||o,side:"left",contentClassName:"max-w-xs",children:t.jsx("button",{type:"button",onClick:d,className:i("group/spark-anchor flex cursor-pointer border-0 bg-transparent outline-none","focus-visible:ring-2 focus-visible:ring-[var(--color-link)] focus-visible:rounded-full",r==="punch"?"h-7 w-7 shrink-0 items-center justify-center p-0":"items-center justify-end p-1"),"aria-label":`${o} ${s+1}`,"aria-current":n?"true":void 0,"data-spark-anchor-nav-item":a.id,children:m??t.jsx("span",{className:i("block shrink-0 origin-center",r==="punch"?i("rounded-full transition-transform duration-300 ease-out",n?"h-2 w-2 bg-[var(--color-link)] group-hover/spark-anchor:scale-125":i("h-1.5 w-1.5 border border-solid border-border-tertiary bg-transparent","group-hover/spark-anchor:scale-150 group-hover/spark-anchor:border-[var(--color-link)]")):i("rounded-full transition-all duration-300 ease-out h-0.5",n?"w-4 bg-text-quaternary":"w-2.5 bg-border-tertiary","group-hover/spark-anchor:w-6 group-hover/spark-anchor:bg-text-quaternary"))})})})},(e,a)=>e.isActive===a.isActive&&e.variant===a.variant&&e.index===a.index&&e.item.id===a.item.id&&e.item.summary===a.item.summary&&e.tooltipFallback===a.tooltipFallback&&e.onClick===a.onClick&&e.renderAnchor===a.renderAnchor);function Bl({scrollContainerRef:e,items:a,getAnchorElement:s,enabled:n=!0}){const[r,o]=u.useState(0),l=u.useMemo(()=>a.map(d=>d.id).join("|"),[a]),c=u.useRef(s);return u.useEffect(()=>{c.current=s},[s]),u.useEffect(()=>{if(!n)return;const d=e.current;if(!d||a.length===0||typeof IntersectionObserver>"u")return;const m=(f,b)=>{const h=c.current;return h?h(f,b,d):d.querySelector(`[data-spark-anchor="${Ux(f.id)}"]`)},p=[];if(a.forEach((f,b)=>{const h=m(f,b);h&&p.push({index:b,el:h})}),p.length===0)return;const x=new WeakMap,g=()=>{let f=p[0]?.index??0,b=-1;for(const{index:h,el:w}of p){const j=x.get(w)??0;j>b&&(b=j,f=h)}o(h=>h===f?h:f)},v=new IntersectionObserver(f=>{for(const b of f)x.set(b.target,b.intersectionRatio);g()},{root:d,threshold:[0,.25,.5,.75,1]});return p.forEach(f=>v.observe(f.el)),()=>v.disconnect()},[n,e,a,l]),r}function Ux(e){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/["\\]/g,"\\$&")}const un="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Qx="font-['Seti'] shrink-0 inline-flex items-center justify-center w-4 h-4 text-[16px] leading-[16px]",Ra={javascript:"",typescript:"",react:"",json:"",html:"",css:"",python:"",java:"",go:"",rust:"",php:"",ruby:"",vue:"",svelte:"",markdown:"",yaml:"",xml:"",shell:"",sass:"",settings:"",default:""},mn={javascript:"var(--color-yellow)",typescript:"var(--color-blue)",react:"var(--color-blue)",json:"var(--color-yellow)",html:"var(--color-blue)",css:"var(--color-blue)",python:"var(--color-blue)",java:"var(--color-error)",go:"var(--color-blue)",rust:"var(--color-lavender)",php:"var(--color-purple)",ruby:"var(--color-error)",vue:"var(--color-success)",svelte:"var(--color-error)",markdown:"var(--color-blue)",yaml:"var(--color-purple)",xml:"var(--color-orange)",shell:"var(--color-success)",sass:"var(--color-error)",settings:"var(--color-lavender)",default:"var(--color-lavender)"},Pt={js:"javascript",jsx:"react",ts:"typescript",tsx:"typescript",json:"json",html:"html",css:"css",scss:"sass",sass:"sass",less:"css",py:"python",java:"java",go:"go",rs:"rust",php:"php",rb:"ruby",vue:"vue",svelte:"svelte",md:"markdown",yml:"yaml",yaml:"yaml",xml:"xml",sh:"shell",bash:"shell",zsh:"shell",config:"settings",conf:"settings"};function Vl(e,a){let s=null;if(a&&typeof a=="string"&&a.trim()){const n=a.lastIndexOf(".");if(n>0&&n<a.length-1){const r=a.substring(n+1).toLowerCase().trim();r&&Pt[r]&&(s=Pt[r])}}if(!s&&e&&typeof e=="string"&&e.trim()){const n=e.toLowerCase().trim();Pt[n]?s=Pt[n]:Ra[n]&&(s=n)}return s||"default"}function Wx(e,a){const s=Vl(e,a);return Ra[s]??Ra.default}function Zx(e,a){const s=Vl(e,a);return mn[s]??mn.default}function Hl({files:e=[],defaultExpanded:a=!0,className:s,headerIcon:n,acceptIcon:r,rejectIcon:o,getFileIcon:l}){const[c,d]=u.useState(null),m=t.jsx(lr,{className:i(un,"text-text-secondary")}),p="w-[var(--font-size-sm)] h-[var(--font-size-sm)]",x=t.jsx(ye,{className:p}),g=t.jsx(Ce,{className:p}),v="flex items-center justify-center shrink-0 rounded cursor-pointer transition-colors duration-200 text-text-secondary hover:text-text focus:outline-none focus-visible:ring-2 focus-visible:ring-primary";return t.jsx(Se,{headerIcon:n??m,headerTitle:t.jsxs("span",{className:"font-normal",children:[e.length," ",e.length===1?"File":"Files"]}),headerRight:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(W,{variant:"ghost",size:"sm",onClick:f=>f.stopPropagation(),children:"Undo All"}),t.jsx(W,{variant:"ghost",size:"sm",onClick:f=>f.stopPropagation(),children:"Keep All"}),t.jsx(W,{variant:"secondary",size:"sm",onClick:f=>f.stopPropagation(),children:"Review"})]}),defaultExpanded:a,contentPadding:"var(--spacing-1\\.5) var(--spacing-1) var(--spacing-1\\.5)",className:s,children:t.jsx("div",{className:"flex flex-col gap-0.5",children:e.map((f,b)=>{const h=c===b,w=f.additions!=null&&Number.isFinite(f.additions)?f.additions:null,j=f.deletions!=null&&Number.isFinite(f.deletions)?f.deletions:null;return t.jsxs("div",{className:i("flex items-center gap-1 px-1 py-1 rounded-sm cursor-pointer transition-colors duration-200 relative h-6",h?"bg-fill-secondary":"bg-transparent"),onMouseEnter:()=>d(b),onMouseLeave:()=>d(null),children:[l?t.jsx("span",{className:i("shrink-0",un),children:l(f.fileType,f.filename)}):t.jsx("span",{className:i("shrink-0",Qx),style:{color:Zx(f.fileType,f.filename)},"aria-hidden":!0,children:Wx(f.fileType,f.filename)}),t.jsx("span",{className:i("flex-1 text-xs font-medium truncate pr-12",h?"text-text":"text-text-tertiary"),children:f.filename}),t.jsxs("div",{className:i("absolute right-1 flex items-center gap-0.5 text-xs font-medium shrink-0 transition-opacity duration-200",h?"opacity-0 pointer-events-none":"opacity-100"),children:[w!=null&&t.jsxs("span",{className:"text-success",children:["+",w]}),j!=null&&t.jsxs("span",{className:"text-error",children:["-",j]})]}),t.jsxs("div",{className:i("flex items-center gap-0.5 shrink-0 absolute right-1 transition-opacity duration-200",h?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:k=>k.stopPropagation(),children:[t.jsx("button",{type:"button",className:i(v,"h-6 min-w-6 [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"),title:"Reject","aria-label":"Reject",onClick:k=>k.stopPropagation(),children:o??g}),t.jsx("button",{type:"button",className:i(v,"h-6 min-w-6 [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"),title:"Accept","aria-label":"Accept",onClick:k=>k.stopPropagation(),children:r??x})]})]},b)})})})}Hl.displayName="FileReviewPart";const pn="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",At="w-[var(--font-size-sm)] h-[var(--font-size-sm)]";function Gl(e){const a=N("requestChanges",pn)??t.jsx(lr,{className:pn}),s=N("checkLine",At)??t.jsx(ye,{className:At}),n=N("close",At)??t.jsx(Ce,{className:At}),r=e.getFileIcon;return t.jsx(Hl,{headerIcon:a,acceptIcon:s,rejectIcon:n,getFileIcon:r,...e})}Gl.displayName="FileReviewPart";const St="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",Kx=t.jsx(cr,{className:i(St,"text-text-secondary")}),Yx=t.jsx(dr,{className:i(St,"text-text-tertiary")}),Xx=t.jsx(Qt,{className:i(St,"text-text-quaternary")}),Jx=t.jsx(ur,{className:i(St,"text-text-tertiary")}),ef=t.jsx(mr,{className:i(St,"text-text")});function tf(e,a,s){return a?s.loaderIcon??ef:e.status==="completed"?s.completedIcon??Xx:e.status==="skipped"||e.status==="cancelled"?s.skippedIcon??Jx:s.uncompletedIcon??Yx}function ql({tasks:e=[],title:a="To-dos",currentTaskId:s,defaultExpanded:n=!0,className:r,headerIcon:o,uncompletedIcon:l,completedIcon:c,skippedIcon:d,loaderIcon:m}){return t.jsx(Se,{headerIcon:o??Kx,headerTitle:t.jsx("span",{className:"text-left",children:a}),defaultExpanded:n,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",showExpandAllBar:!0,maxHeight:124,className:r,children:t.jsx("div",{className:"flex flex-col gap-2",children:e.map((p,x)=>{const g=p.id??x,v=s!=null&&s===String(g),f=tf(p,v,{loaderIcon:m,completedIcon:c,skippedIcon:d,uncompletedIcon:l});return t.jsxs("div",{className:"flex flex-row gap-2 items-start",children:[t.jsx("div",{className:"flex items-center justify-center shrink-0 pt-0.5 [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",children:f}),t.jsx("span",{className:i("text-xs leading-xs flex-1 text-left",v?"text-text":p.status==="completed"?"text-text-quaternary line-through":"text-text-tertiary"),children:p.text})]},g)})})})}ql.displayName="TaskPart";const xa="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",xn=`${xa} text-text-secondary`,Dt=`${xa} text-text-tertiary`,fn=`${xa} text-text-quaternary`,hn=`${xa} text-text`;function Ul(e){const a=N("catalog",xn)??t.jsx(cr,{className:xn}),s=N("circle",Dt)??t.jsx(dr,{className:Dt}),n=N("checkboxCircle",fn)??t.jsx(Qt,{className:fn}),r=N("indeterminateCircle",Dt)??t.jsx(ur,{className:Dt}),o=N("arrowRightCircleFill",hn)??t.jsx(mr,{className:hn});return t.jsx(ql,{headerIcon:a,uncompletedIcon:s,completedIcon:n,skippedIcon:r,loaderIcon:o,...e})}Ul.displayName="TaskPart";const $s="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",af=t.jsx(Wt,{className:`${$s} text-text-secondary`}),sf=t.jsx(pr,{className:$s}),nf=t.jsx(ye,{className:i($s,"text-success")});function Ql({title:e="Plan",description:a,content:s,viewText:n="View",buildText:r="Build ⌘⏎",builtText:o="Built",isBuilt:l=!1,isGenerating:c=!1,onView:d,onBuild:m,onDownload:p,defaultExpanded:x=!0,contentMaxHeight:g,collapsible:v=!1,className:f,headerIcon:b,downloadIcon:h,builtIcon:w}){const j=s.split(`
|
|
258
|
+
`),k=j.length>1&&j[1].trim()==="",T=k?j[0]:null,S=k?j.slice(2).join(`
|
|
259
|
+
`):s;return t.jsx(Se,{headerIcon:b??af,headerTitle:t.jsx("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:c?t.jsx("span",{className:"text-left",children:"Planning..."}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-left",children:e}),a!=null&&t.jsx("span",{className:"text-left flex-1 truncate text-text-quaternary",children:a})]})}),titleShimmer:c,headerRight:!c&&p?t.jsx(Ne,{variant:"iconOnly",size:"sm",icon:h??sf,onClick:P=>{P.stopPropagation(),p?.()},title:"Download as Markdown","aria-label":"Download",className:"!min-h-0 !min-w-0 h-[var(--font-size-sm)] w-[var(--font-size-sm)] text-text-secondary hover:text-text [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"}):void 0,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:x,contentMaxHeight:g,collapsible:v,footer:c?void 0:t.jsxs(t.Fragment,{children:[t.jsx(W,{variant:"text",size:"sm",onClick:d,children:n}),t.jsx("div",{className:"flex-1"}),l?t.jsxs("div",{className:"flex items-center gap-1 text-xs text-success [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",children:[t.jsx("span",{children:o}),w??nf]}):t.jsx(W,{variant:"secondary",size:"sm",onClick:m,children:r})]}),className:f,children:c?t.jsxs("div",{className:"flex flex-col gap-1 relative overflow-hidden min-h-[var(--spacing-14)]",children:[t.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:"radial-gradient(circle, var(--color-text-tertiary) 1px, transparent 1px)",backgroundSize:"16px 16px",backgroundRepeat:"repeat",opacity:.25}}),t.jsx("div",{className:"absolute inset-0 pointer-events-none plan-part-shimmer-layer",style:{backgroundImage:"radial-gradient(circle, var(--color-text-tertiary) 1px, transparent 1px)",backgroundSize:"16px 16px",backgroundRepeat:"repeat",maskImage:"linear-gradient(to bottom, transparent 0%, var(--color-mask-shimmer-weak) 15%, var(--color-mask-shimmer-strong) 30%, var(--color-mask-shimmer-full) 50%, var(--color-mask-shimmer-strong) 70%, var(--color-mask-shimmer-weak) 85%, transparent 100%)",maskSize:"100% 64px",WebkitMaskImage:"linear-gradient(to bottom, transparent 0%, var(--color-mask-shimmer-weak) 15%, var(--color-mask-shimmer-strong) 30%, var(--color-mask-shimmer-full) 50%, var(--color-mask-shimmer-strong) 70%, var(--color-mask-shimmer-weak) 85%, transparent 100%)",WebkitMaskSize:"100% 64px"}}),t.jsx("style",{children:`
|
|
254
260
|
@keyframes plan-part-shimmer {
|
|
255
261
|
0% { mask-position: 0 -64px; -webkit-mask-position: 0 -64px; }
|
|
256
262
|
100% { mask-position: 0 calc(100% + 64px); -webkit-mask-position: 0 calc(100% + 64px); }
|
|
@@ -258,8 +264,6 @@ If you want, I can generate a **preview report** first (top 50 renames + album s
|
|
|
258
264
|
.plan-part-shimmer-layer {
|
|
259
265
|
animation: plan-part-shimmer 3s linear infinite;
|
|
260
266
|
}
|
|
261
|
-
`})]}):
|
|
262
|
-
`);b.initialize({startOnLoad:!1,securityLevel:"strict",theme:"dark",themeCSS:w});const u=`mermaid-${t.replace(/:/g,"")}`,{svg:g}=await b.render(u,e);d||r(g??"")}catch(m){d||i(m?.message??"Failed to render mermaid.")}})(),()=>{d=!0}},[t,e,c]),{svg:a,error:o}}const qp="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",Wp=n.jsx(Gt,{className:qp});function Li({content:e="",className:t,headerIcon:s,dataStyle:a}){const r=x.useId(),o=x.useMemo(()=>(e??"").trim(),[e]),{svg:i,error:l}=Vp(o,r,a),[c,d]=x.useState(1),p=x.useRef(null);x.useEffect(()=>{if(!i||l||!p.current)return;const u=p.current,g=f=>{if(f.ctrlKey||f.metaKey){f.preventDefault();const k=f.deltaY>0?-.1:.1;d(h=>Math.max(.5,Math.min(3,Math.round((h+k)*10)/10)))}};return u.addEventListener("wheel",g,{passive:!1}),()=>u.removeEventListener("wheel",g)},[i,l]);const m=()=>d(u=>Math.min(3,Math.round((u+.1)*10)/10)),b=()=>d(u=>Math.max(.5,Math.round((u-.1)*10)/10)),w=()=>d(1);return n.jsx(Ce,{headerIcon:s??Wp,headerTitle:n.jsx("span",{className:"text-text-secondary",children:"Mermaid"}),headerRight:i&&!l?n.jsxs("div",{className:"flex items-center gap-1",onClick:u=>u.stopPropagation(),children:[n.jsx(ne,{variant:"ghost",size:"sm",onClick:u=>{u.stopPropagation(),b()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Zoom out",children:"−"}),n.jsxs("span",{className:"text-xs text-text-secondary min-w-[var(--spacing-10)] text-center",children:[Math.round(c*100),"%"]}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:u=>{u.stopPropagation(),w()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Reset",children:"Reset"}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:u=>{u.stopPropagation(),m()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Zoom in",children:"+"})]}):void 0,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",className:t,children:o?l?n.jsxs("div",{className:"space-y-2",children:[n.jsx("div",{className:"text-xs text-text-secondary",children:"Mermaid render unavailable."}),n.jsx("div",{className:"text-xs text-text-tertiary",children:l}),n.jsx("pre",{className:"m-0 whitespace-pre-wrap break-words font-mono text-xs text-text",children:o})]}):n.jsx("div",{className:"relative",ref:p,children:n.jsx(be,{scrollbarVisibility:"auto",maxHeight:600,className:"overflow-x-auto",children:n.jsx("div",{className:"flex justify-center items-center",style:{transform:`scale(${c})`,transformOrigin:"center top",minHeight:c>1?"100%":"auto"},children:n.jsx("div",{dangerouslySetInnerHTML:{__html:i}})})})}):n.jsx("div",{className:"text-xs text-text-tertiary",children:"Mermaid content is empty."})})}Li.displayName="MermaidPart";const Ks="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function _i(e){const t=R("fileList2",Ks)??n.jsx(Gt,{className:Ks}),{style:s}=me();return n.jsx(Li,{headerIcon:t,dataStyle:s,...e})}_i.displayName="MermaidPart";var Zp=Object.create,ln=Object.defineProperty,Qp=Object.defineProperties,Yp=Object.getOwnPropertyDescriptor,Kp=Object.getOwnPropertyDescriptors,Pi=Object.getOwnPropertyNames,Ot=Object.getOwnPropertySymbols,Xp=Object.getPrototypeOf,ys=Object.prototype.hasOwnProperty,Fi=Object.prototype.propertyIsEnumerable,Xs=(e,t,s)=>t in e?ln(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ne=(e,t)=>{for(var s in t||(t={}))ys.call(t,s)&&Xs(e,s,t[s]);if(Ot)for(var s of Ot(t))Fi.call(t,s)&&Xs(e,s,t[s]);return e},cn=(e,t)=>Qp(e,Kp(t)),zi=(e,t)=>{var s={};for(var a in e)ys.call(e,a)&&t.indexOf(a)<0&&(s[a]=e[a]);if(e!=null&&Ot)for(var a of Ot(e))t.indexOf(a)<0&&Fi.call(e,a)&&(s[a]=e[a]);return s},Jp=(e,t)=>function(){return t||(0,e[Pi(e)[0]])((t={exports:{}}).exports,t),t.exports},e0=(e,t)=>{for(var s in t)ln(e,s,{get:t[s],enumerable:!0})},t0=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Pi(t))!ys.call(e,r)&&r!==s&&ln(e,r,{get:()=>t[r],enumerable:!(a=Yp(t,r))||a.enumerable});return e},n0=(e,t,s)=>(s=e!=null?Zp(Xp(e)):{},t0(!e||!e.__esModule?ln(s,"default",{value:e,enumerable:!0}):s,e)),s0=Jp({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var s=(function(){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,o={},i={util:{encode:function u(g){return g instanceof l?new l(g.type,u(g.content),g.alias):Array.isArray(g)?g.map(u):g.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(u){return Object.prototype.toString.call(u).slice(8,-1)},objId:function(u){return u.__id||Object.defineProperty(u,"__id",{value:++r}),u.__id},clone:function u(g,f){f=f||{};var k,h;switch(i.util.type(g)){case"Object":if(h=i.util.objId(g),f[h])return f[h];k={},f[h]=k;for(var v in g)g.hasOwnProperty(v)&&(k[v]=u(g[v],f));return k;case"Array":return h=i.util.objId(g),f[h]?f[h]:(k=[],f[h]=k,g.forEach(function(S,C){k[C]=u(S,f)}),k);default:return g}},getLanguage:function(u){for(;u;){var g=a.exec(u.className);if(g)return g[1].toLowerCase();u=u.parentElement}return"none"},setLanguage:function(u,g){u.className=u.className.replace(RegExp(a,"gi"),""),u.classList.add("language-"+g)},isActive:function(u,g,f){for(var k="no-"+g;u;){var h=u.classList;if(h.contains(g))return!0;if(h.contains(k))return!1;u=u.parentElement}return!!f}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(u,g){var f=i.util.clone(i.languages[u]);for(var k in g)f[k]=g[k];return f},insertBefore:function(u,g,f,k){k=k||i.languages;var h=k[u],v={};for(var S in h)if(h.hasOwnProperty(S)){if(S==g)for(var C in f)f.hasOwnProperty(C)&&(v[C]=f[C]);f.hasOwnProperty(S)||(v[S]=h[S])}var T=k[u];return k[u]=v,i.languages.DFS(i.languages,function(E,I){I===T&&E!=u&&(this[E]=v)}),v},DFS:function u(g,f,k,h){h=h||{};var v=i.util.objId;for(var S in g)if(g.hasOwnProperty(S)){f.call(g,S,g[S],k||S);var C=g[S],T=i.util.type(C);T==="Object"&&!h[v(C)]?(h[v(C)]=!0,u(C,f,null,h)):T==="Array"&&!h[v(C)]&&(h[v(C)]=!0,u(C,f,S,h))}}},plugins:{},highlight:function(u,g,f){var k={code:u,grammar:g,language:f};if(i.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=i.tokenize(k.code,k.grammar),i.hooks.run("after-tokenize",k),l.stringify(i.util.encode(k.tokens),k.language)},tokenize:function(u,g){var f=g.rest;if(f){for(var k in f)g[k]=f[k];delete g.rest}var h=new p;return m(h,h.head,u),d(u,h,g,h.head,0),w(h)},hooks:{all:{},add:function(u,g){var f=i.hooks.all;f[u]=f[u]||[],f[u].push(g)},run:function(u,g){var f=i.hooks.all[u];if(!(!f||!f.length))for(var k=0,h;h=f[k++];)h(g)}},Token:l};function l(u,g,f,k){this.type=u,this.content=g,this.alias=f,this.length=(k||"").length|0}l.stringify=function u(g,f){if(typeof g=="string")return g;if(Array.isArray(g)){var k="";return g.forEach(function(T){k+=u(T,f)}),k}var h={type:g.type,content:u(g.content,f),tag:"span",classes:["token",g.type],attributes:{},language:f},v=g.alias;v&&(Array.isArray(v)?Array.prototype.push.apply(h.classes,v):h.classes.push(v)),i.hooks.run("wrap",h);var S="";for(var C in h.attributes)S+=" "+C+'="'+(h.attributes[C]||"").replace(/"/g,""")+'"';return"<"+h.tag+' class="'+h.classes.join(" ")+'"'+S+">"+h.content+"</"+h.tag+">"};function c(u,g,f,k){u.lastIndex=g;var h=u.exec(f);if(h&&k&&h[1]){var v=h[1].length;h.index+=v,h[0]=h[0].slice(v)}return h}function d(u,g,f,k,h,v){for(var S in f)if(!(!f.hasOwnProperty(S)||!f[S])){var C=f[S];C=Array.isArray(C)?C:[C];for(var T=0;T<C.length;++T){if(v&&v.cause==S+","+T)return;var E=C[T],I=E.inside,F=!!E.lookbehind,Q=!!E.greedy,z=E.alias;if(Q&&!E.pattern.global){var G=E.pattern.toString().match(/[imsuy]*$/)[0];E.pattern=RegExp(E.pattern.source,G+"g")}for(var re=E.pattern||E,M=k.next,$=h;M!==g.tail&&!(v&&$>=v.reach);$+=M.value.length,M=M.next){var q=M.value;if(g.length>u.length)return;if(!(q instanceof l)){var ee=1,A;if(Q){if(A=c(re,$,u,F),!A||A.index>=u.length)break;var Z=A.index,O=A.index+A[0].length,W=$;for(W+=M.value.length;Z>=W;)M=M.next,W+=M.value.length;if(W-=M.value.length,$=W,M.value instanceof l)continue;for(var oe=M;oe!==g.tail&&(W<O||typeof oe.value=="string");oe=oe.next)ee++,W+=oe.value.length;ee--,q=u.slice($,W),A.index-=$}else if(A=c(re,0,q,F),!A)continue;var Z=A.index,V=A[0],ie=q.slice(0,Z),he=q.slice(Z+V.length),fe=$+q.length;v&&fe>v.reach&&(v.reach=fe);var Y=M.prev;ie&&(Y=m(g,Y,ie),$+=ie.length),b(g,Y,ee);var Re=new l(S,I?i.tokenize(V,I):V,z,V);if(M=m(g,Y,Re),he&&m(g,M,he),ee>1){var ge={cause:S+","+T,reach:fe};d(u,g,f,M.prev,$,ge),v&&ge.reach>v.reach&&(v.reach=ge.reach)}}}}}}function p(){var u={value:null,prev:null,next:null},g={value:null,prev:u,next:null};u.next=g,this.head=u,this.tail=g,this.length=0}function m(u,g,f){var k=g.next,h={value:f,prev:g,next:k};return g.next=h,k.prev=h,u.length++,h}function b(u,g,f){for(var k=g.next,h=0;h<f&&k!==u.tail;h++)k=k.next;g.next=k,k.prev=g,u.length-=h}function w(u){for(var g=[],f=u.head.next;f!==u.tail;)g.push(f.value),f=f.next;return g}return i})();t.exports=s,s.default=s}}),j=n0(s0());j.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},j.languages.markup.tag.inside["attr-value"].inside.entity=j.languages.markup.entity,j.languages.markup.doctype.inside["internal-subset"].inside=j.languages.markup,j.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(j.languages.markup.tag,"addInlined",{value:function(e,a){var s={},s=(s["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:j.languages[a]},s.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}}),a=(s["language-"+a]={pattern:/[\s\S]+/,inside:j.languages[a]},{});a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:s},j.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(j.languages.markup.tag,"addAttribute",{value:function(e,t){j.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:j.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),j.languages.html=j.languages.markup,j.languages.mathml=j.languages.markup,j.languages.svg=j.languages.markup,j.languages.xml=j.languages.extend("markup",{}),j.languages.ssml=j.languages.xml,j.languages.atom=j.languages.xml,j.languages.rss=j.languages.xml,(function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a="(?:[^\\\\-]|"+s.source+")",a=RegExp(a+"-"+a),r={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:s}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":r}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":r}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(j),j.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},j.languages.javascript=j.languages.extend("clike",{"class-name":[j.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),j.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,j.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:j.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:j.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:j.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:j.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:j.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),j.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:j.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),j.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),j.languages.markup&&(j.languages.markup.tag.addInlined("script","javascript"),j.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),j.languages.js=j.languages.javascript,j.languages.actionscript=j.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),j.languages.actionscript["class-name"].alias="function",delete j.languages.actionscript.parameter,delete j.languages.actionscript["literal-property"],j.languages.markup&&j.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:j.languages.markup}}),(function(e){var t=/#(?!\{).+/,s={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:s}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:s}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:s}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript})(j),(function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(s,a){(s=typeof s=="string"?[s]:s).forEach(function(r){var o=function(m){m.inside||(m.inside={}),m.inside.rest=a},i="doc-comment";if(l=e.languages[r]){var l,c=l[i];if((c=c||(l=e.languages.insertBefore(r,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[i])instanceof RegExp&&(c=l[i]={pattern:c}),Array.isArray(c))for(var d=0,p=c.length;d<p;d++)c[d]instanceof RegExp&&(c[d]={pattern:c[d]}),o(c[d]);else o(c)}})}}),t.addSupport(["java","javascript","php"],t)})(j),(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))})(j),(function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),s={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:s,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:s})})(j),(function(e){var t=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+s.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+s.source+")?)",r=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(l,c){c=(c||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return l});return RegExp(d,c)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+r+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(j),(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(d){return d=d.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+o+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+o+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(p){d!==p&&(e.languages.markdown[d].inside.content.inside[p]=e.languages.markdown[p])})}),e.hooks.add("after-tokenize",function(d){d.language!=="markdown"&&d.language!=="md"||(function p(m){if(m&&typeof m!="string")for(var b=0,w=m.length;b<w;b++){var u,g=m[b];g.type!=="code"?p(g.content):(u=g.content[1],g=g.content[3],u&&g&&u.type==="code-language"&&g.type==="code-block"&&typeof u.content=="string"&&(u=u.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase()),g.alias?typeof g.alias=="string"?g.alias=[g.alias,u]:g.alias.push(u):g.alias=[u]))}})(d.tokens)}),e.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var p="",m=0,b=d.classes.length;m<b;m++){var w=d.classes[m],w=/language-(.+)/.exec(w);if(w){p=w[1];break}}var u,g=e.languages[p];g?d.content=e.highlight((function(f){return f=f.replace(i,""),f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(k,h){var v;return(h=h.toLowerCase())[0]==="#"?(v=h[1]==="x"?parseInt(h.slice(2),16):Number(h.slice(1)),c(v)):l[h]||k})})(d.content),g,p):p&&p!=="none"&&e.plugins.autoloader&&(u="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),d.attributes.id=u,e.plugins.autoloader.loadLanguages(p,function(){var f=document.getElementById(u);f&&(f.innerHTML=e.highlight(f.textContent,e.languages[p],p))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),l={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(j),j.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:j.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},j.hooks.add("after-tokenize",function(e){if(e.language==="graphql")for(var t=e.tokens.filter(function(u){return typeof u!="string"&&u.type!=="comment"&&u.type!=="scalar"}),s=0;s<t.length;){var a=t[s++];if(a.type==="keyword"&&a.content==="mutation"){var r=[];if(m(["definition-mutation","punctuation"])&&p(1).content==="("){s+=2;var o=b(/^\($/,/^\)$/);if(o===-1)continue;for(;s<o;s++){var i=p(0);i.type==="variable"&&(w(i,"variable-input"),r.push(i.content))}s=o+1}if(m(["punctuation","property-query"])&&p(0).content==="{"&&(s++,w(p(0),"property-mutation"),0<r.length)){var l=b(/^\{$/,/^\}$/);if(l!==-1)for(var c=s;c<l;c++){var d=t[c];d.type==="variable"&&0<=r.indexOf(d.content)&&w(d,"variable-input")}}}}function p(u){return t[s+u]}function m(u,g){g=g||0;for(var f=0;f<u.length;f++){var k=p(f+g);if(!k||k.type!==u[f])return}return 1}function b(u,g){for(var f=1,k=s;k<t.length;k++){var h=t[k],v=h.content;if(h.type==="punctuation"&&typeof v=="string"){if(u.test(v))f++;else if(g.test(v)&&--f===0)return k}}return-1}function w(u,g){var f=u.alias;f?Array.isArray(f)||(u.alias=f=[f]):u.alias=f=[],f.push(g)}}),j.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){var t=e.languages.javascript["template-string"],s=t.pattern.source,a=t.inside.interpolation,r=a.inside["interpolation-punctuation"],o=a.pattern.source;function i(m,b){if(e.languages[m])return{pattern:RegExp("((?:"+b+")\\s*)"+s),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}function l(m,b,w){return m={code:m,grammar:b,language:w},e.hooks.run("before-tokenize",m),m.tokens=e.tokenize(m.code,m.grammar),e.hooks.run("after-tokenize",m),m.tokens}function c(m,b,w){var f=e.tokenize(m,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),u=0,g={},f=l(f.map(function(h){if(typeof h=="string")return h;for(var v,S,h=h.content;m.indexOf((S=u++,v="___"+w.toUpperCase()+"_"+S+"___"))!==-1;);return g[v]=h,v}).join(""),b,w),k=Object.keys(g);return u=0,(function h(v){for(var S=0;S<v.length;S++){if(u>=k.length)return;var C,T,E,I,F,Q,z,G=v[S];typeof G=="string"||typeof G.content=="string"?(C=k[u],(z=(Q=typeof G=="string"?G:G.content).indexOf(C))!==-1&&(++u,T=Q.substring(0,z),F=g[C],E=void 0,(I={})["interpolation-punctuation"]=r,(I=e.tokenize(F,I)).length===3&&((E=[1,1]).push.apply(E,l(I[1],e.languages.javascript,"javascript")),I.splice.apply(I,E)),E=new e.Token("interpolation",I,a.alias,F),I=Q.substring(z+C.length),F=[],T&&F.push(T),F.push(E),I&&(h(Q=[I]),F.push.apply(F,Q)),typeof G=="string"?(v.splice.apply(v,[S,1].concat(F)),S+=F.length-1):G.content=F)):(z=G.content,Array.isArray(z)?h(z):h([z]))}})(f),new e.Token(w,f,"language-"+w,m)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var d={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(m){return typeof m=="string"?m:Array.isArray(m)?m.map(p).join(""):p(m.content)}e.hooks.add("after-tokenize",function(m){m.language in d&&(function b(w){for(var u=0,g=w.length;u<g;u++){var f,k,h,v=w[u];typeof v!="string"&&(f=v.content,Array.isArray(f)?v.type==="template-string"?(v=f[1],f.length===3&&typeof v!="string"&&v.type==="embedded-code"&&(k=p(v),v=v.alias,v=Array.isArray(v)?v[0]:v,h=e.languages[v])&&(f[1]=c(k,h,v))):b(f):typeof f!="string"&&b([f]))}})(m.tokens)})})(j),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(j),(function(e){var t=e.languages.javascript,s=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+s+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(a+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return s})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+s),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)})(j),(function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(j),j.languages.n4js=j.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),j.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),j.languages.n4jsd=j.languages.n4js,(function(e){function t(i,l){return RegExp(i.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),l)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var s=["function","function-variable","method","method-variable","property-access"],a=0;a<s.length;a++){var o=s[a],r=e.languages.javascript[o],o=(r=e.util.type(r)==="RegExp"?e.languages.javascript[o]={pattern:r}:r).inside||{};(r.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(j),(function(e){var t=e.util.clone(e.languages.javascript),s=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,r=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(c,d){return c=c.replace(/<S>/g,function(){return s}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return r}),RegExp(c,d)}r=o(r).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);function i(c){for(var d=[],p=0;p<c.length;p++){var m=c[p],b=!1;typeof m!="string"&&(m.type==="tag"&&m.content[0]&&m.content[0].type==="tag"?m.content[0].content[0].content==="</"?0<d.length&&d[d.length-1].tagName===l(m.content[0].content[1])&&d.pop():m.content[m.content.length-1].content!=="/>"&&d.push({tagName:l(m.content[0].content[1]),openedBraces:0}):0<d.length&&m.type==="punctuation"&&m.content==="{"?d[d.length-1].openedBraces++:0<d.length&&0<d[d.length-1].openedBraces&&m.type==="punctuation"&&m.content==="}"?d[d.length-1].openedBraces--:b=!0),(b||typeof m=="string")&&0<d.length&&d[d.length-1].openedBraces===0&&(b=l(m),p<c.length-1&&(typeof c[p+1]=="string"||c[p+1].type==="plain-text")&&(b+=l(c[p+1]),c.splice(p+1,1)),0<p&&(typeof c[p-1]=="string"||c[p-1].type==="plain-text")&&(b=l(c[p-1])+b,c.splice(p-1,1),p--),c[p]=new e.Token("plain-text",b,null,b)),m.content&&typeof m.content!="string"&&i(m.content)}}var l=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(l).join(""):""};e.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||i(c.tokens)})})(j),(function(e){var t=e.util.clone(e.languages.typescript),t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag);t.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0})(j),j.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},j.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=j.languages.swift}),(function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin})(j),j.languages.c=j.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),j.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),j.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},j.languages.c.string],char:j.languages.c.char,comment:j.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:j.languages.c}}}}),j.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete j.languages.c.boolean,j.languages.objectivec=j.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete j.languages.objectivec["class-name"],j.languages.objc=j.languages.objectivec,j.languages.reason=j.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),j.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete j.languages.reason.function,(function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(j),j.languages.go=j.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),j.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete j.languages.go["class-name"],(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,s=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return s})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(j),j.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},j.languages.python["string-interpolation"].inside.interpolation.inside.rest=j.languages.python,j.languages.py=j.languages.python,j.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},j.languages.webmanifest=j.languages.json;var a0={};e0(a0,{dracula:()=>o0,duotoneDark:()=>l0,duotoneLight:()=>d0,github:()=>p0,gruvboxMaterialDark:()=>B0,gruvboxMaterialLight:()=>H0,jettwaveDark:()=>_0,jettwaveLight:()=>F0,nightOwl:()=>f0,nightOwlLight:()=>x0,oceanicNext:()=>y0,okaidia:()=>v0,oneDark:()=>D0,oneLight:()=>O0,palenight:()=>w0,shadesOfPurple:()=>j0,synthwave84:()=>S0,ultramin:()=>R0,vsDark:()=>Di,vsLight:()=>T0});var r0={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},o0=r0,i0={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},l0=i0,c0={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},d0=c0,u0={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},p0=u0,m0={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},f0=m0,g0={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},x0=g0,pe={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},h0={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:pe.keyword}},{types:["attr-value"],style:{color:pe.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:pe.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:pe.primitive}},{types:["boolean"],style:{color:pe.boolean}},{types:["tag"],style:{color:pe.tag}},{types:["string"],style:{color:pe.string}},{types:["punctuation"],style:{color:pe.string}},{types:["selector","char","builtin","inserted"],style:{color:pe.char}},{types:["function"],style:{color:pe.function}},{types:["operator","entity","url","variable"],style:{color:pe.variable}},{types:["keyword"],style:{color:pe.keyword}},{types:["atrule","class-name"],style:{color:pe.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},y0=h0,b0={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},v0=b0,k0={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},w0=k0,N0={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},j0=N0,C0={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},S0=C0,I0={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},R0=I0,A0={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},Di=A0,E0={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},T0=E0,L0={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},_0=L0,P0={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},F0=P0,z0={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},D0=z0,M0={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},O0=M0,$0={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},B0=$0,G0={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},H0=G0,U0=e=>x.useCallback(t=>{var s=t,{className:a,style:r,line:o}=s,i=zi(s,["className","style","line"]);const l=cn(Ne({},i),{className:ke("token-line",a)});return typeof e=="object"&&"plain"in e&&(l.style=e.plain),typeof r=="object"&&(l.style=Ne(Ne({},l.style||{}),r)),l},[e]),V0=e=>{const t=x.useCallback(({types:s,empty:a})=>{if(e!=null){{if(s.length===1&&s[0]==="plain")return a!=null?{display:"inline-block"}:void 0;if(s.length===1&&a!=null)return e[s[0]]}return Object.assign(a!=null?{display:"inline-block"}:{},...s.map(r=>e[r]))}},[e]);return x.useCallback(s=>{var a=s,{token:r,className:o,style:i}=a,l=zi(a,["token","className","style"]);const c=cn(Ne({},l),{className:ke("token",...r.types,o),children:r.content,style:t(r)});return i!=null&&(c.style=Ne(Ne({},c.style||{}),i)),c},[t])},q0=/\r\n|\r|\n/,Js=e=>{e.length===0?e.push({types:["plain"],content:`
|
|
263
|
-
`,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=`
|
|
264
|
-
`,e[0].empty=!0)},ea=(e,t)=>{const s=e.length;return s>0&&e[s-1]===t?e:e.concat(t)},W0=e=>{const t=[[]],s=[e],a=[0],r=[e.length];let o=0,i=0,l=[];const c=[l];for(;i>-1;){for(;(o=a[i]++)<r[i];){let d,p=t[i];const b=s[i][o];if(typeof b=="string"?(p=i>0?p:["plain"],d=b):(p=ea(p,b.type),b.alias&&(p=ea(p,b.alias)),d=b.content),typeof d!="string"){i++,t.push(p),s.push(d),a.push(0),r.push(d.length);continue}const w=d.split(q0),u=w.length;l.push({types:p,content:w[0]});for(let g=1;g<u;g++)Js(l),c.push(l=[]),l.push({types:p,content:w[g]})}i--,t.pop(),s.pop(),a.pop(),r.pop()}return Js(l),c},ta=W0,Z0=({prism:e,code:t,grammar:s,language:a})=>x.useMemo(()=>{if(s==null)return ta([t]);const r={code:t,grammar:s,language:a,tokens:[]};return e.hooks.run("before-tokenize",r),r.tokens=e.tokenize(t,s),e.hooks.run("after-tokenize",r),ta(r.tokens)},[t,s,a,e]),Q0=(e,t)=>{const{plain:s}=e,a=e.styles.reduce((r,o)=>{const{languages:i,style:l}=o;return i&&!i.includes(t)||o.types.forEach(c=>{const d=Ne(Ne({},r[c]),l);r[c]=d}),r},{});return a.root=s,a.plain=cn(Ne({},s),{backgroundColor:void 0}),a},Y0=Q0,K0=({children:e,language:t,code:s,theme:a,prism:r})=>{const o=t.toLowerCase(),i=Y0(a,o),l=U0(i),c=V0(i),d=r.languages[o],p=Z0({prism:r,language:o,code:s,grammar:d});return e({tokens:p,className:`prism-code language-${o}`,style:i!=null?i.root:{},getLineProps:l,getTokenProps:c})},X0=e=>x.createElement(K0,cn(Ne({},e),{prism:e.prism||j,theme:e.theme||Di,code:e.code,language:e.language}));const $t={javascript:"",typescript:"",react:"",json:"",html:"",css:"",python:"",java:"",go:"",rust:"",php:"",ruby:"",vue:"",svelte:"",markdown:"",yaml:"",xml:"",shell:"",sass:"",settings:"",default:""},wn={javascript:"#F8CA3E",typescript:"#1E8DEE",react:"#1E8DEE",json:"#F8CA3E",html:"#1E8DEE",css:"#1E8DEE",python:"#1E8DEE",java:"#E84654",go:"#1E8DEE",rust:"#6A89E6",php:"#AE4EE2",ruby:"#E84654",vue:"#4EBD35",svelte:"#E84654",markdown:"#1E8DEE",yaml:"#AE4EE2",xml:"#F18745",shell:"#4EBD35",sass:"#E84654",settings:"#6A89E6",default:"#6A89E6"},Je={js:"javascript",jsx:"react",ts:"typescript",tsx:"typescript",json:"json",html:"html",css:"css",scss:"sass",sass:"sass",less:"css",py:"python",java:"java",go:"go",rs:"rust",php:"php",rb:"ruby",vue:"vue",svelte:"svelte",md:"markdown",yml:"yaml",yaml:"yaml",xml:"xml",sh:"shell",bash:"shell",zsh:"shell",config:"settings",conf:"settings"},Nn={javascript:"text-info",typescript:"text-info",react:"text-info",json:"text-info",html:"text-info",css:"text-info",python:"text-teal",java:"text-error",go:"text-info",rust:"text-text-tertiary",php:"text-text-tertiary",ruby:"text-error",vue:"text-success",svelte:"text-error",markdown:"text-text-secondary",yaml:"text-text-tertiary",xml:"text-text-tertiary",shell:"text-success",sass:"text-error",settings:"text-text-tertiary",default:"text-text-tertiary"};function dn(e,t){let s=null;if(t&&typeof t=="string"&&t.trim()){const a=t.lastIndexOf(".");if(a>0&&a<t.length-1){const r=t.substring(a+1).toLowerCase().trim();r&&Je[r]&&(s=Je[r])}}if(!s&&e&&typeof e=="string"&&e.trim()){const a=e.toLowerCase().trim();Je[a]?s=Je[a]:$t[a]&&(s=a)}return s||"default"}function J0(e,t){const s=dn(e,t);return $t[s]??$t.default}function em(e,t){const s=dn(e,t);return wn[s]??wn.default}function Mi(e,t){const s=dn(e,t);return Nn[s]??Nn.default}const na="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",tm={plain:{color:"var(--color-text)"},styles:[{types:["comment","prolog","cdata"],style:{color:"var(--color-text-tertiary)"}},{types:["keyword","atrule"],style:{color:"var(--color-blue)"}},{types:["string","attr-value","inserted"],style:{color:"var(--color-success)"}},{types:["number","constant","boolean"],style:{color:"var(--color-success)"}},{types:["function","function-variable"],style:{color:"var(--color-purple)"}},{types:["punctuation","operator","deleted"],style:{color:"var(--color-text-tertiary)"}},{types:["property","tag","selector"],style:{color:"var(--color-pink)"}},{types:["regex","important","variable"],style:{color:"var(--color-text)"}}]},nm={javascript:"js",typescript:"ts",jsx:"jsx",tsx:"tsx",python:"py",java:"java",go:"go",rust:"rs",html:"html",css:"css",json:"json",yaml:"yml",markdown:"md",shell:"sh",bash:"sh"};function sm(e,t){if(e&&e.trim())return e;const s=(t??"text").toLowerCase(),a=nm[s]??"txt";return`${s}.${a}`}function Oi({language:e="javascript",code:t="",filename:s,diffType:a=null,diffLines:r=null,isGenerating:o=!1,defaultExpanded:i=!0,className:l,headerIcon:c,getFileIcon:d}){const p=x.useMemo(()=>sm(s,e),[s,e]),m=x.useMemo(()=>a&&t?t.split(`
|
|
265
|
-
`).length:r??null,[t,a,r]),b=e?.toLowerCase(),w=o?n.jsx(te.motion.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:n.jsx(Ta,{className:y(na,"text-text-secondary")})}):d?d(b,p):n.jsx("span",{className:y(Mi(b,p)),children:n.jsx(En,{className:na})}),u=a&&m!=null?n.jsxs("span",{className:y("font-normal text-xs leading-xs",a==="add"?"text-success":"text-error"),children:[a==="add"?"+":"-",m]}):null,g=y("overflow-x-auto text-left scrollbar-auto",a==="add"&&"bg-success-bg border-l-[3px] border-l-[var(--color-success-border)] -ml-5 pl-5",a==="remove"&&"bg-error-bg border-l-[3px] border-l-[var(--color-error-border)] -ml-5 pl-5"),f=(e??"text").toLowerCase();return n.jsx(Ce,{headerIcon:c??w,headerTitle:n.jsx("span",{className:"font-normal",children:p}),headerRight:u,defaultExpanded:i,contentPadding:"var(--spacing-2) 0 var(--spacing-2) var(--spacing-5)",titleShimmer:o,className:l,children:n.jsx("div",{className:g,children:n.jsx(X0,{theme:tm,code:t,language:f,children:({className:k,style:h,tokens:v,getLineProps:S,getTokenProps:C})=>n.jsx("pre",{className:y(k,"m-0 text-left bg-transparent font-mono text-xs font-normal leading-xs whitespace-pre"),style:h,children:n.jsx("code",{className:"text-left block",children:v.map((T,E)=>n.jsx("div",{...S({line:T}),children:T.map((I,F)=>n.jsx("span",{...C({token:I})},F))},E))})})})})})}Oi.displayName="CodeBlockPart";const am="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0";function $i(e){const{getFileIcon:t}=lt(),s=e.getFileIcon??(t?(a,r)=>t(r??"",am):void 0);return n.jsx(Oi,{getFileIcon:s,...e})}$i.displayName="CodeBlockPart";const Bi="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",rm=n.jsx(Va,{className:Bi}),om=n.jsx(qa,{className:Bi});function Gi({command:e,output:t,autoRanCommand:s,className:a,headerIcon:r,externalLinkIcon:o}){const i=s??(e!=null?`Auto-Ran command: ${e}`:"Terminal");return n.jsx(Ce,{headerIcon:r??rm,headerTitle:n.jsx("span",{className:"font-normal",children:i}),headerRight:n.jsx(je,{variant:"iconOnly",size:"sm",icon:o??om,"aria-label":"Open in terminal",className:"!min-h-0 !min-w-0 h-[var(--font-size-sm)] w-[var(--font-size-sm)] text-text-secondary hover:text-text [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"}),contentPadding:"0",className:a,children:n.jsxs("div",{className:"flex flex-col gap-0",children:[e!=null&&e!==""&&n.jsx("div",{className:"px-2 py-1.5",children:n.jsxs("div",{className:"flex items-start gap-2",children:[n.jsx("span",{className:"font-mono text-xs text-text shrink-0",children:"$"}),n.jsx("pre",{className:"m-0 flex-1 overflow-x-auto text-left font-mono text-xs leading-xs whitespace-pre text-text bg-transparent scrollbar-auto",children:n.jsx("code",{children:e})})]})}),t!=null&&t!==""&&n.jsx("div",{className:"px-2 py-1.5 overflow-x-auto text-left scrollbar-auto",children:n.jsx("pre",{className:"m-0 p-0 font-mono text-xs leading-xs whitespace-pre-wrap break-all text-text-tertiary bg-transparent",children:t})})]})})}Gi.displayName="TerminalCodeBlockPart";const Tt="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function Hi(e){const t=R("terminalBox",Tt)??n.jsx(Va,{className:Tt}),s=R("externalLink",Tt)??n.jsx(qa,{className:Tt});return n.jsx(Gi,{headerIcon:t,externalLinkIcon:s,...e})}Hi.displayName="TerminalCodeBlockPart";const bs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",im=n.jsx(Wa,{className:`${bs} text-text-secondary`}),lm=n.jsx(it,{className:`${bs} text-warning`}),cm=n.jsx(Za,{className:`${bs} text-text-secondary`});function dm({askValue:e,onAskChange:t,onSkip:s,onRun:a,dataStyle:r,dataTheme:o}){return n.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[n.jsx("div",{className:"shrink-0 w-fit",children:n.jsxs(Xr,{value:e,onValueChange:t,children:[n.jsx(Zn,{className:"h-7 w-auto min-w-0 border-0 bg-transparent px-2 py-0 text-xs text-text-tertiary hover:text-text [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",onClick:i=>i.stopPropagation(),children:n.jsx(Jr,{})}),n.jsxs(Kn,{dataStyle:r,dataTheme:o,onClick:i=>i.stopPropagation(),children:[n.jsx(nt,{value:"Ask every time",children:"Ask every time"}),n.jsx(nt,{value:"Always allow",children:"Always allow"}),n.jsx(nt,{value:"Always deny",children:"Always deny"})]})]})}),n.jsx("div",{className:"flex-1 h-4 border-l border-border-tertiary opacity-10"}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:i=>{i.stopPropagation(),s()},children:"Skip ⌘⌫"}),n.jsx(ne,{variant:"secondary",size:"sm",onClick:i=>{i.stopPropagation(),a()},children:"Run ⌘⏎"})]})}function Ui({description:e,content:t,status:s="normal",onRun:a,onSkip:r,onViewDetail:o,onAskEveryTimeChange:i,className:l,dataStyle:c,dataTheme:d,normalIcon:p,failedIcon:m,skippedIcon:b}){const[w,u]=x.useState("Ask every time"),g=S=>{u(S),i?.(S)},f=s==="failed"?m??lm:s==="skipped"?b??cm:p??im,k=s==="failed"?n.jsx("span",{children:"Browser Failed"}):s==="skipped"?n.jsx("span",{children:"Browser Skipped"}):n.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[n.jsx("span",{className:"shrink-0",children:"Browser"}),e!=null&&n.jsx("span",{className:"flex-1 min-w-0 truncate text-text-tertiary",children:e})]}),h=s==="failed"?n.jsx(ne,{variant:"text",size:"sm",onClick:S=>{S.stopPropagation(),o?.()},children:"View Detail"}):void 0,v=s==="normal"?n.jsx(dm,{askValue:w,onAskChange:g,onSkip:()=>r?.(),onRun:()=>a?.(),dataStyle:c,dataTheme:d}):void 0;return n.jsx(Ce,{headerIcon:f,headerTitle:k,headerRight:h,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:s==="normal",collapsible:s==="normal",footer:v,className:l,children:t!=null&&t!==""&&n.jsx("span",{className:"text-xs leading-xs text-text whitespace-pre-wrap break-words",children:t})})}Ui.displayName="BrowserActionPart";const vs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",sa=`${vs} text-text-secondary`,aa=`${vs} text-warning`,ra=`${vs} text-text-secondary`;function Vi(e){const{style:t,theme:s}=me(),a=R("global",sa)??n.jsx(Wa,{className:sa}),r=R("warning",aa)??n.jsx(it,{className:aa}),o=R("forbid2",ra)??n.jsx(Za,{className:ra});return n.jsx(Ui,{normalIcon:a,failedIcon:r,skippedIcon:o,dataStyle:e.dataStyle??t,dataTheme:e.dataTheme??s,...e})}Vi.displayName="BrowserActionPart";const um="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",pm=n.jsx(Ua,{className:um});function qi({title:e="Initializing agent…",question:t,skipText:s="Skip ⌘⌫",runText:a="Run ⌘⏎",askTimeText:r="Ask any time",onSkip:o,onRun:i,contentMaxHeight:l,collapsible:c=!0,className:d,headerIcon:p}){return n.jsx(Ce,{headerIcon:p??pm,headerTitle:n.jsx("span",{className:"text-left",children:e}),contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:!0,contentMaxHeight:l,collapsible:c,footer:n.jsxs(n.Fragment,{children:[n.jsxs(ne,{variant:"ghost",size:"sm",className:"gap-1 py-0.5 px-0 text-text-secondary hover:text-text",children:[n.jsx("span",{className:"text-xs",children:r}),n.jsx(ye,{className:"w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0"})]}),n.jsx("div",{className:"flex-1"}),n.jsx(ne,{variant:"ghost",size:"sm",onClick:o,className:"bg-fill text-text-tertiary hover:bg-fill-secondary hover:text-text-secondary",children:s}),n.jsx(ne,{variant:"secondary",size:"sm",onClick:i,children:a})]}),className:d,children:n.jsx("div",{className:"text-sm text-left",children:n.jsx("span",{className:"text-text",children:t})})})}qi.displayName="AskUserPart";const oa="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function Wi(e){const t=R("questionnaire",oa)??n.jsx(Ua,{className:oa});return n.jsx(qi,{headerIcon:t,...e})}Wi.displayName="AskUserPart";Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>la.toast});exports.AlertDialog=or;exports.AlertDialogAction=lr;exports.AlertDialogCancel=$n;exports.AlertDialogContent=cr;exports.AlertDialogDescription=On;exports.AlertDialogFooter=Dn;exports.AlertDialogHeader=zn;exports.AlertDialogMedia=dr;exports.AlertDialogOverlay=Pn;exports.AlertDialogPortal=ir;exports.AlertDialogTitle=Mn;exports.AlertDialogTrigger=Ac;exports.AskUserPart=Wi;exports.Avatar=Hr;exports.AvatarBadge=qr;exports.AvatarFallback=Vr;exports.AvatarGroup=Wr;exports.AvatarGroupCount=Zr;exports.AvatarImage=Ur;exports.BrowserActionPart=Vi;exports.Button=ne;exports.ChatInput=Bd;exports.ChatInputAbove=ct;exports.ChatInputActions=pt;exports.ChatInputActionsLeft=mt;exports.ChatInputActionsRight=Ze;exports.ChatInputAttachments=Vt;exports.ChatInputBox=dt;exports.ChatInputExpandButton=qt;exports.ChatInputFolderButton=ft;exports.ChatInputFooterLeft=xt;exports.ChatInputInput=ut;exports.ChatInputMoreButton=gt;exports.ChatInputRoot=ns;exports.ChatInputSendButton=ss;exports.CodeBlockPart=$i;exports.Collapse=oo;exports.CollapseContent=co;exports.CollapseItem=io;exports.CollapseTrigger=lo;exports.Collapsible=md;exports.CollapsibleCard=Ce;exports.CollapsibleContent=Ar;exports.CollapsibleSection=wr;exports.CollapsibleTrigger=fd;exports.DropdownMenu=Oe;exports.DropdownMenuCheckboxItem=Xa;exports.DropdownMenuContent=ar;exports.DropdownMenuGroup=kc;exports.DropdownMenuItem=we;exports.DropdownMenuLabel=er;exports.DropdownMenuPortal=wc;exports.DropdownMenuRadioGroup=Nc;exports.DropdownMenuRadioItem=Ja;exports.DropdownMenuSeparator=tr;exports.DropdownMenuShortcut=nr;exports.DropdownMenuSub=Qa;exports.DropdownMenuSubContent=rr;exports.DropdownMenuSubTrigger=Rc;exports.DropdownMenuTrigger=$e;exports.EllipsisText=Ra;exports.FILE_TYPE_MAP=Je;exports.FileAttachment=ri;exports.FileCard=si;exports.FileReviewPart=Ii;exports.FolderButton=zo;exports.FunctionSwitch=Fc;exports.GeneratedImagesGrid=hi;exports.GenerationStatusBar=es;exports.HintBanner=Wo;exports.IconButton=je;exports.IconsProvider=Ic;exports.ImageAttachment=ii;exports.ImageGenerating=xi;exports.Kbd=ur;exports.KbdGroup=pr;exports.MOTION_DURATION=et;exports.MOTION_EASE=tt;exports.MOTION_SPRING=mr;exports.MarkdownBody=Qe;exports.MermaidPart=_i;exports.OptionList=Rn;exports.Pagination=Co;exports.PaginationContent=So;exports.PaginationEllipsis=To;exports.PaginationItem=Io;exports.PaginationLink=Ro;exports.PaginationNext=Eo;exports.PaginationPrevious=Ao;exports.PermissionCard=gi;exports.PlanPart=Ti;exports.Progress=_o;exports.QueueIndicator=ji;exports.RadioGroup=vr;exports.RadioGroupItem=kr;exports.ReasoningStep=qu;exports.RelatedPrompts=Vo;exports.ResizableHandle=Lr;exports.ResizablePanel=Tr;exports.ResizablePanelGroup=Er;exports.Response=Mu;exports.SETI_CHAR_MAP=$t;exports.SETI_COLOR_MAP=wn;exports.Scrollbar=be;exports.Select=Xr;exports.SelectContent=no;exports.SelectGroup=wd;exports.SelectItem=nt;exports.SelectLabel=eo;exports.SelectScrollDownButton=Yn;exports.SelectScrollUpButton=Qn;exports.SelectSeparator=to;exports.SelectTrigger=Zn;exports.SelectValue=Jr;exports.SendButton=ts;exports.ShimmeringText=Pr;exports.SidebarMenu=Fo;exports.Skeleton=_r;exports.Slider=jo;exports.Spinner=Wn;exports.Switch=Bn;exports.TYPE_TO_TOKEN_CLASS=Nn;exports.Table=Fr;exports.TableBody=Dr;exports.TableCaption=Gr;exports.TableCell=Br;exports.TableFooter=Mr;exports.TableHead=$r;exports.TableHeader=zr;exports.TableRow=Or;exports.Tabs=Nd;exports.TabsContent=ro;exports.TabsList=so;exports.TabsTrigger=ao;exports.Tag=Xn;exports.TaskPart=Ai;exports.TerminalCodeBlockPart=Hi;exports.ThemeStyleProvider=cc;exports.ThinkingIndicator=fs;exports.Toaster=Kr;exports.Toggle=xr;exports.ToggleGroup=yr;exports.ToggleGroupItem=br;exports.ToolInvocationCard=mi;exports.Tooltip=In;exports.TypographyBlockquote=xo;exports.TypographyH1=uo;exports.TypographyH2=po;exports.TypographyH3=mo;exports.TypographyH4=fo;exports.TypographyInlineCode=bo;exports.TypographyLarge=ko;exports.TypographyLead=vo;exports.TypographyList=yo;exports.TypographyMuted=No;exports.TypographyP=go;exports.TypographySmall=wo;exports.TypographyTable=ho;exports.UserMessage=ei;exports.UserQuestion=bp;exports.UserQuestionAnswer=wi;exports.getFileIconColorClass=Mi;exports.getSetiIcon=J0;exports.getSetiIconColor=em;exports.getSetiIconType=dn;exports.tagVariants=Lo;exports.useIcon=R;exports.useIcons=lt;exports.useThemeStyle=me;
|
|
267
|
+
`})]}):t.jsxs("div",{className:"flex flex-col gap-1",children:[T!=null&&t.jsx("div",{className:"text-sm font-medium text-text",children:T}),S!=null&&S!==""&&t.jsx("span",{className:"text-xs leading-xs text-text whitespace-pre-wrap break-words",children:S})]})})}Ql.displayName="PlanPart";const Gt="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",gn=`${Gt} text-text-secondary`,yn=`${Gt} text-success`;function Wl(e){const a=N("fileList2",gn)??t.jsx(Wt,{className:gn}),s=N("download",Gt)??t.jsx(pr,{className:Gt}),n=N("checkLine",yn)??t.jsx(ye,{className:yn});return t.jsx(Ql,{headerIcon:a,downloadIcon:s,builtIcon:n,...e})}Wl.displayName="PlanPart";function rf(e){const a=(e||"neutral").toLowerCase();return a==="soft"?"12px":a==="sharp"?"0":a==="dense"?"4px":"6px"}function of(){return typeof document>"u"?"neutral":document.documentElement.getAttribute("data-style")||document.body?.getAttribute("data-style")||"neutral"}function lf(e,a,s){const[n,r]=u.useState(""),[o,l]=u.useState(""),c=s??of(),d=rf(c);return u.useEffect(()=>{let m=!1;return(async()=>{if(l(""),r(""),!!e)try{const x=await import("mermaid"),g=x?.default??x,v=[`.node rect { rx: ${d}; ry: ${d}; }`,`.cluster rect { rx: ${d}; ry: ${d}; }`,`.label rect { rx: ${d}; ry: ${d}; }`,`.edgeLabel rect { rx: ${d}; ry: ${d}; }`,".node polygon { stroke-linejoin: round; stroke-linecap: round; }",".node path { stroke-linejoin: round; stroke-linecap: round; }",".cluster polygon { stroke-linejoin: round; stroke-linecap: round; }",".cluster path { stroke-linejoin: round; stroke-linecap: round; }"].join(`
|
|
268
|
+
`);g.initialize({startOnLoad:!1,securityLevel:"strict",theme:"dark",themeCSS:v});const f=`mermaid-${a.replace(/:/g,"")}`,{svg:b}=await g.render(f,e);m||r(b??"")}catch(x){m||l(x?.message??"Failed to render mermaid.")}})(),()=>{m=!0}},[a,e,d]),{svg:n,error:o}}const cf="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",df=t.jsx(Wt,{className:cf});function Zl({content:e="",className:a,headerIcon:s,dataStyle:n}){const r=u.useId(),o=u.useMemo(()=>(e??"").trim(),[e]),{svg:l,error:c}=lf(o,r,n),[d,m]=u.useState(1),p=u.useRef(null);u.useEffect(()=>{if(!l||c||!p.current)return;const f=p.current,b=h=>{if(h.ctrlKey||h.metaKey){h.preventDefault();const w=h.deltaY>0?-.1:.1;m(j=>Math.max(.5,Math.min(3,Math.round((j+w)*10)/10)))}};return f.addEventListener("wheel",b,{passive:!1}),()=>f.removeEventListener("wheel",b)},[l,c]);const x=()=>m(f=>Math.min(3,Math.round((f+.1)*10)/10)),g=()=>m(f=>Math.max(.5,Math.round((f-.1)*10)/10)),v=()=>m(1);return t.jsx(Se,{headerIcon:s??df,headerTitle:t.jsx("span",{className:"text-text-secondary",children:"Mermaid"}),headerRight:l&&!c?t.jsxs("div",{className:"flex items-center gap-1",onClick:f=>f.stopPropagation(),children:[t.jsx(W,{variant:"ghost",size:"sm",onClick:f=>{f.stopPropagation(),g()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Zoom out",children:"−"}),t.jsxs("span",{className:"text-xs text-text-secondary min-w-[var(--spacing-10)] text-center",children:[Math.round(d*100),"%"]}),t.jsx(W,{variant:"ghost",size:"sm",onClick:f=>{f.stopPropagation(),v()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Reset",children:"Reset"}),t.jsx(W,{variant:"ghost",size:"sm",onClick:f=>{f.stopPropagation(),x()},className:"shrink-0 px-1.5 py-0.5 text-xs text-text-secondary hover:text-text","aria-label":"Zoom in",children:"+"})]}):void 0,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",className:a,children:o?c?t.jsxs("div",{className:"space-y-2",children:[t.jsx("div",{className:"text-xs text-text-secondary",children:"Mermaid render unavailable."}),t.jsx("div",{className:"text-xs text-text-tertiary",children:c}),t.jsx("pre",{className:"m-0 whitespace-pre-wrap break-words font-mono text-xs text-text",children:o})]}):t.jsx("div",{className:"relative",ref:p,children:t.jsx(ve,{scrollbarVisibility:"auto",maxHeight:600,className:"overflow-x-auto",children:t.jsx("div",{className:"flex justify-center items-center",style:{transform:`scale(${d})`,transformOrigin:"center top",minHeight:d>1?"100%":"auto"},children:t.jsx("div",{dangerouslySetInnerHTML:{__html:l}})})})}):t.jsx("div",{className:"text-xs text-text-tertiary",children:"Mermaid content is empty."})})}Zl.displayName="MermaidPart";const bn="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function Kl(e){const a=N("fileList2",bn)??t.jsx(Wt,{className:bn}),{style:s}=de();return t.jsx(Zl,{headerIcon:a,dataStyle:s,...e})}Kl.displayName="MermaidPart";const qt={javascript:"",typescript:"",react:"",json:"",html:"",css:"",python:"",java:"",go:"",rust:"",php:"",ruby:"",vue:"",svelte:"",markdown:"",yaml:"",xml:"",shell:"",sass:"",settings:"",default:""},za={javascript:"var(--color-yellow)",typescript:"var(--color-blue)",react:"var(--color-blue)",json:"var(--color-yellow)",html:"var(--color-blue)",css:"var(--color-blue)",python:"var(--color-blue)",java:"var(--color-error)",go:"var(--color-blue)",rust:"var(--color-lavender)",php:"var(--color-purple)",ruby:"var(--color-error)",vue:"var(--color-success)",svelte:"var(--color-error)",markdown:"var(--color-blue)",yaml:"var(--color-purple)",xml:"var(--color-orange)",shell:"var(--color-success)",sass:"var(--color-error)",settings:"var(--color-lavender)",default:"var(--color-lavender)"},nt={js:"javascript",jsx:"react",ts:"typescript",tsx:"typescript",json:"json",html:"html",css:"css",scss:"sass",sass:"sass",less:"css",py:"python",java:"java",go:"go",rs:"rust",php:"php",rb:"ruby",vue:"vue",svelte:"svelte",md:"markdown",yml:"yaml",yaml:"yaml",xml:"xml",sh:"shell",bash:"shell",zsh:"shell",config:"settings",conf:"settings"},Ta={javascript:"text-info",typescript:"text-info",react:"text-info",json:"text-info",html:"text-info",css:"text-info",python:"text-teal",java:"text-error",go:"text-info",rust:"text-text-tertiary",php:"text-text-tertiary",ruby:"text-error",vue:"text-success",svelte:"text-error",markdown:"text-text-secondary",yaml:"text-text-tertiary",xml:"text-text-tertiary",shell:"text-success",sass:"text-error",settings:"text-text-tertiary",default:"text-text-tertiary"};function fa(e,a){let s=null;if(a&&typeof a=="string"&&a.trim()){const n=a.lastIndexOf(".");if(n>0&&n<a.length-1){const r=a.substring(n+1).toLowerCase().trim();r&&nt[r]&&(s=nt[r])}}if(!s&&e&&typeof e=="string"&&e.trim()){const n=e.toLowerCase().trim();nt[n]?s=nt[n]:qt[n]&&(s=n)}return s||"default"}function uf(e,a){const s=fa(e,a);return qt[s]??qt.default}function mf(e,a){const s=fa(e,a);return za[s]??za.default}function Yl(e,a){const s=fa(e,a);return Ta[s]??Ta.default}const vn="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",pf={plain:{color:"var(--color-text)"},styles:[{types:["comment","prolog","cdata"],style:{color:"var(--color-text-tertiary)"}},{types:["keyword","atrule"],style:{color:"var(--color-blue)"}},{types:["string","attr-value","inserted"],style:{color:"var(--color-success)"}},{types:["number","constant","boolean"],style:{color:"var(--color-success)"}},{types:["function","function-variable"],style:{color:"var(--color-purple)"}},{types:["punctuation","operator","deleted"],style:{color:"var(--color-text-tertiary)"}},{types:["property","tag","selector"],style:{color:"var(--color-pink)"}},{types:["regex","important","variable"],style:{color:"var(--color-text)"}}]},xf={javascript:"js",typescript:"ts",jsx:"jsx",tsx:"tsx",python:"py",java:"java",go:"go",rust:"rs",html:"html",css:"css",json:"json",yaml:"yml",markdown:"md",shell:"sh",bash:"sh"};function ff(e,a){if(e&&e.trim())return e;const s=(a??"text").toLowerCase(),n=xf[s]??"txt";return`${s}.${n}`}function Xl({language:e="javascript",code:a="",filename:s,diffType:n=null,diffLines:r=null,isGenerating:o=!1,defaultExpanded:l=!0,className:c,headerIcon:d,getFileIcon:m}){const p=u.useMemo(()=>ff(s,e),[s,e]),x=u.useMemo(()=>n&&a?a.split(`
|
|
269
|
+
`).length:r??null,[a,n,r]),g=e?.toLowerCase(),v=o?t.jsx(V.motion.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},children:t.jsx(ar,{className:i(vn,"text-text-secondary")})}):m?m(g,p):t.jsx("span",{className:i(Yl(g,p)),children:t.jsx(Fa,{className:vn})}),f=n&&x!=null?t.jsxs("span",{className:i("font-normal text-xs leading-xs",n==="add"?"text-success":"text-error"),children:[n==="add"?"+":"-",x]}):null,b=i("overflow-x-auto text-left scrollbar-auto",n==="add"&&"bg-success-bg border-l-[3px] border-l-[var(--color-success-border)] -ml-5 pl-5",n==="remove"&&"bg-error-bg border-l-[3px] border-l-[var(--color-error-border)] -ml-5 pl-5"),h=(e??"text").toLowerCase();return t.jsx(Se,{headerIcon:d??v,headerTitle:t.jsx("span",{className:"font-normal",children:p}),headerRight:f,defaultExpanded:l,contentPadding:"var(--spacing-2) 0 var(--spacing-2) var(--spacing-5)",titleShimmer:o,className:c,children:t.jsx("div",{className:b,children:t.jsx(Rc.Highlight,{theme:pf,code:a,language:h,children:({className:w,style:j,tokens:k,getLineProps:T,getTokenProps:S})=>t.jsx("pre",{className:i(w,"m-0 text-left bg-transparent font-mono text-xs font-normal leading-xs whitespace-pre"),style:j,children:t.jsx("code",{className:"text-left block",children:k.map((P,A)=>t.jsx("div",{...T({line:P}),children:P.map((I,_)=>t.jsx("span",{...S({token:I})},_))},A))})})})})})}Xl.displayName="CodeBlockPart";const hf="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0";function Jl(e){const{getFileIcon:a}=pt(),s=e.getFileIcon??(a?(n,r)=>a(r??"",hf):void 0);return t.jsx(Xl,{getFileIcon:s,...e})}Jl.displayName="CodeBlockPart";const ec="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",gf=t.jsx(fr,{className:ec}),yf=t.jsx(hr,{className:ec});function tc({command:e,output:a,autoRanCommand:s,className:n,headerIcon:r,externalLinkIcon:o}){const l=s??(e!=null?`Auto-Ran command: ${e}`:"Terminal");return t.jsx(Se,{headerIcon:r??gf,headerTitle:t.jsx("span",{className:"font-normal",children:l}),headerRight:t.jsx(Ne,{variant:"iconOnly",size:"sm",icon:o??yf,"aria-label":"Open in terminal",className:"!min-h-0 !min-w-0 h-[var(--font-size-sm)] w-[var(--font-size-sm)] text-text-secondary hover:text-text [&_svg]:w-[var(--font-size-sm)] [&_svg]:h-[var(--font-size-sm)]"}),contentPadding:"0",className:n,children:t.jsxs("div",{className:"flex flex-col gap-0",children:[e!=null&&e!==""&&t.jsx("div",{className:"px-2 py-1.5",children:t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx("span",{className:"font-mono text-xs text-text shrink-0",children:"$"}),t.jsx("pre",{className:"m-0 flex-1 overflow-x-auto text-left font-mono text-xs leading-xs whitespace-pre text-text bg-transparent scrollbar-auto",children:t.jsx("code",{children:e})})]})}),a!=null&&a!==""&&t.jsx("div",{className:"px-2 py-1.5 overflow-x-auto text-left scrollbar-auto",children:t.jsx("pre",{className:"m-0 p-0 font-mono text-xs leading-xs whitespace-pre-wrap break-all text-text-tertiary bg-transparent",children:a})})]})})}tc.displayName="TerminalCodeBlockPart";const _t="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function ac(e){const a=N("terminalBox",_t)??t.jsx(fr,{className:_t}),s=N("externalLink",_t)??t.jsx(hr,{className:_t});return t.jsx(tc,{headerIcon:a,externalLinkIcon:s,...e})}ac.displayName="TerminalCodeBlockPart";const Os="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",bf=t.jsx(gr,{className:`${Os} text-text-secondary`}),vf=t.jsx(mt,{className:`${Os} text-warning`}),wf=t.jsx(yr,{className:`${Os} text-text-secondary`});function kf({askValue:e,onAskChange:a,onSkip:s,onRun:n,dataStyle:r,dataTheme:o}){return t.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[t.jsx("div",{className:"shrink-0 w-fit",children:t.jsxs(uo,{value:e,onValueChange:a,children:[t.jsx(as,{className:"h-7 w-auto min-w-0 border-0 bg-transparent px-2 py-0 text-xs text-text-tertiary hover:text-text [&>svg]:w-[var(--font-size-sm)] [&>svg]:h-[var(--font-size-sm)]",onClick:l=>l.stopPropagation(),children:t.jsx(mo,{})}),t.jsxs(rs,{dataStyle:r,dataTheme:o,onClick:l=>l.stopPropagation(),children:[t.jsx(lt,{value:"Ask every time",children:"Ask every time"}),t.jsx(lt,{value:"Always allow",children:"Always allow"}),t.jsx(lt,{value:"Always deny",children:"Always deny"})]})]})}),t.jsx("div",{className:"flex-1 h-4 border-l border-border-tertiary opacity-10"}),t.jsx(W,{variant:"ghost",size:"sm",onClick:l=>{l.stopPropagation(),s()},children:"Skip ⌘⌫"}),t.jsx(W,{variant:"secondary",size:"sm",onClick:l=>{l.stopPropagation(),n()},children:"Run ⌘⏎"})]})}function sc({description:e,content:a,status:s="normal",onRun:n,onSkip:r,onViewDetail:o,onAskEveryTimeChange:l,className:c,dataStyle:d,dataTheme:m,normalIcon:p,failedIcon:x,skippedIcon:g}){const[v,f]=u.useState("Ask every time"),b=T=>{f(T),l?.(T)},h=s==="failed"?x??vf:s==="skipped"?g??wf:p??bf,w=s==="failed"?t.jsx("span",{children:"Browser Failed"}):s==="skipped"?t.jsx("span",{children:"Browser Skipped"}):t.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[t.jsx("span",{className:"shrink-0",children:"Browser"}),e!=null&&t.jsx("span",{className:"flex-1 min-w-0 truncate text-text-tertiary",children:e})]}),j=s==="failed"?t.jsx(W,{variant:"text",size:"sm",onClick:T=>{T.stopPropagation(),o?.()},children:"View Detail"}):void 0,k=s==="normal"?t.jsx(kf,{askValue:v,onAskChange:b,onSkip:()=>r?.(),onRun:()=>n?.(),dataStyle:d,dataTheme:m}):void 0;return t.jsx(Se,{headerIcon:h,headerTitle:w,headerRight:j,contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:s==="normal",collapsible:s==="normal",footer:k,className:c,children:a!=null&&a!==""&&t.jsx("span",{className:"text-xs leading-xs text-text whitespace-pre-wrap break-words",children:a})})}sc.displayName="BrowserActionPart";const Bs="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0",wn=`${Bs} text-text-secondary`,kn=`${Bs} text-warning`,jn=`${Bs} text-text-secondary`;function nc(e){const{style:a,theme:s}=de(),n=N("global",wn)??t.jsx(gr,{className:wn}),r=N("warning",kn)??t.jsx(mt,{className:kn}),o=N("forbid2",jn)??t.jsx(yr,{className:jn});return t.jsx(sc,{normalIcon:n,failedIcon:r,skippedIcon:o,dataStyle:e.dataStyle??a,dataTheme:e.dataTheme??s,...e})}nc.displayName="BrowserActionPart";const jf="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary",Nf=t.jsx(xr,{className:jf});function rc({title:e="Initializing agent…",question:a,skipText:s="Skip ⌘⌫",runText:n="Run ⌘⏎",askTimeText:r="Ask any time",onSkip:o,onRun:l,contentMaxHeight:c,collapsible:d=!0,className:m,headerIcon:p}){return t.jsx(Se,{headerIcon:p??Nf,headerTitle:t.jsx("span",{className:"text-left",children:e}),contentPadding:"var(--spacing-1\\.5) var(--spacing-2)",defaultExpanded:!0,contentMaxHeight:c,collapsible:d,footer:t.jsxs(t.Fragment,{children:[t.jsxs(W,{variant:"ghost",size:"sm",className:"gap-1 py-0.5 px-0 text-text-secondary hover:text-text",children:[t.jsx("span",{className:"text-xs",children:r}),t.jsx(be,{className:"w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0"})]}),t.jsx("div",{className:"flex-1"}),t.jsx(W,{variant:"ghost",size:"sm",onClick:o,className:"bg-fill text-text-tertiary hover:bg-fill-secondary hover:text-text-secondary",children:s}),t.jsx(W,{variant:"secondary",size:"sm",onClick:l,children:n})]}),className:m,children:t.jsx("div",{className:"text-sm text-left",children:t.jsx("span",{className:"text-text",children:a})})})}rc.displayName="AskUserPart";const Nn="w-[var(--font-size-sm)] h-[var(--font-size-sm)] shrink-0 text-text-secondary";function oc(e){const a=N("questionnaire",Nn)??t.jsx(xr,{className:Nn});return t.jsx(rc,{headerIcon:a,...e})}oc.displayName="AskUserPart";Object.defineProperty(exports,"toast",{enumerable:!0,get:()=>Sn.toast});exports.Alert=ni;exports.AlertDescription=oi;exports.AlertDialog=Tr;exports.AlertDialogAction=Mr;exports.AlertDialogCancel=Za;exports.AlertDialogContent=Pr;exports.AlertDialogDescription=Wa;exports.AlertDialogFooter=Ua;exports.AlertDialogHeader=qa;exports.AlertDialogMedia=Ar;exports.AlertDialogOverlay=Ha;exports.AlertDialogPortal=Lr;exports.AlertDialogTitle=Qa;exports.AlertDialogTrigger=lu;exports.AlertTitle=ri;exports.AskUserPart=oc;exports.AspectRatio=i0;exports.Avatar=to;exports.AvatarBadge=no;exports.AvatarFallback=so;exports.AvatarGroup=ro;exports.AvatarGroupCount=oo;exports.AvatarImage=ao;exports.Breadcrumb=ii;exports.BreadcrumbEllipsis=pi;exports.BreadcrumbItem=ci;exports.BreadcrumbLink=di;exports.BreadcrumbList=li;exports.BreadcrumbPage=ui;exports.BreadcrumbSeparator=mi;exports.BrowserActionPart=nc;exports.Button=W;exports.ButtonGroup=Un;exports.ButtonGroupSeparator=Wn;exports.ButtonGroupText=Qn;exports.Calendar=Cm;exports.CalendarDayButton=Gi;exports.Card=Ko;exports.CardAction=ei;exports.CardContent=ti;exports.CardDescription=Jo;exports.CardFooter=ai;exports.CardHeader=Yo;exports.CardTitle=Xo;exports.Carousel=Sm;exports.CarouselContent=Im;exports.CarouselItem=Rm;exports.CarouselNext=Tm;exports.CarouselPrevious=zm;exports.ChartContainer=Am;exports.ChartLegend=Em;exports.ChartLegendContent=Fm;exports.ChartStyle=Zi;exports.ChartTooltip=Dm;exports.ChartTooltipContent=_m;exports.ChatInput=ep;exports.ChatInputAbove=ft;exports.ChatInputActions=yt;exports.ChatInputActionsLeft=bt;exports.ChatInputActionsRight=Je;exports.ChatInputAttachments=Jt;exports.ChatInputBox=ht;exports.ChatInputExpandButton=ea;exports.ChatInputFolderButton=vt;exports.ChatInputFooterLeft=kt;exports.ChatInputInput=gt;exports.ChatInputMoreButton=wt;exports.ChatInputRoot=js;exports.ChatInputSendButton=Ns;exports.Checkbox=Zo;exports.CodeBlockPart=Jl;exports.Collapse=bo;exports.CollapseContent=ko;exports.CollapseItem=vo;exports.CollapseTrigger=wo;exports.Collapsible=ku;exports.CollapsibleCard=Se;exports.CollapsibleContent=Qr;exports.CollapsibleSection=Ur;exports.CollapsibleTrigger=ju;exports.Combobox=wm;exports.Command=Hi;exports.CommandDialog=pm;exports.CommandEmpty=hm;exports.CommandGroup=gm;exports.CommandInput=xm;exports.CommandItem=bm;exports.CommandList=fm;exports.CommandSeparator=ym;exports.CommandShortcut=vm;exports.ContextMenu=_0;exports.ContextMenuCheckboxItem=Pi;exports.ContextMenuContent=Fi;exports.ContextMenuGroup=F0;exports.ContextMenuItem=Li;exports.ContextMenuLabel=Di;exports.ContextMenuPortal=$0;exports.ContextMenuRadioGroup=B0;exports.ContextMenuRadioItem=Ai;exports.ContextMenuSeparator=_i;exports.ContextMenuShortcut=Ei;exports.ContextMenuSub=O0;exports.ContextMenuSubContent=$i;exports.ContextMenuSubTrigger=zi;exports.ContextMenuTrigger=E0;exports.ConversationAnchorNav=Ol;exports.DataTable=Lm;exports.DatePicker=qi;exports.Dialog=xi;exports.DialogClose=R0;exports.DialogContent=gi;exports.DialogDescription=ps;exports.DialogFooter=hi;exports.DialogHeader=us;exports.DialogOverlay=cs;exports.DialogPortal=fi;exports.DialogTitle=ms;exports.DialogTrigger=I0;exports.DirectionProvider=Om;exports.Drawer=yi;exports.DrawerClose=vi;exports.DrawerContent=ki;exports.DrawerDescription=bs;exports.DrawerFooter=gs;exports.DrawerHeader=hs;exports.DrawerOverlay=Kt;exports.DrawerPortal=xs;exports.DrawerTitle=ys;exports.DrawerTrigger=bi;exports.DropdownMenu=$e;exports.DropdownMenuCheckboxItem=kr;exports.DropdownMenuContent=Rr;exports.DropdownMenuGroup=eu;exports.DropdownMenuItem=je;exports.DropdownMenuLabel=Nr;exports.DropdownMenuPortal=tu;exports.DropdownMenuRadioGroup=au;exports.DropdownMenuRadioItem=jr;exports.DropdownMenuSeparator=Cr;exports.DropdownMenuShortcut=Sr;exports.DropdownMenuSub=br;exports.DropdownMenuSubContent=zr;exports.DropdownMenuSubTrigger=iu;exports.DropdownMenuTrigger=Oe;exports.EllipsisText=Jn;exports.Empty=l0;exports.EmptyContent=x0;exports.EmptyDescription=p0;exports.EmptyHeader=c0;exports.EmptyMedia=u0;exports.EmptyTitle=m0;exports.FILE_TYPE_MAP=nt;exports.Field=e0;exports.FieldContent=t0;exports.FieldDescription=n0;exports.FieldError=o0;exports.FieldGroup=Xu;exports.FieldLabel=a0;exports.FieldLegend=Yu;exports.FieldSeparator=r0;exports.FieldSet=Ku;exports.FieldTitle=s0;exports.FileAttachment=vl;exports.FileCard=yl;exports.FileReviewPart=Gl;exports.FolderButton=Xi;exports.FunctionSwitch=xu;exports.GeneratedImagesGrid=Ml;exports.GenerationStatusBar=ws;exports.HintBanner=cl;exports.HoverCard=A0;exports.HoverCardContent=Si;exports.HoverCardTrigger=D0;exports.IconButton=Ne;exports.IconsProvider=ou;exports.ImageAttachment=kl;exports.ImageGenerating=Ll;exports.Input=xt;exports.InputGroup=Fu;exports.InputGroupAddon=Ou;exports.InputGroupButton=Vu;exports.InputGroupInput=Gu;exports.InputGroupText=Hu;exports.InputGroupTextarea=qu;exports.InputOTP=Uu;exports.InputOTPGroup=Qu;exports.InputOTPSeparator=Zu;exports.InputOTPSlot=Wu;exports.Item=y0;exports.ItemActions=N0;exports.ItemContent=w0;exports.ItemDescription=j0;exports.ItemFooter=S0;exports.ItemGroup=f0;exports.ItemHeader=C0;exports.ItemMedia=v0;exports.ItemSeparator=h0;exports.ItemTitle=k0;exports.Kbd=Dr;exports.KbdGroup=_r;exports.Label=ls;exports.MOTION_DURATION=rt;exports.MOTION_EASE=ot;exports.MOTION_SPRING=Er;exports.MarkdownBody=et;exports.Menubar=q0;exports.MenubarCheckboxItem=X0;exports.MenubarContent=K0;exports.MenubarGroup=Q0;exports.MenubarItem=Y0;exports.MenubarLabel=em;exports.MenubarMenu=U0;exports.MenubarPortal=Oi;exports.MenubarRadioGroup=W0;exports.MenubarRadioItem=J0;exports.MenubarSeparator=tm;exports.MenubarShortcut=am;exports.MenubarSub=sm;exports.MenubarSubContent=rm;exports.MenubarSubTrigger=nm;exports.MenubarTrigger=Z0;exports.MermaidPart=Kl;exports.NativeSelect=km;exports.NativeSelectOptGroup=Nm;exports.NativeSelectOption=jm;exports.NavigationMenu=om;exports.NavigationMenuContent=dm;exports.NavigationMenuIndicator=mm;exports.NavigationMenuItem=lm;exports.NavigationMenuLink=um;exports.NavigationMenuList=im;exports.NavigationMenuTrigger=cm;exports.NavigationMenuViewport=Vi;exports.OptionList=_a;exports.Pagination=Eo;exports.PaginationContent=Fo;exports.PaginationEllipsis=Ho;exports.PaginationItem=$o;exports.PaginationLink=Oo;exports.PaginationNext=Vo;exports.PaginationPrevious=Bo;exports.PermissionCard=Tl;exports.PlanPart=Wl;exports.Popover=L0;exports.PopoverAnchor=P0;exports.PopoverContent=Ni;exports.PopoverTrigger=M0;exports.Progress=qo;exports.QueueIndicator=$l;exports.RadioGroup=Gr;exports.RadioGroupItem=qr;exports.ReasoningStep=rx;exports.RelatedPrompts=il;exports.ResizableHandle=Kr;exports.ResizablePanel=Zr;exports.ResizablePanelGroup=Wr;exports.Response=Yp;exports.SETI_CHAR_MAP=qt;exports.SETI_COLOR_MAP=za;exports.ScrollArea=$m;exports.ScrollBar=Ki;exports.Scrollbar=ve;exports.Select=uo;exports.SelectContent=fo;exports.SelectGroup=Lu;exports.SelectItem=lt;exports.SelectLabel=po;exports.SelectScrollDownButton=ns;exports.SelectScrollUpButton=ss;exports.SelectSeparator=xo;exports.SelectTrigger=as;exports.SelectValue=mo;exports.SendButton=ks;exports.Separator=Zt;exports.Sheet=yi;exports.SheetClose=vi;exports.SheetContent=fs;exports.SheetDescription=bs;exports.SheetFooter=gs;exports.SheetHeader=hs;exports.SheetOverlay=Kt;exports.SheetPortal=xs;exports.SheetTitle=ys;exports.SheetTrigger=bi;exports.ShimmeringText=Xr;exports.SidebarMenu=Qo;exports.Skeleton=Yr;exports.Slider=_o;exports.Spinner=Ya;exports.StreamingMarkdownBlock=Ts;exports.Switch=Ka;exports.TYPE_TO_TOKEN_CLASS=Ta;exports.Table=Xa;exports.TableBody=es;exports.TableCaption=eo;exports.TableCell=$t;exports.TableFooter=Jr;exports.TableHead=ts;exports.TableHeader=Ja;exports.TableRow=it;exports.Tabs=Mu;exports.TabsContent=yo;exports.TabsList=ho;exports.TabsTrigger=go;exports.Tag=os;exports.TaskPart=Ul;exports.TerminalCodeBlockPart=ac;exports.Textarea=is;exports.ThemeStyleProvider=Vd;exports.ThinkingIndicator=_s;exports.Toaster=co;exports.Toggle=Or;exports.ToggleGroup=Vr;exports.ToggleGroupItem=Hr;exports.ToolInvocationCard=Rl;exports.Tooltip=Da;exports.TypographyBlockquote=Ro;exports.TypographyH1=jo;exports.TypographyH2=No;exports.TypographyH3=Co;exports.TypographyH4=So;exports.TypographyInlineCode=Lo;exports.TypographyLarge=Po;exports.TypographyLead=Mo;exports.TypographyList=To;exports.TypographyMuted=Do;exports.TypographyP=Io;exports.TypographySmall=Ao;exports.TypographyTable=zo;exports.UserMessage=fl;exports.UserQuestion=Mx;exports.UserQuestionAnswer=El;exports.alertVariants=si;exports.buttonGroupVariants=qn;exports.checkboxVariants=Wo;exports.getFileIconColorClass=Yl;exports.getSetiIcon=uf;exports.getSetiIconColor=mf;exports.getSetiIconType=fa;exports.navigationMenuTriggerStyle=Bi;exports.sheetVariants=wi;exports.tagVariants=Go;exports.useDirection=Bm;exports.useIcon=N;exports.useIcons=pt;exports.useThemeStyle=de;exports.useVisibleAnchorIndex=Bl;
|