@ai-matrx/coding-sessions 0.1.140 → 0.1.142

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.
@@ -13,12 +13,12 @@ Error generating stack: `+e.message+`
13
13
  `),n=[];{let e=0;for(let r of t)n.push(e),e+=r.length+1}let r=[],i=0,a=0;for(;i<t.length;){let e=t[i]??``;if(e.trim()===``){i+=1;continue}a=i;let n=Nr.exec(e);if(n!==null){let e=n[1]??"```",a=n[2]??``,o=[];i+=1;let s=!1;for(;i<t.length;){let n=t[i]??``;if(n.trimStart().startsWith(e[0]??"`")&&n.trim().length>=3){let t=Nr.exec(n);if(t!==null&&(t[1]??``).length>=e.length){s=!0,i+=1;break}}o.push(n),i+=1}r.push({type:`code`,language:a,body:o.join(`
14
14
  `),closed:s});continue}let o=Pr.exec(e);if(o!==null){r.push({type:`heading`,level:(o[1]??`#`).length,body:o[2]??``}),i+=1;continue}if(Rr.test(e)){r.push({type:`rule`}),i+=1;continue}if(Lr.test(e)){let e=[];for(;i<t.length;){let n=Lr.exec(t[i]??``);if(n===null)break;e.push(n[1]??``),i+=1}r.push({type:`quote`,body:e.join(`
15
15
  `)});continue}let s=Fr.exec(e),c=Ir.exec(e);if(s!==null||c!==null){let e=c!==null,n=[];for(;i<t.length;){let r=t[i]??``,a=e?Ir.exec(r):Fr.exec(r);if(a===null)break;n.push(a[1]??``),i+=1}r.push({type:`list`,ordered:e,items:n});continue}if(en(t,i)){let n=zr(e),a=tn(t,i);i+=2;let o=[];for(;i<a;){let e=zr(t[i]??``);o.push(n.map((t,n)=>e[n]??``)),i+=1}r.push({type:`table`,header:n,rows:o});continue}let l=[];for(;i<t.length;){let e=t[i]??``;if(e.trim()===``||Nr.test(e)||Pr.test(e)||Fr.test(e)||Ir.test(e)||Lr.test(e)||Rr.test(e))break;l.push(e),i+=1}r.push({type:`paragraph`,body:l.join(`
16
- `)})}return{blocks:r,openFrom:n[a]??0}}function Vr(){let e=new Map,t=0,n=(n,r)=>{t+=1;let i=Br(r);return e.set(n,{text:r,blocks:i.blocks,stable:i.blocks.slice(0,Math.max(0,i.blocks.length-1)),stableEnd:i.openFrom}),i.blocks};return{get parses(){return t},forget(t){e.delete(t)},parse(r,i){let a=e.get(r);if(a===void 0)return n(r,i);if(a.text===i)return a.blocks;if(!i.startsWith(a.text))return n(r,i);t+=1;let o=Br(i.slice(a.stableEnd)),s=[...a.stable,...o.blocks];return e.set(r,{text:i,blocks:s,stable:s.slice(0,Math.max(0,s.length-1)),stableEnd:a.stableEnd+o.openFrom}),s}}}function Hr(e,t){switch(e.type){case`code`:return(0,j.jsx)(`pre`,{className:`mx-chat-md__pre`,"data-language":e.language||void 0,children:(0,j.jsx)(`code`,{children:e.body})},t);case`heading`:{let n=Math.min(6,Math.max(1,e.level)),r=`h${n}`;return(0,j.jsx)(r,{className:`mx-chat-md__heading`,"data-level":n,children:Mr(e.body,`${t}-`)},t)}case`quote`:return(0,j.jsx)(`blockquote`,{className:`mx-chat-md__quote`,children:Mr(e.body,`${t}-`)},t);case`list`:return e.ordered?(0,j.jsx)(`ol`,{className:`mx-chat-md__list`,children:e.items.map((e,n)=>(0,j.jsx)(`li`,{children:Mr(e,`${t}-${n}-`)},`${t}-${n}`))},t):(0,j.jsx)(`ul`,{className:`mx-chat-md__list`,children:e.items.map((e,n)=>(0,j.jsx)(`li`,{children:Mr(e,`${t}-${n}-`)},`${t}-${n}`))},t);case`table`:return(0,j.jsx)(`div`,{className:`mx-chat-md__table-scroll`,children:(0,j.jsxs)(`table`,{className:`mx-chat-md__table`,children:[(0,j.jsx)(`thead`,{children:(0,j.jsx)(`tr`,{children:e.header.map((e,n)=>(0,j.jsx)(`th`,{children:Mr(e,`${t}-h${n}-`)},`${t}-h${n}`))})}),(0,j.jsx)(`tbody`,{children:e.rows.map((e,n)=>(0,j.jsx)(`tr`,{children:e.map((e,r)=>(0,j.jsx)(`td`,{children:Mr(e,`${t}-r${n}c${r}-`)},`${t}-r${n}c${r}`))},`${t}-r${n}`))})]})},t);case`rule`:return(0,j.jsx)(`hr`,{className:`mx-chat-md__rule`},t);case`paragraph`:return(0,j.jsx)(`p`,{className:`mx-chat-md__paragraph`,children:Mr(e.body,`${t}-`)},t)}}function Ur(e){let t=e.cache.parse(e.cacheKey,e.text);return(0,j.jsx)(`div`,{className:`mx-chat-md`,children:t.map((e,t)=>Hr(e,`b${t}`))})}var Wr=`This answer contains a structured block, and it is shown as plain text here because this app has not connected the content renderer.`,Gr=`Mount <ContentIrRenderProvider host={…}> from @ai-matrx/content-ir-react above your chat to draw structured blocks properly.`;function Kr(e){let t=te(),n=e.announce;return(0,_.useEffect)(()=>{t===null&&n()},[t,n]),t===null?(0,j.jsxs)(`div`,{className:`mx-chat-content`,"data-mx-chat-content":`block-standin`,children:[(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:Wr}),(0,j.jsx)(Ur,{text:e.request.text,cacheKey:`${e.request.messageId}:${e.request.kind}`,cache:e.cache})]}):(0,j.jsx)(`div`,{className:`mx-chat-content`,"data-mx-chat-content":`block`,"data-kind":e.request.kind,children:(0,j.jsx)(wr,{kind:e.request.kind,value:e.request.data??e.request.text,variant:`bare`})})}function qr(e={}){let t=e.notifier??D(),n=e.cache??Vr(),r=!1,i=()=>{r||(r=!0,t.notify({level:`warning`,message:Wr,remedy:Gr}))};return function(e){return e.kind!==`markdown`&&e.kind!==`text`?(0,j.jsx)(Kr,{request:e,cache:n,notifier:t,announce:i}):e.text===``?null:(0,j.jsx)(`div`,{className:`mx-chat-content`,"data-mx-chat-content":`markdown`,children:(0,j.jsx)(Ur,{text:e.text,cacheKey:e.messageId,cache:n})})}}function Jr(e){return!!(/[zZ]$/.test(e)||/[+-]\d{2}(:?\d{2})?$/.test(e)||/\b(GMT|UTC)\b/i.test(e))}function Yr(e){let t=e.trim();return!t||!/\d{1,2}:\d{2}/.test(t)||Jr(t)?t:`${t.replace(` `,`T`)}Z`}function Xr(e){if(e==null)return null;if(e instanceof Date)return Number.isNaN(e.getTime())?null:e;if(typeof e==`number`){let t=new Date(e);return Number.isNaN(t.getTime())?null:t}if(typeof e!=`string`)return null;let t=Yr(e);if(!t)return null;let n=new Date(t);return Number.isNaN(n.getTime())?null:n}var Zr={year:`numeric`,month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`};function Qr(e,t=Zr,n=`—`){let r=Xr(e);return r?r.toLocaleString(void 0,t):n}var $r=[{limit:6e4,divisor:1e3,short:`s`,long:`second`},{limit:36e5,divisor:6e4,short:`m`,long:`minute`},{limit:864e5,divisor:36e5,short:`h`,long:`hour`},{limit:6048e5,divisor:864e5,short:`d`,long:`day`},{limit:2592e6,divisor:6048e5,short:`w`,long:`week`},{limit:31536e6,divisor:2592e6,short:`mo`,long:`month`}],ei=[{unit:`year`,ms:31536e6},{unit:`month`,ms:2592e6},{unit:`week`,ms:6048e5},{unit:`day`,ms:864e5},{unit:`hour`,ms:36e5},{unit:`minute`,ms:6e4}];function ti(e,t={}){let n=t.style??`short`,r=t.suffix===!1,i=t.now??Date.now(),a=Xr(e);if(!a)return t.fallbackToInput===!0&&typeof e==`string`?e:t.fallback??`—`;if(n===`intl`){let e=a.getTime()-i,t=Math.abs(e);if(t<6e4)return`just now`;let n=new Intl.RelativeTimeFormat(void 0,{numeric:`auto`});for(let{unit:r,ms:i}of ei)if(t>=i)return n.format(Math.trunc(e/i),r);return`just now`}let o=i-a.getTime(),s=o<0;if(s&&-o<6e4)return`just now`;let c=Math.abs(o);for(let e of $r)if(c<e.limit){let t=Math.max(1,Math.floor(c/e.divisor)),i=n===`long`?`${t} ${e.long}${t===1?``:`s`}`:`${t}${e.short}`;return r?i:s?`in ${i}`:`${i} ago`}return(t.absolute??(r?`date`:`datetime`))===`date`?a.toLocaleDateString():Qr(a)}var ni=[`B`,`KB`,`MB`,`GB`,`TB`,`PB`];function ri(e,t={}){let n=t.fallback??`—`;if(e==null||!Number.isFinite(e)||e<0)return n;if(e<1024)return`${Math.round(e)} B`;let r=e,i=0;for(;r>=1024&&i<ni.length-1;)r/=1024,i+=1;return`${r>=10?String(Math.round(r)):r.toFixed(1)} ${ni[i]}`}function ii(e){return typeof e==`number`&&Number.isFinite(e)}function ai(e,t={}){let{digits:n=2,unknown:r=`—`}=t;if(!ii(e))return r;let i;if(n===`adaptive`||n===`trim`){let t=Math.abs(e);i=t===0||t>=1?2:t>=.01?4:6}else i=n;return`$${e.toLocaleString(`en-US`,{minimumFractionDigits:n===`trim`?Math.min(2,i):i,maximumFractionDigits:i})}`}var oi=[``,`k`,`M`,`B`,`T`];function si(e,t={}){let{unknown:n=`—`,style:r=`plain`,locale:i}=t;if(!ii(e))return n;if(r!==`compact`)return e.toLocaleString(i);let a=e<0?`-`:``,o=Math.abs(e);if(o<1e3)return`${a}${Math.round(o)}`;let s=0;for(;o>=1e3&&s<oi.length-1;)o/=1e3,s+=1;let c=o>=10?Math.round(o):Number(o.toFixed(1));return c>=1e3&&s<oi.length-1&&(o/=1e3,s+=1,c=o>=10?Math.round(o):Number(o.toFixed(1))),`${a}${o>=10?String(c):c.toFixed(1)}${oi[s]}`}var ci=`Attachments aren't set up here, so this file has not been sent.`,li="Give <ChatComposerProvider> a `files` port (your upload service) to attach files to a message.";function ui(e){let t=!1;return{available:!1,upload(){return t||(t=!0,e.notify({level:`warning`,message:ci,remedy:li})),Promise.reject(Error(ci))}}}function di(e,t){return`${e} is larger than the ${ri(t)} limit for this chat, so it has not been attached.`}function fi(e){return de(e)||`Working…`}function pi(e){let t=new Set;return{request(n){if(t.size===0)return e.notify({level:`warning`,message:`There is nowhere to put your message back, so it has not been restored for you.`,remedy:`Copy your message from the conversation above and send it again, or mount this transcript inside a chat that has a message box.`}),!1;for(let e of t)e(n);return!0},subscribe(e){return t.add(e),()=>{t.delete(e)}}}}var mi=(0,_.createContext)(null);function hi(e){let{thread:t,ports:n,slots:r,children:i}=e,[a]=(0,_.useState)(()=>{let e=D();return{notifier:e,prefs:k(e)}}),o=n?.notifier??a.notifier,s=(0,_.useRef)(null);(s.current===null||s.current.notifier!==o)&&(s.current={notifier:o,bus:pi(o),renderContent:qr({notifier:o}),files:ui(o)});let c=s.current.bus,l=s.current.renderContent,u=s.current.files,d=(0,_.useMemo)(()=>({thread:t,ports:{renderContent:n?.renderContent??l,notifier:o,prefs:n?.prefs??a.prefs,files:n?.files??u,voice:n?.voice??null,toolLabel:n?.toolLabel??fi,modelPicker:n?.modelPicker??null,quickset:n?.quickset??null},slots:r??{},retry:c}),[t,n?.renderContent,n?.prefs,n?.files,n?.voice,n?.toolLabel,n?.modelPicker,n?.quickset,o,r,c,l,u,a.prefs]),f=(0,_.useRef)(t);return(0,_.useEffect)(()=>{if(f.current===t)return;let e=f.current.getSnapshot().status;(e===`streaming`||e===`submitted`)&&o.notify({level:`warning`,message:`The previous answer was still arriving when this chat switched conversations.`,remedy:`Stop the answer before switching, or the run keeps going in the background.`}),f.current=t},[t,o]),(0,j.jsx)(mi.Provider,{value:d,children:i})}function gi(){let e=(0,_.useContext)(mi);if(e===null)throw Error(`[@ai-matrx/chat] This component must be rendered inside <ChatProvider thread={…}>. Wrap your chat surface in one, passing a thread from createChatThread() or createExternalThreadSource().`);return e}function _i(){let{thread:e}=gi(),t=(0,_.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot),n=(0,_.useCallback)((t,n)=>e.send(n===void 0?{text:t}:{text:t,fileIds:n}),[e]),r=(0,_.useCallback)(()=>e.cancel(),[e]);return(0,_.useMemo)(()=>({snapshot:t,messages:t.messages,status:t.status,isBusy:t.status===`submitted`||t.status===`streaming`,conversationId:t.conversationId,ephemeral:t.ephemeral,ephemeralReason:t.ephemeralReason,error:t.error,send:n,cancel:r}),[t,n,r])}function vi(e){let{thread:t}=gi(),n=(0,_.useCallback)(n=>t.subscribeToMessage(e,n),[t,e]),r=(0,_.useCallback)(()=>t.getMessageSnapshot(e),[t,e]);return(0,_.useSyncExternalStore)(n,r,r)}function yi(){return gi().thread.features}function bi(){return gi().ports}function xi(){return gi().slots}var Si=`ai-matrx.chat.draft.`;function Ci(){let{thread:e,ports:t,retry:n}=gi(),r=e.features,i=(0,_.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot),a=i.conversationId,o=i.status===`submitted`||i.status===`streaming`,s=`${Si}${a??`new`}`,[c,l]=(0,_.useState)(()=>r.retainDrafts?t.prefs.get(s)??``:``),[u,d]=(0,_.useState)(!1),f=(0,_.useRef)(s);(0,_.useEffect)(()=>{if(f.current===s)return;let e=f.current;if(f.current=s,!r.retainDrafts)return;let n=t.prefs.get(e);if(n!==null&&n!==``){t.prefs.set(s,n),t.prefs.remove(e),l(n);return}l(t.prefs.get(s)??``)},[s,r.retainDrafts,t.prefs]);let p=(0,_.useCallback)(e=>{l(e),d(!1),r.retainDrafts&&(e===``?t.prefs.remove(f.current):t.prefs.set(f.current,e))},[r.retainDrafts,t.prefs]);(0,_.useEffect)(()=>n.subscribe(e=>{l(e),d(!0),r.retainDrafts&&t.prefs.set(f.current,e)}),[n,r.retainDrafts,t.prefs]);let m=(0,_.useCallback)(async()=>{let n=c.trim();if(n===``||o&&!r.sendWhileBusy)return null;l(``),d(!1),r.retainDrafts&&t.prefs.remove(f.current);let i=await e.send({text:n});return i.accepted||(l(n),r.retainDrafts&&t.prefs.set(f.current,n)),i},[c,o,e,r.retainDrafts,r.sendWhileBusy,t.prefs]),h=(0,_.useCallback)(()=>e.cancel(),[e]),g=(0,_.useCallback)(t=>{if(t.key===`Escape`){if(!o)return;t.preventDefault(),e.cancel();return}if(t.key!==`Enter`)return;let n=t.metaKey||t.ctrlKey;(r.sendKey===`enter`?!t.shiftKey&&!n:n)&&(t.preventDefault(),m())},[r.sendKey,o,m,e]);return{text:c,setText:p,canSend:c.trim()!==``&&(!o||r.sendWhileBusy),isBusy:o,send:m,stop:h,onKeyDown:g,restoredFromFailure:u}}function wi(e,t){let n=e.findIndex(e=>e.id===t);if(n<=0)return``;for(let t=n-1;t>=0;--t){let n=e[t];if(n&&n.role===`user`)return C(n)}return``}function Ti(){return(0,j.jsx)(`svg`,{className:`mx-chat-chevron`,width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:(0,j.jsx)(`path`,{d:`M6 3.5 10.5 8 6 12.5`})})}function Ei(){return(0,j.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:(0,j.jsx)(`path`,{d:`M8 3v10M3.5 8.5 8 13l4.5-4.5`})})}var Di=Object.defineProperty,Oi=(e,t)=>Di(e,`name`,{value:t,configurable:!0}),ki=!!(typeof window<`u`&&window.document&&window.document.createElement);function V(e,t,{checkForDefaultPrevented:n=!0}={}){return Oi(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Oi(V,`composeEventHandlers`);function Ai(e){if(!ki)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Oi(Ai,`getOwnerWindow`);function ji(e){if(!ki)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Oi(ji,`getOwnerDocument`);function Mi(e,t=!1){let{activeElement:n}=ji(e);if(!n?.nodeName)return null;if(Ni(n)&&n.contentDocument)return Mi(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=ji(n).getElementById(e);if(t)return t}}return n}Oi(Mi,`getActiveElement`);function Ni(e){return e.tagName===`IFRAME`}Oi(Ni,`isFrame`);var Pi=Object.defineProperty,Fi=(e,t)=>Pi(e,`name`,{value:t,configurable:!0});function Ii(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Fi(Ii,`setRef`);function Li(...e){return t=>{let n=!1,r=e.map(e=>{let r=Ii(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Ii(e[t],null)}}}}Fi(Li,`composeRefs`);function H(...e){return _.useCallback(Li(...e),e)}Fi(H,`useComposedRefs`);var Ri=Object.defineProperty,zi=(e,t)=>Ri(e,`name`,{value:t,configurable:!0});function Bi(e,t){let n=_.createContext(t);n.displayName=e+`Context`;let r=zi(e=>{let{children:t,...r}=e,i=_.useMemo(()=>r,Object.values(r));return(0,j.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=_.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return zi(i,`useContext`),[r,i]}zi(Bi,`createContext`);function Vi(e,t=[]){let n=[];function r(t,r){let i=_.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=zi(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=_.useMemo(()=>o,Object.values(o));return(0,j.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=_.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return zi(s,`useContext`),[o,s]}zi(r,`createContext`);let i=zi(()=>{let t=n.map(e=>_.createContext(e));return zi(function(n){let r=n?.[e]||t;return _.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Hi(i,...t)]}zi(Vi,`createContextScope`);function Hi(...e){let t=e[0];if(e.length===1)return t;let n=zi(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return zi(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}zi(Hi,`composeContextScopes`);var Ui=Object.defineProperty,Wi=(e,t)=>Ui(e,`name`,{value:t,configurable:!0});function Gi(e){let t=_.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];ea(r)&&typeof ra==`function`&&(r=ra(r._payload)),_.Children.forEach(r,e=>{if(Qi(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;ea(n)&&typeof ra==`function`&&(n=ra(n._payload)),a=Yi(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=_.cloneElement(a,void 0,s):!o&&_.Children.count(r)===1&&_.isValidElement(r)&&(a=r);let c=a?Zi(a):void 0,l=H(n,c);if(!a){if(r||r===0)throw Error(o?na(e):U(e));return r}let u=Xi(i,a.props??{});return a.type!==_.Fragment&&(u.ref=n?l:c),_.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Wi(Gi,`createSlot`);var Ki=Gi(`Slot`),qi=Symbol.for(`radix.slottable`);function Ji(e){let t=Wi(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=qi,t}Wi(Ji,`createSlottable`);var Yi=Wi((e,t)=>{if(`child`in e.props){let t=e.props.child;return _.isValidElement(t)?_.cloneElement(t,void 0,e.props.children(t.props.children)):null}return _.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function Xi(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}Wi(Xi,`mergeProps`);function Zi(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Wi(Zi,`getElementRef`);function Qi(e){return _.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===qi}Wi(Qi,`isSlottable`);var $i=Symbol.for(`react.lazy`);function ea(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===$i&&`_payload`in e&&ta(e._payload)}Wi(ea,`isLazyComponent`);function ta(e){return typeof e==`object`&&!!e&&`then`in e}Wi(ta,`isPromiseLike`);var U=Wi(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),na=Wi(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),ra=_.use,ia=c(m(),1),aa=Object.defineProperty,oa=(e,t)=>aa(e,`name`,{value:t,configurable:!0}),W=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Gi(`Primitive.${t}`),r=_.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,j.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function sa(e,t){e&&ia.flushSync(()=>e.dispatchEvent(t))}oa(sa,`dispatchDiscreteCustomEvent`);var ca=Object.defineProperty,la=(e,t)=>ca(e,`name`,{value:t,configurable:!0});function ua(e){let t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>((...e)=>t.current?.(...e)),[])}la(ua,`useCallbackRef`);var da=Object.defineProperty,fa=(e,t)=>da(e,`name`,{value:t,configurable:!0}),pa=`dismissableLayer.update`,ma=`dismissableLayer.pointerDownOutside`,ha=`dismissableLayer.focusOutside`,ga,_a=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),va=_.forwardRef(fa(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=_.useContext(_a),[d,f]=_.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=_.useState({}),h=H(t,f),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v?g.indexOf(v):-1,b=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=_.useRef(!1),w=xa(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:_.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return S&&!t},[u.branches,S])}),T=Sa(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?b===g.length-1:!1,D=ua(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return _.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),_.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ga=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ca(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=ga))}},[d,p,n,u]),_.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ca())},[d,u]),_.useEffect(()=>{let e=fa(()=>m({}),`handleUpdate`);return document.addEventListener(pa,e),()=>document.removeEventListener(pa,e)},[]),(0,j.jsx)(W.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:V(e.onFocusCapture,T.onFocusCapture),onBlurCapture:V(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function ya(){let e=_.useContext(_a),[t,n]=_.useState(null);return _.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}fa(ya,`useDismissableLayerSurface`);var ba=fa(()=>!0,`IS_TRUE`);function xa(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=ba}=t,s=ua(e),c=_.useRef(!1),l=_.useRef(!1),u=_.useRef(new Map),d=_.useRef(()=>{});return _.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}fa(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}fa(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}fa(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}fa(p,`handleInteractionBubble`);let m=fa(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||wa(ma,s,p,{discrete:!0})};if(fa(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:fa(()=>c.current=!0,`onPointerDownCapture`)}}fa(xa,`usePointerDownOutside`);function Sa(e,t=globalThis?.document){let n=ua(e),r=_.useRef(!1);return _.useEffect(()=>{let e=fa(e=>{e.target&&!r.current&&wa(ha,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:fa(()=>r.current=!0,`onFocusCapture`),onBlurCapture:fa(()=>r.current=!1,`onBlurCapture`)}}fa(Sa,`useFocusOutside`);function Ca(){let e=new CustomEvent(pa);document.dispatchEvent(e)}fa(Ca,`dispatchUpdate`);function wa(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?sa(i,a):i.dispatchEvent(a)}fa(wa,`handleAndDispatchCustomEvent`);var Ta=globalThis?.document?_.useLayoutEffect:()=>{},Ea=Object.defineProperty,Da=(e,t)=>Ea(e,`name`,{value:t,configurable:!0}),Oa=_.useId||(()=>void 0),ka=0;function Aa(e){let[t,n]=_.useState(Oa());return Ta(()=>{e||n(e=>e??String(ka++))},[e]),e||(t?`radix-${t}`:``)}Da(Aa,`useId`);var ja=[`top`,`right`,`bottom`,`left`],Ma=Math.min,Na=Math.max,Pa=Math.round,Fa=Math.floor,Ia=e=>({x:e,y:e}),La={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ra(e,t,n){return Na(e,Ma(t,n))}function za(e,t){return typeof e==`function`?e(t):e}function Ba(e){return e.split(`-`)[0]}function Va(e){return e.split(`-`)[1]}function Ha(e){return e===`x`?`y`:`x`}function Ua(e){return e===`y`?`height`:`width`}function Wa(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ga(e){return Ha(Wa(e))}function Ka(e,t,n){n===void 0&&(n=!1);let r=Va(e),i=Ga(e),a=Ua(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=to(o)),[o,to(o)]}function qa(e){let t=to(e);return[Ja(e),t,Ja(t)]}function Ja(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ya=[`left`,`right`],Xa=[`right`,`left`],Za=[`top`,`bottom`],Qa=[`bottom`,`top`];function $a(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Xa:Ya:t?Ya:Xa;case`left`:case`right`:return t?Za:Qa;default:return[]}}function eo(e,t,n,r){let i=Va(e),a=$a(Ba(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ja)))),a}function to(e){let t=Ba(e);return La[t]+e.slice(t.length)}function no(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function ro(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:no(e)}function io(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ao(e,t,n){let{reference:r,floating:i}=e,a=Wa(t),o=Ga(t),s=Ua(o),c=Ba(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Va(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function oo(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=za(t,e),p=ro(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=io(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=io(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var so=50,co=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:oo},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ao(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<so&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ao(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},lo=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=za(e,t)||{};if(l==null)return{};let d=ro(u),f={x:n,y:r},p=Ga(i),m=Ua(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Ma(d[_],T),D=Ma(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Ra(E,k,O),j=!c.arrow&&Va(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),uo=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=za(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Ba(r),_=Wa(o),v=Ba(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[to(o)]:qa(o)),x=p!==`none`;!d&&x&&b.push(...eo(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ka(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Wa(t)||T.every(e=>Wa(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Wa(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function fo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function po(e){return ja.some(t=>e[t]>=0)}var mo=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=za(e,t);switch(i){case`referenceHidden`:{let e=fo(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:po(e)}}}case`escaped`:{let e=fo(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:po(e)}}}default:return{}}}}},ho=new Set([`left`,`top`]);async function go(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ba(n),s=Va(n),c=Wa(n)===`y`,l=ho.has(o)?-1:1,u=a&&c?-1:1,d=za(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var _o=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await go(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},vo=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=za(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Wa(i),p=Ha(f),m=u[p],h=u[f],g=(e,t)=>Ra(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},yo=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=za(e,t),u={x:n,y:r},d=Wa(i),f=Ha(d),p=u[f],m=u[d],h=za(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ho.has(Ba(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},bo=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=za(e,t),c=await i.detectOverflow(t,s),l=Ba(n),u=Va(n),d=Wa(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Ma(p-c[m],g),y=Ma(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Na(c.left,c.right):S=p-2*Na(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function xo(){return typeof window<`u`}function So(e){return To(e)?(e.nodeName||``).toLowerCase():`#document`}function Co(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wo(e){return((To(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function To(e){return xo()?e instanceof Node||e instanceof Co(e).Node:!1}function Eo(e){return xo()?e instanceof Element||e instanceof Co(e).Element:!1}function Do(e){return xo()?e instanceof HTMLElement||e instanceof Co(e).HTMLElement:!1}function Oo(e){return!xo()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Co(e).ShadowRoot}function ko(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ao(e){return/^(table|td|th)$/.test(So(e))}function jo(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Mo=/transform|translate|scale|rotate|perspective|filter/,No=/paint|layout|strict|content/,Po=e=>!!e&&e!==`none`,Fo;function Io(e){let t=Eo(e)?K(e):e;return Po(t.transform)||Po(t.translate)||Po(t.scale)||Po(t.rotate)||Po(t.perspective)||!Ro()&&(Po(t.backdropFilter)||Po(t.filter))||Mo.test(t.willChange||``)||No.test(t.contain||``)}function Lo(e){let t=Bo(e);for(;Do(t)&&!G(t);){if(Io(t))return t;if(jo(t))return null;t=Bo(t)}return null}function Ro(){return Fo??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Fo}function G(e){return/^(html|body|#document)$/.test(So(e))}function K(e){return Co(e).getComputedStyle(e)}function zo(e){return Eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bo(e){if(So(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Oo(e)&&e.host||wo(e);return Oo(t)?t.host:t}function Vo(e){let t=Bo(e);return G(t)?(e.ownerDocument||e).body:Do(t)&&ko(t)?t:Vo(t)}function Ho(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Vo(e),i=r===e.ownerDocument?.body,a=Co(r);if(i){let e=Uo(a);return t.concat(a,a.visualViewport||[],ko(r)?r:[],e&&n?Ho(e):[])}return t.concat(r,Ho(r,[],n))}function Uo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wo(e){let t=K(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Do(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Pa(n)!==a||Pa(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Go(e){return Eo(e)?e:e.contextElement}function Ko(e){let t=Go(e);if(!Do(t))return Ia(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Wo(t),o=(a?Pa(n.width):n.width)/r,s=(a?Pa(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var qo=Ia(0);function Jo(e){let t=Co(e);return!Ro()||!t.visualViewport?qo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Co(e)}function Xo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Go(e),o=Ia(1);t&&(r?Eo(r)&&(o=Ko(r)):o=Ko(e));let s=Yo(a,n,r)?Jo(a):Ia(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Co(a),t=Eo(r)?Co(r):r,n=e,i=Uo(n);for(;i&&t!==n;){let e=Ko(i),t=i.getBoundingClientRect(),r=K(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Co(i),i=Uo(n)}}return io({width:u,height:d,x:c,y:l})}function Zo(e,t){let n=zo(e).scrollLeft;return t?t.left+n:Xo(wo(e)).left+n}function Qo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Zo(e,n),y:n.top+t.scrollTop}}function $o(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=wo(r),s=t?jo(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ia(1),u=Ia(0),d=Do(r);if((d||!a)&&((So(r)!==`body`||ko(o))&&(c=zo(r)),d)){let e=Xo(r);l=Ko(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Qo(o,c):Ia(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function es(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ts(e){let t=zo(e),n=e.ownerDocument.body,r=Na(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Na(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Zo(e),o=-t.scrollTop;return K(n).direction===`rtl`&&(a+=Na(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var ns=25;function rs(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Co(e),a=wo(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Ro()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Zo(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=ns&&(s-=o)}return{width:s,height:c,x:l,y:u}}function is(e,t){let n=Xo(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ko(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function as(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=rs(e,n,t);else if(t===`document`)r=ts(wo(e));else if(Eo(t))r=is(t,n);else{let n=Jo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return io(r)}function os(e,t){let n=t.get(e);if(n)return n;let r=Ho(e,[],!1).filter(e=>Eo(e)&&So(e)!==`body`),i=null,a=K(e).position===`fixed`,o=a?Bo(e):e;for(;Eo(o)&&!G(o);){let e=K(o),t=Io(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Bo(o)}return t.set(e,r),r}function ss(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?jo(t)?[]:os(t,this._c):[].concat(n),r],o=as(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=as(t,a[e],i);s=Na(n.top,s),c=Ma(n.right,c),l=Ma(n.bottom,l),u=Na(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function cs(e){let{width:t,height:n}=Wo(e);return{width:t,height:n}}function ls(e,t,n){let r=Do(t),i=wo(t),a=n===`fixed`,o=Xo(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ia(0);if((r||!a)&&((So(t)!==`body`||ko(i))&&(s=zo(t)),r)){let e=Xo(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Zo(i));let l=i&&!r&&!a?Qo(i,s):Ia(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function us(e){return K(e).position===`static`}function ds(e,t){if(!Do(e)||K(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return wo(e)===n&&(n=n.ownerDocument.body),n}function fs(e,t){let n=Co(e);if(jo(e))return n;if(!Do(e)){let t=Bo(e);for(;t&&!G(t);){if(Eo(t)&&!us(t))return t;t=Bo(t)}return n}let r=ds(e,t);for(;r&&Ao(r)&&us(r);)r=ds(r,t);return r&&G(r)&&us(r)&&!Io(r)?n:r||Lo(e)||n}var ps=async function(e){let t=this.getOffsetParent||fs,n=this.getDimensions,r=await n(e.floating);return{reference:ls(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ms(e){return K(e).direction===`rtl`}var hs={convertOffsetParentRelativeRectToViewportRelativeRect:$o,getDocumentElement:wo,getClippingRect:ss,getOffsetParent:fs,getElementRects:ps,getClientRects:es,getDimensions:cs,getScale:Ko,isElement:Eo,isRTL:ms};function gs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _s(e,t,n){let r=null,i,a=wo(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Fa(d),h=Fa(a.clientWidth-(u+f)),g=Fa(a.clientHeight-(d+p)),_=Fa(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Na(0,Ma(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!gs(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Co(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function vs(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Go(e),u=i||a?[...l?Ho(l):[],...t?Ho(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?_s(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Xo(e):null;c&&g();function g(){let t=Xo(e);h&&!gs(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ys=_o,bs=vo,xs=uo,Ss=bo,Cs=mo,ws=lo,Ts=yo,Es=(e,t,n)=>{let r=new Map,i=n??{},a={...hs,...i.platform,_c:r};return co(e,t,{...i,platform:a})},Ds=typeof document<`u`?_.useLayoutEffect:function(){};function Os(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Os(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Os(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ks(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function As(e,t){let n=ks(e);return Math.round(t*n)/n}function js(e){let t=_.useRef(e);return Ds(()=>{t.current=e}),t}function Ms(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=_.useState(r);Os(f,r)||p(r);let[m,h]=_.useState(null),[g,v]=_.useState(null),y=_.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=_.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||m,S=o||g,C=_.useRef(null),w=_.useRef(null),T=_.useRef(u),E=c!=null,D=js(c),O=js(i),k=js(l),A=_.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Es(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Os(T.current,t)&&(T.current=t,ia.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Ds(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=_.useRef(!1);Ds(()=>(j.current=!0,()=>{j.current=!1}),[]),Ds(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=_.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=_.useMemo(()=>({reference:x,floating:S}),[x,S]),P=_.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=As(N.floating,u.x),r=As(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ks(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return _.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var Ns=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:ws({element:r.current,padding:i}).fn(n):r?ws({element:r,padding:i}).fn(n):{}}}},Ps=(e,t)=>{let n=ys(e);return{name:n.name,fn:n.fn,options:[e,t]}},Fs=(e,t)=>{let n=bs(e);return{name:n.name,fn:n.fn,options:[e,t]}},Is=(e,t)=>({fn:Ts(e).fn,options:[e,t]}),Ls=(e,t)=>{let n=xs(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rs=(e,t)=>{let n=Ss(e);return{name:n.name,fn:n.fn,options:[e,t]}},zs=(e,t)=>{let n=Cs(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bs=(e,t)=>{let n=Ns(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vs=Object.defineProperty,Hs=(e,t)=>Vs(e,`name`,{value:t,configurable:!0});function Us(e){let[t,n]=_.useState(void 0);return Ta(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}Hs(Us,`useSize`);var Ws=Object.defineProperty,Gs=(e,t)=>Ws(e,`name`,{value:t,configurable:!0}),Ks=`Popper`,[qs,Js]=Vi(Ks),[Ys,Xs]=qs(Ks),Zs=Gs(e=>{let{__scopePopper:t,children:n}=e,[r,i]=_.useState(null),[a,o]=_.useState(void 0);return(0,j.jsx)(Ys,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Qs=`PopperAnchor`,$s=_.forwardRef(Gs(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Xs(Qs,n),o=_.useRef(null),s=a.onAnchorChange,c=H(t,_.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=_.useRef(null);_.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&oc(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,j.jsx)(W.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),ec=`PopperContent`,[tc,nc]=qs(ec),rc=_.forwardRef(Gs(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=Xs(ec,n),[v,y]=_.useState(null),b=H(t,y),[x,S]=_.useState(null),C=Us(x),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],k=O.length>0,A={padding:D,boundary:O.filter(ic),altBoundary:k},{refs:M,floatingStyles:N,placement:P,isPositioned:F,middlewareData:I}=Ms({strategy:`fixed`,placement:E,whileElementsMounted:Gs((...e)=>vs(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[Ps({mainAxis:i+T,alignmentAxis:o}),c&&Fs({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Is():void 0,...A}),c&&Ls({...A}),Rs({...A,apply:Gs(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),x&&Bs({element:x,padding:s}),ac({arrowWidth:w,arrowHeight:T}),f&&zs({strategy:`referenceHidden`,...A,boundary:k?A.boundary:void 0})]}),L=g.setPlacementState;Ta(()=>(L(P),()=>{L(void 0)}),[P,L]);let[ee,te]=oc(P),ne=ua(m);Ta(()=>{F&&ne?.()},[F,ne]);let re=I.arrow?.x,ie=I.arrow?.y,ae=I.arrow?.centerOffset!==0,[oe,se]=_.useState();return Ta(()=>{v&&se(window.getComputedStyle(v).zIndex)},[v]),(0,j.jsx)(`div`,{ref:M.setFloating,"data-radix-popper-content-wrapper":``,style:{...N,transform:F?N.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:oe,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(` `),...I.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,j.jsx)(tc,{scope:n,placedSide:ee,placedAlign:te,onArrowChange:S,arrowX:re,arrowY:ie,shouldHideArrow:ae,children:(0,j.jsx)(W.div,{"data-side":ee,"data-align":te,...h,ref:b,style:{...h.style,animation:F?h.style?.animation:`none`}})})})},`PopperContent`));function ic(e){return e!==null}Gs(ic,`isNotNull`);var ac=Gs(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=oc(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function oc(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Gs(oc,`getSideAndAlignFromPlacement`);var sc=Zs,cc=$s,lc=rc,uc=Object.defineProperty,dc=_.forwardRef(((e,t)=>uc(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=_.useState(!1);Ta(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?ia.createPortal((0,j.jsx)(W.div,{...r,ref:t}),o):null},`Portal`)),fc=Object.defineProperty,pc=(e,t)=>fc(e,`name`,{value:t,configurable:!0});function mc(e,t){return _.useReducer((e,n)=>t[e][n]??e,e)}pc(mc,`useStateMachine`);var hc=pc(e=>{let{present:t,children:n}=e,r=gc(t),i=typeof n==`function`?n({present:r.isPresent}):_.Children.only(n),a=vc(r.ref,bc(i));return typeof n==`function`||r.isPresent?_.cloneElement(i,{ref:a}):null},`Presence`);function gc(e){let[t,n]=_.useState(),r=_.useRef(null),i=_.useRef(e),a=_.useRef(`none`),o=_.useRef(void 0),[s,c]=mc(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return _.useEffect(()=>{s===`mounted`?(a.current=o.current??yc(r.current),o.current=void 0):a.current=`none`},[s]),Ta(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=yc(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Ta(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=pc(a=>{let o=yc(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=pc(e=>{e.target===t&&(a.current=yc(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:_.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=yc(t)}else r.current=null;n(e)},[])}}pc(gc,`usePresence`);function _c(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}pc(_c,`setRef`);function vc(...e){let t=_.useRef(e);return t.current=e,_.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=_c(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():_c(n[e],null)}}},[])}pc(vc,`useStableComposedRefs`);function yc(e){return e?.animationName||`none`}pc(yc,`getAnimationName`);function bc(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}pc(bc,`getElementRef`);var xc=Object.defineProperty,Sc=(e,t)=>xc(e,`name`,{value:t,configurable:!0}),Cc=_.useEffectEvent,wc=_.useInsertionEffect;function Tc(e){if(typeof Cc==`function`)return Cc(e);let t=_.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof wc==`function`?wc(()=>{t.current=e}):Ta(()=>{t.current=e}),_.useMemo(()=>((...e)=>t.current?.(...e)),[])}Sc(Tc,`useEffectEvent`);var Ec=Object.defineProperty,Dc=(e,t)=>Ec(e,`name`,{value:t,configurable:!0}),Oc=_.useInsertionEffect||Ta;function kc({prop:e,defaultProp:t,onChange:n=Dc(()=>{},`onChange`),caller:r}){let[i,a,o]=Ac({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,_.useCallback(t=>{if(s){let n=jc(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Dc(kc,`useControllableState`);function Ac({defaultProp:e,onChange:t}){let[n,r]=_.useState(e),i=_.useRef(n),a=_.useRef(t);return Oc(()=>{a.current=t},[t]),_.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Dc(Ac,`useUncontrolledState`);function jc(e){return typeof e==`function`}Dc(jc,`isFunction`);var Mc=Symbol(`RADIX:SYNC_STATE`);function Nc(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Tc(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=_.useReducer((t,n)=>{if(n.type===Mc)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=_.useRef(p);_.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=_.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return _.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Mc,state:i})},[i,d.state,c]),[h,f]}Dc(Nc,`useControllableStateReducer`);var Pc=Object.defineProperty,Fc=(e,t)=>Pc(e,`name`,{value:t,configurable:!0}),Ic=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Lc=_.forwardRef(Fc(function(e,t){return(0,j.jsx)(W.span,{...e,ref:t,style:{...Ic,...e.style}})},`VisuallyHidden`)),Rc=Object.defineProperty,zc=(e,t)=>Rc(e,`name`,{value:t,configurable:!0}),[Bc,Vc]=Vi(`Tooltip`,[Js]),Hc=Js(),Uc=`TooltipProvider`,Wc=700,Gc=`tooltip.open`,[Kc,qc]=Bc(Uc),Jc=zc(e=>{let{__scopeTooltip:t,delayDuration:n=Wc,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=_.useRef(!0),s=_.useRef(!1),c=_.useRef(0);return _.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,j.jsx)(Kc,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:_.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:_.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:_.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),Yc=`Tooltip`,[Xc,Zc]=Bc(Yc),Qc=zc(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=qc(Yc,e.__scopeTooltip),l=Hc(t),[u,d]=_.useState(null),[f,p]=_.useState(void 0),m=Aa(),h=_.useRef(0),g=o??c.disableHoverableContent,v=s??c.delayDuration,y=_.useRef(!1),[b,x]=kc({prop:r,defaultProp:i??!1,onChange:zc(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Gc))):c.onClose(),a?.(e)},`onChange`),caller:Yc}),S=_.useMemo(()=>b?y.current?`delayed-open`:`instant-open`:`closed`,[b]),C=_.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,x(!0)},[x]),w=_.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),T=_.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,x(!0),h.current=0},v)},[v,x]);_.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let E=f??m;return(0,j.jsx)(sc,{...l,children:(0,j.jsx)(Xc,{scope:t,contentId:E,setContentId:p,open:b,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:_.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:_.useCallback(()=>{g?w():(window.clearTimeout(h.current),h.current=0)},[w,g]),onOpen:C,onClose:w,disableHoverableContent:g,children:n})})},`Tooltip`),$c=`TooltipTrigger`,el=_.forwardRef(zc(function(e,t){let{__scopeTooltip:n,...r}=e,i=Zc($c,n),a=qc($c,n),o=Hc(n),s=H(t,_.useRef(null),i.onTriggerChange),c=_.useRef(!1),l=_.useRef(!1),u=_.useCallback(()=>c.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,j.jsx)(cc,{asChild:!0,...o,children:(0,j.jsx)(W.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:V(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:V(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:V(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:V(e.onBlur,i.onClose),onClick:V(e.onClick,i.onClose)})})},`TooltipTrigger`)),tl=`TooltipPortal`,[nl,rl]=Bc(tl,{forceMount:void 0}),il=zc(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Zc(tl,t);return(0,j.jsx)(nl,{scope:t,forceMount:n,children:(0,j.jsx)(hc,{present:n||a.open,children:(0,j.jsx)(dc,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),al=`TooltipContent`,ol=_.forwardRef(zc(function(e,t){let n=rl(al,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Zc(al,e.__scopeTooltip);return(0,j.jsx)(hc,{present:r||o.open,children:o.disableHoverableContent?(0,j.jsx)(ll,{side:i,...a,ref:t}):(0,j.jsx)(sl,{side:i,...a,ref:t})})},`TooltipContent`)),sl=_.forwardRef(zc(function(e,t){let n=Zc(al,e.__scopeTooltip),r=qc(al,e.__scopeTooltip),i=_.useRef(null),a=H(t,i),[o,s]=_.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=_.useCallback(()=>{s(null),d(!1)},[d]),p=_.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=dl(r,ul(r,n.getBoundingClientRect())),a=fl(t.getBoundingClientRect()),o=ml([...i,...a]);s(o),d(!0)},[d]);return _.useEffect(()=>()=>f(),[f]),_.useEffect(()=>{if(c&&u){let e=zc(e=>p(e,u),`handleTriggerLeave`),t=zc(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),_.useEffect(()=>{if(o){let e=zc(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!pl(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,j.jsx)(ll,{...e,ref:a})},`TooltipContentHoverable`)),cl=Ji(`TooltipContent`),ll=_.forwardRef(zc(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=Zc(al,n),u=Hc(n),{onClose:d}=l;_.useEffect(()=>(document.addEventListener(Gc,d),()=>document.removeEventListener(Gc,d)),[d]),_.useEffect(()=>{if(l.trigger){let e=zc(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:f}=l;return Ta(()=>(f(a),()=>{f(void 0)}),[a,f]),(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,j.jsxs)(lc,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,j.jsx)(cl,{children:r}),i?(0,j.jsx)(Lc,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`));function ul(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}zc(ul,`getExitSideFromRect`);function dl(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}zc(dl,`getPaddedExitPoints`);function fl(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}zc(fl,`getPointsFromRect`);function pl(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}zc(pl,`isPointInPolygon`);function ml(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),hl(t)}zc(ml,`getHull`);function hl(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}zc(hl,`getHullPresorted`);var gl=Jc,_l=Qc,vl=el,yl=il,bl=ol;function xl(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=xl(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Sl(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xl(e))&&(r&&(r+=` `),r+=t);return r}var Cl=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},wl=(e,t)=>({classGroupId:e,validator:t}),Tl=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),El=`-`,Dl=[],Ol=`arbitrary..`,kl=e=>{let t=Ml(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return jl(e);let n=e.split(El);return Al(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Cl(i,t):t:i||Dl}return n[e]||Dl}}},Al=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Al(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(El):e.slice(t).join(El),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},jl=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ol+r:void 0})(),Ml=e=>{let{theme:t,classGroups:n}=e;return Nl(n,t)},Nl=(e,t)=>{let n=Tl();for(let r in e){let i=e[r];Pl(i,n,r,t)}return n},Pl=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Fl(i,t,n,r)}},Fl=(e,t,n,r)=>{if(typeof e==`string`){Il(e,t,n);return}if(typeof e==`function`){Ll(e,t,n,r);return}Rl(e,t,n,r)},Il=(e,t,n)=>{let r=e===``?t:zl(t,e);r.classGroupId=n},Ll=(e,t,n,r)=>{if(Bl(e)){Pl(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(wl(n,e))},Rl=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Pl(o,zl(t,a),n,r)}},zl=(e,t)=>{let n=e,r=t.split(El),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Tl(),n.nextPart.set(t,i)),n=i}return n},Bl=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Vl=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Hl=`!`,Ul=`:`,Wl=[],Gl=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Kl=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Ul){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Hl)?(c=s.slice(0,-1),l=!0):s.startsWith(Hl)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Gl(t,l,c,u)};if(t){let e=t+Ul,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Gl(Wl,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ql=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Jl=e=>({cache:Vl(e.cacheSize),parseClassName:Kl(e),sortModifiers:ql(e),postfixLookupClassGroupIds:Yl(e),...kl(e)}),Yl=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Xl=/\s+/,Zl=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Xl),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Hl:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Ql=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=$l(n))&&(i&&(i+=` `),i+=r);return i},$l=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=$l(e[r]))&&(n&&(n+=` `),n+=t);return n},eu=(e,...t)=>{let n,r,i,a,o=o=>(n=Jl(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Zl(e,n);return i(e,a),a};return a=o,(...e)=>a(Ql(...e))},tu=[],q=e=>{let t=t=>t[e]||tu;return t.isThemeGetter=!0,t.themeKey=e,t},nu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ru=/^\((?:(\w[\w-]*):)?(.+)\)$/i,iu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,au=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ou=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,su=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,cu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,uu=e=>iu.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),du=e=>!!e&&Number.isInteger(Number(e)),fu=e=>e.endsWith(`%`)&&J(e.slice(0,-1)),pu=e=>au.test(e),mu=()=>!0,hu=e=>ou.test(e)&&!su.test(e),gu=()=>!1,_u=e=>cu.test(e),vu=e=>lu.test(e),yu=e=>!Y(e)&&!X(e),bu=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),xu=e=>Iu(e,Bu,gu),Y=e=>nu.test(e),Su=e=>Iu(e,Vu,hu),Cu=e=>Iu(e,Hu,J),wu=e=>Iu(e,Wu,mu),Tu=e=>Iu(e,Uu,gu),Eu=e=>Iu(e,Ru,gu),Du=e=>Iu(e,zu,vu),Ou=e=>Iu(e,Gu,_u),X=e=>ru.test(e),ku=e=>Lu(e,Vu),Au=e=>Lu(e,Uu),ju=e=>Lu(e,Ru),Mu=e=>Lu(e,Bu),Nu=e=>Lu(e,zu),Pu=e=>Lu(e,Gu,!0),Fu=e=>Lu(e,Wu,!0),Iu=(e,t,n)=>{let r=nu.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Lu=(e,t,n=!1)=>{let r=ru.exec(e);return r?r[1]?t(r[1]):n:!1},Ru=e=>e===`position`||e===`percentage`,zu=e=>e===`image`||e===`url`,Bu=e=>e===`length`||e===`size`||e===`bg-size`,Vu=e=>e===`length`,Hu=e=>e===`number`,Uu=e=>e===`family-name`,Wu=e=>e===`number`||e===`weight`,Gu=e=>e===`shadow`,Ku=eu(()=>{let e=q(`color`),t=q(`font`),n=q(`text`),r=q(`font-weight`),i=q(`tracking`),a=q(`leading`),o=q(`breakpoint`),s=q(`container`),c=q(`spacing`),l=q(`radius`),u=q(`shadow`),d=q(`inset-shadow`),f=q(`text-shadow`),p=q(`drop-shadow`),m=q(`blur`),h=q(`perspective`),g=q(`aspect`),_=q(`ease`),v=q(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),X,Y],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[X,Y,c],T=()=>[uu,`full`,`auto`,...w()],E=()=>[du,`none`,`subgrid`,X,Y],D=()=>[`auto`,{span:[`full`,du,X,Y]},du,X,Y],O=()=>[du,`auto`,X,Y],k=()=>[`auto`,`min`,`max`,`fr`,X,Y],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[uu,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[s,uu,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[uu,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,X,Y],L=()=>[...b(),ju,Eu,{position:[X,Y]}],ee=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],te=()=>[`auto`,`cover`,`contain`,Mu,xu,{size:[X,Y]}],ne=()=>[fu,ku,Su],re=()=>[``,`none`,`full`,l,X,Y],ie=()=>[``,J,ku,Su],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],se=()=>[J,fu,ju,Eu],ce=()=>[``,`none`,m,X,Y],le=()=>[`none`,J,X,Y],ue=()=>[`none`,J,X,Y],R=()=>[J,X,Y],de=()=>[uu,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[pu],breakpoint:[pu],color:[mu],container:[pu],"drop-shadow":[pu],ease:[`in`,`out`,`in-out`],font:[yu],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[pu],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[pu],shadow:[pu],spacing:[`px`,J],text:[pu],"text-shadow":[pu],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,uu,Y,X,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,X,Y]}],"container-named":[bu],columns:[{columns:[J,`auto`,Y,X,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[du,`auto`,X,Y]}],basis:[{basis:[uu,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[J,uu,`auto`,`initial`,`none`,Y]}],grow:[{grow:[``,J,X,Y]}],shrink:[{shrink:[``,J,X,Y]}],order:[{order:[du,`first`,`last`,`none`,X,Y]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...N()]}],"font-size":[{text:[`base`,n,ku,Su]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Fu,wu]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,fu,Y]}],"font-family":[{font:[Au,Tu,t]}],"font-features":[{"font-features":[Y]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,X,Y]}],"line-clamp":[{"line-clamp":[J,`none`,X,Cu]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,X,Y]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,X,Y]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[J,`from-font`,`auto`,X,Su]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[J,`auto`,X,Y]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[du,X,Y]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,X,Y]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,X,Y]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:te()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},du,X,Y],radial:[``,X,Y],conic:[``,du,X,Y]},Nu,Du]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-bs":[{"border-bs":ie()}],"border-w-be":[{"border-be":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[J,X,Y]}],"outline-w":[{outline:[``,J,ku,Su]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`inner`,`none`,u,Pu,Ou]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,Pu,Ou]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ie()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[J,Su]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,Pu,Ou]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[J,X,Y]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[X,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,X,Y]}],filter:[{filter:[``,`none`,X,Y]}],blur:[{blur:ce()}],brightness:[{brightness:[J,X,Y]}],contrast:[{contrast:[J,X,Y]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Pu,Ou]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,J,X,Y]}],"hue-rotate":[{"hue-rotate":[J,X,Y]}],invert:[{invert:[``,J,X,Y]}],saturate:[{saturate:[J,X,Y]}],sepia:[{sepia:[``,J,X,Y]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,X,Y]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[J,X,Y]}],"backdrop-contrast":[{"backdrop-contrast":[J,X,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,J,X,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,X,Y]}],"backdrop-invert":[{"backdrop-invert":[``,J,X,Y]}],"backdrop-opacity":[{"backdrop-opacity":[J,X,Y]}],"backdrop-saturate":[{"backdrop-saturate":[J,X,Y]}],"backdrop-sepia":[{"backdrop-sepia":[``,J,X,Y]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,X,Y]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[J,`initial`,X,Y]}],ease:[{ease:[`linear`,`initial`,_,X,Y]}],delay:[{delay:[J,X,Y]}],animate:[{animate:[`none`,v,X,Y]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,X,Y]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:R()}],"skew-x":[{"skew-x":R()}],"skew-y":[{"skew-y":R()}],transform:[{transform:[X,Y,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":[`translate-none`],zoom:[{zoom:[du,X,Y]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,X,Y]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,X,Y]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[J,ku,Su,Cu]}],stroke:[{stroke:[`none`,...I()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Z(...e){return Ku(Sl(e))}var qu=`matrx-motion-overlay`,Ju=`matrx-motion-popper`,Yu={top:`matrx-motion-sheet-top`,bottom:`matrx-motion-sheet-bottom`,left:`matrx-motion-sheet-left`,right:`matrx-motion-sheet-right`,center:`matrx-motion-sheet-center`},Q=`matrx-spin`;[...Object.values(Yu)];var Xu=Symbol.for(`ai-matrx.design-system.portal-container-context`),Zu=globalThis,Qu=Zu[Xu]??=_.createContext(void 0);function $u({container:e,children:t}){return(0,j.jsx)(Qu.Provider,{value:e??void 0,children:t})}function ed(e){let t=_.useContext(Qu);return e===void 0?t??void 0:e??void 0}var td=`data-matrx-title`,nd=`data-matrx-tooltip-trigger`,rd=350,id=500,ad=6,od=8,sd=`matrx-tooltip matrx-title-tooltip matrx-motion-popper z-[10001] rounded-md border border-border bg-popover px-2.5 py-1 text-xs font-medium text-popover-foreground`,cd=Symbol.for(`@ai-matrx/design-system/title-tooltips`),ld={get:e=>e[cd],set:(e,t)=>{e[cd]=t},delete:e=>{delete e[cd]}};function ud(e=typeof document>`u`?void 0:document){if(!e)return()=>{};let t=ld.get(e);t?t.count+=1:ld.set(e,{count:1,uninstall:dd(e)});let n=!1;return()=>{if(n)return;n=!0;let t=ld.get(e);t&&(--t.count,t.count<=0&&(t.uninstall(),ld.delete(e)))}}function dd(e){let t=e.defaultView,n=null,r=null,i,a=0,o=t?.HTMLElement,s=e=>{if(!o||!(e instanceof t.Node))return null;let n=e instanceof o?e:e.parentElement;if(!n)return null;let r=n.closest(`[title], [${td}]`);return!r||!(r instanceof o)||r.closest(`[data-native-title]`)?null:r},c=e=>(e.getAttribute(`data-matrx-title`)??e.getAttribute(`title`)??``).trim(),l=e=>{let t=e.getAttribute(`title`);t!==null&&(e.setAttribute(td,t),e.removeAttribute(`title`))},u=e=>{let t=e.getAttribute(td);t!==null&&(e.hasAttribute(`title`)||e.setAttribute(`title`,t),e.removeAttribute(td))},d=()=>r&&r.isConnected?r:(r=e.createElement(`div`),r.setAttribute(`role`,`tooltip`),r.setAttribute(`data-slot`,`title-tooltip`),r.className=sd,r.style.visibility=`hidden`,e.body.appendChild(r),r),f=e=>{let t=e.closest(`[data-title-side]`)?.getAttribute(`data-title-side`);return t===`bottom`||t===`left`||t===`right`?t:`top`},p=(e,n)=>{let r=t?.innerWidth??0,i=t?.innerHeight??0,a=e.getBoundingClientRect(),o=n.getBoundingClientRect(),s={top:a.top-ad-o.height>=od,bottom:a.bottom+ad+o.height<=i-od,left:a.left-ad-o.width>=od,right:a.right+ad+o.width<=r-od},c={top:`bottom`,bottom:`top`,left:`right`,right:`left`},l=f(e),u=s[l]?l:s[c[l]]?c[l]:l,d,p;u===`top`||u===`bottom`?(d=a.left+a.width/2-o.width/2,p=u===`top`?a.top-ad-o.height:a.bottom+ad):(p=a.top+a.height/2-o.height/2,d=u===`left`?a.left-ad-o.width:a.right+ad),d=Math.min(Math.max(d,od),Math.max(od,r-od-o.width)),p=Math.min(Math.max(p,od),Math.max(od,i-od-o.height)),n.style.transform=`translate(${Math.round(d)}px, ${Math.round(p)}px)`,n.setAttribute(`data-side`,u)},m=(e,n)=>{let r=e.getBoundingClientRect();if(r.width<=0||r.height<=0)return!1;for(let r=e;r;r=r===n?null:r.parentElement){let e=t?.getComputedStyle(r);if(!e||e.display===`none`||e.visibility===`hidden`||Number(e.opacity)===0)return!1}return!0},h=(n,r)=>{let i=e=>e.replace(/\s+/g,` `).trim().toLowerCase(),a=i(r);if(!a||!t)return!1;let o=e.createTreeWalker(n,t.NodeFilter.SHOW_TEXT);for(let e=o.nextNode();e;e=o.nextNode()){if(i(e.textContent??``)!==a)continue;let t=e.parentElement;if(t&&m(t,n)&&!(t.scrollWidth>t.clientWidth+1))return!0}return!1},g=(e,t)=>{if(n!==e||e.closest(`[data-matrx-tooltip-trigger]`))return;let r=c(e);if(!r||!e.isConnected||h(e,r))return;let i=d();i.textContent=r,i.style.visibility=`hidden`,i.setAttribute(`data-state`,t?`instant-open`:`delayed-open`),p(e,i),i.style.visibility=`visible`,e.id&&(i.id=`${e.id}-title-tooltip`)},_=()=>{i!==void 0&&clearTimeout(i),i=void 0,r&&r.style.visibility===`visible`&&(a=Date.now()),r&&(r.style.visibility=`hidden`,r.removeAttribute(`data-state`))},v=e=>{n!==e&&(y(),n=e,l(e),Date.now()-a<id?g(e,!0):i=setTimeout(()=>g(e,!1),rd))},y=()=>{_(),n&&u(n),n=null},b=e=>{if(e.pointerType===`touch`)return;let t=s(e.target);t?v(t):n&&y()},x=e=>{if(!n)return;let r=e.relatedTarget;r instanceof t.Node&&n.contains(r)||y()},S=e=>{let t=s(e.target);if(!t)return;let n=!0;try{n=e.target.matches(`:focus-visible`)}catch{n=!0}n&&v(t)},C=e=>{if(!n)return;let r=e.relatedTarget;r instanceof t.Node&&n.contains(r)||y()},w=()=>y(),T=e=>{e.key===`Escape`&&y()};return e.addEventListener(`pointerover`,b,!0),e.addEventListener(`pointerout`,x,!0),e.addEventListener(`focusin`,S,!0),e.addEventListener(`focusout`,C,!0),e.addEventListener(`pointerdown`,w,!0),e.addEventListener(`keydown`,T,!0),e.addEventListener(`scroll`,w,!0),t?.addEventListener(`blur`,w),()=>{y(),e.removeEventListener(`pointerover`,b,!0),e.removeEventListener(`pointerout`,x,!0),e.removeEventListener(`focusin`,S,!0),e.removeEventListener(`focusout`,C,!0),e.removeEventListener(`pointerdown`,w,!0),e.removeEventListener(`keydown`,T,!0),e.removeEventListener(`scroll`,w,!0),t?.removeEventListener(`blur`,w),r?.remove(),r=null}}function fd({titleTooltips:e=!0,...t}){return _.useEffect(()=>{if(e)return ud()},[e]),(0,j.jsx)(gl,{...t})}var pd=_l,md=_.forwardRef((e,t)=>(0,j.jsx)(vl,{ref:t,[nd]:``,...e}));md.displayName=vl.displayName;var hd=_.forwardRef(({className:e,sideOffset:t=4,container:n,animated:r=!0,...i},a)=>{let o=ed(n);return(0,j.jsx)(yl,{container:o??null,children:(0,j.jsx)(bl,{ref:a,"data-slot":`tooltip-content`,sideOffset:t,className:Z(`matrx-tooltip z-[10001] overflow-hidden rounded-md border border-border bg-popover px-2.5 py-1 text-xs font-medium text-popover-foreground`,r&&`matrx-motion-popper`,e),...i})})});hd.displayName=bl.displayName;function gd(...e){return e.filter(Boolean).join(` `).trim()}function _d(e){for(let t=e;t;t=t.parentElement){let e=t.offsetWidth;if(!e)continue;let n=t.getBoundingClientRect().width;if(!(n>0))continue;let r=n/e;return!Number.isFinite(r)||r<=0||Math.abs(r-1)<.02?1:r}return 1}var vd=Symbol.for(`@ai-matrx/tap-target:guard`);function yd(){return globalThis[vd]===!0}var bd=[`--matrx-tap-box`,`--matrx-tap-gap`,`--matrx-tap-pill-size`,`--matrx-tap-pill-sm-size`,`--matrx-tap-wide-size`,`--matrx-tap-icon-size`,`--matrx-tap-touch-min`,`--matrx-tap-target-size`],xd=[{scope:`[data-matrx-table][data-matrx-table-density]`,tokens:new Set([`--matrx-tap-target-size`,`--matrx-tap-pill-size`,`--matrx-tap-wide-size`,`--matrx-tap-pill-sm-size`,`--matrx-tap-icon-size`])},{scope:`[data-alchemy-trigger]`,tokens:new Set([`--matrx-tap-icon-size`])},{scope:`[data-matrx-controls]`,tokens:new Set([`--matrx-tap-target-size`,`--matrx-tap-pill-size`,`--matrx-tap-wide-size`,`--matrx-tap-pill-sm-size`])}],Sd=xd[0].scope,Cd=xd[2].scope,wd=`.matrx-tap-target, .matrx-tap-group`,Td=/^(?:[^\s:]+:)*!?-?(?:\[&|scale|translate|h|w|size|min-h|min-w|max-h|max-w|p|px|py|ps|pe|pt|pb|pl|pr|m|mx|my|ms|me|mt|mb|ml|mr|gap|space-x|space-y|bg|rounded|border|ring|shadow|absolute|relative|fixed|sticky|inset|top|left|right|bottom|flex|grid|block|inline|hidden|z|shrink|grow|basis|self|order)(?:-|$|\[)/;function Ed(e){if(!yd()||!e)return null;let t=e.split(/\s+/).filter(e=>e&&Td.test(e));return t.length?`className is the glyph colour only — remove "${t.join(` `)}"`:null}function Dd(e){let t=Number.parseFloat(e);return Number.isFinite(t)?t:0}function Od(e){let t=typeof e.className==`string`?e.className.trim().split(/\s+/).slice(0,4).join(`.`):``;return`<${e.tagName.toLowerCase()}${t?`.${t}`:``}>`}function kd(e,t){let n=t.getComputedStyle(e);return n.position===`absolute`||n.position===`fixed`||n.display===`none`}function Ad(e){return e.matches(wd)?1:e.querySelectorAll(wd).length}function jd(e,t,n){let r=``,i=e=>{e!==t&&(e.nodeType===3?r+=e.textContent??``:e.nodeType===1&&!kd(e,n)&&e.childNodes.forEach(i))};return e.childNodes.forEach(i),r.trim()}function Md(e,t){if(e.matches(wd))return!0;if(Ad(e)!==1)return!1;let n=e.querySelector(wd);return!Array.from(e.querySelectorAll(`input, select, textarea, button, a, [role='button']`)).some(e=>e!==n&&!n.contains(e))&&jd(e,n,t)===``}var Nd=null;function Pd(e){let t=e.defaultView,n=t.getComputedStyle(e.documentElement),r=bd.map(e=>n.getPropertyValue(e)).join(`|`);if(Nd?.key===r)return Nd;let i=e.createElement(`div`);i.setAttribute(`aria-hidden`,`true`),i.style.cssText=`position:absolute;visibility:hidden;pointer-events:none;left:-9999px;top:0`,i.innerHTML=`<button class="matrx-tap-target"><div class="matrx-tap-pill"><svg class="matrx-tap-icon"></svg></div></button><button class="matrx-tap-target matrx-tap-target-sm"><div class="matrx-tap-pill matrx-tap-pill-sm"></div></button><button class="matrx-tap-target matrx-tap-target-inline"><div class="matrx-tap-pill matrx-tap-pill-inline"></div></button>`,e.body.appendChild(i);let[a,o,s]=Array.from(i.children);return Nd={key:r,target:a.offsetHeight,pill:a.firstElementChild.offsetHeight,icon:Dd(t.getComputedStyle(a.querySelector(`svg`)).height),sm:o.offsetHeight,smPill:o.firstElementChild.offsetHeight,wide:s.firstElementChild.offsetHeight},i.remove(),Nd}function Fd(e){let t=e.ownerDocument,n=t.defaultView;if(!n||!e.isConnected)return null;let r=n.getComputedStyle(e);if(r.display===`none`)return null;let i=n.getComputedStyle(t.documentElement),a=e.closest(Sd)!==null||e.closest(Cd)!==null,o=new Set;for(let t of bd){let n=r.getPropertyValue(t).trim();if(n!==i.getPropertyValue(t).trim()){if(!xd.some(n=>n.tokens.has(t)&&e.closest(n.scope)))return`${t} overridden to "${n}" — tap geometry is not configurable`;o.add(t)}}let s=e.classList.contains(`matrx-tap-target-sm`),c=/matrx-tap-target-(?:inline|mobile-icon-only)/.test(e.className),l=e.querySelector(`:scope > .matrx-tap-pill`),u=l?.querySelector(`.matrx-tap-icon`)??null,d=Dd(r.minHeight)>=e.offsetHeight-.5||Dd(r.minWidth)>=e.offsetWidth-.5;if(!a&&l&&!d){let r=Pd(t),i=s?r.sm:r.target,a=s?[r.smPill]:c?[r.pill,r.wide]:[r.pill];if(Math.abs(e.offsetHeight-i)>.5)return`button is ${e.offsetHeight}px tall, canon is ${i}px`;if(!c&&Math.abs(e.offsetWidth-i)>.5)return`button is ${e.offsetWidth}px wide, canon is ${i}px`;if(!a.some(e=>Math.abs(l.offsetHeight-e)<=.5))return`pill is ${l.offsetHeight}px, canon is ${a.join(` or `)}px`;if(u&&!o.has(`--matrx-tap-icon-size`)){let e=Dd(n.getComputedStyle(u).height);if(Math.abs(e-r.icon)>.5)return`glyph is ${e}px, canon is ${r.icon}px`}}let f=e;if(e.parentElement?.matches(`.matrx-tap-group-row, .matrx-tap-search-measure`)){let t=e.closest(`.matrx-tap-group`);if(t&&Ad(e.parentElement)>1)return null;f=t??e}for(let e=0;e<2;e+=1){let e=f.parentElement;if(!e||e===t.body||Array.from(e.children).filter(e=>e!==f&&!kd(e,n)).length>0||jd(e,f,n)!==``)break;let r=n.getComputedStyle(e),i=Dd(r.marginLeft)+Dd(r.marginRight)+Dd(r.paddingLeft)+Dd(r.paddingRight);if(i>.5)return`${Od(e)} adds ${i}px around a tap button — tap buttons space themselves`;f=e}let p=f.parentElement;if(p){let e=n.getComputedStyle(p),t=/flex|grid/.test(e.display),r=Array.from(p.children).filter(e=>e!==f&&Md(e,n));if(t&&r.length>0){let t=Dd(e.display.includes(`grid`)||!e.flexDirection.startsWith(`column`)?e.columnGap:e.rowGap);if(t>.5)return`${Od(p)} adds a ${t}px gap between tap buttons — remove it; tap buttons space themselves`}}return null}var Id=`.matrx-glass-thin-border, .matrx-glass-interactive`;function Ld(e){if(e.hasAttribute(`data-matrx-glass`))return!0;if(e.matches(`.matrx-tap-group`))return e.querySelector(`:scope > .matrx-tap-group-capsule.matrx-glass-thin-border`)!==null;if(e.matches(`.matrx-tap-target`))return e.querySelector(`:scope > .matrx-tap-pill:is(${Id})`)!==null;let t=e.ownerDocument.defaultView;return t&&Md(e,t)?Ld(e.querySelector(wd)):!1}var Rd=/^(auto|scroll|overlay)$/;function zd(e,t){for(let n=e;n&&n!==e.ownerDocument.body;n=n.parentElement){if(n.hasAttribute(`data-matrx-glass-plane`))return!0;let r=t.getComputedStyle(n);if(r.position===`fixed`||r.position===`sticky`)return!0;if(n!==e&&(Rd.test(r.overflowY)||Rd.test(r.overflowX)))return!1}return!1}function Bd(e,t){if(e.getAttribute(`aria-hidden`)===`true`||kd(e,t))return!1;let n=e.getBoundingClientRect();return n.width>1&&n.height>1}function Vd(e){let t=e.ownerDocument.defaultView;if(!t||!e.isConnected)return null;let n=e.closest(`.matrx-tap-group`)??e,r=Ld(n);if(r&&!zd(n,t))return`glass on a solid surface — glass only floats over moving content; use variant="transparent" (or a solid group)`;let i=n.parentElement;if(!i)return null;if(r){let e=Array.from(i.children).find(e=>e!==n&&Bd(e,t)&&!Ld(e));if(e)return`glass beside non-glass ${Od(e)} — make the row all glass or none`}let a=e.querySelector(`:scope > .matrx-tap-pill`)??n.querySelector(`.matrx-tap-group-capsule`);if(!a)return null;let o=Dd(t.getComputedStyle(e).getPropertyValue(`--matrx-tap-gap`))||6,s=a.getBoundingClientRect();if(s.width===0)return null;let c=_d(a);for(let[e,r]of[[`after`,n.nextElementSibling],[`before`,n.previousElementSibling]]){if(!r||!Bd(r,t)||Md(r,t)||Ld(r))continue;let n=r.getBoundingClientRect();if(Math.abs(n.top+n.height/2-(s.top+s.height/2))>s.height)continue;let i=t.getComputedStyle(r),a=(e===`after`?n.left-s.right:s.left-n.right)/c+Dd(e===`after`?i.paddingLeft:i.paddingRight);if(a<o-.5)return`${Od(r)} sits ${Math.round(a)}px from the pill — anything beside a tap button adds its own ${o/2}px (the box only carries ${o/2}px)`}return null}var Hd=new Set;function Ud(e,t){e.setAttribute(`data-matrx-tap-violation`,t);let n=`${t}@${e.getAttribute(`aria-label`)??e.textContent??``}`;Hd.has(n)||(Hd.add(n),console.error(`[tap-target] ${t}`,e))}var Wd=new Set,Gd=null,Kd=!1;function qd(e){let t=Fd(e);if(t){Ud(e,t);return}e.removeAttribute(`data-matrx-tap-violation`);let n=Vd(e);if(n){e.setAttribute(`data-matrx-tap-warning`,n);let t=`w:${n}@${e.getAttribute(`aria-label`)??``}`;Hd.has(t)||(Hd.add(t),console.error(`[tap-target] ${n}`,e))}else e.removeAttribute(`data-matrx-tap-warning`)}function Jd(e){Kd||(Kd=!0,e.addEventListener(`resize`,()=>{Gd&&clearTimeout(Gd),Gd=setTimeout(()=>Wd.forEach(e=>e.isConnected?qd(e):Wd.delete(e)),200)}))}function Yd(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Xd(e,t){let n=(0,_.useRef)(null);return(0,_.useCallback)(r=>{if(Yd(e,r),n.current&&n.current!==r&&Wd.delete(n.current),n.current=r,!yd()||!r)return;if(t){Ud(r,t);return}let i=r.ownerDocument.defaultView;i&&(Wd.add(r),Jd(i),i.requestAnimationFrame(()=>qd(r)))},[e,t])}var Zd={default:`text-foreground`,muted:`text-muted-foreground group-hover/tap:text-foreground`,primary:`text-primary`,destructive:`text-destructive`,success:`text-success`,warning:`text-warning`,info:`text-info`},Qd={primary:{fill:`bg-primary group-hover/tap:bg-primary/85`,glyph:`text-primary-foreground`},destructive:{fill:`bg-destructive group-hover/tap:bg-destructive/85`,glyph:`text-destructive-foreground`},success:{fill:`bg-success group-hover/tap:bg-success/85`,glyph:`text-success-foreground`},warning:{fill:`bg-warning group-hover/tap:bg-warning/85`,glyph:`text-warning-foreground`},neutral:{fill:`bg-foreground group-hover/tap:bg-foreground/85`,glyph:`text-background`}},$d=typeof navigator<`u`&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent);function ef(e){let t=e.toLowerCase().split(`+`),n=t.pop()??``;return{mod:t.includes(`mod`),shift:t.includes(`shift`),alt:t.includes(`alt`),key:n}}function tf(e){let t=ef(e),n=t.key.length===1?t.key.toUpperCase():t.key[0].toUpperCase()+t.key.slice(1);return $d?`${t.alt?`⌥`:``}${t.shift?`⇧`:``}${t.mod?`⌘`:``}${n}`:[t.mod&&`Ctrl`,t.alt&&`Alt`,t.shift&&`Shift`,n].filter(Boolean).join(`+`)}function nf(e){let t=e;return!!t&&(t.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName))}function rf(e,t){let n=ef(t);return(e.metaKey||e.ctrlKey)!==n.mod||e.altKey!==n.alt||/^[a-z0-9]$|^[a-z]{2,}$/.test(n.key)&&e.shiftKey!==n.shift||!n.mod&&nf(e.target)?!1:e.key.toLowerCase()===n.key}function af(e,t,n){(0,_.useEffect)(()=>{if(!e||!n)return;let r=n=>{if(!rf(n,e))return;let r=t();r&&r.isConnected&&(n.preventDefault(),r.click())};return window.addEventListener(`keydown`,r),()=>window.removeEventListener(`keydown`,r)},[e,n,t])}function of({badge:e}){return e===`dot`?(0,j.jsx)(`span`,{"aria-hidden":`true`,className:`matrx-tap-badge`,"data-dot":``}):e<=0?null:(0,j.jsx)(`span`,{"aria-hidden":`true`,className:`matrx-tap-badge`,children:e>99?`99+`:e})}function sf({className:e}){return(0,j.jsx)(`svg`,{className:e,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:2,"aria-hidden":`true`,children:(0,j.jsx)(`circle`,{className:Q,cx:`12`,cy:`12`,r:`9`,strokeDasharray:`28.27`,strokeDashoffset:`9`,strokeLinecap:`round`,style:{transformOrigin:`12px 12px`}})})}function cf(){return(0,j.jsx)(`svg`,{className:`matrx-tap-chevron`,"aria-hidden":`true`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,j.jsx)(`path`,{d:`m6 9 6 6 6-6`})})}function lf(e,t){return t?(0,j.jsxs)(`span`,{className:`matrx-tap-tooltip`,children:[e,(0,j.jsx)(`kbd`,{className:`matrx-tap-kbd`,children:tf(t)})]}):e}var uf=Symbol.for(`@ai-matrx/tap-target:link-component`);function df(){return globalThis[uf]??null}var ff=/^(https?:|mailto:|tel:)/i,pf=`matrx-tap-target group group/tap`,mf=`matrx-tap-target matrx-tap-target-sm group group/tap`;function hf({icon:e,children:t,strokeWidth:n=2,className:r}){return e?(0,_.isValidElement)(e)?(0,_.cloneElement)(e,{className:gd(r,e.props.className)}):(0,j.jsx)(`span`,{className:r,children:e}):(0,j.jsx)(`svg`,{className:r,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:n,strokeLinecap:`round`,strokeLinejoin:`round`,children:t})}function gf(e,t,n){let r=!!e;return t===`sm`?{outerClassName:r&&n?`matrx-tap-target matrx-tap-target-sm matrx-tap-target-mobile-icon-only-sm group group/tap`:r?`matrx-tap-target matrx-tap-target-sm matrx-tap-target-inline-sm group group/tap`:mf,inlineModifier:n?`matrx-tap-pill-mobile-icon-only-sm`:`matrx-tap-pill-inline-sm`}:{outerClassName:r&&n?`${pf} matrx-tap-target-mobile-icon-only`:r?`${pf} matrx-tap-target-inline`:pf,inlineModifier:n?`matrx-tap-pill-mobile-icon-only`:`matrx-tap-pill-inline`}}function _f({label:e,pillClassName:t,iconClassName:n,labelClassName:r,inlineModifier:i,icon:a,children:o,strokeWidth:s=2,loading:c,chevron:l}){let u=c?(0,j.jsx)(sf,{className:n}):(0,j.jsx)(hf,{icon:a,strokeWidth:s,className:n,children:o}),d=e?`${t} ${i}`.trim():t;return e?(0,j.jsxs)(`div`,{className:d,children:[u,(0,j.jsx)(`span`,{className:r??`matrx-tap-label`,children:e}),l?(0,j.jsx)(cf,{}):null]}):(0,j.jsx)(`div`,{className:d,children:u})}function vf({size:e=`default`,colorClassName:t,pillClassName:n,iconClassName:r,labelClassName:i,icon:a,children:o,strokeWidth:s,label:c,mobileIconOnly:l=!1,onClick:u,as:d,htmlFor:f,ariaLabel:p,disabled:m,href:h,target:g,rel:v,prefetch:y,linkComponent:b,tooltip:x,tooltipSide:S,tooltipAlign:C,rest:w,buttonRef:T}){let{tone:E,badge:D,pressed:O,loading:k,disabledReason:A,shortcut:M,chevron:N,...P}=w??{},F=!!(m||A),I=A||(typeof x==`string`&&x?x:void 0)||p||c,L=x===!1,ee=Xd(T,(I?null:`every tap button needs a tooltip — pass ariaLabel`)??Ed(t??P.className)??(P.style?`style is not supported on a tap button`:null)),te=(0,_.useRef)(null),ne=(0,_.useCallback)(e=>{te.current=e,ee(e)},[ee]);af(M,(0,_.useCallback)(()=>te.current,[]),!F&&!k);let re=E?Zd[E]:O&&!t?Zd.primary:null;re&&(r=`matrx-tap-icon ${re}`,i=`matrx-tap-label ${re}`),O&&(n=`${n} matrx-tap-pressed`);let{outerClassName:ie,inlineModifier:ae}=gf(c,e,l),oe=l?`${i??`matrx-tap-label`} matrx-tap-label-mobile-icon-only`:i,se=_f({label:c,pillClassName:n,iconClassName:r,labelClassName:oe,inlineModifier:c?ae:``,icon:a,children:o,strokeWidth:s,loading:k,chevron:N}),ce=yf({href:h,target:g,rel:v,prefetch:y,linkComponent:b,as:d,htmlFor:f,onClick:k?void 0:u,ariaLabel:c&&!l?void 0:p??c,disabled:F,outerClassName:ie,title:L&&I?M?`${I} (${tf(M)})`:I:void 0,children:(0,j.jsxs)(j.Fragment,{children:[se,D===void 0?null:(0,j.jsx)(of,{badge:D})]}),rest:{...P,...O===void 0?{}:{"aria-pressed":O},...k?{"aria-busy":!0}:{},...M?{"aria-keyshortcuts":M.replace(/mod/i,`Meta`)}:{}},triggerRef:ne});return L||!I?ce:bf(ce,{tooltip:I,ariaLabel:I,disabled:F,tooltipSide:S,tooltipAlign:C,shortcut:M})}function yf({href:e,target:t,rel:n,prefetch:r,linkComponent:i,as:a,htmlFor:o,onClick:s,ariaLabel:c,disabled:l,outerClassName:u,children:d,rest:f,triggerRef:p,title:m}){let{style:h,...g}=f??{};if(l&&e)return(0,j.jsx)(`span`,{ref:p,"aria-disabled":`true`,"aria-label":c,title:m,className:`${u} opacity-40`,children:d});if(e){if(ff.test(e))return(0,j.jsx)(`a`,{ref:p,href:e,target:t??`_blank`,rel:n??`noopener noreferrer`,"aria-label":c,title:m,className:u,children:d});let a=i??df();return a?(0,j.jsx)(a,{ref:p,href:e,target:t,rel:n,prefetch:r,"aria-label":c,title:m,className:u,children:d}):(0,j.jsx)(`a`,{ref:p,href:e,target:t,rel:n,"aria-label":c,title:m,className:u,children:d})}return a===`label`?(0,j.jsx)(`label`,{ref:p,htmlFor:o,"aria-label":c,title:m,className:u,children:d}):(0,j.jsx)(`button`,{ref:p,type:`button`,onClick:s,"aria-label":c,title:m,disabled:l,...g,className:u,children:d})}function bf(e,{tooltip:t,ariaLabel:n,disabled:r,tooltipSide:i=`top`,tooltipAlign:a=`center`,shortcut:o}){if(t===!1)return e;let s=typeof t==`string`&&t.length>0?t:n;return s?(0,j.jsxs)(pd,{children:[(0,j.jsx)(md,{asChild:!0,children:r?(0,j.jsx)(`span`,{className:`inline-flex`,children:e}):e}),(0,j.jsx)(hd,{side:i,align:a,children:lf(s,o)})]}):e}var xf=(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,className:i,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,...y},b){return vf({colorClassName:i,icon:e,children:t,strokeWidth:n,onClick:r,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,pillClassName:`matrx-tap-pill matrx-glass-thin-border`,iconClassName:`matrx-tap-icon ${i??`text-foreground`}`,rest:y,buttonRef:b})});(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,className:i,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,...y},b){return vf({colorClassName:i,icon:e,children:t,strokeWidth:n,onClick:r,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,pillClassName:`matrx-tap-pill group-hover/tap:bg-muted group-active/tap:bg-muted-foreground/15`,iconClassName:`matrx-tap-icon ${i??`text-foreground`}`,rest:y,buttonRef:b})}),(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,className:i,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,...y},b){let x=i??`text-muted-foreground group-hover/tap:text-foreground`;return vf({colorClassName:i,icon:e,children:t,strokeWidth:n,onClick:r,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,pillClassName:`matrx-tap-pill border border-border bg-transparent transition-colors group-hover/tap:border-primary/60 group-active/tap:bg-muted`,iconClassName:`matrx-tap-icon ${x}`,labelClassName:`matrx-tap-label ${x}`,rest:y,buttonRef:b})});var Sf=(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,as:i,htmlFor:a,ariaLabel:o,disabled:s,href:c,target:l,rel:u,prefetch:d,linkComponent:f,tone:p,bgColor:m,iconColor:h,hoverBgColor:g,activeBgColor:_,tooltip:v,tooltipSide:y,tooltipAlign:b,label:x,mobileIconOnly:S,...C},w){return vf({icon:e,children:t,strokeWidth:n,onClick:r,as:i,htmlFor:a,ariaLabel:o,disabled:s,href:c,target:l,rel:u,prefetch:d,linkComponent:f,tooltip:v,tooltipSide:y,tooltipAlign:b,label:x,mobileIconOnly:S,...Cf(p,m,h,g,_),rest:C,buttonRef:w})});function Cf(e,t,n,r,i){if(!(!e&&(t||n||r||i))){let t=Qd[e??`primary`];return{pillClassName:`matrx-tap-pill ${t.fill} ${t.glyph} group-active/tap:brightness-90`,iconClassName:`matrx-tap-icon ${t.glyph}`,labelClassName:`matrx-tap-label ${t.glyph}`}}let a=n??`text-primary-foreground`;return{pillClassName:`matrx-tap-pill ${t??`bg-primary`} ${a} ${r??`group-hover/tap:bg-primary/80`} ${i??`group-active/tap:brightness-90`}`,iconClassName:`matrx-tap-icon ${a}`,labelClassName:`matrx-tap-label ${a}`}}(0,_.forwardRef)(function({tone:e=`destructive`,...t},n){return(0,j.jsx)(Sf,{ref:n,tone:e,...t})}),(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,className:i,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,...y},b){let x=i??`text-foreground`;return vf({colorClassName:i,size:`sm`,icon:e,children:t,strokeWidth:n,onClick:r,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,pillClassName:`matrx-tap-pill matrx-tap-pill-sm matrx-glass-interactive`,iconClassName:`matrx-tap-icon ${x}`,labelClassName:`matrx-tap-label ${x}`,rest:y,buttonRef:b})});function wf(e){let t=(0,_.useRef)(null),n=(0,_.useRef)(!0),r=(0,_.useRef)(!1),[i,a]=(0,_.useState)(!0),[o,s]=(0,_.useState)(!1),c=(0,_.useCallback)(e=>e.scrollHeight-e.scrollTop-e.clientHeight<=48,[]),l=(0,_.useCallback)(e=>{r.current=!0,e.scrollTop=e.scrollHeight},[]),u=(0,_.useCallback)(()=>{let e=t.current;if(e===null)return;if(r.current){r.current=!1;return}let i=c(e);n.current=i,a(i),i&&s(!1)},[c]),d=(0,_.useCallback)(e=>{let n=t.current;n!==null&&n.removeEventListener(`scroll`,u),t.current=e,e!==null&&e.addEventListener(`scroll`,u,{passive:!0})},[u]);(0,_.useEffect)(()=>()=>{let e=t.current;e!==null&&e.removeEventListener(`scroll`,u)},[u]);let f=(0,_.useCallback)(()=>{let r=t.current;if(r!==null&&e){if(n.current){l(r);return}s(!0)}},[e,l]);return{ref:d,pinned:i,hasUnseenBelow:o,jumpToLatest:(0,_.useCallback)(()=>{let e=t.current;e!==null&&(l(e),n.current=!0,a(!0),s(!1))},[l]),onContentChange:f}}function Tf(e){let t=[],n=``,r=0;for(let i of St(e)){if(i.start<r)continue;n+=e.slice(r,i.start);let a=e.slice(i.start,i.end);t.push(i.kind===`fence`?` code block `:Ef(a)),n+=`\uE300${t.length-1}\uE301`,r=i.end}return n+=e.slice(r),n.replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/^\s{0,3}#{1,6}\s+/gm,``).replace(/^\s{0,3}>\s?/gm,``).replace(/^\s{0,3}([*+-]|\d+\.)\s+/gm,``).replace(/(\*\*\*|___)(.+?)\1/g,`$2`).replace(/(\*\*|__)(.+?)\1/g,`$2`).replace(/(\*|_)(.+?)\1/g,`$2`).replace(/~~(.+?)~~/g,`$1`).replace(/^\s{0,3}([-*_]\s?){3,}$/gm,``).replace(/\uE300(\d+)\uE301/g,(e,n)=>t[Number(n)]??``).replace(/[ \t]{2,}/g,` `)}function Ef(e){let t=/^`+/.exec(e)?.[0].length??0,n=e.slice(t,e.length-t);return/^ .* $/s.test(n)&&n.trim()?n.slice(1,-1):n}var Df=`Your message could not be copied.`,Of=`Select the text and copy it with your keyboard — this browser did not allow the page to use the clipboard.`,kf=2e3;function Af(e){let{message:t}=e,{notifier:n}=bi(),r=xi(),{thread:i,retry:a}=gi(),[o,s]=(0,_.useState)(null),c=(0,_.useRef)(null);(0,_.useEffect)(()=>()=>{c.current!==null&&clearTimeout(c.current)},[]);let l=(0,_.useCallback)((e,t)=>{let r=globalThis.navigator?.clipboard,i=r?.writeText?.bind(r);if(i===void 0){n.notify({level:`warning`,message:Df,remedy:Of});return}i(e).then(()=>{s(t),c.current!==null&&clearTimeout(c.current),c.current=setTimeout(()=>s(null),kf)},()=>{n.notify({level:`warning`,message:Df,remedy:Of})})},[n]);if(t.status===`streaming`||t.status===`pending`)return null;let u=C(t),d=r.messageActions?.(t),f=t.role===`user`,p=f?``:wi(i.getSnapshot().messages,t.id);return u===``&&d===void 0?null:(0,j.jsxs)(`div`,{className:`mx-chat-actions`,role:`group`,"aria-label":f?`Actions for your message`:`Actions for this answer`,"data-message-id":t.id,children:[u===``?null:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"data-action":`copy-text`,onClick:()=>l(Tf(u),`text`),children:o===`text`?`Copied`:`Copy`}),u===``||f?null:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"data-action":`copy-markdown`,onClick:()=>l(u,`markdown`),children:o===`markdown`?`Copied`:`Copy as markdown`}),p===``?null:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"data-action":`retry`,onClick:()=>void i.send({text:p}),children:`Ask again`}),f&&u!==``?(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"data-action":`edit`,onClick:()=>a.request(u),children:`Edit and send again`}):null,d,o===null?null:(0,j.jsx)(`span`,{className:`mx-chat__sr-only`,role:`status`,"aria-live":`polite`,children:`Copied to the clipboard`})]})}var jf=Object.defineProperty,Mf=(e,t)=>jf(e,`name`,{value:t,configurable:!0});function Nf(e){let t=e+`CollectionProvider`,[n,r]=Vi(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=Mf(e=>{let{scope:t,children:n}=e,r=_.useRef(null),a=_.useRef(new Map).current;return(0,j.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Gi(s),l=_.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=H(t,a(s,n).collectionRef);return(0,j.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Gi(u),p=_.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=_.useRef(null),s=H(t,o),c=a(u,n);return _.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,j.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return _.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return Mf(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}Mf(Nf,`createCollection`);var Pf=new WeakMap,Ff=class e extends Map{static{Mf(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],Pf.set(this,!0)}set(e,t){return Pf.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=Rf(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=If(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=If(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return If(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function If(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Lf(e,t);return n===-1?void 0:e[n]}Mf(If,`at`);function Lf(e,t){let n=e.length,r=Rf(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}Mf(Lf,`toSafeIndex`);function Rf(e){return e!==e||e===0?0:Math.trunc(e)}Mf(Rf,`toSafeInteger`);function zf(e){let t=e+`CollectionProvider`,[n,r]=Vi(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Ff,setItemMap:Mf(()=>void 0,`setItemMap`)}),o=Mf(({state:e,...t})=>e?(0,j.jsx)(c,{...t,state:e}):(0,j.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=Mf(e=>{let t=h();return(0,j.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=Mf(e=>{let{scope:t,children:n,state:r}=e,a=_.useRef(null),[o,s]=_.useState(null),c=H(a,s),[l,u]=r;return _.useEffect(()=>{if(!o)return;let e=Hf(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,j.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=Gi(l),d=_.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=H(t,a(l,n).collectionRef);return(0,j.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=Gi(f),m=_.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=_.useRef(null),[s,c]=_.useState(null),l=H(t,o,c),{setItemMap:u}=a(f,n),d=_.useRef(i);Bf(d.current,i)||(d.current=i);let m=d.current;return _.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(Vf):(t.set(s,{...e,element:s}),t.toSorted(Vf)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new Ff(e)))}},[s,m,u]),(0,j.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return _.useState(new Ff)}Mf(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return Mf(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}Mf(zf,`createCollection`);function Bf(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Mf(Bf,`shallowEqual`);function $(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Mf($,`isElementPreceding`);function Vf(e,t){return!e[1].element||!t[1].element?0:$(e[1].element,t[1].element)?-1:1}Mf(Vf,`sortByDocumentPosition`);function Hf(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}Mf(Hf,`getChildListObserver`);var Uf=Object.defineProperty,Wf=(e,t)=>Uf(e,`name`,{value:t,configurable:!0}),Gf=_.createContext(void 0);function Kf(e){let t=_.useContext(Gf);return e||t||`ltr`}Wf(Kf,`useDirection`);function qf(e){return{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,...e}}function Jf(e){return(0,j.jsxs)(`svg`,{...qf(e),children:[(0,j.jsx)(`path`,{d:`M18 6 6 18`}),(0,j.jsx)(`path`,{d:`m6 6 12 12`})]})}function Yf(e){return{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 15 15`,width:15,height:15,fill:`none`,"aria-hidden":!0,...e}}function Xf(e){return(0,j.jsx)(`svg`,{...Yf(e),children:(0,j.jsx)(`path`,{d:`M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function Zf(e){return(0,j.jsx)(`svg`,{...Yf(e),children:(0,j.jsx)(`path`,{d:`M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z`,fill:`currentColor`})})}function Qf(e){return(0,j.jsx)(`svg`,{...Yf(e),children:(0,j.jsx)(`path`,{d:`M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function $f(e){return(0,j.jsx)(`svg`,{...Yf(e),children:(0,j.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function ep(e){return(0,j.jsx)(`svg`,{...Yf(e),children:(0,j.jsx)(`path`,{d:`M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var tp=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,np=Sl,rp=(e,t)=>n=>{if(t?.variants==null)return np(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=tp(t)||tp(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return np(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},ip=Object.defineProperty,ap=(e,t)=>ip(e,`name`,{value:t,configurable:!0}),op=`focusScope.autoFocusOnMount`,sp=`focusScope.autoFocusOnUnmount`,cp={bubbles:!1,cancelable:!0},lp=_.forwardRef(ap(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=_.useState(null),l=ua(i),u=ua(a),d=_.useRef(null),f=H(t,c),p=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:gp(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||gp(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&gp(s)};ap(e,`handleFocusIn`),ap(t,`handleFocusOut`),ap(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),_.useEffect(()=>{if(s){_p.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(op,cp);s.addEventListener(op,l),s.dispatchEvent(t),t.defaultPrevented||(up(bp(fp(s)),{select:!0}),document.activeElement===e&&gp(s))}return()=>{s.removeEventListener(op,l),setTimeout(()=>{let t=new CustomEvent(sp,cp);s.addEventListener(sp,u),s.dispatchEvent(t),t.defaultPrevented||gp(e??document.body,{select:!0}),s.removeEventListener(sp,u),_p.remove(p)},0)}}},[s,l,u,p]);let m=_.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=dp(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&gp(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&gp(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,j.jsx)(W.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function up(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(gp(r,{select:t}),document.activeElement!==n)return}ap(up,`focusFirst`);function dp(e){let t=fp(e);return[pp(t,e),pp(t.reverse(),e)]}ap(dp,`getTabbableEdges`);function fp(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ap(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}ap(fp,`getTabbableCandidates`);function pp(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):mp(r,{upTo:t})))return r}ap(pp,`findVisible`);function mp(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}ap(mp,`isHidden`);function hp(e){return e instanceof HTMLInputElement&&`select`in e}ap(hp,`isSelectableInput`);function gp(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&hp(e)&&t&&e.select()}}ap(gp,`focus`);var _p=vp();function vp(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=yp(e,t),e.unshift(t)},remove(t){e=yp(e,t),e[0]?.resume()}}}ap(vp,`createFocusScopesStack`);function yp(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}ap(yp,`arrayRemove`);function bp(e){return e.filter(e=>e.tagName!==`A`)}ap(bp,`removeLinks`);var xp=Object.defineProperty,Sp=(e,t)=>xp(e,`name`,{value:t,configurable:!0}),Cp=0,wp=null;function Tp(e){return Ep(),e.children}Sp(Tp,`FocusGuards`);function Ep(){_.useEffect(()=>{wp||={start:Dp(),end:Dp()};let{start:e,end:t}=wp;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Cp++,()=>{Cp===1&&(wp?.start.remove(),wp?.end.remove(),wp=null),Cp=Math.max(0,Cp-1)}},[])}Sp(Ep,`useFocusGuards`);function Dp(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}Sp(Dp,`createFocusGuard`);var Op=function(){return Op=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Op.apply(this,arguments)};function kp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ap(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var jp=`right-scroll-bar-position`,Mp=`width-before-scroll-bar`,Np=`with-scroll-bars-hidden`,Pp=`--removed-body-scroll-bar-size`;function Fp(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Ip(e,t){var n=(0,_.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Lp=typeof window<`u`?_.useLayoutEffect:_.useEffect,Rp=new WeakMap;function zp(e,t){var n=Ip(t||null,function(t){return e.forEach(function(e){return Fp(e,t)})});return Lp(function(){var t=Rp.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Fp(e,null)}),i.forEach(function(e){r.has(e)||Fp(e,a)})}Rp.set(n,e)},[e]),n}function Bp(e){return e}function Vp(e,t){t===void 0&&(t=Bp);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Hp(e){e===void 0&&(e={});var t=Vp(null);return t.options=Op({async:!0,ssr:!1},e),t}var Up=function(e){var t=e.sideCar,n=kp(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return _.createElement(r,Op({},n))};Up.isSideCarExport=!0;function Wp(e,t){return e.useMedium(t),Up}var Gp=Hp(),Kp=function(){},qp=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:Kp,onWheelCapture:Kp,onTouchMoveCapture:Kp}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=kp(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=zp([n,t]),w=Op(Op({},x),i);return _.createElement(_.Fragment,null,u&&_.createElement(S,{sideCar:Gp,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?_.cloneElement(_.Children.only(s),Op(Op({},w),{ref:C})):_.createElement(y,Op({},w,{className:c,ref:C}),s))});qp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},qp.classNames={fullWidth:Mp,zeroRight:jp};var Jp=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Yp(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Jp();return t&&e.setAttribute(`nonce`,t),e}function Xp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zp(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Qp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Yp())&&(Xp(t,n),Zp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$p=function(){var e=Qp();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},em=function(){var e=$p();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},tm={left:0,top:0,right:0,gap:0},nm=function(e){return parseInt(e||``,10)||0},rm=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[nm(n),nm(r),nm(i)]},im=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return tm;var t=rm(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},am=em(),om=`data-scroll-locked`,sm=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
17
- .${Np} {
16
+ `)})}return{blocks:r,openFrom:n[a]??0}}function Vr(){let e=new Map,t=0,n=(n,r)=>{t+=1;let i=Br(r);return e.set(n,{text:r,blocks:i.blocks,stable:i.blocks.slice(0,Math.max(0,i.blocks.length-1)),stableEnd:i.openFrom}),i.blocks};return{get parses(){return t},forget(t){e.delete(t)},parse(r,i){let a=e.get(r);if(a===void 0)return n(r,i);if(a.text===i)return a.blocks;if(!i.startsWith(a.text))return n(r,i);t+=1;let o=Br(i.slice(a.stableEnd)),s=[...a.stable,...o.blocks];return e.set(r,{text:i,blocks:s,stable:s.slice(0,Math.max(0,s.length-1)),stableEnd:a.stableEnd+o.openFrom}),s}}}function Hr(e,t){switch(e.type){case`code`:return(0,j.jsx)(`pre`,{className:`mx-chat-md__pre`,"data-language":e.language||void 0,children:(0,j.jsx)(`code`,{children:e.body})},t);case`heading`:{let n=Math.min(6,Math.max(1,e.level)),r=`h${n}`;return(0,j.jsx)(r,{className:`mx-chat-md__heading`,"data-level":n,children:Mr(e.body,`${t}-`)},t)}case`quote`:return(0,j.jsx)(`blockquote`,{className:`mx-chat-md__quote`,children:Mr(e.body,`${t}-`)},t);case`list`:return e.ordered?(0,j.jsx)(`ol`,{className:`mx-chat-md__list`,children:e.items.map((e,n)=>(0,j.jsx)(`li`,{children:Mr(e,`${t}-${n}-`)},`${t}-${n}`))},t):(0,j.jsx)(`ul`,{className:`mx-chat-md__list`,children:e.items.map((e,n)=>(0,j.jsx)(`li`,{children:Mr(e,`${t}-${n}-`)},`${t}-${n}`))},t);case`table`:return(0,j.jsx)(`div`,{className:`mx-chat-md__table-scroll`,children:(0,j.jsxs)(`table`,{className:`mx-chat-md__table`,children:[(0,j.jsx)(`thead`,{children:(0,j.jsx)(`tr`,{children:e.header.map((e,n)=>(0,j.jsx)(`th`,{children:Mr(e,`${t}-h${n}-`)},`${t}-h${n}`))})}),(0,j.jsx)(`tbody`,{children:e.rows.map((e,n)=>(0,j.jsx)(`tr`,{children:e.map((e,r)=>(0,j.jsx)(`td`,{children:Mr(e,`${t}-r${n}c${r}-`)},`${t}-r${n}c${r}`))},`${t}-r${n}`))})]})},t);case`rule`:return(0,j.jsx)(`hr`,{className:`mx-chat-md__rule`},t);case`paragraph`:return(0,j.jsx)(`p`,{className:`mx-chat-md__paragraph`,children:Mr(e.body,`${t}-`)},t)}}function Ur(e){let t=e.cache.parse(e.cacheKey,e.text);return(0,j.jsx)(`div`,{className:`mx-chat-md`,children:t.map((e,t)=>Hr(e,`b${t}`))})}var Wr=`This answer contains a structured block, and it is shown as plain text here because this app has not connected the content renderer.`,Gr=`Mount <ContentIrRenderProvider host={…}> from @ai-matrx/content-ir-react above your chat to draw structured blocks properly.`;function Kr(e){let t=te(),n=e.announce;return(0,_.useEffect)(()=>{t===null&&n()},[t,n]),t===null?(0,j.jsxs)(`div`,{className:`mx-chat-content`,"data-mx-chat-content":`block-standin`,children:[(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:Wr}),(0,j.jsx)(Ur,{text:e.request.text,cacheKey:`${e.request.messageId}:${e.request.kind}`,cache:e.cache})]}):(0,j.jsx)(`div`,{className:`mx-chat-content`,"data-mx-chat-content":`block`,"data-kind":e.request.kind,children:(0,j.jsx)(wr,{kind:e.request.kind,value:e.request.data??e.request.text,variant:`bare`})})}function qr(e={}){let t=e.notifier??D(),n=e.cache??Vr(),r=!1,i=()=>{r||(r=!0,t.notify({level:`warning`,message:Wr,remedy:Gr}))};return function(e){return e.kind!==`markdown`&&e.kind!==`text`?(0,j.jsx)(Kr,{request:e,cache:n,notifier:t,announce:i}):e.text===``?null:(0,j.jsx)(`div`,{className:`mx-chat-content`,"data-mx-chat-content":`markdown`,children:(0,j.jsx)(Ur,{text:e.text,cacheKey:e.messageId,cache:n})})}}function Jr(e){return!!(/[zZ]$/.test(e)||/[+-]\d{2}(:?\d{2})?$/.test(e)||/\b(GMT|UTC)\b/i.test(e))}function Yr(e){let t=e.trim();return!t||!/\d{1,2}:\d{2}/.test(t)||Jr(t)?t:`${t.replace(` `,`T`)}Z`}function Xr(e){if(e==null)return null;if(e instanceof Date)return Number.isNaN(e.getTime())?null:e;if(typeof e==`number`){let t=new Date(e);return Number.isNaN(t.getTime())?null:t}if(typeof e!=`string`)return null;let t=Yr(e);if(!t)return null;let n=new Date(t);return Number.isNaN(n.getTime())?null:n}var Zr={year:`numeric`,month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`};function Qr(e,t=Zr,n=`—`){let r=Xr(e);return r?r.toLocaleString(void 0,t):n}var $r=[{limit:6e4,divisor:1e3,short:`s`,long:`second`},{limit:36e5,divisor:6e4,short:`m`,long:`minute`},{limit:864e5,divisor:36e5,short:`h`,long:`hour`},{limit:6048e5,divisor:864e5,short:`d`,long:`day`},{limit:2592e6,divisor:6048e5,short:`w`,long:`week`},{limit:31536e6,divisor:2592e6,short:`mo`,long:`month`}],ei=[{unit:`year`,ms:31536e6},{unit:`month`,ms:2592e6},{unit:`week`,ms:6048e5},{unit:`day`,ms:864e5},{unit:`hour`,ms:36e5},{unit:`minute`,ms:6e4}];function ti(e,t={}){let n=t.style??`short`,r=t.suffix===!1,i=t.now??Date.now(),a=Xr(e);if(!a)return t.fallbackToInput===!0&&typeof e==`string`?e:t.fallback??`—`;if(n===`intl`){let e=a.getTime()-i,t=Math.abs(e);if(t<6e4)return`just now`;let n=new Intl.RelativeTimeFormat(void 0,{numeric:`auto`});for(let{unit:r,ms:i}of ei)if(t>=i)return n.format(Math.trunc(e/i),r);return`just now`}let o=i-a.getTime(),s=o<0;if(s&&-o<6e4)return`just now`;let c=Math.abs(o);for(let e of $r)if(c<e.limit){let t=Math.max(1,Math.floor(c/e.divisor)),i=n===`long`?`${t} ${e.long}${t===1?``:`s`}`:`${t}${e.short}`;return r?i:s?`in ${i}`:`${i} ago`}return(t.absolute??(r?`date`:`datetime`))===`date`?a.toLocaleDateString():Qr(a)}var ni=[`B`,`KB`,`MB`,`GB`,`TB`,`PB`];function ri(e,t={}){let n=t.fallback??`—`;if(e==null||!Number.isFinite(e)||e<0)return n;if(e<1024)return`${Math.round(e)} B`;let r=e,i=0;for(;r>=1024&&i<ni.length-1;)r/=1024,i+=1;return`${r>=10?String(Math.round(r)):r.toFixed(1)} ${ni[i]}`}function ii(e){return typeof e==`number`&&Number.isFinite(e)}function ai(e,t={}){let{digits:n=2,unknown:r=`—`}=t;if(!ii(e))return r;let i;if(n===`adaptive`||n===`trim`){let t=Math.abs(e);i=t===0||t>=1?2:t>=.01?4:6}else i=n;return`$${e.toLocaleString(`en-US`,{minimumFractionDigits:n===`trim`?Math.min(2,i):i,maximumFractionDigits:i})}`}var oi=[``,`k`,`M`,`B`,`T`];function si(e,t={}){let{unknown:n=`—`,style:r=`plain`,locale:i}=t;if(!ii(e))return n;if(r!==`compact`)return e.toLocaleString(i);let a=e<0?`-`:``,o=Math.abs(e);if(o<1e3)return`${a}${Math.round(o)}`;let s=0;for(;o>=1e3&&s<oi.length-1;)o/=1e3,s+=1;let c=o>=10?Math.round(o):Number(o.toFixed(1));return c>=1e3&&s<oi.length-1&&(o/=1e3,s+=1,c=o>=10?Math.round(o):Number(o.toFixed(1))),`${a}${o>=10?String(c):c.toFixed(1)}${oi[s]}`}var ci=`Attachments aren't set up here, so this file has not been sent.`,li="Give <ChatComposerProvider> a `files` port (your upload service) to attach files to a message.";function ui(e){let t=!1;return{available:!1,upload(){return t||(t=!0,e.notify({level:`warning`,message:ci,remedy:li})),Promise.reject(Error(ci))}}}function di(e,t){return`${e} is larger than the ${ri(t)} limit for this chat, so it has not been attached.`}function fi(e){return de(e)||`Working…`}function pi(e){let t=new Set;return{request(n){if(t.size===0)return e.notify({level:`warning`,message:`There is nowhere to put your message back, so it has not been restored for you.`,remedy:`Copy your message from the conversation above and send it again, or mount this transcript inside a chat that has a message box.`}),!1;for(let e of t)e(n);return!0},subscribe(e){return t.add(e),()=>{t.delete(e)}}}}var mi=(0,_.createContext)(null);function hi(e){let{thread:t,ports:n,slots:r,children:i}=e,[a]=(0,_.useState)(()=>{let e=D();return{notifier:e,prefs:k(e)}}),o=n?.notifier??a.notifier,s=(0,_.useRef)(null);(s.current===null||s.current.notifier!==o)&&(s.current={notifier:o,bus:pi(o),renderContent:qr({notifier:o}),files:ui(o)});let c=s.current.bus,l=s.current.renderContent,u=s.current.files,d=(0,_.useMemo)(()=>({thread:t,ports:{renderContent:n?.renderContent??l,notifier:o,prefs:n?.prefs??a.prefs,files:n?.files??u,voice:n?.voice??null,toolLabel:n?.toolLabel??fi,modelPicker:n?.modelPicker??null,quickset:n?.quickset??null},slots:r??{},retry:c}),[t,n?.renderContent,n?.prefs,n?.files,n?.voice,n?.toolLabel,n?.modelPicker,n?.quickset,o,r,c,l,u,a.prefs]),f=(0,_.useRef)(t);return(0,_.useEffect)(()=>{if(f.current===t)return;let e=f.current.getSnapshot().status;(e===`streaming`||e===`submitted`)&&o.notify({level:`warning`,message:`The previous answer was still arriving when this chat switched conversations.`,remedy:`Stop the answer before switching, or the run keeps going in the background.`}),f.current=t},[t,o]),(0,j.jsx)(mi.Provider,{value:d,children:i})}function gi(){let e=(0,_.useContext)(mi);if(e===null)throw Error(`[@ai-matrx/chat] This component must be rendered inside <ChatProvider thread={…}>. Wrap your chat surface in one, passing a thread from createChatThread() or createExternalThreadSource().`);return e}function _i(){let{thread:e}=gi(),t=(0,_.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot),n=(0,_.useCallback)((t,n)=>e.send(n===void 0?{text:t}:{text:t,fileIds:n}),[e]),r=(0,_.useCallback)(()=>e.cancel(),[e]);return(0,_.useMemo)(()=>({snapshot:t,messages:t.messages,status:t.status,isBusy:t.status===`submitted`||t.status===`streaming`,conversationId:t.conversationId,ephemeral:t.ephemeral,ephemeralReason:t.ephemeralReason,error:t.error,send:n,cancel:r}),[t,n,r])}function vi(e){let{thread:t}=gi(),n=(0,_.useCallback)(n=>t.subscribeToMessage(e,n),[t,e]),r=(0,_.useCallback)(()=>t.getMessageSnapshot(e),[t,e]);return(0,_.useSyncExternalStore)(n,r,r)}function yi(){return gi().thread.features}function bi(){return gi().ports}function xi(){return gi().slots}var Si=`ai-matrx.chat.draft.`;function Ci(){let{thread:e,ports:t,retry:n}=gi(),r=e.features,i=(0,_.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot),a=i.conversationId,o=i.status===`submitted`||i.status===`streaming`,s=`${Si}${a??`new`}`,[c,l]=(0,_.useState)(()=>r.retainDrafts?t.prefs.get(s)??``:``),[u,d]=(0,_.useState)(!1),f=(0,_.useRef)(s);(0,_.useEffect)(()=>{if(f.current===s)return;let e=f.current;if(f.current=s,!r.retainDrafts)return;let n=t.prefs.get(e);if(n!==null&&n!==``){t.prefs.set(s,n),t.prefs.remove(e),l(n);return}l(t.prefs.get(s)??``)},[s,r.retainDrafts,t.prefs]);let p=(0,_.useCallback)(e=>{l(e),d(!1),r.retainDrafts&&(e===``?t.prefs.remove(f.current):t.prefs.set(f.current,e))},[r.retainDrafts,t.prefs]);(0,_.useEffect)(()=>n.subscribe(e=>{l(e),d(!0),r.retainDrafts&&t.prefs.set(f.current,e)}),[n,r.retainDrafts,t.prefs]);let m=(0,_.useCallback)(async()=>{let n=c.trim();if(n===``||o&&!r.sendWhileBusy)return null;l(``),d(!1),r.retainDrafts&&t.prefs.remove(f.current);let i=await e.send({text:n});return i.accepted||(l(n),r.retainDrafts&&t.prefs.set(f.current,n)),i},[c,o,e,r.retainDrafts,r.sendWhileBusy,t.prefs]),h=(0,_.useCallback)(()=>e.cancel(),[e]),g=(0,_.useCallback)(t=>{if(t.key===`Escape`){if(!o)return;t.preventDefault(),e.cancel();return}if(t.key!==`Enter`)return;let n=t.metaKey||t.ctrlKey;(r.sendKey===`enter`?!t.shiftKey&&!n:n)&&(t.preventDefault(),m())},[r.sendKey,o,m,e]);return{text:c,setText:p,canSend:c.trim()!==``&&(!o||r.sendWhileBusy),isBusy:o,send:m,stop:h,onKeyDown:g,restoredFromFailure:u}}function wi(e,t){let n=e.findIndex(e=>e.id===t);if(n<=0)return``;for(let t=n-1;t>=0;--t){let n=e[t];if(n&&n.role===`user`)return C(n)}return``}function Ti(){return(0,j.jsx)(`svg`,{className:`mx-chat-chevron`,width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:(0,j.jsx)(`path`,{d:`M6 3.5 10.5 8 6 12.5`})})}function Ei(){return(0,j.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:(0,j.jsx)(`path`,{d:`M8 3v10M3.5 8.5 8 13l4.5-4.5`})})}var Di=Object.defineProperty,Oi=(e,t)=>Di(e,`name`,{value:t,configurable:!0}),ki=!!(typeof window<`u`&&window.document&&window.document.createElement);function V(e,t,{checkForDefaultPrevented:n=!0}={}){return Oi(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Oi(V,`composeEventHandlers`);function Ai(e){if(!ki)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Oi(Ai,`getOwnerWindow`);function ji(e){if(!ki)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Oi(ji,`getOwnerDocument`);function Mi(e,t=!1){let{activeElement:n}=ji(e);if(!n?.nodeName)return null;if(Ni(n)&&n.contentDocument)return Mi(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=ji(n).getElementById(e);if(t)return t}}return n}Oi(Mi,`getActiveElement`);function Ni(e){return e.tagName===`IFRAME`}Oi(Ni,`isFrame`);var Pi=Object.defineProperty,Fi=(e,t)=>Pi(e,`name`,{value:t,configurable:!0});function Ii(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Fi(Ii,`setRef`);function Li(...e){return t=>{let n=!1,r=e.map(e=>{let r=Ii(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Ii(e[t],null)}}}}Fi(Li,`composeRefs`);function H(...e){return _.useCallback(Li(...e),e)}Fi(H,`useComposedRefs`);var Ri=Object.defineProperty,zi=(e,t)=>Ri(e,`name`,{value:t,configurable:!0});function Bi(e,t){let n=_.createContext(t);n.displayName=e+`Context`;let r=zi(e=>{let{children:t,...r}=e,i=_.useMemo(()=>r,Object.values(r));return(0,j.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=_.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return zi(i,`useContext`),[r,i]}zi(Bi,`createContext`);function Vi(e,t=[]){let n=[];function r(t,r){let i=_.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=zi(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=_.useMemo(()=>o,Object.values(o));return(0,j.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=_.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return zi(s,`useContext`),[o,s]}zi(r,`createContext`);let i=zi(()=>{let t=n.map(e=>_.createContext(e));return zi(function(n){let r=n?.[e]||t;return _.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Hi(i,...t)]}zi(Vi,`createContextScope`);function Hi(...e){let t=e[0];if(e.length===1)return t;let n=zi(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return zi(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}zi(Hi,`composeContextScopes`);var Ui=Object.defineProperty,Wi=(e,t)=>Ui(e,`name`,{value:t,configurable:!0});function Gi(e){let t=_.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];ea(r)&&typeof ra==`function`&&(r=ra(r._payload)),_.Children.forEach(r,e=>{if(Qi(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;ea(n)&&typeof ra==`function`&&(n=ra(n._payload)),a=Yi(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=_.cloneElement(a,void 0,s):!o&&_.Children.count(r)===1&&_.isValidElement(r)&&(a=r);let c=a?Zi(a):void 0,l=H(n,c);if(!a){if(r||r===0)throw Error(o?na(e):U(e));return r}let u=Xi(i,a.props??{});return a.type!==_.Fragment&&(u.ref=n?l:c),_.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Wi(Gi,`createSlot`);var Ki=Gi(`Slot`),qi=Symbol.for(`radix.slottable`);function Ji(e){let t=Wi(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=qi,t}Wi(Ji,`createSlottable`);var Yi=Wi((e,t)=>{if(`child`in e.props){let t=e.props.child;return _.isValidElement(t)?_.cloneElement(t,void 0,e.props.children(t.props.children)):null}return _.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function Xi(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}Wi(Xi,`mergeProps`);function Zi(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Wi(Zi,`getElementRef`);function Qi(e){return _.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===qi}Wi(Qi,`isSlottable`);var $i=Symbol.for(`react.lazy`);function ea(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===$i&&`_payload`in e&&ta(e._payload)}Wi(ea,`isLazyComponent`);function ta(e){return typeof e==`object`&&!!e&&`then`in e}Wi(ta,`isPromiseLike`);var U=Wi(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),na=Wi(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),ra=_.use,ia=c(m(),1),aa=Object.defineProperty,oa=(e,t)=>aa(e,`name`,{value:t,configurable:!0}),W=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Gi(`Primitive.${t}`),r=_.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,j.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function sa(e,t){e&&ia.flushSync(()=>e.dispatchEvent(t))}oa(sa,`dispatchDiscreteCustomEvent`);var ca=Object.defineProperty,la=(e,t)=>ca(e,`name`,{value:t,configurable:!0});function ua(e){let t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>((...e)=>t.current?.(...e)),[])}la(ua,`useCallbackRef`);var da=Object.defineProperty,fa=(e,t)=>da(e,`name`,{value:t,configurable:!0}),pa=`dismissableLayer.update`,ma=`dismissableLayer.pointerDownOutside`,ha=`dismissableLayer.focusOutside`,ga,_a=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),va=_.forwardRef(fa(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=_.useContext(_a),[d,f]=_.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=_.useState({}),h=H(t,f),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v?g.indexOf(v):-1,b=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=_.useRef(!1),w=xa(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:_.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return S&&!t},[u.branches,S])}),T=Sa(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?b===g.length-1:!1,D=ua(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return _.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),_.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ga=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ca(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=ga))}},[d,p,n,u]),_.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ca())},[d,u]),_.useEffect(()=>{let e=fa(()=>m({}),`handleUpdate`);return document.addEventListener(pa,e),()=>document.removeEventListener(pa,e)},[]),(0,j.jsx)(W.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:V(e.onFocusCapture,T.onFocusCapture),onBlurCapture:V(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function ya(){let e=_.useContext(_a),[t,n]=_.useState(null);return _.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}fa(ya,`useDismissableLayerSurface`);var ba=fa(()=>!0,`IS_TRUE`);function xa(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=ba}=t,s=ua(e),c=_.useRef(!1),l=_.useRef(!1),u=_.useRef(new Map),d=_.useRef(()=>{});return _.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}fa(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}fa(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}fa(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}fa(p,`handleInteractionBubble`);let m=fa(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||wa(ma,s,p,{discrete:!0})};if(fa(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:fa(()=>c.current=!0,`onPointerDownCapture`)}}fa(xa,`usePointerDownOutside`);function Sa(e,t=globalThis?.document){let n=ua(e),r=_.useRef(!1);return _.useEffect(()=>{let e=fa(e=>{e.target&&!r.current&&wa(ha,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:fa(()=>r.current=!0,`onFocusCapture`),onBlurCapture:fa(()=>r.current=!1,`onBlurCapture`)}}fa(Sa,`useFocusOutside`);function Ca(){let e=new CustomEvent(pa);document.dispatchEvent(e)}fa(Ca,`dispatchUpdate`);function wa(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?sa(i,a):i.dispatchEvent(a)}fa(wa,`handleAndDispatchCustomEvent`);var Ta=globalThis?.document?_.useLayoutEffect:()=>{},Ea=Object.defineProperty,Da=(e,t)=>Ea(e,`name`,{value:t,configurable:!0}),Oa=_.useId||(()=>void 0),ka=0;function Aa(e){let[t,n]=_.useState(Oa());return Ta(()=>{e||n(e=>e??String(ka++))},[e]),e||(t?`radix-${t}`:``)}Da(Aa,`useId`);var ja=[`top`,`right`,`bottom`,`left`],Ma=Math.min,Na=Math.max,Pa=Math.round,Fa=Math.floor,Ia=e=>({x:e,y:e}),La={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ra(e,t,n){return Na(e,Ma(t,n))}function za(e,t){return typeof e==`function`?e(t):e}function Ba(e){return e.split(`-`)[0]}function Va(e){return e.split(`-`)[1]}function Ha(e){return e===`x`?`y`:`x`}function Ua(e){return e===`y`?`height`:`width`}function Wa(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ga(e){return Ha(Wa(e))}function Ka(e,t,n){n===void 0&&(n=!1);let r=Va(e),i=Ga(e),a=Ua(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=to(o)),[o,to(o)]}function qa(e){let t=to(e);return[Ja(e),t,Ja(t)]}function Ja(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ya=[`left`,`right`],Xa=[`right`,`left`],Za=[`top`,`bottom`],Qa=[`bottom`,`top`];function $a(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Xa:Ya:t?Ya:Xa;case`left`:case`right`:return t?Za:Qa;default:return[]}}function eo(e,t,n,r){let i=Va(e),a=$a(Ba(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ja)))),a}function to(e){let t=Ba(e);return La[t]+e.slice(t.length)}function no(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function ro(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:no(e)}function io(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ao(e,t,n){let{reference:r,floating:i}=e,a=Wa(t),o=Ga(t),s=Ua(o),c=Ba(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Va(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function oo(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=za(t,e),p=ro(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=io(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=io(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var so=50,co=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:oo},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ao(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<so&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ao(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},lo=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=za(e,t)||{};if(l==null)return{};let d=ro(u),f={x:n,y:r},p=Ga(i),m=Ua(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Ma(d[_],T),D=Ma(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Ra(E,k,O),j=!c.arrow&&Va(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),uo=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=za(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Ba(r),_=Wa(o),v=Ba(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[to(o)]:qa(o)),x=p!==`none`;!d&&x&&b.push(...eo(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ka(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Wa(t)||T.every(e=>Wa(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Wa(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function fo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function po(e){return ja.some(t=>e[t]>=0)}var mo=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=za(e,t);switch(i){case`referenceHidden`:{let e=fo(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:po(e)}}}case`escaped`:{let e=fo(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:po(e)}}}default:return{}}}}},ho=new Set([`left`,`top`]);async function go(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ba(n),s=Va(n),c=Wa(n)===`y`,l=ho.has(o)?-1:1,u=a&&c?-1:1,d=za(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var _o=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await go(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},vo=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=za(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Wa(i),p=Ha(f),m=u[p],h=u[f],g=(e,t)=>Ra(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},yo=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=za(e,t),u={x:n,y:r},d=Wa(i),f=Ha(d),p=u[f],m=u[d],h=za(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ho.has(Ba(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},bo=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=za(e,t),c=await i.detectOverflow(t,s),l=Ba(n),u=Va(n),d=Wa(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Ma(p-c[m],g),y=Ma(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Na(c.left,c.right):S=p-2*Na(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function xo(){return typeof window<`u`}function So(e){return To(e)?(e.nodeName||``).toLowerCase():`#document`}function Co(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wo(e){return((To(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function To(e){return xo()?e instanceof Node||e instanceof Co(e).Node:!1}function Eo(e){return xo()?e instanceof Element||e instanceof Co(e).Element:!1}function Do(e){return xo()?e instanceof HTMLElement||e instanceof Co(e).HTMLElement:!1}function Oo(e){return!xo()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Co(e).ShadowRoot}function ko(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ao(e){return/^(table|td|th)$/.test(So(e))}function jo(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Mo=/transform|translate|scale|rotate|perspective|filter/,No=/paint|layout|strict|content/,Po=e=>!!e&&e!==`none`,Fo;function Io(e){let t=Eo(e)?K(e):e;return Po(t.transform)||Po(t.translate)||Po(t.scale)||Po(t.rotate)||Po(t.perspective)||!Ro()&&(Po(t.backdropFilter)||Po(t.filter))||Mo.test(t.willChange||``)||No.test(t.contain||``)}function Lo(e){let t=Bo(e);for(;Do(t)&&!G(t);){if(Io(t))return t;if(jo(t))return null;t=Bo(t)}return null}function Ro(){return Fo??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Fo}function G(e){return/^(html|body|#document)$/.test(So(e))}function K(e){return Co(e).getComputedStyle(e)}function zo(e){return Eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bo(e){if(So(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Oo(e)&&e.host||wo(e);return Oo(t)?t.host:t}function Vo(e){let t=Bo(e);return G(t)?(e.ownerDocument||e).body:Do(t)&&ko(t)?t:Vo(t)}function Ho(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Vo(e),i=r===e.ownerDocument?.body,a=Co(r);if(i){let e=Uo(a);return t.concat(a,a.visualViewport||[],ko(r)?r:[],e&&n?Ho(e):[])}return t.concat(r,Ho(r,[],n))}function Uo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wo(e){let t=K(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Do(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Pa(n)!==a||Pa(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Go(e){return Eo(e)?e:e.contextElement}function Ko(e){let t=Go(e);if(!Do(t))return Ia(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Wo(t),o=(a?Pa(n.width):n.width)/r,s=(a?Pa(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var qo=Ia(0);function Jo(e){let t=Co(e);return!Ro()||!t.visualViewport?qo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Co(e)}function Xo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Go(e),o=Ia(1);t&&(r?Eo(r)&&(o=Ko(r)):o=Ko(e));let s=Yo(a,n,r)?Jo(a):Ia(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Co(a),t=Eo(r)?Co(r):r,n=e,i=Uo(n);for(;i&&t!==n;){let e=Ko(i),t=i.getBoundingClientRect(),r=K(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Co(i),i=Uo(n)}}return io({width:u,height:d,x:c,y:l})}function Zo(e,t){let n=zo(e).scrollLeft;return t?t.left+n:Xo(wo(e)).left+n}function Qo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Zo(e,n),y:n.top+t.scrollTop}}function $o(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=wo(r),s=t?jo(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ia(1),u=Ia(0),d=Do(r);if((d||!a)&&((So(r)!==`body`||ko(o))&&(c=zo(r)),d)){let e=Xo(r);l=Ko(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Qo(o,c):Ia(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function es(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ts(e){let t=zo(e),n=e.ownerDocument.body,r=Na(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Na(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Zo(e),o=-t.scrollTop;return K(n).direction===`rtl`&&(a+=Na(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var ns=25;function rs(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Co(e),a=wo(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Ro()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Zo(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=ns&&(s-=o)}return{width:s,height:c,x:l,y:u}}function is(e,t){let n=Xo(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ko(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function as(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=rs(e,n,t);else if(t===`document`)r=ts(wo(e));else if(Eo(t))r=is(t,n);else{let n=Jo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return io(r)}function os(e,t){let n=t.get(e);if(n)return n;let r=Ho(e,[],!1).filter(e=>Eo(e)&&So(e)!==`body`),i=null,a=K(e).position===`fixed`,o=a?Bo(e):e;for(;Eo(o)&&!G(o);){let e=K(o),t=Io(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Bo(o)}return t.set(e,r),r}function ss(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?jo(t)?[]:os(t,this._c):[].concat(n),r],o=as(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=as(t,a[e],i);s=Na(n.top,s),c=Ma(n.right,c),l=Ma(n.bottom,l),u=Na(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function cs(e){let{width:t,height:n}=Wo(e);return{width:t,height:n}}function ls(e,t,n){let r=Do(t),i=wo(t),a=n===`fixed`,o=Xo(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ia(0);if((r||!a)&&((So(t)!==`body`||ko(i))&&(s=zo(t)),r)){let e=Xo(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Zo(i));let l=i&&!r&&!a?Qo(i,s):Ia(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function us(e){return K(e).position===`static`}function ds(e,t){if(!Do(e)||K(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return wo(e)===n&&(n=n.ownerDocument.body),n}function fs(e,t){let n=Co(e);if(jo(e))return n;if(!Do(e)){let t=Bo(e);for(;t&&!G(t);){if(Eo(t)&&!us(t))return t;t=Bo(t)}return n}let r=ds(e,t);for(;r&&Ao(r)&&us(r);)r=ds(r,t);return r&&G(r)&&us(r)&&!Io(r)?n:r||Lo(e)||n}var ps=async function(e){let t=this.getOffsetParent||fs,n=this.getDimensions,r=await n(e.floating);return{reference:ls(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ms(e){return K(e).direction===`rtl`}var hs={convertOffsetParentRelativeRectToViewportRelativeRect:$o,getDocumentElement:wo,getClippingRect:ss,getOffsetParent:fs,getElementRects:ps,getClientRects:es,getDimensions:cs,getScale:Ko,isElement:Eo,isRTL:ms};function gs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _s(e,t,n){let r=null,i,a=wo(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Fa(d),h=Fa(a.clientWidth-(u+f)),g=Fa(a.clientHeight-(d+p)),_=Fa(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Na(0,Ma(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!gs(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Co(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function vs(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Go(e),u=i||a?[...l?Ho(l):[],...t?Ho(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?_s(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Xo(e):null;c&&g();function g(){let t=Xo(e);h&&!gs(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ys=_o,bs=vo,xs=uo,Ss=bo,Cs=mo,ws=lo,Ts=yo,Es=(e,t,n)=>{let r=new Map,i=n??{},a={...hs,...i.platform,_c:r};return co(e,t,{...i,platform:a})},Ds=typeof document<`u`?_.useLayoutEffect:function(){};function Os(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Os(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Os(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ks(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function As(e,t){let n=ks(e);return Math.round(t*n)/n}function js(e){let t=_.useRef(e);return Ds(()=>{t.current=e}),t}function Ms(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=_.useState(r);Os(f,r)||p(r);let[m,h]=_.useState(null),[g,v]=_.useState(null),y=_.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=_.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||m,S=o||g,C=_.useRef(null),w=_.useRef(null),T=_.useRef(u),E=c!=null,D=js(c),O=js(i),k=js(l),A=_.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Es(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Os(T.current,t)&&(T.current=t,ia.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Ds(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=_.useRef(!1);Ds(()=>(j.current=!0,()=>{j.current=!1}),[]),Ds(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=_.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=_.useMemo(()=>({reference:x,floating:S}),[x,S]),P=_.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=As(N.floating,u.x),r=As(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ks(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return _.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var Ns=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:ws({element:r.current,padding:i}).fn(n):r?ws({element:r,padding:i}).fn(n):{}}}},Ps=(e,t)=>{let n=ys(e);return{name:n.name,fn:n.fn,options:[e,t]}},Fs=(e,t)=>{let n=bs(e);return{name:n.name,fn:n.fn,options:[e,t]}},Is=(e,t)=>({fn:Ts(e).fn,options:[e,t]}),Ls=(e,t)=>{let n=xs(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rs=(e,t)=>{let n=Ss(e);return{name:n.name,fn:n.fn,options:[e,t]}},zs=(e,t)=>{let n=Cs(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bs=(e,t)=>{let n=Ns(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vs=Object.defineProperty,Hs=(e,t)=>Vs(e,`name`,{value:t,configurable:!0});function Us(e){let[t,n]=_.useState(void 0);return Ta(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}Hs(Us,`useSize`);var Ws=Object.defineProperty,Gs=(e,t)=>Ws(e,`name`,{value:t,configurable:!0}),Ks=`Popper`,[qs,Js]=Vi(Ks),[Ys,Xs]=qs(Ks),Zs=Gs(e=>{let{__scopePopper:t,children:n}=e,[r,i]=_.useState(null),[a,o]=_.useState(void 0);return(0,j.jsx)(Ys,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Qs=`PopperAnchor`,$s=_.forwardRef(Gs(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Xs(Qs,n),o=_.useRef(null),s=a.onAnchorChange,c=H(t,_.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=_.useRef(null);_.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&oc(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,j.jsx)(W.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),ec=`PopperContent`,[tc,nc]=qs(ec),rc=_.forwardRef(Gs(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=Xs(ec,n),[v,y]=_.useState(null),b=H(t,y),[x,S]=_.useState(null),C=Us(x),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],k=O.length>0,A={padding:D,boundary:O.filter(ic),altBoundary:k},{refs:M,floatingStyles:N,placement:P,isPositioned:F,middlewareData:I}=Ms({strategy:`fixed`,placement:E,whileElementsMounted:Gs((...e)=>vs(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[Ps({mainAxis:i+T,alignmentAxis:o}),c&&Fs({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Is():void 0,...A}),c&&Ls({...A}),Rs({...A,apply:Gs(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),x&&Bs({element:x,padding:s}),ac({arrowWidth:w,arrowHeight:T}),f&&zs({strategy:`referenceHidden`,...A,boundary:k?A.boundary:void 0})]}),L=g.setPlacementState;Ta(()=>(L(P),()=>{L(void 0)}),[P,L]);let[ee,te]=oc(P),ne=ua(m);Ta(()=>{F&&ne?.()},[F,ne]);let re=I.arrow?.x,ie=I.arrow?.y,ae=I.arrow?.centerOffset!==0,[oe,se]=_.useState();return Ta(()=>{v&&se(window.getComputedStyle(v).zIndex)},[v]),(0,j.jsx)(`div`,{ref:M.setFloating,"data-radix-popper-content-wrapper":``,style:{...N,transform:F?N.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:oe,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(` `),...I.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,j.jsx)(tc,{scope:n,placedSide:ee,placedAlign:te,onArrowChange:S,arrowX:re,arrowY:ie,shouldHideArrow:ae,children:(0,j.jsx)(W.div,{"data-side":ee,"data-align":te,...h,ref:b,style:{...h.style,animation:F?h.style?.animation:`none`}})})})},`PopperContent`));function ic(e){return e!==null}Gs(ic,`isNotNull`);var ac=Gs(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=oc(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function oc(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Gs(oc,`getSideAndAlignFromPlacement`);var sc=Zs,cc=$s,lc=rc,uc=Object.defineProperty,dc=_.forwardRef(((e,t)=>uc(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=_.useState(!1);Ta(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?ia.createPortal((0,j.jsx)(W.div,{...r,ref:t}),o):null},`Portal`)),fc=Object.defineProperty,pc=(e,t)=>fc(e,`name`,{value:t,configurable:!0});function mc(e,t){return _.useReducer((e,n)=>t[e][n]??e,e)}pc(mc,`useStateMachine`);var hc=pc(e=>{let{present:t,children:n}=e,r=gc(t),i=typeof n==`function`?n({present:r.isPresent}):_.Children.only(n),a=vc(r.ref,bc(i));return typeof n==`function`||r.isPresent?_.cloneElement(i,{ref:a}):null},`Presence`);function gc(e){let[t,n]=_.useState(),r=_.useRef(null),i=_.useRef(e),a=_.useRef(`none`),o=_.useRef(void 0),[s,c]=mc(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return _.useEffect(()=>{s===`mounted`?(a.current=o.current??yc(r.current),o.current=void 0):a.current=`none`},[s]),Ta(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=yc(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Ta(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=pc(a=>{let o=yc(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=pc(e=>{e.target===t&&(a.current=yc(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:_.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=yc(t)}else r.current=null;n(e)},[])}}pc(gc,`usePresence`);function _c(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}pc(_c,`setRef`);function vc(...e){let t=_.useRef(e);return t.current=e,_.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=_c(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():_c(n[e],null)}}},[])}pc(vc,`useStableComposedRefs`);function yc(e){return e?.animationName||`none`}pc(yc,`getAnimationName`);function bc(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}pc(bc,`getElementRef`);var xc=Object.defineProperty,Sc=(e,t)=>xc(e,`name`,{value:t,configurable:!0}),Cc=_.useEffectEvent,wc=_.useInsertionEffect;function Tc(e){if(typeof Cc==`function`)return Cc(e);let t=_.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof wc==`function`?wc(()=>{t.current=e}):Ta(()=>{t.current=e}),_.useMemo(()=>((...e)=>t.current?.(...e)),[])}Sc(Tc,`useEffectEvent`);var Ec=Object.defineProperty,Dc=(e,t)=>Ec(e,`name`,{value:t,configurable:!0}),Oc=_.useInsertionEffect||Ta;function kc({prop:e,defaultProp:t,onChange:n=Dc(()=>{},`onChange`),caller:r}){let[i,a,o]=Ac({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,_.useCallback(t=>{if(s){let n=jc(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Dc(kc,`useControllableState`);function Ac({defaultProp:e,onChange:t}){let[n,r]=_.useState(e),i=_.useRef(n),a=_.useRef(t);return Oc(()=>{a.current=t},[t]),_.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Dc(Ac,`useUncontrolledState`);function jc(e){return typeof e==`function`}Dc(jc,`isFunction`);var Mc=Symbol(`RADIX:SYNC_STATE`);function Nc(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Tc(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=_.useReducer((t,n)=>{if(n.type===Mc)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=_.useRef(p);_.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=_.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return _.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Mc,state:i})},[i,d.state,c]),[h,f]}Dc(Nc,`useControllableStateReducer`);var Pc=Object.defineProperty,Fc=(e,t)=>Pc(e,`name`,{value:t,configurable:!0}),Ic=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Lc=_.forwardRef(Fc(function(e,t){return(0,j.jsx)(W.span,{...e,ref:t,style:{...Ic,...e.style}})},`VisuallyHidden`)),Rc=Object.defineProperty,zc=(e,t)=>Rc(e,`name`,{value:t,configurable:!0}),[Bc,Vc]=Vi(`Tooltip`,[Js]),Hc=Js(),Uc=`TooltipProvider`,Wc=700,Gc=`tooltip.open`,[Kc,qc]=Bc(Uc),Jc=zc(e=>{let{__scopeTooltip:t,delayDuration:n=Wc,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=_.useRef(!0),s=_.useRef(!1),c=_.useRef(0);return _.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,j.jsx)(Kc,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:_.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:_.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:_.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),Yc=`Tooltip`,[Xc,Zc]=Bc(Yc),Qc=zc(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=qc(Yc,e.__scopeTooltip),l=Hc(t),[u,d]=_.useState(null),[f,p]=_.useState(void 0),m=Aa(),h=_.useRef(0),g=o??c.disableHoverableContent,v=s??c.delayDuration,y=_.useRef(!1),[b,x]=kc({prop:r,defaultProp:i??!1,onChange:zc(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Gc))):c.onClose(),a?.(e)},`onChange`),caller:Yc}),S=_.useMemo(()=>b?y.current?`delayed-open`:`instant-open`:`closed`,[b]),C=_.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,x(!0)},[x]),w=_.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),T=_.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,x(!0),h.current=0},v)},[v,x]);_.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let E=f??m;return(0,j.jsx)(sc,{...l,children:(0,j.jsx)(Xc,{scope:t,contentId:E,setContentId:p,open:b,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:_.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:_.useCallback(()=>{g?w():(window.clearTimeout(h.current),h.current=0)},[w,g]),onOpen:C,onClose:w,disableHoverableContent:g,children:n})})},`Tooltip`),$c=`TooltipTrigger`,el=_.forwardRef(zc(function(e,t){let{__scopeTooltip:n,...r}=e,i=Zc($c,n),a=qc($c,n),o=Hc(n),s=H(t,_.useRef(null),i.onTriggerChange),c=_.useRef(!1),l=_.useRef(!1),u=_.useCallback(()=>c.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,j.jsx)(cc,{asChild:!0,...o,children:(0,j.jsx)(W.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:V(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:V(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:V(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:V(e.onBlur,i.onClose),onClick:V(e.onClick,i.onClose)})})},`TooltipTrigger`)),tl=`TooltipPortal`,[nl,rl]=Bc(tl,{forceMount:void 0}),il=zc(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Zc(tl,t);return(0,j.jsx)(nl,{scope:t,forceMount:n,children:(0,j.jsx)(hc,{present:n||a.open,children:(0,j.jsx)(dc,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),al=`TooltipContent`,ol=_.forwardRef(zc(function(e,t){let n=rl(al,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Zc(al,e.__scopeTooltip);return(0,j.jsx)(hc,{present:r||o.open,children:o.disableHoverableContent?(0,j.jsx)(ll,{side:i,...a,ref:t}):(0,j.jsx)(sl,{side:i,...a,ref:t})})},`TooltipContent`)),sl=_.forwardRef(zc(function(e,t){let n=Zc(al,e.__scopeTooltip),r=qc(al,e.__scopeTooltip),i=_.useRef(null),a=H(t,i),[o,s]=_.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=_.useCallback(()=>{s(null),d(!1)},[d]),p=_.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=dl(r,ul(r,n.getBoundingClientRect())),a=fl(t.getBoundingClientRect()),o=ml([...i,...a]);s(o),d(!0)},[d]);return _.useEffect(()=>()=>f(),[f]),_.useEffect(()=>{if(c&&u){let e=zc(e=>p(e,u),`handleTriggerLeave`),t=zc(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),_.useEffect(()=>{if(o){let e=zc(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!pl(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,j.jsx)(ll,{...e,ref:a})},`TooltipContentHoverable`)),cl=Ji(`TooltipContent`),ll=_.forwardRef(zc(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=Zc(al,n),u=Hc(n),{onClose:d}=l;_.useEffect(()=>(document.addEventListener(Gc,d),()=>document.removeEventListener(Gc,d)),[d]),_.useEffect(()=>{if(l.trigger){let e=zc(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:f}=l;return Ta(()=>(f(a),()=>{f(void 0)}),[a,f]),(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,j.jsxs)(lc,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,j.jsx)(cl,{children:r}),i?(0,j.jsx)(Lc,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`));function ul(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}zc(ul,`getExitSideFromRect`);function dl(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}zc(dl,`getPaddedExitPoints`);function fl(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}zc(fl,`getPointsFromRect`);function pl(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}zc(pl,`isPointInPolygon`);function ml(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),hl(t)}zc(ml,`getHull`);function hl(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}zc(hl,`getHullPresorted`);var gl=Jc,_l=Qc,vl=el,yl=il,bl=ol;function xl(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=xl(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Sl(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xl(e))&&(r&&(r+=` `),r+=t);return r}var Cl=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},wl=(e,t)=>({classGroupId:e,validator:t}),Tl=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),El=`-`,Dl=[],Ol=`arbitrary..`,kl=e=>{let t=Ml(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return jl(e);let n=e.split(El);return Al(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Cl(i,t):t:i||Dl}return n[e]||Dl}}},Al=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Al(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(El):e.slice(t).join(El),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},jl=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ol+r:void 0})(),Ml=e=>{let{theme:t,classGroups:n}=e;return Nl(n,t)},Nl=(e,t)=>{let n=Tl();for(let r in e){let i=e[r];Pl(i,n,r,t)}return n},Pl=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Fl(i,t,n,r)}},Fl=(e,t,n,r)=>{if(typeof e==`string`){Il(e,t,n);return}if(typeof e==`function`){Ll(e,t,n,r);return}Rl(e,t,n,r)},Il=(e,t,n)=>{let r=e===``?t:zl(t,e);r.classGroupId=n},Ll=(e,t,n,r)=>{if(Bl(e)){Pl(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(wl(n,e))},Rl=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Pl(o,zl(t,a),n,r)}},zl=(e,t)=>{let n=e,r=t.split(El),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Tl(),n.nextPart.set(t,i)),n=i}return n},Bl=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Vl=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Hl=`!`,Ul=`:`,Wl=[],Gl=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Kl=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Ul){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Hl)?(c=s.slice(0,-1),l=!0):s.startsWith(Hl)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Gl(t,l,c,u)};if(t){let e=t+Ul,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Gl(Wl,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ql=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Jl=e=>({cache:Vl(e.cacheSize),parseClassName:Kl(e),sortModifiers:ql(e),postfixLookupClassGroupIds:Yl(e),...kl(e)}),Yl=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Xl=/\s+/,Zl=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Xl),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Hl:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Ql=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=$l(n))&&(i&&(i+=` `),i+=r);return i},$l=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=$l(e[r]))&&(n&&(n+=` `),n+=t);return n},eu=(e,...t)=>{let n,r,i,a,o=o=>(n=Jl(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Zl(e,n);return i(e,a),a};return a=o,(...e)=>a(Ql(...e))},tu=[],q=e=>{let t=t=>t[e]||tu;return t.isThemeGetter=!0,t.themeKey=e,t},nu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ru=/^\((?:(\w[\w-]*):)?(.+)\)$/i,iu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,au=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ou=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,su=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,cu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,uu=e=>iu.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),du=e=>!!e&&Number.isInteger(Number(e)),fu=e=>e.endsWith(`%`)&&J(e.slice(0,-1)),pu=e=>au.test(e),mu=()=>!0,hu=e=>ou.test(e)&&!su.test(e),gu=()=>!1,_u=e=>cu.test(e),vu=e=>lu.test(e),yu=e=>!Y(e)&&!X(e),bu=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),xu=e=>Iu(e,Bu,gu),Y=e=>nu.test(e),Su=e=>Iu(e,Vu,hu),Cu=e=>Iu(e,Hu,J),wu=e=>Iu(e,Wu,mu),Tu=e=>Iu(e,Uu,gu),Eu=e=>Iu(e,Ru,gu),Du=e=>Iu(e,zu,vu),Ou=e=>Iu(e,Gu,_u),X=e=>ru.test(e),ku=e=>Lu(e,Vu),Au=e=>Lu(e,Uu),ju=e=>Lu(e,Ru),Mu=e=>Lu(e,Bu),Nu=e=>Lu(e,zu),Pu=e=>Lu(e,Gu,!0),Fu=e=>Lu(e,Wu,!0),Iu=(e,t,n)=>{let r=nu.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Lu=(e,t,n=!1)=>{let r=ru.exec(e);return r?r[1]?t(r[1]):n:!1},Ru=e=>e===`position`||e===`percentage`,zu=e=>e===`image`||e===`url`,Bu=e=>e===`length`||e===`size`||e===`bg-size`,Vu=e=>e===`length`,Hu=e=>e===`number`,Uu=e=>e===`family-name`,Wu=e=>e===`number`||e===`weight`,Gu=e=>e===`shadow`,Ku=eu(()=>{let e=q(`color`),t=q(`font`),n=q(`text`),r=q(`font-weight`),i=q(`tracking`),a=q(`leading`),o=q(`breakpoint`),s=q(`container`),c=q(`spacing`),l=q(`radius`),u=q(`shadow`),d=q(`inset-shadow`),f=q(`text-shadow`),p=q(`drop-shadow`),m=q(`blur`),h=q(`perspective`),g=q(`aspect`),_=q(`ease`),v=q(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),X,Y],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[X,Y,c],T=()=>[uu,`full`,`auto`,...w()],E=()=>[du,`none`,`subgrid`,X,Y],D=()=>[`auto`,{span:[`full`,du,X,Y]},du,X,Y],O=()=>[du,`auto`,X,Y],k=()=>[`auto`,`min`,`max`,`fr`,X,Y],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[uu,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[s,uu,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[uu,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,X,Y],L=()=>[...b(),ju,Eu,{position:[X,Y]}],ee=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],te=()=>[`auto`,`cover`,`contain`,Mu,xu,{size:[X,Y]}],ne=()=>[fu,ku,Su],re=()=>[``,`none`,`full`,l,X,Y],ie=()=>[``,J,ku,Su],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],se=()=>[J,fu,ju,Eu],ce=()=>[``,`none`,m,X,Y],le=()=>[`none`,J,X,Y],ue=()=>[`none`,J,X,Y],R=()=>[J,X,Y],de=()=>[uu,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[pu],breakpoint:[pu],color:[mu],container:[pu],"drop-shadow":[pu],ease:[`in`,`out`,`in-out`],font:[yu],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[pu],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[pu],shadow:[pu],spacing:[`px`,J],text:[pu],"text-shadow":[pu],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,uu,Y,X,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,X,Y]}],"container-named":[bu],columns:[{columns:[J,`auto`,Y,X,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[du,`auto`,X,Y]}],basis:[{basis:[uu,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[J,uu,`auto`,`initial`,`none`,Y]}],grow:[{grow:[``,J,X,Y]}],shrink:[{shrink:[``,J,X,Y]}],order:[{order:[du,`first`,`last`,`none`,X,Y]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...N()]}],"font-size":[{text:[`base`,n,ku,Su]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Fu,wu]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,fu,Y]}],"font-family":[{font:[Au,Tu,t]}],"font-features":[{"font-features":[Y]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,X,Y]}],"line-clamp":[{"line-clamp":[J,`none`,X,Cu]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,X,Y]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,X,Y]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[J,`from-font`,`auto`,X,Su]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[J,`auto`,X,Y]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[du,X,Y]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,X,Y]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,X,Y]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:te()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},du,X,Y],radial:[``,X,Y],conic:[``,du,X,Y]},Nu,Du]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-bs":[{"border-bs":ie()}],"border-w-be":[{"border-be":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[J,X,Y]}],"outline-w":[{outline:[``,J,ku,Su]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`inner`,`none`,u,Pu,Ou]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,Pu,Ou]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ie()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[J,Su]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,Pu,Ou]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[J,X,Y]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[X,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,X,Y]}],filter:[{filter:[``,`none`,X,Y]}],blur:[{blur:ce()}],brightness:[{brightness:[J,X,Y]}],contrast:[{contrast:[J,X,Y]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Pu,Ou]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,J,X,Y]}],"hue-rotate":[{"hue-rotate":[J,X,Y]}],invert:[{invert:[``,J,X,Y]}],saturate:[{saturate:[J,X,Y]}],sepia:[{sepia:[``,J,X,Y]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,X,Y]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[J,X,Y]}],"backdrop-contrast":[{"backdrop-contrast":[J,X,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,J,X,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,X,Y]}],"backdrop-invert":[{"backdrop-invert":[``,J,X,Y]}],"backdrop-opacity":[{"backdrop-opacity":[J,X,Y]}],"backdrop-saturate":[{"backdrop-saturate":[J,X,Y]}],"backdrop-sepia":[{"backdrop-sepia":[``,J,X,Y]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,X,Y]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[J,`initial`,X,Y]}],ease:[{ease:[`linear`,`initial`,_,X,Y]}],delay:[{delay:[J,X,Y]}],animate:[{animate:[`none`,v,X,Y]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,X,Y]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:R()}],"skew-x":[{"skew-x":R()}],"skew-y":[{"skew-y":R()}],transform:[{transform:[X,Y,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":[`translate-none`],zoom:[{zoom:[du,X,Y]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,X,Y]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,X,Y]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[J,ku,Su,Cu]}],stroke:[{stroke:[`none`,...I()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Z(...e){return Ku(Sl(e))}var qu=`matrx-motion-overlay`,Ju=`matrx-motion-popper`,Yu={top:`matrx-motion-sheet-top`,bottom:`matrx-motion-sheet-bottom`,left:`matrx-motion-sheet-left`,right:`matrx-motion-sheet-right`,center:`matrx-motion-sheet-center`},Q=`matrx-spin`;[...Object.values(Yu)];var Xu=Symbol.for(`ai-matrx.design-system.portal-container-context`),Zu=globalThis,Qu=Zu[Xu]??=_.createContext(void 0);function $u({container:e,children:t}){return(0,j.jsx)(Qu.Provider,{value:e??void 0,children:t})}function ed(e){let t=_.useContext(Qu);return e===void 0?t??void 0:e??void 0}var td=`data-matrx-title`,nd=`data-matrx-tooltip-trigger`,rd=350,id=500,ad=6,od=8,sd=`matrx-tooltip matrx-title-tooltip matrx-motion-popper z-[10001] rounded-md border border-border bg-popover px-2.5 py-1 text-xs font-medium text-popover-foreground`,cd=Symbol.for(`@ai-matrx/design-system/title-tooltips`),ld={get:e=>e[cd],set:(e,t)=>{e[cd]=t},delete:e=>{delete e[cd]}};function ud(e=typeof document>`u`?void 0:document){if(!e)return()=>{};let t=ld.get(e);t?t.count+=1:ld.set(e,{count:1,uninstall:dd(e)});let n=!1;return()=>{if(n)return;n=!0;let t=ld.get(e);t&&(--t.count,t.count<=0&&(t.uninstall(),ld.delete(e)))}}function dd(e){let t=e.defaultView,n=null,r=null,i,a=0,o=t?.HTMLElement,s=e=>{if(!o||!(e instanceof t.Node))return null;let n=e instanceof o?e:e.parentElement;if(!n)return null;let r=n.closest(`[title], [${td}]`);return!r||!(r instanceof o)||r.closest(`[data-native-title]`)?null:r},c=e=>(e.getAttribute(`data-matrx-title`)??e.getAttribute(`title`)??``).trim(),l=e=>{let t=e.getAttribute(`title`);t!==null&&(e.setAttribute(td,t),e.removeAttribute(`title`))},u=e=>{let t=e.getAttribute(td);t!==null&&(e.hasAttribute(`title`)||e.setAttribute(`title`,t),e.removeAttribute(td))},d=()=>r&&r.isConnected?r:(r=e.createElement(`div`),r.setAttribute(`role`,`tooltip`),r.setAttribute(`data-slot`,`title-tooltip`),r.className=sd,r.style.visibility=`hidden`,e.body.appendChild(r),r),f=e=>{let t=e.closest(`[data-title-side]`)?.getAttribute(`data-title-side`);return t===`bottom`||t===`left`||t===`right`?t:`top`},p=(e,n)=>{let r=t?.innerWidth??0,i=t?.innerHeight??0,a=e.getBoundingClientRect(),o=n.getBoundingClientRect(),s={top:a.top-ad-o.height>=od,bottom:a.bottom+ad+o.height<=i-od,left:a.left-ad-o.width>=od,right:a.right+ad+o.width<=r-od},c={top:`bottom`,bottom:`top`,left:`right`,right:`left`},l=f(e),u=s[l]?l:s[c[l]]?c[l]:l,d,p;u===`top`||u===`bottom`?(d=a.left+a.width/2-o.width/2,p=u===`top`?a.top-ad-o.height:a.bottom+ad):(p=a.top+a.height/2-o.height/2,d=u===`left`?a.left-ad-o.width:a.right+ad),d=Math.min(Math.max(d,od),Math.max(od,r-od-o.width)),p=Math.min(Math.max(p,od),Math.max(od,i-od-o.height)),n.style.transform=`translate(${Math.round(d)}px, ${Math.round(p)}px)`,n.setAttribute(`data-side`,u)},m=(e,n)=>{let r=e.getBoundingClientRect();if(r.width<=0||r.height<=0)return!1;for(let r=e;r;r=r===n?null:r.parentElement){let e=t?.getComputedStyle(r);if(!e||e.display===`none`||e.visibility===`hidden`||Number(e.opacity)===0)return!1}return!0},h=(n,r)=>{let i=e=>e.replace(/\s+/g,` `).trim().toLowerCase(),a=i(r);if(!a||!t)return!1;let o=e.createTreeWalker(n,t.NodeFilter.SHOW_TEXT);for(let e=o.nextNode();e;e=o.nextNode()){if(i(e.textContent??``)!==a)continue;let t=e.parentElement;if(t&&m(t,n)&&!(t.scrollWidth>t.clientWidth+1))return!0}return!1},g=(e,t)=>{if(n!==e||e.closest(`[data-matrx-tooltip-trigger]`))return;let r=c(e);if(!r||!e.isConnected||h(e,r))return;let i=d();i.textContent=r,i.style.visibility=`hidden`,i.setAttribute(`data-state`,t?`instant-open`:`delayed-open`),p(e,i),i.style.visibility=`visible`,e.id&&(i.id=`${e.id}-title-tooltip`)},_=()=>{i!==void 0&&clearTimeout(i),i=void 0,r&&r.style.visibility===`visible`&&(a=Date.now()),r&&(r.style.visibility=`hidden`,r.removeAttribute(`data-state`))},v=e=>{n!==e&&(y(),n=e,l(e),Date.now()-a<id?g(e,!0):i=setTimeout(()=>g(e,!1),rd))},y=()=>{_(),n&&u(n),n=null},b=e=>{if(e.pointerType===`touch`)return;let t=s(e.target);t?v(t):n&&y()},x=e=>{if(!n)return;let r=e.relatedTarget;r instanceof t.Node&&n.contains(r)||y()},S=e=>{let t=s(e.target);if(!t)return;let n=!0;try{n=e.target.matches(`:focus-visible`)}catch{n=!0}n&&v(t)},C=e=>{if(!n)return;let r=e.relatedTarget;r instanceof t.Node&&n.contains(r)||y()},w=()=>y(),T=e=>{e.key===`Escape`&&y()};return e.addEventListener(`pointerover`,b,!0),e.addEventListener(`pointerout`,x,!0),e.addEventListener(`focusin`,S,!0),e.addEventListener(`focusout`,C,!0),e.addEventListener(`pointerdown`,w,!0),e.addEventListener(`keydown`,T,!0),e.addEventListener(`scroll`,w,!0),t?.addEventListener(`blur`,w),()=>{y(),e.removeEventListener(`pointerover`,b,!0),e.removeEventListener(`pointerout`,x,!0),e.removeEventListener(`focusin`,S,!0),e.removeEventListener(`focusout`,C,!0),e.removeEventListener(`pointerdown`,w,!0),e.removeEventListener(`keydown`,T,!0),e.removeEventListener(`scroll`,w,!0),t?.removeEventListener(`blur`,w),r?.remove(),r=null}}function fd({titleTooltips:e=!0,...t}){return _.useEffect(()=>{if(e)return ud()},[e]),(0,j.jsx)(gl,{...t})}var pd=_l,md=_.forwardRef((e,t)=>(0,j.jsx)(vl,{ref:t,[nd]:``,...e}));md.displayName=vl.displayName;var hd=_.forwardRef(({className:e,sideOffset:t=4,container:n,animated:r=!0,...i},a)=>{let o=ed(n);return(0,j.jsx)(yl,{container:o??null,children:(0,j.jsx)(bl,{ref:a,"data-slot":`tooltip-content`,sideOffset:t,className:Z(`matrx-tooltip z-[10001] overflow-hidden rounded-md border border-border bg-popover px-2.5 py-1 text-xs font-medium text-popover-foreground`,r&&`matrx-motion-popper`,e),...i})})});hd.displayName=bl.displayName;function gd(...e){return e.filter(Boolean).join(` `).trim()}function _d(e){for(let t=e;t;t=t.parentElement){let e=t.offsetWidth;if(!e)continue;let n=t.getBoundingClientRect().width;if(!(n>0))continue;let r=n/e;return!Number.isFinite(r)||r<=0||Math.abs(r-1)<.02?1:r}return 1}var vd=Symbol.for(`@ai-matrx/tap-target:guard`);function yd(){return globalThis[vd]===!0}var bd=[`--matrx-tap-box`,`--matrx-tap-gap`,`--matrx-tap-pill-size`,`--matrx-tap-pill-sm-size`,`--matrx-tap-wide-size`,`--matrx-tap-icon-size`,`--matrx-tap-touch-min`,`--matrx-tap-target-size`],xd=[{scope:`[data-matrx-table][data-matrx-table-density]`,tokens:new Set([`--matrx-tap-target-size`,`--matrx-tap-pill-size`,`--matrx-tap-wide-size`,`--matrx-tap-pill-sm-size`,`--matrx-tap-icon-size`])},{scope:`[data-alchemy-trigger]`,tokens:new Set([`--matrx-tap-icon-size`])},{scope:`[data-matrx-controls]`,tokens:new Set([`--matrx-tap-target-size`,`--matrx-tap-pill-size`,`--matrx-tap-wide-size`,`--matrx-tap-pill-sm-size`])}],Sd=xd[0].scope,Cd=xd[2].scope,wd=`.matrx-tap-target, .matrx-tap-group`,Td=/^(?:[^\s:]+:)*!?-?(?:\[&|scale|translate|h|w|size|min-h|min-w|max-h|max-w|p|px|py|ps|pe|pt|pb|pl|pr|m|mx|my|ms|me|mt|mb|ml|mr|gap|space-x|space-y|bg|rounded|border|ring|shadow|absolute|relative|fixed|sticky|inset|top|left|right|bottom|flex|grid|block|inline|hidden|z|shrink|grow|basis|self|order)(?:-|$|\[)/;function Ed(e){if(!yd()||!e)return null;let t=e.split(/\s+/).filter(e=>e&&Td.test(e));return t.length?`className is the glyph colour only — remove "${t.join(` `)}"`:null}function Dd(e){let t=Number.parseFloat(e);return Number.isFinite(t)?t:0}function Od(e){let t=typeof e.className==`string`?e.className.trim().split(/\s+/).slice(0,4).join(`.`):``;return`<${e.tagName.toLowerCase()}${t?`.${t}`:``}>`}function kd(e,t){let n=t.getComputedStyle(e);return n.position===`absolute`||n.position===`fixed`||n.display===`none`}function Ad(e){return e.matches(wd)?1:e.querySelectorAll(wd).length}function jd(e,t,n){let r=``,i=e=>{e!==t&&(e.nodeType===3?r+=e.textContent??``:e.nodeType===1&&!kd(e,n)&&e.childNodes.forEach(i))};return e.childNodes.forEach(i),r.trim()}function Md(e,t){if(e.matches(wd))return!0;if(Ad(e)!==1)return!1;let n=e.querySelector(wd);return!Array.from(e.querySelectorAll(`input, select, textarea, button, a, [role='button']`)).some(e=>e!==n&&!n.contains(e))&&jd(e,n,t)===``}var Nd=null;function Pd(e){let t=e.defaultView,n=t.getComputedStyle(e.documentElement),r=bd.map(e=>n.getPropertyValue(e)).join(`|`);if(Nd?.key===r)return Nd;let i=e.createElement(`div`);i.setAttribute(`aria-hidden`,`true`),i.style.cssText=`position:absolute;visibility:hidden;pointer-events:none;left:-9999px;top:0`,i.innerHTML=`<button class="matrx-tap-target"><div class="matrx-tap-pill"><svg class="matrx-tap-icon"></svg></div></button><button class="matrx-tap-target matrx-tap-target-sm"><div class="matrx-tap-pill matrx-tap-pill-sm"></div></button><button class="matrx-tap-target matrx-tap-target-inline"><div class="matrx-tap-pill matrx-tap-pill-inline"></div></button>`,e.body.appendChild(i);let[a,o,s]=Array.from(i.children);return Nd={key:r,target:a.offsetHeight,pill:a.firstElementChild.offsetHeight,icon:Dd(t.getComputedStyle(a.querySelector(`svg`)).height),sm:o.offsetHeight,smPill:o.firstElementChild.offsetHeight,wide:s.firstElementChild.offsetHeight},i.remove(),Nd}function Fd(e){let t=e.ownerDocument,n=t.defaultView;if(!n||!e.isConnected)return null;let r=n.getComputedStyle(e);if(r.display===`none`)return null;let i=n.getComputedStyle(t.documentElement),a=e.closest(Sd)!==null||e.closest(Cd)!==null,o=new Set;for(let t of bd){let n=r.getPropertyValue(t).trim();if(n!==i.getPropertyValue(t).trim()){if(!xd.some(n=>n.tokens.has(t)&&e.closest(n.scope)))return`${t} overridden to "${n}" — tap geometry is not configurable`;o.add(t)}}let s=e.classList.contains(`matrx-tap-target-sm`),c=/matrx-tap-target-(?:inline|mobile-icon-only)/.test(e.className),l=e.querySelector(`:scope > .matrx-tap-pill`),u=l?.querySelector(`.matrx-tap-icon`)??null,d=Dd(r.minHeight)>=e.offsetHeight-.5||Dd(r.minWidth)>=e.offsetWidth-.5;if(!a&&l&&!d){let r=Pd(t),i=s?r.sm:r.target,a=s?[r.smPill]:c?[r.pill,r.wide]:[r.pill];if(Math.abs(e.offsetHeight-i)>.5)return`button is ${e.offsetHeight}px tall, canon is ${i}px`;if(!c&&Math.abs(e.offsetWidth-i)>.5)return`button is ${e.offsetWidth}px wide, canon is ${i}px`;if(!a.some(e=>Math.abs(l.offsetHeight-e)<=.5))return`pill is ${l.offsetHeight}px, canon is ${a.join(` or `)}px`;if(u&&!o.has(`--matrx-tap-icon-size`)){let e=Dd(n.getComputedStyle(u).height);if(Math.abs(e-r.icon)>.5)return`glyph is ${e}px, canon is ${r.icon}px`}}let f=e;if(e.parentElement?.matches(`.matrx-tap-group-row, .matrx-tap-search-measure`)){let t=e.closest(`.matrx-tap-group`);if(t&&Ad(e.parentElement)>1)return null;f=t??e}for(let e=0;e<2;e+=1){let e=f.parentElement;if(!e||e===t.body||Array.from(e.children).filter(e=>e!==f&&!kd(e,n)).length>0||jd(e,f,n)!==``)break;let r=n.getComputedStyle(e),i=Dd(r.marginLeft)+Dd(r.marginRight)+Dd(r.paddingLeft)+Dd(r.paddingRight);if(i>.5)return`${Od(e)} adds ${i}px around a tap button — tap buttons space themselves`;f=e}let p=f.parentElement;if(p){let e=n.getComputedStyle(p),t=/flex|grid/.test(e.display),r=Array.from(p.children).filter(e=>e!==f&&Md(e,n));if(t&&r.length>0){let t=Dd(e.display.includes(`grid`)||!e.flexDirection.startsWith(`column`)?e.columnGap:e.rowGap);if(t>.5)return`${Od(p)} adds a ${t}px gap between tap buttons — remove it; tap buttons space themselves`}}return null}var Id=`.matrx-glass-thin-border, .matrx-glass-interactive`;function Ld(e){if(e.hasAttribute(`data-matrx-glass`))return!0;if(e.matches(`.matrx-tap-group`))return e.querySelector(`:scope > .matrx-tap-group-capsule.matrx-glass-thin-border`)!==null;if(e.matches(`.matrx-tap-target`))return e.querySelector(`:scope > .matrx-tap-pill:is(${Id})`)!==null;let t=e.ownerDocument.defaultView;return t&&Md(e,t)?Ld(e.querySelector(wd)):!1}var Rd=/^(auto|scroll|overlay)$/;function zd(e,t){for(let n=e;n&&n!==e.ownerDocument.body;n=n.parentElement){if(n.hasAttribute(`data-matrx-glass-plane`))return!0;let r=t.getComputedStyle(n);if(r.position===`fixed`||r.position===`sticky`)return!0;if(n!==e&&(Rd.test(r.overflowY)||Rd.test(r.overflowX)))return!1}return!1}function Bd(e,t,n){for(let r=e;r;){if(Md(r,n))return!0;let e=Array.from(r.children).filter(e=>!kd(e,n));r=(t===`after`?e[0]:e[e.length-1])??null}return!1}function Vd(e,t){if(e.getAttribute(`aria-hidden`)===`true`||kd(e,t))return!1;let n=e.getBoundingClientRect();return n.width>1&&n.height>1}function Hd(e){let t=e.ownerDocument.defaultView;if(!t||!e.isConnected)return null;let n=e.closest(`.matrx-tap-group`)??e,r=Ld(n);if(r&&!zd(n,t))return`glass on a solid surface — glass only floats over moving content; use variant="transparent" (or a solid group)`;let i=n.parentElement;if(!i)return null;if(r){let e=Array.from(i.children).find(e=>e!==n&&Vd(e,t)&&!Ld(e));if(e)return`glass beside non-glass ${Od(e)} — make the row all glass or none`}let a=e.querySelector(`:scope > .matrx-tap-pill`)??n.querySelector(`.matrx-tap-group-capsule`);if(!a)return null;let o=Dd(t.getComputedStyle(e).getPropertyValue(`--matrx-tap-gap`))||6,s=a.getBoundingClientRect();if(s.width===0)return null;let c=_d(a);for(let[e,r]of[[`after`,n.nextElementSibling],[`before`,n.previousElementSibling]]){if(!r||!Vd(r,t)||Md(r,t)||Ld(r)||Bd(r,e,t))continue;let n=r.getBoundingClientRect();if(Math.abs(n.top+n.height/2-(s.top+s.height/2))>s.height)continue;let i=t.getComputedStyle(r),a=(e===`after`?n.left-s.right:s.left-n.right)/c+Dd(e===`after`?i.paddingLeft:i.paddingRight);if(a<o-.5)return`${Od(r)} sits ${Math.round(a)}px from the pill — anything beside a tap button adds its own ${o/2}px (the box only carries ${o/2}px)`}return null}var Ud=new Set;function Wd(e,t){e.setAttribute(`data-matrx-tap-violation`,t);let n=`${t}@${e.getAttribute(`aria-label`)??e.textContent??``}`;Ud.has(n)||(Ud.add(n),console.error(`[tap-target] ${t}`,e))}var Gd=new Set,Kd=null,qd=!1;function Jd(e){let t=Fd(e);if(t){Wd(e,t);return}e.removeAttribute(`data-matrx-tap-violation`);let n=Hd(e);if(n){e.setAttribute(`data-matrx-tap-warning`,n);let t=`w:${n}@${e.getAttribute(`aria-label`)??``}`;Ud.has(t)||(Ud.add(t),console.error(`[tap-target] ${n}`,e))}else e.removeAttribute(`data-matrx-tap-warning`)}function Yd(e){qd||(qd=!0,e.addEventListener(`resize`,()=>{Kd&&clearTimeout(Kd),Kd=setTimeout(()=>Gd.forEach(e=>e.isConnected?Jd(e):Gd.delete(e)),200)}))}function Xd(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Zd(e,t){let n=(0,_.useRef)(null);return(0,_.useCallback)(r=>{if(Xd(e,r),n.current&&n.current!==r&&Gd.delete(n.current),n.current=r,!yd()||!r)return;if(t){Wd(r,t);return}let i=r.ownerDocument.defaultView;i&&(Gd.add(r),Yd(i),i.requestAnimationFrame(()=>Jd(r)))},[e,t])}var Qd={default:`text-foreground`,muted:`text-muted-foreground group-hover/tap:text-foreground`,primary:`text-primary`,destructive:`text-destructive`,success:`text-success`,warning:`text-warning`,info:`text-info`},$d={primary:{fill:`bg-primary group-hover/tap:bg-primary/85`,glyph:`text-primary-foreground`},destructive:{fill:`bg-destructive group-hover/tap:bg-destructive/85`,glyph:`text-destructive-foreground`},success:{fill:`bg-success group-hover/tap:bg-success/85`,glyph:`text-success-foreground`},warning:{fill:`bg-warning group-hover/tap:bg-warning/85`,glyph:`text-warning-foreground`},neutral:{fill:`bg-foreground group-hover/tap:bg-foreground/85`,glyph:`text-background`}},ef=typeof navigator<`u`&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent);function tf(e){let t=e.toLowerCase().split(`+`),n=t.pop()??``;return{mod:t.includes(`mod`),shift:t.includes(`shift`),alt:t.includes(`alt`),key:n}}function nf(e){let t=tf(e),n=t.key.length===1?t.key.toUpperCase():t.key[0].toUpperCase()+t.key.slice(1);return ef?`${t.alt?`⌥`:``}${t.shift?`⇧`:``}${t.mod?`⌘`:``}${n}`:[t.mod&&`Ctrl`,t.alt&&`Alt`,t.shift&&`Shift`,n].filter(Boolean).join(`+`)}function rf(e){let t=e;return!!t&&(t.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName))}function af(e,t){let n=tf(t);return(e.metaKey||e.ctrlKey)!==n.mod||e.altKey!==n.alt||/^[a-z0-9]$|^[a-z]{2,}$/.test(n.key)&&e.shiftKey!==n.shift||!n.mod&&rf(e.target)?!1:e.key.toLowerCase()===n.key}function of(e,t,n){(0,_.useEffect)(()=>{if(!e||!n)return;let r=n=>{if(!af(n,e))return;let r=t();r&&r.isConnected&&(n.preventDefault(),r.click())};return window.addEventListener(`keydown`,r),()=>window.removeEventListener(`keydown`,r)},[e,n,t])}function sf({badge:e}){return e===`dot`?(0,j.jsx)(`span`,{"aria-hidden":`true`,className:`matrx-tap-badge`,"data-dot":``}):e<=0?null:(0,j.jsx)(`span`,{"aria-hidden":`true`,className:`matrx-tap-badge`,children:e>99?`99+`:e})}function cf({className:e}){return(0,j.jsx)(`svg`,{className:e,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:2,"aria-hidden":`true`,children:(0,j.jsx)(`circle`,{className:Q,cx:`12`,cy:`12`,r:`9`,strokeDasharray:`28.27`,strokeDashoffset:`9`,strokeLinecap:`round`,style:{transformOrigin:`12px 12px`}})})}function lf(){return(0,j.jsx)(`svg`,{className:`matrx-tap-chevron`,"aria-hidden":`true`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,j.jsx)(`path`,{d:`m6 9 6 6 6-6`})})}function uf(e,t){return t?(0,j.jsxs)(`span`,{className:`matrx-tap-tooltip`,children:[e,(0,j.jsx)(`kbd`,{className:`matrx-tap-kbd`,children:nf(t)})]}):e}var df=Symbol.for(`@ai-matrx/tap-target:link-component`);function ff(){return globalThis[df]??null}var pf=/^(https?:|mailto:|tel:)/i,mf=`matrx-tap-target group group/tap`,hf=`matrx-tap-target matrx-tap-target-sm group group/tap`;function gf({icon:e,children:t,strokeWidth:n=2,className:r}){return e?(0,_.isValidElement)(e)?(0,_.cloneElement)(e,{className:gd(r,e.props.className)}):(0,j.jsx)(`span`,{className:r,children:e}):(0,j.jsx)(`svg`,{className:r,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:n,strokeLinecap:`round`,strokeLinejoin:`round`,children:t})}function _f(e,t,n){let r=!!e;return t===`sm`?{outerClassName:r&&n?`matrx-tap-target matrx-tap-target-sm matrx-tap-target-mobile-icon-only-sm group group/tap`:r?`matrx-tap-target matrx-tap-target-sm matrx-tap-target-inline-sm group group/tap`:hf,inlineModifier:n?`matrx-tap-pill-mobile-icon-only-sm`:`matrx-tap-pill-inline-sm`}:{outerClassName:r&&n?`${mf} matrx-tap-target-mobile-icon-only`:r?`${mf} matrx-tap-target-inline`:mf,inlineModifier:n?`matrx-tap-pill-mobile-icon-only`:`matrx-tap-pill-inline`}}function vf({label:e,pillClassName:t,iconClassName:n,labelClassName:r,inlineModifier:i,icon:a,children:o,strokeWidth:s=2,loading:c,chevron:l}){let u=c?(0,j.jsx)(cf,{className:n}):(0,j.jsx)(gf,{icon:a,strokeWidth:s,className:n,children:o}),d=e?`${t} ${i}`.trim():t;return e?(0,j.jsxs)(`div`,{className:d,children:[u,(0,j.jsx)(`span`,{className:r??`matrx-tap-label`,children:e}),l?(0,j.jsx)(lf,{}):null]}):(0,j.jsx)(`div`,{className:d,children:u})}function yf({size:e=`default`,colorClassName:t,pillClassName:n,iconClassName:r,labelClassName:i,icon:a,children:o,strokeWidth:s,label:c,mobileIconOnly:l=!1,onClick:u,as:d,htmlFor:f,ariaLabel:p,disabled:m,href:h,target:g,rel:v,prefetch:y,linkComponent:b,tooltip:x,tooltipSide:S,tooltipAlign:C,rest:w,buttonRef:T}){let{tone:E,badge:D,pressed:O,loading:k,disabledReason:A,shortcut:M,chevron:N,...P}=w??{},F=!!(m||A),I=A||(typeof x==`string`&&x?x:void 0)||p||c,L=x===!1,ee=Zd(T,(I?null:`every tap button needs a tooltip — pass ariaLabel`)??Ed(t??P.className)??(P.style?`style is not supported on a tap button`:null)),te=(0,_.useRef)(null),ne=(0,_.useCallback)(e=>{te.current=e,ee(e)},[ee]);of(M,(0,_.useCallback)(()=>te.current,[]),!F&&!k);let re=E?Qd[E]:O&&!t?Qd.primary:null;re&&(r=`matrx-tap-icon ${re}`,i=`matrx-tap-label ${re}`),O&&(n=`${n} matrx-tap-pressed`);let{outerClassName:ie,inlineModifier:ae}=_f(c,e,l),oe=l?`${i??`matrx-tap-label`} matrx-tap-label-mobile-icon-only`:i,se=vf({label:c,pillClassName:n,iconClassName:r,labelClassName:oe,inlineModifier:c?ae:``,icon:a,children:o,strokeWidth:s,loading:k,chevron:N}),ce=bf({href:h,target:g,rel:v,prefetch:y,linkComponent:b,as:d,htmlFor:f,onClick:k?void 0:u,ariaLabel:c&&!l?void 0:p??c,disabled:F,outerClassName:ie,title:L&&I?M?`${I} (${nf(M)})`:I:void 0,children:(0,j.jsxs)(j.Fragment,{children:[se,D===void 0?null:(0,j.jsx)(sf,{badge:D})]}),rest:{...P,...O===void 0?{}:{"aria-pressed":O},...k?{"aria-busy":!0}:{},...M?{"aria-keyshortcuts":M.replace(/mod/i,`Meta`)}:{}},triggerRef:ne});return L||!I?ce:xf(ce,{tooltip:I,ariaLabel:I,disabled:F,tooltipSide:S,tooltipAlign:C,shortcut:M})}function bf({href:e,target:t,rel:n,prefetch:r,linkComponent:i,as:a,htmlFor:o,onClick:s,ariaLabel:c,disabled:l,outerClassName:u,children:d,rest:f,triggerRef:p,title:m}){let{style:h,...g}=f??{};if(l&&e)return(0,j.jsx)(`span`,{ref:p,"aria-disabled":`true`,"aria-label":c,title:m,className:`${u} opacity-40`,children:d});if(e){if(pf.test(e))return(0,j.jsx)(`a`,{ref:p,href:e,target:t??`_blank`,rel:n??`noopener noreferrer`,"aria-label":c,title:m,className:u,children:d});let a=i??ff();return a?(0,j.jsx)(a,{ref:p,href:e,target:t,rel:n,prefetch:r,"aria-label":c,title:m,className:u,children:d}):(0,j.jsx)(`a`,{ref:p,href:e,target:t,rel:n,"aria-label":c,title:m,className:u,children:d})}return a===`label`?(0,j.jsx)(`label`,{ref:p,htmlFor:o,"aria-label":c,title:m,className:u,children:d}):(0,j.jsx)(`button`,{ref:p,type:`button`,onClick:s,"aria-label":c,title:m,disabled:l,...g,className:u,children:d})}function xf(e,{tooltip:t,ariaLabel:n,disabled:r,tooltipSide:i=`top`,tooltipAlign:a=`center`,shortcut:o}){if(t===!1)return e;let s=typeof t==`string`&&t.length>0?t:n;return s?(0,j.jsxs)(pd,{children:[(0,j.jsx)(md,{asChild:!0,children:r?(0,j.jsx)(`span`,{className:`inline-flex`,children:e}):e}),(0,j.jsx)(hd,{side:i,align:a,children:uf(s,o)})]}):e}var Sf=(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,className:i,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,...y},b){return yf({colorClassName:i,icon:e,children:t,strokeWidth:n,onClick:r,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,pillClassName:`matrx-tap-pill matrx-glass-thin-border`,iconClassName:`matrx-tap-icon ${i??`text-foreground`}`,rest:y,buttonRef:b})});(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,className:i,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,...y},b){return yf({colorClassName:i,icon:e,children:t,strokeWidth:n,onClick:r,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,pillClassName:`matrx-tap-pill group-hover/tap:bg-muted group-active/tap:bg-muted-foreground/15`,iconClassName:`matrx-tap-icon ${i??`text-foreground`}`,rest:y,buttonRef:b})}),(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,className:i,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,...y},b){let x=i??`text-muted-foreground group-hover/tap:text-foreground`;return yf({colorClassName:i,icon:e,children:t,strokeWidth:n,onClick:r,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,pillClassName:`matrx-tap-pill border border-border bg-transparent transition-colors group-hover/tap:border-primary/60 group-active/tap:bg-muted`,iconClassName:`matrx-tap-icon ${x}`,labelClassName:`matrx-tap-label ${x}`,rest:y,buttonRef:b})});var Cf=(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,as:i,htmlFor:a,ariaLabel:o,disabled:s,href:c,target:l,rel:u,prefetch:d,linkComponent:f,tone:p,bgColor:m,iconColor:h,hoverBgColor:g,activeBgColor:_,tooltip:v,tooltipSide:y,tooltipAlign:b,label:x,mobileIconOnly:S,...C},w){return yf({icon:e,children:t,strokeWidth:n,onClick:r,as:i,htmlFor:a,ariaLabel:o,disabled:s,href:c,target:l,rel:u,prefetch:d,linkComponent:f,tooltip:v,tooltipSide:y,tooltipAlign:b,label:x,mobileIconOnly:S,...wf(p,m,h,g,_),rest:C,buttonRef:w})});function wf(e,t,n,r,i){if(!(!e&&(t||n||r||i))){let t=$d[e??`primary`];return{pillClassName:`matrx-tap-pill ${t.fill} ${t.glyph} group-active/tap:brightness-90`,iconClassName:`matrx-tap-icon ${t.glyph}`,labelClassName:`matrx-tap-label ${t.glyph}`}}let a=n??`text-primary-foreground`;return{pillClassName:`matrx-tap-pill ${t??`bg-primary`} ${a} ${r??`group-hover/tap:bg-primary/80`} ${i??`group-active/tap:brightness-90`}`,iconClassName:`matrx-tap-icon ${a}`,labelClassName:`matrx-tap-label ${a}`}}(0,_.forwardRef)(function({tone:e=`destructive`,...t},n){return(0,j.jsx)(Cf,{ref:n,tone:e,...t})}),(0,_.forwardRef)(function({icon:e,children:t,strokeWidth:n=2,onClick:r,className:i,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,...y},b){let x=i??`text-foreground`;return yf({colorClassName:i,size:`sm`,icon:e,children:t,strokeWidth:n,onClick:r,as:a,htmlFor:o,ariaLabel:s,disabled:c,href:l,target:u,rel:d,prefetch:f,linkComponent:p,tooltip:m,tooltipSide:h,tooltipAlign:g,label:_,mobileIconOnly:v,pillClassName:`matrx-tap-pill matrx-tap-pill-sm matrx-glass-interactive`,iconClassName:`matrx-tap-icon ${x}`,labelClassName:`matrx-tap-label ${x}`,rest:y,buttonRef:b})});function Tf(e){let t=(0,_.useRef)(null),n=(0,_.useRef)(!0),r=(0,_.useRef)(!1),[i,a]=(0,_.useState)(!0),[o,s]=(0,_.useState)(!1),c=(0,_.useCallback)(e=>e.scrollHeight-e.scrollTop-e.clientHeight<=48,[]),l=(0,_.useCallback)(e=>{r.current=!0,e.scrollTop=e.scrollHeight},[]),u=(0,_.useCallback)(()=>{let e=t.current;if(e===null)return;if(r.current){r.current=!1;return}let i=c(e);n.current=i,a(i),i&&s(!1)},[c]),d=(0,_.useCallback)(e=>{let n=t.current;n!==null&&n.removeEventListener(`scroll`,u),t.current=e,e!==null&&e.addEventListener(`scroll`,u,{passive:!0})},[u]);(0,_.useEffect)(()=>()=>{let e=t.current;e!==null&&e.removeEventListener(`scroll`,u)},[u]);let f=(0,_.useCallback)(()=>{let r=t.current;if(r!==null&&e){if(n.current){l(r);return}s(!0)}},[e,l]);return{ref:d,pinned:i,hasUnseenBelow:o,jumpToLatest:(0,_.useCallback)(()=>{let e=t.current;e!==null&&(l(e),n.current=!0,a(!0),s(!1))},[l]),onContentChange:f}}function Ef(e){let t=[],n=``,r=0;for(let i of St(e)){if(i.start<r)continue;n+=e.slice(r,i.start);let a=e.slice(i.start,i.end);t.push(i.kind===`fence`?` code block `:Df(a)),n+=`\uE300${t.length-1}\uE301`,r=i.end}return n+=e.slice(r),n.replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/^\s{0,3}#{1,6}\s+/gm,``).replace(/^\s{0,3}>\s?/gm,``).replace(/^\s{0,3}([*+-]|\d+\.)\s+/gm,``).replace(/(\*\*\*|___)(.+?)\1/g,`$2`).replace(/(\*\*|__)(.+?)\1/g,`$2`).replace(/(\*|_)(.+?)\1/g,`$2`).replace(/~~(.+?)~~/g,`$1`).replace(/^\s{0,3}([-*_]\s?){3,}$/gm,``).replace(/\uE300(\d+)\uE301/g,(e,n)=>t[Number(n)]??``).replace(/[ \t]{2,}/g,` `)}function Df(e){let t=/^`+/.exec(e)?.[0].length??0,n=e.slice(t,e.length-t);return/^ .* $/s.test(n)&&n.trim()?n.slice(1,-1):n}var Of=`Your message could not be copied.`,kf=`Select the text and copy it with your keyboard — this browser did not allow the page to use the clipboard.`,Af=2e3;function jf(e){let{message:t}=e,{notifier:n}=bi(),r=xi(),{thread:i,retry:a}=gi(),[o,s]=(0,_.useState)(null),c=(0,_.useRef)(null);(0,_.useEffect)(()=>()=>{c.current!==null&&clearTimeout(c.current)},[]);let l=(0,_.useCallback)((e,t)=>{let r=globalThis.navigator?.clipboard,i=r?.writeText?.bind(r);if(i===void 0){n.notify({level:`warning`,message:Of,remedy:kf});return}i(e).then(()=>{s(t),c.current!==null&&clearTimeout(c.current),c.current=setTimeout(()=>s(null),Af)},()=>{n.notify({level:`warning`,message:Of,remedy:kf})})},[n]);if(t.status===`streaming`||t.status===`pending`)return null;let u=C(t),d=r.messageActions?.(t),f=t.role===`user`,p=f?``:wi(i.getSnapshot().messages,t.id);return u===``&&d===void 0?null:(0,j.jsxs)(`div`,{className:`mx-chat-actions`,role:`group`,"aria-label":f?`Actions for your message`:`Actions for this answer`,"data-message-id":t.id,children:[u===``?null:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"data-action":`copy-text`,onClick:()=>l(Ef(u),`text`),children:o===`text`?`Copied`:`Copy`}),u===``||f?null:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"data-action":`copy-markdown`,onClick:()=>l(u,`markdown`),children:o===`markdown`?`Copied`:`Copy as markdown`}),p===``?null:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"data-action":`retry`,onClick:()=>void i.send({text:p}),children:`Ask again`}),f&&u!==``?(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"data-action":`edit`,onClick:()=>a.request(u),children:`Edit and send again`}):null,d,o===null?null:(0,j.jsx)(`span`,{className:`mx-chat__sr-only`,role:`status`,"aria-live":`polite`,children:`Copied to the clipboard`})]})}var Mf=Object.defineProperty,Nf=(e,t)=>Mf(e,`name`,{value:t,configurable:!0});function Pf(e){let t=e+`CollectionProvider`,[n,r]=Vi(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=Nf(e=>{let{scope:t,children:n}=e,r=_.useRef(null),a=_.useRef(new Map).current;return(0,j.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Gi(s),l=_.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=H(t,a(s,n).collectionRef);return(0,j.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Gi(u),p=_.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=_.useRef(null),s=H(t,o),c=a(u,n);return _.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,j.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return _.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return Nf(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}Nf(Pf,`createCollection`);var Ff=new WeakMap,If=class e extends Map{static{Nf(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],Ff.set(this,!0)}set(e,t){return Ff.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=zf(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=Lf(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=Lf(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Lf(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function Lf(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Rf(e,t);return n===-1?void 0:e[n]}Nf(Lf,`at`);function Rf(e,t){let n=e.length,r=zf(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}Nf(Rf,`toSafeIndex`);function zf(e){return e!==e||e===0?0:Math.trunc(e)}Nf(zf,`toSafeInteger`);function Bf(e){let t=e+`CollectionProvider`,[n,r]=Vi(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new If,setItemMap:Nf(()=>void 0,`setItemMap`)}),o=Nf(({state:e,...t})=>e?(0,j.jsx)(c,{...t,state:e}):(0,j.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=Nf(e=>{let t=h();return(0,j.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=Nf(e=>{let{scope:t,children:n,state:r}=e,a=_.useRef(null),[o,s]=_.useState(null),c=H(a,s),[l,u]=r;return _.useEffect(()=>{if(!o)return;let e=Uf(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,j.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=Gi(l),d=_.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=H(t,a(l,n).collectionRef);return(0,j.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=Gi(f),m=_.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=_.useRef(null),[s,c]=_.useState(null),l=H(t,o,c),{setItemMap:u}=a(f,n),d=_.useRef(i);$(d.current,i)||(d.current=i);let m=d.current;return _.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(Hf):(t.set(s,{...e,element:s}),t.toSorted(Hf)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new If(e)))}},[s,m,u]),(0,j.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return _.useState(new If)}Nf(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return Nf(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}Nf(Bf,`createCollection`);function $(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Nf($,`shallowEqual`);function Vf(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Nf(Vf,`isElementPreceding`);function Hf(e,t){return!e[1].element||!t[1].element?0:Vf(e[1].element,t[1].element)?-1:1}Nf(Hf,`sortByDocumentPosition`);function Uf(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}Nf(Uf,`getChildListObserver`);var Wf=Object.defineProperty,Gf=(e,t)=>Wf(e,`name`,{value:t,configurable:!0}),Kf=_.createContext(void 0);function qf(e){let t=_.useContext(Kf);return e||t||`ltr`}Gf(qf,`useDirection`);function Jf(e){return{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,...e}}function Yf(e){return(0,j.jsxs)(`svg`,{...Jf(e),children:[(0,j.jsx)(`path`,{d:`M18 6 6 18`}),(0,j.jsx)(`path`,{d:`m6 6 12 12`})]})}function Xf(e){return{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 15 15`,width:15,height:15,fill:`none`,"aria-hidden":!0,...e}}function Zf(e){return(0,j.jsx)(`svg`,{...Xf(e),children:(0,j.jsx)(`path`,{d:`M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function Qf(e){return(0,j.jsx)(`svg`,{...Xf(e),children:(0,j.jsx)(`path`,{d:`M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z`,fill:`currentColor`})})}function $f(e){return(0,j.jsx)(`svg`,{...Xf(e),children:(0,j.jsx)(`path`,{d:`M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function ep(e){return(0,j.jsx)(`svg`,{...Xf(e),children:(0,j.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function tp(e){return(0,j.jsx)(`svg`,{...Xf(e),children:(0,j.jsx)(`path`,{d:`M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var np=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,rp=Sl,ip=(e,t)=>n=>{if(t?.variants==null)return rp(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=np(t)||np(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return rp(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},ap=Object.defineProperty,op=(e,t)=>ap(e,`name`,{value:t,configurable:!0}),sp=`focusScope.autoFocusOnMount`,cp=`focusScope.autoFocusOnUnmount`,lp={bubbles:!1,cancelable:!0},up=_.forwardRef(op(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=_.useState(null),l=ua(i),u=ua(a),d=_.useRef(null),f=H(t,c),p=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:_p(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||_p(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&_p(s)};op(e,`handleFocusIn`),op(t,`handleFocusOut`),op(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),_.useEffect(()=>{if(s){vp.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(sp,lp);s.addEventListener(sp,l),s.dispatchEvent(t),t.defaultPrevented||(dp(xp(pp(s)),{select:!0}),document.activeElement===e&&_p(s))}return()=>{s.removeEventListener(sp,l),setTimeout(()=>{let t=new CustomEvent(cp,lp);s.addEventListener(cp,u),s.dispatchEvent(t),t.defaultPrevented||_p(e??document.body,{select:!0}),s.removeEventListener(cp,u),vp.remove(p)},0)}}},[s,l,u,p]);let m=_.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=fp(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&_p(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&_p(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,j.jsx)(W.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function dp(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(_p(r,{select:t}),document.activeElement!==n)return}op(dp,`focusFirst`);function fp(e){let t=pp(e);return[mp(t,e),mp(t.reverse(),e)]}op(fp,`getTabbableEdges`);function pp(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:op(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}op(pp,`getTabbableCandidates`);function mp(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):hp(r,{upTo:t})))return r}op(mp,`findVisible`);function hp(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}op(hp,`isHidden`);function gp(e){return e instanceof HTMLInputElement&&`select`in e}op(gp,`isSelectableInput`);function _p(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gp(e)&&t&&e.select()}}op(_p,`focus`);var vp=yp();function yp(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=bp(e,t),e.unshift(t)},remove(t){e=bp(e,t),e[0]?.resume()}}}op(yp,`createFocusScopesStack`);function bp(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}op(bp,`arrayRemove`);function xp(e){return e.filter(e=>e.tagName!==`A`)}op(xp,`removeLinks`);var Sp=Object.defineProperty,Cp=(e,t)=>Sp(e,`name`,{value:t,configurable:!0}),wp=0,Tp=null;function Ep(e){return Dp(),e.children}Cp(Ep,`FocusGuards`);function Dp(){_.useEffect(()=>{Tp||={start:Op(),end:Op()};let{start:e,end:t}=Tp;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),wp++,()=>{wp===1&&(Tp?.start.remove(),Tp?.end.remove(),Tp=null),wp=Math.max(0,wp-1)}},[])}Cp(Dp,`useFocusGuards`);function Op(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}Cp(Op,`createFocusGuard`);var kp=function(){return kp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},kp.apply(this,arguments)};function Ap(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function jp(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Mp=`right-scroll-bar-position`,Np=`width-before-scroll-bar`,Pp=`with-scroll-bars-hidden`,Fp=`--removed-body-scroll-bar-size`;function Ip(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Lp(e,t){var n=(0,_.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Rp=typeof window<`u`?_.useLayoutEffect:_.useEffect,zp=new WeakMap;function Bp(e,t){var n=Lp(t||null,function(t){return e.forEach(function(e){return Ip(e,t)})});return Rp(function(){var t=zp.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Ip(e,null)}),i.forEach(function(e){r.has(e)||Ip(e,a)})}zp.set(n,e)},[e]),n}function Vp(e){return e}function Hp(e,t){t===void 0&&(t=Vp);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Up(e){e===void 0&&(e={});var t=Hp(null);return t.options=kp({async:!0,ssr:!1},e),t}var Wp=function(e){var t=e.sideCar,n=Ap(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return _.createElement(r,kp({},n))};Wp.isSideCarExport=!0;function Gp(e,t){return e.useMedium(t),Wp}var Kp=Up(),qp=function(){},Jp=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:qp,onWheelCapture:qp,onTouchMoveCapture:qp}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Ap(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Bp([n,t]),w=kp(kp({},x),i);return _.createElement(_.Fragment,null,u&&_.createElement(S,{sideCar:Kp,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?_.cloneElement(_.Children.only(s),kp(kp({},w),{ref:C})):_.createElement(y,kp({},w,{className:c,ref:C}),s))});Jp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Jp.classNames={fullWidth:Np,zeroRight:Mp};var Yp=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Xp(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Yp();return t&&e.setAttribute(`nonce`,t),e}function Zp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qp(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var $p=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xp())&&(Zp(t,n),Qp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},em=function(){var e=$p();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tm=function(){var e=em();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},nm={left:0,top:0,right:0,gap:0},rm=function(e){return parseInt(e||``,10)||0},im=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[rm(n),rm(r),rm(i)]},am=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return nm;var t=im(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},om=tm(),sm=`data-scroll-locked`,cm=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
17
+ .${Pp} {
18
18
  overflow: hidden ${r};
19
19
  padding-right: ${s}px ${r};
20
20
  }
21
- body[${om}] {
21
+ body[${sm}] {
22
22
  overflow: hidden ${r};
23
23
  overscroll-behavior: contain;
24
24
  ${[t&&`position: relative ${r};`,n===`margin`&&`
@@ -31,31 +31,31 @@ Error generating stack: `+e.message+`
31
31
  `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
32
32
  }
33
33
 
34
- .${jp} {
34
+ .${Mp} {
35
35
  right: ${s}px ${r};
36
36
  }
37
37
 
38
- .${Mp} {
38
+ .${Np} {
39
39
  margin-right: ${s}px ${r};
40
40
  }
41
41
 
42
- .${jp} .${jp} {
42
+ .${Mp} .${Mp} {
43
43
  right: 0 ${r};
44
44
  }
45
45
 
46
- .${Mp} .${Mp} {
46
+ .${Np} .${Np} {
47
47
  margin-right: 0 ${r};
48
48
  }
49
49
 
50
- body[${om}] {
51
- ${Pp}: ${s}px;
50
+ body[${sm}] {
51
+ ${Fp}: ${s}px;
52
52
  }
53
- `},cm=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},lm=function(){_.useEffect(function(){return document.body.setAttribute(om,(cm()+1).toString()),function(){var e=cm()-1;e<=0?document.body.removeAttribute(om):document.body.setAttribute(om,e.toString())}},[])},um=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;lm();var a=_.useMemo(function(){return im(i)},[i]);return _.createElement(am,{styles:sm(a,!t,i,n?``:`!important`)})},dm=!1;if(typeof window<`u`)try{var fm=Object.defineProperty({},"passive",{get:function(){return dm=!0,!0}});window.addEventListener(`test`,fm,fm),window.removeEventListener(`test`,fm,fm)}catch{dm=!1}var pm=dm?{passive:!1}:!1,mm=function(e){return e.tagName===`TEXTAREA`},hm=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!mm(e)&&n[t]===`visible`)},gm=function(e){return hm(e,`overflowY`)},_m=function(e){return hm(e,`overflowX`)},vm=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),xm(e,r)){var i=Sm(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ym=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},bm=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},xm=function(e,t){return e===`v`?gm(t):_m(t)},Sm=function(e,t){return e===`v`?ym(t):bm(t)},Cm=function(e,t){return e===`h`&&t===`rtl`?-1:1},wm=function(e,t,n,r,i){var a=Cm(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Sm(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&xm(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Tm=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Em=function(e){return[e.deltaX,e.deltaY]},Dm=function(e){return e&&`current`in e?e.current:e},Om=function(e,t){return e[0]===t[0]&&e[1]===t[1]},km=function(e){return`
53
+ `},lm=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},um=function(){_.useEffect(function(){return document.body.setAttribute(sm,(lm()+1).toString()),function(){var e=lm()-1;e<=0?document.body.removeAttribute(sm):document.body.setAttribute(sm,e.toString())}},[])},dm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;um();var a=_.useMemo(function(){return am(i)},[i]);return _.createElement(om,{styles:cm(a,!t,i,n?``:`!important`)})},fm=!1;if(typeof window<`u`)try{var pm=Object.defineProperty({},"passive",{get:function(){return fm=!0,!0}});window.addEventListener(`test`,pm,pm),window.removeEventListener(`test`,pm,pm)}catch{fm=!1}var mm=fm?{passive:!1}:!1,hm=function(e){return e.tagName===`TEXTAREA`},gm=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!hm(e)&&n[t]===`visible`)},_m=function(e){return gm(e,`overflowY`)},vm=function(e){return gm(e,`overflowX`)},ym=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Sm(e,r)){var i=Cm(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},bm=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},xm=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Sm=function(e,t){return e===`v`?_m(t):vm(t)},Cm=function(e,t){return e===`v`?bm(t):xm(t)},wm=function(e,t){return e===`h`&&t===`rtl`?-1:1},Tm=function(e,t,n,r,i){var a=wm(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Cm(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Sm(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Em=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Dm=function(e){return[e.deltaX,e.deltaY]},Om=function(e){return e&&`current`in e?e.current:e},km=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Am=function(e){return`
54
54
  .block-interactivity-${e} {pointer-events: none;}
55
55
  .allow-interactivity-${e} {pointer-events: all;}
56
- `},Am=0,jm=[];function Mm(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(Am++)[0],a=_.useState(em)[0],o=_.useRef(e);_.useEffect(function(){o.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Ap([e.lockRef.current],(e.shards||[]).map(Dm),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=_.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Tm(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=vm(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=vm(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return wm(h,t,e,h===`h`?s:c,!0)},[]),c=_.useCallback(function(e){var n=e;if(jm.length&&jm[jm.length-1]===a){var r=`deltaY`in n?Em(n):Tm(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Om(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Dm).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=_.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Nm(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=_.useCallback(function(e){n.current=Tm(e),r.current=void 0},[]),d=_.useCallback(function(t){l(t.type,Em(t),t.target,s(t,e.lockRef.current))},[]),f=_.useCallback(function(t){l(t.type,Tm(t),t.target,s(t,e.lockRef.current))},[]);_.useEffect(function(){return jm.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,pm),document.addEventListener(`touchmove`,c,pm),document.addEventListener(`touchstart`,u,pm),function(){jm=jm.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,pm),document.removeEventListener(`touchmove`,c,pm),document.removeEventListener(`touchstart`,u,pm)}},[]);var p=e.removeScrollBar,m=e.inert;return _.createElement(_.Fragment,null,m?_.createElement(a,{styles:km(i)}):null,p?_.createElement(um,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Nm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Pm=Wp(Gp,Mm),Fm=_.forwardRef(function(e,t){return _.createElement(qp,Op({},e,{ref:t,sideCar:Pm}))});Fm.classNames=qp.classNames;var Im=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Lm=new WeakMap,Rm=new WeakMap,zm={},Bm=0,Vm=function(e){return e&&(e.host||Vm(e.parentNode))},Hm=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Vm(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Um=function(e,t,n,r){var i=Hm(t,Array.isArray(e)?e:[e]);zm[n]||(zm[n]=new WeakMap);var a=zm[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Lm.get(e)||0)+1,l=(a.get(e)||0)+1;Lm.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Rm.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Bm++,function(){o.forEach(function(e){var t=Lm.get(e)-1,i=a.get(e)-1;Lm.set(e,t),a.set(e,i),t||(Rm.has(e)||e.removeAttribute(r),Rm.delete(e)),i||e.removeAttribute(n)}),Bm--,Bm||(Lm=new WeakMap,Lm=new WeakMap,Rm=new WeakMap,zm={})}},Wm=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Im(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Um(r,i,n,`aria-hidden`)):function(){return null}},Gm=Object.defineProperty,Km=(e,t)=>Gm(e,`name`,{value:t,configurable:!0}),qm=`Dialog`,[Jm,Ym]=Vi(qm),[Xm,Zm]=Jm(qm),Qm=Km(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=_.useRef(null),c=_.useRef(null),[l,u]=kc({prop:r,defaultProp:i??!1,onChange:a,caller:qm}),[d,f]=_.useState(0),[p,m]=_.useState(0);return(0,j.jsx)(Xm,{scope:t,triggerRef:s,contentRef:c,contentId:Aa(),titleId:Aa(),descriptionId:Aa(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:_.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),$m=`DialogTrigger`,eh=_.forwardRef(Km(function(e,t){let{__scopeDialog:n,...r}=e,i=Zm($m,n),a=H(t,i.triggerRef);return(0,j.jsx)(W.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":bh(i.open),...r,ref:a,onClick:V(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),th=`DialogPortal`,[nh,rh]=Jm(th,{forceMount:void 0}),ih=Km(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Zm(th,t);return(0,j.jsx)(nh,{scope:t,forceMount:n,children:_.Children.map(r,e=>(0,j.jsx)(hc,{present:n||a.open,children:(0,j.jsx)(dc,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),ah=`DialogOverlay`,oh=_.forwardRef(Km(function(e,t){let n=rh(ah,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Zm(ah,e.__scopeDialog);return a.modal?(0,j.jsx)(hc,{present:r||a.open,children:(0,j.jsx)(ch,{...i,ref:t})}):null},`DialogOverlay`)),sh=Gi(`DialogOverlay.RemoveScroll`),ch=_.forwardRef(Km(function(e,t){let{__scopeDialog:n,...r}=e,i=Zm(ah,n),a=H(t,ya());return(0,j.jsx)(Fm,{as:sh,allowPinchZoom:!0,shards:[i.contentRef],children:(0,j.jsx)(W.div,{"data-state":bh(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),lh=`DialogContent`,uh=_.forwardRef(Km(function(e,t){let n=rh(lh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Zm(lh,e.__scopeDialog);return(0,j.jsx)(hc,{present:r||a.open,children:a.modal?(0,j.jsx)(dh,{...i,ref:t}):(0,j.jsx)(fh,{...i,ref:t})})},`DialogContent`)),dh=_.forwardRef(Km(function(e,t){let n=Zm(lh,e.__scopeDialog),r=_.useRef(null),i=H(t,n.contentRef,r);return _.useEffect(()=>{let e=r.current;if(e)return Wm(e)},[]),(0,j.jsx)(ph,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),fh=_.forwardRef(Km(function(e,t){let n=Zm(lh,e.__scopeDialog),r=_.useRef(!1),i=_.useRef(!1);return(0,j.jsx)(ph,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),ph=_.forwardRef(Km(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Zm(lh,n);return Ep(),(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(lp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,j.jsx)(va,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":bh(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),mh=`DialogTitle`,hh=_.forwardRef(Km(function(e,t){let{__scopeDialog:n,...r}=e,i=Zm(mh,n),{setTitleCount:a}=i;return Ta(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,j.jsx)(W.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),gh=`DialogDescription`,_h=_.forwardRef(Km(function(e,t){let{__scopeDialog:n,...r}=e,i=Zm(gh,n),{setDescriptionCount:a}=i;return Ta(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,j.jsx)(W.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),vh=`DialogClose`,yh=_.forwardRef(Km(function(e,t){let{__scopeDialog:n,...r}=e,i=Zm(vh,n);return(0,j.jsx)(W.button,{type:`button`,...r,ref:t,onClick:V(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function bh(e){return e?`open`:`closed`}Km(bh,`getState`);function xh(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Sh=_.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:`bottom`,shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Ch=()=>{let e=_.useContext(Sh);if(!e)throw Error(`useDrawerContext must be used within a Drawer.Root`);return e};xh(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
56
+ `},jm=0,Mm=[];function Nm(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(jm++)[0],a=_.useState(tm)[0],o=_.useRef(e);_.useEffect(function(){o.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=jp([e.lockRef.current],(e.shards||[]).map(Om),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=_.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Em(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=ym(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=ym(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Tm(h,t,e,h===`h`?s:c,!0)},[]),c=_.useCallback(function(e){var n=e;if(Mm.length&&Mm[Mm.length-1]===a){var r=`deltaY`in n?Dm(n):Em(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&km(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Om).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=_.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Pm(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=_.useCallback(function(e){n.current=Em(e),r.current=void 0},[]),d=_.useCallback(function(t){l(t.type,Dm(t),t.target,s(t,e.lockRef.current))},[]),f=_.useCallback(function(t){l(t.type,Em(t),t.target,s(t,e.lockRef.current))},[]);_.useEffect(function(){return Mm.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,mm),document.addEventListener(`touchmove`,c,mm),document.addEventListener(`touchstart`,u,mm),function(){Mm=Mm.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,mm),document.removeEventListener(`touchmove`,c,mm),document.removeEventListener(`touchstart`,u,mm)}},[]);var p=e.removeScrollBar,m=e.inert;return _.createElement(_.Fragment,null,m?_.createElement(a,{styles:Am(i)}):null,p?_.createElement(dm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Pm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Fm=Gp(Kp,Nm),Im=_.forwardRef(function(e,t){return _.createElement(Jp,kp({},e,{ref:t,sideCar:Fm}))});Im.classNames=Jp.classNames;var Lm=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Rm=new WeakMap,zm=new WeakMap,Bm={},Vm=0,Hm=function(e){return e&&(e.host||Hm(e.parentNode))},Um=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Hm(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Wm=function(e,t,n,r){var i=Um(t,Array.isArray(e)?e:[e]);Bm[n]||(Bm[n]=new WeakMap);var a=Bm[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Rm.get(e)||0)+1,l=(a.get(e)||0)+1;Rm.set(e,c),a.set(e,l),o.push(e),c===1&&i&&zm.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Vm++,function(){o.forEach(function(e){var t=Rm.get(e)-1,i=a.get(e)-1;Rm.set(e,t),a.set(e,i),t||(zm.has(e)||e.removeAttribute(r),zm.delete(e)),i||e.removeAttribute(n)}),Vm--,Vm||(Rm=new WeakMap,Rm=new WeakMap,zm=new WeakMap,Bm={})}},Gm=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Lm(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Wm(r,i,n,`aria-hidden`)):function(){return null}},Km=Object.defineProperty,qm=(e,t)=>Km(e,`name`,{value:t,configurable:!0}),Jm=`Dialog`,[Ym,Xm]=Vi(Jm),[Zm,Qm]=Ym(Jm),$m=qm(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=_.useRef(null),c=_.useRef(null),[l,u]=kc({prop:r,defaultProp:i??!1,onChange:a,caller:Jm}),[d,f]=_.useState(0),[p,m]=_.useState(0);return(0,j.jsx)(Zm,{scope:t,triggerRef:s,contentRef:c,contentId:Aa(),titleId:Aa(),descriptionId:Aa(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:_.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),eh=`DialogTrigger`,th=_.forwardRef(qm(function(e,t){let{__scopeDialog:n,...r}=e,i=Qm(eh,n),a=H(t,i.triggerRef);return(0,j.jsx)(W.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":xh(i.open),...r,ref:a,onClick:V(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),nh=`DialogPortal`,[rh,ih]=Ym(nh,{forceMount:void 0}),ah=qm(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Qm(nh,t);return(0,j.jsx)(rh,{scope:t,forceMount:n,children:_.Children.map(r,e=>(0,j.jsx)(hc,{present:n||a.open,children:(0,j.jsx)(dc,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),oh=`DialogOverlay`,sh=_.forwardRef(qm(function(e,t){let n=ih(oh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Qm(oh,e.__scopeDialog);return a.modal?(0,j.jsx)(hc,{present:r||a.open,children:(0,j.jsx)(lh,{...i,ref:t})}):null},`DialogOverlay`)),ch=Gi(`DialogOverlay.RemoveScroll`),lh=_.forwardRef(qm(function(e,t){let{__scopeDialog:n,...r}=e,i=Qm(oh,n),a=H(t,ya());return(0,j.jsx)(Im,{as:ch,allowPinchZoom:!0,shards:[i.contentRef],children:(0,j.jsx)(W.div,{"data-state":xh(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),uh=`DialogContent`,dh=_.forwardRef(qm(function(e,t){let n=ih(uh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Qm(uh,e.__scopeDialog);return(0,j.jsx)(hc,{present:r||a.open,children:a.modal?(0,j.jsx)(fh,{...i,ref:t}):(0,j.jsx)(ph,{...i,ref:t})})},`DialogContent`)),fh=_.forwardRef(qm(function(e,t){let n=Qm(uh,e.__scopeDialog),r=_.useRef(null),i=H(t,n.contentRef,r);return _.useEffect(()=>{let e=r.current;if(e)return Gm(e)},[]),(0,j.jsx)(mh,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),ph=_.forwardRef(qm(function(e,t){let n=Qm(uh,e.__scopeDialog),r=_.useRef(!1),i=_.useRef(!1);return(0,j.jsx)(mh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),mh=_.forwardRef(qm(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Qm(uh,n);return Dp(),(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(up,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,j.jsx)(va,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":xh(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),hh=`DialogTitle`,gh=_.forwardRef(qm(function(e,t){let{__scopeDialog:n,...r}=e,i=Qm(hh,n),{setTitleCount:a}=i;return Ta(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,j.jsx)(W.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),_h=`DialogDescription`,vh=_.forwardRef(qm(function(e,t){let{__scopeDialog:n,...r}=e,i=Qm(_h,n),{setDescriptionCount:a}=i;return Ta(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,j.jsx)(W.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),yh=`DialogClose`,bh=_.forwardRef(qm(function(e,t){let{__scopeDialog:n,...r}=e,i=Qm(yh,n);return(0,j.jsx)(W.button,{type:`button`,...r,ref:t,onClick:V(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function xh(e){return e?`open`:`closed`}qm(xh,`getState`);function Sh(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Ch=_.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:`bottom`,shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),wh=()=>{let e=_.useContext(Ch);if(!e)throw Error(`useDrawerContext must be used within a Drawer.Root`);return e};Sh(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
57
57
  [data-state=closed]
58
- ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function wh(){let e=navigator.userAgent;return typeof window<`u`&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Th(){return Ah(/^Mac/)}function Eh(){return Ah(/^iPhone/)}function Dh(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Oh(){return Ah(/^iPad/)||Th()&&navigator.maxTouchPoints>1}function kh(){return Eh()||Oh()}function Ah(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.platform):void 0}var jh=24,Mh=typeof window<`u`?_.useLayoutEffect:_.useEffect;function Nh(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var Ph=typeof document<`u`&&window.visualViewport;function Fh(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Ih(e){for(Fh(e)&&(e=e.parentElement);e&&!Fh(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var Lh=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),Rh=0,zh;function Bh(e={}){let{isDisabled:t}=e;Mh(()=>{if(!t)return Rh++,Rh===1&&kh()&&(zh=Vh()),()=>{Rh--,Rh===0&&zh?.()}},[t])}function Vh(){let e,t=0,n=n=>{e=Ih(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)},r=n=>{if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}let r=n.changedTouches[0].pageY,i=e.scrollTop,a=e.scrollHeight-e.clientHeight;a!==0&&((i<=0&&r>t||i>=a&&r<t)&&n.preventDefault(),t=r)},i=e=>{let t=e.target;Gh(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform=`translateY(-2000px)`,t.focus(),requestAnimationFrame(()=>{t.style.transform=``}))},a=e=>{let t=e.target;Gh(t)&&(t.style.transform=`translateY(-2000px)`,requestAnimationFrame(()=>{t.style.transform=``,Ph&&(Ph.height<window.innerHeight?requestAnimationFrame(()=>{Wh(t)}):Ph.addEventListener(`resize`,()=>Wh(t),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=Nh(Hh(document.documentElement,`paddingRight`,`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=Nh(Uh(document,`touchstart`,n,{passive:!1,capture:!0}),Uh(document,`touchmove`,r,{passive:!1,capture:!0}),Uh(document,`touchend`,i,{passive:!1,capture:!0}),Uh(document,`focus`,a,!0),Uh(window,`scroll`,o));return()=>{l(),u(),window.scrollTo(s,c)}}function Hh(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Uh(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Wh(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Ih(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+jh&&(t.scrollTop+=r-n)}e=t.parentElement}}function Gh(e){return e instanceof HTMLInputElement&&!Lh.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Kh(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function qh(...e){return t=>e.forEach(e=>Kh(e,t))}function Jh(...e){return _.useCallback(qh(...e),e)}var Yh=new WeakMap;function Xh(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([t,n])=>{if(t.startsWith(`--`)){e.style.setProperty(t,n);return}r[t]=e.style[t],e.style[t]=n}),!n&&Yh.set(e,r)}function Zh(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Yh.get(e);n&&(e.style[t]=n[t])}var Qh=e=>{switch(e){case`top`:case`bottom`:return!0;case`left`:case`right`:return!1;default:return e}};function $h(e,t){if(!e)return null;let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(`, `)[Qh(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(`, `)[Qh(t)?5:4]):null)}function eg(e){return 8*(Math.log(e+1)-2)}function tg(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}var ng={DURATION:.5,EASE:[.32,.72,0,1]},rg=.4,ig=.25,ag=100,og=8,sg=16,cg=26,lg=`vaul-dragging`;function ug(e){let t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...e)=>t.current==null?void 0:t.current.call(t,...e),[])}function dg({defaultProp:e,onChange:t}){let n=_.useState(e),[r]=n,i=_.useRef(r),a=ug(t);return _.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function fg({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=dg({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=ug(n);return[o,_.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function pg({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:i,fadeFromIndex:a,onSnapPointChange:o,direction:s=`bottom`,container:c,snapToSequentialPoint:l}){let[u,d]=fg({prop:e,defaultProp:n?.[0],onChange:t}),[f,p]=_.useState(typeof window<`u`?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);_.useEffect(()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let m=_.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),h=_.useMemo(()=>n?.findIndex(e=>e===u)??null,[n,u]),g=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===u||!n,v=_.useMemo(()=>{let e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<`u`?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return n?.map(t=>{let n=typeof t==`string`,r=0;if(n&&(r=parseInt(t,10)),Qh(s)){let i=n?r:f?t*e.height:0;return f?s===`bottom`?e.height-i:-e.height+i:i}let i=n?r:f?t*e.width:0;return f?s===`right`?e.width-i:-e.width+i:i})??[]},[n,f,c]),y=_.useMemo(()=>h===null?null:v?.[h],[v,h]),b=_.useCallback(e=>{let t=v?.findIndex(t=>t===e)??null;o(t),Xh(r.current,{transition:`transform ${ng.DURATION}s cubic-bezier(${ng.EASE.join(`,`)})`,transform:Qh(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),v&&t!==v.length-1&&a!==void 0&&t!==a&&t<a?Xh(i.current,{transition:`opacity ${ng.DURATION}s cubic-bezier(${ng.EASE.join(`,`)})`,opacity:`0`}):Xh(i.current,{transition:`opacity ${ng.DURATION}s cubic-bezier(${ng.EASE.join(`,`)})`,opacity:`1`}),d(n?.[Math.max(t,0)])},[r.current,n,v,a,i,d]);_.useEffect(()=>{if(u||e){let t=n?.findIndex(t=>t===e||t===u)??-1;v&&t!==-1&&typeof v[t]==`number`&&b(v[t])}},[u,e,n,v,b]);function x({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:o}){if(a===void 0)return;let c=s===`bottom`||s===`right`?(y??0)-e:(y??0)+e,u=h===a-1,d=h===0,f=e>0;if(u&&Xh(i.current,{transition:`opacity ${ng.DURATION}s cubic-bezier(${ng.EASE.join(`,`)})`}),!l&&r>2&&!f){o?t():b(v[0]);return}if(!l&&r>2&&f&&v&&n){b(v[n.length-1]);return}let p=v?.reduce((e,t)=>typeof e!=`number`||typeof t!=`number`?e:Math.abs(t-c)<Math.abs(e-c)?t:e),g=Qh(s)?window.innerHeight:window.innerWidth;if(r>rg&&Math.abs(e)<g*.4){let e=f?1:-1;if(e>0&&m&&n){b(v[n.length-1]);return}if(d&&e<0&&o&&t(),h===null)return;b(v[h+e]);return}b(p)}function S({draggedDistance:e}){if(y===null)return;let t=s===`bottom`||s===`right`?y-e:y+e;(s===`bottom`||s===`right`)&&t<v[v.length-1]||(s===`top`||s===`left`)&&t>v[v.length-1]||Xh(r.current,{transform:Qh(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})}function C(e,t){if(!n||typeof h!=`number`||!v||a===void 0)return null;let r=h===a-1;if(h>=a&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;let i=r?h+1:h-1,o=r?v[i]-v[i-1]:v[i+1]-v[i],s=e/Math.abs(o);return r?1-s:s}return{isLastSnapPoint:m,activeSnapPoint:u,shouldFade:g,getPercentageDragged:C,setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:x,onDrag:S,snapPointsOffset:v}}function mg(){let{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=Ch(),a=_.useRef(null),o=(0,_.useMemo)(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-cg)/window.innerWidth}_.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);let t=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`);if(!t)return;r&&!i&&tg(document.body,{background:`black`}),tg(t,{transformOrigin:Qh(e)?`top`:`left`,transitionProperty:`transform, border-radius`,transitionDuration:`${ng.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ng.EASE.join(`,`)})`});let n=tg(t,{borderRadius:`${og}px`,overflow:`hidden`,...Qh(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),a.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty(`background`)},ng.DURATION*1e3)}}},[t,n,o])}var hg=null;function gg({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:i,noBodyStyles:a}){let[o,s]=_.useState(()=>typeof window<`u`?window.location.href:``),c=_.useRef(0),l=_.useCallback(()=>{if(Dh()&&hg===null&&e&&!a){hg={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:`unset`};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty(`position`,`fixed`,`important`),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-e}px`,right:`0px`,height:`auto`}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=`${-(c.current+e)}px`)}),300)}},[e]),u=_.useCallback(()=>{if(Dh()&&hg!==null&&!a){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,hg),window.requestAnimationFrame(()=>{if(i&&o!==window.location.href){s(window.location.href);return}window.scrollTo(t,e)}),hg=null}},[o]);return _.useEffect(()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener(`scroll`,e),()=>{window.removeEventListener(`scroll`,e)}},[]),_.useEffect(()=>{if(t)return()=>{typeof document<`u`&&(document.querySelector(`[data-vaul-drawer]`)||u())}},[t,u]),_.useEffect(()=>{!n&&r&&(e?(!window.matchMedia(`(display-mode: standalone)`).matches&&l(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,o,t,n,l,u]),{restorePositionSetting:u}}function _g({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:i,snapPoints:a,shouldScaleBackground:o=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=ig,scrollLockTimeout:l=ag,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:g=!0,onClose:v,nested:y,noBodyStyles:b=!1,direction:x=`bottom`,defaultOpen:S=!1,disablePreventScroll:C=!0,snapToSequentialPoint:w=!1,preventScrollRestoration:T=!1,repositionInputs:E=!0,onAnimationEnd:D,container:O,autoFocus:k=!1}){let[A=!1,j]=fg({defaultProp:S,prop:e,onChange:e=>{t?.(e),!e&&!y&&be(),setTimeout(()=>{D?.(e)},ng.DURATION*1e3),e&&!g&&typeof window<`u`&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`}),e||(document.body.style.pointerEvents=`auto`)}}),[M,N]=_.useState(!1),[P,F]=_.useState(!1),[I,L]=_.useState(!1),ee=_.useRef(null),te=_.useRef(null),ne=_.useRef(null),re=_.useRef(null),ie=_.useRef(null),ae=_.useRef(!1),oe=_.useRef(null),se=_.useRef(0),ce=_.useRef(!1),le=_.useRef(!S),ue=_.useRef(0),R=_.useRef(null),de=_.useRef(R.current?.getBoundingClientRect().height||0),z=_.useRef(R.current?.getBoundingClientRect().width||0),B=_.useRef(0),{activeSnapPoint:fe,activeSnapPointIndex:pe,setActiveSnapPoint:me,onRelease:he,snapPointsOffset:ge,onDrag:_e,shouldFade:ve,getPercentageDragged:ye}=pg({snapPoints:a,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:R,fadeFromIndex:f,overlayRef:ee,onSnapPointChange:_.useCallback(e=>{a&&e===ge.length-1&&(te.current=new Date)},[]),direction:x,container:O,snapToSequentialPoint:w});Bh({isDisabled:!A||P||!g||I||!M||!E||!C});let{restorePositionSetting:be}=gg({isOpen:A,modal:g,nested:y??!1,hasBeenOpened:M,preventScrollRestoration:T,noBodyStyles:b});function xe(){return(window.innerWidth-cg)/window.innerWidth}function Se(e){(u||a)&&(!R.current||R.current.contains(e.target))&&(de.current=R.current?.getBoundingClientRect().height||0,z.current=R.current?.getBoundingClientRect().width||0,F(!0),ne.current=new Date,kh()&&window.addEventListener(`touchend`,()=>ae.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),se.current=Qh(x)?e.pageY:e.pageX)}function Ce(e,t){let n=e,r=window.getSelection()?.toString(),i=R.current?$h(R.current,x):null,a=new Date;if(n.tagName===`SELECT`||n.hasAttribute(`data-vaul-no-drag`)||n.closest(`[data-vaul-no-drag]`))return!1;if(x===`right`||x===`left`)return!0;if(te.current&&a.getTime()-te.current.getTime()<500)return!1;if(i!==null&&(x===`bottom`?i>0:i<0))return!0;if(r&&r.length>0)return!1;if(ie.current&&a.getTime()-ie.current.getTime()<l&&i===0||t)return ie.current=a,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(n.scrollTop!==0)return ie.current=new Date,!1;if(n.getAttribute(`role`)===`dialog`)return!0}n=n.parentNode}return!0}function we(e){if(R.current&&P){let t=x===`bottom`||x===`right`?1:-1,n=(se.current-(Qh(x)?e.pageY:e.pageX))*t,i=n>0,s=a&&!u&&!i;if(s&&pe===0)return;let c=Math.abs(n),l=document.querySelector(`[data-vaul-drawer-wrapper]`),d=c/(x===`bottom`||x===`top`?de.current:z.current),p=ye(c,i);if(p!==null&&(d=p),s&&d>=1||!ae.current&&!Ce(e.target,i))return;if(R.current.classList.add(lg),ae.current=!0,Xh(R.current,{transition:`none`}),Xh(ee.current,{transition:`none`}),a&&_e({draggedDistance:n}),i&&!a){let e=eg(n),r=Math.min(e*-1,0)*t;Xh(R.current,{transform:Qh(x)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`});return}let m=1-d;if((ve||f&&pe===f-1)&&(r?.(e,d),Xh(ee.current,{opacity:`${m}`,transition:`none`},!0)),l&&ee.current&&o){let e=Math.min(xe()+d*(1-xe()),1),t=8-d*8,n=Math.max(0,14-d*14);Xh(l,{borderRadius:`${t}px`,transform:Qh(x)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:`none`},!0)}if(!a){let e=c*t;Xh(R.current,{transform:Qh(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}}_.useEffect(()=>{window.requestAnimationFrame(()=>{le.current=!0})},[]),_.useEffect(()=>{var e;function t(){if(!R.current||!E)return;let e=document.activeElement;if(Gh(e)||ce.current){let e=window.visualViewport?.height||0,t=window.innerHeight,n=t-e,r=R.current.getBoundingClientRect().height||0,i=r>t*.8;B.current||=r;let o=R.current.getBoundingClientRect().top;if(Math.abs(ue.current-n)>60&&(ce.current=!ce.current),a&&a.length>0&&ge&&pe){let e=ge[pe]||0;n+=e}if(ue.current=n,r>e||ce.current){let t=R.current.getBoundingClientRect().height,r=t;t>e&&(r=e-(i?o:cg)),h?R.current.style.height=`${t-Math.max(n,0)}px`:R.current.style.height=`${Math.max(r,e-o)}px`}else wh()||(R.current.style.height=`${B.current}px`);a&&a.length>0&&!ce.current?R.current.style.bottom=`0px`:R.current.style.bottom=`${Math.max(n,0)}px`}}return(e=window.visualViewport)==null||e.addEventListener(`resize`,t),()=>window.visualViewport?.removeEventListener(`resize`,t)},[pe,a,ge]);function Te(e){De(),v?.(),e||j(!1),setTimeout(()=>{a&&me(a[0])},ng.DURATION*1e3)}function Ee(){if(!R.current)return;let e=document.querySelector(`[data-vaul-drawer-wrapper]`),t=$h(R.current,x);Xh(R.current,{transform:`translate3d(0, 0, 0)`,transition:`transform ${ng.DURATION}s cubic-bezier(${ng.EASE.join(`,`)})`}),Xh(ee.current,{transition:`opacity ${ng.DURATION}s cubic-bezier(${ng.EASE.join(`,`)})`,opacity:`1`}),o&&t&&t>0&&A&&Xh(e,{borderRadius:`${og}px`,overflow:`hidden`,...Qh(x)?{transform:`scale(${xe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:`top`}:{transform:`scale(${xe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:`left`},transitionProperty:`transform, border-radius`,transitionDuration:`${ng.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ng.EASE.join(`,`)})`},!0)}function De(){P&&R.current&&(R.current.classList.remove(lg),ae.current=!1,F(!1),re.current=new Date)}function Oe(e){if(!P||!R.current)return;R.current.classList.remove(lg),ae.current=!1,F(!1),re.current=new Date;let t=$h(R.current,x);if(!e||!Ce(e.target,!1)||!t||Number.isNaN(t)||ne.current===null)return;let n=re.current.getTime()-ne.current.getTime(),r=se.current-(Qh(x)?e.pageY:e.pageX),o=Math.abs(r)/n;if(o>.05&&(L(!0),setTimeout(()=>{L(!1)},200)),a){he({draggedDistance:r*(x===`bottom`||x===`right`?1:-1),closeDrawer:Te,velocity:o,dismissible:u}),i?.(e,!0);return}if(x===`bottom`||x===`right`?r>0:r<0){Ee(),i?.(e,!0);return}if(o>rg){Te(),i?.(e,!1);return}let s=Math.min(R.current.getBoundingClientRect().height??0,window.innerHeight),l=Math.min(R.current.getBoundingClientRect().width??0,window.innerWidth);if(Math.abs(t)>=(x===`left`||x===`right`?l:s)*c){Te(),i?.(e,!1);return}i?.(e,!0),Ee()}_.useEffect(()=>(A&&(Xh(document.documentElement,{scrollBehavior:`auto`}),te.current=new Date),()=>{Zh(document.documentElement,`scrollBehavior`)}),[A]);function ke(e){let t=e?(window.innerWidth-sg)/window.innerWidth:1,n=e?-16:0;oe.current&&window.clearTimeout(oe.current),Xh(R.current,{transition:`transform ${ng.DURATION}s cubic-bezier(${ng.EASE.join(`,`)})`,transform:Qh(x)?`scale(${t}) translate3d(0, ${n}px, 0)`:`scale(${t}) translate3d(${n}px, 0, 0)`}),!e&&R.current&&(oe.current=setTimeout(()=>{let e=$h(R.current,x);Xh(R.current,{transition:`none`,transform:Qh(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))}function Ae(e,t){if(t<0)return;let n=(window.innerWidth-sg)/window.innerWidth,r=n+t*(1-n),i=-16+t*sg;Xh(R.current,{transform:Qh(x)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`,transition:`none`})}function je(e,t){let n=Qh(x)?window.innerHeight:window.innerWidth,r=t?(n-sg)/n:1,i=t?-16:0;t&&Xh(R.current,{transition:`transform ${ng.DURATION}s cubic-bezier(${ng.EASE.join(`,`)})`,transform:Qh(x)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`})}return _.useEffect(()=>{g||window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`})},[g]),_.createElement(Qm,{defaultOpen:S,onOpenChange:e=>{(u||e)&&(e?N(!0):Te(!0),j(e))},open:A},_.createElement(Sh.Provider,{value:{activeSnapPoint:fe,snapPoints:a,setActiveSnapPoint:me,drawerRef:R,overlayRef:ee,onOpenChange:t,onPress:Se,onRelease:Oe,onDrag:we,dismissible:u,shouldAnimate:le,handleOnly:d,isOpen:A,isDragging:P,shouldFade:ve,closeDrawer:Te,onNestedDrag:Ae,onNestedOpenChange:ke,onNestedRelease:je,keyboardIsOpen:ce,modal:g,snapPointsOffset:ge,activeSnapPointIndex:pe,direction:x,shouldScaleBackground:o,setBackgroundColorOnScale:s,noBodyStyles:b,container:O,autoFocus:k}},n))}var vg=_.forwardRef(function({...e},t){let{overlayRef:n,snapPoints:r,onRelease:i,shouldFade:a,isOpen:o,modal:s,shouldAnimate:c}=Ch(),l=Jh(t,n),u=r&&r.length>0;if(!s)return null;let d=_.useCallback(e=>i(e),[i]);return _.createElement(oh,{onMouseUp:d,ref:l,"data-vaul-overlay":``,"data-vaul-snap-points":o&&u?`true`:`false`,"data-vaul-snap-points-overlay":o&&a?`true`:`false`,"data-vaul-animate":c?.current?`true`:`false`,...e})});vg.displayName=`Drawer.Overlay`;var yg=_.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},i){let{drawerRef:a,onPress:o,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:p,direction:m,snapPoints:h,container:g,handleOnly:v,shouldAnimate:y,autoFocus:b}=Ch(),[x,S]=_.useState(!1),C=Jh(i,a),w=_.useRef(null),T=_.useRef(null),E=_.useRef(!1),D=h&&h.length>0;mg();let O=(e,t,n=0)=>{if(E.current)return!0;let r=Math.abs(e.y),i=Math.abs(e.x),a=i>r,o=[`bottom`,`right`].includes(t)?1:-1;if(t===`left`||t===`right`){if(!(e.x*o<0)&&i>=0&&i<=n)return a}else if(!(e.y*o<0)&&r>=0&&r<=n)return!a;return E.current=!0,!0};_.useEffect(()=>{D&&window.requestAnimationFrame(()=>{S(!0)})},[]);function k(e){w.current=null,E.current=!1,s(e)}return _.createElement(uh,{"data-vaul-drawer-direction":m,"data-vaul-drawer":``,"data-vaul-delayed-snap-points":x?`true`:`false`,"data-vaul-snap-points":p&&D?`true`:`false`,"data-vaul-custom-container":g?`true`:`false`,"data-vaul-animate":y?.current?`true`:`false`,...r,ref:C,style:u&&u.length>0?{"--snap-point-height":`${u[d??0]}px`,...t}:t,onPointerDown:e=>{v||(r.onPointerDown==null||r.onPointerDown.call(r,e),w.current={x:e.pageX,y:e.pageY},o(e))},onOpenAutoFocus:e=>{n?.(e),b||e.preventDefault()},onPointerDownOutside:t=>{if(e?.(t),!f||t.defaultPrevented){t.preventDefault();return}l.current&&=!1},onFocusOutside:e=>{if(!f){e.preventDefault();return}},onPointerMove:e=>{if(T.current=e,v||(r.onPointerMove==null||r.onPointerMove.call(r,e),!w.current))return;let t=e.pageY-w.current.y,n=e.pageX-w.current.x,i=e.pointerType===`touch`?10:2;O({x:n,y:t},m,i)?c(e):(Math.abs(n)>i||Math.abs(t)>i)&&(w.current=null)},onPointerUp:e=>{r.onPointerUp==null||r.onPointerUp.call(r,e),w.current=null,E.current=!1,s(e)},onPointerOut:e=>{r.onPointerOut==null||r.onPointerOut.call(r,e),k(T.current)},onContextMenu:e=>{r.onContextMenu==null||r.onContextMenu.call(r,e),T.current&&k(T.current)}})});yg.displayName=`Drawer.Content`;var bg=250,xg=120,Sg=_.forwardRef(function({preventCycle:e=!1,children:t,...n},r){let{closeDrawer:i,isDragging:a,snapPoints:o,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:d,onPress:f,onDrag:p}=Ch(),m=_.useRef(null),h=_.useRef(!1);function g(){if(h.current){b();return}window.setTimeout(()=>{v()},xg)}function v(){if(a||e||h.current){b();return}if(b(),!o||o.length===0){l||i();return}if(s===o[o.length-1]&&l){i();return}let t=o.findIndex(e=>e===s);if(t===-1)return;let n=o[t+1];c(n)}function y(){m.current=window.setTimeout(()=>{h.current=!0},bg)}function b(){m.current&&window.clearTimeout(m.current),h.current=!1}return _.createElement(`div`,{onClick:g,onPointerCancel:b,onPointerDown:e=>{u&&f(e),y()},onPointerMove:e=>{u&&p(e)},ref:r,"data-vaul-drawer-visible":d?`true`:`false`,"data-vaul-handle":``,"aria-hidden":`true`,...n},_.createElement(`span`,{"data-vaul-handle-hitarea":``,"aria-hidden":`true`},t))});Sg.displayName=`Drawer.Handle`;function Cg({onDrag:e,onOpenChange:t,open:n,...r}){let{onNestedDrag:i,onNestedOpenChange:a,onNestedRelease:o}=Ch();if(!i)throw Error(`Drawer.NestedRoot must be placed in another drawer`);return _.createElement(_g,{nested:!0,open:n,onClose:()=>{a(!1)},onDrag:(t,n)=>{i(t,n),e?.(t,n)},onOpenChange:e=>{e&&a(e),t?.(e)},onRelease:o,...r})}function wg(e){let t=Ch(),{container:n=t.container,...r}=e;return _.createElement(ih,{container:n,...r})}var Tg={Root:_g,NestedRoot:Cg,Content:yg,Overlay:vg,Trigger:eh,Portal:wg,Handle:Sg,Close:yh,Title:hh,Description:_h},Eg=Symbol.for(`react.portal`);function Dg(e,t){if(e==null||typeof e==`boolean`)return!1;if(Array.isArray(e))return e.some(e=>Dg(e,t));if(_.isValidElement(e)){if(e.type===t)return!0;let n=e.props;return n.children!=null&&Dg(n.children,t)}if(typeof e==`string`||typeof e==`number`)return!1;if(typeof e==`object`&&e.$$typeof===Eg)return Dg(e.children,t);if(typeof e==`object`&&Symbol.iterator in e)return Array.from(e).some(e=>Dg(e,t));if(globalThis.process?.env?.NODE_ENV!==`production`){let t=typeof e==`object`?` with keys {${Object.keys(e).join(`, `)}}`:``;console.error(`[treeContainsComponent] A non-renderable value${t} is being passed as a React child. React will throw 'Objects are not valid as a React child' at the real render site. Stringify it (e.g. JSON.stringify) before rendering.`,e)}return!1}var Og=`data-matrx-floating-layer`,kg=Symbol.for(`ai-matrx.design-system.modal-layer-registry`),Ag=globalThis,jg=Ag[kg]??={count:0,listeners:new Set};function Mg(){for(let e of jg.listeners)e()}var Ng=[`wheel`,`touchmove`];function Pg(e){Bg(e.target)&&e.stopPropagation()}function Fg(e){if(typeof document<`u`&&document.body)for(let t of Ng)e?document.body.addEventListener(t,Pg,{passive:!0}):document.body.removeEventListener(t,Pg)}function Ig(){jg.count+=1,jg.count===1&&Fg(!0),Mg();let e=!1;return()=>{e||(e=!0,jg.count=Math.max(0,jg.count-1),jg.count===0&&Fg(!1),Mg())}}function Lg(){return jg.count>0}function Rg(e){_.useLayoutEffect(()=>e?Ig():void 0,[e])}var zg=`[data-radix-popper-content-wrapper]`;function Bg(e){return e instanceof Element?e.closest(`[data-matrx-floating-layer]`)?!0:e.closest(zg)!==null&&e.ownerDocument.querySelector(`[data-matrx-floating-layer]`)!==null:!1}function Vg(e){return t=>{e?.(t),Bg(t.target)&&t.preventDefault()}}var Hg=e=>e.preventDefault(),Ug=_.forwardRef(({children:e},t)=>{let[n]=_.useState(()=>typeof document>`u`?null:document.activeElement);return(0,j.jsx)(lp,{asChild:!0,trapped:!1,loop:!1,onMountAutoFocus:Hg,onUnmountAutoFocus:e=>{e.preventDefault();let t=document.activeElement;(!t||t===document.body||!t.isConnected)&&Lg()&&n instanceof HTMLElement&&n.isConnected&&n.focus({preventScroll:!0})},children:(0,j.jsx)(Ki,{ref:t,[Og]:``,style:{pointerEvents:`auto`},children:e})})});Ug.displayName=`FloatingLayer`;var Wg=Symbol.for(`ai-matrx.design-system.dialog-modal-context`),Gg=globalThis,Kg=Gg[Wg]??=_.createContext(!0);function qg({children:e,modal:t}){return(0,j.jsx)(Kg.Provider,{value:t,children:e})}function Jg(){return _.useContext(Kg)}var Yg=_.createContext(`bottom`),Xg=()=>_.useContext(Yg),Zg=({children:e,shouldScaleBackground:t=!0,onOpenChange:n,...r})=>{let i=r.direction??`bottom`,a=e=>{e&&typeof document<`u`&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),n?.(e)};return(0,j.jsx)(qg,{modal:!0,children:(0,j.jsx)(Yg.Provider,{value:i,children:(0,j.jsx)(Tg.Root,{modal:!0,shouldScaleBackground:t,...r,onOpenChange:a,direction:i,children:e})})})};Zg.displayName=`Drawer`;var Qg=Tg.Trigger,$g=Tg.Portal;Tg.Close;var e_=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Tg.Overlay,{ref:n,"data-slot":`drawer-overlay`,className:Z(`fixed inset-0 z-[10000] bg-[var(--matrx-overlay-scrim)]`,e),...t}));e_.displayName=Tg.Overlay.displayName;var t_=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Tg.Description,{ref:n,"data-slot":`drawer-description`,className:Z(`text-sm text-muted-foreground`,e),...t}));t_.displayName=Tg.Description.displayName;var n_=_.forwardRef(({onInteractOutside:e,...t},n)=>(Rg(!0),(0,j.jsx)(Tg.Content,{"data-matrx-entrance":`none`,...t,ref:n,"aria-modal":`true`,onInteractOutside:Vg(e)})));n_.displayName=`DrawerContentPrimitive`;var r_={bottom:`inset-x-0 bottom-0 mt-24 flex-col rounded-t-[10px] border-t pb-safe`,top:`inset-x-0 top-0 mb-24 flex-col rounded-b-[10px] border-b pt-safe`,left:`inset-y-0 left-0 mr-24 flex-row rounded-r-[10px] border-r`,right:`inset-y-0 right-0 ml-24 flex-row rounded-l-[10px] border-l`},i_={bottom:{adaptive:`h-auto max-h-[90dvh]`,full:`h-[92dvh]`},top:{adaptive:`h-auto max-h-[90dvh]`,full:`h-[92dvh]`},left:{adaptive:`w-auto max-w-[92vw]`,full:`h-dvh w-[92vw] max-w-sm`},right:{adaptive:`w-auto max-w-[92vw]`,full:`h-dvh w-[92vw] max-w-sm`}},a_=_.forwardRef(({className:e,children:t,size:n=`adaptive`,showHandle:r,...i},a)=>{let o=Xg(),s=Dg(t,t_)||Dg(t,Tg.Description),c=r??(o===`bottom`||o===`top`);return(0,j.jsxs)($g,{children:[(0,j.jsx)(e_,{}),(0,j.jsxs)(n_,{ref:a,"data-slot":`drawer-content`,"data-direction":o,className:Z(`fixed z-[10000] flex min-w-0 border bg-background`,r_[o],i_[o][n],e),...s?{}:{"aria-describedby":void 0},...i,children:[c?(0,j.jsx)(`div`,{"aria-hidden":!0,"data-slot":`drawer-handle`,className:Z(`flex min-h-11 w-full shrink-0 cursor-grab items-center justify-center active:cursor-grabbing`,o===`top`&&`order-last`),children:(0,j.jsx)(`div`,{className:`h-1 w-[100px] rounded-full bg-muted`})}):null,t]})]})});a_.displayName=`DrawerContent`;var o_=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Tg.Title,{ref:n,"data-slot":`drawer-title`,className:Z(`text-lg font-semibold leading-none tracking-tight`,e),...t}));o_.displayName=Tg.Title.displayName;var s_=Symbol.for(`@ai-matrx/design-system/error-actions`),c_=globalThis,l_=c_[s_]??(c_[s_]=_.createContext(null));function u_(){return _.useContext(l_)}function d_(e){let t=u_();return t?(0,j.jsx)(j.Fragment,{children:t(e)}):null}var f_=_.forwardRef(function({as:e=`p`,message:t,title:n,error:r,operation:i,records:a,unsavedInput:o,origin:s,children:c,...l},u){let d=e,f={...t===void 0?{}:{message:t},...n===void 0?{}:{title:n},...r===void 0?{}:{error:r},...i===void 0?{}:{operation:i},...a===void 0?{}:{records:a},...o===void 0?{}:{unsavedInput:o},...s===void 0?{}:{origin:s}};return(0,j.jsxs)(d,{ref:u,role:`alert`,"data-error-box":``,...l,children:[c??t,(0,j.jsx)(d_,{...f})]})}),p_=rp(`matrx-glyph-trim inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 disabled:opacity-50 active:scale-[0.98] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-sm hover:bg-primary/90`,primary:`bg-primary text-primary-foreground shadow-sm hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,success:`bg-success text-success-foreground shadow-sm hover:bg-success/90`,outline:`border border-border bg-card shadow-sm 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`,subtle:`border border-transparent bg-muted/50 text-foreground hover:border-border hover:bg-muted`},size:{xs:`h-6 rounded-md px-1 text-xs`,sm:`h-8 rounded-md px-3 text-xs`,default:`h-9 px-4 py-2`,md:`h-9 px-4 py-2`,lg:`h-10 rounded-md px-6`,xl:`h-12 px-8 py-3 text-base`,"2xl":`h-14 px-10 py-3 text-base`,"3xl":`h-16 px-12 py-3 text-base`,icon:`h-9 w-9`,"icon-sm":`h-7 w-7`,roundIcon:`h-8 w-8 rounded-full p-0`}},defaultVariants:{variant:`default`,size:`default`}}),m_=new Set([`xs`,`sm`,`default`,`md`,`lg`,`icon`,`icon-sm`,`roundIcon`]),h_=new Set([`icon`,`icon-sm`,`roundIcon`]);function g_(e){e.preventDefault(),e.stopPropagation()}var __=_.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,onClick:i,...a},o)=>{let s=r?Ki:`button`,c=n??`default`,l=r&&!!a.disabled,u=a[`aria-disabled`],d=l||u===!0||u===`true`;return(0,j.jsx)(s,{className:Z(p_({variant:t,size:n,className:e})),"data-matrx-button":``,"data-tap-floor":m_.has(c)?``:void 0,"data-tap-floor-square":h_.has(c)?``:void 0,ref:o,...a,"aria-disabled":l?!0:u,tabIndex:l?-1:a.tabIndex,onClick:d?g_:i})});__.displayName=`Button`;var v_=`(max-width: 767px)`;function y_(){return typeof window<`u`&&typeof window.matchMedia==`function`}function b_(e){if(!y_())return()=>{};let t=window.matchMedia(v_);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function x_(){return y_()?window.matchMedia(v_).matches:typeof window<`u`&&window.innerWidth<768}function S_(){return!1}function C_(){return _.useSyncExternalStore(b_,x_,S_)}var w_=Object.defineProperty,T_=(e,t)=>w_(e,`name`,{value:t,configurable:!0}),E_=!1;function D_(){let[e,t]=_.useState(E_);return _.useEffect(()=>{E_||(E_=!0,t(!0))},[]),e}T_(D_,`useIsHydrated`);var O_=_.useSyncExternalStore;function k_(){return()=>{}}T_(k_,`subscribe`);function A_(){return O_(k_,()=>!0,()=>!1)}T_(A_,`useIsHydratedModern`);var j_=typeof O_==`function`?A_:D_,M_=Object.defineProperty,N_=(e,t)=>M_(e,`name`,{value:t,configurable:!0}),P_=`rovingFocusGroup.onEntryFocus`,F_={bubbles:!1,cancelable:!0},I_=`RovingFocusGroup`,[L_,R_,z_]=Nf(I_),[B_,V_]=Vi(I_,[z_]),[H_,U_]=B_(I_),W_=_.forwardRef(N_(function(e,t){return(0,j.jsx)(L_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(L_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(G_,{...e,ref:t})})})},`RovingFocusGroup`)),G_=_.forwardRef(N_(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=_.useRef(null),p=H(t,f),m=Kf(a),[h,g]=kc({prop:o,defaultProp:s??null,onChange:c,caller:I_}),[v,y]=_.useState(!1),b=ua(l),x=R_(n),S=_.useRef(!1),[C,w]=_.useState(0);return _.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(P_,b),()=>e.removeEventListener(P_,b)},[b]),(0,j.jsx)(H_,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:_.useCallback(e=>g(e),[g]),onItemShiftTab:_.useCallback(()=>y(!0),[]),onFocusableItemAdd:_.useCallback(()=>w(e=>e+1),[]),onFocusableItemRemove:_.useCallback(()=>w(e=>e-1),[]),children:(0,j.jsx)(W.div,{tabIndex:v||C===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:V(e.onMouseDown,()=>{S.current=!0}),onFocus:V(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(P_,F_);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable);Z_([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}S.current=!1}),onBlur:V(e.onBlur,()=>y(!1))})})},`RovingFocusGroupImpl`)),K_=`RovingFocusGroupItem`,q_=_.forwardRef(N_(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Aa(),l=a||c,u=U_(K_,n),d=u.currentTabStopId===l,f=R_(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=j_();return Ta(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),_.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,j.jsx)(L_.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,j.jsx)(W.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:V(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:V(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:V(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=X_(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?Q_(n,r+1):n.slice(r+1)}setTimeout(()=>Z_(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),J_={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Y_(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}N_(Y_,`getDirectionAwareKey`);function X_(e,t,n){let r=Y_(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return J_[r]}N_(X_,`getFocusIntent`);function Z_(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}N_(Z_,`focusFirst`);function Q_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}N_(Q_,`wrapArray`);var $_=W_,ev=q_,tv=Object.defineProperty,nv=(e,t)=>tv(e,`name`,{value:t,configurable:!0}),rv=[`Enter`,` `],iv=[`ArrowDown`,`PageUp`,`Home`],av=[`ArrowUp`,`PageDown`,`End`],ov=[...iv,...av],sv={ltr:[...rv,`ArrowRight`],rtl:[...rv,`ArrowLeft`]},cv={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},lv=`Menu`,[uv,dv,fv]=Nf(lv),[pv,mv]=Vi(lv,[fv,Js,V_]),hv=Js(),gv=V_(),[_v,vv]=pv(lv),[yv,bv]=pv(lv),xv=nv(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=hv(t),[c,l]=_.useState(null),u=_.useRef(!1),d=ua(a),f=Kf(i);return _.useEffect(()=>{let e=nv(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=nv(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),_.useEffect(()=>{if(!n)return;let e=nv(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,j.jsx)(sc,{...s,children:(0,j.jsx)(_v,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,j.jsx)(yv,{scope:t,onClose:_.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),Sv=_.forwardRef(nv(function(e,t){let{__scopeMenu:n,...r}=e,i=hv(n);return(0,j.jsx)(cc,{...i,...r,ref:t})},`MenuAnchor`)),Cv=`MenuPortal`,[wv,Tv]=pv(Cv,{forceMount:void 0}),Ev=nv(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=vv(Cv,t);return(0,j.jsx)(wv,{scope:t,forceMount:n,children:(0,j.jsx)(hc,{present:n||a.open,children:(0,j.jsx)(dc,{asChild:!0,container:i,children:r})})})},`MenuPortal`),Dv=`MenuContent`,[Ov,kv]=pv(Dv),Av=_.forwardRef(nv(function(e,t){let n=Tv(Dv,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=vv(Dv,e.__scopeMenu),o=bv(Dv,e.__scopeMenu);return(0,j.jsx)(uv.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(hc,{present:r||a.open,children:(0,j.jsx)(uv.Slot,{scope:e.__scopeMenu,children:o.modal?(0,j.jsx)(jv,{...i,ref:t}):(0,j.jsx)(Mv,{...i,ref:t})})})})},`MenuContent`)),jv=_.forwardRef(nv(function(e,t){let n=vv(Dv,e.__scopeMenu),r=_.useRef(null),i=H(t,r);return _.useEffect(()=>{let e=r.current;if(e)return Wm(e)},[]),(0,j.jsx)(Pv,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),Mv=_.forwardRef(nv(function(e,t){let n=vv(Dv,e.__scopeMenu);return(0,j.jsx)(Pv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),Nv=Gi(`MenuContent.ScrollLock`),Pv=_.forwardRef(nv(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=vv(Dv,n),v=bv(Dv,n),y=hv(n),b=gv(n),x=dv(n),[S,C]=_.useState(null),w=_.useRef(null),T=H(t,w,g.onContentChange),E=_.useRef(0),D=_.useRef(``),O=_.useRef(0),k=_.useRef(null),A=_.useRef(`right`),M=_.useRef(0),N=m?Fm:_.Fragment,P=m?{as:Nv,allowPinchZoom:!0}:void 0,F=nv(e=>{let t=D.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=dy(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;nv((function e(t){D.current=t,window.clearTimeout(E.current),t!==``&&(E.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);_.useEffect(()=>()=>window.clearTimeout(E.current),[]),Ep();let I=_.useCallback(e=>A.current===k.current?.side&&py(e,k.current?.area),[]);return(0,j.jsx)(Ov,{scope:n,searchRef:D,onItemEnter:_.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:_.useCallback(e=>{I(e)||(w.current?.focus(),C(null))},[I]),onTriggerLeave:_.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:O,onPointerGraceIntentChange:_.useCallback(e=>{k.current=e},[]),children:(0,j.jsx)(N,{...P,children:(0,j.jsx)(lp,{asChild:!0,trapped:i,onMountAutoFocus:V(a,e=>{e.preventDefault(),w.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,j.jsx)($_,{asChild:!0,...b,dir:v.dir,orientation:`vertical`,loop:r,currentTabStopId:S,onCurrentTabStopIdChange:C,onEntryFocus:V(c,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,j.jsx)(lc,{role:`menu`,"aria-orientation":`vertical`,"data-state":oy(g.open),"data-radix-menu-content":``,dir:v.dir,...y,...h,ref:T,style:{outline:`none`,...h.style},onKeyDown:V(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&F(e.key));let i=w.current;if(e.target!==i||!ov.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);av.includes(e.key)&&a.reverse(),ly(a)}),onBlur:V(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),D.current=``)}),onPointerMove:V(e.onPointerMove,my(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?`right`:`left`;A.current=t,M.current=e.clientX}}))})})})})})})},`MenuContentImpl`)),Fv=_.forwardRef(nv(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{role:`group`,...r,ref:t})},`MenuGroup`)),Iv=_.forwardRef(nv(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{...r,ref:t})},`MenuLabel`)),Lv=`MenuItem`,Rv=`menu.itemSelect`,zv=_.forwardRef(nv(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=_.useRef(null),o=bv(Lv,e.__scopeMenu),s=kv(Lv,e.__scopeMenu),c=H(t,a),l=_.useRef(!1),u=nv(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(Rv,{bubbles:!0,cancelable:!0});e.addEventListener(Rv,e=>r?.(e),{once:!0}),sa(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,j.jsx)(Bv,{...i,ref:c,disabled:n,onClick:V(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:V(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&rv.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),Bv=_.forwardRef(nv(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=kv(Lv,n),s=gv(n),c=_.useRef(null),l=H(t,c),[u,d]=_.useState(!1),[f,p]=_.useState(``);return _.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,j.jsx)(uv.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,j.jsx)(ev,{asChild:!0,...s,focusable:!r,children:(0,j.jsx)(W.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:V(e.onPointerMove,my(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,my(e=>o.onItemLeave(e))),onFocus:V(e.onFocus,()=>d(!0)),onBlur:V(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),Vv=_.forwardRef(nv(function(e,t){let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,j.jsx)(Jv,{scope:e.__scopeMenu,checked:n,children:(0,j.jsx)(zv,{role:`menuitemcheckbox`,"aria-checked":sy(n)?`mixed`:n,...i,ref:t,"data-state":cy(n),onSelect:V(i.onSelect,()=>r?.(sy(n)?!0:!n),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[Hv,Uv]=pv(`MenuRadioGroup`,{value:void 0,onValueChange:nv(()=>{},`onValueChange`)}),Wv=_.forwardRef(nv(function(e,t){let{value:n,onValueChange:r,...i}=e,a=ua(r);return(0,j.jsx)(Hv,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,j.jsx)(Fv,{...i,ref:t})})},`MenuRadioGroup`)),Gv=`MenuRadioItem`,Kv=_.forwardRef(nv(function(e,t){let{value:n,...r}=e,i=Uv(Gv,e.__scopeMenu),a=n===i.value;return(0,j.jsx)(Jv,{scope:e.__scopeMenu,checked:a,children:(0,j.jsx)(zv,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":cy(a),onSelect:V(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},`MenuRadioItem`)),qv=`MenuItemIndicator`,[Jv,Yv]=pv(qv,{checked:!1}),Xv=_.forwardRef(nv(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,a=Yv(qv,n);return(0,j.jsx)(hc,{present:r||sy(a.checked)||a.checked===!0,children:(0,j.jsx)(W.span,{...i,ref:t,"data-state":cy(a.checked)})})},`MenuItemIndicator`)),Zv=_.forwardRef(nv(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),Qv=`MenuSub`,[$v,ey]=pv(Qv),ty=nv(e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=vv(Qv,t),o=hv(t),[s,c]=_.useState(null),[l,u]=_.useState(null),d=ua(i);return _.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,j.jsx)(sc,{...o,children:(0,j.jsx)(_v,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,j.jsx)($v,{scope:t,contentId:Aa(),triggerId:Aa(),trigger:s,onTriggerChange:c,children:n})})})},`MenuSub`),ny=`MenuSubTrigger`,ry=_.forwardRef(nv(function(e,t){let n=vv(ny,e.__scopeMenu),r=bv(ny,e.__scopeMenu),i=ey(ny,e.__scopeMenu),a=kv(ny,e.__scopeMenu),o=_.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=_.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);_.useEffect(()=>u,[u]),_.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]);let d=H(t,i.onTriggerChange);return(0,j.jsx)(Sv,{asChild:!0,...l,children:(0,j.jsx)(Bv,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":oy(n.open),...e,ref:d,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:V(e.onPointerMove,my(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:V(e.onPointerLeave,my(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:V(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||(a.searchRef.current===``||t.key!==` `)&&sv[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})},`MenuSubTrigger`)),iy=`MenuSubContent`,ay=_.forwardRef(nv(function(e,t){let n=Tv(Dv,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=vv(Dv,e.__scopeMenu),s=bv(Dv,e.__scopeMenu),c=ey(iy,e.__scopeMenu),l=_.useRef(null),u=H(t,l);return(0,j.jsx)(uv.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(hc,{present:r||o.open,children:(0,j.jsx)(uv.Slot,{scope:e.__scopeMenu,children:(0,j.jsx)(Pv,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:V(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:V(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:V(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=cv[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})},`MenuSubContent`));function oy(e){return e?`open`:`closed`}nv(oy,`getOpenState`);function sy(e){return e===`indeterminate`}nv(sy,`isIndeterminate`);function cy(e){return sy(e)?`indeterminate`:e?`checked`:`unchecked`}nv(cy,`getCheckedState`);function ly(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}nv(ly,`focusFirst`);function uy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}nv(uy,`wrapArray`);function dy(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=uy(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}nv(dy,`getNextMatch`);function fy(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}nv(fy,`isPointInPolygon`);function py(e,t){return t?fy({x:e.clientX,y:e.clientY},t):!1}nv(py,`isPointerInGraceArea`);function my(e){return t=>t.pointerType===`mouse`?e(t):void 0}nv(my,`whenMouse`);var hy=xv,gy=Sv,_y=Ev,vy=Av,yy=Iv,by=zv,xy=Vv,Sy=Wv,Cy=Kv,wy=Xv,Ty=Zv,Ey=ty,Dy=ry,Oy=ay,ky=Object.defineProperty,Ay=(e,t)=>ky(e,`name`,{value:t,configurable:!0}),jy=`ContextMenu`,[My,Ny]=Vi(jy,[mv]),Py=mv(),[Fy,Iy]=My(jy),Ly=Ay(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=_.useRef(!1),[c,l]=kc({prop:i,defaultProp:!1,onChange:r,caller:jy}),u=Py(t);return(0,j.jsx)(Fy,{scope:t,open:c,onOpenChange:l,modal:o,hasInteractedRef:s,children:(0,j.jsx)(hy,{...u,dir:a,open:c,onOpenChange:l,modal:o,children:n})})},`ContextMenu`),Ry=`ContextMenuTrigger`,zy=_.forwardRef(Ay(function(e,t){let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=Iy(Ry,n),o=Py(n),[s,c]=_.useState({x:0,y:0}),l=_.useMemo(()=>({current:{getBoundingClientRect:Ay(()=>DOMRect.fromRect({width:0,height:0,...s}),`getBoundingClientRect`)}}),[s]),u=_.useRef(0),d=_.useCallback(()=>window.clearTimeout(u.current),[]),f=Ay(e=>{a.hasInteractedRef.current=!0,c({x:e.clientX,y:e.clientY}),a.onOpenChange(!0)},`handleOpen`);return _.useEffect(()=>d,[d]),_.useEffect(()=>void(r&&d()),[r,d]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(gy,{...o,virtualRef:l}),(0,j.jsx)(W.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:V(e.onContextMenu,e=>{d(),f(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:V(e.onPointerDown,$y(e=>{d(),a.open&&a.onOpenChange(!1),u.current=window.setTimeout(()=>f(e),700)})),onPointerMove:r?e.onPointerMove:V(e.onPointerMove,$y(d)),onPointerCancel:r?e.onPointerCancel:V(e.onPointerCancel,$y(d)),onPointerUp:r?e.onPointerUp:V(e.onPointerUp,$y(d))})]})},`ContextMenuTrigger`)),By=Ay(e=>{let{__scopeContextMenu:t,...n}=e,r=Py(t);return(0,j.jsx)(_y,{...r,...n})},`ContextMenuPortal`),Vy=`ContextMenuContent`,Hy=_.forwardRef(Ay(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Iy(Vy,n),a=Py(n),o=_.useRef(!1);return(0,j.jsx)(vy,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuContent`)),Uy=_.forwardRef(Ay(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Py(n);return(0,j.jsx)(yy,{...i,...r,ref:t})},`ContextMenuLabel`)),Wy=_.forwardRef(Ay(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Py(n);return(0,j.jsx)(by,{...i,...r,ref:t})},`ContextMenuItem`)),Gy=_.forwardRef(Ay(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Py(n);return(0,j.jsx)(xy,{...i,...r,ref:t})},`ContextMenuCheckboxItem`)),Ky=_.forwardRef(Ay(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Py(n);return(0,j.jsx)(Cy,{...i,...r,ref:t})},`ContextMenuRadioItem`)),qy=_.forwardRef(Ay(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Py(n);return(0,j.jsx)(wy,{...i,...r,ref:t})},`ContextMenuItemIndicator`)),Jy=_.forwardRef(Ay(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Py(n);return(0,j.jsx)(Ty,{...i,...r,ref:t})},`ContextMenuSeparator`)),Yy=`ContextMenuSub`,Xy=Ay(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=Py(t),[s,c]=kc({prop:i,defaultProp:a??!1,onChange:r,caller:Yy});return(0,j.jsx)(Ey,{...o,open:s,onOpenChange:c,children:n})},`ContextMenuSub`),Zy=_.forwardRef(Ay(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Py(n);return(0,j.jsx)(Dy,{...i,...r,ref:t})},`ContextMenuSubTrigger`)),Qy=_.forwardRef(Ay(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Py(n);return(0,j.jsx)(Oy,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuSubContent`));function $y(e){return t=>t.pointerType===`mouse`?void 0:e(t)}Ay($y,`whenTouchOrPen`);var eb=Ly,tb=zy,nb=By,rb=Hy,ib=Uy,ab=Wy,ob=Gy,sb=Ky,cb=qy,lb=Jy,ub=Xy,db=Zy,fb=Qy,pb=2;function mb(){let[e,t]=(0,_.useState)({top:!1,bottom:!1}),n=(0,_.useRef)(null),r=(0,_.useRef)(null),i=(0,_.useCallback)(()=>{let e=n.current;if(!e)return;let r=e.scrollHeight-e.clientHeight>pb,i={top:r&&e.scrollTop>pb,bottom:r&&e.scrollTop+e.clientHeight<e.scrollHeight-pb};t(e=>e.top===i.top&&e.bottom===i.bottom?e:i)},[]),a=(0,_.useCallback)(e=>{if(r.current?.(),r.current=null,n.current=e,!e)return;e.addEventListener(`scroll`,i,{passive:!0});let t=typeof ResizeObserver>`u`?null:new ResizeObserver(i);t?.observe(e);let a=new MutationObserver(i);a.observe(e,{childList:!0,subtree:!0}),r.current=()=>{e.removeEventListener(`scroll`,i),t?.disconnect(),a.disconnect()},requestAnimationFrame(i)},[i]);return(0,_.useEffect)(()=>()=>r.current?.(),[]),{ref:a,state:e,fadeProps:{"data-fade-top":e.top?``:void 0,"data-fade-bottom":e.bottom?``:void 0,className:`matrx-scroll-fade`}}}var hb=.6,gb=48;function _b(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function vb({side:e,scroller:t}){let n=_.useRef(null),r=e===`top`?-1:1,i=_.useCallback(()=>{n.current!==null&&cancelAnimationFrame(n.current),n.current=null},[]),a=_.useCallback(()=>{i();let e=performance.now(),a=o=>{let s=t.current;if(!s)return i();s.scrollTop+=r*hb*(o-e),e=o,n.current=requestAnimationFrame(a)};n.current=requestAnimationFrame(a)},[r,t,i]);return _.useEffect(()=>i,[i]),(0,j.jsx)(`div`,{"aria-hidden":!0,"data-menu-scroll-edge":e,className:`matrx-menu-scroll-edge`,children:(0,j.jsx)(`div`,{className:`matrx-menu-scroll-fade`,children:(0,j.jsx)(`div`,{"data-menu-scroll-button":``,className:`matrx-menu-scroll-button`,onPointerEnter:e=>{e.pointerType!==`touch`&&a()},onPointerLeave:i,onPointerDown:e=>{e.preventDefault();let n=t.current;n&&(n.scrollTop+=r*Math.max(n.clientHeight-gb,gb))},children:e===`top`?(0,j.jsx)(ep,{}):(0,j.jsx)($f,{})})})})}function yb(...e){let t=mb(),n=_.useRef(null);return{ref:_.useCallback(_b(n,t.ref,...e),[t.ref,...e]),wrap:e=>(0,j.jsxs)(j.Fragment,{children:[t.state.top?(0,j.jsx)(vb,{side:`top`,scroller:n}):null,e,t.state.bottom?(0,j.jsx)(vb,{side:`bottom`,scroller:n}):null]}),surfaceClassName:`matrx-menu-surface`}}function bb(e,t){let n=_.useRef(null);return{ref:_.useCallback(t=>{n.current=t,typeof e==`function`?e(t):e&&(e.current=t)},[e]),onFocusOutside:e=>{if(t?.(e),e.defaultPrevented)return;let r=e.target,i=n.current?.id;r instanceof Element&&i&&r.getAttribute(`role`)===`menu`&&Array.from(r.querySelectorAll(`[aria-controls]`)).some(e=>e.getAttribute(`aria-controls`)===i)&&e.preventDefault()}}}var xb=_.createContext(null);function Sb(e,t){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:{top:e?.top??t,right:e?.right??t,bottom:e?.bottom??t,left:e?.left??t}}function Cb(e,t,n){if(!e)return t;let r=e.getAttribute(`data-side`);if(r!==`left`&&r!==`right`)return t;let i=e.ownerDocument.defaultView,a=i?.getComputedStyle(e).direction===`rtl`?`left`:`right`;if(r===a)return t;let o=Sb(t,0),s=e.getBoundingClientRect();if(a===`right`){let r=n??e.ownerDocument.documentElement.clientWidth??i?.innerWidth??0;if(!r)return t;o.right=Math.max(o.right,r-s.left)}else o.left=Math.max(o.left,s.right);return o}function wb(e,t){let n=_.useContext(xb),r=_.useRef(null);return{ref:_.useCallback(t=>{r.current=t,typeof e==`function`?e(t):e&&(e.current=t)},[e]),padding:Cb(n?.current??null,t),wrap:e=>(0,j.jsx)(xb.Provider,{value:r,children:e})}}var Tb=eb,Eb=tb,Db=ub,Ob=`z-[10001] min-w-[8rem] max-h-[var(--radix-context-menu-content-available-height)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-md border bg-popover p-1 text-popover-foreground`,kb=`relative flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,Ab=`relative flex select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,jb=_.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,j.jsxs)(db,{ref:i,"data-slot":`context-menu-sub-trigger`,className:Z(`flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,t&&`pl-8`,e),...r,children:[n,(0,j.jsx)(Qf,{className:`ml-auto h-4 w-4`})]}));jb.displayName=db.displayName;var Mb=_.forwardRef(({className:e,container:t,onFocusOutside:n,collisionPadding:r,children:i,...a},o)=>{let s=ed(t),c=wb(o,r),l=bb(c.ref,n),u=yb(l.ref);return(0,j.jsx)(nb,{container:s,children:(0,j.jsx)(fb,{ref:u.ref,onFocusOutside:l.onFocusOutside,...c.padding===void 0?{}:{collisionPadding:c.padding},"data-slot":`context-menu-sub-content`,className:Z(Ob,u.surfaceClassName,`shadow-lg`,Ju,e),...a,children:c.wrap(u.wrap(i))})})});Mb.displayName=fb.displayName;var Nb=_.forwardRef(({className:e,container:t,children:n,...r},i)=>{let a=ed(t),o=yb(i);return(0,j.jsx)(nb,{container:a,children:(0,j.jsx)(rb,{ref:o.ref,"data-slot":`context-menu-content`,className:Z(Ob,o.surfaceClassName,`shadow-md`,Ju,e),...r,children:o.wrap(n)})})});Nb.displayName=rb.displayName;var Pb=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(ab,{ref:r,"data-slot":`context-menu-item`,className:Z(kb,`gap-2 [&>svg]:size-4 [&>svg]:shrink-0`,t&&`pl-8`,e),...n}));Pb.displayName=ab.displayName;var Fb=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(ob,{ref:r,"data-slot":`context-menu-checkbox-item`,className:Z(Ab,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(cb,{children:(0,j.jsx)(Xf,{className:`h-4 w-4`})})}),t]}));Fb.displayName=ob.displayName;var Ib=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(sb,{ref:r,"data-slot":`context-menu-radio-item`,className:Z(Ab,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(cb,{children:(0,j.jsx)(Zf,{className:`h-4 w-4 fill-current`})})}),t]}));Ib.displayName=sb.displayName;var Lb=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(ib,{ref:r,"data-slot":`context-menu-label`,className:Z(`px-2 py-1.5 text-sm font-semibold text-foreground`,t&&`pl-8`,e),...n}));Lb.displayName=ib.displayName;var Rb=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(lb,{ref:n,"data-slot":`context-menu-separator`,className:Z(`-mx-1 my-1 h-px bg-border`,e),...t}));Rb.displayName=lb.displayName;var zb=Object.defineProperty,Bb=(e,t)=>zb(e,`name`,{value:t,configurable:!0});function Vb(e,[t,n]){return Math.min(n,Math.max(t,e))}Bb(Vb,`clamp`);var Hb=Object.defineProperty,Ub=(e,t)=>Hb(e,`name`,{value:t,configurable:!0});function Wb(e){let t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Ub(Wb,`usePrevious`);var Gb=Object.defineProperty,Kb=(e,t)=>Gb(e,`name`,{value:t,configurable:!0}),qb=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Jb=[` `,`Enter`],Yb=`Select`,[Xb,Zb,Qb]=Nf(Yb),[$b,ex]=Vi(Yb,[Qb,Js]),tx=Js(),[nx,rx]=$b(Yb),[ix,ax]=$b(Yb);function ox(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=tx(t),[v,y]=_.useState(null),[b,x]=_.useState(null),[S,C]=_.useState(!1),w=Kf(l),[T,E]=kc({prop:r,defaultProp:i??!1,onChange:a,caller:Yb}),[D,O]=kc({prop:o,defaultProp:s,onChange:c,caller:Yb}),k=_.useRef(null),A=_.useRef(D);_.useEffect(()=>{let e=m?v?.ownerDocument.getElementById(m):v?.form;if(e instanceof HTMLFormElement){let t=Kb(()=>O(A.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,v,O]);let M=!v||!!m||!!v.closest(`form`),[N,P]=_.useState(new Set),F=Aa(),I=Array.from(N).map(e=>e.props.value).join(`;`),L=_.useCallback(e=>{P(t=>new Set(t).add(e))},[]),ee=_.useCallback(e=>{P(t=>{let n=new Set(t);return n.delete(e),n})},[]),te={required:p,trigger:v,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:F,value:D,onValueChange:O,open:T,onOpenChange:E,dir:w,triggerPointerDownPosRef:k,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:N,nativeSelectKey:I,isFormControl:M};return(0,j.jsx)(sc,{...g,children:(0,j.jsx)(nx,{scope:t,...te,children:(0,j.jsx)(Xb.Provider,{scope:t,children:(0,j.jsx)(ix,{scope:t,onNativeOptionAdd:L,onNativeOptionRemove:ee,children:Xx(h)?h(te):n})})})})}Kb(ox,`SelectProvider`);var sx=Kb(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,j.jsx)(ox,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,j.jsxs)(j.Fragment,{children:[n,e?(0,j.jsx)(Yx,{__scopeSelect:t}):null]})})},`Select`),cx=`SelectTrigger`,lx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=tx(n),o=rx(cx,n),s=o.disabled||r,c=H(t,o.onTriggerChange),l=Zb(n),u=_.useRef(`touch`),[d,f,p]=Qx(e=>{let t=l().filter(e=>!e.disabled),n=$x(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=Kb(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,j.jsx)(cc,{asChild:!0,...a,children:(0,j.jsx)(W.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":Zx(o.value)?``:void 0,...i,ref:c,onClick:V(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:V(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:V(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&qb.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),ux=`SelectValue`,dx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=rx(ux,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=H(t,c.onValueNodeChange);Ta(()=>{l(u)},[l,u]);let f=Zx(c.value);return(0,j.jsx)(W.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,j.jsx)(_.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),fx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,j.jsx)(W.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[px,mx]=$b(`SelectPortal`,{forceMount:void 0}),hx=Kb(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,j.jsx)(px,{scope:e.__scopeSelect,forceMount:n,children:(0,j.jsx)(dc,{asChild:!0,...r})})},`SelectPortal`),gx=`SelectContent`,_x=_.forwardRef(Kb(function(e,t){let n=mx(gx,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=rx(gx,e.__scopeSelect),[o,s]=_.useState();return Ta(()=>{s(new DocumentFragment)},[]),(0,j.jsx)(hc,{present:r||a.open,children:({present:e})=>e?(0,j.jsx)(Cx,{...i,ref:t}):(0,j.jsx)(vx,{...i,fragment:o})})},`SelectContent`)),vx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?ia.createPortal((0,j.jsx)(bx,{scope:n,children:(0,j.jsx)(Xb.Slot,{scope:n,children:(0,j.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),yx=10,[bx,xx]=$b(gx),Sx=Gi(`SelectContent.RemoveScroll`),Cx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,...v}=e,y=rx(gx,n),[b,x]=_.useState(null),[S,C]=_.useState(null),w=H(t,x),[T,E]=_.useState(null),[D,O]=_.useState(null),k=Zb(n),[A,M]=_.useState(!1),N=_.useRef(!1);_.useEffect(()=>{if(b)return Wm(b)},[b]),Ep();let P=_.useCallback(e=>{let[t,...n]=k().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[k,S]),F=_.useCallback(()=>P([T,b]),[P,T,b]);_.useEffect(()=>{A&&F()},[A,F]);let{onOpenChange:I,triggerPointerDownPosRef:L}=y;_.useEffect(()=>{if(b){let e={x:0,y:0},t=Kb(t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},`handlePointerMove`),n=Kb(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(b)||I(!1),document.removeEventListener(`pointermove`,t),L.current=null},`handlePointerUp`);return L.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,I,L]),_.useEffect(()=>{let e=Kb(()=>I(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[I]);let[ee,te]=Qx(e=>{let t=k().filter(e=>!e.disabled),n=$x(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ne=_.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&(E(e),r&&(N.current=!0))},[y.value]),re=_.useCallback(()=>b?.focus(),[b]),ie=_.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&O(e)},[y.value]),ae=r===`popper`?Tx:wx,oe=ae===Tx?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,j.jsx)(bx,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:ne,selectedItem:T,onItemLeave:re,itemTextRefCallback:ie,focusSelectedItem:F,selectedItemText:D,position:r,isPositioned:A,searchRef:ee,children:(0,j.jsx)(Fm,{as:Sx,allowPinchZoom:!0,children:(0,j.jsx)(lp,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:V(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,j.jsx)(ae,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...oe,onPlaced:()=>M(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,...v.style},onKeyDown:V(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&te(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=k().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),wx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=rx(gx,n),o=xx(gx,n),[s,c]=_.useState(null),[l,u]=_.useState(null),d=H(t,u),f=Zb(n),p=_.useRef(!1),m=_.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:v,focusSelectedItem:y}=o,b=_.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&v){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=v.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-yx,d=Vb(a,[yx,Math.max(yx,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-yx,d=Vb(a,[yx,Math.max(yx,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-yx*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),_=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+_+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-yx,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+_+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${yx}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,v,a.dir,r]);Ta(()=>b(),[b]);let[x,S]=_.useState();Ta(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);let C=_.useCallback(e=>{e&&m.current===!0&&(b(),y?.(),m.current=!1)},[b,y]);return(0,j.jsx)(Ex,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:(0,j.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,j.jsx)(W.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),Tx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=yx,...a}=e,o=tx(n);return(0,j.jsx)(lc,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[Ex,Dx]=$b(gx,{}),Ox=`SelectViewport`,kx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=xx(Ox,n),o=Dx(Ox,n),s=H(t,a.onViewportChange),c=_.useRef(0);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,j.jsx)(Xb.Slot,{scope:n,children:(0,j.jsx)(W.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:V(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-yx*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[Ax,jx]=$b(`SelectGroup`),Mx=`SelectLabel`,Nx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n,...r}=e,i=jx(Mx,n);return(0,j.jsx)(W.div,{id:i.id,...r,ref:t})},`SelectLabel`)),Px=`SelectItem`,[Fx,Ix]=$b(Px),Lx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=rx(Px,n),c=xx(Px,n),l=s.value===r,[u,d]=_.useState(a??``),[f,p]=_.useState(!1),m=H(t,ua(e=>c.itemRefCallback?.(e,r,i))),h=Aa(),g=_.useRef(`touch`),v=Kb(()=>{i||(s.onValueChange(r),s.onOpenChange(!1))},`handleSelect`);return(0,j.jsx)(Fx,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:_.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,j.jsx)(Xb.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,j.jsx)(W.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:V(o.onFocus,()=>p(!0)),onBlur:V(o.onBlur,()=>p(!1)),onClick:V(o.onClick,()=>{g.current!==`mouse`&&v()}),onPointerUp:V(o.onPointerUp,()=>{g.current===`mouse`&&v()}),onPointerDown:V(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:V(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:V(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:V(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(Jb.includes(e.key)&&v(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Rx=`SelectItemText`,zx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=rx(Rx,n),s=xx(Rx,n),c=Ix(Rx,n),l=ax(Rx,n),[u,d]=_.useState(null),f=ua(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=H(t,d,c.onItemTextChange,f),m=u?.textContent,h=_.useMemo(()=>(0,j.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=l;return Ta(()=>(g(h),()=>v(h)),[g,v,h]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(W.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!Zx(o.value)?ia.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Bx=`SelectItemIndicator`,Vx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n,...r}=e;return Ix(Bx,n).isSelected?(0,j.jsx)(W.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Hx=`SelectScrollUpButton`,Ux=_.forwardRef(Kb(function(e,t){let n=xx(Hx,e.__scopeSelect),r=Dx(Hx,e.__scopeSelect),[i,a]=_.useState(!1),o=H(t,r.onScrollButtonChange);return Ta(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};Kb(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,j.jsx)(Kx,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Wx=`SelectScrollDownButton`,Gx=_.forwardRef(Kb(function(e,t){let n=xx(Wx,e.__scopeSelect),r=Dx(Wx,e.__scopeSelect),[i,a]=_.useState(!1),o=H(t,r.onScrollButtonChange);return Ta(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};Kb(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,j.jsx)(Kx,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),Kx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=xx(`SelectScrollButton`,n),o=_.useRef(null),s=Zb(n),c=_.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return _.useEffect(()=>()=>c(),[c]),Ta(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,j.jsx)(W.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:V(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:V(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:V(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),qx=_.forwardRef(Kb(function(e,t){let{__scopeSelect:n,...r}=e;return(0,j.jsx)(W.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),Jx=`SelectBubbleInput`,Yx=_.forwardRef(Kb(function({__scopeSelect:e,...t},n){let r=rx(Jx,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=_.useRef(null),m=H(n,p),h=i??``,g=Wb(h),v=Array.from(d).some(e=>(e.props.value??``)===``);return _.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(g!==h&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,h),e.dispatchEvent(t)}},[g,h]),(0,j.jsxs)(W.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...Ic,...t.style},ref:m,defaultValue:h,children:[Zx(i)&&!v?(0,j.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function Xx(e){return typeof e==`function`}Kb(Xx,`isFunction`);function Zx(e){return e===``||e===void 0}Kb(Zx,`shouldShowPlaceholder`);function Qx(e){let t=ua(e),n=_.useRef(``),r=_.useRef(0),i=_.useCallback(e=>{let i=n.current+e;t(i),Kb((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=_.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return _.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}Kb(Qx,`useTypeaheadSearch`);function $x(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=eS(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Kb($x,`findNextItem`);function eS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Kb(eS,`wrapArray`);var tS=`border border-border bg-card`,nS=sx,rS=dx,iS=rp(`matrx-glyph-trim flex w-full items-center justify-between gap-2 whitespace-nowrap rounded-md ${tS} text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground transition-colors hover:bg-accent hover:border-accent-foreground/20 focus:outline-none focus:ring-1 focus:ring-primary/30 focus:border-primary/40 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:min-w-0 [&>span]:line-clamp-1`,{variants:{size:{sm:`h-7 px-2 py-1 text-xs`,default:`h-9 px-3 py-1`,lg:`h-10 px-3 py-2`}},defaultVariants:{size:`default`}});function aS({className:e,size:t=`default`}){return(0,j.jsx)($f,{"aria-hidden":`true`,"data-select-chevron":``,className:Z(t===`sm`?`h-3.5 w-3.5`:`h-4 w-4`,`shrink-0 opacity-50`,e)})}var oS=_.forwardRef(({className:e,children:t,hideArrow:n=!1,size:r,...i},a)=>(0,j.jsxs)(lx,{ref:a,className:Z(iS({size:r,className:e})),...i,children:[t,!n&&(0,j.jsx)(fx,{asChild:!0,children:(0,j.jsx)(aS,{size:r===`sm`?`sm`:`default`})})]}));oS.displayName=lx.displayName;var sS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Ux,{ref:n,className:Z(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,j.jsx)(ep,{})}));sS.displayName=Ux.displayName;var cS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Gx,{ref:n,className:Z(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,j.jsx)($f,{})}));cS.displayName=Gx.displayName;var lS=_.forwardRef(({className:e,children:t,position:n=`popper`,container:r,animated:i=!0,...a},o)=>{let s=ed(r);return(0,j.jsx)(hx,{container:s,children:(0,j.jsxs)(_x,{ref:o,className:Z(`relative z-[10001] max-h-96 min-w-[8rem] max-w-[calc(100vw-2rem)] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md`,i&&`matrx-motion-popper`,n===`popper`&&`matrx-popper-offset`,e),position:n,...a,children:[(0,j.jsx)(sS,{}),(0,j.jsx)(kx,{className:Z(`max-w-full overflow-y-auto p-0.5`,n===`popper`&&`w-full min-w-[var(--radix-select-trigger-width)] max-h-[var(--radix-select-content-available-height)]`),children:t}),(0,j.jsx)(cS,{})]})})});lS.displayName=_x.displayName;var uS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Nx,{ref:n,className:Z(`px-2 py-1.5 text-sm font-semibold`,e),...t}));uS.displayName=Nx.displayName;var dS=_.forwardRef(({className:e,children:t,description:n,...r},i)=>(0,j.jsxs)(Lx,{ref:i,className:Z(`relative flex w-full min-w-0 select-none rounded-sm py-1 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,n?`flex-col items-start gap-0.5 py-1.5`:`items-center`,e),...r,children:[(0,j.jsx)(`span`,{className:`absolute right-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(Vx,{children:(0,j.jsx)(Xf,{className:`h-4 w-4`})})}),(0,j.jsx)(`span`,{className:`min-w-0 whitespace-normal break-words [overflow-wrap:anywhere]`,children:(0,j.jsx)(zx,{children:t})}),n?(0,j.jsx)(`span`,{className:`block min-w-0 break-words text-xs leading-snug text-muted-foreground [overflow-wrap:anywhere]`,children:n}):null]}));dS.displayName=Lx.displayName;var fS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(qx,{ref:n,className:Z(`-mx-1 my-1 h-px bg-muted`,e),...t}));fS.displayName=qx.displayName;var pS=Object.defineProperty,mS=(e,t)=>pS(e,`name`,{value:t,configurable:!0}),hS=`Popover`,[gS,_S]=Vi(hS,[Js]),vS=Js(),[yS,bS]=gS(hS),xS=mS(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=vS(t),c=_.useRef(null),[l,u]=_.useState(!1),[d,f]=kc({prop:r,defaultProp:i??!1,onChange:a,caller:hS});return(0,j.jsx)(sc,{...s,children:(0,j.jsx)(yS,{scope:t,contentId:Aa(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:_.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:_.useCallback(()=>u(!0),[]),onCustomAnchorRemove:_.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),SS=`PopoverTrigger`,CS=_.forwardRef(mS(function(e,t){let{__scopePopover:n,...r}=e,i=bS(SS,n),a=vS(n),o=H(t,i.triggerRef),s=(0,j.jsx)(W.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":PS(i.open),...r,ref:o,onClick:V(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,j.jsx)(cc,{asChild:!0,...a,children:s})},`PopoverTrigger`)),wS=`PopoverPortal`,[TS,ES]=gS(wS,{forceMount:void 0}),DS=mS(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=bS(wS,t);return(0,j.jsx)(TS,{scope:t,forceMount:n,children:(0,j.jsx)(hc,{present:n||a.open,children:(0,j.jsx)(dc,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),OS=`PopoverContent`,kS=_.forwardRef(mS(function(e,t){let n=ES(OS,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=bS(OS,e.__scopePopover);return(0,j.jsx)(hc,{present:r||a.open,children:a.modal?(0,j.jsx)(jS,{...i,ref:t}):(0,j.jsx)(MS,{...i,ref:t})})},`PopoverContent`)),AS=Gi(`PopoverContent.RemoveScroll`),jS=_.forwardRef(mS(function(e,t){let n=bS(OS,e.__scopePopover),r=_.useRef(null),i=H(t,r),a=_.useRef(!1);return _.useEffect(()=>{let e=r.current;if(e)return Wm(e)},[]),(0,j.jsx)(Fm,{as:AS,allowPinchZoom:!0,children:(0,j.jsx)(NS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),MS=_.forwardRef(mS(function(e,t){let n=bS(OS,e.__scopePopover),r=_.useRef(!1),i=_.useRef(!1);return(0,j.jsx)(NS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),NS=_.forwardRef(mS(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=bS(OS,n),p=vS(n);return Ep(),(0,j.jsx)(lp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,j.jsx)(lc,{"data-state":PS(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})},`PopoverContentImpl`));function PS(e){return e?`open`:`closed`}mS(PS,`getState`);var FS=xS,IS=CS,LS=DS,RS=kS,zS=FS,BS=IS,VS=_.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,container:r,animated:i=!0,sizing:a=`fixed`,collisionPadding:o=16,...s},c)=>{let l=ed(r);return(0,j.jsx)(LS,{container:l,children:(0,j.jsx)(RS,{ref:c,align:t,sideOffset:n,collisionPadding:o,className:Z(`z-[10000] max-h-[var(--radix-popover-content-available-height)] overflow-y-auto overscroll-contain rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none`,a===`content`?`w-auto min-w-[min(max(var(--radix-popover-trigger-width),20rem),calc(100vw-2rem))] max-w-[min(28rem,calc(100vw-2rem))]`:`w-72 max-w-[calc(100vw-2rem)]`,i&&`matrx-motion-popper`,e),...s})})});VS.displayName=RS.displayName;var HS=`matrx:layer-front`;function US(e){typeof document<`u`&&document.dispatchEvent(new CustomEvent(HS,{detail:{element:e}}))}var WS=_.createContext(!1),GS=({children:e,...t})=>{let n=C_(),r=t.modal??n;return(0,j.jsx)(WS.Provider,{value:t.modal===void 0,children:(0,j.jsx)(qg,{modal:r,children:(0,j.jsx)(Qm,{...t,modal:r,children:e})})})};GS.displayName=`Dialog`;var KS=({container:e,...t})=>{let n=ed(e);return(0,j.jsx)(ih,{container:n??null,...t})};KS.displayName=`DialogPortal`;var qS=Symbol.for(`ai-matrx.design-system.dialog-container-context`),JS=globalThis,YS=JS[qS]??=_.createContext(null),XS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(oh,{ref:n,"data-slot":`dialog-overlay`,className:Z(`fixed inset-0 z-[10000] bg-[var(--matrx-overlay-scrim-soft)]`,qu,e),...t}));XS.displayName=oh.displayName;var ZS=_.forwardRef(({onInteractOutside:e,...t},n)=>{let r=Jg();return Rg(r),(0,j.jsx)(uh,{...t,ref:n,"aria-modal":r||void 0,onInteractOutside:Vg(e)})});ZS.displayName=`DialogContentPrimitive`;var QS=`matrx-dialog-card fixed inset-0 z-[10000] m-auto grid h-fit min-w-0 w-full max-w-lg gap-4 max-h-[85dvh] overflow-y-auto overscroll-contain [--dialog-pad:1.5rem] overflow-x-clip border bg-background p-6 shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full sm:rounded-lg`,$S=`matrx-mobile-sheet matrx-dialog-card fixed inset-x-0 bottom-0 left-0 right-0 top-auto z-[10000] flex min-w-0 flex-col w-full max-w-full max-h-[90dvh] gap-4 [--dialog-pad:1rem] overflow-x-clip border-t bg-background p-4 pb-safe shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full rounded-t-2xl rounded-b-none overflow-y-auto overscroll-contain`,eC=`inset-x-0 bottom-0 left-0 right-0 top-auto translate-none w-full max-w-full max-h-[90dvh] rounded-b-none rounded-t-2xl overflow-y-auto`,tC=_.createContext(null),nC=80;function rC(e){return e instanceof Element&&!!e.closest(`button, a, input, textarea, select, [role='button'], [contenteditable='true']`)}var iC=_.forwardRef(({className:e,children:t,mobileSheet:n=!0,animated:r=!0,showCloseButton:i=!0,container:a,dismissOnOutsideClick:o=!1,onInteractOutside:s,onEscapeKeyDown:c,onPointerDownCapture:l,onFocusCapture:u,style:d,...f},p)=>{let m=C_(),h=Jg(),g=ed(a),v=n&&m,y=!h&&!v,b=_.useContext(WS),[x,S]=_.useState(null),C=y&&b,[w,T]=_.useState(!1);_.useEffect(()=>{if(!C||!x)return;let e=e=>{let t=e.detail?.element??null;(!t||t!==x&&!x.contains(t))&&T(!0)};return document.addEventListener(HS,e),US(x),()=>document.removeEventListener(HS,e)},[C,x]);let E=()=>{C&&x&&(T(!1),US(x))},[D,O]=_.useState({x:0,y:0}),k=_.useRef(null),A=_.useMemo(()=>{if(!y)return null;let e=(e,t)=>Math.max(-t,Math.min(t,e));return{onPointerDown:e=>{e.button!==0||rC(e.target)||(k.current={x:e.clientX,y:e.clientY,baseX:D.x,baseY:D.y},e.currentTarget.setPointerCapture?.(e.pointerId))},onPointerMove:t=>{let n=k.current;n&&O({x:e(n.baseX+t.clientX-n.x,window.innerWidth/2-nC/2),y:e(n.baseY+t.clientY-n.y,window.innerHeight/2-nC/2)})},onPointerUp:e=>{k.current&&(k.current=null,e.currentTarget.releasePointerCapture?.(e.pointerId))},onPointerCancel:()=>{k.current=null},onDoubleClick:()=>O({x:0,y:0})}},[y,D.x,D.y]),M=_.useCallback(e=>{S(e),typeof p==`function`?p(e):p&&(p.current=e)},[p]),N=Dg(t,sC)||Dg(t,hh),P=Dg(t,cC)||Dg(t,_h);return(0,j.jsxs)(KS,{container:a,children:[h?(0,j.jsx)(XS,{}):null,(0,j.jsxs)(ZS,{ref:M,"data-slot":`dialog-content`,className:Z(v?$S:QS,r&&(v?`matrx-motion-bottom-sheet`:`matrx-motion-dialog`),e,v&&eC,!h&&!b&&`z-[900]`,C&&w&&`z-[999]`,y&&`shadow-2xl ring-1 ring-border/60`),style:y&&(D.x!==0||D.y!==0)?{...d,translate:`${D.x}px ${D.y}px`}:d,onPointerDownCapture:e=>{l?.(e),w&&E()},onFocusCapture:e=>{u?.(e),w&&E()},onInteractOutside:e=>{s?.(e),y&&!o&&e.preventDefault()},onEscapeKeyDown:e=>{c?.(e);let t=e.target instanceof Node&&e.target!==document.body?e.target:document.activeElement;y&&x&&!(t&&x.contains(t))&&e.preventDefault()},...P?{}:{"aria-describedby":void 0},...f,children:[N?null:(0,j.jsx)(Lc,{children:(0,j.jsx)(hh,{children:`Dialog`})}),(0,j.jsx)(YS.Provider,{value:x,children:(0,j.jsx)(tC.Provider,{value:A,children:(0,j.jsx)($u,{container:x??g??null,children:t})})}),i?(0,j.jsxs)(yh,{"data-slot":`dialog-close`,"aria-label":`Close`,className:`absolute right-2 top-4 flex h-11 w-11 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground sm:right-4 lg:h-10 lg:w-10`,children:[(0,j.jsx)(Jf,{className:`h-4 w-4`}),(0,j.jsx)(`span`,{className:`sr-only`,children:`Close`})]}):null]})]})});iC.displayName=uh.displayName;var aC=({className:e,...t})=>{let n=_.useContext(tC);return(0,j.jsx)(`div`,{"data-slot":`dialog-header`,...n?{...n,"data-window-handle":``,title:`Drag to move · double-click to recenter`}:{},className:Z(`flex flex-col space-y-1.5 pr-12 text-center sm:text-left`,n&&`cursor-grab select-none active:cursor-grabbing`,e),...t})};aC.displayName=`DialogHeader`;var oC=({className:e,...t})=>(0,j.jsx)(`div`,{"data-slot":`dialog-footer`,className:Z(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,`sticky bottom-0 z-10 bg-background pt-3`,`mx-[calc(var(--dialog-pad,0px)*-1)] px-[var(--dialog-pad,0px)] pb-[var(--dialog-pad,0px)]`,e),...t});oC.displayName=`DialogFooter`;var sC=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(hh,{ref:n,"data-slot":`dialog-title`,className:Z(`text-lg font-semibold leading-none tracking-tight`,e),...t}));sC.displayName=hh.displayName;var cC=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(_h,{ref:n,"data-slot":`dialog-description`,className:Z(`text-sm text-muted-foreground`,e),...t}));cC.displayName=_h.displayName;var lC=Object.defineProperty,uC=(e,t)=>lC(e,`name`,{value:t,configurable:!0}),dC=`DropdownMenu`,[fC,pC]=Vi(dC,[mv]),mC=mv(),[hC,gC]=fC(dC),_C=uC(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=mC(t),l=_.useRef(null),[u,d]=kc({prop:i,defaultProp:a??!1,onChange:o,caller:dC});return(0,j.jsx)(hC,{scope:t,triggerId:Aa(),triggerRef:l,contentId:Aa(),open:u,onOpenChange:d,onOpenToggle:_.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,j.jsx)(hy,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),vC=`DropdownMenuTrigger`,yC=_.forwardRef(uC(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=gC(vC,n),o=mC(n),s=H(t,a.triggerRef);return(0,j.jsx)(gy,{asChild:!0,...o,children:(0,j.jsx)(W.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:V(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:V(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),bC=uC(e=>{let{__scopeDropdownMenu:t,...n}=e,r=mC(t);return(0,j.jsx)(_y,{...r,...n})},`DropdownMenuPortal`),xC=`DropdownMenuContent`,SC=_.forwardRef(uC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=gC(xC,n),a=mC(n),o=_.useRef(!1);return(0,j.jsx)(vy,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:V(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),CC=_.forwardRef(uC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=mC(n);return(0,j.jsx)(yy,{...i,...r,ref:t})},`DropdownMenuLabel`)),wC=_.forwardRef(uC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=mC(n);return(0,j.jsx)(by,{...i,...r,ref:t})},`DropdownMenuItem`)),TC=_.forwardRef(uC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=mC(n);return(0,j.jsx)(xy,{...i,...r,ref:t})},`DropdownMenuCheckboxItem`)),EC=_.forwardRef(uC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=mC(n);return(0,j.jsx)(Sy,{...i,...r,ref:t})},`DropdownMenuRadioGroup`)),DC=_.forwardRef(uC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=mC(n);return(0,j.jsx)(Cy,{...i,...r,ref:t})},`DropdownMenuRadioItem`)),OC=_.forwardRef(uC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=mC(n);return(0,j.jsx)(wy,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),kC=_.forwardRef(uC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=mC(n);return(0,j.jsx)(Ty,{...i,...r,ref:t})},`DropdownMenuSeparator`)),AC=uC(e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=mC(t),[s,c]=kc({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return(0,j.jsx)(Ey,{...o,open:s,onOpenChange:c,children:n})},`DropdownMenuSub`),jC=_.forwardRef(uC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=mC(n);return(0,j.jsx)(Dy,{...i,...r,ref:t})},`DropdownMenuSubTrigger`)),MC=_.forwardRef(uC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=mC(n);return(0,j.jsx)(Oy,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuSubContent`)),NC=_C,PC=yC,FC=bC,IC=SC,LC=CC,RC=wC,zC=TC,BC=EC,VC=DC,HC=OC,UC=kC,WC=AC,GC=jC,KC=MC,qC=NC,JC=PC,YC=WC,XC=BC,ZC=`z-[10001] min-w-[8rem] max-h-[var(--radix-dropdown-menu-content-available-height)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-md border bg-popover p-1 text-popover-foreground`,QC=`relative flex select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,$C=`relative flex select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,ew=_.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,j.jsxs)(GC,{ref:i,"data-slot":`dropdown-menu-sub-trigger`,className:Z(`flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent`,t&&`pl-8`,e),...r,children:[n,(0,j.jsx)(Qf,{className:`ml-auto h-4 w-4`})]}));ew.displayName=GC.displayName;var tw=_.forwardRef(({className:e,container:t,sideOffset:n=2,alignOffset:r=-4,collisionPadding:i=8,onFocusOutside:a,children:o,...s},c)=>{let l=ed(t),u=wb(c,i),d=bb(u.ref,a),f=yb(d.ref);return(0,j.jsx)(FC,{container:l,children:(0,j.jsx)(KC,{ref:f.ref,onFocusOutside:d.onFocusOutside,"data-slot":`dropdown-menu-sub-content`,sideOffset:n,alignOffset:r,...u.padding===void 0?{}:{collisionPadding:u.padding},className:Z(ZC,f.surfaceClassName,`shadow-lg`,Ju,e),...s,children:u.wrap(f.wrap(o))})})});tw.displayName=KC.displayName;var nw=_.forwardRef(({className:e,sideOffset:t=4,container:n,children:r,...i},a)=>{let o=ed(n),s=yb(a);return(0,j.jsx)(FC,{container:o,children:(0,j.jsx)(IC,{ref:s.ref,"data-slot":`dropdown-menu-content`,sideOffset:t,className:Z(ZC,s.surfaceClassName,`shadow-md`,Ju,e),...i,children:s.wrap(r)})})});nw.displayName=IC.displayName;var rw=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(RC,{ref:r,"data-slot":`dropdown-menu-item`,className:Z(QC,t&&`pl-8`,e),...n}));rw.displayName=RC.displayName;var iw=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(zC,{ref:r,"data-slot":`dropdown-menu-checkbox-item`,className:Z($C,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(HC,{children:(0,j.jsx)(Xf,{className:`h-4 w-4`})})}),t]}));iw.displayName=zC.displayName;var aw=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(VC,{ref:r,"data-slot":`dropdown-menu-radio-item`,className:Z($C,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(HC,{children:(0,j.jsx)(Zf,{className:`h-4 w-4 fill-current`})})}),t]}));aw.displayName=VC.displayName;var ow=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(LC,{ref:r,"data-slot":`dropdown-menu-label`,className:Z(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));ow.displayName=LC.displayName;var sw=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(UC,{ref:n,"data-slot":`dropdown-menu-separator`,className:Z(`-mx-1 my-1 h-px bg-muted`,e),...t}));sw.displayName=UC.displayName;var cw=(e=`default`)=>{let t=`flex h-10 w-full ${tS} text-foreground shadow-input rounded-md px-3 py-2 text-sm file:border-0 file:bg-transparent
58
+ ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function Th(){let e=navigator.userAgent;return typeof window<`u`&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Eh(){return jh(/^Mac/)}function Dh(){return jh(/^iPhone/)}function Oh(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function kh(){return jh(/^iPad/)||Eh()&&navigator.maxTouchPoints>1}function Ah(){return Dh()||kh()}function jh(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Mh=24,Nh=typeof window<`u`?_.useLayoutEffect:_.useEffect;function Ph(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var Fh=typeof document<`u`&&window.visualViewport;function Ih(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Lh(e){for(Ih(e)&&(e=e.parentElement);e&&!Ih(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var Rh=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),zh=0,Bh;function Vh(e={}){let{isDisabled:t}=e;Nh(()=>{if(!t)return zh++,zh===1&&Ah()&&(Bh=Hh()),()=>{zh--,zh===0&&Bh?.()}},[t])}function Hh(){let e,t=0,n=n=>{e=Lh(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)},r=n=>{if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}let r=n.changedTouches[0].pageY,i=e.scrollTop,a=e.scrollHeight-e.clientHeight;a!==0&&((i<=0&&r>t||i>=a&&r<t)&&n.preventDefault(),t=r)},i=e=>{let t=e.target;Kh(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform=`translateY(-2000px)`,t.focus(),requestAnimationFrame(()=>{t.style.transform=``}))},a=e=>{let t=e.target;Kh(t)&&(t.style.transform=`translateY(-2000px)`,requestAnimationFrame(()=>{t.style.transform=``,Fh&&(Fh.height<window.innerHeight?requestAnimationFrame(()=>{Gh(t)}):Fh.addEventListener(`resize`,()=>Gh(t),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=Ph(Uh(document.documentElement,`paddingRight`,`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=Ph(Wh(document,`touchstart`,n,{passive:!1,capture:!0}),Wh(document,`touchmove`,r,{passive:!1,capture:!0}),Wh(document,`touchend`,i,{passive:!1,capture:!0}),Wh(document,`focus`,a,!0),Wh(window,`scroll`,o));return()=>{l(),u(),window.scrollTo(s,c)}}function Uh(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Wh(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Gh(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Lh(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+Mh&&(t.scrollTop+=r-n)}e=t.parentElement}}function Kh(e){return e instanceof HTMLInputElement&&!Rh.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function qh(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function Jh(...e){return t=>e.forEach(e=>qh(e,t))}function Yh(...e){return _.useCallback(Jh(...e),e)}var Xh=new WeakMap;function Zh(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([t,n])=>{if(t.startsWith(`--`)){e.style.setProperty(t,n);return}r[t]=e.style[t],e.style[t]=n}),!n&&Xh.set(e,r)}function Qh(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Xh.get(e);n&&(e.style[t]=n[t])}var $h=e=>{switch(e){case`top`:case`bottom`:return!0;case`left`:case`right`:return!1;default:return e}};function eg(e,t){if(!e)return null;let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(`, `)[$h(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(`, `)[$h(t)?5:4]):null)}function tg(e){return 8*(Math.log(e+1)-2)}function ng(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}var rg={DURATION:.5,EASE:[.32,.72,0,1]},ig=.4,ag=.25,og=100,sg=8,cg=16,lg=26,ug=`vaul-dragging`;function dg(e){let t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...e)=>t.current==null?void 0:t.current.call(t,...e),[])}function fg({defaultProp:e,onChange:t}){let n=_.useState(e),[r]=n,i=_.useRef(r),a=dg(t);return _.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function pg({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=fg({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=dg(n);return[o,_.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function mg({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:i,fadeFromIndex:a,onSnapPointChange:o,direction:s=`bottom`,container:c,snapToSequentialPoint:l}){let[u,d]=pg({prop:e,defaultProp:n?.[0],onChange:t}),[f,p]=_.useState(typeof window<`u`?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);_.useEffect(()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let m=_.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),h=_.useMemo(()=>n?.findIndex(e=>e===u)??null,[n,u]),g=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===u||!n,v=_.useMemo(()=>{let e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<`u`?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return n?.map(t=>{let n=typeof t==`string`,r=0;if(n&&(r=parseInt(t,10)),$h(s)){let i=n?r:f?t*e.height:0;return f?s===`bottom`?e.height-i:-e.height+i:i}let i=n?r:f?t*e.width:0;return f?s===`right`?e.width-i:-e.width+i:i})??[]},[n,f,c]),y=_.useMemo(()=>h===null?null:v?.[h],[v,h]),b=_.useCallback(e=>{let t=v?.findIndex(t=>t===e)??null;o(t),Zh(r.current,{transition:`transform ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,transform:$h(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),v&&t!==v.length-1&&a!==void 0&&t!==a&&t<a?Zh(i.current,{transition:`opacity ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,opacity:`0`}):Zh(i.current,{transition:`opacity ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,opacity:`1`}),d(n?.[Math.max(t,0)])},[r.current,n,v,a,i,d]);_.useEffect(()=>{if(u||e){let t=n?.findIndex(t=>t===e||t===u)??-1;v&&t!==-1&&typeof v[t]==`number`&&b(v[t])}},[u,e,n,v,b]);function x({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:o}){if(a===void 0)return;let c=s===`bottom`||s===`right`?(y??0)-e:(y??0)+e,u=h===a-1,d=h===0,f=e>0;if(u&&Zh(i.current,{transition:`opacity ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`}),!l&&r>2&&!f){o?t():b(v[0]);return}if(!l&&r>2&&f&&v&&n){b(v[n.length-1]);return}let p=v?.reduce((e,t)=>typeof e!=`number`||typeof t!=`number`?e:Math.abs(t-c)<Math.abs(e-c)?t:e),g=$h(s)?window.innerHeight:window.innerWidth;if(r>ig&&Math.abs(e)<g*.4){let e=f?1:-1;if(e>0&&m&&n){b(v[n.length-1]);return}if(d&&e<0&&o&&t(),h===null)return;b(v[h+e]);return}b(p)}function S({draggedDistance:e}){if(y===null)return;let t=s===`bottom`||s===`right`?y-e:y+e;(s===`bottom`||s===`right`)&&t<v[v.length-1]||(s===`top`||s===`left`)&&t>v[v.length-1]||Zh(r.current,{transform:$h(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})}function C(e,t){if(!n||typeof h!=`number`||!v||a===void 0)return null;let r=h===a-1;if(h>=a&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;let i=r?h+1:h-1,o=r?v[i]-v[i-1]:v[i+1]-v[i],s=e/Math.abs(o);return r?1-s:s}return{isLastSnapPoint:m,activeSnapPoint:u,shouldFade:g,getPercentageDragged:C,setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:x,onDrag:S,snapPointsOffset:v}}function hg(){let{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=wh(),a=_.useRef(null),o=(0,_.useMemo)(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-lg)/window.innerWidth}_.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);let t=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`);if(!t)return;r&&!i&&ng(document.body,{background:`black`}),ng(t,{transformOrigin:$h(e)?`top`:`left`,transitionProperty:`transform, border-radius`,transitionDuration:`${rg.DURATION}s`,transitionTimingFunction:`cubic-bezier(${rg.EASE.join(`,`)})`});let n=ng(t,{borderRadius:`${sg}px`,overflow:`hidden`,...$h(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),a.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty(`background`)},rg.DURATION*1e3)}}},[t,n,o])}var gg=null;function _g({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:i,noBodyStyles:a}){let[o,s]=_.useState(()=>typeof window<`u`?window.location.href:``),c=_.useRef(0),l=_.useCallback(()=>{if(Oh()&&gg===null&&e&&!a){gg={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:`unset`};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty(`position`,`fixed`,`important`),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-e}px`,right:`0px`,height:`auto`}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=`${-(c.current+e)}px`)}),300)}},[e]),u=_.useCallback(()=>{if(Oh()&&gg!==null&&!a){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,gg),window.requestAnimationFrame(()=>{if(i&&o!==window.location.href){s(window.location.href);return}window.scrollTo(t,e)}),gg=null}},[o]);return _.useEffect(()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener(`scroll`,e),()=>{window.removeEventListener(`scroll`,e)}},[]),_.useEffect(()=>{if(t)return()=>{typeof document<`u`&&(document.querySelector(`[data-vaul-drawer]`)||u())}},[t,u]),_.useEffect(()=>{!n&&r&&(e?(!window.matchMedia(`(display-mode: standalone)`).matches&&l(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,o,t,n,l,u]),{restorePositionSetting:u}}function vg({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:i,snapPoints:a,shouldScaleBackground:o=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=ag,scrollLockTimeout:l=og,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:g=!0,onClose:v,nested:y,noBodyStyles:b=!1,direction:x=`bottom`,defaultOpen:S=!1,disablePreventScroll:C=!0,snapToSequentialPoint:w=!1,preventScrollRestoration:T=!1,repositionInputs:E=!0,onAnimationEnd:D,container:O,autoFocus:k=!1}){let[A=!1,j]=pg({defaultProp:S,prop:e,onChange:e=>{t?.(e),!e&&!y&&be(),setTimeout(()=>{D?.(e)},rg.DURATION*1e3),e&&!g&&typeof window<`u`&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`}),e||(document.body.style.pointerEvents=`auto`)}}),[M,N]=_.useState(!1),[P,F]=_.useState(!1),[I,L]=_.useState(!1),ee=_.useRef(null),te=_.useRef(null),ne=_.useRef(null),re=_.useRef(null),ie=_.useRef(null),ae=_.useRef(!1),oe=_.useRef(null),se=_.useRef(0),ce=_.useRef(!1),le=_.useRef(!S),ue=_.useRef(0),R=_.useRef(null),de=_.useRef(R.current?.getBoundingClientRect().height||0),z=_.useRef(R.current?.getBoundingClientRect().width||0),B=_.useRef(0),{activeSnapPoint:fe,activeSnapPointIndex:pe,setActiveSnapPoint:me,onRelease:he,snapPointsOffset:ge,onDrag:_e,shouldFade:ve,getPercentageDragged:ye}=mg({snapPoints:a,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:R,fadeFromIndex:f,overlayRef:ee,onSnapPointChange:_.useCallback(e=>{a&&e===ge.length-1&&(te.current=new Date)},[]),direction:x,container:O,snapToSequentialPoint:w});Vh({isDisabled:!A||P||!g||I||!M||!E||!C});let{restorePositionSetting:be}=_g({isOpen:A,modal:g,nested:y??!1,hasBeenOpened:M,preventScrollRestoration:T,noBodyStyles:b});function xe(){return(window.innerWidth-lg)/window.innerWidth}function Se(e){(u||a)&&(!R.current||R.current.contains(e.target))&&(de.current=R.current?.getBoundingClientRect().height||0,z.current=R.current?.getBoundingClientRect().width||0,F(!0),ne.current=new Date,Ah()&&window.addEventListener(`touchend`,()=>ae.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),se.current=$h(x)?e.pageY:e.pageX)}function Ce(e,t){let n=e,r=window.getSelection()?.toString(),i=R.current?eg(R.current,x):null,a=new Date;if(n.tagName===`SELECT`||n.hasAttribute(`data-vaul-no-drag`)||n.closest(`[data-vaul-no-drag]`))return!1;if(x===`right`||x===`left`)return!0;if(te.current&&a.getTime()-te.current.getTime()<500)return!1;if(i!==null&&(x===`bottom`?i>0:i<0))return!0;if(r&&r.length>0)return!1;if(ie.current&&a.getTime()-ie.current.getTime()<l&&i===0||t)return ie.current=a,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(n.scrollTop!==0)return ie.current=new Date,!1;if(n.getAttribute(`role`)===`dialog`)return!0}n=n.parentNode}return!0}function we(e){if(R.current&&P){let t=x===`bottom`||x===`right`?1:-1,n=(se.current-($h(x)?e.pageY:e.pageX))*t,i=n>0,s=a&&!u&&!i;if(s&&pe===0)return;let c=Math.abs(n),l=document.querySelector(`[data-vaul-drawer-wrapper]`),d=c/(x===`bottom`||x===`top`?de.current:z.current),p=ye(c,i);if(p!==null&&(d=p),s&&d>=1||!ae.current&&!Ce(e.target,i))return;if(R.current.classList.add(ug),ae.current=!0,Zh(R.current,{transition:`none`}),Zh(ee.current,{transition:`none`}),a&&_e({draggedDistance:n}),i&&!a){let e=tg(n),r=Math.min(e*-1,0)*t;Zh(R.current,{transform:$h(x)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`});return}let m=1-d;if((ve||f&&pe===f-1)&&(r?.(e,d),Zh(ee.current,{opacity:`${m}`,transition:`none`},!0)),l&&ee.current&&o){let e=Math.min(xe()+d*(1-xe()),1),t=8-d*8,n=Math.max(0,14-d*14);Zh(l,{borderRadius:`${t}px`,transform:$h(x)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:`none`},!0)}if(!a){let e=c*t;Zh(R.current,{transform:$h(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}}_.useEffect(()=>{window.requestAnimationFrame(()=>{le.current=!0})},[]),_.useEffect(()=>{var e;function t(){if(!R.current||!E)return;let e=document.activeElement;if(Kh(e)||ce.current){let e=window.visualViewport?.height||0,t=window.innerHeight,n=t-e,r=R.current.getBoundingClientRect().height||0,i=r>t*.8;B.current||=r;let o=R.current.getBoundingClientRect().top;if(Math.abs(ue.current-n)>60&&(ce.current=!ce.current),a&&a.length>0&&ge&&pe){let e=ge[pe]||0;n+=e}if(ue.current=n,r>e||ce.current){let t=R.current.getBoundingClientRect().height,r=t;t>e&&(r=e-(i?o:lg)),h?R.current.style.height=`${t-Math.max(n,0)}px`:R.current.style.height=`${Math.max(r,e-o)}px`}else Th()||(R.current.style.height=`${B.current}px`);a&&a.length>0&&!ce.current?R.current.style.bottom=`0px`:R.current.style.bottom=`${Math.max(n,0)}px`}}return(e=window.visualViewport)==null||e.addEventListener(`resize`,t),()=>window.visualViewport?.removeEventListener(`resize`,t)},[pe,a,ge]);function Te(e){De(),v?.(),e||j(!1),setTimeout(()=>{a&&me(a[0])},rg.DURATION*1e3)}function Ee(){if(!R.current)return;let e=document.querySelector(`[data-vaul-drawer-wrapper]`),t=eg(R.current,x);Zh(R.current,{transform:`translate3d(0, 0, 0)`,transition:`transform ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`}),Zh(ee.current,{transition:`opacity ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,opacity:`1`}),o&&t&&t>0&&A&&Zh(e,{borderRadius:`${sg}px`,overflow:`hidden`,...$h(x)?{transform:`scale(${xe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:`top`}:{transform:`scale(${xe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:`left`},transitionProperty:`transform, border-radius`,transitionDuration:`${rg.DURATION}s`,transitionTimingFunction:`cubic-bezier(${rg.EASE.join(`,`)})`},!0)}function De(){P&&R.current&&(R.current.classList.remove(ug),ae.current=!1,F(!1),re.current=new Date)}function Oe(e){if(!P||!R.current)return;R.current.classList.remove(ug),ae.current=!1,F(!1),re.current=new Date;let t=eg(R.current,x);if(!e||!Ce(e.target,!1)||!t||Number.isNaN(t)||ne.current===null)return;let n=re.current.getTime()-ne.current.getTime(),r=se.current-($h(x)?e.pageY:e.pageX),o=Math.abs(r)/n;if(o>.05&&(L(!0),setTimeout(()=>{L(!1)},200)),a){he({draggedDistance:r*(x===`bottom`||x===`right`?1:-1),closeDrawer:Te,velocity:o,dismissible:u}),i?.(e,!0);return}if(x===`bottom`||x===`right`?r>0:r<0){Ee(),i?.(e,!0);return}if(o>ig){Te(),i?.(e,!1);return}let s=Math.min(R.current.getBoundingClientRect().height??0,window.innerHeight),l=Math.min(R.current.getBoundingClientRect().width??0,window.innerWidth);if(Math.abs(t)>=(x===`left`||x===`right`?l:s)*c){Te(),i?.(e,!1);return}i?.(e,!0),Ee()}_.useEffect(()=>(A&&(Zh(document.documentElement,{scrollBehavior:`auto`}),te.current=new Date),()=>{Qh(document.documentElement,`scrollBehavior`)}),[A]);function ke(e){let t=e?(window.innerWidth-cg)/window.innerWidth:1,n=e?-16:0;oe.current&&window.clearTimeout(oe.current),Zh(R.current,{transition:`transform ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,transform:$h(x)?`scale(${t}) translate3d(0, ${n}px, 0)`:`scale(${t}) translate3d(${n}px, 0, 0)`}),!e&&R.current&&(oe.current=setTimeout(()=>{let e=eg(R.current,x);Zh(R.current,{transition:`none`,transform:$h(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))}function Ae(e,t){if(t<0)return;let n=(window.innerWidth-cg)/window.innerWidth,r=n+t*(1-n),i=-16+t*cg;Zh(R.current,{transform:$h(x)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`,transition:`none`})}function je(e,t){let n=$h(x)?window.innerHeight:window.innerWidth,r=t?(n-cg)/n:1,i=t?-16:0;t&&Zh(R.current,{transition:`transform ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,transform:$h(x)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`})}return _.useEffect(()=>{g||window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`})},[g]),_.createElement($m,{defaultOpen:S,onOpenChange:e=>{(u||e)&&(e?N(!0):Te(!0),j(e))},open:A},_.createElement(Ch.Provider,{value:{activeSnapPoint:fe,snapPoints:a,setActiveSnapPoint:me,drawerRef:R,overlayRef:ee,onOpenChange:t,onPress:Se,onRelease:Oe,onDrag:we,dismissible:u,shouldAnimate:le,handleOnly:d,isOpen:A,isDragging:P,shouldFade:ve,closeDrawer:Te,onNestedDrag:Ae,onNestedOpenChange:ke,onNestedRelease:je,keyboardIsOpen:ce,modal:g,snapPointsOffset:ge,activeSnapPointIndex:pe,direction:x,shouldScaleBackground:o,setBackgroundColorOnScale:s,noBodyStyles:b,container:O,autoFocus:k}},n))}var yg=_.forwardRef(function({...e},t){let{overlayRef:n,snapPoints:r,onRelease:i,shouldFade:a,isOpen:o,modal:s,shouldAnimate:c}=wh(),l=Yh(t,n),u=r&&r.length>0;if(!s)return null;let d=_.useCallback(e=>i(e),[i]);return _.createElement(sh,{onMouseUp:d,ref:l,"data-vaul-overlay":``,"data-vaul-snap-points":o&&u?`true`:`false`,"data-vaul-snap-points-overlay":o&&a?`true`:`false`,"data-vaul-animate":c?.current?`true`:`false`,...e})});yg.displayName=`Drawer.Overlay`;var bg=_.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},i){let{drawerRef:a,onPress:o,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:p,direction:m,snapPoints:h,container:g,handleOnly:v,shouldAnimate:y,autoFocus:b}=wh(),[x,S]=_.useState(!1),C=Yh(i,a),w=_.useRef(null),T=_.useRef(null),E=_.useRef(!1),D=h&&h.length>0;hg();let O=(e,t,n=0)=>{if(E.current)return!0;let r=Math.abs(e.y),i=Math.abs(e.x),a=i>r,o=[`bottom`,`right`].includes(t)?1:-1;if(t===`left`||t===`right`){if(!(e.x*o<0)&&i>=0&&i<=n)return a}else if(!(e.y*o<0)&&r>=0&&r<=n)return!a;return E.current=!0,!0};_.useEffect(()=>{D&&window.requestAnimationFrame(()=>{S(!0)})},[]);function k(e){w.current=null,E.current=!1,s(e)}return _.createElement(dh,{"data-vaul-drawer-direction":m,"data-vaul-drawer":``,"data-vaul-delayed-snap-points":x?`true`:`false`,"data-vaul-snap-points":p&&D?`true`:`false`,"data-vaul-custom-container":g?`true`:`false`,"data-vaul-animate":y?.current?`true`:`false`,...r,ref:C,style:u&&u.length>0?{"--snap-point-height":`${u[d??0]}px`,...t}:t,onPointerDown:e=>{v||(r.onPointerDown==null||r.onPointerDown.call(r,e),w.current={x:e.pageX,y:e.pageY},o(e))},onOpenAutoFocus:e=>{n?.(e),b||e.preventDefault()},onPointerDownOutside:t=>{if(e?.(t),!f||t.defaultPrevented){t.preventDefault();return}l.current&&=!1},onFocusOutside:e=>{if(!f){e.preventDefault();return}},onPointerMove:e=>{if(T.current=e,v||(r.onPointerMove==null||r.onPointerMove.call(r,e),!w.current))return;let t=e.pageY-w.current.y,n=e.pageX-w.current.x,i=e.pointerType===`touch`?10:2;O({x:n,y:t},m,i)?c(e):(Math.abs(n)>i||Math.abs(t)>i)&&(w.current=null)},onPointerUp:e=>{r.onPointerUp==null||r.onPointerUp.call(r,e),w.current=null,E.current=!1,s(e)},onPointerOut:e=>{r.onPointerOut==null||r.onPointerOut.call(r,e),k(T.current)},onContextMenu:e=>{r.onContextMenu==null||r.onContextMenu.call(r,e),T.current&&k(T.current)}})});bg.displayName=`Drawer.Content`;var xg=250,Sg=120,Cg=_.forwardRef(function({preventCycle:e=!1,children:t,...n},r){let{closeDrawer:i,isDragging:a,snapPoints:o,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:d,onPress:f,onDrag:p}=wh(),m=_.useRef(null),h=_.useRef(!1);function g(){if(h.current){b();return}window.setTimeout(()=>{v()},Sg)}function v(){if(a||e||h.current){b();return}if(b(),!o||o.length===0){l||i();return}if(s===o[o.length-1]&&l){i();return}let t=o.findIndex(e=>e===s);if(t===-1)return;let n=o[t+1];c(n)}function y(){m.current=window.setTimeout(()=>{h.current=!0},xg)}function b(){m.current&&window.clearTimeout(m.current),h.current=!1}return _.createElement(`div`,{onClick:g,onPointerCancel:b,onPointerDown:e=>{u&&f(e),y()},onPointerMove:e=>{u&&p(e)},ref:r,"data-vaul-drawer-visible":d?`true`:`false`,"data-vaul-handle":``,"aria-hidden":`true`,...n},_.createElement(`span`,{"data-vaul-handle-hitarea":``,"aria-hidden":`true`},t))});Cg.displayName=`Drawer.Handle`;function wg({onDrag:e,onOpenChange:t,open:n,...r}){let{onNestedDrag:i,onNestedOpenChange:a,onNestedRelease:o}=wh();if(!i)throw Error(`Drawer.NestedRoot must be placed in another drawer`);return _.createElement(vg,{nested:!0,open:n,onClose:()=>{a(!1)},onDrag:(t,n)=>{i(t,n),e?.(t,n)},onOpenChange:e=>{e&&a(e),t?.(e)},onRelease:o,...r})}function Tg(e){let t=wh(),{container:n=t.container,...r}=e;return _.createElement(ah,{container:n,...r})}var Eg={Root:vg,NestedRoot:wg,Content:bg,Overlay:yg,Trigger:th,Portal:Tg,Handle:Cg,Close:bh,Title:gh,Description:vh},Dg=Symbol.for(`react.portal`);function Og(e,t){if(e==null||typeof e==`boolean`)return!1;if(Array.isArray(e))return e.some(e=>Og(e,t));if(_.isValidElement(e)){if(e.type===t)return!0;let n=e.props;return n.children!=null&&Og(n.children,t)}if(typeof e==`string`||typeof e==`number`)return!1;if(typeof e==`object`&&e.$$typeof===Dg)return Og(e.children,t);if(typeof e==`object`&&Symbol.iterator in e)return Array.from(e).some(e=>Og(e,t));if(globalThis.process?.env?.NODE_ENV!==`production`){let t=typeof e==`object`?` with keys {${Object.keys(e).join(`, `)}}`:``;console.error(`[treeContainsComponent] A non-renderable value${t} is being passed as a React child. React will throw 'Objects are not valid as a React child' at the real render site. Stringify it (e.g. JSON.stringify) before rendering.`,e)}return!1}var kg=`data-matrx-floating-layer`,Ag=Symbol.for(`ai-matrx.design-system.modal-layer-registry`),jg=globalThis,Mg=jg[Ag]??={count:0,listeners:new Set};function Ng(){for(let e of Mg.listeners)e()}var Pg=[`wheel`,`touchmove`];function Fg(e){Vg(e.target)&&e.stopPropagation()}function Ig(e){if(typeof document<`u`&&document.body)for(let t of Pg)e?document.body.addEventListener(t,Fg,{passive:!0}):document.body.removeEventListener(t,Fg)}function Lg(){Mg.count+=1,Mg.count===1&&Ig(!0),Ng();let e=!1;return()=>{e||(e=!0,Mg.count=Math.max(0,Mg.count-1),Mg.count===0&&Ig(!1),Ng())}}function Rg(){return Mg.count>0}function zg(e){_.useLayoutEffect(()=>e?Lg():void 0,[e])}var Bg=`[data-radix-popper-content-wrapper]`;function Vg(e){return e instanceof Element?e.closest(`[data-matrx-floating-layer]`)?!0:e.closest(Bg)!==null&&e.ownerDocument.querySelector(`[data-matrx-floating-layer]`)!==null:!1}function Hg(e){return t=>{e?.(t),Vg(t.target)&&t.preventDefault()}}var Ug=e=>e.preventDefault(),Wg=_.forwardRef(({children:e},t)=>{let[n]=_.useState(()=>typeof document>`u`?null:document.activeElement);return(0,j.jsx)(up,{asChild:!0,trapped:!1,loop:!1,onMountAutoFocus:Ug,onUnmountAutoFocus:e=>{e.preventDefault();let t=document.activeElement;(!t||t===document.body||!t.isConnected)&&Rg()&&n instanceof HTMLElement&&n.isConnected&&n.focus({preventScroll:!0})},children:(0,j.jsx)(Ki,{ref:t,[kg]:``,style:{pointerEvents:`auto`},children:e})})});Wg.displayName=`FloatingLayer`;var Gg=Symbol.for(`ai-matrx.design-system.dialog-modal-context`),Kg=globalThis,qg=Kg[Gg]??=_.createContext(!0);function Jg({children:e,modal:t}){return(0,j.jsx)(qg.Provider,{value:t,children:e})}function Yg(){return _.useContext(qg)}var Xg=_.createContext(`bottom`),Zg=()=>_.useContext(Xg),Qg=({children:e,shouldScaleBackground:t=!0,onOpenChange:n,...r})=>{let i=r.direction??`bottom`,a=e=>{e&&typeof document<`u`&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),n?.(e)};return(0,j.jsx)(Jg,{modal:!0,children:(0,j.jsx)(Xg.Provider,{value:i,children:(0,j.jsx)(Eg.Root,{modal:!0,shouldScaleBackground:t,...r,onOpenChange:a,direction:i,children:e})})})};Qg.displayName=`Drawer`;var $g=Eg.Trigger,e_=Eg.Portal;Eg.Close;var t_=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Eg.Overlay,{ref:n,"data-slot":`drawer-overlay`,className:Z(`fixed inset-0 z-[10000] bg-[var(--matrx-overlay-scrim)]`,e),...t}));t_.displayName=Eg.Overlay.displayName;var n_=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Eg.Description,{ref:n,"data-slot":`drawer-description`,className:Z(`text-sm text-muted-foreground`,e),...t}));n_.displayName=Eg.Description.displayName;var r_=_.forwardRef(({onInteractOutside:e,...t},n)=>(zg(!0),(0,j.jsx)(Eg.Content,{"data-matrx-entrance":`none`,...t,ref:n,"aria-modal":`true`,onInteractOutside:Hg(e)})));r_.displayName=`DrawerContentPrimitive`;var i_={bottom:`inset-x-0 bottom-0 mt-24 flex-col rounded-t-[10px] border-t pb-safe`,top:`inset-x-0 top-0 mb-24 flex-col rounded-b-[10px] border-b pt-safe`,left:`inset-y-0 left-0 mr-24 flex-row rounded-r-[10px] border-r`,right:`inset-y-0 right-0 ml-24 flex-row rounded-l-[10px] border-l`},a_={bottom:{adaptive:`h-auto max-h-[90dvh]`,full:`h-[92dvh]`},top:{adaptive:`h-auto max-h-[90dvh]`,full:`h-[92dvh]`},left:{adaptive:`w-auto max-w-[92vw]`,full:`h-dvh w-[92vw] max-w-sm`},right:{adaptive:`w-auto max-w-[92vw]`,full:`h-dvh w-[92vw] max-w-sm`}},o_=_.forwardRef(({className:e,children:t,size:n=`adaptive`,showHandle:r,...i},a)=>{let o=Zg(),s=Og(t,n_)||Og(t,Eg.Description),c=r??(o===`bottom`||o===`top`);return(0,j.jsxs)(e_,{children:[(0,j.jsx)(t_,{}),(0,j.jsxs)(r_,{ref:a,"data-slot":`drawer-content`,"data-direction":o,className:Z(`fixed z-[10000] flex min-w-0 border bg-background`,i_[o],a_[o][n],e),...s?{}:{"aria-describedby":void 0},...i,children:[c?(0,j.jsx)(`div`,{"aria-hidden":!0,"data-slot":`drawer-handle`,className:Z(`flex min-h-11 w-full shrink-0 cursor-grab items-center justify-center active:cursor-grabbing`,o===`top`&&`order-last`),children:(0,j.jsx)(`div`,{className:`h-1 w-[100px] rounded-full bg-muted`})}):null,t]})]})});o_.displayName=`DrawerContent`;var s_=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Eg.Title,{ref:n,"data-slot":`drawer-title`,className:Z(`text-lg font-semibold leading-none tracking-tight`,e),...t}));s_.displayName=Eg.Title.displayName;var c_=Symbol.for(`@ai-matrx/design-system/error-actions`),l_=globalThis,u_=l_[c_]??(l_[c_]=_.createContext(null));function d_(){return _.useContext(u_)}function f_(e){let t=d_();return t?(0,j.jsx)(j.Fragment,{children:t(e)}):null}var p_=_.forwardRef(function({as:e=`p`,message:t,title:n,error:r,operation:i,records:a,unsavedInput:o,origin:s,children:c,...l},u){let d=e,f={...t===void 0?{}:{message:t},...n===void 0?{}:{title:n},...r===void 0?{}:{error:r},...i===void 0?{}:{operation:i},...a===void 0?{}:{records:a},...o===void 0?{}:{unsavedInput:o},...s===void 0?{}:{origin:s}};return(0,j.jsxs)(d,{ref:u,role:`alert`,"data-error-box":``,...l,children:[c??t,(0,j.jsx)(f_,{...f})]})}),m_=ip(`matrx-glyph-trim inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 disabled:opacity-50 active:scale-[0.98] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-sm hover:bg-primary/90`,primary:`bg-primary text-primary-foreground shadow-sm hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,success:`bg-success text-success-foreground shadow-sm hover:bg-success/90`,outline:`border border-border bg-card shadow-sm 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`,subtle:`border border-transparent bg-muted/50 text-foreground hover:border-border hover:bg-muted`},size:{xs:`h-6 rounded-md px-1 text-xs`,sm:`h-8 rounded-md px-3 text-xs`,default:`h-9 px-4 py-2`,md:`h-9 px-4 py-2`,lg:`h-10 rounded-md px-6`,xl:`h-12 px-8 py-3 text-base`,"2xl":`h-14 px-10 py-3 text-base`,"3xl":`h-16 px-12 py-3 text-base`,icon:`h-9 w-9`,"icon-sm":`h-7 w-7`,roundIcon:`h-8 w-8 rounded-full p-0`}},defaultVariants:{variant:`default`,size:`default`}}),h_=new Set([`xs`,`sm`,`default`,`md`,`lg`,`icon`,`icon-sm`,`roundIcon`]),g_=new Set([`icon`,`icon-sm`,`roundIcon`]);function __(e){e.preventDefault(),e.stopPropagation()}var v_=_.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,onClick:i,...a},o)=>{let s=r?Ki:`button`,c=n??`default`,l=r&&!!a.disabled,u=a[`aria-disabled`],d=l||u===!0||u===`true`;return(0,j.jsx)(s,{className:Z(m_({variant:t,size:n,className:e})),"data-matrx-button":``,"data-tap-floor":h_.has(c)?``:void 0,"data-tap-floor-square":g_.has(c)?``:void 0,ref:o,...a,"aria-disabled":l?!0:u,tabIndex:l?-1:a.tabIndex,onClick:d?__:i})});v_.displayName=`Button`;var y_=`(max-width: 767px)`;function b_(){return typeof window<`u`&&typeof window.matchMedia==`function`}function x_(e){if(!b_())return()=>{};let t=window.matchMedia(y_);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function S_(){return b_()?window.matchMedia(y_).matches:typeof window<`u`&&window.innerWidth<768}function C_(){return!1}function w_(){return _.useSyncExternalStore(x_,S_,C_)}var T_=Object.defineProperty,E_=(e,t)=>T_(e,`name`,{value:t,configurable:!0}),D_=!1;function O_(){let[e,t]=_.useState(D_);return _.useEffect(()=>{D_||(D_=!0,t(!0))},[]),e}E_(O_,`useIsHydrated`);var k_=_.useSyncExternalStore;function A_(){return()=>{}}E_(A_,`subscribe`);function j_(){return k_(A_,()=>!0,()=>!1)}E_(j_,`useIsHydratedModern`);var M_=typeof k_==`function`?j_:O_,N_=Object.defineProperty,P_=(e,t)=>N_(e,`name`,{value:t,configurable:!0}),F_=`rovingFocusGroup.onEntryFocus`,I_={bubbles:!1,cancelable:!0},L_=`RovingFocusGroup`,[R_,z_,B_]=Pf(L_),[V_,H_]=Vi(L_,[B_]),[U_,W_]=V_(L_),G_=_.forwardRef(P_(function(e,t){return(0,j.jsx)(R_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(R_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(K_,{...e,ref:t})})})},`RovingFocusGroup`)),K_=_.forwardRef(P_(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=_.useRef(null),p=H(t,f),m=qf(a),[h,g]=kc({prop:o,defaultProp:s??null,onChange:c,caller:L_}),[v,y]=_.useState(!1),b=ua(l),x=z_(n),S=_.useRef(!1),[C,w]=_.useState(0);return _.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(F_,b),()=>e.removeEventListener(F_,b)},[b]),(0,j.jsx)(U_,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:_.useCallback(e=>g(e),[g]),onItemShiftTab:_.useCallback(()=>y(!0),[]),onFocusableItemAdd:_.useCallback(()=>w(e=>e+1),[]),onFocusableItemRemove:_.useCallback(()=>w(e=>e-1),[]),children:(0,j.jsx)(W.div,{tabIndex:v||C===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:V(e.onMouseDown,()=>{S.current=!0}),onFocus:V(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(F_,I_);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable);Q_([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}S.current=!1}),onBlur:V(e.onBlur,()=>y(!1))})})},`RovingFocusGroupImpl`)),q_=`RovingFocusGroupItem`,J_=_.forwardRef(P_(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Aa(),l=a||c,u=W_(q_,n),d=u.currentTabStopId===l,f=z_(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=M_();return Ta(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),_.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,j.jsx)(R_.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,j.jsx)(W.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:V(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:V(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:V(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Z_(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?$_(n,r+1):n.slice(r+1)}setTimeout(()=>Q_(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),Y_={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function X_(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}P_(X_,`getDirectionAwareKey`);function Z_(e,t,n){let r=X_(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Y_[r]}P_(Z_,`getFocusIntent`);function Q_(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}P_(Q_,`focusFirst`);function $_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}P_($_,`wrapArray`);var ev=G_,tv=J_,nv=Object.defineProperty,rv=(e,t)=>nv(e,`name`,{value:t,configurable:!0}),iv=[`Enter`,` `],av=[`ArrowDown`,`PageUp`,`Home`],ov=[`ArrowUp`,`PageDown`,`End`],sv=[...av,...ov],cv={ltr:[...iv,`ArrowRight`],rtl:[...iv,`ArrowLeft`]},lv={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},uv=`Menu`,[dv,fv,pv]=Pf(uv),[mv,hv]=Vi(uv,[pv,Js,H_]),gv=Js(),_v=H_(),[vv,yv]=mv(uv),[bv,xv]=mv(uv),Sv=rv(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=gv(t),[c,l]=_.useState(null),u=_.useRef(!1),d=ua(a),f=qf(i);return _.useEffect(()=>{let e=rv(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=rv(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),_.useEffect(()=>{if(!n)return;let e=rv(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,j.jsx)(sc,{...s,children:(0,j.jsx)(vv,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,j.jsx)(bv,{scope:t,onClose:_.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),Cv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,...r}=e,i=gv(n);return(0,j.jsx)(cc,{...i,...r,ref:t})},`MenuAnchor`)),wv=`MenuPortal`,[Tv,Ev]=mv(wv,{forceMount:void 0}),Dv=rv(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=yv(wv,t);return(0,j.jsx)(Tv,{scope:t,forceMount:n,children:(0,j.jsx)(hc,{present:n||a.open,children:(0,j.jsx)(dc,{asChild:!0,container:i,children:r})})})},`MenuPortal`),Ov=`MenuContent`,[kv,Av]=mv(Ov),jv=_.forwardRef(rv(function(e,t){let n=Ev(Ov,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=yv(Ov,e.__scopeMenu),o=xv(Ov,e.__scopeMenu);return(0,j.jsx)(dv.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(hc,{present:r||a.open,children:(0,j.jsx)(dv.Slot,{scope:e.__scopeMenu,children:o.modal?(0,j.jsx)(Mv,{...i,ref:t}):(0,j.jsx)(Nv,{...i,ref:t})})})})},`MenuContent`)),Mv=_.forwardRef(rv(function(e,t){let n=yv(Ov,e.__scopeMenu),r=_.useRef(null),i=H(t,r);return _.useEffect(()=>{let e=r.current;if(e)return Gm(e)},[]),(0,j.jsx)(Fv,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),Nv=_.forwardRef(rv(function(e,t){let n=yv(Ov,e.__scopeMenu);return(0,j.jsx)(Fv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),Pv=Gi(`MenuContent.ScrollLock`),Fv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=yv(Ov,n),v=xv(Ov,n),y=gv(n),b=_v(n),x=fv(n),[S,C]=_.useState(null),w=_.useRef(null),T=H(t,w,g.onContentChange),E=_.useRef(0),D=_.useRef(``),O=_.useRef(0),k=_.useRef(null),A=_.useRef(`right`),M=_.useRef(0),N=m?Im:_.Fragment,P=m?{as:Pv,allowPinchZoom:!0}:void 0,F=rv(e=>{let t=D.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=fy(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;rv((function e(t){D.current=t,window.clearTimeout(E.current),t!==``&&(E.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);_.useEffect(()=>()=>window.clearTimeout(E.current),[]),Dp();let I=_.useCallback(e=>A.current===k.current?.side&&my(e,k.current?.area),[]);return(0,j.jsx)(kv,{scope:n,searchRef:D,onItemEnter:_.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:_.useCallback(e=>{I(e)||(w.current?.focus(),C(null))},[I]),onTriggerLeave:_.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:O,onPointerGraceIntentChange:_.useCallback(e=>{k.current=e},[]),children:(0,j.jsx)(N,{...P,children:(0,j.jsx)(up,{asChild:!0,trapped:i,onMountAutoFocus:V(a,e=>{e.preventDefault(),w.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,j.jsx)(ev,{asChild:!0,...b,dir:v.dir,orientation:`vertical`,loop:r,currentTabStopId:S,onCurrentTabStopIdChange:C,onEntryFocus:V(c,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,j.jsx)(lc,{role:`menu`,"aria-orientation":`vertical`,"data-state":sy(g.open),"data-radix-menu-content":``,dir:v.dir,...y,...h,ref:T,style:{outline:`none`,...h.style},onKeyDown:V(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&F(e.key));let i=w.current;if(e.target!==i||!sv.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);ov.includes(e.key)&&a.reverse(),uy(a)}),onBlur:V(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),D.current=``)}),onPointerMove:V(e.onPointerMove,hy(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?`right`:`left`;A.current=t,M.current=e.clientX}}))})})})})})})},`MenuContentImpl`)),Iv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{role:`group`,...r,ref:t})},`MenuGroup`)),Lv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{...r,ref:t})},`MenuLabel`)),Rv=`MenuItem`,zv=`menu.itemSelect`,Bv=_.forwardRef(rv(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=_.useRef(null),o=xv(Rv,e.__scopeMenu),s=Av(Rv,e.__scopeMenu),c=H(t,a),l=_.useRef(!1),u=rv(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(zv,{bubbles:!0,cancelable:!0});e.addEventListener(zv,e=>r?.(e),{once:!0}),sa(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,j.jsx)(Vv,{...i,ref:c,disabled:n,onClick:V(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:V(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&iv.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),Vv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Av(Rv,n),s=_v(n),c=_.useRef(null),l=H(t,c),[u,d]=_.useState(!1),[f,p]=_.useState(``);return _.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,j.jsx)(dv.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,j.jsx)(tv,{asChild:!0,...s,focusable:!r,children:(0,j.jsx)(W.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:V(e.onPointerMove,hy(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,hy(e=>o.onItemLeave(e))),onFocus:V(e.onFocus,()=>d(!0)),onBlur:V(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),Hv=_.forwardRef(rv(function(e,t){let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,j.jsx)(Yv,{scope:e.__scopeMenu,checked:n,children:(0,j.jsx)(Bv,{role:`menuitemcheckbox`,"aria-checked":cy(n)?`mixed`:n,...i,ref:t,"data-state":ly(n),onSelect:V(i.onSelect,()=>r?.(cy(n)?!0:!n),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[Uv,Wv]=mv(`MenuRadioGroup`,{value:void 0,onValueChange:rv(()=>{},`onValueChange`)}),Gv=_.forwardRef(rv(function(e,t){let{value:n,onValueChange:r,...i}=e,a=ua(r);return(0,j.jsx)(Uv,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,j.jsx)(Iv,{...i,ref:t})})},`MenuRadioGroup`)),Kv=`MenuRadioItem`,qv=_.forwardRef(rv(function(e,t){let{value:n,...r}=e,i=Wv(Kv,e.__scopeMenu),a=n===i.value;return(0,j.jsx)(Yv,{scope:e.__scopeMenu,checked:a,children:(0,j.jsx)(Bv,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":ly(a),onSelect:V(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},`MenuRadioItem`)),Jv=`MenuItemIndicator`,[Yv,Xv]=mv(Jv,{checked:!1}),Zv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,a=Xv(Jv,n);return(0,j.jsx)(hc,{present:r||cy(a.checked)||a.checked===!0,children:(0,j.jsx)(W.span,{...i,ref:t,"data-state":ly(a.checked)})})},`MenuItemIndicator`)),Qv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),$v=`MenuSub`,[ey,ty]=mv($v),ny=rv(e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=yv($v,t),o=gv(t),[s,c]=_.useState(null),[l,u]=_.useState(null),d=ua(i);return _.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,j.jsx)(sc,{...o,children:(0,j.jsx)(vv,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,j.jsx)(ey,{scope:t,contentId:Aa(),triggerId:Aa(),trigger:s,onTriggerChange:c,children:n})})})},`MenuSub`),ry=`MenuSubTrigger`,iy=_.forwardRef(rv(function(e,t){let n=yv(ry,e.__scopeMenu),r=xv(ry,e.__scopeMenu),i=ty(ry,e.__scopeMenu),a=Av(ry,e.__scopeMenu),o=_.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=_.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);_.useEffect(()=>u,[u]),_.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]);let d=H(t,i.onTriggerChange);return(0,j.jsx)(Cv,{asChild:!0,...l,children:(0,j.jsx)(Vv,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":sy(n.open),...e,ref:d,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:V(e.onPointerMove,hy(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:V(e.onPointerLeave,hy(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:V(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||(a.searchRef.current===``||t.key!==` `)&&cv[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})},`MenuSubTrigger`)),ay=`MenuSubContent`,oy=_.forwardRef(rv(function(e,t){let n=Ev(Ov,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=yv(Ov,e.__scopeMenu),s=xv(Ov,e.__scopeMenu),c=ty(ay,e.__scopeMenu),l=_.useRef(null),u=H(t,l);return(0,j.jsx)(dv.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(hc,{present:r||o.open,children:(0,j.jsx)(dv.Slot,{scope:e.__scopeMenu,children:(0,j.jsx)(Fv,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:V(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:V(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:V(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=lv[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})},`MenuSubContent`));function sy(e){return e?`open`:`closed`}rv(sy,`getOpenState`);function cy(e){return e===`indeterminate`}rv(cy,`isIndeterminate`);function ly(e){return cy(e)?`indeterminate`:e?`checked`:`unchecked`}rv(ly,`getCheckedState`);function uy(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}rv(uy,`focusFirst`);function dy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}rv(dy,`wrapArray`);function fy(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=dy(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}rv(fy,`getNextMatch`);function py(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}rv(py,`isPointInPolygon`);function my(e,t){return t?py({x:e.clientX,y:e.clientY},t):!1}rv(my,`isPointerInGraceArea`);function hy(e){return t=>t.pointerType===`mouse`?e(t):void 0}rv(hy,`whenMouse`);var gy=Sv,_y=Cv,vy=Dv,yy=jv,by=Lv,xy=Bv,Sy=Hv,Cy=Gv,wy=qv,Ty=Zv,Ey=Qv,Dy=ny,Oy=iy,ky=oy,Ay=Object.defineProperty,jy=(e,t)=>Ay(e,`name`,{value:t,configurable:!0}),My=`ContextMenu`,[Ny,Py]=Vi(My,[hv]),Fy=hv(),[Iy,Ly]=Ny(My),Ry=jy(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=_.useRef(!1),[c,l]=kc({prop:i,defaultProp:!1,onChange:r,caller:My}),u=Fy(t);return(0,j.jsx)(Iy,{scope:t,open:c,onOpenChange:l,modal:o,hasInteractedRef:s,children:(0,j.jsx)(gy,{...u,dir:a,open:c,onOpenChange:l,modal:o,children:n})})},`ContextMenu`),zy=`ContextMenuTrigger`,By=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=Ly(zy,n),o=Fy(n),[s,c]=_.useState({x:0,y:0}),l=_.useMemo(()=>({current:{getBoundingClientRect:jy(()=>DOMRect.fromRect({width:0,height:0,...s}),`getBoundingClientRect`)}}),[s]),u=_.useRef(0),d=_.useCallback(()=>window.clearTimeout(u.current),[]),f=jy(e=>{a.hasInteractedRef.current=!0,c({x:e.clientX,y:e.clientY}),a.onOpenChange(!0)},`handleOpen`);return _.useEffect(()=>d,[d]),_.useEffect(()=>void(r&&d()),[r,d]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(_y,{...o,virtualRef:l}),(0,j.jsx)(W.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:V(e.onContextMenu,e=>{d(),f(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:V(e.onPointerDown,eb(e=>{d(),a.open&&a.onOpenChange(!1),u.current=window.setTimeout(()=>f(e),700)})),onPointerMove:r?e.onPointerMove:V(e.onPointerMove,eb(d)),onPointerCancel:r?e.onPointerCancel:V(e.onPointerCancel,eb(d)),onPointerUp:r?e.onPointerUp:V(e.onPointerUp,eb(d))})]})},`ContextMenuTrigger`)),Vy=jy(e=>{let{__scopeContextMenu:t,...n}=e,r=Fy(t);return(0,j.jsx)(vy,{...r,...n})},`ContextMenuPortal`),Hy=`ContextMenuContent`,Uy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Ly(Hy,n),a=Fy(n),o=_.useRef(!1);return(0,j.jsx)(yy,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuContent`)),Wy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(by,{...i,...r,ref:t})},`ContextMenuLabel`)),Gy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(xy,{...i,...r,ref:t})},`ContextMenuItem`)),Ky=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(Sy,{...i,...r,ref:t})},`ContextMenuCheckboxItem`)),qy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(wy,{...i,...r,ref:t})},`ContextMenuRadioItem`)),Jy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(Ty,{...i,...r,ref:t})},`ContextMenuItemIndicator`)),Yy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(Ey,{...i,...r,ref:t})},`ContextMenuSeparator`)),Xy=`ContextMenuSub`,Zy=jy(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=Fy(t),[s,c]=kc({prop:i,defaultProp:a??!1,onChange:r,caller:Xy});return(0,j.jsx)(Dy,{...o,open:s,onOpenChange:c,children:n})},`ContextMenuSub`),Qy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(Oy,{...i,...r,ref:t})},`ContextMenuSubTrigger`)),$y=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(ky,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuSubContent`));function eb(e){return t=>t.pointerType===`mouse`?void 0:e(t)}jy(eb,`whenTouchOrPen`);var tb=Ry,nb=By,rb=Vy,ib=Uy,ab=Wy,ob=Gy,sb=Ky,cb=qy,lb=Jy,ub=Yy,db=Zy,fb=Qy,pb=$y,mb=2;function hb(){let[e,t]=(0,_.useState)({top:!1,bottom:!1}),n=(0,_.useRef)(null),r=(0,_.useRef)(null),i=(0,_.useCallback)(()=>{let e=n.current;if(!e)return;let r=e.scrollHeight-e.clientHeight>mb,i={top:r&&e.scrollTop>mb,bottom:r&&e.scrollTop+e.clientHeight<e.scrollHeight-mb};t(e=>e.top===i.top&&e.bottom===i.bottom?e:i)},[]),a=(0,_.useCallback)(e=>{if(r.current?.(),r.current=null,n.current=e,!e)return;e.addEventListener(`scroll`,i,{passive:!0});let t=typeof ResizeObserver>`u`?null:new ResizeObserver(i);t?.observe(e);let a=new MutationObserver(i);a.observe(e,{childList:!0,subtree:!0}),r.current=()=>{e.removeEventListener(`scroll`,i),t?.disconnect(),a.disconnect()},requestAnimationFrame(i)},[i]);return(0,_.useEffect)(()=>()=>r.current?.(),[]),{ref:a,state:e,fadeProps:{"data-fade-top":e.top?``:void 0,"data-fade-bottom":e.bottom?``:void 0,className:`matrx-scroll-fade`}}}var gb=.6,_b=48;function vb(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function yb({side:e,scroller:t}){let n=_.useRef(null),r=e===`top`?-1:1,i=_.useCallback(()=>{n.current!==null&&cancelAnimationFrame(n.current),n.current=null},[]),a=_.useCallback(()=>{i();let e=performance.now(),a=o=>{let s=t.current;if(!s)return i();s.scrollTop+=r*gb*(o-e),e=o,n.current=requestAnimationFrame(a)};n.current=requestAnimationFrame(a)},[r,t,i]);return _.useEffect(()=>i,[i]),(0,j.jsx)(`div`,{"aria-hidden":!0,"data-menu-scroll-edge":e,className:`matrx-menu-scroll-edge`,children:(0,j.jsx)(`div`,{className:`matrx-menu-scroll-fade`,children:(0,j.jsx)(`div`,{"data-menu-scroll-button":``,className:`matrx-menu-scroll-button`,onPointerEnter:e=>{e.pointerType!==`touch`&&a()},onPointerLeave:i,onPointerDown:e=>{e.preventDefault();let n=t.current;n&&(n.scrollTop+=r*Math.max(n.clientHeight-_b,_b))},children:e===`top`?(0,j.jsx)(tp,{}):(0,j.jsx)(ep,{})})})})}function bb(...e){let t=hb(),n=_.useRef(null);return{ref:_.useCallback(vb(n,t.ref,...e),[t.ref,...e]),wrap:e=>(0,j.jsxs)(j.Fragment,{children:[t.state.top?(0,j.jsx)(yb,{side:`top`,scroller:n}):null,e,t.state.bottom?(0,j.jsx)(yb,{side:`bottom`,scroller:n}):null]}),surfaceClassName:`matrx-menu-surface`}}function xb(e,t){let n=_.useRef(null);return{ref:_.useCallback(t=>{n.current=t,typeof e==`function`?e(t):e&&(e.current=t)},[e]),onFocusOutside:e=>{if(t?.(e),e.defaultPrevented)return;let r=e.target,i=n.current?.id;r instanceof Element&&i&&r.getAttribute(`role`)===`menu`&&Array.from(r.querySelectorAll(`[aria-controls]`)).some(e=>e.getAttribute(`aria-controls`)===i)&&e.preventDefault()}}}var Sb=_.createContext(null);function Cb(e,t){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:{top:e?.top??t,right:e?.right??t,bottom:e?.bottom??t,left:e?.left??t}}function wb(e,t,n){if(!e)return t;let r=e.getAttribute(`data-side`);if(r!==`left`&&r!==`right`)return t;let i=e.ownerDocument.defaultView,a=i?.getComputedStyle(e).direction===`rtl`?`left`:`right`;if(r===a)return t;let o=Cb(t,0),s=e.getBoundingClientRect();if(a===`right`){let r=n??e.ownerDocument.documentElement.clientWidth??i?.innerWidth??0;if(!r)return t;o.right=Math.max(o.right,r-s.left)}else o.left=Math.max(o.left,s.right);return o}function Tb(e,t){let n=_.useContext(Sb),r=_.useRef(null);return{ref:_.useCallback(t=>{r.current=t,typeof e==`function`?e(t):e&&(e.current=t)},[e]),padding:wb(n?.current??null,t),wrap:e=>(0,j.jsx)(Sb.Provider,{value:r,children:e})}}var Eb=tb,Db=nb,Ob=db,kb=`z-[10001] min-w-[8rem] max-h-[var(--radix-context-menu-content-available-height)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-md border bg-popover p-1 text-popover-foreground`,Ab=`relative flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,jb=`relative flex select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,Mb=_.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,j.jsxs)(fb,{ref:i,"data-slot":`context-menu-sub-trigger`,className:Z(`flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,t&&`pl-8`,e),...r,children:[n,(0,j.jsx)($f,{className:`ml-auto h-4 w-4`})]}));Mb.displayName=fb.displayName;var Nb=_.forwardRef(({className:e,container:t,onFocusOutside:n,collisionPadding:r,children:i,...a},o)=>{let s=ed(t),c=Tb(o,r),l=xb(c.ref,n),u=bb(l.ref);return(0,j.jsx)(rb,{container:s,children:(0,j.jsx)(pb,{ref:u.ref,onFocusOutside:l.onFocusOutside,...c.padding===void 0?{}:{collisionPadding:c.padding},"data-slot":`context-menu-sub-content`,className:Z(kb,u.surfaceClassName,`shadow-lg`,Ju,e),...a,children:c.wrap(u.wrap(i))})})});Nb.displayName=pb.displayName;var Pb=_.forwardRef(({className:e,container:t,children:n,...r},i)=>{let a=ed(t),o=bb(i);return(0,j.jsx)(rb,{container:a,children:(0,j.jsx)(ib,{ref:o.ref,"data-slot":`context-menu-content`,className:Z(kb,o.surfaceClassName,`shadow-md`,Ju,e),...r,children:o.wrap(n)})})});Pb.displayName=ib.displayName;var Fb=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(ob,{ref:r,"data-slot":`context-menu-item`,className:Z(Ab,`gap-2 [&>svg]:size-4 [&>svg]:shrink-0`,t&&`pl-8`,e),...n}));Fb.displayName=ob.displayName;var Ib=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(sb,{ref:r,"data-slot":`context-menu-checkbox-item`,className:Z(jb,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(lb,{children:(0,j.jsx)(Zf,{className:`h-4 w-4`})})}),t]}));Ib.displayName=sb.displayName;var Lb=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(cb,{ref:r,"data-slot":`context-menu-radio-item`,className:Z(jb,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(lb,{children:(0,j.jsx)(Qf,{className:`h-4 w-4 fill-current`})})}),t]}));Lb.displayName=cb.displayName;var Rb=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(ab,{ref:r,"data-slot":`context-menu-label`,className:Z(`px-2 py-1.5 text-sm font-semibold text-foreground`,t&&`pl-8`,e),...n}));Rb.displayName=ab.displayName;var zb=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(ub,{ref:n,"data-slot":`context-menu-separator`,className:Z(`-mx-1 my-1 h-px bg-border`,e),...t}));zb.displayName=ub.displayName;var Bb=Object.defineProperty,Vb=(e,t)=>Bb(e,`name`,{value:t,configurable:!0});function Hb(e,[t,n]){return Math.min(n,Math.max(t,e))}Vb(Hb,`clamp`);var Ub=Object.defineProperty,Wb=(e,t)=>Ub(e,`name`,{value:t,configurable:!0});function Gb(e){let t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Wb(Gb,`usePrevious`);var Kb=Object.defineProperty,qb=(e,t)=>Kb(e,`name`,{value:t,configurable:!0}),Jb=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Yb=[` `,`Enter`],Xb=`Select`,[Zb,Qb,$b]=Pf(Xb),[ex,tx]=Vi(Xb,[$b,Js]),nx=Js(),[rx,ix]=ex(Xb),[ax,ox]=ex(Xb);function sx(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=nx(t),[v,y]=_.useState(null),[b,x]=_.useState(null),[S,C]=_.useState(!1),w=qf(l),[T,E]=kc({prop:r,defaultProp:i??!1,onChange:a,caller:Xb}),[D,O]=kc({prop:o,defaultProp:s,onChange:c,caller:Xb}),k=_.useRef(null),A=_.useRef(D);_.useEffect(()=>{let e=m?v?.ownerDocument.getElementById(m):v?.form;if(e instanceof HTMLFormElement){let t=qb(()=>O(A.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,v,O]);let M=!v||!!m||!!v.closest(`form`),[N,P]=_.useState(new Set),F=Aa(),I=Array.from(N).map(e=>e.props.value).join(`;`),L=_.useCallback(e=>{P(t=>new Set(t).add(e))},[]),ee=_.useCallback(e=>{P(t=>{let n=new Set(t);return n.delete(e),n})},[]),te={required:p,trigger:v,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:F,value:D,onValueChange:O,open:T,onOpenChange:E,dir:w,triggerPointerDownPosRef:k,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:N,nativeSelectKey:I,isFormControl:M};return(0,j.jsx)(sc,{...g,children:(0,j.jsx)(rx,{scope:t,...te,children:(0,j.jsx)(Zb.Provider,{scope:t,children:(0,j.jsx)(ax,{scope:t,onNativeOptionAdd:L,onNativeOptionRemove:ee,children:Zx(h)?h(te):n})})})})}qb(sx,`SelectProvider`);var cx=qb(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,j.jsx)(sx,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,j.jsxs)(j.Fragment,{children:[n,e?(0,j.jsx)(Xx,{__scopeSelect:t}):null]})})},`Select`),lx=`SelectTrigger`,ux=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=nx(n),o=ix(lx,n),s=o.disabled||r,c=H(t,o.onTriggerChange),l=Qb(n),u=_.useRef(`touch`),[d,f,p]=$x(e=>{let t=l().filter(e=>!e.disabled),n=eS(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=qb(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,j.jsx)(cc,{asChild:!0,...a,children:(0,j.jsx)(W.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":Qx(o.value)?``:void 0,...i,ref:c,onClick:V(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:V(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:V(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&Jb.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),dx=`SelectValue`,fx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=ix(dx,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=H(t,c.onValueNodeChange);Ta(()=>{l(u)},[l,u]);let f=Qx(c.value);return(0,j.jsx)(W.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,j.jsx)(_.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),px=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,j.jsx)(W.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[mx,hx]=ex(`SelectPortal`,{forceMount:void 0}),gx=qb(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,j.jsx)(mx,{scope:e.__scopeSelect,forceMount:n,children:(0,j.jsx)(dc,{asChild:!0,...r})})},`SelectPortal`),_x=`SelectContent`,vx=_.forwardRef(qb(function(e,t){let n=hx(_x,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=ix(_x,e.__scopeSelect),[o,s]=_.useState();return Ta(()=>{s(new DocumentFragment)},[]),(0,j.jsx)(hc,{present:r||a.open,children:({present:e})=>e?(0,j.jsx)(wx,{...i,ref:t}):(0,j.jsx)(yx,{...i,fragment:o})})},`SelectContent`)),yx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?ia.createPortal((0,j.jsx)(xx,{scope:n,children:(0,j.jsx)(Zb.Slot,{scope:n,children:(0,j.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),bx=10,[xx,Sx]=ex(_x),Cx=Gi(`SelectContent.RemoveScroll`),wx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,...v}=e,y=ix(_x,n),[b,x]=_.useState(null),[S,C]=_.useState(null),w=H(t,x),[T,E]=_.useState(null),[D,O]=_.useState(null),k=Qb(n),[A,M]=_.useState(!1),N=_.useRef(!1);_.useEffect(()=>{if(b)return Gm(b)},[b]),Dp();let P=_.useCallback(e=>{let[t,...n]=k().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[k,S]),F=_.useCallback(()=>P([T,b]),[P,T,b]);_.useEffect(()=>{A&&F()},[A,F]);let{onOpenChange:I,triggerPointerDownPosRef:L}=y;_.useEffect(()=>{if(b){let e={x:0,y:0},t=qb(t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},`handlePointerMove`),n=qb(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(b)||I(!1),document.removeEventListener(`pointermove`,t),L.current=null},`handlePointerUp`);return L.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,I,L]),_.useEffect(()=>{let e=qb(()=>I(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[I]);let[ee,te]=$x(e=>{let t=k().filter(e=>!e.disabled),n=eS(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ne=_.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&(E(e),r&&(N.current=!0))},[y.value]),re=_.useCallback(()=>b?.focus(),[b]),ie=_.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&O(e)},[y.value]),ae=r===`popper`?Ex:Tx,oe=ae===Ex?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,j.jsx)(xx,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:ne,selectedItem:T,onItemLeave:re,itemTextRefCallback:ie,focusSelectedItem:F,selectedItemText:D,position:r,isPositioned:A,searchRef:ee,children:(0,j.jsx)(Im,{as:Cx,allowPinchZoom:!0,children:(0,j.jsx)(up,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:V(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,j.jsx)(ae,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...oe,onPlaced:()=>M(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,...v.style},onKeyDown:V(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&te(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=k().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),Tx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=ix(_x,n),o=Sx(_x,n),[s,c]=_.useState(null),[l,u]=_.useState(null),d=H(t,u),f=Qb(n),p=_.useRef(!1),m=_.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:v,focusSelectedItem:y}=o,b=_.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&v){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=v.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-bx,d=Hb(a,[bx,Math.max(bx,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-bx,d=Hb(a,[bx,Math.max(bx,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-bx*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),_=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+_+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-bx,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+_+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${bx}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,v,a.dir,r]);Ta(()=>b(),[b]);let[x,S]=_.useState();Ta(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);let C=_.useCallback(e=>{e&&m.current===!0&&(b(),y?.(),m.current=!1)},[b,y]);return(0,j.jsx)(Dx,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:(0,j.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,j.jsx)(W.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),Ex=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=bx,...a}=e,o=nx(n);return(0,j.jsx)(lc,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[Dx,Ox]=ex(_x,{}),kx=`SelectViewport`,Ax=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=Sx(kx,n),o=Ox(kx,n),s=H(t,a.onViewportChange),c=_.useRef(0);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,j.jsx)(Zb.Slot,{scope:n,children:(0,j.jsx)(W.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:V(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-bx*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[jx,Mx]=ex(`SelectGroup`),Nx=`SelectLabel`,Px=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,...r}=e,i=Mx(Nx,n);return(0,j.jsx)(W.div,{id:i.id,...r,ref:t})},`SelectLabel`)),Fx=`SelectItem`,[Ix,Lx]=ex(Fx),Rx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=ix(Fx,n),c=Sx(Fx,n),l=s.value===r,[u,d]=_.useState(a??``),[f,p]=_.useState(!1),m=H(t,ua(e=>c.itemRefCallback?.(e,r,i))),h=Aa(),g=_.useRef(`touch`),v=qb(()=>{i||(s.onValueChange(r),s.onOpenChange(!1))},`handleSelect`);return(0,j.jsx)(Ix,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:_.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,j.jsx)(Zb.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,j.jsx)(W.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:V(o.onFocus,()=>p(!0)),onBlur:V(o.onBlur,()=>p(!1)),onClick:V(o.onClick,()=>{g.current!==`mouse`&&v()}),onPointerUp:V(o.onPointerUp,()=>{g.current===`mouse`&&v()}),onPointerDown:V(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:V(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:V(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:V(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(Yb.includes(e.key)&&v(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),zx=`SelectItemText`,Bx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=ix(zx,n),s=Sx(zx,n),c=Lx(zx,n),l=ox(zx,n),[u,d]=_.useState(null),f=ua(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=H(t,d,c.onItemTextChange,f),m=u?.textContent,h=_.useMemo(()=>(0,j.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=l;return Ta(()=>(g(h),()=>v(h)),[g,v,h]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(W.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!Qx(o.value)?ia.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Vx=`SelectItemIndicator`,Hx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,...r}=e;return Lx(Vx,n).isSelected?(0,j.jsx)(W.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Ux=`SelectScrollUpButton`,Wx=_.forwardRef(qb(function(e,t){let n=Sx(Ux,e.__scopeSelect),r=Ox(Ux,e.__scopeSelect),[i,a]=_.useState(!1),o=H(t,r.onScrollButtonChange);return Ta(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};qb(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,j.jsx)(qx,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Gx=`SelectScrollDownButton`,Kx=_.forwardRef(qb(function(e,t){let n=Sx(Gx,e.__scopeSelect),r=Ox(Gx,e.__scopeSelect),[i,a]=_.useState(!1),o=H(t,r.onScrollButtonChange);return Ta(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};qb(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,j.jsx)(qx,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),qx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Sx(`SelectScrollButton`,n),o=_.useRef(null),s=Qb(n),c=_.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return _.useEffect(()=>()=>c(),[c]),Ta(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,j.jsx)(W.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:V(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:V(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:V(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),Jx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,...r}=e;return(0,j.jsx)(W.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),Yx=`SelectBubbleInput`,Xx=_.forwardRef(qb(function({__scopeSelect:e,...t},n){let r=ix(Yx,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=_.useRef(null),m=H(n,p),h=i??``,g=Gb(h),v=Array.from(d).some(e=>(e.props.value??``)===``);return _.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(g!==h&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,h),e.dispatchEvent(t)}},[g,h]),(0,j.jsxs)(W.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...Ic,...t.style},ref:m,defaultValue:h,children:[Qx(i)&&!v?(0,j.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function Zx(e){return typeof e==`function`}qb(Zx,`isFunction`);function Qx(e){return e===``||e===void 0}qb(Qx,`shouldShowPlaceholder`);function $x(e){let t=ua(e),n=_.useRef(``),r=_.useRef(0),i=_.useCallback(e=>{let i=n.current+e;t(i),qb((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=_.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return _.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}qb($x,`useTypeaheadSearch`);function eS(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=tS(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}qb(eS,`findNextItem`);function tS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}qb(tS,`wrapArray`);var nS=`border border-border bg-card`,rS=cx,iS=fx,aS=ip(`matrx-glyph-trim flex w-full items-center justify-between gap-2 whitespace-nowrap rounded-md ${nS} text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground transition-colors hover:bg-accent hover:border-accent-foreground/20 focus:outline-none focus:ring-1 focus:ring-primary/30 focus:border-primary/40 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:min-w-0 [&>span]:line-clamp-1`,{variants:{size:{sm:`h-7 px-2 py-1 text-xs`,default:`h-9 px-3 py-1`,lg:`h-10 px-3 py-2`}},defaultVariants:{size:`default`}});function oS({className:e,size:t=`default`}){return(0,j.jsx)(ep,{"aria-hidden":`true`,"data-select-chevron":``,className:Z(t===`sm`?`h-3.5 w-3.5`:`h-4 w-4`,`shrink-0 opacity-50`,e)})}var sS=_.forwardRef(({className:e,children:t,hideArrow:n=!1,size:r,...i},a)=>(0,j.jsxs)(ux,{ref:a,className:Z(aS({size:r,className:e})),...i,children:[t,!n&&(0,j.jsx)(px,{asChild:!0,children:(0,j.jsx)(oS,{size:r===`sm`?`sm`:`default`})})]}));sS.displayName=ux.displayName;var cS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Wx,{ref:n,className:Z(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,j.jsx)(tp,{})}));cS.displayName=Wx.displayName;var lS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Kx,{ref:n,className:Z(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,j.jsx)(ep,{})}));lS.displayName=Kx.displayName;var uS=_.forwardRef(({className:e,children:t,position:n=`popper`,container:r,animated:i=!0,...a},o)=>{let s=ed(r);return(0,j.jsx)(gx,{container:s,children:(0,j.jsxs)(vx,{ref:o,className:Z(`relative z-[10001] max-h-96 min-w-[8rem] max-w-[calc(100vw-2rem)] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md`,i&&`matrx-motion-popper`,n===`popper`&&`matrx-popper-offset`,e),position:n,...a,children:[(0,j.jsx)(cS,{}),(0,j.jsx)(Ax,{className:Z(`max-w-full overflow-y-auto p-0.5`,n===`popper`&&`w-full min-w-[var(--radix-select-trigger-width)] max-h-[var(--radix-select-content-available-height)]`),children:t}),(0,j.jsx)(lS,{})]})})});uS.displayName=vx.displayName;var dS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Px,{ref:n,className:Z(`px-2 py-1.5 text-sm font-semibold`,e),...t}));dS.displayName=Px.displayName;var fS=_.forwardRef(({className:e,children:t,description:n,...r},i)=>(0,j.jsxs)(Rx,{ref:i,className:Z(`relative flex w-full min-w-0 select-none rounded-sm py-1 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,n?`flex-col items-start gap-0.5 py-1.5`:`items-center`,e),...r,children:[(0,j.jsx)(`span`,{className:`absolute right-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(Hx,{children:(0,j.jsx)(Zf,{className:`h-4 w-4`})})}),(0,j.jsx)(`span`,{className:`min-w-0 whitespace-normal break-words [overflow-wrap:anywhere]`,children:(0,j.jsx)(Bx,{children:t})}),n?(0,j.jsx)(`span`,{className:`block min-w-0 break-words text-xs leading-snug text-muted-foreground [overflow-wrap:anywhere]`,children:n}):null]}));fS.displayName=Rx.displayName;var pS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Jx,{ref:n,className:Z(`-mx-1 my-1 h-px bg-muted`,e),...t}));pS.displayName=Jx.displayName;var mS=Object.defineProperty,hS=(e,t)=>mS(e,`name`,{value:t,configurable:!0}),gS=`Popover`,[_S,vS]=Vi(gS,[Js]),yS=Js(),[bS,xS]=_S(gS),SS=hS(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=yS(t),c=_.useRef(null),[l,u]=_.useState(!1),[d,f]=kc({prop:r,defaultProp:i??!1,onChange:a,caller:gS});return(0,j.jsx)(sc,{...s,children:(0,j.jsx)(bS,{scope:t,contentId:Aa(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:_.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:_.useCallback(()=>u(!0),[]),onCustomAnchorRemove:_.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),CS=`PopoverTrigger`,wS=_.forwardRef(hS(function(e,t){let{__scopePopover:n,...r}=e,i=xS(CS,n),a=yS(n),o=H(t,i.triggerRef),s=(0,j.jsx)(W.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":FS(i.open),...r,ref:o,onClick:V(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,j.jsx)(cc,{asChild:!0,...a,children:s})},`PopoverTrigger`)),TS=`PopoverPortal`,[ES,DS]=_S(TS,{forceMount:void 0}),OS=hS(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=xS(TS,t);return(0,j.jsx)(ES,{scope:t,forceMount:n,children:(0,j.jsx)(hc,{present:n||a.open,children:(0,j.jsx)(dc,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),kS=`PopoverContent`,AS=_.forwardRef(hS(function(e,t){let n=DS(kS,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=xS(kS,e.__scopePopover);return(0,j.jsx)(hc,{present:r||a.open,children:a.modal?(0,j.jsx)(MS,{...i,ref:t}):(0,j.jsx)(NS,{...i,ref:t})})},`PopoverContent`)),jS=Gi(`PopoverContent.RemoveScroll`),MS=_.forwardRef(hS(function(e,t){let n=xS(kS,e.__scopePopover),r=_.useRef(null),i=H(t,r),a=_.useRef(!1);return _.useEffect(()=>{let e=r.current;if(e)return Gm(e)},[]),(0,j.jsx)(Im,{as:jS,allowPinchZoom:!0,children:(0,j.jsx)(PS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),NS=_.forwardRef(hS(function(e,t){let n=xS(kS,e.__scopePopover),r=_.useRef(!1),i=_.useRef(!1);return(0,j.jsx)(PS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),PS=_.forwardRef(hS(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=xS(kS,n),p=yS(n);return Dp(),(0,j.jsx)(up,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,j.jsx)(lc,{"data-state":FS(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})},`PopoverContentImpl`));function FS(e){return e?`open`:`closed`}hS(FS,`getState`);var IS=SS,LS=wS,RS=OS,zS=AS,BS=IS,VS=LS,HS=_.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,container:r,animated:i=!0,sizing:a=`fixed`,collisionPadding:o=16,...s},c)=>{let l=ed(r);return(0,j.jsx)(RS,{container:l,children:(0,j.jsx)(zS,{ref:c,align:t,sideOffset:n,collisionPadding:o,className:Z(`z-[10000] max-h-[var(--radix-popover-content-available-height)] overflow-y-auto overscroll-contain rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none`,a===`content`?`w-auto min-w-[min(max(var(--radix-popover-trigger-width),20rem),calc(100vw-2rem))] max-w-[min(28rem,calc(100vw-2rem))]`:`w-72 max-w-[calc(100vw-2rem)]`,i&&`matrx-motion-popper`,e),...s})})});HS.displayName=zS.displayName;var US=`matrx:layer-front`;function WS(e){typeof document<`u`&&document.dispatchEvent(new CustomEvent(US,{detail:{element:e}}))}var GS=_.createContext(!1),KS=({children:e,...t})=>{let n=w_(),r=t.modal??n;return(0,j.jsx)(GS.Provider,{value:t.modal===void 0,children:(0,j.jsx)(Jg,{modal:r,children:(0,j.jsx)($m,{...t,modal:r,children:e})})})};KS.displayName=`Dialog`;var qS=({container:e,...t})=>{let n=ed(e);return(0,j.jsx)(ah,{container:n??null,...t})};qS.displayName=`DialogPortal`;var JS=Symbol.for(`ai-matrx.design-system.dialog-container-context`),YS=globalThis,XS=YS[JS]??=_.createContext(null),ZS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(sh,{ref:n,"data-slot":`dialog-overlay`,className:Z(`fixed inset-0 z-[10000] bg-[var(--matrx-overlay-scrim-soft)]`,qu,e),...t}));ZS.displayName=sh.displayName;var QS=_.forwardRef(({onInteractOutside:e,...t},n)=>{let r=Yg();return zg(r),(0,j.jsx)(dh,{...t,ref:n,"aria-modal":r||void 0,onInteractOutside:Hg(e)})});QS.displayName=`DialogContentPrimitive`;var $S=`matrx-dialog-card fixed inset-0 z-[10000] m-auto grid h-fit min-w-0 w-full max-w-lg gap-4 max-h-[85dvh] overflow-y-auto overscroll-contain [--dialog-pad:1.5rem] overflow-x-clip border bg-background p-6 shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full sm:rounded-lg`,eC=`matrx-mobile-sheet matrx-dialog-card fixed inset-x-0 bottom-0 left-0 right-0 top-auto z-[10000] flex min-w-0 flex-col w-full max-w-full max-h-[90dvh] gap-4 [--dialog-pad:1rem] overflow-x-clip border-t bg-background p-4 pb-safe shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full rounded-t-2xl rounded-b-none overflow-y-auto overscroll-contain`,tC=`inset-x-0 bottom-0 left-0 right-0 top-auto translate-none w-full max-w-full max-h-[90dvh] rounded-b-none rounded-t-2xl overflow-y-auto`,nC=_.createContext(null),rC=80;function iC(e){return e instanceof Element&&!!e.closest(`button, a, input, textarea, select, [role='button'], [contenteditable='true']`)}var aC=_.forwardRef(({className:e,children:t,mobileSheet:n=!0,animated:r=!0,showCloseButton:i=!0,container:a,dismissOnOutsideClick:o=!1,onInteractOutside:s,onEscapeKeyDown:c,onPointerDownCapture:l,onFocusCapture:u,style:d,...f},p)=>{let m=w_(),h=Yg(),g=ed(a),v=n&&m,y=!h&&!v,b=_.useContext(GS),[x,S]=_.useState(null),C=y&&b,[w,T]=_.useState(!1);_.useEffect(()=>{if(!C||!x)return;let e=e=>{let t=e.detail?.element??null;(!t||t!==x&&!x.contains(t))&&T(!0)};return document.addEventListener(US,e),WS(x),()=>document.removeEventListener(US,e)},[C,x]);let E=()=>{C&&x&&(T(!1),WS(x))},[D,O]=_.useState({x:0,y:0}),k=_.useRef(null),A=_.useMemo(()=>{if(!y)return null;let e=(e,t)=>Math.max(-t,Math.min(t,e));return{onPointerDown:e=>{e.button!==0||iC(e.target)||(k.current={x:e.clientX,y:e.clientY,baseX:D.x,baseY:D.y},e.currentTarget.setPointerCapture?.(e.pointerId))},onPointerMove:t=>{let n=k.current;n&&O({x:e(n.baseX+t.clientX-n.x,window.innerWidth/2-rC/2),y:e(n.baseY+t.clientY-n.y,window.innerHeight/2-rC/2)})},onPointerUp:e=>{k.current&&(k.current=null,e.currentTarget.releasePointerCapture?.(e.pointerId))},onPointerCancel:()=>{k.current=null},onDoubleClick:()=>O({x:0,y:0})}},[y,D.x,D.y]),M=_.useCallback(e=>{S(e),typeof p==`function`?p(e):p&&(p.current=e)},[p]),N=Og(t,cC)||Og(t,gh),P=Og(t,lC)||Og(t,vh);return(0,j.jsxs)(qS,{container:a,children:[h?(0,j.jsx)(ZS,{}):null,(0,j.jsxs)(QS,{ref:M,"data-slot":`dialog-content`,className:Z(v?eC:$S,r&&(v?`matrx-motion-bottom-sheet`:`matrx-motion-dialog`),e,v&&tC,!h&&!b&&`z-[900]`,C&&w&&`z-[999]`,y&&`shadow-2xl ring-1 ring-border/60`),style:y&&(D.x!==0||D.y!==0)?{...d,translate:`${D.x}px ${D.y}px`}:d,onPointerDownCapture:e=>{l?.(e),w&&E()},onFocusCapture:e=>{u?.(e),w&&E()},onInteractOutside:e=>{s?.(e),y&&!o&&e.preventDefault()},onEscapeKeyDown:e=>{c?.(e);let t=e.target instanceof Node&&e.target!==document.body?e.target:document.activeElement;y&&x&&!(t&&x.contains(t))&&e.preventDefault()},...P?{}:{"aria-describedby":void 0},...f,children:[N?null:(0,j.jsx)(Lc,{children:(0,j.jsx)(gh,{children:`Dialog`})}),(0,j.jsx)(XS.Provider,{value:x,children:(0,j.jsx)(nC.Provider,{value:A,children:(0,j.jsx)($u,{container:x??g??null,children:t})})}),i?(0,j.jsxs)(bh,{"data-slot":`dialog-close`,"aria-label":`Close`,className:`absolute right-2 top-4 flex h-11 w-11 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground sm:right-4 lg:h-10 lg:w-10`,children:[(0,j.jsx)(Yf,{className:`h-4 w-4`}),(0,j.jsx)(`span`,{className:`sr-only`,children:`Close`})]}):null]})]})});aC.displayName=dh.displayName;var oC=({className:e,...t})=>{let n=_.useContext(nC);return(0,j.jsx)(`div`,{"data-slot":`dialog-header`,...n?{...n,"data-window-handle":``,title:`Drag to move · double-click to recenter`}:{},className:Z(`flex flex-col space-y-1.5 pr-12 text-center sm:text-left`,n&&`cursor-grab select-none active:cursor-grabbing`,e),...t})};oC.displayName=`DialogHeader`;var sC=({className:e,...t})=>(0,j.jsx)(`div`,{"data-slot":`dialog-footer`,className:Z(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,`sticky bottom-0 z-10 bg-background pt-3`,`mx-[calc(var(--dialog-pad,0px)*-1)] px-[var(--dialog-pad,0px)] pb-[var(--dialog-pad,0px)]`,e),...t});sC.displayName=`DialogFooter`;var cC=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(gh,{ref:n,"data-slot":`dialog-title`,className:Z(`text-lg font-semibold leading-none tracking-tight`,e),...t}));cC.displayName=gh.displayName;var lC=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(vh,{ref:n,"data-slot":`dialog-description`,className:Z(`text-sm text-muted-foreground`,e),...t}));lC.displayName=vh.displayName;var uC=Object.defineProperty,dC=(e,t)=>uC(e,`name`,{value:t,configurable:!0}),fC=`DropdownMenu`,[pC,mC]=Vi(fC,[hv]),hC=hv(),[gC,_C]=pC(fC),vC=dC(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=hC(t),l=_.useRef(null),[u,d]=kc({prop:i,defaultProp:a??!1,onChange:o,caller:fC});return(0,j.jsx)(gC,{scope:t,triggerId:Aa(),triggerRef:l,contentId:Aa(),open:u,onOpenChange:d,onOpenToggle:_.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,j.jsx)(gy,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),yC=`DropdownMenuTrigger`,bC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=_C(yC,n),o=hC(n),s=H(t,a.triggerRef);return(0,j.jsx)(_y,{asChild:!0,...o,children:(0,j.jsx)(W.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:V(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:V(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),xC=dC(e=>{let{__scopeDropdownMenu:t,...n}=e,r=hC(t);return(0,j.jsx)(vy,{...r,...n})},`DropdownMenuPortal`),SC=`DropdownMenuContent`,CC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=_C(SC,n),a=hC(n),o=_.useRef(!1);return(0,j.jsx)(yy,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:V(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),wC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(by,{...i,...r,ref:t})},`DropdownMenuLabel`)),TC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(xy,{...i,...r,ref:t})},`DropdownMenuItem`)),EC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(Sy,{...i,...r,ref:t})},`DropdownMenuCheckboxItem`)),DC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(Cy,{...i,...r,ref:t})},`DropdownMenuRadioGroup`)),OC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(wy,{...i,...r,ref:t})},`DropdownMenuRadioItem`)),kC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(Ty,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),AC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(Ey,{...i,...r,ref:t})},`DropdownMenuSeparator`)),jC=dC(e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=hC(t),[s,c]=kc({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return(0,j.jsx)(Dy,{...o,open:s,onOpenChange:c,children:n})},`DropdownMenuSub`),MC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(Oy,{...i,...r,ref:t})},`DropdownMenuSubTrigger`)),NC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(ky,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuSubContent`)),PC=vC,FC=bC,IC=xC,LC=CC,RC=wC,zC=TC,BC=EC,VC=DC,HC=OC,UC=kC,WC=AC,GC=jC,KC=MC,qC=NC,JC=PC,YC=FC,XC=GC,ZC=VC,QC=`z-[10001] min-w-[8rem] max-h-[var(--radix-dropdown-menu-content-available-height)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-md border bg-popover p-1 text-popover-foreground`,$C=`relative flex select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,ew=`relative flex select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,tw=_.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,j.jsxs)(KC,{ref:i,"data-slot":`dropdown-menu-sub-trigger`,className:Z(`flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent`,t&&`pl-8`,e),...r,children:[n,(0,j.jsx)($f,{className:`ml-auto h-4 w-4`})]}));tw.displayName=KC.displayName;var nw=_.forwardRef(({className:e,container:t,sideOffset:n=2,alignOffset:r=-4,collisionPadding:i=8,onFocusOutside:a,children:o,...s},c)=>{let l=ed(t),u=Tb(c,i),d=xb(u.ref,a),f=bb(d.ref);return(0,j.jsx)(IC,{container:l,children:(0,j.jsx)(qC,{ref:f.ref,onFocusOutside:d.onFocusOutside,"data-slot":`dropdown-menu-sub-content`,sideOffset:n,alignOffset:r,...u.padding===void 0?{}:{collisionPadding:u.padding},className:Z(QC,f.surfaceClassName,`shadow-lg`,Ju,e),...s,children:u.wrap(f.wrap(o))})})});nw.displayName=qC.displayName;var rw=_.forwardRef(({className:e,sideOffset:t=4,container:n,children:r,...i},a)=>{let o=ed(n),s=bb(a);return(0,j.jsx)(IC,{container:o,children:(0,j.jsx)(LC,{ref:s.ref,"data-slot":`dropdown-menu-content`,sideOffset:t,className:Z(QC,s.surfaceClassName,`shadow-md`,Ju,e),...i,children:s.wrap(r)})})});rw.displayName=LC.displayName;var iw=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(zC,{ref:r,"data-slot":`dropdown-menu-item`,className:Z($C,t&&`pl-8`,e),...n}));iw.displayName=zC.displayName;var aw=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(BC,{ref:r,"data-slot":`dropdown-menu-checkbox-item`,className:Z(ew,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(UC,{children:(0,j.jsx)(Zf,{className:`h-4 w-4`})})}),t]}));aw.displayName=BC.displayName;var ow=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(HC,{ref:r,"data-slot":`dropdown-menu-radio-item`,className:Z(ew,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(UC,{children:(0,j.jsx)(Qf,{className:`h-4 w-4 fill-current`})})}),t]}));ow.displayName=HC.displayName;var sw=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(RC,{ref:r,"data-slot":`dropdown-menu-label`,className:Z(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));sw.displayName=RC.displayName;var cw=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(WC,{ref:n,"data-slot":`dropdown-menu-separator`,className:Z(`-mx-1 my-1 h-px bg-muted`,e),...t}));cw.displayName=WC.displayName;var lw=(e=`default`)=>{let t=`flex h-10 w-full ${nS} text-foreground shadow-input rounded-md px-3 py-2 text-sm file:border-0 file:bg-transparent
59
59
  file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground
60
60
  focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-ring
61
61
  disabled:cursor-not-allowed disabled:opacity-50
@@ -63,9 +63,9 @@ Error generating stack: `+e.message+`
63
63
  transition duration-400
64
64
  [&:-webkit-autofill]:bg-card [&:-webkit-autofill]:shadow-[0_0_0_1000px_hsl(var(--card))_inset] [&:-webkit-autofill]:[caret-color:currentColor]
65
65
  dark:[&:-webkit-autofill]:shadow-[0_0_0_1000px_hsl(var(--card))_inset] dark:[&:-webkit-autofill]:[-webkit-text-fill-color:hsl(var(--foreground))]
66
- [&:-webkit-autofill:hover]:shadow-[0_0_0_1000px_hsl(var(--card))_inset] [&:-webkit-autofill:focus]:shadow-[0_0_0_1000px_hsl(var(--card))_inset]`;switch(e){case`destructive`:return`${t} bg-destructive text-destructive-foreground`;case`outline`:return`${t} border-2`;case`secondary`:return`${t} bg-secondary text-secondary-foreground`;case`ghost`:return`${t} bg-transparent shadow-none`;case`link`:return`${t} bg-transparent underline-offset-4 hover:underline`;case`primary`:return`${t} bg-primary text-primary-foreground`;default:return t}},lw=_.forwardRef(({className:e,type:t,variant:n=`default`,...r},i)=>(0,j.jsx)(`input`,{type:t,className:Z(cw(n),e),ref:i,...r}));lw.displayName=`Input`;var uw=_.forwardRef(({onEnter:e,...t},n)=>{let r=t=>{t.key===`Enter`&&e&&(t.preventDefault(),e())};return(0,j.jsx)(lw,{...t,ref:n,onKeyDown:e=>{r(e),t.onKeyDown&&t.onKeyDown(e)}})});uw.displayName=`EnterInput`;var dw=_.forwardRef(({className:e,type:t,variant:n=`default`,...r},i)=>(0,j.jsx)(`input`,{type:t,className:Z(`flex h-9 w-full rounded-md ${tS} px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,e),ref:i,...r}));dw.displayName=`BasicInput`;var fw=_.forwardRef(({prefix:e,className:t,wrapperClassName:n,...r},i)=>(0,j.jsxs)(`div`,{className:Z(`relative`,n),children:[e&&(0,j.jsx)(`div`,{className:`absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground`,children:e}),(0,j.jsx)(lw,{ref:i,className:Z(e&&`pl-10`,t),...r})]}));fw.displayName=`InputWithPrefix`;var pw=/(?:^|\s)(h-full|h-dvh|flex-1|grow)(?:\s|$)/,mw=/(?:^|\s)(w-full|w-screen)(?:\s|$)/;function hw(e){if(!e)return;let t=[];return pw.test(e)&&t.push(`h-full min-h-0`),mw.test(e)&&t.push(`w-full`),t.length?t.join(` `):void 0}var gw=`flex h-auto w-full rounded-md ${tS} px-3 py-2 text-sm text-foreground shadow-textarea transition duration-400 placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,_w=`flex w-full rounded-md ${tS} px-3 py-2 text-sm text-foreground shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`;function vw(e,t,n=!1,r,i){_.useEffect(()=>{if(!n||!e.current)return;let t=e.current;t.style.height=`auto`;let a=t.scrollHeight;r&&(a=Math.max(a,r)),i&&a>=i?(t.style.height=`${i}px`,t.style.overflowY=`auto`):(t.style.height=`${a}px`,t.style.overflowY=`hidden`)},[t,n,r,i,e])}function yw(e){let t=_.useRef(null);return{ref:t,callback:_.useCallback(n=>{t.current=n,typeof e==`function`?e(n):e&&(e.current=n)},[e])}}function bw(e,t){if(e!==void 0||t!==void 0)return{minHeight:e?`${e}px`:void 0,maxHeight:t?`${t}px`:void 0}}var xw=_.forwardRef(({className:e,autoGrow:t,minHeight:n,maxHeight:r,wrapperClassName:i,...a},o)=>{let{ref:s,callback:c}=yw(o),l=hw(e),u=!!(i||l);vw(s,a.value,t,n,r);let d=(0,j.jsx)(`textarea`,{ref:c,"data-slot":`textarea`,className:Z(gw,t&&`resize-none`,l,e),style:bw(n,r),...a});return u?(0,j.jsx)(`div`,{className:Z(l,i),children:d}):d});xw.displayName=`Textarea`;var Sw=_.forwardRef(({className:e,autoGrow:t,minHeight:n,maxHeight:r,...i},a)=>{let{ref:o,callback:s}=yw(a);return vw(o,i.value,t,n,r),(0,j.jsx)(`textarea`,{ref:s,"data-slot":`textarea`,className:Z(_w,`h-auto min-h-[60px]`,t&&`resize-none`,e),style:bw(n,r),...i})});Sw.displayName=`BasicTextarea`;var Cw=_.forwardRef(({prefix:e,className:t,wrapperClassName:n,autoGrow:r,minHeight:i,maxHeight:a,...o},s)=>{let{ref:c,callback:l}=yw(s);return vw(c,o.value,r,i,a),(0,j.jsxs)(`div`,{className:Z(`relative`,hw(t),n),children:[e?(0,j.jsx)(`div`,{className:`pointer-events-none absolute left-3 top-3 z-10 text-muted-foreground`,children:e}):null,(0,j.jsx)(`textarea`,{ref:l,"data-slot":`textarea`,className:Z(_w,`resize-y`,e&&`pl-10`,r&&`resize-none`,t),style:bw(i,a),...o})]})});Cw.displayName=`TextareaWithPrefix`;var ww={"input-streaming":`Preparing`,"input-available":`Running`,"approval-requested":`Needs your approval`,"output-available":`Done`,"output-error":`Failed`,"output-denied":`Declined`};function Tw(e){if(e===void 0)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e,null,2)}catch{return String(e)}}function Ew(e){let{part:t,defaultExpanded:n,body:r}=e,[i,a]=(0,_.useState)(n),{toolLabel:o}=bi(),s=t.progress[t.progress.length-1],c=Tw(t.input),l=Tw(t.output),u=ww[t.state],d=s!==void 0&&s.message!==``&&s.message.trim().toLowerCase()!==u.toLowerCase()?s.message:null,f=c!==``||l!==``||t.errorText!==null||t.progress.length>0;return(0,j.jsxs)(`div`,{className:`mx-chat-tool`,"data-state":t.state,"data-tool":t.toolName,...e.rendererTag===void 0?{}:{"data-mx-chat-tool-renderer":e.rendererTag},children:[(0,j.jsxs)(`button`,{type:`button`,className:`mx-chat-tool__header mx-chat-focusable`,"aria-expanded":i,onClick:()=>a(e=>!e),children:[(0,j.jsx)(`span`,{"data-open":i,className:`mx-chat-chevron-wrap`,children:(0,j.jsx)(Ti,{})}),(0,j.jsx)(`span`,{className:`mx-chat-tool__name`,children:o(t.toolName)}),d===null?null:(0,j.jsx)(`span`,{className:`mx-chat-tool__beat`,children:d}),(0,j.jsx)(`span`,{className:`mx-chat-tool__state`,children:u})]}),i?r===void 0?(0,j.jsxs)(`div`,{className:`mx-chat-tool__body`,children:[c===``?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What it was asked`}),(0,j.jsx)(`pre`,{className:`mx-chat-tool__payload`,children:c})]}),t.progress.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`Progress`}),(0,j.jsx)(`ul`,{className:`mx-chat-tool__progress`,children:t.progress.map((e,t)=>(0,j.jsxs)(`li`,{children:[(0,j.jsx)(`span`,{"data-tool-beat":e.toolName,children:e.toolName}),e.message===``?null:` — ${e.message}`,e.percent===null?null:` (${Math.round(e.percent)}%)`]},`${e.toolName}-${t}`))})]}):null,t.errorText===null?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What went wrong`}),(0,j.jsx)(`p`,{className:`mx-chat-failure__sentence`,children:t.errorText})]}),l===``?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What it returned`}),(0,j.jsx)(`pre`,{className:`mx-chat-tool__payload`,children:l})]}),f?null:(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:t.state===`input-streaming`?`This tool has not said what it is doing yet.`:`This tool ran without reporting any details.`})]}):r:null]})}function Dw(e){return(0,j.jsx)(j.Fragment,{children:e.renderContent({kind:`markdown`,text:e.part.text,streaming:e.streaming,role:e.role,messageId:e.messageId})})}function Ow(e){let{part:t,defaultOpen:n}=e,[r,i]=(0,_.useState)(n),a=t.state===`streaming`;return(0,j.jsxs)(`div`,{className:`mx-chat-reasoning`,"data-streaming":a,children:[(0,j.jsxs)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"aria-expanded":r,onClick:()=>i(e=>!e),children:[(0,j.jsx)(`span`,{"data-open":r,className:`mx-chat-chevron-wrap`,children:(0,j.jsx)(Ti,{})}),a?`Thinking…`:`Thought process`]}),r?(0,j.jsx)(`div`,{className:`mx-chat-reasoning__body`,"data-mx-chat-reasoning":`body`,children:t.text}):null]})}function kw(e){let{part:t}=e;return(0,j.jsxs)(`div`,{className:`mx-chat-notice`,"data-level":t.level,role:`note`,children:[(0,j.jsx)(`span`,{children:t.userMessage}),t.remedy===null?null:(0,j.jsx)(`span`,{className:`mx-chat-notice__remedy`,children:t.remedy})]})}function Aw(e){let{part:t,retryText:n,onRetry:r}=e;return(0,j.jsxs)(f_,{as:`div`,className:`mx-chat-failure`,"data-code":t.code??`unknown`,message:t.userMessage,error:t,operation:`Answer the last message`,unsavedInput:n===``?void 0:{message:n},origin:`chat/ChatFailurePart`,children:[(0,j.jsx)(`p`,{className:`mx-chat-failure__sentence`,children:t.userMessage}),t.remedy===null?null:(0,j.jsx)(`p`,{className:`mx-chat-failure__remedy`,children:t.remedy}),n===``?null:(0,j.jsx)(__,{type:`button`,size:`sm`,variant:`outline`,className:`mx-chat-focusable`,onClick:()=>r(n),children:`Try again`})]})}function jw(e){return(0,j.jsx)(Ew,{part:e.part,defaultExpanded:e.defaultExpanded})}function Mw(e){let{part:t}=e;return(0,j.jsx)(`div`,{"data-mx-chat-block":t.kind,"data-status":t.status,children:e.renderContent({kind:t.kind,text:t.content??``,data:t.data,streaming:t.status===`streaming`,role:e.role,messageId:e.messageId})})}function Nw(e){let t=e.part.name??e.part.fileId;return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`file`,children:`Attached file: ${t}. Previews appear once the attachments capability is turned on for this chat.`})}function Pw(e){let{part:t}=e,n=t.title??t.url??t.sourceId;return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`source`,children:`Source: ${n}`})}function Fw(e){return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`ask-user`,children:e.part.answered?`You already answered: ${e.part.prompt}`:`The assistant is waiting for your answer: ${e.part.prompt}. This chat cannot collect it yet — answer in a chat with the approvals capability turned on, or stop this run.`})}var Iw=(0,_.memo)(function(e){let t=vi(e.messageId),n=yi(),{renderContent:r}=bi(),i=xi(),{thread:a,retry:o}=gi();if(t===void 0)return null;let s=t.status===`streaming`||t.status===`pending`,c=t.role;if(c===`user`)return(0,j.jsxs)(`article`,{className:`mx-chat-turn`,"data-role":`user`,...e.continued?{"data-continued":`true`}:{},"data-message-id":t.id,"aria-label":`Your message`,children:[(0,j.jsx)(`div`,{className:`mx-chat-turn__bubble`,children:r({kind:`markdown`,text:C(t),streaming:!1,role:c,messageId:t.id})}),zw(t,i.renderTurnMeta),n.messageActions?(0,j.jsx)(Af,{message:t}):null]});let l=wi(a.getSnapshot().messages,t.id);return(0,j.jsxs)(`article`,{className:`mx-chat-turn`,"data-role":c,...e.continued?{"data-continued":`true`}:{},"data-status":t.status,"data-message-id":t.id,"aria-label":`Assistant message`,"aria-busy":s||void 0,children:[(0,j.jsxs)(`div`,{className:`mx-chat-turn__body`,children:[t.parts.map((e,a)=>{let c=i.renderPart?.(e,{message:t,index:a,streaming:s});return c===void 0?(0,j.jsx)(`div`,{children:Bw(e,{message:t,streaming:s,renderContent:r,expandTools:n.expandToolCardsByDefault,showReasoning:n.showReasoningByDefault,retryText:l,onRetry:e=>o.request(e)})},Rw(e,a)):(0,j.jsx)(`div`,{children:c},Rw(e,a))}),s&&t.parts.length===0?(0,j.jsx)(`span`,{className:`mx-chat-caret`,"data-mx-chat":`waiting`,"aria-hidden":`true`}):null,Lw(t)?(0,j.jsx)(`p`,{className:`mx-chat-turn__stopped`,role:`note`,children:`Stopped`}):null]}),zw(t,i.renderTurnMeta),n.messageActions?(0,j.jsx)(Af,{message:t}):null]})});function Lw(e){return e.status===`cancelled`&&!e.parts.some(e=>e.type===`error`&&e.errorType===`cancelled`)}function Rw(e,t){return e.type===`tool`?`tool:${e.toolCallId}`:e.type===`render-block`?`block:${e.blockId}`:`${e.type}:${t}`}function zw(e,t){let n=t?.(e);return n===void 0?e.metadata.modelRef===null?null:(0,j.jsx)(`div`,{className:`mx-chat-turn__meta`,children:e.metadata.modelRef}):n}function Bw(e,t){switch(e.type){case`text`:return(0,j.jsx)(Dw,{part:e,renderContent:t.renderContent,streaming:t.streaming,role:t.message.role,messageId:t.message.id});case`reasoning`:return(0,j.jsx)(Ow,{part:e,defaultOpen:t.showReasoning});case`tool`:return(0,j.jsx)(jw,{part:e,defaultExpanded:t.expandTools});case`notice`:return(0,j.jsx)(kw,{part:e});case`error`:return(0,j.jsx)(Aw,{part:e,retryText:t.retryText,onRetry:t.onRetry});case`render-block`:return(0,j.jsx)(Mw,{part:e,renderContent:t.renderContent,messageId:t.message.id,role:t.message.role});case`file`:return(0,j.jsx)(Nw,{part:e});case`source`:return(0,j.jsx)(Pw,{part:e});case`ask-user`:return(0,j.jsx)(Fw,{part:e});default:return e}}var Vw=80,Hw=40;function Uw(e){let t=e.virtualizeAbove??Vw,n=e.pageSize??Hw,r=e.label??`Conversation`,i=_i(),a=yi(),o=xi(),s=i.messages,[c,l]=(0,_.useState)(t),u=(0,_.useMemo)(()=>s.length<=c?s:s.slice(s.length-c),[s,c]),d=s.length-u.length,f=wf(a.autoScroll),{onContentChange:p}=f,m=i.snapshot.revision;(0,_.useEffect)(()=>{p()},[m,p]);let h=Jw(s,i.conversationId);return(0,j.jsxs)(`div`,{className:Ww(`mx-chat__viewport`,e.className),children:[i.ephemeral&&i.ephemeralReason!==null?(0,j.jsx)(`p`,{className:`mx-chat__ephemeral`,role:`note`,children:i.ephemeralReason}):null,(0,j.jsxs)(`div`,{className:`mx-chat__scroll`,ref:f.ref,role:`log`,"aria-live":`polite`,"aria-relevant":`additions`,"aria-label":r,"data-pinned":f.pinned,tabIndex:0,children:[o.transcriptHeader??null,s.length===0?Gw(o.empty):(0,j.jsxs)(`ol`,{className:`mx-chat__messages`,children:[d>0?(0,j.jsx)(`li`,{className:`mx-chat__earlier`,children:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,onClick:()=>l(e=>e+n),children:`Show earlier messages (${d} hidden)`})}):null,u.map((e,t)=>{let n=t>0&&u[t-1]?.role===e.role;return(0,j.jsx)(`li`,{...n?{"data-continued":`true`}:{},children:(0,j.jsx)(Iw,{messageId:e.id,continued:n})},e.id)})]}),o.transcriptFooter??null]}),(0,j.jsx)(`p`,{className:`mx-chat__sr-only`,role:`status`,"aria-live":`polite`,children:h}),f.hasUnseenBelow?(0,j.jsx)(`div`,{className:`mx-chat__jump`,children:(0,j.jsx)(xf,{icon:(0,j.jsx)(Ei,{}),ariaLabel:`Jump to the latest message`,tooltip:!1,onClick:f.jumpToLatest})}):null]})}function Ww(e,t){return t===void 0||t===``?e:`${e} ${t}`}function Gw(e){return typeof e==`function`?e():e===void 0?(0,j.jsx)(Kw,{}):e}function Kw(e){return(0,j.jsxs)(`div`,{className:`mx-chat-empty`,children:[(0,j.jsx)(`span`,{className:`mx-chat-empty__title`,children:e.title??`Start the conversation`}),(0,j.jsx)(`span`,{children:e.body??`Ask a question, describe what you need, or paste something in.`})]})}var qw=/[.!?。!?]["')\]]?\s/g;function Jw(e,t){let[n,r]=(0,_.useState)(``),i=(0,_.useRef)(0),a=e[e.length-1],o=a!==void 0&&a.role===`assistant`,s=o?Tf(C(a)):``,c=o&&a.status!==`streaming`&&a.status!==`pending`,l=a?.id??``,u=(0,_.useRef)(l);u.current!==l&&(u.current=l,i.current=0);let d=(0,_.useRef)(t);if(d.current!==t){let e=d.current!==null;d.current=t,e&&(u.current=l,i.current=s.length,n!==``&&r(``))}return(0,_.useEffect)(()=>{if(!o)return;qw.lastIndex=0;let e=0,t=qw.exec(s);for(;t!==null;)e=t.index+t[0].length,t=qw.exec(s);let n=c?s.length:e;if(n<=i.current)return;let a=s.slice(i.current,n).trim();i.current=n,a!==``&&r(a)},[s,c,o]),n}function Yw(e){return(0,j.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:e})}function Xw(){return Yw((0,j.jsx)(`path`,{d:`M8 13V3.5M3.75 7.75 8 3.5l4.25 4.25`}))}function Zw(){return Yw((0,j.jsx)(`rect`,{x:`4.25`,y:`4.25`,width:`7.5`,height:`7.5`,rx:`1.5`,fill:`currentColor`,stroke:`none`}))}function Qw(){return Yw((0,j.jsx)(`path`,{d:`M10.6 5.1 5.9 9.8a1.7 1.7 0 0 0 2.4 2.4l4.7-4.7a3.2 3.2 0 0 0-4.5-4.5L3.6 7.9a4.7 4.7 0 0 0 6.7 6.7`}))}function $w(){return Yw((0,j.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`}))}function eT(e){return(0,j.jsx)(`ul`,{className:`mx-chat-attachments`,"aria-label":`Attachments on this message`,children:e.attachments.map(t=>(0,j.jsxs)(`li`,{className:`mx-chat-attachment`,"data-status":t.status,children:[(0,j.jsx)(`span`,{className:`mx-chat-attachment__name`,title:t.name,children:t.name}),(0,j.jsx)(`span`,{className:`mx-chat-attachment__meta`,children:t.status===`uploading`?t.progress===null?`Uploading…`:`Uploading ${Math.round(t.progress*100)}%`:t.status===`failed`?`Not attached`:ri(t.sizeBytes)}),t.status===`uploading`?(0,j.jsx)(`span`,{className:`mx-chat-attachment__bar`,role:`progressbar`,"aria-label":`Uploading ${t.name}`,...t.progress===null?{}:{"aria-valuenow":Math.round(t.progress*100),"aria-valuemin":0,"aria-valuemax":100},"data-indeterminate":t.progress===null||void 0,children:(0,j.jsx)(`span`,{className:`mx-chat-attachment__fill`,style:t.progress===null?void 0:{width:`${Math.round(t.progress*100)}%`}})}):null,t.failure===null?null:(0,j.jsx)(`span`,{className:`mx-chat-attachment__failure`,children:t.failure}),t.status===`failed`&&t.retryable?(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-attachment__retry mx-chat-focusable`,onClick:()=>e.onRetry(t.key),children:`Try again`}):null,(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-attachment__remove mx-chat-focusable`,"aria-label":`Remove ${t.name}`,title:`Remove ${t.name}`,onClick:()=>e.onRemove(t.key),children:(0,j.jsx)($w,{})})]},t.key))})}function tT(e){let t=xi(),{quickset:n}=bi(),{thread:r}=gi(),i=r.getSnapshot(),a=n===null||e.busy||e.drafting?[]:n.chips({conversationId:i.conversationId,busy:e.busy,empty:i.messages.length===0}),o=t.composerControls;return o===void 0&&a.length===0?null:(0,j.jsxs)(`div`,{className:`mx-chat-run-controls`,children:[o,a.length===0?null:(0,j.jsx)(`div`,{className:`mx-chat-quickset`,role:`group`,"aria-label":`Things you could ask`,children:a.map(t=>(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quickset__chip mx-chat-focusable`,"data-quickset":t.id,onClick:()=>e.onFill(t.text),children:t.label},t.id))})]})}var nT=(0,_.createContext)(null);function rT(){let e=(0,_.useContext)(nT),t=bi();return(0,_.useMemo)(()=>e??{files:t.files,voice:t.voice},[e,t.files,t.voice])}function iT(e,t){if(e.isComposing)return`pass`;if(e.key===`Escape`)return e.isBusy?`stop`:`pass`;if(e.key!==`Enter`)return`pass`;let n=e.metaKey||e.ctrlKey;return(t===`enter`?!e.shiftKey&&!n:n)?`send`:`newline`}function aT(e,t,n){if(!Number.isFinite(t)||t<=0)return e;let r=Number.isFinite(n)&&n>0?n:0;return Math.max(1,Math.round((e-r)/t))*t+r}function oT(e){let t=(0,_.useRef)(null),n=(0,_.useCallback)(()=>{let n=t.current;if(n===null)return;let r=n.offsetHeight,i=n.scrollTop,a=getComputedStyle(n),o=Number.parseFloat(a.lineHeight),s=Number.parseFloat(a.paddingTop||`0`)+Number.parseFloat(a.paddingBottom||`0`)+Number.parseFloat(a.borderTopWidth||`0`)+Number.parseFloat(a.borderBottomWidth||`0`);n.style.transitionProperty=`none`,n.style.height=`0px`;let c=n.scrollHeight;n.style.height=`${r}px`,n.offsetHeight,n.style.transitionProperty=``,n.scrollTop=i;let l=aT(c,o,s),u=Math.max(e.minHeightPx,Math.min(l,e.maxHeightPx));u!==r&&(n.style.height=`${u}px`)},[e.maxHeightPx,e.minHeightPx]);(0,_.useLayoutEffect)(()=>{n()},[n,e.value]);let r=(0,_.useCallback)(n=>{t.current=n;let r=e.inputRef;typeof r==`function`?r(n):r!=null&&(r.current=n)},[e.inputRef]),i={maxHeight:e.maxHeightPx};return(0,j.jsx)(`textarea`,{ref:r,className:`mx-chat-composer__field`,value:e.value,rows:1,style:i,placeholder:e.placeholder,"aria-label":e.label,...e.describedBy===void 0?{}:{"aria-describedby":e.describedBy},disabled:e.disabled,autoFocus:e.autoFocus===!0,onChange:t=>e.onValueChange(t.target.value),onKeyDown:e.onKeyDown,...e.onPaste===void 0?{}:{onPaste:e.onPaste}})}function sT(e){let{files:t,maxBytes:n,notifier:r}=e,[i,a]=(0,_.useState)([]),o=(0,_.useRef)(new Map),s=(0,_.useRef)(new Map),c=(0,_.useRef)(!0);(0,_.useEffect)(()=>(c.current=!0,()=>{c.current=!1;for(let e of o.current.values())e.controller.abort();o.current.clear()}),[]);let l=(0,_.useCallback)((e,t)=>{c.current&&a(n=>n.map(n=>n.key===e?{...n,...t}:n))},[]),u=(0,_.useCallback)((e,n)=>{let r=new AbortController;o.current.set(e,{file:n,controller:r}),s.current.set(e,n),l(e,{status:`uploading`,progress:null,failure:null}),t.upload(n,{signal:r.signal,onProgress:t=>{r.signal.aborted||l(e,{progress:Math.max(0,Math.min(1,t))})}}).then(t=>{o.current.delete(e),!r.signal.aborted&&l(e,{status:`ready`,progress:1,fileId:t.fileId,previewUrl:t.previewUrl??null,mediaType:t.mediaType,failure:null})}).catch(t=>{o.current.delete(e),!r.signal.aborted&&l(e,{status:`failed`,progress:null,failure:t instanceof Error&&t.message!==``?t.message:`This file could not be uploaded.`,retryable:!0})})},[t,l]),d=(0,_.useCallback)(e=>{if(e.length===0)return;let t=[],i=[];for(let a of e){let e=x(`att`);if(a.size>n){let i=di(a.name,n);t.push({key:e,name:a.name,sizeBytes:a.size,mediaType:a.type===``?null:a.type,status:`failed`,progress:null,fileId:null,previewUrl:null,failure:i,retryable:!1}),r.notify({level:`warning`,message:i,remedy:`Attach a smaller file, or ask an administrator to raise the limit for this workspace.`});continue}t.push({key:e,name:a.name,sizeBytes:a.size,mediaType:a.type===``?null:a.type,status:`uploading`,progress:null,fileId:null,previewUrl:null,failure:null,retryable:!0}),i.push({key:e,file:a})}a(e=>[...e,...t]);for(let e of i)u(e.key,e.file)},[n,r,u]),f=(0,_.useCallback)(e=>{let t=o.current.get(e);t!==void 0&&(t.controller.abort(),o.current.delete(e)),s.current.delete(e),a(t=>t.filter(t=>t.key!==e))},[]),p=(0,_.useCallback)(e=>{let t=s.current.get(e);t!==void 0&&u(e,t)},[u]),m=(0,_.useCallback)(()=>{for(let e of o.current.values())e.controller.abort();o.current.clear(),s.current.clear(),a([])},[]);return{attachments:i,readyFileIds:i.filter(e=>e.status===`ready`&&e.fileId!==null).map(e=>e.fileId),uploading:i.some(e=>e.status===`uploading`),add:d,remove:f,retry:p,clear:m}}var cT=24,lT=208;function uT(e){let t=e.dataTransfer?.types;return t!==void 0&&Array.from(t).includes(`Files`)}function dT(e){let t=Ci(),n=yi(),{notifier:r}=bi(),i=xi(),{files:a,voice:o}=rT(),{thread:s}=gi(),c=(0,_.useRef)(null),l=(0,_.useId)(),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(!1),g=(0,_.useRef)(0),v=(0,_.useRef)(async()=>void 0),y=sT({files:a,maxBytes:n.attachmentMaxBytes,notifier:r}),b=(0,_.useRef)(null);(0,_.useEffect)(()=>{let n=e.draftSeed;n!=null&&n!==``&&b.current!==n&&(b.current=n,t.text.trim()===``&&t.setText(n))},[e.draftSeed]);let x=(0,_.useCallback)(e=>{if(e.length!==0){if(!a.available){a.upload(e[0],{signal:new AbortController().signal,onProgress:()=>void 0}).catch(()=>void 0),h(!0);return}y.add(e)}},[y,a]),S=(0,_.useCallback)(e=>{let t=e.clipboardData?.files;t!==void 0&&t.length!==0&&(e.preventDefault(),x(Array.from(t)))},[x]),w=(0,_.useCallback)(e=>{uT(e)&&(e.preventDefault(),g.current=0,p(!1),x(Array.from(e.dataTransfer.files)))},[x]),T=(0,_.useCallback)(e=>{let r=e.nativeEvent.isComposing;if(!r&&e.key===`ArrowUp`&&t.text===``&&!e.shiftKey&&!e.metaKey&&!e.ctrlKey){let n=s.getSnapshot().messages;for(let r=n.length-1;r>=0;--r){let i=n[r];if(i===void 0||i.role!==`user`)continue;let a=C(i);if(a===``)break;e.preventDefault(),t.setText(a);return}return}let i=iT({key:e.key,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,isComposing:r,isBusy:t.isBusy},n.sendKey);if(i===`send`){e.preventDefault(),v.current();return}i===`stop`&&(e.preventDefault(),t.stop())},[t,n.sendKey,s]),E=e.held??null,D=E===null?u?`Finish recording to send your message.`:y.uploading?`Your files are still uploading.`:null:E.reason,O=t.canSend&&D===null,k=(0,_.useCallback)(async()=>{if(!O)return;let e=t.text.trim(),n=y.readyFileIds;n.length===0?await t.send():(t.setText(``),(await s.send({text:e,fileIds:n})).accepted?y.clear():t.setText(e)),c.current?.focus()},[y,O,t,s]);v.current=k;let A=(0,_.useCallback)(e=>{e.preventDefault(),k()},[k]),M=t.isBusy?`Stop the answer`:D===null?`Send message`:D,N=t.isBusy&&n.sendWhileBusy&&t.text.trim()!==``,P=D===null?`Queue message — it sends when this answer finishes`:D,F={value:t.text,onValueChange:t.setText,busy:t.isBusy,onBusyChange:d,className:`mx-chat-composer__icon-button mx-chat-focusable`};return(0,j.jsxs)(`form`,{className:`mx-chat-composer${e.className===void 0?``:` ${e.className}`}`,"data-dragging":f||void 0,"data-busy":t.isBusy||void 0,onSubmit:A,onDragEnter:e=>{uT(e)&&(g.current+=1,p(!0))},onDragOver:e=>{uT(e)&&e.preventDefault()},onDragLeave:e=>{uT(e)&&(g.current=Math.max(0,g.current-1),g.current===0&&p(!1))},onDrop:w,children:[i.composerAbove,(0,j.jsx)(tT,{onFill:t.setText,busy:t.isBusy,drafting:t.text.trim()!==``}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__shell`,children:[y.attachments.length>0?(0,j.jsx)(eT,{attachments:y.attachments,onRemove:y.remove,onRetry:y.retry}):null,(0,j.jsx)(oT,{value:t.text,onValueChange:t.setText,onKeyDown:T,onPaste:S,placeholder:e.placeholder??`Send a message`,minHeightPx:cT,maxHeightPx:lT,disabled:E!==null,label:`Message`,describedBy:l,inputRef:c,...e.autoFocus===void 0?{}:{autoFocus:e.autoFocus}}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__row`,children:[(0,j.jsxs)(`div`,{className:`mx-chat-composer__left`,children:[a.available?(0,j.jsxs)(`label`,{className:`mx-chat-composer__icon-button mx-chat-focusable`,children:[(0,j.jsx)(Qw,{}),(0,j.jsx)(`span`,{className:`mx-chat__sr-only`,children:`Attach files`}),(0,j.jsx)(`input`,{type:`file`,multiple:!0,"aria-label":`Attach files`,...a.accept===void 0?{}:{accept:a.accept},onChange:e=>{let t=e.target.files;t!==null&&x(Array.from(t)),e.target.value=``}})]}):null,o===null?null:o.renderButton(F),i.composerPickers,i.composerToolbar]}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__right`,children:[i.composerRunControls,N?(0,j.jsx)(`button`,{type:`submit`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`queue`,"aria-label":P,title:P,disabled:!O,children:(0,j.jsx)(Xw,{})}):null,t.isBusy?(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`stop`,"aria-label":M,title:M,onClick:()=>void t.stop(),children:(0,j.jsx)(Zw,{})}):(0,j.jsx)(`button`,{type:`submit`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`send`,"aria-label":M,title:M,disabled:!O,children:(0,j.jsx)(Xw,{})})]})]})]}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__notice`,id:l,role:`status`,"aria-live":`polite`,children:[E===null?m?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:`${ci} ${li}`}):D!==null&&t.text.trim()!==``?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:D}):t.restoredFromFailure?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:`Your message is back in the box. Send it again when you are ready.`}):null:(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:E.reason}),o?.renderRecovery?.(F)??null]}),i.composerBelow,f?(0,j.jsx)(`div`,{className:`mx-chat-composer__drop`,"aria-live":`polite`,children:a.available?`Drop files to attach them to your message`:ci}):null]})}function fT(e){let t=T(e.features),n=new Set,r=new Map,i=0,a=new Map,o=c(e.getSnapshot());a=s(o.messages);function s(e){let t=new Map;for(let n of e)t.set(n.id,n);return t}function c(e){let t=e.ephemeral===!0;return{conversationId:e.conversationId,messages:e.messages,status:e.status,requestId:e.requestId??null,phase:e.phase??null,ephemeral:t,ephemeralReason:t?e.ephemeralReason??`This conversation is not being saved by the application hosting it.`:null,revision:i,error:e.error??null}}let l=e.subscribe(()=>{i+=1,o=c(e.getSnapshot());let t=s(o.messages);for(let[e,n]of r)if(a.get(e)!==t.get(e))for(let e of n)e();a=t;for(let e of n)e()});return{getSnapshot:()=>o,subscribe(e){return n.add(e),()=>{n.delete(e)}},subscribeToMessage(e,t){let n=r.get(e)??new Set;return n.add(t),r.set(e,n),()=>{n.delete(t),n.size===0&&r.delete(e)}},getMessageSnapshot:e=>o.messages.find(t=>t.id===e),features:t,async send(t){return await e.onSubmit(t),{accepted:!0,refusal:null}},async cancel(){await e.onCancel?.()},setMessages(t){if(!e.onSetMessages)throw Error(`This chat thread's state is owned by the host application, which did not provide onSetMessages. Replace the transcript through the host's own store, or provide onSetMessages.`);e.onSetMessages(t)},async loadConversation(t){if(!e.onLoadConversation)throw Error(`This chat thread's state is owned by the host application, which did not provide onLoadConversation. Open the conversation through the host's own routing, or provide onLoadConversation.`);await e.onLoadConversation(t)},canStartNewConversation:e.onStartNewConversation!==void 0,settleToolCall(t){return e.onSettleToolCall?e.onSettleToolCall(t):{messages:o.messages,messageId:null,applied:!1,refusal:`This chat thread's state is owned by the host application, which did not provide onSettleToolCall. Mark the tool call done in the host's own store when it answers, or provide onSettleToolCall.`}},async startNewConversation(){if(!e.onStartNewConversation)throw Error(`This chat thread's state is owned by the host application, which did not provide onStartNewConversation. Start a new conversation through the host's own store, or provide onStartNewConversation.`);await e.onStartNewConversation()},dispose(){l?.(),l=null,n.clear(),r.clear()}}}var pT={claude:`Claude Code`,codex:`Codex`};function mT(e,t,n){return t?`${e}:${t}`:`session:${n??``}`}var hT=[`completed`,`stopped`,`failed`];function gT(e){return hT.includes(e)}function _T(e){if(!e)return null;let t=Date.parse(e);return Number.isNaN(t)?e:new Date(t).toLocaleString(void 0,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`})}var vT=[/model is not supported when using codex/i,/\bmodel[\s:'"`][^.\n]{0,80}\b(?:not supported|does not exist|not available|not found)\b/i,/\bmodel_not_found\b/i,/issue with the selected model/i,/may not exist or you may not have access to it/i],yT=`Model not available on this account`;function bT(e){let t=(e??``).trim();return t!==``&&vT.some(e=>e.test(t))}function xT(e){return bT(e)?yT:e}var ST={Bash:`Run command`,Shell:`Run command`,BashOutput:`Read command output`,KillShell:`Stop command`,Read:`Read file`,Write:`Write file`,Edit:`Edit file`,MultiEdit:`Edit file`,NotebookEdit:`Edit notebook`,Glob:`Find files`,Grep:`Search code`,LS:`List folder`,WebFetch:`Fetch page`,WebSearch:`Web search`,"Web search":`Web search`,Task:`Sub-agent`,Agent:`Sub-agent`,TodoWrite:`Update plan`,Plan:`Update plan`,"Edit files":`Edit files`,ExitPlanMode:`Finish planning`,Skill:`Use skill`,ToolSearch:`Load tools`};function CT(e){let t=e.replace(/[._-]+/g,` `).replace(/([a-z\d])([A-Z])/g,`$1 $2`).replace(/\s+/g,` `).trim().toLowerCase();return t?t.charAt(0).toUpperCase()+t.slice(1):``}function wT(e){let t=/^mcp__(.+?)__(.+)$/.exec(e);return t?.[1]&&t[2]?{server:t[1],tool:t[2]}:null}function TT(e){let t=ST[e];if(t)return t;let n=wT(e);if(n)return`${CT(n.tool)||`Tool`} · ${CT(n.server)}`;let r=/^([\w-]+)\.([\w-]+)$/.exec(e);return r?.[1]&&r[2]?`${CT(r[2])} · ${CT(r[1])}`:CT(e)||`Working…`}function ET(e){let t=e.match(/^\/(?:Users|home)\/[^/]+/)?.[0];return t?`~${e.slice(t.length)}`:e}function DT(e,t=90){let n=e.replace(/\s+/g,` `).trim();return n.length>t?`${n.slice(0,t-1)}…`:n}function OT(e,t){if(typeof t!=`object`||!t)return typeof t==`string`&&t?DT(t):null;let n=t,r=(...e)=>{for(let t of e){let e=n[t];if(typeof e==`string`&&e.trim())return e}return null};switch(e){case`Bash`:case`Shell`:{let e=r(`command`,`description`);return e?DT(e):null}case`Read`:case`Write`:case`Edit`:case`MultiEdit`:case`NotebookEdit`:{let e=r(`file_path`,`notebook_path`,`path`);return e?DT(ET(e)):null}case`Glob`:case`Grep`:return r(`pattern`)?DT(r(`pattern`)):null;case`WebFetch`:return r(`url`)?DT(r(`url`)):null;case`WebSearch`:case`Web search`:return r(`query`)?DT(r(`query`)):null;case`Task`:case`Agent`:return r(`description`,`prompt`)?DT(r(`description`,`prompt`)):null;case`Edit files`:{let e=n.changes,t=Array.isArray(e)?e.map(e=>typeof e==`object`&&e?e.path:null).filter(e=>typeof e==`string`):typeof e==`object`&&e?Object.keys(e):[];return t.length?DT(t.map(ET).join(`, `)):null}default:{let e=r(`url`,`query`,`command`,`path`,`file_path`,`name`,`description`);return e?DT(e):null}}}function kT(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function AT(e){return typeof e==`string`?e:null}function jT(e){let t=kT(e)?AT(e.type):AT(e);return t===`add`||t===`create`?`created`:t===`delete`?`deleted`:t===`move`||t===`rename`?`moved`:`edited`}function MT(e){let t=new Map,n=(e,n,r)=>{let i=t.get(e);i?(i.edits.push(r),n===`deleted`&&(i.kind=`deleted`)):t.set(e,{path:e,kind:n,edits:[r]})};for(let t of e)for(let e of t.parts){if(e.type!==`tool`)continue;let t=e.input;if(!kT(t))continue;let r=e.state===`output-error`||!!e.errorText,i={toolCallId:e.toolCallId,failed:r};switch(e.toolName){case`Write`:{let e=AT(t.file_path);e&&n(e,`created`,{...i,removed:null,added:AT(t.content),diff:null});break}case`Edit`:{let e=AT(t.file_path);e&&n(e,`edited`,{...i,removed:AT(t.old_string),added:AT(t.new_string),diff:null});break}case`MultiEdit`:{let e=AT(t.file_path),r=Array.isArray(t.edits)?t.edits:[];if(e)for(let t of r.filter(kT))n(e,`edited`,{...i,removed:AT(t.old_string),added:AT(t.new_string),diff:null});break}case`NotebookEdit`:{let e=AT(t.notebook_path);e&&n(e,`edited`,{...i,removed:null,added:AT(t.new_source),diff:null});break}case`Edit files`:{let e=t.changes;if(Array.isArray(e))for(let t of e.filter(kT)){let e=AT(t.path);e&&n(e,jT(t.kind),{...i,removed:null,added:null,diff:null})}else if(kT(e))for(let[t,r]of Object.entries(e)){let e=kT(r)?AT(r.unified_diff):null;n(t,jT(r),{...i,removed:null,added:null,diff:e})}break}}}return[...t.values()]}function NT(e){let t=0,n=0,r=e=>e?e.split(`
66
+ [&:-webkit-autofill:hover]:shadow-[0_0_0_1000px_hsl(var(--card))_inset] [&:-webkit-autofill:focus]:shadow-[0_0_0_1000px_hsl(var(--card))_inset]`;switch(e){case`destructive`:return`${t} bg-destructive text-destructive-foreground`;case`outline`:return`${t} border-2`;case`secondary`:return`${t} bg-secondary text-secondary-foreground`;case`ghost`:return`${t} bg-transparent shadow-none`;case`link`:return`${t} bg-transparent underline-offset-4 hover:underline`;case`primary`:return`${t} bg-primary text-primary-foreground`;default:return t}},uw=_.forwardRef(({className:e,type:t,variant:n=`default`,...r},i)=>(0,j.jsx)(`input`,{type:t,className:Z(lw(n),e),ref:i,...r}));uw.displayName=`Input`;var dw=_.forwardRef(({onEnter:e,...t},n)=>{let r=t=>{t.key===`Enter`&&e&&(t.preventDefault(),e())};return(0,j.jsx)(uw,{...t,ref:n,onKeyDown:e=>{r(e),t.onKeyDown&&t.onKeyDown(e)}})});dw.displayName=`EnterInput`;var fw=_.forwardRef(({className:e,type:t,variant:n=`default`,...r},i)=>(0,j.jsx)(`input`,{type:t,className:Z(`flex h-9 w-full rounded-md ${nS} px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,e),ref:i,...r}));fw.displayName=`BasicInput`;var pw=_.forwardRef(({prefix:e,className:t,wrapperClassName:n,...r},i)=>(0,j.jsxs)(`div`,{className:Z(`relative`,n),children:[e&&(0,j.jsx)(`div`,{className:`absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground`,children:e}),(0,j.jsx)(uw,{ref:i,className:Z(e&&`pl-10`,t),...r})]}));pw.displayName=`InputWithPrefix`;var mw=/(?:^|\s)(h-full|h-dvh|flex-1|grow)(?:\s|$)/,hw=/(?:^|\s)(w-full|w-screen)(?:\s|$)/;function gw(e){if(!e)return;let t=[];return mw.test(e)&&t.push(`h-full min-h-0`),hw.test(e)&&t.push(`w-full`),t.length?t.join(` `):void 0}var _w=`flex h-auto w-full rounded-md ${nS} px-3 py-2 text-sm text-foreground shadow-textarea transition duration-400 placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,vw=`flex w-full rounded-md ${nS} px-3 py-2 text-sm text-foreground shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`;function yw(e,t,n=!1,r,i){_.useEffect(()=>{if(!n||!e.current)return;let t=e.current;t.style.height=`auto`;let a=t.scrollHeight;r&&(a=Math.max(a,r)),i&&a>=i?(t.style.height=`${i}px`,t.style.overflowY=`auto`):(t.style.height=`${a}px`,t.style.overflowY=`hidden`)},[t,n,r,i,e])}function bw(e){let t=_.useRef(null);return{ref:t,callback:_.useCallback(n=>{t.current=n,typeof e==`function`?e(n):e&&(e.current=n)},[e])}}function xw(e,t){if(e!==void 0||t!==void 0)return{minHeight:e?`${e}px`:void 0,maxHeight:t?`${t}px`:void 0}}var Sw=_.forwardRef(({className:e,autoGrow:t,minHeight:n,maxHeight:r,wrapperClassName:i,...a},o)=>{let{ref:s,callback:c}=bw(o),l=gw(e),u=!!(i||l);yw(s,a.value,t,n,r);let d=(0,j.jsx)(`textarea`,{ref:c,"data-slot":`textarea`,className:Z(_w,t&&`resize-none`,l,e),style:xw(n,r),...a});return u?(0,j.jsx)(`div`,{className:Z(l,i),children:d}):d});Sw.displayName=`Textarea`;var Cw=_.forwardRef(({className:e,autoGrow:t,minHeight:n,maxHeight:r,...i},a)=>{let{ref:o,callback:s}=bw(a);return yw(o,i.value,t,n,r),(0,j.jsx)(`textarea`,{ref:s,"data-slot":`textarea`,className:Z(vw,`h-auto min-h-[60px]`,t&&`resize-none`,e),style:xw(n,r),...i})});Cw.displayName=`BasicTextarea`;var ww=_.forwardRef(({prefix:e,className:t,wrapperClassName:n,autoGrow:r,minHeight:i,maxHeight:a,...o},s)=>{let{ref:c,callback:l}=bw(s);return yw(c,o.value,r,i,a),(0,j.jsxs)(`div`,{className:Z(`relative`,gw(t),n),children:[e?(0,j.jsx)(`div`,{className:`pointer-events-none absolute left-3 top-3 z-10 text-muted-foreground`,children:e}):null,(0,j.jsx)(`textarea`,{ref:l,"data-slot":`textarea`,className:Z(vw,`resize-y`,e&&`pl-10`,r&&`resize-none`,t),style:xw(i,a),...o})]})});ww.displayName=`TextareaWithPrefix`;var Tw={"input-streaming":`Preparing`,"input-available":`Running`,"approval-requested":`Needs your approval`,"output-available":`Done`,"output-error":`Failed`,"output-denied":`Declined`};function Ew(e){if(e===void 0)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e,null,2)}catch{return String(e)}}function Dw(e){let{part:t,defaultExpanded:n,body:r}=e,[i,a]=(0,_.useState)(n),{toolLabel:o}=bi(),s=t.progress[t.progress.length-1],c=Ew(t.input),l=Ew(t.output),u=Tw[t.state],d=s!==void 0&&s.message!==``&&s.message.trim().toLowerCase()!==u.toLowerCase()?s.message:null,f=c!==``||l!==``||t.errorText!==null||t.progress.length>0;return(0,j.jsxs)(`div`,{className:`mx-chat-tool`,"data-state":t.state,"data-tool":t.toolName,...e.rendererTag===void 0?{}:{"data-mx-chat-tool-renderer":e.rendererTag},children:[(0,j.jsxs)(`button`,{type:`button`,className:`mx-chat-tool__header mx-chat-focusable`,"aria-expanded":i,onClick:()=>a(e=>!e),children:[(0,j.jsx)(`span`,{"data-open":i,className:`mx-chat-chevron-wrap`,children:(0,j.jsx)(Ti,{})}),(0,j.jsx)(`span`,{className:`mx-chat-tool__name`,children:o(t.toolName)}),d===null?null:(0,j.jsx)(`span`,{className:`mx-chat-tool__beat`,children:d}),(0,j.jsx)(`span`,{className:`mx-chat-tool__state`,children:u})]}),i?r===void 0?(0,j.jsxs)(`div`,{className:`mx-chat-tool__body`,children:[c===``?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What it was asked`}),(0,j.jsx)(`pre`,{className:`mx-chat-tool__payload`,children:c})]}),t.progress.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`Progress`}),(0,j.jsx)(`ul`,{className:`mx-chat-tool__progress`,children:t.progress.map((e,t)=>(0,j.jsxs)(`li`,{children:[(0,j.jsx)(`span`,{"data-tool-beat":e.toolName,children:e.toolName}),e.message===``?null:` — ${e.message}`,e.percent===null?null:` (${Math.round(e.percent)}%)`]},`${e.toolName}-${t}`))})]}):null,t.errorText===null?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What went wrong`}),(0,j.jsx)(`p`,{className:`mx-chat-failure__sentence`,children:t.errorText})]}),l===``?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What it returned`}),(0,j.jsx)(`pre`,{className:`mx-chat-tool__payload`,children:l})]}),f?null:(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:t.state===`input-streaming`?`This tool has not said what it is doing yet.`:`This tool ran without reporting any details.`})]}):r:null]})}function Ow(e){return(0,j.jsx)(j.Fragment,{children:e.renderContent({kind:`markdown`,text:e.part.text,streaming:e.streaming,role:e.role,messageId:e.messageId})})}function kw(e){let{part:t,defaultOpen:n}=e,[r,i]=(0,_.useState)(n),a=t.state===`streaming`;return(0,j.jsxs)(`div`,{className:`mx-chat-reasoning`,"data-streaming":a,children:[(0,j.jsxs)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"aria-expanded":r,onClick:()=>i(e=>!e),children:[(0,j.jsx)(`span`,{"data-open":r,className:`mx-chat-chevron-wrap`,children:(0,j.jsx)(Ti,{})}),a?`Thinking…`:`Thought process`]}),r?(0,j.jsx)(`div`,{className:`mx-chat-reasoning__body`,"data-mx-chat-reasoning":`body`,children:t.text}):null]})}function Aw(e){let{part:t}=e;return(0,j.jsxs)(`div`,{className:`mx-chat-notice`,"data-level":t.level,role:`note`,children:[(0,j.jsx)(`span`,{children:t.userMessage}),t.remedy===null?null:(0,j.jsx)(`span`,{className:`mx-chat-notice__remedy`,children:t.remedy})]})}function jw(e){let{part:t,retryText:n,onRetry:r}=e;return(0,j.jsxs)(p_,{as:`div`,className:`mx-chat-failure`,"data-code":t.code??`unknown`,message:t.userMessage,error:t,operation:`Answer the last message`,unsavedInput:n===``?void 0:{message:n},origin:`chat/ChatFailurePart`,children:[(0,j.jsx)(`p`,{className:`mx-chat-failure__sentence`,children:t.userMessage}),t.remedy===null?null:(0,j.jsx)(`p`,{className:`mx-chat-failure__remedy`,children:t.remedy}),n===``?null:(0,j.jsx)(v_,{type:`button`,size:`sm`,variant:`outline`,className:`mx-chat-focusable`,onClick:()=>r(n),children:`Try again`})]})}function Mw(e){return(0,j.jsx)(Dw,{part:e.part,defaultExpanded:e.defaultExpanded})}function Nw(e){let{part:t}=e;return(0,j.jsx)(`div`,{"data-mx-chat-block":t.kind,"data-status":t.status,children:e.renderContent({kind:t.kind,text:t.content??``,data:t.data,streaming:t.status===`streaming`,role:e.role,messageId:e.messageId})})}function Pw(e){let t=e.part.name??e.part.fileId;return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`file`,children:`Attached file: ${t}. Previews appear once the attachments capability is turned on for this chat.`})}function Fw(e){let{part:t}=e,n=t.title??t.url??t.sourceId;return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`source`,children:`Source: ${n}`})}function Iw(e){return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`ask-user`,children:e.part.answered?`You already answered: ${e.part.prompt}`:`The assistant is waiting for your answer: ${e.part.prompt}. This chat cannot collect it yet — answer in a chat with the approvals capability turned on, or stop this run.`})}var Lw=(0,_.memo)(function(e){let t=vi(e.messageId),n=yi(),{renderContent:r}=bi(),i=xi(),{thread:a,retry:o}=gi();if(t===void 0)return null;let s=t.status===`streaming`||t.status===`pending`,c=t.role;if(c===`user`)return(0,j.jsxs)(`article`,{className:`mx-chat-turn`,"data-role":`user`,...e.continued?{"data-continued":`true`}:{},"data-message-id":t.id,"aria-label":`Your message`,children:[(0,j.jsx)(`div`,{className:`mx-chat-turn__bubble`,children:r({kind:`markdown`,text:C(t),streaming:!1,role:c,messageId:t.id})}),Bw(t,i.renderTurnMeta),n.messageActions?(0,j.jsx)(jf,{message:t}):null]});let l=wi(a.getSnapshot().messages,t.id);return(0,j.jsxs)(`article`,{className:`mx-chat-turn`,"data-role":c,...e.continued?{"data-continued":`true`}:{},"data-status":t.status,"data-message-id":t.id,"aria-label":`Assistant message`,"aria-busy":s||void 0,children:[(0,j.jsxs)(`div`,{className:`mx-chat-turn__body`,children:[t.parts.map((e,a)=>{let c=i.renderPart?.(e,{message:t,index:a,streaming:s});return c===void 0?(0,j.jsx)(`div`,{children:Vw(e,{message:t,streaming:s,renderContent:r,expandTools:n.expandToolCardsByDefault,showReasoning:n.showReasoningByDefault,retryText:l,onRetry:e=>o.request(e)})},zw(e,a)):(0,j.jsx)(`div`,{children:c},zw(e,a))}),s&&t.parts.length===0?(0,j.jsx)(`span`,{className:`mx-chat-caret`,"data-mx-chat":`waiting`,"aria-hidden":`true`}):null,Rw(t)?(0,j.jsx)(`p`,{className:`mx-chat-turn__stopped`,role:`note`,children:`Stopped`}):null]}),Bw(t,i.renderTurnMeta),n.messageActions?(0,j.jsx)(jf,{message:t}):null]})});function Rw(e){return e.status===`cancelled`&&!e.parts.some(e=>e.type===`error`&&e.errorType===`cancelled`)}function zw(e,t){return e.type===`tool`?`tool:${e.toolCallId}`:e.type===`render-block`?`block:${e.blockId}`:`${e.type}:${t}`}function Bw(e,t){let n=t?.(e);return n===void 0?e.metadata.modelRef===null?null:(0,j.jsx)(`div`,{className:`mx-chat-turn__meta`,children:e.metadata.modelRef}):n}function Vw(e,t){switch(e.type){case`text`:return(0,j.jsx)(Ow,{part:e,renderContent:t.renderContent,streaming:t.streaming,role:t.message.role,messageId:t.message.id});case`reasoning`:return(0,j.jsx)(kw,{part:e,defaultOpen:t.showReasoning});case`tool`:return(0,j.jsx)(Mw,{part:e,defaultExpanded:t.expandTools});case`notice`:return(0,j.jsx)(Aw,{part:e});case`error`:return(0,j.jsx)(jw,{part:e,retryText:t.retryText,onRetry:t.onRetry});case`render-block`:return(0,j.jsx)(Nw,{part:e,renderContent:t.renderContent,messageId:t.message.id,role:t.message.role});case`file`:return(0,j.jsx)(Pw,{part:e});case`source`:return(0,j.jsx)(Fw,{part:e});case`ask-user`:return(0,j.jsx)(Iw,{part:e});default:return e}}var Hw=80,Uw=40;function Ww(e){let t=e.virtualizeAbove??Hw,n=e.pageSize??Uw,r=e.label??`Conversation`,i=_i(),a=yi(),o=xi(),s=i.messages,[c,l]=(0,_.useState)(t),u=(0,_.useMemo)(()=>s.length<=c?s:s.slice(s.length-c),[s,c]),d=s.length-u.length,f=Tf(a.autoScroll),{onContentChange:p}=f,m=i.snapshot.revision;(0,_.useEffect)(()=>{p()},[m,p]);let h=Yw(s,i.conversationId);return(0,j.jsxs)(`div`,{className:Gw(`mx-chat__viewport`,e.className),children:[i.ephemeral&&i.ephemeralReason!==null?(0,j.jsx)(`p`,{className:`mx-chat__ephemeral`,role:`note`,children:i.ephemeralReason}):null,(0,j.jsxs)(`div`,{className:`mx-chat__scroll`,ref:f.ref,role:`log`,"aria-live":`polite`,"aria-relevant":`additions`,"aria-label":r,"data-pinned":f.pinned,tabIndex:0,children:[o.transcriptHeader??null,s.length===0?Kw(o.empty):(0,j.jsxs)(`ol`,{className:`mx-chat__messages`,children:[d>0?(0,j.jsx)(`li`,{className:`mx-chat__earlier`,children:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,onClick:()=>l(e=>e+n),children:`Show earlier messages (${d} hidden)`})}):null,u.map((e,t)=>{let n=t>0&&u[t-1]?.role===e.role;return(0,j.jsx)(`li`,{...n?{"data-continued":`true`}:{},children:(0,j.jsx)(Lw,{messageId:e.id,continued:n})},e.id)})]}),o.transcriptFooter??null]}),(0,j.jsx)(`p`,{className:`mx-chat__sr-only`,role:`status`,"aria-live":`polite`,children:h}),f.hasUnseenBelow?(0,j.jsx)(`div`,{className:`mx-chat__jump`,children:(0,j.jsx)(Sf,{icon:(0,j.jsx)(Ei,{}),ariaLabel:`Jump to the latest message`,tooltip:!1,onClick:f.jumpToLatest})}):null]})}function Gw(e,t){return t===void 0||t===``?e:`${e} ${t}`}function Kw(e){return typeof e==`function`?e():e===void 0?(0,j.jsx)(qw,{}):e}function qw(e){return(0,j.jsxs)(`div`,{className:`mx-chat-empty`,children:[(0,j.jsx)(`span`,{className:`mx-chat-empty__title`,children:e.title??`Start the conversation`}),(0,j.jsx)(`span`,{children:e.body??`Ask a question, describe what you need, or paste something in.`})]})}var Jw=/[.!?。!?]["')\]]?\s/g;function Yw(e,t){let[n,r]=(0,_.useState)(``),i=(0,_.useRef)(0),a=e[e.length-1],o=a!==void 0&&a.role===`assistant`,s=o?Ef(C(a)):``,c=o&&a.status!==`streaming`&&a.status!==`pending`,l=a?.id??``,u=(0,_.useRef)(l);u.current!==l&&(u.current=l,i.current=0);let d=(0,_.useRef)(t);if(d.current!==t){let e=d.current!==null;d.current=t,e&&(u.current=l,i.current=s.length,n!==``&&r(``))}return(0,_.useEffect)(()=>{if(!o)return;Jw.lastIndex=0;let e=0,t=Jw.exec(s);for(;t!==null;)e=t.index+t[0].length,t=Jw.exec(s);let n=c?s.length:e;if(n<=i.current)return;let a=s.slice(i.current,n).trim();i.current=n,a!==``&&r(a)},[s,c,o]),n}function Xw(e){return(0,j.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:e})}function Zw(){return Xw((0,j.jsx)(`path`,{d:`M8 13V3.5M3.75 7.75 8 3.5l4.25 4.25`}))}function Qw(){return Xw((0,j.jsx)(`rect`,{x:`4.25`,y:`4.25`,width:`7.5`,height:`7.5`,rx:`1.5`,fill:`currentColor`,stroke:`none`}))}function $w(){return Xw((0,j.jsx)(`path`,{d:`M10.6 5.1 5.9 9.8a1.7 1.7 0 0 0 2.4 2.4l4.7-4.7a3.2 3.2 0 0 0-4.5-4.5L3.6 7.9a4.7 4.7 0 0 0 6.7 6.7`}))}function eT(){return Xw((0,j.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`}))}function tT(e){return(0,j.jsx)(`ul`,{className:`mx-chat-attachments`,"aria-label":`Attachments on this message`,children:e.attachments.map(t=>(0,j.jsxs)(`li`,{className:`mx-chat-attachment`,"data-status":t.status,children:[(0,j.jsx)(`span`,{className:`mx-chat-attachment__name`,title:t.name,children:t.name}),(0,j.jsx)(`span`,{className:`mx-chat-attachment__meta`,children:t.status===`uploading`?t.progress===null?`Uploading…`:`Uploading ${Math.round(t.progress*100)}%`:t.status===`failed`?`Not attached`:ri(t.sizeBytes)}),t.status===`uploading`?(0,j.jsx)(`span`,{className:`mx-chat-attachment__bar`,role:`progressbar`,"aria-label":`Uploading ${t.name}`,...t.progress===null?{}:{"aria-valuenow":Math.round(t.progress*100),"aria-valuemin":0,"aria-valuemax":100},"data-indeterminate":t.progress===null||void 0,children:(0,j.jsx)(`span`,{className:`mx-chat-attachment__fill`,style:t.progress===null?void 0:{width:`${Math.round(t.progress*100)}%`}})}):null,t.failure===null?null:(0,j.jsx)(`span`,{className:`mx-chat-attachment__failure`,children:t.failure}),t.status===`failed`&&t.retryable?(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-attachment__retry mx-chat-focusable`,onClick:()=>e.onRetry(t.key),children:`Try again`}):null,(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-attachment__remove mx-chat-focusable`,"aria-label":`Remove ${t.name}`,title:`Remove ${t.name}`,onClick:()=>e.onRemove(t.key),children:(0,j.jsx)(eT,{})})]},t.key))})}function nT(e){let t=xi(),{quickset:n}=bi(),{thread:r}=gi(),i=r.getSnapshot(),a=n===null||e.busy||e.drafting?[]:n.chips({conversationId:i.conversationId,busy:e.busy,empty:i.messages.length===0}),o=t.composerControls;return o===void 0&&a.length===0?null:(0,j.jsxs)(`div`,{className:`mx-chat-run-controls`,children:[o,a.length===0?null:(0,j.jsx)(`div`,{className:`mx-chat-quickset`,role:`group`,"aria-label":`Things you could ask`,children:a.map(t=>(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quickset__chip mx-chat-focusable`,"data-quickset":t.id,onClick:()=>e.onFill(t.text),children:t.label},t.id))})]})}var rT=(0,_.createContext)(null);function iT(){let e=(0,_.useContext)(rT),t=bi();return(0,_.useMemo)(()=>e??{files:t.files,voice:t.voice},[e,t.files,t.voice])}function aT(e,t){if(e.isComposing)return`pass`;if(e.key===`Escape`)return e.isBusy?`stop`:`pass`;if(e.key!==`Enter`)return`pass`;let n=e.metaKey||e.ctrlKey;return(t===`enter`?!e.shiftKey&&!n:n)?`send`:`newline`}function oT(e,t,n){if(!Number.isFinite(t)||t<=0)return e;let r=Number.isFinite(n)&&n>0?n:0;return Math.max(1,Math.round((e-r)/t))*t+r}function sT(e){let t=(0,_.useRef)(null),n=(0,_.useCallback)(()=>{let n=t.current;if(n===null)return;let r=n.offsetHeight,i=n.scrollTop,a=getComputedStyle(n),o=Number.parseFloat(a.lineHeight),s=Number.parseFloat(a.paddingTop||`0`)+Number.parseFloat(a.paddingBottom||`0`)+Number.parseFloat(a.borderTopWidth||`0`)+Number.parseFloat(a.borderBottomWidth||`0`);n.style.transitionProperty=`none`,n.style.height=`0px`;let c=n.scrollHeight;n.style.height=`${r}px`,n.offsetHeight,n.style.transitionProperty=``,n.scrollTop=i;let l=oT(c,o,s),u=Math.max(e.minHeightPx,Math.min(l,e.maxHeightPx));u!==r&&(n.style.height=`${u}px`)},[e.maxHeightPx,e.minHeightPx]);(0,_.useLayoutEffect)(()=>{n()},[n,e.value]);let r=(0,_.useCallback)(n=>{t.current=n;let r=e.inputRef;typeof r==`function`?r(n):r!=null&&(r.current=n)},[e.inputRef]),i={maxHeight:e.maxHeightPx};return(0,j.jsx)(`textarea`,{ref:r,className:`mx-chat-composer__field`,value:e.value,rows:1,style:i,placeholder:e.placeholder,"aria-label":e.label,...e.describedBy===void 0?{}:{"aria-describedby":e.describedBy},disabled:e.disabled,autoFocus:e.autoFocus===!0,onChange:t=>e.onValueChange(t.target.value),onKeyDown:e.onKeyDown,...e.onPaste===void 0?{}:{onPaste:e.onPaste}})}function cT(e){let{files:t,maxBytes:n,notifier:r}=e,[i,a]=(0,_.useState)([]),o=(0,_.useRef)(new Map),s=(0,_.useRef)(new Map),c=(0,_.useRef)(!0);(0,_.useEffect)(()=>(c.current=!0,()=>{c.current=!1;for(let e of o.current.values())e.controller.abort();o.current.clear()}),[]);let l=(0,_.useCallback)((e,t)=>{c.current&&a(n=>n.map(n=>n.key===e?{...n,...t}:n))},[]),u=(0,_.useCallback)((e,n)=>{let r=new AbortController;o.current.set(e,{file:n,controller:r}),s.current.set(e,n),l(e,{status:`uploading`,progress:null,failure:null}),t.upload(n,{signal:r.signal,onProgress:t=>{r.signal.aborted||l(e,{progress:Math.max(0,Math.min(1,t))})}}).then(t=>{o.current.delete(e),!r.signal.aborted&&l(e,{status:`ready`,progress:1,fileId:t.fileId,previewUrl:t.previewUrl??null,mediaType:t.mediaType,failure:null})}).catch(t=>{o.current.delete(e),!r.signal.aborted&&l(e,{status:`failed`,progress:null,failure:t instanceof Error&&t.message!==``?t.message:`This file could not be uploaded.`,retryable:!0})})},[t,l]),d=(0,_.useCallback)(e=>{if(e.length===0)return;let t=[],i=[];for(let a of e){let e=x(`att`);if(a.size>n){let i=di(a.name,n);t.push({key:e,name:a.name,sizeBytes:a.size,mediaType:a.type===``?null:a.type,status:`failed`,progress:null,fileId:null,previewUrl:null,failure:i,retryable:!1}),r.notify({level:`warning`,message:i,remedy:`Attach a smaller file, or ask an administrator to raise the limit for this workspace.`});continue}t.push({key:e,name:a.name,sizeBytes:a.size,mediaType:a.type===``?null:a.type,status:`uploading`,progress:null,fileId:null,previewUrl:null,failure:null,retryable:!0}),i.push({key:e,file:a})}a(e=>[...e,...t]);for(let e of i)u(e.key,e.file)},[n,r,u]),f=(0,_.useCallback)(e=>{let t=o.current.get(e);t!==void 0&&(t.controller.abort(),o.current.delete(e)),s.current.delete(e),a(t=>t.filter(t=>t.key!==e))},[]),p=(0,_.useCallback)(e=>{let t=s.current.get(e);t!==void 0&&u(e,t)},[u]),m=(0,_.useCallback)(()=>{for(let e of o.current.values())e.controller.abort();o.current.clear(),s.current.clear(),a([])},[]);return{attachments:i,readyFileIds:i.filter(e=>e.status===`ready`&&e.fileId!==null).map(e=>e.fileId),uploading:i.some(e=>e.status===`uploading`),add:d,remove:f,retry:p,clear:m}}var lT=24,uT=208;function dT(e){let t=e.dataTransfer?.types;return t!==void 0&&Array.from(t).includes(`Files`)}function fT(e){let t=Ci(),n=yi(),{notifier:r}=bi(),i=xi(),{files:a,voice:o}=iT(),{thread:s}=gi(),c=(0,_.useRef)(null),l=(0,_.useId)(),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(!1),g=(0,_.useRef)(0),v=(0,_.useRef)(async()=>void 0),y=cT({files:a,maxBytes:n.attachmentMaxBytes,notifier:r}),b=(0,_.useRef)(null);(0,_.useEffect)(()=>{let n=e.draftSeed;n!=null&&n!==``&&b.current!==n&&(b.current=n,t.text.trim()===``&&t.setText(n))},[e.draftSeed]);let x=(0,_.useCallback)(e=>{if(e.length!==0){if(!a.available){a.upload(e[0],{signal:new AbortController().signal,onProgress:()=>void 0}).catch(()=>void 0),h(!0);return}y.add(e)}},[y,a]),S=(0,_.useCallback)(e=>{let t=e.clipboardData?.files;t!==void 0&&t.length!==0&&(e.preventDefault(),x(Array.from(t)))},[x]),w=(0,_.useCallback)(e=>{dT(e)&&(e.preventDefault(),g.current=0,p(!1),x(Array.from(e.dataTransfer.files)))},[x]),T=(0,_.useCallback)(e=>{let r=e.nativeEvent.isComposing;if(!r&&e.key===`ArrowUp`&&t.text===``&&!e.shiftKey&&!e.metaKey&&!e.ctrlKey){let n=s.getSnapshot().messages;for(let r=n.length-1;r>=0;--r){let i=n[r];if(i===void 0||i.role!==`user`)continue;let a=C(i);if(a===``)break;e.preventDefault(),t.setText(a);return}return}let i=aT({key:e.key,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,isComposing:r,isBusy:t.isBusy},n.sendKey);if(i===`send`){e.preventDefault(),v.current();return}i===`stop`&&(e.preventDefault(),t.stop())},[t,n.sendKey,s]),E=e.held??null,D=E===null?u?`Finish recording to send your message.`:y.uploading?`Your files are still uploading.`:null:E.reason,O=t.canSend&&D===null,k=(0,_.useCallback)(async()=>{if(!O)return;let e=t.text.trim(),n=y.readyFileIds;n.length===0?await t.send():(t.setText(``),(await s.send({text:e,fileIds:n})).accepted?y.clear():t.setText(e)),c.current?.focus()},[y,O,t,s]);v.current=k;let A=(0,_.useCallback)(e=>{e.preventDefault(),k()},[k]),M=t.isBusy?`Stop the answer`:D===null?`Send message`:D,N=t.isBusy&&n.sendWhileBusy&&t.text.trim()!==``,P=D===null?`Queue message — it sends when this answer finishes`:D,F={value:t.text,onValueChange:t.setText,busy:t.isBusy,onBusyChange:d,className:`mx-chat-composer__icon-button mx-chat-focusable`};return(0,j.jsxs)(`form`,{className:`mx-chat-composer${e.className===void 0?``:` ${e.className}`}`,"data-dragging":f||void 0,"data-busy":t.isBusy||void 0,onSubmit:A,onDragEnter:e=>{dT(e)&&(g.current+=1,p(!0))},onDragOver:e=>{dT(e)&&e.preventDefault()},onDragLeave:e=>{dT(e)&&(g.current=Math.max(0,g.current-1),g.current===0&&p(!1))},onDrop:w,children:[i.composerAbove,(0,j.jsx)(nT,{onFill:t.setText,busy:t.isBusy,drafting:t.text.trim()!==``}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__shell`,children:[y.attachments.length>0?(0,j.jsx)(tT,{attachments:y.attachments,onRemove:y.remove,onRetry:y.retry}):null,(0,j.jsx)(sT,{value:t.text,onValueChange:t.setText,onKeyDown:T,onPaste:S,placeholder:e.placeholder??`Send a message`,minHeightPx:lT,maxHeightPx:uT,disabled:E!==null,label:`Message`,describedBy:l,inputRef:c,...e.autoFocus===void 0?{}:{autoFocus:e.autoFocus}}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__row`,children:[(0,j.jsxs)(`div`,{className:`mx-chat-composer__left`,children:[a.available?(0,j.jsxs)(`label`,{className:`mx-chat-composer__icon-button mx-chat-focusable`,children:[(0,j.jsx)($w,{}),(0,j.jsx)(`span`,{className:`mx-chat__sr-only`,children:`Attach files`}),(0,j.jsx)(`input`,{type:`file`,multiple:!0,"aria-label":`Attach files`,...a.accept===void 0?{}:{accept:a.accept},onChange:e=>{let t=e.target.files;t!==null&&x(Array.from(t)),e.target.value=``}})]}):null,o===null?null:o.renderButton(F),i.composerPickers,i.composerToolbar]}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__right`,children:[i.composerRunControls,N?(0,j.jsx)(`button`,{type:`submit`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`queue`,"aria-label":P,title:P,disabled:!O,children:(0,j.jsx)(Zw,{})}):null,t.isBusy?(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`stop`,"aria-label":M,title:M,onClick:()=>void t.stop(),children:(0,j.jsx)(Qw,{})}):(0,j.jsx)(`button`,{type:`submit`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`send`,"aria-label":M,title:M,disabled:!O,children:(0,j.jsx)(Zw,{})})]})]})]}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__notice`,id:l,role:`status`,"aria-live":`polite`,children:[E===null?m?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:`${ci} ${li}`}):D!==null&&t.text.trim()!==``?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:D}):t.restoredFromFailure?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:`Your message is back in the box. Send it again when you are ready.`}):null:(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:E.reason}),o?.renderRecovery?.(F)??null]}),i.composerBelow,f?(0,j.jsx)(`div`,{className:`mx-chat-composer__drop`,"aria-live":`polite`,children:a.available?`Drop files to attach them to your message`:ci}):null]})}function pT(e){let t=T(e.features),n=new Set,r=new Map,i=0,a=new Map,o=c(e.getSnapshot());a=s(o.messages);function s(e){let t=new Map;for(let n of e)t.set(n.id,n);return t}function c(e){let t=e.ephemeral===!0;return{conversationId:e.conversationId,messages:e.messages,status:e.status,requestId:e.requestId??null,phase:e.phase??null,ephemeral:t,ephemeralReason:t?e.ephemeralReason??`This conversation is not being saved by the application hosting it.`:null,revision:i,error:e.error??null}}let l=e.subscribe(()=>{i+=1,o=c(e.getSnapshot());let t=s(o.messages);for(let[e,n]of r)if(a.get(e)!==t.get(e))for(let e of n)e();a=t;for(let e of n)e()});return{getSnapshot:()=>o,subscribe(e){return n.add(e),()=>{n.delete(e)}},subscribeToMessage(e,t){let n=r.get(e)??new Set;return n.add(t),r.set(e,n),()=>{n.delete(t),n.size===0&&r.delete(e)}},getMessageSnapshot:e=>o.messages.find(t=>t.id===e),features:t,async send(t){return await e.onSubmit(t),{accepted:!0,refusal:null}},async cancel(){await e.onCancel?.()},setMessages(t){if(!e.onSetMessages)throw Error(`This chat thread's state is owned by the host application, which did not provide onSetMessages. Replace the transcript through the host's own store, or provide onSetMessages.`);e.onSetMessages(t)},async loadConversation(t){if(!e.onLoadConversation)throw Error(`This chat thread's state is owned by the host application, which did not provide onLoadConversation. Open the conversation through the host's own routing, or provide onLoadConversation.`);await e.onLoadConversation(t)},canStartNewConversation:e.onStartNewConversation!==void 0,settleToolCall(t){return e.onSettleToolCall?e.onSettleToolCall(t):{messages:o.messages,messageId:null,applied:!1,refusal:`This chat thread's state is owned by the host application, which did not provide onSettleToolCall. Mark the tool call done in the host's own store when it answers, or provide onSettleToolCall.`}},async startNewConversation(){if(!e.onStartNewConversation)throw Error(`This chat thread's state is owned by the host application, which did not provide onStartNewConversation. Start a new conversation through the host's own store, or provide onStartNewConversation.`);await e.onStartNewConversation()},dispose(){l?.(),l=null,n.clear(),r.clear()}}}var mT={claude:`Claude Code`,codex:`Codex`};function hT(e,t,n){return t?`${e}:${t}`:`session:${n??``}`}var gT=[`completed`,`stopped`,`failed`];function _T(e){return gT.includes(e)}function vT(e){if(!e)return null;let t=Date.parse(e);return Number.isNaN(t)?e:new Date(t).toLocaleString(void 0,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`})}var yT=[/model is not supported when using codex/i,/\bmodel[\s:'"`][^.\n]{0,80}\b(?:not supported|does not exist|not available|not found)\b/i,/\bmodel_not_found\b/i,/issue with the selected model/i,/may not exist or you may not have access to it/i],bT=`Model not available on this account`;function xT(e){let t=(e??``).trim();return t!==``&&yT.some(e=>e.test(t))}function ST(e){return xT(e)?bT:e}var CT={Bash:`Run command`,Shell:`Run command`,BashOutput:`Read command output`,KillShell:`Stop command`,Read:`Read file`,Write:`Write file`,Edit:`Edit file`,MultiEdit:`Edit file`,NotebookEdit:`Edit notebook`,Glob:`Find files`,Grep:`Search code`,LS:`List folder`,WebFetch:`Fetch page`,WebSearch:`Web search`,"Web search":`Web search`,Task:`Sub-agent`,Agent:`Sub-agent`,TodoWrite:`Update plan`,Plan:`Update plan`,"Edit files":`Edit files`,ExitPlanMode:`Finish planning`,Skill:`Use skill`,ToolSearch:`Load tools`};function wT(e){let t=e.replace(/[._-]+/g,` `).replace(/([a-z\d])([A-Z])/g,`$1 $2`).replace(/\s+/g,` `).trim().toLowerCase();return t?t.charAt(0).toUpperCase()+t.slice(1):``}function TT(e){let t=/^mcp__(.+?)__(.+)$/.exec(e);return t?.[1]&&t[2]?{server:t[1],tool:t[2]}:null}function ET(e){let t=CT[e];if(t)return t;let n=TT(e);if(n)return`${wT(n.tool)||`Tool`} · ${wT(n.server)}`;let r=/^([\w-]+)\.([\w-]+)$/.exec(e);return r?.[1]&&r[2]?`${wT(r[2])} · ${wT(r[1])}`:wT(e)||`Working…`}function DT(e){let t=e.match(/^\/(?:Users|home)\/[^/]+/)?.[0];return t?`~${e.slice(t.length)}`:e}function OT(e,t=90){let n=e.replace(/\s+/g,` `).trim();return n.length>t?`${n.slice(0,t-1)}…`:n}function kT(e,t){if(typeof t!=`object`||!t)return typeof t==`string`&&t?OT(t):null;let n=t,r=(...e)=>{for(let t of e){let e=n[t];if(typeof e==`string`&&e.trim())return e}return null};switch(e){case`Bash`:case`Shell`:{let e=r(`command`,`description`);return e?OT(e):null}case`Read`:case`Write`:case`Edit`:case`MultiEdit`:case`NotebookEdit`:{let e=r(`file_path`,`notebook_path`,`path`);return e?OT(DT(e)):null}case`Glob`:case`Grep`:return r(`pattern`)?OT(r(`pattern`)):null;case`WebFetch`:return r(`url`)?OT(r(`url`)):null;case`WebSearch`:case`Web search`:return r(`query`)?OT(r(`query`)):null;case`Task`:case`Agent`:return r(`description`,`prompt`)?OT(r(`description`,`prompt`)):null;case`Edit files`:{let e=n.changes,t=Array.isArray(e)?e.map(e=>typeof e==`object`&&e?e.path:null).filter(e=>typeof e==`string`):typeof e==`object`&&e?Object.keys(e):[];return t.length?OT(t.map(DT).join(`, `)):null}default:{let e=r(`url`,`query`,`command`,`path`,`file_path`,`name`,`description`);return e?OT(e):null}}}function AT(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function jT(e){return typeof e==`string`?e:null}function MT(e){let t=AT(e)?jT(e.type):jT(e);return t===`add`||t===`create`?`created`:t===`delete`?`deleted`:t===`move`||t===`rename`?`moved`:`edited`}function NT(e){let t=new Map,n=(e,n,r)=>{let i=t.get(e);i?(i.edits.push(r),n===`deleted`&&(i.kind=`deleted`)):t.set(e,{path:e,kind:n,edits:[r]})};for(let t of e)for(let e of t.parts){if(e.type!==`tool`)continue;let t=e.input;if(!AT(t))continue;let r=e.state===`output-error`||!!e.errorText,i={toolCallId:e.toolCallId,failed:r};switch(e.toolName){case`Write`:{let e=jT(t.file_path);e&&n(e,`created`,{...i,removed:null,added:jT(t.content),diff:null});break}case`Edit`:{let e=jT(t.file_path);e&&n(e,`edited`,{...i,removed:jT(t.old_string),added:jT(t.new_string),diff:null});break}case`MultiEdit`:{let e=jT(t.file_path),r=Array.isArray(t.edits)?t.edits:[];if(e)for(let t of r.filter(AT))n(e,`edited`,{...i,removed:jT(t.old_string),added:jT(t.new_string),diff:null});break}case`NotebookEdit`:{let e=jT(t.notebook_path);e&&n(e,`edited`,{...i,removed:null,added:jT(t.new_source),diff:null});break}case`Edit files`:{let e=t.changes;if(Array.isArray(e))for(let t of e.filter(AT)){let e=jT(t.path);e&&n(e,MT(t.kind),{...i,removed:null,added:null,diff:null})}else if(AT(e))for(let[t,r]of Object.entries(e)){let e=AT(r)?jT(r.unified_diff):null;n(t,MT(r),{...i,removed:null,added:null,diff:e})}break}}}return[...t.values()]}function PT(e){let t=0,n=0,r=e=>e?e.split(`
67
67
  `).length:0;for(let i of e.edits)if(!i.failed){if(i.diff)for(let e of i.diff.split(`
68
- `))e.startsWith(`+`)&&!e.startsWith(`+++`)?t+=1:e.startsWith(`-`)&&!e.startsWith(`---`)&&(n+=1);else t+=r(i.added),n+=r(i.removed)}return{added:t,removed:n}}function PT(e,t){let n=mT(e.provider,e.providerSessionId,e.id),r=t[n]??t[mT(e.provider,null,e.id)]??{};return{key:n,kind:`session`,provider:e.provider,providerSessionId:e.providerSessionId,title:r.title||e.title,originalTitle:e.title,cwd:e.cwd,updatedAt:e.updatedAt,pinned:r.pinned===!0,hidden:r.hidden===!0,session:e,discovered:null}}function FT(e,t){let n=mT(e.provider,e.providerSessionId),r=t[n]??{};return{key:n,kind:`discovered`,provider:e.provider,providerSessionId:e.providerSessionId,title:r.title||e.title,originalTitle:e.title,cwd:e.cwd,updatedAt:e.updatedAt,pinned:r.pinned===!0,hidden:r.hidden===!0,session:null,discovered:e}}var IT=864e5;function LT(e){let t=new Date(e);return t.setHours(0,0,0,0),t.getTime()}function RT(e,t){let n=Date.parse(e);if(Number.isNaN(n))return`Older`;let r=LT(t);if(n>=r)return`Today`;if(n>=r-IT)return`Yesterday`;if(n>=r-7*IT)return`Previous 7 days`;if(n>=r-30*IT)return`Previous 30 days`;let i=new Date(n),a=new Date(t).getFullYear();return i.getFullYear()===a?i.toLocaleDateString(void 0,{month:`long`}):String(i.getFullYear())}function zT(e){if(!e)return`Unknown folder`;let t=e.split(`/`).filter(Boolean);return t[t.length-1]??e}function BT(e,t,n){let r=new Map;for(let i of e){let e=t===`date`?RT(i.updatedAt,n):i.cwd??``,a=r.get(e);a||(a={label:t===`date`?e:zT(i.cwd),entries:[]},r.set(e,a)),a.entries.push(i)}if(t===`folder`){let e=new Map;for(let t of r.values())e.set(t.label,(e.get(t.label)??0)+1);for(let[t,n]of r)(e.get(n.label)??0)>1&&t&&(n.label=t.split(`/`).filter(Boolean).slice(-2).join(`/`))}return[...r.values()]}function VT(e,t){let n=t.trim().toLowerCase();return!n||e.title.toLowerCase().includes(n)||e.originalTitle.toLowerCase().includes(n)||(e.cwd??``).toLowerCase().includes(n)}function HT(e,t){return t.updatedAt.localeCompare(e.updatedAt)}function UT(e){if(!e.providerSessionId)return null;let t=e.provider===`claude`?`claude --resume ${e.providerSessionId}`:`codex resume ${e.providerSessionId}`;return e.cwd?`cd ${/^[A-Za-z0-9_./~-]+$/.test(e.cwd)?e.cwd:`'${e.cwd.replace(/'/g,`'\\''`)}'`} && ${t}`:t}var WT=(0,_.createContext)(null);function GT(){let e=(0,_.useContext)(WT);if(!e)throw Error(`[@ai-matrx/coding-sessions] Render this inside <CodingSessionsProvider transport={…}> (or <CodingSessionsApp>).`);return e}function KT(){let e=GT();return(0,_.useSyncExternalStore)(e.subscribe,e.getState,e.getState)}function qT(e){let t=GT().transcript(e),[,n]=(0,_.useState)(0);return(0,_.useEffect)(()=>t.thread.subscribe(()=>n(e=>e+1)),[t]),t}function JT(){let[e,t]=(0,_.useState)(()=>Date.now());return(0,_.useEffect)(()=>{let e=setInterval(()=>t(Date.now()),6e4);return()=>clearInterval(e)},[]),e}function YT(e,t){return e?ti(e,{style:`long`,now:t,fallback:``}):``}function XT(e){if(!e)return``;let t=e.match(/^\/(?:Users|home)\/[^/]+/)?.[0],n=t?`~${e.slice(t.length)}`:e;return n.length<=48?n:`…/${n.split(`/`).slice(-3).join(`/`)}`}function ZT({size:e=16,children:t,...n}){return(0,j.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.8,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,...n,children:t})}var QT=e=>(0,j.jsx)(ZT,{...e,children:(0,j.jsx)(`path`,{d:`M12 5v14M5 12h14`})}),$T=e=>(0,j.jsx)(ZT,{...e,children:(0,j.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`,fill:`currentColor`,stroke:`none`})}),eE=e=>(0,j.jsx)(ZT,{...e,children:(0,j.jsx)(`path`,{d:`M3 7.5A2.5 2.5 0 0 1 5.5 5H9l2 2.5h7.5A2.5 2.5 0 0 1 21 10v7.5a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5z`})}),tE=e=>(0,j.jsx)(ZT,{...e,children:(0,j.jsx)(`path`,{d:`m5 12.5 4.5 4.5L19 7.5`})}),nE=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,j.jsx)(`path`,{d:`M12 7.5v5.5M12 16.5h.01`})]}),rE=e=>(0,j.jsx)(ZT,{...e,children:(0,j.jsx)(`path`,{d:`M20 11a8 8 0 0 0-14.3-4.9L4 8M4 4v4h4M4 13a8 8 0 0 0 14.3 4.9L20 16M20 20v-4h-4`})}),iE=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`path`,{d:`M5 12h12M13 7l5 5-5 5`}),(0,j.jsx)(`path`,{d:`M5 5v14`})]}),aE=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,j.jsx)(`path`,{d:`M12 2.5v2M12 19.5v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M2.5 12h2M19.5 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4`})]}),oE=e=>(0,j.jsx)(ZT,{...e,children:(0,j.jsx)(`path`,{d:`M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z`})}),sE=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`rect`,{x:`3`,y:`4.5`,width:`18`,height:`12`,rx:`2`}),(0,j.jsx)(`path`,{d:`M8.5 20h7M12 16.5V20`})]}),cE=e=>(0,j.jsx)(ZT,{...e,children:(0,j.jsx)(`path`,{d:`M20 12.5a7.5 7.5 0 0 1-10.9 6.7L4 20.5l1.3-4.6A7.5 7.5 0 1 1 20 12.5z`})}),lE=({size:e=16,className:t})=>(0,j.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,"aria-hidden":`true`,className:`cs-spin ${t??``}`,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`,fill:`none`,stroke:`currentColor`,strokeOpacity:`0.2`,strokeWidth:`2.5`}),(0,j.jsx)(`path`,{d:`M21 12a9 9 0 0 0-9-9`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`})]}),uE=`m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z`,dE=`M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z`;function fE({provider:e,size:t=16}){return(0,j.jsx)(`svg`,{className:`cs-provider-mark cs-provider-mark--${e}`,width:t,height:t,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-provider-mark":e,children:(0,j.jsx)(`path`,{d:e===`claude`?uE:dE})})}var pE=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`circle`,{cx:`11`,cy:`11`,r:`6.5`}),(0,j.jsx)(`path`,{d:`m20 20-4.2-4.2`})]}),mE=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`circle`,{cx:`5.5`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`}),(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`}),(0,j.jsx)(`circle`,{cx:`18.5`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`})]}),hE=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`path`,{d:`M9 4h6l-1 5 3 3v2H7v-2l3-3z`}),(0,j.jsx)(`path`,{d:`M12 14v6`})]}),gE=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`path`,{d:`M3 3l18 18`}),(0,j.jsx)(`path`,{d:`M10.6 5.1A9.8 9.8 0 0 1 12 5c5 0 8.5 4.5 9.5 7a13 13 0 0 1-2.6 3.9M6.4 6.4C4.3 7.8 2.9 9.9 2.5 12c1 2.5 4.5 7 9.5 7 1.8 0 3.4-.6 4.8-1.4`}),(0,j.jsx)(`path`,{d:`M9.9 9.9a3 3 0 0 0 4.2 4.2`})]}),_E=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`rect`,{x:`8.5`,y:`8.5`,width:`11`,height:`11`,rx:`2`}),(0,j.jsx)(`path`,{d:`M15.5 8.5V6.5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2`})]}),vE=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`path`,{d:`M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16z`}),(0,j.jsx)(`path`,{d:`m13.5 6.5 4 4`})]}),yE=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`rect`,{x:`3.5`,y:`4.5`,width:`17`,height:`15`,rx:`2.5`}),(0,j.jsx)(`path`,{d:`M9.5 4.5v15`})]}),bE=e=>(0,j.jsx)(ZT,{...e,children:(0,j.jsx)(`path`,{d:`m6.5 9.5 5.5 5.5 5.5-5.5`})}),xE=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`path`,{d:`M14 3.5H7.5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V8z`}),(0,j.jsx)(`path`,{d:`M14 3.5V8h4.5`})]}),SE=e=>(0,j.jsx)(ZT,{...e,children:(0,j.jsx)(`path`,{d:`M6.5 6.5l11 11M17.5 6.5l-11 11`})}),CE=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`rect`,{x:`3`,y:`6.5`,width:`18`,height:`11`,rx:`2`}),(0,j.jsx)(`path`,{d:`M7 10.5h.01M11 10.5h.01M15 10.5h.01M8 14h8`})]}),wE=e=>(0,j.jsxs)(ZT,{...e,children:[(0,j.jsx)(`path`,{d:`M6 16.5V11a6 6 0 1 1 12 0v5.5l1.5 1.5h-15z`}),(0,j.jsx)(`path`,{d:`M10 20.5a2 2 0 0 0 4 0`})]}),TE=(0,_.createContext)(()=>void 0);function EE(){return(0,_.useContext)(TE)}var DE=[{target:`finder`,label:`Finder`},{target:`vscode`,label:`VS Code`},{target:`cursor`,label:`Cursor`},{target:`terminal`,label:`Terminal`}];async function OE(e,t,n){try{await navigator.clipboard.writeText(e),t(`${n} copied.`)}catch{t(`This browser didn't allow copying. Select the text and copy it with your keyboard instead: ${e}`)}}async function kE(e,t,n){try{let r=await e.readRawTranscript(t.provider,t.providerSessionId);if(!r.available){n(r.reason);return}let i=URL.createObjectURL(new Blob([r.content],{type:`application/x-ndjson`})),a=document.createElement(`a`);a.href=i,a.download=r.fileName,a.click(),setTimeout(()=>URL.revokeObjectURL(i),1e4),n(`Downloaded ${r.fileName} (${ri(r.bytes)}).`)}catch(e){n(`Full Download failed: ${e instanceof Error?e.message:String(e)}`)}}function AE(e){let t=GT(),n=EE(),{entry:r}=e,i=e.variant===`dropdown`?{Item:rw,Separator:sw,Sub:YC,SubTrigger:ew,SubContent:tw}:{Item:Pb,Separator:Rb,Sub:Db,SubTrigger:jb,SubContent:Mb},a=(e,i)=>{t.setPreference(r.key,e).then(()=>n(i),e=>n(`That didn't save: ${e instanceof Error?e.message:String(e)}`))},o=UT(r);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(i.Item,{onSelect:e.onRename,children:[(0,j.jsx)(vE,{size:14}),`Rename`]}),(0,j.jsxs)(i.Item,{onSelect:()=>a({pinned:!r.pinned},r.pinned?`Unpinned.`:`Pinned to the top.`),children:[(0,j.jsx)(hE,{size:14}),r.pinned?`Unpin`:`Pin to top`]}),(0,j.jsxs)(i.Item,{onSelect:()=>a({hidden:!r.hidden},r.hidden?`Back in the list.`:`Hidden from the list. Search still finds it.`),children:[(0,j.jsx)(gE,{size:14}),r.hidden?`Show in the list`:`Hide from the list`]}),r.providerSessionId||r.cwd?(0,j.jsx)(i.Separator,{}):null,r.providerSessionId?(0,j.jsxs)(i.Item,{onSelect:()=>void OE(r.providerSessionId,n,`Chat ID`),children:[(0,j.jsx)(_E,{size:14}),`Copy chat ID`]}):null,o?(0,j.jsxs)(i.Item,{onSelect:()=>void OE(o,n,`Resume command`),children:[(0,j.jsx)(_E,{size:14}),`Copy resume command`]}):null,r.providerSessionId?(0,j.jsxs)(i.Item,{onSelect:()=>void kE(t,r,n),children:[(0,j.jsx)(_E,{size:14}),`Full Download`]}):null,r.cwd?(0,j.jsxs)(i.Item,{onSelect:()=>void OE(r.cwd,n,`Folder path`),children:[(0,j.jsx)(_E,{size:14}),`Copy folder path`]}):null,r.cwd?(0,j.jsxs)(i.Sub,{children:[(0,j.jsxs)(i.SubTrigger,{className:`gap-2`,children:[(0,j.jsx)(eE,{size:14}),`Open folder in`]}),(0,j.jsx)(i.SubContent,{children:DE.map(({target:e,label:a})=>(0,j.jsx)(i.Item,{onSelect:()=>t.openFolder(r.cwd,e).catch(e=>n(e instanceof Error?e.message:String(e))),children:a},e))})]}):null]})}var jE=400;function ME(e,t){if(t){let n=t.replace(/\/+$/,``);for(let t of[n,`/private${n}`,n.replace(/^\/private(?=\/)/,``)])if(e.startsWith(`${t}/`))return e.slice(t.length+1)}return XT(e)}function NE({edit:e}){let t=[];if(e.diff)for(let n of e.diff.split(`
68
+ `))e.startsWith(`+`)&&!e.startsWith(`+++`)?t+=1:e.startsWith(`-`)&&!e.startsWith(`---`)&&(n+=1);else t+=r(i.added),n+=r(i.removed)}return{added:t,removed:n}}function FT(e,t){let n=hT(e.provider,e.providerSessionId,e.id),r=t[n]??t[hT(e.provider,null,e.id)]??{};return{key:n,kind:`session`,provider:e.provider,providerSessionId:e.providerSessionId,title:r.title||e.title,originalTitle:e.title,cwd:e.cwd,updatedAt:e.updatedAt,pinned:r.pinned===!0,hidden:r.hidden===!0,session:e,discovered:null}}function IT(e,t){let n=hT(e.provider,e.providerSessionId),r=t[n]??{};return{key:n,kind:`discovered`,provider:e.provider,providerSessionId:e.providerSessionId,title:r.title||e.title,originalTitle:e.title,cwd:e.cwd,updatedAt:e.updatedAt,pinned:r.pinned===!0,hidden:r.hidden===!0,session:null,discovered:e}}var LT=864e5;function RT(e){let t=new Date(e);return t.setHours(0,0,0,0),t.getTime()}function zT(e,t){let n=Date.parse(e);if(Number.isNaN(n))return`Older`;let r=RT(t);if(n>=r)return`Today`;if(n>=r-LT)return`Yesterday`;if(n>=r-7*LT)return`Previous 7 days`;if(n>=r-30*LT)return`Previous 30 days`;let i=new Date(n),a=new Date(t).getFullYear();return i.getFullYear()===a?i.toLocaleDateString(void 0,{month:`long`}):String(i.getFullYear())}function BT(e){if(!e)return`Unknown folder`;let t=e.split(`/`).filter(Boolean);return t[t.length-1]??e}function VT(e,t,n){let r=new Map;for(let i of e){let e=t===`date`?zT(i.updatedAt,n):i.cwd??``,a=r.get(e);a||(a={label:t===`date`?e:BT(i.cwd),entries:[]},r.set(e,a)),a.entries.push(i)}if(t===`folder`){let e=new Map;for(let t of r.values())e.set(t.label,(e.get(t.label)??0)+1);for(let[t,n]of r)(e.get(n.label)??0)>1&&t&&(n.label=t.split(`/`).filter(Boolean).slice(-2).join(`/`))}return[...r.values()]}function HT(e,t){let n=t.trim().toLowerCase();return!n||e.title.toLowerCase().includes(n)||e.originalTitle.toLowerCase().includes(n)||(e.cwd??``).toLowerCase().includes(n)}function UT(e,t){return t.updatedAt.localeCompare(e.updatedAt)}function WT(e){if(!e.providerSessionId)return null;let t=e.provider===`claude`?`claude --resume ${e.providerSessionId}`:`codex resume ${e.providerSessionId}`;return e.cwd?`cd ${/^[A-Za-z0-9_./~-]+$/.test(e.cwd)?e.cwd:`'${e.cwd.replace(/'/g,`'\\''`)}'`} && ${t}`:t}var GT=(0,_.createContext)(null);function KT(){let e=(0,_.useContext)(GT);if(!e)throw Error(`[@ai-matrx/coding-sessions] Render this inside <CodingSessionsProvider transport={…}> (or <CodingSessionsApp>).`);return e}function qT(){let e=KT();return(0,_.useSyncExternalStore)(e.subscribe,e.getState,e.getState)}function JT(e){let t=KT().transcript(e),[,n]=(0,_.useState)(0);return(0,_.useEffect)(()=>t.thread.subscribe(()=>n(e=>e+1)),[t]),t}function YT(){let[e,t]=(0,_.useState)(()=>Date.now());return(0,_.useEffect)(()=>{let e=setInterval(()=>t(Date.now()),6e4);return()=>clearInterval(e)},[]),e}function XT(e,t){return e?ti(e,{style:`long`,now:t,fallback:``}):``}function ZT(e){if(!e)return``;let t=e.match(/^\/(?:Users|home)\/[^/]+/)?.[0],n=t?`~${e.slice(t.length)}`:e;return n.length<=48?n:`…/${n.split(`/`).slice(-3).join(`/`)}`}function QT({size:e=16,children:t,...n}){return(0,j.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.8,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,...n,children:t})}var $T=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`M12 5v14M5 12h14`})}),eE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`,fill:`currentColor`,stroke:`none`})}),tE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`M3 7.5A2.5 2.5 0 0 1 5.5 5H9l2 2.5h7.5A2.5 2.5 0 0 1 21 10v7.5a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5z`})}),nE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`m5 12.5 4.5 4.5L19 7.5`})}),rE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,j.jsx)(`path`,{d:`M12 7.5v5.5M12 16.5h.01`})]}),iE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`M20 11a8 8 0 0 0-14.3-4.9L4 8M4 4v4h4M4 13a8 8 0 0 0 14.3 4.9L20 16M20 20v-4h-4`})}),aE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`path`,{d:`M5 12h12M13 7l5 5-5 5`}),(0,j.jsx)(`path`,{d:`M5 5v14`})]}),oE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,j.jsx)(`path`,{d:`M12 2.5v2M12 19.5v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M2.5 12h2M19.5 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4`})]}),sE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z`})}),cE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`rect`,{x:`3`,y:`4.5`,width:`18`,height:`12`,rx:`2`}),(0,j.jsx)(`path`,{d:`M8.5 20h7M12 16.5V20`})]}),lE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`M20 12.5a7.5 7.5 0 0 1-10.9 6.7L4 20.5l1.3-4.6A7.5 7.5 0 1 1 20 12.5z`})}),uE=({size:e=16,className:t})=>(0,j.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,"aria-hidden":`true`,className:`cs-spin ${t??``}`,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`,fill:`none`,stroke:`currentColor`,strokeOpacity:`0.2`,strokeWidth:`2.5`}),(0,j.jsx)(`path`,{d:`M21 12a9 9 0 0 0-9-9`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`})]}),dE=`m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z`,fE=`M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z`;function pE({provider:e,size:t=16}){return(0,j.jsx)(`svg`,{className:`cs-provider-mark cs-provider-mark--${e}`,width:t,height:t,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-provider-mark":e,children:(0,j.jsx)(`path`,{d:e===`claude`?dE:fE})})}var mE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`circle`,{cx:`11`,cy:`11`,r:`6.5`}),(0,j.jsx)(`path`,{d:`m20 20-4.2-4.2`})]}),hE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`circle`,{cx:`5.5`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`}),(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`}),(0,j.jsx)(`circle`,{cx:`18.5`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`})]}),gE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`path`,{d:`M9 4h6l-1 5 3 3v2H7v-2l3-3z`}),(0,j.jsx)(`path`,{d:`M12 14v6`})]}),_E=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`path`,{d:`M3 3l18 18`}),(0,j.jsx)(`path`,{d:`M10.6 5.1A9.8 9.8 0 0 1 12 5c5 0 8.5 4.5 9.5 7a13 13 0 0 1-2.6 3.9M6.4 6.4C4.3 7.8 2.9 9.9 2.5 12c1 2.5 4.5 7 9.5 7 1.8 0 3.4-.6 4.8-1.4`}),(0,j.jsx)(`path`,{d:`M9.9 9.9a3 3 0 0 0 4.2 4.2`})]}),vE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`rect`,{x:`8.5`,y:`8.5`,width:`11`,height:`11`,rx:`2`}),(0,j.jsx)(`path`,{d:`M15.5 8.5V6.5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2`})]}),yE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`path`,{d:`M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16z`}),(0,j.jsx)(`path`,{d:`m13.5 6.5 4 4`})]}),bE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`rect`,{x:`3.5`,y:`4.5`,width:`17`,height:`15`,rx:`2.5`}),(0,j.jsx)(`path`,{d:`M9.5 4.5v15`})]}),xE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`m6.5 9.5 5.5 5.5 5.5-5.5`})}),SE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`path`,{d:`M14 3.5H7.5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V8z`}),(0,j.jsx)(`path`,{d:`M14 3.5V8h4.5`})]}),CE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`M6.5 6.5l11 11M17.5 6.5l-11 11`})}),wE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`rect`,{x:`3`,y:`6.5`,width:`18`,height:`11`,rx:`2`}),(0,j.jsx)(`path`,{d:`M7 10.5h.01M11 10.5h.01M15 10.5h.01M8 14h8`})]}),TE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`path`,{d:`M6 16.5V11a6 6 0 1 1 12 0v5.5l1.5 1.5h-15z`}),(0,j.jsx)(`path`,{d:`M10 20.5a2 2 0 0 0 4 0`})]}),EE=(0,_.createContext)(()=>void 0);function DE(){return(0,_.useContext)(EE)}var OE=[{target:`finder`,label:`Finder`},{target:`vscode`,label:`VS Code`},{target:`cursor`,label:`Cursor`},{target:`terminal`,label:`Terminal`}];async function kE(e,t,n){try{await navigator.clipboard.writeText(e),t(`${n} copied.`)}catch{t(`This browser didn't allow copying. Select the text and copy it with your keyboard instead: ${e}`)}}async function AE(e,t,n){try{let r=await e.readRawTranscript(t.provider,t.providerSessionId);if(!r.available){n(r.reason);return}let i=URL.createObjectURL(new Blob([r.content],{type:`application/x-ndjson`})),a=document.createElement(`a`);a.href=i,a.download=r.fileName,a.click(),setTimeout(()=>URL.revokeObjectURL(i),1e4),n(`Downloaded ${r.fileName} (${ri(r.bytes)}).`)}catch(e){n(`Full Download failed: ${e instanceof Error?e.message:String(e)}`)}}function jE(e){let t=KT(),n=DE(),{entry:r}=e,i=e.variant===`dropdown`?{Item:iw,Separator:cw,Sub:XC,SubTrigger:tw,SubContent:nw}:{Item:Fb,Separator:zb,Sub:Ob,SubTrigger:Mb,SubContent:Nb},a=(e,i)=>{t.setPreference(r.key,e).then(()=>n(i),e=>n(`That didn't save: ${e instanceof Error?e.message:String(e)}`))},o=WT(r);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(i.Item,{onSelect:e.onRename,children:[(0,j.jsx)(yE,{size:14}),`Rename`]}),(0,j.jsxs)(i.Item,{onSelect:()=>a({pinned:!r.pinned},r.pinned?`Unpinned.`:`Pinned to the top.`),children:[(0,j.jsx)(gE,{size:14}),r.pinned?`Unpin`:`Pin to top`]}),(0,j.jsxs)(i.Item,{onSelect:()=>a({hidden:!r.hidden},r.hidden?`Back in the list.`:`Hidden from the list. Search still finds it.`),children:[(0,j.jsx)(_E,{size:14}),r.hidden?`Show in the list`:`Hide from the list`]}),r.providerSessionId||r.cwd?(0,j.jsx)(i.Separator,{}):null,r.providerSessionId?(0,j.jsxs)(i.Item,{onSelect:()=>void kE(r.providerSessionId,n,`Chat ID`),children:[(0,j.jsx)(vE,{size:14}),`Copy chat ID`]}):null,o?(0,j.jsxs)(i.Item,{onSelect:()=>void kE(o,n,`Resume command`),children:[(0,j.jsx)(vE,{size:14}),`Copy resume command`]}):null,r.providerSessionId?(0,j.jsxs)(i.Item,{onSelect:()=>void AE(t,r,n),children:[(0,j.jsx)(vE,{size:14}),`Full Download`]}):null,r.cwd?(0,j.jsxs)(i.Item,{onSelect:()=>void kE(r.cwd,n,`Folder path`),children:[(0,j.jsx)(vE,{size:14}),`Copy folder path`]}):null,r.cwd?(0,j.jsxs)(i.Sub,{children:[(0,j.jsxs)(i.SubTrigger,{className:`gap-2`,children:[(0,j.jsx)(tE,{size:14}),`Open folder in`]}),(0,j.jsx)(i.SubContent,{children:OE.map(({target:e,label:a})=>(0,j.jsx)(i.Item,{onSelect:()=>t.openFolder(r.cwd,e).catch(e=>n(e instanceof Error?e.message:String(e))),children:a},e))})]}):null]})}var ME=400;function NE(e,t){if(t){let n=t.replace(/\/+$/,``);for(let t of[n,`/private${n}`,n.replace(/^\/private(?=\/)/,``)])if(e.startsWith(`${t}/`))return e.slice(t.length+1)}return ZT(e)}function PE({edit:e}){let t=[];if(e.diff)for(let n of e.diff.split(`
69
69
  `))n.startsWith(`@@`)?t.push({kind:`hunk`,text:n}):n.startsWith(`+`)?t.push({kind:`add`,text:n}):n.startsWith(`-`)?t.push({kind:`del`,text:n}):n!==``&&t.push({kind:`ctx`,text:n});else{if(e.removed)for(let n of e.removed.split(`
70
70
  `))t.push({kind:`del`,text:`-${n}`});if(e.added)for(let n of e.added.split(`
71
- `))t.push({kind:`add`,text:`+${n}`})}if(t.length===0)return(0,j.jsx)(`p`,{className:`text-[12px] text-muted-foreground`,children:e.failed?`This change failed.`:`The agent didn't record the text of this change.`});let n=t.slice(0,jE);return(0,j.jsxs)(j.Fragment,{children:[e.failed?(0,j.jsx)(`p`,{className:`mb-1 text-[11.5px] text-destructive`,children:`This change failed and was not applied.`}):null,(0,j.jsx)(`pre`,{className:Z(`cs-diff`,e.failed&&`opacity-60`),children:n.map((e,t)=>(0,j.jsx)(`span`,{className:Z(`cs-diff__line`,e.kind!==`ctx`&&`cs-diff__line--${e.kind}`),children:e.text||` `},t))}),t.length>jE?(0,j.jsxs)(`p`,{className:`mt-1 text-[11.5px] text-muted-foreground`,children:[`Showing the first `,jE,` of `,t.length,` lines.`]}):null]})}function PE({file:e,cwd:t}){let[n,r]=(0,_.useState)(!1),i=EE(),a=NT(e),o=ME(e.path,t),s={created:`New`,edited:`Edited`,deleted:`Deleted`,moved:`Moved`}[e.kind];return(0,j.jsxs)(`li`,{className:`border-b border-border`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-2`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>r(e=>!e),"aria-expanded":n,className:`flex min-w-0 flex-1 items-center gap-2 text-left`,children:[(0,j.jsx)(bE,{size:13,className:Z(`shrink-0 transition-transform`,!n&&`-rotate-90`)}),(0,j.jsx)(xE,{size:14,className:`shrink-0 text-muted-foreground`}),(0,j.jsx)(`span`,{className:`min-w-0 truncate text-[12.5px] font-medium`,title:e.path,children:o})]}),(0,j.jsx)(`span`,{className:`shrink-0 text-[11px] text-muted-foreground`,children:s}),(0,j.jsxs)(`span`,{className:`shrink-0 font-mono text-[11px]`,children:[a.added?(0,j.jsxs)(`span`,{className:`cs-count-add`,children:[`+`,a.added]}):null,` `,a.removed?(0,j.jsxs)(`span`,{className:`cs-count-del`,children:[`−`,a.removed]}):null]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void OE(e.path,i,`File path`),"aria-label":`Copy the path of ${o}`,title:`Copy path`,children:(0,j.jsx)(xE,{size:12})})]}),n?(0,j.jsx)(`div`,{className:`space-y-3 px-4 pb-3`,children:e.edits.map((e,t)=>(0,j.jsx)(NE,{edit:e},`${e.toolCallId}-${t}`))}):null]})}function FE(e){return(0,_.useMemo)(()=>MT(e),[e])}function IE(e){return(0,j.jsxs)(`aside`,{className:`cs-changes`,"aria-label":`Files changed in this chat`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-4 py-3`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h2`,{className:`text-[13.5px] font-semibold`,children:`Files changed`}),(0,j.jsxs)(`p`,{className:`text-[11.5px] text-muted-foreground`,children:[e.files.length===0?`Nothing yet`:`${e.files.length} ${e.files.length===1?`file`:`files`}, from this chat's own record`,e.truncated?` · only the part of the chat shown here`:``]})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:e.onClose,"aria-label":`Close files changed`,children:(0,j.jsx)(SE,{size:14})})]}),e.files.length===0?(0,j.jsx)(`p`,{className:`px-4 py-6 text-center text-[12.5px] leading-5 text-muted-foreground`,children:`The agent hasn't written any files in this chat yet.`}):(0,j.jsx)(`ul`,{className:`min-h-0 flex-1 overflow-y-auto`,children:e.files.map(t=>(0,j.jsx)(PE,{file:t,cwd:e.cwd},t.path))})]})}function LE(e){let t=e?.defaultModel;return t?t.source===`settings`?`${t.id}, from your settings`:`${t.id}, the built-in default`:`${e?.label??`the agent`}'s own default`}function RE(e,t){let n=e.model??t?.defaultModel?.id??`Default model`,r=e.effort??t?.defaultEffort??null;return r?`${n} · ${r}`:n}function zE(e){let[t,n]=(0,_.useState)(!1),[r,i]=(0,_.useState)(``),a=e.status?.models??[],o=e.status?.efforts??[],s=e.value.model===null||a.some(t=>t.id===e.value.model),c=t=>e.onChange({...e.value,...t});return(0,j.jsxs)(zS,{open:t,onOpenChange:n,children:[(0,j.jsx)(BS,{asChild:!0,children:(0,j.jsxs)(`button`,{type:`button`,disabled:e.disabled,className:Z(e.appearance===`field`?`cs-model-field`:`cs-chip-button`),"aria-label":`Model and effort: ${RE(e.value,e.status)}. Change`,title:`Model and effort`,children:[(0,j.jsx)(`span`,{className:`truncate`,children:RE(e.value,e.status)}),(0,j.jsx)(bE,{size:12,className:`shrink-0`})]})}),(0,j.jsxs)(VS,{align:`start`,className:`w-[300px] p-0`,children:[(0,j.jsxs)(`div`,{className:`max-h-[320px] overflow-y-auto p-1`,role:`listbox`,"aria-label":`Model`,children:[(0,j.jsx)(`p`,{className:`px-2 pb-1 pt-1.5 text-[11px] font-medium uppercase tracking-[0.05em] text-muted-foreground`,children:`Model`}),(0,j.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":e.value.model===null,className:`cs-option`,onClick:()=>c({model:null}),children:[(0,j.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,j.jsx)(`span`,{className:`block text-[13px]`,children:`Default`}),(0,j.jsx)(`span`,{className:`block truncate text-[11.5px] text-muted-foreground`,children:LE(e.status)})]}),e.value.model===null?(0,j.jsx)(tE,{size:14}):null]}),a.map(t=>(0,j.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":e.value.model===t.id,className:`cs-option`,onClick:()=>c({model:t.id}),children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px]`,children:t.label}),e.value.model===t.id?(0,j.jsx)(tE,{size:14}):null]},t.id)),s?null:(0,j.jsxs)(`div`,{className:`cs-option`,"aria-selected":`true`,role:`option`,children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px]`,children:e.value.model}),(0,j.jsx)(tE,{size:14})]}),(0,j.jsx)(`div`,{className:`flex gap-1 px-1 pb-1 pt-1.5`,children:(0,j.jsx)(`input`,{value:r,onChange:e=>i(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),r.trim()&&(c({model:r.trim()}),i(``)))},placeholder:`Another model name…`,"aria-label":`Another model name`,spellCheck:!1,className:`cs-option-input`})})]}),o.length>0?(0,j.jsxs)(`div`,{className:`border-t border-border p-2`,children:[(0,j.jsx)(`p`,{className:`px-1 pb-1.5 text-[11px] font-medium uppercase tracking-[0.05em] text-muted-foreground`,children:`Thinking effort`}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-1`,role:`radiogroup`,"aria-label":`Thinking effort`,children:[null,...o].map(t=>(0,j.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":e.value.effort===t,className:Z(`cs-seg`,e.value.effort===t&&`cs-seg--on`),onClick:()=>c({effort:t}),title:t===null?`Default${e.status?.defaultEffort?` (${e.status.defaultEffort}, from your settings)`:``}`:void 0,children:t===null?`Default`:t},t??`default`))})]}):null]})]})}var BE=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function VE(e){return typeof e==`string`&&BE.test(e)}var HE=[`subject`,`character`,`style`,`mask`,`edit_target`,`composition_control`],UE=[`first_frame`,`last_frame`,`asset`,`style`];[...HE,...UE];var WE={subject:{label:`Subject`,ask:`Subject reference`,explanation:`Keeps this exact product or object recognisable: shape, materials, labels.`},character:{label:`Character`,ask:`Character reference`,explanation:`Keeps this person or character looking the same.`},style:{label:`Style`,ask:`Style reference`,explanation:`Borrows only the look (colours, lighting, medium), never the content.`},mask:{label:`Mask`,ask:`Mask`,explanation:`Marks the only area of the edited image that is allowed to change.`},edit_target:{label:`Edit this`,ask:`Image to edit`,explanation:`The image being edited; everything not asked for stays the same.`},composition_control:{label:`Composition`,ask:`Composition reference`,explanation:`Follows its layout, pose and geometry, not its appearance.`},first_frame:{label:`First frame`,ask:`First frame`,explanation:`The video starts on exactly this image.`},last_frame:{label:`Last frame`,ask:`Last frame`,explanation:`The video ends on exactly this image (needs a first frame).`},asset:{label:`Asset`,ask:`Asset reference`,explanation:`Keeps this product, object or character recognisable throughout the clip.`},extend:{label:`Extend`,ask:`Video to extend`,explanation:`The new clip continues this video from its last frame.`},restyle:{label:`Restyle`,ask:`Reference video`,explanation:`Re-renders this video: same motion and timing, a new look.`},lip_sync:{label:`Lip sync`,ask:`Lip-sync audio`,explanation:`The speech the on-screen face mouths, word for word.`}};function GE(e){return typeof e==`string`&&e in WE}var KE=[`image`,`video`,`audio`,`document`,`youtube`];function qE(e){return typeof e.control?.key==`string`&&e.control.key.length>0}function JE(e){let t=[],n=[];for(let r of e)(qE(r)?n:t).push(r);return{content:t,settings:n}}function YE(e){let{content:t,settings:n}=JE(e);if(n.length===0)return e;let r=[...t,...n];return r.every((t,n)=>t===e[n])?e:r}function XE(e){let t=e.customComponent?.type,n=e.customComponent?.imageRole;return(t===`image`||t===`video`||t===`audio`)&&GE(n)?n:null}function ZE(e,t=de){let n=(e.label??``).trim();if(n!==``)return n;let r=XE(e);return r?WE[r].ask:t(e.name)||e.name}function QE(e){if(e.helpText)return e.helpText;let t=XE(e);return t?WE[t].explanation:void 0}function $E(e,t=de){return YE([...e??[]]).map(e=>{let n=e.customComponent?.type??`textarea`,r=e.customComponent?.options??void 0;return{name:e.name,label:ZE(e,t),hint:QE(e),group:qE(e)?`settings`:`content`,required:!!e.required,component:n,options:r&&r.length>0?r:void 0,mediaKind:KE.includes(n)?n:null,role:XE(e),controlKey:qE(e)?e.control?.key??null:null,variable:e}})}function eD(e){return e}function tD(e){return`mandate:${e}`}function nD(e){return e.startsWith(`mandate:`)}var rD=[{value:`updated-desc`,label:`Recent`},{value:`created-desc`,label:`Created`},{value:`name-asc`,label:`A → Z`},{value:`name-desc`,label:`Z → A`},{value:`category-asc`,label:`Category`}],iD=[`active`,`both`,`archived`],aD=[{value:`active`,label:`Hide archived`,chip:`Archive`},{value:`both`,label:`Show all`,chip:`All + archived`},{value:`archived`,label:`Archived only`,chip:`Archived only`}];function oD(e){let t=iD.indexOf(e);return t<0?iD[0]:iD[(t+1)%iD.length]}function sD(e){return e===`active`||e===`archived`||e===`both`}var cD={tab:`mine`,sortBy:`updated-desc`,searchTerm:``,includedCats:[],includedTags:[],favFilter:`all`,archFilter:`active`,accessFilter:`any`,favoritesFirst:!0,listPage:1,sharedPage:1,serverMatchedIds:[],isServerSearching:!1,deepSearch:!1},lD=class extends Error{name=`AgentCatalogConfigError`;code;remedy;constructor(e){super(`${e.message} — ${e.remedy}`),this.code=e.code,this.remedy=e.remedy}},uD={publicTab:`Public`,systemBadge:`system`,archivedBadge:`Archived`,searchPlaceholder:`Search agents...`,currentAgentHeading:`Current agent`,emptyDefault:`No agents found`,emptyShared:`No shared agents found`,emptySystem:`No system agents found`,emptySignedOut:`Sign in to see your agents`,loading:`Loading...`,triggerFallback:`Agents`,triggerResolving:`Naming the agent…`,triggerUnnameable:`An agent this list cannot name`,hoverHint:`Hover an agent to preview its details, or click to select.`};function dD(e){return e.ok===!1}function fD(){let e=!1;return t=>{e||(e=!0,console.error("[associations] no errorSink port bound — using the package default. Bind the `errorSink` port on createAssociationsStore({ errorSink }) to route these into your diagnostics surface; until then they only reach the console.")),console.error(`[associations] ${t.code}: ${t.message}`,t.context??{})}}var pD={access_delta_probe:{token:`access_delta_probe`,schema:`iam`,table:`access_delta_probe`,label:`Access Delta Probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},access_delta_run:{token:`access_delta_run`,schema:`iam`,table:`access_delta_run`,label:`Access Delta Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},access_request:{token:`access_request`,schema:`iam`,table:`access_requests`,label:`Access Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`System`,referencePickable:!1,titleColumn:null,contentRole:`utility`,referenceCategory:null},account_addon:{token:`account_addon`,schema:`billing`,table:`account_addon`,label:`Account Addon`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},acquisition_block:{token:`acquisition_block`,schema:`platform`,table:`acquisition_block`,label:`Acquisition Block`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},activity:{token:`activity`,schema:`platform`,table:`activity_log`,label:`Activity Log Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_audit_log:{token:`admin_audit_log`,schema:`admin`,table:`admin_audit_log`,label:`Admin audit log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_email_log:{token:`admin_email_log`,schema:`admin`,table:`admin_email_logs`,label:`Admin email log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_markdown_sample:{token:`admin_markdown_sample`,schema:`admin`,table:`admin_markdown_samples`,label:`Admin markdown sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_user:{token:`admin_user`,schema:`admin`,table:`admins`,label:`Platform admin`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admission_config:{token:`admission_config`,schema:`content_ir`,table:`admission_config`,label:`Admission Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent:{token:`agent`,schema:`agent`,table:`definition`,label:`Agent`,baseTier:1,isComponent:!1,isModule:!0,isListed:!0,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},agent_card:{token:`agent_card`,schema:`agent`,table:`card`,label:`Agent Card`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_definition_version:{token:`agent_definition_version`,schema:`agent`,table:`definition_version`,label:`Agent Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_drift_alert:{token:`agent_drift_alert`,schema:`agent`,table:`drift_alert`,label:`Agent Drift Alert`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_exemplar:{token:`agent_exemplar`,schema:`agent`,table:`exemplar`,label:`Agent Test Case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_mandate_note:{token:`agent_mandate_note`,schema:`agent`,table:`mandate_note`,label:`Mandate Note`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_prompt_remediation:{token:`agent_prompt_remediation`,schema:`agent`,table:`prompt_remediation`,label:`Agent Prompt Remediation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_run:{token:`agent_run`,schema:`chat`,table:`agent_run`,label:`Agent Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_run_stage:{token:`agent_run_stage`,schema:`chat`,table:`agent_run_stage`,label:`Agent Run Stage`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_schedule:{token:`agent_schedule`,schema:`scheduler`,table:`agent_schedule`,label:`Agent Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_schedule_claim:{token:`agent_schedule_claim`,schema:`scheduler`,table:`agent_schedule_claim`,label:`Agent Schedule Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_shortcut:{token:`agent_shortcut`,schema:`agent`,table:`shortcut`,label:`Agent Shortcut`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},agent_surface_binding:{token:`agent_surface_binding`,schema:`platform`,table:`associations`,label:`Agent Surface Binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},agent_template:{token:`agent_template`,schema:`agent`,table:`template`,label:`Agent Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_term_list:{token:`agent_term_list`,schema:`agent`,table:`term_list`,label:`Term List`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_usage:{token:`agent_usage`,schema:`agent`,table:`usage`,label:`Agent Usage`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_api:{token:`ai_api`,schema:`ai`,table:`api`,label:`AI API`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_calls:{token:`ai_calls`,schema:`runtime`,table:`_ai_calls`,label:`AI model calls`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_endpoint:{token:`ai_endpoint`,schema:`ai`,table:`endpoint`,label:`AI Endpoint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},ai_model:{token:`ai_model`,schema:`ai`,table:`model_definition`,label:`AI Model`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_model_alias:{token:`ai_model_alias`,schema:`ai`,table:`model_alias`,label:`AI Model Alias`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_offering:{token:`ai_offering`,schema:`ai`,table:`offering`,label:`AI Offering`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_provider:{token:`ai_provider`,schema:`ai`,table:`provider`,label:`AI Provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_setting:{token:`ai_setting`,schema:`ai`,table:`setting`,label:`AI Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`key`,contentRole:null,referenceCategory:null},ai_setting_profile:{token:`ai_setting_profile`,schema:`ai`,table:`setting_profile`,label:`Settings Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`AI catalog`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_translation_cell:{token:`ai_translation_cell`,schema:`ai`,table:`translation_cell`,label:`Translation Cell`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`AI catalog`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_executions:{token:`ai_usage_executions`,schema:`runtime`,table:`_ai_usage_calls`,label:`AI usage by execution`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_hourly:{token:`ai_usage_hourly`,schema:`runtime`,table:`_ai_usage_hourly`,label:`AI usage by hour`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_hourly_watermark:{token:`ai_usage_hourly_watermark`,schema:`runtime`,table:`_ai_usage_hourly_watermark`,label:`AI usage counted through`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},analysis_result:{token:`analysis_result`,schema:`files`,table:`analysis_result`,label:`Analysis Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_form:{token:`anon_form`,schema:`custom`,table:`anon_form`,label:`Public form`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},anon_function_birth_grandfather:{token:`anon_function_birth_grandfather`,schema:`platform`,table:`anon_function_birth_grandfather`,label:`Anon Function Birth Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_hit:{token:`anon_hit`,schema:`custom`,table:`anon_hit`,label:`Anonymous rate window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_inbound:{token:`anon_inbound`,schema:`custom`,table:`anon_inbound`,label:`Inbound address`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_replay:{token:`anon_replay`,schema:`custom`,table:`anon_replay`,label:`Offline capture ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_submission:{token:`anon_submission`,schema:`custom`,table:`anon_submission`,label:`Quarantined submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_token:{token:`anon_token`,schema:`custom`,table:`anon_token`,label:`Embed token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},api_field_warning:{token:`api_field_warning`,schema:`ops`,table:`api_field_warnings`,label:`API field warning`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},api_request_log:{token:`api_request_log`,schema:`ops`,table:`api_request_log`,label:`API request log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app:{token:`app`,schema:`app`,table:`definition`,label:`App`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},app_config:{token:`app_config`,schema:`public`,table:`app_config`,label:`App config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_config_history:{token:`app_config_history`,schema:`public`,table:`app_config_history`,label:`App Config History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_definition_version:{token:`app_definition_version`,schema:`app`,table:`definition_version`,label:`App Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},app_error:{token:`app_error`,schema:`app`,table:`error`,label:`App Error`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_execution:{token:`app_execution`,schema:`app`,table:`execution`,label:`App Execution`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_instance:{token:`app_instance`,schema:`public`,table:`app_instances`,label:`App Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log:{token:`app_log`,schema:`ops`,table:`app_log`,label:`App Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log_muted_pattern:{token:`app_log_muted_pattern`,schema:`ops`,table:`app_log_muted_pattern`,label:`Muted log pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log_norm_exception:{token:`app_log_norm_exception`,schema:`ops`,table:`app_log_norm_exception`,label:`Log normalisation exception`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_rate_limit:{token:`app_rate_limit`,schema:`app`,table:`rate_limit`,label:`App Rate Limit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_setting:{token:`app_setting`,schema:`public`,table:`app_settings`,label:`App Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_sync_status:{token:`app_sync_status`,schema:`public`,table:`app_sync_status`,label:`App Sync Status`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},approach:{token:`approach`,schema:`platform`,table:`approach`,label:`Approach`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},artifact:{token:`artifact`,schema:`chat`,table:`artifact`,label:`Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},assessment:{token:`assessment`,schema:`education`,table:`assessment`,label:`Assessment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},assessment_item:{token:`assessment_item`,schema:`education`,table:`assessment_item`,label:`Assessment Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assessment_result:{token:`assessment_result`,schema:`education`,table:`assessment_result`,label:`Assessment Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assignment_session:{token:`assignment_session`,schema:`assignment`,table:`session`,label:`Assignment session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assist:{token:`assist`,schema:`platform`,table:`assists`,label:`Assist`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`platform`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},assist_producer_policy:{token:`assist_producer_policy`,schema:`platform`,table:`assist_producer_policy`,label:`Assist producer policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assist_producer_policy_history:{token:`assist_producer_policy_history`,schema:`platform`,table:`assist_producer_policy_history`,label:`Assist Producer Policy History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},association_type:{token:`association_type`,schema:`platform`,table:`association_types`,label:`Association type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assurance_level:{token:`assurance_level`,schema:`platform`,table:`assurance_level`,label:`Assurance level`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},attempt:{token:`attempt`,schema:`assignment`,table:`attempt`,label:`Attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_broken_functions:{token:`audit_broken_functions`,schema:`audit`,table:`broken_functions`,label:`Broken functions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_canonical_findings:{token:`audit_canonical_findings`,schema:`audit`,table:`canonical_findings`,label:`Canonical findings`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_exemption:{token:`audit_exemption`,schema:`meta`,table:`audit_exemption`,label:`Audit exemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_function_deps:{token:`audit_function_deps`,schema:`audit`,table:`function_deps`,label:`Function dependencies`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_function_runtime_probe:{token:`audit_function_runtime_probe`,schema:`audit`,table:`function_runtime_probe`,label:`Function runtime probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_m2m_candidates:{token:`audit_m2m_candidates`,schema:`audit`,table:`m2m_candidates`,label:`M2M candidates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_refresh_log:{token:`audit_refresh_log`,schema:`audit`,table:`refresh_log`,label:`Audit refresh log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_stale_registry:{token:`audit_stale_registry`,schema:`audit`,table:`stale_registry`,label:`Stale registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_unregistered_candidates:{token:`audit_unregistered_candidates`,schema:`audit`,table:`unregistered_candidates`,label:`Unregistered candidates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},base_entity_template:{token:`base_entity_template`,schema:`platform`,table:`_base_entity`,label:`Base entity template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_cost_event:{token:`batch_cost_event`,schema:`batch`,table:`cost_event`,label:`Batch Cost Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_provider_batch:{token:`batch_provider_batch`,schema:`batch`,table:`provider_batch`,label:`Provider Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_work_item:{token:`batch_work_item`,schema:`batch`,table:`work_item`,label:`Batch Work Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_capability:{token:`billing_capability`,schema:`billing`,table:`capability`,label:`Billing capability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_capability_limit:{token:`billing_capability_limit`,schema:`billing`,table:`capability_limit`,label:`Billing capability limit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_connect_account:{token:`billing_connect_account`,schema:`billing`,table:`connect_account`,label:`Billing connect account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_coupon:{token:`billing_coupon`,schema:`billing`,table:`coupon`,label:`Coupon`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_coupon_redemption:{token:`billing_coupon_redemption`,schema:`billing`,table:`coupon_redemption`,label:`Coupon redemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_customer:{token:`billing_customer`,schema:`billing`,table:`customer`,label:`Billing customer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_free_period_grant:{token:`billing_free_period_grant`,schema:`billing`,table:`free_period_grant`,label:`Free period grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_plan:{token:`billing_plan`,schema:`billing`,table:`plan`,label:`Billing plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_plan_limit:{token:`billing_plan_limit`,schema:`billing`,table:`plan_limit`,label:`Billing plan limit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_price:{token:`billing_price`,schema:`billing`,table:`price`,label:`Billing price`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_product:{token:`billing_product`,schema:`billing`,table:`product`,label:`Billing product`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_spend_approval:{token:`billing_spend_approval`,schema:`billing`,table:`spend_approval`,label:`Spend Approval`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_spend_guardrail:{token:`billing_spend_guardrail`,schema:`billing`,table:`spend_guardrail`,label:`Spend Guardrail`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_stripe_event:{token:`billing_stripe_event`,schema:`billing`,table:`stripe_event`,label:`Stripe webhook event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_subscription:{token:`billing_subscription`,schema:`billing`,table:`subscription`,label:`Billing subscription`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_usage_ledger:{token:`billing_usage_ledger`,schema:`billing`,table:`usage_ledger`,label:`Usage ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_usage_reset:{token:`billing_usage_reset`,schema:`billing`,table:`usage_reset`,label:`Usage reset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_user_plan:{token:`billing_user_plan`,schema:`billing`,table:`user_plan`,label:`User plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},board:{token:`board`,schema:`projects`,table:`boards`,label:`Board`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_account_binding:{token:`browser_account_binding`,schema:`browser`,table:`account_binding`,label:`Browser Account Binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_action_event:{token:`browser_action_event`,schema:`browser`,table:`action_event`,label:`Browser Action Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_authenticator_window:{token:`browser_authenticator_window`,schema:`browser`,table:`authenticator_window`,label:`Browser Authenticator Window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_capture:{token:`browser_capture`,schema:`browser`,table:`capture`,label:`Browser Capture`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_control_request:{token:`browser_control_request`,schema:`browser`,table:`control_request`,label:`Browser Control Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_handoff:{token:`browser_handoff`,schema:`browser`,table:`handoff`,label:`Browser Handoff`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_login_attempt:{token:`browser_login_attempt`,schema:`browser`,table:`login_attempt`,label:`Browser Login Attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_login_recipe:{token:`browser_login_recipe`,schema:`browser`,table:`login_recipe`,label:`Browser Login Recipe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_profile:{token:`browser_profile`,schema:`browser`,table:`profile`,label:`Cloud Browser Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_profile_checkpoint:{token:`browser_profile_checkpoint`,schema:`browser`,table:`profile_checkpoint`,label:`Browser Profile Checkpoint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_run:{token:`browser_run`,schema:`browser`,table:`run`,label:`Cloud Browser Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_site_observation:{token:`browser_site_observation`,schema:`browser`,table:`site_observation`,label:`Browser Site Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_site_policy:{token:`browser_site_policy`,schema:`browser`,table:`site_policy`,label:`Browser Site Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_stream_ticket:{token:`browser_stream_ticket`,schema:`browser`,table:`stream_ticket`,label:`Browser Stream Ticket`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},build_lock:{token:`build_lock`,schema:`campaign_watch`,table:`build_lock`,label:`Build Lock`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},calendar_event:{token:`calendar_event`,schema:`communication`,table:`calendar_event`,label:`Calendar event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_ramp_gate_run:{token:`campaign_watch_ramp_gate_run`,schema:`campaign_watch`,table:`ramp_gate_run`,label:`Ramp gate run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_switch_outbox:{token:`campaign_watch_switch_outbox`,schema:`campaign_watch`,table:`switch_outbox`,label:`Switch outbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_switch_window:{token:`campaign_watch_switch_window`,schema:`campaign_watch`,table:`switch_window`,label:`Switch window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_comment:{token:`canvas_comment`,schema:`canvas`,table:`canvas_comments`,label:`Canvas Comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},canvas_comment_like:{token:`canvas_comment_like`,schema:`canvas`,table:`canvas_comment_likes`,label:`Canvas Comment Like`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_item:{token:`canvas_item`,schema:`canvas`,table:`canvas_items`,label:`Canvas Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},canvas_item_state:{token:`canvas_item_state`,schema:`canvas`,table:`canvas_item_state`,label:`Canvas Item State`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_like:{token:`canvas_like`,schema:`canvas`,table:`canvas_likes`,label:`Canvas Like`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_score:{token:`canvas_score`,schema:`canvas`,table:`canvas_scores`,label:`Canvas Score`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},canvas_view:{token:`canvas_view`,schema:`canvas`,table:`canvas_views`,label:`Canvas View`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},capture_window:{token:`capture_window`,schema:`history`,table:`capture_window`,label:`Capture Window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},carrying_rule:{token:`carrying_rule`,schema:`custom`,table:`carrying_rule`,label:`Carrying Rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},catalog_entries_history:{token:`catalog_entries_history`,schema:`public`,table:`catalog_entries_history`,label:`Catalog Entries History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},catalog_entry:{token:`catalog_entry`,schema:`public`,table:`catalog_entries`,label:`Catalog entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},category:{token:`category`,schema:`platform`,table:`categories`,label:`Category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},change_type_default:{token:`change_type_default`,schema:`platform`,table:`change_type_default`,label:`Change type default`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},chat_user_usage_summary:{token:`chat_user_usage_summary`,schema:`chat`,table:`user_usage_summary`,label:`Chat usage summary`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},citations:{token:`citations`,schema:`legal`,table:`citations`,label:`Citations`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},class_purchase:{token:`class_purchase`,schema:`billing`,table:`class_purchase`,label:`Class Purchase`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},classifier_revision_ledger:{token:`classifier_revision_ledger`,schema:`seo`,table:`classifier_revision_ledger`,label:`Classifier Revision Ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_callable_door:{token:`client_callable_door`,schema:`platform`,table:`client_callable_door`,label:`Client Callable Door`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_callable_door_retirement:{token:`client_callable_door_retirement`,schema:`platform`,table:`client_callable_door_retirement`,label:`Client Callable Door Retirement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_excluded_column_unregistered:{token:`client_excluded_column_unregistered`,schema:`platform`,table:`client_excluded_column_unregistered`,label:`Client Excluded Column Unregistered`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cmp_entry:{token:`cmp_entry`,schema:`agent`,table:`cmp_comparison_entries`,label:`Comparison Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cmp_feedback:{token:`cmp_feedback`,schema:`agent`,table:`cmp_response_feedback`,label:`Comparison Response Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},code_file:{token:`code_file`,schema:`code`,table:`code_files`,label:`Code File`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},code_folder:{token:`code_folder`,schema:`code`,table:`code_file_folders`,label:`Code Folder`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},code_repository:{token:`code_repository`,schema:`code`,table:`code_repositories`,label:`Code Repository`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},coding_session:{token:`coding_session`,schema:`chat`,table:`coding_session`,label:`Coding Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},coding_session_entry:{token:`coding_session_entry`,schema:`chat`,table:`coding_session_entry`,label:`Coding Session Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},comment:{token:`comment`,schema:`platform`,table:`comments`,label:`Comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_allocation:{token:`commerce_asset_allocation`,schema:`commerce`,table:`asset_allocation`,label:`Asset Allocation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_grading:{token:`commerce_asset_grading`,schema:`commerce`,table:`asset_grading`,label:`Asset Grading`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_identifier:{token:`commerce_asset_identifier`,schema:`commerce`,table:`asset_identifier`,label:`Asset Identifier`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_lot_event:{token:`commerce_asset_lot_event`,schema:`commerce`,table:`asset_lot_event`,label:`Asset Lot Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_mandate_result:{token:`commerce_asset_mandate_result`,schema:`commerce`,table:`asset_mandate_result`,label:`Asset Mandate Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_price_factor:{token:`commerce_asset_price_factor`,schema:`commerce`,table:`asset_price_factor`,label:`Asset Price Factor`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_reshoot_request:{token:`commerce_asset_reshoot_request`,schema:`commerce`,table:`asset_reshoot_request`,label:`Asset Reshoot Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_review:{token:`commerce_asset_review`,schema:`commerce`,table:`asset_review`,label:`Asset Review`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_unknown:{token:`commerce_asset_unknown`,schema:`commerce`,table:`asset_unknown`,label:`Asset Unknown`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_certified_printer:{token:`commerce_certified_printer`,schema:`commerce`,table:`certified_printer`,label:`Certified Printer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_cloud_sync_connection:{token:`commerce_cloud_sync_connection`,schema:`commerce`,table:`cloud_sync_connection`,label:`Cloud Sync Connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_business_policy:{token:`commerce_ebay_business_policy`,schema:`commerce`,table:`ebay_business_policy`,label:`eBay Business Policy`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category:{token:`commerce_ebay_category`,schema:`commerce`,table:`ebay_category`,label:`eBay Category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category_aspect:{token:`commerce_ebay_category_aspect`,schema:`commerce`,table:`ebay_category_aspect`,label:`eBay Category Aspect`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category_tree:{token:`commerce_ebay_category_tree`,schema:`commerce`,table:`ebay_category_tree`,label:`eBay Category Tree`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_custom_policy:{token:`commerce_ebay_custom_policy`,schema:`commerce`,table:`ebay_custom_policy`,label:`eBay Custom Policy`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item:{token:`commerce_ebay_inventory_item`,schema:`commerce`,table:`ebay_inventory_item`,label:`eBay Inventory Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item_group:{token:`commerce_ebay_inventory_item_group`,schema:`commerce`,table:`ebay_inventory_item_group`,label:`eBay Inventory Item Group`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item_group_member:{token:`commerce_ebay_inventory_item_group_member`,schema:`commerce`,table:`ebay_inventory_item_group_member`,label:`eBay Inventory Item Group Member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_location:{token:`commerce_ebay_inventory_location`,schema:`commerce`,table:`ebay_inventory_location`,label:`eBay Inventory Location`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_listing:{token:`commerce_ebay_listing`,schema:`commerce`,table:`ebay_listing`,label:`eBay Listing`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_marketplace_policy:{token:`commerce_ebay_marketplace_policy`,schema:`commerce`,table:`ebay_marketplace_policy`,label:`eBay Marketplace Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_media_asset:{token:`commerce_ebay_media_asset`,schema:`commerce`,table:`ebay_media_asset`,label:`eBay Media Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_destination:{token:`commerce_ebay_notification_destination`,schema:`commerce`,table:`ebay_notification_destination`,label:`eBay Notification Destination`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_event:{token:`commerce_ebay_notification_event`,schema:`commerce`,table:`ebay_notification_event`,label:`eBay Notification Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_subscription:{token:`commerce_ebay_notification_subscription`,schema:`commerce`,table:`ebay_notification_subscription`,label:`eBay Notification Subscription`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_topic:{token:`commerce_ebay_notification_topic`,schema:`commerce`,table:`ebay_notification_topic`,label:`eBay Notification Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_offer:{token:`commerce_ebay_offer`,schema:`commerce`,table:`ebay_offer`,label:`eBay Offer`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_order:{token:`commerce_ebay_order`,schema:`commerce`,table:`ebay_order`,label:`eBay Order`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_order_line_item:{token:`commerce_ebay_order_line_item`,schema:`commerce`,table:`ebay_order_line_item`,label:`eBay Order Line Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_shipping_fulfillment:{token:`commerce_ebay_shipping_fulfillment`,schema:`commerce`,table:`ebay_shipping_fulfillment`,label:`eBay Shipping Fulfillment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_store_category:{token:`commerce_ebay_store_category`,schema:`commerce`,table:`ebay_store_category`,label:`eBay Store Category`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_human_correction:{token:`commerce_human_correction`,schema:`commerce`,table:`human_correction`,label:`Human Correction`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_artifact:{token:`commerce_intake_artifact`,schema:`commerce`,table:`intake_artifact`,label:`Intake Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_asset:{token:`commerce_intake_asset`,schema:`commerce`,table:`intake_asset`,label:`Intake Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_batch:{token:`commerce_intake_batch`,schema:`commerce`,table:`intake_batch`,label:`Intake Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_label_batch:{token:`commerce_label_batch`,schema:`commerce`,table:`label_batch`,label:`Label Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_label_code:{token:`commerce_label_code`,schema:`commerce`,table:`label_code`,label:`Label Code`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_account:{token:`commerce_marketplace_account`,schema:`commerce`,table:`marketplace_account`,label:`Marketplace Account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_account_deletion_audit:{token:`commerce_marketplace_account_deletion_audit`,schema:`commerce`,table:`marketplace_account_deletion_audit`,label:`Marketplace Account Deletion Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_api_call:{token:`commerce_marketplace_api_call`,schema:`commerce`,table:`marketplace_api_call`,label:`Marketplace API Call`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_rate_budget:{token:`commerce_marketplace_rate_budget`,schema:`commerce`,table:`marketplace_rate_budget`,label:`Marketplace Rate Budget`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_site:{token:`commerce_marketplace_site`,schema:`commerce`,table:`marketplace_site`,label:`Marketplace Site`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_sync_run:{token:`commerce_marketplace_sync_run`,schema:`commerce`,table:`marketplace_sync_run`,label:`Marketplace Sync Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_prediction_outcome:{token:`commerce_prediction_outcome`,schema:`commerce`,table:`prediction_outcome`,label:`Prediction Outcome`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_print_order:{token:`commerce_print_order`,schema:`commerce`,table:`print_order`,label:`Print Order`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product:{token:`commerce_product`,schema:`commerce`,table:`product`,label:`Product`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_channel_ref:{token:`commerce_product_channel_ref`,schema:`commerce`,table:`product_channel_ref`,label:`Product Channel Reference`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_media:{token:`commerce_product_media`,schema:`commerce`,table:`product_media`,label:`Product Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_variant:{token:`commerce_product_variant`,schema:`commerce`,table:`product_variant`,label:`Product Variant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_recall_audit:{token:`commerce_recall_audit`,schema:`commerce`,table:`recall_audit`,label:`Recall Audit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},communication_calendar_selected_snapshot_state:{token:`communication_calendar_selected_snapshot_state`,schema:`communication`,table:`calendar_selected_snapshot_state`,label:`Calendar snapshot state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},communication_channel_readiness:{token:`communication_channel_readiness`,schema:`communication`,table:`channel_readiness`,label:`Channel readiness`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},comparison_set:{token:`comparison_set`,schema:`agent`,table:`cmp_comparison_sets`,label:`Comparison Set`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},contact_medium:{token:`contact_medium`,schema:`crm`,table:`contact_medium`,label:`Contact Medium`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_value`,contentRole:`utility`,referenceCategory:null},contact_submission:{token:`contact_submission`,schema:`communication`,table:`contact_submissions`,label:`Contact Submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},content_certification:{token:`content_certification`,schema:`education`,table:`content_certification`,label:`Content certification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind:{token:`content_ir_kind`,schema:`content_ir`,table:`kind_definition`,label:`Content-IR Kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},content_ir_kind_component:{token:`content_ir_kind_component`,schema:`content_ir`,table:`kind_component`,label:`Kind Component`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_component_incident:{token:`content_ir_kind_component_incident`,schema:`content_ir`,table:`kind_component_incident`,label:`Kind Component Incident`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_conformance:{token:`content_ir_kind_conformance`,schema:`content_ir`,table:`kind_conformance`,label:`Shape Conformance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_edge:{token:`content_ir_kind_edge`,schema:`content_ir`,table:`kind_edge`,label:`Content-IR Kind Edge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_example:{token:`content_ir_kind_example`,schema:`content_ir`,table:`kind_example`,label:`Kind Example`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},content_ir_kind_instance:{token:`content_ir_kind_instance`,schema:`content_ir`,table:`kind_instance`,label:`Saved Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},content_ir_kind_surface:{token:`content_ir_kind_surface`,schema:`content_ir`,table:`kind_surface`,label:`Kind Surface`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_lane:{token:`content_lane`,schema:`iam`,table:`content_lane`,label:`Content Lane`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_access_log:{token:`context_access_log`,schema:`context`,table:`context_access_log`,label:`Context access log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_item:{token:`context_item`,schema:`context`,table:`context_items`,label:`Context Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},context_item_suggestion:{token:`context_item_suggestion`,schema:`rag`,table:`context_item_suggestions`,label:`Context Item Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_item_value:{token:`context_item_value`,schema:`context`,table:`context_item_values`,label:`Record Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_value_refs:{token:`context_value_refs`,schema:`context`,table:`context_value_refs`,label:`Context Value Refs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},conversation:{token:`conversation`,schema:`chat`,table:`conversation`,label:`Conversation`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Outputs`,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},conversation_value:{token:`conversation_value`,schema:`chat`,table:`conversation_value`,label:`Conversation Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:`key`,contentRole:null,referenceCategory:null},courts:{token:`courts`,schema:`legal`,table:`courts`,label:`Courts`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},credential_attachment:{token:`credential_attachment`,schema:`users`,table:`credential_attachments`,label:`Credential attachment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},credential_item:{token:`credential_item`,schema:`users`,table:`credential_items`,label:`Credential item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},credential_mutation_receipt:{token:`credential_mutation_receipt`,schema:`users`,table:`credential_mutation_receipts`,label:`Credential Mutation Receipt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_address:{token:`crm_address`,schema:`crm`,table:`address`,label:`Address`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},crm_affiliation:{token:`crm_affiliation`,schema:`crm`,table:`affiliation`,label:`Affiliation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},crm_blocklist_entry:{token:`crm_blocklist_entry`,schema:`crm`,table:`blocklist_entry`,label:`Blocklist Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_contact_candidate:{token:`crm_contact_candidate`,schema:`crm`,table:`contact_candidate`,label:`Contact Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_deal:{token:`crm_deal`,schema:`crm`,table:`deal`,label:`Deal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},crm_deal_stage_event:{token:`crm_deal_stage_event`,schema:`crm`,table:`deal_stage_event`,label:`Deal Stage Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_enrichment_call:{token:`crm_enrichment_call`,schema:`crm`,table:`enrichment_call`,label:`Enrichment Call`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_interaction:{token:`crm_interaction`,schema:`crm`,table:`interaction`,label:`Interaction`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`subject`,contentRole:null,referenceCategory:null},crm_merge_candidate:{token:`crm_merge_candidate`,schema:`crm`,table:`merge_candidate`,label:`Merge Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_outreach_list:{token:`crm_outreach_list`,schema:`crm`,table:`outreach_list`,label:`Outreach List`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},crm_outreach_list_member:{token:`crm_outreach_list_member`,schema:`crm`,table:`outreach_list_member`,label:`Outreach List Member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_party_merge:{token:`crm_party_merge`,schema:`crm`,table:`party_merge`,label:`Party Merge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_party_research:{token:`crm_party_research`,schema:`crm`,table:`party_research`,label:`Private contact research`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`CRM`,referencePickable:!1,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},crm_registry_ingest_run:{token:`crm_registry_ingest_run`,schema:`crm`,table:`registry_ingest_run`,label:`Registry Ingest Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_registry_source:{token:`crm_registry_source`,schema:`crm`,table:`registry_source`,label:`Registry Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_claim:{token:`crm_sending_claim`,schema:`crm`,table:`sending_claim`,label:`Sending claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_event:{token:`crm_sending_event`,schema:`crm`,table:`sending_event`,label:`Sending Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`subject`,contentRole:null,referenceCategory:null},crm_sending_identity:{token:`crm_sending_identity`,schema:`crm`,table:`sending_identity`,label:`Sending Identity`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_identity_check:{token:`crm_sending_identity_check`,schema:`crm`,table:`sending_identity_check`,label:`Sending Check`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`check_kind`,contentRole:null,referenceCategory:null},crm_sending_policy:{token:`crm_sending_policy`,schema:`crm`,table:`sending_policy`,label:`Sending Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_agent_table_trust:{token:`custom_agent_table_trust`,schema:`custom`,table:`agent_table_trust`,label:`Agent table trust`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_agg_digest_checked:{token:`custom_agg_digest_checked`,schema:`custom`,table:`agg_digest_checked`,label:`Aggregate digest checked`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_entity_definition:{token:`custom_entity_definition`,schema:`platform`,table:`custom_entity_definition`,label:`Custom Object`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_field_definition:{token:`custom_field_definition`,schema:`platform`,table:`custom_field_definition`,label:`Custom Field`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_field_target:{token:`custom_field_target`,schema:`platform`,table:`custom_field_target`,label:`Custom Field Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_io_outbox_consumer:{token:`custom_io_outbox_consumer`,schema:`custom`,table:`io_outbox_consumer`,label:`Outbox consumer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_io_outbox_consumption:{token:`custom_io_outbox_consumption`,schema:`custom`,table:`io_outbox_consumption`,label:`Outbox consumption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_record:{token:`custom_record`,schema:`platform`,table:`custom_record`,label:`Custom Record`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_share_tails_mine_repair:{token:`custom_share_tails_mine_repair`,schema:`custom`,table:`_share_tails_mine_repair`,label:`Share tails repair`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_template:{token:`custom_template`,schema:`custom`,table:`template`,label:`Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_template_install:{token:`custom_template_install`,schema:`custom`,table:`template_install`,label:`Template install`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_agent_memory:{token:`cx_agent_memory`,schema:`chat`,table:`agent_memory`,label:`Agent Memory`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!0,titleColumn:`key`,contentRole:null,referenceCategory:null},cx_agent_plan:{token:`cx_agent_plan`,schema:`chat`,table:`agent_plan`,label:`Agent Plan`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},cx_agent_task:{token:`cx_agent_task`,schema:`chat`,table:`agent_task`,label:`Agent Task`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},cx_code_edit:{token:`cx_code_edit`,schema:`chat`,table:`code_edit`,label:`Code Edit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_code_message_file:{token:`cx_code_message_file`,schema:`chat`,table:`code_message_file`,label:`Code Message File`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_media:{token:`cx_media`,schema:`chat`,table:`media`,label:`Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_observational_memory:{token:`cx_observational_memory`,schema:`chat`,table:`observational_memory`,label:`Observational Memory`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_observational_memory_event:{token:`cx_observational_memory_event`,schema:`chat`,table:`observational_memory_event`,label:`Observational Memory Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_pending_injection:{token:`cx_pending_injection`,schema:`chat`,table:`pending_injection`,label:`Pending Injection`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_request:{token:`cx_request`,schema:`chat`,table:`request`,label:`Conversation Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_request_snapshot:{token:`cx_request_snapshot`,schema:`chat`,table:`request_snapshot`,label:`Request Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_tool_trace:{token:`cx_tool_trace`,schema:`chat`,table:`tool_trace`,label:`Tool Trace`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_user_request:{token:`cx_user_request`,schema:`chat`,table:`user_request`,label:`User Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_user_todo:{token:`cx_user_todo`,schema:`chat`,table:`user_todo`,label:`User Todo`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},data_rights_event:{token:`data_rights_event`,schema:`education`,table:`data_rights_event`,label:`Data rights event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},data_store:{token:`data_store`,schema:`rag`,table:`data_stores`,label:`Data Store`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},data_store_members:{token:`data_store_members`,schema:`rag`,table:`data_store_members`,label:`Data Store Members`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ddl_guard_log:{token:`ddl_guard_log`,schema:`platform`,table:`ddl_guard_log`,label:`DDL guard log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},deck_suggestion:{token:`deck_suggestion`,schema:`education`,table:`deck_suggestion`,label:`Deck Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_class_exemption:{token:`definer_class_exemption`,schema:`iam`,table:`definer_class_exemption`,label:`Definer Class Exemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_client_grant_grandfather:{token:`definer_client_grant_grandfather`,schema:`platform`,table:`definer_client_grant_grandfather`,label:`Definer Client Grant Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_grant_baseline:{token:`definer_grant_baseline`,schema:`hr`,table:`definer_grant_baseline`,label:`Definer Grant Baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},deprecated_relation:{token:`deprecated_relation`,schema:`platform`,table:`deprecated_relations`,label:`Deprecated relation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},derive_run:{token:`derive_run`,schema:`docproc`,table:`derive_runs`,label:`Derive Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dev_login_audit:{token:`dev_login_audit`,schema:`admin`,table:`dev_login_audit`,label:`Dev login audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_entry:{token:`dict_entry`,schema:`dictionary`,table:`dict_entries`,label:`Dictionary entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_provider_publication:{token:`dict_provider_publication`,schema:`dictionary`,table:`dict_provider_publication`,label:`Dict Provider Publication`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_setting:{token:`dict_setting`,schema:`dictionary`,table:`dict_settings`,label:`Dict Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_conversation:{token:`dm_conversation`,schema:`communication`,table:`dm_conversations`,label:`Direct Conversation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_message:{token:`dm_message`,schema:`communication`,table:`dm_messages`,label:`Direct Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_participant:{token:`dm_participant`,schema:`communication`,table:`dm_conversation_participants`,label:`DM Conversation Participant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},doc_render:{token:`doc_render`,schema:`custom`,table:`doc_render`,label:`Rendered Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},doc_signature:{token:`doc_signature`,schema:`custom`,table:`doc_signature`,label:`Document Signature`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dockets:{token:`dockets`,schema:`legal`,table:`dockets`,label:`Dockets`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},document:{token:`document`,schema:`content`,table:`document`,label:`Markdown document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:`title`,contentRole:`hybrid`,referenceCategory:null},document_version:{token:`document_version`,schema:`content`,table:`document_version`,label:`Document Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},domain_classification:{token:`domain_classification`,schema:`platform`,table:`domain_classification`,label:`Domain Classification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},edge_payload_kind:{token:`edge_payload_kind`,schema:`platform`,table:`edge_payload_kind`,label:`Edge payload kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_device:{token:`egress_device`,schema:`platform`,table:`egress_device`,label:`Home connection computer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_pairing:{token:`egress_pairing`,schema:`platform`,table:`egress_pairing`,label:`Home connection pairing`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_ticket:{token:`egress_ticket`,schema:`platform`,table:`egress_ticket`,label:`Home connection ticket`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},emails:{token:`emails`,schema:`communication`,table:`emails`,label:`Emails`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embedding_cache:{token:`embedding_cache`,schema:`rag`,table:`embedding_cache`,label:`Embedding Cache`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_google_gemini_2_1536:{token:`embeddings_google_gemini_2_1536`,schema:`rag`,table:`embeddings_google_gemini_2_1536`,label:`Embeddings Google Gemini 2 1536`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_oai_3_small_1536:{token:`embeddings_oai_3_small_1536`,schema:`rag`,table:`embeddings_oai_3_small_1536`,label:`Embeddings Oai 3 Small 1536`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_voyage_4_large_1024:{token:`embeddings_voyage_4_large_1024`,schema:`rag`,table:`embeddings_voyage_4_large_1024`,label:`Embeddings Voyage 4 Large 1024`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_voyage_code_3_1024:{token:`embeddings_voyage_code_3_1024`,schema:`rag`,table:`embeddings_voyage_code_3_1024`,label:`Embeddings Voyage Code 3 1024`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},endpoint_family_sweep_state:{token:`endpoint_family_sweep_state`,schema:`web`,table:`endpoint_family_sweep_state`,label:`Endpoint Family Sweep State`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},engine_owner_task:{token:`engine_owner_task`,schema:`seo`,table:`engine_owner_task`,label:`Engine Owner Task`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_grant:{token:`entity_grant`,schema:`platform`,table:`entity_grants`,label:`Entity grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_protected_value:{token:`entity_protected_value`,schema:`custom`,table:`entity_protected_value`,label:`Protected field value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_protected_value_version:{token:`entity_protected_value_version`,schema:`custom`,table:`entity_protected_value_version`,label:`Protected field value version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_relationship:{token:`entity_relationship`,schema:`platform`,table:`entity_relationships`,label:`Entity relationship`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_type:{token:`entity_type`,schema:`platform`,table:`entity_types`,label:`Entity type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_campaign:{token:`esign_campaign`,schema:`esign`,table:`campaign`,label:`Signature campaign`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_campaign_member:{token:`esign_campaign_member`,schema:`esign`,table:`campaign_member`,label:`Campaign member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_consent_disclosure:{token:`esign_consent_disclosure`,schema:`esign`,table:`consent_disclosure`,label:`E-sign consent disclosure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope:{token:`esign_envelope`,schema:`esign`,table:`envelope`,label:`Signature envelope`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_certificate:{token:`esign_envelope_certificate`,schema:`esign`,table:`envelope_certificate`,label:`Completion certificate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_document:{token:`esign_envelope_document`,schema:`esign`,table:`envelope_document`,label:`Envelope document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_event:{token:`esign_envelope_event`,schema:`esign`,table:`envelope_event`,label:`Envelope event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_external_ref:{token:`esign_envelope_external_ref`,schema:`esign`,table:`envelope_external_ref`,label:`Envelope external reference`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_signer:{token:`esign_envelope_signer`,schema:`esign`,table:`envelope_signer`,label:`Envelope signer`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_provider:{token:`esign_provider`,schema:`esign`,table:`provider`,label:`E-sign provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_provider_binding:{token:`esign_provider_binding`,schema:`esign`,table:`provider_binding`,label:`E-sign provider binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_signing_key:{token:`esign_signing_key`,schema:`esign`,table:`signing_key`,label:`E-sign certificate signing key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},execution_event_cursor:{token:`execution_event_cursor`,schema:`runtime`,table:`execution_event_cursor`,label:`Execution event cursor`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},extension_auth_code:{token:`extension_auth_code`,schema:`extend`,table:`extension_auth_codes`,label:`Extension auth code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},external_link:{token:`external_link`,schema:`custom`,table:`external_link`,label:`External Link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},external_source:{token:`external_source`,schema:`custom`,table:`external_source`,label:`External Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},extract_sweep_state:{token:`extract_sweep_state`,schema:`workflow`,table:`extract_sweep_state`,label:`Extract sweep state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},fc_card:{token:`fc_card`,schema:`education`,table:`fc_card`,label:`Flashcard`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`front`,contentRole:null,referenceCategory:null},fc_detail:{token:`fc_detail`,schema:`education`,table:`fc_detail`,label:`Flashcard Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},fc_set:{token:`fc_set`,schema:`education`,table:`fc_set`,label:`Flashcard Deck`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},feature_doc:{token:`feature_doc`,schema:`admin`,table:`feature_docs`,label:`Feature Doc`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`documentation`,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},feature_knob:{token:`feature_knob`,schema:`platform`,table:`feature_knob`,label:`Feature Knob`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},feedback_comments:{token:`feedback_comments`,schema:`users`,table:`feedback_comments`,label:`Feedback Comments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},feedback_user_messages:{token:`feedback_user_messages`,schema:`users`,table:`feedback_user_messages`,label:`Feedback User Messages`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file:{token:`file`,schema:`files`,table:`files`,label:`File`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`file_name`,contentRole:`source`,referenceCategory:null},file_analysis:{token:`file_analysis`,schema:`files`,table:`analysis`,label:`File Analysis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_entities:{token:`file_entities`,schema:`files`,table:`entities`,label:`Extracted Term`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},file_overrides:{token:`file_overrides`,schema:`files`,table:`overrides`,label:`File Override`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_page_annotations:{token:`file_page_annotations`,schema:`files`,table:`page_annotations`,label:`Page Annotation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},file_pages:{token:`file_pages`,schema:`files`,table:`pages`,label:`File Page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_rag_job:{token:`file_rag_job`,schema:`files`,table:`file_rag_jobs`,label:`File RAG job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_version:{token:`file_version`,schema:`files`,table:`file_versions`,label:`File Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Sources`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_account_tier:{token:`files_account_tier`,schema:`files`,table:`account_tiers`,label:`File account tier`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_machine_written_prefix:{token:`files_machine_written_prefix`,schema:`files`,table:`machine_written_prefixes`,label:`Machine-Written Prefix`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_sync_mapping:{token:`files_sync_mapping`,schema:`files`,table:`sync_mappings`,label:`Sync Mapping`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_user_account:{token:`files_user_account`,schema:`files`,table:`user_account`,label:`File account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},flexible_data:{token:`flexible_data`,schema:`platform`,table:`flexible_data`,label:`Flexible Data`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},folder:{token:`folder`,schema:`files`,table:`folders`,label:`Folder`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`folder_name`,contentRole:`source`,referenceCategory:null},function_contract:{token:`function_contract`,schema:`hr`,table:`function_contract`,label:`Function Contract`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},game_badge:{token:`game_badge`,schema:`education`,table:`game_badge`,label:`Game Badge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},game_result:{token:`game_result`,schema:`education`,table:`game_result`,label:`Game Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},game_room:{token:`game_room`,schema:`education`,table:`game_room`,label:`Game Room`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution:{token:`global_execution`,schema:`runtime`,table:`global_execution`,label:`Runtime Execution`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_checkpoint:{token:`global_execution_checkpoint`,schema:`runtime`,table:`global_execution_checkpoint`,label:`Runtime Checkpoint`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_control:{token:`global_execution_control`,schema:`runtime`,table:`global_execution_control`,label:`Global execution control`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_event:{token:`global_execution_event`,schema:`runtime`,table:`global_execution_event`,label:`Runtime Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_meter_entry:{token:`global_meter_entry`,schema:`runtime`,table:`global_meter_entry`,label:`Runtime Meter Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},global_origin:{token:`global_origin`,schema:`runtime`,table:`global_origin`,label:`Runtime Origin`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_request:{token:`global_request`,schema:`runtime`,table:`global_request`,label:`Runtime Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},google_document:{token:`google_document`,schema:`workbench`,table:`google_document`,label:`Google document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},growth_loop_event:{token:`growth_loop_event`,schema:`growth`,table:`loop_event`,label:`Growth Loop Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},growth_loop_run:{token:`growth_loop_run`,schema:`growth`,table:`loop_run`,label:`Growth Loop Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},growth_loop_stage_run:{token:`growth_loop_stage_run`,schema:`growth`,table:`loop_stage_run`,label:`Growth Loop Stage Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guardian_link:{token:`guardian_link`,schema:`education`,table:`guardian_link`,label:`Guardian link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_conversion_audit:{token:`guest_conversion_audit`,schema:`users`,table:`guest_conversion_audit`,label:`Guest conversion audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_execution_log:{token:`guest_execution_log`,schema:`users`,table:`guest_execution_log`,label:`Guest Execution Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_executions:{token:`guest_executions`,schema:`users`,table:`guest_executions`,label:`Guest Executions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guided_checklist_run:{token:`guided_checklist_run`,schema:`platform`,table:`guided_checklist_run`,label:`Guided Checklist Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},heatmap_save:{token:`heatmap_save`,schema:`workbench`,table:`heatmap_saves`,label:`Heatmap Save`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hindsight_enrollment:{token:`hindsight_enrollment`,schema:`hindsight`,table:`enrollment`,label:`Hindsight Enrollment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},hindsight_finding:{token:`hindsight_finding`,schema:`hindsight`,table:`finding`,label:`Hindsight Finding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_regression_case:{token:`hindsight_regression_case`,schema:`hindsight`,table:`regression_case`,label:`Regression Case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_replay:{token:`hindsight_replay`,schema:`hindsight`,table:`replay`,label:`Hindsight Replay`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_replay_step:{token:`hindsight_replay_step`,schema:`hindsight`,table:`replay_step`,label:`Wire Replay Step`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_review:{token:`hindsight_review`,schema:`hindsight`,table:`review`,label:`Hindsight Review`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_access_audit:{token:`hr_access_audit`,schema:`hr`,table:`access_audit`,label:`Access audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_access_role:{token:`hr_access_role`,schema:`hr`,table:`access_role`,label:`HR access role`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_accommodation_request:{token:`hr_accommodation_request`,schema:`hr`,table:`accommodation_request`,label:`Accommodation request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_ai_evidence:{token:`hr_ai_evidence`,schema:`hr`,table:`ai_evidence`,label:`AI evidence`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_alert_routing_rule:{token:`hr_alert_routing_rule`,schema:`hr`,table:`alert_routing_rule`,label:`Alert routing rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_application:{token:`hr_application`,schema:`hr`,table:`application`,label:`Application`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_approval_authority:{token:`hr_approval_authority`,schema:`hr`,table:`approval_authority`,label:`Approval authority`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_approval_delegation:{token:`hr_approval_delegation`,schema:`hr`,table:`approval_delegation`,label:`Approval delegation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_asset:{token:`hr_asset`,schema:`hr`,table:`asset`,label:`Asset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_asset_assignment:{token:`hr_asset_assignment`,schema:`hr`,table:`asset_assignment`,label:`Asset assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_attendance_exception:{token:`hr_attendance_exception`,schema:`hr`,table:`attendance_exception`,label:`Attendance exception`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_auto_close_rule:{token:`hr_auto_close_rule`,schema:`hr`,table:`auto_close_rule`,label:`Auto-close rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_availability:{token:`hr_availability`,schema:`hr`,table:`availability`,label:`Availability`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_background_check:{token:`hr_background_check`,schema:`hr`,table:`background_check`,label:`Background check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_benefits_event:{token:`hr_benefits_event`,schema:`hr`,table:`benefits_event`,label:`Benefits event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_calculation_snapshot:{token:`hr_calculation_snapshot`,schema:`hr`,table:`calculation_snapshot`,label:`Calculation snapshot`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_candidate:{token:`hr_candidate`,schema:`hr`,table:`candidate`,label:`Candidate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`preferred_name`,contentRole:null,referenceCategory:null},hr_candidate_conversion:{token:`hr_candidate_conversion`,schema:`hr`,table:`candidate_conversion`,label:`Candidate conversion`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_candidate_message:{token:`hr_candidate_message`,schema:`hr`,table:`candidate_message`,label:`Candidate message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_careers_portal:{token:`hr_careers_portal`,schema:`hr`,table:`careers_portal`,label:`Careers portal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},hr_checklist_item:{token:`hr_checklist_item`,schema:`hr`,table:`checklist_item`,label:`Checklist item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_checklist_run:{token:`hr_checklist_run`,schema:`hr`,table:`checklist_run`,label:`Checklist run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_checklist_template:{token:`hr_checklist_template`,schema:`hr`,table:`checklist_template`,label:`Checklist template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_checklist_template_item:{token:`hr_checklist_template_item`,schema:`hr`,table:`checklist_template_item`,label:`Checklist template item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_compensation:{token:`hr_compensation`,schema:`hr`,table:`compensation`,label:`Compensation record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_corrective_action:{token:`hr_corrective_action`,schema:`hr`,table:`corrective_action`,label:`Corrective action`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_course:{token:`hr_course`,schema:`hr`,table:`course`,label:`Course`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_course_version:{token:`hr_course_version`,schema:`hr`,table:`course_version`,label:`Course version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_credential:{token:`hr_credential`,schema:`hr`,table:`credential`,label:`Credential`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_crew:{token:`hr_crew`,schema:`hr`,table:`crew`,label:`Crew`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_deduction_code:{token:`hr_deduction_code`,schema:`hr`,table:`deduction_code`,label:`Deduction code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_department:{token:`hr_department`,schema:`hr`,table:`department`,label:`Department`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_derived_grant:{token:`hr_derived_grant`,schema:`hr`,table:`derived_grant`,label:`Derived grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_disposition_event:{token:`hr_disposition_event`,schema:`hr`,table:`disposition_event`,label:`Disposition event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_earning_code:{token:`hr_earning_code`,schema:`hr`,table:`earning_code`,label:`Earning code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_eeo_response:{token:`hr_eeo_response`,schema:`hr`,table:`eeo_response`,label:`EEO self-identification response`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_emergency_contact:{token:`hr_emergency_contact`,schema:`hr`,table:`emergency_contact`,label:`Emergency contact`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employee:{token:`hr_employee`,schema:`hr`,table:`employee`,label:`Employee`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:`container`,referenceCategory:null},hr_employee_private:{token:`hr_employee_private`,schema:`hr`,table:`employee_private`,label:`Employee private record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employer_profile:{token:`hr_employer_profile`,schema:`hr`,table:`employer_profile`,label:`Employer profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`legal_name`,contentRole:null,referenceCategory:null},hr_employment:{token:`hr_employment`,schema:`hr`,table:`employment`,label:`Employment spell`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employment_pin:{token:`hr_employment_pin`,schema:`hr`,table:`employment_pin`,label:`Employment PIN`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_engagement:{token:`hr_engagement`,schema:`hr`,table:`engagement`,label:`Engagement`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_establishment:{token:`hr_establishment`,schema:`hr`,table:`establishment`,label:`Establishment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_external_identity:{token:`hr_external_identity`,schema:`hr`,table:`external_identity`,label:`External identity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_field_policy:{token:`hr_field_policy`,schema:`hr`,table:`field_policy`,label:`Self-service field policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_holiday:{token:`hr_holiday`,schema:`hr`,table:`holiday`,label:`Holiday`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_holiday_calendar:{token:`hr_holiday_calendar`,schema:`hr`,table:`holiday_calendar`,label:`Holiday calendar`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_i9:{token:`hr_i9`,schema:`hr`,table:`i9`,label:`Form I-9`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_i9_document:{token:`hr_i9_document`,schema:`hr`,table:`i9_document`,label:`I-9 document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_incident:{token:`hr_incident`,schema:`hr`,table:`incident`,label:`Incident`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_incident_party:{token:`hr_incident_party`,schema:`hr`,table:`incident_party`,label:`Incident party`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_interview:{token:`hr_interview`,schema:`hr`,table:`interview`,label:`Interview`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_interview_kit:{token:`hr_interview_kit`,schema:`hr`,table:`interview_kit`,label:`Interview kit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_job_title:{token:`hr_job_title`,schema:`hr`,table:`job_title`,label:`Job title`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_jurisdiction:{token:`hr_jurisdiction`,schema:`hr`,table:`jurisdiction`,label:`Jurisdiction`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_jurisdiction_rule:{token:`hr_jurisdiction_rule`,schema:`hr`,table:`jurisdiction_rule`,label:`Jurisdiction rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_class:{token:`hr_jurisdiction_rule_class`,schema:`hr`,table:`jurisdiction_rule_class`,label:`Jurisdiction rule class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_org_decision:{token:`hr_jurisdiction_rule_org_decision`,schema:`hr`,table:`jurisdiction_rule_org_decision`,label:`Jurisdiction rule org decision`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_test:{token:`hr_jurisdiction_rule_test`,schema:`hr`,table:`jurisdiction_rule_test`,label:`Jurisdiction rule fixture`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_kiosk_device:{token:`hr_kiosk_device`,schema:`hr`,table:`kiosk_device`,label:`Kiosk device`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_kiosk_session:{token:`hr_kiosk_session`,schema:`hr`,table:`kiosk_session`,label:`Kiosk session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_labor_target:{token:`hr_labor_target`,schema:`hr`,table:`labor_target`,label:`Labor target`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_case:{token:`hr_leave_case`,schema:`hr`,table:`leave_case`,label:`Leave case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_enrollment:{token:`hr_leave_enrollment`,schema:`hr`,table:`leave_enrollment`,label:`Leave enrollment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_ledger:{token:`hr_leave_ledger`,schema:`hr`,table:`leave_ledger`,label:`Leave ledger entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_policy:{token:`hr_leave_policy`,schema:`hr`,table:`leave_policy`,label:`Leave policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_leave_request:{token:`hr_leave_request`,schema:`hr`,table:`leave_request`,label:`Leave request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_legal_hold:{token:`hr_legal_hold`,schema:`hr`,table:`legal_hold`,label:`Legal hold`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`matter_name`,contentRole:null,referenceCategory:null},hr_legal_hold_item:{token:`hr_legal_hold_item`,schema:`hr`,table:`legal_hold_item`,label:`Legal hold item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_location:{token:`hr_location`,schema:`hr`,table:`location`,label:`Location`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_new_hire_report:{token:`hr_new_hire_report`,schema:`hr`,table:`new_hire_report`,label:`New hire report`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_offer:{token:`hr_offer`,schema:`hr`,table:`offer`,label:`Offer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_opening:{token:`hr_opening`,schema:`hr`,table:`opening`,label:`Opening`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_overtime_alert:{token:`hr_overtime_alert`,schema:`hr`,table:`overtime_alert`,label:`Overtime alert`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_overtime_alert_rule:{token:`hr_overtime_alert_rule`,schema:`hr`,table:`overtime_alert_rule`,label:`Overtime alert rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_overtime_preapproval:{token:`hr_overtime_preapproval`,schema:`hr`,table:`overtime_preapproval`,label:`Overtime pre-approval`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_pay_group:{token:`hr_pay_group`,schema:`hr`,table:`pay_group`,label:`Pay group`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_pay_period:{token:`hr_pay_period`,schema:`hr`,table:`pay_period`,label:`Pay period`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_pay_period_employment:{token:`hr_pay_period_employment`,schema:`hr`,table:`pay_period_employment`,label:`Pay period timesheet`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_payroll_export:{token:`hr_payroll_export`,schema:`hr`,table:`payroll_export`,label:`Payroll export`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_payroll_export_line:{token:`hr_payroll_export_line`,schema:`hr`,table:`payroll_export_line`,label:`Payroll export line`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_position_assignment:{token:`hr_position_assignment`,schema:`hr`,table:`position_assignment`,label:`Position assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_posting:{token:`hr_posting`,schema:`hr`,table:`posting`,label:`Job posting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_posting_publication:{token:`hr_posting_publication`,schema:`hr`,table:`posting_publication`,label:`Posting publication`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provider_binding:{token:`hr_provider_binding`,schema:`hr`,table:`provider_binding`,label:`Provider binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provider_event:{token:`hr_provider_event`,schema:`hr`,table:`provider_event`,label:`Provider seam event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provisioning_result:{token:`hr_provisioning_result`,schema:`hr`,table:`provisioning_result`,label:`Provisioning result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_punch:{token:`hr_punch`,schema:`hr`,table:`punch`,label:`Punch`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_recalculation_batch:{token:`hr_recalculation_batch`,schema:`hr`,table:`recalculation_batch`,label:`Recalculation batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_record_class:{token:`hr_record_class`,schema:`hr`,table:`record_class`,label:`Record class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_records_request:{token:`hr_records_request`,schema:`hr`,table:`records_request`,label:`Records request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_reference_check:{token:`hr_reference_check`,schema:`hr`,table:`reference_check`,label:`Reference check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_reporting_line:{token:`hr_reporting_line`,schema:`hr`,table:`reporting_line`,label:`Reporting line`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_requisition:{token:`hr_requisition`,schema:`hr`,table:`requisition`,label:`Requisition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`requisition_number`,contentRole:null,referenceCategory:null},hr_restricted_note:{token:`hr_restricted_note`,schema:`hr`,table:`restricted_note`,label:`Restricted note`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_retention_rule:{token:`hr_retention_rule`,schema:`hr`,table:`retention_rule`,label:`Retention rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_role_assignment:{token:`hr_role_assignment`,schema:`hr`,table:`role_assignment`,label:`HR role assignment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_schedule:{token:`hr_schedule`,schema:`hr`,table:`schedule`,label:`Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_schedule_change:{token:`hr_schedule_change`,schema:`hr`,table:`schedule_change`,label:`Schedule change`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_schedule_guidance:{token:`hr_schedule_guidance`,schema:`hr`,table:`schedule_guidance`,label:`Schedule guidance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_schedule_template:{token:`hr_schedule_template`,schema:`hr`,table:`schedule_template`,label:`Schedule template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_schedule_template_shift:{token:`hr_schedule_template_shift`,schema:`hr`,table:`schedule_template_shift`,label:`Schedule template shift`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_scorecard:{token:`hr_scorecard`,schema:`hr`,table:`scorecard`,label:`Scorecard`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_separation:{token:`hr_separation`,schema:`hr`,table:`separation`,label:`Separation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_shift:{token:`hr_shift`,schema:`hr`,table:`shift`,label:`Shift`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_shift_claim:{token:`hr_shift_claim`,schema:`hr`,table:`shift_claim`,label:`Shift claim`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_staffing_requirement:{token:`hr_staffing_requirement`,schema:`hr`,table:`staffing_requirement`,label:`Staffing requirement`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey:{token:`hr_survey`,schema:`hr`,table:`survey`,label:`Survey`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_survey_invitation:{token:`hr_survey_invitation`,schema:`hr`,table:`survey_invitation`,label:`Survey invitation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey_question:{token:`hr_survey_question`,schema:`hr`,table:`survey_question`,label:`Survey question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey_response:{token:`hr_survey_response`,schema:`hr`,table:`survey_response`,label:`Survey response`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_tax_registration:{token:`hr_tax_registration`,schema:`hr`,table:`tax_registration`,label:`Tax registration`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_tax_withholding:{token:`hr_tax_withholding`,schema:`hr`,table:`tax_withholding`,label:`Tax withholding certificate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_time_adjustment:{token:`hr_time_adjustment`,schema:`hr`,table:`time_adjustment`,label:`Time adjustment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_training_assignment:{token:`hr_training_assignment`,schema:`hr`,table:`training_assignment`,label:`Training assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_training_attempt:{token:`hr_training_attempt`,schema:`hr`,table:`training_attempt`,label:`Training attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_transcript_entry:{token:`hr_transcript_entry`,schema:`hr`,table:`transcript_entry`,label:`Transcript entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_verification_letter_request:{token:`hr_verification_letter_request`,schema:`hr`,table:`verification_letter_request`,label:`Verification letter request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_work_interval:{token:`hr_work_interval`,schema:`hr`,table:`work_interval`,label:`Work interval`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_binding:{token:`hr_workflow_binding`,schema:`hr`,table:`workflow_binding`,label:`HR Workflow Binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_decision:{token:`hr_workflow_decision`,schema:`hr`,table:`workflow_decision`,label:`HR Workflow Decision`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_definition:{token:`hr_workflow_definition`,schema:`hr`,table:`workflow_definition`,label:`HR Workflow Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_event:{token:`hr_workflow_event`,schema:`hr`,table:`workflow_event`,label:`HR Workflow Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_failure:{token:`hr_workflow_failure`,schema:`hr`,table:`workflow_failure`,label:`HR Workflow Failure`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_flow_type:{token:`hr_workflow_flow_type`,schema:`hr`,table:`workflow_flow_type`,label:`HR Workflow Flow Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_instance:{token:`hr_workflow_instance`,schema:`hr`,table:`workflow_instance`,label:`HR Workflow Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_step:{token:`hr_workflow_step`,schema:`hr`,table:`workflow_step`,label:`HR Workflow Step`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_step_definition:{token:`hr_workflow_step_definition`,schema:`hr`,table:`workflow_step_definition`,label:`HR Workflow Step Definition`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workweek:{token:`hr_workweek`,schema:`hr`,table:`workweek`,label:`Workweek`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},html_extraction:{token:`html_extraction`,schema:`api`,table:`html_extractions`,label:`HTML extraction`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_access_audit:{token:`iam_access_audit`,schema:`iam`,table:`access_audit`,label:`Access audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_api_key:{token:`iam_api_key`,schema:`iam`,table:`api_keys`,label:`API Key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_emergency_door_request:{token:`iam_emergency_door_request`,schema:`iam`,table:`emergency_door_request`,label:`Emergency access request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_org_availability_key:{token:`iam_org_availability_key`,schema:`iam`,table:`_org_availability_key`,label:`Organization availability key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_read_lane_v2_rollout:{token:`iam_read_lane_v2_rollout`,schema:`iam`,table:`read_lane_v2_rollout`,label:`Read lane v2 rollout`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},idempotency:{token:`idempotency`,schema:`files`,table:`idempotency`,label:`Idempotency`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},industry:{token:`industry`,schema:`iam`,table:`industries`,label:`Industry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},industry_curator:{token:`industry_curator`,schema:`iam`,table:`industry_curators`,label:`Industry Curator`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},infra_status:{token:`infra_status`,schema:`public`,table:`infra_status`,label:`Infra status`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ingest_runs:{token:`ingest_runs`,schema:`legal`,table:`ingest_runs`,label:`Ingest Runs`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},integration_connection:{token:`integration_connection`,schema:`users`,table:`integration_connections`,label:`Integration connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},integration_connection_resource:{token:`integration_connection_resource`,schema:`users`,table:`integration_connection_resources`,label:`Integration connection resource`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_decision_interview:{token:`interview_decision_interview`,schema:`interview`,table:`decision_interview`,label:`Decision Interview`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_decision_question:{token:`interview_decision_question`,schema:`interview`,table:`decision_question`,label:`Decision Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_document_revision:{token:`interview_document_revision`,schema:`interview`,table:`document_revision`,label:`Interview Document Revision`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_hole:{token:`interview_hole`,schema:`interview`,table:`hole`,label:`Interview Adversary Hole`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_question:{token:`interview_question`,schema:`interview`,table:`question`,label:`Interview Open Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_session:{token:`interview_session`,schema:`interview`,table:`session`,label:`Vision Interview Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_turn:{token:`interview_turn`,schema:`interview`,table:`turn`,label:`Interview Turn`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation:{token:`invitation`,schema:`iam`,table:`invitations`,label:`Invitation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation_code:{token:`invitation_code`,schema:`users`,table:`invitation_codes`,label:`Invitation Code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation_request:{token:`invitation_request`,schema:`users`,table:`invitation_requests`,label:`Invitation Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_comment:{token:`io_comment`,schema:`custom`,table:`io_comment`,label:`Record comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_contract:{token:`io_contract`,schema:`content_ir`,table:`io_contract`,label:`Io Contract`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_import:{token:`io_import`,schema:`custom`,table:`io_import`,label:`Import run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_outbox:{token:`io_outbox`,schema:`custom`,table:`io_outbox`,label:`Record change outbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},item:{token:`item`,schema:`assignment`,table:`item`,label:`Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},item_mastery:{token:`item_mastery`,schema:`education`,table:`item_mastery`,label:`Item Mastery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},judge_verdict:{token:`judge_verdict`,schema:`platform`,table:`judge_verdict`,label:`Judge Verdict`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},jurisdiction_policy:{token:`jurisdiction_policy`,schema:`crm`,table:`jurisdiction_policy`,label:`Jurisdiction policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},keyword_classification_queue:{token:`keyword_classification_queue`,schema:`seo`,table:`keyword_classification_queue`,label:`Keyword Classification Queue`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_alert:{token:`kg_alert`,schema:`rag`,table:`kg_alerts`,label:`KG Alert`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_chunk_entities:{token:`kg_chunk_entities`,schema:`rag`,table:`kg_chunk_entities`,label:`Kg Chunk Entities`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_chunks:{token:`kg_chunks`,schema:`rag`,table:`kg_chunks`,label:`Kg Chunks`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_clusters:{token:`kg_clusters`,schema:`rag`,table:`kg_clusters`,label:`Kg Clusters`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_edges:{token:`kg_edges`,schema:`rag`,table:`kg_edges`,label:`Kg Edges`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_entities:{token:`kg_entities`,schema:`rag`,table:`kg_entities`,label:`Kg Entities`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_entity_aliases:{token:`kg_entity_aliases`,schema:`rag`,table:`kg_entity_aliases`,label:`Kg Entity Aliases`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_suggestion_ack:{token:`kg_suggestion_ack`,schema:`rag`,table:`kg_suggestion_ack`,label:`KG Suggestion Ack`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_queue:{token:`kg_sweep_queue`,schema:`rag`,table:`kg_sweep_queue`,label:`KG Sweep Queue`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_run:{token:`kg_sweep_run`,schema:`rag`,table:`kg_sweep_run`,label:`KG Sweep Run`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_state:{token:`kg_sweep_state`,schema:`rag`,table:`kg_sweep_state`,label:`KG Sweep State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_value_match:{token:`kg_value_match`,schema:`rag`,table:`kg_value_matches`,label:`KG Value Match`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_override:{token:`knob_override`,schema:`platform`,table:`knob_override`,label:`Knob Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_override_audit:{token:`knob_override_audit`,schema:`platform`,table:`knob_override_audit`,label:`Knob override audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_rung_lock:{token:`knob_rung_lock`,schema:`platform`,table:`knob_rung_lock`,label:`Knob Rung Lock`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_scope_kind:{token:`knob_scope_kind`,schema:`platform`,table:`knob_scope_kind`,label:`Knob scope kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_write_door:{token:`knob_write_door`,schema:`platform`,table:`knob_write_door`,label:`Knob write door`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},league_membership:{token:`league_membership`,schema:`education`,table:`league_membership`,label:`League Membership`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},learn_doc:{token:`learn_doc`,schema:`education`,table:`learn_doc`,label:`Study Guide`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},library_doc:{token:`library_doc`,schema:`rag`,table:`library_docs`,label:`Library Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},lifecycle_archive:{token:`lifecycle_archive`,schema:`platform`,table:`lifecycle_archive`,label:`Lifecycle archive`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_archive_row:{token:`lifecycle_archive_row`,schema:`platform`,table:`lifecycle_archive_row`,label:`Lifecycle archive row`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_audit:{token:`lifecycle_audit`,schema:`platform`,table:`lifecycle_audit`,label:`Lifecycle audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_entity_plan:{token:`lifecycle_entity_plan`,schema:`platform`,table:`lifecycle_entity_plan`,label:`Lifecycle entity plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_map_build:{token:`lifecycle_map_build`,schema:`platform`,table:`lifecycle_map_build`,label:`Lifecycle map build`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_reference_map:{token:`lifecycle_reference_map`,schema:`platform`,table:`lifecycle_reference_map`,label:`Lifecycle reference map`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_run:{token:`lifecycle_run`,schema:`platform`,table:`lifecycle_run`,label:`Lifecycle run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_tier_ledger:{token:`lifecycle_tier_ledger`,schema:`platform`,table:`lifecycle_tier_ledger`,label:`Lifecycle tier ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},location:{token:`location`,schema:`seo`,table:`location`,label:`Location`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate:{token:`mandate`,schema:`mandate`,table:`definition`,label:`Mandate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},mandate_advance_batch_row:{token:`mandate_advance_batch_row`,schema:`mandate`,table:`advance_batch_row`,label:`Pin advance batch row`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_binding:{token:`mandate_binding`,schema:`mandate`,table:`binding`,label:`Mandate Binding (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate:{token:`mandate_candidate`,schema:`mandate`,table:`candidate`,label:`Mandate Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate_run:{token:`mandate_candidate_run`,schema:`mandate`,table:`candidate_run`,label:`Mandate Candidate Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate_run_payload:{token:`mandate_candidate_run_payload`,schema:`mandate`,table:`candidate_run_payload`,label:`Mandate Candidate Run Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_goal_clauses:{token:`mandate_goal_clauses`,schema:`mandate`,table:`goal_clauses`,label:`Mandate Goal Clauses`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_observation:{token:`mandate_observation`,schema:`mandate`,table:`observation`,label:`Mandate Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_reference:{token:`mandate_reference`,schema:`mandate`,table:`reference`,label:`Mandate Reference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_scan:{token:`mandate_scan`,schema:`mandate`,table:`scan`,label:`Mandate Scan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_treatment:{token:`mandate_treatment`,schema:`mandate`,table:`treatment`,label:`Mandate Treatment (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},marketing_initiative:{token:`marketing_initiative`,schema:`marketing`,table:`initiative`,label:`Initiative`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},masterwork_corpus_item:{token:`masterwork_corpus_item`,schema:`platform`,table:`masterwork_corpus_item`,label:`Masterwork Corpus Piece`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_run:{token:`masterwork_run`,schema:`platform`,table:`masterwork_run`,label:`Masterwork Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Masterwork`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_run_kind:{token:`masterwork_run_kind`,schema:`platform`,table:`masterwork_run_kind`,label:`Masterwork Run Kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_source:{token:`masterwork_source`,schema:`platform`,table:`masterwork_source`,label:`Masterwork Source`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},math_course_structure:{token:`math_course_structure`,schema:`education`,table:`math_course_structure`,label:`Math Course Structure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},math_problem:{token:`math_problem`,schema:`education`,table:`math_problems`,label:`Math problem`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},matrx_action_ledger:{token:`matrx_action_ledger`,schema:`platform`,table:`matrx_action_ledger`,label:`Action ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_config:{token:`mcp_config`,schema:`tool`,table:`mcp_config`,label:`MCP config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_server:{token:`mcp_server`,schema:`tool`,table:`mcp_server`,label:`MCP server`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_user_conn:{token:`mcp_user_conn`,schema:`tool`,table:`mcp_user_conn`,label:`MCP user connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_capture_handoff:{token:`media_capture_handoff`,schema:`media`,table:`capture_handoff`,label:`Capture Handoff`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_catalog_setting:{token:`media_catalog_setting`,schema:`media`,table:`catalog_setting`,label:`Media Catalog Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_library_item:{token:`media_library_item`,schema:`media`,table:`library_item`,label:`Library Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_selection_item:{token:`media_selection_item`,schema:`media`,table:`selection_item`,label:`Selection Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_selection_job:{token:`media_selection_job`,schema:`media`,table:`selection_job`,label:`Selection Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_source_library:{token:`media_source_library`,schema:`media`,table:`source_library`,label:`Source Library`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_call_invite:{token:`meet_call_invite`,schema:`communication`,table:`meet_call_invites`,label:`Call Invite`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_chat_message:{token:`meet_chat_message`,schema:`communication`,table:`meet_chat_messages`,label:`Meeting Chat Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_invitee:{token:`meet_invitee`,schema:`communication`,table:`meet_invitees`,label:`Meeting Invitee`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_meeting:{token:`meet_meeting`,schema:`communication`,table:`meet_meetings`,label:`Meeting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},meet_note:{token:`meet_note`,schema:`communication`,table:`meet_notes`,label:`Meeting Note`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_occurrence_override:{token:`meet_occurrence_override`,schema:`communication`,table:`meet_occurrence_overrides`,label:`Meeting Occurrence Override`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_participant:{token:`meet_participant`,schema:`communication`,table:`meet_participants`,label:`Meeting Participant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_recording:{token:`meet_recording`,schema:`communication`,table:`meet_recordings`,label:`Meeting Recording`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_transcript_segment:{token:`meet_transcript_segment`,schema:`communication`,table:`meet_transcript_segments`,label:`Meeting Transcript Segment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},membership:{token:`membership`,schema:`iam`,table:`memberships`,label:`Membership`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},membership_grant:{token:`membership_grant`,schema:`iam`,table:`membership_grant`,label:`Membership Grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},merge_field_provenance:{token:`merge_field_provenance`,schema:`custom`,table:`merge_field_provenance`,label:`Merge Field Provenance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},message:{token:`message`,schema:`chat`,table:`message`,label:`Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},message_template:{token:`message_template`,schema:`agent`,table:`message_template`,label:`Message Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},message_template_detail:{token:`message_template_detail`,schema:`agent`,table:`message_template_detail`,label:`Message Template Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meta_excluded_schema:{token:`meta_excluded_schema`,schema:`meta`,table:`excluded_schema`,label:`Excluded schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meta_table_stats_history:{token:`meta_table_stats_history`,schema:`meta`,table:`table_stats_history`,label:`Table stats history`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},metadata_reserved_keys:{token:`metadata_reserved_keys`,schema:`platform`,table:`metadata_reserved_keys`,label:`Metadata Reserved Keys`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},migration_log:{token:`migration_log`,schema:`history`,table:`migration_log`,label:`Migration Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mtx_media_heal_queue:{token:`mtx_media_heal_queue`,schema:`platform`,table:`mtx_media_heal_queue`,label:`Mtx Media Heal Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mtx_public_url_guard:{token:`mtx_public_url_guard`,schema:`platform`,table:`mtx_public_url_guard`,label:`Public URL guard`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ner_shadow:{token:`ner_shadow`,schema:`rag`,table:`ner_canonicalizer_shadow`,label:`NER Shadow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},note:{token:`note`,schema:`workbench`,table:`notes`,label:`Note`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources & Outputs`,referencePickable:!0,titleColumn:`label`,contentRole:`hybrid`,referenceCategory:null},note_folder:{token:`note_folder`,schema:`workbench`,table:`note_folders`,label:`Note Folder`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},notification:{token:`notification`,schema:`communication`,table:`notification`,label:`Notification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_channel_preference:{token:`notification_channel_preference`,schema:`communication`,table:`notification_channel_preference`,label:`Notification Channel Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_event_override:{token:`notification_event_override`,schema:`communication`,table:`notification_event_override`,label:`Notification Event Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_event_type:{token:`notification_event_type`,schema:`communication`,table:`notification_event_type`,label:`Notification Event Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_preference:{token:`notification_preference`,schema:`communication`,table:`notification_preference`,label:`Notification Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_submission:{token:`notification_submission`,schema:`communication`,table:`notification_submission`,label:`Self notification submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notify_outsider_door_baseline:{token:`notify_outsider_door_baseline`,schema:`hr`,table:`notify_outsider_door_baseline`,label:`Notify Outsider Door Baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},oauth_handoff_claim:{token:`oauth_handoff_claim`,schema:`platform`,table:`_oauth_handoff_claim`,label:`Oauth Handoff Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},opinion_clusters:{token:`opinion_clusters`,schema:`legal`,table:`opinion_clusters`,label:`Opinion Clusters`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},opinions:{token:`opinions`,schema:`legal`,table:`opinions`,label:`Opinions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_check_item:{token:`ops_check_item`,schema:`ops`,table:`check_item`,label:`Check Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_check_run:{token:`ops_check_run`,schema:`ops`,table:`check_run`,label:`Check Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_db_host_sample:{token:`ops_db_host_sample`,schema:`ops`,table:`db_host_sample`,label:`Database host sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_issue_class:{token:`ops_issue_class`,schema:`ops`,table:`ops_issue_class`,label:`Ops Issue Class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_issue_event:{token:`ops_issue_event`,schema:`ops`,table:`ops_issue_event`,label:`Ops Issue Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_check:{token:`ops_proof_check`,schema:`ops`,table:`proof_check`,label:`Proof Check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_run:{token:`ops_proof_run`,schema:`ops`,table:`proof_run`,label:`Proof Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_scenario:{token:`ops_proof_scenario`,schema:`ops`,table:`proof_scenario`,label:`Proof Scenario`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_admin_audit:{token:`org_admin_audit`,schema:`iam`,table:`org_admin_audit`,label:`Org admin audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_change_policy:{token:`org_change_policy`,schema:`platform`,table:`org_change_policy`,label:`Org Change Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_context_ledger:{token:`org_context_ledger`,schema:`platform`,table:`org_context_ledger`,label:`Org Context Ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_industries:{token:`org_industries`,schema:`iam`,table:`org_industries`,label:`Org Industries`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_member_control:{token:`org_member_control`,schema:`iam`,table:`org_member_controls`,label:`Org member control`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_module_config:{token:`org_module_config`,schema:`platform`,table:`org_module_config`,label:`Organization module configuration`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_plan:{token:`org_plan`,schema:`billing`,table:`org_plan`,label:`Org Plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},organization:{token:`organization`,schema:`iam`,table:`organizations`,label:`Organization`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},organization_preferences:{token:`organization_preferences`,schema:`iam`,table:`organization_preferences`,label:`Organization Preferences`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},organization_visibility_version:{token:`organization_visibility_version`,schema:`custom`,table:`organization_visibility_version`,label:`Organization Visibility Version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},output_feedback:{token:`output_feedback`,schema:`platform`,table:`output_feedback`,label:`Output Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},outreach_acceptance:{token:`outreach_acceptance`,schema:`crm`,table:`outreach_acceptance`,label:`Outreach Acceptance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_job:{token:`page_extraction_job`,schema:`docproc`,table:`page_extraction_jobs`,label:`Extraction Dataset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},page_extraction_page_run:{token:`page_extraction_page_run`,schema:`docproc`,table:`page_extraction_page_runs`,label:`Page Extraction Page Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_results:{token:`page_extraction_results`,schema:`docproc`,table:`page_extraction_results`,label:`Page Extraction Results`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_runs:{token:`page_extraction_runs`,schema:`docproc`,table:`page_extraction_runs`,label:`Page Extraction Runs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_intent_queue:{token:`page_intent_queue`,schema:`seo`,table:`page_intent_queue`,label:`Page Intent Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_mapping_queue:{token:`page_mapping_queue`,schema:`seo`,table:`page_mapping_queue`,label:`Page Mapping Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},part_config:{token:`part_config`,schema:`partman`,table:`part_config`,label:`Part Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},part_config_sub:{token:`part_config_sub`,schema:`partman`,table:`part_config_sub`,label:`Part Config Sub`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},party:{token:`party`,schema:`crm`,table:`party`,label:`Contact`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:`source`,referenceCategory:null},party_contact_point:{token:`party_contact_point`,schema:`crm`,table:`party_contact_point`,label:`Contact Point`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},passkey_credential:{token:`passkey_credential`,schema:`users`,table:`passkey_credentials`,label:`Passkey credential`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pc_article:{token:`pc_article`,schema:`podcast`,table:`pc_articles`,label:`Podcast Article`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_episode:{token:`pc_episode`,schema:`podcast`,table:`pc_episodes`,label:`Podcast Episode`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_show:{token:`pc_show`,schema:`podcast`,table:`pc_shows`,label:`Podcast Show`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_studio_run:{token:`pc_studio_run`,schema:`podcast`,table:`pc_studio_runs`,label:`Podcast Studio Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_studio_run_asset:{token:`pc_studio_run_asset`,schema:`podcast`,table:`pc_studio_run_assets`,label:`Podcast Studio Run Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_consolidation_log:{token:`pdf_consolidation_log`,schema:`pdf`,table:`pdf_consolidation_log`,label:`Pdf Consolidation Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_redaction_audit:{token:`pdf_redaction_audit`,schema:`pdf`,table:`pdf_redaction_audits`,label:`PDF Redaction Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_redaction_key_escrow:{token:`pdf_redaction_key_escrow`,schema:`pdf`,table:`pdf_redaction_key_escrow`,label:`Pdf Redaction Key Escrow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},permission_grant:{token:`permission_grant`,schema:`iam`,table:`permissions`,label:`Permission grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_cms_fill_item:{token:`plan_cms_fill_item`,schema:`plan`,table:`cms_fill_item`,label:`CMS Fill Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_cms_fill_job:{token:`plan_cms_fill_job`,schema:`plan`,table:`cms_fill_job`,label:`CMS Fill Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_entity:{token:`plan_entity`,schema:`plan`,table:`entity`,label:`Plan Entity`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},plan_node:{token:`plan_node`,schema:`plan`,table:`node`,label:`Plan Node`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},plan_node_artifact:{token:`plan_node_artifact`,schema:`plan`,table:`node_artifact`,label:`Plan Node Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_node_step:{token:`plan_node_step`,schema:`plan`,table:`node_step`,label:`Plan Node Step`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_profile:{token:`plan_profile`,schema:`plan`,table:`profile`,label:`Plan Vertical Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`vertical`,contentRole:null,referenceCategory:null},platform_action_request:{token:`platform_action_request`,schema:`platform`,table:`action_request`,label:`Action Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_session:{token:`platform_actor_session`,schema:`platform`,table:`actor_session`,label:`Actor session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_token:{token:`platform_actor_token`,schema:`platform`,table:`actor_token`,label:`Actor token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_token_event:{token:`platform_actor_token_event`,schema:`platform`,table:`actor_token_event`,label:`Actor token event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_class_approval_by_arman:{token:`platform_class_approval_by_arman`,schema:`platform`,table:`class_approval_by_arman`,label:`Class approval by Arman`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_continued_access:{token:`platform_continued_access`,schema:`platform`,table:`continued_access`,label:`Continued Access`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_census_run:{token:`platform_cutover_census_run`,schema:`platform`,table:`cutover_census_run`,label:`Cutover census run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_evaluation_replaced:{token:`platform_cutover_evaluation_replaced`,schema:`platform`,table:`cutover_evaluation_replaced`,label:`Cutover evaluation replaced`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_evaluation_write:{token:`platform_cutover_evaluation_write`,schema:`platform`,table:`cutover_evaluation_write`,label:`Cutover evaluation write`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam:{token:`platform_cutover_seam`,schema:`platform`,table:`cutover_seam`,label:`Cutover seam`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam_measure:{token:`platform_cutover_seam_measure`,schema:`platform`,table:`cutover_seam_measure`,label:`Cutover seam measure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam_press:{token:`platform_cutover_seam_press`,schema:`platform`,table:`cutover_seam_press`,label:`Cutover seam press`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_dated_change:{token:`platform_dated_change`,schema:`platform`,table:`dated_change`,label:`Dated Change`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_doors_only_pending_cutover:{token:`platform_doors_only_pending_cutover`,schema:`platform`,table:`doors_only_pending_cutover`,label:`Doors-only pending cutover`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_google_calendar_event_create_intent:{token:`platform_google_calendar_event_create_intent`,schema:`platform`,table:`_google_calendar_event_create_intent`,label:`Google calendar event create intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_google_task_create_intent:{token:`platform_google_task_create_intent`,schema:`platform`,table:`_google_task_create_intent`,label:`Google task create intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_kernel_fingerprint_record:{token:`platform_kernel_fingerprint_record`,schema:`platform`,table:`kernel_fingerprint_record`,label:`Kernel fingerprint record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_outcome_event:{token:`platform_outcome_event`,schema:`platform`,table:`outcome_event`,label:`Outcome Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_outsider_consumer:{token:`platform_outsider_consumer`,schema:`platform`,table:`outsider_consumer`,label:`Outsider consumer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_provision_base_contract_pending:{token:`platform_provision_base_contract_pending`,schema:`platform`,table:`provision_base_contract_pending`,label:`Provision base contract pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reachability:{token:`platform_reachability`,schema:`platform`,table:`reachability`,label:`Reachability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reachability_rebuild_pending:{token:`platform_reachability_rebuild_pending`,schema:`platform`,table:`reachability_rebuild_pending`,label:`Reachability rebuild pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_realtime_topic_prefix:{token:`platform_realtime_topic_prefix`,schema:`platform`,table:`realtime_topic_prefix`,label:`Realtime topic prefix`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reference_category:{token:`platform_reference_category`,schema:`platform`,table:`reference_categories`,label:`Reference category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reference_declaration:{token:`platform_reference_declaration`,schema:`platform`,table:`reference_declaration`,label:`Reference declaration`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_repo:{token:`platform_repo`,schema:`platform`,table:`repo`,label:`Repository`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_saved_view:{token:`platform_saved_view`,schema:`platform`,table:`saved_view`,label:`Saved view`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_schema:{token:`platform_schema`,schema:`platform`,table:`schemas`,label:`Schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_secure_delivery:{token:`platform_secure_delivery`,schema:`platform`,table:`secure_delivery`,label:`Secure Delivery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_share_link:{token:`platform_share_link`,schema:`platform`,table:`share_links`,label:`Share link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_strict_class_probe:{token:`platform_strict_class_probe`,schema:`platform`,table:`strict_class_probe`,label:`Strict class probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},podcast_race:{token:`podcast_race`,schema:`podcast`,table:`pc_race`,label:`Podcast Race Episode`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},position:{token:`position`,schema:`agent`,table:`position`,label:`Position`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},processed_document:{token:`processed_document`,schema:`docproc`,table:`processed_documents`,label:`Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},processed_document_page:{token:`processed_document_page`,schema:`docproc`,table:`processed_document_pages`,label:`Processed document page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_file:{token:`product_capture_file`,schema:`workbench`,table:`product_capture_file`,label:`Product Capture File`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_item:{token:`product_capture_item`,schema:`workbench`,table:`product_capture_item`,label:`Product Capture Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_payload:{token:`product_capture_payload`,schema:`workbench`,table:`product_capture_payload`,label:`Product Capture Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_product:{token:`product_capture_product`,schema:`workbench`,table:`product_capture_product`,label:`Product Capture Product`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_question:{token:`product_capture_question`,schema:`workbench`,table:`product_capture_question`,label:`Product Capture Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},project:{token:`project`,schema:`projects`,table:`projects`,label:`Project`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Workspaces`,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},provider_account:{token:`provider_account`,schema:`provider`,table:`account`,label:`Provider operating account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provider_account_credential:{token:`provider_account_credential`,schema:`provider`,table:`account_credential`,label:`Provider account credential association`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision:{token:`provision`,schema:`mandate`,table:`provision`,label:`Mandate Provision (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_generate_target:{token:`provision_generate_target`,schema:`platform`,table:`provision_generate_target`,label:`Provision Generate Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_grant:{token:`provision_grant`,schema:`platform`,table:`provision_grant`,label:`Provision Grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_marker:{token:`provision_marker`,schema:`platform`,table:`provision_marker`,label:`Provision Marker`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_rule_message:{token:`provision_rule_message`,schema:`platform`,table:`provision_rule_message`,label:`Provision Rule Message`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_schema:{token:`provision_schema`,schema:`platform`,table:`provision_schema`,label:`Provision Schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_shape_debt:{token:`provision_shape_debt`,schema:`platform`,table:`provision_shape_debt`,label:`Provision Shape Debt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_spec:{token:`provision_spec`,schema:`platform`,table:`provision_spec`,label:`Provision Spec`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_spec_grandfather:{token:`provision_spec_grandfather`,schema:`platform`,table:`provision_spec_grandfather`,label:`Provision Spec Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_vocabulary:{token:`provision_vocabulary`,schema:`platform`,table:`provision_vocabulary`,label:`Provision Vocabulary`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},purpose:{token:`purpose`,schema:`platform`,table:`purpose`,label:`Purpose`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},quiz_session:{token:`quiz_session`,schema:`education`,table:`quiz_sessions`,label:`Quiz Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},rag_ingest_run:{token:`rag_ingest_run`,schema:`rag`,table:`ingest_run`,label:`Ingest Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rag_library_audit_log:{token:`rag_library_audit_log`,schema:`rag`,table:`library_audit_log`,label:`Library audit log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rate_limit_buckets:{token:`rate_limit_buckets`,schema:`files`,table:`rate_limit_buckets`,label:`Rate Limit Buckets`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},reachability_pending:{token:`reachability_pending`,schema:`platform`,table:`reachability_pending`,label:`Reachability pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},recompute_queue:{token:`recompute_queue`,schema:`hr`,table:`_recompute_queue`,label:`Recompute Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},record:{token:`record`,schema:`custom`,table:`record`,label:`Record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},record_alias:{token:`record_alias`,schema:`custom`,table:`record_alias`,label:`Record Alias`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},redaction_mapping:{token:`redaction_mapping`,schema:`pdf`,table:`redaction_mapping`,label:`Redaction Mapping`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_analysis:{token:`research_analysis`,schema:`research`,table:`rs_analysis`,label:`Research Analysis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_content:{token:`research_content`,schema:`research`,table:`rs_content`,label:`Research Content`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_context_bundle:{token:`research_context_bundle`,schema:`research`,table:`rs_context_bundle`,label:`Research Context Bundle`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`research`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},research_document:{token:`research_document`,schema:`research`,table:`rs_document`,label:`Research Document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},research_intent:{token:`research_intent`,schema:`research`,table:`research_intent`,label:`Research Intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_keyword:{token:`research_keyword`,schema:`research`,table:`rs_keyword`,label:`Research Keyword`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_media:{token:`research_media`,schema:`research`,table:`rs_media`,label:`Research Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_source:{token:`research_source`,schema:`research`,table:`rs_source`,label:`Research Source`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},research_synthesis:{token:`research_synthesis`,schema:`research`,table:`rs_synthesis`,label:`Research Synthesis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_tag:{token:`research_tag`,schema:`research`,table:`rs_tag`,label:`Research Tag`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},research_template:{token:`research_template`,schema:`research`,table:`rs_template`,label:`Research Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},research_topic:{token:`research_topic`,schema:`research`,table:`rs_topic`,label:`Research Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},retention_policy:{token:`retention_policy`,schema:`platform`,table:`retention_policy`,label:`Retention policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},retrieval_audit:{token:`retrieval_audit`,schema:`rag`,table:`retrieval_audit`,label:`Retrieval audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},review_queue:{token:`review_queue`,schema:`agent`,table:`review_queue`,label:`Review Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},route_manifest_entry:{token:`route_manifest_entry`,schema:`platform`,table:`route_manifest`,label:`Route Manifest Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},row_version:{token:`row_version`,schema:`history`,table:`row_versions`,label:`Row version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rulebook:{token:`rulebook`,schema:`platform`,table:`rulebook`,label:`Rulebook`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`Knowledge`,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},runtime_operation_stream:{token:`runtime_operation_stream`,schema:`runtime`,table:`operation_stream`,label:`Operation stream`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},runtime_operation_stream_batch:{token:`runtime_operation_stream_batch`,schema:`runtime`,table:`operation_stream_batch`,label:`Operation stream batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sandbox_instance:{token:`sandbox_instance`,schema:`public`,table:`sandbox_instances`,label:`Sandbox Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_agent_task:{token:`sch_agent_task`,schema:`scheduler`,table:`sch_agent_task`,label:`Agent Task Config`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_run:{token:`sch_run`,schema:`scheduler`,table:`sch_run`,label:`Task Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_task:{token:`sch_task`,schema:`scheduler`,table:`sch_task`,label:`Scheduled Task`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},sch_trigger:{token:`sch_trigger`,schema:`scheduler`,table:`sch_trigger`,label:`Task Trigger`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_client_exposure:{token:`schema_client_exposure`,schema:`platform`,table:`schema_client_exposure`,label:`Schema Client Exposure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_ledger:{token:`schema_migration_ledger`,schema:`public`,table:`_schema_migrations`,label:`Migration ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_legacy:{token:`schema_migration_legacy`,schema:`public`,table:`schema_migrations`,label:`Legacy migration ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_slot_grandfather:{token:`schema_migration_slot_grandfather`,schema:`public`,table:`_schema_migration_slot_grandfather`,label:`Schema Migration Slot Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_templates:{token:`schema_templates`,schema:`workbench`,table:`schema_templates`,label:`Schema Templates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope:{token:`scope`,schema:`context`,table:`scopes`,label:`Scope`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},scope_association_suggestion:{token:`scope_association_suggestion`,schema:`rag`,table:`scope_association_suggestions`,label:`Scope Association Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_dataset_instance:{token:`scope_dataset_instance`,schema:`context`,table:`scope_dataset_instances`,label:`Scope dataset instance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_door_registry:{token:`scope_door_registry`,schema:`context`,table:`scope_door_registry`,label:`Scope Door Registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_item_value_suggestion:{token:`scope_item_value_suggestion`,schema:`rag`,table:`scope_item_value_suggestions`,label:`Scope Item Value Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_suggestion:{token:`scope_suggestion`,schema:`rag`,table:`scope_suggestions`,label:`Scope Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_type:{token:`scope_type`,schema:`context`,table:`scope_types`,label:`Scope Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`slug`,contentRole:`container`,referenceCategory:null},scrape_domain:{token:`scrape_domain`,schema:`scraper`,table:`scrape_domain`,label:`Scrape Domain`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_domain_settings:{token:`scrape_domain_settings`,schema:`scraper`,table:`scrape_domain_settings`,label:`Scrape Domain Settings`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_failure_log:{token:`scrape_failure_log`,schema:`scraper`,table:`scrape_failure_log`,label:`Scrape Failure Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_parsed_page:{token:`scrape_parsed_page`,schema:`scraper`,table:`scrape_parsed_page`,label:`Parsed page`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_path_override:{token:`scrape_path_override`,schema:`scraper`,table:`scrape_path_override`,label:`Scrape Path Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_path_pattern:{token:`scrape_path_pattern`,schema:`scraper`,table:`scrape_path_pattern`,label:`Scrape Path Pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_retry_queue:{token:`scrape_retry_queue`,schema:`scraper`,table:`scrape_retry_queue`,label:`Scrape Retry Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},search_item:{token:`search_item`,schema:`platform`,table:`search_item`,label:`Search item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_capability:{token:`seo_ai_capability`,schema:`seo`,table:`ai_capability`,label:`SEO AI capability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_citation:{token:`seo_ai_visibility_citation`,schema:`seo`,table:`ai_visibility_citation`,label:`AI Visibility Citation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_claim:{token:`seo_ai_visibility_claim`,schema:`seo`,table:`ai_visibility_claim`,label:`AI Visibility Claim`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_panel:{token:`seo_ai_visibility_panel`,schema:`seo`,table:`ai_visibility_panel`,label:`AI Visibility Panel`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_response:{token:`seo_ai_visibility_response`,schema:`seo`,table:`ai_visibility_response`,label:`AI Visibility Response`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_signal:{token:`seo_ai_visibility_signal`,schema:`seo`,table:`ai_visibility_signal`,label:`AI Visibility Signal`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink:{token:`seo_backlink`,schema:`seo`,table:`backlink`,label:`SEO Backlink`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_change_event:{token:`seo_backlink_change_event`,schema:`seo`,table:`backlink_change_event`,label:`Backlink Change Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_dimension_snapshot:{token:`seo_backlink_dimension_snapshot`,schema:`seo`,table:`backlink_dimension_snapshot`,label:`Backlink Dimension Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_observation:{token:`seo_backlink_observation`,schema:`seo`,table:`backlink_observation`,label:`Backlink Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_snapshot:{token:`seo_backlink_snapshot`,schema:`seo`,table:`backlink_snapshot`,label:`Backlink Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_assessment:{token:`seo_change_assessment`,schema:`seo`,table:`change_assessment`,label:`SEO Change Assessment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_event:{token:`seo_change_event`,schema:`seo`,table:`change_event`,label:`SEO Change Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_item:{token:`seo_change_item`,schema:`seo`,table:`change_item`,label:`SEO Change Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_metric:{token:`seo_change_metric`,schema:`seo`,table:`change_metric`,label:`SEO Change Metric`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_set:{token:`seo_change_set`,schema:`seo`,table:`change_set`,label:`SEO Change`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:`title`,contentRole:`source`,referenceCategory:null},seo_change_theory:{token:`seo_change_theory`,schema:`seo`,table:`change_theory`,label:`SEO Change Theory`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_collection_run:{token:`seo_collection_run`,schema:`seo`,table:`collection_run`,label:`SEO Collection Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor:{token:`seo_competitor`,schema:`seo`,table:`competitor`,label:`SEO Competitor`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor_observation:{token:`seo_competitor_observation`,schema:`seo`,table:`competitor_observation`,label:`Competitor Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor_opportunity:{token:`seo_competitor_opportunity`,schema:`seo`,table:`competitor_opportunity`,label:`Competitor Opportunity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_coverage_mention:{token:`seo_coverage_mention`,schema:`seo`,table:`coverage_mention`,label:`Coverage Mention`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_coverage_tracker:{token:`seo_coverage_tracker`,schema:`seo`,table:`coverage_tracker`,label:`Coverage Tracker`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_dimension_value_matcher:{token:`seo_dimension_value_matcher`,schema:`seo`,table:`dimension_value_matcher`,label:`Dimension Value Matcher`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_engine_schedule:{token:`seo_engine_schedule`,schema:`seo`,table:`engine_schedule`,label:`SEO Engine Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_geo_place:{token:`seo_geo_place`,schema:`seo`,table:`geo_place`,label:`Geo Place`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_gsc_dig_rule:{token:`seo_gsc_dig_rule`,schema:`seo`,table:`gsc_dig_rule`,label:`GSC Dig Rule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword:{token:`seo_keyword`,schema:`seo`,table:`keyword`,label:`SEO Keyword`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:`phrase`,contentRole:null,referenceCategory:null},seo_keyword_class_rule:{token:`seo_keyword_class_rule`,schema:`seo`,table:`keyword_class_rule`,label:`Keyword Class Rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_edge:{token:`seo_keyword_edge`,schema:`seo`,table:`keyword_edge`,label:`Keyword Edge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_facet:{token:`seo_keyword_facet`,schema:`seo`,table:`keyword_facet`,label:`Keyword Facet`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_market:{token:`seo_keyword_market`,schema:`seo`,table:`keyword_market`,label:`Keyword Market Data`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_market_observation:{token:`seo_keyword_market_observation`,schema:`seo`,table:`keyword_market_observation`,label:`Keyword Market Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_place:{token:`seo_keyword_place`,schema:`seo`,table:`keyword_place`,label:`Keyword Place`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_saved_view:{token:`seo_keyword_saved_view`,schema:`seo`,table:`keyword_saved_view`,label:`Keyword Saved View`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_topic:{token:`seo_keyword_topic`,schema:`seo`,table:`keyword_topic`,label:`Keyword Topic Assignment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_landscape_brief:{token:`seo_landscape_brief`,schema:`seo`,table:`landscape_brief`,label:`Competitive Landscape Brief`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_link_gap_domain:{token:`seo_link_gap_domain`,schema:`seo`,table:`link_gap_domain`,label:`Link Gap Domain`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_link_gap_match:{token:`seo_link_gap_match`,schema:`seo`,table:`link_gap_match`,label:`Link Gap Match`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_facet:{token:`seo_map_facet`,schema:`seo`,table:`map_facet`,label:`Topical map facet`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_facet_value:{token:`seo_map_facet_value`,schema:`seo`,table:`map_facet_value`,label:`Topical map facet value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_topic:{token:`seo_map_topic`,schema:`seo`,table:`map_topic`,label:`Topical map topic`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_page_measurement_health:{token:`seo_page_measurement_health`,schema:`seo`,table:`page_measurement_health`,label:`Page Measurement Health`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_page_performance:{token:`seo_page_performance`,schema:`seo`,table:`page_performance`,label:`Page Performance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_pr_moment:{token:`seo_pr_moment`,schema:`seo`,table:`pr_moment`,label:`PR Moment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_provider_call:{token:`seo_provider_call`,schema:`seo`,table:`provider_call`,label:`SEO Provider Call`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_provider_task:{token:`seo_provider_task`,schema:`seo`,table:`provider_task`,label:`SEO Provider Task`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_rank_observation:{token:`seo_rank_observation`,schema:`seo`,table:`rank_observation`,label:`Rank Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_rank_target:{token:`seo_rank_target`,schema:`seo`,table:`rank_target`,label:`SEO Rank Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_raw_payload:{token:`seo_raw_payload`,schema:`seo`,table:`raw_payload`,label:`SEO Raw Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_referring_domain_profile:{token:`seo_referring_domain_profile`,schema:`seo`,table:`referring_domain_profile`,label:`Referring Domain Profile`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_reputation_case:{token:`seo_reputation_case`,schema:`seo`,table:`reputation_case`,label:`Reputation Case`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_search_performance_daily:{token:`seo_search_performance_daily`,schema:`seo`,table:`search_performance_daily`,label:`Search Performance Daily`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_mention:{token:`seo_serp_mention`,schema:`seo`,table:`serp_mention`,label:`SERP Prospect Mention`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_opportunity:{token:`seo_serp_opportunity`,schema:`seo`,table:`serp_opportunity`,label:`SERP Prospect Opportunity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_result:{token:`seo_serp_result`,schema:`seo`,table:`serp_result`,label:`SERP Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_snapshot:{token:`seo_serp_snapshot`,schema:`seo`,table:`serp_snapshot`,label:`SERP Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_geo_area:{token:`seo_site_geo_area`,schema:`seo`,table:`site_geo_area`,label:`Site Geo Area`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_keyword_offering:{token:`seo_site_keyword_offering`,schema:`seo`,table:`site_keyword_offering`,label:`Site Keyword Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_keyword_value:{token:`seo_site_keyword_value`,schema:`seo`,table:`site_keyword_value`,label:`Site Keyword Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_offering_value:{token:`seo_site_offering_value`,schema:`seo`,table:`site_offering_value`,label:`Site Offering Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_topic_value:{token:`seo_site_topic_value`,schema:`seo`,table:`site_topic_value`,label:`Site Topic Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_value_combo:{token:`seo_site_value_combo`,schema:`seo`,table:`site_value_combo`,label:`Site Value Combination`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_value_worth:{token:`seo_site_value_worth`,schema:`seo`,table:`site_value_worth`,label:`Site Value Worth`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_vocabulary:{token:`seo_site_vocabulary`,schema:`seo`,table:`site_vocabulary`,label:`Site Vocabulary`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_source_request:{token:`seo_source_request`,schema:`seo`,table:`source_request`,label:`SEO Source Request`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_starter_pack:{token:`seo_starter_pack`,schema:`seo`,table:`starter_pack`,label:`SEO Industry Starter Pack`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_starter_pack_item:{token:`seo_starter_pack_item`,schema:`seo`,table:`starter_pack_item`,label:`SEO Starter Pack Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_story_angle:{token:`seo_story_angle`,schema:`seo`,table:`story_angle`,label:`SEO Story Angle`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_topic:{token:`seo_topic`,schema:`seo`,table:`topic`,label:`SEO Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},seo_topical_map:{token:`seo_topical_map`,schema:`seo`,table:`topical_map`,label:`Topical map`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_tracker_story:{token:`seo_tracker_story`,schema:`seo`,table:`tracker_story`,label:`Monitor Story`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_web_analytics_daily:{token:`seo_web_analytics_daily`,schema:`seo`,table:`web_analytics_daily`,label:`Web Analytics Daily`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},shareable_resource_registry:{token:`shareable_resource_registry`,schema:`platform`,table:`shareable_resource_registry`,label:`Shareable resource registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},shared_canvas_item:{token:`shared_canvas_item`,schema:`canvas`,table:`shared_canvas_items`,label:`Shared Canvas Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},short_link:{token:`short_link`,schema:`platform`,table:`short_links`,label:`Short Link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sign_in_fk_legacy:{token:`sign_in_fk_legacy`,schema:`platform`,table:`sign_in_fk_legacy`,label:`Sign-in reference baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},skill:{token:`skill`,schema:`skill`,table:`definition`,label:`Skill`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},skill_detail:{token:`skill_detail`,schema:`skill`,table:`skill_detail`,label:`Skill Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},skill_render_definition:{token:`skill_render_definition`,schema:`skill`,table:`render_definition`,label:`Skill Render Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},sms_consent:{token:`sms_consent`,schema:`communication`,table:`sms_consent`,label:`SMS Consent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_conversation:{token:`sms_conversation`,schema:`communication`,table:`sms_conversations`,label:`SMS Conversation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_message:{token:`sms_message`,schema:`communication`,table:`sms_messages`,label:`SMS Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_message_media:{token:`sms_message_media`,schema:`communication`,table:`sms_media`,label:`SMS Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`file_name`,contentRole:null,referenceCategory:null},sms_notification:{token:`sms_notification`,schema:`communication`,table:`sms_notifications`,label:`SMS Notification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_notification_preference:{token:`sms_notification_preference`,schema:`communication`,table:`sms_notification_preferences`,label:`SMS Notification Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_phone_number:{token:`sms_phone_number`,schema:`communication`,table:`sms_phone_numbers`,label:`SMS Phone Number`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_rate_limits:{token:`sms_rate_limits`,schema:`communication`,table:`sms_rate_limits`,label:`Sms Rate Limits`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_webhook_logs:{token:`sms_webhook_logs`,schema:`communication`,table:`sms_webhook_logs`,label:`Sms Webhook Logs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},soft_delete_cascade_job:{token:`soft_delete_cascade_job`,schema:`platform`,table:`soft_delete_cascade_job`,label:`Soft-delete cascade job`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},soft_delete_edge:{token:`soft_delete_edge`,schema:`platform`,table:`soft_delete_edge`,label:`Soft Delete Edge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},source_authority:{token:`source_authority`,schema:`platform`,table:`source_authority`,label:`Source authority`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},stage_ref_kind:{token:`stage_ref_kind`,schema:`growth`,table:`stage_ref_kind`,label:`Stage reference kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},stamped_write_table:{token:`stamped_write_table`,schema:`platform`,table:`stamped_write_table`,label:`Stamped Write Table`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},structure:{token:`structure`,schema:`files`,table:`structure`,label:`Structure`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_cleaned_segments:{token:`studio_cleaned_segments`,schema:`transcripts`,table:`studio_cleaned_segments`,label:`Studio Cleaned Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_concept_items:{token:`studio_concept_items`,schema:`transcripts`,table:`studio_concept_items`,label:`Studio Concept Items`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_documents:{token:`studio_documents`,schema:`transcripts`,table:`studio_documents`,label:`Studio Document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},studio_module_segments:{token:`studio_module_segments`,schema:`transcripts`,table:`studio_module_segments`,label:`Studio Module Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_raw_segments:{token:`studio_raw_segments`,schema:`transcripts`,table:`studio_raw_segments`,label:`Studio Raw Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_recording_chunks:{token:`studio_recording_chunks`,schema:`transcripts`,table:`studio_recording_chunks`,label:`Studio Recording Chunk`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_recording_segments:{token:`studio_recording_segments`,schema:`transcripts`,table:`studio_recording_segments`,label:`Studio Recording Segment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_run:{token:`studio_run`,schema:`transcripts`,table:`studio_runs`,label:`Studio Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_session:{token:`studio_session`,schema:`transcripts`,table:`studio_sessions`,label:`Transcript Studio session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:`source`,referenceCategory:null},studio_session_settings:{token:`studio_session_settings`,schema:`transcripts`,table:`studio_session_settings`,label:`Studio Session Settings`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_attempt:{token:`study_attempt`,schema:`education`,table:`study_attempt`,label:`Study Attempt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_goal:{token:`study_goal`,schema:`education`,table:`study_goal`,label:`Study Goal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_media:{token:`study_media`,schema:`education`,table:`study_media`,label:`Study Media`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_plan:{token:`study_plan`,schema:`education`,table:`study_plan`,label:`Study Plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_plan_block:{token:`study_plan_block`,schema:`education`,table:`study_plan_block`,label:`Study Plan Block`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},study_plan_day:{token:`study_plan_day`,schema:`education`,table:`study_plan_day`,label:`Study Plan Day`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_reminder_context:{token:`study_reminder_context`,schema:`education`,table:`study_reminder_context`,label:`Study Reminder Context`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_reminder_delivery:{token:`study_reminder_delivery`,schema:`education`,table:`study_reminder_delivery`,label:`Study Reminder Delivery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_session:{token:`study_session`,schema:`education`,table:`study_session`,label:`Study Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_source_chunk:{token:`study_source_chunk`,schema:`education`,table:`study_source_chunk`,label:`Study Source Chunk`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_streak:{token:`study_streak`,schema:`education`,table:`study_streak`,label:`Study streak`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_structured_section:{token:`study_structured_section`,schema:`education`,table:`study_structured_section`,label:`Study Structured Section`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},superseded_policy:{token:`superseded_policy`,schema:`iam`,table:`superseded_policy`,label:`Superseded Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},surface:{token:`surface`,schema:`ui`,table:`ui_surface`,label:`UI Surface`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},system_announcement:{token:`system_announcement`,schema:`users`,table:`system_announcements`,label:`System announcement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_context_item:{token:`system_context_item`,schema:`context`,table:`system_context_item`,label:`System Context Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_error:{token:`system_error`,schema:`ops`,table:`system_error`,label:`System Error`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_orgs:{token:`system_orgs`,schema:`iam`,table:`system_orgs`,label:`System Orgs`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_write_failure:{token:`system_write_failure`,schema:`ops`,table:`system_write_failure`,label:`System Write Failure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_backfill_ledger:{token:`t13_backfill_ledger`,schema:`ops`,table:`t13_backfill_ledger`,label:`T-13 backfill ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_default_ledger:{token:`t13_default_ledger`,schema:`ops`,table:`t13_default_ledger`,label:`T-13 default ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_row_column_events:{token:`t13_row_column_events`,schema:`ops`,table:`t13_row_column_events`,label:`T-13 row column events`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tag:{token:`tag`,schema:`platform`,table:`tag`,label:`Tag`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},task:{token:`task`,schema:`projects`,table:`tasks`,label:`Task`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Workspaces`,referencePickable:!0,titleColumn:`title`,contentRole:`container`,referenceCategory:null},task_user_state:{token:`task_user_state`,schema:`projects`,table:`task_user_state`,label:`Task user state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},taxonomy_node:{token:`taxonomy_node`,schema:`platform`,table:`taxonomy_node`,label:`Taxonomy node`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},team:{token:`team`,schema:`iam`,table:`team`,label:`Team`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!1,category:`Organizations`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},template_context_items:{token:`template_context_items`,schema:`context`,table:`template_context_items`,label:`Template Context Items`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},template_scope_types:{token:`template_scope_types`,schema:`context`,table:`template_scope_types`,label:`Template Scope Types`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},templates:{token:`templates`,schema:`context`,table:`templates`,label:`Templates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},test_handset_inbox:{token:`test_handset_inbox`,schema:`communication`,table:`test_handset_inbox`,label:`Test Handset Inbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},test_handset_verification:{token:`test_handset_verification`,schema:`communication`,table:`test_handset_verification`,label:`Test Handset Verification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},thread:{token:`thread`,schema:`projects`,table:`threads`,label:`Thread`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},tool:{token:`tool`,schema:`tool`,table:`definition`,label:`Tool`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_binding:{token:`tool_binding`,schema:`tool`,table:`binding`,label:`Tool binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_bundle:{token:`tool_bundle`,schema:`tool`,table:`bundle`,label:`Tool Bundle`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_call:{token:`tool_call`,schema:`chat`,table:`tool_call`,label:`Tool Call`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_definition_version:{token:`tool_definition_version`,schema:`tool`,table:`definition_version`,label:`Tool Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_executor:{token:`tool_executor`,schema:`tool`,table:`executor`,label:`Tool executor`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_surface_defaults:{token:`tool_surface_defaults`,schema:`tool`,table:`surface_defaults`,label:`Tool surface defaults`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_test_sample:{token:`tool_test_sample`,schema:`tool`,table:`test_sample`,label:`Tool Test Sample`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_ui:{token:`tool_ui`,schema:`tool`,table:`ui`,label:`Tool UI`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},tool_ui_incident:{token:`tool_ui_incident`,schema:`tool`,table:`ui_incident`,label:`Tool UI Incident`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_ui_version:{token:`tool_ui_version`,schema:`tool`,table:`ui_version`,label:`Tool UI Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},topic_placement_queue:{token:`topic_placement_queue`,schema:`seo`,table:`topic_placement_queue`,label:`Topic Placement Queue`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},transcript:{token:`transcript`,schema:`transcripts`,table:`transcripts`,label:`Transcript`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`title`,contentRole:`source`,referenceCategory:null},trigger_event:{token:`trigger_event`,schema:`workflow`,table:`trigger_event`,label:`Trigger Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_dataset_template:{token:`udt_dataset_template`,schema:`workbench`,table:`udt_dataset_templates`,label:`Dataset template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_dataset_template_fields:{token:`udt_dataset_template_fields`,schema:`workbench`,table:`udt_dataset_template_fields`,label:`Udt Dataset Template Fields`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_document:{token:`udt_document`,schema:`workbench`,table:`udt_documents`,label:`Cloud document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`document_name`,contentRole:`hybrid`,referenceCategory:null},udt_document_snapshot:{token:`udt_document_snapshot`,schema:`workbench`,table:`udt_document_snapshots`,label:`Document snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_workbook_snapshot:{token:`udt_workbook_snapshot`,schema:`workbench`,table:`udt_workbook_snapshots`,label:`Workbook snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_client:{token:`ui_client`,schema:`ui`,table:`ui_client`,label:`UI client`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_agent_pref:{token:`ui_surface_agent_pref`,schema:`ui`,table:`ui_surface_agent_pref`,label:`UI Surface Agent Pref`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_agent_role:{token:`ui_surface_agent_role`,schema:`ui`,table:`ui_surface_agent_role`,label:`UI surface agent role`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_client_tool:{token:`ui_surface_client_tool`,schema:`ui`,table:`ui_surface_client_tool`,label:`UI surface client tool`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_config:{token:`ui_surface_config`,schema:`ui`,table:`ui_surface_config`,label:`UI Surface Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_item_type:{token:`ui_surface_item_type`,schema:`ui`,table:`ui_surface_item_type`,label:`UI surface item type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_value:{token:`ui_surface_value`,schema:`ui`,table:`ui_surface_value`,label:`UI surface value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_write_target:{token:`ui_surface_write_target`,schema:`ui`,table:`ui_surface_write_target`,label:`UI surface write target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},univer_payload:{token:`univer_payload`,schema:`content`,table:`univer_payload`,label:`Univer Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},unsubscribe_token:{token:`unsubscribe_token`,schema:`crm`,table:`unsubscribe_token`,label:`Unsubscribe Token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},uploads_inflight:{token:`uploads_inflight`,schema:`files`,table:`uploads_inflight`,label:`Uploads Inflight`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user:{token:`user`,schema:`iam`,table:`users`,label:`User`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_achievement:{token:`user_achievement`,schema:`users`,table:`user_achievements`,label:`User Achievement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_active_context:{token:`user_active_context`,schema:`context`,table:`user_active_context`,label:`Active context`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_analysis_preference:{token:`user_analysis_preference`,schema:`users`,table:`user_analysis_preferences`,label:`User Analysis Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_email_preference:{token:`user_email_preference`,schema:`users`,table:`user_email_preferences`,label:`User Email Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_entity_state:{token:`user_entity_state`,schema:`platform`,table:`user_entity_state`,label:`User entity state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_feedback:{token:`user_feedback`,schema:`users`,table:`user_feedback`,label:`User Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_follows:{token:`user_follows`,schema:`users`,table:`user_follows`,label:`User Follows`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_form_profile:{token:`user_form_profile`,schema:`users`,table:`user_form_profile`,label:`User Form Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_markdown_sample:{token:`user_markdown_sample`,schema:`users`,table:`user_markdown_samples`,label:`User Markdown Sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},user_memory:{token:`user_memory`,schema:`users`,table:`user_memory`,label:`User Memory`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_preference:{token:`user_preference`,schema:`users`,table:`user_preferences`,label:`User Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_profile:{token:`user_profile`,schema:`users`,table:`profiles`,label:`User Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},user_secret:{token:`user_secret`,schema:`users`,table:`user_secrets`,label:`User secret`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_secret_audit:{token:`user_secret_audit`,schema:`users`,table:`user_secret_audit`,label:`Secret audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_secret_grant:{token:`user_secret_grant`,schema:`users`,table:`user_secret_grants`,label:`Secret grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_stat:{token:`user_stat`,schema:`users`,table:`user_stats`,label:`User Stats`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_storage_usage:{token:`user_storage_usage`,schema:`files`,table:`user_storage_usage`,label:`Storage usage`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_surface_state:{token:`user_surface_state`,schema:`users`,table:`user_surface_state`,label:`User Surface State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_approvals:{token:`vault_fill_approvals`,schema:`users`,table:`_vault_fill_approvals`,label:`Vault fill approvals`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_devices:{token:`vault_fill_devices`,schema:`users`,table:`_vault_fill_devices`,label:`Vault fill devices`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_nonces:{token:`vault_fill_nonces`,schema:`users`,table:`_vault_fill_nonces`,label:`Vault fill nonces`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},visibility_cache:{token:`visibility_cache`,schema:`custom`,table:`visibility_cache`,label:`Visibility Cache`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},visibility_epoch:{token:`visibility_epoch`,schema:`custom`,table:`visibility_epoch`,label:`Visibility Epoch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},voice:{token:`voice`,schema:`ai`,table:`voices`,label:`Voice`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},war_room:{token:`war_room`,schema:`projects`,table:`war_rooms`,label:`War Room`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},wbx_demo:{token:`wbx_demo`,schema:`extend`,table:`wbx_demo`,label:`Extension demo record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_guidance:{token:`wbx_guidance`,schema:`extend`,table:`wbx_guidance`,label:`Extension Guidance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_highlight:{token:`wbx_highlight`,schema:`extend`,table:`wbx_highlight`,label:`Extension Highlight`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_pattern:{token:`wbx_pattern`,schema:`extend`,table:`wbx_pattern`,label:`Extension Scrape Pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},wbx_recipe:{token:`wbx_recipe`,schema:`extend`,table:`wbx_recipe`,label:`Extension recipe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_screenshot:{token:`wbx_screenshot`,schema:`extend`,table:`wbx_screenshot`,label:`Extension Screenshot`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_seo_audit:{token:`wbx_seo_audit`,schema:`extend`,table:`wbx_seo_audit`,label:`Extension SEO Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_claim:{token:`wc_claim`,schema:`legal`,table:`wc_claim`,label:`WC Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_impairment_definition:{token:`wc_impairment_definition`,schema:`legal`,table:`wc_impairment_definition`,label:`WC Impairment Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},wc_injury:{token:`wc_injury`,schema:`legal`,table:`wc_injury`,label:`WC Injury`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_report:{token:`wc_report`,schema:`legal`,table:`wc_report`,label:`WC Report`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_analysis_item:{token:`web_analysis_item`,schema:`web`,table:`analysis_item`,label:`Analysis Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},web_brand:{token:`web_brand`,schema:`web`,table:`brand`,label:`Brand`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},web_brand_asset:{token:`web_brand_asset`,schema:`web`,table:`brand_asset`,label:`Brand Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},web_brand_offering:{token:`web_brand_offering`,schema:`web`,table:`brand_offering`,label:`Brand Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_business_fact:{token:`web_business_fact`,schema:`web`,table:`business_fact`,label:`Business Fact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},web_business_location:{token:`web_business_location`,schema:`web`,table:`business_location`,label:`Business Location`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_channel_analytics_daily:{token:`web_channel_analytics_daily`,schema:`web`,table:`channel_analytics_daily`,label:`Channel analytics (daily)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_event:{token:`web_crawl_event`,schema:`web`,table:`crawl_event`,label:`Web Crawl Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_preset:{token:`web_crawl_preset`,schema:`web`,table:`crawl_preset`,label:`Web Crawl Preset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},web_crawl_schedule:{token:`web_crawl_schedule`,schema:`web`,table:`crawl_schedule`,label:`Web Crawl Schedule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},web_crawl_session:{token:`web_crawl_session`,schema:`web`,table:`crawl_session`,label:`Crawl Session`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_url:{token:`web_crawl_url`,schema:`web`,table:`crawl_url`,label:`Web Crawl URL`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_discovered_item:{token:`web_discovered_item`,schema:`web`,table:`discovered_item`,label:`Discovered Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_finding:{token:`web_finding`,schema:`web`,table:`finding`,label:`Finding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_gsc_page_stat:{token:`web_gsc_page_stat`,schema:`web`,table:`gsc_page_stat`,label:`GSC Page Stat`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_link_edge:{token:`web_link_edge`,schema:`web`,table:`link_edge`,label:`Link Edge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_listing_publisher:{token:`web_listing_publisher`,schema:`web`,table:`listing_publisher`,label:`Listing Publisher`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_location_listing:{token:`web_location_listing`,schema:`web`,table:`location_listing`,label:`Location Listing`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_news_item:{token:`web_news_item`,schema:`web`,table:`news_item`,label:`News Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_offering_template:{token:`web_offering_template`,schema:`web`,table:`offering_template`,label:`Offering Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page:{token:`web_page`,schema:`web`,table:`page`,label:`Site page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`url`,contentRole:`source`,referenceCategory:null},web_page_content:{token:`web_page_content`,schema:`web`,table:`page_content`,label:`Page Draft Content`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page_evidence:{token:`web_page_evidence`,schema:`web`,table:`page_evidence`,label:`Web Page Evidence`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page_sitemap:{token:`web_page_sitemap`,schema:`web`,table:`page_sitemap`,label:`Page Sitemap Membership`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_property:{token:`web_property`,schema:`web`,table:`property`,label:`Brand Property`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},web_provider:{token:`web_provider`,schema:`web`,table:`provider`,label:`Provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},web_result:{token:`web_result`,schema:`web`,table:`analysis_result`,label:`Analysis Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_screenshot:{token:`web_screenshot`,schema:`web`,table:`screenshot`,label:`Screenshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_site:{token:`web_site`,schema:`web`,table:`site`,label:`Site`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},web_site_endpoint_rule:{token:`web_site_endpoint_rule`,schema:`web`,table:`site_endpoint_rule`,label:`Site Endpoint Rule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`path_prefix`,contentRole:null,referenceCategory:null},web_site_item_config:{token:`web_site_item_config`,schema:`web`,table:`site_item_config`,label:`Site Item Config`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_site_offering:{token:`web_site_offering`,schema:`web`,table:`site_offering`,label:`Site Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_sitemap:{token:`web_sitemap`,schema:`web`,table:`sitemap`,label:`Sitemap`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`url`,contentRole:null,referenceCategory:null},web_snapshot:{token:`web_snapshot`,schema:`web`,table:`snapshot`,label:`Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_tag_manager_snapshot:{token:`web_tag_manager_snapshot`,schema:`web`,table:`tag_manager_snapshot`,label:`Tag Manager snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_voice_fingerprint:{token:`web_voice_fingerprint`,schema:`web`,table:`voice_fingerprint`,label:`Voice Fingerprint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_youtube_video:{token:`web_youtube_video`,schema:`web`,table:`youtube_video`,label:`YouTube video`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhook_deliveries:{token:`webhook_deliveries`,schema:`files`,table:`webhook_deliveries`,label:`Webhook Deliveries`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhook_dispatch_state:{token:`webhook_dispatch_state`,schema:`files`,table:`webhook_dispatch_state`,label:`Webhook Dispatch State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhooks:{token:`webhooks`,schema:`files`,table:`webhooks`,label:`Webhooks`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wf_node_data_slot:{token:`wf_node_data_slot`,schema:`workflow`,table:`node_data_slot`,label:`Workflow Node Data Slot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},work_claim:{token:`work_claim`,schema:`platform`,table:`_work_claim`,label:`Work Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},work_item:{token:`work_item`,schema:`runtime`,table:`work_item`,label:`Runtime Work Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workbook:{token:`workbook`,schema:`workbench`,table:`udt_workbooks`,label:`Workbook`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`workbook_name`,contentRole:`hybrid`,referenceCategory:null},worker_heartbeat:{token:`worker_heartbeat`,schema:`workflow`,table:`worker_heartbeat`,label:`Worker Heartbeat`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow:{token:`workflow`,schema:`workflow`,table:`definition`,label:`Workflow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},workflow_card:{token:`workflow_card`,schema:`workflow`,table:`card`,label:`Workflow Card`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_checkpoint:{token:`workflow_checkpoint`,schema:`workflow`,table:`checkpoint`,label:`Workflow Checkpoint`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_comparison:{token:`workflow_comparison`,schema:`workflow`,table:`comparison`,label:`Workflow Comparison`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_definition_version:{token:`workflow_definition_version`,schema:`workflow`,table:`definition_version`,label:`Workflow Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_idempotency:{token:`workflow_idempotency`,schema:`workflow`,table:`idempotency`,label:`Workflow Idempotency`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_job:{token:`workflow_job`,schema:`workflow`,table:`job`,label:`Workflow Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_node_events:{token:`workflow_node_events`,schema:`workflow`,table:`node_events`,label:`Workflow Node Events`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_node_outcome:{token:`workflow_node_outcome`,schema:`workflow`,table:`node_outcome`,label:`Workflow Node Outcome`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_plan:{token:`workflow_plan`,schema:`workflow`,table:`plan`,label:`Workflow Plan`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_plan_event:{token:`workflow_plan_event`,schema:`workflow`,table:`plan_event`,label:`Workflow Plan Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_plan_sample:{token:`workflow_plan_sample`,schema:`workflow`,table:`plan_sample`,label:`Workflow Plan Sample`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_recovery_audit:{token:`workflow_recovery_audit`,schema:`workflow`,table:`recovery_audit`,label:`Workflow Recovery Audit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run:{token:`workflow_run`,schema:`workflow`,table:`run`,label:`Workflow Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_cost:{token:`workflow_run_cost`,schema:`workflow`,table:`_run_cost`,label:`Workflow run cost`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_facts:{token:`workflow_run_facts`,schema:`workflow`,table:`_run_facts`,label:`Workflow run facts`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_log:{token:`workflow_run_log`,schema:`workflow`,table:`run_log`,label:`Workflow Run Log`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_runtime_surface:{token:`workflow_runtime_surface`,schema:`workflow`,table:`runtime_surface`,label:`Run Surface`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_template:{token:`workflow_template`,schema:`workflow`,table:`template`,label:`Workflow Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_trigger:{token:`workflow_trigger`,schema:`workflow`,table:`trigger`,label:`Workflow Trigger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_trigger_fire:{token:`workflow_trigger_fire`,schema:`workflow`,table:`trigger_fire`,label:`Workflow Trigger Fire`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_work_item:{token:`workflow_work_item`,schema:`workflow`,table:`work_item`,label:`Work Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},working_document:{token:`working_document`,schema:`workbench`,table:`working_documents`,label:`Working Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},write_guard_key:{token:`write_guard_key`,schema:`hr`,table:`_write_guard_key`,label:`Write Guard Key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_quota_day:{token:`youtube_quota_day`,schema:`research`,table:`youtube_quota_day`,label:`Youtube Quota Day`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_search:{token:`youtube_search`,schema:`research`,table:`youtube_search`,label:`YouTube Search`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_video:{token:`youtube_video`,schema:`research`,table:`youtube_video`,label:`YouTube Video`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:`source`,referenceCategory:null}},mD=new Set(`access_delta_probe.access_delta_run.access_request.account_addon.acquisition_block.activity.admin_audit_log.admin_email_log.admin_markdown_sample.admin_user.admission_config.agent.agent_card.agent_definition_version.agent_drift_alert.agent_exemplar.agent_mandate_note.agent_prompt_remediation.agent_run.agent_run_stage.agent_schedule.agent_schedule_claim.agent_shortcut.agent_surface_binding.agent_template.agent_term_list.agent_usage.ai_api.ai_calls.ai_endpoint.ai_model.ai_model_alias.ai_offering.ai_provider.ai_setting.ai_setting_profile.ai_translation_cell.ai_usage_executions.ai_usage_hourly.ai_usage_hourly_watermark.analysis_result.anon_form.anon_function_birth_grandfather.anon_hit.anon_inbound.anon_replay.anon_submission.anon_token.api_field_warning.api_request_log.app.app_config.app_config_history.app_definition_version.app_error.app_execution.app_instance.app_log.app_log_muted_pattern.app_log_norm_exception.app_rate_limit.app_setting.app_sync_status.approach.artifact.assessment.assessment_item.assessment_result.assignment_session.assist.assist_producer_policy.assist_producer_policy_history.association_type.assurance_level.attempt.audit_broken_functions.audit_canonical_findings.audit_exemption.audit_function_deps.audit_function_runtime_probe.audit_m2m_candidates.audit_refresh_log.audit_stale_registry.audit_unregistered_candidates.base_entity_template.batch_cost_event.batch_provider_batch.batch_work_item.billing_capability.billing_capability_limit.billing_connect_account.billing_coupon.billing_coupon_redemption.billing_customer.billing_free_period_grant.billing_plan.billing_plan_limit.billing_price.billing_product.billing_spend_approval.billing_spend_guardrail.billing_stripe_event.billing_subscription.billing_usage_ledger.billing_usage_reset.billing_user_plan.board.browser_account_binding.browser_action_event.browser_authenticator_window.browser_capture.browser_control_request.browser_handoff.browser_login_attempt.browser_login_recipe.browser_profile.browser_profile_checkpoint.browser_run.browser_site_observation.browser_site_policy.browser_stream_ticket.build_lock.calendar_event.campaign_watch_ramp_gate_run.campaign_watch_switch_outbox.campaign_watch_switch_window.canvas_comment.canvas_comment_like.canvas_item.canvas_item_state.canvas_like.canvas_score.canvas_view.capture_window.carrying_rule.catalog_entries_history.catalog_entry.category.change_type_default.chat_user_usage_summary.citations.class_purchase.classifier_revision_ledger.client_callable_door.client_callable_door_retirement.client_excluded_column_unregistered.cmp_entry.cmp_feedback.code_file.code_folder.code_repository.coding_session.coding_session_entry.comment.commerce_asset_allocation.commerce_asset_grading.commerce_asset_identifier.commerce_asset_lot_event.commerce_asset_mandate_result.commerce_asset_price_factor.commerce_asset_reshoot_request.commerce_asset_review.commerce_asset_unknown.commerce_certified_printer.commerce_cloud_sync_connection.commerce_ebay_business_policy.commerce_ebay_category.commerce_ebay_category_aspect.commerce_ebay_category_tree.commerce_ebay_custom_policy.commerce_ebay_inventory_item.commerce_ebay_inventory_item_group.commerce_ebay_inventory_item_group_member.commerce_ebay_inventory_location.commerce_ebay_listing.commerce_ebay_marketplace_policy.commerce_ebay_media_asset.commerce_ebay_notification_destination.commerce_ebay_notification_event.commerce_ebay_notification_subscription.commerce_ebay_notification_topic.commerce_ebay_offer.commerce_ebay_order.commerce_ebay_order_line_item.commerce_ebay_shipping_fulfillment.commerce_ebay_store_category.commerce_human_correction.commerce_intake_artifact.commerce_intake_asset.commerce_intake_batch.commerce_label_batch.commerce_label_code.commerce_marketplace_account.commerce_marketplace_account_deletion_audit.commerce_marketplace_api_call.commerce_marketplace_rate_budget.commerce_marketplace_site.commerce_marketplace_sync_run.commerce_prediction_outcome.commerce_print_order.commerce_product.commerce_product_channel_ref.commerce_product_media.commerce_product_variant.commerce_recall_audit.communication_calendar_selected_snapshot_state.communication_channel_readiness.comparison_set.contact_medium.contact_submission.content_certification.content_ir_kind.content_ir_kind_component.content_ir_kind_component_incident.content_ir_kind_conformance.content_ir_kind_edge.content_ir_kind_example.content_ir_kind_instance.content_ir_kind_surface.content_lane.context_access_log.context_item.context_item_suggestion.context_item_value.context_value_refs.conversation.conversation_value.courts.credential_attachment.credential_item.credential_mutation_receipt.crm_address.crm_affiliation.crm_blocklist_entry.crm_contact_candidate.crm_deal.crm_deal_stage_event.crm_enrichment_call.crm_interaction.crm_merge_candidate.crm_outreach_list.crm_outreach_list_member.crm_party_merge.crm_party_research.crm_registry_ingest_run.crm_registry_source.crm_sending_claim.crm_sending_event.crm_sending_identity.crm_sending_identity_check.crm_sending_policy.custom_agent_table_trust.custom_agg_digest_checked.custom_entity_definition.custom_field_definition.custom_field_target.custom_io_outbox_consumer.custom_io_outbox_consumption.custom_record.custom_share_tails_mine_repair.custom_template.custom_template_install.cx_agent_memory.cx_agent_plan.cx_agent_task.cx_code_edit.cx_code_message_file.cx_media.cx_observational_memory.cx_observational_memory_event.cx_pending_injection.cx_request.cx_request_snapshot.cx_tool_trace.cx_user_request.cx_user_todo.data_rights_event.data_store.data_store_members.ddl_guard_log.deck_suggestion.definer_class_exemption.definer_client_grant_grandfather.definer_grant_baseline.deprecated_relation.derive_run.dev_login_audit.dict_entry.dict_provider_publication.dict_setting.dm_conversation.dm_message.dm_participant.doc_render.doc_signature.dockets.document.document_version.domain_classification.edge_payload_kind.egress_device.egress_pairing.egress_ticket.emails.embedding_cache.embeddings_google_gemini_2_1536.embeddings_oai_3_small_1536.embeddings_voyage_4_large_1024.embeddings_voyage_code_3_1024.endpoint_family_sweep_state.engine_owner_task.entity_grant.entity_protected_value.entity_protected_value_version.entity_relationship.entity_type.esign_campaign.esign_campaign_member.esign_consent_disclosure.esign_envelope.esign_envelope_certificate.esign_envelope_document.esign_envelope_event.esign_envelope_external_ref.esign_envelope_signer.esign_provider.esign_provider_binding.esign_signing_key.execution_event_cursor.extension_auth_code.external_link.external_source.extract_sweep_state.fc_card.fc_detail.fc_set.feature_doc.feature_knob.feedback_comments.feedback_user_messages.file.file_analysis.file_entities.file_overrides.file_page_annotations.file_pages.file_rag_job.file_version.files_account_tier.files_machine_written_prefix.files_sync_mapping.files_user_account.flexible_data.folder.function_contract.game_badge.game_result.game_room.global_execution.global_execution_checkpoint.global_execution_control.global_execution_event.global_meter_entry.global_origin.global_request.google_document.growth_loop_event.growth_loop_run.growth_loop_stage_run.guardian_link.guest_conversion_audit.guest_execution_log.guest_executions.guided_checklist_run.heatmap_save.hindsight_enrollment.hindsight_finding.hindsight_regression_case.hindsight_replay.hindsight_replay_step.hindsight_review.hr_access_audit.hr_access_role.hr_accommodation_request.hr_ai_evidence.hr_alert_routing_rule.hr_application.hr_approval_authority.hr_approval_delegation.hr_asset.hr_asset_assignment.hr_attendance_exception.hr_auto_close_rule.hr_availability.hr_background_check.hr_benefits_event.hr_calculation_snapshot.hr_candidate.hr_candidate_conversion.hr_candidate_message.hr_careers_portal.hr_checklist_item.hr_checklist_run.hr_checklist_template.hr_checklist_template_item.hr_compensation.hr_corrective_action.hr_course.hr_course_version.hr_credential.hr_crew.hr_deduction_code.hr_department.hr_derived_grant.hr_disposition_event.hr_earning_code.hr_eeo_response.hr_emergency_contact.hr_employee.hr_employee_private.hr_employer_profile.hr_employment.hr_employment_pin.hr_engagement.hr_establishment.hr_external_identity.hr_field_policy.hr_holiday.hr_holiday_calendar.hr_i9.hr_i9_document.hr_incident.hr_incident_party.hr_interview.hr_interview_kit.hr_job_title.hr_jurisdiction.hr_jurisdiction_rule.hr_jurisdiction_rule_class.hr_jurisdiction_rule_org_decision.hr_jurisdiction_rule_test.hr_kiosk_device.hr_kiosk_session.hr_labor_target.hr_leave_case.hr_leave_enrollment.hr_leave_ledger.hr_leave_policy.hr_leave_request.hr_legal_hold.hr_legal_hold_item.hr_location.hr_new_hire_report.hr_offer.hr_opening.hr_overtime_alert.hr_overtime_alert_rule.hr_overtime_preapproval.hr_pay_group.hr_pay_period.hr_pay_period_employment.hr_payroll_export.hr_payroll_export_line.hr_position_assignment.hr_posting.hr_posting_publication.hr_provider_binding.hr_provider_event.hr_provisioning_result.hr_punch.hr_recalculation_batch.hr_record_class.hr_records_request.hr_reference_check.hr_reporting_line.hr_requisition.hr_restricted_note.hr_retention_rule.hr_role_assignment.hr_schedule.hr_schedule_change.hr_schedule_guidance.hr_schedule_template.hr_schedule_template_shift.hr_scorecard.hr_separation.hr_shift.hr_shift_claim.hr_staffing_requirement.hr_survey.hr_survey_invitation.hr_survey_question.hr_survey_response.hr_tax_registration.hr_tax_withholding.hr_time_adjustment.hr_training_assignment.hr_training_attempt.hr_transcript_entry.hr_verification_letter_request.hr_work_interval.hr_workflow_binding.hr_workflow_decision.hr_workflow_definition.hr_workflow_event.hr_workflow_failure.hr_workflow_flow_type.hr_workflow_instance.hr_workflow_step.hr_workflow_step_definition.hr_workweek.html_extraction.iam_access_audit.iam_api_key.iam_emergency_door_request.iam_org_availability_key.iam_read_lane_v2_rollout.idempotency.industry.industry_curator.infra_status.ingest_runs.integration_connection.integration_connection_resource.interview_decision_interview.interview_decision_question.interview_document_revision.interview_hole.interview_question.interview_session.interview_turn.invitation.invitation_code.invitation_request.io_comment.io_contract.io_import.io_outbox.item.item_mastery.judge_verdict.jurisdiction_policy.keyword_classification_queue.kg_alert.kg_chunk_entities.kg_chunks.kg_clusters.kg_edges.kg_entities.kg_entity_aliases.kg_suggestion_ack.kg_sweep_queue.kg_sweep_run.kg_sweep_state.kg_value_match.knob_override.knob_override_audit.knob_rung_lock.knob_scope_kind.knob_write_door.league_membership.learn_doc.library_doc.lifecycle_archive.lifecycle_archive_row.lifecycle_audit.lifecycle_entity_plan.lifecycle_map_build.lifecycle_reference_map.lifecycle_run.lifecycle_tier_ledger.location.mandate.mandate_advance_batch_row.mandate_binding.mandate_candidate.mandate_candidate_run.mandate_candidate_run_payload.mandate_goal_clauses.mandate_observation.mandate_reference.mandate_scan.mandate_treatment.marketing_initiative.masterwork_corpus_item.masterwork_run.masterwork_run_kind.masterwork_source.math_course_structure.math_problem.matrx_action_ledger.mcp_config.mcp_server.mcp_user_conn.media_capture_handoff.media_catalog_setting.media_library_item.media_selection_item.media_selection_job.media_source_library.meet_call_invite.meet_chat_message.meet_invitee.meet_meeting.meet_note.meet_occurrence_override.meet_participant.meet_recording.meet_transcript_segment.membership.membership_grant.merge_field_provenance.message.message_template.message_template_detail.meta_excluded_schema.meta_table_stats_history.metadata_reserved_keys.migration_log.mtx_media_heal_queue.mtx_public_url_guard.ner_shadow.note.note_folder.notification.notification_channel_preference.notification_event_override.notification_event_type.notification_preference.notification_submission.notify_outsider_door_baseline.oauth_handoff_claim.opinion_clusters.opinions.ops_check_item.ops_check_run.ops_db_host_sample.ops_issue_class.ops_issue_event.ops_proof_check.ops_proof_run.ops_proof_scenario.org_admin_audit.org_change_policy.org_context_ledger.org_industries.org_member_control.org_module_config.org_plan.organization.organization_preferences.organization_visibility_version.output_feedback.outreach_acceptance.page_extraction_job.page_extraction_page_run.page_extraction_results.page_extraction_runs.page_intent_queue.page_mapping_queue.part_config.part_config_sub.party.party_contact_point.passkey_credential.pc_article.pc_episode.pc_show.pc_studio_run.pc_studio_run_asset.pdf_consolidation_log.pdf_redaction_audit.pdf_redaction_key_escrow.permission_grant.plan_cms_fill_item.plan_cms_fill_job.plan_entity.plan_node.plan_node_artifact.plan_node_step.plan_profile.platform_action_request.platform_actor_session.platform_actor_token.platform_actor_token_event.platform_class_approval_by_arman.platform_continued_access.platform_cutover_census_run.platform_cutover_evaluation_replaced.platform_cutover_evaluation_write.platform_cutover_seam.platform_cutover_seam_measure.platform_cutover_seam_press.platform_dated_change.platform_doors_only_pending_cutover.platform_google_calendar_event_create_intent.platform_google_task_create_intent.platform_kernel_fingerprint_record.platform_outcome_event.platform_outsider_consumer.platform_provision_base_contract_pending.platform_reachability.platform_reachability_rebuild_pending.platform_realtime_topic_prefix.platform_reference_category.platform_reference_declaration.platform_repo.platform_saved_view.platform_schema.platform_secure_delivery.platform_share_link.platform_strict_class_probe.podcast_race.position.processed_document.processed_document_page.product_capture_file.product_capture_item.product_capture_payload.product_capture_product.product_capture_question.project.provider_account.provider_account_credential.provision.provision_generate_target.provision_grant.provision_marker.provision_rule_message.provision_schema.provision_shape_debt.provision_spec.provision_spec_grandfather.provision_vocabulary.purpose.quiz_session.rag_ingest_run.rag_library_audit_log.rate_limit_buckets.reachability_pending.recompute_queue.record.record_alias.redaction_mapping.research_analysis.research_content.research_context_bundle.research_document.research_intent.research_keyword.research_media.research_source.research_synthesis.research_tag.research_template.research_topic.retention_policy.retrieval_audit.review_queue.route_manifest_entry.row_version.rulebook.runtime_operation_stream.runtime_operation_stream_batch.sandbox_instance.sch_agent_task.sch_run.sch_task.sch_trigger.schema_client_exposure.schema_migration_ledger.schema_migration_legacy.schema_migration_slot_grandfather.schema_templates.scope.scope_association_suggestion.scope_dataset_instance.scope_door_registry.scope_item_value_suggestion.scope_suggestion.scope_type.scrape_domain.scrape_domain_settings.scrape_failure_log.scrape_parsed_page.scrape_path_override.scrape_path_pattern.scrape_retry_queue.search_item.seo_ai_capability.seo_ai_visibility_citation.seo_ai_visibility_claim.seo_ai_visibility_panel.seo_ai_visibility_response.seo_ai_visibility_signal.seo_backlink.seo_backlink_change_event.seo_backlink_dimension_snapshot.seo_backlink_observation.seo_backlink_snapshot.seo_change_assessment.seo_change_event.seo_change_item.seo_change_metric.seo_change_set.seo_change_theory.seo_collection_run.seo_competitor.seo_competitor_observation.seo_competitor_opportunity.seo_coverage_mention.seo_coverage_tracker.seo_dimension_value_matcher.seo_engine_schedule.seo_geo_place.seo_gsc_dig_rule.seo_keyword.seo_keyword_class_rule.seo_keyword_edge.seo_keyword_facet.seo_keyword_market.seo_keyword_market_observation.seo_keyword_place.seo_keyword_saved_view.seo_keyword_topic.seo_landscape_brief.seo_link_gap_domain.seo_link_gap_match.seo_map_facet.seo_map_facet_value.seo_map_topic.seo_page_measurement_health.seo_page_performance.seo_pr_moment.seo_provider_call.seo_provider_task.seo_rank_observation.seo_rank_target.seo_raw_payload.seo_referring_domain_profile.seo_reputation_case.seo_search_performance_daily.seo_serp_mention.seo_serp_opportunity.seo_serp_result.seo_serp_snapshot.seo_site_geo_area.seo_site_keyword_offering.seo_site_keyword_value.seo_site_offering_value.seo_site_topic_value.seo_site_value_combo.seo_site_value_worth.seo_site_vocabulary.seo_source_request.seo_starter_pack.seo_starter_pack_item.seo_story_angle.seo_topic.seo_topical_map.seo_tracker_story.seo_web_analytics_daily.shareable_resource_registry.shared_canvas_item.short_link.sign_in_fk_legacy.skill.skill_detail.skill_render_definition.sms_consent.sms_conversation.sms_message.sms_message_media.sms_notification.sms_notification_preference.sms_phone_number.sms_rate_limits.sms_webhook_logs.soft_delete_cascade_job.soft_delete_edge.source_authority.stage_ref_kind.stamped_write_table.structure.studio_cleaned_segments.studio_concept_items.studio_documents.studio_module_segments.studio_raw_segments.studio_recording_chunks.studio_recording_segments.studio_run.studio_session.studio_session_settings.study_attempt.study_goal.study_media.study_plan.study_plan_block.study_plan_day.study_reminder_context.study_reminder_delivery.study_session.study_source_chunk.study_streak.study_structured_section.superseded_policy.surface.system_announcement.system_context_item.system_error.system_orgs.system_write_failure.t13_backfill_ledger.t13_default_ledger.t13_row_column_events.tag.task.task_user_state.taxonomy_node.team.template_context_items.template_scope_types.templates.test_handset_inbox.test_handset_verification.thread.tool.tool_binding.tool_bundle.tool_call.tool_definition_version.tool_executor.tool_surface_defaults.tool_test_sample.tool_ui.tool_ui_incident.tool_ui_version.topic_placement_queue.transcript.trigger_event.udt_dataset_template.udt_dataset_template_fields.udt_document.udt_document_snapshot.udt_workbook_snapshot.ui_client.ui_surface_agent_pref.ui_surface_agent_role.ui_surface_client_tool.ui_surface_config.ui_surface_item_type.ui_surface_value.ui_surface_write_target.univer_payload.unsubscribe_token.uploads_inflight.user.user_achievement.user_active_context.user_analysis_preference.user_email_preference.user_entity_state.user_feedback.user_follows.user_form_profile.user_markdown_sample.user_memory.user_preference.user_profile.user_secret.user_secret_audit.user_secret_grant.user_stat.user_storage_usage.user_surface_state.vault_fill_approvals.vault_fill_devices.vault_fill_nonces.visibility_cache.visibility_epoch.voice.war_room.wbx_demo.wbx_guidance.wbx_highlight.wbx_pattern.wbx_recipe.wbx_screenshot.wbx_seo_audit.wc_claim.wc_impairment_definition.wc_injury.wc_report.web_analysis_item.web_brand.web_brand_asset.web_brand_offering.web_business_fact.web_business_location.web_channel_analytics_daily.web_crawl_event.web_crawl_preset.web_crawl_schedule.web_crawl_session.web_crawl_url.web_discovered_item.web_finding.web_gsc_page_stat.web_link_edge.web_listing_publisher.web_location_listing.web_news_item.web_offering_template.web_page.web_page_content.web_page_evidence.web_page_sitemap.web_property.web_provider.web_result.web_screenshot.web_site.web_site_endpoint_rule.web_site_item_config.web_site_offering.web_sitemap.web_snapshot.web_tag_manager_snapshot.web_voice_fingerprint.web_youtube_video.webhook_deliveries.webhook_dispatch_state.webhooks.wf_node_data_slot.work_claim.work_item.workbook.worker_heartbeat.workflow.workflow_card.workflow_checkpoint.workflow_comparison.workflow_definition_version.workflow_idempotency.workflow_job.workflow_node_events.workflow_node_outcome.workflow_plan.workflow_plan_event.workflow_plan_sample.workflow_recovery_audit.workflow_run.workflow_run_cost.workflow_run_facts.workflow_run_log.workflow_runtime_surface.workflow_template.workflow_trigger.workflow_trigger_fire.workflow_work_item.working_document.write_guard_key.youtube_quota_day.youtube_search.youtube_video`.split(`.`));function hD(e){return typeof e==`string`&&mD.has(e)}function gD(e){return typeof e==`string`?JSON.stringify(e):e==null?String(e):JSON.stringify(e)}var _D={cx_message:`message`,cx_conversation:`conversation`,user_file:`file`,agent_app:`app`,chat_block:`message`};function vD(...e){for(let t of e)if(t)return t;return null}function yD(e){function t(t,n,r){let i=`association ${t} ${r} (got ${gD(n)})`;return e({code:`invalid_argument`,message:`[associations] invalid argument — ${i}`,context:{field:t}}),{code:`invalid_argument`,message:i}}return{checkUuid(e,n){return VE(n)?null:t(e,n,`must be a UUID`)},checkUuidArray(e,n){for(let r=0;r<n.length;r++)if(!VE(n[r]))return t(`${e}[${r}]`,n[r],`must be a UUID`);return null},checkToken(e,n){return typeof n!=`string`||n.length===0?t(e,n,`must be a non-empty entity-type token`):hD(n)?null:t(e,n,`is not a registered entity type (platform.entity_types) — add it to the registry + upgrade @ai-matrx/associations, never guess a token`)},normalizeEntityToken(t){let n=_D[t];return n?(e({code:`legacy_token_alias`,message:`[associations] phantom entity token ${JSON.stringify(t)} mapped to canonical ${JSON.stringify(n)} — fix the callsite to emit the canonical token (FOUND_DEFECTS D27)`,context:{value:t,canonical:n}}),n):t}}}function bD(e,t,n,r){let i={code:e,message:t};return n!==void 0&&(i.detail=n),r!==void 0&&(i.hint=r),{ok:!1,error:i}}function xD(e){return{ok:!0,data:e}}function SD(e){if(typeof navigator<`u`&&navigator.onLine===!1||e instanceof TypeError)return!0;if(e&&typeof e==`object`){let t=e;if(t.code||t.status)return!1;let n=`${typeof t.name==`string`?t.name:``} ${typeof t.message==`string`?t.message:``}`.toLowerCase();return n.includes(`failed to fetch`)||n.includes(`networkerror`)||n.includes(`network request failed`)||n.includes(`load failed`)||n.includes(`upstream connect error or disconnect/reset before headers`)}return!1}function CD(e){if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.code==`string`&&typeof t.message==`string`}function wD(e){if(e&&typeof e==`object`){let t=e;return{pgCode:typeof t.code==`string`&&t.code?t.code:null,pgMessage:typeof t.message==`string`&&t.message?t.message:null,pgHint:typeof t.hint==`string`&&t.hint?t.hint:void 0}}return{pgCode:null,pgMessage:null,pgHint:void 0}}function TD(e){function t(t){let{pgCode:n,pgMessage:r,pgHint:i}=wD(t);if(n===`PGRST202`){let a=`demanded schema violation: the database this client is pointed at cannot answer a demanded @ai-matrx/associations RPC (PostgREST PGRST202 — function not found). This package DEMANDS the platform `+`schema (README § The demanded schema). ${r??``}`.trim();e({code:`demanded_schema_violation`,message:a,context:{pgCode:n,detail:t}});let o={code:`demanded_schema_violation`,message:a,detail:t};return i!==void 0&&(o.hint=i),o}if(SD(t)?e({code:`transport_failure`,message:`network unreachable (browser offline?)`,context:{transient:!0,detail:t}}):CD(t)||e({code:`internal`,message:r??`Unexpected error talking to the data source`,context:{detail:t}}),n===`PGRST116`)return{code:`not_found`,message:`Not found`};if(n===`42501`)return{code:`forbidden_org`,message:`Permission denied`};if(n===`PGRST301`||n===`PGRST303`)return{code:`unauthorized`,message:`Your session expired`};if(n===`57014`){let e={code:`internal`,message:`The database took too long to respond`,detail:t};return i!==void 0&&(e.hint=i),e}let a={message:r??`Unexpected error talking to the data source`,code:`internal`,detail:t};return i!==void 0&&(a.hint=i),a}function n(e){let n=t(e);return[n.code,n.message,n.detail,n.hint]}return{ok:xD,err:bD,mapPgError:t,mapPgErrorPair:n}}var ED=`created_by`,DD=`organization_id`,OD=new Set([`utility`,`source`,`destination`,`hybrid`,`container`]);function kD(e){return e!==null&&OD.has(e)}var AD={cld_file:`file`};function jD(e){return AD[e]??e}var MD=(()=>{let e={};for(let t of Object.keys(pD)){let n=pD[t],r=`${n.schema}.${n.table}`;r in e||(e[r]=t)}return e})(),ND=(()=>{let e={};for(let t of Object.keys(pD)){let n=pD[t].table;e[n]=n in e?null:t}return e})();function PD(e,t){let n={...t??{}},r=new Set;function i(t){return r.has(t)||(r.add(t),e({code:`retired_entity_token`,message:`[entityRegistry] "${t}" is not in the live entity vocabulary (retired or renamed in platform.entity_types). The host still references it; rename the reference to the live token, or drop it. Serving a stand-in so the page can render.`,context:{token:t}})),{token:t,schema:``,table:``,label:`${t} (retired)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null}}function a(t){let r=pD[t]??i(t),a=n[t],o=a?.labelPlural??`${r.label}s`,s=r.titleColumn,c=kD(r.contentRole)?r.contentRole:`destination`;r.contentRole!==null&&!kD(r.contentRole)&&e({code:`invalid_content_role`,message:`[entityRegistry] "${t}" has invalid content_role "${r.contentRole}" in platform.entity_types; using destination as a loud recovery.`,context:{token:t,contentRole:r.contentRole}});let l=a?.ownerColumn===void 0?ED:a.ownerColumn??``,u=a?.orgColumn===void 0?DD:a.orgColumn??``;return{token:t,label:r.label,labelPlural:o,schema:r.schema,table:r.table,titleColumn:s,ownerColumn:l,orgColumn:u,Icon:a?.Icon??null,hrefFor:a?.hrefFor??null,scopeable:r.scopeable,category:r.category,contentRole:c,listCandidates:a?.listCandidates??null,canListCandidates:s!==null||a?.listCandidates!==void 0}}return{registerEntityOverlay(e){for(let t of Object.keys(e)){let r=e[t];r&&(n[t]={...n[t],...r})}},getEntityInfo:a,tryGetEntityInfo(e){let t=jD(e);return hD(t)?a(t):null},tryGetEntityInfoByTable(e,t){let n=MD[`${e}.${t}`];return n?a(n):null},tryGetEntityInfoByUniqueTableName(e){let t=ND[e];return t?a(t):null},curatedTokens(){return Object.keys(pD).filter(e=>{let t=pD[e],r=n[e];return kD(t.contentRole)&&(t.titleColumn!=null||r?.listCandidates!==void 0)})},listableTokens(){return Object.keys(pD).filter(t=>{let r=pD[t];if(!r.referencePickable)return!1;let i=n[t],a=r.titleColumn!=null||i?.listCandidates!==void 0;return a||e({code:`unlistable_pickable_token`,message:`[entityRegistry] "${t}" is reference_pickable in platform.entity_types but has NO title_column and no host candidate source — set its title_column in the registry or register a listCandidates override.`,context:{token:t}}),a})}}}var FD={"artifact>processed_document":`source`,"calendar_event>conversation":`conversation_attached_resource`,"calendar_event>party":`attendee`,"code_file>code_repository":`in_repository`,"content_ir_kind_instance>content_ir_kind_instance":`part_of`,"conversation>party":`produced_by`,"fc_set>processed_document":`source`,"file>hr_application":`evidence`,"file>hr_employee":`personnel_document`,"file>hr_employment":`evidence`,"file>hr_incident":`evidence`,"file>hr_leave_case":`evidence`,"google_document>crm_deal":`attached_to`,"google_document>party":`attached_to`,"google_document>project":`attached_to`,"google_document>task":`attached_to`,"hr_candidate>party":`candidate_party`,"hr_course>hr_job_title":`role_curriculum`,"hr_credential>hr_job_title":`required_credential`,"hr_employee>record":`scope_member`,"hr_employee>scope":`scope_member`,"integration_connection_resource>conversation":`conversation_attached_resource`,"media_source_library>youtube_video":`catalogued_source`,"message>content_ir_kind_instance":`produced_by`,"note>calendar_event":`about`,"note>hr_candidate":`hr_note`,"note>hr_employee":`hr_note`,"organization>seo_keyword":`keyword_library`,"pc_episode>processed_document":`source`,"processed_document>code_repository":`in_repository`,"processed_document>media_source_library":`catalogued_source`,"processed_document>record":`about`,"processed_document>research_topic":`research_source`,"processed_document>scope":`about`,"processed_document>tag":`about`,"processed_document>web_site":`crawled_page`,"quiz_session>processed_document":`source`,"research_source>youtube_video":`Canonical YouTube video`,"web_youtube_video>seo_map_topic":`covers`,"youtube_video>transcript":`video_transcript`};function ID(e,t){return FD[`${e}>${t}`]}function LD(e){return{id:e.id,direction:e.direction===`incoming`?`incoming`:`outgoing`,otherType:e.other_type,otherId:e.other_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function RD(e){return{id:e.id,targetId:e.target_id,sourceType:e.source_type,sourceId:e.source_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function zD(e){return{id:e.id,sourceId:e.source_id,targetType:e.target_type,targetId:e.target_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function BD(e){let{dataSource:t,identity:n,guards:r}=e,{ok:i,err:a,mapPgError:o,mapPgErrorPair:s}=e.rpc,{checkToken:c,checkUuid:l,checkUuidArray:u,normalizeEntityToken:d}=r;return{async listForEntity(e,r){try{n.requireUserId();let o=d(e),u=vD(c(`type`,o),l(`id`,r));if(u)return{ok:!1,error:u};let{data:f,error:p}=await t.rpc(`assoc_for_entity`,{p_type:o,p_id:r});return p?a(...s(p)):i({edges:(Array.isArray(f)?f:[]).map(LD)})}catch(e){return{ok:!1,error:o(e)}}},async listConversationFiles(e){try{n.requireUserId();let r=l(`conversationId`,e);if(r)return{ok:!1,error:r};let{data:o,error:c}=await t.rpc(`conversation_files`,{p_conversation_id:e});return c?a(...s(c)):i({files:(Array.isArray(o)?o:[]).map(e=>({fileId:e.file_id,label:e.label??null,metadata:e.metadata??{},createdAt:e.created_at}))})}catch(e){return{ok:!1,error:o(e)}}},async listForTargets(e,r){try{n.requireUserId();let o=d(e),l=Array.from(new Set(r));if(l.length===0)return i({edges:[]});let f=vD(c(`targetType`,o),u(`targetIds`,l));if(f)return{ok:!1,error:f};let{data:p,error:m}=await t.rpc(`assoc_for_targets`,{p_target_type:o,p_target_ids:l});return m?a(...s(m)):i({edges:(Array.isArray(p)?p:[]).map(RD)})}catch(e){return{ok:!1,error:o(e)}}},async listForTargetsVisible(e,r){try{n.requireUserId();let o=d(e),l=Array.from(new Set(r));if(l.length===0)return i({edges:[]});let f=vD(c(`targetType`,o),u(`targetIds`,l));if(f)return{ok:!1,error:f};let{data:p,error:m}=await t.rpc(`assoc_members_visible`,{p_target_type:o,p_target_ids:l});return m?a(...s(m)):i({edges:(Array.isArray(p)?p:[]).map(RD)})}catch(e){return{ok:!1,error:o(e)}}},async listForSources(e,r,l){try{n.requireUserId();let o=d(e),f=l==null?void 0:d(l),p=Array.from(new Set(r));if(p.length===0)return i({edges:[]});let m=vD(c(`sourceType`,o),u(`sourceIds`,p),f?c(`targetType`,f):null);if(m)return{ok:!1,error:m};let{data:h,error:g}=await t.rpc(`assoc_for_sources`,{p_source_type:o,p_source_ids:p,...f?{p_target_type:f}:{}});return g?a(...s(g)):i({edges:(Array.isArray(h)?h:[]).map(zD)})}catch(e){return{ok:!1,error:o(e)}}},async add(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),u=vD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),l(`targetId`,e.targetId),e.orgId==null?null:l(`orgId`,e.orgId));if(u)return{ok:!1,error:u};if(r===`file`&&o===`conversation`){if(e.role!=null||e.position!=null||e.payloadKind!=null||e.payload!=null)return a(`invalid_argument`,`File conversation attachments support only the canonical role-less edge`);let{data:n,error:r}=await t.rpc(`conversation_file_add`,{p_conversation_id:e.targetId,p_file_id:e.sourceId,p_label:e.label,p_metadata:e.metadata??{},p_replace_metadata:e.replaceMetadata??!1});return r?a(...s(r)):!n||typeof n!=`string`?a(`internal`,`conversation_file_add returned no association id`):i({id:n})}if(e.replaceMetadata!=null)return a(`invalid_argument`,`replaceMetadata is supported only for file conversation attachments`);let{data:f,error:p}=await t.rpc(`assoc_add`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_id:e.targetId,p_org_id:e.orgId,p_label:ID(r,o)??e.label,p_metadata:e.metadata??{},p_role:e.role,p_position:e.position,p_payload_kind:e.payloadKind,p_payload:e.payload??void 0});return p?a(...s(p)):!f||typeof f!=`string`?a(`internal`,`assoc_add returned no association id`):i({id:f})}catch(e){return{ok:!1,error:o(e)}}},async remove(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),u=vD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),l(`targetId`,e.targetId));if(u)return{ok:!1,error:u};if(r===`file`&&o===`conversation`){if(e.role!=null)return a(`invalid_argument`,`File conversation attachments support only the canonical role-less edge`);let{error:n}=await t.rpc(`conversation_file_remove`,{p_conversation_id:e.targetId,p_file_id:e.sourceId});return n?a(...s(n)):i(null)}let{error:f}=await t.rpc(`assoc_remove`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_id:e.targetId,p_role:e.role});return f?a(...s(f)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async setTargets(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),f=Array.from(new Set(e.targetIds)),p=vD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),u(`targetIds`,f),e.orgId==null?null:l(`orgId`,e.orgId));if(p)return{ok:!1,error:p};let{error:m}=await t.rpc(`assoc_set_targets`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_ids:f,p_org_id:e.orgId,p_role:e.role});return m?a(...s(m)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async addAgentResource(e){try{n.requireUserId();let r=d(e.sourceType),o=vD(l(`agentId`,e.agentId),c(`sourceType`,r),l(`sourceId`,e.sourceId));if(o)return{ok:!1,error:o};let{data:u,error:f}=await t.rpc(`agent_resource_add`,{p_agent_id:e.agentId,p_source_type:r,p_source_id:e.sourceId,p_label:e.label,p_metadata:e.metadata??{}});return f?a(...s(f)):!u||typeof u!=`string`?a(`internal`,`agent_resource_add returned no association id`):i({id:u})}catch(e){return{ok:!1,error:o(e)}}},async removeAgentResource(e){try{n.requireUserId();let r=d(e.sourceType),o=vD(l(`agentId`,e.agentId),c(`sourceType`,r),l(`sourceId`,e.sourceId));if(o)return{ok:!1,error:o};let{error:u}=await t.rpc(`agent_resource_remove`,{p_agent_id:e.agentId,p_source_type:r,p_source_id:e.sourceId});return u?a(...s(u)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async removeForEntity(e,r){try{n.requireUserId();let o=d(e),u=vD(c(`type`,o),l(`id`,r));if(u)return{ok:!1,error:u};let{error:f}=await t.rpc(`assoc_remove_for_entity`,{p_type:o,p_id:r});return f?a(...s(f)):i(null)}catch(e){return{ok:!1,error:o(e)}}}}}function VD(e){return{id:e.id,orgId:e.organization_id??null,dimension:e.dimension,name:e.name,slug:e.slug??null,parentId:e.parent_id??null,isSystem:!!e.is_system,color:e.color??null,icon:e.icon??null,position:e.position??null,metadata:e.metadata&&typeof e.metadata==`object`&&!Array.isArray(e.metadata)?e.metadata:null}}function HD(e){let{dataSource:t,identity:n}=e,{ok:r,err:i,mapPgError:a,mapPgErrorPair:o}=e.rpc;return{async list(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_list`,{p_dimension:e});return s?i(...o(s)):r({categories:(Array.isArray(a)?a:[]).map(VD)})}catch(e){return{ok:!1,error:a(e)}}},async create(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_create`,{p_dimension:e.dimension,p_name:e.name,p_org_id:e.orgId,p_parent_id:e.parentId??void 0,p_color:e.color??void 0,p_icon:e.icon??void 0,p_slug:e.slug??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_create returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async update(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_update`,{p_category_id:e.id,p_name:e.name,p_slug:e.slug??void 0,p_color:e.color??void 0,p_icon:e.icon??void 0,p_position:e.position??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_update returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async reparent(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_reparent`,{p_category_id:e.id,p_parent_id:e.parentId??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_reparent returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async delete(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_delete`,{p_category_id:e});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_delete returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}}}}function UD(e){return{entityType:e.entity_type,entityId:e.entity_id,isFavorite:e.is_favorite,isPinned:e.is_pinned,isHidden:e.is_hidden,lastViewedAt:e.last_viewed_at??null}}function WD(e){let{dataSource:t,identity:n}=e,{ok:r,err:i,mapPgError:a,mapPgErrorPair:o}=e.rpc,s={async setState(e){try{n.requireUserId();let{error:a}=await t.rpc(`ues_set`,{p_entity_type:e.entityType,p_entity_id:e.entityId,p_is_favorite:e.isFavorite,p_is_pinned:e.isPinned,p_is_hidden:e.isHidden});return a?i(...o(a)):r(null)}catch(e){return{ok:!1,error:a(e)}}},async setFavorite(e,t,n){return s.setState({entityType:e,entityId:t,isFavorite:n})},async setPinned(e,t,n){return s.setState({entityType:e,entityId:t,isPinned:n})},async setHidden(e,t,n){return s.setState({entityType:e,entityId:t,isHidden:n})},async list(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`ues_list`,{p_kind:e});return s?i(...o(s)):r({items:(Array.isArray(a)?a:[]).map(UD)})}catch(e){return{ok:!1,error:a(e)}}},async getBulk(e,s){try{n.requireUserId();let a=Array.from(new Set(s)),{data:c,error:l}=await t.rpc(`ues_get_bulk`,{p_entity_type:e,p_entity_ids:a});return l?i(...o(l)):r({items:(Array.isArray(c)?c:[]).map(t=>({entityType:e,entityId:t.entity_id,isFavorite:t.is_favorite,isPinned:t.is_pinned,isHidden:t.is_hidden,lastViewedAt:t.last_viewed_at??null}))})}catch(e){return{ok:!1,error:a(e)}}},async touch(e,s){try{n.requireUserId();let{error:a}=await t.rpc(`ues_touch`,{p_entity_type:e,p_entity_id:s});return a?i(...o(a)):r(null)}catch(e){return{ok:!1,error:a(e)}}}};return s}function GD(e){let{dataSource:t,registry:n,errorSink:r}=e,i=async e=>{let{data:n,error:r}=await t.rpc(`reference_search_candidates`,e);return r?{data:null,error:r}:{data:Array.isArray(n)?n:[],error:null}};async function a(e){let{token:t,search:a,limit:o=100}=e,s=n.getEntityInfo(t);if(s.listCandidates)try{return await s.listCandidates({...a===void 0?{}:{search:a},limit:o})}catch(e){let n=e instanceof Error?e.message:`Failed to load candidates`;return r({code:`candidate_override_failed`,message:`[listAssociationCandidates] override failed for "${t}": ${n}`,context:{token:t,detail:e}}),{ok:!1,error:n}}if(!s.canListCandidates||!s.titleColumn){let e=`Entity "${t}" has no title column — set one in platform.entity_types (or register a listCandidates override) before listing candidates`;return r({code:`unlistable_token`,message:`[listAssociationCandidates] ${e}`,context:{token:t}}),{ok:!1,error:e}}let c=a?.trim()||void 0,{data:l,error:u}=await i({p_token:t,...c===void 0?{}:{p_search:c},p_limit:o});return u?(r({code:`candidate_rpc_failed`,message:`[listAssociationCandidates] candidate RPC failed for "${t}": ${u.message}`,context:{token:t,detail:u}}),{ok:!1,error:u.message}):{ok:!0,data:l.map(e=>({id:e.id,title:e.title?.trim()||`Untitled`}))}}async function o(e){let{tokens:t,search:r,perTokenLimit:i=5,concurrency:o=6}=e,s=t??n.listableTokens();if(s.length===0)return{results:[],failures:[]};let c=[],l=[],u=0;async function d(){for(;u<s.length;){let e=s[u];if(u+=1,!e)continue;let t=await a({token:e,search:r,limit:i});if(t.ok)for(let n of t.data)c.push({...n,token:e});else l.push({token:e,error:t.error})}}await Promise.all(Array.from({length:Math.min(o,s.length)},d));let f=new Map(s.map((e,t)=>[e,t]));return c.sort((e,t)=>{let n=f.get(e.token)??0,r=f.get(t.token)??0;return n===r?e.title.localeCompare(t.title):n-r}),l.sort((e,t)=>(f.get(e.token)??0)-(f.get(t.token)??0)),{results:c,failures:l}}return{callReferenceSearchCandidates:i,listAssociationCandidates:a,searchCandidatesAcrossTokens:o}}var KD=200;function qD(e,t){return`${e}:${t}`}function JD(e,t){let{registry:n,errorSink:r}=e,i=new Map;return{get(e,t){return i.get(qD(e,t))??null},prime(e,t,n){let r=n.trim();r&&i.set(qD(e,t),r)},fallback(e){return`Untitled ${n.tryGetEntityInfo(e)?.label??de(e)}`},async fetch(e,a){let o=new Map;if(a.length===0)return o;let s=n.tryGetEntityInfo(e),c=[];for(let t of a){let n=i.get(qD(e,t));n===void 0?c.push(t):o.set(t,n)}if(c.length===0||!s?.titleColumn)return o;for(let n=0;n<c.length;n+=KD){let a=c.slice(n,n+KD),{data:s,error:l}=await t.callReferenceSearchCandidates({p_token:e,p_ids:a,p_limit:a.length});if(l){r({code:`title_rpc_failed`,message:`[fetchEntityTitles] candidate RPC failed for "${e}": ${l.message}`,context:{token:e,chunkStart:n,chunkSize:a.length,detail:l}});continue}for(let t of s){let n=t.title?.trim();n&&(i.set(qD(e,t.id),n),o.set(t.id,n))}}return o}}}function YD(e,t){let{dataSource:n,registry:r,errorSink:i}=e;function a(e,t){if(!r.getEntityInfo(e).titleColumn){let n=`Entity "${e}" has no title_column in platform.entity_types — add one in the registry before ${t}`;return i({code:`missing_title_column`,message:`[entityRows] ${n}`,context:{token:e}}),{ok:!1,error:n}}return{ok:!0}}return{async createEntityRow(e,o){let s=a(e,`creating rows`);if(!s.ok)return s;let c=o.title.trim();if(!c)return{ok:!1,error:`Name is required`};let l=Object.keys(o.extraColumns??{});if(l.length>0){let t=`A new ${r.getEntityInfo(e).label} cannot be created here with ${l.join(`, `)}: the shared create door writes the name, the owner and the organization and nothing else. Create it with this feature's own create service, then attach it.`;return i({code:`entity_row_extra_columns_unsupported`,message:`[createEntityRow] extraColumns are not writable through entity_row_create for "${e}": ${l.join(`, `)}`,context:{token:e,extras:l}}),{ok:!1,error:t}}if(!o.orgId){let t=`Name the organization this ${r.getEntityInfo(e).label} belongs to.`;return i({code:`entity_row_missing_organization`,message:`[createEntityRow] no organization supplied for "${e}"; entity_row_create requires one`,context:{token:e}}),{ok:!1,error:t}}try{let{data:r,error:a}=await n.rpc(`entity_row_create`,{p_token:e,p_title:c,p_organization_id:o.orgId});if(a)return i({code:`entity_row_insert_failed`,message:`[createEntityRow] entity_row_create failed for "${e}": ${a.message}`,context:{token:e,detail:a}}),{ok:!1,error:a.message};let s=r;if(!s||typeof s.id!=`string`||!s.id)return i({code:`entity_row_insert_failed`,message:`[createEntityRow] entity_row_create returned no id for "${e}"`,context:{token:e,detail:r}}),{ok:!1,error:`The create door returned no record.`};let l=s.id,u=typeof s.title==`string`&&s.title?s.title:c;return t.prime(e,l,u),{ok:!0,data:{id:l,title:u}}}catch(t){let n=t instanceof Error?t.message:`Failed to create`;return i({code:`entity_row_insert_failed`,message:`[createEntityRow] exception for "${e}": ${n}`,context:{token:e,detail:t}}),{ok:!1,error:n}}},async renameEntityRow(e,r,o){let s=a(e,`renaming rows`);if(!s.ok)return s;let c=o.trim();if(!c)return{ok:!1,error:`Name is required`};try{let{error:a}=await n.rpc(`entity_row_rename`,{p_token:e,p_id:r,p_title:c});return a?(i({code:`entity_row_update_failed`,message:`[renameEntityRow] entity_row_rename failed for "${e}": ${a.message}`,context:{token:e,id:r,detail:a}}),{ok:!1,error:a.message}):(t.prime(e,r,c),{ok:!0})}catch(t){let n=t instanceof Error?t.message:`Failed to rename`;return i({code:`entity_row_update_failed`,message:`[renameEntityRow] exception for "${e}": ${n}`,context:{token:e,id:r,detail:t}}),{ok:!1,error:n}}}}}function XD(e,t){let n=e[0]??{code:`internal`,message:`unknown failure`};return{code:e.every(e=>e.code===n.code)?n.code:`internal`,message:`${e.length}/${t} association edge(s) failed: ${n.message}`,detail:e}}function ZD(e){return[e.code,e.message,e.detail]}function QD(e){async function t(t){if(t.length===0)return xD({ids:[]});let n=await Promise.all(t.map(t=>e.add({sourceType:t.source.type,sourceId:t.source.id,targetType:t.target.type,targetId:t.target.id,...t.orgId===void 0?{}:{orgId:t.orgId},...t.label===void 0?{}:{label:t.label},...t.metadata===void 0?{}:{metadata:t.metadata},...t.role===void 0?{}:{role:t.role},...t.position===void 0?{}:{position:t.position}}))),r=[],i=[];for(let e of n)dD(e)?i.push(e.error):r.push(e.data.id);return i.length>0?bD(...ZD(XD(i,t.length))):xD({ids:r})}return{linkEdges:t,async linkOneToMany({source:e,targets:n,attrs:r}){return t(n.map(t=>({source:e,target:t,...r})))},async linkManyToOne({sources:e,target:n,attrs:r}){return t(e.map(e=>({source:e,target:n,...r})))},async replaceTargets(t){return e.setTargets({sourceType:t.source.type,sourceId:t.source.id,targetType:t.targetType,targetIds:t.targetIds,...t.orgId===void 0?{}:{orgId:t.orgId},...t.role===void 0?{}:{role:t.role}})},async linkCreated(e){return t(e.targets.map(t=>({source:e.created,target:t,...e.attrs})))},async unlinkEdges(t){if(t.length===0)return xD(null);let n=await Promise.all(t.map(t=>e.remove({sourceType:t.source.type,sourceId:t.source.id,targetType:t.target.type,targetId:t.target.id,...t.role===void 0?{}:{role:t.role}}))),r=[];for(let e of n)dD(e)&&r.push(e.error);return r.length>0?bD(...ZD(XD(r,t.length))):xD(null)}}}function $D(e){return{id:e.id,orgId:e.organization_id??null,entityType:e.entity_type,entityId:e.entity_id,parentId:e.parent_id??null,body:e.body,createdAt:e.created_at,updatedAt:e.updated_at,createdBy:e.created_by??null,author:{email:e.author_email??null,displayName:e.author_display_name??null,avatarUrl:e.author_avatar_url??null},authorAgent:e.author_agent_id?{id:e.author_agent_id,name:e.author_agent_name??null}:null,anchor:e.anchor&&typeof e.anchor==`object`?e.anchor:null}}function eO(e){let{dataSource:t,identity:n,guards:r}=e,{ok:i,err:a,mapPgError:o,mapPgErrorPair:s}=e.rpc;return{async listForEntity(e,c){try{n.requireUserId();let o=r.normalizeEntityToken(e),l=vD(r.checkToken(`entityType`,o),r.checkUuid(`entityId`,c));if(l)return{ok:!1,error:l};let{data:u,error:d}=await t.rpc(`cmt_list`,{p_entity_type:o,p_entity_id:c});return d?a(...s(d)):i({comments:(Array.isArray(u)?u:[]).map($D)})}catch(e){return{ok:!1,error:o(e)}}},async add(e){try{n.requireUserId();let o=r.normalizeEntityToken(e.entityType),c=vD(r.checkToken(`entityType`,o),r.checkUuid(`entityId`,e.entityId),e.parentId==null?null:r.checkUuid(`parentId`,e.parentId));if(c)return{ok:!1,error:c};if(!e.body||e.body.trim().length===0)return a(`invalid_argument`,`comment body must be non-empty`);let{data:l,error:u}=await t.rpc(`cmt_add`,{p_entity_type:o,p_entity_id:e.entityId,p_body:e.body,p_parent_id:e.parentId??void 0,p_org_id:e.orgId??void 0,...e.anchor?{p_anchor:e.anchor}:{}});return u?a(...s(u)):!l||typeof l!=`string`?a(`internal`,`cmt_add returned no comment id`):i({id:l})}catch(e){return{ok:!1,error:o(e)}}},async edit(e,c){try{n.requireUserId();let o=r.checkUuid(`commentId`,e);if(o)return{ok:!1,error:o};if(!c||c.trim().length===0)return a(`invalid_argument`,`comment body must be non-empty`);let{error:l}=await t.rpc(`cmt_edit`,{p_id:e,p_body:c});return l?a(...s(l)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async remove(e){try{n.requireUserId();let o=r.checkUuid(`commentId`,e);if(o)return{ok:!1,error:o};let{error:c}=await t.rpc(`cmt_delete`,{p_id:e});return c?a(...s(c)):i(null)}catch(e){return{ok:!1,error:o(e)}}}}}function tO(e,t){return`${e}:${t}`}var nO=Object.freeze({status:`idle`,edges:Object.freeze([]),fetchedAt:null,error:null}),rO=Object.freeze({status:`idle`,categories:Object.freeze([]),fetchedAt:null,error:null}),iO=Object.freeze({status:`idle`,comments:Object.freeze([]),fetchedAt:null,error:null});function aO(e){if(!e||typeof e.dataSource?.rpc!=`function`)throw Error(`@ai-matrx/associations: the REQUIRED dataSource port is missing (need an object with rpc(fn, args) — a supabase-js client satisfies it structurally). The package IS data operations; there is no degraded mode without one.`);if(typeof e.identity?.requireUserId!=`function`)throw Error(`@ai-matrx/associations: the REQUIRED identity port is missing (need requireUserId(): string that THROWS when unauthenticated). Identity never comes from a store import.`);let t=typeof e.errorSink==`function`?e.errorSink:fD(),n=PD(t,e.entityOverlay),r={dataSource:e.dataSource,identity:e.identity,errorSink:t,guards:yD(t),rpc:TD(t),registry:n},i=BD(r),a=HD(r),o=WD(r),s=GD(r),c=JD(r,s),l=YD(r,c),u=QD(i),d=eO(r),f=new Map,p=new Map,m=new Map,h=new Map,g=new Map,_=new Map,v=new Map,y=new Map,b=new Map;function x(e){let t=p.get(e);if(t)for(let e of[...t])e()}function S(e){let t=g.get(e);if(t)for(let e of[...t])e()}function C(e,t){f.set(e,t),x(e)}function w(e,t){h.set(e,t),S(e)}function T(e){let t=y.get(e);if(t)for(let e of[...t])e()}function E(e,t){v.set(e,t),T(e)}async function D(e,t,n={}){let r=n.force??!1;if(!e||!t)return;let a=tO(e,t),o=f.get(a);if(!r&&o?.status===`ready`)return;let s=m.get(a);if(!r&&o?.status===`loading`&&s)return s;let c=f.get(a);C(a,{status:`loading`,edges:c?.edges??[],fetchedAt:c?.fetchedAt??null,error:c?.error??null});let l=(async()=>{try{let n=await i.listForEntity(e,t);if(dD(n)){let e=f.get(a);C(a,{status:`error`,edges:e?.edges??[],fetchedAt:e?.fetchedAt??null,error:n.error.message})}else C(a,{status:`ready`,edges:n.data.edges,fetchedAt:Date.now(),error:null})}finally{m.delete(a)}})();return m.set(a,l),l}async function O(e,t,n,r){await Promise.all([D(e,t,{force:!0}),D(n,r,{force:!0})])}async function k(e,t={}){let n=t.force??!1;if(!e)return;let r=h.get(e);if(!n&&r?.status===`ready`)return;let i=_.get(e);if(!n&&r?.status===`loading`&&i)return i;let o=h.get(e);w(e,{status:`loading`,categories:o?.categories??[],fetchedAt:o?.fetchedAt??null,error:null});let s=(async()=>{try{let t=await a.list(e);if(dD(t)){let n=h.get(e);w(e,{status:`error`,categories:n?.categories??[],fetchedAt:n?.fetchedAt??null,error:t.error.message})}else w(e,{status:`ready`,categories:t.data.categories,fetchedAt:Date.now(),error:null})}finally{_.delete(e)}})();return _.set(e,s),s}async function A(e,t,n={}){let r=n.force??!1;if(!e||!t)return;let i=tO(e,t),a=v.get(i);if(!r&&a?.status===`ready`)return;let o=b.get(i);if(!r&&a?.status===`loading`&&o)return o;let s=v.get(i);E(i,{status:`loading`,comments:s?.comments??[],fetchedAt:s?.fetchedAt??null,error:s?.error??null});let c=(async()=>{try{let n=await d.listForEntity(e,t);if(dD(n)){let e=v.get(i);E(i,{status:`error`,comments:e?.comments??[],fetchedAt:e?.fetchedAt??null,error:n.error.message})}else E(i,{status:`ready`,comments:n.data.comments,fetchedAt:Date.now(),error:null})}finally{b.delete(i)}})();return b.set(i,c),c}return{getEdges(e,t){return!e||!t?nO:f.get(tO(e,t))??nO},load:D,subscribe(e,t){let n=p.get(e);return n||(n=new Set,p.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&p.delete(e)}},async add(e){let t=await i.add(e);return dD(t)?{ok:!1,error:t.error.message}:(await O(e.sourceType,e.sourceId,e.targetType,e.targetId),{ok:!0,id:t.data.id})},async remove(e){let t=await i.remove(e);return dD(t)?{ok:!1,error:t.error.message}:(await O(e.sourceType,e.sourceId,e.targetType,e.targetId),{ok:!0})},async setTargets(e){let t=await i.setTargets(e);return dD(t)?{ok:!1,error:t.error.message}:(await D(e.sourceType,e.sourceId,{force:!0}),{ok:!0})},invalidate(e,t){let n=tO(e,t);f.delete(n)&&x(n)},invalidateAll(){let e=[...f.keys()];f.clear();for(let t of e)x(t);let t=[...h.keys()];h.clear();for(let e of t)S(e);let n=[...v.keys()];v.clear();for(let e of n)T(e)},getCategories(e){return e?h.get(e)??rO:rO},loadCategories:k,subscribeCategories(e,t){let n=g.get(e);return n||(n=new Set,g.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&g.delete(e)}},async createCategory(e){let t=await a.create(e);if(dD(t))return{ok:!1,error:t.error.message};let n={id:t.data.id,orgId:e.orgId,dimension:e.dimension,name:e.name,slug:e.slug??null,parentId:e.parentId??null,isSystem:!1,color:e.color??null,icon:e.icon??null,metadata:null,position:null},r=h.get(e.dimension),i=r?.categories??[];return i.some(e=>e.id===n.id)||w(e.dimension,{status:`ready`,categories:[...i,n],fetchedAt:r?.fetchedAt??Date.now(),error:null}),await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id}},async updateCategory(e){let t=await a.update(e);return dD(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},async reparentCategory(e){let t=await a.reparent(e);return dD(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},async deleteCategory(e){let t=await a.delete(e.id);return dD(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},getComments(e,t){return!e||!t?iO:v.get(tO(e,t))??iO},loadComments:A,subscribeComments(e,t){let n=y.get(e);return n||(n=new Set,y.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&y.delete(e)}},async addComment(e){let t=await d.add(e);return dD(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:t.data.id})},async editComment(e){let t=await d.edit(e.id,e.body);return dD(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:e.id})},async deleteComment(e){let t=await d.remove(e.id);return dD(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:e.id})},invalidateComments(e,t){let n=tO(e,t);v.delete(n)&&T(n)},titles:c,favorites:o,candidates:s,entityRows:l,helpers:u,registry:n,services:{associations:i,categories:a,comments:d},registerEntityOverlay:n.registerEntityOverlay,errorSink:t,dataSource:e.dataSource,identity:e.identity}}var oO=1e3,sO=5e5,cO=class extends Error{label;collected;expected;constructor(e,t,n,r){super(`readAllRows(${e}): ${r} — collected ${t}`+(n===null?``:` of ${n}`)+`. Refusing to return a partial list: a truncated read used for an existence/diff decision produces a confidently WRONG answer.`),this.label=e,this.collected=t,this.expected=n,this.name=`IncompleteReadError`}};async function lO(e,t){let n=t.pageSize??oO,r=t.maxRows??sO,i=[],a=null;for(let o=0;;o+=n){let s=await e({from:o,to:o+n-1});if(s.error)throw Error(`readAllRows(${t.label}): query failed — ${s.error.message}`);let c=s.data??[];if(i.push(...c),typeof s.count==`number`&&(a=s.count),a===null){if(c.length<n)return i;throw new cO(t.label,i.length,null,`the query returned no count — pass { count: "exact" } to select() so completeness can be verified`)}if(i.length>=a)break;if(c.length===0)throw new cO(t.label,i.length,a,`a page came back empty before the declared total was reached`);if(i.length>r)throw new cO(t.label,i.length,a,`exceeded the ${r}-row safety limit`)}if(i.length!==a)throw new cO(t.label,i.length,a,`final row count does not match the total the server reported`);return i}function uO(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function dO(e){return typeof e==`string`?e:null}function fO(e){return e===!0}function pO(e){return typeof e==`boolean`?e:null}function mO(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function hO(e){return e===`builtin`?`builtin`:`user`}function gO(e){if(!uO(e))return null;let t=e.depth_budget,n=e.member_count;return{mode:dO(e.mode)??`supervisor`,tagline:dO(e.tagline),depthBudget:typeof t==`number`&&Number.isFinite(t)&&t>0?t:null,memberCount:typeof n==`number`&&Number.isFinite(n)&&n>=0?n:0,memberTitles:mO(e.member_titles)}}function _O(e){if(!uO(e))return null;let t=dO(e.id);return t?{id:eD(t),name:dO(e.name),description:dO(e.description),category:dO(e.category),tags:mO(e.tags),agentType:hO(e.agent_type),modelId:dO(e.model_id),isActive:fO(e.is_active),isArchived:fO(e.is_archived),isFavorite:!1,createdBy:dO(e.created_by),organizationId:dO(e.organization_id),taskId:dO(e.task_id),sourceAgentId:dO(e.source_agent_id),createdAt:dO(e.created_at),updatedAt:dO(e.updated_at),isOwner:pO(e.is_owner),accessLevel:dO(e.access_level),sharedByEmail:dO(e.shared_by_email),orchestra:gO(e.orchestra),...`offering_id`in e?{offeringId:dO(e.offering_id)}:{},...`organization_name`in e?{organizationName:dO(e.organization_name)}:{}}:null}var vO=1e3,yO=class extends Error{name=`AgentCatalogReadError`;source;constructor(e,t){super(`${e}: ${t}`),this.source=e}};function bO(e){return e.code?`${e.message} (${e.code})`:e.message}async function xO(e){let t=await lO(({from:t,to:n})=>Promise.resolve(e.rpc(`agx_get_list_full`,{},{count:`exact`}).order(`id`,{ascending:!0}).range(t,n)).then(e=>({data:Array.isArray(e.data)?e.data:null,error:e.error,count:e.count??null})),{label:`agx_get_list_full`,pageSize:vO}),n=[],r=0;for(let e of t){let t=_O(e);t?n.push(t):r+=1}if(r>0)throw new yO(`agx_get_list_full`,`${r} row(s) came back without an id and were refused. A row that cannot be identified cannot be selected, so the catalogue is not trustworthy — check the RPC's return shape.`);return n}async function SO(e,t){let n=t.query.trim();if(!n)return{ids:[],rows:[]};let{data:r,error:i}=await e.rpc(`agx_search`,{p_query:n,p_deep:t.deep??!1,p_limit:t.limit??50,p_offset:0});if(i)throw new yO(`agx_search`,bO(i));let a=[];if(Array.isArray(r))for(let e of r){let t=_O(e);t&&a.push(t)}return{ids:a.map(e=>e.id),rows:a}}async function CO(e,t){try{let n=(await SO(e,{query:t,limit:5})).rows.find(e=>e.id===t);if(n)return n}catch{}let{data:n,error:r}=await e.rpc(`agx_resolve_agent_address`,{p_ids:[t]});if(r)throw new yO(`agx_resolve_agent_address`,bO(r));if(!Array.isArray(n))return null;for(let e of n){if(typeof e!=`object`||!e)continue;let n=e;if(n.agent_id!==t)continue;let r=n.agent_name;return _O({id:t,name:typeof r==`string`?r:null,agent_type:n.agent_type,is_active:!0})}return null}var wO=`agent`;async function TO(e,t,n){if(t.length===0)return t;let r=null;try{let i=await e.getBulk(wO,t.map(e=>e.id));i.ok?r=new Set(i.data.items.filter(e=>e.isFavorite).map(e=>e.entityId)):n(i.error.message)}catch(e){n(e instanceof Error?e.message:String(e))}return t.map(e=>{let t=r?.has(e.id)??!1;return e.isFavorite===t?e:{...e,isFavorite:t}})}async function EO(e,t,n){let r=await e.setFavorite(wO,t,n);if(!r.ok)throw new yO(`user_entity_state (ues_set)`,r.error.code?`${r.error.message} (${r.error.code})`:r.error.message)}var DO=`ai-matrx.agents.catalog.default-row:`,OO=class extends Error{name=`MandateDefaultRowError`;mandateKey;remedy;constructor(e){super(`${e.message} — ${e.remedy}`),this.mandateKey=e.mandateKey,this.remedy=e.remedy}};function kO(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function AO(e,t){if(!kO(t))throw new OO({mandateKey:e,message:`mandate "${e}": the resolution endpoint did not return an object`,remedy:`check that the transport points at the AI Matrx server and that GET /mandates/{key}/resolution is reachable`});let n=t.agent_id,r=t.definition_agent_id,i=t.provenance,a=t.holder_type;return{mandateKey:typeof t.mandate_key==`string`?t.mandate_key:e,holderType:typeof a==`string`?a:`agent`,agentId:typeof n==`string`?n:null,isVersion:t.is_version===!0,definitionAgentId:typeof r==`string`?r:null,provenance:typeof i==`string`?i:`system`}}async function jO(e,t){let n=`/mandates/${encodeURIComponent(t)}/resolution`,r=await e.fetch(n,{method:`GET`,headers:{Accept:`application/json`}});if(!r.ok)throw new OO({mandateKey:t,message:`mandate "${t}": the server refused to resolve it (HTTP ${r.status})`,remedy:r.status===404?`the mandate does not exist — check the key this picker was given`:`check the caller's session and organization context, then retry`});return AO(t,await r.json())}function MO(){let e=new Map;return{getItem:t=>e.get(t)??null,setItem:(t,n)=>{e.set(t,n)},removeItem:t=>{e.delete(t)}}}function NO(){try{let e=globalThis.localStorage;if(e){let t=`${DO}__probe__`;return e.setItem(t,`1`),e.removeItem(t),e}}catch{}return MO()}function PO(e,t){try{if(!t)return null;let n=JSON.parse(t);if(!kO(n))return null;let r=n.holderId,i=n.holderName;if(typeof r!=`string`||typeof i!=`string`)return null;let a=n.holderDescription,o=n.provenance,s=n.at;return{mandateKey:e,holderId:r,holderName:i,holderDescription:typeof a==`string`?a:null,provenance:typeof o==`string`?o:`system`,at:typeof s==`number`?s:0}}catch{return null}}async function FO(e,t){let n;try{n=await e.getItem(DO+t)}catch{return null}return PO(t,n)}async function IO(e,t){try{await e.setItem(DO+t.mandateKey,JSON.stringify(t))}catch{}}function LO(e){return{id:tD(e.mandateKey),name:e.holderName,description:e.holderDescription,category:null,tags:[],agentType:`builtin`,modelId:null,isActive:!0,isArchived:!1,isFavorite:!1,createdBy:null,organizationId:null,taskId:null,sourceAgentId:e.holderId,createdAt:null,updatedAt:null,isOwner:null,accessLevel:null,sharedByEmail:null,orchestra:null,mandateKey:e.mandateKey}}function RO(e,t){return e?e.holderId===t.holderId?e.holderName===t.holderName?null:`The default agent for "${t.mandateKey}" was renamed: "${e.holderName}" is now "${t.holderName}".`:`The default agent for "${t.mandateKey}" changed: this screen was showing "${e.holderName}", and the platform now resolves it to "${t.holderName}". The list below is correct; anything that cached the old name is not.`:null}async function zO(e){let{mandateKey:t,transport:n,client:r,storage:i,lookupRow:a}=e,o=await FO(i,t),s=await jO(n,t);if(s.holderType!==`agent`)throw new OO({mandateKey:t,message:`mandate "${t}": the ${s.provenance} rung names a ${s.holderType} Holder, and an agent picker can only offer an agent`,remedy:`rebind the ${s.provenance} rung to an agent, or drop defaultMandateKey from this picker`});let c=s.definitionAgentId??s.agentId;if(!c)throw new OO({mandateKey:t,message:`mandate "${t}": the server resolved it without naming an agent`,remedy:`bind the ${s.provenance} rung to an agent`});let l=await a(c);if(l||=await CO(r,c)??void 0,!l||!l.name)throw new OO({mandateKey:t,message:`mandate "${t}": its Holder resolved, but nothing this caller can read could name that agent`,remedy:`grant this user access to the Holder, or make it a platform agent — the picker will not print a placeholder name in its place`});let u={mandateKey:t,holderId:c,holderName:l.name,holderDescription:l.description,provenance:s.provenance,at:Date.now()},d=RO(o,u);return await IO(i,u),{resolved:u,row:LO(u),drift:d}}var BO=Symbol.for(`ai-matrx.agents.catalog`);function VO(){let e=globalThis,t=e[BO];return t||(t={catalogs:new Map,listInFlight:new Map,listFetchedAt:new Map,defaultRows:new Map},e[BO]=t),t}var HO=`00000000-0000-0000-0000-000000000000`,UO=`agx_this_function_does_not_exist_probe`,WO={agx_get_list_full:{},agx_search:{p_query:`__probe__`,p_deep:!1,p_limit:1,p_offset:0},agx_resolve_agent_address:{p_ids:[HO]},ues_get_bulk:{p_entity_type:`agent`,p_entity_ids:[HO]}};function GO(e){if(!e||typeof e!=`object`)return!1;let t=e.code;return t===`PGRST202`||t===`42883`}async function KO(e,t={}){let{selfTest:n=!1,throwOnViolation:r=!0}=t,i=Object.keys(WO);n&&i.push(UO);let a=[],o=[],s=[],c=null;for(let t of i){let n=WO[t]??{};try{let{data:r,error:i}=await e.rpc(t,n);t===`agx_get_list_full`&&i==null&&(c=qO(r)),i==null?s.push(t):GO(i)?a.push(t):s.push(t)}catch(e){o.push({fn:t,error:e})}}if(n){let e=a.includes(UO),t=a.indexOf(UO);t>=0&&a.splice(t,1);let n=s.indexOf(UO);if(n>=0&&s.splice(n,1),!e)throw Error(`assertAgentCatalogSchema self-test FAILED: the fabricated function "${UO}" did not come back as missing. This probe cannot currently fail, so its green result proves nothing — the client is swallowing or faking errors.`)}if(o.length>0)throw Error(`assertAgentCatalogSchema could not complete: ${o.length} probe call(s) failed to reach the database (${o.map(e=>e.fn).join(`, `)}). This is NOT a schema verdict — fix connectivity and re-run.`);let l=a.length===0,u={ok:l,missing:a,unreachable:o,answered:s,orchestraColumn:c};if(!l&&r)throw Error(`DEMANDED SCHEMA VIOLATION: the database this client points at cannot answer ${a.length} demanded function(s): ${a.join(`, `)}. @ai-matrx/agents/catalog cannot render a correct picker against it — point the client at Matrx Main, or apply the agx_* migrations.`);return u}function qO(e){return!Array.isArray(e)||e.length===0?null:e.some(e=>typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`orchestra`))}var JO=9e5,YO=144e5;function XO(){let e=!1;return t=>{e||(e=!0,console.error("[@ai-matrx/agents/catalog] no errorSink is bound, so failures are only reaching the console. Pass `errorSink` to createAgentCatalog to route them into your diagnostics surface.")),console.error(`[@ai-matrx/agents/catalog] ${t.code}: ${t.message}`,{...t.context??{}})}}function ZO(e){return e instanceof Error?e.message:String(e)}function QO(e){if(!e||typeof e!=`object`)throw new lD({code:`missing_config`,message:`createAgentCatalog was called without a config object`,remedy:`pass { client, identity }`});if(!e.client||typeof e.client.rpc!=`function`)throw new lD({code:`missing_client`,message:`createAgentCatalog needs a Supabase client — it IS the catalogue read`,remedy:"pass `client` (a supabase-js client, or anything with rpc() and schema().from())"});if(!e.identity||typeof e.identity.requireUserId!=`function`)throw new lD({code:`missing_identity`,message:`createAgentCatalog needs to know who is asking`,remedy:"pass `identity: { requireUserId() }` — never a silent anonymous read"});let t=e.defaults?.archiveFilter;if(t!==void 0&&!sD(t))throw new lD({code:`invalid_archive_default`,message:`defaults.archiveFilter was ${JSON.stringify(t)}, which is not one of the three states of the platform archive filter`,remedy:`pass "active" (hide archived), "both" (show all) or "archived" (archived only)`});let n={...cD,...t?{archFilter:t}:{}},r=e.catalogId??`default`,i=e.client,a=e.identity,o=e.errorSink??XO(),s=e.notifier,c=e.storage??NO(),l=e.transport,u=e.favorites??aO({dataSource:i,identity:a,errorSink:o}).favorites;function d(e){o({code:`favorite_read_failed`,message:`your starred agents could not be read (${e}); every star is shown unset until the next catalogue load`,context:{catalogId:r}})}let f={...uD,...e.labels??{}},p=VO();p.catalogs.has(r)&&o({code:`catalog_replaced`,message:`a second agent catalog was created under id "${r}" and has REPLACED the first. Two catalogs with one id share a freshness stamp and an in-flight promise; give each one its own \`catalogId\`.`});let m={rows:[],byId:{},status:`idle`,error:null,consumers:{},defaultRows:{}},h=new Set;function g(e){m=e;for(let e of h)e()}function _(e){if(e.length===0)return;let t={...m.byId};for(let n of e)t[n.id]=n;g({...m,byId:t,rows:Object.values(t)})}function v(e){let t={};for(let n of e)t[n.id]=n;g({...m,byId:t,rows:Object.values(t)})}let y=!1;function b(){if(typeof a.getUserId==`function`)return a.getUserId();try{return a.requireUserId()}catch(e){return y||(y=!0,o({code:`identity_unavailable`,message:`identity.requireUserId() threw, so the picker is treating this session as signed out and opening on the public catalogue. Favoriting is unavailable until a session exists.`,context:{detail:ZO(e)}})),null}}function x(){let e=p.listFetchedAt.get(r);return e!==void 0&&Date.now()-e<JO}function S(){let e=p.listFetchedAt.get(r);return e===void 0||Date.now()-e>YO}async function C(){if(b()===null){m.rows.length>0&&v([]),g({...m,status:`succeeded`,error:null});return}g({...m,status:`loading`,error:null});try{v(await TO(u,await xO(i),d)),g({...m,status:`succeeded`,error:null}),p.listFetchedAt.set(r,Date.now())}catch(e){let t=ZO(e);throw g({...m,status:`failed`,error:t}),o({code:`list_read_failed`,message:`the agent catalogue could not be read: ${t}`,context:{catalogId:r}}),e}}async function w(e){if(!(e?.force??!1)&&x())return;let t=p.listInFlight.get(r);if(t)return t;let n=C().finally(()=>{p.listInFlight.get(r)===n&&p.listInFlight.delete(r)});return p.listInFlight.set(r,n),n}function T(e){return m.consumers[e]??n}function E(e,t){g({...m,consumers:{...m.consumers,[e]:t}})}function D(e,t){m.consumers[e]||E(e,{...n,...t??{}})}function O(e){if(!m.consumers[e])return;let t={...m.consumers};delete t[e],g({...m,consumers:t})}function k(e,t){E(e,{...m.consumers[e]??{...n},...t,listPage:1,sharedPage:1})}function A(e,t,n){let r=m.consumers[e];r&&E(e,t===`list`?{...r,listPage:n}:{...r,sharedPage:n})}function j(e,t){let r=m.consumers[e]??{...n},i={...r};t.matchedIds!==void 0&&(i.serverMatchedIds=t.matchedIds),t.isSearching!==void 0&&(i.isServerSearching=t.isSearching),(i.serverMatchedIds!==r.serverMatchedIds||i.isServerSearching!==r.isServerSearching)&&E(e,i)}function M(e){m.consumers[e]&&E(e,{...n})}async function N(e,t=!1){let n=await SO(i,{query:e,deep:t});return _(await TO(u,n.rows,d)),n.ids}async function P(e,t){let n=m.byId[e];if(!n){o({code:`favorite_unknown_agent`,message:`cannot favorite ${e}: it is not in this catalogue`});return}_([{...n,isFavorite:t}]);try{await EO(u,e,t)}catch(r){throw _([n]),o({code:`favorite_write_failed`,message:`the favorite could not be saved: ${ZO(r)}`,context:{agentId:e,isFavorite:t}}),s?.({level:`error`,title:`Favorite not saved`,message:`The star was put back because the change could not be saved. Check your connection and try again.`}),r}}function F(e,t){g({...m,defaultRows:{...m.defaultRows,[e]:t}})}let I=new Set;function L(e){if(!e||I.has(e))return;let t=m.defaultRows[e];if(!t||t.error){if(!l)throw new lD({code:`missing_transport`,message:`a picker asked for the default row of mandate "${e}", but this catalog has no transport`,remedy:"pass `transport` (createMatrxTransport from @ai-matrx/agents/matrx) to createAgentCatalog — clients never walk the mandate ladder themselves, they ask the server"});I.add(e),F(e,{mandateKey:e,row:null,resolved:null,loading:!0,drift:null,error:null}),(async()=>{try{let t=await zO({mandateKey:e,transport:l,client:i,storage:c,errorSink:o,lookupRow:async e=>{let t=m.byId[e];if(t)return t;let n=p.listInFlight.get(r);if(n)return await n.catch(()=>void 0),m.byId[e]}});VO().defaultRows.set(`${r}::${e}`,t.resolved),F(e,{mandateKey:e,row:t.row,resolved:t.resolved,loading:!1,drift:t.drift,error:null}),t.drift&&(o({code:`default_row_drift`,message:t.drift,context:{mandateKey:e,holderId:t.resolved.holderId}}),s?.({level:`warning`,title:`The default agent changed`,message:t.drift}))}catch(t){let n=t instanceof OO?t.message:ZO(t);F(e,{mandateKey:e,row:null,resolved:null,loading:!1,drift:null,error:n}),o({code:`default_row_unresolved`,message:n,context:{mandateKey:e}})}finally{I.delete(e)}})()}}function ee(e){return m.defaultRows[e]}function te(e){let t=m.defaultRows[e];t&&t.drift&&F(e,{...t,drift:null})}function ne(e){if(!e||I.has(e))return;let{[e]:t,...n}=m.defaultRows;g({...m,defaultRows:n}),L(e)}let re={catalogId:r,labels:f,errorSink:o,notifier:s,canResolveMandates:l!==void 0,consumerDefaults:n,getState:()=>m,subscribe:e=>(h.add(e),()=>{h.delete(e)}),getAgent:e=>m.byId[e],getUserIdOrNull:b,ensureLoaded:w,isFresh:x,isStale:S,getConsumer:T,registerConsumer:D,unregisterConsumer:O,setConsumerFilter:k,setConsumerPage:A,setConsumerServerSearch:j,resetConsumerFilters:M,searchServer:N,setFavorite:P,ensureDefaultRow:L,getDefaultRow:ee,dismissDefaultRowDrift:te,retryDefaultRow:ne,assertSchema:e=>KO(i,e)};return p.catalogs.set(r,re),re}var $O={supervisor:`supervisor`,sequential:`in order`,parallel:`together`,dag:`custom flow`};function ek(e){return $O[e]??e}function tk(e){let t=e.memberCount;return`Orchestra · ${ek(e.mode)} · ${t} ${t===1?`member`:`members`}`}function nk(e){let t=e.depthBudget;return typeof t!=`number`||t<=0?null:`Team members can call helpers up to ${t} ${t===1?`level`:`levels`} deep`}function rk(e,t=3){let n=e.memberTitles;if(n.length===0)return null;let r=n.slice(0,t),i=n.length-r.length;return`Delegates to: ${r.join(`, `)}${i>0?` +${i} more`:``}`}function ik(e,t){switch(e){case`system`:return t.emptySystem;case`shared`:return t.emptyShared;default:return t.emptyDefault}}function ak(e){return e.userId?e.agentsLoaded?e.ownedCount===0:!1:!0}function ok(e){return aD.find(t=>t.value===e)?.chip??`Archive`}function sk(e){return aD.find(t=>t.value===e)?.label??`Hide archived`}function ck(e){return`Archive filter: ${sk(e).toLowerCase()}. Click for ${sk(oD(e)).toLowerCase()}`}function lk(e){let{count:t,archFilter:n,archivedHiddenCount:r}=e;if(n===`archived`)return`${t} archived shown`;let i=`${t} agent${t===1?``:`s`}`;return n===`both`?`${i} · archived shown`:r>0?`${i} · ${r} archived hidden`:i}function uk(e,t){let n=t.trim().toLowerCase();if(!n)return 0;let r=0,i=(e.name??``).toLowerCase(),a=(e.description??``).toLowerCase();i===n?r+=1e4:i.startsWith(n)?r+=5e3:dk(i,n)?r+=3e3:i.includes(n)&&(r+=2e3),a===n?r+=1e3:a.includes(n)&&(r+=500),e.category?.toLowerCase().includes(n)&&(r+=300),e.tags?.some(e=>e.toLowerCase().includes(n))&&(r+=300),e.modelId?.toLowerCase().includes(n)&&(r+=100),e.agentType?.toLowerCase().includes(n)&&(r+=100),e.outputFormat?.toLowerCase().includes(n)&&(r+=100);let o=e.id.toLowerCase();if(o===n?r+=1e5:o.includes(n)&&(r+=5e3),e.sharedByEmail?.toLowerCase().includes(n)&&(r+=200),r===0&&n.includes(` `)){let t=n.split(/\s+/).filter(Boolean),o=0,s=0;for(let n of t){let t=i.includes(n);(t||a.includes(n)||(e.category?.toLowerCase().includes(n)??!1)||(e.tags?.some(e=>e.toLowerCase().includes(n))??!1))&&(o+=1,s+=t?400:100)}o===t.length&&(r+=s)}return r}function dk(e,t){let n=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return RegExp(`\\b${n}\\b`).test(e)}function fk(e,t){return uk(e,t)>0}function pk(e){let t,n,r=!1;return i=>((!r||t!==i)&&(n=e(i),t=i,r=!0),n)}function mk(e){let t,n,r,i=!1;return(a,o)=>((!i||t!==a||n!==o)&&(r=e(a,o),t=a,n=o,i=!0),r)}function hk(e,t){let n=e.id??``,r=t.id??``;return n<r?-1:+(n>r)}function gk(e,t,n){let r=_k(e,t,n);return!Number.isFinite(r)||r===0?hk(e,t):r}function _k(e,t,n){switch(n){case`name-asc`:return(e.name??``).localeCompare(t.name??``);case`name-desc`:return(t.name??``).localeCompare(e.name??``);case`created-desc`:return+new Date(t.createdAt??0)-new Date(e.createdAt??0);case`category-asc`:return(e.category??``).localeCompare(t.category??``);default:return+new Date(t.updatedAt??0)-new Date(e.updatedAt??0)}}var vk=pk(e=>{let t=new Set;for(let n of e)n.agentType===`user`&&n.category&&t.add(n.category);return Array.from(t).sort()}),yk=pk(e=>{let t=new Set;for(let n of e)n.agentType===`builtin`&&n.category&&t.add(n.category);return Array.from(t).sort()}),bk=pk(e=>{let t=new Set;for(let n of e)n.agentType===`user`&&n.tags?.forEach(e=>t.add(e));return Array.from(t).sort()}),xk=pk(e=>{let t=new Set;for(let n of e)n.agentType===`builtin`&&n.tags?.forEach(e=>t.add(e));return Array.from(t).sort()}),Sk=pk(e=>e.filter(e=>e.agentType===`user`)),Ck=pk(e=>e.filter(e=>e.agentType===`builtin`));function wk(e,t){let{searchTerm:n,sortBy:r,favFilter:i,favoritesFirst:a}=t;if(n){let i=new Map;e.forEach(e=>{i.set(e.id,uk(e,n))});let a=new Map;return t.serverMatchedIds.forEach((e,t)=>a.set(e,t)),[...e].sort((e,t)=>{let n=i.get(e.id)??0,o=i.get(t.id)??0;if(o!==n)return o-n;if(n===0){let n=a.get(e.id),r=a.get(t.id);if(n!==void 0&&r!==void 0&&n!==r)return n-r}return gk(e,t,r)})}return[...e].sort((e,t)=>{if(a&&i===`all`){let n=+!!e.isFavorite,r=+!!t.isFavorite;if(r!==n)return r-n}return gk(e,t,r)})}function Tk(e,t){let{searchTerm:n,includedCats:r,includedTags:i,favFilter:a,archFilter:o,accessFilter:s,tab:c}=t,l=new Set(t.serverMatchedIds);return wk(e.filter(e=>{if(c===`mine`&&e.isOwner!==!0||c===`shared`&&(e.isOwner!==!1||e.accessLevel==null)||!Ok(e,o)||a===`yes`&&!e.isFavorite||a===`no`&&e.isFavorite||s===`owned`&&e.isOwner!==!0||s===`shared`&&e.isOwner!==!1||s===`editable`&&e.accessLevel!==`owner`&&e.accessLevel!==`admin`&&e.accessLevel!==`editor`)return!1;if(r.length>0){let t=e.category;if(!t){if(!r.includes(`__none__`))return!1}else if(!r.includes(t))return!1}if(i.length>0){if(!e.tags?.length){if(!i.includes(`__none__`))return!1}else if(!e.tags?.some(e=>i.includes(e)))return!1}return!(n&&!fk(e,n)&&!l.has(e.id))}),t)}function Ek(e,t){let{searchTerm:n,favFilter:r,archFilter:i,includedCats:a,includedTags:o}=t,s=new Set(t.serverMatchedIds);return wk(e.filter(e=>{if(!Ok(e,i)||r===`yes`&&!e.isFavorite||r===`no`&&e.isFavorite)return!1;if(a.length>0){let t=e.category;if(!t){if(!a.includes(`__none__`))return!1}else if(!a.includes(t))return!1}if(o.length>0){if(!e.tags?.length){if(!o.includes(`__none__`))return!1}else if(!e.tags?.some(e=>o.includes(e)))return!1}return!(n&&!fk(e,n)&&!s.has(e.id))}),t)}var Dk=(e=!1)=>mk((t,n)=>{let r=Sk(t),i=Ck(t);return n.tab===`system`?Ek(i,n):e&&n.tab===`all`?[...Tk(r,n),...Ek(i,n)]:Tk(r,n)});function Ok(e,t){return t===`active`?!e.isArchived:t!==`archived`||!!e.isArchived}function kk(e,t){let n=0;for(let r of e)r.agentType===`builtin`&&Ok(r,t)&&(n+=1);return n}function Ak(e,t,n){let r=0;for(let i of e)i.agentType===`user`&&Ok(i,t)&&n(i)&&(r+=1);return r}var jk=e=>e.isOwner===!0,Mk=e=>e.isOwner===!1&&e.accessLevel!=null,Nk=()=>!0,Pk=mk((e,t)=>({mine:Ak(e,t,jk),shared:Ak(e,t,Mk),all:Ak(e,t,Nk),system:kk(e,t)})),Fk=(0,_.createContext)(null);function Ik({catalog:e,platform:t,children:n,...r}){let i=(0,_.useMemo)(()=>({catalog:e,platform:t,...r}),[e,t,r.navigate,r.LinkComponent,r.renderModelRef,r.openPeek,r.popoverContainer]);return(0,j.jsx)(Fk.Provider,{value:i,children:n})}function Lk(){let e=(0,_.useContext)(Fk);if(!e)throw Error(`@ai-matrx/agents/catalog: no <AgentCatalogProvider> is mounted above this component. Create the catalog once with createAgentCatalog({ client, identity }) and mount <AgentCatalogProvider catalog={catalog}> at the top of your tree.`);return e}function Rk(){return Lk().catalog}function zk(){let e=Lk(),t=e.navigate,n=e.platform.navigate;return{navigate:(0,_.useCallback)(e=>{if(t){t(e);return}n(e)},[t,n]),LinkComponent:e.LinkComponent??e.platform.LinkComponent,renderModelRef:e.renderModelRef??e.platform.renderModelRef,openPeek:e.openPeek,popoverContainer:e.popoverContainer}}function Bk(e){let t=Rk(),n=(0,_.useCallback)(()=>e(t.getState()),[t,e]);return(0,_.useSyncExternalStore)(t.subscribe,n,n)}function Vk(){return Bk(Hk)}var Hk=e=>e.rows,Uk={navigate:e=>{typeof window<`u`&&window.location.assign(e)},LinkComponent:({children:e,...t})=>(0,j.jsx)(`a`,{...t,children:e}),renderModelRef:({modelId:e,className:t})=>(0,j.jsx)(`span`,{className:t,children:e})};function Wk({catalog:e,children:t,...n}){let r=(0,_.useMemo)(()=>Uk,[]);return(0,j.jsx)(Ik,{catalog:e,platform:r,...n,children:t})}var Gk=250,Kk=2;function qk(e,t){let n=Rk(),r=n.consumerDefaults,i=Bk((0,_.useCallback)(t=>t.consumers[e]??r,[e,r])),a=(0,_.useRef)(t);a.current=t,(0,_.useEffect)(()=>{let t=a.current,r={...t?.initialTab?{tab:t.initialTab}:{},...t?.initialArchFilter?{archFilter:t.initialArchFilter}:{}};return n.registerConsumer(e,Object.keys(r).length>0?r:void 0),()=>{a.current?.unregisterOnUnmount&&n.unregisterConsumer(e)}},[e,n]);let o=(0,_.useCallback)(t=>n.setConsumerFilter(e,{searchTerm:t}),[e,n]),s=(0,_.useCallback)(t=>n.setConsumerFilter(e,{deepSearch:t}),[e,n]),c=(0,_.useCallback)(t=>n.setConsumerFilter(e,{sortBy:t}),[e,n]),l=(0,_.useCallback)(t=>n.setConsumerFilter(e,{tab:t}),[e,n]),u=(0,_.useCallback)(t=>n.setConsumerFilter(e,{favFilter:t}),[e,n]),d=(0,_.useCallback)(t=>n.setConsumerFilter(e,{archFilter:t}),[e,n]),f=(0,_.useCallback)(t=>n.setConsumerFilter(e,{accessFilter:t}),[e,n]),p=(0,_.useCallback)(t=>{let r=n.getConsumer(e).includedCats,i=r.includes(t)?r.filter(e=>e!==t):[...r,t];n.setConsumerFilter(e,{includedCats:i})},[e,n]),m=(0,_.useCallback)(t=>{let r=n.getConsumer(e).includedTags,i=r.includes(t)?r.filter(e=>e!==t):[...r,t];n.setConsumerFilter(e,{includedTags:i})},[e,n]),h=(0,_.useCallback)(t=>n.setConsumerFilter(e,{includedCats:t}),[e,n]),g=(0,_.useCallback)(t=>n.setConsumerFilter(e,{includedTags:t}),[e,n]),v=(0,_.useCallback)(()=>n.setConsumerFilter(e,{favoritesFirst:!n.getConsumer(e).favoritesFirst}),[e,n]),y=(0,_.useCallback)(()=>n.setConsumerPage(e,`list`,n.getConsumer(e).listPage+1),[e,n]),b=(0,_.useCallback)(()=>n.setConsumerPage(e,`shared`,n.getConsumer(e).sharedPage+1),[e,n]),x=(0,_.useCallback)(()=>n.resetConsumerFilters(e),[e,n]),[S,C]=(0,_.useState)(!1),[w,T]=(0,_.useState)(null),E=(0,_.useRef)(0),D=i.searchTerm,O=i.deepSearch;(0,_.useEffect)(()=>{let e=D.trim();if(e.length<Kk){C(!1),T(null);return}let t=++E.current;C(!0);let r=setTimeout(()=>{n.searchServer(e,O).then(e=>{t===E.current&&(T(e),C(!1))}).catch(r=>{t===E.current&&(n.errorSink({code:`server_search_failed`,message:`agent search failed: ${r instanceof Error?r.message:String(r)}`,context:{query:e,deep:O}}),C(!1))})},Gk);return()=>clearTimeout(r)},[D,O,n]),(0,_.useEffect)(()=>{n.setConsumerServerSearch(e,{matchedIds:w??[],isSearching:S})},[e,n,w,S]);let k=i.searchTerm!==``||i.includedCats.length>0||i.includedTags.length>0||i.favFilter!==`all`||i.archFilter!==r.archFilter||i.accessFilter!==`any`||!i.favoritesFirst;return{tab:i.tab,sortBy:i.sortBy,searchTerm:i.searchTerm,includedCats:i.includedCats,includedTags:i.includedTags,favFilter:i.favFilter,archFilter:i.archFilter,archFilterDefault:r.archFilter,accessFilter:i.accessFilter,favoritesFirst:i.favoritesFirst,listPage:i.listPage,sharedPage:i.sharedPage,state:i,hasActiveFilters:k,deepSearch:i.deepSearch,isServerSearching:i.isServerSearching,setSearchTerm:o,setDeepSearch:s,setSortBy:c,setTab:l,setFavFilter:u,setArchFilter:d,setAccessFilter:f,toggleCategory:p,toggleTag:m,setIncludedCats:h,setIncludedTags:g,toggleFavoritesFirst:v,loadMoreList:y,loadMoreShared:b,resetFilters:x}}function Jk(e,t,n){return t.length===0||t.includes(e)?null:n&&t.includes(n)?n:t[0]??null}var Yk=[];function Xk({consumerId:e,onSelect:t,navigateTo:n,activeAgentIdOverride:r,initialTab:i,includeSystemInAll:a=!1,visibleTabs:o,initialArchFilter:s,excludeAgentIds:c=Yk,defaultMandateKey:l,agentFilter:u}){let d=Rk(),{navigate:f}=zk(),p=(0,_.useRef)(!1),[m,h]=(0,_.useState)(null),g=(0,_.useRef)(null),v=(0,_.useRef)(!1),y=qk(e,{unregisterOnUnmount:!0,...s?{initialArchFilter:s}:{}}),b=Vk(),x=d.getUserIdOrNull(),S=Pk(b,y.state.archFilter),C=S.mine,w=(0,_.useMemo)(()=>Dk(a),[a])(b,y.state),T=(0,_.useMemo)(()=>new Set(c),[c]),[E,D]=(0,_.useState)(null),O=u&&E!==u.label?u:null,k=O?.test,A=(0,_.useCallback)(e=>T.size===0&&!k?e:e.filter(e=>!T.has(e.id)&&(!k||k(e))),[T,k]),j=(0,_.useCallback)(()=>{u&&(u.onClear?u.onClear():D(u.label))},[u]),M=(0,_.useCallback)(()=>D(null),[]),N=A(w),P=(0,_.useMemo)(()=>Dk(a),[a]),F=(0,_.useMemo)(()=>({...y.state,archFilter:`archived`}),[y.state]),I=y.archFilter===`active`?A(P(b,F)).length:0,L=Bk(Zk),ee=r??null,te=ee?d.getAgent(ee):void 0,ne=y.tab===`system`,re=ne?yk(b):vk(b),ie=ne?xk(b):bk(b),ae=S,oe=L===`loading`,se=L===`succeeded`||L===`failed`,ce=(0,_.useCallback)(()=>{p.current||(p.current=!0,d.ensureLoaded().catch(()=>{}))},[d]),le=Bk((0,_.useCallback)(e=>l?e.defaultRows[l]:void 0,[l]));(0,_.useEffect)(()=>{l&&d.ensureDefaultRow(l)},[d,l]),(0,_.useEffect)(()=>{if(!v.current){if(i){v.current=!0,y.tab!==i&&y.setTab(i);return}if(y.tab!==`mine`){v.current=!0;return}if(!ak({userId:x,ownedCount:C,agentsLoaded:se})){(!x||se)&&(v.current=!0);return}y.setTab(`system`),v.current=!0}},[x,C,se,i,y.tab,y.setTab]);let ue=o?o.join(`,`):``;(0,_.useEffect)(()=>{if(!ue)return;let e=Jk(y.tab,ue.split(`,`),i);e&&y.setTab(e)},[ue,i,y.tab,y.setTab]),(0,_.useEffect)(()=>{ce()},[ce]);let R=(0,_.useCallback)(r=>{t?t(r.id):n?f(n.replace(`{id}`,r.id)):d.errorSink({code:`select_has_nowhere_to_go`,message:`an agent was chosen but this picker was given neither onSelect nor navigateTo, so the choice went nowhere.`,context:{consumerId:e,agentId:r.id}})},[t,n,f,d,e]),de=(y.sortBy===`updated-desc`?0:1)+ +(y.includedCats.length>0)+ +(y.includedTags.length>0)+(y.favFilter===`all`?0:1)+(y.archFilter===y.archFilterDefault?0:1),z=(0,_.useCallback)((e,t)=>{t||(g.current&&=(clearTimeout(g.current),null),h(e))},[]),B=(0,_.useCallback)((e,t)=>{m?.id===e.id&&(g.current=setTimeout(()=>{h(null),t()},900))},[m]),fe=(0,_.useCallback)(()=>{g.current&&=(clearTimeout(g.current),null)},[]),pe=(0,_.useCallback)(e=>{g.current=setTimeout(()=>{h(null),e()},900)},[]);return(0,_.useEffect)(()=>()=>{g.current&&clearTimeout(g.current)},[]),{agents:N,archivedHiddenCount:I,footerLabel:lk({count:N.length,archFilter:y.archFilter,archivedHiddenCount:I}),isLoading:oe,activeAgentId:ee,pinnedAgent:te??null,defaultRow:le??null,agentFilterLabel:O?.label??null,clearAgentFilter:j,resumeAgentFilter:M,allCategories:re,allTags:ie,consumer:y,tabCounts:ae,activeFilterCount:de,hoveredAgent:m,setHoveredAgent:h,ensureLoaded:ce,handleSelectAgent:R,handleAgentHover:z,handleAgentHoverEnd:B,handleDetailPanelMouseEnter:fe,handleDetailPanelMouseLeave:pe}}var Zk=e=>e.status,Qk={star:{paths:[`M11.5 3.2a.6.6 0 0 1 1 0l2.3 4.7 5.2.8a.6.6 0 0 1 .3 1l-3.8 3.7.9 5.2a.6.6 0 0 1-.9.6L12 16.8l-4.6 2.4a.6.6 0 0 1-.9-.6l.9-5.2-3.8-3.7a.6.6 0 0 1 .3-1l5.2-.8Z`],fillable:!0},chevronRight:{paths:[`m9 18 6-6-6-6`]},chevronDown:{paths:[`m6 9 6 6 6-6`]},search:{paths:[`m21 21-4.3-4.3`],circles:[{cx:11,cy:11,r:8}]},x:{paths:[`M18 6 6 18`,`m6 6 12 12`]},check:{paths:[`M20 6 9 17l-5-5`]},arrowUpDown:{paths:[`m21 16-4 4-4-4`,`M17 20V4`,`m3 8 4-4 4 4`,`M7 4v16`]},folder:{paths:[`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`]},tag:{paths:[`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`],circles:[{cx:7.5,cy:7.5,r:.5,filled:!0}]},rotateCcw:{paths:[`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,`M3 3v5h5`]},loader:{paths:[`M21 12a9 9 0 1 1-6.219-8.56`]},alertTriangle:{paths:[`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,`M12 9v4`,`M12 17h.01`]},music4:{paths:[`M9 18V5l12-2v13`,`m9 9 12-2`],circles:[{cx:6,cy:18,r:3},{cx:18,cy:16,r:3}]},clock:{paths:[`M12 6v6l4 2`],circles:[{cx:12,cy:12,r:10}]},globe:{paths:[`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,`M2 12h20`],circles:[{cx:12,cy:12,r:10}]},users:{paths:[`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,`M22 21v-2a4 4 0 0 0-3-3.87`,`M16 3.13a4 4 0 0 1 0 7.75`],circles:[{cx:9,cy:7,r:4}]},externalLink:{paths:[`M15 3h6v6`,`M10 14 21 3`,`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`]},messageCircle:{paths:[`M7.9 20A9 9 0 1 0 4 16.1L2 22Z`]},rocket:{paths:[`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91 0`,`m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2`,`M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0`,`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`]},archive:{paths:[`M3 3h18a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z`,`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,`M10 12h4`]},circleCheck:{paths:[`m9 12 2 2 4-4`],circles:[{cx:12,cy:12,r:10}]}};Object.keys(Qk);function $k({children:e,...t}){return(0,j.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...t,children:e})}function eA({name:e,filled:t}){let n=Qk[e];return(0,j.jsxs)(j.Fragment,{children:[n.paths.map((e,r)=>(0,j.jsx)(`path`,{d:e,...t&&n.fillable?{fill:`currentColor`}:{}},`p${r}`)),(n.circles??[]).map((e,t)=>(0,j.jsx)(`circle`,{cx:e.cx,cy:e.cy,r:e.r,...e.filled?{fill:`currentColor`}:{}},`c${t}`))]})}function tA(e){return function(t){return(0,j.jsx)($k,{...t,children:(0,j.jsx)(eA,{name:e,filled:!1})})}}function nA({filled:e=!1,...t}){return(0,j.jsx)($k,{...t,fill:e?`currentColor`:`none`,children:(0,j.jsx)(eA,{name:`star`,filled:e})})}var rA=tA(`chevronRight`),iA=tA(`chevronDown`),aA=tA(`search`),oA=tA(`x`),sA=tA(`check`),cA=tA(`arrowUpDown`),lA=tA(`folder`),uA=tA(`tag`),dA=tA(`rotateCcw`),fA=tA(`archive`),pA=tA(`loader`),mA=tA(`users`),hA=tA(`clock`),gA=tA(`globe`),_A=tA(`externalLink`),vA=tA(`messageCircle`),yA=tA(`rocket`),bA=tA(`alertTriangle`),xA=tA(`music4`);function SA(e){return(0,j.jsxs)($k,{...e,children:[(0,j.jsx)(`path`,{d:`M14 4.1 12 6`}),(0,j.jsx)(`path`,{d:`m5.1 8-2.9-.8`}),(0,j.jsx)(`path`,{d:`m6 12-1.9 2`}),(0,j.jsx)(`path`,{d:`M7.2 2.2 8 5.1`}),(0,j.jsx)(`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`})]})}var CA=({ref:e,value:t,onChange:n,placeholder:r})=>(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 h-7 px-2 rounded-md bg-muted/40 border border-border/50`,children:[(0,j.jsx)(aA,{className:`w-3 h-3 text-muted-foreground shrink-0`}),(0,j.jsx)(`input`,{ref:e,type:`text`,value:t,onChange:e=>n(e.target.value),placeholder:r,className:`flex-1 bg-transparent text-xs text-foreground placeholder:text-muted-foreground/50 outline-none min-w-0`,style:{fontSize:`16px`}}),t&&(0,j.jsx)(`button`,{type:`button`,onClick:()=>n(``),className:`text-muted-foreground hover:text-foreground`,"aria-label":`Clear search`,children:(0,j.jsx)(oA,{className:`w-3 h-3`})})]});function wA({icon:e,label:t,active:n,focused:r,onClick:i,ariaLabel:a,testId:o}){return(0,j.jsxs)(`button`,{type:`button`,onClick:i,...a?{"aria-label":a}:{},...o?{"data-testid":o}:{},className:Z(`inline-flex items-center gap-1 h-6 px-1.5 rounded text-[11px] font-medium shrink-0 transition-colors`,r?`bg-primary/15 text-primary border border-primary/30 ring-1 ring-primary/20`:n?`bg-primary/10 text-primary border border-primary/20`:`text-muted-foreground hover:text-foreground hover:bg-muted/50 border border-transparent`),children:[(0,j.jsx)(e,{className:`w-3 h-3`}),(0,j.jsx)(`span`,{children:t})]})}function TA({label:e,selected:t,onClick:n}){return(0,j.jsxs)(`button`,{type:`button`,onClick:n,className:Z(`flex items-center w-full px-3 py-2 text-xs transition-colors`,`hover:bg-muted/50 active:bg-muted/70`,t&&`text-primary font-medium`),children:[(0,j.jsx)(`span`,{className:`flex-1 text-left`,children:e}),t&&(0,j.jsx)(sA,{className:`w-3.5 h-3.5 text-primary shrink-0`})]})}function EA({label:e,checked:t,onClick:n}){return(0,j.jsxs)(`button`,{type:`button`,onClick:n,className:`flex items-center gap-2 w-full px-3 py-1.5 text-xs hover:bg-muted/50 active:bg-muted/70 transition-colors`,children:[(0,j.jsx)(`div`,{className:Z(`w-3.5 h-3.5 rounded-sm border flex items-center justify-center shrink-0 transition-colors`,t?`bg-primary border-primary`:`border-muted-foreground/30`),children:t&&(0,j.jsx)(sA,{className:`w-2.5 h-2.5 text-primary-foreground`})}),(0,j.jsx)(`span`,{className:`flex-1 text-left truncate`,children:e})]})}function DA({title:e,onClose:t}){return(0,j.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-2 border-b border-border shrink-0`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-foreground`,children:e}),(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`w-5 h-5 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors`,"aria-label":`Close`,children:(0,j.jsx)(oA,{className:`w-3.5 h-3.5`})})]})}function OA({consumer:e,allCategories:t,search:n,setSearch:r,onClose:i}){let a=t.filter(e=>!n||e.toLowerCase().includes(n.toLowerCase()));return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(DA,{title:`Categories`,onClose:i}),(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(CA,{value:n,onChange:r,placeholder:`Filter categories...`})}),e.includedCats.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>e.setIncludedCats([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0`,children:[`Clear (`,e.includedCats.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:a.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground text-center py-6`,children:`No categories`}):a.map(t=>(0,j.jsx)(EA,{label:t,checked:e.includedCats.includes(t),onClick:()=>e.toggleCategory(t)},t))})]})}function kA({id:e,variant:t=`card`,disabled:n}){let r=Rk(),i=Bk((0,_.useCallback)(t=>t.byId[e],[e]))?.isFavorite??!1,a=t=>{t.stopPropagation(),!n&&r.setFavorite(e,!i).catch(()=>{})},o=i?`Remove from favorites`:`Add to favorites`;return t===`list`?(0,j.jsx)(`button`,{type:`button`,className:Z(`flex-shrink-0 p-0.5 rounded transition-all duration-150`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,n?`cursor-not-allowed`:`hover:scale-110 cursor-pointer`),onClick:a,disabled:n,title:o,"aria-label":i?`Remove from favorites`:`Add to favorites`,children:(0,j.jsx)(nA,{filled:i,className:Z(`h-3.5 w-3.5 transition-all duration-150`,i?`matrx-agent-star-on`:`text-muted-foreground/40 hover:matrx-agent-star-on`)})}):(0,j.jsx)(`button`,{type:`button`,className:Z(`absolute top-2.5 right-2.5 z-10 p-0.5 rounded transition-all duration-150`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,n?`cursor-not-allowed`:`hover:scale-110 cursor-pointer`,i?`matrx-agent-star-on`:`text-muted-foreground/40 hover:matrx-agent-star-on`),onClick:a,disabled:n,title:o,"aria-label":i?`Remove from favorites`:`Add to favorites`,children:(0,j.jsx)(nA,{filled:i,className:`w-4 h-4 transition-all duration-150`})})}function AA({agent:e,onSelect:t}){let{LinkComponent:n,renderModelRef:r,openPeek:i}=zk(),a=e.updatedAt?new Date(e.updatedAt):null,o=e.createdAt?new Date(e.createdAt):null,s=nD(e.id),c=e=>e?e.toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`}):null;return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(`div`,{className:`px-4 pt-4 pb-3`,children:(0,j.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,j.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,j.jsx)(`h3`,{className:`text-sm font-semibold text-foreground leading-tight break-words`,children:e.name||`Untitled`}),e.isFavorite&&(0,j.jsx)(`div`,{className:`flex items-center gap-1 mt-0.5`,children:(0,j.jsx)(`span`,{className:`text-[11px] matrx-agent-star-on`,children:`Pinned to favorites`})})]}),!s&&(0,j.jsx)(kA,{id:e.id,variant:`list`})]})}),(0,j.jsx)(`div`,{className:`h-px bg-border mx-3`}),(0,j.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-4 py-3 space-y-3`,children:[e.orchestra&&(0,j.jsxs)(`div`,{className:`rounded-md border border-primary/20 bg-primary/5 px-2.5 py-2`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(xA,{className:`w-3.5 h-3.5 text-primary shrink-0`}),(0,j.jsx)(`span`,{className:`text-[11px] font-medium text-primary`,children:tk(e.orchestra)})]}),e.orchestra.tagline&&(0,j.jsx)(`p`,{className:`mt-1 text-xs text-foreground/80 leading-relaxed`,children:e.orchestra.tagline}),rk(e.orchestra)&&(0,j.jsx)(`p`,{className:`mt-1 text-[11px] text-muted-foreground`,title:`Delegates to: ${e.orchestra.memberTitles.join(`, `)}`,children:rk(e.orchestra)}),nk(e.orchestra)&&(0,j.jsx)(`p`,{className:`mt-0.5 text-[11px] text-muted-foreground`,children:nk(e.orchestra)})]}),e.description&&(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-[11px] font-medium text-muted-foreground uppercase tracking-wider mb-1`,children:`Description`}),(0,j.jsx)(`p`,{className:`text-xs text-foreground/80 leading-relaxed`,children:e.description})]}),e.category&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(lA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsx)(`span`,{className:`text-xs text-foreground/80`,children:e.category})]}),e.tags&&e.tags.length>0&&(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 mb-1.5`,children:[(0,j.jsx)(uA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsx)(`span`,{className:`text-[11px] font-medium text-muted-foreground`,children:`Tags`})]}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.tags.map(e=>(0,j.jsx)(`span`,{className:`inline-flex items-center h-5 px-1.5 rounded text-[10px] font-medium bg-muted text-muted-foreground`,children:e},e))})]}),e.accessLevel&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[e.isOwner===!1?(0,j.jsx)(mA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}):(0,j.jsx)(gA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsxs)(`div`,{className:`flex flex-col`,children:[(0,j.jsx)(`span`,{className:`text-xs text-foreground/80 capitalize`,children:e.accessLevel===`owner`?`You own this`:`Shared — ${e.accessLevel}`}),e.sharedByEmail&&(0,j.jsxs)(`span`,{className:`text-[10px] text-muted-foreground`,children:[`by `,e.sharedByEmail]})]})]}),e.modelId&&(0,j.jsx)(`div`,{className:`flex items-center gap-2`,children:r({modelId:e.modelId,...e.offeringId===void 0?{}:{offeringId:e.offeringId},className:`max-w-full text-xs text-foreground/80`})}),(a||o)&&(0,j.jsxs)(`div`,{className:`pt-1 space-y-1`,children:[a&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(hA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[`Updated `,c(a)]})]}),o&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(hA,{className:`w-3.5 h-3.5 text-muted-foreground/50 shrink-0`}),(0,j.jsxs)(`span`,{className:`text-[11px] text-muted-foreground/70`,children:[`Created `,c(o)]})]})]})]}),(0,j.jsx)(`div`,{className:`h-px bg-border mx-3 mt-auto`}),(0,j.jsxs)(`div`,{className:`px-3 py-2 shrink-0 flex items-center gap-1.5`,children:[(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`flex-1 h-7 rounded-md bg-primary text-primary-foreground text-[11px] font-medium hover:bg-primary/90 active:bg-primary/80 transition-colors`,children:`Select`}),i&&(0,j.jsx)(`button`,{type:`button`,onClick:t=>{t.stopPropagation(),i(e)},title:`Sneak Peek`,"aria-label":`Sneak Peek`,className:jA,children:(0,j.jsx)(yA,{className:`w-3.5 h-3.5`})}),!s&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(n,{href:`/chat/a/${e.id}`,onClick:e=>e.stopPropagation(),title:`Open in chat`,"aria-label":`Open in chat`,className:jA,children:(0,j.jsx)(vA,{className:`w-3.5 h-3.5`})}),(0,j.jsx)(n,{href:`/agents/go/${e.id}`,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>e.stopPropagation(),title:`Open in new tab`,"aria-label":`Open in new tab`,className:Z(jA,`hover:text-foreground`),children:(0,j.jsx)(_A,{className:`w-3.5 h-3.5`})})]})]})]})}var jA=`flex items-center justify-center h-7 w-7 rounded-md border border-border bg-background text-muted-foreground hover:text-primary hover:bg-muted/50 transition-colors shrink-0`;function MA(e,t={}){if(!e||typeof window>`u`)return null;let n=t.full??528,r=t.minUsable??300,i=t.gap??16,a=window.innerHeight-e.getBoundingClientRect().bottom-i;return a>=n?null:a>=r?`${Math.floor(a)}px`:null}function NA(e,t,n={}){if(!e||typeof window>`u`||t!==`left`&&t!==`right`)return t;let r=n.width??680,i=n.gap??16,a=e.getBoundingClientRect(),o={left:a.left-i,right:window.innerWidth-a.right-i};if(o[t]>=r)return t;let s=t===`left`?`right`:`left`;return o[s]>=r?s:`bottom`}function PA({consumer:e,allCategories:t,allTags:n,activeFilterCount:r,isMobile:i,rightPanel:a,onFilterChipClick:o,onReset:s}){return(0,j.jsxs)(`div`,{className:`flex items-center gap-1 px-2 pb-1.5 overflow-x-auto matrx-agent-scrollbar-none shrink-0`,children:[(0,j.jsx)(wA,{icon:cA,label:rD.find(t=>t.value===e.sortBy)?.label??`Sort`,active:e.sortBy!==`updated-desc`,focused:!i&&a===`sort`,onClick:()=>o(`sort`)}),(0,j.jsx)(wA,{icon:nA,label:e.favFilter===`no`?`No Favs`:`Favs`,active:e.favFilter!==`all`,onClick:()=>{let t=e.favFilter===`all`?`yes`:e.favFilter===`yes`?`no`:`all`;e.setFavFilter(t)}}),(0,j.jsx)(wA,{icon:fA,label:ok(e.archFilter),active:e.archFilter!==e.archFilterDefault,ariaLabel:ck(e.archFilter),testId:`agent-archive-filter`,onClick:()=>e.setArchFilter(oD(e.archFilter))}),t.length>0&&(0,j.jsx)(wA,{icon:lA,label:e.includedCats.length>0?`${e.includedCats.length}`:`Category`,active:e.includedCats.length>0,focused:!i&&a===`categories`,onClick:()=>o(`categories`)}),n.length>0&&(0,j.jsx)(wA,{icon:uA,label:e.includedTags.length>0?`${e.includedTags.length}`:`Tags`,active:e.includedTags.length>0,focused:!i&&a===`tags`,onClick:()=>o(`tags`)}),r>0&&(0,j.jsx)(`button`,{type:`button`,onClick:s,"aria-label":`Reset filters`,className:`flex items-center gap-0.5 h-6 px-1.5 rounded text-[11px] text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors shrink-0`,children:(0,j.jsx)(dA,{className:`w-3 h-3`})})]})}function FA({consumer:e,tabCounts:t,systemTabLabel:n,visibleTabs:r}){let{labels:i}=Rk(),a=[{value:`mine`,label:`Mine`,countKey:`mine`},{value:`shared`,label:`Shared`,countKey:`shared`},{value:`all`,label:`All`,countKey:`all`},{value:`system`,label:i.publicTab,countKey:`system`}];return(0,j.jsx)(`div`,{className:`flex items-center gap-0.5 px-2 pb-1 overflow-x-auto matrx-agent-scrollbar-none shrink-0`,role:`tablist`,"aria-label":`Agent ownership`,children:a.filter(({value:e})=>!r||r.includes(e)).map(({value:r,label:i,countKey:a})=>{let o=r===`system`?n??i:i,s=e.tab===r,c=t[a];return(0,j.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":s,onClick:()=>e.setTab(r),className:Z(`inline-flex items-center gap-1 rounded-md px-2 py-1 text-[10px] font-medium transition-colors shrink-0`,s?`bg-primary text-primary-foreground`:`text-muted-foreground hover:text-foreground hover:bg-muted/50`),children:[(0,j.jsx)(`span`,{children:o}),(0,j.jsx)(`span`,{className:Z(`tabular-nums opacity-70`,s&&`opacity-90`),children:c})]},r)})})}function IA({agent:e,isActive:t,isHovered:n,isMobile:r,href:i,onClick:a,onHover:o,onHoverEnd:s,onDetailPress:c}){let{LinkComponent:l}=zk(),{labels:u}=Rk(),d=i??`/agents/go/${e.id}`;return(0,j.jsxs)(`div`,{"data-testid":`agent-row-${e.id}`,className:Z(`flex items-center w-full text-left transition-colors group`,`hover:bg-muted/50 active:bg-muted/70`,t&&`bg-primary/5`,!r&&n&&`bg-muted/40`),onMouseEnter:r?void 0:o,onMouseLeave:r?void 0:s,children:[(0,j.jsxs)(l,{href:d,onClick:e=>{e.metaKey||e.ctrlKey||(e.preventDefault(),a())},className:`flex items-center gap-2 flex-1 min-w-0 px-3 py-2`,children:[e.isFavorite&&(0,j.jsx)(nA,{filled:!0,className:`w-3 h-3 matrx-agent-star-on shrink-0`}),(0,j.jsx)(`span`,{className:Z(`text-[13px] font-medium truncate`,t?`text-primary`:`text-foreground`),title:e.name||`Untitled`,children:e.name||`Untitled`}),e.organizationName?(0,j.jsx)(`span`,{"data-testid":`agent-org-${e.id}`,className:`text-[10px] text-muted-foreground truncate min-w-0 shrink`,title:e.organizationName,children:e.organizationName}):null,e.orchestra&&(0,j.jsxs)(`span`,{className:`flex shrink-0 items-center gap-0.5 rounded-sm bg-primary/10 px-1 py-px text-[9px] font-medium text-primary`,title:rk(e.orchestra)??tk(e.orchestra),children:[(0,j.jsx)(xA,{className:`w-2.5 h-2.5`}),e.orchestra.memberCount]}),e.isArchived?(0,j.jsx)(`span`,{"data-testid":`agent-archived-badge-${e.id}`,className:`text-[9px] font-medium text-muted-foreground bg-muted px-1 py-px rounded shrink-0 ml-auto`,children:u.archivedBadge}):null,e.agentType===`builtin`?(0,j.jsx)(`span`,{className:Z(`text-[9px] font-medium text-primary bg-primary/10 px-1 py-px rounded shrink-0`,!e.isArchived&&`ml-auto`),children:u.systemBadge}):e.isOwner===!1?(0,j.jsx)(`span`,{className:Z(`text-[9px] text-muted-foreground bg-muted px-1 py-px rounded shrink-0`,!e.isArchived&&`ml-auto`),children:`shared`}):null]}),r&&(0,j.jsx)(`button`,{type:`button`,"aria-label":`Show details`,onClick:e=>{e.stopPropagation(),c()},className:`flex items-center justify-center w-10 h-full shrink-0 text-muted-foreground/40 active:text-muted-foreground`,children:(0,j.jsx)(rA,{className:`w-4 h-4`})})]})}function LA({agents:e,isLoading:t,consumer:n,activeAgentId:r,allCategories:i,allTags:a,inputRef:o,onSelectAgent:s,resolveAgentHref:c,onReset:l,activeFilterCount:u,isMobile:d,hoveredAgent:f,onAgentHover:p,onAgentHoverEnd:m,onDetailPress:h,onFilterChipClick:g,rightPanel:v,tabCounts:y,visibleTabs:b,systemTabLabel:x,pinnedAgent:S=null,defaultRow:C=null,listOpen:w=!1,archivedHiddenCount:T=0,agentFilterLabel:E=null,onClearAgentFilter:D}){let O=Rk(),k=(0,_.useRef)(null);(0,_.useEffect)(()=>{w&&S&&k.current?.scrollTo({top:0})},[w,S?.id]);let{labels:A}=O,M=O.getUserIdOrNull()===null?A.emptySignedOut:ik(n.tab,A),N=C?.row??null;return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(CA,{ref:o,value:n.searchTerm,onChange:n.setSearchTerm,placeholder:A.searchPlaceholder})}),(0,j.jsx)(FA,{consumer:n,tabCounts:y,systemTabLabel:x,visibleTabs:b}),(0,j.jsx)(PA,{consumer:n,allCategories:i,allTags:a,activeFilterCount:u,isMobile:d,rightPanel:v,onFilterChipClick:g,onReset:l}),E&&(0,j.jsxs)(`div`,{"data-testid":`agent-list-host-filter`,className:`mx-2 mb-1.5 flex h-6 items-center gap-2 rounded-md bg-primary/10 px-2 shrink-0`,children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[11px] font-medium text-primary`,children:E}),D&&(0,j.jsx)(`button`,{type:`button`,onClick:D,className:`shrink-0 text-[11px] text-muted-foreground hover:text-foreground transition-colors`,children:`Show all`})]}),C?.drift&&(0,j.jsxs)(`div`,{role:`status`,className:`matrx-agent-drift-banner mx-2 mb-1.5 flex items-start gap-2 rounded-md px-2 py-1.5 shrink-0`,children:[(0,j.jsx)(bA,{className:`w-3.5 h-3.5 shrink-0 mt-px`}),(0,j.jsx)(`span`,{className:`text-[11px] leading-snug flex-1`,children:C.drift}),(0,j.jsx)(`button`,{type:`button`,"aria-label":`Dismiss`,onClick:()=>O.dismissDefaultRowDrift(C.mandateKey),className:`shrink-0 opacity-70 hover:opacity-100`,children:(0,j.jsx)(oA,{className:`w-3 h-3`})})]}),C?.error&&(0,j.jsxs)(f_,{as:`div`,className:`matrx-agent-drift-banner mx-2 mb-1.5 flex items-start gap-2 rounded-md px-2 py-1.5 shrink-0`,message:C.error,operation:`Load the default agent for ${C.mandateKey}`,origin:`agents/AgentListContent`,children:[(0,j.jsx)(bA,{className:`w-3.5 h-3.5 shrink-0 mt-px`}),(0,j.jsx)(`span`,{className:`text-[11px] leading-snug flex-1`,children:C.error}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>O.retryDefaultRow(C.mandateKey),className:`shrink-0 text-[11px] font-medium underline underline-offset-2 opacity-80 hover:opacity-100`,children:`Try again`})]}),(0,j.jsx)(`div`,{className:`h-px bg-border shrink-0`}),(0,j.jsx)(`div`,{ref:k,className:`overflow-y-auto flex-1 min-h-0`,children:t?(0,j.jsxs)(`div`,{className:`flex items-center justify-center py-8 gap-2 text-muted-foreground`,children:[(0,j.jsx)(pA,{className:`w-4 h-4 matrx-agent-spin`}),(0,j.jsx)(`span`,{className:`text-xs`,children:A.loading})]}):e.length===0&&!S&&!N?(0,j.jsx)(`div`,{className:`flex flex-col items-center py-8 text-muted-foreground`,children:(0,j.jsx)(`span`,{className:`text-xs`,children:M})}):(0,j.jsxs)(`div`,{className:`py-0.5`,children:[N&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-3 pt-1.5 pb-0.5`,children:(0,j.jsx)(`span`,{className:`text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:`Default`})}),(0,j.jsx)(IA,{agent:N,isActive:N.id===r,isHovered:f?.id===N.id,isMobile:d,onClick:()=>s(N),href:c?.(N),onHover:()=>p(N),onHoverEnd:()=>m(N),onDetailPress:()=>h(N)},`default-${N.id}`),(0,j.jsx)(`div`,{className:`mx-2 my-0.5 h-px bg-border`})]}),S&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-3 pt-1.5 pb-0.5`,children:(0,j.jsx)(`span`,{className:`text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:A.currentAgentHeading})}),(0,j.jsx)(IA,{agent:S,isActive:!0,isHovered:f?.id===S.id,isMobile:d,onClick:()=>s(S),href:c?.(S),onHover:()=>p(S),onHoverEnd:()=>m(S),onDetailPress:()=>h(S)},`pinned-${S.id}`),(0,j.jsx)(`div`,{className:`mx-2 my-0.5 h-px bg-border`})]}),e.map(e=>(0,j.jsx)(IA,{agent:e,isActive:e.id===r,isHovered:f?.id===e.id,isMobile:d,onClick:()=>s(e),href:c?.(e),onHover:()=>p(e),onHoverEnd:()=>m(e),onDetailPress:()=>h(e)},e.id)),e.length===0&&(S||N)&&(0,j.jsx)(`div`,{className:`flex flex-col items-center py-4 text-muted-foreground`,children:(0,j.jsx)(`span`,{className:`text-xs`,children:M})})]})}),(0,j.jsx)(`div`,{className:`h-px bg-border shrink-0`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between px-2.5 py-1.5 shrink-0`,children:[(0,j.jsx)(`span`,{"data-testid":`agent-list-footer`,className:`text-[10px] text-muted-foreground tabular-nums`,children:lk({count:e.length,archFilter:n.archFilter,archivedHiddenCount:T})}),n.searchTerm&&(0,j.jsx)(`button`,{type:`button`,onClick:()=>n.setSearchTerm(``),className:`text-[10px] text-muted-foreground hover:text-foreground transition-colors`,children:`Clear search`})]})]})}function RA({view:e,consumer:t,allCategories:n,allTags:r,catSearch:i,setCatSearch:a,tagSearch:o,setTagSearch:s,onBack:c}){return(0,j.jsxs)(`div`,{className:`flex flex-col`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:c,className:`flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium text-primary hover:bg-muted/30 transition-colors border-b border-border shrink-0`,children:[(0,j.jsx)(rA,{className:`w-4 h-4 rotate-180`}),e===`sort`?`Sort`:e===`categories`?`Categories`:`Tags`]}),e===`sort`&&rD.map(e=>(0,j.jsx)(TA,{label:e.label,selected:t.sortBy===e.value,onClick:()=>{t.setSortBy(e.value),c()}},e.value)),e===`categories`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1`,children:(0,j.jsx)(CA,{value:i,onChange:a,placeholder:`Filter categories...`})}),t.includedCats.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>t.setIncludedCats([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left`,children:[`Clear (`,t.includedCats.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto max-h-[300px]`,children:n.filter(e=>!i||e.toLowerCase().includes(i.toLowerCase())).map(e=>(0,j.jsx)(EA,{label:e,checked:t.includedCats.includes(e),onClick:()=>t.toggleCategory(e)},e))})]}),e===`tags`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1`,children:(0,j.jsx)(CA,{value:o,onChange:s,placeholder:`Filter tags...`})}),t.includedTags.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>t.setIncludedTags([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left`,children:[`Clear (`,t.includedTags.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto max-h-[300px]`,children:r.filter(e=>!o||e.toLowerCase().includes(o.toLowerCase())).map(e=>(0,j.jsx)(EA,{label:e,checked:t.includedTags.includes(e),onClick:()=>t.toggleTag(e)},e))})]})]})}function zA({consumer:e,onClose:t}){return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(DA,{title:`Sort By`,onClose:t}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:rD.map(t=>(0,j.jsx)(TA,{label:t.label,selected:e.sortBy===t.value,onClick:()=>e.setSortBy(t.value)},t.value))})]})}function BA({consumer:e,allTags:t,search:n,setSearch:r,onClose:i}){let a=t.filter(e=>!n||e.toLowerCase().includes(n.toLowerCase()));return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(DA,{title:`Tags`,onClose:i}),(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(CA,{value:n,onChange:r,placeholder:`Filter tags...`})}),e.includedTags.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>e.setIncludedTags([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0`,children:[`Clear (`,e.includedTags.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:a.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground text-center py-6`,children:`No tags`}):a.map(t=>(0,j.jsx)(EA,{label:t,checked:e.includedTags.includes(t),onClick:()=>e.toggleTag(t)},t))})]})}var VA=`680px`;function HA({core:e,visibleTabs:t,systemTabLabel:n,includeSystemInAll:r=!1,resolveAgentHref:i,showPinnedAgent:a=!0,autoFocusSearch:o=!0,onAfterSelect:s,className:c}){let l=C_(),{labels:u}=Rk(),[d,f]=(0,_.useState)(null),[p,m]=(0,_.useState)(``),[h,g]=(0,_.useState)(``),[v,y]=(0,_.useState)(null),[b,x]=(0,_.useState)(null),S=(0,_.useRef)(null),{agents:C,archivedHiddenCount:w,isLoading:T,activeAgentId:E,pinnedAgent:D,defaultRow:O,agentFilterLabel:k,clearAgentFilter:A,allCategories:M,allTags:N,consumer:P,tabCounts:F,activeFilterCount:I,hoveredAgent:L,setHoveredAgent:ee,ensureLoaded:te,handleSelectAgent:ne,handleAgentHover:re,handleAgentHoverEnd:ie,handleDetailPanelMouseEnter:ae,handleDetailPanelMouseLeave:oe}=e;(0,_.useEffect)(()=>{if(te(),!o)return;let e=setTimeout(()=>S.current?.focus(),50);return()=>clearTimeout(e)},[te,o]);let se=(0,_.useRef)(!1);(0,_.useEffect)(()=>{se.current||l||!D||(se.current=!0,d===null&&(ee(D),f(`detail`)))},[D,l,d,ee]);let ce=e=>{ne(e),y(null),x(null),s?.(e)},le=e=>{l?x(e):f(d===e?null:e)},ue=(0,_.useCallback)(e=>{if(l)return;let t=d===`sort`||d===`categories`||d===`tags`;re(e,t),t||f(`detail`)},[l,d,re]),R=(0,_.useCallback)(e=>{l||d===`detail`&&ie(e,()=>f(null))},[l,d,ie]),de=(0,_.useCallback)(()=>{oe(()=>f(null))},[oe]),z=n??(r?`System`:void 0),B=(0,j.jsx)(LA,{agents:C,isLoading:T,consumer:P,activeAgentId:E,allCategories:M,allTags:N,inputRef:S,onSelectAgent:ce,...i?{resolveAgentHref:i}:{},onReset:P.resetFilters,activeFilterCount:I,isMobile:l,hoveredAgent:L,onAgentHover:ue,onAgentHoverEnd:R,onDetailPress:y,onFilterChipClick:le,rightPanel:d,tabCounts:F,archivedHiddenCount:w,...t?{visibleTabs:t}:{},...z?{systemTabLabel:z}:{},pinnedAgent:a?D:null,defaultRow:O,agentFilterLabel:k,onClearAgentFilter:A,listOpen:!0});return l?(0,j.jsx)(`div`,{className:Z(`flex min-h-0 flex-1 flex-col overflow-hidden`,c),children:v?(0,j.jsxs)(`div`,{className:`flex flex-col overflow-hidden`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>y(null),className:`flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium text-primary hover:bg-muted/30 transition-colors border-b border-border shrink-0`,children:[(0,j.jsx)(rA,{className:`w-4 h-4 rotate-180`}),`Back`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto`,children:(0,j.jsx)(AA,{agent:v,onSelect:()=>ce(v)})})]}):b?(0,j.jsx)(RA,{view:b,consumer:P,allCategories:M,allTags:N,catSearch:p,setCatSearch:m,tagSearch:h,setTagSearch:g,onBack:()=>{x(null),m(``),g(``)}}):B}):(0,j.jsxs)(`div`,{className:Z(`flex h-full`,c),children:[(0,j.jsx)(`div`,{className:`flex flex-col min-w-[340px] flex-1 border-r border-border`,children:B}),(0,j.jsxs)(`div`,{className:`h-full w-[340px] shrink-0 overflow-hidden flex flex-col`,onMouseEnter:d===`detail`?ae:void 0,onMouseLeave:d===`detail`?de:void 0,children:[d===`detail`&&L&&(0,j.jsx)(`div`,{className:`h-full matrx-agent-fade-in`,children:(0,j.jsx)(AA,{agent:L,onSelect:()=>ce(L)})},L.id),d===`sort`&&(0,j.jsx)(zA,{consumer:P,onClose:()=>f(null)}),d===`categories`&&(0,j.jsx)(OA,{consumer:P,allCategories:M,search:p,setSearch:m,onClose:()=>{f(null),m(``)}}),d===`tags`&&(0,j.jsx)(BA,{consumer:P,allTags:N,search:h,setSearch:g,onClose:()=>{f(null),g(``)}}),d===null&&(0,j.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center`,children:[(0,j.jsx)(SA,{className:`h-6 w-6 text-muted-foreground/40`}),(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground/70 leading-relaxed`,children:u.hoverHint})]})]})]})}var UA=`agent-list-dropdown`;function WA({onSelect:e,navigateTo:t,className:n,label:r,triggerSlot:i,noBorder:a=!1,compact:o=!1,activeAgentId:s,contentSide:c,consumerId:l=UA,initialTab:u,includeSystemInAll:d=!1,visibleTabs:f,systemTabLabel:p,resolveAgentHref:m,showPinnedAgent:h=!0,excludeAgentIds:g,defaultMandateKey:v,agentFilter:y}){let b=C_(),{labels:x}=Rk(),{popoverContainer:S}=zk(),[C,w]=(0,_.useState)(!1),T=(0,_.useRef)(null),[E,D]=(0,_.useState)(null),[O,k]=(0,_.useState)(c),A=Xk({consumerId:l,...e?{onSelect:e}:{},...t?{navigateTo:t}:{},...s===void 0?{}:{activeAgentIdOverride:s},...u?{initialTab:u}:{},includeSystemInAll:d,...f?{visibleTabs:f}:{},...g?{excludeAgentIds:g}:{},...v?{defaultMandateKey:v}:{},...y?{agentFilter:y}:{}}),{pinnedAgent:M,defaultRow:N,activeAgentId:P,isLoading:F,activeFilterCount:I}=A,L=N?.row?.id===P?N.row:null,ee=r??M?.name??L?.name??(P?F?x.triggerResolving:x.triggerUnnameable:x.triggerFallback),te=!!P&&ee.trim().length>0&&ee!==`Select an agent`&&ee!==x.triggerFallback,ne=e=>{w(e),e&&(A.resumeAgentFilter(),D(c||b?null:MA(T.current)),k(c&&!b?NA(T.current,c):c))},re=(0,_.useMemo)(()=>{if(m)return m;if(t)return e=>t.replace(`{id}`,e.id)},[t,m]),ie=i??(0,j.jsxs)(`button`,{type:`button`,className:Z(`inline-flex items-center rounded-md text-xs font-medium transition-colors`,`bg-background hover:bg-muted/50 text-foreground/80 hover:text-foreground`,o?`h-5 gap-1 px-1.5`:`h-7 gap-1.5 px-2.5`,!a&&`border border-border`,n),children:[(0,j.jsx)(`span`,{className:`min-w-0 max-w-[200px] flex-1 truncate text-left`,children:ee}),I>0&&(0,j.jsx)(`span`,{className:`flex items-center justify-center w-4 h-4 rounded-md bg-primary text-primary-foreground text-[10px]`,children:I}),(0,j.jsx)(iA,{className:`w-3 h-3 text-muted-foreground/60`})]}),ae=e=>te?(0,j.jsxs)(pd,{...C?{open:!1}:{},children:[(0,j.jsx)(e,{asChild:!0,ref:T,children:(0,j.jsx)(md,{asChild:!0,children:ie})}),(0,j.jsx)(hd,{side:`bottom`,className:`max-w-xs`,children:ee})]}):(0,j.jsx)(e,{asChild:!0,ref:T,children:ie}),oe=(0,j.jsx)(HA,{core:A,includeSystemInAll:d,showPinnedAgent:h,onAfterSelect:()=>w(!1),...f?{visibleTabs:f}:{},...p?{systemTabLabel:p}:{},...re?{resolveAgentHref:re}:{}});return b?(0,j.jsxs)(Zg,{open:C,onOpenChange:ne,children:[ae(Qg),(0,j.jsxs)(a_,{className:`h-[85dvh]`,children:[(0,j.jsx)(o_,{className:`sr-only`,children:`Select Agent`}),(0,j.jsx)(`div`,{className:`flex flex-col overflow-hidden flex-1 min-h-0`,children:oe})]})]}):(0,j.jsxs)(zS,{open:C,onOpenChange:ne,modal:!1,children:[ae(BS),(0,j.jsx)(VS,{...O?{side:O}:E?{side:`bottom`}:{},align:`start`,sideOffset:4,collisionPadding:12,sticky:`always`,...S?{container:S}:{},className:`p-0 overflow-hidden`,style:{width:VA,height:E??`528px`,maxHeight:E??`min(528px, var(--radix-popper-available-height, 528px))`},children:oe})]})}var GA=`Sign in to AI Matrx to use your agents`,KA=`latest`;function qA(e){let t=n=>{let r=()=>e.call(`agentCatalogRpc`,n).then(e=>({data:e.data,error:e.error?{message:e.error.message,...e.error.code?{code:e.error.code}:{},details:e.error.details??null,hint:e.error.hint??null}:null,count:e.count??null}));return{then:(e,t)=>r().then(e,t),range:(e,r)=>t({...n,range:[e,r]}),order:(e,r)=>t({...n,order:{column:e,ascending:r?.ascending!==!1}})}};return{rpc:(e,n,r)=>t({fn:e,...n?{args:n}:{},...r?.count?{count:r.count}:{}})}}function JA(e,t){let[n,r]=(0,_.useState)(null);return(0,_.useEffect)(()=>{if(!t)return;let n=!0;return e.call(`agentAccess`).then(e=>n&&r(e)).catch(()=>n&&r({signedIn:!1,userId:null,organizationId:null,configured:!1})),()=>{n=!1}},[e,t]),n}function YA(e,t,n){let r=(0,_.useRef)(n);return r.current=n,(0,_.useMemo)(()=>t?QO({client:qA(e),identity:{requireUserId:()=>t,getUserId:()=>t},catalogId:`coding-sessions:${t}`,errorSink:e=>{console.error(`[coding-sessions] agent catalogue: ${e.code}: ${e.message}`),e.code===`list_read_failed`&&r.current(`Couldn't load your agents. Reopen to retry.`)}}):null,[e,t])}function XA(e){return e.flatMap(e=>typeof e.name==`string`?[e]:[])}function ZA(e){let t=JA(e.transport,e.open),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(null),o=YA(e.transport,t?.signedIn?t.userId:null,a),s=e.value?.agentId??null;(0,_.useEffect)(()=>{if(r(null),a(null),!s)return;let t=!0;return e.transport.call(`agentDetails`,s).then(e=>t&&r(e)).catch(e=>t&&a(e instanceof Error?e.message:String(e))),()=>{t=!1}},[s,e.transport]);let{onDetails:c}=e;(0,_.useEffect)(()=>{c?.(n)},[n,c]);let l=(0,_.useMemo)(()=>$E(XA(n?.variables??[])),[n]);if(t===null)return(0,j.jsx)(`div`,{className:`cs-skeleton h-9 rounded-lg`});if(!t.signedIn||!o)return(0,j.jsx)(`p`,{className:`text-[12.5px] text-muted-foreground`,children:GA});let u=(t,n)=>{e.value&&e.onChange({...e.value,variables:{...e.value.variables??{},[t]:n}})};return(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(fd,{children:(0,j.jsx)(Wk,{catalog:o,children:(0,j.jsx)(WA,{consumerId:`coding-sessions-new-session`,activeAgentId:s,label:n?.name??(s?`Loading…`:`None`),onSelect:t=>e.onChange({agentId:t,versionId:null,variables:{}})})})}),s?(0,j.jsx)(__,{type:`button`,size:`sm`,variant:`ghost`,onClick:()=>e.onChange(null),children:`Remove`}):null]}),i?(0,j.jsx)(`p`,{className:`text-[12px] text-destructive`,children:i}):null,n&&e.value?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`w-[72px] shrink-0 text-[12px] text-muted-foreground`,children:`Version`}),(0,j.jsxs)(nS,{value:e.value.versionId??KA,onValueChange:t=>e.value&&e.onChange({...e.value,versionId:t===KA?null:t}),children:[(0,j.jsx)(oS,{className:`h-8 w-[200px] text-[12.5px]`,"aria-label":`Agent version`,children:(0,j.jsx)(rS,{})}),(0,j.jsxs)(lS,{children:[(0,j.jsx)(dS,{value:KA,children:n.latestVersionNumber===null?`Latest`:`Latest (v${n.latestVersionNumber})`}),n.versions.map(e=>(0,j.jsxs)(dS,{value:e.id,children:[`v`,e.versionNumber]},e.id))]})]})]}),l.map(t=>{let n=e.value?.variables?.[t.name],r=typeof n==`string`?n:``,i=`cs-agent-var-${t.name}`,a=e.missing===t.name;return(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsxs)(`label`,{htmlFor:i,className:`text-[12px] font-medium`,children:[t.label,t.required?(0,j.jsx)(`span`,{className:`text-muted-foreground`,children:` · required`}):null]}),t.options&&t.options.length>0?(0,j.jsxs)(nS,{value:r,onValueChange:e=>u(t.name,e),children:[(0,j.jsx)(oS,{id:i,className:`h-8 text-[12.5px]`,"aria-invalid":a||void 0,children:(0,j.jsx)(rS,{placeholder:`Choose…`})}),(0,j.jsx)(lS,{children:t.options.map(e=>(0,j.jsx)(dS,{value:e,children:e},e))})]}):t.variable.customComponent?.type===`textarea`?(0,j.jsx)(xw,{id:i,rows:2,value:r,onChange:e=>u(t.name,e.target.value),placeholder:t.hint??``,"aria-invalid":a||void 0}):(0,j.jsx)(lw,{id:i,value:r,onChange:e=>u(t.name,e.target.value),placeholder:t.hint??``,"aria-invalid":a||void 0}),a?(0,j.jsx)(`p`,{className:`text-[12px] text-destructive`,children:`Fill this in to use the agent`}):null]},t.name)})]}):null]})}function QA(e,t){if(!e||!t)return null;for(let n of $E(XA(e.variables))){if(!n.required)continue;let e=t.variables?.[n.name];if(typeof e!=`string`||!e.trim())return n.name}return null}var $A={instructions:`Instructions`,skills:`Skills`,tools:`Tools`};function ej(e){let t=e.loaded.map(e=>e.part===`instructions`?`${$A.instructions} ${e.loaded===1?`✓`:`—`}`:`${$A[e.part]} ${e.loaded}/${e.total}`);return`${e.name}${e.versionNumber===null?``:` v${e.versionNumber}`} · ${t.join(` · `)}`}function tj(e){let{agent:t}=e,n=EE(),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(!1),[s,c]=(0,_.useState)(null),[l,u]=(0,_.useState)(null);(0,_.useEffect)(()=>{if(!r)return;let n=!0;return e.transport.call(`agentAccess`).then(e=>n&&u(e)).catch(()=>void 0),t&&e.transport.call(`agentDetails`,t.agentId).then(e=>{n&&e.latestVersionId&&e.latestVersionNumber!==null&&c({id:e.latestVersionId,number:e.latestVersionNumber})}).catch(()=>void 0),()=>{n=!1}},[r,t,e.transport]);let d=async(t,r)=>{try{await e.transport.call(`setAgent`,e.sessionId,t),n(r),e.onChange()}catch(e){n(`That didn't change: ${e instanceof Error?e.message:String(e)}`)}},f=t&&s&&t.versionNumber!==null&&s.number>t.versionNumber?s:null,p=!t||t.loaded.every(e=>e.loaded===e.total),m=l?.signedIn??!1;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(qC,{open:r,onOpenChange:i,children:[(0,j.jsx)(JC,{asChild:!0,children:(0,j.jsxs)(`button`,{type:`button`,className:Z(`cs-agent-chip`,t?`cs-agent-chip--set`:`cs-agent-chip--none`,!p&&`cs-agent-chip--partial`),"data-testid":`cs-agent-chip`,"aria-label":t?`AI Matrx agent: ${t.name}`:`Add an AI Matrx agent`,children:[t?ej(t):`No agent`,f?(0,j.jsx)(`span`,{className:`cs-agent-chip-dot`,"aria-label":`Update available`}):null,(0,j.jsx)(bE,{size:12,className:`ml-1 inline shrink-0`})]})}),(0,j.jsxs)(nw,{align:`end`,className:`w-[320px]`,children:[t?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(ow,{className:`truncate`,children:[t.name,t.versionNumber===null?``:` · v${t.versionNumber}`]}),(0,j.jsxs)(`div`,{className:`cs-agent-parts`,children:[t.blockDue?(0,j.jsx)(`p`,{className:`text-[12px] text-muted-foreground`,children:`Sent with your next message`}):null,(0,j.jsx)(nj,{title:`Skills`,items:t.skills??[]}),(0,j.jsx)(nj,{title:`Tools`,items:t.tools??[]}),t.unavailable.length>0?(0,j.jsx)(nj,{title:`Not loaded`,items:t.unavailable.map(e=>`${e.name} — ${e.reason}`)}):null]}),(0,j.jsx)(sw,{})]}):null,m?(0,j.jsxs)(j.Fragment,{children:[f&&t?(0,j.jsxs)(rw,{onSelect:()=>void d({agentId:t.agentId,versionId:f.id,variables:t.variables??{}},`The next message uses ${t.name} v${f.number}.`),children:[`Update to v`,f.number]}):null,(0,j.jsx)(rw,{onSelect:()=>o(!0),children:t?`Change agent…`:`Choose agent…`}),t?(0,j.jsx)(rw,{onSelect:()=>void d(null,`The next message runs without an agent.`),children:`Remove agent`}):null]}):l?(0,j.jsx)(`p`,{className:`px-2 py-1.5 text-[12px] text-muted-foreground`,children:GA}):null]})]}),(0,j.jsx)(rj,{transport:e.transport,open:a,onOpenChange:o,title:t?`Change agent`:`Choose an agent`,action:`Use this agent`,onConfirm:e=>d(e,`The next message uses the new agent.`)})]})}function nj({title:e,items:t}){return(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`p`,{className:`text-[11.5px] font-medium text-muted-foreground`,children:[e,` · `,t.length]}),t.length>0?(0,j.jsx)(`ul`,{className:`cs-agent-part-list`,children:t.map(e=>(0,j.jsx)(`li`,{className:`truncate`,title:e,children:e},e))}):null]})}function rj(e){let[t,n]=(0,_.useState)(null),[r,i]=(0,_.useState)(null),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(!1);(0,_.useEffect)(()=>{e.open&&(n(null),o(null))},[e.open]);let l=async()=>{if(!t)return;let n=QA(r,t);if(o(n),!n){c(!0);try{await e.onConfirm(t),e.onOpenChange(!1)}finally{c(!1)}}};return(0,j.jsx)(GS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(iC,{className:`max-w-[480px]`,children:[(0,j.jsx)(aC,{children:(0,j.jsx)(sC,{children:e.title})}),(0,j.jsx)(ZA,{transport:e.transport,open:e.open,value:t,onChange:e=>{n(e),o(null)},missing:a,onDetails:i}),(0,j.jsxs)(oC,{children:[(0,j.jsx)(__,{type:`button`,variant:`ghost`,onClick:()=>e.onOpenChange(!1),children:`Cancel`}),t?(0,j.jsx)(__,{type:`button`,disabled:s,onClick:()=>void l(),children:e.action}):null]})]})})}function ij(e,t,n){try{let r=localStorage.getItem(e);return t.includes(r??``)?r:n}catch{return n}}function aj(e,t){try{localStorage.setItem(e,t)}catch{}}function oj({children:e,action:t}){return(0,j.jsxs)(`div`,{"data-cs-section-label":!0,className:`flex h-8 items-center justify-between px-3 pt-3`,children:[(0,j.jsx)(`span`,{className:`text-[12px] font-medium text-muted-foreground`,children:e}),t]})}function sj({children:e}){return(0,j.jsx)(`div`,{className:`truncate px-4 pb-0.5 pt-2.5 text-[12px] font-medium text-muted-foreground`,children:e})}function cj(e){let[t,n]=(0,_.useState)(e.initial),r=(0,_.useRef)(!1),i=t=>{r.current||(r.current=!0,e.onDone(t))};return(0,j.jsx)(`input`,{autoFocus:!0,value:t,onChange:e=>n(e.target.value),onFocus:e=>e.currentTarget.select(),onKeyDown:e=>{e.key===`Enter`&&i(t),e.key===`Escape`&&i(null)},onBlur:()=>i(t),"aria-label":`New name for this chat`,className:`cs-rename-input`})}function lj(e){return e.kind===`session`&&e.session?`#s/${e.session.id}`:e.providerSessionId?`#d/${e.provider}/${e.providerSessionId}`:``}function uj(e){let t=GT(),n=EE(),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(!1),{entry:s}=e;return(0,j.jsxs)(Tb,{children:[(0,j.jsx)(Eb,{asChild:!0,children:(0,j.jsxs)(`div`,{className:Z(`cs-row group`,e.active&&`cs-row--active`,a&&`cs-row--menu`),"data-hidden":s.hidden||void 0,"data-cs-row":s.key,"data-cs-target":lj(s),"data-cs-provider":s.provider,"data-cs-title":s.title,"data-cs-live":e.live?`true`:void 0,"data-cs-active":e.active?`true`:void 0,children:[(0,j.jsx)(`button`,{type:`button`,onClick:e.onSelect,className:`cs-row__hit`,"aria-current":e.active?`true`:void 0,"aria-label":s.title,title:s.title===s.originalTitle?s.title:`${s.title}\n(${s.originalTitle})`}),(0,j.jsx)(`span`,{className:`pointer-events-none mt-0.5 shrink-0`,children:e.live?(0,j.jsx)(lE,{size:16,className:`text-primary`}):(0,j.jsx)(fE,{provider:s.provider,size:16})}),(0,j.jsxs)(`span`,{className:`cs-row__body`,children:[r?(0,j.jsx)(`span`,{className:`pointer-events-auto relative z-10 block`,children:(0,j.jsx)(cj,{initial:s.title,onDone:e=>{if(i(!1),e===null||e.trim()===s.title)return;let r=e.trim()===``||e.trim()===s.originalTitle?null:e;t.setPreference(s.key,{title:r}).catch(e=>n(`The new name didn't save: ${e instanceof Error?e.message:String(e)}`))}})}):(0,j.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,j.jsx)(`span`,{className:`min-w-0 truncate text-[13px] font-medium leading-5`,children:s.title}),s.pinned?(0,j.jsx)(hE,{size:11,className:`shrink-0 text-muted-foreground`,"aria-label":`Pinned`}):null]}),(0,j.jsx)(`span`,{className:`block truncate text-[11.5px] leading-4 text-muted-foreground`,children:e.meta}),e.snippet?(0,j.jsx)(`span`,{className:`cs-row__snippet`,children:e.snippet}):null]}),r?null:(0,j.jsxs)(`span`,{className:`cs-row__actions`,children:[e.takeover,(0,j.jsxs)(qC,{open:a,onOpenChange:o,children:[(0,j.jsx)(JC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,"aria-label":`More for ${s.title}`,title:`More`,children:(0,j.jsx)(mE,{size:15})})}),(0,j.jsx)(nw,{align:`start`,className:`w-60`,onCloseAutoFocus:e=>e.preventDefault(),children:(0,j.jsx)(AE,{entry:s,variant:`dropdown`,onRename:()=>i(!0)})})]})]})]})}),(0,j.jsx)(Nb,{className:`w-60`,onCloseAutoFocus:e=>e.preventDefault(),children:(0,j.jsx)(AE,{entry:s,variant:`context`,onRename:()=>i(!0)})})]})}function dj(){return(0,j.jsx)(`div`,{className:`space-y-1.5 px-3 py-2`,"aria-hidden":`true`,children:[0,1,2].map(e=>(0,j.jsx)(`div`,{className:`cs-skeleton h-9 rounded-lg`},e))})}function fj({text:e,query:t}){let n=t.trim().toLowerCase();if(!n)return e;let r=e.toLowerCase().indexOf(n);return r<0?e:(0,j.jsxs)(j.Fragment,{children:[e.slice(0,r),(0,j.jsx)(`mark`,{className:`cs-mark`,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]})}var pj={query:``,loading:!1,error:null,hits:[],scanned:0,total:0,nextCursor:null};function mj(e){let t=GT(),[n,r]=(0,_.useState)(pj),i=(0,_.useRef)(e);i.current=e;let a=(0,_.useCallback)(async(e,n,a)=>{r(t=>({...a?t:pj,query:e,loading:!0,error:null}));try{let o=await t.search(e,n);if(i.current.trim()!==e)return;r(t=>({query:e,loading:!1,error:null,hits:a?[...t.hits,...o.hits]:o.hits,scanned:(a?t.scanned:n)+o.scanned,total:o.total,nextCursor:o.nextCursor}))}catch(t){if(i.current.trim()!==e)return;r(e=>({...e,loading:!1,error:t instanceof Error?t.message:String(t)}))}},[t]);return(0,_.useEffect)(()=>{let t=e.trim();if(t.length<2){r(pj);return}let n=setTimeout(()=>void a(t,0,!1),350);return()=>clearTimeout(n)},[e,a]),[n,(0,_.useCallback)(()=>{n.nextCursor!==null&&!n.loading&&a(n.query,n.nextCursor,!0)},[a,n.nextCursor,n.loading,n.query])]}function hj(e){return{provider:e.provider,providerSessionId:e.providerSessionId,cwd:e.cwd,title:e.title,updatedAt:e.updatedAt,source:null,activeElsewhere:null}}function gj(e){let t=GT(),n=KT(),r=JT(),[i,a]=(0,_.useState)(``),[o,s]=mj(i),[c,l]=(0,_.useState)(()=>ij(`coding-sessions.group`,[`date`,`folder`],`date`)),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(null),[m,h]=(0,_.useState)(null),g=n.preferences,v=n.sessions.data,y=e=>{let t=n.runs[e];return t!==void 0&&!gT(t.status)},{ours:b,others:x,hiddenCount:S}=(0,_.useMemo)(()=>{let e=v.map(e=>PT(e,g)),t=new Set(v.map(e=>e.providerSessionId).filter(Boolean)),r=n.discovered.data.filter(e=>!t.has(e.providerSessionId)).map(e=>FT(e,g));return{ours:e,others:r,hiddenCount:[...e,...r].filter(e=>e.hidden).length}},[v,n.discovered.data,g]),C=e=>u||!e.hidden,w=[...b,...x].filter(e=>e.pinned&&C(e)).sort(HT),T=b.filter(e=>!e.pinned&&e.session&&y(e.session.id)&&C(e)),E=b.filter(e=>!e.pinned&&!(e.session&&y(e.session.id))&&C(e)),D=x.filter(e=>!e.pinned&&C(e)),O=e=>{l(e),aj(`coding-sessions.group`,e)},k=t=>{t.session?e.select({kind:`session`,id:t.session.id}):t.providerSessionId&&e.select({kind:`discovered`,provider:t.provider,id:t.providerSessionId})},A=t=>t.session?e.selection.kind===`session`&&e.selection.id===t.session.id:e.selection.kind===`discovered`&&e.selection.id===t.providerSessionId,M=async n=>{p(n.providerSessionId),h(null);try{let r=await t.takeover(n);e.select({kind:`session`,id:r.id})}catch(e){h({id:n.providerSessionId,message:e instanceof Error?e.message:String(e)})}finally{p(null)}},N=(e,t)=>{let i=e.session?y(e.session.id):!1,a=e.session?n.runs[e.session.id]:void 0,o=e.discovered,s;if(i)s=`${pT[e.provider]} is working…`;else if(o?.activeElsewhere)s=(0,j.jsxs)(`span`,{className:`cs-live-elsewhere`,children:[(0,j.jsx)(`span`,{className:`cs-live-dot`,"aria-hidden":`true`}),`Running in `,pT[e.provider]]});else{let n=a?a.status===`failed`?`Failed · `:a.status===`stopped`?`Stopped · `:``:``,i=e.cwd?XT(e.cwd):`unknown folder`;s=`${n}${e.kind===`discovered`?`${pT[e.provider]} · `:``}${c===`folder`&&!t?``:`${i} · `}${YT(e.updatedAt,r)}`}return(0,j.jsxs)(`div`,{children:[(0,j.jsx)(uj,{entry:e,active:A(e),onSelect:()=>k(e),live:i,meta:s,snippet:t?.snippet,takeover:o?.cwd?(0,j.jsxs)(`button`,{type:`button`,className:`cs-takeover-chip`,onClick:()=>o.activeElsewhere?k(e):void M(o),title:o.activeElsewhere?o.activeElsewhere.message:`Continue this chat here`,disabled:f===o.providerSessionId,children:[f===o.providerSessionId?(0,j.jsx)(lE,{size:11}):null,`Take over`]}):null}),m&&o&&m.id===o.providerSessionId?(0,j.jsx)(`p`,{className:`mx-4 mb-1 text-[11.5px] text-destructive`,children:m.message}):null]},e.key)},P=e=>BT(e,c,r).map(e=>(0,j.jsxs)(`div`,{role:`group`,"aria-label":e.label,children:[(0,j.jsx)(sj,{children:e.label}),e.entries.map(e=>N(e))]},e.label)),F=i.trim().length>0,I=F?[...b,...x].filter(e=>VT(e,i)).sort(HT):[],L=new Set(I.map(e=>e.key)),ee=new Map([...b,...x].map(e=>[e.key,e])),te=o.hits.filter(e=>!L.has(mT(e.provider,e.providerSessionId))),ne=t=>{let n=ee.get(mT(t.provider,t.providerSessionId));if(n){k(n);return}e.onFound(hj(t)),e.select({kind:`discovered`,provider:t.provider,id:t.providerSessionId})},re=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(oj,{children:`Chats`}),I.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-muted-foreground`,children:`No listed chat has that in its name or folder.`}):I.map(e=>N(e,{query:i})),(0,j.jsx)(oj,{children:`In conversations`}),i.trim().length<2?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-muted-foreground`,children:`Type at least two letters to search what was said.`}):(0,j.jsxs)(j.Fragment,{children:[te.map(t=>{let n=ee.get(mT(t.provider,t.providerSessionId)),r=n??FT(hj(t),g);return(0,j.jsx)(`div`,{onClickCapture:n?void 0:()=>e.onFound(hj(t)),children:N(r,{query:i,snippet:t.snippet?(0,j.jsx)(fj,{text:t.snippet,query:i}):void 0})},`hit:${r.key}`)}),(0,j.jsx)(`div`,{className:`px-4 py-2 text-[11.5px] leading-4 text-muted-foreground`,role:`status`,"aria-live":`polite`,children:o.error?(0,j.jsxs)(`span`,{className:`text-destructive`,children:[`Search stopped: `,o.error]}):o.loading?(0,j.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,j.jsx)(lE,{size:12}),` Searching your chats…`]}):o.query?(0,j.jsxs)(j.Fragment,{children:[te.length===0&&o.hits.length===0?`Nothing found. `:null,o.nextCursor===null?`Searched all ${o.total.toLocaleString()} chats on this computer.`:`Searched the ${o.scanned.toLocaleString()} most recent of ${o.total.toLocaleString()} chats.`,o.nextCursor===null?null:(0,j.jsx)(`button`,{type:`button`,className:`cs-link ml-1`,onClick:s,children:`Search older chats`})]}):null})]})]}),ie=(0,j.jsxs)(j.Fragment,{children:[w.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(oj,{children:`Pinned`}),w.map(e=>N(e))]}):null,T.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(oj,{children:`Running`}),T.map(e=>N(e))]}):null,(0,j.jsx)(oj,{children:`Recent`}),n.sessions.loading&&n.sessions.loadedAt===null?(0,j.jsx)(dj,{}):n.sessions.error?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-destructive`,children:n.sessions.error}):E.length===0?T.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] leading-5 text-muted-foreground`,children:`Sessions you start or take over here will appear here.`}):null:E.map(e=>N(e)),(0,j.jsx)(oj,{action:(0,j.jsxs)(`span`,{className:`flex items-center gap-0.5`,children:[(0,j.jsxs)(qC,{children:[(0,j.jsx)(JC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button cs-icon-button--text`,"aria-label":`How to list your other chats`,children:c===`date`?`By date`:`By folder`})}),(0,j.jsxs)(nw,{align:`end`,className:`w-52`,children:[(0,j.jsx)(ow,{children:`Group your other chats`}),(0,j.jsxs)(XC,{value:c,onValueChange:e=>O(e),children:[(0,j.jsx)(aw,{value:`date`,children:`By date`}),(0,j.jsx)(aw,{value:`folder`,children:`By folder`})]}),(0,j.jsx)(sw,{}),(0,j.jsx)(rw,{onSelect:()=>d(e=>!e),children:u?`Leave hidden chats out`:`Show hidden chats${S?` (${S})`:``}`})]})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void t.refreshDiscovered(),"aria-label":`Look again for your other chats`,title:`Look again`,children:n.discovered.loading?(0,j.jsx)(lE,{size:13}):(0,j.jsx)(rE,{size:13})})]}),children:`Your other chats`}),n.discovered.loading&&n.discovered.loadedAt===null?(0,j.jsx)(dj,{}):n.discovered.error?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-destructive`,children:n.discovered.error}):D.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] leading-5 text-muted-foreground`,children:x.length>0?`Every chat found here is pinned or hidden.`:`No other Claude Code or Codex chats were found on this computer.`}):(0,j.jsxs)(j.Fragment,{children:[P(D),n.discovered.data.length>=n.discoveredLimit?(0,j.jsx)(`div`,{className:`px-3 pt-2`,children:(0,j.jsxs)(__,{variant:`ghost`,size:`sm`,className:`w-full text-muted-foreground`,onClick:()=>void t.showMoreDiscovered(),disabled:n.discovered.loading,children:[n.discovered.loading?(0,j.jsx)(lE,{size:13}):null,`Show older chats`]})}):null]}),u?null:S>0?(0,j.jsxs)(`button`,{type:`button`,className:`cs-link mx-4 mt-3 text-[11.5px]`,onClick:()=>d(!0),children:[S,` hidden `,S===1?`chat`:`chats`,` — show`]}):null]});return(0,j.jsxs)(`aside`,{className:`cs-sidebar flex h-full shrink-0 flex-col border-r border-border bg-sidebar-background`,style:{width:e.width},"aria-label":`Sessions`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-4 pb-2 pt-3.5`,children:[(0,j.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`cs-app-mark`,"aria-hidden":`true`}),(0,j.jsx)(`span`,{className:`truncate text-[14px] font-semibold tracking-[-0.01em]`,children:`Coding sessions`})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:e.onCollapse,"aria-label":`Hide the sidebar (⌘B)`,title:`Hide sidebar ⌘B`,children:(0,j.jsx)(yE,{size:15})})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5 px-3 pb-1`,children:[(0,j.jsxs)(__,{className:`w-full justify-start gap-2`,variant:`outline`,size:`sm`,onClick:e.onNew,children:[(0,j.jsx)(QT,{size:15}),`New session`,(0,j.jsx)(`kbd`,{className:`cs-kbd ml-auto`,children:`⌥⌘N`})]}),(0,j.jsxs)(`div`,{className:`cs-search`,children:[(0,j.jsx)(pE,{size:14,className:`cs-search__icon`}),(0,j.jsx)(`input`,{ref:e.searchRef,type:`search`,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{if(e.key===`Escape`&&(i?a(``):e.currentTarget.blur(),e.preventDefault()),e.key===`Enter`){let e=I[0],t=te[0];e?k(e):t&&ne(t)}},placeholder:`Search chats`,"aria-label":`Search chats by name, folder or what was said`,spellCheck:!1,className:`cs-search__input`}),i?(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button cs-search__clear`,onClick:()=>a(``),"aria-label":`Clear search`,children:(0,j.jsx)(SE,{size:13})}):(0,j.jsx)(`kbd`,{className:`cs-search__kbd`,children:`⌘K`})]})]}),(0,j.jsx)(`nav`,{className:`min-h-0 flex-1 overflow-y-auto pb-3`,children:F?re:ie}),e.footer]})}function _j(){let e=[],t=null,n=0,r=null,i=new Map;function a(t,n,r){let i={...t.message,parts:n,status:r??t.message.status};t.message=i;let a=e.findIndex(e=>e.id===i.id);a>=0&&(e[a]=i)}function o(){if(t)return t;n+=1;let r=S({id:`turn-${n}-${e.length}`,role:`assistant`,status:`streaming`});return e.push(r),t={message:r,index:new Map},t}function s(e,t){let n=o(),r=[...n.message.parts],i=n.index.get(e);i===void 0?(n.index.set(e,r.length),r.push(t(null))):r[i]=t(r[i]??null),a(n,r)}function c(e){if(!t)return;let n=t;a(n,n.message.parts.map(t=>{if(t.type===`reasoning`&&t.state===`streaming`)return{...t,state:`done`};if(t.type===`tool`&&t.state===`input-available`&&e!==`streaming`){if(e===`cancelled`)return{...t,state:`output-error`,errorText:`Stopped before this finished.`};if(e===`error`)return{...t,state:`output-error`,errorText:`The run ended before this finished.`}}return t}),e),t=null}let l={apply(n){switch(n.kind){case`user`:c(`complete`),e.push(S({id:`user-${n.id}`,role:`user`,parts:[{type:`text`,text:n.text}],status:`complete`,metadata:n.at?{createdAt:n.at}:void 0}));return;case`text-delta`:s(n.id,e=>e&&e.type===`text`?{type:`text`,text:e.text+n.text}:{type:`text`,text:n.text});return;case`text`:s(n.id,()=>({type:`text`,text:n.text}));return;case`reasoning`:s(n.id,()=>({type:`reasoning`,text:n.text,state:`done`}));return;case`tool-call`:{let r=OT(n.name,n.input),a=r?[{toolName:n.name,message:r,percent:null,at:null}]:[];s(n.id,e=>e&&e.type===`tool`?{...e,input:n.input,progress:a}:{type:`tool`,toolCallId:n.id,toolName:n.name,state:`input-available`,input:n.input,output:null,errorText:null,progress:a,delegated:!1});let o=t;if(o){let t=o.index.get(n.id),r=e.findIndex(e=>e.id===o.message.id);t!==void 0&&r>=0&&i.set(n.id,{messageIndex:r,partIndex:t})}return}case`tool-result`:{let r=i.get(n.id);if(!r){s(n.id,()=>({type:`tool`,toolCallId:n.id,toolName:`Tool`,state:n.isError?`output-error`:`output-available`,input:null,output:n.isError?null:n.output,errorText:n.isError?n.output||`The tool reported an error.`:null,progress:[],delegated:!1}));return}let a=e[r.messageIndex],o=a?.parts[r.partIndex];if(!a||!o||o.type!==`tool`)return;let c=n.isError?{...o,state:`output-error`,errorText:n.output||`The tool reported an error.`,output:null}:{...o,state:`output-available`,output:n.output},l=[...a.parts];l[r.partIndex]=c;let u={...a,parts:l};e[r.messageIndex]=u,t&&t.message.id===u.id&&(t.message=u);return}case`usage`:r={usage:n.usage,costUsd:n.costUsd};return;case`notice`:s(n.id,()=>({type:`notice`,level:n.level===`warning`?`medium`:`info`,code:null,userMessage:n.text,remedy:null}));return;case`error`:{let e=xT(n.text);if(t?.message.parts.some(t=>t.type===`error`&&t.message.trim()===e.trim()))return;s(n.id,()=>({type:`error`,errorType:`provider`,code:null,message:e,userMessage:e,recoverable:!0,remedy:null}));return}}},applyAll(e){for(let t of e)l.apply(t)},beginTurn(){o()},endTurn(n,r){n===`failed`&&r&&l.apply({kind:`error`,id:`run-error-${e.length}`,text:r}),n===`stopped`&&t&&l.apply({kind:`notice`,id:`run-stopped-${e.length}`,level:`info`,text:`You stopped this run.`}),c(n===`stopped`?`cancelled`:n===`failed`?`error`:`complete`)},messages(){return e.slice()},lastUsage(){return r}};return l}var vj=60,yj=25165824;function bj(e){return{data:e,loading:!1,error:null,loadedAt:null}}function xj(e){return e instanceof Error?e.message:String(e)}var Sj=class{sessionId;client;thread;builder=_j();messages=[];listeners=new Set;seqMark=0;pending=[];activeRunId=null;activity=null;state={loading:!0,unavailable:null,truncated:!1};maxBytes=yj;constructor(e,t){this.sessionId=e,this.client=t,this.thread=fT({getSnapshot:()=>({messages:this.messages,status:this.status(),conversationId:this.sessionId,ephemeral:!1}),features:{surface:{sendWhileBusy:!0}},subscribe:e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),onSubmit:async e=>{await this.client.send(this.sessionId,e.text)},onCancel:async()=>{let e=this.client.getState().runs[this.sessionId];e&&!gT(e.status)&&await this.client.stop(e.runId)}})}status(){let e=this.client.getState().runs[this.sessionId];return e?e.status===`starting`?`submitted`:e.status===`running`?`streaming`:`idle`:`idle`}notify(){this.messages=this.builder.messages();for(let e of this.listeners)e()}async loadEarlier(){this.state.truncated&&!this.state.loadingEarlier&&(this.maxBytes*=4,this.state={...this.state,loadingEarlier:!0},this.notify(),await this.load(!0))}async load(e=!1){e||(this.state={loading:!0,unavailable:null,truncated:!1},this.notify());try{let e=await this.client.transport.call(`history`,this.sessionId,{maxBytes:this.maxBytes});this.builder=_j(),this.builder.applyAll(e.items),this.seqMark=e.seq;let t=this.client.getState().runs[this.sessionId];t&&!gT(t.status)?(this.activeRunId=t.runId,this.builder.beginTurn()):this.builder.endTurn(`completed`),this.state={loading:!1,unavailable:e.unavailable,truncated:e.truncated};let n=this.pending;this.pending=[];for(let e of n)this.onEvent(e.event)}catch(e){this.state={loading:!1,unavailable:xj(e),truncated:!1}}this.notify()}onEvent(e){if(this.state.loading){e.type===`item`&&this.pending.push({seq:e.seq,event:e});return}if(e.type===`item`){if(e.seq<=this.seqMark)return;this.seqMark=e.seq,this.builder.apply(e.item),e.item.kind===`user`&&(this.activeRunId=e.runId,this.builder.beginTurn()),this.activity=Cj(this.activity,e.item),this.notify();return}if(e.type===`run`){let t=e.run;gT(t.status)&&(this.activity=null,this.activeRunId===t.runId?(this.builder.endTurn(t.status,t.error),this.activeRunId=null):t.status===`failed`&&t.error&&this.builder.endTurn(`failed`,t.error)),this.notify()}}};function Cj(e,t){switch(t.kind){case`user`:return`Thinking…`;case`text-delta`:return`Writing…`;case`text`:case`reasoning`:case`tool-result`:return`Thinking…`;case`tool-call`:{let e=OT(t.name,t.input);return`${TT(t.name)}${e?` — ${e}`:``}`}default:return e}}var wj=class{transport;state;listeners=new Set;transcripts=new Map;finishedListeners=new Set;onRunFinished=e=>(this.finishedListeners.add(e),()=>{this.finishedListeners.delete(e)});constructor(e){this.transport=e,this.state={connection:e.status(),providers:bj([]),sessions:bj([]),discovered:bj([]),folders:bj([]),runs:{},preferences:{},discoveredLimit:vj},e.onStatus(e=>{let t=this.state.connection.state===`open`;this.set({connection:e}),e.state===`open`&&!t&&this.refreshAll()}),e.subscribe(e=>this.onEvent(e))}getState=()=>this.state;subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});set(e){this.state={...this.state,...e};for(let e of this.listeners)e()}onEvent(e){if(e.type===`session`){let t=this.state.sessions.data.filter(t=>t.id!==e.session.id);t.unshift(e.session),t.sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt)),this.set({sessions:{...this.state.sessions,data:t}})}else if(e.type===`run`){let t=this.state.runs[e.run.sessionId];if(this.set({runs:{...this.state.runs,[e.run.sessionId]:e.run}}),gT(e.run.status)&&(!t||t.runId!==e.run.runId||!gT(t.status))){let t=this.state.sessions.data.find(t=>t.id===e.run.sessionId)??null;for(let n of this.finishedListeners)n({run:e.run,session:t})}}else if(e.type===`preferences`){this.set({preferences:e.preferences});return}let t=e.type===`session`?e.session.id:e.type===`run`?e.run.sessionId:e.sessionId;this.transcripts.get(t)?.onEvent(e)}async load(e,t){this.set({[e]:{...this.state[e],loading:!0,error:null}});try{let n=await t();this.set({[e]:{data:n,loading:!1,error:null,loadedAt:Date.now()}})}catch(t){this.set({[e]:{...this.state[e],loading:!1,error:xj(t)}})}}refreshProviders=()=>this.load(`providers`,()=>this.transport.call(`providers`));refreshDiscovered=()=>this.load(`discovered`,()=>this.transport.call(`discoverSessions`,{limit:this.state.discoveredLimit}));showMoreDiscovered=async()=>{this.set({discoveredLimit:this.state.discoveredLimit+vj}),await this.refreshDiscovered()};refreshPreferences=async()=>{try{this.set({preferences:await this.transport.call(`chatPreferences`)})}catch{}};setPreference=async(e,t)=>{let n=this.state.preferences,r={...n[e],...t};this.set({preferences:{...n,[e]:r}});try{this.set({preferences:await this.transport.call(`setChatPreference`,e,t)})}catch(e){throw this.set({preferences:n}),e}};search(e,t=0){return this.transport.call(`searchChats`,e,{cursor:t,limit:30})}readRawTranscript(e,t){return this.transport.call(`readRawTranscript`,e,t)}openFolder(e,t){return this.transport.call(`openFolder`,e,t)}setSessionOptions(e,t){return this.transport.call(`setSessionOptions`,e,t)}refreshFolders=()=>this.load(`folders`,()=>this.transport.call(`recentFolders`));refreshSessions=async()=>{await this.load(`sessions`,()=>this.transport.call(`listSessions`));let e={};await Promise.all(this.state.sessions.data.map(async t=>{let n=await this.transport.call(`listRuns`,t.id).catch(()=>[]),r=n[n.length-1];r&&(e[t.id]=r)})),this.set({runs:{...e,...this.pickLive()}})};pickLive(){let e={};for(let[t,n]of Object.entries(this.state.runs))gT(n.status)||(e[t]=n);return e}refreshAll=async()=>{await Promise.all([this.refreshSessions(),this.refreshProviders(),this.refreshDiscovered(),this.refreshFolders(),this.refreshPreferences()]);for(let e of this.transcripts.values())e.load()};transcript(e){let t=this.transcripts.get(e);return t||(t=new Sj(e,this),this.transcripts.set(e,t),t.load()),t}async readPreview(e,t,n){try{let r=await this.transport.call(`readTranscript`,e,t,n?{maxBytes:n}:void 0),i=_j();return i.applyAll(r.items),i.endTurn(`completed`),{loading:!1,messages:i.messages(),unavailable:r.unavailable,truncated:r.truncated}}catch(e){return{loading:!1,messages:[],unavailable:xj(e),truncated:!1}}}start(e){return this.transport.call(`start`,e)}takeover(e,t){return this.transport.call(`takeover`,{provider:e.provider,providerSessionId:e.providerSessionId,cwd:e.cwd??``,title:e.title,...t?{agent:t}:{}})}send(e,t){return this.transport.call(`send`,e,t)}stop(e){return this.transport.call(`stop`,e)}},Tj=[`agent`,`folder`,`prompt`];async function Ej(e){let t={},n=e.provider;if(n&&(!n.installed||!n.loggedIn)&&(t.agent=`${n.problem??`${n.label} can't run here yet.`} ${n.fix??``}`.trim()),!e.folder.trim())t.folder=`Choose a folder, or type one, for it to work in.`;else try{let n=await e.checkFolder(e.folder);n.exists?n.isDirectory||(t.folder=`That path is a file, not a folder.`):(t.folder=`That folder doesn't exist on this computer.`,t.createFolder=n.path)}catch(e){t.folder=`Couldn't check that folder: ${e instanceof Error?e.message:String(e)}`}return e.prompt.trim()||(t.prompt=`Tell it what to do first.`),t}function Dj(e){return Tj.find(t=>e[t]!==void 0)??null}function Oj({transport:e,children:t}){let[n]=(0,_.useState)(()=>new wj(e));return(0,_.useEffect)(()=>{e.status().state===`open`&&n.refreshAll()},[n,e]),(0,j.jsx)(WT.Provider,{value:n,children:t})}function kj(){if(typeof location>`u`)return{kind:`none`};let[e,t,n]=location.hash.replace(/^#/,``).split(`/`);return e===`s`&&t?{kind:`session`,id:t}:e===`d`&&(t===`claude`||t===`codex`)&&n?{kind:`discovered`,provider:t,id:n}:{kind:`none`}}function Aj(e){if(typeof history>`u`)return;let t=e.kind===`session`?`#s/${e.id}`:e.kind===`discovered`?`#d/${e.provider}/${e.id}`:``;history.replaceState(null,``,`${location.pathname}${location.search}${t}`)}function jj(){try{let e=localStorage.getItem(`coding-sessions.theme`);return e===`light`||e===`dark`?e:`system`}catch{return`system`}}function Mj(){let[e,t]=(0,_.useState)(jj);return(0,_.useEffect)(()=>{let t=typeof window.matchMedia==`function`?window.matchMedia(`(prefers-color-scheme: dark)`):null,n=()=>{let n=e===`dark`||e===`system`&&t?.matches===!0;document.documentElement.classList.toggle(`dark`,n),document.documentElement.setAttribute(`data-theme`,n?`dark`:`light`)};return n(),t?.addEventListener(`change`,n),()=>t?.removeEventListener(`change`,n)},[e]),[e,(0,_.useCallback)(e=>{t(e);try{localStorage.setItem(`coding-sessions.theme`,e)}catch{}},[])]}var Nj={starting:`Starting`,running:`Working`,completed:`Done`,stopped:`Stopped`,failed:`Failed`};function Pj({run:e}){if(!e)return null;let t=!gT(e.status);return(0,j.jsxs)(`span`,{className:Z(`cs-pill`,`cs-pill--${e.status}`),children:[t?(0,j.jsx)(`span`,{className:`cs-pill__dot`,"aria-hidden":`true`}):null,Nj[e.status]]})}function Fj(){let{connection:e}=KT();if(e.state===`open`)return null;let t=e.state===`closed`;return(0,j.jsxs)(`div`,{role:`status`,className:Z(`flex items-center gap-2 border-b px-4 py-2 text-[13px]`,t?`border-destructive/30 bg-destructive/10 text-destructive`:`border-border bg-muted/60 text-muted-foreground`),children:[t?(0,j.jsx)(nE,{size:15}):(0,j.jsx)(lE,{size:14}),(0,j.jsx)(`span`,{children:t?e.reason:`Connecting to the coding sessions host…`})]})}function Ij(e){let t=KT(),n=GT(),r={system:`light`,light:`dark`,dark:`system`},i={system:`Match system`,light:`Light`,dark:`Dark`};return(0,j.jsx)(`div`,{className:`border-t border-border px-3 py-2.5`,children:(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-wrap gap-1.5`,children:t.providers.loading&&t.providers.loadedAt===null?(0,j.jsx)(`span`,{className:`text-[11.5px] text-muted-foreground`,children:`Checking Claude Code and Codex…`}):t.providers.data.map(e=>{let t=e.lastProblem?_T(e.lastProblem.until):null,n=e.lastProblem?e.lastProblem.kind===`signed-out`?`· sign in again`:`· limit${t?` until ${t}`:``}`:null,r=e.problem?`${e.problem} ${e.fix??``}`.trim():[Uj(e)??e.label,e.plan,Wj(e)].filter(Boolean).join(` · `);return(0,j.jsxs)(`span`,{className:Z(`cs-provider-chip`,e.ready?``:`cs-provider-chip--problem`),title:n&&!e.problem?`${r} ${n}`:r,children:[(0,j.jsx)(fE,{provider:e.provider,size:13}),e.label,n?(0,j.jsx)(`span`,{className:`cs-provider-chip__note`,children:n}):null,e.ready?(0,j.jsx)(tE,{size:12}):(0,j.jsx)(nE,{size:12})]},e.provider)})}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void n.refreshProviders(),"aria-label":`Check Claude Code and Codex again`,title:`Check again`,children:t.providers.loading?(0,j.jsx)(lE,{size:13}):(0,j.jsx)(rE,{size:13})}),e.extra,(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>e.setTheme(r[e.theme]),"aria-label":`Theme: ${i[e.theme]}. Switch to ${i[r[e.theme]]}.`,title:`Theme: ${i[e.theme]}`,children:e.theme===`system`?(0,j.jsx)(sE,{size:14}):e.theme===`light`?(0,j.jsx)(aE,{size:14}):(0,j.jsx)(oE,{size:14})})]})})}function Lj(){let e=(0,_.useContext)(TE);return(0,_.useMemo)(()=>({notify(t){e(t.message)}}),[e])}function Rj(e,t,n=null){let r=GT(),[i,a]=(0,_.useState)(n);return(0,_.useEffect)(()=>{if(!e||!t){a(null);return}let n=!1,i=()=>r.transport.call(`sessionActivity`,e,t).then(e=>{n||a(e)}).catch(()=>void 0);i();let o=setInterval(i,1e4);return()=>{n=!0,clearInterval(o)}},[r,e,t]),i}function zj(e,t){let n=GT(),[r,i]=(0,_.useState)(null);return(0,_.useEffect)(()=>{let t=!1;return n.transport.call(`listRuns`,e).then(e=>{if(t)return;let n=0,r=null,a=null;for(let t of e)t.usage&&(n+=t.usage.inputTokens+t.usage.outputTokens+t.usage.cachedInputTokens),t.costUsd!==null&&(r=(r??0)+t.costUsd),a=t.billing??a;i(n>0||r!==null?{tokens:n,cost:r,billing:a,runs:e.length}:null)}).catch(()=>void 0),()=>{t=!0}},[n,e,t]),r}function Bj(e){return(0,j.jsxs)(qC,{children:[(0,j.jsx)(JC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button shrink-0`,"aria-label":`More for this chat`,title:`More`,children:(0,j.jsx)(mE,{size:16})})}),(0,j.jsxs)(nw,{align:`end`,className:`w-64`,onCloseAutoFocus:e=>e.preventDefault(),children:[e.onChanges?(0,j.jsxs)(rw,{onSelect:e.onChanges,children:[(0,j.jsx)(xE,{size:14}),e.changesOpen?`Hide changed files`:`Files this chat changed`]}):null,(0,j.jsx)(AE,{entry:e.entry,variant:`dropdown`,onRename:e.onRename})]})]})}function Vj(e){let t=GT(),n=(0,_.useContext)(TE),[r,i]=(0,_.useState)(e.entry.title);(0,_.useEffect)(()=>i(e.entry.title),[e.entry.title,e.renaming]);let a=(0,_.useRef)(null);if((0,_.useEffect)(()=>{if(!e.renaming)return;let t=setTimeout(()=>{let e=a.current;e&&document.activeElement!==e&&(e.focus(),e.select())},0);return()=>clearTimeout(t)},[e.renaming]),!e.renaming)return(0,j.jsx)(`h1`,{className:`truncate text-[15px] font-semibold leading-5 tracking-[-0.01em]`,title:e.entry.title===e.entry.originalTitle?e.entry.title:`${e.entry.title} (${e.entry.originalTitle})`,onDoubleClick:()=>e.setRenaming(!0),children:e.entry.title});let o=()=>{e.setRenaming(!1);let i=r.trim();if(i===e.entry.title)return;let a=i===``||i===e.entry.originalTitle?null:i;t.setPreference(e.entry.key,{title:a}).catch(e=>n(`The new name didn't save: ${e instanceof Error?e.message:String(e)}`))};return(0,j.jsx)(`input`,{ref:a,autoFocus:!0,value:r,onChange:e=>i(e.target.value),onFocus:e=>e.currentTarget.select(),onBlur:o,onKeyDown:t=>{t.key===`Enter`&&o(),t.key===`Escape`&&e.setRenaming(!1)},"aria-label":`New name for this chat`,className:`cs-rename-input !m-0 !h-6 !text-[15px] !font-semibold`})}function Hj(e){return(0,j.jsxs)(`p`,{className:`mx-auto mt-3 flex items-center gap-2 text-[12px] text-muted-foreground`,children:[`This chat is very long — showing its most recent part.`,(0,j.jsx)(`button`,{type:`button`,className:`cs-link`,onClick:e.onEarlier,disabled:e.loading,children:e.loading?`Reading…`:`Show earlier`})]})}function Uj(e){return e.version?`${e.label} ${e.version}${e.binary?` · ${e.binary.sourceLabel}`:``}`:null}function Wj(e){return e.binary?.newer?`Newer: ${e.binary.newer.version} ${e.binary.newer.sourceLabel}`:null}function Gj({session:e,changesOpen:t,setChangesOpen:n}){let r=GT(),i=KT(),a=(0,_.useContext)(TE),o=qT(e.id),s=i.runs[e.id],c=s!==void 0&&!gT(s.status),l=Lj(),u=i.providers.data.find(t=>t.provider===e.provider)??null,d=u&&(!u.installed||!u.loggedIn)?u:null,f=!d&&u?.lastProblem?u:null,p=s?.status===`failed`&&bT(s.error),[m,h]=(0,_.useState)(!1),[g,v]=(0,_.useState)(!1),y=Rj(e.origin===`takeover`&&!c?e.provider:null,e.providerSessionId),b=PT(e,i.preferences),x=o.thread.getSnapshot().messages,S=FE(x),C=zj(e.id,`${s?.runId??``}:${s?.status??``}`);(0,_.useEffect)(()=>{c||h(!1)},[c]);let w=async()=>{s&&(h(!0),await r.stop(s.runId).catch(()=>h(!1)))},T=t=>{r.setSessionOptions(e.id,{model:t.model,effort:t.effort}).then(()=>a(`The next message uses ${RE(t,u)}.`)).catch(e=>a(`That didn't save: ${e instanceof Error?e.message:String(e)}`))},E=C?`${si(C.tokens,{style:`compact`})} tokens${C.cost===null?``:` · ${ai(C.cost)}`}`:null,D=C?`${si(C.tokens)} tokens over ${C.runs} ${C.runs===1?`message`:`messages`} sent from here.`+(C.cost===null?``:C.billing===`subscription`?` ${ai(C.cost)} is what this would cost at API prices — it's covered by your ${u?.plan??``} plan.`.replace(` `,` `):` Billed ${ai(C.cost)} to your API key.`):``;return(0,j.jsxs)(`div`,{className:`flex min-w-0 flex-1`,children:[(0,j.jsxs)(`section`,{className:`flex min-w-0 flex-1 flex-col`,"aria-label":b.title,children:[(0,j.jsxs)(`header`,{className:`@container/header flex items-center gap-2 border-b border-border px-5 pt-2.5 pb-2.5`,children:[(0,j.jsx)(fE,{provider:e.provider,size:22}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1 overflow-hidden`,children:[(0,j.jsx)(Vj,{entry:b,renaming:g,setRenaming:v}),(0,j.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1 text-[12px] leading-5 text-muted-foreground`,children:[(0,j.jsx)(`span`,{className:`shrink-0`,children:pT[e.provider]}),(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(zE,{status:u,value:{model:e.model,effort:e.effort??null},onChange:T}),(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(eE,{size:12,className:`shrink-0`}),(0,j.jsx)(`span`,{className:`min-w-[4rem] truncate`,title:e.cwd,children:XT(e.cwd)}),E?(0,j.jsxs)(`span`,{className:`shrink-0`,title:D,children:[`· `,E]}):null]})]}),(0,j.jsx)(tj,{transport:r.transport,sessionId:e.id,agent:e.agent??null,onChange:()=>void 0}),(0,j.jsxs)(`button`,{type:`button`,className:Z(`cs-chip-button shrink-0 @max-[620px]/header:hidden`,t&&`cs-chip-button--on`),onClick:()=>n(!t),"aria-pressed":t,title:`Files this chat changed`,children:[(0,j.jsx)(xE,{size:13}),S.length>0?`${S.length} ${S.length===1?`file`:`files`} changed`:`Changes`]}),(0,j.jsx)(Pj,{run:s}),c?(0,j.jsxs)(__,{variant:`outline`,size:`sm`,onClick:()=>void w(),disabled:m,className:`gap-1.5`,title:`Stop Esc`,children:[m?(0,j.jsx)(lE,{size:13}):(0,j.jsx)($T,{size:13}),m?`Stopping…`:`Stop`]}):null,(0,j.jsx)(Bj,{entry:b,onRename:()=>v(!0),onChanges:()=>n(!t),changesOpen:t})]}),(0,j.jsx)(`div`,{className:`mx-chat flex min-h-0 flex-1 flex-col`,children:(0,j.jsxs)(hi,{thread:o.thread,ports:{notifier:l,toolLabel:TT},children:[(0,j.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden`,children:o.state.loading?(0,j.jsxs)(`div`,{className:`flex h-full items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(lE,{size:15}),` Loading the conversation…`]}):(0,j.jsxs)(`div`,{className:`flex h-full flex-col`,children:[o.state.unavailable?(0,j.jsx)(`p`,{className:`mx-auto mt-4 max-w-[720px] rounded-lg border border-border bg-muted/50 px-4 py-2.5 text-[13px] text-muted-foreground`,children:o.state.unavailable}):null,o.state.truncated?(0,j.jsx)(Hj,{loading:o.state.loadingEarlier===!0,onEarlier:()=>void o.loadEarlier()}):null,x.length===0&&!c?(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-[13px] text-muted-foreground`,children:e.origin===`takeover`?`You've taken over this chat. Send a message to continue it.`:`Nothing here yet.`}):(0,j.jsx)(Uw,{className:`min-h-0 flex-1`,label:`Conversation: ${b.title}`})]})}),(0,j.jsxs)(`div`,{"data-cs-composer":!0,className:`mx-auto w-full max-w-[820px] px-4 pb-4`,children:[f?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(nE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[f.problem,` `,f.fix]})]}):null,p&&!d?(0,j.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,role:`alert`,children:[(0,j.jsx)(nE,{size:15,className:`shrink-0 text-warning`}),(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:s?.error??void 0,children:yT}),(0,j.jsx)(zE,{status:u,value:{model:e.model,effort:e.effort??null},onChange:T})]}):null,d?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(nE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[d.problem,` `,d.fix]})]}):null,(0,j.jsx)(`div`,{className:`cs-activity`,role:`status`,"aria-live":`polite`,"data-idle":!c||void 0,children:c?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(lE,{size:13}),(0,j.jsx)(`span`,{className:`truncate`,children:s?.status===`starting`?`Starting ${pT[e.provider]}…`:o.activity??`Thinking…`}),(0,j.jsx)(`span`,{className:`ml-auto shrink-0 text-[11px] opacity-70`,children:`Esc to stop`})]}):null}),y?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(nE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[y.message,` A message sent here would put a second agent on the same chat.`]})]}):null,e.queued.length>0?(0,j.jsx)(`ul`,{className:`mb-2 space-y-1.5`,"aria-label":`Queued messages`,children:e.queued.map((e,t)=>(0,j.jsxs)(`li`,{className:`cs-queued`,children:[(0,j.jsx)(`span`,{className:`cs-queued__label`,children:`Queued · sends when this run finishes`}),(0,j.jsx)(`span`,{className:`cs-queued__text`,children:e})]},`${t}-${e.slice(0,16)}`))}):null,(0,j.jsx)(dT,{placeholder:`Message ${pT[e.provider]}…`,autoFocus:!0,...d?{held:{reason:`${d.problem} ${d.fix??``}`.trim()}}:{}})]})]})})]}),t?(0,j.jsx)(IE,{files:S,cwd:e.cwd,truncated:o.state.truncated,onClose:()=>n(!1)}):null]})}function Kj(e,t){let n=(0,_.useRef)({messages:[],listeners:new Set}),r=(0,_.useRef)(t);return r.current=t,[(0,_.useMemo)(()=>fT({getSnapshot:()=>({messages:n.current.messages,status:`idle`,conversationId:e}),subscribe:e=>(n.current.listeners.add(e),()=>{n.current.listeners.delete(e)}),onSubmit:()=>r.current()}),[e]),(0,_.useCallback)(e=>{n.current.messages=e;for(let e of n.current.listeners)e()},[])]}function qj(e){let t=GT(),n=KT(),r=(0,_.useContext)(TE),i=JT(),[a,o]=(0,_.useState)({loading:!0,messages:[],unavailable:null,truncated:!1}),[s,c]=(0,_.useState)(!1),[l,u]=(0,_.useState)(null),[d,f]=(0,_.useState)(!1),[p,m]=(0,_.useState)(!1),[h,g]=(0,_.useState)(void 0),[v,y]=(0,_.useState)(!1),b=Rj(e.provider,e.id,e.session?.activeElsewhere??null),x=FE(a.messages),S=e.session,[C,w]=Kj(e.id,()=>r(S?.cwd?`This chat is read-only until you take it over. Press Take over to continue it here.`:`This chat is read-only here: it doesn't record its folder, so it can't be continued.`));(0,_.useEffect)(()=>{let n=!1,r=r=>t.readPreview(e.provider,e.id,h).then(e=>{n||(w(e.messages),o(e),r&&y(!1))});h===void 0&&o({loading:!0,messages:[],unavailable:null,truncated:!1}),r(!0);let i=b?setInterval(()=>void r(!1),8e3):null;return()=>{n=!0,i&&clearInterval(i)}},[t,e.provider,e.id,h,b!==null,w]);let T=Lj(),E=FT(S??{provider:e.provider,providerSessionId:e.id,cwd:null,title:`Chat`,updatedAt:``,source:null,activeElsewhere:null},n.preferences),D=()=>{b?f(!0):A()},[O,k]=(0,_.useState)(!1),A=async n=>{if(S){f(!1),c(!0),u(null);try{let r=await t.takeover(S,n);e.onTakenOver(r.id)}catch(e){u(e instanceof Error?e.message:String(e))}finally{c(!1)}}};return(0,j.jsxs)(`div`,{className:`flex min-w-0 flex-1`,children:[(0,j.jsxs)(`section`,{className:`flex min-w-0 flex-1 flex-col`,"aria-label":E.title,children:[(0,j.jsxs)(`header`,{className:`@container/header flex items-center gap-2 border-b border-border px-5 pt-2.5 pb-2.5`,children:[(0,j.jsx)(fE,{provider:e.provider,size:22}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,j.jsx)(Vj,{entry:E,renaming:p,setRenaming:m}),(0,j.jsxs)(`p`,{className:`flex items-center gap-1.5 truncate text-[12px] leading-4 text-muted-foreground`,children:[(0,j.jsx)(`span`,{children:pT[e.provider]}),S?.cwd?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(eE,{size:12}),(0,j.jsx)(`span`,{className:`truncate`,title:S.cwd,children:XT(S.cwd)})]}):null,S?(0,j.jsxs)(`span`,{children:[`· last active `,YT(S.updatedAt,i)]}):null]})]}),x.length>0?(0,j.jsxs)(`button`,{type:`button`,className:`cs-chip-button`,onClick:()=>e.setChangesOpen(!e.changesOpen),"aria-pressed":e.changesOpen,title:`Files this chat changed`,children:[(0,j.jsx)(xE,{size:13}),`${x.length} ${x.length===1?`file`:`files`} changed`]}):null,S?.cwd?(0,j.jsxs)(__,{size:`sm`,variant:b?`outline`:`default`,onClick:D,disabled:s,className:`gap-1.5`,title:b?b.message:void 0,children:[s?(0,j.jsx)(lE,{size:13}):b?(0,j.jsx)(nE,{size:14,className:`text-warning`}):(0,j.jsx)(iE,{size:14}),b?`Take over anyway…`:`Take over`]}):null,S?.cwd&&!b?(0,j.jsx)(__,{size:`sm`,variant:`outline`,onClick:()=>k(!0),disabled:s,children:`Continue with agent…`}):null,(0,j.jsx)(rj,{transport:t.transport,open:O,onOpenChange:k,title:`Continue with an agent`,action:`Take over with this agent`,onConfirm:e=>A(e)}),S?(0,j.jsx)(Bj,{entry:E,onRename:()=>m(!0)}):null]}),b?(0,j.jsxs)(`div`,{role:`status`,className:`flex items-start gap-2 border-b border-warning/40 bg-warning/10 px-5 py-2.5 text-[13px]`,children:[(0,j.jsx)(nE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[(0,j.jsx)(`span`,{className:`font-medium`,children:b.message}),` Taking it over now would put two agents on the same chat, and they could overwrite each other's work. Finish or stop it there first if you can. This preview follows it as it runs.`]})]}):null,(0,j.jsx)(GS,{open:d,onOpenChange:f,children:(0,j.jsxs)(iC,{className:`max-w-[460px]`,children:[(0,j.jsxs)(aC,{children:[(0,j.jsxs)(sC,{children:[`This chat is running right now in `,pT[e.provider]]}),(0,j.jsxs)(cC,{children:[b?.message,` If you take it over, two agents will work in the same conversation at once and may overwrite each other's changes.`]})]}),(0,j.jsxs)(oC,{children:[(0,j.jsx)(__,{variant:`ghost`,onClick:()=>f(!1),children:`Cancel`}),(0,j.jsx)(__,{variant:`destructive`,onClick:()=>void A(),children:`Take over anyway`})]})]})}),l?(0,j.jsx)(`p`,{className:`border-b border-destructive/30 bg-destructive/10 px-5 py-2 text-[13px] text-destructive`,children:l}):null,S&&!S.cwd?(0,j.jsx)(`p`,{className:`border-b border-border bg-muted/50 px-5 py-2 text-[13px] text-muted-foreground`,children:`This chat doesn't record which folder it ran in, so it can't be continued from here.`}):null,(0,j.jsxs)(`div`,{className:`mx-chat flex min-h-0 flex-1 flex-col`,children:[a.loading?(0,j.jsxs)(`div`,{className:`flex flex-1 items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(lE,{size:15}),` Reading this chat…`]}):a.unavailable?(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center px-6 text-center text-[13px] text-muted-foreground`,children:a.unavailable}):(0,j.jsxs)(hi,{thread:C,ports:{notifier:T,toolLabel:TT},children:[a.truncated?(0,j.jsx)(Hj,{loading:v,onEarlier:()=>{y(!0),g(e=>(e??25165824)*4)}}):null,(0,j.jsx)(Uw,{className:`min-h-0 flex-1`,label:`Chat preview`})]}),S?.cwd?(0,j.jsxs)(`div`,{className:`border-t border-border bg-muted/30 px-5 py-3 text-center text-[13px] text-muted-foreground`,children:[`This chat was started in `,pT[e.provider],`.`,` `,(0,j.jsx)(`button`,{type:`button`,className:`font-medium text-foreground underline-offset-4 hover:underline`,onClick:D,children:`Take it over`}),` `,`to continue it here — it stays in your `,pT[e.provider],` history too.`]}):null]})]}),e.changesOpen&&x.length>0?(0,j.jsx)(IE,{files:x,cwd:S?.cwd??null,truncated:a.truncated,onClose:()=>e.setChangesOpen(!1)}):null]})}function Jj(e){let t=e.status.ready;return(0,j.jsxs)(`button`,{type:`button`,onClick:e.onSelect,"aria-pressed":e.selected,className:Z(`flex flex-1 flex-col gap-1.5 rounded-xl border px-3.5 py-3 text-left transition-colors`,e.selected?`border-primary bg-primary/5 ring-1 ring-primary`:`border-border hover:bg-accent/50`),children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(fE,{provider:e.status.provider,size:18}),(0,j.jsx)(`span`,{className:`text-[13.5px] font-semibold`,children:e.status.label})]}),t?(0,j.jsxs)(`span`,{className:`flex items-center gap-1 text-[12px] text-success`,children:[(0,j.jsx)(tE,{size:13}),e.status.billing===`subscription`?`Signed in${e.status.plan?` · ${e.status.plan} plan`:``}`:`Signed in with an API key (billed per use)`]}):(0,j.jsxs)(`span`,{className:`flex items-start gap-1 text-[12px] leading-4 text-warning`,children:[(0,j.jsx)(nE,{size:13,className:`mt-px shrink-0`}),e.status.problem]}),e.status.quota.filter(e=>e.usedPercent!==null).length>0?(0,j.jsx)(`span`,{className:`text-[11.5px] leading-4 text-muted-foreground`,children:e.status.quota.filter(e=>e.usedPercent!==null).map(e=>`${e.label}: ${e.usedPercent}% used`).join(` · `)}):null]})}function Yj({id:e,children:t}){return(0,j.jsxs)(`p`,{id:e,role:`alert`,className:`flex items-start gap-1.5 text-[12.5px] leading-5 text-destructive`,children:[(0,j.jsx)(nE,{size:14,className:`mt-0.5 shrink-0`}),(0,j.jsx)(`span`,{children:t})]})}function Xj(e){let t=GT(),n=KT(),r=JT(),[i,a]=(0,_.useState)(`claude`),[o,s]=(0,_.useState)(``),[c,l]=(0,_.useState)({model:null,effort:null}),[u,d]=(0,_.useState)(``),[f,p]=(0,_.useState)({}),[m,h]=(0,_.useState)(null),[g,v]=(0,_.useState)(!1),[y,b]=(0,_.useState)(!1),[x,S]=(0,_.useState)(null),[C,w]=(0,_.useState)(null),[T,E]=(0,_.useState)(null),D=(0,_.useRef)(null),O=(0,_.useRef)(null),k=(0,_.useRef)(null);(0,_.useEffect)(()=>{e.open&&(h(null),p({}),t.refreshProviders(),t.refreshFolders())},[e.open,t]),(0,_.useEffect)(()=>{!o&&n.folders.data[0]?.exists&&s(n.folders.data[0].path)},[n.folders.data,o]),(0,_.useEffect)(()=>{let e=n.providers.data.filter(e=>e.ready),t=n.providers.data.find(e=>e.provider===i);t&&!t.ready&&e[0]&&a(e[0].provider)},[n.providers.loadedAt]);let A=n.providers.data.find(e=>e.provider===i)??null,M=e=>{e===`prompt`?D.current?.focus():e===`folder`?O.current?.focus():e===`agent`&&k.current?.querySelector(`button`)?.focus()},N=async()=>{if(g)return;h(null);let n=await Ej({provider:A,folder:o,prompt:u,checkFolder:e=>t.transport.call(`checkFolder`,e)});p(n);let r=Dj(n);if(r){M(r);return}let a=QA(C,x);if(E(a),a){document.getElementById(`cs-agent-var-${a}`)?.focus();return}v(!0);try{let n=await t.start({provider:i,cwd:o.trim(),prompt:u,model:c.model,effort:c.effort,...x?{agent:x}:{}});d(``),e.onStarted(n.session.id)}catch(e){h(e instanceof Error?e.message:String(e))}finally{v(!1)}},P=async()=>{if(f.createFolder){b(!0);try{let e=await t.transport.call(`createFolder`,f.createFolder);s(e.path),p(e=>{let t={...e};return delete t.folder,delete t.createFolder,t}),t.refreshFolders(),O.current?.focus()}catch(e){p(t=>({...t,folder:`Couldn't create it: ${e instanceof Error?e.message:String(e)}`}))}finally{b(!1)}}},F=e=>p(t=>{if(t[e]===void 0)return t;let n={...t};return delete n[e],e===`folder`&&delete n.createFolder,n});return(0,j.jsx)(GS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(iC,{className:`max-w-[560px]`,children:[(0,j.jsxs)(aC,{children:[(0,j.jsx)(sC,{children:`New coding session`}),(0,j.jsxs)(cC,{children:[`Runs on your own `,i===`claude`?`Claude`:`ChatGPT`,` sign-in, in a folder on this computer.`]})]}),(0,j.jsxs)(`form`,{noValidate:!0,onSubmit:e=>{e.preventDefault(),N()},className:`flex min-h-0 flex-col`,children:[(0,j.jsxs)(`div`,{className:`cs-dialog-body space-y-5 py-1 pr-1`,children:[(0,j.jsxs)(`fieldset`,{className:`space-y-2`,ref:k,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Agent`}),n.providers.loading&&n.providers.loadedAt===null?(0,j.jsxs)(`div`,{className:`flex gap-2`,children:[(0,j.jsx)(`div`,{className:`cs-skeleton h-[68px] flex-1 rounded-xl`}),(0,j.jsx)(`div`,{className:`cs-skeleton h-[68px] flex-1 rounded-xl`})]}):n.providers.error?(0,j.jsx)(`p`,{className:`text-[12.5px] text-destructive`,children:n.providers.error}):(0,j.jsx)(`div`,{className:`flex gap-2`,children:n.providers.data.map(e=>(0,j.jsx)(Jj,{status:e,selected:e.provider===i,onSelect:()=>{e.provider!==i&&l({model:null,effort:null}),a(e.provider),F(`agent`)}},e.provider))}),f.agent?(0,j.jsx)(Yj,{id:`cs-err-agent`,children:f.agent}):A&&!A.ready&&A.fix?(0,j.jsxs)(`p`,{className:`text-[12px] leading-4 text-muted-foreground`,children:[A.fix,A.installed&&A.loggedIn?` You can still try — the run will say if it's still blocked.`:``]}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`AI Matrx agent`}),(0,j.jsx)(ZA,{transport:t.transport,open:e.open,value:x,onChange:e=>{S(e),E(null)},missing:T,onDetails:w})]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Folder`}),n.folders.data.length>0?(0,j.jsx)(`div`,{className:`max-h-[132px] space-y-0.5 overflow-y-auto rounded-lg border border-border p-1`,children:n.folders.data.map(e=>(0,j.jsxs)(`button`,{type:`button`,onClick:()=>{s(e.path),F(`folder`)},disabled:!e.exists,title:e.exists?e.path:`${e.path} no longer exists`,className:Z(`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[12.5px]`,o===e.path?`bg-accent text-accent-foreground`:`hover:bg-accent/50`,!e.exists&&`opacity-50`),children:[(0,j.jsx)(eE,{size:14,className:`shrink-0 text-muted-foreground`}),(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:XT(e.path)}),(0,j.jsx)(`span`,{className:`shrink-0 text-[11px] text-muted-foreground`,children:e.exists?YT(e.lastUsedAt,r):`missing`})]},e.path))}):n.folders.loading?(0,j.jsx)(`div`,{className:`cs-skeleton h-10 rounded-lg`}):null,(0,j.jsx)(lw,{ref:O,value:o,onChange:e=>{s(e.target.value),F(`folder`)},placeholder:`Or type a folder path, like ~/code/my-app`,"aria-label":`Folder path`,"aria-invalid":f.folder?!0:void 0,"aria-describedby":f.folder?`cs-err-folder`:void 0,spellCheck:!1}),f.folder?(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,j.jsx)(Yj,{id:`cs-err-folder`,children:f.folder}),f.createFolder?(0,j.jsxs)(__,{type:`button`,size:`sm`,variant:`outline`,onClick:()=>void P(),disabled:y,className:`gap-1.5`,children:[y?(0,j.jsx)(lE,{size:13}):(0,j.jsx)(eE,{size:13}),`Create this folder`]}):null]}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`What should it do?`}),(0,j.jsx)(xw,{ref:D,value:u,onChange:e=>{d(e.target.value),F(`prompt`)},onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),N())},placeholder:`Describe the change, the bug, or the question…`,rows:4,"aria-label":`First message`,"aria-invalid":f.prompt?!0:void 0,"aria-describedby":f.prompt?`cs-err-prompt`:void 0}),f.prompt?(0,j.jsx)(Yj,{id:`cs-err-prompt`,children:f.prompt}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Model and thinking effort`}),(0,j.jsx)(zE,{status:A,value:c,onChange:l,appearance:`field`}),(0,j.jsxs)(`p`,{className:`text-[11.5px] leading-4 text-muted-foreground`,children:[`Default is `,LE(A),`. You can change it later from the chat's header.`]})]}),m?(0,j.jsx)(Yj,{id:`cs-err-start`,children:m}):null]}),(0,j.jsxs)(oC,{className:`pt-4`,children:[(0,j.jsx)(__,{type:`button`,variant:`ghost`,onClick:()=>e.onOpenChange(!1),children:`Cancel`}),(0,j.jsxs)(__,{type:`submit`,disabled:g,className:`gap-1.5`,children:[g?(0,j.jsx)(lE,{size:14}):null,g?`Starting…`:`Start session`,g?null:(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘↵`})]})]})]})]})})}function Zj({onNew:e}){let t=KT();return(0,j.jsx)(`section`,{className:`flex flex-1 items-center justify-center px-6`,children:(0,j.jsxs)(`div`,{className:`w-full max-w-[460px] text-center`,children:[(0,j.jsx)(`span`,{className:`mx-auto mb-4 flex h-11 w-11 items-center justify-center rounded-2xl bg-primary/10 text-primary`,children:(0,j.jsx)(cE,{size:22})}),(0,j.jsx)(`h1`,{className:`text-[15px] font-semibold leading-5 tracking-[-0.01em]`,children:`Drive Claude Code and Codex from here`}),(0,j.jsx)(`p`,{className:`mx-auto mt-2 max-w-[400px] text-[13.5px] leading-6 text-muted-foreground`,children:`Start a session in any folder, or pick up a chat you began somewhere else. Everything runs on your own subscriptions — no API keys.`}),(0,j.jsxs)(__,{className:`mt-5 gap-1.5`,onClick:e,children:[(0,j.jsx)(QT,{size:15}),`New session`]}),(0,j.jsxs)(`p`,{className:`mt-3 text-[12px] text-muted-foreground`,children:[(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌥⌘N`}),` new session · `,(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘K`}),` search your chats ·`,` `,(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘/`}),` all shortcuts`]}),(0,j.jsx)(`div`,{className:`mt-6 flex flex-wrap justify-center gap-2 text-left`,children:t.providers.data.map(e=>(0,j.jsxs)(`div`,{"data-provider-card":e.provider,title:e.installed&&e.version?[Uj(e),Wj(e)??e.binary?.path].filter(Boolean).join(` · `):void 0,className:`flex w-[260px] items-start gap-2.5 rounded-lg border border-border bg-card px-3 py-2.5`,children:[(0,j.jsx)(fE,{provider:e.provider,size:16}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1 leading-5`,children:[(0,j.jsx)(`span`,{className:`block truncate text-[14px] font-semibold`,children:e.label}),e.ready?(0,j.jsxs)(`span`,{className:`block truncate text-[12px] text-muted-foreground`,children:[`Ready`,e.plan?` on your ${e.plan} plan`:``,e.billing===`api`?` (API key, billed per use)`:``]}):(0,j.jsxs)(`span`,{className:`block text-[12px] text-muted-foreground`,children:[e.problem,` `,e.fix]})]}),e.ready?(0,j.jsx)(tE,{size:15,className:`mt-0.5 text-success`}):(0,j.jsx)(nE,{size:15,className:`mt-0.5 text-warning`})]},e.provider))})]})})}function Qj(){let[e,t]=(0,_.useState)(null),n=(0,_.useRef)(null);(0,_.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]);let r=(0,_.useCallback)((e,r=null)=>{t({text:e,sessionId:r}),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>t(null),6e3)},[]),i=(0,_.useCallback)(()=>{n.current&&clearTimeout(n.current),t(null)},[]);return{text:e?.text??null,sessionId:e?.sessionId??null,show:r,dismiss:i}}function $j({text:e}){let t=(0,_.useRef)(null);return(0,_.useLayoutEffect)(()=>{let e=t.current,n=e?.parentElement;if(!e||!n)return;let r=n.querySelector(`[data-cs-composer]`),i=r?n.getBoundingClientRect().bottom-r.getBoundingClientRect().top+8:20;e.style.setProperty(`--cs-toast-bottom`,`${Math.max(20,Math.round(i))}px`)},[e]),e?(0,j.jsx)(`div`,{ref:t,role:`status`,"data-cs-toast":!0,className:`cs-toast`,children:e}):null}var eM=300,tM=220,nM=560;function rM(e){return Math.round(Math.min(nM,Math.max(tM,e)))}function iM(){let[e,t]=(0,_.useState)(()=>{try{let e=Number(localStorage.getItem(`coding-sessions.sidebar-width`));return Number.isFinite(e)&&e>0?rM(e):eM}catch{return eM}}),[n,r]=(0,_.useState)(()=>{try{return localStorage.getItem(`coding-sessions.sidebar-collapsed`)===`1`}catch{return!1}});return{width:e,setWidth:(0,_.useCallback)(e=>{let n=rM(e);t(n);try{localStorage.setItem(`coding-sessions.sidebar-width`,String(n))}catch{}},[]),collapsed:n,setCollapsed:(0,_.useCallback)(e=>{r(e);try{localStorage.setItem(`coding-sessions.sidebar-collapsed`,e?`1`:`0`)}catch{}},[])}}function aM(e){let[t,n]=(0,_.useState)(!1);return(0,j.jsx)(`div`,{className:Z(`cs-resizer`,t&&`cs-resizer--dragging`),children:(0,j.jsx)(`button`,{type:`button`,className:`cs-resizer__grip`,role:`separator`,"aria-orientation":`vertical`,"aria-label":`Resize the sidebar`,"aria-valuenow":e.width,"aria-valuemin":tM,"aria-valuemax":nM,title:`Drag to resize · double-click to reset`,onDoubleClick:()=>e.setWidth(eM),onKeyDown:t=>{t.key===`ArrowLeft`&&e.setWidth(e.width-16),t.key===`ArrowRight`&&e.setWidth(e.width+16)},onPointerDown:t=>{t.preventDefault();let r=t.clientX,i=e.width;n(!0),document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`;let a=t=>e.setWidth(i+t.clientX-r),o=()=>{n(!1),document.body.style.cursor=``,document.body.style.userSelect=``,window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o)};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o)}})})}var oM=[{keys:`⌘K`,what:`Search chats`},{keys:`⌥⌘N`,what:`New session`},{keys:`Enter`,what:`Send (Shift+Enter for a new line)`},{keys:`Esc`,what:`Stop the run in the open chat`},{keys:`⌘B`,what:`Show or hide the sidebar`},{keys:`⌥↑ / ⌥↓`,what:`Previous or next chat in the list`},{keys:`⌘/`,what:`These shortcuts`}];function sM(e){return(0,j.jsx)(GS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(iC,{className:`max-w-[420px]`,children:[(0,j.jsxs)(aC,{children:[(0,j.jsx)(sC,{children:`Keyboard shortcuts`}),(0,j.jsx)(cC,{children:`Ctrl works in place of ⌘ on Windows and Linux.`})]}),(0,j.jsx)(`dl`,{className:`divide-y divide-border text-[13px]`,children:oM.map(e=>(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-4 py-2`,children:[(0,j.jsx)(`dt`,{className:`text-muted-foreground`,children:e.what}),(0,j.jsx)(`dd`,{children:(0,j.jsx)(`kbd`,{className:`rounded border border-border px-1.5 py-0.5 font-sans text-[12px]`,children:e.keys})})]},e.keys))})]})})}var cM=`Coding sessions`;function lM(e,t){let{show:n,dismiss:r,sessionId:i}=t,a=KT();(0,_.useEffect)(()=>{if(!i)return;let t=a.runs[i];(e===i||t&&(t.status===`starting`||t.status===`running`))&&r()},[i,e,a.runs,r]);let o=GT(),s=(0,_.useRef)(0),c=(0,_.useRef)(e);c.current=e,(0,_.useEffect)(()=>{let e=()=>{document.visibilityState===`visible`&&(s.current=0,document.title=cM)};document.addEventListener(`visibilitychange`,e);let t=o.onRunFinished(({run:e,session:t})=>{let r=t?.title??`A session`,i=e.status===`completed`?`finished`:e.status===`failed`?`failed`:`was stopped`,a=`${pT[e.provider]} ${i}: ${r}`;if(document.visibilityState===`hidden`){if(s.current+=1,document.title=`(${s.current}) ${cM}`,typeof Notification<`u`&&Notification.permission===`granted`){let t=new Notification(a,e.error?{tag:e.runId,body:xT(e.error)}:{tag:e.runId});t.onclick=()=>{window.focus(),location.hash=`#s/${e.sessionId}`,t.close()}}}else c.current!==e.sessionId&&e.status!==`stopped`&&n(a,e.sessionId)});return()=>{t(),document.removeEventListener(`visibilitychange`,e)}},[o,n])}function uM(){let e=typeof Notification<`u`,[t,n]=(0,_.useState)(e?Notification.permission:`denied`);return!e||t===`granted`?null:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void Notification.requestPermission().then(n),"aria-label":t===`denied`?`Notifications are blocked for this page in your browser's site settings`:`Notify me when a run finishes`,title:t===`denied`?`Notifications are blocked in your browser's site settings`:`Notify me when a run finishes`,disabled:t===`denied`,children:(0,j.jsx)(wE,{size:14})})}function dM(e){let t=e;return t?t.isContentEditable||t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.tagName===`SELECT`:!1}function fM(){let e=GT(),t=KT(),[n,r]=(0,_.useState)(kj),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)({}),[f,p]=Mj(),m=Qj(),h=m.show,g=iM(),v=(0,_.useRef)(null),y=(0,_.useCallback)(e=>{r(e),Aj(e)},[]);(0,_.useEffect)(()=>{let e=()=>r(kj());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]),lM(n.kind===`session`?n.id:null,m);let b=n.kind===`session`?t.sessions.data.find(e=>e.id===n.id)??null:null,x=n.kind===`discovered`?t.discovered.data.find(e=>e.providerSessionId===n.id)??u[`${n.provider}:${n.id}`]??null:null,S=b?t.runs[b.id]:void 0,C=S!==void 0&&!gT(S.status),w=(0,_.useMemo)(()=>{let e=new Set(t.sessions.data.map(e=>e.providerSessionId).filter(Boolean));return[...t.sessions.data.map(e=>({kind:`session`,id:e.id})),...t.discovered.data.filter(t=>!e.has(t.providerSessionId)).map(e=>({kind:`discovered`,provider:e.provider,id:e.providerSessionId}))]},[t.sessions.data,t.discovered.data]);(0,_.useEffect)(()=>{let t=t=>{let r=t.metaKey||t.ctrlKey,i=t.key.toLowerCase();if(r&&!t.shiftKey&&!t.altKey&&i===`k`){t.preventDefault(),g.setCollapsed(!1),requestAnimationFrame(()=>{v.current?.focus(),v.current?.select()});return}if(r&&t.altKey&&(i===`n`||t.code===`KeyN`)||r&&t.shiftKey&&i===`o`){t.preventDefault(),a(!0);return}if(r&&!t.shiftKey&&!t.altKey&&i===`b`){t.preventDefault(),g.setCollapsed(!g.collapsed);return}if(r&&i===`/`){t.preventDefault(),s(!0);return}if(t.altKey&&!r&&(t.key===`ArrowUp`||t.key===`ArrowDown`)){let e=w.findIndex(e=>(e.kind===`session`&&n.kind===`session`||e.kind===`discovered`&&n.kind===`discovered`)&&e.id===n.id),r=w[t.key===`ArrowUp`?Math.max(0,e-1):Math.min(w.length-1,e+1)];r&&(t.preventDefault(),y(r));return}if(t.key===`Escape`&&C&&S&&!t.defaultPrevented){if(document.querySelector(`[role="dialog"], [role="menu"], [data-radix-popper-content-wrapper]`)||t.target===v.current)return;t.preventDefault(),e.stop(S.runId),h(`Stopping…`);return}t.key===`?`&&!dM(t.target)&&s(!0)};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e,g,C,S,w,n,y,h]);let T;return T=n.kind===`session`?b?(0,j.jsx)(Gj,{session:b,changesOpen:c,setChangesOpen:l},b.id):t.sessions.loadedAt===null?(0,j.jsxs)(`div`,{className:`flex flex-1 items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(lE,{size:15}),` Loading…`]}):(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-[13px] text-muted-foreground`,children:`That session is not in the list anymore.`}):n.kind===`discovered`?(0,j.jsx)(qj,{session:x,provider:n.provider,id:n.id,onTakenOver:e=>y({kind:`session`,id:e}),changesOpen:c,setChangesOpen:l},`${n.provider}:${n.id}`):(0,j.jsx)(Zj,{onNew:()=>a(!0)}),(0,j.jsx)(TE.Provider,{value:h,children:(0,j.jsxs)(`div`,{className:`cs-app flex h-full flex-col bg-background text-foreground`,children:[(0,j.jsx)(Fj,{}),(0,j.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[g.collapsed?(0,j.jsxs)(`div`,{className:`flex flex-col items-center gap-1 border-r border-border bg-muted/30 px-1.5 py-3`,children:[(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>g.setCollapsed(!1),"aria-label":`Show the sidebar (⌘B)`,title:`Show sidebar ⌘B`,children:(0,j.jsx)(yE,{size:15})}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>a(!0),"aria-label":`New session`,title:`New session ⌥⌘N`,children:(0,j.jsx)(QT,{size:15})})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(gj,{selection:n,select:y,onNew:()=>a(!0),onCollapse:()=>g.setCollapsed(!0),width:g.width,searchRef:v,onFound:e=>d(t=>({...t,[`${e.provider}:${e.providerSessionId}`]:e})),footer:(0,j.jsx)(Ij,{theme:f,setTheme:p,extra:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(uM,{}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>s(!0),"aria-label":`Keyboard shortcuts (⌘/)`,title:`Keyboard shortcuts ⌘/`,children:(0,j.jsx)(CE,{size:14})})]})})}),(0,j.jsx)(aM,{width:g.width,setWidth:g.setWidth})]}),(0,j.jsxs)(`main`,{className:`relative flex min-w-0 flex-1`,children:[T,(0,j.jsx)($j,{text:m.text})]})]}),(0,j.jsx)(Xj,{open:i,onOpenChange:a,onStarted:e=>{a(!1),y({kind:`session`,id:e})}}),(0,j.jsx)(sM,{open:o,onOpenChange:s})]})})}function pM({transport:e}){return(0,j.jsx)(Oj,{transport:e,children:(0,j.jsx)(fM,{})})}var mM=`coding-sessions.token`;function hM(){let e=new URL(location.href),t=e.searchParams.get(`token`);if(t){try{sessionStorage.setItem(mM,t)}catch{}return e.searchParams.delete(`token`),history.replaceState(null,``,`${e.pathname}${e.search}${e.hash}`),t}try{return sessionStorage.getItem(mM)}catch{return null}}var gM=(0,v.createRoot)(document.getElementById(`root`)),_M=hM();if(!_M)gM.render((0,j.jsx)(`div`,{className:`flex h-full items-center justify-center p-8`,children:(0,j.jsxs)(`div`,{className:`max-w-[440px] text-center`,children:[(0,j.jsx)(`h1`,{className:`text-[18px] font-semibold`,children:`This link is missing its access code`}),(0,j.jsx)(`p`,{className:`mt-2 text-[13.5px] leading-6 text-muted-foreground`,children:`Open the coding sessions page from the full link AI Matrx gave you — it ends in a long access code that keeps other websites from reaching your coding agents.`})]})}));else{let e=y({token:_M});gM.render((0,j.jsx)(_.StrictMode,{children:(0,j.jsx)(pM,{transport:e})}))}
71
+ `))t.push({kind:`add`,text:`+${n}`})}if(t.length===0)return(0,j.jsx)(`p`,{className:`text-[12px] text-muted-foreground`,children:e.failed?`This change failed.`:`The agent didn't record the text of this change.`});let n=t.slice(0,ME);return(0,j.jsxs)(j.Fragment,{children:[e.failed?(0,j.jsx)(`p`,{className:`mb-1 text-[11.5px] text-destructive`,children:`This change failed and was not applied.`}):null,(0,j.jsx)(`pre`,{className:Z(`cs-diff`,e.failed&&`opacity-60`),children:n.map((e,t)=>(0,j.jsx)(`span`,{className:Z(`cs-diff__line`,e.kind!==`ctx`&&`cs-diff__line--${e.kind}`),children:e.text||` `},t))}),t.length>ME?(0,j.jsxs)(`p`,{className:`mt-1 text-[11.5px] text-muted-foreground`,children:[`Showing the first `,ME,` of `,t.length,` lines.`]}):null]})}function FE({file:e,cwd:t}){let[n,r]=(0,_.useState)(!1),i=DE(),a=PT(e),o=NE(e.path,t),s={created:`New`,edited:`Edited`,deleted:`Deleted`,moved:`Moved`}[e.kind];return(0,j.jsxs)(`li`,{className:`border-b border-border`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-2`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>r(e=>!e),"aria-expanded":n,className:`flex min-w-0 flex-1 items-center gap-2 text-left`,children:[(0,j.jsx)(xE,{size:13,className:Z(`shrink-0 transition-transform`,!n&&`-rotate-90`)}),(0,j.jsx)(SE,{size:14,className:`shrink-0 text-muted-foreground`}),(0,j.jsx)(`span`,{className:`min-w-0 truncate text-[12.5px] font-medium`,title:e.path,children:o})]}),(0,j.jsx)(`span`,{className:`shrink-0 text-[11px] text-muted-foreground`,children:s}),(0,j.jsxs)(`span`,{className:`shrink-0 font-mono text-[11px]`,children:[a.added?(0,j.jsxs)(`span`,{className:`cs-count-add`,children:[`+`,a.added]}):null,` `,a.removed?(0,j.jsxs)(`span`,{className:`cs-count-del`,children:[`−`,a.removed]}):null]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void kE(e.path,i,`File path`),"aria-label":`Copy the path of ${o}`,title:`Copy path`,children:(0,j.jsx)(SE,{size:12})})]}),n?(0,j.jsx)(`div`,{className:`space-y-3 px-4 pb-3`,children:e.edits.map((e,t)=>(0,j.jsx)(PE,{edit:e},`${e.toolCallId}-${t}`))}):null]})}function IE(e){return(0,_.useMemo)(()=>NT(e),[e])}function LE(e){return(0,j.jsxs)(`aside`,{className:`cs-changes`,"aria-label":`Files changed in this chat`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-4 py-3`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h2`,{className:`text-[13.5px] font-semibold`,children:`Files changed`}),(0,j.jsxs)(`p`,{className:`text-[11.5px] text-muted-foreground`,children:[e.files.length===0?`Nothing yet`:`${e.files.length} ${e.files.length===1?`file`:`files`}, from this chat's own record`,e.truncated?` · only the part of the chat shown here`:``]})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:e.onClose,"aria-label":`Close files changed`,children:(0,j.jsx)(CE,{size:14})})]}),e.files.length===0?(0,j.jsx)(`p`,{className:`px-4 py-6 text-center text-[12.5px] leading-5 text-muted-foreground`,children:`The agent hasn't written any files in this chat yet.`}):(0,j.jsx)(`ul`,{className:`min-h-0 flex-1 overflow-y-auto`,children:e.files.map(t=>(0,j.jsx)(FE,{file:t,cwd:e.cwd},t.path))})]})}function RE(e){let t=e?.defaultModel;return t?t.source===`settings`?`${t.id}, from your settings`:`${t.id}, the built-in default`:`${e?.label??`the agent`}'s own default`}function zE(e,t){let n=e.model??t?.defaultModel?.id??`Default model`,r=e.effort??t?.defaultEffort??null;return r?`${n} · ${r}`:n}function BE(e){let[t,n]=(0,_.useState)(!1),[r,i]=(0,_.useState)(``),a=e.status?.models??[],o=e.status?.efforts??[],s=e.value.model===null||a.some(t=>t.id===e.value.model),c=t=>e.onChange({...e.value,...t});return(0,j.jsxs)(BS,{open:t,onOpenChange:n,children:[(0,j.jsx)(VS,{asChild:!0,children:(0,j.jsxs)(`button`,{type:`button`,disabled:e.disabled,className:Z(e.appearance===`field`?`cs-model-field`:`cs-chip-button`),"aria-label":`Model and effort: ${zE(e.value,e.status)}. Change`,title:`Model and effort`,children:[(0,j.jsx)(`span`,{className:`truncate`,children:zE(e.value,e.status)}),(0,j.jsx)(xE,{size:12,className:`shrink-0`})]})}),(0,j.jsxs)(HS,{align:`start`,className:`w-[300px] p-0`,children:[(0,j.jsxs)(`div`,{className:`max-h-[320px] overflow-y-auto p-1`,role:`listbox`,"aria-label":`Model`,children:[(0,j.jsx)(`p`,{className:`px-2 pb-1 pt-1.5 text-[11px] font-medium uppercase tracking-[0.05em] text-muted-foreground`,children:`Model`}),(0,j.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":e.value.model===null,className:`cs-option`,onClick:()=>c({model:null}),children:[(0,j.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,j.jsx)(`span`,{className:`block text-[13px]`,children:`Default`}),(0,j.jsx)(`span`,{className:`block truncate text-[11.5px] text-muted-foreground`,children:RE(e.status)})]}),e.value.model===null?(0,j.jsx)(nE,{size:14}):null]}),a.map(t=>(0,j.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":e.value.model===t.id,className:`cs-option`,onClick:()=>c({model:t.id}),children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px]`,children:t.label}),e.value.model===t.id?(0,j.jsx)(nE,{size:14}):null]},t.id)),s?null:(0,j.jsxs)(`div`,{className:`cs-option`,"aria-selected":`true`,role:`option`,children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px]`,children:e.value.model}),(0,j.jsx)(nE,{size:14})]}),(0,j.jsx)(`div`,{className:`flex gap-1 px-1 pb-1 pt-1.5`,children:(0,j.jsx)(`input`,{value:r,onChange:e=>i(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),r.trim()&&(c({model:r.trim()}),i(``)))},placeholder:`Another model name…`,"aria-label":`Another model name`,spellCheck:!1,className:`cs-option-input`})})]}),o.length>0?(0,j.jsxs)(`div`,{className:`border-t border-border p-2`,children:[(0,j.jsx)(`p`,{className:`px-1 pb-1.5 text-[11px] font-medium uppercase tracking-[0.05em] text-muted-foreground`,children:`Thinking effort`}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-1`,role:`radiogroup`,"aria-label":`Thinking effort`,children:[null,...o].map(t=>(0,j.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":e.value.effort===t,className:Z(`cs-seg`,e.value.effort===t&&`cs-seg--on`),onClick:()=>c({effort:t}),title:t===null?`Default${e.status?.defaultEffort?` (${e.status.defaultEffort}, from your settings)`:``}`:void 0,children:t===null?`Default`:t},t??`default`))})]}):null]})]})}var VE=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function HE(e){return typeof e==`string`&&VE.test(e)}var UE=[`subject`,`character`,`style`,`mask`,`edit_target`,`composition_control`],WE=[`first_frame`,`last_frame`,`asset`,`style`];[...UE,...WE];var GE={subject:{label:`Subject`,ask:`Subject reference`,explanation:`Keeps this exact product or object recognisable: shape, materials, labels.`},character:{label:`Character`,ask:`Character reference`,explanation:`Keeps this person or character looking the same.`},style:{label:`Style`,ask:`Style reference`,explanation:`Borrows only the look (colours, lighting, medium), never the content.`},mask:{label:`Mask`,ask:`Mask`,explanation:`Marks the only area of the edited image that is allowed to change.`},edit_target:{label:`Edit this`,ask:`Image to edit`,explanation:`The image being edited; everything not asked for stays the same.`},composition_control:{label:`Composition`,ask:`Composition reference`,explanation:`Follows its layout, pose and geometry, not its appearance.`},first_frame:{label:`First frame`,ask:`First frame`,explanation:`The video starts on exactly this image.`},last_frame:{label:`Last frame`,ask:`Last frame`,explanation:`The video ends on exactly this image (needs a first frame).`},asset:{label:`Asset`,ask:`Asset reference`,explanation:`Keeps this product, object or character recognisable throughout the clip.`},extend:{label:`Extend`,ask:`Video to extend`,explanation:`The new clip continues this video from its last frame.`},restyle:{label:`Restyle`,ask:`Reference video`,explanation:`Re-renders this video: same motion and timing, a new look.`},lip_sync:{label:`Lip sync`,ask:`Lip-sync audio`,explanation:`The speech the on-screen face mouths, word for word.`}};function KE(e){return typeof e==`string`&&e in GE}var qE=[`image`,`video`,`audio`,`document`,`youtube`];function JE(e){return typeof e.control?.key==`string`&&e.control.key.length>0}function YE(e){let t=[],n=[];for(let r of e)(JE(r)?n:t).push(r);return{content:t,settings:n}}function XE(e){let{content:t,settings:n}=YE(e);if(n.length===0)return e;let r=[...t,...n];return r.every((t,n)=>t===e[n])?e:r}function ZE(e){let t=e.customComponent?.type,n=e.customComponent?.imageRole;return(t===`image`||t===`video`||t===`audio`)&&KE(n)?n:null}function QE(e,t=de){let n=(e.label??``).trim();if(n!==``)return n;let r=ZE(e);return r?GE[r].ask:t(e.name)||e.name}function $E(e){if(e.helpText)return e.helpText;let t=ZE(e);return t?GE[t].explanation:void 0}function eD(e,t=de){return XE([...e??[]]).map(e=>{let n=e.customComponent?.type??`textarea`,r=e.customComponent?.options??void 0;return{name:e.name,label:QE(e,t),hint:$E(e),group:JE(e)?`settings`:`content`,required:!!e.required,component:n,options:r&&r.length>0?r:void 0,mediaKind:qE.includes(n)?n:null,role:ZE(e),controlKey:JE(e)?e.control?.key??null:null,variable:e}})}function tD(e){return e}function nD(e){return`mandate:${e}`}function rD(e){return e.startsWith(`mandate:`)}var iD=[{value:`updated-desc`,label:`Recent`},{value:`created-desc`,label:`Created`},{value:`name-asc`,label:`A → Z`},{value:`name-desc`,label:`Z → A`},{value:`category-asc`,label:`Category`}],aD=[`active`,`both`,`archived`],oD=[{value:`active`,label:`Hide archived`,chip:`Archive`},{value:`both`,label:`Show all`,chip:`All + archived`},{value:`archived`,label:`Archived only`,chip:`Archived only`}];function sD(e){let t=aD.indexOf(e);return t<0?aD[0]:aD[(t+1)%aD.length]}function cD(e){return e===`active`||e===`archived`||e===`both`}var lD={tab:`mine`,sortBy:`updated-desc`,searchTerm:``,includedCats:[],includedTags:[],favFilter:`all`,archFilter:`active`,accessFilter:`any`,favoritesFirst:!0,listPage:1,sharedPage:1,serverMatchedIds:[],isServerSearching:!1,deepSearch:!1},uD=class extends Error{name=`AgentCatalogConfigError`;code;remedy;constructor(e){super(`${e.message} — ${e.remedy}`),this.code=e.code,this.remedy=e.remedy}},dD={publicTab:`Public`,systemBadge:`system`,archivedBadge:`Archived`,searchPlaceholder:`Search agents...`,currentAgentHeading:`Current agent`,emptyDefault:`No agents found`,emptyShared:`No shared agents found`,emptySystem:`No system agents found`,emptySignedOut:`Sign in to see your agents`,loading:`Loading...`,triggerFallback:`Agents`,triggerResolving:`Naming the agent…`,triggerUnnameable:`An agent this list cannot name`,hoverHint:`Hover an agent to preview its details, or click to select.`};function fD(e){return e.ok===!1}function pD(){let e=!1;return t=>{e||(e=!0,console.error("[associations] no errorSink port bound — using the package default. Bind the `errorSink` port on createAssociationsStore({ errorSink }) to route these into your diagnostics surface; until then they only reach the console.")),console.error(`[associations] ${t.code}: ${t.message}`,t.context??{})}}var mD={access_delta_probe:{token:`access_delta_probe`,schema:`iam`,table:`access_delta_probe`,label:`Access Delta Probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},access_delta_run:{token:`access_delta_run`,schema:`iam`,table:`access_delta_run`,label:`Access Delta Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},access_request:{token:`access_request`,schema:`iam`,table:`access_requests`,label:`Access Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`System`,referencePickable:!1,titleColumn:null,contentRole:`utility`,referenceCategory:null},account_addon:{token:`account_addon`,schema:`billing`,table:`account_addon`,label:`Account Addon`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},acquisition_block:{token:`acquisition_block`,schema:`platform`,table:`acquisition_block`,label:`Acquisition Block`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},activity:{token:`activity`,schema:`platform`,table:`activity_log`,label:`Activity Log Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_audit_log:{token:`admin_audit_log`,schema:`admin`,table:`admin_audit_log`,label:`Admin audit log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_email_log:{token:`admin_email_log`,schema:`admin`,table:`admin_email_logs`,label:`Admin email log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_markdown_sample:{token:`admin_markdown_sample`,schema:`admin`,table:`admin_markdown_samples`,label:`Admin markdown sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_user:{token:`admin_user`,schema:`admin`,table:`admins`,label:`Platform admin`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admission_config:{token:`admission_config`,schema:`content_ir`,table:`admission_config`,label:`Admission Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent:{token:`agent`,schema:`agent`,table:`definition`,label:`Agent`,baseTier:1,isComponent:!1,isModule:!0,isListed:!0,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},agent_card:{token:`agent_card`,schema:`agent`,table:`card`,label:`Agent Card`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_definition_version:{token:`agent_definition_version`,schema:`agent`,table:`definition_version`,label:`Agent Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_drift_alert:{token:`agent_drift_alert`,schema:`agent`,table:`drift_alert`,label:`Agent Drift Alert`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_exemplar:{token:`agent_exemplar`,schema:`agent`,table:`exemplar`,label:`Agent Test Case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_mandate_note:{token:`agent_mandate_note`,schema:`agent`,table:`mandate_note`,label:`Mandate Note`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_prompt_remediation:{token:`agent_prompt_remediation`,schema:`agent`,table:`prompt_remediation`,label:`Agent Prompt Remediation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_run:{token:`agent_run`,schema:`chat`,table:`agent_run`,label:`Agent Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_run_stage:{token:`agent_run_stage`,schema:`chat`,table:`agent_run_stage`,label:`Agent Run Stage`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_schedule:{token:`agent_schedule`,schema:`scheduler`,table:`agent_schedule`,label:`Agent Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_schedule_claim:{token:`agent_schedule_claim`,schema:`scheduler`,table:`agent_schedule_claim`,label:`Agent Schedule Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_shortcut:{token:`agent_shortcut`,schema:`agent`,table:`shortcut`,label:`Agent Shortcut`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},agent_surface_binding:{token:`agent_surface_binding`,schema:`platform`,table:`associations`,label:`Agent Surface Binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},agent_template:{token:`agent_template`,schema:`agent`,table:`template`,label:`Agent Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_term_list:{token:`agent_term_list`,schema:`agent`,table:`term_list`,label:`Term List`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_usage:{token:`agent_usage`,schema:`agent`,table:`usage`,label:`Agent Usage`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_api:{token:`ai_api`,schema:`ai`,table:`api`,label:`AI API`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_calls:{token:`ai_calls`,schema:`runtime`,table:`_ai_calls`,label:`AI model calls`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_endpoint:{token:`ai_endpoint`,schema:`ai`,table:`endpoint`,label:`AI Endpoint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},ai_model:{token:`ai_model`,schema:`ai`,table:`model_definition`,label:`AI Model`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_model_alias:{token:`ai_model_alias`,schema:`ai`,table:`model_alias`,label:`AI Model Alias`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_offering:{token:`ai_offering`,schema:`ai`,table:`offering`,label:`AI Offering`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_provider:{token:`ai_provider`,schema:`ai`,table:`provider`,label:`AI Provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_setting:{token:`ai_setting`,schema:`ai`,table:`setting`,label:`AI Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`key`,contentRole:null,referenceCategory:null},ai_setting_profile:{token:`ai_setting_profile`,schema:`ai`,table:`setting_profile`,label:`Settings Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`AI catalog`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_translation_cell:{token:`ai_translation_cell`,schema:`ai`,table:`translation_cell`,label:`Translation Cell`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`AI catalog`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_executions:{token:`ai_usage_executions`,schema:`runtime`,table:`_ai_usage_calls`,label:`AI usage by execution`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_hourly:{token:`ai_usage_hourly`,schema:`runtime`,table:`_ai_usage_hourly`,label:`AI usage by hour`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_hourly_watermark:{token:`ai_usage_hourly_watermark`,schema:`runtime`,table:`_ai_usage_hourly_watermark`,label:`AI usage counted through`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},analysis_result:{token:`analysis_result`,schema:`files`,table:`analysis_result`,label:`Analysis Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_form:{token:`anon_form`,schema:`custom`,table:`anon_form`,label:`Public form`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},anon_function_birth_grandfather:{token:`anon_function_birth_grandfather`,schema:`platform`,table:`anon_function_birth_grandfather`,label:`Anon Function Birth Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_hit:{token:`anon_hit`,schema:`custom`,table:`anon_hit`,label:`Anonymous rate window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_inbound:{token:`anon_inbound`,schema:`custom`,table:`anon_inbound`,label:`Inbound address`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_replay:{token:`anon_replay`,schema:`custom`,table:`anon_replay`,label:`Offline capture ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_submission:{token:`anon_submission`,schema:`custom`,table:`anon_submission`,label:`Quarantined submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_token:{token:`anon_token`,schema:`custom`,table:`anon_token`,label:`Embed token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},api_field_warning:{token:`api_field_warning`,schema:`ops`,table:`api_field_warnings`,label:`API field warning`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},api_request_log:{token:`api_request_log`,schema:`ops`,table:`api_request_log`,label:`API request log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app:{token:`app`,schema:`app`,table:`definition`,label:`App`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},app_config:{token:`app_config`,schema:`public`,table:`app_config`,label:`App config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_config_history:{token:`app_config_history`,schema:`public`,table:`app_config_history`,label:`App Config History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_definition_version:{token:`app_definition_version`,schema:`app`,table:`definition_version`,label:`App Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},app_error:{token:`app_error`,schema:`app`,table:`error`,label:`App Error`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_execution:{token:`app_execution`,schema:`app`,table:`execution`,label:`App Execution`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_instance:{token:`app_instance`,schema:`public`,table:`app_instances`,label:`App Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log:{token:`app_log`,schema:`ops`,table:`app_log`,label:`App Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log_muted_pattern:{token:`app_log_muted_pattern`,schema:`ops`,table:`app_log_muted_pattern`,label:`Muted log pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log_norm_exception:{token:`app_log_norm_exception`,schema:`ops`,table:`app_log_norm_exception`,label:`Log normalisation exception`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_rate_limit:{token:`app_rate_limit`,schema:`app`,table:`rate_limit`,label:`App Rate Limit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_setting:{token:`app_setting`,schema:`public`,table:`app_settings`,label:`App Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_sync_status:{token:`app_sync_status`,schema:`public`,table:`app_sync_status`,label:`App Sync Status`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},approach:{token:`approach`,schema:`platform`,table:`approach`,label:`Approach`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},artifact:{token:`artifact`,schema:`chat`,table:`artifact`,label:`Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},assessment:{token:`assessment`,schema:`education`,table:`assessment`,label:`Assessment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},assessment_item:{token:`assessment_item`,schema:`education`,table:`assessment_item`,label:`Assessment Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assessment_result:{token:`assessment_result`,schema:`education`,table:`assessment_result`,label:`Assessment Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assignment_session:{token:`assignment_session`,schema:`assignment`,table:`session`,label:`Assignment session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assist:{token:`assist`,schema:`platform`,table:`assists`,label:`Assist`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`platform`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},assist_producer_policy:{token:`assist_producer_policy`,schema:`platform`,table:`assist_producer_policy`,label:`Assist producer policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assist_producer_policy_history:{token:`assist_producer_policy_history`,schema:`platform`,table:`assist_producer_policy_history`,label:`Assist Producer Policy History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},association_type:{token:`association_type`,schema:`platform`,table:`association_types`,label:`Association type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assurance_level:{token:`assurance_level`,schema:`platform`,table:`assurance_level`,label:`Assurance level`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},attempt:{token:`attempt`,schema:`assignment`,table:`attempt`,label:`Attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_broken_functions:{token:`audit_broken_functions`,schema:`audit`,table:`broken_functions`,label:`Broken functions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_canonical_findings:{token:`audit_canonical_findings`,schema:`audit`,table:`canonical_findings`,label:`Canonical findings`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_exemption:{token:`audit_exemption`,schema:`meta`,table:`audit_exemption`,label:`Audit exemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_function_deps:{token:`audit_function_deps`,schema:`audit`,table:`function_deps`,label:`Function dependencies`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_function_runtime_probe:{token:`audit_function_runtime_probe`,schema:`audit`,table:`function_runtime_probe`,label:`Function runtime probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_m2m_candidates:{token:`audit_m2m_candidates`,schema:`audit`,table:`m2m_candidates`,label:`M2M candidates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_refresh_log:{token:`audit_refresh_log`,schema:`audit`,table:`refresh_log`,label:`Audit refresh log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_stale_registry:{token:`audit_stale_registry`,schema:`audit`,table:`stale_registry`,label:`Stale registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_unregistered_candidates:{token:`audit_unregistered_candidates`,schema:`audit`,table:`unregistered_candidates`,label:`Unregistered candidates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},base_entity_template:{token:`base_entity_template`,schema:`platform`,table:`_base_entity`,label:`Base entity template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_cost_event:{token:`batch_cost_event`,schema:`batch`,table:`cost_event`,label:`Batch Cost Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_provider_batch:{token:`batch_provider_batch`,schema:`batch`,table:`provider_batch`,label:`Provider Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_work_item:{token:`batch_work_item`,schema:`batch`,table:`work_item`,label:`Batch Work Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_capability:{token:`billing_capability`,schema:`billing`,table:`capability`,label:`Billing capability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_capability_limit:{token:`billing_capability_limit`,schema:`billing`,table:`capability_limit`,label:`Billing capability limit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_connect_account:{token:`billing_connect_account`,schema:`billing`,table:`connect_account`,label:`Billing connect account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_coupon:{token:`billing_coupon`,schema:`billing`,table:`coupon`,label:`Coupon`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_coupon_redemption:{token:`billing_coupon_redemption`,schema:`billing`,table:`coupon_redemption`,label:`Coupon redemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_customer:{token:`billing_customer`,schema:`billing`,table:`customer`,label:`Billing customer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_free_period_grant:{token:`billing_free_period_grant`,schema:`billing`,table:`free_period_grant`,label:`Free period grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_plan:{token:`billing_plan`,schema:`billing`,table:`plan`,label:`Billing plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_plan_limit:{token:`billing_plan_limit`,schema:`billing`,table:`plan_limit`,label:`Billing plan limit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_price:{token:`billing_price`,schema:`billing`,table:`price`,label:`Billing price`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_product:{token:`billing_product`,schema:`billing`,table:`product`,label:`Billing product`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_spend_approval:{token:`billing_spend_approval`,schema:`billing`,table:`spend_approval`,label:`Spend Approval`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_spend_guardrail:{token:`billing_spend_guardrail`,schema:`billing`,table:`spend_guardrail`,label:`Spend Guardrail`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_stripe_event:{token:`billing_stripe_event`,schema:`billing`,table:`stripe_event`,label:`Stripe webhook event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_subscription:{token:`billing_subscription`,schema:`billing`,table:`subscription`,label:`Billing subscription`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_usage_ledger:{token:`billing_usage_ledger`,schema:`billing`,table:`usage_ledger`,label:`Usage ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_usage_reset:{token:`billing_usage_reset`,schema:`billing`,table:`usage_reset`,label:`Usage reset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_user_plan:{token:`billing_user_plan`,schema:`billing`,table:`user_plan`,label:`User plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},board:{token:`board`,schema:`projects`,table:`boards`,label:`Board`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_account_binding:{token:`browser_account_binding`,schema:`browser`,table:`account_binding`,label:`Browser Account Binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_action_event:{token:`browser_action_event`,schema:`browser`,table:`action_event`,label:`Browser Action Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_authenticator_window:{token:`browser_authenticator_window`,schema:`browser`,table:`authenticator_window`,label:`Browser Authenticator Window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_capture:{token:`browser_capture`,schema:`browser`,table:`capture`,label:`Browser Capture`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_control_request:{token:`browser_control_request`,schema:`browser`,table:`control_request`,label:`Browser Control Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_handoff:{token:`browser_handoff`,schema:`browser`,table:`handoff`,label:`Browser Handoff`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_login_attempt:{token:`browser_login_attempt`,schema:`browser`,table:`login_attempt`,label:`Browser Login Attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_login_recipe:{token:`browser_login_recipe`,schema:`browser`,table:`login_recipe`,label:`Browser Login Recipe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_profile:{token:`browser_profile`,schema:`browser`,table:`profile`,label:`Cloud Browser Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_profile_checkpoint:{token:`browser_profile_checkpoint`,schema:`browser`,table:`profile_checkpoint`,label:`Browser Profile Checkpoint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_run:{token:`browser_run`,schema:`browser`,table:`run`,label:`Cloud Browser Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_site_observation:{token:`browser_site_observation`,schema:`browser`,table:`site_observation`,label:`Browser Site Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_site_policy:{token:`browser_site_policy`,schema:`browser`,table:`site_policy`,label:`Browser Site Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_stream_ticket:{token:`browser_stream_ticket`,schema:`browser`,table:`stream_ticket`,label:`Browser Stream Ticket`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},build_lock:{token:`build_lock`,schema:`campaign_watch`,table:`build_lock`,label:`Build Lock`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},calendar_event:{token:`calendar_event`,schema:`communication`,table:`calendar_event`,label:`Calendar event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_ramp_gate_run:{token:`campaign_watch_ramp_gate_run`,schema:`campaign_watch`,table:`ramp_gate_run`,label:`Ramp gate run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_switch_outbox:{token:`campaign_watch_switch_outbox`,schema:`campaign_watch`,table:`switch_outbox`,label:`Switch outbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_switch_window:{token:`campaign_watch_switch_window`,schema:`campaign_watch`,table:`switch_window`,label:`Switch window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_comment:{token:`canvas_comment`,schema:`canvas`,table:`canvas_comments`,label:`Canvas Comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},canvas_comment_like:{token:`canvas_comment_like`,schema:`canvas`,table:`canvas_comment_likes`,label:`Canvas Comment Like`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_item:{token:`canvas_item`,schema:`canvas`,table:`canvas_items`,label:`Canvas Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},canvas_item_state:{token:`canvas_item_state`,schema:`canvas`,table:`canvas_item_state`,label:`Canvas Item State`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_like:{token:`canvas_like`,schema:`canvas`,table:`canvas_likes`,label:`Canvas Like`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_score:{token:`canvas_score`,schema:`canvas`,table:`canvas_scores`,label:`Canvas Score`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},canvas_view:{token:`canvas_view`,schema:`canvas`,table:`canvas_views`,label:`Canvas View`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},capture_window:{token:`capture_window`,schema:`history`,table:`capture_window`,label:`Capture Window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},carrying_rule:{token:`carrying_rule`,schema:`custom`,table:`carrying_rule`,label:`Carrying Rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},catalog_entries_history:{token:`catalog_entries_history`,schema:`public`,table:`catalog_entries_history`,label:`Catalog Entries History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},catalog_entry:{token:`catalog_entry`,schema:`public`,table:`catalog_entries`,label:`Catalog entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},category:{token:`category`,schema:`platform`,table:`categories`,label:`Category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},change_type_default:{token:`change_type_default`,schema:`platform`,table:`change_type_default`,label:`Change type default`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},chat_user_usage_summary:{token:`chat_user_usage_summary`,schema:`chat`,table:`user_usage_summary`,label:`Chat usage summary`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},citations:{token:`citations`,schema:`legal`,table:`citations`,label:`Citations`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},class_purchase:{token:`class_purchase`,schema:`billing`,table:`class_purchase`,label:`Class Purchase`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},classifier_revision_ledger:{token:`classifier_revision_ledger`,schema:`seo`,table:`classifier_revision_ledger`,label:`Classifier Revision Ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_callable_door:{token:`client_callable_door`,schema:`platform`,table:`client_callable_door`,label:`Client Callable Door`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_callable_door_retirement:{token:`client_callable_door_retirement`,schema:`platform`,table:`client_callable_door_retirement`,label:`Client Callable Door Retirement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_excluded_column_unregistered:{token:`client_excluded_column_unregistered`,schema:`platform`,table:`client_excluded_column_unregistered`,label:`Client Excluded Column Unregistered`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cmp_entry:{token:`cmp_entry`,schema:`agent`,table:`cmp_comparison_entries`,label:`Comparison Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cmp_feedback:{token:`cmp_feedback`,schema:`agent`,table:`cmp_response_feedback`,label:`Comparison Response Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},code_file:{token:`code_file`,schema:`code`,table:`code_files`,label:`Code File`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},code_folder:{token:`code_folder`,schema:`code`,table:`code_file_folders`,label:`Code Folder`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},code_repository:{token:`code_repository`,schema:`code`,table:`code_repositories`,label:`Code Repository`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},coding_session:{token:`coding_session`,schema:`chat`,table:`coding_session`,label:`Coding Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},coding_session_entry:{token:`coding_session_entry`,schema:`chat`,table:`coding_session_entry`,label:`Coding Session Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},comment:{token:`comment`,schema:`platform`,table:`comments`,label:`Comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_allocation:{token:`commerce_asset_allocation`,schema:`commerce`,table:`asset_allocation`,label:`Asset Allocation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_grading:{token:`commerce_asset_grading`,schema:`commerce`,table:`asset_grading`,label:`Asset Grading`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_identifier:{token:`commerce_asset_identifier`,schema:`commerce`,table:`asset_identifier`,label:`Asset Identifier`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_lot_event:{token:`commerce_asset_lot_event`,schema:`commerce`,table:`asset_lot_event`,label:`Asset Lot Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_mandate_result:{token:`commerce_asset_mandate_result`,schema:`commerce`,table:`asset_mandate_result`,label:`Asset Mandate Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_price_factor:{token:`commerce_asset_price_factor`,schema:`commerce`,table:`asset_price_factor`,label:`Asset Price Factor`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_reshoot_request:{token:`commerce_asset_reshoot_request`,schema:`commerce`,table:`asset_reshoot_request`,label:`Asset Reshoot Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_review:{token:`commerce_asset_review`,schema:`commerce`,table:`asset_review`,label:`Asset Review`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_unknown:{token:`commerce_asset_unknown`,schema:`commerce`,table:`asset_unknown`,label:`Asset Unknown`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_certified_printer:{token:`commerce_certified_printer`,schema:`commerce`,table:`certified_printer`,label:`Certified Printer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_cloud_sync_connection:{token:`commerce_cloud_sync_connection`,schema:`commerce`,table:`cloud_sync_connection`,label:`Cloud Sync Connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_business_policy:{token:`commerce_ebay_business_policy`,schema:`commerce`,table:`ebay_business_policy`,label:`eBay Business Policy`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category:{token:`commerce_ebay_category`,schema:`commerce`,table:`ebay_category`,label:`eBay Category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category_aspect:{token:`commerce_ebay_category_aspect`,schema:`commerce`,table:`ebay_category_aspect`,label:`eBay Category Aspect`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category_tree:{token:`commerce_ebay_category_tree`,schema:`commerce`,table:`ebay_category_tree`,label:`eBay Category Tree`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_custom_policy:{token:`commerce_ebay_custom_policy`,schema:`commerce`,table:`ebay_custom_policy`,label:`eBay Custom Policy`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item:{token:`commerce_ebay_inventory_item`,schema:`commerce`,table:`ebay_inventory_item`,label:`eBay Inventory Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item_group:{token:`commerce_ebay_inventory_item_group`,schema:`commerce`,table:`ebay_inventory_item_group`,label:`eBay Inventory Item Group`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item_group_member:{token:`commerce_ebay_inventory_item_group_member`,schema:`commerce`,table:`ebay_inventory_item_group_member`,label:`eBay Inventory Item Group Member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_location:{token:`commerce_ebay_inventory_location`,schema:`commerce`,table:`ebay_inventory_location`,label:`eBay Inventory Location`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_listing:{token:`commerce_ebay_listing`,schema:`commerce`,table:`ebay_listing`,label:`eBay Listing`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_marketplace_policy:{token:`commerce_ebay_marketplace_policy`,schema:`commerce`,table:`ebay_marketplace_policy`,label:`eBay Marketplace Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_media_asset:{token:`commerce_ebay_media_asset`,schema:`commerce`,table:`ebay_media_asset`,label:`eBay Media Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_destination:{token:`commerce_ebay_notification_destination`,schema:`commerce`,table:`ebay_notification_destination`,label:`eBay Notification Destination`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_event:{token:`commerce_ebay_notification_event`,schema:`commerce`,table:`ebay_notification_event`,label:`eBay Notification Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_subscription:{token:`commerce_ebay_notification_subscription`,schema:`commerce`,table:`ebay_notification_subscription`,label:`eBay Notification Subscription`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_topic:{token:`commerce_ebay_notification_topic`,schema:`commerce`,table:`ebay_notification_topic`,label:`eBay Notification Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_offer:{token:`commerce_ebay_offer`,schema:`commerce`,table:`ebay_offer`,label:`eBay Offer`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_order:{token:`commerce_ebay_order`,schema:`commerce`,table:`ebay_order`,label:`eBay Order`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_order_line_item:{token:`commerce_ebay_order_line_item`,schema:`commerce`,table:`ebay_order_line_item`,label:`eBay Order Line Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_shipping_fulfillment:{token:`commerce_ebay_shipping_fulfillment`,schema:`commerce`,table:`ebay_shipping_fulfillment`,label:`eBay Shipping Fulfillment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_store_category:{token:`commerce_ebay_store_category`,schema:`commerce`,table:`ebay_store_category`,label:`eBay Store Category`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_human_correction:{token:`commerce_human_correction`,schema:`commerce`,table:`human_correction`,label:`Human Correction`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_artifact:{token:`commerce_intake_artifact`,schema:`commerce`,table:`intake_artifact`,label:`Intake Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_asset:{token:`commerce_intake_asset`,schema:`commerce`,table:`intake_asset`,label:`Intake Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_batch:{token:`commerce_intake_batch`,schema:`commerce`,table:`intake_batch`,label:`Intake Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_label_batch:{token:`commerce_label_batch`,schema:`commerce`,table:`label_batch`,label:`Label Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_label_code:{token:`commerce_label_code`,schema:`commerce`,table:`label_code`,label:`Label Code`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_account:{token:`commerce_marketplace_account`,schema:`commerce`,table:`marketplace_account`,label:`Marketplace Account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_account_deletion_audit:{token:`commerce_marketplace_account_deletion_audit`,schema:`commerce`,table:`marketplace_account_deletion_audit`,label:`Marketplace Account Deletion Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_api_call:{token:`commerce_marketplace_api_call`,schema:`commerce`,table:`marketplace_api_call`,label:`Marketplace API Call`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_rate_budget:{token:`commerce_marketplace_rate_budget`,schema:`commerce`,table:`marketplace_rate_budget`,label:`Marketplace Rate Budget`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_site:{token:`commerce_marketplace_site`,schema:`commerce`,table:`marketplace_site`,label:`Marketplace Site`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_sync_run:{token:`commerce_marketplace_sync_run`,schema:`commerce`,table:`marketplace_sync_run`,label:`Marketplace Sync Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_prediction_outcome:{token:`commerce_prediction_outcome`,schema:`commerce`,table:`prediction_outcome`,label:`Prediction Outcome`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_print_order:{token:`commerce_print_order`,schema:`commerce`,table:`print_order`,label:`Print Order`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product:{token:`commerce_product`,schema:`commerce`,table:`product`,label:`Product`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_channel_ref:{token:`commerce_product_channel_ref`,schema:`commerce`,table:`product_channel_ref`,label:`Product Channel Reference`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_media:{token:`commerce_product_media`,schema:`commerce`,table:`product_media`,label:`Product Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_variant:{token:`commerce_product_variant`,schema:`commerce`,table:`product_variant`,label:`Product Variant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_recall_audit:{token:`commerce_recall_audit`,schema:`commerce`,table:`recall_audit`,label:`Recall Audit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},communication_calendar_selected_snapshot_state:{token:`communication_calendar_selected_snapshot_state`,schema:`communication`,table:`calendar_selected_snapshot_state`,label:`Calendar snapshot state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},communication_channel_readiness:{token:`communication_channel_readiness`,schema:`communication`,table:`channel_readiness`,label:`Channel readiness`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},comparison_set:{token:`comparison_set`,schema:`agent`,table:`cmp_comparison_sets`,label:`Comparison Set`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},contact_medium:{token:`contact_medium`,schema:`crm`,table:`contact_medium`,label:`Contact Medium`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_value`,contentRole:`utility`,referenceCategory:null},contact_submission:{token:`contact_submission`,schema:`communication`,table:`contact_submissions`,label:`Contact Submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},content_certification:{token:`content_certification`,schema:`education`,table:`content_certification`,label:`Content certification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind:{token:`content_ir_kind`,schema:`content_ir`,table:`kind_definition`,label:`Content-IR Kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},content_ir_kind_component:{token:`content_ir_kind_component`,schema:`content_ir`,table:`kind_component`,label:`Kind Component`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_component_incident:{token:`content_ir_kind_component_incident`,schema:`content_ir`,table:`kind_component_incident`,label:`Kind Component Incident`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_conformance:{token:`content_ir_kind_conformance`,schema:`content_ir`,table:`kind_conformance`,label:`Shape Conformance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_edge:{token:`content_ir_kind_edge`,schema:`content_ir`,table:`kind_edge`,label:`Content-IR Kind Edge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_example:{token:`content_ir_kind_example`,schema:`content_ir`,table:`kind_example`,label:`Kind Example`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},content_ir_kind_instance:{token:`content_ir_kind_instance`,schema:`content_ir`,table:`kind_instance`,label:`Saved Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},content_ir_kind_surface:{token:`content_ir_kind_surface`,schema:`content_ir`,table:`kind_surface`,label:`Kind Surface`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_lane:{token:`content_lane`,schema:`iam`,table:`content_lane`,label:`Content Lane`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_access_log:{token:`context_access_log`,schema:`context`,table:`context_access_log`,label:`Context access log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_item:{token:`context_item`,schema:`context`,table:`context_items`,label:`Context Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},context_item_suggestion:{token:`context_item_suggestion`,schema:`rag`,table:`context_item_suggestions`,label:`Context Item Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_item_value:{token:`context_item_value`,schema:`context`,table:`context_item_values`,label:`Record Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_value_refs:{token:`context_value_refs`,schema:`context`,table:`context_value_refs`,label:`Context Value Refs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},conversation:{token:`conversation`,schema:`chat`,table:`conversation`,label:`Conversation`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Outputs`,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},conversation_value:{token:`conversation_value`,schema:`chat`,table:`conversation_value`,label:`Conversation Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:`key`,contentRole:null,referenceCategory:null},courts:{token:`courts`,schema:`legal`,table:`courts`,label:`Courts`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},credential_attachment:{token:`credential_attachment`,schema:`users`,table:`credential_attachments`,label:`Credential attachment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},credential_item:{token:`credential_item`,schema:`users`,table:`credential_items`,label:`Credential item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},credential_mutation_receipt:{token:`credential_mutation_receipt`,schema:`users`,table:`credential_mutation_receipts`,label:`Credential Mutation Receipt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_address:{token:`crm_address`,schema:`crm`,table:`address`,label:`Address`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},crm_affiliation:{token:`crm_affiliation`,schema:`crm`,table:`affiliation`,label:`Affiliation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},crm_blocklist_entry:{token:`crm_blocklist_entry`,schema:`crm`,table:`blocklist_entry`,label:`Blocklist Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_contact_candidate:{token:`crm_contact_candidate`,schema:`crm`,table:`contact_candidate`,label:`Contact Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_deal:{token:`crm_deal`,schema:`crm`,table:`deal`,label:`Deal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},crm_deal_stage_event:{token:`crm_deal_stage_event`,schema:`crm`,table:`deal_stage_event`,label:`Deal Stage Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_enrichment_call:{token:`crm_enrichment_call`,schema:`crm`,table:`enrichment_call`,label:`Enrichment Call`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_interaction:{token:`crm_interaction`,schema:`crm`,table:`interaction`,label:`Interaction`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`subject`,contentRole:null,referenceCategory:null},crm_merge_candidate:{token:`crm_merge_candidate`,schema:`crm`,table:`merge_candidate`,label:`Merge Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_outreach_list:{token:`crm_outreach_list`,schema:`crm`,table:`outreach_list`,label:`Outreach List`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},crm_outreach_list_member:{token:`crm_outreach_list_member`,schema:`crm`,table:`outreach_list_member`,label:`Outreach List Member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_party_merge:{token:`crm_party_merge`,schema:`crm`,table:`party_merge`,label:`Party Merge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_party_research:{token:`crm_party_research`,schema:`crm`,table:`party_research`,label:`Private contact research`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`CRM`,referencePickable:!1,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},crm_registry_ingest_run:{token:`crm_registry_ingest_run`,schema:`crm`,table:`registry_ingest_run`,label:`Registry Ingest Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_registry_source:{token:`crm_registry_source`,schema:`crm`,table:`registry_source`,label:`Registry Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_claim:{token:`crm_sending_claim`,schema:`crm`,table:`sending_claim`,label:`Sending claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_event:{token:`crm_sending_event`,schema:`crm`,table:`sending_event`,label:`Sending Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`subject`,contentRole:null,referenceCategory:null},crm_sending_identity:{token:`crm_sending_identity`,schema:`crm`,table:`sending_identity`,label:`Sending Identity`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_identity_check:{token:`crm_sending_identity_check`,schema:`crm`,table:`sending_identity_check`,label:`Sending Check`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`check_kind`,contentRole:null,referenceCategory:null},crm_sending_policy:{token:`crm_sending_policy`,schema:`crm`,table:`sending_policy`,label:`Sending Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_agent_table_trust:{token:`custom_agent_table_trust`,schema:`custom`,table:`agent_table_trust`,label:`Agent table trust`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_agg_digest_checked:{token:`custom_agg_digest_checked`,schema:`custom`,table:`agg_digest_checked`,label:`Aggregate digest checked`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_entity_definition:{token:`custom_entity_definition`,schema:`platform`,table:`custom_entity_definition`,label:`Custom Object`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_field_definition:{token:`custom_field_definition`,schema:`platform`,table:`custom_field_definition`,label:`Custom Field`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_field_target:{token:`custom_field_target`,schema:`platform`,table:`custom_field_target`,label:`Custom Field Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_io_outbox_consumer:{token:`custom_io_outbox_consumer`,schema:`custom`,table:`io_outbox_consumer`,label:`Outbox consumer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_io_outbox_consumption:{token:`custom_io_outbox_consumption`,schema:`custom`,table:`io_outbox_consumption`,label:`Outbox consumption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_record:{token:`custom_record`,schema:`platform`,table:`custom_record`,label:`Custom Record`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_share_tails_mine_repair:{token:`custom_share_tails_mine_repair`,schema:`custom`,table:`_share_tails_mine_repair`,label:`Share tails repair`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_template:{token:`custom_template`,schema:`custom`,table:`template`,label:`Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_template_install:{token:`custom_template_install`,schema:`custom`,table:`template_install`,label:`Template install`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_agent_memory:{token:`cx_agent_memory`,schema:`chat`,table:`agent_memory`,label:`Agent Memory`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!0,titleColumn:`key`,contentRole:null,referenceCategory:null},cx_agent_plan:{token:`cx_agent_plan`,schema:`chat`,table:`agent_plan`,label:`Agent Plan`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},cx_agent_task:{token:`cx_agent_task`,schema:`chat`,table:`agent_task`,label:`Agent Task`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},cx_code_edit:{token:`cx_code_edit`,schema:`chat`,table:`code_edit`,label:`Code Edit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_code_message_file:{token:`cx_code_message_file`,schema:`chat`,table:`code_message_file`,label:`Code Message File`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_media:{token:`cx_media`,schema:`chat`,table:`media`,label:`Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_observational_memory:{token:`cx_observational_memory`,schema:`chat`,table:`observational_memory`,label:`Observational Memory`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_observational_memory_event:{token:`cx_observational_memory_event`,schema:`chat`,table:`observational_memory_event`,label:`Observational Memory Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_pending_injection:{token:`cx_pending_injection`,schema:`chat`,table:`pending_injection`,label:`Pending Injection`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_request:{token:`cx_request`,schema:`chat`,table:`request`,label:`Conversation Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_request_snapshot:{token:`cx_request_snapshot`,schema:`chat`,table:`request_snapshot`,label:`Request Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_tool_trace:{token:`cx_tool_trace`,schema:`chat`,table:`tool_trace`,label:`Tool Trace`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_user_request:{token:`cx_user_request`,schema:`chat`,table:`user_request`,label:`User Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_user_todo:{token:`cx_user_todo`,schema:`chat`,table:`user_todo`,label:`User Todo`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},data_rights_event:{token:`data_rights_event`,schema:`education`,table:`data_rights_event`,label:`Data rights event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},data_store:{token:`data_store`,schema:`rag`,table:`data_stores`,label:`Data Store`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},data_store_members:{token:`data_store_members`,schema:`rag`,table:`data_store_members`,label:`Data Store Members`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ddl_guard_log:{token:`ddl_guard_log`,schema:`platform`,table:`ddl_guard_log`,label:`DDL guard log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},deck_suggestion:{token:`deck_suggestion`,schema:`education`,table:`deck_suggestion`,label:`Deck Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_class_exemption:{token:`definer_class_exemption`,schema:`iam`,table:`definer_class_exemption`,label:`Definer Class Exemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_client_grant_grandfather:{token:`definer_client_grant_grandfather`,schema:`platform`,table:`definer_client_grant_grandfather`,label:`Definer Client Grant Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_grant_baseline:{token:`definer_grant_baseline`,schema:`hr`,table:`definer_grant_baseline`,label:`Definer Grant Baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},deprecated_relation:{token:`deprecated_relation`,schema:`platform`,table:`deprecated_relations`,label:`Deprecated relation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},derive_run:{token:`derive_run`,schema:`docproc`,table:`derive_runs`,label:`Derive Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dev_login_audit:{token:`dev_login_audit`,schema:`admin`,table:`dev_login_audit`,label:`Dev login audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_entry:{token:`dict_entry`,schema:`dictionary`,table:`dict_entries`,label:`Dictionary entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_provider_publication:{token:`dict_provider_publication`,schema:`dictionary`,table:`dict_provider_publication`,label:`Dict Provider Publication`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_setting:{token:`dict_setting`,schema:`dictionary`,table:`dict_settings`,label:`Dict Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_conversation:{token:`dm_conversation`,schema:`communication`,table:`dm_conversations`,label:`Direct Conversation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_message:{token:`dm_message`,schema:`communication`,table:`dm_messages`,label:`Direct Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_participant:{token:`dm_participant`,schema:`communication`,table:`dm_conversation_participants`,label:`DM Conversation Participant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},doc_render:{token:`doc_render`,schema:`custom`,table:`doc_render`,label:`Rendered Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},doc_signature:{token:`doc_signature`,schema:`custom`,table:`doc_signature`,label:`Document Signature`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dockets:{token:`dockets`,schema:`legal`,table:`dockets`,label:`Dockets`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},document:{token:`document`,schema:`content`,table:`document`,label:`Markdown document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:`title`,contentRole:`hybrid`,referenceCategory:null},document_version:{token:`document_version`,schema:`content`,table:`document_version`,label:`Document Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},domain_classification:{token:`domain_classification`,schema:`platform`,table:`domain_classification`,label:`Domain Classification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},edge_payload_kind:{token:`edge_payload_kind`,schema:`platform`,table:`edge_payload_kind`,label:`Edge payload kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_device:{token:`egress_device`,schema:`platform`,table:`egress_device`,label:`Home connection computer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_pairing:{token:`egress_pairing`,schema:`platform`,table:`egress_pairing`,label:`Home connection pairing`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_ticket:{token:`egress_ticket`,schema:`platform`,table:`egress_ticket`,label:`Home connection ticket`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},emails:{token:`emails`,schema:`communication`,table:`emails`,label:`Emails`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embedding_cache:{token:`embedding_cache`,schema:`rag`,table:`embedding_cache`,label:`Embedding Cache`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_google_gemini_2_1536:{token:`embeddings_google_gemini_2_1536`,schema:`rag`,table:`embeddings_google_gemini_2_1536`,label:`Embeddings Google Gemini 2 1536`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_oai_3_small_1536:{token:`embeddings_oai_3_small_1536`,schema:`rag`,table:`embeddings_oai_3_small_1536`,label:`Embeddings Oai 3 Small 1536`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_voyage_4_large_1024:{token:`embeddings_voyage_4_large_1024`,schema:`rag`,table:`embeddings_voyage_4_large_1024`,label:`Embeddings Voyage 4 Large 1024`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_voyage_code_3_1024:{token:`embeddings_voyage_code_3_1024`,schema:`rag`,table:`embeddings_voyage_code_3_1024`,label:`Embeddings Voyage Code 3 1024`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},endpoint_family_sweep_state:{token:`endpoint_family_sweep_state`,schema:`web`,table:`endpoint_family_sweep_state`,label:`Endpoint Family Sweep State`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},engine_owner_task:{token:`engine_owner_task`,schema:`seo`,table:`engine_owner_task`,label:`Engine Owner Task`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_grant:{token:`entity_grant`,schema:`platform`,table:`entity_grants`,label:`Entity grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_protected_value:{token:`entity_protected_value`,schema:`custom`,table:`entity_protected_value`,label:`Protected field value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_protected_value_version:{token:`entity_protected_value_version`,schema:`custom`,table:`entity_protected_value_version`,label:`Protected field value version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_relationship:{token:`entity_relationship`,schema:`platform`,table:`entity_relationships`,label:`Entity relationship`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_type:{token:`entity_type`,schema:`platform`,table:`entity_types`,label:`Entity type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_campaign:{token:`esign_campaign`,schema:`esign`,table:`campaign`,label:`Signature campaign`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_campaign_member:{token:`esign_campaign_member`,schema:`esign`,table:`campaign_member`,label:`Campaign member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_consent_disclosure:{token:`esign_consent_disclosure`,schema:`esign`,table:`consent_disclosure`,label:`E-sign consent disclosure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope:{token:`esign_envelope`,schema:`esign`,table:`envelope`,label:`Signature envelope`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_certificate:{token:`esign_envelope_certificate`,schema:`esign`,table:`envelope_certificate`,label:`Completion certificate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_document:{token:`esign_envelope_document`,schema:`esign`,table:`envelope_document`,label:`Envelope document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_event:{token:`esign_envelope_event`,schema:`esign`,table:`envelope_event`,label:`Envelope event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_external_ref:{token:`esign_envelope_external_ref`,schema:`esign`,table:`envelope_external_ref`,label:`Envelope external reference`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_signer:{token:`esign_envelope_signer`,schema:`esign`,table:`envelope_signer`,label:`Envelope signer`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_provider:{token:`esign_provider`,schema:`esign`,table:`provider`,label:`E-sign provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_provider_binding:{token:`esign_provider_binding`,schema:`esign`,table:`provider_binding`,label:`E-sign provider binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_signing_key:{token:`esign_signing_key`,schema:`esign`,table:`signing_key`,label:`E-sign certificate signing key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},execution_event_cursor:{token:`execution_event_cursor`,schema:`runtime`,table:`execution_event_cursor`,label:`Execution event cursor`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},extension_auth_code:{token:`extension_auth_code`,schema:`extend`,table:`extension_auth_codes`,label:`Extension auth code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},external_link:{token:`external_link`,schema:`custom`,table:`external_link`,label:`External Link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},external_source:{token:`external_source`,schema:`custom`,table:`external_source`,label:`External Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},extract_sweep_state:{token:`extract_sweep_state`,schema:`workflow`,table:`extract_sweep_state`,label:`Extract sweep state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},fc_card:{token:`fc_card`,schema:`education`,table:`fc_card`,label:`Flashcard`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`front`,contentRole:null,referenceCategory:null},fc_detail:{token:`fc_detail`,schema:`education`,table:`fc_detail`,label:`Flashcard Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},fc_set:{token:`fc_set`,schema:`education`,table:`fc_set`,label:`Flashcard Deck`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},feature_doc:{token:`feature_doc`,schema:`admin`,table:`feature_docs`,label:`Feature Doc`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`documentation`,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},feature_knob:{token:`feature_knob`,schema:`platform`,table:`feature_knob`,label:`Feature Knob`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},feedback_comments:{token:`feedback_comments`,schema:`users`,table:`feedback_comments`,label:`Feedback Comments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},feedback_user_messages:{token:`feedback_user_messages`,schema:`users`,table:`feedback_user_messages`,label:`Feedback User Messages`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file:{token:`file`,schema:`files`,table:`files`,label:`File`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`file_name`,contentRole:`source`,referenceCategory:null},file_analysis:{token:`file_analysis`,schema:`files`,table:`analysis`,label:`File Analysis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_entities:{token:`file_entities`,schema:`files`,table:`entities`,label:`Extracted Term`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},file_overrides:{token:`file_overrides`,schema:`files`,table:`overrides`,label:`File Override`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_page_annotations:{token:`file_page_annotations`,schema:`files`,table:`page_annotations`,label:`Page Annotation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},file_pages:{token:`file_pages`,schema:`files`,table:`pages`,label:`File Page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_rag_job:{token:`file_rag_job`,schema:`files`,table:`file_rag_jobs`,label:`File RAG job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_version:{token:`file_version`,schema:`files`,table:`file_versions`,label:`File Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Sources`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_account_tier:{token:`files_account_tier`,schema:`files`,table:`account_tiers`,label:`File account tier`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_machine_written_prefix:{token:`files_machine_written_prefix`,schema:`files`,table:`machine_written_prefixes`,label:`Machine-Written Prefix`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_sync_mapping:{token:`files_sync_mapping`,schema:`files`,table:`sync_mappings`,label:`Sync Mapping`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_user_account:{token:`files_user_account`,schema:`files`,table:`user_account`,label:`File account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},flexible_data:{token:`flexible_data`,schema:`platform`,table:`flexible_data`,label:`Flexible Data`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},folder:{token:`folder`,schema:`files`,table:`folders`,label:`Folder`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`folder_name`,contentRole:`source`,referenceCategory:null},function_contract:{token:`function_contract`,schema:`hr`,table:`function_contract`,label:`Function Contract`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},game_badge:{token:`game_badge`,schema:`education`,table:`game_badge`,label:`Game Badge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},game_result:{token:`game_result`,schema:`education`,table:`game_result`,label:`Game Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},game_room:{token:`game_room`,schema:`education`,table:`game_room`,label:`Game Room`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution:{token:`global_execution`,schema:`runtime`,table:`global_execution`,label:`Runtime Execution`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_checkpoint:{token:`global_execution_checkpoint`,schema:`runtime`,table:`global_execution_checkpoint`,label:`Runtime Checkpoint`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_control:{token:`global_execution_control`,schema:`runtime`,table:`global_execution_control`,label:`Global execution control`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_event:{token:`global_execution_event`,schema:`runtime`,table:`global_execution_event`,label:`Runtime Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_meter_entry:{token:`global_meter_entry`,schema:`runtime`,table:`global_meter_entry`,label:`Runtime Meter Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},global_origin:{token:`global_origin`,schema:`runtime`,table:`global_origin`,label:`Runtime Origin`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_request:{token:`global_request`,schema:`runtime`,table:`global_request`,label:`Runtime Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},google_document:{token:`google_document`,schema:`workbench`,table:`google_document`,label:`Google document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},growth_loop_event:{token:`growth_loop_event`,schema:`growth`,table:`loop_event`,label:`Growth Loop Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},growth_loop_run:{token:`growth_loop_run`,schema:`growth`,table:`loop_run`,label:`Growth Loop Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},growth_loop_stage_run:{token:`growth_loop_stage_run`,schema:`growth`,table:`loop_stage_run`,label:`Growth Loop Stage Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guardian_link:{token:`guardian_link`,schema:`education`,table:`guardian_link`,label:`Guardian link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_conversion_audit:{token:`guest_conversion_audit`,schema:`users`,table:`guest_conversion_audit`,label:`Guest conversion audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_execution_log:{token:`guest_execution_log`,schema:`users`,table:`guest_execution_log`,label:`Guest Execution Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_executions:{token:`guest_executions`,schema:`users`,table:`guest_executions`,label:`Guest Executions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guided_checklist_run:{token:`guided_checklist_run`,schema:`platform`,table:`guided_checklist_run`,label:`Guided Checklist Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},heatmap_save:{token:`heatmap_save`,schema:`workbench`,table:`heatmap_saves`,label:`Heatmap Save`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hindsight_enrollment:{token:`hindsight_enrollment`,schema:`hindsight`,table:`enrollment`,label:`Hindsight Enrollment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},hindsight_finding:{token:`hindsight_finding`,schema:`hindsight`,table:`finding`,label:`Hindsight Finding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_regression_case:{token:`hindsight_regression_case`,schema:`hindsight`,table:`regression_case`,label:`Regression Case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_replay:{token:`hindsight_replay`,schema:`hindsight`,table:`replay`,label:`Hindsight Replay`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_replay_step:{token:`hindsight_replay_step`,schema:`hindsight`,table:`replay_step`,label:`Wire Replay Step`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_review:{token:`hindsight_review`,schema:`hindsight`,table:`review`,label:`Hindsight Review`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_access_audit:{token:`hr_access_audit`,schema:`hr`,table:`access_audit`,label:`Access audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_access_role:{token:`hr_access_role`,schema:`hr`,table:`access_role`,label:`HR access role`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_accommodation_request:{token:`hr_accommodation_request`,schema:`hr`,table:`accommodation_request`,label:`Accommodation request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_ai_evidence:{token:`hr_ai_evidence`,schema:`hr`,table:`ai_evidence`,label:`AI evidence`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_alert_routing_rule:{token:`hr_alert_routing_rule`,schema:`hr`,table:`alert_routing_rule`,label:`Alert routing rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_application:{token:`hr_application`,schema:`hr`,table:`application`,label:`Application`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_approval_authority:{token:`hr_approval_authority`,schema:`hr`,table:`approval_authority`,label:`Approval authority`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_approval_delegation:{token:`hr_approval_delegation`,schema:`hr`,table:`approval_delegation`,label:`Approval delegation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_asset:{token:`hr_asset`,schema:`hr`,table:`asset`,label:`Asset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_asset_assignment:{token:`hr_asset_assignment`,schema:`hr`,table:`asset_assignment`,label:`Asset assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_attendance_exception:{token:`hr_attendance_exception`,schema:`hr`,table:`attendance_exception`,label:`Attendance exception`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_auto_close_rule:{token:`hr_auto_close_rule`,schema:`hr`,table:`auto_close_rule`,label:`Auto-close rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_availability:{token:`hr_availability`,schema:`hr`,table:`availability`,label:`Availability`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_background_check:{token:`hr_background_check`,schema:`hr`,table:`background_check`,label:`Background check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_benefits_event:{token:`hr_benefits_event`,schema:`hr`,table:`benefits_event`,label:`Benefits event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_calculation_snapshot:{token:`hr_calculation_snapshot`,schema:`hr`,table:`calculation_snapshot`,label:`Calculation snapshot`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_candidate:{token:`hr_candidate`,schema:`hr`,table:`candidate`,label:`Candidate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`preferred_name`,contentRole:null,referenceCategory:null},hr_candidate_conversion:{token:`hr_candidate_conversion`,schema:`hr`,table:`candidate_conversion`,label:`Candidate conversion`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_candidate_message:{token:`hr_candidate_message`,schema:`hr`,table:`candidate_message`,label:`Candidate message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_careers_portal:{token:`hr_careers_portal`,schema:`hr`,table:`careers_portal`,label:`Careers portal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},hr_checklist_item:{token:`hr_checklist_item`,schema:`hr`,table:`checklist_item`,label:`Checklist item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_checklist_run:{token:`hr_checklist_run`,schema:`hr`,table:`checklist_run`,label:`Checklist run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_checklist_template:{token:`hr_checklist_template`,schema:`hr`,table:`checklist_template`,label:`Checklist template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_checklist_template_item:{token:`hr_checklist_template_item`,schema:`hr`,table:`checklist_template_item`,label:`Checklist template item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_compensation:{token:`hr_compensation`,schema:`hr`,table:`compensation`,label:`Compensation record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_corrective_action:{token:`hr_corrective_action`,schema:`hr`,table:`corrective_action`,label:`Corrective action`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_course:{token:`hr_course`,schema:`hr`,table:`course`,label:`Course`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_course_version:{token:`hr_course_version`,schema:`hr`,table:`course_version`,label:`Course version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_credential:{token:`hr_credential`,schema:`hr`,table:`credential`,label:`Credential`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_crew:{token:`hr_crew`,schema:`hr`,table:`crew`,label:`Crew`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_deduction_code:{token:`hr_deduction_code`,schema:`hr`,table:`deduction_code`,label:`Deduction code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_department:{token:`hr_department`,schema:`hr`,table:`department`,label:`Department`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_derived_grant:{token:`hr_derived_grant`,schema:`hr`,table:`derived_grant`,label:`Derived grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_disposition_event:{token:`hr_disposition_event`,schema:`hr`,table:`disposition_event`,label:`Disposition event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_earning_code:{token:`hr_earning_code`,schema:`hr`,table:`earning_code`,label:`Earning code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_eeo_response:{token:`hr_eeo_response`,schema:`hr`,table:`eeo_response`,label:`EEO self-identification response`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_emergency_contact:{token:`hr_emergency_contact`,schema:`hr`,table:`emergency_contact`,label:`Emergency contact`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employee:{token:`hr_employee`,schema:`hr`,table:`employee`,label:`Employee`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:`container`,referenceCategory:null},hr_employee_private:{token:`hr_employee_private`,schema:`hr`,table:`employee_private`,label:`Employee private record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employer_profile:{token:`hr_employer_profile`,schema:`hr`,table:`employer_profile`,label:`Employer profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`legal_name`,contentRole:null,referenceCategory:null},hr_employment:{token:`hr_employment`,schema:`hr`,table:`employment`,label:`Employment spell`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employment_pin:{token:`hr_employment_pin`,schema:`hr`,table:`employment_pin`,label:`Employment PIN`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_engagement:{token:`hr_engagement`,schema:`hr`,table:`engagement`,label:`Engagement`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_establishment:{token:`hr_establishment`,schema:`hr`,table:`establishment`,label:`Establishment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_external_identity:{token:`hr_external_identity`,schema:`hr`,table:`external_identity`,label:`External identity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_field_policy:{token:`hr_field_policy`,schema:`hr`,table:`field_policy`,label:`Self-service field policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_holiday:{token:`hr_holiday`,schema:`hr`,table:`holiday`,label:`Holiday`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_holiday_calendar:{token:`hr_holiday_calendar`,schema:`hr`,table:`holiday_calendar`,label:`Holiday calendar`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_i9:{token:`hr_i9`,schema:`hr`,table:`i9`,label:`Form I-9`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_i9_document:{token:`hr_i9_document`,schema:`hr`,table:`i9_document`,label:`I-9 document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_incident:{token:`hr_incident`,schema:`hr`,table:`incident`,label:`Incident`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_incident_party:{token:`hr_incident_party`,schema:`hr`,table:`incident_party`,label:`Incident party`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_interview:{token:`hr_interview`,schema:`hr`,table:`interview`,label:`Interview`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_interview_kit:{token:`hr_interview_kit`,schema:`hr`,table:`interview_kit`,label:`Interview kit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_job_title:{token:`hr_job_title`,schema:`hr`,table:`job_title`,label:`Job title`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_jurisdiction:{token:`hr_jurisdiction`,schema:`hr`,table:`jurisdiction`,label:`Jurisdiction`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_jurisdiction_rule:{token:`hr_jurisdiction_rule`,schema:`hr`,table:`jurisdiction_rule`,label:`Jurisdiction rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_class:{token:`hr_jurisdiction_rule_class`,schema:`hr`,table:`jurisdiction_rule_class`,label:`Jurisdiction rule class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_org_decision:{token:`hr_jurisdiction_rule_org_decision`,schema:`hr`,table:`jurisdiction_rule_org_decision`,label:`Jurisdiction rule org decision`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_test:{token:`hr_jurisdiction_rule_test`,schema:`hr`,table:`jurisdiction_rule_test`,label:`Jurisdiction rule fixture`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_kiosk_device:{token:`hr_kiosk_device`,schema:`hr`,table:`kiosk_device`,label:`Kiosk device`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_kiosk_session:{token:`hr_kiosk_session`,schema:`hr`,table:`kiosk_session`,label:`Kiosk session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_labor_target:{token:`hr_labor_target`,schema:`hr`,table:`labor_target`,label:`Labor target`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_case:{token:`hr_leave_case`,schema:`hr`,table:`leave_case`,label:`Leave case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_enrollment:{token:`hr_leave_enrollment`,schema:`hr`,table:`leave_enrollment`,label:`Leave enrollment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_ledger:{token:`hr_leave_ledger`,schema:`hr`,table:`leave_ledger`,label:`Leave ledger entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_policy:{token:`hr_leave_policy`,schema:`hr`,table:`leave_policy`,label:`Leave policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_leave_request:{token:`hr_leave_request`,schema:`hr`,table:`leave_request`,label:`Leave request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_legal_hold:{token:`hr_legal_hold`,schema:`hr`,table:`legal_hold`,label:`Legal hold`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`matter_name`,contentRole:null,referenceCategory:null},hr_legal_hold_item:{token:`hr_legal_hold_item`,schema:`hr`,table:`legal_hold_item`,label:`Legal hold item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_location:{token:`hr_location`,schema:`hr`,table:`location`,label:`Location`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_new_hire_report:{token:`hr_new_hire_report`,schema:`hr`,table:`new_hire_report`,label:`New hire report`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_offer:{token:`hr_offer`,schema:`hr`,table:`offer`,label:`Offer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_opening:{token:`hr_opening`,schema:`hr`,table:`opening`,label:`Opening`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_overtime_alert:{token:`hr_overtime_alert`,schema:`hr`,table:`overtime_alert`,label:`Overtime alert`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_overtime_alert_rule:{token:`hr_overtime_alert_rule`,schema:`hr`,table:`overtime_alert_rule`,label:`Overtime alert rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_overtime_preapproval:{token:`hr_overtime_preapproval`,schema:`hr`,table:`overtime_preapproval`,label:`Overtime pre-approval`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_pay_group:{token:`hr_pay_group`,schema:`hr`,table:`pay_group`,label:`Pay group`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_pay_period:{token:`hr_pay_period`,schema:`hr`,table:`pay_period`,label:`Pay period`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_pay_period_employment:{token:`hr_pay_period_employment`,schema:`hr`,table:`pay_period_employment`,label:`Pay period timesheet`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_payroll_export:{token:`hr_payroll_export`,schema:`hr`,table:`payroll_export`,label:`Payroll export`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_payroll_export_line:{token:`hr_payroll_export_line`,schema:`hr`,table:`payroll_export_line`,label:`Payroll export line`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_position_assignment:{token:`hr_position_assignment`,schema:`hr`,table:`position_assignment`,label:`Position assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_posting:{token:`hr_posting`,schema:`hr`,table:`posting`,label:`Job posting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_posting_publication:{token:`hr_posting_publication`,schema:`hr`,table:`posting_publication`,label:`Posting publication`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provider_binding:{token:`hr_provider_binding`,schema:`hr`,table:`provider_binding`,label:`Provider binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provider_event:{token:`hr_provider_event`,schema:`hr`,table:`provider_event`,label:`Provider seam event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provisioning_result:{token:`hr_provisioning_result`,schema:`hr`,table:`provisioning_result`,label:`Provisioning result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_punch:{token:`hr_punch`,schema:`hr`,table:`punch`,label:`Punch`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_recalculation_batch:{token:`hr_recalculation_batch`,schema:`hr`,table:`recalculation_batch`,label:`Recalculation batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_record_class:{token:`hr_record_class`,schema:`hr`,table:`record_class`,label:`Record class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_records_request:{token:`hr_records_request`,schema:`hr`,table:`records_request`,label:`Records request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_reference_check:{token:`hr_reference_check`,schema:`hr`,table:`reference_check`,label:`Reference check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_reporting_line:{token:`hr_reporting_line`,schema:`hr`,table:`reporting_line`,label:`Reporting line`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_requisition:{token:`hr_requisition`,schema:`hr`,table:`requisition`,label:`Requisition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`requisition_number`,contentRole:null,referenceCategory:null},hr_restricted_note:{token:`hr_restricted_note`,schema:`hr`,table:`restricted_note`,label:`Restricted note`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_retention_rule:{token:`hr_retention_rule`,schema:`hr`,table:`retention_rule`,label:`Retention rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_role_assignment:{token:`hr_role_assignment`,schema:`hr`,table:`role_assignment`,label:`HR role assignment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_schedule:{token:`hr_schedule`,schema:`hr`,table:`schedule`,label:`Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_schedule_change:{token:`hr_schedule_change`,schema:`hr`,table:`schedule_change`,label:`Schedule change`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_schedule_guidance:{token:`hr_schedule_guidance`,schema:`hr`,table:`schedule_guidance`,label:`Schedule guidance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_schedule_template:{token:`hr_schedule_template`,schema:`hr`,table:`schedule_template`,label:`Schedule template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_schedule_template_shift:{token:`hr_schedule_template_shift`,schema:`hr`,table:`schedule_template_shift`,label:`Schedule template shift`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_scorecard:{token:`hr_scorecard`,schema:`hr`,table:`scorecard`,label:`Scorecard`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_separation:{token:`hr_separation`,schema:`hr`,table:`separation`,label:`Separation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_shift:{token:`hr_shift`,schema:`hr`,table:`shift`,label:`Shift`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_shift_claim:{token:`hr_shift_claim`,schema:`hr`,table:`shift_claim`,label:`Shift claim`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_staffing_requirement:{token:`hr_staffing_requirement`,schema:`hr`,table:`staffing_requirement`,label:`Staffing requirement`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey:{token:`hr_survey`,schema:`hr`,table:`survey`,label:`Survey`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_survey_invitation:{token:`hr_survey_invitation`,schema:`hr`,table:`survey_invitation`,label:`Survey invitation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey_question:{token:`hr_survey_question`,schema:`hr`,table:`survey_question`,label:`Survey question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey_response:{token:`hr_survey_response`,schema:`hr`,table:`survey_response`,label:`Survey response`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_tax_registration:{token:`hr_tax_registration`,schema:`hr`,table:`tax_registration`,label:`Tax registration`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_tax_withholding:{token:`hr_tax_withholding`,schema:`hr`,table:`tax_withholding`,label:`Tax withholding certificate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_time_adjustment:{token:`hr_time_adjustment`,schema:`hr`,table:`time_adjustment`,label:`Time adjustment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_training_assignment:{token:`hr_training_assignment`,schema:`hr`,table:`training_assignment`,label:`Training assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_training_attempt:{token:`hr_training_attempt`,schema:`hr`,table:`training_attempt`,label:`Training attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_transcript_entry:{token:`hr_transcript_entry`,schema:`hr`,table:`transcript_entry`,label:`Transcript entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_verification_letter_request:{token:`hr_verification_letter_request`,schema:`hr`,table:`verification_letter_request`,label:`Verification letter request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_work_interval:{token:`hr_work_interval`,schema:`hr`,table:`work_interval`,label:`Work interval`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_binding:{token:`hr_workflow_binding`,schema:`hr`,table:`workflow_binding`,label:`HR Workflow Binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_decision:{token:`hr_workflow_decision`,schema:`hr`,table:`workflow_decision`,label:`HR Workflow Decision`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_definition:{token:`hr_workflow_definition`,schema:`hr`,table:`workflow_definition`,label:`HR Workflow Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_event:{token:`hr_workflow_event`,schema:`hr`,table:`workflow_event`,label:`HR Workflow Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_failure:{token:`hr_workflow_failure`,schema:`hr`,table:`workflow_failure`,label:`HR Workflow Failure`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_flow_type:{token:`hr_workflow_flow_type`,schema:`hr`,table:`workflow_flow_type`,label:`HR Workflow Flow Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_instance:{token:`hr_workflow_instance`,schema:`hr`,table:`workflow_instance`,label:`HR Workflow Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_step:{token:`hr_workflow_step`,schema:`hr`,table:`workflow_step`,label:`HR Workflow Step`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_step_definition:{token:`hr_workflow_step_definition`,schema:`hr`,table:`workflow_step_definition`,label:`HR Workflow Step Definition`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workweek:{token:`hr_workweek`,schema:`hr`,table:`workweek`,label:`Workweek`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},html_extraction:{token:`html_extraction`,schema:`api`,table:`html_extractions`,label:`HTML extraction`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_access_audit:{token:`iam_access_audit`,schema:`iam`,table:`access_audit`,label:`Access audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_api_key:{token:`iam_api_key`,schema:`iam`,table:`api_keys`,label:`API Key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_emergency_door_request:{token:`iam_emergency_door_request`,schema:`iam`,table:`emergency_door_request`,label:`Emergency access request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_org_availability_key:{token:`iam_org_availability_key`,schema:`iam`,table:`_org_availability_key`,label:`Organization availability key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_read_lane_v2_rollout:{token:`iam_read_lane_v2_rollout`,schema:`iam`,table:`read_lane_v2_rollout`,label:`Read lane v2 rollout`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},idempotency:{token:`idempotency`,schema:`files`,table:`idempotency`,label:`Idempotency`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},industry:{token:`industry`,schema:`iam`,table:`industries`,label:`Industry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},industry_curator:{token:`industry_curator`,schema:`iam`,table:`industry_curators`,label:`Industry Curator`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},infra_status:{token:`infra_status`,schema:`public`,table:`infra_status`,label:`Infra status`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ingest_runs:{token:`ingest_runs`,schema:`legal`,table:`ingest_runs`,label:`Ingest Runs`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},integration_connection:{token:`integration_connection`,schema:`users`,table:`integration_connections`,label:`Integration connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},integration_connection_resource:{token:`integration_connection_resource`,schema:`users`,table:`integration_connection_resources`,label:`Integration connection resource`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_decision_interview:{token:`interview_decision_interview`,schema:`interview`,table:`decision_interview`,label:`Decision Interview`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_decision_question:{token:`interview_decision_question`,schema:`interview`,table:`decision_question`,label:`Decision Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_document_revision:{token:`interview_document_revision`,schema:`interview`,table:`document_revision`,label:`Interview Document Revision`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_hole:{token:`interview_hole`,schema:`interview`,table:`hole`,label:`Interview Adversary Hole`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_question:{token:`interview_question`,schema:`interview`,table:`question`,label:`Interview Open Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_session:{token:`interview_session`,schema:`interview`,table:`session`,label:`Vision Interview Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_turn:{token:`interview_turn`,schema:`interview`,table:`turn`,label:`Interview Turn`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation:{token:`invitation`,schema:`iam`,table:`invitations`,label:`Invitation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation_code:{token:`invitation_code`,schema:`users`,table:`invitation_codes`,label:`Invitation Code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation_request:{token:`invitation_request`,schema:`users`,table:`invitation_requests`,label:`Invitation Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_comment:{token:`io_comment`,schema:`custom`,table:`io_comment`,label:`Record comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_contract:{token:`io_contract`,schema:`content_ir`,table:`io_contract`,label:`Io Contract`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_import:{token:`io_import`,schema:`custom`,table:`io_import`,label:`Import run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_outbox:{token:`io_outbox`,schema:`custom`,table:`io_outbox`,label:`Record change outbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},item:{token:`item`,schema:`assignment`,table:`item`,label:`Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},item_mastery:{token:`item_mastery`,schema:`education`,table:`item_mastery`,label:`Item Mastery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},judge_verdict:{token:`judge_verdict`,schema:`platform`,table:`judge_verdict`,label:`Judge Verdict`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},jurisdiction_policy:{token:`jurisdiction_policy`,schema:`crm`,table:`jurisdiction_policy`,label:`Jurisdiction policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},keyword_classification_queue:{token:`keyword_classification_queue`,schema:`seo`,table:`keyword_classification_queue`,label:`Keyword Classification Queue`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_alert:{token:`kg_alert`,schema:`rag`,table:`kg_alerts`,label:`KG Alert`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_chunk_entities:{token:`kg_chunk_entities`,schema:`rag`,table:`kg_chunk_entities`,label:`Kg Chunk Entities`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_chunks:{token:`kg_chunks`,schema:`rag`,table:`kg_chunks`,label:`Kg Chunks`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_clusters:{token:`kg_clusters`,schema:`rag`,table:`kg_clusters`,label:`Kg Clusters`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_edges:{token:`kg_edges`,schema:`rag`,table:`kg_edges`,label:`Kg Edges`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_entities:{token:`kg_entities`,schema:`rag`,table:`kg_entities`,label:`Kg Entities`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_entity_aliases:{token:`kg_entity_aliases`,schema:`rag`,table:`kg_entity_aliases`,label:`Kg Entity Aliases`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_suggestion_ack:{token:`kg_suggestion_ack`,schema:`rag`,table:`kg_suggestion_ack`,label:`KG Suggestion Ack`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_queue:{token:`kg_sweep_queue`,schema:`rag`,table:`kg_sweep_queue`,label:`KG Sweep Queue`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_run:{token:`kg_sweep_run`,schema:`rag`,table:`kg_sweep_run`,label:`KG Sweep Run`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_state:{token:`kg_sweep_state`,schema:`rag`,table:`kg_sweep_state`,label:`KG Sweep State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_value_match:{token:`kg_value_match`,schema:`rag`,table:`kg_value_matches`,label:`KG Value Match`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_override:{token:`knob_override`,schema:`platform`,table:`knob_override`,label:`Knob Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_override_audit:{token:`knob_override_audit`,schema:`platform`,table:`knob_override_audit`,label:`Knob override audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_rung_lock:{token:`knob_rung_lock`,schema:`platform`,table:`knob_rung_lock`,label:`Knob Rung Lock`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_scope_kind:{token:`knob_scope_kind`,schema:`platform`,table:`knob_scope_kind`,label:`Knob scope kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_write_door:{token:`knob_write_door`,schema:`platform`,table:`knob_write_door`,label:`Knob write door`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},league_membership:{token:`league_membership`,schema:`education`,table:`league_membership`,label:`League Membership`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},learn_doc:{token:`learn_doc`,schema:`education`,table:`learn_doc`,label:`Study Guide`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},library_doc:{token:`library_doc`,schema:`rag`,table:`library_docs`,label:`Library Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},lifecycle_archive:{token:`lifecycle_archive`,schema:`platform`,table:`lifecycle_archive`,label:`Lifecycle archive`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_archive_row:{token:`lifecycle_archive_row`,schema:`platform`,table:`lifecycle_archive_row`,label:`Lifecycle archive row`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_audit:{token:`lifecycle_audit`,schema:`platform`,table:`lifecycle_audit`,label:`Lifecycle audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_entity_plan:{token:`lifecycle_entity_plan`,schema:`platform`,table:`lifecycle_entity_plan`,label:`Lifecycle entity plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_map_build:{token:`lifecycle_map_build`,schema:`platform`,table:`lifecycle_map_build`,label:`Lifecycle map build`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_reference_map:{token:`lifecycle_reference_map`,schema:`platform`,table:`lifecycle_reference_map`,label:`Lifecycle reference map`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_run:{token:`lifecycle_run`,schema:`platform`,table:`lifecycle_run`,label:`Lifecycle run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_tier_ledger:{token:`lifecycle_tier_ledger`,schema:`platform`,table:`lifecycle_tier_ledger`,label:`Lifecycle tier ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},location:{token:`location`,schema:`seo`,table:`location`,label:`Location`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate:{token:`mandate`,schema:`mandate`,table:`definition`,label:`Mandate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},mandate_advance_batch_row:{token:`mandate_advance_batch_row`,schema:`mandate`,table:`advance_batch_row`,label:`Pin advance batch row`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_binding:{token:`mandate_binding`,schema:`mandate`,table:`binding`,label:`Mandate Binding (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate:{token:`mandate_candidate`,schema:`mandate`,table:`candidate`,label:`Mandate Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate_run:{token:`mandate_candidate_run`,schema:`mandate`,table:`candidate_run`,label:`Mandate Candidate Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate_run_payload:{token:`mandate_candidate_run_payload`,schema:`mandate`,table:`candidate_run_payload`,label:`Mandate Candidate Run Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_goal_clauses:{token:`mandate_goal_clauses`,schema:`mandate`,table:`goal_clauses`,label:`Mandate Goal Clauses`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_observation:{token:`mandate_observation`,schema:`mandate`,table:`observation`,label:`Mandate Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_reference:{token:`mandate_reference`,schema:`mandate`,table:`reference`,label:`Mandate Reference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_scan:{token:`mandate_scan`,schema:`mandate`,table:`scan`,label:`Mandate Scan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_treatment:{token:`mandate_treatment`,schema:`mandate`,table:`treatment`,label:`Mandate Treatment (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},marketing_initiative:{token:`marketing_initiative`,schema:`marketing`,table:`initiative`,label:`Initiative`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},masterwork_corpus_item:{token:`masterwork_corpus_item`,schema:`platform`,table:`masterwork_corpus_item`,label:`Masterwork Corpus Piece`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_run:{token:`masterwork_run`,schema:`platform`,table:`masterwork_run`,label:`Masterwork Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Masterwork`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_run_kind:{token:`masterwork_run_kind`,schema:`platform`,table:`masterwork_run_kind`,label:`Masterwork Run Kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_source:{token:`masterwork_source`,schema:`platform`,table:`masterwork_source`,label:`Masterwork Source`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},math_course_structure:{token:`math_course_structure`,schema:`education`,table:`math_course_structure`,label:`Math Course Structure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},math_problem:{token:`math_problem`,schema:`education`,table:`math_problems`,label:`Math problem`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},matrx_action_ledger:{token:`matrx_action_ledger`,schema:`platform`,table:`matrx_action_ledger`,label:`Action ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_config:{token:`mcp_config`,schema:`tool`,table:`mcp_config`,label:`MCP config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_server:{token:`mcp_server`,schema:`tool`,table:`mcp_server`,label:`MCP server`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_user_conn:{token:`mcp_user_conn`,schema:`tool`,table:`mcp_user_conn`,label:`MCP user connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_capture_handoff:{token:`media_capture_handoff`,schema:`media`,table:`capture_handoff`,label:`Capture Handoff`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_catalog_setting:{token:`media_catalog_setting`,schema:`media`,table:`catalog_setting`,label:`Media Catalog Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_library_item:{token:`media_library_item`,schema:`media`,table:`library_item`,label:`Library Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_selection_item:{token:`media_selection_item`,schema:`media`,table:`selection_item`,label:`Selection Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_selection_job:{token:`media_selection_job`,schema:`media`,table:`selection_job`,label:`Selection Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_source_library:{token:`media_source_library`,schema:`media`,table:`source_library`,label:`Source Library`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_call_invite:{token:`meet_call_invite`,schema:`communication`,table:`meet_call_invites`,label:`Call Invite`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_chat_message:{token:`meet_chat_message`,schema:`communication`,table:`meet_chat_messages`,label:`Meeting Chat Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_invitee:{token:`meet_invitee`,schema:`communication`,table:`meet_invitees`,label:`Meeting Invitee`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_meeting:{token:`meet_meeting`,schema:`communication`,table:`meet_meetings`,label:`Meeting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},meet_note:{token:`meet_note`,schema:`communication`,table:`meet_notes`,label:`Meeting Note`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_occurrence_override:{token:`meet_occurrence_override`,schema:`communication`,table:`meet_occurrence_overrides`,label:`Meeting Occurrence Override`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_participant:{token:`meet_participant`,schema:`communication`,table:`meet_participants`,label:`Meeting Participant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_recording:{token:`meet_recording`,schema:`communication`,table:`meet_recordings`,label:`Meeting Recording`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_transcript_segment:{token:`meet_transcript_segment`,schema:`communication`,table:`meet_transcript_segments`,label:`Meeting Transcript Segment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},membership:{token:`membership`,schema:`iam`,table:`memberships`,label:`Membership`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},membership_grant:{token:`membership_grant`,schema:`iam`,table:`membership_grant`,label:`Membership Grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},merge_field_provenance:{token:`merge_field_provenance`,schema:`custom`,table:`merge_field_provenance`,label:`Merge Field Provenance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},message:{token:`message`,schema:`chat`,table:`message`,label:`Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},message_template:{token:`message_template`,schema:`agent`,table:`message_template`,label:`Message Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},message_template_detail:{token:`message_template_detail`,schema:`agent`,table:`message_template_detail`,label:`Message Template Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meta_excluded_schema:{token:`meta_excluded_schema`,schema:`meta`,table:`excluded_schema`,label:`Excluded schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meta_table_stats_history:{token:`meta_table_stats_history`,schema:`meta`,table:`table_stats_history`,label:`Table stats history`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},metadata_reserved_keys:{token:`metadata_reserved_keys`,schema:`platform`,table:`metadata_reserved_keys`,label:`Metadata Reserved Keys`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},migration_log:{token:`migration_log`,schema:`history`,table:`migration_log`,label:`Migration Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mtx_media_heal_queue:{token:`mtx_media_heal_queue`,schema:`platform`,table:`mtx_media_heal_queue`,label:`Mtx Media Heal Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mtx_public_url_guard:{token:`mtx_public_url_guard`,schema:`platform`,table:`mtx_public_url_guard`,label:`Public URL guard`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ner_shadow:{token:`ner_shadow`,schema:`rag`,table:`ner_canonicalizer_shadow`,label:`NER Shadow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},note:{token:`note`,schema:`workbench`,table:`notes`,label:`Note`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources & Outputs`,referencePickable:!0,titleColumn:`label`,contentRole:`hybrid`,referenceCategory:null},note_folder:{token:`note_folder`,schema:`workbench`,table:`note_folders`,label:`Note Folder`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},notification:{token:`notification`,schema:`communication`,table:`notification`,label:`Notification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_channel_preference:{token:`notification_channel_preference`,schema:`communication`,table:`notification_channel_preference`,label:`Notification Channel Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_event_override:{token:`notification_event_override`,schema:`communication`,table:`notification_event_override`,label:`Notification Event Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_event_type:{token:`notification_event_type`,schema:`communication`,table:`notification_event_type`,label:`Notification Event Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_preference:{token:`notification_preference`,schema:`communication`,table:`notification_preference`,label:`Notification Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_submission:{token:`notification_submission`,schema:`communication`,table:`notification_submission`,label:`Self notification submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notify_outsider_door_baseline:{token:`notify_outsider_door_baseline`,schema:`hr`,table:`notify_outsider_door_baseline`,label:`Notify Outsider Door Baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},oauth_handoff_claim:{token:`oauth_handoff_claim`,schema:`platform`,table:`_oauth_handoff_claim`,label:`Oauth Handoff Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},opinion_clusters:{token:`opinion_clusters`,schema:`legal`,table:`opinion_clusters`,label:`Opinion Clusters`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},opinions:{token:`opinions`,schema:`legal`,table:`opinions`,label:`Opinions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_check_item:{token:`ops_check_item`,schema:`ops`,table:`check_item`,label:`Check Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_check_run:{token:`ops_check_run`,schema:`ops`,table:`check_run`,label:`Check Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_db_host_sample:{token:`ops_db_host_sample`,schema:`ops`,table:`db_host_sample`,label:`Database host sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_issue_class:{token:`ops_issue_class`,schema:`ops`,table:`ops_issue_class`,label:`Ops Issue Class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_issue_event:{token:`ops_issue_event`,schema:`ops`,table:`ops_issue_event`,label:`Ops Issue Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_check:{token:`ops_proof_check`,schema:`ops`,table:`proof_check`,label:`Proof Check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_run:{token:`ops_proof_run`,schema:`ops`,table:`proof_run`,label:`Proof Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_scenario:{token:`ops_proof_scenario`,schema:`ops`,table:`proof_scenario`,label:`Proof Scenario`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_admin_audit:{token:`org_admin_audit`,schema:`iam`,table:`org_admin_audit`,label:`Org admin audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_change_policy:{token:`org_change_policy`,schema:`platform`,table:`org_change_policy`,label:`Org Change Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_context_ledger:{token:`org_context_ledger`,schema:`platform`,table:`org_context_ledger`,label:`Org Context Ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_industries:{token:`org_industries`,schema:`iam`,table:`org_industries`,label:`Org Industries`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_member_control:{token:`org_member_control`,schema:`iam`,table:`org_member_controls`,label:`Org member control`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_module_config:{token:`org_module_config`,schema:`platform`,table:`org_module_config`,label:`Organization module configuration`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_plan:{token:`org_plan`,schema:`billing`,table:`org_plan`,label:`Org Plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},organization:{token:`organization`,schema:`iam`,table:`organizations`,label:`Organization`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},organization_preferences:{token:`organization_preferences`,schema:`iam`,table:`organization_preferences`,label:`Organization Preferences`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},organization_visibility_version:{token:`organization_visibility_version`,schema:`custom`,table:`organization_visibility_version`,label:`Organization Visibility Version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},output_feedback:{token:`output_feedback`,schema:`platform`,table:`output_feedback`,label:`Output Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},outreach_acceptance:{token:`outreach_acceptance`,schema:`crm`,table:`outreach_acceptance`,label:`Outreach Acceptance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_job:{token:`page_extraction_job`,schema:`docproc`,table:`page_extraction_jobs`,label:`Extraction Dataset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},page_extraction_page_run:{token:`page_extraction_page_run`,schema:`docproc`,table:`page_extraction_page_runs`,label:`Page Extraction Page Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_results:{token:`page_extraction_results`,schema:`docproc`,table:`page_extraction_results`,label:`Page Extraction Results`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_runs:{token:`page_extraction_runs`,schema:`docproc`,table:`page_extraction_runs`,label:`Page Extraction Runs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_intent_queue:{token:`page_intent_queue`,schema:`seo`,table:`page_intent_queue`,label:`Page Intent Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_mapping_queue:{token:`page_mapping_queue`,schema:`seo`,table:`page_mapping_queue`,label:`Page Mapping Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},part_config:{token:`part_config`,schema:`partman`,table:`part_config`,label:`Part Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},part_config_sub:{token:`part_config_sub`,schema:`partman`,table:`part_config_sub`,label:`Part Config Sub`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},party:{token:`party`,schema:`crm`,table:`party`,label:`Contact`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:`source`,referenceCategory:null},party_contact_point:{token:`party_contact_point`,schema:`crm`,table:`party_contact_point`,label:`Contact Point`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},passkey_credential:{token:`passkey_credential`,schema:`users`,table:`passkey_credentials`,label:`Passkey credential`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pc_article:{token:`pc_article`,schema:`podcast`,table:`pc_articles`,label:`Podcast Article`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_episode:{token:`pc_episode`,schema:`podcast`,table:`pc_episodes`,label:`Podcast Episode`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_show:{token:`pc_show`,schema:`podcast`,table:`pc_shows`,label:`Podcast Show`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_studio_run:{token:`pc_studio_run`,schema:`podcast`,table:`pc_studio_runs`,label:`Podcast Studio Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_studio_run_asset:{token:`pc_studio_run_asset`,schema:`podcast`,table:`pc_studio_run_assets`,label:`Podcast Studio Run Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_consolidation_log:{token:`pdf_consolidation_log`,schema:`pdf`,table:`pdf_consolidation_log`,label:`Pdf Consolidation Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_redaction_audit:{token:`pdf_redaction_audit`,schema:`pdf`,table:`pdf_redaction_audits`,label:`PDF Redaction Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_redaction_key_escrow:{token:`pdf_redaction_key_escrow`,schema:`pdf`,table:`pdf_redaction_key_escrow`,label:`Pdf Redaction Key Escrow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},permission_grant:{token:`permission_grant`,schema:`iam`,table:`permissions`,label:`Permission grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_cms_fill_item:{token:`plan_cms_fill_item`,schema:`plan`,table:`cms_fill_item`,label:`CMS Fill Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_cms_fill_job:{token:`plan_cms_fill_job`,schema:`plan`,table:`cms_fill_job`,label:`CMS Fill Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_entity:{token:`plan_entity`,schema:`plan`,table:`entity`,label:`Plan Entity`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},plan_node:{token:`plan_node`,schema:`plan`,table:`node`,label:`Plan Node`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},plan_node_artifact:{token:`plan_node_artifact`,schema:`plan`,table:`node_artifact`,label:`Plan Node Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_node_step:{token:`plan_node_step`,schema:`plan`,table:`node_step`,label:`Plan Node Step`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_profile:{token:`plan_profile`,schema:`plan`,table:`profile`,label:`Plan Vertical Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`vertical`,contentRole:null,referenceCategory:null},platform_action_request:{token:`platform_action_request`,schema:`platform`,table:`action_request`,label:`Action Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_session:{token:`platform_actor_session`,schema:`platform`,table:`actor_session`,label:`Actor session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_token:{token:`platform_actor_token`,schema:`platform`,table:`actor_token`,label:`Actor token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_token_event:{token:`platform_actor_token_event`,schema:`platform`,table:`actor_token_event`,label:`Actor token event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_class_approval_by_arman:{token:`platform_class_approval_by_arman`,schema:`platform`,table:`class_approval_by_arman`,label:`Class approval by Arman`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_continued_access:{token:`platform_continued_access`,schema:`platform`,table:`continued_access`,label:`Continued Access`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_census_run:{token:`platform_cutover_census_run`,schema:`platform`,table:`cutover_census_run`,label:`Cutover census run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_evaluation_replaced:{token:`platform_cutover_evaluation_replaced`,schema:`platform`,table:`cutover_evaluation_replaced`,label:`Cutover evaluation replaced`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_evaluation_write:{token:`platform_cutover_evaluation_write`,schema:`platform`,table:`cutover_evaluation_write`,label:`Cutover evaluation write`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam:{token:`platform_cutover_seam`,schema:`platform`,table:`cutover_seam`,label:`Cutover seam`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam_measure:{token:`platform_cutover_seam_measure`,schema:`platform`,table:`cutover_seam_measure`,label:`Cutover seam measure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam_press:{token:`platform_cutover_seam_press`,schema:`platform`,table:`cutover_seam_press`,label:`Cutover seam press`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_dated_change:{token:`platform_dated_change`,schema:`platform`,table:`dated_change`,label:`Dated Change`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_doors_only_pending_cutover:{token:`platform_doors_only_pending_cutover`,schema:`platform`,table:`doors_only_pending_cutover`,label:`Doors-only pending cutover`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_google_calendar_event_create_intent:{token:`platform_google_calendar_event_create_intent`,schema:`platform`,table:`_google_calendar_event_create_intent`,label:`Google calendar event create intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_google_task_create_intent:{token:`platform_google_task_create_intent`,schema:`platform`,table:`_google_task_create_intent`,label:`Google task create intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_kernel_fingerprint_record:{token:`platform_kernel_fingerprint_record`,schema:`platform`,table:`kernel_fingerprint_record`,label:`Kernel fingerprint record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_outcome_event:{token:`platform_outcome_event`,schema:`platform`,table:`outcome_event`,label:`Outcome Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_outsider_consumer:{token:`platform_outsider_consumer`,schema:`platform`,table:`outsider_consumer`,label:`Outsider consumer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_provision_base_contract_pending:{token:`platform_provision_base_contract_pending`,schema:`platform`,table:`provision_base_contract_pending`,label:`Provision base contract pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reachability:{token:`platform_reachability`,schema:`platform`,table:`reachability`,label:`Reachability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reachability_rebuild_pending:{token:`platform_reachability_rebuild_pending`,schema:`platform`,table:`reachability_rebuild_pending`,label:`Reachability rebuild pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_realtime_topic_prefix:{token:`platform_realtime_topic_prefix`,schema:`platform`,table:`realtime_topic_prefix`,label:`Realtime topic prefix`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reference_category:{token:`platform_reference_category`,schema:`platform`,table:`reference_categories`,label:`Reference category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reference_declaration:{token:`platform_reference_declaration`,schema:`platform`,table:`reference_declaration`,label:`Reference declaration`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_repo:{token:`platform_repo`,schema:`platform`,table:`repo`,label:`Repository`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_saved_view:{token:`platform_saved_view`,schema:`platform`,table:`saved_view`,label:`Saved view`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_schema:{token:`platform_schema`,schema:`platform`,table:`schemas`,label:`Schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_secure_delivery:{token:`platform_secure_delivery`,schema:`platform`,table:`secure_delivery`,label:`Secure Delivery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_share_link:{token:`platform_share_link`,schema:`platform`,table:`share_links`,label:`Share link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_strict_class_probe:{token:`platform_strict_class_probe`,schema:`platform`,table:`strict_class_probe`,label:`Strict class probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},podcast_race:{token:`podcast_race`,schema:`podcast`,table:`pc_race`,label:`Podcast Race Episode`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},position:{token:`position`,schema:`agent`,table:`position`,label:`Position`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},processed_document:{token:`processed_document`,schema:`docproc`,table:`processed_documents`,label:`Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},processed_document_page:{token:`processed_document_page`,schema:`docproc`,table:`processed_document_pages`,label:`Processed document page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_file:{token:`product_capture_file`,schema:`workbench`,table:`product_capture_file`,label:`Product Capture File`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_item:{token:`product_capture_item`,schema:`workbench`,table:`product_capture_item`,label:`Product Capture Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_payload:{token:`product_capture_payload`,schema:`workbench`,table:`product_capture_payload`,label:`Product Capture Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_product:{token:`product_capture_product`,schema:`workbench`,table:`product_capture_product`,label:`Product Capture Product`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_question:{token:`product_capture_question`,schema:`workbench`,table:`product_capture_question`,label:`Product Capture Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},project:{token:`project`,schema:`projects`,table:`projects`,label:`Project`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Workspaces`,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},provider_account:{token:`provider_account`,schema:`provider`,table:`account`,label:`Provider operating account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provider_account_credential:{token:`provider_account_credential`,schema:`provider`,table:`account_credential`,label:`Provider account credential association`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision:{token:`provision`,schema:`mandate`,table:`provision`,label:`Mandate Provision (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_generate_target:{token:`provision_generate_target`,schema:`platform`,table:`provision_generate_target`,label:`Provision Generate Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_grant:{token:`provision_grant`,schema:`platform`,table:`provision_grant`,label:`Provision Grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_marker:{token:`provision_marker`,schema:`platform`,table:`provision_marker`,label:`Provision Marker`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_rule_message:{token:`provision_rule_message`,schema:`platform`,table:`provision_rule_message`,label:`Provision Rule Message`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_schema:{token:`provision_schema`,schema:`platform`,table:`provision_schema`,label:`Provision Schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_shape_debt:{token:`provision_shape_debt`,schema:`platform`,table:`provision_shape_debt`,label:`Provision Shape Debt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_spec:{token:`provision_spec`,schema:`platform`,table:`provision_spec`,label:`Provision Spec`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_spec_grandfather:{token:`provision_spec_grandfather`,schema:`platform`,table:`provision_spec_grandfather`,label:`Provision Spec Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_vocabulary:{token:`provision_vocabulary`,schema:`platform`,table:`provision_vocabulary`,label:`Provision Vocabulary`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},purpose:{token:`purpose`,schema:`platform`,table:`purpose`,label:`Purpose`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},quiz_session:{token:`quiz_session`,schema:`education`,table:`quiz_sessions`,label:`Quiz Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},rag_ingest_run:{token:`rag_ingest_run`,schema:`rag`,table:`ingest_run`,label:`Ingest Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rag_library_audit_log:{token:`rag_library_audit_log`,schema:`rag`,table:`library_audit_log`,label:`Library audit log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rate_limit_buckets:{token:`rate_limit_buckets`,schema:`files`,table:`rate_limit_buckets`,label:`Rate Limit Buckets`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},reachability_pending:{token:`reachability_pending`,schema:`platform`,table:`reachability_pending`,label:`Reachability pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},recompute_queue:{token:`recompute_queue`,schema:`hr`,table:`_recompute_queue`,label:`Recompute Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},record:{token:`record`,schema:`custom`,table:`record`,label:`Record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},record_alias:{token:`record_alias`,schema:`custom`,table:`record_alias`,label:`Record Alias`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},redaction_mapping:{token:`redaction_mapping`,schema:`pdf`,table:`redaction_mapping`,label:`Redaction Mapping`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_analysis:{token:`research_analysis`,schema:`research`,table:`rs_analysis`,label:`Research Analysis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_content:{token:`research_content`,schema:`research`,table:`rs_content`,label:`Research Content`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_context_bundle:{token:`research_context_bundle`,schema:`research`,table:`rs_context_bundle`,label:`Research Context Bundle`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`research`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},research_document:{token:`research_document`,schema:`research`,table:`rs_document`,label:`Research Document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},research_intent:{token:`research_intent`,schema:`research`,table:`research_intent`,label:`Research Intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_keyword:{token:`research_keyword`,schema:`research`,table:`rs_keyword`,label:`Research Keyword`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_media:{token:`research_media`,schema:`research`,table:`rs_media`,label:`Research Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_source:{token:`research_source`,schema:`research`,table:`rs_source`,label:`Research Source`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},research_synthesis:{token:`research_synthesis`,schema:`research`,table:`rs_synthesis`,label:`Research Synthesis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_tag:{token:`research_tag`,schema:`research`,table:`rs_tag`,label:`Research Tag`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},research_template:{token:`research_template`,schema:`research`,table:`rs_template`,label:`Research Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},research_topic:{token:`research_topic`,schema:`research`,table:`rs_topic`,label:`Research Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},retention_policy:{token:`retention_policy`,schema:`platform`,table:`retention_policy`,label:`Retention policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},retrieval_audit:{token:`retrieval_audit`,schema:`rag`,table:`retrieval_audit`,label:`Retrieval audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},review_queue:{token:`review_queue`,schema:`agent`,table:`review_queue`,label:`Review Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},route_manifest_entry:{token:`route_manifest_entry`,schema:`platform`,table:`route_manifest`,label:`Route Manifest Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},row_version:{token:`row_version`,schema:`history`,table:`row_versions`,label:`Row version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rulebook:{token:`rulebook`,schema:`platform`,table:`rulebook`,label:`Rulebook`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`Knowledge`,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},runtime_operation_stream:{token:`runtime_operation_stream`,schema:`runtime`,table:`operation_stream`,label:`Operation stream`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},runtime_operation_stream_batch:{token:`runtime_operation_stream_batch`,schema:`runtime`,table:`operation_stream_batch`,label:`Operation stream batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sandbox_instance:{token:`sandbox_instance`,schema:`public`,table:`sandbox_instances`,label:`Sandbox Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_agent_task:{token:`sch_agent_task`,schema:`scheduler`,table:`sch_agent_task`,label:`Agent Task Config`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_run:{token:`sch_run`,schema:`scheduler`,table:`sch_run`,label:`Task Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_task:{token:`sch_task`,schema:`scheduler`,table:`sch_task`,label:`Scheduled Task`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},sch_trigger:{token:`sch_trigger`,schema:`scheduler`,table:`sch_trigger`,label:`Task Trigger`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_client_exposure:{token:`schema_client_exposure`,schema:`platform`,table:`schema_client_exposure`,label:`Schema Client Exposure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_ledger:{token:`schema_migration_ledger`,schema:`public`,table:`_schema_migrations`,label:`Migration ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_legacy:{token:`schema_migration_legacy`,schema:`public`,table:`schema_migrations`,label:`Legacy migration ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_slot_grandfather:{token:`schema_migration_slot_grandfather`,schema:`public`,table:`_schema_migration_slot_grandfather`,label:`Schema Migration Slot Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_templates:{token:`schema_templates`,schema:`workbench`,table:`schema_templates`,label:`Schema Templates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope:{token:`scope`,schema:`context`,table:`scopes`,label:`Scope`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},scope_association_suggestion:{token:`scope_association_suggestion`,schema:`rag`,table:`scope_association_suggestions`,label:`Scope Association Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_dataset_instance:{token:`scope_dataset_instance`,schema:`context`,table:`scope_dataset_instances`,label:`Scope dataset instance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_door_registry:{token:`scope_door_registry`,schema:`context`,table:`scope_door_registry`,label:`Scope Door Registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_item_value_suggestion:{token:`scope_item_value_suggestion`,schema:`rag`,table:`scope_item_value_suggestions`,label:`Scope Item Value Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_suggestion:{token:`scope_suggestion`,schema:`rag`,table:`scope_suggestions`,label:`Scope Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_type:{token:`scope_type`,schema:`context`,table:`scope_types`,label:`Scope Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`slug`,contentRole:`container`,referenceCategory:null},scrape_domain:{token:`scrape_domain`,schema:`scraper`,table:`scrape_domain`,label:`Scrape Domain`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_domain_settings:{token:`scrape_domain_settings`,schema:`scraper`,table:`scrape_domain_settings`,label:`Scrape Domain Settings`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_failure_log:{token:`scrape_failure_log`,schema:`scraper`,table:`scrape_failure_log`,label:`Scrape Failure Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_parsed_page:{token:`scrape_parsed_page`,schema:`scraper`,table:`scrape_parsed_page`,label:`Parsed page`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_path_override:{token:`scrape_path_override`,schema:`scraper`,table:`scrape_path_override`,label:`Scrape Path Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_path_pattern:{token:`scrape_path_pattern`,schema:`scraper`,table:`scrape_path_pattern`,label:`Scrape Path Pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_retry_queue:{token:`scrape_retry_queue`,schema:`scraper`,table:`scrape_retry_queue`,label:`Scrape Retry Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},search_item:{token:`search_item`,schema:`platform`,table:`search_item`,label:`Search item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_capability:{token:`seo_ai_capability`,schema:`seo`,table:`ai_capability`,label:`SEO AI capability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_citation:{token:`seo_ai_visibility_citation`,schema:`seo`,table:`ai_visibility_citation`,label:`AI Visibility Citation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_claim:{token:`seo_ai_visibility_claim`,schema:`seo`,table:`ai_visibility_claim`,label:`AI Visibility Claim`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_panel:{token:`seo_ai_visibility_panel`,schema:`seo`,table:`ai_visibility_panel`,label:`AI Visibility Panel`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_response:{token:`seo_ai_visibility_response`,schema:`seo`,table:`ai_visibility_response`,label:`AI Visibility Response`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_signal:{token:`seo_ai_visibility_signal`,schema:`seo`,table:`ai_visibility_signal`,label:`AI Visibility Signal`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink:{token:`seo_backlink`,schema:`seo`,table:`backlink`,label:`SEO Backlink`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_change_event:{token:`seo_backlink_change_event`,schema:`seo`,table:`backlink_change_event`,label:`Backlink Change Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_dimension_snapshot:{token:`seo_backlink_dimension_snapshot`,schema:`seo`,table:`backlink_dimension_snapshot`,label:`Backlink Dimension Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_observation:{token:`seo_backlink_observation`,schema:`seo`,table:`backlink_observation`,label:`Backlink Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_snapshot:{token:`seo_backlink_snapshot`,schema:`seo`,table:`backlink_snapshot`,label:`Backlink Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_assessment:{token:`seo_change_assessment`,schema:`seo`,table:`change_assessment`,label:`SEO Change Assessment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_event:{token:`seo_change_event`,schema:`seo`,table:`change_event`,label:`SEO Change Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_item:{token:`seo_change_item`,schema:`seo`,table:`change_item`,label:`SEO Change Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_metric:{token:`seo_change_metric`,schema:`seo`,table:`change_metric`,label:`SEO Change Metric`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_set:{token:`seo_change_set`,schema:`seo`,table:`change_set`,label:`SEO Change`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:`title`,contentRole:`source`,referenceCategory:null},seo_change_theory:{token:`seo_change_theory`,schema:`seo`,table:`change_theory`,label:`SEO Change Theory`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_collection_run:{token:`seo_collection_run`,schema:`seo`,table:`collection_run`,label:`SEO Collection Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor:{token:`seo_competitor`,schema:`seo`,table:`competitor`,label:`SEO Competitor`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor_observation:{token:`seo_competitor_observation`,schema:`seo`,table:`competitor_observation`,label:`Competitor Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor_opportunity:{token:`seo_competitor_opportunity`,schema:`seo`,table:`competitor_opportunity`,label:`Competitor Opportunity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_coverage_mention:{token:`seo_coverage_mention`,schema:`seo`,table:`coverage_mention`,label:`Coverage Mention`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_coverage_tracker:{token:`seo_coverage_tracker`,schema:`seo`,table:`coverage_tracker`,label:`Coverage Tracker`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_dimension_value_matcher:{token:`seo_dimension_value_matcher`,schema:`seo`,table:`dimension_value_matcher`,label:`Dimension Value Matcher`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_engine_schedule:{token:`seo_engine_schedule`,schema:`seo`,table:`engine_schedule`,label:`SEO Engine Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_geo_place:{token:`seo_geo_place`,schema:`seo`,table:`geo_place`,label:`Geo Place`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_gsc_dig_rule:{token:`seo_gsc_dig_rule`,schema:`seo`,table:`gsc_dig_rule`,label:`GSC Dig Rule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword:{token:`seo_keyword`,schema:`seo`,table:`keyword`,label:`SEO Keyword`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:`phrase`,contentRole:null,referenceCategory:null},seo_keyword_class_rule:{token:`seo_keyword_class_rule`,schema:`seo`,table:`keyword_class_rule`,label:`Keyword Class Rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_edge:{token:`seo_keyword_edge`,schema:`seo`,table:`keyword_edge`,label:`Keyword Edge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_facet:{token:`seo_keyword_facet`,schema:`seo`,table:`keyword_facet`,label:`Keyword Facet`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_market:{token:`seo_keyword_market`,schema:`seo`,table:`keyword_market`,label:`Keyword Market Data`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_market_observation:{token:`seo_keyword_market_observation`,schema:`seo`,table:`keyword_market_observation`,label:`Keyword Market Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_place:{token:`seo_keyword_place`,schema:`seo`,table:`keyword_place`,label:`Keyword Place`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_saved_view:{token:`seo_keyword_saved_view`,schema:`seo`,table:`keyword_saved_view`,label:`Keyword Saved View`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_topic:{token:`seo_keyword_topic`,schema:`seo`,table:`keyword_topic`,label:`Keyword Topic Assignment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_landscape_brief:{token:`seo_landscape_brief`,schema:`seo`,table:`landscape_brief`,label:`Competitive Landscape Brief`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_link_gap_domain:{token:`seo_link_gap_domain`,schema:`seo`,table:`link_gap_domain`,label:`Link Gap Domain`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_link_gap_match:{token:`seo_link_gap_match`,schema:`seo`,table:`link_gap_match`,label:`Link Gap Match`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_facet:{token:`seo_map_facet`,schema:`seo`,table:`map_facet`,label:`Topical map facet`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_facet_value:{token:`seo_map_facet_value`,schema:`seo`,table:`map_facet_value`,label:`Topical map facet value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_topic:{token:`seo_map_topic`,schema:`seo`,table:`map_topic`,label:`Topical map topic`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_page_measurement_health:{token:`seo_page_measurement_health`,schema:`seo`,table:`page_measurement_health`,label:`Page Measurement Health`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_page_performance:{token:`seo_page_performance`,schema:`seo`,table:`page_performance`,label:`Page Performance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_pr_moment:{token:`seo_pr_moment`,schema:`seo`,table:`pr_moment`,label:`PR Moment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_provider_call:{token:`seo_provider_call`,schema:`seo`,table:`provider_call`,label:`SEO Provider Call`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_provider_task:{token:`seo_provider_task`,schema:`seo`,table:`provider_task`,label:`SEO Provider Task`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_rank_observation:{token:`seo_rank_observation`,schema:`seo`,table:`rank_observation`,label:`Rank Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_rank_target:{token:`seo_rank_target`,schema:`seo`,table:`rank_target`,label:`SEO Rank Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_raw_payload:{token:`seo_raw_payload`,schema:`seo`,table:`raw_payload`,label:`SEO Raw Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_referring_domain_profile:{token:`seo_referring_domain_profile`,schema:`seo`,table:`referring_domain_profile`,label:`Referring Domain Profile`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_reputation_case:{token:`seo_reputation_case`,schema:`seo`,table:`reputation_case`,label:`Reputation Case`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_search_performance_daily:{token:`seo_search_performance_daily`,schema:`seo`,table:`search_performance_daily`,label:`Search Performance Daily`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_mention:{token:`seo_serp_mention`,schema:`seo`,table:`serp_mention`,label:`SERP Prospect Mention`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_opportunity:{token:`seo_serp_opportunity`,schema:`seo`,table:`serp_opportunity`,label:`SERP Prospect Opportunity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_result:{token:`seo_serp_result`,schema:`seo`,table:`serp_result`,label:`SERP Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_snapshot:{token:`seo_serp_snapshot`,schema:`seo`,table:`serp_snapshot`,label:`SERP Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_geo_area:{token:`seo_site_geo_area`,schema:`seo`,table:`site_geo_area`,label:`Site Geo Area`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_keyword_offering:{token:`seo_site_keyword_offering`,schema:`seo`,table:`site_keyword_offering`,label:`Site Keyword Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_keyword_value:{token:`seo_site_keyword_value`,schema:`seo`,table:`site_keyword_value`,label:`Site Keyword Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_offering_value:{token:`seo_site_offering_value`,schema:`seo`,table:`site_offering_value`,label:`Site Offering Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_topic_value:{token:`seo_site_topic_value`,schema:`seo`,table:`site_topic_value`,label:`Site Topic Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_value_combo:{token:`seo_site_value_combo`,schema:`seo`,table:`site_value_combo`,label:`Site Value Combination`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_value_worth:{token:`seo_site_value_worth`,schema:`seo`,table:`site_value_worth`,label:`Site Value Worth`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_vocabulary:{token:`seo_site_vocabulary`,schema:`seo`,table:`site_vocabulary`,label:`Site Vocabulary`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_source_request:{token:`seo_source_request`,schema:`seo`,table:`source_request`,label:`SEO Source Request`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_starter_pack:{token:`seo_starter_pack`,schema:`seo`,table:`starter_pack`,label:`SEO Industry Starter Pack`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_starter_pack_item:{token:`seo_starter_pack_item`,schema:`seo`,table:`starter_pack_item`,label:`SEO Starter Pack Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_story_angle:{token:`seo_story_angle`,schema:`seo`,table:`story_angle`,label:`SEO Story Angle`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_topic:{token:`seo_topic`,schema:`seo`,table:`topic`,label:`SEO Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},seo_topical_map:{token:`seo_topical_map`,schema:`seo`,table:`topical_map`,label:`Topical map`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_tracker_story:{token:`seo_tracker_story`,schema:`seo`,table:`tracker_story`,label:`Monitor Story`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_web_analytics_daily:{token:`seo_web_analytics_daily`,schema:`seo`,table:`web_analytics_daily`,label:`Web Analytics Daily`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},shareable_resource_registry:{token:`shareable_resource_registry`,schema:`platform`,table:`shareable_resource_registry`,label:`Shareable resource registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},shared_canvas_item:{token:`shared_canvas_item`,schema:`canvas`,table:`shared_canvas_items`,label:`Shared Canvas Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},short_link:{token:`short_link`,schema:`platform`,table:`short_links`,label:`Short Link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sign_in_fk_legacy:{token:`sign_in_fk_legacy`,schema:`platform`,table:`sign_in_fk_legacy`,label:`Sign-in reference baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},skill:{token:`skill`,schema:`skill`,table:`definition`,label:`Skill`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},skill_detail:{token:`skill_detail`,schema:`skill`,table:`skill_detail`,label:`Skill Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},skill_render_definition:{token:`skill_render_definition`,schema:`skill`,table:`render_definition`,label:`Skill Render Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},sms_consent:{token:`sms_consent`,schema:`communication`,table:`sms_consent`,label:`SMS Consent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_conversation:{token:`sms_conversation`,schema:`communication`,table:`sms_conversations`,label:`SMS Conversation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_message:{token:`sms_message`,schema:`communication`,table:`sms_messages`,label:`SMS Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_message_media:{token:`sms_message_media`,schema:`communication`,table:`sms_media`,label:`SMS Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`file_name`,contentRole:null,referenceCategory:null},sms_notification:{token:`sms_notification`,schema:`communication`,table:`sms_notifications`,label:`SMS Notification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_notification_preference:{token:`sms_notification_preference`,schema:`communication`,table:`sms_notification_preferences`,label:`SMS Notification Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_phone_number:{token:`sms_phone_number`,schema:`communication`,table:`sms_phone_numbers`,label:`SMS Phone Number`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_rate_limits:{token:`sms_rate_limits`,schema:`communication`,table:`sms_rate_limits`,label:`Sms Rate Limits`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_webhook_logs:{token:`sms_webhook_logs`,schema:`communication`,table:`sms_webhook_logs`,label:`Sms Webhook Logs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},soft_delete_cascade_job:{token:`soft_delete_cascade_job`,schema:`platform`,table:`soft_delete_cascade_job`,label:`Soft-delete cascade job`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},soft_delete_edge:{token:`soft_delete_edge`,schema:`platform`,table:`soft_delete_edge`,label:`Soft Delete Edge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},source_authority:{token:`source_authority`,schema:`platform`,table:`source_authority`,label:`Source authority`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},stage_ref_kind:{token:`stage_ref_kind`,schema:`growth`,table:`stage_ref_kind`,label:`Stage reference kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},stamped_write_table:{token:`stamped_write_table`,schema:`platform`,table:`stamped_write_table`,label:`Stamped Write Table`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},structure:{token:`structure`,schema:`files`,table:`structure`,label:`Structure`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_cleaned_segments:{token:`studio_cleaned_segments`,schema:`transcripts`,table:`studio_cleaned_segments`,label:`Studio Cleaned Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_concept_items:{token:`studio_concept_items`,schema:`transcripts`,table:`studio_concept_items`,label:`Studio Concept Items`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_documents:{token:`studio_documents`,schema:`transcripts`,table:`studio_documents`,label:`Studio Document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},studio_module_segments:{token:`studio_module_segments`,schema:`transcripts`,table:`studio_module_segments`,label:`Studio Module Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_raw_segments:{token:`studio_raw_segments`,schema:`transcripts`,table:`studio_raw_segments`,label:`Studio Raw Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_recording_chunks:{token:`studio_recording_chunks`,schema:`transcripts`,table:`studio_recording_chunks`,label:`Studio Recording Chunk`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_recording_segments:{token:`studio_recording_segments`,schema:`transcripts`,table:`studio_recording_segments`,label:`Studio Recording Segment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_run:{token:`studio_run`,schema:`transcripts`,table:`studio_runs`,label:`Studio Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_session:{token:`studio_session`,schema:`transcripts`,table:`studio_sessions`,label:`Transcript Studio session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:`source`,referenceCategory:null},studio_session_settings:{token:`studio_session_settings`,schema:`transcripts`,table:`studio_session_settings`,label:`Studio Session Settings`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_attempt:{token:`study_attempt`,schema:`education`,table:`study_attempt`,label:`Study Attempt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_goal:{token:`study_goal`,schema:`education`,table:`study_goal`,label:`Study Goal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_media:{token:`study_media`,schema:`education`,table:`study_media`,label:`Study Media`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_plan:{token:`study_plan`,schema:`education`,table:`study_plan`,label:`Study Plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_plan_block:{token:`study_plan_block`,schema:`education`,table:`study_plan_block`,label:`Study Plan Block`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},study_plan_day:{token:`study_plan_day`,schema:`education`,table:`study_plan_day`,label:`Study Plan Day`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_reminder_context:{token:`study_reminder_context`,schema:`education`,table:`study_reminder_context`,label:`Study Reminder Context`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_reminder_delivery:{token:`study_reminder_delivery`,schema:`education`,table:`study_reminder_delivery`,label:`Study Reminder Delivery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_session:{token:`study_session`,schema:`education`,table:`study_session`,label:`Study Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_source_chunk:{token:`study_source_chunk`,schema:`education`,table:`study_source_chunk`,label:`Study Source Chunk`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_streak:{token:`study_streak`,schema:`education`,table:`study_streak`,label:`Study streak`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_structured_section:{token:`study_structured_section`,schema:`education`,table:`study_structured_section`,label:`Study Structured Section`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},superseded_policy:{token:`superseded_policy`,schema:`iam`,table:`superseded_policy`,label:`Superseded Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},surface:{token:`surface`,schema:`ui`,table:`ui_surface`,label:`UI Surface`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},system_announcement:{token:`system_announcement`,schema:`users`,table:`system_announcements`,label:`System announcement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_context_item:{token:`system_context_item`,schema:`context`,table:`system_context_item`,label:`System Context Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_error:{token:`system_error`,schema:`ops`,table:`system_error`,label:`System Error`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_orgs:{token:`system_orgs`,schema:`iam`,table:`system_orgs`,label:`System Orgs`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_write_failure:{token:`system_write_failure`,schema:`ops`,table:`system_write_failure`,label:`System Write Failure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_backfill_ledger:{token:`t13_backfill_ledger`,schema:`ops`,table:`t13_backfill_ledger`,label:`T-13 backfill ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_default_ledger:{token:`t13_default_ledger`,schema:`ops`,table:`t13_default_ledger`,label:`T-13 default ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_row_column_events:{token:`t13_row_column_events`,schema:`ops`,table:`t13_row_column_events`,label:`T-13 row column events`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tag:{token:`tag`,schema:`platform`,table:`tag`,label:`Tag`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},task:{token:`task`,schema:`projects`,table:`tasks`,label:`Task`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Workspaces`,referencePickable:!0,titleColumn:`title`,contentRole:`container`,referenceCategory:null},task_user_state:{token:`task_user_state`,schema:`projects`,table:`task_user_state`,label:`Task user state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},taxonomy_node:{token:`taxonomy_node`,schema:`platform`,table:`taxonomy_node`,label:`Taxonomy node`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},team:{token:`team`,schema:`iam`,table:`team`,label:`Team`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!1,category:`Organizations`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},template_context_items:{token:`template_context_items`,schema:`context`,table:`template_context_items`,label:`Template Context Items`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},template_scope_types:{token:`template_scope_types`,schema:`context`,table:`template_scope_types`,label:`Template Scope Types`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},templates:{token:`templates`,schema:`context`,table:`templates`,label:`Templates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},test_handset_inbox:{token:`test_handset_inbox`,schema:`communication`,table:`test_handset_inbox`,label:`Test Handset Inbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},test_handset_verification:{token:`test_handset_verification`,schema:`communication`,table:`test_handset_verification`,label:`Test Handset Verification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},thread:{token:`thread`,schema:`projects`,table:`threads`,label:`Thread`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},tool:{token:`tool`,schema:`tool`,table:`definition`,label:`Tool`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_binding:{token:`tool_binding`,schema:`tool`,table:`binding`,label:`Tool binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_bundle:{token:`tool_bundle`,schema:`tool`,table:`bundle`,label:`Tool Bundle`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_call:{token:`tool_call`,schema:`chat`,table:`tool_call`,label:`Tool Call`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_definition_version:{token:`tool_definition_version`,schema:`tool`,table:`definition_version`,label:`Tool Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_executor:{token:`tool_executor`,schema:`tool`,table:`executor`,label:`Tool executor`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_surface_defaults:{token:`tool_surface_defaults`,schema:`tool`,table:`surface_defaults`,label:`Tool surface defaults`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_test_sample:{token:`tool_test_sample`,schema:`tool`,table:`test_sample`,label:`Tool Test Sample`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_ui:{token:`tool_ui`,schema:`tool`,table:`ui`,label:`Tool UI`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},tool_ui_incident:{token:`tool_ui_incident`,schema:`tool`,table:`ui_incident`,label:`Tool UI Incident`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_ui_version:{token:`tool_ui_version`,schema:`tool`,table:`ui_version`,label:`Tool UI Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},topic_placement_queue:{token:`topic_placement_queue`,schema:`seo`,table:`topic_placement_queue`,label:`Topic Placement Queue`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},transcript:{token:`transcript`,schema:`transcripts`,table:`transcripts`,label:`Transcript`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`title`,contentRole:`source`,referenceCategory:null},trigger_event:{token:`trigger_event`,schema:`workflow`,table:`trigger_event`,label:`Trigger Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_dataset_template:{token:`udt_dataset_template`,schema:`workbench`,table:`udt_dataset_templates`,label:`Dataset template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_dataset_template_fields:{token:`udt_dataset_template_fields`,schema:`workbench`,table:`udt_dataset_template_fields`,label:`Udt Dataset Template Fields`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_document:{token:`udt_document`,schema:`workbench`,table:`udt_documents`,label:`Cloud document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`document_name`,contentRole:`hybrid`,referenceCategory:null},udt_document_snapshot:{token:`udt_document_snapshot`,schema:`workbench`,table:`udt_document_snapshots`,label:`Document snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_workbook_snapshot:{token:`udt_workbook_snapshot`,schema:`workbench`,table:`udt_workbook_snapshots`,label:`Workbook snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_client:{token:`ui_client`,schema:`ui`,table:`ui_client`,label:`UI client`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_agent_pref:{token:`ui_surface_agent_pref`,schema:`ui`,table:`ui_surface_agent_pref`,label:`UI Surface Agent Pref`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_agent_role:{token:`ui_surface_agent_role`,schema:`ui`,table:`ui_surface_agent_role`,label:`UI surface agent role`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_client_tool:{token:`ui_surface_client_tool`,schema:`ui`,table:`ui_surface_client_tool`,label:`UI surface client tool`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_config:{token:`ui_surface_config`,schema:`ui`,table:`ui_surface_config`,label:`UI Surface Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_item_type:{token:`ui_surface_item_type`,schema:`ui`,table:`ui_surface_item_type`,label:`UI surface item type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_value:{token:`ui_surface_value`,schema:`ui`,table:`ui_surface_value`,label:`UI surface value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_write_target:{token:`ui_surface_write_target`,schema:`ui`,table:`ui_surface_write_target`,label:`UI surface write target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},univer_payload:{token:`univer_payload`,schema:`content`,table:`univer_payload`,label:`Univer Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},unsubscribe_token:{token:`unsubscribe_token`,schema:`crm`,table:`unsubscribe_token`,label:`Unsubscribe Token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},uploads_inflight:{token:`uploads_inflight`,schema:`files`,table:`uploads_inflight`,label:`Uploads Inflight`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user:{token:`user`,schema:`iam`,table:`users`,label:`User`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_achievement:{token:`user_achievement`,schema:`users`,table:`user_achievements`,label:`User Achievement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_active_context:{token:`user_active_context`,schema:`context`,table:`user_active_context`,label:`Active context`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_analysis_preference:{token:`user_analysis_preference`,schema:`users`,table:`user_analysis_preferences`,label:`User Analysis Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_email_preference:{token:`user_email_preference`,schema:`users`,table:`user_email_preferences`,label:`User Email Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_entity_state:{token:`user_entity_state`,schema:`platform`,table:`user_entity_state`,label:`User entity state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_feedback:{token:`user_feedback`,schema:`users`,table:`user_feedback`,label:`User Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_follows:{token:`user_follows`,schema:`users`,table:`user_follows`,label:`User Follows`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_form_profile:{token:`user_form_profile`,schema:`users`,table:`user_form_profile`,label:`User Form Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_markdown_sample:{token:`user_markdown_sample`,schema:`users`,table:`user_markdown_samples`,label:`User Markdown Sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},user_memory:{token:`user_memory`,schema:`users`,table:`user_memory`,label:`User Memory`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_preference:{token:`user_preference`,schema:`users`,table:`user_preferences`,label:`User Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_profile:{token:`user_profile`,schema:`users`,table:`profiles`,label:`User Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},user_secret:{token:`user_secret`,schema:`users`,table:`user_secrets`,label:`User secret`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_secret_audit:{token:`user_secret_audit`,schema:`users`,table:`user_secret_audit`,label:`Secret audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_secret_grant:{token:`user_secret_grant`,schema:`users`,table:`user_secret_grants`,label:`Secret grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_stat:{token:`user_stat`,schema:`users`,table:`user_stats`,label:`User Stats`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_storage_usage:{token:`user_storage_usage`,schema:`files`,table:`user_storage_usage`,label:`Storage usage`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_surface_state:{token:`user_surface_state`,schema:`users`,table:`user_surface_state`,label:`User Surface State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_approvals:{token:`vault_fill_approvals`,schema:`users`,table:`_vault_fill_approvals`,label:`Vault fill approvals`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_devices:{token:`vault_fill_devices`,schema:`users`,table:`_vault_fill_devices`,label:`Vault fill devices`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_nonces:{token:`vault_fill_nonces`,schema:`users`,table:`_vault_fill_nonces`,label:`Vault fill nonces`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},visibility_cache:{token:`visibility_cache`,schema:`custom`,table:`visibility_cache`,label:`Visibility Cache`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},visibility_epoch:{token:`visibility_epoch`,schema:`custom`,table:`visibility_epoch`,label:`Visibility Epoch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},voice:{token:`voice`,schema:`ai`,table:`voices`,label:`Voice`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},war_room:{token:`war_room`,schema:`projects`,table:`war_rooms`,label:`War Room`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},wbx_demo:{token:`wbx_demo`,schema:`extend`,table:`wbx_demo`,label:`Extension demo record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_guidance:{token:`wbx_guidance`,schema:`extend`,table:`wbx_guidance`,label:`Extension Guidance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_highlight:{token:`wbx_highlight`,schema:`extend`,table:`wbx_highlight`,label:`Extension Highlight`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_pattern:{token:`wbx_pattern`,schema:`extend`,table:`wbx_pattern`,label:`Extension Scrape Pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},wbx_recipe:{token:`wbx_recipe`,schema:`extend`,table:`wbx_recipe`,label:`Extension recipe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_screenshot:{token:`wbx_screenshot`,schema:`extend`,table:`wbx_screenshot`,label:`Extension Screenshot`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_seo_audit:{token:`wbx_seo_audit`,schema:`extend`,table:`wbx_seo_audit`,label:`Extension SEO Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_claim:{token:`wc_claim`,schema:`legal`,table:`wc_claim`,label:`WC Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_impairment_definition:{token:`wc_impairment_definition`,schema:`legal`,table:`wc_impairment_definition`,label:`WC Impairment Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},wc_injury:{token:`wc_injury`,schema:`legal`,table:`wc_injury`,label:`WC Injury`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_report:{token:`wc_report`,schema:`legal`,table:`wc_report`,label:`WC Report`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_analysis_item:{token:`web_analysis_item`,schema:`web`,table:`analysis_item`,label:`Analysis Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},web_brand:{token:`web_brand`,schema:`web`,table:`brand`,label:`Brand`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},web_brand_asset:{token:`web_brand_asset`,schema:`web`,table:`brand_asset`,label:`Brand Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},web_brand_offering:{token:`web_brand_offering`,schema:`web`,table:`brand_offering`,label:`Brand Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_business_fact:{token:`web_business_fact`,schema:`web`,table:`business_fact`,label:`Business Fact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},web_business_location:{token:`web_business_location`,schema:`web`,table:`business_location`,label:`Business Location`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_channel_analytics_daily:{token:`web_channel_analytics_daily`,schema:`web`,table:`channel_analytics_daily`,label:`Channel analytics (daily)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_event:{token:`web_crawl_event`,schema:`web`,table:`crawl_event`,label:`Web Crawl Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_preset:{token:`web_crawl_preset`,schema:`web`,table:`crawl_preset`,label:`Web Crawl Preset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},web_crawl_schedule:{token:`web_crawl_schedule`,schema:`web`,table:`crawl_schedule`,label:`Web Crawl Schedule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},web_crawl_session:{token:`web_crawl_session`,schema:`web`,table:`crawl_session`,label:`Crawl Session`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_url:{token:`web_crawl_url`,schema:`web`,table:`crawl_url`,label:`Web Crawl URL`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_discovered_item:{token:`web_discovered_item`,schema:`web`,table:`discovered_item`,label:`Discovered Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_finding:{token:`web_finding`,schema:`web`,table:`finding`,label:`Finding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_gsc_page_stat:{token:`web_gsc_page_stat`,schema:`web`,table:`gsc_page_stat`,label:`GSC Page Stat`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_link_edge:{token:`web_link_edge`,schema:`web`,table:`link_edge`,label:`Link Edge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_listing_publisher:{token:`web_listing_publisher`,schema:`web`,table:`listing_publisher`,label:`Listing Publisher`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_location_listing:{token:`web_location_listing`,schema:`web`,table:`location_listing`,label:`Location Listing`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_news_item:{token:`web_news_item`,schema:`web`,table:`news_item`,label:`News Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_offering_template:{token:`web_offering_template`,schema:`web`,table:`offering_template`,label:`Offering Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page:{token:`web_page`,schema:`web`,table:`page`,label:`Site page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`url`,contentRole:`source`,referenceCategory:null},web_page_content:{token:`web_page_content`,schema:`web`,table:`page_content`,label:`Page Draft Content`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page_evidence:{token:`web_page_evidence`,schema:`web`,table:`page_evidence`,label:`Web Page Evidence`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page_sitemap:{token:`web_page_sitemap`,schema:`web`,table:`page_sitemap`,label:`Page Sitemap Membership`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_property:{token:`web_property`,schema:`web`,table:`property`,label:`Brand Property`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},web_provider:{token:`web_provider`,schema:`web`,table:`provider`,label:`Provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},web_result:{token:`web_result`,schema:`web`,table:`analysis_result`,label:`Analysis Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_screenshot:{token:`web_screenshot`,schema:`web`,table:`screenshot`,label:`Screenshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_site:{token:`web_site`,schema:`web`,table:`site`,label:`Site`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},web_site_endpoint_rule:{token:`web_site_endpoint_rule`,schema:`web`,table:`site_endpoint_rule`,label:`Site Endpoint Rule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`path_prefix`,contentRole:null,referenceCategory:null},web_site_item_config:{token:`web_site_item_config`,schema:`web`,table:`site_item_config`,label:`Site Item Config`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_site_offering:{token:`web_site_offering`,schema:`web`,table:`site_offering`,label:`Site Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_sitemap:{token:`web_sitemap`,schema:`web`,table:`sitemap`,label:`Sitemap`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`url`,contentRole:null,referenceCategory:null},web_snapshot:{token:`web_snapshot`,schema:`web`,table:`snapshot`,label:`Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_tag_manager_snapshot:{token:`web_tag_manager_snapshot`,schema:`web`,table:`tag_manager_snapshot`,label:`Tag Manager snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_voice_fingerprint:{token:`web_voice_fingerprint`,schema:`web`,table:`voice_fingerprint`,label:`Voice Fingerprint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_youtube_video:{token:`web_youtube_video`,schema:`web`,table:`youtube_video`,label:`YouTube video`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhook_deliveries:{token:`webhook_deliveries`,schema:`files`,table:`webhook_deliveries`,label:`Webhook Deliveries`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhook_dispatch_state:{token:`webhook_dispatch_state`,schema:`files`,table:`webhook_dispatch_state`,label:`Webhook Dispatch State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhooks:{token:`webhooks`,schema:`files`,table:`webhooks`,label:`Webhooks`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wf_node_data_slot:{token:`wf_node_data_slot`,schema:`workflow`,table:`node_data_slot`,label:`Workflow Node Data Slot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},work_claim:{token:`work_claim`,schema:`platform`,table:`_work_claim`,label:`Work Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},work_item:{token:`work_item`,schema:`runtime`,table:`work_item`,label:`Runtime Work Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workbook:{token:`workbook`,schema:`workbench`,table:`udt_workbooks`,label:`Workbook`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`workbook_name`,contentRole:`hybrid`,referenceCategory:null},worker_heartbeat:{token:`worker_heartbeat`,schema:`workflow`,table:`worker_heartbeat`,label:`Worker Heartbeat`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow:{token:`workflow`,schema:`workflow`,table:`definition`,label:`Workflow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},workflow_card:{token:`workflow_card`,schema:`workflow`,table:`card`,label:`Workflow Card`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_checkpoint:{token:`workflow_checkpoint`,schema:`workflow`,table:`checkpoint`,label:`Workflow Checkpoint`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_comparison:{token:`workflow_comparison`,schema:`workflow`,table:`comparison`,label:`Workflow Comparison`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_definition_version:{token:`workflow_definition_version`,schema:`workflow`,table:`definition_version`,label:`Workflow Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_idempotency:{token:`workflow_idempotency`,schema:`workflow`,table:`idempotency`,label:`Workflow Idempotency`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_job:{token:`workflow_job`,schema:`workflow`,table:`job`,label:`Workflow Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_node_events:{token:`workflow_node_events`,schema:`workflow`,table:`node_events`,label:`Workflow Node Events`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_node_outcome:{token:`workflow_node_outcome`,schema:`workflow`,table:`node_outcome`,label:`Workflow Node Outcome`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_plan:{token:`workflow_plan`,schema:`workflow`,table:`plan`,label:`Workflow Plan`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_plan_event:{token:`workflow_plan_event`,schema:`workflow`,table:`plan_event`,label:`Workflow Plan Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_plan_sample:{token:`workflow_plan_sample`,schema:`workflow`,table:`plan_sample`,label:`Workflow Plan Sample`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_recovery_audit:{token:`workflow_recovery_audit`,schema:`workflow`,table:`recovery_audit`,label:`Workflow Recovery Audit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run:{token:`workflow_run`,schema:`workflow`,table:`run`,label:`Workflow Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_cost:{token:`workflow_run_cost`,schema:`workflow`,table:`_run_cost`,label:`Workflow run cost`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_facts:{token:`workflow_run_facts`,schema:`workflow`,table:`_run_facts`,label:`Workflow run facts`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_log:{token:`workflow_run_log`,schema:`workflow`,table:`run_log`,label:`Workflow Run Log`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_runtime_surface:{token:`workflow_runtime_surface`,schema:`workflow`,table:`runtime_surface`,label:`Run Surface`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_template:{token:`workflow_template`,schema:`workflow`,table:`template`,label:`Workflow Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_trigger:{token:`workflow_trigger`,schema:`workflow`,table:`trigger`,label:`Workflow Trigger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_trigger_fire:{token:`workflow_trigger_fire`,schema:`workflow`,table:`trigger_fire`,label:`Workflow Trigger Fire`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_work_item:{token:`workflow_work_item`,schema:`workflow`,table:`work_item`,label:`Work Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},working_document:{token:`working_document`,schema:`workbench`,table:`working_documents`,label:`Working Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},write_guard_key:{token:`write_guard_key`,schema:`hr`,table:`_write_guard_key`,label:`Write Guard Key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_quota_day:{token:`youtube_quota_day`,schema:`research`,table:`youtube_quota_day`,label:`Youtube Quota Day`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_search:{token:`youtube_search`,schema:`research`,table:`youtube_search`,label:`YouTube Search`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_video:{token:`youtube_video`,schema:`research`,table:`youtube_video`,label:`YouTube Video`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:`source`,referenceCategory:null}},hD=new Set(`access_delta_probe.access_delta_run.access_request.account_addon.acquisition_block.activity.admin_audit_log.admin_email_log.admin_markdown_sample.admin_user.admission_config.agent.agent_card.agent_definition_version.agent_drift_alert.agent_exemplar.agent_mandate_note.agent_prompt_remediation.agent_run.agent_run_stage.agent_schedule.agent_schedule_claim.agent_shortcut.agent_surface_binding.agent_template.agent_term_list.agent_usage.ai_api.ai_calls.ai_endpoint.ai_model.ai_model_alias.ai_offering.ai_provider.ai_setting.ai_setting_profile.ai_translation_cell.ai_usage_executions.ai_usage_hourly.ai_usage_hourly_watermark.analysis_result.anon_form.anon_function_birth_grandfather.anon_hit.anon_inbound.anon_replay.anon_submission.anon_token.api_field_warning.api_request_log.app.app_config.app_config_history.app_definition_version.app_error.app_execution.app_instance.app_log.app_log_muted_pattern.app_log_norm_exception.app_rate_limit.app_setting.app_sync_status.approach.artifact.assessment.assessment_item.assessment_result.assignment_session.assist.assist_producer_policy.assist_producer_policy_history.association_type.assurance_level.attempt.audit_broken_functions.audit_canonical_findings.audit_exemption.audit_function_deps.audit_function_runtime_probe.audit_m2m_candidates.audit_refresh_log.audit_stale_registry.audit_unregistered_candidates.base_entity_template.batch_cost_event.batch_provider_batch.batch_work_item.billing_capability.billing_capability_limit.billing_connect_account.billing_coupon.billing_coupon_redemption.billing_customer.billing_free_period_grant.billing_plan.billing_plan_limit.billing_price.billing_product.billing_spend_approval.billing_spend_guardrail.billing_stripe_event.billing_subscription.billing_usage_ledger.billing_usage_reset.billing_user_plan.board.browser_account_binding.browser_action_event.browser_authenticator_window.browser_capture.browser_control_request.browser_handoff.browser_login_attempt.browser_login_recipe.browser_profile.browser_profile_checkpoint.browser_run.browser_site_observation.browser_site_policy.browser_stream_ticket.build_lock.calendar_event.campaign_watch_ramp_gate_run.campaign_watch_switch_outbox.campaign_watch_switch_window.canvas_comment.canvas_comment_like.canvas_item.canvas_item_state.canvas_like.canvas_score.canvas_view.capture_window.carrying_rule.catalog_entries_history.catalog_entry.category.change_type_default.chat_user_usage_summary.citations.class_purchase.classifier_revision_ledger.client_callable_door.client_callable_door_retirement.client_excluded_column_unregistered.cmp_entry.cmp_feedback.code_file.code_folder.code_repository.coding_session.coding_session_entry.comment.commerce_asset_allocation.commerce_asset_grading.commerce_asset_identifier.commerce_asset_lot_event.commerce_asset_mandate_result.commerce_asset_price_factor.commerce_asset_reshoot_request.commerce_asset_review.commerce_asset_unknown.commerce_certified_printer.commerce_cloud_sync_connection.commerce_ebay_business_policy.commerce_ebay_category.commerce_ebay_category_aspect.commerce_ebay_category_tree.commerce_ebay_custom_policy.commerce_ebay_inventory_item.commerce_ebay_inventory_item_group.commerce_ebay_inventory_item_group_member.commerce_ebay_inventory_location.commerce_ebay_listing.commerce_ebay_marketplace_policy.commerce_ebay_media_asset.commerce_ebay_notification_destination.commerce_ebay_notification_event.commerce_ebay_notification_subscription.commerce_ebay_notification_topic.commerce_ebay_offer.commerce_ebay_order.commerce_ebay_order_line_item.commerce_ebay_shipping_fulfillment.commerce_ebay_store_category.commerce_human_correction.commerce_intake_artifact.commerce_intake_asset.commerce_intake_batch.commerce_label_batch.commerce_label_code.commerce_marketplace_account.commerce_marketplace_account_deletion_audit.commerce_marketplace_api_call.commerce_marketplace_rate_budget.commerce_marketplace_site.commerce_marketplace_sync_run.commerce_prediction_outcome.commerce_print_order.commerce_product.commerce_product_channel_ref.commerce_product_media.commerce_product_variant.commerce_recall_audit.communication_calendar_selected_snapshot_state.communication_channel_readiness.comparison_set.contact_medium.contact_submission.content_certification.content_ir_kind.content_ir_kind_component.content_ir_kind_component_incident.content_ir_kind_conformance.content_ir_kind_edge.content_ir_kind_example.content_ir_kind_instance.content_ir_kind_surface.content_lane.context_access_log.context_item.context_item_suggestion.context_item_value.context_value_refs.conversation.conversation_value.courts.credential_attachment.credential_item.credential_mutation_receipt.crm_address.crm_affiliation.crm_blocklist_entry.crm_contact_candidate.crm_deal.crm_deal_stage_event.crm_enrichment_call.crm_interaction.crm_merge_candidate.crm_outreach_list.crm_outreach_list_member.crm_party_merge.crm_party_research.crm_registry_ingest_run.crm_registry_source.crm_sending_claim.crm_sending_event.crm_sending_identity.crm_sending_identity_check.crm_sending_policy.custom_agent_table_trust.custom_agg_digest_checked.custom_entity_definition.custom_field_definition.custom_field_target.custom_io_outbox_consumer.custom_io_outbox_consumption.custom_record.custom_share_tails_mine_repair.custom_template.custom_template_install.cx_agent_memory.cx_agent_plan.cx_agent_task.cx_code_edit.cx_code_message_file.cx_media.cx_observational_memory.cx_observational_memory_event.cx_pending_injection.cx_request.cx_request_snapshot.cx_tool_trace.cx_user_request.cx_user_todo.data_rights_event.data_store.data_store_members.ddl_guard_log.deck_suggestion.definer_class_exemption.definer_client_grant_grandfather.definer_grant_baseline.deprecated_relation.derive_run.dev_login_audit.dict_entry.dict_provider_publication.dict_setting.dm_conversation.dm_message.dm_participant.doc_render.doc_signature.dockets.document.document_version.domain_classification.edge_payload_kind.egress_device.egress_pairing.egress_ticket.emails.embedding_cache.embeddings_google_gemini_2_1536.embeddings_oai_3_small_1536.embeddings_voyage_4_large_1024.embeddings_voyage_code_3_1024.endpoint_family_sweep_state.engine_owner_task.entity_grant.entity_protected_value.entity_protected_value_version.entity_relationship.entity_type.esign_campaign.esign_campaign_member.esign_consent_disclosure.esign_envelope.esign_envelope_certificate.esign_envelope_document.esign_envelope_event.esign_envelope_external_ref.esign_envelope_signer.esign_provider.esign_provider_binding.esign_signing_key.execution_event_cursor.extension_auth_code.external_link.external_source.extract_sweep_state.fc_card.fc_detail.fc_set.feature_doc.feature_knob.feedback_comments.feedback_user_messages.file.file_analysis.file_entities.file_overrides.file_page_annotations.file_pages.file_rag_job.file_version.files_account_tier.files_machine_written_prefix.files_sync_mapping.files_user_account.flexible_data.folder.function_contract.game_badge.game_result.game_room.global_execution.global_execution_checkpoint.global_execution_control.global_execution_event.global_meter_entry.global_origin.global_request.google_document.growth_loop_event.growth_loop_run.growth_loop_stage_run.guardian_link.guest_conversion_audit.guest_execution_log.guest_executions.guided_checklist_run.heatmap_save.hindsight_enrollment.hindsight_finding.hindsight_regression_case.hindsight_replay.hindsight_replay_step.hindsight_review.hr_access_audit.hr_access_role.hr_accommodation_request.hr_ai_evidence.hr_alert_routing_rule.hr_application.hr_approval_authority.hr_approval_delegation.hr_asset.hr_asset_assignment.hr_attendance_exception.hr_auto_close_rule.hr_availability.hr_background_check.hr_benefits_event.hr_calculation_snapshot.hr_candidate.hr_candidate_conversion.hr_candidate_message.hr_careers_portal.hr_checklist_item.hr_checklist_run.hr_checklist_template.hr_checklist_template_item.hr_compensation.hr_corrective_action.hr_course.hr_course_version.hr_credential.hr_crew.hr_deduction_code.hr_department.hr_derived_grant.hr_disposition_event.hr_earning_code.hr_eeo_response.hr_emergency_contact.hr_employee.hr_employee_private.hr_employer_profile.hr_employment.hr_employment_pin.hr_engagement.hr_establishment.hr_external_identity.hr_field_policy.hr_holiday.hr_holiday_calendar.hr_i9.hr_i9_document.hr_incident.hr_incident_party.hr_interview.hr_interview_kit.hr_job_title.hr_jurisdiction.hr_jurisdiction_rule.hr_jurisdiction_rule_class.hr_jurisdiction_rule_org_decision.hr_jurisdiction_rule_test.hr_kiosk_device.hr_kiosk_session.hr_labor_target.hr_leave_case.hr_leave_enrollment.hr_leave_ledger.hr_leave_policy.hr_leave_request.hr_legal_hold.hr_legal_hold_item.hr_location.hr_new_hire_report.hr_offer.hr_opening.hr_overtime_alert.hr_overtime_alert_rule.hr_overtime_preapproval.hr_pay_group.hr_pay_period.hr_pay_period_employment.hr_payroll_export.hr_payroll_export_line.hr_position_assignment.hr_posting.hr_posting_publication.hr_provider_binding.hr_provider_event.hr_provisioning_result.hr_punch.hr_recalculation_batch.hr_record_class.hr_records_request.hr_reference_check.hr_reporting_line.hr_requisition.hr_restricted_note.hr_retention_rule.hr_role_assignment.hr_schedule.hr_schedule_change.hr_schedule_guidance.hr_schedule_template.hr_schedule_template_shift.hr_scorecard.hr_separation.hr_shift.hr_shift_claim.hr_staffing_requirement.hr_survey.hr_survey_invitation.hr_survey_question.hr_survey_response.hr_tax_registration.hr_tax_withholding.hr_time_adjustment.hr_training_assignment.hr_training_attempt.hr_transcript_entry.hr_verification_letter_request.hr_work_interval.hr_workflow_binding.hr_workflow_decision.hr_workflow_definition.hr_workflow_event.hr_workflow_failure.hr_workflow_flow_type.hr_workflow_instance.hr_workflow_step.hr_workflow_step_definition.hr_workweek.html_extraction.iam_access_audit.iam_api_key.iam_emergency_door_request.iam_org_availability_key.iam_read_lane_v2_rollout.idempotency.industry.industry_curator.infra_status.ingest_runs.integration_connection.integration_connection_resource.interview_decision_interview.interview_decision_question.interview_document_revision.interview_hole.interview_question.interview_session.interview_turn.invitation.invitation_code.invitation_request.io_comment.io_contract.io_import.io_outbox.item.item_mastery.judge_verdict.jurisdiction_policy.keyword_classification_queue.kg_alert.kg_chunk_entities.kg_chunks.kg_clusters.kg_edges.kg_entities.kg_entity_aliases.kg_suggestion_ack.kg_sweep_queue.kg_sweep_run.kg_sweep_state.kg_value_match.knob_override.knob_override_audit.knob_rung_lock.knob_scope_kind.knob_write_door.league_membership.learn_doc.library_doc.lifecycle_archive.lifecycle_archive_row.lifecycle_audit.lifecycle_entity_plan.lifecycle_map_build.lifecycle_reference_map.lifecycle_run.lifecycle_tier_ledger.location.mandate.mandate_advance_batch_row.mandate_binding.mandate_candidate.mandate_candidate_run.mandate_candidate_run_payload.mandate_goal_clauses.mandate_observation.mandate_reference.mandate_scan.mandate_treatment.marketing_initiative.masterwork_corpus_item.masterwork_run.masterwork_run_kind.masterwork_source.math_course_structure.math_problem.matrx_action_ledger.mcp_config.mcp_server.mcp_user_conn.media_capture_handoff.media_catalog_setting.media_library_item.media_selection_item.media_selection_job.media_source_library.meet_call_invite.meet_chat_message.meet_invitee.meet_meeting.meet_note.meet_occurrence_override.meet_participant.meet_recording.meet_transcript_segment.membership.membership_grant.merge_field_provenance.message.message_template.message_template_detail.meta_excluded_schema.meta_table_stats_history.metadata_reserved_keys.migration_log.mtx_media_heal_queue.mtx_public_url_guard.ner_shadow.note.note_folder.notification.notification_channel_preference.notification_event_override.notification_event_type.notification_preference.notification_submission.notify_outsider_door_baseline.oauth_handoff_claim.opinion_clusters.opinions.ops_check_item.ops_check_run.ops_db_host_sample.ops_issue_class.ops_issue_event.ops_proof_check.ops_proof_run.ops_proof_scenario.org_admin_audit.org_change_policy.org_context_ledger.org_industries.org_member_control.org_module_config.org_plan.organization.organization_preferences.organization_visibility_version.output_feedback.outreach_acceptance.page_extraction_job.page_extraction_page_run.page_extraction_results.page_extraction_runs.page_intent_queue.page_mapping_queue.part_config.part_config_sub.party.party_contact_point.passkey_credential.pc_article.pc_episode.pc_show.pc_studio_run.pc_studio_run_asset.pdf_consolidation_log.pdf_redaction_audit.pdf_redaction_key_escrow.permission_grant.plan_cms_fill_item.plan_cms_fill_job.plan_entity.plan_node.plan_node_artifact.plan_node_step.plan_profile.platform_action_request.platform_actor_session.platform_actor_token.platform_actor_token_event.platform_class_approval_by_arman.platform_continued_access.platform_cutover_census_run.platform_cutover_evaluation_replaced.platform_cutover_evaluation_write.platform_cutover_seam.platform_cutover_seam_measure.platform_cutover_seam_press.platform_dated_change.platform_doors_only_pending_cutover.platform_google_calendar_event_create_intent.platform_google_task_create_intent.platform_kernel_fingerprint_record.platform_outcome_event.platform_outsider_consumer.platform_provision_base_contract_pending.platform_reachability.platform_reachability_rebuild_pending.platform_realtime_topic_prefix.platform_reference_category.platform_reference_declaration.platform_repo.platform_saved_view.platform_schema.platform_secure_delivery.platform_share_link.platform_strict_class_probe.podcast_race.position.processed_document.processed_document_page.product_capture_file.product_capture_item.product_capture_payload.product_capture_product.product_capture_question.project.provider_account.provider_account_credential.provision.provision_generate_target.provision_grant.provision_marker.provision_rule_message.provision_schema.provision_shape_debt.provision_spec.provision_spec_grandfather.provision_vocabulary.purpose.quiz_session.rag_ingest_run.rag_library_audit_log.rate_limit_buckets.reachability_pending.recompute_queue.record.record_alias.redaction_mapping.research_analysis.research_content.research_context_bundle.research_document.research_intent.research_keyword.research_media.research_source.research_synthesis.research_tag.research_template.research_topic.retention_policy.retrieval_audit.review_queue.route_manifest_entry.row_version.rulebook.runtime_operation_stream.runtime_operation_stream_batch.sandbox_instance.sch_agent_task.sch_run.sch_task.sch_trigger.schema_client_exposure.schema_migration_ledger.schema_migration_legacy.schema_migration_slot_grandfather.schema_templates.scope.scope_association_suggestion.scope_dataset_instance.scope_door_registry.scope_item_value_suggestion.scope_suggestion.scope_type.scrape_domain.scrape_domain_settings.scrape_failure_log.scrape_parsed_page.scrape_path_override.scrape_path_pattern.scrape_retry_queue.search_item.seo_ai_capability.seo_ai_visibility_citation.seo_ai_visibility_claim.seo_ai_visibility_panel.seo_ai_visibility_response.seo_ai_visibility_signal.seo_backlink.seo_backlink_change_event.seo_backlink_dimension_snapshot.seo_backlink_observation.seo_backlink_snapshot.seo_change_assessment.seo_change_event.seo_change_item.seo_change_metric.seo_change_set.seo_change_theory.seo_collection_run.seo_competitor.seo_competitor_observation.seo_competitor_opportunity.seo_coverage_mention.seo_coverage_tracker.seo_dimension_value_matcher.seo_engine_schedule.seo_geo_place.seo_gsc_dig_rule.seo_keyword.seo_keyword_class_rule.seo_keyword_edge.seo_keyword_facet.seo_keyword_market.seo_keyword_market_observation.seo_keyword_place.seo_keyword_saved_view.seo_keyword_topic.seo_landscape_brief.seo_link_gap_domain.seo_link_gap_match.seo_map_facet.seo_map_facet_value.seo_map_topic.seo_page_measurement_health.seo_page_performance.seo_pr_moment.seo_provider_call.seo_provider_task.seo_rank_observation.seo_rank_target.seo_raw_payload.seo_referring_domain_profile.seo_reputation_case.seo_search_performance_daily.seo_serp_mention.seo_serp_opportunity.seo_serp_result.seo_serp_snapshot.seo_site_geo_area.seo_site_keyword_offering.seo_site_keyword_value.seo_site_offering_value.seo_site_topic_value.seo_site_value_combo.seo_site_value_worth.seo_site_vocabulary.seo_source_request.seo_starter_pack.seo_starter_pack_item.seo_story_angle.seo_topic.seo_topical_map.seo_tracker_story.seo_web_analytics_daily.shareable_resource_registry.shared_canvas_item.short_link.sign_in_fk_legacy.skill.skill_detail.skill_render_definition.sms_consent.sms_conversation.sms_message.sms_message_media.sms_notification.sms_notification_preference.sms_phone_number.sms_rate_limits.sms_webhook_logs.soft_delete_cascade_job.soft_delete_edge.source_authority.stage_ref_kind.stamped_write_table.structure.studio_cleaned_segments.studio_concept_items.studio_documents.studio_module_segments.studio_raw_segments.studio_recording_chunks.studio_recording_segments.studio_run.studio_session.studio_session_settings.study_attempt.study_goal.study_media.study_plan.study_plan_block.study_plan_day.study_reminder_context.study_reminder_delivery.study_session.study_source_chunk.study_streak.study_structured_section.superseded_policy.surface.system_announcement.system_context_item.system_error.system_orgs.system_write_failure.t13_backfill_ledger.t13_default_ledger.t13_row_column_events.tag.task.task_user_state.taxonomy_node.team.template_context_items.template_scope_types.templates.test_handset_inbox.test_handset_verification.thread.tool.tool_binding.tool_bundle.tool_call.tool_definition_version.tool_executor.tool_surface_defaults.tool_test_sample.tool_ui.tool_ui_incident.tool_ui_version.topic_placement_queue.transcript.trigger_event.udt_dataset_template.udt_dataset_template_fields.udt_document.udt_document_snapshot.udt_workbook_snapshot.ui_client.ui_surface_agent_pref.ui_surface_agent_role.ui_surface_client_tool.ui_surface_config.ui_surface_item_type.ui_surface_value.ui_surface_write_target.univer_payload.unsubscribe_token.uploads_inflight.user.user_achievement.user_active_context.user_analysis_preference.user_email_preference.user_entity_state.user_feedback.user_follows.user_form_profile.user_markdown_sample.user_memory.user_preference.user_profile.user_secret.user_secret_audit.user_secret_grant.user_stat.user_storage_usage.user_surface_state.vault_fill_approvals.vault_fill_devices.vault_fill_nonces.visibility_cache.visibility_epoch.voice.war_room.wbx_demo.wbx_guidance.wbx_highlight.wbx_pattern.wbx_recipe.wbx_screenshot.wbx_seo_audit.wc_claim.wc_impairment_definition.wc_injury.wc_report.web_analysis_item.web_brand.web_brand_asset.web_brand_offering.web_business_fact.web_business_location.web_channel_analytics_daily.web_crawl_event.web_crawl_preset.web_crawl_schedule.web_crawl_session.web_crawl_url.web_discovered_item.web_finding.web_gsc_page_stat.web_link_edge.web_listing_publisher.web_location_listing.web_news_item.web_offering_template.web_page.web_page_content.web_page_evidence.web_page_sitemap.web_property.web_provider.web_result.web_screenshot.web_site.web_site_endpoint_rule.web_site_item_config.web_site_offering.web_sitemap.web_snapshot.web_tag_manager_snapshot.web_voice_fingerprint.web_youtube_video.webhook_deliveries.webhook_dispatch_state.webhooks.wf_node_data_slot.work_claim.work_item.workbook.worker_heartbeat.workflow.workflow_card.workflow_checkpoint.workflow_comparison.workflow_definition_version.workflow_idempotency.workflow_job.workflow_node_events.workflow_node_outcome.workflow_plan.workflow_plan_event.workflow_plan_sample.workflow_recovery_audit.workflow_run.workflow_run_cost.workflow_run_facts.workflow_run_log.workflow_runtime_surface.workflow_template.workflow_trigger.workflow_trigger_fire.workflow_work_item.working_document.write_guard_key.youtube_quota_day.youtube_search.youtube_video`.split(`.`));function gD(e){return typeof e==`string`&&hD.has(e)}function _D(e){return typeof e==`string`?JSON.stringify(e):e==null?String(e):JSON.stringify(e)}var vD={cx_message:`message`,cx_conversation:`conversation`,user_file:`file`,agent_app:`app`,chat_block:`message`};function yD(...e){for(let t of e)if(t)return t;return null}function bD(e){function t(t,n,r){let i=`association ${t} ${r} (got ${_D(n)})`;return e({code:`invalid_argument`,message:`[associations] invalid argument — ${i}`,context:{field:t}}),{code:`invalid_argument`,message:i}}return{checkUuid(e,n){return HE(n)?null:t(e,n,`must be a UUID`)},checkUuidArray(e,n){for(let r=0;r<n.length;r++)if(!HE(n[r]))return t(`${e}[${r}]`,n[r],`must be a UUID`);return null},checkToken(e,n){return typeof n!=`string`||n.length===0?t(e,n,`must be a non-empty entity-type token`):gD(n)?null:t(e,n,`is not a registered entity type (platform.entity_types) — add it to the registry + upgrade @ai-matrx/associations, never guess a token`)},normalizeEntityToken(t){let n=vD[t];return n?(e({code:`legacy_token_alias`,message:`[associations] phantom entity token ${JSON.stringify(t)} mapped to canonical ${JSON.stringify(n)} — fix the callsite to emit the canonical token (FOUND_DEFECTS D27)`,context:{value:t,canonical:n}}),n):t}}}function xD(e,t,n,r){let i={code:e,message:t};return n!==void 0&&(i.detail=n),r!==void 0&&(i.hint=r),{ok:!1,error:i}}function SD(e){return{ok:!0,data:e}}function CD(e){if(typeof navigator<`u`&&navigator.onLine===!1||e instanceof TypeError)return!0;if(e&&typeof e==`object`){let t=e;if(t.code||t.status)return!1;let n=`${typeof t.name==`string`?t.name:``} ${typeof t.message==`string`?t.message:``}`.toLowerCase();return n.includes(`failed to fetch`)||n.includes(`networkerror`)||n.includes(`network request failed`)||n.includes(`load failed`)||n.includes(`upstream connect error or disconnect/reset before headers`)}return!1}function wD(e){if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.code==`string`&&typeof t.message==`string`}function TD(e){if(e&&typeof e==`object`){let t=e;return{pgCode:typeof t.code==`string`&&t.code?t.code:null,pgMessage:typeof t.message==`string`&&t.message?t.message:null,pgHint:typeof t.hint==`string`&&t.hint?t.hint:void 0}}return{pgCode:null,pgMessage:null,pgHint:void 0}}function ED(e){function t(t){let{pgCode:n,pgMessage:r,pgHint:i}=TD(t);if(n===`PGRST202`){let a=`demanded schema violation: the database this client is pointed at cannot answer a demanded @ai-matrx/associations RPC (PostgREST PGRST202 — function not found). This package DEMANDS the platform `+`schema (README § The demanded schema). ${r??``}`.trim();e({code:`demanded_schema_violation`,message:a,context:{pgCode:n,detail:t}});let o={code:`demanded_schema_violation`,message:a,detail:t};return i!==void 0&&(o.hint=i),o}if(CD(t)?e({code:`transport_failure`,message:`network unreachable (browser offline?)`,context:{transient:!0,detail:t}}):wD(t)||e({code:`internal`,message:r??`Unexpected error talking to the data source`,context:{detail:t}}),n===`PGRST116`)return{code:`not_found`,message:`Not found`};if(n===`42501`)return{code:`forbidden_org`,message:`Permission denied`};if(n===`PGRST301`||n===`PGRST303`)return{code:`unauthorized`,message:`Your session expired`};if(n===`57014`){let e={code:`internal`,message:`The database took too long to respond`,detail:t};return i!==void 0&&(e.hint=i),e}let a={message:r??`Unexpected error talking to the data source`,code:`internal`,detail:t};return i!==void 0&&(a.hint=i),a}function n(e){let n=t(e);return[n.code,n.message,n.detail,n.hint]}return{ok:SD,err:xD,mapPgError:t,mapPgErrorPair:n}}var DD={dataset:{label:`Table`},structured_list:{label:`Pick list`}};function OD(e){return Object.prototype.hasOwnProperty.call(DD,e)}function kD(e){return OD(e)?DD[e].label:null}var AD=`created_by`,jD=`organization_id`,MD=new Set([`utility`,`source`,`destination`,`hybrid`,`container`]);function ND(e){return e!==null&&MD.has(e)}var PD={cld_file:`file`};function FD(e){return PD[e]??e}var ID=(()=>{let e={};for(let t of Object.keys(mD)){let n=mD[t],r=`${n.schema}.${n.table}`;r in e||(e[r]=t)}return e})(),LD=(()=>{let e={};for(let t of Object.keys(mD)){let n=mD[t].table;e[n]=n in e?null:t}return e})();function RD(e,t){let n={...t??{}},r=new Set;function i(t){return r.has(t)||(r.add(t),e({code:`retired_entity_token`,message:`[entityRegistry] "${t}" is not in the live entity vocabulary (retired or renamed in platform.entity_types). The host still references it; rename the reference to the live token, or drop it. Serving a stand-in so the page can render.`,context:{token:t}})),{token:t,schema:``,table:``,label:`${t} (retired)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null}}function a(e){let t=kD(e);return t===null?null:{token:e,schema:``,table:``,label:t,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null}}function o(t){let r=mD[t]??a(t)??i(t),o=n[t],s=o?.labelPlural??`${r.label}s`,c=r.titleColumn,l=ND(r.contentRole)?r.contentRole:`destination`;r.contentRole!==null&&!ND(r.contentRole)&&e({code:`invalid_content_role`,message:`[entityRegistry] "${t}" has invalid content_role "${r.contentRole}" in platform.entity_types; using destination as a loud recovery.`,context:{token:t,contentRole:r.contentRole}});let u=o?.ownerColumn===void 0?AD:o.ownerColumn??``,d=o?.orgColumn===void 0?jD:o.orgColumn??``;return{token:t,label:r.label,labelPlural:s,schema:r.schema,table:r.table,titleColumn:c,ownerColumn:u,orgColumn:d,Icon:o?.Icon??null,hrefFor:o?.hrefFor??null,scopeable:r.scopeable,category:r.category,contentRole:l,listCandidates:o?.listCandidates??null,canListCandidates:c!==null||o?.listCandidates!==void 0}}return{registerEntityOverlay(e){for(let t of Object.keys(e)){let r=e[t];r&&(n[t]={...n[t],...r})}},getEntityInfo:o,tryGetEntityInfo(e){let t=FD(e);return gD(t)?o(t):OD(e)?o(e):null},tryGetEntityInfoByTable(e,t){let n=ID[`${e}.${t}`];return n?o(n):null},tryGetEntityInfoByUniqueTableName(e){let t=LD[e];return t?o(t):null},curatedTokens(){return Object.keys(mD).filter(e=>{let t=mD[e],r=n[e];return ND(t.contentRole)&&(t.titleColumn!=null||r?.listCandidates!==void 0)})},listableTokens(){return Object.keys(mD).filter(t=>{let r=mD[t];if(!r.referencePickable)return!1;let i=n[t],a=r.titleColumn!=null||i?.listCandidates!==void 0;return a||e({code:`unlistable_pickable_token`,message:`[entityRegistry] "${t}" is reference_pickable in platform.entity_types but has NO title_column and no host candidate source — set its title_column in the registry or register a listCandidates override.`,context:{token:t}}),a})}}}var zD={"artifact>processed_document":`source`,"calendar_event>conversation":`conversation_attached_resource`,"calendar_event>party":`attendee`,"code_file>code_repository":`in_repository`,"content_ir_kind_instance>content_ir_kind_instance":`part_of`,"conversation>party":`produced_by`,"fc_set>processed_document":`source`,"file>hr_application":`evidence`,"file>hr_employee":`personnel_document`,"file>hr_employment":`evidence`,"file>hr_incident":`evidence`,"file>hr_leave_case":`evidence`,"google_document>crm_deal":`attached_to`,"google_document>party":`attached_to`,"google_document>project":`attached_to`,"google_document>task":`attached_to`,"hr_candidate>party":`candidate_party`,"hr_course>hr_job_title":`role_curriculum`,"hr_credential>hr_job_title":`required_credential`,"hr_employee>record":`scope_member`,"hr_employee>scope":`scope_member`,"integration_connection_resource>conversation":`conversation_attached_resource`,"media_source_library>youtube_video":`catalogued_source`,"message>content_ir_kind_instance":`produced_by`,"note>calendar_event":`about`,"note>hr_candidate":`hr_note`,"note>hr_employee":`hr_note`,"organization>seo_keyword":`keyword_library`,"pc_episode>processed_document":`source`,"processed_document>code_repository":`in_repository`,"processed_document>media_source_library":`catalogued_source`,"processed_document>record":`about`,"processed_document>research_topic":`research_source`,"processed_document>scope":`about`,"processed_document>tag":`about`,"processed_document>web_site":`crawled_page`,"quiz_session>processed_document":`source`,"research_source>youtube_video":`Canonical YouTube video`,"web_youtube_video>seo_map_topic":`covers`,"youtube_video>transcript":`video_transcript`};function BD(e,t){return zD[`${e}>${t}`]}function VD(e){return{id:e.id,direction:e.direction===`incoming`?`incoming`:`outgoing`,otherType:e.other_type,otherId:e.other_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function HD(e){return{id:e.id,targetId:e.target_id,sourceType:e.source_type,sourceId:e.source_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function UD(e){return{id:e.id,sourceId:e.source_id,targetType:e.target_type,targetId:e.target_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function WD(e){let{dataSource:t,identity:n,guards:r}=e,{ok:i,err:a,mapPgError:o,mapPgErrorPair:s}=e.rpc,{checkToken:c,checkUuid:l,checkUuidArray:u,normalizeEntityToken:d}=r;return{async listForEntity(e,r){try{n.requireUserId();let o=d(e),u=yD(c(`type`,o),l(`id`,r));if(u)return{ok:!1,error:u};let{data:f,error:p}=await t.rpc(`assoc_for_entity`,{p_type:o,p_id:r});return p?a(...s(p)):i({edges:(Array.isArray(f)?f:[]).map(VD)})}catch(e){return{ok:!1,error:o(e)}}},async listConversationFiles(e){try{n.requireUserId();let r=l(`conversationId`,e);if(r)return{ok:!1,error:r};let{data:o,error:c}=await t.rpc(`conversation_files`,{p_conversation_id:e});return c?a(...s(c)):i({files:(Array.isArray(o)?o:[]).map(e=>({fileId:e.file_id,label:e.label??null,metadata:e.metadata??{},createdAt:e.created_at}))})}catch(e){return{ok:!1,error:o(e)}}},async listForTargets(e,r){try{n.requireUserId();let o=d(e),l=Array.from(new Set(r));if(l.length===0)return i({edges:[]});let f=yD(c(`targetType`,o),u(`targetIds`,l));if(f)return{ok:!1,error:f};let{data:p,error:m}=await t.rpc(`assoc_for_targets`,{p_target_type:o,p_target_ids:l});return m?a(...s(m)):i({edges:(Array.isArray(p)?p:[]).map(HD)})}catch(e){return{ok:!1,error:o(e)}}},async listForTargetsVisible(e,r){try{n.requireUserId();let o=d(e),l=Array.from(new Set(r));if(l.length===0)return i({edges:[]});let f=yD(c(`targetType`,o),u(`targetIds`,l));if(f)return{ok:!1,error:f};let{data:p,error:m}=await t.rpc(`assoc_members_visible`,{p_target_type:o,p_target_ids:l});return m?a(...s(m)):i({edges:(Array.isArray(p)?p:[]).map(HD)})}catch(e){return{ok:!1,error:o(e)}}},async listForSources(e,r,l){try{n.requireUserId();let o=d(e),f=l==null?void 0:d(l),p=Array.from(new Set(r));if(p.length===0)return i({edges:[]});let m=yD(c(`sourceType`,o),u(`sourceIds`,p),f?c(`targetType`,f):null);if(m)return{ok:!1,error:m};let{data:h,error:g}=await t.rpc(`assoc_for_sources`,{p_source_type:o,p_source_ids:p,...f?{p_target_type:f}:{}});return g?a(...s(g)):i({edges:(Array.isArray(h)?h:[]).map(UD)})}catch(e){return{ok:!1,error:o(e)}}},async add(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),u=yD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),l(`targetId`,e.targetId),e.orgId==null?null:l(`orgId`,e.orgId));if(u)return{ok:!1,error:u};if(r===`file`&&o===`conversation`){if(e.role!=null||e.position!=null||e.payloadKind!=null||e.payload!=null)return a(`invalid_argument`,`File conversation attachments support only the canonical role-less edge`);let{data:n,error:r}=await t.rpc(`conversation_file_add`,{p_conversation_id:e.targetId,p_file_id:e.sourceId,p_label:e.label,p_metadata:e.metadata??{},p_replace_metadata:e.replaceMetadata??!1});return r?a(...s(r)):!n||typeof n!=`string`?a(`internal`,`conversation_file_add returned no association id`):i({id:n})}if(e.replaceMetadata!=null)return a(`invalid_argument`,`replaceMetadata is supported only for file conversation attachments`);let{data:f,error:p}=await t.rpc(`assoc_add`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_id:e.targetId,p_org_id:e.orgId,p_label:BD(r,o)??e.label,p_metadata:e.metadata??{},p_role:e.role,p_position:e.position,p_payload_kind:e.payloadKind,p_payload:e.payload??void 0});return p?a(...s(p)):!f||typeof f!=`string`?a(`internal`,`assoc_add returned no association id`):i({id:f})}catch(e){return{ok:!1,error:o(e)}}},async remove(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),u=yD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),l(`targetId`,e.targetId));if(u)return{ok:!1,error:u};if(r===`file`&&o===`conversation`){if(e.role!=null)return a(`invalid_argument`,`File conversation attachments support only the canonical role-less edge`);let{error:n}=await t.rpc(`conversation_file_remove`,{p_conversation_id:e.targetId,p_file_id:e.sourceId});return n?a(...s(n)):i(null)}let{error:f}=await t.rpc(`assoc_remove`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_id:e.targetId,p_role:e.role});return f?a(...s(f)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async setTargets(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),f=Array.from(new Set(e.targetIds)),p=yD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),u(`targetIds`,f),e.orgId==null?null:l(`orgId`,e.orgId));if(p)return{ok:!1,error:p};let{error:m}=await t.rpc(`assoc_set_targets`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_ids:f,p_org_id:e.orgId,p_role:e.role});return m?a(...s(m)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async addAgentResource(e){try{n.requireUserId();let r=d(e.sourceType),o=yD(l(`agentId`,e.agentId),c(`sourceType`,r),l(`sourceId`,e.sourceId));if(o)return{ok:!1,error:o};let{data:u,error:f}=await t.rpc(`agent_resource_add`,{p_agent_id:e.agentId,p_source_type:r,p_source_id:e.sourceId,p_label:e.label,p_metadata:e.metadata??{}});return f?a(...s(f)):!u||typeof u!=`string`?a(`internal`,`agent_resource_add returned no association id`):i({id:u})}catch(e){return{ok:!1,error:o(e)}}},async removeAgentResource(e){try{n.requireUserId();let r=d(e.sourceType),o=yD(l(`agentId`,e.agentId),c(`sourceType`,r),l(`sourceId`,e.sourceId));if(o)return{ok:!1,error:o};let{error:u}=await t.rpc(`agent_resource_remove`,{p_agent_id:e.agentId,p_source_type:r,p_source_id:e.sourceId});return u?a(...s(u)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async removeForEntity(e,r){try{n.requireUserId();let o=d(e),u=yD(c(`type`,o),l(`id`,r));if(u)return{ok:!1,error:u};let{error:f}=await t.rpc(`assoc_remove_for_entity`,{p_type:o,p_id:r});return f?a(...s(f)):i(null)}catch(e){return{ok:!1,error:o(e)}}}}}function GD(e){return{id:e.id,orgId:e.organization_id??null,dimension:e.dimension,name:e.name,slug:e.slug??null,parentId:e.parent_id??null,isSystem:!!e.is_system,color:e.color??null,icon:e.icon??null,position:e.position??null,metadata:e.metadata&&typeof e.metadata==`object`&&!Array.isArray(e.metadata)?e.metadata:null}}function KD(e){let{dataSource:t,identity:n}=e,{ok:r,err:i,mapPgError:a,mapPgErrorPair:o}=e.rpc;return{async list(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_list`,{p_dimension:e});return s?i(...o(s)):r({categories:(Array.isArray(a)?a:[]).map(GD)})}catch(e){return{ok:!1,error:a(e)}}},async create(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_create`,{p_dimension:e.dimension,p_name:e.name,p_org_id:e.orgId,p_parent_id:e.parentId??void 0,p_color:e.color??void 0,p_icon:e.icon??void 0,p_slug:e.slug??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_create returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async update(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_update`,{p_category_id:e.id,p_name:e.name,p_slug:e.slug??void 0,p_color:e.color??void 0,p_icon:e.icon??void 0,p_position:e.position??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_update returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async reparent(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_reparent`,{p_category_id:e.id,p_parent_id:e.parentId??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_reparent returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async delete(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_delete`,{p_category_id:e});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_delete returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}}}}function qD(e){return{entityType:e.entity_type,entityId:e.entity_id,isFavorite:e.is_favorite,isPinned:e.is_pinned,isHidden:e.is_hidden,lastViewedAt:e.last_viewed_at??null}}function JD(e){let{dataSource:t,identity:n}=e,{ok:r,err:i,mapPgError:a,mapPgErrorPair:o}=e.rpc,s={async setState(e){try{n.requireUserId();let{error:a}=await t.rpc(`ues_set`,{p_entity_type:e.entityType,p_entity_id:e.entityId,p_is_favorite:e.isFavorite,p_is_pinned:e.isPinned,p_is_hidden:e.isHidden});return a?i(...o(a)):r(null)}catch(e){return{ok:!1,error:a(e)}}},async setFavorite(e,t,n){return s.setState({entityType:e,entityId:t,isFavorite:n})},async setPinned(e,t,n){return s.setState({entityType:e,entityId:t,isPinned:n})},async setHidden(e,t,n){return s.setState({entityType:e,entityId:t,isHidden:n})},async list(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`ues_list`,{p_kind:e});return s?i(...o(s)):r({items:(Array.isArray(a)?a:[]).map(qD)})}catch(e){return{ok:!1,error:a(e)}}},async getBulk(e,s){try{n.requireUserId();let a=Array.from(new Set(s)),{data:c,error:l}=await t.rpc(`ues_get_bulk`,{p_entity_type:e,p_entity_ids:a});return l?i(...o(l)):r({items:(Array.isArray(c)?c:[]).map(t=>({entityType:e,entityId:t.entity_id,isFavorite:t.is_favorite,isPinned:t.is_pinned,isHidden:t.is_hidden,lastViewedAt:t.last_viewed_at??null}))})}catch(e){return{ok:!1,error:a(e)}}},async touch(e,s){try{n.requireUserId();let{error:a}=await t.rpc(`ues_touch`,{p_entity_type:e,p_entity_id:s});return a?i(...o(a)):r(null)}catch(e){return{ok:!1,error:a(e)}}}};return s}function YD(e){let{dataSource:t,registry:n,errorSink:r}=e,i=async e=>{let{data:n,error:r}=await t.rpc(`reference_search_candidates`,e);return r?{data:null,error:r}:{data:Array.isArray(n)?n:[],error:null}};async function a(e){let{token:t,search:a,limit:o=100}=e,s=n.getEntityInfo(t);if(s.listCandidates)try{return await s.listCandidates({...a===void 0?{}:{search:a},limit:o})}catch(e){let n=e instanceof Error?e.message:`Failed to load candidates`;return r({code:`candidate_override_failed`,message:`[listAssociationCandidates] override failed for "${t}": ${n}`,context:{token:t,detail:e}}),{ok:!1,error:n}}if(!s.canListCandidates||!s.titleColumn){let e=`Entity "${t}" has no title column — set one in platform.entity_types (or register a listCandidates override) before listing candidates`;return r({code:`unlistable_token`,message:`[listAssociationCandidates] ${e}`,context:{token:t}}),{ok:!1,error:e}}let c=a?.trim()||void 0,{data:l,error:u}=await i({p_token:t,...c===void 0?{}:{p_search:c},p_limit:o});return u?(r({code:`candidate_rpc_failed`,message:`[listAssociationCandidates] candidate RPC failed for "${t}": ${u.message}`,context:{token:t,detail:u}}),{ok:!1,error:u.message}):{ok:!0,data:l.map(e=>({id:e.id,title:e.title?.trim()||`Untitled`}))}}async function o(e){let{tokens:t,search:r,perTokenLimit:i=5,concurrency:o=6}=e,s=t??n.listableTokens();if(s.length===0)return{results:[],failures:[]};let c=[],l=[],u=0;async function d(){for(;u<s.length;){let e=s[u];if(u+=1,!e)continue;let t=await a({token:e,search:r,limit:i});if(t.ok)for(let n of t.data)c.push({...n,token:e});else l.push({token:e,error:t.error})}}await Promise.all(Array.from({length:Math.min(o,s.length)},d));let f=new Map(s.map((e,t)=>[e,t]));return c.sort((e,t)=>{let n=f.get(e.token)??0,r=f.get(t.token)??0;return n===r?e.title.localeCompare(t.title):n-r}),l.sort((e,t)=>(f.get(e.token)??0)-(f.get(t.token)??0)),{results:c,failures:l}}return{callReferenceSearchCandidates:i,listAssociationCandidates:a,searchCandidatesAcrossTokens:o}}var XD=200;function ZD(e,t){return`${e}:${t}`}function QD(e,t){let{registry:n,errorSink:r}=e,i=new Map;return{get(e,t){return i.get(ZD(e,t))??null},prime(e,t,n){let r=n.trim();r&&i.set(ZD(e,t),r)},fallback(e){return`Untitled ${n.tryGetEntityInfo(e)?.label??de(e)}`},async fetch(e,a){let o=new Map;if(a.length===0)return o;let s=n.tryGetEntityInfo(e),c=[];for(let t of a){let n=i.get(ZD(e,t));n===void 0?c.push(t):o.set(t,n)}if(c.length===0||!s?.titleColumn)return o;for(let n=0;n<c.length;n+=XD){let a=c.slice(n,n+XD),{data:s,error:l}=await t.callReferenceSearchCandidates({p_token:e,p_ids:a,p_limit:a.length});if(l){r({code:`title_rpc_failed`,message:`[fetchEntityTitles] candidate RPC failed for "${e}": ${l.message}`,context:{token:e,chunkStart:n,chunkSize:a.length,detail:l}});continue}for(let t of s){let n=t.title?.trim();n&&(i.set(ZD(e,t.id),n),o.set(t.id,n))}}return o}}}function $D(e,t){let{dataSource:n,registry:r,errorSink:i}=e;function a(e,t){if(!r.getEntityInfo(e).titleColumn){let n=`Entity "${e}" has no title_column in platform.entity_types — add one in the registry before ${t}`;return i({code:`missing_title_column`,message:`[entityRows] ${n}`,context:{token:e}}),{ok:!1,error:n}}return{ok:!0}}return{async createEntityRow(e,o){let s=a(e,`creating rows`);if(!s.ok)return s;let c=o.title.trim();if(!c)return{ok:!1,error:`Name is required`};let l=Object.keys(o.extraColumns??{});if(l.length>0){let t=`A new ${r.getEntityInfo(e).label} cannot be created here with ${l.join(`, `)}: the shared create door writes the name, the owner and the organization and nothing else. Create it with this feature's own create service, then attach it.`;return i({code:`entity_row_extra_columns_unsupported`,message:`[createEntityRow] extraColumns are not writable through entity_row_create for "${e}": ${l.join(`, `)}`,context:{token:e,extras:l}}),{ok:!1,error:t}}if(!o.orgId){let t=`Name the organization this ${r.getEntityInfo(e).label} belongs to.`;return i({code:`entity_row_missing_organization`,message:`[createEntityRow] no organization supplied for "${e}"; entity_row_create requires one`,context:{token:e}}),{ok:!1,error:t}}try{let{data:r,error:a}=await n.rpc(`entity_row_create`,{p_token:e,p_title:c,p_organization_id:o.orgId});if(a)return i({code:`entity_row_insert_failed`,message:`[createEntityRow] entity_row_create failed for "${e}": ${a.message}`,context:{token:e,detail:a}}),{ok:!1,error:a.message};let s=r;if(!s||typeof s.id!=`string`||!s.id)return i({code:`entity_row_insert_failed`,message:`[createEntityRow] entity_row_create returned no id for "${e}"`,context:{token:e,detail:r}}),{ok:!1,error:`The create door returned no record.`};let l=s.id,u=typeof s.title==`string`&&s.title?s.title:c;return t.prime(e,l,u),{ok:!0,data:{id:l,title:u}}}catch(t){let n=t instanceof Error?t.message:`Failed to create`;return i({code:`entity_row_insert_failed`,message:`[createEntityRow] exception for "${e}": ${n}`,context:{token:e,detail:t}}),{ok:!1,error:n}}},async renameEntityRow(e,r,o){let s=a(e,`renaming rows`);if(!s.ok)return s;let c=o.trim();if(!c)return{ok:!1,error:`Name is required`};try{let{error:a}=await n.rpc(`entity_row_rename`,{p_token:e,p_id:r,p_title:c});return a?(i({code:`entity_row_update_failed`,message:`[renameEntityRow] entity_row_rename failed for "${e}": ${a.message}`,context:{token:e,id:r,detail:a}}),{ok:!1,error:a.message}):(t.prime(e,r,c),{ok:!0})}catch(t){let n=t instanceof Error?t.message:`Failed to rename`;return i({code:`entity_row_update_failed`,message:`[renameEntityRow] exception for "${e}": ${n}`,context:{token:e,id:r,detail:t}}),{ok:!1,error:n}}}}}function eO(e,t){let n=e[0]??{code:`internal`,message:`unknown failure`};return{code:e.every(e=>e.code===n.code)?n.code:`internal`,message:`${e.length}/${t} association edge(s) failed: ${n.message}`,detail:e}}function tO(e){return[e.code,e.message,e.detail]}function nO(e){async function t(t){if(t.length===0)return SD({ids:[]});let n=await Promise.all(t.map(t=>e.add({sourceType:t.source.type,sourceId:t.source.id,targetType:t.target.type,targetId:t.target.id,...t.orgId===void 0?{}:{orgId:t.orgId},...t.label===void 0?{}:{label:t.label},...t.metadata===void 0?{}:{metadata:t.metadata},...t.role===void 0?{}:{role:t.role},...t.position===void 0?{}:{position:t.position}}))),r=[],i=[];for(let e of n)fD(e)?i.push(e.error):r.push(e.data.id);return i.length>0?xD(...tO(eO(i,t.length))):SD({ids:r})}return{linkEdges:t,async linkOneToMany({source:e,targets:n,attrs:r}){return t(n.map(t=>({source:e,target:t,...r})))},async linkManyToOne({sources:e,target:n,attrs:r}){return t(e.map(e=>({source:e,target:n,...r})))},async replaceTargets(t){return e.setTargets({sourceType:t.source.type,sourceId:t.source.id,targetType:t.targetType,targetIds:t.targetIds,...t.orgId===void 0?{}:{orgId:t.orgId},...t.role===void 0?{}:{role:t.role}})},async linkCreated(e){return t(e.targets.map(t=>({source:e.created,target:t,...e.attrs})))},async unlinkEdges(t){if(t.length===0)return SD(null);let n=await Promise.all(t.map(t=>e.remove({sourceType:t.source.type,sourceId:t.source.id,targetType:t.target.type,targetId:t.target.id,...t.role===void 0?{}:{role:t.role}}))),r=[];for(let e of n)fD(e)&&r.push(e.error);return r.length>0?xD(...tO(eO(r,t.length))):SD(null)}}}function rO(e){return{id:e.id,orgId:e.organization_id??null,entityType:e.entity_type,entityId:e.entity_id,parentId:e.parent_id??null,body:e.body,createdAt:e.created_at,updatedAt:e.updated_at,createdBy:e.created_by??null,author:{email:e.author_email??null,displayName:e.author_display_name??null,avatarUrl:e.author_avatar_url??null},authorAgent:e.author_agent_id?{id:e.author_agent_id,name:e.author_agent_name??null}:null,anchor:e.anchor&&typeof e.anchor==`object`?e.anchor:null}}function iO(e){let{dataSource:t,identity:n,guards:r}=e,{ok:i,err:a,mapPgError:o,mapPgErrorPair:s}=e.rpc;return{async listForEntity(e,c){try{n.requireUserId();let o=r.normalizeEntityToken(e),l=yD(r.checkToken(`entityType`,o),r.checkUuid(`entityId`,c));if(l)return{ok:!1,error:l};let{data:u,error:d}=await t.rpc(`cmt_list`,{p_entity_type:o,p_entity_id:c});return d?a(...s(d)):i({comments:(Array.isArray(u)?u:[]).map(rO)})}catch(e){return{ok:!1,error:o(e)}}},async add(e){try{n.requireUserId();let o=r.normalizeEntityToken(e.entityType),c=yD(r.checkToken(`entityType`,o),r.checkUuid(`entityId`,e.entityId),e.parentId==null?null:r.checkUuid(`parentId`,e.parentId));if(c)return{ok:!1,error:c};if(!e.body||e.body.trim().length===0)return a(`invalid_argument`,`comment body must be non-empty`);let{data:l,error:u}=await t.rpc(`cmt_add`,{p_entity_type:o,p_entity_id:e.entityId,p_body:e.body,p_parent_id:e.parentId??void 0,p_org_id:e.orgId??void 0,...e.anchor?{p_anchor:e.anchor}:{}});return u?a(...s(u)):!l||typeof l!=`string`?a(`internal`,`cmt_add returned no comment id`):i({id:l})}catch(e){return{ok:!1,error:o(e)}}},async edit(e,c){try{n.requireUserId();let o=r.checkUuid(`commentId`,e);if(o)return{ok:!1,error:o};if(!c||c.trim().length===0)return a(`invalid_argument`,`comment body must be non-empty`);let{error:l}=await t.rpc(`cmt_edit`,{p_id:e,p_body:c});return l?a(...s(l)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async remove(e){try{n.requireUserId();let o=r.checkUuid(`commentId`,e);if(o)return{ok:!1,error:o};let{error:c}=await t.rpc(`cmt_delete`,{p_id:e});return c?a(...s(c)):i(null)}catch(e){return{ok:!1,error:o(e)}}}}}function aO(e,t){return`${e}:${t}`}var oO=Object.freeze({status:`idle`,edges:Object.freeze([]),fetchedAt:null,error:null}),sO=Object.freeze({status:`idle`,categories:Object.freeze([]),fetchedAt:null,error:null}),cO=Object.freeze({status:`idle`,comments:Object.freeze([]),fetchedAt:null,error:null});function lO(e){if(!e||typeof e.dataSource?.rpc!=`function`)throw Error(`@ai-matrx/associations: the REQUIRED dataSource port is missing (need an object with rpc(fn, args) — a supabase-js client satisfies it structurally). The package IS data operations; there is no degraded mode without one.`);if(typeof e.identity?.requireUserId!=`function`)throw Error(`@ai-matrx/associations: the REQUIRED identity port is missing (need requireUserId(): string that THROWS when unauthenticated). Identity never comes from a store import.`);let t=typeof e.errorSink==`function`?e.errorSink:pD(),n=RD(t,e.entityOverlay),r={dataSource:e.dataSource,identity:e.identity,errorSink:t,guards:bD(t),rpc:ED(t),registry:n},i=WD(r),a=KD(r),o=JD(r),s=YD(r),c=QD(r,s),l=$D(r,c),u=nO(i),d=iO(r),f=new Map,p=new Map,m=new Map,h=new Map,g=new Map,_=new Map,v=new Map,y=new Map,b=new Map;function x(e){let t=p.get(e);if(t)for(let e of[...t])e()}function S(e){let t=g.get(e);if(t)for(let e of[...t])e()}function C(e,t){f.set(e,t),x(e)}function w(e,t){h.set(e,t),S(e)}function T(e){let t=y.get(e);if(t)for(let e of[...t])e()}function E(e,t){v.set(e,t),T(e)}async function D(e,t,n={}){let r=n.force??!1;if(!e||!t)return;let a=aO(e,t),o=f.get(a);if(!r&&o?.status===`ready`)return;let s=m.get(a);if(!r&&o?.status===`loading`&&s)return s;let c=f.get(a);C(a,{status:`loading`,edges:c?.edges??[],fetchedAt:c?.fetchedAt??null,error:c?.error??null});let l=(async()=>{try{let n=await i.listForEntity(e,t);if(fD(n)){let e=f.get(a);C(a,{status:`error`,edges:e?.edges??[],fetchedAt:e?.fetchedAt??null,error:n.error.message})}else C(a,{status:`ready`,edges:n.data.edges,fetchedAt:Date.now(),error:null})}finally{m.delete(a)}})();return m.set(a,l),l}async function O(e,t,n,r){await Promise.all([D(e,t,{force:!0}),D(n,r,{force:!0})])}async function k(e,t={}){let n=t.force??!1;if(!e)return;let r=h.get(e);if(!n&&r?.status===`ready`)return;let i=_.get(e);if(!n&&r?.status===`loading`&&i)return i;let o=h.get(e);w(e,{status:`loading`,categories:o?.categories??[],fetchedAt:o?.fetchedAt??null,error:null});let s=(async()=>{try{let t=await a.list(e);if(fD(t)){let n=h.get(e);w(e,{status:`error`,categories:n?.categories??[],fetchedAt:n?.fetchedAt??null,error:t.error.message})}else w(e,{status:`ready`,categories:t.data.categories,fetchedAt:Date.now(),error:null})}finally{_.delete(e)}})();return _.set(e,s),s}async function A(e,t,n={}){let r=n.force??!1;if(!e||!t)return;let i=aO(e,t),a=v.get(i);if(!r&&a?.status===`ready`)return;let o=b.get(i);if(!r&&a?.status===`loading`&&o)return o;let s=v.get(i);E(i,{status:`loading`,comments:s?.comments??[],fetchedAt:s?.fetchedAt??null,error:s?.error??null});let c=(async()=>{try{let n=await d.listForEntity(e,t);if(fD(n)){let e=v.get(i);E(i,{status:`error`,comments:e?.comments??[],fetchedAt:e?.fetchedAt??null,error:n.error.message})}else E(i,{status:`ready`,comments:n.data.comments,fetchedAt:Date.now(),error:null})}finally{b.delete(i)}})();return b.set(i,c),c}return{getEdges(e,t){return!e||!t?oO:f.get(aO(e,t))??oO},load:D,subscribe(e,t){let n=p.get(e);return n||(n=new Set,p.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&p.delete(e)}},async add(e){let t=await i.add(e);return fD(t)?{ok:!1,error:t.error.message}:(await O(e.sourceType,e.sourceId,e.targetType,e.targetId),{ok:!0,id:t.data.id})},async remove(e){let t=await i.remove(e);return fD(t)?{ok:!1,error:t.error.message}:(await O(e.sourceType,e.sourceId,e.targetType,e.targetId),{ok:!0})},async setTargets(e){let t=await i.setTargets(e);return fD(t)?{ok:!1,error:t.error.message}:(await D(e.sourceType,e.sourceId,{force:!0}),{ok:!0})},invalidate(e,t){let n=aO(e,t);f.delete(n)&&x(n)},invalidateAll(){let e=[...f.keys()];f.clear();for(let t of e)x(t);let t=[...h.keys()];h.clear();for(let e of t)S(e);let n=[...v.keys()];v.clear();for(let e of n)T(e)},getCategories(e){return e?h.get(e)??sO:sO},loadCategories:k,subscribeCategories(e,t){let n=g.get(e);return n||(n=new Set,g.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&g.delete(e)}},async createCategory(e){let t=await a.create(e);if(fD(t))return{ok:!1,error:t.error.message};let n={id:t.data.id,orgId:e.orgId,dimension:e.dimension,name:e.name,slug:e.slug??null,parentId:e.parentId??null,isSystem:!1,color:e.color??null,icon:e.icon??null,metadata:null,position:null},r=h.get(e.dimension),i=r?.categories??[];return i.some(e=>e.id===n.id)||w(e.dimension,{status:`ready`,categories:[...i,n],fetchedAt:r?.fetchedAt??Date.now(),error:null}),await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id}},async updateCategory(e){let t=await a.update(e);return fD(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},async reparentCategory(e){let t=await a.reparent(e);return fD(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},async deleteCategory(e){let t=await a.delete(e.id);return fD(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},getComments(e,t){return!e||!t?cO:v.get(aO(e,t))??cO},loadComments:A,subscribeComments(e,t){let n=y.get(e);return n||(n=new Set,y.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&y.delete(e)}},async addComment(e){let t=await d.add(e);return fD(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:t.data.id})},async editComment(e){let t=await d.edit(e.id,e.body);return fD(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:e.id})},async deleteComment(e){let t=await d.remove(e.id);return fD(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:e.id})},invalidateComments(e,t){let n=aO(e,t);v.delete(n)&&T(n)},titles:c,favorites:o,candidates:s,entityRows:l,helpers:u,registry:n,services:{associations:i,categories:a,comments:d},registerEntityOverlay:n.registerEntityOverlay,errorSink:t,dataSource:e.dataSource,identity:e.identity}}var uO=1e3,dO=5e5,fO=class extends Error{label;collected;expected;constructor(e,t,n,r){super(`readAllRows(${e}): ${r} — collected ${t}`+(n===null?``:` of ${n}`)+`. Refusing to return a partial list: a truncated read used for an existence/diff decision produces a confidently WRONG answer.`),this.label=e,this.collected=t,this.expected=n,this.name=`IncompleteReadError`}};async function pO(e,t){let n=t.pageSize??uO,r=t.maxRows??dO,i=[],a=null;for(let o=0;;o+=n){let s=await e({from:o,to:o+n-1});if(s.error)throw Error(`readAllRows(${t.label}): query failed — ${s.error.message}`);let c=s.data??[];if(i.push(...c),typeof s.count==`number`&&(a=s.count),a===null){if(c.length<n)return i;throw new fO(t.label,i.length,null,`the query returned no count — pass { count: "exact" } to select() so completeness can be verified`)}if(i.length>=a)break;if(c.length===0)throw new fO(t.label,i.length,a,`a page came back empty before the declared total was reached`);if(i.length>r)throw new fO(t.label,i.length,a,`exceeded the ${r}-row safety limit`)}if(i.length!==a)throw new fO(t.label,i.length,a,`final row count does not match the total the server reported`);return i}function mO(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function hO(e){return typeof e==`string`?e:null}function gO(e){return e===!0}function _O(e){return typeof e==`boolean`?e:null}function vO(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function yO(e){return e===`builtin`?`builtin`:`user`}function bO(e){if(!mO(e))return null;let t=e.depth_budget,n=e.member_count;return{mode:hO(e.mode)??`supervisor`,tagline:hO(e.tagline),depthBudget:typeof t==`number`&&Number.isFinite(t)&&t>0?t:null,memberCount:typeof n==`number`&&Number.isFinite(n)&&n>=0?n:0,memberTitles:vO(e.member_titles)}}function xO(e){if(!mO(e))return null;let t=hO(e.id);return t?{id:tD(t),name:hO(e.name),description:hO(e.description),category:hO(e.category),tags:vO(e.tags),agentType:yO(e.agent_type),modelId:hO(e.model_id),isActive:gO(e.is_active),isArchived:gO(e.is_archived),isFavorite:!1,createdBy:hO(e.created_by),organizationId:hO(e.organization_id),taskId:hO(e.task_id),sourceAgentId:hO(e.source_agent_id),createdAt:hO(e.created_at),updatedAt:hO(e.updated_at),isOwner:_O(e.is_owner),accessLevel:hO(e.access_level),sharedByEmail:hO(e.shared_by_email),orchestra:bO(e.orchestra),...`offering_id`in e?{offeringId:hO(e.offering_id)}:{},...`organization_name`in e?{organizationName:hO(e.organization_name)}:{}}:null}var SO=1e3,CO=class extends Error{name=`AgentCatalogReadError`;source;constructor(e,t){super(`${e}: ${t}`),this.source=e}};function wO(e){return e.code?`${e.message} (${e.code})`:e.message}async function TO(e){let t=await pO(({from:t,to:n})=>Promise.resolve(e.rpc(`agx_get_list_full`,{},{count:`exact`}).order(`id`,{ascending:!0}).range(t,n)).then(e=>({data:Array.isArray(e.data)?e.data:null,error:e.error,count:e.count??null})),{label:`agx_get_list_full`,pageSize:SO}),n=[],r=0;for(let e of t){let t=xO(e);t?n.push(t):r+=1}if(r>0)throw new CO(`agx_get_list_full`,`${r} row(s) came back without an id and were refused. A row that cannot be identified cannot be selected, so the catalogue is not trustworthy — check the RPC's return shape.`);return n}async function EO(e,t){let n=t.query.trim();if(!n)return{ids:[],rows:[]};let{data:r,error:i}=await e.rpc(`agx_search`,{p_query:n,p_deep:t.deep??!1,p_limit:t.limit??50,p_offset:0});if(i)throw new CO(`agx_search`,wO(i));let a=[];if(Array.isArray(r))for(let e of r){let t=xO(e);t&&a.push(t)}return{ids:a.map(e=>e.id),rows:a}}async function DO(e,t){try{let n=(await EO(e,{query:t,limit:5})).rows.find(e=>e.id===t);if(n)return n}catch{}let{data:n,error:r}=await e.rpc(`agx_resolve_agent_address`,{p_ids:[t]});if(r)throw new CO(`agx_resolve_agent_address`,wO(r));if(!Array.isArray(n))return null;for(let e of n){if(typeof e!=`object`||!e)continue;let n=e;if(n.agent_id!==t)continue;let r=n.agent_name;return xO({id:t,name:typeof r==`string`?r:null,agent_type:n.agent_type,is_active:!0})}return null}var OO=`agent`;async function kO(e,t,n){if(t.length===0)return t;let r=null;try{let i=await e.getBulk(OO,t.map(e=>e.id));i.ok?r=new Set(i.data.items.filter(e=>e.isFavorite).map(e=>e.entityId)):n(i.error.message)}catch(e){n(e instanceof Error?e.message:String(e))}return t.map(e=>{let t=r?.has(e.id)??!1;return e.isFavorite===t?e:{...e,isFavorite:t}})}async function AO(e,t,n){let r=await e.setFavorite(OO,t,n);if(!r.ok)throw new CO(`user_entity_state (ues_set)`,r.error.code?`${r.error.message} (${r.error.code})`:r.error.message)}var jO=`ai-matrx.agents.catalog.default-row:`,MO=class extends Error{name=`MandateDefaultRowError`;mandateKey;remedy;constructor(e){super(`${e.message} — ${e.remedy}`),this.mandateKey=e.mandateKey,this.remedy=e.remedy}};function NO(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function PO(e,t){if(!NO(t))throw new MO({mandateKey:e,message:`mandate "${e}": the resolution endpoint did not return an object`,remedy:`check that the transport points at the AI Matrx server and that GET /mandates/{key}/resolution is reachable`});let n=t.agent_id,r=t.definition_agent_id,i=t.provenance,a=t.holder_type;return{mandateKey:typeof t.mandate_key==`string`?t.mandate_key:e,holderType:typeof a==`string`?a:`agent`,agentId:typeof n==`string`?n:null,isVersion:t.is_version===!0,definitionAgentId:typeof r==`string`?r:null,provenance:typeof i==`string`?i:`system`}}async function FO(e,t){let n=`/mandates/${encodeURIComponent(t)}/resolution`,r=await e.fetch(n,{method:`GET`,headers:{Accept:`application/json`}});if(!r.ok)throw new MO({mandateKey:t,message:`mandate "${t}": the server refused to resolve it (HTTP ${r.status})`,remedy:r.status===404?`the mandate does not exist — check the key this picker was given`:`check the caller's session and organization context, then retry`});return PO(t,await r.json())}function IO(){let e=new Map;return{getItem:t=>e.get(t)??null,setItem:(t,n)=>{e.set(t,n)},removeItem:t=>{e.delete(t)}}}function LO(){try{let e=globalThis.localStorage;if(e){let t=`${jO}__probe__`;return e.setItem(t,`1`),e.removeItem(t),e}}catch{}return IO()}function RO(e,t){try{if(!t)return null;let n=JSON.parse(t);if(!NO(n))return null;let r=n.holderId,i=n.holderName;if(typeof r!=`string`||typeof i!=`string`)return null;let a=n.holderDescription,o=n.provenance,s=n.at;return{mandateKey:e,holderId:r,holderName:i,holderDescription:typeof a==`string`?a:null,provenance:typeof o==`string`?o:`system`,at:typeof s==`number`?s:0}}catch{return null}}async function zO(e,t){let n;try{n=await e.getItem(jO+t)}catch{return null}return RO(t,n)}async function BO(e,t){try{await e.setItem(jO+t.mandateKey,JSON.stringify(t))}catch{}}function VO(e){return{id:nD(e.mandateKey),name:e.holderName,description:e.holderDescription,category:null,tags:[],agentType:`builtin`,modelId:null,isActive:!0,isArchived:!1,isFavorite:!1,createdBy:null,organizationId:null,taskId:null,sourceAgentId:e.holderId,createdAt:null,updatedAt:null,isOwner:null,accessLevel:null,sharedByEmail:null,orchestra:null,mandateKey:e.mandateKey}}function HO(e,t){return e?e.holderId===t.holderId?e.holderName===t.holderName?null:`The default agent for "${t.mandateKey}" was renamed: "${e.holderName}" is now "${t.holderName}".`:`The default agent for "${t.mandateKey}" changed: this screen was showing "${e.holderName}", and the platform now resolves it to "${t.holderName}". The list below is correct; anything that cached the old name is not.`:null}async function UO(e){let{mandateKey:t,transport:n,client:r,storage:i,lookupRow:a}=e,o=await zO(i,t),s=await FO(n,t);if(s.holderType!==`agent`)throw new MO({mandateKey:t,message:`mandate "${t}": the ${s.provenance} rung names a ${s.holderType} Holder, and an agent picker can only offer an agent`,remedy:`rebind the ${s.provenance} rung to an agent, or drop defaultMandateKey from this picker`});let c=s.definitionAgentId??s.agentId;if(!c)throw new MO({mandateKey:t,message:`mandate "${t}": the server resolved it without naming an agent`,remedy:`bind the ${s.provenance} rung to an agent`});let l=await a(c);if(l||=await DO(r,c)??void 0,!l||!l.name)throw new MO({mandateKey:t,message:`mandate "${t}": its Holder resolved, but nothing this caller can read could name that agent`,remedy:`grant this user access to the Holder, or make it a platform agent — the picker will not print a placeholder name in its place`});let u={mandateKey:t,holderId:c,holderName:l.name,holderDescription:l.description,provenance:s.provenance,at:Date.now()},d=HO(o,u);return await BO(i,u),{resolved:u,row:VO(u),drift:d}}var WO=Symbol.for(`ai-matrx.agents.catalog`);function GO(){let e=globalThis,t=e[WO];return t||(t={catalogs:new Map,listInFlight:new Map,listFetchedAt:new Map,defaultRows:new Map},e[WO]=t),t}var KO=`00000000-0000-0000-0000-000000000000`,qO=`agx_this_function_does_not_exist_probe`,JO={agx_get_list_full:{},agx_search:{p_query:`__probe__`,p_deep:!1,p_limit:1,p_offset:0},agx_resolve_agent_address:{p_ids:[KO]},ues_get_bulk:{p_entity_type:`agent`,p_entity_ids:[KO]}};function YO(e){if(!e||typeof e!=`object`)return!1;let t=e.code;return t===`PGRST202`||t===`42883`}async function XO(e,t={}){let{selfTest:n=!1,throwOnViolation:r=!0}=t,i=Object.keys(JO);n&&i.push(qO);let a=[],o=[],s=[],c=null;for(let t of i){let n=JO[t]??{};try{let{data:r,error:i}=await e.rpc(t,n);t===`agx_get_list_full`&&i==null&&(c=ZO(r)),i==null?s.push(t):YO(i)?a.push(t):s.push(t)}catch(e){o.push({fn:t,error:e})}}if(n){let e=a.includes(qO),t=a.indexOf(qO);t>=0&&a.splice(t,1);let n=s.indexOf(qO);if(n>=0&&s.splice(n,1),!e)throw Error(`assertAgentCatalogSchema self-test FAILED: the fabricated function "${qO}" did not come back as missing. This probe cannot currently fail, so its green result proves nothing — the client is swallowing or faking errors.`)}if(o.length>0)throw Error(`assertAgentCatalogSchema could not complete: ${o.length} probe call(s) failed to reach the database (${o.map(e=>e.fn).join(`, `)}). This is NOT a schema verdict — fix connectivity and re-run.`);let l=a.length===0,u={ok:l,missing:a,unreachable:o,answered:s,orchestraColumn:c};if(!l&&r)throw Error(`DEMANDED SCHEMA VIOLATION: the database this client points at cannot answer ${a.length} demanded function(s): ${a.join(`, `)}. @ai-matrx/agents/catalog cannot render a correct picker against it — point the client at Matrx Main, or apply the agx_* migrations.`);return u}function ZO(e){return!Array.isArray(e)||e.length===0?null:e.some(e=>typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`orchestra`))}var QO=9e5,$O=144e5;function ek(){let e=!1;return t=>{e||(e=!0,console.error("[@ai-matrx/agents/catalog] no errorSink is bound, so failures are only reaching the console. Pass `errorSink` to createAgentCatalog to route them into your diagnostics surface.")),console.error(`[@ai-matrx/agents/catalog] ${t.code}: ${t.message}`,{...t.context??{}})}}function tk(e){return e instanceof Error?e.message:String(e)}function nk(e){if(!e||typeof e!=`object`)throw new uD({code:`missing_config`,message:`createAgentCatalog was called without a config object`,remedy:`pass { client, identity }`});if(!e.client||typeof e.client.rpc!=`function`)throw new uD({code:`missing_client`,message:`createAgentCatalog needs a Supabase client — it IS the catalogue read`,remedy:"pass `client` (a supabase-js client, or anything with rpc() and schema().from())"});if(!e.identity||typeof e.identity.requireUserId!=`function`)throw new uD({code:`missing_identity`,message:`createAgentCatalog needs to know who is asking`,remedy:"pass `identity: { requireUserId() }` — never a silent anonymous read"});let t=e.defaults?.archiveFilter;if(t!==void 0&&!cD(t))throw new uD({code:`invalid_archive_default`,message:`defaults.archiveFilter was ${JSON.stringify(t)}, which is not one of the three states of the platform archive filter`,remedy:`pass "active" (hide archived), "both" (show all) or "archived" (archived only)`});let n={...lD,...t?{archFilter:t}:{}},r=e.catalogId??`default`,i=e.client,a=e.identity,o=e.errorSink??ek(),s=e.notifier,c=e.storage??LO(),l=e.transport,u=e.favorites??lO({dataSource:i,identity:a,errorSink:o}).favorites;function d(e){o({code:`favorite_read_failed`,message:`your starred agents could not be read (${e}); every star is shown unset until the next catalogue load`,context:{catalogId:r}})}let f={...dD,...e.labels??{}},p=GO();p.catalogs.has(r)&&o({code:`catalog_replaced`,message:`a second agent catalog was created under id "${r}" and has REPLACED the first. Two catalogs with one id share a freshness stamp and an in-flight promise; give each one its own \`catalogId\`.`});let m={rows:[],byId:{},status:`idle`,error:null,consumers:{},defaultRows:{}},h=new Set;function g(e){m=e;for(let e of h)e()}function _(e){if(e.length===0)return;let t={...m.byId};for(let n of e)t[n.id]=n;g({...m,byId:t,rows:Object.values(t)})}function v(e){let t={};for(let n of e)t[n.id]=n;g({...m,byId:t,rows:Object.values(t)})}let y=!1;function b(){if(typeof a.getUserId==`function`)return a.getUserId();try{return a.requireUserId()}catch(e){return y||(y=!0,o({code:`identity_unavailable`,message:`identity.requireUserId() threw, so the picker is treating this session as signed out and opening on the public catalogue. Favoriting is unavailable until a session exists.`,context:{detail:tk(e)}})),null}}function x(){let e=p.listFetchedAt.get(r);return e!==void 0&&Date.now()-e<QO}function S(){let e=p.listFetchedAt.get(r);return e===void 0||Date.now()-e>$O}async function C(){if(b()===null){m.rows.length>0&&v([]),g({...m,status:`succeeded`,error:null});return}g({...m,status:`loading`,error:null});try{v(await kO(u,await TO(i),d)),g({...m,status:`succeeded`,error:null}),p.listFetchedAt.set(r,Date.now())}catch(e){let t=tk(e);throw g({...m,status:`failed`,error:t}),o({code:`list_read_failed`,message:`the agent catalogue could not be read: ${t}`,context:{catalogId:r}}),e}}async function w(e){if(!(e?.force??!1)&&x())return;let t=p.listInFlight.get(r);if(t)return t;let n=C().finally(()=>{p.listInFlight.get(r)===n&&p.listInFlight.delete(r)});return p.listInFlight.set(r,n),n}function T(e){return m.consumers[e]??n}function E(e,t){g({...m,consumers:{...m.consumers,[e]:t}})}function D(e,t){m.consumers[e]||E(e,{...n,...t??{}})}function O(e){if(!m.consumers[e])return;let t={...m.consumers};delete t[e],g({...m,consumers:t})}function k(e,t){E(e,{...m.consumers[e]??{...n},...t,listPage:1,sharedPage:1})}function A(e,t,n){let r=m.consumers[e];r&&E(e,t===`list`?{...r,listPage:n}:{...r,sharedPage:n})}function j(e,t){let r=m.consumers[e]??{...n},i={...r};t.matchedIds!==void 0&&(i.serverMatchedIds=t.matchedIds),t.isSearching!==void 0&&(i.isServerSearching=t.isSearching),(i.serverMatchedIds!==r.serverMatchedIds||i.isServerSearching!==r.isServerSearching)&&E(e,i)}function M(e){m.consumers[e]&&E(e,{...n})}async function N(e,t=!1){let n=await EO(i,{query:e,deep:t});return _(await kO(u,n.rows,d)),n.ids}async function P(e,t){let n=m.byId[e];if(!n){o({code:`favorite_unknown_agent`,message:`cannot favorite ${e}: it is not in this catalogue`});return}_([{...n,isFavorite:t}]);try{await AO(u,e,t)}catch(r){throw _([n]),o({code:`favorite_write_failed`,message:`the favorite could not be saved: ${tk(r)}`,context:{agentId:e,isFavorite:t}}),s?.({level:`error`,title:`Favorite not saved`,message:`The star was put back because the change could not be saved. Check your connection and try again.`}),r}}function F(e,t){g({...m,defaultRows:{...m.defaultRows,[e]:t}})}let I=new Set;function L(e){if(!e||I.has(e))return;let t=m.defaultRows[e];if(!t||t.error){if(!l)throw new uD({code:`missing_transport`,message:`a picker asked for the default row of mandate "${e}", but this catalog has no transport`,remedy:"pass `transport` (createMatrxTransport from @ai-matrx/agents/matrx) to createAgentCatalog — clients never walk the mandate ladder themselves, they ask the server"});I.add(e),F(e,{mandateKey:e,row:null,resolved:null,loading:!0,drift:null,error:null}),(async()=>{try{let t=await UO({mandateKey:e,transport:l,client:i,storage:c,errorSink:o,lookupRow:async e=>{let t=m.byId[e];if(t)return t;let n=p.listInFlight.get(r);if(n)return await n.catch(()=>void 0),m.byId[e]}});GO().defaultRows.set(`${r}::${e}`,t.resolved),F(e,{mandateKey:e,row:t.row,resolved:t.resolved,loading:!1,drift:t.drift,error:null}),t.drift&&(o({code:`default_row_drift`,message:t.drift,context:{mandateKey:e,holderId:t.resolved.holderId}}),s?.({level:`warning`,title:`The default agent changed`,message:t.drift}))}catch(t){let n=t instanceof MO?t.message:tk(t);F(e,{mandateKey:e,row:null,resolved:null,loading:!1,drift:null,error:n}),o({code:`default_row_unresolved`,message:n,context:{mandateKey:e}})}finally{I.delete(e)}})()}}function ee(e){return m.defaultRows[e]}function te(e){let t=m.defaultRows[e];t&&t.drift&&F(e,{...t,drift:null})}function ne(e){if(!e||I.has(e))return;let{[e]:t,...n}=m.defaultRows;g({...m,defaultRows:n}),L(e)}let re={catalogId:r,labels:f,errorSink:o,notifier:s,canResolveMandates:l!==void 0,consumerDefaults:n,getState:()=>m,subscribe:e=>(h.add(e),()=>{h.delete(e)}),getAgent:e=>m.byId[e],getUserIdOrNull:b,ensureLoaded:w,isFresh:x,isStale:S,getConsumer:T,registerConsumer:D,unregisterConsumer:O,setConsumerFilter:k,setConsumerPage:A,setConsumerServerSearch:j,resetConsumerFilters:M,searchServer:N,setFavorite:P,ensureDefaultRow:L,getDefaultRow:ee,dismissDefaultRowDrift:te,retryDefaultRow:ne,assertSchema:e=>XO(i,e)};return p.catalogs.set(r,re),re}var rk={supervisor:`supervisor`,sequential:`in order`,parallel:`together`,dag:`custom flow`};function ik(e){return rk[e]??e}function ak(e){let t=e.memberCount;return`Orchestra · ${ik(e.mode)} · ${t} ${t===1?`member`:`members`}`}function ok(e){let t=e.depthBudget;return typeof t!=`number`||t<=0?null:`Team members can call helpers up to ${t} ${t===1?`level`:`levels`} deep`}function sk(e,t=3){let n=e.memberTitles;if(n.length===0)return null;let r=n.slice(0,t),i=n.length-r.length;return`Delegates to: ${r.join(`, `)}${i>0?` +${i} more`:``}`}function ck(e,t){switch(e){case`system`:return t.emptySystem;case`shared`:return t.emptyShared;default:return t.emptyDefault}}function lk(e){return e.userId?e.agentsLoaded?e.ownedCount===0:!1:!0}function uk(e){return oD.find(t=>t.value===e)?.chip??`Archive`}function dk(e){return oD.find(t=>t.value===e)?.label??`Hide archived`}function fk(e){return`Archive filter: ${dk(e).toLowerCase()}. Click for ${dk(sD(e)).toLowerCase()}`}function pk(e){let{count:t,archFilter:n,archivedHiddenCount:r}=e;if(n===`archived`)return`${t} archived shown`;let i=`${t} agent${t===1?``:`s`}`;return n===`both`?`${i} · archived shown`:r>0?`${i} · ${r} archived hidden`:i}function mk(e,t){let n=t.trim().toLowerCase();if(!n)return 0;let r=0,i=(e.name??``).toLowerCase(),a=(e.description??``).toLowerCase();i===n?r+=1e4:i.startsWith(n)?r+=5e3:hk(i,n)?r+=3e3:i.includes(n)&&(r+=2e3),a===n?r+=1e3:a.includes(n)&&(r+=500),e.category?.toLowerCase().includes(n)&&(r+=300),e.tags?.some(e=>e.toLowerCase().includes(n))&&(r+=300),e.modelId?.toLowerCase().includes(n)&&(r+=100),e.agentType?.toLowerCase().includes(n)&&(r+=100),e.outputFormat?.toLowerCase().includes(n)&&(r+=100);let o=e.id.toLowerCase();if(o===n?r+=1e5:o.includes(n)&&(r+=5e3),e.sharedByEmail?.toLowerCase().includes(n)&&(r+=200),r===0&&n.includes(` `)){let t=n.split(/\s+/).filter(Boolean),o=0,s=0;for(let n of t){let t=i.includes(n);(t||a.includes(n)||(e.category?.toLowerCase().includes(n)??!1)||(e.tags?.some(e=>e.toLowerCase().includes(n))??!1))&&(o+=1,s+=t?400:100)}o===t.length&&(r+=s)}return r}function hk(e,t){let n=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return RegExp(`\\b${n}\\b`).test(e)}function gk(e,t){return mk(e,t)>0}function _k(e){let t,n,r=!1;return i=>((!r||t!==i)&&(n=e(i),t=i,r=!0),n)}function vk(e){let t,n,r,i=!1;return(a,o)=>((!i||t!==a||n!==o)&&(r=e(a,o),t=a,n=o,i=!0),r)}function yk(e,t){let n=e.id??``,r=t.id??``;return n<r?-1:+(n>r)}function bk(e,t,n){let r=xk(e,t,n);return!Number.isFinite(r)||r===0?yk(e,t):r}function xk(e,t,n){switch(n){case`name-asc`:return(e.name??``).localeCompare(t.name??``);case`name-desc`:return(t.name??``).localeCompare(e.name??``);case`created-desc`:return+new Date(t.createdAt??0)-new Date(e.createdAt??0);case`category-asc`:return(e.category??``).localeCompare(t.category??``);default:return+new Date(t.updatedAt??0)-new Date(e.updatedAt??0)}}var Sk=_k(e=>{let t=new Set;for(let n of e)n.agentType===`user`&&n.category&&t.add(n.category);return Array.from(t).sort()}),Ck=_k(e=>{let t=new Set;for(let n of e)n.agentType===`builtin`&&n.category&&t.add(n.category);return Array.from(t).sort()}),wk=_k(e=>{let t=new Set;for(let n of e)n.agentType===`user`&&n.tags?.forEach(e=>t.add(e));return Array.from(t).sort()}),Tk=_k(e=>{let t=new Set;for(let n of e)n.agentType===`builtin`&&n.tags?.forEach(e=>t.add(e));return Array.from(t).sort()}),Ek=_k(e=>e.filter(e=>e.agentType===`user`)),Dk=_k(e=>e.filter(e=>e.agentType===`builtin`));function Ok(e,t){let{searchTerm:n,sortBy:r,favFilter:i,favoritesFirst:a}=t;if(n){let i=new Map;e.forEach(e=>{i.set(e.id,mk(e,n))});let a=new Map;return t.serverMatchedIds.forEach((e,t)=>a.set(e,t)),[...e].sort((e,t)=>{let n=i.get(e.id)??0,o=i.get(t.id)??0;if(o!==n)return o-n;if(n===0){let n=a.get(e.id),r=a.get(t.id);if(n!==void 0&&r!==void 0&&n!==r)return n-r}return bk(e,t,r)})}return[...e].sort((e,t)=>{if(a&&i===`all`){let n=+!!e.isFavorite,r=+!!t.isFavorite;if(r!==n)return r-n}return bk(e,t,r)})}function kk(e,t){let{searchTerm:n,includedCats:r,includedTags:i,favFilter:a,archFilter:o,accessFilter:s,tab:c}=t,l=new Set(t.serverMatchedIds);return Ok(e.filter(e=>{if(c===`mine`&&e.isOwner!==!0||c===`shared`&&(e.isOwner!==!1||e.accessLevel==null)||!Mk(e,o)||a===`yes`&&!e.isFavorite||a===`no`&&e.isFavorite||s===`owned`&&e.isOwner!==!0||s===`shared`&&e.isOwner!==!1||s===`editable`&&e.accessLevel!==`owner`&&e.accessLevel!==`admin`&&e.accessLevel!==`editor`)return!1;if(r.length>0){let t=e.category;if(!t){if(!r.includes(`__none__`))return!1}else if(!r.includes(t))return!1}if(i.length>0){if(!e.tags?.length){if(!i.includes(`__none__`))return!1}else if(!e.tags?.some(e=>i.includes(e)))return!1}return!(n&&!gk(e,n)&&!l.has(e.id))}),t)}function Ak(e,t){let{searchTerm:n,favFilter:r,archFilter:i,includedCats:a,includedTags:o}=t,s=new Set(t.serverMatchedIds);return Ok(e.filter(e=>{if(!Mk(e,i)||r===`yes`&&!e.isFavorite||r===`no`&&e.isFavorite)return!1;if(a.length>0){let t=e.category;if(!t){if(!a.includes(`__none__`))return!1}else if(!a.includes(t))return!1}if(o.length>0){if(!e.tags?.length){if(!o.includes(`__none__`))return!1}else if(!e.tags?.some(e=>o.includes(e)))return!1}return!(n&&!gk(e,n)&&!s.has(e.id))}),t)}var jk=(e=!1)=>vk((t,n)=>{let r=Ek(t),i=Dk(t);return n.tab===`system`?Ak(i,n):e&&n.tab===`all`?[...kk(r,n),...Ak(i,n)]:kk(r,n)});function Mk(e,t){return t===`active`?!e.isArchived:t!==`archived`||!!e.isArchived}function Nk(e,t){let n=0;for(let r of e)r.agentType===`builtin`&&Mk(r,t)&&(n+=1);return n}function Pk(e,t,n){let r=0;for(let i of e)i.agentType===`user`&&Mk(i,t)&&n(i)&&(r+=1);return r}var Fk=e=>e.isOwner===!0,Ik=e=>e.isOwner===!1&&e.accessLevel!=null,Lk=()=>!0,Rk=vk((e,t)=>({mine:Pk(e,t,Fk),shared:Pk(e,t,Ik),all:Pk(e,t,Lk),system:Nk(e,t)})),zk=(0,_.createContext)(null);function Bk({catalog:e,platform:t,children:n,...r}){let i=(0,_.useMemo)(()=>({catalog:e,platform:t,...r}),[e,t,r.navigate,r.LinkComponent,r.renderModelRef,r.openPeek,r.popoverContainer]);return(0,j.jsx)(zk.Provider,{value:i,children:n})}function Vk(){let e=(0,_.useContext)(zk);if(!e)throw Error(`@ai-matrx/agents/catalog: no <AgentCatalogProvider> is mounted above this component. Create the catalog once with createAgentCatalog({ client, identity }) and mount <AgentCatalogProvider catalog={catalog}> at the top of your tree.`);return e}function Hk(){return Vk().catalog}function Uk(){let e=Vk(),t=e.navigate,n=e.platform.navigate;return{navigate:(0,_.useCallback)(e=>{if(t){t(e);return}n(e)},[t,n]),LinkComponent:e.LinkComponent??e.platform.LinkComponent,renderModelRef:e.renderModelRef??e.platform.renderModelRef,openPeek:e.openPeek,popoverContainer:e.popoverContainer}}function Wk(e){let t=Hk(),n=(0,_.useCallback)(()=>e(t.getState()),[t,e]);return(0,_.useSyncExternalStore)(t.subscribe,n,n)}function Gk(){return Wk(Kk)}var Kk=e=>e.rows,qk={navigate:e=>{typeof window<`u`&&window.location.assign(e)},LinkComponent:({children:e,...t})=>(0,j.jsx)(`a`,{...t,children:e}),renderModelRef:({modelId:e,className:t})=>(0,j.jsx)(`span`,{className:t,children:e})};function Jk({catalog:e,children:t,...n}){let r=(0,_.useMemo)(()=>qk,[]);return(0,j.jsx)(Bk,{catalog:e,platform:r,...n,children:t})}var Yk=250,Xk=2;function Zk(e,t){let n=Hk(),r=n.consumerDefaults,i=Wk((0,_.useCallback)(t=>t.consumers[e]??r,[e,r])),a=(0,_.useRef)(t);a.current=t,(0,_.useEffect)(()=>{let t=a.current,r={...t?.initialTab?{tab:t.initialTab}:{},...t?.initialArchFilter?{archFilter:t.initialArchFilter}:{}};return n.registerConsumer(e,Object.keys(r).length>0?r:void 0),()=>{a.current?.unregisterOnUnmount&&n.unregisterConsumer(e)}},[e,n]);let o=(0,_.useCallback)(t=>n.setConsumerFilter(e,{searchTerm:t}),[e,n]),s=(0,_.useCallback)(t=>n.setConsumerFilter(e,{deepSearch:t}),[e,n]),c=(0,_.useCallback)(t=>n.setConsumerFilter(e,{sortBy:t}),[e,n]),l=(0,_.useCallback)(t=>n.setConsumerFilter(e,{tab:t}),[e,n]),u=(0,_.useCallback)(t=>n.setConsumerFilter(e,{favFilter:t}),[e,n]),d=(0,_.useCallback)(t=>n.setConsumerFilter(e,{archFilter:t}),[e,n]),f=(0,_.useCallback)(t=>n.setConsumerFilter(e,{accessFilter:t}),[e,n]),p=(0,_.useCallback)(t=>{let r=n.getConsumer(e).includedCats,i=r.includes(t)?r.filter(e=>e!==t):[...r,t];n.setConsumerFilter(e,{includedCats:i})},[e,n]),m=(0,_.useCallback)(t=>{let r=n.getConsumer(e).includedTags,i=r.includes(t)?r.filter(e=>e!==t):[...r,t];n.setConsumerFilter(e,{includedTags:i})},[e,n]),h=(0,_.useCallback)(t=>n.setConsumerFilter(e,{includedCats:t}),[e,n]),g=(0,_.useCallback)(t=>n.setConsumerFilter(e,{includedTags:t}),[e,n]),v=(0,_.useCallback)(()=>n.setConsumerFilter(e,{favoritesFirst:!n.getConsumer(e).favoritesFirst}),[e,n]),y=(0,_.useCallback)(()=>n.setConsumerPage(e,`list`,n.getConsumer(e).listPage+1),[e,n]),b=(0,_.useCallback)(()=>n.setConsumerPage(e,`shared`,n.getConsumer(e).sharedPage+1),[e,n]),x=(0,_.useCallback)(()=>n.resetConsumerFilters(e),[e,n]),[S,C]=(0,_.useState)(!1),[w,T]=(0,_.useState)(null),E=(0,_.useRef)(0),D=i.searchTerm,O=i.deepSearch;(0,_.useEffect)(()=>{let e=D.trim();if(e.length<Xk){C(!1),T(null);return}let t=++E.current;C(!0);let r=setTimeout(()=>{n.searchServer(e,O).then(e=>{t===E.current&&(T(e),C(!1))}).catch(r=>{t===E.current&&(n.errorSink({code:`server_search_failed`,message:`agent search failed: ${r instanceof Error?r.message:String(r)}`,context:{query:e,deep:O}}),C(!1))})},Yk);return()=>clearTimeout(r)},[D,O,n]),(0,_.useEffect)(()=>{n.setConsumerServerSearch(e,{matchedIds:w??[],isSearching:S})},[e,n,w,S]);let k=i.searchTerm!==``||i.includedCats.length>0||i.includedTags.length>0||i.favFilter!==`all`||i.archFilter!==r.archFilter||i.accessFilter!==`any`||!i.favoritesFirst;return{tab:i.tab,sortBy:i.sortBy,searchTerm:i.searchTerm,includedCats:i.includedCats,includedTags:i.includedTags,favFilter:i.favFilter,archFilter:i.archFilter,archFilterDefault:r.archFilter,accessFilter:i.accessFilter,favoritesFirst:i.favoritesFirst,listPage:i.listPage,sharedPage:i.sharedPage,state:i,hasActiveFilters:k,deepSearch:i.deepSearch,isServerSearching:i.isServerSearching,setSearchTerm:o,setDeepSearch:s,setSortBy:c,setTab:l,setFavFilter:u,setArchFilter:d,setAccessFilter:f,toggleCategory:p,toggleTag:m,setIncludedCats:h,setIncludedTags:g,toggleFavoritesFirst:v,loadMoreList:y,loadMoreShared:b,resetFilters:x}}function Qk(e,t,n){return t.length===0||t.includes(e)?null:n&&t.includes(n)?n:t[0]??null}var $k=[];function eA({consumerId:e,onSelect:t,navigateTo:n,activeAgentIdOverride:r,initialTab:i,includeSystemInAll:a=!1,visibleTabs:o,initialArchFilter:s,excludeAgentIds:c=$k,defaultMandateKey:l,agentFilter:u}){let d=Hk(),{navigate:f}=Uk(),p=(0,_.useRef)(!1),[m,h]=(0,_.useState)(null),g=(0,_.useRef)(null),v=(0,_.useRef)(!1),y=Zk(e,{unregisterOnUnmount:!0,...s?{initialArchFilter:s}:{}}),b=Gk(),x=d.getUserIdOrNull(),S=Rk(b,y.state.archFilter),C=S.mine,w=(0,_.useMemo)(()=>jk(a),[a])(b,y.state),T=(0,_.useMemo)(()=>new Set(c),[c]),[E,D]=(0,_.useState)(null),O=u&&E!==u.label?u:null,k=O?.test,A=(0,_.useCallback)(e=>T.size===0&&!k?e:e.filter(e=>!T.has(e.id)&&(!k||k(e))),[T,k]),j=(0,_.useCallback)(()=>{u&&(u.onClear?u.onClear():D(u.label))},[u]),M=(0,_.useCallback)(()=>D(null),[]),N=A(w),P=(0,_.useMemo)(()=>jk(a),[a]),F=(0,_.useMemo)(()=>({...y.state,archFilter:`archived`}),[y.state]),I=y.archFilter===`active`?A(P(b,F)).length:0,L=Wk(tA),ee=r??null,te=ee?d.getAgent(ee):void 0,ne=y.tab===`system`,re=ne?Ck(b):Sk(b),ie=ne?Tk(b):wk(b),ae=S,oe=L===`loading`,se=L===`succeeded`||L===`failed`,ce=(0,_.useCallback)(()=>{p.current||(p.current=!0,d.ensureLoaded().catch(()=>{}))},[d]),le=Wk((0,_.useCallback)(e=>l?e.defaultRows[l]:void 0,[l]));(0,_.useEffect)(()=>{l&&d.ensureDefaultRow(l)},[d,l]),(0,_.useEffect)(()=>{if(!v.current){if(i){v.current=!0,y.tab!==i&&y.setTab(i);return}if(y.tab!==`mine`){v.current=!0;return}if(!lk({userId:x,ownedCount:C,agentsLoaded:se})){(!x||se)&&(v.current=!0);return}y.setTab(`system`),v.current=!0}},[x,C,se,i,y.tab,y.setTab]);let ue=o?o.join(`,`):``;(0,_.useEffect)(()=>{if(!ue)return;let e=Qk(y.tab,ue.split(`,`),i);e&&y.setTab(e)},[ue,i,y.tab,y.setTab]),(0,_.useEffect)(()=>{ce()},[ce]);let R=(0,_.useCallback)(r=>{t?t(r.id):n?f(n.replace(`{id}`,r.id)):d.errorSink({code:`select_has_nowhere_to_go`,message:`an agent was chosen but this picker was given neither onSelect nor navigateTo, so the choice went nowhere.`,context:{consumerId:e,agentId:r.id}})},[t,n,f,d,e]),de=(y.sortBy===`updated-desc`?0:1)+ +(y.includedCats.length>0)+ +(y.includedTags.length>0)+(y.favFilter===`all`?0:1)+(y.archFilter===y.archFilterDefault?0:1),z=(0,_.useCallback)((e,t)=>{t||(g.current&&=(clearTimeout(g.current),null),h(e))},[]),B=(0,_.useCallback)((e,t)=>{m?.id===e.id&&(g.current=setTimeout(()=>{h(null),t()},900))},[m]),fe=(0,_.useCallback)(()=>{g.current&&=(clearTimeout(g.current),null)},[]),pe=(0,_.useCallback)(e=>{g.current=setTimeout(()=>{h(null),e()},900)},[]);return(0,_.useEffect)(()=>()=>{g.current&&clearTimeout(g.current)},[]),{agents:N,archivedHiddenCount:I,footerLabel:pk({count:N.length,archFilter:y.archFilter,archivedHiddenCount:I}),isLoading:oe,activeAgentId:ee,pinnedAgent:te??null,defaultRow:le??null,agentFilterLabel:O?.label??null,clearAgentFilter:j,resumeAgentFilter:M,allCategories:re,allTags:ie,consumer:y,tabCounts:ae,activeFilterCount:de,hoveredAgent:m,setHoveredAgent:h,ensureLoaded:ce,handleSelectAgent:R,handleAgentHover:z,handleAgentHoverEnd:B,handleDetailPanelMouseEnter:fe,handleDetailPanelMouseLeave:pe}}var tA=e=>e.status,nA={star:{paths:[`M11.5 3.2a.6.6 0 0 1 1 0l2.3 4.7 5.2.8a.6.6 0 0 1 .3 1l-3.8 3.7.9 5.2a.6.6 0 0 1-.9.6L12 16.8l-4.6 2.4a.6.6 0 0 1-.9-.6l.9-5.2-3.8-3.7a.6.6 0 0 1 .3-1l5.2-.8Z`],fillable:!0},chevronRight:{paths:[`m9 18 6-6-6-6`]},chevronDown:{paths:[`m6 9 6 6 6-6`]},search:{paths:[`m21 21-4.3-4.3`],circles:[{cx:11,cy:11,r:8}]},x:{paths:[`M18 6 6 18`,`m6 6 12 12`]},check:{paths:[`M20 6 9 17l-5-5`]},arrowUpDown:{paths:[`m21 16-4 4-4-4`,`M17 20V4`,`m3 8 4-4 4 4`,`M7 4v16`]},folder:{paths:[`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`]},tag:{paths:[`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`],circles:[{cx:7.5,cy:7.5,r:.5,filled:!0}]},rotateCcw:{paths:[`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,`M3 3v5h5`]},loader:{paths:[`M21 12a9 9 0 1 1-6.219-8.56`]},alertTriangle:{paths:[`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,`M12 9v4`,`M12 17h.01`]},music4:{paths:[`M9 18V5l12-2v13`,`m9 9 12-2`],circles:[{cx:6,cy:18,r:3},{cx:18,cy:16,r:3}]},clock:{paths:[`M12 6v6l4 2`],circles:[{cx:12,cy:12,r:10}]},globe:{paths:[`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,`M2 12h20`],circles:[{cx:12,cy:12,r:10}]},users:{paths:[`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,`M22 21v-2a4 4 0 0 0-3-3.87`,`M16 3.13a4 4 0 0 1 0 7.75`],circles:[{cx:9,cy:7,r:4}]},externalLink:{paths:[`M15 3h6v6`,`M10 14 21 3`,`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`]},messageCircle:{paths:[`M7.9 20A9 9 0 1 0 4 16.1L2 22Z`]},rocket:{paths:[`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91 0`,`m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2`,`M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0`,`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`]},archive:{paths:[`M3 3h18a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z`,`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,`M10 12h4`]},circleCheck:{paths:[`m9 12 2 2 4-4`],circles:[{cx:12,cy:12,r:10}]}};Object.keys(nA);function rA({children:e,...t}){return(0,j.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...t,children:e})}function iA({name:e,filled:t}){let n=nA[e];return(0,j.jsxs)(j.Fragment,{children:[n.paths.map((e,r)=>(0,j.jsx)(`path`,{d:e,...t&&n.fillable?{fill:`currentColor`}:{}},`p${r}`)),(n.circles??[]).map((e,t)=>(0,j.jsx)(`circle`,{cx:e.cx,cy:e.cy,r:e.r,...e.filled?{fill:`currentColor`}:{}},`c${t}`))]})}function aA(e){return function(t){return(0,j.jsx)(rA,{...t,children:(0,j.jsx)(iA,{name:e,filled:!1})})}}function oA({filled:e=!1,...t}){return(0,j.jsx)(rA,{...t,fill:e?`currentColor`:`none`,children:(0,j.jsx)(iA,{name:`star`,filled:e})})}var sA=aA(`chevronRight`),cA=aA(`chevronDown`),lA=aA(`search`),uA=aA(`x`),dA=aA(`check`),fA=aA(`arrowUpDown`),pA=aA(`folder`),mA=aA(`tag`),hA=aA(`rotateCcw`),gA=aA(`archive`),_A=aA(`loader`),vA=aA(`users`),yA=aA(`clock`),bA=aA(`globe`),xA=aA(`externalLink`),SA=aA(`messageCircle`),CA=aA(`rocket`),wA=aA(`alertTriangle`),TA=aA(`music4`);function EA(e){return(0,j.jsxs)(rA,{...e,children:[(0,j.jsx)(`path`,{d:`M14 4.1 12 6`}),(0,j.jsx)(`path`,{d:`m5.1 8-2.9-.8`}),(0,j.jsx)(`path`,{d:`m6 12-1.9 2`}),(0,j.jsx)(`path`,{d:`M7.2 2.2 8 5.1`}),(0,j.jsx)(`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`})]})}var DA=({ref:e,value:t,onChange:n,placeholder:r})=>(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 h-7 px-2 rounded-md bg-muted/40 border border-border/50`,children:[(0,j.jsx)(lA,{className:`w-3 h-3 text-muted-foreground shrink-0`}),(0,j.jsx)(`input`,{ref:e,type:`text`,value:t,onChange:e=>n(e.target.value),placeholder:r,className:`flex-1 bg-transparent text-xs text-foreground placeholder:text-muted-foreground/50 outline-none min-w-0`,style:{fontSize:`16px`}}),t&&(0,j.jsx)(`button`,{type:`button`,onClick:()=>n(``),className:`text-muted-foreground hover:text-foreground`,"aria-label":`Clear search`,children:(0,j.jsx)(uA,{className:`w-3 h-3`})})]});function OA({icon:e,label:t,active:n,focused:r,onClick:i,ariaLabel:a,testId:o}){return(0,j.jsxs)(`button`,{type:`button`,onClick:i,...a?{"aria-label":a}:{},...o?{"data-testid":o}:{},className:Z(`inline-flex items-center gap-1 h-6 px-1.5 rounded text-[11px] font-medium shrink-0 transition-colors`,r?`bg-primary/15 text-primary border border-primary/30 ring-1 ring-primary/20`:n?`bg-primary/10 text-primary border border-primary/20`:`text-muted-foreground hover:text-foreground hover:bg-muted/50 border border-transparent`),children:[(0,j.jsx)(e,{className:`w-3 h-3`}),(0,j.jsx)(`span`,{children:t})]})}function kA({label:e,selected:t,onClick:n}){return(0,j.jsxs)(`button`,{type:`button`,onClick:n,className:Z(`flex items-center w-full px-3 py-2 text-xs transition-colors`,`hover:bg-muted/50 active:bg-muted/70`,t&&`text-primary font-medium`),children:[(0,j.jsx)(`span`,{className:`flex-1 text-left`,children:e}),t&&(0,j.jsx)(dA,{className:`w-3.5 h-3.5 text-primary shrink-0`})]})}function AA({label:e,checked:t,onClick:n}){return(0,j.jsxs)(`button`,{type:`button`,onClick:n,className:`flex items-center gap-2 w-full px-3 py-1.5 text-xs hover:bg-muted/50 active:bg-muted/70 transition-colors`,children:[(0,j.jsx)(`div`,{className:Z(`w-3.5 h-3.5 rounded-sm border flex items-center justify-center shrink-0 transition-colors`,t?`bg-primary border-primary`:`border-muted-foreground/30`),children:t&&(0,j.jsx)(dA,{className:`w-2.5 h-2.5 text-primary-foreground`})}),(0,j.jsx)(`span`,{className:`flex-1 text-left truncate`,children:e})]})}function jA({title:e,onClose:t}){return(0,j.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-2 border-b border-border shrink-0`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-foreground`,children:e}),(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`w-5 h-5 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors`,"aria-label":`Close`,children:(0,j.jsx)(uA,{className:`w-3.5 h-3.5`})})]})}function MA({consumer:e,allCategories:t,search:n,setSearch:r,onClose:i}){let a=t.filter(e=>!n||e.toLowerCase().includes(n.toLowerCase()));return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(jA,{title:`Categories`,onClose:i}),(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(DA,{value:n,onChange:r,placeholder:`Filter categories...`})}),e.includedCats.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>e.setIncludedCats([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0`,children:[`Clear (`,e.includedCats.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:a.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground text-center py-6`,children:`No categories`}):a.map(t=>(0,j.jsx)(AA,{label:t,checked:e.includedCats.includes(t),onClick:()=>e.toggleCategory(t)},t))})]})}function NA({id:e,variant:t=`card`,disabled:n}){let r=Hk(),i=Wk((0,_.useCallback)(t=>t.byId[e],[e]))?.isFavorite??!1,a=t=>{t.stopPropagation(),!n&&r.setFavorite(e,!i).catch(()=>{})},o=i?`Remove from favorites`:`Add to favorites`;return t===`list`?(0,j.jsx)(`button`,{type:`button`,className:Z(`flex-shrink-0 p-0.5 rounded transition-all duration-150`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,n?`cursor-not-allowed`:`hover:scale-110 cursor-pointer`),onClick:a,disabled:n,title:o,"aria-label":i?`Remove from favorites`:`Add to favorites`,children:(0,j.jsx)(oA,{filled:i,className:Z(`h-3.5 w-3.5 transition-all duration-150`,i?`matrx-agent-star-on`:`text-muted-foreground/40 hover:matrx-agent-star-on`)})}):(0,j.jsx)(`button`,{type:`button`,className:Z(`absolute top-2.5 right-2.5 z-10 p-0.5 rounded transition-all duration-150`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,n?`cursor-not-allowed`:`hover:scale-110 cursor-pointer`,i?`matrx-agent-star-on`:`text-muted-foreground/40 hover:matrx-agent-star-on`),onClick:a,disabled:n,title:o,"aria-label":i?`Remove from favorites`:`Add to favorites`,children:(0,j.jsx)(oA,{filled:i,className:`w-4 h-4 transition-all duration-150`})})}function PA({agent:e,onSelect:t}){let{LinkComponent:n,renderModelRef:r,openPeek:i}=Uk(),a=e.updatedAt?new Date(e.updatedAt):null,o=e.createdAt?new Date(e.createdAt):null,s=rD(e.id),c=e=>e?e.toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`}):null;return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(`div`,{className:`px-4 pt-4 pb-3`,children:(0,j.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,j.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,j.jsx)(`h3`,{className:`text-sm font-semibold text-foreground leading-tight break-words`,children:e.name||`Untitled`}),e.isFavorite&&(0,j.jsx)(`div`,{className:`flex items-center gap-1 mt-0.5`,children:(0,j.jsx)(`span`,{className:`text-[11px] matrx-agent-star-on`,children:`Pinned to favorites`})})]}),!s&&(0,j.jsx)(NA,{id:e.id,variant:`list`})]})}),(0,j.jsx)(`div`,{className:`h-px bg-border mx-3`}),(0,j.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-4 py-3 space-y-3`,children:[e.orchestra&&(0,j.jsxs)(`div`,{className:`rounded-md border border-primary/20 bg-primary/5 px-2.5 py-2`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(TA,{className:`w-3.5 h-3.5 text-primary shrink-0`}),(0,j.jsx)(`span`,{className:`text-[11px] font-medium text-primary`,children:ak(e.orchestra)})]}),e.orchestra.tagline&&(0,j.jsx)(`p`,{className:`mt-1 text-xs text-foreground/80 leading-relaxed`,children:e.orchestra.tagline}),sk(e.orchestra)&&(0,j.jsx)(`p`,{className:`mt-1 text-[11px] text-muted-foreground`,title:`Delegates to: ${e.orchestra.memberTitles.join(`, `)}`,children:sk(e.orchestra)}),ok(e.orchestra)&&(0,j.jsx)(`p`,{className:`mt-0.5 text-[11px] text-muted-foreground`,children:ok(e.orchestra)})]}),e.description&&(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-[11px] font-medium text-muted-foreground uppercase tracking-wider mb-1`,children:`Description`}),(0,j.jsx)(`p`,{className:`text-xs text-foreground/80 leading-relaxed`,children:e.description})]}),e.category&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(pA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsx)(`span`,{className:`text-xs text-foreground/80`,children:e.category})]}),e.tags&&e.tags.length>0&&(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 mb-1.5`,children:[(0,j.jsx)(mA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsx)(`span`,{className:`text-[11px] font-medium text-muted-foreground`,children:`Tags`})]}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.tags.map(e=>(0,j.jsx)(`span`,{className:`inline-flex items-center h-5 px-1.5 rounded text-[10px] font-medium bg-muted text-muted-foreground`,children:e},e))})]}),e.accessLevel&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[e.isOwner===!1?(0,j.jsx)(vA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}):(0,j.jsx)(bA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsxs)(`div`,{className:`flex flex-col`,children:[(0,j.jsx)(`span`,{className:`text-xs text-foreground/80 capitalize`,children:e.accessLevel===`owner`?`You own this`:`Shared — ${e.accessLevel}`}),e.sharedByEmail&&(0,j.jsxs)(`span`,{className:`text-[10px] text-muted-foreground`,children:[`by `,e.sharedByEmail]})]})]}),e.modelId&&(0,j.jsx)(`div`,{className:`flex items-center gap-2`,children:r({modelId:e.modelId,...e.offeringId===void 0?{}:{offeringId:e.offeringId},className:`max-w-full text-xs text-foreground/80`})}),(a||o)&&(0,j.jsxs)(`div`,{className:`pt-1 space-y-1`,children:[a&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(yA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[`Updated `,c(a)]})]}),o&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(yA,{className:`w-3.5 h-3.5 text-muted-foreground/50 shrink-0`}),(0,j.jsxs)(`span`,{className:`text-[11px] text-muted-foreground/70`,children:[`Created `,c(o)]})]})]})]}),(0,j.jsx)(`div`,{className:`h-px bg-border mx-3 mt-auto`}),(0,j.jsxs)(`div`,{className:`px-3 py-2 shrink-0 flex items-center gap-1.5`,children:[(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`flex-1 h-7 rounded-md bg-primary text-primary-foreground text-[11px] font-medium hover:bg-primary/90 active:bg-primary/80 transition-colors`,children:`Select`}),i&&(0,j.jsx)(`button`,{type:`button`,onClick:t=>{t.stopPropagation(),i(e)},title:`Sneak Peek`,"aria-label":`Sneak Peek`,className:FA,children:(0,j.jsx)(CA,{className:`w-3.5 h-3.5`})}),!s&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(n,{href:`/chat/a/${e.id}`,onClick:e=>e.stopPropagation(),title:`Open in chat`,"aria-label":`Open in chat`,className:FA,children:(0,j.jsx)(SA,{className:`w-3.5 h-3.5`})}),(0,j.jsx)(n,{href:`/agents/go/${e.id}`,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>e.stopPropagation(),title:`Open in new tab`,"aria-label":`Open in new tab`,className:Z(FA,`hover:text-foreground`),children:(0,j.jsx)(xA,{className:`w-3.5 h-3.5`})})]})]})]})}var FA=`flex items-center justify-center h-7 w-7 rounded-md border border-border bg-background text-muted-foreground hover:text-primary hover:bg-muted/50 transition-colors shrink-0`;function IA(e,t={}){if(!e||typeof window>`u`)return null;let n=t.full??528,r=t.minUsable??300,i=t.gap??16,a=window.innerHeight-e.getBoundingClientRect().bottom-i;return a>=n?null:a>=r?`${Math.floor(a)}px`:null}function LA(e,t,n={}){if(!e||typeof window>`u`||t!==`left`&&t!==`right`)return t;let r=n.width??680,i=n.gap??16,a=e.getBoundingClientRect(),o={left:a.left-i,right:window.innerWidth-a.right-i};if(o[t]>=r)return t;let s=t===`left`?`right`:`left`;return o[s]>=r?s:`bottom`}function RA({consumer:e,allCategories:t,allTags:n,activeFilterCount:r,isMobile:i,rightPanel:a,onFilterChipClick:o,onReset:s}){return(0,j.jsxs)(`div`,{className:`flex items-center gap-1 px-2 pb-1.5 overflow-x-auto matrx-agent-scrollbar-none shrink-0`,children:[(0,j.jsx)(OA,{icon:fA,label:iD.find(t=>t.value===e.sortBy)?.label??`Sort`,active:e.sortBy!==`updated-desc`,focused:!i&&a===`sort`,onClick:()=>o(`sort`)}),(0,j.jsx)(OA,{icon:oA,label:e.favFilter===`no`?`No Favs`:`Favs`,active:e.favFilter!==`all`,onClick:()=>{let t=e.favFilter===`all`?`yes`:e.favFilter===`yes`?`no`:`all`;e.setFavFilter(t)}}),(0,j.jsx)(OA,{icon:gA,label:uk(e.archFilter),active:e.archFilter!==e.archFilterDefault,ariaLabel:fk(e.archFilter),testId:`agent-archive-filter`,onClick:()=>e.setArchFilter(sD(e.archFilter))}),t.length>0&&(0,j.jsx)(OA,{icon:pA,label:e.includedCats.length>0?`${e.includedCats.length}`:`Category`,active:e.includedCats.length>0,focused:!i&&a===`categories`,onClick:()=>o(`categories`)}),n.length>0&&(0,j.jsx)(OA,{icon:mA,label:e.includedTags.length>0?`${e.includedTags.length}`:`Tags`,active:e.includedTags.length>0,focused:!i&&a===`tags`,onClick:()=>o(`tags`)}),r>0&&(0,j.jsx)(`button`,{type:`button`,onClick:s,"aria-label":`Reset filters`,className:`flex items-center gap-0.5 h-6 px-1.5 rounded text-[11px] text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors shrink-0`,children:(0,j.jsx)(hA,{className:`w-3 h-3`})})]})}function zA({consumer:e,tabCounts:t,systemTabLabel:n,visibleTabs:r}){let{labels:i}=Hk(),a=[{value:`mine`,label:`Mine`,countKey:`mine`},{value:`shared`,label:`Shared`,countKey:`shared`},{value:`all`,label:`All`,countKey:`all`},{value:`system`,label:i.publicTab,countKey:`system`}];return(0,j.jsx)(`div`,{className:`flex items-center gap-0.5 px-2 pb-1 overflow-x-auto matrx-agent-scrollbar-none shrink-0`,role:`tablist`,"aria-label":`Agent ownership`,children:a.filter(({value:e})=>!r||r.includes(e)).map(({value:r,label:i,countKey:a})=>{let o=r===`system`?n??i:i,s=e.tab===r,c=t[a];return(0,j.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":s,onClick:()=>e.setTab(r),className:Z(`inline-flex items-center gap-1 rounded-md px-2 py-1 text-[10px] font-medium transition-colors shrink-0`,s?`bg-primary text-primary-foreground`:`text-muted-foreground hover:text-foreground hover:bg-muted/50`),children:[(0,j.jsx)(`span`,{children:o}),(0,j.jsx)(`span`,{className:Z(`tabular-nums opacity-70`,s&&`opacity-90`),children:c})]},r)})})}function BA({agent:e,isActive:t,isHovered:n,isMobile:r,href:i,onClick:a,onHover:o,onHoverEnd:s,onDetailPress:c}){let{LinkComponent:l}=Uk(),{labels:u}=Hk(),d=i??`/agents/go/${e.id}`;return(0,j.jsxs)(`div`,{"data-testid":`agent-row-${e.id}`,className:Z(`flex items-center w-full text-left transition-colors group`,`hover:bg-muted/50 active:bg-muted/70`,t&&`bg-primary/5`,!r&&n&&`bg-muted/40`),onMouseEnter:r?void 0:o,onMouseLeave:r?void 0:s,children:[(0,j.jsxs)(l,{href:d,onClick:e=>{e.metaKey||e.ctrlKey||(e.preventDefault(),a())},className:`flex items-center gap-2 flex-1 min-w-0 px-3 py-2`,children:[e.isFavorite&&(0,j.jsx)(oA,{filled:!0,className:`w-3 h-3 matrx-agent-star-on shrink-0`}),(0,j.jsx)(`span`,{className:Z(`text-[13px] font-medium truncate`,t?`text-primary`:`text-foreground`),title:e.name||`Untitled`,children:e.name||`Untitled`}),e.organizationName?(0,j.jsx)(`span`,{"data-testid":`agent-org-${e.id}`,className:`text-[10px] text-muted-foreground truncate min-w-0 shrink`,title:e.organizationName,children:e.organizationName}):null,e.orchestra&&(0,j.jsxs)(`span`,{className:`flex shrink-0 items-center gap-0.5 rounded-sm bg-primary/10 px-1 py-px text-[9px] font-medium text-primary`,title:sk(e.orchestra)??ak(e.orchestra),children:[(0,j.jsx)(TA,{className:`w-2.5 h-2.5`}),e.orchestra.memberCount]}),e.isArchived?(0,j.jsx)(`span`,{"data-testid":`agent-archived-badge-${e.id}`,className:`text-[9px] font-medium text-muted-foreground bg-muted px-1 py-px rounded shrink-0 ml-auto`,children:u.archivedBadge}):null,e.agentType===`builtin`?(0,j.jsx)(`span`,{className:Z(`text-[9px] font-medium text-primary bg-primary/10 px-1 py-px rounded shrink-0`,!e.isArchived&&`ml-auto`),children:u.systemBadge}):e.isOwner===!1?(0,j.jsx)(`span`,{className:Z(`text-[9px] text-muted-foreground bg-muted px-1 py-px rounded shrink-0`,!e.isArchived&&`ml-auto`),children:`shared`}):null]}),r&&(0,j.jsx)(`button`,{type:`button`,"aria-label":`Show details`,onClick:e=>{e.stopPropagation(),c()},className:`flex items-center justify-center w-10 h-full shrink-0 text-muted-foreground/40 active:text-muted-foreground`,children:(0,j.jsx)(sA,{className:`w-4 h-4`})})]})}function VA({agents:e,isLoading:t,consumer:n,activeAgentId:r,allCategories:i,allTags:a,inputRef:o,onSelectAgent:s,resolveAgentHref:c,onReset:l,activeFilterCount:u,isMobile:d,hoveredAgent:f,onAgentHover:p,onAgentHoverEnd:m,onDetailPress:h,onFilterChipClick:g,rightPanel:v,tabCounts:y,visibleTabs:b,systemTabLabel:x,pinnedAgent:S=null,defaultRow:C=null,listOpen:w=!1,archivedHiddenCount:T=0,agentFilterLabel:E=null,onClearAgentFilter:D}){let O=Hk(),k=(0,_.useRef)(null);(0,_.useEffect)(()=>{w&&S&&k.current?.scrollTo({top:0})},[w,S?.id]);let{labels:A}=O,M=O.getUserIdOrNull()===null?A.emptySignedOut:ck(n.tab,A),N=C?.row??null;return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(DA,{ref:o,value:n.searchTerm,onChange:n.setSearchTerm,placeholder:A.searchPlaceholder})}),(0,j.jsx)(zA,{consumer:n,tabCounts:y,systemTabLabel:x,visibleTabs:b}),(0,j.jsx)(RA,{consumer:n,allCategories:i,allTags:a,activeFilterCount:u,isMobile:d,rightPanel:v,onFilterChipClick:g,onReset:l}),E&&(0,j.jsxs)(`div`,{"data-testid":`agent-list-host-filter`,className:`mx-2 mb-1.5 flex h-6 items-center gap-2 rounded-md bg-primary/10 px-2 shrink-0`,children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[11px] font-medium text-primary`,children:E}),D&&(0,j.jsx)(`button`,{type:`button`,onClick:D,className:`shrink-0 text-[11px] text-muted-foreground hover:text-foreground transition-colors`,children:`Show all`})]}),C?.drift&&(0,j.jsxs)(`div`,{role:`status`,className:`matrx-agent-drift-banner mx-2 mb-1.5 flex items-start gap-2 rounded-md px-2 py-1.5 shrink-0`,children:[(0,j.jsx)(wA,{className:`w-3.5 h-3.5 shrink-0 mt-px`}),(0,j.jsx)(`span`,{className:`text-[11px] leading-snug flex-1`,children:C.drift}),(0,j.jsx)(`button`,{type:`button`,"aria-label":`Dismiss`,onClick:()=>O.dismissDefaultRowDrift(C.mandateKey),className:`shrink-0 opacity-70 hover:opacity-100`,children:(0,j.jsx)(uA,{className:`w-3 h-3`})})]}),C?.error&&(0,j.jsxs)(p_,{as:`div`,className:`matrx-agent-drift-banner mx-2 mb-1.5 flex items-start gap-2 rounded-md px-2 py-1.5 shrink-0`,message:C.error,operation:`Load the default agent for ${C.mandateKey}`,origin:`agents/AgentListContent`,children:[(0,j.jsx)(wA,{className:`w-3.5 h-3.5 shrink-0 mt-px`}),(0,j.jsx)(`span`,{className:`text-[11px] leading-snug flex-1`,children:C.error}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>O.retryDefaultRow(C.mandateKey),className:`shrink-0 text-[11px] font-medium underline underline-offset-2 opacity-80 hover:opacity-100`,children:`Try again`})]}),(0,j.jsx)(`div`,{className:`h-px bg-border shrink-0`}),(0,j.jsx)(`div`,{ref:k,className:`overflow-y-auto flex-1 min-h-0`,children:t?(0,j.jsxs)(`div`,{className:`flex items-center justify-center py-8 gap-2 text-muted-foreground`,children:[(0,j.jsx)(_A,{className:`w-4 h-4 matrx-agent-spin`}),(0,j.jsx)(`span`,{className:`text-xs`,children:A.loading})]}):e.length===0&&!S&&!N?(0,j.jsx)(`div`,{className:`flex flex-col items-center py-8 text-muted-foreground`,children:(0,j.jsx)(`span`,{className:`text-xs`,children:M})}):(0,j.jsxs)(`div`,{className:`py-0.5`,children:[N&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-3 pt-1.5 pb-0.5`,children:(0,j.jsx)(`span`,{className:`text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:`Default`})}),(0,j.jsx)(BA,{agent:N,isActive:N.id===r,isHovered:f?.id===N.id,isMobile:d,onClick:()=>s(N),href:c?.(N),onHover:()=>p(N),onHoverEnd:()=>m(N),onDetailPress:()=>h(N)},`default-${N.id}`),(0,j.jsx)(`div`,{className:`mx-2 my-0.5 h-px bg-border`})]}),S&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-3 pt-1.5 pb-0.5`,children:(0,j.jsx)(`span`,{className:`text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:A.currentAgentHeading})}),(0,j.jsx)(BA,{agent:S,isActive:!0,isHovered:f?.id===S.id,isMobile:d,onClick:()=>s(S),href:c?.(S),onHover:()=>p(S),onHoverEnd:()=>m(S),onDetailPress:()=>h(S)},`pinned-${S.id}`),(0,j.jsx)(`div`,{className:`mx-2 my-0.5 h-px bg-border`})]}),e.map(e=>(0,j.jsx)(BA,{agent:e,isActive:e.id===r,isHovered:f?.id===e.id,isMobile:d,onClick:()=>s(e),href:c?.(e),onHover:()=>p(e),onHoverEnd:()=>m(e),onDetailPress:()=>h(e)},e.id)),e.length===0&&(S||N)&&(0,j.jsx)(`div`,{className:`flex flex-col items-center py-4 text-muted-foreground`,children:(0,j.jsx)(`span`,{className:`text-xs`,children:M})})]})}),(0,j.jsx)(`div`,{className:`h-px bg-border shrink-0`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between px-2.5 py-1.5 shrink-0`,children:[(0,j.jsx)(`span`,{"data-testid":`agent-list-footer`,className:`text-[10px] text-muted-foreground tabular-nums`,children:pk({count:e.length,archFilter:n.archFilter,archivedHiddenCount:T})}),n.searchTerm&&(0,j.jsx)(`button`,{type:`button`,onClick:()=>n.setSearchTerm(``),className:`text-[10px] text-muted-foreground hover:text-foreground transition-colors`,children:`Clear search`})]})]})}function HA({view:e,consumer:t,allCategories:n,allTags:r,catSearch:i,setCatSearch:a,tagSearch:o,setTagSearch:s,onBack:c}){return(0,j.jsxs)(`div`,{className:`flex flex-col`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:c,className:`flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium text-primary hover:bg-muted/30 transition-colors border-b border-border shrink-0`,children:[(0,j.jsx)(sA,{className:`w-4 h-4 rotate-180`}),e===`sort`?`Sort`:e===`categories`?`Categories`:`Tags`]}),e===`sort`&&iD.map(e=>(0,j.jsx)(kA,{label:e.label,selected:t.sortBy===e.value,onClick:()=>{t.setSortBy(e.value),c()}},e.value)),e===`categories`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1`,children:(0,j.jsx)(DA,{value:i,onChange:a,placeholder:`Filter categories...`})}),t.includedCats.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>t.setIncludedCats([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left`,children:[`Clear (`,t.includedCats.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto max-h-[300px]`,children:n.filter(e=>!i||e.toLowerCase().includes(i.toLowerCase())).map(e=>(0,j.jsx)(AA,{label:e,checked:t.includedCats.includes(e),onClick:()=>t.toggleCategory(e)},e))})]}),e===`tags`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1`,children:(0,j.jsx)(DA,{value:o,onChange:s,placeholder:`Filter tags...`})}),t.includedTags.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>t.setIncludedTags([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left`,children:[`Clear (`,t.includedTags.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto max-h-[300px]`,children:r.filter(e=>!o||e.toLowerCase().includes(o.toLowerCase())).map(e=>(0,j.jsx)(AA,{label:e,checked:t.includedTags.includes(e),onClick:()=>t.toggleTag(e)},e))})]})]})}function UA({consumer:e,onClose:t}){return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(jA,{title:`Sort By`,onClose:t}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:iD.map(t=>(0,j.jsx)(kA,{label:t.label,selected:e.sortBy===t.value,onClick:()=>e.setSortBy(t.value)},t.value))})]})}function WA({consumer:e,allTags:t,search:n,setSearch:r,onClose:i}){let a=t.filter(e=>!n||e.toLowerCase().includes(n.toLowerCase()));return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(jA,{title:`Tags`,onClose:i}),(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(DA,{value:n,onChange:r,placeholder:`Filter tags...`})}),e.includedTags.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>e.setIncludedTags([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0`,children:[`Clear (`,e.includedTags.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:a.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground text-center py-6`,children:`No tags`}):a.map(t=>(0,j.jsx)(AA,{label:t,checked:e.includedTags.includes(t),onClick:()=>e.toggleTag(t)},t))})]})}var GA=`680px`;function KA({core:e,visibleTabs:t,systemTabLabel:n,includeSystemInAll:r=!1,resolveAgentHref:i,showPinnedAgent:a=!0,autoFocusSearch:o=!0,onAfterSelect:s,className:c}){let l=w_(),{labels:u}=Hk(),[d,f]=(0,_.useState)(null),[p,m]=(0,_.useState)(``),[h,g]=(0,_.useState)(``),[v,y]=(0,_.useState)(null),[b,x]=(0,_.useState)(null),S=(0,_.useRef)(null),{agents:C,archivedHiddenCount:w,isLoading:T,activeAgentId:E,pinnedAgent:D,defaultRow:O,agentFilterLabel:k,clearAgentFilter:A,allCategories:M,allTags:N,consumer:P,tabCounts:F,activeFilterCount:I,hoveredAgent:L,setHoveredAgent:ee,ensureLoaded:te,handleSelectAgent:ne,handleAgentHover:re,handleAgentHoverEnd:ie,handleDetailPanelMouseEnter:ae,handleDetailPanelMouseLeave:oe}=e;(0,_.useEffect)(()=>{if(te(),!o)return;let e=setTimeout(()=>S.current?.focus(),50);return()=>clearTimeout(e)},[te,o]);let se=(0,_.useRef)(!1);(0,_.useEffect)(()=>{se.current||l||!D||(se.current=!0,d===null&&(ee(D),f(`detail`)))},[D,l,d,ee]);let ce=e=>{ne(e),y(null),x(null),s?.(e)},le=e=>{l?x(e):f(d===e?null:e)},ue=(0,_.useCallback)(e=>{if(l)return;let t=d===`sort`||d===`categories`||d===`tags`;re(e,t),t||f(`detail`)},[l,d,re]),R=(0,_.useCallback)(e=>{l||d===`detail`&&ie(e,()=>f(null))},[l,d,ie]),de=(0,_.useCallback)(()=>{oe(()=>f(null))},[oe]),z=n??(r?`System`:void 0),B=(0,j.jsx)(VA,{agents:C,isLoading:T,consumer:P,activeAgentId:E,allCategories:M,allTags:N,inputRef:S,onSelectAgent:ce,...i?{resolveAgentHref:i}:{},onReset:P.resetFilters,activeFilterCount:I,isMobile:l,hoveredAgent:L,onAgentHover:ue,onAgentHoverEnd:R,onDetailPress:y,onFilterChipClick:le,rightPanel:d,tabCounts:F,archivedHiddenCount:w,...t?{visibleTabs:t}:{},...z?{systemTabLabel:z}:{},pinnedAgent:a?D:null,defaultRow:O,agentFilterLabel:k,onClearAgentFilter:A,listOpen:!0});return l?(0,j.jsx)(`div`,{className:Z(`flex min-h-0 flex-1 flex-col overflow-hidden`,c),children:v?(0,j.jsxs)(`div`,{className:`flex flex-col overflow-hidden`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>y(null),className:`flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium text-primary hover:bg-muted/30 transition-colors border-b border-border shrink-0`,children:[(0,j.jsx)(sA,{className:`w-4 h-4 rotate-180`}),`Back`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto`,children:(0,j.jsx)(PA,{agent:v,onSelect:()=>ce(v)})})]}):b?(0,j.jsx)(HA,{view:b,consumer:P,allCategories:M,allTags:N,catSearch:p,setCatSearch:m,tagSearch:h,setTagSearch:g,onBack:()=>{x(null),m(``),g(``)}}):B}):(0,j.jsxs)(`div`,{className:Z(`flex h-full`,c),children:[(0,j.jsx)(`div`,{className:`flex flex-col min-w-[340px] flex-1 border-r border-border`,children:B}),(0,j.jsxs)(`div`,{className:`h-full w-[340px] shrink-0 overflow-hidden flex flex-col`,onMouseEnter:d===`detail`?ae:void 0,onMouseLeave:d===`detail`?de:void 0,children:[d===`detail`&&L&&(0,j.jsx)(`div`,{className:`h-full matrx-agent-fade-in`,children:(0,j.jsx)(PA,{agent:L,onSelect:()=>ce(L)})},L.id),d===`sort`&&(0,j.jsx)(UA,{consumer:P,onClose:()=>f(null)}),d===`categories`&&(0,j.jsx)(MA,{consumer:P,allCategories:M,search:p,setSearch:m,onClose:()=>{f(null),m(``)}}),d===`tags`&&(0,j.jsx)(WA,{consumer:P,allTags:N,search:h,setSearch:g,onClose:()=>{f(null),g(``)}}),d===null&&(0,j.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center`,children:[(0,j.jsx)(EA,{className:`h-6 w-6 text-muted-foreground/40`}),(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground/70 leading-relaxed`,children:u.hoverHint})]})]})]})}var qA=`agent-list-dropdown`;function JA({onSelect:e,navigateTo:t,className:n,label:r,triggerSlot:i,noBorder:a=!1,compact:o=!1,activeAgentId:s,contentSide:c,consumerId:l=qA,initialTab:u,includeSystemInAll:d=!1,visibleTabs:f,systemTabLabel:p,resolveAgentHref:m,showPinnedAgent:h=!0,excludeAgentIds:g,defaultMandateKey:v,agentFilter:y}){let b=w_(),{labels:x}=Hk(),{popoverContainer:S}=Uk(),[C,w]=(0,_.useState)(!1),T=(0,_.useRef)(null),[E,D]=(0,_.useState)(null),[O,k]=(0,_.useState)(c),A=eA({consumerId:l,...e?{onSelect:e}:{},...t?{navigateTo:t}:{},...s===void 0?{}:{activeAgentIdOverride:s},...u?{initialTab:u}:{},includeSystemInAll:d,...f?{visibleTabs:f}:{},...g?{excludeAgentIds:g}:{},...v?{defaultMandateKey:v}:{},...y?{agentFilter:y}:{}}),{pinnedAgent:M,defaultRow:N,activeAgentId:P,isLoading:F,activeFilterCount:I}=A,L=N?.row?.id===P?N.row:null,ee=r??M?.name??L?.name??(P?F?x.triggerResolving:x.triggerUnnameable:x.triggerFallback),te=!!P&&ee.trim().length>0&&ee!==`Select an agent`&&ee!==x.triggerFallback,ne=e=>{w(e),e&&(A.resumeAgentFilter(),D(c||b?null:IA(T.current)),k(c&&!b?LA(T.current,c):c))},re=(0,_.useMemo)(()=>{if(m)return m;if(t)return e=>t.replace(`{id}`,e.id)},[t,m]),ie=i??(0,j.jsxs)(`button`,{type:`button`,className:Z(`inline-flex items-center rounded-md text-xs font-medium transition-colors`,`bg-background hover:bg-muted/50 text-foreground/80 hover:text-foreground`,o?`h-5 gap-1 px-1.5`:`h-7 gap-1.5 px-2.5`,!a&&`border border-border`,n),children:[(0,j.jsx)(`span`,{className:`min-w-0 max-w-[200px] flex-1 truncate text-left`,children:ee}),I>0&&(0,j.jsx)(`span`,{className:`flex items-center justify-center w-4 h-4 rounded-md bg-primary text-primary-foreground text-[10px]`,children:I}),(0,j.jsx)(cA,{className:`w-3 h-3 text-muted-foreground/60`})]}),ae=e=>te?(0,j.jsxs)(pd,{...C?{open:!1}:{},children:[(0,j.jsx)(e,{asChild:!0,ref:T,children:(0,j.jsx)(md,{asChild:!0,children:ie})}),(0,j.jsx)(hd,{side:`bottom`,className:`max-w-xs`,children:ee})]}):(0,j.jsx)(e,{asChild:!0,ref:T,children:ie}),oe=(0,j.jsx)(KA,{core:A,includeSystemInAll:d,showPinnedAgent:h,onAfterSelect:()=>w(!1),...f?{visibleTabs:f}:{},...p?{systemTabLabel:p}:{},...re?{resolveAgentHref:re}:{}});return b?(0,j.jsxs)(Qg,{open:C,onOpenChange:ne,children:[ae($g),(0,j.jsxs)(o_,{className:`h-[85dvh]`,children:[(0,j.jsx)(s_,{className:`sr-only`,children:`Select Agent`}),(0,j.jsx)(`div`,{className:`flex flex-col overflow-hidden flex-1 min-h-0`,children:oe})]})]}):(0,j.jsxs)(BS,{open:C,onOpenChange:ne,modal:!1,children:[ae(VS),(0,j.jsx)(HS,{...O?{side:O}:E?{side:`bottom`}:{},align:`start`,sideOffset:4,collisionPadding:12,sticky:`always`,...S?{container:S}:{},className:`p-0 overflow-hidden`,style:{width:GA,height:E??`528px`,maxHeight:E??`min(528px, var(--radix-popper-available-height, 528px))`},children:oe})]})}var YA=`Sign in to AI Matrx to use your agents`,XA=`latest`;function ZA(e){let t=n=>{let r=()=>e.call(`agentCatalogRpc`,n).then(e=>({data:e.data,error:e.error?{message:e.error.message,...e.error.code?{code:e.error.code}:{},details:e.error.details??null,hint:e.error.hint??null}:null,count:e.count??null}));return{then:(e,t)=>r().then(e,t),range:(e,r)=>t({...n,range:[e,r]}),order:(e,r)=>t({...n,order:{column:e,ascending:r?.ascending!==!1}})}};return{rpc:(e,n,r)=>t({fn:e,...n?{args:n}:{},...r?.count?{count:r.count}:{}})}}function QA(e,t){let[n,r]=(0,_.useState)(null);return(0,_.useEffect)(()=>{if(!t)return;let n=!0;return e.call(`agentAccess`).then(e=>n&&r(e)).catch(()=>n&&r({signedIn:!1,userId:null,organizationId:null,configured:!1})),()=>{n=!1}},[e,t]),n}function $A(e,t,n){let r=(0,_.useRef)(n);return r.current=n,(0,_.useMemo)(()=>t?nk({client:ZA(e),identity:{requireUserId:()=>t,getUserId:()=>t},catalogId:`coding-sessions:${t}`,errorSink:e=>{console.error(`[coding-sessions] agent catalogue: ${e.code}: ${e.message}`),e.code===`list_read_failed`&&r.current(`Couldn't load your agents. Reopen to retry.`)}}):null,[e,t])}function ej(e){return e.flatMap(e=>typeof e.name==`string`?[e]:[])}function tj(e){let t=QA(e.transport,e.open),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(null),o=$A(e.transport,t?.signedIn?t.userId:null,a),s=e.value?.agentId??null;(0,_.useEffect)(()=>{if(r(null),a(null),!s)return;let t=!0;return e.transport.call(`agentDetails`,s).then(e=>t&&r(e)).catch(e=>t&&a(e instanceof Error?e.message:String(e))),()=>{t=!1}},[s,e.transport]);let{onDetails:c}=e;(0,_.useEffect)(()=>{c?.(n)},[n,c]);let l=(0,_.useMemo)(()=>eD(ej(n?.variables??[])),[n]);if(t===null)return(0,j.jsx)(`div`,{className:`cs-skeleton h-9 rounded-lg`});if(!t.signedIn||!o)return(0,j.jsx)(`p`,{className:`text-[12.5px] text-muted-foreground`,children:YA});let u=(t,n)=>{e.value&&e.onChange({...e.value,variables:{...e.value.variables??{},[t]:n}})};return(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(fd,{children:(0,j.jsx)(Jk,{catalog:o,children:(0,j.jsx)(JA,{consumerId:`coding-sessions-new-session`,activeAgentId:s,label:n?.name??(s?`Loading…`:`None`),onSelect:t=>e.onChange({agentId:t,versionId:null,variables:{}})})})}),s?(0,j.jsx)(v_,{type:`button`,size:`sm`,variant:`ghost`,onClick:()=>e.onChange(null),children:`Remove`}):null]}),i?(0,j.jsx)(`p`,{className:`text-[12px] text-destructive`,children:i}):null,n&&e.value?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`w-[72px] shrink-0 text-[12px] text-muted-foreground`,children:`Version`}),(0,j.jsxs)(rS,{value:e.value.versionId??XA,onValueChange:t=>e.value&&e.onChange({...e.value,versionId:t===XA?null:t}),children:[(0,j.jsx)(sS,{className:`h-8 w-[200px] text-[12.5px]`,"aria-label":`Agent version`,children:(0,j.jsx)(iS,{})}),(0,j.jsxs)(uS,{children:[(0,j.jsx)(fS,{value:XA,children:n.latestVersionNumber===null?`Latest`:`Latest (v${n.latestVersionNumber})`}),n.versions.map(e=>(0,j.jsxs)(fS,{value:e.id,children:[`v`,e.versionNumber]},e.id))]})]})]}),l.map(t=>{let n=e.value?.variables?.[t.name],r=typeof n==`string`?n:``,i=`cs-agent-var-${t.name}`,a=e.missing===t.name;return(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsxs)(`label`,{htmlFor:i,className:`text-[12px] font-medium`,children:[t.label,t.required?(0,j.jsx)(`span`,{className:`text-muted-foreground`,children:` · required`}):null]}),t.options&&t.options.length>0?(0,j.jsxs)(rS,{value:r,onValueChange:e=>u(t.name,e),children:[(0,j.jsx)(sS,{id:i,className:`h-8 text-[12.5px]`,"aria-invalid":a||void 0,children:(0,j.jsx)(iS,{placeholder:`Choose…`})}),(0,j.jsx)(uS,{children:t.options.map(e=>(0,j.jsx)(fS,{value:e,children:e},e))})]}):t.variable.customComponent?.type===`textarea`?(0,j.jsx)(Sw,{id:i,rows:2,value:r,onChange:e=>u(t.name,e.target.value),placeholder:t.hint??``,"aria-invalid":a||void 0}):(0,j.jsx)(uw,{id:i,value:r,onChange:e=>u(t.name,e.target.value),placeholder:t.hint??``,"aria-invalid":a||void 0}),a?(0,j.jsx)(`p`,{className:`text-[12px] text-destructive`,children:`Fill this in to use the agent`}):null]},t.name)})]}):null]})}function nj(e,t){if(!e||!t)return null;for(let n of eD(ej(e.variables))){if(!n.required)continue;let e=t.variables?.[n.name];if(typeof e!=`string`||!e.trim())return n.name}return null}var rj={instructions:`Instructions`,skills:`Skills`,tools:`Tools`};function ij(e){let t=e.loaded.map(e=>e.part===`instructions`?`${rj.instructions} ${e.loaded===1?`✓`:`—`}`:`${rj[e.part]} ${e.loaded}/${e.total}`);return`${e.name}${e.versionNumber===null?``:` v${e.versionNumber}`} · ${t.join(` · `)}`}function aj(e){let{agent:t}=e,n=DE(),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(!1),[s,c]=(0,_.useState)(null),[l,u]=(0,_.useState)(null);(0,_.useEffect)(()=>{if(!r)return;let n=!0;return e.transport.call(`agentAccess`).then(e=>n&&u(e)).catch(()=>void 0),t&&e.transport.call(`agentDetails`,t.agentId).then(e=>{n&&e.latestVersionId&&e.latestVersionNumber!==null&&c({id:e.latestVersionId,number:e.latestVersionNumber})}).catch(()=>void 0),()=>{n=!1}},[r,t,e.transport]);let d=async(t,r)=>{try{await e.transport.call(`setAgent`,e.sessionId,t),n(r),e.onChange()}catch(e){n(`That didn't change: ${e instanceof Error?e.message:String(e)}`)}},f=t&&s&&t.versionNumber!==null&&s.number>t.versionNumber?s:null,p=!t||t.loaded.every(e=>e.loaded===e.total),m=l?.signedIn??!1;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(JC,{open:r,onOpenChange:i,children:[(0,j.jsx)(YC,{asChild:!0,children:(0,j.jsxs)(`button`,{type:`button`,className:Z(`cs-agent-chip`,t?`cs-agent-chip--set`:`cs-agent-chip--none`,!p&&`cs-agent-chip--partial`),"data-testid":`cs-agent-chip`,"aria-label":t?`AI Matrx agent: ${t.name}`:`Add an AI Matrx agent`,children:[t?ij(t):`No agent`,f?(0,j.jsx)(`span`,{className:`cs-agent-chip-dot`,"aria-label":`Update available`}):null,(0,j.jsx)(xE,{size:12,className:`ml-1 inline shrink-0`})]})}),(0,j.jsxs)(rw,{align:`end`,className:`w-[320px]`,children:[t?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(sw,{className:`truncate`,children:[t.name,t.versionNumber===null?``:` · v${t.versionNumber}`]}),(0,j.jsxs)(`div`,{className:`cs-agent-parts`,children:[t.blockDue?(0,j.jsx)(`p`,{className:`text-[12px] text-muted-foreground`,children:`Sent with your next message`}):null,(0,j.jsx)(oj,{title:`Skills`,items:t.skills??[]}),(0,j.jsx)(oj,{title:`Tools`,items:t.tools??[]}),t.unavailable.length>0?(0,j.jsx)(oj,{title:`Not loaded`,items:t.unavailable.map(e=>`${e.name} — ${e.reason}`)}):null]}),(0,j.jsx)(cw,{})]}):null,m?(0,j.jsxs)(j.Fragment,{children:[f&&t?(0,j.jsxs)(iw,{onSelect:()=>void d({agentId:t.agentId,versionId:f.id,variables:t.variables??{}},`The next message uses ${t.name} v${f.number}.`),children:[`Update to v`,f.number]}):null,(0,j.jsx)(iw,{onSelect:()=>o(!0),children:t?`Change agent…`:`Choose agent…`}),t?(0,j.jsx)(iw,{onSelect:()=>void d(null,`The next message runs without an agent.`),children:`Remove agent`}):null]}):l?(0,j.jsx)(`p`,{className:`px-2 py-1.5 text-[12px] text-muted-foreground`,children:YA}):null]})]}),(0,j.jsx)(sj,{transport:e.transport,open:a,onOpenChange:o,title:t?`Change agent`:`Choose an agent`,action:`Use this agent`,onConfirm:e=>d(e,`The next message uses the new agent.`)})]})}function oj({title:e,items:t}){return(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`p`,{className:`text-[11.5px] font-medium text-muted-foreground`,children:[e,` · `,t.length]}),t.length>0?(0,j.jsx)(`ul`,{className:`cs-agent-part-list`,children:t.map(e=>(0,j.jsx)(`li`,{className:`truncate`,title:e,children:e},e))}):null]})}function sj(e){let[t,n]=(0,_.useState)(null),[r,i]=(0,_.useState)(null),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(!1);(0,_.useEffect)(()=>{e.open&&(n(null),o(null))},[e.open]);let l=async()=>{if(!t)return;let n=nj(r,t);if(o(n),!n){c(!0);try{await e.onConfirm(t),e.onOpenChange(!1)}finally{c(!1)}}};return(0,j.jsx)(KS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(aC,{className:`max-w-[480px]`,children:[(0,j.jsx)(oC,{children:(0,j.jsx)(cC,{children:e.title})}),(0,j.jsx)(tj,{transport:e.transport,open:e.open,value:t,onChange:e=>{n(e),o(null)},missing:a,onDetails:i}),(0,j.jsxs)(sC,{children:[(0,j.jsx)(v_,{type:`button`,variant:`ghost`,onClick:()=>e.onOpenChange(!1),children:`Cancel`}),t?(0,j.jsx)(v_,{type:`button`,disabled:s,onClick:()=>void l(),children:e.action}):null]})]})})}function cj(e,t,n){try{let r=localStorage.getItem(e);return t.includes(r??``)?r:n}catch{return n}}function lj(e,t){try{localStorage.setItem(e,t)}catch{}}function uj({children:e,action:t}){return(0,j.jsxs)(`div`,{"data-cs-section-label":!0,className:`flex h-8 items-center justify-between px-3 pt-3`,children:[(0,j.jsx)(`span`,{className:`text-[12px] font-medium text-muted-foreground`,children:e}),t]})}function dj({children:e}){return(0,j.jsx)(`div`,{className:`truncate px-4 pb-0.5 pt-2.5 text-[12px] font-medium text-muted-foreground`,children:e})}function fj(e){let[t,n]=(0,_.useState)(e.initial),r=(0,_.useRef)(!1),i=t=>{r.current||(r.current=!0,e.onDone(t))};return(0,j.jsx)(`input`,{autoFocus:!0,value:t,onChange:e=>n(e.target.value),onFocus:e=>e.currentTarget.select(),onKeyDown:e=>{e.key===`Enter`&&i(t),e.key===`Escape`&&i(null)},onBlur:()=>i(t),"aria-label":`New name for this chat`,className:`cs-rename-input`})}function pj(e){return e.kind===`session`&&e.session?`#s/${e.session.id}`:e.providerSessionId?`#d/${e.provider}/${e.providerSessionId}`:``}function mj(e){let t=KT(),n=DE(),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(!1),{entry:s}=e;return(0,j.jsxs)(Eb,{children:[(0,j.jsx)(Db,{asChild:!0,children:(0,j.jsxs)(`div`,{className:Z(`cs-row group`,e.active&&`cs-row--active`,a&&`cs-row--menu`),"data-hidden":s.hidden||void 0,"data-cs-row":s.key,"data-cs-target":pj(s),"data-cs-provider":s.provider,"data-cs-title":s.title,"data-cs-live":e.live?`true`:void 0,"data-cs-active":e.active?`true`:void 0,children:[(0,j.jsx)(`button`,{type:`button`,onClick:e.onSelect,className:`cs-row__hit`,"aria-current":e.active?`true`:void 0,"aria-label":s.title,title:s.title===s.originalTitle?s.title:`${s.title}\n(${s.originalTitle})`}),(0,j.jsx)(`span`,{className:`pointer-events-none mt-0.5 shrink-0`,children:e.live?(0,j.jsx)(uE,{size:16,className:`text-primary`}):(0,j.jsx)(pE,{provider:s.provider,size:16})}),(0,j.jsxs)(`span`,{className:`cs-row__body`,children:[r?(0,j.jsx)(`span`,{className:`pointer-events-auto relative z-10 block`,children:(0,j.jsx)(fj,{initial:s.title,onDone:e=>{if(i(!1),e===null||e.trim()===s.title)return;let r=e.trim()===``||e.trim()===s.originalTitle?null:e;t.setPreference(s.key,{title:r}).catch(e=>n(`The new name didn't save: ${e instanceof Error?e.message:String(e)}`))}})}):(0,j.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,j.jsx)(`span`,{className:`min-w-0 truncate text-[13px] font-medium leading-5`,children:s.title}),s.pinned?(0,j.jsx)(gE,{size:11,className:`shrink-0 text-muted-foreground`,"aria-label":`Pinned`}):null]}),(0,j.jsx)(`span`,{className:`block truncate text-[11.5px] leading-4 text-muted-foreground`,children:e.meta}),e.snippet?(0,j.jsx)(`span`,{className:`cs-row__snippet`,children:e.snippet}):null]}),r?null:(0,j.jsxs)(`span`,{className:`cs-row__actions`,children:[e.takeover,(0,j.jsxs)(JC,{open:a,onOpenChange:o,children:[(0,j.jsx)(YC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,"aria-label":`More for ${s.title}`,title:`More`,children:(0,j.jsx)(hE,{size:15})})}),(0,j.jsx)(rw,{align:`start`,className:`w-60`,onCloseAutoFocus:e=>e.preventDefault(),children:(0,j.jsx)(jE,{entry:s,variant:`dropdown`,onRename:()=>i(!0)})})]})]})]})}),(0,j.jsx)(Pb,{className:`w-60`,onCloseAutoFocus:e=>e.preventDefault(),children:(0,j.jsx)(jE,{entry:s,variant:`context`,onRename:()=>i(!0)})})]})}function hj(){return(0,j.jsx)(`div`,{className:`space-y-1.5 px-3 py-2`,"aria-hidden":`true`,children:[0,1,2].map(e=>(0,j.jsx)(`div`,{className:`cs-skeleton h-9 rounded-lg`},e))})}function gj({text:e,query:t}){let n=t.trim().toLowerCase();if(!n)return e;let r=e.toLowerCase().indexOf(n);return r<0?e:(0,j.jsxs)(j.Fragment,{children:[e.slice(0,r),(0,j.jsx)(`mark`,{className:`cs-mark`,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]})}var _j={query:``,loading:!1,error:null,hits:[],scanned:0,total:0,nextCursor:null};function vj(e){let t=KT(),[n,r]=(0,_.useState)(_j),i=(0,_.useRef)(e);i.current=e;let a=(0,_.useCallback)(async(e,n,a)=>{r(t=>({...a?t:_j,query:e,loading:!0,error:null}));try{let o=await t.search(e,n);if(i.current.trim()!==e)return;r(t=>({query:e,loading:!1,error:null,hits:a?[...t.hits,...o.hits]:o.hits,scanned:(a?t.scanned:n)+o.scanned,total:o.total,nextCursor:o.nextCursor}))}catch(t){if(i.current.trim()!==e)return;r(e=>({...e,loading:!1,error:t instanceof Error?t.message:String(t)}))}},[t]);return(0,_.useEffect)(()=>{let t=e.trim();if(t.length<2){r(_j);return}let n=setTimeout(()=>void a(t,0,!1),350);return()=>clearTimeout(n)},[e,a]),[n,(0,_.useCallback)(()=>{n.nextCursor!==null&&!n.loading&&a(n.query,n.nextCursor,!0)},[a,n.nextCursor,n.loading,n.query])]}function yj(e){return{provider:e.provider,providerSessionId:e.providerSessionId,cwd:e.cwd,title:e.title,updatedAt:e.updatedAt,source:null,activeElsewhere:null}}function bj(e){let t=KT(),n=qT(),r=YT(),[i,a]=(0,_.useState)(``),[o,s]=vj(i),[c,l]=(0,_.useState)(()=>cj(`coding-sessions.group`,[`date`,`folder`],`date`)),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(null),[m,h]=(0,_.useState)(null),g=n.preferences,v=n.sessions.data,y=e=>{let t=n.runs[e];return t!==void 0&&!_T(t.status)},{ours:b,others:x,hiddenCount:S}=(0,_.useMemo)(()=>{let e=v.map(e=>FT(e,g)),t=new Set(v.map(e=>e.providerSessionId).filter(Boolean)),r=n.discovered.data.filter(e=>!t.has(e.providerSessionId)).map(e=>IT(e,g));return{ours:e,others:r,hiddenCount:[...e,...r].filter(e=>e.hidden).length}},[v,n.discovered.data,g]),C=e=>u||!e.hidden,w=[...b,...x].filter(e=>e.pinned&&C(e)).sort(UT),T=b.filter(e=>!e.pinned&&e.session&&y(e.session.id)&&C(e)),E=b.filter(e=>!e.pinned&&!(e.session&&y(e.session.id))&&C(e)),D=x.filter(e=>!e.pinned&&C(e)),O=e=>{l(e),lj(`coding-sessions.group`,e)},k=t=>{t.session?e.select({kind:`session`,id:t.session.id}):t.providerSessionId&&e.select({kind:`discovered`,provider:t.provider,id:t.providerSessionId})},A=t=>t.session?e.selection.kind===`session`&&e.selection.id===t.session.id:e.selection.kind===`discovered`&&e.selection.id===t.providerSessionId,M=async n=>{p(n.providerSessionId),h(null);try{let r=await t.takeover(n);e.select({kind:`session`,id:r.id})}catch(e){h({id:n.providerSessionId,message:e instanceof Error?e.message:String(e)})}finally{p(null)}},N=(e,t)=>{let i=e.session?y(e.session.id):!1,a=e.session?n.runs[e.session.id]:void 0,o=e.discovered,s;if(i)s=`${mT[e.provider]} is working…`;else if(o?.activeElsewhere)s=(0,j.jsxs)(`span`,{className:`cs-live-elsewhere`,children:[(0,j.jsx)(`span`,{className:`cs-live-dot`,"aria-hidden":`true`}),`Running in `,mT[e.provider]]});else{let n=a?a.status===`failed`?`Failed · `:a.status===`stopped`?`Stopped · `:``:``,i=e.cwd?ZT(e.cwd):`unknown folder`;s=`${n}${e.kind===`discovered`?`${mT[e.provider]} · `:``}${c===`folder`&&!t?``:`${i} · `}${XT(e.updatedAt,r)}`}return(0,j.jsxs)(`div`,{children:[(0,j.jsx)(mj,{entry:e,active:A(e),onSelect:()=>k(e),live:i,meta:s,snippet:t?.snippet,takeover:o?.cwd?(0,j.jsxs)(`button`,{type:`button`,className:`cs-takeover-chip`,onClick:()=>o.activeElsewhere?k(e):void M(o),title:o.activeElsewhere?o.activeElsewhere.message:`Continue this chat here`,disabled:f===o.providerSessionId,children:[f===o.providerSessionId?(0,j.jsx)(uE,{size:11}):null,`Take over`]}):null}),m&&o&&m.id===o.providerSessionId?(0,j.jsx)(`p`,{className:`mx-4 mb-1 text-[11.5px] text-destructive`,children:m.message}):null]},e.key)},P=e=>VT(e,c,r).map(e=>(0,j.jsxs)(`div`,{role:`group`,"aria-label":e.label,children:[(0,j.jsx)(dj,{children:e.label}),e.entries.map(e=>N(e))]},e.label)),F=i.trim().length>0,I=F?[...b,...x].filter(e=>HT(e,i)).sort(UT):[],L=new Set(I.map(e=>e.key)),ee=new Map([...b,...x].map(e=>[e.key,e])),te=o.hits.filter(e=>!L.has(hT(e.provider,e.providerSessionId))),ne=t=>{let n=ee.get(hT(t.provider,t.providerSessionId));if(n){k(n);return}e.onFound(yj(t)),e.select({kind:`discovered`,provider:t.provider,id:t.providerSessionId})},re=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(uj,{children:`Chats`}),I.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-muted-foreground`,children:`No listed chat has that in its name or folder.`}):I.map(e=>N(e,{query:i})),(0,j.jsx)(uj,{children:`In conversations`}),i.trim().length<2?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-muted-foreground`,children:`Type at least two letters to search what was said.`}):(0,j.jsxs)(j.Fragment,{children:[te.map(t=>{let n=ee.get(hT(t.provider,t.providerSessionId)),r=n??IT(yj(t),g);return(0,j.jsx)(`div`,{onClickCapture:n?void 0:()=>e.onFound(yj(t)),children:N(r,{query:i,snippet:t.snippet?(0,j.jsx)(gj,{text:t.snippet,query:i}):void 0})},`hit:${r.key}`)}),(0,j.jsx)(`div`,{className:`px-4 py-2 text-[11.5px] leading-4 text-muted-foreground`,role:`status`,"aria-live":`polite`,children:o.error?(0,j.jsxs)(`span`,{className:`text-destructive`,children:[`Search stopped: `,o.error]}):o.loading?(0,j.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,j.jsx)(uE,{size:12}),` Searching your chats…`]}):o.query?(0,j.jsxs)(j.Fragment,{children:[te.length===0&&o.hits.length===0?`Nothing found. `:null,o.nextCursor===null?`Searched all ${o.total.toLocaleString()} chats on this computer.`:`Searched the ${o.scanned.toLocaleString()} most recent of ${o.total.toLocaleString()} chats.`,o.nextCursor===null?null:(0,j.jsx)(`button`,{type:`button`,className:`cs-link ml-1`,onClick:s,children:`Search older chats`})]}):null})]})]}),ie=(0,j.jsxs)(j.Fragment,{children:[w.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(uj,{children:`Pinned`}),w.map(e=>N(e))]}):null,T.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(uj,{children:`Running`}),T.map(e=>N(e))]}):null,(0,j.jsx)(uj,{children:`Recent`}),n.sessions.loading&&n.sessions.loadedAt===null?(0,j.jsx)(hj,{}):n.sessions.error?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-destructive`,children:n.sessions.error}):E.length===0?T.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] leading-5 text-muted-foreground`,children:`Sessions you start or take over here will appear here.`}):null:E.map(e=>N(e)),(0,j.jsx)(uj,{action:(0,j.jsxs)(`span`,{className:`flex items-center gap-0.5`,children:[(0,j.jsxs)(JC,{children:[(0,j.jsx)(YC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button cs-icon-button--text`,"aria-label":`How to list your other chats`,children:c===`date`?`By date`:`By folder`})}),(0,j.jsxs)(rw,{align:`end`,className:`w-52`,children:[(0,j.jsx)(sw,{children:`Group your other chats`}),(0,j.jsxs)(ZC,{value:c,onValueChange:e=>O(e),children:[(0,j.jsx)(ow,{value:`date`,children:`By date`}),(0,j.jsx)(ow,{value:`folder`,children:`By folder`})]}),(0,j.jsx)(cw,{}),(0,j.jsx)(iw,{onSelect:()=>d(e=>!e),children:u?`Leave hidden chats out`:`Show hidden chats${S?` (${S})`:``}`})]})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void t.refreshDiscovered(),"aria-label":`Look again for your other chats`,title:`Look again`,children:n.discovered.loading?(0,j.jsx)(uE,{size:13}):(0,j.jsx)(iE,{size:13})})]}),children:`Your other chats`}),n.discovered.loading&&n.discovered.loadedAt===null?(0,j.jsx)(hj,{}):n.discovered.error?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-destructive`,children:n.discovered.error}):D.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] leading-5 text-muted-foreground`,children:x.length>0?`Every chat found here is pinned or hidden.`:`No other Claude Code or Codex chats were found on this computer.`}):(0,j.jsxs)(j.Fragment,{children:[P(D),n.discovered.data.length>=n.discoveredLimit?(0,j.jsx)(`div`,{className:`px-3 pt-2`,children:(0,j.jsxs)(v_,{variant:`ghost`,size:`sm`,className:`w-full text-muted-foreground`,onClick:()=>void t.showMoreDiscovered(),disabled:n.discovered.loading,children:[n.discovered.loading?(0,j.jsx)(uE,{size:13}):null,`Show older chats`]})}):null]}),u?null:S>0?(0,j.jsxs)(`button`,{type:`button`,className:`cs-link mx-4 mt-3 text-[11.5px]`,onClick:()=>d(!0),children:[S,` hidden `,S===1?`chat`:`chats`,` — show`]}):null]});return(0,j.jsxs)(`aside`,{className:`cs-sidebar flex h-full shrink-0 flex-col border-r border-border bg-sidebar-background`,style:{width:e.width},"aria-label":`Sessions`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-4 pb-2 pt-3.5`,children:[(0,j.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`cs-app-mark`,"aria-hidden":`true`}),(0,j.jsx)(`span`,{className:`truncate text-[14px] font-semibold tracking-[-0.01em]`,children:`Coding sessions`})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:e.onCollapse,"aria-label":`Hide the sidebar (⌘B)`,title:`Hide sidebar ⌘B`,children:(0,j.jsx)(bE,{size:15})})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5 px-3 pb-1`,children:[(0,j.jsxs)(v_,{className:`w-full justify-start gap-2`,variant:`outline`,size:`sm`,onClick:e.onNew,children:[(0,j.jsx)($T,{size:15}),`New session`,(0,j.jsx)(`kbd`,{className:`cs-kbd ml-auto`,children:`⌥⌘N`})]}),(0,j.jsxs)(`div`,{className:`cs-search`,children:[(0,j.jsx)(mE,{size:14,className:`cs-search__icon`}),(0,j.jsx)(`input`,{ref:e.searchRef,type:`search`,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{if(e.key===`Escape`&&(i?a(``):e.currentTarget.blur(),e.preventDefault()),e.key===`Enter`){let e=I[0],t=te[0];e?k(e):t&&ne(t)}},placeholder:`Search chats`,"aria-label":`Search chats by name, folder or what was said`,spellCheck:!1,className:`cs-search__input`}),i?(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button cs-search__clear`,onClick:()=>a(``),"aria-label":`Clear search`,children:(0,j.jsx)(CE,{size:13})}):(0,j.jsx)(`kbd`,{className:`cs-search__kbd`,children:`⌘K`})]})]}),(0,j.jsx)(`nav`,{className:`min-h-0 flex-1 overflow-y-auto pb-3`,children:F?re:ie}),e.footer]})}function xj(){let e=[],t=null,n=0,r=null,i=new Map;function a(t,n,r){let i={...t.message,parts:n,status:r??t.message.status};t.message=i;let a=e.findIndex(e=>e.id===i.id);a>=0&&(e[a]=i)}function o(){if(t)return t;n+=1;let r=S({id:`turn-${n}-${e.length}`,role:`assistant`,status:`streaming`});return e.push(r),t={message:r,index:new Map},t}function s(e,t){let n=o(),r=[...n.message.parts],i=n.index.get(e);i===void 0?(n.index.set(e,r.length),r.push(t(null))):r[i]=t(r[i]??null),a(n,r)}function c(e){if(!t)return;let n=t;a(n,n.message.parts.map(t=>{if(t.type===`reasoning`&&t.state===`streaming`)return{...t,state:`done`};if(t.type===`tool`&&t.state===`input-available`&&e!==`streaming`){if(e===`cancelled`)return{...t,state:`output-error`,errorText:`Stopped before this finished.`};if(e===`error`)return{...t,state:`output-error`,errorText:`The run ended before this finished.`}}return t}),e),t=null}let l={apply(n){switch(n.kind){case`user`:c(`complete`),e.push(S({id:`user-${n.id}`,role:`user`,parts:[{type:`text`,text:n.text}],status:`complete`,metadata:n.at?{createdAt:n.at}:void 0}));return;case`text-delta`:s(n.id,e=>e&&e.type===`text`?{type:`text`,text:e.text+n.text}:{type:`text`,text:n.text});return;case`text`:s(n.id,()=>({type:`text`,text:n.text}));return;case`reasoning`:s(n.id,()=>({type:`reasoning`,text:n.text,state:`done`}));return;case`tool-call`:{let r=kT(n.name,n.input),a=r?[{toolName:n.name,message:r,percent:null,at:null}]:[];s(n.id,e=>e&&e.type===`tool`?{...e,input:n.input,progress:a}:{type:`tool`,toolCallId:n.id,toolName:n.name,state:`input-available`,input:n.input,output:null,errorText:null,progress:a,delegated:!1});let o=t;if(o){let t=o.index.get(n.id),r=e.findIndex(e=>e.id===o.message.id);t!==void 0&&r>=0&&i.set(n.id,{messageIndex:r,partIndex:t})}return}case`tool-result`:{let r=i.get(n.id);if(!r){s(n.id,()=>({type:`tool`,toolCallId:n.id,toolName:`Tool`,state:n.isError?`output-error`:`output-available`,input:null,output:n.isError?null:n.output,errorText:n.isError?n.output||`The tool reported an error.`:null,progress:[],delegated:!1}));return}let a=e[r.messageIndex],o=a?.parts[r.partIndex];if(!a||!o||o.type!==`tool`)return;let c=n.isError?{...o,state:`output-error`,errorText:n.output||`The tool reported an error.`,output:null}:{...o,state:`output-available`,output:n.output},l=[...a.parts];l[r.partIndex]=c;let u={...a,parts:l};e[r.messageIndex]=u,t&&t.message.id===u.id&&(t.message=u);return}case`usage`:r={usage:n.usage,costUsd:n.costUsd};return;case`notice`:s(n.id,()=>({type:`notice`,level:n.level===`warning`?`medium`:`info`,code:null,userMessage:n.text,remedy:null}));return;case`error`:{let e=ST(n.text);if(t?.message.parts.some(t=>t.type===`error`&&t.message.trim()===e.trim()))return;s(n.id,()=>({type:`error`,errorType:`provider`,code:null,message:e,userMessage:e,recoverable:!0,remedy:null}));return}}},applyAll(e){for(let t of e)l.apply(t)},beginTurn(){o()},endTurn(n,r){n===`failed`&&r&&l.apply({kind:`error`,id:`run-error-${e.length}`,text:r}),n===`stopped`&&t&&l.apply({kind:`notice`,id:`run-stopped-${e.length}`,level:`info`,text:`You stopped this run.`}),c(n===`stopped`?`cancelled`:n===`failed`?`error`:`complete`)},messages(){return e.slice()},lastUsage(){return r}};return l}var Sj=60,Cj=25165824;function wj(e){return{data:e,loading:!1,error:null,loadedAt:null}}function Tj(e){return e instanceof Error?e.message:String(e)}var Ej=class{sessionId;client;thread;builder=xj();messages=[];listeners=new Set;seqMark=0;pending=[];activeRunId=null;activity=null;state={loading:!0,unavailable:null,truncated:!1};maxBytes=Cj;constructor(e,t){this.sessionId=e,this.client=t,this.thread=pT({getSnapshot:()=>({messages:this.messages,status:this.status(),conversationId:this.sessionId,ephemeral:!1}),features:{surface:{sendWhileBusy:!0}},subscribe:e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),onSubmit:async e=>{await this.client.send(this.sessionId,e.text)},onCancel:async()=>{let e=this.client.getState().runs[this.sessionId];e&&!_T(e.status)&&await this.client.stop(e.runId)}})}status(){let e=this.client.getState().runs[this.sessionId];return e?e.status===`starting`?`submitted`:e.status===`running`?`streaming`:`idle`:`idle`}notify(){this.messages=this.builder.messages();for(let e of this.listeners)e()}async loadEarlier(){this.state.truncated&&!this.state.loadingEarlier&&(this.maxBytes*=4,this.state={...this.state,loadingEarlier:!0},this.notify(),await this.load(!0))}async load(e=!1){e||(this.state={loading:!0,unavailable:null,truncated:!1},this.notify());try{let e=await this.client.transport.call(`history`,this.sessionId,{maxBytes:this.maxBytes});this.builder=xj(),this.builder.applyAll(e.items),this.seqMark=e.seq;let t=this.client.getState().runs[this.sessionId];t&&!_T(t.status)?(this.activeRunId=t.runId,this.builder.beginTurn()):this.builder.endTurn(`completed`),this.state={loading:!1,unavailable:e.unavailable,truncated:e.truncated};let n=this.pending;this.pending=[];for(let e of n)this.onEvent(e.event)}catch(e){this.state={loading:!1,unavailable:Tj(e),truncated:!1}}this.notify()}onEvent(e){if(this.state.loading){e.type===`item`&&this.pending.push({seq:e.seq,event:e});return}if(e.type===`item`){if(e.seq<=this.seqMark)return;this.seqMark=e.seq,this.builder.apply(e.item),e.item.kind===`user`&&(this.activeRunId=e.runId,this.builder.beginTurn()),this.activity=Dj(this.activity,e.item),this.notify();return}if(e.type===`run`){let t=e.run;_T(t.status)&&(this.activity=null,this.activeRunId===t.runId?(this.builder.endTurn(t.status,t.error),this.activeRunId=null):t.status===`failed`&&t.error&&this.builder.endTurn(`failed`,t.error)),this.notify()}}};function Dj(e,t){switch(t.kind){case`user`:return`Thinking…`;case`text-delta`:return`Writing…`;case`text`:case`reasoning`:case`tool-result`:return`Thinking…`;case`tool-call`:{let e=kT(t.name,t.input);return`${ET(t.name)}${e?` — ${e}`:``}`}default:return e}}var Oj=class{transport;state;listeners=new Set;transcripts=new Map;finishedListeners=new Set;onRunFinished=e=>(this.finishedListeners.add(e),()=>{this.finishedListeners.delete(e)});constructor(e){this.transport=e,this.state={connection:e.status(),providers:wj([]),sessions:wj([]),discovered:wj([]),folders:wj([]),runs:{},preferences:{},discoveredLimit:Sj},e.onStatus(e=>{let t=this.state.connection.state===`open`;this.set({connection:e}),e.state===`open`&&!t&&this.refreshAll()}),e.subscribe(e=>this.onEvent(e))}getState=()=>this.state;subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});set(e){this.state={...this.state,...e};for(let e of this.listeners)e()}onEvent(e){if(e.type===`session`){let t=this.state.sessions.data.filter(t=>t.id!==e.session.id);t.unshift(e.session),t.sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt)),this.set({sessions:{...this.state.sessions,data:t}})}else if(e.type===`run`){let t=this.state.runs[e.run.sessionId];if(this.set({runs:{...this.state.runs,[e.run.sessionId]:e.run}}),_T(e.run.status)&&(!t||t.runId!==e.run.runId||!_T(t.status))){let t=this.state.sessions.data.find(t=>t.id===e.run.sessionId)??null;for(let n of this.finishedListeners)n({run:e.run,session:t})}}else if(e.type===`preferences`){this.set({preferences:e.preferences});return}let t=e.type===`session`?e.session.id:e.type===`run`?e.run.sessionId:e.sessionId;this.transcripts.get(t)?.onEvent(e)}async load(e,t){this.set({[e]:{...this.state[e],loading:!0,error:null}});try{let n=await t();this.set({[e]:{data:n,loading:!1,error:null,loadedAt:Date.now()}})}catch(t){this.set({[e]:{...this.state[e],loading:!1,error:Tj(t)}})}}refreshProviders=()=>this.load(`providers`,()=>this.transport.call(`providers`));refreshDiscovered=()=>this.load(`discovered`,()=>this.transport.call(`discoverSessions`,{limit:this.state.discoveredLimit}));showMoreDiscovered=async()=>{this.set({discoveredLimit:this.state.discoveredLimit+Sj}),await this.refreshDiscovered()};refreshPreferences=async()=>{try{this.set({preferences:await this.transport.call(`chatPreferences`)})}catch{}};setPreference=async(e,t)=>{let n=this.state.preferences,r={...n[e],...t};this.set({preferences:{...n,[e]:r}});try{this.set({preferences:await this.transport.call(`setChatPreference`,e,t)})}catch(e){throw this.set({preferences:n}),e}};search(e,t=0){return this.transport.call(`searchChats`,e,{cursor:t,limit:30})}readRawTranscript(e,t){return this.transport.call(`readRawTranscript`,e,t)}openFolder(e,t){return this.transport.call(`openFolder`,e,t)}setSessionOptions(e,t){return this.transport.call(`setSessionOptions`,e,t)}refreshFolders=()=>this.load(`folders`,()=>this.transport.call(`recentFolders`));refreshSessions=async()=>{await this.load(`sessions`,()=>this.transport.call(`listSessions`));let e={};await Promise.all(this.state.sessions.data.map(async t=>{let n=await this.transport.call(`listRuns`,t.id).catch(()=>[]),r=n[n.length-1];r&&(e[t.id]=r)})),this.set({runs:{...e,...this.pickLive()}})};pickLive(){let e={};for(let[t,n]of Object.entries(this.state.runs))_T(n.status)||(e[t]=n);return e}refreshAll=async()=>{await Promise.all([this.refreshSessions(),this.refreshProviders(),this.refreshDiscovered(),this.refreshFolders(),this.refreshPreferences()]);for(let e of this.transcripts.values())e.load()};transcript(e){let t=this.transcripts.get(e);return t||(t=new Ej(e,this),this.transcripts.set(e,t),t.load()),t}async readPreview(e,t,n){try{let r=await this.transport.call(`readTranscript`,e,t,n?{maxBytes:n}:void 0),i=xj();return i.applyAll(r.items),i.endTurn(`completed`),{loading:!1,messages:i.messages(),unavailable:r.unavailable,truncated:r.truncated}}catch(e){return{loading:!1,messages:[],unavailable:Tj(e),truncated:!1}}}start(e){return this.transport.call(`start`,e)}takeover(e,t){return this.transport.call(`takeover`,{provider:e.provider,providerSessionId:e.providerSessionId,cwd:e.cwd??``,title:e.title,...t?{agent:t}:{}})}send(e,t){return this.transport.call(`send`,e,t)}stop(e){return this.transport.call(`stop`,e)}},kj=[`agent`,`folder`,`prompt`];async function Aj(e){let t={},n=e.provider;if(n&&(!n.installed||!n.loggedIn)&&(t.agent=`${n.problem??`${n.label} can't run here yet.`} ${n.fix??``}`.trim()),!e.folder.trim())t.folder=`Choose a folder, or type one, for it to work in.`;else try{let n=await e.checkFolder(e.folder);n.exists?n.isDirectory||(t.folder=`That path is a file, not a folder.`):(t.folder=`That folder doesn't exist on this computer.`,t.createFolder=n.path)}catch(e){t.folder=`Couldn't check that folder: ${e instanceof Error?e.message:String(e)}`}return e.prompt.trim()||(t.prompt=`Tell it what to do first.`),t}function jj(e){return kj.find(t=>e[t]!==void 0)??null}function Mj({transport:e,children:t}){let[n]=(0,_.useState)(()=>new Oj(e));return(0,_.useEffect)(()=>{e.status().state===`open`&&n.refreshAll()},[n,e]),(0,j.jsx)(GT.Provider,{value:n,children:t})}function Nj(){if(typeof location>`u`)return{kind:`none`};let[e,t,n]=location.hash.replace(/^#/,``).split(`/`);return e===`s`&&t?{kind:`session`,id:t}:e===`d`&&(t===`claude`||t===`codex`)&&n?{kind:`discovered`,provider:t,id:n}:{kind:`none`}}function Pj(e){if(typeof history>`u`)return;let t=e.kind===`session`?`#s/${e.id}`:e.kind===`discovered`?`#d/${e.provider}/${e.id}`:``;history.replaceState(null,``,`${location.pathname}${location.search}${t}`)}function Fj(){try{let e=localStorage.getItem(`coding-sessions.theme`);return e===`light`||e===`dark`?e:`system`}catch{return`system`}}function Ij(){let[e,t]=(0,_.useState)(Fj);return(0,_.useEffect)(()=>{let t=typeof window.matchMedia==`function`?window.matchMedia(`(prefers-color-scheme: dark)`):null,n=()=>{let n=e===`dark`||e===`system`&&t?.matches===!0;document.documentElement.classList.toggle(`dark`,n),document.documentElement.setAttribute(`data-theme`,n?`dark`:`light`)};return n(),t?.addEventListener(`change`,n),()=>t?.removeEventListener(`change`,n)},[e]),[e,(0,_.useCallback)(e=>{t(e);try{localStorage.setItem(`coding-sessions.theme`,e)}catch{}},[])]}var Lj={starting:`Starting`,running:`Working`,completed:`Done`,stopped:`Stopped`,failed:`Failed`};function Rj({run:e}){if(!e)return null;let t=!_T(e.status);return(0,j.jsxs)(`span`,{className:Z(`cs-pill`,`cs-pill--${e.status}`),children:[t?(0,j.jsx)(`span`,{className:`cs-pill__dot`,"aria-hidden":`true`}):null,Lj[e.status]]})}function zj(){let{connection:e}=qT();if(e.state===`open`)return null;let t=e.state===`closed`;return(0,j.jsxs)(`div`,{role:`status`,className:Z(`flex items-center gap-2 border-b px-4 py-2 text-[13px]`,t?`border-destructive/30 bg-destructive/10 text-destructive`:`border-border bg-muted/60 text-muted-foreground`),children:[t?(0,j.jsx)(rE,{size:15}):(0,j.jsx)(uE,{size:14}),(0,j.jsx)(`span`,{children:t?e.reason:`Connecting to the coding sessions host…`})]})}function Bj(e){let t=qT(),n=KT(),r={system:`light`,light:`dark`,dark:`system`},i={system:`Match system`,light:`Light`,dark:`Dark`};return(0,j.jsx)(`div`,{className:`border-t border-border px-3 py-2.5`,children:(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-wrap gap-1.5`,children:t.providers.loading&&t.providers.loadedAt===null?(0,j.jsx)(`span`,{className:`text-[11.5px] text-muted-foreground`,children:`Checking Claude Code and Codex…`}):t.providers.data.map(e=>{let t=e.lastProblem?vT(e.lastProblem.until):null,n=e.lastProblem?e.lastProblem.kind===`signed-out`?`· sign in again`:`· limit${t?` until ${t}`:``}`:null,r=e.problem?`${e.problem} ${e.fix??``}`.trim():[qj(e)??e.label,e.plan,Jj(e)].filter(Boolean).join(` · `);return(0,j.jsxs)(`span`,{className:Z(`cs-provider-chip`,e.ready?``:`cs-provider-chip--problem`),title:n&&!e.problem?`${r} ${n}`:r,children:[(0,j.jsx)(pE,{provider:e.provider,size:13}),e.label,n?(0,j.jsx)(`span`,{className:`cs-provider-chip__note`,children:n}):null,e.ready?(0,j.jsx)(nE,{size:12}):(0,j.jsx)(rE,{size:12})]},e.provider)})}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void n.refreshProviders(),"aria-label":`Check Claude Code and Codex again`,title:`Check again`,children:t.providers.loading?(0,j.jsx)(uE,{size:13}):(0,j.jsx)(iE,{size:13})}),e.extra,(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>e.setTheme(r[e.theme]),"aria-label":`Theme: ${i[e.theme]}. Switch to ${i[r[e.theme]]}.`,title:`Theme: ${i[e.theme]}`,children:e.theme===`system`?(0,j.jsx)(cE,{size:14}):e.theme===`light`?(0,j.jsx)(oE,{size:14}):(0,j.jsx)(sE,{size:14})})]})})}function Vj(){let e=(0,_.useContext)(EE);return(0,_.useMemo)(()=>({notify(t){e(t.message)}}),[e])}function Hj(e,t,n=null){let r=KT(),[i,a]=(0,_.useState)(n);return(0,_.useEffect)(()=>{if(!e||!t){a(null);return}let n=!1,i=()=>r.transport.call(`sessionActivity`,e,t).then(e=>{n||a(e)}).catch(()=>void 0);i();let o=setInterval(i,1e4);return()=>{n=!0,clearInterval(o)}},[r,e,t]),i}function Uj(e,t){let n=KT(),[r,i]=(0,_.useState)(null);return(0,_.useEffect)(()=>{let t=!1;return n.transport.call(`listRuns`,e).then(e=>{if(t)return;let n=0,r=null,a=null;for(let t of e)t.usage&&(n+=t.usage.inputTokens+t.usage.outputTokens+t.usage.cachedInputTokens),t.costUsd!==null&&(r=(r??0)+t.costUsd),a=t.billing??a;i(n>0||r!==null?{tokens:n,cost:r,billing:a,runs:e.length}:null)}).catch(()=>void 0),()=>{t=!0}},[n,e,t]),r}function Wj(e){return(0,j.jsxs)(JC,{children:[(0,j.jsx)(YC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button shrink-0`,"aria-label":`More for this chat`,title:`More`,children:(0,j.jsx)(hE,{size:16})})}),(0,j.jsxs)(rw,{align:`end`,className:`w-64`,onCloseAutoFocus:e=>e.preventDefault(),children:[e.onChanges?(0,j.jsxs)(iw,{onSelect:e.onChanges,children:[(0,j.jsx)(SE,{size:14}),e.changesOpen?`Hide changed files`:`Files this chat changed`]}):null,(0,j.jsx)(jE,{entry:e.entry,variant:`dropdown`,onRename:e.onRename})]})]})}function Gj(e){let t=KT(),n=(0,_.useContext)(EE),[r,i]=(0,_.useState)(e.entry.title);(0,_.useEffect)(()=>i(e.entry.title),[e.entry.title,e.renaming]);let a=(0,_.useRef)(null);if((0,_.useEffect)(()=>{if(!e.renaming)return;let t=setTimeout(()=>{let e=a.current;e&&document.activeElement!==e&&(e.focus(),e.select())},0);return()=>clearTimeout(t)},[e.renaming]),!e.renaming)return(0,j.jsx)(`h1`,{className:`truncate text-[15px] font-semibold leading-5 tracking-[-0.01em]`,title:e.entry.title===e.entry.originalTitle?e.entry.title:`${e.entry.title} (${e.entry.originalTitle})`,onDoubleClick:()=>e.setRenaming(!0),children:e.entry.title});let o=()=>{e.setRenaming(!1);let i=r.trim();if(i===e.entry.title)return;let a=i===``||i===e.entry.originalTitle?null:i;t.setPreference(e.entry.key,{title:a}).catch(e=>n(`The new name didn't save: ${e instanceof Error?e.message:String(e)}`))};return(0,j.jsx)(`input`,{ref:a,autoFocus:!0,value:r,onChange:e=>i(e.target.value),onFocus:e=>e.currentTarget.select(),onBlur:o,onKeyDown:t=>{t.key===`Enter`&&o(),t.key===`Escape`&&e.setRenaming(!1)},"aria-label":`New name for this chat`,className:`cs-rename-input !m-0 !h-6 !text-[15px] !font-semibold`})}function Kj(e){return(0,j.jsxs)(`p`,{className:`mx-auto mt-3 flex items-center gap-2 text-[12px] text-muted-foreground`,children:[`This chat is very long — showing its most recent part.`,(0,j.jsx)(`button`,{type:`button`,className:`cs-link`,onClick:e.onEarlier,disabled:e.loading,children:e.loading?`Reading…`:`Show earlier`})]})}function qj(e){return e.version?`${e.label} ${e.version}${e.binary?` · ${e.binary.sourceLabel}`:``}`:null}function Jj(e){return e.binary?.newer?`Newer: ${e.binary.newer.version} ${e.binary.newer.sourceLabel}`:null}function Yj({session:e,changesOpen:t,setChangesOpen:n}){let r=KT(),i=qT(),a=(0,_.useContext)(EE),o=JT(e.id),s=i.runs[e.id],c=s!==void 0&&!_T(s.status),l=Vj(),u=i.providers.data.find(t=>t.provider===e.provider)??null,d=u&&(!u.installed||!u.loggedIn)?u:null,f=!d&&u?.lastProblem?u:null,p=s?.status===`failed`&&xT(s.error),[m,h]=(0,_.useState)(!1),[g,v]=(0,_.useState)(!1),y=Hj(e.origin===`takeover`&&!c?e.provider:null,e.providerSessionId),b=FT(e,i.preferences),x=o.thread.getSnapshot().messages,S=IE(x),C=Uj(e.id,`${s?.runId??``}:${s?.status??``}`);(0,_.useEffect)(()=>{c||h(!1)},[c]);let w=async()=>{s&&(h(!0),await r.stop(s.runId).catch(()=>h(!1)))},T=t=>{r.setSessionOptions(e.id,{model:t.model,effort:t.effort}).then(()=>a(`The next message uses ${zE(t,u)}.`)).catch(e=>a(`That didn't save: ${e instanceof Error?e.message:String(e)}`))},E=C?`${si(C.tokens,{style:`compact`})} tokens${C.cost===null?``:` · ${ai(C.cost)}`}`:null,D=C?`${si(C.tokens)} tokens over ${C.runs} ${C.runs===1?`message`:`messages`} sent from here.`+(C.cost===null?``:C.billing===`subscription`?` ${ai(C.cost)} is what this would cost at API prices — it's covered by your ${u?.plan??``} plan.`.replace(` `,` `):` Billed ${ai(C.cost)} to your API key.`):``;return(0,j.jsxs)(`div`,{className:`flex min-w-0 flex-1`,children:[(0,j.jsxs)(`section`,{className:`flex min-w-0 flex-1 flex-col`,"aria-label":b.title,children:[(0,j.jsxs)(`header`,{className:`@container/header flex items-center gap-2 border-b border-border px-5 pt-2.5 pb-2.5`,children:[(0,j.jsx)(pE,{provider:e.provider,size:22}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1 overflow-hidden`,children:[(0,j.jsx)(Gj,{entry:b,renaming:g,setRenaming:v}),(0,j.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1 text-[12px] leading-5 text-muted-foreground`,children:[(0,j.jsx)(`span`,{className:`shrink-0`,children:mT[e.provider]}),(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(BE,{status:u,value:{model:e.model,effort:e.effort??null},onChange:T}),(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(tE,{size:12,className:`shrink-0`}),(0,j.jsx)(`span`,{className:`min-w-[4rem] truncate`,title:e.cwd,children:ZT(e.cwd)}),E?(0,j.jsxs)(`span`,{className:`shrink-0`,title:D,children:[`· `,E]}):null]})]}),(0,j.jsx)(aj,{transport:r.transport,sessionId:e.id,agent:e.agent??null,onChange:()=>void 0}),(0,j.jsxs)(`button`,{type:`button`,className:Z(`cs-chip-button shrink-0 @max-[620px]/header:hidden`,t&&`cs-chip-button--on`),onClick:()=>n(!t),"aria-pressed":t,title:`Files this chat changed`,children:[(0,j.jsx)(SE,{size:13}),S.length>0?`${S.length} ${S.length===1?`file`:`files`} changed`:`Changes`]}),(0,j.jsx)(Rj,{run:s}),c?(0,j.jsxs)(v_,{variant:`outline`,size:`sm`,onClick:()=>void w(),disabled:m,className:`gap-1.5`,title:`Stop Esc`,children:[m?(0,j.jsx)(uE,{size:13}):(0,j.jsx)(eE,{size:13}),m?`Stopping…`:`Stop`]}):null,(0,j.jsx)(Wj,{entry:b,onRename:()=>v(!0),onChanges:()=>n(!t),changesOpen:t})]}),(0,j.jsx)(`div`,{className:`mx-chat flex min-h-0 flex-1 flex-col`,children:(0,j.jsxs)(hi,{thread:o.thread,ports:{notifier:l,toolLabel:ET},children:[(0,j.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden`,children:o.state.loading?(0,j.jsxs)(`div`,{className:`flex h-full items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(uE,{size:15}),` Loading the conversation…`]}):(0,j.jsxs)(`div`,{className:`flex h-full flex-col`,children:[o.state.unavailable?(0,j.jsx)(`p`,{className:`mx-auto mt-4 max-w-[720px] rounded-lg border border-border bg-muted/50 px-4 py-2.5 text-[13px] text-muted-foreground`,children:o.state.unavailable}):null,o.state.truncated?(0,j.jsx)(Kj,{loading:o.state.loadingEarlier===!0,onEarlier:()=>void o.loadEarlier()}):null,x.length===0&&!c?(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-[13px] text-muted-foreground`,children:e.origin===`takeover`?`You've taken over this chat. Send a message to continue it.`:`Nothing here yet.`}):(0,j.jsx)(Ww,{className:`min-h-0 flex-1`,label:`Conversation: ${b.title}`})]})}),(0,j.jsxs)(`div`,{"data-cs-composer":!0,className:`mx-auto w-full max-w-[820px] px-4 pb-4`,children:[f?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(rE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[f.problem,` `,f.fix]})]}):null,p&&!d?(0,j.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,role:`alert`,children:[(0,j.jsx)(rE,{size:15,className:`shrink-0 text-warning`}),(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:s?.error??void 0,children:bT}),(0,j.jsx)(BE,{status:u,value:{model:e.model,effort:e.effort??null},onChange:T})]}):null,d?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(rE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[d.problem,` `,d.fix]})]}):null,(0,j.jsx)(`div`,{className:`cs-activity`,role:`status`,"aria-live":`polite`,"data-idle":!c||void 0,children:c?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(uE,{size:13}),(0,j.jsx)(`span`,{className:`truncate`,children:s?.status===`starting`?`Starting ${mT[e.provider]}…`:o.activity??`Thinking…`}),(0,j.jsx)(`span`,{className:`ml-auto shrink-0 text-[11px] opacity-70`,children:`Esc to stop`})]}):null}),y?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(rE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[y.message,` A message sent here would put a second agent on the same chat.`]})]}):null,e.queued.length>0?(0,j.jsx)(`ul`,{className:`mb-2 space-y-1.5`,"aria-label":`Queued messages`,children:e.queued.map((e,t)=>(0,j.jsxs)(`li`,{className:`cs-queued`,children:[(0,j.jsx)(`span`,{className:`cs-queued__label`,children:`Queued · sends when this run finishes`}),(0,j.jsx)(`span`,{className:`cs-queued__text`,children:e})]},`${t}-${e.slice(0,16)}`))}):null,(0,j.jsx)(fT,{placeholder:`Message ${mT[e.provider]}…`,autoFocus:!0,...d?{held:{reason:`${d.problem} ${d.fix??``}`.trim()}}:{}})]})]})})]}),t?(0,j.jsx)(LE,{files:S,cwd:e.cwd,truncated:o.state.truncated,onClose:()=>n(!1)}):null]})}function Xj(e,t){let n=(0,_.useRef)({messages:[],listeners:new Set}),r=(0,_.useRef)(t);return r.current=t,[(0,_.useMemo)(()=>pT({getSnapshot:()=>({messages:n.current.messages,status:`idle`,conversationId:e}),subscribe:e=>(n.current.listeners.add(e),()=>{n.current.listeners.delete(e)}),onSubmit:()=>r.current()}),[e]),(0,_.useCallback)(e=>{n.current.messages=e;for(let e of n.current.listeners)e()},[])]}function Zj(e){let t=KT(),n=qT(),r=(0,_.useContext)(EE),i=YT(),[a,o]=(0,_.useState)({loading:!0,messages:[],unavailable:null,truncated:!1}),[s,c]=(0,_.useState)(!1),[l,u]=(0,_.useState)(null),[d,f]=(0,_.useState)(!1),[p,m]=(0,_.useState)(!1),[h,g]=(0,_.useState)(void 0),[v,y]=(0,_.useState)(!1),b=Hj(e.provider,e.id,e.session?.activeElsewhere??null),x=IE(a.messages),S=e.session,[C,w]=Xj(e.id,()=>r(S?.cwd?`This chat is read-only until you take it over. Press Take over to continue it here.`:`This chat is read-only here: it doesn't record its folder, so it can't be continued.`));(0,_.useEffect)(()=>{let n=!1,r=r=>t.readPreview(e.provider,e.id,h).then(e=>{n||(w(e.messages),o(e),r&&y(!1))});h===void 0&&o({loading:!0,messages:[],unavailable:null,truncated:!1}),r(!0);let i=b?setInterval(()=>void r(!1),8e3):null;return()=>{n=!0,i&&clearInterval(i)}},[t,e.provider,e.id,h,b!==null,w]);let T=Vj(),E=IT(S??{provider:e.provider,providerSessionId:e.id,cwd:null,title:`Chat`,updatedAt:``,source:null,activeElsewhere:null},n.preferences),D=()=>{b?f(!0):A()},[O,k]=(0,_.useState)(!1),A=async n=>{if(S){f(!1),c(!0),u(null);try{let r=await t.takeover(S,n);e.onTakenOver(r.id)}catch(e){u(e instanceof Error?e.message:String(e))}finally{c(!1)}}};return(0,j.jsxs)(`div`,{className:`flex min-w-0 flex-1`,children:[(0,j.jsxs)(`section`,{className:`flex min-w-0 flex-1 flex-col`,"aria-label":E.title,children:[(0,j.jsxs)(`header`,{className:`@container/header flex items-center gap-2 border-b border-border px-5 pt-2.5 pb-2.5`,children:[(0,j.jsx)(pE,{provider:e.provider,size:22}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,j.jsx)(Gj,{entry:E,renaming:p,setRenaming:m}),(0,j.jsxs)(`p`,{className:`flex items-center gap-1.5 truncate text-[12px] leading-4 text-muted-foreground`,children:[(0,j.jsx)(`span`,{children:mT[e.provider]}),S?.cwd?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(tE,{size:12}),(0,j.jsx)(`span`,{className:`truncate`,title:S.cwd,children:ZT(S.cwd)})]}):null,S?(0,j.jsxs)(`span`,{children:[`· last active `,XT(S.updatedAt,i)]}):null]})]}),x.length>0?(0,j.jsxs)(`button`,{type:`button`,className:`cs-chip-button`,onClick:()=>e.setChangesOpen(!e.changesOpen),"aria-pressed":e.changesOpen,title:`Files this chat changed`,children:[(0,j.jsx)(SE,{size:13}),`${x.length} ${x.length===1?`file`:`files`} changed`]}):null,S?.cwd?(0,j.jsxs)(v_,{size:`sm`,variant:b?`outline`:`default`,onClick:D,disabled:s,className:`gap-1.5`,title:b?b.message:void 0,children:[s?(0,j.jsx)(uE,{size:13}):b?(0,j.jsx)(rE,{size:14,className:`text-warning`}):(0,j.jsx)(aE,{size:14}),b?`Take over anyway…`:`Take over`]}):null,S?.cwd&&!b?(0,j.jsx)(v_,{size:`sm`,variant:`outline`,onClick:()=>k(!0),disabled:s,children:`Continue with agent…`}):null,(0,j.jsx)(sj,{transport:t.transport,open:O,onOpenChange:k,title:`Continue with an agent`,action:`Take over with this agent`,onConfirm:e=>A(e)}),S?(0,j.jsx)(Wj,{entry:E,onRename:()=>m(!0)}):null]}),b?(0,j.jsxs)(`div`,{role:`status`,className:`flex items-start gap-2 border-b border-warning/40 bg-warning/10 px-5 py-2.5 text-[13px]`,children:[(0,j.jsx)(rE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[(0,j.jsx)(`span`,{className:`font-medium`,children:b.message}),` Taking it over now would put two agents on the same chat, and they could overwrite each other's work. Finish or stop it there first if you can. This preview follows it as it runs.`]})]}):null,(0,j.jsx)(KS,{open:d,onOpenChange:f,children:(0,j.jsxs)(aC,{className:`max-w-[460px]`,children:[(0,j.jsxs)(oC,{children:[(0,j.jsxs)(cC,{children:[`This chat is running right now in `,mT[e.provider]]}),(0,j.jsxs)(lC,{children:[b?.message,` If you take it over, two agents will work in the same conversation at once and may overwrite each other's changes.`]})]}),(0,j.jsxs)(sC,{children:[(0,j.jsx)(v_,{variant:`ghost`,onClick:()=>f(!1),children:`Cancel`}),(0,j.jsx)(v_,{variant:`destructive`,onClick:()=>void A(),children:`Take over anyway`})]})]})}),l?(0,j.jsx)(`p`,{className:`border-b border-destructive/30 bg-destructive/10 px-5 py-2 text-[13px] text-destructive`,children:l}):null,S&&!S.cwd?(0,j.jsx)(`p`,{className:`border-b border-border bg-muted/50 px-5 py-2 text-[13px] text-muted-foreground`,children:`This chat doesn't record which folder it ran in, so it can't be continued from here.`}):null,(0,j.jsxs)(`div`,{className:`mx-chat flex min-h-0 flex-1 flex-col`,children:[a.loading?(0,j.jsxs)(`div`,{className:`flex flex-1 items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(uE,{size:15}),` Reading this chat…`]}):a.unavailable?(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center px-6 text-center text-[13px] text-muted-foreground`,children:a.unavailable}):(0,j.jsxs)(hi,{thread:C,ports:{notifier:T,toolLabel:ET},children:[a.truncated?(0,j.jsx)(Kj,{loading:v,onEarlier:()=>{y(!0),g(e=>(e??25165824)*4)}}):null,(0,j.jsx)(Ww,{className:`min-h-0 flex-1`,label:`Chat preview`})]}),S?.cwd?(0,j.jsxs)(`div`,{className:`border-t border-border bg-muted/30 px-5 py-3 text-center text-[13px] text-muted-foreground`,children:[`This chat was started in `,mT[e.provider],`.`,` `,(0,j.jsx)(`button`,{type:`button`,className:`font-medium text-foreground underline-offset-4 hover:underline`,onClick:D,children:`Take it over`}),` `,`to continue it here — it stays in your `,mT[e.provider],` history too.`]}):null]})]}),e.changesOpen&&x.length>0?(0,j.jsx)(LE,{files:x,cwd:S?.cwd??null,truncated:a.truncated,onClose:()=>e.setChangesOpen(!1)}):null]})}function Qj(e){let t=e.status.ready;return(0,j.jsxs)(`button`,{type:`button`,onClick:e.onSelect,"aria-pressed":e.selected,className:Z(`flex flex-1 flex-col gap-1.5 rounded-xl border px-3.5 py-3 text-left transition-colors`,e.selected?`border-primary bg-primary/5 ring-1 ring-primary`:`border-border hover:bg-accent/50`),children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(pE,{provider:e.status.provider,size:18}),(0,j.jsx)(`span`,{className:`text-[13.5px] font-semibold`,children:e.status.label})]}),t?(0,j.jsxs)(`span`,{className:`flex items-center gap-1 text-[12px] text-success`,children:[(0,j.jsx)(nE,{size:13}),e.status.billing===`subscription`?`Signed in${e.status.plan?` · ${e.status.plan} plan`:``}`:`Signed in with an API key (billed per use)`]}):(0,j.jsxs)(`span`,{className:`flex items-start gap-1 text-[12px] leading-4 text-warning`,children:[(0,j.jsx)(rE,{size:13,className:`mt-px shrink-0`}),e.status.problem]}),e.status.quota.filter(e=>e.usedPercent!==null).length>0?(0,j.jsx)(`span`,{className:`text-[11.5px] leading-4 text-muted-foreground`,children:e.status.quota.filter(e=>e.usedPercent!==null).map(e=>`${e.label}: ${e.usedPercent}% used`).join(` · `)}):null]})}function $j({id:e,children:t}){return(0,j.jsxs)(`p`,{id:e,role:`alert`,className:`flex items-start gap-1.5 text-[12.5px] leading-5 text-destructive`,children:[(0,j.jsx)(rE,{size:14,className:`mt-0.5 shrink-0`}),(0,j.jsx)(`span`,{children:t})]})}function eM(e){let t=KT(),n=qT(),r=YT(),[i,a]=(0,_.useState)(`claude`),[o,s]=(0,_.useState)(``),[c,l]=(0,_.useState)({model:null,effort:null}),[u,d]=(0,_.useState)(``),[f,p]=(0,_.useState)({}),[m,h]=(0,_.useState)(null),[g,v]=(0,_.useState)(!1),[y,b]=(0,_.useState)(!1),[x,S]=(0,_.useState)(null),[C,w]=(0,_.useState)(null),[T,E]=(0,_.useState)(null),D=(0,_.useRef)(null),O=(0,_.useRef)(null),k=(0,_.useRef)(null);(0,_.useEffect)(()=>{e.open&&(h(null),p({}),t.refreshProviders(),t.refreshFolders())},[e.open,t]),(0,_.useEffect)(()=>{!o&&n.folders.data[0]?.exists&&s(n.folders.data[0].path)},[n.folders.data,o]),(0,_.useEffect)(()=>{let e=n.providers.data.filter(e=>e.ready),t=n.providers.data.find(e=>e.provider===i);t&&!t.ready&&e[0]&&a(e[0].provider)},[n.providers.loadedAt]);let A=n.providers.data.find(e=>e.provider===i)??null,M=e=>{e===`prompt`?D.current?.focus():e===`folder`?O.current?.focus():e===`agent`&&k.current?.querySelector(`button`)?.focus()},N=async()=>{if(g)return;h(null);let n=await Aj({provider:A,folder:o,prompt:u,checkFolder:e=>t.transport.call(`checkFolder`,e)});p(n);let r=jj(n);if(r){M(r);return}let a=nj(C,x);if(E(a),a){document.getElementById(`cs-agent-var-${a}`)?.focus();return}v(!0);try{let n=await t.start({provider:i,cwd:o.trim(),prompt:u,model:c.model,effort:c.effort,...x?{agent:x}:{}});d(``),e.onStarted(n.session.id)}catch(e){h(e instanceof Error?e.message:String(e))}finally{v(!1)}},P=async()=>{if(f.createFolder){b(!0);try{let e=await t.transport.call(`createFolder`,f.createFolder);s(e.path),p(e=>{let t={...e};return delete t.folder,delete t.createFolder,t}),t.refreshFolders(),O.current?.focus()}catch(e){p(t=>({...t,folder:`Couldn't create it: ${e instanceof Error?e.message:String(e)}`}))}finally{b(!1)}}},F=e=>p(t=>{if(t[e]===void 0)return t;let n={...t};return delete n[e],e===`folder`&&delete n.createFolder,n});return(0,j.jsx)(KS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(aC,{className:`max-w-[560px]`,children:[(0,j.jsxs)(oC,{children:[(0,j.jsx)(cC,{children:`New coding session`}),(0,j.jsxs)(lC,{children:[`Runs on your own `,i===`claude`?`Claude`:`ChatGPT`,` sign-in, in a folder on this computer.`]})]}),(0,j.jsxs)(`form`,{noValidate:!0,onSubmit:e=>{e.preventDefault(),N()},className:`flex min-h-0 flex-col`,children:[(0,j.jsxs)(`div`,{className:`cs-dialog-body space-y-5 py-1 pr-1`,children:[(0,j.jsxs)(`fieldset`,{className:`space-y-2`,ref:k,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Agent`}),n.providers.loading&&n.providers.loadedAt===null?(0,j.jsxs)(`div`,{className:`flex gap-2`,children:[(0,j.jsx)(`div`,{className:`cs-skeleton h-[68px] flex-1 rounded-xl`}),(0,j.jsx)(`div`,{className:`cs-skeleton h-[68px] flex-1 rounded-xl`})]}):n.providers.error?(0,j.jsx)(`p`,{className:`text-[12.5px] text-destructive`,children:n.providers.error}):(0,j.jsx)(`div`,{className:`flex gap-2`,children:n.providers.data.map(e=>(0,j.jsx)(Qj,{status:e,selected:e.provider===i,onSelect:()=>{e.provider!==i&&l({model:null,effort:null}),a(e.provider),F(`agent`)}},e.provider))}),f.agent?(0,j.jsx)($j,{id:`cs-err-agent`,children:f.agent}):A&&!A.ready&&A.fix?(0,j.jsxs)(`p`,{className:`text-[12px] leading-4 text-muted-foreground`,children:[A.fix,A.installed&&A.loggedIn?` You can still try — the run will say if it's still blocked.`:``]}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`AI Matrx agent`}),(0,j.jsx)(tj,{transport:t.transport,open:e.open,value:x,onChange:e=>{S(e),E(null)},missing:T,onDetails:w})]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Folder`}),n.folders.data.length>0?(0,j.jsx)(`div`,{className:`max-h-[132px] space-y-0.5 overflow-y-auto rounded-lg border border-border p-1`,children:n.folders.data.map(e=>(0,j.jsxs)(`button`,{type:`button`,onClick:()=>{s(e.path),F(`folder`)},disabled:!e.exists,title:e.exists?e.path:`${e.path} no longer exists`,className:Z(`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[12.5px]`,o===e.path?`bg-accent text-accent-foreground`:`hover:bg-accent/50`,!e.exists&&`opacity-50`),children:[(0,j.jsx)(tE,{size:14,className:`shrink-0 text-muted-foreground`}),(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:ZT(e.path)}),(0,j.jsx)(`span`,{className:`shrink-0 text-[11px] text-muted-foreground`,children:e.exists?XT(e.lastUsedAt,r):`missing`})]},e.path))}):n.folders.loading?(0,j.jsx)(`div`,{className:`cs-skeleton h-10 rounded-lg`}):null,(0,j.jsx)(uw,{ref:O,value:o,onChange:e=>{s(e.target.value),F(`folder`)},placeholder:`Or type a folder path, like ~/code/my-app`,"aria-label":`Folder path`,"aria-invalid":f.folder?!0:void 0,"aria-describedby":f.folder?`cs-err-folder`:void 0,spellCheck:!1}),f.folder?(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,j.jsx)($j,{id:`cs-err-folder`,children:f.folder}),f.createFolder?(0,j.jsxs)(v_,{type:`button`,size:`sm`,variant:`outline`,onClick:()=>void P(),disabled:y,className:`gap-1.5`,children:[y?(0,j.jsx)(uE,{size:13}):(0,j.jsx)(tE,{size:13}),`Create this folder`]}):null]}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`What should it do?`}),(0,j.jsx)(Sw,{ref:D,value:u,onChange:e=>{d(e.target.value),F(`prompt`)},onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),N())},placeholder:`Describe the change, the bug, or the question…`,rows:4,"aria-label":`First message`,"aria-invalid":f.prompt?!0:void 0,"aria-describedby":f.prompt?`cs-err-prompt`:void 0}),f.prompt?(0,j.jsx)($j,{id:`cs-err-prompt`,children:f.prompt}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Model and thinking effort`}),(0,j.jsx)(BE,{status:A,value:c,onChange:l,appearance:`field`}),(0,j.jsxs)(`p`,{className:`text-[11.5px] leading-4 text-muted-foreground`,children:[`Default is `,RE(A),`. You can change it later from the chat's header.`]})]}),m?(0,j.jsx)($j,{id:`cs-err-start`,children:m}):null]}),(0,j.jsxs)(sC,{className:`pt-4`,children:[(0,j.jsx)(v_,{type:`button`,variant:`ghost`,onClick:()=>e.onOpenChange(!1),children:`Cancel`}),(0,j.jsxs)(v_,{type:`submit`,disabled:g,className:`gap-1.5`,children:[g?(0,j.jsx)(uE,{size:14}):null,g?`Starting…`:`Start session`,g?null:(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘↵`})]})]})]})]})})}function tM({onNew:e}){let t=qT();return(0,j.jsx)(`section`,{className:`flex flex-1 items-center justify-center px-6`,children:(0,j.jsxs)(`div`,{className:`w-full max-w-[460px] text-center`,children:[(0,j.jsx)(`span`,{className:`mx-auto mb-4 flex h-11 w-11 items-center justify-center rounded-2xl bg-primary/10 text-primary`,children:(0,j.jsx)(lE,{size:22})}),(0,j.jsx)(`h1`,{className:`text-[15px] font-semibold leading-5 tracking-[-0.01em]`,children:`Drive Claude Code and Codex from here`}),(0,j.jsx)(`p`,{className:`mx-auto mt-2 max-w-[400px] text-[13.5px] leading-6 text-muted-foreground`,children:`Start a session in any folder, or pick up a chat you began somewhere else. Everything runs on your own subscriptions — no API keys.`}),(0,j.jsxs)(v_,{className:`mt-5 gap-1.5`,onClick:e,children:[(0,j.jsx)($T,{size:15}),`New session`]}),(0,j.jsxs)(`p`,{className:`mt-3 text-[12px] text-muted-foreground`,children:[(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌥⌘N`}),` new session · `,(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘K`}),` search your chats ·`,` `,(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘/`}),` all shortcuts`]}),(0,j.jsx)(`div`,{className:`mt-6 flex flex-wrap justify-center gap-2 text-left`,children:t.providers.data.map(e=>(0,j.jsxs)(`div`,{"data-provider-card":e.provider,title:e.installed&&e.version?[qj(e),Jj(e)??e.binary?.path].filter(Boolean).join(` · `):void 0,className:`flex w-[260px] items-start gap-2.5 rounded-lg border border-border bg-card px-3 py-2.5`,children:[(0,j.jsx)(pE,{provider:e.provider,size:16}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1 leading-5`,children:[(0,j.jsx)(`span`,{className:`block truncate text-[14px] font-semibold`,children:e.label}),e.ready?(0,j.jsxs)(`span`,{className:`block truncate text-[12px] text-muted-foreground`,children:[`Ready`,e.plan?` on your ${e.plan} plan`:``,e.billing===`api`?` (API key, billed per use)`:``]}):(0,j.jsxs)(`span`,{className:`block text-[12px] text-muted-foreground`,children:[e.problem,` `,e.fix]})]}),e.ready?(0,j.jsx)(nE,{size:15,className:`mt-0.5 text-success`}):(0,j.jsx)(rE,{size:15,className:`mt-0.5 text-warning`})]},e.provider))})]})})}function nM(){let[e,t]=(0,_.useState)(null),n=(0,_.useRef)(null);(0,_.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]);let r=(0,_.useCallback)((e,r=null)=>{t({text:e,sessionId:r}),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>t(null),6e3)},[]),i=(0,_.useCallback)(()=>{n.current&&clearTimeout(n.current),t(null)},[]);return{text:e?.text??null,sessionId:e?.sessionId??null,show:r,dismiss:i}}function rM({text:e}){let t=(0,_.useRef)(null);return(0,_.useLayoutEffect)(()=>{let e=t.current,n=e?.parentElement;if(!e||!n)return;let r=n.querySelector(`[data-cs-composer]`),i=r?n.getBoundingClientRect().bottom-r.getBoundingClientRect().top+8:20;e.style.setProperty(`--cs-toast-bottom`,`${Math.max(20,Math.round(i))}px`)},[e]),e?(0,j.jsx)(`div`,{ref:t,role:`status`,"data-cs-toast":!0,className:`cs-toast`,children:e}):null}var iM=300,aM=220,oM=560;function sM(e){return Math.round(Math.min(oM,Math.max(aM,e)))}function cM(){let[e,t]=(0,_.useState)(()=>{try{let e=Number(localStorage.getItem(`coding-sessions.sidebar-width`));return Number.isFinite(e)&&e>0?sM(e):iM}catch{return iM}}),[n,r]=(0,_.useState)(()=>{try{return localStorage.getItem(`coding-sessions.sidebar-collapsed`)===`1`}catch{return!1}});return{width:e,setWidth:(0,_.useCallback)(e=>{let n=sM(e);t(n);try{localStorage.setItem(`coding-sessions.sidebar-width`,String(n))}catch{}},[]),collapsed:n,setCollapsed:(0,_.useCallback)(e=>{r(e);try{localStorage.setItem(`coding-sessions.sidebar-collapsed`,e?`1`:`0`)}catch{}},[])}}function lM(e){let[t,n]=(0,_.useState)(!1);return(0,j.jsx)(`div`,{className:Z(`cs-resizer`,t&&`cs-resizer--dragging`),children:(0,j.jsx)(`button`,{type:`button`,className:`cs-resizer__grip`,role:`separator`,"aria-orientation":`vertical`,"aria-label":`Resize the sidebar`,"aria-valuenow":e.width,"aria-valuemin":aM,"aria-valuemax":oM,title:`Drag to resize · double-click to reset`,onDoubleClick:()=>e.setWidth(iM),onKeyDown:t=>{t.key===`ArrowLeft`&&e.setWidth(e.width-16),t.key===`ArrowRight`&&e.setWidth(e.width+16)},onPointerDown:t=>{t.preventDefault();let r=t.clientX,i=e.width;n(!0),document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`;let a=t=>e.setWidth(i+t.clientX-r),o=()=>{n(!1),document.body.style.cursor=``,document.body.style.userSelect=``,window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o)};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o)}})})}var uM=[{keys:`⌘K`,what:`Search chats`},{keys:`⌥⌘N`,what:`New session`},{keys:`Enter`,what:`Send (Shift+Enter for a new line)`},{keys:`Esc`,what:`Stop the run in the open chat`},{keys:`⌘B`,what:`Show or hide the sidebar`},{keys:`⌥↑ / ⌥↓`,what:`Previous or next chat in the list`},{keys:`⌘/`,what:`These shortcuts`}];function dM(e){return(0,j.jsx)(KS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(aC,{className:`max-w-[420px]`,children:[(0,j.jsxs)(oC,{children:[(0,j.jsx)(cC,{children:`Keyboard shortcuts`}),(0,j.jsx)(lC,{children:`Ctrl works in place of ⌘ on Windows and Linux.`})]}),(0,j.jsx)(`dl`,{className:`divide-y divide-border text-[13px]`,children:uM.map(e=>(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-4 py-2`,children:[(0,j.jsx)(`dt`,{className:`text-muted-foreground`,children:e.what}),(0,j.jsx)(`dd`,{children:(0,j.jsx)(`kbd`,{className:`rounded border border-border px-1.5 py-0.5 font-sans text-[12px]`,children:e.keys})})]},e.keys))})]})})}var fM=`Coding sessions`;function pM(e,t){let{show:n,dismiss:r,sessionId:i}=t,a=qT();(0,_.useEffect)(()=>{if(!i)return;let t=a.runs[i];(e===i||t&&(t.status===`starting`||t.status===`running`))&&r()},[i,e,a.runs,r]);let o=KT(),s=(0,_.useRef)(0),c=(0,_.useRef)(e);c.current=e,(0,_.useEffect)(()=>{let e=()=>{document.visibilityState===`visible`&&(s.current=0,document.title=fM)};document.addEventListener(`visibilitychange`,e);let t=o.onRunFinished(({run:e,session:t})=>{let r=t?.title??`A session`,i=e.status===`completed`?`finished`:e.status===`failed`?`failed`:`was stopped`,a=`${mT[e.provider]} ${i}: ${r}`;if(document.visibilityState===`hidden`){if(s.current+=1,document.title=`(${s.current}) ${fM}`,typeof Notification<`u`&&Notification.permission===`granted`){let t=new Notification(a,e.error?{tag:e.runId,body:ST(e.error)}:{tag:e.runId});t.onclick=()=>{window.focus(),location.hash=`#s/${e.sessionId}`,t.close()}}}else c.current!==e.sessionId&&e.status!==`stopped`&&n(a,e.sessionId)});return()=>{t(),document.removeEventListener(`visibilitychange`,e)}},[o,n])}function mM(){let e=typeof Notification<`u`,[t,n]=(0,_.useState)(e?Notification.permission:`denied`);return!e||t===`granted`?null:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void Notification.requestPermission().then(n),"aria-label":t===`denied`?`Notifications are blocked for this page in your browser's site settings`:`Notify me when a run finishes`,title:t===`denied`?`Notifications are blocked in your browser's site settings`:`Notify me when a run finishes`,disabled:t===`denied`,children:(0,j.jsx)(TE,{size:14})})}function hM(e){let t=e;return t?t.isContentEditable||t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.tagName===`SELECT`:!1}function gM(){let e=KT(),t=qT(),[n,r]=(0,_.useState)(Nj),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)({}),[f,p]=Ij(),m=nM(),h=m.show,g=cM(),v=(0,_.useRef)(null),y=(0,_.useCallback)(e=>{r(e),Pj(e)},[]);(0,_.useEffect)(()=>{let e=()=>r(Nj());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]),pM(n.kind===`session`?n.id:null,m);let b=n.kind===`session`?t.sessions.data.find(e=>e.id===n.id)??null:null,x=n.kind===`discovered`?t.discovered.data.find(e=>e.providerSessionId===n.id)??u[`${n.provider}:${n.id}`]??null:null,S=b?t.runs[b.id]:void 0,C=S!==void 0&&!_T(S.status),w=(0,_.useMemo)(()=>{let e=new Set(t.sessions.data.map(e=>e.providerSessionId).filter(Boolean));return[...t.sessions.data.map(e=>({kind:`session`,id:e.id})),...t.discovered.data.filter(t=>!e.has(t.providerSessionId)).map(e=>({kind:`discovered`,provider:e.provider,id:e.providerSessionId}))]},[t.sessions.data,t.discovered.data]);(0,_.useEffect)(()=>{let t=t=>{let r=t.metaKey||t.ctrlKey,i=t.key.toLowerCase();if(r&&!t.shiftKey&&!t.altKey&&i===`k`){t.preventDefault(),g.setCollapsed(!1),requestAnimationFrame(()=>{v.current?.focus(),v.current?.select()});return}if(r&&t.altKey&&(i===`n`||t.code===`KeyN`)||r&&t.shiftKey&&i===`o`){t.preventDefault(),a(!0);return}if(r&&!t.shiftKey&&!t.altKey&&i===`b`){t.preventDefault(),g.setCollapsed(!g.collapsed);return}if(r&&i===`/`){t.preventDefault(),s(!0);return}if(t.altKey&&!r&&(t.key===`ArrowUp`||t.key===`ArrowDown`)){let e=w.findIndex(e=>(e.kind===`session`&&n.kind===`session`||e.kind===`discovered`&&n.kind===`discovered`)&&e.id===n.id),r=w[t.key===`ArrowUp`?Math.max(0,e-1):Math.min(w.length-1,e+1)];r&&(t.preventDefault(),y(r));return}if(t.key===`Escape`&&C&&S&&!t.defaultPrevented){if(document.querySelector(`[role="dialog"], [role="menu"], [data-radix-popper-content-wrapper]`)||t.target===v.current)return;t.preventDefault(),e.stop(S.runId),h(`Stopping…`);return}t.key===`?`&&!hM(t.target)&&s(!0)};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e,g,C,S,w,n,y,h]);let T;return T=n.kind===`session`?b?(0,j.jsx)(Yj,{session:b,changesOpen:c,setChangesOpen:l},b.id):t.sessions.loadedAt===null?(0,j.jsxs)(`div`,{className:`flex flex-1 items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(uE,{size:15}),` Loading…`]}):(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-[13px] text-muted-foreground`,children:`That session is not in the list anymore.`}):n.kind===`discovered`?(0,j.jsx)(Zj,{session:x,provider:n.provider,id:n.id,onTakenOver:e=>y({kind:`session`,id:e}),changesOpen:c,setChangesOpen:l},`${n.provider}:${n.id}`):(0,j.jsx)(tM,{onNew:()=>a(!0)}),(0,j.jsx)(EE.Provider,{value:h,children:(0,j.jsxs)(`div`,{className:`cs-app flex h-full flex-col bg-background text-foreground`,children:[(0,j.jsx)(zj,{}),(0,j.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[g.collapsed?(0,j.jsxs)(`div`,{className:`flex flex-col items-center gap-1 border-r border-border bg-muted/30 px-1.5 py-3`,children:[(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>g.setCollapsed(!1),"aria-label":`Show the sidebar (⌘B)`,title:`Show sidebar ⌘B`,children:(0,j.jsx)(bE,{size:15})}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>a(!0),"aria-label":`New session`,title:`New session ⌥⌘N`,children:(0,j.jsx)($T,{size:15})})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(bj,{selection:n,select:y,onNew:()=>a(!0),onCollapse:()=>g.setCollapsed(!0),width:g.width,searchRef:v,onFound:e=>d(t=>({...t,[`${e.provider}:${e.providerSessionId}`]:e})),footer:(0,j.jsx)(Bj,{theme:f,setTheme:p,extra:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(mM,{}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>s(!0),"aria-label":`Keyboard shortcuts (⌘/)`,title:`Keyboard shortcuts ⌘/`,children:(0,j.jsx)(wE,{size:14})})]})})}),(0,j.jsx)(lM,{width:g.width,setWidth:g.setWidth})]}),(0,j.jsxs)(`main`,{className:`relative flex min-w-0 flex-1`,children:[T,(0,j.jsx)(rM,{text:m.text})]})]}),(0,j.jsx)(eM,{open:i,onOpenChange:a,onStarted:e=>{a(!1),y({kind:`session`,id:e})}}),(0,j.jsx)(dM,{open:o,onOpenChange:s})]})})}function _M({transport:e}){return(0,j.jsx)(Mj,{transport:e,children:(0,j.jsx)(gM,{})})}var vM=`coding-sessions.token`;function yM(){let e=new URL(location.href),t=e.searchParams.get(`token`);if(t){try{sessionStorage.setItem(vM,t)}catch{}return e.searchParams.delete(`token`),history.replaceState(null,``,`${e.pathname}${e.search}${e.hash}`),t}try{return sessionStorage.getItem(vM)}catch{return null}}var bM=(0,v.createRoot)(document.getElementById(`root`)),xM=yM();if(!xM)bM.render((0,j.jsx)(`div`,{className:`flex h-full items-center justify-center p-8`,children:(0,j.jsxs)(`div`,{className:`max-w-[440px] text-center`,children:[(0,j.jsx)(`h1`,{className:`text-[18px] font-semibold`,children:`This link is missing its access code`}),(0,j.jsx)(`p`,{className:`mt-2 text-[13.5px] leading-6 text-muted-foreground`,children:`Open the coding sessions page from the full link AI Matrx gave you — it ends in a long access code that keeps other websites from reaching your coding agents.`})]})}));else{let e=y({token:xM});bM.render((0,j.jsx)(_.StrictMode,{children:(0,j.jsx)(_M,{transport:e})}))}