feat(docs): Mintlify-style full-width layout and header navigation

Adopt a three-column docs shell with a centred 720px content column, integrated header tabs, search, and tab-filtered sidebar so navigation matches Mintlify-style sites.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
MervinPraisonandCursor committed 2026-08-28 11:16:35 +01:00
1 parent 4bf74be9c7
commit 4bc7497e99
13 files changed
+455 -149

No files matched your search

+5 -4
View File
@@ -81,11 +81,12 @@ navigation:
# Navbar actions
navbar:
primary:
type: "github"
href: "https://github.com/MervinPraison/PraisonAIUI"
type: "button"
label: "Get started"
href: "/docs/getting-started/quickstart"
links:
- label: "Submit Issues"
href: "https://github.com/MervinPraison/PraisonAIUI/issues"
- label: "GitHub"
href: "https://github.com/MervinPraison/PraisonAIUI"
# Footer
footer:
+21 -4
View File
@@ -1,4 +1,4 @@
import { useEffect, useState } from 'react'
import { useEffect, useMemo, useState } from 'react'
import { applyTheme, applyStoredThemePreference } from './themes'
import './index.css'
import type { UIConfig, DocsNav, RouteManifest, NavItem } from './types'
@@ -12,6 +12,7 @@ import { ChatLayout, AgentUILayout, CopilotWidget, PlaygroundLayout } from './la
import { LocaleProvider } from './i18n'
import { resolveTemplate, shouldShowToc } from './resolver'
import { normalizeDocPath } from './pathUtils'
import { detectActiveTabIndex, filterNavByTab } from './docs/navTabs'
function SkipLink({ enabled }: { enabled?: boolean }) {
if (!enabled) return null
@@ -35,6 +36,19 @@ export default function App() {
const [activeItemPath, setActiveItemPath] = useState<string>('')
const [currentPath, setCurrentPath] = useState(() => normalizeDocPath(window.location.pathname))
const [mobileNavOpen, setMobileNavOpen] = useState(false)
const [activeTabIndex, setActiveTabIndex] = useState(0)
const navTabs = config.navigation?.tabs ?? []
const filteredNav = useMemo<DocsNav>(() => {
if (!navTabs.length) return nav
return { items: filterNavByTab(nav.items ?? [], navTabs[activeTabIndex]) }
}, [nav, navTabs, activeTabIndex])
useEffect(() => {
if (navTabs.length) {
setActiveTabIndex(detectActiveTabIndex(navTabs, currentPath))
}
}, [currentPath, navTabs])
// Helper function to find nav item by path (searches top-level items and nested children)
const findNavItemByPath = (navData: DocsNav, path: string): NavItem | null => {
@@ -349,7 +363,7 @@ export default function App() {
<MobileNavSheet
open={mobileNavOpen}
onOpenChange={setMobileNavOpen}
nav={nav}
nav={filteredNav}
activeItem={activeItemPath}
onItemClick={handleItemClick}
title={config.site?.title || 'Navigation'}
@@ -358,6 +372,9 @@ export default function App() {
config={config}
templateKey={activeTemplateKey}
onMenuClick={() => setMobileNavOpen(true)}
navTabs={navTabs}
activeTabIndex={activeTabIndex}
onTabChange={setActiveTabIndex}
/>
</>
)
@@ -449,8 +466,8 @@ export default function App() {
case 'ThreeColumnLayout':
default:
return (
<div className="flex">
<Sidebar nav={nav} activeItem={activeItemPath} onItemClick={handleItemClick} />
<div className="docs-shell flex w-full min-h-[calc(100vh-3.5rem)]">
<Sidebar nav={filteredNav} activeItem={activeItemPath} onItemClick={handleItemClick} />
<Content config={config} routes={routes} selectedItem={selectedItem} currentPath={currentPath} />
{showToc && <Toc selectedItem={selectedItem} zones={zones} showToc={showToc} />}
</div>
+27 -23
View File
@@ -142,34 +142,37 @@ export function Content({ config, routes, selectedItem, currentPath }: ContentPr
if (selectedItem) {
return (
<main id="main-content" className="flex-1 min-w-0 w-full p-8">
<MobileToc selectedItem={selectedItem} />
{loadingContent && !markdown && (
<div className="text-muted-foreground">Loading content...</div>
)}
{markdown ? (
<article
key={currentPath}
ref={articleRef}
className={`prose prose-neutral dark:prose-invert max-w-none prose-pre:bg-muted prose-pre:text-foreground prose-code:text-foreground${loadingContent ? ' opacity-60' : ''}`}
>
<Markdown remarkPlugins={[remarkGfm]} components={markdownComponents}>
{markdown}
</Markdown>
</article>
) : !loadingContent ? (
<div className="bg-muted/50 border rounded-lg p-6">
<p className="text-muted-foreground">
Content for <strong className="text-primary">{selectedItem.title}</strong> would be displayed here.
</p>
</div>
) : null}
<main id="main-content" className="docs-main flex-1 min-w-0">
<div className="docs-main-inner mx-auto w-full max-w-[720px] px-6 py-8 lg:px-8">
<MobileToc selectedItem={selectedItem} />
{loadingContent && !markdown && (
<div className="text-muted-foreground">Loading content...</div>
)}
{markdown ? (
<article
key={currentPath}
ref={articleRef}
className={`prose prose-neutral dark:prose-invert max-w-none prose-pre:bg-muted prose-pre:text-foreground prose-code:text-foreground${loadingContent ? ' opacity-60' : ''}`}
>
<Markdown remarkPlugins={[remarkGfm]} components={markdownComponents}>
{markdown}
</Markdown>
</article>
) : !loadingContent ? (
<div className="bg-muted/50 border rounded-lg p-6">
<p className="text-muted-foreground">
Content for <strong className="text-primary">{selectedItem.title}</strong> would be displayed here.
</p>
</div>
) : null}
</div>
</main>
)
}
return (
<main className="flex-1 p-8 max-w-3xl">
<main id="main-content" className="docs-main flex-1 min-w-0">
<div className="docs-main-inner mx-auto w-full max-w-[720px] px-6 py-8 lg:px-8">
<h1 className="text-4xl font-bold tracking-tight mb-4">
{config.site?.title || 'Documentation'}
</h1>
@@ -219,6 +222,7 @@ export function Content({ config, routes, selectedItem, currentPath }: ContentPr
<pre className="bg-muted text-foreground border border-border p-4 rounded-lg text-sm overflow-auto">
{JSON.stringify(routes.routes?.slice(0, 3), null, 2)}
</pre>
</div>
</main>
)
}
+108 -31
View File
@@ -1,19 +1,27 @@
// Header component
import { Menu } from 'lucide-react'
import type { UIConfig } from './types'
// Header component — Mintlify-style docs chrome
import { Github, Menu, Search } from 'lucide-react'
import type { NavTabConfig, UIConfig } from './types'
import { LocaleSwitcher } from './i18n'
import { Button } from '@/components/ui/button'
import { ThemeToggle } from '@/components/theme-toggle'
interface HeaderProps {
config: UIConfig
templateKey?: string
onMenuClick?: () => void
navTabs?: NavTabConfig[]
activeTabIndex?: number
onTabChange?: (index: number) => void
}
export function Header({
config,
templateKey = 'docs',
onMenuClick,
}: {
config: UIConfig
templateKey?: string
onMenuClick?: () => void
}) {
navTabs,
activeTabIndex = 0,
onTabChange,
}: HeaderProps) {
const headerSlot = config.templates?.[templateKey]?.slots?.header
const headerRef = headerSlot?.ref
const headerComponent = headerRef
@@ -30,16 +38,36 @@ export function Header({
const isDarkMode = document.documentElement.classList.contains('dark')
const logoSrc = header?.logoImage || (logoConfig ? (isDarkMode ? (logoConfig.dark || logoConfig.light) : (logoConfig.light || logoConfig.dark)) : null)
const logoHref = logoConfig?.href || '/'
const logoText = header?.logoText || config.site?.title || 'PraisonAIUI'
const tabs = navTabs ?? config.navigation?.tabs ?? []
const navbar = config.navbar
const navbarLinks = navbar?.links ?? header?.links ?? []
const primary = navbar?.primary ?? (header?.cta ? { type: 'button' as const, label: header.cta.label, href: header.cta.href } : undefined)
const showMintlifyNav = tabs.length > 0
const onLogoClick = (event: React.MouseEvent) => {
event.preventDefault()
window.history.pushState({}, '', logoHref)
window.dispatchEvent(new CustomEvent('aiui:navigate', { detail: { path: logoHref } }))
}
const onSearchClick = () => {
window.dispatchEvent(new CustomEvent('aiui:search-open'))
}
return (
<header className="sticky top-0 z-50 border-b border-border/50 bg-background/80 backdrop-blur-xl supports-[backdrop-filter]:bg-background/60">
<div className="max-w-screen-2xl mx-auto flex h-16 items-center px-6 gap-4">
<header
className="sticky top-0 z-50 border-b border-border/40 bg-background/90 backdrop-blur-xl supports-[backdrop-filter]:bg-background/75"
data-aiui-header-tabs={showMintlifyNav ? 'true' : undefined}
>
<div className="flex h-14 items-center gap-4 px-4 lg:px-6">
{onMenuClick && (
<Button
type="button"
variant="ghost"
size="icon"
className="md:hidden shrink-0"
className="md:hidden shrink-0 -ml-1"
onClick={onMenuClick}
aria-label="Open navigation menu"
>
@@ -47,48 +75,97 @@ export function Header({
</Button>
)}
<a href={logoHref} className="flex items-center gap-3 group cursor-pointer min-w-0" onClick={(e) => {
e.preventDefault()
window.history.pushState({}, '', logoHref)
window.location.reload()
}}>
<a
href={logoHref}
className="flex items-center gap-2.5 group cursor-pointer shrink-0 min-w-0"
onClick={onLogoClick}
>
{logoSrc ? (
<img
src={logoSrc}
alt="Logo"
className="w-8 h-8 rounded-lg shadow-lg shadow-primary/20 group-hover:shadow-primary/40 transition-shadow object-contain"
className="h-7 w-7 rounded-md object-contain"
/>
) : (
<div className="w-8 h-8 rounded-lg bg-gradient-to-br from-primary/80 to-primary flex items-center justify-center shadow-lg shadow-primary/20 group-hover:shadow-primary/40 transition-shadow">
<span className="text-primary-foreground text-xs font-bold">AI</span>
<div className="h-7 w-7 rounded-md bg-gradient-to-br from-primary/80 to-primary flex items-center justify-center">
<span className="text-primary-foreground text-[10px] font-bold">AI</span>
</div>
)}
<span className="font-semibold text-lg tracking-tight truncate">{header?.logoText || config.site?.title || 'PraisonAIUI'}</span>
<span className="font-semibold text-[15px] tracking-tight truncate hidden sm:inline">{logoText}</span>
</a>
<nav className="hidden md:flex items-center gap-1 flex-1">
{header?.links?.map((link) => (
{showMintlifyNav && (
<nav className="hidden md:flex items-center gap-1 ml-2" aria-label="Primary docs sections">
{tabs.map((tab, index) => (
<button
key={tab.tab}
type="button"
onClick={() => onTabChange?.(index)}
className={`px-3 py-1.5 text-sm rounded-md transition-colors ${index === activeTabIndex
? 'text-foreground font-medium'
: 'text-muted-foreground hover:text-foreground'
}`}
>
{tab.tab}
</button>
))}
</nav>
)}
{!showMintlifyNav && (
<nav className="hidden md:flex items-center gap-1 flex-1 ml-2">
{navbarLinks.map((link) => (
<a
key={link.href}
href={link.href}
className="px-3 py-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors rounded-md hover:bg-muted/50"
>
{link.label}
</a>
))}
</nav>
)}
<div className="flex-1 min-w-0" />
{config.search?.enabled !== false && showMintlifyNav && (
<button
type="button"
onClick={onSearchClick}
className="hidden sm:flex items-center gap-2 h-9 w-full max-w-[220px] px-3 text-sm text-muted-foreground border border-border/60 rounded-lg bg-muted/30 hover:bg-muted/50 transition-colors"
aria-label="Search documentation"
>
<Search className="h-4 w-4 shrink-0" />
<span className="flex-1 text-left truncate">Search...</span>
<kbd className="hidden lg:inline text-[10px] font-medium text-muted-foreground/80 border border-border/60 rounded px-1.5 py-0.5">⌘K</kbd>
</button>
)}
<div className="flex items-center gap-1.5 shrink-0">
{showMintlifyNav && navbarLinks.map((link) => (
<a
key={link.href}
href={link.href}
className="px-3 py-2 text-sm text-muted-foreground hover:text-foreground transition-colors rounded-md hover:bg-muted/50"
className="hidden lg:inline-flex px-3 py-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors"
>
{link.label}
</a>
))}
</nav>
<div className="flex items-center gap-2 ml-auto">
<ThemeToggle />
<LocaleSwitcher />
{header?.cta && (
{primary && (
<a
href={header.cta.href}
className="inline-flex items-center justify-center rounded-md text-sm font-medium bg-primary text-primary-foreground shadow h-9 px-4 hover:bg-primary/90 transition-colors"
href={primary.href}
target={primary.href.startsWith('http') ? '_blank' : undefined}
rel={primary.href.startsWith('http') ? 'noopener noreferrer' : undefined}
className="inline-flex items-center justify-center gap-1.5 rounded-lg text-sm font-medium bg-primary text-primary-foreground h-9 px-3.5 hover:bg-primary/90 transition-colors"
>
{header.cta.label}
{primary.type === 'github' && <Github className="h-4 w-4" />}
{primary.label ?? (primary.type === 'github' ? 'GitHub' : 'Get started')}
</a>
)}
<ThemeToggle />
<LocaleSwitcher />
</div>
</div>
</header>
+19 -15
View File
@@ -1,6 +1,6 @@
// Sidebar component — navigation tree
// Sidebar component — Mintlify-style navigation tree
import { ChevronRight } from 'lucide-react'
import { ScrollArea } from '@/components/ui/scroll-area'
import { Separator } from '@/components/ui/separator'
import {
Sheet,
SheetContent,
@@ -23,11 +23,11 @@ export function NavTree({ nav, activeItem, onItemClick }: NavTreeProps) {
if (hasChildren) {
return (
<div key={item.title + (item.path || '')}>
<div className="flex items-center gap-2 px-3 py-1.5 text-xs font-semibold text-muted-foreground/70 uppercase tracking-widest mt-4 first:mt-0">
<div key={item.title + (item.path || '')} className="mb-4">
<div className="flex items-center gap-1 px-3 py-1.5 text-[11px] font-semibold text-muted-foreground/80 uppercase tracking-wider">
{item.title}
</div>
<div className="space-y-0.5">
<div className="space-y-0.5 mt-1">
{item.children!.map((child) => renderItem(child, depth + 1))}
</div>
</div>
@@ -45,19 +45,22 @@ export function NavTree({ nav, activeItem, onItemClick }: NavTreeProps) {
event.preventDefault()
onItemClick(item)
}}
className={`block w-full text-left px-3 py-1.5 text-sm rounded-md transition-all duration-150 ${isActive
? 'bg-primary/10 text-primary font-medium border-l-2 border-primary'
: 'text-muted-foreground hover:text-foreground hover:bg-muted/50'
className={`group flex items-center gap-1.5 w-full text-left px-3 py-1.5 text-[13px] rounded-md transition-colors ${isActive
? 'text-primary font-medium bg-primary/10'
: 'text-muted-foreground hover:text-foreground hover:bg-muted/40'
}`}
style={{ paddingLeft: `${12 + depth * 12}px` }}
style={{ paddingLeft: `${12 + depth * 10}px` }}
>
{item.title}
{depth > 0 && (
<ChevronRight className={`h-3 w-3 shrink-0 opacity-0 group-hover:opacity-40 ${isActive ? 'opacity-60 text-primary' : ''}`} />
)}
<span className="truncate">{item.title}</span>
</a>
)
}
return (
<nav className="space-y-0.5">
<nav className="space-y-0.5 pb-6">
{nav.items?.map((group) => renderItem(group))}
</nav>
)
@@ -69,10 +72,11 @@ interface SidebarProps extends NavTreeProps {
export function Sidebar({ nav, activeItem, onItemClick }: SidebarProps) {
return (
<aside className="w-64 min-w-[16rem] border-r border-border/50 hidden md:block">
<ScrollArea className="h-[calc(100vh-4rem)] py-4 px-2">
<NavTree nav={nav} activeItem={activeItem} onItemClick={onItemClick} />
<Separator className="my-4" />
<aside className="docs-sidebar w-[17rem] min-w-[17rem] shrink-0 hidden md:block border-r border-border/40">
<ScrollArea className="h-[calc(100vh-3.5rem)] sticky top-14">
<div className="py-5 px-2">
<NavTree nav={nav} activeItem={activeItem} onItemClick={onItemClick} />
</div>
</ScrollArea>
</aside>
)
+57 -23
View File
@@ -22,6 +22,7 @@ function collectHeadings(): TocHeading[] {
function usePageHeadings(selectedItem: NavItem | null) {
const [headings, setHeadings] = useState<TocHeading[]>([])
const [activeId, setActiveId] = useState('')
const refreshHeadings = useCallback(() => {
setHeadings(collectHeadings())
@@ -37,39 +38,72 @@ function usePageHeadings(selectedItem: NavItem | null) {
}
}, [selectedItem, refreshHeadings])
return headings
useEffect(() => {
if (!headings.length) return
const observer = new IntersectionObserver(
(entries) => {
const visible = entries
.filter((entry) => entry.isIntersecting)
.sort((a, b) => a.boundingClientRect.top - b.boundingClientRect.top)
if (visible[0]?.target.id) {
setActiveId(visible[0].target.id)
}
},
{ rootMargin: '-20% 0px -70% 0px', threshold: 0 },
)
for (const heading of headings) {
const el = document.getElementById(heading.id)
if (el) observer.observe(el)
}
return () => observer.disconnect()
}, [headings])
return { headings, activeId }
}
function TocLinks({ headings }: { headings: TocHeading[] }) {
function TocLinks({ headings, activeId }: { headings: TocHeading[]; activeId: string }) {
if (headings.length === 0) {
return <p className="text-sm text-muted-foreground">No sections on this page.</p>
}
return (
<div className="space-y-2">
{headings.map((heading) => (
<a
key={heading.id}
href={`#${heading.id}`}
className={`flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors ${heading.level === 3 ? 'pl-3 text-sm' : heading.level === 4 ? 'pl-6 text-sm' : 'font-medium'}`}
>
<span className="w-1 h-1 rounded-full bg-muted-foreground/30 shrink-0" />
{heading.text}
</a>
))}
<div className="space-y-2.5">
{headings.map((heading) => {
const isActive = heading.id === activeId
return (
<a
key={heading.id}
href={`#${heading.id}`}
className={`flex items-start gap-2 text-[13px] leading-snug transition-colors ${heading.level === 3 ? 'pl-3' : heading.level === 4 ? 'pl-5' : ''
} ${isActive
? 'text-primary font-medium'
: 'text-muted-foreground hover:text-foreground'
}`}
>
<span
className={`mt-[0.45rem] h-1.5 w-1.5 shrink-0 rounded-full ${isActive ? 'bg-primary' : 'bg-muted-foreground/30'
}`}
/>
<span>{heading.text}</span>
</a>
)
})}
</div>
)
}
export function MobileToc({ selectedItem }: { selectedItem: NavItem | null }) {
const headings = usePageHeadings(selectedItem)
const { headings, activeId } = usePageHeadings(selectedItem)
if (!selectedItem || headings.length === 0) return null
return (
<details className="lg:hidden border border-border rounded-lg mb-6 px-4 py-3 bg-muted/20">
<details className="lg:hidden border border-border/60 rounded-lg mb-6 px-4 py-3 bg-muted/20">
<summary className="text-sm font-medium cursor-pointer">On this page</summary>
<nav className="mt-3">
<TocLinks headings={headings} />
<TocLinks headings={headings} activeId={activeId} />
</nav>
</details>
)
@@ -84,7 +118,7 @@ export function Toc({
zones?: ZonesConfig
showToc?: boolean
}) {
const headings = usePageHeadings(selectedItem)
const { headings, activeId } = usePageHeadings(selectedItem)
const rightSidebarWidgets = zones?.rightSidebar || []
if (!showToc && rightSidebarWidgets.filter((w) => w.type !== 'Toc').length === 0) {
@@ -92,21 +126,21 @@ export function Toc({
}
return (
<aside className="w-64 hidden lg:block border-l border-border/50">
<div className="sticky top-20 px-4 py-6 space-y-4">
<aside className="docs-toc w-[16rem] min-w-[16rem] shrink-0 hidden lg:block">
<div className="sticky top-14 h-[calc(100vh-3.5rem)] overflow-y-auto px-4 py-6">
{showToc && (
<div>
<h4 className="text-xs font-semibold text-muted-foreground/70 uppercase tracking-widest mb-4">
<h4 className="text-[11px] font-semibold text-muted-foreground/80 uppercase tracking-wider mb-4">
On this page
</h4>
<nav className="text-sm">
<TocLinks headings={headings} />
<nav>
<TocLinks headings={headings} activeId={activeId} />
</nav>
</div>
)}
{rightSidebarWidgets.filter((w) => w.type !== 'Toc').length > 0 && (
<div className="pt-4 border-t border-border/50">
<div className="pt-4 mt-4 border-t border-border/40">
<ZoneWidgets widgets={rightSidebarWidgets.filter((w) => w.type !== 'Toc')} />
</div>
)}
+89
View File
@@ -0,0 +1,89 @@
import type { NavItem, NavTabConfig } from '../types'
function sectionTitle(item: NavItem): string {
return item.title.trim().toLowerCase()
}
function collectPaths(item: NavItem): string[] {
const paths: string[] = []
if (item.path) paths.push(item.path.toLowerCase())
for (const child of item.children ?? []) {
paths.push(...collectPaths(child))
}
return paths
}
function pathMatchesPage(docPath: string, page: string): boolean {
const normalizedPage = page.replace(/^\/+/, '').toLowerCase()
const normalizedPath = docPath.replace(/\/+$/, '').toLowerCase()
if (normalizedPage === 'index') {
return normalizedPath.endsWith('/index') || normalizedPath === '/docs'
}
const suffix = `/${normalizedPage}`
return normalizedPath.endsWith(suffix) || normalizedPath.endsWith(`${suffix}/index`)
}
/** Whether a sidebar group belongs to the given navigation tab (from topnav plugin logic). */
export function navItemBelongsToTab(item: NavItem, tab: NavTabConfig): boolean {
if (!tab.groups?.length) return false
const header = sectionTitle(item)
const paths = collectPaths(item)
for (const grp of tab.groups) {
const groupName = grp.group.toLowerCase()
if (header === groupName) return true
if (grp.prefix) {
const prefix = grp.prefix.toLowerCase()
if (header === prefix || header === prefix.replace(/-/g, ' ')) return true
const prefixPath = `/docs/${prefix}`
if (paths.some((path) => path === prefixPath || path.startsWith(`${prefixPath}/`))) {
return true
}
}
if (grp.pages?.some((page) => paths.some((path) => pathMatchesPage(path, page)))) {
return true
}
if (!item.children?.length && grp.pages?.some((page) => {
const slug = page.split('/').pop()?.replace(/-/g, ' ') ?? ''
return header === slug || header === page.toLowerCase()
})) {
return true
}
}
return false
}
/** Pick the active tab index from the current URL path. */
export function detectActiveTabIndex(tabs: NavTabConfig[], path: string): number {
const normalized = path.toLowerCase()
let bestMatch = -1
let bestMatchLen = 0
for (let i = 0; i < tabs.length; i++) {
const tab = tabs[i]
for (const grp of tab.groups ?? []) {
if (!grp.prefix) continue
const needle = `/${grp.prefix.toLowerCase()}/`
if (normalized.includes(needle) && needle.length > bestMatchLen) {
bestMatch = i
bestMatchLen = needle.length
}
}
}
if (bestMatch >= 0) return bestMatch
return 0
}
export function filterNavByTab(items: NavItem[], tab: NavTabConfig | undefined): NavItem[] {
if (!tab) return items
return items.filter((item) => navItemBelongsToTab(item, tab))
}
+9
View File
@@ -163,6 +163,15 @@
rx: 8;
ry: 8;
}
/* Mintlify-style docs shell */
.docs-shell {
width: 100%;
}
.docs-main-inner {
min-height: calc(100vh - 3.5rem);
}
}
/* Prose readability — must beat @tailwindcss/typography defaults (unlayered) */
+45
View File
@@ -51,6 +51,44 @@ export interface LogoConfig {
href?: string
}
export interface NavTabGroupConfig {
group: string
icon?: string
prefix?: string
pages?: string[]
}
export interface NavTabConfig {
tab: string
url?: string
groups?: NavTabGroupConfig[]
}
export interface NavigationConfig {
tabs?: NavTabConfig[]
}
export interface NavbarLinkConfig {
label: string
href: string
}
export interface NavbarPrimaryConfig {
type?: 'button' | 'github'
label?: string
href: string
}
export interface NavbarConfig {
primary?: NavbarPrimaryConfig
links?: NavbarLinkConfig[]
}
export interface SearchConfig {
enabled?: boolean
provider?: string
}
export interface WidgetConfig {
type: string
props?: Record<string, unknown>
@@ -93,6 +131,13 @@ export interface UIConfig {
i18n?: I18nConfig
a11y?: A11yConfig
logo?: LogoConfig
navigation?: NavigationConfig
navbar?: NavbarConfig
search?: SearchConfig
footer?: {
socials?: Record<string, string>
links?: { header: string; items: NavbarLinkConfig[] }[]
}
}
export interface DocsNav {
@@ -1 +1 @@
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-50:oklch(98% .016 73.684);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-400:oklch(75% .183 55.934);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-800:oklch(47% .157 37.304);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-800:oklch(47.6% .114 61.907);--color-green-50:oklch(98.2% .018 155.826);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-400:oklch(76.5% .177 163.223);--color-cyan-400:oklch(78.9% .154 211.53);--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-violet-500:oklch(60.6% .25 292.717);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-pink-400:oklch(71.8% .202 349.761);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-2xl:96rem;--contLine truncated
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-50:oklch(98% .016 73.684);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-400:oklch(75% .183 55.934);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-800:oklch(47% .157 37.304);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-800:oklch(47.6% .114 61.907);--color-green-50:oklch(98.2% .018 155.826);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-400:oklch(76.5% .177 163.223);--color-cyan-400:oklch(78.9% .154 211.53);--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-violet-500:oklch(60.6% .25 292.717);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-pink-400:oklch(71.8% .202 349.761);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-2xl:96rem;--contLine truncated
@@ -1,18 +1,18 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index3.js","assets/common-types.js","assets/index2.js"])))=>i.map(i=>d[i]);
function LL(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(a,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mf={exports:{}},ys={};var AA;function ML(){if(AA)return ys;AA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,o,s){var u=null;if(s!==void 0&&(u=""+s),o.key!==void 0&&(u=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:a,key:u,ref:o!==void 0?o:null,props:s}}return ys.Fragment=t,ys.jsx=n,ys.jsxs=n,ys}var kA;function jL(){return kA||(kA=1,Mf.exports=ML()),Mf.exports}var p=jL(),jf={exports:{}},Ce={};var _A;function UL(){if(_A)return Ce;_A=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),S=Symbol.iterator;function v(j){return j===null||typeof j!="object"?null:(j=S&&j[S]||j["@@iterator"],typeof j=="function"?j:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,k={};function A(j,M,I){this.props=j,this.context=M,this.refs=k,this.updater=I||x}A.prototype.isReactComponent={},A.prototype.setState=function(j,M){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,M,"setState")},A.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function _(){}_.prototype=A.prototype;function N(j,M,I){this.props=j,this.context=M,this.refs=k,this.updater=I||x}var L=N.prototype=new _;L.constructor=N,w(L,A.prototype),L.isPureReactComponent=!0;var U=Array.isArray;function D(){}var B={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function K(j,M,I){var oe=I.ref;return{$$typeof:e,type:j,key:M,ref:oe!==void 0?oe:null,props:I}}function F(j,M){return K(j.type,M,j.props)}function W(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function q(j){var M={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(I){return M[I]})}var re=/\/+/g;function ae(j,M){return typeof j=="object"&&j!==null&&j.key!=null?q(""+j.key):M.toString(36)}function J(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(D,D):(j.status="pending",j.then(function(M){j.status==="pending"&&(j.status="fulfilled",j.value=M)},function(M){j.status==="pending"&&(j.status="rejected",j.reason=M)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function P(j,M,I,oe,te){var ie=typeof j;(ie==="undefined"||ie==="boolean")&&(j=null);var se=!1;if(j===null)se=!0;else switch(ie){case"bigint":case"string":case"number":se=!0;break;case"object":switch(j.$$typeof){case e:case t:se=!0;break;case h:return se=j._init,P(se(j._payload),M,I,oe,te)}}if(se)return te=te(j),se=oe===""?"."+ae(j,0):oe,U(te)?(I="",se!=null&&(I=se.replace(re,"$&/")+"/"),P(te,M,I,"",function(Te){return Te})):te!=null&&(W(te)&&(te=F(te,I+(te.key==null||j&&j.key===te.key?"":(""+te.key).replace(re,"$&/")+"/")+se)),M.push(te)),1;se=0;var he=oe===""?".":oe+":";if(U(j))for(var pe=0;pe<j.length;pe++)oe=j[pe],ie=he+ae(oe,pe),se+=P(oe,M,I,ie,te);else if(pe=v(j),typeof pe=="function")for(j=pe.call(j),pe=0;!(oe=j.next()).done;)oe=oe.value,ie=he+ae(oe,pe++),se+=P(oe,M,I,ie,te);else if(ie==="object"){if(typeof j.then=="function")return P(J(j),M,I,oe,te);throw M=String(j),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":M)+"). If you meant to render a collection of children, use anLine truncated
function jL(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(a,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jf={exports:{}},bs={};var AA;function UL(){if(AA)return bs;AA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,o,s){var u=null;if(s!==void 0&&(u=""+s),o.key!==void 0&&(u=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:a,key:u,ref:o!==void 0?o:null,props:s}}return bs.Fragment=t,bs.jsx=n,bs.jsxs=n,bs}var kA;function FL(){return kA||(kA=1,jf.exports=UL()),jf.exports}var p=FL(),Uf={exports:{}},Re={};var _A;function BL(){if(_A)return Re;_A=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),S=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=S&&M[S]||M["@@iterator"],typeof M=="function"?M:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,k={};function A(M,j,C){this.props=M,this.context=j,this.refs=k,this.updater=C||x}A.prototype.isReactComponent={},A.prototype.setState=function(M,j){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,j,"setState")},A.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function _(){}_.prototype=A.prototype;function N(M,j,C){this.props=M,this.context=j,this.refs=k,this.updater=C||x}var L=N.prototype=new _;L.constructor=N,w(L,A.prototype),L.isPureReactComponent=!0;var U=Array.isArray;function D(){}var P={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function Y(M,j,C){var J=C.ref;return{$$typeof:e,type:M,key:j,ref:J!==void 0?J:null,props:C}}function B(M,j){return Y(M.type,j,M.props)}function V(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function X(M){var j={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(C){return j[C]})}var ne=/\/+/g;function ie(M,j){return typeof M=="object"&&M!==null&&M.key!=null?X(""+M.key):j.toString(36)}function ee(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(D,D):(M.status="pending",M.then(function(j){M.status==="pending"&&(M.status="fulfilled",M.value=j)},function(j){M.status==="pending"&&(M.status="rejected",M.reason=j)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function F(M,j,C,J,Q){var re=typeof M;(re==="undefined"||re==="boolean")&&(M=null);var oe=!1;if(M===null)oe=!0;else switch(re){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(M.$$typeof){case e:case t:oe=!0;break;case h:return oe=M._init,F(oe(M._payload),j,C,J,Q)}}if(oe)return Q=Q(M),oe=J===""?"."+ie(M,0):J,U(Q)?(C="",oe!=null&&(C=oe.replace(ne,"$&/")+"/"),F(Q,j,C,"",function(ve){return ve})):Q!=null&&(V(Q)&&(Q=B(Q,C+(Q.key==null||M&&M.key===Q.key?"":(""+Q.key).replace(ne,"$&/")+"/")+oe)),j.push(Q)),1;oe=0;var he=J===""?".":J+":";if(U(M))for(var pe=0;pe<M.length;pe++)J=M[pe],re=he+ie(J,pe),oe+=F(J,j,C,re,Q);else if(pe=v(M),typeof pe=="function")for(M=pe.call(M),pe=0;!(J=M.next()).done;)J=J.value,re=he+ie(J,pe++),oe+=F(J,j,C,re,Q);else if(re==="object"){if(typeof M.then=="function")return F(ee(M),j,C,J,Q);throw j=String(M),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return oe}functLine truncated
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Le+r+at}var Xn=!1;function Zn(r,i){if(!r||Xn)return"";Xn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(i){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(ne){var Q=ne}Reflect.construct(r,[],de)}else{try{de.call()}catch(ne){Q=ne}r.call(de.prototype)}}else{try{throw Error()}catch(ne){Q=ne}(de=r())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(ne){if(ne&&Q&&typeof ne.stack=="string")return[ne.stack,Q.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=d.DetermineComponentFrameRoot(),T=y[0],R=y[1];if(T&&R){var z=T.split(`
`),Z=R.split(`
`);for(b=d=0;d<z.length&&!z[d].includes("DetermineComponentFrameRoot");)d++;for(;b<Z.length&&!Z[b].includes("DetermineComponentFrameRoot");)b++;if(d===z.length||b===Z.length)for(d=z.length-1,b=Z.length-1;1<=d&&0<=b&&z[d]!==Z[b];)b--;for(;1<=d&&0<=b;d--,b--)if(z[d]!==Z[b]){if(d!==1||b!==1)do if(d--,b--,0>b||z[d]!==Z[b]){var le=`
`+z[d].replace(" at new "," at ");return r.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",r.displayName)),le}while(1<=d&&0<=b);break}}}finally{Xn=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?ut(l):""}function Lr(r,i){switch(r.tag){case 26:case 27:case 5:return ut(r.type);case 16:return ut("Lazy");case 13:return r.child!==i&&i!==null?ut("Suspense Fallback"):ut("Suspense");case 19:return ut("SuspenseList");case 0:case 15:return Zn(r.type,!1);case 11:return Zn(r.type.render,!1);case 1:return Zn(r.type,!0);case 31:return ut("Activity");default:return""}}function ml(r){try{var i="",l=null;do i+=Lr(r,l),l=r,r=r.return;while(r);return i}catch(d){return`
`+je+r+qe}var Ie=!1;function kt(r,i){if(!r||Ie)return"";Ie=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(i){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(ae){var Z=ae}Reflect.construct(r,[],de)}else{try{de.call()}catch(ae){Z=ae}r.call(de.prototype)}}else{try{throw Error()}catch(ae){Z=ae}(de=r())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(ae){if(ae&&Z&&typeof ae.stack=="string")return[ae.stack,Z.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=d.DetermineComponentFrameRoot(),T=y[0],R=y[1];if(T&&R){var z=T.split(`
`),K=R.split(`
`);for(b=d=0;d<z.length&&!z[d].includes("DetermineComponentFrameRoot");)d++;for(;b<K.length&&!K[b].includes("DetermineComponentFrameRoot");)b++;if(d===z.length||b===K.length)for(d=z.length-1,b=K.length-1;1<=d&&0<=b&&z[d]!==K[b];)b--;for(;1<=d&&0<=b;d--,b--)if(z[d]!==K[b]){if(d!==1||b!==1)do if(d--,b--,0>b||z[d]!==K[b]){var le=`
`+z[d].replace(" at new "," at ");return r.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",r.displayName)),le}while(1<=d&&0<=b);break}}}finally{Ie=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?Qe(l):""}function cn(r,i){switch(r.tag){case 26:case 27:case 5:return Qe(r.type);case 16:return Qe("Lazy");case 13:return r.child!==i&&i!==null?Qe("Suspense Fallback"):Qe("Suspense");case 19:return Qe("SuspenseList");case 0:case 15:return kt(r.type,!1);case 11:return kt(r.type.render,!1);case 1:return kt(r.type,!0);case 31:return Qe("Activity");default:return""}}function ml(r){try{var i="",l=null;do i+=cn(r,l),l=r,r=r.return;while(r);return i}catch(d){return`
Error generating stack: `+d.message+`
`+d.stack}}var ai=Object.prototype.hasOwnProperty,ii=e.unstable_scheduleCallback,ko=e.unstable_cancelCallback,vd=e.unstable_shouldYield,Ed=e.unstable_requestPaint,$t=e.unstable_now,Sd=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,me=e.unstable_UserBlockingPriority,Re=e.unstable_NormalPriority,je=e.unstable_LowPriority,We=e.unstable_IdlePriority,ln=e.log,cr=e.unstable_setDisableYieldValue,Gt=null,xt=null;function Xt(r){if(typeof ln=="function"&&cr(r),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Gt,r)}catch{}}var tt=Math.clz32?Math.clz32:E1,Mr=Math.log,jn=Math.LN2;function E1(r){return r>>>=0,r===0?32:31-(Mr(r)/jn|0)|0}var hl=256,bl=262144,yl=4194304;function Ta(r){var i=r&42;if(i!==0)return i;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function vl(r,i,l){var d=r.pendingLanes;if(d===0)return 0;var b=0,y=r.suspendedLanes,T=r.pingedLanes;r=r.warmLanes;var R=d&134217727;return R!==0?(d=R&~y,d!==0?b=Ta(d):(T&=R,T!==0?b=Ta(T):l||(l=R&~r,l!==0&&(b=Ta(l))))):(R=d&~y,R!==0?b=Ta(R):T!==0?b=Ta(T):l||(l=d&~r,l!==0&&(b=Ta(l)))),b===0?0:i!==0&&i!==b&&(i&y)===0&&(y=b&-b,l=i&-i,y>=l||y===32&&(l&4194048)!==0)?i:b}function _o(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function S1(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function RS(){var r=yl;return yl<<=1,(yl&62914560)===0&&(yl=4194304),r}function xd(r){for(var i=[],l=0;31>l;l++)i.push(r);return i}function No(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function x1(r,i,l,d,b,y){var T=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var R=r.entanglements,z=r.expirationTimes,Z=r.hiddenUpdates;for(l=T&~l;0<l;){var le=31-tt(l),de=1<<le;R[le]=0,z[le]=-1;var Q=Z[le];if(Q!==null)for(Z[le]=null,le=0;le<Q.length;le++){var ne=Q[le];ne!==null&&(ne.lane&=-536870913)}l&=~de}d!==0&&CS(r,d,0),y!==0&&b===0&&r.tag!==0&&(r.suspendedLanes|=y&~(T&~i))}function CS(r,i,l){r.pendingLanes|=i,r.suspendedLanes&=~i;var d=31-tt(i);r.entangledLanes|=i,r.entanglements[d]=r.entanglements[d]|1073741824|l&261930}function IS(r,i){var l=r.entangledLanes|=i;for(r=r.entanglements;l;){var d=31-tt(l),b=1<<d;b&i|r[d]&i&&(r[d]|=i),l&=~b}}function OS(r,i){var l=i&-i;return l=(l&42)!==0?1:wd(l),(l&(r.suspendedLanes|i))!==0?0:l}function wd(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Td(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function DS(){var r=G.p;return r!==0?r:(r=window.event,r===void 0?32:yA(r.type))}function LS(r,i){var l=G.p;try{return G.p=r,i()}finally{G.p=l}}var jr=Math.random().toString(36).slice(2),Ct="__reactFiber$"+jr,Zt="__reactProps$"+jr,oi="__reactContainer$"+jr,Ad="__reactEvents$"+jr,w1="__reactListeners$"+jr,T1="__reactHandles$"+jr,MS="__reactResources$"+jr,Ro="__reactMarker$"+jr;function kd(r){delete r[Ct],delete r[Zt],delete r[Ad],delete r[w1],delete r[T1]}function si(r){var i=r[Ct];if(i)return i;for(var l=r.parentNode;l;){if(i=l[oi]||l[Ct]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(r=nA(r);r!==null;){if(l=r[Ct])return l;r=nA(r)}return i}r=l,l=r.parentNode}return null}function li(r){if(r=r[Ct]||r[oi]){var i=r.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return r}return null}function Co(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(a(33))}function ui(r){var i=r[MS];return i||(i=r[MS]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function At(r){r[Ro]=!0}var jS=new Set,US={};function Aa(r,i){ci(r,i),ci(r+"Capture",i)}function ci(r,i){for(US[r]=i,r=0;r<i.length;r++)jS.add(i[r])}var A1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u20 Line truncated
`).replace(nL,"")}function qT(r,i){return i=VT(i),VT(r)===i}function Je(r,i,l,d,b,y){switch(l){case"children":typeof d=="string"?i==="body"||i==="textarea"&&d===""||pi(r,d):(typeof d=="number"||typeof d=="bigint")&&i!=="body"&&pi(r,""+d);break;case"className":Sl(r,"class",d);break;case"tabIndex":Sl(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Sl(r,l,d);break;case"style":qS(r,d,y);break;case"data":if(i!=="object"){Sl(r,"data",d);break}case"src":case"href":if(d===""&&(i!=="a"||l!=="href")){r.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=wl(""+d),r.setAttribute(l,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(l==="formAction"?(i!=="input"&&Je(r,i,"name",b.name,b,null),Je(r,i,"formEncType",b.formEncType,b,null),Je(r,i,"formMethod",b.formMethod,b,null),Je(r,i,"formTarget",b.formTarget,b,null)):(Je(r,i,"encType",b.encType,b,null),Je(r,i,"method",b.method,b,null),Je(r,i,"target",b.target,b,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=wl(""+d),r.setAttribute(l,d);break;case"onClick":d!=null&&(r.onclick=pr);break;case"onScroll":d!=null&&Fe("scroll",r);break;case"onScrollEnd":d!=null&&Fe("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(a(61));if(l=d.__html,l!=null){if(b.children!=null)throw Error(a(60));r.innerHTML=l}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){r.removeAttribute("xlink:href");break}l=wl(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,""+d):r.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":d===!0?r.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,d):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(l,d):r.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(l):r.setAttribute(l,d);break;case"popover":Fe("beforetoggle",r),Fe("toggle",r),El(r,"popover",d);break;case"xlinkActuate":dr(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":dr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":dr(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":dr(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":dr(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":dr(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":dr(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":dr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":dr(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":El(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=C1.get(l)||l,El(r,l,d))}}function bf(r,i,l,d,b,y){switch(l){case"style":qS(r,d,y);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(a(61));if(l=d.__html,l!=null){if(b.children!=null)throw Error(a(60));r.innerHTML=l}}break;case"children":typeof d=="string"?pi(r,d):(typeof d=="number"||typeof d=="bigint")&&pi(r,""+d);break;case"onScroll":d!=null&&Fe("scroll",r);break;case"onScrollEnd":d!=null&&Fe("scrollend",r);break;case"onClick":d!=null&&(r.onclick=pr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne Line truncated
.`.concat(zU,` {
`+d.stack}}var ai=Object.prototype.hasOwnProperty,ii=e.unstable_scheduleCallback,Ao=e.unstable_cancelCallback,Ed=e.unstable_shouldYield,Sd=e.unstable_requestPaint,Ht=e.unstable_now,xd=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,me=e.unstable_UserBlockingPriority,Ne=e.unstable_NormalPriority,Ue=e.unstable_LowPriority,Xe=e.unstable_IdlePriority,dn=e.log,dr=e.unstable_setDisableYieldValue,Vt=null,wt=null;function Qt(r){if(typeof dn=="function"&&dr(r),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(Vt,r)}catch{}}var at=Math.clz32?Math.clz32:x1,Mr=Math.log,Bn=Math.LN2;function x1(r){return r>>>=0,r===0?32:31-(Mr(r)/Bn|0)|0}var hl=256,bl=262144,yl=4194304;function Ta(r){var i=r&42;if(i!==0)return i;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function vl(r,i,l){var d=r.pendingLanes;if(d===0)return 0;var b=0,y=r.suspendedLanes,T=r.pingedLanes;r=r.warmLanes;var R=d&134217727;return R!==0?(d=R&~y,d!==0?b=Ta(d):(T&=R,T!==0?b=Ta(T):l||(l=R&~r,l!==0&&(b=Ta(l))))):(R=d&~y,R!==0?b=Ta(R):T!==0?b=Ta(T):l||(l=d&~r,l!==0&&(b=Ta(l)))),b===0?0:i!==0&&i!==b&&(i&y)===0&&(y=b&-b,l=i&-i,y>=l||y===32&&(l&4194048)!==0)?i:b}function ko(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function w1(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function CS(){var r=yl;return yl<<=1,(yl&62914560)===0&&(yl=4194304),r}function wd(r){for(var i=[],l=0;31>l;l++)i.push(r);return i}function _o(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function T1(r,i,l,d,b,y){var T=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var R=r.entanglements,z=r.expirationTimes,K=r.hiddenUpdates;for(l=T&~l;0<l;){var le=31-at(l),de=1<<le;R[le]=0,z[le]=-1;var Z=K[le];if(Z!==null)for(K[le]=null,le=0;le<Z.length;le++){var ae=Z[le];ae!==null&&(ae.lane&=-536870913)}l&=~de}d!==0&&RS(r,d,0),y!==0&&b===0&&r.tag!==0&&(r.suspendedLanes|=y&~(T&~i))}function RS(r,i,l){r.pendingLanes|=i,r.suspendedLanes&=~i;var d=31-at(i);r.entangledLanes|=i,r.entanglements[d]=r.entanglements[d]|1073741824|l&261930}function IS(r,i){var l=r.entangledLanes|=i;for(r=r.entanglements;l;){var d=31-at(l),b=1<<d;b&i|r[d]&i&&(r[d]|=i),l&=~b}}function OS(r,i){var l=i&-i;return l=(l&42)!==0?1:Td(l),(l&(r.suspendedLanes|i))!==0?0:l}function Td(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Ad(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function DS(){var r=q.p;return r!==0?r:(r=window.event,r===void 0?32:yA(r.type))}function LS(r,i){var l=q.p;try{return q.p=r,i()}finally{q.p=l}}var jr=Math.random().toString(36).slice(2),Ot="__reactFiber$"+jr,Jt="__reactProps$"+jr,oi="__reactContainer$"+jr,kd="__reactEvents$"+jr,A1="__reactListeners$"+jr,k1="__reactHandles$"+jr,MS="__reactResources$"+jr,No="__reactMarker$"+jr;function _d(r){delete r[Ot],delete r[Jt],delete r[kd],delete r[A1],delete r[k1]}function si(r){var i=r[Ot];if(i)return i;for(var l=r.parentNode;l;){if(i=l[oi]||l[Ot]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(r=nA(r);r!==null;){if(l=r[Ot])return l;r=nA(r)}return i}r=l,l=r.parentNode}return null}function li(r){if(r=r[Ot]||r[oi]){var i=r.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return r}return null}function Co(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(a(33))}function ui(r){var i=r[MS];return i||(i=r[MS]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function _t(r){r[No]=!0}var jS=new Set,US={};function Aa(r,i){ci(r,i),ci(r+"Capture",i)}function ci(r,i){for(US[r]=i,r=0;r<i.length;r++)jS.add(i[r])}var _1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u20 Line truncated
`).replace(aL,"")}function qT(r,i){return i=VT(i),VT(r)===i}function nt(r,i,l,d,b,y){switch(l){case"children":typeof d=="string"?i==="body"||i==="textarea"&&d===""||pi(r,d):(typeof d=="number"||typeof d=="bigint")&&i!=="body"&&pi(r,""+d);break;case"className":Sl(r,"class",d);break;case"tabIndex":Sl(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Sl(r,l,d);break;case"style":qS(r,d,y);break;case"data":if(i!=="object"){Sl(r,"data",d);break}case"src":case"href":if(d===""&&(i!=="a"||l!=="href")){r.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=wl(""+d),r.setAttribute(l,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(l==="formAction"?(i!=="input"&&nt(r,i,"name",b.name,b,null),nt(r,i,"formEncType",b.formEncType,b,null),nt(r,i,"formMethod",b.formMethod,b,null),nt(r,i,"formTarget",b.formTarget,b,null)):(nt(r,i,"encType",b.encType,b,null),nt(r,i,"method",b.method,b,null),nt(r,i,"target",b.target,b,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=wl(""+d),r.setAttribute(l,d);break;case"onClick":d!=null&&(r.onclick=fr);break;case"onScroll":d!=null&&Be("scroll",r);break;case"onScrollEnd":d!=null&&Be("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(a(61));if(l=d.__html,l!=null){if(b.children!=null)throw Error(a(60));r.innerHTML=l}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){r.removeAttribute("xlink:href");break}l=wl(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,""+d):r.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":d===!0?r.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,d):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(l,d):r.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(l):r.setAttribute(l,d);break;case"popover":Be("beforetoggle",r),Be("toggle",r),El(r,"popover",d);break;case"xlinkActuate":pr(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":pr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":pr(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":pr(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":pr(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":pr(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":pr(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":pr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":pr(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":El(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=O1.get(l)||l,El(r,l,d))}}function yf(r,i,l,d,b,y){switch(l){case"style":qS(r,d,y);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(a(61));if(l=d.__html,l!=null){if(b.children!=null)throw Error(a(60));r.innerHTML=l}}break;case"children":typeof d=="string"?pi(r,d):(typeof d=="number"||typeof d=="bigint")&&pi(r,""+d);break;case"onScroll":d!=null&&Be("scroll",r);break;case"onScrollEnd":d!=null&&Be("scrollend",r);break;case"onClick":d!=null&&(r.onclick=fr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne Line truncated
.`.concat(HU,` {
overflow: hidden `).concat(a,`;
padding-right: `).concat(c,"px ").concat(a,`;
}
body[`).concat(no,`] {
body[`).concat(to,`] {
overflow: hidden `).concat(a,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(a,";"),n==="margin"&&`
@@ -41,70 +41,70 @@ Error generating stack: `+d.message+`
margin-right: 0 `).concat(a,`;
}
body[`).concat(no,`] {
`).concat($U,": ").concat(c,`px;
body[`).concat(to,`] {
`).concat(VU,": ").concat(c,`px;
}
`)},fk=function(){var e=parseInt(document.body.getAttribute(no)||"0",10);return isFinite(e)?e:0},sF=function(){E.useEffect(function(){return document.body.setAttribute(no,(fk()+1).toString()),function(){var e=fk()-1;e<=0?document.body.removeAttribute(no):document.body.setAttribute(no,e.toString())}},[])},lF=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,o=a===void 0?"margin":a;sF();var s=E.useMemo(function(){return aF(o)},[o]);return E.createElement(iF,{styles:oF(s,!t,o,n?"":"!important")})},Og=!1;if(typeof window<"u")try{var Fu=Object.defineProperty({},"passive",{get:function(){return Og=!0,!0}});window.addEventListener("test",Fu,Fu),window.removeEventListener("test",Fu,Fu)}catch{Og=!1}var Vi=Og?{passive:!1}:!1,uF=function(e){return e.tagName==="TEXTAREA"},JN=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!uF(e)&&n[t]==="visible")},cF=function(e){return JN(e,"overflowY")},dF=function(e){return JN(e,"overflowX")},gk=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=eR(e,a);if(o){var s=tR(e,a),u=s[1],c=s[2];if(u>c)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},pF=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},fF=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},eR=function(e,t){return e==="v"?cF(t):dF(t)},tR=function(e,t){return e==="v"?pF(t):fF(t)},gF=function(e,t){return e==="h"&&t==="rtl"?-1:1},mF=function(e,t,n,a,o){var s=gF(e,window.getComputedStyle(t).direction),u=s*a,c=n.target,f=t.contains(c),g=!1,h=u>0,m=0,S=0;do{if(!c)break;var v=tR(e,c),x=v[0],w=v[1],k=v[2],A=w-k-s*x;(x||A)&&eR(e,c)&&(m+=A,S+=x);var _=c.parentNode;c=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(h&&Math.abs(m)<1||!h&&Math.abs(S)<1)&&(g=!0),g},Bu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mk=function(e){return[e.deltaX,e.deltaY]},hk=function(e){return e&&"current"in e?e.current:e},hF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bF=function(e){return`
`)},fk=function(){var e=parseInt(document.body.getAttribute(to)||"0",10);return isFinite(e)?e:0},cF=function(){E.useEffect(function(){return document.body.setAttribute(to,(fk()+1).toString()),function(){var e=fk()-1;e<=0?document.body.removeAttribute(to):document.body.setAttribute(to,e.toString())}},[])},dF=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,o=a===void 0?"margin":a;cF();var s=E.useMemo(function(){return sF(o)},[o]);return E.createElement(lF,{styles:uF(s,!t,o,n?"":"!important")})},Dg=!1;if(typeof window<"u")try{var Fu=Object.defineProperty({},"passive",{get:function(){return Dg=!0,!0}});window.addEventListener("test",Fu,Fu),window.removeEventListener("test",Fu,Fu)}catch{Dg=!1}var Vi=Dg?{passive:!1}:!1,pF=function(e){return e.tagName==="TEXTAREA"},eC=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!pF(e)&&n[t]==="visible")},fF=function(e){return eC(e,"overflowY")},gF=function(e){return eC(e,"overflowX")},gk=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=tC(e,a);if(o){var s=nC(e,a),u=s[1],c=s[2];if(u>c)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},mF=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},hF=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},tC=function(e,t){return e==="v"?fF(t):gF(t)},nC=function(e,t){return e==="v"?mF(t):hF(t)},bF=function(e,t){return e==="h"&&t==="rtl"?-1:1},yF=function(e,t,n,a,o){var s=bF(e,window.getComputedStyle(t).direction),u=s*a,c=n.target,f=t.contains(c),g=!1,h=u>0,m=0,S=0;do{if(!c)break;var v=nC(e,c),x=v[0],w=v[1],k=v[2],A=w-k-s*x;(x||A)&&tC(e,c)&&(m+=A,S+=x);var _=c.parentNode;c=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(h&&Math.abs(m)<1||!h&&Math.abs(S)<1)&&(g=!0),g},Bu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mk=function(e){return[e.deltaX,e.deltaY]},hk=function(e){return e&&"current"in e?e.current:e},vF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},EF=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},yF=0,qi=[];function vF(e){var t=E.useRef([]),n=E.useRef([0,0]),a=E.useRef(),o=E.useState(yF++)[0],s=E.useState(QN)[0],u=E.useRef(e);E.useEffect(function(){u.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var w=PU([e.lockRef.current],(e.shards||[]).map(hk),!0).filter(Boolean);return w.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=E.useCallback(function(w,k){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!u.current.allowPinchZoom;var A=Bu(w),_=n.current,N="deltaX"in w?w.deltaX:_[0]-A[0],L="deltaY"in w?w.deltaY:_[1]-A[1],U,D=w.target,B=Math.abs(N)>Math.abs(L)?"h":"v";if("touches"in w&&B==="h"&&D.type==="range")return!1;var $=window.getSelection(),K=$&&$.anchorNode,F=K?K===D||K.contains(D):!1;if(F)return!1;var W=gk(B,D);if(!W)return!0;if(W?U=B:(U=B==="v"?"h":"v",W=gk(B,D)),!W)return!1;if(!a.current&&"changedTouches"in w&&(N||L)&&(a.current=U),!U)return!0;var q=a.current||U;return mF(q,k,w,q==="h"?N:L)},[]),f=E.useCallback(function(w){var k=w;if(!(!qi.length||qi[qi.length-1]!==s)){var A="deltaY"in k?mk(k):Bu(k),_=t.current.filter(function(U){return U.name===k.type&&(U.target===k.target||k.target===U.shadowParent)&&hF(U.delta,A)})[0];if(_&&_.should){k.cancelable&&k.preventDefault();return}if(!_){var N=(u.current.shards||[]).map(hk).filter(Boolean).filter(function(U){return U.contains(k.target)}),L=N.length>0?c(k,N[0]):!u.current.noIsolation;L&&k.cancelable&&k.preventDefault()}}},[]),g=E.useCallback(function(w,k,A,_){var N={name:w,delta:k,target:A,should:_,shadowParent:EF(A)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(L){return L!==N})},1)},[]),h=E.useCallback(function(w){n.current=Bu(w),a.current=void 0},[]),m=E.useCallback(function(w){g(w.type,mk(w),w.target,c(w,e.lockRef.current))},[]),S=E.useCallback(function(w){g(w.type,Bu(w),w.target,c(w,e.lockRef.current))},[]);E.useEffect(function(){return qi.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:S}),document.addEventListener("wheel",f,Vi),document.addEventListener("touchmove",f,Vi),document.addEventListener("touchstart",h,Vi),function(){qi=qi.filter(function(w){return w!==s}),document.removeEventListener("wheel",f,Vi),document.removeEventListener("touchmove",f,Vi),document.removeEventListener("touchstart",h,Vi)}},[]);var v=e.removeScrollBar,x=e.inert;return E.createElement(E.Fragment,null,x?E.createElement(s,{styles:bF(o)}):null,v?E.createElement(lF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function EF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const SF=KU(ZN,vF);var Js=E.forwardRef(function(e,t){return E.createElement(Mc,rr({},e,{ref:t,sideCar:SF}))});Js.classNames=Mc.classNames;var Dg=["Enter"," "],xF=["ArrowDown","PageUp","Home"],nR=["ArrowUp","PageDown","End"],wF=[...xF,...nR],TF={ltr:[...Dg,"ArrowRight"],rtl:[...Dg,"ArrowLeft"]},AF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},el="Menu",[js,kF,_F]=Ys(el),[ei,rR]=Rt(el,[_F,va,go]),jc=va(),aR=go(),[NF,ti]=ei(el),[RF,tl]=ei(el),iR=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:o,onOpenChange:s,modal:u=!0}=e,c=jc(t),[f,g]=E.useState(null),h=E.useRef(!1),m=Nt(s),S=ya(o);return E.useEffect(()=>{const v=()=>{h.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>h.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),p.jsx(Ic,{...c,children:p.jsx(NF,{scope:t,open:n,onOpenChange:m,content:f,onContentChange:g,children:p.jsx(RF,{scope:t,onClose:E.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:h,dir:S,modal:u,children:a})})})};iR.displayName=el;var CF="MenuAnchor",_m=E.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,o=jc(n);return p.jsx(Zs,{...o,...a,ref:t})});_m.displayName=CF;var Nm="MenuPortal",[IF,oR]=ei(Nm,{forceMount:void 0}),sR=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:o}=e,s=ti(Nm,t);return p.jsx(IF,{scope:t,forceMount:n,children:p.jsx(St,{present:n||s.open,children:p.jsx(fo,{asChild:!0,container:o,children:a})})})};sR.displayName=Nm;var Ln="MenuContent",[OF,Rm]=ei(Ln),lR=E.forwardRef((e,t)=>{const n=oR(Ln,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,s=ti(Ln,e.__scopeMenu),u=tl(Ln,e.__scopeMenu);return p.jsx(js.Provider,{scope:e.__scopeMenu,children:p.jsx(St,{present:a||s.open,children:p.jsx(js.Slot,{scope:e.__scopeMenu,children:u.modal?p.jsx(DF,{...o,ref:t}):p.jsx(LF,{...o,ref:t})})})})}),DF=E.forwardRef((e,t)=>{const n=ti(Ln,e.__scopeMenu),a=E.useRef(n Line truncated
`)},SF=0,qi=[];function xF(e){var t=E.useRef([]),n=E.useRef([0,0]),a=E.useRef(),o=E.useState(SF++)[0],s=E.useState(JN)[0],u=E.useRef(e);E.useEffect(function(){u.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var w=GU([e.lockRef.current],(e.shards||[]).map(hk),!0).filter(Boolean);return w.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=E.useCallback(function(w,k){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!u.current.allowPinchZoom;var A=Bu(w),_=n.current,N="deltaX"in w?w.deltaX:_[0]-A[0],L="deltaY"in w?w.deltaY:_[1]-A[1],U,D=w.target,P=Math.abs(N)>Math.abs(L)?"h":"v";if("touches"in w&&P==="h"&&D.type==="range")return!1;var $=window.getSelection(),Y=$&&$.anchorNode,B=Y?Y===D||Y.contains(D):!1;if(B)return!1;var V=gk(P,D);if(!V)return!0;if(V?U=P:(U=P==="v"?"h":"v",V=gk(P,D)),!V)return!1;if(!a.current&&"changedTouches"in w&&(N||L)&&(a.current=U),!U)return!0;var X=a.current||U;return yF(X,k,w,X==="h"?N:L)},[]),f=E.useCallback(function(w){var k=w;if(!(!qi.length||qi[qi.length-1]!==s)){var A="deltaY"in k?mk(k):Bu(k),_=t.current.filter(function(U){return U.name===k.type&&(U.target===k.target||k.target===U.shadowParent)&&vF(U.delta,A)})[0];if(_&&_.should){k.cancelable&&k.preventDefault();return}if(!_){var N=(u.current.shards||[]).map(hk).filter(Boolean).filter(function(U){return U.contains(k.target)}),L=N.length>0?c(k,N[0]):!u.current.noIsolation;L&&k.cancelable&&k.preventDefault()}}},[]),g=E.useCallback(function(w,k,A,_){var N={name:w,delta:k,target:A,should:_,shadowParent:wF(A)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(L){return L!==N})},1)},[]),h=E.useCallback(function(w){n.current=Bu(w),a.current=void 0},[]),m=E.useCallback(function(w){g(w.type,mk(w),w.target,c(w,e.lockRef.current))},[]),S=E.useCallback(function(w){g(w.type,Bu(w),w.target,c(w,e.lockRef.current))},[]);E.useEffect(function(){return qi.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:S}),document.addEventListener("wheel",f,Vi),document.addEventListener("touchmove",f,Vi),document.addEventListener("touchstart",h,Vi),function(){qi=qi.filter(function(w){return w!==s}),document.removeEventListener("wheel",f,Vi),document.removeEventListener("touchmove",f,Vi),document.removeEventListener("touchstart",h,Vi)}},[]);var v=e.removeScrollBar,x=e.inert;return E.createElement(E.Fragment,null,x?E.createElement(s,{styles:EF(o)}):null,v?E.createElement(dF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function wF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const TF=QU(QN,xF);var Js=E.forwardRef(function(e,t){return E.createElement(jc,ar({},e,{ref:t,sideCar:TF}))});Js.classNames=jc.classNames;var Lg=["Enter"," "],AF=["ArrowDown","PageUp","Home"],rC=["ArrowUp","PageDown","End"],kF=[...AF,...rC],_F={ltr:[...Lg,"ArrowRight"],rtl:[...Lg,"ArrowLeft"]},NF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},el="Menu",[js,CF,RF]=Ys(el),[ei,aC]=It(el,[RF,va,fo]),Uc=va(),iC=fo(),[IF,ti]=ei(el),[OF,tl]=ei(el),oC=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:o,onOpenChange:s,modal:u=!0}=e,c=Uc(t),[f,g]=E.useState(null),h=E.useRef(!1),m=Rt(s),S=ya(o);return E.useEffect(()=>{const v=()=>{h.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>h.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),p.jsx(Oc,{...c,children:p.jsx(IF,{scope:t,open:n,onOpenChange:m,content:f,onContentChange:g,children:p.jsx(OF,{scope:t,onClose:E.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:h,dir:S,modal:u,children:a})})})};oC.displayName=el;var DF="MenuAnchor",_m=E.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,o=Uc(n);return p.jsx(Zs,{...o,...a,ref:t})});_m.displayName=DF;var Nm="MenuPortal",[LF,sC]=ei(Nm,{forceMount:void 0}),lC=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:o}=e,s=ti(Nm,t);return p.jsx(LF,{scope:t,forceMount:n,children:p.jsx(xt,{present:n||s.open,children:p.jsx(po,{asChild:!0,container:o,children:a})})})};lC.displayName=Nm;var Un="MenuContent",[MF,Cm]=ei(Un),uC=E.forwardRef((e,t)=>{const n=sC(Un,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,s=ti(Un,e.__scopeMenu),u=tl(Un,e.__scopeMenu);return p.jsx(js.Provider,{scope:e.__scopeMenu,children:p.jsx(xt,{present:a||s.open,children:p.jsx(js.Slot,{scope:e.__scopeMenu,children:u.modal?p.jsx(jF,{...o,ref:t}):p.jsx(UF,{...o,ref:t})})})})}),jF=E.forwardRef((e,t)=>{const n=ti(Un,e.__scopeMenu),a=E.useRef(n Line truncated
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},AP="DialogDescriptionWarning",kP=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${uC(AP).contentName}}.`;return E.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},Pm=KR,_P=ZR,zm=JR,$m=eC,Gm=tC,cC=rC,NP=iC,dC=sC;function RP({...e}){return p.jsx(Pm,{"data-slot":"sheet",...e})}function CP({...e}){return p.jsx(zm,{"data-slot":"sheet-portal",...e})}function IP({className:e,...t}){return p.jsx($m,{"data-slot":"sheet-overlay",className:be("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function OP({className:e,children:t,side:n="right",showCloseButton:a=!0,...o}){return p.jsxs(CP,{children:[p.jsx(IP,{}),p.jsxs(Gm,{"data-slot":"sheet-content",className:be("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...o,children:[t,a&&p.jsxs(dC,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[p.jsx(Q_,{className:"size-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function DP({className:e,...t}){return p.jsx("div",{"data-slot":"sheet-header",className:be("flex flex-col gap-1.5 p-4",e),...t})}function LP({className:e,...t}){return p.jsx(cC,{"data-slot":"sheet-title",className:be("text-foreground font-semibold",e),...t})}function on(e){return(e||"/").replace(/\/+$/,"")||"/"}function MP(e){if(!e||e.startsWith("#"))return e;try{const t=new URL(e,window.location.origin);return t.origin!==window.location.origin?e:on(t.pathname)+t.search+t.hash}catch{return e}}function jP(e){if(!e||e.startsWith("#"))return!1;if(e.startsWith("/docs"))return!0;try{const t=new URL(e,window.location.origin);return t.origin===window.location.origin&&t.pathname.startsWith("/docs")}catch{return!1}}function UP(e){const t=on(e);return t==="/"?"/docs/index.md":`${t}.md`}function pC({nav:e,activeItem:t,onItemClick:n}){const a=(o,s=0)=>{const u=(o.path||o.title)===t;if(o.children&&o.children.length>0)return p.jsxs("div",{children:[p.jsx("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs font-semibold text-muted-foreground/70 uppercase tracking-widest mt-4 first:mt-0",children:o.title}),p.jsx("div",{className:"space-y-0.5",children:o.children.map(g=>a(g,s+1))})]},o.title+(o.path||""));const f=on(o.path||"/");return p.jsx("a",{href:f,"data-nav-path":o.path||"",onClick:g=>{g.preventDefault(),n(o)},className:`block w-full text-left px-3 py-1.5 text-sm rounded-md transition-all duration-150 ${u?"bg-primary/10 text-primary font-medium border-l-2 border-primary":"text-muted-foreground hover:text-foreground hover:bg-muted/50"}`,style:{paddingLeft:`${12+s*12}px`},children:o.title},o.title+(o.path||""))};return p.jsx("nav",{className:"space-y-0.5",children:e.items?.map(o=>a(o))})}function Pu({nav:e,activeItem:t,onItemClick:n}){return p.jsx("aside",{className:"w-64 min-w-[16rem] border-r border-border/50 hidden md:block",children:p.jsxs(qR,{className:"h-[calc(100vh-4rem)] py-4 px-2",children:[p.jsx(pC,{nav:e,activeItem:t,onItemClick:n}),p.jsx(Ji,{className:"my-4"})]})})}function FP({open:e,onOpenChange:t,nav:n,activeItem:a,onItemClick:o,title:s="Navigation"}){return p.jsx(RP,{open:e,onOpenChange:t,children:p.jsxs(OP,{side:"left",className:"w-72 p-0",children:[p.jsx(DP,{className:"border-b px-4 py-3",children:p.jsx(LP,{children:s})}),p.jsx(qR,{className:"h-[calc(100vh-4rem)] px-2 py-4",children:p.jsx(pC,{nav:n,activeItem:a,onItemClick:u=>{o(u),t(!1)}})})]})})}function Ek(e){const t=[],n=String(e||"");let a=n.indexOf(","),o=0,s=!1;for(;!s;){a===-1&&(a=n.length,s=!0);const u=n.slice(o,a).trim();(u||!s)&&t.push(u),o=a+1,a=n.indexOf(",",o)}return t}function BP(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const PP=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{I Line truncated
`,g="/",h="*",m="",S="comment",v="declaration";function x(k,A){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];A=A||{};var _=1,N=1;function L(ae){var J=ae.match(t);J&&(_+=J.length);var P=ae.lastIndexOf(f);N=~P?ae.length-P:N+ae.length}function U(){var ae={line:_,column:N};return function(J){return J.position=new D(ae),K(),J}}function D(ae){this.start=ae,this.end={line:_,column:N},this.source=A.source}D.prototype.content=k;function B(ae){var J=new Error(A.source+":"+_+":"+N+": "+ae);if(J.reason=ae,J.filename=A.source,J.line=_,J.column=N,J.source=k,!A.silent)throw J}function $(ae){var J=ae.exec(k);if(J){var P=J[0];return L(P),k=k.slice(P.length),J}}function K(){$(n)}function F(ae){var J;for(ae=ae||[];J=W();)J!==!1&&ae.push(J);return ae}function W(){var ae=U();if(!(g!=k.charAt(0)||h!=k.charAt(1))){for(var J=2;m!=k.charAt(J)&&(h!=k.charAt(J)||g!=k.charAt(J+1));)++J;if(J+=2,m===k.charAt(J-1))return B("End of comment missing");var P=k.slice(2,J-2);return N+=2,L(P),k=k.slice(J),N+=2,ae({type:S,comment:P})}}function q(){var ae=U(),J=$(a);if(J){if(W(),!$(o))return B("property missing ':'");var P=$(s),G=ae({type:v,property:w(J[0].replace(e,m)),value:P?w(P[0].replace(e,m)):m});return $(u),G}}function re(){var ae=[];F(ae);for(var J;J=q();)J!==!1&&(ae.push(J),F(ae));return ae}return K(),re()}function w(k){return k?k.replace(c,m):m}return tg=x,tg}var _k;function tz(){if(_k)return Yi;_k=1;var e=Yi&&Yi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=n;const t=e(ez());function n(a,o){let s=null;if(!a||typeof a!="string")return s;const u=(0,t.default)(a),c=typeof o=="function";return u.forEach(f=>{if(f.type!=="declaration")return;const{property:g,value:h}=f;c?o(g,h,f):h&&(s=s||{},s[g]=h)}),s}return Yi}var Ss={},Nk;function nz(){if(Nk)return Ss;Nk=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(g){return!g||n.test(g)||e.test(g)},u=function(g,h){return h.toUpperCase()},c=function(g,h){return"".concat(h,"-")},f=function(g,h){return h===void 0&&(h={}),s(g)?g:(g=g.toLowerCase(),h.reactCompat?g=g.replace(o,c):g=g.replace(a,c),g.replace(t,u))};return Ss.camelCase=f,Ss}var xs,Rk;function rz(){if(Rk)return xs;Rk=1;var e=xs&&xs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(tz()),n=nz();function a(o,s){var u={};return!o||typeof o!="string"||(0,t.default)(o,function(c,f){c&&f&&(u[(0,n.camelCase)(c,s)]=f)}),u}return a.default=a,xs=a,xs}var az=rz();const iz=wc(az),xC=wC("end"),Vm=wC("start");function wC(e){return t;function t(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function oz(e){const t=Vm(e),n=xC(e);if(t&&n)return{start:t,end:n}}function Cs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ck(e.position):"start"in e||"end"in e?Ck(e):"line"in e||"column"in e?jg(e):""}function jg(e){return Ik(e&&e.line)+":"+Ik(e&&e.column)}function Ck(e){return jg(e&&e.start)+"-"+jg(e&&e.end)}function Ik(e){return e&&typeof e=="number"?e:1}class Bt extends Error{constructor(t,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let o="",s={},u=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?o=t:!s.cause&&t&&(u=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof a=="string"){const f=a.indexOf(":");f===-1?s.ruleId=a:(s.source=a.slice(0,f),s.ruleId=a.slice(f+1))}if(!s.place&&s.ancestors&&s.ancestors){const f=s.ancestors[s.ancestors.length-1];f&&(s.place=f.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=c?c.line:void 0,this.name=Cs(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Bt.prototype.file="";Bt.prototype.name="";Bt.prototype.reason="";Bt.prototype.message="";Bt.prototype.stack="";Bt.prototype.column=void 0;Bt.prototype.line=void 0;Bt.prototype.ancestors=void 0;Bt.prototype.cause=void 0;Bt.prototype.fatal=void 0;Bt.prototype.place=void 0;Bt.prototype.ruleId=void 0;Bt.prototype.source=void 0;const qm={}.hasOwnProperty,sz=new Map,lz=/[A-Z]/g,uz=new Set(["table","tbody","thead","tfoot","tr"]),cz=new Set(["td","th"]),TC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function dz(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let a;i Line truncated
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},xP="DialogDescriptionWarning",wP=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${uR(xP).contentName}}.`;return E.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},Pm=KC,TP=ZC,zm=JC,$m=eR,Gm=tR,cR=rR,AP=iR,dR=sR;function kP({...e}){return p.jsx(Pm,{"data-slot":"sheet",...e})}function _P({...e}){return p.jsx(zm,{"data-slot":"sheet-portal",...e})}function NP({className:e,...t}){return p.jsx($m,{"data-slot":"sheet-overlay",className:be("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function CP({className:e,children:t,side:n="right",showCloseButton:a=!0,...o}){return p.jsxs(_P,{children:[p.jsx(NP,{}),p.jsxs(Gm,{"data-slot":"sheet-content",className:be("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...o,children:[t,a&&p.jsxs(dR,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[p.jsx(J_,{className:"size-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function RP({className:e,...t}){return p.jsx("div",{"data-slot":"sheet-header",className:be("flex flex-col gap-1.5 p-4",e),...t})}function IP({className:e,...t}){return p.jsx(cR,{"data-slot":"sheet-title",className:be("text-foreground font-semibold",e),...t})}function ln(e){return(e||"/").replace(/\/+$/,"")||"/"}function OP(e){if(!e||e.startsWith("#"))return e;try{const t=new URL(e,window.location.origin);return t.origin!==window.location.origin?e:ln(t.pathname)+t.search+t.hash}catch{return e}}function DP(e){if(!e||e.startsWith("#"))return!1;if(e.startsWith("/docs"))return!0;try{const t=new URL(e,window.location.origin);return t.origin===window.location.origin&&t.pathname.startsWith("/docs")}catch{return!1}}function LP(e){const t=ln(e);return t==="/"?"/docs/index.md":`${t}.md`}function pR({nav:e,activeItem:t,onItemClick:n}){const a=(o,s=0)=>{const u=(o.path||o.title)===t;if(o.children&&o.children.length>0)return p.jsxs("div",{className:"mb-4",children:[p.jsx("div",{className:"flex items-center gap-1 px-3 py-1.5 text-[11px] font-semibold text-muted-foreground/80 uppercase tracking-wider",children:o.title}),p.jsx("div",{className:"space-y-0.5 mt-1",children:o.children.map(g=>a(g,s+1))})]},o.title+(o.path||""));const f=ln(o.path||"/");return p.jsxs("a",{href:f,"data-nav-path":o.path||"",onClick:g=>{g.preventDefault(),n(o)},className:`group flex items-center gap-1.5 w-full text-left px-3 py-1.5 text-[13px] rounded-md transition-colors ${u?"text-primary font-medium bg-primary/10":"text-muted-foreground hover:text-foreground hover:bg-muted/40"}`,style:{paddingLeft:`${12+s*10}px`},children:[s>0&&p.jsx(kc,{className:`h-3 w-3 shrink-0 opacity-0 group-hover:opacity-40 ${u?"opacity-60 text-primary":""}`}),p.jsx("span",{className:"truncate",children:o.title})]},o.title+(o.path||""))};return p.jsx("nav",{className:"space-y-0.5 pb-6",children:e.items?.map(o=>a(o))})}function Pu({nav:e,activeItem:t,onItemClick:n}){return p.jsx("aside",{className:"docs-sidebar w-[17rem] min-w-[17rem] shrink-0 hidden md:block border-r border-border/40",children:p.jsx(YC,{className:"h-[calc(100vh-3.5rem)] sticky top-14",children:p.jsx("div",{className:"py-5 px-2",children:p.jsx(pR,{nav:e,activeItem:t,onItemClick:n})})})})}function MP({open:e,onOpenChange:t,nav:n,activeItem:a,onItemClick:o,title:s="Navigation"}){return p.jsx(kP,{open:e,onOpenChange:t,children:p.jsxs(CP,{side:"left",className:"w-72 p-0",children:[p.jsx(RP,{className:"border-b px-4 py-3",children:p.jsx(IP,{children:s})}),p.jsx(YC,{className:"h-[calc(100vh-4rem)] px-2 py-4",children:p.jsx(pR,{nav:n,activeItem:a,onItemClick:u=>{o(u),t(!1)}})})]})})}function vk(e){const t=[],n=String(e||"");let a=n.indexOf(","),o=0,s=!1;for(;!s;){a===-1&&(a=n.length,s=!0);const u=n.slice(o,a).trim();(u||!s)&&t.pus Line truncated
`,g="/",h="*",m="",S="comment",v="declaration";function x(k,A){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];A=A||{};var _=1,N=1;function L(ie){var ee=ie.match(t);ee&&(_+=ee.length);var F=ie.lastIndexOf(f);N=~F?ie.length-F:N+ie.length}function U(){var ie={line:_,column:N};return function(ee){return ee.position=new D(ie),Y(),ee}}function D(ie){this.start=ie,this.end={line:_,column:N},this.source=A.source}D.prototype.content=k;function P(ie){var ee=new Error(A.source+":"+_+":"+N+": "+ie);if(ee.reason=ie,ee.filename=A.source,ee.line=_,ee.column=N,ee.source=k,!A.silent)throw ee}function $(ie){var ee=ie.exec(k);if(ee){var F=ee[0];return L(F),k=k.slice(F.length),ee}}function Y(){$(n)}function B(ie){var ee;for(ie=ie||[];ee=V();)ee!==!1&&ie.push(ee);return ie}function V(){var ie=U();if(!(g!=k.charAt(0)||h!=k.charAt(1))){for(var ee=2;m!=k.charAt(ee)&&(h!=k.charAt(ee)||g!=k.charAt(ee+1));)++ee;if(ee+=2,m===k.charAt(ee-1))return P("End of comment missing");var F=k.slice(2,ee-2);return N+=2,L(F),k=k.slice(ee),N+=2,ie({type:S,comment:F})}}function X(){var ie=U(),ee=$(a);if(ee){if(V(),!$(o))return P("property missing ':'");var F=$(s),q=ie({type:v,property:w(ee[0].replace(e,m)),value:F?w(F[0].replace(e,m)):m});return $(u),q}}function ne(){var ie=[];B(ie);for(var ee;ee=X();)ee!==!1&&(ie.push(ee),B(ie));return ie}return Y(),ne()}function w(k){return k?k.replace(c,m):m}return ng=x,ng}var kk;function QP(){if(kk)return Yi;kk=1;var e=Yi&&Yi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=n;const t=e(ZP());function n(a,o){let s=null;if(!a||typeof a!="string")return s;const u=(0,t.default)(a),c=typeof o=="function";return u.forEach(f=>{if(f.type!=="declaration")return;const{property:g,value:h}=f;c?o(g,h,f):h&&(s=s||{},s[g]=h)}),s}return Yi}var Es={},_k;function JP(){if(_k)return Es;_k=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(g){return!g||n.test(g)||e.test(g)},u=function(g,h){return h.toUpperCase()},c=function(g,h){return"".concat(h,"-")},f=function(g,h){return h===void 0&&(h={}),s(g)?g:(g=g.toLowerCase(),h.reactCompat?g=g.replace(o,c):g=g.replace(a,c),g.replace(t,u))};return Es.camelCase=f,Es}var Ss,Nk;function ez(){if(Nk)return Ss;Nk=1;var e=Ss&&Ss.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(QP()),n=JP();function a(o,s){var u={};return!o||typeof o!="string"||(0,t.default)(o,function(c,f){c&&f&&(u[(0,n.camelCase)(c,s)]=f)}),u}return a.default=a,Ss=a,Ss}var tz=ez();const nz=wc(tz),xR=wR("end"),Vm=wR("start");function wR(e){return t;function t(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function rz(e){const t=Vm(e),n=xR(e);if(t&&n)return{start:t,end:n}}function Rs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ck(e.position):"start"in e||"end"in e?Ck(e):"line"in e||"column"in e?Ug(e):""}function Ug(e){return Rk(e&&e.line)+":"+Rk(e&&e.column)}function Ck(e){return Ug(e&&e.start)+"-"+Ug(e&&e.end)}function Rk(e){return e&&typeof e=="number"?e:1}class zt extends Error{constructor(t,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let o="",s={},u=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?o=t:!s.cause&&t&&(u=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof a=="string"){const f=a.indexOf(":");f===-1?s.ruleId=a:(s.source=a.slice(0,f),s.ruleId=a.slice(f+1))}if(!s.place&&s.ancestors&&s.ancestors){const f=s.ancestors[s.ancestors.length-1];f&&(s.place=f.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=c?c.line:void 0,this.name=Rs(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}zt.prototype.file="";zt.prototype.name="";zt.prototype.reason="";zt.prototype.message="";zt.prototype.stack="";zt.prototype.column=void 0;zt.prototype.line=void 0;zt.prototype.ancestors=void 0;zt.prototype.cause=void 0;zt.prototype.fatal=void 0;zt.prototype.place=void 0;zt.prototype.ruleId=void 0;zt.prototype.source=void 0;const qm={}.hasOwnProperty,az=new Map,iz=/[A-Z]/g,oz=new Set(["table","tbody","thead","tfoot","tr"]),sz=new Set(["td","th"]),TR="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lz(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options Line truncated
`;break}case-3:{u=`\r
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&o)continue;u=" ";break}default:u=String.fromCharCode(s)}o=s===-2,a.push(u)}return a.join("")}function v3(e){const a={constructs:RC([m3,...(e||{}).extensions||[]]),content:o(Lz),defined:[],document:o(jz),flow:o(e3),lazy:{},string:o(r3),text:o(a3)};return a;function o(s){return u;function u(c){return h3(a,s,c)}}}function E3(e){for(;!LC(e););return e}const zk=/[\0\t\n\r]/g;function S3(){let e=1,t="",n=!0,a;return o;function o(s,u,c){const f=[];let g,h,m,S,v;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),m=0,t="",n&&(s.charCodeAt(0)===65279&&m++,n=void 0);m<s.length;){if(zk.lastIndex=m,g=zk.exec(s),S=g&&g.index!==void 0?g.index:s.length,v=s.charCodeAt(S),!g){t=s.slice(m);break}if(v===10&&m===S&&a)f.push(-3),a=void 0;else switch(a&&(f.push(-5),a=void 0),m<S&&(f.push(s.slice(m,S)),e+=S-m),v){case 0:{f.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,f.push(-2);e++<h;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:a=!0,e=1}m=S+1}return c&&(a&&f.push(-5),t&&f.push(t),f.push(null)),f}}const x3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function w3(e){return e.replace(x3,T3)}function T3(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),s=o===120||o===88;return CC(n.slice(s?2:1),s?16:10)}return zs(n)||e}const PC={}.hasOwnProperty;function A3(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),k3(n)(E3(v3(n).document().write(S3()(e,t,!0))))}function k3(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ai),autolinkProtocol:K,autolinkEmail:K,atxHeading:s(Xn),blockQuote:s(Te),characterEscape:K,characterReference:K,codeFenced:s(ye),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(ye,u),codeText:s(Le,u),codeTextData:K,data:K,codeFlowValue:K,definition:s(at),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(ut),hardBreakEscape:s(Zn),hardBreakTrailing:s(Zn),htmlFlow:s(Lr,u),htmlFlowData:K,htmlText:s(Lr,u),htmlTextData:K,image:s(ml),label:u,link:s(ai),listItem:s(ko),listItemValue:S,listOrdered:s(ii,m),listUnordered:s(ii),paragraph:s(vd),reference:I,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(Xn),strong:s(Ed),thematicBreak:s(Sd)},exit:{atxHeading:f(),atxHeadingSequence:U,autolink:f(),autolinkEmail:pe,autolinkProtocol:he,blockQuote:f(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:ie,characterReference:se,codeFenced:f(k),codeFencedFence:w,codeFencedFenceInfo:v,codeFencedFenceMeta:x,codeFlowValue:F,codeIndented:f(A),codeText:f(J),codeTextData:F,data:F,definition:f(),definitionDestinationString:L,definitionLabelString:_,definitionTitleString:N,emphasis:f(),hardBreakEscape:f(q),hardBreakTrailing:f(q),htmlFlow:f(re),htmlFlowData:F,htmlText:f(ae),htmlTextData:F,image:f(G),label:ee,labelText:Y,lineEnding:W,link:f(P),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:oe,resourceDestinationString:C,resourceTitleString:j,resource:M,setextHeading:f($),setextHeadingLineSequence:B,setextHeadingText:D,strong:f(),thematicBreak:f()}};zC(t,(e||{}).mdastExtensions||[]);const n={};return a;function a(ue){let me={type:"root",children:[]};const Re={stack:[me],tokenStack:[],config:t,enter:c,exit:g,buffer:u,resume:h,data:n},je=[];let We=-1;for(;++We<ue.length;)if(ue[We][1].type==="listOrdered"||ue[We][1].type==="listUnordered")if(ue[We][0]==="enter")je.push(We);else{const ln=je.pop();We=o(ue,ln,We)}for(We=-1;++We<ue.length;){const ln=t[ue[We][0]];PC.call(ln,ue[We][1].type)&&ln[ue[We][1].type].call(Object.assign({sliceSerialize:ue[We][2].sliceSerialize},Re),ue[We][1])}if(Re.tokenStack.length>0){const ln=Re.tokenStack[Re.tokenStack.length-1];(ln[1]||$k).call(Re,void 0,ln[0])}for(me.position={start:la(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:la(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},We=-1;++We<t.transforms.length;)me=t.transforms[We](me)||me;return me}function o(ue,me,Re){let je=me-1,We=-1,ln=!1,cr,Gt,xt,Xt;for(;++je<=Re;){const tt=ue[je];switch(tt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{tt[0]==="enter"?We++:We--,Xt=void 0;break}case"lineEndingBlank":{tt[0]==="enter"&&(cr&&!Xt&&!We&&!xt&&(xt=je),Xt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Xt=void 0}if(!We&&tt[0]==="enter"&&tt[1].type==="listItemPrefix"||We===-1&&tt[0]==="exit"&&(tt[1].type==="listUnordered"||tt[1].type==="listOrdered")){if(cr){let Mr=je;for(Gt=void 0;Mr--;){const jn=ue[Mr];if(jn[1].type==="lineEnding"||jn[1].type==="lineEndingBlank"){if(jn[0]==="exit")continue;Gt&&(ue[Gt][1].type="lineEndingBlank",ln=!0),jn[1].type="lineEnding",Gt=Mr}else if(!(jn[1].type==="linePrefix"||jn[1].type==="blockQuotePrefix"||jn[1].type==="blockQuotePrefixWhitespLine truncated
`}]}function I3(e,t){const n=t.value?t.value+`
`:"",a={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function O3(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function D3(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function L3(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),o=ho(a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let u,c=e.footnoteCounts.get(a);c===void 0?(c=0,e.footnoteOrder.push(a),u=e.footnoteOrder.length):u=s+1,c+=1,e.footnoteCounts.set(a,c);const f={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,f);const g={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,g),e.applyData(t,g)}function M3(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function j3(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function $C(e,t){const n=t.referenceType;let a="]";if(n==="collapsed"?a+="[]":n==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const o=e.all(t),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=a:o.push({type:"text",value:a}),o}function U3(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return $C(e,t);const o={src:ho(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,s),e.applyData(t,s)}function F3(e,t){const n={src:ho(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}function B3(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)}function P3(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return $C(e,t);const o={href:ho(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function z3(e,t){const n={href:ho(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function $3(e,t,n){const a=e.all(t),o=n?G3(n):GC(t),s={},u=[];if(typeof t.checked=="boolean"){const h=a[0];let m;h&&h.type==="element"&&h.tagName==="p"?m=h:(m={type:"element",tagName:"p",properties:{},children:[]},a.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<a.length;){const h=a[c];(o||c!==0||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&o)continue;u=" ";break}default:u=String.fromCharCode(s)}o=s===-2,a.push(u)}return a.join("")}function h3(e){const a={constructs:CR([p3,...(e||{}).extensions||[]]),content:o(Iz),defined:[],document:o(Dz),flow:o(Z$),lazy:{},string:o(e3),text:o(t3)};return a;function o(s){return u;function u(c){return f3(a,s,c)}}}function b3(e){for(;!LR(e););return e}const Pk=/[\0\t\n\r]/g;function y3(){let e=1,t="",n=!0,a;return o;function o(s,u,c){const f=[];let g,h,m,S,v;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),m=0,t="",n&&(s.charCodeAt(0)===65279&&m++,n=void 0);m<s.length;){if(Pk.lastIndex=m,g=Pk.exec(s),S=g&&g.index!==void 0?g.index:s.length,v=s.charCodeAt(S),!g){t=s.slice(m);break}if(v===10&&m===S&&a)f.push(-3),a=void 0;else switch(a&&(f.push(-5),a=void 0),m<S&&(f.push(s.slice(m,S)),e+=S-m),v){case 0:{f.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,f.push(-2);e++<h;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:a=!0,e=1}m=S+1}return c&&(a&&f.push(-5),t&&f.push(t),f.push(null)),f}}const v3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function E3(e){return e.replace(v3,S3)}function S3(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),s=o===120||o===88;return RR(n.slice(s?2:1),s?16:10)}return zs(n)||e}const PR={}.hasOwnProperty;function x3(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),w3(n)(b3(h3(n).document().write(y3()(e,t,!0))))}function w3(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ai),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:s(Ie),blockQuote:s(ve),characterEscape:Y,characterReference:Y,codeFenced:s(Ce),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(Ce,u),codeText:s(je,u),codeTextData:Y,data:Y,codeFlowValue:Y,definition:s(qe),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(Qe),hardBreakEscape:s(kt),hardBreakTrailing:s(kt),htmlFlow:s(cn,u),htmlFlowData:Y,htmlText:s(cn,u),htmlTextData:Y,image:s(ml),label:u,link:s(ai),listItem:s(Ao),listItemValue:S,listOrdered:s(ii,m),listUnordered:s(ii),paragraph:s(Ed),reference:C,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(Ie),strong:s(Sd),thematicBreak:s(xd)},exit:{atxHeading:f(),atxHeadingSequence:U,autolink:f(),autolinkEmail:pe,autolinkProtocol:he,blockQuote:f(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:Q,characterReferenceMarkerNumeric:Q,characterReferenceValue:re,characterReference:oe,codeFenced:f(k),codeFencedFence:w,codeFencedFenceInfo:v,codeFencedFenceMeta:x,codeFlowValue:B,codeIndented:f(A),codeText:f(ee),codeTextData:B,data:B,definition:f(),definitionDestinationString:L,definitionLabelString:_,definitionTitleString:N,emphasis:f(),hardBreakEscape:f(X),hardBreakTrailing:f(X),htmlFlow:f(ne),htmlFlowData:B,htmlText:f(ie),htmlTextData:B,image:f(q),label:se,labelText:te,lineEnding:V,link:f(F),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:J,resourceDestinationString:I,resourceTitleString:M,resource:j,setextHeading:f($),setextHeadingLineSequence:P,setextHeadingText:D,strong:f(),thematicBreak:f()}};zR(t,(e||{}).mdastExtensions||[]);const n={};return a;function a(ue){let me={type:"root",children:[]};const Ne={stack:[me],tokenStack:[],config:t,enter:c,exit:g,buffer:u,resume:h,data:n},Ue=[];let Xe=-1;for(;++Xe<ue.length;)if(ue[Xe][1].type==="listOrdered"||ue[Xe][1].type==="listUnordered")if(ue[Xe][0]==="enter")Ue.push(Xe);else{const dn=Ue.pop();Xe=o(ue,dn,Xe)}for(Xe=-1;++Xe<ue.length;){const dn=t[ue[Xe][0]];PR.call(dn,ue[Xe][1].type)&&dn[ue[Xe][1].type].call(Object.assign({sliceSerialize:ue[Xe][2].sliceSerialize},Ne),ue[Xe][1])}if(Ne.tokenStack.length>0){const dn=Ne.tokenStack[Ne.tokenStack.length-1];(dn[1]||zk).call(Ne,void 0,dn[0])}for(me.position={start:la(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:la(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Xe=-1;++Xe<t.transforms.length;)me=t.transforms[Xe](me)||me;return me}function o(ue,me,Ne){let Ue=me-1,Xe=-1,dn=!1,dr,Vt,wt,Qt;for(;++Ue<=Ne;){const at=ue[Ue];switch(at[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{at[0]==="enter"?Xe++:Xe--,Qt=void 0;break}case"lineEndingBlank":{at[0]==="enter"&&(dr&&!Qt&&!Xe&&!wt&&(wt=Ue),Qt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qt=void 0}if(!Xe&&at[0]==="enter"&&at[1].type==="listItemPrefix"||Xe===-1&&at[0]==="exit"&&(at[1].type==="listUnordered"||at[1].type==="listOrdered")){if(dr){let Mr=Ue;for(Vt=void 0;Mr--;){const Bn=ue[Mr];if(Bn[1].type==="lineEnding"||Bn[1].type==="lineEndingBlank"){if(Bn[0]==="exit")continue;Vt&&(ue[Vt][1].type="lineEndingBlank",dn=!0),Bn[1].type="lineEnding",Vt=Mr}else if(!(Bn[1].type==="linePrefix"||Bn[1].type==="blockQuotePrefix"||Bn[1].type==="blockQuotePrefixWhitespaLine truncated
`}]}function N3(e,t){const n=t.value?t.value+`
`:"",a={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function C3(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function R3(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function I3(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),o=mo(a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let u,c=e.footnoteCounts.get(a);c===void 0?(c=0,e.footnoteOrder.push(a),u=e.footnoteOrder.length):u=s+1,c+=1,e.footnoteCounts.set(a,c);const f={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,f);const g={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,g),e.applyData(t,g)}function O3(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function D3(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function $R(e,t){const n=t.referenceType;let a="]";if(n==="collapsed"?a+="[]":n==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const o=e.all(t),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=a:o.push({type:"text",value:a}),o}function L3(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return $R(e,t);const o={src:mo(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,s),e.applyData(t,s)}function M3(e,t){const n={src:mo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}function j3(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)}function U3(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return $R(e,t);const o={href:mo(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function F3(e,t){const n={href:mo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function B3(e,t,n){const a=e.all(t),o=n?P3(n):GR(t),s={},u=[];if(typeof t.checked=="boolean"){const h=a[0];let m;h&&h.type==="element"&&h.tagName==="p"?m=h:(m={type:"element",tagName:"p",properties:{},children:[]},a.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<a.length;){const h=a[c];(o||c!==0||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
`}),h.type==="element"&&h.tagName==="p"&&!o?u.push(...h.children):u.push(h)}const f=a[a.length-1];f&&(o||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
`});const g={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,g),e.applyData(t,g)}function G3(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let a=-1;for(;!t&&++a<n.length;)t=GC(n[a])}return t}function GC(e){const t=e.spread;return t??e.children.length>1}function H3(e,t){const n={},a=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<a.length;){const u=a[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function V3(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function q3(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Y3(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function W3(e,t){const n=e.all(t),a=n.shift(),o=[];if(a){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],u),o.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=Vm(t.children[1]),f=xC(t.children[t.children.length-1]);c&&f&&(u.position={start:c,end:f}),o.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function K3(e,t,n){const a=n?n.children:void 0,s=(a?a.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,c=u?u.length:t.children.length;let f=-1;const g=[];for(;++f<c;){const m=t.children[f],S={},v=u?u[f]:void 0;v&&(S.align=v);let x={type:"element",tagName:s,properties:S,children:[]};m&&(x.children=e.all(m),e.patch(m,x),x=e.applyData(m,x)),g.push(x)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(g,!0)};return e.patch(t,h),e.applyData(t,h)}function X3(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Gk=9,Hk=32;function Z3(e){const t=String(e),n=/\r?\n|\r/g;let a=n.exec(t),o=0;const s=[];for(;a;)s.push(Vk(t.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=n.exec(t);return s.push(Vk(t.slice(o),o>0,!1)),s.join("")}function Vk(e,t,n){let a=0,o=e.length;if(t){let s=e.codePointAt(a);for(;s===Gk||s===Hk;)a++,s=e.codePointAt(a)}if(n){let s=e.codePointAt(o-1);for(;s===Gk||s===Hk;)o--,s=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}function Q3(e,t){const n={type:"text",value:Z3(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function J3(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const e4={blockquote:R3,break:C3,code:I3,delete:O3,emphasis:D3,footnoteReference:L3,heading:M3,html:j3,imageReference:U3,image:F3,inlineCode:B3,linkReference:P3,link:z3,listItem:$3,list:H3,paragraph:V3,root:q3,strong:Y3,table:W3,tableCell:X3,tableRow:K3,text:Q3,thematicBreak:J3,toml:zu,yaml:zu,definition:zu,footnoteDefinition:zu};function zu(){}const HC=-1,Vc=0,Os=1,hc=2,Zm=3,Qm=4,Jm=5,eh=6,VC=7,qC=8,qk=typeof self=="object"?self:globalThis,t4=(e,t)=>{const n=(o,s)=>(e.set(s,o),o),a=o=>{if(e.has(o))return e.get(o);const[s,u]=t[o];switch(s){case Vc:case HC:return n(u,o);case Os:{const c=n([],o);for(const f of u)c.push(a(f));return c}case hc:{const c=n({},o);for(const[f,g]of u)c[a(f)]=a(g);return c}case Zm:return n(new Date(u),o);case Qm:{const{source:c,flags:f}=u;return n(new RegExp(c,f),o)}case Jm:{const c=n(new Map,o);for(const[f,g]of u)c.set(a(f),a(g));return c}case eh:{const c=n(new Set,o);for(const f of u)c.add(a(f));return c}case VC:{const{name:c,message:f}=u;return n(new qk[c](f),o)}case qC:return n(BigInt(u),o);case"BigInt":return n(Object(BigInt(u)),o);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:c}=new Uint8Array(u);return n(new DataView(c),u)}}return n(new qk[s](u),o)};return a},Yk=e=>t4(new Map,e)(0),Wi="",{toString:n4}={},{keys:r4}=Object,Ts=e=>{const t=typeof e;if(t!=="object"||!e)return[Vc,t];const n=n4.call(e).slice(8,-1);switch(n){case"Array":return[Os,Wi];case"Object":return[hc,Wi];case"Date":return[Zm,Wi];case"RegExp":return[Qm,Wi];case"Map":return[Jm,Wi];case"Set":return[eh,Wi];case"DataView":return[Os,n]}return n.includes("Array")?[Os,n]:n.includes("Error")?[VC,n]:[hc,n]},$u=([e,t])=>e===Vc&&(t==="function"||t==="symbol"),a4=(e,t,n,a)=>{const o=(u,c)=>{const f=a.push(u)-1;return n.set(c,f),f},s=u=>{if(n.has(u))return n.get(u);let[c,f]=Ts(u);switch(c){case Vc:{let h=u;switch(f){case"bigint":c=qC,h=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);h=null;break;case"undefined":return o([HC],u)}return o([c,h],u)}case Os:{if(f){let S=u;return f==="DataView"?S=new Uint8Array(u.buffer):f==="ArrayBuffer"&&(S=new Uint8Array( Line truncated
`});const g={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,g),e.applyData(t,g)}function P3(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let a=-1;for(;!t&&++a<n.length;)t=GR(n[a])}return t}function GR(e){const t=e.spread;return t??e.children.length>1}function z3(e,t){const n={},a=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<a.length;){const u=a[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function $3(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function G3(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function H3(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function V3(e,t){const n=e.all(t),a=n.shift(),o=[];if(a){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],u),o.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=Vm(t.children[1]),f=xR(t.children[t.children.length-1]);c&&f&&(u.position={start:c,end:f}),o.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function q3(e,t,n){const a=n?n.children:void 0,s=(a?a.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,c=u?u.length:t.children.length;let f=-1;const g=[];for(;++f<c;){const m=t.children[f],S={},v=u?u[f]:void 0;v&&(S.align=v);let x={type:"element",tagName:s,properties:S,children:[]};m&&(x.children=e.all(m),e.patch(m,x),x=e.applyData(m,x)),g.push(x)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(g,!0)};return e.patch(t,h),e.applyData(t,h)}function Y3(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const $k=9,Gk=32;function W3(e){const t=String(e),n=/\r?\n|\r/g;let a=n.exec(t),o=0;const s=[];for(;a;)s.push(Hk(t.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=n.exec(t);return s.push(Hk(t.slice(o),o>0,!1)),s.join("")}function Hk(e,t,n){let a=0,o=e.length;if(t){let s=e.codePointAt(a);for(;s===$k||s===Gk;)a++,s=e.codePointAt(a)}if(n){let s=e.codePointAt(o-1);for(;s===$k||s===Gk;)o--,s=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}function K3(e,t){const n={type:"text",value:W3(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function X3(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Z3={blockquote:k3,break:_3,code:N3,delete:C3,emphasis:R3,footnoteReference:I3,heading:O3,html:D3,imageReference:L3,image:M3,inlineCode:j3,linkReference:U3,link:F3,listItem:B3,list:z3,paragraph:$3,root:G3,strong:H3,table:V3,tableCell:Y3,tableRow:q3,text:K3,thematicBreak:X3,toml:zu,yaml:zu,definition:zu,footnoteDefinition:zu};function zu(){}const HR=-1,qc=0,Os=1,hc=2,Zm=3,Qm=4,Jm=5,eh=6,VR=7,qR=8,Vk=typeof self=="object"?self:globalThis,Q3=(e,t)=>{const n=(o,s)=>(e.set(s,o),o),a=o=>{if(e.has(o))return e.get(o);const[s,u]=t[o];switch(s){case qc:case HR:return n(u,o);case Os:{const c=n([],o);for(const f of u)c.push(a(f));return c}case hc:{const c=n({},o);for(const[f,g]of u)c[a(f)]=a(g);return c}case Zm:return n(new Date(u),o);case Qm:{const{source:c,flags:f}=u;return n(new RegExp(c,f),o)}case Jm:{const c=n(new Map,o);for(const[f,g]of u)c.set(a(f),a(g));return c}case eh:{const c=n(new Set,o);for(const f of u)c.add(a(f));return c}case VR:{const{name:c,message:f}=u;return n(new Vk[c](f),o)}case qR:return n(BigInt(u),o);case"BigInt":return n(Object(BigInt(u)),o);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:c}=new Uint8Array(u);return n(new DataView(c),u)}}return n(new Vk[s](u),o)};return a},qk=e=>Q3(new Map,e)(0),Wi="",{toString:J3}={},{keys:e4}=Object,ws=e=>{const t=typeof e;if(t!=="object"||!e)return[qc,t];const n=J3.call(e).slice(8,-1);switch(n){case"Array":return[Os,Wi];case"Object":return[hc,Wi];case"Date":return[Zm,Wi];case"RegExp":return[Qm,Wi];case"Map":return[Jm,Wi];case"Set":return[eh,Wi];case"DataView":return[Os,n]}return n.includes("Array")?[Os,n]:n.includes("Error")?[VR,n]:[hc,n]},$u=([e,t])=>e===qc&&(t==="function"||t==="symbol"),t4=(e,t,n,a)=>{const o=(u,c)=>{const f=a.push(u)-1;return n.set(c,f),f},s=u=>{if(n.has(u))return n.get(u);let[c,f]=ws(u);switch(c){case qc:{let h=u;switch(f){case"bigint":c=qR,h=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);h=null;break;case"undefined":return o([HR],u)}return o([c,h],u)}case Os:{if(f){let S=u;return f==="DataView"?S=new Uint8Array(u.buffer):f==="ArrayBuffer"&&(S=new Uint8Array( Line truncated
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
`}]}}const qc=(function(e){if(e==null)return d4;if(typeof e=="function")return Yc(e);if(typeof e=="object")return Array.isArray(e)?l4(e):u4(e);if(typeof e=="string")return c4(e);throw new Error("Expected function, string, or object as test")});function l4(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=qc(e[n]);return Yc(a);function a(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function u4(e){const t=e;return Yc(n);function n(a){const o=a;let s;for(s in e)if(o[s]!==t[s])return!1;return!0}}function c4(e){return Yc(t);function t(n){return n&&n.type===e}}function Yc(e){return t;function t(n,a,o){return!!(p4(n)&&e.call(this,n,typeof a=="number"?a:void 0,o||void 0))}}function d4(){return!0}function p4(e){return e!==null&&typeof e=="object"&&"type"in e}const YC=[],f4=!0,Bg=!1,g4="skip";function WC(e,t,n,a){let o;typeof t=="function"&&typeof n!="function"?(a=n,n=t):o=t;const s=qc(o),u=a?-1:1;c(e,void 0,[])();function c(f,g,h){const m=f&&typeof f=="object"?f:{};if(typeof m.type=="string"){const v=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(f.type+(v?"<"+v+">":""))+")"})}return S;function S(){let v=YC,x,w,k;if((!t||s(f,g,h[h.length-1]||void 0))&&(v=m4(n(f,h)),v[0]===Bg))return v;if("children"in f&&f.children){const A=f;if(A.children&&v[0]!==g4)for(w=(a?A.children.length:-1)+u,k=h.concat(A);w>-1&&w<A.children.length;){const _=A.children[w];if(x=c(_,w,k)(),x[0]===Bg)return x;w=typeof x[1]=="number"?x[1]:w+u}}return v}}}function m4(e){return Array.isArray(e)?e:typeof e=="number"?[f4,e]:e==null?YC:[e]}function th(e,t,n,a){let o,s,u;typeof t=="function"&&typeof n!="function"?(s=void 0,u=t,o=n):(s=t,u=n,o=a),WC(e,s,c,o);function c(f,g){const h=g[g.length-1],m=h?h.children.indexOf(f):void 0;return u(f,m,h)}}const Pg={}.hasOwnProperty,h4={};function b4(e,t){const n=t||h4,a=new Map,o=new Map,s=new Map,u={...e4,...n.handlers},c={all:g,applyData:v4,definitionById:a,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:u,one:f,options:n,patch:y4,wrap:S4};return th(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const m=h.type==="definition"?a:o,S=String(h.identifier).toUpperCase();m.has(S)||m.set(S,h)}}),c;function f(h,m){const S=h.type,v=c.handlers[S];if(Pg.call(c.handlers,S)&&v)return v(c,h,m);if(c.options.passThrough&&c.options.passThrough.includes(S)){if("children"in h){const{children:w,...k}=h,A=bc(k);return A.children=c.all(h),A}return bc(h)}return(c.options.unknownHandler||E4)(c,h,m)}function g(h){const m=[];if("children"in h){const S=h.children;let v=-1;for(;++v<S.length;){const x=c.one(S[v],h);if(x){if(v&&S[v-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=Kk(x.value)),!Array.isArray(x)&&x.type==="element")){const w=x.children[0];w&&w.type==="text"&&(w.value=Kk(w.value))}Array.isArray(x)?m.push(...x):m.push(x)}}}return m}}function y4(e,t){e.position&&(t.position=oz(e))}function v4(e,t){let n=t;if(e&&e.data){const a=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof a=="string")if(n.type==="element")n.tagName=a;else{const u="children"in n?n.children:[n];n={type:"element",tagName:a,properties:{},children:u}}n.type==="element"&&s&&Object.assign(n.properties,bc(s)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function E4(e,t){const n=t.data||{},a="value"in t&&!(Pg.call(n,"hProperties")||Pg.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function S4(e,t){const n=[];let a=-1;for(t&&n.push({type:"text",value:`
`}]}}const Yc=(function(e){if(e==null)return l4;if(typeof e=="function")return Wc(e);if(typeof e=="object")return Array.isArray(e)?i4(e):o4(e);if(typeof e=="string")return s4(e);throw new Error("Expected function, string, or object as test")});function i4(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Yc(e[n]);return Wc(a);function a(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function o4(e){const t=e;return Wc(n);function n(a){const o=a;let s;for(s in e)if(o[s]!==t[s])return!1;return!0}}function s4(e){return Wc(t);function t(n){return n&&n.type===e}}function Wc(e){return t;function t(n,a,o){return!!(u4(n)&&e.call(this,n,typeof a=="number"?a:void 0,o||void 0))}}function l4(){return!0}function u4(e){return e!==null&&typeof e=="object"&&"type"in e}const YR=[],c4=!0,Pg=!1,d4="skip";function WR(e,t,n,a){let o;typeof t=="function"&&typeof n!="function"?(a=n,n=t):o=t;const s=Yc(o),u=a?-1:1;c(e,void 0,[])();function c(f,g,h){const m=f&&typeof f=="object"?f:{};if(typeof m.type=="string"){const v=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(f.type+(v?"<"+v+">":""))+")"})}return S;function S(){let v=YR,x,w,k;if((!t||s(f,g,h[h.length-1]||void 0))&&(v=p4(n(f,h)),v[0]===Pg))return v;if("children"in f&&f.children){const A=f;if(A.children&&v[0]!==d4)for(w=(a?A.children.length:-1)+u,k=h.concat(A);w>-1&&w<A.children.length;){const _=A.children[w];if(x=c(_,w,k)(),x[0]===Pg)return x;w=typeof x[1]=="number"?x[1]:w+u}}return v}}}function p4(e){return Array.isArray(e)?e:typeof e=="number"?[c4,e]:e==null?YR:[e]}function th(e,t,n,a){let o,s,u;typeof t=="function"&&typeof n!="function"?(s=void 0,u=t,o=n):(s=t,u=n,o=a),WR(e,s,c,o);function c(f,g){const h=g[g.length-1],m=h?h.children.indexOf(f):void 0;return u(f,m,h)}}const zg={}.hasOwnProperty,f4={};function g4(e,t){const n=t||f4,a=new Map,o=new Map,s=new Map,u={...Z3,...n.handlers},c={all:g,applyData:h4,definitionById:a,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:u,one:f,options:n,patch:m4,wrap:y4};return th(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const m=h.type==="definition"?a:o,S=String(h.identifier).toUpperCase();m.has(S)||m.set(S,h)}}),c;function f(h,m){const S=h.type,v=c.handlers[S];if(zg.call(c.handlers,S)&&v)return v(c,h,m);if(c.options.passThrough&&c.options.passThrough.includes(S)){if("children"in h){const{children:w,...k}=h,A=bc(k);return A.children=c.all(h),A}return bc(h)}return(c.options.unknownHandler||b4)(c,h,m)}function g(h){const m=[];if("children"in h){const S=h.children;let v=-1;for(;++v<S.length;){const x=c.one(S[v],h);if(x){if(v&&S[v-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=Wk(x.value)),!Array.isArray(x)&&x.type==="element")){const w=x.children[0];w&&w.type==="text"&&(w.value=Wk(w.value))}Array.isArray(x)?m.push(...x):m.push(x)}}}return m}}function m4(e,t){e.position&&(t.position=rz(e))}function h4(e,t){let n=t;if(e&&e.data){const a=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof a=="string")if(n.type==="element")n.tagName=a;else{const u="children"in n?n.children:[n];n={type:"element",tagName:a,properties:{},children:u}}n.type==="element"&&s&&Object.assign(n.properties,bc(s)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function b4(e,t){const n=t.data||{},a="value"in t&&!(zg.call(n,"hProperties")||zg.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function y4(e,t){const n=[];let a=-1;for(t&&n.push({type:"text",value:`
`});++a<e.length;)a&&n.push({type:"text",value:`
`}),n.push(e[a]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function Kk(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Xk(e,t){const n=b4(e,t),a=n.one(e,void 0),o=s4(n),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
`},o),s}function x4(e,t){return e&&"run"in e?async function(n,a){const o=Xk(n,{file:a,...t});await e.run(o,a)}:function(n,a){return Xk(n,{file:a,...e||t})}}function Zk(e){if(e)throw e}var ig,Qk;function w4(){if(Qk)return ig;Qk=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(g){return typeof Array.isArray=="function"?Array.isArray(g):t.call(g)==="[object Array]"},s=function(g){if(!g||t.call(g)!=="[object Object]")return!1;var h=e.call(g,"constructor"),m=g.constructor&&g.constructor.prototype&&e.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!h&&!m)return!1;var S;for(S in g);return typeof S>"u"||e.call(g,S)},u=function(g,h){n&&h.name==="__proto__"?n(g,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):g[h.name]=h.newValue},c=function(g,h){if(h==="__proto__")if(e.call(g,h)){if(a)return a(g,h).value}else return;return g[h]};return ig=function f(){var g,h,m,S,v,x,w=arguments[0],k=1,A=arguments.length,_=!1;for(typeof w=="boolean"&&(_=w,w=arguments[1]||{},k=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});k<A;++k)if(g=arguments[k],g!=null)for(h in g)m=c(w,h),S=c(g,h),w!==S&&(_&&S&&(s(S)||(v=o(S)))?(v?(v=!1,x=m&&o(m)?m:[]):x=m&&s(m)?m:{},u(w,{name:h,newValue:f(_,x,S)})):typeof S<"u"&&u(w,{name:h,newValue:S}));return w},ig}var T4=w4();const og=wc(T4);function zg(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function A4(){const e=[],t={run:n,use:a};return t;function n(...o){let s=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);c(null,...o);function c(f,...g){const h=e[++s];let m=-1;if(f){u(f);return}for(;++m<o.length;)(g[m]===null||g[m]===void 0)&&(g[m]=o[m]);o=g,h?k4(h,c)(...g):u(null,...g)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function k4(e,t){let n;return a;function a(...u){const c=e.length>u.length;let f;c&&u.push(o);try{f=e.apply(this,u)}catch(g){const h=g;if(c&&n)throw h;return o(h)}c||(f&&f.then&&typeof f.then=="function"?f.then(s,o):f instanceof Error?o(f):s(f))}function o(u,...c){n||(n=!0,t(u,...c))}function s(u){o(null,u)}}const nr={basename:_4,dirname:N4,extname:R4,join:C4,sep:"/"};function _4(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');al(e);let n=0,a=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else a<0&&(s=!0,a=o+1);return a<0?"":e.slice(n,a)}if(t===e)return"";let u=-1,c=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else u<0&&(s=!0,u=o+1),c>-1&&(e.codePointAt(o)===t.codePointAt(c--)?c<0&&(a=o):(c=-1,a=u));return n===a?a=u:a<0&&(a=e.length),e.slice(n,a)}function N4(e){if(al(e),e.length===0)return".";let t=-1,n=e.length,a;for(;--n;)if(e.codePointAt(n)===47){if(a){t=n;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function R4(e){al(e);let t=e.length,n=-1,a=0,o=-1,s=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){a=t+1;break}continue}n<0&&(u=!0,n=t+1),c===46?o<0?o=t:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||n<0||s===0||s===1&&o===n-1&&o===a+1?"":e.slice(o,n)}function C4(...e){let t=-1,n;for(;++t<e.length;)al(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":I4(n)}function I4(e){al(e);const t=e.codePointAt(0)===47;let n=O4(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function O4(e,t){let n="",a=0,o=-1,s=0,u=-1,c,f;for(;++u<=e.length;){if(u<e.length)c=e.codePointAt(u);else{if(c===47)break;c=47}if(c===47){if(!(o===u-1||s===1))if(o!==u-1&&s===2){if(n.length<2||a!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(f=n.lastIndexOf("/"),f!==n.length-1){f<0?(n="",a=0):(n=n.slice(0,f),a=n.length-1-n.lastIndexOf("/")),o=u,s=0;continue}}else if(n.length>0){n="",a=0,o=u,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",a=2)}else n.length>0?n+="/"+e.slice(o+1,u):n=e.slice(o+1,u),a=u-o-1;o=u,s=0}else c===46&&s>-1?s++:s=-1}return n}function al(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const D4={cwd:L4};function L4(){return"/"}function $g(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function M4(e){if(typeof e=="string")e=new URL(e);else if(!$g(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return j4(e)}function j4(e){if(e.hostname!==""){consLine truncated
`:" ")+s.indentLines(s.containerFlow(a,c.current()),t?JC:AG))),g(),f}}function AG(e,t,n){return t===0?e:JC(e,t,n)}function JC(e,t,n){return(n?"":" ")+e}const kG=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];e0.peek=IG;function _G(){return{canContainEols:["delete"],enter:{strikethrough:RG},exit:{strikethrough:CG}}}function NG(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:kG}],handlers:{delete:e0}}}function RG(e){this.enter({type:"delete",children:[]},e)}function CG(e){this.exit(e)}function e0(e,t,n,a){const o=n.createTracker(a),s=n.enter("strikethrough");let u=o.move("~~");return u+=n.containerPhrasing(e,{...o.current(),before:u,after:"~"}),u+=o.move("~~"),s(),u}function IG(){return"~"}function OG(e){return e.length}function DG(e,t){const n=t||{},a=(n.align||[]).concat(),o=n.stringLength||OG,s=[],u=[],c=[],f=[];let g=0,h=-1;for(;++h<e.length;){const w=[],k=[];let A=-1;for(e[h].length>g&&(g=e[h].length);++A<e[h].length;){const _=LG(e[h][A]);if(n.alignDelimiters!==!1){const N=o(_);k[A]=N,(f[A]===void 0||N>f[A])&&(f[A]=N)}w.push(_)}u[h]=w,c[h]=k}let m=-1;if(typeof a=="object"&&"length"in a)for(;++m<g;)s[m]=i_(a[m]);else{const w=i_(a);for(;++m<g;)s[m]=w}m=-1;const S=[],v=[];for(;++m<g;){const w=s[m];let k="",A="";w===99?(k=":",A=":"):w===108?k=":":w===114&&(A=":");let _=n.alignDelimiters===!1?1:Math.max(1,f[m]-k.length-A.length);const N=k+"-".repeat(_)+A;n.alignDelimiters!==!1&&(_=k.length+_+A.length,_>f[m]&&(f[m]=_),v[m]=_),S[m]=N}u.splice(1,0,S),c.splice(1,0,v),h=-1;const x=[];for(;++h<u.length;){const w=u[h],k=c[h];m=-1;const A=[];for(;++m<g;){const _=w[m]||"";let N="",L="";if(n.alignDelimiters!==!1){const U=f[m]-(k[m]||0),D=s[m];D===114?N=" ".repeat(U):D===99?U%2?(N=" ".repeat(U/2+.5),L=" ".repeat(U/2-.5)):(N=" ".repeat(U/2),L=N):L=" ".repeat(U)}n.delimiterStart!==!1&&!m&&A.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&_==="")&&(n.delimiterStart!==!1||m)&&A.push(" "),n.alignDelimiters!==!1&&A.push(N),A.push(_),n.alignDelimiters!==!1&&A.push(L),n.padding!==!1&&A.push(" "),(n.delimiterEnd!==!1||m!==g-1)&&A.push("|")}x.push(n.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return x.join(`
`)}function LG(e){return e==null?"":String(e)}function i_(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function MG(e,t,n,a){const o=n.enter("blockquote"),s=n.createTracker(a);s.move("> "),s.shift(2);const u=n.indentLines(n.containerFlow(e,s.current()),jG);return o(),u}function jG(e,t,n){return">"+(n?"":" ")+e}function UG(e,t){return o_(e,t.inConstruct,!0)&&!o_(e,t.notInConstruct,!1)}function o_(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function s_(e,t,n,a){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
`&&UG(n.stack,n.unsafe[o]))return/[ \t]/.test(a.before)?"":" ";return`\\
`}function FG(e,t){const n=String(e);let a=n.indexOf(t),o=a,s=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++s>u&&(u=s):s=1,o=a+t.length,a=n.indexOf(t,o);return u}function BG(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function PG(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function zG(e,t,n,a){const o=PG(n),s=e.value||"",u=o==="`"?"GraveAccent":"Tilde";if(BG(e,n)){const m=n.enter("codeIndented"),S=n.indentLines(s,$G);return m(),S}const c=n.createTracker(a),f=o.repeat(Math.max(FG(s,o)+1,3)),g=n.enter("codeFenced");let h=c.move(f);if(e.lang){const m=n.enter(`codeFencedLang${u}`);h+=c.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...c.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${u}`);h+=c.move(" "),h+=c.move(n.safe(e.meta,{before:h,after:`
`}),n}function Wk(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Kk(e,t){const n=g4(e,t),a=n.one(e,void 0),o=a4(n),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
`},o),s}function v4(e,t){return e&&"run"in e?async function(n,a){const o=Kk(n,{file:a,...t});await e.run(o,a)}:function(n,a){return Kk(n,{file:a,...e||t})}}function Xk(e){if(e)throw e}var og,Zk;function E4(){if(Zk)return og;Zk=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(g){return typeof Array.isArray=="function"?Array.isArray(g):t.call(g)==="[object Array]"},s=function(g){if(!g||t.call(g)!=="[object Object]")return!1;var h=e.call(g,"constructor"),m=g.constructor&&g.constructor.prototype&&e.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!h&&!m)return!1;var S;for(S in g);return typeof S>"u"||e.call(g,S)},u=function(g,h){n&&h.name==="__proto__"?n(g,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):g[h.name]=h.newValue},c=function(g,h){if(h==="__proto__")if(e.call(g,h)){if(a)return a(g,h).value}else return;return g[h]};return og=function f(){var g,h,m,S,v,x,w=arguments[0],k=1,A=arguments.length,_=!1;for(typeof w=="boolean"&&(_=w,w=arguments[1]||{},k=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});k<A;++k)if(g=arguments[k],g!=null)for(h in g)m=c(w,h),S=c(g,h),w!==S&&(_&&S&&(s(S)||(v=o(S)))?(v?(v=!1,x=m&&o(m)?m:[]):x=m&&s(m)?m:{},u(w,{name:h,newValue:f(_,x,S)})):typeof S<"u"&&u(w,{name:h,newValue:S}));return w},og}var S4=E4();const sg=wc(S4);function $g(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function x4(){const e=[],t={run:n,use:a};return t;function n(...o){let s=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);c(null,...o);function c(f,...g){const h=e[++s];let m=-1;if(f){u(f);return}for(;++m<o.length;)(g[m]===null||g[m]===void 0)&&(g[m]=o[m]);o=g,h?w4(h,c)(...g):u(null,...g)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function w4(e,t){let n;return a;function a(...u){const c=e.length>u.length;let f;c&&u.push(o);try{f=e.apply(this,u)}catch(g){const h=g;if(c&&n)throw h;return o(h)}c||(f&&f.then&&typeof f.then=="function"?f.then(s,o):f instanceof Error?o(f):s(f))}function o(u,...c){n||(n=!0,t(u,...c))}function s(u){o(null,u)}}const rr={basename:T4,dirname:A4,extname:k4,join:_4,sep:"/"};function T4(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');al(e);let n=0,a=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else a<0&&(s=!0,a=o+1);return a<0?"":e.slice(n,a)}if(t===e)return"";let u=-1,c=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else u<0&&(s=!0,u=o+1),c>-1&&(e.codePointAt(o)===t.codePointAt(c--)?c<0&&(a=o):(c=-1,a=u));return n===a?a=u:a<0&&(a=e.length),e.slice(n,a)}function A4(e){if(al(e),e.length===0)return".";let t=-1,n=e.length,a;for(;--n;)if(e.codePointAt(n)===47){if(a){t=n;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function k4(e){al(e);let t=e.length,n=-1,a=0,o=-1,s=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){a=t+1;break}continue}n<0&&(u=!0,n=t+1),c===46?o<0?o=t:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||n<0||s===0||s===1&&o===n-1&&o===a+1?"":e.slice(o,n)}function _4(...e){let t=-1,n;for(;++t<e.length;)al(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":N4(n)}function N4(e){al(e);const t=e.codePointAt(0)===47;let n=C4(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function C4(e,t){let n="",a=0,o=-1,s=0,u=-1,c,f;for(;++u<=e.length;){if(u<e.length)c=e.codePointAt(u);else{if(c===47)break;c=47}if(c===47){if(!(o===u-1||s===1))if(o!==u-1&&s===2){if(n.length<2||a!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(f=n.lastIndexOf("/"),f!==n.length-1){f<0?(n="",a=0):(n=n.slice(0,f),a=n.length-1-n.lastIndexOf("/")),o=u,s=0;continue}}else if(n.length>0){n="",a=0,o=u,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",a=2)}else n.length>0?n+="/"+e.slice(o+1,u):n=e.slice(o+1,u),a=u-o-1;o=u,s=0}else c===46&&s>-1?s++:s=-1}return n}function al(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const R4={cwd:I4};function I4(){return"/"}function Gg(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function O4(e){if(typeof e=="string")e=new URL(e);else if(!Gg(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return D4(e)}function D4(e){if(e.hostname!==""){consLine truncated
`:" ")+s.indentLines(s.containerFlow(a,c.current()),t?JR:xG))),g(),f}}function xG(e,t,n){return t===0?e:JR(e,t,n)}function JR(e,t,n){return(n?"":" ")+e}const wG=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];e0.peek=NG;function TG(){return{canContainEols:["delete"],enter:{strikethrough:kG},exit:{strikethrough:_G}}}function AG(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:wG}],handlers:{delete:e0}}}function kG(e){this.enter({type:"delete",children:[]},e)}function _G(e){this.exit(e)}function e0(e,t,n,a){const o=n.createTracker(a),s=n.enter("strikethrough");let u=o.move("~~");return u+=n.containerPhrasing(e,{...o.current(),before:u,after:"~"}),u+=o.move("~~"),s(),u}function NG(){return"~"}function CG(e){return e.length}function RG(e,t){const n=t||{},a=(n.align||[]).concat(),o=n.stringLength||CG,s=[],u=[],c=[],f=[];let g=0,h=-1;for(;++h<e.length;){const w=[],k=[];let A=-1;for(e[h].length>g&&(g=e[h].length);++A<e[h].length;){const _=IG(e[h][A]);if(n.alignDelimiters!==!1){const N=o(_);k[A]=N,(f[A]===void 0||N>f[A])&&(f[A]=N)}w.push(_)}u[h]=w,c[h]=k}let m=-1;if(typeof a=="object"&&"length"in a)for(;++m<g;)s[m]=a_(a[m]);else{const w=a_(a);for(;++m<g;)s[m]=w}m=-1;const S=[],v=[];for(;++m<g;){const w=s[m];let k="",A="";w===99?(k=":",A=":"):w===108?k=":":w===114&&(A=":");let _=n.alignDelimiters===!1?1:Math.max(1,f[m]-k.length-A.length);const N=k+"-".repeat(_)+A;n.alignDelimiters!==!1&&(_=k.length+_+A.length,_>f[m]&&(f[m]=_),v[m]=_),S[m]=N}u.splice(1,0,S),c.splice(1,0,v),h=-1;const x=[];for(;++h<u.length;){const w=u[h],k=c[h];m=-1;const A=[];for(;++m<g;){const _=w[m]||"";let N="",L="";if(n.alignDelimiters!==!1){const U=f[m]-(k[m]||0),D=s[m];D===114?N=" ".repeat(U):D===99?U%2?(N=" ".repeat(U/2+.5),L=" ".repeat(U/2-.5)):(N=" ".repeat(U/2),L=N):L=" ".repeat(U)}n.delimiterStart!==!1&&!m&&A.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&_==="")&&(n.delimiterStart!==!1||m)&&A.push(" "),n.alignDelimiters!==!1&&A.push(N),A.push(_),n.alignDelimiters!==!1&&A.push(L),n.padding!==!1&&A.push(" "),(n.delimiterEnd!==!1||m!==g-1)&&A.push("|")}x.push(n.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return x.join(`
`)}function IG(e){return e==null?"":String(e)}function a_(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function OG(e,t,n,a){const o=n.enter("blockquote"),s=n.createTracker(a);s.move("> "),s.shift(2);const u=n.indentLines(n.containerFlow(e,s.current()),DG);return o(),u}function DG(e,t,n){return">"+(n?"":" ")+e}function LG(e,t){return i_(e,t.inConstruct,!0)&&!i_(e,t.notInConstruct,!1)}function i_(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function o_(e,t,n,a){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
`&&LG(n.stack,n.unsafe[o]))return/[ \t]/.test(a.before)?"":" ";return`\\
`}function MG(e,t){const n=String(e);let a=n.indexOf(t),o=a,s=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++s>u&&(u=s):s=1,o=a+t.length,a=n.indexOf(t,o);return u}function jG(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function UG(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function FG(e,t,n,a){const o=UG(n),s=e.value||"",u=o==="`"?"GraveAccent":"Tilde";if(jG(e,n)){const m=n.enter("codeIndented"),S=n.indentLines(s,BG);return m(),S}const c=n.createTracker(a),f=o.repeat(Math.max(MG(s,o)+1,3)),g=n.enter("codeFenced");let h=c.move(f);if(e.lang){const m=n.enter(`codeFencedLang${u}`);h+=c.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...c.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${u}`);h+=c.move(" "),h+=c.move(n.safe(e.meta,{before:h,after:`
`,encode:["`"],...c.current()})),m()}return h+=c.move(`
`),s&&(h+=c.move(s+`
`)),h+=c.move(f),g(),h}function $G(e,t,n){return(n?"":" ")+e}function rh(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function GG(e,t,n,a){const o=rh(n),s=o==='"'?"Quote":"Apostrophe",u=n.enter("definition");let c=n.enter("label");const f=n.createTracker(a);let g=f.move("[");return g+=f.move(n.safe(n.associationId(e),{before:g,after:"]",...f.current()})),g+=f.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),g+=f.move("<"),g+=f.move(n.safe(e.url,{before:g,after:">",...f.current()})),g+=f.move(">")):(c=n.enter("destinationRaw"),g+=f.move(n.safe(e.url,{before:g,after:e.title?" ":`
`,...f.current()}))),c(),e.title&&(c=n.enter(`title${s}`),g+=f.move(" "+o),g+=f.move(n.safe(e.title,{before:g,after:o,...f.current()})),g+=f.move(o),c()),u(),g}function HG(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function $s(e){return"&#x"+e.toString(16).toUpperCase()+";"}function yc(e,t,n){const a=oo(e),o=oo(t);return a===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}t0.peek=VG;function t0(e,t,n,a){const o=HG(n),s=n.enter("emphasis"),u=n.createTracker(a),c=u.move(o);let f=u.move(n.containerPhrasing(e,{after:o,before:c,...u.current()}));const g=f.charCodeAt(0),h=yc(a.before.charCodeAt(a.before.length-1),g,o);h.inside&&(f=$s(g)+f.slice(1));const m=f.charCodeAt(f.length-1),S=yc(a.after.charCodeAt(0),m,o);S.inside&&(f=f.slice(0,-1)+$s(m));const v=u.move(o);return s(),n.attentionEncodeSurroundingInfo={after:S.outside,before:h.outside},c+f+v}function VG(e,t,n){return n.options.emphasis||"*"}function qG(e,t){let n=!1;return th(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return n=!0,Bg}),!!((!e.depth||e.depth<3)&&Km(e)&&(t.options.setext||n))}function YG(e,t,n,a){const o=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(a);if(qG(e,n)){const h=n.enter("headingSetext"),m=n.enter("phrasing"),S=n.containerPhrasing(e,{...s.current(),before:`
`)),h+=c.move(f),g(),h}function BG(e,t,n){return(n?"":" ")+e}function rh(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function PG(e,t,n,a){const o=rh(n),s=o==='"'?"Quote":"Apostrophe",u=n.enter("definition");let c=n.enter("label");const f=n.createTracker(a);let g=f.move("[");return g+=f.move(n.safe(n.associationId(e),{before:g,after:"]",...f.current()})),g+=f.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),g+=f.move("<"),g+=f.move(n.safe(e.url,{before:g,after:">",...f.current()})),g+=f.move(">")):(c=n.enter("destinationRaw"),g+=f.move(n.safe(e.url,{before:g,after:e.title?" ":`
`,...f.current()}))),c(),e.title&&(c=n.enter(`title${s}`),g+=f.move(" "+o),g+=f.move(n.safe(e.title,{before:g,after:o,...f.current()})),g+=f.move(o),c()),u(),g}function zG(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function $s(e){return"&#x"+e.toString(16).toUpperCase()+";"}function yc(e,t,n){const a=io(e),o=io(t);return a===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}t0.peek=$G;function t0(e,t,n,a){const o=zG(n),s=n.enter("emphasis"),u=n.createTracker(a),c=u.move(o);let f=u.move(n.containerPhrasing(e,{after:o,before:c,...u.current()}));const g=f.charCodeAt(0),h=yc(a.before.charCodeAt(a.before.length-1),g,o);h.inside&&(f=$s(g)+f.slice(1));const m=f.charCodeAt(f.length-1),S=yc(a.after.charCodeAt(0),m,o);S.inside&&(f=f.slice(0,-1)+$s(m));const v=u.move(o);return s(),n.attentionEncodeSurroundingInfo={after:S.outside,before:h.outside},c+f+v}function $G(e,t,n){return n.options.emphasis||"*"}function GG(e,t){let n=!1;return th(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return n=!0,Pg}),!!((!e.depth||e.depth<3)&&Km(e)&&(t.options.setext||n))}function HG(e,t,n,a){const o=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(a);if(GG(e,n)){const h=n.enter("headingSetext"),m=n.enter("phrasing"),S=n.containerPhrasing(e,{...s.current(),before:`
`,after:`
`});return m(),h(),S+`
`+(o===1?"=":"-").repeat(S.length-(Math.max(S.lastIndexOf("\r"),S.lastIndexOf(`
`))+1))}const u="#".repeat(o),c=n.enter("headingAtx"),f=n.enter("phrasing");s.move(u+" ");let g=n.containerPhrasing(e,{before:"# ",after:`
`,...s.current()});return/^[\t ]/.test(g)&&(g=$s(g.charCodeAt(0))+g.slice(1)),g=g?u+" "+g:u,n.options.closeAtx&&(g+=" "+u),f(),c(),g}n0.peek=WG;function n0(e){return e.value||""}function WG(){return"<"}r0.peek=KG;function r0(e,t,n,a){const o=rh(n),s=o==='"'?"Quote":"Apostrophe",u=n.enter("image");let c=n.enter("label");const f=n.createTracker(a);let g=f.move("![");return g+=f.move(n.safe(e.alt,{before:g,after:"]",...f.current()})),g+=f.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),g+=f.move("<"),g+=f.move(n.safe(e.url,{before:g,after:">",...f.current()})),g+=f.move(">")):(c=n.enter("destinationRaw"),g+=f.move(n.safe(e.url,{before:g,after:e.title?" ":")",...f.current()}))),c(),e.title&&(c=n.enter(`title${s}`),g+=f.move(" "+o),g+=f.move(n.safe(e.title,{before:g,after:o,...f.current()})),g+=f.move(o),c()),g+=f.move(")"),u(),g}function KG(){return"!"}a0.peek=XG;function a0(e,t,n,a){const o=e.referenceType,s=n.enter("imageReference");let u=n.enter("label");const c=n.createTracker(a);let f=c.move("![");const g=n.safe(e.alt,{before:f,after:"]",...c.current()});f+=c.move(g+"]["),u();const h=n.stack;n.stack=[],u=n.enter("reference");const m=n.safe(n.associationId(e),{before:f,after:"]",...c.current()});return u(),n.stack=h,s(),o==="full"||!g||g!==m?f+=c.move(m+"]"):o==="shortcut"?f=f.slice(0,-1):f+=c.move("]"),f}function XG(){return"!"}i0.peek=ZG;function i0(e,t,n){let a=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s<n.unsafe.length;){const u=n.unsafe[s],c=n.compilePattern(u);let f;if(u.atBreak)for(;f=c.exec(a);){let g=f.index;a.charCodeAt(g)===10&&a.charCodeAt(g-1)===13&&g--,a=a.slice(0,g)+" "+a.slice(f.index+1)}}return o+a+o}function ZG(){return"`"}function o0(e,t){const n=Km(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}s0.peek=QG;function s0(e,t,n,a){const o=rh(n),s=o==='"'?"Quote":"Apostrophe",u=n.createTracker(a);let c,f;if(o0(e,n)){const h=n.stack;n.stack=[],c=n.enter("autolink");let m=u.move("<");return m+=u.move(n.containerPhrasing(e,{before:m,after:">",...u.current()})),m+=u.move(">"),c(),n.stack=h,m}c=n.enter("link"),f=n.enter("label");let g=u.move("[");return g+=u.move(n.containerPhrasing(e,{before:g,after:"](",...u.current()})),g+=u.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),g+=u.move("<"),g+=u.move(n.safe(e.url,{before:g,after:">",...u.current()})),g+=u.move(">")):(f=n.enter("destinationRaw"),g+=u.move(n.safe(e.url,{before:g,after:e.title?" ":")",...u.current()}))),f(),e.title&&(f=n.enter(`title${s}`),g+=u.move(" "+o),g+=u.move(n.safe(e.title,{before:g,after:o,...u.current()})),g+=u.move(o),f()),g+=u.move(")"),c(),g}function QG(e,t,n){return o0(e,n)?"<":"["}l0.peek=JG;function l0(e,t,n,a){const o=e.referenceType,s=n.enter("linkReference");let u=n.enter("label");const c=n.createTracker(a);let f=c.move("[");const g=n.containerPhrasing(e,{before:f,after:"]",...c.current()});f+=c.move(g+"]["),u();const h=n.stack;n.stack=[],u=n.enter("reference");const m=n.safe(n.associationId(e),{before:f,after:"]",...c.current()});return u(),n.stack=h,s(),o==="full"||!g||g!==m?f+=c.move(m+"]"):o==="shortcut"?f=f.slice(0,-1):f+=c.move("]"),f}function JG(){return"["}function ah(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function eH(e){const t=ah(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function tH(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function u0(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function nH(e,t,n,a){const o=n.enter("list"),s=n.bulletCurrent;let u=e.ordered?tH(n):ah(n);const c=e.ordered?u==="."?")":".":eH(n);let f=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(f=!0),u0(n)===u&&h){let m=-1;for(;++m<e.chilLine truncated
`,...s.current()});return/^[\t ]/.test(g)&&(g=$s(g.charCodeAt(0))+g.slice(1)),g=g?u+" "+g:u,n.options.closeAtx&&(g+=" "+u),f(),c(),g}n0.peek=VG;function n0(e){return e.value||""}function VG(){return"<"}r0.peek=qG;function r0(e,t,n,a){const o=rh(n),s=o==='"'?"Quote":"Apostrophe",u=n.enter("image");let c=n.enter("label");const f=n.createTracker(a);let g=f.move("![");return g+=f.move(n.safe(e.alt,{before:g,after:"]",...f.current()})),g+=f.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),g+=f.move("<"),g+=f.move(n.safe(e.url,{before:g,after:">",...f.current()})),g+=f.move(">")):(c=n.enter("destinationRaw"),g+=f.move(n.safe(e.url,{before:g,after:e.title?" ":")",...f.current()}))),c(),e.title&&(c=n.enter(`title${s}`),g+=f.move(" "+o),g+=f.move(n.safe(e.title,{before:g,after:o,...f.current()})),g+=f.move(o),c()),g+=f.move(")"),u(),g}function qG(){return"!"}a0.peek=YG;function a0(e,t,n,a){const o=e.referenceType,s=n.enter("imageReference");let u=n.enter("label");const c=n.createTracker(a);let f=c.move("![");const g=n.safe(e.alt,{before:f,after:"]",...c.current()});f+=c.move(g+"]["),u();const h=n.stack;n.stack=[],u=n.enter("reference");const m=n.safe(n.associationId(e),{before:f,after:"]",...c.current()});return u(),n.stack=h,s(),o==="full"||!g||g!==m?f+=c.move(m+"]"):o==="shortcut"?f=f.slice(0,-1):f+=c.move("]"),f}function YG(){return"!"}i0.peek=WG;function i0(e,t,n){let a=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s<n.unsafe.length;){const u=n.unsafe[s],c=n.compilePattern(u);let f;if(u.atBreak)for(;f=c.exec(a);){let g=f.index;a.charCodeAt(g)===10&&a.charCodeAt(g-1)===13&&g--,a=a.slice(0,g)+" "+a.slice(f.index+1)}}return o+a+o}function WG(){return"`"}function o0(e,t){const n=Km(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}s0.peek=KG;function s0(e,t,n,a){const o=rh(n),s=o==='"'?"Quote":"Apostrophe",u=n.createTracker(a);let c,f;if(o0(e,n)){const h=n.stack;n.stack=[],c=n.enter("autolink");let m=u.move("<");return m+=u.move(n.containerPhrasing(e,{before:m,after:">",...u.current()})),m+=u.move(">"),c(),n.stack=h,m}c=n.enter("link"),f=n.enter("label");let g=u.move("[");return g+=u.move(n.containerPhrasing(e,{before:g,after:"](",...u.current()})),g+=u.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),g+=u.move("<"),g+=u.move(n.safe(e.url,{before:g,after:">",...u.current()})),g+=u.move(">")):(f=n.enter("destinationRaw"),g+=u.move(n.safe(e.url,{before:g,after:e.title?" ":")",...u.current()}))),f(),e.title&&(f=n.enter(`title${s}`),g+=u.move(" "+o),g+=u.move(n.safe(e.title,{before:g,after:o,...u.current()})),g+=u.move(o),f()),g+=u.move(")"),c(),g}function KG(e,t,n){return o0(e,n)?"<":"["}l0.peek=XG;function l0(e,t,n,a){const o=e.referenceType,s=n.enter("linkReference");let u=n.enter("label");const c=n.createTracker(a);let f=c.move("[");const g=n.containerPhrasing(e,{before:f,after:"]",...c.current()});f+=c.move(g+"]["),u();const h=n.stack;n.stack=[],u=n.enter("reference");const m=n.safe(n.associationId(e),{before:f,after:"]",...c.current()});return u(),n.stack=h,s(),o==="full"||!g||g!==m?f+=c.move(m+"]"):o==="shortcut"?f=f.slice(0,-1):f+=c.move("]"),f}function XG(){return"["}function ah(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ZG(e){const t=ah(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function QG(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function u0(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function JG(e,t,n,a){const o=n.enter("list"),s=n.bulletCurrent;let u=e.ordered?QG(n):ah(n);const c=e.ordered?u==="."?")":".":ZG(n);let f=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(f=!0),u0(n)===u&&h){let m=-1;for(;++m<e.chilLine truncated
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:S,table:u,tableCell:f,tableRow:c}};function u(v,x,w,k){return g(h(v,w,k),v.align)}function c(v,x,w,k){const A=m(v,w,k),_=g([A]);return _.slice(0,_.indexOf(`
`))}function f(v,x,w,k){const A=w.enter("tableCell"),_=w.enter("phrasing"),N=w.containerPhrasing(v,{...k,before:s,after:s});return _(),A(),N}function g(v,x){return DG(v,{align:x,alignDelimiters:a,padding:n,stringLength:o})}function h(v,x,w){const k=v.children;let A=-1;const _=[],N=x.enter("table");for(;++A<k.length;)_[A]=m(k[A],x,w);return N(),_}function m(v,x,w){const k=v.children;let A=-1;const _=[],N=x.enter("tableRow");for(;++A<k.length;)_[A]=f(k[A],v,x,w);return N(),_}function S(v,x,w){let k=d0.inlineCode(v,x,w);return w.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function EH(){return{exit:{taskListCheckValueChecked:u_,taskListCheckValueUnchecked:u_,paragraph:xH}}}function SH(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:wH}}}function u_(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function xH(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const a=n.children[0];if(a&&a.type==="text"){const o=t.children;let s=-1,u;for(;++s<o.length;){const c=o[s];if(c.type==="paragraph"){u=c;break}}u===n&&(a.value=a.value.slice(1),a.value.length===0?n.children.shift():n.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,n.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function wH(e,t,n,a){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",c=n.createTracker(a);s&&c.move(u);let f=d0.listItem(e,t,n,{...a,...c.current()});return s&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,g)),f;function g(h){return h+u}}function TH(){return[nG(),wG(),_G(),fH(),EH()]}function AH(e){return{extensions:[rG(),TG(e),NG(),vH(e),SH()]}}const kH={tokenize:OH,partial:!0},p0={tokenize:DH,partial:!0},f0={tokenize:LH,partial:!0},g0={tokenize:MH,partial:!0},_H={tokenize:jH,partial:!0},m0={name:"wwwAutolink",tokenize:CH,previous:b0},h0={name:"protocolAutolink",tokenize:IH,previous:y0},Dr={name:"emailAutolink",tokenize:RH,previous:v0},lr={};function NH(){return{text:lr}}let Ha=48;for(;Ha<123;)lr[Ha]=Dr,Ha++,Ha===58?Ha=65:Ha===91&&(Ha=97);lr[43]=Dr;lr[45]=Dr;lr[46]=Dr;lr[95]=Dr;lr[72]=[Dr,h0];lr[104]=[Dr,h0];lr[87]=[Dr,m0];lr[119]=[Dr,m0];function RH(e,t,n){const a=this;let o,s;return u;function u(m){return!Gg(m)||!v0.call(a,a.previous)||ih(a.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(m))}function c(m){return Gg(m)?(e.consume(m),c):m===64?(e.consume(m),f):n(m)}function f(m){return m===46?e.check(_H,h,g)(m):m===45||m===95||Ut(m)?(s=!0,e.consume(m),f):h(m)}function g(m){return e.consume(m),o=!0,f}function h(m){return s&&o&&qt(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function CH(e,t,n){const a=this;return o;function o(u){return u!==87&&u!==119||!b0.call(a,a.previous)||ih(a.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(kH,e.attempt(p0,e.attempt(f0,s),n),n)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function IH(e,t,n){const a=this;let o="",s=!1;return u;function u(m){return(m===72||m===104)&&y0.call(a,a.previous)&&!ih(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(m),e.consume(m),c):n(m)}function c(m){if(qt(m)&&o.length<5)return o+=String.fromCodePoint(m),e.consume(m),c;if(m===58){const S=o.toLowerCase();if(S==="http"||S==="https")return e.consume(m),f}return n(m)}function f(m){return m===47?(e.consume(m),s?g:(s=!0,f)):n(m)}function g(m){return m===null||mc(m)||rt(m)||Ka(m)||Gc(m)?n(m):e.attempt(p0,e.attempt(f0,h),n)(m)}function h(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function OH(e,t,n){let a=0;return o;function o(u){return(u===87||u===119)&&a<3?(a++,e.consume(u),o):u===46&&a===3?(e.consume(u),s):n(u)}function s(u){return u===null?n(u):t(u)}}function DH(e,t,n){let a,o,s;return u;function u(g){return g===46||g===95?e.check(g0,f,c)(g):g===null||rt(g)||Ka(g)||g!==45&&Gc(g)?f(g):(s=!0,e.consume(g),u)}function c(g){return g===95?a=!0:(o=a,a=void 0),e.consume(g),u}function f(g){return o||a||!s?n(g):t(g)}}function LH(e,t){let n=0,a=0;return o;function o(u){return u===40?(n++,e.consume(u),o):u===41&&a<n?s(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(g0,t,s)(u):u===null||rt(u)||Ka(u)?t(u):(e.consume(u),o)}function s(u){return u===41&&a++,e.consume(u),o}}function MH(e,t,n){return a;function a(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),a):c===38?(e.consume(c),s):c===93?(e.consume(c),o):c===60||c===null||rt(c)||Ka(c)?t(c):n(c)}function o(c){return c===null||c===40||c===91||rt(c)||Ka(c)?t(c):a(c)}function s(c){return qt(c)?u(c):n(c)}function u(c){re Line truncated
`),n=[];let a=0;for(;a<t.length;){const o=t[a].match(/^===\s+"([^"]+)"\s*$/);if(!o){n.push(t[a]),a++;continue}const s=o[1];for(a++;a<t.length&&t[a].trim()==="";)a++;const u=[];for(;a<t.length&&!(/^===\s+"[^"]+"\s*$/.test(t[a])||t[a].trim()===""&&a+1<t.length&&/^===\s+"[^"]+"\s*$/.test(t[a+1]));){if(t[a].startsWith(" ")||t[a].trimStart().startsWith("```")){u.push(t[a].replace(/^ /,"")),a++;continue}if(u.length>0&&t[a].trim()===""){u.push(""),a++;continue}break}n.push(`### ${u5}${s}`),n.push(""),n.push(...u),n.push("")}return n.join(`
`)}function f5(e){let t=d5(e);return t=c5(t),t=p5(t),t}const g5="modulepreload",m5=function(e){return"/"+e},d_={},Hg=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){let f=function(g){return Promise.all(g.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=u?.nonce||u?.getAttribute("nonce");o=f(n.map(g=>{if(g=m5(g),g in d_)return;d_[g]=!0;const h=g.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${m}`))return;const S=document.createElement("link");if(S.rel=h?"stylesheet":g5,h||(S.as="script"),S.crossOrigin="",S.href=g,c&&S.setAttribute("nonce",c),document.head.appendChild(S),h)return new Promise((v,x)=>{S.addEventListener("load",v),S.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${g}`)))})}))}function s(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return o.then(u=>{for(const c of u||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},h5={theme:"base",themeVariables:{background:"transparent",mainBkg:"#0d9488",primaryColor:"#0d9488",primaryBorderColor:"#14b8a6",primaryTextColor:"#ffffff",secondaryColor:"#6366f1",secondaryBorderColor:"#818cf8",secondaryTextColor:"#ffffff",tertiaryColor:"#e11d48",tertiaryBorderColor:"#fb7185",tertiaryTextColor:"#ffffff",textColor:"#f1f5f9",labelTextColor:"#f1f5f9",lineColor:"#94a3b8",arrowheadColor:"#cbd5e1",nodeBorder:"#14b8a6",clusterBkg:"rgba(13, 148, 136, 0.08)",clusterBorder:"rgba(20, 184, 166, 0.4)",defaultLinkColor:"#94a3b8",edgeLabelBackground:"rgba(15, 23, 42, 0.85)",nodeTextColor:"#ffffff",actorBkg:"#0d9488",actorBorder:"#14b8a6",actorTextColor:"#ffffff",actorLineColor:"#64748b",signalColor:"#cbd5e1",signalTextColor:"#f1f5f9",activationBorderColor:"#14b8a6",activationBkgColor:"rgba(13, 148, 136, 0.2)",sequenceNumberColor:"#ffffff",noteBkgColor:"rgba(99, 102, 241, 0.2)",noteBorderColor:"#818cf8",noteTextColor:"#f1f5f9",titleColor:"#f8fafc",fontFamily:'"Inter", system-ui, -apple-system, sans-serif',fontSize:"16px"}},b5={theme:"base",themeVariables:{background:"transparent",mainBkg:"#0d9488",primaryColor:"#0d9488",primaryBorderColor:"#0f766e",primaryTextColor:"#ffffff",secondaryColor:"#6366f1",secondaryBorderColor:"#4f46e5",secondaryTextColor:"#ffffff",tertiaryColor:"#e11d48",tertiaryBorderColor:"#be123c",tertiaryTextColor:"#ffffff",textColor:"#1e293b",labelTextColor:"#334155",lineColor:"#94a3b8",arrowheadColor:"#64748b",nodeBorder:"#0f766e",clusterBkg:"rgba(13, 148, 136, 0.06)",clusterBorder:"rgba(15, 118, 110, 0.3)",defaultLinkColor:"#94a3b8",edgeLabelBackground:"rgba(255, 255, 255, 0.9)",nodeTextColor:"#ffffff",actorBkg:"#0d9488",actorBorder:"#0f766e",actorTextColor:"#ffffff",actorLineColor:"#cbd5e1",signalColor:"#64748b",signalTextColor:"#1e293b",noteBkgColor:"rgba(99, 102, 241, 0.1)",noteBorderColor:"#6366f1",noteTextColor:"#1e293b",titleColor:"#0f172a",fontFamily:'"Inter", system-ui, -apple-system, sans-serif',fontSize:"16px"}};function y5(){return document.documentElement.classList.contains("dark")}function v5(e){return{startOnLoad:!1,securityLevel:"strict",...e?h5:b5,flowchart:{useMaxWidth:!0,htmlLabels:!0,curve:"basis"},sequence:{useMaxWidth:!0,wrap:!0},er:{useMaxWidth:!0},gantt:{useMaxWidth:!0}}}function E5(e,t){const n=Math.max(Math.floor(t),320);return e.replace(/<svg([^>]*)>/,(a,o)=>`<svg${o.replace(/\swidth="[^"]*"/g,"").replace(/\sheight="[^"]*"/g,"").replace(/\sstyle="[^"]*"/g,"")} width="${n}" style="width:100%;max-width:100%;height:auto;display:block;">`)}let p_=0;function S5(e){return p_+=1,`mermaid-${e.replace(/:/g,"")}-${p_}`}function bg({chart:e}){const t=E.useId(),n=E.useRef(null),a=E.useRef(null),o=E.useRef(void 0),[s,u]=E.useState("loading"),[c,f]=E.useState(""),[g,h]=E.useState("");return E.useEffect(()=>{const m=n.current;if(!m)return;let S=!1;const v=async()=>{u("loading"),f(""),h("");const k=(await Hg(async()=>{const{default:L}=await import("./mermaid.core.js").then(U=>U.cb);return{default:L}},[])).default;k.initialize(v5(y5()));const A=getComputedStyle(m),_=parseFloat(A.paddingLeft)+parseFloat(A.paddingRight),N=m.clientWidth-_;try{const{svg:L,bindFunctions:U}=await k.render(S5(t),e);if(S)return;o.current=U,h(E5(L,N)),u("ready")}catch(L){if(S)return;u("error"),f(L instanceof Error?L.message:"Failed to render diagram")}};v();const x=new ResizeObserver(()=>{v()});x.observe(m);const w=new MutationObserver(()=>{v()});return w.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>{S=!0,x.disconnect(),w.disconnect()}},[e,t]),E.useEffect(()=>{s!=="ready"||!a.current||o.current?.(a.current)},[s,g]),s==="error"?p.jsx("pre",{className:"mermaid-diagram mermaid-error text-destructive text-sm my-4 p-4 rounded-lg border border-destructive/30 bg-destructive/5 overflow-x-auto",children:c}):p.jsxs("div",{ref:n,className:`mermaiLine truncated
`)===-1?p.jsx("code",{className:"bg-primary/10 text-primary px-1.5 py-0.5 rounded text-sm font-mono",children:x}):p.jsx("code",{className:`block font-mono text-foreground ${v??""}`,children:x}),pre:({children:v})=>{if(E.isValidElement(v)&&v.type===bg)return v;const x=m(v);return x?p.jsx(bg,{chart:x}):p.jsx("pre",{className:"bg-muted text-foreground border border-border p-4 rounded-lg text-sm overflow-auto my-4 font-mono whitespace-pre",children:v})},table:({children:v})=>p.jsx("div",{className:"overflow-auto my-4",children:p.jsx("table",{className:"w-full border-collapse text-sm",children:v})}),thead:({children:v})=>p.jsx("thead",{className:"bg-muted/50",children:v}),tr:({children:v})=>p.jsx("tr",{className:"border-b",children:v}),th:({children:v})=>p.jsx("th",{className:"px-4 py-2 text-left font-medium",children:v}),td:({children:v})=>p.jsx("td",{className:"px-4 py-2 text-foreground",children:v}),hr:()=>p.jsx("hr",{className:"my-6 border-border"}),strong:({children:v})=>p.jsx("strong",{className:"font-semibold text-foreground",children:v}),em:({children:v})=>p.jsx("em",{children:v})};return n?p.jsxs("main",{id:"main-content",className:"flex-1 min-w-0 w-full p-8",children:[p.jsx(j5,{selectedItem:n}),u&&!o&&p.jsx("div",{className:"text-muted-foreground",children:"Loading content..."}),o?p.jsx("article",{ref:f,className:`prose prose-neutral dark:prose-invert max-w-none prose-pre:bg-muted prose-pre:text-foreground prose-code:text-foreground${u?" opacity-60":""}`,children:p.jsx(XC,{remarkPlugins:[E0],components:S,children:o})},a):u?null:p.jsx("div",{className:"bg-muted/50 border rounded-lg p-6",children:p.jsxs("p",{className:"text-muted-foreground",children:["Content for ",p.jsx("strong",{className:"text-primary",children:n.title})," would be displayed here."]})})]}):p.jsxs("main",{className:"flex-1 p-8 max-w-3xl",children:[p.jsx("h1",{className:"text-4xl font-bold tracking-tight mb-4",children:e.site?.title||"Documentation"}),p.jsx("p",{className:"text-muted-foreground text-lg mb-8",children:e.site?.description||"Welcome to the documentation."}),p.jsx(Ji,{className:"my-8"}),p.jsx("h2",{className:"text-2xl font-semibold mb-4 text-primary",children:"Theme Configuration"}),p.jsxs("div",{className:"bg-muted/50 border rounded-lg p-4 mb-6",children:[p.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:p.jsx("strong",{children:"Current theme from YAML:"})}),p.jsx("pre",{className:"bg-muted text-foreground border border-border p-3 rounded-lg text-sm overflow-auto",children:`site:
`))}function f(v,x,w,k){const A=w.enter("tableCell"),_=w.enter("phrasing"),N=w.containerPhrasing(v,{...k,before:s,after:s});return _(),A(),N}function g(v,x){return RG(v,{align:x,alignDelimiters:a,padding:n,stringLength:o})}function h(v,x,w){const k=v.children;let A=-1;const _=[],N=x.enter("table");for(;++A<k.length;)_[A]=m(k[A],x,w);return N(),_}function m(v,x,w){const k=v.children;let A=-1;const _=[],N=x.enter("tableRow");for(;++A<k.length;)_[A]=f(k[A],v,x,w);return N(),_}function S(v,x,w){let k=d0.inlineCode(v,x,w);return w.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function bH(){return{exit:{taskListCheckValueChecked:l_,taskListCheckValueUnchecked:l_,paragraph:vH}}}function yH(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:EH}}}function l_(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function vH(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const a=n.children[0];if(a&&a.type==="text"){const o=t.children;let s=-1,u;for(;++s<o.length;){const c=o[s];if(c.type==="paragraph"){u=c;break}}u===n&&(a.value=a.value.slice(1),a.value.length===0?n.children.shift():n.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,n.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function EH(e,t,n,a){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",c=n.createTracker(a);s&&c.move(u);let f=d0.listItem(e,t,n,{...a,...c.current()});return s&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,g)),f;function g(h){return h+u}}function SH(){return[J4(),EG(),TG(),cH(),bH()]}function xH(e){return{extensions:[eG(),SG(e),AG(),hH(e),yH()]}}const wH={tokenize:CH,partial:!0},p0={tokenize:RH,partial:!0},f0={tokenize:IH,partial:!0},g0={tokenize:OH,partial:!0},TH={tokenize:DH,partial:!0},m0={name:"wwwAutolink",tokenize:_H,previous:b0},h0={name:"protocolAutolink",tokenize:NH,previous:y0},Lr={name:"emailAutolink",tokenize:kH,previous:v0},ur={};function AH(){return{text:ur}}let Ha=48;for(;Ha<123;)ur[Ha]=Lr,Ha++,Ha===58?Ha=65:Ha===91&&(Ha=97);ur[43]=Lr;ur[45]=Lr;ur[46]=Lr;ur[95]=Lr;ur[72]=[Lr,h0];ur[104]=[Lr,h0];ur[87]=[Lr,m0];ur[119]=[Lr,m0];function kH(e,t,n){const a=this;let o,s;return u;function u(m){return!Hg(m)||!v0.call(a,a.previous)||ih(a.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(m))}function c(m){return Hg(m)?(e.consume(m),c):m===64?(e.consume(m),f):n(m)}function f(m){return m===46?e.check(TH,h,g)(m):m===45||m===95||Pt(m)?(s=!0,e.consume(m),f):h(m)}function g(m){return e.consume(m),o=!0,f}function h(m){return s&&o&&Wt(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function _H(e,t,n){const a=this;return o;function o(u){return u!==87&&u!==119||!b0.call(a,a.previous)||ih(a.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(wH,e.attempt(p0,e.attempt(f0,s),n),n)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function NH(e,t,n){const a=this;let o="",s=!1;return u;function u(m){return(m===72||m===104)&&y0.call(a,a.previous)&&!ih(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(m),e.consume(m),c):n(m)}function c(m){if(Wt(m)&&o.length<5)return o+=String.fromCodePoint(m),e.consume(m),c;if(m===58){const S=o.toLowerCase();if(S==="http"||S==="https")return e.consume(m),f}return n(m)}function f(m){return m===47?(e.consume(m),s?g:(s=!0,f)):n(m)}function g(m){return m===null||mc(m)||ot(m)||Ka(m)||Hc(m)?n(m):e.attempt(p0,e.attempt(f0,h),n)(m)}function h(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function CH(e,t,n){let a=0;return o;function o(u){return(u===87||u===119)&&a<3?(a++,e.consume(u),o):u===46&&a===3?(e.consume(u),s):n(u)}function s(u){return u===null?n(u):t(u)}}function RH(e,t,n){let a,o,s;return u;function u(g){return g===46||g===95?e.check(g0,f,c)(g):g===null||ot(g)||Ka(g)||g!==45&&Hc(g)?f(g):(s=!0,e.consume(g),u)}function c(g){return g===95?a=!0:(o=a,a=void 0),e.consume(g),u}function f(g){return o||a||!s?n(g):t(g)}}function IH(e,t){let n=0,a=0;return o;function o(u){return u===40?(n++,e.consume(u),o):u===41&&a<n?s(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(g0,t,s)(u):u===null||ot(u)||Ka(u)?t(u):(e.consume(u),o)}function s(u){return u===41&&a++,e.consume(u),o}}function OH(e,t,n){return a;function a(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),a):c===38?(e.consume(c),s):c===93?(e.consume(c),o):c===60||c===null||ot(c)||Ka(c)?t(c):n(c)}function o(c){return c===null||c===40||c===91||ot(c)||Ka(c)?t(c):a(c)}function s(c){return Wt(c)?u(c):n(c)}function u(c){re Line truncated
`),n=[];let a=0;for(;a<t.length;){const o=t[a].match(/^===\s+"([^"]+)"\s*$/);if(!o){n.push(t[a]),a++;continue}const s=o[1];for(a++;a<t.length&&t[a].trim()==="";)a++;const u=[];for(;a<t.length&&!(/^===\s+"[^"]+"\s*$/.test(t[a])||t[a].trim()===""&&a+1<t.length&&/^===\s+"[^"]+"\s*$/.test(t[a+1]));){if(t[a].startsWith(" ")||t[a].trimStart().startsWith("```")){u.push(t[a].replace(/^ /,"")),a++;continue}if(u.length>0&&t[a].trim()===""){u.push(""),a++;continue}break}n.push(`### ${p5}${s}`),n.push(""),n.push(...u),n.push("")}return n.join(`
`)}function h5(e){let t=g5(e);return t=f5(t),t=m5(t),t}const b5="modulepreload",y5=function(e){return"/"+e},d_={},Vg=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){let f=function(g){return Promise.all(g.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=u?.nonce||u?.getAttribute("nonce");o=f(n.map(g=>{if(g=y5(g),g in d_)return;d_[g]=!0;const h=g.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${m}`))return;const S=document.createElement("link");if(S.rel=h?"stylesheet":b5,h||(S.as="script"),S.crossOrigin="",S.href=g,c&&S.setAttribute("nonce",c),document.head.appendChild(S),h)return new Promise((v,x)=>{S.addEventListener("load",v),S.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${g}`)))})}))}function s(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return o.then(u=>{for(const c of u||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},v5={theme:"base",themeVariables:{background:"transparent",mainBkg:"#0d9488",primaryColor:"#0d9488",primaryBorderColor:"#14b8a6",primaryTextColor:"#ffffff",secondaryColor:"#6366f1",secondaryBorderColor:"#818cf8",secondaryTextColor:"#ffffff",tertiaryColor:"#e11d48",tertiaryBorderColor:"#fb7185",tertiaryTextColor:"#ffffff",textColor:"#f1f5f9",labelTextColor:"#f1f5f9",lineColor:"#94a3b8",arrowheadColor:"#cbd5e1",nodeBorder:"#14b8a6",clusterBkg:"rgba(13, 148, 136, 0.08)",clusterBorder:"rgba(20, 184, 166, 0.4)",defaultLinkColor:"#94a3b8",edgeLabelBackground:"rgba(15, 23, 42, 0.85)",nodeTextColor:"#ffffff",actorBkg:"#0d9488",actorBorder:"#14b8a6",actorTextColor:"#ffffff",actorLineColor:"#64748b",signalColor:"#cbd5e1",signalTextColor:"#f1f5f9",activationBorderColor:"#14b8a6",activationBkgColor:"rgba(13, 148, 136, 0.2)",sequenceNumberColor:"#ffffff",noteBkgColor:"rgba(99, 102, 241, 0.2)",noteBorderColor:"#818cf8",noteTextColor:"#f1f5f9",titleColor:"#f8fafc",fontFamily:'"Inter", system-ui, -apple-system, sans-serif',fontSize:"16px"}},E5={theme:"base",themeVariables:{background:"transparent",mainBkg:"#0d9488",primaryColor:"#0d9488",primaryBorderColor:"#0f766e",primaryTextColor:"#ffffff",secondaryColor:"#6366f1",secondaryBorderColor:"#4f46e5",secondaryTextColor:"#ffffff",tertiaryColor:"#e11d48",tertiaryBorderColor:"#be123c",tertiaryTextColor:"#ffffff",textColor:"#1e293b",labelTextColor:"#334155",lineColor:"#94a3b8",arrowheadColor:"#64748b",nodeBorder:"#0f766e",clusterBkg:"rgba(13, 148, 136, 0.06)",clusterBorder:"rgba(15, 118, 110, 0.3)",defaultLinkColor:"#94a3b8",edgeLabelBackground:"rgba(255, 255, 255, 0.9)",nodeTextColor:"#ffffff",actorBkg:"#0d9488",actorBorder:"#0f766e",actorTextColor:"#ffffff",actorLineColor:"#cbd5e1",signalColor:"#64748b",signalTextColor:"#1e293b",noteBkgColor:"rgba(99, 102, 241, 0.1)",noteBorderColor:"#6366f1",noteTextColor:"#1e293b",titleColor:"#0f172a",fontFamily:'"Inter", system-ui, -apple-system, sans-serif',fontSize:"16px"}};function S5(){return document.documentElement.classList.contains("dark")}function x5(e){return{startOnLoad:!1,securityLevel:"strict",...e?v5:E5,flowchart:{useMaxWidth:!0,htmlLabels:!0,curve:"basis"},sequence:{useMaxWidth:!0,wrap:!0},er:{useMaxWidth:!0},gantt:{useMaxWidth:!0}}}function w5(e,t){const n=Math.max(Math.floor(t),320);return e.replace(/<svg([^>]*)>/,(a,o)=>`<svg${o.replace(/\swidth="[^"]*"/g,"").replace(/\sheight="[^"]*"/g,"").replace(/\sstyle="[^"]*"/g,"")} width="${n}" style="width:100%;max-width:100%;height:auto;display:block;">`)}let p_=0;function T5(e){return p_+=1,`mermaid-${e.replace(/:/g,"")}-${p_}`}function yg({chart:e}){const t=E.useId(),n=E.useRef(null),a=E.useRef(null),o=E.useRef(void 0),[s,u]=E.useState("loading"),[c,f]=E.useState(""),[g,h]=E.useState("");return E.useEffect(()=>{const m=n.current;if(!m)return;let S=!1;const v=async()=>{u("loading"),f(""),h("");const k=(await Vg(async()=>{const{default:L}=await import("./mermaid.core.js").then(U=>U.cb);return{default:L}},[])).default;k.initialize(x5(S5()));const A=getComputedStyle(m),_=parseFloat(A.paddingLeft)+parseFloat(A.paddingRight),N=m.clientWidth-_;try{const{svg:L,bindFunctions:U}=await k.render(T5(t),e);if(S)return;o.current=U,h(w5(L,N)),u("ready")}catch(L){if(S)return;u("error"),f(L instanceof Error?L.message:"Failed to render diagram")}};v();const x=new ResizeObserver(()=>{v()});x.observe(m);const w=new MutationObserver(()=>{v()});return w.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>{S=!0,x.disconnect(),w.disconnect()}},[e,t]),E.useEffect(()=>{s!=="ready"||!a.current||o.current?.(a.current)},[s,g]),s==="error"?p.jsx("pre",{className:"mermaid-diagram mermaid-error text-destructive text-sm my-4 p-4 rounded-lg border border-destructive/30 bg-destructive/5 overflow-x-auto",children:c}):p.jsxs("div",{ref:n,className:`mermaiLine truncated
`)===-1?p.jsx("code",{className:"bg-primary/10 text-primary px-1.5 py-0.5 rounded text-sm font-mono",children:x}):p.jsx("code",{className:`block font-mono text-foreground ${v??""}`,children:x}),pre:({children:v})=>{if(E.isValidElement(v)&&v.type===yg)return v;const x=m(v);return x?p.jsx(yg,{chart:x}):p.jsx("pre",{className:"bg-muted text-foreground border border-border p-4 rounded-lg text-sm overflow-auto my-4 font-mono whitespace-pre",children:v})},table:({children:v})=>p.jsx("div",{className:"overflow-auto my-4",children:p.jsx("table",{className:"w-full border-collapse text-sm",children:v})}),thead:({children:v})=>p.jsx("thead",{className:"bg-muted/50",children:v}),tr:({children:v})=>p.jsx("tr",{className:"border-b",children:v}),th:({children:v})=>p.jsx("th",{className:"px-4 py-2 text-left font-medium",children:v}),td:({children:v})=>p.jsx("td",{className:"px-4 py-2 text-foreground",children:v}),hr:()=>p.jsx("hr",{className:"my-6 border-border"}),strong:({children:v})=>p.jsx("strong",{className:"font-semibold text-foreground",children:v}),em:({children:v})=>p.jsx("em",{children:v})};return n?p.jsx("main",{id:"main-content",className:"docs-main flex-1 min-w-0",children:p.jsxs("div",{className:"docs-main-inner mx-auto w-full max-w-[720px] px-6 py-8 lg:px-8",children:[p.jsx(B5,{selectedItem:n}),u&&!o&&p.jsx("div",{className:"text-muted-foreground",children:"Loading content..."}),o?p.jsx("article",{ref:f,className:`prose prose-neutral dark:prose-invert max-w-none prose-pre:bg-muted prose-pre:text-foreground prose-code:text-foreground${u?" opacity-60":""}`,children:p.jsx(XR,{remarkPlugins:[E0],components:S,children:o})},a):u?null:p.jsx("div",{className:"bg-muted/50 border rounded-lg p-6",children:p.jsxs("p",{className:"text-muted-foreground",children:["Content for ",p.jsx("strong",{className:"text-primary",children:n.title})," would be displayed here."]})})]})}):p.jsx("main",{id:"main-content",className:"docs-main flex-1 min-w-0",children:p.jsxs("div",{className:"docs-main-inner mx-auto w-full max-w-[720px] px-6 py-8 lg:px-8",children:[p.jsx("h1",{className:"text-4xl font-bold tracking-tight mb-4",children:e.site?.title||"Documentation"}),p.jsx("p",{className:"text-muted-foreground text-lg mb-8",children:e.site?.description||"Welcome to the documentation."}),p.jsx(Ns,{className:"my-8"}),p.jsx("h2",{className:"text-2xl font-semibold mb-4 text-primary",children:"Theme Configuration"}),p.jsxs("div",{className:"bg-muted/50 border rounded-lg p-4 mb-6",children:[p.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:p.jsx("strong",{children:"Current theme from YAML:"})}),p.jsx("pre",{className:"bg-muted text-foreground border border-border p-3 rounded-lg text-sm overflow-auto",children:`site:
theme:
preset: "${g?.preset||"zinc"}"
radius: "${g?.radius||"md"}"
darkMode: ${g?.darkMode!==!1}`})]}),p.jsx("h3",{className:"text-lg font-medium mb-3",children:"Available Presets"}),p.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:Object.keys(YL).map(v=>p.jsx("span",{className:`px-3 py-1 rounded-full text-sm ${v===(g?.preset||"zinc")?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:v},v))}),p.jsxs("p",{className:"text-muted-foreground mb-4",children:[p.jsx("strong",{children:"Click any item in the sidebar"})," to navigate."]}),p.jsx("h2",{className:"text-2xl font-semibold mt-8 mb-4",children:"Routes"}),p.jsxs("p",{className:"text-muted-foreground mb-4",children:[p.jsx("span",{className:"font-medium text-primary",children:t.routes?.length||0})," routes configured."]}),p.jsx("pre",{className:"bg-muted text-foreground border border-border p-4 rounded-lg text-sm overflow-auto",children:JSON.stringify(t.routes?.slice(0,3),null,2)})]})}function Vu({config:e,templateKey:t="docs"}){const n=e.templates?.[t]?.slots?.footer,a=n?.ref,s=(a?e.components?.[a]:e.components?.footer)?.props||n?.props;return p.jsx("footer",{className:"border-t border-border/50 py-8 px-6 bg-muted/20",children:p.jsxs("div",{className:"max-w-screen-2xl mx-auto flex flex-col sm:flex-row justify-between items-center gap-4 text-sm text-muted-foreground",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-5 h-5 rounded bg-gradient-to-br from-primary/60 to-primary flex items-center justify-center",children:p.jsx("span",{className:"text-primary-foreground text-[8px] font-bold",children:"AI"})}),p.jsx("span",{children:s?.text||`© ${new Date().getFullYear()} PraisonAIUI`})]}),p.jsx("nav",{className:"flex items-center gap-6",children:s?.links?.map(u=>p.jsx("a",{href:u.href,className:"hover:text-foreground transition-colors",children:u.label},u.href))})]})})}const U5=()=>({taskLists:[],collapsed:!1}),$n=new Map,Vg=100,F5=1440*60*1e3;function B5(){const e=Date.now(),t=Array.from($n.entries());for(const[n,a]of t)e-a.lastAccessed>F5&&$n.delete(n);if($n.size>Vg){const n=Array.from($n.entries()).sort(([,o],[,s])=>o.lastAccessed-s.lastAccessed),a=$n.size-Vg;for(let o=0;o<a;o++)$n.delete(n[o][0])}}function qg(e){if(!$n.has(e))$n.size>=Vg&&B5(),$n.set(e,{state:U5(),listeners:new Set,lastAccessed:Date.now()});else{const t=$n.get(e);t.lastAccessed=Date.now()}return $n.get(e)}function sh(e,t){const n=qg(e),a=t(n.state);n.state=a,n.listeners.forEach(o=>o())}function P5(e,t){sh(e,n=>{const a=n.taskLists.filter(s=>s.id!==t.task_list_id),o={id:t.task_list_id,name:t.name,tasks:t.tasks,stats:w0(t.tasks),sequence:t.sequence,created_at:t.timestamp,updated_at:t.timestamp};return{...n,taskLists:[...a,o],collapsed:n.taskLists.length===0?t.tasks.length<=1:n.collapsed}})}function z5(e,t){sh(e,n=>{const a=n.taskLists.map(o=>o.id===t.task_list_id?{...o,tasks:t.tasks,stats:w0(t.tasks),sequence:t.sequence,updated_at:t.timestamp}:o);return{...n,taskLists:a}})}function w0(e){return e.reduce((t,n)=>(t.total+=1,t[n.status.toLowerCase()]+=1,t),{total:0,ready:0,running:0,done:0,failed:0})}function $5(e,t){sh(e,n=>({...n,collapsed:t}))}function G5(e){const[,t]=E.useState({});return E.useEffect(()=>{const n=qg(e),a=()=>t({});return n.listeners.add(a),()=>{n.listeners.delete(a)}},[e]),qg(e).state}function H5(e,t){return t.type==="task_list.init"?(P5(e,t),!0):t.type==="task_list.update"?(z5(e,t),!0):!1}const T0=()=>({isStreaming:!1,currentResponse:"",toolCalls:[],thinkingSteps:[],pendingElements:[]}),qa=new Map;function Wc(e){return qa.has(e)||qa.set(e,{state:T0(),listeners:new Set,abortController:null,toolCallMap:new Map}),qa.get(e)}function qu(e){return e?Wc(e).state:T0()}function V5(e,t){const n=Wc(e);return n.listeners.add(t),()=>n.listeners.delete(t)}function Cn(e,t){const n=Wc(e);n.state={...n.state,...t},n.listeners.forEach(a=>a())}async function q5(e){const t=qa.get(e);if(t){t.abortController?.abort(),t.abortController=null,Cn(e,{isStreaming:!1});try{await fetch("/cancel",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:e})})}catch{}}}function Y5(e,t,n,a){const o=Wc(e);if(o.state.isStreaming)return;Cn(e,{isStreaming:!0,currentResponse:"",toolCalls:[],thinkingSteps:[],pendingElements:[]}),o.toolCallMap=new Map;const s=new AbortController;o.abortController=s,W5(e,t,n,s,a)}async function W5(e,t,n,a,o){try{const s=await fetch("/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:t,session_id:e,agent:n}),signal:a.signal});if(!s.ok)throw new Error(`HTTP ${s.status}`);const u=s.body?.getReader();if(!u)throw new Error("No response body");const c=new TextDecoder;let f="";for(;;){const{done:g,value:h}=await u.read();if(g)break;f+=c.decode(h,{stream:!0});const m=f.split(`
`);f=m.pop()||"";for(const S of m)if(S.startsWith("data: "))try{const v=JSON.parse(S.slice(6));K5(e,v,o)}catch{}}}catch(s){if(s.name!=="AbortError"){const u=qa.get(e);u&&Cn(e,{thinkingSteps:[...u.state.thinkingSteps,`Error: ${s.message}`]})}}finally{const s=qa.get(e);s&&(s.abortController=null),Cn(e,{isStreaming:!1}),o?.onEnd?.()}}function K5(e,t,n){const a=qa.get(e);if(!a)return;const o=a.toolCallMap;switch(t.type){case"session":t.session_id&&typeof t.session_id=="string"&&n?.onSessionId?.(t.session_id);break;case"token":case"run_content":case"team_run_content":{const u=t.token??t.content??"";u&&Cn(e,{currentResponse:a.state.currentResponse+u});break}case"message":case"run_completed":case"team_run_completed":{const u=t.content;u&&Cn(e,{currentResponse:u});break}case"thinking":case"reasoning_step":case"team_reasoning_step":{const u=t.step;u&&Cn(e,{thinkingSteps:[...a.state.thinkingSteps,u]});break}case"reasoning_started":case"team_reasoning_started":Cn(e,{thinkingSteps:[...a.state.thinkingSteps,"Starting reasoning..."]});break;case"tool_call":case"tool_call_started":case"team_tool_call_started":{const u={name:t.name,description:t.description,icon:t.icon,step_number:t.step_number,status:"running",tool_call_id:t.tool_call_id,args:t.args};u.tool_call_id&&o.set(u.tool_call_id,u);const c=g_(a.state.toolCalls,u);Cn(e,{toolCalls:c});break}case"tool_call_completed":case"team_tool_call_completed":{const u=t.extra_data,c=t.a2ui??u?.a2ui,f=t.elements??u?.elements,g={name:t.name,description:t.description,icon:t.icon,step_number:t.step_number,status:"done",tool_call_id:t.tool_call_id,args:t.args,formatted_result:t.formatted_result,result:t.result,surface_id:t.surface_id??u?.surface_id,a2ui:c?.length?{messages:c,surface_id:t.surface_id??u?.surface_id}:void 0,elements:f};g.tool_call_id&&o.set(g.tool_call_id,g);const h=g_(a.state.toolCalls,g),m=f?.length?[...a.state.pendingElements,...f]:a.state.pendingElements;Cn(e,{toolCalls:h,pendingElements:m});break}case"message_element":{const u=t.extra_data,c=t.element??u?.element;c&&Cn(e,{pendingElements:[...a.state.pendingElements,c]});break}case"error":case"run_error":case"team_run_error":{const u=t.error;u&&Cn(e,{thinkingSteps:[...a.state.thinkingSteps,`Error: ${u}`]});break}case"approval_required":case"approval_pending":case"run_paused":{const u=t.extra_data;if(u?.type==="approval_required"){const c=u;window.dispatchEvent(new CustomEvent("aiui:approval-required",{detail:c}))}break}case"end":case"done":case"run_cancelled":case"team_run_cancelled":break;default:H5(e,t);break}}function g_(e,t){if(t.tool_call_id){const n=e.findIndex(a=>a.tool_call_id===t.tool_call_id);if(n>=0){const a=[...e];return a[n]={...a[n],...t},a}}return[...e,t]}function A0(e={}){const{externalSessionId:t}=e,[n,a]=E.useState(()=>qu(t));E.useEffect(()=>{if(!t){a(qu(null));return}return a(qu(t)),V5(t,()=>{a(qu(t))})},[t]);const o=E.useCallback((u,c)=>{const f=t??`new-${Date.now()}`;Y5(f,u,c,{onSessionId:g=>{e.onSessionId?.(g)},onEnd:e.onEnd})},[t,e.onSessionId,e.onEnd]),s=E.useCallback(()=>{t&&q5(t)},[t]);return{isStreaming:n.isStreaming,currentResponse:n.currentResponse,toolCalls:n.toolCalls,thinkingSteps:n.thinkingSteps,pendingElements:n.pendingElements,sendMessage:o,cancel:s}}function X5(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function Z5(e,t){if(e==null)return{};var n,a,o=X5(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Yg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Q5(e){if(Array.isArray(e))return Yg(e)}function J5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function e6(e,t){if(e){if(typeof e=="string")return Yg(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yg(e,t):void 0}}function t6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wg(e){return Q5(e)||J5(e)||e6(e)||t6()}function Gs(e){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}function n6(e,t){if(Gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(Gs(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r6(e){var t=n6(e,"string");return Gs(t)=="symbol"?t:t+""}function k0(e,t,n){return(t=r6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kg(){return Kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Kg.apply(null,arguments)}function m_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m_(Object(n),!0).forEach(function(a){k0(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m_(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function a6(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[ Line truncated
`))})}function f6(e){var t=e.codeString,n=e.codeStyle,a=e.containerStyle,o=a===void 0?{float:"left",paddingRight:"10px"}:a,s=e.numberStyle,u=s===void 0?{}:s,c=e.startingLineNumber;return Ke.createElement("code",{style:Object.assign({},n,o)},p6({lines:t.replace(/\n$/,"").split(`
`),style:u,startingLineNumber:c}))}function g6(e){return"".concat(e.toString().length,".25em")}function N0(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function R0(e,t,n){var a={display:"inline-block",minWidth:g6(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},o=typeof e=="function"?e(t):e,s=pa(pa({},a),o);return s}function tc(e){var t=e.children,n=e.lineNumber,a=e.lineNumberStyle,o=e.largestLineNumber,s=e.showInlineLineNumbers,u=e.lineProps,c=u===void 0?{}:u,f=e.className,g=f===void 0?[]:f,h=e.showLineNumbers,m=e.wrapLongLines,S=e.wrapLines,v=S===void 0?!1:S,x=v?pa({},typeof c=="function"?c(n):c):{};if(x.className=x.className?[].concat(Wg(x.className.trim().split(/\s+/)),Wg(g)):g,n&&s){var w=R0(a,n,o);t.unshift(N0(n,w))}return m&h&&(x.style=pa({display:"flex"},x.style)),{type:"element",tagName:"span",properties:x,children:t}}function C0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var a=0;a<e.length;a++){var o=e[a];if(o.type==="text")n.push(tc({children:[o],className:Wg(new Set(t))}));else if(o.children){var s,u=t.concat(((s=o.properties)===null||s===void 0?void 0:s.className)||[]);C0(o.children,u).forEach(function(c){return n.push(c)})}}return n}function m6(e,t,n,a,o,s,u,c,f){var g,h=C0(e.value),m=[],S=-1,v=0;function x(U,D){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return tc({children:U,lineNumber:D,lineNumberStyle:c,largestLineNumber:u,showInlineLineNumbers:o,lineProps:n,className:B,showLineNumbers:a,wrapLongLines:f,wrapLines:t})}function w(U,D){if(a&&D&&o){var B=R0(c,D,u);U.unshift(N0(D,B))}return U}function k(U,D){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||B.length>0?x(U,D,B):w(U,D)}for(var A=function(){var D=h[v],B=D.children[0].value,$=d6(B);if($){var K=B.split(`
`);K.forEach(function(F,W){var q=a&&m.length+s,re={type:"text",value:"".concat(F,`
`)};if(W===0){var ae=h.slice(S+1,v).concat(tc({children:[re],className:D.properties.className})),J=k(ae,q);m.push(J)}else if(W===K.length-1){var P=h[v+1]&&h[v+1].children&&h[v+1].children[0],G={type:"text",value:"".concat(F)};if(P){var Y=tc({children:[G],className:D.properties.className});h.splice(v+1,0,Y)}else{var ee=[G],C=k(ee,q,D.properties.className);m.push(C)}}else{var j=[re],M=k(j,q,D.properties.className);m.push(M)}}),S=v}v++};v<h.length;)A();if(S!==h.length-1){var _=h.slice(S+1,h.length);if(_&&_.length){var N=a&&m.length+s,L=k(_,N);m.push(L)}}return t?m:(g=[]).concat.apply(g,m)}function h6(e){var t=e.rows,n=e.stylesheet,a=e.useInlineStyles;return t.map(function(o,s){return _0({node:o,stylesheet:n,useInlineStyles:a,key:"code-segment-".concat(s)})})}function I0(e){return e&&typeof e.highlightAuto<"u"}function b6(e){var t=e.astGenerator,n=e.language,a=e.code,o=e.defaultCodeValue;if(I0(t)){var s=l6(t,n);return n==="text"?{value:o,language:"text"}:s?t.highlight(n,a):t.highlightAuto(a)}try{return n&&n!=="text"?{value:t.highlight(a,n)}:{value:o}}catch{return{value:o}}}function y6(e,t){return function(a){var o,s,u=a.language,c=a.children,f=a.style,g=f===void 0?t:f,h=a.customStyle,m=h===void 0?{}:h,S=a.codeTagProps,v=S===void 0?{className:u?"language-".concat(u):void 0,style:pa(pa({},g['code[class*="language-"]']),g['code[class*="language-'.concat(u,'"]')])}:S,x=a.useInlineStyles,w=x===void 0?!0:x,k=a.showLineNumbers,A=k===void 0?!1:k,_=a.showInlineLineNumbers,N=_===void 0?!0:_,L=a.startingLineNumber,U=L===void 0?1:L,D=a.lineNumberContainerStyle,B=a.lineNumberStyle,$=B===void 0?{}:B,K=a.wrapLines,F=a.wrapLongLines,W=F===void 0?!1:F,q=a.lineProps,re=q===void 0?{}:q,ae=a.renderer,J=a.PreTag,P=J===void 0?"pre":J,G=a.CodeTag,Y=G===void 0?"code":G,ee=a.code,C=ee===void 0?(Array.isArray(c)?c[0]:c)||"":ee,j=a.astGenerator,M=Z5(a,u6);j=j||e;var I=A?Ke.createElement(f6,{containerStyle:D,codeStyle:v.style||{},numberStyle:$,startingLineNumber:U,codeString:C}):null,oe=g.hljs||g['pre[class*="language-"]']||{backgroundColor:"#fff"},te=I0(j)?"hljs":"prismjs",ie=w?Object.assign({},M,{style:Object.assign({},oe,m)}):Object.assign({},M,{className:M.className?"".concat(te," ").concat(M.className):te,style:Object.assign({},m)});if(W?v.style=pa({whiteSpace:"pre-wrap"},v.style):v.style=pa({whiteSpace:"pre"},v.style),!j)return Ke.createElement(P,ie,I,Ke.createElement(Y,v,C));(K===void 0&&ae||W)&&(K=!0),ae=ae||h6;var se=[{type:"text",value:C}],he=b6({astGenerator:j,language:u,code:C,defaultCodeValue:se});he.language===null&&(he.value=se);var pe=(o=(s=C.match(/\n/g))===null||s===void 0?void 0:s.length)!==null&&o!==void 0?o:0,Te=U+pe,ye=m6(he,K,re,A,N,U,Te,$,W);return Ke.createElement(P,ie,Ke.createElement(Y,v,!N&&I,ae({rows:ye,stylesheet:g,useInlineStyles:w})))}}const v6=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","armasm","arturo","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","awk","bash","basic","batch","bbcode","bbj","bicep","birb","bison","bnf","bqn","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","cilkc","cilkcpp","clike","clojure","cmake","cobol","coffeescript","concurnas","cooklang","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cue","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gettext","gherkin","git","glsl","gml","gn","go-module","go","gradle","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","linker-script","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","mata","matlab","maxscript","mel","mermaid","metafont","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","odin","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plant-uml","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rescript","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","so Line truncated
darkMode: ${g?.darkMode!==!1}`})]}),p.jsx("h3",{className:"text-lg font-medium mb-3",children:"Available Presets"}),p.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:Object.keys(KL).map(v=>p.jsx("span",{className:`px-3 py-1 rounded-full text-sm ${v===(g?.preset||"zinc")?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:v},v))}),p.jsxs("p",{className:"text-muted-foreground mb-4",children:[p.jsx("strong",{children:"Click any item in the sidebar"})," to navigate."]}),p.jsx("h2",{className:"text-2xl font-semibold mt-8 mb-4",children:"Routes"}),p.jsxs("p",{className:"text-muted-foreground mb-4",children:[p.jsx("span",{className:"font-medium text-primary",children:t.routes?.length||0})," routes configured."]}),p.jsx("pre",{className:"bg-muted text-foreground border border-border p-4 rounded-lg text-sm overflow-auto",children:JSON.stringify(t.routes?.slice(0,3),null,2)})]})})}function Vu({config:e,templateKey:t="docs"}){const n=e.templates?.[t]?.slots?.footer,a=n?.ref,s=(a?e.components?.[a]:e.components?.footer)?.props||n?.props;return p.jsx("footer",{className:"border-t border-border/50 py-8 px-6 bg-muted/20",children:p.jsxs("div",{className:"max-w-screen-2xl mx-auto flex flex-col sm:flex-row justify-between items-center gap-4 text-sm text-muted-foreground",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-5 h-5 rounded bg-gradient-to-br from-primary/60 to-primary flex items-center justify-center",children:p.jsx("span",{className:"text-primary-foreground text-[8px] font-bold",children:"AI"})}),p.jsx("span",{children:s?.text||`© ${new Date().getFullYear()} PraisonAIUI`})]}),p.jsx("nav",{className:"flex items-center gap-6",children:s?.links?.map(u=>p.jsx("a",{href:u.href,className:"hover:text-foreground transition-colors",children:u.label},u.href))})]})})}const P5=()=>({taskLists:[],collapsed:!1}),Vn=new Map,qg=100,z5=1440*60*1e3;function $5(){const e=Date.now(),t=Array.from(Vn.entries());for(const[n,a]of t)e-a.lastAccessed>z5&&Vn.delete(n);if(Vn.size>qg){const n=Array.from(Vn.entries()).sort(([,o],[,s])=>o.lastAccessed-s.lastAccessed),a=Vn.size-qg;for(let o=0;o<a;o++)Vn.delete(n[o][0])}}function Yg(e){if(!Vn.has(e))Vn.size>=qg&&$5(),Vn.set(e,{state:P5(),listeners:new Set,lastAccessed:Date.now()});else{const t=Vn.get(e);t.lastAccessed=Date.now()}return Vn.get(e)}function sh(e,t){const n=Yg(e),a=t(n.state);n.state=a,n.listeners.forEach(o=>o())}function G5(e,t){sh(e,n=>{const a=n.taskLists.filter(s=>s.id!==t.task_list_id),o={id:t.task_list_id,name:t.name,tasks:t.tasks,stats:T0(t.tasks),sequence:t.sequence,created_at:t.timestamp,updated_at:t.timestamp};return{...n,taskLists:[...a,o],collapsed:n.taskLists.length===0?t.tasks.length<=1:n.collapsed}})}function H5(e,t){sh(e,n=>{const a=n.taskLists.map(o=>o.id===t.task_list_id?{...o,tasks:t.tasks,stats:T0(t.tasks),sequence:t.sequence,updated_at:t.timestamp}:o);return{...n,taskLists:a}})}function T0(e){return e.reduce((t,n)=>(t.total+=1,t[n.status.toLowerCase()]+=1,t),{total:0,ready:0,running:0,done:0,failed:0})}function V5(e,t){sh(e,n=>({...n,collapsed:t}))}function q5(e){const[,t]=E.useState({});return E.useEffect(()=>{const n=Yg(e),a=()=>t({});return n.listeners.add(a),()=>{n.listeners.delete(a)}},[e]),Yg(e).state}function Y5(e,t){return t.type==="task_list.init"?(G5(e,t),!0):t.type==="task_list.update"?(H5(e,t),!0):!1}const A0=()=>({isStreaming:!1,currentResponse:"",toolCalls:[],thinkingSteps:[],pendingElements:[]}),qa=new Map;function Kc(e){return qa.has(e)||qa.set(e,{state:A0(),listeners:new Set,abortController:null,toolCallMap:new Map}),qa.get(e)}function qu(e){return e?Kc(e).state:A0()}function W5(e,t){const n=Kc(e);return n.listeners.add(t),()=>n.listeners.delete(t)}function Dn(e,t){const n=Kc(e);n.state={...n.state,...t},n.listeners.forEach(a=>a())}async function K5(e){const t=qa.get(e);if(t){t.abortController?.abort(),t.abortController=null,Dn(e,{isStreaming:!1});try{await fetch("/cancel",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:e})})}catch{}}}function X5(e,t,n,a){const o=Kc(e);if(o.state.isStreaming)return;Dn(e,{isStreaming:!0,currentResponse:"",toolCalls:[],thinkingSteps:[],pendingElements:[]}),o.toolCallMap=new Map;const s=new AbortController;o.abortController=s,Z5(e,t,n,s,a)}async function Z5(e,t,n,a,o){try{const s=await fetch("/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:t,session_id:e,agent:n}),signal:a.signal});if(!s.ok)throw new Error(`HTTP ${s.status}`);const u=s.body?.getReader();if(!u)throw new Error("No response body");const c=new TextDecoder;let f="";for(;;){const{done:g,value:h}=await u.read();if(g)break;f+=c.decode(h,{stream:!0});const m=f.split(`
`);f=m.pop()||"";for(const S of m)if(S.startsWith("data: "))try{const v=JSON.parse(S.slice(6));Q5(e,v,o)}catch{}}}catch(s){if(s.name!=="AbortError"){const u=qa.get(e);u&&Dn(e,{thinkingSteps:[...u.state.thinkingSteps,`Error: ${s.message}`]})}}finally{const s=qa.get(e);s&&(s.abortController=null),Dn(e,{isStreaming:!1}),o?.onEnd?.()}}function Q5(e,t,n){const a=qa.get(e);if(!a)return;const o=a.toolCallMap;switch(t.type){case"session":t.session_id&&typeof t.session_id=="string"&&n?.onSessionId?.(t.session_id);break;case"token":case"run_content":case"team_run_content":{const u=t.token??t.content??"";u&&Dn(e,{currentResponse:a.state.currentResponse+u});break}case"message":case"run_completed":case"team_run_completed":{const u=t.content;u&&Dn(e,{currentResponse:u});break}case"thinking":case"reasoning_step":case"team_reasoning_step":{const u=t.step;u&&Dn(e,{thinkingSteps:[...a.state.thinkingSteps,u]});break}case"reasoning_started":case"team_reasoning_started":Dn(e,{thinkingSteps:[...a.state.thinkingSteps,"Starting reasoning..."]});break;case"tool_call":case"tool_call_started":case"team_tool_call_started":{const u={name:t.name,description:t.description,icon:t.icon,step_number:t.step_number,status:"running",tool_call_id:t.tool_call_id,args:t.args};u.tool_call_id&&o.set(u.tool_call_id,u);const c=g_(a.state.toolCalls,u);Dn(e,{toolCalls:c});break}case"tool_call_completed":case"team_tool_call_completed":{const u=t.extra_data,c=t.a2ui??u?.a2ui,f=t.elements??u?.elements,g={name:t.name,description:t.description,icon:t.icon,step_number:t.step_number,status:"done",tool_call_id:t.tool_call_id,args:t.args,formatted_result:t.formatted_result,result:t.result,surface_id:t.surface_id??u?.surface_id,a2ui:c?.length?{messages:c,surface_id:t.surface_id??u?.surface_id}:void 0,elements:f};g.tool_call_id&&o.set(g.tool_call_id,g);const h=g_(a.state.toolCalls,g),m=f?.length?[...a.state.pendingElements,...f]:a.state.pendingElements;Dn(e,{toolCalls:h,pendingElements:m});break}case"message_element":{const u=t.extra_data,c=t.element??u?.element;c&&Dn(e,{pendingElements:[...a.state.pendingElements,c]});break}case"error":case"run_error":case"team_run_error":{const u=t.error;u&&Dn(e,{thinkingSteps:[...a.state.thinkingSteps,`Error: ${u}`]});break}case"approval_required":case"approval_pending":case"run_paused":{const u=t.extra_data;if(u?.type==="approval_required"){const c=u;window.dispatchEvent(new CustomEvent("aiui:approval-required",{detail:c}))}break}case"end":case"done":case"run_cancelled":case"team_run_cancelled":break;default:Y5(e,t);break}}function g_(e,t){if(t.tool_call_id){const n=e.findIndex(a=>a.tool_call_id===t.tool_call_id);if(n>=0){const a=[...e];return a[n]={...a[n],...t},a}}return[...e,t]}function k0(e={}){const{externalSessionId:t}=e,[n,a]=E.useState(()=>qu(t));E.useEffect(()=>{if(!t){a(qu(null));return}return a(qu(t)),W5(t,()=>{a(qu(t))})},[t]);const o=E.useCallback((u,c)=>{const f=t??`new-${Date.now()}`;X5(f,u,c,{onSessionId:g=>{e.onSessionId?.(g)},onEnd:e.onEnd})},[t,e.onSessionId,e.onEnd]),s=E.useCallback(()=>{t&&K5(t)},[t]);return{isStreaming:n.isStreaming,currentResponse:n.currentResponse,toolCalls:n.toolCalls,thinkingSteps:n.thinkingSteps,pendingElements:n.pendingElements,sendMessage:o,cancel:s}}function J5(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function e6(e,t){if(e==null)return{};var n,a,o=J5(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Wg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function t6(e){if(Array.isArray(e))return Wg(e)}function n6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function r6(e,t){if(e){if(typeof e=="string")return Wg(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wg(e,t):void 0}}function a6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kg(e){return t6(e)||n6(e)||r6(e)||a6()}function Gs(e){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}function i6(e,t){if(Gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(Gs(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o6(e){var t=i6(e,"string");return Gs(t)=="symbol"?t:t+""}function _0(e,t,n){return(t=o6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xg(){return Xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Xg.apply(null,arguments)}function m_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m_(Object(n),!0).forEach(function(a){_0(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m_(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function s6(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[ Line truncated
`))})}function h6(e){var t=e.codeString,n=e.codeStyle,a=e.containerStyle,o=a===void 0?{float:"left",paddingRight:"10px"}:a,s=e.numberStyle,u=s===void 0?{}:s,c=e.startingLineNumber;return Ze.createElement("code",{style:Object.assign({},n,o)},m6({lines:t.replace(/\n$/,"").split(`
`),style:u,startingLineNumber:c}))}function b6(e){return"".concat(e.toString().length,".25em")}function C0(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function R0(e,t,n){var a={display:"inline-block",minWidth:b6(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},o=typeof e=="function"?e(t):e,s=pa(pa({},a),o);return s}function tc(e){var t=e.children,n=e.lineNumber,a=e.lineNumberStyle,o=e.largestLineNumber,s=e.showInlineLineNumbers,u=e.lineProps,c=u===void 0?{}:u,f=e.className,g=f===void 0?[]:f,h=e.showLineNumbers,m=e.wrapLongLines,S=e.wrapLines,v=S===void 0?!1:S,x=v?pa({},typeof c=="function"?c(n):c):{};if(x.className=x.className?[].concat(Kg(x.className.trim().split(/\s+/)),Kg(g)):g,n&&s){var w=R0(a,n,o);t.unshift(C0(n,w))}return m&h&&(x.style=pa({display:"flex"},x.style)),{type:"element",tagName:"span",properties:x,children:t}}function I0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var a=0;a<e.length;a++){var o=e[a];if(o.type==="text")n.push(tc({children:[o],className:Kg(new Set(t))}));else if(o.children){var s,u=t.concat(((s=o.properties)===null||s===void 0?void 0:s.className)||[]);I0(o.children,u).forEach(function(c){return n.push(c)})}}return n}function y6(e,t,n,a,o,s,u,c,f){var g,h=I0(e.value),m=[],S=-1,v=0;function x(U,D){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return tc({children:U,lineNumber:D,lineNumberStyle:c,largestLineNumber:u,showInlineLineNumbers:o,lineProps:n,className:P,showLineNumbers:a,wrapLongLines:f,wrapLines:t})}function w(U,D){if(a&&D&&o){var P=R0(c,D,u);U.unshift(C0(D,P))}return U}function k(U,D){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||P.length>0?x(U,D,P):w(U,D)}for(var A=function(){var D=h[v],P=D.children[0].value,$=g6(P);if($){var Y=P.split(`
`);Y.forEach(function(B,V){var X=a&&m.length+s,ne={type:"text",value:"".concat(B,`
`)};if(V===0){var ie=h.slice(S+1,v).concat(tc({children:[ne],className:D.properties.className})),ee=k(ie,X);m.push(ee)}else if(V===Y.length-1){var F=h[v+1]&&h[v+1].children&&h[v+1].children[0],q={type:"text",value:"".concat(B)};if(F){var te=tc({children:[q],className:D.properties.className});h.splice(v+1,0,te)}else{var se=[q],I=k(se,X,D.properties.className);m.push(I)}}else{var M=[ne],j=k(M,X,D.properties.className);m.push(j)}}),S=v}v++};v<h.length;)A();if(S!==h.length-1){var _=h.slice(S+1,h.length);if(_&&_.length){var N=a&&m.length+s,L=k(_,N);m.push(L)}}return t?m:(g=[]).concat.apply(g,m)}function v6(e){var t=e.rows,n=e.stylesheet,a=e.useInlineStyles;return t.map(function(o,s){return N0({node:o,stylesheet:n,useInlineStyles:a,key:"code-segment-".concat(s)})})}function O0(e){return e&&typeof e.highlightAuto<"u"}function E6(e){var t=e.astGenerator,n=e.language,a=e.code,o=e.defaultCodeValue;if(O0(t)){var s=d6(t,n);return n==="text"?{value:o,language:"text"}:s?t.highlight(n,a):t.highlightAuto(a)}try{return n&&n!=="text"?{value:t.highlight(a,n)}:{value:o}}catch{return{value:o}}}function S6(e,t){return function(a){var o,s,u=a.language,c=a.children,f=a.style,g=f===void 0?t:f,h=a.customStyle,m=h===void 0?{}:h,S=a.codeTagProps,v=S===void 0?{className:u?"language-".concat(u):void 0,style:pa(pa({},g['code[class*="language-"]']),g['code[class*="language-'.concat(u,'"]')])}:S,x=a.useInlineStyles,w=x===void 0?!0:x,k=a.showLineNumbers,A=k===void 0?!1:k,_=a.showInlineLineNumbers,N=_===void 0?!0:_,L=a.startingLineNumber,U=L===void 0?1:L,D=a.lineNumberContainerStyle,P=a.lineNumberStyle,$=P===void 0?{}:P,Y=a.wrapLines,B=a.wrapLongLines,V=B===void 0?!1:B,X=a.lineProps,ne=X===void 0?{}:X,ie=a.renderer,ee=a.PreTag,F=ee===void 0?"pre":ee,q=a.CodeTag,te=q===void 0?"code":q,se=a.code,I=se===void 0?(Array.isArray(c)?c[0]:c)||"":se,M=a.astGenerator,j=e6(a,p6);M=M||e;var C=A?Ze.createElement(h6,{containerStyle:D,codeStyle:v.style||{},numberStyle:$,startingLineNumber:U,codeString:I}):null,J=g.hljs||g['pre[class*="language-"]']||{backgroundColor:"#fff"},Q=O0(M)?"hljs":"prismjs",re=w?Object.assign({},j,{style:Object.assign({},J,m)}):Object.assign({},j,{className:j.className?"".concat(Q," ").concat(j.className):Q,style:Object.assign({},m)});if(V?v.style=pa({whiteSpace:"pre-wrap"},v.style):v.style=pa({whiteSpace:"pre"},v.style),!M)return Ze.createElement(F,re,C,Ze.createElement(te,v,I));(Y===void 0&&ie||V)&&(Y=!0),ie=ie||v6;var oe=[{type:"text",value:I}],he=E6({astGenerator:M,language:u,code:I,defaultCodeValue:oe});he.language===null&&(he.value=oe);var pe=(o=(s=I.match(/\n/g))===null||s===void 0?void 0:s.length)!==null&&o!==void 0?o:0,ve=U+pe,Ce=y6(he,Y,ne,A,N,U,ve,$,V);return Ze.createElement(F,re,Ze.createElement(te,v,!N&&C,ie({rows:Ce,stylesheet:g,useInlineStyles:w})))}}const x6=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","armasm","arturo","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","awk","bash","basic","batch","bbcode","bbj","bicep","birb","bison","bnf","bqn","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","cilkc","cilkcpp","clike","clojure","cmake","cobol","coffeescript","concurnas","cooklang","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cue","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gettext","gherkin","git","glsl","gml","gn","go-module","go","gradle","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","linker-script","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","mata","matlab","maxscript","mel","mermaid","metafont","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","odin","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plant-uml","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rescript","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml Line truncated
?|
|(?![\\s\\S])))+`,"m"),alias:s,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}zt.displayName="markup-templating";zt.aliases=[];function zt(e){e.register(Mt),(function(t){function n(a,o){return"___"+a.toUpperCase()+o+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,o,s,u){if(a.language===o){var c=a.tokenStack=[];a.code=a.code.replace(s,function(f){if(typeof u=="function"&&!u(f))return f;for(var g=c.length,h;a.code.indexOf(h=n(o,g))!==-1;)++g;return c[g]=f,h}),a.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(a,o){if(a.language!==o||!a.tokenStack)return;a.grammar=t.languages[o];var s=0,u=Object.keys(a.tokenStack);function c(f){for(var g=0;g<f.length&&!(s>=u.length);g++){var h=f[g];if(typeof h=="string"||h.content&&typeof h.content=="string"){var m=u[s],S=a.tokenStack[m],v=typeof h=="string"?h:h.content,x=n(o,m),w=v.indexOf(x);if(w>-1){++s;var k=v.substring(0,w),A=new t.Token(o,t.tokenize(S,a.grammar),"language-"+o,S),_=v.substring(w+x.length),N=[];k&&N.push.apply(N,c([k])),N.push(A),_&&N.push.apply(N,c([_])),typeof h=="string"?f.splice.apply(f,[g,1].concat(N)):h.content=N}}else h.content&&c(h.content)}return f}c(a.tokens)}}})})(e)}bb.displayName="django";bb.aliases=["jinja2"];function bb(e){e.register(zt),(function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,a=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"django",n)}),t.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"jinja2",n)}),t.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"jinja2")})})(e)}yb.displayName="dns-zone-file";yb.aliases=["dns-zone"];function yb(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}vb.displayName="docker";vb.aliases=["dockerfile"];function vb(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return n}),o=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,s=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return o}),u={pattern:RegExp(o),greedy:!0},c={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function f(g,h){return g=g.replace(/<OPT>/g,function(){return s}).replace(/<SP>/g,function(){return a}),RegExp(g,h)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:f(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[u,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:f(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:f(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:f(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:c,string:u,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,oper Line truncated
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}cl.displayName="t4-templating";cl.aliases=[];function cl(e){(function(t){function n(o,s,u){return{pattern:RegExp("<#"+o+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+o+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:s,alias:u}}}}function a(o){var s=t.languages[o],u="language-"+o;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",s,u),"class-feature":n("\\+",s,u),standard:n("",s,u)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(e)}OE.displayName="t4-cs";OE.aliases=["t4"];function OE(e){e.register(yo),e.register(cl),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}rd.displayName="vbnet";rd.aliases=[];function rd(e){e.register(Zc),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}DE.displayName="t4-vb";DE.aliases=[];function DE(e){e.register(cl),e.register(rd),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}LE.displayName="tap";LE.aliases=[];function LE(e){e.register(Xc),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}ME.displayName="tcl";ME.aliases=[];function ME(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait Line truncated
|(?![\\s\\S])))+`,"m"),alias:s,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}Gt.displayName="markup-templating";Gt.aliases=[];function Gt(e){e.register(Ft),(function(t){function n(a,o){return"___"+a.toUpperCase()+o+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,o,s,u){if(a.language===o){var c=a.tokenStack=[];a.code=a.code.replace(s,function(f){if(typeof u=="function"&&!u(f))return f;for(var g=c.length,h;a.code.indexOf(h=n(o,g))!==-1;)++g;return c[g]=f,h}),a.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(a,o){if(a.language!==o||!a.tokenStack)return;a.grammar=t.languages[o];var s=0,u=Object.keys(a.tokenStack);function c(f){for(var g=0;g<f.length&&!(s>=u.length);g++){var h=f[g];if(typeof h=="string"||h.content&&typeof h.content=="string"){var m=u[s],S=a.tokenStack[m],v=typeof h=="string"?h:h.content,x=n(o,m),w=v.indexOf(x);if(w>-1){++s;var k=v.substring(0,w),A=new t.Token(o,t.tokenize(S,a.grammar),"language-"+o,S),_=v.substring(w+x.length),N=[];k&&N.push.apply(N,c([k])),N.push(A),_&&N.push.apply(N,c([_])),typeof h=="string"?f.splice.apply(f,[g,1].concat(N)):h.content=N}}else h.content&&c(h.content)}return f}c(a.tokens)}}})})(e)}bb.displayName="django";bb.aliases=["jinja2"];function bb(e){e.register(Gt),(function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,a=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"django",n)}),t.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"jinja2",n)}),t.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"jinja2")})})(e)}yb.displayName="dns-zone-file";yb.aliases=["dns-zone"];function yb(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}vb.displayName="docker";vb.aliases=["dockerfile"];function vb(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return n}),o=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,s=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return o}),u={pattern:RegExp(o),greedy:!0},c={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function f(g,h){return g=g.replace(/<OPT>/g,function(){return s}).replace(/<SP>/g,function(){return a}),RegExp(g,h)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:f(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[u,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:f(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:f(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:f(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:c,string:u,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,oper Line truncated
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}cl.displayName="t4-templating";cl.aliases=[];function cl(e){(function(t){function n(o,s,u){return{pattern:RegExp("<#"+o+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+o+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:s,alias:u}}}}function a(o){var s=t.languages[o],u="language-"+o;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",s,u),"class-feature":n("\\+",s,u),standard:n("",s,u)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(e)}OE.displayName="t4-cs";OE.aliases=["t4"];function OE(e){e.register(bo),e.register(cl),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}ad.displayName="vbnet";ad.aliases=[];function ad(e){e.register(Qc),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}DE.displayName="t4-vb";DE.aliases=[];function DE(e){e.register(cl),e.register(ad),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}LE.displayName="tap";LE.aliases=[];function LE(e){e.register(Zc),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}ME.displayName="tcl";ME.aliases=[];function ME(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait Line truncated
- a positive number
- less than the value passed to \`max\` (or ${yS} if no \`max\` prop is set)
- \`null\` or \`undefined\` if the progress is indeterminate.
Defaulting to \`null\`.`}var nq=yI,rq=EI;function aq({className:e,value:t,...n}){return p.jsx(nq,{"data-slot":"progress",className:be("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...n,children:p.jsx(rq,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function dl(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ld="Switch",[iq]=Rt(ld),[oq,sq]=iq(ld),xI=E.forwardRef((e,t)=>{const{__scopeSwitch:n,name:a,checked:o,defaultChecked:s,required:u,disabled:c,value:f="on",onCheckedChange:g,form:h,...m}=e,[S,v]=E.useState(null),x=_e(t,N=>v(N)),w=E.useRef(!1),k=S?h||!!S.closest("form"):!0,[A,_]=Wt({prop:o,defaultProp:s??!1,onChange:g,caller:ld});return p.jsxs(oq,{scope:n,checked:A,disabled:c,children:[p.jsx(ve.button,{type:"button",role:"switch","aria-checked":A,"aria-required":u,"data-state":kI(A),"data-disabled":c?"":void 0,disabled:c,value:f,...m,ref:x,onClick:ge(e.onClick,N=>{_(L=>!L),k&&(w.current=N.isPropagationStopped(),w.current||N.stopPropagation())})}),k&&p.jsx(AI,{control:S,bubbles:!w.current,name:a,value:f,checked:A,required:u,disabled:c,form:h,style:{transform:"translateX(-100%)"}})]})});xI.displayName=ld;var wI="SwitchThumb",TI=E.forwardRef((e,t)=>{const{__scopeSwitch:n,...a}=e,o=sq(wI,n);return p.jsx(ve.span,{"data-state":kI(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t})});TI.displayName=wI;var lq="SwitchBubbleInput",AI=E.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:a=!0,...o},s)=>{const u=E.useRef(null),c=_e(u,s),f=dl(n),g=Xs(t);return E.useEffect(()=>{const h=u.current;if(!h)return;const m=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(m,"checked").set;if(f!==n&&v){const x=new Event("click",{bubbles:a});v.call(h,n),h.dispatchEvent(x)}},[f,n,a]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});AI.displayName=lq;function kI(e){return e?"checked":"unchecked"}var uq=xI,cq=TI;function dq({className:e,size:t="default",...n}){return p.jsx(uq,{"data-slot":"switch","data-size":t,className:be("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6",e),...n,children:p.jsx(cq,{"data-slot":"switch-thumb",className:be("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}var ud="Checkbox",[pq]=Rt(ud),[fq,vS]=pq(ud);function gq(e){const{__scopeCheckbox:t,checked:n,children:a,defaultChecked:o,disabled:s,form:u,name:c,onCheckedChange:f,required:g,value:h="on",internal_do_not_use_render:m}=e,[S,v]=Wt({prop:n,defaultProp:o??!1,onChange:f,caller:ud}),[x,w]=E.useState(null),[k,A]=E.useState(null),_=E.useRef(!1),N=x?!!u||!!x.closest("form"):!0,L={checked:S,disabled:s,setChecked:v,control:x,setControl:w,name:c,form:u,value:h,hasConsumerStoppedPropagationRef:_,required:g,defaultChecked:fa(o)?!1:o,isFormControl:N,bubbleInput:k,setBubbleInput:A};return p.jsx(fq,{scope:t,...L,children:mq(m)?m(L):a})}var _I="CheckboxTrigger",NI=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...a},o)=>{const{control:s,value:u,disabled:c,checked:f,required:g,setControl:h,setChecked:m,hasConsumerStoppedPropagationRef:S,isFormControl:v,bubbleInput:x}=vS(_I,e),w=_e(o,h),k=E.useRef(f);return E.useEffect(()=>{const A=s?.form;if(A){const _=()=>m(k.current);return A.addEventListener("reset",_),()=>A.removeEventListener("reset",_)}},[s,m]),p.jsx(ve.button,{type:"button",role:"checkbox","aria-checked":fa(f)?"mixed":f,"aria-required":g,"data-state":LI(f),"data-disabled":c?"":void 0,disabled:c,value:u,...a,ref:w,onKeyDown:ge(t,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:ge(n,A=>{m(_=>fa(_)?!0:!_),x&&v&&(S.current=A.isPropagationStopped(),S.current||A.stopPropagation())})})});NI.displayName=_I;var RI=E.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:a,checked:o,defaultChecked:s,required:u,disabled:c,value:f,onCheckedChange:g,form:h,...m}=e;return p.jsx(gq,{__scopeCheckbox:n,checked:o,defaultChecked:s,disabled:c,required:u,onCheckedChange:g,name:a,form:h,value:f,internal_do_not_use_render:({isFormControl:S})=>p.jsxs(p.Fragment,{children:[p.jsx(NI,{...m,ref:t,__scopeChecLine truncated
Defaulting to \`null\`.`}var iq=vI,oq=SI;function sq({className:e,value:t,...n}){return p.jsx(iq,{"data-slot":"progress",className:be("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...n,children:p.jsx(oq,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function dl(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ud="Switch",[lq]=It(ud),[uq,cq]=lq(ud),wI=E.forwardRef((e,t)=>{const{__scopeSwitch:n,name:a,checked:o,defaultChecked:s,required:u,disabled:c,value:f="on",onCheckedChange:g,form:h,...m}=e,[S,v]=E.useState(null),x=ke(t,N=>v(N)),w=E.useRef(!1),k=S?h||!!S.closest("form"):!0,[A,_]=Xt({prop:o,defaultProp:s??!1,onChange:g,caller:ud});return p.jsxs(uq,{scope:n,checked:A,disabled:c,children:[p.jsx(ye.button,{type:"button",role:"switch","aria-checked":A,"aria-required":u,"data-state":_I(A),"data-disabled":c?"":void 0,disabled:c,value:f,...m,ref:x,onClick:ge(e.onClick,N=>{_(L=>!L),k&&(w.current=N.isPropagationStopped(),w.current||N.stopPropagation())})}),k&&p.jsx(kI,{control:S,bubbles:!w.current,name:a,value:f,checked:A,required:u,disabled:c,form:h,style:{transform:"translateX(-100%)"}})]})});wI.displayName=ud;var TI="SwitchThumb",AI=E.forwardRef((e,t)=>{const{__scopeSwitch:n,...a}=e,o=cq(TI,n);return p.jsx(ye.span,{"data-state":_I(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t})});AI.displayName=TI;var dq="SwitchBubbleInput",kI=E.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:a=!0,...o},s)=>{const u=E.useRef(null),c=ke(u,s),f=dl(n),g=Xs(t);return E.useEffect(()=>{const h=u.current;if(!h)return;const m=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(m,"checked").set;if(f!==n&&v){const x=new Event("click",{bubbles:a});v.call(h,n),h.dispatchEvent(x)}},[f,n,a]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});kI.displayName=dq;function _I(e){return e?"checked":"unchecked"}var pq=wI,fq=AI;function gq({className:e,size:t="default",...n}){return p.jsx(pq,{"data-slot":"switch","data-size":t,className:be("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6",e),...n,children:p.jsx(fq,{"data-slot":"switch-thumb",className:be("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}var cd="Checkbox",[mq]=It(cd),[hq,vS]=mq(cd);function bq(e){const{__scopeCheckbox:t,checked:n,children:a,defaultChecked:o,disabled:s,form:u,name:c,onCheckedChange:f,required:g,value:h="on",internal_do_not_use_render:m}=e,[S,v]=Xt({prop:n,defaultProp:o??!1,onChange:f,caller:cd}),[x,w]=E.useState(null),[k,A]=E.useState(null),_=E.useRef(!1),N=x?!!u||!!x.closest("form"):!0,L={checked:S,disabled:s,setChecked:v,control:x,setControl:w,name:c,form:u,value:h,hasConsumerStoppedPropagationRef:_,required:g,defaultChecked:fa(o)?!1:o,isFormControl:N,bubbleInput:k,setBubbleInput:A};return p.jsx(hq,{scope:t,...L,children:yq(m)?m(L):a})}var NI="CheckboxTrigger",CI=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...a},o)=>{const{control:s,value:u,disabled:c,checked:f,required:g,setControl:h,setChecked:m,hasConsumerStoppedPropagationRef:S,isFormControl:v,bubbleInput:x}=vS(NI,e),w=ke(o,h),k=E.useRef(f);return E.useEffect(()=>{const A=s?.form;if(A){const _=()=>m(k.current);return A.addEventListener("reset",_),()=>A.removeEventListener("reset",_)}},[s,m]),p.jsx(ye.button,{type:"button",role:"checkbox","aria-checked":fa(f)?"mixed":f,"aria-required":g,"data-state":MI(f),"data-disabled":c?"":void 0,disabled:c,value:u,...a,ref:w,onKeyDown:ge(t,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:ge(n,A=>{m(_=>fa(_)?!0:!_),x&&v&&(S.current=A.isPropagationStopped(),S.current||A.stopPropagation())})})});CI.displayName=NI;var RI=E.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:a,checked:o,defaultChecked:s,required:u,disabled:c,value:f,onCheckedChange:g,form:h,...m}=e;return p.jsx(bq,{__scopeCheckbox:n,checked:o,defaultChecked:s,disabled:c,required:u,onCheckedChange:g,name:a,form:h,value:f,internal_do_not_use_render:({isFormControl:S})=>p.jsxs(p.Fragment,{children:[p.jsx(CI,{...m,ref:t,__scopeChecLine truncated
`);for(;t.length&&!t[0].trim();)t.shift();for(;t.length&&!t[t.length-1].trim();)t.pop();if(!t.length)return"";const n=Math.min(...t.filter(a=>a.trim().length>0).map(a=>a.match(/^ */)?.[0].length??0));return n===0?t.join(`
`):t.map(a=>a.slice(n)).join(`
`)}function SY({language:e,children:t}){const[n,a]=E.useState(!1),o=E.useCallback(async()=>{await navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),2e3)},[t]);return p.jsxs("div",{className:"relative group/code my-3 rounded-lg overflow-hidden",children:[p.jsxs("div",{className:"flex items-center justify-between px-4 py-1.5 bg-[#1e1e2e] text-xs text-gray-400",children:[p.jsx("span",{children:e||"code"}),p.jsx("button",{onClick:o,className:"flex items-center gap-1 hover:text-white transition-colors",children:n?"✓ Copied":"Copy"})]}),p.jsx(U0,{style:q6,language:e||"text",PreTag:"div",customStyle:{margin:0,borderRadius:0,fontSize:"13px"},children:t})]})}function xY(e){const t=e.split(`
`)}function TY({language:e,children:t}){const[n,a]=E.useState(!1),o=E.useCallback(async()=>{await navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),2e3)},[t]);return p.jsxs("div",{className:"relative group/code my-3 rounded-lg overflow-hidden",children:[p.jsxs("div",{className:"flex items-center justify-between px-4 py-1.5 bg-[#1e1e2e] text-xs text-gray-400",children:[p.jsx("span",{children:e||"code"}),p.jsx("button",{onClick:o,className:"flex items-center gap-1 hover:text-white transition-colors",children:n?"✓ Copied":"Copy"})]}),p.jsx(F0,{style:K6,language:e||"text",PreTag:"div",customStyle:{margin:0,borderRadius:0,fontSize:"13px"},children:t})]})}function AY(e){const t=e.split(`
`);let n=!1,a=!1,o="",s=0;for(let u=0;u<t.length;u++){const c=t[u];if(/^[ \t]*```/.test(c)){n=!n;continue}if(n)continue;const f=c.match(/^([ \t]*)(\d+)\.[ \t]/);if(f){const g=f[1];!a||g!==o?(a=!0,o=g,s=1):s++,t[u]=c.replace(/^([ \t]*)\d+\./,`${g}${s}.`)}else c.trim()===""&&a||a&&/^[ \t]+\S/.test(c)||a&&(a=!1,s=0)}return t.join(`
`)}function l1({content:e}){const t=xY(e);return p.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none prose-p:leading-relaxed prose-pre:p-0 prose-pre:bg-transparent",children:p.jsx(XC,{remarkPlugins:[E0],components:{ul({children:n,ordered:a,start:o}){if(a){const s=o!=null?Number(o):1;return p.jsx("ol",{start:s,style:{listStyleType:"decimal",paddingLeft:"1.5rem",margin:"0.5rem 0"},children:n})}return p.jsx("ul",{style:{listStyleType:"disc",paddingLeft:"1.5rem",margin:"0.5rem 0"},children:n})},li({children:n}){return p.jsx("li",{style:{display:"list-item",marginBottom:"0.25rem"},children:n})},code({className:n,children:a,...o}){const s=/language-(\w+)/.exec(n||""),u=EY(String(a));return!s&&!u.includes(`
`)?p.jsx("code",{className:"px-1.5 py-0.5 rounded bg-muted text-sm font-mono",...o,children:a}):p.jsx(SY,{language:s?.[1],children:u})},a({href:n,children:a}){return p.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:a})},table({children:n}){return p.jsx("div",{className:"overflow-x-auto my-3",children:p.jsx("table",{className:"min-w-full text-sm",children:n})})}},children:t})})}function wY({message:e,sessionId:t}){return e.role==="user"?p.jsx("div",{className:"flex justify-end",children:p.jsxs("div",{className:"flex gap-3 max-w-[80%]",children:[p.jsx("div",{className:"rounded-2xl px-4 py-2.5 bg-primary text-primary-foreground",children:p.jsx("p",{className:"text-sm whitespace-pre-wrap",children:e.content})}),p.jsx(xc,{role:"user"})]})}):p.jsxs("div",{className:"flex gap-3 group",children:[p.jsx(xc,{role:"assistant"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[e.toolCalls&&e.toolCalls.length>0&&p.jsx("div",{className:"mb-2 space-y-1",children:e.toolCalls.map((a,o)=>p.jsx(s1,{toolCall:a},o))}),p.jsx(l1,{content:e.content}),e.elements&&e.elements.length>0&&p.jsx("div",{className:"mt-3 space-y-3",children:e.elements.map((a,o)=>p.jsx(_S,{element:a,className:"w-full"},o))}),e.images&&e.images.length>0&&p.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:e.images.map((a,o)=>p.jsx("img",{src:a,alt:"",className:"max-w-full rounded-md max-h-64 object-contain"},o))}),e.actions&&e.actions.length>0&&p.jsx(fY,{actions:e.actions,messageId:e.id,sessionId:t}),p.jsxs("div",{className:"mt-1 flex items-center gap-1 relative",children:[p.jsx(yY,{text:e.content}),p.jsx(vY,{messageId:e.id})]})]})]})}function TY({onSend:e,onCancel:t,isStreaming:n=!1,placeholder:a="Type a message...",enableFileUpload:o=!1}){const[s,u]=E.useState(""),[c,f]=E.useState([]),g=E.useRef(null),h=E.useRef(null),m=E.useCallback(()=>{const A=s.trim();(A||c.length>0)&&!n&&(e(A,c.length>0?c:void 0),u(""),f([]),g.current&&(g.current.style.height="auto"))},[s,c,n,e]),S=E.useCallback(A=>{const _=Array.from(A.target.files||[]);f(N=>[...N,..._]),h.current&&(h.current.value="")},[]),v=E.useCallback(()=>{h.current?.click()},[]),x=E.useCallback(A=>{f(_=>_.filter((N,L)=>L!==A))},[]),w=E.useCallback(A=>{A.key==="Enter"&&!A.shiftKey&&(A.preventDefault(),m())},[m]),k=E.useCallback(()=>{const A=g.current;A&&(A.style.height="auto",A.style.height=`${Math.min(A.scrollHeight,200)}px`)},[]);return p.jsx("div",{className:"p-4 pb-6",children:p.jsxs("div",{className:"max-w-3xl mx-auto",children:[p.jsxs("div",{className:"rounded-2xl border bg-background/80 backdrop-blur-sm shadow-lg",children:[c.length>0&&p.jsx("div",{className:"flex flex-wrap gap-1 px-4 pt-3",children:c.map((A,_)=>p.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-muted rounded-lg text-xs",children:[p.jsx("span",{className:"truncate max-w-[100px]",children:A.name}),p.jsx("button",{type:"button",onClick:()=>x(_),className:"hover:text-destructive",children:"×"})]},`${A.name}-${_}`))}),p.jsxs("div",{className:"flex items-end gap-2 p-2",children:[o&&p.jsxs(p.Fragment,{children:[p.jsx("input",{ref:h,type:"file",multiple:!0,onChange:S,className:"hidden",accept:"image/*,audio/*,video/*,.pdf,.doc,.docx,.txt,.csv,.json"}),p.jsx("button",{type:"button",onClick:v,className:"p-2 rounded-xl hover:bg-accent text-muted-foreground transition-colors",title:"Attach file",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"})})})]}),p.jsx("textarea",{ref:g,value:s,onChange:A=>u(A.target.value),onKeyDown:w,onInput:k,placeholder:a,disabled:n,rows:1,className:"flex-1 resize-none bg-transparent px-3 py-2.5 text-sm focus:outline-none disabled:opacity-50 placeholder:text-muted-foreground/60",style:{maxHeight:"200px"}}),n?p.jsx("button",{type:"button",onClick:t,className:"p-2 rounded-xl bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors",title:"Stop",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}):p.jsx("button",{type:"button",onClick:m,disabled:!s.trim(),className:"p-2 rounded-xl bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-30 disabled:cursor-not-allowed transition-colors",title:"Send",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("path",{d:"M5 12h14M12 5l7 7-7 7"})})})]})]}),p.jsx("p",{className:"text-[10px] text-center text-muted-foreground/50 mt-2",children:"Press Enter to send, Shift+Enter for new line" Line truncated
`),m=E.useCallback(async()=>{!n.trim()||s||f(n)},[n,s,f]),S=E.useCallback(()=>{a("")},[]);return p.jsxs("div",{className:"min-h-screen bg-background text-foreground flex flex-col",children:[p.jsxs("header",{className:"border-b px-6 py-4 flex items-center justify-between",children:[p.jsx("h1",{className:"text-xl font-semibold",children:t||"Playground"}),p.jsx("div",{className:"flex items-center gap-2",children:p.jsx("button",{onClick:S,className:"px-3 py-1.5 text-sm rounded-md border hover:bg-accent",children:"Clear"})})]}),p.jsxs("div",{className:"flex-1 flex",children:[p.jsxs("div",{className:"flex-1 flex flex-col border-r",children:[p.jsx("div",{className:"px-4 py-2 border-b bg-muted/30",children:p.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Input"})}),p.jsx("div",{className:"flex-1 p-4",children:p.jsx("textarea",{value:n,onChange:v=>a(v.target.value),placeholder:"Enter your prompt here...",className:"w-full h-full resize-none bg-transparent border rounded-md p-3 focus:outline-none focus:ring-2 focus:ring-primary"})}),p.jsx("div",{className:"px-4 py-3 border-t flex justify-end gap-2",children:s?p.jsx("button",{onClick:g,className:"px-4 py-2 bg-destructive text-destructive-foreground rounded-md hover:bg-destructive/90",children:"Stop"}):p.jsx("button",{onClick:m,disabled:!n.trim(),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed",children:"Submit"})})]}),p.jsxs("div",{className:"flex-1 flex flex-col",children:[p.jsxs("div",{className:"px-4 py-2 border-b bg-muted/30 flex items-center justify-between",children:[p.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Output"}),s&&p.jsx("span",{className:"text-xs text-muted-foreground animate-pulse",children:"Processing..."})]}),p.jsx("div",{className:"flex-1 p-4 overflow-auto",children:h?p.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none whitespace-pre-wrap",children:h}):p.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground text-sm",children:"Output will appear here"})})]})]}),e?.features&&p.jsxs("div",{className:"border-t px-6 py-3 bg-muted/20 flex items-center gap-4 text-sm text-muted-foreground",children:[e.features.streaming&&p.jsx("span",{children:"✓ Streaming"}),e.features.reasoning&&p.jsx("span",{children:"✓ Reasoning"}),e.features.tools&&p.jsx("span",{children:"✓ Tools"})]})]})}function cW(e,t){const n=e.replace(/^\/+|\/+$/g,""),o=t.replace(/^\/+|\/+$/g,"").replace(/\*\*/g,"{{GLOB}}").replace(/\*/g,"[^/]+").replace(/\{\{GLOB\}\}/g,".*");return new RegExp(`^${o}$`).test(n)}function dW(e,t,n){const o=[...t.routes??[]].sort((s,u)=>(u.priority??0)-(s.priority??0));for(const s of o){if(!cW(e,s.pattern))continue;const u=n[s.template];return u?{template:s.template,layout:u.layout??"ThreeColumnLayout",slots:u.slots??{},slotOverrides:s.slotOverrides}:(console.warn(`Template "${s.template}" not found`),null)}return null}function pW(e,t){if(t)return t.slotOverrides&&e in t.slotOverrides?t.slotOverrides[e]:t.slots[e]}function fW(e){return pW("right",e)!==null}function Xu({enabled:e}){return e?p.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 z-50 bg-primary text-primary-foreground px-4 py-2 rounded-md text-sm font-medium",children:"Skip to main content"}):null}function gW(){const[e,t]=E.useState({}),[n,a]=E.useState({}),[o,s]=E.useState({}),[u,c]=E.useState(!0),[f,g]=E.useState(null),[h,m]=E.useState(null),[S,v]=E.useState(""),[x,w]=E.useState(()=>on(window.location.pathname)),[k,A]=E.useState(!1),_=(G,Y)=>{const ee=on(Y),C=j=>{for(const M of j){if(on(M.path??"")===ee)return M;if(M.children){const oe=C(M.children);if(oe)return oe}}return null};return G.items?C(G.items):null},N=G=>(G.seo?.siteUrl||window.location.origin).replace(/\/+$/,""),L=(G,Y)=>{const ee=Y.seo?.titleTemplate||"%s | %s",C=Y.site?.title||"Documentation";if(ee.includes("%s")){let j=ee.replace("%s",G);return j.includes("%s")&&(j=j.replace("%s",C)),j}return`${G} | ${C}`},U=(G,Y,ee,C,j)=>{const M=C??e,I=on(Y),oe=L(G,M),te=ee||`${G} - ${M.site?.description||""}`,ie=`${N(M)}${I}`;document.title=oe;let se=document.querySelector('link[rel="canonical"]');se||(se=document.createElement("link"),se.rel="canonical",document.head.appendChild(se)),se.href=ie;let he=document.querySelector('meta[name="description"]');he||(he=document.createElement("meta"),he.name="description",document.head.appendChild(he)),he.content=te;const pe=(ye,Le)=>{let at=document.querySelector(ye);return at||(at=Le(),document.head.appendChild(at)),at};if(pe('meta[name="robots"]',()=>{const ye=document.createElement("meta");return ye.name="robots",ye}).content=j?"noindex, nofollow":"index, follow",pe('meta[property="og:title"]',()=>{const ye=document.createElement("meta");return ye.setAttribute("property","og:title"),ye}).content=oe,pe('meta[property="og:description"]',()=>{const ye=docu Line truncated
`)}function u1({content:e}){const t=AY(e);return p.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none prose-p:leading-relaxed prose-pre:p-0 prose-pre:bg-transparent",children:p.jsx(XR,{remarkPlugins:[E0],components:{ul({children:n,ordered:a,start:o}){if(a){const s=o!=null?Number(o):1;return p.jsx("ol",{start:s,style:{listStyleType:"decimal",paddingLeft:"1.5rem",margin:"0.5rem 0"},children:n})}return p.jsx("ul",{style:{listStyleType:"disc",paddingLeft:"1.5rem",margin:"0.5rem 0"},children:n})},li({children:n}){return p.jsx("li",{style:{display:"list-item",marginBottom:"0.25rem"},children:n})},code({className:n,children:a,...o}){const s=/language-(\w+)/.exec(n||""),u=wY(String(a));return!s&&!u.includes(`
`)?p.jsx("code",{className:"px-1.5 py-0.5 rounded bg-muted text-sm font-mono",...o,children:a}):p.jsx(TY,{language:s?.[1],children:u})},a({href:n,children:a}){return p.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:a})},table({children:n}){return p.jsx("div",{className:"overflow-x-auto my-3",children:p.jsx("table",{className:"min-w-full text-sm",children:n})})}},children:t})})}function kY({message:e,sessionId:t}){return e.role==="user"?p.jsx("div",{className:"flex justify-end",children:p.jsxs("div",{className:"flex gap-3 max-w-[80%]",children:[p.jsx("div",{className:"rounded-2xl px-4 py-2.5 bg-primary text-primary-foreground",children:p.jsx("p",{className:"text-sm whitespace-pre-wrap",children:e.content})}),p.jsx(xc,{role:"user"})]})}):p.jsxs("div",{className:"flex gap-3 group",children:[p.jsx(xc,{role:"assistant"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[e.toolCalls&&e.toolCalls.length>0&&p.jsx("div",{className:"mb-2 space-y-1",children:e.toolCalls.map((a,o)=>p.jsx(l1,{toolCall:a},o))}),p.jsx(u1,{content:e.content}),e.elements&&e.elements.length>0&&p.jsx("div",{className:"mt-3 space-y-3",children:e.elements.map((a,o)=>p.jsx(_S,{element:a,className:"w-full"},o))}),e.images&&e.images.length>0&&p.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:e.images.map((a,o)=>p.jsx("img",{src:a,alt:"",className:"max-w-full rounded-md max-h-64 object-contain"},o))}),e.actions&&e.actions.length>0&&p.jsx(hY,{actions:e.actions,messageId:e.id,sessionId:t}),p.jsxs("div",{className:"mt-1 flex items-center gap-1 relative",children:[p.jsx(SY,{text:e.content}),p.jsx(xY,{messageId:e.id})]})]})]})}function _Y({onSend:e,onCancel:t,isStreaming:n=!1,placeholder:a="Type a message...",enableFileUpload:o=!1}){const[s,u]=E.useState(""),[c,f]=E.useState([]),g=E.useRef(null),h=E.useRef(null),m=E.useCallback(()=>{const A=s.trim();(A||c.length>0)&&!n&&(e(A,c.length>0?c:void 0),u(""),f([]),g.current&&(g.current.style.height="auto"))},[s,c,n,e]),S=E.useCallback(A=>{const _=Array.from(A.target.files||[]);f(N=>[...N,..._]),h.current&&(h.current.value="")},[]),v=E.useCallback(()=>{h.current?.click()},[]),x=E.useCallback(A=>{f(_=>_.filter((N,L)=>L!==A))},[]),w=E.useCallback(A=>{A.key==="Enter"&&!A.shiftKey&&(A.preventDefault(),m())},[m]),k=E.useCallback(()=>{const A=g.current;A&&(A.style.height="auto",A.style.height=`${Math.min(A.scrollHeight,200)}px`)},[]);return p.jsx("div",{className:"p-4 pb-6",children:p.jsxs("div",{className:"max-w-3xl mx-auto",children:[p.jsxs("div",{className:"rounded-2xl border bg-background/80 backdrop-blur-sm shadow-lg",children:[c.length>0&&p.jsx("div",{className:"flex flex-wrap gap-1 px-4 pt-3",children:c.map((A,_)=>p.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-muted rounded-lg text-xs",children:[p.jsx("span",{className:"truncate max-w-[100px]",children:A.name}),p.jsx("button",{type:"button",onClick:()=>x(_),className:"hover:text-destructive",children:"×"})]},`${A.name}-${_}`))}),p.jsxs("div",{className:"flex items-end gap-2 p-2",children:[o&&p.jsxs(p.Fragment,{children:[p.jsx("input",{ref:h,type:"file",multiple:!0,onChange:S,className:"hidden",accept:"image/*,audio/*,video/*,.pdf,.doc,.docx,.txt,.csv,.json"}),p.jsx("button",{type:"button",onClick:v,className:"p-2 rounded-xl hover:bg-accent text-muted-foreground transition-colors",title:"Attach file",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"})})})]}),p.jsx("textarea",{ref:g,value:s,onChange:A=>u(A.target.value),onKeyDown:w,onInput:k,placeholder:a,disabled:n,rows:1,className:"flex-1 resize-none bg-transparent px-3 py-2.5 text-sm focus:outline-none disabled:opacity-50 placeholder:text-muted-foreground/60",style:{maxHeight:"200px"}}),n?p.jsx("button",{type:"button",onClick:t,className:"p-2 rounded-xl bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors",title:"Stop",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}):p.jsx("button",{type:"button",onClick:m,disabled:!s.trim(),className:"p-2 rounded-xl bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-30 disabled:cursor-not-allowed transition-colors",title:"Send",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("path",{d:"M5 12h14M12 5l7 7-7 7"})})})]})]}),p.jsx("p",{className:"text-[10px] text-center text-muted-foreground/50 mt-2",children:"Press Enter to send, Shift+Enter for new line" Line truncated
`),m=E.useCallback(async()=>{!n.trim()||s||f(n)},[n,s,f]),S=E.useCallback(()=>{a("")},[]);return p.jsxs("div",{className:"min-h-screen bg-background text-foreground flex flex-col",children:[p.jsxs("header",{className:"border-b px-6 py-4 flex items-center justify-between",children:[p.jsx("h1",{className:"text-xl font-semibold",children:t||"Playground"}),p.jsx("div",{className:"flex items-center gap-2",children:p.jsx("button",{onClick:S,className:"px-3 py-1.5 text-sm rounded-md border hover:bg-accent",children:"Clear"})})]}),p.jsxs("div",{className:"flex-1 flex",children:[p.jsxs("div",{className:"flex-1 flex flex-col border-r",children:[p.jsx("div",{className:"px-4 py-2 border-b bg-muted/30",children:p.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Input"})}),p.jsx("div",{className:"flex-1 p-4",children:p.jsx("textarea",{value:n,onChange:v=>a(v.target.value),placeholder:"Enter your prompt here...",className:"w-full h-full resize-none bg-transparent border rounded-md p-3 focus:outline-none focus:ring-2 focus:ring-primary"})}),p.jsx("div",{className:"px-4 py-3 border-t flex justify-end gap-2",children:s?p.jsx("button",{onClick:g,className:"px-4 py-2 bg-destructive text-destructive-foreground rounded-md hover:bg-destructive/90",children:"Stop"}):p.jsx("button",{onClick:m,disabled:!n.trim(),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed",children:"Submit"})})]}),p.jsxs("div",{className:"flex-1 flex flex-col",children:[p.jsxs("div",{className:"px-4 py-2 border-b bg-muted/30 flex items-center justify-between",children:[p.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Output"}),s&&p.jsx("span",{className:"text-xs text-muted-foreground animate-pulse",children:"Processing..."})]}),p.jsx("div",{className:"flex-1 p-4 overflow-auto",children:h?p.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none whitespace-pre-wrap",children:h}):p.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground text-sm",children:"Output will appear here"})})]})]}),e?.features&&p.jsxs("div",{className:"border-t px-6 py-3 bg-muted/20 flex items-center gap-4 text-sm text-muted-foreground",children:[e.features.streaming&&p.jsx("span",{children:"✓ Streaming"}),e.features.reasoning&&p.jsx("span",{children:"✓ Reasoning"}),e.features.tools&&p.jsx("span",{children:"✓ Tools"})]})]})}function fW(e,t){const n=e.replace(/^\/+|\/+$/g,""),o=t.replace(/^\/+|\/+$/g,"").replace(/\*\*/g,"{{GLOB}}").replace(/\*/g,"[^/]+").replace(/\{\{GLOB\}\}/g,".*");return new RegExp(`^${o}$`).test(n)}function gW(e,t,n){const o=[...t.routes??[]].sort((s,u)=>(u.priority??0)-(s.priority??0));for(const s of o){if(!fW(e,s.pattern))continue;const u=n[s.template];return u?{template:s.template,layout:u.layout??"ThreeColumnLayout",slots:u.slots??{},slotOverrides:s.slotOverrides}:(console.warn(`Template "${s.template}" not found`),null)}return null}function mW(e,t){if(t)return t.slotOverrides&&e in t.slotOverrides?t.slotOverrides[e]:t.slots[e]}function hW(e){return mW("right",e)!==null}function bW(e){return e.title.trim().toLowerCase()}function S1(e){const t=[];e.path&&t.push(e.path.toLowerCase());for(const n of e.children??[])t.push(...S1(n));return t}function yW(e,t){const n=t.replace(/^\/+/,"").toLowerCase(),a=e.replace(/\/+$/,"").toLowerCase();if(n==="index")return a.endsWith("/index")||a==="/docs";const o=`/${n}`;return a.endsWith(o)||a.endsWith(`${o}/index`)}function vW(e,t){if(!t.groups?.length)return!1;const n=bW(e),a=S1(e);for(const o of t.groups){const s=o.group.toLowerCase();if(n===s)return!0;if(o.prefix){const u=o.prefix.toLowerCase();if(n===u||n===u.replace(/-/g," "))return!0;const c=`/docs/${u}`;if(a.some(f=>f===c||f.startsWith(`${c}/`)))return!0}if(o.pages?.some(u=>a.some(c=>yW(c,u)))||!e.children?.length&&o.pages?.some(u=>{const c=u.split("/").pop()?.replace(/-/g," ")??"";return n===c||n===u.toLowerCase()}))return!0}return!1}function EW(e,t){const n=t.toLowerCase();let a=-1,o=0;for(let s=0;s<e.length;s++){const u=e[s];for(const c of u.groups??[]){if(!c.prefix)continue;const f=`/${c.prefix.toLowerCase()}/`;n.includes(f)&&f.length>o&&(a=s,o=f.length)}}return a>=0?a:0}function SW(e,t){return t?e.filter(n=>vW(n,t)):e}function Xu({enabled:e}){return e?p.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 z-50 bg-primary text-primary-foreground px-4 py-2 rounded-md text-sm font-medium",children:"Skip to main content"}):null}function xW(){const[e,t]=E.useState({}),[n,a]=E.useState({}),[o,s]=E.useState({}),[u,c]=E.useState(!0),[f,g]=E.useState(null),[h,m]=E.useState(null),[S,v]=E.useState(""),[x,w]=E.useState(()=>ln(window.location.pathname)),[k,A]=E.useState(!1),[_,N]=E.useState(0),L=e.navigation?.tabs??[],U=E.useMemo(()=>L.length?{items:SW(n.items??[],L[_])}:n,[n,L,_]);E.useEffect(()=>{L.length&&N(EW(L,x))},[x,L]);const D=(M,j)=>{con Line truncated
@@ -190,6 +190,9 @@ function detectActiveTab(tabs) {
function renderTabBar(root) {
if (!tabConfig || !tabConfig.tabs || tabConfig.tabs.length === 0) return;
// React header owns tab navigation when present
if (document.querySelector('[data-aiui-header-tabs="true"]')) return;
const existing = document.querySelector('[data-aiui-plugin="topnav"]');
if (existing) {
// Don't auto-detect tab if user manually clicked one
+24 -1
View File
@@ -110,7 +110,8 @@ class TestSpaNavigation:
assert "MermaidDiagram" in content
assert "language-mermaid" in content
assert "children.type === MermaidDiagram" in content
assert "min-w-0 w-full" in content
assert "docs-main flex-1 min-w-0" in content
assert "max-w-[720px]" in content
css = Path("src/frontend/src/index.css").read_text(encoding="utf-8")
assert "width: 100% !important" in css
themes = Path("src/frontend/src/markdown/mermaidThemes.ts").read_text(encoding="utf-8")
@@ -118,3 +119,25 @@ class TestSpaNavigation:
assert "fitMermaidSvg" in themes
plugin = Path("src/praisonaiui/templates/frontend/plugins/mermaid.js").read_text(encoding="utf-8")
assert "article.prose" in plugin
def test_mintlify_layout_shell_and_header(self):
app = Path("src/frontend/src/App.tsx").read_text(encoding="utf-8")
header = Path("src/frontend/src/Header.tsx").read_text(encoding="utf-8")
content = Path("src/frontend/src/Content.tsx").read_text(encoding="utf-8")
toc = Path("src/frontend/src/Toc.tsx").read_text(encoding="utf-8")
assert "docs-shell" in app
assert "filterNavByTab" in app
assert 'data-aiui-header-tabs' in header
assert "max-w-[720px]" in content
assert "On this page" in toc
assert "docs-toc" in toc
def test_topnav_skips_when_react_header_owns_tabs(self):
source = Path("src/praisonaiui/templates/frontend/plugins/topnav.js").read_text(encoding="utf-8")
assert 'data-aiui-header-tabs="true"' in source
def test_nav_tabs_filter_by_path_prefix(self):
source = Path("src/frontend/src/docs/navTabs.ts").read_text(encoding="utf-8")
assert "collectPaths" in source
assert "pathMatchesPage" in source
assert "startsWith(`${prefixPath}/`)" in source