@inf-monkeys-tech/monkeys-design 2.0.390 → 2.0.392
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/beautiful.css +31 -0
- package/dist/components/beautiful/index.d.mts +2 -1
- package/dist/components/beautiful/index.d.ts +2 -1
- package/dist/components/beautiful/index.js +56 -56
- package/dist/components/beautiful/index.js.map +1 -1
- package/dist/components/beautiful/index.mjs +48 -48
- package/dist/components/beautiful/index.mjs.map +1 -1
- package/dist/sources/{5c0ba17575a45d178308f84c1bb66045469aff5f8e6580c3e4ca92f9bac72834.tsx → ab3a463e54918595b79681a411c9f8e5043333b5b3b7bdd2b93f6aaf5dc9f8ff.tsx} +5 -2
- package/package.json +1 -1
|
@@ -7,36 +7,36 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
7
7
|
import { cva } from 'class-variance-authority';
|
|
8
8
|
import { clsx } from 'clsx';
|
|
9
9
|
import { twMerge } from 'tailwind-merge';
|
|
10
|
-
import { ChevronRight, Check as Check$1, Circle, ChevronDown, ChevronUp, PanelRightClose, X, Plus, Search, Box, IceCreamCone, PanelLeftClose, SquarePen, LoaderCircle, MoreHorizontal, Pencil, Trash2, MessageCircleQuestion, ChevronLeft, Settings, UserPlus, LogOut, FolderPlus, Download } from 'lucide-react';
|
|
10
|
+
import { ChevronRight, Check as Check$1, Circle, ChevronDown, ChevronUp, PanelRightClose, X, Plus, Search, Box, IceCreamCone, PanelLeftClose, SquarePen, MessageSquare, LoaderCircle, MoreHorizontal, Pencil, Trash2, MessageCircleQuestion, ChevronLeft, Settings, UserPlus, LogOut, FolderPlus, Download } from 'lucide-react';
|
|
11
11
|
import * as ir from '@radix-ui/react-switch';
|
|
12
12
|
import * as Re from '@radix-ui/react-select';
|
|
13
13
|
import '@radix-ui/react-tabs';
|
|
14
14
|
import '@radix-ui/react-toggle-group';
|
|
15
15
|
import * as Pe from '@radix-ui/react-dropdown-menu';
|
|
16
16
|
import { resolveThemeTokens } from '@inf-monkeys-tech/monkeys/runtime';
|
|
17
|
-
import * as
|
|
17
|
+
import * as Do from '@radix-ui/react-tooltip';
|
|
18
18
|
import { Liveline } from 'liveline';
|
|
19
19
|
import * as mo from '@radix-ui/react-popover';
|
|
20
20
|
import { Refresh, Xmark, Check, NavArrowRight, ArrowUp, TextBox, EmojiSatisfied, Scissor, Spark, ChatBubbleQuestion } from 'iconoir-react';
|
|
21
21
|
import * as _e from '@radix-ui/react-dialog';
|
|
22
22
|
import * as qe from '@radix-ui/react-alert-dialog';
|
|
23
|
-
import * as
|
|
23
|
+
import * as oo from '@radix-ui/react-accordion';
|
|
24
24
|
import * as Br from '@radix-ui/react-checkbox';
|
|
25
|
-
import * as
|
|
25
|
+
import * as Kt from '@radix-ui/react-scroll-area';
|
|
26
26
|
import { Slot } from '@radix-ui/react-slot';
|
|
27
27
|
import { Button } from '@base-ui/react/button';
|
|
28
28
|
import { useDirection, DirectionProvider } from '@base-ui/react/direction-provider';
|
|
29
29
|
import { Tabs } from '@base-ui/react/tabs';
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
30
|
+
import Hb, { defaultUrlTransform } from 'react-markdown';
|
|
31
|
+
import Vb from 'remark-gfm';
|
|
32
|
+
import Wb from 'remark-cjk-friendly';
|
|
33
33
|
import { visit } from 'unist-util-visit';
|
|
34
34
|
import { useComposedRefs } from '@radix-ui/react-compose-refs';
|
|
35
35
|
import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
|
|
36
36
|
import { DismissableLayer as DismissableLayer$1 } from 'radix-popover-dismissable-layer';
|
|
37
37
|
import { Popover } from '@base-ui/react/popover';
|
|
38
38
|
|
|
39
|
-
var uc=Object.defineProperty;var i=(e,t)=>uc(e,"name",{value:t,configurable:true});var mc={page:["background"],canvas:["background"],surface:["card"],inset:["secondary"],field:["muted"],hover:["accent"],"hover-2":["accent"],ink:["foreground"],"ink-2":["muted-foreground"],"ink-3":["muted-foreground"],line:["border"],"line-strong":["input","border"],"line-soft":["border"],accent:["primary"],"accent-ink":["primary"],"color-white":["primary-foreground"],green:["success"],orange:["warning"],red:["destructive"],"tooltip-bg":["popover"],"tooltip-fg":["popover-foreground"],"tooltip-muted":["muted-foreground"],"tooltip-border":["border"],"monogram-fill":["primary"],"filter-todo":["warning"],"filter-progress":["primary"],"filter-done":["success"],"flow-condition":["primary"],"flow-branch":["warning"],"chart-alert":["destructive"]},gc={"radius-control":["semantic.ui.radius.control","semantic.radius.base"],"radius-card":["semantic.ui.radius.container","semantic.radius.base"],"radius-chip":["semantic.ui.radius.content","semantic.radius.base"],shadow:["semantic.bento.default.shadow","semantic.shadow.card"],"sidebar-row-height":["semantic.ui.control.height.sm"],"composer-control-height":["semantic.ui.control.height.sm"],"composer-gap":["semantic.ui.spacing.controlGap"]},Ia=["xs","sm","base","lg","xl"],fc=["normal","medium","semibold","bold"],Zr=new WeakMap;function Ba(e){if(e&&Zr.has(e))return Zr.get(e);let t={},o=i(s=>e&&s.map(d=>getThemeTokenCssValue(e,d)).find(d=>d!==void 0),"read"),n=i((s,d)=>{t[`--bui-token-${s}`]=o(d)??"initial";},"token");for(let[s,d]of Object.entries(gc))n(s,d);n("primary",["semantic.color.primary"]),n("primary-foreground",["semantic.color.primary-foreground"]),n("focus-ring",["semantic.color.ring"]);for(let s of ["success","warning","destructive"])n(`${s}-foreground`,[`semantic.color.${s}-foreground`]);n("font-family",["semantic.font.body"]),n("font-mono",["semantic.font.mono"]);for(let s of ["sidebar-inset","sidebar-padding","sidebar-section-gap","composer-inset","composer-padding","composer-spacing"])n(s,[]);for(let s of Ia)n(`font-size-${s}`,[`semantic.font.size.${s}`]),n(`line-height-${s}`,[`semantic.font.lineHeight.${s}`]);if(!e)return Object.freeze(t);for(let s of Ia){let d=t[`--bui-token-font-size-${s}`];d!=="initial"&&(t[`--bui-text-${s}`]=d);}for(let[s,d]of Object.entries(mc)){let u=o(d.map(m=>`semantic.color.${m}`));u!==void 0&&(t[`--bui-${s}`]=u);}for(let[s,d]of [["font-inter","body"],["font-mono-face","mono"]]){let u=o([`semantic.font.${d}`]);u!==void 0&&(t[`--bui-${s}`]=u);}for(let s of fc){let d=o([`semantic.font.weight.${s}`]);d!==void 0&&(t[`--bui-font-weight-${s}`]=d);}let r=e.cssValues[`semantic.spacing.global.${e.density}`]??e.cssValues["semantic.spacing.global"];r!==void 0&&(t["--bui-spacing"]=`calc(${r} / 2)`),r!==void 0&&(t["--bui-token-sidebar-inset"]="0px",t["--bui-token-sidebar-padding"]=`calc(${r} / 2)`,t["--bui-token-sidebar-section-gap"]=r,t["--bui-token-sidebar-row-height"]==="initial"&&(t["--bui-token-sidebar-row-height"]=`calc(var(--bui-token-line-height-sm, 1.5em) + ${r})`),t["--bui-token-composer-inset"]=r,t["--bui-token-composer-padding"]=`calc(${r} / 2)`,t["--bui-token-composer-spacing"]=`calc(${r} / 3)`,t["--bui-token-composer-gap"]==="initial"&&(t["--bui-token-composer-gap"]=`calc(${r} / 2)`),t["--bui-token-composer-control-height"]==="initial"&&(t["--bui-token-composer-control-height"]=`calc(var(--bui-token-line-height-sm, 1.5em) + ${r})`));for(let s of ["accent","green","orange","red"])t[`--bui-${s}`]&&(t[`--bui-${s}-tint`]=`color-mix(in srgb, var(--bui-${s}) 12%, var(--bui-surface))`);let a=t["--bui-token-shadow"];if(a!=="initial")for(let s of ["xs","sm","md","lg","btn","card","raised","overlay"])t[`--bui-shadow-${s}`]=a;let l=Object.freeze(t);return Zr.set(e,l),l}i(Ba,"resolveBeautifulTheme");var Jr=createContext(null);function Ea(){return useContext(Jr)?.dark??false}i(Ea,"useBUIDark");function U({children:e,portal:t=false}){let o=useContext(Jr),n=useMonkeysResolvedTheme(),r=useMemo(()=>Ba(n),[n]),a=useRef(null),[l,s]=useState(false);useEffect(()=>{if(o||n)return;let u=[];for(let p=a.current?.parentElement;p;p=p.parentElement)u.push(p);let m=i(()=>s(u.some(p=>p.classList.contains("dark")||p.getAttribute("data-monkeys-theme-mode")==="dark")),"update");m();let c=new MutationObserver(m);return u.forEach(p=>c.observe(p,{attributes:true,attributeFilter:["class","data-monkeys-theme-mode"]})),()=>c.disconnect()},[o,n]);let d=n?.colorMode==="dark"||(n?false:o?.dark??l);return o&&o.theme===n&&!t?jsx(Fragment,{children:e}):jsx(Jr.Provider,{value:{dark:d,theme:n},children:jsx("span",{ref:a,"data-bui-color-mode":n?.colorMode,className:"monkeys-beautiful"+(d?" monkeys-beautiful-dark":""),style:{...r,display:"contents"},children:e})})}i(U,"BUIScope");function
|
|
39
|
+
var uc=Object.defineProperty;var i=(e,t)=>uc(e,"name",{value:t,configurable:true});var mc={page:["background"],canvas:["background"],surface:["card"],inset:["secondary"],field:["muted"],hover:["accent"],"hover-2":["accent"],ink:["foreground"],"ink-2":["muted-foreground"],"ink-3":["muted-foreground"],line:["border"],"line-strong":["input","border"],"line-soft":["border"],accent:["primary"],"accent-ink":["primary"],"color-white":["primary-foreground"],green:["success"],orange:["warning"],red:["destructive"],"tooltip-bg":["popover"],"tooltip-fg":["popover-foreground"],"tooltip-muted":["muted-foreground"],"tooltip-border":["border"],"monogram-fill":["primary"],"filter-todo":["warning"],"filter-progress":["primary"],"filter-done":["success"],"flow-condition":["primary"],"flow-branch":["warning"],"chart-alert":["destructive"]},gc={"radius-control":["semantic.ui.radius.control","semantic.radius.base"],"radius-card":["semantic.ui.radius.container","semantic.radius.base"],"radius-chip":["semantic.ui.radius.content","semantic.radius.base"],shadow:["semantic.bento.default.shadow","semantic.shadow.card"],"sidebar-row-height":["semantic.ui.control.height.sm"],"composer-control-height":["semantic.ui.control.height.sm"],"composer-gap":["semantic.ui.spacing.controlGap"]},Ia=["xs","sm","base","lg","xl"],fc=["normal","medium","semibold","bold"],Zr=new WeakMap;function Ba(e){if(e&&Zr.has(e))return Zr.get(e);let t={},o=i(s=>e&&s.map(d=>getThemeTokenCssValue(e,d)).find(d=>d!==void 0),"read"),n=i((s,d)=>{t[`--bui-token-${s}`]=o(d)??"initial";},"token");for(let[s,d]of Object.entries(gc))n(s,d);n("primary",["semantic.color.primary"]),n("primary-foreground",["semantic.color.primary-foreground"]),n("focus-ring",["semantic.color.ring"]);for(let s of ["success","warning","destructive"])n(`${s}-foreground`,[`semantic.color.${s}-foreground`]);n("font-family",["semantic.font.body"]),n("font-mono",["semantic.font.mono"]);for(let s of ["sidebar-inset","sidebar-padding","sidebar-section-gap","composer-inset","composer-padding","composer-spacing"])n(s,[]);for(let s of Ia)n(`font-size-${s}`,[`semantic.font.size.${s}`]),n(`line-height-${s}`,[`semantic.font.lineHeight.${s}`]);if(!e)return Object.freeze(t);for(let s of Ia){let d=t[`--bui-token-font-size-${s}`];d!=="initial"&&(t[`--bui-text-${s}`]=d);}for(let[s,d]of Object.entries(mc)){let u=o(d.map(m=>`semantic.color.${m}`));u!==void 0&&(t[`--bui-${s}`]=u);}for(let[s,d]of [["font-inter","body"],["font-mono-face","mono"]]){let u=o([`semantic.font.${d}`]);u!==void 0&&(t[`--bui-${s}`]=u);}for(let s of fc){let d=o([`semantic.font.weight.${s}`]);d!==void 0&&(t[`--bui-font-weight-${s}`]=d);}let r=e.cssValues[`semantic.spacing.global.${e.density}`]??e.cssValues["semantic.spacing.global"];r!==void 0&&(t["--bui-spacing"]=`calc(${r} / 2)`),r!==void 0&&(t["--bui-token-sidebar-inset"]="0px",t["--bui-token-sidebar-padding"]=`calc(${r} / 2)`,t["--bui-token-sidebar-section-gap"]=r,t["--bui-token-sidebar-row-height"]==="initial"&&(t["--bui-token-sidebar-row-height"]=`calc(var(--bui-token-line-height-sm, 1.5em) + ${r})`),t["--bui-token-composer-inset"]=r,t["--bui-token-composer-padding"]=`calc(${r} / 2)`,t["--bui-token-composer-spacing"]=`calc(${r} / 3)`,t["--bui-token-composer-gap"]==="initial"&&(t["--bui-token-composer-gap"]=`calc(${r} / 2)`),t["--bui-token-composer-control-height"]==="initial"&&(t["--bui-token-composer-control-height"]=`calc(var(--bui-token-line-height-sm, 1.5em) + ${r})`));for(let s of ["accent","green","orange","red"])t[`--bui-${s}`]&&(t[`--bui-${s}-tint`]=`color-mix(in srgb, var(--bui-${s}) 12%, var(--bui-surface))`);let a=t["--bui-token-shadow"];if(a!=="initial")for(let s of ["xs","sm","md","lg","btn","card","raised","overlay"])t[`--bui-shadow-${s}`]=a;let l=Object.freeze(t);return Zr.set(e,l),l}i(Ba,"resolveBeautifulTheme");var Jr=createContext(null);function Ea(){return useContext(Jr)?.dark??false}i(Ea,"useBUIDark");function U({children:e,portal:t=false}){let o=useContext(Jr),n=useMonkeysResolvedTheme(),r=useMemo(()=>Ba(n),[n]),a=useRef(null),[l,s]=useState(false);useEffect(()=>{if(o||n)return;let u=[];for(let p=a.current?.parentElement;p;p=p.parentElement)u.push(p);let m=i(()=>s(u.some(p=>p.classList.contains("dark")||p.getAttribute("data-monkeys-theme-mode")==="dark")),"update");m();let c=new MutationObserver(m);return u.forEach(p=>c.observe(p,{attributes:true,attributeFilter:["class","data-monkeys-theme-mode"]})),()=>c.disconnect()},[o,n]);let d=n?.colorMode==="dark"||(n?false:o?.dark??l);return o&&o.theme===n&&!t?jsx(Fragment,{children:e}):jsx(Jr.Provider,{value:{dark:d,theme:n},children:jsx("span",{ref:a,"data-bui-color-mode":n?.colorMode,className:"monkeys-beautiful"+(d?" monkeys-beautiful-dark":""),style:{...r,display:"contents"},children:e})})}i(U,"BUIScope");function Oo(e,t,o){return jsx(Sc,{container:t,portalKey:o,children:e})}i(Oo,"beautifulPortal");function Sc({children:e,container:t,portalKey:o}){let n=useMonkeysPortalOptions(),r=typeof n.container=="function"?n.container():n.container,a=jsx(U,{portal:true,children:e});return n.disabled?a:createPortal(a,r??t,o)}i(Sc,"BUIPortal");function gn(...e){return twMerge(clsx(e))}i(gn,"cn");var ei=new WeakMap;function La(e){let t=ei.get(e)??{count:0,overflow:e.body.style.overflow};return t.count+=1,ei.set(e,t),e.body.style.overflow="hidden",()=>{t.count-=1,t.count===0&&(e.body.style.overflow=t.overflow,ei.delete(e));}}i(La,"lockBUIScroll");var ti="shadow-[inset_0_1px_0_rgba(255,255,255,0.14)]",za=cva(`inline-flex items-center justify-center font-medium select-none
|
|
40
40
|
transition-[transform,background-color,opacity] duration-150 ease-out
|
|
41
41
|
active:scale-[0.96] disabled:opacity-50 disabled:pointer-events-none`,{variants:{variant:{primary:`bg-ink text-canvas hover:opacity-90 dark:bg-ink dark:text-canvas ${ti}`,secondary:"bg-surface text-ink shadow-btn hover:bg-inset aria-expanded:bg-hover",ghost:"bg-hover-2 text-ink hover:bg-line-strong",accent:`bg-accent text-white hover:bg-accent-ink ${ti}`,success:`bg-green text-white hover:brightness-95 ${ti}`,quiet:"text-ink hover:bg-hover"},size:{xs:"h-7 rounded-full px-2.5 text-[12px] font-normal leading-none gap-1",sm:"h-[27px] px-3 text-[13px] leading-none rounded-full gap-1.5",md:"px-4 py-[9px] text-sm leading-none rounded-full gap-2"}},defaultVariants:{variant:"secondary",size:"md"}}),Me=forwardRef(i(function({variant:t,size:o,className:n,...r},a){return jsx(U,{children:jsx("button",{ref:a,className:gn(za({variant:t,size:o}),n),...r})})},"BUIButton"));function Mc({children:e,tone:t="neutral",className:o=""}){return jsx(U,{children:jsx("code",{className:`inline rounded-md px-1.5 py-0.5 font-mono text-[12px]
|
|
42
42
|
leading-none align-[-1px] ${{neutral:"bg-inset text-ink-2",accent:"bg-accent-tint text-accent-ink",orange:"bg-orange-tint text-orange"}[t]} ${o}`,children:e})})}i(Mc,"BUIChip");function Fa({children:e,color:t="var(--bui-monogram-fill)",className:o=""}){return jsx(U,{children:jsx("span",{className:`flex size-4 shrink-0 items-center justify-center rounded-full
|
|
@@ -47,9 +47,9 @@ var uc=Object.defineProperty;var i=(e,t)=>uc(e,"name",{value:t,configurable:true
|
|
|
47
47
|
${a===t?"text-ink":"text-ink-3 hover:text-ink-2"}`,children:a},a))]})})}i(Ec,"BUISegmentedControl");function ni({children:e,className:t=""}){return jsx(U,{children:jsx("span",{className:`inline-block bg-clip-text text-transparent ${t}`,style:{backgroundImage:"linear-gradient(90deg, var(--bui-ink-3) 35%, var(--bui-ink) 50%, var(--bui-ink-3) 65%)",backgroundSize:"200% 100%",animation:"bui-shimmer-text 1.8s linear infinite"},children:e})})}i(ni,"BUIShimmer");var zc=cva("inline-flex h-6 items-center gap-1.5 rounded-full px-2.5 text-[13px] font-medium leading-none",{variants:{tone:{green:"bg-green-tint text-green",orange:"bg-orange-tint text-orange",red:"bg-red-tint text-red",accent:"bg-accent-tint text-accent-ink",neutral:"bg-inset text-ink-2"}},defaultVariants:{tone:"neutral"}}),Uc={green:"bg-green",orange:"bg-orange",red:"bg-red",accent:"bg-accent",neutral:"bg-ink-3"};function Fc({tone:e="neutral",children:t,dot:o=true,className:n}){return jsx(U,{children:jsxs("span",{className:gn(zc({tone:e}),n),children:[o&&jsx("span",{className:gn("size-1.5 rounded-full",Uc[e])}),t]})})}i(Fc,"BUIStatusPill");function ii({text:e,charsPerTick:t=2,tickMs:o=9,blurTail:n=6,caret:r=true,className:a,onProgress:l,onDone:s}){let[d,u]=useState(0),m=useRef(""),c=useRef(0);c.current=d;let p=useRef(l),h=useRef(s);p.current=l,h.current=s,useEffect(()=>{let f=e.startsWith(m.current)?c.current:0;m.current=e,u(f);let x=setInterval(()=>{f=Math.min(f+Math.max(1,t),e.length),u(f),p.current?.(),f>=e.length&&(clearInterval(x),h.current?.());},Math.max(16,o));return ()=>clearInterval(x)},[e,t,o]);let v=d<e.length,w=e.slice(0,d),g=v?Math.max(0,w.length-n):w.length;return jsx(U,{children:jsxs("span",{className:a,children:[w.slice(0,g),g<w.length&&jsx("span",{className:"stream-tail",children:w.slice(g)}),r&&jsx("span",{"aria-hidden":true,className:`stream-caret${v?" is-streaming":""}`})]})})}i(ii,"BUIStreamText");function Wc({checked:e,onChange:t,label:o}){return jsx(U,{children:jsx("button",{role:"switch","aria-checked":e,"aria-label":o,onClick:()=>t(!e),className:`relative h-6 w-10 shrink-0 rounded-[var(--bui-radius-pill)] transition-colors duration-200
|
|
48
48
|
${e?"bg-ink":"bg-line-strong"}`,children:jsx("span",{className:`absolute top-0.5 left-0.5 size-5 rounded-full bg-white
|
|
49
49
|
shadow-[0_1px_2px_rgba(0,0,0,0.2)] transition-transform duration-200`,style:{transform:e?"translateX(16px)":"translateX(0)",transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"}})})})}i(Wc,"BUISwitch");function jc({label:e,value:t,meta:o,className:n=""}){return jsx(U,{children:jsxs("div",{className:`flex min-h-11 items-center justify-between gap-4 py-2 ${n}`,children:[jsx("span",{className:"text-sm text-ink-2",children:e}),jsxs("span",{className:"flex items-baseline gap-2 text-right",children:[jsx("span",{className:"text-sm font-medium text-ink tabular-nums",children:t}),o&&jsx("span",{className:"text-[13px] text-ink-3",children:o})]})]})})}i(jc,"BUITextRow");var Gc={neutral:{cls:"bg-field text-ink-2",ring:"var(--bui-shadow-hairline)"},green:{cls:"bg-green-tint text-green",ring:"0 0 0 1px color-mix(in oklch, var(--bui-green) 28%, transparent)"},orange:{cls:"bg-orange-tint text-orange",ring:"0 0 0 1px color-mix(in oklch, var(--bui-orange) 28%, transparent)"},red:{cls:"bg-red-tint text-red",ring:"0 0 0 1px color-mix(in oklch, var(--bui-red) 28%, transparent)"},accent:{cls:"bg-accent-tint text-accent-ink",ring:"0 0 0 1px color-mix(in oklch, var(--bui-accent) 28%, transparent)"}};function qc({children:e,tone:t="neutral",className:o=""}){let n=Gc[t];return jsx(U,{children:jsx("span",{className:`mx-0.5 inline-flex items-center rounded-full px-1.5 py-0
|
|
50
|
-
align-middle text-[12px] font-medium ${n.cls} ${o}`,style:{boxShadow:n.ring},children:e})})}i(qc,"BUIValuePill");var ja={"Chat history":"chatHistory","Start a conversation":"startAConversation","Stop response":"stopResponse","Load more":"loadMore","% average":"average","'s screen":"sScreen","About grounding":"aboutGrounding","Answer could not be sent":"questionAnswerFailed","Answer sent":"questionAnswerSent","Cancel question":"questionCancel",Cancelling:"questionCancelling","Question cancelled":"questionCancelled",Accepted:"accepted","Add attachments and sources":"addAttachmentsAndSources","Add calculation":"addCalculation","Add property":"addProperty",Adjust:"adjust","Adjust your search to try again":"adjustYourSearchToTryAgain",Advisor:"advisor","All chunks":"allChunks","Allocation segments":"allocationSegments",Alternatives:"alternatives","Answers sent":"answersSent",Apply:"apply",Behavior:"behavior","Calculating\u2026":"calculating","Calculation inputs":"calculationInputs","Chat prompt":"chatPrompt",Chats:"chats","Choose model":"chooseModel","Clear search":"clearSearch","Clear selection":"clearSelection","Click changed rows to toggle":"clickChangedRowsToToggle","Close chat search":"closeChatSearch",Collapse:"collapse","Collapse sidebar":"collapseSidebar","Compact columns":"compactColumns","Companies table. Scroll horizontally and vertically to view all columns and records.":"companiesTableScrollHorizontallyAndVerticallyToViewAllColumnsAndRecords",Company:"company",Completed:"completed","Connecting to agent's screen":"connectingToAgentSScreen",Continue:"continue","Continue in new conversation":"continueInNewConversation","Contribution snapshot across current inventory value. Segment selection changes the inspected group without moving the card.":"contributionSnapshotAcrossCurrentInventoryValueSegmentSelectionChangesTheInspectedGroupWithoutMovingTheCard",Copied:"copied",Copy:"copy","Copy code":"copyCode","Custom answer":"customAnswer",Date:"date","Describe edits":"describeEdits",Discard:"discard",Dismiss:"dismiss",Edited:"edited",End:"end","Enter a message":"enterAMessage","Expand sidebar":"expandSidebar",Failed:"failed","Follow-ups":"followUps","Go calculate":"goCalculate","Grounding lets the model verify generated values against connected sources.":"groundingLetsTheModelVerifyGeneratedValuesAgainstConnectedSources","Hide from view":"hideFromView",If:"if",Insights:"insights",Keep:"keep",Layout:"layout",More:"more","More settings":"moreSettings","New property":"newProperty","Next question":"nextQuestion","No chats found":"noChatsFound","No matches for \u201C":"noMatchesFor","No results found":"noResultsFound",Open:"open","Open approval":"openApproval","Other options":"otherOptions","Previous question":"previousQuestion",Prompt:"prompt",Recommendation:"recommendation",Recommended:"recommended","Reset column widths":"resetColumnWidths","Resize Company column":"resizeCompanyColumn","Scrollable task table":"scrollableTaskTable",Search:"search","Search chat history":"searchChatHistory","Search chats":"searchChats","Search\u2026":"search","Select inputs":"selectInputs","Select type":"selectType",Send:"send","Send answer":"sendAnswer","Send edit instruction":"sendEditInstruction","Set a prompt (press @ to mention an input)":"setAPromptPressToMentionAnInput","Sign out":"signOut",Skip:"skip",Snapshot:"snapshot","Something else\u2026":"somethingElse",Sending:"sending","Sending recommended answers in {seconds}s":"autoSendAnswers",Sources:"sources","Start over":"startOver",Status:"status","Table options":"tableOptions","Task name":"taskName","Teach a task":"teachATask","Tool calls":"toolCalls","Trend snapshot":"trendSnapshot","Try again":"tryAgain",Type:"type","Use values from":"useValuesFrom","Your answer":"answerPlaceholder",V:"v","Video unavailable":"videoUnavailable","Workspace navigation":"workspaceNavigation",and:"and",applied:"applied",count:"count",for:"for",h:"h",is:"is",links:"links",spent:"spent",Configuration:"configuration",New:"new",History:"history",edit:"edit",edits:"edits",removal:"removal",removals:"removals",addition:"addition",additions:"additions",change:"change",changes:"changes",Spend:"spend",Usage:"usage","Previous insight":"previousInsight","Next insight":"nextInsight",Connected:"connected",Connect:"connect","Type to search sources & files":"typeToSearchSourcesFiles","Type to search commands":"typeToSearchCommands","Listening\u2026":"listening","Stop dictation":"stopDictation","Start dictation":"startDictation",Unpin:"unpin",Pin:"pin","Show fewer actions":"showFewerActions","Show more actions":"showMoreActions",Retry:"retry",Like:"like",Dislike:"dislike","New workspace":"newWorkspace","Workspace settings":"workspaceSettings","Invite team members":"inviteTeamMembers",Loading:"loading",Thinking:"thinking","Thought complete":"thoughtComplete",Model:"model",Agent:"agent","View sources":"viewSources",Close:"close","No files":"noFiles",Done:"done",Edit:"edit","Done editing":"doneEditing","New chat":"newChat",All:"all","To do":"toDo","In Progress":"inProgress","Very strong":"veryStrong",Weak:"weak","Very weak":"veryWeak","No communication":"noCommunication",Cancel:"cancel",Improve:"improve",Explain:"explain",Shorten:"shorten",Tone:"tone",Grammar:"grammar","Write a message\u2026":"writeMessage","Select all companies":"selectAllCompanies",Categories:"categories","Last interaction":"lastInteraction","Connection strength":"connectionStrength",Links:"linksHeading","Property type":"propertyType",Tool:"tool",Grounding:"grounding",Inputs:"inputs","Required value":"requiredValue","Allow empty results":"allowEmptyResults","Show confidence":"showConfidence","Categories: {categories}":"categoriesSummary","Sort by {label}":"sortByLabel","Resize {label} column":"resizeColumn","Select {name}":"selectName","{column} calculation prompt":"columnCalculationPrompt","Proposed changes":"proposedChanges",Name:"name",Category:"category",Value:"value",Anomaly:"anomaly",Allocation:"allocation"},jn={taskProgressTitle:"Task progress",taskProgressCurrent:"{current}/{total} {title}","taskProgressStatus.done":"Completed","taskProgressStatus.running":"In progress","taskProgressStatus.pending":"Pending","taskProgressStatus.failed":"Failed","taskProgressStatus.skipped":"Skipped","taskProgressStatus.stopped":"Stopped",recentClose:"Close",recentMore:"More actions for {title}",recentMoreLabel:"More",recentRunning:"Running",recentRename:"Rename",recentDelete:"Delete conversation",recentDeleteDescription:"Delete \u201C{title}\u201D? This conversation will be removed.",recentRenameDescription:"Choose a name for this conversation.",recentName:"Conversation name",recentCancel:"Cancel",recentSave:"Save",recentSaving:"Saving\u2026",recentActionFailed:"Could not confirm the change. Refresh the conversation list before trying again.",chatHistory:"Chat history",startAConversation:"Start a conversation",stopResponse:"Stop response",loadMore:"Load more",average:"% average",sScreen:"'s screen",aboutGrounding:"About grounding",questionPanel:"Questions",questionNavigation:"Question navigation",questionPosition:"{current} of {total}",questionAnswerFailed:"Answer could not be sent. Try again.",questionAnswerSent:"Answer sent",questionCancel:"Skip",questionCancelling:"Skipping\u2026",questionCancelled:"Skipped",answerPlaceholder:"Your answer",autoSendAnswers:"Sending recommended answers in {seconds}s",recommended:"Recommended",sendAnswer:"Send answer",sending:"Sending\u2026",accepted:"Accepted",addAttachmentsAndSources:"Add attachments and sources",addCalculation:"Add calculation",addProperty:"Add property",adjust:"Adjust",adjustYourSearchToTryAgain:"Adjust your search to try again",advisor:"Advisor",allChunks:"All chunks",allocationSegments:"Allocation segments",alternatives:"Alternatives",answersSent:"Answers sent",apply:"Apply",behavior:"Behavior",calculating:"Calculating\u2026",calculationInputs:"Calculation inputs",chatPrompt:"Chat prompt",chats:"Chats",chooseModel:"Choose model",clearSearch:"Clear search",clearSelection:"Clear selection",clickChangedRowsToToggle:"Click changed rows to toggle",closeChatSearch:"Close chat search",collapse:"Collapse",collapseSidebar:"Collapse sidebar",compactColumns:"Compact columns",companiesTableScrollHorizontallyAndVerticallyToViewAllColumnsAndRecords:"Companies table. Scroll horizontally and vertically to view all columns and records.",company:"Company",completed:"Completed",connectingToAgentSScreen:"Connecting to agent's screen",continue:"Continue",continueInNewConversation:"Continue in new conversation",contributionSnapshotAcrossCurrentInventoryValueSegmentSelectionChangesTheInspectedGroupWithoutMovingTheCard:"Contribution snapshot across current inventory value. Segment selection changes the inspected group without moving the card.",copied:"Copied",copy:"Copy",copyCode:"Copy code",customAnswer:"Custom answer",date:"Date",describeEdits:"Describe edits",discard:"Discard",dismiss:"Dismiss",edited:"Edited",end:"End",enterAMessage:"Enter a message",expandSidebar:"Expand sidebar",failed:"Failed",followUps:"Follow-ups",goCalculate:"Go calculate",groundingLetsTheModelVerifyGeneratedValuesAgainstConnectedSources:"Grounding lets the model verify generated values against connected sources.",hideFromView:"Hide from view",if:"If",insights:"Insights",keep:"Keep",layout:"Layout",more:"More",moreSettings:"More settings",newProperty:"New property",nextQuestion:"Next question",noChatsFound:"No chats found",noMatchesFor:"No matches for \u201C",noResultsFound:"No results found",open:"Open",openApproval:"Open approval",otherOptions:"Other options",previousQuestion:"Previous question",prompt:"Prompt",recommendation:"Recommendation",resetColumnWidths:"Reset column widths",resizeCompanyColumn:"Resize Company column",scrollableTaskTable:"Scrollable task table",search:"Search\u2026",searchChatHistory:"Search chat history",searchChats:"Search chats",selectInputs:"Select inputs",selectType:"Select type",send:"Send",sendEditInstruction:"Send edit instruction",setAPromptPressToMentionAnInput:"Set a prompt (press @ to mention an input)",signOut:"Sign out",skip:"Skip",snapshot:"Snapshot",somethingElse:"Something else\u2026",sources:"Sources",startOver:"Start over",status:"Status",tableOptions:"Table options",taskName:"Task name",teachATask:"Teach a task",toolCalls:"Tool calls",trendSnapshot:"Trend snapshot",tryAgain:"Try again",type:"Type",useValuesFrom:"Use values from",v:"V",videoUnavailable:"Video unavailable",workspaceNavigation:"Workspace navigation",and:"and",applied:"applied",count:"count",for:"for",h:"h",is:"is",links:"links",spent:"spent",configuration:"Configuration",new:"New",history:"History",edit:"Edit",edits:"edits",removal:"removal",removals:"removals",addition:"addition",additions:"additions",change:"change",changes:"changes",spend:"Spend",usage:"Usage",previousInsight:"Previous insight",nextInsight:"Next insight",connected:"Connected",connect:"Connect",typeToSearchSourcesFiles:"Type to search sources & files",typeToSearchCommands:"Type to search commands",listening:"Listening\u2026",stopDictation:"Stop dictation",startDictation:"Start dictation",unpin:"Unpin",pin:"Pin",showFewerActions:"Show fewer actions",showMoreActions:"Show more actions",retry:"Retry",like:"Like",dislike:"Dislike",newWorkspace:"New workspace",workspaceSettings:"Workspace settings",inviteTeamMembers:"Invite team members",loading:"Loading",thinking:"Thinking",thoughtComplete:"Thought complete",model:"Model",agent:"Agent",viewSources:"View sources",close:"Close",noFiles:"No files",done:"Done",doneEditing:"Done editing",newChat:"New chat",all:"All",toDo:"To do",inProgress:"In Progress",veryStrong:"Very strong",weak:"Weak",veryWeak:"Very weak",noCommunication:"No communication",cancel:"Cancel",improve:"Improve",explain:"Explain",shorten:"Shorten",tone:"Tone",grammar:"Grammar",screenTitle:"{name}'s screen",duration:"for {time}",noMatches:"No matches for \u201C{query}\u201D",editsApplied_one:"{count} edit applied",editsApplied_other:"{count} edits applied",changesSummary:"{removals} removed \xB7 {additions} added",applyChanges_one:"Apply {count} change",applyChanges_other:"Apply {count} changes",sourceCount_one:"{count} source",sourceCount_other:"{count} sources",writeMessage:"Write a message\u2026",selectAllCompanies:"Select all companies",categories:"Categories",lastInteraction:"Last interaction",connectionStrength:"Connection strength",linksHeading:"Links",propertyType:"Property type",tool:"Tool",grounding:"Grounding",inputs:"Inputs",requiredValue:"Required value",allowEmptyResults:"Allow empty results",showConfidence:"Show confidence",categoriesSummary:"Categories: {categories}",sortByLabel:"Sort by {label}",resizeColumn:"Resize {label} column",selectName:"Select {name}",columnCalculationPrompt:"{column} calculation prompt",proposedChanges:"Proposed changes",name:"Name",category:"Category",value:"Value",anomaly:"Anomaly",allocation:"Allocation"},Ga={taskProgressTitle:"\u4EFB\u52A1\u8FDB\u5EA6",taskProgressCurrent:"{current}/{total} {title}","taskProgressStatus.done":"\u5DF2\u5B8C\u6210","taskProgressStatus.running":"\u8FDB\u884C\u4E2D","taskProgressStatus.pending":"\u5F85\u6267\u884C","taskProgressStatus.failed":"\u5931\u8D25","taskProgressStatus.skipped":"\u5DF2\u8DF3\u8FC7","taskProgressStatus.stopped":"\u5DF2\u505C\u6B62",recentClose:"\u5173\u95ED",recentMore:"{title}\u7684\u66F4\u591A\u64CD\u4F5C",recentMoreLabel:"\u66F4\u591A",recentRunning:"\u8FD0\u884C\u4E2D",recentRename:"\u91CD\u547D\u540D",recentDelete:"\u5220\u9664\u5BF9\u8BDD",recentDeleteDescription:"\u786E\u5B9A\u5220\u9664\u201C{title}\u201D\u5417\uFF1F\u8BE5\u5BF9\u8BDD\u5C06\u88AB\u79FB\u9664\u3002",recentRenameDescription:"\u4E3A\u8FD9\u6BB5\u5BF9\u8BDD\u8BBE\u7F6E\u4E00\u4E2A\u540D\u79F0\u3002",recentName:"\u5BF9\u8BDD\u540D\u79F0",recentCancel:"\u53D6\u6D88",recentSave:"\u4FDD\u5B58",recentSaving:"\u4FDD\u5B58\u4E2D\u2026",recentActionFailed:"\u672A\u80FD\u786E\u8BA4\u4FEE\u6539\u7ED3\u679C\uFF0C\u8BF7\u5237\u65B0\u4F1A\u8BDD\u5217\u8868\u540E\u518D\u8BD5\u3002",chatHistory:"\u5BF9\u8BDD\u5386\u53F2",startAConversation:"\u5F00\u59CB\u65B0\u7684\u5BF9\u8BDD",stopResponse:"\u505C\u6B62\u56DE\u590D",loadMore:"\u52A0\u8F7D\u66F4\u591A",average:"% \u5E73\u5747\u503C",sScreen:"\u7684\u5C4F\u5E55",aboutGrounding:"\u5173\u4E8E\u4FE1\u606F\u9A8C\u8BC1",questionPanel:"\u95EE\u9898",questionNavigation:"\u5207\u6362\u95EE\u9898",questionPosition:"{current} / {total}",questionAnswerFailed:"\u63D0\u4EA4\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002",questionAnswerSent:"\u56DE\u7B54\u5DF2\u53D1\u9001",questionCancel:"\u8DF3\u8FC7",questionCancelling:"\u6B63\u5728\u8DF3\u8FC7\u2026",questionCancelled:"\u5DF2\u8DF3\u8FC7",answerPlaceholder:"\u8F93\u5165\u4F60\u7684\u56DE\u7B54",autoSendAnswers:"\u5C06\u5728 {seconds} \u79D2\u540E\u63D0\u4EA4\u63A8\u8350\u7B54\u6848",recommended:"\u63A8\u8350",sendAnswer:"\u63D0\u4EA4\u56DE\u7B54",sending:"\u6B63\u5728\u63D0\u4EA4\u2026",accepted:"\u5DF2\u63A5\u53D7",addAttachmentsAndSources:"\u6DFB\u52A0\u9644\u4EF6\u548C\u6765\u6E90",addCalculation:"\u6DFB\u52A0\u8BA1\u7B97",addProperty:"\u6DFB\u52A0\u5C5E\u6027",adjust:"\u8C03\u6574",adjustYourSearchToTryAgain:"\u8BF7\u8C03\u6574\u641C\u7D22\u5185\u5BB9\u540E\u91CD\u8BD5",advisor:"\u8D1F\u8D23\u4EBA",allChunks:"\u6240\u6709\u7247\u6BB5",allocationSegments:"\u5206\u914D\u5206\u7EC4",alternatives:"\u5907\u9009\u65B9\u6848",answersSent:"\u7B54\u6848\u5DF2\u53D1\u9001",apply:"\u5E94\u7528",behavior:"\u884C\u4E3A",calculating:"\u8BA1\u7B97\u4E2D\u2026",calculationInputs:"\u8BA1\u7B97\u8F93\u5165",chatPrompt:"\u804A\u5929\u8F93\u5165",chats:"\u5BF9\u8BDD",chooseModel:"\u9009\u62E9\u6A21\u578B",clearSearch:"\u6E05\u7A7A\u641C\u7D22",clearSelection:"\u6E05\u7A7A\u9009\u62E9",clickChangedRowsToToggle:"\u70B9\u51FB\u53D8\u66F4\u884C\u5207\u6362\u9009\u62E9",closeChatSearch:"\u5173\u95ED\u5BF9\u8BDD\u641C\u7D22",collapse:"\u6536\u8D77",collapseSidebar:"\u6536\u8D77\u4FA7\u680F",compactColumns:"\u7D27\u51D1\u5217\u5BBD",companiesTableScrollHorizontallyAndVerticallyToViewAllColumnsAndRecords:"\u8BB0\u5F55\u8868\u683C\uFF0C\u53EF\u6A2A\u5411\u6216\u7EB5\u5411\u6EDA\u52A8\u67E5\u770B\u6240\u6709\u5217\u548C\u8BB0\u5F55\u3002",company:"\u540D\u79F0",completed:"\u5DF2\u5B8C\u6210",connectingToAgentSScreen:"\u6B63\u5728\u8FDE\u63A5\u667A\u80FD\u4F53\u5C4F\u5E55",continue:"\u7EE7\u7EED",contributionSnapshotAcrossCurrentInventoryValueSegmentSelectionChangesTheInspectedGroupWithoutMovingTheCard:"\u5F53\u524D\u5206\u914D\u5FEB\u7167\uFF0C\u9009\u62E9\u5206\u7EC4\u67E5\u770B\u8BE6\u7EC6\u6570\u636E\u3002",copied:"\u5DF2\u590D\u5236",continueInNewConversation:"\u5728\u65B0\u5BF9\u8BDD\u4E2D\u7EE7\u7EED",copy:"\u590D\u5236",copyCode:"\u590D\u5236\u4EE3\u7801",customAnswer:"\u81EA\u5B9A\u4E49\u7B54\u6848",date:"\u65E5\u671F",describeEdits:"\u63CF\u8FF0\u4FEE\u6539\u8981\u6C42",discard:"\u820D\u5F03",dismiss:"\u5173\u95ED",edited:"\u5DF2\u4FEE\u6539",end:"\u7ED3\u675F",enterAMessage:"\u8F93\u5165\u6D88\u606F",expandSidebar:"\u5C55\u5F00\u4FA7\u680F",failed:"\u5931\u8D25",followUps:"\u540E\u7EED\u95EE\u9898",goCalculate:"\u5F00\u59CB\u8BA1\u7B97",groundingLetsTheModelVerifyGeneratedValuesAgainstConnectedSources:"\u901A\u8FC7\u5DF2\u8FDE\u63A5\u7684\u6765\u6E90\u9A8C\u8BC1\u751F\u6210\u7684\u6570\u636E\u3002",hideFromView:"\u4ECE\u89C6\u56FE\u9690\u85CF",if:"\u5982\u679C",insights:"\u6D1E\u5BDF",keep:"\u4FDD\u7559",layout:"\u5E03\u5C40",more:"\u66F4\u591A",moreSettings:"\u66F4\u591A\u8BBE\u7F6E",newProperty:"\u65B0\u5EFA\u5C5E\u6027",nextQuestion:"\u4E0B\u4E00\u9898",noChatsFound:"\u6CA1\u6709\u627E\u5230\u5BF9\u8BDD",noMatchesFor:"\u672A\u627E\u5230\u5339\u914D\u9879\uFF1A\u201C",noResultsFound:"\u6CA1\u6709\u627E\u5230\u7ED3\u679C",open:"\u6253\u5F00",openApproval:"\u6253\u5F00\u5BA1\u6279",otherOptions:"\u5176\u4ED6\u9009\u9879",previousQuestion:"\u4E0A\u4E00\u9898",prompt:"\u63D0\u793A\u8BCD",recommendation:"\u5EFA\u8BAE",resetColumnWidths:"\u91CD\u7F6E\u5217\u5BBD",resizeCompanyColumn:"\u8C03\u6574\u540D\u79F0\u5217\u5BBD",scrollableTaskTable:"\u53EF\u6EDA\u52A8\u4EFB\u52A1\u8868\u683C",search:"\u641C\u7D22\u2026",searchChatHistory:"\u641C\u7D22\u5BF9\u8BDD\u5386\u53F2",searchChats:"\u641C\u7D22\u5BF9\u8BDD",selectInputs:"\u9009\u62E9\u8F93\u5165",selectType:"\u9009\u62E9\u7C7B\u578B",send:"\u53D1\u9001",sendEditInstruction:"\u53D1\u9001\u4FEE\u6539\u6307\u4EE4",setAPromptPressToMentionAnInput:"\u8BBE\u7F6E\u63D0\u793A\u8BCD\uFF08\u6309 @ \u5F15\u7528\u8F93\u5165\uFF09",signOut:"\u9000\u51FA\u767B\u5F55",skip:"\u8DF3\u8FC7",snapshot:"\u5FEB\u7167",somethingElse:"\u5176\u4ED6\u7B54\u6848\u2026",sources:"\u6765\u6E90",startOver:"\u91CD\u65B0\u5F00\u59CB",status:"\u72B6\u6001",tableOptions:"\u8868\u683C\u9009\u9879",taskName:"\u4EFB\u52A1\u540D\u79F0",teachATask:"\u6F14\u793A\u4EFB\u52A1",toolCalls:"\u5DE5\u5177\u8C03\u7528",trendSnapshot:"\u8D8B\u52BF\u5FEB\u7167",tryAgain:"\u91CD\u8BD5",type:"\u7C7B\u578B",useValuesFrom:"\u4F7F\u7528\u4EE5\u4E0B\u503C",v:"V",videoUnavailable:"\u89C6\u9891\u4E0D\u53EF\u7528",workspaceNavigation:"\u5DE5\u4F5C\u533A\u5BFC\u822A",and:"\u5E76\u4E14",applied:"\u5DF2\u5E94\u7528",count:"\u6570\u91CF",for:"\u9488\u5BF9",h:"h",is:"\u4E3A",links:"\u94FE\u63A5",spent:"\u652F\u51FA",configuration:"\u914D\u7F6E",new:"\u65B0\u5EFA",history:"\u5386\u53F2",edit:"\u7F16\u8F91",edits:"\u4FEE\u6539",removal:"\u5220\u9664",removals:"\u5220\u9664",addition:"\u65B0\u589E",additions:"\u65B0\u589E",change:"\u4FEE\u6539",changes:"\u4FEE\u6539",spend:"\u652F\u51FA",usage:"\u7528\u91CF",previousInsight:"\u4E0A\u4E00\u6761\u6D1E\u5BDF",nextInsight:"\u4E0B\u4E00\u6761\u6D1E\u5BDF",connected:"\u5DF2\u8FDE\u63A5",connect:"\u8FDE\u63A5",typeToSearchSourcesFiles:"\u8F93\u5165\u4EE5\u641C\u7D22\u6765\u6E90\u548C\u6587\u4EF6",typeToSearchCommands:"\u8F93\u5165\u4EE5\u641C\u7D22\u547D\u4EE4",listening:"\u6B63\u5728\u542C\u5199\u2026",stopDictation:"\u505C\u6B62\u542C\u5199",startDictation:"\u5F00\u59CB\u542C\u5199",unpin:"\u53D6\u6D88\u56FA\u5B9A",pin:"\u56FA\u5B9A",showFewerActions:"\u6536\u8D77\u64CD\u4F5C",showMoreActions:"\u66F4\u591A\u64CD\u4F5C",retry:"\u91CD\u8BD5",like:"\u8D5E",dislike:"\u4E0D\u8D5E",newWorkspace:"\u65B0\u5EFA\u5DE5\u4F5C\u533A",workspaceSettings:"\u5DE5\u4F5C\u533A\u8BBE\u7F6E",inviteTeamMembers:"\u9080\u8BF7\u56E2\u961F\u6210\u5458",loading:"\u52A0\u8F7D\u4E2D",thinking:"\u601D\u8003\u4E2D",thoughtComplete:"\u601D\u8003\u5B8C\u6210",model:"\u6A21\u578B",agent:"\u667A\u80FD\u4F53",viewSources:"\u67E5\u770B\u6765\u6E90",close:"\u5173\u95ED",noFiles:"\u6682\u65E0\u6587\u4EF6",done:"\u5B8C\u6210",doneEditing:"\u5B8C\u6210\u7F16\u8F91",newChat:"\u65B0\u5BF9\u8BDD",all:"\u5168\u90E8",toDo:"\u5F85\u529E",inProgress:"\u8FDB\u884C\u4E2D",veryStrong:"\u5F88\u5F3A",weak:"\u8F83\u5F31",veryWeak:"\u5F88\u5F31",noCommunication:"\u65E0\u4EA4\u6D41",cancel:"\u53D6\u6D88",improve:"\u6539\u5584",explain:"\u89E3\u91CA",shorten:"\u7CBE\u7B80",tone:"\u8BED\u6C14",grammar:"\u8BED\u6CD5",screenTitle:"{name}\u7684\u5C4F\u5E55",duration:"\u8017\u65F6 {time}",noMatches:"\u672A\u627E\u5230\u5339\u914D\u9879\uFF1A\u201C{query}\u201D",editsApplied_one:"\u5DF2\u5E94\u7528 {count} \u9879\u4FEE\u6539",editsApplied_other:"\u5DF2\u5E94\u7528 {count} \u9879\u4FEE\u6539",changesSummary:"\u5220\u9664 {removals} \u9879 \xB7 \u65B0\u589E {additions} \u9879",applyChanges_one:"\u5E94\u7528 {count} \u9879\u4FEE\u6539",applyChanges_other:"\u5E94\u7528 {count} \u9879\u4FEE\u6539",sourceCount_one:"{count} \u4E2A\u6765\u6E90",sourceCount_other:"{count} \u4E2A\u6765\u6E90",writeMessage:"\u8F93\u5165\u6D88\u606F\u2026",selectAllCompanies:"\u9009\u62E9\u6240\u6709\u516C\u53F8",categories:"\u5206\u7C7B",lastInteraction:"\u6700\u8FD1\u4E92\u52A8",connectionStrength:"\u8054\u7CFB\u5F3A\u5EA6",linksHeading:"\u94FE\u63A5",propertyType:"\u5C5E\u6027\u7C7B\u578B",tool:"\u5DE5\u5177",grounding:"\u6EAF\u6E90",inputs:"\u8F93\u5165",requiredValue:"\u5FC5\u586B\u503C",allowEmptyResults:"\u5141\u8BB8\u7A7A\u7ED3\u679C",showConfidence:"\u663E\u793A\u7F6E\u4FE1\u5EA6",categoriesSummary:"\u5206\u7C7B\uFF1A{categories}",sortByLabel:"\u6309{label}\u6392\u5E8F",resizeColumn:"\u8C03\u6574{label}\u5217\u5BBD",selectName:"\u9009\u62E9{name}",columnCalculationPrompt:"{column}\u8BA1\u7B97\u63D0\u793A\u8BCD",proposedChanges:"\u5EFA\u8BAE\u66F4\u6539",name:"\u540D\u79F0",category:"\u5206\u7C7B",value:"\u503C",anomaly:"\u5F02\u5E38",allocation:"\u5206\u5E03"};function oe(){let e=useMonkeysLocaleMessages(),{locale:t}=useMonkeysLocale(),o=t==="zh-CN"?Ga:jn;return (n,r={})=>{let a=ja[n]??n,l=typeof r.count=="number"?"_"+new Intl.PluralRules(t).select(r.count):"";return (e.beautiful?.[a+l]??e.beautiful?.[a]??o[a+l]??o[a]??jn[a+l]??jn[a]??n).replace(/\{(\w+)\}/g,(d,u)=>String(r[u]??""))}}i(oe,"useBUICopy");function Te(e,t){let o=oe(),n=i(r=>typeof r=="string"?o(r):r&&typeof r=="object"?Object.fromEntries(Object.entries(r).map(([a,l])=>[a,n(l)])):r,"visit");return {...n(e),...t}}i(Te,"useBUILabels");var Ka="aspect-[2964/1856]";function li({path:e,size:t=15,sw:o=2}){return jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":true,children:e})}i(li,"Ico");var Yc=jsxs(Fragment,{children:[jsx("polyline",{points:"4 14 10 14 10 20"}),jsx("polyline",{points:"20 10 14 10 14 4"}),jsx("line",{x1:"14",y1:"10",x2:"21",y2:"3"}),jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]}),Qc=jsxs(Fragment,{children:[jsx("polyline",{points:"15 3 21 3 21 9"}),jsx("polyline",{points:"9 21 3 21 3 15"}),jsx("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]});function Zc(e){let t=Math.floor(e/60),o=e%60;return `${String(t).padStart(2,"0")}:${String(o).padStart(2,"0")}`}i(Zc,"fmt");function Ya({className:e,style:t}){return jsx("svg",{className:e,style:t,width:"30",height:"30",viewBox:"0 0 24 24",fill:"var(--bui-screen-cursor-fill)",stroke:"var(--bui-screen-foreground)",strokeWidth:"1.4",strokeLinejoin:"round","aria-hidden":true,children:jsx("path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z"})})}i(Ya,"CursorSvg");function Jc(){return jsx(Ya,{className:"agent-cursor",style:{left:"42%",top:"53%"}})}i(Jc,"DriftCursor");function eu({streamSrc:e,cursor:t=true}){return jsxs("div",{className:"absolute inset-0 overflow-hidden bg-inset",children:[e?/\.(mp4|webm|mov|m4v)(\?|$)/i.test(e)?jsx("video",{src:e??"",autoPlay:true,muted:true,loop:true,playsInline:true,className:"absolute inset-0 h-full w-full object-cover"}):jsx("img",{src:e??"",alt:"",className:"absolute inset-0 h-full w-full object-cover"}):jsx("div",{className:"h-full w-full bg-inset"}),t&&jsx(Jc,{})]})}i(eu,"Screen");function tu({src:e}){if(!e)return null;let t={maxHeight:"calc(100vh - 150px)",maxWidth:"min(960px, 90vw)"},o="block h-auto w-auto object-contain";return /\.(mp4|webm|mov|m4v)(\?|$)/i.test(e)?jsx("video",{src:e,autoPlay:true,muted:true,loop:true,playsInline:true,className:o,style:t}):jsx("img",{src:e,alt:"",className:o,style:t})}i(tu,"MediaSizer");function Xa(){let e=oe(),t=26,o=2,n=(t-o)/2,r=2*Math.PI*n;return jsxs("div",{className:"absolute inset-0 bg-black",children:[jsx("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:jsxs("svg",{width:t,height:t,className:"block",style:{animation:"bui-spin 1.1s linear infinite"},"aria-hidden":true,children:[jsx("circle",{cx:t/2,cy:t/2,r:n,fill:"none",stroke:"var(--bui-screen-progress-track)",strokeWidth:o}),jsx("circle",{cx:t/2,cy:t/2,r:n,fill:"none",stroke:"var(--bui-screen-foreground)",strokeWidth:o,strokeLinecap:"round",strokeDasharray:`${r*.28} ${r*.72}`})]})}),jsx("span",{className:"absolute inset-x-0 text-center text-[12.5px] font-medium text-white/70",style:{top:"calc(50% + 28px)"},children:e("Connecting to agent's screen")})]})}i(Xa,"LoadingScreen");function ou({agentName:e="Agent",streamSrc:t,variant:o,recording:n=false,elapsedSeconds:r=0,onRecordingChange:a}){let l=oe(),s=o==="Loading",[d,u]=useState(false),[m,c]=useState(false),[p,h]=useState(null);useEffect(()=>c(true),[]),useEffect(()=>{if(!d)return;let f=i(y=>y.key==="Escape"&&u(false),"onKey");document.addEventListener("keydown",f);let x=La(document);return ()=>{document.removeEventListener("keydown",f),x();}},[d]);let g=jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n?jsxs("button",{type:"button",onClick:i(()=>{a?.(false);},"endRecording"),className:"inline-flex h-[27px] items-center gap-1.5 rounded-[var(--bui-radius-pill)] bg-red pl-2.5 pr-3 text-[13px] font-medium leading-none text-white shadow-[inset_0_1px_0_var(--bui-screen-record-highlight)] transition-[transform,filter] duration-150 ease-out hover:brightness-95 active:scale-[0.96]",children:[jsx("span",{className:"size-2.5 rounded-[2px] bg-white"}),l("End")]}):jsxs(Me,{variant:"secondary",size:"sm",className:"gap-1 pl-1.5",onClick:i(()=>{a?.(true);},"startRecording"),children:[jsx(li,{size:15,path:jsxs(Fragment,{children:[jsx("circle",{cx:"12",cy:"12",r:"9"}),jsx("circle",{cx:"12",cy:"12",r:"3.5",fill:"currentColor",stroke:"none"})]})}),l("Teach a task")]}),jsx("button",{type:"button","aria-label":l("Collapse"),onClick:()=>u(false),className:"primitive-icon-button text-ink-3 transition-colors duration-100 hover:bg-hover hover:text-ink",children:jsx(li,{size:15,path:Yc})})]});return jsx(U,{children:jsxs("div",{className:"w-full max-w-[340px]",children:[jsx("div",{className:`group/screen relative ${Ka} overflow-hidden rounded-window bg-inset shadow-card transition-shadow duration-150 ${s?"":"cursor-pointer hover:shadow-raised"}`,onClick:s?void 0:()=>u(true),style:{animation:"bui-fade-up 380ms cubic-bezier(0.23,1,0.32,1) both"},children:s?jsx(Xa,{}):jsxs(Fragment,{children:[jsx(eu,{streamSrc:t}),jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[var(--bui-screen-rest)] transition-colors duration-150 group-hover/screen:bg-[var(--bui-screen-hover)]",children:jsx("span",{className:"translate-y-1 opacity-0 transition duration-150 group-hover/screen:translate-y-0 group-hover/screen:opacity-100",children:jsxs(Me,{variant:"accent",size:"sm",onClick:f=>{f.stopPropagation(),u(true);},children:[jsx(li,{size:14,path:Qc}),l("Open")]})})})]})}),jsx("div",{className:"mt-2.5 truncate px-0.5 text-[13px] font-medium text-ink",children:l("screenTitle",{name:e})}),d&&m&&Fo(jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 sm:p-6",role:"dialog","aria-modal":"true","aria-label":l("screenTitle",{name:e}),children:[jsx("div",{className:"absolute inset-0 bg-black/60 dark:bg-black/75",style:{animation:"bui-fade-in 180ms ease-out both"},onClick:()=>u(false)}),jsxs("div",{className:"relative flex max-h-full flex-col overflow-hidden rounded-[16px] bg-surface p-2 pt-0 shadow-overlay",style:{animation:"bui-pop-in 240ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxs("div",{className:"flex h-11 shrink-0 items-center justify-between gap-3 px-1.5",children:[jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[jsx("span",{className:"truncate text-[13px] font-semibold text-ink",children:e}),n&&jsxs("span",{className:"inline-flex shrink-0 items-center gap-1.5 rounded-full bg-red-tint py-0.5 pl-1.5 pr-2 text-[11.5px] font-medium tabular-nums text-red",children:[jsx("span",{className:"size-2 rounded-full bg-red",style:{animation:"bui-records-pulse 1.1s ease-in-out infinite"}}),Zc(r)]})]}),g]}),jsxs("div",{className:"relative min-h-0 overflow-hidden rounded-[8px] bg-inset [cursor:none]",onMouseMove:f=>{let x=f.currentTarget.getBoundingClientRect();h({x:f.clientX-x.left,y:f.clientY-x.top});},onMouseLeave:()=>h(null),children:[s?jsx("div",{className:Ka,style:{width:"min(960px, 90vw)"},children:jsx(Xa,{})}):jsx(tu,{src:t??""}),!s&&p&&jsx(Ya,{className:"pointer-events-none absolute z-10",style:{left:p.x,top:p.y,filter:"drop-shadow(0 1px 1.5px var(--bui-screen-cursor-shadow))"}})]})]})]}),document.body)]})})}i(ou,"BUIAgentScreen");function tt({children:e,className:t="",highlightClassName:o="inset-x-0 rounded-[8px] bg-hover",rowSelector:n="[data-menu-row]"}){let r=useRef(null),[a,l]=useState(null),[s,d]=useState(false),u=i(m=>{let c=r.current;if(!(m instanceof Element)||!c)return;let p=m.closest(n);if(!(p instanceof HTMLElement)||!c.contains(p))return;let h=c.getBoundingClientRect(),v=p.getBoundingClientRect();l({top:v.top-h.top,height:v.height}),d(true);},"moveTo");return jsx(U,{children:jsxs("div",{ref:r,onMouseOver:m=>u(m.target),onMouseLeave:()=>d(false),onFocusCapture:m=>u(m.target),onBlurCapture:m=>{r.current?.contains(m.relatedTarget)||d(false);},className:`group/glide-menu relative ${t}`,children:[jsx("span",{"aria-hidden":true,className:`pointer-events-none absolute ${o}`,style:{top:a?.top??0,height:a?.height??0,opacity:a&&s?1:0,transition:"top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease"}}),e]})})}i(tt,"BUIGlideMenu");var au=[],su={skip:"Skip",continue:"Continue",send:"Send",customPlaceholder:"Something else\u2026",sentMessage:"Answers sent"},lu=400,di="360ms cubic-bezier(0.22, 1, 0.36, 1)";function du({value:e}){let t=useRef(e),[o,n]=useState(e),[r,a]=useState(e),[l,s]=useState(false),[d,u]=useState(false),[m,c]=useState("up");useEffect(()=>{if(t.current===e)return;let h=t.current;t.current=e;let v=parseInt(h,10),w=parseInt(e,10);c(Number.isFinite(v)&&Number.isFinite(w)&&w<v?"down":"up"),n(h),a(e),s(true),u(false);let g=0,f=requestAnimationFrame(()=>{g=requestAnimationFrame(()=>u(true));}),x=setTimeout(()=>{s(false),n(e),u(false);},lu);return ()=>{cancelAnimationFrame(f),cancelAnimationFrame(g),clearTimeout(x);}},[e]);let p=l?r:o;return jsx(Fragment,{children:Array.from({length:p.length},(h,v)=>{let w=o[v]??"",g=p[v]??"";return !l||w===g?jsx("span",{children:g},`${v}-${g}`):jsx("span",{style:{display:"inline-block",position:"relative",overflow:"hidden",height:"1em",lineHeight:"1em",verticalAlign:"-0.05em"},children:jsxs("span",{style:{display:"flex",flexDirection:"column",transition:"transform 350ms cubic-bezier(0.4, 0, 0.2, 1)",transform:`translateY(${d?m==="down"?"0":"-1em":m==="down"?"-1em":"0"})`},children:[jsx("span",{style:{height:"1em",lineHeight:"1em"},children:m==="down"?g:w}),jsx("span",{style:{height:"1em",lineHeight:"1em"},children:m==="down"?w:g})]})},`${v}-${w}-${g}-${m}`)})})}i(du,"RollingDigits");function ci({path:e,size:t=14,sw:o=2}){return jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":true,children:e})}i(ci,"Ico");function cu({questions:e=au,labels:t,onSubmitted:o,onAnswerChange:n,resettable:r=true,allowSkip:a=true,status:l="idle",onReset:s}){let d=oe(),u=Te(su,t),[m,c]=useState(0),[p,h]=useState({}),[v,w]=useState({}),g=l==="submitted",f=useRef(p),x=useRef(v);f.current=p,x.current=v;let[y,$]=useState(true),N=useRef(null),T=useRef([]),S=useRef(false),[A,O]=useState(void 0),[L,I]=useState(0),[k,R]=useState(false),[z,_]=useState(false),X=m===e.length-1,F=(p[m]??[]).length>0||!!v[m]?.trim(),J=i(M=>{let H=T.current[m];if(!H)return;let E=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;O(H.offsetHeight),I(H.offsetTop),R(M&&!E);},"sync");useLayoutEffect(()=>{let M=S.current;S.current=true,J(M),_(true);},[m,p,v,y,g]),useEffect(()=>{let M=requestAnimationFrame(()=>J(S.current));return ()=>cancelAnimationFrame(M)},[m]),useEffect(()=>()=>{N.current&&clearTimeout(N.current);},[]);let B=i(M=>{N.current&&clearTimeout(N.current),c(Math.min(Math.max(M,0),e.length-1));},"goTo"),te=i(()=>{N.current&&clearTimeout(N.current),l!=="submitting"&&o?.(f.current,x.current);},"send"),ee=i(()=>{X?te():B(m+1);},"advance"),pe=i(M=>{let H=e[m].type,E=f.current,j=E[m]??[],le=H==="radio"?[M]:j.includes(M)?j.filter(de=>de!==M):[...j,M],re={...E,[m]:le};f.current=re,h(re),n?.(m,le),H==="radio"&&(w(de=>({...de,[m]:""})),N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{X?te():c(de=>Math.min(e.length-1,de+1));},480));},"toggle"),se=i(()=>{c(0),h({}),w({}),s?.(),$(true),S.current=false;},"reset");return e.length?y?g?jsx(U,{children:jsxs("div",{className:"flex w-full max-w-80 items-center gap-3",style:{animation:"bui-pop-in 260ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-green-tint py-1 pr-2.5 pl-1 text-[12.5px] font-medium text-green",children:[jsx("span",{className:"flex size-4.5 items-center justify-center rounded-full bg-green text-white",children:jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M20 6L9 17l-5-5"})})}),u.sentMessage]}),r&&jsx("button",{type:"button",onClick:se,className:"text-[12px] font-medium text-ink-3 transition-colors duration-150 hover:text-ink",children:d("Start over")})]})}):jsx(U,{children:jsx("div",{className:"w-full max-w-80",children:jsxs("div",{className:"relative overflow-hidden rounded-card bg-surface shadow-card",style:{animation:"bui-fade-up 380ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsx("button",{type:"button","aria-label":d("Dismiss"),onClick:()=>$(false),className:"primitive-icon-button absolute right-2.5 top-2.5 z-10 text-ink-3 transition-colors duration-100 hover:bg-hover hover:text-ink",children:jsx(ci,{size:14,sw:2.2,path:jsx("path",{d:"M18 6L6 18M6 6l12 12"})})}),jsx("div",{className:"primitive-card-pad",children:jsx("div",{className:"overflow-hidden",style:{height:A,transition:k?`height ${di}`:void 0},"aria-live":"polite",children:jsx("div",{style:{display:"flex",flexDirection:"column",gap:"calc(var(--bui-spacing) * 6.5)",transform:`translate3d(0, ${-L}px, 0)`,transition:k?`transform ${di}`:void 0,willChange:"transform"},children:e.map((M,H)=>{let E=H===m;if(!z&&!E)return null;let j=p[H]??[],le={opacity:E?1:0,transition:k?`opacity ${di}`:void 0,pointerEvents:E?void 0:"none"};return jsxs("div",{ref:re=>{T.current[H]=re;},"aria-hidden":E?void 0:true,style:le,children:[jsx("div",{className:"pr-7 text-[14px] font-medium text-ink",children:M.q}),jsxs(tt,{className:"mt-2.5 flex flex-col gap-1",highlightClassName:"inset-x-0 rounded-control bg-hover",children:[M.options.map((re,de)=>{let Ee=j.includes(de);return jsxs("button",{type:"button","data-menu-row":true,"aria-pressed":Ee,tabIndex:E?0:-1,disabled:l==="submitting",onClick:()=>{E&&pe(de);},className:"relative z-10 flex items-center gap-1.5 rounded-control pl-1 pr-2 py-1 text-left transition-colors duration-100",children:[jsx("span",{className:`flex size-4 shrink-0 items-center justify-center transition-colors duration-200
|
|
51
|
-
${
|
|
52
|
-
${
|
|
50
|
+
align-middle text-[12px] font-medium ${n.cls} ${o}`,style:{boxShadow:n.ring},children:e})})}i(qc,"BUIValuePill");var ja={"Chat history":"chatHistory","Start a conversation":"startAConversation","Stop response":"stopResponse","Load more":"loadMore","% average":"average","'s screen":"sScreen","About grounding":"aboutGrounding","Answer could not be sent":"questionAnswerFailed","Answer sent":"questionAnswerSent","Cancel question":"questionCancel",Cancelling:"questionCancelling","Question cancelled":"questionCancelled",Accepted:"accepted","Add attachments and sources":"addAttachmentsAndSources","Add calculation":"addCalculation","Add property":"addProperty",Adjust:"adjust","Adjust your search to try again":"adjustYourSearchToTryAgain",Advisor:"advisor","All chunks":"allChunks","Allocation segments":"allocationSegments",Alternatives:"alternatives","Answers sent":"answersSent",Apply:"apply",Behavior:"behavior","Calculating\u2026":"calculating","Calculation inputs":"calculationInputs","Chat prompt":"chatPrompt",Chats:"chats","Choose model":"chooseModel","Clear search":"clearSearch","Clear selection":"clearSelection","Click changed rows to toggle":"clickChangedRowsToToggle","Close chat search":"closeChatSearch",Collapse:"collapse","Collapse sidebar":"collapseSidebar","Compact columns":"compactColumns","Companies table. Scroll horizontally and vertically to view all columns and records.":"companiesTableScrollHorizontallyAndVerticallyToViewAllColumnsAndRecords",Company:"company",Completed:"completed","Connecting to agent's screen":"connectingToAgentSScreen",Continue:"continue","Continue in new conversation":"continueInNewConversation","Contribution snapshot across current inventory value. Segment selection changes the inspected group without moving the card.":"contributionSnapshotAcrossCurrentInventoryValueSegmentSelectionChangesTheInspectedGroupWithoutMovingTheCard",Copied:"copied",Copy:"copy","Copy code":"copyCode","Custom answer":"customAnswer",Date:"date","Describe edits":"describeEdits",Discard:"discard",Dismiss:"dismiss",Edited:"edited",End:"end","Enter a message":"enterAMessage","Expand sidebar":"expandSidebar",Failed:"failed","Follow-ups":"followUps","Go calculate":"goCalculate","Grounding lets the model verify generated values against connected sources.":"groundingLetsTheModelVerifyGeneratedValuesAgainstConnectedSources","Hide from view":"hideFromView",If:"if",Insights:"insights",Keep:"keep",Layout:"layout",More:"more","More settings":"moreSettings","New property":"newProperty","Next question":"nextQuestion","No chats found":"noChatsFound","No matches for \u201C":"noMatchesFor","No results found":"noResultsFound",Open:"open","Open approval":"openApproval","Other options":"otherOptions","Previous question":"previousQuestion",Prompt:"prompt",Recommendation:"recommendation",Recommended:"recommended","Reset column widths":"resetColumnWidths","Resize Company column":"resizeCompanyColumn","Scrollable task table":"scrollableTaskTable",Search:"search","Search chat history":"searchChatHistory","Search chats":"searchChats","Search\u2026":"search","Select inputs":"selectInputs","Select type":"selectType",Send:"send","Send answer":"sendAnswer","Send edit instruction":"sendEditInstruction","Set a prompt (press @ to mention an input)":"setAPromptPressToMentionAnInput","Sign out":"signOut",Skip:"skip",Snapshot:"snapshot","Something else\u2026":"somethingElse",Sending:"sending","Sending recommended answers in {seconds}s":"autoSendAnswers",Sources:"sources","Start over":"startOver",Status:"status","Table options":"tableOptions","Task name":"taskName","Teach a task":"teachATask","Tool calls":"toolCalls","Trend snapshot":"trendSnapshot","Try again":"tryAgain",Type:"type","Use values from":"useValuesFrom","Your answer":"answerPlaceholder",V:"v","Video unavailable":"videoUnavailable","Workspace navigation":"workspaceNavigation",and:"and",applied:"applied",count:"count",for:"for",h:"h",is:"is",links:"links",spent:"spent",Configuration:"configuration",New:"new",History:"history",edit:"edit",edits:"edits",removal:"removal",removals:"removals",addition:"addition",additions:"additions",change:"change",changes:"changes",Spend:"spend",Usage:"usage","Previous insight":"previousInsight","Next insight":"nextInsight",Connected:"connected",Connect:"connect","Type to search sources & files":"typeToSearchSourcesFiles","Type to search commands":"typeToSearchCommands","Listening\u2026":"listening","Stop dictation":"stopDictation","Start dictation":"startDictation",Unpin:"unpin",Pin:"pin","Show fewer actions":"showFewerActions","Show more actions":"showMoreActions",Retry:"retry",Like:"like",Dislike:"dislike","New workspace":"newWorkspace","Workspace settings":"workspaceSettings","Invite team members":"inviteTeamMembers",Loading:"loading",Thinking:"thinking","Thought complete":"thoughtComplete",Model:"model",Agent:"agent","View sources":"viewSources",Close:"close","No files":"noFiles",Done:"done",Edit:"edit","Done editing":"doneEditing","New chat":"newChat",All:"all","To do":"toDo","In Progress":"inProgress","Very strong":"veryStrong",Weak:"weak","Very weak":"veryWeak","No communication":"noCommunication",Cancel:"cancel",Improve:"improve",Explain:"explain",Shorten:"shorten",Tone:"tone",Grammar:"grammar","Write a message\u2026":"writeMessage","Select all companies":"selectAllCompanies",Categories:"categories","Last interaction":"lastInteraction","Connection strength":"connectionStrength",Links:"linksHeading","Property type":"propertyType",Tool:"tool",Grounding:"grounding",Inputs:"inputs","Required value":"requiredValue","Allow empty results":"allowEmptyResults","Show confidence":"showConfidence","Categories: {categories}":"categoriesSummary","Sort by {label}":"sortByLabel","Resize {label} column":"resizeColumn","Select {name}":"selectName","{column} calculation prompt":"columnCalculationPrompt","Proposed changes":"proposedChanges",Name:"name",Category:"category",Value:"value",Anomaly:"anomaly",Allocation:"allocation"},jn={taskProgressTitle:"Task progress",taskProgressCurrent:"{current}/{total} {title}","taskProgressStatus.done":"Completed","taskProgressStatus.running":"In progress","taskProgressStatus.pending":"Pending","taskProgressStatus.failed":"Failed","taskProgressStatus.skipped":"Skipped","taskProgressStatus.stopped":"Stopped",recentClose:"Close",recentMore:"More actions for {title}",recentMoreLabel:"More",recentRunning:"Running",recentRename:"Rename",recentDelete:"Delete conversation",recentDeleteDescription:"Delete \u201C{title}\u201D? This conversation will be removed.",recentRenameDescription:"Choose a name for this conversation.",recentName:"Conversation name",recentCancel:"Cancel",recentSave:"Save",recentSaving:"Saving\u2026",recentActionFailed:"Could not confirm the change. Refresh the conversation list before trying again.",chatHistory:"Chat history",startAConversation:"Start a conversation",stopResponse:"Stop response",loadMore:"Load more",average:"% average",sScreen:"'s screen",aboutGrounding:"About grounding",questionPanel:"Questions",questionNavigation:"Question navigation",questionPosition:"{current} of {total}",questionAnswerFailed:"Answer could not be sent. Try again.",questionAnswerSent:"Answer sent",questionCancel:"Skip",questionCancelling:"Skipping\u2026",questionCancelled:"Skipped",answerPlaceholder:"Your answer",autoSendAnswers:"Sending recommended answers in {seconds}s",recommended:"Recommended",sendAnswer:"Send answer",sending:"Sending\u2026",accepted:"Accepted",addAttachmentsAndSources:"Add attachments and sources",addCalculation:"Add calculation",addProperty:"Add property",adjust:"Adjust",adjustYourSearchToTryAgain:"Adjust your search to try again",advisor:"Advisor",allChunks:"All chunks",allocationSegments:"Allocation segments",alternatives:"Alternatives",answersSent:"Answers sent",apply:"Apply",behavior:"Behavior",calculating:"Calculating\u2026",calculationInputs:"Calculation inputs",chatPrompt:"Chat prompt",chats:"Chats",chooseModel:"Choose model",clearSearch:"Clear search",clearSelection:"Clear selection",clickChangedRowsToToggle:"Click changed rows to toggle",closeChatSearch:"Close chat search",collapse:"Collapse",collapseSidebar:"Collapse sidebar",compactColumns:"Compact columns",companiesTableScrollHorizontallyAndVerticallyToViewAllColumnsAndRecords:"Companies table. Scroll horizontally and vertically to view all columns and records.",company:"Company",completed:"Completed",connectingToAgentSScreen:"Connecting to agent's screen",continue:"Continue",continueInNewConversation:"Continue in new conversation",contributionSnapshotAcrossCurrentInventoryValueSegmentSelectionChangesTheInspectedGroupWithoutMovingTheCard:"Contribution snapshot across current inventory value. Segment selection changes the inspected group without moving the card.",copied:"Copied",copy:"Copy",copyCode:"Copy code",customAnswer:"Custom answer",date:"Date",describeEdits:"Describe edits",discard:"Discard",dismiss:"Dismiss",edited:"Edited",end:"End",enterAMessage:"Enter a message",expandSidebar:"Expand sidebar",failed:"Failed",followUps:"Follow-ups",goCalculate:"Go calculate",groundingLetsTheModelVerifyGeneratedValuesAgainstConnectedSources:"Grounding lets the model verify generated values against connected sources.",hideFromView:"Hide from view",if:"If",insights:"Insights",keep:"Keep",layout:"Layout",more:"More",moreSettings:"More settings",newProperty:"New property",nextQuestion:"Next question",noChatsFound:"No chats found",noMatchesFor:"No matches for \u201C",noResultsFound:"No results found",open:"Open",openApproval:"Open approval",otherOptions:"Other options",previousQuestion:"Previous question",prompt:"Prompt",recommendation:"Recommendation",resetColumnWidths:"Reset column widths",resizeCompanyColumn:"Resize Company column",scrollableTaskTable:"Scrollable task table",search:"Search\u2026",searchChatHistory:"Search chat history",searchChats:"Search chats",selectInputs:"Select inputs",selectType:"Select type",send:"Send",sendEditInstruction:"Send edit instruction",setAPromptPressToMentionAnInput:"Set a prompt (press @ to mention an input)",signOut:"Sign out",skip:"Skip",snapshot:"Snapshot",somethingElse:"Something else\u2026",sources:"Sources",startOver:"Start over",status:"Status",tableOptions:"Table options",taskName:"Task name",teachATask:"Teach a task",toolCalls:"Tool calls",trendSnapshot:"Trend snapshot",tryAgain:"Try again",type:"Type",useValuesFrom:"Use values from",v:"V",videoUnavailable:"Video unavailable",workspaceNavigation:"Workspace navigation",and:"and",applied:"applied",count:"count",for:"for",h:"h",is:"is",links:"links",spent:"spent",configuration:"Configuration",new:"New",history:"History",edit:"Edit",edits:"edits",removal:"removal",removals:"removals",addition:"addition",additions:"additions",change:"change",changes:"changes",spend:"Spend",usage:"Usage",previousInsight:"Previous insight",nextInsight:"Next insight",connected:"Connected",connect:"Connect",typeToSearchSourcesFiles:"Type to search sources & files",typeToSearchCommands:"Type to search commands",listening:"Listening\u2026",stopDictation:"Stop dictation",startDictation:"Start dictation",unpin:"Unpin",pin:"Pin",showFewerActions:"Show fewer actions",showMoreActions:"Show more actions",retry:"Retry",like:"Like",dislike:"Dislike",newWorkspace:"New workspace",workspaceSettings:"Workspace settings",inviteTeamMembers:"Invite team members",loading:"Loading",thinking:"Thinking",thoughtComplete:"Thought complete",model:"Model",agent:"Agent",viewSources:"View sources",close:"Close",noFiles:"No files",done:"Done",doneEditing:"Done editing",newChat:"New chat",all:"All",toDo:"To do",inProgress:"In Progress",veryStrong:"Very strong",weak:"Weak",veryWeak:"Very weak",noCommunication:"No communication",cancel:"Cancel",improve:"Improve",explain:"Explain",shorten:"Shorten",tone:"Tone",grammar:"Grammar",screenTitle:"{name}'s screen",duration:"for {time}",noMatches:"No matches for \u201C{query}\u201D",editsApplied_one:"{count} edit applied",editsApplied_other:"{count} edits applied",changesSummary:"{removals} removed \xB7 {additions} added",applyChanges_one:"Apply {count} change",applyChanges_other:"Apply {count} changes",sourceCount_one:"{count} source",sourceCount_other:"{count} sources",writeMessage:"Write a message\u2026",selectAllCompanies:"Select all companies",categories:"Categories",lastInteraction:"Last interaction",connectionStrength:"Connection strength",linksHeading:"Links",propertyType:"Property type",tool:"Tool",grounding:"Grounding",inputs:"Inputs",requiredValue:"Required value",allowEmptyResults:"Allow empty results",showConfidence:"Show confidence",categoriesSummary:"Categories: {categories}",sortByLabel:"Sort by {label}",resizeColumn:"Resize {label} column",selectName:"Select {name}",columnCalculationPrompt:"{column} calculation prompt",proposedChanges:"Proposed changes",name:"Name",category:"Category",value:"Value",anomaly:"Anomaly",allocation:"Allocation"},Ga={taskProgressTitle:"\u4EFB\u52A1\u8FDB\u5EA6",taskProgressCurrent:"{current}/{total} {title}","taskProgressStatus.done":"\u5DF2\u5B8C\u6210","taskProgressStatus.running":"\u8FDB\u884C\u4E2D","taskProgressStatus.pending":"\u5F85\u6267\u884C","taskProgressStatus.failed":"\u5931\u8D25","taskProgressStatus.skipped":"\u5DF2\u8DF3\u8FC7","taskProgressStatus.stopped":"\u5DF2\u505C\u6B62",recentClose:"\u5173\u95ED",recentMore:"{title}\u7684\u66F4\u591A\u64CD\u4F5C",recentMoreLabel:"\u66F4\u591A",recentRunning:"\u8FD0\u884C\u4E2D",recentRename:"\u91CD\u547D\u540D",recentDelete:"\u5220\u9664\u5BF9\u8BDD",recentDeleteDescription:"\u786E\u5B9A\u5220\u9664\u201C{title}\u201D\u5417\uFF1F\u8BE5\u5BF9\u8BDD\u5C06\u88AB\u79FB\u9664\u3002",recentRenameDescription:"\u4E3A\u8FD9\u6BB5\u5BF9\u8BDD\u8BBE\u7F6E\u4E00\u4E2A\u540D\u79F0\u3002",recentName:"\u5BF9\u8BDD\u540D\u79F0",recentCancel:"\u53D6\u6D88",recentSave:"\u4FDD\u5B58",recentSaving:"\u4FDD\u5B58\u4E2D\u2026",recentActionFailed:"\u672A\u80FD\u786E\u8BA4\u4FEE\u6539\u7ED3\u679C\uFF0C\u8BF7\u5237\u65B0\u4F1A\u8BDD\u5217\u8868\u540E\u518D\u8BD5\u3002",chatHistory:"\u5BF9\u8BDD\u5386\u53F2",startAConversation:"\u5F00\u59CB\u65B0\u7684\u5BF9\u8BDD",stopResponse:"\u505C\u6B62\u56DE\u590D",loadMore:"\u52A0\u8F7D\u66F4\u591A",average:"% \u5E73\u5747\u503C",sScreen:"\u7684\u5C4F\u5E55",aboutGrounding:"\u5173\u4E8E\u4FE1\u606F\u9A8C\u8BC1",questionPanel:"\u95EE\u9898",questionNavigation:"\u5207\u6362\u95EE\u9898",questionPosition:"{current} / {total}",questionAnswerFailed:"\u63D0\u4EA4\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002",questionAnswerSent:"\u56DE\u7B54\u5DF2\u53D1\u9001",questionCancel:"\u8DF3\u8FC7",questionCancelling:"\u6B63\u5728\u8DF3\u8FC7\u2026",questionCancelled:"\u5DF2\u8DF3\u8FC7",answerPlaceholder:"\u8F93\u5165\u4F60\u7684\u56DE\u7B54",autoSendAnswers:"\u5C06\u5728 {seconds} \u79D2\u540E\u63D0\u4EA4\u63A8\u8350\u7B54\u6848",recommended:"\u63A8\u8350",sendAnswer:"\u63D0\u4EA4\u56DE\u7B54",sending:"\u6B63\u5728\u63D0\u4EA4\u2026",accepted:"\u5DF2\u63A5\u53D7",addAttachmentsAndSources:"\u6DFB\u52A0\u9644\u4EF6\u548C\u6765\u6E90",addCalculation:"\u6DFB\u52A0\u8BA1\u7B97",addProperty:"\u6DFB\u52A0\u5C5E\u6027",adjust:"\u8C03\u6574",adjustYourSearchToTryAgain:"\u8BF7\u8C03\u6574\u641C\u7D22\u5185\u5BB9\u540E\u91CD\u8BD5",advisor:"\u8D1F\u8D23\u4EBA",allChunks:"\u6240\u6709\u7247\u6BB5",allocationSegments:"\u5206\u914D\u5206\u7EC4",alternatives:"\u5907\u9009\u65B9\u6848",answersSent:"\u7B54\u6848\u5DF2\u53D1\u9001",apply:"\u5E94\u7528",behavior:"\u884C\u4E3A",calculating:"\u8BA1\u7B97\u4E2D\u2026",calculationInputs:"\u8BA1\u7B97\u8F93\u5165",chatPrompt:"\u804A\u5929\u8F93\u5165",chats:"\u5BF9\u8BDD",chooseModel:"\u9009\u62E9\u6A21\u578B",clearSearch:"\u6E05\u7A7A\u641C\u7D22",clearSelection:"\u6E05\u7A7A\u9009\u62E9",clickChangedRowsToToggle:"\u70B9\u51FB\u53D8\u66F4\u884C\u5207\u6362\u9009\u62E9",closeChatSearch:"\u5173\u95ED\u5BF9\u8BDD\u641C\u7D22",collapse:"\u6536\u8D77",collapseSidebar:"\u6536\u8D77\u4FA7\u680F",compactColumns:"\u7D27\u51D1\u5217\u5BBD",companiesTableScrollHorizontallyAndVerticallyToViewAllColumnsAndRecords:"\u8BB0\u5F55\u8868\u683C\uFF0C\u53EF\u6A2A\u5411\u6216\u7EB5\u5411\u6EDA\u52A8\u67E5\u770B\u6240\u6709\u5217\u548C\u8BB0\u5F55\u3002",company:"\u540D\u79F0",completed:"\u5DF2\u5B8C\u6210",connectingToAgentSScreen:"\u6B63\u5728\u8FDE\u63A5\u667A\u80FD\u4F53\u5C4F\u5E55",continue:"\u7EE7\u7EED",contributionSnapshotAcrossCurrentInventoryValueSegmentSelectionChangesTheInspectedGroupWithoutMovingTheCard:"\u5F53\u524D\u5206\u914D\u5FEB\u7167\uFF0C\u9009\u62E9\u5206\u7EC4\u67E5\u770B\u8BE6\u7EC6\u6570\u636E\u3002",copied:"\u5DF2\u590D\u5236",continueInNewConversation:"\u5728\u65B0\u5BF9\u8BDD\u4E2D\u7EE7\u7EED",copy:"\u590D\u5236",copyCode:"\u590D\u5236\u4EE3\u7801",customAnswer:"\u81EA\u5B9A\u4E49\u7B54\u6848",date:"\u65E5\u671F",describeEdits:"\u63CF\u8FF0\u4FEE\u6539\u8981\u6C42",discard:"\u820D\u5F03",dismiss:"\u5173\u95ED",edited:"\u5DF2\u4FEE\u6539",end:"\u7ED3\u675F",enterAMessage:"\u8F93\u5165\u6D88\u606F",expandSidebar:"\u5C55\u5F00\u4FA7\u680F",failed:"\u5931\u8D25",followUps:"\u540E\u7EED\u95EE\u9898",goCalculate:"\u5F00\u59CB\u8BA1\u7B97",groundingLetsTheModelVerifyGeneratedValuesAgainstConnectedSources:"\u901A\u8FC7\u5DF2\u8FDE\u63A5\u7684\u6765\u6E90\u9A8C\u8BC1\u751F\u6210\u7684\u6570\u636E\u3002",hideFromView:"\u4ECE\u89C6\u56FE\u9690\u85CF",if:"\u5982\u679C",insights:"\u6D1E\u5BDF",keep:"\u4FDD\u7559",layout:"\u5E03\u5C40",more:"\u66F4\u591A",moreSettings:"\u66F4\u591A\u8BBE\u7F6E",newProperty:"\u65B0\u5EFA\u5C5E\u6027",nextQuestion:"\u4E0B\u4E00\u9898",noChatsFound:"\u6CA1\u6709\u627E\u5230\u5BF9\u8BDD",noMatchesFor:"\u672A\u627E\u5230\u5339\u914D\u9879\uFF1A\u201C",noResultsFound:"\u6CA1\u6709\u627E\u5230\u7ED3\u679C",open:"\u6253\u5F00",openApproval:"\u6253\u5F00\u5BA1\u6279",otherOptions:"\u5176\u4ED6\u9009\u9879",previousQuestion:"\u4E0A\u4E00\u9898",prompt:"\u63D0\u793A\u8BCD",recommendation:"\u5EFA\u8BAE",resetColumnWidths:"\u91CD\u7F6E\u5217\u5BBD",resizeCompanyColumn:"\u8C03\u6574\u540D\u79F0\u5217\u5BBD",scrollableTaskTable:"\u53EF\u6EDA\u52A8\u4EFB\u52A1\u8868\u683C",search:"\u641C\u7D22\u2026",searchChatHistory:"\u641C\u7D22\u5BF9\u8BDD\u5386\u53F2",searchChats:"\u641C\u7D22\u5BF9\u8BDD",selectInputs:"\u9009\u62E9\u8F93\u5165",selectType:"\u9009\u62E9\u7C7B\u578B",send:"\u53D1\u9001",sendEditInstruction:"\u53D1\u9001\u4FEE\u6539\u6307\u4EE4",setAPromptPressToMentionAnInput:"\u8BBE\u7F6E\u63D0\u793A\u8BCD\uFF08\u6309 @ \u5F15\u7528\u8F93\u5165\uFF09",signOut:"\u9000\u51FA\u767B\u5F55",skip:"\u8DF3\u8FC7",snapshot:"\u5FEB\u7167",somethingElse:"\u5176\u4ED6\u7B54\u6848\u2026",sources:"\u6765\u6E90",startOver:"\u91CD\u65B0\u5F00\u59CB",status:"\u72B6\u6001",tableOptions:"\u8868\u683C\u9009\u9879",taskName:"\u4EFB\u52A1\u540D\u79F0",teachATask:"\u6F14\u793A\u4EFB\u52A1",toolCalls:"\u5DE5\u5177\u8C03\u7528",trendSnapshot:"\u8D8B\u52BF\u5FEB\u7167",tryAgain:"\u91CD\u8BD5",type:"\u7C7B\u578B",useValuesFrom:"\u4F7F\u7528\u4EE5\u4E0B\u503C",v:"V",videoUnavailable:"\u89C6\u9891\u4E0D\u53EF\u7528",workspaceNavigation:"\u5DE5\u4F5C\u533A\u5BFC\u822A",and:"\u5E76\u4E14",applied:"\u5DF2\u5E94\u7528",count:"\u6570\u91CF",for:"\u9488\u5BF9",h:"h",is:"\u4E3A",links:"\u94FE\u63A5",spent:"\u652F\u51FA",configuration:"\u914D\u7F6E",new:"\u65B0\u5EFA",history:"\u5386\u53F2",edit:"\u7F16\u8F91",edits:"\u4FEE\u6539",removal:"\u5220\u9664",removals:"\u5220\u9664",addition:"\u65B0\u589E",additions:"\u65B0\u589E",change:"\u4FEE\u6539",changes:"\u4FEE\u6539",spend:"\u652F\u51FA",usage:"\u7528\u91CF",previousInsight:"\u4E0A\u4E00\u6761\u6D1E\u5BDF",nextInsight:"\u4E0B\u4E00\u6761\u6D1E\u5BDF",connected:"\u5DF2\u8FDE\u63A5",connect:"\u8FDE\u63A5",typeToSearchSourcesFiles:"\u8F93\u5165\u4EE5\u641C\u7D22\u6765\u6E90\u548C\u6587\u4EF6",typeToSearchCommands:"\u8F93\u5165\u4EE5\u641C\u7D22\u547D\u4EE4",listening:"\u6B63\u5728\u542C\u5199\u2026",stopDictation:"\u505C\u6B62\u542C\u5199",startDictation:"\u5F00\u59CB\u542C\u5199",unpin:"\u53D6\u6D88\u56FA\u5B9A",pin:"\u56FA\u5B9A",showFewerActions:"\u6536\u8D77\u64CD\u4F5C",showMoreActions:"\u66F4\u591A\u64CD\u4F5C",retry:"\u91CD\u8BD5",like:"\u8D5E",dislike:"\u4E0D\u8D5E",newWorkspace:"\u65B0\u5EFA\u5DE5\u4F5C\u533A",workspaceSettings:"\u5DE5\u4F5C\u533A\u8BBE\u7F6E",inviteTeamMembers:"\u9080\u8BF7\u56E2\u961F\u6210\u5458",loading:"\u52A0\u8F7D\u4E2D",thinking:"\u601D\u8003\u4E2D",thoughtComplete:"\u601D\u8003\u5B8C\u6210",model:"\u6A21\u578B",agent:"\u667A\u80FD\u4F53",viewSources:"\u67E5\u770B\u6765\u6E90",close:"\u5173\u95ED",noFiles:"\u6682\u65E0\u6587\u4EF6",done:"\u5B8C\u6210",doneEditing:"\u5B8C\u6210\u7F16\u8F91",newChat:"\u65B0\u5BF9\u8BDD",all:"\u5168\u90E8",toDo:"\u5F85\u529E",inProgress:"\u8FDB\u884C\u4E2D",veryStrong:"\u5F88\u5F3A",weak:"\u8F83\u5F31",veryWeak:"\u5F88\u5F31",noCommunication:"\u65E0\u4EA4\u6D41",cancel:"\u53D6\u6D88",improve:"\u6539\u5584",explain:"\u89E3\u91CA",shorten:"\u7CBE\u7B80",tone:"\u8BED\u6C14",grammar:"\u8BED\u6CD5",screenTitle:"{name}\u7684\u5C4F\u5E55",duration:"\u8017\u65F6 {time}",noMatches:"\u672A\u627E\u5230\u5339\u914D\u9879\uFF1A\u201C{query}\u201D",editsApplied_one:"\u5DF2\u5E94\u7528 {count} \u9879\u4FEE\u6539",editsApplied_other:"\u5DF2\u5E94\u7528 {count} \u9879\u4FEE\u6539",changesSummary:"\u5220\u9664 {removals} \u9879 \xB7 \u65B0\u589E {additions} \u9879",applyChanges_one:"\u5E94\u7528 {count} \u9879\u4FEE\u6539",applyChanges_other:"\u5E94\u7528 {count} \u9879\u4FEE\u6539",sourceCount_one:"{count} \u4E2A\u6765\u6E90",sourceCount_other:"{count} \u4E2A\u6765\u6E90",writeMessage:"\u8F93\u5165\u6D88\u606F\u2026",selectAllCompanies:"\u9009\u62E9\u6240\u6709\u516C\u53F8",categories:"\u5206\u7C7B",lastInteraction:"\u6700\u8FD1\u4E92\u52A8",connectionStrength:"\u8054\u7CFB\u5F3A\u5EA6",linksHeading:"\u94FE\u63A5",propertyType:"\u5C5E\u6027\u7C7B\u578B",tool:"\u5DE5\u5177",grounding:"\u6EAF\u6E90",inputs:"\u8F93\u5165",requiredValue:"\u5FC5\u586B\u503C",allowEmptyResults:"\u5141\u8BB8\u7A7A\u7ED3\u679C",showConfidence:"\u663E\u793A\u7F6E\u4FE1\u5EA6",categoriesSummary:"\u5206\u7C7B\uFF1A{categories}",sortByLabel:"\u6309{label}\u6392\u5E8F",resizeColumn:"\u8C03\u6574{label}\u5217\u5BBD",selectName:"\u9009\u62E9{name}",columnCalculationPrompt:"{column}\u8BA1\u7B97\u63D0\u793A\u8BCD",proposedChanges:"\u5EFA\u8BAE\u66F4\u6539",name:"\u540D\u79F0",category:"\u5206\u7C7B",value:"\u503C",anomaly:"\u5F02\u5E38",allocation:"\u5206\u5E03"};function oe(){let e=useMonkeysLocaleMessages(),{locale:t}=useMonkeysLocale(),o=t==="zh-CN"?Ga:jn;return (n,r={})=>{let a=ja[n]??n,l=typeof r.count=="number"?"_"+new Intl.PluralRules(t).select(r.count):"";return (e.beautiful?.[a+l]??e.beautiful?.[a]??o[a+l]??o[a]??jn[a+l]??jn[a]??n).replace(/\{(\w+)\}/g,(d,u)=>String(r[u]??""))}}i(oe,"useBUICopy");function Te(e,t){let o=oe(),n=i(r=>typeof r=="string"?o(r):r&&typeof r=="object"?Object.fromEntries(Object.entries(r).map(([a,l])=>[a,n(l)])):r,"visit");return {...n(e),...t}}i(Te,"useBUILabels");var Ka="aspect-[2964/1856]";function li({path:e,size:t=15,sw:o=2}){return jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":true,children:e})}i(li,"Ico");var Yc=jsxs(Fragment,{children:[jsx("polyline",{points:"4 14 10 14 10 20"}),jsx("polyline",{points:"20 10 14 10 14 4"}),jsx("line",{x1:"14",y1:"10",x2:"21",y2:"3"}),jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]}),Qc=jsxs(Fragment,{children:[jsx("polyline",{points:"15 3 21 3 21 9"}),jsx("polyline",{points:"9 21 3 21 3 15"}),jsx("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]});function Zc(e){let t=Math.floor(e/60),o=e%60;return `${String(t).padStart(2,"0")}:${String(o).padStart(2,"0")}`}i(Zc,"fmt");function Ya({className:e,style:t}){return jsx("svg",{className:e,style:t,width:"30",height:"30",viewBox:"0 0 24 24",fill:"var(--bui-screen-cursor-fill)",stroke:"var(--bui-screen-foreground)",strokeWidth:"1.4",strokeLinejoin:"round","aria-hidden":true,children:jsx("path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z"})})}i(Ya,"CursorSvg");function Jc(){return jsx(Ya,{className:"agent-cursor",style:{left:"42%",top:"53%"}})}i(Jc,"DriftCursor");function eu({streamSrc:e,cursor:t=true}){return jsxs("div",{className:"absolute inset-0 overflow-hidden bg-inset",children:[e?/\.(mp4|webm|mov|m4v)(\?|$)/i.test(e)?jsx("video",{src:e??"",autoPlay:true,muted:true,loop:true,playsInline:true,className:"absolute inset-0 h-full w-full object-cover"}):jsx("img",{src:e??"",alt:"",className:"absolute inset-0 h-full w-full object-cover"}):jsx("div",{className:"h-full w-full bg-inset"}),t&&jsx(Jc,{})]})}i(eu,"Screen");function tu({src:e}){if(!e)return null;let t={maxHeight:"calc(100vh - 150px)",maxWidth:"min(960px, 90vw)"},o="block h-auto w-auto object-contain";return /\.(mp4|webm|mov|m4v)(\?|$)/i.test(e)?jsx("video",{src:e,autoPlay:true,muted:true,loop:true,playsInline:true,className:o,style:t}):jsx("img",{src:e,alt:"",className:o,style:t})}i(tu,"MediaSizer");function Xa(){let e=oe(),t=26,o=2,n=(t-o)/2,r=2*Math.PI*n;return jsxs("div",{className:"absolute inset-0 bg-black",children:[jsx("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:jsxs("svg",{width:t,height:t,className:"block",style:{animation:"bui-spin 1.1s linear infinite"},"aria-hidden":true,children:[jsx("circle",{cx:t/2,cy:t/2,r:n,fill:"none",stroke:"var(--bui-screen-progress-track)",strokeWidth:o}),jsx("circle",{cx:t/2,cy:t/2,r:n,fill:"none",stroke:"var(--bui-screen-foreground)",strokeWidth:o,strokeLinecap:"round",strokeDasharray:`${r*.28} ${r*.72}`})]})}),jsx("span",{className:"absolute inset-x-0 text-center text-[12.5px] font-medium text-white/70",style:{top:"calc(50% + 28px)"},children:e("Connecting to agent's screen")})]})}i(Xa,"LoadingScreen");function ou({agentName:e="Agent",streamSrc:t,variant:o,recording:n=false,elapsedSeconds:r=0,onRecordingChange:a}){let l=oe(),s=o==="Loading",[d,u]=useState(false),[m,c]=useState(false),[p,h]=useState(null);useEffect(()=>c(true),[]),useEffect(()=>{if(!d)return;let f=i(y=>y.key==="Escape"&&u(false),"onKey");document.addEventListener("keydown",f);let x=La(document);return ()=>{document.removeEventListener("keydown",f),x();}},[d]);let g=jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n?jsxs("button",{type:"button",onClick:i(()=>{a?.(false);},"endRecording"),className:"inline-flex h-[27px] items-center gap-1.5 rounded-[var(--bui-radius-pill)] bg-red pl-2.5 pr-3 text-[13px] font-medium leading-none text-white shadow-[inset_0_1px_0_var(--bui-screen-record-highlight)] transition-[transform,filter] duration-150 ease-out hover:brightness-95 active:scale-[0.96]",children:[jsx("span",{className:"size-2.5 rounded-[2px] bg-white"}),l("End")]}):jsxs(Me,{variant:"secondary",size:"sm",className:"gap-1 pl-1.5",onClick:i(()=>{a?.(true);},"startRecording"),children:[jsx(li,{size:15,path:jsxs(Fragment,{children:[jsx("circle",{cx:"12",cy:"12",r:"9"}),jsx("circle",{cx:"12",cy:"12",r:"3.5",fill:"currentColor",stroke:"none"})]})}),l("Teach a task")]}),jsx("button",{type:"button","aria-label":l("Collapse"),onClick:()=>u(false),className:"primitive-icon-button text-ink-3 transition-colors duration-100 hover:bg-hover hover:text-ink",children:jsx(li,{size:15,path:Yc})})]});return jsx(U,{children:jsxs("div",{className:"w-full max-w-[340px]",children:[jsx("div",{className:`group/screen relative ${Ka} overflow-hidden rounded-window bg-inset shadow-card transition-shadow duration-150 ${s?"":"cursor-pointer hover:shadow-raised"}`,onClick:s?void 0:()=>u(true),style:{animation:"bui-fade-up 380ms cubic-bezier(0.23,1,0.32,1) both"},children:s?jsx(Xa,{}):jsxs(Fragment,{children:[jsx(eu,{streamSrc:t}),jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-[var(--bui-screen-rest)] transition-colors duration-150 group-hover/screen:bg-[var(--bui-screen-hover)]",children:jsx("span",{className:"translate-y-1 opacity-0 transition duration-150 group-hover/screen:translate-y-0 group-hover/screen:opacity-100",children:jsxs(Me,{variant:"accent",size:"sm",onClick:f=>{f.stopPropagation(),u(true);},children:[jsx(li,{size:14,path:Qc}),l("Open")]})})})]})}),jsx("div",{className:"mt-2.5 truncate px-0.5 text-[13px] font-medium text-ink",children:l("screenTitle",{name:e})}),d&&m&&Oo(jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 sm:p-6",role:"dialog","aria-modal":"true","aria-label":l("screenTitle",{name:e}),children:[jsx("div",{className:"absolute inset-0 bg-black/60 dark:bg-black/75",style:{animation:"bui-fade-in 180ms ease-out both"},onClick:()=>u(false)}),jsxs("div",{className:"relative flex max-h-full flex-col overflow-hidden rounded-[16px] bg-surface p-2 pt-0 shadow-overlay",style:{animation:"bui-pop-in 240ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxs("div",{className:"flex h-11 shrink-0 items-center justify-between gap-3 px-1.5",children:[jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[jsx("span",{className:"truncate text-[13px] font-semibold text-ink",children:e}),n&&jsxs("span",{className:"inline-flex shrink-0 items-center gap-1.5 rounded-full bg-red-tint py-0.5 pl-1.5 pr-2 text-[11.5px] font-medium tabular-nums text-red",children:[jsx("span",{className:"size-2 rounded-full bg-red",style:{animation:"bui-records-pulse 1.1s ease-in-out infinite"}}),Zc(r)]})]}),g]}),jsxs("div",{className:"relative min-h-0 overflow-hidden rounded-[8px] bg-inset [cursor:none]",onMouseMove:f=>{let x=f.currentTarget.getBoundingClientRect();h({x:f.clientX-x.left,y:f.clientY-x.top});},onMouseLeave:()=>h(null),children:[s?jsx("div",{className:Ka,style:{width:"min(960px, 90vw)"},children:jsx(Xa,{})}):jsx(tu,{src:t??""}),!s&&p&&jsx(Ya,{className:"pointer-events-none absolute z-10",style:{left:p.x,top:p.y,filter:"drop-shadow(0 1px 1.5px var(--bui-screen-cursor-shadow))"}})]})]})]}),document.body)]})})}i(ou,"BUIAgentScreen");function et({children:e,className:t="",highlightClassName:o="inset-x-0 rounded-[8px] bg-hover",rowSelector:n="[data-menu-row]"}){let r=useRef(null),[a,l]=useState(null),[s,d]=useState(false),u=i(m=>{let c=r.current;if(!(m instanceof Element)||!c)return;let p=m.closest(n);if(!(p instanceof HTMLElement)||!c.contains(p))return;let h=c.getBoundingClientRect(),v=p.getBoundingClientRect();l({top:v.top-h.top,height:v.height}),d(true);},"moveTo");return jsx(U,{children:jsxs("div",{ref:r,onMouseOver:m=>u(m.target),onMouseLeave:()=>d(false),onFocusCapture:m=>u(m.target),onBlurCapture:m=>{r.current?.contains(m.relatedTarget)||d(false);},className:`group/glide-menu relative ${t}`,children:[jsx("span",{"aria-hidden":true,className:`pointer-events-none absolute ${o}`,style:{top:a?.top??0,height:a?.height??0,opacity:a&&s?1:0,transition:"top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease"}}),e]})})}i(et,"BUIGlideMenu");var au=[],su={skip:"Skip",continue:"Continue",send:"Send",customPlaceholder:"Something else\u2026",sentMessage:"Answers sent"},lu=400,di="360ms cubic-bezier(0.22, 1, 0.36, 1)";function du({value:e}){let t=useRef(e),[o,n]=useState(e),[r,a]=useState(e),[l,s]=useState(false),[d,u]=useState(false),[m,c]=useState("up");useEffect(()=>{if(t.current===e)return;let h=t.current;t.current=e;let v=parseInt(h,10),w=parseInt(e,10);c(Number.isFinite(v)&&Number.isFinite(w)&&w<v?"down":"up"),n(h),a(e),s(true),u(false);let g=0,f=requestAnimationFrame(()=>{g=requestAnimationFrame(()=>u(true));}),x=setTimeout(()=>{s(false),n(e),u(false);},lu);return ()=>{cancelAnimationFrame(f),cancelAnimationFrame(g),clearTimeout(x);}},[e]);let p=l?r:o;return jsx(Fragment,{children:Array.from({length:p.length},(h,v)=>{let w=o[v]??"",g=p[v]??"";return !l||w===g?jsx("span",{children:g},`${v}-${g}`):jsx("span",{style:{display:"inline-block",position:"relative",overflow:"hidden",height:"1em",lineHeight:"1em",verticalAlign:"-0.05em"},children:jsxs("span",{style:{display:"flex",flexDirection:"column",transition:"transform 350ms cubic-bezier(0.4, 0, 0.2, 1)",transform:`translateY(${d?m==="down"?"0":"-1em":m==="down"?"-1em":"0"})`},children:[jsx("span",{style:{height:"1em",lineHeight:"1em"},children:m==="down"?g:w}),jsx("span",{style:{height:"1em",lineHeight:"1em"},children:m==="down"?w:g})]})},`${v}-${w}-${g}-${m}`)})})}i(du,"RollingDigits");function ci({path:e,size:t=14,sw:o=2}){return jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":true,children:e})}i(ci,"Ico");function cu({questions:e=au,labels:t,onSubmitted:o,onAnswerChange:n,resettable:r=true,allowSkip:a=true,status:l="idle",onReset:s}){let d=oe(),u=Te(su,t),[m,c]=useState(0),[p,h]=useState({}),[v,w]=useState({}),g=l==="submitted",f=useRef(p),x=useRef(v);f.current=p,x.current=v;let[y,$]=useState(true),M=useRef(null),C=useRef([]),R=useRef(false),[P,F]=useState(void 0),[L,B]=useState(0),[k,T]=useState(false),[D,_]=useState(false),Z=m===e.length-1,O=(p[m]??[]).length>0||!!v[m]?.trim(),J=i(I=>{let j=C.current[m];if(!j)return;let A=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;F(j.offsetHeight),B(j.offsetTop),T(I&&!A);},"sync");useLayoutEffect(()=>{let I=R.current;R.current=true,J(I),_(true);},[m,p,v,y,g]),useEffect(()=>{let I=requestAnimationFrame(()=>J(R.current));return ()=>cancelAnimationFrame(I)},[m]),useEffect(()=>()=>{M.current&&clearTimeout(M.current);},[]);let E=i(I=>{M.current&&clearTimeout(M.current),c(Math.min(Math.max(I,0),e.length-1));},"goTo"),te=i(()=>{M.current&&clearTimeout(M.current),l!=="submitting"&&o?.(f.current,x.current);},"send"),ee=i(()=>{Z?te():E(m+1);},"advance"),me=i(I=>{let j=e[m].type,A=f.current,W=A[m]??[],ae=j==="radio"?[I]:W.includes(I)?W.filter(re=>re!==I):[...W,I],se={...A,[m]:ae};f.current=se,h(se),n?.(m,ae),j==="radio"&&(w(re=>({...re,[m]:""})),M.current&&clearTimeout(M.current),M.current=setTimeout(()=>{Z?te():c(re=>Math.min(e.length-1,re+1));},480));},"toggle"),de=i(()=>{c(0),h({}),w({}),s?.(),$(true),R.current=false;},"reset");return e.length?y?g?jsx(U,{children:jsxs("div",{className:"flex w-full max-w-80 items-center gap-3",style:{animation:"bui-pop-in 260ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-green-tint py-1 pr-2.5 pl-1 text-[12.5px] font-medium text-green",children:[jsx("span",{className:"flex size-4.5 items-center justify-center rounded-full bg-green text-white",children:jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M20 6L9 17l-5-5"})})}),u.sentMessage]}),r&&jsx("button",{type:"button",onClick:de,className:"text-[12px] font-medium text-ink-3 transition-colors duration-150 hover:text-ink",children:d("Start over")})]})}):jsx(U,{children:jsx("div",{className:"w-full max-w-80",children:jsxs("div",{className:"relative overflow-hidden rounded-card bg-surface shadow-card",style:{animation:"bui-fade-up 380ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsx("button",{type:"button","aria-label":d("Dismiss"),onClick:()=>$(false),className:"primitive-icon-button absolute right-2.5 top-2.5 z-10 text-ink-3 transition-colors duration-100 hover:bg-hover hover:text-ink",children:jsx(ci,{size:14,sw:2.2,path:jsx("path",{d:"M18 6L6 18M6 6l12 12"})})}),jsx("div",{className:"primitive-card-pad",children:jsx("div",{className:"overflow-hidden",style:{height:P,transition:k?`height ${di}`:void 0},"aria-live":"polite",children:jsx("div",{style:{display:"flex",flexDirection:"column",gap:"calc(var(--bui-spacing) * 6.5)",transform:`translate3d(0, ${-L}px, 0)`,transition:k?`transform ${di}`:void 0,willChange:"transform"},children:e.map((I,j)=>{let A=j===m;if(!D&&!A)return null;let W=p[j]??[],ae={opacity:A?1:0,transition:k?`opacity ${di}`:void 0,pointerEvents:A?void 0:"none"};return jsxs("div",{ref:se=>{C.current[j]=se;},"aria-hidden":A?void 0:true,style:ae,children:[jsx("div",{className:"pr-7 text-[14px] font-medium text-ink",children:I.q}),jsxs(et,{className:"mt-2.5 flex flex-col gap-1",highlightClassName:"inset-x-0 rounded-control bg-hover",children:[I.options.map((se,re)=>{let Be=W.includes(re);return jsxs("button",{type:"button","data-menu-row":true,"aria-pressed":Be,tabIndex:A?0:-1,disabled:l==="submitting",onClick:()=>{A&&me(re);},className:"relative z-10 flex items-center gap-1.5 rounded-control pl-1 pr-2 py-1 text-left transition-colors duration-100",children:[jsx("span",{className:`flex size-4 shrink-0 items-center justify-center transition-colors duration-200
|
|
51
|
+
${I.type==="radio"?"rounded-full":"rounded-[5px]"}
|
|
52
|
+
${Be?"bg-ink text-canvas":"shadow-[inset_0_0_0_1.5px_var(--bui-line-strong)] text-transparent"}`,children:I.type==="radio"?jsx("span",{className:"size-1.5 rounded-full bg-canvas transition-transform duration-200",style:{transform:Be?"scale(1)":"scale(0)"}}):jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M20 6L9 17l-5-5"})})}),jsx("span",{className:`text-[13px] leading-none transition-colors duration-200 ${Be?"text-ink":"text-ink-2"}`,children:se})]},se)}),I.allowCustom!==false&&jsx("label",{"data-menu-row":true,className:"relative z-10 flex items-center gap-1.5 rounded-control pl-1 pr-2 py-1 transition-colors duration-100",children:jsx("input",{type:I.customInputType??"text",disabled:l==="submitting",value:v[j]??"",tabIndex:A?0:-1,onChange:se=>{A&&(w(re=>({...re,[j]:se.target.value})),I.type==="radio"&&h(re=>({...re,[j]:[]})));},onKeyDown:se=>{se.key==="Enter"&&!se.nativeEvent.isComposing&&se.keyCode!==229&&O&&(se.preventDefault(),ee());},placeholder:u.customPlaceholder,"aria-label":d("Custom answer"),className:"min-w-0 flex-1 bg-transparent pl-1.5 text-[13px] text-ink outline-none placeholder:text-ink-3"})})]})]},j)})})})}),jsxs("div",{className:"primitive-card-footer flex items-center justify-between gap-3",children:[jsxs("div",{className:"flex items-center gap-1 text-ink-3",children:[jsx("button",{type:"button","aria-label":d("Previous question"),disabled:m<=0,onClick:()=>E(m-1),className:"flex size-[18px] items-center justify-center rounded-[var(--bui-radius-scale-5)] transition-colors duration-100 enabled:hover:text-ink disabled:opacity-30",children:jsx(ci,{size:14,path:jsx("path",{d:"M18 15l-6-6-6 6"})})}),jsx("span",{className:"inline-flex items-center text-[12px] font-medium tabular-nums text-ink-3",style:{letterSpacing:"-0.1px",lineHeight:1},children:jsx(du,{value:`${m+1} / ${e.length}`})}),jsx("button",{type:"button","aria-label":d("Next question"),disabled:Z,onClick:()=>E(m+1),className:"flex size-[18px] items-center justify-center rounded-[var(--bui-radius-scale-5)] transition-colors duration-100 enabled:hover:text-ink disabled:opacity-30",children:jsx(ci,{size:14,path:jsx("path",{d:"M6 9l6 6 6-6"})})})]}),jsxs("div",{className:"-mr-0.5 flex items-center gap-1.5",children:[a&&jsx(Me,{variant:"ghost",size:"sm",disabled:l==="submitting",onClick:()=>Z?$(false):E(m+1),children:u.skip}),jsx(Me,{variant:"accent",size:"sm",disabled:!O||l==="submitting",onClick:ee,children:Z?u.send:u.continue})]})]})]})})}):jsx(U,{children:jsx("button",{type:"button",onClick:()=>$(true),className:"rounded-control bg-surface px-3 py-2 text-[12.5px] font-medium text-ink shadow-btn transition-colors duration-150 hover:bg-hover",children:d("Open approval")})}):null}i(cu,"BUIApprovalCard");var pi=i(e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4),"srgbToLinear"),mi=i(e=>e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055,"linearToSrgb"),pu=i((e,t,o)=>{let n=.4122214708*e+.5363325363*t+.0514459929*o,r=.2119034982*e+.6806995451*t+.1073969566*o,a=.0883024619*e+.2817188376*t+.6299787005*o,l=Math.cbrt(n),s=Math.cbrt(r),d=Math.cbrt(a);return [.2104542553*l+.793617785*s-.0040720468*d,1.9779984951*l-2.428592205*s+.4505937099*d,.0259040371*l+.7827717662*s-.808675766*d]},"linearRgbToOklab"),mu=i((e,t,o)=>{let n=e+.3963377774*t+.2158037573*o,r=e-.1055613458*t-.0638541728*o,a=e-.0894841775*t-1.291485548*o,l=n*n*n,s=r*r*r,d=a*a*a;return [4.0767416621*l-3.3077115913*s+.2309699292*d,-1.2684380046*l+2.6097574011*s-.3413193965*d,-0.0041960863*l-.7034186147*s+1.707614701*d]},"oklabToLinearRgb"),qn=i(e=>{let[t,o,n]=pu(pi(e[0]),pi(e[1]),pi(e[2]));return {L:t,C:Math.sqrt(o*o+n*n),H:Math.atan2(n,o)}},"rgbToOklch"),Ja=i(({L:e,C:t,H:o})=>{let n=t*Math.cos(o),r=t*Math.sin(o),[a,l,s]=mu(e,n,r),d=i(u=>Math.max(0,Math.min(1,u)),"clamp01");return [d(mi(a)),d(mi(l)),d(mi(s))]},"oklchToRgb"),To=i(e=>{let t=parseInt(e.replace("#",""),16);return [(t>>16&255)/255,(t>>8&255)/255,(t&255)/255]},"hexToRgb"),gu=i((e,t,o)=>{let n=t-e;return n>Math.PI&&(n-=2*Math.PI),n<-Math.PI&&(n+=2*Math.PI),e+n*o},"lerpHueShortest"),fu=i((e,t,o)=>{let r=e.C<1e-4?t.H:e.H,a=t.C<1e-4?e.H:t.H;return {L:e.L+(t.L-e.L)*o,C:e.C+(t.C-e.C)*o,H:gu(r,a,o)}},"lerpOklch");function os(e,t){if(e.length===0)return [];if(e.length===1){let r=Ja(e[0]);return Array.from({length:t},()=>r)}let o=[],n=e.length;for(let r=0;r<t;r++){let l=r/(t-1)*(n-1),s=Math.min(n-2,Math.floor(l)),d=l-s;o.push(Ja(fu(e[s],e[s+1],d)));}return o}i(os,"sampleChainRgb");var Et={red:"#FF3D7F",orange:"#FF7A1A",yellow:"#FFD600",green:"#C2FF3D",mint:"#00FFA8",teal:"#00E5D6",cyan:"#1FC8FF",blue:"#2E70FF",indigo:"#7B4FFF",purple:"#D33CFF",pink:"#FF3DC0",brown:"#D8A87B"};Object.fromEntries(Object.entries(Et).map(([e,t])=>[e,qn(To(t))]));function hu(e,t){let o=i(a=>a[0][0]*(a[1][1]*a[2][2]-a[1][2]*a[2][1])-a[0][1]*(a[1][0]*a[2][2]-a[1][2]*a[2][0])+a[0][2]*(a[1][0]*a[2][1]-a[1][1]*a[2][0]),"det"),n=o(e);if(Math.abs(n)<1e-9)return null;let r=i(a=>e.map((l,s)=>l.map((d,u)=>u===a?t[s]:d)),"col");return [o(r(0))/n,o(r(1))/n,o(r(2))/n]}i(hu,"solve3x3");function ns(e){let t=e.length,o=.5,n=e.map((g,f)=>f/(t-1)),r=n.map(g=>Math.cos(2*Math.PI*o*g)),a=n.map(g=>Math.sin(2*Math.PI*o*g)),l=r.reduce((g,f)=>g+f,0),s=a.reduce((g,f)=>g+f,0),d=r.reduce((g,f)=>g+f*f,0),u=a.reduce((g,f)=>g+f*f,0),m=r.reduce((g,f,x)=>g+f*a[x],0),c=[[t,l,s],[l,d,m],[s,m,u]],p=i(g=>{let f=e.map(B=>B[g]),x=f.reduce((B,k)=>B+k,0),y=f.reduce((B,k,T)=>B+k*r[T],0),$=f.reduce((B,k,T)=>B+k*a[T],0),M=hu(c,[x,y,$]);if(!M)return {a:x/t,b:0,d:0};let[C,R,P]=M,F=Math.sqrt(R*R+P*P),L=(Math.atan2(-P,R)/(2*Math.PI)+1)%1;return {a:C,b:F,d:L}},"fitChannel"),h=p(0),v=p(1),w=p(2);return {a:[h.a,v.a,w.a],b:[h.b,v.b,w.b],c:[o,o,o],d:[h.d,v.d,w.d]}}i(ns,"fitCosinePaletteToSamples");var bu=i((e,t)=>{let o=os([qn(To(e)),qn(To(t))],17);return o[0]=To(e),o[o.length-1]=To(t),ns(o)},"accentPair");function co(e){if(e.length===0)return bu(Et.indigo,Et.cyan);if(e.length===1)return {a:To(e[0]),b:[0,0,0],c:[1,1,1],d:[0,0,0]};let t=e.map(n=>qn(To(n))),o=os(t,17);return ns(o)}i(co,"accentChain");var es={prism:co(["#00C0E8","#6155F5","#CB30E0"]),berry:co(["#FF2D55","#CB30E0"]),lagoon:co(["#0088FF","#00C0E8","#34C759"]),citrus:co(["#34C759","#FFCC00","#FF8D28"]),azure:co(["#00C0E8","#0088FF","#6155F5"]),ember:co(["#FFCC00","#FF8D28","#FF2D55"])};function rs(e){return e?typeof e=="string"?es[e]:e:es.prism}i(rs,"resolvePalette");var vu=`
|
|
53
53
|
attribute vec2 a;
|
|
54
54
|
void main(){ gl_Position = vec4(a, 0.0, 1.0); }
|
|
55
55
|
`,yu=`
|
|
@@ -179,15 +179,15 @@ void main(){
|
|
|
179
179
|
|
|
180
180
|
gl_FragColor = vec4(bodyPM + highEmit, min(bodyA + highA, 1.0));
|
|
181
181
|
}
|
|
182
|
-
`,xu=i(e=>{switch(e){case "ltr":return {axis:0,posStart:-0.2,posEnd:1.2};case "rtl":return {axis:0,posStart:1.2,posEnd:-0.2};case "ttb":return {axis:1,posStart:-0.2,posEnd:1.2};case "btt":return {axis:1,posStart:1.2,posEnd:-0.2}}},"dirToUniforms");function is(e={}){if(typeof window>"u")return null;let t=e.canvas??document.createElement("canvas"),o=t.getContext("webgl",{alpha:true,antialias:false,premultipliedAlpha:true});if(!o)return null;let n=i((B,te)=>{let ee=o.createShader(B);return ee?(o.shaderSource(ee,te),o.compileShader(ee),o.getShaderParameter(ee,o.COMPILE_STATUS)?ee:(console.error("[glimm] shader compile error:",o.getShaderInfoLog(ee)),o.deleteShader(ee),null)):null},"compile"),r=n(o.VERTEX_SHADER,vu);if(!r)return null;let a=n(o.FRAGMENT_SHADER,yu);if(!a)return o.deleteShader(r),null;let l=o.createProgram();if(!l)return o.deleteShader(r),o.deleteShader(a),null;if(o.attachShader(l,r),o.attachShader(l,a),o.linkProgram(l),!o.getProgramParameter(l,o.LINK_STATUS))return console.error("[glimm] shader link error:",o.getProgramInfoLog(l)),o.deleteProgram(l),o.deleteShader(r),o.deleteShader(a),null;o.useProgram(l);let s=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,s),o.bufferData(o.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),o.STATIC_DRAW);let d=o.getAttribLocation(l,"a");o.enableVertexAttribArray(d),o.vertexAttribPointer(d,2,o.FLOAT,false,0,0);let u=i(B=>o.getUniformLocation(l,B),"u"),m=u("uRes"),c=u("uTime"),p=u("uProgress"),h=u("uAlpha"),v=u("uBandTight"),w=u("uPosStart"),g=u("uPosEnd"),f=u("uHueShift"),x=u("uDirection"),y=u("uWaveAmount"),$=u("uRippleAmount"),N=u("uWaveSpeed"),T=u("uBrightness"),S=u("uSwellAmount"),A=u("uPalA"),O=u("uPalB"),L=u("uPalC"),I=u("uPalD");o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA);let k=i((B,te,ee)=>Math.max(te,Math.min(ee,B)),"clamp"),R={progress:0,alpha:0,palette:e.palette??rs(void 0),bandTight:k(e.bandTight??14,.1,200),direction:e.direction??"ltr",waveAmount:k(e.waveAmount??0,0,2),rippleAmount:k(e.rippleAmount??1,0,2),waveSpeed:k(e.waveSpeed??1,0,3),brightness:k(e.brightness??1,0,1.5),swellAmount:k(e.swellAmount??.55,0,1)},z=Math.random()*.4,_=i(()=>{let B=Math.min(window.devicePixelRatio||1,2),te=t.getBoundingClientRect(),ee=Math.max(1,Math.round(te.width*B)),pe=Math.max(1,Math.round(te.height*B));(t.width!==ee||t.height!==pe)&&(t.width=ee,t.height=pe,o.viewport(0,0,ee,pe));},"resize");_();let X=new ResizeObserver(_);X.observe(t);let Z=performance.now(),F=0,J=i(()=>{let B=(performance.now()-Z)/1e3,te=xu(R.direction);o.clearColor(0,0,0,0),o.clear(o.COLOR_BUFFER_BIT),o.uniform2f(m,t.width,t.height),o.uniform1f(c,B),o.uniform1f(p,R.progress),o.uniform1f(h,R.alpha),o.uniform1f(v,R.bandTight),o.uniform1f(w,te.posStart),o.uniform1f(g,te.posEnd),o.uniform1f(x,te.axis),o.uniform1f(y,R.waveAmount),o.uniform1f($,R.rippleAmount),o.uniform1f(N,R.waveSpeed),o.uniform1f(T,R.brightness),o.uniform1f(S,R.swellAmount),o.uniform1f(f,z),o.uniform3f(A,R.palette.a[0],R.palette.a[1],R.palette.a[2]),o.uniform3f(O,R.palette.b[0],R.palette.b[1],R.palette.b[2]),o.uniform3f(L,R.palette.c[0],R.palette.c[1],R.palette.c[2]),o.uniform3f(I,R.palette.d[0],R.palette.d[1],R.palette.d[2]),o.drawArrays(o.TRIANGLE_STRIP,0,4),F=requestAnimationFrame(J);},"tick");return F=requestAnimationFrame(J),{canvas:t,setProgress:i(B=>{R.progress=k(B,0,1);},"setProgress"),setAlpha:i(B=>{R.alpha=k(B,0,1.5);},"setAlpha"),setPalette:i(B=>{R.palette=B;},"setPalette"),setBandTight:i(B=>{R.bandTight=k(B,.1,200);},"setBandTight"),setDirection:i(B=>{R.direction=B;},"setDirection"),setWaveAmount:i(B=>{R.waveAmount=k(B,0,2);},"setWaveAmount"),setRippleAmount:i(B=>{R.rippleAmount=k(B,0,2);},"setRippleAmount"),setWaveSpeed:i(B=>{R.waveSpeed=k(B,0,3);},"setWaveSpeed"),setBrightness:i(B=>{R.brightness=k(B,0,1.5);},"setBrightness"),setSwellAmount:i(B=>{R.swellAmount=k(B,0,1);},"setSwellAmount"),getProgress:i(()=>R.progress,"getProgress"),getAlpha:i(()=>R.alpha,"getAlpha"),destroy:i(()=>{cancelAnimationFrame(F),X.disconnect(),o.deleteProgram(l),o.deleteBuffer(s),o.deleteShader(r),o.deleteShader(a);},"destroy")}}i(is,"createShader");function gi(e,t,o,n){let r=i(s=>3*(1-s)*(1-s)*s*e+3*(1-s)*s*s*o+s*s*s,"bezX"),a=i(s=>3*(1-s)*(1-s)*s*t+3*(1-s)*s*s*n+s*s*s,"bezY"),l=i(s=>3*(1-4*s+3*s*s)*e+3*(2*s-3*s*s)*o+3*s*s,"bezXd");return s=>{if(s<=0)return 0;if(s>=1)return 1;let d=s;for(let u=0;u<8;u++){let m=r(d)-s;if(Math.abs(m)<1e-6)break;let c=l(d);if(Math.abs(c)<1e-6)break;d-=m/c;}return a(d)}}i(gi,"cubicBezier");var ts={linear:i(e=>e,"linear"),easeOutQuart:i(e=>1-Math.pow(1-e,4),"easeOutQuart"),easeOutCubic:i(e=>1-Math.pow(1-e,3),"easeOutCubic"),easeInCubic:i(e=>e*e*e,"easeInCubic"),easeInOutCubic:i(e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,"easeInOutCubic"),easeOutExpo:i(e=>e===1?1:1-Math.pow(2,-10*e),"easeOutExpo"),easeInOutQuint:i(e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,"easeInOutQuint"),snap:gi(1,0,.35,.95),ease:gi(.25,.1,.25,1),back:gi(.175,.885,.32,1.1)},wu=i(e=>e?typeof e=="function"?e:ts[e]:ts.easeOutQuart,"resolveEasing"),ku=i(e=>1-Math.pow(1-e,4),"easeOutQuart"),$u=i(e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,"easeInOutCubic");function as(e,t={}){let o=t.sweepMs??1100,n=t.outroMs??700,r=Math.max(0,Math.min(1,t.midpoint??.56)),a=wu(t.easing??"ease")??ku,l=Math.max(0,Math.min(1.5,t.peakAlpha??1));t.palette&&e.setPalette(rs(t.palette)),t.bandTight!==void 0&&e.setBandTight(t.bandTight),t.direction&&e.setDirection(t.direction),t.waveAmount!==void 0&&e.setWaveAmount(t.waveAmount),t.rippleAmount!==void 0&&e.setRippleAmount(t.rippleAmount),t.waveSpeed!==void 0&&e.setWaveSpeed(t.waveSpeed),t.brightness!==void 0&&e.setBrightness(t.brightness),t.swellAmount!==void 0&&e.setSwellAmount(t.swellAmount);let s=false,d=0,u,m,c=new Promise(h=>{u=h;}),p=new Promise(h=>{m=h;});return (async()=>{let h=e.getProgress(),v=h>=.999?0:Math.max(0,Math.min(1,h));e.setAlpha(l),e.setProgress(v);let w=1-v,g=Math.max(80,o*w),f=false,x=Promise.resolve(),y=i(()=>{f=true,x=Promise.resolve().then(()=>t.onMidpoint?.()).then(()=>{}),x.then(u,N=>{console.error("[glimm] midpoint callback failed:",N),u();});},"fireMidpoint"),$=performance.now();await new Promise(N=>{let T=i(()=>{if(s){N();return}let S=Math.min(1,(performance.now()-$)/g),A=a(S),O=v+w*A;e.setProgress(O),!f&&O>=r&&y(),S<1?d=requestAnimationFrame(T):N();},"tick");d=requestAnimationFrame(T);}),!s&&(f||y(),await x.catch(()=>{}),!s&&(await Su(n,l,0,$u,e.setAlpha,()=>s,N=>{d=N;}),!s&&(e.setProgress(0),t.onComplete?.(),m())));})(),{midpoint:c,done:p,cancel:i(()=>{s=true,cancelAnimationFrame(d),u(),m();},"cancel")}}i(as,"playSweep");function Su(e,t,o,n,r,a,l){return new Promise(s=>{let d=performance.now(),u=i(()=>{if(a()){s();return}let m=Math.min(1,(performance.now()-d)/e);r(t+(o-t)*n(m)),m<1?l(requestAnimationFrame(u)):s();},"tick");l(requestAnimationFrame(u));})}i(Su,"runRamp");var Ru=createContext({}),hn=i((...e)=>[...new Set(e.filter(Boolean).flatMap(t=>t.split(/\s+/)))].join(" ")||void 0,"classes"),gt=i(e=>Object.fromEntries(Object.entries(e??{}).filter(([,t])=>t!==void 0)),"defined");function ss(e,t){return Object.fromEntries([...new Set([...Object.keys(e??{}),...Object.keys(t??{})])].map(o=>[o,{...e?.[o],...gt(t?.[o])}]))}i(ss,"mergeStyles");function ls(e,t){return Object.fromEntries([...new Set([...Object.keys(e??{}),...Object.keys(t??{})])].map(o=>[o,hn(e?.[o],t?.[o])]))}i(ls,"mergeClasses");var ds=["variant","tone","emphasis","effect","size","lightEdge","glassColor","glassOpacity","motion","activeBorderColor"];function _o(e,t){let o=Object.fromEntries(ds.filter(n=>t?.[n]!==void 0&&!(n==="variant"&&t?.variant==="switch")).map(n=>[n,t[n]]));return {...e,...o,className:hn(e?.className,t?.className),style:{...e?.style,...gt(t?.style)},classNames:ls(e?.classNames,t?.classNames),styles:ss(e?.styles,t?.styles)}}i(_o,"mergeButtonAppearance");function Pu(e,t){return Object.fromEntries([...new Set([...Object.keys(e??{}),...Object.keys(t??{})])].map(o=>[o,_o(e?.[o],t?.[o])]))}i(Pu,"mergeButtons");function cs(e,t){let o=useContext(Ru),n=o[e],r=t,a=ls(n?.classNames,r.classNames),l=ss(n?.styles,r.styles),{classNames:s,styles:d,buttonProps:u,...m}=r,c={...n?.defaultProps,...gt(m),className:hn(n?.defaultProps?.className,a.root,r.className),style:{...n?.defaultProps?.style,...l.root,...gt(r.style)}},p=i((g,f,x,y)=>({className:hn(f,a[g]),style:x||l[g]||y?{...x,...gt(n?.styles?.[g]),...gt(y),...gt(r.styles?.[g])}:void 0}),"slot"),h=i((g,f,x)=>{let y=p(g,f,x);return {...y,style:{...y.style,...gt(r.styles?.root),...gt(r.styles?.[g]),...gt(r.style)}}},"rootSlot"),v=i((g,f,x,y,$,N)=>{let T=o.Button?.defaultProps,S=Object.fromEntries(ds.filter(I=>T?.[I]!==void 0&&!(I==="variant"&&T[I]==="switch")).map(I=>[I,T[I]])),A=_o({variant:T?.variant==="switch"?"solid":void 0,...f},S);A=_o(A,n?.buttonProps?.[g]),N&&(A=_o(A,n?.buttonProps?.[N])),A=_o(A,r.buttonProps?.[g]),N&&(A=_o(A,r.buttonProps?.[N]));let O=p(g,x,y,$),L=S.variant!==void 0||n?.buttonProps?.[g]?.variant!==void 0||r.buttonProps?.[g]?.variant!==void 0||!!(N&&(n?.buttonProps?.[N]?.variant!==void 0||r.buttonProps?.[N]?.variant!==void 0));return {...A,"data-button-appearance":L||void 0,className:hn(O.className,A.className),style:{...O.style,...gt(A.style)}}},"buttonSlot");return {props:c,slot:p,rootSlot:h,buttonSlot:v,rootButtonSlot:i((...g)=>{let f=v(...g);return {...f,style:{...f.style,...gt(r.styles?.root),...gt(r.styles?.[g[0]]),...gt(r.style)}}},"rootButtonSlot"),forwardStyles:{classNames:a,styles:l,buttonProps:Pu(n?.buttonProps,r.buttonProps)}}}i(cs,"useUIComponent");var ft=i((...e)=>e.filter(Boolean).join(" "),"cx");function Bt(e,t,o,n){let r=e!==void 0,a=useRef(r),l=useRef(false);process.env.NODE_ENV!=="production"&&!l.current&&(e!==void 0&&t!==void 0||a.current!==r)&&(console.error("monkeys-design UI: choose controlled or uncontrolled state; do not supply both value and defaultValue or switch modes."),l.current=true);let[s,d]=useState(t??o),u=r?e:s;return [u,i(c=>{r||d(c),c!==u&&n?.(c);},"update")]}i(Bt,"useControllable");function Ho(e,t){let o=useRef(t);o.current=t,useEffect(()=>{let n=e.current,r=n&&("form"in n?n.form:n.closest("form"));if(!r)return;let a=true,l=i(s=>queueMicrotask(()=>{a&&!s.defaultPrevented&&o.current();}),"listener");return r.addEventListener("reset",l),()=>{a=false,r.removeEventListener("reset",l);}});}i(Ho,"useFormReset");var Bu="com.infmonkeys.css";function bi(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}i(bi,"isRecord");function Au(e){let t=e?.[Bu];return bi(t)?t:void 0}i(Au,"readCssExtension");function ot(e){return Number.isInteger(e)?String(e):String(Number(e.toFixed(6)))}i(ot,"formatNumber");function uo(e){return `${ot(e.value)}${e.unit}`}i(uo,"formatDimension");function hi(e){return `${ot(e.value)}${e.unit}`}i(hi,"formatDuration");function To(e){return e==="none"?e:ot(e)}i(To,"formatColorComponent");function Eu(e){return [Number.parseInt(e.slice(1,3),16)/255,Number.parseInt(e.slice(3,5),16)/255,Number.parseInt(e.slice(5,7),16)/255]}i(Eu,"hexToSrgb");function Lu(e){if(e.colorSpace==="srgb"&&e.components.every(t=>typeof t=="number"))return e.components;if(e.hex)return Eu(e.hex);throw new TypeError(`Web semantic colors in ${e.colorSpace} require a six-digit hex fallback for hsl(var(--token)) consumers.`)}i(Lu,"colorSrgbComponents");function Du([e,t,o]){let n=Math.max(e,t,o),r=Math.min(e,t,o),a=(n+r)/2;if(n===r)return [0,0,a*100];let l=n-r,s=a>.5?l/(2-n-r):l/(n+r),d;return n===e?d=(t-o)/l+(t<o?6:0):n===t?d=(o-e)/l+2:d=(e-t)/l+4,[d/6*360,s*100,a*100]}i(Du,"srgbToHsl");function zu(e){if(e.colorSpace==="hsl"&&e.components.every(r=>typeof r=="number")){let[r,a,l]=e.components;return `${ot(r)} ${ot(a)}% ${ot(l)}%`}let[t,o,n]=Du(Lu(e));return `${ot(t)} ${ot(o)}% ${ot(n)}%`}i(zu,"formatHslTriplet");function Kn(e){let t=e.alpha??1;if(e.hex&&t===1)return e.hex;let o=e.components.map(To).join(" "),n=t===1?"":` / ${ot(t)}`;switch(e.colorSpace){case "srgb":return `rgb(${e.components.map(a=>a==="none"?"none":ot(a*255)).join(" ")}${n})`;case "hsl":return `hsl(${To(e.components[0])} ${To(e.components[1])}% ${To(e.components[2])}%${n})`;case "hwb":return `hwb(${To(e.components[0])} ${To(e.components[1])}% ${To(e.components[2])}%${n})`;case "lab":case "lch":case "oklab":case "oklch":return `${e.colorSpace}(${o}${n})`;default:return `color(${e.colorSpace} ${o}${n})`}}i(Kn,"formatColor");function us(e){let t=Array.isArray(e)?e:[e],o=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);return t.map(n=>o.has(n)||/^[a-zA-Z][\w-]*$/.test(n)?n:`"${n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`).join(", ")}i(us,"formatFontFamily");function Uu(e){return (Array.isArray(e)?e:[e]).map(o=>{if(!bi(o))throw new TypeError("DTCG shadow values must be objects.");return [uo(o.offsetX),uo(o.offsetY),uo(o.blur),uo(o.spread),Kn(o.color),o.inset===true?"inset":""].filter(Boolean).join(" ")}).join(", ")}i(Uu,"formatShadow");function Fu(e,t){if(!Array.isArray(e))throw new TypeError("DTCG gradient values must be arrays.");let o=e.map(r=>{if(!bi(r))throw new TypeError("DTCG gradient stops must be objects.");return `${Kn(r.color)} ${ot(Number(r.position)*100)}%`}).join(", "),n=Au(t)?.gradient;return n?.kind==="radial"?`radial-gradient(${o})`:`linear-gradient(${ot(n?.angle??90)}deg, ${o})`}i(Fu,"formatGradient");function ps(e){switch(e.type){case "color":return Kn(e.value);case "dimension":return uo(e.value);case "fontFamily":return us(e.value);case "fontWeight":case "number":return String(e.value);case "duration":return hi(e.value);case "cubicBezier":return `cubic-bezier(${e.value.map(ot).join(", ")})`;case "strokeStyle":return typeof e.value=="string"?e.value:e.value.dashArray.map(uo).join(" ");case "border":{let t=e.value,o={...e,type:"strokeStyle",value:t.style};return `${uo(t.width)} ${ps(o)} ${Kn(t.color)}`}case "transition":{let t=e.value;return `${hi(t.duration)} cubic-bezier(${t.timingFunction.map(ot).join(", ")}) ${hi(t.delay)}`}case "shadow":return Uu(e.value);case "gradient":return Fu(e.value,e.extensions);case "typography":{let t=e.value;return `${t.fontWeight} ${uo(t.fontSize)}/${ot(t.lineHeight)} ${us(t.fontFamily)}`}}}i(ps,"formatTokenValue");function ms(e,t){let o=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase();return `--${t}-${o}`}i(ms,"toCssVariableName");function Ou(e){if(!/^[a-zA-Z][a-zA-Z0-9-]*$/.test(e))throw new TypeError("Theme token variablePrefix must start with a letter and contain only letters, numbers, or hyphens.")}i(Ou,"assertCssVariablePrefix");function gs(e,t,o){let n=`${t}.${o}`;return e.has(n)?n:e.has(t)?t:void 0}i(gs,"selectModePath");var _u={"semantic.color.background":"--background","semantic.color.foreground":"--foreground","semantic.color.card":"--card","semantic.color.card-foreground":"--card-foreground","semantic.color.popover":"--popover","semantic.color.popover-foreground":"--popover-foreground","semantic.color.primary":"--primary","semantic.color.primary-foreground":"--primary-foreground","semantic.color.secondary":"--secondary","semantic.color.secondary-foreground":"--secondary-foreground","semantic.color.muted":"--muted","semantic.color.muted-foreground":"--muted-foreground","semantic.color.accent":"--accent","semantic.color.accent-foreground":"--accent-foreground","semantic.color.destructive":"--destructive","semantic.color.destructive-foreground":"--destructive-foreground","semantic.color.success":"--success","semantic.color.success-foreground":"--success-foreground","semantic.color.warning":"--warning","semantic.color.warning-foreground":"--warning-foreground","semantic.color.border":"--border","semantic.color.input":"--input","semantic.color.ring":"--ring","semantic.color.media-surface":"--media-surface","semantic.color.media-foreground":"--media-foreground","semantic.color.media-overlay":"--media-overlay","semantic.color.radar-canvas":"--radar-canvas","semantic.color.radar-panel":"--radar-panel","semantic.color.radar-border":"--radar-border","semantic.color.radar-shell-border":"--radar-shell-border","semantic.color.radar-grid":"--radar-grid","semantic.color.radar-axis":"--radar-axis","semantic.color.radar-series-one":"--radar-series-one","semantic.color.radar-series-two":"--radar-series-two","semantic.color.radar-series-three":"--radar-series-three","semantic.color.radar-series-four":"--radar-series-four"},Hu=Object.freeze({...Object.fromEntries(["grid","axis","fillStart","fillEnd","glow","label","value"].map(e=>[`component.chart.radar.${e}`,{variableName:ms(`chart.radar.${e}`,"monkeys"),axis:"colorMode",expectedType:"color",format:"css"}])),...Object.fromEntries(Object.entries(_u).map(([e,t])=>[e,{variableName:t,axis:"colorMode",expectedType:"color",format:"hsl"}])),"semantic.color.neocard":{variableName:"--neocard",axis:"colorMode",expectedType:"color",format:"css"},"semantic.radius.base":{variableName:"--radius",axis:"colorMode",expectedType:"dimension",format:"css"},"semantic.spacing.global":{variableName:"--global-spacing",axis:"density",expectedType:"dimension",format:"css"},"semantic.gradient.brand":{variableName:"--monkeys-gradient",axis:"colorMode",expectedType:"gradient",format:"css"},"semantic.font.body":{variableName:"--font-sans",axis:"colorMode",expectedType:"fontFamily",format:"css"}});function Xn(e,t){let o=gs(new Set(Object.keys(e.cssValues)),t,e.colorMode);return o?e.cssValues[o]:void 0}i(Xn,"getThemeTokenCssValue");function Vo(e,t={}){let o=resolveThemeTokens(e),n=o.document,r=t.colorMode??"light",a=t.density??"default",l=t.variablePrefix??"monkeys";Ou(l);let s={},d={},u={},m=new Map;for(let[h,v]of o.tokens){s[h]=v.value;let w=ps(v);d[h]=w;let g=ms(h,l),f=m.get(g);if(f)throw new TypeError(`Theme token paths ${f} and ${h} both compile to ${g}. Rename one token.`);m.set(g,h),u[g]=w;}let c=new Set(o.tokens.keys());for(let[h,v]of Object.entries(Hu)){let w=v.axis==="density"?a:r,g=gs(c,h,w);if(!g)continue;let f=o.tokens.get(g);if(!f||f.type!==v.expectedType)throw new TypeError(`${g} must be a ${v.expectedType} token to drive ${v.variableName}.`);u[v.variableName]=v.format==="hsl"?zu(f.value):d[g];}let p=Object.entries(u).sort(([h],[v])=>h.localeCompare(v)).map(([h,v])=>`${h}:${v};`).join("");return {contract:n,colorMode:r,density:a,values:Object.freeze(s),cssValues:Object.freeze(d),cssVariables:Object.freeze(u),cssText:p}}i(Vo,"compileThemeTokens");var Yn=["background","glowColor","borderColor","borderWidth","borderStyle","radius","shadow","padding","gap"],Vu={background:"hsl(var(--card, 0 0% 100%))",glowColor:"var(--monkeys-bento-glow-default)",borderColor:"hsl(var(--border, 214.3 31.8% 91.4%))",borderWidth:"1px",borderStyle:"solid",radius:"var(--radius, 0.75rem)",shadow:"none",padding:"var(--global-spacing, 0.75rem)",gap:"var(--global-spacing, 0.75rem)"},vi=new WeakMap;function fs(e,t){if(!Number.isSafeInteger(t)||t<1)throw new RangeError("Bento level must be a positive safe integer.");let o=e&&vi.get(e)?.get(t);if(o)return o;let n={...Vu},r=Object.fromEntries(Yn.map(l=>[l,"builtin"]));for(let l of Yn){let s=l==="padding"||l==="gap"?e?.density:e?.colorMode,d=l==="glowColor"?"component.bento":"semantic.bento",u=[`${d}.levels.level${t}.${l}`,`${d}.default.${l}`];for(let m of u){let c=s&&e?.cssValues[`${m}.${s}`]!==void 0?`${m}.${s}`:m,p=e?.cssValues[c];if(p!==void 0){n[l]=p,r[l]=c;break}}}let a=Object.freeze({values:Object.freeze(n),sources:Object.freeze(r)});if(e){let l=vi.get(e)??new Map;l.set(t,a),vi.set(e,l);}return a}i(fs,"resolveBentoTokens");var hs={preview:"Preview",edit:"Edit",visual:"Visual editor",source:"Source editor",exit:"Exit editing",save:"Save",saved:"Saved",dirty:"Unsaved changes",saving:"Saving\u2026",error:"Save failed. Your changes are retained.",offline:"Offline. Your changes are retained.",conflict:"A newer version is available. Compare it with your draft before saving.",latest:"View latest version",useLatest:"Use latest version",keepDraft:"Keep my draft and merge",discard:"Discard unsaved changes",closeWarning:"There are unsaved changes. Save them or discard them before leaving.",history:"Version history",restore:"Restore this version",original:"Original file",download:"Download",downloadDraft:"Download draft",loading:"Loading document\u2026",unavailable:"This document cannot be edited.",retry:"Try again",sourceOnly:"This document contains syntax supported in source mode only.",tooLarge:"This document exceeds the editing limit.",bold:"Bold",italic:"Italic",strike:"Strikethrough",heading:"Heading",paragraph:"Paragraph",quote:"Quote",bullet:"Bulleted list",ordered:"Numbered list",task:"Task list",link:"Link",image:"Image",table:"Table",code:"Code block",undo:"Undo",redo:"Redo",addRow:"Add row",addColumn:"Add column",deleteRow:"Delete row",deleteColumn:"Delete column",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",url:"URL or managed file reference",alt:"Alternative text",insert:"Insert",cancel:"Cancel",upload:"Upload image",imageFailed:"Image could not be loaded.",chooseImage:"Select image",recovery:"A recovered draft is available.",recover:"Recover draft",switchToLight:"Switch Markdown area to light mode",switchToDark:"Switch Markdown area to dark mode",toolbar:"Document formatting",content:"Document content",emptyHistory:"No saved versions yet."},bs={preview:"\u9884\u89C8",edit:"\u7F16\u8F91",visual:"\u53EF\u89C6\u7F16\u8F91",source:"\u6E90\u7801\u7F16\u8F91",exit:"\u9000\u51FA\u7F16\u8F91",save:"\u4FDD\u5B58",saved:"\u5DF2\u4FDD\u5B58",dirty:"\u672A\u4FDD\u5B58",saving:"\u4FDD\u5B58\u4E2D\u2026",error:"\u4FDD\u5B58\u5931\u8D25\uFF0C\u4FEE\u6539\u5DF2\u4FDD\u7559\u3002",offline:"\u5F53\u524D\u79BB\u7EBF\uFF0C\u4FEE\u6539\u5DF2\u4FDD\u7559\u3002",conflict:"\u6587\u6863\u5DF2\u6709\u66F4\u65B0\u7248\u672C\uFF0C\u8BF7\u6BD4\u8F83\u5E76\u5408\u5E76\u540E\u4FDD\u5B58\u3002",latest:"\u67E5\u770B\u6700\u65B0\u7248\u672C",useLatest:"\u4F7F\u7528\u6700\u65B0\u7248\u672C",keepDraft:"\u4FDD\u7559\u8349\u7A3F\u5E76\u5408\u5E76",discard:"\u64A4\u9500\u672A\u4FDD\u5B58\u6539\u52A8",closeWarning:"\u8FD8\u6709\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\uFF0C\u8BF7\u4FDD\u5B58\u6216\u653E\u5F03\u540E\u518D\u79BB\u5F00\u3002",history:"\u7248\u672C\u5386\u53F2",restore:"\u6062\u590D\u6B64\u7248\u672C",original:"\u539F\u59CB\u6587\u4EF6",download:"\u4E0B\u8F7D",downloadDraft:"\u4E0B\u8F7D\u8349\u7A3F",loading:"\u6B63\u5728\u52A0\u8F7D\u6587\u6863\u2026",unavailable:"\u6B64\u6587\u6863\u6682\u4E0D\u53EF\u7F16\u8F91\u3002",retry:"\u91CD\u8BD5",sourceOnly:"\u6B64\u6587\u6863\u5305\u542B\u4EC5\u652F\u6301\u6E90\u7801\u7F16\u8F91\u7684\u8BED\u6CD5\u3002",tooLarge:"\u6587\u6863\u8D85\u8FC7\u53EF\u7F16\u8F91\u5927\u5C0F\u9650\u5236\u3002",bold:"\u52A0\u7C97",italic:"\u659C\u4F53",strike:"\u5220\u9664\u7EBF",heading:"\u6807\u9898",paragraph:"\u6B63\u6587",quote:"\u5F15\u7528",bullet:"\u65E0\u5E8F\u5217\u8868",ordered:"\u6709\u5E8F\u5217\u8868",task:"\u4EFB\u52A1\u5217\u8868",link:"\u94FE\u63A5",image:"\u56FE\u7247",table:"\u8868\u683C",code:"\u4EE3\u7801\u5757",undo:"\u64A4\u9500",redo:"\u91CD\u505A",addRow:"\u6DFB\u52A0\u884C",addColumn:"\u6DFB\u52A0\u5217",deleteRow:"\u5220\u9664\u884C",deleteColumn:"\u5220\u9664\u5217",alignLeft:"\u5DE6\u5BF9\u9F50",alignCenter:"\u5C45\u4E2D",alignRight:"\u53F3\u5BF9\u9F50",url:"\u7F51\u5740\u6216\u53D7\u7BA1\u6587\u4EF6\u5F15\u7528",alt:"\u66FF\u4EE3\u6587\u672C",insert:"\u63D2\u5165",cancel:"\u53D6\u6D88",upload:"\u4E0A\u4F20\u56FE\u7247",imageFailed:"\u56FE\u7247\u52A0\u8F7D\u5931\u8D25\u3002",chooseImage:"\u9009\u62E9\u56FE\u7247",recovery:"\u53D1\u73B0\u53EF\u6062\u590D\u7684\u8349\u7A3F\u3002",recover:"\u6062\u590D\u8349\u7A3F",switchToLight:"\u5207\u6362 Markdown \u533A\u57DF\u4E3A\u6D45\u8272",switchToDark:"\u5207\u6362 Markdown \u533A\u57DF\u4E3A\u6DF1\u8272",toolbar:"\u6587\u6863\u683C\u5F0F",content:"\u6587\u6863\u6B63\u6587",emptyHistory:"\u6682\u65E0\u5DF2\u4FDD\u5B58\u7248\u672C\u3002"};var Ro={locale:"en-US",messages:{markdownDocument:hs,canvas:{replaceImage:"Replace image",cropImage:"Crop image",downloadImage:"Download image",useImageReference:"Use as reference",saturationValue:"Saturation and brightness",hue:"Hue",dots:"Dot grid",group:"Group",hexPlaceholder:"#F5F5F5",controls:"Canvas controls",background:"Canvas background",layers:"Layers",minimap:"Minimap",zoom:"Zoom",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Show all elements",zoomTo:i(({percent:e})=>`Zoom to ${e}%`,"zoomTo"),color:i(({value:e})=>`Use ${e}`,"color"),hex:"Hex color",close:"Close",empty:"No layers",element:i(({type:e})=>e,"element")},pagination:{navigation:"Pagination",first:"First",previous:"Previous",next:"Next",last:"Last",page:i(({page:e,pageCount:t})=>`Page ${e} of ${t}`,"page"),currentPage:i(({page:e,pageCount:t})=>`Page ${e} of ${t}, current page`,"currentPage"),emptyResults:"0 results",range:i(({start:e,end:t,total:o})=>`${e}-${t} of ${o}`,"range"),selected:i(({count:e})=>`${e} selected`,"selected"),pageSize:"Items per page",loadBatchSize:"Items per load",perLoad:"Items per load",jumpToPage:"Jump to page",pages:"pages",clickToJump:"Click to jump to a page"},dialog:{close:"Close dialog"},dropdownMenu:{actions:"Actions"},loading:{spinner:"Loading"},layout:{resizePanels:"Resize panels",expandPanel:"Expand",collapsePanel:"Collapse",movePanel:"Move",moveBefore:"Move earlier",moveAfter:"Move later"},steps:{label:"Progress",current:"Current",completed:"Completed",error:"Error",disabled:"Disabled"},numberInput:{increment:"Increase value",decrement:"Decrease value"},passwordInput:{showPassword:"Show password",hidePassword:"Hide password"},multiSelect:{placeholder:"Select options",empty:"No options",removeOption:i(({value:e})=>`Remove ${e}`,"removeOption")},table:{dragColumn:i(({columnId:e})=>`Drag column ${e}`,"dragColumn"),resizeColumn:i(({columnId:e})=>`Resize column ${e}`,"resizeColumn"),sortColumn:i(({columnId:e})=>e?`Sort column ${e}`:"Sort column","sortColumn"),loadingRow:"Loading table row"},toolbar:{theme:{label:"Appearance",toggle:"Toggle theme",auto:"Auto",light:"Light",dark:"Dark"},language:{label:"Language",switch:"Switch language"}},toast:{errorTitle:"Error",warningTitle:"Warning",defaultErrorDescription:"Something went wrong.",defaultWarningDescription:"Please check and try again."},dataExplorer:{viewTree:{actions:"More actions",expand:"Expand",collapse:"Collapse",loading:"Loading...",empty:"No views",error:"Unable to load views"}},workbench:{relationshipGraph:{zoomOut:"Zoom out",zoomIn:"Zoom in",zoomToFit:"Fit graph",minimap:"Graph overview"},collection:{label:"Collection",loading:"Loading items",empty:"No items",loadError:"Unable to load items",refreshError:"Unable to refresh items",retry:"Retry",loadingMore:"Loading more items",permission:"You do not have permission to view this content",offline:"You appear to be offline",requestAccess:"Request access"},interactiveTable:{columnActions:"Column actions",freezeColumn:"Freeze to left",freezeEndColumn:"Freeze to right",unfreezeColumn:"Unfreeze from left",unfreezeEndColumn:"Unfreeze from right",unfreezeAllColumns:"Unfreeze all columns",resetColumnWidth:"Reset column width",frozenColumnTitle:"Frozen column"}},agentWorkbench:{label:"Session activity",reasoning:"Reasoning",plan:"Plan",taskNoDetail:"No additional details",modes:{chat:"Chat",work:"Work"},composer:{send:"Send message",stop:"Stop generating",queue:"Queue message",attach:"Add photos or files",voice:"Start voice input",webSearch:"Web search",chatMode:"Chat mode",model:"Model",reasoning:"Reasoning effort",permissions:"Permissions",removeAttachment:"Remove attachment",editQueued:"Edit queued message",deleteQueued:"Delete queued message",moveUp:"Move message up",moveDown:"Move message down",queued:"Queued messages",uploading:"Uploading",uploadFailed:"Upload failed",retryAttachment:"Retry attachment upload",noModels:"No models available",message:"Message",attachmentOnly:"Attachment",reasoningOptions:{low:"Low",medium:"Medium",high:"High",xhigh:"Extra high"},permissionOptions:{"approval-required":"Approval required","auto-approve":"Auto approve","full-access":"Full access"}},quickStart:{label:"Quick start",back:"Back",addFile:"Add file"},tool:{input:"Input",output:"Output",status:{pending:"Pending",running:"Running",completed:"Completed",failed:"Error",denied:"Denied"}},approval:{approve:"Approve",reject:"Reject",approved:"Approved",rejected:"Rejected"},artifact:{pending:"Preparing",ready:"Ready",failed:"Failed",open:i(({name:e})=>`Open ${e}`,"open")},run:{stopping:"Stopping...",stoppedAfter:i(({duration:e})=>`You stopped after ${e}`,"stoppedAfter")},process:{running:"Working",queued:"Queued",waitingApproval:"Waiting for approval",failed:"Failed",stopped:"Stopped",processed:"Processed",processedFor:i(({duration:e})=>`Worked for ${e}`,"processedFor"),completedCount:i(({completed:e,total:t})=>`${e}/${t} completed`,"completedCount")},artifactWorkspace:{outputs:"Outputs",sources:"Sources",viewAll:"View all",toggleSummary:"Toggle files",tabs:"Open files",closeTab:i(({name:e})=>`Close ${e}`,"closeTab"),closeWorkspace:"Close workspace",close:"Close",closeOthers:"Close other tabs",closeRight:"Close tabs to the right",closeAll:"Close all tabs",kinds:{data:"Data view",audio:"Audio",canvas:"Canvas",file:"File",html:"HTML",image:"Image",markdown:"Markdown",pdf:"PDF",presentation:"Presentation",video:"Video",web:"Web page"},collapse:"Collapse",maximize:"Full screen",restore:"Exit full screen",download:i(({name:e})=>`Download ${e}`,"download"),openExternal:i(({name:e})=>`Open ${e} in a new window`,"openExternal"),loading:"Loading preview...",failed:"Preview unavailable",retry:"Try again"},usage:{label:"Context usage",context:i(({used:e,total:t})=>`${e} / ${t} tokens`,"context")},navigation:{search:"Search agents and sessions",searchSessions:"Search sessions",searchShortcut:"Focus search",clearSearch:"Clear search",tabsLabel:"Agent workbench navigation",agents:"Agents",sessions:"Sessions",newAgent:"New Agent",newSession:"New Session",capabilities:"Capabilities & Extensions",settings:"Agent Settings",allAgents:"All Agents",recentSessions:"Recent Sessions",chat:"Chat",work:"Work",chats:"Chats",builtIn:"Built-in",noDescription:"No description",loading:"Loading...",emptyAgents:"No agents yet",emptySessions:"No sessions yet",noResults:"No matching results",retry:"Retry",pin:"Pin",unpin:"Unpin",rename:"Rename",delete:"Delete",actions:"Actions",save:"Save",cancel:"Cancel",running:"Running",completed:"Completed",failed:"Failed",contextUsage:i(({percent:e})=>`${e}% context used`,"contextUsage")},details:{title:"Task details",description:"Summary and workspace activity",duration:"Duration",updated:"Updated",model:"Model",mode:"Mode",permissions:"Permissions",tokenUsage:"Token usage",summary:"Summary",summaryEmpty:"No summary is available yet.",summaryFailed:"The summary could not be generated.",highlights:"Highlights",pendingItems:"Pending items",tabs:{label:"Task detail views",summary:"Summary",workspace:"Workspace"},status:{queued:"Queued",running:"Running",waiting_approval:"Waiting for approval",stopping:"Stopping",stopped:"Stopped",completed:"Completed",failed:"Failed"},state:{loading:{title:"Loading task details",description:"Restoring the latest session activity."},empty:{title:"No task selected",description:"Select a task to inspect its details."},error:{title:"Unable to load task details",description:"Try again after the session is available."}},actions:{close:"Close task details",copySummary:"Copy summary",retry:"Retry",retrySummary:"Retry summary",resume:"Resume",continueInNewTask:"Continue in new task",editAndRerun:"Edit and rerun",export:"Export"},workspace:{diffs:"Code changes",files:"Files",terminals:"Terminals",tests:"Tests",artifacts:"Artifacts",exitCode:i(({code:e})=>`Exit code ${e}`,"exitCode"),diffStatus:{added:"Added",modified:"Modified",deleted:"Deleted",renamed:"Renamed"},fileOperation:{upsert:"Updated",delete:"Deleted"}}}}}};var bn={locale:"zh-CN",messages:{markdownDocument:bs,canvas:{replaceImage:"\u66FF\u6362\u56FE\u7247",cropImage:"\u88C1\u526A\u56FE\u7247",downloadImage:"\u4E0B\u8F7D\u56FE\u7247",useImageReference:"\u7528\u4F5C\u53C2\u8003\u56FE",saturationValue:"\u9971\u548C\u5EA6\u4E0E\u660E\u5EA6",hue:"\u8272\u76F8",dots:"\u80CC\u666F\u70B9\u9635",group:"\u5206\u7EC4",hexPlaceholder:"#F5F5F5",controls:"\u753B\u5E03\u63A7\u5236",background:"\u753B\u5E03\u80CC\u666F\u8272",layers:"\u56FE\u5C42",minimap:"\u5C0F\u5730\u56FE",zoom:"\u7F29\u653E",zoomIn:"\u653E\u5927",zoomOut:"\u7F29\u5C0F",fit:"\u663E\u793A\u753B\u5E03\u6240\u6709\u5143\u7D20",zoomTo:i(({percent:e})=>`\u7F29\u653E\u81F3 ${e}%`,"zoomTo"),color:i(({value:e})=>`\u4F7F\u7528 ${e}`,"color"),hex:"\u5341\u516D\u8FDB\u5236\u989C\u8272",close:"\u5173\u95ED",empty:"\u6682\u65E0\u56FE\u5C42",element:i(({type:e})=>({image:"\u56FE\u7247",text:"\u6587\u5B57",rectangle:"\u77E9\u5F62",ellipse:"\u692D\u5706",diamond:"\u83F1\u5F62",arrow:"\u7BAD\u5934",line:"\u7EBF\u6761",freedraw:"\u81EA\u7531\u7ED8\u5236",frame:"\u753B\u6846",embeddable:"\u5D4C\u5165\u5185\u5BB9",iframe:"\u7F51\u9875",magicframe:"\u753B\u6846"})[e]||"\u5143\u7D20","element")},pagination:{navigation:"\u5206\u9875\u5BFC\u822A",first:"\u9996\u9875",previous:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",last:"\u672B\u9875",page:i(({page:e,pageCount:t})=>`\u7B2C ${e} \u9875\uFF0C\u5171 ${t} \u9875`,"page"),currentPage:i(({page:e,pageCount:t})=>`\u7B2C ${e} \u9875\uFF0C\u5171 ${t} \u9875\uFF0C\u5F53\u524D\u9875`,"currentPage"),emptyResults:"\u5171 0 \u6761",range:i(({start:e,end:t,total:o})=>`\u7B2C ${e}-${t} \u6761\uFF0C\u5171 ${o} \u6761`,"range"),selected:i(({count:e})=>`\u5DF2\u9009\u62E9 ${e} \u9879`,"selected"),pageSize:"\u6BCF\u9875\u663E\u793A\u6570\u91CF",loadBatchSize:"\u6BCF\u6B21\u52A0\u8F7D\u6570\u91CF",perLoad:"\u6BCF\u6B21\u52A0\u8F7D",jumpToPage:"\u8DF3\u8F6C\u5230\u9875\u7801",pages:"\u9875",clickToJump:"\u70B9\u51FB\u8DF3\u8F6C\u9875\u7801"},dialog:{close:"\u5173\u95ED\u5BF9\u8BDD\u6846"},dropdownMenu:{actions:"\u64CD\u4F5C"},loading:{spinner:"\u6B63\u5728\u52A0\u8F7D"},layout:{resizePanels:"\u8C03\u6574\u9762\u677F\u5927\u5C0F",expandPanel:"\u5C55\u5F00",collapsePanel:"\u6536\u8D77",movePanel:"\u79FB\u52A8",moveBefore:"\u5411\u524D\u79FB\u52A8",moveAfter:"\u5411\u540E\u79FB\u52A8"},steps:{label:"\u8FDB\u5EA6",current:"\u5F53\u524D\u6B65\u9AA4",completed:"\u5DF2\u5B8C\u6210",error:"\u9519\u8BEF",disabled:"\u5DF2\u7981\u7528"},numberInput:{increment:"\u589E\u52A0\u6570\u503C",decrement:"\u51CF\u5C11\u6570\u503C"},passwordInput:{showPassword:"\u663E\u793A\u5BC6\u7801",hidePassword:"\u9690\u85CF\u5BC6\u7801"},multiSelect:{placeholder:"\u8BF7\u9009\u62E9",empty:"\u6682\u65E0\u9009\u9879",removeOption:i(({value:e})=>`\u79FB\u9664 ${e}`,"removeOption")},table:{dragColumn:i(({columnId:e})=>`\u62D6\u52A8\u5217 ${e}`,"dragColumn"),resizeColumn:i(({columnId:e})=>`\u8C03\u6574\u5217\u5BBD ${e}`,"resizeColumn"),sortColumn:i(({columnId:e})=>e?`\u6392\u5E8F\u5217 ${e}`:"\u6392\u5E8F\u5217","sortColumn"),loadingRow:"\u6B63\u5728\u52A0\u8F7D\u8868\u683C\u884C"},toolbar:{theme:{label:"\u5916\u89C2",toggle:"\u5207\u6362\u4E3B\u9898",auto:"\u8DDF\u968F\u7CFB\u7EDF",light:"\u6D45\u8272\u6A21\u5F0F",dark:"\u6DF1\u8272\u6A21\u5F0F"},language:{label:"\u8BED\u8A00",switch:"\u5207\u6362\u8BED\u8A00"}},toast:{errorTitle:"\u9519\u8BEF",warningTitle:"\u63D0\u793A",defaultErrorDescription:"\u53D1\u751F\u9519\u8BEF\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002",defaultWarningDescription:"\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002"},dataExplorer:{viewTree:{actions:"\u66F4\u591A\u64CD\u4F5C",expand:"\u5C55\u5F00",collapse:"\u6536\u8D77",loading:"\u6B63\u5728\u52A0\u8F7D...",empty:"\u6682\u65E0\u89C6\u56FE",error:"\u65E0\u6CD5\u52A0\u8F7D\u89C6\u56FE"}},workbench:{relationshipGraph:{zoomOut:"\u7F29\u5C0F",zoomIn:"\u653E\u5927",zoomToFit:"\u9002\u5E94\u753B\u5E03",minimap:"\u56FE\u8C31\u6982\u89C8"},collection:{label:"\u5185\u5BB9\u96C6\u5408",loading:"\u6B63\u5728\u52A0\u8F7D\u5185\u5BB9",empty:"\u6682\u65E0\u5185\u5BB9",loadError:"\u65E0\u6CD5\u52A0\u8F7D\u5185\u5BB9",refreshError:"\u65E0\u6CD5\u5237\u65B0\u5185\u5BB9",retry:"\u91CD\u8BD5",loadingMore:"\u6B63\u5728\u52A0\u8F7D\u66F4\u591A\u5185\u5BB9",permission:"\u4F60\u6CA1\u6709\u6743\u9650\u67E5\u770B\u6B64\u5185\u5BB9",offline:"\u7F51\u7EDC\u8FDE\u63A5\u5DF2\u65AD\u5F00",requestAccess:"\u7533\u8BF7\u6743\u9650"},interactiveTable:{columnActions:"\u5217\u64CD\u4F5C",freezeColumn:"\u56FA\u5B9A\u5230\u5DE6\u4FA7",freezeEndColumn:"\u56FA\u5B9A\u5230\u53F3\u4FA7",unfreezeColumn:"\u53D6\u6D88\u5DE6\u4FA7\u56FA\u5B9A",unfreezeEndColumn:"\u53D6\u6D88\u53F3\u4FA7\u56FA\u5B9A",unfreezeAllColumns:"\u53D6\u6D88\u5168\u90E8\u56FA\u5B9A",resetColumnWidth:"\u91CD\u7F6E\u5217\u5BBD",frozenColumnTitle:"\u5DF2\u56FA\u5B9A\u5217"}},agentWorkbench:{label:"\u4F1A\u8BDD\u6D3B\u52A8",reasoning:"\u601D\u8003\u8FC7\u7A0B",plan:"\u6267\u884C\u8BA1\u5212",taskNoDetail:"\u6682\u65E0\u66F4\u591A\u8BE6\u60C5",modes:{chat:"\u5BF9\u8BDD",work:"\u5DE5\u4F5C"},composer:{send:"\u53D1\u9001\u6D88\u606F",stop:"\u505C\u6B62\u751F\u6210",queue:"\u6392\u961F\u53D1\u9001",attach:"\u6DFB\u52A0\u7167\u7247\u6216\u6587\u4EF6",voice:"\u5F00\u59CB\u8BED\u97F3\u8F93\u5165",webSearch:"\u8054\u7F51\u641C\u7D22",chatMode:"\u5BF9\u8BDD\u6A21\u5F0F",model:"\u6A21\u578B",reasoning:"\u601D\u8003\u5F3A\u5EA6",permissions:"\u6743\u9650",removeAttachment:"\u79FB\u9664\u9644\u4EF6",editQueued:"\u7F16\u8F91\u6392\u961F\u6D88\u606F",deleteQueued:"\u5220\u9664\u6392\u961F\u6D88\u606F",moveUp:"\u4E0A\u79FB\u6D88\u606F",moveDown:"\u4E0B\u79FB\u6D88\u606F",queued:"\u6392\u961F\u6D88\u606F",uploading:"\u4E0A\u4F20\u4E2D",uploadFailed:"\u4E0A\u4F20\u5931\u8D25",retryAttachment:"\u91CD\u8BD5\u9644\u4EF6\u4E0A\u4F20",noModels:"\u6682\u65E0\u53EF\u7528\u6A21\u578B",message:"\u6D88\u606F",attachmentOnly:"\u9644\u4EF6",reasoningOptions:{low:"\u4F4E",medium:"\u4E2D",high:"\u9AD8",xhigh:"\u6700\u9AD8"},permissionOptions:{"approval-required":"\u9700\u8981\u6279\u51C6","auto-approve":"\u81EA\u52A8\u6279\u51C6","full-access":"\u5B8C\u5168\u8BBF\u95EE"}},quickStart:{label:"\u5FEB\u901F\u5F00\u59CB",back:"\u8FD4\u56DE",addFile:"\u6DFB\u52A0\u6587\u4EF6"},tool:{input:"\u8F93\u5165",output:"\u8F93\u51FA",status:{pending:"\u7B49\u5F85\u4E2D",running:"\u8FD0\u884C\u4E2D",completed:"\u5DF2\u5B8C\u6210",failed:"\u9519\u8BEF",denied:"\u5DF2\u62D2\u7EDD"}},approval:{approve:"\u5141\u8BB8",reject:"\u62D2\u7EDD",approved:"\u5DF2\u5141\u8BB8",rejected:"\u5DF2\u62D2\u7EDD"},artifact:{pending:"\u51C6\u5907\u4E2D",ready:"\u5DF2\u5C31\u7EEA",failed:"\u5931\u8D25",open:i(({name:e})=>`\u6253\u5F00 ${e}`,"open")},run:{stopping:"\u6B63\u5728\u505C\u6B62...",stoppedAfter:i(({duration:e})=>`\u4F60\u5728 ${e} \u540E\u505C\u6B62\u4E86\u4EFB\u52A1`,"stoppedAfter")},process:{running:"\u6267\u884C\u8FC7\u7A0B",queued:"\u6392\u961F\u4E2D",waitingApproval:"\u7B49\u5F85\u5BA1\u6279",failed:"\u5931\u8D25",stopped:"\u5DF2\u505C\u6B62",processed:"\u5DF2\u5904\u7406",processedFor:i(({duration:e})=>`\u8017\u65F6 ${e.replace(/(\d+)h/g,"$1\u5C0F\u65F6").replace(/(\d+)m/g,"$1\u5206\u949F").replace(/(\d+)s/g,"$1\u79D2").replace(/\s+/g,"")}`,"processedFor"),completedCount:i(({completed:e,total:t})=>`${e}/${t} \u5DF2\u5B8C\u6210`,"completedCount")},artifactWorkspace:{outputs:"\u8F93\u51FA",sources:"\u6765\u6E90",viewAll:"\u67E5\u770B\u5168\u90E8",toggleSummary:"\u5207\u6362\u6587\u4EF6\u6458\u8981",tabs:"\u5DF2\u6253\u5F00\u6587\u4EF6",closeTab:i(({name:e})=>`\u5173\u95ED ${e}`,"closeTab"),closeWorkspace:"\u5173\u95ED\u5DE5\u4F5C\u533A",close:"\u5173\u95ED",closeOthers:"\u5173\u95ED\u5176\u4ED6\u6807\u7B7E\u9875",closeRight:"\u5173\u95ED\u53F3\u4FA7\u6807\u7B7E\u9875",closeAll:"\u5173\u95ED\u6240\u6709\u6807\u7B7E\u9875",kinds:{data:"\u6570\u636E\u89C6\u56FE",audio:"\u97F3\u9891",canvas:"\u753B\u677F",file:"\u6587\u4EF6",html:"HTML",image:"\u56FE\u7247",markdown:"Markdown",pdf:"PDF",presentation:"\u6F14\u793A\u6587\u7A3F",video:"\u89C6\u9891",web:"\u7F51\u9875"},collapse:"\u6536\u8D77",maximize:"\u5168\u5C4F",restore:"\u9000\u51FA\u5168\u5C4F",download:i(({name:e})=>`\u4E0B\u8F7D ${e}`,"download"),openExternal:i(({name:e})=>`\u5728\u65B0\u7A97\u53E3\u6253\u5F00 ${e}`,"openExternal"),loading:"\u6B63\u5728\u52A0\u8F7D\u9884\u89C8...",failed:"\u9884\u89C8\u4E0D\u53EF\u7528",retry:"\u91CD\u8BD5"},usage:{label:"\u4E0A\u4E0B\u6587\u7528\u91CF",context:i(({used:e,total:t})=>`${e} / ${t} tokens`,"context")},navigation:{search:"\u641C\u7D22\u667A\u80FD\u4F53\u548C\u4F1A\u8BDD",searchSessions:"\u641C\u7D22\u4F1A\u8BDD",searchShortcut:"\u805A\u7126\u641C\u7D22\u6846",clearSearch:"\u6E05\u9664\u641C\u7D22",tabsLabel:"\u667A\u80FD\u4F53\u5DE5\u4F5C\u53F0\u5BFC\u822A",agents:"\u667A\u80FD\u4F53",sessions:"\u4F1A\u8BDD",newAgent:"\u65B0\u5EFA\u667A\u80FD\u4F53",newSession:"\u65B0\u5EFA\u4F1A\u8BDD",capabilities:"\u80FD\u529B\u4E0E\u6269\u5C55",settings:"\u667A\u80FD\u4F53\u8BBE\u7F6E",allAgents:"\u5168\u90E8\u667A\u80FD\u4F53",recentSessions:"\u6700\u8FD1\u4F1A\u8BDD",chat:"\u5BF9\u8BDD",work:"\u5DE5\u4F5C",chats:"\u804A\u5929",builtIn:"\u5185\u7F6E",noDescription:"\u6682\u65E0\u63CF\u8FF0",loading:"\u52A0\u8F7D\u4E2D...",emptyAgents:"\u6682\u65E0\u667A\u80FD\u4F53",emptySessions:"\u6682\u65E0\u4F1A\u8BDD",noResults:"\u6CA1\u6709\u5339\u914D\u7ED3\u679C",retry:"\u91CD\u8BD5",pin:"\u7F6E\u9876",unpin:"\u53D6\u6D88\u7F6E\u9876",rename:"\u91CD\u547D\u540D",delete:"\u5220\u9664",actions:"\u64CD\u4F5C",save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",running:"\u8FD0\u884C\u4E2D",completed:"\u5DF2\u5B8C\u6210",failed:"\u5931\u8D25",contextUsage:i(({percent:e})=>`\u5DF2\u4F7F\u7528 ${e}% \u4E0A\u4E0B\u6587`,"contextUsage")},details:{title:"\u4EFB\u52A1\u8BE6\u60C5",description:"\u6458\u8981\u4E0E\u5DE5\u4F5C\u533A\u6D3B\u52A8",duration:"\u8017\u65F6",updated:"\u66F4\u65B0\u65F6\u95F4",model:"\u6A21\u578B",mode:"\u6A21\u5F0F",permissions:"\u6743\u9650",tokenUsage:"Token \u7528\u91CF",summary:"\u6458\u8981",summaryEmpty:"\u6682\u65F6\u6CA1\u6709\u53EF\u7528\u6458\u8981\u3002",summaryFailed:"\u6458\u8981\u751F\u6210\u5931\u8D25\u3002",highlights:"\u91CD\u70B9",pendingItems:"\u5F85\u5904\u7406\u4E8B\u9879",tabs:{label:"\u4EFB\u52A1\u8BE6\u60C5\u89C6\u56FE",summary:"\u6458\u8981",workspace:"\u5DE5\u4F5C\u533A"},status:{queued:"\u6392\u961F\u4E2D",running:"\u8FD0\u884C\u4E2D",waiting_approval:"\u7B49\u5F85\u5BA1\u6279",stopping:"\u6B63\u5728\u505C\u6B62",stopped:"\u5DF2\u505C\u6B62",completed:"\u5DF2\u5B8C\u6210",failed:"\u5931\u8D25"},state:{loading:{title:"\u6B63\u5728\u52A0\u8F7D\u4EFB\u52A1\u8BE6\u60C5",description:"\u6B63\u5728\u6062\u590D\u6700\u65B0\u7684\u4F1A\u8BDD\u6D3B\u52A8\u3002"},empty:{title:"\u672A\u9009\u62E9\u4EFB\u52A1",description:"\u9009\u62E9\u4EFB\u52A1\u540E\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\u3002"},error:{title:"\u65E0\u6CD5\u52A0\u8F7D\u4EFB\u52A1\u8BE6\u60C5",description:"\u4F1A\u8BDD\u6062\u590D\u53EF\u7528\u540E\u8BF7\u91CD\u8BD5\u3002"}},actions:{close:"\u5173\u95ED\u4EFB\u52A1\u8BE6\u60C5",copySummary:"\u590D\u5236\u6458\u8981",retry:"\u91CD\u8BD5",retrySummary:"\u91CD\u65B0\u751F\u6210\u6458\u8981",resume:"\u7EE7\u7EED\u8FD0\u884C",continueInNewTask:"\u5728\u65B0\u4EFB\u52A1\u4E2D\u7EE7\u7EED",editAndRerun:"\u7F16\u8F91\u5E76\u91CD\u65B0\u8FD0\u884C",export:"\u5BFC\u51FA"},workspace:{diffs:"\u4EE3\u7801\u53D8\u66F4",files:"\u6587\u4EF6",terminals:"\u7EC8\u7AEF",tests:"\u6D4B\u8BD5",artifacts:"\u4EA7\u7269",exitCode:i(({code:e})=>`\u9000\u51FA\u7801 ${e}`,"exitCode"),diffStatus:{added:"\u65B0\u589E",modified:"\u4FEE\u6539",deleted:"\u5220\u9664",renamed:"\u91CD\u547D\u540D"},fileOperation:{upsert:"\u5DF2\u66F4\u65B0",delete:"\u5DF2\u5220\u9664"}}}}}};var Wu={"en-US":Ro,"zh-CN":bn};function vs(e){if(typeof e!="string"||!e.trim())throw new TypeError("Monkeys locale must be a non-empty BCP 47 string.");try{return Intl.getCanonicalLocales(e)[0]}catch{throw new RangeError(`Monkeys locale "${e}" is not a valid BCP 47 identifier.`)}}i(vs,"normalizeLocaleId");function vn(e){return !!e&&typeof e=="object"&&!Array.isArray(e)}i(vn,"isRecord");function ys(e,t,o){if(!vn(e)||!vn(t))throw new TypeError(`${o} must be an object.`);for(let[n,r]of Object.entries(e)){if(r===void 0)continue;if(!(n in t))throw new TypeError(`${o}.${n} is not a supported Monkeys message.`);let a=t[n],l=`${o}.${n}`;if(typeof a=="function"){if(typeof r!="function")throw new TypeError(`${l} must be a function.`)}else if(typeof a=="string"){if(typeof r!="string")throw new TypeError(`${l} must be a string.`)}else ys(r,a,l);}}i(ys,"validateMessageOverride");function xs(e,t){let o=vn(e)?Object.fromEntries(Object.entries(e).filter(([n])=>n!=="beautiful")):e;if(ys(o,Ro.messages,t),vn(e)&&e.beautiful!==void 0){if(!vn(e.beautiful))throw new TypeError(`${t}.beautiful must be an object.`);for(let[n,r]of Object.entries(e.beautiful))if(r!==void 0&&typeof r!="string")throw new TypeError(`${t}.beautiful.${n} must be a string.`)}}i(xs,"assertMessagesOverride");function ws(e){return e==="en-US"||e==="zh-CN"}i(ws,"isBuiltInLocale");function ju(e){if(e===void 0)return {locale:void 0,messages:void 0,hasExplicitLocale:false};if(typeof e=="string"){let o=vs(e);if(!ws(o))throw new RangeError(`Unsupported built-in Monkeys locale "${o}". Provide a locale pack object for custom locales.`);return {locale:o,messages:void 0,hasExplicitLocale:true}}if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError("Monkeys locale must be a locale id or locale pack object.");let t=vs(e.locale);return xs(e.messages,"Monkeys locale messages"),{locale:t,messages:e.messages,hasExplicitLocale:true}}i(ju,"normalizeLocaleInput");function Wo(e,t){return t?{markdownDocument:{...e.markdownDocument,...t.markdownDocument},canvas:{...e.canvas,...t.canvas},beautiful:{...e.beautiful,...t.beautiful},pagination:{...e.pagination,...t.pagination},dialog:{...e.dialog,...t.dialog},dropdownMenu:{...e.dropdownMenu,...t.dropdownMenu},loading:{...e.loading,...t.loading},layout:{...e.layout,...t.layout},steps:{...e.steps,...t.steps},numberInput:{...e.numberInput,...t.numberInput},passwordInput:{...e.passwordInput,...t.passwordInput},multiSelect:{...e.multiSelect,...t.multiSelect},table:{...e.table,...t.table},toolbar:{theme:{...e.toolbar.theme,...t.toolbar?.theme},language:{...e.toolbar.language,...t.toolbar?.language}},toast:{...e.toast,...t.toast},dataExplorer:{viewTree:{...e.dataExplorer.viewTree,...t.dataExplorer?.viewTree}},workbench:{relationshipGraph:{zoomOut:"Zoom out",zoomIn:"Zoom in",zoomToFit:"Fit graph",minimap:"Graph overview",...e.workbench.relationshipGraph,...t.workbench?.relationshipGraph},collection:{...e.workbench.collection,...t.workbench?.collection},interactiveTable:{...e.workbench.interactiveTable,...t.workbench?.interactiveTable}},agentWorkbench:{...e.agentWorkbench,...t.agentWorkbench,modes:{...e.agentWorkbench.modes,...t.agentWorkbench?.modes},composer:{...e.agentWorkbench.composer,...t.agentWorkbench?.composer},quickStart:{...e.agentWorkbench.quickStart,...t.agentWorkbench?.quickStart},tool:{...e.agentWorkbench.tool,...t.agentWorkbench?.tool,status:{...e.agentWorkbench.tool.status,...t.agentWorkbench?.tool?.status}},approval:{...e.agentWorkbench.approval,...t.agentWorkbench?.approval},artifact:{...e.agentWorkbench.artifact,...t.agentWorkbench?.artifact},run:{...e.agentWorkbench.run,...t.agentWorkbench?.run},process:{...e.agentWorkbench.process,...t.agentWorkbench?.process},artifactWorkspace:{...e.agentWorkbench.artifactWorkspace,...t.agentWorkbench?.artifactWorkspace},usage:{...e.agentWorkbench.usage,...t.agentWorkbench?.usage},navigation:{...e.agentWorkbench.navigation,...t.agentWorkbench?.navigation},details:{...e.agentWorkbench.details,...t.agentWorkbench?.details,tabs:{...e.agentWorkbench.details.tabs,...t.agentWorkbench?.details?.tabs},status:{...e.agentWorkbench.details.status,...t.agentWorkbench?.details?.status},state:{loading:{...e.agentWorkbench.details.state.loading,...t.agentWorkbench?.details?.state?.loading},empty:{...e.agentWorkbench.details.state.empty,...t.agentWorkbench?.details?.state?.empty},error:{...e.agentWorkbench.details.state.error,...t.agentWorkbench?.details?.state?.error}},actions:{...e.agentWorkbench.details.actions,...t.agentWorkbench?.details?.actions},workspace:{...e.agentWorkbench.details.workspace,...t.agentWorkbench?.details?.workspace,diffStatus:{...e.agentWorkbench.details.workspace.diffStatus,...t.agentWorkbench?.details?.workspace?.diffStatus},fileOperation:{...e.agentWorkbench.details.workspace.fileOperation,...t.agentWorkbench?.details?.workspace?.fileOperation}}}}}:e}i(Wo,"mergeMonkeysLocaleMessages");var yn={locale:Ro.locale,messages:Wo(Ro.messages)};function yi(e,t,o){t!==void 0&&xs(t,"MonkeysProvider messages");let n=ju(e),r=n.locale??o?.locale??Ro.locale,a=ws(r)?Wu[r].messages:void 0,l=Wo(Ro.messages,a);return o&&(!n.hasExplicitLocale||o.locale===r)&&(l=Wo(l,o.messages)),l=Wo(l,n.messages),l=Wo(l,t),{locale:r,messages:l}}i(yi,"resolveMonkeysLocale");var Gu=Object.freeze({}),qu=Object.freeze({}),ks=Symbol.for("@inf-monkeys-tech/monkeys-design/provider-context@1");function Ku(){return Object.freeze({locale:createContext({...yn,provided:false}),theme:createContext({provided:false}),direction:createContext({provided:false}),environment:createContext({provided:false,environment:Gu,portal:qu})})}i(Ku,"createMonkeysProviderContexts");function Xu(){let e=globalThis,t=e[ks];if(t)return t;let o=Ku();return Object.defineProperty(e,ks,{value:o,enumerable:false,configurable:false,writable:false}),o}i(Xu,"getMonkeysProviderContexts");var Zn=Xu(),xn=Zn.locale,jo=Zn.theme,wn=Zn.direction,kn=Zn.environment;function Yu(e,t){return t===void 0?e:e===void 0?t:{...e,...t,slots:e.slots||t.slots?{...e.slots,...t.slots}:void 0,styles:e.styles||t.styles?{...e.styles,...t.styles}:void 0}}i(Yu,"mergeAppearance");function Ss(){try{return useContext(xn)??{...yn,provided:!1}}catch{return {...yn,provided:false}}}i(Ss,"useMonkeysLocale");function $n(){return useContext(jo).resolvedTheme}i($n,"useMonkeysResolvedTheme");function Cs(e){let t=useContext(jo).baseAppearance;return useMemo(()=>Yu(t,e),[e,t])}i(Cs,"useMonkeysBaseAppearance");function Ts(){return useContext(wn).direction}i(Ts,"useMonkeysDirection");function xi(){return useContext(kn).environment}i(xi,"useMonkeysEnvironment");function Jn(){return useContext(kn).portal}i(Jn,"useMonkeysPortalOptions");function ht(){let e=useContext(xn),t=useContext(jo),o=useContext(wn),n=e.provided||t.provided||o.provided;return useMemo(()=>n?{dir:o.direction,"data-monkeys-direction":o.direction,"data-monkeys-locale":e.locale,"data-monkeys-theme":t.themeId,"data-monkeys-theme-mode":t.resolvedTheme?.colorMode}:{},[o.direction,e.locale,n,t.resolvedTheme?.colorMode,t.themeId])}i(ht,"useMonkeysComponentAttributes");var Rs={seed:{ui:{color:{page:{$type:"color",$value:{colorSpace:"srgb",components:[.09019607843137255,.09803921568627451,.11372549019607843],hex:"#17191D"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},surface:{$type:"color",$value:{colorSpace:"srgb",components:[.12549019607843137,.13725490196078433,.1607843137254902],hex:"#202329"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},elevated:{$type:"color",$value:{colorSpace:"srgb",components:[.16470588235294117,.1803921568627451,.21176470588235294],hex:"#2A2E36"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},foreground:{$type:"color",$value:{colorSpace:"srgb",components:[.9568627450980393,.9607843137254902,.9686274509803922],hex:"#F4F5F7"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},muted:{$type:"color",$value:{colorSpace:"srgb",components:[.803921568627451,.8196078431372549,.8470588235294118],hex:"#CDD1D8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},subtle:{$type:"color",$value:{colorSpace:"srgb",components:[.7254901960784313,.7450980392156863,.7843137254901961],hex:"#B9BEC8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},primary:{$type:"color",$value:{colorSpace:"srgb",components:[.5490196078431373,.6039215686274509,.6666666666666666],hex:"#8C9AAA"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},lightEdgeBlue:{$type:"color",$value:{colorSpace:"srgb",components:[.6549019607843137,.7098039215686275,.7843137254901961],hex:"#A7B5C8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},primaryHover:{$type:"color",$value:{colorSpace:"srgb",components:[.6784313725490196,.7254901960784313,.7803921568627451],hex:"#ADB9C7"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},violet:{$type:"color",$value:{colorSpace:"srgb",components:[.6784313725490196,.7137254901960784,.7686274509803922],hex:"#ADB6C4"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},focus:{$type:"color",$value:{colorSpace:"srgb",components:[.7647058823529411,.8235294117647058,.9098039215686274],hex:"#C3D2E8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},danger:{$type:"color",$value:{colorSpace:"srgb",components:[.9411764705882353,.5019607843137255,.5019607843137255],hex:"#F08080"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},dangerBackground:{$type:"color",$value:{colorSpace:"srgb",components:[.6078431372549019,.1450980392156863,.1843137254901961],hex:"#9B252F"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},success:{$type:"color",$value:{colorSpace:"srgb",components:[.5176470588235295,.8588235294117647,.6784313725490196],hex:"#84DBAD"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},control:{$type:"color",$value:{colorSpace:"srgb",components:[.47058823529411764,.47058823529411764,.47058823529411764],hex:"#787878",alpha:.2},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},border:{$type:"color",$value:{colorSpace:"srgb",components:[.7176470588235294,.7568627450980392,.8313725490196079],hex:"#B7C1D4",alpha:.5},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},info:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.8},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},previewInfo:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.4},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},blueGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.5215686274509804,.6,.7098039215686275],hex:"#8599B5",alpha:.35},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},violetGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.6431372549019608,.6901960784313725,.7686274509803922],hex:"#A4B0C4",alpha:.5},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},transparent:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:0},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},overlay:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.65},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},primaryAccessible:{$type:"color",$value:{colorSpace:"srgb",components:[.3215686274509804,.396078431372549,.49019607843137253],hex:"#52657D"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},header:{$type:"color",$value:{colorSpace:"srgb",components:[.21568627450980393,.2549019607843137,.3176470588235294],hex:"#374151"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},detail:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},white:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},black:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},activeBorder:{$type:"color",$value:{colorSpace:"srgb",components:[.43137254901960786,.5568627450980392,.9254901960784314],hex:"#6E8EEC"},$description:"\u6FC0\u6D3B\u63A7\u4EF6\u63CF\u8FB9\u539F\u59CB\u8272"}},radius:{r16:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"},r24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"},r12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"},scale:{s24:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 24px"},s999:{$type:"dimension",$value:"{seed.ui.radius.r999}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 999px"},s12:{$type:"dimension",$value:"{seed.ui.radius.r12}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 12px"},s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 8px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 4px"},s16:{$type:"dimension",$value:"{seed.ui.radius.r16}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 16px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 10px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 20px"},s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 2px"},s18:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 18px"}},r999:{$type:"dimension",$value:{value:999,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"}},typography:{lineHeight:{s1p5:{$type:"number",$value:1.5,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.5"},s1p4:{$type:"number",$value:1.4,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.4"},s1p3:{$type:"number",$value:1.3,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.3"},s1p2:{$type:"number",$value:1.2,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.2"}},weight:{s500:{$type:"number",$value:500,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 500"},s600:{$type:"number",$value:600,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 600"},s700:{$type:"number",$value:700,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 700"},s800:{$type:"number",$value:800,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 800"},s200:{$type:"number",$value:200,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 200"},s400:{$type:"number",$value:400,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 400"}}},size:{s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 2px"},s3:{$type:"dimension",$value:{value:3,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 3px"},s1:{$type:"dimension",$value:{value:1,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 1px"},s28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 28px"},s42:{$type:"dimension",$value:{value:42,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 42px"},s14:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 14px"},s24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 24px"},s18:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 18px"},s40:{$type:"dimension",$value:{value:40,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 40px"},s16:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 16px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 20px"},s22:{$type:"dimension",$value:{value:22,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 22px"},s140:{$type:"dimension",$value:{value:140,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 140px"},s85:{$type:"dimension",$value:{value:85,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 85px"},s34:{$type:"dimension",$value:{value:34,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 34px"},s320:{$type:"dimension",$value:{value:320,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 320px"},s160:{$type:"dimension",$value:{value:160,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 160px"},s280:{$type:"dimension",$value:{value:280,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 280px"},s32:{$type:"dimension",$value:{value:32,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 32px"},s53:{$type:"dimension",$value:{value:53,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 53px"},s26:{$type:"dimension",$value:{value:26,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 26px"},s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 8px"},s62:{$type:"dimension",$value:{value:62,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 62px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 10px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 4px"},s5:{$type:"dimension",$value:{value:5,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 5px"},s196:{$type:"dimension",$value:{value:196,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 196px"},s480:{$type:"dimension",$value:{value:480,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 480px"},s1000:{$type:"dimension",$value:{value:1e3,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 1000px"},s660:{$type:"dimension",$value:{value:660,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 660px"},s48:{$type:"dimension",$value:{value:48,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 48px"},s100:{$type:"dimension",$value:{value:100,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 100px"},s64:{$type:"dimension",$value:{value:64,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 64px"},s12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 12px"},s6:{$type:"dimension",$value:{value:6,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 6px"},s168:{$type:"dimension",$value:{value:168,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 168px"},s96:{$type:"dimension",$value:{value:96,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 96px"},s56:{$type:"dimension",$value:{value:56,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 56px"},s1p5:{$type:"dimension",$value:{value:1.5,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 1.5px"},s220:{$type:"dimension",$value:{value:220,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 220px"},s379:{$type:"dimension",$value:{value:379,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 379px"},s68:{$type:"dimension",$value:{value:68,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 68px"},s108:{$type:"dimension",$value:{value:108,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 108px"},s70:{$type:"dimension",$value:{value:70,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 70px"},s57:{$type:"dimension",$value:{value:57,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 57px"},s15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 15px"},s244:{$type:"dimension",$value:{value:244,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 244px"},s78:{$type:"dimension",$value:{value:78,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 78px"},s36:{$type:"dimension",$value:{value:36,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 36px"},s23:{$type:"dimension",$value:{value:23,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 23px"},s117:{$type:"dimension",$value:{value:117,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 117px"},s110:{$type:"dimension",$value:{value:110,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 110px"},s156:{$type:"dimension",$value:{value:156,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 156px"},s125:{$type:"dimension",$value:{value:125,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 125px"},s121:{$type:"dimension",$value:{value:121,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 121px"},s127:{$type:"dimension",$value:{value:127,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 127px"},s55:{$type:"dimension",$value:{value:55,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 55px"},s178:{$type:"dimension",$value:{value:178,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 178px"},s497:{$type:"dimension",$value:{value:497,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 497px"},s37:{$type:"dimension",$value:{value:37,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 37px"},s60:{$type:"dimension",$value:{value:60,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 60px"},s7:{$type:"dimension",$value:{value:7,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 7px"},s128:{$type:"dimension",$value:{value:128,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 128px"},s290:{$type:"dimension",$value:{value:290,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 290px"},s210:{$type:"dimension",$value:{value:210,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 210px"},s231:{$type:"dimension",$value:{value:231,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 231px"},s440:{$type:"dimension",$value:{value:440,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 440px"},s9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 9px"},s190:{$type:"dimension",$value:{value:190,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 190px"},s130:{$type:"dimension",$value:{value:130,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 130px"},s200:{$type:"dimension",$value:{value:200,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 200px"},s150:{$type:"dimension",$value:{value:150,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 150px"},s350:{$type:"dimension",$value:{value:350,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 350px"},s493:{$type:"dimension",$value:{value:493,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 493px"},s17:{$type:"dimension",$value:{value:17,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 17px"}},space:{s6:{$type:"dimension",$value:{value:6,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 6px"},s18:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 18px"},s3:{$type:"dimension",$value:{value:3,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 3px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 10px"},s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 8px"},s22:{$type:"dimension",$value:{value:22,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 22px"},s7:{$type:"dimension",$value:{value:7,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 7px"},s14:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 14px"},s84:{$type:"dimension",$value:{value:84,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 84px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 4px"},s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 2px"},s12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 12px"},s5:{$type:"dimension",$value:{value:5,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 5px"},s26:{$type:"dimension",$value:{value:26,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 26px"},s16:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 16px"},s24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 24px"},s30:{$type:"dimension",$value:{value:30,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 30px"},s1:{$type:"dimension",$value:{value:1,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 1px"},s15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 15px"},s13:{$type:"dimension",$value:{value:13,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 13px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 20px"},s29:{$type:"dimension",$value:{value:29,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 29px"},s9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 9px"},s11:{$type:"dimension",$value:{value:11,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 11px"},s115:{$type:"dimension",$value:{value:115,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 115px"},s34:{$type:"dimension",$value:{value:34,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 34px"},s40:{$type:"dimension",$value:{value:40,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 40px"},s28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 28px"},s44:{$type:"dimension",$value:{value:44,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 44px"},s23:{$type:"dimension",$value:{value:23,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 23px"},s70:{$type:"dimension",$value:{value:70,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 70px"},s25:{$type:"dimension",$value:{value:25,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 25px"},s19:{$type:"dimension",$value:{value:19,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 19px"},s47:{$type:"dimension",$value:{value:47,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 47px"}},duration:{s240:{$type:"duration",$value:{value:240,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 240ms"},s800:{$type:"duration",$value:{value:800,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 800ms"},s180:{$type:"duration",$value:{value:180,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 180ms"},s140:{$type:"duration",$value:{value:140,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 140ms"}},opacity:{s0p65:{$type:"number",$value:.65,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.65"},s0p5:{$type:"number",$value:.5,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.5"},s0p8:{$type:"number",$value:.8,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.8"},s0p4:{$type:"number",$value:.4,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.4"}},shadowSize:{s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 8px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 20px"},s12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 12px"},s1:{$type:"dimension",$value:{value:1,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 1px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 4px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 10px"},s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 2px"},s36:{$type:"dimension",$value:{value:36,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 36px"},s5:{$type:"dimension",$value:{value:5,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 5px"},s3:{$type:"dimension",$value:{value:3,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 3px"},s24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 24px"},s80:{$type:"dimension",$value:{value:80,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 80px"},s15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 15px"},s28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 28px"},s14:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 14px"},s6:{$type:"dimension",$value:{value:6,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 6px"},s9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 9px"},s0p5:{$type:"dimension",$value:{value:.5,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 0.5px"},s7:{$type:"dimension",$value:{value:7,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 7px"}},layer:{local:{s2:{$type:"number",$value:2,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 2"},s3:{$type:"number",$value:3,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 3"},s1100:{$type:"number",$value:1100,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 1100"},s5:{$type:"number",$value:5,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 5"},s10:{$type:"number",$value:10,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 10"}}},lineClamp:{s4:{$type:"number",$value:4,$description:"\u5171\u4EAB lineClamp \u523B\u5EA6 4"},s2:{$type:"number",$value:2,$description:"\u5171\u4EAB lineClamp \u523B\u5EA6 2"}}}},semantic:{color:{surface:{page:{dark:{$type:"color",$value:"{seed.ui.color.page}",$description:"surface.page\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.965,.973,.988],hex:"#F6F8FC"},$description:"\u6D45\u8272\u9875\u9762\u80CC\u666F"}},default:{dark:{$type:"color",$value:"{seed.ui.color.surface}",$description:"surface.default\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u9ED8\u8BA4\u8868\u9762"}},raised:{dark:{$type:"color",$value:"{seed.ui.color.elevated}",$description:"surface.raised\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u62AC\u5347\u8868\u9762"}},control:{dark:{$type:"color",$value:"{seed.ui.color.control}",$description:"surface.control\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.06},$description:"\u6D45\u8272\u63A7\u4EF6\u8868\u9762"}},header:{dark:{$type:"color",$value:"{seed.ui.color.header}",$description:"header-background"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u5934\u90E8\u8868\u9762"}},detail:{dark:{$type:"color",$value:"{seed.ui.color.detail}",$description:"sidebar-background"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.949,.961,.98],hex:"#F2F5FA"},$description:"\u6D45\u8272\u8BE6\u60C5\u8868\u9762"}}},text:{primary:{dark:{$type:"color",$value:"{seed.ui.color.foreground}",$description:"text.primary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0824,.1255,.2],hex:"#152033"},$description:"\u6D45\u8272\u4E3B\u6587\u672C"}},secondary:{dark:{$type:"color",$value:"{seed.ui.color.muted}",$description:"text.secondary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.2902,.3333,.4078],hex:"#4A5568"},$description:"\u6D45\u8272\u6B21\u7EA7\u6587\u672C"}},tertiary:{dark:{$type:"color",$value:"{seed.ui.color.subtle}",$description:"text.tertiary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.4078,.451,.5255],hex:"#687386"},$description:"\u6D45\u8272\u4E09\u7EA7\u6587\u672C"}},onAction:{dark:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"\u4E3B\u64CD\u4F5C\u80CC\u666F\u4E0A\u7684\u6587\u5B57"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u4E3B\u64CD\u4F5C\u80CC\u666F\u4E0A\u7684\u6587\u5B57"}}},brand:{accent:{dark:{$type:"color",$value:"{seed.ui.color.primary}",$description:"brand.accent\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1922,.3647,.8627],hex:"#315DDC"},$description:"\u6D45\u8272\u54C1\u724C\u4E3B\u8272"}},accentHover:{dark:{$type:"color",$value:"{seed.ui.color.primaryHover}",$description:"brand.accentHover\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1451,.2824,.7137],hex:"#2548B6"},$description:"\u6D45\u8272\u54C1\u724C\u60AC\u505C\u8272"}},secondary:{dark:{$type:"color",$value:"{seed.ui.color.violet}",$description:"brand.secondary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.4392,.2745,.851],hex:"#7046D9"},$description:"\u6D45\u8272\u54C1\u724C\u8F85\u52A9\u8272"}}},status:{danger:{dark:{$type:"color",$value:"{seed.ui.color.danger}",$description:"status.danger\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.7373,.2157,.2706],hex:"#BC3745"},$description:"\u6D45\u8272\u5371\u9669\u72B6\u6001"}},dangerSurface:{dark:{$type:"color",$value:"{seed.ui.color.dangerBackground}",$description:"status.dangerSurface\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.9922,.9255,.9333],hex:"#FDEBED"},$description:"\u6D45\u8272\u5371\u9669\u72B6\u6001\u8868\u9762"}},success:{dark:{$type:"color",$value:"{seed.ui.color.success}",$description:"status.success\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.4784,.3255],hex:"#0F7A53"},$description:"\u6D45\u8272\u6210\u529F\u72B6\u6001"}}},border:{default:{dark:{$type:"color",$value:"{seed.ui.color.border}",$description:"border.default\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.14},$description:"\u6D45\u8272\u9ED8\u8BA4\u8FB9\u6846"}},active:{dark:{$type:"color",$value:"{seed.ui.color.activeBorder}",$description:"\u6FC0\u6D3B\u63A7\u4EF6\u63CF\u8FB9\uFF1B\u4E0E\u9009\u4E2D\u80CC\u666F\u914D\u5957\uFF0C\u53EF\u7531\u4E3B\u9898\u8986\u76D6"},light:{$type:"color",$value:"{seed.ui.color.activeBorder}",$description:"\u6D45\u8272\u6FC0\u6D3B\u63A7\u4EF6\u63CF\u8FB9"}}},scrim:{media:{dark:{$type:"color",$value:"{seed.ui.color.info}",$description:"scrim.media\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.72},$description:"\u6D45\u8272\u5A92\u4F53\u906E\u7F69"}},backdrop:{dark:{$type:"color",$value:"{seed.ui.color.overlay}",$description:"scrim.backdrop\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.45},$description:"\u6D45\u8272\u80CC\u666F\u906E\u7F69"}},preview:{dark:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.65},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.58},$description:"\u6D45\u8272\u9884\u89C8\u906E\u7F69"}}},primary:{dark:{$type:"color",$value:"{seed.ui.color.primaryAccessible}",$description:"\u4E3B\u64CD\u4F5C\u8272\uFF0C\u9700\u4E0E onAction \u9A8C\u8BC1\u5BF9\u6BD4\u5EA6"},light:{$type:"color",$value:"{semantic.color.brand.accent.light}",$description:"\u6D45\u8272\u4E3B\u64CD\u4F5C\u8272"}},focus:{ring:{dark:{$type:"color",$value:"{semantic.color.primary.dark}",$description:"\u952E\u76D8\u7126\u70B9\u8272\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},light:{$type:"color",$value:"{semantic.color.brand.accent.light}",$description:"\u6D45\u8272\u952E\u76D8\u7126\u70B9\u8272"}}},action:{primaryHover:{dark:{$type:"color",$value:"{semantic.color.primary.dark}",$description:"\u4E3B\u64CD\u4F5C\u60AC\u505C\u72B6\u6001"},light:{$type:"color",$value:"{semantic.color.brand.accentHover.light}",$description:"\u6D45\u8272\u4E3B\u64CD\u4F5C\u60AC\u505C\u72B6\u6001"}}},effect:{start:{dark:{$type:"color",$value:"{seed.ui.color.blueGlow}",$description:"\u7279\u6548\u8272\u6E90\uFF1BShader \u4F7F\u7528\u7EAF\u8272\u4E0E\u72EC\u7ACB\u5F3A\u5EA6"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1765,.4196,.9216],hex:"#2D6BEA",alpha:.3},$description:"\u6D45\u8272\u7279\u6548\u8D77\u59CB\u8272"}},end:{dark:{$type:"color",$value:"{seed.ui.color.violetGlow}",$description:"\u7279\u6548\u8272\u6E90\uFF1BShader \u4F7F\u7528\u7EAF\u8272\u4E0E\u72EC\u7ACB\u5F3A\u5EA6"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.502,.3373,.9098],hex:"#8056E8",alpha:.42},$description:"\u6D45\u8272\u7279\u6548\u7ED3\u675F\u8272"}},lightEdgeStart:{dark:{$type:"color",$value:"{seed.ui.color.lightEdgeBlue}",$description:"\u7279\u6548\u8272\u6E90\uFF1BShader \u4F7F\u7528\u7EAF\u8272\u4E0E\u72EC\u7ACB\u5F3A\u5EA6"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1412,.4549,.9412],hex:"#2473F0"},$description:"\u6D45\u8272 LightEdge \u8D77\u59CB\u8272"}}},sample:{inkLight:{$type:"color",$value:"{seed.ui.color.white}",$description:"sample-ink-light"},inkDark:{$type:"color",$value:"{seed.ui.color.black}",$description:"sample-ink-dark"}}},font:{body:{$type:"fontFamily",$value:["system-ui","sans-serif"],$description:"\u6B63\u6587\u4E0E\u63A7\u4EF6\u5B57\u4F53"},size:{xs:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 12px"},ui11:{$type:"dimension",$value:{value:11,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 11px"},ui17:{$type:"dimension",$value:{value:17,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 17px"},sm:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 14px"},ui22:{$type:"dimension",$value:{value:22,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 22px"},xl:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 20px"},ui10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 10px"},lg:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 18px"},ui28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 28px"},ui42:{$type:"dimension",$value:{value:42,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 42px"},base:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 16px"},ui15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 15px"},ui21:{$type:"dimension",$value:{value:21,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 21px"},ui13:{$type:"dimension",$value:{value:13,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 13px"},"4xl":{$type:"dimension",$value:{value:36,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 36px"},"3xl":{$type:"dimension",$value:{value:30,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 30px"},ui9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 9px"}}},ui:{control:{height:{sm:{$type:"dimension",$value:{value:28,unit:"px"},$description:"sm \u63A7\u4EF6\u9AD8\u5EA6"},md:{$type:"dimension",$value:{value:34,unit:"px"},$description:"md \u63A7\u4EF6\u9AD8\u5EA6"},lg:{$type:"dimension",$value:{value:42,unit:"px"},$description:"lg \u63A7\u4EF6\u9AD8\u5EA6"}},paddingInline:{sm:{$type:"dimension",$value:"{seed.ui.space.s10}",$description:"sm \u63A7\u4EF6\u6A2A\u5411\u7559\u767D"},md:{$type:"dimension",$value:"{seed.ui.space.s18}",$description:"md \u63A7\u4EF6\u6A2A\u5411\u7559\u767D"},lg:{$type:"dimension",$value:"{seed.ui.space.s22}",$description:"lg \u63A7\u4EF6\u6A2A\u5411\u7559\u767D"}}},radius:{control:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"control \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},container:{$type:"dimension",$value:"{seed.ui.radius.r16}",$description:"container \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},content:{$type:"dimension",$value:"{seed.ui.radius.r12}",$description:"content \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},pill:{$type:"dimension",$value:"{seed.ui.radius.r999}",$description:"pill \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"}},spacing:{fieldGap:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"fieldGap \u5171\u4EAB\u95F4\u8DDD"},controlGap:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"controlGap \u5171\u4EAB\u95F4\u8DDD"},sectionGap:{$type:"dimension",$value:"{seed.ui.space.s24}",$description:"sectionGap \u5171\u4EAB\u95F4\u8DDD"},surfacePadding:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"surfacePadding \u5171\u4EAB\u95F4\u8DDD"},pagePadding:{$type:"dimension",$value:"{seed.ui.space.s14}",$description:"pagePadding \u5171\u4EAB\u95F4\u8DDD"}},icon:{size:{sm:{$type:"dimension",$value:"{seed.ui.size.s14}",$description:"sm \u56FE\u6807\u5C3A\u5BF8"},md:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"md \u56FE\u6807\u5C3A\u5BF8"},lg:{$type:"dimension",$value:"{seed.ui.size.s20}",$description:"lg \u56FE\u6807\u5C3A\u5BF8"},xl:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"xl \u56FE\u6807\u5C3A\u5BF8"}},target:{sm:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"sm \u56FE\u6807\u70B9\u51FB\u533A\u57DF"},md:{$type:"dimension",$value:"{seed.ui.size.s28}",$description:"md \u56FE\u6807\u70B9\u51FB\u533A\u57DF"},lg:{$type:"dimension",$value:"{seed.ui.size.s36}",$description:"lg \u56FE\u6807\u70B9\u51FB\u533A\u57DF"}}},opacity:{disabled:{$type:"number",$value:.5,$description:"disabled \u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"},busy:{$type:"number",$value:.8,$description:"busy \u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"}},motion:{pressDuration:{$type:"duration",$value:"{seed.ui.duration.s140}",$description:"pressDuration \u52A8\u6548\u65F6\u957F"},popupDuration:{$type:"duration",$value:"{seed.ui.duration.s180}",$description:"popupDuration \u52A8\u6548\u65F6\u957F"},revealDuration:{$type:"duration",$value:"{seed.ui.duration.s240}",$description:"revealDuration \u52A8\u6548\u65F6\u957F"},spinnerDuration:{$type:"duration",$value:"{seed.ui.duration.s800}",$description:"spinnerDuration \u52A8\u6548\u65F6\u957F"},pressedScale:{$type:"number",$value:.97,$description:"\u6309\u4E0B\u4E0E\u6D6E\u5C42\u8FDB\u5165\u7F29\u653E"},hoverBrightness:{$type:"number",$value:1.14,$description:"\u6309\u94AE\u60AC\u505C\u4EAE\u5EA6"}},glass:{blur:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u901A\u7528\u6BDB\u73BB\u7483\u6A21\u7CCA\u534A\u5F84"},saturation:{$type:"number",$value:1.25,$description:"\u901A\u7528\u6BDB\u73BB\u7483\u9971\u548C\u5EA6"}}}},component:{chart:{radar:{grid:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"\u96F7\u8FBE\u56FE\u7F51\u683C\u7EBF"},axis:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"\u96F7\u8FBE\u56FE\u7EF4\u5EA6\u8F74\u7EBF"},fillStart:{$type:"color",$value:"{semantic.color.brand.accent.dark}",$description:"\u96F7\u8FBE\u56FE\u6E10\u53D8\u8D77\u59CB\u8272\u548C\u8F6E\u5ED3"},fillEnd:{$type:"color",$value:"{semantic.color.brand.secondary.dark}",$description:"\u96F7\u8FBE\u56FE\u6E10\u53D8\u7ED3\u675F\u8272"},glow:{$type:"color",$value:"{semantic.color.brand.secondary.dark}",$description:"\u96F7\u8FBE\u56FE\u67D4\u5149"},label:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"\u96F7\u8FBE\u56FE\u7EF4\u5EA6\u6807\u7B7E"},value:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"\u96F7\u8FBE\u56FE\u4E2D\u5FC3\u503C"}}},ui:{page:{$type:"color",$value:"{semantic.color.surface.page.dark}",$description:"surface.page\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},surface:{$type:"color",$value:"{semantic.color.surface.default.dark}",$description:"surface.default\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},elevated:{$type:"color",$value:"{semantic.color.surface.raised.dark}",$description:"surface.raised\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},control:{$type:"color",$value:"{semantic.color.surface.control.dark}",$description:"surface.control\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},foreground:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"text.primary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},muted:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"text.secondary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},subtle:{$type:"color",$value:"{semantic.color.text.tertiary.dark}",$description:"text.tertiary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},primary:{$type:"color",$value:"{semantic.color.brand.accent.dark}",$description:"brand.accent\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},primaryHover:{$type:"color",$value:"{semantic.color.brand.accentHover.dark}",$description:"brand.accentHover\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},violet:{$type:"color",$value:"{semantic.color.brand.secondary.dark}",$description:"brand.secondary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},danger:{$type:"color",$value:"{semantic.color.status.danger.dark}",$description:"status.danger\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},dangerBackground:{$type:"color",$value:"{semantic.color.status.dangerSurface.dark}",$description:"status.dangerSurface\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},success:{$type:"color",$value:"{semantic.color.status.success.dark}",$description:"status.success\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},border:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"border.default\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},info:{$type:"color",$value:"{semantic.color.scrim.media.dark}",$description:"scrim.media\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},overlay:{$type:"color",$value:"{semantic.color.scrim.backdrop.dark}",$description:"scrim.backdrop\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},focus:{$type:"color",$value:"{semantic.color.focus.ring.dark}",$description:"\u7126\u70B9\u73AF\u4E0E\u805A\u7126\u63CF\u8FB9"},button:{primary:{background:{$type:"color",$value:"{semantic.color.primary.dark}",$description:"\u4E3B\u6309\u94AE\u80CC\u666F"},hover:{$type:"color",$value:"{semantic.color.action.primaryHover.dark}",$description:"\u4E3B\u6309\u94AE\u60AC\u505C\u80CC\u666F"},foreground:{$type:"color",$value:"{semantic.color.text.onAction.dark}",$description:"\u4E3B\u64CD\u4F5C\u6587\u5B57"}},height:{sm:{$type:"dimension",$value:{value:28,unit:"px"},$description:".monkeys-ui-button[data-size=sm] min-height"},lg:{$type:"dimension",$value:{value:42,unit:"px"},$description:".monkeys-ui-button[data-size=lg] min-height"}},glass:{blur:{$type:"dimension",$value:"{semantic.ui.glass.blur}",$description:"Inner Light Edge \u6309\u94AE\u73BB\u7483 blur"},saturation:{$type:"number",$value:"{semantic.ui.glass.saturation}",$description:"Inner Light Edge \u6309\u94AE\u73BB\u7483 saturation"},inactiveOpacity:{$type:"number",$value:.45,$description:"\u672A\u9009\u4E2D\u73BB\u7483\u5207\u6362\u6309\u94AE\u7684\u4E0D\u900F\u660E\u5EA6"}},gap:{$type:"dimension",$value:"{semantic.ui.spacing.controlGap}",$description:"button gap \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},paddingInline:{sm:{$type:"dimension",$value:"{semantic.ui.control.paddingInline.sm}",$description:"button paddingInline.sm \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},md:{$type:"dimension",$value:"{semantic.ui.control.paddingInline.md}",$description:"button paddingInline.md \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},lg:{$type:"dimension",$value:"{semantic.ui.control.paddingInline.lg}",$description:"button paddingInline.lg \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},paddingBlock:{$type:"dimension",$value:"{component.ui.density.default.buttonPaddingBlock}",$description:"\u9ED8\u8BA4\u6309\u94AE\u7EB5\u5411\u7559\u767D\uFF1B\u5C3A\u5BF8\u53D8\u4F53\u53EF\u8986\u76D6"}},transparent:{$type:"color",$value:"{seed.ui.color.transparent}",$description:"transparent"},"header-background":{$type:"color",$value:"{semantic.color.surface.header.dark}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},"sidebar-background":{$type:"color",$value:"{semantic.color.surface.detail.dark}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},sidebar:{surface:{$type:"color",$value:"{semantic.color.surface.page.dark}",$description:"Sidebar \u6DF1\u8272\u5BFC\u822A\u9762\u677F\u80CC\u666F"},foreground:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"Sidebar \u672A\u9009\u4E2D\u9879\u6587\u5B57\u4E0E\u56FE\u6807"},activeForeground:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"Sidebar \u9009\u4E2D\u9879\u6587\u5B57\u4E0E\u56FE\u6807\uFF1B\u5149\u6548\u590D\u7528 Button lightEdge token"},borderColor:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"Sidebar \u63CF\u8FB9\u4E0E\u5B50\u9879\u5F15\u5BFC\u7EBF\u57FA\u7840\u8272"},borderStart:{$type:"color",$value:"{semantic.color.effect.start.dark}",$description:"Sidebar \u5916\u5C42\u6E10\u53D8\u63CF\u8FB9\u8D77\u59CB\u8272"},borderEnd:{$type:"color",$value:"{semantic.color.effect.end.dark}",$description:"Sidebar \u5916\u5C42\u6E10\u53D8\u63CF\u8FB9\u7ED3\u675F\u8272"},radius:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"Sidebar \u5916\u5C42\u9762\u677F\u5706\u89D2"},itemRadius:{$type:"dimension",$value:"{semantic.ui.radius.content}",$description:"Sidebar \u5BFC\u822A\u9879\u5706\u89D2\uFF1BInner Light Edge \u81EA\u52A8\u9075\u5FAA\u6B64\u5F62\u72B6"},padding:{$type:"dimension",$value:"{seed.ui.space.s12}",$description:"Sidebar \u9762\u677F\u5185\u8FB9\u8DDD"},itemGap:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"Sidebar \u4E00\u7EA7\u5BFC\u822A\u9879\u95F4\u8DDD"},itemHeight:{$type:"dimension",$value:"{seed.ui.size.s56}",$description:"Sidebar \u4E00\u7EA7\u9879\u6700\u5C0F\u9AD8\u5EA6\uFF1B\u957F\u6587\u5B57\u53EF\u4EE5\u589E\u9AD8"},childHeight:{$type:"dimension",$value:"{seed.ui.size.s48}",$description:"Sidebar \u5B50\u9879\u6700\u5C0F\u9AD8\u5EA6"},itemPadding:{$type:"dimension",$value:"{semantic.ui.spacing.surfacePadding}",$description:"Sidebar \u5BFC\u822A\u9879\u6C34\u5E73\u5185\u8FB9\u8DDD"},iconSize:{$type:"dimension",$value:"{semantic.ui.icon.size.lg}",$description:"Sidebar \u56FE\u6807\u5C3A\u5BF8\uFF1B\u540C\u65F6\u5B9A\u4E49\u5B50\u9879\u5F15\u5BFC\u7EBF\u4F4D\u7F6E"},iconGap:{$type:"dimension",$value:"{seed.ui.space.s12}",$description:"Sidebar \u56FE\u6807\u4E0E\u6587\u5B57\u95F4\u8DDD\u53CA\u5B50\u9879\u5F15\u5BFC\u7EBF\u7559\u767D"},fontSize:{$type:"dimension",$value:"{semantic.font.size.base}",$description:"Sidebar \u5BFC\u822A\u6587\u5B57\u5B57\u53F7"},collapsedWidth:{$type:"dimension",$value:{value:136,unit:"px"},$description:"Sidebar \u7A84\u7248\u9762\u677F\u5BBD\u5EA6\uFF1B\u7531\u5BFC\u822A\u9879\u5BBD\u5EA6\u4E0E\u4E24\u4FA7\u7559\u767D\u7EC4\u6210"},expandedWidth:{$type:"dimension",$value:{value:210,unit:"px"},$description:"Sidebar \u5BBD\u7248\u5BBD\u5EA6"},collapsedItemHeight:{$type:"dimension",$value:{value:94,unit:"px"},$description:"Sidebar \u7A84\u7248\u5BFC\u822A\u9879\u9AD8\u5EA6\uFF1B\u7531\u56FE\u6807\u3001\u6587\u5B57\u548C\u70B9\u51FB\u7559\u767D\u7EC4\u6210"},collapsedItemWidth:{$type:"dimension",$value:{value:110,unit:"px"},$description:"Sidebar \u7A84\u7248\u5BFC\u822A\u9879\u5BBD\u5EA6\uFF1B\u4E0E\u7A84\u7248\u622A\u56FE\u6BD4\u4F8B\u4E00\u81F4"},collapsedIconSize:{$type:"dimension",$value:{value:32,unit:"px"},$description:"Sidebar \u7A84\u7248\u56FE\u6807\u5C3A\u5BF8"},collapsedIconGap:{$type:"dimension",$value:{value:12,unit:"px"},$description:"Sidebar \u7A84\u7248\u56FE\u6807\u4E0E\u77ED\u6807\u9898\u95F4\u8DDD"},collapsedRadius:{$type:"dimension",$value:{value:32,unit:"px"},$description:"Sidebar \u7A84\u7248\u5916\u6846\u5706\u89D2"},toggleSize:{$type:"dimension",$value:"{seed.ui.size.s32}",$description:"Sidebar \u5E95\u90E8\u5BBD\u7A84\u7248\u5207\u6362\u6309\u94AE\u5C3A\u5BF8"},surfaceTransparent:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],alpha:0},$description:"Sidebar \u5E95\u90E8\u5207\u6362\u6309\u94AE\u6E10\u9690\u5C42\u900F\u660E\u7AEF"}},"sample-ink-light":{$type:"color",$value:"{semantic.color.sample.inkLight}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},"sample-ink-dark":{$type:"color",$value:"{semantic.color.sample.inkDark}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},previewInfo:{$type:"color",$value:"{semantic.color.scrim.preview.dark}",$description:"\u9884\u89C8\u4FE1\u606F\u8868\u9762\uFF1B\u4FDD\u7559\u5F53\u524D 65% alpha"},blueGlow:{$type:"color",$value:"{seed.ui.color.blueGlow}",$description:"\u88C5\u9970\u8272\u4E0E\u900F\u660E\u5EA6\uFF0CShader \u53E6\u53D6\u7EAF\u8272"},violetGlow:{$type:"color",$value:"{seed.ui.color.violetGlow}",$description:"\u88C5\u9970\u8272\u4E0E\u900F\u660E\u5EA6\uFF0CShader \u53E6\u53D6\u7EAF\u8272"},font:{$type:"fontFamily",$value:"{semantic.font.body}",$description:"\u5B57\u4F53\u517C\u5BB9\u5165\u53E3"},radius:{panel:{$type:"dimension",$value:"{semantic.ui.radius.container}",$description:"panel \u5706\u89D2\u51FA\u53E3"},card:{$type:"dimension",$value:"{semantic.ui.radius.container}",$description:"card \u5706\u89D2\u51FA\u53E3"},control:{$type:"dimension",$value:"{semantic.ui.radius.control}",$description:"control \u5706\u89D2\u51FA\u53E3"},info:{$type:"dimension",$value:"{semantic.ui.radius.content}",$description:"info \u5706\u89D2\u51FA\u53E3"},scale:{s24:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s999:{$type:"dimension",$value:"{seed.ui.radius.r999}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s12:{$type:"dimension",$value:"{seed.ui.radius.r12}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s8:{$type:"dimension",$value:"{seed.ui.radius.scale.s8}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.radius.scale.s4}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{seed.ui.radius.r16}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s10:{$type:"dimension",$value:"{seed.ui.radius.scale.s10}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.radius.scale.s20}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"dimension",$value:"{seed.ui.radius.scale.s2}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{seed.ui.radius.scale.s18}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}}},motion:{press:{$type:"duration",$value:"{semantic.ui.motion.pressDuration}",$description:"\u517C\u5BB9\u6309\u4E0B\u65F6\u957F"},popup:{$type:"duration",$value:"{semantic.ui.motion.popupDuration}",$description:"\u517C\u5BB9\u6D6E\u5C42\u65F6\u957F"},ease:{$type:"cubicBezier",$value:[.2,.8,.2,1],$description:"component.ui.motion.ease"},pressedScale:{$type:"number",$value:"{semantic.ui.motion.pressedScale}",$description:"\u6309\u94AE\u4E0E\u6D6E\u5C42\u7F29\u653E"},hoverBrightness:{$type:"number",$value:"{semantic.ui.motion.hoverBrightness}",$description:"\u6309\u94AE\u60AC\u505C\u4EAE\u5EA6"}},controlHeight:{$type:"dimension",$value:"{semantic.ui.control.height.md}",$description:"\u5E38\u89C4\u63A7\u4EF6\u9AD8\u5EA6\u517C\u5BB9\u5165\u53E3"},layout:{stackGap:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"stackGap \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"},sidebarWidth:{$type:"dimension",$value:{value:252,unit:"px"},$description:"sidebarWidth \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"},cardMinWidth:{$type:"dimension",$value:{value:178,unit:"px"},$description:"cardMinWidth \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"},gridGap:{$type:"dimension",$value:"{seed.ui.space.s20}",$description:"gridGap \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"}},layer:{overlayBase:{$type:"number",$value:1200,$description:"overlayBase \u5F39\u5C42\u5C42\u7EA7"},nestingStep:{$type:"number",$value:10,$description:"nestingStep \u5F39\u5C42\u5C42\u7EA7"},contentOffset:{$type:"number",$value:1,$description:"contentOffset \u5F39\u5C42\u5C42\u7EA7"},local:{s2:{$type:"number",$value:"{seed.ui.layer.local.s2}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"number",$value:"{seed.ui.layer.local.s3}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1100:{$type:"number",$value:"{seed.ui.layer.local.s1100}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"number",$value:"{seed.ui.layer.local.s5}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"number",$value:"{seed.ui.layer.local.s10}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}}},effect:{hostHeight:{$type:"dimension",$value:{value:240,unit:"px"},$description:"\u72EC\u7ACB\u7279\u6548\u9ED8\u8BA4\u9AD8\u5EA6"},chroma:{intensity:{$type:"number",$value:.7,$description:"chroma \u7684 intensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},momentum:{$type:"number",$value:23,$description:"chroma \u7684 momentum\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},radius:{$type:"number",$value:6,$description:"chroma \u7684 radius\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"}},aurora:{curtainCount:{$type:"number",$value:2,$description:"aurora \u7684 curtainCount\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},height:{$type:"number",$value:81,$description:"aurora \u7684 height\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},intensity:{$type:"number",$value:64,$description:"aurora \u7684 intensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},rayDensity:{$type:"number",$value:12,$description:"aurora \u7684 rayDensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},speed:{$type:"number",$value:10,$description:"aurora \u7684 speed\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},waviness:{$type:"number",$value:39,$description:"aurora \u7684 waviness\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},rotation:{$type:"number",$value:180,$description:"aurora \u7684 rotation\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"}},lightEdge:{thickness:{$type:"number",$value:.48,$description:"lightEdge \u7684 thickness\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},softness:{$type:"number",$value:1,$description:"lightEdge \u7684 softness\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},intensity:{$type:"number",$value:.9,$description:"lightEdge \u7684 intensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},bloom:{$type:"number",$value:.2,$description:"lightEdge \u7684 bloom\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},spots:{$type:"number",$value:1,$description:"lightEdge \u7684 spots\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},spotSize:{$type:"number",$value:.6,$description:"lightEdge \u7684 spotSize\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},smoke:{$type:"number",$value:.12,$description:"lightEdge \u7684 smoke\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},smokeSize:{$type:"number",$value:.65,$description:"lightEdge \u7684 smokeSize\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},speed:{$type:"number",$value:.45,$description:"lightEdge \u7684 speed\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},glowBlur:{$type:"number",$value:4.5,$description:"lightEdge \u7684 glowBlur\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},flowBlur:{$type:"number",$value:1,$description:"lightEdge \u7684 flowBlur\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},shapeInset:{$type:"number",$value:1.5,$description:"lightEdge \u7684 shapeInset\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"}},bottomGlow:{referenceWidth:{$type:"dimension",$value:{value:730,unit:"px"},$description:"bottomGlow \u9AD8\u5EA6\u4E0E\u6A21\u7CCA\u53C2\u6570\u5BF9\u5E94\u7684\u57FA\u51C6\u5BB9\u5668\u5BBD\u5EA6\uFF1B\u5B9E\u9645\u5149\u6655\u968F\u5BB9\u5668\u5BBD\u5EA6\u7B49\u6BD4\u7F29\u653E"},intensity:{$type:"number",$value:.95,$description:"bottomGlow \u5E95\u90E8\u5149\u6655\u5F3A\u5EA6"},height:{$type:"dimension",$value:{value:260,unit:"px"},$description:"bottomGlow \u5149\u6655\u533A\u57DF\u9AD8\u5EA6"},blur:{$type:"dimension",$value:{value:28,unit:"px"},$description:"bottomGlow \u67D4\u5316\u6A21\u7CCA\u534A\u5F84"},duration:{$type:"duration",$value:{value:9,unit:"s"},$description:"bottomGlow \u5149\u6655\u6F02\u79FB\u52A8\u753B\u65F6\u957F"}}},typography:{size:{s12:{$type:"dimension",$value:"{semantic.font.size.xs}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s11:{$type:"dimension",$value:"{semantic.font.size.ui11}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s17:{$type:"dimension",$value:"{semantic.font.size.ui17}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{semantic.font.size.sm}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s22:{$type:"dimension",$value:"{semantic.font.size.ui22}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{semantic.font.size.xl}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{semantic.font.size.ui10}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{semantic.font.size.lg}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{semantic.font.size.ui28}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s42:{$type:"dimension",$value:"{semantic.font.size.ui42}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{semantic.font.size.base}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{semantic.font.size.ui15}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s21:{$type:"dimension",$value:"{semantic.font.size.ui21}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s13:{$type:"dimension",$value:"{semantic.font.size.ui13}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s36:{$type:"dimension",$value:"{semantic.font.size.4xl}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s30:{$type:"dimension",$value:"{semantic.font.size.3xl}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{semantic.font.size.ui9}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},lineHeight:{s1p5:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p5}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p4:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p4}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p3:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p3}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p2:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p2}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},weight:{s500:{$type:"number",$value:"{seed.ui.typography.weight.s500}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s600:{$type:"number",$value:"{seed.ui.typography.weight.s600}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s700:{$type:"number",$value:"{seed.ui.typography.weight.s700}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s800:{$type:"number",$value:"{seed.ui.typography.weight.s800}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s200:{$type:"number",$value:"{seed.ui.typography.weight.s200}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s400:{$type:"number",$value:"{seed.ui.typography.weight.s400}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}}},size:{s2:{$type:"dimension",$value:"{seed.ui.size.s2}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"dimension",$value:"{seed.ui.size.s3}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1:{$type:"dimension",$value:"{seed.ui.size.s1}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{seed.ui.size.s28}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s42:{$type:"dimension",$value:"{seed.ui.size.s42}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{seed.ui.size.s14}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s24:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{seed.ui.size.s18}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s40:{$type:"dimension",$value:"{seed.ui.size.s40}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.size.s20}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s22:{$type:"dimension",$value:"{seed.ui.size.s22}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s140:{$type:"dimension",$value:"{seed.ui.size.s140}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s85:{$type:"dimension",$value:"{seed.ui.size.s85}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s34:{$type:"dimension",$value:"{seed.ui.size.s34}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s320:{$type:"dimension",$value:"{seed.ui.size.s320}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s160:{$type:"dimension",$value:"{seed.ui.size.s160}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s280:{$type:"dimension",$value:"{seed.ui.size.s280}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s32:{$type:"dimension",$value:"{seed.ui.size.s32}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s53:{$type:"dimension",$value:"{seed.ui.size.s53}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s26:{$type:"dimension",$value:"{seed.ui.size.s26}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s8:{$type:"dimension",$value:"{seed.ui.size.s8}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s62:{$type:"dimension",$value:"{seed.ui.size.s62}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{seed.ui.size.s10}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.size.s4}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"dimension",$value:"{seed.ui.size.s5}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s196:{$type:"dimension",$value:"{seed.ui.size.s196}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s480:{$type:"dimension",$value:"{seed.ui.size.s480}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1000:{$type:"dimension",$value:"{seed.ui.size.s1000}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s660:{$type:"dimension",$value:"{seed.ui.size.s660}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s48:{$type:"dimension",$value:"{seed.ui.size.s48}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s100:{$type:"dimension",$value:"{seed.ui.size.s100}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s64:{$type:"dimension",$value:"{seed.ui.size.s64}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s12:{$type:"dimension",$value:"{seed.ui.size.s12}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s6:{$type:"dimension",$value:"{seed.ui.size.s6}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s168:{$type:"dimension",$value:"{seed.ui.size.s168}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s96:{$type:"dimension",$value:"{seed.ui.size.s96}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s56:{$type:"dimension",$value:"{seed.ui.size.s56}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p5:{$type:"dimension",$value:"{seed.ui.size.s1p5}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s220:{$type:"dimension",$value:"{seed.ui.size.s220}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s379:{$type:"dimension",$value:"{seed.ui.size.s379}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s68:{$type:"dimension",$value:"{seed.ui.size.s68}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s108:{$type:"dimension",$value:"{seed.ui.size.s108}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s70:{$type:"dimension",$value:"{seed.ui.size.s70}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s57:{$type:"dimension",$value:"{seed.ui.size.s57}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{seed.ui.size.s15}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s244:{$type:"dimension",$value:"{seed.ui.size.s244}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s78:{$type:"dimension",$value:"{seed.ui.size.s78}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s36:{$type:"dimension",$value:"{seed.ui.size.s36}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s23:{$type:"dimension",$value:"{seed.ui.size.s23}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s117:{$type:"dimension",$value:"{seed.ui.size.s117}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s110:{$type:"dimension",$value:"{seed.ui.size.s110}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s156:{$type:"dimension",$value:"{seed.ui.size.s156}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s125:{$type:"dimension",$value:"{seed.ui.size.s125}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s121:{$type:"dimension",$value:"{seed.ui.size.s121}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s127:{$type:"dimension",$value:"{seed.ui.size.s127}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s55:{$type:"dimension",$value:"{seed.ui.size.s55}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s178:{$type:"dimension",$value:"{seed.ui.size.s178}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s497:{$type:"dimension",$value:"{seed.ui.size.s497}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s37:{$type:"dimension",$value:"{seed.ui.size.s37}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s60:{$type:"dimension",$value:"{seed.ui.size.s60}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s7:{$type:"dimension",$value:"{seed.ui.size.s7}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s128:{$type:"dimension",$value:"{seed.ui.size.s128}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s290:{$type:"dimension",$value:"{seed.ui.size.s290}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s210:{$type:"dimension",$value:"{seed.ui.size.s210}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s231:{$type:"dimension",$value:"{seed.ui.size.s231}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s440:{$type:"dimension",$value:"{seed.ui.size.s440}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{seed.ui.size.s9}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s190:{$type:"dimension",$value:"{seed.ui.size.s190}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s130:{$type:"dimension",$value:"{seed.ui.size.s130}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s200:{$type:"dimension",$value:"{seed.ui.size.s200}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s150:{$type:"dimension",$value:"{seed.ui.size.s150}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s350:{$type:"dimension",$value:"{seed.ui.size.s350}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s493:{$type:"dimension",$value:"{seed.ui.size.s493}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s17:{$type:"dimension",$value:"{seed.ui.size.s17}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},space:{s6:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{seed.ui.space.s18}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"dimension",$value:"{seed.ui.space.s3}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{seed.ui.space.s10}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s8:{$type:"dimension",$value:"{seed.ui.space.s8}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s22:{$type:"dimension",$value:"{seed.ui.space.s22}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s7:{$type:"dimension",$value:"{seed.ui.space.s7}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{seed.ui.space.s14}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s84:{$type:"dimension",$value:"{seed.ui.space.s84}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.space.s4}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"dimension",$value:"{seed.ui.space.s2}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s12:{$type:"dimension",$value:"{seed.ui.space.s12}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"dimension",$value:"{seed.ui.space.s5}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s26:{$type:"dimension",$value:"{seed.ui.space.s26}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s24:{$type:"dimension",$value:"{seed.ui.space.s24}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s30:{$type:"dimension",$value:"{seed.ui.space.s30}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1:{$type:"dimension",$value:"{seed.ui.space.s1}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{seed.ui.space.s15}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s13:{$type:"dimension",$value:"{seed.ui.space.s13}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.space.s20}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s29:{$type:"dimension",$value:"{seed.ui.space.s29}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{seed.ui.space.s9}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s11:{$type:"dimension",$value:"{seed.ui.space.s11}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s115:{$type:"dimension",$value:"{seed.ui.space.s115}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s34:{$type:"dimension",$value:"{seed.ui.space.s34}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s40:{$type:"dimension",$value:"{seed.ui.space.s40}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{seed.ui.space.s28}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s44:{$type:"dimension",$value:"{seed.ui.space.s44}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s23:{$type:"dimension",$value:"{seed.ui.space.s23}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s70:{$type:"dimension",$value:"{seed.ui.space.s70}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s25:{$type:"dimension",$value:"{seed.ui.space.s25}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s19:{$type:"dimension",$value:"{seed.ui.space.s19}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s47:{$type:"dimension",$value:"{seed.ui.space.s47}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},duration:{s240:{$type:"duration",$value:"{seed.ui.duration.s240}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s800:{$type:"duration",$value:"{seed.ui.duration.s800}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s180:{$type:"duration",$value:"{seed.ui.duration.s180}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s140:{$type:"duration",$value:"{seed.ui.duration.s140}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},opacity:{s0p65:{$type:"number",$value:"{seed.ui.opacity.s0p65}",$description:"opacity \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s0p5:{$type:"number",$value:"{semantic.ui.opacity.disabled}",$description:"\u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"},s0p8:{$type:"number",$value:"{semantic.ui.opacity.busy}",$description:"\u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"},s0p4:{$type:"number",$value:"{seed.ui.opacity.s0p4}",$description:"opacity \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},shadowSize:{s8:{$type:"dimension",$value:"{seed.ui.shadowSize.s8}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.shadowSize.s20}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s12:{$type:"dimension",$value:"{seed.ui.shadowSize.s12}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1:{$type:"dimension",$value:"{seed.ui.shadowSize.s1}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.shadowSize.s4}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{seed.ui.shadowSize.s10}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"dimension",$value:"{seed.ui.shadowSize.s2}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s36:{$type:"dimension",$value:"{seed.ui.shadowSize.s36}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"dimension",$value:"{seed.ui.shadowSize.s5}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"dimension",$value:"{seed.ui.shadowSize.s3}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s24:{$type:"dimension",$value:"{seed.ui.shadowSize.s24}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s80:{$type:"dimension",$value:"{seed.ui.shadowSize.s80}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{seed.ui.shadowSize.s15}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{seed.ui.shadowSize.s28}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{seed.ui.shadowSize.s14}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s6:{$type:"dimension",$value:"{seed.ui.shadowSize.s6}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{seed.ui.shadowSize.s9}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s0p5:{$type:"dimension",$value:"{seed.ui.shadowSize.s0p5}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s7:{$type:"dimension",$value:"{seed.ui.shadowSize.s7}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},lineClamp:{s4:{$type:"number",$value:"{seed.ui.lineClamp.s4}",$description:"lineClamp \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"number",$value:"{seed.ui.lineClamp.s2}",$description:"lineClamp \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},material:{control:{background:{$type:"color",$value:"{component.ui.input.background}",$description:"\u63A7\u4EF6\u5171\u7528\u5E95\u6750\uFF1A\u4EE5\u540D\u79F0\u8F93\u5165\u6846\u4E3A\u51C6\uFF0C\u517C\u5BB9\u73B0\u6709 input.background \u8986\u76D6"},border:{$type:"color",$value:"{component.ui.border}",$description:"\u63A7\u4EF6\u5171\u7528\u9876\u90E8\u67D4\u548C\u63CF\u8FB9"},highlight:{$type:"color",$value:"{component.ui.foreground}",$description:"\u63A7\u4EF6\u5171\u7528\u5E95\u90E8\u5185\u9AD8\u5149\u989C\u8272"},highlightOffset:{$type:"dimension",$value:"{component.ui.shadowSize.s5}",$description:"\u63A7\u4EF6\u5E95\u90E8\u5185\u9AD8\u5149\u5411\u4E0A\u504F\u79FB\u91CF"},highlightBlur:{$type:"dimension",$value:"{component.ui.shadowSize.s9}",$description:"\u63A7\u4EF6\u5E95\u90E8\u5185\u9AD8\u5149\u6A21\u7CCA\u534A\u5F84"},highlightSpread:{$type:"dimension",$value:"{component.ui.shadowSize.s8}",$description:"\u63A7\u4EF6\u5E95\u90E8\u5185\u9AD8\u5149\u6536\u7F29\u91CF"}}},input:{tags:{minHeight:{$type:"dimension",$value:{value:40,unit:"px"},$description:".monkeys-ui-tag-input min-height"},gap:{$type:"dimension",$value:{value:6,unit:"px"},$description:"input.tags.gap \u9ED8\u8BA4\u5C3A\u5BF8"},glass:{blur:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"\u65E7 input.tags \u6750\u8D28\u6A21\u7CCA\uFF0C\u5E93\u5185\u5DF2\u4E0D\u4F7F\u7528\uFF1B\u7EDF\u4E00\u6750\u8D28\u8BF7\u4F7F\u7528 component.ui.material.control"},saturation:{$type:"number",$value:1,$description:"\u65E7 input.tags \u6750\u8D28\u9971\u548C\u5EA6\uFF0C\u5E93\u5185\u5DF2\u4E0D\u4F7F\u7528\uFF1B\u7EDF\u4E00\u6750\u8D28\u8BF7\u4F7F\u7528 component.ui.material.control"}}},paddingInline:{$type:"dimension",$value:"{seed.ui.space.s14}",$description:"input paddingInline \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},paddingBlock:{$type:"dimension",$value:"{seed.ui.space.s7}",$description:"input paddingBlock \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},radius:{$type:"dimension",$value:"{semantic.ui.radius.control}",$description:"input radius \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},background:{$type:"color",$value:"{semantic.color.surface.control.dark}",$description:"input background \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},placeholder:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"input placeholder \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},invalidBorder:{$type:"color",$value:"{semantic.color.status.danger.dark}",$description:"input invalidBorder \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},textarea:{minHeight:{$type:"dimension",$value:{value:85,unit:"px"},$description:".monkeys-ui-textarea min-height"}},switch:{height:{md:{$type:"dimension",$value:{value:34,unit:"px"},$description:"switch.height.md \u9ED8\u8BA4\u5C3A\u5BF8"},sm:{$type:"dimension",$value:{value:28,unit:"px"},$description:"switch.height.sm \u9ED8\u8BA4\u5C3A\u5BF8"},lg:{$type:"dimension",$value:{value:42,unit:"px"},$description:"switch.height.lg \u9ED8\u8BA4\u5C3A\u5BF8"}}},colorSlider:{thumbWidth:{$type:"dimension",$value:{value:96,unit:"px"},$description:"colorSlider.thumbWidth \u9ED8\u8BA4\u5C3A\u5BF8"},glass:{blur:{$type:"dimension",$value:"{seed.ui.size.s12}",$description:"colorSlider \u6750\u8D28\u6A21\u7CCA"},saturation:{$type:"number",$value:1.15,$description:"colorSlider \u6750\u8D28\u9971\u548C\u5EA6"}}},card:{bottomGlow:{color:{$type:"color",$value:"{semantic.color.effect.start.dark}",$description:"\u5361\u7247 BottomGlow \u84DD\u8272\u5916\u7F18\u8272\u6E90\uFF0C\u4E0E\u5171\u4EAB\u5149\u6548\u4E00\u81F4\uFF0C\u6E32\u67D3\u65F6\u4F7F\u7528\u7EAF\u8272"},opacity:{$type:"number",$value:.85,$description:"\u5361\u7247\u5E95\u90E8\u67D4\u5149\u6574\u4F53\u5F3A\u5EA6\uFF0C0 \u4E3A\u5173\u95ED"},height:{$type:"dimension",$value:"{seed.ui.size.s48}",$description:"\u5361\u7247\u5185\u5D4C BottomGlow \u5BBF\u4E3B\u9AD8\u5EA6\uFF0C\u4E0D\u5F71\u54CD\u6587\u5B57\u5E03\u5C40"},offset:{$type:"dimension",$value:"{seed.ui.size.s10}",$description:"\u5361\u7247 BottomGlow \u5411\u4E0B\u504F\u79FB\u8DDD\u79BB\uFF0C\u88C1\u6389\u7D2B\u8272\u4EAE\u82AF\uFF0C\u4EC5\u9732\u51FA\u84DD\u8272\u5916\u7F18"},blur:{$type:"dimension",$value:"{seed.ui.size.s6}",$description:"\u5361\u7247\u5E95\u90E8\u67D4\u5149\u6A21\u7CCA\u534A\u5F84"}},dragHandle:{size:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u76F4\u5F84"},offset:{$type:"dimension",$value:"{seed.ui.size.s5}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u8DDD\u9876\u8FB9\u4E0E\u8D77\u59CB\u8FB9\u7684\u8DDD\u79BB"},iconSize:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u516D\u70B9\u56FE\u6807\u5C3A\u5BF8"},background:{$type:"color",$value:"{semantic.color.scrim.media.dark}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u6DF1\u8272\u80CC\u666F"},foreground:{$type:"color",$value:"{semantic.color.sample.inkLight}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u56FE\u6807\u989C\u8272"}},actions:{glass:{blur:{$type:"dimension",$value:"{seed.ui.size.s12}",$description:"card.actions \u6750\u8D28\u6A21\u7CCA"},saturation:{$type:"number",$value:1.2,$description:"card.actions \u6750\u8D28\u9971\u548C\u5EA6"}}},titleFontSize:{$type:"dimension",$value:"{semantic.font.size.sm}",$description:"card titleFontSize \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},panel:{padding:{$type:"dimension",$value:"{semantic.ui.spacing.surfacePadding}",$description:"panel padding \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},field:{gap:{$type:"dimension",$value:"{semantic.ui.spacing.fieldGap}",$description:"field gap \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},tooltip:{delay:{$type:"duration",$value:{value:500,unit:"ms"},$description:"tooltip delay"},skipDelay:{$type:"duration",$value:{value:300,unit:"ms"},$description:"tooltip skipDelay"},sideOffset:{$type:"dimension",$value:{value:7,unit:"px"},$description:"tooltip \u4E0E\u89E6\u53D1\u5668\u7684\u95F4\u8DDD"}},scrollSurface:{hideDelay:{$type:"duration",$value:{value:700,unit:"ms"},$description:"scrollSurface hideDelay"}},menu:{sideOffset:{$type:"dimension",$value:{value:6,unit:"px"},$description:"menu \u4E0E\u89E6\u53D1\u5668\u7684\u95F4\u8DDD"}},icon:{size:{s12:{$type:"dimension",$value:"{semantic.font.size.xs}",$description:"\u5185\u7F6E\u56FE\u6807 12px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s14:{$type:"dimension",$value:"{semantic.font.size.sm}",$description:"\u5185\u7F6E\u56FE\u6807 14px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s16:{$type:"dimension",$value:"{semantic.font.size.base}",$description:"\u5185\u7F6E\u56FE\u6807 16px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s17:{$type:"dimension",$value:"{semantic.font.size.ui17}",$description:"\u5185\u7F6E\u56FE\u6807 17px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s28:{$type:"dimension",$value:"{semantic.font.size.ui28}",$description:"\u5185\u7F6E\u56FE\u6807 28px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"}}},density:{compact:{buttonPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s3}",$description:"compact buttonPaddingBlock \u5BC6\u5EA6\u7559\u767D"},inputPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s4}",$description:"compact inputPaddingBlock \u5BC6\u5EA6\u7559\u767D"}},default:{buttonPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"default buttonPaddingBlock \u5BC6\u5EA6\u7559\u767D"},inputPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s7}",$description:"default inputPaddingBlock \u5BC6\u5EA6\u7559\u767D"}},comfortable:{buttonPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s10}",$description:"comfortable buttonPaddingBlock \u5BC6\u5EA6\u7559\u767D"},inputPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s11}",$description:"comfortable inputPaddingBlock \u5BC6\u5EA6\u7559\u767D"}}},activeBorder:{$type:"color",$value:"{semantic.color.border.active.dark}",$description:"\u63A7\u4EF6\u6FC0\u6D3B\u72B6\u6001\u63CF\u8FB9\uFF1BSegmentedMenuControl \u7B49\u9009\u4E2D\u63A7\u4EF6\u590D\u7528"},quickPromptMenu:{width:{$type:"dimension",$value:"{component.ui.size.s320}",$description:"QuickPromptMenu \u72EC\u7ACB\u6A21\u5F0F\u9ED8\u8BA4\u5BBD\u5EA6\uFF1B\u5BB9\u5668\u951A\u5B9A\u5BBD\u5EA6\u4E0E\u5B9E\u4F8B content.width \u4F18\u5148"},maxHeightRatio:{$type:"number",$value:.6,$description:"QuickPromptMenu \u5360\u89C6\u53E3\u9AD8\u5EA6\u7684\u6700\u5927\u6BD4\u4F8B\uFF0C\u53D6\u503C (0, 1]\uFF1B\u4ECD\u53D7 Radix \u53EF\u7528\u7A7A\u95F4\u7EA6\u675F"},sideOffset:{$type:"number",$value:8,$description:"QuickPromptMenu \u4E0E\u951A\u5B9A\u5BB9\u5668\u7684\u95F4\u8DDD\uFF0C\u5355\u4F4D CSS px\uFF1B\u4F9B Radix \u6570\u503C\u63A5\u53E3\u6D88\u8D39"},collisionPadding:{$type:"number",$value:12,$description:"QuickPromptMenu \u89C6\u53E3\u907F\u8BA9\u8FB9\u8DDD\uFF0C\u5355\u4F4D CSS px\uFF1B\u4F9B Radix \u6570\u503C\u63A5\u53E3\u6D88\u8D39"}}}}};var Ps={seed:{ui:{color:{page:{$type:"color",$value:{colorSpace:"srgb",components:[.07450980392156863,.08235294117647059,.10196078431372549],hex:"#13151A"},$description:"seed.ui.color.page"},surface:{$type:"color",$value:{colorSpace:"srgb",components:[.09019607843137255,.10588235294117647,.15294117647058825],hex:"#171B27"},$description:"seed.ui.color.surface"},elevated:{$type:"color",$value:{colorSpace:"srgb",components:[.13333333333333333,.15294117647058825,.2196078431372549],hex:"#222738"},$description:"seed.ui.color.elevated"},foreground:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"seed.ui.color.foreground"},muted:{$type:"color",$value:{colorSpace:"srgb",components:[.7843137254901961,.7843137254901961,.7843137254901961],hex:"#C8C8C8"},$description:"seed.ui.color.muted"},subtle:{$type:"color",$value:{colorSpace:"srgb",components:[.6980392156862745,.6980392156862745,.6980392156862745],hex:"#B2B2B2"},$description:"seed.ui.color.subtle"},primary:{$type:"color",$value:{colorSpace:"srgb",components:[.28627450980392155,.4666666666666667,.9215686274509803],hex:"#4977EB"},$description:"seed.ui.color.primary"},lightEdgeBlue:{$type:"color",$value:{colorSpace:"srgb",components:[.25882352941176473,.5215686274509804,1],hex:"#4285FF"},$description:"seed.ui.color.lightEdgeBlue"},primaryHover:{$type:"color",$value:{colorSpace:"srgb",components:[.3803921568627451,.5450980392156862,.9568627450980393],hex:"#618BF4"},$description:"seed.ui.color.primaryHover"},violet:{$type:"color",$value:{colorSpace:"srgb",components:[.5764705882352941,.36470588235294116,1],hex:"#935DFF"},$description:"seed.ui.color.violet"},focus:{$type:"color",$value:{colorSpace:"srgb",components:[.6627450980392157,.7333333333333333,1],hex:"#A9BBFF"},$description:"seed.ui.color.focus"},border:{$type:"color",$value:{colorSpace:"srgb",components:[.6862745098039216,.7333333333333333,1],hex:"#AFBBFF",alpha:.5},$description:"seed.ui.color.border"},blueGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.13725490196078433,.3411764705882353,.9176470588235294],hex:"#2357EA",alpha:.35},$description:"seed.ui.color.blueGlow"},violetGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.4627450980392157,.19215686274509805,1],hex:"#7631FF",alpha:.5},$description:"seed.ui.color.violetGlow"},primaryAccessible:{$type:"color",$value:{colorSpace:"srgb",components:[.23529411764705882,.38823529411764707,.8117647058823529],hex:"#3C63CF"},$description:"seed.ui.color.primaryAccessible"},header:{$type:"color",$value:{colorSpace:"srgb",components:[.12941176470588237,.32941176470588235,.8509803921568627],hex:"#2154D9"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"}}}},semantic:{font:{body:{$type:"fontFamily",$value:["Inter","Monkeys UI Sans","Microsoft YaHei","sans-serif"],$description:"BSD \u5B57\u4F53\u6808"}}}};var wi=i(e=>!!e&&typeof e=="object"&&!Array.isArray(e),"isGroup");function Sn(e,t){function o(n,r){if(r===void 0)return n;if(!wi(n)||!wi(r)||"$value"in r||"$value"in n)return r;let a={...n};for(let l of Object.keys(r))a[l]=o(n[l],r[l]);return a}return i(o,"merge"),o(e,t)}i(Sn,"mergeThemeTokens");function Ns(e,t){if(t==="dark")return e;let o=i(n=>typeof n=="string"?n.replace(/\.(?:dark|light)(?=})/g,`.${t}`):Array.isArray(n)?n.map(o):wi(n)?Object.fromEntries(Object.entries(n).map(([r,a])=>[r,o(a)])):n,"visit");return o(e)}i(Ns,"resolveThemeColorModeTokens");var Ju=Rs,Ms={bsd:{id:"bsd",label:"BSD",colorModes:["light","dark"],tokens:Ps},"neutral-demo":{id:"neutral-demo",label:"Neutral Demo\uFF08\u6F14\u793A\uFF09",colorModes:["light","dark"],tokens:{}}};function Is(e="bsd",t){if(!Object.prototype.hasOwnProperty.call(Ms,e))throw new TypeError(`Unknown UI tenant: ${e}`);let o=Ms[e];return Sn(Sn(Ju,o.tokens),t)}i(Is,"getTenantTheme");var ki=Symbol.for("@inf-monkeys-tech/monkeys-design/ui-theme-context@1"),$i=globalThis;$i[ki]||Object.defineProperty($i,ki,{value:createContext(null)});var Go=$i[ki];var zs=Is("bsd"),Si=Vo(zs,{colorMode:"dark"});var Bs=createContext(0);function Yt(e){let t=useContext(Go),o=Ts(),n=xi(),[r,a]=useState();return useEffect(()=>{if(e||t?.dir||o)return;let s=(n.getDocument?.()??globalThis.document)?.documentElement;if(!s)return;let d=i(()=>a(s.dir==="rtl"?"rtl":"ltr"),"update");d();let u=new MutationObserver(d);return u.observe(s,{attributes:true,attributeFilter:["dir"]}),()=>u.disconnect()},[e,t?.dir,o,n]),e??t?.dir??o??r}i(Yt,"useUIDirection");function Ci(){let e=Ss();return e.provided?e:{...bn,provided:false}}i(Ci,"useUILocale");var tr=new WeakMap;function ip(e){let t=tr.get(e);if(t)return t.count++,()=>As(e);let o=e.documentElement,n=o.getAttribute("data-monkeys-ui-input"),r=i(()=>o.setAttribute("data-monkeys-ui-input","pointer"),"pointer"),a=i(()=>o.setAttribute("data-monkeys-ui-input","keyboard"),"keyboard");return e.addEventListener("pointerdown",r,true),e.addEventListener("keydown",a,true),tr.set(e,{count:1,dispose:i(()=>{e.removeEventListener("pointerdown",r,true),e.removeEventListener("keydown",a,true),n===null?o.removeAttribute("data-monkeys-ui-input"):o.setAttribute("data-monkeys-ui-input",n);},"dispose")}),()=>As(e)}i(ip,"observeInput");function As(e){let t=tr.get(e);t&&--t.count===0&&(t.dispose(),tr.delete(e));}i(As,"releaseInput");function qo(){let e=useContext(Go),t=$n();return useMemo(()=>e?.compiled??(t?.contract?Vo(Ns(Sn(zs,t.contract),t.colorMode==="light"?"light":"dark"),{colorMode:t.colorMode==="light"?"light":"dark"}):Si),[e?.compiled,t?.contract,t?.colorMode])}i(qo,"useUIResolvedTokens");function Cn({children:e}){let t=useContext(Go),o=$n(),n=xi(),r=Jn(),a=Yt(),l=useContext(Bs)+1,[s,d]=useState(null);useEffect(()=>{let h=n.getDocument?.()??globalThis.document;return d(typeof r.container=="function"?r.container():r.container??h?.body??null),h?ip(h):void 0},[n,r.container]);let u=Number(t?.variables["--monkeys-ui-layer-overlay-base"]??Si.values["component.ui.layer.overlayBase"]),m=Number(t?.variables["--monkeys-ui-layer-nesting-step"]??Si.values["component.ui.layer.nestingStep"]),c=t?.compiled.colorMode??o?.colorMode??"dark",p=jsx(Bs.Provider,{value:l,children:jsx("div",{className:"monkeys-ui-scope monkeys-ui-portal",dir:a,"data-monkeys-ui-tenant":t?.tenant??"bsd","data-monkeys-ui-theme":c,style:{...t?.variables,colorScheme:c,"--monkeys-ui-overlay-layer":u+l*m},children:e})});return r.disabled?p:s?createPortal(p,s):null}i(Cn,"Portal");function Ti(e){if(!e||!/^#([\da-f]{3}|[\da-f]{6})$/i.test(e))return "light";let t=e.slice(1).length===3?[...e.slice(1)].map(r=>r+r).join(""):e.slice(1),o=[0,2,4].map(r=>{let a=parseInt(t.slice(r,r+2),16)/255;return a<=.04045?a/12.92:((a+.055)/1.055)**2.4});return o[0]*.2126+o[1]*.7152+o[2]*.0722>=.8?"dark":"light"}i(Ti,"sampleInk");function or(){let[e,t]=useState(false);return useEffect(()=>{let o=window.matchMedia("(prefers-reduced-motion: reduce)"),n=window.matchMedia("(forced-colors: active)"),r=i(()=>t(!o.matches&&!n.matches),"update");return r(),o.addEventListener("change",r),n.addEventListener("change",r),()=>{o.removeEventListener("change",r),n.removeEventListener("change",r);}},[]),e}i(or,"useShaderEnabled");function Us(e){let t=i(n=>{let r=`semantic.color.effect.${n}.${e.colorMode}`;return e.values[r]?.hex??Xn(e,r)},"color"),o=i((n,r)=>Number(e.values[`component.ui.effect.${n}.${r}`]),"number");return {start:t("start"),end:t("end"),lightEdgeStart:t("lightEdgeStart"),chroma:{intensity:o("chroma","intensity"),momentum:o("chroma","momentum"),radius:o("chroma","radius")},aurora:{curtainCount:o("aurora","curtainCount"),height:o("aurora","height"),intensity:o("aurora","intensity"),rayDensity:o("aurora","rayDensity"),speed:o("aurora","speed"),waviness:o("aurora","waviness")},lightEdge:{thickness:o("lightEdge","thickness"),softness:o("lightEdge","softness"),intensity:o("lightEdge","intensity"),bloom:o("lightEdge","bloom"),spots:o("lightEdge","spots"),spotSize:o("lightEdge","spotSize"),smoke:o("lightEdge","smoke"),smokeSize:o("lightEdge","smokeSize"),speed:o("lightEdge","speed")},rotation:o("aurora","rotation"),glowBlur:o("lightEdge","glowBlur"),flowBlur:o("lightEdge","flowBlur"),shapeInset:o("lightEdge","shapeInset")}}i(Us,"resolveEffectTokens");function Os(e){let t=`button-light-edge-${useId().replace(/:/g,"")}`,o=useRef(null),[n,r]=useState(null),a=or(),l=qo(),s=Us(l),[d,u]=useState(false),[m,c]=useState(null);return useEffect(()=>{if(!a)return;let p=true;return import('shaders/react').then(h=>{p&&r(h);}).catch(()=>{}),()=>{p=false;}},[a]),useEffect(()=>{let p=o.current,h=p?.closest("button");if(!h||!p)return;let v=i(()=>{let g=p.clientWidth,f=p.clientHeight;if(!g||!f)return;let x=getComputedStyle(h).borderTopLeftRadius,y=x.endsWith("%")?Math.min(g,f)*parseFloat(x)/100:parseFloat(x)||0,$=s.shapeInset;c({type:"roundedRectSDF",radius:Math.max(.01,g/(2*f)-$/f),height:Math.max(.01,.5-$/f),rounding:Math.max(0,Math.min(y-$,f/2-$))/f});},"update");v();let w=new ResizeObserver(v);return w.observe(h),()=>w.disconnect()},[l]),jsxs("span",{ref:o,className:"monkeys-ui-button-light-edge-mask","data-ready":d||void 0,children:[jsx("svg",{width:"0",height:"0","aria-hidden":"true",className:"monkeys-ui-button-light-edge-defs",children:jsx("defs",{children:jsxs("filter",{id:t,x:"-30%",y:"-100%",width:"160%",height:"300%",colorInterpolationFilters:"sRGB",children:[jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:s.glowBlur,result:"glow"}),jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:s.flowBlur,result:"flow"}),jsxs("feMerge",{children:[jsx("feMergeNode",{in:"glow"}),jsx("feMergeNode",{in:"flow"})]})]})})}),jsxs("span",{className:"monkeys-ui-button-light-edge-flow",style:{filter:`url(#${t})`},children:[jsx("span",{className:"monkeys-ui-button-light-edge-ambient"}),a&&n&&m?jsx(n.Shader,{disableTelemetry:true,style:{width:"100%",height:"100%"},onReady:()=>u(true),children:jsx(n.LightEdge,{colorA:s.lightEdgeStart,colorB:s.end,...s.lightEdge,...e,stops:null,shape:m})}):null]})]})}i(Os,"ButtonLightEdge");var Po=forwardRef(i(function(t,o){let{props:n,slot:r}=cs("Button",t),{variant:a,shape:l="default",icon:s,tone:d="neutral",emphasis:u="secondary",effect:m,size:c="md",loading:p=false,lightEdge:h=false,glassColor:v,glassOpacity:w,toggle:g=false,checked:f,defaultChecked:x,onCheckedChange:y,required:$,motion:N="auto",activeBorderColor:T,type:S="button",className:A,style:O,children:L,onClick:I,onPointerDown:k,onKeyDown:R,...z}=n,_=useContext(Go),X=Yt(),[Z,F]=Bt(f,x,false,y),J=m??(h?"light-edge":"none"),B=a??(l==="icon"?"ghost":l==="tile"?"outline":"solid"),te={...O,...T?{"--monkeys-ui-button-active-border-color":T}:{},...v?{"--monkeys-ui-button-glass-color":v}:{},...w!==void 0?{"--monkeys-ui-button-glass-opacity":Math.min(1,Math.max(0,w))}:{},...g?{"--monkeys-ui-button-glass-state-opacity":Z?1:"var(--monkeys-ui-button-glass-inactive-opacity,var(--monkeys-ui-default-button-glass-inactive-opacity))"}:{}},ee=g?Z:z["aria-pressed"]===true||z["aria-pressed"]==="true",pe=d==="primary"&&B==="solid"||ee&&l!=="icon"&&B!=="glass"&&J!=="brand-glow";return _?.colorSource==="platform"&&pe&&(te={color:"var(--monkeys-ui-button-primary-foreground)",...te}),a==="switch"?jsx(qs,{...z,style:O,ref:o,type:S,value:z.value===void 0?void 0:String(z.value),required:$,checked:f,defaultChecked:x,onCheckedChange:y,className:ft("monkeys-ui-button-switch",A),"data-variant":"switch","data-tone":"primary","data-emphasis":u,"data-effect":J,"data-size":c,"aria-label":z["aria-label"]??(typeof L=="string"?L:void 0),"aria-busy":p||void 0,"aria-disabled":p||z["aria-disabled"],onPointerDown:k,onKeyDown:R,onClick:se=>{if(p||z["aria-disabled"]===true||z["aria-disabled"]==="true"){se.preventDefault();return}I?.(se);}}):jsxs("button",{...z,dir:z.dir??X,ref:o,type:S,style:te,className:ft("monkeys-ui-button",A),"data-light-edge":J==="light-edge"?true:void 0,"data-effect":J,"data-emphasis":u,"data-shape":l,"data-variant":B,"data-tone":d,"data-size":c,"data-motion":N,"data-active-border":T?true:void 0,onPointerDown:se=>{se.currentTarget.dataset.input="pointer",k?.(se);},onKeyDown:se=>{se.currentTarget.dataset.input="keyboard",R?.(se);},"aria-pressed":g?Z:z["aria-pressed"],"aria-busy":p||void 0,"aria-disabled":p||z["aria-disabled"],onClick:se=>{if(p||z["aria-disabled"]===true||z["aria-disabled"]==="true"){se.preventDefault();return}I?.(se),g&&!se.defaultPrevented&&F(!Z);},children:[J==="light-edge"?jsx("span",{...r("effect","monkeys-ui-button-light-edge"),"aria-hidden":"true",children:jsx(Os,{...h===true||!h?{}:h})}):null,jsxs("span",{...r("label","monkeys-ui-button-label"),"data-loading":p||void 0,children:[s?jsx("span",{...r("icon","monkeys-ui-button-icon"),"aria-hidden":"true",children:s}):null,L]}),p?jsx("span",{...r("spinner","monkeys-ui-button-spinner"),"aria-hidden":"true"}):null]})},"Button"));forwardRef(i(function(t,o){return jsx(Po,{...t,ref:o,toggle:true})},"ToggleButton"));forwardRef(i(function({options:t,value:o,defaultValue:n,onValueChange:r,onValueCommit:a,disabled:l,readOnly:s,className:d,style:u,onPointerDown:m,onPointerMove:c,onPointerCancel:p,onKeyDown:h,onPointerUp:v,onKeyUp:w,dir:g,name:f,...x},y){let $=po(x),N=Yt(g==="rtl"||g==="ltr"?g:void 0),[T,S]=Bt(o,n,t[0]?.id??"",r),A=useRef(null),O=useRef(n??t[0]?.id??"");useImperativeHandle(y,()=>A.current,[]),Ho(A,()=>{o===void 0&&S(O.current);});let L=Math.max(0,t.findIndex(E=>E.id===T)),I=t[L],k=or(),[R,z]=useState("keyboard"),_=useRef(null),X=k&&R==="pointer"&&!l&&!s,Z={label:I?.label,color:I?.color},[F,J]=useState({layers:[Z,Z],active:0}),B=F.layers[F.active];if(B.label!==Z.label||B.color!==Z.color){let E=1-F.active;J({layers:F.layers.map((j,le)=>le===E?Z:j),active:E});}let te=t.length>1?L/(t.length-1):.5,ee=i(E=>`calc(${E*100}% + ${.5-E} * var(--monkeys-ui-color-slider-thumb-width,var(--monkeys-ui-default-color-slider-thumb-width)))`,"location"),pe=t.map((E,j)=>{let le=t.length>1?j/(t.length-1):0;return `${E.color} ${ee(le)}`}),se=t.length>1?`linear-gradient(to ${N==="rtl"?"left":"right"}, ${pe.join(", ")})`:I?.color,M=l||s||t.length<2,H=i(E=>{let j=t[Number(E.value)];!M&&j&&a?.(j.id);},"commit");return jsxs("div",{className:ft("monkeys-ui-color-slider",d),"data-animated":X||void 0,"data-disabled":l||t.length===0||void 0,dir:N,style:u,children:[jsx("span",{className:"monkeys-ui-color-slider-track",style:{background:se},"aria-hidden":"true"}),jsx("span",{className:"monkeys-ui-color-slider-positioner",style:{transform:`translateX(${(N==="rtl"?-1:1)*te*100}%)`},"aria-hidden":"true",children:jsx("span",{className:"monkeys-ui-color-slider-thumb","data-ink":Ti(I?.color),style:{"--monkeys-ui-color-slider-selected":I?.color},children:F.layers.map((E,j)=>jsx("span",{className:"monkeys-ui-color-slider-sample","data-active":j===F.active,"data-ink":Ti(E.color),style:{"--monkeys-ui-color-slider-selected":E.color},children:jsx("span",{className:j===F.active?"monkeys-ui-color-slider-label":"monkeys-ui-color-slider-previous-label",children:E.label})},j))})}),jsx("input",{...x,...$,ref:A,type:"range",dir:N,min:0,max:Math.max(0,t.length-1),step:1,value:L,disabled:l||t.length===0,"aria-readonly":s||void 0,"aria-valuetext":I?.label??"",className:"monkeys-ui-color-slider-input",onPointerDown:E=>{m?.(E),s&&E.preventDefault(),!M&&!E.defaultPrevented&&E.isPrimary!==false&&E.button===0&&(_.current={id:E.pointerId,x:E.clientX,y:E.clientY},z("pointer"));},onPointerMove:E=>{c?.(E);let j=_.current;j?.id===E.pointerId&&Math.hypot(E.clientX-j.x,E.clientY-j.y)>3&&z("drag");},onPointerCancel:E=>{_.current=null,z("keyboard"),p?.(E);},onKeyDown:E=>{_.current=null,z("keyboard"),h?.(E),s&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(E.key)&&E.preventDefault();},onChange:E=>{if(!M){let j=t[Number(E.target.value)];j&&S(j.id);}},onPointerUp:E=>{_.current=null,v?.(E),E.defaultPrevented||H(E.currentTarget);},onKeyUp:E=>{w?.(E),!E.defaultPrevented&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(E.key)&&H(E.currentTarget);}}),f?jsx("input",{type:"hidden",name:f,form:x.form,value:I?.id??"",disabled:l||t.length===0}):null]})},"ColorSlider"));var gp=createContext(null);function po(e){let t=useContext(gp),o=Yt(e.dir==="rtl"||e.dir==="ltr"?e.dir:void 0);return {id:t?.id??e.id,dir:e.dir??o,"aria-describedby":[t?.describedBy,e["aria-describedby"]].filter(Boolean).join(" ")||void 0,"aria-invalid":e["aria-invalid"]??t?.invalid,required:e.required??t?.required}}i(po,"useField");var sr=forwardRef(i(function(t,o){let n=po(t);if(t.variant==="tags")return t.mode==="select"?jsx(hp,{...t,ref:o}):jsx(fp,{...t,ref:o});if(t.variant==="search")return jsx(yp,{...t,ref:o});if(t.variant==="number")return jsx(vp,{...t,ref:o});let{variant:r,className:a,...l}=t;return jsx("input",{...l,...n,className:ft("monkeys-ui-input",a),ref:o})},"Input")),fp=forwardRef(i(function({variant:t,mode:o,value:n,defaultValue:r,onValueChange:a,inputValue:l,onInputValueChange:s,removeLabel:d="\u5220\u9664",name:u,form:m,className:c,style:p,disabled:h,readOnly:v,placeholder:w="\u8F93\u5165\u5E76\u56DE\u8F66\u540E\u6DFB\u52A0",onChange:g,onKeyDown:f,onCompositionStart:x,onCompositionEnd:y,...$},N){let T=po($),[S,A]=Bt(n,r,[],a),[O,L]=Bt(l,void 0,"",s),[I,k]=useState(""),R=useRef(false),z=useRef(null),_=h||v;useImperativeHandle(N,()=>z.current,[]);let X=useRef(r??[]);Ho(z,()=>{n===void 0&&A(X.current),L("");}),useEffect(()=>{z.current?.setCustomValidity(T.required&&S.length===0?"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E":"");},[T.required,S.length]);let Z=i(F=>{_||(A(S.filter((J,B)=>B!==F)),k(`${d} ${S[F]}`),z.current?.focus());},"remove");return jsxs("div",{className:ft("monkeys-ui-tag-input",c),style:p,dir:T.dir,"data-variant":t,"data-disabled":h||void 0,"aria-disabled":h||void 0,"data-readonly":v||void 0,"data-invalid":T["aria-invalid"]||void 0,onClick:F=>{!h&&!F.target.closest("button")&&z.current?.focus();},children:[S.map((F,J)=>jsx(Gs,{label:F,disabled:_,removeLabel:d,onRemove:()=>Z(J)},`${J}:${F}`)),jsx("input",{...$,...T,ref:z,form:m,type:"text",className:"monkeys-ui-tag-input-editor",disabled:h,readOnly:v,placeholder:w,value:O,required:T.required&&S.length===0,"aria-required":T.required||void 0,onChange:F=>{_||(L(F.target.value),g?.(F));},onCompositionStart:F=>{R.current=true,x?.(F);},onCompositionEnd:F=>{R.current=false,y?.(F);},onKeyDown:F=>{if(f?.(F),!(F.defaultPrevented||_||R.current||F.nativeEvent.isComposing||F.keyCode===229))if(F.key==="Enter"){F.preventDefault();let J=O.trim();J&&!S.includes(J)&&(A([...S,J]),k(J)),L("");}else F.key==="Backspace"&&O===""&&S.length&&(F.preventDefault(),Z(S.length-1));}}),u?S.map((F,J)=>jsx("input",{type:"hidden",name:u,form:m,value:F,disabled:h},J)):null,jsx("span",{className:"monkeys-ui-visually-hidden","aria-live":"polite","aria-atomic":"true",children:I})]})},"InputTagsControl"));function Gs({label:e,disabled:t,removeLabel:o,onRemove:n,onActivate:r}){return jsxs("span",{className:"monkeys-ui-input-tag",children:[r?jsx("button",{type:"button",className:"monkeys-ui-input-tag-text monkeys-ui-input-tag-activate",title:e,disabled:t,onClick:r,children:e}):jsx("span",{className:"monkeys-ui-input-tag-text",title:e,children:e}),n?jsx("button",{type:"button",className:"monkeys-ui-input-tag-remove",disabled:t,"aria-label":`${o} ${e}`,onClick:n,children:jsx(X,{size:"var(--monkeys-ui-icon-size-s14,var(--monkeys-ui-default-icon-size-s14))","aria-hidden":"true"})}):null]})}i(Gs,"InputTag");var hp=forwardRef(i(function({variant:t,mode:o,label:n,items:r,onAdd:a,onRemove:l,onItemActivate:s,removeLabel:d="\u79FB\u9664",name:u,form:m,disabled:c,readOnly:p,className:h,style:v,onInvalid:w,...g},f){let x=po(g),y=useRef(null),$=useRef(null),N=useRef(null),[T,S]=useState(""),A=c||p;return useImperativeHandle(f,()=>y.current,[]),useEffect(()=>{y.current?.setCustomValidity(x.required&&!r.length?"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E":"");},[x.required,r.length]),jsxs("div",{ref:N,role:"group","aria-label":n,"aria-describedby":x["aria-describedby"],"aria-required":x.required||void 0,"aria-invalid":x["aria-invalid"],tabIndex:-1,dir:x.dir,className:ft("monkeys-ui-tag-input",h),"data-mode":o,"data-empty":!r.length,"data-disabled":c||void 0,"aria-disabled":c||void 0,"data-readonly":p||void 0,"data-invalid":x["aria-invalid"]||void 0,style:v,children:[jsxs("div",{className:"monkeys-ui-tag-input-header",children:[jsx("span",{className:"monkeys-ui-label",children:n}),a?jsx("button",{ref:$,type:"button",className:"monkeys-ui-tag-input-add",disabled:A,"aria-label":"\u6DFB\u52A0"+n,onClick:a,children:jsx(Plus,{"aria-hidden":"true"})}):null]}),r.length?jsx("div",{className:"monkeys-ui-tag-input-items",children:r.map(O=>jsx(Gs,{label:O.label,disabled:A,removeLabel:d,onActivate:s&&O.activatable!==false?()=>{A||s(O.id);}:void 0,onRemove:l?()=>{A||(l(O.id),S(`${d} ${O.label}`),($.current??N.current)?.focus());}:void 0},O.id))}):null,jsx("input",{...g,...x,ref:y,form:m,type:"text",className:"monkeys-ui-visually-hidden","aria-hidden":"true",tabIndex:-1,value:r.length?"selected":"",onChange:()=>{},disabled:c,required:x.required,onInvalid:O=>{w?.(O),O.preventDefault(),($.current??N.current)?.focus();}}),u?r.map(O=>jsx("input",{type:"hidden",name:u,form:m,value:O.id,disabled:c},O.id)):null,jsx("span",{className:"monkeys-ui-visually-hidden","aria-live":"polite","aria-atomic":"true",children:T})]})},"InputTagSelectionControl"));forwardRef(i(function({className:t,...o},n){let r=po(o);return jsx("textarea",{...o,...r,ref:n,className:ft("monkeys-ui-textarea",t)})},"Textarea"));function bp(e){return /^-?(?:\d+|\d*\.\d+)$/.test(e.trim())&&Number.isFinite(Number(e))?Number(e):null}i(bp,"parseNumberValue");forwardRef(i(function(t,o){return jsx(sr,{...t,variant:"number",ref:o})},"NumberInput"));var vp=forwardRef(i(function({variant:t,value:o,defaultValue:n,onValueChange:r,onChange:a,...l},s){let[d,u]=Bt(o,n,"",p=>r?.(p,{numberValue:bp(p)})),m=useRef(null),c=useRef(n??"");return useImperativeHandle(s,()=>m.current,[]),Ho(m,()=>{o===void 0&&u(c.current);}),jsx(sr,{...l,variant:"default",type:"text",inputMode:"decimal",value:d,onChange:p=>{u(p.target.value),a?.(p);},ref:m})},"InputNumberControl"));forwardRef(i(function(t,o){return jsx(sr,{...t,variant:"search",ref:o})},"SearchField"));var yp=forwardRef(i(function({variant:t,value:o,defaultValue:n,onValueChange:r,onChange:a,onSearch:l,clearLabel:s="\u6E05\u7A7A\u641C\u7D22",className:d,onKeyDown:u,onCompositionStart:m,onCompositionEnd:c,disabled:p,readOnly:h,...v},w){let[g,f]=Bt(o,n,"",r),x=useRef(false),y=useRef(null);useImperativeHandle(w,()=>y.current,[]);let $=useRef(n??"");Ho(y,()=>{o===void 0&&f($.current);});let N=i(()=>{let T=y.current;if(p||h||!T)return;Object.getOwnPropertyDescriptor(T.ownerDocument.defaultView.HTMLInputElement.prototype,"value").set.call(T,""),T.dispatchEvent(new Event("input",{bubbles:true})),T.focus();},"clear");return jsxs("div",{className:ft("monkeys-ui-search",d),children:[jsx(Search,{size:"var(--monkeys-ui-icon-size-s17,var(--monkeys-ui-default-icon-size-s17))","aria-hidden":"true"}),jsx(sr,{...v,variant:"default",ref:y,type:"search",disabled:p,readOnly:h,value:g,onChange:T=>{!p&&!h&&(f(T.target.value),a?.(T));},onCompositionStart:T=>{x.current=true,m?.(T);},onCompositionEnd:T=>{x.current=false,c?.(T);},onKeyDown:T=>{u?.(T),!T.defaultPrevented&&T.key==="Enter"&&!p&&!h&&!x.current&&!T.nativeEvent.isComposing&&T.keyCode!==229&&(T.preventDefault(),l?.(g));}}),g?jsx(Po,{shape:"icon","aria-label":s,size:"sm",disabled:p||h,onClick:N,children:jsx(X,{size:"var(--monkeys-ui-icon-size-s14,var(--monkeys-ui-default-icon-size-s14))","aria-hidden":"true"})}):null]})},"InputSearchControl")),qs=forwardRef(i(function({checked:t,defaultChecked:o,onCheckedChange:n,className:r,onPointerDown:a,onKeyDown:l,...s},d){let u=po(s),[m,c]=Bt(t,o,false,n);return jsx(ir.Root,{...s,...u,ref:d,checked:m,onCheckedChange:c,onPointerDown:p=>{p.currentTarget.dataset.input="pointer",a?.(p);},onKeyDown:p=>{p.currentTarget.dataset.input="keyboard",l?.(p);},className:ft("monkeys-ui-switch",r),children:jsx(ir.Thumb,{className:"monkeys-ui-switch-thumb"})})},"Switch"));forwardRef(i(function({label:t,description:o,checked:n,defaultChecked:r,onCheckedChange:a,emphasis:l="secondary",effect:s="none",pending:d=false,disabled:u=false,className:m,...c},p){let h=useId(),v=`${h}-label`,w=o?`${h}-description`:void 0;return jsxs("div",{className:ft("monkeys-ui-switch-field",m),"data-emphasis":l,"data-effect":s,"data-pending":d||void 0,"data-disabled":u||void 0,children:[jsxs("div",{className:"monkeys-ui-switch-field-copy",children:[jsx("span",{id:v,className:"monkeys-ui-switch-field-label",children:t}),o?jsx("span",{id:w,className:"monkeys-ui-switch-field-description",children:o}):null]}),jsx(qs,{...c,ref:p,checked:n,defaultChecked:r,onCheckedChange:g=>{d||a?.(g);},disabled:u,"aria-labelledby":v,"aria-describedby":w,"aria-busy":d||void 0,"aria-disabled":d||void 0,"data-emphasis":l,"data-effect":s,onClick:g=>{d&&g.preventDefault(),c.onClick?.(g);},onKeyDown:g=>{d&&g.preventDefault(),c.onKeyDown?.(g);}})," "]})},"SwitchField"));forwardRef(i(function({indicator:t=jsx(ChevronDown,{size:12}),className:o,children:n,type:r="button",...a},l){return jsxs("button",{...a,ref:l,type:r,className:ft("monkeys-ui-select",o),children:[jsx("span",{className:"min-w-0 truncate",children:n}),jsx("span",{className:"shrink-0","aria-hidden":"true",children:t})]})},"PickerTrigger"));forwardRef(i(function(t,o){return t.variant==="multiple"?jsx(wp,{...t,ref:o}):jsx(xp,{...t,ref:o})},"Select"));var xp=forwardRef(i(function({options:t,placeholder:o,className:n,style:r,id:a,"aria-label":l,"aria-describedby":s,"aria-invalid":d,value:u,defaultValue:m,onValueChange:c,variant:p,...h},v){let w=po({id:a,dir:h.dir,"aria-describedby":s,"aria-invalid":d,required:h.required}),[g,f]=Bt(u,m,"",c),x=Yt(h.dir),y=Ci(),{required:$,...N}=w;return jsxs(Re.Root,{...h,dir:x,required:$,value:g,onValueChange:f,children:[jsxs(Re.Trigger,{ref:v,...N,"aria-required":$||void 0,"aria-label":l,className:ft("monkeys-ui-select",n),style:r,children:[jsx(Re.Value,{placeholder:o??y.messages.multiSelect.placeholder}),jsx(Re.Icon,{"aria-hidden":"true",children:jsx(ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))"})})]}),jsx(Cn,{children:jsxs(Re.Content,{className:"monkeys-ui-select-content",position:"popper",sideOffset:6,children:[jsx(Re.ScrollUpButton,{children:jsx(ChevronUp,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})}),jsx(Re.Viewport,{children:t.map(T=>jsxs(Re.Item,{value:T.value,disabled:T.disabled,className:"monkeys-ui-select-item",children:[jsx(Re.ItemText,{children:T.label}),jsx(Re.ItemIndicator,{children:jsx(Check$1,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]},T.value))}),jsx(Re.ScrollDownButton,{children:jsx(ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]})})]})},"SingleSelect")),wp=forwardRef(i(function({options:t,placeholder:o,className:n,style:r,id:a,"aria-label":l,"aria-describedby":s,"aria-invalid":d,value:u,defaultValue:m,onValueChange:c,open:p,defaultOpen:h,onOpenChange:v,...w},g){let f=po({id:a,dir:w.dir,"aria-describedby":s,"aria-invalid":d,required:w.required}),[x,y]=Bt(u,m,[],c),[$,N]=Bt(p,h,false,v),T=useRef(null),S=useRef(null),A=useRef(m??[]);useImperativeHandle(g,()=>T.current,[]),Ho(S,()=>{u===void 0&&y(A.current),N(false),Z(false);});let O=Yt(w.dir),L=Ci(),{required:I,...k}=f,R=useId(),z=f.id??R,_=R+"-required",[X,Z]=useState(false);useEffect(()=>{(x.length||!I)&&Z(false);},[x.length,I]);let F=t.filter(B=>x.includes(B.value)).map(B=>B.label),J=i(B=>{B.disabled||w.disabled||y(x.includes(B.value)?x.filter(te=>te!==B.value):[...x,B.value]);},"toggle");return jsxs(Pe.Root,{dir:O,open:$,onOpenChange:N,modal:false,children:[jsx(Pe.Trigger,{asChild:true,children:jsxs("button",{ref:T,type:"button",...k,id:z,"aria-label":l,"aria-describedby":[f["aria-describedby"],I?_:""].filter(Boolean).join(" ")||void 0,"aria-invalid":f["aria-invalid"]||X||void 0,disabled:w.disabled,className:ft("monkeys-ui-select",n),style:r,"data-variant":"multiple","data-placeholder":!F.length||void 0,children:[jsx("span",{className:"monkeys-ui-select-value",children:F.length?F.join("\u3001"):o??L.messages.multiSelect.placeholder}),jsx(ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})]})}),jsx(Cn,{children:jsx(Pe.Content,{"aria-label":l,"aria-labelledby":l?void 0:z,sideOffset:6,align:"start",className:"monkeys-ui-select-content monkeys-ui-select-multiple-content",children:t.map(B=>jsxs(Pe.CheckboxItem,{checked:x.includes(B.value),disabled:B.disabled,onSelect:te=>{te.preventDefault(),J(B);},className:"monkeys-ui-select-item",children:[jsx("span",{children:B.label}),jsx(Pe.ItemIndicator,{children:jsx(Check$1,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]},B.value))})}),I?jsx("span",{id:_,className:"monkeys-ui-visually-hidden",children:L.locale.startsWith("zh")?"\u5FC5\u586B\uFF0C\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u9879":"Required. Select at least one option."}):null,jsx("input",{ref:S,type:"text",className:"monkeys-ui-visually-hidden","aria-hidden":"true",tabIndex:-1,form:w.form,autoComplete:w.autoComplete,value:x.length?"selected":"",onChange:()=>{},disabled:w.disabled,required:I,onInvalid:B=>{B.preventDefault(),Z(true),T.current?.focus();}}),w.name?x.map(B=>jsx("input",{type:"hidden",name:w.name,form:w.form,value:B,disabled:w.disabled},B)):null]})},"MultipleSelect"));var Ks=co([It.red,It.orange,It.yellow,It.green,It.cyan,It.blue,It.purple]);function No({children:e,size:t=15,strokeWidth:o=1.8}){return jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e})}i(No,"Icon");var $p={clip:jsx("path",{d:"m21.4 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"}),chart:jsx("path",{d:"M4 20V10M10 20V4M16 20v-7M22 20H2"}),layers:jsxs("g",{children:[jsx("path",{d:"M12 2 2 7l10 5 10-5-10-5z"}),jsx("path",{d:"M2 17l10 5 10-5M2 12l10 5 10-5"})]}),globe:jsxs("g",{children:[jsx("circle",{cx:"12",cy:"12",r:"10"}),jsx("path",{d:"M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]})},Sp={figma:jsxs("svg",{width:"11",height:"16",viewBox:"0 0 38 57","aria-hidden":"true",children:[jsx("path",{d:"M9.5 57A9.5 9.5 0 0 0 19 47.5V38H9.5a9.5 9.5 0 0 0 0 19z",fill:"var(--bui-brand-figma-green)"}),jsx("path",{d:"M0 28.5A9.5 9.5 0 0 1 9.5 19H19v19H9.5A9.5 9.5 0 0 1 0 28.5z",fill:"var(--bui-brand-figma-purple)"}),jsx("path",{d:"M0 9.5A9.5 9.5 0 0 1 9.5 0H19v19H9.5A9.5 9.5 0 0 1 0 9.5z",fill:"var(--bui-brand-figma-red)"}),jsx("path",{d:"M19 0h9.5a9.5 9.5 0 1 1 0 19H19V0z",fill:"var(--bui-brand-figma-orange)"}),jsx("path",{d:"M38 28.5a9.5 9.5 0 1 1-19 0 9.5 9.5 0 0 1 19 0z",fill:"var(--bui-brand-figma-blue)"})]}),slack:jsxs("svg",{width:"15",height:"15",viewBox:"0 0 127 127","aria-hidden":"true",children:[jsx("path",{d:"M27.2 80c0 7.3-5.9 13.2-13.2 13.2C6.7 93.2.8 87.3.8 80c0-7.3 5.9-13.2 13.2-13.2h13.2V80zm6.6 0c0-7.3 5.9-13.2 13.2-13.2 7.3 0 13.2 5.9 13.2 13.2v33c0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V80z",fill:"var(--bui-brand-slack-red)"}),jsx("path",{d:"M47 27.2c-7.3 0-13.2-5.9-13.2-13.2C33.8 6.7 39.7.8 47 .8c7.3 0 13.2 5.9 13.2 13.2v13.2H47zm0 6.7c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H13.9C6.6 60.3.7 54.4.7 47.1c0-7.3 5.9-13.2 13.2-13.2H47z",fill:"var(--bui-brand-slack-blue)"}),jsx("path",{d:"M99.9 47.1c0-7.3 5.9-13.2 13.2-13.2 7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H99.9V47.1zm-6.6 0c0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V13.9C66.9 6.6 72.8.7 80.1.7c7.3 0 13.2 5.9 13.2 13.2v33.2z",fill:"var(--bui-brand-slack-green)"}),jsx("path",{d:"M80.1 99.8c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V99.8h13.2zm0-6.6c-7.3 0-13.2-5.9-13.2-13.2 0-7.3 5.9-13.2 13.2-13.2h33.1c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H80.1z",fill:"var(--bui-brand-slack-yellow)"})]}),gmail:jsxs("svg",{width:"15",height:"12",viewBox:"0 0 256 193","aria-hidden":"true",children:[jsx("path",{d:"M58.182 192.05V93.14L27.507 65.077 0 49.504v125.091c0 9.658 7.825 17.455 17.455 17.455h40.727Z",fill:"var(--bui-brand-gmail-blue)"}),jsx("path",{d:"M197.818 192.05h40.727c9.659 0 17.455-7.826 17.455-17.455V49.505l-31.156 17.837-27.026 25.798v98.91Z",fill:"var(--bui-brand-gmail-green)"}),jsx("path",{d:"m58.182 93.14-4.174-38.647 4.174-36.989L128 69.868l69.818-52.364 4.669 34.992-4.669 40.644L128 145.504 58.182 93.14Z",fill:"var(--bui-brand-gmail-red)"}),jsx("path",{d:"M197.818 17.504V93.14L256 49.504V26.231c0-21.585-24.64-33.89-41.89-20.945l-16.292 12.218Z",fill:"var(--bui-brand-gmail-yellow)"}),jsx("path",{d:"m0 49.504 26.759 20.07L58.182 93.14V17.504L41.89 5.286C24.61-7.66 0 4.646 0 26.23v23.273Z",fill:"var(--bui-brand-gmail-fold)"})]})};function Cp(e){let t=/(^|\s)([@/])([\w-]*)$/.exec(e);return t?{kind:t[2]==="@"?"at":"slash",query:t[3].toLowerCase(),start:t.index+t[1].length}:null}i(Cp,"parseToken");function Ni({variant:e="Rounded",sources:t=[],commands:o=[],models:n=[],files:r=[],connected:a=false,listening:l=false,onAttach:s,onConnect:d,onDictation:u,onModelChange:m,onRemoveAttachment:c,renderAttachButton:p,controls:h,tall:v=false,minRows:w=1,showDictation:g=false,placeholder:f,onSend:x,onSubmit:y,value:$,onValueChange:N,disabled:T=false,busy:S=false,onStop:A,inputLabel:O}){let L=oe(),I=qo(),k=e==="Pill",[R,z]=useState(""),_=$??R,X=i(D=>{z(D),N?.(D);},"setDraft"),Z=useRef(_);Z.current=_;let F=useRef(false),J=useRef(true),[B,te]=useState(false);useEffect(()=>(J.current=true,()=>{J.current=false;}),[]);let ee=t.length>0,pe=n.length>0,se=ee||!!s||!!p,[M,H]=useState(false),[E,j]=useState(false),[le,re]=useState(false),[de,Ee]=useState(n[0]??{key:"",name:L("Model")}),[q,ge]=useState(0),[Xe,qt]=useState(false),Se=Math.max(1,Math.min(5,Math.trunc(w)||1)),mt=Xe||v||Se>1||!!h,[Ut,ro]=useState(null),[Ft,G]=useState(false),[et,io]=useState(null),[dn,ao]=useState(null),[so,cn]=useState(0),[Kr,Xr]=useState(0),Ce=useRef(null),Kt=useRef(null),lo=useRef(null),C=useRef(null),Y=useRef(null),Oe=useRef([]),Nt=useRef([]),Mt=useRef(null),$o=useRef(null),un=useRef(false),Ct=M?null:Cp(_),st=T||B?null:E||Ct?.kind==="at"&&ee?"at":Ct?.kind==="slash"&&o.length?"slash":null,So=E?"":Ct?.query??"",Ot=st==="at"?t.filter(D=>D.name.toLowerCase().includes(So)):st==="slash"?o.filter(D=>D.name.slice(1).startsWith(So)):[];useEffect(()=>{ge(0),G(false);},[st,So]),useLayoutEffect(()=>{let D=Oe.current[q];D&&ro({top:D.offsetTop,height:D.offsetHeight});},[st,So,q,a,Ot.length]);let On=n.findIndex(D=>D.key===de.key);useLayoutEffect(()=>{if(!le)return;let D=Nt.current[dn??On];D&&io({top:D.offsetTop,height:D.offsetHeight});},[le,dn,On]),useLayoutEffect(()=>{if(!le||!Ce.current||!Y.current)return;let D=Ce.current.getBoundingClientRect(),ye=Y.current.getBoundingClientRect();cn(Math.max(0,Math.min(ye.left-D.left,D.width-176))),Xr(D.bottom-ye.top+8);},[le,mt,de.name]),useEffect(()=>{le||ao(null);},[le]);let xa=i(()=>{let D=Mt.current;if(!D)return null;try{return is({canvas:D,palette:Ks,direction:"ltr",bandTight:10,swellAmount:.85})}catch{return null}},"makeShader");useEffect(()=>{if(n.some(D=>D.accent))return $o.current=xa(),()=>{$o.current?.destroy(),$o.current=null;}},[]);let ac=i(()=>{if(un.current||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;$o.current?.destroy();let D=xa();if($o.current=D,!D)return;un.current=true,as(D,{palette:Ks,direction:"ltr",sweepMs:570,outroMs:80,peakAlpha:1.3,bandTight:10,brightness:1.4,swellAmount:1,waveSpeed:1.8,easing:"easeOutExpo"}).done.finally(()=>{un.current=false;});},"celebrate"),sc=i(D=>{Ee(D),re(false),m?.(D.key),D.accent&&ac();},"selectModel");useLayoutEffect(()=>{let D=lo.current,ye=Kt.current,lt=C.current;if(!D||!ye||!lt)return;let _t=i(()=>{let Ta=Array.from(ye.children).filter(Qr=>Qr.tagName==="BUTTON"),lc=parseFloat(getComputedStyle(ye).columnGap)||0,dc=ye.clientWidth-Ta.reduce((Qr,cc)=>Qr+cc.offsetWidth,0)-Ta.length*lc,pn=getComputedStyle(D),Ra=(parseFloat(pn.paddingTop)||0)+(parseFloat(pn.paddingBottom)||0);qt(_.includes(`
|
|
183
|
-
`)||lt.offsetWidth+8>dc);let Pa=Math.max(parseFloat(pn.minHeight)||28,(parseFloat(pn.lineHeight)||18)*Se+Ra),Na=Math.max(Pa,(parseFloat(pn.lineHeight)||18)*5+Ra);D.style.height="0px";let Ma=D.scrollHeight;D.style.height=`${Math.min(Math.max(Ma,Pa),Na)}px`,D.style.overflowY=Ma>Na?"auto":"hidden";},"resize");_t();let Sa=ye.clientWidth,Ca=new ResizeObserver(()=>{Sa!==ye.clientWidth&&(Sa=ye.clientWidth,_t());});return Ca.observe(ye),()=>Ca.disconnect()},[_,Xe,v,Se,se,pe,u,g]),useEffect(()=>{if(!le&&!E)return;let D=i(ye=>{ye.target.closest("[data-promptbar]")||(re(false),j(false));},"close");return document.addEventListener("pointerdown",D),()=>document.removeEventListener("pointerdown",D)},[le,E]);let Yr=i(()=>{j(false),re(false);},"closeMenus"),wa=i(D=>{t.find(lt=>lt.key===D.key)?.attach?(s?.(),Ct&&X(_.slice(0,Ct.start))):X(st==="at"?`${Ct?_.slice(0,Ct.start):_}@${D.name} `:`${Ct?_.slice(0,Ct.start):_}${D.name} `),j(false),H(false),lo.current?.focus();},"pick"),_n=(_.trim().length>0||r.length>0)&&!!(y||x)&&!S&&!T&&!B,ka=i(async()=>{if(!_n||F.current)return;let D=_;F.current=true,te(true),Yr();try{let ye=y?await y(D.trim()):void 0;ye!==!1&&await x?.(D.trim()),ye!==!1&&J.current&&Z.current===D&&X("");}catch{}finally{F.current=false,J.current&&te(false);}},"send"),$a=jsx(Po,{type:"button",shape:"icon",size:"sm",variant:"ghost","aria-label":L("Add attachments and sources"),"aria-expanded":ee?E:void 0,disabled:T||B,onClick:()=>{if(p){Yr();return}re(false),ee?j(D=>!D):s?.(),lo.current?.focus();},className:`promptbar-attach shrink-0 text-ink-3 ${E?"bg-hover text-ink":""}`,children:jsx(Plus,{size:I.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"})});return jsx(U,{children:jsx("div",{"data-promptbar":true,className:"w-full",children:jsxs("div",{ref:Ce,className:"relative",children:[st&&jsxs("div",{onMouseLeave:()=>G(false),className:"absolute inset-x-0 bottom-full z-10 mb-2 rounded-[10px] bg-surface p-1 shadow-raised",style:{animation:"bui-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"bottom center"},children:[jsx("span",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-1 rounded-[6px] bg-hover",style:{top:Ut?.top??0,height:Ut?.height??0,opacity:Ut&&Ft&&Ot.length>0?1:0,transition:"top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease"}}),Ot.map((D,ye)=>{let lt=st==="at"?t.find(_t=>_t.key===D.key):void 0;return jsxs("button",{type:"button",ref:_t=>{Oe.current[ye]=_t;},onMouseDown:_t=>_t.preventDefault(),onMouseEnter:()=>{ge(ye),G(true);},onClick:()=>wa(D),className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-chip)] px-2 text-left",children:[lt&&jsx("span",{className:"flex size-5.5 shrink-0 items-center justify-center text-ink-2",children:lt.brand?Sp[lt.brand]:jsx(No,{size:15,children:$p[lt.glyph??"clip"]})}),jsx("span",{className:"shrink-0 text-[12.5px] font-medium text-ink",children:D.name}),jsx("span",{className:"min-w-0 flex-1 truncate text-[12px] text-ink-3",children:D.desc}),lt?.connect&&jsx("span",{role:"button",tabIndex:-1,onClick:_t=>{_t.stopPropagation(),d?.(lt?.key??"");},className:`shrink-0 text-[12px] font-medium transition-colors duration-100 ${a?"text-green":"text-accent-ink hover:underline"}`,children:L(a?"Connected":"Connect")})]},D.key)}),Ot.length===0&&jsx("div",{className:"flex h-9 items-center px-2 text-[12px] text-ink-3",children:L("noMatches",{query:So})}),jsx("div",{className:"mt-1 border-t border-line px-2 pt-1.5 pb-1 text-[11px] text-ink-3",children:L(st==="at"?"Type to search sources & files":"Type to search commands")})]}),le&&jsxs("div",{onMouseLeave:()=>ao(null),className:"absolute z-10 w-44 rounded-[10px] bg-surface p-1 shadow-raised",style:{left:so,bottom:Kr,animation:"bui-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"bottom left"},children:[jsx("span",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-1 rounded-[6px] bg-hover",style:{top:et?.top??0,height:et?.height??0,opacity:et&&dn!==null?1:0,transition:"top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease"}}),n.map((D,ye)=>jsxs("button",{type:"button",ref:lt=>{Nt.current[ye]=lt;},onMouseDown:lt=>lt.preventDefault(),onMouseEnter:()=>ao(ye),onClick:()=>{sc(D),lo.current?.focus();},className:"relative z-10 flex h-7.5 w-full items-center gap-2 rounded-[var(--bui-radius-chip)] px-2 text-left",children:[jsx("span",{className:"min-w-0 flex-1 truncate text-[12.5px] font-medium text-ink",children:D.name}),jsx("span",{className:"shrink-0 text-[11px] text-ink-3",children:D.tag}),jsx("span",{className:`shrink-0 text-ink ${D.key===de.key?"":"invisible"}`,children:jsx(No,{size:13,strokeWidth:2.5,children:jsx("path",{d:"M20 6L9 17l-5-5"})})})]},D.key))]}),jsxs("div",{style:{padding:`var(--bui-token-composer-padding, ${v?"calc(var(--bui-spacing) * 3.5)":"calc(var(--bui-spacing) * 1.5)"})`,borderRadius:`var(--bui-token-radius-control, ${k?r.length>0||mt?"24px":"9999px":v?"22px":"14px"})`},className:`promptbar-surface relative isolate flex flex-col overflow-hidden border border-line bg-surface shadow-card transition-[border-color,border-radius] duration-150 focus-within:border-line-strong ${v?"gap-2.5 p-3.5":"gap-1.5 p-1.5"} ${k?r.length>0||mt?"rounded-[24px]":"rounded-full":v?"rounded-[22px]":"rounded-[14px]"}`,children:[jsx("canvas",{ref:Mt,"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-10 h-full w-full",style:{borderRadius:"inherit"}}),jsx("span",{ref:C,"aria-hidden":"true",className:"promptbar-measure pointer-events-none absolute invisible whitespace-pre text-[13px] leading-[18px]",children:_}),r.length>0&&jsx("div",{className:`flex flex-wrap gap-1.5 pt-0.5 ${k?"px-1":"px-0.5"}`,children:r.map((D,ye)=>jsxs("span",{className:`flex h-6.5 items-center gap-1.5 bg-field py-1 pr-1 pl-1.5 text-[11.5px] text-ink-2 shadow-hairline ${k?"rounded-full":"rounded-chip"}`,style:{animation:"bui-pop-in 200ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsx(No,{size:12,children:jsxs("g",{children:[jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsx("path",{d:"M14 2v6h6"})]})}),jsx("span",{className:"max-w-36 truncate",children:D}),jsx("button",{type:"button","aria-label":`Remove ${D}`,onClick:()=>c?.(ye),className:`-my-1 flex size-6 items-center justify-center text-ink-3 transition-colors duration-100 hover:bg-line/70 hover:text-ink ${k?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-scale-5)]"}`,children:jsx(No,{size:10,strokeWidth:2.5,children:jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]},`${D}-${ye}`))}),jsxs("div",{ref:Kt,className:"promptbar-controls flex flex-wrap items-end gap-x-1 gap-y-1.5",children:[se&&(p?p($a,Ce):$a),h,jsx("textarea",{ref:lo,style:{minHeight:`var(--bui-token-composer-control-height, ${v?"68px":"calc(var(--bui-spacing) * 7)"})`},rows:Se,value:_,disabled:T||B,onChange:D=>{X(D.target.value),H(false),j(false);},onKeyDown:D=>{if(!(D.nativeEvent.isComposing||D.keyCode===229)){if(st&&Ot.length>0){if(D.key==="ArrowDown"||D.key==="ArrowUp"){D.preventDefault(),G(true),ge(ye=>(ye+(D.key==="ArrowDown"?1:Ot.length-1))%Ot.length);return}if(D.key==="Enter"&&!D.shiftKey||D.key==="Tab"){D.preventDefault(),wa(Ot[q]);return}}if(D.key==="Escape"){H(true),Yr();return}D.key==="Enter"&&!D.shiftKey&&!D.nativeEvent.isComposing&&(D.preventDefault(),ka());}},placeholder:l?L("Listening\u2026"):f??L("Write a message\u2026"),"aria-label":O??L("Prompt"),className:`promptbar-input ${v?"min-h-[68px] px-2 py-2 text-[14px] leading-5":"min-h-7 px-1 py-[5px] text-[13px] leading-[18px]"} min-w-0 w-full resize-none bg-transparent text-ink outline-none [overflow-wrap:anywhere] placeholder:text-ink-3 ${mt?"order-first basis-full":"flex-1"}`}),pe&&jsxs("button",{disabled:T||B,ref:Y,type:"button","aria-expanded":le,"aria-label":L("Choose model"),onClick:()=>{j(false),re(D=>!D);},className:`promptbar-model flex h-7 shrink-0 items-center gap-1 px-1.5 text-[12px] font-medium text-ink-2 transition-colors duration-150 hover:bg-hover hover:text-ink ${k?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-control)]"} `,children:[de.name,jsx("span",{className:"text-ink-3",children:jsx(No,{size:11,strokeWidth:2.4,children:jsx("path",{d:"M6 9l6 6 6-6"})})})]}),mt&&jsx("span",{className:"flex-1","aria-hidden":"true"}),(g||u)&&jsx("button",{disabled:T||B||!u,type:"button","aria-label":L(l?"Stop dictation":"Start dictation"),"aria-pressed":l,onClick:()=>u?.(!l),className:`flex size-7 shrink-0 items-center justify-center transition-[background-color,color,transform] duration-150 active:scale-[0.94] ${k?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-control)]"} ${l?"bg-accent-tint text-accent-ink":"text-ink-3 hover:bg-hover hover:text-ink"} `,children:l?jsx("span",{className:"flex h-3.5 items-center gap-[2.5px]",children:[0,1,2].map(D=>jsx("span",{className:"w-[2.5px] rounded-full bg-current",style:{height:"100%",animation:`bui-eq-bounce 900ms ease-in-out ${D*150}ms infinite`}},D))}):jsx(No,{size:15,strokeWidth:2,children:jsxs("g",{children:[jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z"}),jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2M12 19v3"})]})})}),jsx("button",{type:"button","aria-label":L(S&&A?"Stop response":"Send"),disabled:S&&A?false:!_n,onClick:S&&A?A:()=>{ka();},className:`flex size-7 shrink-0 items-center justify-center transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.94] ${k?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-control)]"} `,style:{background:_n||S&&A?"var(--bui-token-primary, var(--bui-ink))":"var(--bui-line-strong)",color:_n||S&&A?"var(--bui-token-primary-foreground, var(--bui-surface))":"var(--bui-ink-2)"},children:jsx(No,{size:16,strokeWidth:2.4,children:S&&A?jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"currentColor",stroke:"none"}):jsx("path",{d:"M12 19V5M5 12l7-7 7 7"})})})]})]})]})})})}i(Ni,"BUIPromptBar");var Xs=Array.from({length:9},(e,t)=>{let o=Math.floor(t/3);return (t%3+Math.abs(o-1))*90}),Rp=[0,1,2,5,8,7,6,3],Pp=Array.from({length:9},(e,t)=>{let o=Rp.indexOf(t);return o===-1?null:o*110}),dr={Drive:{delays:Xs,dur:650,round:false},Dots:{delays:Xs,dur:650,round:true},Orbit:{delays:Pp,dur:950,round:false}};function Mi({delays:e,dur:t,round:o}){return jsx("span",{"aria-hidden":true,className:"grid shrink-0 grid-cols-[repeat(3,4px)] gap-[1.5px]",children:e.map((n,r)=>jsx("span",{className:`size-[4px] bg-ink ${o?"rounded-full":"rounded-[1px]"}`,style:{opacity:n===null?.07:.15,animation:n===null?"none":`bui-pixel-on ${t}ms ease-in-out ${n}ms infinite`}},r))})}i(Mi,"LoaderGrid");function Np({elapsedMs:e,startedAtMs:t}){let[o]=useState(()=>Date.now()),[n,r]=useState(()=>Date.now()),a=t??o,l=e===void 0&&Number.isFinite(a);if(useEffect(()=>{if(!l)return;let u=i(()=>r(Date.now()),"update");u();let m=setInterval(u,100);return ()=>clearInterval(m)},[l,a]),e===null||!Number.isFinite(e??a))return null;let s=Math.max(0,e??n-a)/1e3,d=s<60?`${s.toFixed(1)}s`:`${Math.floor(s/60)}m ${(s%60).toFixed(1)}s`;return jsx("span",{"data-bui-elapsed":true,"aria-live":"off",className:"shrink-0 whitespace-nowrap font-mono text-[12px] text-ink-3 tabular-nums",children:d})}i(Np,"ElapsedTime");function Bi({label:e,variant:t="Drive",videoSrc:o,elapsedMs:n,startedAtMs:r}){let a=oe(),l=t==="Surfer",s=e??a("Loading"),[d,u]=useState(true),{delays:m,dur:c,round:p}=dr[t]??dr.Drive,h=jsx("span",{className:"min-w-0 [overflow-wrap:anywhere] bg-clip-text text-[13px] font-medium text-transparent",style:{backgroundImage:"linear-gradient(90deg, var(--bui-ink-3) 35%, var(--bui-ink) 50%, var(--bui-ink-3) 65%)",backgroundSize:"200% 100%",animation:"bui-shimmer-text 1.4s linear infinite"},children:s}),v=jsx(Np,{elapsedMs:n,startedAtMs:r});return l?jsx(U,{children:jsxs("div",{"data-bui-loading-state":true,role:"status",className:"flex w-fit flex-col items-start",children:[jsxs("div",{className:"flex items-center gap-2.5",children:[jsx(Mi,{...dr.Drive}),h,v]}),jsx("div",{className:"mt-2 w-56 overflow-hidden rounded-[10px] shadow-overlay",style:{animation:"bui-pop-in 200ms cubic-bezier(0.16,1,0.3,1) both",transformOrigin:"top left"},children:jsx("div",{className:"relative aspect-video w-full",style:{background:"var(--bui-tooltip-bg)"},children:d&&o?jsx("video",{src:o,autoPlay:true,muted:true,loop:true,playsInline:true,onError:()=>u(false),className:"h-full w-full object-cover"}):jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1.5",children:[jsx(Mi,{...dr.Drive}),jsx("span",{className:"px-3 text-center font-mono text-[10px]",style:{color:"var(--bui-tooltip-muted)"},children:a("Video unavailable")})]})})})]})}):jsx(U,{children:jsxs("div",{"data-bui-loading-state":true,role:"status",className:"flex max-w-full w-fit items-center gap-2.5",children:[jsx(Mi,{delays:m,dur:c,round:p}),h,v]})})}i(Bi,"BUILoadingState");function Ys(e){return !!e&&typeof e=="object"&&!Array.isArray(e)}i(Ys,"isRecord");function Mp(e){if(e!==void 0&&e!=="ltr"&&e!=="rtl")throw new TypeError('MonkeysProvider direction must be "ltr" or "rtl".')}i(Mp,"validateDirection");function Ip(e){if(e!==void 0){if(!Ys(e))throw new TypeError("MonkeysProvider environment must be an object.");if(e.getDocument!==void 0&&typeof e.getDocument!="function")throw new TypeError("MonkeysProvider environment.getDocument must be a function.");if(e.getWindow!==void 0&&typeof e.getWindow!="function")throw new TypeError("MonkeysProvider environment.getWindow must be a function.")}}i(Ip,"validateEnvironment");function Bp(e){if(e!==void 0){if(!Ys(e))throw new TypeError("MonkeysProvider portal must be an object.");if(e.disabled!==void 0&&typeof e.disabled!="boolean")throw new TypeError("MonkeysProvider portal.disabled must be a boolean.");if(e.container!=null&&typeof e.container!="function"&&typeof e.container!="object")throw new TypeError("MonkeysProvider portal.container must be an Element, null, or a function.")}}i(Bp,"validatePortal");function Ap(e,t,o,n){return e?Vo(e,{colorMode:t,density:o}):n}i(Ap,"resolveProviderTheme");function Ai({children:e,locale:t,messages:o,direction:n,theme:r,themeId:a,colorMode:l,density:s,appearance:d,environment:u,iconResolver:m,imageResolver:c,portal:p,statusStates:h,listFooter:v}){let w=useContext(xn),g=useContext(jo),f=useContext(wn),x=useContext(kn);if(Mp(n),Ip(u),m!==void 0&&typeof m!="function")throw new TypeError("MonkeysProvider iconResolver must be a function.");if(c!==void 0&&typeof c!="function")throw new TypeError("MonkeysProvider imageResolver must be a function.");Bp(p);let y=useMemo(()=>yi(t,o,w),[t,o,w]),$=useMemo(()=>({...y,provided:true}),[y]),N=useMemo(()=>Ap(r,l,s,g.resolvedTheme),[l,s,g.resolvedTheme,r]),T=useMemo(()=>({provided:true,resolvedTheme:N,themeId:a??g.themeId,baseAppearance:{...g.baseAppearance,...d?.base,...s?{density:s}:void 0,slots:{...g.baseAppearance?.slots,...d?.base?.slots},styles:{...g.baseAppearance?.styles,...d?.base?.styles}},dataExplorerAppearance:{...g.dataExplorerAppearance,...d?.dataExplorer,...s?{density:s}:void 0,slots:{...g.dataExplorerAppearance?.slots,...d?.dataExplorer?.slots},styles:{...g.dataExplorerAppearance?.styles,...d?.dataExplorer?.styles}},statusStates:{...g.statusStates,...h,loading:{...g.statusStates?.loading,...h?.loading},empty:{...g.statusStates?.empty,...h?.empty},error:{...g.statusStates?.error,...h?.error},permission:{...g.statusStates?.permission,...h?.permission}},listFooter:{...g.listFooter,...v,...v?.pageSizeOptions?{pageSizeOptions:[...v.pageSizeOptions]}:void 0}}),[d?.base,d?.dataExplorer,s,g.baseAppearance,g.dataExplorerAppearance,g.statusStates,g.themeId,N,h,v,a]),S=useMemo(()=>({provided:true,direction:n??f.direction??"ltr"}),[n,f.direction]),A=useMemo(()=>({provided:true,iconResolver:m??x.iconResolver,imageResolver:c??x.imageResolver,environment:{...x.environment,...u},portal:{...x.portal,...p}}),[u,x.environment,x.iconResolver,m,c,x.imageResolver,x.portal,p]);return jsx(xn.Provider,{value:$,children:jsx(jo.Provider,{value:T,children:jsx(wn.Provider,{value:S,children:jsx(kn.Provider,{value:A,children:e})})})})}i(Ai,"MonkeysProvider");function Ei({container:e,composer:t=false,children:o}){let n=useRef(null),[r]=useState(()=>typeof document>"u"?null:document.createElement("div"));useLayoutEffect(()=>{if(!r)return;let l=r.contains(document.activeElement)?document.activeElement:null;r.style.display="contents",(e??n.current)?.appendChild(r),l?.focus({preventScroll:true});},[e,r]),useLayoutEffect(()=>()=>r?.remove(),[r]);let a=jsx(U,{portal:true,children:jsx("div",{className:t?"bui-composer-host":"bui-conversation-host","data-bui-composer-placement":t?e?"floating":"inline":void 0,children:jsx(Ai,{portal:t&&e?{container:r}:void 0,children:jsx("div",{className:t?"bui-composer-host-content":"bui-conversation-host",onPointerDown:t&&e?l=>l.stopPropagation():void 0,onWheel:t&&e?l=>l.stopPropagation():void 0,onKeyDown:t&&e?l=>l.stopPropagation():void 0,children:o})})})});return jsx(U,{children:jsx("div",{ref:n,className:t?"bui-composer-anchor":"bui-conversation-anchor",children:r?createPortal(a,r):a})})}i(Ei,"ConversationHost");var Up=[],Fp=[],Op={initialPrompt:"",placeholder:"Enter a message"};function _p({label:e,sub:t,time:o,body:n,resolving:r}){let a=oe();return jsxs("div",{className:"flex w-full flex-col gap-1.5 transition-[opacity,filter,transform] duration-400",style:{opacity:r?.55:1,filter:r?"blur(0.5px)":"blur(0)",transform:r?"scale(0.985)":"scale(1)",transformOrigin:"top left",transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)",animation:"bui-fade-up 400ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxs("div",{className:"flex items-center gap-1 text-[12px] leading-[1.3]",children:[jsx("span",{className:"font-medium text-ink",children:e}),jsx("span",{className:"text-ink-2",children:t}),o&&jsx("span",{className:"text-ink",children:a("duration",{time:o})})]}),jsx("p",{className:"text-[13px] leading-normal text-ink",children:n})]})}i(_p,"Section");function Hp({messages:e=Up,suggestions:t=Fp,labels:o,onSend:n,busy:r=false,onHeaderAction:a,fill:l=false,title:s,value:d,onValueChange:u,readOnly:m=false,loading:c=false,error:p,onRetry:h,onStop:v,children:w,renderMessage:g,pendingContent:f,composerContent:x,composerAccessory:y,composerProgress:$,composerNotice:N,composerContainer:T,conversationContainer:S,headerActions:A,sidePanel:O,readable:L=false,showMessageLabels:I=true}){let k=oe(),R=Te(Op,o),[z,_]=useState(""),X=d??z,Z=i(q=>{_(q),u?.(q);},"setDraft"),[F,J]=useState(false),B=useRef(false),te=useRef(true),ee=useRef(null),pe=useRef(true),se=[...e].reverse().find(q=>q.role==="user")?.id;useEffect(()=>{se&&(pe.current=true);},[se]),useEffect(()=>(te.current=true,()=>{te.current=false;}),[]),useEffect(()=>{l&&pe.current&&ee.current&&(ee.current.scrollTop=ee.current.scrollHeight);},[l,e,r,w]),useEffect(()=>{let q=ee.current,ge=q?.firstElementChild;if(!l||!q||!ge||typeof ResizeObserver>"u")return;let Xe=new ResizeObserver(()=>{pe.current&&(q.scrollTop=q.scrollHeight);});return Xe.observe(ge),()=>Xe.disconnect()},[l]);let[M,H]=useState(R.initialPrompt),[E,j]=useState(t[0]??""),le=useRef(null),re=!!M,de=X.trim().length>0&&!r&&!F&&!c&&!m&&!!n,Ee=i(async()=>{if(!de||B.current)return;let q=X.trim();B.current=true,J(true);try{await n?.(q)!==!1&&te.current&&(H(q),Z(""),pe.current=!0);}catch{}finally{B.current=false,te.current&&J(false);}},"send");return l?jsx(Ei,{container:S,children:jsx(U,{children:jsxs("section",{"data-readable":L||void 0,"data-panel-open":!!O||void 0,"data-composer-progress":!!$||void 0,className:"chat-composer-fill flex h-full min-h-0 w-full min-w-0 flex-col overflow-hidden text-ink","aria-label":s||k("Agent"),children:[(s||A)&&jsxs("header",{className:"chat-composer-header flex shrink-0 items-center justify-between border-b border-line px-4 py-3",children:[jsx("span",{className:"truncate text-[14px] font-medium",children:s}),A]}),jsxs("div",{className:"chat-composer-body",children:[jsxs("div",{className:"chat-composer-main",children:[jsx("div",{ref:ee,role:"log","aria-label":k("Chat history"),"aria-busy":r||c,className:"chat-composer-transcript flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-4",onScroll:()=>{let q=ee.current;q&&(pe.current=q.scrollHeight-q.scrollTop-q.clientHeight<48);},children:jsxs("div",{className:"chat-composer-content",children:[c?jsx("span",{role:"status",className:"text-[13px] text-ink-2",children:k("Loading")}):e.map((q,ge)=>jsxs("article",{"aria-label":I?void 0:q.label,className:q.role==="user"?"ml-auto max-w-full rounded-xl bg-field px-3 py-2":"w-full min-w-0",style:!I&&q.role==="user"?{width:"fit-content",maxWidth:"85%"}:void 0,children:[I&&jsx("div",{className:"mb-1 text-[12px] font-medium text-ink-2",children:q.label}),g?g(q,ge):jsx("p",{className:"whitespace-pre-wrap break-words text-[13px] leading-normal",children:q.body})]},q.id??ge)),!c&&!r&&!p&&e.length===0&&Children.toArray(w).length===0&&jsx("div",{className:"flex flex-1 items-center justify-center text-[13px] text-ink-3",children:k("Start a conversation")}),w,!c&&r&&(f===void 0?jsx(Bi,{variant:"Dots",label:k("Loading")}):f)]})}),(!m||y||$||p)&&jsx("div",{className:"chat-composer-footer shrink-0 p-3",children:jsxs(Ei,{container:T,composer:true,children:[$&&jsx("div",{className:"chat-composer-progress",children:$}),p&&jsxs("div",{role:"alert",className:"chat-composer-alert flex items-center gap-2 px-4 py-2 text-[13px] text-red",children:[jsx("span",{children:p}),h&&jsx("button",{type:"button",onClick:h,className:"underline",children:k("Retry")})]}),N,(!m||y)&&jsxs("div",{className:"chat-composer-input",children:[y&&jsx("div",{className:"chat-composer-accessory",children:y}),!m&&(x===void 0?jsx(Ni,{value:X,onValueChange:Z,disabled:c,busy:r,onStop:v,placeholder:R.placeholder,inputLabel:k("Chat prompt"),onSubmit:n?async q=>{let ge=await n(q);return ge!==false&&(pe.current=true),ge}:void 0}):x)]})]})})]}),O&&jsx("aside",{className:"chat-composer-side-panel",children:O})]})]})})}):jsx(U,{children:jsxs("div",{className:"flex h-[288px] w-full max-w-95 flex-col self-start overflow-hidden rounded-[14px] bg-surface shadow-card",children:[jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-line p-1.5",children:[jsx("div",{className:"flex items-center",children:t.map(q=>jsx("button",{type:"button","aria-pressed":E===q,onClick:()=>j(q),className:`rounded-[var(--bui-radius-chip)] px-2 py-[3px] text-[13px] text-ink transition-[background-color,opacity] duration-100 ${E===q?"bg-field":"opacity-50 hover:opacity-75"}`,children:q},q))}),jsx("div",{className:"flex items-center gap-1",children:[jsx("path",{d:"M12 5v14M5 12h14"},"p"),jsxs("g",{children:[jsx("circle",{cx:"12",cy:"12",r:"9"}),jsx("path",{d:"M12 7v5l3 2"})]},"h"),jsxs("g",{fill:"currentColor",stroke:"none",children:[jsx("circle",{cx:"5",cy:"12",r:"1.8"}),jsx("circle",{cx:"12",cy:"12",r:"1.8"}),jsx("circle",{cx:"19",cy:"12",r:"1.8"})]},"e")].map((q,ge)=>jsx("button",{type:"button","aria-label":[k("New"),k("History"),k("More")][ge],onClick:()=>a?.(["new","history","more"][ge]),className:`flex size-6 items-center justify-center rounded-[var(--bui-radius-chip)] text-ink-3
|
|
184
|
-
transition-colors duration-100 hover:bg-hover hover:text-ink-2`,children:jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:
|
|
185
|
-
transition-[opacity,transform] duration-300`,style:{opacity:
|
|
186
|
-
transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.96]`,style:{background:
|
|
182
|
+
`,xu=i(e=>{switch(e){case "ltr":return {axis:0,posStart:-0.2,posEnd:1.2};case "rtl":return {axis:0,posStart:1.2,posEnd:-0.2};case "ttb":return {axis:1,posStart:-0.2,posEnd:1.2};case "btt":return {axis:1,posStart:1.2,posEnd:-0.2}}},"dirToUniforms");function is(e={}){if(typeof window>"u")return null;let t=e.canvas??document.createElement("canvas"),o=t.getContext("webgl",{alpha:true,antialias:false,premultipliedAlpha:true});if(!o)return null;let n=i((E,te)=>{let ee=o.createShader(E);return ee?(o.shaderSource(ee,te),o.compileShader(ee),o.getShaderParameter(ee,o.COMPILE_STATUS)?ee:(console.error("[glimm] shader compile error:",o.getShaderInfoLog(ee)),o.deleteShader(ee),null)):null},"compile"),r=n(o.VERTEX_SHADER,vu);if(!r)return null;let a=n(o.FRAGMENT_SHADER,yu);if(!a)return o.deleteShader(r),null;let l=o.createProgram();if(!l)return o.deleteShader(r),o.deleteShader(a),null;if(o.attachShader(l,r),o.attachShader(l,a),o.linkProgram(l),!o.getProgramParameter(l,o.LINK_STATUS))return console.error("[glimm] shader link error:",o.getProgramInfoLog(l)),o.deleteProgram(l),o.deleteShader(r),o.deleteShader(a),null;o.useProgram(l);let s=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,s),o.bufferData(o.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),o.STATIC_DRAW);let d=o.getAttribLocation(l,"a");o.enableVertexAttribArray(d),o.vertexAttribPointer(d,2,o.FLOAT,false,0,0);let u=i(E=>o.getUniformLocation(l,E),"u"),m=u("uRes"),c=u("uTime"),p=u("uProgress"),h=u("uAlpha"),v=u("uBandTight"),w=u("uPosStart"),g=u("uPosEnd"),f=u("uHueShift"),x=u("uDirection"),y=u("uWaveAmount"),$=u("uRippleAmount"),M=u("uWaveSpeed"),C=u("uBrightness"),R=u("uSwellAmount"),P=u("uPalA"),F=u("uPalB"),L=u("uPalC"),B=u("uPalD");o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA);let k=i((E,te,ee)=>Math.max(te,Math.min(ee,E)),"clamp"),T={progress:0,alpha:0,palette:e.palette??rs(void 0),bandTight:k(e.bandTight??14,.1,200),direction:e.direction??"ltr",waveAmount:k(e.waveAmount??0,0,2),rippleAmount:k(e.rippleAmount??1,0,2),waveSpeed:k(e.waveSpeed??1,0,3),brightness:k(e.brightness??1,0,1.5),swellAmount:k(e.swellAmount??.55,0,1)},D=Math.random()*.4,_=i(()=>{let E=Math.min(window.devicePixelRatio||1,2),te=t.getBoundingClientRect(),ee=Math.max(1,Math.round(te.width*E)),me=Math.max(1,Math.round(te.height*E));(t.width!==ee||t.height!==me)&&(t.width=ee,t.height=me,o.viewport(0,0,ee,me));},"resize");_();let Z=new ResizeObserver(_);Z.observe(t);let Y=performance.now(),O=0,J=i(()=>{let E=(performance.now()-Y)/1e3,te=xu(T.direction);o.clearColor(0,0,0,0),o.clear(o.COLOR_BUFFER_BIT),o.uniform2f(m,t.width,t.height),o.uniform1f(c,E),o.uniform1f(p,T.progress),o.uniform1f(h,T.alpha),o.uniform1f(v,T.bandTight),o.uniform1f(w,te.posStart),o.uniform1f(g,te.posEnd),o.uniform1f(x,te.axis),o.uniform1f(y,T.waveAmount),o.uniform1f($,T.rippleAmount),o.uniform1f(M,T.waveSpeed),o.uniform1f(C,T.brightness),o.uniform1f(R,T.swellAmount),o.uniform1f(f,D),o.uniform3f(P,T.palette.a[0],T.palette.a[1],T.palette.a[2]),o.uniform3f(F,T.palette.b[0],T.palette.b[1],T.palette.b[2]),o.uniform3f(L,T.palette.c[0],T.palette.c[1],T.palette.c[2]),o.uniform3f(B,T.palette.d[0],T.palette.d[1],T.palette.d[2]),o.drawArrays(o.TRIANGLE_STRIP,0,4),O=requestAnimationFrame(J);},"tick");return O=requestAnimationFrame(J),{canvas:t,setProgress:i(E=>{T.progress=k(E,0,1);},"setProgress"),setAlpha:i(E=>{T.alpha=k(E,0,1.5);},"setAlpha"),setPalette:i(E=>{T.palette=E;},"setPalette"),setBandTight:i(E=>{T.bandTight=k(E,.1,200);},"setBandTight"),setDirection:i(E=>{T.direction=E;},"setDirection"),setWaveAmount:i(E=>{T.waveAmount=k(E,0,2);},"setWaveAmount"),setRippleAmount:i(E=>{T.rippleAmount=k(E,0,2);},"setRippleAmount"),setWaveSpeed:i(E=>{T.waveSpeed=k(E,0,3);},"setWaveSpeed"),setBrightness:i(E=>{T.brightness=k(E,0,1.5);},"setBrightness"),setSwellAmount:i(E=>{T.swellAmount=k(E,0,1);},"setSwellAmount"),getProgress:i(()=>T.progress,"getProgress"),getAlpha:i(()=>T.alpha,"getAlpha"),destroy:i(()=>{cancelAnimationFrame(O),Z.disconnect(),o.deleteProgram(l),o.deleteBuffer(s),o.deleteShader(r),o.deleteShader(a);},"destroy")}}i(is,"createShader");function gi(e,t,o,n){let r=i(s=>3*(1-s)*(1-s)*s*e+3*(1-s)*s*s*o+s*s*s,"bezX"),a=i(s=>3*(1-s)*(1-s)*s*t+3*(1-s)*s*s*n+s*s*s,"bezY"),l=i(s=>3*(1-4*s+3*s*s)*e+3*(2*s-3*s*s)*o+3*s*s,"bezXd");return s=>{if(s<=0)return 0;if(s>=1)return 1;let d=s;for(let u=0;u<8;u++){let m=r(d)-s;if(Math.abs(m)<1e-6)break;let c=l(d);if(Math.abs(c)<1e-6)break;d-=m/c;}return a(d)}}i(gi,"cubicBezier");var ts={linear:i(e=>e,"linear"),easeOutQuart:i(e=>1-Math.pow(1-e,4),"easeOutQuart"),easeOutCubic:i(e=>1-Math.pow(1-e,3),"easeOutCubic"),easeInCubic:i(e=>e*e*e,"easeInCubic"),easeInOutCubic:i(e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,"easeInOutCubic"),easeOutExpo:i(e=>e===1?1:1-Math.pow(2,-10*e),"easeOutExpo"),easeInOutQuint:i(e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,"easeInOutQuint"),snap:gi(1,0,.35,.95),ease:gi(.25,.1,.25,1),back:gi(.175,.885,.32,1.1)},wu=i(e=>e?typeof e=="function"?e:ts[e]:ts.easeOutQuart,"resolveEasing"),ku=i(e=>1-Math.pow(1-e,4),"easeOutQuart"),$u=i(e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,"easeInOutCubic");function as(e,t={}){let o=t.sweepMs??1100,n=t.outroMs??700,r=Math.max(0,Math.min(1,t.midpoint??.56)),a=wu(t.easing??"ease")??ku,l=Math.max(0,Math.min(1.5,t.peakAlpha??1));t.palette&&e.setPalette(rs(t.palette)),t.bandTight!==void 0&&e.setBandTight(t.bandTight),t.direction&&e.setDirection(t.direction),t.waveAmount!==void 0&&e.setWaveAmount(t.waveAmount),t.rippleAmount!==void 0&&e.setRippleAmount(t.rippleAmount),t.waveSpeed!==void 0&&e.setWaveSpeed(t.waveSpeed),t.brightness!==void 0&&e.setBrightness(t.brightness),t.swellAmount!==void 0&&e.setSwellAmount(t.swellAmount);let s=false,d=0,u,m,c=new Promise(h=>{u=h;}),p=new Promise(h=>{m=h;});return (async()=>{let h=e.getProgress(),v=h>=.999?0:Math.max(0,Math.min(1,h));e.setAlpha(l),e.setProgress(v);let w=1-v,g=Math.max(80,o*w),f=false,x=Promise.resolve(),y=i(()=>{f=true,x=Promise.resolve().then(()=>t.onMidpoint?.()).then(()=>{}),x.then(u,M=>{console.error("[glimm] midpoint callback failed:",M),u();});},"fireMidpoint"),$=performance.now();await new Promise(M=>{let C=i(()=>{if(s){M();return}let R=Math.min(1,(performance.now()-$)/g),P=a(R),F=v+w*P;e.setProgress(F),!f&&F>=r&&y(),R<1?d=requestAnimationFrame(C):M();},"tick");d=requestAnimationFrame(C);}),!s&&(f||y(),await x.catch(()=>{}),!s&&(await Su(n,l,0,$u,e.setAlpha,()=>s,M=>{d=M;}),!s&&(e.setProgress(0),t.onComplete?.(),m())));})(),{midpoint:c,done:p,cancel:i(()=>{s=true,cancelAnimationFrame(d),u(),m();},"cancel")}}i(as,"playSweep");function Su(e,t,o,n,r,a,l){return new Promise(s=>{let d=performance.now(),u=i(()=>{if(a()){s();return}let m=Math.min(1,(performance.now()-d)/e);r(t+(o-t)*n(m)),m<1?l(requestAnimationFrame(u)):s();},"tick");l(requestAnimationFrame(u));})}i(Su,"runRamp");var Ru=createContext({}),hn=i((...e)=>[...new Set(e.filter(Boolean).flatMap(t=>t.split(/\s+/)))].join(" ")||void 0,"classes"),gt=i(e=>Object.fromEntries(Object.entries(e??{}).filter(([,t])=>t!==void 0)),"defined");function ss(e,t){return Object.fromEntries([...new Set([...Object.keys(e??{}),...Object.keys(t??{})])].map(o=>[o,{...e?.[o],...gt(t?.[o])}]))}i(ss,"mergeStyles");function ls(e,t){return Object.fromEntries([...new Set([...Object.keys(e??{}),...Object.keys(t??{})])].map(o=>[o,hn(e?.[o],t?.[o])]))}i(ls,"mergeClasses");var ds=["variant","tone","emphasis","effect","size","lightEdge","glassColor","glassOpacity","motion","activeBorderColor"];function Ho(e,t){let o=Object.fromEntries(ds.filter(n=>t?.[n]!==void 0&&!(n==="variant"&&t?.variant==="switch")).map(n=>[n,t[n]]));return {...e,...o,className:hn(e?.className,t?.className),style:{...e?.style,...gt(t?.style)},classNames:ls(e?.classNames,t?.classNames),styles:ss(e?.styles,t?.styles)}}i(Ho,"mergeButtonAppearance");function Pu(e,t){return Object.fromEntries([...new Set([...Object.keys(e??{}),...Object.keys(t??{})])].map(o=>[o,Ho(e?.[o],t?.[o])]))}i(Pu,"mergeButtons");function cs(e,t){let o=useContext(Ru),n=o[e],r=t,a=ls(n?.classNames,r.classNames),l=ss(n?.styles,r.styles),{classNames:s,styles:d,buttonProps:u,...m}=r,c={...n?.defaultProps,...gt(m),className:hn(n?.defaultProps?.className,a.root,r.className),style:{...n?.defaultProps?.style,...l.root,...gt(r.style)}},p=i((g,f,x,y)=>({className:hn(f,a[g]),style:x||l[g]||y?{...x,...gt(n?.styles?.[g]),...gt(y),...gt(r.styles?.[g])}:void 0}),"slot"),h=i((g,f,x)=>{let y=p(g,f,x);return {...y,style:{...y.style,...gt(r.styles?.root),...gt(r.styles?.[g]),...gt(r.style)}}},"rootSlot"),v=i((g,f,x,y,$,M)=>{let C=o.Button?.defaultProps,R=Object.fromEntries(ds.filter(B=>C?.[B]!==void 0&&!(B==="variant"&&C[B]==="switch")).map(B=>[B,C[B]])),P=Ho({variant:C?.variant==="switch"?"solid":void 0,...f},R);P=Ho(P,n?.buttonProps?.[g]),M&&(P=Ho(P,n?.buttonProps?.[M])),P=Ho(P,r.buttonProps?.[g]),M&&(P=Ho(P,r.buttonProps?.[M]));let F=p(g,x,y,$),L=R.variant!==void 0||n?.buttonProps?.[g]?.variant!==void 0||r.buttonProps?.[g]?.variant!==void 0||!!(M&&(n?.buttonProps?.[M]?.variant!==void 0||r.buttonProps?.[M]?.variant!==void 0));return {...P,"data-button-appearance":L||void 0,className:hn(F.className,P.className),style:{...F.style,...gt(P.style)}}},"buttonSlot");return {props:c,slot:p,rootSlot:h,buttonSlot:v,rootButtonSlot:i((...g)=>{let f=v(...g);return {...f,style:{...f.style,...gt(r.styles?.root),...gt(r.styles?.[g[0]]),...gt(r.style)}}},"rootButtonSlot"),forwardStyles:{classNames:a,styles:l,buttonProps:Pu(n?.buttonProps,r.buttonProps)}}}i(cs,"useUIComponent");var ft=i((...e)=>e.filter(Boolean).join(" "),"cx");function Lt(e,t,o,n){let r=e!==void 0,a=useRef(r),l=useRef(false);process.env.NODE_ENV!=="production"&&!l.current&&(e!==void 0&&t!==void 0||a.current!==r)&&(console.error("monkeys-design UI: choose controlled or uncontrolled state; do not supply both value and defaultValue or switch modes."),l.current=true);let[s,d]=useState(t??o),u=r?e:s;return [u,i(c=>{r||d(c),c!==u&&n?.(c);},"update")]}i(Lt,"useControllable");function Vo(e,t){let o=useRef(t);o.current=t,useEffect(()=>{let n=e.current,r=n&&("form"in n?n.form:n.closest("form"));if(!r)return;let a=true,l=i(s=>queueMicrotask(()=>{a&&!s.defaultPrevented&&o.current();}),"listener");return r.addEventListener("reset",l),()=>{a=false,r.removeEventListener("reset",l);}});}i(Vo,"useFormReset");var Bu="com.infmonkeys.css";function bi(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}i(bi,"isRecord");function Au(e){let t=e?.[Bu];return bi(t)?t:void 0}i(Au,"readCssExtension");function tt(e){return Number.isInteger(e)?String(e):String(Number(e.toFixed(6)))}i(tt,"formatNumber");function uo(e){return `${tt(e.value)}${e.unit}`}i(uo,"formatDimension");function hi(e){return `${tt(e.value)}${e.unit}`}i(hi,"formatDuration");function Ro(e){return e==="none"?e:tt(e)}i(Ro,"formatColorComponent");function Eu(e){return [Number.parseInt(e.slice(1,3),16)/255,Number.parseInt(e.slice(3,5),16)/255,Number.parseInt(e.slice(5,7),16)/255]}i(Eu,"hexToSrgb");function Lu(e){if(e.colorSpace==="srgb"&&e.components.every(t=>typeof t=="number"))return e.components;if(e.hex)return Eu(e.hex);throw new TypeError(`Web semantic colors in ${e.colorSpace} require a six-digit hex fallback for hsl(var(--token)) consumers.`)}i(Lu,"colorSrgbComponents");function Du([e,t,o]){let n=Math.max(e,t,o),r=Math.min(e,t,o),a=(n+r)/2;if(n===r)return [0,0,a*100];let l=n-r,s=a>.5?l/(2-n-r):l/(n+r),d;return n===e?d=(t-o)/l+(t<o?6:0):n===t?d=(o-e)/l+2:d=(e-t)/l+4,[d/6*360,s*100,a*100]}i(Du,"srgbToHsl");function zu(e){if(e.colorSpace==="hsl"&&e.components.every(r=>typeof r=="number")){let[r,a,l]=e.components;return `${tt(r)} ${tt(a)}% ${tt(l)}%`}let[t,o,n]=Du(Lu(e));return `${tt(t)} ${tt(o)}% ${tt(n)}%`}i(zu,"formatHslTriplet");function Kn(e){let t=e.alpha??1;if(e.hex&&t===1)return e.hex;let o=e.components.map(Ro).join(" "),n=t===1?"":` / ${tt(t)}`;switch(e.colorSpace){case "srgb":return `rgb(${e.components.map(a=>a==="none"?"none":tt(a*255)).join(" ")}${n})`;case "hsl":return `hsl(${Ro(e.components[0])} ${Ro(e.components[1])}% ${Ro(e.components[2])}%${n})`;case "hwb":return `hwb(${Ro(e.components[0])} ${Ro(e.components[1])}% ${Ro(e.components[2])}%${n})`;case "lab":case "lch":case "oklab":case "oklch":return `${e.colorSpace}(${o}${n})`;default:return `color(${e.colorSpace} ${o}${n})`}}i(Kn,"formatColor");function us(e){let t=Array.isArray(e)?e:[e],o=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);return t.map(n=>o.has(n)||/^[a-zA-Z][\w-]*$/.test(n)?n:`"${n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`).join(", ")}i(us,"formatFontFamily");function Uu(e){return (Array.isArray(e)?e:[e]).map(o=>{if(!bi(o))throw new TypeError("DTCG shadow values must be objects.");return [uo(o.offsetX),uo(o.offsetY),uo(o.blur),uo(o.spread),Kn(o.color),o.inset===true?"inset":""].filter(Boolean).join(" ")}).join(", ")}i(Uu,"formatShadow");function Fu(e,t){if(!Array.isArray(e))throw new TypeError("DTCG gradient values must be arrays.");let o=e.map(r=>{if(!bi(r))throw new TypeError("DTCG gradient stops must be objects.");return `${Kn(r.color)} ${tt(Number(r.position)*100)}%`}).join(", "),n=Au(t)?.gradient;return n?.kind==="radial"?`radial-gradient(${o})`:`linear-gradient(${tt(n?.angle??90)}deg, ${o})`}i(Fu,"formatGradient");function ps(e){switch(e.type){case "color":return Kn(e.value);case "dimension":return uo(e.value);case "fontFamily":return us(e.value);case "fontWeight":case "number":return String(e.value);case "duration":return hi(e.value);case "cubicBezier":return `cubic-bezier(${e.value.map(tt).join(", ")})`;case "strokeStyle":return typeof e.value=="string"?e.value:e.value.dashArray.map(uo).join(" ");case "border":{let t=e.value,o={...e,type:"strokeStyle",value:t.style};return `${uo(t.width)} ${ps(o)} ${Kn(t.color)}`}case "transition":{let t=e.value;return `${hi(t.duration)} cubic-bezier(${t.timingFunction.map(tt).join(", ")}) ${hi(t.delay)}`}case "shadow":return Uu(e.value);case "gradient":return Fu(e.value,e.extensions);case "typography":{let t=e.value;return `${t.fontWeight} ${uo(t.fontSize)}/${tt(t.lineHeight)} ${us(t.fontFamily)}`}}}i(ps,"formatTokenValue");function ms(e,t){let o=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase();return `--${t}-${o}`}i(ms,"toCssVariableName");function Ou(e){if(!/^[a-zA-Z][a-zA-Z0-9-]*$/.test(e))throw new TypeError("Theme token variablePrefix must start with a letter and contain only letters, numbers, or hyphens.")}i(Ou,"assertCssVariablePrefix");function gs(e,t,o){let n=`${t}.${o}`;return e.has(n)?n:e.has(t)?t:void 0}i(gs,"selectModePath");var _u={"semantic.color.background":"--background","semantic.color.foreground":"--foreground","semantic.color.card":"--card","semantic.color.card-foreground":"--card-foreground","semantic.color.popover":"--popover","semantic.color.popover-foreground":"--popover-foreground","semantic.color.primary":"--primary","semantic.color.primary-foreground":"--primary-foreground","semantic.color.secondary":"--secondary","semantic.color.secondary-foreground":"--secondary-foreground","semantic.color.muted":"--muted","semantic.color.muted-foreground":"--muted-foreground","semantic.color.accent":"--accent","semantic.color.accent-foreground":"--accent-foreground","semantic.color.destructive":"--destructive","semantic.color.destructive-foreground":"--destructive-foreground","semantic.color.success":"--success","semantic.color.success-foreground":"--success-foreground","semantic.color.warning":"--warning","semantic.color.warning-foreground":"--warning-foreground","semantic.color.border":"--border","semantic.color.input":"--input","semantic.color.ring":"--ring","semantic.color.media-surface":"--media-surface","semantic.color.media-foreground":"--media-foreground","semantic.color.media-overlay":"--media-overlay","semantic.color.radar-canvas":"--radar-canvas","semantic.color.radar-panel":"--radar-panel","semantic.color.radar-border":"--radar-border","semantic.color.radar-shell-border":"--radar-shell-border","semantic.color.radar-grid":"--radar-grid","semantic.color.radar-axis":"--radar-axis","semantic.color.radar-series-one":"--radar-series-one","semantic.color.radar-series-two":"--radar-series-two","semantic.color.radar-series-three":"--radar-series-three","semantic.color.radar-series-four":"--radar-series-four"},Hu=Object.freeze({...Object.fromEntries(["grid","axis","fillStart","fillEnd","glow","label","value"].map(e=>[`component.chart.radar.${e}`,{variableName:ms(`chart.radar.${e}`,"monkeys"),axis:"colorMode",expectedType:"color",format:"css"}])),...Object.fromEntries(Object.entries(_u).map(([e,t])=>[e,{variableName:t,axis:"colorMode",expectedType:"color",format:"hsl"}])),"semantic.color.neocard":{variableName:"--neocard",axis:"colorMode",expectedType:"color",format:"css"},"semantic.radius.base":{variableName:"--radius",axis:"colorMode",expectedType:"dimension",format:"css"},"semantic.spacing.global":{variableName:"--global-spacing",axis:"density",expectedType:"dimension",format:"css"},"semantic.gradient.brand":{variableName:"--monkeys-gradient",axis:"colorMode",expectedType:"gradient",format:"css"},"semantic.font.body":{variableName:"--font-sans",axis:"colorMode",expectedType:"fontFamily",format:"css"}});function Xn(e,t){let o=gs(new Set(Object.keys(e.cssValues)),t,e.colorMode);return o?e.cssValues[o]:void 0}i(Xn,"getThemeTokenCssValue");function Wo(e,t={}){let o=resolveThemeTokens(e),n=o.document,r=t.colorMode??"light",a=t.density??"default",l=t.variablePrefix??"monkeys";Ou(l);let s={},d={},u={},m=new Map;for(let[h,v]of o.tokens){s[h]=v.value;let w=ps(v);d[h]=w;let g=ms(h,l),f=m.get(g);if(f)throw new TypeError(`Theme token paths ${f} and ${h} both compile to ${g}. Rename one token.`);m.set(g,h),u[g]=w;}let c=new Set(o.tokens.keys());for(let[h,v]of Object.entries(Hu)){let w=v.axis==="density"?a:r,g=gs(c,h,w);if(!g)continue;let f=o.tokens.get(g);if(!f||f.type!==v.expectedType)throw new TypeError(`${g} must be a ${v.expectedType} token to drive ${v.variableName}.`);u[v.variableName]=v.format==="hsl"?zu(f.value):d[g];}let p=Object.entries(u).sort(([h],[v])=>h.localeCompare(v)).map(([h,v])=>`${h}:${v};`).join("");return {contract:n,colorMode:r,density:a,values:Object.freeze(s),cssValues:Object.freeze(d),cssVariables:Object.freeze(u),cssText:p}}i(Wo,"compileThemeTokens");var Yn=["background","glowColor","borderColor","borderWidth","borderStyle","radius","shadow","padding","gap"],Vu={background:"hsl(var(--card, 0 0% 100%))",glowColor:"var(--monkeys-bento-glow-default)",borderColor:"hsl(var(--border, 214.3 31.8% 91.4%))",borderWidth:"1px",borderStyle:"solid",radius:"var(--radius, 0.75rem)",shadow:"none",padding:"var(--global-spacing, 0.75rem)",gap:"var(--global-spacing, 0.75rem)"},vi=new WeakMap;function fs(e,t){if(!Number.isSafeInteger(t)||t<1)throw new RangeError("Bento level must be a positive safe integer.");let o=e&&vi.get(e)?.get(t);if(o)return o;let n={...Vu},r=Object.fromEntries(Yn.map(l=>[l,"builtin"]));for(let l of Yn){let s=l==="padding"||l==="gap"?e?.density:e?.colorMode,d=l==="glowColor"?"component.bento":"semantic.bento",u=[`${d}.levels.level${t}.${l}`,`${d}.default.${l}`];for(let m of u){let c=s&&e?.cssValues[`${m}.${s}`]!==void 0?`${m}.${s}`:m,p=e?.cssValues[c];if(p!==void 0){n[l]=p,r[l]=c;break}}}let a=Object.freeze({values:Object.freeze(n),sources:Object.freeze(r)});if(e){let l=vi.get(e)??new Map;l.set(t,a),vi.set(e,l);}return a}i(fs,"resolveBentoTokens");var hs={preview:"Preview",edit:"Edit",visual:"Visual editor",source:"Source editor",exit:"Exit editing",save:"Save",saved:"Saved",dirty:"Unsaved changes",saving:"Saving\u2026",error:"Save failed. Your changes are retained.",offline:"Offline. Your changes are retained.",conflict:"A newer version is available. Compare it with your draft before saving.",latest:"View latest version",useLatest:"Use latest version",keepDraft:"Keep my draft and merge",discard:"Discard unsaved changes",closeWarning:"There are unsaved changes. Save them or discard them before leaving.",history:"Version history",restore:"Restore this version",original:"Original file",download:"Download",downloadDraft:"Download draft",loading:"Loading document\u2026",unavailable:"This document cannot be edited.",retry:"Try again",sourceOnly:"This document contains syntax supported in source mode only.",tooLarge:"This document exceeds the editing limit.",bold:"Bold",italic:"Italic",strike:"Strikethrough",heading:"Heading",paragraph:"Paragraph",quote:"Quote",bullet:"Bulleted list",ordered:"Numbered list",task:"Task list",link:"Link",image:"Image",table:"Table",code:"Code block",undo:"Undo",redo:"Redo",addRow:"Add row",addColumn:"Add column",deleteRow:"Delete row",deleteColumn:"Delete column",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",url:"URL or managed file reference",alt:"Alternative text",insert:"Insert",cancel:"Cancel",upload:"Upload image",imageFailed:"Image could not be loaded.",chooseImage:"Select image",recovery:"A recovered draft is available.",recover:"Recover draft",switchToLight:"Switch Markdown area to light mode",switchToDark:"Switch Markdown area to dark mode",toolbar:"Document formatting",content:"Document content",emptyHistory:"No saved versions yet."},bs={preview:"\u9884\u89C8",edit:"\u7F16\u8F91",visual:"\u53EF\u89C6\u7F16\u8F91",source:"\u6E90\u7801\u7F16\u8F91",exit:"\u9000\u51FA\u7F16\u8F91",save:"\u4FDD\u5B58",saved:"\u5DF2\u4FDD\u5B58",dirty:"\u672A\u4FDD\u5B58",saving:"\u4FDD\u5B58\u4E2D\u2026",error:"\u4FDD\u5B58\u5931\u8D25\uFF0C\u4FEE\u6539\u5DF2\u4FDD\u7559\u3002",offline:"\u5F53\u524D\u79BB\u7EBF\uFF0C\u4FEE\u6539\u5DF2\u4FDD\u7559\u3002",conflict:"\u6587\u6863\u5DF2\u6709\u66F4\u65B0\u7248\u672C\uFF0C\u8BF7\u6BD4\u8F83\u5E76\u5408\u5E76\u540E\u4FDD\u5B58\u3002",latest:"\u67E5\u770B\u6700\u65B0\u7248\u672C",useLatest:"\u4F7F\u7528\u6700\u65B0\u7248\u672C",keepDraft:"\u4FDD\u7559\u8349\u7A3F\u5E76\u5408\u5E76",discard:"\u64A4\u9500\u672A\u4FDD\u5B58\u6539\u52A8",closeWarning:"\u8FD8\u6709\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\uFF0C\u8BF7\u4FDD\u5B58\u6216\u653E\u5F03\u540E\u518D\u79BB\u5F00\u3002",history:"\u7248\u672C\u5386\u53F2",restore:"\u6062\u590D\u6B64\u7248\u672C",original:"\u539F\u59CB\u6587\u4EF6",download:"\u4E0B\u8F7D",downloadDraft:"\u4E0B\u8F7D\u8349\u7A3F",loading:"\u6B63\u5728\u52A0\u8F7D\u6587\u6863\u2026",unavailable:"\u6B64\u6587\u6863\u6682\u4E0D\u53EF\u7F16\u8F91\u3002",retry:"\u91CD\u8BD5",sourceOnly:"\u6B64\u6587\u6863\u5305\u542B\u4EC5\u652F\u6301\u6E90\u7801\u7F16\u8F91\u7684\u8BED\u6CD5\u3002",tooLarge:"\u6587\u6863\u8D85\u8FC7\u53EF\u7F16\u8F91\u5927\u5C0F\u9650\u5236\u3002",bold:"\u52A0\u7C97",italic:"\u659C\u4F53",strike:"\u5220\u9664\u7EBF",heading:"\u6807\u9898",paragraph:"\u6B63\u6587",quote:"\u5F15\u7528",bullet:"\u65E0\u5E8F\u5217\u8868",ordered:"\u6709\u5E8F\u5217\u8868",task:"\u4EFB\u52A1\u5217\u8868",link:"\u94FE\u63A5",image:"\u56FE\u7247",table:"\u8868\u683C",code:"\u4EE3\u7801\u5757",undo:"\u64A4\u9500",redo:"\u91CD\u505A",addRow:"\u6DFB\u52A0\u884C",addColumn:"\u6DFB\u52A0\u5217",deleteRow:"\u5220\u9664\u884C",deleteColumn:"\u5220\u9664\u5217",alignLeft:"\u5DE6\u5BF9\u9F50",alignCenter:"\u5C45\u4E2D",alignRight:"\u53F3\u5BF9\u9F50",url:"\u7F51\u5740\u6216\u53D7\u7BA1\u6587\u4EF6\u5F15\u7528",alt:"\u66FF\u4EE3\u6587\u672C",insert:"\u63D2\u5165",cancel:"\u53D6\u6D88",upload:"\u4E0A\u4F20\u56FE\u7247",imageFailed:"\u56FE\u7247\u52A0\u8F7D\u5931\u8D25\u3002",chooseImage:"\u9009\u62E9\u56FE\u7247",recovery:"\u53D1\u73B0\u53EF\u6062\u590D\u7684\u8349\u7A3F\u3002",recover:"\u6062\u590D\u8349\u7A3F",switchToLight:"\u5207\u6362 Markdown \u533A\u57DF\u4E3A\u6D45\u8272",switchToDark:"\u5207\u6362 Markdown \u533A\u57DF\u4E3A\u6DF1\u8272",toolbar:"\u6587\u6863\u683C\u5F0F",content:"\u6587\u6863\u6B63\u6587",emptyHistory:"\u6682\u65E0\u5DF2\u4FDD\u5B58\u7248\u672C\u3002"};var Po={locale:"en-US",messages:{markdownDocument:hs,canvas:{replaceImage:"Replace image",cropImage:"Crop image",downloadImage:"Download image",useImageReference:"Use as reference",saturationValue:"Saturation and brightness",hue:"Hue",dots:"Dot grid",group:"Group",hexPlaceholder:"#F5F5F5",controls:"Canvas controls",background:"Canvas background",layers:"Layers",minimap:"Minimap",zoom:"Zoom",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Show all elements",zoomTo:i(({percent:e})=>`Zoom to ${e}%`,"zoomTo"),color:i(({value:e})=>`Use ${e}`,"color"),hex:"Hex color",close:"Close",empty:"No layers",element:i(({type:e})=>e,"element")},pagination:{navigation:"Pagination",first:"First",previous:"Previous",next:"Next",last:"Last",page:i(({page:e,pageCount:t})=>`Page ${e} of ${t}`,"page"),currentPage:i(({page:e,pageCount:t})=>`Page ${e} of ${t}, current page`,"currentPage"),emptyResults:"0 results",range:i(({start:e,end:t,total:o})=>`${e}-${t} of ${o}`,"range"),selected:i(({count:e})=>`${e} selected`,"selected"),pageSize:"Items per page",loadBatchSize:"Items per load",perLoad:"Items per load",jumpToPage:"Jump to page",pages:"pages",clickToJump:"Click to jump to a page"},dialog:{close:"Close dialog"},dropdownMenu:{actions:"Actions"},loading:{spinner:"Loading"},layout:{resizePanels:"Resize panels",expandPanel:"Expand",collapsePanel:"Collapse",movePanel:"Move",moveBefore:"Move earlier",moveAfter:"Move later"},steps:{label:"Progress",current:"Current",completed:"Completed",error:"Error",disabled:"Disabled"},numberInput:{increment:"Increase value",decrement:"Decrease value"},passwordInput:{showPassword:"Show password",hidePassword:"Hide password"},multiSelect:{placeholder:"Select options",empty:"No options",removeOption:i(({value:e})=>`Remove ${e}`,"removeOption")},table:{dragColumn:i(({columnId:e})=>`Drag column ${e}`,"dragColumn"),resizeColumn:i(({columnId:e})=>`Resize column ${e}`,"resizeColumn"),sortColumn:i(({columnId:e})=>e?`Sort column ${e}`:"Sort column","sortColumn"),loadingRow:"Loading table row"},toolbar:{theme:{label:"Appearance",toggle:"Toggle theme",auto:"Auto",light:"Light",dark:"Dark"},language:{label:"Language",switch:"Switch language"}},toast:{errorTitle:"Error",warningTitle:"Warning",defaultErrorDescription:"Something went wrong.",defaultWarningDescription:"Please check and try again."},dataExplorer:{viewTree:{actions:"More actions",expand:"Expand",collapse:"Collapse",loading:"Loading...",empty:"No views",error:"Unable to load views"}},workbench:{relationshipGraph:{zoomOut:"Zoom out",zoomIn:"Zoom in",zoomToFit:"Fit graph",minimap:"Graph overview"},collection:{label:"Collection",loading:"Loading items",empty:"No items",loadError:"Unable to load items",refreshError:"Unable to refresh items",retry:"Retry",loadingMore:"Loading more items",permission:"You do not have permission to view this content",offline:"You appear to be offline",requestAccess:"Request access"},interactiveTable:{columnActions:"Column actions",freezeColumn:"Freeze to left",freezeEndColumn:"Freeze to right",unfreezeColumn:"Unfreeze from left",unfreezeEndColumn:"Unfreeze from right",unfreezeAllColumns:"Unfreeze all columns",resetColumnWidth:"Reset column width",frozenColumnTitle:"Frozen column"}},agentWorkbench:{label:"Session activity",reasoning:"Reasoning",plan:"Plan",taskNoDetail:"No additional details",modes:{chat:"Chat",work:"Work"},composer:{send:"Send message",stop:"Stop generating",queue:"Queue message",attach:"Add photos or files",voice:"Start voice input",webSearch:"Web search",chatMode:"Chat mode",model:"Model",reasoning:"Reasoning effort",permissions:"Permissions",removeAttachment:"Remove attachment",editQueued:"Edit queued message",deleteQueued:"Delete queued message",moveUp:"Move message up",moveDown:"Move message down",queued:"Queued messages",uploading:"Uploading",uploadFailed:"Upload failed",retryAttachment:"Retry attachment upload",noModels:"No models available",message:"Message",attachmentOnly:"Attachment",reasoningOptions:{low:"Low",medium:"Medium",high:"High",xhigh:"Extra high"},permissionOptions:{"approval-required":"Approval required","auto-approve":"Auto approve","full-access":"Full access"}},quickStart:{label:"Quick start",back:"Back",addFile:"Add file"},tool:{input:"Input",output:"Output",status:{pending:"Pending",running:"Running",completed:"Completed",failed:"Error",denied:"Denied"}},approval:{approve:"Approve",reject:"Reject",approved:"Approved",rejected:"Rejected"},artifact:{pending:"Preparing",ready:"Ready",failed:"Failed",open:i(({name:e})=>`Open ${e}`,"open")},run:{stopping:"Stopping...",stoppedAfter:i(({duration:e})=>`You stopped after ${e}`,"stoppedAfter")},process:{running:"Working",queued:"Queued",waitingApproval:"Waiting for approval",failed:"Failed",stopped:"Stopped",processed:"Processed",processedFor:i(({duration:e})=>`Worked for ${e}`,"processedFor"),completedCount:i(({completed:e,total:t})=>`${e}/${t} completed`,"completedCount")},artifactWorkspace:{outputs:"Outputs",sources:"Sources",viewAll:"View all",toggleSummary:"Toggle files",tabs:"Open files",closeTab:i(({name:e})=>`Close ${e}`,"closeTab"),closeWorkspace:"Close workspace",close:"Close",closeOthers:"Close other tabs",closeRight:"Close tabs to the right",closeAll:"Close all tabs",kinds:{data:"Data view",audio:"Audio",canvas:"Canvas",file:"File",html:"HTML",image:"Image",markdown:"Markdown",pdf:"PDF",presentation:"Presentation",video:"Video",web:"Web page"},collapse:"Collapse",maximize:"Full screen",restore:"Exit full screen",download:i(({name:e})=>`Download ${e}`,"download"),openExternal:i(({name:e})=>`Open ${e} in a new window`,"openExternal"),loading:"Loading preview...",failed:"Preview unavailable",retry:"Try again"},usage:{label:"Context usage",context:i(({used:e,total:t})=>`${e} / ${t} tokens`,"context")},navigation:{search:"Search agents and sessions",searchSessions:"Search sessions",searchShortcut:"Focus search",clearSearch:"Clear search",tabsLabel:"Agent workbench navigation",agents:"Agents",sessions:"Sessions",newAgent:"New Agent",newSession:"New Session",capabilities:"Capabilities & Extensions",settings:"Agent Settings",allAgents:"All Agents",recentSessions:"Recent Sessions",chat:"Chat",work:"Work",chats:"Chats",builtIn:"Built-in",noDescription:"No description",loading:"Loading...",emptyAgents:"No agents yet",emptySessions:"No sessions yet",noResults:"No matching results",retry:"Retry",pin:"Pin",unpin:"Unpin",rename:"Rename",delete:"Delete",actions:"Actions",save:"Save",cancel:"Cancel",running:"Running",completed:"Completed",failed:"Failed",contextUsage:i(({percent:e})=>`${e}% context used`,"contextUsage")},details:{title:"Task details",description:"Summary and workspace activity",duration:"Duration",updated:"Updated",model:"Model",mode:"Mode",permissions:"Permissions",tokenUsage:"Token usage",summary:"Summary",summaryEmpty:"No summary is available yet.",summaryFailed:"The summary could not be generated.",highlights:"Highlights",pendingItems:"Pending items",tabs:{label:"Task detail views",summary:"Summary",workspace:"Workspace"},status:{queued:"Queued",running:"Running",waiting_approval:"Waiting for approval",stopping:"Stopping",stopped:"Stopped",completed:"Completed",failed:"Failed"},state:{loading:{title:"Loading task details",description:"Restoring the latest session activity."},empty:{title:"No task selected",description:"Select a task to inspect its details."},error:{title:"Unable to load task details",description:"Try again after the session is available."}},actions:{close:"Close task details",copySummary:"Copy summary",retry:"Retry",retrySummary:"Retry summary",resume:"Resume",continueInNewTask:"Continue in new task",editAndRerun:"Edit and rerun",export:"Export"},workspace:{diffs:"Code changes",files:"Files",terminals:"Terminals",tests:"Tests",artifacts:"Artifacts",exitCode:i(({code:e})=>`Exit code ${e}`,"exitCode"),diffStatus:{added:"Added",modified:"Modified",deleted:"Deleted",renamed:"Renamed"},fileOperation:{upsert:"Updated",delete:"Deleted"}}}}}};var bn={locale:"zh-CN",messages:{markdownDocument:bs,canvas:{replaceImage:"\u66FF\u6362\u56FE\u7247",cropImage:"\u88C1\u526A\u56FE\u7247",downloadImage:"\u4E0B\u8F7D\u56FE\u7247",useImageReference:"\u7528\u4F5C\u53C2\u8003\u56FE",saturationValue:"\u9971\u548C\u5EA6\u4E0E\u660E\u5EA6",hue:"\u8272\u76F8",dots:"\u80CC\u666F\u70B9\u9635",group:"\u5206\u7EC4",hexPlaceholder:"#F5F5F5",controls:"\u753B\u5E03\u63A7\u5236",background:"\u753B\u5E03\u80CC\u666F\u8272",layers:"\u56FE\u5C42",minimap:"\u5C0F\u5730\u56FE",zoom:"\u7F29\u653E",zoomIn:"\u653E\u5927",zoomOut:"\u7F29\u5C0F",fit:"\u663E\u793A\u753B\u5E03\u6240\u6709\u5143\u7D20",zoomTo:i(({percent:e})=>`\u7F29\u653E\u81F3 ${e}%`,"zoomTo"),color:i(({value:e})=>`\u4F7F\u7528 ${e}`,"color"),hex:"\u5341\u516D\u8FDB\u5236\u989C\u8272",close:"\u5173\u95ED",empty:"\u6682\u65E0\u56FE\u5C42",element:i(({type:e})=>({image:"\u56FE\u7247",text:"\u6587\u5B57",rectangle:"\u77E9\u5F62",ellipse:"\u692D\u5706",diamond:"\u83F1\u5F62",arrow:"\u7BAD\u5934",line:"\u7EBF\u6761",freedraw:"\u81EA\u7531\u7ED8\u5236",frame:"\u753B\u6846",embeddable:"\u5D4C\u5165\u5185\u5BB9",iframe:"\u7F51\u9875",magicframe:"\u753B\u6846"})[e]||"\u5143\u7D20","element")},pagination:{navigation:"\u5206\u9875\u5BFC\u822A",first:"\u9996\u9875",previous:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",last:"\u672B\u9875",page:i(({page:e,pageCount:t})=>`\u7B2C ${e} \u9875\uFF0C\u5171 ${t} \u9875`,"page"),currentPage:i(({page:e,pageCount:t})=>`\u7B2C ${e} \u9875\uFF0C\u5171 ${t} \u9875\uFF0C\u5F53\u524D\u9875`,"currentPage"),emptyResults:"\u5171 0 \u6761",range:i(({start:e,end:t,total:o})=>`\u7B2C ${e}-${t} \u6761\uFF0C\u5171 ${o} \u6761`,"range"),selected:i(({count:e})=>`\u5DF2\u9009\u62E9 ${e} \u9879`,"selected"),pageSize:"\u6BCF\u9875\u663E\u793A\u6570\u91CF",loadBatchSize:"\u6BCF\u6B21\u52A0\u8F7D\u6570\u91CF",perLoad:"\u6BCF\u6B21\u52A0\u8F7D",jumpToPage:"\u8DF3\u8F6C\u5230\u9875\u7801",pages:"\u9875",clickToJump:"\u70B9\u51FB\u8DF3\u8F6C\u9875\u7801"},dialog:{close:"\u5173\u95ED\u5BF9\u8BDD\u6846"},dropdownMenu:{actions:"\u64CD\u4F5C"},loading:{spinner:"\u6B63\u5728\u52A0\u8F7D"},layout:{resizePanels:"\u8C03\u6574\u9762\u677F\u5927\u5C0F",expandPanel:"\u5C55\u5F00",collapsePanel:"\u6536\u8D77",movePanel:"\u79FB\u52A8",moveBefore:"\u5411\u524D\u79FB\u52A8",moveAfter:"\u5411\u540E\u79FB\u52A8"},steps:{label:"\u8FDB\u5EA6",current:"\u5F53\u524D\u6B65\u9AA4",completed:"\u5DF2\u5B8C\u6210",error:"\u9519\u8BEF",disabled:"\u5DF2\u7981\u7528"},numberInput:{increment:"\u589E\u52A0\u6570\u503C",decrement:"\u51CF\u5C11\u6570\u503C"},passwordInput:{showPassword:"\u663E\u793A\u5BC6\u7801",hidePassword:"\u9690\u85CF\u5BC6\u7801"},multiSelect:{placeholder:"\u8BF7\u9009\u62E9",empty:"\u6682\u65E0\u9009\u9879",removeOption:i(({value:e})=>`\u79FB\u9664 ${e}`,"removeOption")},table:{dragColumn:i(({columnId:e})=>`\u62D6\u52A8\u5217 ${e}`,"dragColumn"),resizeColumn:i(({columnId:e})=>`\u8C03\u6574\u5217\u5BBD ${e}`,"resizeColumn"),sortColumn:i(({columnId:e})=>e?`\u6392\u5E8F\u5217 ${e}`:"\u6392\u5E8F\u5217","sortColumn"),loadingRow:"\u6B63\u5728\u52A0\u8F7D\u8868\u683C\u884C"},toolbar:{theme:{label:"\u5916\u89C2",toggle:"\u5207\u6362\u4E3B\u9898",auto:"\u8DDF\u968F\u7CFB\u7EDF",light:"\u6D45\u8272\u6A21\u5F0F",dark:"\u6DF1\u8272\u6A21\u5F0F"},language:{label:"\u8BED\u8A00",switch:"\u5207\u6362\u8BED\u8A00"}},toast:{errorTitle:"\u9519\u8BEF",warningTitle:"\u63D0\u793A",defaultErrorDescription:"\u53D1\u751F\u9519\u8BEF\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002",defaultWarningDescription:"\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5\u3002"},dataExplorer:{viewTree:{actions:"\u66F4\u591A\u64CD\u4F5C",expand:"\u5C55\u5F00",collapse:"\u6536\u8D77",loading:"\u6B63\u5728\u52A0\u8F7D...",empty:"\u6682\u65E0\u89C6\u56FE",error:"\u65E0\u6CD5\u52A0\u8F7D\u89C6\u56FE"}},workbench:{relationshipGraph:{zoomOut:"\u7F29\u5C0F",zoomIn:"\u653E\u5927",zoomToFit:"\u9002\u5E94\u753B\u5E03",minimap:"\u56FE\u8C31\u6982\u89C8"},collection:{label:"\u5185\u5BB9\u96C6\u5408",loading:"\u6B63\u5728\u52A0\u8F7D\u5185\u5BB9",empty:"\u6682\u65E0\u5185\u5BB9",loadError:"\u65E0\u6CD5\u52A0\u8F7D\u5185\u5BB9",refreshError:"\u65E0\u6CD5\u5237\u65B0\u5185\u5BB9",retry:"\u91CD\u8BD5",loadingMore:"\u6B63\u5728\u52A0\u8F7D\u66F4\u591A\u5185\u5BB9",permission:"\u4F60\u6CA1\u6709\u6743\u9650\u67E5\u770B\u6B64\u5185\u5BB9",offline:"\u7F51\u7EDC\u8FDE\u63A5\u5DF2\u65AD\u5F00",requestAccess:"\u7533\u8BF7\u6743\u9650"},interactiveTable:{columnActions:"\u5217\u64CD\u4F5C",freezeColumn:"\u56FA\u5B9A\u5230\u5DE6\u4FA7",freezeEndColumn:"\u56FA\u5B9A\u5230\u53F3\u4FA7",unfreezeColumn:"\u53D6\u6D88\u5DE6\u4FA7\u56FA\u5B9A",unfreezeEndColumn:"\u53D6\u6D88\u53F3\u4FA7\u56FA\u5B9A",unfreezeAllColumns:"\u53D6\u6D88\u5168\u90E8\u56FA\u5B9A",resetColumnWidth:"\u91CD\u7F6E\u5217\u5BBD",frozenColumnTitle:"\u5DF2\u56FA\u5B9A\u5217"}},agentWorkbench:{label:"\u4F1A\u8BDD\u6D3B\u52A8",reasoning:"\u601D\u8003\u8FC7\u7A0B",plan:"\u6267\u884C\u8BA1\u5212",taskNoDetail:"\u6682\u65E0\u66F4\u591A\u8BE6\u60C5",modes:{chat:"\u5BF9\u8BDD",work:"\u5DE5\u4F5C"},composer:{send:"\u53D1\u9001\u6D88\u606F",stop:"\u505C\u6B62\u751F\u6210",queue:"\u6392\u961F\u53D1\u9001",attach:"\u6DFB\u52A0\u7167\u7247\u6216\u6587\u4EF6",voice:"\u5F00\u59CB\u8BED\u97F3\u8F93\u5165",webSearch:"\u8054\u7F51\u641C\u7D22",chatMode:"\u5BF9\u8BDD\u6A21\u5F0F",model:"\u6A21\u578B",reasoning:"\u601D\u8003\u5F3A\u5EA6",permissions:"\u6743\u9650",removeAttachment:"\u79FB\u9664\u9644\u4EF6",editQueued:"\u7F16\u8F91\u6392\u961F\u6D88\u606F",deleteQueued:"\u5220\u9664\u6392\u961F\u6D88\u606F",moveUp:"\u4E0A\u79FB\u6D88\u606F",moveDown:"\u4E0B\u79FB\u6D88\u606F",queued:"\u6392\u961F\u6D88\u606F",uploading:"\u4E0A\u4F20\u4E2D",uploadFailed:"\u4E0A\u4F20\u5931\u8D25",retryAttachment:"\u91CD\u8BD5\u9644\u4EF6\u4E0A\u4F20",noModels:"\u6682\u65E0\u53EF\u7528\u6A21\u578B",message:"\u6D88\u606F",attachmentOnly:"\u9644\u4EF6",reasoningOptions:{low:"\u4F4E",medium:"\u4E2D",high:"\u9AD8",xhigh:"\u6700\u9AD8"},permissionOptions:{"approval-required":"\u9700\u8981\u6279\u51C6","auto-approve":"\u81EA\u52A8\u6279\u51C6","full-access":"\u5B8C\u5168\u8BBF\u95EE"}},quickStart:{label:"\u5FEB\u901F\u5F00\u59CB",back:"\u8FD4\u56DE",addFile:"\u6DFB\u52A0\u6587\u4EF6"},tool:{input:"\u8F93\u5165",output:"\u8F93\u51FA",status:{pending:"\u7B49\u5F85\u4E2D",running:"\u8FD0\u884C\u4E2D",completed:"\u5DF2\u5B8C\u6210",failed:"\u9519\u8BEF",denied:"\u5DF2\u62D2\u7EDD"}},approval:{approve:"\u5141\u8BB8",reject:"\u62D2\u7EDD",approved:"\u5DF2\u5141\u8BB8",rejected:"\u5DF2\u62D2\u7EDD"},artifact:{pending:"\u51C6\u5907\u4E2D",ready:"\u5DF2\u5C31\u7EEA",failed:"\u5931\u8D25",open:i(({name:e})=>`\u6253\u5F00 ${e}`,"open")},run:{stopping:"\u6B63\u5728\u505C\u6B62...",stoppedAfter:i(({duration:e})=>`\u4F60\u5728 ${e} \u540E\u505C\u6B62\u4E86\u4EFB\u52A1`,"stoppedAfter")},process:{running:"\u6267\u884C\u8FC7\u7A0B",queued:"\u6392\u961F\u4E2D",waitingApproval:"\u7B49\u5F85\u5BA1\u6279",failed:"\u5931\u8D25",stopped:"\u5DF2\u505C\u6B62",processed:"\u5DF2\u5904\u7406",processedFor:i(({duration:e})=>`\u8017\u65F6 ${e.replace(/(\d+)h/g,"$1\u5C0F\u65F6").replace(/(\d+)m/g,"$1\u5206\u949F").replace(/(\d+)s/g,"$1\u79D2").replace(/\s+/g,"")}`,"processedFor"),completedCount:i(({completed:e,total:t})=>`${e}/${t} \u5DF2\u5B8C\u6210`,"completedCount")},artifactWorkspace:{outputs:"\u8F93\u51FA",sources:"\u6765\u6E90",viewAll:"\u67E5\u770B\u5168\u90E8",toggleSummary:"\u5207\u6362\u6587\u4EF6\u6458\u8981",tabs:"\u5DF2\u6253\u5F00\u6587\u4EF6",closeTab:i(({name:e})=>`\u5173\u95ED ${e}`,"closeTab"),closeWorkspace:"\u5173\u95ED\u5DE5\u4F5C\u533A",close:"\u5173\u95ED",closeOthers:"\u5173\u95ED\u5176\u4ED6\u6807\u7B7E\u9875",closeRight:"\u5173\u95ED\u53F3\u4FA7\u6807\u7B7E\u9875",closeAll:"\u5173\u95ED\u6240\u6709\u6807\u7B7E\u9875",kinds:{data:"\u6570\u636E\u89C6\u56FE",audio:"\u97F3\u9891",canvas:"\u753B\u677F",file:"\u6587\u4EF6",html:"HTML",image:"\u56FE\u7247",markdown:"Markdown",pdf:"PDF",presentation:"\u6F14\u793A\u6587\u7A3F",video:"\u89C6\u9891",web:"\u7F51\u9875"},collapse:"\u6536\u8D77",maximize:"\u5168\u5C4F",restore:"\u9000\u51FA\u5168\u5C4F",download:i(({name:e})=>`\u4E0B\u8F7D ${e}`,"download"),openExternal:i(({name:e})=>`\u5728\u65B0\u7A97\u53E3\u6253\u5F00 ${e}`,"openExternal"),loading:"\u6B63\u5728\u52A0\u8F7D\u9884\u89C8...",failed:"\u9884\u89C8\u4E0D\u53EF\u7528",retry:"\u91CD\u8BD5"},usage:{label:"\u4E0A\u4E0B\u6587\u7528\u91CF",context:i(({used:e,total:t})=>`${e} / ${t} tokens`,"context")},navigation:{search:"\u641C\u7D22\u667A\u80FD\u4F53\u548C\u4F1A\u8BDD",searchSessions:"\u641C\u7D22\u4F1A\u8BDD",searchShortcut:"\u805A\u7126\u641C\u7D22\u6846",clearSearch:"\u6E05\u9664\u641C\u7D22",tabsLabel:"\u667A\u80FD\u4F53\u5DE5\u4F5C\u53F0\u5BFC\u822A",agents:"\u667A\u80FD\u4F53",sessions:"\u4F1A\u8BDD",newAgent:"\u65B0\u5EFA\u667A\u80FD\u4F53",newSession:"\u65B0\u5EFA\u4F1A\u8BDD",capabilities:"\u80FD\u529B\u4E0E\u6269\u5C55",settings:"\u667A\u80FD\u4F53\u8BBE\u7F6E",allAgents:"\u5168\u90E8\u667A\u80FD\u4F53",recentSessions:"\u6700\u8FD1\u4F1A\u8BDD",chat:"\u5BF9\u8BDD",work:"\u5DE5\u4F5C",chats:"\u804A\u5929",builtIn:"\u5185\u7F6E",noDescription:"\u6682\u65E0\u63CF\u8FF0",loading:"\u52A0\u8F7D\u4E2D...",emptyAgents:"\u6682\u65E0\u667A\u80FD\u4F53",emptySessions:"\u6682\u65E0\u4F1A\u8BDD",noResults:"\u6CA1\u6709\u5339\u914D\u7ED3\u679C",retry:"\u91CD\u8BD5",pin:"\u7F6E\u9876",unpin:"\u53D6\u6D88\u7F6E\u9876",rename:"\u91CD\u547D\u540D",delete:"\u5220\u9664",actions:"\u64CD\u4F5C",save:"\u4FDD\u5B58",cancel:"\u53D6\u6D88",running:"\u8FD0\u884C\u4E2D",completed:"\u5DF2\u5B8C\u6210",failed:"\u5931\u8D25",contextUsage:i(({percent:e})=>`\u5DF2\u4F7F\u7528 ${e}% \u4E0A\u4E0B\u6587`,"contextUsage")},details:{title:"\u4EFB\u52A1\u8BE6\u60C5",description:"\u6458\u8981\u4E0E\u5DE5\u4F5C\u533A\u6D3B\u52A8",duration:"\u8017\u65F6",updated:"\u66F4\u65B0\u65F6\u95F4",model:"\u6A21\u578B",mode:"\u6A21\u5F0F",permissions:"\u6743\u9650",tokenUsage:"Token \u7528\u91CF",summary:"\u6458\u8981",summaryEmpty:"\u6682\u65F6\u6CA1\u6709\u53EF\u7528\u6458\u8981\u3002",summaryFailed:"\u6458\u8981\u751F\u6210\u5931\u8D25\u3002",highlights:"\u91CD\u70B9",pendingItems:"\u5F85\u5904\u7406\u4E8B\u9879",tabs:{label:"\u4EFB\u52A1\u8BE6\u60C5\u89C6\u56FE",summary:"\u6458\u8981",workspace:"\u5DE5\u4F5C\u533A"},status:{queued:"\u6392\u961F\u4E2D",running:"\u8FD0\u884C\u4E2D",waiting_approval:"\u7B49\u5F85\u5BA1\u6279",stopping:"\u6B63\u5728\u505C\u6B62",stopped:"\u5DF2\u505C\u6B62",completed:"\u5DF2\u5B8C\u6210",failed:"\u5931\u8D25"},state:{loading:{title:"\u6B63\u5728\u52A0\u8F7D\u4EFB\u52A1\u8BE6\u60C5",description:"\u6B63\u5728\u6062\u590D\u6700\u65B0\u7684\u4F1A\u8BDD\u6D3B\u52A8\u3002"},empty:{title:"\u672A\u9009\u62E9\u4EFB\u52A1",description:"\u9009\u62E9\u4EFB\u52A1\u540E\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\u3002"},error:{title:"\u65E0\u6CD5\u52A0\u8F7D\u4EFB\u52A1\u8BE6\u60C5",description:"\u4F1A\u8BDD\u6062\u590D\u53EF\u7528\u540E\u8BF7\u91CD\u8BD5\u3002"}},actions:{close:"\u5173\u95ED\u4EFB\u52A1\u8BE6\u60C5",copySummary:"\u590D\u5236\u6458\u8981",retry:"\u91CD\u8BD5",retrySummary:"\u91CD\u65B0\u751F\u6210\u6458\u8981",resume:"\u7EE7\u7EED\u8FD0\u884C",continueInNewTask:"\u5728\u65B0\u4EFB\u52A1\u4E2D\u7EE7\u7EED",editAndRerun:"\u7F16\u8F91\u5E76\u91CD\u65B0\u8FD0\u884C",export:"\u5BFC\u51FA"},workspace:{diffs:"\u4EE3\u7801\u53D8\u66F4",files:"\u6587\u4EF6",terminals:"\u7EC8\u7AEF",tests:"\u6D4B\u8BD5",artifacts:"\u4EA7\u7269",exitCode:i(({code:e})=>`\u9000\u51FA\u7801 ${e}`,"exitCode"),diffStatus:{added:"\u65B0\u589E",modified:"\u4FEE\u6539",deleted:"\u5220\u9664",renamed:"\u91CD\u547D\u540D"},fileOperation:{upsert:"\u5DF2\u66F4\u65B0",delete:"\u5DF2\u5220\u9664"}}}}}};var Wu={"en-US":Po,"zh-CN":bn};function vs(e){if(typeof e!="string"||!e.trim())throw new TypeError("Monkeys locale must be a non-empty BCP 47 string.");try{return Intl.getCanonicalLocales(e)[0]}catch{throw new RangeError(`Monkeys locale "${e}" is not a valid BCP 47 identifier.`)}}i(vs,"normalizeLocaleId");function vn(e){return !!e&&typeof e=="object"&&!Array.isArray(e)}i(vn,"isRecord");function ys(e,t,o){if(!vn(e)||!vn(t))throw new TypeError(`${o} must be an object.`);for(let[n,r]of Object.entries(e)){if(r===void 0)continue;if(!(n in t))throw new TypeError(`${o}.${n} is not a supported Monkeys message.`);let a=t[n],l=`${o}.${n}`;if(typeof a=="function"){if(typeof r!="function")throw new TypeError(`${l} must be a function.`)}else if(typeof a=="string"){if(typeof r!="string")throw new TypeError(`${l} must be a string.`)}else ys(r,a,l);}}i(ys,"validateMessageOverride");function xs(e,t){let o=vn(e)?Object.fromEntries(Object.entries(e).filter(([n])=>n!=="beautiful")):e;if(ys(o,Po.messages,t),vn(e)&&e.beautiful!==void 0){if(!vn(e.beautiful))throw new TypeError(`${t}.beautiful must be an object.`);for(let[n,r]of Object.entries(e.beautiful))if(r!==void 0&&typeof r!="string")throw new TypeError(`${t}.beautiful.${n} must be a string.`)}}i(xs,"assertMessagesOverride");function ws(e){return e==="en-US"||e==="zh-CN"}i(ws,"isBuiltInLocale");function ju(e){if(e===void 0)return {locale:void 0,messages:void 0,hasExplicitLocale:false};if(typeof e=="string"){let o=vs(e);if(!ws(o))throw new RangeError(`Unsupported built-in Monkeys locale "${o}". Provide a locale pack object for custom locales.`);return {locale:o,messages:void 0,hasExplicitLocale:true}}if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError("Monkeys locale must be a locale id or locale pack object.");let t=vs(e.locale);return xs(e.messages,"Monkeys locale messages"),{locale:t,messages:e.messages,hasExplicitLocale:true}}i(ju,"normalizeLocaleInput");function jo(e,t){return t?{markdownDocument:{...e.markdownDocument,...t.markdownDocument},canvas:{...e.canvas,...t.canvas},beautiful:{...e.beautiful,...t.beautiful},pagination:{...e.pagination,...t.pagination},dialog:{...e.dialog,...t.dialog},dropdownMenu:{...e.dropdownMenu,...t.dropdownMenu},loading:{...e.loading,...t.loading},layout:{...e.layout,...t.layout},steps:{...e.steps,...t.steps},numberInput:{...e.numberInput,...t.numberInput},passwordInput:{...e.passwordInput,...t.passwordInput},multiSelect:{...e.multiSelect,...t.multiSelect},table:{...e.table,...t.table},toolbar:{theme:{...e.toolbar.theme,...t.toolbar?.theme},language:{...e.toolbar.language,...t.toolbar?.language}},toast:{...e.toast,...t.toast},dataExplorer:{viewTree:{...e.dataExplorer.viewTree,...t.dataExplorer?.viewTree}},workbench:{relationshipGraph:{zoomOut:"Zoom out",zoomIn:"Zoom in",zoomToFit:"Fit graph",minimap:"Graph overview",...e.workbench.relationshipGraph,...t.workbench?.relationshipGraph},collection:{...e.workbench.collection,...t.workbench?.collection},interactiveTable:{...e.workbench.interactiveTable,...t.workbench?.interactiveTable}},agentWorkbench:{...e.agentWorkbench,...t.agentWorkbench,modes:{...e.agentWorkbench.modes,...t.agentWorkbench?.modes},composer:{...e.agentWorkbench.composer,...t.agentWorkbench?.composer},quickStart:{...e.agentWorkbench.quickStart,...t.agentWorkbench?.quickStart},tool:{...e.agentWorkbench.tool,...t.agentWorkbench?.tool,status:{...e.agentWorkbench.tool.status,...t.agentWorkbench?.tool?.status}},approval:{...e.agentWorkbench.approval,...t.agentWorkbench?.approval},artifact:{...e.agentWorkbench.artifact,...t.agentWorkbench?.artifact},run:{...e.agentWorkbench.run,...t.agentWorkbench?.run},process:{...e.agentWorkbench.process,...t.agentWorkbench?.process},artifactWorkspace:{...e.agentWorkbench.artifactWorkspace,...t.agentWorkbench?.artifactWorkspace},usage:{...e.agentWorkbench.usage,...t.agentWorkbench?.usage},navigation:{...e.agentWorkbench.navigation,...t.agentWorkbench?.navigation},details:{...e.agentWorkbench.details,...t.agentWorkbench?.details,tabs:{...e.agentWorkbench.details.tabs,...t.agentWorkbench?.details?.tabs},status:{...e.agentWorkbench.details.status,...t.agentWorkbench?.details?.status},state:{loading:{...e.agentWorkbench.details.state.loading,...t.agentWorkbench?.details?.state?.loading},empty:{...e.agentWorkbench.details.state.empty,...t.agentWorkbench?.details?.state?.empty},error:{...e.agentWorkbench.details.state.error,...t.agentWorkbench?.details?.state?.error}},actions:{...e.agentWorkbench.details.actions,...t.agentWorkbench?.details?.actions},workspace:{...e.agentWorkbench.details.workspace,...t.agentWorkbench?.details?.workspace,diffStatus:{...e.agentWorkbench.details.workspace.diffStatus,...t.agentWorkbench?.details?.workspace?.diffStatus},fileOperation:{...e.agentWorkbench.details.workspace.fileOperation,...t.agentWorkbench?.details?.workspace?.fileOperation}}}}}:e}i(jo,"mergeMonkeysLocaleMessages");var yn={locale:Po.locale,messages:jo(Po.messages)};function yi(e,t,o){t!==void 0&&xs(t,"MonkeysProvider messages");let n=ju(e),r=n.locale??o?.locale??Po.locale,a=ws(r)?Wu[r].messages:void 0,l=jo(Po.messages,a);return o&&(!n.hasExplicitLocale||o.locale===r)&&(l=jo(l,o.messages)),l=jo(l,n.messages),l=jo(l,t),{locale:r,messages:l}}i(yi,"resolveMonkeysLocale");var Gu=Object.freeze({}),qu=Object.freeze({}),ks=Symbol.for("@inf-monkeys-tech/monkeys-design/provider-context@1");function Ku(){return Object.freeze({locale:createContext({...yn,provided:false}),theme:createContext({provided:false}),direction:createContext({provided:false}),environment:createContext({provided:false,environment:Gu,portal:qu})})}i(Ku,"createMonkeysProviderContexts");function Xu(){let e=globalThis,t=e[ks];if(t)return t;let o=Ku();return Object.defineProperty(e,ks,{value:o,enumerable:false,configurable:false,writable:false}),o}i(Xu,"getMonkeysProviderContexts");var Zn=Xu(),xn=Zn.locale,Go=Zn.theme,wn=Zn.direction,kn=Zn.environment;function Yu(e,t){return t===void 0?e:e===void 0?t:{...e,...t,slots:e.slots||t.slots?{...e.slots,...t.slots}:void 0,styles:e.styles||t.styles?{...e.styles,...t.styles}:void 0}}i(Yu,"mergeAppearance");function Ss(){try{return useContext(xn)??{...yn,provided:!1}}catch{return {...yn,provided:false}}}i(Ss,"useMonkeysLocale");function $n(){return useContext(Go).resolvedTheme}i($n,"useMonkeysResolvedTheme");function Cs(e){let t=useContext(Go).baseAppearance;return useMemo(()=>Yu(t,e),[e,t])}i(Cs,"useMonkeysBaseAppearance");function Ts(){return useContext(wn).direction}i(Ts,"useMonkeysDirection");function xi(){return useContext(kn).environment}i(xi,"useMonkeysEnvironment");function Jn(){return useContext(kn).portal}i(Jn,"useMonkeysPortalOptions");function ht(){let e=useContext(xn),t=useContext(Go),o=useContext(wn),n=e.provided||t.provided||o.provided;return useMemo(()=>n?{dir:o.direction,"data-monkeys-direction":o.direction,"data-monkeys-locale":e.locale,"data-monkeys-theme":t.themeId,"data-monkeys-theme-mode":t.resolvedTheme?.colorMode}:{},[o.direction,e.locale,n,t.resolvedTheme?.colorMode,t.themeId])}i(ht,"useMonkeysComponentAttributes");var Rs={seed:{ui:{color:{page:{$type:"color",$value:{colorSpace:"srgb",components:[.09019607843137255,.09803921568627451,.11372549019607843],hex:"#17191D"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},surface:{$type:"color",$value:{colorSpace:"srgb",components:[.12549019607843137,.13725490196078433,.1607843137254902],hex:"#202329"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},elevated:{$type:"color",$value:{colorSpace:"srgb",components:[.16470588235294117,.1803921568627451,.21176470588235294],hex:"#2A2E36"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},foreground:{$type:"color",$value:{colorSpace:"srgb",components:[.9568627450980393,.9607843137254902,.9686274509803922],hex:"#F4F5F7"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},muted:{$type:"color",$value:{colorSpace:"srgb",components:[.803921568627451,.8196078431372549,.8470588235294118],hex:"#CDD1D8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},subtle:{$type:"color",$value:{colorSpace:"srgb",components:[.7254901960784313,.7450980392156863,.7843137254901961],hex:"#B9BEC8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},primary:{$type:"color",$value:{colorSpace:"srgb",components:[.5490196078431373,.6039215686274509,.6666666666666666],hex:"#8C9AAA"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},lightEdgeBlue:{$type:"color",$value:{colorSpace:"srgb",components:[.6549019607843137,.7098039215686275,.7843137254901961],hex:"#A7B5C8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},primaryHover:{$type:"color",$value:{colorSpace:"srgb",components:[.6784313725490196,.7254901960784313,.7803921568627451],hex:"#ADB9C7"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},violet:{$type:"color",$value:{colorSpace:"srgb",components:[.6784313725490196,.7137254901960784,.7686274509803922],hex:"#ADB6C4"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},focus:{$type:"color",$value:{colorSpace:"srgb",components:[.7647058823529411,.8235294117647058,.9098039215686274],hex:"#C3D2E8"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},danger:{$type:"color",$value:{colorSpace:"srgb",components:[.9411764705882353,.5019607843137255,.5019607843137255],hex:"#F08080"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},dangerBackground:{$type:"color",$value:{colorSpace:"srgb",components:[.6078431372549019,.1450980392156863,.1843137254901961],hex:"#9B252F"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},success:{$type:"color",$value:{colorSpace:"srgb",components:[.5176470588235295,.8588235294117647,.6784313725490196],hex:"#84DBAD"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},control:{$type:"color",$value:{colorSpace:"srgb",components:[.47058823529411764,.47058823529411764,.47058823529411764],hex:"#787878",alpha:.2},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},border:{$type:"color",$value:{colorSpace:"srgb",components:[.7176470588235294,.7568627450980392,.8313725490196079],hex:"#B7C1D4",alpha:.5},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},info:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.8},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},previewInfo:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.4},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},blueGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.5215686274509804,.6,.7098039215686275],hex:"#8599B5",alpha:.35},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},violetGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.6431372549019608,.6901960784313725,.7686274509803922],hex:"#A4B0C4",alpha:.5},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},transparent:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:0},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},overlay:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.65},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},primaryAccessible:{$type:"color",$value:{colorSpace:"srgb",components:[.3215686274509804,.396078431372549,.49019607843137253],hex:"#52657D"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},header:{$type:"color",$value:{colorSpace:"srgb",components:[.21568627450980393,.2549019607843137,.3176470588235294],hex:"#374151"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},detail:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},white:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},black:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},activeBorder:{$type:"color",$value:{colorSpace:"srgb",components:[.43137254901960786,.5568627450980392,.9254901960784314],hex:"#6E8EEC"},$description:"\u6FC0\u6D3B\u63A7\u4EF6\u63CF\u8FB9\u539F\u59CB\u8272"}},radius:{r16:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"},r24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"},r12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"},scale:{s24:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 24px"},s999:{$type:"dimension",$value:"{seed.ui.radius.r999}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 999px"},s12:{$type:"dimension",$value:"{seed.ui.radius.r12}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 12px"},s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 8px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 4px"},s16:{$type:"dimension",$value:"{seed.ui.radius.r16}",$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 16px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 10px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 20px"},s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 2px"},s18:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB radius.scale \u523B\u5EA6 18px"}},r999:{$type:"dimension",$value:{value:999,unit:"px"},$description:"\u516C\u5171\u5706\u89D2\u523B\u5EA6"}},typography:{lineHeight:{s1p5:{$type:"number",$value:1.5,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.5"},s1p4:{$type:"number",$value:1.4,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.4"},s1p3:{$type:"number",$value:1.3,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.3"},s1p2:{$type:"number",$value:1.2,$description:"\u5171\u4EAB typography.lineHeight \u523B\u5EA6 1.2"}},weight:{s500:{$type:"number",$value:500,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 500"},s600:{$type:"number",$value:600,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 600"},s700:{$type:"number",$value:700,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 700"},s800:{$type:"number",$value:800,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 800"},s200:{$type:"number",$value:200,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 200"},s400:{$type:"number",$value:400,$description:"\u5171\u4EAB typography.weight \u523B\u5EA6 400"}}},size:{s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 2px"},s3:{$type:"dimension",$value:{value:3,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 3px"},s1:{$type:"dimension",$value:{value:1,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 1px"},s28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 28px"},s42:{$type:"dimension",$value:{value:42,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 42px"},s14:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 14px"},s24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 24px"},s18:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 18px"},s40:{$type:"dimension",$value:{value:40,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 40px"},s16:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 16px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 20px"},s22:{$type:"dimension",$value:{value:22,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 22px"},s140:{$type:"dimension",$value:{value:140,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 140px"},s85:{$type:"dimension",$value:{value:85,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 85px"},s34:{$type:"dimension",$value:{value:34,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 34px"},s320:{$type:"dimension",$value:{value:320,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 320px"},s160:{$type:"dimension",$value:{value:160,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 160px"},s280:{$type:"dimension",$value:{value:280,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 280px"},s32:{$type:"dimension",$value:{value:32,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 32px"},s53:{$type:"dimension",$value:{value:53,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 53px"},s26:{$type:"dimension",$value:{value:26,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 26px"},s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 8px"},s62:{$type:"dimension",$value:{value:62,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 62px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 10px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 4px"},s5:{$type:"dimension",$value:{value:5,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 5px"},s196:{$type:"dimension",$value:{value:196,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 196px"},s480:{$type:"dimension",$value:{value:480,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 480px"},s1000:{$type:"dimension",$value:{value:1e3,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 1000px"},s660:{$type:"dimension",$value:{value:660,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 660px"},s48:{$type:"dimension",$value:{value:48,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 48px"},s100:{$type:"dimension",$value:{value:100,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 100px"},s64:{$type:"dimension",$value:{value:64,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 64px"},s12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 12px"},s6:{$type:"dimension",$value:{value:6,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 6px"},s168:{$type:"dimension",$value:{value:168,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 168px"},s96:{$type:"dimension",$value:{value:96,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 96px"},s56:{$type:"dimension",$value:{value:56,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 56px"},s1p5:{$type:"dimension",$value:{value:1.5,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 1.5px"},s220:{$type:"dimension",$value:{value:220,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 220px"},s379:{$type:"dimension",$value:{value:379,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 379px"},s68:{$type:"dimension",$value:{value:68,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 68px"},s108:{$type:"dimension",$value:{value:108,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 108px"},s70:{$type:"dimension",$value:{value:70,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 70px"},s57:{$type:"dimension",$value:{value:57,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 57px"},s15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 15px"},s244:{$type:"dimension",$value:{value:244,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 244px"},s78:{$type:"dimension",$value:{value:78,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 78px"},s36:{$type:"dimension",$value:{value:36,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 36px"},s23:{$type:"dimension",$value:{value:23,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 23px"},s117:{$type:"dimension",$value:{value:117,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 117px"},s110:{$type:"dimension",$value:{value:110,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 110px"},s156:{$type:"dimension",$value:{value:156,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 156px"},s125:{$type:"dimension",$value:{value:125,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 125px"},s121:{$type:"dimension",$value:{value:121,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 121px"},s127:{$type:"dimension",$value:{value:127,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 127px"},s55:{$type:"dimension",$value:{value:55,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 55px"},s178:{$type:"dimension",$value:{value:178,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 178px"},s497:{$type:"dimension",$value:{value:497,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 497px"},s37:{$type:"dimension",$value:{value:37,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 37px"},s60:{$type:"dimension",$value:{value:60,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 60px"},s7:{$type:"dimension",$value:{value:7,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 7px"},s128:{$type:"dimension",$value:{value:128,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 128px"},s290:{$type:"dimension",$value:{value:290,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 290px"},s210:{$type:"dimension",$value:{value:210,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 210px"},s231:{$type:"dimension",$value:{value:231,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 231px"},s440:{$type:"dimension",$value:{value:440,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 440px"},s9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 9px"},s190:{$type:"dimension",$value:{value:190,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 190px"},s130:{$type:"dimension",$value:{value:130,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 130px"},s200:{$type:"dimension",$value:{value:200,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 200px"},s150:{$type:"dimension",$value:{value:150,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 150px"},s350:{$type:"dimension",$value:{value:350,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 350px"},s493:{$type:"dimension",$value:{value:493,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 493px"},s17:{$type:"dimension",$value:{value:17,unit:"px"},$description:"\u5171\u4EAB size \u523B\u5EA6 17px"}},space:{s6:{$type:"dimension",$value:{value:6,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 6px"},s18:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 18px"},s3:{$type:"dimension",$value:{value:3,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 3px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 10px"},s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 8px"},s22:{$type:"dimension",$value:{value:22,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 22px"},s7:{$type:"dimension",$value:{value:7,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 7px"},s14:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 14px"},s84:{$type:"dimension",$value:{value:84,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 84px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 4px"},s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 2px"},s12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 12px"},s5:{$type:"dimension",$value:{value:5,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 5px"},s26:{$type:"dimension",$value:{value:26,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 26px"},s16:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 16px"},s24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 24px"},s30:{$type:"dimension",$value:{value:30,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 30px"},s1:{$type:"dimension",$value:{value:1,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 1px"},s15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 15px"},s13:{$type:"dimension",$value:{value:13,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 13px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 20px"},s29:{$type:"dimension",$value:{value:29,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 29px"},s9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 9px"},s11:{$type:"dimension",$value:{value:11,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 11px"},s115:{$type:"dimension",$value:{value:115,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 115px"},s34:{$type:"dimension",$value:{value:34,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 34px"},s40:{$type:"dimension",$value:{value:40,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 40px"},s28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 28px"},s44:{$type:"dimension",$value:{value:44,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 44px"},s23:{$type:"dimension",$value:{value:23,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 23px"},s70:{$type:"dimension",$value:{value:70,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 70px"},s25:{$type:"dimension",$value:{value:25,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 25px"},s19:{$type:"dimension",$value:{value:19,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 19px"},s47:{$type:"dimension",$value:{value:47,unit:"px"},$description:"\u5171\u4EAB space \u523B\u5EA6 47px"}},duration:{s240:{$type:"duration",$value:{value:240,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 240ms"},s800:{$type:"duration",$value:{value:800,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 800ms"},s180:{$type:"duration",$value:{value:180,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 180ms"},s140:{$type:"duration",$value:{value:140,unit:"ms"},$description:"\u5171\u4EAB duration \u523B\u5EA6 140ms"}},opacity:{s0p65:{$type:"number",$value:.65,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.65"},s0p5:{$type:"number",$value:.5,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.5"},s0p8:{$type:"number",$value:.8,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.8"},s0p4:{$type:"number",$value:.4,$description:"\u5171\u4EAB opacity \u523B\u5EA6 0.4"}},shadowSize:{s8:{$type:"dimension",$value:{value:8,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 8px"},s20:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 20px"},s12:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 12px"},s1:{$type:"dimension",$value:{value:1,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 1px"},s4:{$type:"dimension",$value:{value:4,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 4px"},s10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 10px"},s2:{$type:"dimension",$value:{value:2,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 2px"},s36:{$type:"dimension",$value:{value:36,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 36px"},s5:{$type:"dimension",$value:{value:5,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 5px"},s3:{$type:"dimension",$value:{value:3,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 3px"},s24:{$type:"dimension",$value:{value:24,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 24px"},s80:{$type:"dimension",$value:{value:80,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 80px"},s15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 15px"},s28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 28px"},s14:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 14px"},s6:{$type:"dimension",$value:{value:6,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 6px"},s9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 9px"},s0p5:{$type:"dimension",$value:{value:.5,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 0.5px"},s7:{$type:"dimension",$value:{value:7,unit:"px"},$description:"\u5171\u4EAB shadowSize \u523B\u5EA6 7px"}},layer:{local:{s2:{$type:"number",$value:2,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 2"},s3:{$type:"number",$value:3,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 3"},s1100:{$type:"number",$value:1100,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 1100"},s5:{$type:"number",$value:5,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 5"},s10:{$type:"number",$value:10,$description:"\u5171\u4EAB layer.local \u523B\u5EA6 10"}}},lineClamp:{s4:{$type:"number",$value:4,$description:"\u5171\u4EAB lineClamp \u523B\u5EA6 4"},s2:{$type:"number",$value:2,$description:"\u5171\u4EAB lineClamp \u523B\u5EA6 2"}}}},semantic:{color:{surface:{page:{dark:{$type:"color",$value:"{seed.ui.color.page}",$description:"surface.page\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.965,.973,.988],hex:"#F6F8FC"},$description:"\u6D45\u8272\u9875\u9762\u80CC\u666F"}},default:{dark:{$type:"color",$value:"{seed.ui.color.surface}",$description:"surface.default\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u9ED8\u8BA4\u8868\u9762"}},raised:{dark:{$type:"color",$value:"{seed.ui.color.elevated}",$description:"surface.raised\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u62AC\u5347\u8868\u9762"}},control:{dark:{$type:"color",$value:"{seed.ui.color.control}",$description:"surface.control\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.06},$description:"\u6D45\u8272\u63A7\u4EF6\u8868\u9762"}},header:{dark:{$type:"color",$value:"{seed.ui.color.header}",$description:"header-background"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u5934\u90E8\u8868\u9762"}},detail:{dark:{$type:"color",$value:"{seed.ui.color.detail}",$description:"sidebar-background"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.949,.961,.98],hex:"#F2F5FA"},$description:"\u6D45\u8272\u8BE6\u60C5\u8868\u9762"}}},text:{primary:{dark:{$type:"color",$value:"{seed.ui.color.foreground}",$description:"text.primary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0824,.1255,.2],hex:"#152033"},$description:"\u6D45\u8272\u4E3B\u6587\u672C"}},secondary:{dark:{$type:"color",$value:"{seed.ui.color.muted}",$description:"text.secondary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.2902,.3333,.4078],hex:"#4A5568"},$description:"\u6D45\u8272\u6B21\u7EA7\u6587\u672C"}},tertiary:{dark:{$type:"color",$value:"{seed.ui.color.subtle}",$description:"text.tertiary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.4078,.451,.5255],hex:"#687386"},$description:"\u6D45\u8272\u4E09\u7EA7\u6587\u672C"}},onAction:{dark:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"\u4E3B\u64CD\u4F5C\u80CC\u666F\u4E0A\u7684\u6587\u5B57"},light:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"\u6D45\u8272\u4E3B\u64CD\u4F5C\u80CC\u666F\u4E0A\u7684\u6587\u5B57"}}},brand:{accent:{dark:{$type:"color",$value:"{seed.ui.color.primary}",$description:"brand.accent\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1922,.3647,.8627],hex:"#315DDC"},$description:"\u6D45\u8272\u54C1\u724C\u4E3B\u8272"}},accentHover:{dark:{$type:"color",$value:"{seed.ui.color.primaryHover}",$description:"brand.accentHover\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1451,.2824,.7137],hex:"#2548B6"},$description:"\u6D45\u8272\u54C1\u724C\u60AC\u505C\u8272"}},secondary:{dark:{$type:"color",$value:"{seed.ui.color.violet}",$description:"brand.secondary\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.4392,.2745,.851],hex:"#7046D9"},$description:"\u6D45\u8272\u54C1\u724C\u8F85\u52A9\u8272"}}},status:{danger:{dark:{$type:"color",$value:"{seed.ui.color.danger}",$description:"status.danger\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.7373,.2157,.2706],hex:"#BC3745"},$description:"\u6D45\u8272\u5371\u9669\u72B6\u6001"}},dangerSurface:{dark:{$type:"color",$value:"{seed.ui.color.dangerBackground}",$description:"status.dangerSurface\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.9922,.9255,.9333],hex:"#FDEBED"},$description:"\u6D45\u8272\u5371\u9669\u72B6\u6001\u8868\u9762"}},success:{dark:{$type:"color",$value:"{seed.ui.color.success}",$description:"status.success\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.4784,.3255],hex:"#0F7A53"},$description:"\u6D45\u8272\u6210\u529F\u72B6\u6001"}}},border:{default:{dark:{$type:"color",$value:"{seed.ui.color.border}",$description:"border.default\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.14},$description:"\u6D45\u8272\u9ED8\u8BA4\u8FB9\u6846"}},active:{dark:{$type:"color",$value:"{seed.ui.color.activeBorder}",$description:"\u6FC0\u6D3B\u63A7\u4EF6\u63CF\u8FB9\uFF1B\u4E0E\u9009\u4E2D\u80CC\u666F\u914D\u5957\uFF0C\u53EF\u7531\u4E3B\u9898\u8986\u76D6"},light:{$type:"color",$value:"{seed.ui.color.activeBorder}",$description:"\u6D45\u8272\u6FC0\u6D3B\u63A7\u4EF6\u63CF\u8FB9"}}},scrim:{media:{dark:{$type:"color",$value:"{seed.ui.color.info}",$description:"scrim.media\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.72},$description:"\u6D45\u8272\u5A92\u4F53\u906E\u7F69"}},backdrop:{dark:{$type:"color",$value:"{seed.ui.color.overlay}",$description:"scrim.backdrop\uFF0C\u4F9B\u7EC4\u4EF6\u5171\u540C\u5F15\u7528"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.45},$description:"\u6D45\u8272\u80CC\u666F\u906E\u7F69"}},preview:{dark:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],hex:"#000000",alpha:.65},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.0588,.0902,.1608],hex:"#0F172A",alpha:.58},$description:"\u6D45\u8272\u9884\u89C8\u906E\u7F69"}}},primary:{dark:{$type:"color",$value:"{seed.ui.color.primaryAccessible}",$description:"\u4E3B\u64CD\u4F5C\u8272\uFF0C\u9700\u4E0E onAction \u9A8C\u8BC1\u5BF9\u6BD4\u5EA6"},light:{$type:"color",$value:"{semantic.color.brand.accent.light}",$description:"\u6D45\u8272\u4E3B\u64CD\u4F5C\u8272"}},focus:{ring:{dark:{$type:"color",$value:"{semantic.color.primary.dark}",$description:"\u952E\u76D8\u7126\u70B9\u8272\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},light:{$type:"color",$value:"{semantic.color.brand.accent.light}",$description:"\u6D45\u8272\u952E\u76D8\u7126\u70B9\u8272"}}},action:{primaryHover:{dark:{$type:"color",$value:"{semantic.color.primary.dark}",$description:"\u4E3B\u64CD\u4F5C\u60AC\u505C\u72B6\u6001"},light:{$type:"color",$value:"{semantic.color.brand.accentHover.light}",$description:"\u6D45\u8272\u4E3B\u64CD\u4F5C\u60AC\u505C\u72B6\u6001"}}},effect:{start:{dark:{$type:"color",$value:"{seed.ui.color.blueGlow}",$description:"\u7279\u6548\u8272\u6E90\uFF1BShader \u4F7F\u7528\u7EAF\u8272\u4E0E\u72EC\u7ACB\u5F3A\u5EA6"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1765,.4196,.9216],hex:"#2D6BEA",alpha:.3},$description:"\u6D45\u8272\u7279\u6548\u8D77\u59CB\u8272"}},end:{dark:{$type:"color",$value:"{seed.ui.color.violetGlow}",$description:"\u7279\u6548\u8272\u6E90\uFF1BShader \u4F7F\u7528\u7EAF\u8272\u4E0E\u72EC\u7ACB\u5F3A\u5EA6"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.502,.3373,.9098],hex:"#8056E8",alpha:.42},$description:"\u6D45\u8272\u7279\u6548\u7ED3\u675F\u8272"}},lightEdgeStart:{dark:{$type:"color",$value:"{seed.ui.color.lightEdgeBlue}",$description:"\u7279\u6548\u8272\u6E90\uFF1BShader \u4F7F\u7528\u7EAF\u8272\u4E0E\u72EC\u7ACB\u5F3A\u5EA6"},light:{$type:"color",$value:{colorSpace:"srgb",components:[.1412,.4549,.9412],hex:"#2473F0"},$description:"\u6D45\u8272 LightEdge \u8D77\u59CB\u8272"}}},sample:{inkLight:{$type:"color",$value:"{seed.ui.color.white}",$description:"sample-ink-light"},inkDark:{$type:"color",$value:"{seed.ui.color.black}",$description:"sample-ink-dark"}}},font:{body:{$type:"fontFamily",$value:["system-ui","sans-serif"],$description:"\u6B63\u6587\u4E0E\u63A7\u4EF6\u5B57\u4F53"},size:{xs:{$type:"dimension",$value:{value:12,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 12px"},ui11:{$type:"dimension",$value:{value:11,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 11px"},ui17:{$type:"dimension",$value:{value:17,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 17px"},sm:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 14px"},ui22:{$type:"dimension",$value:{value:22,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 22px"},xl:{$type:"dimension",$value:{value:20,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 20px"},ui10:{$type:"dimension",$value:{value:10,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 10px"},lg:{$type:"dimension",$value:{value:18,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 18px"},ui28:{$type:"dimension",$value:{value:28,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 28px"},ui42:{$type:"dimension",$value:{value:42,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 42px"},base:{$type:"dimension",$value:{value:16,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 16px"},ui15:{$type:"dimension",$value:{value:15,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 15px"},ui21:{$type:"dimension",$value:{value:21,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 21px"},ui13:{$type:"dimension",$value:{value:13,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 13px"},"4xl":{$type:"dimension",$value:{value:36,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 36px"},"3xl":{$type:"dimension",$value:{value:30,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 30px"},ui9:{$type:"dimension",$value:{value:9,unit:"px"},$description:"\u5171\u4EAB typography.size \u523B\u5EA6 9px"}}},ui:{control:{height:{sm:{$type:"dimension",$value:{value:28,unit:"px"},$description:"sm \u63A7\u4EF6\u9AD8\u5EA6"},md:{$type:"dimension",$value:{value:34,unit:"px"},$description:"md \u63A7\u4EF6\u9AD8\u5EA6"},lg:{$type:"dimension",$value:{value:42,unit:"px"},$description:"lg \u63A7\u4EF6\u9AD8\u5EA6"}},paddingInline:{sm:{$type:"dimension",$value:"{seed.ui.space.s10}",$description:"sm \u63A7\u4EF6\u6A2A\u5411\u7559\u767D"},md:{$type:"dimension",$value:"{seed.ui.space.s18}",$description:"md \u63A7\u4EF6\u6A2A\u5411\u7559\u767D"},lg:{$type:"dimension",$value:"{seed.ui.space.s22}",$description:"lg \u63A7\u4EF6\u6A2A\u5411\u7559\u767D"}}},radius:{control:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"control \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},container:{$type:"dimension",$value:"{seed.ui.radius.r16}",$description:"container \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},content:{$type:"dimension",$value:"{seed.ui.radius.r12}",$description:"content \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"},pill:{$type:"dimension",$value:"{seed.ui.radius.r999}",$description:"pill \u5706\u89D2\u8BED\u4E49\uFF0C\u53EF\u72EC\u7ACB\u8986\u76D6"}},spacing:{fieldGap:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"fieldGap \u5171\u4EAB\u95F4\u8DDD"},controlGap:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"controlGap \u5171\u4EAB\u95F4\u8DDD"},sectionGap:{$type:"dimension",$value:"{seed.ui.space.s24}",$description:"sectionGap \u5171\u4EAB\u95F4\u8DDD"},surfacePadding:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"surfacePadding \u5171\u4EAB\u95F4\u8DDD"},pagePadding:{$type:"dimension",$value:"{seed.ui.space.s14}",$description:"pagePadding \u5171\u4EAB\u95F4\u8DDD"}},icon:{size:{sm:{$type:"dimension",$value:"{seed.ui.size.s14}",$description:"sm \u56FE\u6807\u5C3A\u5BF8"},md:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"md \u56FE\u6807\u5C3A\u5BF8"},lg:{$type:"dimension",$value:"{seed.ui.size.s20}",$description:"lg \u56FE\u6807\u5C3A\u5BF8"},xl:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"xl \u56FE\u6807\u5C3A\u5BF8"}},target:{sm:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"sm \u56FE\u6807\u70B9\u51FB\u533A\u57DF"},md:{$type:"dimension",$value:"{seed.ui.size.s28}",$description:"md \u56FE\u6807\u70B9\u51FB\u533A\u57DF"},lg:{$type:"dimension",$value:"{seed.ui.size.s36}",$description:"lg \u56FE\u6807\u70B9\u51FB\u533A\u57DF"}}},opacity:{disabled:{$type:"number",$value:.5,$description:"disabled \u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"},busy:{$type:"number",$value:.8,$description:"busy \u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"}},motion:{pressDuration:{$type:"duration",$value:"{seed.ui.duration.s140}",$description:"pressDuration \u52A8\u6548\u65F6\u957F"},popupDuration:{$type:"duration",$value:"{seed.ui.duration.s180}",$description:"popupDuration \u52A8\u6548\u65F6\u957F"},revealDuration:{$type:"duration",$value:"{seed.ui.duration.s240}",$description:"revealDuration \u52A8\u6548\u65F6\u957F"},spinnerDuration:{$type:"duration",$value:"{seed.ui.duration.s800}",$description:"spinnerDuration \u52A8\u6548\u65F6\u957F"},pressedScale:{$type:"number",$value:.97,$description:"\u6309\u4E0B\u4E0E\u6D6E\u5C42\u8FDB\u5165\u7F29\u653E"},hoverBrightness:{$type:"number",$value:1.14,$description:"\u6309\u94AE\u60AC\u505C\u4EAE\u5EA6"}},glass:{blur:{$type:"dimension",$value:{value:14,unit:"px"},$description:"\u901A\u7528\u6BDB\u73BB\u7483\u6A21\u7CCA\u534A\u5F84"},saturation:{$type:"number",$value:1.25,$description:"\u901A\u7528\u6BDB\u73BB\u7483\u9971\u548C\u5EA6"}}}},component:{chart:{radar:{grid:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"\u96F7\u8FBE\u56FE\u7F51\u683C\u7EBF"},axis:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"\u96F7\u8FBE\u56FE\u7EF4\u5EA6\u8F74\u7EBF"},fillStart:{$type:"color",$value:"{semantic.color.brand.accent.dark}",$description:"\u96F7\u8FBE\u56FE\u6E10\u53D8\u8D77\u59CB\u8272\u548C\u8F6E\u5ED3"},fillEnd:{$type:"color",$value:"{semantic.color.brand.secondary.dark}",$description:"\u96F7\u8FBE\u56FE\u6E10\u53D8\u7ED3\u675F\u8272"},glow:{$type:"color",$value:"{semantic.color.brand.secondary.dark}",$description:"\u96F7\u8FBE\u56FE\u67D4\u5149"},label:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"\u96F7\u8FBE\u56FE\u7EF4\u5EA6\u6807\u7B7E"},value:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"\u96F7\u8FBE\u56FE\u4E2D\u5FC3\u503C"}}},ui:{page:{$type:"color",$value:"{semantic.color.surface.page.dark}",$description:"surface.page\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},surface:{$type:"color",$value:"{semantic.color.surface.default.dark}",$description:"surface.default\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},elevated:{$type:"color",$value:"{semantic.color.surface.raised.dark}",$description:"surface.raised\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},control:{$type:"color",$value:"{semantic.color.surface.control.dark}",$description:"surface.control\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},foreground:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"text.primary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},muted:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"text.secondary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},subtle:{$type:"color",$value:"{semantic.color.text.tertiary.dark}",$description:"text.tertiary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},primary:{$type:"color",$value:"{semantic.color.brand.accent.dark}",$description:"brand.accent\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},primaryHover:{$type:"color",$value:"{semantic.color.brand.accentHover.dark}",$description:"brand.accentHover\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},violet:{$type:"color",$value:"{semantic.color.brand.secondary.dark}",$description:"brand.secondary\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},danger:{$type:"color",$value:"{semantic.color.status.danger.dark}",$description:"status.danger\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},dangerBackground:{$type:"color",$value:"{semantic.color.status.dangerSurface.dark}",$description:"status.dangerSurface\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},success:{$type:"color",$value:"{semantic.color.status.success.dark}",$description:"status.success\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},border:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"border.default\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},info:{$type:"color",$value:"{semantic.color.scrim.media.dark}",$description:"scrim.media\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},overlay:{$type:"color",$value:"{semantic.color.scrim.backdrop.dark}",$description:"scrim.backdrop\uFF08\u517C\u5BB9 CSS \u53D8\u91CF\uFF09"},focus:{$type:"color",$value:"{semantic.color.focus.ring.dark}",$description:"\u7126\u70B9\u73AF\u4E0E\u805A\u7126\u63CF\u8FB9"},button:{primary:{background:{$type:"color",$value:"{semantic.color.primary.dark}",$description:"\u4E3B\u6309\u94AE\u80CC\u666F"},hover:{$type:"color",$value:"{semantic.color.action.primaryHover.dark}",$description:"\u4E3B\u6309\u94AE\u60AC\u505C\u80CC\u666F"},foreground:{$type:"color",$value:"{semantic.color.text.onAction.dark}",$description:"\u4E3B\u64CD\u4F5C\u6587\u5B57"}},height:{sm:{$type:"dimension",$value:{value:28,unit:"px"},$description:".monkeys-ui-button[data-size=sm] min-height"},lg:{$type:"dimension",$value:{value:42,unit:"px"},$description:".monkeys-ui-button[data-size=lg] min-height"}},glass:{blur:{$type:"dimension",$value:"{semantic.ui.glass.blur}",$description:"Inner Light Edge \u6309\u94AE\u73BB\u7483 blur"},saturation:{$type:"number",$value:"{semantic.ui.glass.saturation}",$description:"Inner Light Edge \u6309\u94AE\u73BB\u7483 saturation"},inactiveOpacity:{$type:"number",$value:.45,$description:"\u672A\u9009\u4E2D\u73BB\u7483\u5207\u6362\u6309\u94AE\u7684\u4E0D\u900F\u660E\u5EA6"}},gap:{$type:"dimension",$value:"{semantic.ui.spacing.controlGap}",$description:"button gap \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},paddingInline:{sm:{$type:"dimension",$value:"{semantic.ui.control.paddingInline.sm}",$description:"button paddingInline.sm \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},md:{$type:"dimension",$value:"{semantic.ui.control.paddingInline.md}",$description:"button paddingInline.md \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},lg:{$type:"dimension",$value:"{semantic.ui.control.paddingInline.lg}",$description:"button paddingInline.lg \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},paddingBlock:{$type:"dimension",$value:"{component.ui.density.default.buttonPaddingBlock}",$description:"\u9ED8\u8BA4\u6309\u94AE\u7EB5\u5411\u7559\u767D\uFF1B\u5C3A\u5BF8\u53D8\u4F53\u53EF\u8986\u76D6"}},transparent:{$type:"color",$value:"{seed.ui.color.transparent}",$description:"transparent"},"header-background":{$type:"color",$value:"{semantic.color.surface.header.dark}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},"sidebar-background":{$type:"color",$value:"{semantic.color.surface.detail.dark}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},sidebar:{surface:{$type:"color",$value:"{semantic.color.surface.page.dark}",$description:"Sidebar \u6DF1\u8272\u5BFC\u822A\u9762\u677F\u80CC\u666F"},foreground:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"Sidebar \u672A\u9009\u4E2D\u9879\u6587\u5B57\u4E0E\u56FE\u6807"},activeForeground:{$type:"color",$value:"{semantic.color.text.primary.dark}",$description:"Sidebar \u9009\u4E2D\u9879\u6587\u5B57\u4E0E\u56FE\u6807\uFF1B\u5149\u6548\u590D\u7528 Button lightEdge token"},borderColor:{$type:"color",$value:"{semantic.color.border.default.dark}",$description:"Sidebar \u63CF\u8FB9\u4E0E\u5B50\u9879\u5F15\u5BFC\u7EBF\u57FA\u7840\u8272"},borderStart:{$type:"color",$value:"{semantic.color.effect.start.dark}",$description:"Sidebar \u5916\u5C42\u6E10\u53D8\u63CF\u8FB9\u8D77\u59CB\u8272"},borderEnd:{$type:"color",$value:"{semantic.color.effect.end.dark}",$description:"Sidebar \u5916\u5C42\u6E10\u53D8\u63CF\u8FB9\u7ED3\u675F\u8272"},radius:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"Sidebar \u5916\u5C42\u9762\u677F\u5706\u89D2"},itemRadius:{$type:"dimension",$value:"{semantic.ui.radius.content}",$description:"Sidebar \u5BFC\u822A\u9879\u5706\u89D2\uFF1BInner Light Edge \u81EA\u52A8\u9075\u5FAA\u6B64\u5F62\u72B6"},padding:{$type:"dimension",$value:"{seed.ui.space.s12}",$description:"Sidebar \u9762\u677F\u5185\u8FB9\u8DDD"},itemGap:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"Sidebar \u4E00\u7EA7\u5BFC\u822A\u9879\u95F4\u8DDD"},itemHeight:{$type:"dimension",$value:"{seed.ui.size.s56}",$description:"Sidebar \u4E00\u7EA7\u9879\u6700\u5C0F\u9AD8\u5EA6\uFF1B\u957F\u6587\u5B57\u53EF\u4EE5\u589E\u9AD8"},childHeight:{$type:"dimension",$value:"{seed.ui.size.s48}",$description:"Sidebar \u5B50\u9879\u6700\u5C0F\u9AD8\u5EA6"},itemPadding:{$type:"dimension",$value:"{semantic.ui.spacing.surfacePadding}",$description:"Sidebar \u5BFC\u822A\u9879\u6C34\u5E73\u5185\u8FB9\u8DDD"},iconSize:{$type:"dimension",$value:"{semantic.ui.icon.size.lg}",$description:"Sidebar \u56FE\u6807\u5C3A\u5BF8\uFF1B\u540C\u65F6\u5B9A\u4E49\u5B50\u9879\u5F15\u5BFC\u7EBF\u4F4D\u7F6E"},iconGap:{$type:"dimension",$value:"{seed.ui.space.s12}",$description:"Sidebar \u56FE\u6807\u4E0E\u6587\u5B57\u95F4\u8DDD\u53CA\u5B50\u9879\u5F15\u5BFC\u7EBF\u7559\u767D"},fontSize:{$type:"dimension",$value:"{semantic.font.size.base}",$description:"Sidebar \u5BFC\u822A\u6587\u5B57\u5B57\u53F7"},collapsedWidth:{$type:"dimension",$value:{value:136,unit:"px"},$description:"Sidebar \u7A84\u7248\u9762\u677F\u5BBD\u5EA6\uFF1B\u7531\u5BFC\u822A\u9879\u5BBD\u5EA6\u4E0E\u4E24\u4FA7\u7559\u767D\u7EC4\u6210"},expandedWidth:{$type:"dimension",$value:{value:210,unit:"px"},$description:"Sidebar \u5BBD\u7248\u5BBD\u5EA6"},collapsedItemHeight:{$type:"dimension",$value:{value:94,unit:"px"},$description:"Sidebar \u7A84\u7248\u5BFC\u822A\u9879\u9AD8\u5EA6\uFF1B\u7531\u56FE\u6807\u3001\u6587\u5B57\u548C\u70B9\u51FB\u7559\u767D\u7EC4\u6210"},collapsedItemWidth:{$type:"dimension",$value:{value:110,unit:"px"},$description:"Sidebar \u7A84\u7248\u5BFC\u822A\u9879\u5BBD\u5EA6\uFF1B\u4E0E\u7A84\u7248\u622A\u56FE\u6BD4\u4F8B\u4E00\u81F4"},collapsedIconSize:{$type:"dimension",$value:{value:32,unit:"px"},$description:"Sidebar \u7A84\u7248\u56FE\u6807\u5C3A\u5BF8"},collapsedIconGap:{$type:"dimension",$value:{value:12,unit:"px"},$description:"Sidebar \u7A84\u7248\u56FE\u6807\u4E0E\u77ED\u6807\u9898\u95F4\u8DDD"},collapsedRadius:{$type:"dimension",$value:{value:32,unit:"px"},$description:"Sidebar \u7A84\u7248\u5916\u6846\u5706\u89D2"},toggleSize:{$type:"dimension",$value:"{seed.ui.size.s32}",$description:"Sidebar \u5E95\u90E8\u5BBD\u7A84\u7248\u5207\u6362\u6309\u94AE\u5C3A\u5BF8"},surfaceTransparent:{$type:"color",$value:{colorSpace:"srgb",components:[0,0,0],alpha:0},$description:"Sidebar \u5E95\u90E8\u5207\u6362\u6309\u94AE\u6E10\u9690\u5C42\u900F\u660E\u7AEF"}},"sample-ink-light":{$type:"color",$value:"{semantic.color.sample.inkLight}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},"sample-ink-dark":{$type:"color",$value:"{semantic.color.sample.inkDark}",$description:"\u517C\u5BB9\u989C\u8272\u51FA\u53E3"},previewInfo:{$type:"color",$value:"{semantic.color.scrim.preview.dark}",$description:"\u9884\u89C8\u4FE1\u606F\u8868\u9762\uFF1B\u4FDD\u7559\u5F53\u524D 65% alpha"},blueGlow:{$type:"color",$value:"{seed.ui.color.blueGlow}",$description:"\u88C5\u9970\u8272\u4E0E\u900F\u660E\u5EA6\uFF0CShader \u53E6\u53D6\u7EAF\u8272"},violetGlow:{$type:"color",$value:"{seed.ui.color.violetGlow}",$description:"\u88C5\u9970\u8272\u4E0E\u900F\u660E\u5EA6\uFF0CShader \u53E6\u53D6\u7EAF\u8272"},font:{$type:"fontFamily",$value:"{semantic.font.body}",$description:"\u5B57\u4F53\u517C\u5BB9\u5165\u53E3"},radius:{panel:{$type:"dimension",$value:"{semantic.ui.radius.container}",$description:"panel \u5706\u89D2\u51FA\u53E3"},card:{$type:"dimension",$value:"{semantic.ui.radius.container}",$description:"card \u5706\u89D2\u51FA\u53E3"},control:{$type:"dimension",$value:"{semantic.ui.radius.control}",$description:"control \u5706\u89D2\u51FA\u53E3"},info:{$type:"dimension",$value:"{semantic.ui.radius.content}",$description:"info \u5706\u89D2\u51FA\u53E3"},scale:{s24:{$type:"dimension",$value:"{seed.ui.radius.r24}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s999:{$type:"dimension",$value:"{seed.ui.radius.r999}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s12:{$type:"dimension",$value:"{seed.ui.radius.r12}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s8:{$type:"dimension",$value:"{seed.ui.radius.scale.s8}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.radius.scale.s4}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{seed.ui.radius.r16}",$description:"\u5171\u4EAB\u5706\u89D2\u523B\u5EA6"},s10:{$type:"dimension",$value:"{seed.ui.radius.scale.s10}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.radius.scale.s20}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"dimension",$value:"{seed.ui.radius.scale.s2}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{seed.ui.radius.scale.s18}",$description:"radius.scale \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}}},motion:{press:{$type:"duration",$value:"{semantic.ui.motion.pressDuration}",$description:"\u517C\u5BB9\u6309\u4E0B\u65F6\u957F"},popup:{$type:"duration",$value:"{semantic.ui.motion.popupDuration}",$description:"\u517C\u5BB9\u6D6E\u5C42\u65F6\u957F"},ease:{$type:"cubicBezier",$value:[.2,.8,.2,1],$description:"component.ui.motion.ease"},pressedScale:{$type:"number",$value:"{semantic.ui.motion.pressedScale}",$description:"\u6309\u94AE\u4E0E\u6D6E\u5C42\u7F29\u653E"},hoverBrightness:{$type:"number",$value:"{semantic.ui.motion.hoverBrightness}",$description:"\u6309\u94AE\u60AC\u505C\u4EAE\u5EA6"}},controlHeight:{$type:"dimension",$value:"{semantic.ui.control.height.md}",$description:"\u5E38\u89C4\u63A7\u4EF6\u9AD8\u5EA6\u517C\u5BB9\u5165\u53E3"},layout:{stackGap:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"stackGap \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"},sidebarWidth:{$type:"dimension",$value:{value:252,unit:"px"},$description:"sidebarWidth \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"},cardMinWidth:{$type:"dimension",$value:{value:178,unit:"px"},$description:"cardMinWidth \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"},gridGap:{$type:"dimension",$value:"{seed.ui.space.s20}",$description:"gridGap \u5E03\u5C40\u9ED8\u8BA4\u503C\uFF1B\u5B9E\u4F8B\u5C5E\u6027\u4F18\u5148"}},layer:{overlayBase:{$type:"number",$value:1200,$description:"overlayBase \u5F39\u5C42\u5C42\u7EA7"},nestingStep:{$type:"number",$value:10,$description:"nestingStep \u5F39\u5C42\u5C42\u7EA7"},contentOffset:{$type:"number",$value:1,$description:"contentOffset \u5F39\u5C42\u5C42\u7EA7"},local:{s2:{$type:"number",$value:"{seed.ui.layer.local.s2}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"number",$value:"{seed.ui.layer.local.s3}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1100:{$type:"number",$value:"{seed.ui.layer.local.s1100}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"number",$value:"{seed.ui.layer.local.s5}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"number",$value:"{seed.ui.layer.local.s10}",$description:"layer.local \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}}},effect:{hostHeight:{$type:"dimension",$value:{value:240,unit:"px"},$description:"\u72EC\u7ACB\u7279\u6548\u9ED8\u8BA4\u9AD8\u5EA6"},chroma:{intensity:{$type:"number",$value:.7,$description:"chroma \u7684 intensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},momentum:{$type:"number",$value:23,$description:"chroma \u7684 momentum\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},radius:{$type:"number",$value:6,$description:"chroma \u7684 radius\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"}},aurora:{curtainCount:{$type:"number",$value:2,$description:"aurora \u7684 curtainCount\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},height:{$type:"number",$value:81,$description:"aurora \u7684 height\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},intensity:{$type:"number",$value:64,$description:"aurora \u7684 intensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},rayDensity:{$type:"number",$value:12,$description:"aurora \u7684 rayDensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},speed:{$type:"number",$value:10,$description:"aurora \u7684 speed\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},waviness:{$type:"number",$value:39,$description:"aurora \u7684 waviness\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},rotation:{$type:"number",$value:180,$description:"aurora \u7684 rotation\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"}},lightEdge:{thickness:{$type:"number",$value:.48,$description:"lightEdge \u7684 thickness\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},softness:{$type:"number",$value:1,$description:"lightEdge \u7684 softness\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},intensity:{$type:"number",$value:.9,$description:"lightEdge \u7684 intensity\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},bloom:{$type:"number",$value:.2,$description:"lightEdge \u7684 bloom\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},spots:{$type:"number",$value:1,$description:"lightEdge \u7684 spots\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},spotSize:{$type:"number",$value:.6,$description:"lightEdge \u7684 spotSize\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},smoke:{$type:"number",$value:.12,$description:"lightEdge \u7684 smoke\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},smokeSize:{$type:"number",$value:.65,$description:"lightEdge \u7684 smokeSize\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},speed:{$type:"number",$value:.45,$description:"lightEdge \u7684 speed\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},glowBlur:{$type:"number",$value:4.5,$description:"lightEdge \u7684 glowBlur\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},flowBlur:{$type:"number",$value:1,$description:"lightEdge \u7684 flowBlur\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"},shapeInset:{$type:"number",$value:1.5,$description:"lightEdge \u7684 shapeInset\uFF1B\u6570\u503C\u5355\u4F4D\u9075\u5FAA Shader API"}},bottomGlow:{referenceWidth:{$type:"dimension",$value:{value:730,unit:"px"},$description:"bottomGlow \u9AD8\u5EA6\u4E0E\u6A21\u7CCA\u53C2\u6570\u5BF9\u5E94\u7684\u57FA\u51C6\u5BB9\u5668\u5BBD\u5EA6\uFF1B\u5B9E\u9645\u5149\u6655\u968F\u5BB9\u5668\u5BBD\u5EA6\u7B49\u6BD4\u7F29\u653E"},intensity:{$type:"number",$value:.95,$description:"bottomGlow \u5E95\u90E8\u5149\u6655\u5F3A\u5EA6"},height:{$type:"dimension",$value:{value:260,unit:"px"},$description:"bottomGlow \u5149\u6655\u533A\u57DF\u9AD8\u5EA6"},blur:{$type:"dimension",$value:{value:28,unit:"px"},$description:"bottomGlow \u67D4\u5316\u6A21\u7CCA\u534A\u5F84"},duration:{$type:"duration",$value:{value:9,unit:"s"},$description:"bottomGlow \u5149\u6655\u6F02\u79FB\u52A8\u753B\u65F6\u957F"}}},typography:{size:{s12:{$type:"dimension",$value:"{semantic.font.size.xs}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s11:{$type:"dimension",$value:"{semantic.font.size.ui11}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s17:{$type:"dimension",$value:"{semantic.font.size.ui17}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{semantic.font.size.sm}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s22:{$type:"dimension",$value:"{semantic.font.size.ui22}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{semantic.font.size.xl}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{semantic.font.size.ui10}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{semantic.font.size.lg}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{semantic.font.size.ui28}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s42:{$type:"dimension",$value:"{semantic.font.size.ui42}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{semantic.font.size.base}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{semantic.font.size.ui15}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s21:{$type:"dimension",$value:"{semantic.font.size.ui21}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s13:{$type:"dimension",$value:"{semantic.font.size.ui13}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s36:{$type:"dimension",$value:"{semantic.font.size.4xl}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s30:{$type:"dimension",$value:"{semantic.font.size.3xl}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{semantic.font.size.ui9}",$description:"typography.size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},lineHeight:{s1p5:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p5}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p4:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p4}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p3:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p3}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p2:{$type:"number",$value:"{seed.ui.typography.lineHeight.s1p2}",$description:"typography.lineHeight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},weight:{s500:{$type:"number",$value:"{seed.ui.typography.weight.s500}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s600:{$type:"number",$value:"{seed.ui.typography.weight.s600}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s700:{$type:"number",$value:"{seed.ui.typography.weight.s700}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s800:{$type:"number",$value:"{seed.ui.typography.weight.s800}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s200:{$type:"number",$value:"{seed.ui.typography.weight.s200}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s400:{$type:"number",$value:"{seed.ui.typography.weight.s400}",$description:"typography.weight \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}}},size:{s2:{$type:"dimension",$value:"{seed.ui.size.s2}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"dimension",$value:"{seed.ui.size.s3}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1:{$type:"dimension",$value:"{seed.ui.size.s1}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{seed.ui.size.s28}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s42:{$type:"dimension",$value:"{seed.ui.size.s42}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{seed.ui.size.s14}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s24:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{seed.ui.size.s18}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s40:{$type:"dimension",$value:"{seed.ui.size.s40}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.size.s20}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s22:{$type:"dimension",$value:"{seed.ui.size.s22}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s140:{$type:"dimension",$value:"{seed.ui.size.s140}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s85:{$type:"dimension",$value:"{seed.ui.size.s85}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s34:{$type:"dimension",$value:"{seed.ui.size.s34}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s320:{$type:"dimension",$value:"{seed.ui.size.s320}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s160:{$type:"dimension",$value:"{seed.ui.size.s160}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s280:{$type:"dimension",$value:"{seed.ui.size.s280}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s32:{$type:"dimension",$value:"{seed.ui.size.s32}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s53:{$type:"dimension",$value:"{seed.ui.size.s53}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s26:{$type:"dimension",$value:"{seed.ui.size.s26}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s8:{$type:"dimension",$value:"{seed.ui.size.s8}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s62:{$type:"dimension",$value:"{seed.ui.size.s62}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{seed.ui.size.s10}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.size.s4}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"dimension",$value:"{seed.ui.size.s5}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s196:{$type:"dimension",$value:"{seed.ui.size.s196}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s480:{$type:"dimension",$value:"{seed.ui.size.s480}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1000:{$type:"dimension",$value:"{seed.ui.size.s1000}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s660:{$type:"dimension",$value:"{seed.ui.size.s660}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s48:{$type:"dimension",$value:"{seed.ui.size.s48}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s100:{$type:"dimension",$value:"{seed.ui.size.s100}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s64:{$type:"dimension",$value:"{seed.ui.size.s64}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s12:{$type:"dimension",$value:"{seed.ui.size.s12}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s6:{$type:"dimension",$value:"{seed.ui.size.s6}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s168:{$type:"dimension",$value:"{seed.ui.size.s168}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s96:{$type:"dimension",$value:"{seed.ui.size.s96}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s56:{$type:"dimension",$value:"{seed.ui.size.s56}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1p5:{$type:"dimension",$value:"{seed.ui.size.s1p5}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s220:{$type:"dimension",$value:"{seed.ui.size.s220}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s379:{$type:"dimension",$value:"{seed.ui.size.s379}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s68:{$type:"dimension",$value:"{seed.ui.size.s68}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s108:{$type:"dimension",$value:"{seed.ui.size.s108}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s70:{$type:"dimension",$value:"{seed.ui.size.s70}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s57:{$type:"dimension",$value:"{seed.ui.size.s57}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{seed.ui.size.s15}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s244:{$type:"dimension",$value:"{seed.ui.size.s244}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s78:{$type:"dimension",$value:"{seed.ui.size.s78}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s36:{$type:"dimension",$value:"{seed.ui.size.s36}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s23:{$type:"dimension",$value:"{seed.ui.size.s23}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s117:{$type:"dimension",$value:"{seed.ui.size.s117}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s110:{$type:"dimension",$value:"{seed.ui.size.s110}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s156:{$type:"dimension",$value:"{seed.ui.size.s156}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s125:{$type:"dimension",$value:"{seed.ui.size.s125}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s121:{$type:"dimension",$value:"{seed.ui.size.s121}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s127:{$type:"dimension",$value:"{seed.ui.size.s127}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s55:{$type:"dimension",$value:"{seed.ui.size.s55}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s178:{$type:"dimension",$value:"{seed.ui.size.s178}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s497:{$type:"dimension",$value:"{seed.ui.size.s497}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s37:{$type:"dimension",$value:"{seed.ui.size.s37}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s60:{$type:"dimension",$value:"{seed.ui.size.s60}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s7:{$type:"dimension",$value:"{seed.ui.size.s7}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s128:{$type:"dimension",$value:"{seed.ui.size.s128}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s290:{$type:"dimension",$value:"{seed.ui.size.s290}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s210:{$type:"dimension",$value:"{seed.ui.size.s210}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s231:{$type:"dimension",$value:"{seed.ui.size.s231}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s440:{$type:"dimension",$value:"{seed.ui.size.s440}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{seed.ui.size.s9}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s190:{$type:"dimension",$value:"{seed.ui.size.s190}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s130:{$type:"dimension",$value:"{seed.ui.size.s130}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s200:{$type:"dimension",$value:"{seed.ui.size.s200}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s150:{$type:"dimension",$value:"{seed.ui.size.s150}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s350:{$type:"dimension",$value:"{seed.ui.size.s350}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s493:{$type:"dimension",$value:"{seed.ui.size.s493}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s17:{$type:"dimension",$value:"{seed.ui.size.s17}",$description:"size \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},space:{s6:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s18:{$type:"dimension",$value:"{seed.ui.space.s18}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"dimension",$value:"{seed.ui.space.s3}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{seed.ui.space.s10}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s8:{$type:"dimension",$value:"{seed.ui.space.s8}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s22:{$type:"dimension",$value:"{seed.ui.space.s22}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s7:{$type:"dimension",$value:"{seed.ui.space.s7}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{seed.ui.space.s14}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s84:{$type:"dimension",$value:"{seed.ui.space.s84}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.space.s4}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"dimension",$value:"{seed.ui.space.s2}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s12:{$type:"dimension",$value:"{seed.ui.space.s12}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"dimension",$value:"{seed.ui.space.s5}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s26:{$type:"dimension",$value:"{seed.ui.space.s26}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s16:{$type:"dimension",$value:"{seed.ui.space.s16}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s24:{$type:"dimension",$value:"{seed.ui.space.s24}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s30:{$type:"dimension",$value:"{seed.ui.space.s30}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1:{$type:"dimension",$value:"{seed.ui.space.s1}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{seed.ui.space.s15}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s13:{$type:"dimension",$value:"{seed.ui.space.s13}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.space.s20}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s29:{$type:"dimension",$value:"{seed.ui.space.s29}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{seed.ui.space.s9}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s11:{$type:"dimension",$value:"{seed.ui.space.s11}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s115:{$type:"dimension",$value:"{seed.ui.space.s115}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s34:{$type:"dimension",$value:"{seed.ui.space.s34}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s40:{$type:"dimension",$value:"{seed.ui.space.s40}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{seed.ui.space.s28}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s44:{$type:"dimension",$value:"{seed.ui.space.s44}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s23:{$type:"dimension",$value:"{seed.ui.space.s23}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s70:{$type:"dimension",$value:"{seed.ui.space.s70}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s25:{$type:"dimension",$value:"{seed.ui.space.s25}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s19:{$type:"dimension",$value:"{seed.ui.space.s19}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s47:{$type:"dimension",$value:"{seed.ui.space.s47}",$description:"space \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},duration:{s240:{$type:"duration",$value:"{seed.ui.duration.s240}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s800:{$type:"duration",$value:"{seed.ui.duration.s800}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s180:{$type:"duration",$value:"{seed.ui.duration.s180}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s140:{$type:"duration",$value:"{seed.ui.duration.s140}",$description:"duration \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},opacity:{s0p65:{$type:"number",$value:"{seed.ui.opacity.s0p65}",$description:"opacity \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s0p5:{$type:"number",$value:"{semantic.ui.opacity.disabled}",$description:"\u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"},s0p8:{$type:"number",$value:"{semantic.ui.opacity.busy}",$description:"\u5171\u4EAB\u72B6\u6001\u900F\u660E\u5EA6"},s0p4:{$type:"number",$value:"{seed.ui.opacity.s0p4}",$description:"opacity \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},shadowSize:{s8:{$type:"dimension",$value:"{seed.ui.shadowSize.s8}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s20:{$type:"dimension",$value:"{seed.ui.shadowSize.s20}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s12:{$type:"dimension",$value:"{seed.ui.shadowSize.s12}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s1:{$type:"dimension",$value:"{seed.ui.shadowSize.s1}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s4:{$type:"dimension",$value:"{seed.ui.shadowSize.s4}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s10:{$type:"dimension",$value:"{seed.ui.shadowSize.s10}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"dimension",$value:"{seed.ui.shadowSize.s2}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s36:{$type:"dimension",$value:"{seed.ui.shadowSize.s36}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s5:{$type:"dimension",$value:"{seed.ui.shadowSize.s5}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s3:{$type:"dimension",$value:"{seed.ui.shadowSize.s3}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s24:{$type:"dimension",$value:"{seed.ui.shadowSize.s24}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s80:{$type:"dimension",$value:"{seed.ui.shadowSize.s80}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s15:{$type:"dimension",$value:"{seed.ui.shadowSize.s15}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s28:{$type:"dimension",$value:"{seed.ui.shadowSize.s28}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s14:{$type:"dimension",$value:"{seed.ui.shadowSize.s14}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s6:{$type:"dimension",$value:"{seed.ui.shadowSize.s6}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s9:{$type:"dimension",$value:"{seed.ui.shadowSize.s9}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s0p5:{$type:"dimension",$value:"{seed.ui.shadowSize.s0p5}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s7:{$type:"dimension",$value:"{seed.ui.shadowSize.s7}",$description:"shadowSize \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},lineClamp:{s4:{$type:"number",$value:"{seed.ui.lineClamp.s4}",$description:"lineClamp \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"},s2:{$type:"number",$value:"{seed.ui.lineClamp.s2}",$description:"lineClamp \u5171\u4EAB\u523B\u5EA6\uFF0C\u5408\u5E76\u91CD\u590D\u503C"}},material:{control:{background:{$type:"color",$value:"{component.ui.input.background}",$description:"\u63A7\u4EF6\u5171\u7528\u5E95\u6750\uFF1A\u4EE5\u540D\u79F0\u8F93\u5165\u6846\u4E3A\u51C6\uFF0C\u517C\u5BB9\u73B0\u6709 input.background \u8986\u76D6"},border:{$type:"color",$value:"{component.ui.border}",$description:"\u63A7\u4EF6\u5171\u7528\u9876\u90E8\u67D4\u548C\u63CF\u8FB9"},highlight:{$type:"color",$value:"{component.ui.foreground}",$description:"\u63A7\u4EF6\u5171\u7528\u5E95\u90E8\u5185\u9AD8\u5149\u989C\u8272"},highlightOffset:{$type:"dimension",$value:"{component.ui.shadowSize.s5}",$description:"\u63A7\u4EF6\u5E95\u90E8\u5185\u9AD8\u5149\u5411\u4E0A\u504F\u79FB\u91CF"},highlightBlur:{$type:"dimension",$value:"{component.ui.shadowSize.s9}",$description:"\u63A7\u4EF6\u5E95\u90E8\u5185\u9AD8\u5149\u6A21\u7CCA\u534A\u5F84"},highlightSpread:{$type:"dimension",$value:"{component.ui.shadowSize.s8}",$description:"\u63A7\u4EF6\u5E95\u90E8\u5185\u9AD8\u5149\u6536\u7F29\u91CF"}}},input:{tags:{minHeight:{$type:"dimension",$value:{value:40,unit:"px"},$description:".monkeys-ui-tag-input min-height"},gap:{$type:"dimension",$value:{value:6,unit:"px"},$description:"input.tags.gap \u9ED8\u8BA4\u5C3A\u5BF8"},glass:{blur:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"\u65E7 input.tags \u6750\u8D28\u6A21\u7CCA\uFF0C\u5E93\u5185\u5DF2\u4E0D\u4F7F\u7528\uFF1B\u7EDF\u4E00\u6750\u8D28\u8BF7\u4F7F\u7528 component.ui.material.control"},saturation:{$type:"number",$value:1,$description:"\u65E7 input.tags \u6750\u8D28\u9971\u548C\u5EA6\uFF0C\u5E93\u5185\u5DF2\u4E0D\u4F7F\u7528\uFF1B\u7EDF\u4E00\u6750\u8D28\u8BF7\u4F7F\u7528 component.ui.material.control"}}},paddingInline:{$type:"dimension",$value:"{seed.ui.space.s14}",$description:"input paddingInline \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},paddingBlock:{$type:"dimension",$value:"{seed.ui.space.s7}",$description:"input paddingBlock \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},radius:{$type:"dimension",$value:"{semantic.ui.radius.control}",$description:"input radius \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},background:{$type:"color",$value:"{semantic.color.surface.control.dark}",$description:"input background \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},placeholder:{$type:"color",$value:"{semantic.color.text.secondary.dark}",$description:"input placeholder \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"},invalidBorder:{$type:"color",$value:"{semantic.color.status.danger.dark}",$description:"input invalidBorder \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},textarea:{minHeight:{$type:"dimension",$value:{value:85,unit:"px"},$description:".monkeys-ui-textarea min-height"}},switch:{height:{md:{$type:"dimension",$value:{value:34,unit:"px"},$description:"switch.height.md \u9ED8\u8BA4\u5C3A\u5BF8"},sm:{$type:"dimension",$value:{value:28,unit:"px"},$description:"switch.height.sm \u9ED8\u8BA4\u5C3A\u5BF8"},lg:{$type:"dimension",$value:{value:42,unit:"px"},$description:"switch.height.lg \u9ED8\u8BA4\u5C3A\u5BF8"}}},colorSlider:{thumbWidth:{$type:"dimension",$value:{value:96,unit:"px"},$description:"colorSlider.thumbWidth \u9ED8\u8BA4\u5C3A\u5BF8"},glass:{blur:{$type:"dimension",$value:"{seed.ui.size.s12}",$description:"colorSlider \u6750\u8D28\u6A21\u7CCA"},saturation:{$type:"number",$value:1.15,$description:"colorSlider \u6750\u8D28\u9971\u548C\u5EA6"}}},card:{bottomGlow:{color:{$type:"color",$value:"{semantic.color.effect.start.dark}",$description:"\u5361\u7247 BottomGlow \u84DD\u8272\u5916\u7F18\u8272\u6E90\uFF0C\u4E0E\u5171\u4EAB\u5149\u6548\u4E00\u81F4\uFF0C\u6E32\u67D3\u65F6\u4F7F\u7528\u7EAF\u8272"},opacity:{$type:"number",$value:.85,$description:"\u5361\u7247\u5E95\u90E8\u67D4\u5149\u6574\u4F53\u5F3A\u5EA6\uFF0C0 \u4E3A\u5173\u95ED"},height:{$type:"dimension",$value:"{seed.ui.size.s48}",$description:"\u5361\u7247\u5185\u5D4C BottomGlow \u5BBF\u4E3B\u9AD8\u5EA6\uFF0C\u4E0D\u5F71\u54CD\u6587\u5B57\u5E03\u5C40"},offset:{$type:"dimension",$value:"{seed.ui.size.s10}",$description:"\u5361\u7247 BottomGlow \u5411\u4E0B\u504F\u79FB\u8DDD\u79BB\uFF0C\u88C1\u6389\u7D2B\u8272\u4EAE\u82AF\uFF0C\u4EC5\u9732\u51FA\u84DD\u8272\u5916\u7F18"},blur:{$type:"dimension",$value:"{seed.ui.size.s6}",$description:"\u5361\u7247\u5E95\u90E8\u67D4\u5149\u6A21\u7CCA\u534A\u5F84"}},dragHandle:{size:{$type:"dimension",$value:"{seed.ui.size.s24}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u76F4\u5F84"},offset:{$type:"dimension",$value:"{seed.ui.size.s5}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u8DDD\u9876\u8FB9\u4E0E\u8D77\u59CB\u8FB9\u7684\u8DDD\u79BB"},iconSize:{$type:"dimension",$value:"{seed.ui.size.s16}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u516D\u70B9\u56FE\u6807\u5C3A\u5BF8"},background:{$type:"color",$value:"{semantic.color.scrim.media.dark}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u6DF1\u8272\u80CC\u666F"},foreground:{$type:"color",$value:"{semantic.color.sample.inkLight}",$description:"\u5361\u7247\u62D6\u52A8\u624B\u67C4\u56FE\u6807\u989C\u8272"}},actions:{glass:{blur:{$type:"dimension",$value:"{seed.ui.size.s12}",$description:"card.actions \u6750\u8D28\u6A21\u7CCA"},saturation:{$type:"number",$value:1.2,$description:"card.actions \u6750\u8D28\u9971\u548C\u5EA6"}}},titleFontSize:{$type:"dimension",$value:"{semantic.font.size.sm}",$description:"card titleFontSize \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},panel:{padding:{$type:"dimension",$value:"{semantic.ui.spacing.surfacePadding}",$description:"panel padding \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},field:{gap:{$type:"dimension",$value:"{semantic.ui.spacing.fieldGap}",$description:"field gap \u72EC\u7ACB\u8986\u76D6\u5165\u53E3"}},tooltip:{delay:{$type:"duration",$value:{value:500,unit:"ms"},$description:"tooltip delay"},skipDelay:{$type:"duration",$value:{value:300,unit:"ms"},$description:"tooltip skipDelay"},sideOffset:{$type:"dimension",$value:{value:7,unit:"px"},$description:"tooltip \u4E0E\u89E6\u53D1\u5668\u7684\u95F4\u8DDD"}},scrollSurface:{hideDelay:{$type:"duration",$value:{value:700,unit:"ms"},$description:"scrollSurface hideDelay"}},menu:{sideOffset:{$type:"dimension",$value:{value:6,unit:"px"},$description:"menu \u4E0E\u89E6\u53D1\u5668\u7684\u95F4\u8DDD"}},icon:{size:{s12:{$type:"dimension",$value:"{semantic.font.size.xs}",$description:"\u5185\u7F6E\u56FE\u6807 12px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s14:{$type:"dimension",$value:"{semantic.font.size.sm}",$description:"\u5185\u7F6E\u56FE\u6807 14px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s16:{$type:"dimension",$value:"{semantic.font.size.base}",$description:"\u5185\u7F6E\u56FE\u6807 16px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s17:{$type:"dimension",$value:"{semantic.font.size.ui17}",$description:"\u5185\u7F6E\u56FE\u6807 17px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"},s28:{$type:"dimension",$value:"{semantic.font.size.ui28}",$description:"\u5185\u7F6E\u56FE\u6807 28px\uFF0C\u53EF\u72EC\u7ACB\u4E8E\u5B57\u4F53\u8986\u76D6"}}},density:{compact:{buttonPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s3}",$description:"compact buttonPaddingBlock \u5BC6\u5EA6\u7559\u767D"},inputPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s4}",$description:"compact inputPaddingBlock \u5BC6\u5EA6\u7559\u767D"}},default:{buttonPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s6}",$description:"default buttonPaddingBlock \u5BC6\u5EA6\u7559\u767D"},inputPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s7}",$description:"default inputPaddingBlock \u5BC6\u5EA6\u7559\u767D"}},comfortable:{buttonPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s10}",$description:"comfortable buttonPaddingBlock \u5BC6\u5EA6\u7559\u767D"},inputPaddingBlock:{$type:"dimension",$value:"{seed.ui.space.s11}",$description:"comfortable inputPaddingBlock \u5BC6\u5EA6\u7559\u767D"}}},activeBorder:{$type:"color",$value:"{semantic.color.border.active.dark}",$description:"\u63A7\u4EF6\u6FC0\u6D3B\u72B6\u6001\u63CF\u8FB9\uFF1BSegmentedMenuControl \u7B49\u9009\u4E2D\u63A7\u4EF6\u590D\u7528"},quickPromptMenu:{width:{$type:"dimension",$value:"{component.ui.size.s320}",$description:"QuickPromptMenu \u72EC\u7ACB\u6A21\u5F0F\u9ED8\u8BA4\u5BBD\u5EA6\uFF1B\u5BB9\u5668\u951A\u5B9A\u5BBD\u5EA6\u4E0E\u5B9E\u4F8B content.width \u4F18\u5148"},maxHeightRatio:{$type:"number",$value:.6,$description:"QuickPromptMenu \u5360\u89C6\u53E3\u9AD8\u5EA6\u7684\u6700\u5927\u6BD4\u4F8B\uFF0C\u53D6\u503C (0, 1]\uFF1B\u4ECD\u53D7 Radix \u53EF\u7528\u7A7A\u95F4\u7EA6\u675F"},sideOffset:{$type:"number",$value:8,$description:"QuickPromptMenu \u4E0E\u951A\u5B9A\u5BB9\u5668\u7684\u95F4\u8DDD\uFF0C\u5355\u4F4D CSS px\uFF1B\u4F9B Radix \u6570\u503C\u63A5\u53E3\u6D88\u8D39"},collisionPadding:{$type:"number",$value:12,$description:"QuickPromptMenu \u89C6\u53E3\u907F\u8BA9\u8FB9\u8DDD\uFF0C\u5355\u4F4D CSS px\uFF1B\u4F9B Radix \u6570\u503C\u63A5\u53E3\u6D88\u8D39"}}}}};var Ps={seed:{ui:{color:{page:{$type:"color",$value:{colorSpace:"srgb",components:[.07450980392156863,.08235294117647059,.10196078431372549],hex:"#13151A"},$description:"seed.ui.color.page"},surface:{$type:"color",$value:{colorSpace:"srgb",components:[.09019607843137255,.10588235294117647,.15294117647058825],hex:"#171B27"},$description:"seed.ui.color.surface"},elevated:{$type:"color",$value:{colorSpace:"srgb",components:[.13333333333333333,.15294117647058825,.2196078431372549],hex:"#222738"},$description:"seed.ui.color.elevated"},foreground:{$type:"color",$value:{colorSpace:"srgb",components:[1,1,1],hex:"#FFFFFF"},$description:"seed.ui.color.foreground"},muted:{$type:"color",$value:{colorSpace:"srgb",components:[.7843137254901961,.7843137254901961,.7843137254901961],hex:"#C8C8C8"},$description:"seed.ui.color.muted"},subtle:{$type:"color",$value:{colorSpace:"srgb",components:[.6980392156862745,.6980392156862745,.6980392156862745],hex:"#B2B2B2"},$description:"seed.ui.color.subtle"},primary:{$type:"color",$value:{colorSpace:"srgb",components:[.28627450980392155,.4666666666666667,.9215686274509803],hex:"#4977EB"},$description:"seed.ui.color.primary"},lightEdgeBlue:{$type:"color",$value:{colorSpace:"srgb",components:[.25882352941176473,.5215686274509804,1],hex:"#4285FF"},$description:"seed.ui.color.lightEdgeBlue"},primaryHover:{$type:"color",$value:{colorSpace:"srgb",components:[.3803921568627451,.5450980392156862,.9568627450980393],hex:"#618BF4"},$description:"seed.ui.color.primaryHover"},violet:{$type:"color",$value:{colorSpace:"srgb",components:[.5764705882352941,.36470588235294116,1],hex:"#935DFF"},$description:"seed.ui.color.violet"},focus:{$type:"color",$value:{colorSpace:"srgb",components:[.6627450980392157,.7333333333333333,1],hex:"#A9BBFF"},$description:"seed.ui.color.focus"},border:{$type:"color",$value:{colorSpace:"srgb",components:[.6862745098039216,.7333333333333333,1],hex:"#AFBBFF",alpha:.5},$description:"seed.ui.color.border"},blueGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.13725490196078433,.3411764705882353,.9176470588235294],hex:"#2357EA",alpha:.35},$description:"seed.ui.color.blueGlow"},violetGlow:{$type:"color",$value:{colorSpace:"srgb",components:[.4627450980392157,.19215686274509805,1],hex:"#7631FF",alpha:.5},$description:"seed.ui.color.violetGlow"},primaryAccessible:{$type:"color",$value:{colorSpace:"srgb",components:[.23529411764705882,.38823529411764707,.8117647058823529],hex:"#3C63CF"},$description:"seed.ui.color.primaryAccessible"},header:{$type:"color",$value:{colorSpace:"srgb",components:[.12941176470588237,.32941176470588235,.8509803921568627],hex:"#2154D9"},$description:"\u79DF\u6237\u989C\u8272\u539F\u59CB\u503C"}}}},semantic:{font:{body:{$type:"fontFamily",$value:["Inter","Monkeys UI Sans","Microsoft YaHei","sans-serif"],$description:"BSD \u5B57\u4F53\u6808"}}}};var wi=i(e=>!!e&&typeof e=="object"&&!Array.isArray(e),"isGroup");function Sn(e,t){function o(n,r){if(r===void 0)return n;if(!wi(n)||!wi(r)||"$value"in r||"$value"in n)return r;let a={...n};for(let l of Object.keys(r))a[l]=o(n[l],r[l]);return a}return i(o,"merge"),o(e,t)}i(Sn,"mergeThemeTokens");function Ns(e,t){if(t==="dark")return e;let o=i(n=>typeof n=="string"?n.replace(/\.(?:dark|light)(?=})/g,`.${t}`):Array.isArray(n)?n.map(o):wi(n)?Object.fromEntries(Object.entries(n).map(([r,a])=>[r,o(a)])):n,"visit");return o(e)}i(Ns,"resolveThemeColorModeTokens");var Ju=Rs,Ms={bsd:{id:"bsd",label:"BSD",colorModes:["light","dark"],tokens:Ps},"neutral-demo":{id:"neutral-demo",label:"Neutral Demo\uFF08\u6F14\u793A\uFF09",colorModes:["light","dark"],tokens:{}}};function Is(e="bsd",t){if(!Object.prototype.hasOwnProperty.call(Ms,e))throw new TypeError(`Unknown UI tenant: ${e}`);let o=Ms[e];return Sn(Sn(Ju,o.tokens),t)}i(Is,"getTenantTheme");var ki=Symbol.for("@inf-monkeys-tech/monkeys-design/ui-theme-context@1"),$i=globalThis;$i[ki]||Object.defineProperty($i,ki,{value:createContext(null)});var qo=$i[ki];var zs=Is("bsd"),Si=Wo(zs,{colorMode:"dark"});var Bs=createContext(0);function Qt(e){let t=useContext(qo),o=Ts(),n=xi(),[r,a]=useState();return useEffect(()=>{if(e||t?.dir||o)return;let s=(n.getDocument?.()??globalThis.document)?.documentElement;if(!s)return;let d=i(()=>a(s.dir==="rtl"?"rtl":"ltr"),"update");d();let u=new MutationObserver(d);return u.observe(s,{attributes:true,attributeFilter:["dir"]}),()=>u.disconnect()},[e,t?.dir,o,n]),e??t?.dir??o??r}i(Qt,"useUIDirection");function Ci(){let e=Ss();return e.provided?e:{...bn,provided:false}}i(Ci,"useUILocale");var tr=new WeakMap;function ip(e){let t=tr.get(e);if(t)return t.count++,()=>As(e);let o=e.documentElement,n=o.getAttribute("data-monkeys-ui-input"),r=i(()=>o.setAttribute("data-monkeys-ui-input","pointer"),"pointer"),a=i(()=>o.setAttribute("data-monkeys-ui-input","keyboard"),"keyboard");return e.addEventListener("pointerdown",r,true),e.addEventListener("keydown",a,true),tr.set(e,{count:1,dispose:i(()=>{e.removeEventListener("pointerdown",r,true),e.removeEventListener("keydown",a,true),n===null?o.removeAttribute("data-monkeys-ui-input"):o.setAttribute("data-monkeys-ui-input",n);},"dispose")}),()=>As(e)}i(ip,"observeInput");function As(e){let t=tr.get(e);t&&--t.count===0&&(t.dispose(),tr.delete(e));}i(As,"releaseInput");function Ko(){let e=useContext(qo),t=$n();return useMemo(()=>e?.compiled??(t?.contract?Wo(Ns(Sn(zs,t.contract),t.colorMode==="light"?"light":"dark"),{colorMode:t.colorMode==="light"?"light":"dark"}):Si),[e?.compiled,t?.contract,t?.colorMode])}i(Ko,"useUIResolvedTokens");function Cn({children:e}){let t=useContext(qo),o=$n(),n=xi(),r=Jn(),a=Qt(),l=useContext(Bs)+1,[s,d]=useState(null);useEffect(()=>{let h=n.getDocument?.()??globalThis.document;return d(typeof r.container=="function"?r.container():r.container??h?.body??null),h?ip(h):void 0},[n,r.container]);let u=Number(t?.variables["--monkeys-ui-layer-overlay-base"]??Si.values["component.ui.layer.overlayBase"]),m=Number(t?.variables["--monkeys-ui-layer-nesting-step"]??Si.values["component.ui.layer.nestingStep"]),c=t?.compiled.colorMode??o?.colorMode??"dark",p=jsx(Bs.Provider,{value:l,children:jsx("div",{className:"monkeys-ui-scope monkeys-ui-portal",dir:a,"data-monkeys-ui-tenant":t?.tenant??"bsd","data-monkeys-ui-theme":c,style:{...t?.variables,colorScheme:c,"--monkeys-ui-overlay-layer":u+l*m},children:e})});return r.disabled?p:s?createPortal(p,s):null}i(Cn,"Portal");function Ti(e){if(!e||!/^#([\da-f]{3}|[\da-f]{6})$/i.test(e))return "light";let t=e.slice(1).length===3?[...e.slice(1)].map(r=>r+r).join(""):e.slice(1),o=[0,2,4].map(r=>{let a=parseInt(t.slice(r,r+2),16)/255;return a<=.04045?a/12.92:((a+.055)/1.055)**2.4});return o[0]*.2126+o[1]*.7152+o[2]*.0722>=.8?"dark":"light"}i(Ti,"sampleInk");function or(){let[e,t]=useState(false);return useEffect(()=>{let o=window.matchMedia("(prefers-reduced-motion: reduce)"),n=window.matchMedia("(forced-colors: active)"),r=i(()=>t(!o.matches&&!n.matches),"update");return r(),o.addEventListener("change",r),n.addEventListener("change",r),()=>{o.removeEventListener("change",r),n.removeEventListener("change",r);}},[]),e}i(or,"useShaderEnabled");function Us(e){let t=i(n=>{let r=`semantic.color.effect.${n}.${e.colorMode}`;return e.values[r]?.hex??Xn(e,r)},"color"),o=i((n,r)=>Number(e.values[`component.ui.effect.${n}.${r}`]),"number");return {start:t("start"),end:t("end"),lightEdgeStart:t("lightEdgeStart"),chroma:{intensity:o("chroma","intensity"),momentum:o("chroma","momentum"),radius:o("chroma","radius")},aurora:{curtainCount:o("aurora","curtainCount"),height:o("aurora","height"),intensity:o("aurora","intensity"),rayDensity:o("aurora","rayDensity"),speed:o("aurora","speed"),waviness:o("aurora","waviness")},lightEdge:{thickness:o("lightEdge","thickness"),softness:o("lightEdge","softness"),intensity:o("lightEdge","intensity"),bloom:o("lightEdge","bloom"),spots:o("lightEdge","spots"),spotSize:o("lightEdge","spotSize"),smoke:o("lightEdge","smoke"),smokeSize:o("lightEdge","smokeSize"),speed:o("lightEdge","speed")},rotation:o("aurora","rotation"),glowBlur:o("lightEdge","glowBlur"),flowBlur:o("lightEdge","flowBlur"),shapeInset:o("lightEdge","shapeInset")}}i(Us,"resolveEffectTokens");function Os(e){let t=`button-light-edge-${useId().replace(/:/g,"")}`,o=useRef(null),[n,r]=useState(null),a=or(),l=Ko(),s=Us(l),[d,u]=useState(false),[m,c]=useState(null);return useEffect(()=>{if(!a)return;let p=true;return import('shaders/react').then(h=>{p&&r(h);}).catch(()=>{}),()=>{p=false;}},[a]),useEffect(()=>{let p=o.current,h=p?.closest("button");if(!h||!p)return;let v=i(()=>{let g=p.clientWidth,f=p.clientHeight;if(!g||!f)return;let x=getComputedStyle(h).borderTopLeftRadius,y=x.endsWith("%")?Math.min(g,f)*parseFloat(x)/100:parseFloat(x)||0,$=s.shapeInset;c({type:"roundedRectSDF",radius:Math.max(.01,g/(2*f)-$/f),height:Math.max(.01,.5-$/f),rounding:Math.max(0,Math.min(y-$,f/2-$))/f});},"update");v();let w=new ResizeObserver(v);return w.observe(h),()=>w.disconnect()},[l]),jsxs("span",{ref:o,className:"monkeys-ui-button-light-edge-mask","data-ready":d||void 0,children:[jsx("svg",{width:"0",height:"0","aria-hidden":"true",className:"monkeys-ui-button-light-edge-defs",children:jsx("defs",{children:jsxs("filter",{id:t,x:"-30%",y:"-100%",width:"160%",height:"300%",colorInterpolationFilters:"sRGB",children:[jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:s.glowBlur,result:"glow"}),jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:s.flowBlur,result:"flow"}),jsxs("feMerge",{children:[jsx("feMergeNode",{in:"glow"}),jsx("feMergeNode",{in:"flow"})]})]})})}),jsxs("span",{className:"monkeys-ui-button-light-edge-flow",style:{filter:`url(#${t})`},children:[jsx("span",{className:"monkeys-ui-button-light-edge-ambient"}),a&&n&&m?jsx(n.Shader,{disableTelemetry:true,style:{width:"100%",height:"100%"},onReady:()=>u(true),children:jsx(n.LightEdge,{colorA:s.lightEdgeStart,colorB:s.end,...s.lightEdge,...e,stops:null,shape:m})}):null]})]})}i(Os,"ButtonLightEdge");var No=forwardRef(i(function(t,o){let{props:n,slot:r}=cs("Button",t),{variant:a,shape:l="default",icon:s,tone:d="neutral",emphasis:u="secondary",effect:m,size:c="md",loading:p=false,lightEdge:h=false,glassColor:v,glassOpacity:w,toggle:g=false,checked:f,defaultChecked:x,onCheckedChange:y,required:$,motion:M="auto",activeBorderColor:C,type:R="button",className:P,style:F,children:L,onClick:B,onPointerDown:k,onKeyDown:T,...D}=n,_=useContext(qo),Z=Qt(),[Y,O]=Lt(f,x,false,y),J=m??(h?"light-edge":"none"),E=a??(l==="icon"?"ghost":l==="tile"?"outline":"solid"),te={...F,...C?{"--monkeys-ui-button-active-border-color":C}:{},...v?{"--monkeys-ui-button-glass-color":v}:{},...w!==void 0?{"--monkeys-ui-button-glass-opacity":Math.min(1,Math.max(0,w))}:{},...g?{"--monkeys-ui-button-glass-state-opacity":Y?1:"var(--monkeys-ui-button-glass-inactive-opacity,var(--monkeys-ui-default-button-glass-inactive-opacity))"}:{}},ee=g?Y:D["aria-pressed"]===true||D["aria-pressed"]==="true",me=d==="primary"&&E==="solid"||ee&&l!=="icon"&&E!=="glass"&&J!=="brand-glow";return _?.colorSource==="platform"&&me&&(te={color:"var(--monkeys-ui-button-primary-foreground)",...te}),a==="switch"?jsx(qs,{...D,style:F,ref:o,type:R,value:D.value===void 0?void 0:String(D.value),required:$,checked:f,defaultChecked:x,onCheckedChange:y,className:ft("monkeys-ui-button-switch",P),"data-variant":"switch","data-tone":"primary","data-emphasis":u,"data-effect":J,"data-size":c,"aria-label":D["aria-label"]??(typeof L=="string"?L:void 0),"aria-busy":p||void 0,"aria-disabled":p||D["aria-disabled"],onPointerDown:k,onKeyDown:T,onClick:de=>{if(p||D["aria-disabled"]===true||D["aria-disabled"]==="true"){de.preventDefault();return}B?.(de);}}):jsxs("button",{...D,dir:D.dir??Z,ref:o,type:R,style:te,className:ft("monkeys-ui-button",P),"data-light-edge":J==="light-edge"?true:void 0,"data-effect":J,"data-emphasis":u,"data-shape":l,"data-variant":E,"data-tone":d,"data-size":c,"data-motion":M,"data-active-border":C?true:void 0,onPointerDown:de=>{de.currentTarget.dataset.input="pointer",k?.(de);},onKeyDown:de=>{de.currentTarget.dataset.input="keyboard",T?.(de);},"aria-pressed":g?Y:D["aria-pressed"],"aria-busy":p||void 0,"aria-disabled":p||D["aria-disabled"],onClick:de=>{if(p||D["aria-disabled"]===true||D["aria-disabled"]==="true"){de.preventDefault();return}B?.(de),g&&!de.defaultPrevented&&O(!Y);},children:[J==="light-edge"?jsx("span",{...r("effect","monkeys-ui-button-light-edge"),"aria-hidden":"true",children:jsx(Os,{...h===true||!h?{}:h})}):null,jsxs("span",{...r("label","monkeys-ui-button-label"),"data-loading":p||void 0,children:[s?jsx("span",{...r("icon","monkeys-ui-button-icon"),"aria-hidden":"true",children:s}):null,L]}),p?jsx("span",{...r("spinner","monkeys-ui-button-spinner"),"aria-hidden":"true"}):null]})},"Button"));forwardRef(i(function(t,o){return jsx(No,{...t,ref:o,toggle:true})},"ToggleButton"));forwardRef(i(function({options:t,value:o,defaultValue:n,onValueChange:r,onValueCommit:a,disabled:l,readOnly:s,className:d,style:u,onPointerDown:m,onPointerMove:c,onPointerCancel:p,onKeyDown:h,onPointerUp:v,onKeyUp:w,dir:g,name:f,...x},y){let $=po(x),M=Qt(g==="rtl"||g==="ltr"?g:void 0),[C,R]=Lt(o,n,t[0]?.id??"",r),P=useRef(null),F=useRef(n??t[0]?.id??"");useImperativeHandle(y,()=>P.current,[]),Vo(P,()=>{o===void 0&&R(F.current);});let L=Math.max(0,t.findIndex(A=>A.id===C)),B=t[L],k=or(),[T,D]=useState("keyboard"),_=useRef(null),Z=k&&T==="pointer"&&!l&&!s,Y={label:B?.label,color:B?.color},[O,J]=useState({layers:[Y,Y],active:0}),E=O.layers[O.active];if(E.label!==Y.label||E.color!==Y.color){let A=1-O.active;J({layers:O.layers.map((W,ae)=>ae===A?Y:W),active:A});}let te=t.length>1?L/(t.length-1):.5,ee=i(A=>`calc(${A*100}% + ${.5-A} * var(--monkeys-ui-color-slider-thumb-width,var(--monkeys-ui-default-color-slider-thumb-width)))`,"location"),me=t.map((A,W)=>{let ae=t.length>1?W/(t.length-1):0;return `${A.color} ${ee(ae)}`}),de=t.length>1?`linear-gradient(to ${M==="rtl"?"left":"right"}, ${me.join(", ")})`:B?.color,I=l||s||t.length<2,j=i(A=>{let W=t[Number(A.value)];!I&&W&&a?.(W.id);},"commit");return jsxs("div",{className:ft("monkeys-ui-color-slider",d),"data-animated":Z||void 0,"data-disabled":l||t.length===0||void 0,dir:M,style:u,children:[jsx("span",{className:"monkeys-ui-color-slider-track",style:{background:de},"aria-hidden":"true"}),jsx("span",{className:"monkeys-ui-color-slider-positioner",style:{transform:`translateX(${(M==="rtl"?-1:1)*te*100}%)`},"aria-hidden":"true",children:jsx("span",{className:"monkeys-ui-color-slider-thumb","data-ink":Ti(B?.color),style:{"--monkeys-ui-color-slider-selected":B?.color},children:O.layers.map((A,W)=>jsx("span",{className:"monkeys-ui-color-slider-sample","data-active":W===O.active,"data-ink":Ti(A.color),style:{"--monkeys-ui-color-slider-selected":A.color},children:jsx("span",{className:W===O.active?"monkeys-ui-color-slider-label":"monkeys-ui-color-slider-previous-label",children:A.label})},W))})}),jsx("input",{...x,...$,ref:P,type:"range",dir:M,min:0,max:Math.max(0,t.length-1),step:1,value:L,disabled:l||t.length===0,"aria-readonly":s||void 0,"aria-valuetext":B?.label??"",className:"monkeys-ui-color-slider-input",onPointerDown:A=>{m?.(A),s&&A.preventDefault(),!I&&!A.defaultPrevented&&A.isPrimary!==false&&A.button===0&&(_.current={id:A.pointerId,x:A.clientX,y:A.clientY},D("pointer"));},onPointerMove:A=>{c?.(A);let W=_.current;W?.id===A.pointerId&&Math.hypot(A.clientX-W.x,A.clientY-W.y)>3&&D("drag");},onPointerCancel:A=>{_.current=null,D("keyboard"),p?.(A);},onKeyDown:A=>{_.current=null,D("keyboard"),h?.(A),s&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(A.key)&&A.preventDefault();},onChange:A=>{if(!I){let W=t[Number(A.target.value)];W&&R(W.id);}},onPointerUp:A=>{_.current=null,v?.(A),A.defaultPrevented||j(A.currentTarget);},onKeyUp:A=>{w?.(A),!A.defaultPrevented&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(A.key)&&j(A.currentTarget);}}),f?jsx("input",{type:"hidden",name:f,form:x.form,value:B?.id??"",disabled:l||t.length===0}):null]})},"ColorSlider"));var gp=createContext(null);function po(e){let t=useContext(gp),o=Qt(e.dir==="rtl"||e.dir==="ltr"?e.dir:void 0);return {id:t?.id??e.id,dir:e.dir??o,"aria-describedby":[t?.describedBy,e["aria-describedby"]].filter(Boolean).join(" ")||void 0,"aria-invalid":e["aria-invalid"]??t?.invalid,required:e.required??t?.required}}i(po,"useField");var sr=forwardRef(i(function(t,o){let n=po(t);if(t.variant==="tags")return t.mode==="select"?jsx(hp,{...t,ref:o}):jsx(fp,{...t,ref:o});if(t.variant==="search")return jsx(yp,{...t,ref:o});if(t.variant==="number")return jsx(vp,{...t,ref:o});let{variant:r,className:a,...l}=t;return jsx("input",{...l,...n,className:ft("monkeys-ui-input",a),ref:o})},"Input")),fp=forwardRef(i(function({variant:t,mode:o,value:n,defaultValue:r,onValueChange:a,inputValue:l,onInputValueChange:s,removeLabel:d="\u5220\u9664",name:u,form:m,className:c,style:p,disabled:h,readOnly:v,placeholder:w="\u8F93\u5165\u5E76\u56DE\u8F66\u540E\u6DFB\u52A0",onChange:g,onKeyDown:f,onCompositionStart:x,onCompositionEnd:y,...$},M){let C=po($),[R,P]=Lt(n,r,[],a),[F,L]=Lt(l,void 0,"",s),[B,k]=useState(""),T=useRef(false),D=useRef(null),_=h||v;useImperativeHandle(M,()=>D.current,[]);let Z=useRef(r??[]);Vo(D,()=>{n===void 0&&P(Z.current),L("");}),useEffect(()=>{D.current?.setCustomValidity(C.required&&R.length===0?"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E":"");},[C.required,R.length]);let Y=i(O=>{_||(P(R.filter((J,E)=>E!==O)),k(`${d} ${R[O]}`),D.current?.focus());},"remove");return jsxs("div",{className:ft("monkeys-ui-tag-input",c),style:p,dir:C.dir,"data-variant":t,"data-disabled":h||void 0,"aria-disabled":h||void 0,"data-readonly":v||void 0,"data-invalid":C["aria-invalid"]||void 0,onClick:O=>{!h&&!O.target.closest("button")&&D.current?.focus();},children:[R.map((O,J)=>jsx(Gs,{label:O,disabled:_,removeLabel:d,onRemove:()=>Y(J)},`${J}:${O}`)),jsx("input",{...$,...C,ref:D,form:m,type:"text",className:"monkeys-ui-tag-input-editor",disabled:h,readOnly:v,placeholder:w,value:F,required:C.required&&R.length===0,"aria-required":C.required||void 0,onChange:O=>{_||(L(O.target.value),g?.(O));},onCompositionStart:O=>{T.current=true,x?.(O);},onCompositionEnd:O=>{T.current=false,y?.(O);},onKeyDown:O=>{if(f?.(O),!(O.defaultPrevented||_||T.current||O.nativeEvent.isComposing||O.keyCode===229))if(O.key==="Enter"){O.preventDefault();let J=F.trim();J&&!R.includes(J)&&(P([...R,J]),k(J)),L("");}else O.key==="Backspace"&&F===""&&R.length&&(O.preventDefault(),Y(R.length-1));}}),u?R.map((O,J)=>jsx("input",{type:"hidden",name:u,form:m,value:O,disabled:h},J)):null,jsx("span",{className:"monkeys-ui-visually-hidden","aria-live":"polite","aria-atomic":"true",children:B})]})},"InputTagsControl"));function Gs({label:e,disabled:t,removeLabel:o,onRemove:n,onActivate:r}){return jsxs("span",{className:"monkeys-ui-input-tag",children:[r?jsx("button",{type:"button",className:"monkeys-ui-input-tag-text monkeys-ui-input-tag-activate",title:e,disabled:t,onClick:r,children:e}):jsx("span",{className:"monkeys-ui-input-tag-text",title:e,children:e}),n?jsx("button",{type:"button",className:"monkeys-ui-input-tag-remove",disabled:t,"aria-label":`${o} ${e}`,onClick:n,children:jsx(X,{size:"var(--monkeys-ui-icon-size-s14,var(--monkeys-ui-default-icon-size-s14))","aria-hidden":"true"})}):null]})}i(Gs,"InputTag");var hp=forwardRef(i(function({variant:t,mode:o,label:n,items:r,onAdd:a,onRemove:l,onItemActivate:s,removeLabel:d="\u79FB\u9664",name:u,form:m,disabled:c,readOnly:p,className:h,style:v,onInvalid:w,...g},f){let x=po(g),y=useRef(null),$=useRef(null),M=useRef(null),[C,R]=useState(""),P=c||p;return useImperativeHandle(f,()=>y.current,[]),useEffect(()=>{y.current?.setCustomValidity(x.required&&!r.length?"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E":"");},[x.required,r.length]),jsxs("div",{ref:M,role:"group","aria-label":n,"aria-describedby":x["aria-describedby"],"aria-required":x.required||void 0,"aria-invalid":x["aria-invalid"],tabIndex:-1,dir:x.dir,className:ft("monkeys-ui-tag-input",h),"data-mode":o,"data-empty":!r.length,"data-disabled":c||void 0,"aria-disabled":c||void 0,"data-readonly":p||void 0,"data-invalid":x["aria-invalid"]||void 0,style:v,children:[jsxs("div",{className:"monkeys-ui-tag-input-header",children:[jsx("span",{className:"monkeys-ui-label",children:n}),a?jsx("button",{ref:$,type:"button",className:"monkeys-ui-tag-input-add",disabled:P,"aria-label":"\u6DFB\u52A0"+n,onClick:a,children:jsx(Plus,{"aria-hidden":"true"})}):null]}),r.length?jsx("div",{className:"monkeys-ui-tag-input-items",children:r.map(F=>jsx(Gs,{label:F.label,disabled:P,removeLabel:d,onActivate:s&&F.activatable!==false?()=>{P||s(F.id);}:void 0,onRemove:l?()=>{P||(l(F.id),R(`${d} ${F.label}`),($.current??M.current)?.focus());}:void 0},F.id))}):null,jsx("input",{...g,...x,ref:y,form:m,type:"text",className:"monkeys-ui-visually-hidden","aria-hidden":"true",tabIndex:-1,value:r.length?"selected":"",onChange:()=>{},disabled:c,required:x.required,onInvalid:F=>{w?.(F),F.preventDefault(),($.current??M.current)?.focus();}}),u?r.map(F=>jsx("input",{type:"hidden",name:u,form:m,value:F.id,disabled:c},F.id)):null,jsx("span",{className:"monkeys-ui-visually-hidden","aria-live":"polite","aria-atomic":"true",children:C})]})},"InputTagSelectionControl"));forwardRef(i(function({className:t,...o},n){let r=po(o);return jsx("textarea",{...o,...r,ref:n,className:ft("monkeys-ui-textarea",t)})},"Textarea"));function bp(e){return /^-?(?:\d+|\d*\.\d+)$/.test(e.trim())&&Number.isFinite(Number(e))?Number(e):null}i(bp,"parseNumberValue");forwardRef(i(function(t,o){return jsx(sr,{...t,variant:"number",ref:o})},"NumberInput"));var vp=forwardRef(i(function({variant:t,value:o,defaultValue:n,onValueChange:r,onChange:a,...l},s){let[d,u]=Lt(o,n,"",p=>r?.(p,{numberValue:bp(p)})),m=useRef(null),c=useRef(n??"");return useImperativeHandle(s,()=>m.current,[]),Vo(m,()=>{o===void 0&&u(c.current);}),jsx(sr,{...l,variant:"default",type:"text",inputMode:"decimal",value:d,onChange:p=>{u(p.target.value),a?.(p);},ref:m})},"InputNumberControl"));forwardRef(i(function(t,o){return jsx(sr,{...t,variant:"search",ref:o})},"SearchField"));var yp=forwardRef(i(function({variant:t,value:o,defaultValue:n,onValueChange:r,onChange:a,onSearch:l,clearLabel:s="\u6E05\u7A7A\u641C\u7D22",className:d,onKeyDown:u,onCompositionStart:m,onCompositionEnd:c,disabled:p,readOnly:h,...v},w){let[g,f]=Lt(o,n,"",r),x=useRef(false),y=useRef(null);useImperativeHandle(w,()=>y.current,[]);let $=useRef(n??"");Vo(y,()=>{o===void 0&&f($.current);});let M=i(()=>{let C=y.current;if(p||h||!C)return;Object.getOwnPropertyDescriptor(C.ownerDocument.defaultView.HTMLInputElement.prototype,"value").set.call(C,""),C.dispatchEvent(new Event("input",{bubbles:true})),C.focus();},"clear");return jsxs("div",{className:ft("monkeys-ui-search",d),children:[jsx(Search,{size:"var(--monkeys-ui-icon-size-s17,var(--monkeys-ui-default-icon-size-s17))","aria-hidden":"true"}),jsx(sr,{...v,variant:"default",ref:y,type:"search",disabled:p,readOnly:h,value:g,onChange:C=>{!p&&!h&&(f(C.target.value),a?.(C));},onCompositionStart:C=>{x.current=true,m?.(C);},onCompositionEnd:C=>{x.current=false,c?.(C);},onKeyDown:C=>{u?.(C),!C.defaultPrevented&&C.key==="Enter"&&!p&&!h&&!x.current&&!C.nativeEvent.isComposing&&C.keyCode!==229&&(C.preventDefault(),l?.(g));}}),g?jsx(No,{shape:"icon","aria-label":s,size:"sm",disabled:p||h,onClick:M,children:jsx(X,{size:"var(--monkeys-ui-icon-size-s14,var(--monkeys-ui-default-icon-size-s14))","aria-hidden":"true"})}):null]})},"InputSearchControl")),qs=forwardRef(i(function({checked:t,defaultChecked:o,onCheckedChange:n,className:r,onPointerDown:a,onKeyDown:l,...s},d){let u=po(s),[m,c]=Lt(t,o,false,n);return jsx(ir.Root,{...s,...u,ref:d,checked:m,onCheckedChange:c,onPointerDown:p=>{p.currentTarget.dataset.input="pointer",a?.(p);},onKeyDown:p=>{p.currentTarget.dataset.input="keyboard",l?.(p);},className:ft("monkeys-ui-switch",r),children:jsx(ir.Thumb,{className:"monkeys-ui-switch-thumb"})})},"Switch"));forwardRef(i(function({label:t,description:o,checked:n,defaultChecked:r,onCheckedChange:a,emphasis:l="secondary",effect:s="none",pending:d=false,disabled:u=false,className:m,...c},p){let h=useId(),v=`${h}-label`,w=o?`${h}-description`:void 0;return jsxs("div",{className:ft("monkeys-ui-switch-field",m),"data-emphasis":l,"data-effect":s,"data-pending":d||void 0,"data-disabled":u||void 0,children:[jsxs("div",{className:"monkeys-ui-switch-field-copy",children:[jsx("span",{id:v,className:"monkeys-ui-switch-field-label",children:t}),o?jsx("span",{id:w,className:"monkeys-ui-switch-field-description",children:o}):null]}),jsx(qs,{...c,ref:p,checked:n,defaultChecked:r,onCheckedChange:g=>{d||a?.(g);},disabled:u,"aria-labelledby":v,"aria-describedby":w,"aria-busy":d||void 0,"aria-disabled":d||void 0,"data-emphasis":l,"data-effect":s,onClick:g=>{d&&g.preventDefault(),c.onClick?.(g);},onKeyDown:g=>{d&&g.preventDefault(),c.onKeyDown?.(g);}})," "]})},"SwitchField"));forwardRef(i(function({indicator:t=jsx(ChevronDown,{size:12}),className:o,children:n,type:r="button",...a},l){return jsxs("button",{...a,ref:l,type:r,className:ft("monkeys-ui-select",o),children:[jsx("span",{className:"min-w-0 truncate",children:n}),jsx("span",{className:"shrink-0","aria-hidden":"true",children:t})]})},"PickerTrigger"));forwardRef(i(function(t,o){return t.variant==="multiple"?jsx(wp,{...t,ref:o}):jsx(xp,{...t,ref:o})},"Select"));var xp=forwardRef(i(function({options:t,placeholder:o,className:n,style:r,id:a,"aria-label":l,"aria-describedby":s,"aria-invalid":d,value:u,defaultValue:m,onValueChange:c,variant:p,...h},v){let w=po({id:a,dir:h.dir,"aria-describedby":s,"aria-invalid":d,required:h.required}),[g,f]=Lt(u,m,"",c),x=Qt(h.dir),y=Ci(),{required:$,...M}=w;return jsxs(Re.Root,{...h,dir:x,required:$,value:g,onValueChange:f,children:[jsxs(Re.Trigger,{ref:v,...M,"aria-required":$||void 0,"aria-label":l,className:ft("monkeys-ui-select",n),style:r,children:[jsx(Re.Value,{placeholder:o??y.messages.multiSelect.placeholder}),jsx(Re.Icon,{"aria-hidden":"true",children:jsx(ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))"})})]}),jsx(Cn,{children:jsxs(Re.Content,{className:"monkeys-ui-select-content",position:"popper",sideOffset:6,children:[jsx(Re.ScrollUpButton,{children:jsx(ChevronUp,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})}),jsx(Re.Viewport,{children:t.map(C=>jsxs(Re.Item,{value:C.value,disabled:C.disabled,className:"monkeys-ui-select-item",children:[jsx(Re.ItemText,{children:C.label}),jsx(Re.ItemIndicator,{children:jsx(Check$1,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]},C.value))}),jsx(Re.ScrollDownButton,{children:jsx(ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]})})]})},"SingleSelect")),wp=forwardRef(i(function({options:t,placeholder:o,className:n,style:r,id:a,"aria-label":l,"aria-describedby":s,"aria-invalid":d,value:u,defaultValue:m,onValueChange:c,open:p,defaultOpen:h,onOpenChange:v,...w},g){let f=po({id:a,dir:w.dir,"aria-describedby":s,"aria-invalid":d,required:w.required}),[x,y]=Lt(u,m,[],c),[$,M]=Lt(p,h,false,v),C=useRef(null),R=useRef(null),P=useRef(m??[]);useImperativeHandle(g,()=>C.current,[]),Vo(R,()=>{u===void 0&&y(P.current),M(false),Y(false);});let F=Qt(w.dir),L=Ci(),{required:B,...k}=f,T=useId(),D=f.id??T,_=T+"-required",[Z,Y]=useState(false);useEffect(()=>{(x.length||!B)&&Y(false);},[x.length,B]);let O=t.filter(E=>x.includes(E.value)).map(E=>E.label),J=i(E=>{E.disabled||w.disabled||y(x.includes(E.value)?x.filter(te=>te!==E.value):[...x,E.value]);},"toggle");return jsxs(Pe.Root,{dir:F,open:$,onOpenChange:M,modal:false,children:[jsx(Pe.Trigger,{asChild:true,children:jsxs("button",{ref:C,type:"button",...k,id:D,"aria-label":l,"aria-describedby":[f["aria-describedby"],B?_:""].filter(Boolean).join(" ")||void 0,"aria-invalid":f["aria-invalid"]||Z||void 0,disabled:w.disabled,className:ft("monkeys-ui-select",n),style:r,"data-variant":"multiple","data-placeholder":!O.length||void 0,children:[jsx("span",{className:"monkeys-ui-select-value",children:O.length?O.join("\u3001"):o??L.messages.multiSelect.placeholder}),jsx(ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})]})}),jsx(Cn,{children:jsx(Pe.Content,{"aria-label":l,"aria-labelledby":l?void 0:D,sideOffset:6,align:"start",className:"monkeys-ui-select-content monkeys-ui-select-multiple-content",children:t.map(E=>jsxs(Pe.CheckboxItem,{checked:x.includes(E.value),disabled:E.disabled,onSelect:te=>{te.preventDefault(),J(E);},className:"monkeys-ui-select-item",children:[jsx("span",{children:E.label}),jsx(Pe.ItemIndicator,{children:jsx(Check$1,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]},E.value))})}),B?jsx("span",{id:_,className:"monkeys-ui-visually-hidden",children:L.locale.startsWith("zh")?"\u5FC5\u586B\uFF0C\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u9879":"Required. Select at least one option."}):null,jsx("input",{ref:R,type:"text",className:"monkeys-ui-visually-hidden","aria-hidden":"true",tabIndex:-1,form:w.form,autoComplete:w.autoComplete,value:x.length?"selected":"",onChange:()=>{},disabled:w.disabled,required:B,onInvalid:E=>{E.preventDefault(),Y(true),C.current?.focus();}}),w.name?x.map(E=>jsx("input",{type:"hidden",name:w.name,form:w.form,value:E,disabled:w.disabled},E)):null]})},"MultipleSelect"));var Ks=co([Et.red,Et.orange,Et.yellow,Et.green,Et.cyan,Et.blue,Et.purple]);function Mo({children:e,size:t=15,strokeWidth:o=1.8}){return jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e})}i(Mo,"Icon");var $p={clip:jsx("path",{d:"m21.4 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"}),chart:jsx("path",{d:"M4 20V10M10 20V4M16 20v-7M22 20H2"}),layers:jsxs("g",{children:[jsx("path",{d:"M12 2 2 7l10 5 10-5-10-5z"}),jsx("path",{d:"M2 17l10 5 10-5M2 12l10 5 10-5"})]}),globe:jsxs("g",{children:[jsx("circle",{cx:"12",cy:"12",r:"10"}),jsx("path",{d:"M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]})},Sp={figma:jsxs("svg",{width:"11",height:"16",viewBox:"0 0 38 57","aria-hidden":"true",children:[jsx("path",{d:"M9.5 57A9.5 9.5 0 0 0 19 47.5V38H9.5a9.5 9.5 0 0 0 0 19z",fill:"var(--bui-brand-figma-green)"}),jsx("path",{d:"M0 28.5A9.5 9.5 0 0 1 9.5 19H19v19H9.5A9.5 9.5 0 0 1 0 28.5z",fill:"var(--bui-brand-figma-purple)"}),jsx("path",{d:"M0 9.5A9.5 9.5 0 0 1 9.5 0H19v19H9.5A9.5 9.5 0 0 1 0 9.5z",fill:"var(--bui-brand-figma-red)"}),jsx("path",{d:"M19 0h9.5a9.5 9.5 0 1 1 0 19H19V0z",fill:"var(--bui-brand-figma-orange)"}),jsx("path",{d:"M38 28.5a9.5 9.5 0 1 1-19 0 9.5 9.5 0 0 1 19 0z",fill:"var(--bui-brand-figma-blue)"})]}),slack:jsxs("svg",{width:"15",height:"15",viewBox:"0 0 127 127","aria-hidden":"true",children:[jsx("path",{d:"M27.2 80c0 7.3-5.9 13.2-13.2 13.2C6.7 93.2.8 87.3.8 80c0-7.3 5.9-13.2 13.2-13.2h13.2V80zm6.6 0c0-7.3 5.9-13.2 13.2-13.2 7.3 0 13.2 5.9 13.2 13.2v33c0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V80z",fill:"var(--bui-brand-slack-red)"}),jsx("path",{d:"M47 27.2c-7.3 0-13.2-5.9-13.2-13.2C33.8 6.7 39.7.8 47 .8c7.3 0 13.2 5.9 13.2 13.2v13.2H47zm0 6.7c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H13.9C6.6 60.3.7 54.4.7 47.1c0-7.3 5.9-13.2 13.2-13.2H47z",fill:"var(--bui-brand-slack-blue)"}),jsx("path",{d:"M99.9 47.1c0-7.3 5.9-13.2 13.2-13.2 7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H99.9V47.1zm-6.6 0c0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V13.9C66.9 6.6 72.8.7 80.1.7c7.3 0 13.2 5.9 13.2 13.2v33.2z",fill:"var(--bui-brand-slack-green)"}),jsx("path",{d:"M80.1 99.8c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2-7.3 0-13.2-5.9-13.2-13.2V99.8h13.2zm0-6.6c-7.3 0-13.2-5.9-13.2-13.2 0-7.3 5.9-13.2 13.2-13.2h33.1c7.3 0 13.2 5.9 13.2 13.2 0 7.3-5.9 13.2-13.2 13.2H80.1z",fill:"var(--bui-brand-slack-yellow)"})]}),gmail:jsxs("svg",{width:"15",height:"12",viewBox:"0 0 256 193","aria-hidden":"true",children:[jsx("path",{d:"M58.182 192.05V93.14L27.507 65.077 0 49.504v125.091c0 9.658 7.825 17.455 17.455 17.455h40.727Z",fill:"var(--bui-brand-gmail-blue)"}),jsx("path",{d:"M197.818 192.05h40.727c9.659 0 17.455-7.826 17.455-17.455V49.505l-31.156 17.837-27.026 25.798v98.91Z",fill:"var(--bui-brand-gmail-green)"}),jsx("path",{d:"m58.182 93.14-4.174-38.647 4.174-36.989L128 69.868l69.818-52.364 4.669 34.992-4.669 40.644L128 145.504 58.182 93.14Z",fill:"var(--bui-brand-gmail-red)"}),jsx("path",{d:"M197.818 17.504V93.14L256 49.504V26.231c0-21.585-24.64-33.89-41.89-20.945l-16.292 12.218Z",fill:"var(--bui-brand-gmail-yellow)"}),jsx("path",{d:"m0 49.504 26.759 20.07L58.182 93.14V17.504L41.89 5.286C24.61-7.66 0 4.646 0 26.23v23.273Z",fill:"var(--bui-brand-gmail-fold)"})]})};function Cp(e){let t=/(^|\s)([@/])([\w-]*)$/.exec(e);return t?{kind:t[2]==="@"?"at":"slash",query:t[3].toLowerCase(),start:t.index+t[1].length}:null}i(Cp,"parseToken");function Ni({variant:e="Rounded",sources:t=[],commands:o=[],models:n=[],files:r=[],connected:a=false,listening:l=false,onAttach:s,onConnect:d,onDictation:u,onModelChange:m,onRemoveAttachment:c,renderAttachButton:p,controls:h,tall:v=false,minRows:w=1,showDictation:g=false,placeholder:f,onSend:x,onSubmit:y,value:$,onValueChange:M,disabled:C=false,busy:R=false,onStop:P,inputLabel:F}){let L=oe(),B=Ko(),k=e==="Pill",[T,D]=useState(""),_=$??T,Z=i(z=>{D(z),M?.(z);},"setDraft"),Y=useRef(_);Y.current=_;let O=useRef(false),J=useRef(true),[E,te]=useState(false);useEffect(()=>(J.current=true,()=>{J.current=false;}),[]);let ee=t.length>0,me=n.length>0,de=ee||!!s||!!p,[I,j]=useState(false),[A,W]=useState(false),[ae,se]=useState(false),[re,Be]=useState(n[0]??{key:"",name:L("Model")}),[K,ge]=useState(0),[Je,Tt]=useState(false),ye=Math.max(1,Math.min(5,Math.trunc(w)||1)),pt=Je||v||ye>1||!!h,[_t,$o]=useState(null),[It,mt]=useState(false),[q,wt]=useState(null),[io,ao]=useState(null),[so,cn]=useState(0),[Kr,Xr]=useState(0),Ce=useRef(null),Xt=useRef(null),lo=useRef(null),S=useRef(null),X=useRef(null),Oe=useRef([]),Bt=useRef([]),At=useRef(null),So=useRef(null),un=useRef(false),Rt=I?null:Cp(_),at=C||E?null:A||Rt?.kind==="at"&&ee?"at":Rt?.kind==="slash"&&o.length?"slash":null,Co=A?"":Rt?.query??"",Ht=at==="at"?t.filter(z=>z.name.toLowerCase().includes(Co)):at==="slash"?o.filter(z=>z.name.slice(1).startsWith(Co)):[];useEffect(()=>{ge(0),mt(false);},[at,Co]),useLayoutEffect(()=>{let z=Oe.current[K];z&&$o({top:z.offsetTop,height:z.offsetHeight});},[at,Co,K,a,Ht.length]);let On=n.findIndex(z=>z.key===re.key);useLayoutEffect(()=>{if(!ae)return;let z=Bt.current[io??On];z&&wt({top:z.offsetTop,height:z.offsetHeight});},[ae,io,On]),useLayoutEffect(()=>{if(!ae||!Ce.current||!X.current)return;let z=Ce.current.getBoundingClientRect(),xe=X.current.getBoundingClientRect();cn(Math.max(0,Math.min(xe.left-z.left,z.width-176))),Xr(z.bottom-xe.top+8);},[ae,pt,re.name]),useEffect(()=>{ae||ao(null);},[ae]);let xa=i(()=>{let z=At.current;if(!z)return null;try{return is({canvas:z,palette:Ks,direction:"ltr",bandTight:10,swellAmount:.85})}catch{return null}},"makeShader");useEffect(()=>{if(n.some(z=>z.accent))return So.current=xa(),()=>{So.current?.destroy(),So.current=null;}},[]);let ac=i(()=>{if(un.current||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;So.current?.destroy();let z=xa();if(So.current=z,!z)return;un.current=true,as(z,{palette:Ks,direction:"ltr",sweepMs:570,outroMs:80,peakAlpha:1.3,bandTight:10,brightness:1.4,swellAmount:1,waveSpeed:1.8,easing:"easeOutExpo"}).done.finally(()=>{un.current=false;});},"celebrate"),sc=i(z=>{Be(z),se(false),m?.(z.key),z.accent&&ac();},"selectModel");useLayoutEffect(()=>{let z=lo.current,xe=Xt.current,st=S.current;if(!z||!xe||!st)return;let Vt=i(()=>{let Ta=Array.from(xe.children).filter(Qr=>Qr.tagName==="BUTTON"),lc=parseFloat(getComputedStyle(xe).columnGap)||0,dc=xe.clientWidth-Ta.reduce((Qr,cc)=>Qr+cc.offsetWidth,0)-Ta.length*lc,pn=getComputedStyle(z),Ra=(parseFloat(pn.paddingTop)||0)+(parseFloat(pn.paddingBottom)||0);Tt(_.includes(`
|
|
183
|
+
`)||st.offsetWidth+8>dc);let Pa=Math.max(parseFloat(pn.minHeight)||28,(parseFloat(pn.lineHeight)||18)*ye+Ra),Na=Math.max(Pa,(parseFloat(pn.lineHeight)||18)*5+Ra);z.style.height="0px";let Ma=z.scrollHeight;z.style.height=`${Math.min(Math.max(Ma,Pa),Na)}px`,z.style.overflowY=Ma>Na?"auto":"hidden";},"resize");Vt();let Sa=xe.clientWidth,Ca=new ResizeObserver(()=>{Sa!==xe.clientWidth&&(Sa=xe.clientWidth,Vt());});return Ca.observe(xe),()=>Ca.disconnect()},[_,Je,v,ye,de,me,u,g]),useEffect(()=>{if(!ae&&!A)return;let z=i(xe=>{xe.target.closest("[data-promptbar]")||(se(false),W(false));},"close");return document.addEventListener("pointerdown",z),()=>document.removeEventListener("pointerdown",z)},[ae,A]);let Yr=i(()=>{W(false),se(false);},"closeMenus"),wa=i(z=>{t.find(st=>st.key===z.key)?.attach?(s?.(),Rt&&Z(_.slice(0,Rt.start))):Z(at==="at"?`${Rt?_.slice(0,Rt.start):_}@${z.name} `:`${Rt?_.slice(0,Rt.start):_}${z.name} `),W(false),j(false),lo.current?.focus();},"pick"),_n=(_.trim().length>0||r.length>0)&&!!(y||x)&&!R&&!C&&!E,ka=i(async()=>{if(!_n||O.current)return;let z=_;O.current=true,te(true),Yr();try{let xe=y?await y(z.trim()):void 0;xe!==!1&&await x?.(z.trim()),xe!==!1&&J.current&&Y.current===z&&Z("");}catch{}finally{O.current=false,J.current&&te(false);}},"send"),$a=jsx(No,{type:"button",shape:"icon",size:"sm",variant:"ghost","aria-label":L("Add attachments and sources"),"aria-expanded":ee?A:void 0,disabled:C||E,onClick:()=>{if(p){Yr();return}se(false),ee?W(z=>!z):s?.(),lo.current?.focus();},className:`promptbar-attach shrink-0 text-ink-3 ${A?"bg-hover text-ink":""}`,children:jsx(Plus,{size:B.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"})});return jsx(U,{children:jsx("div",{"data-promptbar":true,className:"w-full",children:jsxs("div",{ref:Ce,className:"relative",children:[at&&jsxs("div",{onMouseLeave:()=>mt(false),className:"absolute inset-x-0 bottom-full z-10 mb-2 rounded-[10px] bg-surface p-1 shadow-raised",style:{animation:"bui-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"bottom center"},children:[jsx("span",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-1 rounded-[6px] bg-hover",style:{top:_t?.top??0,height:_t?.height??0,opacity:_t&&It&&Ht.length>0?1:0,transition:"top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease"}}),Ht.map((z,xe)=>{let st=at==="at"?t.find(Vt=>Vt.key===z.key):void 0;return jsxs("button",{type:"button",ref:Vt=>{Oe.current[xe]=Vt;},onMouseDown:Vt=>Vt.preventDefault(),onMouseEnter:()=>{ge(xe),mt(true);},onClick:()=>wa(z),className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-chip)] px-2 text-left",children:[st&&jsx("span",{className:"flex size-5.5 shrink-0 items-center justify-center text-ink-2",children:st.brand?Sp[st.brand]:jsx(Mo,{size:15,children:$p[st.glyph??"clip"]})}),jsx("span",{className:"shrink-0 text-[12.5px] font-medium text-ink",children:z.name}),jsx("span",{className:"min-w-0 flex-1 truncate text-[12px] text-ink-3",children:z.desc}),st?.connect&&jsx("span",{role:"button",tabIndex:-1,onClick:Vt=>{Vt.stopPropagation(),d?.(st?.key??"");},className:`shrink-0 text-[12px] font-medium transition-colors duration-100 ${a?"text-green":"text-accent-ink hover:underline"}`,children:L(a?"Connected":"Connect")})]},z.key)}),Ht.length===0&&jsx("div",{className:"flex h-9 items-center px-2 text-[12px] text-ink-3",children:L("noMatches",{query:Co})}),jsx("div",{className:"mt-1 border-t border-line px-2 pt-1.5 pb-1 text-[11px] text-ink-3",children:L(at==="at"?"Type to search sources & files":"Type to search commands")})]}),ae&&jsxs("div",{onMouseLeave:()=>ao(null),className:"absolute z-10 w-44 rounded-[10px] bg-surface p-1 shadow-raised",style:{left:so,bottom:Kr,animation:"bui-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"bottom left"},children:[jsx("span",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-1 rounded-[6px] bg-hover",style:{top:q?.top??0,height:q?.height??0,opacity:q&&io!==null?1:0,transition:"top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease"}}),n.map((z,xe)=>jsxs("button",{type:"button",ref:st=>{Bt.current[xe]=st;},onMouseDown:st=>st.preventDefault(),onMouseEnter:()=>ao(xe),onClick:()=>{sc(z),lo.current?.focus();},className:"relative z-10 flex h-7.5 w-full items-center gap-2 rounded-[var(--bui-radius-chip)] px-2 text-left",children:[jsx("span",{className:"min-w-0 flex-1 truncate text-[12.5px] font-medium text-ink",children:z.name}),jsx("span",{className:"shrink-0 text-[11px] text-ink-3",children:z.tag}),jsx("span",{className:`shrink-0 text-ink ${z.key===re.key?"":"invisible"}`,children:jsx(Mo,{size:13,strokeWidth:2.5,children:jsx("path",{d:"M20 6L9 17l-5-5"})})})]},z.key))]}),jsxs("div",{style:{padding:`var(--bui-token-composer-padding, ${v?"calc(var(--bui-spacing) * 3.5)":"calc(var(--bui-spacing) * 1.5)"})`,borderRadius:`var(--bui-token-radius-control, ${k?r.length>0||pt?"24px":"9999px":v?"22px":"14px"})`},className:`promptbar-surface relative isolate flex flex-col overflow-hidden border border-line bg-surface shadow-card transition-[border-color,border-radius] duration-150 focus-within:border-line-strong ${v?"gap-2.5 p-3.5":"gap-1.5 p-1.5"} ${k?r.length>0||pt?"rounded-[24px]":"rounded-full":v?"rounded-[22px]":"rounded-[14px]"}`,children:[jsx("canvas",{ref:At,"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-10 h-full w-full",style:{borderRadius:"inherit"}}),jsx("span",{ref:S,"aria-hidden":"true",className:"promptbar-measure pointer-events-none absolute invisible whitespace-pre text-[13px] leading-[18px]",children:_}),r.length>0&&jsx("div",{className:`flex flex-wrap gap-1.5 pt-0.5 ${k?"px-1":"px-0.5"}`,children:r.map((z,xe)=>jsxs("span",{className:`flex h-6.5 items-center gap-1.5 bg-field py-1 pr-1 pl-1.5 text-[11.5px] text-ink-2 shadow-hairline ${k?"rounded-full":"rounded-chip"}`,style:{animation:"bui-pop-in 200ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsx(Mo,{size:12,children:jsxs("g",{children:[jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsx("path",{d:"M14 2v6h6"})]})}),jsx("span",{className:"max-w-36 truncate",children:z}),jsx("button",{type:"button","aria-label":`Remove ${z}`,onClick:()=>c?.(xe),className:`-my-1 flex size-6 items-center justify-center text-ink-3 transition-colors duration-100 hover:bg-line/70 hover:text-ink ${k?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-scale-5)]"}`,children:jsx(Mo,{size:10,strokeWidth:2.5,children:jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]},`${z}-${xe}`))}),jsxs("div",{ref:Xt,className:"promptbar-controls flex flex-wrap items-end gap-x-1 gap-y-1.5",children:[de&&(p?p($a,Ce):$a),h,jsx("textarea",{ref:lo,style:{minHeight:`var(--bui-token-composer-control-height, ${v?"68px":"calc(var(--bui-spacing) * 7)"})`},rows:ye,value:_,disabled:C||E,onChange:z=>{Z(z.target.value),j(false),W(false);},onKeyDown:z=>{if(!(z.nativeEvent.isComposing||z.keyCode===229)){if(at&&Ht.length>0){if(z.key==="ArrowDown"||z.key==="ArrowUp"){z.preventDefault(),mt(true),ge(xe=>(xe+(z.key==="ArrowDown"?1:Ht.length-1))%Ht.length);return}if(z.key==="Enter"&&!z.shiftKey||z.key==="Tab"){z.preventDefault(),wa(Ht[K]);return}}if(z.key==="Escape"){j(true),Yr();return}z.key==="Enter"&&!z.shiftKey&&!z.nativeEvent.isComposing&&(z.preventDefault(),ka());}},placeholder:l?L("Listening\u2026"):f??L("Write a message\u2026"),"aria-label":F??L("Prompt"),className:`promptbar-input ${v?"min-h-[68px] px-2 py-2 text-[14px] leading-5":"min-h-7 px-1 py-[5px] text-[13px] leading-[18px]"} min-w-0 w-full resize-none bg-transparent text-ink outline-none [overflow-wrap:anywhere] placeholder:text-ink-3 ${pt?"order-first basis-full":"flex-1"}`}),me&&jsxs("button",{disabled:C||E,ref:X,type:"button","aria-expanded":ae,"aria-label":L("Choose model"),onClick:()=>{W(false),se(z=>!z);},className:`promptbar-model flex h-7 shrink-0 items-center gap-1 px-1.5 text-[12px] font-medium text-ink-2 transition-colors duration-150 hover:bg-hover hover:text-ink ${k?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-control)]"} `,children:[re.name,jsx("span",{className:"text-ink-3",children:jsx(Mo,{size:11,strokeWidth:2.4,children:jsx("path",{d:"M6 9l6 6 6-6"})})})]}),pt&&jsx("span",{className:"flex-1","aria-hidden":"true"}),(g||u)&&jsx("button",{disabled:C||E||!u,type:"button","aria-label":L(l?"Stop dictation":"Start dictation"),"aria-pressed":l,onClick:()=>u?.(!l),className:`flex size-7 shrink-0 items-center justify-center transition-[background-color,color,transform] duration-150 active:scale-[0.94] ${k?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-control)]"} ${l?"bg-accent-tint text-accent-ink":"text-ink-3 hover:bg-hover hover:text-ink"} `,children:l?jsx("span",{className:"flex h-3.5 items-center gap-[2.5px]",children:[0,1,2].map(z=>jsx("span",{className:"w-[2.5px] rounded-full bg-current",style:{height:"100%",animation:`bui-eq-bounce 900ms ease-in-out ${z*150}ms infinite`}},z))}):jsx(Mo,{size:15,strokeWidth:2,children:jsxs("g",{children:[jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z"}),jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2M12 19v3"})]})})}),jsx("button",{type:"button","aria-label":L(R&&P?"Stop response":"Send"),disabled:R&&P?false:!_n,onClick:R&&P?P:()=>{ka();},className:`flex size-7 shrink-0 items-center justify-center transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.94] ${k?"rounded-[var(--bui-radius-pill)]":"rounded-[var(--bui-radius-control)]"} `,style:{background:_n||R&&P?"var(--bui-token-primary, var(--bui-ink))":"var(--bui-line-strong)",color:_n||R&&P?"var(--bui-token-primary-foreground, var(--bui-surface))":"var(--bui-ink-2)"},children:jsx(Mo,{size:16,strokeWidth:2.4,children:R&&P?jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"currentColor",stroke:"none"}):jsx("path",{d:"M12 19V5M5 12l7-7 7 7"})})})]})]})]})})})}i(Ni,"BUIPromptBar");var Xs=Array.from({length:9},(e,t)=>{let o=Math.floor(t/3);return (t%3+Math.abs(o-1))*90}),Rp=[0,1,2,5,8,7,6,3],Pp=Array.from({length:9},(e,t)=>{let o=Rp.indexOf(t);return o===-1?null:o*110}),dr={Drive:{delays:Xs,dur:650,round:false},Dots:{delays:Xs,dur:650,round:true},Orbit:{delays:Pp,dur:950,round:false}};function Mi({delays:e,dur:t,round:o}){return jsx("span",{"aria-hidden":true,className:"grid shrink-0 grid-cols-[repeat(3,4px)] gap-[1.5px]",children:e.map((n,r)=>jsx("span",{className:`size-[4px] bg-ink ${o?"rounded-full":"rounded-[1px]"}`,style:{opacity:n===null?.07:.15,animation:n===null?"none":`bui-pixel-on ${t}ms ease-in-out ${n}ms infinite`}},r))})}i(Mi,"LoaderGrid");function Np({elapsedMs:e,startedAtMs:t}){let[o]=useState(()=>Date.now()),[n,r]=useState(()=>Date.now()),a=t??o,l=e===void 0&&Number.isFinite(a);if(useEffect(()=>{if(!l)return;let u=i(()=>r(Date.now()),"update");u();let m=setInterval(u,100);return ()=>clearInterval(m)},[l,a]),e===null||!Number.isFinite(e??a))return null;let s=Math.max(0,e??n-a)/1e3,d=s<60?`${s.toFixed(1)}s`:`${Math.floor(s/60)}m ${(s%60).toFixed(1)}s`;return jsx("span",{"data-bui-elapsed":true,"aria-live":"off",className:"shrink-0 whitespace-nowrap font-mono text-[12px] text-ink-3 tabular-nums",children:d})}i(Np,"ElapsedTime");function Bi({label:e,variant:t="Drive",videoSrc:o,elapsedMs:n,startedAtMs:r}){let a=oe(),l=t==="Surfer",s=e??a("Loading"),[d,u]=useState(true),{delays:m,dur:c,round:p}=dr[t]??dr.Drive,h=jsx("span",{className:"min-w-0 [overflow-wrap:anywhere] bg-clip-text text-[13px] font-medium text-transparent",style:{backgroundImage:"linear-gradient(90deg, var(--bui-ink-3) 35%, var(--bui-ink) 50%, var(--bui-ink-3) 65%)",backgroundSize:"200% 100%",animation:"bui-shimmer-text 1.4s linear infinite"},children:s}),v=jsx(Np,{elapsedMs:n,startedAtMs:r});return l?jsx(U,{children:jsxs("div",{"data-bui-loading-state":true,role:"status",className:"flex w-fit flex-col items-start",children:[jsxs("div",{className:"flex items-center gap-2.5",children:[jsx(Mi,{...dr.Drive}),h,v]}),jsx("div",{className:"mt-2 w-56 overflow-hidden rounded-[10px] shadow-overlay",style:{animation:"bui-pop-in 200ms cubic-bezier(0.16,1,0.3,1) both",transformOrigin:"top left"},children:jsx("div",{className:"relative aspect-video w-full",style:{background:"var(--bui-tooltip-bg)"},children:d&&o?jsx("video",{src:o,autoPlay:true,muted:true,loop:true,playsInline:true,onError:()=>u(false),className:"h-full w-full object-cover"}):jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1.5",children:[jsx(Mi,{...dr.Drive}),jsx("span",{className:"px-3 text-center font-mono text-[10px]",style:{color:"var(--bui-tooltip-muted)"},children:a("Video unavailable")})]})})})]})}):jsx(U,{children:jsxs("div",{"data-bui-loading-state":true,role:"status",className:"flex max-w-full w-fit items-center gap-2.5",children:[jsx(Mi,{delays:m,dur:c,round:p}),h,v]})})}i(Bi,"BUILoadingState");function Ys(e){return !!e&&typeof e=="object"&&!Array.isArray(e)}i(Ys,"isRecord");function Mp(e){if(e!==void 0&&e!=="ltr"&&e!=="rtl")throw new TypeError('MonkeysProvider direction must be "ltr" or "rtl".')}i(Mp,"validateDirection");function Ip(e){if(e!==void 0){if(!Ys(e))throw new TypeError("MonkeysProvider environment must be an object.");if(e.getDocument!==void 0&&typeof e.getDocument!="function")throw new TypeError("MonkeysProvider environment.getDocument must be a function.");if(e.getWindow!==void 0&&typeof e.getWindow!="function")throw new TypeError("MonkeysProvider environment.getWindow must be a function.")}}i(Ip,"validateEnvironment");function Bp(e){if(e!==void 0){if(!Ys(e))throw new TypeError("MonkeysProvider portal must be an object.");if(e.disabled!==void 0&&typeof e.disabled!="boolean")throw new TypeError("MonkeysProvider portal.disabled must be a boolean.");if(e.container!=null&&typeof e.container!="function"&&typeof e.container!="object")throw new TypeError("MonkeysProvider portal.container must be an Element, null, or a function.")}}i(Bp,"validatePortal");function Ap(e,t,o,n){return e?Wo(e,{colorMode:t,density:o}):n}i(Ap,"resolveProviderTheme");function Ai({children:e,locale:t,messages:o,direction:n,theme:r,themeId:a,colorMode:l,density:s,appearance:d,environment:u,iconResolver:m,imageResolver:c,portal:p,statusStates:h,listFooter:v}){let w=useContext(xn),g=useContext(Go),f=useContext(wn),x=useContext(kn);if(Mp(n),Ip(u),m!==void 0&&typeof m!="function")throw new TypeError("MonkeysProvider iconResolver must be a function.");if(c!==void 0&&typeof c!="function")throw new TypeError("MonkeysProvider imageResolver must be a function.");Bp(p);let y=useMemo(()=>yi(t,o,w),[t,o,w]),$=useMemo(()=>({...y,provided:true}),[y]),M=useMemo(()=>Ap(r,l,s,g.resolvedTheme),[l,s,g.resolvedTheme,r]),C=useMemo(()=>({provided:true,resolvedTheme:M,themeId:a??g.themeId,baseAppearance:{...g.baseAppearance,...d?.base,...s?{density:s}:void 0,slots:{...g.baseAppearance?.slots,...d?.base?.slots},styles:{...g.baseAppearance?.styles,...d?.base?.styles}},dataExplorerAppearance:{...g.dataExplorerAppearance,...d?.dataExplorer,...s?{density:s}:void 0,slots:{...g.dataExplorerAppearance?.slots,...d?.dataExplorer?.slots},styles:{...g.dataExplorerAppearance?.styles,...d?.dataExplorer?.styles}},statusStates:{...g.statusStates,...h,loading:{...g.statusStates?.loading,...h?.loading},empty:{...g.statusStates?.empty,...h?.empty},error:{...g.statusStates?.error,...h?.error},permission:{...g.statusStates?.permission,...h?.permission}},listFooter:{...g.listFooter,...v,...v?.pageSizeOptions?{pageSizeOptions:[...v.pageSizeOptions]}:void 0}}),[d?.base,d?.dataExplorer,s,g.baseAppearance,g.dataExplorerAppearance,g.statusStates,g.themeId,M,h,v,a]),R=useMemo(()=>({provided:true,direction:n??f.direction??"ltr"}),[n,f.direction]),P=useMemo(()=>({provided:true,iconResolver:m??x.iconResolver,imageResolver:c??x.imageResolver,environment:{...x.environment,...u},portal:{...x.portal,...p}}),[u,x.environment,x.iconResolver,m,c,x.imageResolver,x.portal,p]);return jsx(xn.Provider,{value:$,children:jsx(Go.Provider,{value:C,children:jsx(wn.Provider,{value:R,children:jsx(kn.Provider,{value:P,children:e})})})})}i(Ai,"MonkeysProvider");function Ei({container:e,composer:t=false,children:o}){let n=useRef(null),[r]=useState(()=>typeof document>"u"?null:document.createElement("div"));useLayoutEffect(()=>{if(!r)return;let l=r.contains(document.activeElement)?document.activeElement:null;r.style.display="contents",(e??n.current)?.appendChild(r),l?.focus({preventScroll:true});},[e,r]),useLayoutEffect(()=>()=>r?.remove(),[r]);let a=jsx(U,{portal:true,children:jsx("div",{className:t?"bui-composer-host":"bui-conversation-host","data-bui-composer-placement":t?e?"floating":"inline":void 0,children:jsx(Ai,{portal:t&&e?{container:r}:void 0,children:jsx("div",{className:t?"bui-composer-host-content":"bui-conversation-host",onPointerDown:t&&e?l=>l.stopPropagation():void 0,onWheel:t&&e?l=>l.stopPropagation():void 0,onKeyDown:t&&e?l=>l.stopPropagation():void 0,children:o})})})});return jsx(U,{children:jsx("div",{ref:n,className:t?"bui-composer-anchor":"bui-conversation-anchor",children:r?createPortal(a,r):a})})}i(Ei,"ConversationHost");var Up=[],Fp=[],Op={initialPrompt:"",placeholder:"Enter a message"};function _p({label:e,sub:t,time:o,body:n,resolving:r}){let a=oe();return jsxs("div",{className:"flex w-full flex-col gap-1.5 transition-[opacity,filter,transform] duration-400",style:{opacity:r?.55:1,filter:r?"blur(0.5px)":"blur(0)",transform:r?"scale(0.985)":"scale(1)",transformOrigin:"top left",transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)",animation:"bui-fade-up 400ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxs("div",{className:"flex items-center gap-1 text-[12px] leading-[1.3]",children:[jsx("span",{className:"font-medium text-ink",children:e}),jsx("span",{className:"text-ink-2",children:t}),o&&jsx("span",{className:"text-ink",children:a("duration",{time:o})})]}),jsx("p",{className:"text-[13px] leading-normal text-ink",children:n})]})}i(_p,"Section");function Hp({messages:e=Up,suggestions:t=Fp,labels:o,onSend:n,busy:r=false,onHeaderAction:a,fill:l=false,title:s,value:d,onValueChange:u,readOnly:m=false,loading:c=false,error:p,onRetry:h,onStop:v,children:w,renderMessage:g,pendingContent:f,composerContent:x,composerAccessory:y,composerProgress:$,composerNotice:M,composerContainer:C,conversationContainer:R,headerActions:P,sidePanel:F,readable:L=false,showMessageLabels:B=true}){let k=oe(),T=Te(Op,o),[D,_]=useState(""),Z=d??D,Y=i(K=>{_(K),u?.(K);},"setDraft"),[O,J]=useState(false),E=useRef(false),te=useRef(true),ee=useRef(null),me=useRef(true),de=[...e].reverse().find(K=>K.role==="user")?.id;useEffect(()=>{de&&(me.current=true);},[de]),useEffect(()=>(te.current=true,()=>{te.current=false;}),[]),useEffect(()=>{l&&me.current&&ee.current&&(ee.current.scrollTop=ee.current.scrollHeight);},[l,e,r,w]),useEffect(()=>{let K=ee.current,ge=K?.firstElementChild;if(!l||!K||!ge||typeof ResizeObserver>"u")return;let Je=new ResizeObserver(()=>{me.current&&(K.scrollTop=K.scrollHeight);});return Je.observe(ge),()=>Je.disconnect()},[l]);let[I,j]=useState(T.initialPrompt),[A,W]=useState(t[0]??""),ae=useRef(null),se=!!I,re=Z.trim().length>0&&!r&&!O&&!c&&!m&&!!n,Be=i(async()=>{if(!re||E.current)return;let K=Z.trim();E.current=true,J(true);try{await n?.(K)!==!1&&te.current&&(j(K),Y(""),me.current=!0);}catch{}finally{E.current=false,te.current&&J(false);}},"send");return l?jsx(Ei,{container:R,children:jsx(U,{children:jsxs("section",{"data-readable":L||void 0,"data-panel-open":!!F||void 0,"data-composer-progress":!!$||void 0,className:"chat-composer-fill flex h-full min-h-0 w-full min-w-0 flex-col overflow-hidden text-ink","aria-label":s||k("Agent"),children:[(s||P)&&jsxs("header",{className:"chat-composer-header flex shrink-0 items-center justify-between border-b border-line px-4 py-3",children:[jsx("span",{className:"truncate text-[14px] font-medium",children:s}),P]}),jsxs("div",{className:"chat-composer-body",children:[jsxs("div",{className:"chat-composer-main",children:[jsx("div",{ref:ee,role:"log","aria-label":k("Chat history"),"aria-busy":r||c,className:"chat-composer-transcript flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-4",onScroll:()=>{let K=ee.current;K&&(me.current=K.scrollHeight-K.scrollTop-K.clientHeight<48);},children:jsxs("div",{className:"chat-composer-content",children:[c?jsx("span",{role:"status",className:"text-[13px] text-ink-2",children:k("Loading")}):e.map((K,ge)=>jsxs("article",{"aria-label":B?void 0:K.label,className:K.role==="user"?"ml-auto max-w-full rounded-xl bg-field px-3 py-2":"w-full min-w-0",style:!B&&K.role==="user"?{width:"fit-content",maxWidth:"85%"}:void 0,children:[B&&jsx("div",{className:"mb-1 text-[12px] font-medium text-ink-2",children:K.label}),g?g(K,ge):jsx("p",{className:"whitespace-pre-wrap break-words text-[13px] leading-normal",children:K.body})]},K.id??ge)),!c&&!r&&!p&&e.length===0&&Children.toArray(w).length===0&&jsx("div",{className:"flex flex-1 items-center justify-center text-[13px] text-ink-3",children:k("Start a conversation")}),w,!c&&r&&(f===void 0?jsx(Bi,{variant:"Dots",label:k("Loading")}):f)]})}),(!m||y||$||p)&&jsx("div",{className:"chat-composer-footer shrink-0 p-3",children:jsxs(Ei,{container:C,composer:true,children:[$&&jsx("div",{className:"chat-composer-progress",children:$}),p&&jsxs("div",{role:"alert",className:"chat-composer-alert flex items-center gap-2 px-4 py-2 text-[13px] text-red",children:[jsx("span",{children:p}),h&&jsx("button",{type:"button",onClick:h,className:"underline",children:k("Retry")})]}),M,(!m||y)&&jsxs("div",{className:"chat-composer-input",children:[y&&jsx("div",{className:"chat-composer-accessory",children:y}),!m&&(x===void 0?jsx(Ni,{value:Z,onValueChange:Y,disabled:c,busy:r,onStop:v,placeholder:T.placeholder,inputLabel:k("Chat prompt"),onSubmit:n?async K=>{let ge=await n(K);return ge!==false&&(me.current=true),ge}:void 0}):x)]})]})})]}),F&&jsx("aside",{className:"chat-composer-side-panel",children:F})]})]})})}):jsx(U,{children:jsxs("div",{className:"flex h-[288px] w-full max-w-95 flex-col self-start overflow-hidden rounded-[14px] bg-surface shadow-card",children:[jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-line p-1.5",children:[jsx("div",{className:"flex items-center",children:t.map(K=>jsx("button",{type:"button","aria-pressed":A===K,onClick:()=>W(K),className:`rounded-[var(--bui-radius-chip)] px-2 py-[3px] text-[13px] text-ink transition-[background-color,opacity] duration-100 ${A===K?"bg-field":"opacity-50 hover:opacity-75"}`,children:K},K))}),jsx("div",{className:"flex items-center gap-1",children:[jsx("path",{d:"M12 5v14M5 12h14"},"p"),jsxs("g",{children:[jsx("circle",{cx:"12",cy:"12",r:"9"}),jsx("path",{d:"M12 7v5l3 2"})]},"h"),jsxs("g",{fill:"currentColor",stroke:"none",children:[jsx("circle",{cx:"5",cy:"12",r:"1.8"}),jsx("circle",{cx:"12",cy:"12",r:"1.8"}),jsx("circle",{cx:"19",cy:"12",r:"1.8"})]},"e")].map((K,ge)=>jsx("button",{type:"button","aria-label":[k("New"),k("History"),k("More")][ge],onClick:()=>a?.(["new","history","more"][ge]),className:`flex size-6 items-center justify-center rounded-[var(--bui-radius-chip)] text-ink-3
|
|
184
|
+
transition-colors duration-100 hover:bg-hover hover:text-ink-2`,children:jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:K})},ge))})]}),jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-2.5 overflow-y-auto px-3 pt-2.5 pb-1",children:[jsx("div",{className:"flex justify-end pl-14",children:jsx("div",{className:`rounded-xl bg-field px-3 py-1.5 text-[13px] leading-[1.4] text-ink
|
|
185
|
+
transition-[opacity,transform] duration-300`,style:{opacity:se?1:0,transform:se?"translateY(0)":"translateY(10px)",transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:I})}),e.map((K,ge)=>jsx(_p,{...K},ge)),r&&jsx("span",{role:"status",children:T.placeholder})]}),jsx("div",{className:"chat-composer-footer mt-auto shrink-0 p-1.5",children:jsxs("div",{role:"presentation",onClick:()=>ae.current?.focus(),className:"chat-composer-field flex cursor-text flex-col gap-2 rounded-control border border-line bg-field p-2.5 shadow-[0_1px_2px_rgba(0,0,0,0.035)] transition-[border-color,box-shadow] duration-150 focus-within:border-line-strong focus-within:shadow-[0_1px_2px_rgba(0,0,0,0.025)]",children:[jsx("input",{ref:ae,value:Z,onChange:K=>Y(K.target.value),onKeyDown:K=>{K.key==="Enter"&&!K.nativeEvent.isComposing&&K.keyCode!==229&&Be();},placeholder:T.placeholder,"aria-label":k("Chat prompt"),className:"min-h-4.5 bg-transparent text-[13px] leading-[1.4] text-ink outline-none placeholder:text-ink-3"}),jsx("div",{className:"flex items-center justify-end",children:jsx("button",{type:"button","aria-label":k("Send"),disabled:!re,onClick:Be,className:`chat-composer-action flex size-7 items-center justify-center rounded-[var(--bui-radius-control)]
|
|
186
|
+
transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.96]`,style:{background:re?"var(--bui-token-primary, var(--bui-ink))":"var(--bui-line-strong)",color:re?"var(--bui-token-primary-foreground, var(--bui-surface))":"var(--bui-ink-2)"},children:jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M12 19V5M5 12l7-7 7 7"})})})})]})})]})})}i(Hp,"BUIChatComposer");var Gp="",qp=[],Kp=[],Xp="repeating-linear-gradient(45deg, var(--bui-red) 0, var(--bui-red) 1.5px, transparent 1.5px, transparent 3px)",Yp=new Set(["import","from","export","default","async","function","const","let","var","await","return","if","else","for","while","new","throw","try","catch","null","true","false","undefined"]),Qp=/("(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`[^`]*`|\b\d+(?:\.\d+)?\b|\b(?:import|from|export|default|async|function|const|let|var|await|return|if|else|for|while|new|throw|try|catch|null|true|false|undefined)\b|[A-Za-z_$][\w$]*(?=\s*\())/g;function Li(e){let t=[],o=0,n=0;for(let r of e.matchAll(Qp)){let a=r.index??0,l=r[0];a>o&&t.push(jsx("span",{children:e.slice(o,a)},n++));let s,d;/^["'`]/.test(l)||/^\d/.test(l)?s="var(--bui-orange)":Yp.has(l)?s="var(--bui-accent-ink)":(s="var(--bui-ink)",d="var(--bui-font-weight-medium, 500)"),t.push(jsx("span",{style:{color:s,fontWeight:d},children:l},n++)),o=a+l.length;}return o<e.length&&t.push(jsx("span",{children:e.slice(o)},n++)),t}i(Li,"highlight");function Zp({pieces:e}){return jsx(Fragment,{children:e.map((t,o)=>{if(t.change){let n=t.change==="add";return jsx("span",{className:"rounded-[3px]",style:{background:`color-mix(in srgb, var(--bui-${n?"green":"red"}) 18%, transparent)`,padding:"0 calc(var(--bui-spacing) / 2)",margin:"0 calc(var(--bui-spacing) / -4)",boxDecorationBreak:"clone",WebkitBoxDecorationBreak:"clone"},children:Li(t.text)},o)}return jsx("span",{children:Li(t.text)},o)})})}i(Zp,"Pieces");function Jp(){return jsx("svg",{"aria-hidden":true,width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-ink-3",children:jsx("path",{d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"})})}i(Jp,"FileIcon");var em={copy:"Copy",copied:"Copied"};function Di({variant:e="Code",embedded:t=false,lines:o=qp,code:n,diff:r=Kp,filename:a=Gp,labels:l,onCopy:s,onCopyError:d}){let u=oe(),[m,c]=useState(false),p=useRef(true),h=useRef();useEffect(()=>(p.current=true,()=>{p.current=false,clearTimeout(h.current);}),[]);let v=e==="Diff",w=Te(em,l),g=n??o.join(`
|
|
187
187
|
`),f=useCallback(()=>{Promise.resolve().then(()=>navigator.clipboard.writeText(g)).then(()=>{p.current&&(c(true),s?.(g),clearTimeout(h.current),h.current=setTimeout(()=>c(false),1500));}).catch($=>d?.($ instanceof Error?$.message:String($)));},[g,s,d]),x=r.filter($=>$.type==="add").length,y=r.filter($=>$.type==="del").length;return jsx(U,{children:jsxs("div",{"data-bui-code-block":true,className:t?"artifact-code-embedded":"w-full max-w-105 overflow-hidden rounded-card bg-surface shadow-card",children:[jsxs("div",{className:"flex h-11 items-center gap-2 border-b border-line px-4 text-[12.5px]",children:[jsxs("span",{className:"inline-flex min-w-0 items-center gap-[7px]",children:[jsx(Jp,{}),jsx("span",{className:"truncate font-mono leading-none text-ink",children:a})]}),v?jsxs("span",{className:"ml-auto inline-flex items-center gap-2 font-mono text-[12px] leading-none tabular-nums",children:[jsxs("span",{className:"text-green",children:["+",x]}),jsxs("span",{className:"text-red",children:["-",y]})]}):jsxs("button",{type:"button","aria-label":u("Copy code"),onClick:f,className:`-mr-1 ml-auto flex h-6 items-center gap-1 rounded-[var(--bui-radius-chip)] px-1.5 text-[12px]
|
|
188
188
|
font-medium transition-colors duration-100 hover:bg-hover
|
|
189
|
-
${m?"text-green":"text-ink-3 hover:text-ink"}`,children:[m?jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M20 6L9 17l-5-5"})}):jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2.5"}),jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),m?w.copied:w.copy]})]}),jsx("div",{className:"py-3 font-mono text-[12.5px] leading-[1.65] text-ink-2",children:v?jsxs("div",{className:"relative",children:[jsx("span",{className:"pointer-events-none absolute inset-y-0 left-5 w-px bg-line"}),r.map(($,
|
|
190
|
-
${
|
|
189
|
+
${m?"text-green":"text-ink-3 hover:text-ink"}`,children:[m?jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M20 6L9 17l-5-5"})}):jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2.5"}),jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),m?w.copied:w.copy]})]}),jsx("div",{className:"py-3 font-mono text-[12.5px] leading-[1.65] text-ink-2",children:v?jsxs("div",{className:"relative",children:[jsx("span",{className:"pointer-events-none absolute inset-y-0 left-5 w-px bg-line"}),r.map(($,M)=>{let C=$.type==="add",R=$.type==="del",P=R?$.old:$.cur;return jsxs("div",{className:`relative grid grid-cols-[20px_minmax(0,1fr)] items-start
|
|
190
|
+
${C?"bg-green-tint":R?"bg-red-tint":""}`,children:[(C||R)&&jsx("span",{className:"absolute inset-y-0 left-0 w-[3px]",style:{background:C?"var(--bui-green)":Xp}}),jsx("span",{className:`select-none text-center text-[11px] ${C?"text-green":R?"text-red":"text-ink-3"}`,children:P??""}),jsx("code",{className:"pr-3 pl-1 break-words whitespace-pre-wrap",children:jsx(Zp,{pieces:$.pieces})})]},M)})]}):jsxs("div",{className:"relative",children:[jsx("span",{className:"pointer-events-none absolute inset-y-0 left-5 w-px bg-line"}),o.map(($,M)=>jsxs("div",{className:"grid grid-cols-[20px_minmax(0,1fr)] items-start",children:[jsx("span",{className:"select-none text-center text-[11px] text-ink-3",children:M+1}),jsx("code",{className:"pr-3 pl-1 break-words whitespace-pre-wrap",children:Li($)})]},M))]})})]})})}i(Di,"BUICodeBlock");var rm={header:"All chunks",count:""},im=[];function am({chunks:e=im,labels:t,className:o}){let[n,r]=useState(false),a=Te(rm,t);return useEffect(()=>{let l=setTimeout(()=>r(true),700);return ()=>clearTimeout(l)},[]),jsx(U,{children:jsxs("div",{className:`flex w-full max-w-95 flex-col gap-2${o?` ${o}`:""}`,children:[jsxs("div",{className:"flex items-center gap-2 px-0.5",style:{animation:"bui-fade-in 400ms ease-out both"},children:[jsx("span",{className:"text-[13px] font-semibold text-ink",children:a.header}),jsx("span",{className:"inline-flex h-5 items-center rounded-md bg-inset px-1.5 text-[11.5px] font-medium text-ink-2 shadow-hairline tabular-nums",children:t?.count??e.length})]}),e.map((l,s)=>jsxs("div",{className:"overflow-hidden rounded-card bg-surface shadow-card",style:{animation:`bui-fade-up 400ms cubic-bezier(0.23,1,0.32,1) ${s*100}ms both`},children:[jsxs("div",{className:"primitive-card-bar flex items-center gap-2.5 border-b border-line",children:[jsxs("span",{className:"flex min-w-0 items-center gap-1.5 text-[13px] font-medium text-ink",children:[jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:jsx("path",{d:"M4 6h16M4 12h16M4 18h10"})}),jsx("span",{className:"truncate",children:l.title})]}),jsx("span",{className:"ml-auto shrink-0 text-[12px] text-ink-3 tabular-nums",children:l.chars})]}),jsx("p",{className:"px-3 pt-2 pb-1 text-[12.5px] leading-relaxed text-ink-2",children:l.body}),jsx("div",{className:"px-3 pb-3",children:jsxs("span",{className:`inline-flex h-6 items-center gap-1.5 rounded-full bg-inset px-2
|
|
191
191
|
text-[12px] font-medium text-ink-2 shadow-btn
|
|
192
192
|
transition-[opacity,transform,background-color] duration-300 hover:bg-hover`,style:{opacity:n?1:0,transform:n?"scale(1)":"scale(0.95)",transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)",transitionDelay:`${s*80}ms`},children:[jsx("span",{className:`flex size-3.5 items-center justify-center rounded-[4px] ${l.tone} text-[7px] font-bold text-white`,children:l.badge}),l.source,jsx("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M7 17L17 7M7 7h10v10"})})]})})]},l.title))]})})}i(am,"BUIContextCards");function lm(e){let[t,o]=useState(0);return useEffect(()=>{if(t>=e.length)return;let n=setTimeout(()=>o(r=>r+1),e[t]);return ()=>clearTimeout(n)},[t,e]),t}i(lm,"useStage");var dm=[180,260],cm=[];function Js({included:e,tone:t}){return jsx("span",{"aria-hidden":true,className:`flex size-4.5 shrink-0 items-center justify-center rounded-[5px] transition-[background-color,color,transform] duration-150 ${e?t==="red"?"bg-red text-white":"bg-green text-white":"bg-inset text-ink-3 shadow-hairline"}`,style:{transform:e?"scale(1)":"scale(0.92)"},children:e?jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M20 6L9 17l-5-5"})}):null})}i(Js,"IncludedMark");function um({rows:e=cm,addedRows:t=[],title:o,columns:n,categoryColors:r={},accepted:a=false,onApply:l}){let s=oe(),d=lm(dm),u=d>=1,m=d>=2,[c,p]=useState({}),h=e.filter(f=>f.removed&&c[f.key]!==false).length,v=t.filter(f=>c[f.key]!==false).length,w=m,g=i(f=>p(x=>({...x,[f]:x[f]===false})),"toggleEdit");return jsx(U,{children:jsx("div",{className:"w-full max-w-95",children:jsxs("div",{className:"relative overflow-hidden rounded-card bg-surface shadow-card",children:[jsxs("div",{className:"primitive-card-bar flex items-center justify-between border-b border-line",children:[jsx("span",{className:"text-[12.5px] font-medium text-ink",children:o??s("Proposed changes")}),m&&!a&&jsx("span",{className:"text-[11px] text-ink-3",children:s("Click changed rows to toggle")})]}),jsxs("table",{className:"w-full table-fixed border-collapse text-left",children:[jsxs("colgroup",{children:[jsx("col",{className:"w-[34%]"}),jsx("col",{className:"w-[30%]"}),jsx("col",{className:"w-[36%]"})]}),jsx("thead",{children:jsx("tr",{className:"border-b border-line",children:(n??[s("Name"),s("Category"),s("Value")]).map(f=>jsx("th",{className:"primitive-table-cell text-[12px] font-medium text-ink-3",children:f},f))})}),jsxs("tbody",{children:[e.map(f=>{let x=f.removed&&u&&c[f.key]!==false,y=f.removed&&m&&!a;return jsxs("tr",{tabIndex:y?0:void 0,"aria-selected":f.removed?c[f.key]!==false:void 0,onClick:y?()=>g(f.key):void 0,onKeyDown:y?$=>{($.key==="Enter"||$.key===" ")&&($.preventDefault(),g(f.key));}:void 0,className:`border-b border-line transition-[background-color,filter,opacity] duration-150 last:border-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-accent ${y?"cursor-pointer hover:brightness-[0.985]":""}`,style:{background:x?"var(--bui-red-tint)":void 0},children:[jsx("td",{className:"primitive-table-cell text-[13px] font-medium tabular-nums transition-colors duration-200",style:{color:x?"var(--bui-red)":"var(--bui-ink)"},children:f.id}),jsx("td",{className:"primitive-table-cell",children:jsxs("span",{className:"inline-flex h-5.5 items-center gap-1.5 rounded-full bg-inset px-2 text-[11.5px] font-medium shadow-hairline transition-opacity duration-200",style:{opacity:x?.55:1},children:[jsx("span",{className:"size-1.5 rounded-full",style:{background:r[f.dept]??"var(--bui-ink-3)"}}),jsx("span",{className:"text-ink-2",children:f.dept})]})}),jsx("td",{className:"primitive-table-cell text-[12.5px] whitespace-nowrap transition-colors duration-200",style:{color:x?"var(--bui-red)":"var(--bui-ink-2)",textDecorationLine:x?"line-through":"none",textDecorationColor:"color-mix(in srgb, var(--bui-red) 50%, transparent)"},children:jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsx("span",{className:"min-w-0 truncate",children:f.email}),f.removed&&m&&jsx(Js,{included:c[f.key]!==false,tone:"red"})]})})]},f.key)}),t.map(f=>jsx("tr",{children:jsx("td",{colSpan:3,className:"p-0",children:jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-200",style:{gridTemplateRows:w?"1fr":"0fr",opacity:w?1:0,transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:jsx("div",{className:"overflow-hidden",children:jsxs("div",{role:"checkbox",tabIndex:a?-1:0,"aria-checked":c[f.key]!==false,"aria-label":`Include adding ${f.id}`,onClick:a?void 0:()=>g(f.key),onKeyDown:a?void 0:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),g(f.key));},className:`grid grid-cols-[34%_30%_36%] items-center border-t border-line transition-[background-color,filter,opacity] duration-150 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-accent ${a?"":"cursor-pointer hover:brightness-[0.985]"}`,style:{background:c[f.key]!==false?"var(--bui-green-tint)":void 0},children:[jsx("span",{className:"primitive-table-cell text-[13px] font-medium tabular-nums transition-colors duration-200",style:{color:c[f.key]!==false?"var(--bui-green)":"var(--bui-ink-3)"},children:f.id}),jsx("span",{className:"primitive-table-cell",children:jsxs("span",{className:"inline-flex h-5.5 items-center gap-1.5 rounded-full bg-surface px-2 text-[11.5px] font-medium shadow-hairline",children:[jsx("span",{className:"size-1.5 rounded-full bg-green"}),jsx("span",{className:"text-ink-2",children:f.dept})]})}),jsx("span",{className:"primitive-table-cell text-[13px] transition-colors duration-200",style:{color:c[f.key]!==false?"var(--bui-green)":"var(--bui-ink-3)"},children:jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsx("span",{className:"min-w-0 truncate",children:f.email}),jsx(Js,{included:c[f.key]!==false,tone:"green"})]})})]})})})})},f.key))]})]}),m&&jsx("div",{className:"primitive-card-footer flex min-h-11 items-center justify-between border-t border-line",style:{animation:"bui-fade-up 180ms cubic-bezier(0.23,1,0.32,1) both"},children:a?jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-green-tint py-1 pr-2.5 pl-1 text-[12.5px] font-medium text-green",style:{animation:"bui-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsx("span",{className:"flex size-4.5 items-center justify-center rounded-full bg-green text-white",children:jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M20 6L9 17l-5-5"})})}),s("editsApplied",{count:h+v})]}):jsxs(Fragment,{children:[jsx("span",{className:"text-[11.5px] tabular-nums text-ink-3",children:s("changesSummary",{removals:h,additions:v})}),jsx("span",{className:"flex items-center gap-1.5",children:jsx(Me,{variant:"accent",size:"sm",disabled:h+v===0,onClick:()=>{l?.([...e.filter(f=>f.removed),...t].filter(f=>c[f.key]!==false).map(f=>f.key));},className:"text-[12px]",children:s("applyChanges",{count:h+v})})})]})})]})})})}i(um,"BUIDiffTable");var gm=[{key:"all",label:"All",count:5},{key:"todo",label:"To do",dot:"var(--bui-filter-todo)",count:2},{key:"progress",label:"In Progress",dot:"var(--bui-filter-progress)",count:2},{key:"done",label:"Completed",dot:"var(--bui-filter-done)",count:1}],fm=[],hm={columns:{task:"Task name",date:"Date",status:"Status",owner:"Advisor"}},bm={todo:{label:"To do",cls:"filter-status-todo"},progress:{label:"In Progress",cls:"filter-status-progress"},done:{label:"Completed",cls:"filter-status-done"}};function vm({rows:e=fm,labels:t}){let o=oe(),n=Te(hm,t),[r,a]=useState("all");return jsx(U,{children:jsxs("div",{className:"w-full max-w-105",children:[jsx("div",{className:"-mx-1 mb-1 flex items-center gap-1 overflow-x-auto px-1 py-1",style:{scrollbarWidth:"none"},children:gm.map(l=>{let s=r===l.key;return jsxs("button",{type:"button","aria-pressed":s,onClick:()=>a(l.key),className:`flex h-6.5 shrink-0 items-center gap-1.5 rounded-[var(--bui-radius-pill)] px-2.5 text-[12px]
|
|
193
193
|
font-medium transition-[background-color,box-shadow,color] duration-200
|
|
@@ -198,54 +198,54 @@ void main(){
|
|
|
198
198
|
transition-[background-color,box-shadow] duration-200`,style:{background:s?"var(--bui-accent-tint)":"var(--bui-field)",boxShadow:s?"0 0 0 1px var(--bui-accent)":"none"},children:[jsx("span",{role:"slider","aria-label":e,"aria-valuenow":t,"aria-valuemin":n,"aria-valuemax":r,tabIndex:0,onPointerDown:m=>{m.target.setPointerCapture(m.pointerId),d.current={x:m.clientX,v:t};},onPointerMove:m=>{d.current&&o(u(d.current.v+(m.clientX-d.current.x)/2*a));},onPointerUp:()=>d.current=null,onKeyDown:m=>{let c=m.shiftKey?10:1;m.key==="ArrowUp"||m.key==="ArrowRight"?(m.preventDefault(),o(u(t+a*c))):(m.key==="ArrowDown"||m.key==="ArrowLeft")&&(m.preventDefault(),o(u(t-a*c)));},className:`flex h-full shrink-0 cursor-ew-resize touch-none items-center rounded-[4px]
|
|
199
199
|
px-0.5 text-[12px] text-ink-3 select-none hover:text-ink-2 focus-visible:text-accent-ink
|
|
200
200
|
focus-visible:outline-none`,children:e}),jsx("input",{inputMode:"numeric",value:t,onChange:m=>{let c=Number(m.target.value.replace(/[^\d-]/g,""));Number.isNaN(c)||o(u(c));},"aria-label":`${e} value`,className:"min-w-0 flex-1 bg-transparent text-[12px] text-ink tabular-nums outline-none"}),l&&jsx("span",{className:"shrink-0 pr-0.5 text-[11.5px] text-ink-3",children:l})]})}i(xm,"ScrubField");var wm=["row","col","grid"];function km({kind:e}){let t="size-1.5 rounded-[2px] border-[1.2px] border-current";return e==="row"?jsx("span",{className:"flex gap-0.5",children:[0,1,2].map(o=>jsx("span",{className:t},o))}):e==="col"?jsx("span",{className:"flex flex-col gap-0.5",children:[0,1].map(o=>jsx("span",{className:t},o))}):jsx("span",{className:"grid grid-cols-2 gap-0.5",children:[0,1,2,3].map(o=>jsx("span",{className:t},o))})}i(km,"SegmentIcon");var $m=[],Sm=[],Cm={title:"Configuration",layout:"Layout",type:"Type",placeholder:"Select type",adjust:"Adjust",edited:"Edited"};function Tm(e,t){let o=[];for(let n=0;n<e.length;n+=t)o.push(e.slice(n,n+t));return o}i(Tm,"chunk");function Rm({fields:e=$m,options:t=Sm,labels:o,onChange:n}){let r=Te(Cm,o),[a,l]=useState(0),[s,d]=useState(()=>Object.fromEntries(e.map(x=>[x.key,x.value]))),[u,m]=useState(false),[c,p]=useState(r.placeholder),h=i(x=>{l(x),n?.({segment:x,values:s,type:c});},"selectSeg"),v=i((x,y)=>{let $={...s,[x]:y};d($),n?.({segment:a,values:$,type:c});},"setValue"),w=i(x=>{p(x),m(false),n?.({segment:a,values:s,type:x});},"selectType"),g=e.some(x=>s[x.key]!==x.value),f=a!==0||g||c!==r.placeholder;return jsx(U,{children:jsxs("div",{className:"relative w-full max-w-60 rounded-card bg-surface shadow-raised",children:[jsxs("div",{className:"primitive-card-bar flex items-center justify-between border-b border-line",children:[jsx("span",{className:"text-[13px] font-medium text-ink",children:r.title}),f?jsxs("span",{className:"flex items-center gap-1.5 text-[12px] font-medium text-green",style:{animation:"bui-pop-in 250ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M20 6L9 17l-5-5"})}),r.edited]}):jsxs("span",{className:"flex items-center gap-1.5",children:[jsx("span",{className:"flex size-4.5 items-center justify-center rounded-[5px] border border-accent/30 bg-accent-tint",children:jsx("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"var(--bui-accent)",children:jsx("path",{d:"M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z"})})}),jsx("span",{className:"bg-clip-text text-[12px] font-medium text-transparent",style:{backgroundImage:"linear-gradient(90deg, var(--bui-accent) 35%, var(--bui-accent-ink) 50%, var(--bui-accent) 65%)",backgroundSize:"200% 100%",animation:"bui-shimmer-text 1.4s linear infinite"},children:r.adjust})]})]}),jsxs("div",{className:"primitive-card-pad flex flex-col gap-2 border-b border-line",children:[jsx("p",{className:"text-[12.5px] font-medium text-ink",children:r.layout}),jsxs("div",{className:"relative grid grid-cols-3 rounded-control bg-field p-0.5",children:[jsx("span",{"aria-hidden":true,className:"absolute inset-y-0.5 rounded-[6px] bg-surface shadow-btn transition-transform duration-300",style:{width:"calc((100% - 4px) / 3)",left:2,transform:`translateX(${a*100}%)`,transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"}}),wm.map((x,y)=>jsx("button",{type:"button","aria-label":`${x} layout`,"aria-pressed":y===a,onClick:()=>h(y),className:`relative z-10 flex h-6 items-center justify-center transition-colors duration-200
|
|
201
|
-
${y===a?"text-accent":"text-ink-3"}`,children:jsx(km,{kind:x})},x))]}),Tm(e,2).map((x,y)=>jsx("div",{className:"grid min-w-0 grid-cols-2 gap-2",children:x.map($=>jsx(xm,{label:$.label,value:s[$.key],onChange:
|
|
202
|
-
shadow-hairline transition-shadow duration-200 focus-visible:outline-none`,style:{boxShadow:u?"0 0 0 1px var(--bui-accent)":void 0},children:[jsx("span",{className:`text-[12px] ${c!==r.placeholder?"text-ink":"text-ink-3"}`,children:c}),jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-200",style:{transform:u?"rotate(180deg)":"rotate(0)"},children:jsx("path",{d:"M6 9l6 6 6-6"})})]}),u&&jsx("div",{className:"absolute right-0 bottom-8 z-10 w-30 rounded-[10px] bg-surface p-1 shadow-raised",style:{animation:"bui-pop-in 200ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"bottom right"},children:jsx(
|
|
201
|
+
${y===a?"text-accent":"text-ink-3"}`,children:jsx(km,{kind:x})},x))]}),Tm(e,2).map((x,y)=>jsx("div",{className:"grid min-w-0 grid-cols-2 gap-2",children:x.map($=>jsx(xm,{label:$.label,value:s[$.key],onChange:M=>v($.key,M),min:$.min,max:$.max,step:$.step,suffix:$.suffix,active:s[$.key]!==$.value},$.key))},y))]}),jsxs("div",{className:"primitive-card-footer flex items-center justify-between",children:[jsx("span",{className:"text-[12px] text-ink-3",children:r.type}),jsxs("div",{className:"relative -mr-0.5 w-30",children:[jsxs("button",{type:"button","aria-expanded":u,onClick:()=>m(x=>!x),className:`flex h-6.5 w-full items-center justify-between rounded-chip bg-inset py-1 pr-1 pl-2
|
|
202
|
+
shadow-hairline transition-shadow duration-200 focus-visible:outline-none`,style:{boxShadow:u?"0 0 0 1px var(--bui-accent)":void 0},children:[jsx("span",{className:`text-[12px] ${c!==r.placeholder?"text-ink":"text-ink-3"}`,children:c}),jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-200",style:{transform:u?"rotate(180deg)":"rotate(0)"},children:jsx("path",{d:"M6 9l6 6 6-6"})})]}),u&&jsx("div",{className:"absolute right-0 bottom-8 z-10 w-30 rounded-[10px] bg-surface p-1 shadow-raised",style:{animation:"bui-pop-in 200ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"bottom right"},children:jsx(et,{className:"flex flex-col gap-px",highlightClassName:"inset-x-0 rounded-[6px] bg-field",children:t.map(x=>jsx("button",{"data-menu-row":true,type:"button",onClick:()=>w(x),className:`relative z-10 flex h-6.5 w-full items-center rounded-[var(--bui-radius-chip)] px-2 text-left text-[12.5px] text-ink ${x===c?"bg-field group-hover/glide-menu:bg-transparent":""}`,children:x},x))})})]})]})]})})}i(Rm,"BUIFineTuneCard");function zi({title:e,caption:t,kind:o,icon:n,status:r,actions:a,children:l,selected:s=false,compact:d=false,tone:u="default",hue:m,direction:c="vertical",input:p=true,output:h=true,sideOutput:v=false,className:w,style:g,...f}){return jsx(U,{children:jsxs("div",{...f,"data-bui-flow-node":true,"data-selected":s||void 0,"data-tone":u,"data-direction":c,"data-compact":d||void 0,className:["bui-flow-node",w].filter(Boolean).join(" "),style:{"--bui-flow-node-hue":m||(u==="condition"?"var(--bui-flow-condition)":u==="branch"?"var(--bui-flow-branch)":"var(--bui-accent)"),...g},children:[o&&jsx("div",{className:"bui-flow-node-kind",children:o}),jsxs("div",{className:"bui-flow-node-card",children:[p&&jsx("span",{"aria-hidden":true,className:"bui-flow-node-port bui-flow-node-input"}),jsxs("div",{className:"bui-flow-node-header",children:[n&&jsx("span",{className:"bui-flow-node-icon",children:n}),jsxs("div",{className:"bui-flow-node-copy",children:[jsx("div",{className:"bui-flow-node-title",children:e}),!d&&t&&jsx("div",{className:"bui-flow-node-caption",children:t})]}),r&&jsx("span",{className:"bui-flow-node-status",children:r}),a&&jsx("div",{className:"bui-flow-node-actions","data-ui":true,children:a})]}),l&&jsx("div",{className:"bui-flow-node-content","data-ui":true,children:l}),v&&jsx("span",{"aria-hidden":true,className:"bui-flow-node-port bui-flow-node-side-output"}),h&&jsx("span",{"aria-hidden":true,className:"bui-flow-node-port bui-flow-node-output"})]})]})})}i(zi,"BUIFlowNode");var tl={top:{x:0,y:-1},right:{x:1,y:0},bottom:{x:0,y:1},left:{x:-1,y:0}},br=i((e,t,o)=>({x:e.x+tl[t].x*o,y:e.y+tl[t].y*o}),"offset"),ol=i(e=>`${e.x} ${e.y}`,"point");function Ui({source:e,target:t,sourcePort:o="bottom",targetPort:n="top",returnLane:r}){let a=o==="left"||o==="right",l=Math.abs(a?t.x-e.x:t.y-e.y),s=Math.min(Math.max(l*.55,24),84),d=[];if(r!==void 0){let c=a?{x:(e.x+t.x)/2,y:r}:{x:r,y:(e.y+t.y)/2},p=a?t.x>=e.x?1:-1:t.y>=e.y?1:-1,h=a?{x:c.x-p*s,y:c.y}:{x:c.x,y:c.y-p*s},v=a?{x:c.x+p*s,y:c.y}:{x:c.x,y:c.y+p*s};d.push([e,br(e,o,s),h,c],[c,v,br(t,n,s),t]);}else d.push([e,br(e,o,s),br(t,n,s),t]);let u=`M ${ol(e)} `+d.map(c=>`C ${c.slice(1).map(ol).join(", ")}`).join(" "),m=[e];for(let c of d){let p=c.slice(1).reduce((v,w,g)=>v+Math.hypot(w.x-c[g].x,w.y-c[g].y),0),h=Math.max(16,Math.min(128,Math.ceil(p/8)));for(let v=1;v<=h;v++){let w=v/h,g=1-w;m.push({x:g**3*c[0].x+3*g**2*w*c[1].x+3*g*w**2*c[2].x+w**3*c[3].x,y:g**3*c[0].y+3*g**2*w*c[1].y+3*g*w**2*c[2].y+w**3*c[3].y});}}return {path:u,points:m,midpoint:m[Math.floor(m.length/2)]}}i(Ui,"getBUIFlowConnection");var Nm="var(--bui-flow-branch)",nl=i((e,t,o="var(--bui-surface)")=>`color-mix(in srgb, ${e} ${t}%, ${o})`,"mix"),rl=24,Mm=64,Im=30,Bm=[],Am={};function ll({size:e=16}){return jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[jsx("path",{d:"m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11"}),jsx("path",{d:"M17 7A5 5 0 0 0 7 7"}),jsx("path",{d:"M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4"})]})}i(ll,"ConeIcon");function Em(){return jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0 text-ink-3",children:jsx("path",{d:"m6 9 6 6 6-6"})})}i(Em,"Chevron");function il(){return jsx("svg",{width:"10",height:"16",viewBox:"0 0 10 16",className:"shrink-0 cursor-grab text-ink-3/70",children:[3,8,13].flatMap(e=>[jsx("circle",{cx:"3",cy:e,r:"1.1",fill:"currentColor"},`l${e}`),jsx("circle",{cx:"7.5",cy:e,r:"1.1",fill:"currentColor"},`r${e}`)])})}i(il,"Handle");function Lm(){return jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M20 6L9 17l-5-5"})})}i(Lm,"CheckIcon");function Dm({items:e,value:t,width:o,align:n,onPick:r}){let[a,l]=useState(null),s=useRef([]),[d,u]=useState(null),m=e.findIndex(c=>c.name===t);return useLayoutEffect(()=>{let c=s.current[a??m];c&&u({top:c.offsetTop,height:c.offsetHeight});},[a,m]),jsxs("div",{onMouseLeave:()=>l(null),className:`absolute bottom-full z-20 mb-1.5 rounded-[10px] bg-surface p-1 shadow-raised ${o}
|
|
203
203
|
${n==="right"?"right-0":"left-0"}`,style:{animation:"bui-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:n==="right"?"bottom right":"bottom left"},children:[jsx("span",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-1 rounded-[6px] bg-hover",style:{top:d?.top??0,height:d?.height??0,opacity:d&&a!==null?1:0,transition:"top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease"}}),e.map((c,p)=>jsxs("button",{type:"button",ref:h=>{s.current[p]=h;},onMouseEnter:()=>l(p),onClick:()=>r(c.name),className:"relative z-10 flex h-7.5 w-full cursor-pointer items-center gap-2 rounded-[var(--bui-radius-chip)] px-2 text-left",children:[jsx("span",{className:"min-w-0 flex-1 truncate text-[12.5px] font-medium text-ink",children:c.name}),c.tag&&jsx("span",{className:"shrink-0 text-[11px] text-ink-3",children:c.tag}),jsx("span",{className:`shrink-0 text-ink ${c.name===t?"":"invisible"}`,children:jsx(Lm,{})})]},c.name))]})}i(Dm,"Menu");function al({label:e}){return jsxs("span",{"data-ui":true,className:"inline-flex h-6 shrink-0 items-center gap-1 rounded-[6px] bg-surface px-1.5 text-[12px] font-medium text-ink shadow-btn",children:[jsx("span",{className:"text-ink-2",children:jsx(ll,{size:12})}),e]})}i(al,"SourceChip");function zm({id:e,value:t,dot:o,items:n,width:r,align:a="left",open:l,onToggle:s,onPick:d}){return jsxs("span",{"data-ui":true,className:"relative inline-flex min-w-0",children:[jsxs("button",{type:"button","aria-expanded":l,onClick:()=>s(e),className:`inline-flex h-6 min-w-0 cursor-pointer items-center gap-1 rounded-[var(--bui-radius-chip)] px-1.5
|
|
204
204
|
text-[12px] font-medium text-ink transition-colors duration-100
|
|
205
|
-
${l?"bg-hover-2":"bg-field hover:bg-hover-2"}`,children:[o&&jsx("span",{className:"size-1.5 shrink-0 rounded-full",style:{background:Nm}}),jsx("span",{className:"min-w-0 truncate",children:t}),jsx(Em,{})]}),l&&jsx(Dm,{items:n,value:t,width:r,align:a,onPick:u=>d(e,u)})]})}i(zm,"SelectChip");function Um({data:e,onChange:t}){let o=oe(),n=e.values,r=e.properties,a=e.firstOptions,l=e.secondOptions,[s,d]=useState(null);useEffect(()=>{if(!s)return;let p=i(h=>{h.target.closest("[data-ui]")||d(null);},"close");return document.addEventListener("pointerdown",p),()=>document.removeEventListener("pointerdown",p)},[s]);let u=i(p=>d(h=>h===p?null:p),"toggle"),m=i((p,h)=>{t?.({...n,[p]:h}),d(null);},"pick"),c=i((p,h,v,w)=>jsx(zm,{id:p,value:n[p],items:h,width:v,open:s===p,onToggle:u,onPick:m,...w}),"chip");return jsxs("div",{className:"flex flex-col gap-1.5 px-3 py-2.5",children:[jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[jsx(il,{}),jsx("span",{className:"w-7 text-[12.5px] text-ink-2",children:o("If")}),jsx(al,{label:e.source}),c("prop1",r.map(p=>({name:p})),"w-36"),jsx("span",{className:"text-[12.5px] text-ink-2",children:o("is")}),c("val1",a,"w-44",{dot:true,align:"right"})]}),jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1.5",children:[jsx(il,{}),jsx("span",{className:"w-7 text-[12.5px] text-ink-2",children:o("and")}),jsx(al,{label:e.source}),c("prop2",r.map(p=>({name:p})),"w-36"),jsx("span",{className:"text-[12.5px] text-ink-2",children:o("is")}),jsx("span",{className:"max-w-full pl-[49px]",children:c("val2",l,"w-64",{dot:true})})]})]})}i(Um,"ConditionBody");function Fm({steps:e=Bm,edges:t=[],onConditionChange:o,onMove:n}){let r=useRef(null),a=useRef(new Map),[l,s]=useState(0),[d,u]=useState(Am),[m,c]=useState(null),[p,h]=useState({}),v=useRef(null);useLayoutEffect(()=>{let k=r.current;if(!k)return;let
|
|
205
|
+
${l?"bg-hover-2":"bg-field hover:bg-hover-2"}`,children:[o&&jsx("span",{className:"size-1.5 shrink-0 rounded-full",style:{background:Nm}}),jsx("span",{className:"min-w-0 truncate",children:t}),jsx(Em,{})]}),l&&jsx(Dm,{items:n,value:t,width:r,align:a,onPick:u=>d(e,u)})]})}i(zm,"SelectChip");function Um({data:e,onChange:t}){let o=oe(),n=e.values,r=e.properties,a=e.firstOptions,l=e.secondOptions,[s,d]=useState(null);useEffect(()=>{if(!s)return;let p=i(h=>{h.target.closest("[data-ui]")||d(null);},"close");return document.addEventListener("pointerdown",p),()=>document.removeEventListener("pointerdown",p)},[s]);let u=i(p=>d(h=>h===p?null:p),"toggle"),m=i((p,h)=>{t?.({...n,[p]:h}),d(null);},"pick"),c=i((p,h,v,w)=>jsx(zm,{id:p,value:n[p],items:h,width:v,open:s===p,onToggle:u,onPick:m,...w}),"chip");return jsxs("div",{className:"flex flex-col gap-1.5 px-3 py-2.5",children:[jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[jsx(il,{}),jsx("span",{className:"w-7 text-[12.5px] text-ink-2",children:o("If")}),jsx(al,{label:e.source}),c("prop1",r.map(p=>({name:p})),"w-36"),jsx("span",{className:"text-[12.5px] text-ink-2",children:o("is")}),c("val1",a,"w-44",{dot:true,align:"right"})]}),jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1.5",children:[jsx(il,{}),jsx("span",{className:"w-7 text-[12.5px] text-ink-2",children:o("and")}),jsx(al,{label:e.source}),c("prop2",r.map(p=>({name:p})),"w-36"),jsx("span",{className:"text-[12.5px] text-ink-2",children:o("is")}),jsx("span",{className:"max-w-full pl-[49px]",children:c("val2",l,"w-64",{dot:true})})]})]})}i(Um,"ConditionBody");function Fm({steps:e=Bm,edges:t=[],onConditionChange:o,onMove:n}){let r=useRef(null),a=useRef(new Map),[l,s]=useState(0),[d,u]=useState(Am),[m,c]=useState(null),[p,h]=useState({}),v=useRef(null);useLayoutEffect(()=>{let k=r.current;if(!k)return;let T=i(()=>{s(k.clientWidth),u(_=>{let Z={..._},Y=false;return a.current.forEach((O,J)=>{let E=O.offsetHeight;E&&Math.abs(E-(Z[J]??0))>.5&&(Z[J]=E,Y=true);}),Y?Z:_});},"measure");T();let D=new ResizeObserver(T);return D.observe(k),a.current.forEach(_=>D.observe(_)),()=>D.disconnect()},[]);let w=[...new Set(e.map(k=>k.row))].sort((k,T)=>k-T),g=w.map(k=>Math.max(...e.filter(T=>T.row===k).map(T=>d[T.id]??90))),f=[];w.forEach((k,T)=>{f[T]=T===0?rl:f[T-1]+g[T-1]+Mm;});let x=(f[w.length-1]??0)+(g[w.length-1]??0)+rl,y=l||480,$=i(k=>{let T=Math.min(k.w,y*.92),D=p[k.id];return {w:T,cx:k.x*y+(D?.dx??0),top:f[w.indexOf(k.row)]+(D?.dy??0)}},"place"),M=i(k=>{let{cx:T,top:D}=$(k);return {top:{x:T,y:D+(k.kind?Im:0)},bottom:{x:T,y:D+(d[k.id]??90)}}},"anchors"),C=i(k=>{let T=M(e.find(_=>_.id===k.from)).bottom,D=M(e.find(_=>_.id===k.to)).top;return Ui({source:T,target:D}).path},"bezier"),R=i(k=>T=>{if(T.target.closest("[data-ui]"))return;let D=p[k.id];v.current={id:k.id,startX:T.clientX,startY:T.clientY,baseDx:D?.dx??0,baseDy:D?.dy??0,moved:false},T.currentTarget.setPointerCapture(T.pointerId);},"onPointerDown"),P=i(k=>T=>{let D=v.current;if(!D||D.id!==k.id)return;let _=D.baseDx+T.clientX-D.startX,Z=D.baseDy+T.clientY-D.startY;if(!D.moved&&Math.hypot(_-D.baseDx,Z-D.baseDy)<3)return;D.moved=true;let{w:Y}=$(k),O=d[k.id]??90,J=k.x*y,E=f[w.indexOf(k.row)],te=Math.min(Math.max(J+_,Y/2+8),y-Y/2-8),ee=Math.min(Math.max(E+Z,8),x-O-8);h(me=>({...me,[k.id]:{dx:te-J,dy:ee-E}}));},"onPointerMove"),F=i(k=>()=>{let T=v.current;T?.id===k.id&&(T.moved&&n?.(T.id,p[T.id]??{dx:0,dy:0}),T.moved?setTimeout(()=>v.current=null,0):v.current=null);},"onPointerUp"),L=i(()=>v.current?.moved===true,"wasDragged"),B=i(k=>m===k.from||m===k.to,"isLit");return jsx(U,{children:jsxs("div",{ref:r,className:"relative w-full select-none overflow-hidden rounded-card bg-page shadow-hairline",style:{height:x,backgroundImage:"radial-gradient(var(--bui-line-strong) 1px, transparent 1.25px)",backgroundSize:"22px 22px",backgroundPosition:"center"},children:[jsx("svg",{width:y,height:x,className:"pointer-events-none absolute inset-0",children:t.filter(k=>e.some(T=>T.id===k.from)&&e.some(T=>T.id===k.to)).map(k=>jsx("path",{d:C(k),fill:"none",stroke:B(k)?"var(--bui-accent)":"var(--bui-line-strong)",strokeWidth:"1.25",className:"transition-[stroke] duration-150"},`${k.from}-${k.to}`))}),e.map(k=>{let{w:T,cx:D,top:_}=$(k),Z=m===k.id;return jsxs("div",{ref:Y=>{Y?a.current.set(k.id,Y):a.current.delete(k.id);},onPointerDown:R(k),onPointerMove:P(k),onPointerUp:F(k),className:"absolute flex -translate-x-1/2 touch-none flex-col items-start gap-1.5",style:{left:D,top:_,width:T,zIndex:v.current?.id===k.id?2:1},children:[k.kind&&jsx("span",{className:"inline-flex h-6 items-center rounded-[6px] px-2 text-[11.5px] font-medium",style:{background:nl(k.kind.hue,14,"var(--bui-page)"),color:nl(k.kind.hue,80,"var(--bui-ink)")},children:k.kind.label}),k.condition?jsx("div",{className:"w-full rounded-[18px] bg-surface shadow-card transition-shadow duration-150 hover:shadow-raised",children:jsx(Um,{data:k.conditionData??{source:"",values:{},properties:[],firstOptions:[],secondOptions:[]},onChange:Y=>o?.(k.id,Y)})}):jsx("button",{type:"button",onClick:()=>{L()||c(Z?null:k.id);},"aria-pressed":Z,className:`w-full cursor-pointer rounded-[var(--bui-radius-scale-18)] bg-surface text-left outline-none
|
|
206
206
|
transition-shadow duration-150 focus-visible:shadow-[0_0_0_1.5px_var(--bui-accent)]
|
|
207
|
-
${X?"shadow-[0_0_0_1.5px_var(--bui-accent),0_2px_10px_rgba(0,0,0,0.045)]":"shadow-card hover:shadow-raised"}`,children:jsx(zi,{title:k.title,caption:k.caption,icon:jsx(ll,{}),hue:k.hue,input:false,output:false})})]},k.id)})]})})}i(Fm,"BUIFlowchart");var dl="cubic-bezier(0.16, 1, 0.3, 1)",Fi=i(e=>`${e>0?"+":""}${e.toFixed(2)}%`,"formatPercent"),yr=i(e=>`$${Math.round(e).toLocaleString("en-US")}`,"formatMoney");function Oi(e,t=6){let o=Math.floor(Date.now()/1e3);return e.map((n,r)=>({time:o-(e.length-1-r)*t,value:n}))}i(Oi,"makePoints");function Vm(e,t=9){if(e.length<3)return e.slice();let o=[],n=e.length;for(let r=0;r<n-1;r+=1){let a=e[Math.max(0,r-1)],l=e[r],s=e[r+1],d=e[Math.min(n-1,r+2)];for(let u=0;u<t;u+=1){let m=u/t,c=m*m,p=c*m;o.push(.5*(2*l+(-a+s)*m+(2*a-5*l+4*s-d)*c+(-a+3*l-3*s+d)*p));}}return o.push(e[n-1]),o}i(Vm,"smooth");function Wm(e,t){let o=Vm(e);return Oi(o,o.length>1?t/(o.length-1):0)}i(Wm,"smoothPoints");var ul=Ea;function pl({children:e,tone:t}){return jsx("code",{className:`font-mono text-[11.5px] ${t==="red"?"text-red":"text-green"}`,children:e})}i(pl,"Mono");function wr(e,t){let o=e.currentTarget.getBoundingClientRect(),n=Math.max(0,Math.min(1,(e.clientX-o.left)/o.width));return Math.round(n*(t-1))}i(wr,"chartIndexFromPointer");function ml({rows:e}){return jsx("div",{className:"insight-chart-tooltip",children:e.map(t=>jsxs("span",{className:"insight-chart-tooltip-item",children:[jsx("span",{className:"insight-chart-tooltip-dot",style:{background:t.color}}),t.value]},t.label))})}i(ml,"ChartTooltip");var jm=[];function Gm({series:e=jm}){let t=oe(),o=ul(),[n,r]=useState(null),a=useMemo(()=>e.map(d=>Wm(d.values,42)),[e]),l=a[0]?.length??0,s=useMemo(()=>e.map((d,u)=>({id:d.name,label:"",data:a[u],value:a[u].at(-1)?.value??d.values.at(-1)??0,color:d.color})),[e,a]);return jsxs("div",{className:"min-h-[278px] rounded-card bg-surface p-3 shadow-hairline",children:[jsx("div",{className:"flex items-center gap-4",children:e.map((d,u)=>jsxs("div",{className:"flex-1",children:[jsxs("span",{className:"flex items-center gap-1.5 text-[11.5px] text-ink-2",children:[jsx("span",{className:`size-2 rounded-full ${d.dot}`}),d.name]}),jsx("span",{className:`block text-[17px] font-semibold tracking-[-0.01em] tabular-nums ${d.tone==="red"?"text-red":"text-green"}`,children:Fi(a[u].at(-1)?.value??d.values.at(-1)??0)}),jsx(pl,{tone:d.tone,children:d.sub})]},d.name))}),jsxs("div",{className:"mt-2 overflow-hidden rounded-control bg-inset shadow-hairline",children:[jsxs("div",{className:"flex items-center justify-between border-b border-line px-2.5 py-1.5",children:[jsx("span",{className:"text-[11px] text-ink-3 tabular-nums",children:t("Trend snapshot")}),jsx("span",{className:"rounded-full bg-field px-2 py-0.5 text-[10.5px] font-medium text-ink-2",children:t("Snapshot")})]}),jsxs("div",{className:"insight-chart-stage relative h-[166px]",onPointerDown:d=>l>1&&r(wr(d,l)),onPointerMove:d=>l>1&&r(wr(d,l)),onPointerLeave:()=>r(null),onPointerCancel:()=>r(null),onPointerUp:()=>r(null),children:[jsx(Liveline,{data:[],value:0,series:s,theme:o?"dark":"light",grid:false,pulse:false,window:42,paused:true,scrub:false,cursor:"default",lineWidth:2.25,padding:{top:40,right:0,bottom:22,left:0},formatValue:Fi}),n!==null&&jsxs(Fragment,{children:[jsx("span",{className:"insight-chart-cursor",style:{left:`${n/(l-1)*100}%`}}),jsx("span",{className:"insight-chart-tooltip-anchor",style:{left:`${Math.min(Math.max(n/(l-1)*100,28),72)}%`},children:jsx(ml,{rows:e.map((d,u)=>({label:d.name,value:Fi(a[u][n]?.value??a[u].at(-1)?.value??0),color:d.tooltipColor}))})})]})]})]})]})}i(Gm,"CompareCard");var qm={spend:[],usage:[]};function Km({data:e=qm,title:t}){let o=oe(),n=useMonkeysResolvedTheme(),r=ul(),[a,l]=useState("spend"),s=useRef(null),[d,u]=useState();useLayoutEffect(()=>{s.current&&u(getComputedStyle(s.current).getPropertyValue("--bui-chart-alert").trim()||void 0);},[r,n]);let[m,c]=useState(null),p=useMemo(()=>Oi(e.spend,7),[e]),h=useMemo(()=>Oi(e.usage,7),[e]),v=a==="spend"?p:h,w=v.at(-1)?.value??0,g=a==="spend"?e.spendThreshold??"":e.usageThreshold??"",f=yr(p.at(-1)?.value??0);return jsxs("div",{className:"min-h-[278px] rounded-card bg-surface p-3 shadow-hairline",children:[jsxs("div",{className:"flex items-center justify-between",children:[jsxs("span",{className:"flex items-center gap-1.5 text-[12px] font-medium text-ink",children:[jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-red)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M12 19V5M5 12l7-7 7 7"})}),t??o("Anomaly")]}),jsx("span",{className:"rounded-full bg-field px-2 py-0.5 text-[10.5px] font-medium text-ink-2",children:o("Snapshot")})]}),jsxs("div",{className:"mt-2 overflow-hidden rounded-control bg-inset shadow-hairline",children:[jsxs("div",{className:"flex items-center justify-between border-b border-line px-2.5 py-1.5",children:[jsx("span",{className:"text-[11px] text-ink-3 tabular-nums",children:m!==null?a==="spend"?yr(v[m]?.value??w):`${Math.round(v[m]?.value??w)} kWh`:`${g} threshold`}),jsx("span",{className:"flex rounded-full bg-field p-0.5",children:["spend","usage"].map(x=>jsx("button",{type:"button","aria-pressed":a===x,onClick:()=>l(x),className:`rounded-[var(--bui-radius-pill)] px-2 py-0.5 text-[10.5px] font-medium transition-[background-color,color,box-shadow,transform] duration-150 active:scale-[0.96] ${a===x?"bg-surface text-ink shadow-btn":"text-ink-3 hover:text-ink-2"}`,children:o(x==="spend"?"Spend":"Usage")},x))})]}),jsxs("div",{ref:s,className:"insight-chart-stage relative h-[166px]",onPointerDown:x=>v.length>1&&c(wr(x,v.length)),onPointerMove:x=>v.length>1&&c(wr(x,v.length)),onPointerLeave:()=>c(null),onPointerCancel:()=>c(null),onPointerUp:()=>c(null),children:[jsx(Liveline,{data:v,value:w,theme:r?"dark":"light",color:d,grid:true,scrub:false,fill:false,pulse:false,momentum:false,paused:true,window:49,lineWidth:2.25,cursor:"crosshair",padding:{top:34,right:0,bottom:22,left:0},formatValue:x=>a==="spend"?yr(x):`${Math.round(x)} kWh`}),m!==null&&jsxs(Fragment,{children:[jsx("span",{className:"insight-chart-cursor",style:{left:`${m/(v.length-1)*100}%`}}),jsx("span",{className:"insight-chart-tooltip-anchor",style:{left:`${Math.min(Math.max(m/(v.length-1)*100,28),72)}%`},children:jsx(ml,{rows:[{label:a==="spend"?"Spend":"Usage",value:a==="spend"?yr(v[m]?.value??w):`${Math.round(v[m]?.value??w)} kWh`,color:"var(--bui-red)"}]})})]})]})]}),jsxs("div",{className:"mt-1.5 flex items-baseline gap-2",children:[jsxs("span",{className:"text-[17px] font-semibold tracking-[-0.01em] text-ink tabular-nums",children:[f," ",o("spent")]}),jsx(pl,{tone:"red",children:e.comparison??""}),jsx("span",{className:"text-[11px] text-ink-3",children:e.comparisonPeriod??""})]})]})}i(Km,"AnomalyCard");var Xm=[];function Ym({segments:e=Xm,title:t,description:o}){let n=oe(),[r,a]=useState(e[0]?.name),l=e.find(s=>s.name===r)??e[0];return jsxs("div",{className:"min-h-[278px] rounded-card bg-surface p-3 shadow-hairline",children:[jsxs("span",{className:"flex items-center gap-1.5 text-[12px] font-medium text-ink",children:[jsx("span",{className:"flex size-3.5 items-center justify-center rounded-full bg-orange text-[8px] font-bold text-white",children:n("V")}),t??n("Allocation")]}),jsx("span",{className:"mt-1 block text-[20px] font-semibold tracking-[-0.01em] text-ink tabular-nums",children:l?.amount??""}),jsx("div",{className:"mt-3 flex h-9 gap-0.5 overflow-hidden rounded-full bg-field p-0.5",role:"group","aria-label":n("Allocation segments"),children:e.map(s=>jsx("button",{type:"button","aria-pressed":r===s.name,"aria-label":`${s.label}: ${s.pct}%`,onClick:()=>a(s.name),className:`relative h-full overflow-hidden rounded-[var(--bui-radius-pill)] ${s.cls} transition-[opacity,transform,box-shadow] duration-300 active:scale-[0.98]`,style:{width:`${s.pct}%`,opacity:r===s.name?1:.58,boxShadow:r===s.name?"inset 0 0 0 1px var(--bui-allocation-highlight)":void 0,transitionTimingFunction:dl},children:jsx("span",{className:"absolute inset-y-1 left-1 rounded-full bg-white/20 transition-[width,opacity] duration-500",style:{width:r===s.name?"calc(100% - 8px)":"0%",opacity:r===s.name?1:0,transitionTimingFunction:dl}})},s.name))}),jsx("div",{className:"mt-2 flex items-center gap-1.5",children:e.map(s=>jsxs("button",{type:"button","aria-pressed":r===s.name,onClick:()=>a(s.name),className:`flex items-center gap-1 rounded-[var(--bui-radius-pill)] px-1.5 py-0.5 text-[11px] transition-[background-color,color,transform] duration-150 active:scale-[0.96] ${r===s.name?"bg-field text-ink":"text-ink-2 hover:bg-hover hover:text-ink"}`,children:[jsx("span",{className:`size-1.5 rounded-full ${s.cls}`}),s.name," ",jsxs("span",{className:"tabular-nums",children:[s.pct,"%"]})]},s.name))}),jsxs("div",{className:"mt-3 min-h-16 rounded-control bg-inset px-2.5 py-2 shadow-hairline",children:[jsx("span",{className:`block text-[11.5px] font-medium ${l?.tone??""}`,children:l?.label??""}),jsx("span",{className:"mt-1 block text-[11px] leading-relaxed text-ink-3",children:o})]})]})}i(Ym,"AllocationCard");var Qm=[],Zm={title:"Insights"};function Jm({pages:e=Qm,onFollowUp:t,labels:o}){let n=oe(),r=Te(Zm,o),[a,l]=useState(0),s=i(c=>{l(p=>(p+c+e.length)%e.length);},"move"),d=e[a]??e[0];if(!d)return null;let{prose:u,pill:m}=d;return jsx(U,{children:jsxs("div",{className:"min-h-[408px] w-full max-w-86",children:[jsxs("div",{className:"flex items-center justify-between",children:[jsxs("span",{className:"flex items-baseline gap-1.5",children:[jsx("span",{className:"text-[13px] font-semibold text-ink",children:r.title}),jsx("span",{className:"text-[13px] text-ink-3 tabular-nums",children:e.length})]}),jsx("span",{className:"flex items-center gap-0.5",children:["M15 18l-6-6 6-6","M9 6l6 6-6 6"].map((c,p)=>jsx("button",{"aria-label":n(p===0?"Previous insight":"Next insight"),onClick:()=>s(p===0?-1:1),className:`flex size-6 items-center justify-center rounded-[var(--bui-radius-chip)] text-ink-3
|
|
207
|
+
${Z?"shadow-[0_0_0_1.5px_var(--bui-accent),0_2px_10px_rgba(0,0,0,0.045)]":"shadow-card hover:shadow-raised"}`,children:jsx(zi,{title:k.title,caption:k.caption,icon:jsx(ll,{}),hue:k.hue,input:false,output:false})})]},k.id)})]})})}i(Fm,"BUIFlowchart");var dl="cubic-bezier(0.16, 1, 0.3, 1)",Fi=i(e=>`${e>0?"+":""}${e.toFixed(2)}%`,"formatPercent"),yr=i(e=>`$${Math.round(e).toLocaleString("en-US")}`,"formatMoney");function Oi(e,t=6){let o=Math.floor(Date.now()/1e3);return e.map((n,r)=>({time:o-(e.length-1-r)*t,value:n}))}i(Oi,"makePoints");function Vm(e,t=9){if(e.length<3)return e.slice();let o=[],n=e.length;for(let r=0;r<n-1;r+=1){let a=e[Math.max(0,r-1)],l=e[r],s=e[r+1],d=e[Math.min(n-1,r+2)];for(let u=0;u<t;u+=1){let m=u/t,c=m*m,p=c*m;o.push(.5*(2*l+(-a+s)*m+(2*a-5*l+4*s-d)*c+(-a+3*l-3*s+d)*p));}}return o.push(e[n-1]),o}i(Vm,"smooth");function Wm(e,t){let o=Vm(e);return Oi(o,o.length>1?t/(o.length-1):0)}i(Wm,"smoothPoints");var ul=Ea;function pl({children:e,tone:t}){return jsx("code",{className:`font-mono text-[11.5px] ${t==="red"?"text-red":"text-green"}`,children:e})}i(pl,"Mono");function wr(e,t){let o=e.currentTarget.getBoundingClientRect(),n=Math.max(0,Math.min(1,(e.clientX-o.left)/o.width));return Math.round(n*(t-1))}i(wr,"chartIndexFromPointer");function ml({rows:e}){return jsx("div",{className:"insight-chart-tooltip",children:e.map(t=>jsxs("span",{className:"insight-chart-tooltip-item",children:[jsx("span",{className:"insight-chart-tooltip-dot",style:{background:t.color}}),t.value]},t.label))})}i(ml,"ChartTooltip");var jm=[];function Gm({series:e=jm}){let t=oe(),o=ul(),[n,r]=useState(null),a=useMemo(()=>e.map(d=>Wm(d.values,42)),[e]),l=a[0]?.length??0,s=useMemo(()=>e.map((d,u)=>({id:d.name,label:"",data:a[u],value:a[u].at(-1)?.value??d.values.at(-1)??0,color:d.color})),[e,a]);return jsxs("div",{className:"min-h-[278px] rounded-card bg-surface p-3 shadow-hairline",children:[jsx("div",{className:"flex items-center gap-4",children:e.map((d,u)=>jsxs("div",{className:"flex-1",children:[jsxs("span",{className:"flex items-center gap-1.5 text-[11.5px] text-ink-2",children:[jsx("span",{className:`size-2 rounded-full ${d.dot}`}),d.name]}),jsx("span",{className:`block text-[17px] font-semibold tracking-[-0.01em] tabular-nums ${d.tone==="red"?"text-red":"text-green"}`,children:Fi(a[u].at(-1)?.value??d.values.at(-1)??0)}),jsx(pl,{tone:d.tone,children:d.sub})]},d.name))}),jsxs("div",{className:"mt-2 overflow-hidden rounded-control bg-inset shadow-hairline",children:[jsxs("div",{className:"flex items-center justify-between border-b border-line px-2.5 py-1.5",children:[jsx("span",{className:"text-[11px] text-ink-3 tabular-nums",children:t("Trend snapshot")}),jsx("span",{className:"rounded-full bg-field px-2 py-0.5 text-[10.5px] font-medium text-ink-2",children:t("Snapshot")})]}),jsxs("div",{className:"insight-chart-stage relative h-[166px]",onPointerDown:d=>l>1&&r(wr(d,l)),onPointerMove:d=>l>1&&r(wr(d,l)),onPointerLeave:()=>r(null),onPointerCancel:()=>r(null),onPointerUp:()=>r(null),children:[jsx(Liveline,{data:[],value:0,series:s,theme:o?"dark":"light",grid:false,pulse:false,window:42,paused:true,scrub:false,cursor:"default",lineWidth:2.25,padding:{top:40,right:0,bottom:22,left:0},formatValue:Fi}),n!==null&&jsxs(Fragment,{children:[jsx("span",{className:"insight-chart-cursor",style:{left:`${n/(l-1)*100}%`}}),jsx("span",{className:"insight-chart-tooltip-anchor",style:{left:`${Math.min(Math.max(n/(l-1)*100,28),72)}%`},children:jsx(ml,{rows:e.map((d,u)=>({label:d.name,value:Fi(a[u][n]?.value??a[u].at(-1)?.value??0),color:d.tooltipColor}))})})]})]})]})]})}i(Gm,"CompareCard");var qm={spend:[],usage:[]};function Km({data:e=qm,title:t}){let o=oe(),n=useMonkeysResolvedTheme(),r=ul(),[a,l]=useState("spend"),s=useRef(null),[d,u]=useState();useLayoutEffect(()=>{s.current&&u(getComputedStyle(s.current).getPropertyValue("--bui-chart-alert").trim()||void 0);},[r,n]);let[m,c]=useState(null),p=useMemo(()=>Oi(e.spend,7),[e]),h=useMemo(()=>Oi(e.usage,7),[e]),v=a==="spend"?p:h,w=v.at(-1)?.value??0,g=a==="spend"?e.spendThreshold??"":e.usageThreshold??"",f=yr(p.at(-1)?.value??0);return jsxs("div",{className:"min-h-[278px] rounded-card bg-surface p-3 shadow-hairline",children:[jsxs("div",{className:"flex items-center justify-between",children:[jsxs("span",{className:"flex items-center gap-1.5 text-[12px] font-medium text-ink",children:[jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-red)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M12 19V5M5 12l7-7 7 7"})}),t??o("Anomaly")]}),jsx("span",{className:"rounded-full bg-field px-2 py-0.5 text-[10.5px] font-medium text-ink-2",children:o("Snapshot")})]}),jsxs("div",{className:"mt-2 overflow-hidden rounded-control bg-inset shadow-hairline",children:[jsxs("div",{className:"flex items-center justify-between border-b border-line px-2.5 py-1.5",children:[jsx("span",{className:"text-[11px] text-ink-3 tabular-nums",children:m!==null?a==="spend"?yr(v[m]?.value??w):`${Math.round(v[m]?.value??w)} kWh`:`${g} threshold`}),jsx("span",{className:"flex rounded-full bg-field p-0.5",children:["spend","usage"].map(x=>jsx("button",{type:"button","aria-pressed":a===x,onClick:()=>l(x),className:`rounded-[var(--bui-radius-pill)] px-2 py-0.5 text-[10.5px] font-medium transition-[background-color,color,box-shadow,transform] duration-150 active:scale-[0.96] ${a===x?"bg-surface text-ink shadow-btn":"text-ink-3 hover:text-ink-2"}`,children:o(x==="spend"?"Spend":"Usage")},x))})]}),jsxs("div",{ref:s,className:"insight-chart-stage relative h-[166px]",onPointerDown:x=>v.length>1&&c(wr(x,v.length)),onPointerMove:x=>v.length>1&&c(wr(x,v.length)),onPointerLeave:()=>c(null),onPointerCancel:()=>c(null),onPointerUp:()=>c(null),children:[jsx(Liveline,{data:v,value:w,theme:r?"dark":"light",color:d,grid:true,scrub:false,fill:false,pulse:false,momentum:false,paused:true,window:49,lineWidth:2.25,cursor:"crosshair",padding:{top:34,right:0,bottom:22,left:0},formatValue:x=>a==="spend"?yr(x):`${Math.round(x)} kWh`}),m!==null&&jsxs(Fragment,{children:[jsx("span",{className:"insight-chart-cursor",style:{left:`${m/(v.length-1)*100}%`}}),jsx("span",{className:"insight-chart-tooltip-anchor",style:{left:`${Math.min(Math.max(m/(v.length-1)*100,28),72)}%`},children:jsx(ml,{rows:[{label:a==="spend"?"Spend":"Usage",value:a==="spend"?yr(v[m]?.value??w):`${Math.round(v[m]?.value??w)} kWh`,color:"var(--bui-red)"}]})})]})]})]}),jsxs("div",{className:"mt-1.5 flex items-baseline gap-2",children:[jsxs("span",{className:"text-[17px] font-semibold tracking-[-0.01em] text-ink tabular-nums",children:[f," ",o("spent")]}),jsx(pl,{tone:"red",children:e.comparison??""}),jsx("span",{className:"text-[11px] text-ink-3",children:e.comparisonPeriod??""})]})]})}i(Km,"AnomalyCard");var Xm=[];function Ym({segments:e=Xm,title:t,description:o}){let n=oe(),[r,a]=useState(e[0]?.name),l=e.find(s=>s.name===r)??e[0];return jsxs("div",{className:"min-h-[278px] rounded-card bg-surface p-3 shadow-hairline",children:[jsxs("span",{className:"flex items-center gap-1.5 text-[12px] font-medium text-ink",children:[jsx("span",{className:"flex size-3.5 items-center justify-center rounded-full bg-orange text-[8px] font-bold text-white",children:n("V")}),t??n("Allocation")]}),jsx("span",{className:"mt-1 block text-[20px] font-semibold tracking-[-0.01em] text-ink tabular-nums",children:l?.amount??""}),jsx("div",{className:"mt-3 flex h-9 gap-0.5 overflow-hidden rounded-full bg-field p-0.5",role:"group","aria-label":n("Allocation segments"),children:e.map(s=>jsx("button",{type:"button","aria-pressed":r===s.name,"aria-label":`${s.label}: ${s.pct}%`,onClick:()=>a(s.name),className:`relative h-full overflow-hidden rounded-[var(--bui-radius-pill)] ${s.cls} transition-[opacity,transform,box-shadow] duration-300 active:scale-[0.98]`,style:{width:`${s.pct}%`,opacity:r===s.name?1:.58,boxShadow:r===s.name?"inset 0 0 0 1px var(--bui-allocation-highlight)":void 0,transitionTimingFunction:dl},children:jsx("span",{className:"absolute inset-y-1 left-1 rounded-full bg-white/20 transition-[width,opacity] duration-500",style:{width:r===s.name?"calc(100% - 8px)":"0%",opacity:r===s.name?1:0,transitionTimingFunction:dl}})},s.name))}),jsx("div",{className:"mt-2 flex items-center gap-1.5",children:e.map(s=>jsxs("button",{type:"button","aria-pressed":r===s.name,onClick:()=>a(s.name),className:`flex items-center gap-1 rounded-[var(--bui-radius-pill)] px-1.5 py-0.5 text-[11px] transition-[background-color,color,transform] duration-150 active:scale-[0.96] ${r===s.name?"bg-field text-ink":"text-ink-2 hover:bg-hover hover:text-ink"}`,children:[jsx("span",{className:`size-1.5 rounded-full ${s.cls}`}),s.name," ",jsxs("span",{className:"tabular-nums",children:[s.pct,"%"]})]},s.name))}),jsxs("div",{className:"mt-3 min-h-16 rounded-control bg-inset px-2.5 py-2 shadow-hairline",children:[jsx("span",{className:`block text-[11.5px] font-medium ${l?.tone??""}`,children:l?.label??""}),jsx("span",{className:"mt-1 block text-[11px] leading-relaxed text-ink-3",children:o})]})]})}i(Ym,"AllocationCard");var Qm=[],Zm={title:"Insights"};function Jm({pages:e=Qm,onFollowUp:t,labels:o}){let n=oe(),r=Te(Zm,o),[a,l]=useState(0),s=i(c=>{l(p=>(p+c+e.length)%e.length);},"move"),d=e[a]??e[0];if(!d)return null;let{prose:u,pill:m}=d;return jsx(U,{children:jsxs("div",{className:"min-h-[408px] w-full max-w-86",children:[jsxs("div",{className:"flex items-center justify-between",children:[jsxs("span",{className:"flex items-baseline gap-1.5",children:[jsx("span",{className:"text-[13px] font-semibold text-ink",children:r.title}),jsx("span",{className:"text-[13px] text-ink-3 tabular-nums",children:e.length})]}),jsx("span",{className:"flex items-center gap-0.5",children:["M15 18l-6-6 6-6","M9 6l6 6-6 6"].map((c,p)=>jsx("button",{"aria-label":n(p===0?"Previous insight":"Next insight"),onClick:()=>s(p===0?-1:1),className:`flex size-6 items-center justify-center rounded-[var(--bui-radius-chip)] text-ink-3
|
|
208
208
|
transition-[background-color,color,transform] duration-100 hover:bg-hover
|
|
209
209
|
hover:text-ink active:scale-[0.96]`,children:jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:c})})},p))})]}),jsxs("div",{className:"transition-[opacity,filter] duration-250",style:{opacity:1,filter:"blur(0)"},children:[jsx("p",{className:"mt-1.5 text-[12.5px] leading-relaxed text-ink-2",children:u}),jsx("div",{className:"mt-2",children:d.kind==="compare"?jsx(Gm,{series:d.series}):d.kind==="anomaly"?jsx(Km,{data:d.anomaly,title:d.title}):jsx(Ym,{segments:d.segments,title:d.title,description:d.description})}),jsx("button",{className:`mt-2 rounded-[var(--bui-radius-pill)] bg-surface px-3 py-1.5 text-left text-[12px] text-ink
|
|
210
|
-
shadow-btn transition-colors duration-100 hover:bg-hover`,children:m})]})]})})}i(Jm,"BUIInsightCards");function rg({groups:e,onSelect:t,trigger:o,anchorRef:n,uploadContent:r,triggerLabel:a="\u6DFB\u52A0\u5185\u5BB9",emptyLabel:l="\u6682\u65E0\u53EF\u7528\u64CD\u4F5C",disabled:s=false,open:d,defaultOpen:u=false,onOpenChange:m,styles:c,classNames:p}){let[h,v]=useState(u),w=
|
|
211
|
-
text-left transition-colors duration-100 hover:bg-hover`,children:[jsx(hl,{signal:c.signal,tone:c.tone}),jsx("span",{className:"min-w-0 flex-1 truncate text-[12.5px] text-ink",children:c.short}),jsx("span",{className:"shrink-0 text-[11px] text-ink-3",children:c.label})]},c.key))]})})}),jsxs("div",{className:"primitive-card-footer flex items-center justify-between gap-3 bg-surface",children:[jsxs("span",{className:"flex items-center gap-2",children:[jsx(hl,{signal:u.signal,tone:u.tone}),jsx("span",{className:"text-[12.5px] font-medium text-ink-2",children:u.label})]}),jsxs("span",{className:"-mr-0.5 flex items-center gap-2",children:[jsx(Me,{variant:"secondary",size:"sm","aria-expanded":s,onClick:()=>d(c=>!c),className:"px-2.5 text-[12.5px]",children:r.alternatives}),jsx(Me,{variant:o?"success":u.ctaVariant,size:"sm",onClick:()=>n?.(u.key??String(a)),className:"text-[12.5px]",children:o?r.accepted:u.cta})]})]})]})}):null}i(sg,"BUIRecommendationCard");var Hi={company:270,categories:275,last:190,strength:210,links:175,ai:240},$r={strong:{label:"Very strong",color:"var(--bui-green)",rank:3},weak:{label:"Weak",color:"var(--bui-orange)",rank:2},veryweak:{label:"Very weak",color:"var(--bui-red)",rank:1},none:{label:"No communication",color:"var(--bui-ink-3)",rank:0}};var dg=[];function xe({children:e,size:t=14,strokeWidth:o=1.8}){return jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e})}i(xe,"Icon");var Zt={Text:jsx("path",{d:"M4 6h16M4 12h10M4 18h7"}),File:jsxs("g",{children:[jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsx("path",{d:"M14 2v6h6"})]}),Collection:jsxs("g",{children:[jsx("ellipse",{cx:"12",cy:"5",rx:"8",ry:"3"}),jsx("path",{d:"M4 5v14c0 1.66 3.58 3 8 3s8-1.34 8-3V5M4 12c0 1.66 3.58 3 8 3s8-1.34 8-3"})]}),"Single select":jsxs("g",{children:[jsx("circle",{cx:"12",cy:"12",r:"9"}),jsx("path",{d:"m8.5 12 2.4 2.4 4.6-4.9"})]}),"Multi select":jsxs("g",{children:[jsx("path",{d:"M11 6h9M11 12h9M11 18h9"}),jsx("path",{d:"M4 6l1.5 1.5L8 5M4 12l1.5 1.5L8 11M4 18l1.5 1.5L8 17"})]}),URL:jsxs("g",{children:[jsx("path",{d:"M10 13a5 5 0 0 0 7.1.1l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1"}),jsx("path",{d:"M14 11a5 5 0 0 0-7.1-.1l-2 2A5 5 0 0 0 12 20l1.1-1.1"})]}),Reference:jsx("path",{d:"M7 17 17 7M9 7h8v8"}),JSON:jsxs("g",{children:[jsx("path",{d:"M8 4c-2 0-2 2-2 3s.5 3-2 3c2.5 0 2 2 2 3s0 3 2 3"}),jsx("path",{d:"M16 4c2 0 2 2 2 3s-.5 3 2 3c-2.5 0-2 2-2 3s0 3-2 3"})]}),"File splitter":jsxs("g",{children:[jsx("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),jsx("path",{d:"M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"})]}),Date:jsxs("g",{children:[jsx("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2.5"}),jsx("path",{d:"M8 3v4M16 3v4M3 10h18"})]})},Vi={model:jsx("path",{d:"M12 3l1.7 5.1a2 2 0 0 0 1.2 1.2L20 11l-5.1 1.7a2 2 0 0 0-1.2 1.2L12 19l-1.7-5.1a2 2 0 0 0-1.2-1.2L4 11l5.1-1.7a2 2 0 0 0 1.2-1.2z"}),web:jsxs("g",{children:[jsx("circle",{cx:"12",cy:"12",r:"9"}),jsx("path",{d:"M3 12h18M12 3a13.5 13.5 0 0 1 3.5 9 13.5 13.5 0 0 1-3.5 9 13.5 13.5 0 0 1-3.5-9A13.5 13.5 0 0 1 12 3z"})]}),user:jsxs("g",{children:[jsx("circle",{cx:"12",cy:"8",r:"4"}),jsx("path",{d:"M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1"})]})};var bl=["Text","File","Collection","Single select","Multi select","URL","Reference","JSON","File splitter"];function vl({checked:e,mixed:t=false,onChange:o,label:n}){return jsxs("label",{className:"records-checkbox",title:n,onClick:r=>r.stopPropagation(),children:[jsx("input",{type:"checkbox",checked:e,onChange:o,"aria-label":n}),jsx("span",{className:`records-checkbox-box ${e||t?"is-active":""}`,children:t?jsx("span",{className:"records-checkbox-dash"}):e?jsx(xe,{size:12,children:jsx("path",{d:"m5 12 4 4L19 6"})}):null})]})}i(vl,"Checkbox");function yl({name:e,colors:t}){let o=t[e]??{base:"var(--bui-ink-3)"};return jsx("span",{className:"records-tag",style:{"--bui-tag-base":o.base},children:e})}i(yl,"Tag");function cg({tags:e,colors:t}){let o=oe(),n=useRef(null),r=useRef(null),[a,l]=useState(e.length);useLayoutEffect(()=>{let d=n.current,u=r.current;if(!d||!u)return;let m=i(()=>{let p=d.clientWidth,h=Array.from(u.querySelectorAll("[data-tag-measure]"),f=>f.offsetWidth),v=u.querySelector("[data-more-measure]")?.offsetWidth??0,w=0,g=0;for(let f=0;f<h.length;f+=1){let x=w+(g>0?4:0)+h[f],y=e.length-(f+1);if(x+(y>0?4+v:0)>p)break;w=x,g+=1;}l(g);},"update");m();let c=new ResizeObserver(m);return c.observe(d),()=>c.disconnect()},[e]);let s=e.length-a;return jsxs("div",{ref:n,className:"records-tags",title:e.join(", "),"aria-label":o("Categories: {categories}",{categories:e.join(", ")}),children:[jsxs("div",{ref:r,className:"records-tags-measure","aria-hidden":true,children:[e.map(d=>jsx("span",{"data-tag-measure":true,children:jsx(yl,{name:d,colors:t})},d)),jsxs("span",{"data-more-measure":true,className:"records-more-tag",children:["+",e.length]})]}),e.slice(0,a).map(d=>jsx(yl,{name:d,colors:t},d)),s>0&&jsxs("span",{className:"records-more-tag",children:["+",s]})]})}i(cg,"TagList");function Mn(){let e=oe();return jsxs("span",{className:"records-calc",children:[jsx("span",{className:"records-muted",children:e("Calculating\u2026")}),jsx("span",{className:"records-pulse"})]})}i(Mn,"CalcCell");function Sr({on:e,onToggle:t,label:o}){return jsx("button",{type:"button",role:"switch","aria-checked":e,"aria-label":o,onClick:t,className:"relative h-4.5 w-7.5 shrink-0 rounded-[var(--bui-radius-pill)] transition-colors duration-150",style:{background:e?"var(--bui-accent)":"var(--bui-line-strong)"},children:jsx("span",{className:"absolute top-0.5 left-0.5 size-3.5 rounded-full bg-white shadow-btn transition-transform duration-150",style:{transform:e?"translateX(12px)":"translateX(0)",transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"}})})}i(Sr,"MiniSwitch");function Cr({label:e,icon:t,sortKey:o,sort:n,onSort:r,onResizeStart:a,resizing:l=false,className:s="",selected:d=false,onPick:u}){let m=oe();return jsxs("th",{className:`records-header-cell ${d?"is-colsel":""} ${s}`,children:[jsxs("button",{type:"button",className:"records-header-button",onClick:u,children:[jsx("span",{className:"records-header-icon",children:t}),jsx("span",{className:"truncate",children:e}),o&&jsx("span",{role:"button",tabIndex:0,"aria-label":m("Sort by {label}",{label:e}),onClick:c=>{c.stopPropagation(),r(o);},onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),c.stopPropagation(),r(o));},className:`records-sort ${n.key===o?"is-visible":""}`,style:{transform:n.key===o&&n.dir===-1?"rotate(180deg)":void 0},children:jsx(xe,{size:12,children:jsx("path",{d:"M12 5v14M5 12l7 7 7-7"})})})]}),jsx("span",{role:"separator","aria-orientation":"vertical","aria-label":m("Resize {label} column",{label:e}),className:`records-resize-handle ${l?"is-resizing":""}`,onPointerDown:a})]})}i(Cr,"HeaderCell");function Bo({label:e,children:t}){return jsxs("div",{className:"relative flex h-8 items-center justify-between",children:[jsx("span",{className:"text-[13px] text-ink-3",children:e}),t]})}i(Bo,"ConfigRow");function xl({label:e,options:t,selected:o,onSelect:n}){return jsxs("div",{role:"menu","aria-label":e,className:"absolute left-full top-0 z-30 ml-5 w-[210px] rounded-[12px] bg-surface p-1.5 shadow-overlay",style:{animation:"bui-pop-in 140ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top left"},children:[jsx("div",{className:"px-2 pb-1 pt-0.5 text-[11.5px] font-medium text-ink-3",children:e}),jsx(tt,{className:"flex flex-col gap-px",children:t.map(r=>jsxs("button",{"data-menu-row":true,type:"button",role:"menuitemradio","aria-checked":o===r.label,onClick:()=>n(r.label),className:"relative z-10 flex h-8 w-full items-center gap-1.5 rounded-[var(--bui-radius-control)] px-1.5 text-left text-[13px] font-medium text-ink",children:[jsx("span",{className:"flex size-4 shrink-0 items-center justify-center text-ink-2",children:r.icon}),jsx("span",{className:"min-w-0 flex-1 truncate",children:r.label}),jsx("span",{className:o===r.label?"text-ink":"invisible",children:jsx(xe,{size:14,strokeWidth:2.2,children:jsx("path",{d:"m5 12 4 4L19 6"})})})]},r.label))})]})}i(xl,"ConfigPicker");function ug({options:e,selected:t,onToggle:o}){let n=oe();return jsxs("div",{role:"menu","aria-label":n("Calculation inputs"),className:"absolute left-full top-0 z-30 ml-5 w-[220px] rounded-[12px] bg-surface p-1.5 shadow-overlay",style:{animation:"bui-pop-in 140ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top left"},children:[jsx("div",{className:"px-2 pb-1 pt-0.5 text-[11.5px] font-medium text-ink-3",children:n("Use values from")}),jsx(tt,{className:"flex flex-col gap-px",children:e.map(r=>{let a=t.includes(r);return jsxs("button",{"data-menu-row":true,type:"button",role:"menuitemcheckbox","aria-checked":a,onClick:()=>o(r),className:"relative z-10 flex h-8 w-full items-center gap-1.5 rounded-[var(--bui-radius-control)] px-1.5 text-left text-[13px] font-medium text-ink",children:[jsx("span",{className:`flex size-4 shrink-0 items-center justify-center rounded-[5px] border ${a?"border-accent bg-accent text-white":"border-line-strong text-transparent"}`,children:jsx(xe,{size:11,strokeWidth:2.4,children:jsx("path",{d:"m5 12 4 4L19 6"})})}),jsx("span",{className:"min-w-0 flex-1 truncate",children:r})]},r)})})]})}i(ug,"InputPicker");function pg({rows:e=dg,fill:t=false,tagColors:o={},columnMeta:n={},models:r=[],inputs:a=[],resultLabel:l="Result",results:s={},calculation:d=null,onRun:u,onSelectionChange:m}){let c=oe(),[p,h]=useState(new Set),[v,w]=useState({key:"name",dir:1}),[g,f]=useState(Hi),[x,y]=useState(100),[$,N]=useState(false),[T,S]=useState(null),A=useRef(null),O=useRef(null),L=useRef(null);useEffect(()=>()=>L.current?.(),[]);let[I,k]=useState(null),R=useRef({}),[z,_]=useState(false),[X,Z]=useState(false),[F,J]=useState(null),[B,te]=useState({}),[ee,pe]=useState({}),[se,M]=useState(new Set),[H,E]=useState(false),[j,le]=useState({required:false,allowEmpty:true,confidence:false}),[re,de]=useState(null),[Ee,q]=useState(null),[ge,Xe]=useState(false),qt=Object.keys(s).length>0,[Se,mt]=useState(false),Ut=useRef(null),ro=useRef(false);useLayoutEffect(()=>{if($||!O.current)return;let C=Array.from(O.current.querySelectorAll("thead th"));if(C.length<6)return;let Y={company:C[0].getBoundingClientRect().width,categories:C[1].getBoundingClientRect().width,last:C[2].getBoundingClientRect().width,strength:C[3].getBoundingClientRect().width,links:C[4].getBoundingClientRect().width,ai:Hi.ai};A.current=Y,f(Y),y(C[C.length-1].getBoundingClientRect().width),N(true);},[$]);let Ft=useMemo(()=>[...e].sort((C,Y)=>(v.key==="name"?C.name.localeCompare(Y.name):v.key==="last"?C.last.localeCompare(Y.last):$r[C.strength].rank-$r[Y.strength].rank)*v.dir),[e,v]);useEffect(()=>{if(!Se||!Ut.current)return;let C=Ut.current.closest(".records-scroll");C&&(ro.current=true,C.scrollLeft=C.scrollWidth);let Y=Ut.current.getBoundingClientRect();k({col:l,x:Math.min(Y.left,window.innerWidth-336),y:Y.bottom+6}),mt(false);},[Se,ge]),useEffect(()=>{if(!I&&!re&&!Ee)return;let C=i(Y=>{Y.target.closest("[data-recpop]")||(k(null),J(null),Z(false),E(false),de(null),q(null));},"close");return document.addEventListener("pointerdown",C),()=>document.removeEventListener("pointerdown",C)},[I,re,Ee]);let G=i(C=>Y=>{let Oe=Y.currentTarget.closest("th");Oe&&(de(null),q(null),J(null),Z(false),E(false),k(Nt=>{if(Nt?.col===C)return null;let Mt=Oe.getBoundingClientRect();return {col:C,x:Math.min(Mt.left,window.innerWidth-336),y:Mt.bottom+6}}));},"openProp"),et=i((C,Y)=>!!d&&d.col===C&&Y>=d.resolved,"isCalc"),io=Ft.length>0&&Ft.every(C=>p.has(C.id)),dn=!io&&Ft.some(C=>p.has(C.id)),ao=i(C=>w(Y=>Y.key===C?{key:C,dir:Y.dir*-1}:{key:C,dir:1}),"toggleSort"),so=i((C,Y=120)=>Oe=>{Oe.preventDefault(),Oe.stopPropagation(),k(null),J(null),Z(false),E(false),de(null),q(null),L.current?.();let Nt=Oe.clientX,Mt=g[C],$o=document.body.style.cursor,un=document.body.style.userSelect;document.body.style.cursor="col-resize",document.body.style.userSelect="none",S(C);let Ct=i(So=>{let Ot=Math.max(Y,Mt+So.clientX-Nt);f(On=>({...On,[C]:Ot}));},"move"),st=i(()=>{window.removeEventListener("pointermove",Ct),window.removeEventListener("pointerup",st),window.removeEventListener("pointercancel",st),document.body.style.cursor=$o,document.body.style.userSelect=un,L.current=null,S(null);},"finish");L.current=st,window.addEventListener("pointermove",Ct),window.addEventListener("pointerup",st),window.addEventListener("pointercancel",st);},"startColumnResize"),cn=i(C=>{h(C),m?.([...C]);},"commitSelection"),Kr=i(C=>{let Y=new Set(p);Y.has(C)?Y.delete(C):Y.add(C),cn(Y);},"toggleRow"),Xr=i(()=>{let C=new Set(p);io?Ft.forEach(Y=>C.delete(Y.id)):Ft.forEach(Y=>C.add(Y.id)),cn(C);},"toggleAll"),Ce=I?{...n[I.col]??{type:"Text",tool:"Manual",toolKind:"user"},...B[I.col]}:null,Kt=I&&Ce?ee[I.col]??(Ce.inputs?[Ce.inputs]:[]):[],lo=g.company+g.categories+g.last+g.strength+g.links+(ge?g.ai:0)+x;return jsx(U,{children:jsxs("div",{className:`records-shell${t?" is-fill":""}`,children:[jsx("div",{className:"records-scroll",tabIndex:0,"aria-label":c("Companies table. Scroll horizontally and vertically to view all columns and records."),onScroll:()=>{if(ro.current){ro.current=false;return}k(null),J(null),Z(false),E(false),de(null),q(null);},children:jsxs("table",{ref:O,className:"records-table",style:{width:$?lo:"100%",minWidth:lo},children:[jsxs("colgroup",{children:[jsx("col",{className:"records-company-col",style:{width:g.company}}),jsx("col",{className:"records-category-col",style:{width:g.categories}}),jsx("col",{className:"records-last-col",style:{width:g.last}}),jsx("col",{className:"records-strength-col",style:{width:g.strength}}),jsx("col",{className:"records-link-col",style:{width:g.links}}),ge&&jsx("col",{style:{width:g.ai}}),jsx("col",{style:{width:100}})]}),jsx("thead",{children:jsxs("tr",{children:[jsxs("th",{className:`records-header-cell records-sticky-cell ${I?.col==="Company"?"is-colsel":""}`,children:[jsxs("div",{className:"records-company-header",style:{cursor:"pointer"},onClick:C=>G("Company")(C),children:[jsx(vl,{checked:io,mixed:dn,onChange:Xr,label:c("Select all companies")}),jsx("span",{children:c("Company")})]}),jsx("span",{role:"separator","aria-orientation":"vertical","aria-label":c("Resize Company column"),className:`records-resize-handle ${T==="company"?"is-resizing":""}`,onPointerDown:so("company",180)})]}),jsx(Cr,{label:c("Categories"),selected:I?.col==="Categories",onPick:G("Categories"),sort:v,onSort:ao,onResizeStart:so("categories"),resizing:T==="categories",icon:jsx(xe,{size:15,children:Zt["Multi select"]})}),jsx(Cr,{label:c("Last interaction"),selected:I?.col==="Last interaction",onPick:G("Last interaction"),sortKey:"last",sort:v,onSort:ao,onResizeStart:so("last"),resizing:T==="last",icon:jsx(xe,{size:15,children:Zt.Date})}),jsx(Cr,{label:c("Connection strength"),selected:I?.col==="Connection strength",onPick:G("Connection strength"),sortKey:"strength",sort:v,onSort:ao,onResizeStart:so("strength"),resizing:T==="strength",icon:jsx(xe,{size:15,children:Zt["Single select"]})}),jsx(Cr,{label:c("Links"),selected:I?.col==="Links",onPick:G("Links"),sort:v,onSort:ao,onResizeStart:so("links"),resizing:T==="links",icon:jsx(xe,{size:15,children:Zt.URL})}),ge&&jsxs("th",{ref:Ut,className:`records-header-cell ${I?.col===l?"is-colsel":""}`,children:[jsxs("button",{type:"button",className:"records-header-button",onClick:G(l),children:[jsx("span",{className:"records-header-icon",children:jsx(xe,{size:15,children:Zt.Text})}),jsx("span",{className:"truncate",children:l})]}),jsx("span",{role:"separator","aria-orientation":"vertical","aria-label":c("Resize {label} column",{label:l}),className:`records-resize-handle ${T==="ai"?"is-resizing":""}`,onPointerDown:so("ai")})]}),jsx("th",{className:"records-header-cell",children:jsxs("div",{className:"flex h-[35px] items-center gap-1 px-2",children:[jsx("button",{type:"button","aria-label":c("New property"),"data-recpop":true,onClick:C=>{k(null),q(null);let Y=C.currentTarget.getBoundingClientRect();de(Oe=>Oe?null:{x:Math.min(Y.left,window.innerWidth-276),y:Y.bottom+6});},className:"flex size-7 items-center justify-center rounded-[var(--bui-radius-scale-7)] text-ink-2 transition-colors duration-100 hover:bg-hover hover:text-ink",children:jsx(xe,{size:15,strokeWidth:2,children:jsx("path",{d:"M12 5v14M5 12h14"})})}),jsx("button",{type:"button","aria-label":c("Table options"),"aria-expanded":!!Ee,"data-recpop":true,onClick:C=>{k(null),de(null);let Y=C.currentTarget.getBoundingClientRect();q(Oe=>Oe?null:{x:Math.max(8,Math.min(Y.right-220,window.innerWidth-228)),y:Y.bottom+6});},className:"flex size-7 items-center justify-center rounded-[var(--bui-radius-scale-7)] text-ink-3 transition-colors duration-100 hover:bg-hover hover:text-ink",children:jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":true,children:[jsx("circle",{cx:"5",cy:"12",r:"1.6"}),jsx("circle",{cx:"12",cy:"12",r:"1.6"}),jsx("circle",{cx:"19",cy:"12",r:"1.6"})]})})]})})]})}),jsx("tbody",{"data-sound-silent":true,children:Ft.map((C,Y)=>{let Oe=p.has(C.id),Nt=$r[C.strength];return jsxs("tr",{className:`records-row ${Oe?"is-selected":""}`,children:[jsxs("td",{className:`records-cell records-sticky-cell records-company-cell ${I?.col==="Company"?"is-colsel":""}`,children:[jsx("span",{className:"records-rownum",children:Y+1}),jsx(vl,{checked:Oe,onChange:()=>Kr(C.id),label:c("Select {name}",{name:C.name})}),jsx("span",{className:"records-company-mark",children:C.name.slice(0,1).toUpperCase()}),jsx("a",{href:C.website?`https://${C.website}`:"#",onClick:Mt=>!C.website&&Mt.preventDefault(),title:C.name,className:`records-company-name ${C.website?"has-link":""}`,children:C.name})]}),jsx("td",{className:`records-cell ${I?.col==="Categories"?"is-colsel":""}`,children:et("Categories",Y)?jsx(Mn,{}):jsx(cg,{tags:C.tags,colors:o})}),jsx("td",{className:`records-cell ${C.last==="No contact"?"records-muted":""} ${I?.col==="Last interaction"?"is-colsel":""}`,children:et("Last interaction",Y)?jsx(Mn,{}):C.last}),jsx("td",{className:`records-cell ${I?.col==="Connection strength"?"is-colsel":""}`,children:et("Connection strength",Y)?jsx(Mn,{}):jsxs("span",{className:"records-strength",children:[jsx("span",{className:"records-strength-dot",style:{background:Nt.color}}),c(Nt.label)]})}),jsx("td",{className:`records-cell ${I?.col==="Links"?"is-colsel":""}`,children:et("Links",Y)?jsx(Mn,{}):C.website?jsxs("a",{className:"records-link",href:`https://${C.website}`,title:C.website,target:"_blank",rel:"noreferrer",children:[jsx("span",{className:"records-link-label",children:C.website}),jsx(xe,{size:12,children:jsx("path",{d:"M14 5h5v5M19 5l-8 8"})})]}):jsx("span",{className:"records-muted",children:"\u2014"})}),ge&&jsx("td",{className:`records-cell ${I?.col===l?"is-colsel":""}`,children:d?.col===l?Y<d.resolved?s[C.id]??"\u2014":jsx(Mn,{}):qt?s[C.id]??"\u2014":jsx("span",{className:"records-muted",children:"\u2014"})}),jsx("td",{className:"records-cell"})]},C.id)})}),jsx("tfoot",{children:jsxs("tr",{className:"records-calculation-row",children:[jsx("td",{className:"records-cell records-sticky-cell",children:jsxs("span",{className:"records-footer-value records-calculation-label",children:[jsx("span",{className:"records-calculation-number",children:e.length})," ",c("count")]})}),jsx("td",{className:"records-cell",children:jsxs("button",{type:"button",className:"records-add-calculation",onClick:G("Categories"),children:[jsx(xe,{size:15,children:jsx("path",{d:"M12 5v14M5 12h14"})}),c("Add calculation")]})}),jsx("td",{className:"records-cell records-muted",children:jsx("span",{className:"records-footer-value",children:"\u2014"})}),jsx("td",{className:"records-cell",children:jsxs("span",{className:"records-footer-value records-average",children:[jsx("span",{className:"records-strength-dot",style:{background:"var(--bui-orange)"}}),Math.round(e.reduce((C,Y)=>C+$r[Y.strength].rank,0)/Math.max(1,e.length)/3*100),c("% average")]})}),jsx("td",{className:"records-cell",children:jsxs("span",{className:"records-footer-value records-muted",children:[e.filter(C=>C.website).length," ",c("links")]})}),ge&&jsx("td",{className:"records-cell records-muted",children:jsx("span",{className:"records-footer-value",children:qt?`${e.length} filled`:"\u2014"})}),jsx("td",{className:"records-cell"})]})})]})}),I&&Ce&&jsxs("div",{"data-recpop":true,className:"fixed z-50 w-[320px] rounded-[14px] bg-surface px-3 pt-3 pb-1.5 shadow-overlay",style:{top:I.y,left:I.x,animation:"bui-pop-in 160ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top left"},children:[jsx("div",{className:"pb-2 text-[13.5px] font-medium text-ink",children:c(I.col)}),jsxs(Bo,{label:c("Type"),children:[jsxs("button",{type:"button","aria-haspopup":"menu","aria-expanded":F==="type",onClick:()=>J(C=>C==="type"?null:"type"),className:"flex items-center gap-1.5 rounded-[var(--bui-radius-chip)] px-1.5 py-1 text-[13px] font-medium text-ink transition-colors duration-100 hover:bg-hover",children:[jsx("span",{className:"text-ink-2",children:jsx(xe,{size:14,children:Zt[Ce.type]??Zt.Text})}),Ce.type,jsx("span",{className:"text-ink-3",children:jsx(xe,{size:12,strokeWidth:2.2,children:jsx("path",{d:"M9 6l6 6-6 6"})})})]}),F==="type"&&jsx(xl,{label:c("Property type"),selected:Ce.type,options:bl.map(C=>({label:C,icon:jsx(xe,{size:15,children:Zt[C]})})),onSelect:C=>{te(Y=>({...Y,[I.col]:{...Y[I.col],type:C}})),J(null);}})]}),jsxs(Bo,{label:c("Tool"),children:[jsxs("button",{type:"button","aria-haspopup":"menu","aria-expanded":F==="tool",onClick:()=>J(C=>C==="tool"?null:"tool"),className:"flex items-center gap-1.5 rounded-[var(--bui-radius-chip)] px-1.5 py-1 text-[13px] font-medium text-ink transition-colors duration-100 hover:bg-hover",children:[jsx("span",{className:Ce.toolKind==="model"?"text-accent":"text-ink-2",children:Ce.toolKind==="model"?jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":true,children:Vi.model}):jsx(xe,{size:14,children:Vi[Ce.toolKind]})}),Ce.tool,jsx("span",{className:"text-ink-3",children:jsx(xe,{size:12,strokeWidth:2.2,children:jsx("path",{d:"M9 6l6 6-6 6"})})})]}),F==="tool"&&jsx(xl,{label:c("Model"),selected:Ce.tool,options:r.map(C=>({label:C,icon:jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":true,children:Vi.model})})),onSelect:C=>{te(Y=>({...Y,[I.col]:{...Y[I.col],tool:C,toolKind:"model"}})),J(null);}})]}),jsxs(Bo,{label:c("Grounding"),children:[jsxs("span",{className:"flex items-center gap-2",children:[jsx(Sr,{label:c("Grounding"),on:z,onToggle:()=>_(C=>!C)}),jsx("button",{type:"button","aria-label":c("About grounding"),"aria-expanded":X,onClick:()=>Z(C=>!C),className:"flex size-6 items-center justify-center rounded-[var(--bui-radius-chip)] text-ink-3 transition-colors duration-100 hover:bg-hover hover:text-ink",children:jsx(xe,{size:13,children:jsxs("g",{children:[jsx("circle",{cx:"12",cy:"12",r:"9"}),jsx("path",{d:"M12 8h.01M11 12h1v4h1"})]})})})]}),X&&jsx("div",{className:"absolute right-0 top-[30px] z-30 w-[230px] rounded-[10px] px-3 py-2.5 text-[12px] leading-relaxed shadow-overlay",style:{color:"var(--bui-tooltip-fg)",background:"var(--bui-tooltip-bg)"},role:"status",children:c("Grounding lets the model verify generated values against connected sources.")})]}),jsxs(Bo,{label:c("Inputs"),children:[jsxs("button",{type:"button","aria-haspopup":"menu","aria-expanded":F==="inputs",onClick:()=>J(C=>C==="inputs"?null:"inputs"),className:"flex max-w-[220px] items-center gap-1.5 rounded-[var(--bui-radius-chip)] px-1.5 py-1 text-[13px] text-ink-2 transition-colors duration-100 hover:bg-hover hover:text-ink",children:[Kt.length?jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[Kt.slice(0,2).map(C=>jsx("span",{className:"max-w-[92px] truncate rounded-[5px] bg-accent-tint px-1.5 py-0.5 text-[12px] font-medium text-accent-ink",children:C},C)),Kt.length>2&&jsxs("span",{className:"text-[11px] font-medium text-ink-3",children:["+",Kt.length-2]})]}):jsx("span",{children:c("Select inputs")}),jsx("span",{className:"shrink-0 text-ink-3",children:jsx(xe,{size:12,strokeWidth:2.2,children:jsx("path",{d:"M9 6l6 6-6 6"})})})]}),F==="inputs"&&jsx(ug,{selected:Kt,options:a.filter(C=>C!==I.col),onToggle:C=>{pe(Y=>{let Oe=Y[I.col]??(Ce.inputs?[Ce.inputs]:[]),Nt=Oe.includes(C)?Oe.filter(Mt=>Mt!==C):[...Oe,C];return {...Y,[I.col]:Nt}});}})]}),jsx("div",{contentEditable:true,onInput:C=>{R.current[I.col]=C.currentTarget.textContent??"";},suppressContentEditableWarning:true,role:"textbox","aria-label":c("{column} calculation prompt",{column:I.col}),"aria-multiline":"true",spellCheck:true,className:"mt-2 min-h-[88px] cursor-text rounded-[10px] bg-inset p-3 text-[13px] leading-relaxed shadow-hairline outline-none transition-[box-shadow] duration-150 focus:shadow-[0_0_0_2px_var(--bui-accent)]",children:Ce.prompt?jsxs("span",{className:"text-ink",children:[Ce.prompt.before,Ce.prompt.chip&&jsx("span",{contentEditable:false,className:"rounded-[5px] bg-accent-tint px-1.5 py-0.5 text-[12px] font-medium text-accent-ink",children:Ce.prompt.chip}),Ce.prompt.after]}):jsx("span",{className:"text-ink-3",children:c("Set a prompt (press @ to mention an input)")})}),jsxs("button",{type:"button",disabled:!!d,onClick:()=>{u?.(I.col,{...Ce,selectedInputs:Kt,promptText:R.current[I.col]??[Ce.prompt?.before,Ce.prompt?.chip,Ce.prompt?.after].filter(Boolean).join(" "),grounding:z,...j}),k(null);},className:"mt-2.5 flex h-9 w-full items-center justify-center gap-2 rounded-[var(--bui-radius-scale-9)] text-[12.5px] font-medium text-ink shadow-btn transition-[background-color,transform] duration-150 hover:bg-hover active:scale-[0.98] disabled:opacity-60",children:[jsx(xe,{size:14,strokeWidth:1.9,children:jsx("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v6h-6"})}),c("Go calculate")]}),jsxs(tt,{className:"mt-3 flex flex-col gap-0.5 border-t border-line pt-2",highlightClassName:"-inset-x-1.5 rounded-[8px] bg-hover",children:[jsxs("button",{"data-menu-row":true,type:"button","aria-pressed":se.has(I.col),onClick:()=>M(C=>{let Y=new Set(C);return Y.has(I.col)?Y.delete(I.col):Y.add(I.col),Y}),className:"relative z-10 -mx-1.5 flex h-8 items-center gap-2.5 rounded-[var(--bui-radius-control)] px-1.5 text-left text-[13px] leading-none text-ink transition-transform duration-150 active:scale-[0.96]",children:[jsx("span",{className:se.has(I.col)?"text-accent":"text-ink-2",children:jsx(xe,{size:15,children:jsx("path",{d:"M12 17v5M8 3h8l-1 7 3 3H6l3-3-1-7z"})})}),se.has(I.col)?c("Unpin"):c("Pin")]}),jsxs("button",{"data-menu-row":true,type:"button","aria-expanded":H,onClick:()=>E(C=>!C),className:"relative z-10 -mx-1.5 flex h-8 items-center gap-2.5 rounded-[var(--bui-radius-control)] px-1.5 text-left text-[13px] leading-none text-ink transition-transform duration-150 active:scale-[0.96]",children:[jsx("span",{className:H?"text-ink":"text-ink-2",children:jsx(xe,{size:15,children:jsxs("g",{children:[jsx("circle",{cx:"12",cy:"12",r:"3"}),jsx("path",{d:"M12 2v3M12 19v3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M2 12h3M19 12h3M4.9 19.1 7 17M17 7l2.1-2.1"})]})})}),jsx("span",{className:"flex-1",children:c("More settings")}),jsx("span",{className:`text-ink-3 transition-transform duration-150 ${H?"rotate-90":""}`,children:jsx(xe,{size:12,strokeWidth:2.2,children:jsx("path",{d:"M9 6l6 6-6 6"})})})]}),I.col===l&&jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{Xe(false),k(null);},className:"relative z-10 -mx-1.5 flex h-8 items-center gap-2.5 rounded-[var(--bui-radius-control)] px-1.5 text-left text-[13px] leading-none text-ink transition-transform duration-150 active:scale-[0.96]",children:[jsx("span",{className:"text-ink-2",children:jsx(xe,{size:15,children:jsxs("g",{children:[jsx("path",{d:"M10.6 5.1A9.8 9.8 0 0 1 12 5c7 0 10 7 10 7a16.3 16.3 0 0 1-2.1 3M6.6 6.6A16 16 0 0 0 2 12s3 7 10 7a9.7 9.7 0 0 0 5.4-1.6M3 3l18 18"}),jsx("path",{d:"M9.9 9.9a3 3 0 0 0 4.2 4.2"})]})})}),c("Hide from view")]})]}),H&&jsxs("div",{className:"mt-2 border-t border-line pt-2",style:{animation:"bui-fade-up 160ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsx("div",{className:"pb-1 text-[11.5px] font-medium text-ink-3",children:c("Behavior")}),jsx(Bo,{label:c("Required value"),children:jsx(Sr,{label:c("Required value"),on:j.required,onToggle:()=>le(C=>({...C,required:!C.required}))})}),jsx(Bo,{label:c("Allow empty results"),children:jsx(Sr,{label:c("Allow empty results"),on:j.allowEmpty,onToggle:()=>le(C=>({...C,allowEmpty:!C.allowEmpty}))})}),jsx(Bo,{label:c("Show confidence"),children:jsx(Sr,{label:c("Show confidence"),on:j.confidence,onToggle:()=>le(C=>({...C,confidence:!C.confidence}))})})]})]}),re&&jsxs("div",{"data-recpop":true,className:"fixed z-50 w-[260px] rounded-[14px] bg-surface p-1.5 shadow-overlay",style:{top:re.y,left:re.x,animation:"bui-pop-in 160ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top left"},children:[jsx("div",{className:"px-2 pb-1 pt-1 text-[12px] font-medium text-ink-3",children:c("New property")}),jsx(tt,{className:"flex flex-col gap-px",children:bl.map(C=>jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{de(null),Xe(true),mt(true);},className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-control)] px-2 text-left text-[13px] text-ink",children:[jsx("span",{className:"text-ink-2",children:jsx(xe,{size:15,children:Zt[C]})}),C]},C))})]}),Ee&&jsxs("div",{"data-recpop":true,className:"fixed z-50 w-[220px] rounded-[14px] bg-surface p-1.5 shadow-overlay",style:{top:Ee.y,left:Ee.x,animation:"bui-pop-in 160ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top right"},children:[jsx("div",{className:"px-2 pb-1 pt-1 text-[12px] font-medium text-ink-3",children:c("Table options")}),jsxs(tt,{className:"flex flex-col gap-px",children:[jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{let C=Ee;q(null),de({x:Math.min(C.x,window.innerWidth-276),y:C.y});},className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-control)] px-2 text-left text-[13px] text-ink",children:[jsx("span",{className:"text-ink-2",children:jsx(xe,{size:15,strokeWidth:2,children:jsx("path",{d:"M12 5v14M5 12h14"})})}),c("Add property")]}),jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{f({company:220,categories:220,last:155,strength:180,links:160,ai:200}),q(null);},className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-control)] px-2 text-left text-[13px] text-ink",children:[jsx("span",{className:"text-ink-2",children:jsx(xe,{size:15,children:jsx("path",{d:"M4 8h16M7 4 3 8l4 4M17 4l4 4-4 4M4 16h16"})})}),c("Compact columns")]}),jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{f({...A.current??Hi}),q(null);},className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-control)] px-2 text-left text-[13px] text-ink",children:[jsx("span",{className:"text-ink-2",children:jsx(xe,{size:15,children:jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7M3 4v6h6"})})}),c("Reset column widths")]}),jsx("div",{className:"my-1 h-px bg-line"}),jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{cn(new Set),q(null);},className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-control)] px-2 text-left text-[13px] text-ink",children:[jsx("span",{className:"text-ink-2",children:jsx(xe,{size:15,children:jsx("path",{d:"M5 5l14 14M19 5 5 19"})})}),c("Clear selection")]})]})]})]})})}i(pg,"BUIRecordsTable");var gg=[],fg={placeholder:"Search\u2026",ariaLabel:"Search",emptyTitle:"No results found",emptyHint:"Adjust your search to try again"};function hg({items:e=gg,labels:t,onSelect:o}){let n=oe(),r=Te(fg,t),[a,l]=useState(""),s=a?e.filter(u=>u.toLowerCase().includes(a.toLowerCase())):e.slice(0,5),d=a.length>0&&s.length===0;return jsx(U,{children:jsx("div",{className:"flex min-h-[248px] w-full max-w-72 flex-col items-stretch",children:jsxs("div",{className:"w-full self-start overflow-hidden rounded-card bg-surface shadow-raised",children:[jsxs("div",{className:"flex h-10 items-center gap-2 border-b border-line px-3 transition-colors duration-100 hover:bg-hover",children:[jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2",strokeLinecap:"round",className:"shrink-0",children:[jsx("circle",{cx:"11",cy:"11",r:"7"}),jsx("path",{d:"M21 21l-4.3-4.3"})]}),jsx("input",{value:a,onChange:u=>l(u.target.value),placeholder:r.placeholder,"aria-label":r.ariaLabel,className:"min-w-0 flex-1 bg-transparent text-[13px] text-ink outline-none placeholder:text-ink-3"}),a&&jsx("button",{"aria-label":n("Clear search"),type:"button",onClick:()=>l(""),className:`flex size-6 items-center justify-center rounded-[var(--bui-radius-pill)] text-ink-3
|
|
212
|
-
transition-colors duration-100 hover:bg-line/70 hover:text-ink`,style:{animation:"bui-fade-in 150ms ease-out both"},children:jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]}),d?jsxs("div",{className:"flex flex-col items-center justify-center gap-1 px-4 py-8",style:{animation:"bui-fade-in 250ms ease-out both"},children:[jsx("span",{className:"mb-1.5 flex size-8 items-center justify-center rounded-control bg-inset text-ink-3 shadow-hairline",children:jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",children:[jsx("circle",{cx:"11",cy:"11",r:"7"}),jsx("path",{d:"M21 21l-4.3-4.3"})]})}),jsx("span",{className:"text-[13px] font-medium text-ink",children:r.emptyTitle}),jsx("span",{className:"text-[12px] text-ink-3",children:r.emptyHint})]}):jsx("div",{className:"p-1",children:jsx(tt,{className:"flex flex-col gap-px",highlightClassName:"inset-x-0 rounded-[6px] bg-hover",children:s.map(u=>jsx("button",{"data-menu-row":true,type:"button",onClick:()=>{l(u),o?.(u);},className:"relative z-10 flex h-8 w-full items-center rounded-[var(--bui-radius-chip)] px-2 text-left text-[13px] text-ink",style:{animation:"bui-fade-in 200ms ease-out both"},children:u},u))})})]})})})}i(hg,"BUISearchList");var Pg={lead:"",original:"",rewrite:""},Ng={keep:"Keep",discard:"Discard",placeholder:"Describe edits"},Jt={width:14,height:14,strokeWidth:1.8,"aria-hidden":true},jt={explain:jsx(ChatBubbleQuestion,{...Jt}),improve:jsx(Spark,{...Jt}),shorten:jsx(Scissor,{...Jt}),tone:jsx(EmojiSatisfied,{...Jt}),grammar:jsx(TextBox,{...Jt}),send:jsx(ArrowUp,{width:"16",height:"16",strokeWidth:"2.4","aria-hidden":"true"}),chevron:jsx(NavArrowRight,{...Jt}),check:jsx(Check,{...Jt}),close:jsx(Xmark,{...Jt}),retry:jsx(Refresh,{...Jt})},Mg="inline-flex h-7 shrink-0 items-center gap-1 rounded-full bg-ink px-2.5 text-[12.5px] font-normal text-canvas shadow-hairline transition-[opacity,transform] duration-150 hover:opacity-90 active:scale-[0.96]",Ig={primary:[{id:"Explain",icon:jt.explain},{id:"Improve",icon:jt.improve,action:"Improve",busyLabel:"Improving"}],more:[{id:"Shorten",icon:jt.shorten,action:"Shorten",busyLabel:"Shortening"},{id:"Tone",icon:jt.tone,action:"Change tone",busyLabel:"Changing tone"},{id:"Grammar",icon:jt.grammar,action:"Fix grammar"}]};function Bg({text:e,actions:t=Ig,labels:o,onAction:n,status:r="idle",onStatusChange:a}){let l=oe(),s={...Pg,...e},d=Te(Ng,o),[u,m]=useState(false),c=r,p=i(M=>a?.(M),"setMode"),[h,v]=useState("Improve"),[w,g]=useState(""),[f,x]=useState(null),[y,$]=useState(false),[N,T]=useState({x:0,y:0}),[S,A]=useState(false),O=useRef(null),L=useRef(null),I=useRef(null),k=useRef(null),R=useRef(null),z=useRef("idle"),_=useRef(0),X=useRef(null);useEffect(()=>{let M=window.setTimeout(()=>m(true),280);return ()=>window.clearTimeout(M)},[]);let Z=useCallback(()=>{R.current!==null&&cancelAnimationFrame(R.current),R.current=requestAnimationFrame(()=>{let M=O.current,H=L.current;if(!M||!H)return;let E=H.getBoundingClientRect(),le=Array.from(H.getClientRects()).at(-1);if(!le)return;let re=M.getBoundingClientRect(),de={x:Math.round(E.left-re.left+E.width/2),y:Math.round(le.bottom-re.top+8)};T(Ee=>Ee.x===de.x&&Ee.y===de.y?Ee:de),A(true);});},[]);useLayoutEffect(()=>{Z();},[c,Z]),useEffect(()=>{let M=O.current;if(!M)return;let H=new ResizeObserver(Z);return H.observe(M),window.addEventListener("resize",Z),()=>{H.disconnect(),window.removeEventListener("resize",Z),R.current!==null&&cancelAnimationFrame(R.current);}},[Z]),useLayoutEffect(()=>{let M=I.current,H=k.current;if(!M||!H)return;let E=Math.ceil(H.getBoundingClientRect().width)+8,j=_.current||Math.ceil(M.getBoundingClientRect().width);if(z.current!==c&&Math.abs(E-j)>1){X.current?.cancel();let le=M.animate([{width:`${j}px`},{width:`${E}px`}],{duration:320,easing:"cubic-bezier(0.23,1,0.32,1)"});X.current=le,le.onfinish=()=>{_.current=E,X.current=null;};}else _.current=E;z.current=c;},[c]),useEffect(()=>{let M=k.current;if(!M)return;let H=new ResizeObserver(()=>{X.current?.playState!=="running"&&(_.current=Math.ceil(M.getBoundingClientRect().width)+8);});return H.observe(M),()=>{H.disconnect(),X.current?.cancel();}},[]);let F=i(M=>{v(M),$(false),p("thinking"),n?.(M);},"run"),J=i(()=>{$(false),g(""),x(null),v("Improve"),p("idle");},"reset"),B=c==="thinking"||c==="streaming",te=u&&S,ee=w.trim().length>0,pe={};for(let M of [...t.primary,...t.more])M.action&&M.busyLabel&&(pe[M.action]=M.busyLabel);let se=pe[h]??"Editing";return jsx(U,{children:jsx("div",{className:"w-full max-w-[460px]",children:jsxs("div",{ref:O,className:"relative select-none pb-12",children:[jsxs("p",{className:"text-[13px] leading-relaxed text-ink",children:[s.lead,jsx("span",{ref:L,className:"box-decoration-clone rounded-[3px] bg-[color-mix(in_srgb,var(--bui-accent)_14%,var(--bui-surface))] text-ink dark:bg-accent-tint",children:c==="idle"||c==="thinking"?s.original:c==="streaming"?jsx(ii,{text:s.rewrite,onProgress:Z,onDone:()=>p("result")}):s.rewrite})]}),jsx("div",{className:"absolute top-0 left-0 z-10",style:{transform:`translate3d(${N.x}px, ${N.y}px, 0) translateX(-50%)`,transition:"transform 320ms cubic-bezier(0.77,0,0.175,1), opacity 180ms ease-out",opacity:te?1:0,pointerEvents:te?"auto":"none",willChange:"transform"},children:jsx("div",{ref:I,className:"flex h-9 w-fit max-w-[calc(100vw-48px)] items-center justify-center gap-0.5 overflow-hidden rounded-full bg-surface p-1 font-sans font-normal text-ink shadow-overlay",style:{width:c==="idle"&&ee&&f?f:void 0,...te?{animation:"bui-pop-in 220ms cubic-bezier(0.23,1,0.32,1) both"}:{}},children:jsxs("div",{ref:k,className:"flex w-fit shrink-0 items-center justify-center gap-0.5",style:{width:c==="idle"&&ee&&f?f-8:void 0},children:[B&&jsxs("span",{className:"inline-flex h-7 items-center gap-1.5 whitespace-nowrap px-2.5 text-[12.5px] font-normal text-ink-2",children:[jsx("span",{className:"size-3 shrink-0 rounded-full border-[1.5px] border-line-strong border-t-ink-2",style:{animation:"bui-spin 700ms linear infinite"}}),c==="thinking"?jsxs(ni,{className:"text-[12.5px] font-normal",children:[se,"\u2026"]}):jsxs("span",{children:[se,"\u2026"]})]}),c==="result"&&jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:J,className:Mg,children:[jt.check,d.keep]}),jsxs(Me,{type:"button",variant:"quiet",size:"xs",className:"shrink-0",onClick:J,children:[jt.close,d.discard]}),jsx("span",{className:"mx-0.5 h-4 w-px shrink-0 bg-line"}),jsx("button",{type:"button","aria-label":l("Try again"),onClick:()=>F(h),className:"flex size-7 shrink-0 items-center justify-center rounded-[var(--bui-radius-pill)] text-ink-3 transition-[background-color,color,transform] duration-150 hover:bg-hover-2 hover:text-ink-2 active:scale-[0.96]",children:jt.retry})]}),c==="idle"&&jsxs(Fragment,{children:[jsx("div",{className:"flex min-w-0 items-center overflow-hidden transition-[max-width,opacity,transform] duration-400",style:{maxWidth:y?0:ee&&f?f-40:145,opacity:y?0:1,transform:y?"translateX(-8px)":"translateX(0)",transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"},children:jsx("form",{className:"flex h-7 shrink-0 items-center transition-[width] duration-400",style:{width:ee&&f?f-40:145,transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"},onSubmit:M=>{M.preventDefault(),F(w.trim()||"Improve");},children:jsx("input",{value:w,onChange:M=>{let H=M.target.value;!w.trim()&&H.trim()?x(Math.ceil(I.current?.getBoundingClientRect().width??0)):H.trim()||x(null),g(H);},"aria-label":d.placeholder,placeholder:d.placeholder,className:"h-7 w-full bg-transparent pr-2.5 pl-3 text-[12.5px] text-ink placeholder:text-ink-3"})})}),jsxs("div",{className:"flex min-w-0 items-center gap-0.5 overflow-hidden transition-[max-width,opacity,transform] duration-400",style:{maxWidth:ee?0:y?462:224,opacity:ee?0:1,transform:ee?"translateX(-8px)":"translateX(0)",transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"},children:[!y&&jsx("span",{className:"mx-1 h-4 w-px shrink-0 bg-line-strong"}),t.primary.map(M=>jsxs(Me,{type:"button",variant:"quiet",size:"xs",className:"shrink-0",onClick:M.action?()=>F(M.action):void 0,children:[M.icon,M.id]},M.id)),jsx("div",{className:"flex min-w-0 items-center gap-0.5 overflow-hidden transition-[max-width,opacity,margin] duration-400",style:{maxWidth:y?262:0,opacity:y?1:0,marginLeft:y?2:0,transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"},children:t.more.map(M=>jsxs(Me,{type:"button",variant:"quiet",size:"xs",className:"shrink-0",onClick:M.action?()=>F(M.action):void 0,children:[M.icon,M.id]},M.id))}),jsx("span",{className:"mx-0.5 h-4 w-px shrink-0 bg-line"}),jsx("button",{type:"button","aria-label":l(y?"Show fewer actions":"Show more actions"),"aria-expanded":y,onClick:()=>$(M=>!M),className:"flex size-7 shrink-0 items-center justify-center rounded-[var(--bui-radius-pill)] text-ink transition-[background-color,transform] duration-200 hover:bg-hover active:scale-[0.96]",children:jsx("span",{className:"flex transition-transform duration-400",style:{transform:y?"rotate(180deg)":"rotate(0deg)",transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"},children:jt.chevron})})]}),jsx("div",{className:"flex min-w-0 items-center overflow-hidden transition-[max-width,opacity,transform] duration-400",style:{maxWidth:ee?30:0,opacity:ee?1:0,transform:ee?"scale(1)":"scale(0.88)",transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"},children:jsx("button",{type:"button","aria-label":l("Send edit instruction"),onClick:()=>F(w.trim()),className:"flex size-7 shrink-0 items-center justify-center rounded-[var(--bui-radius-pill)] bg-ink text-surface transition-[opacity,transform] duration-200 active:scale-[0.94]",children:jt.send})})]})]})})})]})})})}i(Bg,"BUISelectionActions");function P(...e){return twMerge(e.filter(Boolean).join(" "))}i(P,"cn");function Jo(e){return e!=null&&typeof e!="boolean"}i(Jo,"hasRenderableNode");var Eg={menu:"monkeys-overlay-surface--menu bg-menu-surface text-popover-foreground",dialog:"monkeys-overlay-surface--dialog bg-dialog-surface text-foreground"};function eo(e,t={}){return ["monkeys-overlay-surface",Eg[e],t.rounded===false?void 0:"monkeys-overlay-surface--rounded"].filter(Boolean).join(" ")}i(eo,"getOverlaySurfaceClassName");var Bn="relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",ji=`z-50 min-w-[8rem] overflow-hidden border p-1 ${eo("menu")} data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,Tl=Pe.Root,Rl=Pe.Trigger;var Ug=he.forwardRef(({className:e,inset:t,children:o,...n},r)=>jsxs(Pe.SubTrigger,{ref:r,className:P(Bn,"data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[o,jsx(ChevronRight,{"aria-hidden":"true",className:"ml-auto"})]}));Ug.displayName="DropdownMenuSubTrigger";var Fg=he.forwardRef(({className:e,...t},o)=>{let n=ht();return jsx(Pe.SubContent,{...n,...t,ref:o,"data-monkeys-component":"dropdown-menu","data-slot":"content","data-surface":"menu",className:P(ji,e)})});Fg.displayName="DropdownMenuSubContent";var Gi=he.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let r=ht();return jsx(Pe.Portal,{children:jsx(Pe.Content,{...r,...o,ref:n,sideOffset:t,"data-monkeys-component":"dropdown-menu","data-slot":"content","data-surface":"menu",className:P(ji,e)})})});Gi.displayName="DropdownMenuContent";var Tr=he.forwardRef(({className:e,inset:t,...o},n)=>jsx(Pe.Item,{ref:n,className:P(Bn,t&&"pl-8",e),...o}));Tr.displayName="DropdownMenuItem";var Og=he.forwardRef(({className:e,children:t,checked:o,...n},r)=>jsxs(Pe.CheckboxItem,{ref:r,className:P(Bn,"pl-8",e),checked:o,...n,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(Pe.ItemIndicator,{children:jsx(Check$1,{"aria-hidden":"true",className:"h-4 w-4"})})}),t]}));Og.displayName="DropdownMenuCheckboxItem";var _g=he.forwardRef(({className:e,children:t,...o},n)=>jsxs(Pe.RadioItem,{ref:n,className:P(Bn,"pl-8",e),...o,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(Pe.ItemIndicator,{children:jsx(Circle,{"aria-hidden":"true",className:"h-2 w-2 fill-current"})})}),t]}));_g.displayName="DropdownMenuRadioItem";var Hg=he.forwardRef(({className:e,inset:t,...o},n)=>jsx(Pe.Label,{ref:n,className:P("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Hg.displayName="DropdownMenuLabel";var Vg=he.forwardRef(({className:e,...t},o)=>jsx(Pe.Separator,{ref:o,className:P("-mx-1 my-1 h-px bg-muted",e),...t}));Vg.displayName="DropdownMenuSeparator";var Wg=i(({className:e,...t})=>jsx("span",{className:P("ml-auto text-xs tracking-widest opacity-60",e),...t}),"DropdownMenuShortcut");Wg.displayName="DropdownMenuShortcut";var jg=he.forwardRef(({className:e,children:t,iconClassName:o,size:n="default",...r},a)=>jsxs(Re.Trigger,{ref:a,className:P("flex h-10 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-control-surface px-3 py-2 text-left text-sm text-foreground shadow-sm ring-offset-control-surface data-[placeholder]:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:min-w-0 [&>span]:flex-1 [&>span]:text-left",n==="sm"&&"h-8 px-2 py-1 text-xs",e),...r,children:[t,jsx(Re.Icon,{asChild:true,children:jsx(ChevronDown,{"aria-hidden":"true",className:P("h-4 w-4 opacity-50",o)})})]}));jg.displayName="SelectTrigger";var Pl=he.forwardRef(({className:e,...t},o)=>jsx(Re.ScrollUpButton,{ref:o,className:P("flex cursor-default items-center justify-center py-1",e),...t,children:jsx(ChevronUp,{"aria-hidden":"true",className:"h-4 w-4"})}));Pl.displayName="SelectScrollUpButton";var Nl=he.forwardRef(({className:e,...t},o)=>jsx(Re.ScrollDownButton,{ref:o,className:P("flex cursor-default items-center justify-center py-1",e),...t,children:jsx(ChevronDown,{"aria-hidden":"true",className:"h-4 w-4"})}));Nl.displayName="SelectScrollDownButton";var Gg=he.forwardRef(({className:e,children:t,position:o="popper",viewportClassName:n,disableTriggerViewportSizing:r=false,...a},l)=>{let s=ht();return jsx(Re.Portal,{children:jsxs(Re.Content,{...s,...a,ref:l,position:o,"data-monkeys-component":"select","data-slot":"content","data-surface":"menu",className:P(ji,"relative max-h-[var(--radix-select-content-available-height)] overflow-y-auto overflow-x-hidden",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),children:[jsx(Pl,{}),jsx(Re.Viewport,{className:P("p-1",o==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)]",o==="popper"&&!r&&"h-[var(--radix-select-trigger-height)]",n),children:t}),jsx(Nl,{})]})})});Gg.displayName="SelectContent";var qg=he.forwardRef(({className:e,...t},o)=>jsx(Re.Label,{ref:o,className:P("px-2 py-1.5 text-sm font-semibold",e),...t}));qg.displayName="SelectLabel";var Kg=he.forwardRef(({className:e,children:t,indicatorClassName:o,itemText:n,hideIndicator:r=false,...a},l)=>jsxs(Re.Item,{ref:l,className:P(Bn,"w-full",r?"px-2":"pl-8 pr-2",e),...a,children:[r?null:jsx("span",{className:P("absolute left-2 flex h-3.5 w-3.5 items-center justify-center",o),children:jsx(Re.ItemIndicator,{children:jsx(Check$1,{"aria-hidden":"true",className:"h-4 w-4"})})}),n?jsxs(Fragment,{children:[jsx(Re.ItemText,{asChild:true,children:jsx("span",{className:"sr-only",children:n})}),t]}):jsx(Re.ItemText,{children:t})]}));Kg.displayName="SelectItem";var Xg=he.forwardRef(({className:e,...t},o)=>jsx(Re.Separator,{ref:o,className:P("-mx-1 my-1 h-px bg-muted",e),...t}));Xg.displayName="SelectSeparator";var Ml=Symbol.for("@inf-monkeys-tech/monkeys-design/bento-depth@1"),Il=globalThis,Bl=Il[Ml]??(Il[Ml]=createContext(0));function en(){return useContext(Bl)}i(en,"useBentoDepth");function Rr({children:e,depth:t}){return jsx(Bl.Provider,{value:t,children:e})}i(Rr,"BentoDepthProvider");function tn({children:e}){return jsx(Rr,{depth:0,children:e})}i(tn,"BentoScope");function qi(){let e=en(),t=e+1,o=fs($n(),t),n=Object.fromEntries(Yn.map(r=>[`--monkeys-bento-${r.replace(/[A-Z]/g,a=>`-${a.toLowerCase()}`)}`,o.values[r]]));return {parentDepth:e,level:t,variables:n}}i(qi,"useBentoSurface");var Ki="[data-monkeys-bento-level]",Pr="data-monkeys-scrollbar-active",tf='[data-monkeys-scrollbar], [data-monkeys-scroll-viewport], [data-radix-scroll-area-viewport], .monkeys-scrollbar, .monkeys-ui-scroll-viewport, .monkeys-ui-description, .monkeys-ui-page-main, .monkeys-ui-dialog, .monkeys-ui-menu, .monkeys-ui-select-content, [style*="overflow"][style*="auto"], [style*="overflow"][style*="scroll"], .overflow-auto, .overflow-x-auto, .overflow-y-auto, .overflow-scroll, .overflow-x-scroll, .overflow-y-scroll';function El(e,t){if(!(!(t instanceof Element)||!e.contains(t)||t.closest(Ki)!==e))for(let o=t;o;o=o.parentElement){if(o instanceof HTMLElement){let n=o.matches("[data-monkeys-scrollbar]")?o.parentElement?.querySelector(":scope > [data-radix-scroll-area-viewport]"):o.querySelector(":scope > [data-radix-scroll-area-viewport]");if(n?.closest(Ki)===e)return n;if(o.matches(tf)){let r=getComputedStyle(o);if(/(auto|scroll|overlay)/.test(`${r.overflowX} ${r.overflowY}`))return o}}if(o===e)break}}i(El,"viewportAt");function Ll(e,t=true){let o=useRef(),n=i(()=>{let a=o.current;a?.observer?.disconnect(),a?.marked.forEach(l=>l.removeAttribute(Pr)),o.current=void 0;},"clear");useEffect(()=>n,[t]);let r=i((a,l)=>{if(!t||!a.isConnected||!a.matches(Ki))return;o.current?.root!==a&&(n(),o.current={root:a,marked:new Set});let s=o.current;l!==void 0&&(s.pointerTarget=l);let d=a.ownerDocument.activeElement,u=El(a,s.pointerTarget),m=d?.matches(":focus-visible")?El(a,d):void 0;if(!u&&!m){s.observer?.disconnect(),s.observer=void 0,s.marked.forEach(p=>p.removeAttribute(Pr)),s.marked.clear();return}let c=new Set;for(let p of [u,m])p&&(c.add(p),p.matches("[data-radix-scroll-area-viewport]")&&p.parentElement?.querySelectorAll(":scope > [data-monkeys-scrollbar]").forEach(h=>c.add(h)));s.marked.forEach(p=>{c.has(p)||p.removeAttribute(Pr);}),c.forEach(p=>{s.marked.has(p)||p.setAttribute(Pr,"");}),s.marked=c,s.observer||(s.observer=new MutationObserver(()=>r(a)),s.observer.observe(a,{childList:true,subtree:true}));},"update");return {onPointerEnter(a){r(a.currentTarget,a.target),e.onPointerEnter?.(a);},onPointerLeave(a){r(a.currentTarget,null),e.onPointerLeave?.(a);},onPointerOver(a){r(a.currentTarget,a.target),e.onPointerOver?.(a);},onPointerOut(a){r(a.currentTarget,a.relatedTarget),e.onPointerOut?.(a);},onFocusCapture(a){r(a.currentTarget),e.onFocusCapture?.(a);},onBlurCapture(a){let l=a.currentTarget;queueMicrotask(()=>r(l)),e.onBlurCapture?.(a);}}}i(Ll,"useBentoScrollbarVisibility");function Dl(e,t){let o=new WeakMap,n=new Map,r=1;return (...a)=>{let l=a.slice(0,-1),s=a[a.length-1],d=l.map(c=>{if(!c)return 0;let p=o.get(c);return p===void 0&&(p=r++,o.set(c,p)),p}).join(":"),u=n.get(d);if(!u){let c={};for(let p of e)c[p]=t(...l.map(h=>h?.[p]));u=Object.freeze(c),n.size>=64&&n.delete(n.keys().next().value),n.set(d,u);}let m={...u};if(s)for(let c of e){let p=s[c];p&&(m[c]=t(...l.map(h=>h?.[c]),p));}return m}}i(Dl,"createStaticSlotMerger");var of={},Ve="motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",Lt="motion-safe:transition-all motion-safe:duration-300 motion-safe:ease-out",Nr="motion-safe:transition-transform motion-safe:duration-300 motion-safe:ease-out",zl=P("[scrollbar-width:thin]","[scrollbar-color:hsl(var(--muted-foreground)/0.45)_transparent]","[&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2","[&::-webkit-scrollbar-button]:hidden [&::-webkit-scrollbar-button]:h-0 [&::-webkit-scrollbar-button]:w-0 [&::-webkit-scrollbar-button]:bg-transparent","[&::-webkit-scrollbar-button:single-button]:hidden [&::-webkit-scrollbar-button:single-button]:h-0 [&::-webkit-scrollbar-button:single-button]:w-0","[&::-webkit-scrollbar-button:double-button]:hidden [&::-webkit-scrollbar-button:double-button]:h-0 [&::-webkit-scrollbar-button:double-button]:w-0","[&::-webkit-scrollbar-corner]:bg-transparent","[&::-webkit-scrollbar-track]:bg-transparent","[&:has(thead.sticky)::-webkit-scrollbar-track]:mt-[var(--base-table-header-height)]","[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/40","hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/55"),nf=P("[&.sticky_th]:sticky [&.sticky_th]:top-0 [&.sticky_th]:z-[2]","[&.sticky_th]:bg-[var(--base-table-sticky-header-bg)]","[&.sticky_th]:shadow-[inset_0_-1px_0_var(--base-table-header-separator)]"),Fl={buttonBase:P("group/button inline-flex min-w-0 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium focus-visible:outline-hidden","cursor-pointer disabled:!cursor-not-allowed",Lt),buttonDefault:"border-border bg-background text-foreground hover:bg-accent/60",buttonPrimary:"border-primary/20 bg-primary/10 text-primary hover:bg-primary/15",buttonSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))] hover:bg-[hsl(var(--success,142_72%_29%)_/_0.15)]",buttonWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))] hover:bg-[hsl(var(--warning,45_93%_47%)_/_0.15)]",buttonDanger:"border-destructive/20 bg-destructive/10 text-destructive-text hover:bg-destructive/15",buttonMuted:"border-border/60 bg-muted/45 text-muted-foreground hover:bg-muted/70 hover:text-foreground",buttonActive:"border-primary/35 bg-primary/10 text-primary",buttonDisabled:"!cursor-not-allowed opacity-60",buttonIconOnly:"w-9 px-0",buttonIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-[inherit] [&_*]:!text-[inherit] [&_svg]:!stroke-current [&_svg_*]:!stroke-current",buttonLabel:"min-w-0 truncate",badgeBase:P("inline-flex max-w-full items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium",Ve),badgeDefault:"border-border/60 bg-background text-foreground",badgePrimary:"border-primary/30 bg-primary/10 text-primary",badgeSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))]",badgeWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",badgeDanger:"border-destructive/30 bg-destructive/10 text-destructive-text",badgeMuted:"border-border/60 bg-muted text-muted-foreground",badgeIcon:"inline-flex h-3.5 w-3.5 shrink-0 items-center justify-center",badgeLabel:"min-w-0 truncate",textRoot:"min-w-0 break-words leading-6",textSizeXs:"text-xs",textSizeSm:"text-sm",textSizeMd:"text-base",textSizeLg:"text-lg",textSizeXl:"text-xl",typographyToneDefault:"text-foreground",typographyToneMuted:"text-muted-foreground",typographyTonePrimary:"text-primary",typographyToneSuccess:"text-emerald-700 dark:text-emerald-400",typographyToneWarning:"text-amber-700 dark:text-amber-400",typographyToneDanger:"text-destructive-text",typographyToneInherit:"text-inherit",headingRoot:"min-w-0 break-words font-semibold tracking-tight",headingSizeXs:"text-sm leading-5",headingSizeSm:"text-base leading-6",headingSizeMd:"text-lg leading-7",headingSizeLg:"text-xl leading-7",headingSizeXl:"text-2xl leading-8",headingSize2xl:"text-3xl leading-9",linkRoot:"inline break-words underline decoration-current/40 underline-offset-4 hover:decoration-current focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",codeInline:"rounded border border-border/70 bg-muted/60 px-1.5 py-0.5 font-mono text-[0.875em] leading-[1.45] text-foreground",codeBlock:"m-0 max-w-full overflow-x-auto rounded-md border border-border/70 bg-muted/60 p-4 text-foreground",codeContent:"font-mono text-sm leading-6",kbdRoot:"inline-flex min-h-5 items-center rounded border border-border bg-muted/70 px-1.5 font-mono text-[0.75em] font-medium leading-5 text-foreground shadow-[inset_0_-1px_0_hsl(var(--monkeys-color-border))]",listRoot:"m-0 min-w-0 list-outside break-words ps-5 text-foreground",listSpacingCompact:"[&>li+li]:mt-1",listSpacingDefault:"[&>li+li]:mt-2",listSpacingRelaxed:"[&>li+li]:mt-3",listMarkerNone:"list-none ps-0",listMarkerDisc:"list-disc",listMarkerCircle:"list-[circle]",listMarkerSquare:"list-[square]",listMarkerDecimal:"list-decimal",listMarkerLowerAlpha:"list-[lower-alpha]",listMarkerUpperAlpha:"list-[upper-alpha]",listItem:"min-w-0 ps-1 leading-6 marker:text-muted-foreground",stackRoot:"flex min-w-0 flex-col",inlineRoot:"flex min-w-0 flex-row",gridRoot:"grid min-w-0",containerRoot:"mx-auto w-full min-w-0",aspectRatioRoot:"relative min-w-0 overflow-hidden [&>*]:h-full [&>*]:w-full",spinnerRoot:"inline-flex shrink-0 items-center justify-center text-current align-middle",spinnerIndicator:"h-5 w-5 rounded-full border-2 border-current border-r-transparent motion-safe:animate-spin motion-reduce:animate-none",visuallyHiddenRoot:"sr-only",visuallyHiddenFocusable:"focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-[1000] focus:rounded-md focus:bg-background focus:px-4 focus:py-2 focus:text-foreground focus:shadow-lg focus:outline-hidden focus:ring-2 focus:ring-ring focus-within:not-sr-only focus-within:fixed focus-within:left-4 focus-within:top-4 focus-within:z-[1000] focus-within:rounded-md focus-within:bg-background focus-within:px-4 focus-within:py-2 focus-within:text-foreground focus-within:shadow-lg focus-within:ring-2 focus-within:ring-ring",fieldsetRoot:"min-w-0 border-0 p-0 text-foreground",fieldsetLegend:"min-w-0 text-sm font-semibold leading-6 text-foreground",fieldsetDescription:"mt-1 text-sm leading-5 text-muted-foreground",fieldsetError:"mt-1 text-sm leading-5 text-destructive-text",fieldsetContent:"mt-3 grid min-w-0 gap-3",stepsRoot:"m-0 min-w-0 list-none p-0 text-foreground",stepsHorizontal:"flex w-full max-w-full items-start overflow-x-auto pb-2",stepsVertical:"grid",stepsItem:"relative min-w-0",stepsItemHorizontal:"flex min-w-52 flex-1 items-start",stepsItemVertical:"pb-6 last:pb-0",stepsTrigger:"flex min-w-0 flex-1 items-start gap-3 rounded-md border-0 bg-transparent p-1 text-start text-inherit",stepsTriggerInteractive:"cursor-pointer hover:bg-accent/50 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",stepsTriggerDisabled:"!cursor-not-allowed opacity-60",stepsIndicator:"relative z-[1] inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full border text-xs font-semibold",stepsIndicatorPending:"border-border bg-background text-muted-foreground",stepsIndicatorCurrent:"border-primary/50 bg-primary/10 text-primary",stepsIndicatorCompleted:"border-primary bg-primary text-primary-foreground",stepsIndicatorError:"border-destructive bg-destructive text-destructive-foreground",stepsContent:"grid min-w-0 gap-1 pt-0.5",stepsLabel:"min-w-0 break-words text-sm font-medium leading-5",stepsDescription:"min-w-0 break-words text-sm leading-5 text-muted-foreground",stepsStatus:"sr-only",stepsConnector:"shrink-0 bg-border",stepsConnectorHorizontal:"mt-3.5 h-px w-8",stepsConnectorVertical:"absolute bottom-0 top-8 start-3.5 w-px -translate-x-1/2",stepsConnectorCompleted:"bg-primary/60",stepsConnectorError:"bg-destructive/60",scrollAreaViewport:"min-h-0 min-w-0",numberInputControl:"tabular-nums",numberInputStepControls:"me-1 flex shrink-0 self-stretch overflow-hidden border-s border-border",numberInputStepButton:"flex min-h-6 w-7 cursor-pointer items-center justify-center border-0 bg-transparent px-1 text-xs leading-none text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:z-[1] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-40",passwordInputControl:"pe-2",passwordInputToggle:"me-1 inline-flex min-h-7 shrink-0 cursor-pointer items-center justify-center rounded px-2 text-xs font-medium text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-40",inputGroupRoot:P("relative flex min-w-0 items-stretch overflow-hidden rounded-md border border-border bg-background text-foreground focus-within:border-primary/50 focus-within:ring-2 focus-within:ring-ring/30",Ve),inputGroupInvalid:"border-destructive/55 focus-within:border-destructive/70 focus-within:ring-destructive/25",inputGroupDisabled:"!cursor-not-allowed bg-muted/35",inputGroupContent:"flex min-w-0 flex-1 items-stretch [&>*]:min-w-0",inputGroupStartElement:"inline-flex shrink-0 items-center justify-center ps-3 pe-1 text-foreground/75",inputGroupEndElement:"inline-flex shrink-0 items-center justify-center ps-1 pe-3 text-foreground/75",inputGroupStartAddon:"inline-flex max-w-[min(40%,16rem)] shrink-0 items-center overflow-hidden border-e border-border bg-muted/60 px-3 text-sm text-foreground/75 text-ellipsis whitespace-nowrap [&>*]:min-w-0",inputGroupEndAddon:"inline-flex max-w-[min(40%,16rem)] shrink-0 items-center overflow-hidden border-s border-border bg-muted/60 px-3 text-sm text-foreground/75 text-ellipsis whitespace-nowrap [&>*]:min-w-0",panelRoot:P("group relative flex min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background",Lt),panelInteractive:"cursor-pointer hover:shadow-md",panelSelected:"border-primary/45 bg-primary/5",panelDisabled:"!cursor-not-allowed opacity-60",panelMedia:"shrink-0 overflow-hidden",panelHeader:"min-w-0 p-token-lg",panelTitle:"min-w-0 truncate text-sm font-semibold leading-none text-foreground",panelDescription:"mt-1 text-sm leading-5 text-foreground/75",panelBody:"min-w-0 px-token-lg pb-token-lg text-sm text-foreground",panelBodyStandalone:"pt-token-lg",panelFooter:"shrink-0 border-t border-border/60 px-token-lg py-token-md",stateRoot:P("flex min-h-48 flex-col items-center justify-center rounded-lg border border-border/70 bg-background px-6 py-10 text-center",Ve),stateIcon:"mb-token-lg flex h-12 w-12 items-center justify-center rounded-full bg-muted text-muted-foreground motion-safe:animate-in motion-safe:fade-in",stateTitle:"text-sm font-semibold text-foreground",stateDescription:"mt-2 max-w-md text-sm leading-6 text-muted-foreground",stateActions:"mt-token-xl flex flex-wrap items-center justify-center gap-token-sm",loadingSpinner:"h-5 w-5 motion-safe:animate-spin motion-reduce:animate-none",fieldRoot:"grid min-w-0 gap-token-md",fieldLabelRow:"flex min-w-0 items-center justify-between gap-token-md",fieldLabel:"min-w-0 text-sm font-medium leading-none text-foreground",fieldRequired:"text-destructive-text",fieldDescription:"text-sm leading-5 text-muted-foreground",fieldMessage:"text-sm leading-5 text-muted-foreground",fieldControl:"min-w-0",controlWrapper:P("relative flex min-w-0 items-center rounded-md border border-border bg-background text-foreground focus-within:border-primary/35",Ve),controlBase:"min-w-0 flex-1 bg-transparent px-3 text-sm text-foreground outline-hidden placeholder:text-muted-foreground disabled:!cursor-not-allowed",controlInput:"h-9",controlTextarea:"min-h-24 resize-y py-2 leading-6",controlSelect:"h-9 cursor-pointer appearance-none pr-9 disabled:!cursor-not-allowed",controlIcon:"pointer-events-none ml-3 inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",controlTrailing:"mr-3 inline-flex shrink-0 items-center justify-center text-muted-foreground",controlInvalid:"border-destructive/45 focus-within:border-destructive/60",controlDisabled:"!cursor-not-allowed opacity-60",controlReadOnly:"bg-muted/35",selectChevron:P("pointer-events-none absolute right-3 top-1/2 h-2 w-2 -translate-y-1/2 rotate-45 border-b border-r border-current text-muted-foreground",Nr),selectMenu:"absolute left-0 right-0 top-[calc(100%+0.375rem)] z-50 max-h-60 overflow-auto rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden",selectOption:P("flex min-h-8 w-full min-w-0 cursor-pointer items-center rounded-sm px-2.5 py-1.5 text-left text-sm text-foreground",Lt),selectOptionActive:"bg-accent text-accent-foreground",selectOptionSelected:"bg-primary/10 text-primary",selectOptionDisabled:"!cursor-not-allowed opacity-50",selectPlaceholder:"text-muted-foreground",selectNative:"sr-only",switchRoot:"inline-flex min-w-0 cursor-pointer items-start gap-3",switchInput:"sr-only",switchTrack:P("relative mt-0.5 inline-flex h-6 w-10 shrink-0 items-center rounded-full border border-border bg-muted focus-within:border-primary/35",Ve),switchThumb:P("h-4 w-4 translate-x-1 rounded-full bg-background shadow-sm",Nr),switchChecked:"border-primary/40 bg-primary/80 text-primary-foreground",switchDisabled:"!cursor-not-allowed opacity-60",switchContent:"grid min-w-0 gap-1",switchLabel:"text-sm font-medium leading-none text-foreground",switchDescription:"text-sm leading-5 text-muted-foreground",checkboxRoot:"inline-flex min-w-0 cursor-pointer items-start gap-3",checkboxInput:"sr-only",checkboxBox:P("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded border border-border bg-background text-primary focus-within:border-primary/40",Ve),checkboxBoxChecked:"border-primary/45 bg-primary text-primary-foreground",checkboxBoxInvalid:"border-destructive/50",checkboxIndicator:"text-xs font-bold leading-none",checkboxDisabled:"!cursor-not-allowed opacity-60",checkboxContent:"grid min-w-0 gap-1",checkboxLabel:"text-sm font-medium leading-none text-foreground",checkboxDescription:"text-sm leading-5 text-muted-foreground",radioGroupRoot:"grid min-w-0 gap-2",radioOption:P("inline-flex min-w-0 cursor-pointer items-start gap-3 rounded-md border border-border/60 bg-background px-3 py-2 text-sm",Lt,"hover:bg-muted/35"),radioInput:"sr-only",radioMarker:P("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-border bg-background text-primary focus-within:border-primary/40",Ve),radioMarkerChecked:"border-primary/50 bg-primary/10",radioIndicator:"h-2 w-2 rounded-full bg-primary",radioOptionDisabled:"!cursor-not-allowed opacity-60 hover:bg-background",radioContent:"grid min-w-0 gap-1",radioLabel:"text-sm font-medium leading-none text-foreground",radioDescription:"text-sm leading-5 text-muted-foreground",dialogRoot:"relative",dialogTrigger:"",dialogTriggerDisabled:"!cursor-not-allowed opacity-60",dialogOverlay:"fixed inset-0 z-50 bg-background/70 backdrop-blur-sm motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",dialogContent:"pointer-events-none fixed inset-0 z-50 flex min-h-0 items-center justify-center p-4",dialogPanel:P("pointer-events-auto relative flex max-h-[min(85vh,720px)] w-full max-w-lg min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background text-foreground shadow-xl","motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out"),dialogHeader:"grid min-w-0 gap-1 border-b border-border/60 px-5 py-4",dialogTitle:"min-w-0 pr-8 text-base font-semibold leading-6 text-foreground",dialogDescription:"text-sm leading-6 text-muted-foreground",dialogBody:"min-h-0 min-w-0 overflow-auto px-5 py-4 text-sm text-foreground",dialogFooter:"flex shrink-0 flex-wrap items-center justify-end gap-2 border-t border-border/60 px-5 py-4",dialogClose:P("absolute right-3 top-3 inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted/60 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",Lt),dropdownRoot:"relative inline-flex min-w-0",dropdownTrigger:"",dropdownTriggerDisabled:"!cursor-not-allowed opacity-60",dropdownMenu:"z-50 min-w-48 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",dropdownMenuTop:"bottom-[calc(100%+0.375rem)] top-auto",dropdownMenuEnd:"left-auto right-0",dropdownLabel:"px-2.5 py-1.5 text-xs font-semibold uppercase tracking-[0.12em] text-muted-foreground",dropdownSeparator:"my-1 h-px bg-border/70",dropdownItem:P("flex min-w-0 cursor-pointer items-center gap-2 rounded-sm px-2.5 py-2 text-left text-sm text-foreground hover:bg-accent/60 focus:bg-accent/60 data-[highlighted]:bg-accent/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",Lt),dropdownItemDanger:"text-destructive-text hover:bg-destructive/10 focus:bg-destructive/10 data-[highlighted]:bg-destructive/10",dropdownItemDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent focus:bg-transparent data-[highlighted]:bg-transparent",dropdownItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",dropdownItemContent:"grid min-w-0 flex-1 gap-0.5",dropdownItemLabel:"min-w-0 truncate",dropdownItemDescription:"min-w-0 truncate text-xs leading-4 text-muted-foreground",dropdownItemShortcut:"ml-3 shrink-0 text-xs font-medium text-muted-foreground",tooltipRoot:"relative inline-flex min-w-0",tooltipTrigger:"inline-flex min-w-0",tooltipContent:"pointer-events-none z-50 max-w-xs rounded-md border border-border bg-popover px-2.5 py-1.5 text-xs leading-5 text-popover-foreground shadow-lg motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",noticeBase:P("flex min-w-0 gap-3 rounded-lg border px-4 py-3 text-sm",Ve,"motion-safe:animate-in motion-safe:fade-in"),noticeDefault:"border-border bg-background text-foreground",noticePrimary:"border-primary/25 bg-primary/10 text-primary",noticeSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-foreground",noticeWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",noticeDanger:"border-destructive/30 bg-destructive/10 text-destructive-text",noticeMuted:"border-border/60 bg-muted/35 text-muted-foreground",noticeIcon:"mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center motion-safe:animate-in motion-safe:fade-in",noticeTitle:"font-semibold leading-5",noticeDescription:"leading-6",noticeActions:"mt-3 flex flex-wrap items-center gap-2",dividerRoot:P("shrink-0 border-border/70",Ve),dividerLabel:"mx-3 shrink-0 text-xs font-medium uppercase tracking-[0.12em] text-muted-foreground motion-safe:animate-in motion-safe:fade-in",sectionHeaderRoot:"flex min-w-0 flex-wrap items-start justify-between gap-token-md motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",sectionHeaderContent:"grid min-w-0 gap-1",sectionHeaderEyebrow:"text-xs font-semibold uppercase tracking-[0.14em] text-muted-foreground",sectionHeaderTitle:"text-base font-semibold leading-6 text-foreground",sectionHeaderDescription:"max-w-2xl text-sm leading-6 text-muted-foreground",sectionHeaderActions:"flex shrink-0 flex-wrap items-center gap-2",tabsRoot:"grid min-w-0 gap-token-md",tabsList:P("inline-flex min-w-0 flex-wrap items-center gap-token-xs rounded-lg border border-border/70 bg-muted/30 p-token-xs",Ve),tabsTrigger:P("inline-flex min-w-0 cursor-pointer items-center justify-center rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:bg-background/70 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:ring-offset-1 motion-reduce:transition-none",Lt),tabsTriggerActive:"bg-background text-foreground shadow-sm",tabsTriggerDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent",tabsPanel:"min-w-0 rounded-lg border border-border/70 bg-background p-4 text-sm text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",segmentedRoot:P("inline-flex min-w-0 items-center gap-1 rounded-lg border border-border/70 bg-muted/30 p-1",Ve),segmentedItem:P("inline-flex min-w-0 cursor-pointer items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:bg-background/70 hover:text-foreground focus-visible:outline-hidden",Lt),segmentedItemActive:"bg-background text-foreground shadow-sm",segmentedItemDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent",progressRoot:"grid min-w-0 gap-2",progressTrack:"h-2 w-full overflow-hidden rounded-full bg-muted",progressIndicator:"h-full rounded-full bg-primary motion-safe:transition-[width] motion-safe:duration-500 motion-safe:ease-out",progressLabelRow:"flex min-w-0 items-center justify-between gap-3",progressLabel:"min-w-0 truncate text-sm font-medium text-foreground",progressValue:"shrink-0 text-xs font-medium text-muted-foreground",skeletonRoot:"relative overflow-hidden rounded-md bg-muted/70",avatarRoot:"relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full border border-border bg-muted text-sm font-semibold text-muted-foreground motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",avatarImage:"h-full w-full object-cover",avatarFallback:"flex h-full w-full items-center justify-center bg-muted text-foreground",avatarStatus:"absolute bottom-0 right-0 h-2.5 w-2.5 rounded-full border-2 border-background bg-muted-foreground motion-safe:animate-pulse",avatarText:"min-w-0 truncate text-sm font-medium text-foreground",toolbarRoot:P("flex min-w-0 flex-wrap items-center justify-between gap-token-md rounded-lg border border-border/70 bg-background px-token-lg py-token-md",Ve),toolbarLeading:"flex min-w-0 items-center gap-token-md",toolbarTitle:"min-w-0 truncate text-sm font-semibold text-foreground",toolbarDescription:"mt-0.5 text-sm leading-5 text-muted-foreground",toolbarContent:"min-w-0 flex-1",toolbarActions:"flex shrink-0 flex-wrap items-center gap-token-sm",breadcrumbRoot:"min-w-0 text-sm text-muted-foreground",breadcrumbList:"flex min-w-0 flex-wrap items-center gap-1.5",breadcrumbItem:"inline-flex min-w-0 items-center gap-1.5",breadcrumbLink:"min-w-0 cursor-pointer truncate text-muted-foreground hover:text-foreground disabled:!cursor-not-allowed disabled:opacity-50 aria-disabled:!cursor-not-allowed aria-disabled:opacity-50 aria-disabled:hover:text-muted-foreground motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",breadcrumbCurrent:"min-w-0 truncate font-medium text-foreground",breadcrumbSeparator:"shrink-0 text-muted-foreground/70",paginationRoot:"flex min-w-0 flex-wrap items-center justify-between gap-3 text-sm",paginationInfo:"min-w-0 text-muted-foreground",paginationControls:"flex min-w-0 flex-wrap items-center justify-end gap-1.5",paginationButton:"inline-flex h-8 min-w-8 cursor-pointer items-center justify-center whitespace-nowrap rounded-md border border-border bg-background px-2.5 text-sm font-medium text-foreground hover:bg-accent/60 disabled:!cursor-not-allowed disabled:opacity-50 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",paginationButtonDisabled:"!cursor-not-allowed opacity-50",paginationPage:"inline-flex h-8 min-w-8 cursor-default items-center justify-center rounded-md bg-muted/50 px-2.5 text-sm font-medium text-foreground hover:bg-muted/50",paginationEllipsis:"inline-flex h-8 min-w-6 items-center justify-center px-1 text-sm text-muted-foreground",descriptionListRoot:"grid min-w-0 gap-3 text-sm",descriptionListItem:"grid min-w-0 gap-1 rounded-md border border-border/60 bg-background px-3 py-2 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out hover:shadow-sm",descriptionListTerm:"min-w-0 truncate text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground",descriptionListValue:"min-w-0 text-sm leading-6 text-foreground",accordionRoot:"grid min-w-0 gap-2",accordionItem:"overflow-hidden rounded-lg border border-border/70 bg-background motion-safe:transition motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",accordionTrigger:"flex w-full min-w-0 cursor-pointer items-center justify-between gap-3 px-4 py-3 text-start text-sm font-medium text-foreground hover:bg-muted/40 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-50 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",accordionTriggerIcon:P("h-2 w-2 shrink-0 rotate-45 border-b border-r border-current text-muted-foreground",Nr,"motion-reduce:transition-none"),accordionPanel:"border-t border-border/60 px-4 py-3 text-sm leading-6 text-muted-foreground motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out motion-reduce:animate-none",menuTrigger:"inline-flex min-w-0",menuContent:"z-50 min-w-44 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out",menuLabel:"px-2 py-1.5 text-xs font-medium text-muted-foreground",menuSeparator:"-mx-1 my-1 h-px bg-border",menuItem:P("relative flex min-h-8 min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm text-foreground outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:!cursor-not-allowed data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",Lt),menuItemDefault:"text-foreground",menuItemPrimary:"text-primary focus:text-primary data-[highlighted]:text-primary",menuItemSuccess:"text-[hsl(var(--success,142_72%_29%))] focus:text-[hsl(var(--success,142_72%_29%))] data-[highlighted]:text-[hsl(var(--success,142_72%_29%))]",menuItemWarning:"text-[hsl(var(--warning-foreground,28_73%_26%))] focus:text-[hsl(var(--warning-foreground,28_73%_26%))] data-[highlighted]:text-[hsl(var(--warning-foreground,28_73%_26%))]",menuItemDanger:"text-destructive-text focus:text-destructive-text data-[highlighted]:text-destructive-text",menuItemMuted:"text-muted-foreground focus:text-foreground data-[highlighted]:text-foreground",menuItemDisabled:"!cursor-not-allowed opacity-50 data-[disabled]:pointer-events-none",menuItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",menuItemLabel:"min-w-0 flex-1 truncate",menuItemShortcut:"ml-4 shrink-0 text-xs font-medium text-muted-foreground",menuCheckboxIndicator:"absolute left-2 inline-flex h-4 w-4 items-center justify-center text-current",menuRadioIndicator:"absolute left-2 inline-flex h-4 w-4 items-center justify-center text-current",menuSubTrigger:P("relative flex min-h-8 min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm text-foreground outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:!cursor-not-allowed data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",Lt),menuSubTriggerIcon:"ml-auto inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",menuSubContent:"z-50 min-w-40 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out",tableContainer:P("relative isolate min-w-0 overflow-auto rounded-lg border border-border/70 bg-background/95 bg-clip-padding [scrollbar-gutter:stable]","[--base-table-header-height:2.75rem] [--base-table-split-scrollbar-gutter:0.75rem]","[--base-table-sticky-header-bg:hsl(var(--background))] [--base-table-header-separator:hsl(var(--border)_/_0.7)]",zl,Ve),tableContainerFooterAttached:"!rounded-b-none !shadow-none",tableRoot:"w-full caption-bottom border-separate border-spacing-0 text-sm text-foreground",tableCaption:"mt-3 text-sm text-muted-foreground",tableHeader:P("relative z-[2] bg-transparent [&_tr]:bg-transparent",nf),tableBody:"[&_tr:last-child>*]:border-b-0",tableFooter:"bg-muted/30 font-medium [&_tr>*]:border-t [&_tr>*]:border-border/70",tableFooterBar:P("flex min-w-0 flex-wrap items-center justify-between gap-3 rounded-lg border border-border/70 bg-muted/20 px-4 py-3 text-sm text-foreground shadow-none",Ve),tableFooterBarAttached:"-mt-px rounded-t-none border-t border-border/70 shadow-none",tableFooterBarLeading:"flex min-w-0 items-center gap-2",tableFooterBarContent:"min-w-0 flex-1",tableFooterBarActions:"ms-auto flex shrink-0 flex-wrap items-center gap-2",tableSplitRoot:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] grid-rows-[auto_minmax(0,1fr)_auto] caption-bottom border-separate border-spacing-0 text-sm text-foreground",tableSplitHeader:"block w-full min-w-0 shrink-0 overflow-x-hidden overflow-y-hidden bg-transparent",tableSplitBody:P("block min-h-0 w-full min-w-0 max-w-full justify-self-stretch overflow-auto [scrollbar-gutter:stable]",zl),tableSplitFooter:"block w-full min-w-0 shrink-0 overflow-x-hidden overflow-y-hidden",tableSplitRow:"grid w-max min-w-full [grid-template-columns:var(--base-table-column-template)]",tableSplitHead:"flex min-w-0 overflow-hidden",tableSplitCell:"block min-w-0 overflow-hidden [overflow-wrap:anywhere]",tableRow:P("[&>*]:border-b [&>*]:border-border/60 data-[state=selected]:bg-primary/5 data-[state=selected]:[&>*]:bg-primary/5",Ve),tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.35)] hover:bg-[var(--base-table-row-hover-bg)] hover:[&>td]:bg-[var(--base-table-row-hover-bg)] hover:[&>th]:bg-[var(--base-table-row-hover-bg)]",tableRowSelected:"bg-primary/5 [&>*]:bg-primary/5",tableRowDisabled:"!cursor-not-allowed opacity-60",tableHead:"relative h-11 whitespace-nowrap px-3 py-2 text-left align-middle text-xs font-semibold text-muted-foreground shadow-[inset_0_-1px_0_var(--base-table-header-separator)]",tableHeadContent:"flex min-w-0 items-center justify-between gap-2",tableHeadMain:"flex min-w-0 items-center gap-2",tableHeadIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",tableHeadText:"grid min-w-0 gap-0.5",tableHeadLabel:"min-w-0 truncate text-xs font-semibold leading-4 text-foreground",tableHeadDescription:"min-w-0 truncate text-xs font-normal leading-4 text-muted-foreground",tableHeadMeta:"shrink-0 text-xs font-medium text-muted-foreground",tableHeadActions:"flex shrink-0 items-center gap-1",tableHeadSortButton:P("inline-flex min-w-0 cursor-pointer items-center gap-1 rounded-sm text-left focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-60",Ve),tableHeadSortIcon:P("inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground",Nr),tableHeadDragHandle:P("inline-flex h-5 w-4 shrink-0 cursor-grab items-center justify-center rounded-sm text-muted-foreground hover:bg-muted active:cursor-grabbing focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-50",Ve),tableHeadResizeHandle:P("absolute end-0 top-1/2 h-7 w-2 -translate-y-1/2 cursor-col-resize touch-none rounded-sm after:absolute after:start-1/2 after:top-1/2 after:h-5 after:w-px after:-translate-x-1/2 after:-translate-y-1/2 after:bg-border hover:after:bg-primary focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-50",Ve),tableCell:"min-w-0 px-3 py-2 align-middle text-sm text-foreground [overflow-wrap:anywhere]",tableCellAlignCenter:"text-center",tableCellAlignRight:"text-right",tableEmptyRow:"[&>*]:border-b [&>*]:border-border/60",tableEmptyCell:"px-4 py-10 text-center",tableEmptyContent:"mx-auto flex max-w-md flex-col items-center justify-center text-center",tableEmptyIcon:"mb-3 flex h-10 w-10 items-center justify-center rounded-full bg-muted text-muted-foreground",tableEmptyTitle:"text-sm font-semibold text-foreground",tableEmptyDescription:"mt-1 text-sm leading-6 text-muted-foreground",tableEmptyActions:"mt-4 flex flex-wrap items-center justify-center gap-2",tableLoadingRow:"[&>*]:border-b [&>*]:border-border/60",tableLoadingCell:"px-3 py-2",tableLoadingSkeleton:"h-4 w-full rounded-md bg-muted/70",layoutRoot:P("grid min-w-0 overflow-hidden grid-rows-[auto_minmax(0,1fr)_auto] gap-3 rounded-lg border border-border/70 bg-background p-3 text-foreground",Ve),layoutRootFull:"h-full min-h-0",layoutHeader:"min-w-0",layoutBody:"grid min-h-0 min-w-0 overflow-hidden gap-token-md",layoutSidebar:"min-h-0 min-w-0 overflow-hidden",layoutMain:"min-h-0 min-w-0 overflow-hidden",layoutAside:"min-h-0 min-w-0 overflow-hidden",layoutFooter:"min-w-0",layoutPane:P("h-full max-h-full min-h-0 min-w-0 overflow-hidden rounded-lg bg-background text-foreground",Ve),layoutPaneScrollable:"overflow-auto",layoutPaneBordered:"border border-border/70",layoutPaneMuted:"bg-muted/25",layoutPaneSoft:"bg-background/95 shadow-sm",layoutPaneTransparent:"bg-transparent shadow-none",layoutSplitRoot:"grid min-h-0 min-w-0 overflow-hidden",layoutSplitHorizontal:"grid-flow-col",layoutSplitVertical:"grid-flow-row",layoutSplitPane:"min-h-0 min-w-0 overflow-hidden",layoutSplitPrimary:"",layoutSplitSecondary:"",layoutResizeHandle:P("group/resize relative z-10 flex shrink-0 items-center justify-center bg-transparent text-muted-foreground hover:bg-border/60 active:bg-border/70 focus-visible:bg-border/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",Lt),layoutResizeHandleHorizontal:"w-2 cursor-col-resize",layoutResizeHandleVertical:"h-2 cursor-row-resize",layoutResizeHandleDisabled:"cursor-default opacity-60",layoutResizeHandleIndicator:"rounded-full bg-muted-foreground/45 group-hover/resize:bg-primary/70"},rf={compact:{buttonBase:"h-8 px-2.5 text-xs",buttonIconOnly:"h-8 w-8 px-0",badgeBase:"px-1.5 py-0 text-xs",panelHeader:"p-token-md",panelBody:"px-token-md pb-token-md text-xs",panelBodyStandalone:"pt-token-md",panelFooter:"px-token-md py-token-md",stateRoot:"min-h-36 px-4 py-7",stateIcon:"mb-3 h-10 w-10",fieldRoot:"gap-token-sm",fieldLabel:"text-xs",fieldDescription:"text-xs leading-5",fieldMessage:"text-xs leading-5",controlInput:"h-8 text-xs",controlTextarea:"min-h-20 text-xs",controlSelect:"h-8 text-xs",selectMenu:"text-xs",selectOption:"min-h-7 px-2 py-1 text-xs",switchTrack:"h-5 w-9",switchThumb:"h-3.5 w-3.5",checkboxBox:"h-3.5 w-3.5",checkboxLabel:"text-xs",checkboxDescription:"text-xs leading-5",radioOption:"px-2 py-1.5 text-xs",radioMarker:"h-3.5 w-3.5",radioIndicator:"h-1.5 w-1.5",radioLabel:"text-xs",radioDescription:"text-xs leading-5",dialogPanel:"max-w-md",dialogHeader:"px-4 py-3",dialogTitle:"text-sm leading-5",dialogDescription:"text-xs leading-5",dialogBody:"px-4 py-3 text-xs",dialogFooter:"px-4 py-3",dropdownMenu:"min-w-44 text-xs",dropdownItem:"px-2 py-1.5 text-xs",tooltipContent:"text-xs leading-4",noticeBase:"px-3 py-2 text-xs",dividerLabel:"text-xs",sectionHeaderRoot:"gap-token-sm",sectionHeaderTitle:"text-sm leading-5",sectionHeaderDescription:"text-xs leading-5",tabsList:"gap-token-xs p-token-xs",tabsTrigger:"px-2 py-1 text-xs",tabsPanel:"p-3 text-xs",segmentedRoot:"gap-token-xs p-token-xs",segmentedItem:"px-2 py-1 text-xs",progressTrack:"h-1.5",avatarRoot:"text-xs",toolbarRoot:"gap-token-sm px-token-md py-token-md",toolbarTitle:"text-xs",toolbarDescription:"text-xs leading-5",paginationButton:"h-7 min-w-7 px-2 text-xs",paginationPage:"h-7 min-w-7 px-2 text-xs",descriptionListRoot:"gap-2 text-xs",descriptionListItem:"px-2 py-1.5",descriptionListTerm:"text-xs",descriptionListValue:"text-xs leading-5",accordionTrigger:"px-3 py-2 text-xs",accordionPanel:"px-3 py-2 text-xs leading-5",menuContent:"min-w-40 p-0.5 text-xs",menuSubContent:"min-w-36 p-0.5 text-xs",menuLabel:"px-2 py-1 text-xs",menuItem:"min-h-7 px-2 py-1 text-xs",menuSubTrigger:"min-h-7 px-2 py-1 text-xs",menuItemShortcut:"text-xs",tableContainer:"[--base-table-header-height:2.25rem]",tableHead:"h-9 px-2 py-1.5 text-xs",tableCell:"px-2 py-1.5 text-xs",tableHeadLabel:"text-xs",tableHeadDescription:"text-xs leading-3",tableLoadingCell:"px-2 py-1.5",layoutRoot:"gap-token-md p-token-md",layoutBody:"gap-token-md",layoutPane:"rounded-md text-xs",layoutResizeHandleHorizontal:"w-1.5",layoutResizeHandleVertical:"h-1.5"},default:{buttonBase:"h-9"},comfortable:{buttonBase:"h-10 px-3.5",buttonIconOnly:"h-10 w-10 px-0",badgeBase:"px-2.5 py-1",panelHeader:"p-token-xl",panelBody:"px-token-xl pb-token-xl",panelBodyStandalone:"pt-token-xl",panelFooter:"px-token-xl py-token-lg",stateRoot:"min-h-56 px-8 py-12",stateIcon:"mb-5 h-14 w-14",fieldRoot:"gap-token-md",controlInput:"h-10",controlTextarea:"min-h-28",controlSelect:"h-10",selectMenu:"p-1.5",selectOption:"min-h-9 px-3 py-2",switchTrack:"h-7 w-12",switchThumb:"h-5 w-5",checkboxBox:"h-5 w-5",radioOption:"px-4 py-3",radioMarker:"h-5 w-5",radioIndicator:"h-2.5 w-2.5",dialogPanel:"max-w-xl",dialogHeader:"px-6 py-5",dialogBody:"px-6 py-5",dialogFooter:"px-6 py-5",dropdownMenu:"min-w-56",dropdownItem:"px-3 py-2.5",noticeBase:"px-5 py-4",sectionHeaderTitle:"text-lg leading-7",tabsTrigger:"px-3.5 py-2",tabsPanel:"p-5",segmentedItem:"px-3.5 py-2",progressTrack:"h-2.5",toolbarRoot:"px-token-xl py-token-lg",paginationButton:"h-9 min-w-9 px-3",paginationPage:"h-9 min-w-9 px-3",descriptionListItem:"px-4 py-3",accordionTrigger:"px-5 py-4",accordionPanel:"px-5 py-4",menuContent:"min-w-48 p-1.5",menuSubContent:"min-w-44 p-1.5",menuItem:"min-h-9 px-3 py-2",menuSubTrigger:"min-h-9 px-3 py-2",tableContainer:"[--base-table-header-height:3rem]",tableHead:"h-12 px-4 py-3",tableCell:"px-4 py-3",tableLoadingCell:"px-4 py-3",layoutRoot:"gap-token-lg p-token-lg",layoutBody:"gap-token-lg",layoutPane:"rounded-xl",layoutResizeHandleHorizontal:"w-2.5",layoutResizeHandleVertical:"h-2.5"}},af={none:{buttonBase:"rounded-none",badgeBase:"rounded-none",panelRoot:"rounded-none",stateRoot:"rounded-none",stateIcon:"rounded-none",controlWrapper:"rounded-none",selectMenu:"rounded-none",selectOption:"rounded-none",switchTrack:"rounded-none",switchThumb:"rounded-none",checkboxBox:"rounded-none",radioOption:"rounded-none",dialogPanel:"rounded-none",dialogClose:"rounded-none",dropdownMenu:"rounded-none",dropdownItem:"rounded-none",tooltipContent:"rounded-none",noticeBase:"rounded-none",tabsList:"rounded-none",tabsTrigger:"rounded-none",tabsPanel:"rounded-none",segmentedRoot:"rounded-none",segmentedItem:"rounded-none",progressTrack:"rounded-none",progressIndicator:"rounded-none",skeletonRoot:"rounded-none",avatarRoot:"rounded-none",avatarStatus:"rounded-none",toolbarRoot:"rounded-none",paginationButton:"rounded-none",paginationPage:"rounded-none",descriptionListItem:"rounded-none",accordionItem:"rounded-none",menuContent:"rounded-none",menuItem:"rounded-none",menuSubTrigger:"rounded-none",menuSubContent:"rounded-none",tableContainer:"rounded-none",tableEmptyIcon:"rounded-none",tableLoadingSkeleton:"rounded-none",layoutRoot:"rounded-none",layoutPane:"rounded-none"},sm:{buttonBase:"rounded-sm",badgeBase:"rounded-sm",panelRoot:"rounded-sm",stateRoot:"rounded-sm",stateIcon:"rounded-sm",controlWrapper:"rounded-sm",selectMenu:"rounded-sm",selectOption:"rounded-sm",switchTrack:"rounded-sm",switchThumb:"rounded-sm",checkboxBox:"rounded-sm",radioOption:"rounded-sm",dialogPanel:"rounded-sm",dialogClose:"rounded-sm",dropdownMenu:"rounded-sm",dropdownItem:"rounded-sm",tooltipContent:"rounded-sm",noticeBase:"rounded-sm",tabsList:"rounded-sm",tabsTrigger:"rounded-sm",tabsPanel:"rounded-sm",segmentedRoot:"rounded-sm",segmentedItem:"rounded-sm",progressTrack:"rounded-sm",progressIndicator:"rounded-sm",skeletonRoot:"rounded-sm",avatarRoot:"rounded-sm",avatarStatus:"rounded-sm",toolbarRoot:"rounded-sm",paginationButton:"rounded-sm",paginationPage:"rounded-sm",descriptionListItem:"rounded-sm",accordionItem:"rounded-sm",menuContent:"rounded-sm",menuItem:"rounded-sm",menuSubTrigger:"rounded-sm",menuSubContent:"rounded-sm",tableContainer:"rounded-sm",tableEmptyIcon:"rounded-sm",tableLoadingSkeleton:"rounded-sm",layoutRoot:"rounded-sm",layoutPane:"rounded-sm"},md:{},lg:{buttonBase:"rounded-lg",badgeBase:"rounded-lg",panelRoot:"rounded-xl",stateRoot:"rounded-xl",stateIcon:"rounded-xl",controlWrapper:"rounded-lg",selectMenu:"rounded-lg",selectOption:"rounded-md",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-md",radioOption:"rounded-xl",dialogPanel:"rounded-xl",dialogClose:"rounded-lg",dropdownMenu:"rounded-lg",dropdownItem:"rounded-md",tooltipContent:"rounded-md",noticeBase:"rounded-xl",tabsList:"rounded-xl",tabsTrigger:"rounded-lg",tabsPanel:"rounded-xl",segmentedRoot:"rounded-xl",segmentedItem:"rounded-lg",skeletonRoot:"rounded-lg",toolbarRoot:"rounded-xl",descriptionListItem:"rounded-lg",accordionItem:"rounded-xl",menuContent:"rounded-lg",menuItem:"rounded-md",menuSubTrigger:"rounded-md",menuSubContent:"rounded-lg",tableContainer:"rounded-xl",tableEmptyIcon:"rounded-xl",tableLoadingSkeleton:"rounded-lg",layoutRoot:"rounded-xl",layoutPane:"rounded-xl"},xl:{buttonBase:"rounded-xl",badgeBase:"rounded-xl",panelRoot:"rounded-2xl",stateRoot:"rounded-2xl",stateIcon:"rounded-2xl",controlWrapper:"rounded-xl",selectMenu:"rounded-xl",selectOption:"rounded-lg",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-lg",radioOption:"rounded-2xl",dialogPanel:"rounded-2xl",dialogClose:"rounded-xl",dropdownMenu:"rounded-xl",dropdownItem:"rounded-lg",tooltipContent:"rounded-lg",noticeBase:"rounded-2xl",tabsList:"rounded-2xl",tabsTrigger:"rounded-xl",tabsPanel:"rounded-2xl",segmentedRoot:"rounded-2xl",segmentedItem:"rounded-xl",skeletonRoot:"rounded-xl",toolbarRoot:"rounded-2xl",paginationButton:"rounded-xl",paginationPage:"rounded-xl",descriptionListItem:"rounded-xl",accordionItem:"rounded-2xl",menuContent:"rounded-xl",menuItem:"rounded-lg",menuSubTrigger:"rounded-lg",menuSubContent:"rounded-xl",tableContainer:"rounded-2xl",tableEmptyIcon:"rounded-2xl",tableLoadingSkeleton:"rounded-xl",layoutRoot:"rounded-2xl",layoutPane:"rounded-2xl"},full:{buttonBase:"rounded-full",badgeBase:"rounded-full",panelRoot:"rounded-2xl",stateRoot:"rounded-2xl",stateIcon:"rounded-full",controlWrapper:"rounded-full",selectMenu:"rounded-2xl",selectOption:"rounded-full",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-full",radioOption:"rounded-2xl",dialogPanel:"rounded-2xl",dialogClose:"rounded-full",dropdownMenu:"rounded-2xl",dropdownItem:"rounded-full",tooltipContent:"rounded-full",noticeBase:"rounded-2xl",tabsList:"rounded-full",tabsTrigger:"rounded-full",tabsPanel:"rounded-2xl",segmentedRoot:"rounded-full",segmentedItem:"rounded-full",progressTrack:"rounded-full",progressIndicator:"rounded-full",skeletonRoot:"rounded-full",avatarRoot:"rounded-full",avatarStatus:"rounded-full",toolbarRoot:"rounded-2xl",paginationButton:"rounded-full",paginationPage:"rounded-full",descriptionListItem:"rounded-2xl",accordionItem:"rounded-2xl",menuContent:"rounded-2xl",menuItem:"rounded-full",menuSubTrigger:"rounded-full",menuSubContent:"rounded-2xl",tableContainer:"rounded-2xl",tableEmptyIcon:"rounded-full",tableLoadingSkeleton:"rounded-full",layoutRoot:"rounded-2xl",layoutPane:"rounded-2xl"}},sf={none:{buttonBase:"border-transparent",badgeBase:"border-transparent",panelRoot:"border-transparent",panelFooter:"border-transparent",stateRoot:"border-transparent",controlWrapper:"border-transparent",selectMenu:"border-transparent",switchTrack:"border-transparent",checkboxBox:"border-transparent",radioOption:"border-transparent",radioMarker:"border-transparent",dialogPanel:"border-transparent",dialogHeader:"border-transparent",dialogFooter:"border-transparent",dropdownMenu:"border-transparent",tooltipContent:"border-transparent",noticeBase:"border-transparent",dividerRoot:"border-transparent",tabsList:"border-transparent",tabsPanel:"border-transparent",segmentedRoot:"border-transparent",avatarRoot:"border-transparent",toolbarRoot:"border-transparent",paginationButton:"border-transparent",descriptionListItem:"border-transparent",accordionItem:"border-transparent",accordionPanel:"border-transparent",menuContent:"border-transparent",menuSeparator:"bg-transparent",menuSubContent:"border-transparent",tableContainer:"border-transparent [--base-table-header-separator:transparent]",tableHeader:"border-transparent",tableFooter:"[&_tr>*]:border-transparent",tableFooterBar:"border-transparent",tableFooterBarAttached:"border-t border-transparent",tableRow:"[&>*]:border-transparent",tableEmptyRow:"[&>*]:border-transparent",tableLoadingRow:"[&>*]:border-transparent",layoutRoot:"border-transparent",layoutPaneBordered:"border-transparent",layoutResizeHandle:"bg-transparent hover:bg-transparent active:bg-transparent focus-visible:bg-transparent"},subtle:{buttonDefault:"border-border/60",badgeDefault:"border-border/60",panelRoot:"border-border/60",panelFooter:"border-border/60",stateRoot:"border-border/60",controlWrapper:"border-border/60",selectMenu:"border-border/60",switchTrack:"border-border/60",checkboxBox:"border-border/60",radioOption:"border-border/60",radioMarker:"border-border/60",dialogPanel:"border-border/60",dialogHeader:"border-border/60",dialogFooter:"border-border/60",dropdownMenu:"border-border/60",tooltipContent:"border-border/60",noticeDefault:"border-border/60",dividerRoot:"border-border/60",tabsList:"border-border/60",tabsPanel:"border-border/60",segmentedRoot:"border-border/60",avatarRoot:"border-border/60",toolbarRoot:"border-border/60",paginationButton:"border-border/60",descriptionListItem:"border-border/60",accordionItem:"border-border/60",accordionPanel:"border-border/60",menuContent:"border-border/60",menuSeparator:"bg-border/60",menuSubContent:"border-border/60",tableContainer:"border-border/60 [--base-table-header-separator:hsl(var(--border)_/_0.6)]",tableHeader:"border-border/60",tableFooter:"[&_tr>*]:border-border/60",tableFooterBar:"border-border/60",tableFooterBarAttached:"border-t border-border/60",tableRow:"[&>*]:border-border/50",tableEmptyRow:"[&>*]:border-border/50",tableLoadingRow:"[&>*]:border-border/50",layoutRoot:"border-border/60",layoutPaneBordered:"border-border/60"},solid:{},strong:{buttonDefault:"border-foreground/20",badgeDefault:"border-foreground/20",panelRoot:"border-foreground/20",panelFooter:"border-foreground/20",stateRoot:"border-foreground/20",controlWrapper:"border-foreground/20",selectMenu:"border-foreground/20",switchTrack:"border-foreground/20",checkboxBox:"border-foreground/20",radioOption:"border-foreground/20",radioMarker:"border-foreground/20",dialogPanel:"border-foreground/20",dialogHeader:"border-foreground/15",dialogFooter:"border-foreground/15",dropdownMenu:"border-foreground/20",tooltipContent:"border-foreground/20",noticeDefault:"border-foreground/20",dividerRoot:"border-foreground/20",tabsList:"border-foreground/20",tabsPanel:"border-foreground/20",segmentedRoot:"border-foreground/20",avatarRoot:"border-foreground/20",toolbarRoot:"border-foreground/20",paginationButton:"border-foreground/20",descriptionListItem:"border-foreground/20",accordionItem:"border-foreground/20",accordionPanel:"border-foreground/20",menuContent:"border-foreground/20",menuSeparator:"bg-foreground/15",menuSubContent:"border-foreground/20",tableContainer:"border-foreground/20 [--base-table-header-separator:hsl(var(--foreground)_/_0.15)]",tableHeader:"border-foreground/20",tableFooter:"[&_tr>*]:border-foreground/20",tableFooterBar:"border-foreground/20",tableFooterBarAttached:"border-t border-foreground/20",tableRow:"[&>*]:border-foreground/15",tableEmptyRow:"[&>*]:border-foreground/15",tableLoadingRow:"[&>*]:border-foreground/15",layoutRoot:"border-foreground/20",layoutPaneBordered:"border-foreground/20",layoutResizeHandle:"hover:bg-foreground/15 active:bg-foreground/20 focus-visible:bg-foreground/15"}},lf={plain:{},muted:{buttonDefault:"bg-muted/20 hover:bg-muted/45",panelRoot:"bg-card",panelFooter:"bg-muted/20",stateRoot:"bg-muted/20",controlWrapper:"bg-background",selectMenu:"bg-background",selectOptionActive:"bg-muted/70 text-foreground",checkboxBox:"bg-background",radioOption:"bg-card hover:bg-muted/45",radioMarker:"bg-background",dialogPanel:"bg-card",dropdownMenu:"bg-background",dropdownItem:"hover:bg-muted/60",tooltipContent:"bg-popover",noticeDefault:"bg-muted/20",tabsList:"bg-muted/35",tabsTriggerActive:"bg-background",tabsPanel:"bg-card",segmentedRoot:"bg-muted/35",segmentedItemActive:"bg-background",progressTrack:"bg-muted/60",skeletonRoot:"bg-muted",toolbarRoot:"bg-card",paginationButton:"bg-background hover:bg-muted/60",paginationPage:"bg-muted/60",descriptionListItem:"bg-card",accordionItem:"bg-card",menuContent:"bg-background",menuItem:"focus:bg-muted/70 data-[highlighted]:bg-muted/70",menuSubTrigger:"focus:bg-muted/70 data-[highlighted]:bg-muted/70 data-[state=open]:bg-muted/70",menuSubContent:"bg-background",tableContainer:"bg-background/95 [scrollbar-gutter:stable]",tableFooter:"bg-muted/35",tableFooterBar:"bg-muted/30 shadow-none",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.45)]",tableLoadingSkeleton:"bg-muted",layoutRoot:"bg-card",layoutPane:"bg-card",layoutPaneMuted:"bg-muted/35",layoutResizeHandle:"hover:bg-border/70 active:bg-border/80 focus-visible:bg-border/70"},soft:{buttonDefault:"bg-muted/30 hover:bg-muted/55",panelRoot:"bg-background/95 shadow-sm",stateRoot:"bg-background/95 shadow-sm",controlWrapper:"bg-background/95",selectMenu:"bg-background/95 shadow-xl",selectOptionActive:"bg-muted/60 text-foreground",checkboxBox:"bg-background/95",radioOption:"bg-background/95 shadow-sm hover:bg-muted/35",radioMarker:"bg-background/95",dialogPanel:"bg-background/95 shadow-xl",dropdownMenu:"bg-background/95 shadow-xl",dropdownItem:"hover:bg-muted/55",tooltipContent:"bg-popover shadow-xl",noticeDefault:"bg-background/95 shadow-sm",tabsList:"bg-background/60 shadow-sm",tabsTriggerActive:"bg-background",tabsPanel:"bg-background/95 shadow-sm",segmentedRoot:"bg-background/60 shadow-sm",segmentedItemActive:"bg-background",skeletonRoot:"bg-background/80",toolbarRoot:"bg-background/95 shadow-sm",paginationButton:"bg-background/95 hover:bg-muted/55",descriptionListItem:"bg-background/95 shadow-sm",accordionItem:"bg-background/95 shadow-sm",menuContent:"bg-background/95 shadow-xl",menuItem:"focus:bg-muted/60 data-[highlighted]:bg-muted/60",menuSubTrigger:"focus:bg-muted/60 data-[highlighted]:bg-muted/60 data-[state=open]:bg-muted/60",menuSubContent:"bg-background/95 shadow-xl",tableContainer:"bg-background/95 shadow-sm [scrollbar-gutter:stable]",tableFooter:"bg-muted/25",tableFooterBar:"bg-muted/25 shadow-none",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.35)]",tableLoadingSkeleton:"bg-muted/65",layoutRoot:"bg-background/95 shadow-sm",layoutPane:"bg-background/95 shadow-sm",layoutPaneSoft:"bg-background/95 shadow-md"},glass:{buttonBase:"backdrop-blur-md",buttonDefault:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",badgeDefault:"border-white/10 bg-white/[0.08] text-foreground",panelRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",panelFooter:"border-white/10 bg-white/[0.05]",stateRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",stateIcon:"bg-white/10 text-foreground",controlWrapper:"border-white/10 bg-white/[0.08] text-foreground backdrop-blur-md",selectMenu:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",selectOption:"text-foreground",selectOptionActive:"bg-white/[0.14] text-foreground",selectOptionSelected:"bg-white/[0.18] text-foreground",switchTrack:"border-white/10 bg-white/[0.12] backdrop-blur-md",checkboxBox:"border-white/10 bg-white/[0.08] backdrop-blur-md",checkboxBoxChecked:"border-white/20 bg-white/[0.22] text-foreground",radioOption:"border-white/10 bg-white/[0.06] backdrop-blur-md hover:bg-white/[0.10]",radioMarker:"border-white/10 bg-white/[0.08] backdrop-blur-md",radioMarkerChecked:"border-white/25 bg-white/[0.16]",dialogOverlay:"bg-background/45 backdrop-blur-md",dialogPanel:"border-white/10 bg-white/[0.08] shadow-2xl backdrop-blur-md",dialogHeader:"border-white/10",dialogFooter:"border-white/10",dropdownMenu:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",dropdownItem:"text-foreground hover:bg-white/[0.14]",tooltipContent:"border-foreground/10 bg-background/15 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",noticeDefault:"border-white/10 bg-white/[0.08] text-foreground backdrop-blur-md",dividerRoot:"border-white/15",tabsList:"border-white/10 bg-white/[0.08] backdrop-blur-md",tabsTrigger:"text-muted-foreground hover:bg-white/[0.12] hover:text-foreground",tabsTriggerActive:"bg-white/[0.16] text-foreground shadow-none",tabsPanel:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",segmentedRoot:"border-white/10 bg-white/[0.08] backdrop-blur-md",segmentedItem:"text-muted-foreground hover:bg-white/[0.12] hover:text-foreground",segmentedItemActive:"bg-white/[0.16] text-foreground shadow-none",progressTrack:"bg-white/[0.12]",skeletonRoot:"bg-white/[0.16]",avatarRoot:"border-white/10 bg-white/[0.12] text-foreground",avatarFallback:"bg-white/[0.12] text-foreground",avatarStatus:"border-background",toolbarRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",paginationButton:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",paginationPage:"bg-white/[0.12] text-foreground",descriptionListItem:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",accordionItem:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",accordionPanel:"border-white/10",menuContent:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",menuSeparator:"bg-white/10",menuItem:"text-foreground focus:bg-white/[0.14] focus:text-foreground data-[highlighted]:bg-white/[0.14] data-[highlighted]:text-foreground",menuSubTrigger:"text-foreground focus:bg-white/[0.14] focus:text-foreground data-[highlighted]:bg-white/[0.14] data-[highlighted]:text-foreground data-[state=open]:bg-white/[0.16]",menuSubContent:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",tableContainer:"border-foreground/10 bg-background/[0.06] shadow-none backdrop-blur-md [scrollbar-gutter:stable] [--base-table-sticky-header-bg:hsl(var(--background)/0.94)] [--base-table-header-separator:hsl(var(--foreground)/0.24)]",tableHeader:"border-white/10",tableFooter:"bg-white/[0.05] [&_tr>*]:border-white/10",tableFooterBar:"border-white/10 bg-white/[0.05] shadow-none backdrop-blur-md",tableFooterBarAttached:"border-t border-white/10",tableRow:"[&>*]:border-white/10",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--foreground)/0.08)]",tableHeadLabel:"text-foreground",tableLoadingSkeleton:"bg-white/[0.16]",layoutRoot:"border-white/10 bg-white/[0.05] shadow-none backdrop-blur-md",layoutPane:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",layoutPaneMuted:"bg-white/[0.08]",layoutPaneSoft:"bg-white/[0.10] shadow-none backdrop-blur-md",layoutResizeHandle:"text-foreground/65 hover:bg-white/10 active:bg-white/15 focus-visible:bg-white/10",layoutResizeHandleIndicator:"bg-white/45 group-hover/resize:bg-white/75"},dark:{buttonBase:"border-white/15 text-white shadow-lg backdrop-blur",buttonDefault:"bg-black/30 hover:bg-black/[0.45]",buttonPrimary:"border-white/25 bg-white/20 text-white hover:bg-white/25",buttonMuted:"border-white/10 bg-black/20 text-white/70 hover:bg-black/[0.35] hover:text-white",badgeDefault:"border-white/10 bg-white/[0.08] text-white",badgeMuted:"border-white/10 bg-black/20 text-white/70",panelRoot:"border-white/10 bg-slate-950 text-white shadow-none",panelTitle:"text-white",panelDescription:"text-white/65",panelBody:"text-white/85",panelFooter:"border-white/10 bg-white/[0.04]",stateRoot:"border-white/10 bg-slate-950 text-white shadow-none",stateIcon:"bg-white/10 text-white/75",stateTitle:"text-white",stateDescription:"text-white/65",fieldLabel:"text-white",fieldDescription:"text-white/65",fieldMessage:"text-white/65",controlWrapper:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur focus-within:border-white/35",controlBase:"text-white placeholder:text-white/45",selectChevron:"text-white/65",selectMenu:"border-white/15 bg-slate-950 text-white shadow-2xl",selectOption:"text-white",selectOptionActive:"bg-white/[0.12] text-white",selectOptionSelected:"bg-white/[0.16] text-white",selectPlaceholder:"text-white/45",switchTrack:"border-white/15 bg-black/30 shadow-lg backdrop-blur",switchChecked:"border-white/25 bg-white/25 text-white",switchLabel:"text-white",switchDescription:"text-white/65",checkboxBox:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur",checkboxBoxChecked:"border-white/25 bg-white/25 text-white",checkboxLabel:"text-white",checkboxDescription:"text-white/65",radioOption:"border-white/10 bg-white/[0.06] text-white hover:bg-white/[0.08]",radioMarker:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur",radioMarkerChecked:"border-white/25 bg-white/25",radioIndicator:"bg-white",radioLabel:"text-white",radioDescription:"text-white/65",dialogOverlay:"bg-slate-950/75",dialogPanel:"border-white/10 bg-slate-950 text-white shadow-2xl",dialogHeader:"border-white/10",dialogTitle:"text-white",dialogDescription:"text-white/65",dialogBody:"text-white/85",dialogFooter:"border-white/10",dialogClose:"text-white/65 hover:bg-white/[0.08] hover:text-white",dropdownMenu:"border-white/15 bg-slate-950 text-white shadow-2xl",dropdownLabel:"text-white/55",dropdownSeparator:"bg-white/15",dropdownItem:"text-white hover:bg-white/[0.10]",dropdownItemDescription:"text-white/55",dropdownItemShortcut:"text-white/55",tooltipContent:"border-white/15 bg-slate-950 text-white shadow-2xl",noticeDefault:"border-white/10 bg-white/[0.08] text-white",noticeMuted:"border-white/10 bg-black/20 text-white/70",dividerRoot:"border-white/15",dividerLabel:"text-white/55",sectionHeaderEyebrow:"text-white/55",sectionHeaderTitle:"text-white",sectionHeaderDescription:"text-white/65",tabsList:"border-white/10 bg-white/[0.08]",tabsTrigger:"text-white/65 hover:bg-white/[0.12] hover:text-white",tabsTriggerActive:"bg-white/[0.16] text-white shadow-none",tabsPanel:"border-white/10 bg-white/[0.06] text-white",segmentedRoot:"border-white/10 bg-white/[0.08]",segmentedItem:"text-white/65 hover:bg-white/[0.12] hover:text-white",segmentedItemActive:"bg-white/[0.16] text-white shadow-none",progressTrack:"bg-white/[0.12]",progressLabel:"text-white",progressValue:"text-white/65",skeletonRoot:"bg-white/[0.14]",avatarRoot:"border-white/15 bg-white/[0.10] text-white",avatarFallback:"bg-white/[0.10] text-white/75",avatarText:"text-white",avatarStatus:"border-slate-950",toolbarRoot:"border-white/10 bg-white/[0.06] text-white",toolbarTitle:"text-white",toolbarDescription:"text-white/65",breadcrumbLink:"text-white/65 hover:text-white",breadcrumbCurrent:"text-white",breadcrumbSeparator:"text-white/45",paginationInfo:"text-white/65",paginationButton:"border-white/10 bg-white/[0.08] text-white hover:bg-white/[0.14]",paginationPage:"bg-white/[0.14] text-white",descriptionListItem:"border-white/10 bg-white/[0.06]",descriptionListTerm:"text-white/55",descriptionListValue:"text-white",accordionItem:"border-white/10 bg-white/[0.06]",accordionTrigger:"text-white hover:bg-white/[0.08]",accordionPanel:"border-white/10 text-white/70",tableContainer:"border-foreground/10 bg-background text-foreground shadow-none [scrollbar-gutter:stable] [--base-table-sticky-header-bg:hsl(var(--background)/0.98)] [--base-table-header-separator:hsl(var(--foreground)/0.16)]",tableRoot:"text-white",tableHeader:"border-white/10",tableFooter:"bg-white/[0.05] [&_tr>*]:border-white/10",tableFooterBar:"border-white/10 bg-white/[0.05] text-white/65",tableFooterBarAttached:"border-t border-white/10",tableRow:"[&>*]:border-white/10",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--foreground)/0.06)]",tableHead:"text-white/65",tableHeadLabel:"text-white",tableHeadDescription:"text-white/55",tableHeadMeta:"text-white/55",tableHeadIcon:"text-white/55",tableHeadSortIcon:"text-white/55",tableHeadDragHandle:"text-white/55 hover:bg-white/[0.08]",tableHeadResizeHandle:"after:bg-white/20 hover:after:bg-white/60",tableCell:"text-white/85",tableEmptyIcon:"bg-white/10 text-white/65",tableEmptyTitle:"text-white",tableEmptyDescription:"text-white/60",menuContent:"border-white/10 bg-slate-950 text-white shadow-2xl",menuLabel:"text-white/55",menuSeparator:"bg-white/10",menuItem:"text-white focus:bg-white/[0.10] focus:text-white data-[highlighted]:bg-white/[0.10] data-[highlighted]:text-white",menuItemDefault:"text-white",menuItemPrimary:"text-primary focus:text-primary data-[highlighted]:text-primary",menuItemSuccess:"text-[hsl(var(--success,142_69%_58%))] focus:text-[hsl(var(--success,142_69%_58%))] data-[highlighted]:text-[hsl(var(--success,142_69%_58%))]",menuItemWarning:"text-[hsl(var(--warning-foreground,53_98%_77%))] focus:text-[hsl(var(--warning-foreground,53_98%_77%))] data-[highlighted]:text-[hsl(var(--warning-foreground,53_98%_77%))]",menuItemDanger:"text-destructive-text focus:text-destructive-text data-[highlighted]:text-destructive-text",menuItemMuted:"text-white/65 focus:text-white data-[highlighted]:text-white",menuItemShortcut:"text-white/45",menuSubTrigger:"text-white focus:bg-white/[0.10] focus:text-white data-[highlighted]:bg-white/[0.10] data-[highlighted]:text-white data-[state=open]:bg-white/[0.12]",menuSubTriggerIcon:"text-white/55",menuSubContent:"border-white/10 bg-slate-950 text-white shadow-2xl",tableLoadingSkeleton:"bg-white/[0.14]",layoutRoot:"border-white/10 bg-slate-950 text-white shadow-none",layoutPane:"border-white/10 bg-slate-950 text-white shadow-none",layoutPaneMuted:"bg-white/[0.06]",layoutPaneSoft:"bg-white/[0.08] shadow-none",layoutResizeHandle:"text-white/65 hover:bg-white/10 active:bg-white/15 focus-visible:bg-white/10",layoutResizeHandleIndicator:"bg-white/45 group-hover/resize:bg-white/75"}},Ul={default:{density:"default",radius:"md",border:"solid",background:"plain"},soft:{density:"default",radius:"lg",border:"subtle",background:"soft"},compact:{density:"compact",radius:"md",border:"subtle",background:"muted"},"tinted-glass":{density:"default",radius:"lg",border:"subtle",background:"glass"},glass:{density:"default",radius:"xl",border:"subtle",background:"glass"},"hard-edge":{density:"compact",radius:"none",border:"strong",background:"plain"}},df={soft:{buttonBase:"font-medium",panelRoot:"border-border/70",controlWrapper:"font-medium",tabsTrigger:"font-medium",segmentedItem:"font-medium",toolbarRoot:"border-border/70",tableContainer:"border-border/70",tableFooterBar:"border-border/70",tableHeadLabel:"font-semibold",menuItemLabel:"font-medium"},compact:{buttonBase:"text-xs",badgeBase:"text-xs",fieldLabel:"text-xs",controlBase:"text-xs",selectOption:"text-xs",menuItem:"text-xs",menuSubTrigger:"text-xs",noticeBase:"text-xs",sectionHeaderTitle:"text-sm",tabsTrigger:"text-xs",segmentedItem:"text-xs",toolbarTitle:"text-xs",paginationRoot:"text-xs"},"tinted-glass":{buttonPrimary:"border-primary/25 bg-primary/15 text-primary-foreground hover:bg-primary/20",badgePrimary:"border-primary/25 bg-primary/15 text-primary-foreground",noticePrimary:"border-primary/25 bg-primary/15 text-primary-foreground",progressIndicator:"bg-primary",avatarStatus:"border-background"},glass:{panelRoot:"shadow-[0_24px_80px_hsl(var(--foreground)/0.12)]",stateRoot:"shadow-[0_24px_80px_hsl(var(--foreground)/0.12)]",noticeBase:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",tabsPanel:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",toolbarRoot:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",descriptionListItem:"shadow-[0_12px_40px_hsl(var(--foreground)/0.08)]",accordionItem:"shadow-[0_12px_40px_hsl(var(--foreground)/0.08)]"},"hard-edge":{buttonBase:"shadow-none",panelRoot:"shadow-none",stateRoot:"shadow-none",controlWrapper:"shadow-none",selectMenu:"shadow-none",menuContent:"shadow-none",menuSubContent:"shadow-none",noticeBase:"shadow-none",tabsList:"shadow-none",tabsTriggerActive:"shadow-none",tabsPanel:"shadow-none",segmentedRoot:"shadow-none",segmentedItemActive:"shadow-none",toolbarRoot:"shadow-none",descriptionListItem:"shadow-none",accordionItem:"shadow-none"}};function cf(e){return Ul[e]??Ul.default}i(cf,"getPresetDefaults");var uf=Object.keys(Fl),pf=Dl(uf,P);function mf(...e){return Object.assign({},...e.filter(Boolean))}i(mf,"mergeStyles");function Ol(e){let t=e?.preset??"default",o=e?.variant??"default",n=cf(t),r=e?.density??n.density??"default",a=e?.state??"idle",l=e?.radius??n.radius??"md",s=e?.border??n.border??"solid",d=e?.background??n.background??"plain";return {preset:t,variant:o,density:r,state:a,radius:l,border:s,background:d,styles:mf(of,e?.styles),slots:pf(Fl,df[t],rf[r],af[l],sf[s],lf[d],e?.slots)}}i(Ol,"resolveBaseAppearance");function Hl({as:e="article",decoration:t,title:o,description:n,media:r,header:a,footer:l,children:s,interactive:d,selected:u,disabled:m,appearance:c,variant:p,density:h,state:v,className:w,classNames:g,style:f,...x}){let y=Ol({...c,variant:p,density:h,state:v}),$=e,N=a!==void 0?Jo(a):Jo(o)||Jo(n),T=r!=null,S=!N&&!T;return jsxs($,{...x,"aria-disabled":m||void 0,"data-variant":y.variant,"data-density":y.density,"data-state":v??(m?"disabled":u?"selected":"idle"),"data-monkeys-component":"panel","data-slot":"root","data-interactive":d||void 0,"data-selected":u||void 0,"data-disabled":m||void 0,className:P(y.slots.panelRoot,d&&!m&&y.slots.panelInteractive,u&&y.slots.panelSelected,m&&y.slots.panelDisabled,g?.root,w),style:{...y.styles.panel,...f},children:[t,T?jsx("div",{"data-slot":"media",className:P(y.slots.panelMedia,g?.media),children:r}):null,N?jsx("div",{"data-slot":"header",className:P(y.slots.panelHeader,g?.header),style:y.styles.panelHeader,children:a!==void 0?a:jsxs(Fragment,{children:[Jo(o)?jsx("div",{"data-slot":"title",className:P(y.slots.panelTitle,g?.title),children:o}):null,Jo(n)?jsx("div",{"data-slot":"description",className:P(y.slots.panelDescription,g?.description),children:n}):null]})}):null,s!=null?jsx("div",{"data-slot":"body",className:P(y.slots.panelBody,S&&y.slots.panelBodyStandalone,g?.body),style:y.styles.panelBody,children:s}):null,l!=null?jsx("div",{"data-slot":"footer",className:P(y.slots.panelFooter,g?.footer),style:y.styles.panelFooter,children:l}):null]})}i(Hl,"BasePanel");var Vl=i(e=>e==null?void 0:typeof e=="number"?`${e}px`:e,"cssSize"),Wl=i(e=>e!==void 0&&Number.isFinite(e)&&e>0?e:8,"safeSpeed"),ff=i(e=>{let[t,o=t]=e.trim().split(/\s*\/\s*|\s+/);return {rx:t,ry:o}},"radiusParts");function Yi({mode:e="solid",color:t,colors:o,width:n=1,radius:r,speed:a,direction:l="clockwise",className:s,style:d}){let m=`border-effect-${he.useId().replace(/:/g,"")}`,c=he.useRef(null),[p,h]=he.useState({width:0,height:0,rx:"0px",ry:"0px"});he.useEffect(()=>{let T=c.current;if(!T||typeof ResizeObserver>"u")return;let S=i(()=>{let L=getComputedStyle(T).borderTopLeftRadius,I=ff(L),{rx:k,ry:R}=I;h({width:T.clientWidth,height:T.clientHeight,rx:k,ry:R});},"update");S();let A=new ResizeObserver(S);A.observe(T);let O=new MutationObserver(S);for(let L=T;L;L=L.parentElement)O.observe(L,{attributes:true});return ()=>{A.disconnect(),O.disconnect();}},[r]);let v=o?.length?o:[t||"hsl(var(--monkeys-color-border, var(--border, var(--input))))"],w=v.length===1?[v[0],v[0]]:v,g=l==="counterclockwise"?"reverse":"normal",f=(p.width||1)/2,x=(p.height||1)/2,y=l==="counterclockwise"?`360 ${f} ${x};0 ${f} ${x}`:`0 ${f} ${x};360 ${f} ${x}`,N={...{"--border-effect-width":Vl(n),"--border-effect-radius":Vl(r)||"inherit","--border-effect-speed":`${Wl(a)}s`,"--border-effect-color":t||"hsl(var(--monkeys-color-border, var(--border, var(--input))))","--border-effect-gradient":`linear-gradient(90deg, ${w.join(", ")})`,"--border-effect-direction":g},...d};return jsxs("div",{ref:c,"aria-hidden":"true",className:`monkeys-border-effect monkeys-border-effect-${e}${s?` ${s}`:""}`,style:{...N,pointerEvents:"none"},children:[jsx("span",{className:"monkeys-border-effect-ring"}),e==="animated"&&jsxs("svg",{"aria-hidden":"true",focusable:"false",className:"monkeys-border-effect-svg",viewBox:`0 0 ${p.width||1} ${p.height||1}`,children:[jsx("defs",{children:jsxs("linearGradient",{id:m,gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:p.width||1,y2:"0",children:[w.map((T,S)=>jsx("stop",{offset:`${S/(w.length-1)*100}%`,stopColor:T},S)),jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",values:y,dur:`${Wl(a)}s`,repeatCount:"indefinite"})]})}),jsx("rect",{x:"0",y:"0",width:p.width,height:p.height,rx:p.rx,ry:p.ry,fill:"none",stroke:`url(#${m})`,style:{strokeWidth:"calc(var(--border-effect-width) * 2)"}})]})]})}i(Yi,"BorderEffect");var hf=i((e,t)=>Object.keys(e??{}).some(o=>o.startsWith("padding")&&e?.[o]!==void 0)||/(?:^|[\s:])!?p[xytrblse]?-(?:\[|[a-z0-9])/.test(t??""),"ownsPadding");function jl({children:e,className:t,contentClassName:o,chrome:n="panel",borderEffect:r,decoration:a,headerWrap:l=false,title:s,titleIcon:d,action:u,appearance:m,classNames:c,...p}){let{parentDepth:h,level:v,variables:w}=qi(),g=Cs(m),f=n==="panel",x=f&&r!=null,y=Ll(p,f),$=hf(g?.styles?.panelBody,[c?.body,o,g?.slots?.panelBody].join(" "));return jsx(Rr,{depth:f?v:h,children:jsx(Hl,{as:"section",appearance:{...g,slots:{...g?.slots,panelRoot:g?.slots?.panelRoot},styles:{...g?.styles,panelHeader:{...n==="plain"?{padding:0,paddingBlockEnd:"var(--global-spacing-lg, 1rem)"}:{},...g?.styles?.panelHeader},panelBody:{...!$||n==="plain"?{padding:0}:{},...g?.styles?.panelBody}}},classNames:{...c,root:P("min-h-0",f&&"gap-[var(--monkeys-bento-gap)]",f&&g?.radius===void 0&&!g?.preset&&"rounded-[var(--monkeys-bento-radius)]",f&&g?.border===void 0&&!g?.preset&&"border-[length:var(--monkeys-bento-border-width)] border-[color:var(--monkeys-bento-border-color)] [border-style:var(--monkeys-bento-border-style)]",f&&g?.background===void 0&&!g?.preset&&"bg-[var(--monkeys-bento-background)]",f&&!g?.preset&&g?.background===void 0&&"shadow-[shadow:var(--monkeys-bento-shadow)]",f&&!$&&"p-[var(--monkeys-bento-padding)]",!f&&"border-0 bg-transparent shadow-none",g?.slots?.panelRoot,c?.root,t),header:P("flex min-w-0 items-center gap-[var(--monkeys-bento-gap,var(--global-spacing,0.75rem))] border-b border-border p-0 pb-[var(--monkeys-bento-gap)]",n==="plain"&&"border-0 px-0 pt-0 pb-token-lg",c?.header),body:P("flex min-h-0 flex-col gap-[var(--monkeys-bento-gap,var(--global-spacing,0.75rem))] p-0",g?.slots?.panelBody,c?.body,o),footer:P("px-0 pb-0 pt-[var(--monkeys-bento-gap)]",c?.footer)},header:s?jsxs("div",{style:{alignItems:g?.styles?.panelHeader?.alignItems},className:P("flex min-w-0 flex-1 items-center justify-between gap-token-md",l&&"flex-wrap"),children:[jsxs("div",{className:P("flex min-w-0 flex-1 items-center gap-token-sm",l&&"basis-auto"),children:[d?jsx("span",{className:"inline-flex size-8 shrink-0 items-center justify-center rounded-md border border-primary/30 bg-primary/10 text-primary",children:jsx(d,{className:"size-4 text-primary",color:"currentColor",stroke:"currentColor"})}):null,jsxs("div",{className:"min-w-0",children:[jsx("h2",{style:{margin:0},className:"truncate text-base font-semibold text-foreground",children:s}),p.description?jsx("div",{className:"mt-1 text-sm text-muted-foreground",children:p.description}):null]})]}),u?jsx("div",{className:P("shrink-0",l&&"max-w-full"),children:u}):null]}):void 0,...p,...y,decoration:jsxs(Fragment,{children:[a,x?jsx(Yi,{...r}):null]}),"data-monkeys-bento-level":f?v:void 0,style:{...f?w:{},...p.style,...x?{borderColor:"transparent"}:{}},children:e})})}i(jl,"BentoPanel");var Gl=Symbol.for("@inf-monkeys-tech/monkeys-design/dialog-dock@1"),ql=globalThis,xf=ql[Gl]??(ql[Gl]=he.createContext(null)),yt=i(()=>he.useContext(xf),"useDialogDock");var Qi=he.forwardRef(({children:e,className:t,style:o,closeLabel:n="Close",showCloseButton:r=true,onInteractOutside:a,...l},s)=>{let d=yt(),u=he.useId(),m=he.useRef(null),c=he.useRef(false);return he.useEffect(()=>{c.current&&!d?.collapsed&&d?.activeId===u&&m.current?.focus(),c.current=!!d?.collapsed;},[d?.collapsed,d?.activeId,u]),he.useEffect(()=>d?.register(u),[d?.register,u]),d?.container?jsx(_e.Portal,{container:d.container,children:jsx("div",{style:{display:"contents"},children:jsx(tn,{children:jsx(jl,{className:"monkeys-dialog-dock-panel overflow-auto",contentClassName:"shrink-0",style:{display:d.activeId===u?void 0:"none"},children:jsxs(_e.Content,{...l,ref:s,"data-monkeys-dialog-content":true,"data-presentation":"docked","data-title-visible":d.showTitle,"data-collapsible":d.collapsible,className:P("monkeys-dialog-dock-content",t),style:o,onInteractOutside:p=>{a?.(p),p.preventDefault();},children:[e,d.collapsible&&jsx("button",{ref:m,type:"button",className:"monkeys-dialog-dock-collapse","aria-label":d.collapseLabel,title:d.collapseLabel,"aria-expanded":!d.collapsed,onClick:()=>d.setCollapsed(true),children:jsx(PanelRightClose,{"aria-hidden":"true",className:"size-4"})}),r&&jsxs(_e.Close,{className:"monkeys-dialog-dock-close","aria-label":typeof n=="string"?n:void 0,children:[jsx(X,{"aria-hidden":"true",className:"size-4"}),jsx("span",{className:"sr-only",children:n})]})]})})})})}):null});Qi.displayName="DockedDialogContent";var Yl=forwardRef(i(function({slotComponent:t,...o},n){return t?jsx(t,{...o,ref:n}):jsx(Button,{...o,ref:n})},"ButtonCore"));var Tf=forwardRef(i(function({dir:t,...o},n){let r=useDirection();return jsx(DirectionProvider,{direction:t==="ltr"||t==="rtl"?t:r,children:jsx(Tabs.Root,{...o,dir:t,ref:n})})},"TabsRoot")),En={Root:Tf,List:Tabs.List,Trigger:Tabs.Tab,Content:Tabs.Panel};var Mf=he.forwardRef(({className:e,style:t,...o},n)=>jsx(to.Item,{ref:n,className:P("border-b",e),style:{borderColor:"var(--monkeys-component-accordion-item-border-color, hsl(var(--border)))",...t},...o}));Mf.displayName="AccordionItem";var If=he.forwardRef(({className:e,children:t,...o},n)=>jsx(to.Header,{className:"flex",children:jsxs(to.Trigger,{ref:n,className:P("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,jsx(ChevronDown,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));If.displayName="AccordionTrigger";var Bf=he.forwardRef(({className:e,children:t,...o},n)=>jsx(to.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:jsx("div",{className:P("pb-4 pt-0",e),children:t})}));Bf.displayName="AccordionContent";var Af=he.forwardRef(({className:e,...t},o)=>jsx(Br.Root,{ref:o,className:P("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:jsx(Br.Indicator,{className:"flex items-center justify-center text-current",children:jsx(Check$1,{"aria-hidden":"true",className:"h-4 w-4"})})}));Af.displayName="Checkbox";var Ln=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_[data-slot=icon]]:text-[inherit] [&_[data-slot=icon]_*]:!text-[inherit] [&_[data-slot=icon]_svg]:!stroke-current [&_[data-slot=icon]_svg_*]:!stroke-current [&_[data-slot=end-icon]]:text-[inherit] [&_[data-slot=end-icon]_*]:!text-[inherit] [&_[data-slot=end-icon]_svg]:!stroke-current [&_[data-slot=end-icon]_svg_*]:!stroke-current [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-control-surface shadow-sm ring-offset-control-surface hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),rn=he.forwardRef(({className:e,variant:t,size:o,asChild:n=false,unstyled:r=false,...a},l)=>jsx(Yl,{ref:l,slotComponent:n?Slot:void 0,type:a.type,tabIndex:a.tabIndex,className:r?e:Ln({variant:t,size:o,className:e}),...a}));rn.displayName="Button";var Ef=he.forwardRef(({className:e,children:t,viewportClassName:o,viewportRef:n,onViewportScroll:r,scrollbar:a=true,scrollbarOrientation:l="vertical",scrollBarDisabled:s=false,type:d,...u},m)=>{let c=en();return jsxs(Gt.Root,{ref:m,type:d??(c>0?"auto":void 0),className:P("group relative overflow-hidden",s&&"no-scrollbar",e),...u,children:[jsx(Gt.Viewport,{ref:n,onScroll:r,className:P("h-full w-full rounded-[inherit]",o),children:t}),a?jsx(ed,{orientation:l,className:P(s&&"size-0 p-0")}):null,jsx(Gt.Corner,{})]})});Ef.displayName="ScrollArea";var ed=he.forwardRef(({className:e,orientation:t="vertical",...o},n)=>jsx(Gt.ScrollAreaScrollbar,{ref:n,"data-monkeys-scrollbar":"",orientation:t,className:P("flex touch-none select-none opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 data-[state=visible]:opacity-100",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e),...o,children:jsx(Gt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ed.displayName="ScrollBar";var Lf=he.forwardRef(({className:e,...t},o)=>jsx(ir.Root,{ref:o,className:P("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,children:jsx(ir.Thumb,{className:"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"})}));Lf.displayName="Switch";var Zl=Symbol.for("@inf-monkeys-tech/monkeys-design/tabs-adapter@1"),Jl=globalThis,td=Jl[Zl]??(Jl[Zl]=he.createContext(null));function Ji(){let e=he.useContext(td);if(!e)throw new Error("Tabs slots must be used within Tabs.");return e}i(Ji,"useTabsAdapter");function ea(e,t){return e?he.Children.only(t):void 0}i(ea,"tabsSlot");var Df=he.forwardRef(({variant:e="default",orientation:t="horizontal",activationMode:o="automatic",value:n,defaultValue:r,onValueChange:a,dir:l,asChild:s,children:d,...u},m)=>{let c=ht(),[p,h]=he.useState(r??""),v=n??p,w=he.useId(),g=he.useMemo(()=>({activationMode:o,orientation:t,baseId:w,value:v}),[o,t,w,v]);return jsx(td.Provider,{value:g,children:jsx(En.Root,{ref:m,dir:l??c.dir,orientation:t,"data-variant":e,value:v,onValueChange:f=>{typeof f!="string"||f===v||(n===void 0&&h(f),a?.(f));},render:ea(s,d),...u,children:s?void 0:d})})});Df.displayName="Tabs";var zf=he.forwardRef(({className:e,gap:t,style:o,loop:n,asChild:r,children:a,onKeyDown:l,...s},d)=>{let{activationMode:u,orientation:m}=Ji();return jsx(En.List,{ref:d,"aria-orientation":m,activateOnFocus:u==="automatic",loopFocus:n,onKeyDown:c=>{l?.(c),c.defaultPrevented&&c.preventBaseUIHandler();},render:ea(r,a),className:P("inline-flex h-10 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),style:{gap:t,...o},...s,children:r?void 0:a})});zf.displayName="TabsList";var Uf=he.forwardRef(({className:e,disabled:t,asChild:o,children:n,value:r,...a},l)=>{let s=Ji(),d=ea(o,n),u=!d||typeof d.type!="string"||d.type==="button";return jsx(En.Trigger,{ref:l,value:r,id:`${s.baseId}-trigger-${r}`,"aria-controls":`${s.baseId}-content-${r}`,"data-state":s.value===r?"active":"inactive","data-disabled":t?"":void 0,nativeButton:u,disabled:!u&&t,render:m=>jsx(o?Slot:"button",{...m,disabled:u&&t?true:void 0,children:n}),className:P("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...a})});Uf.displayName="TabsTrigger";var Ff=he.forwardRef(({className:e,value:t,forceMount:o,hidden:n,asChild:r,children:a,...l},s)=>{let d=en(),u=Ji();return jsx(En.Content,{ref:s,value:t,keepMounted:true,id:`${u.baseId}-content-${t}`,"aria-labelledby":`${u.baseId}-trigger-${t}`,"data-state":u.value===t?"active":"inactive",tabIndex:0,render:(m,c)=>jsx(r?Slot:"div",{...m,inert:void 0,hidden:n??(!o&&c.hidden),children:o||!c.hidden?a:null}),className:P("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",d>0&&"gap-[var(--monkeys-bento-gap)]",e),...l})});Ff.displayName="TabsContent";var Of=he.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let r=ht();return jsx(Lo.Portal,{children:jsx(Lo.Content,{...r,...o,ref:n,sideOffset:t,"data-monkeys-component":"tooltip","data-slot":"content","data-surface":"menu",className:P("z-50 overflow-hidden border px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",eo("menu"),e)})})});Of.displayName="TooltipContent";var nd=Symbol.for("@inf-monkeys-tech/monkeys-design/dialog-open@1"),rd=globalThis,id=rd[nd]??(rd[nd]=he.createContext(false));function ad({open:e,defaultOpen:t,onOpenChange:o,modal:n,...r}){let a=yt(),[l,s]=he.useState(t??false),d=e??l;return jsx(id.Provider,{value:d,children:jsx(_e.Root,{...r,open:d,modal:a?false:n,onOpenChange:u=>{s(u),o?.(u);}})})}i(ad,"Dialog");var Hf=_e.Portal;var sd=he.forwardRef(({className:e,...t},o)=>{let n=ht();return jsx(_e.Overlay,{...n,...t,ref:o,className:P("theme-overlay-backdrop fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),"data-monkeys-component":"dialog","data-slot":"overlay","data-monkeys-overlay":true})});sd.displayName="DialogOverlay";var ld=he.forwardRef(({className:e,...t},o)=>{let n=ht();return jsx(_e.Content,{...n,...t,ref:o,className:e,"data-monkeys-component":"dialog","data-slot":"content","data-surface":"dialog","data-monkeys-dialog-content":true})});ld.displayName="DialogSurfaceContent";var Dn=he.forwardRef(({className:e,children:t,showCloseButton:o=true,closeLabel:n="Close",overlayClassName:r,overlayStyle:a,...l},s)=>{let d=yt(),u=he.useContext(id);return d?u?jsx(Qi,{...l,ref:s,className:e,showCloseButton:o,closeLabel:n,children:t}):null:jsxs(Hf,{children:[jsx(sd,{className:r,style:a}),jsxs(ld,{...l,ref:s,className:P("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",eo("dialog"),e),children:[jsx(tn,{children:t}),o?jsxs(_e.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-dialog-surface transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[jsx(X,{"aria-hidden":"true",className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:n})]}):null]})]})});Dn.displayName="DialogContent";var Vf=he.forwardRef(({className:e,...t},o)=>jsx(Dn,{ref:o,className:P("duration-0 data-[state=open]:animate-none data-[state=closed]:animate-none",e),...t}));Vf.displayName="DialogContentNoAnimation";var Wf=i(({className:e,...t})=>jsx("div",{className:P(yt()?.showTitle===false?"contents":"flex flex-col space-y-1.5 text-center sm:text-left",e),...t}),"DialogHeader");Wf.displayName="DialogHeader";var ta=i(({className:e,...t})=>jsx("div",{className:P("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}),"DialogFooter");ta.displayName="DialogFooter";var oa=he.forwardRef(({className:e,...t},o)=>jsx(_e.Title,{ref:o,className:P("text-lg font-semibold leading-none tracking-tight",e,yt()?.showTitle===false&&"sr-only"),...t}));oa.displayName="DialogTitle";var na=he.forwardRef(({className:e,...t},o)=>jsx(_e.Description,{ref:o,className:P("text-sm text-muted-foreground",e),...t}));na.displayName="DialogDescription";he.forwardRef((e,t)=>{let o=yt()?_e.Trigger:qe.Trigger;return jsx(o,{...e,ref:t})});var jf=qe.Portal,dd=he.forwardRef(({className:e,style:t,...o},n)=>{let r=ht();return jsx(qe.Overlay,{...r,...o,ref:n,className:P("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),"data-monkeys-component":"alert-dialog","data-slot":"overlay","data-monkeys-overlay":true,style:{pointerEvents:"auto",...t}})});dd.displayName="AlertDialogOverlay";var Gf=he.forwardRef(({className:e,style:t,children:o,...n},r)=>{let a=ht();return yt()?jsx(Dn,{...n,...a,ref:r,role:"alertdialog",showCloseButton:false,className:e,style:t,children:o}):jsxs(jf,{children:[jsx(dd,{}),jsx(qe.Content,{...a,...n,ref:r,className:P("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",eo("dialog"),e),"data-monkeys-component":"alert-dialog","data-slot":"content","data-surface":"dialog","data-monkeys-dialog-content":true,style:{pointerEvents:"auto",...t},children:jsx(tn,{children:o})})]})});Gf.displayName="AlertDialogContent";var qf=i(({className:e,...t})=>jsx("div",{className:P("flex flex-col space-y-2 text-center sm:text-left",e),...t}),"AlertDialogHeader"),Kf=i(({className:e,...t})=>jsx("div",{className:P("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}),"AlertDialogFooter"),Xf=he.forwardRef(({className:e,...t},o)=>{let n=yt()?_e.Title:qe.Title;return jsx(n,{ref:o,className:P("text-lg font-semibold",e,yt()?.showTitle===false&&"sr-only"),...t})}),Yf=he.forwardRef(({className:e,...t},o)=>{let n=yt()?_e.Description:qe.Description;return jsx(n,{ref:o,className:P("text-sm text-muted-foreground",e),...t})}),Qf=he.forwardRef(({className:e,...t},o)=>{let n=yt()?_e.Close:qe.Action;return jsx(n,{ref:o,className:P(Ln(),e),...t})}),Zf=he.forwardRef(({className:e,...t},o)=>{let n=yt()?_e.Close:qe.Action;return jsx(n,{ref:o,className:P(Ln({variant:"destructive"}),e),...t})}),Jf=he.forwardRef(({className:e,...t},o)=>{let n=yt()?_e.Close:qe.Cancel;return jsx(n,{ref:o,className:P(Ln({variant:"outline"}),"mt-2 sm:mt-0",e),...t})});qf.displayName="AlertDialogHeader";Kf.displayName="AlertDialogFooter";Xf.displayName="AlertDialogTitle";Yf.displayName="AlertDialogDescription";Qf.displayName="AlertDialogAction";Zf.displayName="AlertDialogDangerAction";Jf.displayName="AlertDialogCancel";var Un=he.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,type:n,...r},a)=>jsx("input",{ref:a,type:n,className:o?e:P("flex w-full border border-input bg-control-surface px-3 text-foreground ring-offset-control-surface transition-[border-color,background-color,color,box-shadow] file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t==="compact"?"h-9 rounded-md py-1 text-sm shadow-sm":"h-10 rounded-md py-2 text-sm shadow-sm",t==="shadow"&&"rounded-lg shadow-sm shadow-black/[0.02] dark:border-white/10 dark:bg-white/[0.04] dark:shadow-none",e),...r}));Un.displayName="Input";var eh=he.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,...n},r)=>jsx("textarea",{ref:r,className:o?e:P("flex w-full border border-input bg-control-surface px-3 py-2 text-foreground ring-offset-control-surface placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t==="compact"?"min-h-[60px] rounded-md text-sm shadow-sm":"min-h-[80px] rounded-md text-sm",t==="shadow"&&"rounded-lg shadow-sm shadow-black/[0.02] dark:border-white/10 dark:bg-white/[0.04] dark:shadow-none",e),...n}));eh.displayName="Textarea";var th=he.forwardRef((e,t)=>jsx("select",{ref:t,...e}));th.displayName="NativeSelect";var oh=he.forwardRef((e,t)=>jsx("option",{ref:t,...e}));oh.displayName="NativeOption";var fh=[],an={expandedWidth:224,duration:280,copyDuration:180,copyOffset:8,easing:"cubic-bezier(0.16, 1, 0.3, 1)"},sn={duration:180,closedWidth:28,easing:"cubic-bezier(0.16, 1, 0.3, 1)"};function md({children:e}){return jsx(tt,{rowSelector:"[data-row]",highlightClassName:"sidebar-glide-highlight rounded-[7px] bg-hover-2",className:"group/glide flex flex-col gap-px",children:e})}i(md,"GlideGroup");function gd({icon:e,label:t,active:o=false,count:n,onClick:r}){return jsxs("button",{"data-row":true,type:"button",onClick:r,className:`sidebar-row relative z-10 mx-2 flex h-8 items-center rounded-[var(--bui-radius-control)] px-2 text-left
|
|
210
|
+
shadow-btn transition-colors duration-100 hover:bg-hover`,children:m})]})]})})}i(Jm,"BUIInsightCards");function rg({groups:e,onSelect:t,trigger:o,anchorRef:n,uploadContent:r,triggerLabel:a="\u6DFB\u52A0\u5185\u5BB9",emptyLabel:l="\u6682\u65E0\u53EF\u7528\u64CD\u4F5C",disabled:s=false,open:d,defaultOpen:u=false,onOpenChange:m,styles:c,classNames:p}){let[h,v]=useState(u),w=Qt(),g=Ko(),f=Number(g.values["component.ui.quickPromptMenu.sideOffset"]),x=Number(g.values["component.ui.quickPromptMenu.collisionPadding"]),y=Number(g.values["component.ui.quickPromptMenu.maxHeightRatio"]);if(!Number.isFinite(f)||f<0||!Number.isFinite(x)||x<0||!Number.isFinite(y)||y<=0||y>1)throw new TypeError("QuickPromptMenu positioning tokens require non-negative CSS pixel numbers and a maxHeightRatio in (0, 1].");let $={"--bui-quick-prompt-width":g.cssValues["component.ui.quickPromptMenu.width"],"--bui-quick-prompt-height-ratio":y,"--bui-quick-prompt-border-width":g.cssValues["component.ui.size.s1"],"--bui-quick-prompt-radius":g.cssValues["semantic.ui.radius.container"],"--bui-quick-prompt-focus-width":g.cssValues["component.ui.size.s2"],"--bui-quick-prompt-focus-color":g.cssValues["component.ui.focus"],"--bui-quick-prompt-layer":g.cssValues["component.ui.layer.overlayBase"],...c?.content},M=s||!!o?.props.disabled,C=!M&&(d??h),R=i(L=>{L&&M||(v(L),m?.(L));},"setOpen"),P=e.filter(L=>L.options.length>0),F=r!=null&&r!==false;return jsx(U,{children:jsxs(mo.Root,{modal:false,open:C,onOpenChange:R,children:[jsx(mo.Trigger,{asChild:true,children:o?cloneElement(o,{type:o.props.type??"button",disabled:M,"aria-label":o.props["aria-label"]??a}):jsx(No,{shape:"icon",size:"sm",disabled:M,"aria-label":a,children:jsx(Plus,{size:g.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"})})}),n&&jsx(mo.Anchor,{virtualRef:n}),C&&jsx(Cn,{children:jsx(U,{portal:true,children:jsxs(mo.Content,{dir:w,side:"top",align:"start",sideOffset:f,collisionPadding:x,"aria-label":a,"data-anchor":n?"container":"trigger",className:["bui-quick-prompt-menu",p?.content].filter(Boolean).join(" "),style:$,children:[F&&jsx("div",{className:["bui-quick-prompt-upload",p?.upload].filter(Boolean).join(" "),style:c?.upload,children:r}),P.length>0?jsx("div",{className:["bui-quick-prompt-groups",p?.groups].filter(Boolean).join(" "),style:c?.groups,children:P.map((L,B)=>jsxs("section",{"aria-label":L.label,children:[jsx("h2",{className:"bui-quick-prompt-heading",children:L.label}),L.options.map(k=>jsx(No,{variant:"ghost",size:"sm",icon:jsx(Box,{size:g.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"}),className:"bui-quick-prompt-option",onClick:()=>{R(false),t(k);},children:jsxs("span",{className:"bui-quick-prompt-copy",children:[jsx("span",{children:k.label}),k.description&&jsx("span",{className:"bui-quick-prompt-description",children:k.description})]})},k.key))]},`${L.label}-${B}`))}):F?null:jsx("p",{className:"bui-quick-prompt-empty",children:l})]})})})]})})}i(rg,"BUIQuickPromptMenu");var ig={title:"Recommendation",alternatives:"Alternatives",otherOptions:"Other options",accepted:"Accepted"},ag=[];function hl({signal:e,tone:t}){return jsx("span",{className:"flex items-end gap-0.5",children:[0,1,2].map(o=>jsx("span",{className:"w-1 rounded-full transition-colors duration-300",style:{height:10,background:o<e?t:"var(--bui-line-strong)"}},o))})}i(hl,"Meter");function sg({options:e=ag,labels:t,accepted:o=false,onAccept:n}){let r=Te(ig,t),[a,l]=useState(0),[s,d]=useState(false),u=e[a]??e[0],m=e.map((c,p)=>({o:c,i:p})).filter(({i:c})=>c!==a);return e.length?jsx(U,{children:jsxs("div",{className:"w-full max-w-95 overflow-hidden rounded-card bg-surface shadow-card",children:[jsxs("div",{className:"primitive-card-pad",children:[jsx("span",{className:"text-[14px] font-medium text-ink",children:r.title}),jsx("p",{className:"mt-1.5 min-h-12 text-[13px] leading-relaxed text-ink-2",style:{animation:"bui-fade-in 180ms ease-out both"},children:u.body},u.key)]}),jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-300",style:{gridTemplateRows:s?"1fr":"0fr",opacity:s?1:0,transitionTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)"},children:jsx("div",{className:"overflow-hidden",children:jsxs("div",{className:"border-t border-line bg-surface px-2 py-2",children:[jsx("p",{className:"px-1.5 pb-1 text-[11px] font-medium text-ink-3",children:r.otherOptions}),m.map(({o:c,i:p})=>jsxs("button",{type:"button",onClick:()=>{l(p);},className:`flex w-full items-center gap-2.5 rounded-control px-1.5 py-1.5
|
|
211
|
+
text-left transition-colors duration-100 hover:bg-hover`,children:[jsx(hl,{signal:c.signal,tone:c.tone}),jsx("span",{className:"min-w-0 flex-1 truncate text-[12.5px] text-ink",children:c.short}),jsx("span",{className:"shrink-0 text-[11px] text-ink-3",children:c.label})]},c.key))]})})}),jsxs("div",{className:"primitive-card-footer flex items-center justify-between gap-3 bg-surface",children:[jsxs("span",{className:"flex items-center gap-2",children:[jsx(hl,{signal:u.signal,tone:u.tone}),jsx("span",{className:"text-[12.5px] font-medium text-ink-2",children:u.label})]}),jsxs("span",{className:"-mr-0.5 flex items-center gap-2",children:[jsx(Me,{variant:"secondary",size:"sm","aria-expanded":s,onClick:()=>d(c=>!c),className:"px-2.5 text-[12.5px]",children:r.alternatives}),jsx(Me,{variant:o?"success":u.ctaVariant,size:"sm",onClick:()=>n?.(u.key??String(a)),className:"text-[12.5px]",children:o?r.accepted:u.cta})]})]})]})}):null}i(sg,"BUIRecommendationCard");var Hi={company:270,categories:275,last:190,strength:210,links:175,ai:240},$r={strong:{label:"Very strong",color:"var(--bui-green)",rank:3},weak:{label:"Weak",color:"var(--bui-orange)",rank:2},veryweak:{label:"Very weak",color:"var(--bui-red)",rank:1},none:{label:"No communication",color:"var(--bui-ink-3)",rank:0}};var dg=[];function we({children:e,size:t=14,strokeWidth:o=1.8}){return jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e})}i(we,"Icon");var Jt={Text:jsx("path",{d:"M4 6h16M4 12h10M4 18h7"}),File:jsxs("g",{children:[jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsx("path",{d:"M14 2v6h6"})]}),Collection:jsxs("g",{children:[jsx("ellipse",{cx:"12",cy:"5",rx:"8",ry:"3"}),jsx("path",{d:"M4 5v14c0 1.66 3.58 3 8 3s8-1.34 8-3V5M4 12c0 1.66 3.58 3 8 3s8-1.34 8-3"})]}),"Single select":jsxs("g",{children:[jsx("circle",{cx:"12",cy:"12",r:"9"}),jsx("path",{d:"m8.5 12 2.4 2.4 4.6-4.9"})]}),"Multi select":jsxs("g",{children:[jsx("path",{d:"M11 6h9M11 12h9M11 18h9"}),jsx("path",{d:"M4 6l1.5 1.5L8 5M4 12l1.5 1.5L8 11M4 18l1.5 1.5L8 17"})]}),URL:jsxs("g",{children:[jsx("path",{d:"M10 13a5 5 0 0 0 7.1.1l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1"}),jsx("path",{d:"M14 11a5 5 0 0 0-7.1-.1l-2 2A5 5 0 0 0 12 20l1.1-1.1"})]}),Reference:jsx("path",{d:"M7 17 17 7M9 7h8v8"}),JSON:jsxs("g",{children:[jsx("path",{d:"M8 4c-2 0-2 2-2 3s.5 3-2 3c2.5 0 2 2 2 3s0 3 2 3"}),jsx("path",{d:"M16 4c2 0 2 2 2 3s-.5 3 2 3c-2.5 0-2 2-2 3s0 3-2 3"})]}),"File splitter":jsxs("g",{children:[jsx("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),jsx("path",{d:"M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"})]}),Date:jsxs("g",{children:[jsx("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2.5"}),jsx("path",{d:"M8 3v4M16 3v4M3 10h18"})]})},Vi={model:jsx("path",{d:"M12 3l1.7 5.1a2 2 0 0 0 1.2 1.2L20 11l-5.1 1.7a2 2 0 0 0-1.2 1.2L12 19l-1.7-5.1a2 2 0 0 0-1.2-1.2L4 11l5.1-1.7a2 2 0 0 0 1.2-1.2z"}),web:jsxs("g",{children:[jsx("circle",{cx:"12",cy:"12",r:"9"}),jsx("path",{d:"M3 12h18M12 3a13.5 13.5 0 0 1 3.5 9 13.5 13.5 0 0 1-3.5 9 13.5 13.5 0 0 1-3.5-9A13.5 13.5 0 0 1 12 3z"})]}),user:jsxs("g",{children:[jsx("circle",{cx:"12",cy:"8",r:"4"}),jsx("path",{d:"M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1"})]})};var bl=["Text","File","Collection","Single select","Multi select","URL","Reference","JSON","File splitter"];function vl({checked:e,mixed:t=false,onChange:o,label:n}){return jsxs("label",{className:"records-checkbox",title:n,onClick:r=>r.stopPropagation(),children:[jsx("input",{type:"checkbox",checked:e,onChange:o,"aria-label":n}),jsx("span",{className:`records-checkbox-box ${e||t?"is-active":""}`,children:t?jsx("span",{className:"records-checkbox-dash"}):e?jsx(we,{size:12,children:jsx("path",{d:"m5 12 4 4L19 6"})}):null})]})}i(vl,"Checkbox");function yl({name:e,colors:t}){let o=t[e]??{base:"var(--bui-ink-3)"};return jsx("span",{className:"records-tag",style:{"--bui-tag-base":o.base},children:e})}i(yl,"Tag");function cg({tags:e,colors:t}){let o=oe(),n=useRef(null),r=useRef(null),[a,l]=useState(e.length);useLayoutEffect(()=>{let d=n.current,u=r.current;if(!d||!u)return;let m=i(()=>{let p=d.clientWidth,h=Array.from(u.querySelectorAll("[data-tag-measure]"),f=>f.offsetWidth),v=u.querySelector("[data-more-measure]")?.offsetWidth??0,w=0,g=0;for(let f=0;f<h.length;f+=1){let x=w+(g>0?4:0)+h[f],y=e.length-(f+1);if(x+(y>0?4+v:0)>p)break;w=x,g+=1;}l(g);},"update");m();let c=new ResizeObserver(m);return c.observe(d),()=>c.disconnect()},[e]);let s=e.length-a;return jsxs("div",{ref:n,className:"records-tags",title:e.join(", "),"aria-label":o("Categories: {categories}",{categories:e.join(", ")}),children:[jsxs("div",{ref:r,className:"records-tags-measure","aria-hidden":true,children:[e.map(d=>jsx("span",{"data-tag-measure":true,children:jsx(yl,{name:d,colors:t})},d)),jsxs("span",{"data-more-measure":true,className:"records-more-tag",children:["+",e.length]})]}),e.slice(0,a).map(d=>jsx(yl,{name:d,colors:t},d)),s>0&&jsxs("span",{className:"records-more-tag",children:["+",s]})]})}i(cg,"TagList");function Mn(){let e=oe();return jsxs("span",{className:"records-calc",children:[jsx("span",{className:"records-muted",children:e("Calculating\u2026")}),jsx("span",{className:"records-pulse"})]})}i(Mn,"CalcCell");function Sr({on:e,onToggle:t,label:o}){return jsx("button",{type:"button",role:"switch","aria-checked":e,"aria-label":o,onClick:t,className:"relative h-4.5 w-7.5 shrink-0 rounded-[var(--bui-radius-pill)] transition-colors duration-150",style:{background:e?"var(--bui-accent)":"var(--bui-line-strong)"},children:jsx("span",{className:"absolute top-0.5 left-0.5 size-3.5 rounded-full bg-white shadow-btn transition-transform duration-150",style:{transform:e?"translateX(12px)":"translateX(0)",transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"}})})}i(Sr,"MiniSwitch");function Cr({label:e,icon:t,sortKey:o,sort:n,onSort:r,onResizeStart:a,resizing:l=false,className:s="",selected:d=false,onPick:u}){let m=oe();return jsxs("th",{className:`records-header-cell ${d?"is-colsel":""} ${s}`,children:[jsxs("button",{type:"button",className:"records-header-button",onClick:u,children:[jsx("span",{className:"records-header-icon",children:t}),jsx("span",{className:"truncate",children:e}),o&&jsx("span",{role:"button",tabIndex:0,"aria-label":m("Sort by {label}",{label:e}),onClick:c=>{c.stopPropagation(),r(o);},onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),c.stopPropagation(),r(o));},className:`records-sort ${n.key===o?"is-visible":""}`,style:{transform:n.key===o&&n.dir===-1?"rotate(180deg)":void 0},children:jsx(we,{size:12,children:jsx("path",{d:"M12 5v14M5 12l7 7 7-7"})})})]}),jsx("span",{role:"separator","aria-orientation":"vertical","aria-label":m("Resize {label} column",{label:e}),className:`records-resize-handle ${l?"is-resizing":""}`,onPointerDown:a})]})}i(Cr,"HeaderCell");function Ao({label:e,children:t}){return jsxs("div",{className:"relative flex h-8 items-center justify-between",children:[jsx("span",{className:"text-[13px] text-ink-3",children:e}),t]})}i(Ao,"ConfigRow");function xl({label:e,options:t,selected:o,onSelect:n}){return jsxs("div",{role:"menu","aria-label":e,className:"absolute left-full top-0 z-30 ml-5 w-[210px] rounded-[12px] bg-surface p-1.5 shadow-overlay",style:{animation:"bui-pop-in 140ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top left"},children:[jsx("div",{className:"px-2 pb-1 pt-0.5 text-[11.5px] font-medium text-ink-3",children:e}),jsx(et,{className:"flex flex-col gap-px",children:t.map(r=>jsxs("button",{"data-menu-row":true,type:"button",role:"menuitemradio","aria-checked":o===r.label,onClick:()=>n(r.label),className:"relative z-10 flex h-8 w-full items-center gap-1.5 rounded-[var(--bui-radius-control)] px-1.5 text-left text-[13px] font-medium text-ink",children:[jsx("span",{className:"flex size-4 shrink-0 items-center justify-center text-ink-2",children:r.icon}),jsx("span",{className:"min-w-0 flex-1 truncate",children:r.label}),jsx("span",{className:o===r.label?"text-ink":"invisible",children:jsx(we,{size:14,strokeWidth:2.2,children:jsx("path",{d:"m5 12 4 4L19 6"})})})]},r.label))})]})}i(xl,"ConfigPicker");function ug({options:e,selected:t,onToggle:o}){let n=oe();return jsxs("div",{role:"menu","aria-label":n("Calculation inputs"),className:"absolute left-full top-0 z-30 ml-5 w-[220px] rounded-[12px] bg-surface p-1.5 shadow-overlay",style:{animation:"bui-pop-in 140ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top left"},children:[jsx("div",{className:"px-2 pb-1 pt-0.5 text-[11.5px] font-medium text-ink-3",children:n("Use values from")}),jsx(et,{className:"flex flex-col gap-px",children:e.map(r=>{let a=t.includes(r);return jsxs("button",{"data-menu-row":true,type:"button",role:"menuitemcheckbox","aria-checked":a,onClick:()=>o(r),className:"relative z-10 flex h-8 w-full items-center gap-1.5 rounded-[var(--bui-radius-control)] px-1.5 text-left text-[13px] font-medium text-ink",children:[jsx("span",{className:`flex size-4 shrink-0 items-center justify-center rounded-[5px] border ${a?"border-accent bg-accent text-white":"border-line-strong text-transparent"}`,children:jsx(we,{size:11,strokeWidth:2.4,children:jsx("path",{d:"m5 12 4 4L19 6"})})}),jsx("span",{className:"min-w-0 flex-1 truncate",children:r})]},r)})})]})}i(ug,"InputPicker");function pg({rows:e=dg,fill:t=false,tagColors:o={},columnMeta:n={},models:r=[],inputs:a=[],resultLabel:l="Result",results:s={},calculation:d=null,onRun:u,onSelectionChange:m}){let c=oe(),[p,h]=useState(new Set),[v,w]=useState({key:"name",dir:1}),[g,f]=useState(Hi),[x,y]=useState(100),[$,M]=useState(false),[C,R]=useState(null),P=useRef(null),F=useRef(null),L=useRef(null);useEffect(()=>()=>L.current?.(),[]);let[B,k]=useState(null),T=useRef({}),[D,_]=useState(false),[Z,Y]=useState(false),[O,J]=useState(null),[E,te]=useState({}),[ee,me]=useState({}),[de,I]=useState(new Set),[j,A]=useState(false),[W,ae]=useState({required:false,allowEmpty:true,confidence:false}),[se,re]=useState(null),[Be,K]=useState(null),[ge,Je]=useState(false),Tt=Object.keys(s).length>0,[ye,pt]=useState(false),_t=useRef(null),$o=useRef(false);useLayoutEffect(()=>{if($||!F.current)return;let S=Array.from(F.current.querySelectorAll("thead th"));if(S.length<6)return;let X={company:S[0].getBoundingClientRect().width,categories:S[1].getBoundingClientRect().width,last:S[2].getBoundingClientRect().width,strength:S[3].getBoundingClientRect().width,links:S[4].getBoundingClientRect().width,ai:Hi.ai};P.current=X,f(X),y(S[S.length-1].getBoundingClientRect().width),M(true);},[$]);let It=useMemo(()=>[...e].sort((S,X)=>(v.key==="name"?S.name.localeCompare(X.name):v.key==="last"?S.last.localeCompare(X.last):$r[S.strength].rank-$r[X.strength].rank)*v.dir),[e,v]);useEffect(()=>{if(!ye||!_t.current)return;let S=_t.current.closest(".records-scroll");S&&($o.current=true,S.scrollLeft=S.scrollWidth);let X=_t.current.getBoundingClientRect();k({col:l,x:Math.min(X.left,window.innerWidth-336),y:X.bottom+6}),pt(false);},[ye,ge]),useEffect(()=>{if(!B&&!se&&!Be)return;let S=i(X=>{X.target.closest("[data-recpop]")||(k(null),J(null),Y(false),A(false),re(null),K(null));},"close");return document.addEventListener("pointerdown",S),()=>document.removeEventListener("pointerdown",S)},[B,se,Be]);let mt=i(S=>X=>{let Oe=X.currentTarget.closest("th");Oe&&(re(null),K(null),J(null),Y(false),A(false),k(Bt=>{if(Bt?.col===S)return null;let At=Oe.getBoundingClientRect();return {col:S,x:Math.min(At.left,window.innerWidth-336),y:At.bottom+6}}));},"openProp"),q=i((S,X)=>!!d&&d.col===S&&X>=d.resolved,"isCalc"),wt=It.length>0&&It.every(S=>p.has(S.id)),io=!wt&&It.some(S=>p.has(S.id)),ao=i(S=>w(X=>X.key===S?{key:S,dir:X.dir*-1}:{key:S,dir:1}),"toggleSort"),so=i((S,X=120)=>Oe=>{Oe.preventDefault(),Oe.stopPropagation(),k(null),J(null),Y(false),A(false),re(null),K(null),L.current?.();let Bt=Oe.clientX,At=g[S],So=document.body.style.cursor,un=document.body.style.userSelect;document.body.style.cursor="col-resize",document.body.style.userSelect="none",R(S);let Rt=i(Co=>{let Ht=Math.max(X,At+Co.clientX-Bt);f(On=>({...On,[S]:Ht}));},"move"),at=i(()=>{window.removeEventListener("pointermove",Rt),window.removeEventListener("pointerup",at),window.removeEventListener("pointercancel",at),document.body.style.cursor=So,document.body.style.userSelect=un,L.current=null,R(null);},"finish");L.current=at,window.addEventListener("pointermove",Rt),window.addEventListener("pointerup",at),window.addEventListener("pointercancel",at);},"startColumnResize"),cn=i(S=>{h(S),m?.([...S]);},"commitSelection"),Kr=i(S=>{let X=new Set(p);X.has(S)?X.delete(S):X.add(S),cn(X);},"toggleRow"),Xr=i(()=>{let S=new Set(p);wt?It.forEach(X=>S.delete(X.id)):It.forEach(X=>S.add(X.id)),cn(S);},"toggleAll"),Ce=B?{...n[B.col]??{type:"Text",tool:"Manual",toolKind:"user"},...E[B.col]}:null,Xt=B&&Ce?ee[B.col]??(Ce.inputs?[Ce.inputs]:[]):[],lo=g.company+g.categories+g.last+g.strength+g.links+(ge?g.ai:0)+x;return jsx(U,{children:jsxs("div",{className:`records-shell${t?" is-fill":""}`,children:[jsx("div",{className:"records-scroll",tabIndex:0,"aria-label":c("Companies table. Scroll horizontally and vertically to view all columns and records."),onScroll:()=>{if($o.current){$o.current=false;return}k(null),J(null),Y(false),A(false),re(null),K(null);},children:jsxs("table",{ref:F,className:"records-table",style:{width:$?lo:"100%",minWidth:lo},children:[jsxs("colgroup",{children:[jsx("col",{className:"records-company-col",style:{width:g.company}}),jsx("col",{className:"records-category-col",style:{width:g.categories}}),jsx("col",{className:"records-last-col",style:{width:g.last}}),jsx("col",{className:"records-strength-col",style:{width:g.strength}}),jsx("col",{className:"records-link-col",style:{width:g.links}}),ge&&jsx("col",{style:{width:g.ai}}),jsx("col",{style:{width:100}})]}),jsx("thead",{children:jsxs("tr",{children:[jsxs("th",{className:`records-header-cell records-sticky-cell ${B?.col==="Company"?"is-colsel":""}`,children:[jsxs("div",{className:"records-company-header",style:{cursor:"pointer"},onClick:S=>mt("Company")(S),children:[jsx(vl,{checked:wt,mixed:io,onChange:Xr,label:c("Select all companies")}),jsx("span",{children:c("Company")})]}),jsx("span",{role:"separator","aria-orientation":"vertical","aria-label":c("Resize Company column"),className:`records-resize-handle ${C==="company"?"is-resizing":""}`,onPointerDown:so("company",180)})]}),jsx(Cr,{label:c("Categories"),selected:B?.col==="Categories",onPick:mt("Categories"),sort:v,onSort:ao,onResizeStart:so("categories"),resizing:C==="categories",icon:jsx(we,{size:15,children:Jt["Multi select"]})}),jsx(Cr,{label:c("Last interaction"),selected:B?.col==="Last interaction",onPick:mt("Last interaction"),sortKey:"last",sort:v,onSort:ao,onResizeStart:so("last"),resizing:C==="last",icon:jsx(we,{size:15,children:Jt.Date})}),jsx(Cr,{label:c("Connection strength"),selected:B?.col==="Connection strength",onPick:mt("Connection strength"),sortKey:"strength",sort:v,onSort:ao,onResizeStart:so("strength"),resizing:C==="strength",icon:jsx(we,{size:15,children:Jt["Single select"]})}),jsx(Cr,{label:c("Links"),selected:B?.col==="Links",onPick:mt("Links"),sort:v,onSort:ao,onResizeStart:so("links"),resizing:C==="links",icon:jsx(we,{size:15,children:Jt.URL})}),ge&&jsxs("th",{ref:_t,className:`records-header-cell ${B?.col===l?"is-colsel":""}`,children:[jsxs("button",{type:"button",className:"records-header-button",onClick:mt(l),children:[jsx("span",{className:"records-header-icon",children:jsx(we,{size:15,children:Jt.Text})}),jsx("span",{className:"truncate",children:l})]}),jsx("span",{role:"separator","aria-orientation":"vertical","aria-label":c("Resize {label} column",{label:l}),className:`records-resize-handle ${C==="ai"?"is-resizing":""}`,onPointerDown:so("ai")})]}),jsx("th",{className:"records-header-cell",children:jsxs("div",{className:"flex h-[35px] items-center gap-1 px-2",children:[jsx("button",{type:"button","aria-label":c("New property"),"data-recpop":true,onClick:S=>{k(null),K(null);let X=S.currentTarget.getBoundingClientRect();re(Oe=>Oe?null:{x:Math.min(X.left,window.innerWidth-276),y:X.bottom+6});},className:"flex size-7 items-center justify-center rounded-[var(--bui-radius-scale-7)] text-ink-2 transition-colors duration-100 hover:bg-hover hover:text-ink",children:jsx(we,{size:15,strokeWidth:2,children:jsx("path",{d:"M12 5v14M5 12h14"})})}),jsx("button",{type:"button","aria-label":c("Table options"),"aria-expanded":!!Be,"data-recpop":true,onClick:S=>{k(null),re(null);let X=S.currentTarget.getBoundingClientRect();K(Oe=>Oe?null:{x:Math.max(8,Math.min(X.right-220,window.innerWidth-228)),y:X.bottom+6});},className:"flex size-7 items-center justify-center rounded-[var(--bui-radius-scale-7)] text-ink-3 transition-colors duration-100 hover:bg-hover hover:text-ink",children:jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":true,children:[jsx("circle",{cx:"5",cy:"12",r:"1.6"}),jsx("circle",{cx:"12",cy:"12",r:"1.6"}),jsx("circle",{cx:"19",cy:"12",r:"1.6"})]})})]})})]})}),jsx("tbody",{"data-sound-silent":true,children:It.map((S,X)=>{let Oe=p.has(S.id),Bt=$r[S.strength];return jsxs("tr",{className:`records-row ${Oe?"is-selected":""}`,children:[jsxs("td",{className:`records-cell records-sticky-cell records-company-cell ${B?.col==="Company"?"is-colsel":""}`,children:[jsx("span",{className:"records-rownum",children:X+1}),jsx(vl,{checked:Oe,onChange:()=>Kr(S.id),label:c("Select {name}",{name:S.name})}),jsx("span",{className:"records-company-mark",children:S.name.slice(0,1).toUpperCase()}),jsx("a",{href:S.website?`https://${S.website}`:"#",onClick:At=>!S.website&&At.preventDefault(),title:S.name,className:`records-company-name ${S.website?"has-link":""}`,children:S.name})]}),jsx("td",{className:`records-cell ${B?.col==="Categories"?"is-colsel":""}`,children:q("Categories",X)?jsx(Mn,{}):jsx(cg,{tags:S.tags,colors:o})}),jsx("td",{className:`records-cell ${S.last==="No contact"?"records-muted":""} ${B?.col==="Last interaction"?"is-colsel":""}`,children:q("Last interaction",X)?jsx(Mn,{}):S.last}),jsx("td",{className:`records-cell ${B?.col==="Connection strength"?"is-colsel":""}`,children:q("Connection strength",X)?jsx(Mn,{}):jsxs("span",{className:"records-strength",children:[jsx("span",{className:"records-strength-dot",style:{background:Bt.color}}),c(Bt.label)]})}),jsx("td",{className:`records-cell ${B?.col==="Links"?"is-colsel":""}`,children:q("Links",X)?jsx(Mn,{}):S.website?jsxs("a",{className:"records-link",href:`https://${S.website}`,title:S.website,target:"_blank",rel:"noreferrer",children:[jsx("span",{className:"records-link-label",children:S.website}),jsx(we,{size:12,children:jsx("path",{d:"M14 5h5v5M19 5l-8 8"})})]}):jsx("span",{className:"records-muted",children:"\u2014"})}),ge&&jsx("td",{className:`records-cell ${B?.col===l?"is-colsel":""}`,children:d?.col===l?X<d.resolved?s[S.id]??"\u2014":jsx(Mn,{}):Tt?s[S.id]??"\u2014":jsx("span",{className:"records-muted",children:"\u2014"})}),jsx("td",{className:"records-cell"})]},S.id)})}),jsx("tfoot",{children:jsxs("tr",{className:"records-calculation-row",children:[jsx("td",{className:"records-cell records-sticky-cell",children:jsxs("span",{className:"records-footer-value records-calculation-label",children:[jsx("span",{className:"records-calculation-number",children:e.length})," ",c("count")]})}),jsx("td",{className:"records-cell",children:jsxs("button",{type:"button",className:"records-add-calculation",onClick:mt("Categories"),children:[jsx(we,{size:15,children:jsx("path",{d:"M12 5v14M5 12h14"})}),c("Add calculation")]})}),jsx("td",{className:"records-cell records-muted",children:jsx("span",{className:"records-footer-value",children:"\u2014"})}),jsx("td",{className:"records-cell",children:jsxs("span",{className:"records-footer-value records-average",children:[jsx("span",{className:"records-strength-dot",style:{background:"var(--bui-orange)"}}),Math.round(e.reduce((S,X)=>S+$r[X.strength].rank,0)/Math.max(1,e.length)/3*100),c("% average")]})}),jsx("td",{className:"records-cell",children:jsxs("span",{className:"records-footer-value records-muted",children:[e.filter(S=>S.website).length," ",c("links")]})}),ge&&jsx("td",{className:"records-cell records-muted",children:jsx("span",{className:"records-footer-value",children:Tt?`${e.length} filled`:"\u2014"})}),jsx("td",{className:"records-cell"})]})})]})}),B&&Ce&&jsxs("div",{"data-recpop":true,className:"fixed z-50 w-[320px] rounded-[14px] bg-surface px-3 pt-3 pb-1.5 shadow-overlay",style:{top:B.y,left:B.x,animation:"bui-pop-in 160ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top left"},children:[jsx("div",{className:"pb-2 text-[13.5px] font-medium text-ink",children:c(B.col)}),jsxs(Ao,{label:c("Type"),children:[jsxs("button",{type:"button","aria-haspopup":"menu","aria-expanded":O==="type",onClick:()=>J(S=>S==="type"?null:"type"),className:"flex items-center gap-1.5 rounded-[var(--bui-radius-chip)] px-1.5 py-1 text-[13px] font-medium text-ink transition-colors duration-100 hover:bg-hover",children:[jsx("span",{className:"text-ink-2",children:jsx(we,{size:14,children:Jt[Ce.type]??Jt.Text})}),Ce.type,jsx("span",{className:"text-ink-3",children:jsx(we,{size:12,strokeWidth:2.2,children:jsx("path",{d:"M9 6l6 6-6 6"})})})]}),O==="type"&&jsx(xl,{label:c("Property type"),selected:Ce.type,options:bl.map(S=>({label:S,icon:jsx(we,{size:15,children:Jt[S]})})),onSelect:S=>{te(X=>({...X,[B.col]:{...X[B.col],type:S}})),J(null);}})]}),jsxs(Ao,{label:c("Tool"),children:[jsxs("button",{type:"button","aria-haspopup":"menu","aria-expanded":O==="tool",onClick:()=>J(S=>S==="tool"?null:"tool"),className:"flex items-center gap-1.5 rounded-[var(--bui-radius-chip)] px-1.5 py-1 text-[13px] font-medium text-ink transition-colors duration-100 hover:bg-hover",children:[jsx("span",{className:Ce.toolKind==="model"?"text-accent":"text-ink-2",children:Ce.toolKind==="model"?jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":true,children:Vi.model}):jsx(we,{size:14,children:Vi[Ce.toolKind]})}),Ce.tool,jsx("span",{className:"text-ink-3",children:jsx(we,{size:12,strokeWidth:2.2,children:jsx("path",{d:"M9 6l6 6-6 6"})})})]}),O==="tool"&&jsx(xl,{label:c("Model"),selected:Ce.tool,options:r.map(S=>({label:S,icon:jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":true,children:Vi.model})})),onSelect:S=>{te(X=>({...X,[B.col]:{...X[B.col],tool:S,toolKind:"model"}})),J(null);}})]}),jsxs(Ao,{label:c("Grounding"),children:[jsxs("span",{className:"flex items-center gap-2",children:[jsx(Sr,{label:c("Grounding"),on:D,onToggle:()=>_(S=>!S)}),jsx("button",{type:"button","aria-label":c("About grounding"),"aria-expanded":Z,onClick:()=>Y(S=>!S),className:"flex size-6 items-center justify-center rounded-[var(--bui-radius-chip)] text-ink-3 transition-colors duration-100 hover:bg-hover hover:text-ink",children:jsx(we,{size:13,children:jsxs("g",{children:[jsx("circle",{cx:"12",cy:"12",r:"9"}),jsx("path",{d:"M12 8h.01M11 12h1v4h1"})]})})})]}),Z&&jsx("div",{className:"absolute right-0 top-[30px] z-30 w-[230px] rounded-[10px] px-3 py-2.5 text-[12px] leading-relaxed shadow-overlay",style:{color:"var(--bui-tooltip-fg)",background:"var(--bui-tooltip-bg)"},role:"status",children:c("Grounding lets the model verify generated values against connected sources.")})]}),jsxs(Ao,{label:c("Inputs"),children:[jsxs("button",{type:"button","aria-haspopup":"menu","aria-expanded":O==="inputs",onClick:()=>J(S=>S==="inputs"?null:"inputs"),className:"flex max-w-[220px] items-center gap-1.5 rounded-[var(--bui-radius-chip)] px-1.5 py-1 text-[13px] text-ink-2 transition-colors duration-100 hover:bg-hover hover:text-ink",children:[Xt.length?jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[Xt.slice(0,2).map(S=>jsx("span",{className:"max-w-[92px] truncate rounded-[5px] bg-accent-tint px-1.5 py-0.5 text-[12px] font-medium text-accent-ink",children:S},S)),Xt.length>2&&jsxs("span",{className:"text-[11px] font-medium text-ink-3",children:["+",Xt.length-2]})]}):jsx("span",{children:c("Select inputs")}),jsx("span",{className:"shrink-0 text-ink-3",children:jsx(we,{size:12,strokeWidth:2.2,children:jsx("path",{d:"M9 6l6 6-6 6"})})})]}),O==="inputs"&&jsx(ug,{selected:Xt,options:a.filter(S=>S!==B.col),onToggle:S=>{me(X=>{let Oe=X[B.col]??(Ce.inputs?[Ce.inputs]:[]),Bt=Oe.includes(S)?Oe.filter(At=>At!==S):[...Oe,S];return {...X,[B.col]:Bt}});}})]}),jsx("div",{contentEditable:true,onInput:S=>{T.current[B.col]=S.currentTarget.textContent??"";},suppressContentEditableWarning:true,role:"textbox","aria-label":c("{column} calculation prompt",{column:B.col}),"aria-multiline":"true",spellCheck:true,className:"mt-2 min-h-[88px] cursor-text rounded-[10px] bg-inset p-3 text-[13px] leading-relaxed shadow-hairline outline-none transition-[box-shadow] duration-150 focus:shadow-[0_0_0_2px_var(--bui-accent)]",children:Ce.prompt?jsxs("span",{className:"text-ink",children:[Ce.prompt.before,Ce.prompt.chip&&jsx("span",{contentEditable:false,className:"rounded-[5px] bg-accent-tint px-1.5 py-0.5 text-[12px] font-medium text-accent-ink",children:Ce.prompt.chip}),Ce.prompt.after]}):jsx("span",{className:"text-ink-3",children:c("Set a prompt (press @ to mention an input)")})}),jsxs("button",{type:"button",disabled:!!d,onClick:()=>{u?.(B.col,{...Ce,selectedInputs:Xt,promptText:T.current[B.col]??[Ce.prompt?.before,Ce.prompt?.chip,Ce.prompt?.after].filter(Boolean).join(" "),grounding:D,...W}),k(null);},className:"mt-2.5 flex h-9 w-full items-center justify-center gap-2 rounded-[var(--bui-radius-scale-9)] text-[12.5px] font-medium text-ink shadow-btn transition-[background-color,transform] duration-150 hover:bg-hover active:scale-[0.98] disabled:opacity-60",children:[jsx(we,{size:14,strokeWidth:1.9,children:jsx("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v6h-6"})}),c("Go calculate")]}),jsxs(et,{className:"mt-3 flex flex-col gap-0.5 border-t border-line pt-2",highlightClassName:"-inset-x-1.5 rounded-[8px] bg-hover",children:[jsxs("button",{"data-menu-row":true,type:"button","aria-pressed":de.has(B.col),onClick:()=>I(S=>{let X=new Set(S);return X.has(B.col)?X.delete(B.col):X.add(B.col),X}),className:"relative z-10 -mx-1.5 flex h-8 items-center gap-2.5 rounded-[var(--bui-radius-control)] px-1.5 text-left text-[13px] leading-none text-ink transition-transform duration-150 active:scale-[0.96]",children:[jsx("span",{className:de.has(B.col)?"text-accent":"text-ink-2",children:jsx(we,{size:15,children:jsx("path",{d:"M12 17v5M8 3h8l-1 7 3 3H6l3-3-1-7z"})})}),de.has(B.col)?c("Unpin"):c("Pin")]}),jsxs("button",{"data-menu-row":true,type:"button","aria-expanded":j,onClick:()=>A(S=>!S),className:"relative z-10 -mx-1.5 flex h-8 items-center gap-2.5 rounded-[var(--bui-radius-control)] px-1.5 text-left text-[13px] leading-none text-ink transition-transform duration-150 active:scale-[0.96]",children:[jsx("span",{className:j?"text-ink":"text-ink-2",children:jsx(we,{size:15,children:jsxs("g",{children:[jsx("circle",{cx:"12",cy:"12",r:"3"}),jsx("path",{d:"M12 2v3M12 19v3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M2 12h3M19 12h3M4.9 19.1 7 17M17 7l2.1-2.1"})]})})}),jsx("span",{className:"flex-1",children:c("More settings")}),jsx("span",{className:`text-ink-3 transition-transform duration-150 ${j?"rotate-90":""}`,children:jsx(we,{size:12,strokeWidth:2.2,children:jsx("path",{d:"M9 6l6 6-6 6"})})})]}),B.col===l&&jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{Je(false),k(null);},className:"relative z-10 -mx-1.5 flex h-8 items-center gap-2.5 rounded-[var(--bui-radius-control)] px-1.5 text-left text-[13px] leading-none text-ink transition-transform duration-150 active:scale-[0.96]",children:[jsx("span",{className:"text-ink-2",children:jsx(we,{size:15,children:jsxs("g",{children:[jsx("path",{d:"M10.6 5.1A9.8 9.8 0 0 1 12 5c7 0 10 7 10 7a16.3 16.3 0 0 1-2.1 3M6.6 6.6A16 16 0 0 0 2 12s3 7 10 7a9.7 9.7 0 0 0 5.4-1.6M3 3l18 18"}),jsx("path",{d:"M9.9 9.9a3 3 0 0 0 4.2 4.2"})]})})}),c("Hide from view")]})]}),j&&jsxs("div",{className:"mt-2 border-t border-line pt-2",style:{animation:"bui-fade-up 160ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsx("div",{className:"pb-1 text-[11.5px] font-medium text-ink-3",children:c("Behavior")}),jsx(Ao,{label:c("Required value"),children:jsx(Sr,{label:c("Required value"),on:W.required,onToggle:()=>ae(S=>({...S,required:!S.required}))})}),jsx(Ao,{label:c("Allow empty results"),children:jsx(Sr,{label:c("Allow empty results"),on:W.allowEmpty,onToggle:()=>ae(S=>({...S,allowEmpty:!S.allowEmpty}))})}),jsx(Ao,{label:c("Show confidence"),children:jsx(Sr,{label:c("Show confidence"),on:W.confidence,onToggle:()=>ae(S=>({...S,confidence:!S.confidence}))})})]})]}),se&&jsxs("div",{"data-recpop":true,className:"fixed z-50 w-[260px] rounded-[14px] bg-surface p-1.5 shadow-overlay",style:{top:se.y,left:se.x,animation:"bui-pop-in 160ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top left"},children:[jsx("div",{className:"px-2 pb-1 pt-1 text-[12px] font-medium text-ink-3",children:c("New property")}),jsx(et,{className:"flex flex-col gap-px",children:bl.map(S=>jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{re(null),Je(true),pt(true);},className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-control)] px-2 text-left text-[13px] text-ink",children:[jsx("span",{className:"text-ink-2",children:jsx(we,{size:15,children:Jt[S]})}),S]},S))})]}),Be&&jsxs("div",{"data-recpop":true,className:"fixed z-50 w-[220px] rounded-[14px] bg-surface p-1.5 shadow-overlay",style:{top:Be.y,left:Be.x,animation:"bui-pop-in 160ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top right"},children:[jsx("div",{className:"px-2 pb-1 pt-1 text-[12px] font-medium text-ink-3",children:c("Table options")}),jsxs(et,{className:"flex flex-col gap-px",children:[jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{let S=Be;K(null),re({x:Math.min(S.x,window.innerWidth-276),y:S.y});},className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-control)] px-2 text-left text-[13px] text-ink",children:[jsx("span",{className:"text-ink-2",children:jsx(we,{size:15,strokeWidth:2,children:jsx("path",{d:"M12 5v14M5 12h14"})})}),c("Add property")]}),jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{f({company:220,categories:220,last:155,strength:180,links:160,ai:200}),K(null);},className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-control)] px-2 text-left text-[13px] text-ink",children:[jsx("span",{className:"text-ink-2",children:jsx(we,{size:15,children:jsx("path",{d:"M4 8h16M7 4 3 8l4 4M17 4l4 4-4 4M4 16h16"})})}),c("Compact columns")]}),jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{f({...P.current??Hi}),K(null);},className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-control)] px-2 text-left text-[13px] text-ink",children:[jsx("span",{className:"text-ink-2",children:jsx(we,{size:15,children:jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7M3 4v6h6"})})}),c("Reset column widths")]}),jsx("div",{className:"my-1 h-px bg-line"}),jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{cn(new Set),K(null);},className:"relative z-10 flex h-9 w-full items-center gap-2.5 rounded-[var(--bui-radius-control)] px-2 text-left text-[13px] text-ink",children:[jsx("span",{className:"text-ink-2",children:jsx(we,{size:15,children:jsx("path",{d:"M5 5l14 14M19 5 5 19"})})}),c("Clear selection")]})]})]})]})})}i(pg,"BUIRecordsTable");var gg=[],fg={placeholder:"Search\u2026",ariaLabel:"Search",emptyTitle:"No results found",emptyHint:"Adjust your search to try again"};function hg({items:e=gg,labels:t,onSelect:o}){let n=oe(),r=Te(fg,t),[a,l]=useState(""),s=a?e.filter(u=>u.toLowerCase().includes(a.toLowerCase())):e.slice(0,5),d=a.length>0&&s.length===0;return jsx(U,{children:jsx("div",{className:"flex min-h-[248px] w-full max-w-72 flex-col items-stretch",children:jsxs("div",{className:"w-full self-start overflow-hidden rounded-card bg-surface shadow-raised",children:[jsxs("div",{className:"flex h-10 items-center gap-2 border-b border-line px-3 transition-colors duration-100 hover:bg-hover",children:[jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2",strokeLinecap:"round",className:"shrink-0",children:[jsx("circle",{cx:"11",cy:"11",r:"7"}),jsx("path",{d:"M21 21l-4.3-4.3"})]}),jsx("input",{value:a,onChange:u=>l(u.target.value),placeholder:r.placeholder,"aria-label":r.ariaLabel,className:"min-w-0 flex-1 bg-transparent text-[13px] text-ink outline-none placeholder:text-ink-3"}),a&&jsx("button",{"aria-label":n("Clear search"),type:"button",onClick:()=>l(""),className:`flex size-6 items-center justify-center rounded-[var(--bui-radius-pill)] text-ink-3
|
|
212
|
+
transition-colors duration-100 hover:bg-line/70 hover:text-ink`,style:{animation:"bui-fade-in 150ms ease-out both"},children:jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]}),d?jsxs("div",{className:"flex flex-col items-center justify-center gap-1 px-4 py-8",style:{animation:"bui-fade-in 250ms ease-out both"},children:[jsx("span",{className:"mb-1.5 flex size-8 items-center justify-center rounded-control bg-inset text-ink-3 shadow-hairline",children:jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",children:[jsx("circle",{cx:"11",cy:"11",r:"7"}),jsx("path",{d:"M21 21l-4.3-4.3"})]})}),jsx("span",{className:"text-[13px] font-medium text-ink",children:r.emptyTitle}),jsx("span",{className:"text-[12px] text-ink-3",children:r.emptyHint})]}):jsx("div",{className:"p-1",children:jsx(et,{className:"flex flex-col gap-px",highlightClassName:"inset-x-0 rounded-[6px] bg-hover",children:s.map(u=>jsx("button",{"data-menu-row":true,type:"button",onClick:()=>{l(u),o?.(u);},className:"relative z-10 flex h-8 w-full items-center rounded-[var(--bui-radius-chip)] px-2 text-left text-[13px] text-ink",style:{animation:"bui-fade-in 200ms ease-out both"},children:u},u))})})]})})})}i(hg,"BUISearchList");var Pg={lead:"",original:"",rewrite:""},Ng={keep:"Keep",discard:"Discard",placeholder:"Describe edits"},eo={width:14,height:14,strokeWidth:1.8,"aria-hidden":true},qt={explain:jsx(ChatBubbleQuestion,{...eo}),improve:jsx(Spark,{...eo}),shorten:jsx(Scissor,{...eo}),tone:jsx(EmojiSatisfied,{...eo}),grammar:jsx(TextBox,{...eo}),send:jsx(ArrowUp,{width:"16",height:"16",strokeWidth:"2.4","aria-hidden":"true"}),chevron:jsx(NavArrowRight,{...eo}),check:jsx(Check,{...eo}),close:jsx(Xmark,{...eo}),retry:jsx(Refresh,{...eo})},Mg="inline-flex h-7 shrink-0 items-center gap-1 rounded-full bg-ink px-2.5 text-[12.5px] font-normal text-canvas shadow-hairline transition-[opacity,transform] duration-150 hover:opacity-90 active:scale-[0.96]",Ig={primary:[{id:"Explain",icon:qt.explain},{id:"Improve",icon:qt.improve,action:"Improve",busyLabel:"Improving"}],more:[{id:"Shorten",icon:qt.shorten,action:"Shorten",busyLabel:"Shortening"},{id:"Tone",icon:qt.tone,action:"Change tone",busyLabel:"Changing tone"},{id:"Grammar",icon:qt.grammar,action:"Fix grammar"}]};function Bg({text:e,actions:t=Ig,labels:o,onAction:n,status:r="idle",onStatusChange:a}){let l=oe(),s={...Pg,...e},d=Te(Ng,o),[u,m]=useState(false),c=r,p=i(I=>a?.(I),"setMode"),[h,v]=useState("Improve"),[w,g]=useState(""),[f,x]=useState(null),[y,$]=useState(false),[M,C]=useState({x:0,y:0}),[R,P]=useState(false),F=useRef(null),L=useRef(null),B=useRef(null),k=useRef(null),T=useRef(null),D=useRef("idle"),_=useRef(0),Z=useRef(null);useEffect(()=>{let I=window.setTimeout(()=>m(true),280);return ()=>window.clearTimeout(I)},[]);let Y=useCallback(()=>{T.current!==null&&cancelAnimationFrame(T.current),T.current=requestAnimationFrame(()=>{let I=F.current,j=L.current;if(!I||!j)return;let A=j.getBoundingClientRect(),ae=Array.from(j.getClientRects()).at(-1);if(!ae)return;let se=I.getBoundingClientRect(),re={x:Math.round(A.left-se.left+A.width/2),y:Math.round(ae.bottom-se.top+8)};C(Be=>Be.x===re.x&&Be.y===re.y?Be:re),P(true);});},[]);useLayoutEffect(()=>{Y();},[c,Y]),useEffect(()=>{let I=F.current;if(!I)return;let j=new ResizeObserver(Y);return j.observe(I),window.addEventListener("resize",Y),()=>{j.disconnect(),window.removeEventListener("resize",Y),T.current!==null&&cancelAnimationFrame(T.current);}},[Y]),useLayoutEffect(()=>{let I=B.current,j=k.current;if(!I||!j)return;let A=Math.ceil(j.getBoundingClientRect().width)+8,W=_.current||Math.ceil(I.getBoundingClientRect().width);if(D.current!==c&&Math.abs(A-W)>1){Z.current?.cancel();let ae=I.animate([{width:`${W}px`},{width:`${A}px`}],{duration:320,easing:"cubic-bezier(0.23,1,0.32,1)"});Z.current=ae,ae.onfinish=()=>{_.current=A,Z.current=null;};}else _.current=A;D.current=c;},[c]),useEffect(()=>{let I=k.current;if(!I)return;let j=new ResizeObserver(()=>{Z.current?.playState!=="running"&&(_.current=Math.ceil(I.getBoundingClientRect().width)+8);});return j.observe(I),()=>{j.disconnect(),Z.current?.cancel();}},[]);let O=i(I=>{v(I),$(false),p("thinking"),n?.(I);},"run"),J=i(()=>{$(false),g(""),x(null),v("Improve"),p("idle");},"reset"),E=c==="thinking"||c==="streaming",te=u&&R,ee=w.trim().length>0,me={};for(let I of [...t.primary,...t.more])I.action&&I.busyLabel&&(me[I.action]=I.busyLabel);let de=me[h]??"Editing";return jsx(U,{children:jsx("div",{className:"w-full max-w-[460px]",children:jsxs("div",{ref:F,className:"relative select-none pb-12",children:[jsxs("p",{className:"text-[13px] leading-relaxed text-ink",children:[s.lead,jsx("span",{ref:L,className:"box-decoration-clone rounded-[3px] bg-[color-mix(in_srgb,var(--bui-accent)_14%,var(--bui-surface))] text-ink dark:bg-accent-tint",children:c==="idle"||c==="thinking"?s.original:c==="streaming"?jsx(ii,{text:s.rewrite,onProgress:Y,onDone:()=>p("result")}):s.rewrite})]}),jsx("div",{className:"absolute top-0 left-0 z-10",style:{transform:`translate3d(${M.x}px, ${M.y}px, 0) translateX(-50%)`,transition:"transform 320ms cubic-bezier(0.77,0,0.175,1), opacity 180ms ease-out",opacity:te?1:0,pointerEvents:te?"auto":"none",willChange:"transform"},children:jsx("div",{ref:B,className:"flex h-9 w-fit max-w-[calc(100vw-48px)] items-center justify-center gap-0.5 overflow-hidden rounded-full bg-surface p-1 font-sans font-normal text-ink shadow-overlay",style:{width:c==="idle"&&ee&&f?f:void 0,...te?{animation:"bui-pop-in 220ms cubic-bezier(0.23,1,0.32,1) both"}:{}},children:jsxs("div",{ref:k,className:"flex w-fit shrink-0 items-center justify-center gap-0.5",style:{width:c==="idle"&&ee&&f?f-8:void 0},children:[E&&jsxs("span",{className:"inline-flex h-7 items-center gap-1.5 whitespace-nowrap px-2.5 text-[12.5px] font-normal text-ink-2",children:[jsx("span",{className:"size-3 shrink-0 rounded-full border-[1.5px] border-line-strong border-t-ink-2",style:{animation:"bui-spin 700ms linear infinite"}}),c==="thinking"?jsxs(ni,{className:"text-[12.5px] font-normal",children:[de,"\u2026"]}):jsxs("span",{children:[de,"\u2026"]})]}),c==="result"&&jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:J,className:Mg,children:[qt.check,d.keep]}),jsxs(Me,{type:"button",variant:"quiet",size:"xs",className:"shrink-0",onClick:J,children:[qt.close,d.discard]}),jsx("span",{className:"mx-0.5 h-4 w-px shrink-0 bg-line"}),jsx("button",{type:"button","aria-label":l("Try again"),onClick:()=>O(h),className:"flex size-7 shrink-0 items-center justify-center rounded-[var(--bui-radius-pill)] text-ink-3 transition-[background-color,color,transform] duration-150 hover:bg-hover-2 hover:text-ink-2 active:scale-[0.96]",children:qt.retry})]}),c==="idle"&&jsxs(Fragment,{children:[jsx("div",{className:"flex min-w-0 items-center overflow-hidden transition-[max-width,opacity,transform] duration-400",style:{maxWidth:y?0:ee&&f?f-40:145,opacity:y?0:1,transform:y?"translateX(-8px)":"translateX(0)",transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"},children:jsx("form",{className:"flex h-7 shrink-0 items-center transition-[width] duration-400",style:{width:ee&&f?f-40:145,transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"},onSubmit:I=>{I.preventDefault(),O(w.trim()||"Improve");},children:jsx("input",{value:w,onChange:I=>{let j=I.target.value;!w.trim()&&j.trim()?x(Math.ceil(B.current?.getBoundingClientRect().width??0)):j.trim()||x(null),g(j);},"aria-label":d.placeholder,placeholder:d.placeholder,className:"h-7 w-full bg-transparent pr-2.5 pl-3 text-[12.5px] text-ink placeholder:text-ink-3"})})}),jsxs("div",{className:"flex min-w-0 items-center gap-0.5 overflow-hidden transition-[max-width,opacity,transform] duration-400",style:{maxWidth:ee?0:y?462:224,opacity:ee?0:1,transform:ee?"translateX(-8px)":"translateX(0)",transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"},children:[!y&&jsx("span",{className:"mx-1 h-4 w-px shrink-0 bg-line-strong"}),t.primary.map(I=>jsxs(Me,{type:"button",variant:"quiet",size:"xs",className:"shrink-0",onClick:I.action?()=>O(I.action):void 0,children:[I.icon,I.id]},I.id)),jsx("div",{className:"flex min-w-0 items-center gap-0.5 overflow-hidden transition-[max-width,opacity,margin] duration-400",style:{maxWidth:y?262:0,opacity:y?1:0,marginLeft:y?2:0,transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"},children:t.more.map(I=>jsxs(Me,{type:"button",variant:"quiet",size:"xs",className:"shrink-0",onClick:I.action?()=>O(I.action):void 0,children:[I.icon,I.id]},I.id))}),jsx("span",{className:"mx-0.5 h-4 w-px shrink-0 bg-line"}),jsx("button",{type:"button","aria-label":l(y?"Show fewer actions":"Show more actions"),"aria-expanded":y,onClick:()=>$(I=>!I),className:"flex size-7 shrink-0 items-center justify-center rounded-[var(--bui-radius-pill)] text-ink transition-[background-color,transform] duration-200 hover:bg-hover active:scale-[0.96]",children:jsx("span",{className:"flex transition-transform duration-400",style:{transform:y?"rotate(180deg)":"rotate(0deg)",transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"},children:qt.chevron})})]}),jsx("div",{className:"flex min-w-0 items-center overflow-hidden transition-[max-width,opacity,transform] duration-400",style:{maxWidth:ee?30:0,opacity:ee?1:0,transform:ee?"scale(1)":"scale(0.88)",transitionTimingFunction:"cubic-bezier(0.23,1,0.32,1)"},children:jsx("button",{type:"button","aria-label":l("Send edit instruction"),onClick:()=>O(w.trim()),className:"flex size-7 shrink-0 items-center justify-center rounded-[var(--bui-radius-pill)] bg-ink text-surface transition-[opacity,transform] duration-200 active:scale-[0.94]",children:qt.send})})]})]})})})]})})})}i(Bg,"BUISelectionActions");function N(...e){return twMerge(e.filter(Boolean).join(" "))}i(N,"cn");function en(e){return e!=null&&typeof e!="boolean"}i(en,"hasRenderableNode");var Eg={menu:"monkeys-overlay-surface--menu bg-menu-surface text-popover-foreground",dialog:"monkeys-overlay-surface--dialog bg-dialog-surface text-foreground"};function to(e,t={}){return ["monkeys-overlay-surface",Eg[e],t.rounded===false?void 0:"monkeys-overlay-surface--rounded"].filter(Boolean).join(" ")}i(to,"getOverlaySurfaceClassName");var Bn="relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",ji=`z-50 min-w-[8rem] overflow-hidden border p-1 ${to("menu")} data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,Tl=Pe.Root,Rl=Pe.Trigger;var Ug=he.forwardRef(({className:e,inset:t,children:o,...n},r)=>jsxs(Pe.SubTrigger,{ref:r,className:N(Bn,"data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[o,jsx(ChevronRight,{"aria-hidden":"true",className:"ml-auto"})]}));Ug.displayName="DropdownMenuSubTrigger";var Fg=he.forwardRef(({className:e,...t},o)=>{let n=ht();return jsx(Pe.SubContent,{...n,...t,ref:o,"data-monkeys-component":"dropdown-menu","data-slot":"content","data-surface":"menu",className:N(ji,e)})});Fg.displayName="DropdownMenuSubContent";var Gi=he.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let r=ht();return jsx(Pe.Portal,{children:jsx(Pe.Content,{...r,...o,ref:n,sideOffset:t,"data-monkeys-component":"dropdown-menu","data-slot":"content","data-surface":"menu",className:N(ji,e)})})});Gi.displayName="DropdownMenuContent";var Tr=he.forwardRef(({className:e,inset:t,...o},n)=>jsx(Pe.Item,{ref:n,className:N(Bn,t&&"pl-8",e),...o}));Tr.displayName="DropdownMenuItem";var Og=he.forwardRef(({className:e,children:t,checked:o,...n},r)=>jsxs(Pe.CheckboxItem,{ref:r,className:N(Bn,"pl-8",e),checked:o,...n,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(Pe.ItemIndicator,{children:jsx(Check$1,{"aria-hidden":"true",className:"h-4 w-4"})})}),t]}));Og.displayName="DropdownMenuCheckboxItem";var _g=he.forwardRef(({className:e,children:t,...o},n)=>jsxs(Pe.RadioItem,{ref:n,className:N(Bn,"pl-8",e),...o,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(Pe.ItemIndicator,{children:jsx(Circle,{"aria-hidden":"true",className:"h-2 w-2 fill-current"})})}),t]}));_g.displayName="DropdownMenuRadioItem";var Hg=he.forwardRef(({className:e,inset:t,...o},n)=>jsx(Pe.Label,{ref:n,className:N("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Hg.displayName="DropdownMenuLabel";var Vg=he.forwardRef(({className:e,...t},o)=>jsx(Pe.Separator,{ref:o,className:N("-mx-1 my-1 h-px bg-muted",e),...t}));Vg.displayName="DropdownMenuSeparator";var Wg=i(({className:e,...t})=>jsx("span",{className:N("ml-auto text-xs tracking-widest opacity-60",e),...t}),"DropdownMenuShortcut");Wg.displayName="DropdownMenuShortcut";var jg=he.forwardRef(({className:e,children:t,iconClassName:o,size:n="default",...r},a)=>jsxs(Re.Trigger,{ref:a,className:N("flex h-10 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-control-surface px-3 py-2 text-left text-sm text-foreground shadow-sm ring-offset-control-surface data-[placeholder]:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:min-w-0 [&>span]:flex-1 [&>span]:text-left",n==="sm"&&"h-8 px-2 py-1 text-xs",e),...r,children:[t,jsx(Re.Icon,{asChild:true,children:jsx(ChevronDown,{"aria-hidden":"true",className:N("h-4 w-4 opacity-50",o)})})]}));jg.displayName="SelectTrigger";var Pl=he.forwardRef(({className:e,...t},o)=>jsx(Re.ScrollUpButton,{ref:o,className:N("flex cursor-default items-center justify-center py-1",e),...t,children:jsx(ChevronUp,{"aria-hidden":"true",className:"h-4 w-4"})}));Pl.displayName="SelectScrollUpButton";var Nl=he.forwardRef(({className:e,...t},o)=>jsx(Re.ScrollDownButton,{ref:o,className:N("flex cursor-default items-center justify-center py-1",e),...t,children:jsx(ChevronDown,{"aria-hidden":"true",className:"h-4 w-4"})}));Nl.displayName="SelectScrollDownButton";var Gg=he.forwardRef(({className:e,children:t,position:o="popper",viewportClassName:n,disableTriggerViewportSizing:r=false,...a},l)=>{let s=ht();return jsx(Re.Portal,{children:jsxs(Re.Content,{...s,...a,ref:l,position:o,"data-monkeys-component":"select","data-slot":"content","data-surface":"menu",className:N(ji,"relative max-h-[var(--radix-select-content-available-height)] overflow-y-auto overflow-x-hidden",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),children:[jsx(Pl,{}),jsx(Re.Viewport,{className:N("p-1",o==="popper"&&"w-full min-w-[var(--radix-select-trigger-width)]",o==="popper"&&!r&&"h-[var(--radix-select-trigger-height)]",n),children:t}),jsx(Nl,{})]})})});Gg.displayName="SelectContent";var qg=he.forwardRef(({className:e,...t},o)=>jsx(Re.Label,{ref:o,className:N("px-2 py-1.5 text-sm font-semibold",e),...t}));qg.displayName="SelectLabel";var Kg=he.forwardRef(({className:e,children:t,indicatorClassName:o,itemText:n,hideIndicator:r=false,...a},l)=>jsxs(Re.Item,{ref:l,className:N(Bn,"w-full",r?"px-2":"pl-8 pr-2",e),...a,children:[r?null:jsx("span",{className:N("absolute left-2 flex h-3.5 w-3.5 items-center justify-center",o),children:jsx(Re.ItemIndicator,{children:jsx(Check$1,{"aria-hidden":"true",className:"h-4 w-4"})})}),n?jsxs(Fragment,{children:[jsx(Re.ItemText,{asChild:true,children:jsx("span",{className:"sr-only",children:n})}),t]}):jsx(Re.ItemText,{children:t})]}));Kg.displayName="SelectItem";var Xg=he.forwardRef(({className:e,...t},o)=>jsx(Re.Separator,{ref:o,className:N("-mx-1 my-1 h-px bg-muted",e),...t}));Xg.displayName="SelectSeparator";var Ml=Symbol.for("@inf-monkeys-tech/monkeys-design/bento-depth@1"),Il=globalThis,Bl=Il[Ml]??(Il[Ml]=createContext(0));function tn(){return useContext(Bl)}i(tn,"useBentoDepth");function Rr({children:e,depth:t}){return jsx(Bl.Provider,{value:t,children:e})}i(Rr,"BentoDepthProvider");function on({children:e}){return jsx(Rr,{depth:0,children:e})}i(on,"BentoScope");function qi(){let e=tn(),t=e+1,o=fs($n(),t),n=Object.fromEntries(Yn.map(r=>[`--monkeys-bento-${r.replace(/[A-Z]/g,a=>`-${a.toLowerCase()}`)}`,o.values[r]]));return {parentDepth:e,level:t,variables:n}}i(qi,"useBentoSurface");var Ki="[data-monkeys-bento-level]",Pr="data-monkeys-scrollbar-active",tf='[data-monkeys-scrollbar], [data-monkeys-scroll-viewport], [data-radix-scroll-area-viewport], .monkeys-scrollbar, .monkeys-ui-scroll-viewport, .monkeys-ui-description, .monkeys-ui-page-main, .monkeys-ui-dialog, .monkeys-ui-menu, .monkeys-ui-select-content, [style*="overflow"][style*="auto"], [style*="overflow"][style*="scroll"], .overflow-auto, .overflow-x-auto, .overflow-y-auto, .overflow-scroll, .overflow-x-scroll, .overflow-y-scroll';function El(e,t){if(!(!(t instanceof Element)||!e.contains(t)||t.closest(Ki)!==e))for(let o=t;o;o=o.parentElement){if(o instanceof HTMLElement){let n=o.matches("[data-monkeys-scrollbar]")?o.parentElement?.querySelector(":scope > [data-radix-scroll-area-viewport]"):o.querySelector(":scope > [data-radix-scroll-area-viewport]");if(n?.closest(Ki)===e)return n;if(o.matches(tf)){let r=getComputedStyle(o);if(/(auto|scroll|overlay)/.test(`${r.overflowX} ${r.overflowY}`))return o}}if(o===e)break}}i(El,"viewportAt");function Ll(e,t=true){let o=useRef(),n=i(()=>{let a=o.current;a?.observer?.disconnect(),a?.marked.forEach(l=>l.removeAttribute(Pr)),o.current=void 0;},"clear");useEffect(()=>n,[t]);let r=i((a,l)=>{if(!t||!a.isConnected||!a.matches(Ki))return;o.current?.root!==a&&(n(),o.current={root:a,marked:new Set});let s=o.current;l!==void 0&&(s.pointerTarget=l);let d=a.ownerDocument.activeElement,u=El(a,s.pointerTarget),m=d?.matches(":focus-visible")?El(a,d):void 0;if(!u&&!m){s.observer?.disconnect(),s.observer=void 0,s.marked.forEach(p=>p.removeAttribute(Pr)),s.marked.clear();return}let c=new Set;for(let p of [u,m])p&&(c.add(p),p.matches("[data-radix-scroll-area-viewport]")&&p.parentElement?.querySelectorAll(":scope > [data-monkeys-scrollbar]").forEach(h=>c.add(h)));s.marked.forEach(p=>{c.has(p)||p.removeAttribute(Pr);}),c.forEach(p=>{s.marked.has(p)||p.setAttribute(Pr,"");}),s.marked=c,s.observer||(s.observer=new MutationObserver(()=>r(a)),s.observer.observe(a,{childList:true,subtree:true}));},"update");return {onPointerEnter(a){r(a.currentTarget,a.target),e.onPointerEnter?.(a);},onPointerLeave(a){r(a.currentTarget,null),e.onPointerLeave?.(a);},onPointerOver(a){r(a.currentTarget,a.target),e.onPointerOver?.(a);},onPointerOut(a){r(a.currentTarget,a.relatedTarget),e.onPointerOut?.(a);},onFocusCapture(a){r(a.currentTarget),e.onFocusCapture?.(a);},onBlurCapture(a){let l=a.currentTarget;queueMicrotask(()=>r(l)),e.onBlurCapture?.(a);}}}i(Ll,"useBentoScrollbarVisibility");function Dl(e,t){let o=new WeakMap,n=new Map,r=1;return (...a)=>{let l=a.slice(0,-1),s=a[a.length-1],d=l.map(c=>{if(!c)return 0;let p=o.get(c);return p===void 0&&(p=r++,o.set(c,p)),p}).join(":"),u=n.get(d);if(!u){let c={};for(let p of e)c[p]=t(...l.map(h=>h?.[p]));u=Object.freeze(c),n.size>=64&&n.delete(n.keys().next().value),n.set(d,u);}let m={...u};if(s)for(let c of e){let p=s[c];p&&(m[c]=t(...l.map(h=>h?.[c]),p));}return m}}i(Dl,"createStaticSlotMerger");var of={},Ve="motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",Ut="motion-safe:transition-all motion-safe:duration-300 motion-safe:ease-out",Nr="motion-safe:transition-transform motion-safe:duration-300 motion-safe:ease-out",zl=N("[scrollbar-width:thin]","[scrollbar-color:hsl(var(--muted-foreground)/0.45)_transparent]","[&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2","[&::-webkit-scrollbar-button]:hidden [&::-webkit-scrollbar-button]:h-0 [&::-webkit-scrollbar-button]:w-0 [&::-webkit-scrollbar-button]:bg-transparent","[&::-webkit-scrollbar-button:single-button]:hidden [&::-webkit-scrollbar-button:single-button]:h-0 [&::-webkit-scrollbar-button:single-button]:w-0","[&::-webkit-scrollbar-button:double-button]:hidden [&::-webkit-scrollbar-button:double-button]:h-0 [&::-webkit-scrollbar-button:double-button]:w-0","[&::-webkit-scrollbar-corner]:bg-transparent","[&::-webkit-scrollbar-track]:bg-transparent","[&:has(thead.sticky)::-webkit-scrollbar-track]:mt-[var(--base-table-header-height)]","[&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-muted-foreground/40","hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/55"),nf=N("[&.sticky_th]:sticky [&.sticky_th]:top-0 [&.sticky_th]:z-[2]","[&.sticky_th]:bg-[var(--base-table-sticky-header-bg)]","[&.sticky_th]:shadow-[inset_0_-1px_0_var(--base-table-header-separator)]"),Fl={buttonBase:N("group/button inline-flex min-w-0 items-center justify-center gap-2 rounded-md border px-3 text-sm font-medium focus-visible:outline-hidden","cursor-pointer disabled:!cursor-not-allowed",Ut),buttonDefault:"border-border bg-background text-foreground hover:bg-accent/60",buttonPrimary:"border-primary/20 bg-primary/10 text-primary hover:bg-primary/15",buttonSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))] hover:bg-[hsl(var(--success,142_72%_29%)_/_0.15)]",buttonWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))] hover:bg-[hsl(var(--warning,45_93%_47%)_/_0.15)]",buttonDanger:"border-destructive/20 bg-destructive/10 text-destructive-text hover:bg-destructive/15",buttonMuted:"border-border/60 bg-muted/45 text-muted-foreground hover:bg-muted/70 hover:text-foreground",buttonActive:"border-primary/35 bg-primary/10 text-primary",buttonDisabled:"!cursor-not-allowed opacity-60",buttonIconOnly:"w-9 px-0",buttonIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-[inherit] [&_*]:!text-[inherit] [&_svg]:!stroke-current [&_svg_*]:!stroke-current",buttonLabel:"min-w-0 truncate",badgeBase:N("inline-flex max-w-full items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium",Ve),badgeDefault:"border-border/60 bg-background text-foreground",badgePrimary:"border-primary/30 bg-primary/10 text-primary",badgeSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-[hsl(var(--success,142_72%_29%))]",badgeWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",badgeDanger:"border-destructive/30 bg-destructive/10 text-destructive-text",badgeMuted:"border-border/60 bg-muted text-muted-foreground",badgeIcon:"inline-flex h-3.5 w-3.5 shrink-0 items-center justify-center",badgeLabel:"min-w-0 truncate",textRoot:"min-w-0 break-words leading-6",textSizeXs:"text-xs",textSizeSm:"text-sm",textSizeMd:"text-base",textSizeLg:"text-lg",textSizeXl:"text-xl",typographyToneDefault:"text-foreground",typographyToneMuted:"text-muted-foreground",typographyTonePrimary:"text-primary",typographyToneSuccess:"text-emerald-700 dark:text-emerald-400",typographyToneWarning:"text-amber-700 dark:text-amber-400",typographyToneDanger:"text-destructive-text",typographyToneInherit:"text-inherit",headingRoot:"min-w-0 break-words font-semibold tracking-tight",headingSizeXs:"text-sm leading-5",headingSizeSm:"text-base leading-6",headingSizeMd:"text-lg leading-7",headingSizeLg:"text-xl leading-7",headingSizeXl:"text-2xl leading-8",headingSize2xl:"text-3xl leading-9",linkRoot:"inline break-words underline decoration-current/40 underline-offset-4 hover:decoration-current focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",codeInline:"rounded border border-border/70 bg-muted/60 px-1.5 py-0.5 font-mono text-[0.875em] leading-[1.45] text-foreground",codeBlock:"m-0 max-w-full overflow-x-auto rounded-md border border-border/70 bg-muted/60 p-4 text-foreground",codeContent:"font-mono text-sm leading-6",kbdRoot:"inline-flex min-h-5 items-center rounded border border-border bg-muted/70 px-1.5 font-mono text-[0.75em] font-medium leading-5 text-foreground shadow-[inset_0_-1px_0_hsl(var(--monkeys-color-border))]",listRoot:"m-0 min-w-0 list-outside break-words ps-5 text-foreground",listSpacingCompact:"[&>li+li]:mt-1",listSpacingDefault:"[&>li+li]:mt-2",listSpacingRelaxed:"[&>li+li]:mt-3",listMarkerNone:"list-none ps-0",listMarkerDisc:"list-disc",listMarkerCircle:"list-[circle]",listMarkerSquare:"list-[square]",listMarkerDecimal:"list-decimal",listMarkerLowerAlpha:"list-[lower-alpha]",listMarkerUpperAlpha:"list-[upper-alpha]",listItem:"min-w-0 ps-1 leading-6 marker:text-muted-foreground",stackRoot:"flex min-w-0 flex-col",inlineRoot:"flex min-w-0 flex-row",gridRoot:"grid min-w-0",containerRoot:"mx-auto w-full min-w-0",aspectRatioRoot:"relative min-w-0 overflow-hidden [&>*]:h-full [&>*]:w-full",spinnerRoot:"inline-flex shrink-0 items-center justify-center text-current align-middle",spinnerIndicator:"h-5 w-5 rounded-full border-2 border-current border-r-transparent motion-safe:animate-spin motion-reduce:animate-none",visuallyHiddenRoot:"sr-only",visuallyHiddenFocusable:"focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-[1000] focus:rounded-md focus:bg-background focus:px-4 focus:py-2 focus:text-foreground focus:shadow-lg focus:outline-hidden focus:ring-2 focus:ring-ring focus-within:not-sr-only focus-within:fixed focus-within:left-4 focus-within:top-4 focus-within:z-[1000] focus-within:rounded-md focus-within:bg-background focus-within:px-4 focus-within:py-2 focus-within:text-foreground focus-within:shadow-lg focus-within:ring-2 focus-within:ring-ring",fieldsetRoot:"min-w-0 border-0 p-0 text-foreground",fieldsetLegend:"min-w-0 text-sm font-semibold leading-6 text-foreground",fieldsetDescription:"mt-1 text-sm leading-5 text-muted-foreground",fieldsetError:"mt-1 text-sm leading-5 text-destructive-text",fieldsetContent:"mt-3 grid min-w-0 gap-3",stepsRoot:"m-0 min-w-0 list-none p-0 text-foreground",stepsHorizontal:"flex w-full max-w-full items-start overflow-x-auto pb-2",stepsVertical:"grid",stepsItem:"relative min-w-0",stepsItemHorizontal:"flex min-w-52 flex-1 items-start",stepsItemVertical:"pb-6 last:pb-0",stepsTrigger:"flex min-w-0 flex-1 items-start gap-3 rounded-md border-0 bg-transparent p-1 text-start text-inherit",stepsTriggerInteractive:"cursor-pointer hover:bg-accent/50 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",stepsTriggerDisabled:"!cursor-not-allowed opacity-60",stepsIndicator:"relative z-[1] inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full border text-xs font-semibold",stepsIndicatorPending:"border-border bg-background text-muted-foreground",stepsIndicatorCurrent:"border-primary/50 bg-primary/10 text-primary",stepsIndicatorCompleted:"border-primary bg-primary text-primary-foreground",stepsIndicatorError:"border-destructive bg-destructive text-destructive-foreground",stepsContent:"grid min-w-0 gap-1 pt-0.5",stepsLabel:"min-w-0 break-words text-sm font-medium leading-5",stepsDescription:"min-w-0 break-words text-sm leading-5 text-muted-foreground",stepsStatus:"sr-only",stepsConnector:"shrink-0 bg-border",stepsConnectorHorizontal:"mt-3.5 h-px w-8",stepsConnectorVertical:"absolute bottom-0 top-8 start-3.5 w-px -translate-x-1/2",stepsConnectorCompleted:"bg-primary/60",stepsConnectorError:"bg-destructive/60",scrollAreaViewport:"min-h-0 min-w-0",numberInputControl:"tabular-nums",numberInputStepControls:"me-1 flex shrink-0 self-stretch overflow-hidden border-s border-border",numberInputStepButton:"flex min-h-6 w-7 cursor-pointer items-center justify-center border-0 bg-transparent px-1 text-xs leading-none text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:z-[1] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-40",passwordInputControl:"pe-2",passwordInputToggle:"me-1 inline-flex min-h-7 shrink-0 cursor-pointer items-center justify-center rounded px-2 text-xs font-medium text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-40",inputGroupRoot:N("relative flex min-w-0 items-stretch overflow-hidden rounded-md border border-border bg-background text-foreground focus-within:border-primary/50 focus-within:ring-2 focus-within:ring-ring/30",Ve),inputGroupInvalid:"border-destructive/55 focus-within:border-destructive/70 focus-within:ring-destructive/25",inputGroupDisabled:"!cursor-not-allowed bg-muted/35",inputGroupContent:"flex min-w-0 flex-1 items-stretch [&>*]:min-w-0",inputGroupStartElement:"inline-flex shrink-0 items-center justify-center ps-3 pe-1 text-foreground/75",inputGroupEndElement:"inline-flex shrink-0 items-center justify-center ps-1 pe-3 text-foreground/75",inputGroupStartAddon:"inline-flex max-w-[min(40%,16rem)] shrink-0 items-center overflow-hidden border-e border-border bg-muted/60 px-3 text-sm text-foreground/75 text-ellipsis whitespace-nowrap [&>*]:min-w-0",inputGroupEndAddon:"inline-flex max-w-[min(40%,16rem)] shrink-0 items-center overflow-hidden border-s border-border bg-muted/60 px-3 text-sm text-foreground/75 text-ellipsis whitespace-nowrap [&>*]:min-w-0",panelRoot:N("group relative flex min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background",Ut),panelInteractive:"cursor-pointer hover:shadow-md",panelSelected:"border-primary/45 bg-primary/5",panelDisabled:"!cursor-not-allowed opacity-60",panelMedia:"shrink-0 overflow-hidden",panelHeader:"min-w-0 p-token-lg",panelTitle:"min-w-0 truncate text-sm font-semibold leading-none text-foreground",panelDescription:"mt-1 text-sm leading-5 text-foreground/75",panelBody:"min-w-0 px-token-lg pb-token-lg text-sm text-foreground",panelBodyStandalone:"pt-token-lg",panelFooter:"shrink-0 border-t border-border/60 px-token-lg py-token-md",stateRoot:N("flex min-h-48 flex-col items-center justify-center rounded-lg border border-border/70 bg-background px-6 py-10 text-center",Ve),stateIcon:"mb-token-lg flex h-12 w-12 items-center justify-center rounded-full bg-muted text-muted-foreground motion-safe:animate-in motion-safe:fade-in",stateTitle:"text-sm font-semibold text-foreground",stateDescription:"mt-2 max-w-md text-sm leading-6 text-muted-foreground",stateActions:"mt-token-xl flex flex-wrap items-center justify-center gap-token-sm",loadingSpinner:"h-5 w-5 motion-safe:animate-spin motion-reduce:animate-none",fieldRoot:"grid min-w-0 gap-token-md",fieldLabelRow:"flex min-w-0 items-center justify-between gap-token-md",fieldLabel:"min-w-0 text-sm font-medium leading-none text-foreground",fieldRequired:"text-destructive-text",fieldDescription:"text-sm leading-5 text-muted-foreground",fieldMessage:"text-sm leading-5 text-muted-foreground",fieldControl:"min-w-0",controlWrapper:N("relative flex min-w-0 items-center rounded-md border border-border bg-background text-foreground focus-within:border-primary/35",Ve),controlBase:"min-w-0 flex-1 bg-transparent px-3 text-sm text-foreground outline-hidden placeholder:text-muted-foreground disabled:!cursor-not-allowed",controlInput:"h-9",controlTextarea:"min-h-24 resize-y py-2 leading-6",controlSelect:"h-9 cursor-pointer appearance-none pr-9 disabled:!cursor-not-allowed",controlIcon:"pointer-events-none ml-3 inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",controlTrailing:"mr-3 inline-flex shrink-0 items-center justify-center text-muted-foreground",controlInvalid:"border-destructive/45 focus-within:border-destructive/60",controlDisabled:"!cursor-not-allowed opacity-60",controlReadOnly:"bg-muted/35",selectChevron:N("pointer-events-none absolute right-3 top-1/2 h-2 w-2 -translate-y-1/2 rotate-45 border-b border-r border-current text-muted-foreground",Nr),selectMenu:"absolute left-0 right-0 top-[calc(100%+0.375rem)] z-50 max-h-60 overflow-auto rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden",selectOption:N("flex min-h-8 w-full min-w-0 cursor-pointer items-center rounded-sm px-2.5 py-1.5 text-left text-sm text-foreground",Ut),selectOptionActive:"bg-accent text-accent-foreground",selectOptionSelected:"bg-primary/10 text-primary",selectOptionDisabled:"!cursor-not-allowed opacity-50",selectPlaceholder:"text-muted-foreground",selectNative:"sr-only",switchRoot:"inline-flex min-w-0 cursor-pointer items-start gap-3",switchInput:"sr-only",switchTrack:N("relative mt-0.5 inline-flex h-6 w-10 shrink-0 items-center rounded-full border border-border bg-muted focus-within:border-primary/35",Ve),switchThumb:N("h-4 w-4 translate-x-1 rounded-full bg-background shadow-sm",Nr),switchChecked:"border-primary/40 bg-primary/80 text-primary-foreground",switchDisabled:"!cursor-not-allowed opacity-60",switchContent:"grid min-w-0 gap-1",switchLabel:"text-sm font-medium leading-none text-foreground",switchDescription:"text-sm leading-5 text-muted-foreground",checkboxRoot:"inline-flex min-w-0 cursor-pointer items-start gap-3",checkboxInput:"sr-only",checkboxBox:N("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded border border-border bg-background text-primary focus-within:border-primary/40",Ve),checkboxBoxChecked:"border-primary/45 bg-primary text-primary-foreground",checkboxBoxInvalid:"border-destructive/50",checkboxIndicator:"text-xs font-bold leading-none",checkboxDisabled:"!cursor-not-allowed opacity-60",checkboxContent:"grid min-w-0 gap-1",checkboxLabel:"text-sm font-medium leading-none text-foreground",checkboxDescription:"text-sm leading-5 text-muted-foreground",radioGroupRoot:"grid min-w-0 gap-2",radioOption:N("inline-flex min-w-0 cursor-pointer items-start gap-3 rounded-md border border-border/60 bg-background px-3 py-2 text-sm",Ut,"hover:bg-muted/35"),radioInput:"sr-only",radioMarker:N("mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-border bg-background text-primary focus-within:border-primary/40",Ve),radioMarkerChecked:"border-primary/50 bg-primary/10",radioIndicator:"h-2 w-2 rounded-full bg-primary",radioOptionDisabled:"!cursor-not-allowed opacity-60 hover:bg-background",radioContent:"grid min-w-0 gap-1",radioLabel:"text-sm font-medium leading-none text-foreground",radioDescription:"text-sm leading-5 text-muted-foreground",dialogRoot:"relative",dialogTrigger:"",dialogTriggerDisabled:"!cursor-not-allowed opacity-60",dialogOverlay:"fixed inset-0 z-50 bg-background/70 backdrop-blur-sm motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",dialogContent:"pointer-events-none fixed inset-0 z-50 flex min-h-0 items-center justify-center p-4",dialogPanel:N("pointer-events-auto relative flex max-h-[min(85vh,720px)] w-full max-w-lg min-w-0 flex-col overflow-hidden rounded-lg border border-border/70 bg-background text-foreground shadow-xl","motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out"),dialogHeader:"grid min-w-0 gap-1 border-b border-border/60 px-5 py-4",dialogTitle:"min-w-0 pr-8 text-base font-semibold leading-6 text-foreground",dialogDescription:"text-sm leading-6 text-muted-foreground",dialogBody:"min-h-0 min-w-0 overflow-auto px-5 py-4 text-sm text-foreground",dialogFooter:"flex shrink-0 flex-wrap items-center justify-end gap-2 border-t border-border/60 px-5 py-4",dialogClose:N("absolute right-3 top-3 inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted/60 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",Ut),dropdownRoot:"relative inline-flex min-w-0",dropdownTrigger:"",dropdownTriggerDisabled:"!cursor-not-allowed opacity-60",dropdownMenu:"z-50 min-w-48 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",dropdownMenuTop:"bottom-[calc(100%+0.375rem)] top-auto",dropdownMenuEnd:"left-auto right-0",dropdownLabel:"px-2.5 py-1.5 text-xs font-semibold uppercase tracking-[0.12em] text-muted-foreground",dropdownSeparator:"my-1 h-px bg-border/70",dropdownItem:N("flex min-w-0 cursor-pointer items-center gap-2 rounded-sm px-2.5 py-2 text-left text-sm text-foreground hover:bg-accent/60 focus:bg-accent/60 data-[highlighted]:bg-accent/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",Ut),dropdownItemDanger:"text-destructive-text hover:bg-destructive/10 focus:bg-destructive/10 data-[highlighted]:bg-destructive/10",dropdownItemDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent focus:bg-transparent data-[highlighted]:bg-transparent",dropdownItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",dropdownItemContent:"grid min-w-0 flex-1 gap-0.5",dropdownItemLabel:"min-w-0 truncate",dropdownItemDescription:"min-w-0 truncate text-xs leading-4 text-muted-foreground",dropdownItemShortcut:"ml-3 shrink-0 text-xs font-medium text-muted-foreground",tooltipRoot:"relative inline-flex min-w-0",tooltipTrigger:"inline-flex min-w-0",tooltipContent:"pointer-events-none z-50 max-w-xs rounded-md border border-border bg-popover px-2.5 py-1.5 text-xs leading-5 text-popover-foreground shadow-lg motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",noticeBase:N("flex min-w-0 gap-3 rounded-lg border px-4 py-3 text-sm",Ve,"motion-safe:animate-in motion-safe:fade-in"),noticeDefault:"border-border bg-background text-foreground",noticePrimary:"border-primary/25 bg-primary/10 text-primary",noticeSuccess:"border-[hsl(var(--success,142_72%_29%)_/_0.30)] bg-[hsl(var(--success,142_72%_29%)_/_0.10)] text-foreground",noticeWarning:"border-[hsl(var(--warning,45_93%_47%)_/_0.30)] bg-[hsl(var(--warning,45_93%_47%)_/_0.10)] text-[hsl(var(--warning-foreground,28_73%_26%))]",noticeDanger:"border-destructive/30 bg-destructive/10 text-destructive-text",noticeMuted:"border-border/60 bg-muted/35 text-muted-foreground",noticeIcon:"mt-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center motion-safe:animate-in motion-safe:fade-in",noticeTitle:"font-semibold leading-5",noticeDescription:"leading-6",noticeActions:"mt-3 flex flex-wrap items-center gap-2",dividerRoot:N("shrink-0 border-border/70",Ve),dividerLabel:"mx-3 shrink-0 text-xs font-medium uppercase tracking-[0.12em] text-muted-foreground motion-safe:animate-in motion-safe:fade-in",sectionHeaderRoot:"flex min-w-0 flex-wrap items-start justify-between gap-token-md motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out",sectionHeaderContent:"grid min-w-0 gap-1",sectionHeaderEyebrow:"text-xs font-semibold uppercase tracking-[0.14em] text-muted-foreground",sectionHeaderTitle:"text-base font-semibold leading-6 text-foreground",sectionHeaderDescription:"max-w-2xl text-sm leading-6 text-muted-foreground",sectionHeaderActions:"flex shrink-0 flex-wrap items-center gap-2",tabsRoot:"grid min-w-0 gap-token-md",tabsList:N("inline-flex min-w-0 flex-wrap items-center gap-token-xs rounded-lg border border-border/70 bg-muted/30 p-token-xs",Ve),tabsTrigger:N("inline-flex min-w-0 cursor-pointer items-center justify-center rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:bg-background/70 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:ring-offset-1 motion-reduce:transition-none",Ut),tabsTriggerActive:"bg-background text-foreground shadow-sm",tabsTriggerDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent",tabsPanel:"min-w-0 rounded-lg border border-border/70 bg-background p-4 text-sm text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",segmentedRoot:N("inline-flex min-w-0 items-center gap-1 rounded-lg border border-border/70 bg-muted/30 p-1",Ve),segmentedItem:N("inline-flex min-w-0 cursor-pointer items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:bg-background/70 hover:text-foreground focus-visible:outline-hidden",Ut),segmentedItemActive:"bg-background text-foreground shadow-sm",segmentedItemDisabled:"!cursor-not-allowed opacity-50 hover:bg-transparent",progressRoot:"grid min-w-0 gap-2",progressTrack:"h-2 w-full overflow-hidden rounded-full bg-muted",progressIndicator:"h-full rounded-full bg-primary motion-safe:transition-[width] motion-safe:duration-500 motion-safe:ease-out",progressLabelRow:"flex min-w-0 items-center justify-between gap-3",progressLabel:"min-w-0 truncate text-sm font-medium text-foreground",progressValue:"shrink-0 text-xs font-medium text-muted-foreground",skeletonRoot:"relative overflow-hidden rounded-md bg-muted/70",avatarRoot:"relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full border border-border bg-muted text-sm font-semibold text-muted-foreground motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",avatarImage:"h-full w-full object-cover",avatarFallback:"flex h-full w-full items-center justify-center bg-muted text-foreground",avatarStatus:"absolute bottom-0 right-0 h-2.5 w-2.5 rounded-full border-2 border-background bg-muted-foreground motion-safe:animate-pulse",avatarText:"min-w-0 truncate text-sm font-medium text-foreground",toolbarRoot:N("flex min-w-0 flex-wrap items-center justify-between gap-token-md rounded-lg border border-border/70 bg-background px-token-lg py-token-md",Ve),toolbarLeading:"flex min-w-0 items-center gap-token-md",toolbarTitle:"min-w-0 truncate text-sm font-semibold text-foreground",toolbarDescription:"mt-0.5 text-sm leading-5 text-muted-foreground",toolbarContent:"min-w-0 flex-1",toolbarActions:"flex shrink-0 flex-wrap items-center gap-token-sm",breadcrumbRoot:"min-w-0 text-sm text-muted-foreground",breadcrumbList:"flex min-w-0 flex-wrap items-center gap-1.5",breadcrumbItem:"inline-flex min-w-0 items-center gap-1.5",breadcrumbLink:"min-w-0 cursor-pointer truncate text-muted-foreground hover:text-foreground disabled:!cursor-not-allowed disabled:opacity-50 aria-disabled:!cursor-not-allowed aria-disabled:opacity-50 aria-disabled:hover:text-muted-foreground motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",breadcrumbCurrent:"min-w-0 truncate font-medium text-foreground",breadcrumbSeparator:"shrink-0 text-muted-foreground/70",paginationRoot:"flex min-w-0 flex-wrap items-center justify-between gap-3 text-sm",paginationInfo:"min-w-0 text-muted-foreground",paginationControls:"flex min-w-0 flex-wrap items-center justify-end gap-1.5",paginationButton:"inline-flex h-8 min-w-8 cursor-pointer items-center justify-center whitespace-nowrap rounded-md border border-border bg-background px-2.5 text-sm font-medium text-foreground hover:bg-accent/60 disabled:!cursor-not-allowed disabled:opacity-50 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out",paginationButtonDisabled:"!cursor-not-allowed opacity-50",paginationPage:"inline-flex h-8 min-w-8 cursor-default items-center justify-center rounded-md bg-muted/50 px-2.5 text-sm font-medium text-foreground hover:bg-muted/50",paginationEllipsis:"inline-flex h-8 min-w-6 items-center justify-center px-1 text-sm text-muted-foreground",descriptionListRoot:"grid min-w-0 gap-3 text-sm",descriptionListItem:"grid min-w-0 gap-1 rounded-md border border-border/60 bg-background px-3 py-2 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out hover:shadow-sm",descriptionListTerm:"min-w-0 truncate text-xs font-medium uppercase tracking-[0.08em] text-muted-foreground",descriptionListValue:"min-w-0 text-sm leading-6 text-foreground",accordionRoot:"grid min-w-0 gap-2",accordionItem:"overflow-hidden rounded-lg border border-border/70 bg-background motion-safe:transition motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",accordionTrigger:"flex w-full min-w-0 cursor-pointer items-center justify-between gap-3 px-4 py-3 text-start text-sm font-medium text-foreground hover:bg-muted/40 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring disabled:!cursor-not-allowed disabled:opacity-50 motion-safe:transition motion-safe:duration-300 motion-safe:ease-out motion-reduce:transition-none",accordionTriggerIcon:N("h-2 w-2 shrink-0 rotate-45 border-b border-r border-current text-muted-foreground",Nr,"motion-reduce:transition-none"),accordionPanel:"border-t border-border/60 px-4 py-3 text-sm leading-6 text-muted-foreground motion-safe:animate-in motion-safe:fade-in motion-safe:duration-300 motion-safe:ease-out motion-reduce:animate-none",menuTrigger:"inline-flex min-w-0",menuContent:"z-50 min-w-44 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out",menuLabel:"px-2 py-1.5 text-xs font-medium text-muted-foreground",menuSeparator:"-mx-1 my-1 h-px bg-border",menuItem:N("relative flex min-h-8 min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm text-foreground outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:!cursor-not-allowed data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",Ut),menuItemDefault:"text-foreground",menuItemPrimary:"text-primary focus:text-primary data-[highlighted]:text-primary",menuItemSuccess:"text-[hsl(var(--success,142_72%_29%))] focus:text-[hsl(var(--success,142_72%_29%))] data-[highlighted]:text-[hsl(var(--success,142_72%_29%))]",menuItemWarning:"text-[hsl(var(--warning-foreground,28_73%_26%))] focus:text-[hsl(var(--warning-foreground,28_73%_26%))] data-[highlighted]:text-[hsl(var(--warning-foreground,28_73%_26%))]",menuItemDanger:"text-destructive-text focus:text-destructive-text data-[highlighted]:text-destructive-text",menuItemMuted:"text-muted-foreground focus:text-foreground data-[highlighted]:text-foreground",menuItemDisabled:"!cursor-not-allowed opacity-50 data-[disabled]:pointer-events-none",menuItemIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center",menuItemLabel:"min-w-0 flex-1 truncate",menuItemShortcut:"ml-4 shrink-0 text-xs font-medium text-muted-foreground",menuCheckboxIndicator:"absolute left-2 inline-flex h-4 w-4 items-center justify-center text-current",menuRadioIndicator:"absolute left-2 inline-flex h-4 w-4 items-center justify-center text-current",menuSubTrigger:N("relative flex min-h-8 min-w-0 cursor-pointer select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm text-foreground outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:!cursor-not-allowed data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",Ut),menuSubTriggerIcon:"ml-auto inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",menuSubContent:"z-50 min-w-40 overflow-hidden rounded-md border border-border bg-background p-1 text-sm text-foreground shadow-lg outline-hidden motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-300 motion-safe:ease-out",tableContainer:N("relative isolate min-w-0 overflow-auto rounded-lg border border-border/70 bg-background/95 bg-clip-padding [scrollbar-gutter:stable]","[--base-table-header-height:2.75rem] [--base-table-split-scrollbar-gutter:0.75rem]","[--base-table-sticky-header-bg:hsl(var(--background))] [--base-table-header-separator:hsl(var(--border)_/_0.7)]",zl,Ve),tableContainerFooterAttached:"!rounded-b-none !shadow-none",tableRoot:"w-full caption-bottom border-separate border-spacing-0 text-sm text-foreground",tableCaption:"mt-3 text-sm text-muted-foreground",tableHeader:N("relative z-[2] bg-transparent [&_tr]:bg-transparent",nf),tableBody:"[&_tr:last-child>*]:border-b-0",tableFooter:"bg-muted/30 font-medium [&_tr>*]:border-t [&_tr>*]:border-border/70",tableFooterBar:N("flex min-w-0 flex-wrap items-center justify-between gap-3 rounded-lg border border-border/70 bg-muted/20 px-4 py-3 text-sm text-foreground shadow-none",Ve),tableFooterBarAttached:"-mt-px rounded-t-none border-t border-border/70 shadow-none",tableFooterBarLeading:"flex min-w-0 items-center gap-2",tableFooterBarContent:"min-w-0 flex-1",tableFooterBarActions:"ms-auto flex shrink-0 flex-wrap items-center gap-2",tableSplitRoot:"grid w-full min-w-0 grid-cols-[minmax(0,1fr)] grid-rows-[auto_minmax(0,1fr)_auto] caption-bottom border-separate border-spacing-0 text-sm text-foreground",tableSplitHeader:"block w-full min-w-0 shrink-0 overflow-x-hidden overflow-y-hidden bg-transparent",tableSplitBody:N("block min-h-0 w-full min-w-0 max-w-full justify-self-stretch overflow-auto [scrollbar-gutter:stable]",zl),tableSplitFooter:"block w-full min-w-0 shrink-0 overflow-x-hidden overflow-y-hidden",tableSplitRow:"grid w-max min-w-full [grid-template-columns:var(--base-table-column-template)]",tableSplitHead:"flex min-w-0 overflow-hidden",tableSplitCell:"block min-w-0 overflow-hidden [overflow-wrap:anywhere]",tableRow:N("[&>*]:border-b [&>*]:border-border/60 data-[state=selected]:bg-primary/5 data-[state=selected]:[&>*]:bg-primary/5",Ve),tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.35)] hover:bg-[var(--base-table-row-hover-bg)] hover:[&>td]:bg-[var(--base-table-row-hover-bg)] hover:[&>th]:bg-[var(--base-table-row-hover-bg)]",tableRowSelected:"bg-primary/5 [&>*]:bg-primary/5",tableRowDisabled:"!cursor-not-allowed opacity-60",tableHead:"relative h-11 whitespace-nowrap px-3 py-2 text-left align-middle text-xs font-semibold text-muted-foreground shadow-[inset_0_-1px_0_var(--base-table-header-separator)]",tableHeadContent:"flex min-w-0 items-center justify-between gap-2",tableHeadMain:"flex min-w-0 items-center gap-2",tableHeadIcon:"inline-flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground",tableHeadText:"grid min-w-0 gap-0.5",tableHeadLabel:"min-w-0 truncate text-xs font-semibold leading-4 text-foreground",tableHeadDescription:"min-w-0 truncate text-xs font-normal leading-4 text-muted-foreground",tableHeadMeta:"shrink-0 text-xs font-medium text-muted-foreground",tableHeadActions:"flex shrink-0 items-center gap-1",tableHeadSortButton:N("inline-flex min-w-0 cursor-pointer items-center gap-1 rounded-sm text-left focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-60",Ve),tableHeadSortIcon:N("inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground",Nr),tableHeadDragHandle:N("inline-flex h-5 w-4 shrink-0 cursor-grab items-center justify-center rounded-sm text-muted-foreground hover:bg-muted active:cursor-grabbing focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-50",Ve),tableHeadResizeHandle:N("absolute end-0 top-1/2 h-7 w-2 -translate-y-1/2 cursor-col-resize touch-none rounded-sm after:absolute after:start-1/2 after:top-1/2 after:h-5 after:w-px after:-translate-x-1/2 after:-translate-y-1/2 after:bg-border hover:after:bg-primary focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30 disabled:!cursor-not-allowed disabled:opacity-50",Ve),tableCell:"min-w-0 px-3 py-2 align-middle text-sm text-foreground [overflow-wrap:anywhere]",tableCellAlignCenter:"text-center",tableCellAlignRight:"text-right",tableEmptyRow:"[&>*]:border-b [&>*]:border-border/60",tableEmptyCell:"px-4 py-10 text-center",tableEmptyContent:"mx-auto flex max-w-md flex-col items-center justify-center text-center",tableEmptyIcon:"mb-3 flex h-10 w-10 items-center justify-center rounded-full bg-muted text-muted-foreground",tableEmptyTitle:"text-sm font-semibold text-foreground",tableEmptyDescription:"mt-1 text-sm leading-6 text-muted-foreground",tableEmptyActions:"mt-4 flex flex-wrap items-center justify-center gap-2",tableLoadingRow:"[&>*]:border-b [&>*]:border-border/60",tableLoadingCell:"px-3 py-2",tableLoadingSkeleton:"h-4 w-full rounded-md bg-muted/70",layoutRoot:N("grid min-w-0 overflow-hidden grid-rows-[auto_minmax(0,1fr)_auto] gap-3 rounded-lg border border-border/70 bg-background p-3 text-foreground",Ve),layoutRootFull:"h-full min-h-0",layoutHeader:"min-w-0",layoutBody:"grid min-h-0 min-w-0 overflow-hidden gap-token-md",layoutSidebar:"min-h-0 min-w-0 overflow-hidden",layoutMain:"min-h-0 min-w-0 overflow-hidden",layoutAside:"min-h-0 min-w-0 overflow-hidden",layoutFooter:"min-w-0",layoutPane:N("h-full max-h-full min-h-0 min-w-0 overflow-hidden rounded-lg bg-background text-foreground",Ve),layoutPaneScrollable:"overflow-auto",layoutPaneBordered:"border border-border/70",layoutPaneMuted:"bg-muted/25",layoutPaneSoft:"bg-background/95 shadow-sm",layoutPaneTransparent:"bg-transparent shadow-none",layoutSplitRoot:"grid min-h-0 min-w-0 overflow-hidden",layoutSplitHorizontal:"grid-flow-col",layoutSplitVertical:"grid-flow-row",layoutSplitPane:"min-h-0 min-w-0 overflow-hidden",layoutSplitPrimary:"",layoutSplitSecondary:"",layoutResizeHandle:N("group/resize relative z-10 flex shrink-0 items-center justify-center bg-transparent text-muted-foreground hover:bg-border/60 active:bg-border/70 focus-visible:bg-border/60 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/30",Ut),layoutResizeHandleHorizontal:"w-2 cursor-col-resize",layoutResizeHandleVertical:"h-2 cursor-row-resize",layoutResizeHandleDisabled:"cursor-default opacity-60",layoutResizeHandleIndicator:"rounded-full bg-muted-foreground/45 group-hover/resize:bg-primary/70"},rf={compact:{buttonBase:"h-8 px-2.5 text-xs",buttonIconOnly:"h-8 w-8 px-0",badgeBase:"px-1.5 py-0 text-xs",panelHeader:"p-token-md",panelBody:"px-token-md pb-token-md text-xs",panelBodyStandalone:"pt-token-md",panelFooter:"px-token-md py-token-md",stateRoot:"min-h-36 px-4 py-7",stateIcon:"mb-3 h-10 w-10",fieldRoot:"gap-token-sm",fieldLabel:"text-xs",fieldDescription:"text-xs leading-5",fieldMessage:"text-xs leading-5",controlInput:"h-8 text-xs",controlTextarea:"min-h-20 text-xs",controlSelect:"h-8 text-xs",selectMenu:"text-xs",selectOption:"min-h-7 px-2 py-1 text-xs",switchTrack:"h-5 w-9",switchThumb:"h-3.5 w-3.5",checkboxBox:"h-3.5 w-3.5",checkboxLabel:"text-xs",checkboxDescription:"text-xs leading-5",radioOption:"px-2 py-1.5 text-xs",radioMarker:"h-3.5 w-3.5",radioIndicator:"h-1.5 w-1.5",radioLabel:"text-xs",radioDescription:"text-xs leading-5",dialogPanel:"max-w-md",dialogHeader:"px-4 py-3",dialogTitle:"text-sm leading-5",dialogDescription:"text-xs leading-5",dialogBody:"px-4 py-3 text-xs",dialogFooter:"px-4 py-3",dropdownMenu:"min-w-44 text-xs",dropdownItem:"px-2 py-1.5 text-xs",tooltipContent:"text-xs leading-4",noticeBase:"px-3 py-2 text-xs",dividerLabel:"text-xs",sectionHeaderRoot:"gap-token-sm",sectionHeaderTitle:"text-sm leading-5",sectionHeaderDescription:"text-xs leading-5",tabsList:"gap-token-xs p-token-xs",tabsTrigger:"px-2 py-1 text-xs",tabsPanel:"p-3 text-xs",segmentedRoot:"gap-token-xs p-token-xs",segmentedItem:"px-2 py-1 text-xs",progressTrack:"h-1.5",avatarRoot:"text-xs",toolbarRoot:"gap-token-sm px-token-md py-token-md",toolbarTitle:"text-xs",toolbarDescription:"text-xs leading-5",paginationButton:"h-7 min-w-7 px-2 text-xs",paginationPage:"h-7 min-w-7 px-2 text-xs",descriptionListRoot:"gap-2 text-xs",descriptionListItem:"px-2 py-1.5",descriptionListTerm:"text-xs",descriptionListValue:"text-xs leading-5",accordionTrigger:"px-3 py-2 text-xs",accordionPanel:"px-3 py-2 text-xs leading-5",menuContent:"min-w-40 p-0.5 text-xs",menuSubContent:"min-w-36 p-0.5 text-xs",menuLabel:"px-2 py-1 text-xs",menuItem:"min-h-7 px-2 py-1 text-xs",menuSubTrigger:"min-h-7 px-2 py-1 text-xs",menuItemShortcut:"text-xs",tableContainer:"[--base-table-header-height:2.25rem]",tableHead:"h-9 px-2 py-1.5 text-xs",tableCell:"px-2 py-1.5 text-xs",tableHeadLabel:"text-xs",tableHeadDescription:"text-xs leading-3",tableLoadingCell:"px-2 py-1.5",layoutRoot:"gap-token-md p-token-md",layoutBody:"gap-token-md",layoutPane:"rounded-md text-xs",layoutResizeHandleHorizontal:"w-1.5",layoutResizeHandleVertical:"h-1.5"},default:{buttonBase:"h-9"},comfortable:{buttonBase:"h-10 px-3.5",buttonIconOnly:"h-10 w-10 px-0",badgeBase:"px-2.5 py-1",panelHeader:"p-token-xl",panelBody:"px-token-xl pb-token-xl",panelBodyStandalone:"pt-token-xl",panelFooter:"px-token-xl py-token-lg",stateRoot:"min-h-56 px-8 py-12",stateIcon:"mb-5 h-14 w-14",fieldRoot:"gap-token-md",controlInput:"h-10",controlTextarea:"min-h-28",controlSelect:"h-10",selectMenu:"p-1.5",selectOption:"min-h-9 px-3 py-2",switchTrack:"h-7 w-12",switchThumb:"h-5 w-5",checkboxBox:"h-5 w-5",radioOption:"px-4 py-3",radioMarker:"h-5 w-5",radioIndicator:"h-2.5 w-2.5",dialogPanel:"max-w-xl",dialogHeader:"px-6 py-5",dialogBody:"px-6 py-5",dialogFooter:"px-6 py-5",dropdownMenu:"min-w-56",dropdownItem:"px-3 py-2.5",noticeBase:"px-5 py-4",sectionHeaderTitle:"text-lg leading-7",tabsTrigger:"px-3.5 py-2",tabsPanel:"p-5",segmentedItem:"px-3.5 py-2",progressTrack:"h-2.5",toolbarRoot:"px-token-xl py-token-lg",paginationButton:"h-9 min-w-9 px-3",paginationPage:"h-9 min-w-9 px-3",descriptionListItem:"px-4 py-3",accordionTrigger:"px-5 py-4",accordionPanel:"px-5 py-4",menuContent:"min-w-48 p-1.5",menuSubContent:"min-w-44 p-1.5",menuItem:"min-h-9 px-3 py-2",menuSubTrigger:"min-h-9 px-3 py-2",tableContainer:"[--base-table-header-height:3rem]",tableHead:"h-12 px-4 py-3",tableCell:"px-4 py-3",tableLoadingCell:"px-4 py-3",layoutRoot:"gap-token-lg p-token-lg",layoutBody:"gap-token-lg",layoutPane:"rounded-xl",layoutResizeHandleHorizontal:"w-2.5",layoutResizeHandleVertical:"h-2.5"}},af={none:{buttonBase:"rounded-none",badgeBase:"rounded-none",panelRoot:"rounded-none",stateRoot:"rounded-none",stateIcon:"rounded-none",controlWrapper:"rounded-none",selectMenu:"rounded-none",selectOption:"rounded-none",switchTrack:"rounded-none",switchThumb:"rounded-none",checkboxBox:"rounded-none",radioOption:"rounded-none",dialogPanel:"rounded-none",dialogClose:"rounded-none",dropdownMenu:"rounded-none",dropdownItem:"rounded-none",tooltipContent:"rounded-none",noticeBase:"rounded-none",tabsList:"rounded-none",tabsTrigger:"rounded-none",tabsPanel:"rounded-none",segmentedRoot:"rounded-none",segmentedItem:"rounded-none",progressTrack:"rounded-none",progressIndicator:"rounded-none",skeletonRoot:"rounded-none",avatarRoot:"rounded-none",avatarStatus:"rounded-none",toolbarRoot:"rounded-none",paginationButton:"rounded-none",paginationPage:"rounded-none",descriptionListItem:"rounded-none",accordionItem:"rounded-none",menuContent:"rounded-none",menuItem:"rounded-none",menuSubTrigger:"rounded-none",menuSubContent:"rounded-none",tableContainer:"rounded-none",tableEmptyIcon:"rounded-none",tableLoadingSkeleton:"rounded-none",layoutRoot:"rounded-none",layoutPane:"rounded-none"},sm:{buttonBase:"rounded-sm",badgeBase:"rounded-sm",panelRoot:"rounded-sm",stateRoot:"rounded-sm",stateIcon:"rounded-sm",controlWrapper:"rounded-sm",selectMenu:"rounded-sm",selectOption:"rounded-sm",switchTrack:"rounded-sm",switchThumb:"rounded-sm",checkboxBox:"rounded-sm",radioOption:"rounded-sm",dialogPanel:"rounded-sm",dialogClose:"rounded-sm",dropdownMenu:"rounded-sm",dropdownItem:"rounded-sm",tooltipContent:"rounded-sm",noticeBase:"rounded-sm",tabsList:"rounded-sm",tabsTrigger:"rounded-sm",tabsPanel:"rounded-sm",segmentedRoot:"rounded-sm",segmentedItem:"rounded-sm",progressTrack:"rounded-sm",progressIndicator:"rounded-sm",skeletonRoot:"rounded-sm",avatarRoot:"rounded-sm",avatarStatus:"rounded-sm",toolbarRoot:"rounded-sm",paginationButton:"rounded-sm",paginationPage:"rounded-sm",descriptionListItem:"rounded-sm",accordionItem:"rounded-sm",menuContent:"rounded-sm",menuItem:"rounded-sm",menuSubTrigger:"rounded-sm",menuSubContent:"rounded-sm",tableContainer:"rounded-sm",tableEmptyIcon:"rounded-sm",tableLoadingSkeleton:"rounded-sm",layoutRoot:"rounded-sm",layoutPane:"rounded-sm"},md:{},lg:{buttonBase:"rounded-lg",badgeBase:"rounded-lg",panelRoot:"rounded-xl",stateRoot:"rounded-xl",stateIcon:"rounded-xl",controlWrapper:"rounded-lg",selectMenu:"rounded-lg",selectOption:"rounded-md",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-md",radioOption:"rounded-xl",dialogPanel:"rounded-xl",dialogClose:"rounded-lg",dropdownMenu:"rounded-lg",dropdownItem:"rounded-md",tooltipContent:"rounded-md",noticeBase:"rounded-xl",tabsList:"rounded-xl",tabsTrigger:"rounded-lg",tabsPanel:"rounded-xl",segmentedRoot:"rounded-xl",segmentedItem:"rounded-lg",skeletonRoot:"rounded-lg",toolbarRoot:"rounded-xl",descriptionListItem:"rounded-lg",accordionItem:"rounded-xl",menuContent:"rounded-lg",menuItem:"rounded-md",menuSubTrigger:"rounded-md",menuSubContent:"rounded-lg",tableContainer:"rounded-xl",tableEmptyIcon:"rounded-xl",tableLoadingSkeleton:"rounded-lg",layoutRoot:"rounded-xl",layoutPane:"rounded-xl"},xl:{buttonBase:"rounded-xl",badgeBase:"rounded-xl",panelRoot:"rounded-2xl",stateRoot:"rounded-2xl",stateIcon:"rounded-2xl",controlWrapper:"rounded-xl",selectMenu:"rounded-xl",selectOption:"rounded-lg",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-lg",radioOption:"rounded-2xl",dialogPanel:"rounded-2xl",dialogClose:"rounded-xl",dropdownMenu:"rounded-xl",dropdownItem:"rounded-lg",tooltipContent:"rounded-lg",noticeBase:"rounded-2xl",tabsList:"rounded-2xl",tabsTrigger:"rounded-xl",tabsPanel:"rounded-2xl",segmentedRoot:"rounded-2xl",segmentedItem:"rounded-xl",skeletonRoot:"rounded-xl",toolbarRoot:"rounded-2xl",paginationButton:"rounded-xl",paginationPage:"rounded-xl",descriptionListItem:"rounded-xl",accordionItem:"rounded-2xl",menuContent:"rounded-xl",menuItem:"rounded-lg",menuSubTrigger:"rounded-lg",menuSubContent:"rounded-xl",tableContainer:"rounded-2xl",tableEmptyIcon:"rounded-2xl",tableLoadingSkeleton:"rounded-xl",layoutRoot:"rounded-2xl",layoutPane:"rounded-2xl"},full:{buttonBase:"rounded-full",badgeBase:"rounded-full",panelRoot:"rounded-2xl",stateRoot:"rounded-2xl",stateIcon:"rounded-full",controlWrapper:"rounded-full",selectMenu:"rounded-2xl",selectOption:"rounded-full",switchTrack:"rounded-full",switchThumb:"rounded-full",checkboxBox:"rounded-full",radioOption:"rounded-2xl",dialogPanel:"rounded-2xl",dialogClose:"rounded-full",dropdownMenu:"rounded-2xl",dropdownItem:"rounded-full",tooltipContent:"rounded-full",noticeBase:"rounded-2xl",tabsList:"rounded-full",tabsTrigger:"rounded-full",tabsPanel:"rounded-2xl",segmentedRoot:"rounded-full",segmentedItem:"rounded-full",progressTrack:"rounded-full",progressIndicator:"rounded-full",skeletonRoot:"rounded-full",avatarRoot:"rounded-full",avatarStatus:"rounded-full",toolbarRoot:"rounded-2xl",paginationButton:"rounded-full",paginationPage:"rounded-full",descriptionListItem:"rounded-2xl",accordionItem:"rounded-2xl",menuContent:"rounded-2xl",menuItem:"rounded-full",menuSubTrigger:"rounded-full",menuSubContent:"rounded-2xl",tableContainer:"rounded-2xl",tableEmptyIcon:"rounded-full",tableLoadingSkeleton:"rounded-full",layoutRoot:"rounded-2xl",layoutPane:"rounded-2xl"}},sf={none:{buttonBase:"border-transparent",badgeBase:"border-transparent",panelRoot:"border-transparent",panelFooter:"border-transparent",stateRoot:"border-transparent",controlWrapper:"border-transparent",selectMenu:"border-transparent",switchTrack:"border-transparent",checkboxBox:"border-transparent",radioOption:"border-transparent",radioMarker:"border-transparent",dialogPanel:"border-transparent",dialogHeader:"border-transparent",dialogFooter:"border-transparent",dropdownMenu:"border-transparent",tooltipContent:"border-transparent",noticeBase:"border-transparent",dividerRoot:"border-transparent",tabsList:"border-transparent",tabsPanel:"border-transparent",segmentedRoot:"border-transparent",avatarRoot:"border-transparent",toolbarRoot:"border-transparent",paginationButton:"border-transparent",descriptionListItem:"border-transparent",accordionItem:"border-transparent",accordionPanel:"border-transparent",menuContent:"border-transparent",menuSeparator:"bg-transparent",menuSubContent:"border-transparent",tableContainer:"border-transparent [--base-table-header-separator:transparent]",tableHeader:"border-transparent",tableFooter:"[&_tr>*]:border-transparent",tableFooterBar:"border-transparent",tableFooterBarAttached:"border-t border-transparent",tableRow:"[&>*]:border-transparent",tableEmptyRow:"[&>*]:border-transparent",tableLoadingRow:"[&>*]:border-transparent",layoutRoot:"border-transparent",layoutPaneBordered:"border-transparent",layoutResizeHandle:"bg-transparent hover:bg-transparent active:bg-transparent focus-visible:bg-transparent"},subtle:{buttonDefault:"border-border/60",badgeDefault:"border-border/60",panelRoot:"border-border/60",panelFooter:"border-border/60",stateRoot:"border-border/60",controlWrapper:"border-border/60",selectMenu:"border-border/60",switchTrack:"border-border/60",checkboxBox:"border-border/60",radioOption:"border-border/60",radioMarker:"border-border/60",dialogPanel:"border-border/60",dialogHeader:"border-border/60",dialogFooter:"border-border/60",dropdownMenu:"border-border/60",tooltipContent:"border-border/60",noticeDefault:"border-border/60",dividerRoot:"border-border/60",tabsList:"border-border/60",tabsPanel:"border-border/60",segmentedRoot:"border-border/60",avatarRoot:"border-border/60",toolbarRoot:"border-border/60",paginationButton:"border-border/60",descriptionListItem:"border-border/60",accordionItem:"border-border/60",accordionPanel:"border-border/60",menuContent:"border-border/60",menuSeparator:"bg-border/60",menuSubContent:"border-border/60",tableContainer:"border-border/60 [--base-table-header-separator:hsl(var(--border)_/_0.6)]",tableHeader:"border-border/60",tableFooter:"[&_tr>*]:border-border/60",tableFooterBar:"border-border/60",tableFooterBarAttached:"border-t border-border/60",tableRow:"[&>*]:border-border/50",tableEmptyRow:"[&>*]:border-border/50",tableLoadingRow:"[&>*]:border-border/50",layoutRoot:"border-border/60",layoutPaneBordered:"border-border/60"},solid:{},strong:{buttonDefault:"border-foreground/20",badgeDefault:"border-foreground/20",panelRoot:"border-foreground/20",panelFooter:"border-foreground/20",stateRoot:"border-foreground/20",controlWrapper:"border-foreground/20",selectMenu:"border-foreground/20",switchTrack:"border-foreground/20",checkboxBox:"border-foreground/20",radioOption:"border-foreground/20",radioMarker:"border-foreground/20",dialogPanel:"border-foreground/20",dialogHeader:"border-foreground/15",dialogFooter:"border-foreground/15",dropdownMenu:"border-foreground/20",tooltipContent:"border-foreground/20",noticeDefault:"border-foreground/20",dividerRoot:"border-foreground/20",tabsList:"border-foreground/20",tabsPanel:"border-foreground/20",segmentedRoot:"border-foreground/20",avatarRoot:"border-foreground/20",toolbarRoot:"border-foreground/20",paginationButton:"border-foreground/20",descriptionListItem:"border-foreground/20",accordionItem:"border-foreground/20",accordionPanel:"border-foreground/20",menuContent:"border-foreground/20",menuSeparator:"bg-foreground/15",menuSubContent:"border-foreground/20",tableContainer:"border-foreground/20 [--base-table-header-separator:hsl(var(--foreground)_/_0.15)]",tableHeader:"border-foreground/20",tableFooter:"[&_tr>*]:border-foreground/20",tableFooterBar:"border-foreground/20",tableFooterBarAttached:"border-t border-foreground/20",tableRow:"[&>*]:border-foreground/15",tableEmptyRow:"[&>*]:border-foreground/15",tableLoadingRow:"[&>*]:border-foreground/15",layoutRoot:"border-foreground/20",layoutPaneBordered:"border-foreground/20",layoutResizeHandle:"hover:bg-foreground/15 active:bg-foreground/20 focus-visible:bg-foreground/15"}},lf={plain:{},muted:{buttonDefault:"bg-muted/20 hover:bg-muted/45",panelRoot:"bg-card",panelFooter:"bg-muted/20",stateRoot:"bg-muted/20",controlWrapper:"bg-background",selectMenu:"bg-background",selectOptionActive:"bg-muted/70 text-foreground",checkboxBox:"bg-background",radioOption:"bg-card hover:bg-muted/45",radioMarker:"bg-background",dialogPanel:"bg-card",dropdownMenu:"bg-background",dropdownItem:"hover:bg-muted/60",tooltipContent:"bg-popover",noticeDefault:"bg-muted/20",tabsList:"bg-muted/35",tabsTriggerActive:"bg-background",tabsPanel:"bg-card",segmentedRoot:"bg-muted/35",segmentedItemActive:"bg-background",progressTrack:"bg-muted/60",skeletonRoot:"bg-muted",toolbarRoot:"bg-card",paginationButton:"bg-background hover:bg-muted/60",paginationPage:"bg-muted/60",descriptionListItem:"bg-card",accordionItem:"bg-card",menuContent:"bg-background",menuItem:"focus:bg-muted/70 data-[highlighted]:bg-muted/70",menuSubTrigger:"focus:bg-muted/70 data-[highlighted]:bg-muted/70 data-[state=open]:bg-muted/70",menuSubContent:"bg-background",tableContainer:"bg-background/95 [scrollbar-gutter:stable]",tableFooter:"bg-muted/35",tableFooterBar:"bg-muted/30 shadow-none",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.45)]",tableLoadingSkeleton:"bg-muted",layoutRoot:"bg-card",layoutPane:"bg-card",layoutPaneMuted:"bg-muted/35",layoutResizeHandle:"hover:bg-border/70 active:bg-border/80 focus-visible:bg-border/70"},soft:{buttonDefault:"bg-muted/30 hover:bg-muted/55",panelRoot:"bg-background/95 shadow-sm",stateRoot:"bg-background/95 shadow-sm",controlWrapper:"bg-background/95",selectMenu:"bg-background/95 shadow-xl",selectOptionActive:"bg-muted/60 text-foreground",checkboxBox:"bg-background/95",radioOption:"bg-background/95 shadow-sm hover:bg-muted/35",radioMarker:"bg-background/95",dialogPanel:"bg-background/95 shadow-xl",dropdownMenu:"bg-background/95 shadow-xl",dropdownItem:"hover:bg-muted/55",tooltipContent:"bg-popover shadow-xl",noticeDefault:"bg-background/95 shadow-sm",tabsList:"bg-background/60 shadow-sm",tabsTriggerActive:"bg-background",tabsPanel:"bg-background/95 shadow-sm",segmentedRoot:"bg-background/60 shadow-sm",segmentedItemActive:"bg-background",skeletonRoot:"bg-background/80",toolbarRoot:"bg-background/95 shadow-sm",paginationButton:"bg-background/95 hover:bg-muted/55",descriptionListItem:"bg-background/95 shadow-sm",accordionItem:"bg-background/95 shadow-sm",menuContent:"bg-background/95 shadow-xl",menuItem:"focus:bg-muted/60 data-[highlighted]:bg-muted/60",menuSubTrigger:"focus:bg-muted/60 data-[highlighted]:bg-muted/60 data-[state=open]:bg-muted/60",menuSubContent:"bg-background/95 shadow-xl",tableContainer:"bg-background/95 shadow-sm [scrollbar-gutter:stable]",tableFooter:"bg-muted/25",tableFooterBar:"bg-muted/25 shadow-none",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--muted)_/_0.35)]",tableLoadingSkeleton:"bg-muted/65",layoutRoot:"bg-background/95 shadow-sm",layoutPane:"bg-background/95 shadow-sm",layoutPaneSoft:"bg-background/95 shadow-md"},glass:{buttonBase:"backdrop-blur-md",buttonDefault:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",badgeDefault:"border-white/10 bg-white/[0.08] text-foreground",panelRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",panelFooter:"border-white/10 bg-white/[0.05]",stateRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",stateIcon:"bg-white/10 text-foreground",controlWrapper:"border-white/10 bg-white/[0.08] text-foreground backdrop-blur-md",selectMenu:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",selectOption:"text-foreground",selectOptionActive:"bg-white/[0.14] text-foreground",selectOptionSelected:"bg-white/[0.18] text-foreground",switchTrack:"border-white/10 bg-white/[0.12] backdrop-blur-md",checkboxBox:"border-white/10 bg-white/[0.08] backdrop-blur-md",checkboxBoxChecked:"border-white/20 bg-white/[0.22] text-foreground",radioOption:"border-white/10 bg-white/[0.06] backdrop-blur-md hover:bg-white/[0.10]",radioMarker:"border-white/10 bg-white/[0.08] backdrop-blur-md",radioMarkerChecked:"border-white/25 bg-white/[0.16]",dialogOverlay:"bg-background/45 backdrop-blur-md",dialogPanel:"border-white/10 bg-white/[0.08] shadow-2xl backdrop-blur-md",dialogHeader:"border-white/10",dialogFooter:"border-white/10",dropdownMenu:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",dropdownItem:"text-foreground hover:bg-white/[0.14]",tooltipContent:"border-foreground/10 bg-background/15 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",noticeDefault:"border-white/10 bg-white/[0.08] text-foreground backdrop-blur-md",dividerRoot:"border-white/15",tabsList:"border-white/10 bg-white/[0.08] backdrop-blur-md",tabsTrigger:"text-muted-foreground hover:bg-white/[0.12] hover:text-foreground",tabsTriggerActive:"bg-white/[0.16] text-foreground shadow-none",tabsPanel:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",segmentedRoot:"border-white/10 bg-white/[0.08] backdrop-blur-md",segmentedItem:"text-muted-foreground hover:bg-white/[0.12] hover:text-foreground",segmentedItemActive:"bg-white/[0.16] text-foreground shadow-none",progressTrack:"bg-white/[0.12]",skeletonRoot:"bg-white/[0.16]",avatarRoot:"border-white/10 bg-white/[0.12] text-foreground",avatarFallback:"bg-white/[0.12] text-foreground",avatarStatus:"border-background",toolbarRoot:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",paginationButton:"border-white/10 bg-white/[0.08] text-foreground hover:bg-white/[0.14]",paginationPage:"bg-white/[0.12] text-foreground",descriptionListItem:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",accordionItem:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",accordionPanel:"border-white/10",menuContent:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",menuSeparator:"bg-white/10",menuItem:"text-foreground focus:bg-white/[0.14] focus:text-foreground data-[highlighted]:bg-white/[0.14] data-[highlighted]:text-foreground",menuSubTrigger:"text-foreground focus:bg-white/[0.14] focus:text-foreground data-[highlighted]:bg-white/[0.14] data-[highlighted]:text-foreground data-[state=open]:bg-white/[0.16]",menuSubContent:"border-foreground/10 bg-background/10 text-foreground shadow-[0_18px_60px_hsl(var(--foreground)/0.18)] backdrop-blur-md",tableContainer:"border-foreground/10 bg-background/[0.06] shadow-none backdrop-blur-md [scrollbar-gutter:stable] [--base-table-sticky-header-bg:hsl(var(--background)/0.94)] [--base-table-header-separator:hsl(var(--foreground)/0.24)]",tableHeader:"border-white/10",tableFooter:"bg-white/[0.05] [&_tr>*]:border-white/10",tableFooterBar:"border-white/10 bg-white/[0.05] shadow-none backdrop-blur-md",tableFooterBarAttached:"border-t border-white/10",tableRow:"[&>*]:border-white/10",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--foreground)/0.08)]",tableHeadLabel:"text-foreground",tableLoadingSkeleton:"bg-white/[0.16]",layoutRoot:"border-white/10 bg-white/[0.05] shadow-none backdrop-blur-md",layoutPane:"border-white/10 bg-white/[0.06] shadow-none backdrop-blur-md",layoutPaneMuted:"bg-white/[0.08]",layoutPaneSoft:"bg-white/[0.10] shadow-none backdrop-blur-md",layoutResizeHandle:"text-foreground/65 hover:bg-white/10 active:bg-white/15 focus-visible:bg-white/10",layoutResizeHandleIndicator:"bg-white/45 group-hover/resize:bg-white/75"},dark:{buttonBase:"border-white/15 text-white shadow-lg backdrop-blur",buttonDefault:"bg-black/30 hover:bg-black/[0.45]",buttonPrimary:"border-white/25 bg-white/20 text-white hover:bg-white/25",buttonMuted:"border-white/10 bg-black/20 text-white/70 hover:bg-black/[0.35] hover:text-white",badgeDefault:"border-white/10 bg-white/[0.08] text-white",badgeMuted:"border-white/10 bg-black/20 text-white/70",panelRoot:"border-white/10 bg-slate-950 text-white shadow-none",panelTitle:"text-white",panelDescription:"text-white/65",panelBody:"text-white/85",panelFooter:"border-white/10 bg-white/[0.04]",stateRoot:"border-white/10 bg-slate-950 text-white shadow-none",stateIcon:"bg-white/10 text-white/75",stateTitle:"text-white",stateDescription:"text-white/65",fieldLabel:"text-white",fieldDescription:"text-white/65",fieldMessage:"text-white/65",controlWrapper:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur focus-within:border-white/35",controlBase:"text-white placeholder:text-white/45",selectChevron:"text-white/65",selectMenu:"border-white/15 bg-slate-950 text-white shadow-2xl",selectOption:"text-white",selectOptionActive:"bg-white/[0.12] text-white",selectOptionSelected:"bg-white/[0.16] text-white",selectPlaceholder:"text-white/45",switchTrack:"border-white/15 bg-black/30 shadow-lg backdrop-blur",switchChecked:"border-white/25 bg-white/25 text-white",switchLabel:"text-white",switchDescription:"text-white/65",checkboxBox:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur",checkboxBoxChecked:"border-white/25 bg-white/25 text-white",checkboxLabel:"text-white",checkboxDescription:"text-white/65",radioOption:"border-white/10 bg-white/[0.06] text-white hover:bg-white/[0.08]",radioMarker:"border-white/15 bg-black/30 text-white shadow-lg backdrop-blur",radioMarkerChecked:"border-white/25 bg-white/25",radioIndicator:"bg-white",radioLabel:"text-white",radioDescription:"text-white/65",dialogOverlay:"bg-slate-950/75",dialogPanel:"border-white/10 bg-slate-950 text-white shadow-2xl",dialogHeader:"border-white/10",dialogTitle:"text-white",dialogDescription:"text-white/65",dialogBody:"text-white/85",dialogFooter:"border-white/10",dialogClose:"text-white/65 hover:bg-white/[0.08] hover:text-white",dropdownMenu:"border-white/15 bg-slate-950 text-white shadow-2xl",dropdownLabel:"text-white/55",dropdownSeparator:"bg-white/15",dropdownItem:"text-white hover:bg-white/[0.10]",dropdownItemDescription:"text-white/55",dropdownItemShortcut:"text-white/55",tooltipContent:"border-white/15 bg-slate-950 text-white shadow-2xl",noticeDefault:"border-white/10 bg-white/[0.08] text-white",noticeMuted:"border-white/10 bg-black/20 text-white/70",dividerRoot:"border-white/15",dividerLabel:"text-white/55",sectionHeaderEyebrow:"text-white/55",sectionHeaderTitle:"text-white",sectionHeaderDescription:"text-white/65",tabsList:"border-white/10 bg-white/[0.08]",tabsTrigger:"text-white/65 hover:bg-white/[0.12] hover:text-white",tabsTriggerActive:"bg-white/[0.16] text-white shadow-none",tabsPanel:"border-white/10 bg-white/[0.06] text-white",segmentedRoot:"border-white/10 bg-white/[0.08]",segmentedItem:"text-white/65 hover:bg-white/[0.12] hover:text-white",segmentedItemActive:"bg-white/[0.16] text-white shadow-none",progressTrack:"bg-white/[0.12]",progressLabel:"text-white",progressValue:"text-white/65",skeletonRoot:"bg-white/[0.14]",avatarRoot:"border-white/15 bg-white/[0.10] text-white",avatarFallback:"bg-white/[0.10] text-white/75",avatarText:"text-white",avatarStatus:"border-slate-950",toolbarRoot:"border-white/10 bg-white/[0.06] text-white",toolbarTitle:"text-white",toolbarDescription:"text-white/65",breadcrumbLink:"text-white/65 hover:text-white",breadcrumbCurrent:"text-white",breadcrumbSeparator:"text-white/45",paginationInfo:"text-white/65",paginationButton:"border-white/10 bg-white/[0.08] text-white hover:bg-white/[0.14]",paginationPage:"bg-white/[0.14] text-white",descriptionListItem:"border-white/10 bg-white/[0.06]",descriptionListTerm:"text-white/55",descriptionListValue:"text-white",accordionItem:"border-white/10 bg-white/[0.06]",accordionTrigger:"text-white hover:bg-white/[0.08]",accordionPanel:"border-white/10 text-white/70",tableContainer:"border-foreground/10 bg-background text-foreground shadow-none [scrollbar-gutter:stable] [--base-table-sticky-header-bg:hsl(var(--background)/0.98)] [--base-table-header-separator:hsl(var(--foreground)/0.16)]",tableRoot:"text-white",tableHeader:"border-white/10",tableFooter:"bg-white/[0.05] [&_tr>*]:border-white/10",tableFooterBar:"border-white/10 bg-white/[0.05] text-white/65",tableFooterBarAttached:"border-t border-white/10",tableRow:"[&>*]:border-white/10",tableRowInteractive:"cursor-pointer [--base-table-row-hover-bg:hsl(var(--foreground)/0.06)]",tableHead:"text-white/65",tableHeadLabel:"text-white",tableHeadDescription:"text-white/55",tableHeadMeta:"text-white/55",tableHeadIcon:"text-white/55",tableHeadSortIcon:"text-white/55",tableHeadDragHandle:"text-white/55 hover:bg-white/[0.08]",tableHeadResizeHandle:"after:bg-white/20 hover:after:bg-white/60",tableCell:"text-white/85",tableEmptyIcon:"bg-white/10 text-white/65",tableEmptyTitle:"text-white",tableEmptyDescription:"text-white/60",menuContent:"border-white/10 bg-slate-950 text-white shadow-2xl",menuLabel:"text-white/55",menuSeparator:"bg-white/10",menuItem:"text-white focus:bg-white/[0.10] focus:text-white data-[highlighted]:bg-white/[0.10] data-[highlighted]:text-white",menuItemDefault:"text-white",menuItemPrimary:"text-primary focus:text-primary data-[highlighted]:text-primary",menuItemSuccess:"text-[hsl(var(--success,142_69%_58%))] focus:text-[hsl(var(--success,142_69%_58%))] data-[highlighted]:text-[hsl(var(--success,142_69%_58%))]",menuItemWarning:"text-[hsl(var(--warning-foreground,53_98%_77%))] focus:text-[hsl(var(--warning-foreground,53_98%_77%))] data-[highlighted]:text-[hsl(var(--warning-foreground,53_98%_77%))]",menuItemDanger:"text-destructive-text focus:text-destructive-text data-[highlighted]:text-destructive-text",menuItemMuted:"text-white/65 focus:text-white data-[highlighted]:text-white",menuItemShortcut:"text-white/45",menuSubTrigger:"text-white focus:bg-white/[0.10] focus:text-white data-[highlighted]:bg-white/[0.10] data-[highlighted]:text-white data-[state=open]:bg-white/[0.12]",menuSubTriggerIcon:"text-white/55",menuSubContent:"border-white/10 bg-slate-950 text-white shadow-2xl",tableLoadingSkeleton:"bg-white/[0.14]",layoutRoot:"border-white/10 bg-slate-950 text-white shadow-none",layoutPane:"border-white/10 bg-slate-950 text-white shadow-none",layoutPaneMuted:"bg-white/[0.06]",layoutPaneSoft:"bg-white/[0.08] shadow-none",layoutResizeHandle:"text-white/65 hover:bg-white/10 active:bg-white/15 focus-visible:bg-white/10",layoutResizeHandleIndicator:"bg-white/45 group-hover/resize:bg-white/75"}},Ul={default:{density:"default",radius:"md",border:"solid",background:"plain"},soft:{density:"default",radius:"lg",border:"subtle",background:"soft"},compact:{density:"compact",radius:"md",border:"subtle",background:"muted"},"tinted-glass":{density:"default",radius:"lg",border:"subtle",background:"glass"},glass:{density:"default",radius:"xl",border:"subtle",background:"glass"},"hard-edge":{density:"compact",radius:"none",border:"strong",background:"plain"}},df={soft:{buttonBase:"font-medium",panelRoot:"border-border/70",controlWrapper:"font-medium",tabsTrigger:"font-medium",segmentedItem:"font-medium",toolbarRoot:"border-border/70",tableContainer:"border-border/70",tableFooterBar:"border-border/70",tableHeadLabel:"font-semibold",menuItemLabel:"font-medium"},compact:{buttonBase:"text-xs",badgeBase:"text-xs",fieldLabel:"text-xs",controlBase:"text-xs",selectOption:"text-xs",menuItem:"text-xs",menuSubTrigger:"text-xs",noticeBase:"text-xs",sectionHeaderTitle:"text-sm",tabsTrigger:"text-xs",segmentedItem:"text-xs",toolbarTitle:"text-xs",paginationRoot:"text-xs"},"tinted-glass":{buttonPrimary:"border-primary/25 bg-primary/15 text-primary-foreground hover:bg-primary/20",badgePrimary:"border-primary/25 bg-primary/15 text-primary-foreground",noticePrimary:"border-primary/25 bg-primary/15 text-primary-foreground",progressIndicator:"bg-primary",avatarStatus:"border-background"},glass:{panelRoot:"shadow-[0_24px_80px_hsl(var(--foreground)/0.12)]",stateRoot:"shadow-[0_24px_80px_hsl(var(--foreground)/0.12)]",noticeBase:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",tabsPanel:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",toolbarRoot:"shadow-[0_18px_60px_hsl(var(--foreground)/0.10)]",descriptionListItem:"shadow-[0_12px_40px_hsl(var(--foreground)/0.08)]",accordionItem:"shadow-[0_12px_40px_hsl(var(--foreground)/0.08)]"},"hard-edge":{buttonBase:"shadow-none",panelRoot:"shadow-none",stateRoot:"shadow-none",controlWrapper:"shadow-none",selectMenu:"shadow-none",menuContent:"shadow-none",menuSubContent:"shadow-none",noticeBase:"shadow-none",tabsList:"shadow-none",tabsTriggerActive:"shadow-none",tabsPanel:"shadow-none",segmentedRoot:"shadow-none",segmentedItemActive:"shadow-none",toolbarRoot:"shadow-none",descriptionListItem:"shadow-none",accordionItem:"shadow-none"}};function cf(e){return Ul[e]??Ul.default}i(cf,"getPresetDefaults");var uf=Object.keys(Fl),pf=Dl(uf,N);function mf(...e){return Object.assign({},...e.filter(Boolean))}i(mf,"mergeStyles");function Ol(e){let t=e?.preset??"default",o=e?.variant??"default",n=cf(t),r=e?.density??n.density??"default",a=e?.state??"idle",l=e?.radius??n.radius??"md",s=e?.border??n.border??"solid",d=e?.background??n.background??"plain";return {preset:t,variant:o,density:r,state:a,radius:l,border:s,background:d,styles:mf(of,e?.styles),slots:pf(Fl,df[t],rf[r],af[l],sf[s],lf[d],e?.slots)}}i(Ol,"resolveBaseAppearance");function Hl({as:e="article",decoration:t,title:o,description:n,media:r,header:a,footer:l,children:s,interactive:d,selected:u,disabled:m,appearance:c,variant:p,density:h,state:v,className:w,classNames:g,style:f,...x}){let y=Ol({...c,variant:p,density:h,state:v}),$=e,M=a!==void 0?en(a):en(o)||en(n),C=r!=null,R=!M&&!C;return jsxs($,{...x,"aria-disabled":m||void 0,"data-variant":y.variant,"data-density":y.density,"data-state":v??(m?"disabled":u?"selected":"idle"),"data-monkeys-component":"panel","data-slot":"root","data-interactive":d||void 0,"data-selected":u||void 0,"data-disabled":m||void 0,className:N(y.slots.panelRoot,d&&!m&&y.slots.panelInteractive,u&&y.slots.panelSelected,m&&y.slots.panelDisabled,g?.root,w),style:{...y.styles.panel,...f},children:[t,C?jsx("div",{"data-slot":"media",className:N(y.slots.panelMedia,g?.media),children:r}):null,M?jsx("div",{"data-slot":"header",className:N(y.slots.panelHeader,g?.header),style:y.styles.panelHeader,children:a!==void 0?a:jsxs(Fragment,{children:[en(o)?jsx("div",{"data-slot":"title",className:N(y.slots.panelTitle,g?.title),children:o}):null,en(n)?jsx("div",{"data-slot":"description",className:N(y.slots.panelDescription,g?.description),children:n}):null]})}):null,s!=null?jsx("div",{"data-slot":"body",className:N(y.slots.panelBody,R&&y.slots.panelBodyStandalone,g?.body),style:y.styles.panelBody,children:s}):null,l!=null?jsx("div",{"data-slot":"footer",className:N(y.slots.panelFooter,g?.footer),style:y.styles.panelFooter,children:l}):null]})}i(Hl,"BasePanel");var Vl=i(e=>e==null?void 0:typeof e=="number"?`${e}px`:e,"cssSize"),Wl=i(e=>e!==void 0&&Number.isFinite(e)&&e>0?e:8,"safeSpeed"),ff=i(e=>{let[t,o=t]=e.trim().split(/\s*\/\s*|\s+/);return {rx:t,ry:o}},"radiusParts");function Yi({mode:e="solid",color:t,colors:o,width:n=1,radius:r,speed:a,direction:l="clockwise",className:s,style:d}){let m=`border-effect-${he.useId().replace(/:/g,"")}`,c=he.useRef(null),[p,h]=he.useState({width:0,height:0,rx:"0px",ry:"0px"});he.useEffect(()=>{let C=c.current;if(!C||typeof ResizeObserver>"u")return;let R=i(()=>{let L=getComputedStyle(C).borderTopLeftRadius,B=ff(L),{rx:k,ry:T}=B;h({width:C.clientWidth,height:C.clientHeight,rx:k,ry:T});},"update");R();let P=new ResizeObserver(R);P.observe(C);let F=new MutationObserver(R);for(let L=C;L;L=L.parentElement)F.observe(L,{attributes:true});return ()=>{P.disconnect(),F.disconnect();}},[r]);let v=o?.length?o:[t||"hsl(var(--monkeys-color-border, var(--border, var(--input))))"],w=v.length===1?[v[0],v[0]]:v,g=l==="counterclockwise"?"reverse":"normal",f=(p.width||1)/2,x=(p.height||1)/2,y=l==="counterclockwise"?`360 ${f} ${x};0 ${f} ${x}`:`0 ${f} ${x};360 ${f} ${x}`,M={...{"--border-effect-width":Vl(n),"--border-effect-radius":Vl(r)||"inherit","--border-effect-speed":`${Wl(a)}s`,"--border-effect-color":t||"hsl(var(--monkeys-color-border, var(--border, var(--input))))","--border-effect-gradient":`linear-gradient(90deg, ${w.join(", ")})`,"--border-effect-direction":g},...d};return jsxs("div",{ref:c,"aria-hidden":"true",className:`monkeys-border-effect monkeys-border-effect-${e}${s?` ${s}`:""}`,style:{...M,pointerEvents:"none"},children:[jsx("span",{className:"monkeys-border-effect-ring"}),e==="animated"&&jsxs("svg",{"aria-hidden":"true",focusable:"false",className:"monkeys-border-effect-svg",viewBox:`0 0 ${p.width||1} ${p.height||1}`,children:[jsx("defs",{children:jsxs("linearGradient",{id:m,gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:p.width||1,y2:"0",children:[w.map((C,R)=>jsx("stop",{offset:`${R/(w.length-1)*100}%`,stopColor:C},R)),jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",values:y,dur:`${Wl(a)}s`,repeatCount:"indefinite"})]})}),jsx("rect",{x:"0",y:"0",width:p.width,height:p.height,rx:p.rx,ry:p.ry,fill:"none",stroke:`url(#${m})`,style:{strokeWidth:"calc(var(--border-effect-width) * 2)"}})]})]})}i(Yi,"BorderEffect");var hf=i((e,t)=>Object.keys(e??{}).some(o=>o.startsWith("padding")&&e?.[o]!==void 0)||/(?:^|[\s:])!?p[xytrblse]?-(?:\[|[a-z0-9])/.test(t??""),"ownsPadding");function jl({children:e,className:t,contentClassName:o,chrome:n="panel",borderEffect:r,decoration:a,headerWrap:l=false,title:s,titleIcon:d,action:u,appearance:m,classNames:c,...p}){let{parentDepth:h,level:v,variables:w}=qi(),g=Cs(m),f=n==="panel",x=f&&r!=null,y=Ll(p,f),$=hf(g?.styles?.panelBody,[c?.body,o,g?.slots?.panelBody].join(" "));return jsx(Rr,{depth:f?v:h,children:jsx(Hl,{as:"section",appearance:{...g,slots:{...g?.slots,panelRoot:g?.slots?.panelRoot},styles:{...g?.styles,panelHeader:{...n==="plain"?{padding:0,paddingBlockEnd:"var(--global-spacing-lg, 1rem)"}:{},...g?.styles?.panelHeader},panelBody:{...!$||n==="plain"?{padding:0}:{},...g?.styles?.panelBody}}},classNames:{...c,root:N("min-h-0",f&&"gap-[var(--monkeys-bento-gap)]",f&&g?.radius===void 0&&!g?.preset&&"rounded-[var(--monkeys-bento-radius)]",f&&g?.border===void 0&&!g?.preset&&"border-[length:var(--monkeys-bento-border-width)] border-[color:var(--monkeys-bento-border-color)] [border-style:var(--monkeys-bento-border-style)]",f&&g?.background===void 0&&!g?.preset&&"bg-[var(--monkeys-bento-background)]",f&&!g?.preset&&g?.background===void 0&&"shadow-[shadow:var(--monkeys-bento-shadow)]",f&&!$&&"p-[var(--monkeys-bento-padding)]",!f&&"border-0 bg-transparent shadow-none",g?.slots?.panelRoot,c?.root,t),header:N("flex min-w-0 items-center gap-[var(--monkeys-bento-gap,var(--global-spacing,0.75rem))] border-b border-border p-0 pb-[var(--monkeys-bento-gap)]",n==="plain"&&"border-0 px-0 pt-0 pb-token-lg",c?.header),body:N("flex min-h-0 flex-col gap-[var(--monkeys-bento-gap,var(--global-spacing,0.75rem))] p-0",g?.slots?.panelBody,c?.body,o),footer:N("px-0 pb-0 pt-[var(--monkeys-bento-gap)]",c?.footer)},header:s?jsxs("div",{style:{alignItems:g?.styles?.panelHeader?.alignItems},className:N("flex min-w-0 flex-1 items-center justify-between gap-token-md",l&&"flex-wrap"),children:[jsxs("div",{className:N("flex min-w-0 flex-1 items-center gap-token-sm",l&&"basis-auto"),children:[d?jsx("span",{className:"inline-flex size-8 shrink-0 items-center justify-center rounded-md border border-primary/30 bg-primary/10 text-primary",children:jsx(d,{className:"size-4 text-primary",color:"currentColor",stroke:"currentColor"})}):null,jsxs("div",{className:"min-w-0",children:[jsx("h2",{style:{margin:0},className:"truncate text-base font-semibold text-foreground",children:s}),p.description?jsx("div",{className:"mt-1 text-sm text-muted-foreground",children:p.description}):null]})]}),u?jsx("div",{className:N("shrink-0",l&&"max-w-full"),children:u}):null]}):void 0,...p,...y,decoration:jsxs(Fragment,{children:[a,x?jsx(Yi,{...r}):null]}),"data-monkeys-bento-level":f?v:void 0,style:{...f?w:{},...p.style,...x?{borderColor:"transparent"}:{}},children:e})})}i(jl,"BentoPanel");var Gl=Symbol.for("@inf-monkeys-tech/monkeys-design/dialog-dock@1"),ql=globalThis,xf=ql[Gl]??(ql[Gl]=he.createContext(null)),yt=i(()=>he.useContext(xf),"useDialogDock");var Qi=he.forwardRef(({children:e,className:t,style:o,closeLabel:n="Close",showCloseButton:r=true,onInteractOutside:a,...l},s)=>{let d=yt(),u=he.useId(),m=he.useRef(null),c=he.useRef(false);return he.useEffect(()=>{c.current&&!d?.collapsed&&d?.activeId===u&&m.current?.focus(),c.current=!!d?.collapsed;},[d?.collapsed,d?.activeId,u]),he.useEffect(()=>d?.register(u),[d?.register,u]),d?.container?jsx(_e.Portal,{container:d.container,children:jsx("div",{style:{display:"contents"},children:jsx(on,{children:jsx(jl,{className:"monkeys-dialog-dock-panel overflow-auto",contentClassName:"shrink-0",style:{display:d.activeId===u?void 0:"none"},children:jsxs(_e.Content,{...l,ref:s,"data-monkeys-dialog-content":true,"data-presentation":"docked","data-title-visible":d.showTitle,"data-collapsible":d.collapsible,className:N("monkeys-dialog-dock-content",t),style:o,onInteractOutside:p=>{a?.(p),p.preventDefault();},children:[e,d.collapsible&&jsx("button",{ref:m,type:"button",className:"monkeys-dialog-dock-collapse","aria-label":d.collapseLabel,title:d.collapseLabel,"aria-expanded":!d.collapsed,onClick:()=>d.setCollapsed(true),children:jsx(PanelRightClose,{"aria-hidden":"true",className:"size-4"})}),r&&jsxs(_e.Close,{className:"monkeys-dialog-dock-close","aria-label":typeof n=="string"?n:void 0,children:[jsx(X,{"aria-hidden":"true",className:"size-4"}),jsx("span",{className:"sr-only",children:n})]})]})})})})}):null});Qi.displayName="DockedDialogContent";var Yl=forwardRef(i(function({slotComponent:t,...o},n){return t?jsx(t,{...o,ref:n}):jsx(Button,{...o,ref:n})},"ButtonCore"));var Tf=forwardRef(i(function({dir:t,...o},n){let r=useDirection();return jsx(DirectionProvider,{direction:t==="ltr"||t==="rtl"?t:r,children:jsx(Tabs.Root,{...o,dir:t,ref:n})})},"TabsRoot")),En={Root:Tf,List:Tabs.List,Trigger:Tabs.Tab,Content:Tabs.Panel};var Mf=he.forwardRef(({className:e,style:t,...o},n)=>jsx(oo.Item,{ref:n,className:N("border-b",e),style:{borderColor:"var(--monkeys-component-accordion-item-border-color, hsl(var(--border)))",...t},...o}));Mf.displayName="AccordionItem";var If=he.forwardRef(({className:e,children:t,...o},n)=>jsx(oo.Header,{className:"flex",children:jsxs(oo.Trigger,{ref:n,className:N("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...o,children:[t,jsx(ChevronDown,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));If.displayName="AccordionTrigger";var Bf=he.forwardRef(({className:e,children:t,...o},n)=>jsx(oo.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:jsx("div",{className:N("pb-4 pt-0",e),children:t})}));Bf.displayName="AccordionContent";var Af=he.forwardRef(({className:e,...t},o)=>jsx(Br.Root,{ref:o,className:N("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:jsx(Br.Indicator,{className:"flex items-center justify-center text-current",children:jsx(Check$1,{"aria-hidden":"true",className:"h-4 w-4"})})}));Af.displayName="Checkbox";var Ln=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_[data-slot=icon]]:text-[inherit] [&_[data-slot=icon]_*]:!text-[inherit] [&_[data-slot=icon]_svg]:!stroke-current [&_[data-slot=icon]_svg_*]:!stroke-current [&_[data-slot=end-icon]]:text-[inherit] [&_[data-slot=end-icon]_*]:!text-[inherit] [&_[data-slot=end-icon]_svg]:!stroke-current [&_[data-slot=end-icon]_svg_*]:!stroke-current [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-control-surface shadow-sm ring-offset-control-surface hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),an=he.forwardRef(({className:e,variant:t,size:o,asChild:n=false,unstyled:r=false,...a},l)=>jsx(Yl,{ref:l,slotComponent:n?Slot:void 0,type:a.type,tabIndex:a.tabIndex,className:r?e:Ln({variant:t,size:o,className:e}),...a}));an.displayName="Button";var Ef=he.forwardRef(({className:e,children:t,viewportClassName:o,viewportRef:n,onViewportScroll:r,scrollbar:a=true,scrollbarOrientation:l="vertical",scrollBarDisabled:s=false,type:d,...u},m)=>{let c=tn();return jsxs(Kt.Root,{ref:m,type:d??(c>0?"auto":void 0),className:N("group relative overflow-hidden",s&&"no-scrollbar",e),...u,children:[jsx(Kt.Viewport,{ref:n,onScroll:r,className:N("h-full w-full rounded-[inherit]",o),children:t}),a?jsx(ed,{orientation:l,className:N(s&&"size-0 p-0")}):null,jsx(Kt.Corner,{})]})});Ef.displayName="ScrollArea";var ed=he.forwardRef(({className:e,orientation:t="vertical",...o},n)=>jsx(Kt.ScrollAreaScrollbar,{ref:n,"data-monkeys-scrollbar":"",orientation:t,className:N("flex touch-none select-none opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 data-[state=visible]:opacity-100",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e),...o,children:jsx(Kt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ed.displayName="ScrollBar";var Lf=he.forwardRef(({className:e,...t},o)=>jsx(ir.Root,{ref:o,className:N("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,children:jsx(ir.Thumb,{className:"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"})}));Lf.displayName="Switch";var Zl=Symbol.for("@inf-monkeys-tech/monkeys-design/tabs-adapter@1"),Jl=globalThis,td=Jl[Zl]??(Jl[Zl]=he.createContext(null));function Ji(){let e=he.useContext(td);if(!e)throw new Error("Tabs slots must be used within Tabs.");return e}i(Ji,"useTabsAdapter");function ea(e,t){return e?he.Children.only(t):void 0}i(ea,"tabsSlot");var Df=he.forwardRef(({variant:e="default",orientation:t="horizontal",activationMode:o="automatic",value:n,defaultValue:r,onValueChange:a,dir:l,asChild:s,children:d,...u},m)=>{let c=ht(),[p,h]=he.useState(r??""),v=n??p,w=he.useId(),g=he.useMemo(()=>({activationMode:o,orientation:t,baseId:w,value:v}),[o,t,w,v]);return jsx(td.Provider,{value:g,children:jsx(En.Root,{ref:m,dir:l??c.dir,orientation:t,"data-variant":e,value:v,onValueChange:f=>{typeof f!="string"||f===v||(n===void 0&&h(f),a?.(f));},render:ea(s,d),...u,children:s?void 0:d})})});Df.displayName="Tabs";var zf=he.forwardRef(({className:e,gap:t,style:o,loop:n,asChild:r,children:a,onKeyDown:l,...s},d)=>{let{activationMode:u,orientation:m}=Ji();return jsx(En.List,{ref:d,"aria-orientation":m,activateOnFocus:u==="automatic",loopFocus:n,onKeyDown:c=>{l?.(c),c.defaultPrevented&&c.preventBaseUIHandler();},render:ea(r,a),className:N("inline-flex h-10 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),style:{gap:t,...o},...s,children:r?void 0:a})});zf.displayName="TabsList";var Uf=he.forwardRef(({className:e,disabled:t,asChild:o,children:n,value:r,...a},l)=>{let s=Ji(),d=ea(o,n),u=!d||typeof d.type!="string"||d.type==="button";return jsx(En.Trigger,{ref:l,value:r,id:`${s.baseId}-trigger-${r}`,"aria-controls":`${s.baseId}-content-${r}`,"data-state":s.value===r?"active":"inactive","data-disabled":t?"":void 0,nativeButton:u,disabled:!u&&t,render:m=>jsx(o?Slot:"button",{...m,disabled:u&&t?true:void 0,children:n}),className:N("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...a})});Uf.displayName="TabsTrigger";var Ff=he.forwardRef(({className:e,value:t,forceMount:o,hidden:n,asChild:r,children:a,...l},s)=>{let d=tn(),u=Ji();return jsx(En.Content,{ref:s,value:t,keepMounted:true,id:`${u.baseId}-content-${t}`,"aria-labelledby":`${u.baseId}-trigger-${t}`,"data-state":u.value===t?"active":"inactive",tabIndex:0,render:(m,c)=>jsx(r?Slot:"div",{...m,inert:void 0,hidden:n??(!o&&c.hidden),children:o||!c.hidden?a:null}),className:N("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",d>0&&"gap-[var(--monkeys-bento-gap)]",e),...l})});Ff.displayName="TabsContent";var Of=he.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let r=ht();return jsx(Do.Portal,{children:jsx(Do.Content,{...r,...o,ref:n,sideOffset:t,"data-monkeys-component":"tooltip","data-slot":"content","data-surface":"menu",className:N("z-50 overflow-hidden border px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",to("menu"),e)})})});Of.displayName="TooltipContent";var nd=Symbol.for("@inf-monkeys-tech/monkeys-design/dialog-open@1"),rd=globalThis,id=rd[nd]??(rd[nd]=he.createContext(false));function ad({open:e,defaultOpen:t,onOpenChange:o,modal:n,...r}){let a=yt(),[l,s]=he.useState(t??false),d=e??l;return jsx(id.Provider,{value:d,children:jsx(_e.Root,{...r,open:d,modal:a?false:n,onOpenChange:u=>{s(u),o?.(u);}})})}i(ad,"Dialog");var Hf=_e.Portal;var sd=he.forwardRef(({className:e,...t},o)=>{let n=ht();return jsx(_e.Overlay,{...n,...t,ref:o,className:N("theme-overlay-backdrop fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),"data-monkeys-component":"dialog","data-slot":"overlay","data-monkeys-overlay":true})});sd.displayName="DialogOverlay";var ld=he.forwardRef(({className:e,...t},o)=>{let n=ht();return jsx(_e.Content,{...n,...t,ref:o,className:e,"data-monkeys-component":"dialog","data-slot":"content","data-surface":"dialog","data-monkeys-dialog-content":true})});ld.displayName="DialogSurfaceContent";var Dn=he.forwardRef(({className:e,children:t,showCloseButton:o=true,closeLabel:n="Close",overlayClassName:r,overlayStyle:a,...l},s)=>{let d=yt(),u=he.useContext(id);return d?u?jsx(Qi,{...l,ref:s,className:e,showCloseButton:o,closeLabel:n,children:t}):null:jsxs(Hf,{children:[jsx(sd,{className:r,style:a}),jsxs(ld,{...l,ref:s,className:N("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",to("dialog"),e),children:[jsx(on,{children:t}),o?jsxs(_e.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-dialog-surface transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[jsx(X,{"aria-hidden":"true",className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:n})]}):null]})]})});Dn.displayName="DialogContent";var Vf=he.forwardRef(({className:e,...t},o)=>jsx(Dn,{ref:o,className:N("duration-0 data-[state=open]:animate-none data-[state=closed]:animate-none",e),...t}));Vf.displayName="DialogContentNoAnimation";var Wf=i(({className:e,...t})=>jsx("div",{className:N(yt()?.showTitle===false?"contents":"flex flex-col space-y-1.5 text-center sm:text-left",e),...t}),"DialogHeader");Wf.displayName="DialogHeader";var ta=i(({className:e,...t})=>jsx("div",{className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}),"DialogFooter");ta.displayName="DialogFooter";var oa=he.forwardRef(({className:e,...t},o)=>jsx(_e.Title,{ref:o,className:N("text-lg font-semibold leading-none tracking-tight",e,yt()?.showTitle===false&&"sr-only"),...t}));oa.displayName="DialogTitle";var na=he.forwardRef(({className:e,...t},o)=>jsx(_e.Description,{ref:o,className:N("text-sm text-muted-foreground",e),...t}));na.displayName="DialogDescription";he.forwardRef((e,t)=>{let o=yt()?_e.Trigger:qe.Trigger;return jsx(o,{...e,ref:t})});var jf=qe.Portal,dd=he.forwardRef(({className:e,style:t,...o},n)=>{let r=ht();return jsx(qe.Overlay,{...r,...o,ref:n,className:N("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),"data-monkeys-component":"alert-dialog","data-slot":"overlay","data-monkeys-overlay":true,style:{pointerEvents:"auto",...t}})});dd.displayName="AlertDialogOverlay";var Gf=he.forwardRef(({className:e,style:t,children:o,...n},r)=>{let a=ht();return yt()?jsx(Dn,{...n,...a,ref:r,role:"alertdialog",showCloseButton:false,className:e,style:t,children:o}):jsxs(jf,{children:[jsx(dd,{}),jsx(qe.Content,{...a,...n,ref:r,className:N("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",to("dialog"),e),"data-monkeys-component":"alert-dialog","data-slot":"content","data-surface":"dialog","data-monkeys-dialog-content":true,style:{pointerEvents:"auto",...t},children:jsx(on,{children:o})})]})});Gf.displayName="AlertDialogContent";var qf=i(({className:e,...t})=>jsx("div",{className:N("flex flex-col space-y-2 text-center sm:text-left",e),...t}),"AlertDialogHeader"),Kf=i(({className:e,...t})=>jsx("div",{className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}),"AlertDialogFooter"),Xf=he.forwardRef(({className:e,...t},o)=>{let n=yt()?_e.Title:qe.Title;return jsx(n,{ref:o,className:N("text-lg font-semibold",e,yt()?.showTitle===false&&"sr-only"),...t})}),Yf=he.forwardRef(({className:e,...t},o)=>{let n=yt()?_e.Description:qe.Description;return jsx(n,{ref:o,className:N("text-sm text-muted-foreground",e),...t})}),Qf=he.forwardRef(({className:e,...t},o)=>{let n=yt()?_e.Close:qe.Action;return jsx(n,{ref:o,className:N(Ln(),e),...t})}),Zf=he.forwardRef(({className:e,...t},o)=>{let n=yt()?_e.Close:qe.Action;return jsx(n,{ref:o,className:N(Ln({variant:"destructive"}),e),...t})}),Jf=he.forwardRef(({className:e,...t},o)=>{let n=yt()?_e.Close:qe.Cancel;return jsx(n,{ref:o,className:N(Ln({variant:"outline"}),"mt-2 sm:mt-0",e),...t})});qf.displayName="AlertDialogHeader";Kf.displayName="AlertDialogFooter";Xf.displayName="AlertDialogTitle";Yf.displayName="AlertDialogDescription";Qf.displayName="AlertDialogAction";Zf.displayName="AlertDialogDangerAction";Jf.displayName="AlertDialogCancel";var Un=he.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,type:n,...r},a)=>jsx("input",{ref:a,type:n,className:o?e:N("flex w-full border border-input bg-control-surface px-3 text-foreground ring-offset-control-surface transition-[border-color,background-color,color,box-shadow] file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t==="compact"?"h-9 rounded-md py-1 text-sm shadow-sm":"h-10 rounded-md py-2 text-sm shadow-sm",t==="shadow"&&"rounded-lg shadow-sm shadow-black/[0.02] dark:border-white/10 dark:bg-white/[0.04] dark:shadow-none",e),...r}));Un.displayName="Input";var eh=he.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,...n},r)=>jsx("textarea",{ref:r,className:o?e:N("flex w-full border border-input bg-control-surface px-3 py-2 text-foreground ring-offset-control-surface placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t==="compact"?"min-h-[60px] rounded-md text-sm shadow-sm":"min-h-[80px] rounded-md text-sm",t==="shadow"&&"rounded-lg shadow-sm shadow-black/[0.02] dark:border-white/10 dark:bg-white/[0.04] dark:shadow-none",e),...n}));eh.displayName="Textarea";var th=he.forwardRef((e,t)=>jsx("select",{ref:t,...e}));th.displayName="NativeSelect";var oh=he.forwardRef((e,t)=>jsx("option",{ref:t,...e}));oh.displayName="NativeOption";var hh=[],sn={expandedWidth:224,duration:280,copyDuration:180,copyOffset:8,easing:"cubic-bezier(0.16, 1, 0.3, 1)"},ln={duration:180,closedWidth:28,easing:"cubic-bezier(0.16, 1, 0.3, 1)"};function md({children:e}){return jsx(et,{rowSelector:"[data-row]",highlightClassName:"sidebar-glide-highlight rounded-[7px] bg-hover-2",className:"group/glide flex flex-col gap-px",children:e})}i(md,"GlideGroup");function gd({icon:e,label:t,active:o=false,count:n,onClick:r}){return jsxs("button",{"data-row":true,type:"button",onClick:r,className:`sidebar-row relative z-10 mx-2 flex h-8 items-center rounded-[var(--bui-radius-control)] px-2 text-left
|
|
213
213
|
transition-[width,background-color,color,transform] duration-150 active:scale-[0.98]
|
|
214
|
-
${o?"bg-hover-2":""}`,children:[jsx("span",{className:`sidebar-row-icon flex size-5 shrink-0 items-center justify-center ${o?"text-ink":"text-ink-2"}`,children:e}),jsx("span",{className:`sidebar-copy ml-1.5 min-w-0 flex-1 truncate text-[14px] font-medium ${o?"text-ink":"text-ink-2"}`,children:t}),n&&jsx("span",{className:"sidebar-copy mr-2 shrink-0 text-[12px] font-medium tabular-nums text-ink-3",children:n})]})}i(gd,"RailButton");function hh({position:e,onClose:t,workspace:o,onAction:n}){let r=oe();return Fo(jsx("div",{"data-workspace-menu":true,className:"fixed z-50 w-64 rounded-[14px] bg-surface p-1.5 shadow-overlay",style:{top:e.top,left:e.left,animation:"bui-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top left"},children:jsxs(tt,{className:"flex flex-col gap-px",highlightClassName:"inset-x-0 rounded-[8px] bg-hover-2",children:[jsxs("button",{"data-menu-row":true,type:"button",onClick:t,className:"relative z-10 flex h-10 w-full items-center gap-1.5 rounded-[var(--bui-radius-control)] px-2 text-left",children:[jsx("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-[7px] bg-ink text-[11px] font-semibold text-surface",children:o.monogram}),jsx("span",{className:"min-w-0 flex-1 truncate text-[13.5px] font-medium text-ink",children:o.name}),jsx("span",{className:"shrink-0 text-ink",children:jsx(Check$1,{size:18})})]}),jsx("div",{className:"my-1 h-px bg-line"}),[{key:"new",label:"New workspace",icon:jsx(Plus,{size:16})},{key:"settings",label:"Workspace settings",icon:jsx(Settings,{size:16})},{key:"invite",label:"Invite team members",icon:jsx(UserPlus,{size:16})}].map(a=>jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{n?.(a.key),t();},className:"relative z-10 flex h-9 w-full items-center gap-1.5 rounded-[var(--bui-radius-control)] px-2 text-left",children:[jsx("span",{className:"flex size-5 shrink-0 items-center justify-center text-ink-2",children:a.icon}),jsx("span",{className:"min-w-0 flex-1 truncate text-[13.5px] text-ink",children:r(a.label)})]},a.label)),jsx("div",{className:"my-1 h-px bg-line"}),jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{n?.("sign-out"),t();},className:"relative z-10 flex h-9 w-full items-center gap-1.5 rounded-[var(--bui-radius-control)] px-2 text-left",children:[jsx("span",{className:"flex size-5 shrink-0 items-center justify-center text-ink-2",children:jsx(LogOut,{size:16})}),jsx("span",{className:"min-w-0 flex-1 truncate text-[13.5px] text-ink",children:r("Sign out")})]})]})}),document.body)}i(hh,"WorkspaceMenu");function bh({workspace:e={key:"",name:"",monogram:""},items:t=[],activeTitle:o,activeId:n,collapsible:r=true,showWorkspaceMenu:a=true,hasMore:l=false,loadingMore:s=false,onLoadMore:d,onWorkspaceAction:u,className:m="",fill:c=false,onNewChat:p,onPick:h,activeNav:v,onNavigate:w,footerLabel:g="",footerIcon:f,onFooterClick:x,recents:y=fh,recentUpdate:$,onRenameRecent:N,onDeleteRecent:T}){let S=oe(),[A,O]=useState(false),[L,I]=useState("chats"),k=v??L,R=i(G=>{I(G),w?.(G);},"selectNav"),[z,_]=useState(null),[X$1,Z]=useState(false),[F,J]=useState({top:0,left:0}),[B,te]=useState(false),[ee,pe]=useState(""),se=useRef(null),M=useRef(null),[H,E]=useState(),[j,le]=useState(""),[re,de]=useState(false),[Ee,q]=useState(false),ge=useRef(false),Xe=useRef(true);useEffect(()=>(Xe.current=true,()=>{Xe.current=false;}),[]);let qt=i((G,et)=>{E({item:G,action:et}),le(G.label),q(false);},"openEditor"),Se=i(async()=>{if(!(!H||ge.current||H.action==="rename"&&!j.trim())){ge.current=true,de(true),q(false);try{H.action==="rename"?await N?.(H.item.id,j.trim()):await T?.(H.item.id),Xe.current&&E(void 0);}catch{Xe.current&&q(true);}finally{ge.current=false,Xe.current&&de(false);}}},"submitEdit"),mt=$?.id?y.some(G=>G.id===$.id)?y.map(G=>G.id===$.id?{...G,label:$.label}:G):[{...$},...y]:y,Ut=o===void 0?z:o,ro=mt.filter(G=>G.label.toLowerCase().includes(ee.trim().toLowerCase()));useEffect(()=>{if(!X$1)return;let G=i(et=>{let io=et.target;!io.closest("[data-workspace-trigger]")&&!io.closest("[data-workspace-menu]")&&Z(false);},"close");return document.addEventListener("pointerdown",G),()=>document.removeEventListener("pointerdown",G)},[X$1]),useEffect(()=>{B&&M.current?.focus();},[B]);let Ft=i(()=>{O(true),Z(false),te(false),pe("");},"collapse");return jsx(U,{children:jsxs("aside",{"data-sidebar-collapsed":A,"aria-label":S("Workspace navigation"),className:`relative flex shrink-0 overflow-hidden transition-[width] ${c?"h-full":"h-[600px]"} ${m}`,style:{width:A?"calc(var(--bui-token-sidebar-row-height, var(--bui-spacing) * 9) + var(--bui-token-sidebar-inset, var(--bui-spacing) * 2) * 2)":c?"100%":an.expandedWidth,transitionDuration:`${an.duration}ms`,transitionTimingFunction:an.easing,"--bui-sidebar-copy-duration":`${an.copyDuration}ms`,"--bui-sidebar-copy-offset":`${an.copyOffset}px`,"--bui-sidebar-easing":an.easing},children:[jsxs("div",{className:`flex min-h-0 shrink-0 flex-col ${c?"w-full":"w-[224px]"}`,children:[jsxs("div",{className:"sidebar-header relative mb-2.5 h-10 shrink-0",children:[jsxs("button",{ref:se,"data-workspace-trigger":true,type:"button","aria-expanded":a?X$1:void 0,disabled:!a,"aria-hidden":A,tabIndex:A?-1:0,onClick:()=>{if(!X$1&&se.current){let G=se.current.getBoundingClientRect();J({top:G.bottom+6,left:G.left});}Z(G=>!G);},className:"sidebar-workspace-control absolute left-2 top-1 flex h-8 w-[164px] items-center rounded-[var(--bui-radius-control)] px-2 text-left transition-[background-color,transform] duration-100 hover:bg-hover-2 active:scale-[0.99]",children:[jsx("span",{className:"sidebar-logo flex size-5 shrink-0 items-center justify-center text-ink",children:jsx(IceCreamCone,{size:18})}),jsx("span",{className:"sidebar-copy ml-1.5 min-w-0 flex-1 truncate text-[14px] font-medium text-ink-2",children:e.name}),jsx("span",{className:"sidebar-copy ml-1 flex shrink-0 text-ink-3",children:a&&jsx(ChevronDown,{size:16})})]}),X$1&&jsx(hh,{workspace:e,onAction:u,position:F,onClose:()=>Z(false)}),jsx("button",{type:"button","aria-label":S("Collapse sidebar"),hidden:!r,style:{display:r?void 0:"none"},"aria-hidden":A,tabIndex:A?-1:0,onClick:Ft,className:"sidebar-collapse-control absolute right-2 top-1 flex size-8 items-center justify-center rounded-[var(--bui-radius-control)] text-ink-3 transition-[opacity,background-color,color] duration-150 hover:bg-hover-2 hover:text-ink",children:jsx(PanelLeftClose,{size:18})}),jsx("button",{type:"button","aria-label":S("Expand sidebar"),"aria-hidden":!A,tabIndex:A?0:-1,onClick:()=>O(false),className:"sidebar-expand-control absolute left-2 top-0.5 flex size-9 items-center justify-center rounded-[var(--bui-radius-control)] text-ink-3 transition-[opacity,background-color,color] duration-150 hover:bg-hover-2 hover:text-ink",children:jsx(PanelLeftClose,{size:18,className:"rotate-180"})})]}),jsxs(md,{children:[jsx(gd,{icon:jsx(SquarePen,{size:18}),label:S("New chat"),onClick:()=>{o===void 0&&_(null),R("chats"),p?.();}}),t.map(G=>jsx(gd,{icon:G.icon,label:G.label,count:G.count,active:k===G.key,onClick:()=>R(G.key)},G.key))]}),jsxs("div",{hidden:A,className:"sidebar-history mt-3 min-h-0 flex-1 overflow-y-auto",children:[jsxs("div",{className:"sidebar-history-header sidebar-copy relative mx-2 mb-1 h-8",children:[jsxs("div",{"aria-hidden":B,className:`sidebar-history-label absolute inset-0 flex items-center gap-1.5 px-2 text-[12.5px] font-medium text-ink-3 transition-[opacity,transform] ${B?"pointer-events-none -translate-x-1 opacity-0":"translate-x-0 opacity-100"}`,style:{transitionDuration:`${sn.duration}ms`,transitionTimingFunction:sn.easing},children:[jsx(ChevronDown,{size:16}),jsx("span",{children:S("Chats")})]}),jsx("button",{type:"button","aria-label":S("Search chats"),"aria-expanded":B,onClick:()=>te(true),className:`sidebar-search-control absolute right-0 top-0 z-10 flex size-8 items-center justify-center rounded-[var(--bui-radius-control)] text-ink-3 transition-[opacity,background-color,color,transform] hover:bg-hover-2 hover:text-ink active:scale-[0.96] ${B?"pointer-events-none opacity-0":"opacity-100"}`,style:{transitionDuration:`${sn.duration}ms`},children:jsx(Search,{size:16})}),jsxs("div",{className:`sidebar-search-field absolute right-0 top-0 z-20 flex h-8 items-center overflow-hidden rounded-[8px] bg-field text-ink-3 shadow-hairline transition-[width,opacity] focus-within:text-ink-2 ${B?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"}`,style:{width:B?"100%":sn.closedWidth,transitionDuration:`${sn.duration}ms`,transitionTimingFunction:sn.easing},children:[jsx("span",{className:"ml-2 flex shrink-0 items-center justify-center",children:jsx(Search,{size:15})}),jsx("input",{ref:M,value:ee,onChange:G=>pe(G.target.value),onKeyDown:G=>{G.key==="Escape"&&(te(false),pe(""));},placeholder:S("Search chats"),"aria-label":S("Search chat history"),className:"ml-1.5 min-w-0 flex-1 bg-transparent text-[13px] font-medium text-ink outline-none placeholder:text-ink-3"}),jsx("button",{type:"button","aria-label":S("Close chat search"),onClick:()=>{te(false),pe("");},className:"sidebar-search-control flex size-8 shrink-0 items-center justify-center rounded-[var(--bui-radius-control)] text-ink-3 transition-[background-color,color,transform] duration-150 hover:bg-hover-2 hover:text-ink active:scale-[0.96]",children:jsx(X,{size:16})})]})]}),jsxs(md,{children:[ro.map(G=>{let et=n!==void 0?G.id===n:G.label===Ut;return jsxs("div",{"data-row":true,"data-running":G.running||void 0,title:G.label,className:`sidebar-row sidebar-recent-row relative z-10 flex items-center rounded-[var(--bui-radius-control)] ${et?"bg-hover-2":""}`,children:[jsx("button",{type:"button",title:G.label,"aria-current":et?"page":void 0,onClick:()=>{R("chats"),o===void 0&&_(G.label),h?.(G.id,G.label,G.prompt);},className:"sidebar-recent-select min-w-0 flex-1 self-stretch text-left",children:jsx("span",{className:`sidebar-copy block truncate text-sm font-medium ${et?"text-ink":"text-ink-2"}`,children:G.label})}),G.running&&jsx("span",{className:"sidebar-recent-running",role:"status","aria-label":S("recentRunning"),title:S("recentRunning"),children:jsx(LoaderCircle,{size:16,className:"animate-spin","aria-hidden":"true"})}),(N||T)&&jsxs(Tl,{children:[jsx(Rl,{asChild:true,children:jsx("button",{type:"button",className:"sidebar-recent-more flex shrink-0 items-center justify-center rounded-[var(--bui-radius-control)] text-ink-3 hover:bg-hover hover:text-ink","aria-label":S("recentMore",{title:G.label}),title:S("recentMoreLabel"),children:jsx(MoreHorizontal,{size:16,"aria-hidden":"true"})})}),jsxs(Gi,{side:"right",align:"start",children:[N&&jsxs(Tr,{onSelect:()=>qt(G,"rename"),children:[jsx(Pencil,{size:16,"aria-hidden":"true"}),S("recentRename")]}),T&&jsxs(Tr,{onSelect:()=>qt(G,"delete"),children:[jsx(Trash2,{size:16,"aria-hidden":"true"}),S("recentDelete")]})]})]})]},G.id)}),ee&&ro.length===0&&jsx("div",{className:"sidebar-support-row sidebar-copy mx-2 px-2 py-2 text-[12.5px] text-ink-3",children:S("No chats found")})]}),l&&jsx("button",{type:"button",disabled:s||!d,onClick:d,className:"sidebar-support-row mx-2 rounded-[var(--bui-radius-chip)] px-2 py-2 text-left text-[13px] text-ink-2 hover:bg-hover-2 disabled:opacity-50",children:S(s?"Loading":"Load more")})]}),g&&jsx("div",{hidden:A,className:"sidebar-footer sidebar-copy mx-2 mt-3 w-[208px] border-t border-line pt-3",children:jsxs("button",{type:"button",onClick:x??p,className:"flex h-8 w-full items-center justify-center gap-1.5 rounded-control bg-hover-2 text-[12.5px] font-medium text-ink transition-[background-color,transform] duration-150 hover:bg-line-strong active:scale-[0.98]",children:[f,g]})})]}),jsx(ad,{open:!!H,onOpenChange:G=>{!G&&!ge.current&&E(void 0);},children:jsxs(Dn,{closeLabel:S("recentClose"),showCloseButton:!re,children:[jsx(oa,{children:S(H?.action==="delete"?"recentDelete":"recentRename")}),jsx(na,{children:S(H?.action==="delete"?"recentDeleteDescription":"recentRenameDescription",{title:H?.item.label??""})}),jsxs("form",{onSubmit:G=>{G.preventDefault(),Se();},children:[H?.action==="rename"&&jsx(Un,{autoFocus:true,maxLength:256,value:j,"aria-label":S("recentName"),disabled:re,onChange:G=>le(G.target.value)}),Ee&&jsx("p",{role:"alert",children:S("recentActionFailed")}),jsxs(ta,{children:[jsx(Me,{type:"button",disabled:re,onClick:()=>E(void 0),children:S("recentCancel")}),jsx(Me,{type:"submit",disabled:re||H?.action==="rename"&&!j.trim(),children:S(re?"recentSaving":H?.action==="delete"?"recentDelete":"recentSave")})]})]})]})})]})})}i(bh,"BUISidebarNav");function yo(e,t){if(typeof e!="string")return;let o=e.trim();if(!o||/[\u0000-\u001f\u007f\\]/.test(o)||/^https?:/i.test(o)&&!/^https?:\/\//i.test(o))return;let n;try{n=new URL(o,"https://monkeys.invalid/");}catch{return}if(!(n.username||n.password)){if(n.protocol==="http:"||n.protocol==="https:"||t==="link"&&(n.protocol==="mailto:"||n.protocol==="tel:"))return o;if(n.protocol==="blob:"){if(n.pathname.startsWith("null/"))return o;try{let r=new URL(n.pathname);if(["https:","http:"].includes(r.protocol)&&!r.username&&!r.password)return o}catch{}}}}i(yo,"safeDisplayUrl");var vh=Object.defineProperty,yh=Object.defineProperties,xh=Object.getOwnPropertyDescriptors,fd=Object.getOwnPropertySymbols,wh=Object.prototype.hasOwnProperty,kh=Object.prototype.propertyIsEnumerable,hd=i((e,t,o)=>t in e?vh(e,t,{enumerable:true,configurable:true,writable:true,value:o}):e[t]=o,"O"),xd=i((e,t)=>{for(var o in t||(t={}))wh.call(t,o)&&hd(e,o,t[o]);if(fd)for(var o of fd(t))kh.call(t,o)&&hd(e,o,t[o]);return e},"I"),wd=i((e,t)=>yh(e,xh(t)),"k"),pt=i((e,t)=>{let o=false,n=false;for(let r=0;r<t;r+=1){if(e[r]==="\\"&&r+1<e.length&&e[r+1]==="`"){r+=1;continue}if(e.substring(r,r+3)==="```"){n=!n,r+=2;continue}!n&&e[r]==="`"&&(o=!o);}return o||n},"c"),$h=i((e,t)=>{let o=e.substring(t,t+3)==="```",n=t>0&&e.substring(t-1,t+2)==="```",r=t>1&&e.substring(t-2,t+1)==="```";return o||n||r},"hn"),Sh=i(e=>{let t=0;for(let o=0;o<e.length;o+=1){if(e[o]==="\\"&&o+1<e.length&&e[o+1]==="`"){o+=1;continue}e[o]==="`"&&!$h(e,o)&&(t+=1);}return t},"L"),xo=i((e,t)=>{let o=false,n=false,r=-1;for(let a=0;a<e.length;a+=1){if(e[a]==="\\"&&a+1<e.length&&e[a+1]==="`"){a+=1;continue}if(e.substring(a,a+3)==="```"){n=!n,a+=2;continue}if(!n&&e[a]==="`")if(o){if(r<t&&t<a)return true;o=false,r=-1;}else o=true,r=a;}return false},"f"),Ch=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,Th=i(e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(Ch,(t,o,n,r)=>pt(e,r)?t:`${o}\\>${n}`),"E"),Rh=/(\*\*)([^*]*\*?)$/,Ph=/(__)([^_]*?)$/,Nh=/(\*\*\*)([^*]*?)$/,Mh=/(\*)([^*]*?)$/,Ih=/(_)([^_]*?)$/,Bh=/(`)([^`]*?)$/,Ah=/(~~)([^~]*?)$/,Do=/^[\s_~*`]*$/,kd=/^[\s]*[-*+][\s]+$/,Eh=/[\p{L}\p{N}_]/u,Lh=/^```[^`\n]*```?$/,Dh=/^\*{4,}$/,zh=/(__)([^_]+)_$/,Uh=/(~~)([^~]+)~$/,bd=/~~/g,wo=i(e=>{if(!e)return false;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?true:Eh.test(e)},"g");var Fh=i((e,t)=>{let o=1;for(let n=t-1;n>=0;n-=1)if(e[n]==="]")o+=1;else if(e[n]==="["&&(o-=1,o===0))return n;return -1},"X"),$d=i((e,t)=>{let o=1;for(let n=t+1;n<e.length;n+=1)if(e[n]==="[")o+=1;else if(e[n]==="]"&&(o-=1,o===0))return n;return -1},"C"),zr=i((e,t)=>{let o=false,n=false;for(let r=0;r<e.length&&r<t;r+=1){if(e[r]==="\\"&&e[r+1]==="$"){r+=1;continue}e[r]==="$"&&(e[r+1]==="$"?(n=!n,r+=1,o=false):n||(o=!o));}return o||n},"h"),Oh=i((e,t)=>{for(let o=t;o<e.length;o+=1){if(e[o]===")")return true;if(e[o]===`
|
|
215
|
-
`)return false}return false},"In"),Sd=i((e,t)=>{for(let o=t-1;o>=0;o-=1){if(e[o]===")")return false;if(e[o]==="(")return o>0&&e[o-1]==="]"?
|
|
216
|
-
`)return false}return false},"m"),
|
|
214
|
+
${o?"bg-hover-2":""}`,children:[jsx("span",{className:`sidebar-row-icon flex size-5 shrink-0 items-center justify-center ${o?"text-ink":"text-ink-2"}`,children:e}),jsx("span",{className:`sidebar-copy ml-1.5 min-w-0 flex-1 truncate text-[14px] font-medium ${o?"text-ink":"text-ink-2"}`,children:t}),n&&jsx("span",{className:"sidebar-copy mr-2 shrink-0 text-[12px] font-medium tabular-nums text-ink-3",children:n})]})}i(gd,"RailButton");function bh({position:e,onClose:t,workspace:o,onAction:n}){let r=oe();return Oo(jsx("div",{"data-workspace-menu":true,className:"fixed z-50 w-64 rounded-[14px] bg-surface p-1.5 shadow-overlay",style:{top:e.top,left:e.left,animation:"bui-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top left"},children:jsxs(et,{className:"flex flex-col gap-px",highlightClassName:"inset-x-0 rounded-[8px] bg-hover-2",children:[jsxs("button",{"data-menu-row":true,type:"button",onClick:t,className:"relative z-10 flex h-10 w-full items-center gap-1.5 rounded-[var(--bui-radius-control)] px-2 text-left",children:[jsx("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-[7px] bg-ink text-[11px] font-semibold text-surface",children:o.monogram}),jsx("span",{className:"min-w-0 flex-1 truncate text-[13.5px] font-medium text-ink",children:o.name}),jsx("span",{className:"shrink-0 text-ink",children:jsx(Check$1,{size:18})})]}),jsx("div",{className:"my-1 h-px bg-line"}),[{key:"new",label:"New workspace",icon:jsx(Plus,{size:16})},{key:"settings",label:"Workspace settings",icon:jsx(Settings,{size:16})},{key:"invite",label:"Invite team members",icon:jsx(UserPlus,{size:16})}].map(a=>jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{n?.(a.key),t();},className:"relative z-10 flex h-9 w-full items-center gap-1.5 rounded-[var(--bui-radius-control)] px-2 text-left",children:[jsx("span",{className:"flex size-5 shrink-0 items-center justify-center text-ink-2",children:a.icon}),jsx("span",{className:"min-w-0 flex-1 truncate text-[13.5px] text-ink",children:r(a.label)})]},a.label)),jsx("div",{className:"my-1 h-px bg-line"}),jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{n?.("sign-out"),t();},className:"relative z-10 flex h-9 w-full items-center gap-1.5 rounded-[var(--bui-radius-control)] px-2 text-left",children:[jsx("span",{className:"flex size-5 shrink-0 items-center justify-center text-ink-2",children:jsx(LogOut,{size:16})}),jsx("span",{className:"min-w-0 flex-1 truncate text-[13.5px] text-ink",children:r("Sign out")})]})]})}),document.body)}i(bh,"WorkspaceMenu");function vh({workspace:e={key:"",name:"",monogram:""},items:t=[],activeTitle:o,activeId:n,collapsible:r=true,showWorkspaceMenu:a=true,hasMore:l=false,loadingMore:s=false,onLoadMore:d,onWorkspaceAction:u,className:m="",fill:c=false,onNewChat:p,onPick:h,activeNav:v,onNavigate:w,footerLabel:g="",footerIcon:f,onFooterClick:x,recents:y=hh,recentUpdate:$,onRenameRecent:M,onDeleteRecent:C,variant:R}){let P=oe(),[F,L]=useState(false),[B,k]=useState("chats"),T=v??B,D=i(q=>{k(q),w?.(q);},"selectNav"),[_,Z]=useState(null),[Y,O]=useState(false),[J,E]=useState({top:0,left:0}),[te,ee]=useState(false),[me,de]=useState(""),I=useRef(null),j=useRef(null),[A,W]=useState(),[ae,se]=useState(""),[re,Be]=useState(false),[K,ge]=useState(false),Je=useRef(false),Tt=useRef(true);useEffect(()=>(Tt.current=true,()=>{Tt.current=false;}),[]);let ye=i((q,wt)=>{W({item:q,action:wt}),se(q.label),ge(false);},"openEditor"),pt=i(async()=>{if(!(!A||Je.current||A.action==="rename"&&!ae.trim())){Je.current=true,Be(true),ge(false);try{A.action==="rename"?await M?.(A.item.id,ae.trim()):await C?.(A.item.id),Tt.current&&W(void 0);}catch{Tt.current&&ge(true);}finally{Je.current=false,Tt.current&&Be(false);}}},"submitEdit"),_t=$?.id?y.some(q=>q.id===$.id)?y.map(q=>q.id===$.id?{...q,label:$.label}:q):[{...$},...y]:y,$o=o===void 0?_:o,It=_t.filter(q=>q.label.toLowerCase().includes(me.trim().toLowerCase()));useEffect(()=>{if(!Y)return;let q=i(wt=>{let io=wt.target;!io.closest("[data-workspace-trigger]")&&!io.closest("[data-workspace-menu]")&&O(false);},"close");return document.addEventListener("pointerdown",q),()=>document.removeEventListener("pointerdown",q)},[Y]),useEffect(()=>{te&&j.current?.focus();},[te]);let mt=i(()=>{L(true),O(false),ee(false),de("");},"collapse");return jsx(U,{children:jsxs("aside",{"data-sidebar-collapsed":F,"data-sidebar-variant":R==="light-edge"?R:void 0,"aria-label":P("Workspace navigation"),className:`relative flex shrink-0 overflow-hidden transition-[width] ${c?"h-full":"h-[600px]"} ${m}`,style:{width:F?"calc(var(--bui-token-sidebar-row-height, var(--bui-spacing) * 9) + var(--bui-token-sidebar-inset, var(--bui-spacing) * 2) * 2)":c?"100%":sn.expandedWidth,transitionDuration:`${sn.duration}ms`,transitionTimingFunction:sn.easing,"--bui-sidebar-copy-duration":`${sn.copyDuration}ms`,"--bui-sidebar-copy-offset":`${sn.copyOffset}px`,"--bui-sidebar-easing":sn.easing},children:[jsxs("div",{className:`flex min-h-0 shrink-0 flex-col ${c?"w-full":"w-[224px]"}`,children:[jsxs("div",{className:"sidebar-header relative mb-2.5 h-10 shrink-0",children:[jsxs("button",{ref:I,"data-workspace-trigger":true,type:"button","aria-expanded":a?Y:void 0,disabled:!a,"aria-hidden":F,tabIndex:F?-1:0,onClick:()=>{if(!Y&&I.current){let q=I.current.getBoundingClientRect();E({top:q.bottom+6,left:q.left});}O(q=>!q);},className:"sidebar-workspace-control absolute left-2 top-1 flex h-8 w-[164px] items-center rounded-[var(--bui-radius-control)] px-2 text-left transition-[background-color,transform] duration-100 hover:bg-hover-2 active:scale-[0.99]",children:[jsx("span",{className:"sidebar-logo flex size-5 shrink-0 items-center justify-center text-ink",children:jsx(IceCreamCone,{size:18})}),jsx("span",{className:"sidebar-copy ml-1.5 min-w-0 flex-1 truncate text-[14px] font-medium text-ink-2",children:e.name}),jsx("span",{className:"sidebar-copy ml-1 flex shrink-0 text-ink-3",children:a&&jsx(ChevronDown,{size:16})})]}),Y&&jsx(bh,{workspace:e,onAction:u,position:J,onClose:()=>O(false)}),jsx("button",{type:"button","aria-label":P("Collapse sidebar"),hidden:!r,style:{display:r?void 0:"none"},"aria-hidden":F,tabIndex:F?-1:0,onClick:mt,className:"sidebar-collapse-control absolute right-2 top-1 flex size-8 items-center justify-center rounded-[var(--bui-radius-control)] text-ink-3 transition-[opacity,background-color,color] duration-150 hover:bg-hover-2 hover:text-ink",children:jsx(PanelLeftClose,{size:18})}),jsx("button",{type:"button","aria-label":P("Expand sidebar"),"aria-hidden":!F,tabIndex:F?0:-1,onClick:()=>L(false),className:"sidebar-expand-control absolute left-2 top-0.5 flex size-9 items-center justify-center rounded-[var(--bui-radius-control)] text-ink-3 transition-[opacity,background-color,color] duration-150 hover:bg-hover-2 hover:text-ink",children:jsx(PanelLeftClose,{size:18,className:"rotate-180"})})]}),jsxs(md,{children:[jsx(gd,{icon:jsx(SquarePen,{size:18}),label:P("New chat"),onClick:()=>{o===void 0&&Z(null),D("chats"),p?.();}}),t.map(q=>jsx(gd,{icon:q.icon,label:q.label,count:q.count,active:T===q.key,onClick:()=>D(q.key)},q.key))]}),jsxs("div",{hidden:F,className:"sidebar-history mt-3 min-h-0 flex-1 overflow-y-auto",children:[jsxs("div",{className:"sidebar-history-header sidebar-copy relative mx-2 mb-1 h-8",children:[jsxs("div",{"aria-hidden":te,className:`sidebar-history-label absolute inset-0 flex items-center gap-1.5 px-2 text-[12.5px] font-medium text-ink-3 transition-[opacity,transform] ${te?"pointer-events-none -translate-x-1 opacity-0":"translate-x-0 opacity-100"}`,style:{transitionDuration:`${ln.duration}ms`,transitionTimingFunction:ln.easing},children:[jsx(ChevronDown,{size:16}),jsx("span",{children:P("Chats")})]}),jsx("button",{type:"button","aria-label":P("Search chats"),"aria-expanded":te,onClick:()=>ee(true),className:`sidebar-search-control absolute right-0 top-0 z-10 flex size-8 items-center justify-center rounded-[var(--bui-radius-control)] text-ink-3 transition-[opacity,background-color,color,transform] hover:bg-hover-2 hover:text-ink active:scale-[0.96] ${te?"pointer-events-none opacity-0":"opacity-100"}`,style:{transitionDuration:`${ln.duration}ms`},children:jsx(Search,{size:16})}),jsxs("div",{className:`sidebar-search-field absolute right-0 top-0 z-20 flex h-8 items-center overflow-hidden rounded-[8px] bg-field text-ink-3 shadow-hairline transition-[width,opacity] focus-within:text-ink-2 ${te?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"}`,style:{width:te?"100%":ln.closedWidth,transitionDuration:`${ln.duration}ms`,transitionTimingFunction:ln.easing},children:[jsx("span",{className:"ml-2 flex shrink-0 items-center justify-center",children:jsx(Search,{size:15})}),jsx("input",{ref:j,value:me,onChange:q=>de(q.target.value),onKeyDown:q=>{q.key==="Escape"&&(ee(false),de(""));},placeholder:P("Search chats"),"aria-label":P("Search chat history"),className:"ml-1.5 min-w-0 flex-1 bg-transparent text-[13px] font-medium text-ink outline-none placeholder:text-ink-3"}),jsx("button",{type:"button","aria-label":P("Close chat search"),onClick:()=>{ee(false),de("");},className:"sidebar-search-control flex size-8 shrink-0 items-center justify-center rounded-[var(--bui-radius-control)] text-ink-3 transition-[background-color,color,transform] duration-150 hover:bg-hover-2 hover:text-ink active:scale-[0.96]",children:jsx(X,{size:16})})]})]}),jsxs(md,{children:[It.map(q=>{let wt=n!==void 0?q.id===n:q.label===$o;return jsxs("div",{"data-row":true,"data-running":q.running||void 0,title:q.label,className:`sidebar-row sidebar-recent-row relative z-10 flex items-center rounded-[var(--bui-radius-control)] ${wt?"bg-hover-2":""}`,children:[jsxs("button",{type:"button",title:q.label,"aria-current":wt?"page":void 0,onClick:()=>{D("chats"),o===void 0&&Z(q.label),h?.(q.id,q.label,q.prompt);},className:"sidebar-recent-select min-w-0 flex-1 self-stretch text-left",children:[R==="light-edge"&&jsx(MessageSquare,{size:16,"aria-hidden":"true"}),jsx("span",{className:`sidebar-copy block truncate text-sm font-medium ${wt?"text-ink":"text-ink-2"}`,children:q.label})]}),q.running&&jsx("span",{className:"sidebar-recent-running",role:"status","aria-label":P("recentRunning"),title:P("recentRunning"),children:jsx(LoaderCircle,{size:16,className:"animate-spin","aria-hidden":"true"})}),(M||C)&&jsxs(Tl,{children:[jsx(Rl,{asChild:true,children:jsx("button",{type:"button",className:"sidebar-recent-more flex shrink-0 items-center justify-center rounded-[var(--bui-radius-control)] text-ink-3 hover:bg-hover hover:text-ink","aria-label":P("recentMore",{title:q.label}),title:P("recentMoreLabel"),children:jsx(MoreHorizontal,{size:16,"aria-hidden":"true"})})}),jsxs(Gi,{side:"right",align:"start",children:[M&&jsxs(Tr,{onSelect:()=>ye(q,"rename"),children:[jsx(Pencil,{size:16,"aria-hidden":"true"}),P("recentRename")]}),C&&jsxs(Tr,{onSelect:()=>ye(q,"delete"),children:[jsx(Trash2,{size:16,"aria-hidden":"true"}),P("recentDelete")]})]})]})]},q.id)}),me&&It.length===0&&jsx("div",{className:"sidebar-support-row sidebar-copy mx-2 px-2 py-2 text-[12.5px] text-ink-3",children:P("No chats found")})]}),l&&jsx("button",{type:"button",disabled:s||!d,onClick:d,className:"sidebar-support-row mx-2 rounded-[var(--bui-radius-chip)] px-2 py-2 text-left text-[13px] text-ink-2 hover:bg-hover-2 disabled:opacity-50",children:P(s?"Loading":"Load more")})]}),g&&jsx("div",{hidden:F,className:"sidebar-footer sidebar-copy mx-2 mt-3 w-[208px] border-t border-line pt-3",children:jsxs("button",{type:"button",onClick:x??p,className:"flex h-8 w-full items-center justify-center gap-1.5 rounded-control bg-hover-2 text-[12.5px] font-medium text-ink transition-[background-color,transform] duration-150 hover:bg-line-strong active:scale-[0.98]",children:[f,g]})})]}),jsx(ad,{open:!!A,onOpenChange:q=>{!q&&!Je.current&&W(void 0);},children:jsxs(Dn,{closeLabel:P("recentClose"),showCloseButton:!re,children:[jsx(oa,{children:P(A?.action==="delete"?"recentDelete":"recentRename")}),jsx(na,{children:P(A?.action==="delete"?"recentDeleteDescription":"recentRenameDescription",{title:A?.item.label??""})}),jsxs("form",{onSubmit:q=>{q.preventDefault(),pt();},children:[A?.action==="rename"&&jsx(Un,{autoFocus:true,maxLength:256,value:ae,"aria-label":P("recentName"),disabled:re,onChange:q=>se(q.target.value)}),K&&jsx("p",{role:"alert",children:P("recentActionFailed")}),jsxs(ta,{children:[jsx(Me,{type:"button",disabled:re,onClick:()=>W(void 0),children:P("recentCancel")}),jsx(Me,{type:"submit",disabled:re||A?.action==="rename"&&!ae.trim(),children:P(re?"recentSaving":A?.action==="delete"?"recentDelete":"recentSave")})]})]})]})})]})})}i(vh,"BUISidebarNav");function yo(e,t){if(typeof e!="string")return;let o=e.trim();if(!o||/[\u0000-\u001f\u007f\\]/.test(o)||/^https?:/i.test(o)&&!/^https?:\/\//i.test(o))return;let n;try{n=new URL(o,"https://monkeys.invalid/");}catch{return}if(!(n.username||n.password)){if(n.protocol==="http:"||n.protocol==="https:"||t==="link"&&(n.protocol==="mailto:"||n.protocol==="tel:"))return o;if(n.protocol==="blob:"){if(n.pathname.startsWith("null/"))return o;try{let r=new URL(n.pathname);if(["https:","http:"].includes(r.protocol)&&!r.username&&!r.password)return o}catch{}}}}i(yo,"safeDisplayUrl");var yh=Object.defineProperty,xh=Object.defineProperties,wh=Object.getOwnPropertyDescriptors,fd=Object.getOwnPropertySymbols,kh=Object.prototype.hasOwnProperty,$h=Object.prototype.propertyIsEnumerable,hd=i((e,t,o)=>t in e?yh(e,t,{enumerable:true,configurable:true,writable:true,value:o}):e[t]=o,"O"),xd=i((e,t)=>{for(var o in t||(t={}))kh.call(t,o)&&hd(e,o,t[o]);if(fd)for(var o of fd(t))$h.call(t,o)&&hd(e,o,t[o]);return e},"I"),wd=i((e,t)=>xh(e,wh(t)),"k"),ut=i((e,t)=>{let o=false,n=false;for(let r=0;r<t;r+=1){if(e[r]==="\\"&&r+1<e.length&&e[r+1]==="`"){r+=1;continue}if(e.substring(r,r+3)==="```"){n=!n,r+=2;continue}!n&&e[r]==="`"&&(o=!o);}return o||n},"c"),Sh=i((e,t)=>{let o=e.substring(t,t+3)==="```",n=t>0&&e.substring(t-1,t+2)==="```",r=t>1&&e.substring(t-2,t+1)==="```";return o||n||r},"hn"),Ch=i(e=>{let t=0;for(let o=0;o<e.length;o+=1){if(e[o]==="\\"&&o+1<e.length&&e[o+1]==="`"){o+=1;continue}e[o]==="`"&&!Sh(e,o)&&(t+=1);}return t},"L"),xo=i((e,t)=>{let o=false,n=false,r=-1;for(let a=0;a<e.length;a+=1){if(e[a]==="\\"&&a+1<e.length&&e[a+1]==="`"){a+=1;continue}if(e.substring(a,a+3)==="```"){n=!n,a+=2;continue}if(!n&&e[a]==="`")if(o){if(r<t&&t<a)return true;o=false,r=-1;}else o=true,r=a;}return false},"f"),Th=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,Rh=i(e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(Th,(t,o,n,r)=>ut(e,r)?t:`${o}\\>${n}`),"E"),Ph=/(\*\*)([^*]*\*?)$/,Nh=/(__)([^_]*?)$/,Mh=/(\*\*\*)([^*]*?)$/,Ih=/(\*)([^*]*?)$/,Bh=/(_)([^_]*?)$/,Ah=/(`)([^`]*?)$/,Eh=/(~~)([^~]*?)$/,zo=/^[\s_~*`]*$/,kd=/^[\s]*[-*+][\s]+$/,Lh=/[\p{L}\p{N}_]/u,Dh=/^```[^`\n]*```?$/,zh=/^\*{4,}$/,Uh=/(__)([^_]+)_$/,Fh=/(~~)([^~]+)~$/,bd=/~~/g,wo=i(e=>{if(!e)return false;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?true:Lh.test(e)},"g");var Oh=i((e,t)=>{let o=1;for(let n=t-1;n>=0;n-=1)if(e[n]==="]")o+=1;else if(e[n]==="["&&(o-=1,o===0))return n;return -1},"X"),$d=i((e,t)=>{let o=1;for(let n=t+1;n<e.length;n+=1)if(e[n]==="[")o+=1;else if(e[n]==="]"&&(o-=1,o===0))return n;return -1},"C"),zr=i((e,t)=>{let o=false,n=false;for(let r=0;r<e.length&&r<t;r+=1){if(e[r]==="\\"&&e[r+1]==="$"){r+=1;continue}e[r]==="$"&&(e[r+1]==="$"?(n=!n,r+=1,o=false):n||(o=!o));}return o||n},"h"),_h=i((e,t)=>{for(let o=t;o<e.length;o+=1){if(e[o]===")")return true;if(e[o]===`
|
|
215
|
+
`)return false}return false},"In"),Sd=i((e,t)=>{for(let o=t-1;o>=0;o-=1){if(e[o]===")")return false;if(e[o]==="(")return o>0&&e[o-1]==="]"?_h(e,t):false;if(e[o]===`
|
|
216
|
+
`)return false}return false},"m"),Hh=i((e,t)=>{for(let o=t-1;o>=0;o-=1){if(e[o]===">")return false;if(e[o]==="<"){let n=o+1<e.length?e[o+1]:"";return n>="a"&&n<="z"||n>="A"&&n<="Z"||n==="/"}if(e[o]===`
|
|
217
217
|
`)return false}return false},"z"),aa=i((e,t,o)=>{let n=0;for(let d=t-1;d>=0;d-=1)if(e[d]===`
|
|
218
218
|
`){n=d+1;break}let r=e.length;for(let d=t;d<e.length;d+=1)if(e[d]===`
|
|
219
|
-
`){r=d;break}let a=e.substring(n,r),l=0,s=false;for(let d of a)if(d===o)l+=1;else if(d!==" "&&d!==" "){s=true;break}return l>=3&&!s},"p"),
|
|
219
|
+
`){r=d;break}let a=e.substring(n,r),l=0,s=false;for(let d of a)if(d===o)l+=1;else if(d!==" "&&d!==" "){s=true;break}return l>=3&&!s},"p"),Vh=i((e,t,o,n)=>o==="\\"||e.includes("$")&&zr(e,t)?true:o!=="*"&&n==="*"?(t<e.length-2?e[t+2]:"")!=="*":!!(o==="*"||o&&n&&wo(o)&&wo(n)||(!o||o===" "||o===" "||o===`
|
|
220
220
|
`)&&(!n||n===" "||n===" "||n===`
|
|
221
|
-
`)),"kn"),Cd=i(e=>{let t=0,o=false,n=e.length;for(let r=0;r<n;r+=1){if(e[r]==="`"&&r+2<n&&e[r+1]==="`"&&e[r+2]==="`"){o=!o,r+=2;continue}if(o||e[r]!=="*")continue;let a=r>0?e[r-1]:"",l=r<n-1?e[r+1]:"";
|
|
221
|
+
`)),"kn"),Cd=i(e=>{let t=0,o=false,n=e.length;for(let r=0;r<n;r+=1){if(e[r]==="`"&&r+2<n&&e[r+1]==="`"&&e[r+2]==="`"){o=!o,r+=2;continue}if(o||e[r]!=="*")continue;let a=r>0?e[r-1]:"",l=r<n-1?e[r+1]:"";Vh(e,r,a,l)||(t+=1);}return t},"Y"),Wh=i((e,t,o,n)=>!!(o==="\\"||e.includes("$")&&zr(e,t)||Sd(e,t)||Hh(e,t)||o==="_"||n==="_"||o&&n&&wo(o)&&wo(n)),"bn"),jh=i(e=>{let t=0,o=false,n=e.length;for(let r=0;r<n;r+=1){if(e[r]==="`"&&r+2<n&&e[r+1]==="`"&&e[r+2]==="`"){o=!o,r+=2;continue}if(o||e[r]!=="_")continue;let a=r>0?e[r-1]:"",l=r<n-1?e[r+1]:"";Wh(e,r,a,l)||(t+=1);}return t},"Tn"),Gh=i(e=>{let t=0,o=0,n=false;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){o>=3&&(t+=Math.floor(o/3)),o=0,n=!n,r+=2;continue}n||(e[r]==="*"?o+=1:(o>=3&&(t+=Math.floor(o/3)),o=0));}return o>=3&&(t+=Math.floor(o/3)),t},"Cn"),sa=i(e=>{let t=0,o=false;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){o=!o,n+=2;continue}o||e[n]==="*"&&n+1<e.length&&e[n+1]==="*"&&(t+=1,n+=1);}return t},"A"),vd=i(e=>{let t=0,o=false;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){o=!o,n+=2;continue}o||e[n]==="_"&&n+1<e.length&&e[n+1]==="_"&&(t+=1,n+=1);}return t},"v"),qh=i((e,t,o)=>{if(!t||zo.test(t))return true;let n=e.substring(0,o).lastIndexOf(`
|
|
222
222
|
`),r=n===-1?0:n+1,a=e.substring(r,o);return kd.test(a)&&t.includes(`
|
|
223
|
-
`)?true:aa(e,o,"*")},"An"),
|
|
223
|
+
`)?true:aa(e,o,"*")},"An"),Kh=i(e=>{let t=e.match(Ph);if(!t)return e;let o=t[2],n=e.lastIndexOf(t[1]);return ut(e,n)||xo(e,n)||qh(e,o,n)?e:sa(e)%2===1?o.endsWith("*")?`${e}*`:`${e}**`:e},"j"),Xh=i((e,t,o)=>{if(!t||zo.test(t))return true;let n=e.substring(0,o).lastIndexOf(`
|
|
224
224
|
`),r=n===-1?0:n+1,a=e.substring(r,o);return kd.test(a)&&t.includes(`
|
|
225
|
-
`)?true:aa(e,o,"_")},"Bn"),
|
|
225
|
+
`)?true:aa(e,o,"_")},"Bn"),Yh=i(e=>{let t=e.match(Nh);if(!t){let r=e.match(Uh);if(r){let a=e.lastIndexOf(r[1]);if(!(ut(e,a)||xo(e,a))&&vd(e)%2===1)return `${e}_`}return e}let o=t[2],n=e.lastIndexOf(t[1]);return ut(e,n)||xo(e,n)||Xh(e,o,n)?e:vd(e)%2===1?`${e}__`:e},"Q"),Qh=i(e=>{let t=false;for(let o=0;o<e.length;o+=1){if(e[o]==="`"&&o+2<e.length&&e[o+1]==="`"&&e[o+2]==="`"){t=!t,o+=2;continue}if(!t&&e[o]==="*"&&e[o-1]!=="*"&&e[o+1]!=="*"&&e[o-1]!=="\\"&&!zr(e,o)){let n=o>0?e[o-1]:"",r=o<e.length-1?e[o+1]:"";if((!n||n===" "||n===" "||n===`
|
|
226
226
|
`)&&(!r||r===" "||r===" "||r===`
|
|
227
|
-
`)||n&&r&&wo(n)&&wo(r))continue;return o}}return -1},"Sn"),
|
|
228
|
-
`;)t-=1;if(t<e.length){let o=e.slice(0,t),n=e.slice(t);return `${o}_${n}`}return `${e}_`},"_n"),
|
|
229
|
-
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,"En"),
|
|
227
|
+
`)||n&&r&&wo(n)&&wo(r))continue;return o}}return -1},"Sn"),Zh=i(e=>{if(!e.match(Ih))return e;let t=Qh(e);if(t===-1||ut(e,t)||xo(e,t))return e;let o=e.substring(t+1);return !o||zo.test(o)?e:Cd(e)%2===1?`${e}*`:e},"Z"),Td=i(e=>{let t=false;for(let o=0;o<e.length;o+=1){if(e[o]==="`"&&o+2<e.length&&e[o+1]==="`"&&e[o+2]==="`"){t=!t,o+=2;continue}if(!t&&e[o]==="_"&&e[o-1]!=="_"&&e[o+1]!=="_"&&e[o-1]!=="\\"&&!zr(e,o)&&!Sd(e,o)){let n=o>0?e[o-1]:"",r=o<e.length-1?e[o+1]:"";if(n&&r&&wo(n)&&wo(r))continue;return o}}return -1},"q"),Jh=i(e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
228
|
+
`;)t-=1;if(t<e.length){let o=e.slice(0,t),n=e.slice(t);return `${o}_${n}`}return `${e}_`},"_n"),eb=i(e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(sa(t)%2!==1)return null;let o=t.indexOf("**"),n=Td(t);return o!==-1&&n!==-1&&o<n?`${t}_**`:null},"Pn"),tb=i(e=>{if(!e.match(Bh))return e;let t=Td(e);if(t===-1)return e;let o=e.substring(t+1);if(!o||zo.test(o)||ut(e,t)||xo(e,t))return e;if(jh(e)%2===1){let n=eb(e);return n!==null?n:Jh(e)}return e},"J"),ob=i(e=>{let t=sa(e),o=Cd(e);return t%2===0&&o%2===0},"$n"),nb=i((e,t,o)=>!t||zo.test(t)||ut(e,o)||xo(e,o)?true:aa(e,o,"*"),"On"),rb=i(e=>{if(zh.test(e))return e;let t=e.match(Mh);if(!t)return e;let o=t[2],n=e.lastIndexOf(t[1]);return nb(e,o,n)?e:Gh(e)%2===1?ob(e)?e:`${e}***`:e},"V"),ib=/<[a-zA-Z/][^>]*$/,ab=i(e=>{let t=e.match(ib);return !t||t.index===void 0||ut(e,t.index)?e:e.substring(0,t.index).trimEnd()},"x"),sb=i(e=>!e.match(Dh)||e.includes(`
|
|
229
|
+
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,"En"),lb=i(e=>(e.match(/```/g)||[]).length%2===1,"Mn"),db=i(e=>{let t=sb(e);if(t!==null)return t;let o=e.match(Ah);if(o&&!lb(e)){let n=o[2];if(!n||zo.test(n))return e;if(Ch(e)%2===1)return `${e}\``}return e},"nn"),Rd=i((e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```","en"),cb=i(e=>{let t=0,o=false;for(let n=0;n<e.length-1;n+=1)e[n]==="`"&&!Rd(e,n)&&(o=!o),!o&&e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},"Nn"),ub=i(e=>{let t=0,o=false;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"){n+=1;continue}if(e[n]==="`"&&!Rd(e,n)){o=!o;continue}!o&&e[n]==="$"&&(n+1<e.length&&e[n+1]==="$"?n+=1:t+=1);}return t},"yn"),pb=i(e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return `${e}$`;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
230
230
|
`,t)!==-1&&!e.endsWith(`
|
|
231
231
|
`)?`${e}
|
|
232
|
-
$$`:`${e}$$`},"Rn"),
|
|
233
|
-
`);if(t===-1)return e;let o=e.substring(t+1),n=e.substring(0,t),r=o.trim();if(
|
|
234
|
-
`).at(-1);if(a&&a.trim().length>0)return `${e}\u200B`}if(
|
|
235
|
-
`).at(-1);if(a&&a.trim().length>0)return `${e}\u200B`}return e},"ln"),
|
|
232
|
+
$$`:`${e}$$`},"Rn"),mb=i(e=>cb(e)%2===0?e:pb(e),"rn"),gb=i(e=>ub(e)%2===1?`${e}$`:e,"sn"),fb=i((e,t,o)=>{if(e.substring(t+2).includes(")"))return null;let n=Oh(e,t);if(n===-1||ut(e,n))return null;let r=n>0&&e[n-1]==="!",a=r?n-1:n,l=e.substring(0,a);if(r)return l;let s=e.substring(n+1,t);return o==="text-only"?`${l}${s}`:`${l}[${s}](streamdown:incomplete-link)`},"Un"),yd=i((e,t)=>{for(let o=0;o<t;o++)if(e[o]==="["&&!ut(e,o)){if(o>0&&e[o-1]==="!")continue;let n=$d(e,o);if(n===-1)return o;if(n+1<e.length&&e[n+1]==="("){let r=e.indexOf(")",n+2);r!==-1&&(o=r);}}return t},"on"),hb=i((e,t,o)=>{let n=t>0&&e[t-1]==="!",r=n?t-1:t;if(!e.substring(t+1).includes("]")){let a=e.substring(0,r);if(n)return a;if(o==="text-only"){let l=yd(e,t);return e.substring(0,l)+e.substring(l+1)}return `${e}](streamdown:incomplete-link)`}if($d(e,t)===-1){let a=e.substring(0,r);if(n)return a;if(o==="text-only"){let l=yd(e,t);return e.substring(0,l)+e.substring(l+1)}return `${e}](streamdown:incomplete-link)`}return null},"Wn"),Pd=i((e,t="protocol")=>{let o=e.lastIndexOf("](");if(o!==-1&&!ut(e,o)){let n=fb(e,o,t);if(n!==null)return n}for(let n=e.length-1;n>=0;n-=1)if(e[n]==="["&&!ut(e,n)){let r=hb(e,n,t);if(r!==null)return r}return e},"B"),bb=/^-{1,2}$/,vb=/^[\s]*-{1,2}[\s]+$/,yb=/^={1,2}$/,xb=/^[\s]*={1,2}[\s]+$/,wb=i(e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
|
|
233
|
+
`);if(t===-1)return e;let o=e.substring(t+1),n=e.substring(0,t),r=o.trim();if(bb.test(r)&&!o.match(vb)){let a=n.split(`
|
|
234
|
+
`).at(-1);if(a&&a.trim().length>0)return `${e}\u200B`}if(yb.test(r)&&!o.match(xb)){let a=n.split(`
|
|
235
|
+
`).at(-1);if(a&&a.trim().length>0)return `${e}\u200B`}return e},"ln"),kb=new RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),$b=i(e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(kb,(t,o)=>ut(e,o)?t:"\\~"),"tn"),Sb=i(e=>{var t,o;let n=e.match(Eh);if(n){let r=n[2];if(!r||zo.test(r))return e;let a=e.lastIndexOf(n[1]);if(ut(e,a)||xo(e,a))return e;if(((t=e.match(bd))==null?void 0:t.length)%2===1)return `${e}~~`}else {let r=e.match(Fh);if(r){let a=e.lastIndexOf(r[0].slice(0,2));if(ut(e,a)||xo(e,a))return e;if(((o=e.match(bd))==null?void 0:o.length)%2===1)return `${e}~`}}return e},"an"),ia=i(e=>e!==false,"S"),Cb=i(e=>e===true,"Fn"),ct={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},Tb=[{handler:{name:"singleTilde",handle:$b,priority:ct.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:Rh,priority:ct.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:ab,priority:ct.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:wb,priority:ct.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:Pd,priority:ct.LINKS},optionKey:"links",earlyReturn:i(e=>e.endsWith("](streamdown:incomplete-link)"),"earlyReturn")},{handler:{name:"boldItalic",handle:rb,priority:ct.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:Kh,priority:ct.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:Yh,priority:ct.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:Zh,priority:ct.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:tb,priority:ct.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:db,priority:ct.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:Sb,priority:ct.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:mb,priority:ct.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:gb,priority:ct.INLINE_KATEX},optionKey:"inlineKatex"}],Rb=i(e=>{var t;let o=(t=e?.linkMode)!=null?t:"protocol";return Tb.filter(({handler:n,optionKey:r})=>n.name==="links"?ia(e?.links)||ia(e?.images):n.name==="inlineKatex"?Cb(e?.inlineKatex):ia(e?.[r])).map(({handler:n,earlyReturn:r})=>n.name==="links"?{handler:wd(xd({},n),{handle:i(a=>Pd(a,o),"handle")}),earlyReturn:o==="protocol"?r:void 0}:{handler:n,earlyReturn:r})},"zn"),Pb=i((e,t)=>{var o;if(!e||typeof e!="string")return e;let n=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,r=Rb(t),a=((o=t?.handlers)!=null?o:[]).map(s=>{var d;return {handler:wd(xd({},s),{priority:(d=s.priority)!=null?d:ct.DEFAULT}),earlyReturn:void 0}}),l=[...r,...a].sort((s,d)=>{var u,m;return ((u=s.handler.priority)!=null?u:0)-((m=d.handler.priority)!=null?m:0)});for(let{handler:s,earlyReturn:d}of l)if(n=s.handle(n),d!=null&&d(n))return n;return n},"vn"),Nd=Pb;function Md(e){let t=yo(e,"link");if(!(!t||!/^https?:\/\//i.test(t)))try{let o=new URL(t);return o.hash="",`${o.protocol}//${o.host.toLowerCase()}${o.pathname.replace(/\/+$/,"")}${o.search}`}catch{return}}i(Md,"citationKey");function Id(e,t){let o=Md(t);return o?e.find(n=>Md(n.href)===o):void 0}i(Id,"citedSource");function Fr({source:e,className:t}){let o=yo(e.image,"media");return o?jsx("img",{src:o,alt:"",className:`source-avatar ${t}`}):jsx("span",{"aria-hidden":true,className:`source-avatar inline-flex shrink-0 items-center justify-center bg-inset font-sans text-[8px] font-semibold uppercase leading-none text-ink-2 ${t}`,children:(e.domain||e.name).replace(/^www\./,"").charAt(0)})}i(Fr,"SourceAvatar");function Or({source:e}){return e?jsxs("a",{href:yo(e.href,"link"),target:"_blank",rel:"noreferrer","data-bui-source-chip":true,className:`ml-0 mr-1 inline-flex h-4.5 translate-y-[-1px] items-center gap-1 rounded-[5px]
|
|
236
236
|
bg-inset pr-[3px] pl-[3px] align-middle font-mono text-[10.5px] text-ink-2 no-underline shadow-hairline
|
|
237
|
-
transition-colors duration-150 hover:bg-hover hover:text-ink`,style:{animation:"bui-pop-in 250ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsx(Fr,{source:e,className:"size-3 rounded-[3px]"}),jsx("span",{children:e.domain})]}):null}i(Or,"SourceChip");var Fn=Popover,Bd=forwardRef(i(function({portal:t,positioner:o,...n},r){return jsx(Popover.Portal,{...t,children:jsx(Popover.Positioner,{...o,children:jsx(Popover.Popup,{...n,ref:r})})})},"PopoverSurface")),Mb='[data-monkeys-dialog-content][data-state="open"], [data-slot="dialog-content"][data-open], [data-slot="dialog-content"][data-state="open"]';function Hr(e){return e?.closest(Mb)??void 0}i(Hr,"getOpenPopoverDialog");var Ad=Symbol.for("@inf-monkeys-tech/monkeys-design/popover-adapter@1"),Ed=globalThis,Dd=Ed[Ad]??(Ed[Ad]=he.createContext(null));function pa(){let e=he.useContext(Dd);if(!e)throw new Error("Popover parts must be used within Popover.");return e}i(pa,"useAdapter");function zd({open:e,defaultOpen:t,onOpenChange:o,modal:n=false,children:r}){let[a,l]=he.useState(t??false),[s,d]=he.useState(null),[u,m]=he.useState(null),c=he.useRef(void 0),p=he.useRef(false),h=e??a,v=he.useCallback(g=>{let f="button"in g&&(g.button===2||g.button===0&&g.ctrlKey);p.current=!n||f,l(false),o?.(false);},[n,o]),w=he.useMemo(()=>({open:h,modal:n,anchor:s,trigger:u,setAnchor:d,setTrigger:m,escapeHandler:c,dismissOutside:v,outsideInteraction:p}),[h,n,s,u,v]);return jsx(Dd.Provider,{value:w,children:jsx(Fn.Root,{open:h,modal:n,onOpenChange:(g,f)=>{if(f.reason==="outside-press"||f.reason==="focus-out"){f.cancel();return}if(f.reason==="escape-key"&&(c.current?.(f.event),f.event.defaultPrevented)){f.cancel();return}g&&f.trigger instanceof HTMLElement&&m(f.trigger),p.current=false,l(g),o?.(g);},children:r})})}i(zd,"Popover");function ma(e,t){return e?he.Children.only(t):void 0}i(ma,"slotElement");function Ud(e){return !e||typeof e.type!="string"||e.type==="button"}i(Ud,"isNativeButton");var Fd=he.forwardRef(i(function({asChild:t,children:o,onClick:n,...r},a){let{open:l,setTrigger:s}=pa(),d=useComposedRefs(a,s),u=ma(t,o);return jsx(Fn.Trigger,{ref:d,"data-state":l?"open":"closed",render:u,nativeButton:Ud(u),onClick:m=>{n?.(m),m.defaultPrevented&&m.preventBaseUIHandler();},...r,children:t?void 0:o})},"PopoverTrigger"));he.forwardRef(i(function({asChild:t,virtualRef:o,...n},r){let{setAnchor:a}=pa(),l=useComposedRefs(r,a);return he.useEffect(()=>{if(o)return a(()=>()=>o.current),()=>a(null)},[a,o]),o?null:jsx(t?Slot:"div",{...n,ref:l})},"PopoverAnchor"));he.forwardRef(i(function({asChild:t,children:o,onClick:n,...r},a){let l=ma(t,o);return jsx(Fn.Close,{ref:a,render:l,nativeButton:Ud(l),onClick:s=>{n?.(s),s.defaultPrevented&&s.preventBaseUIHandler();},...r,children:t?void 0:o})},"PopoverClose"));function Od(e){if(e)return "closest"in e?e:e.contextElement}i(Od,"anchorElement");function Eb(e,t){let[o,n]=he.useState();return he.useEffect(()=>{if(!t||!e)return;let r,a,l=i(()=>{let s=typeof e=="function"?e():e,d=s?.getBoundingClientRect();d&&(!a||d.x!==a.x||d.y!==a.y||d.width!==a.width||d.height!==a.height)&&(a=d,n({source:e,anchor:{contextElement:Od(s),getBoundingClientRect:i(()=>d,"getBoundingClientRect")}})),r=requestAnimationFrame(l);},"update");return r=requestAnimationFrame(l),()=>cancelAnimationFrame(r)},[e,t]),t&&o?.source===e?o.anchor:e}i(Eb,"useMovingAnchor");function Ld(e,t,o){if(!e)return true;let n=new Event(`focusScope.autoFocusOn${o}`,{cancelable:true});return Object.defineProperty(n,"target",{value:t}),e(n),!n.defaultPrevented}i(Ld,"allowsAutofocus");var Lb={"--radix-popover-content-transform-origin":"var(--transform-origin)","--radix-popover-content-available-width":"var(--available-width)","--radix-popover-content-available-height":"var(--available-height)","--radix-popover-trigger-width":"var(--anchor-width)","--radix-popover-trigger-height":"var(--anchor-height)"},_d=he.forwardRef(i(function({align:t="center",alignOffset:o,side:n="bottom",sideOffset:r=4,arrowPadding:a=0,avoidCollisions:l=true,collisionBoundary:s,collisionPadding:d=0,sticky:u="partial",hideWhenDetached:m,updatePositionStrategy:c="optimized",container:p,portalForceMount:h,forceMount:v,asChild:w,unstyled:g=false,className:f,style:x,children:y,onOpenAutoFocus:$,onCloseAutoFocus:N,onEscapeKeyDown:T,onPointerDownOutside:S,onFocusOutside:A,onInteractOutside:O,...L},I){let{open:k,modal:R,anchor:z,trigger:_,escapeHandler:X,dismissOutside:Z,outsideInteraction:F}=pa(),J=ht(),[B,te]=he.useState(null),ee=useComposedRefs(I,te),pe=he.useRef(null),se=he.useRef(false),M=typeof z=="function"?z():z,H=Od(M)??_,E=H?.ownerDocument??(typeof document>"u"?void 0:document),j=E?.activeElement,le=Hr(H)??Hr(j)??Array.from(E?.querySelectorAll('[data-monkeys-dialog-content][data-state="open"]')??[]).at(-1),re=p??le,de=Hr(re)?.matches('[data-state="open"]'),Ee=Eb(z??(c==="always"?_:null),k&&c==="always");he.useEffect(()=>(X.current=T,()=>{X.current=void 0;}),[X,T]),he.useEffect(()=>{if(B&&pe.current){let Se=B.ownerDocument.defaultView?.getComputedStyle(B).zIndex;pe.current.style.zIndex=Se??"";}},[B,f,x?.zIndex]);let q=Array.isArray(s)?s.filter(Se=>Se!==null):s,ge=ma(w,y),Xe=jsxs(Fragment,{children:[k&&de&&jsx(DismissableLayer,{hidden:true,"aria-hidden":"true"}),R&&jsx(Fn.Close,{hidden:true,tabIndex:-1,"aria-hidden":"true"})]}),qt=jsx(Bd,{...J,...L,ref:ee,portal:{container:re,keepMounted:h||v},positioner:{ref:pe,anchor:Ee??void 0,positionMethod:"fixed",align:t,alignOffset:o,side:n,sideOffset:r,arrowPadding:a,collisionPadding:d,collisionBoundary:q??void 0,sticky:u==="always",collisionAvoidance:l?{side:"flip",align:"shift",fallbackAxisSide:"none"}:{side:"none",align:"none",fallbackAxisSide:"none"},style:i(({anchorHidden:Se})=>m&&Se?{visibility:"hidden",pointerEvents:"none"}:void 0,"style")},"data-monkeys-component":"popover","data-slot":"content","data-surface":"menu","data-state":k?"open":"closed",initialFocus:$?()=>Ld($,B,"Mount"):void 0,finalFocus:()=>(Ld(N,B,"Unmount")&&!F.current&&_&&queueMicrotask(()=>_.focus({preventScroll:true})),F.current=false,se.current=false,false),render:ge?he.cloneElement(ge,void 0,jsxs(Fragment,{children:[ge.props.children,Xe]})):void 0,className:g?f:P("z-50 w-72 border p-4 outline-hidden",eo("menu"),"data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",f),style:{...Lb,...!g&&{pointerEvents:"auto"},...x},children:ge?void 0:jsxs(Fragment,{children:[y,Xe]})});return jsx(DismissableLayer$1,{asChild:true,deferPointerDownOutside:true,onPointerDownOutside:Se=>{k&&S?.(Se);},onFocusOutside:Se=>{!k||Se.target?.hasAttribute("data-base-ui-focus-guard")||(A?.(Se),R&&Se.preventDefault());},onInteractOutside:Se=>{if(!k||Se.target?.hasAttribute("data-base-ui-focus-guard")||(O?.(Se),Se.defaultPrevented))return;let{originalEvent:mt}=Se.detail;!R&&(mt.type==="pointerdown"&&(se.current=true),_?.contains(Se.target)||mt.type==="focusin"&&se.current)||Z(mt);},children:qt})},"PopoverContent"));function Wd({children:e,actions:t}){let o=useRef(false),[n,r]=useState(false),[a,l]=useState(false);return jsxs("span",{className:"agent-markdown-image","data-markdown-image":true,children:[t?.open?jsx(rn,{unstyled:true,type:"button",className:"agent-markdown-image-open","aria-label":t.labels.open,onClick:s=>{s.preventDefault(),s.stopPropagation(),t.open?.();},children:e}):e,t&&jsxs("span",{className:"agent-markdown-image-actions",children:[t.collect&&jsx(rn,{type:"button",variant:"outline",size:"icon",title:t.labels.collect,"aria-label":t.labels.collect,onClick:s=>{s.preventDefault(),s.stopPropagation(),t.collect?.();},children:jsx(FolderPlus,{"aria-hidden":"true"})}),t.download&&jsx(rn,{type:"button",variant:"outline",size:"icon",disabled:n,title:t.labels.download,"aria-label":t.labels.download,onClick:async s=>{if(s.preventDefault(),s.stopPropagation(),!o.current){o.current=true,r(true),l(false);try{await t.download?.();}catch{l(true);}finally{o.current=false,r(false);}}},children:n?jsx(LoaderCircle,{"aria-hidden":"true",className:"animate-spin"}):jsx(Download,{"aria-hidden":"true"})}),t.edit&&jsx(rn,{type:"button",variant:"outline",size:"icon",title:t.labels.edit,"aria-label":t.labels.edit,onClick:s=>{s.preventDefault(),s.stopPropagation(),t.edit?.();},children:jsx(SquarePen,{"aria-hidden":"true"})})]}),a&&jsx("span",{className:"agent-markdown-image-error",role:"alert",children:t?.labels.failed})]})}i(Wd,"AgentImageCard");var Xd=[],jr=createContext({text:"",sources:Xd}),Yd=createContext(false),Qd=i(e=>/^data:image\/(?:png|jpeg|gif|webp|avif);base64,[A-Za-z0-9+/]+={0,2}$/i.test(e),"embeddedImage"),jb=i(e=>Qd(e)?e:defaultUrlTransform(e),"imageUrl");function Gb(){return e=>{visit(e,"html",(t,o,n)=>{n&&o!==void 0&&/^<br\s*\/?\s*>$/i.test(t.value)&&n.children.splice(o,1,{type:"break",position:t.position});});}}i(Gb,"remarkLineBreaks");var Wr=i((e,t,o)=>!/^(?:javascript|vbscript|data):/i.test(t.trim())&&e?.supports(t,o),"owns"),fa=i(e=>typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(fa).join(""):isValidElement(e)?fa(e.props.children):"","textOf"),qb=i(({src:e,alt:t,title:o})=>{let{resources:n}=useContext(jr),r=useContext(Yd),a=e&&(Wr(n,e,"image")?e:jb(e));return jsx(Wd,{actions:a&&!r?n?.imageActions?.({src:a,alt:t,title:o}):void 0,children:a&&Wr(n,a,"image")?n.image({src:a,alt:t,title:o}):jsx("img",{src:a||void 0,alt:t,title:o})})},"MarkdownImage"),Kb=i(({children:e,node:t})=>{let{text:o}=useContext(jr),n=t?.position?o.slice(t.position.start.offset,t.position.end.offset):void 0,r=typeof e=="string"&&n?.replace(/\s/g,"")===e.replace(/\s/g,"");return jsx("p",{children:r?n:e})},"MarkdownParagraph"),Xb=i(({href:e,children:t,title:o})=>{let{sources:n,resources:r}=useContext(jr),a=typeof t=="string"?t:jsx(Yd.Provider,{value:true,children:t});if(e&&Wr(r,e,"link"))return jsx(Fragment,{children:r.link({href:e,children:a,title:o})});let l=Id(n,e);if(!l)return jsx("a",{href:e,target:"_blank",rel:"noreferrer noopener",children:a});let s=fa(t).trim(),d=!s||s.replace(/\/+$/,"")===String(e??"").replace(/\/+$/,"");return jsxs(Fragment,{children:[d?null:jsxs(Fragment,{children:[a," "]}),jsx(Or,{source:l})]})},"MarkdownLink");function Zd({text:e,sources:t=Xd,resources:o,streaming:n=false}){let r=n?Nd(e,{linkMode:"text-only",katex:false}):e;return jsx(jr.Provider,{value:{text:r,sources:t,resources:o},children:jsx("div",{className:"streaming-markdown",children:jsx(_b,{skipHtml:true,remarkPlugins:[Hb,Vb,Gb],urlTransform:(a,l,s)=>l==="src"&&s.tagName==="img"&&Qd(a)||Wr(o,a,l==="src"?"image":"link")?a:defaultUrlTransform(a),components:{img:qb,p:Kb,a:Xb,table:i(({children:a})=>jsx("div",{className:"streaming-table",children:jsx("table",{children:a})}),"table"),pre:i(({children:a})=>{if(!isValidElement(a))return jsx("pre",{children:a});let l=String(a.props.children??"").replace(/\n$/,""),s=a.props.className?.replace(/^language-/,"")??"";return jsx(Di,{filename:s,code:l,lines:l.split(`
|
|
238
|
-
`)})},"pre")},children:r})})})}i(Zd,"StreamingMarkdown");var
|
|
239
|
-
transition-colors duration-100 hover:bg-hover-2`,children:jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:
|
|
237
|
+
transition-colors duration-150 hover:bg-hover hover:text-ink`,style:{animation:"bui-pop-in 250ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsx(Fr,{source:e,className:"size-3 rounded-[3px]"}),jsx("span",{children:e.domain})]}):null}i(Or,"SourceChip");var Fn=Popover,Bd=forwardRef(i(function({portal:t,positioner:o,...n},r){return jsx(Popover.Portal,{...t,children:jsx(Popover.Positioner,{...o,children:jsx(Popover.Popup,{...n,ref:r})})})},"PopoverSurface")),Ib='[data-monkeys-dialog-content][data-state="open"], [data-slot="dialog-content"][data-open], [data-slot="dialog-content"][data-state="open"]';function Hr(e){return e?.closest(Ib)??void 0}i(Hr,"getOpenPopoverDialog");var Ad=Symbol.for("@inf-monkeys-tech/monkeys-design/popover-adapter@1"),Ed=globalThis,Dd=Ed[Ad]??(Ed[Ad]=he.createContext(null));function pa(){let e=he.useContext(Dd);if(!e)throw new Error("Popover parts must be used within Popover.");return e}i(pa,"useAdapter");function zd({open:e,defaultOpen:t,onOpenChange:o,modal:n=false,children:r}){let[a,l]=he.useState(t??false),[s,d]=he.useState(null),[u,m]=he.useState(null),c=he.useRef(void 0),p=he.useRef(false),h=e??a,v=he.useCallback(g=>{let f="button"in g&&(g.button===2||g.button===0&&g.ctrlKey);p.current=!n||f,l(false),o?.(false);},[n,o]),w=he.useMemo(()=>({open:h,modal:n,anchor:s,trigger:u,setAnchor:d,setTrigger:m,escapeHandler:c,dismissOutside:v,outsideInteraction:p}),[h,n,s,u,v]);return jsx(Dd.Provider,{value:w,children:jsx(Fn.Root,{open:h,modal:n,onOpenChange:(g,f)=>{if(f.reason==="outside-press"||f.reason==="focus-out"){f.cancel();return}if(f.reason==="escape-key"&&(c.current?.(f.event),f.event.defaultPrevented)){f.cancel();return}g&&f.trigger instanceof HTMLElement&&m(f.trigger),p.current=false,l(g),o?.(g);},children:r})})}i(zd,"Popover");function ma(e,t){return e?he.Children.only(t):void 0}i(ma,"slotElement");function Ud(e){return !e||typeof e.type!="string"||e.type==="button"}i(Ud,"isNativeButton");var Fd=he.forwardRef(i(function({asChild:t,children:o,onClick:n,...r},a){let{open:l,setTrigger:s}=pa(),d=useComposedRefs(a,s),u=ma(t,o);return jsx(Fn.Trigger,{ref:d,"data-state":l?"open":"closed",render:u,nativeButton:Ud(u),onClick:m=>{n?.(m),m.defaultPrevented&&m.preventBaseUIHandler();},...r,children:t?void 0:o})},"PopoverTrigger"));he.forwardRef(i(function({asChild:t,virtualRef:o,...n},r){let{setAnchor:a}=pa(),l=useComposedRefs(r,a);return he.useEffect(()=>{if(o)return a(()=>()=>o.current),()=>a(null)},[a,o]),o?null:jsx(t?Slot:"div",{...n,ref:l})},"PopoverAnchor"));he.forwardRef(i(function({asChild:t,children:o,onClick:n,...r},a){let l=ma(t,o);return jsx(Fn.Close,{ref:a,render:l,nativeButton:Ud(l),onClick:s=>{n?.(s),s.defaultPrevented&&s.preventBaseUIHandler();},...r,children:t?void 0:o})},"PopoverClose"));function Od(e){if(e)return "closest"in e?e:e.contextElement}i(Od,"anchorElement");function Lb(e,t){let[o,n]=he.useState();return he.useEffect(()=>{if(!t||!e)return;let r,a,l=i(()=>{let s=typeof e=="function"?e():e,d=s?.getBoundingClientRect();d&&(!a||d.x!==a.x||d.y!==a.y||d.width!==a.width||d.height!==a.height)&&(a=d,n({source:e,anchor:{contextElement:Od(s),getBoundingClientRect:i(()=>d,"getBoundingClientRect")}})),r=requestAnimationFrame(l);},"update");return r=requestAnimationFrame(l),()=>cancelAnimationFrame(r)},[e,t]),t&&o?.source===e?o.anchor:e}i(Lb,"useMovingAnchor");function Ld(e,t,o){if(!e)return true;let n=new Event(`focusScope.autoFocusOn${o}`,{cancelable:true});return Object.defineProperty(n,"target",{value:t}),e(n),!n.defaultPrevented}i(Ld,"allowsAutofocus");var Db={"--radix-popover-content-transform-origin":"var(--transform-origin)","--radix-popover-content-available-width":"var(--available-width)","--radix-popover-content-available-height":"var(--available-height)","--radix-popover-trigger-width":"var(--anchor-width)","--radix-popover-trigger-height":"var(--anchor-height)"},_d=he.forwardRef(i(function({align:t="center",alignOffset:o,side:n="bottom",sideOffset:r=4,arrowPadding:a=0,avoidCollisions:l=true,collisionBoundary:s,collisionPadding:d=0,sticky:u="partial",hideWhenDetached:m,updatePositionStrategy:c="optimized",container:p,portalForceMount:h,forceMount:v,asChild:w,unstyled:g=false,className:f,style:x,children:y,onOpenAutoFocus:$,onCloseAutoFocus:M,onEscapeKeyDown:C,onPointerDownOutside:R,onFocusOutside:P,onInteractOutside:F,...L},B){let{open:k,modal:T,anchor:D,trigger:_,escapeHandler:Z,dismissOutside:Y,outsideInteraction:O}=pa(),J=ht(),[E,te]=he.useState(null),ee=useComposedRefs(B,te),me=he.useRef(null),de=he.useRef(false),I=typeof D=="function"?D():D,j=Od(I)??_,A=j?.ownerDocument??(typeof document>"u"?void 0:document),W=A?.activeElement,ae=Hr(j)??Hr(W)??Array.from(A?.querySelectorAll('[data-monkeys-dialog-content][data-state="open"]')??[]).at(-1),se=p??ae,re=Hr(se)?.matches('[data-state="open"]'),Be=Lb(D??(c==="always"?_:null),k&&c==="always");he.useEffect(()=>(Z.current=C,()=>{Z.current=void 0;}),[Z,C]),he.useEffect(()=>{if(E&&me.current){let ye=E.ownerDocument.defaultView?.getComputedStyle(E).zIndex;me.current.style.zIndex=ye??"";}},[E,f,x?.zIndex]);let K=Array.isArray(s)?s.filter(ye=>ye!==null):s,ge=ma(w,y),Je=jsxs(Fragment,{children:[k&&re&&jsx(DismissableLayer,{hidden:true,"aria-hidden":"true"}),T&&jsx(Fn.Close,{hidden:true,tabIndex:-1,"aria-hidden":"true"})]}),Tt=jsx(Bd,{...J,...L,ref:ee,portal:{container:se,keepMounted:h||v},positioner:{ref:me,anchor:Be??void 0,positionMethod:"fixed",align:t,alignOffset:o,side:n,sideOffset:r,arrowPadding:a,collisionPadding:d,collisionBoundary:K??void 0,sticky:u==="always",collisionAvoidance:l?{side:"flip",align:"shift",fallbackAxisSide:"none"}:{side:"none",align:"none",fallbackAxisSide:"none"},style:i(({anchorHidden:ye})=>m&&ye?{visibility:"hidden",pointerEvents:"none"}:void 0,"style")},"data-monkeys-component":"popover","data-slot":"content","data-surface":"menu","data-state":k?"open":"closed",initialFocus:$?()=>Ld($,E,"Mount"):void 0,finalFocus:()=>(Ld(M,E,"Unmount")&&!O.current&&_&&queueMicrotask(()=>_.focus({preventScroll:true})),O.current=false,de.current=false,false),render:ge?he.cloneElement(ge,void 0,jsxs(Fragment,{children:[ge.props.children,Je]})):void 0,className:g?f:N("z-50 w-72 border p-4 outline-hidden",to("menu"),"data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",f),style:{...Db,...!g&&{pointerEvents:"auto"},...x},children:ge?void 0:jsxs(Fragment,{children:[y,Je]})});return jsx(DismissableLayer$1,{asChild:true,deferPointerDownOutside:true,onPointerDownOutside:ye=>{k&&R?.(ye);},onFocusOutside:ye=>{!k||ye.target?.hasAttribute("data-base-ui-focus-guard")||(P?.(ye),T&&ye.preventDefault());},onInteractOutside:ye=>{if(!k||ye.target?.hasAttribute("data-base-ui-focus-guard")||(F?.(ye),ye.defaultPrevented))return;let{originalEvent:pt}=ye.detail;!T&&(pt.type==="pointerdown"&&(de.current=true),_?.contains(ye.target)||pt.type==="focusin"&&de.current)||Y(pt);},children:Tt})},"PopoverContent"));function Wd({children:e,actions:t}){let o=useRef(false),[n,r]=useState(false),[a,l]=useState(false);return jsxs("span",{className:"agent-markdown-image","data-markdown-image":true,children:[t?.open?jsx(an,{unstyled:true,type:"button",className:"agent-markdown-image-open","aria-label":t.labels.open,onClick:s=>{s.preventDefault(),s.stopPropagation(),t.open?.();},children:e}):e,t&&jsxs("span",{className:"agent-markdown-image-actions",children:[t.collect&&jsx(an,{type:"button",variant:"outline",size:"icon",title:t.labels.collect,"aria-label":t.labels.collect,onClick:s=>{s.preventDefault(),s.stopPropagation(),t.collect?.();},children:jsx(FolderPlus,{"aria-hidden":"true"})}),t.download&&jsx(an,{type:"button",variant:"outline",size:"icon",disabled:n,title:t.labels.download,"aria-label":t.labels.download,onClick:async s=>{if(s.preventDefault(),s.stopPropagation(),!o.current){o.current=true,r(true),l(false);try{await t.download?.();}catch{l(true);}finally{o.current=false,r(false);}}},children:n?jsx(LoaderCircle,{"aria-hidden":"true",className:"animate-spin"}):jsx(Download,{"aria-hidden":"true"})}),t.edit&&jsx(an,{type:"button",variant:"outline",size:"icon",title:t.labels.edit,"aria-label":t.labels.edit,onClick:s=>{s.preventDefault(),s.stopPropagation(),t.edit?.();},children:jsx(SquarePen,{"aria-hidden":"true"})})]}),a&&jsx("span",{className:"agent-markdown-image-error",role:"alert",children:t?.labels.failed})]})}i(Wd,"AgentImageCard");var Xd=[],jr=createContext({text:"",sources:Xd}),Yd=createContext(false),Qd=i(e=>/^data:image\/(?:png|jpeg|gif|webp|avif);base64,[A-Za-z0-9+/]+={0,2}$/i.test(e),"embeddedImage"),Gb=i(e=>Qd(e)?e:defaultUrlTransform(e),"imageUrl");function qb(){return e=>{visit(e,"html",(t,o,n)=>{n&&o!==void 0&&/^<br\s*\/?\s*>$/i.test(t.value)&&n.children.splice(o,1,{type:"break",position:t.position});});}}i(qb,"remarkLineBreaks");var Wr=i((e,t,o)=>!/^(?:javascript|vbscript|data):/i.test(t.trim())&&e?.supports(t,o),"owns"),fa=i(e=>typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(fa).join(""):isValidElement(e)?fa(e.props.children):"","textOf"),Kb=i(({src:e,alt:t,title:o})=>{let{resources:n}=useContext(jr),r=useContext(Yd),a=e&&(Wr(n,e,"image")?e:Gb(e));return jsx(Wd,{actions:a&&!r?n?.imageActions?.({src:a,alt:t,title:o}):void 0,children:a&&Wr(n,a,"image")?n.image({src:a,alt:t,title:o}):jsx("img",{src:a||void 0,alt:t,title:o})})},"MarkdownImage"),Xb=i(({children:e,node:t})=>{let{text:o}=useContext(jr),n=t?.position?o.slice(t.position.start.offset,t.position.end.offset):void 0,r=typeof e=="string"&&n?.replace(/\s/g,"")===e.replace(/\s/g,"");return jsx("p",{children:r?n:e})},"MarkdownParagraph"),Yb=i(({href:e,children:t,title:o})=>{let{sources:n,resources:r}=useContext(jr),a=typeof t=="string"?t:jsx(Yd.Provider,{value:true,children:t});if(e&&Wr(r,e,"link"))return jsx(Fragment,{children:r.link({href:e,children:a,title:o})});let l=Id(n,e);if(!l)return jsx("a",{href:e,target:"_blank",rel:"noreferrer noopener",children:a});let s=fa(t).trim(),d=!s||s.replace(/\/+$/,"")===String(e??"").replace(/\/+$/,"");return jsxs(Fragment,{children:[d?null:jsxs(Fragment,{children:[a," "]}),jsx(Or,{source:l})]})},"MarkdownLink");function Zd({text:e,sources:t=Xd,resources:o,streaming:n=false}){let r=n?Nd(e,{linkMode:"text-only",katex:false}):e;return jsx(jr.Provider,{value:{text:r,sources:t,resources:o},children:jsx("div",{className:"streaming-markdown",children:jsx(Hb,{skipHtml:true,remarkPlugins:[Vb,Wb,qb],urlTransform:(a,l,s)=>l==="src"&&s.tagName==="img"&&Qd(a)||Wr(o,a,l==="src"?"image":"link")?a:defaultUrlTransform(a),components:{img:Kb,p:Xb,a:Yb,table:i(({children:a})=>jsx("div",{className:"streaming-table",children:jsx("table",{children:a})}),"table"),pre:i(({children:a})=>{if(!isValidElement(a))return jsx("pre",{children:a});let l=String(a.props.children??"").replace(/\n$/,""),s=a.props.className?.replace(/^language-/,"")??"";return jsx(Di,{filename:s,code:l,lines:l.split(`
|
|
238
|
+
`)})},"pre")},children:r})})})}i(Zd,"StreamingMarkdown");var Jb=[],ev=[],tv=[],ov=["copy","retry","up","down"],nv={continue:jsxs("g",{children:[jsx("circle",{cx:"12",cy:"18",r:"3"}),jsx("circle",{cx:"6",cy:"6",r:"3"}),jsx("circle",{cx:"18",cy:"6",r:"3"}),jsx("path",{d:"M18 9a6 6 0 0 1-6 6 6 6 0 0 1-6-6"})]},"continue"),copy:jsxs("g",{children:[jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2.5"}),jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]},"copy"),retry:jsx("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v6h-6"},"retry"),up:jsx("path",{d:"M7 10v12M15 5.88L14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88z"},"up"),down:jsx("path",{d:"M17 14V2M9 18.12L10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88z"},"down")},ec={copy:"Copy",retry:"Retry",up:"Like",down:"Dislike",continue:"Continue in new conversation"},rv={sources:"Sources",followUps:"Follow-ups"};function iv({text:e,format:t="text",content:o=Jb,sources:n=tv,followUps:r=ev,labels:a,streaming:l=false,responseComplete:s,onAction:d,actions:u=ov,disabledActions:m=[],fill:c=false,onDone:p,onFollowUp:h,resources:v}){let w=oe(),g=Te(rv,a),f=o.length,[x,y]=useState(false),$=!l,M=$&&(s??true);useEffect(()=>{M||y(false);},[M]);let C=useRef(p);return C.current=p,useEffect(()=>{$&&C.current?.();},[$]),jsx(U,{children:jsxs("div",{"data-bui-streaming-text":true,"data-streaming":l,className:c?"min-w-0 w-full":"min-h-[15.5rem] w-full max-w-95",children:[t==="markdown"&&e!==void 0?jsxs(Fragment,{children:[jsx(Zd,{text:e,sources:n,resources:v,streaming:l}),!$&&jsx("span",{"aria-hidden":true,className:"inline-block h-3 w-0.5 rounded-full bg-ink"})]}):jsxs("p",{className:"whitespace-pre-wrap [overflow-wrap:anywhere] text-[13px] leading-relaxed text-ink",children:[e??o.slice(0,f).map((R,P)=>R.cite?jsx(Or,{source:n[R.sourceIndex??0]},P):jsxs("span",{className:"inline",children:[R.text," "]},P)),!$&&jsx("span",{className:"ml-0.5 inline-block h-3 w-0.5 translate-y-0.5 rounded-full bg-ink",style:{animation:"bui-fade-in 150ms ease-out both"}})]}),M&&(d&&u.length>0||n.length>0)&&jsxs("div",{"data-bui-response-controls":true,className:"mt-2 flex items-center gap-0.5 text-ink-2",children:[d&&u.map(R=>jsx("button",{type:"button",disabled:!$||m.includes(R),"aria-label":w(ec[R]),title:w(ec[R]),"data-bui-action":R,onClick:()=>d?.(R),className:`flex size-6 items-center justify-center rounded-[var(--bui-radius-chip)] text-ink-2
|
|
239
|
+
transition-colors duration-100 hover:bg-hover-2`,children:jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:nv[R]})},R)),n.length>0&&jsxs("button",{"data-bui-response-sources":true,type:"button",disabled:!$,"aria-expanded":x,onClick:()=>y(R=>!R),className:"ml-1.5 flex items-center gap-1.5 rounded-[var(--bui-radius-chip)] px-1 py-0.5 text-left text-ink-2 transition-colors duration-150 hover:bg-hover",children:[jsx("span",{className:"flex -space-x-1",children:n.slice(0,3).map(R=>jsx(Fr,{source:R,className:"size-3.5 rounded-full bg-surface shadow-[0_0_0_1.5px_var(--bui-canvas)]"},R.href))}),jsx("span",{className:"text-[12px] text-ink-2",children:a?.sources??w("sourceCount",{count:n.length})})]})]}),M&&n.length>0&&jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-300",style:{gridTemplateRows:$&&x?"1fr":"0fr",opacity:$&&x?1:0,transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:jsx("div",{className:"overflow-hidden",children:jsx("div",{className:"mt-1.5 flex flex-col rounded-[10px] bg-inset p-1 shadow-hairline",children:n.map(R=>jsxs("a",{href:yo(R.href,"link"),target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 rounded-[6px] px-1.5 py-1 text-[12px] text-ink-2 transition-colors duration-150 hover:bg-hover",children:[jsx(Fr,{source:R,className:"size-4 rounded-[4px]"}),jsx("span",{className:"animated-underline",children:R.name}),jsx("span",{className:"ml-auto font-mono text-[10.5px] text-ink-2",children:R.domain})]},R.href))})})}),r.length>0&&jsxs("div",{"data-bui-follow-ups":true,className:"mt-2.5 transition-opacity duration-400",style:{opacity:$?1:0,pointerEvents:$?"auto":"none"},children:[jsx("p",{className:"text-[12px] font-medium text-ink-2",children:g.followUps}),jsx("div",{className:"mt-0.5 flex flex-col",children:r.map((R,P)=>jsxs("button",{type:"button",disabled:!$||!h,onClick:()=>h?.(R,P),className:`-mx-1.5 flex items-center gap-2 rounded-[var(--bui-radius-scale-7)]
|
|
240
240
|
px-1.5 py-1.5 text-left text-[12.5px] text-ink-2 transition-colors
|
|
241
|
-
duration-100 hover:bg-hover-2`,style:$?{animation:`bui-fade-up 350ms cubic-bezier(0.23,1,0.32,1) ${
|
|
242
|
-
${e==="red"?"bg-red":"bg-green"}`,style:{animation:"bui-pop-in 300ms cubic-bezier(0.23,1,0.32,1) both"},children:t})}i(nc,"Badge");var
|
|
243
|
-
transition-colors duration-100 hover:bg-hover-2`,children:[a?jsx("span",{className:"flex shrink-0 transition-colors duration-200",style:{color:$?"var(--bui-ink-2)":"var(--bui-ink-3)"},children:a}):jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:$?"var(--bui-ink-2)":"var(--bui-ink-3)",children:jsx("path",{d:"M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z"})}),jsx("span",{role:"status",className:"contents",children:$?jsx("span",{className:"bg-clip-text text-[13px] font-medium whitespace-nowrap text-transparent",style:{backgroundImage:"linear-gradient(90deg, var(--bui-ink-3) 35%, var(--bui-ink) 50%, var(--bui-ink-3) 65%)",backgroundSize:"200% 100%",animation:"bui-shimmer-text 1.4s linear infinite"},children:w.active}):jsx("span",{className:"text-[13px] font-medium whitespace-nowrap text-ink-2",style:{animation:"bui-fade-in 350ms ease-out both"},children:w.done})}),f&&jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-300",style:{transform:y?"rotate(180deg)":"rotate(0)"},children:jsx("path",{d:"M6 9l6 6 6-6"})})]}),jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-400",style:{gridTemplateRows:y?"1fr":"0fr",opacity:y?1:0,transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:jsx("div",{className:"overflow-hidden",children:jsxs("div",{className:"relative mt-1 ml-[5px] pl-4",children:[jsx("span",{"aria-hidden":true,className:"absolute left-[3px] w-px bg-line",style:{top:-8,height:
|
|
241
|
+
duration-100 hover:bg-hover-2`,style:$?{animation:`bui-fade-up 350ms cubic-bezier(0.23,1,0.32,1) ${P*90}ms both`}:{opacity:0},children:[jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0",children:[jsx("path",{d:"M9 10l-5 5 5 5"}),jsx("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})]}),R]},R))})]})]})})}i(iv,"BUIStreamingText");function oc({progress:e,capsule:t,children:o,className:n}){let[r,a]=useState(false),l=oe(),s=Jn(),d=typeof s.container=="function"?s.container():s.container,u=typeof HTMLElement<"u"&&d instanceof HTMLElement?d:void 0;return jsx(U,{children:jsx("div",{className:`bui-task-progress${n?` ${n}`:""}`,"data-bui-task-progress":true,children:jsxs(zd,{open:r,onOpenChange:a,children:[jsx(Fd,{asChild:true,children:jsxs(Me,{variant:"quiet",className:"bui-task-progress-trigger","data-status":e.status,"aria-label":e.summary,title:e.summary,children:[t,jsx(ChevronUp,{"aria-hidden":"true",className:"bui-task-progress-chevron","data-open":r})]})}),jsx(_d,{unstyled:true,container:u??(typeof document<"u"?document.fullscreenElement:null),side:"top",align:"center",avoidCollisions:false,style:{zIndex:50},"aria-label":l("taskProgressTitle"),onOpenAutoFocus:m=>m.preventDefault(),children:jsx(U,{portal:true,children:jsx("div",{className:"bui-task-progress-panel",children:o})})})]})})})}i(oc,"TaskProgress");function ha({active:e,children:t}){let a=2*Math.PI*11;return jsxs("span",{className:"relative inline-flex shrink-0 items-center justify-center",style:{width:24,height:24},children:[jsxs("svg",{width:24,height:24,className:"absolute inset-0",style:e?{animation:"bui-spin 1.1s linear infinite"}:void 0,children:[jsx("circle",{cx:24/2,cy:24/2,r:11,fill:"none",stroke:"var(--bui-line)",strokeWidth:2}),e&&jsx("circle",{cx:24/2,cy:24/2,r:11,fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:2,strokeLinecap:"round",strokeDasharray:`${a*.28} ${a*.72}`})]}),jsx("span",{className:"relative text-[10.5px] font-semibold tabular-nums text-ink",children:t})]})}i(ha,"SpinnerRing");function nc({tone:e,children:t}){return jsx("span",{className:`flex size-5.5 shrink-0 items-center justify-center rounded-full text-white
|
|
242
|
+
${e==="red"?"bg-red":"bg-green"}`,style:{animation:"bui-pop-in 300ms cubic-bezier(0.23,1,0.32,1) both"},children:t})}i(nc,"Badge");var cv=jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",children:jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),uv=jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M20 6L9 17l-5-5"})}),pv=jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v6h-6"})}),mv={completed:"Completed",failed:"Failed"},gv=[];function ba({variant:e="Capsules",rows:t=gv,labels:o,className:n,onToggleRow:r,progress:a}){let[l,s]=useState({}),d=Te(mv,o),u=oe();if(e==="Progress"&&a){let h=t[a.current-1];if(!h)return null;let v={...h,label:u("taskProgressCurrent",{current:a.current,total:t.length,title:h.label}),status:a.status==="completed"?"done":a.status,step:a.current,details:[]};return jsx(oc,{progress:a,className:n,capsule:jsx(ba,{variant:"Capsules",rows:[v],labels:o}),children:jsx(ba,{variant:"List",rows:t.map((w,g)=>({...w,step:w.step??g+1})),labels:o})})}let m=i(h=>h.status==="done"?jsx(nc,{tone:"green",children:uv}):h.status==="running"?jsx(ha,{active:true,children:h.step}):h.status==="pending"?jsx(ha,{children:h.step}):h.status==="failed"?jsx(nc,{tone:"red",children:cv}):jsx(ha,{children:h.step}),"badgeFor"),c=i(h=>h.status==="done"?jsx("span",{className:"inline-flex h-5.5 items-center rounded-chip bg-green-tint px-2 text-[11.5px] font-medium text-green",children:d.completed}):h.status==="stopped"||h.status==="skipped"?jsx("span",{className:"inline-flex h-5.5 items-center rounded-chip bg-inset px-2 text-[11.5px] font-medium text-ink-2",children:u(`taskProgressStatus.${h.status}`)}):h.status==="running"?null:h.status==="failed"?jsxs("span",{className:"inline-flex h-5.5 items-center gap-1.5 rounded-chip bg-red-tint px-2 text-[11.5px] font-medium text-red",style:{animation:"bui-fade-in 200ms ease-out both"},children:[d.failed," ",jsx("span",{style:{animation:"bui-spin 1.2s linear infinite"},className:"flex",children:pv})]}):null,"pillFor"),p=e==="List";return jsx(U,{children:jsx("div",{"data-bui-task-rows":true,"data-variant":p?"List":"Capsules",role:"list",className:`flex w-full max-w-110 flex-col ${p?"gap-0 self-start overflow-hidden rounded-card bg-surface shadow-card":"min-h-[196px] gap-2"}${n?` ${n}`:""}`,children:t.map((h,v)=>{let w=h.details.length>0,g=w?"button":"div",f=w&&(l[h.key]??false);return jsxs("div",{role:"listitem","data-status":h.status,className:`self-stretch overflow-hidden transition-[border-radius,background-color] duration-300 hover:bg-inset ${p?"border-b border-line last:border-0":"bg-surface shadow-card"}`,style:{borderRadius:p?0:"var(--bui-token-radius-card, var(--bui-radius-card))",animation:`bui-fade-up 450ms cubic-bezier(0.23,1,0.32,1) ${v*80}ms both`},children:[jsxs(g,{type:w?"button":void 0,"aria-expanded":w?f:void 0,onClick:w?()=>{s(x=>({...x,[h.key]:!f})),r?.(h.key,!f);}:void 0,className:"flex min-h-11 w-full items-center gap-2.5 px-2.5 py-2 text-left",children:[jsx("span",{className:"flex size-6 shrink-0 items-center justify-center",children:m(h)}),jsx("span",{"data-bui-task-label":true,className:"min-w-0 flex-1 [overflow-wrap:anywhere] text-[13px] font-medium text-ink",children:h.label}),jsx("span",{className:"text-[12.5px] text-ink-2 tabular-nums",children:h.amount}),c(h),w&&jsx("span",{"aria-hidden":"true",className:"-ml-2 flex size-7 shrink-0 items-center justify-center rounded-full text-ink-3",children:jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-300",style:{transform:f?"rotate(180deg)":"rotate(0)"},children:jsx("path",{d:"M6 9l6 6 6-6"})})})]}),jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-300",style:{gridTemplateRows:f?"1fr":"0fr",opacity:f?1:0,transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:jsx("div",{className:"overflow-hidden",children:jsxs("div",{className:"mb-2.5 grid grid-cols-[24px_1fr] gap-2.5 px-2.5",children:[jsx("span",{"aria-hidden":true,className:"mx-auto h-full w-px bg-line"}),jsx("div",{className:"flex flex-col gap-1.5",children:h.details.map((x,y)=>jsxs("div",{className:"flex items-center justify-between",style:f?{animation:`bui-fade-up 300ms cubic-bezier(0.23,1,0.32,1) ${120+y*100}ms both`}:void 0,children:[jsx("span",{className:"text-[12px] text-ink-2",children:x.label}),jsx("span",{className:"font-mono text-[11.5px] text-ink-3 tabular-nums",children:x.meta})]},x.label))})]})})})]},h.key)})})})}i(ba,"BUITaskRows");function bv({tone:e}){return jsx("span",{className:`flex size-3.5 shrink-0 items-center justify-center rounded-full text-white ${e}`,children:jsxs("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[jsx("circle",{cx:"12",cy:"12",r:"9"}),jsx("path",{d:"M3.5 12h17M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"})]})})}i(bv,"Dot");var vv=["bg-accent","bg-orange","bg-green"];function yv({variant:e="Steps",onSettled:t,rows:o,active:n,done:r,icon:a,status:l="running",query:s}){let d=oe(),u=l==="running"?2:4,[m,c]=useState(null),[p,h]=useState(null),v={rows:[],active:d("Thinking"),done:d("Thought complete"),query:s},w={...v,rows:o??v.rows,active:n??v.active,done:r??v.done},g=u>=1&&u<4,f=w.rows.length>0||!!w.query,x=f?"button":"div",y=f&&(m??g),$=u<3,M=u<2?0:w.rows.length,C=useRef(null),[R,P]=useState(0);useLayoutEffect(()=>{C.current&&P(C.current.offsetHeight);},[M,y,e,u]);let F=useRef(false);return useEffect(()=>{if($){F.current=false;return}F.current||(F.current=true,t?.());},[$,t]),jsx(U,{children:jsxs("div",{"data-bui-thinking":true,className:"flex w-full max-w-95 flex-col",style:{minHeight:$||y?"var(--bui-activity-min-height, 176px)":void 0,transition:"min-height 400ms cubic-bezier(0.23,1,0.32,1)"},children:[jsxs(x,{type:f?"button":void 0,"aria-expanded":f?y:void 0,onClick:f?()=>c(L=>!(L??g)):void 0,className:`-mx-1.5 flex w-fit items-center gap-2 rounded-control px-1.5 py-1
|
|
243
|
+
transition-colors duration-100 hover:bg-hover-2`,children:[a?jsx("span",{className:"flex shrink-0 transition-colors duration-200",style:{color:$?"var(--bui-ink-2)":"var(--bui-ink-3)"},children:a}):jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:$?"var(--bui-ink-2)":"var(--bui-ink-3)",children:jsx("path",{d:"M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z"})}),jsx("span",{role:"status",className:"contents",children:$?jsx("span",{className:"bg-clip-text text-[13px] font-medium whitespace-nowrap text-transparent",style:{backgroundImage:"linear-gradient(90deg, var(--bui-ink-3) 35%, var(--bui-ink) 50%, var(--bui-ink-3) 65%)",backgroundSize:"200% 100%",animation:"bui-shimmer-text 1.4s linear infinite"},children:w.active}):jsx("span",{className:"text-[13px] font-medium whitespace-nowrap text-ink-2",style:{animation:"bui-fade-in 350ms ease-out both"},children:w.done})}),f&&jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-300",style:{transform:y?"rotate(180deg)":"rotate(0)"},children:jsx("path",{d:"M6 9l6 6 6-6"})})]}),jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-400",style:{gridTemplateRows:y?"1fr":"0fr",opacity:y?1:0,transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:jsx("div",{className:"overflow-hidden",children:jsxs("div",{className:"relative mt-1 ml-[5px] pl-4",children:[jsx("span",{"aria-hidden":true,className:"absolute left-[3px] w-px bg-line",style:{top:-8,height:R?R-2:0,transition:"height 500ms cubic-bezier(0.23,1,0.32,1)"}}),jsxs("div",{ref:C,className:"flex flex-col gap-1 py-1",children:[w.query&&jsxs("div",{className:"flex h-6 items-center gap-2 px-1.5",style:{animation:y?"bui-fade-up 300ms cubic-bezier(0.23,1,0.32,1) both":void 0},children:[jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2",strokeLinecap:"round",className:"shrink-0",children:[jsx("circle",{cx:"11",cy:"11",r:"7"}),jsx("path",{d:"M21 21l-4.3-4.3"})]}),jsx("span",{className:"text-[12.5px] text-ink-2",children:w.query})]}),w.rows.slice(0,M).map((L,B)=>{let k=jsxs(Fragment,{children:[e==="Search"&&jsx(bv,{tone:vv[B%3]}),e==="Steps"&&(B<M-1||!$?jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--bui-ink-3)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0",children:jsx("path",{d:"M20 6L9 17l-5-5"})}):jsx("span",{className:"size-3 shrink-0 rounded-full border-[1.5px] border-line-strong border-t-ink-2",style:{animation:"bui-spin 700ms linear infinite"}})),jsx("span",{className:`min-w-0 text-[12.5px] ${e==="Reasoning"?"whitespace-pre-wrap [overflow-wrap:anywhere] leading-relaxed text-ink-2":"font-medium text-ink"} ${e==="Search"?"animated-underline":""}`,children:L.primary}),L.secondary&&jsx("span",{className:`shrink-0 text-[11.5px] text-ink-3 ${L.mono?"font-mono":""}`,children:L.secondary}),L.add!==void 0&&jsxs("span",{className:"shrink-0 font-mono text-[11px] tabular-nums",children:[jsxs("span",{className:"text-green",children:["+",L.add]})," ",jsxs("span",{className:"text-red",children:["\u2212",L.del]})]})]}),T="flex min-h-7 w-full items-center gap-2 rounded-[6px] px-1.5 py-0.5 text-left",D={animation:`bui-fade-up 320ms cubic-bezier(0.23,1,0.32,1) ${B*120}ms both`};if(e==="Search")return jsx("a",{href:yo(L.href,"link"),target:"_blank",rel:"noreferrer",className:`${T} transition-colors duration-150 hover:bg-hover`,style:D,children:k},L.primary);if(e==="Coding"){let _=p===L.primary;return jsx("button",{type:"button","aria-pressed":_,onClick:()=>h(_?null:L.primary),className:`${T} transition-colors duration-150 ${_?"bg-inset":"hover:bg-hover"}`,style:D,children:k},L.primary)}return jsx("div",{className:T,style:D,children:k},L.primary)}),e==="Search"&&u>=3&&jsx("span",{className:"text-[12px] text-ink-3",style:{animation:"bui-fade-in 300ms ease-out both"},children:d("More")})]})]})})})]},e)})}i(yv,"BUIThinkingState");var wv={think:jsx("path",{d:"M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z"}),write:jsx("g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M17 3a2.8 2.8 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5z"})}),run:jsx("g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsx("path",{d:"M4 17l6-5-6-5M12 19h8"})}),read:jsxs("g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsx("path",{d:"M14 2v6h6"})]})},kv={header:"Tool calls",more:"More"},$v=[],Sv=[],Cv={};function Tv({steps:e=$v,diffs:t=Sv,diffLines:o=Cv,labels:n,className:r,onOpenChange:a,onToggleRow:l}){let s=Te(kv,n),d=e.length+1,[u,m]=useState(true),[c,p]=useState(new Set),[h,v]=useState(null),w=i(y=>$=>{let M=$.currentTarget.closest("[data-diffchip]").getBoundingClientRect(),C=38+(o[y]?.length??0)*19,R=M.bottom+6+C<=window.innerHeight-12;v({file:y,x:Math.max(12,Math.min(M.left,window.innerWidth-300)),...R?{top:M.bottom+6}:{bottom:window.innerHeight-M.top+6}});},"openPreview"),g=i(y=>()=>v($=>$?.file===y?null:$),"closePreview"),f=e.length+1,x=i(y=>p($=>{let M=new Set($);return M.has(y)?M.delete(y):M.add(y),l?.(y,M.has(y)),M}),"toggleRow");return jsx(U,{children:jsxs("div",{"data-bui-tool-chips":true,className:`min-h-[var(--bui-activity-min-height,220px)] w-full max-w-80 pb-1${r?` ${r}`:""}`,children:[jsxs("button",{type:"button","aria-expanded":u,onClick:()=>m(y=>(a?.(!y),!y)),className:"-mx-1.5 flex w-fit items-center gap-1.5 rounded-control px-1.5 py-1 text-[12.5px] text-ink-2 transition-colors duration-100 hover:bg-hover-2",children:[jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform duration-200",style:{transform:u?"rotate(0deg)":"rotate(-90deg)"},children:jsx("path",{d:"M6 9l6 6 6-6"})}),jsx("span",{className:"tabular-nums",children:s.header})]}),jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-300",style:{gridTemplateRows:u?"1fr":"0fr",opacity:u?1:0},children:jsxs("div",{className:"-mx-1 overflow-hidden px-1.5 pb-1",children:[jsx("div",{className:"mt-1.5 flex flex-col gap-1",children:e.slice(0,d).map(y=>{let $=c.has(y.label);return jsxs("div",{style:{animation:"bui-fade-up 300ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxs("button",{type:"button","aria-expanded":$,onClick:()=>x(y.label),className:"group/row -mx-[3px] flex min-h-7 w-[calc(100%+6px)] min-w-0 items-start gap-2 rounded-control px-[3px] text-left transition-colors duration-100 hover:bg-hover-2",children:[jsxs("span",{className:"relative flex size-4 shrink-0 items-center justify-center text-ink-3",children:[jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:y.icon==="think"?"currentColor":"none",stroke:"currentColor",className:`transition-opacity duration-100 group-hover/row:opacity-0 ${$?"opacity-0":""}`,children:wv[y.icon]}),jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",className:`absolute transition-[opacity,transform] duration-150 group-hover/row:opacity-100 ${$?"opacity-100":"opacity-0"}`,style:{transform:$?"rotate(0deg)":"rotate(-90deg)"},children:jsx("path",{d:"M6 9l6 6 6-6"})})]}),jsx("span",{className:"min-w-0 flex-1 whitespace-pre-wrap [overflow-wrap:anywhere] text-[12.5px] font-medium text-ink",children:y.label}),jsx("span",{className:`inline-flex h-5.5 shrink-0 items-center whitespace-nowrap rounded-chip bg-field px-1.5
|
|
244
244
|
text-[11.5px] text-ink-2 shadow-hairline transition-colors duration-100 hover:bg-hover-2
|
|
245
|
-
${y.mono?"font-mono":""}`,children:y.chip})]}),jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-300",style:{gridTemplateRows:$?"1fr":"0fr",opacity:$?1:0,transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:jsx("div",{className:"min-h-0 overflow-hidden",children:jsx("div",{className:"mt-0.5 mb-1 ml-2 flex flex-col gap-0.5 border-l border-line py-0.5 pl-3.5",children:y.detail.map(
|
|
245
|
+
${y.mono?"font-mono":""}`,children:y.chip})]}),jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-300",style:{gridTemplateRows:$?"1fr":"0fr",opacity:$?1:0,transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:jsx("div",{className:"min-h-0 overflow-hidden",children:jsx("div",{className:"mt-0.5 mb-1 ml-2 flex flex-col gap-0.5 border-l border-line py-0.5 pl-3.5",children:y.detail.map(M=>jsx("span",{className:`whitespace-pre-wrap [overflow-wrap:anywhere] text-[11.5px] leading-[1.6] ${y.detailMono?"font-mono":""} ${M.tone==="add"?"text-green":"text-ink-2"}`,children:M.text},M.text))})})})]},y.label)})}),t.length>0&&d>=f&&jsx("div",{className:"mt-2.5 flex max-w-full flex-wrap gap-1.5 border-t border-line pt-2.5",children:t.map((y,$)=>jsx("span",{"data-diffchip":true,className:"relative",onMouseEnter:w(y.file),onMouseLeave:g(y.file),children:jsxs("button",{type:"button","aria-expanded":h?.file===y.file,"aria-label":`Show diff for ${y.file}`,onFocus:w(y.file),onBlur:g(y.file),className:`inline-flex h-7 max-w-full items-center gap-2 rounded-chip
|
|
246
246
|
bg-surface px-2 font-mono text-[11.5px] text-ink shadow-btn
|
|
247
|
-
transition-colors duration-100 hover:bg-hover`,style:{animation:`bui-pop-in 250ms cubic-bezier(0.23,1,0.32,1) ${$*80}ms both`},children:[jsx("span",{className:"min-w-0 truncate",children:y.file}),jsxs("span",{className:"shrink-0 text-green tabular-nums",children:["+",y.add]}),y.del>0&&jsxs("span",{className:"shrink-0 text-red tabular-nums",children:["\u2212",y.del]})]})},y.file))})]})}),h&&typeof document<"u"&&
|
|
247
|
+
transition-colors duration-100 hover:bg-hover`,style:{animation:`bui-pop-in 250ms cubic-bezier(0.23,1,0.32,1) ${$*80}ms both`},children:[jsx("span",{className:"min-w-0 truncate",children:y.file}),jsxs("span",{className:"shrink-0 text-green tabular-nums",children:["+",y.add]}),y.del>0&&jsxs("span",{className:"shrink-0 text-red tabular-nums",children:["\u2212",y.del]})]})},y.file))})]})}),h&&typeof document<"u"&&Oo(jsxs("div",{className:"fixed z-50 w-72 overflow-hidden rounded-[10px] bg-surface shadow-overlay",style:{left:h.x,top:h.top,bottom:h.bottom,animation:"bui-pop-in 160ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:h.top===void 0?"bottom left":"top left"},children:[jsxs("div",{className:"flex items-center justify-between border-b border-line px-2.5 py-1.5 font-mono text-[11px]",children:[jsx("span",{className:"min-w-0 truncate text-ink-2",children:h.file}),jsxs("span",{className:"shrink-0 tabular-nums",children:[jsxs("span",{className:"text-green",children:["+",t.find(y=>y.file===h.file)?.add]}),(t.find(y=>y.file===h.file)?.del??0)>0&&jsxs("span",{className:"text-red",children:[" \u2212",t.find(y=>y.file===h.file)?.del]})]})]}),jsx("div",{className:"py-1 font-mono text-[11px] leading-[1.8]",children:(o[h.file]??[]).map((y,$)=>jsxs("div",{className:`flex gap-2 px-2.5 whitespace-pre ${y.tone==="add"?"bg-green-tint text-green":y.tone==="del"?"bg-red-tint text-red":"text-ink-2"}`,children:[jsx("span",{className:"w-3 shrink-0 select-none",children:y.tone==="add"?"+":y.tone==="del"?"\u2212":" "}),jsx("span",{className:"min-w-0 truncate",children:y.text})]},$))})]}),document.body)]})})}i(Tv,"BUIToolChips");var ic={recommended:"Recommended",send:"Send answer",sending:"Sending",answerPlaceholder:"Your answer",autoSendIn:"Sending recommended answers in {seconds}s",sent:"Answer sent",error:"Answer could not be sent",pending:"Answer is being processed",cancel:"Cancel question",cancelling:"Cancelling",cancelled:"Question cancelled"};function Iv({questions:e,mode:t="blocking",deadlineAt:o,submitted:n=false,cancelled:r=false,pending:a=false,externalError:l=false,locked:s=false,initialAnswers:d,labels:u,onSubmitted:m,onCancelled:c}){let p=oe(),h=Te(ic,u),[v,w]=useState(()=>d??{}),[g,f]=useState(0),[x,y]=useState(0),$=useRef(null),M=useRef(false),C=Math.min(x,Math.max(0,e.length-1)),R=e[C],[P,F]=useState(()=>r?"cancelled":n?"submitted":a?"submitting":l?"error":"idle"),L=useRef(v),B=useRef(false),k=useRef(m),T=useRef(c);L.current=v,k.current=m,T.current=c;let D=P==="submitted"||P==="cancelled",_=P==="submitting"||P==="cancelling",Z=s||_||D,O=!!(t==="asynchronous"&&e.length>0&&e.every(I=>I.options?.length)&&o&&Number.isFinite(Date.parse(o))),J=e.length>0&&e.every(I=>!!v[I.id]?.trim()),E=C<e.length-1,te=!Z&&(E?!!v[R.id]?.trim():J),ee=useCallback(async(I,j=false)=>{if(!(B.current||s||a||n||r||D)&&!(j&&!T.current)){B.current=true,F(j?"cancelling":"submitting");try{j?await T.current():await k.current(I),F(j?"cancelled":"submitted");}catch{F("error");}finally{B.current=false;}}},[s,a,n,r,D]),me=i((I=false)=>{te&&(E?(M.current=I,y(C+1)):ee(L.current));},"advanceOrSubmit");useEffect(()=>{if(!M.current)return;M.current=false;let I=$.current;(I?.querySelector("input:not(:disabled)")??I?.querySelector('[role="radio"]:not(:disabled)'))?.focus();},[C]),useEffect(()=>{if(!O||!o||D)return;let I=Date.parse(o),j=i(()=>{let W=Math.max(0,I-Date.now());f(Math.ceil(W/1e3));},"update"),A=setInterval(j,250);return j(),()=>clearInterval(A)},[O,o,D]),useEffect(()=>{d&&(L.current=d,w(d));},[d]),useEffect(()=>{F(r?"cancelled":n?"submitted":a?"submitting":l?"error":I=>["submitting","submitted","cancelling","cancelled"].includes(I)?"idle":I);},[n,r,a,l]);let de=i((I,j)=>{Z||(w(A=>{let W={...A,[I]:j};return L.current=W,W}),P==="error"&&F("idle"));},"updateAnswer");return e.length?jsx(U,{children:jsxs("section",{className:"bui-question-card w-full max-w-95 overflow-hidden rounded-card shadow-card","aria-label":p("questionPanel"),children:[jsxs("header",{className:"bui-question-header flex items-center justify-between gap-2 px-4 pt-3",children:[jsxs("span",{className:"flex items-center gap-2 text-sm",children:[jsx(MessageCircleQuestion,{size:16,"aria-hidden":"true"}),p("questionPanel")]}),e.length>1&&jsxs("nav",{className:"flex items-center gap-2","aria-label":p("questionNavigation"),children:[jsx(Me,{type:"button",variant:"quiet",size:"sm","aria-label":p("Previous question"),disabled:C===0||_,onClick:()=>y(C-1),children:jsx(ChevronLeft,{size:16,"aria-hidden":"true"})}),jsx("span",{className:"text-xs","aria-live":"polite",children:p("questionPosition",{current:C+1,total:e.length})}),jsx(Me,{type:"button",variant:"quiet",size:"sm","aria-label":p("Next question"),disabled:C===e.length-1||_,onClick:()=>y(C+1),children:jsx(ChevronRight,{size:16,"aria-hidden":"true"})})]})]}),jsx("div",{className:"primitive-card-pad flex flex-col gap-4",children:[R].map(I=>{let j=I.options??[],A=I.allowCustom!==false||j.length===0;return jsxs("fieldset",{ref:$,className:"min-w-0",children:[jsx("legend",{className:"bui-question-title mb-2 text-[14px] font-medium",children:I.title}),jsx("div",{className:"flex flex-col gap-1",role:"radiogroup","aria-label":I.title,children:j.map((W,ae)=>{let se=v[I.id]===W;return jsxs(Me,{type:"button",variant:"quiet",size:"sm",role:"radio","aria-checked":se,disabled:Z,onClick:()=>de(I.id,W),className:"bui-question-option flex h-auto min-h-9 w-full justify-start gap-2 rounded-control px-2 py-1 text-left text-sm transition-colors disabled:opacity-60",children:[jsx("span",{className:"bui-question-option-marker flex size-4 shrink-0 items-center justify-center rounded-full","data-selected":se?"true":void 0,children:se?jsx("span",{className:"bui-question-option-mark size-1.5 rounded-full"}):null}),jsx("span",{className:"bui-question-option-label min-w-0 flex-1 break-words",children:W}),t==="asynchronous"&&ae===0&&jsx("span",{className:"bui-question-recommended shrink-0 rounded-control px-1.5 py-0.5 text-[11px] font-medium",children:h.recommended})]},`${I.id}:${ae}`)})}),A&&jsx(Un,{unstyled:true,type:I.customInputType??"text","aria-label":I.title,placeholder:p(h.answerPlaceholder),disabled:Z,value:j.includes(v[I.id])?"":v[I.id]??"",onChange:W=>de(I.id,W.target.value),onKeyDown:W=>{W.key!=="Enter"||W.nativeEvent.isComposing||W.keyCode===229||W.repeat||W.shiftKey||W.ctrlKey||W.metaKey||W.altKey||(W.preventDefault(),W.stopPropagation(),me(true));},className:"bui-question-custom-answer mt-2 min-h-9 w-full rounded-control px-2.5 text-sm outline-none focus-visible:ring-2"})]},I.id)})}),jsxs("div",{className:"primitive-card-footer flex flex-wrap items-center justify-between gap-2",children:[jsx("div",{className:"bui-question-status min-h-5 text-[12px]","data-error":P==="error"?"true":void 0,role:P==="error"?"alert":"status","aria-live":"polite",children:P==="cancelled"?h.cancelled:P==="cancelling"?h.cancelling:P==="submitted"?h.sent:P==="submitting"?h.pending:P==="error"?h.error:O?h.autoSendIn.replace("{seconds}",String(g)):""}),!D&&jsxs("div",{className:"flex items-center gap-2",children:[c&&jsx(Me,{size:"sm",variant:"quiet",disabled:s||_,onClick:()=>{ee(L.current,true);},children:h.cancel}),jsx(Me,{type:"button",size:"sm",variant:"accent",disabled:!te,onClick:()=>me(),children:P==="submitting"?h.sending:C<e.length-1?p("Next question"):h.send})]})]})]})}):null}i(Iv,"BUIQuestionCard");
|
|
248
248
|
|
|
249
|
-
export { ou as BUIAgentScreen, cu as BUIApprovalCard, Me as BUIButton, Hp as BUIChatComposer, Mc as BUIChip, Di as BUICodeBlock, am as BUIContextCards, um as BUIDiffTable, Ic as BUIEntityChip, vm as BUIFilterTable, Rm as BUIFineTuneCard, zi as BUIFlowNode, Fm as BUIFlowchart,
|
|
249
|
+
export { ou as BUIAgentScreen, cu as BUIApprovalCard, Me as BUIButton, Hp as BUIChatComposer, Mc as BUIChip, Di as BUICodeBlock, am as BUIContextCards, um as BUIDiffTable, Ic as BUIEntityChip, vm as BUIFilterTable, Rm as BUIFineTuneCard, zi as BUIFlowNode, Fm as BUIFlowchart, et as BUIGlideMenu, Jm as BUIInsightCards, Bi as BUILoadingState, Fa as BUIMonogram, Ac as BUIProgressRing, Ni as BUIPromptBar, Iv as BUIQuestionCard, rg as BUIQuickPromptMenu, sg as BUIRecommendationCard, pg as BUIRecordsTable, hg as BUISearchList, Ec as BUISegmentedControl, Bg as BUISelectionActions, ni as BUIShimmer, vh as BUISidebarNav, Fc as BUIStatusPill, ii as BUIStreamText, iv as BUIStreamingText, Wc as BUISwitch, ba as BUITaskRows, jc as BUITextRow, yv as BUIThinkingState, Tv as BUIToolChips, qc as BUIValuePill, ic as DEFAULT_QUESTION_CARD_LABELS, za as buiButtonVariants, Ui as getBUIFlowConnection };
|
|
250
250
|
//# sourceMappingURL=index.mjs.map
|
|
251
251
|
//# sourceMappingURL=index.mjs.map
|