@inf-monkeys-tech/monkeys-design 2.0.392 → 2.0.394
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 +43 -4
- package/dist/components/beautiful/index.js +50 -50
- package/dist/components/beautiful/index.js.map +1 -1
- package/dist/components/beautiful/index.mjs +44 -44
- package/dist/components/beautiful/index.mjs.map +1 -1
- package/dist/sources/{ab3a463e54918595b79681a411c9f8e5043333b5b3b7bdd2b93f6aaf5dc9f8ff.tsx → 6047804965b5f3ae2df2d223dcdf2059cbae24d3933b2cdc5b5b0965249eef37.tsx} +25 -18
- package/dist/styles/agent-conversation.css +10 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -15,20 +15,20 @@ require('@radix-ui/react-tabs');
|
|
|
15
15
|
require('@radix-ui/react-toggle-group');
|
|
16
16
|
var Pe = require('@radix-ui/react-dropdown-menu');
|
|
17
17
|
var runtime = require('@inf-monkeys-tech/monkeys/runtime');
|
|
18
|
-
var
|
|
18
|
+
var zo = require('@radix-ui/react-tooltip');
|
|
19
19
|
var liveline = require('liveline');
|
|
20
20
|
var mo = require('@radix-ui/react-popover');
|
|
21
21
|
var iconoirReact = require('iconoir-react');
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
22
|
+
var He = require('@radix-ui/react-dialog');
|
|
23
|
+
var Ke = require('@radix-ui/react-alert-dialog');
|
|
24
|
+
var no = require('@radix-ui/react-accordion');
|
|
25
25
|
var Br = require('@radix-ui/react-checkbox');
|
|
26
|
-
var
|
|
26
|
+
var Xt = require('@radix-ui/react-scroll-area');
|
|
27
27
|
var reactSlot = require('@radix-ui/react-slot');
|
|
28
28
|
var button = require('@base-ui/react/button');
|
|
29
29
|
var directionProvider = require('@base-ui/react/direction-provider');
|
|
30
30
|
var tabs = require('@base-ui/react/tabs');
|
|
31
|
-
var
|
|
31
|
+
var _b = require('react-markdown');
|
|
32
32
|
var Vb = require('remark-gfm');
|
|
33
33
|
var Wb = require('remark-cjk-friendly');
|
|
34
34
|
var unistUtilVisit = require('unist-util-visit');
|
|
@@ -61,18 +61,18 @@ var he__namespace = /*#__PURE__*/_interopNamespace(he);
|
|
|
61
61
|
var ir__namespace = /*#__PURE__*/_interopNamespace(ir);
|
|
62
62
|
var Re__namespace = /*#__PURE__*/_interopNamespace(Re);
|
|
63
63
|
var Pe__namespace = /*#__PURE__*/_interopNamespace(Pe);
|
|
64
|
-
var
|
|
64
|
+
var zo__namespace = /*#__PURE__*/_interopNamespace(zo);
|
|
65
65
|
var mo__namespace = /*#__PURE__*/_interopNamespace(mo);
|
|
66
|
-
var
|
|
67
|
-
var
|
|
68
|
-
var
|
|
66
|
+
var He__namespace = /*#__PURE__*/_interopNamespace(He);
|
|
67
|
+
var Ke__namespace = /*#__PURE__*/_interopNamespace(Ke);
|
|
68
|
+
var no__namespace = /*#__PURE__*/_interopNamespace(no);
|
|
69
69
|
var Br__namespace = /*#__PURE__*/_interopNamespace(Br);
|
|
70
|
-
var
|
|
71
|
-
var
|
|
70
|
+
var Xt__namespace = /*#__PURE__*/_interopNamespace(Xt);
|
|
71
|
+
var _b__default = /*#__PURE__*/_interopDefault(_b);
|
|
72
72
|
var Vb__default = /*#__PURE__*/_interopDefault(Vb);
|
|
73
73
|
var Wb__default = /*#__PURE__*/_interopDefault(Wb);
|
|
74
74
|
|
|
75
|
-
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=>themeSystem.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=he.createContext(null);function Ea(){return he.useContext(Jr)?.dark??false}i(Ea,"useBUIDark");function U({children:e,portal:t=false}){let o=he.useContext(Jr),n=provider.useMonkeysResolvedTheme(),r=he.useMemo(()=>Ba(n),[n]),a=he.useRef(null),[l,s]=he.useState(false);he.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?jsxRuntime.jsx(jsxRuntime.Fragment,{children:e}):jsxRuntime.jsx(Jr.Provider,{value:{dark:d,theme:n},children:jsxRuntime.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
|
|
75
|
+
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=>themeSystem.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=he.createContext(null);function Ea(){return he.useContext(Jr)?.dark??false}i(Ea,"useBUIDark");function U({children:e,portal:t=false}){let o=he.useContext(Jr),n=provider.useMonkeysResolvedTheme(),r=he.useMemo(()=>Ba(n),[n]),a=he.useRef(null),[l,s]=he.useState(false);he.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?jsxRuntime.jsx(jsxRuntime.Fragment,{children:e}):jsxRuntime.jsx(Jr.Provider,{value:{dark:d,theme:n},children:jsxRuntime.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 Ho(e,t,o){return jsxRuntime.jsx(Sc,{container:t,portalKey:o,children:e})}i(Ho,"beautifulPortal");function Sc({children:e,container:t,portalKey:o}){let n=provider.useMonkeysPortalOptions(),r=typeof n.container=="function"?n.container():n.container,a=jsxRuntime.jsx(U,{portal:true,children:e});return n.disabled?a:reactDom.createPortal(a,r??t,o)}i(Sc,"BUIPortal");function gn(...e){return tailwindMerge.twMerge(clsx.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=classVarianceAuthority.cva(`inline-flex items-center justify-center font-medium select-none
|
|
76
76
|
transition-[transform,background-color,opacity] duration-150 ease-out
|
|
77
77
|
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=he.forwardRef(i(function({variant:t,size:o,className:n,...r},a){return jsxRuntime.jsx(U,{children:jsxRuntime.jsx("button",{ref:a,className:gn(za({variant:t,size:o}),n),...r})})},"BUIButton"));function Mc({children:e,tone:t="neutral",className:o=""}){return jsxRuntime.jsx(U,{children:jsxRuntime.jsx("code",{className:`inline rounded-md px-1.5 py-0.5 font-mono text-[12px]
|
|
78
78
|
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 jsxRuntime.jsx(U,{children:jsxRuntime.jsx("span",{className:`flex size-4 shrink-0 items-center justify-center rounded-full
|
|
@@ -83,9 +83,9 @@ var uc=Object.defineProperty;var i=(e,t)=>uc(e,"name",{value:t,configurable:true
|
|
|
83
83
|
${a===t?"text-ink":"text-ink-3 hover:text-ink-2"}`,children:a},a))]})})}i(Ec,"BUISegmentedControl");function ni({children:e,className:t=""}){return jsxRuntime.jsx(U,{children:jsxRuntime.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=classVarianceAuthority.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 jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("span",{className:gn(zc({tone:e}),n),children:[o&&jsxRuntime.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]=he.useState(0),m=he.useRef(""),c=he.useRef(0);c.current=d;let p=he.useRef(l),h=he.useRef(s);p.current=l,h.current=s,he.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 jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("span",{className:a,children:[w.slice(0,g),g<w.length&&jsxRuntime.jsx("span",{className:"stream-tail",children:w.slice(g)}),r&&jsxRuntime.jsx("span",{"aria-hidden":true,className:`stream-caret${v?" is-streaming":""}`})]})})}i(ii,"BUIStreamText");function Wc({checked:e,onChange:t,label:o}){return jsxRuntime.jsx(U,{children:jsxRuntime.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
|
|
84
84
|
${e?"bg-ink":"bg-line-strong"}`,children:jsxRuntime.jsx("span",{className:`absolute top-0.5 left-0.5 size-5 rounded-full bg-white
|
|
85
85
|
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 jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{className:`flex min-h-11 items-center justify-between gap-4 py-2 ${n}`,children:[jsxRuntime.jsx("span",{className:"text-sm text-ink-2",children:e}),jsxRuntime.jsxs("span",{className:"flex items-baseline gap-2 text-right",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-ink tabular-nums",children:t}),o&&jsxRuntime.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 jsxRuntime.jsx(U,{children:jsxRuntime.jsx("span",{className:`mx-0.5 inline-flex items-center rounded-full px-1.5 py-0
|
|
86
|
-
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=provider.useMonkeysLocaleMessages(),{locale:t}=provider.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 jsxRuntime.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=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("polyline",{points:"4 14 10 14 10 20"}),jsxRuntime.jsx("polyline",{points:"20 10 14 10 14 4"}),jsxRuntime.jsx("line",{x1:"14",y1:"10",x2:"21",y2:"3"}),jsxRuntime.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]}),Qc=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("polyline",{points:"15 3 21 3 21 9"}),jsxRuntime.jsx("polyline",{points:"9 21 3 21 3 15"}),jsxRuntime.jsx("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),jsxRuntime.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 jsxRuntime.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:jsxRuntime.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 jsxRuntime.jsx(Ya,{className:"agent-cursor",style:{left:"42%",top:"53%"}})}i(Jc,"DriftCursor");function eu({streamSrc:e,cursor:t=true}){return jsxRuntime.jsxs("div",{className:"absolute inset-0 overflow-hidden bg-inset",children:[e?/\.(mp4|webm|mov|m4v)(\?|$)/i.test(e)?jsxRuntime.jsx("video",{src:e??"",autoPlay:true,muted:true,loop:true,playsInline:true,className:"absolute inset-0 h-full w-full object-cover"}):jsxRuntime.jsx("img",{src:e??"",alt:"",className:"absolute inset-0 h-full w-full object-cover"}):jsxRuntime.jsx("div",{className:"h-full w-full bg-inset"}),t&&jsxRuntime.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)?jsxRuntime.jsx("video",{src:e,autoPlay:true,muted:true,loop:true,playsInline:true,className:o,style:t}):jsxRuntime.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 jsxRuntime.jsxs("div",{className:"absolute inset-0 bg-black",children:[jsxRuntime.jsx("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:jsxRuntime.jsxs("svg",{width:t,height:t,className:"block",style:{animation:"bui-spin 1.1s linear infinite"},"aria-hidden":true,children:[jsxRuntime.jsx("circle",{cx:t/2,cy:t/2,r:n,fill:"none",stroke:"var(--bui-screen-progress-track)",strokeWidth:o}),jsxRuntime.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}`})]})}),jsxRuntime.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]=he.useState(false),[m,c]=he.useState(false),[p,h]=he.useState(null);he.useEffect(()=>c(true),[]),he.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=jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n?jsxRuntime.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:[jsxRuntime.jsx("span",{className:"size-2.5 rounded-[2px] bg-white"}),l("End")]}):jsxRuntime.jsxs(Me,{variant:"secondary",size:"sm",className:"gap-1 pl-1.5",onClick:i(()=>{a?.(true);},"startRecording"),children:[jsxRuntime.jsx(li,{size:15,path:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"3.5",fill:"currentColor",stroke:"none"})]})}),l("Teach a task")]}),jsxRuntime.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:jsxRuntime.jsx(li,{size:15,path:Yc})})]});return jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{className:"w-full max-w-[340px]",children:[jsxRuntime.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?jsxRuntime.jsx(Xa,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(eu,{streamSrc:t}),jsxRuntime.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:jsxRuntime.jsx("span",{className:"translate-y-1 opacity-0 transition duration-150 group-hover/screen:translate-y-0 group-hover/screen:opacity-100",children:jsxRuntime.jsxs(Me,{variant:"accent",size:"sm",onClick:f=>{f.stopPropagation(),u(true);},children:[jsxRuntime.jsx(li,{size:14,path:Qc}),l("Open")]})})})]})}),jsxRuntime.jsx("div",{className:"mt-2.5 truncate px-0.5 text-[13px] font-medium text-ink",children:l("screenTitle",{name:e})}),d&&m&&Oo(jsxRuntime.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:[jsxRuntime.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)}),jsxRuntime.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:[jsxRuntime.jsxs("div",{className:"flex h-11 shrink-0 items-center justify-between gap-3 px-1.5",children:[jsxRuntime.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[jsxRuntime.jsx("span",{className:"truncate text-[13px] font-semibold text-ink",children:e}),n&&jsxRuntime.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:[jsxRuntime.jsx("span",{className:"size-2 rounded-full bg-red",style:{animation:"bui-records-pulse 1.1s ease-in-out infinite"}}),Zc(r)]})]}),g]}),jsxRuntime.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?jsxRuntime.jsx("div",{className:Ka,style:{width:"min(960px, 90vw)"},children:jsxRuntime.jsx(Xa,{})}):jsxRuntime.jsx(tu,{src:t??""}),!s&&p&&jsxRuntime.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=he.useRef(null),[a,l]=he.useState(null),[s,d]=he.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 jsxRuntime.jsx(U,{children:jsxRuntime.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:[jsxRuntime.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=he.useRef(e),[o,n]=he.useState(e),[r,a]=he.useState(e),[l,s]=he.useState(false),[d,u]=he.useState(false),[m,c]=he.useState("up");he.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 jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:p.length},(h,v)=>{let w=o[v]??"",g=p[v]??"";return !l||w===g?jsxRuntime.jsx("span",{children:g},`${v}-${g}`):jsxRuntime.jsx("span",{style:{display:"inline-block",position:"relative",overflow:"hidden",height:"1em",lineHeight:"1em",verticalAlign:"-0.05em"},children:jsxRuntime.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:[jsxRuntime.jsx("span",{style:{height:"1em",lineHeight:"1em"},children:m==="down"?g:w}),jsxRuntime.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 jsxRuntime.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]=he.useState(0),[p,h]=he.useState({}),[v,w]=he.useState({}),g=l==="submitted",f=he.useRef(p),x=he.useRef(v);f.current=p,x.current=v;let[y,$]=he.useState(true),M=he.useRef(null),C=he.useRef([]),R=he.useRef(false),[P,F]=he.useState(void 0),[L,B]=he.useState(0),[k,T]=he.useState(false),[D,_]=he.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");he.useLayoutEffect(()=>{let I=R.current;R.current=true,J(I),_(true);},[m,p,v,y,g]),he.useEffect(()=>{let I=requestAnimationFrame(()=>J(R.current));return ()=>cancelAnimationFrame(I)},[m]),he.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?jsxRuntime.jsx(U,{children:jsxRuntime.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:[jsxRuntime.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:[jsxRuntime.jsx("span",{className:"flex size-4.5 items-center justify-center rounded-full bg-green text-white",children:jsxRuntime.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})})}),u.sentMessage]}),r&&jsxRuntime.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")})]})}):jsxRuntime.jsx(U,{children:jsxRuntime.jsx("div",{className:"w-full max-w-80",children:jsxRuntime.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:[jsxRuntime.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:jsxRuntime.jsx(ci,{size:14,sw:2.2,path:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})}),jsxRuntime.jsx("div",{className:"primitive-card-pad",children:jsxRuntime.jsx("div",{className:"overflow-hidden",style:{height:P,transition:k?`height ${di}`:void 0},"aria-live":"polite",children:jsxRuntime.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 jsxRuntime.jsxs("div",{ref:se=>{C.current[j]=se;},"aria-hidden":A?void 0:true,style:ae,children:[jsxRuntime.jsx("div",{className:"pr-7 text-[14px] font-medium text-ink",children:I.q}),jsxRuntime.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 jsxRuntime.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:[jsxRuntime.jsx("span",{className:`flex size-4 shrink-0 items-center justify-center transition-colors duration-200
|
|
87
|
-
${
|
|
88
|
-
${Be?"bg-ink text-canvas":"shadow-[inset_0_0_0_1.5px_var(--bui-line-strong)] text-transparent"}`,children:
|
|
86
|
+
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=provider.useMonkeysLocaleMessages(),{locale:t}=provider.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 jsxRuntime.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=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("polyline",{points:"4 14 10 14 10 20"}),jsxRuntime.jsx("polyline",{points:"20 10 14 10 14 4"}),jsxRuntime.jsx("line",{x1:"14",y1:"10",x2:"21",y2:"3"}),jsxRuntime.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]}),Qc=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("polyline",{points:"15 3 21 3 21 9"}),jsxRuntime.jsx("polyline",{points:"9 21 3 21 3 15"}),jsxRuntime.jsx("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),jsxRuntime.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 jsxRuntime.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:jsxRuntime.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 jsxRuntime.jsx(Ya,{className:"agent-cursor",style:{left:"42%",top:"53%"}})}i(Jc,"DriftCursor");function eu({streamSrc:e,cursor:t=true}){return jsxRuntime.jsxs("div",{className:"absolute inset-0 overflow-hidden bg-inset",children:[e?/\.(mp4|webm|mov|m4v)(\?|$)/i.test(e)?jsxRuntime.jsx("video",{src:e??"",autoPlay:true,muted:true,loop:true,playsInline:true,className:"absolute inset-0 h-full w-full object-cover"}):jsxRuntime.jsx("img",{src:e??"",alt:"",className:"absolute inset-0 h-full w-full object-cover"}):jsxRuntime.jsx("div",{className:"h-full w-full bg-inset"}),t&&jsxRuntime.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)?jsxRuntime.jsx("video",{src:e,autoPlay:true,muted:true,loop:true,playsInline:true,className:o,style:t}):jsxRuntime.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 jsxRuntime.jsxs("div",{className:"absolute inset-0 bg-black",children:[jsxRuntime.jsx("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:jsxRuntime.jsxs("svg",{width:t,height:t,className:"block",style:{animation:"bui-spin 1.1s linear infinite"},"aria-hidden":true,children:[jsxRuntime.jsx("circle",{cx:t/2,cy:t/2,r:n,fill:"none",stroke:"var(--bui-screen-progress-track)",strokeWidth:o}),jsxRuntime.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}`})]})}),jsxRuntime.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]=he.useState(false),[m,c]=he.useState(false),[p,h]=he.useState(null);he.useEffect(()=>c(true),[]),he.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=jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n?jsxRuntime.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:[jsxRuntime.jsx("span",{className:"size-2.5 rounded-[2px] bg-white"}),l("End")]}):jsxRuntime.jsxs(Me,{variant:"secondary",size:"sm",className:"gap-1 pl-1.5",onClick:i(()=>{a?.(true);},"startRecording"),children:[jsxRuntime.jsx(li,{size:15,path:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"3.5",fill:"currentColor",stroke:"none"})]})}),l("Teach a task")]}),jsxRuntime.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:jsxRuntime.jsx(li,{size:15,path:Yc})})]});return jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{className:"w-full max-w-[340px]",children:[jsxRuntime.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?jsxRuntime.jsx(Xa,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(eu,{streamSrc:t}),jsxRuntime.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:jsxRuntime.jsx("span",{className:"translate-y-1 opacity-0 transition duration-150 group-hover/screen:translate-y-0 group-hover/screen:opacity-100",children:jsxRuntime.jsxs(Me,{variant:"accent",size:"sm",onClick:f=>{f.stopPropagation(),u(true);},children:[jsxRuntime.jsx(li,{size:14,path:Qc}),l("Open")]})})})]})}),jsxRuntime.jsx("div",{className:"mt-2.5 truncate px-0.5 text-[13px] font-medium text-ink",children:l("screenTitle",{name:e})}),d&&m&&Ho(jsxRuntime.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:[jsxRuntime.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)}),jsxRuntime.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:[jsxRuntime.jsxs("div",{className:"flex h-11 shrink-0 items-center justify-between gap-3 px-1.5",children:[jsxRuntime.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[jsxRuntime.jsx("span",{className:"truncate text-[13px] font-semibold text-ink",children:e}),n&&jsxRuntime.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:[jsxRuntime.jsx("span",{className:"size-2 rounded-full bg-red",style:{animation:"bui-records-pulse 1.1s ease-in-out infinite"}}),Zc(r)]})]}),g]}),jsxRuntime.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?jsxRuntime.jsx("div",{className:Ka,style:{width:"min(960px, 90vw)"},children:jsxRuntime.jsx(Xa,{})}):jsxRuntime.jsx(tu,{src:t??""}),!s&&p&&jsxRuntime.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=he.useRef(null),[a,l]=he.useState(null),[s,d]=he.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 jsxRuntime.jsx(U,{children:jsxRuntime.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:[jsxRuntime.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=he.useRef(e),[o,n]=he.useState(e),[r,a]=he.useState(e),[l,s]=he.useState(false),[d,u]=he.useState(false),[m,c]=he.useState("up");he.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 jsxRuntime.jsx(jsxRuntime.Fragment,{children:Array.from({length:p.length},(h,v)=>{let w=o[v]??"",g=p[v]??"";return !l||w===g?jsxRuntime.jsx("span",{children:g},`${v}-${g}`):jsxRuntime.jsx("span",{style:{display:"inline-block",position:"relative",overflow:"hidden",height:"1em",lineHeight:"1em",verticalAlign:"-0.05em"},children:jsxRuntime.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:[jsxRuntime.jsx("span",{style:{height:"1em",lineHeight:"1em"},children:m==="down"?g:w}),jsxRuntime.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 jsxRuntime.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]=he.useState(0),[p,h]=he.useState({}),[v,w]=he.useState({}),g=l==="submitted",f=he.useRef(p),x=he.useRef(v);f.current=p,x.current=v;let[y,$]=he.useState(true),I=he.useRef(null),C=he.useRef([]),R=he.useRef(false),[P,F]=he.useState(void 0),[L,N]=he.useState(0),[k,T]=he.useState(false),[z,H]=he.useState(false),Z=m===e.length-1,O=(p[m]??[]).length>0||!!v[m]?.trim(),K=i(B=>{let j=C.current[m];if(!j)return;let E=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;F(j.offsetHeight),N(j.offsetTop),T(B&&!E);},"sync");he.useLayoutEffect(()=>{let B=R.current;R.current=true,K(B),H(true);},[m,p,v,y,g]),he.useEffect(()=>{let B=requestAnimationFrame(()=>K(R.current));return ()=>cancelAnimationFrame(B)},[m]),he.useEffect(()=>()=>{I.current&&clearTimeout(I.current);},[]);let A=i(B=>{I.current&&clearTimeout(I.current),c(Math.min(Math.max(B,0),e.length-1));},"goTo"),ne=i(()=>{I.current&&clearTimeout(I.current),l!=="submitting"&&o?.(f.current,x.current);},"send"),ee=i(()=>{Z?ne():A(m+1);},"advance"),se=i(B=>{let j=e[m].type,E=f.current,W=E[m]??[],te=j==="radio"?[B]:W.includes(B)?W.filter(le=>le!==B):[...W,B],ie={...E,[m]:te};f.current=ie,h(ie),n?.(m,te),j==="radio"&&(w(le=>({...le,[m]:""})),I.current&&clearTimeout(I.current),I.current=setTimeout(()=>{Z?ne():c(le=>Math.min(e.length-1,le+1));},480));},"toggle"),ce=i(()=>{c(0),h({}),w({}),s?.(),$(true),R.current=false;},"reset");return e.length?y?g?jsxRuntime.jsx(U,{children:jsxRuntime.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:[jsxRuntime.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:[jsxRuntime.jsx("span",{className:"flex size-4.5 items-center justify-center rounded-full bg-green text-white",children:jsxRuntime.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})})}),u.sentMessage]}),r&&jsxRuntime.jsx("button",{type:"button",onClick:ce,className:"text-[12px] font-medium text-ink-3 transition-colors duration-150 hover:text-ink",children:d("Start over")})]})}):jsxRuntime.jsx(U,{children:jsxRuntime.jsx("div",{className:"w-full max-w-80",children:jsxRuntime.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:[jsxRuntime.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:jsxRuntime.jsx(ci,{size:14,sw:2.2,path:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})}),jsxRuntime.jsx("div",{className:"primitive-card-pad",children:jsxRuntime.jsx("div",{className:"overflow-hidden",style:{height:P,transition:k?`height ${di}`:void 0},"aria-live":"polite",children:jsxRuntime.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((B,j)=>{let E=j===m;if(!z&&!E)return null;let W=p[j]??[],te={opacity:E?1:0,transition:k?`opacity ${di}`:void 0,pointerEvents:E?void 0:"none"};return jsxRuntime.jsxs("div",{ref:ie=>{C.current[j]=ie;},"aria-hidden":E?void 0:true,style:te,children:[jsxRuntime.jsx("div",{className:"pr-7 text-[14px] font-medium text-ink",children:B.q}),jsxRuntime.jsxs(tt,{className:"mt-2.5 flex flex-col gap-1",highlightClassName:"inset-x-0 rounded-control bg-hover",children:[B.options.map((ie,le)=>{let Be=W.includes(le);return jsxRuntime.jsxs("button",{type:"button","data-menu-row":true,"aria-pressed":Be,tabIndex:E?0:-1,disabled:l==="submitting",onClick:()=>{E&&se(le);},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:[jsxRuntime.jsx("span",{className:`flex size-4 shrink-0 items-center justify-center transition-colors duration-200
|
|
87
|
+
${B.type==="radio"?"rounded-full":"rounded-[5px]"}
|
|
88
|
+
${Be?"bg-ink text-canvas":"shadow-[inset_0_0_0_1.5px_var(--bui-line-strong)] text-transparent"}`,children:B.type==="radio"?jsxRuntime.jsx("span",{className:"size-1.5 rounded-full bg-canvas transition-transform duration-200",style:{transform:Be?"scale(1)":"scale(0)"}}):jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})})}),jsxRuntime.jsx("span",{className:`text-[13px] leading-none transition-colors duration-200 ${Be?"text-ink":"text-ink-2"}`,children:ie})]},ie)}),B.allowCustom!==false&&jsxRuntime.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:jsxRuntime.jsx("input",{type:B.customInputType??"text",disabled:l==="submitting",value:v[j]??"",tabIndex:E?0:-1,onChange:ie=>{E&&(w(le=>({...le,[j]:ie.target.value})),B.type==="radio"&&h(le=>({...le,[j]:[]})));},onKeyDown:ie=>{ie.key==="Enter"&&!ie.nativeEvent.isComposing&&ie.keyCode!==229&&O&&(ie.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)})})})}),jsxRuntime.jsxs("div",{className:"primitive-card-footer flex items-center justify-between gap-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-1 text-ink-3",children:[jsxRuntime.jsx("button",{type:"button","aria-label":d("Previous question"),disabled:m<=0,onClick:()=>A(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:jsxRuntime.jsx(ci,{size:14,path:jsxRuntime.jsx("path",{d:"M18 15l-6-6-6 6"})})}),jsxRuntime.jsx("span",{className:"inline-flex items-center text-[12px] font-medium tabular-nums text-ink-3",style:{letterSpacing:"-0.1px",lineHeight:1},children:jsxRuntime.jsx(du,{value:`${m+1} / ${e.length}`})}),jsxRuntime.jsx("button",{type:"button","aria-label":d("Next question"),disabled:Z,onClick:()=>A(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:jsxRuntime.jsx(ci,{size:14,path:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})})]}),jsxRuntime.jsxs("div",{className:"-mr-0.5 flex items-center gap-1.5",children:[a&&jsxRuntime.jsx(Me,{variant:"ghost",size:"sm",disabled:l==="submitting",onClick:()=>Z?$(false):A(m+1),children:u.skip}),jsxRuntime.jsx(Me,{variant:"accent",size:"sm",disabled:!O||l==="submitting",onClick:ee,children:Z?u.send:u.continue})]})]})]})})}):jsxRuntime.jsx(U,{children:jsxRuntime.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"),Ro=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(Ro(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(N=>N[g]),x=f.reduce((N,k)=>N+k,0),y=f.reduce((N,k,T)=>N+k*r[T],0),$=f.reduce((N,k,T)=>N+k*a[T],0),I=hu(c,[x,y,$]);if(!I)return {a:x/t,b:0,d:0};let[C,R,P]=I,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(Ro(e)),qn(Ro(t))],17);return o[0]=Ro(e),o[o.length-1]=Ro(t),ns(o)},"accentPair");function co(e){if(e.length===0)return bu(Et.indigo,Et.cyan);if(e.length===1)return {a:Ro(e[0]),b:[0,0,0],c:[1,1,1],d:[0,0,0]};let t=e.map(n=>qn(Ro(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=`
|
|
89
89
|
attribute vec2 a;
|
|
90
90
|
void main(){ gl_Position = vec4(a, 0.0, 1.0); }
|
|
91
91
|
`,yu=`
|
|
@@ -215,15 +215,15 @@ void main(){
|
|
|
215
215
|
|
|
216
216
|
gl_FragColor = vec4(bodyPM + highEmit, min(bodyA + highA, 1.0));
|
|
217
217
|
}
|
|
218
|
-
`,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=he.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=he.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=he.useRef(r),l=he.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]=he.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=he.useRef(t);o.current=t,he.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=runtime.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:he.createContext({...yn,provided:false}),theme:he.createContext({provided:false}),direction:he.createContext({provided:false}),environment:he.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 he.useContext(xn)??{...yn,provided:!1}}catch{return {...yn,provided:false}}}i(Ss,"useMonkeysLocale");function $n(){return he.useContext(Go).resolvedTheme}i($n,"useMonkeysResolvedTheme");function Cs(e){let t=he.useContext(Go).baseAppearance;return he.useMemo(()=>Yu(t,e),[e,t])}i(Cs,"useMonkeysBaseAppearance");function Ts(){return he.useContext(wn).direction}i(Ts,"useMonkeysDirection");function xi(){return he.useContext(kn).environment}i(xi,"useMonkeysEnvironment");function Jn(){return he.useContext(kn).portal}i(Jn,"useMonkeysPortalOptions");function ht(){let e=he.useContext(xn),t=he.useContext(Go),o=he.useContext(wn),n=e.provided||t.provided||o.provided;return he.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:he.createContext(null)});var qo=$i[ki];var zs=Is("bsd"),Si=Wo(zs,{colorMode:"dark"});var Bs=he.createContext(0);function Qt(e){let t=he.useContext(qo),o=Ts(),n=xi(),[r,a]=he.useState();return he.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=he.useContext(qo),t=$n();return he.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=he.useContext(qo),o=$n(),n=xi(),r=Jn(),a=Qt(),l=he.useContext(Bs)+1,[s,d]=he.useState(null);he.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=jsxRuntime.jsx(Bs.Provider,{value:l,children:jsxRuntime.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?reactDom.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]=he.useState(false);return he.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-${he.useId().replace(/:/g,"")}`,o=he.useRef(null),[n,r]=he.useState(null),a=or(),l=Ko(),s=Us(l),[d,u]=he.useState(false),[m,c]=he.useState(null);return he.useEffect(()=>{if(!a)return;let p=true;return import('shaders/react').then(h=>{p&&r(h);}).catch(()=>{}),()=>{p=false;}},[a]),he.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]),jsxRuntime.jsxs("span",{ref:o,className:"monkeys-ui-button-light-edge-mask","data-ready":d||void 0,children:[jsxRuntime.jsx("svg",{width:"0",height:"0","aria-hidden":"true",className:"monkeys-ui-button-light-edge-defs",children:jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("filter",{id:t,x:"-30%",y:"-100%",width:"160%",height:"300%",colorInterpolationFilters:"sRGB",children:[jsxRuntime.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:s.glowBlur,result:"glow"}),jsxRuntime.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:s.flowBlur,result:"flow"}),jsxRuntime.jsxs("feMerge",{children:[jsxRuntime.jsx("feMergeNode",{in:"glow"}),jsxRuntime.jsx("feMergeNode",{in:"flow"})]})]})})}),jsxRuntime.jsxs("span",{className:"monkeys-ui-button-light-edge-flow",style:{filter:`url(#${t})`},children:[jsxRuntime.jsx("span",{className:"monkeys-ui-button-light-edge-ambient"}),a&&n&&m?jsxRuntime.jsx(n.Shader,{disableTelemetry:true,style:{width:"100%",height:"100%"},onReady:()=>u(true),children:jsxRuntime.jsx(n.LightEdge,{colorA:s.lightEdgeStart,colorB:s.end,...s.lightEdge,...e,stops:null,shape:m})}):null]})]})}i(Os,"ButtonLightEdge");var No=he.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,_=he.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"?jsxRuntime.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);}}):jsxRuntime.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"?jsxRuntime.jsx("span",{...r("effect","monkeys-ui-button-light-edge"),"aria-hidden":"true",children:jsxRuntime.jsx(Os,{...h===true||!h?{}:h})}):null,jsxRuntime.jsxs("span",{...r("label","monkeys-ui-button-label"),"data-loading":p||void 0,children:[s?jsxRuntime.jsx("span",{...r("icon","monkeys-ui-button-icon"),"aria-hidden":"true",children:s}):null,L]}),p?jsxRuntime.jsx("span",{...r("spinner","monkeys-ui-button-spinner"),"aria-hidden":"true"}):null]})},"Button"));he.forwardRef(i(function(t,o){return jsxRuntime.jsx(No,{...t,ref:o,toggle:true})},"ToggleButton"));he.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=he.useRef(null),F=he.useRef(n??t[0]?.id??"");he.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]=he.useState("keyboard"),_=he.useRef(null),Z=k&&T==="pointer"&&!l&&!s,Y={label:B?.label,color:B?.color},[O,J]=he.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 jsxRuntime.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:[jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-track",style:{background:de},"aria-hidden":"true"}),jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-positioner",style:{transform:`translateX(${(M==="rtl"?-1:1)*te*100}%)`},"aria-hidden":"true",children:jsxRuntime.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)=>jsxRuntime.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:jsxRuntime.jsx("span",{className:W===O.active?"monkeys-ui-color-slider-label":"monkeys-ui-color-slider-previous-label",children:A.label})},W))})}),jsxRuntime.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?jsxRuntime.jsx("input",{type:"hidden",name:f,form:x.form,value:B?.id??"",disabled:l||t.length===0}):null]})},"ColorSlider"));var gp=he.createContext(null);function po(e){let t=he.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=he.forwardRef(i(function(t,o){let n=po(t);if(t.variant==="tags")return t.mode==="select"?jsxRuntime.jsx(hp,{...t,ref:o}):jsxRuntime.jsx(fp,{...t,ref:o});if(t.variant==="search")return jsxRuntime.jsx(yp,{...t,ref:o});if(t.variant==="number")return jsxRuntime.jsx(vp,{...t,ref:o});let{variant:r,className:a,...l}=t;return jsxRuntime.jsx("input",{...l,...n,className:ft("monkeys-ui-input",a),ref:o})},"Input")),fp=he.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]=he.useState(""),T=he.useRef(false),D=he.useRef(null),_=h||v;he.useImperativeHandle(M,()=>D.current,[]);let Z=he.useRef(r??[]);Vo(D,()=>{n===void 0&&P(Z.current),L("");}),he.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 jsxRuntime.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)=>jsxRuntime.jsx(Gs,{label:O,disabled:_,removeLabel:d,onRemove:()=>Y(J)},`${J}:${O}`)),jsxRuntime.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)=>jsxRuntime.jsx("input",{type:"hidden",name:u,form:m,value:O,disabled:h},J)):null,jsxRuntime.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 jsxRuntime.jsxs("span",{className:"monkeys-ui-input-tag",children:[r?jsxRuntime.jsx("button",{type:"button",className:"monkeys-ui-input-tag-text monkeys-ui-input-tag-activate",title:e,disabled:t,onClick:r,children:e}):jsxRuntime.jsx("span",{className:"monkeys-ui-input-tag-text",title:e,children:e}),n?jsxRuntime.jsx("button",{type:"button",className:"monkeys-ui-input-tag-remove",disabled:t,"aria-label":`${o} ${e}`,onClick:n,children:jsxRuntime.jsx(lucideReact.X,{size:"var(--monkeys-ui-icon-size-s14,var(--monkeys-ui-default-icon-size-s14))","aria-hidden":"true"})}):null]})}i(Gs,"InputTag");var hp=he.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=he.useRef(null),$=he.useRef(null),M=he.useRef(null),[C,R]=he.useState(""),P=c||p;return he.useImperativeHandle(f,()=>y.current,[]),he.useEffect(()=>{y.current?.setCustomValidity(x.required&&!r.length?"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E":"");},[x.required,r.length]),jsxRuntime.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:[jsxRuntime.jsxs("div",{className:"monkeys-ui-tag-input-header",children:[jsxRuntime.jsx("span",{className:"monkeys-ui-label",children:n}),a?jsxRuntime.jsx("button",{ref:$,type:"button",className:"monkeys-ui-tag-input-add",disabled:P,"aria-label":"\u6DFB\u52A0"+n,onClick:a,children:jsxRuntime.jsx(lucideReact.Plus,{"aria-hidden":"true"})}):null]}),r.length?jsxRuntime.jsx("div",{className:"monkeys-ui-tag-input-items",children:r.map(F=>jsxRuntime.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,jsxRuntime.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=>jsxRuntime.jsx("input",{type:"hidden",name:u,form:m,value:F.id,disabled:c},F.id)):null,jsxRuntime.jsx("span",{className:"monkeys-ui-visually-hidden","aria-live":"polite","aria-atomic":"true",children:C})]})},"InputTagSelectionControl"));he.forwardRef(i(function({className:t,...o},n){let r=po(o);return jsxRuntime.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");he.forwardRef(i(function(t,o){return jsxRuntime.jsx(sr,{...t,variant:"number",ref:o})},"NumberInput"));var vp=he.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=he.useRef(null),c=he.useRef(n??"");return he.useImperativeHandle(s,()=>m.current,[]),Vo(m,()=>{o===void 0&&u(c.current);}),jsxRuntime.jsx(sr,{...l,variant:"default",type:"text",inputMode:"decimal",value:d,onChange:p=>{u(p.target.value),a?.(p);},ref:m})},"InputNumberControl"));he.forwardRef(i(function(t,o){return jsxRuntime.jsx(sr,{...t,variant:"search",ref:o})},"SearchField"));var yp=he.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=he.useRef(false),y=he.useRef(null);he.useImperativeHandle(w,()=>y.current,[]);let $=he.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 jsxRuntime.jsxs("div",{className:ft("monkeys-ui-search",d),children:[jsxRuntime.jsx(lucideReact.Search,{size:"var(--monkeys-ui-icon-size-s17,var(--monkeys-ui-default-icon-size-s17))","aria-hidden":"true"}),jsxRuntime.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?jsxRuntime.jsx(No,{shape:"icon","aria-label":s,size:"sm",disabled:p||h,onClick:M,children:jsxRuntime.jsx(lucideReact.X,{size:"var(--monkeys-ui-icon-size-s14,var(--monkeys-ui-default-icon-size-s14))","aria-hidden":"true"})}):null]})},"InputSearchControl")),qs=he.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 jsxRuntime.jsx(ir__namespace.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:jsxRuntime.jsx(ir__namespace.Thumb,{className:"monkeys-ui-switch-thumb"})})},"Switch"));he.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=he.useId(),v=`${h}-label`,w=o?`${h}-description`:void 0;return jsxRuntime.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:[jsxRuntime.jsxs("div",{className:"monkeys-ui-switch-field-copy",children:[jsxRuntime.jsx("span",{id:v,className:"monkeys-ui-switch-field-label",children:t}),o?jsxRuntime.jsx("span",{id:w,className:"monkeys-ui-switch-field-description",children:o}):null]}),jsxRuntime.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"));he.forwardRef(i(function({indicator:t=jsxRuntime.jsx(lucideReact.ChevronDown,{size:12}),className:o,children:n,type:r="button",...a},l){return jsxRuntime.jsxs("button",{...a,ref:l,type:r,className:ft("monkeys-ui-select",o),children:[jsxRuntime.jsx("span",{className:"min-w-0 truncate",children:n}),jsxRuntime.jsx("span",{className:"shrink-0","aria-hidden":"true",children:t})]})},"PickerTrigger"));he.forwardRef(i(function(t,o){return t.variant==="multiple"?jsxRuntime.jsx(wp,{...t,ref:o}):jsxRuntime.jsx(xp,{...t,ref:o})},"Select"));var xp=he.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 jsxRuntime.jsxs(Re__namespace.Root,{...h,dir:x,required:$,value:g,onValueChange:f,children:[jsxRuntime.jsxs(Re__namespace.Trigger,{ref:v,...M,"aria-required":$||void 0,"aria-label":l,className:ft("monkeys-ui-select",n),style:r,children:[jsxRuntime.jsx(Re__namespace.Value,{placeholder:o??y.messages.multiSelect.placeholder}),jsxRuntime.jsx(Re__namespace.Icon,{"aria-hidden":"true",children:jsxRuntime.jsx(lucideReact.ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))"})})]}),jsxRuntime.jsx(Cn,{children:jsxRuntime.jsxs(Re__namespace.Content,{className:"monkeys-ui-select-content",position:"popper",sideOffset:6,children:[jsxRuntime.jsx(Re__namespace.ScrollUpButton,{children:jsxRuntime.jsx(lucideReact.ChevronUp,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})}),jsxRuntime.jsx(Re__namespace.Viewport,{children:t.map(C=>jsxRuntime.jsxs(Re__namespace.Item,{value:C.value,disabled:C.disabled,className:"monkeys-ui-select-item",children:[jsxRuntime.jsx(Re__namespace.ItemText,{children:C.label}),jsxRuntime.jsx(Re__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]},C.value))}),jsxRuntime.jsx(Re__namespace.ScrollDownButton,{children:jsxRuntime.jsx(lucideReact.ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]})})]})},"SingleSelect")),wp=he.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=he.useRef(null),R=he.useRef(null),P=he.useRef(m??[]);he.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=he.useId(),D=f.id??T,_=T+"-required",[Z,Y]=he.useState(false);he.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 jsxRuntime.jsxs(Pe__namespace.Root,{dir:F,open:$,onOpenChange:M,modal:false,children:[jsxRuntime.jsx(Pe__namespace.Trigger,{asChild:true,children:jsxRuntime.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:[jsxRuntime.jsx("span",{className:"monkeys-ui-select-value",children:O.length?O.join("\u3001"):o??L.messages.multiSelect.placeholder}),jsxRuntime.jsx(lucideReact.ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})]})}),jsxRuntime.jsx(Cn,{children:jsxRuntime.jsx(Pe__namespace.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=>jsxRuntime.jsxs(Pe__namespace.CheckboxItem,{checked:x.includes(E.value),disabled:E.disabled,onSelect:te=>{te.preventDefault(),J(E);},className:"monkeys-ui-select-item",children:[jsxRuntime.jsx("span",{children:E.label}),jsxRuntime.jsx(Pe__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]},E.value))})}),B?jsxRuntime.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,jsxRuntime.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=>jsxRuntime.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 jsxRuntime.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:jsxRuntime.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:jsxRuntime.jsx("path",{d:"M4 20V10M10 20V4M16 20v-7M22 20H2"}),layers:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M12 2 2 7l10 5 10-5-10-5z"}),jsxRuntime.jsx("path",{d:"M2 17l10 5 10-5M2 12l10 5 10-5"})]}),globe:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntime.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:jsxRuntime.jsxs("svg",{width:"11",height:"16",viewBox:"0 0 38 57","aria-hidden":"true",children:[jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.jsx("path",{d:"M19 0h9.5a9.5 9.5 0 1 1 0 19H19V0z",fill:"var(--bui-brand-figma-orange)"}),jsxRuntime.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:jsxRuntime.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 127 127","aria-hidden":"true",children:[jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.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:jsxRuntime.jsxs("svg",{width:"15",height:"12",viewBox:"0 0 256 193","aria-hidden":"true",children:[jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.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]=he.useState(""),_=$??T,Z=i(z=>{D(z),M?.(z);},"setDraft"),Y=he.useRef(_);Y.current=_;let O=he.useRef(false),J=he.useRef(true),[E,te]=he.useState(false);he.useEffect(()=>(J.current=true,()=>{J.current=false;}),[]);let ee=t.length>0,me=n.length>0,de=ee||!!s||!!p,[I,j]=he.useState(false),[A,W]=he.useState(false),[ae,se]=he.useState(false),[re,Be]=he.useState(n[0]??{key:"",name:L("Model")}),[K,ge]=he.useState(0),[Je,Tt]=he.useState(false),ye=Math.max(1,Math.min(5,Math.trunc(w)||1)),pt=Je||v||ye>1||!!h,[_t,$o]=he.useState(null),[It,mt]=he.useState(false),[q,wt]=he.useState(null),[io,ao]=he.useState(null),[so,cn]=he.useState(0),[Kr,Xr]=he.useState(0),Ce=he.useRef(null),Xt=he.useRef(null),lo=he.useRef(null),S=he.useRef(null),X=he.useRef(null),Oe=he.useRef([]),Bt=he.useRef([]),At=he.useRef(null),So=he.useRef(null),un=he.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)):[];he.useEffect(()=>{ge(0),mt(false);},[at,Co]),he.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);he.useLayoutEffect(()=>{if(!ae)return;let z=Bt.current[io??On];z&&wt({top:z.offsetTop,height:z.offsetHeight});},[ae,io,On]),he.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]),he.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");he.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");he.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(`
|
|
219
|
-
`)||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]),he.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=jsxRuntime.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:jsxRuntime.jsx(lucideReact.Plus,{size:B.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"})});return jsxRuntime.jsx(U,{children:jsxRuntime.jsx("div",{"data-promptbar":true,className:"w-full",children:jsxRuntime.jsxs("div",{ref:Ce,className:"relative",children:[at&&jsxRuntime.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:[jsxRuntime.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 jsxRuntime.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&&jsxRuntime.jsx("span",{className:"flex size-5.5 shrink-0 items-center justify-center text-ink-2",children:st.brand?Sp[st.brand]:jsxRuntime.jsx(Mo,{size:15,children:$p[st.glyph??"clip"]})}),jsxRuntime.jsx("span",{className:"shrink-0 text-[12.5px] font-medium text-ink",children:z.name}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[12px] text-ink-3",children:z.desc}),st?.connect&&jsxRuntime.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&&jsxRuntime.jsx("div",{className:"flex h-9 items-center px-2 text-[12px] text-ink-3",children:L("noMatches",{query:Co})}),jsxRuntime.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&&jsxRuntime.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:[jsxRuntime.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)=>jsxRuntime.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:[jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[12.5px] font-medium text-ink",children:z.name}),jsxRuntime.jsx("span",{className:"shrink-0 text-[11px] text-ink-3",children:z.tag}),jsxRuntime.jsx("span",{className:`shrink-0 text-ink ${z.key===re.key?"":"invisible"}`,children:jsxRuntime.jsx(Mo,{size:13,strokeWidth:2.5,children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})})})]},z.key))]}),jsxRuntime.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:[jsxRuntime.jsx("canvas",{ref:At,"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-10 h-full w-full",style:{borderRadius:"inherit"}}),jsxRuntime.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&&jsxRuntime.jsx("div",{className:`flex flex-wrap gap-1.5 pt-0.5 ${k?"px-1":"px-0.5"}`,children:r.map((z,xe)=>jsxRuntime.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:[jsxRuntime.jsx(Mo,{size:12,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsxRuntime.jsx("path",{d:"M14 2v6h6"})]})}),jsxRuntime.jsx("span",{className:"max-w-36 truncate",children:z}),jsxRuntime.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:jsxRuntime.jsx(Mo,{size:10,strokeWidth:2.5,children:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]},`${z}-${xe}`))}),jsxRuntime.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,jsxRuntime.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&&jsxRuntime.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,jsxRuntime.jsx("span",{className:"text-ink-3",children:jsxRuntime.jsx(Mo,{size:11,strokeWidth:2.4,children:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})})]}),pt&&jsxRuntime.jsx("span",{className:"flex-1","aria-hidden":"true"}),(g||u)&&jsxRuntime.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?jsxRuntime.jsx("span",{className:"flex h-3.5 items-center gap-[2.5px]",children:[0,1,2].map(z=>jsxRuntime.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))}):jsxRuntime.jsx(Mo,{size:15,strokeWidth:2,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z"}),jsxRuntime.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2M12 19v3"})]})})}),jsxRuntime.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:jsxRuntime.jsx(Mo,{size:16,strokeWidth:2.4,children:R&&P?jsxRuntime.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"currentColor",stroke:"none"}):jsxRuntime.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 jsxRuntime.jsx("span",{"aria-hidden":true,className:"grid shrink-0 grid-cols-[repeat(3,4px)] gap-[1.5px]",children:e.map((n,r)=>jsxRuntime.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]=he.useState(()=>Date.now()),[n,r]=he.useState(()=>Date.now()),a=t??o,l=e===void 0&&Number.isFinite(a);if(he.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 jsxRuntime.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]=he.useState(true),{delays:m,dur:c,round:p}=dr[t]??dr.Drive,h=jsxRuntime.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=jsxRuntime.jsx(Np,{elapsedMs:n,startedAtMs:r});return l?jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{"data-bui-loading-state":true,role:"status",className:"flex w-fit flex-col items-start",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5",children:[jsxRuntime.jsx(Mi,{...dr.Drive}),h,v]}),jsxRuntime.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:jsxRuntime.jsx("div",{className:"relative aspect-video w-full",style:{background:"var(--bui-tooltip-bg)"},children:d&&o?jsxRuntime.jsx("video",{src:o,autoPlay:true,muted:true,loop:true,playsInline:true,onError:()=>u(false),className:"h-full w-full object-cover"}):jsxRuntime.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1.5",children:[jsxRuntime.jsx(Mi,{...dr.Drive}),jsxRuntime.jsx("span",{className:"px-3 text-center font-mono text-[10px]",style:{color:"var(--bui-tooltip-muted)"},children:a("Video unavailable")})]})})})]})}):jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{"data-bui-loading-state":true,role:"status",className:"flex max-w-full w-fit items-center gap-2.5",children:[jsxRuntime.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=he.useContext(xn),g=he.useContext(Go),f=he.useContext(wn),x=he.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=he.useMemo(()=>yi(t,o,w),[t,o,w]),$=he.useMemo(()=>({...y,provided:true}),[y]),M=he.useMemo(()=>Ap(r,l,s,g.resolvedTheme),[l,s,g.resolvedTheme,r]),C=he.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=he.useMemo(()=>({provided:true,direction:n??f.direction??"ltr"}),[n,f.direction]),P=he.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 jsxRuntime.jsx(xn.Provider,{value:$,children:jsxRuntime.jsx(Go.Provider,{value:C,children:jsxRuntime.jsx(wn.Provider,{value:R,children:jsxRuntime.jsx(kn.Provider,{value:P,children:e})})})})}i(Ai,"MonkeysProvider");function Ei({container:e,composer:t=false,children:o}){let n=he.useRef(null),[r]=he.useState(()=>typeof document>"u"?null:document.createElement("div"));he.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]),he.useLayoutEffect(()=>()=>r?.remove(),[r]);let a=jsxRuntime.jsx(U,{portal:true,children:jsxRuntime.jsx("div",{className:t?"bui-composer-host":"bui-conversation-host","data-bui-composer-placement":t?e?"floating":"inline":void 0,children:jsxRuntime.jsx(Ai,{portal:t&&e?{container:r}:void 0,children:jsxRuntime.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 jsxRuntime.jsx(U,{children:jsxRuntime.jsx("div",{ref:n,className:t?"bui-composer-anchor":"bui-conversation-anchor",children:r?reactDom.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 jsxRuntime.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:[jsxRuntime.jsxs("div",{className:"flex items-center gap-1 text-[12px] leading-[1.3]",children:[jsxRuntime.jsx("span",{className:"font-medium text-ink",children:e}),jsxRuntime.jsx("span",{className:"text-ink-2",children:t}),o&&jsxRuntime.jsx("span",{className:"text-ink",children:a("duration",{time:o})})]}),jsxRuntime.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,_]=he.useState(""),Z=d??D,Y=i(K=>{_(K),u?.(K);},"setDraft"),[O,J]=he.useState(false),E=he.useRef(false),te=he.useRef(true),ee=he.useRef(null),me=he.useRef(true),de=[...e].reverse().find(K=>K.role==="user")?.id;he.useEffect(()=>{de&&(me.current=true);},[de]),he.useEffect(()=>(te.current=true,()=>{te.current=false;}),[]),he.useEffect(()=>{l&&me.current&&ee.current&&(ee.current.scrollTop=ee.current.scrollHeight);},[l,e,r,w]),he.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]=he.useState(T.initialPrompt),[A,W]=he.useState(t[0]??""),ae=he.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?jsxRuntime.jsx(Ei,{container:R,children:jsxRuntime.jsx(U,{children:jsxRuntime.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)&&jsxRuntime.jsxs("header",{className:"chat-composer-header flex shrink-0 items-center justify-between border-b border-line px-4 py-3",children:[jsxRuntime.jsx("span",{className:"truncate text-[14px] font-medium",children:s}),P]}),jsxRuntime.jsxs("div",{className:"chat-composer-body",children:[jsxRuntime.jsxs("div",{className:"chat-composer-main",children:[jsxRuntime.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:jsxRuntime.jsxs("div",{className:"chat-composer-content",children:[c?jsxRuntime.jsx("span",{role:"status",className:"text-[13px] text-ink-2",children:k("Loading")}):e.map((K,ge)=>jsxRuntime.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&&jsxRuntime.jsx("div",{className:"mb-1 text-[12px] font-medium text-ink-2",children:K.label}),g?g(K,ge):jsxRuntime.jsx("p",{className:"whitespace-pre-wrap break-words text-[13px] leading-normal",children:K.body})]},K.id??ge)),!c&&!r&&!p&&e.length===0&&he.Children.toArray(w).length===0&&jsxRuntime.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?jsxRuntime.jsx(Bi,{variant:"Dots",label:k("Loading")}):f)]})}),(!m||y||$||p)&&jsxRuntime.jsx("div",{className:"chat-composer-footer shrink-0 p-3",children:jsxRuntime.jsxs(Ei,{container:C,composer:true,children:[$&&jsxRuntime.jsx("div",{className:"chat-composer-progress",children:$}),p&&jsxRuntime.jsxs("div",{role:"alert",className:"chat-composer-alert flex items-center gap-2 px-4 py-2 text-[13px] text-red",children:[jsxRuntime.jsx("span",{children:p}),h&&jsxRuntime.jsx("button",{type:"button",onClick:h,className:"underline",children:k("Retry")})]}),M,(!m||y)&&jsxRuntime.jsxs("div",{className:"chat-composer-input",children:[y&&jsxRuntime.jsx("div",{className:"chat-composer-accessory",children:y}),!m&&(x===void 0?jsxRuntime.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&&jsxRuntime.jsx("aside",{className:"chat-composer-side-panel",children:F})]})]})})}):jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{className:"flex h-[288px] w-full max-w-95 flex-col self-start overflow-hidden rounded-[14px] bg-surface shadow-card",children:[jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-line p-1.5",children:[jsxRuntime.jsx("div",{className:"flex items-center",children:t.map(K=>jsxRuntime.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))}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("path",{d:"M12 5v14M5 12h14"},"p"),jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("path",{d:"M12 7v5l3 2"})]},"h"),jsxRuntime.jsxs("g",{fill:"currentColor",stroke:"none",children:[jsxRuntime.jsx("circle",{cx:"5",cy:"12",r:"1.8"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"1.8"}),jsxRuntime.jsx("circle",{cx:"19",cy:"12",r:"1.8"})]},"e")].map((K,ge)=>jsxRuntime.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
|
|
220
|
-
transition-colors duration-100 hover:bg-hover hover:text-ink-2`,children:jsxRuntime.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:
|
|
221
|
-
transition-[opacity,transform] duration-300`,style:{opacity:
|
|
222
|
-
transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.96]`,style:{background:
|
|
218
|
+
`,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((A,ne)=>{let ee=o.createShader(A);return ee?(o.shaderSource(ee,ne),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(A=>o.getUniformLocation(l,A),"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"),I=u("uWaveSpeed"),C=u("uBrightness"),R=u("uSwellAmount"),P=u("uPalA"),F=u("uPalB"),L=u("uPalC"),N=u("uPalD");o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA);let k=i((A,ne,ee)=>Math.max(ne,Math.min(ee,A)),"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)},z=Math.random()*.4,H=i(()=>{let A=Math.min(window.devicePixelRatio||1,2),ne=t.getBoundingClientRect(),ee=Math.max(1,Math.round(ne.width*A)),se=Math.max(1,Math.round(ne.height*A));(t.width!==ee||t.height!==se)&&(t.width=ee,t.height=se,o.viewport(0,0,ee,se));},"resize");H();let Z=new ResizeObserver(H);Z.observe(t);let J=performance.now(),O=0,K=i(()=>{let A=(performance.now()-J)/1e3,ne=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,A),o.uniform1f(p,T.progress),o.uniform1f(h,T.alpha),o.uniform1f(v,T.bandTight),o.uniform1f(w,ne.posStart),o.uniform1f(g,ne.posEnd),o.uniform1f(x,ne.axis),o.uniform1f(y,T.waveAmount),o.uniform1f($,T.rippleAmount),o.uniform1f(I,T.waveSpeed),o.uniform1f(C,T.brightness),o.uniform1f(R,T.swellAmount),o.uniform1f(f,z),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(N,T.palette.d[0],T.palette.d[1],T.palette.d[2]),o.drawArrays(o.TRIANGLE_STRIP,0,4),O=requestAnimationFrame(K);},"tick");return O=requestAnimationFrame(K),{canvas:t,setProgress:i(A=>{T.progress=k(A,0,1);},"setProgress"),setAlpha:i(A=>{T.alpha=k(A,0,1.5);},"setAlpha"),setPalette:i(A=>{T.palette=A;},"setPalette"),setBandTight:i(A=>{T.bandTight=k(A,.1,200);},"setBandTight"),setDirection:i(A=>{T.direction=A;},"setDirection"),setWaveAmount:i(A=>{T.waveAmount=k(A,0,2);},"setWaveAmount"),setRippleAmount:i(A=>{T.rippleAmount=k(A,0,2);},"setRippleAmount"),setWaveSpeed:i(A=>{T.waveSpeed=k(A,0,3);},"setWaveSpeed"),setBrightness:i(A=>{T.brightness=k(A,0,1.5);},"setBrightness"),setSwellAmount:i(A=>{T.swellAmount=k(A,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,I=>{console.error("[glimm] midpoint callback failed:",I),u();});},"fireMidpoint"),$=performance.now();await new Promise(I=>{let C=i(()=>{if(s){I();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):I();},"tick");d=requestAnimationFrame(C);}),!s&&(f||y(),await x.catch(()=>{}),!s&&(await Su(n,l,0,$u,e.setAlpha,()=>s,I=>{d=I;}),!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=he.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 Vo(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(Vo,"mergeButtonAppearance");function Pu(e,t){return Object.fromEntries([...new Set([...Object.keys(e??{}),...Object.keys(t??{})])].map(o=>[o,Vo(e?.[o],t?.[o])]))}i(Pu,"mergeButtons");function cs(e,t){let o=he.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,$,I)=>{let C=o.Button?.defaultProps,R=Object.fromEntries(ds.filter(N=>C?.[N]!==void 0&&!(N==="variant"&&C[N]==="switch")).map(N=>[N,C[N]])),P=Vo({variant:C?.variant==="switch"?"solid":void 0,...f},R);P=Vo(P,n?.buttonProps?.[g]),I&&(P=Vo(P,n?.buttonProps?.[I])),P=Vo(P,r.buttonProps?.[g]),I&&(P=Vo(P,r.buttonProps?.[I]));let F=p(g,x,y,$),L=R.variant!==void 0||n?.buttonProps?.[g]?.variant!==void 0||r.buttonProps?.[g]?.variant!==void 0||!!(I&&(n?.buttonProps?.[I]?.variant!==void 0||r.buttonProps?.[I]?.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=he.useRef(r),l=he.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]=he.useState(t??o),u=r?e:s;return [u,i(c=>{r||d(c),c!==u&&n?.(c);},"update")]}i(Lt,"useControllable");function Wo(e,t){let o=he.useRef(t);o.current=t,he.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(Wo,"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 Po(e){return e==="none"?e:ot(e)}i(Po,"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(Po).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(${Po(e.components[0])} ${Po(e.components[1])}% ${Po(e.components[2])}%${n})`;case "hwb":return `hwb(${Po(e.components[0])} ${Po(e.components[1])}% ${Po(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 Hu={"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"},_u=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(Hu).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 jo(e,t={}){let o=runtime.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(_u)){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(jo,"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 No={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":No,"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,No.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 Go(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(Go,"mergeMonkeysLocaleMessages");var yn={locale:No.locale,messages:Go(No.messages)};function yi(e,t,o){t!==void 0&&xs(t,"MonkeysProvider messages");let n=ju(e),r=n.locale??o?.locale??No.locale,a=ws(r)?Wu[r].messages:void 0,l=Go(No.messages,a);return o&&(!n.hasExplicitLocale||o.locale===r)&&(l=Go(l,o.messages)),l=Go(l,n.messages),l=Go(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:he.createContext({...yn,provided:false}),theme:he.createContext({provided:false}),direction:he.createContext({provided:false}),environment:he.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,qo=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 he.useContext(xn)??{...yn,provided:!1}}catch{return {...yn,provided:false}}}i(Ss,"useMonkeysLocale");function $n(){return he.useContext(qo).resolvedTheme}i($n,"useMonkeysResolvedTheme");function Cs(e){let t=he.useContext(qo).baseAppearance;return he.useMemo(()=>Yu(t,e),[e,t])}i(Cs,"useMonkeysBaseAppearance");function Ts(){return he.useContext(wn).direction}i(Ts,"useMonkeysDirection");function xi(){return he.useContext(kn).environment}i(xi,"useMonkeysEnvironment");function Jn(){return he.useContext(kn).portal}i(Jn,"useMonkeysPortalOptions");function ht(){let e=he.useContext(xn),t=he.useContext(qo),o=he.useContext(wn),n=e.provided||t.provided||o.provided;return he.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:he.createContext(null)});var Ko=$i[ki];var zs=Is("bsd"),Si=jo(zs,{colorMode:"dark"});var Bs=he.createContext(0);function Zt(e){let t=he.useContext(Ko),o=Ts(),n=xi(),[r,a]=he.useState();return he.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(Zt,"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 Xo(){let e=he.useContext(Ko),t=$n();return he.useMemo(()=>e?.compiled??(t?.contract?jo(Ns(Sn(zs,t.contract),t.colorMode==="light"?"light":"dark"),{colorMode:t.colorMode==="light"?"light":"dark"}):Si),[e?.compiled,t?.contract,t?.colorMode])}i(Xo,"useUIResolvedTokens");function Cn({children:e}){let t=he.useContext(Ko),o=$n(),n=xi(),r=Jn(),a=Zt(),l=he.useContext(Bs)+1,[s,d]=he.useState(null);he.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=jsxRuntime.jsx(Bs.Provider,{value:l,children:jsxRuntime.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?reactDom.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]=he.useState(false);return he.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-${he.useId().replace(/:/g,"")}`,o=he.useRef(null),[n,r]=he.useState(null),a=or(),l=Xo(),s=Us(l),[d,u]=he.useState(false),[m,c]=he.useState(null);return he.useEffect(()=>{if(!a)return;let p=true;return import('shaders/react').then(h=>{p&&r(h);}).catch(()=>{}),()=>{p=false;}},[a]),he.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]),jsxRuntime.jsxs("span",{ref:o,className:"monkeys-ui-button-light-edge-mask","data-ready":d||void 0,children:[jsxRuntime.jsx("svg",{width:"0",height:"0","aria-hidden":"true",className:"monkeys-ui-button-light-edge-defs",children:jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("filter",{id:t,x:"-30%",y:"-100%",width:"160%",height:"300%",colorInterpolationFilters:"sRGB",children:[jsxRuntime.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:s.glowBlur,result:"glow"}),jsxRuntime.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:s.flowBlur,result:"flow"}),jsxRuntime.jsxs("feMerge",{children:[jsxRuntime.jsx("feMergeNode",{in:"glow"}),jsxRuntime.jsx("feMergeNode",{in:"flow"})]})]})})}),jsxRuntime.jsxs("span",{className:"monkeys-ui-button-light-edge-flow",style:{filter:`url(#${t})`},children:[jsxRuntime.jsx("span",{className:"monkeys-ui-button-light-edge-ambient"}),a&&n&&m?jsxRuntime.jsx(n.Shader,{disableTelemetry:true,style:{width:"100%",height:"100%"},onReady:()=>u(true),children:jsxRuntime.jsx(n.LightEdge,{colorA:s.lightEdgeStart,colorB:s.end,...s.lightEdge,...e,stops:null,shape:m})}):null]})]})}i(Os,"ButtonLightEdge");var Mo=he.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:I="auto",activeBorderColor:C,type:R="button",className:P,style:F,children:L,onClick:N,onPointerDown:k,onKeyDown:T,...z}=n,H=he.useContext(Ko),Z=Zt(),[J,O]=Lt(f,x,false,y),K=m??(h?"light-edge":"none"),A=a??(l==="icon"?"ghost":l==="tile"?"outline":"solid"),ne={...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":J?1:"var(--monkeys-ui-button-glass-inactive-opacity,var(--monkeys-ui-default-button-glass-inactive-opacity))"}:{}},ee=g?J:z["aria-pressed"]===true||z["aria-pressed"]==="true",se=d==="primary"&&A==="solid"||ee&&l!=="icon"&&A!=="glass"&&K!=="brand-glow";return H?.colorSource==="platform"&&se&&(ne={color:"var(--monkeys-ui-button-primary-foreground)",...ne}),a==="switch"?jsxRuntime.jsx(qs,{...z,style:F,ref:o,type:R,value:z.value===void 0?void 0:String(z.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":K,"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:T,onClick:ce=>{if(p||z["aria-disabled"]===true||z["aria-disabled"]==="true"){ce.preventDefault();return}N?.(ce);}}):jsxRuntime.jsxs("button",{...z,dir:z.dir??Z,ref:o,type:R,style:ne,className:ft("monkeys-ui-button",P),"data-light-edge":K==="light-edge"?true:void 0,"data-effect":K,"data-emphasis":u,"data-shape":l,"data-variant":A,"data-tone":d,"data-size":c,"data-motion":I,"data-active-border":C?true:void 0,onPointerDown:ce=>{ce.currentTarget.dataset.input="pointer",k?.(ce);},onKeyDown:ce=>{ce.currentTarget.dataset.input="keyboard",T?.(ce);},"aria-pressed":g?J:z["aria-pressed"],"aria-busy":p||void 0,"aria-disabled":p||z["aria-disabled"],onClick:ce=>{if(p||z["aria-disabled"]===true||z["aria-disabled"]==="true"){ce.preventDefault();return}N?.(ce),g&&!ce.defaultPrevented&&O(!J);},children:[K==="light-edge"?jsxRuntime.jsx("span",{...r("effect","monkeys-ui-button-light-edge"),"aria-hidden":"true",children:jsxRuntime.jsx(Os,{...h===true||!h?{}:h})}):null,jsxRuntime.jsxs("span",{...r("label","monkeys-ui-button-label"),"data-loading":p||void 0,children:[s?jsxRuntime.jsx("span",{...r("icon","monkeys-ui-button-icon"),"aria-hidden":"true",children:s}):null,L]}),p?jsxRuntime.jsx("span",{...r("spinner","monkeys-ui-button-spinner"),"aria-hidden":"true"}):null]})},"Button"));he.forwardRef(i(function(t,o){return jsxRuntime.jsx(Mo,{...t,ref:o,toggle:true})},"ToggleButton"));he.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),I=Zt(g==="rtl"||g==="ltr"?g:void 0),[C,R]=Lt(o,n,t[0]?.id??"",r),P=he.useRef(null),F=he.useRef(n??t[0]?.id??"");he.useImperativeHandle(y,()=>P.current,[]),Wo(P,()=>{o===void 0&&R(F.current);});let L=Math.max(0,t.findIndex(E=>E.id===C)),N=t[L],k=or(),[T,z]=he.useState("keyboard"),H=he.useRef(null),Z=k&&T==="pointer"&&!l&&!s,J={label:N?.label,color:N?.color},[O,K]=he.useState({layers:[J,J],active:0}),A=O.layers[O.active];if(A.label!==J.label||A.color!==J.color){let E=1-O.active;K({layers:O.layers.map((W,te)=>te===E?J:W),active:E});}let ne=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"),se=t.map((E,W)=>{let te=t.length>1?W/(t.length-1):0;return `${E.color} ${ee(te)}`}),ce=t.length>1?`linear-gradient(to ${I==="rtl"?"left":"right"}, ${se.join(", ")})`:N?.color,B=l||s||t.length<2,j=i(E=>{let W=t[Number(E.value)];!B&&W&&a?.(W.id);},"commit");return jsxRuntime.jsxs("div",{className:ft("monkeys-ui-color-slider",d),"data-animated":Z||void 0,"data-disabled":l||t.length===0||void 0,dir:I,style:u,children:[jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-track",style:{background:ce},"aria-hidden":"true"}),jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-positioner",style:{transform:`translateX(${(I==="rtl"?-1:1)*ne*100}%)`},"aria-hidden":"true",children:jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-thumb","data-ink":Ti(N?.color),style:{"--monkeys-ui-color-slider-selected":N?.color},children:O.layers.map((E,W)=>jsxRuntime.jsx("span",{className:"monkeys-ui-color-slider-sample","data-active":W===O.active,"data-ink":Ti(E.color),style:{"--monkeys-ui-color-slider-selected":E.color},children:jsxRuntime.jsx("span",{className:W===O.active?"monkeys-ui-color-slider-label":"monkeys-ui-color-slider-previous-label",children:E.label})},W))})}),jsxRuntime.jsx("input",{...x,...$,ref:P,type:"range",dir:I,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":N?.label??"",className:"monkeys-ui-color-slider-input",onPointerDown:E=>{m?.(E),s&&E.preventDefault(),!B&&!E.defaultPrevented&&E.isPrimary!==false&&E.button===0&&(H.current={id:E.pointerId,x:E.clientX,y:E.clientY},z("pointer"));},onPointerMove:E=>{c?.(E);let W=H.current;W?.id===E.pointerId&&Math.hypot(E.clientX-W.x,E.clientY-W.y)>3&&z("drag");},onPointerCancel:E=>{H.current=null,z("keyboard"),p?.(E);},onKeyDown:E=>{H.current=null,z("keyboard"),h?.(E),s&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(E.key)&&E.preventDefault();},onChange:E=>{if(!B){let W=t[Number(E.target.value)];W&&R(W.id);}},onPointerUp:E=>{H.current=null,v?.(E),E.defaultPrevented||j(E.currentTarget);},onKeyUp:E=>{w?.(E),!E.defaultPrevented&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(E.key)&&j(E.currentTarget);}}),f?jsxRuntime.jsx("input",{type:"hidden",name:f,form:x.form,value:N?.id??"",disabled:l||t.length===0}):null]})},"ColorSlider"));var gp=he.createContext(null);function po(e){let t=he.useContext(gp),o=Zt(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=he.forwardRef(i(function(t,o){let n=po(t);if(t.variant==="tags")return t.mode==="select"?jsxRuntime.jsx(hp,{...t,ref:o}):jsxRuntime.jsx(fp,{...t,ref:o});if(t.variant==="search")return jsxRuntime.jsx(yp,{...t,ref:o});if(t.variant==="number")return jsxRuntime.jsx(vp,{...t,ref:o});let{variant:r,className:a,...l}=t;return jsxRuntime.jsx("input",{...l,...n,className:ft("monkeys-ui-input",a),ref:o})},"Input")),fp=he.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,...$},I){let C=po($),[R,P]=Lt(n,r,[],a),[F,L]=Lt(l,void 0,"",s),[N,k]=he.useState(""),T=he.useRef(false),z=he.useRef(null),H=h||v;he.useImperativeHandle(I,()=>z.current,[]);let Z=he.useRef(r??[]);Wo(z,()=>{n===void 0&&P(Z.current),L("");}),he.useEffect(()=>{z.current?.setCustomValidity(C.required&&R.length===0?"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E":"");},[C.required,R.length]);let J=i(O=>{H||(P(R.filter((K,A)=>A!==O)),k(`${d} ${R[O]}`),z.current?.focus());},"remove");return jsxRuntime.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")&&z.current?.focus();},children:[R.map((O,K)=>jsxRuntime.jsx(Gs,{label:O,disabled:H,removeLabel:d,onRemove:()=>J(K)},`${K}:${O}`)),jsxRuntime.jsx("input",{...$,...C,ref:z,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=>{H||(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||H||T.current||O.nativeEvent.isComposing||O.keyCode===229))if(O.key==="Enter"){O.preventDefault();let K=F.trim();K&&!R.includes(K)&&(P([...R,K]),k(K)),L("");}else O.key==="Backspace"&&F===""&&R.length&&(O.preventDefault(),J(R.length-1));}}),u?R.map((O,K)=>jsxRuntime.jsx("input",{type:"hidden",name:u,form:m,value:O,disabled:h},K)):null,jsxRuntime.jsx("span",{className:"monkeys-ui-visually-hidden","aria-live":"polite","aria-atomic":"true",children:N})]})},"InputTagsControl"));function Gs({label:e,disabled:t,removeLabel:o,onRemove:n,onActivate:r}){return jsxRuntime.jsxs("span",{className:"monkeys-ui-input-tag",children:[r?jsxRuntime.jsx("button",{type:"button",className:"monkeys-ui-input-tag-text monkeys-ui-input-tag-activate",title:e,disabled:t,onClick:r,children:e}):jsxRuntime.jsx("span",{className:"monkeys-ui-input-tag-text",title:e,children:e}),n?jsxRuntime.jsx("button",{type:"button",className:"monkeys-ui-input-tag-remove",disabled:t,"aria-label":`${o} ${e}`,onClick:n,children:jsxRuntime.jsx(lucideReact.X,{size:"var(--monkeys-ui-icon-size-s14,var(--monkeys-ui-default-icon-size-s14))","aria-hidden":"true"})}):null]})}i(Gs,"InputTag");var hp=he.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=he.useRef(null),$=he.useRef(null),I=he.useRef(null),[C,R]=he.useState(""),P=c||p;return he.useImperativeHandle(f,()=>y.current,[]),he.useEffect(()=>{y.current?.setCustomValidity(x.required&&!r.length?"\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E":"");},[x.required,r.length]),jsxRuntime.jsxs("div",{ref:I,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:[jsxRuntime.jsxs("div",{className:"monkeys-ui-tag-input-header",children:[jsxRuntime.jsx("span",{className:"monkeys-ui-label",children:n}),a?jsxRuntime.jsx("button",{ref:$,type:"button",className:"monkeys-ui-tag-input-add",disabled:P,"aria-label":"\u6DFB\u52A0"+n,onClick:a,children:jsxRuntime.jsx(lucideReact.Plus,{"aria-hidden":"true"})}):null]}),r.length?jsxRuntime.jsx("div",{className:"monkeys-ui-tag-input-items",children:r.map(F=>jsxRuntime.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??I.current)?.focus());}:void 0},F.id))}):null,jsxRuntime.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??I.current)?.focus();}}),u?r.map(F=>jsxRuntime.jsx("input",{type:"hidden",name:u,form:m,value:F.id,disabled:c},F.id)):null,jsxRuntime.jsx("span",{className:"monkeys-ui-visually-hidden","aria-live":"polite","aria-atomic":"true",children:C})]})},"InputTagSelectionControl"));he.forwardRef(i(function({className:t,...o},n){let r=po(o);return jsxRuntime.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");he.forwardRef(i(function(t,o){return jsxRuntime.jsx(sr,{...t,variant:"number",ref:o})},"NumberInput"));var vp=he.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=he.useRef(null),c=he.useRef(n??"");return he.useImperativeHandle(s,()=>m.current,[]),Wo(m,()=>{o===void 0&&u(c.current);}),jsxRuntime.jsx(sr,{...l,variant:"default",type:"text",inputMode:"decimal",value:d,onChange:p=>{u(p.target.value),a?.(p);},ref:m})},"InputNumberControl"));he.forwardRef(i(function(t,o){return jsxRuntime.jsx(sr,{...t,variant:"search",ref:o})},"SearchField"));var yp=he.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=he.useRef(false),y=he.useRef(null);he.useImperativeHandle(w,()=>y.current,[]);let $=he.useRef(n??"");Wo(y,()=>{o===void 0&&f($.current);});let I=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 jsxRuntime.jsxs("div",{className:ft("monkeys-ui-search",d),children:[jsxRuntime.jsx(lucideReact.Search,{size:"var(--monkeys-ui-icon-size-s17,var(--monkeys-ui-default-icon-size-s17))","aria-hidden":"true"}),jsxRuntime.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?jsxRuntime.jsx(Mo,{shape:"icon","aria-label":s,size:"sm",disabled:p||h,onClick:I,children:jsxRuntime.jsx(lucideReact.X,{size:"var(--monkeys-ui-icon-size-s14,var(--monkeys-ui-default-icon-size-s14))","aria-hidden":"true"})}):null]})},"InputSearchControl")),qs=he.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 jsxRuntime.jsx(ir__namespace.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:jsxRuntime.jsx(ir__namespace.Thumb,{className:"monkeys-ui-switch-thumb"})})},"Switch"));he.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=he.useId(),v=`${h}-label`,w=o?`${h}-description`:void 0;return jsxRuntime.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:[jsxRuntime.jsxs("div",{className:"monkeys-ui-switch-field-copy",children:[jsxRuntime.jsx("span",{id:v,className:"monkeys-ui-switch-field-label",children:t}),o?jsxRuntime.jsx("span",{id:w,className:"monkeys-ui-switch-field-description",children:o}):null]}),jsxRuntime.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"));he.forwardRef(i(function({indicator:t=jsxRuntime.jsx(lucideReact.ChevronDown,{size:12}),className:o,children:n,type:r="button",...a},l){return jsxRuntime.jsxs("button",{...a,ref:l,type:r,className:ft("monkeys-ui-select",o),children:[jsxRuntime.jsx("span",{className:"min-w-0 truncate",children:n}),jsxRuntime.jsx("span",{className:"shrink-0","aria-hidden":"true",children:t})]})},"PickerTrigger"));he.forwardRef(i(function(t,o){return t.variant==="multiple"?jsxRuntime.jsx(wp,{...t,ref:o}):jsxRuntime.jsx(xp,{...t,ref:o})},"Select"));var xp=he.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=Zt(h.dir),y=Ci(),{required:$,...I}=w;return jsxRuntime.jsxs(Re__namespace.Root,{...h,dir:x,required:$,value:g,onValueChange:f,children:[jsxRuntime.jsxs(Re__namespace.Trigger,{ref:v,...I,"aria-required":$||void 0,"aria-label":l,className:ft("monkeys-ui-select",n),style:r,children:[jsxRuntime.jsx(Re__namespace.Value,{placeholder:o??y.messages.multiSelect.placeholder}),jsxRuntime.jsx(Re__namespace.Icon,{"aria-hidden":"true",children:jsxRuntime.jsx(lucideReact.ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))"})})]}),jsxRuntime.jsx(Cn,{children:jsxRuntime.jsxs(Re__namespace.Content,{className:"monkeys-ui-select-content",position:"popper",sideOffset:6,children:[jsxRuntime.jsx(Re__namespace.ScrollUpButton,{children:jsxRuntime.jsx(lucideReact.ChevronUp,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})}),jsxRuntime.jsx(Re__namespace.Viewport,{children:t.map(C=>jsxRuntime.jsxs(Re__namespace.Item,{value:C.value,disabled:C.disabled,className:"monkeys-ui-select-item",children:[jsxRuntime.jsx(Re__namespace.ItemText,{children:C.label}),jsxRuntime.jsx(Re__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]},C.value))}),jsxRuntime.jsx(Re__namespace.ScrollDownButton,{children:jsxRuntime.jsx(lucideReact.ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]})})]})},"SingleSelect")),wp=he.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),[$,I]=Lt(p,h,false,v),C=he.useRef(null),R=he.useRef(null),P=he.useRef(m??[]);he.useImperativeHandle(g,()=>C.current,[]),Wo(R,()=>{u===void 0&&y(P.current),I(false),J(false);});let F=Zt(w.dir),L=Ci(),{required:N,...k}=f,T=he.useId(),z=f.id??T,H=T+"-required",[Z,J]=he.useState(false);he.useEffect(()=>{(x.length||!N)&&J(false);},[x.length,N]);let O=t.filter(A=>x.includes(A.value)).map(A=>A.label),K=i(A=>{A.disabled||w.disabled||y(x.includes(A.value)?x.filter(ne=>ne!==A.value):[...x,A.value]);},"toggle");return jsxRuntime.jsxs(Pe__namespace.Root,{dir:F,open:$,onOpenChange:I,modal:false,children:[jsxRuntime.jsx(Pe__namespace.Trigger,{asChild:true,children:jsxRuntime.jsxs("button",{ref:C,type:"button",...k,id:z,"aria-label":l,"aria-describedby":[f["aria-describedby"],N?H:""].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:[jsxRuntime.jsx("span",{className:"monkeys-ui-select-value",children:O.length?O.join("\u3001"):o??L.messages.multiSelect.placeholder}),jsxRuntime.jsx(lucideReact.ChevronDown,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})]})}),jsxRuntime.jsx(Cn,{children:jsxRuntime.jsx(Pe__namespace.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(A=>jsxRuntime.jsxs(Pe__namespace.CheckboxItem,{checked:x.includes(A.value),disabled:A.disabled,onSelect:ne=>{ne.preventDefault(),K(A);},className:"monkeys-ui-select-item",children:[jsxRuntime.jsx("span",{children:A.label}),jsxRuntime.jsx(Pe__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{size:"var(--monkeys-ui-icon-size-s12,var(--monkeys-ui-default-icon-size-s12))","aria-hidden":"true"})})]},A.value))})}),N?jsxRuntime.jsx("span",{id:H,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,jsxRuntime.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:N,onInvalid:A=>{A.preventDefault(),J(true),C.current?.focus();}}),w.name?x.map(A=>jsxRuntime.jsx("input",{type:"hidden",name:w.name,form:w.form,value:A,disabled:w.disabled},A)):null]})},"MultipleSelect"));var Ks=co([Et.red,Et.orange,Et.yellow,Et.green,Et.cyan,Et.blue,Et.purple]);function Io({children:e,size:t=15,strokeWidth:o=1.8}){return jsxRuntime.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(Io,"Icon");var $p={clip:jsxRuntime.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:jsxRuntime.jsx("path",{d:"M4 20V10M10 20V4M16 20v-7M22 20H2"}),layers:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M12 2 2 7l10 5 10-5-10-5z"}),jsxRuntime.jsx("path",{d:"M2 17l10 5 10-5M2 12l10 5 10-5"})]}),globe:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"10"}),jsxRuntime.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:jsxRuntime.jsxs("svg",{width:"11",height:"16",viewBox:"0 0 38 57","aria-hidden":"true",children:[jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.jsx("path",{d:"M19 0h9.5a9.5 9.5 0 1 1 0 19H19V0z",fill:"var(--bui-brand-figma-orange)"}),jsxRuntime.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:jsxRuntime.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 127 127","aria-hidden":"true",children:[jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.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:jsxRuntime.jsxs("svg",{width:"15",height:"12",viewBox:"0 0 256 193","aria-hidden":"true",children:[jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.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)"}),jsxRuntime.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:I,disabled:C=false,busy:R=false,onStop:P,inputLabel:F}){let L=oe(),N=Xo(),k=e==="Pill",[T,z]=he.useState(""),H=$??T,Z=i(D=>{z(D),I?.(D);},"setDraft"),J=he.useRef(H);J.current=H;let O=he.useRef(false),K=he.useRef(true),[A,ne]=he.useState(false);he.useEffect(()=>(K.current=true,()=>{K.current=false;}),[]);let ee=t.length>0,se=n.length>0,ce=ee||!!s||!!p,[B,j]=he.useState(false),[E,W]=he.useState(false),[te,ie]=he.useState(false),[le,Be]=he.useState(n[0]??{key:"",name:L("Model")}),[G,fe]=he.useState(0),[wt,Ht]=he.useState(false),ve=Math.max(1,Math.min(5,Math.trunc(w)||1)),We=wt||v||ve>1||!!h,[Mt,$o]=he.useState(null),[_t,mt]=he.useState(false),[It,So]=he.useState(null),[ao,X]=he.useState(null),[et,so]=he.useState(0),[Kr,Xr]=he.useState(0),Ce=he.useRef(null),Yt=he.useRef(null),lo=he.useRef(null),S=he.useRef(null),Y=he.useRef(null),Oe=he.useRef([]),Bt=he.useRef([]),At=he.useRef(null),Co=he.useRef(null),un=he.useRef(false),Tt=B?null:Cp(H),st=C||A?null:E||Tt?.kind==="at"&&ee?"at":Tt?.kind==="slash"&&o.length?"slash":null,To=E?"":Tt?.query??"",Vt=st==="at"?t.filter(D=>D.name.toLowerCase().includes(To)):st==="slash"?o.filter(D=>D.name.slice(1).startsWith(To)):[];he.useEffect(()=>{fe(0),mt(false);},[st,To]),he.useLayoutEffect(()=>{let D=Oe.current[G];D&&$o({top:D.offsetTop,height:D.offsetHeight});},[st,To,G,a,Vt.length]);let On=n.findIndex(D=>D.key===le.key);he.useLayoutEffect(()=>{if(!te)return;let D=Bt.current[ao??On];D&&So({top:D.offsetTop,height:D.offsetHeight});},[te,ao,On]),he.useLayoutEffect(()=>{if(!te||!Ce.current||!Y.current)return;let D=Ce.current.getBoundingClientRect(),xe=Y.current.getBoundingClientRect();so(Math.max(0,Math.min(xe.left-D.left,D.width-176))),Xr(D.bottom-xe.top+8);},[te,We,le.name]),he.useEffect(()=>{te||X(null);},[te]);let xa=i(()=>{let D=At.current;if(!D)return null;try{return is({canvas:D,palette:Ks,direction:"ltr",bandTight:10,swellAmount:.85})}catch{return null}},"makeShader");he.useEffect(()=>{if(n.some(D=>D.accent))return Co.current=xa(),()=>{Co.current?.destroy(),Co.current=null;}},[]);let ac=i(()=>{if(un.current||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;Co.current?.destroy();let D=xa();if(Co.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=>{Be(D),ie(false),m?.(D.key),D.accent&&ac();},"selectModel");he.useLayoutEffect(()=>{let D=lo.current,xe=Yt.current,lt=S.current;if(!D||!xe||!lt)return;let Wt=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(D),Ra=(parseFloat(pn.paddingTop)||0)+(parseFloat(pn.paddingBottom)||0);Ht(H.includes(`
|
|
219
|
+
`)||lt.offsetWidth+8>dc);let Pa=Math.max(parseFloat(pn.minHeight)||28,(parseFloat(pn.lineHeight)||18)*ve+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");Wt();let Sa=xe.clientWidth,Ca=new ResizeObserver(()=>{Sa!==xe.clientWidth&&(Sa=xe.clientWidth,Wt());});return Ca.observe(xe),()=>Ca.disconnect()},[H,wt,v,ve,ce,se,u,g]),he.useEffect(()=>{if(!te&&!E)return;let D=i(xe=>{xe.target.closest("[data-promptbar]")||(ie(false),W(false));},"close");return document.addEventListener("pointerdown",D),()=>document.removeEventListener("pointerdown",D)},[te,E]);let Yr=i(()=>{W(false),ie(false);},"closeMenus"),wa=i(D=>{t.find(lt=>lt.key===D.key)?.attach?(s?.(),Tt&&Z(H.slice(0,Tt.start))):Z(st==="at"?`${Tt?H.slice(0,Tt.start):H}@${D.name} `:`${Tt?H.slice(0,Tt.start):H}${D.name} `),W(false),j(false),lo.current?.focus();},"pick"),Hn=(H.trim().length>0||r.length>0)&&!!(y||x)&&!R&&!C&&!A,ka=i(async()=>{if(!Hn||O.current)return;let D=H;O.current=true,ne(true),Yr();try{let xe=y?await y(D.trim()):void 0;xe!==!1&&await x?.(D.trim()),xe!==!1&&K.current&&J.current===D&&Z("");}catch{}finally{O.current=false,K.current&&ne(false);}},"send"),$a=jsxRuntime.jsx(Mo,{type:"button",shape:"icon",size:"sm",variant:"ghost","aria-label":L("Add attachments and sources"),"aria-expanded":ee?E:void 0,disabled:C||A,onClick:()=>{if(p){Yr();return}ie(false),ee?W(D=>!D):s?.(),lo.current?.focus();},className:`promptbar-attach shrink-0 text-ink-3 ${E?"bg-hover text-ink":""}`,children:jsxRuntime.jsx(lucideReact.Plus,{size:N.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"})});return jsxRuntime.jsx(U,{children:jsxRuntime.jsx("div",{"data-promptbar":true,className:"w-full",children:jsxRuntime.jsxs("div",{ref:Ce,className:"relative",children:[st&&jsxRuntime.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:[jsxRuntime.jsx("span",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-1 rounded-[6px] bg-hover",style:{top:Mt?.top??0,height:Mt?.height??0,opacity:Mt&&_t&&Vt.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"}}),Vt.map((D,xe)=>{let lt=st==="at"?t.find(Wt=>Wt.key===D.key):void 0;return jsxRuntime.jsxs("button",{type:"button",ref:Wt=>{Oe.current[xe]=Wt;},onMouseDown:Wt=>Wt.preventDefault(),onMouseEnter:()=>{fe(xe),mt(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&&jsxRuntime.jsx("span",{className:"flex size-5.5 shrink-0 items-center justify-center text-ink-2",children:lt.brand?Sp[lt.brand]:jsxRuntime.jsx(Io,{size:15,children:$p[lt.glyph??"clip"]})}),jsxRuntime.jsx("span",{className:"shrink-0 text-[12.5px] font-medium text-ink",children:D.name}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[12px] text-ink-3",children:D.desc}),lt?.connect&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,onClick:Wt=>{Wt.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)}),Vt.length===0&&jsxRuntime.jsx("div",{className:"flex h-9 items-center px-2 text-[12px] text-ink-3",children:L("noMatches",{query:To})}),jsxRuntime.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")})]}),te&&jsxRuntime.jsxs("div",{onMouseLeave:()=>X(null),className:"absolute z-10 w-44 rounded-[10px] bg-surface p-1 shadow-raised",style:{left:et,bottom:Kr,animation:"bui-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"bottom left"},children:[jsxRuntime.jsx("span",{"aria-hidden":true,className:"pointer-events-none absolute inset-x-1 rounded-[6px] bg-hover",style:{top:It?.top??0,height:It?.height??0,opacity:It&&ao!==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,xe)=>jsxRuntime.jsxs("button",{type:"button",ref:lt=>{Bt.current[xe]=lt;},onMouseDown:lt=>lt.preventDefault(),onMouseEnter:()=>X(xe),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:[jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[12.5px] font-medium text-ink",children:D.name}),jsxRuntime.jsx("span",{className:"shrink-0 text-[11px] text-ink-3",children:D.tag}),jsxRuntime.jsx("span",{className:`shrink-0 text-ink ${D.key===le.key?"":"invisible"}`,children:jsxRuntime.jsx(Io,{size:13,strokeWidth:2.5,children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})})})]},D.key))]}),jsxRuntime.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||We?"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||We?"rounded-[24px]":"rounded-full":v?"rounded-[22px]":"rounded-[14px]"}`,children:[jsxRuntime.jsx("canvas",{ref:At,"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-10 h-full w-full",style:{borderRadius:"inherit"}}),jsxRuntime.jsx("span",{ref:S,"aria-hidden":"true",className:"promptbar-measure pointer-events-none absolute invisible whitespace-pre text-[13px] leading-[18px]",children:H}),r.length>0&&jsxRuntime.jsx("div",{className:`flex flex-wrap gap-1.5 pt-0.5 ${k?"px-1":"px-0.5"}`,children:r.map((D,xe)=>jsxRuntime.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:[jsxRuntime.jsx(Io,{size:12,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsxRuntime.jsx("path",{d:"M14 2v6h6"})]})}),jsxRuntime.jsx("span",{className:"max-w-36 truncate",children:D}),jsxRuntime.jsx("button",{type:"button","aria-label":`Remove ${D}`,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:jsxRuntime.jsx(Io,{size:10,strokeWidth:2.5,children:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]},`${D}-${xe}`))}),jsxRuntime.jsxs("div",{ref:Yt,className:"promptbar-controls flex flex-wrap items-end gap-x-1 gap-y-1.5",children:[ce&&(p?p($a,Ce):$a),h,jsxRuntime.jsx("textarea",{ref:lo,style:{minHeight:`var(--bui-token-composer-control-height, ${v?"68px":"calc(var(--bui-spacing) * 7)"})`},rows:ve,value:H,disabled:C||A,onChange:D=>{Z(D.target.value),j(false),W(false);},onKeyDown:D=>{if(!(D.nativeEvent.isComposing||D.keyCode===229)){if(st&&Vt.length>0){if(D.key==="ArrowDown"||D.key==="ArrowUp"){D.preventDefault(),mt(true),fe(xe=>(xe+(D.key==="ArrowDown"?1:Vt.length-1))%Vt.length);return}if(D.key==="Enter"&&!D.shiftKey||D.key==="Tab"){D.preventDefault(),wa(Vt[G]);return}}if(D.key==="Escape"){j(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":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 ${We?"order-first basis-full":"flex-1"}`}),se&&jsxRuntime.jsxs("button",{disabled:C||A,ref:Y,type:"button","aria-expanded":te,"aria-label":L("Choose model"),onClick:()=>{W(false),ie(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:[le.name,jsxRuntime.jsx("span",{className:"text-ink-3",children:jsxRuntime.jsx(Io,{size:11,strokeWidth:2.4,children:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})})]}),We&&jsxRuntime.jsx("span",{className:"flex-1","aria-hidden":"true"}),(g||u)&&jsxRuntime.jsx("button",{disabled:C||A||!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?jsxRuntime.jsx("span",{className:"flex h-3.5 items-center gap-[2.5px]",children:[0,1,2].map(D=>jsxRuntime.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))}):jsxRuntime.jsx(Io,{size:15,strokeWidth:2,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z"}),jsxRuntime.jsx("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2M12 19v3"})]})})}),jsxRuntime.jsx("button",{type:"button","aria-label":L(R&&P?"Stop response":"Send"),disabled:R&&P?false:!Hn,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:Hn||R&&P?"var(--bui-token-primary, var(--bui-ink))":"var(--bui-line-strong)",color:Hn||R&&P?"var(--bui-token-primary-foreground, var(--bui-surface))":"var(--bui-ink-2)"},children:jsxRuntime.jsx(Io,{size:16,strokeWidth:2.4,children:R&&P?jsxRuntime.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"currentColor",stroke:"none"}):jsxRuntime.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 jsxRuntime.jsx("span",{"aria-hidden":true,className:"grid shrink-0 grid-cols-[repeat(3,4px)] gap-[1.5px]",children:e.map((n,r)=>jsxRuntime.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]=he.useState(()=>Date.now()),[n,r]=he.useState(()=>Date.now()),a=t??o,l=e===void 0&&Number.isFinite(a);if(he.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 jsxRuntime.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]=he.useState(true),{delays:m,dur:c,round:p}=dr[t]??dr.Drive,h=jsxRuntime.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=jsxRuntime.jsx(Np,{elapsedMs:n,startedAtMs:r});return l?jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{"data-bui-loading-state":true,role:"status",className:"flex w-fit flex-col items-start",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2.5",children:[jsxRuntime.jsx(Mi,{...dr.Drive}),h,v]}),jsxRuntime.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:jsxRuntime.jsx("div",{className:"relative aspect-video w-full",style:{background:"var(--bui-tooltip-bg)"},children:d&&o?jsxRuntime.jsx("video",{src:o,autoPlay:true,muted:true,loop:true,playsInline:true,onError:()=>u(false),className:"h-full w-full object-cover"}):jsxRuntime.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1.5",children:[jsxRuntime.jsx(Mi,{...dr.Drive}),jsxRuntime.jsx("span",{className:"px-3 text-center font-mono text-[10px]",style:{color:"var(--bui-tooltip-muted)"},children:a("Video unavailable")})]})})})]})}):jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{"data-bui-loading-state":true,role:"status",className:"flex max-w-full w-fit items-center gap-2.5",children:[jsxRuntime.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?jo(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=he.useContext(xn),g=he.useContext(qo),f=he.useContext(wn),x=he.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=he.useMemo(()=>yi(t,o,w),[t,o,w]),$=he.useMemo(()=>({...y,provided:true}),[y]),I=he.useMemo(()=>Ap(r,l,s,g.resolvedTheme),[l,s,g.resolvedTheme,r]),C=he.useMemo(()=>({provided:true,resolvedTheme:I,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,I,h,v,a]),R=he.useMemo(()=>({provided:true,direction:n??f.direction??"ltr"}),[n,f.direction]),P=he.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 jsxRuntime.jsx(xn.Provider,{value:$,children:jsxRuntime.jsx(qo.Provider,{value:C,children:jsxRuntime.jsx(wn.Provider,{value:R,children:jsxRuntime.jsx(kn.Provider,{value:P,children:e})})})})}i(Ai,"MonkeysProvider");function Ei({container:e,composer:t=false,children:o}){let n=he.useRef(null),[r]=he.useState(()=>typeof document>"u"?null:document.createElement("div"));he.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]),he.useLayoutEffect(()=>()=>r?.remove(),[r]);let a=jsxRuntime.jsx(U,{portal:true,children:jsxRuntime.jsx("div",{className:t?"bui-composer-host":"bui-conversation-host","data-bui-composer-placement":t?e?"floating":"inline":void 0,children:jsxRuntime.jsx(Ai,{portal:t&&e?{container:r}:void 0,children:jsxRuntime.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 jsxRuntime.jsx(U,{children:jsxRuntime.jsx("div",{ref:n,className:t?"bui-composer-anchor":"bui-conversation-anchor",children:r?reactDom.createPortal(a,r):a})})}i(Ei,"ConversationHost");var Up=[],Fp=[],Op={initialPrompt:"",placeholder:"Enter a message"};function Hp({label:e,sub:t,time:o,body:n,resolving:r}){let a=oe();return jsxRuntime.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:[jsxRuntime.jsxs("div",{className:"flex items-center gap-1 text-[12px] leading-[1.3]",children:[jsxRuntime.jsx("span",{className:"font-medium text-ink",children:e}),jsxRuntime.jsx("span",{className:"text-ink-2",children:t}),o&&jsxRuntime.jsx("span",{className:"text-ink",children:a("duration",{time:o})})]}),jsxRuntime.jsx("p",{className:"text-[13px] leading-normal text-ink",children:n})]})}i(Hp,"Section");function _p({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:I,composerContainer:C,conversationContainer:R,headerActions:P,sidePanel:F,readable:L=false,showMessageLabels:N=true}){let k=oe(),T=Te(Op,o),[z,H]=he.useState(""),Z=d??z,J=i(G=>{H(G),u?.(G);},"setDraft"),[O,K]=he.useState(false),A=he.useRef(false),ne=he.useRef(true),ee=he.useRef(null),se=he.useRef(true),ce=[...e].reverse().find(G=>G.role==="user")?.id;he.useEffect(()=>{ce&&(se.current=true);},[ce]),he.useEffect(()=>(ne.current=true,()=>{ne.current=false;}),[]),he.useEffect(()=>{l&&se.current&&ee.current&&(ee.current.scrollTop=ee.current.scrollHeight);},[l,e,r,w]),he.useEffect(()=>{let G=ee.current,fe=G?.firstElementChild;if(!l||!G||!fe||typeof ResizeObserver>"u")return;let wt=new ResizeObserver(()=>{se.current&&(G.scrollTop=G.scrollHeight);});return wt.observe(fe),()=>wt.disconnect()},[l]);let[B,j]=he.useState(T.initialPrompt),[E,W]=he.useState(t[0]??""),te=he.useRef(null),ie=!!B,le=Z.trim().length>0&&!r&&!O&&!c&&!m&&!!n,Be=i(async()=>{if(!le||A.current)return;let G=Z.trim();A.current=true,K(true);try{await n?.(G)!==!1&&ne.current&&(j(G),J(""),se.current=!0);}catch{}finally{A.current=false,ne.current&&K(false);}},"send");return l?jsxRuntime.jsx(Ei,{container:R,children:jsxRuntime.jsx(U,{children:jsxRuntime.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)&&jsxRuntime.jsxs("header",{className:"chat-composer-header flex shrink-0 items-center justify-between border-b border-line px-4 py-3",children:[jsxRuntime.jsx("span",{className:"truncate text-[14px] font-medium",children:s}),P]}),jsxRuntime.jsxs("div",{className:"chat-composer-body",children:[jsxRuntime.jsxs("div",{className:"chat-composer-main",children:[jsxRuntime.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 G=ee.current;G&&(se.current=G.scrollHeight-G.scrollTop-G.clientHeight<48);},children:jsxRuntime.jsxs("div",{className:"chat-composer-content",children:[c?jsxRuntime.jsx("span",{role:"status",className:"text-[13px] text-ink-2",children:k("Loading")}):e.map((G,fe)=>jsxRuntime.jsxs("article",{"aria-label":N?void 0:G.label,className:G.role==="user"?"ml-auto max-w-full rounded-xl bg-field px-3 py-2":"w-full min-w-0",style:!N&&G.role==="user"?{width:"fit-content",maxWidth:"85%"}:void 0,children:[N&&jsxRuntime.jsx("div",{className:"mb-1 text-[12px] font-medium text-ink-2",children:G.label}),g?g(G,fe):jsxRuntime.jsx("p",{className:"whitespace-pre-wrap break-words text-[13px] leading-normal",children:G.body})]},G.id??fe)),!c&&!r&&!p&&e.length===0&&he.Children.toArray(w).length===0&&jsxRuntime.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?jsxRuntime.jsx(Bi,{variant:"Dots",label:k("Loading")}):f)]})}),(!m||y||$||p)&&jsxRuntime.jsx("div",{className:"chat-composer-footer shrink-0 p-3",children:jsxRuntime.jsxs(Ei,{container:C,composer:true,children:[$&&jsxRuntime.jsx("div",{className:"chat-composer-progress",children:$}),p&&jsxRuntime.jsxs("div",{role:"alert",className:"chat-composer-alert flex items-center gap-2 px-4 py-2 text-[13px] text-red",children:[jsxRuntime.jsx("span",{children:p}),h&&jsxRuntime.jsx("button",{type:"button",onClick:h,className:"underline",children:k("Retry")})]}),I,(!m||y)&&jsxRuntime.jsxs("div",{className:"chat-composer-input",children:[y&&jsxRuntime.jsx("div",{className:"chat-composer-accessory",children:y}),!m&&(x===void 0?jsxRuntime.jsx(Ni,{value:Z,onValueChange:J,disabled:c,busy:r,onStop:v,placeholder:T.placeholder,inputLabel:k("Chat prompt"),onSubmit:n?async G=>{let fe=await n(G);return fe!==false&&(se.current=true),fe}:void 0}):x)]})]})})]}),F&&jsxRuntime.jsx("aside",{className:"chat-composer-side-panel",children:F})]})]})})}):jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{className:"flex h-[288px] w-full max-w-95 flex-col self-start overflow-hidden rounded-[14px] bg-surface shadow-card",children:[jsxRuntime.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-line p-1.5",children:[jsxRuntime.jsx("div",{className:"flex items-center",children:t.map(G=>jsxRuntime.jsx("button",{type:"button","aria-pressed":E===G,onClick:()=>W(G),className:`rounded-[var(--bui-radius-chip)] px-2 py-[3px] text-[13px] text-ink transition-[background-color,opacity] duration-100 ${E===G?"bg-field":"opacity-50 hover:opacity-75"}`,children:G},G))}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("path",{d:"M12 5v14M5 12h14"},"p"),jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("path",{d:"M12 7v5l3 2"})]},"h"),jsxRuntime.jsxs("g",{fill:"currentColor",stroke:"none",children:[jsxRuntime.jsx("circle",{cx:"5",cy:"12",r:"1.8"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"1.8"}),jsxRuntime.jsx("circle",{cx:"19",cy:"12",r:"1.8"})]},"e")].map((G,fe)=>jsxRuntime.jsx("button",{type:"button","aria-label":[k("New"),k("History"),k("More")][fe],onClick:()=>a?.(["new","history","more"][fe]),className:`flex size-6 items-center justify-center rounded-[var(--bui-radius-chip)] text-ink-3
|
|
220
|
+
transition-colors duration-100 hover:bg-hover hover:text-ink-2`,children:jsxRuntime.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:G})},fe))})]}),jsxRuntime.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:[jsxRuntime.jsx("div",{className:"flex justify-end pl-14",children:jsxRuntime.jsx("div",{className:`rounded-xl bg-field px-3 py-1.5 text-[13px] leading-[1.4] text-ink
|
|
221
|
+
transition-[opacity,transform] duration-300`,style:{opacity:ie?1:0,transform:ie?"translateY(0)":"translateY(10px)",transitionTimingFunction:"cubic-bezier(0.23, 1, 0.32, 1)"},children:B})}),e.map((G,fe)=>jsxRuntime.jsx(Hp,{...G},fe)),r&&jsxRuntime.jsx("span",{role:"status",children:T.placeholder})]}),jsxRuntime.jsx("div",{className:"chat-composer-footer mt-auto shrink-0 p-1.5",children:jsxRuntime.jsxs("div",{role:"presentation",onClick:()=>te.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:[jsxRuntime.jsx("input",{ref:te,value:Z,onChange:G=>J(G.target.value),onKeyDown:G=>{G.key==="Enter"&&!G.nativeEvent.isComposing&&G.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"}),jsxRuntime.jsx("div",{className:"flex items-center justify-end",children:jsxRuntime.jsx("button",{type:"button","aria-label":k("Send"),disabled:!le,onClick:Be,className:`chat-composer-action flex size-7 items-center justify-center rounded-[var(--bui-radius-control)]
|
|
222
|
+
transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.96]`,style:{background:le?"var(--bui-token-primary, var(--bui-ink))":"var(--bui-line-strong)",color:le?"var(--bui-token-primary-foreground, var(--bui-surface))":"var(--bui-ink-2)"},children:jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M12 19V5M5 12l7-7 7 7"})})})})]})})]})})}i(_p,"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(jsxRuntime.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(jsxRuntime.jsx("span",{style:{color:s,fontWeight:d},children:l},n++)),o=a+l.length;}return o<e.length&&t.push(jsxRuntime.jsx("span",{children:e.slice(o)},n++)),t}i(Li,"highlight");function Zp({pieces:e}){return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.map((t,o)=>{if(t.change){let n=t.change==="add";return jsxRuntime.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 jsxRuntime.jsx("span",{children:Li(t.text)},o)})})}i(Zp,"Pieces");function Jp(){return jsxRuntime.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:jsxRuntime.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]=he.useState(false),p=he.useRef(true),h=he.useRef();he.useEffect(()=>(p.current=true,()=>{p.current=false,clearTimeout(h.current);}),[]);let v=e==="Diff",w=Te(em,l),g=n??o.join(`
|
|
223
223
|
`),f=he.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 jsxRuntime.jsx(U,{children:jsxRuntime.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:[jsxRuntime.jsxs("div",{className:"flex h-11 items-center gap-2 border-b border-line px-4 text-[12.5px]",children:[jsxRuntime.jsxs("span",{className:"inline-flex min-w-0 items-center gap-[7px]",children:[jsxRuntime.jsx(Jp,{}),jsxRuntime.jsx("span",{className:"truncate font-mono leading-none text-ink",children:a})]}),v?jsxRuntime.jsxs("span",{className:"ml-auto inline-flex items-center gap-2 font-mono text-[12px] leading-none tabular-nums",children:[jsxRuntime.jsxs("span",{className:"text-green",children:["+",x]}),jsxRuntime.jsxs("span",{className:"text-red",children:["-",y]})]}):jsxRuntime.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]
|
|
224
224
|
font-medium transition-colors duration-100 hover:bg-hover
|
|
225
|
-
${m?"text-green":"text-ink-3 hover:text-ink"}`,children:[m?jsxRuntime.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})}):jsxRuntime.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntime.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2.5"}),jsxRuntime.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]})]}),jsxRuntime.jsx("div",{className:"py-3 font-mono text-[12.5px] leading-[1.65] text-ink-2",children:v?jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-5 w-px bg-line"}),r.map(($,
|
|
226
|
-
${C?"bg-green-tint":R?"bg-red-tint":""}`,children:[(C||R)&&jsxRuntime.jsx("span",{className:"absolute inset-y-0 left-0 w-[3px]",style:{background:C?"var(--bui-green)":Xp}}),jsxRuntime.jsx("span",{className:`select-none text-center text-[11px] ${C?"text-green":R?"text-red":"text-ink-3"}`,children:P??""}),jsxRuntime.jsx("code",{className:"pr-3 pl-1 break-words whitespace-pre-wrap",children:jsxRuntime.jsx(Zp,{pieces:$.pieces})})]},
|
|
225
|
+
${m?"text-green":"text-ink-3 hover:text-ink"}`,children:[m?jsxRuntime.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})}):jsxRuntime.jsxs("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntime.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2.5"}),jsxRuntime.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]})]}),jsxRuntime.jsx("div",{className:"py-3 font-mono text-[12.5px] leading-[1.65] text-ink-2",children:v?jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-5 w-px bg-line"}),r.map(($,I)=>{let C=$.type==="add",R=$.type==="del",P=R?$.old:$.cur;return jsxRuntime.jsxs("div",{className:`relative grid grid-cols-[20px_minmax(0,1fr)] items-start
|
|
226
|
+
${C?"bg-green-tint":R?"bg-red-tint":""}`,children:[(C||R)&&jsxRuntime.jsx("span",{className:"absolute inset-y-0 left-0 w-[3px]",style:{background:C?"var(--bui-green)":Xp}}),jsxRuntime.jsx("span",{className:`select-none text-center text-[11px] ${C?"text-green":R?"text-red":"text-ink-3"}`,children:P??""}),jsxRuntime.jsx("code",{className:"pr-3 pl-1 break-words whitespace-pre-wrap",children:jsxRuntime.jsx(Zp,{pieces:$.pieces})})]},I)})]}):jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-5 w-px bg-line"}),o.map(($,I)=>jsxRuntime.jsxs("div",{className:"grid grid-cols-[20px_minmax(0,1fr)] items-start",children:[jsxRuntime.jsx("span",{className:"select-none text-center text-[11px] text-ink-3",children:I+1}),jsxRuntime.jsx("code",{className:"pr-3 pl-1 break-words whitespace-pre-wrap",children:Li($)})]},I))]})})]})})}i(Di,"BUICodeBlock");var rm={header:"All chunks",count:""},im=[];function am({chunks:e=im,labels:t,className:o}){let[n,r]=he.useState(false),a=Te(rm,t);return he.useEffect(()=>{let l=setTimeout(()=>r(true),700);return ()=>clearTimeout(l)},[]),jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{className:`flex w-full max-w-95 flex-col gap-2${o?` ${o}`:""}`,children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 px-0.5",style:{animation:"bui-fade-in 400ms ease-out both"},children:[jsxRuntime.jsx("span",{className:"text-[13px] font-semibold text-ink",children:a.header}),jsxRuntime.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)=>jsxRuntime.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:[jsxRuntime.jsxs("div",{className:"primitive-card-bar flex items-center gap-2.5 border-b border-line",children:[jsxRuntime.jsxs("span",{className:"flex min-w-0 items-center gap-1.5 text-[13px] font-medium text-ink",children:[jsxRuntime.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:jsxRuntime.jsx("path",{d:"M4 6h16M4 12h16M4 18h10"})}),jsxRuntime.jsx("span",{className:"truncate",children:l.title})]}),jsxRuntime.jsx("span",{className:"ml-auto shrink-0 text-[12px] text-ink-3 tabular-nums",children:l.chars})]}),jsxRuntime.jsx("p",{className:"px-3 pt-2 pb-1 text-[12.5px] leading-relaxed text-ink-2",children:l.body}),jsxRuntime.jsx("div",{className:"px-3 pb-3",children:jsxRuntime.jsxs("span",{className:`inline-flex h-6 items-center gap-1.5 rounded-full bg-inset px-2
|
|
227
227
|
text-[12px] font-medium text-ink-2 shadow-btn
|
|
228
228
|
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:[jsxRuntime.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,jsxRuntime.jsx("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M7 17L17 7M7 7h10v10"})})]})})]},l.title))]})})}i(am,"BUIContextCards");function lm(e){let[t,o]=he.useState(0);return he.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 jsxRuntime.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?jsxRuntime.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.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]=he.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 jsxRuntime.jsx(U,{children:jsxRuntime.jsx("div",{className:"w-full max-w-95",children:jsxRuntime.jsxs("div",{className:"relative overflow-hidden rounded-card bg-surface shadow-card",children:[jsxRuntime.jsxs("div",{className:"primitive-card-bar flex items-center justify-between border-b border-line",children:[jsxRuntime.jsx("span",{className:"text-[12.5px] font-medium text-ink",children:o??s("Proposed changes")}),m&&!a&&jsxRuntime.jsx("span",{className:"text-[11px] text-ink-3",children:s("Click changed rows to toggle")})]}),jsxRuntime.jsxs("table",{className:"w-full table-fixed border-collapse text-left",children:[jsxRuntime.jsxs("colgroup",{children:[jsxRuntime.jsx("col",{className:"w-[34%]"}),jsxRuntime.jsx("col",{className:"w-[30%]"}),jsxRuntime.jsx("col",{className:"w-[36%]"})]}),jsxRuntime.jsx("thead",{children:jsxRuntime.jsx("tr",{className:"border-b border-line",children:(n??[s("Name"),s("Category"),s("Value")]).map(f=>jsxRuntime.jsx("th",{className:"primitive-table-cell text-[12px] font-medium text-ink-3",children:f},f))})}),jsxRuntime.jsxs("tbody",{children:[e.map(f=>{let x=f.removed&&u&&c[f.key]!==false,y=f.removed&&m&&!a;return jsxRuntime.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:[jsxRuntime.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}),jsxRuntime.jsx("td",{className:"primitive-table-cell",children:jsxRuntime.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:[jsxRuntime.jsx("span",{className:"size-1.5 rounded-full",style:{background:r[f.dept]??"var(--bui-ink-3)"}}),jsxRuntime.jsx("span",{className:"text-ink-2",children:f.dept})]})}),jsxRuntime.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:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{className:"min-w-0 truncate",children:f.email}),f.removed&&m&&jsxRuntime.jsx(Js,{included:c[f.key]!==false,tone:"red"})]})})]},f.key)}),t.map(f=>jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:3,className:"p-0",children:jsxRuntime.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:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.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:[jsxRuntime.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}),jsxRuntime.jsx("span",{className:"primitive-table-cell",children:jsxRuntime.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:[jsxRuntime.jsx("span",{className:"size-1.5 rounded-full bg-green"}),jsxRuntime.jsx("span",{className:"text-ink-2",children:f.dept})]})}),jsxRuntime.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:jsxRuntime.jsxs("span",{className:"flex items-center justify-between gap-2",children:[jsxRuntime.jsx("span",{className:"min-w-0 truncate",children:f.email}),jsxRuntime.jsx(Js,{included:c[f.key]!==false,tone:"green"})]})})]})})})})},f.key))]})]}),m&&jsxRuntime.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?jsxRuntime.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:[jsxRuntime.jsx("span",{className:"flex size-4.5 items-center justify-center rounded-full bg-green text-white",children:jsxRuntime.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})})}),s("editsApplied",{count:h+v})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"text-[11.5px] tabular-nums text-ink-3",children:s("changesSummary",{removals:h,additions:v})}),jsxRuntime.jsx("span",{className:"flex items-center gap-1.5",children:jsxRuntime.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]=he.useState("all");return jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{className:"w-full max-w-105",children:[jsxRuntime.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 jsxRuntime.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]
|
|
229
229
|
font-medium transition-[background-color,box-shadow,color] duration-200
|
|
@@ -234,58 +234,58 @@ void main(){
|
|
|
234
234
|
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:[jsxRuntime.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]
|
|
235
235
|
px-0.5 text-[12px] text-ink-3 select-none hover:text-ink-2 focus-visible:text-accent-ink
|
|
236
236
|
focus-visible:outline-none`,children:e}),jsxRuntime.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&&jsxRuntime.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"?jsxRuntime.jsx("span",{className:"flex gap-0.5",children:[0,1,2].map(o=>jsxRuntime.jsx("span",{className:t},o))}):e==="col"?jsxRuntime.jsx("span",{className:"flex flex-col gap-0.5",children:[0,1].map(o=>jsxRuntime.jsx("span",{className:t},o))}):jsxRuntime.jsx("span",{className:"grid grid-cols-2 gap-0.5",children:[0,1,2,3].map(o=>jsxRuntime.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]=he.useState(0),[s,d]=he.useState(()=>Object.fromEntries(e.map(x=>[x.key,x.value]))),[u,m]=he.useState(false),[c,p]=he.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 jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{className:"relative w-full max-w-60 rounded-card bg-surface shadow-raised",children:[jsxRuntime.jsxs("div",{className:"primitive-card-bar flex items-center justify-between border-b border-line",children:[jsxRuntime.jsx("span",{className:"text-[13px] font-medium text-ink",children:r.title}),f?jsxRuntime.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:[jsxRuntime.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})}),r.edited]}):jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{className:"flex size-4.5 items-center justify-center rounded-[5px] border border-accent/30 bg-accent-tint",children:jsxRuntime.jsx("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"var(--bui-accent)",children:jsxRuntime.jsx("path",{d:"M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z"})})}),jsxRuntime.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})]})]}),jsxRuntime.jsxs("div",{className:"primitive-card-pad flex flex-col gap-2 border-b border-line",children:[jsxRuntime.jsx("p",{className:"text-[12.5px] font-medium text-ink",children:r.layout}),jsxRuntime.jsxs("div",{className:"relative grid grid-cols-3 rounded-control bg-field p-0.5",children:[jsxRuntime.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)=>jsxRuntime.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
|
|
237
|
-
${y===a?"text-accent":"text-ink-3"}`,children:jsxRuntime.jsx(km,{kind:x})},x))]}),Tm(e,2).map((x,y)=>jsxRuntime.jsx("div",{className:"grid min-w-0 grid-cols-2 gap-2",children:x.map($=>jsxRuntime.jsx(xm,{label:$.label,value:s[$.key],onChange:
|
|
238
|
-
shadow-hairline transition-shadow duration-200 focus-visible:outline-none`,style:{boxShadow:u?"0 0 0 1px var(--bui-accent)":void 0},children:[jsxRuntime.jsx("span",{className:`text-[12px] ${c!==r.placeholder?"text-ink":"text-ink-3"}`,children:c}),jsxRuntime.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:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})]}),u&&jsxRuntime.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:jsxRuntime.jsx(
|
|
237
|
+
${y===a?"text-accent":"text-ink-3"}`,children:jsxRuntime.jsx(km,{kind:x})},x))]}),Tm(e,2).map((x,y)=>jsxRuntime.jsx("div",{className:"grid min-w-0 grid-cols-2 gap-2",children:x.map($=>jsxRuntime.jsx(xm,{label:$.label,value:s[$.key],onChange:I=>v($.key,I),min:$.min,max:$.max,step:$.step,suffix:$.suffix,active:s[$.key]!==$.value},$.key))},y))]}),jsxRuntime.jsxs("div",{className:"primitive-card-footer flex items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-[12px] text-ink-3",children:r.type}),jsxRuntime.jsxs("div",{className:"relative -mr-0.5 w-30",children:[jsxRuntime.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
|
|
238
|
+
shadow-hairline transition-shadow duration-200 focus-visible:outline-none`,style:{boxShadow:u?"0 0 0 1px var(--bui-accent)":void 0},children:[jsxRuntime.jsx("span",{className:`text-[12px] ${c!==r.placeholder?"text-ink":"text-ink-3"}`,children:c}),jsxRuntime.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:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})]}),u&&jsxRuntime.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:jsxRuntime.jsx(tt,{className:"flex flex-col gap-px",highlightClassName:"inset-x-0 rounded-[6px] bg-field",children:t.map(x=>jsxRuntime.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 jsxRuntime.jsx(U,{children:jsxRuntime.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&&jsxRuntime.jsx("div",{className:"bui-flow-node-kind",children:o}),jsxRuntime.jsxs("div",{className:"bui-flow-node-card",children:[p&&jsxRuntime.jsx("span",{"aria-hidden":true,className:"bui-flow-node-port bui-flow-node-input"}),jsxRuntime.jsxs("div",{className:"bui-flow-node-header",children:[n&&jsxRuntime.jsx("span",{className:"bui-flow-node-icon",children:n}),jsxRuntime.jsxs("div",{className:"bui-flow-node-copy",children:[jsxRuntime.jsx("div",{className:"bui-flow-node-title",children:e}),!d&&t&&jsxRuntime.jsx("div",{className:"bui-flow-node-caption",children:t})]}),r&&jsxRuntime.jsx("span",{className:"bui-flow-node-status",children:r}),a&&jsxRuntime.jsx("div",{className:"bui-flow-node-actions","data-ui":true,children:a})]}),l&&jsxRuntime.jsx("div",{className:"bui-flow-node-content","data-ui":true,children:l}),v&&jsxRuntime.jsx("span",{"aria-hidden":true,className:"bui-flow-node-port bui-flow-node-side-output"}),h&&jsxRuntime.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 jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntime.jsx("path",{d:"m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11"}),jsxRuntime.jsx("path",{d:"M17 7A5 5 0 0 0 7 7"}),jsxRuntime.jsx("path",{d:"M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4"})]})}i(ll,"ConeIcon");function Em(){return jsxRuntime.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:jsxRuntime.jsx("path",{d:"m6 9 6 6 6-6"})})}i(Em,"Chevron");function il(){return jsxRuntime.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=>[jsxRuntime.jsx("circle",{cx:"3",cy:e,r:"1.1",fill:"currentColor"},`l${e}`),jsxRuntime.jsx("circle",{cx:"7.5",cy:e,r:"1.1",fill:"currentColor"},`r${e}`)])})}i(il,"Handle");function Lm(){return jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.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]=he.useState(null),s=he.useRef([]),[d,u]=he.useState(null),m=e.findIndex(c=>c.name===t);return he.useLayoutEffect(()=>{let c=s.current[a??m];c&&u({top:c.offsetTop,height:c.offsetHeight});},[a,m]),jsxRuntime.jsxs("div",{onMouseLeave:()=>l(null),className:`absolute bottom-full z-20 mb-1.5 rounded-[10px] bg-surface p-1 shadow-raised ${o}
|
|
239
239
|
${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:[jsxRuntime.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)=>jsxRuntime.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:[jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[12.5px] font-medium text-ink",children:c.name}),c.tag&&jsxRuntime.jsx("span",{className:"shrink-0 text-[11px] text-ink-3",children:c.tag}),jsxRuntime.jsx("span",{className:`shrink-0 text-ink ${c.name===t?"":"invisible"}`,children:jsxRuntime.jsx(Lm,{})})]},c.name))]})}i(Dm,"Menu");function al({label:e}){return jsxRuntime.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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.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 jsxRuntime.jsxs("span",{"data-ui":true,className:"relative inline-flex min-w-0",children:[jsxRuntime.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
|
|
240
240
|
text-[12px] font-medium text-ink transition-colors duration-100
|
|
241
|
-
${l?"bg-hover-2":"bg-field hover:bg-hover-2"}`,children:[o&&jsxRuntime.jsx("span",{className:"size-1.5 shrink-0 rounded-full",style:{background:Nm}}),jsxRuntime.jsx("span",{className:"min-w-0 truncate",children:t}),jsxRuntime.jsx(Em,{})]}),l&&jsxRuntime.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]=he.useState(null);he.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)=>jsxRuntime.jsx(zm,{id:p,value:n[p],items:h,width:v,open:s===p,onToggle:u,onPick:m,...w}),"chip");return jsxRuntime.jsxs("div",{className:"flex flex-col gap-1.5 px-3 py-2.5",children:[jsxRuntime.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[jsxRuntime.jsx(il,{}),jsxRuntime.jsx("span",{className:"w-7 text-[12.5px] text-ink-2",children:o("If")}),jsxRuntime.jsx(al,{label:e.source}),c("prop1",r.map(p=>({name:p})),"w-36"),jsxRuntime.jsx("span",{className:"text-[12.5px] text-ink-2",children:o("is")}),c("val1",a,"w-44",{dot:true,align:"right"})]}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1.5",children:[jsxRuntime.jsx(il,{}),jsxRuntime.jsx("span",{className:"w-7 text-[12.5px] text-ink-2",children:o("and")}),jsxRuntime.jsx(al,{label:e.source}),c("prop2",r.map(p=>({name:p})),"w-36"),jsxRuntime.jsx("span",{className:"text-[12.5px] text-ink-2",children:o("is")}),jsxRuntime.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=he.useRef(null),a=he.useRef(new Map),[l,s]=he.useState(0),[d,u]=he.useState(Am),[m,c]=he.useState(null),[p,h]=he.useState({}),v=he.useRef(null);he.useLayoutEffect(()=>{let k=r.current;if(!k)return;let T=i(()=>{s(k.clientWidth),u(
|
|
241
|
+
${l?"bg-hover-2":"bg-field hover:bg-hover-2"}`,children:[o&&jsxRuntime.jsx("span",{className:"size-1.5 shrink-0 rounded-full",style:{background:Nm}}),jsxRuntime.jsx("span",{className:"min-w-0 truncate",children:t}),jsxRuntime.jsx(Em,{})]}),l&&jsxRuntime.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]=he.useState(null);he.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)=>jsxRuntime.jsx(zm,{id:p,value:n[p],items:h,width:v,open:s===p,onToggle:u,onPick:m,...w}),"chip");return jsxRuntime.jsxs("div",{className:"flex flex-col gap-1.5 px-3 py-2.5",children:[jsxRuntime.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[jsxRuntime.jsx(il,{}),jsxRuntime.jsx("span",{className:"w-7 text-[12.5px] text-ink-2",children:o("If")}),jsxRuntime.jsx(al,{label:e.source}),c("prop1",r.map(p=>({name:p})),"w-36"),jsxRuntime.jsx("span",{className:"text-[12.5px] text-ink-2",children:o("is")}),c("val1",a,"w-44",{dot:true,align:"right"})]}),jsxRuntime.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1.5",children:[jsxRuntime.jsx(il,{}),jsxRuntime.jsx("span",{className:"w-7 text-[12.5px] text-ink-2",children:o("and")}),jsxRuntime.jsx(al,{label:e.source}),c("prop2",r.map(p=>({name:p})),"w-36"),jsxRuntime.jsx("span",{className:"text-[12.5px] text-ink-2",children:o("is")}),jsxRuntime.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=he.useRef(null),a=he.useRef(new Map),[l,s]=he.useState(0),[d,u]=he.useState(Am),[m,c]=he.useState(null),[p,h]=he.useState({}),v=he.useRef(null);he.useLayoutEffect(()=>{let k=r.current;if(!k)return;let T=i(()=>{s(k.clientWidth),u(H=>{let Z={...H},J=false;return a.current.forEach((O,K)=>{let A=O.offsetHeight;A&&Math.abs(A-(Z[K]??0))>.5&&(Z[K]=A,J=true);}),J?Z:H});},"measure");T();let z=new ResizeObserver(T);return z.observe(k),a.current.forEach(H=>z.observe(H)),()=>z.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),z=p[k.id];return {w:T,cx:k.x*y+(z?.dx??0),top:f[w.indexOf(k.row)]+(z?.dy??0)}},"place"),I=i(k=>{let{cx:T,top:z}=$(k);return {top:{x:T,y:z+(k.kind?Im:0)},bottom:{x:T,y:z+(d[k.id]??90)}}},"anchors"),C=i(k=>{let T=I(e.find(H=>H.id===k.from)).bottom,z=I(e.find(H=>H.id===k.to)).top;return Ui({source:T,target:z}).path},"bezier"),R=i(k=>T=>{if(T.target.closest("[data-ui]"))return;let z=p[k.id];v.current={id:k.id,startX:T.clientX,startY:T.clientY,baseDx:z?.dx??0,baseDy:z?.dy??0,moved:false},T.currentTarget.setPointerCapture(T.pointerId);},"onPointerDown"),P=i(k=>T=>{let z=v.current;if(!z||z.id!==k.id)return;let H=z.baseDx+T.clientX-z.startX,Z=z.baseDy+T.clientY-z.startY;if(!z.moved&&Math.hypot(H-z.baseDx,Z-z.baseDy)<3)return;z.moved=true;let{w:J}=$(k),O=d[k.id]??90,K=k.x*y,A=f[w.indexOf(k.row)],ne=Math.min(Math.max(K+H,J/2+8),y-J/2-8),ee=Math.min(Math.max(A+Z,8),x-O-8);h(se=>({...se,[k.id]:{dx:ne-K,dy:ee-A}}));},"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"),N=i(k=>m===k.from||m===k.to,"isLit");return jsxRuntime.jsx(U,{children:jsxRuntime.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:[jsxRuntime.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=>jsxRuntime.jsx("path",{d:C(k),fill:"none",stroke:N(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:z,top:H}=$(k),Z=m===k.id;return jsxRuntime.jsxs("div",{ref:J=>{J?a.current.set(k.id,J):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:z,top:H,width:T,zIndex:v.current?.id===k.id?2:1},children:[k.kind&&jsxRuntime.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?jsxRuntime.jsx("div",{className:"w-full rounded-[18px] bg-surface shadow-card transition-shadow duration-150 hover:shadow-raised",children:jsxRuntime.jsx(Um,{data:k.conditionData??{source:"",values:{},properties:[],firstOptions:[],secondOptions:[]},onChange:J=>o?.(k.id,J)})}):jsxRuntime.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
|
|
242
242
|
transition-shadow duration-150 focus-visible:shadow-[0_0_0_1.5px_var(--bui-accent)]
|
|
243
243
|
${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:jsxRuntime.jsx(zi,{title:k.title,caption:k.caption,icon:jsxRuntime.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 jsxRuntime.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 jsxRuntime.jsx("div",{className:"insight-chart-tooltip",children:e.map(t=>jsxRuntime.jsxs("span",{className:"insight-chart-tooltip-item",children:[jsxRuntime.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]=he.useState(null),a=he.useMemo(()=>e.map(d=>Wm(d.values,42)),[e]),l=a[0]?.length??0,s=he.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 jsxRuntime.jsxs("div",{className:"min-h-[278px] rounded-card bg-surface p-3 shadow-hairline",children:[jsxRuntime.jsx("div",{className:"flex items-center gap-4",children:e.map((d,u)=>jsxRuntime.jsxs("div",{className:"flex-1",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5 text-[11.5px] text-ink-2",children:[jsxRuntime.jsx("span",{className:`size-2 rounded-full ${d.dot}`}),d.name]}),jsxRuntime.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)}),jsxRuntime.jsx(pl,{tone:d.tone,children:d.sub})]},d.name))}),jsxRuntime.jsxs("div",{className:"mt-2 overflow-hidden rounded-control bg-inset shadow-hairline",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b border-line px-2.5 py-1.5",children:[jsxRuntime.jsx("span",{className:"text-[11px] text-ink-3 tabular-nums",children:t("Trend snapshot")}),jsxRuntime.jsx("span",{className:"rounded-full bg-field px-2 py-0.5 text-[10.5px] font-medium text-ink-2",children:t("Snapshot")})]}),jsxRuntime.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:[jsxRuntime.jsx(liveline.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&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"insight-chart-cursor",style:{left:`${n/(l-1)*100}%`}}),jsxRuntime.jsx("span",{className:"insight-chart-tooltip-anchor",style:{left:`${Math.min(Math.max(n/(l-1)*100,28),72)}%`},children:jsxRuntime.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=provider.useMonkeysResolvedTheme(),r=ul(),[a,l]=he.useState("spend"),s=he.useRef(null),[d,u]=he.useState();he.useLayoutEffect(()=>{s.current&&u(getComputedStyle(s.current).getPropertyValue("--bui-chart-alert").trim()||void 0);},[r,n]);let[m,c]=he.useState(null),p=he.useMemo(()=>Oi(e.spend,7),[e]),h=he.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 jsxRuntime.jsxs("div",{className:"min-h-[278px] rounded-card bg-surface p-3 shadow-hairline",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5 text-[12px] font-medium text-ink",children:[jsxRuntime.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:jsxRuntime.jsx("path",{d:"M12 19V5M5 12l7-7 7 7"})}),t??o("Anomaly")]}),jsxRuntime.jsx("span",{className:"rounded-full bg-field px-2 py-0.5 text-[10.5px] font-medium text-ink-2",children:o("Snapshot")})]}),jsxRuntime.jsxs("div",{className:"mt-2 overflow-hidden rounded-control bg-inset shadow-hairline",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b border-line px-2.5 py-1.5",children:[jsxRuntime.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`}),jsxRuntime.jsx("span",{className:"flex rounded-full bg-field p-0.5",children:["spend","usage"].map(x=>jsxRuntime.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))})]}),jsxRuntime.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:[jsxRuntime.jsx(liveline.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&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"insight-chart-cursor",style:{left:`${m/(v.length-1)*100}%`}}),jsxRuntime.jsx("span",{className:"insight-chart-tooltip-anchor",style:{left:`${Math.min(Math.max(m/(v.length-1)*100,28),72)}%`},children:jsxRuntime.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)"}]})})]})]})]}),jsxRuntime.jsxs("div",{className:"mt-1.5 flex items-baseline gap-2",children:[jsxRuntime.jsxs("span",{className:"text-[17px] font-semibold tracking-[-0.01em] text-ink tabular-nums",children:[f," ",o("spent")]}),jsxRuntime.jsx(pl,{tone:"red",children:e.comparison??""}),jsxRuntime.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]=he.useState(e[0]?.name),l=e.find(s=>s.name===r)??e[0];return jsxRuntime.jsxs("div",{className:"min-h-[278px] rounded-card bg-surface p-3 shadow-hairline",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5 text-[12px] font-medium text-ink",children:[jsxRuntime.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")]}),jsxRuntime.jsx("span",{className:"mt-1 block text-[20px] font-semibold tracking-[-0.01em] text-ink tabular-nums",children:l?.amount??""}),jsxRuntime.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=>jsxRuntime.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:jsxRuntime.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))}),jsxRuntime.jsx("div",{className:"mt-2 flex items-center gap-1.5",children:e.map(s=>jsxRuntime.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:[jsxRuntime.jsx("span",{className:`size-1.5 rounded-full ${s.cls}`}),s.name," ",jsxRuntime.jsxs("span",{className:"tabular-nums",children:[s.pct,"%"]})]},s.name))}),jsxRuntime.jsxs("div",{className:"mt-3 min-h-16 rounded-control bg-inset px-2.5 py-2 shadow-hairline",children:[jsxRuntime.jsx("span",{className:`block text-[11.5px] font-medium ${l?.tone??""}`,children:l?.label??""}),jsxRuntime.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]=he.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 jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{className:"min-h-[408px] w-full max-w-86",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsxs("span",{className:"flex items-baseline gap-1.5",children:[jsxRuntime.jsx("span",{className:"text-[13px] font-semibold text-ink",children:r.title}),jsxRuntime.jsx("span",{className:"text-[13px] text-ink-3 tabular-nums",children:e.length})]}),jsxRuntime.jsx("span",{className:"flex items-center gap-0.5",children:["M15 18l-6-6 6-6","M9 6l6 6-6 6"].map((c,p)=>jsxRuntime.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
|
|
244
244
|
transition-[background-color,color,transform] duration-100 hover:bg-hover
|
|
245
245
|
hover:text-ink active:scale-[0.96]`,children:jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:c})})},p))})]}),jsxRuntime.jsxs("div",{className:"transition-[opacity,filter] duration-250",style:{opacity:1,filter:"blur(0)"},children:[jsxRuntime.jsx("p",{className:"mt-1.5 text-[12.5px] leading-relaxed text-ink-2",children:u}),jsxRuntime.jsx("div",{className:"mt-2",children:d.kind==="compare"?jsxRuntime.jsx(Gm,{series:d.series}):d.kind==="anomaly"?jsxRuntime.jsx(Km,{data:d.anomaly,title:d.title}):jsxRuntime.jsx(Ym,{segments:d.segments,title:d.title,description:d.description})}),jsxRuntime.jsx("button",{className:`mt-2 rounded-[var(--bui-radius-pill)] bg-surface px-3 py-1.5 text-left text-[12px] text-ink
|
|
246
|
-
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]=he.useState(u),w=
|
|
247
|
-
text-left transition-colors duration-100 hover:bg-hover`,children:[jsxRuntime.jsx(hl,{signal:c.signal,tone:c.tone}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[12.5px] text-ink",children:c.short}),jsxRuntime.jsx("span",{className:"shrink-0 text-[11px] text-ink-3",children:c.label})]},c.key))]})})}),jsxRuntime.jsxs("div",{className:"primitive-card-footer flex items-center justify-between gap-3 bg-surface",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(hl,{signal:u.signal,tone:u.tone}),jsxRuntime.jsx("span",{className:"text-[12.5px] font-medium text-ink-2",children:u.label})]}),jsxRuntime.jsxs("span",{className:"-mr-0.5 flex items-center gap-2",children:[jsxRuntime.jsx(Me,{variant:"secondary",size:"sm","aria-expanded":s,onClick:()=>d(c=>!c),className:"px-2.5 text-[12.5px]",children:r.alternatives}),jsxRuntime.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 jsxRuntime.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:jsxRuntime.jsx("path",{d:"M4 6h16M4 12h10M4 18h7"}),File:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsxRuntime.jsx("path",{d:"M14 2v6h6"})]}),Collection:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("ellipse",{cx:"12",cy:"5",rx:"8",ry:"3"}),jsxRuntime.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":jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("path",{d:"m8.5 12 2.4 2.4 4.6-4.9"})]}),"Multi select":jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M11 6h9M11 12h9M11 18h9"}),jsxRuntime.jsx("path",{d:"M4 6l1.5 1.5L8 5M4 12l1.5 1.5L8 11M4 18l1.5 1.5L8 17"})]}),URL:jsxRuntime.jsxs("g",{children:[jsxRuntime.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"}),jsxRuntime.jsx("path",{d:"M14 11a5 5 0 0 0-7.1-.1l-2 2A5 5 0 0 0 12 20l1.1-1.1"})]}),Reference:jsxRuntime.jsx("path",{d:"M7 17 17 7M9 7h8v8"}),JSON:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M8 4c-2 0-2 2-2 3s.5 3-2 3c2.5 0 2 2 2 3s0 3 2 3"}),jsxRuntime.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":jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),jsxRuntime.jsx("path",{d:"M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"})]}),Date:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2.5"}),jsxRuntime.jsx("path",{d:"M8 3v4M16 3v4M3 10h18"})]})},Vi={model:jsxRuntime.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:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.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:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"8",r:"4"}),jsxRuntime.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 jsxRuntime.jsxs("label",{className:"records-checkbox",title:n,onClick:r=>r.stopPropagation(),children:[jsxRuntime.jsx("input",{type:"checkbox",checked:e,onChange:o,"aria-label":n}),jsxRuntime.jsx("span",{className:`records-checkbox-box ${e||t?"is-active":""}`,children:t?jsxRuntime.jsx("span",{className:"records-checkbox-dash"}):e?jsxRuntime.jsx(we,{size:12,children:jsxRuntime.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 jsxRuntime.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=he.useRef(null),r=he.useRef(null),[a,l]=he.useState(e.length);he.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 jsxRuntime.jsxs("div",{ref:n,className:"records-tags",title:e.join(", "),"aria-label":o("Categories: {categories}",{categories:e.join(", ")}),children:[jsxRuntime.jsxs("div",{ref:r,className:"records-tags-measure","aria-hidden":true,children:[e.map(d=>jsxRuntime.jsx("span",{"data-tag-measure":true,children:jsxRuntime.jsx(yl,{name:d,colors:t})},d)),jsxRuntime.jsxs("span",{"data-more-measure":true,className:"records-more-tag",children:["+",e.length]})]}),e.slice(0,a).map(d=>jsxRuntime.jsx(yl,{name:d,colors:t},d)),s>0&&jsxRuntime.jsxs("span",{className:"records-more-tag",children:["+",s]})]})}i(cg,"TagList");function Mn(){let e=oe();return jsxRuntime.jsxs("span",{className:"records-calc",children:[jsxRuntime.jsx("span",{className:"records-muted",children:e("Calculating\u2026")}),jsxRuntime.jsx("span",{className:"records-pulse"})]})}i(Mn,"CalcCell");function Sr({on:e,onToggle:t,label:o}){return jsxRuntime.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:jsxRuntime.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 jsxRuntime.jsxs("th",{className:`records-header-cell ${d?"is-colsel":""} ${s}`,children:[jsxRuntime.jsxs("button",{type:"button",className:"records-header-button",onClick:u,children:[jsxRuntime.jsx("span",{className:"records-header-icon",children:t}),jsxRuntime.jsx("span",{className:"truncate",children:e}),o&&jsxRuntime.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:jsxRuntime.jsx(we,{size:12,children:jsxRuntime.jsx("path",{d:"M12 5v14M5 12l7 7 7-7"})})})]}),jsxRuntime.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 jsxRuntime.jsxs("div",{className:"relative flex h-8 items-center justify-between",children:[jsxRuntime.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 jsxRuntime.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:[jsxRuntime.jsx("div",{className:"px-2 pb-1 pt-0.5 text-[11.5px] font-medium text-ink-3",children:e}),jsxRuntime.jsx(et,{className:"flex flex-col gap-px",children:t.map(r=>jsxRuntime.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:[jsxRuntime.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center text-ink-2",children:r.icon}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate",children:r.label}),jsxRuntime.jsx("span",{className:o===r.label?"text-ink":"invisible",children:jsxRuntime.jsx(we,{size:14,strokeWidth:2.2,children:jsxRuntime.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 jsxRuntime.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:[jsxRuntime.jsx("div",{className:"px-2 pb-1 pt-0.5 text-[11.5px] font-medium text-ink-3",children:n("Use values from")}),jsxRuntime.jsx(et,{className:"flex flex-col gap-px",children:e.map(r=>{let a=t.includes(r);return jsxRuntime.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:[jsxRuntime.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:jsxRuntime.jsx(we,{size:11,strokeWidth:2.4,children:jsxRuntime.jsx("path",{d:"m5 12 4 4L19 6"})})}),jsxRuntime.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]=he.useState(new Set),[v,w]=he.useState({key:"name",dir:1}),[g,f]=he.useState(Hi),[x,y]=he.useState(100),[$,M]=he.useState(false),[C,R]=he.useState(null),P=he.useRef(null),F=he.useRef(null),L=he.useRef(null);he.useEffect(()=>()=>L.current?.(),[]);let[B,k]=he.useState(null),T=he.useRef({}),[D,_]=he.useState(false),[Z,Y]=he.useState(false),[O,J]=he.useState(null),[E,te]=he.useState({}),[ee,me]=he.useState({}),[de,I]=he.useState(new Set),[j,A]=he.useState(false),[W,ae]=he.useState({required:false,allowEmpty:true,confidence:false}),[se,re]=he.useState(null),[Be,K]=he.useState(null),[ge,Je]=he.useState(false),Tt=Object.keys(s).length>0,[ye,pt]=he.useState(false),_t=he.useRef(null),$o=he.useRef(false);he.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=he.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]);he.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]),he.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 jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{className:`records-shell${t?" is-fill":""}`,children:[jsxRuntime.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:jsxRuntime.jsxs("table",{ref:F,className:"records-table",style:{width:$?lo:"100%",minWidth:lo},children:[jsxRuntime.jsxs("colgroup",{children:[jsxRuntime.jsx("col",{className:"records-company-col",style:{width:g.company}}),jsxRuntime.jsx("col",{className:"records-category-col",style:{width:g.categories}}),jsxRuntime.jsx("col",{className:"records-last-col",style:{width:g.last}}),jsxRuntime.jsx("col",{className:"records-strength-col",style:{width:g.strength}}),jsxRuntime.jsx("col",{className:"records-link-col",style:{width:g.links}}),ge&&jsxRuntime.jsx("col",{style:{width:g.ai}}),jsxRuntime.jsx("col",{style:{width:100}})]}),jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{children:[jsxRuntime.jsxs("th",{className:`records-header-cell records-sticky-cell ${B?.col==="Company"?"is-colsel":""}`,children:[jsxRuntime.jsxs("div",{className:"records-company-header",style:{cursor:"pointer"},onClick:S=>mt("Company")(S),children:[jsxRuntime.jsx(vl,{checked:wt,mixed:io,onChange:Xr,label:c("Select all companies")}),jsxRuntime.jsx("span",{children:c("Company")})]}),jsxRuntime.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)})]}),jsxRuntime.jsx(Cr,{label:c("Categories"),selected:B?.col==="Categories",onPick:mt("Categories"),sort:v,onSort:ao,onResizeStart:so("categories"),resizing:C==="categories",icon:jsxRuntime.jsx(we,{size:15,children:Jt["Multi select"]})}),jsxRuntime.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:jsxRuntime.jsx(we,{size:15,children:Jt.Date})}),jsxRuntime.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:jsxRuntime.jsx(we,{size:15,children:Jt["Single select"]})}),jsxRuntime.jsx(Cr,{label:c("Links"),selected:B?.col==="Links",onPick:mt("Links"),sort:v,onSort:ao,onResizeStart:so("links"),resizing:C==="links",icon:jsxRuntime.jsx(we,{size:15,children:Jt.URL})}),ge&&jsxRuntime.jsxs("th",{ref:_t,className:`records-header-cell ${B?.col===l?"is-colsel":""}`,children:[jsxRuntime.jsxs("button",{type:"button",className:"records-header-button",onClick:mt(l),children:[jsxRuntime.jsx("span",{className:"records-header-icon",children:jsxRuntime.jsx(we,{size:15,children:Jt.Text})}),jsxRuntime.jsx("span",{className:"truncate",children:l})]}),jsxRuntime.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")})]}),jsxRuntime.jsx("th",{className:"records-header-cell",children:jsxRuntime.jsxs("div",{className:"flex h-[35px] items-center gap-1 px-2",children:[jsxRuntime.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:jsxRuntime.jsx(we,{size:15,strokeWidth:2,children:jsxRuntime.jsx("path",{d:"M12 5v14M5 12h14"})})}),jsxRuntime.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:jsxRuntime.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":true,children:[jsxRuntime.jsx("circle",{cx:"5",cy:"12",r:"1.6"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"1.6"}),jsxRuntime.jsx("circle",{cx:"19",cy:"12",r:"1.6"})]})})]})})]})}),jsxRuntime.jsx("tbody",{"data-sound-silent":true,children:It.map((S,X)=>{let Oe=p.has(S.id),Bt=$r[S.strength];return jsxRuntime.jsxs("tr",{className:`records-row ${Oe?"is-selected":""}`,children:[jsxRuntime.jsxs("td",{className:`records-cell records-sticky-cell records-company-cell ${B?.col==="Company"?"is-colsel":""}`,children:[jsxRuntime.jsx("span",{className:"records-rownum",children:X+1}),jsxRuntime.jsx(vl,{checked:Oe,onChange:()=>Kr(S.id),label:c("Select {name}",{name:S.name})}),jsxRuntime.jsx("span",{className:"records-company-mark",children:S.name.slice(0,1).toUpperCase()}),jsxRuntime.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})]}),jsxRuntime.jsx("td",{className:`records-cell ${B?.col==="Categories"?"is-colsel":""}`,children:q("Categories",X)?jsxRuntime.jsx(Mn,{}):jsxRuntime.jsx(cg,{tags:S.tags,colors:o})}),jsxRuntime.jsx("td",{className:`records-cell ${S.last==="No contact"?"records-muted":""} ${B?.col==="Last interaction"?"is-colsel":""}`,children:q("Last interaction",X)?jsxRuntime.jsx(Mn,{}):S.last}),jsxRuntime.jsx("td",{className:`records-cell ${B?.col==="Connection strength"?"is-colsel":""}`,children:q("Connection strength",X)?jsxRuntime.jsx(Mn,{}):jsxRuntime.jsxs("span",{className:"records-strength",children:[jsxRuntime.jsx("span",{className:"records-strength-dot",style:{background:Bt.color}}),c(Bt.label)]})}),jsxRuntime.jsx("td",{className:`records-cell ${B?.col==="Links"?"is-colsel":""}`,children:q("Links",X)?jsxRuntime.jsx(Mn,{}):S.website?jsxRuntime.jsxs("a",{className:"records-link",href:`https://${S.website}`,title:S.website,target:"_blank",rel:"noreferrer",children:[jsxRuntime.jsx("span",{className:"records-link-label",children:S.website}),jsxRuntime.jsx(we,{size:12,children:jsxRuntime.jsx("path",{d:"M14 5h5v5M19 5l-8 8"})})]}):jsxRuntime.jsx("span",{className:"records-muted",children:"\u2014"})}),ge&&jsxRuntime.jsx("td",{className:`records-cell ${B?.col===l?"is-colsel":""}`,children:d?.col===l?X<d.resolved?s[S.id]??"\u2014":jsxRuntime.jsx(Mn,{}):Tt?s[S.id]??"\u2014":jsxRuntime.jsx("span",{className:"records-muted",children:"\u2014"})}),jsxRuntime.jsx("td",{className:"records-cell"})]},S.id)})}),jsxRuntime.jsx("tfoot",{children:jsxRuntime.jsxs("tr",{className:"records-calculation-row",children:[jsxRuntime.jsx("td",{className:"records-cell records-sticky-cell",children:jsxRuntime.jsxs("span",{className:"records-footer-value records-calculation-label",children:[jsxRuntime.jsx("span",{className:"records-calculation-number",children:e.length})," ",c("count")]})}),jsxRuntime.jsx("td",{className:"records-cell",children:jsxRuntime.jsxs("button",{type:"button",className:"records-add-calculation",onClick:mt("Categories"),children:[jsxRuntime.jsx(we,{size:15,children:jsxRuntime.jsx("path",{d:"M12 5v14M5 12h14"})}),c("Add calculation")]})}),jsxRuntime.jsx("td",{className:"records-cell records-muted",children:jsxRuntime.jsx("span",{className:"records-footer-value",children:"\u2014"})}),jsxRuntime.jsx("td",{className:"records-cell",children:jsxRuntime.jsxs("span",{className:"records-footer-value records-average",children:[jsxRuntime.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")]})}),jsxRuntime.jsx("td",{className:"records-cell",children:jsxRuntime.jsxs("span",{className:"records-footer-value records-muted",children:[e.filter(S=>S.website).length," ",c("links")]})}),ge&&jsxRuntime.jsx("td",{className:"records-cell records-muted",children:jsxRuntime.jsx("span",{className:"records-footer-value",children:Tt?`${e.length} filled`:"\u2014"})}),jsxRuntime.jsx("td",{className:"records-cell"})]})})]})}),B&&Ce&&jsxRuntime.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:[jsxRuntime.jsx("div",{className:"pb-2 text-[13.5px] font-medium text-ink",children:c(B.col)}),jsxRuntime.jsxs(Ao,{label:c("Type"),children:[jsxRuntime.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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:14,children:Jt[Ce.type]??Jt.Text})}),Ce.type,jsxRuntime.jsx("span",{className:"text-ink-3",children:jsxRuntime.jsx(we,{size:12,strokeWidth:2.2,children:jsxRuntime.jsx("path",{d:"M9 6l6 6-6 6"})})})]}),O==="type"&&jsxRuntime.jsx(xl,{label:c("Property type"),selected:Ce.type,options:bl.map(S=>({label:S,icon:jsxRuntime.jsx(we,{size:15,children:Jt[S]})})),onSelect:S=>{te(X=>({...X,[B.col]:{...X[B.col],type:S}})),J(null);}})]}),jsxRuntime.jsxs(Ao,{label:c("Tool"),children:[jsxRuntime.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:[jsxRuntime.jsx("span",{className:Ce.toolKind==="model"?"text-accent":"text-ink-2",children:Ce.toolKind==="model"?jsxRuntime.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":true,children:Vi.model}):jsxRuntime.jsx(we,{size:14,children:Vi[Ce.toolKind]})}),Ce.tool,jsxRuntime.jsx("span",{className:"text-ink-3",children:jsxRuntime.jsx(we,{size:12,strokeWidth:2.2,children:jsxRuntime.jsx("path",{d:"M9 6l6 6-6 6"})})})]}),O==="tool"&&jsxRuntime.jsx(xl,{label:c("Model"),selected:Ce.tool,options:r.map(S=>({label:S,icon:jsxRuntime.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);}})]}),jsxRuntime.jsxs(Ao,{label:c("Grounding"),children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(Sr,{label:c("Grounding"),on:D,onToggle:()=>_(S=>!S)}),jsxRuntime.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:jsxRuntime.jsx(we,{size:13,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("path",{d:"M12 8h.01M11 12h1v4h1"})]})})})]}),Z&&jsxRuntime.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.")})]}),jsxRuntime.jsxs(Ao,{label:c("Inputs"),children:[jsxRuntime.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?jsxRuntime.jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[Xt.slice(0,2).map(S=>jsxRuntime.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&&jsxRuntime.jsxs("span",{className:"text-[11px] font-medium text-ink-3",children:["+",Xt.length-2]})]}):jsxRuntime.jsx("span",{children:c("Select inputs")}),jsxRuntime.jsx("span",{className:"shrink-0 text-ink-3",children:jsxRuntime.jsx(we,{size:12,strokeWidth:2.2,children:jsxRuntime.jsx("path",{d:"M9 6l6 6-6 6"})})})]}),O==="inputs"&&jsxRuntime.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}});}})]}),jsxRuntime.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?jsxRuntime.jsxs("span",{className:"text-ink",children:[Ce.prompt.before,Ce.prompt.chip&&jsxRuntime.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]}):jsxRuntime.jsx("span",{className:"text-ink-3",children:c("Set a prompt (press @ to mention an input)")})}),jsxRuntime.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:[jsxRuntime.jsx(we,{size:14,strokeWidth:1.9,children:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v6h-6"})}),c("Go calculate")]}),jsxRuntime.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:[jsxRuntime.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:[jsxRuntime.jsx("span",{className:de.has(B.col)?"text-accent":"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:jsxRuntime.jsx("path",{d:"M12 17v5M8 3h8l-1 7 3 3H6l3-3-1-7z"})})}),de.has(B.col)?c("Unpin"):c("Pin")]}),jsxRuntime.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:[jsxRuntime.jsx("span",{className:j?"text-ink":"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"3"}),jsxRuntime.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"})]})})}),jsxRuntime.jsx("span",{className:"flex-1",children:c("More settings")}),jsxRuntime.jsx("span",{className:`text-ink-3 transition-transform duration-150 ${j?"rotate-90":""}`,children:jsxRuntime.jsx(we,{size:12,strokeWidth:2.2,children:jsxRuntime.jsx("path",{d:"M9 6l6 6-6 6"})})})]}),B.col===l&&jsxRuntime.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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.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"}),jsxRuntime.jsx("path",{d:"M9.9 9.9a3 3 0 0 0 4.2 4.2"})]})})}),c("Hide from view")]})]}),j&&jsxRuntime.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:[jsxRuntime.jsx("div",{className:"pb-1 text-[11.5px] font-medium text-ink-3",children:c("Behavior")}),jsxRuntime.jsx(Ao,{label:c("Required value"),children:jsxRuntime.jsx(Sr,{label:c("Required value"),on:W.required,onToggle:()=>ae(S=>({...S,required:!S.required}))})}),jsxRuntime.jsx(Ao,{label:c("Allow empty results"),children:jsxRuntime.jsx(Sr,{label:c("Allow empty results"),on:W.allowEmpty,onToggle:()=>ae(S=>({...S,allowEmpty:!S.allowEmpty}))})}),jsxRuntime.jsx(Ao,{label:c("Show confidence"),children:jsxRuntime.jsx(Sr,{label:c("Show confidence"),on:W.confidence,onToggle:()=>ae(S=>({...S,confidence:!S.confidence}))})})]})]}),se&&jsxRuntime.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:[jsxRuntime.jsx("div",{className:"px-2 pb-1 pt-1 text-[12px] font-medium text-ink-3",children:c("New property")}),jsxRuntime.jsx(et,{className:"flex flex-col gap-px",children:bl.map(S=>jsxRuntime.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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:Jt[S]})}),S]},S))})]}),Be&&jsxRuntime.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:[jsxRuntime.jsx("div",{className:"px-2 pb-1 pt-1 text-[12px] font-medium text-ink-3",children:c("Table options")}),jsxRuntime.jsxs(et,{className:"flex flex-col gap-px",children:[jsxRuntime.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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:15,strokeWidth:2,children:jsxRuntime.jsx("path",{d:"M12 5v14M5 12h14"})})}),c("Add property")]}),jsxRuntime.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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:jsxRuntime.jsx("path",{d:"M4 8h16M7 4 3 8l4 4M17 4l4 4-4 4M4 16h16"})})}),c("Compact columns")]}),jsxRuntime.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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:jsxRuntime.jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7M3 4v6h6"})})}),c("Reset column widths")]}),jsxRuntime.jsx("div",{className:"my-1 h-px bg-line"}),jsxRuntime.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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:jsxRuntime.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]=he.useState(""),s=a?e.filter(u=>u.toLowerCase().includes(a.toLowerCase())):e.slice(0,5),d=a.length>0&&s.length===0;return jsxRuntime.jsx(U,{children:jsxRuntime.jsx("div",{className:"flex min-h-[248px] w-full max-w-72 flex-col items-stretch",children:jsxRuntime.jsxs("div",{className:"w-full self-start overflow-hidden rounded-card bg-surface shadow-raised",children:[jsxRuntime.jsxs("div",{className:"flex h-10 items-center gap-2 border-b border-line px-3 transition-colors duration-100 hover:bg-hover",children:[jsxRuntime.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:[jsxRuntime.jsx("circle",{cx:"11",cy:"11",r:"7"}),jsxRuntime.jsx("path",{d:"M21 21l-4.3-4.3"})]}),jsxRuntime.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&&jsxRuntime.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
|
|
248
|
-
transition-colors duration-100 hover:bg-line/70 hover:text-ink`,style:{animation:"bui-fade-in 150ms ease-out both"},children:jsxRuntime.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]}),d?jsxRuntime.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:[jsxRuntime.jsx("span",{className:"mb-1.5 flex size-8 items-center justify-center rounded-control bg-inset text-ink-3 shadow-hairline",children:jsxRuntime.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",children:[jsxRuntime.jsx("circle",{cx:"11",cy:"11",r:"7"}),jsxRuntime.jsx("path",{d:"M21 21l-4.3-4.3"})]})}),jsxRuntime.jsx("span",{className:"text-[13px] font-medium text-ink",children:r.emptyTitle}),jsxRuntime.jsx("span",{className:"text-[12px] text-ink-3",children:r.emptyHint})]}):jsxRuntime.jsx("div",{className:"p-1",children:jsxRuntime.jsx(et,{className:"flex flex-col gap-px",highlightClassName:"inset-x-0 rounded-[6px] bg-hover",children:s.map(u=>jsxRuntime.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:jsxRuntime.jsx(iconoirReact.ChatBubbleQuestion,{...eo}),improve:jsxRuntime.jsx(iconoirReact.Spark,{...eo}),shorten:jsxRuntime.jsx(iconoirReact.Scissor,{...eo}),tone:jsxRuntime.jsx(iconoirReact.EmojiSatisfied,{...eo}),grammar:jsxRuntime.jsx(iconoirReact.TextBox,{...eo}),send:jsxRuntime.jsx(iconoirReact.ArrowUp,{width:"16",height:"16",strokeWidth:"2.4","aria-hidden":"true"}),chevron:jsxRuntime.jsx(iconoirReact.NavArrowRight,{...eo}),check:jsxRuntime.jsx(iconoirReact.Check,{...eo}),close:jsxRuntime.jsx(iconoirReact.Xmark,{...eo}),retry:jsxRuntime.jsx(iconoirReact.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]=he.useState(false),c=r,p=i(I=>a?.(I),"setMode"),[h,v]=he.useState("Improve"),[w,g]=he.useState(""),[f,x]=he.useState(null),[y,$]=he.useState(false),[M,C]=he.useState({x:0,y:0}),[R,P]=he.useState(false),F=he.useRef(null),L=he.useRef(null),B=he.useRef(null),k=he.useRef(null),T=he.useRef(null),D=he.useRef("idle"),_=he.useRef(0),Z=he.useRef(null);he.useEffect(()=>{let I=window.setTimeout(()=>m(true),280);return ()=>window.clearTimeout(I)},[]);let Y=he.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);});},[]);he.useLayoutEffect(()=>{Y();},[c,Y]),he.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]),he.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]),he.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 jsxRuntime.jsx(U,{children:jsxRuntime.jsx("div",{className:"w-full max-w-[460px]",children:jsxRuntime.jsxs("div",{ref:F,className:"relative select-none pb-12",children:[jsxRuntime.jsxs("p",{className:"text-[13px] leading-relaxed text-ink",children:[s.lead,jsxRuntime.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"?jsxRuntime.jsx(ii,{text:s.rewrite,onProgress:Y,onDone:()=>p("result")}):s.rewrite})]}),jsxRuntime.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:jsxRuntime.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:jsxRuntime.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&&jsxRuntime.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:[jsxRuntime.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"?jsxRuntime.jsxs(ni,{className:"text-[12.5px] font-normal",children:[de,"\u2026"]}):jsxRuntime.jsxs("span",{children:[de,"\u2026"]})]}),c==="result"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{type:"button",onClick:J,className:Mg,children:[qt.check,d.keep]}),jsxRuntime.jsxs(Me,{type:"button",variant:"quiet",size:"xs",className:"shrink-0",onClick:J,children:[qt.close,d.discard]}),jsxRuntime.jsx("span",{className:"mx-0.5 h-4 w-px shrink-0 bg-line"}),jsxRuntime.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"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.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:jsxRuntime.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:jsxRuntime.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"})})}),jsxRuntime.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&&jsxRuntime.jsx("span",{className:"mx-1 h-4 w-px shrink-0 bg-line-strong"}),t.primary.map(I=>jsxRuntime.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)),jsxRuntime.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=>jsxRuntime.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))}),jsxRuntime.jsx("span",{className:"mx-0.5 h-4 w-px shrink-0 bg-line"}),jsxRuntime.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:jsxRuntime.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})})]}),jsxRuntime.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:jsxRuntime.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 tailwindMerge.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__namespace.Root,Rl=Pe__namespace.Trigger;var Ug=he__namespace.forwardRef(({className:e,inset:t,children:o,...n},r)=>jsxRuntime.jsxs(Pe__namespace.SubTrigger,{ref:r,className:N(Bn,"data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[o,jsxRuntime.jsx(lucideReact.ChevronRight,{"aria-hidden":"true",className:"ml-auto"})]}));Ug.displayName="DropdownMenuSubTrigger";var Fg=he__namespace.forwardRef(({className:e,...t},o)=>{let n=ht();return jsxRuntime.jsx(Pe__namespace.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__namespace.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let r=ht();return jsxRuntime.jsx(Pe__namespace.Portal,{children:jsxRuntime.jsx(Pe__namespace.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__namespace.forwardRef(({className:e,inset:t,...o},n)=>jsxRuntime.jsx(Pe__namespace.Item,{ref:n,className:N(Bn,t&&"pl-8",e),...o}));Tr.displayName="DropdownMenuItem";var Og=he__namespace.forwardRef(({className:e,children:t,checked:o,...n},r)=>jsxRuntime.jsxs(Pe__namespace.CheckboxItem,{ref:r,className:N(Bn,"pl-8",e),checked:o,...n,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Pe__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":"true",className:"h-4 w-4"})})}),t]}));Og.displayName="DropdownMenuCheckboxItem";var _g=he__namespace.forwardRef(({className:e,children:t,...o},n)=>jsxRuntime.jsxs(Pe__namespace.RadioItem,{ref:n,className:N(Bn,"pl-8",e),...o,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Pe__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{"aria-hidden":"true",className:"h-2 w-2 fill-current"})})}),t]}));_g.displayName="DropdownMenuRadioItem";var Hg=he__namespace.forwardRef(({className:e,inset:t,...o},n)=>jsxRuntime.jsx(Pe__namespace.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__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Pe__namespace.Separator,{ref:o,className:N("-mx-1 my-1 h-px bg-muted",e),...t}));Vg.displayName="DropdownMenuSeparator";var Wg=i(({className:e,...t})=>jsxRuntime.jsx("span",{className:N("ml-auto text-xs tracking-widest opacity-60",e),...t}),"DropdownMenuShortcut");Wg.displayName="DropdownMenuShortcut";var jg=he__namespace.forwardRef(({className:e,children:t,iconClassName:o,size:n="default",...r},a)=>jsxRuntime.jsxs(Re__namespace.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,jsxRuntime.jsx(Re__namespace.Icon,{asChild:true,children:jsxRuntime.jsx(lucideReact.ChevronDown,{"aria-hidden":"true",className:N("h-4 w-4 opacity-50",o)})})]}));jg.displayName="SelectTrigger";var Pl=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Re__namespace.ScrollUpButton,{ref:o,className:N("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronUp,{"aria-hidden":"true",className:"h-4 w-4"})}));Pl.displayName="SelectScrollUpButton";var Nl=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Re__namespace.ScrollDownButton,{ref:o,className:N("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronDown,{"aria-hidden":"true",className:"h-4 w-4"})}));Nl.displayName="SelectScrollDownButton";var Gg=he__namespace.forwardRef(({className:e,children:t,position:o="popper",viewportClassName:n,disableTriggerViewportSizing:r=false,...a},l)=>{let s=ht();return jsxRuntime.jsx(Re__namespace.Portal,{children:jsxRuntime.jsxs(Re__namespace.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:[jsxRuntime.jsx(Pl,{}),jsxRuntime.jsx(Re__namespace.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}),jsxRuntime.jsx(Nl,{})]})})});Gg.displayName="SelectContent";var qg=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Re__namespace.Label,{ref:o,className:N("px-2 py-1.5 text-sm font-semibold",e),...t}));qg.displayName="SelectLabel";var Kg=he__namespace.forwardRef(({className:e,children:t,indicatorClassName:o,itemText:n,hideIndicator:r=false,...a},l)=>jsxRuntime.jsxs(Re__namespace.Item,{ref:l,className:N(Bn,"w-full",r?"px-2":"pl-8 pr-2",e),...a,children:[r?null:jsxRuntime.jsx("span",{className:N("absolute left-2 flex h-3.5 w-3.5 items-center justify-center",o),children:jsxRuntime.jsx(Re__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":"true",className:"h-4 w-4"})})}),n?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Re__namespace.ItemText,{asChild:true,children:jsxRuntime.jsx("span",{className:"sr-only",children:n})}),t]}):jsxRuntime.jsx(Re__namespace.ItemText,{children:t})]}));Kg.displayName="SelectItem";var Xg=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Re__namespace.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]=he.createContext(0));function tn(){return he.useContext(Bl)}i(tn,"useBentoDepth");function Rr({children:e,depth:t}){return jsxRuntime.jsx(Bl.Provider,{value:t,children:e})}i(Rr,"BentoDepthProvider");function on({children:e}){return jsxRuntime.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=he.useRef(),n=i(()=>{let a=o.current;a?.observer?.disconnect(),a?.marked.forEach(l=>l.removeAttribute(Pr)),o.current=void 0;},"clear");he.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 jsxRuntime.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?jsxRuntime.jsx("div",{"data-slot":"media",className:N(y.slots.panelMedia,g?.media),children:r}):null,M?jsxRuntime.jsx("div",{"data-slot":"header",className:N(y.slots.panelHeader,g?.header),style:y.styles.panelHeader,children:a!==void 0?a:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[en(o)?jsxRuntime.jsx("div",{"data-slot":"title",className:N(y.slots.panelTitle,g?.title),children:o}):null,en(n)?jsxRuntime.jsx("div",{"data-slot":"description",className:N(y.slots.panelDescription,g?.description),children:n}):null]})}):null,s!=null?jsxRuntime.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?jsxRuntime.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__namespace.useId().replace(/:/g,"")}`,c=he__namespace.useRef(null),[p,h]=he__namespace.useState({width:0,height:0,rx:"0px",ry:"0px"});he__namespace.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 jsxRuntime.jsxs("div",{ref:c,"aria-hidden":"true",className:`monkeys-border-effect monkeys-border-effect-${e}${s?` ${s}`:""}`,style:{...M,pointerEvents:"none"},children:[jsxRuntime.jsx("span",{className:"monkeys-border-effect-ring"}),e==="animated"&&jsxRuntime.jsxs("svg",{"aria-hidden":"true",focusable:"false",className:"monkeys-border-effect-svg",viewBox:`0 0 ${p.width||1} ${p.height||1}`,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:m,gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:p.width||1,y2:"0",children:[w.map((C,R)=>jsxRuntime.jsx("stop",{offset:`${R/(w.length-1)*100}%`,stopColor:C},R)),jsxRuntime.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",values:y,dur:`${Wl(a)}s`,repeatCount:"indefinite"})]})}),jsxRuntime.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 jsxRuntime.jsx(Rr,{depth:f?v:h,children:jsxRuntime.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?jsxRuntime.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:[jsxRuntime.jsxs("div",{className:N("flex min-w-0 flex-1 items-center gap-token-sm",l&&"basis-auto"),children:[d?jsxRuntime.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:jsxRuntime.jsx(d,{className:"size-4 text-primary",color:"currentColor",stroke:"currentColor"})}):null,jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("h2",{style:{margin:0},className:"truncate text-base font-semibold text-foreground",children:s}),p.description?jsxRuntime.jsx("div",{className:"mt-1 text-sm text-muted-foreground",children:p.description}):null]})]}),u?jsxRuntime.jsx("div",{className:N("shrink-0",l&&"max-w-full"),children:u}):null]}):void 0,...p,...y,decoration:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a,x?jsxRuntime.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__namespace.createContext(null)),yt=i(()=>he__namespace.useContext(xf),"useDialogDock");var Qi=he__namespace.forwardRef(({children:e,className:t,style:o,closeLabel:n="Close",showCloseButton:r=true,onInteractOutside:a,...l},s)=>{let d=yt(),u=he__namespace.useId(),m=he__namespace.useRef(null),c=he__namespace.useRef(false);return he__namespace.useEffect(()=>{c.current&&!d?.collapsed&&d?.activeId===u&&m.current?.focus(),c.current=!!d?.collapsed;},[d?.collapsed,d?.activeId,u]),he__namespace.useEffect(()=>d?.register(u),[d?.register,u]),d?.container?jsxRuntime.jsx(_e__namespace.Portal,{container:d.container,children:jsxRuntime.jsx("div",{style:{display:"contents"},children:jsxRuntime.jsx(on,{children:jsxRuntime.jsx(jl,{className:"monkeys-dialog-dock-panel overflow-auto",contentClassName:"shrink-0",style:{display:d.activeId===u?void 0:"none"},children:jsxRuntime.jsxs(_e__namespace.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&&jsxRuntime.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:jsxRuntime.jsx(lucideReact.PanelRightClose,{"aria-hidden":"true",className:"size-4"})}),r&&jsxRuntime.jsxs(_e__namespace.Close,{className:"monkeys-dialog-dock-close","aria-label":typeof n=="string"?n:void 0,children:[jsxRuntime.jsx(lucideReact.X,{"aria-hidden":"true",className:"size-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:n})]})]})})})})}):null});Qi.displayName="DockedDialogContent";var Yl=he.forwardRef(i(function({slotComponent:t,...o},n){return t?jsxRuntime.jsx(t,{...o,ref:n}):jsxRuntime.jsx(button.Button,{...o,ref:n})},"ButtonCore"));var Tf=he.forwardRef(i(function({dir:t,...o},n){let r=directionProvider.useDirection();return jsxRuntime.jsx(directionProvider.DirectionProvider,{direction:t==="ltr"||t==="rtl"?t:r,children:jsxRuntime.jsx(tabs.Tabs.Root,{...o,dir:t,ref:n})})},"TabsRoot")),En={Root:Tf,List:tabs.Tabs.List,Trigger:tabs.Tabs.Tab,Content:tabs.Tabs.Panel};var Mf=he__namespace.forwardRef(({className:e,style:t,...o},n)=>jsxRuntime.jsx(oo__namespace.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__namespace.forwardRef(({className:e,children:t,...o},n)=>jsxRuntime.jsx(oo__namespace.Header,{className:"flex",children:jsxRuntime.jsxs(oo__namespace.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,jsxRuntime.jsx(lucideReact.ChevronDown,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));If.displayName="AccordionTrigger";var Bf=he__namespace.forwardRef(({className:e,children:t,...o},n)=>jsxRuntime.jsx(oo__namespace.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:jsxRuntime.jsx("div",{className:N("pb-4 pt-0",e),children:t})}));Bf.displayName="AccordionContent";var Af=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Br__namespace.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:jsxRuntime.jsx(Br__namespace.Indicator,{className:"flex items-center justify-center text-current",children:jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":"true",className:"h-4 w-4"})})}));Af.displayName="Checkbox";var Ln=classVarianceAuthority.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__namespace.forwardRef(({className:e,variant:t,size:o,asChild:n=false,unstyled:r=false,...a},l)=>jsxRuntime.jsx(Yl,{ref:l,slotComponent:n?reactSlot.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__namespace.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 jsxRuntime.jsxs(Kt__namespace.Root,{ref:m,type:d??(c>0?"auto":void 0),className:N("group relative overflow-hidden",s&&"no-scrollbar",e),...u,children:[jsxRuntime.jsx(Kt__namespace.Viewport,{ref:n,onScroll:r,className:N("h-full w-full rounded-[inherit]",o),children:t}),a?jsxRuntime.jsx(ed,{orientation:l,className:N(s&&"size-0 p-0")}):null,jsxRuntime.jsx(Kt__namespace.Corner,{})]})});Ef.displayName="ScrollArea";var ed=he__namespace.forwardRef(({className:e,orientation:t="vertical",...o},n)=>jsxRuntime.jsx(Kt__namespace.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:jsxRuntime.jsx(Kt__namespace.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ed.displayName="ScrollBar";var Lf=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(ir__namespace.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:jsxRuntime.jsx(ir__namespace.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__namespace.createContext(null));function Ji(){let e=he__namespace.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__namespace.Children.only(t):void 0}i(ea,"tabsSlot");var Df=he__namespace.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__namespace.useState(r??""),v=n??p,w=he__namespace.useId(),g=he__namespace.useMemo(()=>({activationMode:o,orientation:t,baseId:w,value:v}),[o,t,w,v]);return jsxRuntime.jsx(td.Provider,{value:g,children:jsxRuntime.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__namespace.forwardRef(({className:e,gap:t,style:o,loop:n,asChild:r,children:a,onKeyDown:l,...s},d)=>{let{activationMode:u,orientation:m}=Ji();return jsxRuntime.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__namespace.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 jsxRuntime.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=>jsxRuntime.jsx(o?reactSlot.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__namespace.forwardRef(({className:e,value:t,forceMount:o,hidden:n,asChild:r,children:a,...l},s)=>{let d=tn(),u=Ji();return jsxRuntime.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)=>jsxRuntime.jsx(r?reactSlot.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__namespace.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let r=ht();return jsxRuntime.jsx(Do__namespace.Portal,{children:jsxRuntime.jsx(Do__namespace.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__namespace.createContext(false));function ad({open:e,defaultOpen:t,onOpenChange:o,modal:n,...r}){let a=yt(),[l,s]=he__namespace.useState(t??false),d=e??l;return jsxRuntime.jsx(id.Provider,{value:d,children:jsxRuntime.jsx(_e__namespace.Root,{...r,open:d,modal:a?false:n,onOpenChange:u=>{s(u),o?.(u);}})})}i(ad,"Dialog");var Hf=_e__namespace.Portal;var sd=he__namespace.forwardRef(({className:e,...t},o)=>{let n=ht();return jsxRuntime.jsx(_e__namespace.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__namespace.forwardRef(({className:e,...t},o)=>{let n=ht();return jsxRuntime.jsx(_e__namespace.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__namespace.forwardRef(({className:e,children:t,showCloseButton:o=true,closeLabel:n="Close",overlayClassName:r,overlayStyle:a,...l},s)=>{let d=yt(),u=he__namespace.useContext(id);return d?u?jsxRuntime.jsx(Qi,{...l,ref:s,className:e,showCloseButton:o,closeLabel:n,children:t}):null:jsxRuntime.jsxs(Hf,{children:[jsxRuntime.jsx(sd,{className:r,style:a}),jsxRuntime.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:[jsxRuntime.jsx(on,{children:t}),o?jsxRuntime.jsxs(_e__namespace.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:[jsxRuntime.jsx(lucideReact.X,{"aria-hidden":"true",className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:n})]}):null]})]})});Dn.displayName="DialogContent";var Vf=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.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})=>jsxRuntime.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})=>jsxRuntime.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__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(_e__namespace.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__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(_e__namespace.Description,{ref:o,className:N("text-sm text-muted-foreground",e),...t}));na.displayName="DialogDescription";he__namespace.forwardRef((e,t)=>{let o=yt()?_e__namespace.Trigger:qe__namespace.Trigger;return jsxRuntime.jsx(o,{...e,ref:t})});var jf=qe__namespace.Portal,dd=he__namespace.forwardRef(({className:e,style:t,...o},n)=>{let r=ht();return jsxRuntime.jsx(qe__namespace.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__namespace.forwardRef(({className:e,style:t,children:o,...n},r)=>{let a=ht();return yt()?jsxRuntime.jsx(Dn,{...n,...a,ref:r,role:"alertdialog",showCloseButton:false,className:e,style:t,children:o}):jsxRuntime.jsxs(jf,{children:[jsxRuntime.jsx(dd,{}),jsxRuntime.jsx(qe__namespace.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:jsxRuntime.jsx(on,{children:o})})]})});Gf.displayName="AlertDialogContent";var qf=i(({className:e,...t})=>jsxRuntime.jsx("div",{className:N("flex flex-col space-y-2 text-center sm:text-left",e),...t}),"AlertDialogHeader"),Kf=i(({className:e,...t})=>jsxRuntime.jsx("div",{className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}),"AlertDialogFooter"),Xf=he__namespace.forwardRef(({className:e,...t},o)=>{let n=yt()?_e__namespace.Title:qe__namespace.Title;return jsxRuntime.jsx(n,{ref:o,className:N("text-lg font-semibold",e,yt()?.showTitle===false&&"sr-only"),...t})}),Yf=he__namespace.forwardRef(({className:e,...t},o)=>{let n=yt()?_e__namespace.Description:qe__namespace.Description;return jsxRuntime.jsx(n,{ref:o,className:N("text-sm text-muted-foreground",e),...t})}),Qf=he__namespace.forwardRef(({className:e,...t},o)=>{let n=yt()?_e__namespace.Close:qe__namespace.Action;return jsxRuntime.jsx(n,{ref:o,className:N(Ln(),e),...t})}),Zf=he__namespace.forwardRef(({className:e,...t},o)=>{let n=yt()?_e__namespace.Close:qe__namespace.Action;return jsxRuntime.jsx(n,{ref:o,className:N(Ln({variant:"destructive"}),e),...t})}),Jf=he__namespace.forwardRef(({className:e,...t},o)=>{let n=yt()?_e__namespace.Close:qe__namespace.Cancel;return jsxRuntime.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__namespace.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,type:n,...r},a)=>jsxRuntime.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__namespace.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,...n},r)=>jsxRuntime.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__namespace.forwardRef((e,t)=>jsxRuntime.jsx("select",{ref:t,...e}));th.displayName="NativeSelect";var oh=he__namespace.forwardRef((e,t)=>jsxRuntime.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 jsxRuntime.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 jsxRuntime.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
|
|
246
|
+
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]=he.useState(u),w=Zt(),g=Xo(),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},I=s||!!o?.props.disabled,C=!I&&(d??h),R=i(L=>{L&&I||(v(L),m?.(L));},"setOpen"),P=e.filter(L=>L.options.length>0),F=r!=null&&r!==false;return jsxRuntime.jsx(U,{children:jsxRuntime.jsxs(mo__namespace.Root,{modal:false,open:C,onOpenChange:R,children:[jsxRuntime.jsx(mo__namespace.Trigger,{asChild:true,children:o?he.cloneElement(o,{type:o.props.type??"button",disabled:I,"aria-label":o.props["aria-label"]??a}):jsxRuntime.jsx(Mo,{shape:"icon",size:"sm",disabled:I,"aria-label":a,children:jsxRuntime.jsx(lucideReact.Plus,{size:g.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"})})}),n&&jsxRuntime.jsx(mo__namespace.Anchor,{virtualRef:n}),C&&jsxRuntime.jsx(Cn,{children:jsxRuntime.jsx(U,{portal:true,children:jsxRuntime.jsxs(mo__namespace.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&&jsxRuntime.jsx("div",{className:["bui-quick-prompt-upload",p?.upload].filter(Boolean).join(" "),style:c?.upload,children:r}),P.length>0?jsxRuntime.jsx("div",{className:["bui-quick-prompt-groups",p?.groups].filter(Boolean).join(" "),style:c?.groups,children:P.map((L,N)=>jsxRuntime.jsxs("section",{"aria-label":L.label,children:[jsxRuntime.jsx("h2",{className:"bui-quick-prompt-heading",children:L.label}),L.options.map(k=>jsxRuntime.jsx(Mo,{variant:"ghost",size:"sm",icon:jsxRuntime.jsx(lucideReact.Box,{size:g.cssValues["component.ui.icon.size.s16"],"aria-hidden":"true"}),className:"bui-quick-prompt-option",onClick:()=>{R(false),t(k);},children:jsxRuntime.jsxs("span",{className:"bui-quick-prompt-copy",children:[jsxRuntime.jsx("span",{children:k.label}),k.description&&jsxRuntime.jsx("span",{className:"bui-quick-prompt-description",children:k.description})]})},k.key))]},`${L.label}-${N}`))}):F?null:jsxRuntime.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 jsxRuntime.jsx("span",{className:"flex items-end gap-0.5",children:[0,1,2].map(o=>jsxRuntime.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]=he.useState(0),[s,d]=he.useState(false),u=e[a]??e[0],m=e.map((c,p)=>({o:c,i:p})).filter(({i:c})=>c!==a);return e.length?jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{className:"w-full max-w-95 overflow-hidden rounded-card bg-surface shadow-card",children:[jsxRuntime.jsxs("div",{className:"primitive-card-pad",children:[jsxRuntime.jsx("span",{className:"text-[14px] font-medium text-ink",children:r.title}),jsxRuntime.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)]}),jsxRuntime.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:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsxs("div",{className:"border-t border-line bg-surface px-2 py-2",children:[jsxRuntime.jsx("p",{className:"px-1.5 pb-1 text-[11px] font-medium text-ink-3",children:r.otherOptions}),m.map(({o:c,i:p})=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>{l(p);},className:`flex w-full items-center gap-2.5 rounded-control px-1.5 py-1.5
|
|
247
|
+
text-left transition-colors duration-100 hover:bg-hover`,children:[jsxRuntime.jsx(hl,{signal:c.signal,tone:c.tone}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[12.5px] text-ink",children:c.short}),jsxRuntime.jsx("span",{className:"shrink-0 text-[11px] text-ink-3",children:c.label})]},c.key))]})})}),jsxRuntime.jsxs("div",{className:"primitive-card-footer flex items-center justify-between gap-3 bg-surface",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(hl,{signal:u.signal,tone:u.tone}),jsxRuntime.jsx("span",{className:"text-[12.5px] font-medium text-ink-2",children:u.label})]}),jsxRuntime.jsxs("span",{className:"-mr-0.5 flex items-center gap-2",children:[jsxRuntime.jsx(Me,{variant:"secondary",size:"sm","aria-expanded":s,onClick:()=>d(c=>!c),className:"px-2.5 text-[12.5px]",children:r.alternatives}),jsxRuntime.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 _i={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 jsxRuntime.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 eo={Text:jsxRuntime.jsx("path",{d:"M4 6h16M4 12h10M4 18h7"}),File:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsxRuntime.jsx("path",{d:"M14 2v6h6"})]}),Collection:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("ellipse",{cx:"12",cy:"5",rx:"8",ry:"3"}),jsxRuntime.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":jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("path",{d:"m8.5 12 2.4 2.4 4.6-4.9"})]}),"Multi select":jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M11 6h9M11 12h9M11 18h9"}),jsxRuntime.jsx("path",{d:"M4 6l1.5 1.5L8 5M4 12l1.5 1.5L8 11M4 18l1.5 1.5L8 17"})]}),URL:jsxRuntime.jsxs("g",{children:[jsxRuntime.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"}),jsxRuntime.jsx("path",{d:"M14 11a5 5 0 0 0-7.1-.1l-2 2A5 5 0 0 0 12 20l1.1-1.1"})]}),Reference:jsxRuntime.jsx("path",{d:"M7 17 17 7M9 7h8v8"}),JSON:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M8 4c-2 0-2 2-2 3s.5 3-2 3c2.5 0 2 2 2 3s0 3 2 3"}),jsxRuntime.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":jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),jsxRuntime.jsx("path",{d:"M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2"})]}),Date:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:"3",y:"5",width:"18",height:"16",rx:"2.5"}),jsxRuntime.jsx("path",{d:"M8 3v4M16 3v4M3 10h18"})]})},Vi={model:jsxRuntime.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:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.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:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"8",r:"4"}),jsxRuntime.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 jsxRuntime.jsxs("label",{className:"records-checkbox",title:n,onClick:r=>r.stopPropagation(),children:[jsxRuntime.jsx("input",{type:"checkbox",checked:e,onChange:o,"aria-label":n}),jsxRuntime.jsx("span",{className:`records-checkbox-box ${e||t?"is-active":""}`,children:t?jsxRuntime.jsx("span",{className:"records-checkbox-dash"}):e?jsxRuntime.jsx(we,{size:12,children:jsxRuntime.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 jsxRuntime.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=he.useRef(null),r=he.useRef(null),[a,l]=he.useState(e.length);he.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 jsxRuntime.jsxs("div",{ref:n,className:"records-tags",title:e.join(", "),"aria-label":o("Categories: {categories}",{categories:e.join(", ")}),children:[jsxRuntime.jsxs("div",{ref:r,className:"records-tags-measure","aria-hidden":true,children:[e.map(d=>jsxRuntime.jsx("span",{"data-tag-measure":true,children:jsxRuntime.jsx(yl,{name:d,colors:t})},d)),jsxRuntime.jsxs("span",{"data-more-measure":true,className:"records-more-tag",children:["+",e.length]})]}),e.slice(0,a).map(d=>jsxRuntime.jsx(yl,{name:d,colors:t},d)),s>0&&jsxRuntime.jsxs("span",{className:"records-more-tag",children:["+",s]})]})}i(cg,"TagList");function Mn(){let e=oe();return jsxRuntime.jsxs("span",{className:"records-calc",children:[jsxRuntime.jsx("span",{className:"records-muted",children:e("Calculating\u2026")}),jsxRuntime.jsx("span",{className:"records-pulse"})]})}i(Mn,"CalcCell");function Sr({on:e,onToggle:t,label:o}){return jsxRuntime.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:jsxRuntime.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 jsxRuntime.jsxs("th",{className:`records-header-cell ${d?"is-colsel":""} ${s}`,children:[jsxRuntime.jsxs("button",{type:"button",className:"records-header-button",onClick:u,children:[jsxRuntime.jsx("span",{className:"records-header-icon",children:t}),jsxRuntime.jsx("span",{className:"truncate",children:e}),o&&jsxRuntime.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:jsxRuntime.jsx(we,{size:12,children:jsxRuntime.jsx("path",{d:"M12 5v14M5 12l7 7 7-7"})})})]}),jsxRuntime.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 Eo({label:e,children:t}){return jsxRuntime.jsxs("div",{className:"relative flex h-8 items-center justify-between",children:[jsxRuntime.jsx("span",{className:"text-[13px] text-ink-3",children:e}),t]})}i(Eo,"ConfigRow");function xl({label:e,options:t,selected:o,onSelect:n}){return jsxRuntime.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:[jsxRuntime.jsx("div",{className:"px-2 pb-1 pt-0.5 text-[11.5px] font-medium text-ink-3",children:e}),jsxRuntime.jsx(tt,{className:"flex flex-col gap-px",children:t.map(r=>jsxRuntime.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:[jsxRuntime.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center text-ink-2",children:r.icon}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate",children:r.label}),jsxRuntime.jsx("span",{className:o===r.label?"text-ink":"invisible",children:jsxRuntime.jsx(we,{size:14,strokeWidth:2.2,children:jsxRuntime.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 jsxRuntime.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:[jsxRuntime.jsx("div",{className:"px-2 pb-1 pt-0.5 text-[11.5px] font-medium text-ink-3",children:n("Use values from")}),jsxRuntime.jsx(tt,{className:"flex flex-col gap-px",children:e.map(r=>{let a=t.includes(r);return jsxRuntime.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:[jsxRuntime.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:jsxRuntime.jsx(we,{size:11,strokeWidth:2.4,children:jsxRuntime.jsx("path",{d:"m5 12 4 4L19 6"})})}),jsxRuntime.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]=he.useState(new Set),[v,w]=he.useState({key:"name",dir:1}),[g,f]=he.useState(_i),[x,y]=he.useState(100),[$,I]=he.useState(false),[C,R]=he.useState(null),P=he.useRef(null),F=he.useRef(null),L=he.useRef(null);he.useEffect(()=>()=>L.current?.(),[]);let[N,k]=he.useState(null),T=he.useRef({}),[z,H]=he.useState(false),[Z,J]=he.useState(false),[O,K]=he.useState(null),[A,ne]=he.useState({}),[ee,se]=he.useState({}),[ce,B]=he.useState(new Set),[j,E]=he.useState(false),[W,te]=he.useState({required:false,allowEmpty:true,confidence:false}),[ie,le]=he.useState(null),[Be,G]=he.useState(null),[fe,wt]=he.useState(false),Ht=Object.keys(s).length>0,[ve,We]=he.useState(false),Mt=he.useRef(null),$o=he.useRef(false);he.useLayoutEffect(()=>{if($||!F.current)return;let S=Array.from(F.current.querySelectorAll("thead th"));if(S.length<6)return;let Y={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:_i.ai};P.current=Y,f(Y),y(S[S.length-1].getBoundingClientRect().width),I(true);},[$]);let _t=he.useMemo(()=>[...e].sort((S,Y)=>(v.key==="name"?S.name.localeCompare(Y.name):v.key==="last"?S.last.localeCompare(Y.last):$r[S.strength].rank-$r[Y.strength].rank)*v.dir),[e,v]);he.useEffect(()=>{if(!ve||!Mt.current)return;let S=Mt.current.closest(".records-scroll");S&&($o.current=true,S.scrollLeft=S.scrollWidth);let Y=Mt.current.getBoundingClientRect();k({col:l,x:Math.min(Y.left,window.innerWidth-336),y:Y.bottom+6}),We(false);},[ve,fe]),he.useEffect(()=>{if(!N&&!ie&&!Be)return;let S=i(Y=>{Y.target.closest("[data-recpop]")||(k(null),K(null),J(false),E(false),le(null),G(null));},"close");return document.addEventListener("pointerdown",S),()=>document.removeEventListener("pointerdown",S)},[N,ie,Be]);let mt=i(S=>Y=>{let Oe=Y.currentTarget.closest("th");Oe&&(le(null),G(null),K(null),J(false),E(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"),It=i((S,Y)=>!!d&&d.col===S&&Y>=d.resolved,"isCalc"),So=_t.length>0&&_t.every(S=>p.has(S.id)),ao=!So&&_t.some(S=>p.has(S.id)),X=i(S=>w(Y=>Y.key===S?{key:S,dir:Y.dir*-1}:{key:S,dir:1}),"toggleSort"),et=i((S,Y=120)=>Oe=>{Oe.preventDefault(),Oe.stopPropagation(),k(null),K(null),J(false),E(false),le(null),G(null),L.current?.();let Bt=Oe.clientX,At=g[S],Co=document.body.style.cursor,un=document.body.style.userSelect;document.body.style.cursor="col-resize",document.body.style.userSelect="none",R(S);let Tt=i(To=>{let Vt=Math.max(Y,At+To.clientX-Bt);f(On=>({...On,[S]:Vt}));},"move"),st=i(()=>{window.removeEventListener("pointermove",Tt),window.removeEventListener("pointerup",st),window.removeEventListener("pointercancel",st),document.body.style.cursor=Co,document.body.style.userSelect=un,L.current=null,R(null);},"finish");L.current=st,window.addEventListener("pointermove",Tt),window.addEventListener("pointerup",st),window.addEventListener("pointercancel",st);},"startColumnResize"),so=i(S=>{h(S),m?.([...S]);},"commitSelection"),Kr=i(S=>{let Y=new Set(p);Y.has(S)?Y.delete(S):Y.add(S),so(Y);},"toggleRow"),Xr=i(()=>{let S=new Set(p);So?_t.forEach(Y=>S.delete(Y.id)):_t.forEach(Y=>S.add(Y.id)),so(S);},"toggleAll"),Ce=N?{...n[N.col]??{type:"Text",tool:"Manual",toolKind:"user"},...A[N.col]}:null,Yt=N&&Ce?ee[N.col]??(Ce.inputs?[Ce.inputs]:[]):[],lo=g.company+g.categories+g.last+g.strength+g.links+(fe?g.ai:0)+x;return jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("div",{className:`records-shell${t?" is-fill":""}`,children:[jsxRuntime.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),K(null),J(false),E(false),le(null),G(null);},children:jsxRuntime.jsxs("table",{ref:F,className:"records-table",style:{width:$?lo:"100%",minWidth:lo},children:[jsxRuntime.jsxs("colgroup",{children:[jsxRuntime.jsx("col",{className:"records-company-col",style:{width:g.company}}),jsxRuntime.jsx("col",{className:"records-category-col",style:{width:g.categories}}),jsxRuntime.jsx("col",{className:"records-last-col",style:{width:g.last}}),jsxRuntime.jsx("col",{className:"records-strength-col",style:{width:g.strength}}),jsxRuntime.jsx("col",{className:"records-link-col",style:{width:g.links}}),fe&&jsxRuntime.jsx("col",{style:{width:g.ai}}),jsxRuntime.jsx("col",{style:{width:100}})]}),jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{children:[jsxRuntime.jsxs("th",{className:`records-header-cell records-sticky-cell ${N?.col==="Company"?"is-colsel":""}`,children:[jsxRuntime.jsxs("div",{className:"records-company-header",style:{cursor:"pointer"},onClick:S=>mt("Company")(S),children:[jsxRuntime.jsx(vl,{checked:So,mixed:ao,onChange:Xr,label:c("Select all companies")}),jsxRuntime.jsx("span",{children:c("Company")})]}),jsxRuntime.jsx("span",{role:"separator","aria-orientation":"vertical","aria-label":c("Resize Company column"),className:`records-resize-handle ${C==="company"?"is-resizing":""}`,onPointerDown:et("company",180)})]}),jsxRuntime.jsx(Cr,{label:c("Categories"),selected:N?.col==="Categories",onPick:mt("Categories"),sort:v,onSort:X,onResizeStart:et("categories"),resizing:C==="categories",icon:jsxRuntime.jsx(we,{size:15,children:eo["Multi select"]})}),jsxRuntime.jsx(Cr,{label:c("Last interaction"),selected:N?.col==="Last interaction",onPick:mt("Last interaction"),sortKey:"last",sort:v,onSort:X,onResizeStart:et("last"),resizing:C==="last",icon:jsxRuntime.jsx(we,{size:15,children:eo.Date})}),jsxRuntime.jsx(Cr,{label:c("Connection strength"),selected:N?.col==="Connection strength",onPick:mt("Connection strength"),sortKey:"strength",sort:v,onSort:X,onResizeStart:et("strength"),resizing:C==="strength",icon:jsxRuntime.jsx(we,{size:15,children:eo["Single select"]})}),jsxRuntime.jsx(Cr,{label:c("Links"),selected:N?.col==="Links",onPick:mt("Links"),sort:v,onSort:X,onResizeStart:et("links"),resizing:C==="links",icon:jsxRuntime.jsx(we,{size:15,children:eo.URL})}),fe&&jsxRuntime.jsxs("th",{ref:Mt,className:`records-header-cell ${N?.col===l?"is-colsel":""}`,children:[jsxRuntime.jsxs("button",{type:"button",className:"records-header-button",onClick:mt(l),children:[jsxRuntime.jsx("span",{className:"records-header-icon",children:jsxRuntime.jsx(we,{size:15,children:eo.Text})}),jsxRuntime.jsx("span",{className:"truncate",children:l})]}),jsxRuntime.jsx("span",{role:"separator","aria-orientation":"vertical","aria-label":c("Resize {label} column",{label:l}),className:`records-resize-handle ${C==="ai"?"is-resizing":""}`,onPointerDown:et("ai")})]}),jsxRuntime.jsx("th",{className:"records-header-cell",children:jsxRuntime.jsxs("div",{className:"flex h-[35px] items-center gap-1 px-2",children:[jsxRuntime.jsx("button",{type:"button","aria-label":c("New property"),"data-recpop":true,onClick:S=>{k(null),G(null);let Y=S.currentTarget.getBoundingClientRect();le(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:jsxRuntime.jsx(we,{size:15,strokeWidth:2,children:jsxRuntime.jsx("path",{d:"M12 5v14M5 12h14"})})}),jsxRuntime.jsx("button",{type:"button","aria-label":c("Table options"),"aria-expanded":!!Be,"data-recpop":true,onClick:S=>{k(null),le(null);let Y=S.currentTarget.getBoundingClientRect();G(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:jsxRuntime.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":true,children:[jsxRuntime.jsx("circle",{cx:"5",cy:"12",r:"1.6"}),jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"1.6"}),jsxRuntime.jsx("circle",{cx:"19",cy:"12",r:"1.6"})]})})]})})]})}),jsxRuntime.jsx("tbody",{"data-sound-silent":true,children:_t.map((S,Y)=>{let Oe=p.has(S.id),Bt=$r[S.strength];return jsxRuntime.jsxs("tr",{className:`records-row ${Oe?"is-selected":""}`,children:[jsxRuntime.jsxs("td",{className:`records-cell records-sticky-cell records-company-cell ${N?.col==="Company"?"is-colsel":""}`,children:[jsxRuntime.jsx("span",{className:"records-rownum",children:Y+1}),jsxRuntime.jsx(vl,{checked:Oe,onChange:()=>Kr(S.id),label:c("Select {name}",{name:S.name})}),jsxRuntime.jsx("span",{className:"records-company-mark",children:S.name.slice(0,1).toUpperCase()}),jsxRuntime.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})]}),jsxRuntime.jsx("td",{className:`records-cell ${N?.col==="Categories"?"is-colsel":""}`,children:It("Categories",Y)?jsxRuntime.jsx(Mn,{}):jsxRuntime.jsx(cg,{tags:S.tags,colors:o})}),jsxRuntime.jsx("td",{className:`records-cell ${S.last==="No contact"?"records-muted":""} ${N?.col==="Last interaction"?"is-colsel":""}`,children:It("Last interaction",Y)?jsxRuntime.jsx(Mn,{}):S.last}),jsxRuntime.jsx("td",{className:`records-cell ${N?.col==="Connection strength"?"is-colsel":""}`,children:It("Connection strength",Y)?jsxRuntime.jsx(Mn,{}):jsxRuntime.jsxs("span",{className:"records-strength",children:[jsxRuntime.jsx("span",{className:"records-strength-dot",style:{background:Bt.color}}),c(Bt.label)]})}),jsxRuntime.jsx("td",{className:`records-cell ${N?.col==="Links"?"is-colsel":""}`,children:It("Links",Y)?jsxRuntime.jsx(Mn,{}):S.website?jsxRuntime.jsxs("a",{className:"records-link",href:`https://${S.website}`,title:S.website,target:"_blank",rel:"noreferrer",children:[jsxRuntime.jsx("span",{className:"records-link-label",children:S.website}),jsxRuntime.jsx(we,{size:12,children:jsxRuntime.jsx("path",{d:"M14 5h5v5M19 5l-8 8"})})]}):jsxRuntime.jsx("span",{className:"records-muted",children:"\u2014"})}),fe&&jsxRuntime.jsx("td",{className:`records-cell ${N?.col===l?"is-colsel":""}`,children:d?.col===l?Y<d.resolved?s[S.id]??"\u2014":jsxRuntime.jsx(Mn,{}):Ht?s[S.id]??"\u2014":jsxRuntime.jsx("span",{className:"records-muted",children:"\u2014"})}),jsxRuntime.jsx("td",{className:"records-cell"})]},S.id)})}),jsxRuntime.jsx("tfoot",{children:jsxRuntime.jsxs("tr",{className:"records-calculation-row",children:[jsxRuntime.jsx("td",{className:"records-cell records-sticky-cell",children:jsxRuntime.jsxs("span",{className:"records-footer-value records-calculation-label",children:[jsxRuntime.jsx("span",{className:"records-calculation-number",children:e.length})," ",c("count")]})}),jsxRuntime.jsx("td",{className:"records-cell",children:jsxRuntime.jsxs("button",{type:"button",className:"records-add-calculation",onClick:mt("Categories"),children:[jsxRuntime.jsx(we,{size:15,children:jsxRuntime.jsx("path",{d:"M12 5v14M5 12h14"})}),c("Add calculation")]})}),jsxRuntime.jsx("td",{className:"records-cell records-muted",children:jsxRuntime.jsx("span",{className:"records-footer-value",children:"\u2014"})}),jsxRuntime.jsx("td",{className:"records-cell",children:jsxRuntime.jsxs("span",{className:"records-footer-value records-average",children:[jsxRuntime.jsx("span",{className:"records-strength-dot",style:{background:"var(--bui-orange)"}}),Math.round(e.reduce((S,Y)=>S+$r[Y.strength].rank,0)/Math.max(1,e.length)/3*100),c("% average")]})}),jsxRuntime.jsx("td",{className:"records-cell",children:jsxRuntime.jsxs("span",{className:"records-footer-value records-muted",children:[e.filter(S=>S.website).length," ",c("links")]})}),fe&&jsxRuntime.jsx("td",{className:"records-cell records-muted",children:jsxRuntime.jsx("span",{className:"records-footer-value",children:Ht?`${e.length} filled`:"\u2014"})}),jsxRuntime.jsx("td",{className:"records-cell"})]})})]})}),N&&Ce&&jsxRuntime.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:N.y,left:N.x,animation:"bui-pop-in 160ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top left"},children:[jsxRuntime.jsx("div",{className:"pb-2 text-[13.5px] font-medium text-ink",children:c(N.col)}),jsxRuntime.jsxs(Eo,{label:c("Type"),children:[jsxRuntime.jsxs("button",{type:"button","aria-haspopup":"menu","aria-expanded":O==="type",onClick:()=>K(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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:14,children:eo[Ce.type]??eo.Text})}),Ce.type,jsxRuntime.jsx("span",{className:"text-ink-3",children:jsxRuntime.jsx(we,{size:12,strokeWidth:2.2,children:jsxRuntime.jsx("path",{d:"M9 6l6 6-6 6"})})})]}),O==="type"&&jsxRuntime.jsx(xl,{label:c("Property type"),selected:Ce.type,options:bl.map(S=>({label:S,icon:jsxRuntime.jsx(we,{size:15,children:eo[S]})})),onSelect:S=>{ne(Y=>({...Y,[N.col]:{...Y[N.col],type:S}})),K(null);}})]}),jsxRuntime.jsxs(Eo,{label:c("Tool"),children:[jsxRuntime.jsxs("button",{type:"button","aria-haspopup":"menu","aria-expanded":O==="tool",onClick:()=>K(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:[jsxRuntime.jsx("span",{className:Ce.toolKind==="model"?"text-accent":"text-ink-2",children:Ce.toolKind==="model"?jsxRuntime.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":true,children:Vi.model}):jsxRuntime.jsx(we,{size:14,children:Vi[Ce.toolKind]})}),Ce.tool,jsxRuntime.jsx("span",{className:"text-ink-3",children:jsxRuntime.jsx(we,{size:12,strokeWidth:2.2,children:jsxRuntime.jsx("path",{d:"M9 6l6 6-6 6"})})})]}),O==="tool"&&jsxRuntime.jsx(xl,{label:c("Model"),selected:Ce.tool,options:r.map(S=>({label:S,icon:jsxRuntime.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":true,children:Vi.model})})),onSelect:S=>{ne(Y=>({...Y,[N.col]:{...Y[N.col],tool:S,toolKind:"model"}})),K(null);}})]}),jsxRuntime.jsxs(Eo,{label:c("Grounding"),children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(Sr,{label:c("Grounding"),on:z,onToggle:()=>H(S=>!S)}),jsxRuntime.jsx("button",{type:"button","aria-label":c("About grounding"),"aria-expanded":Z,onClick:()=>J(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:jsxRuntime.jsx(we,{size:13,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.jsx("path",{d:"M12 8h.01M11 12h1v4h1"})]})})})]}),Z&&jsxRuntime.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.")})]}),jsxRuntime.jsxs(Eo,{label:c("Inputs"),children:[jsxRuntime.jsxs("button",{type:"button","aria-haspopup":"menu","aria-expanded":O==="inputs",onClick:()=>K(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:[Yt.length?jsxRuntime.jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[Yt.slice(0,2).map(S=>jsxRuntime.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)),Yt.length>2&&jsxRuntime.jsxs("span",{className:"text-[11px] font-medium text-ink-3",children:["+",Yt.length-2]})]}):jsxRuntime.jsx("span",{children:c("Select inputs")}),jsxRuntime.jsx("span",{className:"shrink-0 text-ink-3",children:jsxRuntime.jsx(we,{size:12,strokeWidth:2.2,children:jsxRuntime.jsx("path",{d:"M9 6l6 6-6 6"})})})]}),O==="inputs"&&jsxRuntime.jsx(ug,{selected:Yt,options:a.filter(S=>S!==N.col),onToggle:S=>{se(Y=>{let Oe=Y[N.col]??(Ce.inputs?[Ce.inputs]:[]),Bt=Oe.includes(S)?Oe.filter(At=>At!==S):[...Oe,S];return {...Y,[N.col]:Bt}});}})]}),jsxRuntime.jsx("div",{contentEditable:true,onInput:S=>{T.current[N.col]=S.currentTarget.textContent??"";},suppressContentEditableWarning:true,role:"textbox","aria-label":c("{column} calculation prompt",{column:N.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?jsxRuntime.jsxs("span",{className:"text-ink",children:[Ce.prompt.before,Ce.prompt.chip&&jsxRuntime.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]}):jsxRuntime.jsx("span",{className:"text-ink-3",children:c("Set a prompt (press @ to mention an input)")})}),jsxRuntime.jsxs("button",{type:"button",disabled:!!d,onClick:()=>{u?.(N.col,{...Ce,selectedInputs:Yt,promptText:T.current[N.col]??[Ce.prompt?.before,Ce.prompt?.chip,Ce.prompt?.after].filter(Boolean).join(" "),grounding:z,...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:[jsxRuntime.jsx(we,{size:14,strokeWidth:1.9,children:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v6h-6"})}),c("Go calculate")]}),jsxRuntime.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:[jsxRuntime.jsxs("button",{"data-menu-row":true,type:"button","aria-pressed":ce.has(N.col),onClick:()=>B(S=>{let Y=new Set(S);return Y.has(N.col)?Y.delete(N.col):Y.add(N.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:[jsxRuntime.jsx("span",{className:ce.has(N.col)?"text-accent":"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:jsxRuntime.jsx("path",{d:"M12 17v5M8 3h8l-1 7 3 3H6l3-3-1-7z"})})}),ce.has(N.col)?c("Unpin"):c("Pin")]}),jsxRuntime.jsxs("button",{"data-menu-row":true,type:"button","aria-expanded":j,onClick:()=>E(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:[jsxRuntime.jsx("span",{className:j?"text-ink":"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"3"}),jsxRuntime.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"})]})})}),jsxRuntime.jsx("span",{className:"flex-1",children:c("More settings")}),jsxRuntime.jsx("span",{className:`text-ink-3 transition-transform duration-150 ${j?"rotate-90":""}`,children:jsxRuntime.jsx(we,{size:12,strokeWidth:2.2,children:jsxRuntime.jsx("path",{d:"M9 6l6 6-6 6"})})})]}),N.col===l&&jsxRuntime.jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{wt(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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:jsxRuntime.jsxs("g",{children:[jsxRuntime.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"}),jsxRuntime.jsx("path",{d:"M9.9 9.9a3 3 0 0 0 4.2 4.2"})]})})}),c("Hide from view")]})]}),j&&jsxRuntime.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:[jsxRuntime.jsx("div",{className:"pb-1 text-[11.5px] font-medium text-ink-3",children:c("Behavior")}),jsxRuntime.jsx(Eo,{label:c("Required value"),children:jsxRuntime.jsx(Sr,{label:c("Required value"),on:W.required,onToggle:()=>te(S=>({...S,required:!S.required}))})}),jsxRuntime.jsx(Eo,{label:c("Allow empty results"),children:jsxRuntime.jsx(Sr,{label:c("Allow empty results"),on:W.allowEmpty,onToggle:()=>te(S=>({...S,allowEmpty:!S.allowEmpty}))})}),jsxRuntime.jsx(Eo,{label:c("Show confidence"),children:jsxRuntime.jsx(Sr,{label:c("Show confidence"),on:W.confidence,onToggle:()=>te(S=>({...S,confidence:!S.confidence}))})})]})]}),ie&&jsxRuntime.jsxs("div",{"data-recpop":true,className:"fixed z-50 w-[260px] rounded-[14px] bg-surface p-1.5 shadow-overlay",style:{top:ie.y,left:ie.x,animation:"bui-pop-in 160ms cubic-bezier(0.23,1,0.32,1) both",transformOrigin:"top left"},children:[jsxRuntime.jsx("div",{className:"px-2 pb-1 pt-1 text-[12px] font-medium text-ink-3",children:c("New property")}),jsxRuntime.jsx(tt,{className:"flex flex-col gap-px",children:bl.map(S=>jsxRuntime.jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{le(null),wt(true),We(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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:eo[S]})}),S]},S))})]}),Be&&jsxRuntime.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:[jsxRuntime.jsx("div",{className:"px-2 pb-1 pt-1 text-[12px] font-medium text-ink-3",children:c("Table options")}),jsxRuntime.jsxs(tt,{className:"flex flex-col gap-px",children:[jsxRuntime.jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{let S=Be;G(null),le({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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:15,strokeWidth:2,children:jsxRuntime.jsx("path",{d:"M12 5v14M5 12h14"})})}),c("Add property")]}),jsxRuntime.jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{f({company:220,categories:220,last:155,strength:180,links:160,ai:200}),G(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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:jsxRuntime.jsx("path",{d:"M4 8h16M7 4 3 8l4 4M17 4l4 4-4 4M4 16h16"})})}),c("Compact columns")]}),jsxRuntime.jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{f({...P.current??_i}),G(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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:jsxRuntime.jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7M3 4v6h6"})})}),c("Reset column widths")]}),jsxRuntime.jsx("div",{className:"my-1 h-px bg-line"}),jsxRuntime.jsxs("button",{"data-menu-row":true,type:"button",onClick:()=>{so(new Set),G(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:[jsxRuntime.jsx("span",{className:"text-ink-2",children:jsxRuntime.jsx(we,{size:15,children:jsxRuntime.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]=he.useState(""),s=a?e.filter(u=>u.toLowerCase().includes(a.toLowerCase())):e.slice(0,5),d=a.length>0&&s.length===0;return jsxRuntime.jsx(U,{children:jsxRuntime.jsx("div",{className:"flex min-h-[248px] w-full max-w-72 flex-col items-stretch",children:jsxRuntime.jsxs("div",{className:"w-full self-start overflow-hidden rounded-card bg-surface shadow-raised",children:[jsxRuntime.jsxs("div",{className:"flex h-10 items-center gap-2 border-b border-line px-3 transition-colors duration-100 hover:bg-hover",children:[jsxRuntime.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:[jsxRuntime.jsx("circle",{cx:"11",cy:"11",r:"7"}),jsxRuntime.jsx("path",{d:"M21 21l-4.3-4.3"})]}),jsxRuntime.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&&jsxRuntime.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
|
|
248
|
+
transition-colors duration-100 hover:bg-line/70 hover:text-ink`,style:{animation:"bui-fade-in 150ms ease-out both"},children:jsxRuntime.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]}),d?jsxRuntime.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:[jsxRuntime.jsx("span",{className:"mb-1.5 flex size-8 items-center justify-center rounded-control bg-inset text-ink-3 shadow-hairline",children:jsxRuntime.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",children:[jsxRuntime.jsx("circle",{cx:"11",cy:"11",r:"7"}),jsxRuntime.jsx("path",{d:"M21 21l-4.3-4.3"})]})}),jsxRuntime.jsx("span",{className:"text-[13px] font-medium text-ink",children:r.emptyTitle}),jsxRuntime.jsx("span",{className:"text-[12px] text-ink-3",children:r.emptyHint})]}):jsxRuntime.jsx("div",{className:"p-1",children:jsxRuntime.jsx(tt,{className:"flex flex-col gap-px",highlightClassName:"inset-x-0 rounded-[6px] bg-hover",children:s.map(u=>jsxRuntime.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"},to={width:14,height:14,strokeWidth:1.8,"aria-hidden":true},Kt={explain:jsxRuntime.jsx(iconoirReact.ChatBubbleQuestion,{...to}),improve:jsxRuntime.jsx(iconoirReact.Spark,{...to}),shorten:jsxRuntime.jsx(iconoirReact.Scissor,{...to}),tone:jsxRuntime.jsx(iconoirReact.EmojiSatisfied,{...to}),grammar:jsxRuntime.jsx(iconoirReact.TextBox,{...to}),send:jsxRuntime.jsx(iconoirReact.ArrowUp,{width:"16",height:"16",strokeWidth:"2.4","aria-hidden":"true"}),chevron:jsxRuntime.jsx(iconoirReact.NavArrowRight,{...to}),check:jsxRuntime.jsx(iconoirReact.Check,{...to}),close:jsxRuntime.jsx(iconoirReact.Xmark,{...to}),retry:jsxRuntime.jsx(iconoirReact.Refresh,{...to})},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:Kt.explain},{id:"Improve",icon:Kt.improve,action:"Improve",busyLabel:"Improving"}],more:[{id:"Shorten",icon:Kt.shorten,action:"Shorten",busyLabel:"Shortening"},{id:"Tone",icon:Kt.tone,action:"Change tone",busyLabel:"Changing tone"},{id:"Grammar",icon:Kt.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]=he.useState(false),c=r,p=i(B=>a?.(B),"setMode"),[h,v]=he.useState("Improve"),[w,g]=he.useState(""),[f,x]=he.useState(null),[y,$]=he.useState(false),[I,C]=he.useState({x:0,y:0}),[R,P]=he.useState(false),F=he.useRef(null),L=he.useRef(null),N=he.useRef(null),k=he.useRef(null),T=he.useRef(null),z=he.useRef("idle"),H=he.useRef(0),Z=he.useRef(null);he.useEffect(()=>{let B=window.setTimeout(()=>m(true),280);return ()=>window.clearTimeout(B)},[]);let J=he.useCallback(()=>{T.current!==null&&cancelAnimationFrame(T.current),T.current=requestAnimationFrame(()=>{let B=F.current,j=L.current;if(!B||!j)return;let E=j.getBoundingClientRect(),te=Array.from(j.getClientRects()).at(-1);if(!te)return;let ie=B.getBoundingClientRect(),le={x:Math.round(E.left-ie.left+E.width/2),y:Math.round(te.bottom-ie.top+8)};C(Be=>Be.x===le.x&&Be.y===le.y?Be:le),P(true);});},[]);he.useLayoutEffect(()=>{J();},[c,J]),he.useEffect(()=>{let B=F.current;if(!B)return;let j=new ResizeObserver(J);return j.observe(B),window.addEventListener("resize",J),()=>{j.disconnect(),window.removeEventListener("resize",J),T.current!==null&&cancelAnimationFrame(T.current);}},[J]),he.useLayoutEffect(()=>{let B=N.current,j=k.current;if(!B||!j)return;let E=Math.ceil(j.getBoundingClientRect().width)+8,W=H.current||Math.ceil(B.getBoundingClientRect().width);if(z.current!==c&&Math.abs(E-W)>1){Z.current?.cancel();let te=B.animate([{width:`${W}px`},{width:`${E}px`}],{duration:320,easing:"cubic-bezier(0.23,1,0.32,1)"});Z.current=te,te.onfinish=()=>{H.current=E,Z.current=null;};}else H.current=E;z.current=c;},[c]),he.useEffect(()=>{let B=k.current;if(!B)return;let j=new ResizeObserver(()=>{Z.current?.playState!=="running"&&(H.current=Math.ceil(B.getBoundingClientRect().width)+8);});return j.observe(B),()=>{j.disconnect(),Z.current?.cancel();}},[]);let O=i(B=>{v(B),$(false),p("thinking"),n?.(B);},"run"),K=i(()=>{$(false),g(""),x(null),v("Improve"),p("idle");},"reset"),A=c==="thinking"||c==="streaming",ne=u&&R,ee=w.trim().length>0,se={};for(let B of [...t.primary,...t.more])B.action&&B.busyLabel&&(se[B.action]=B.busyLabel);let ce=se[h]??"Editing";return jsxRuntime.jsx(U,{children:jsxRuntime.jsx("div",{className:"w-full max-w-[460px]",children:jsxRuntime.jsxs("div",{ref:F,className:"relative select-none pb-12",children:[jsxRuntime.jsxs("p",{className:"text-[13px] leading-relaxed text-ink",children:[s.lead,jsxRuntime.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"?jsxRuntime.jsx(ii,{text:s.rewrite,onProgress:J,onDone:()=>p("result")}):s.rewrite})]}),jsxRuntime.jsx("div",{className:"absolute top-0 left-0 z-10",style:{transform:`translate3d(${I.x}px, ${I.y}px, 0) translateX(-50%)`,transition:"transform 320ms cubic-bezier(0.77,0,0.175,1), opacity 180ms ease-out",opacity:ne?1:0,pointerEvents:ne?"auto":"none",willChange:"transform"},children:jsxRuntime.jsx("div",{ref:N,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,...ne?{animation:"bui-pop-in 220ms cubic-bezier(0.23,1,0.32,1) both"}:{}},children:jsxRuntime.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:[A&&jsxRuntime.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:[jsxRuntime.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"?jsxRuntime.jsxs(ni,{className:"text-[12.5px] font-normal",children:[ce,"\u2026"]}):jsxRuntime.jsxs("span",{children:[ce,"\u2026"]})]}),c==="result"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{type:"button",onClick:K,className:Mg,children:[Kt.check,d.keep]}),jsxRuntime.jsxs(Me,{type:"button",variant:"quiet",size:"xs",className:"shrink-0",onClick:K,children:[Kt.close,d.discard]}),jsxRuntime.jsx("span",{className:"mx-0.5 h-4 w-px shrink-0 bg-line"}),jsxRuntime.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:Kt.retry})]}),c==="idle"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.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:jsxRuntime.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:B=>{B.preventDefault(),O(w.trim()||"Improve");},children:jsxRuntime.jsx("input",{value:w,onChange:B=>{let j=B.target.value;!w.trim()&&j.trim()?x(Math.ceil(N.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"})})}),jsxRuntime.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&&jsxRuntime.jsx("span",{className:"mx-1 h-4 w-px shrink-0 bg-line-strong"}),t.primary.map(B=>jsxRuntime.jsxs(Me,{type:"button",variant:"quiet",size:"xs",className:"shrink-0",onClick:B.action?()=>O(B.action):void 0,children:[B.icon,B.id]},B.id)),jsxRuntime.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(B=>jsxRuntime.jsxs(Me,{type:"button",variant:"quiet",size:"xs",className:"shrink-0",onClick:B.action?()=>O(B.action):void 0,children:[B.icon,B.id]},B.id))}),jsxRuntime.jsx("span",{className:"mx-0.5 h-4 w-px shrink-0 bg-line"}),jsxRuntime.jsx("button",{type:"button","aria-label":l(y?"Show fewer actions":"Show more actions"),"aria-expanded":y,onClick:()=>$(B=>!B),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:jsxRuntime.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:Kt.chevron})})]}),jsxRuntime.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:jsxRuntime.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:Kt.send})})]})]})})})]})})})}i(Bg,"BUISelectionActions");function M(...e){return tailwindMerge.twMerge(e.filter(Boolean).join(" "))}i(M,"cn");function tn(e){return e!=null&&typeof e!="boolean"}i(tn,"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 oo(e,t={}){return ["monkeys-overlay-surface",Eg[e],t.rounded===false?void 0:"monkeys-overlay-surface--rounded"].filter(Boolean).join(" ")}i(oo,"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 ${oo("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__namespace.Root,Rl=Pe__namespace.Trigger;var Ug=he__namespace.forwardRef(({className:e,inset:t,children:o,...n},r)=>jsxRuntime.jsxs(Pe__namespace.SubTrigger,{ref:r,className:M(Bn,"data-[state=open]:bg-accent",t&&"pl-8",e),...n,children:[o,jsxRuntime.jsx(lucideReact.ChevronRight,{"aria-hidden":"true",className:"ml-auto"})]}));Ug.displayName="DropdownMenuSubTrigger";var Fg=he__namespace.forwardRef(({className:e,...t},o)=>{let n=ht();return jsxRuntime.jsx(Pe__namespace.SubContent,{...n,...t,ref:o,"data-monkeys-component":"dropdown-menu","data-slot":"content","data-surface":"menu",className:M(ji,e)})});Fg.displayName="DropdownMenuSubContent";var Gi=he__namespace.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let r=ht();return jsxRuntime.jsx(Pe__namespace.Portal,{children:jsxRuntime.jsx(Pe__namespace.Content,{...r,...o,ref:n,sideOffset:t,"data-monkeys-component":"dropdown-menu","data-slot":"content","data-surface":"menu",className:M(ji,e)})})});Gi.displayName="DropdownMenuContent";var Tr=he__namespace.forwardRef(({className:e,inset:t,...o},n)=>jsxRuntime.jsx(Pe__namespace.Item,{ref:n,className:M(Bn,t&&"pl-8",e),...o}));Tr.displayName="DropdownMenuItem";var Og=he__namespace.forwardRef(({className:e,children:t,checked:o,...n},r)=>jsxRuntime.jsxs(Pe__namespace.CheckboxItem,{ref:r,className:M(Bn,"pl-8",e),checked:o,...n,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Pe__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":"true",className:"h-4 w-4"})})}),t]}));Og.displayName="DropdownMenuCheckboxItem";var Hg=he__namespace.forwardRef(({className:e,children:t,...o},n)=>jsxRuntime.jsxs(Pe__namespace.RadioItem,{ref:n,className:M(Bn,"pl-8",e),...o,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Pe__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{"aria-hidden":"true",className:"h-2 w-2 fill-current"})})}),t]}));Hg.displayName="DropdownMenuRadioItem";var _g=he__namespace.forwardRef(({className:e,inset:t,...o},n)=>jsxRuntime.jsx(Pe__namespace.Label,{ref:n,className:M("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));_g.displayName="DropdownMenuLabel";var Vg=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Pe__namespace.Separator,{ref:o,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));Vg.displayName="DropdownMenuSeparator";var Wg=i(({className:e,...t})=>jsxRuntime.jsx("span",{className:M("ml-auto text-xs tracking-widest opacity-60",e),...t}),"DropdownMenuShortcut");Wg.displayName="DropdownMenuShortcut";var jg=he__namespace.forwardRef(({className:e,children:t,iconClassName:o,size:n="default",...r},a)=>jsxRuntime.jsxs(Re__namespace.Trigger,{ref:a,className:M("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,jsxRuntime.jsx(Re__namespace.Icon,{asChild:true,children:jsxRuntime.jsx(lucideReact.ChevronDown,{"aria-hidden":"true",className:M("h-4 w-4 opacity-50",o)})})]}));jg.displayName="SelectTrigger";var Pl=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Re__namespace.ScrollUpButton,{ref:o,className:M("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronUp,{"aria-hidden":"true",className:"h-4 w-4"})}));Pl.displayName="SelectScrollUpButton";var Nl=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Re__namespace.ScrollDownButton,{ref:o,className:M("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronDown,{"aria-hidden":"true",className:"h-4 w-4"})}));Nl.displayName="SelectScrollDownButton";var Gg=he__namespace.forwardRef(({className:e,children:t,position:o="popper",viewportClassName:n,disableTriggerViewportSizing:r=false,...a},l)=>{let s=ht();return jsxRuntime.jsx(Re__namespace.Portal,{children:jsxRuntime.jsxs(Re__namespace.Content,{...s,...a,ref:l,position:o,"data-monkeys-component":"select","data-slot":"content","data-surface":"menu",className:M(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:[jsxRuntime.jsx(Pl,{}),jsxRuntime.jsx(Re__namespace.Viewport,{className:M("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}),jsxRuntime.jsx(Nl,{})]})})});Gg.displayName="SelectContent";var qg=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Re__namespace.Label,{ref:o,className:M("px-2 py-1.5 text-sm font-semibold",e),...t}));qg.displayName="SelectLabel";var Kg=he__namespace.forwardRef(({className:e,children:t,indicatorClassName:o,itemText:n,hideIndicator:r=false,...a},l)=>jsxRuntime.jsxs(Re__namespace.Item,{ref:l,className:M(Bn,"w-full",r?"px-2":"pl-8 pr-2",e),...a,children:[r?null:jsxRuntime.jsx("span",{className:M("absolute left-2 flex h-3.5 w-3.5 items-center justify-center",o),children:jsxRuntime.jsx(Re__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":"true",className:"h-4 w-4"})})}),n?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Re__namespace.ItemText,{asChild:true,children:jsxRuntime.jsx("span",{className:"sr-only",children:n})}),t]}):jsxRuntime.jsx(Re__namespace.ItemText,{children:t})]}));Kg.displayName="SelectItem";var Xg=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Re__namespace.Separator,{ref:o,className:M("-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]=he.createContext(0));function on(){return he.useContext(Bl)}i(on,"useBentoDepth");function Rr({children:e,depth:t}){return jsxRuntime.jsx(Bl.Provider,{value:t,children:e})}i(Rr,"BentoDepthProvider");function nn({children:e}){return jsxRuntime.jsx(Rr,{depth:0,children:e})}i(nn,"BentoScope");function qi(){let e=on(),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=he.useRef(),n=i(()=>{let a=o.current;a?.observer?.disconnect(),a?.marked.forEach(l=>l.removeAttribute(Pr)),o.current=void 0;},"clear");he.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=M("[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=M("[&.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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("inline-flex min-w-0 items-center gap-1 rounded-lg border border-border/70 bg-muted/30 p-1",Ve),segmentedItem:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("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:M("[&>*]: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:M("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:M("inline-flex h-3 w-3 shrink-0 items-center justify-center text-muted-foreground",Nr),tableHeadDragHandle:M("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:M("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:M("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:M("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:M("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,M);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 _l({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,I=a!==void 0?tn(a):tn(o)||tn(n),C=r!=null,R=!I&&!C;return jsxRuntime.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:M(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?jsxRuntime.jsx("div",{"data-slot":"media",className:M(y.slots.panelMedia,g?.media),children:r}):null,I?jsxRuntime.jsx("div",{"data-slot":"header",className:M(y.slots.panelHeader,g?.header),style:y.styles.panelHeader,children:a!==void 0?a:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[tn(o)?jsxRuntime.jsx("div",{"data-slot":"title",className:M(y.slots.panelTitle,g?.title),children:o}):null,tn(n)?jsxRuntime.jsx("div",{"data-slot":"description",className:M(y.slots.panelDescription,g?.description),children:n}):null]})}):null,s!=null?jsxRuntime.jsx("div",{"data-slot":"body",className:M(y.slots.panelBody,R&&y.slots.panelBodyStandalone,g?.body),style:y.styles.panelBody,children:s}):null,l!=null?jsxRuntime.jsx("div",{"data-slot":"footer",className:M(y.slots.panelFooter,g?.footer),style:y.styles.panelFooter,children:l}):null]})}i(_l,"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__namespace.useId().replace(/:/g,"")}`,c=he__namespace.useRef(null),[p,h]=he__namespace.useState({width:0,height:0,rx:"0px",ry:"0px"});he__namespace.useEffect(()=>{let C=c.current;if(!C||typeof ResizeObserver>"u")return;let R=i(()=>{let L=getComputedStyle(C).borderTopLeftRadius,N=ff(L),{rx:k,ry:T}=N;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}`,I={...{"--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 jsxRuntime.jsxs("div",{ref:c,"aria-hidden":"true",className:`monkeys-border-effect monkeys-border-effect-${e}${s?` ${s}`:""}`,style:{...I,pointerEvents:"none"},children:[jsxRuntime.jsx("span",{className:"monkeys-border-effect-ring"}),e==="animated"&&jsxRuntime.jsxs("svg",{"aria-hidden":"true",focusable:"false",className:"monkeys-border-effect-svg",viewBox:`0 0 ${p.width||1} ${p.height||1}`,children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:m,gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:p.width||1,y2:"0",children:[w.map((C,R)=>jsxRuntime.jsx("stop",{offset:`${R/(w.length-1)*100}%`,stopColor:C},R)),jsxRuntime.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",values:y,dur:`${Wl(a)}s`,repeatCount:"indefinite"})]})}),jsxRuntime.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 jsxRuntime.jsx(Rr,{depth:f?v:h,children:jsxRuntime.jsx(_l,{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:M("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:M("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:M("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:M("px-0 pb-0 pt-[var(--monkeys-bento-gap)]",c?.footer)},header:s?jsxRuntime.jsxs("div",{style:{alignItems:g?.styles?.panelHeader?.alignItems},className:M("flex min-w-0 flex-1 items-center justify-between gap-token-md",l&&"flex-wrap"),children:[jsxRuntime.jsxs("div",{className:M("flex min-w-0 flex-1 items-center gap-token-sm",l&&"basis-auto"),children:[d?jsxRuntime.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:jsxRuntime.jsx(d,{className:"size-4 text-primary",color:"currentColor",stroke:"currentColor"})}):null,jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("h2",{style:{margin:0},className:"truncate text-base font-semibold text-foreground",children:s}),p.description?jsxRuntime.jsx("div",{className:"mt-1 text-sm text-muted-foreground",children:p.description}):null]})]}),u?jsxRuntime.jsx("div",{className:M("shrink-0",l&&"max-w-full"),children:u}):null]}):void 0,...p,...y,decoration:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a,x?jsxRuntime.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__namespace.createContext(null)),yt=i(()=>he__namespace.useContext(xf),"useDialogDock");var Qi=he__namespace.forwardRef(({children:e,className:t,style:o,closeLabel:n="Close",showCloseButton:r=true,onInteractOutside:a,...l},s)=>{let d=yt(),u=he__namespace.useId(),m=he__namespace.useRef(null),c=he__namespace.useRef(false);return he__namespace.useEffect(()=>{c.current&&!d?.collapsed&&d?.activeId===u&&m.current?.focus(),c.current=!!d?.collapsed;},[d?.collapsed,d?.activeId,u]),he__namespace.useEffect(()=>d?.register(u),[d?.register,u]),d?.container?jsxRuntime.jsx(He__namespace.Portal,{container:d.container,children:jsxRuntime.jsx("div",{style:{display:"contents"},children:jsxRuntime.jsx(nn,{children:jsxRuntime.jsx(jl,{className:"monkeys-dialog-dock-panel overflow-auto",contentClassName:"shrink-0",style:{display:d.activeId===u?void 0:"none"},children:jsxRuntime.jsxs(He__namespace.Content,{...l,ref:s,"data-monkeys-dialog-content":true,"data-presentation":"docked","data-title-visible":d.showTitle,"data-collapsible":d.collapsible,className:M("monkeys-dialog-dock-content",t),style:o,onInteractOutside:p=>{a?.(p),p.preventDefault();},children:[e,d.collapsible&&jsxRuntime.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:jsxRuntime.jsx(lucideReact.PanelRightClose,{"aria-hidden":"true",className:"size-4"})}),r&&jsxRuntime.jsxs(He__namespace.Close,{className:"monkeys-dialog-dock-close","aria-label":typeof n=="string"?n:void 0,children:[jsxRuntime.jsx(lucideReact.X,{"aria-hidden":"true",className:"size-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:n})]})]})})})})}):null});Qi.displayName="DockedDialogContent";var Yl=he.forwardRef(i(function({slotComponent:t,...o},n){return t?jsxRuntime.jsx(t,{...o,ref:n}):jsxRuntime.jsx(button.Button,{...o,ref:n})},"ButtonCore"));var Tf=he.forwardRef(i(function({dir:t,...o},n){let r=directionProvider.useDirection();return jsxRuntime.jsx(directionProvider.DirectionProvider,{direction:t==="ltr"||t==="rtl"?t:r,children:jsxRuntime.jsx(tabs.Tabs.Root,{...o,dir:t,ref:n})})},"TabsRoot")),En={Root:Tf,List:tabs.Tabs.List,Trigger:tabs.Tabs.Tab,Content:tabs.Tabs.Panel};var Mf=he__namespace.forwardRef(({className:e,style:t,...o},n)=>jsxRuntime.jsx(no__namespace.Item,{ref:n,className:M("border-b",e),style:{borderColor:"var(--monkeys-component-accordion-item-border-color, hsl(var(--border)))",...t},...o}));Mf.displayName="AccordionItem";var If=he__namespace.forwardRef(({className:e,children:t,...o},n)=>jsxRuntime.jsx(no__namespace.Header,{className:"flex",children:jsxRuntime.jsxs(no__namespace.Trigger,{ref:n,className:M("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,jsxRuntime.jsx(lucideReact.ChevronDown,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));If.displayName="AccordionTrigger";var Bf=he__namespace.forwardRef(({className:e,children:t,...o},n)=>jsxRuntime.jsx(no__namespace.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:jsxRuntime.jsx("div",{className:M("pb-4 pt-0",e),children:t})}));Bf.displayName="AccordionContent";var Af=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Br__namespace.Root,{ref:o,className:M("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:jsxRuntime.jsx(Br__namespace.Indicator,{className:"flex items-center justify-center text-current",children:jsxRuntime.jsx(lucideReact.Check,{"aria-hidden":"true",className:"h-4 w-4"})})}));Af.displayName="Checkbox";var Ln=classVarianceAuthority.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"}}),sn=he__namespace.forwardRef(({className:e,variant:t,size:o,asChild:n=false,unstyled:r=false,...a},l)=>jsxRuntime.jsx(Yl,{ref:l,slotComponent:n?reactSlot.Slot:void 0,type:a.type,tabIndex:a.tabIndex,className:r?e:Ln({variant:t,size:o,className:e}),...a}));sn.displayName="Button";var Ef=he__namespace.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=on();return jsxRuntime.jsxs(Xt__namespace.Root,{ref:m,type:d??(c>0?"auto":void 0),className:M("group relative overflow-hidden",s&&"no-scrollbar",e),...u,children:[jsxRuntime.jsx(Xt__namespace.Viewport,{ref:n,onScroll:r,className:M("h-full w-full rounded-[inherit]",o),children:t}),a?jsxRuntime.jsx(ed,{orientation:l,className:M(s&&"size-0 p-0")}):null,jsxRuntime.jsx(Xt__namespace.Corner,{})]})});Ef.displayName="ScrollArea";var ed=he__namespace.forwardRef(({className:e,orientation:t="vertical",...o},n)=>jsxRuntime.jsx(Xt__namespace.ScrollAreaScrollbar,{ref:n,"data-monkeys-scrollbar":"",orientation:t,className:M("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:jsxRuntime.jsx(Xt__namespace.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ed.displayName="ScrollBar";var Lf=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(ir__namespace.Root,{ref:o,className:M("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:jsxRuntime.jsx(ir__namespace.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__namespace.createContext(null));function Ji(){let e=he__namespace.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__namespace.Children.only(t):void 0}i(ea,"tabsSlot");var Df=he__namespace.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__namespace.useState(r??""),v=n??p,w=he__namespace.useId(),g=he__namespace.useMemo(()=>({activationMode:o,orientation:t,baseId:w,value:v}),[o,t,w,v]);return jsxRuntime.jsx(td.Provider,{value:g,children:jsxRuntime.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__namespace.forwardRef(({className:e,gap:t,style:o,loop:n,asChild:r,children:a,onKeyDown:l,...s},d)=>{let{activationMode:u,orientation:m}=Ji();return jsxRuntime.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:M("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__namespace.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 jsxRuntime.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=>jsxRuntime.jsx(o?reactSlot.Slot:"button",{...m,disabled:u&&t?true:void 0,children:n}),className:M("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__namespace.forwardRef(({className:e,value:t,forceMount:o,hidden:n,asChild:r,children:a,...l},s)=>{let d=on(),u=Ji();return jsxRuntime.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)=>jsxRuntime.jsx(r?reactSlot.Slot:"div",{...m,inert:void 0,hidden:n??(!o&&c.hidden),children:o||!c.hidden?a:null}),className:M("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__namespace.forwardRef(({className:e,sideOffset:t=4,...o},n)=>{let r=ht();return jsxRuntime.jsx(zo__namespace.Portal,{children:jsxRuntime.jsx(zo__namespace.Content,{...r,...o,ref:n,sideOffset:t,"data-monkeys-component":"tooltip","data-slot":"content","data-surface":"menu",className:M("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",oo("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__namespace.createContext(false));function ad({open:e,defaultOpen:t,onOpenChange:o,modal:n,...r}){let a=yt(),[l,s]=he__namespace.useState(t??false),d=e??l;return jsxRuntime.jsx(id.Provider,{value:d,children:jsxRuntime.jsx(He__namespace.Root,{...r,open:d,modal:a?false:n,onOpenChange:u=>{s(u),o?.(u);}})})}i(ad,"Dialog");var _f=He__namespace.Portal;var sd=he__namespace.forwardRef(({className:e,...t},o)=>{let n=ht();return jsxRuntime.jsx(He__namespace.Overlay,{...n,...t,ref:o,className:M("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__namespace.forwardRef(({className:e,...t},o)=>{let n=ht();return jsxRuntime.jsx(He__namespace.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__namespace.forwardRef(({className:e,children:t,showCloseButton:o=true,closeLabel:n="Close",overlayClassName:r,overlayStyle:a,...l},s)=>{let d=yt(),u=he__namespace.useContext(id);return d?u?jsxRuntime.jsx(Qi,{...l,ref:s,className:e,showCloseButton:o,closeLabel:n,children:t}):null:jsxRuntime.jsxs(_f,{children:[jsxRuntime.jsx(sd,{className:r,style:a}),jsxRuntime.jsxs(ld,{...l,ref:s,className:M("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",oo("dialog"),e),children:[jsxRuntime.jsx(nn,{children:t}),o?jsxRuntime.jsxs(He__namespace.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:[jsxRuntime.jsx(lucideReact.X,{"aria-hidden":"true",className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:n})]}):null]})]})});Dn.displayName="DialogContent";var Vf=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(Dn,{ref:o,className:M("duration-0 data-[state=open]:animate-none data-[state=closed]:animate-none",e),...t}));Vf.displayName="DialogContentNoAnimation";var Wf=i(({className:e,...t})=>jsxRuntime.jsx("div",{className:M(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})=>jsxRuntime.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}),"DialogFooter");ta.displayName="DialogFooter";var oa=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(He__namespace.Title,{ref:o,className:M("text-lg font-semibold leading-none tracking-tight",e,yt()?.showTitle===false&&"sr-only"),...t}));oa.displayName="DialogTitle";var na=he__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx(He__namespace.Description,{ref:o,className:M("text-sm text-muted-foreground",e),...t}));na.displayName="DialogDescription";he__namespace.forwardRef((e,t)=>{let o=yt()?He__namespace.Trigger:Ke__namespace.Trigger;return jsxRuntime.jsx(o,{...e,ref:t})});var jf=Ke__namespace.Portal,dd=he__namespace.forwardRef(({className:e,style:t,...o},n)=>{let r=ht();return jsxRuntime.jsx(Ke__namespace.Overlay,{...r,...o,ref:n,className:M("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__namespace.forwardRef(({className:e,style:t,children:o,...n},r)=>{let a=ht();return yt()?jsxRuntime.jsx(Dn,{...n,...a,ref:r,role:"alertdialog",showCloseButton:false,className:e,style:t,children:o}):jsxRuntime.jsxs(jf,{children:[jsxRuntime.jsx(dd,{}),jsxRuntime.jsx(Ke__namespace.Content,{...a,...n,ref:r,className:M("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",oo("dialog"),e),"data-monkeys-component":"alert-dialog","data-slot":"content","data-surface":"dialog","data-monkeys-dialog-content":true,style:{pointerEvents:"auto",...t},children:jsxRuntime.jsx(nn,{children:o})})]})});Gf.displayName="AlertDialogContent";var qf=i(({className:e,...t})=>jsxRuntime.jsx("div",{className:M("flex flex-col space-y-2 text-center sm:text-left",e),...t}),"AlertDialogHeader"),Kf=i(({className:e,...t})=>jsxRuntime.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}),"AlertDialogFooter"),Xf=he__namespace.forwardRef(({className:e,...t},o)=>{let n=yt()?He__namespace.Title:Ke__namespace.Title;return jsxRuntime.jsx(n,{ref:o,className:M("text-lg font-semibold",e,yt()?.showTitle===false&&"sr-only"),...t})}),Yf=he__namespace.forwardRef(({className:e,...t},o)=>{let n=yt()?He__namespace.Description:Ke__namespace.Description;return jsxRuntime.jsx(n,{ref:o,className:M("text-sm text-muted-foreground",e),...t})}),Qf=he__namespace.forwardRef(({className:e,...t},o)=>{let n=yt()?He__namespace.Close:Ke__namespace.Action;return jsxRuntime.jsx(n,{ref:o,className:M(Ln(),e),...t})}),Zf=he__namespace.forwardRef(({className:e,...t},o)=>{let n=yt()?He__namespace.Close:Ke__namespace.Action;return jsxRuntime.jsx(n,{ref:o,className:M(Ln({variant:"destructive"}),e),...t})}),Jf=he__namespace.forwardRef(({className:e,...t},o)=>{let n=yt()?He__namespace.Close:Ke__namespace.Cancel;return jsxRuntime.jsx(n,{ref:o,className:M(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__namespace.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,type:n,...r},a)=>jsxRuntime.jsx("input",{ref:a,type:n,className:o?e:M("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__namespace.forwardRef(({className:e,appearance:t="standard",unstyled:o=false,...n},r)=>jsxRuntime.jsx("textarea",{ref:r,className:o?e:M("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__namespace.forwardRef((e,t)=>jsxRuntime.jsx("select",{ref:t,...e}));th.displayName="NativeSelect";var oh=he__namespace.forwardRef((e,t)=>jsxRuntime.jsx("option",{ref:t,...e}));oh.displayName="NativeOption";var hh=[],ln={expandedWidth:224,duration:280,copyDuration:180,copyOffset:8,easing:"cubic-bezier(0.16, 1, 0.3, 1)"},dn={duration:180,closedWidth:28,easing:"cubic-bezier(0.16, 1, 0.3, 1)"};function md({children:e,stationary:t=false}){return t?jsxRuntime.jsx("div",{className:"flex flex-col gap-px",children:e}):jsxRuntime.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 jsxRuntime.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
|
|
249
249
|
transition-[width,background-color,color,transform] duration-150 active:scale-[0.98]
|
|
250
|
-
${o?"bg-hover-2":""}`,children:[jsxRuntime.jsx("span",{className:`sidebar-row-icon flex size-5 shrink-0 items-center justify-center ${o?"text-ink":"text-ink-2"}`,children:e}),jsxRuntime.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&&jsxRuntime.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(jsxRuntime.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:jsxRuntime.jsxs(et,{className:"flex flex-col gap-px",highlightClassName:"inset-x-0 rounded-[8px] bg-hover-2",children:[jsxRuntime.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:[jsxRuntime.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}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[13.5px] font-medium text-ink",children:o.name}),jsxRuntime.jsx("span",{className:"shrink-0 text-ink",children:jsxRuntime.jsx(lucideReact.Check,{size:18})})]}),jsxRuntime.jsx("div",{className:"my-1 h-px bg-line"}),[{key:"new",label:"New workspace",icon:jsxRuntime.jsx(lucideReact.Plus,{size:16})},{key:"settings",label:"Workspace settings",icon:jsxRuntime.jsx(lucideReact.Settings,{size:16})},{key:"invite",label:"Invite team members",icon:jsxRuntime.jsx(lucideReact.UserPlus,{size:16})}].map(a=>jsxRuntime.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:[jsxRuntime.jsx("span",{className:"flex size-5 shrink-0 items-center justify-center text-ink-2",children:a.icon}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[13.5px] text-ink",children:r(a.label)})]},a.label)),jsxRuntime.jsx("div",{className:"my-1 h-px bg-line"}),jsxRuntime.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:[jsxRuntime.jsx("span",{className:"flex size-5 shrink-0 items-center justify-center text-ink-2",children:jsxRuntime.jsx(lucideReact.LogOut,{size:16})}),jsxRuntime.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]=he.useState(false),[B,k]=he.useState("chats"),T=v??B,D=i(q=>{k(q),w?.(q);},"selectNav"),[_,Z]=he.useState(null),[Y,O]=he.useState(false),[J,E]=he.useState({top:0,left:0}),[te,ee]=he.useState(false),[me,de]=he.useState(""),I=he.useRef(null),j=he.useRef(null),[A,W]=he.useState(),[ae,se]=he.useState(""),[re,Be]=he.useState(false),[K,ge]=he.useState(false),Je=he.useRef(false),Tt=he.useRef(true);he.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()));he.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]),he.useEffect(()=>{te&&j.current?.focus();},[te]);let mt=i(()=>{L(true),O(false),ee(false),de("");},"collapse");return jsxRuntime.jsx(U,{children:jsxRuntime.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:[jsxRuntime.jsxs("div",{className:`flex min-h-0 shrink-0 flex-col ${c?"w-full":"w-[224px]"}`,children:[jsxRuntime.jsxs("div",{className:"sidebar-header relative mb-2.5 h-10 shrink-0",children:[jsxRuntime.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:[jsxRuntime.jsx("span",{className:"sidebar-logo flex size-5 shrink-0 items-center justify-center text-ink",children:jsxRuntime.jsx(lucideReact.IceCreamCone,{size:18})}),jsxRuntime.jsx("span",{className:"sidebar-copy ml-1.5 min-w-0 flex-1 truncate text-[14px] font-medium text-ink-2",children:e.name}),jsxRuntime.jsx("span",{className:"sidebar-copy ml-1 flex shrink-0 text-ink-3",children:a&&jsxRuntime.jsx(lucideReact.ChevronDown,{size:16})})]}),Y&&jsxRuntime.jsx(bh,{workspace:e,onAction:u,position:J,onClose:()=>O(false)}),jsxRuntime.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:jsxRuntime.jsx(lucideReact.PanelLeftClose,{size:18})}),jsxRuntime.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:jsxRuntime.jsx(lucideReact.PanelLeftClose,{size:18,className:"rotate-180"})})]}),jsxRuntime.jsxs(md,{children:[jsxRuntime.jsx(gd,{icon:jsxRuntime.jsx(lucideReact.SquarePen,{size:18}),label:P("New chat"),onClick:()=>{o===void 0&&Z(null),D("chats"),p?.();}}),t.map(q=>jsxRuntime.jsx(gd,{icon:q.icon,label:q.label,count:q.count,active:T===q.key,onClick:()=>D(q.key)},q.key))]}),jsxRuntime.jsxs("div",{hidden:F,className:"sidebar-history mt-3 min-h-0 flex-1 overflow-y-auto",children:[jsxRuntime.jsxs("div",{className:"sidebar-history-header sidebar-copy relative mx-2 mb-1 h-8",children:[jsxRuntime.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:[jsxRuntime.jsx(lucideReact.ChevronDown,{size:16}),jsxRuntime.jsx("span",{children:P("Chats")})]}),jsxRuntime.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:jsxRuntime.jsx(lucideReact.Search,{size:16})}),jsxRuntime.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:[jsxRuntime.jsx("span",{className:"ml-2 flex shrink-0 items-center justify-center",children:jsxRuntime.jsx(lucideReact.Search,{size:15})}),jsxRuntime.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"}),jsxRuntime.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:jsxRuntime.jsx(lucideReact.X,{size:16})})]})]}),jsxRuntime.jsxs(md,{children:[It.map(q=>{let wt=n!==void 0?q.id===n:q.label===$o;return jsxRuntime.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:[jsxRuntime.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"&&jsxRuntime.jsx(lucideReact.MessageSquare,{size:16,"aria-hidden":"true"}),jsxRuntime.jsx("span",{className:`sidebar-copy block truncate text-sm font-medium ${wt?"text-ink":"text-ink-2"}`,children:q.label})]}),q.running&&jsxRuntime.jsx("span",{className:"sidebar-recent-running",role:"status","aria-label":P("recentRunning"),title:P("recentRunning"),children:jsxRuntime.jsx(lucideReact.LoaderCircle,{size:16,className:"animate-spin","aria-hidden":"true"})}),(M||C)&&jsxRuntime.jsxs(Tl,{children:[jsxRuntime.jsx(Rl,{asChild:true,children:jsxRuntime.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:jsxRuntime.jsx(lucideReact.MoreHorizontal,{size:16,"aria-hidden":"true"})})}),jsxRuntime.jsxs(Gi,{side:"right",align:"start",children:[M&&jsxRuntime.jsxs(Tr,{onSelect:()=>ye(q,"rename"),children:[jsxRuntime.jsx(lucideReact.Pencil,{size:16,"aria-hidden":"true"}),P("recentRename")]}),C&&jsxRuntime.jsxs(Tr,{onSelect:()=>ye(q,"delete"),children:[jsxRuntime.jsx(lucideReact.Trash2,{size:16,"aria-hidden":"true"}),P("recentDelete")]})]})]})]},q.id)}),me&&It.length===0&&jsxRuntime.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&&jsxRuntime.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&&jsxRuntime.jsx("div",{hidden:F,className:"sidebar-footer sidebar-copy mx-2 mt-3 w-[208px] border-t border-line pt-3",children:jsxRuntime.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]})})]}),jsxRuntime.jsx(ad,{open:!!A,onOpenChange:q=>{!q&&!Je.current&&W(void 0);},children:jsxRuntime.jsxs(Dn,{closeLabel:P("recentClose"),showCloseButton:!re,children:[jsxRuntime.jsx(oa,{children:P(A?.action==="delete"?"recentDelete":"recentRename")}),jsxRuntime.jsx(na,{children:P(A?.action==="delete"?"recentDeleteDescription":"recentRenameDescription",{title:A?.item.label??""})}),jsxRuntime.jsxs("form",{onSubmit:q=>{q.preventDefault(),pt();},children:[A?.action==="rename"&&jsxRuntime.jsx(Un,{autoFocus:true,maxLength:256,value:ae,"aria-label":P("recentName"),disabled:re,onChange:q=>se(q.target.value)}),K&&jsxRuntime.jsx("p",{role:"alert",children:P("recentActionFailed")}),jsxRuntime.jsxs(ta,{children:[jsxRuntime.jsx(Me,{type:"button",disabled:re,onClick:()=>W(void 0),children:P("recentCancel")}),jsxRuntime.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]===`
|
|
251
|
-
`)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]==="]"?
|
|
252
|
-
`)return false}return false},"m"),
|
|
250
|
+
${o?"bg-hover-2":""}`,children:[jsxRuntime.jsx("span",{className:`sidebar-row-icon flex size-5 shrink-0 items-center justify-center ${o?"text-ink":"text-ink-2"}`,children:e}),jsxRuntime.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&&jsxRuntime.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 Ho(jsxRuntime.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:jsxRuntime.jsxs(tt,{className:"flex flex-col gap-px",highlightClassName:"inset-x-0 rounded-[8px] bg-hover-2",children:[jsxRuntime.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:[jsxRuntime.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}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[13.5px] font-medium text-ink",children:o.name}),jsxRuntime.jsx("span",{className:"shrink-0 text-ink",children:jsxRuntime.jsx(lucideReact.Check,{size:18})})]}),jsxRuntime.jsx("div",{className:"my-1 h-px bg-line"}),[{key:"new",label:"New workspace",icon:jsxRuntime.jsx(lucideReact.Plus,{size:16})},{key:"settings",label:"Workspace settings",icon:jsxRuntime.jsx(lucideReact.Settings,{size:16})},{key:"invite",label:"Invite team members",icon:jsxRuntime.jsx(lucideReact.UserPlus,{size:16})}].map(a=>jsxRuntime.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:[jsxRuntime.jsx("span",{className:"flex size-5 shrink-0 items-center justify-center text-ink-2",children:a.icon}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 truncate text-[13.5px] text-ink",children:r(a.label)})]},a.label)),jsxRuntime.jsx("div",{className:"my-1 h-px bg-line"}),jsxRuntime.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:[jsxRuntime.jsx("span",{className:"flex size-5 shrink-0 items-center justify-center text-ink-2",children:jsxRuntime.jsx(lucideReact.LogOut,{size:16})}),jsxRuntime.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:I,onDeleteRecent:C,variant:R}){let P=oe(),F=R==="light-edge",L=F&&!a,[N,k]=he.useState(false),[T,z]=he.useState("chats"),H=v??T,Z=i(X=>{z(X),w?.(X);},"selectNav"),[J,O]=he.useState(null),[K,A]=he.useState(false),[ne,ee]=he.useState({top:0,left:0}),[se,ce]=he.useState(false),[B,j]=he.useState(""),E=he.useRef(null),W=he.useRef(null),[te,ie]=he.useState(),[le,Be]=he.useState(""),[G,fe]=he.useState(false),[wt,Ht]=he.useState(false),ve=he.useRef(false),We=he.useRef(true);he.useEffect(()=>(We.current=true,()=>{We.current=false;}),[]);let Mt=i((X,et)=>{ie({item:X,action:et}),Be(X.label),Ht(false);},"openEditor"),$o=i(async()=>{if(!(!te||ve.current||te.action==="rename"&&!le.trim())){ve.current=true,fe(true),Ht(false);try{te.action==="rename"?await I?.(te.item.id,le.trim()):await C?.(te.item.id),We.current&&ie(void 0);}catch{We.current&&Ht(true);}finally{ve.current=false,We.current&&fe(false);}}},"submitEdit"),_t=$?.id?y.some(X=>X.id===$.id)?y.map(X=>X.id===$.id?{...X,label:$.label}:X):[{...$},...y]:y,mt=o===void 0?J:o,It=_t.filter(X=>X.label.toLowerCase().includes(B.trim().toLowerCase()));he.useEffect(()=>{if(!K)return;let X=i(et=>{let so=et.target;!so.closest("[data-workspace-trigger]")&&!so.closest("[data-workspace-menu]")&&A(false);},"close");return document.addEventListener("pointerdown",X),()=>document.removeEventListener("pointerdown",X)},[K]),he.useEffect(()=>{se&&W.current?.focus();},[se]);let So=i(()=>{k(true),A(false),ce(false),j("");},"collapse"),ao=jsxRuntime.jsx(gd,{icon:jsxRuntime.jsx(lucideReact.SquarePen,{size:18}),label:P("New chat"),onClick:()=>{o===void 0&&O(null),Z("chats"),p?.();}});return jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("aside",{"data-sidebar-collapsed":N,"data-sidebar-variant":F?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:N?"calc(var(--bui-token-sidebar-row-height, var(--bui-spacing) * 9) + var(--bui-token-sidebar-inset, var(--bui-spacing) * 2) * 2)":c?"100%":ln.expandedWidth,transitionDuration:`${ln.duration}ms`,transitionTimingFunction:ln.easing,"--bui-sidebar-copy-duration":`${ln.copyDuration}ms`,"--bui-sidebar-copy-offset":`${ln.copyOffset}px`,"--bui-sidebar-easing":ln.easing},children:[jsxRuntime.jsxs("div",{className:`flex min-h-0 shrink-0 flex-col ${c?"w-full":"w-[224px]"}`,children:[jsxRuntime.jsxs("div",{className:`sidebar-header relative mb-2.5 h-10 shrink-0 ${L?"sidebar-header-new-chat":""}`,children:[L?ao:jsxRuntime.jsxs("button",{ref:E,"data-workspace-trigger":true,type:"button","aria-expanded":a?K:void 0,disabled:!a,"aria-hidden":N,tabIndex:N?-1:0,onClick:()=>{if(!K&&E.current){let X=E.current.getBoundingClientRect();ee({top:X.bottom+6,left:X.left});}A(X=>!X);},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:[jsxRuntime.jsx("span",{className:"sidebar-logo flex size-5 shrink-0 items-center justify-center text-ink",children:jsxRuntime.jsx(lucideReact.IceCreamCone,{size:18})}),jsxRuntime.jsx("span",{className:"sidebar-copy ml-1.5 min-w-0 flex-1 truncate text-[14px] font-medium text-ink-2",children:e.name}),jsxRuntime.jsx("span",{className:"sidebar-copy ml-1 flex shrink-0 text-ink-3",children:a&&jsxRuntime.jsx(lucideReact.ChevronDown,{size:16})})]}),K&&jsxRuntime.jsx(bh,{workspace:e,onAction:u,position:ne,onClose:()=>A(false)}),jsxRuntime.jsx("button",{type:"button","aria-label":P("Collapse sidebar"),hidden:!r,style:{display:r?void 0:"none"},"aria-hidden":N,tabIndex:N?-1:0,onClick:So,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:jsxRuntime.jsx(lucideReact.PanelLeftClose,{size:18})}),jsxRuntime.jsx("button",{type:"button","aria-label":P("Expand sidebar"),"aria-hidden":!N,tabIndex:N?0:-1,onClick:()=>k(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:jsxRuntime.jsx(lucideReact.PanelLeftClose,{size:18,className:"rotate-180"})})]}),(!L||t.length>0)&&jsxRuntime.jsxs(md,{stationary:F,children:[!L&&ao,t.map(X=>jsxRuntime.jsx(gd,{icon:X.icon,label:X.label,count:X.count,active:H===X.key,onClick:()=>Z(X.key)},X.key))]}),jsxRuntime.jsxs("div",{hidden:N,className:"sidebar-history mt-3 min-h-0 flex-1 overflow-y-auto",children:[jsxRuntime.jsxs("div",{className:"sidebar-history-header sidebar-copy relative mx-2 mb-1 h-8",children:[jsxRuntime.jsxs("div",{"aria-hidden":se,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] ${se?"pointer-events-none -translate-x-1 opacity-0":"translate-x-0 opacity-100"}`,style:{transitionDuration:`${dn.duration}ms`,transitionTimingFunction:dn.easing},children:[jsxRuntime.jsx(lucideReact.ChevronDown,{size:16}),jsxRuntime.jsx("span",{children:P("Chats")})]}),jsxRuntime.jsx("button",{type:"button","aria-label":P("Search chats"),"aria-expanded":se,onClick:()=>ce(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] ${se?"pointer-events-none opacity-0":"opacity-100"}`,style:{transitionDuration:`${dn.duration}ms`},children:jsxRuntime.jsx(lucideReact.Search,{size:16})}),jsxRuntime.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 ${se?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"}`,style:{width:se?"100%":dn.closedWidth,transitionDuration:`${dn.duration}ms`,transitionTimingFunction:dn.easing},children:[jsxRuntime.jsx("span",{className:"ml-2 flex shrink-0 items-center justify-center",children:jsxRuntime.jsx(lucideReact.Search,{size:15})}),jsxRuntime.jsx("input",{ref:W,value:B,onChange:X=>j(X.target.value),onKeyDown:X=>{X.key==="Escape"&&(ce(false),j(""));},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"}),jsxRuntime.jsx("button",{type:"button","aria-label":P("Close chat search"),onClick:()=>{ce(false),j("");},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:jsxRuntime.jsx(lucideReact.X,{size:16})})]})]}),jsxRuntime.jsxs(md,{stationary:F,children:[It.map(X=>{let et=n!==void 0?X.id===n:X.label===mt;return jsxRuntime.jsxs("div",{"data-row":true,"data-running":X.running||void 0,title:X.label,className:`sidebar-row sidebar-recent-row relative z-10 flex items-center rounded-[var(--bui-radius-control)] ${et?"bg-hover-2":""}`,children:[jsxRuntime.jsxs("button",{type:"button",title:X.label,"aria-current":et?"page":void 0,onClick:()=>{Z("chats"),o===void 0&&O(X.label),h?.(X.id,X.label,X.prompt);},className:"sidebar-recent-select min-w-0 flex-1 self-stretch text-left",children:[F&&jsxRuntime.jsx(lucideReact.MessageSquare,{size:16,"aria-hidden":"true"}),jsxRuntime.jsx("span",{className:`sidebar-copy block truncate text-sm font-medium ${et?"text-ink":"text-ink-2"}`,children:X.label})]}),X.running&&jsxRuntime.jsx("span",{className:"sidebar-recent-running",role:"status","aria-label":P("recentRunning"),title:P("recentRunning"),children:jsxRuntime.jsx(lucideReact.LoaderCircle,{size:16,className:"animate-spin","aria-hidden":"true"})}),(I||C)&&jsxRuntime.jsxs(Tl,{children:[jsxRuntime.jsx(Rl,{asChild:true,children:jsxRuntime.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:X.label}),title:P("recentMoreLabel"),children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{size:16,"aria-hidden":"true"})})}),jsxRuntime.jsxs(Gi,{side:"right",align:"start",children:[I&&jsxRuntime.jsxs(Tr,{onSelect:()=>Mt(X,"rename"),children:[jsxRuntime.jsx(lucideReact.Pencil,{size:16,"aria-hidden":"true"}),P("recentRename")]}),C&&jsxRuntime.jsxs(Tr,{onSelect:()=>Mt(X,"delete"),children:[jsxRuntime.jsx(lucideReact.Trash2,{size:16,"aria-hidden":"true"}),P("recentDelete")]})]})]})]},X.id)}),B&&It.length===0&&jsxRuntime.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&&jsxRuntime.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&&jsxRuntime.jsx("div",{hidden:N,className:"sidebar-footer sidebar-copy mx-2 mt-3 w-[208px] border-t border-line pt-3",children:jsxRuntime.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]})})]}),jsxRuntime.jsx(ad,{open:!!te,onOpenChange:X=>{!X&&!ve.current&&ie(void 0);},children:jsxRuntime.jsxs(Dn,{closeLabel:P("recentClose"),showCloseButton:!G,children:[jsxRuntime.jsx(oa,{children:P(te?.action==="delete"?"recentDelete":"recentRename")}),jsxRuntime.jsx(na,{children:P(te?.action==="delete"?"recentDeleteDescription":"recentRenameDescription",{title:te?.item.label??""})}),jsxRuntime.jsxs("form",{onSubmit:X=>{X.preventDefault(),$o();},children:[te?.action==="rename"&&jsxRuntime.jsx(Un,{autoFocus:true,maxLength:256,value:le,"aria-label":P("recentName"),disabled:G,onChange:X=>Be(X.target.value)}),wt&&jsxRuntime.jsx("p",{role:"alert",children:P("recentActionFailed")}),jsxRuntime.jsxs(ta,{children:[jsxRuntime.jsx(Me,{type:"button",disabled:G,onClick:()=>ie(void 0),children:P("recentCancel")}),jsxRuntime.jsx(Me,{type:"submit",disabled:G||te?.action==="rename"&&!le.trim(),children:P(G?"recentSaving":te?.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"),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"),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)=>pt(e,r)?t:`${o}\\>${n}`),"E"),Ph=/(\*\*)([^*]*\*?)$/,Nh=/(__)([^_]*?)$/,Mh=/(\*\*\*)([^*]*?)$/,Ih=/(\*)([^*]*?)$/,Bh=/(_)([^_]*?)$/,Ah=/(`)([^`]*?)$/,Eh=/(~~)([^~]*?)$/,Uo=/^[\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"),Hh=i((e,t)=>{for(let o=t;o<e.length;o+=1){if(e[o]===")")return true;if(e[o]===`
|
|
251
|
+
`)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]==="]"?Hh(e,t):false;if(e[o]===`
|
|
252
|
+
`)return false}return false},"m"),_h=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]===`
|
|
253
253
|
`)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]===`
|
|
254
254
|
`){n=d+1;break}let r=e.length;for(let d=t;d<e.length;d+=1)if(e[d]===`
|
|
255
255
|
`){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===`
|
|
256
256
|
`)&&(!n||n===" "||n===" "||n===`
|
|
257
|
-
`)),"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)||
|
|
257
|
+
`)),"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)||_h(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||Uo.test(t))return true;let n=e.substring(0,o).lastIndexOf(`
|
|
258
258
|
`),r=n===-1?0:n+1,a=e.substring(r,o);return kd.test(a)&&t.includes(`
|
|
259
|
-
`)?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
|
|
259
|
+
`)?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 pt(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||Uo.test(t))return true;let n=e.substring(0,o).lastIndexOf(`
|
|
260
260
|
`),r=n===-1?0:n+1,a=e.substring(r,o);return kd.test(a)&&t.includes(`
|
|
261
|
-
`)?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(!(
|
|
261
|
+
`)?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(!(pt(e,a)||xo(e,a))&&vd(e)%2===1)return `${e}_`}return e}let o=t[2],n=e.lastIndexOf(t[1]);return pt(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===`
|
|
262
262
|
`)&&(!r||r===" "||r===" "||r===`
|
|
263
|
-
`)||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||
|
|
264
|
-
`;)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||
|
|
265
|
-
`)?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||
|
|
263
|
+
`)||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||pt(e,t)||xo(e,t))return e;let o=e.substring(t+1);return !o||Uo.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]===`
|
|
264
|
+
`;)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||Uo.test(o)||pt(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||Uo.test(t)||pt(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||pt(e,t.index)?e:e.substring(0,t.index).trimEnd()},"x"),sb=i(e=>!e.match(Dh)||e.includes(`
|
|
265
|
+
`)?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||Uo.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(`
|
|
266
266
|
`,t)!==-1&&!e.endsWith(`
|
|
267
267
|
`)?`${e}
|
|
268
|
-
$$`:`${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||
|
|
268
|
+
$$`:`${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||pt(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]==="["&&!pt(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&&!pt(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]==="["&&!pt(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(`
|
|
269
269
|
`);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(`
|
|
270
270
|
`).at(-1);if(a&&a.trim().length>0)return `${e}\u200B`}if(yb.test(r)&&!o.match(xb)){let a=n.split(`
|
|
271
|
-
`).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)=>
|
|
271
|
+
`).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)=>pt(e,o)?t:"\\~"),"tn"),Sb=i(e=>{var t,o;let n=e.match(Eh);if(n){let r=n[2];if(!r||Uo.test(r))return e;let a=e.lastIndexOf(n[1]);if(pt(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(pt(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"),ut={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:ut.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:Rh,priority:ut.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:ab,priority:ut.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:wb,priority:ut.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:Pd,priority:ut.LINKS},optionKey:"links",earlyReturn:i(e=>e.endsWith("](streamdown:incomplete-link)"),"earlyReturn")},{handler:{name:"boldItalic",handle:rb,priority:ut.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:Kh,priority:ut.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:Yh,priority:ut.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:Zh,priority:ut.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:tb,priority:ut.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:db,priority:ut.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:Sb,priority:ut.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:mb,priority:ut.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:gb,priority:ut.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:ut.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?jsxRuntime.jsx("img",{src:o,alt:"",className:`source-avatar ${t}`}):jsxRuntime.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?jsxRuntime.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]
|
|
272
272
|
bg-inset pr-[3px] pl-[3px] align-middle font-mono text-[10.5px] text-ink-2 no-underline shadow-hairline
|
|
273
|
-
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:[jsxRuntime.jsx(Fr,{source:e,className:"size-3 rounded-[3px]"}),jsxRuntime.jsx("span",{children:e.domain})]}):null}i(Or,"SourceChip");var Fn=popover.Popover,Bd=he.forwardRef(i(function({portal:t,positioner:o,...n},r){return jsxRuntime.jsx(popover.Popover.Portal,{...t,children:jsxRuntime.jsx(popover.Popover.Positioner,{...o,children:jsxRuntime.jsx(popover.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__namespace.createContext(null));function pa(){let e=he__namespace.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__namespace.useState(t??false),[s,d]=he__namespace.useState(null),[u,m]=he__namespace.useState(null),c=he__namespace.useRef(void 0),p=he__namespace.useRef(false),h=e??a,v=he__namespace.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__namespace.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 jsxRuntime.jsx(Dd.Provider,{value:w,children:jsxRuntime.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__namespace.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__namespace.forwardRef(i(function({asChild:t,children:o,onClick:n,...r},a){let{open:l,setTrigger:s}=pa(),d=reactComposeRefs.useComposedRefs(a,s),u=ma(t,o);return jsxRuntime.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__namespace.forwardRef(i(function({asChild:t,virtualRef:o,...n},r){let{setAnchor:a}=pa(),l=reactComposeRefs.useComposedRefs(r,a);return he__namespace.useEffect(()=>{if(o)return a(()=>()=>o.current),()=>a(null)},[a,o]),o?null:jsxRuntime.jsx(t?reactSlot.Slot:"div",{...n,ref:l})},"PopoverAnchor"));he__namespace.forwardRef(i(function({asChild:t,children:o,onClick:n,...r},a){let l=ma(t,o);return jsxRuntime.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__namespace.useState();return he__namespace.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__namespace.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__namespace.useState(null),ee=reactComposeRefs.useComposedRefs(B,te),me=he__namespace.useRef(null),de=he__namespace.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__namespace.useEffect(()=>(Z.current=C,()=>{Z.current=void 0;}),[Z,C]),he__namespace.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=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[k&&re&&jsxRuntime.jsx(reactDismissableLayer.DismissableLayer,{hidden:true,"aria-hidden":"true"}),T&&jsxRuntime.jsx(Fn.Close,{hidden:true,tabIndex:-1,"aria-hidden":"true"})]}),Tt=jsxRuntime.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__namespace.cloneElement(ge,void 0,jsxRuntime.jsxs(jsxRuntime.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:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[y,Je]})});return jsxRuntime.jsx(radixPopoverDismissableLayer.DismissableLayer,{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=he.useRef(false),[n,r]=he.useState(false),[a,l]=he.useState(false);return jsxRuntime.jsxs("span",{className:"agent-markdown-image","data-markdown-image":true,children:[t?.open?jsxRuntime.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&&jsxRuntime.jsxs("span",{className:"agent-markdown-image-actions",children:[t.collect&&jsxRuntime.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:jsxRuntime.jsx(lucideReact.FolderPlus,{"aria-hidden":"true"})}),t.download&&jsxRuntime.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?jsxRuntime.jsx(lucideReact.LoaderCircle,{"aria-hidden":"true",className:"animate-spin"}):jsxRuntime.jsx(lucideReact.Download,{"aria-hidden":"true"})}),t.edit&&jsxRuntime.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:jsxRuntime.jsx(lucideReact.SquarePen,{"aria-hidden":"true"})})]}),a&&jsxRuntime.jsx("span",{className:"agent-markdown-image-error",role:"alert",children:t?.labels.failed})]})}i(Wd,"AgentImageCard");var Xd=[],jr=he.createContext({text:"",sources:Xd}),Yd=he.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:Hb.defaultUrlTransform(e),"imageUrl");function qb(){return e=>{unistUtilVisit.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(""):he.isValidElement(e)?fa(e.props.children):"","textOf"),Kb=i(({src:e,alt:t,title:o})=>{let{resources:n}=he.useContext(jr),r=he.useContext(Yd),a=e&&(Wr(n,e,"image")?e:Gb(e));return jsxRuntime.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}):jsxRuntime.jsx("img",{src:a||void 0,alt:t,title:o})})},"MarkdownImage"),Xb=i(({children:e,node:t})=>{let{text:o}=he.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 jsxRuntime.jsx("p",{children:r?n:e})},"MarkdownParagraph"),Yb=i(({href:e,children:t,title:o})=>{let{sources:n,resources:r}=he.useContext(jr),a=typeof t=="string"?t:jsxRuntime.jsx(Yd.Provider,{value:true,children:t});if(e&&Wr(r,e,"link"))return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.link({href:e,children:a,title:o})});let l=Id(n,e);if(!l)return jsxRuntime.jsx("a",{href:e,target:"_blank",rel:"noreferrer noopener",children:a});let s=fa(t).trim(),d=!s||s.replace(/\/+$/,"")===String(e??"").replace(/\/+$/,"");return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a," "]}),jsxRuntime.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 jsxRuntime.jsx(jr.Provider,{value:{text:r,sources:t,resources:o},children:jsxRuntime.jsx("div",{className:"streaming-markdown",children:jsxRuntime.jsx(Hb__default.default,{skipHtml:true,remarkPlugins:[Vb__default.default,Wb__default.default,qb],urlTransform:(a,l,s)=>l==="src"&&s.tagName==="img"&&Qd(a)||Wr(o,a,l==="src"?"image":"link")?a:Hb.defaultUrlTransform(a),components:{img:Kb,p:Xb,a:Yb,table:i(({children:a})=>jsxRuntime.jsx("div",{className:"streaming-table",children:jsxRuntime.jsx("table",{children:a})}),"table"),pre:i(({children:a})=>{if(!he.isValidElement(a))return jsxRuntime.jsx("pre",{children:a});let l=String(a.props.children??"").replace(/\n$/,""),s=a.props.className?.replace(/^language-/,"")??"";return jsxRuntime.jsx(Di,{filename:s,code:l,lines:l.split(`
|
|
274
|
-
`)})},"pre")},children:r})})})}i(Zd,"StreamingMarkdown");var Jb=[],ev=[],tv=[],ov=["copy","retry","up","down"],nv={continue:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"18",r:"3"}),jsxRuntime.jsx("circle",{cx:"6",cy:"6",r:"3"}),jsxRuntime.jsx("circle",{cx:"18",cy:"6",r:"3"}),jsxRuntime.jsx("path",{d:"M18 9a6 6 0 0 1-6 6 6 6 0 0 1-6-6"})]},"continue"),copy:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2.5"}),jsxRuntime.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:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v6h-6"},"retry"),up:jsxRuntime.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:jsxRuntime.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]=he.useState(false),$=!l,
|
|
275
|
-
transition-colors duration-100 hover:bg-hover-2`,children:jsxRuntime.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&&jsxRuntime.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:[jsxRuntime.jsx("span",{className:"flex -space-x-1",children:n.slice(0,3).map(R=>jsxRuntime.jsx(Fr,{source:R,className:"size-3.5 rounded-full bg-surface shadow-[0_0_0_1.5px_var(--bui-canvas)]"},R.href))}),jsxRuntime.jsx("span",{className:"text-[12px] text-ink-2",children:a?.sources??w("sourceCount",{count:n.length})})]})]}),
|
|
273
|
+
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:[jsxRuntime.jsx(Fr,{source:e,className:"size-3 rounded-[3px]"}),jsxRuntime.jsx("span",{children:e.domain})]}):null}i(Or,"SourceChip");var Fn=popover.Popover,Bd=he.forwardRef(i(function({portal:t,positioner:o,...n},r){return jsxRuntime.jsx(popover.Popover.Portal,{...t,children:jsxRuntime.jsx(popover.Popover.Positioner,{...o,children:jsxRuntime.jsx(popover.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 _r(e){return e?.closest(Ib)??void 0}i(_r,"getOpenPopoverDialog");var Ad=Symbol.for("@inf-monkeys-tech/monkeys-design/popover-adapter@1"),Ed=globalThis,Dd=Ed[Ad]??(Ed[Ad]=he__namespace.createContext(null));function pa(){let e=he__namespace.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__namespace.useState(t??false),[s,d]=he__namespace.useState(null),[u,m]=he__namespace.useState(null),c=he__namespace.useRef(void 0),p=he__namespace.useRef(false),h=e??a,v=he__namespace.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__namespace.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 jsxRuntime.jsx(Dd.Provider,{value:w,children:jsxRuntime.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__namespace.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__namespace.forwardRef(i(function({asChild:t,children:o,onClick:n,...r},a){let{open:l,setTrigger:s}=pa(),d=reactComposeRefs.useComposedRefs(a,s),u=ma(t,o);return jsxRuntime.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__namespace.forwardRef(i(function({asChild:t,virtualRef:o,...n},r){let{setAnchor:a}=pa(),l=reactComposeRefs.useComposedRefs(r,a);return he__namespace.useEffect(()=>{if(o)return a(()=>()=>o.current),()=>a(null)},[a,o]),o?null:jsxRuntime.jsx(t?reactSlot.Slot:"div",{...n,ref:l})},"PopoverAnchor"));he__namespace.forwardRef(i(function({asChild:t,children:o,onClick:n,...r},a){let l=ma(t,o);return jsxRuntime.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__namespace.useState();return he__namespace.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)"},Hd=he__namespace.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:I,onEscapeKeyDown:C,onPointerDownOutside:R,onFocusOutside:P,onInteractOutside:F,...L},N){let{open:k,modal:T,anchor:z,trigger:H,escapeHandler:Z,dismissOutside:J,outsideInteraction:O}=pa(),K=ht(),[A,ne]=he__namespace.useState(null),ee=reactComposeRefs.useComposedRefs(N,ne),se=he__namespace.useRef(null),ce=he__namespace.useRef(false),B=typeof z=="function"?z():z,j=Od(B)??H,E=j?.ownerDocument??(typeof document>"u"?void 0:document),W=E?.activeElement,te=_r(j)??_r(W)??Array.from(E?.querySelectorAll('[data-monkeys-dialog-content][data-state="open"]')??[]).at(-1),ie=p??te,le=_r(ie)?.matches('[data-state="open"]'),Be=Lb(z??(c==="always"?H:null),k&&c==="always");he__namespace.useEffect(()=>(Z.current=C,()=>{Z.current=void 0;}),[Z,C]),he__namespace.useEffect(()=>{if(A&&se.current){let ve=A.ownerDocument.defaultView?.getComputedStyle(A).zIndex;se.current.style.zIndex=ve??"";}},[A,f,x?.zIndex]);let G=Array.isArray(s)?s.filter(ve=>ve!==null):s,fe=ma(w,y),wt=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[k&&le&&jsxRuntime.jsx(reactDismissableLayer.DismissableLayer,{hidden:true,"aria-hidden":"true"}),T&&jsxRuntime.jsx(Fn.Close,{hidden:true,tabIndex:-1,"aria-hidden":"true"})]}),Ht=jsxRuntime.jsx(Bd,{...K,...L,ref:ee,portal:{container:ie,keepMounted:h||v},positioner:{ref:se,anchor:Be??void 0,positionMethod:"fixed",align:t,alignOffset:o,side:n,sideOffset:r,arrowPadding:a,collisionPadding:d,collisionBoundary:G??void 0,sticky:u==="always",collisionAvoidance:l?{side:"flip",align:"shift",fallbackAxisSide:"none"}:{side:"none",align:"none",fallbackAxisSide:"none"},style:i(({anchorHidden:ve})=>m&&ve?{visibility:"hidden",pointerEvents:"none"}:void 0,"style")},"data-monkeys-component":"popover","data-slot":"content","data-surface":"menu","data-state":k?"open":"closed",initialFocus:$?()=>Ld($,A,"Mount"):void 0,finalFocus:()=>(Ld(I,A,"Unmount")&&!O.current&&H&&queueMicrotask(()=>H.focus({preventScroll:true})),O.current=false,ce.current=false,false),render:fe?he__namespace.cloneElement(fe,void 0,jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[fe.props.children,wt]})):void 0,className:g?f:M("z-50 w-72 border p-4 outline-hidden",oo("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:fe?void 0:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[y,wt]})});return jsxRuntime.jsx(radixPopoverDismissableLayer.DismissableLayer,{asChild:true,deferPointerDownOutside:true,onPointerDownOutside:ve=>{k&&R?.(ve);},onFocusOutside:ve=>{!k||ve.target?.hasAttribute("data-base-ui-focus-guard")||(P?.(ve),T&&ve.preventDefault());},onInteractOutside:ve=>{if(!k||ve.target?.hasAttribute("data-base-ui-focus-guard")||(F?.(ve),ve.defaultPrevented))return;let{originalEvent:We}=ve.detail;!T&&(We.type==="pointerdown"&&(ce.current=true),H?.contains(ve.target)||We.type==="focusin"&&ce.current)||J(We);},children:Ht})},"PopoverContent"));function Wd({children:e,actions:t}){let o=he.useRef(false),[n,r]=he.useState(false),[a,l]=he.useState(false);return jsxRuntime.jsxs("span",{className:"agent-markdown-image","data-markdown-image":true,children:[t?.open?jsxRuntime.jsx(sn,{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&&jsxRuntime.jsxs("span",{className:"agent-markdown-image-actions",children:[t.collect&&jsxRuntime.jsx(sn,{type:"button",variant:"outline",size:"icon",title:t.labels.collect,"aria-label":t.labels.collect,onClick:s=>{s.preventDefault(),s.stopPropagation(),t.collect?.();},children:jsxRuntime.jsx(lucideReact.FolderPlus,{"aria-hidden":"true"})}),t.download&&jsxRuntime.jsx(sn,{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?jsxRuntime.jsx(lucideReact.LoaderCircle,{"aria-hidden":"true",className:"animate-spin"}):jsxRuntime.jsx(lucideReact.Download,{"aria-hidden":"true"})}),t.edit&&jsxRuntime.jsx(sn,{type:"button",variant:"outline",size:"icon",title:t.labels.edit,"aria-label":t.labels.edit,onClick:s=>{s.preventDefault(),s.stopPropagation(),t.edit?.();},children:jsxRuntime.jsx(lucideReact.SquarePen,{"aria-hidden":"true"})})]}),a&&jsxRuntime.jsx("span",{className:"agent-markdown-image-error",role:"alert",children:t?.labels.failed})]})}i(Wd,"AgentImageCard");var Xd=[],jr=he.createContext({text:"",sources:Xd}),Yd=he.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:_b.defaultUrlTransform(e),"imageUrl");function qb(){return e=>{unistUtilVisit.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(""):he.isValidElement(e)?fa(e.props.children):"","textOf"),Kb=i(({src:e,alt:t,title:o})=>{let{resources:n}=he.useContext(jr),r=he.useContext(Yd),a=e&&(Wr(n,e,"image")?e:Gb(e));return jsxRuntime.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}):jsxRuntime.jsx("img",{src:a||void 0,alt:t,title:o})})},"MarkdownImage"),Xb=i(({children:e,node:t})=>{let{text:o}=he.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 jsxRuntime.jsx("p",{children:r?n:e})},"MarkdownParagraph"),Yb=i(({href:e,children:t,title:o})=>{let{sources:n,resources:r}=he.useContext(jr),a=typeof t=="string"?t:jsxRuntime.jsx(Yd.Provider,{value:true,children:t});if(e&&Wr(r,e,"link"))return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.link({href:e,children:a,title:o})});let l=Id(n,e);if(!l)return jsxRuntime.jsx("a",{href:e,target:"_blank",rel:"noreferrer noopener",children:a});let s=fa(t).trim(),d=!s||s.replace(/\/+$/,"")===String(e??"").replace(/\/+$/,"");return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a," "]}),jsxRuntime.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 jsxRuntime.jsx(jr.Provider,{value:{text:r,sources:t,resources:o},children:jsxRuntime.jsx("div",{className:"streaming-markdown",children:jsxRuntime.jsx(_b__default.default,{skipHtml:true,remarkPlugins:[Vb__default.default,Wb__default.default,qb],urlTransform:(a,l,s)=>l==="src"&&s.tagName==="img"&&Qd(a)||Wr(o,a,l==="src"?"image":"link")?a:_b.defaultUrlTransform(a),components:{img:Kb,p:Xb,a:Yb,table:i(({children:a})=>jsxRuntime.jsx("div",{className:"streaming-table",children:jsxRuntime.jsx("table",{children:a})}),"table"),pre:i(({children:a})=>{if(!he.isValidElement(a))return jsxRuntime.jsx("pre",{children:a});let l=String(a.props.children??"").replace(/\n$/,""),s=a.props.className?.replace(/^language-/,"")??"";return jsxRuntime.jsx(Di,{filename:s,code:l,lines:l.split(`
|
|
274
|
+
`)})},"pre")},children:r})})})}i(Zd,"StreamingMarkdown");var Jb=[],ev=[],tv=[],ov=["copy","retry","up","down"],nv={continue:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"12",cy:"18",r:"3"}),jsxRuntime.jsx("circle",{cx:"6",cy:"6",r:"3"}),jsxRuntime.jsx("circle",{cx:"18",cy:"6",r:"3"}),jsxRuntime.jsx("path",{d:"M18 9a6 6 0 0 1-6 6 6 6 0 0 1-6-6"})]},"continue"),copy:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2.5"}),jsxRuntime.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:jsxRuntime.jsx("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v6h-6"},"retry"),up:jsxRuntime.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:jsxRuntime.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]=he.useState(false),$=!l,I=$&&(s??true);he.useEffect(()=>{I||y(false);},[I]);let C=he.useRef(p);return C.current=p,he.useEffect(()=>{$&&C.current?.();},[$]),jsxRuntime.jsx(U,{children:jsxRuntime.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?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Zd,{text:e,sources:n,resources:v,streaming:l}),!$&&jsxRuntime.jsx("span",{"aria-hidden":true,className:"inline-block h-3 w-0.5 rounded-full bg-ink"})]}):jsxRuntime.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?jsxRuntime.jsx(Or,{source:n[R.sourceIndex??0]},P):jsxRuntime.jsxs("span",{className:"inline",children:[R.text," "]},P)),!$&&jsxRuntime.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"}})]}),I&&(d&&u.length>0||n.length>0)&&jsxRuntime.jsxs("div",{"data-bui-response-controls":true,className:"mt-2 flex items-center gap-0.5 text-ink-2",children:[d&&u.map(R=>jsxRuntime.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
|
|
275
|
+
transition-colors duration-100 hover:bg-hover-2`,children:jsxRuntime.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&&jsxRuntime.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:[jsxRuntime.jsx("span",{className:"flex -space-x-1",children:n.slice(0,3).map(R=>jsxRuntime.jsx(Fr,{source:R,className:"size-3.5 rounded-full bg-surface shadow-[0_0_0_1.5px_var(--bui-canvas)]"},R.href))}),jsxRuntime.jsx("span",{className:"text-[12px] text-ink-2",children:a?.sources??w("sourceCount",{count:n.length})})]})]}),I&&n.length>0&&jsxRuntime.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:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:"mt-1.5 flex flex-col rounded-[10px] bg-inset p-1 shadow-hairline",children:n.map(R=>jsxRuntime.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:[jsxRuntime.jsx(Fr,{source:R,className:"size-4 rounded-[4px]"}),jsxRuntime.jsx("span",{className:"animated-underline",children:R.name}),jsxRuntime.jsx("span",{className:"ml-auto font-mono text-[10.5px] text-ink-2",children:R.domain})]},R.href))})})}),r.length>0&&jsxRuntime.jsxs("div",{"data-bui-follow-ups":true,className:"mt-2.5 transition-opacity duration-400",style:{opacity:$?1:0,pointerEvents:$?"auto":"none"},children:[jsxRuntime.jsx("p",{className:"text-[12px] font-medium text-ink-2",children:g.followUps}),jsxRuntime.jsx("div",{className:"mt-0.5 flex flex-col",children:r.map((R,P)=>jsxRuntime.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)]
|
|
276
276
|
px-1.5 py-1.5 text-left text-[12.5px] text-ink-2 transition-colors
|
|
277
|
-
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:[jsxRuntime.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:[jsxRuntime.jsx("path",{d:"M9 10l-5 5 5 5"}),jsxRuntime.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]=he.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 jsxRuntime.jsx(U,{children:jsxRuntime.jsx("div",{className:`bui-task-progress${n?` ${n}`:""}`,"data-bui-task-progress":true,children:jsxRuntime.jsxs(zd,{open:r,onOpenChange:a,children:[jsxRuntime.jsx(Fd,{asChild:true,children:jsxRuntime.jsxs(Me,{variant:"quiet",className:"bui-task-progress-trigger","data-status":e.status,"aria-label":e.summary,title:e.summary,children:[t,jsxRuntime.jsx(lucideReact.ChevronUp,{"aria-hidden":"true",className:"bui-task-progress-chevron","data-open":r})]})}),jsxRuntime.jsx(
|
|
278
|
-
${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=jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",children:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),uv=jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})}),pv=jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.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]=he.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 jsxRuntime.jsx(oc,{progress:a,className:n,capsule:jsxRuntime.jsx(ba,{variant:"Capsules",rows:[v],labels:o}),children:jsxRuntime.jsx(ba,{variant:"List",rows:t.map((w,g)=>({...w,step:w.step??g+1})),labels:o})})}let m=i(h=>h.status==="done"?jsxRuntime.jsx(nc,{tone:"green",children:uv}):h.status==="running"?jsxRuntime.jsx(ha,{active:true,children:h.step}):h.status==="pending"?jsxRuntime.jsx(ha,{children:h.step}):h.status==="failed"?jsxRuntime.jsx(nc,{tone:"red",children:cv}):jsxRuntime.jsx(ha,{children:h.step}),"badgeFor"),c=i(h=>h.status==="done"?jsxRuntime.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"?jsxRuntime.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"?jsxRuntime.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," ",jsxRuntime.jsx("span",{style:{animation:"bui-spin 1.2s linear infinite"},className:"flex",children:pv})]}):null,"pillFor"),p=e==="List";return jsxRuntime.jsx(U,{children:jsxRuntime.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 jsxRuntime.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:[jsxRuntime.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:[jsxRuntime.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center",children:m(h)}),jsxRuntime.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}),jsxRuntime.jsx("span",{className:"text-[12.5px] text-ink-2 tabular-nums",children:h.amount}),c(h),w&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"-ml-2 flex size-7 shrink-0 items-center justify-center rounded-full text-ink-3",children:jsxRuntime.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:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})})]}),jsxRuntime.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:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsxs("div",{className:"mb-2.5 grid grid-cols-[24px_1fr] gap-2.5 px-2.5",children:[jsxRuntime.jsx("span",{"aria-hidden":true,className:"mx-auto h-full w-px bg-line"}),jsxRuntime.jsx("div",{className:"flex flex-col gap-1.5",children:h.details.map((x,y)=>jsxRuntime.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:[jsxRuntime.jsx("span",{className:"text-[12px] text-ink-2",children:x.label}),jsxRuntime.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 jsxRuntime.jsx("span",{className:`flex size-3.5 shrink-0 items-center justify-center rounded-full text-white ${e}`,children:jsxRuntime.jsxs("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.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]=he.useState(null),[p,h]=he.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,
|
|
279
|
-
transition-colors duration-100 hover:bg-hover-2`,children:[a?jsxRuntime.jsx("span",{className:"flex shrink-0 transition-colors duration-200",style:{color:$?"var(--bui-ink-2)":"var(--bui-ink-3)"},children:a}):jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:$?"var(--bui-ink-2)":"var(--bui-ink-3)",children:jsxRuntime.jsx("path",{d:"M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z"})}),jsxRuntime.jsx("span",{role:"status",className:"contents",children:$?jsxRuntime.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}):jsxRuntime.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&&jsxRuntime.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:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})]}),jsxRuntime.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:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsxs("div",{className:"relative mt-1 ml-[5px] pl-4",children:[jsxRuntime.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)"}}),jsxRuntime.jsxs("div",{ref:C,className:"flex flex-col gap-1 py-1",children:[w.query&&jsxRuntime.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:[jsxRuntime.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:[jsxRuntime.jsx("circle",{cx:"11",cy:"11",r:"7"}),jsxRuntime.jsx("path",{d:"M21 21l-4.3-4.3"})]}),jsxRuntime.jsx("span",{className:"text-[12.5px] text-ink-2",children:w.query})]}),w.rows.slice(0,
|
|
277
|
+
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:[jsxRuntime.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:[jsxRuntime.jsx("path",{d:"M9 10l-5 5 5 5"}),jsxRuntime.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]=he.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 jsxRuntime.jsx(U,{children:jsxRuntime.jsx("div",{className:`bui-task-progress${n?` ${n}`:""}`,"data-bui-task-progress":true,children:jsxRuntime.jsxs(zd,{open:r,onOpenChange:a,children:[jsxRuntime.jsx(Fd,{asChild:true,children:jsxRuntime.jsxs(Me,{variant:"quiet",className:"bui-task-progress-trigger","data-status":e.status,"aria-label":e.summary,title:e.summary,children:[t,jsxRuntime.jsx(lucideReact.ChevronUp,{"aria-hidden":"true",className:"bui-task-progress-chevron","data-open":r})]})}),jsxRuntime.jsx(Hd,{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:jsxRuntime.jsx(U,{portal:true,children:jsxRuntime.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 jsxRuntime.jsxs("span",{className:"relative inline-flex shrink-0 items-center justify-center",style:{width:24,height:24},children:[jsxRuntime.jsxs("svg",{width:24,height:24,className:"absolute inset-0",style:e?{animation:"bui-spin 1.1s linear infinite"}:void 0,children:[jsxRuntime.jsx("circle",{cx:24/2,cy:24/2,r:11,fill:"none",stroke:"var(--bui-line)",strokeWidth:2}),e&&jsxRuntime.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}`})]}),jsxRuntime.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 jsxRuntime.jsx("span",{className:`flex size-5.5 shrink-0 items-center justify-center rounded-full text-white
|
|
278
|
+
${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=jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",children:jsxRuntime.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),uv=jsxRuntime.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})}),pv=jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.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]=he.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 jsxRuntime.jsx(oc,{progress:a,className:n,capsule:jsxRuntime.jsx(ba,{variant:"Capsules",rows:[v],labels:o}),children:jsxRuntime.jsx(ba,{variant:"List",rows:t.map((w,g)=>({...w,step:w.step??g+1})),labels:o})})}let m=i(h=>h.status==="done"?jsxRuntime.jsx(nc,{tone:"green",children:uv}):h.status==="running"?jsxRuntime.jsx(ha,{active:true,children:h.step}):h.status==="pending"?jsxRuntime.jsx(ha,{children:h.step}):h.status==="failed"?jsxRuntime.jsx(nc,{tone:"red",children:cv}):jsxRuntime.jsx(ha,{children:h.step}),"badgeFor"),c=i(h=>h.status==="done"?jsxRuntime.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"?jsxRuntime.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"?jsxRuntime.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," ",jsxRuntime.jsx("span",{style:{animation:"bui-spin 1.2s linear infinite"},className:"flex",children:pv})]}):null,"pillFor"),p=e==="List";return jsxRuntime.jsx(U,{children:jsxRuntime.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 jsxRuntime.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:[jsxRuntime.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:[jsxRuntime.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center",children:m(h)}),jsxRuntime.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}),jsxRuntime.jsx("span",{className:"text-[12.5px] text-ink-2 tabular-nums",children:h.amount}),c(h),w&&jsxRuntime.jsx("span",{"aria-hidden":"true",className:"-ml-2 flex size-7 shrink-0 items-center justify-center rounded-full text-ink-3",children:jsxRuntime.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:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})})]}),jsxRuntime.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:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsxs("div",{className:"mb-2.5 grid grid-cols-[24px_1fr] gap-2.5 px-2.5",children:[jsxRuntime.jsx("span",{"aria-hidden":true,className:"mx-auto h-full w-px bg-line"}),jsxRuntime.jsx("div",{className:"flex flex-col gap-1.5",children:h.details.map((x,y)=>jsxRuntime.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:[jsxRuntime.jsx("span",{className:"text-[12px] text-ink-2",children:x.label}),jsxRuntime.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 jsxRuntime.jsx("span",{className:`flex size-3.5 shrink-0 items-center justify-center rounded-full text-white ${e}`,children:jsxRuntime.jsxs("svg",{width:"9",height:"9",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"9"}),jsxRuntime.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]=he.useState(null),[p,h]=he.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,I=u<2?0:w.rows.length,C=he.useRef(null),[R,P]=he.useState(0);he.useLayoutEffect(()=>{C.current&&P(C.current.offsetHeight);},[I,y,e,u]);let F=he.useRef(false);return he.useEffect(()=>{if($){F.current=false;return}F.current||(F.current=true,t?.());},[$,t]),jsxRuntime.jsx(U,{children:jsxRuntime.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:[jsxRuntime.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
|
|
279
|
+
transition-colors duration-100 hover:bg-hover-2`,children:[a?jsxRuntime.jsx("span",{className:"flex shrink-0 transition-colors duration-200",style:{color:$?"var(--bui-ink-2)":"var(--bui-ink-3)"},children:a}):jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:$?"var(--bui-ink-2)":"var(--bui-ink-3)",children:jsxRuntime.jsx("path",{d:"M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z"})}),jsxRuntime.jsx("span",{role:"status",className:"contents",children:$?jsxRuntime.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}):jsxRuntime.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&&jsxRuntime.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:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})]}),jsxRuntime.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:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsxs("div",{className:"relative mt-1 ml-[5px] pl-4",children:[jsxRuntime.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)"}}),jsxRuntime.jsxs("div",{ref:C,className:"flex flex-col gap-1 py-1",children:[w.query&&jsxRuntime.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:[jsxRuntime.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:[jsxRuntime.jsx("circle",{cx:"11",cy:"11",r:"7"}),jsxRuntime.jsx("path",{d:"M21 21l-4.3-4.3"})]}),jsxRuntime.jsx("span",{className:"text-[12.5px] text-ink-2",children:w.query})]}),w.rows.slice(0,I).map((L,N)=>{let k=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e==="Search"&&jsxRuntime.jsx(bv,{tone:vv[N%3]}),e==="Steps"&&(N<I-1||!$?jsxRuntime.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:jsxRuntime.jsx("path",{d:"M20 6L9 17l-5-5"})}):jsxRuntime.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"}})),jsxRuntime.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&&jsxRuntime.jsx("span",{className:`shrink-0 text-[11.5px] text-ink-3 ${L.mono?"font-mono":""}`,children:L.secondary}),L.add!==void 0&&jsxRuntime.jsxs("span",{className:"shrink-0 font-mono text-[11px] tabular-nums",children:[jsxRuntime.jsxs("span",{className:"text-green",children:["+",L.add]})," ",jsxRuntime.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",z={animation:`bui-fade-up 320ms cubic-bezier(0.23,1,0.32,1) ${N*120}ms both`};if(e==="Search")return jsxRuntime.jsx("a",{href:yo(L.href,"link"),target:"_blank",rel:"noreferrer",className:`${T} transition-colors duration-150 hover:bg-hover`,style:z,children:k},L.primary);if(e==="Coding"){let H=p===L.primary;return jsxRuntime.jsx("button",{type:"button","aria-pressed":H,onClick:()=>h(H?null:L.primary),className:`${T} transition-colors duration-150 ${H?"bg-inset":"hover:bg-hover"}`,style:z,children:k},L.primary)}return jsxRuntime.jsx("div",{className:T,style:z,children:k},L.primary)}),e==="Search"&&u>=3&&jsxRuntime.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:jsxRuntime.jsx("path",{d:"M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z"}),write:jsxRuntime.jsx("g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M17 3a2.8 2.8 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5z"})}),run:jsxRuntime.jsx("g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M4 17l6-5-6-5M12 19h8"})}),read:jsxRuntime.jsxs("g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntime.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),jsxRuntime.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]=he.useState(true),[c,p]=he.useState(new Set),[h,v]=he.useState(null),w=i(y=>$=>{let I=$.currentTarget.closest("[data-diffchip]").getBoundingClientRect(),C=38+(o[y]?.length??0)*19,R=I.bottom+6+C<=window.innerHeight-12;v({file:y,x:Math.max(12,Math.min(I.left,window.innerWidth-300)),...R?{top:I.bottom+6}:{bottom:window.innerHeight-I.top+6}});},"openPreview"),g=i(y=>()=>v($=>$?.file===y?null:$),"closePreview"),f=e.length+1,x=i(y=>p($=>{let I=new Set($);return I.has(y)?I.delete(y):I.add(y),l?.(y,I.has(y)),I}),"toggleRow");return jsxRuntime.jsx(U,{children:jsxRuntime.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:[jsxRuntime.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:[jsxRuntime.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:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})}),jsxRuntime.jsx("span",{className:"tabular-nums",children:s.header})]}),jsxRuntime.jsx("div",{className:"grid transition-[grid-template-rows,opacity] duration-300",style:{gridTemplateRows:u?"1fr":"0fr",opacity:u?1:0},children:jsxRuntime.jsxs("div",{className:"-mx-1 overflow-hidden px-1.5 pb-1",children:[jsxRuntime.jsx("div",{className:"mt-1.5 flex flex-col gap-1",children:e.slice(0,d).map(y=>{let $=c.has(y.label);return jsxRuntime.jsxs("div",{style:{animation:"bui-fade-up 300ms cubic-bezier(0.23,1,0.32,1) both"},children:[jsxRuntime.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:[jsxRuntime.jsxs("span",{className:"relative flex size-4 shrink-0 items-center justify-center text-ink-3",children:[jsxRuntime.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]}),jsxRuntime.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:jsxRuntime.jsx("path",{d:"M6 9l6 6 6-6"})})]}),jsxRuntime.jsx("span",{className:"min-w-0 flex-1 whitespace-pre-wrap [overflow-wrap:anywhere] text-[12.5px] font-medium text-ink",children:y.label}),jsxRuntime.jsx("span",{className:`inline-flex h-5.5 shrink-0 items-center whitespace-nowrap rounded-chip bg-field px-1.5
|
|
280
280
|
text-[11.5px] text-ink-2 shadow-hairline transition-colors duration-100 hover:bg-hover-2
|
|
281
|
-
${y.mono?"font-mono":""}`,children:y.chip})]}),jsxRuntime.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:jsxRuntime.jsx("div",{className:"min-h-0 overflow-hidden",children:jsxRuntime.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(
|
|
281
|
+
${y.mono?"font-mono":""}`,children:y.chip})]}),jsxRuntime.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:jsxRuntime.jsx("div",{className:"min-h-0 overflow-hidden",children:jsxRuntime.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(I=>jsxRuntime.jsx("span",{className:`whitespace-pre-wrap [overflow-wrap:anywhere] text-[11.5px] leading-[1.6] ${y.detailMono?"font-mono":""} ${I.tone==="add"?"text-green":"text-ink-2"}`,children:I.text},I.text))})})})]},y.label)})}),t.length>0&&d>=f&&jsxRuntime.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,$)=>jsxRuntime.jsx("span",{"data-diffchip":true,className:"relative",onMouseEnter:w(y.file),onMouseLeave:g(y.file),children:jsxRuntime.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
|
|
282
282
|
bg-surface px-2 font-mono text-[11.5px] text-ink shadow-btn
|
|
283
|
-
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:[jsxRuntime.jsx("span",{className:"min-w-0 truncate",children:y.file}),jsxRuntime.jsxs("span",{className:"shrink-0 text-green tabular-nums",children:["+",y.add]}),y.del>0&&jsxRuntime.jsxs("span",{className:"shrink-0 text-red tabular-nums",children:["\u2212",y.del]})]})},y.file))})]})}),h&&typeof document<"u"&&
|
|
283
|
+
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:[jsxRuntime.jsx("span",{className:"min-w-0 truncate",children:y.file}),jsxRuntime.jsxs("span",{className:"shrink-0 text-green tabular-nums",children:["+",y.add]}),y.del>0&&jsxRuntime.jsxs("span",{className:"shrink-0 text-red tabular-nums",children:["\u2212",y.del]})]})},y.file))})]})}),h&&typeof document<"u"&&Ho(jsxRuntime.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:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b border-line px-2.5 py-1.5 font-mono text-[11px]",children:[jsxRuntime.jsx("span",{className:"min-w-0 truncate text-ink-2",children:h.file}),jsxRuntime.jsxs("span",{className:"shrink-0 tabular-nums",children:[jsxRuntime.jsxs("span",{className:"text-green",children:["+",t.find(y=>y.file===h.file)?.add]}),(t.find(y=>y.file===h.file)?.del??0)>0&&jsxRuntime.jsxs("span",{className:"text-red",children:[" \u2212",t.find(y=>y.file===h.file)?.del]})]})]}),jsxRuntime.jsx("div",{className:"py-1 font-mono text-[11px] leading-[1.8]",children:(o[h.file]??[]).map((y,$)=>jsxRuntime.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:[jsxRuntime.jsx("span",{className:"w-3 shrink-0 select-none",children:y.tone==="add"?"+":y.tone==="del"?"\u2212":" "}),jsxRuntime.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]=he.useState(()=>d??{}),[g,f]=he.useState(0),[x,y]=he.useState(0),$=he.useRef(null),I=he.useRef(false),C=Math.min(x,Math.max(0,e.length-1)),R=e[C],[P,F]=he.useState(()=>r?"cancelled":n?"submitted":a?"submitting":l?"error":"idle"),L=he.useRef(v),N=he.useRef(false),k=he.useRef(m),T=he.useRef(c);L.current=v,k.current=m,T.current=c;let z=P==="submitted"||P==="cancelled",H=P==="submitting"||P==="cancelling",Z=s||H||z,O=!!(t==="asynchronous"&&e.length>0&&e.every(B=>B.options?.length)&&o&&Number.isFinite(Date.parse(o))),K=e.length>0&&e.every(B=>!!v[B.id]?.trim()),A=C<e.length-1,ne=!Z&&(A?!!v[R.id]?.trim():K),ee=he.useCallback(async(B,j=false)=>{if(!(N.current||s||a||n||r||z)&&!(j&&!T.current)){N.current=true,F(j?"cancelling":"submitting");try{j?await T.current():await k.current(B),F(j?"cancelled":"submitted");}catch{F("error");}finally{N.current=false;}}},[s,a,n,r,z]),se=i((B=false)=>{ne&&(A?(I.current=B,y(C+1)):ee(L.current));},"advanceOrSubmit");he.useEffect(()=>{if(!I.current)return;I.current=false;let B=$.current;(B?.querySelector("input:not(:disabled)")??B?.querySelector('[role="radio"]:not(:disabled)'))?.focus();},[C]),he.useEffect(()=>{if(!O||!o||z)return;let B=Date.parse(o),j=i(()=>{let W=Math.max(0,B-Date.now());f(Math.ceil(W/1e3));},"update"),E=setInterval(j,250);return j(),()=>clearInterval(E)},[O,o,z]),he.useEffect(()=>{d&&(L.current=d,w(d));},[d]),he.useEffect(()=>{F(r?"cancelled":n?"submitted":a?"submitting":l?"error":B=>["submitting","submitted","cancelling","cancelled"].includes(B)?"idle":B);},[n,r,a,l]);let ce=i((B,j)=>{Z||(w(E=>{let W={...E,[B]:j};return L.current=W,W}),P==="error"&&F("idle"));},"updateAnswer");return e.length?jsxRuntime.jsx(U,{children:jsxRuntime.jsxs("section",{className:"bui-question-card w-full max-w-95 overflow-hidden rounded-card shadow-card","aria-label":p("questionPanel"),children:[jsxRuntime.jsxs("header",{className:"bui-question-header flex items-center justify-between gap-2 px-4 pt-3",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-2 text-sm",children:[jsxRuntime.jsx(lucideReact.MessageCircleQuestion,{size:16,"aria-hidden":"true"}),p("questionPanel")]}),e.length>1&&jsxRuntime.jsxs("nav",{className:"flex items-center gap-2","aria-label":p("questionNavigation"),children:[jsxRuntime.jsx(Me,{type:"button",variant:"quiet",size:"sm","aria-label":p("Previous question"),disabled:C===0||H,onClick:()=>y(C-1),children:jsxRuntime.jsx(lucideReact.ChevronLeft,{size:16,"aria-hidden":"true"})}),jsxRuntime.jsx("span",{className:"text-xs","aria-live":"polite",children:p("questionPosition",{current:C+1,total:e.length})}),jsxRuntime.jsx(Me,{type:"button",variant:"quiet",size:"sm","aria-label":p("Next question"),disabled:C===e.length-1||H,onClick:()=>y(C+1),children:jsxRuntime.jsx(lucideReact.ChevronRight,{size:16,"aria-hidden":"true"})})]})]}),jsxRuntime.jsx("div",{className:"primitive-card-pad flex flex-col gap-4",children:[R].map(B=>{let j=B.options??[],E=B.allowCustom!==false||j.length===0;return jsxRuntime.jsxs("fieldset",{ref:$,className:"min-w-0",children:[jsxRuntime.jsx("legend",{className:"bui-question-title mb-2 text-[14px] font-medium",children:B.title}),jsxRuntime.jsx("div",{className:"flex flex-col gap-1",role:"radiogroup","aria-label":B.title,children:j.map((W,te)=>{let ie=v[B.id]===W;return jsxRuntime.jsxs(Me,{type:"button",variant:"quiet",size:"sm",role:"radio","aria-checked":ie,disabled:Z,onClick:()=>ce(B.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:[jsxRuntime.jsx("span",{className:"bui-question-option-marker flex size-4 shrink-0 items-center justify-center rounded-full","data-selected":ie?"true":void 0,children:ie?jsxRuntime.jsx("span",{className:"bui-question-option-mark size-1.5 rounded-full"}):null}),jsxRuntime.jsx("span",{className:"bui-question-option-label min-w-0 flex-1 break-words",children:W}),t==="asynchronous"&&te===0&&jsxRuntime.jsx("span",{className:"bui-question-recommended shrink-0 rounded-control px-1.5 py-0.5 text-[11px] font-medium",children:h.recommended})]},`${B.id}:${te}`)})}),E&&jsxRuntime.jsx(Un,{unstyled:true,type:B.customInputType??"text","aria-label":B.title,placeholder:p(h.answerPlaceholder),disabled:Z,value:j.includes(v[B.id])?"":v[B.id]??"",onChange:W=>ce(B.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(),se(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"})]},B.id)})}),jsxRuntime.jsxs("div",{className:"primitive-card-footer flex flex-wrap items-center justify-between gap-2",children:[jsxRuntime.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)):""}),!z&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[c&&jsxRuntime.jsx(Me,{size:"sm",variant:"quiet",disabled:s||H,onClick:()=>{ee(L.current,true);},children:h.cancel}),jsxRuntime.jsx(Me,{type:"button",size:"sm",variant:"accent",disabled:!ne,onClick:()=>se(),children:P==="submitting"?h.sending:C<e.length-1?p("Next question"):h.send})]})]})]})}):null}i(Iv,"BUIQuestionCard");
|
|
284
284
|
|
|
285
285
|
exports.BUIAgentScreen = ou;
|
|
286
286
|
exports.BUIApprovalCard = cu;
|
|
287
287
|
exports.BUIButton = Me;
|
|
288
|
-
exports.BUIChatComposer =
|
|
288
|
+
exports.BUIChatComposer = _p;
|
|
289
289
|
exports.BUIChip = Mc;
|
|
290
290
|
exports.BUICodeBlock = Di;
|
|
291
291
|
exports.BUIContextCards = am;
|
|
@@ -295,7 +295,7 @@ exports.BUIFilterTable = vm;
|
|
|
295
295
|
exports.BUIFineTuneCard = Rm;
|
|
296
296
|
exports.BUIFlowNode = zi;
|
|
297
297
|
exports.BUIFlowchart = Fm;
|
|
298
|
-
exports.BUIGlideMenu =
|
|
298
|
+
exports.BUIGlideMenu = tt;
|
|
299
299
|
exports.BUIInsightCards = Jm;
|
|
300
300
|
exports.BUILoadingState = Bi;
|
|
301
301
|
exports.BUIMonogram = Fa;
|