thursday-agent 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/file/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js.nft.json +1 -1
- package/.next/server/app/api/signins/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/end/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/plan/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +11 -11
- package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page/server-reference-manifest.json +68 -68
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/_0tkzlv1._.js +11 -9
- package/.next/server/chunks/_1_0gehg._.js +11 -9
- package/.next/server/chunks/features_14kex_m._.js +3 -1
- package/.next/server/chunks/features_1xn6un-._.js +3 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1ngprpi._.js → [root-of-the-server]__07mxab7._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0auk-ke._.js +13 -8
- package/.next/server/chunks/ssr/{[root-of-the-server]__11_ws3y._.js → [root-of-the-server]__0bgf9r2._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__1j2x83w._.js → [root-of-the-server]__0nfq6eh._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0utwbb5._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__13xx3dr._.js → [root-of-the-server]__18l3o37._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__1qiq402._.js → [root-of-the-server]__1njrrpi._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__1t38-p_._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__02-kwsg._.js → [root-of-the-server]__1vgf-i-._.js} +2 -2
- package/.next/server/chunks/ssr/{_15zznka._.js → _01l1svp._.js} +2 -2
- package/.next/server/chunks/ssr/{_1e1qe7w._.js → _01m2s2p._.js} +2 -2
- package/.next/server/chunks/ssr/{_0a31ywo._.js → _06o_p34._.js} +2 -2
- package/.next/server/chunks/ssr/{_1nnl9sj._.js → _0ps83ki._.js} +2 -2
- package/.next/server/chunks/ssr/{_1tc_gbg._.js → _0tfponz._.js} +2 -2
- package/.next/server/chunks/ssr/{_0ldpw1q._.js → _0x9aecq._.js} +2 -2
- package/.next/server/chunks/ssr/_128r03g._.js +3 -1
- package/.next/server/chunks/ssr/{_0nans9v._.js → _16qphtt._.js} +2 -2
- package/.next/server/chunks/ssr/_17fa2ns._.js +5 -5
- package/.next/server/chunks/ssr/_1_px1o-._.js +1 -1
- package/.next/server/chunks/ssr/_1e_9qjr._.js +1 -1
- package/.next/server/chunks/ssr/{_19g10gj._.js → _1k5f6cg._.js} +2 -2
- package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
- package/.next/server/chunks/ssr/_1rlfzdj._.js +6 -0
- package/.next/server/chunks/ssr/_1soynbw._.js +2 -2
- package/.next/server/chunks/ssr/{_1qtcl42._.js → _1tu2bpk._.js} +2 -2
- package/.next/server/chunks/ssr/{components_ui_markdown-body_tsx_13aa4_2._.js → components_ui_markdown-body_tsx_1ac61z0._.js} +2 -2
- package/.next/server/chunks/ssr/features_0rrgq_t._.js +1 -1
- package/.next/server/chunks/ssr/features_ai_components_model-picker_tsx_0ucb1y9._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_components_01ye2wp._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_components_bot-setting_tsx_01ajft6._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_components_thread-setting_tsx_0yae7zy._.js +1 -1
- package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +1 -1
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +1 -1
- package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
- package/.next/server/chunks/ssr/features_skills_components_skills-setting_tsx_1wtuuip._.js +1 -1
- package/.next/server/chunks/ssr/features_thursday_components_thursday-setting_tsx_1_6ydrc._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_107hxun._.js → node_modules_0-8ygub._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1v-un0n._.js → node_modules_012orll._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1uyu3cc._.js → node_modules_02fw1bp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0wa05ay._.js → node_modules_02t-i_c._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_069gsbk._.js → node_modules_03ntdqv._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_150qjpq._.js → node_modules_04e__3n._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0kdc_b7._.js → node_modules_0507yvc._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1xtd9ml._.js → node_modules_06oedzb._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_05fihwh._.js → node_modules_0b8revr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0jrjbfv._.js → node_modules_0dfjba7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0walxvo._.js → node_modules_0i3xlf-._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0ou72wu._.js → node_modules_0k-r85l._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_19gok-9._.js → node_modules_0kdzuew._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1-vdt7b._.js → node_modules_0mbx677._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1vh6nr-._.js → node_modules_0o5tzyn._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0z8o0-n._.js → node_modules_0pv4uha._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17-v4n4._.js → node_modules_0qrh5xo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0jqaiyb._.js → node_modules_0t4ep0l._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ia9-w8._.js → node_modules_0tx0umb._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_19acw__._.js → node_modules_0ukjqyk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_050v667._.js → node_modules_0w-dsl0._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0gb732y._.js → node_modules_0x_do0y._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0q8xm6u._.js → node_modules_0x_r46g._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_152bm83._.js → node_modules_0zw6cf-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1misalx._.js → node_modules_122hfb2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_2045nus._.js → node_modules_13rr6rm._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0skzy7i._.js → node_modules_152kfg-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0wsygp2._.js → node_modules_15f2sid._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_06b7g0r._.js → node_modules_162v3_m._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1pt7o47._.js → node_modules_16wbh_d._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1x7napn._.js → node_modules_1838s3x._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0zi89fj._.js → node_modules_1_rbg_o._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1jt8w7f._.js → node_modules_1awgatr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1n5ds4a._.js → node_modules_1g9_m7_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1fa_3_c._.js → node_modules_1hgqn53._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1si826e._.js → node_modules_1j59ehc._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0y_dhgi._.js → node_modules_1jvg854._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_140qn14._.js → node_modules_1k9u0x_._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_06p_ayw._.js → node_modules_1kqsyd_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1jrlct1._.js → node_modules_1kv5-zo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1b45v66._.js → node_modules_1lwcjnq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_13ccsqp._.js → node_modules_1mxdor4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_04qcy8e._.js → node_modules_1o_q011._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0ljjw5o._.js → node_modules_1p5__vf._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0jaxs1q._.js → node_modules_1p_tdep._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0xetrwd._.js → node_modules_1qyanf-._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1861d28._.js → node_modules_1rrbt-g._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1k0ygyl._.js → node_modules_1rtx020._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_12409ud._.js → node_modules_1rxd-pq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_uhcxd._.js → node_modules_1sum8sx._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_18uwehg._.js → node_modules_1tqxzmp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ob-uxg._.js → node_modules_1u5xb0j._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0-zy1_5._.js → node_modules_1umqska._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_20llbw8._.js → node_modules_1v065ct._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1o1ud40._.js → node_modules_1w2-as3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0v0l095._.js → node_modules_1ywecve._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_0-moq-r._.js → node_modules_katex_dist_katex_mjs_1l3addz._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_1bf0rdx._.js → node_modules_katex_dist_katex_mjs_1y07ypr._.js} +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +69 -69
- package/.next/static/chunks/{0km5rjf8k0gst.js → 0eepme181mw6f.js} +1 -1
- package/.next/static/chunks/{25tttxgpn-fdl.js → 0rx67d-x-1mmv.js} +2 -2
- package/.next/static/chunks/{2tlvu360xbisx.js → 0wwq57j09skhy.js} +1 -1
- package/.next/static/chunks/0xlr5fmtxb42l.js +4 -0
- package/.next/static/chunks/{3f4aku2z0zdxp.js → 0yp1so_h9mfhf.js} +1 -1
- package/.next/static/chunks/{1vxq-0uxcm5yl.js → 14e3ie8pgxgdb.js} +1 -1
- package/.next/static/chunks/{0_o7o4-itqsz7.js → 1b-3utyj58fn1.js} +1 -1
- package/.next/static/chunks/{1o4z63f94c3r-.js → 1c3tarihhldvd.js} +1 -1
- package/.next/static/chunks/{2njcedjozdqm7.js → 1j2zjawu_2th7.js} +1 -1
- package/.next/static/chunks/{2zvo7b47hhxi5.js → 1l0_q-kf0cbaj.js} +1 -1
- package/.next/static/chunks/{1hwehpk3kk-pc.js → 1la1aeosxvwmz.js} +1 -1
- package/.next/static/chunks/{29fpns41ml485.js → 1n3a07w81jbc-.js} +1 -1
- package/.next/static/chunks/{3ul6m16ba_i3u.js → 227tjgj_th6uf.js} +1 -1
- package/.next/static/chunks/{1zwj72bhapocl.js → 29r_coa80ubpw.js} +1 -1
- package/.next/static/chunks/{06ymo4xf31ggh.js → 2adz3q18q052w.js} +1 -1
- package/.next/static/chunks/{1ki7x6-ehua0u.js → 2b08w7t0hc1fp.js} +1 -1
- package/.next/static/chunks/{0i4df8t5_6a-g.js → 2gl-fo_rmmmq0.js} +1 -1
- package/.next/static/chunks/{1e3karuzhh7ik.js → 2h5rvagz5wdhy.js} +1 -1
- package/.next/static/chunks/2jo02hrgs_zqm.js +1 -0
- package/.next/static/chunks/{3ymtwwxmbactm.js → 2voeol7_1tit_.js} +1 -1
- package/.next/static/chunks/{277zw6dp5yzks.js → 36hfkcfa5a6be.js} +5 -5
- package/.next/static/chunks/{17ow2tmvy65in.js → 3a98r51s8rjtt.js} +1 -1
- package/.next/static/chunks/{2jn9y4sol_low.js → 3hl237797_a8e.js} +2 -2
- package/.next/static/chunks/3sjv-rshh-98q.js +1 -0
- package/.next/static/chunks/{1pxe_gpjic1_h.js → 3tejx8kiotsia.js} +1 -1
- package/.next/static/chunks/{1vwqvgit8a1vm.js → 42xlx1decmn82.js} +1 -1
- package/guide/calls.md +3 -1
- package/package.json +1 -1
- package/.next/server/chunks/ssr/_131wmbl._.js +0 -6
- package/.next/static/chunks/0lc_77uhatqgd.js +0 -1
- package/.next/static/chunks/1gca5ia-a-3e2.js +0 -1
- package/.next/static/chunks/3qhhs3dk6cdbq.js +0 -4
- /package/.next/static/{pekZvsOZ3_8_ohluwgZtY → mTdCVAiiVKCutbZcekyHn}/_buildManifest.js +0 -0
- /package/.next/static/{pekZvsOZ3_8_ohluwgZtY → mTdCVAiiVKCutbZcekyHn}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{pekZvsOZ3_8_ohluwgZtY → mTdCVAiiVKCutbZcekyHn}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59377,e=>{"use strict";var t=e.i(843476);e.s([],158421),e.i(158421);var a=e.i(271645),n=e.i(896499),i=e.i(17989),o=e.i(46420),r=e.i(733332);let s=a.createContext(void 0);function l(e){let t=a.useContext(s);if(void 0===t&&!e)throw Error((0,r.default)(47));return t}var d=e.i(174080),c=e.i(301252),u=e.i(439957),p=e.i(956789),h=e.i(56434),f=e.i(18478),g=e.i(264111),m=e.i(116786),v=e.i(990627),E=e.i(638396);let L={...m.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class S extends c.ReactStore{constructor(e,t,a){const n=new v.PopupTriggerMap;super(O(e,n,t,a),M(n),L)}setOpen=(e,t)=>{let a,n=t.reason===h.REASONS.triggerHover,i=t.reason===h.REASONS.triggerPress&&0===t.event.detail,o=!e&&(t.reason===h.REASONS.escapeKey||null==t.reason),r=(0,g.attachPreventUnmountOnClose)(t),s=this.select("activeTriggerId");if(e||t.reason!==h.REASONS.closePress||null!=t.trigger||null==s||(t.trigger=this.context.triggerElements.getById(s)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let l=()=>{let a=(0,g.createPopupOpenState)(this.state,e,t.trigger,r());a.openChangeReason=t.reason,this.update(a)};n?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(E.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}),d.flushSync(l)):l(),i?a="click":o?a="dismiss":t.reason===h.REASONS.focusOut&&(a="focus"),this.set("instantType",a)}}function O(e,t,a,n=!1){let i={...(0,m.createInitialPopupStoreState)(t,a,n),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function M(e){return{popupRef:a.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:a.createRef(),beforeContentFocusGuardRef:a.createRef(),stickIfOpenTimeout:new u.Timeout,triggerElements:e}}var x=e.i(675606);let b=(0,n.fastComponent)(function({props:e}){var n;let i,{children:o,open:r,defaultOpen:l=!1,onOpenChange:d,onOpenChangeComplete:c,modal:u=!1,handle:p,triggerId:f,defaultTriggerId:m=null}=e,v=(n={modal:u,open:l,openProp:r,activeTriggerId:m,triggerIdProp:f},i=(0,g.usePopupRootStore)((e,t)=>new S(n,e,t)),a.useEffect(()=>i.context.stickIfOpenTimeout.disposeEffect(),[i]),i);v.useControlledProp("openProp",r),v.useControlledProp("triggerIdProp",f);let E=v.useState("open"),L=v.useState("mounted"),O=v.useState("payload");v.useContextCallback("onOpenChange",d),v.useContextCallback("onOpenChangeComplete",c),(0,g.usePopupRootSync)(v,E),(0,g.useImplicitActiveTrigger)(v);let{forceUnmount:M}=(0,g.useOpenStateTransitions)(E,v,()=>{v.update({stickIfOpen:!0,openChangeReason:null})});v.useSyncedValues({modal:u}),a.useEffect(()=>{E||v.context.stickIfOpenTimeout.clear()},[v,E]),a.useImperativeHandle(e.actionsRef,()=>({unmount:M,close:()=>v.setOpen(!1,(0,x.createChangeEventDetails)(h.REASONS.imperativeAction))}),[M,v]);let b=E||L;return(0,t.jsxs)(s.Provider,{value:v,children:[p&&(0,t.jsx)(g.PopupHandleAttachment,{handle:p,store:v}),b&&(0,t.jsx)(y,{store:v,modal:u}),"function"==typeof o?o({payload:O}):o]})});function y({store:e,modal:t}){let a=e.useState("floatingRootContext"),n=(0,i.useDismiss)(a,{outsidePressEvent:{mouse:"trap-focus"===t?"sloppy":"intentional",touch:"sloppy"}}),o=n.reference,r=n.floating;return(0,g.usePopupInteractionProps)(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:r}),null}var C=e.i(540886),w=e.i(879938),R=e.i(552245),A=e.i(650316),I=e.i(385689),T=e.i(872135),_=e.i(788015),k=e.i(152535),P=e.i(459636),D=e.i(346570),z=e.i(32199);let N=(0,n.fastComponentRef)(function(e,n){let{render:i,className:o,style:s,disabled:d=!1,nativeButton:c=!0,handle:u,payload:p,openOnHover:f=!1,delay:m=300,closeDelay:v=0,id:L,...S}=e,O=l(!0),M=(0,P.usePopupHandleStore)(u)??O;if(!M)throw Error((0,r.default)(74));let x=(0,_.useBaseUiId)(L),b=M.useState("isTriggerActive",x),y=M.useState("floatingRootContext"),N=M.useState("isOpenedByTrigger",x),j=M.useState("triggerPopupId",x),F=a.useRef(null),{registerTrigger:V,isMountedByThisTrigger:K}=(0,g.useTriggerDataForwarding)(x,F,M,{payload:p,disabled:d,openOnHover:f,closeDelay:v}),H=M.useState("openChangeReason"),B=M.useState("stickIfOpen"),Y=M.useState("openMethod"),U=M.useState("focusManagerModal"),G=(0,T.useHoverReferenceInteraction)(y,{enabled:!d&&f&&("touch"!==Y||H!==h.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,A.safePolygon)(),restMs:m,delay:{close:v},triggerElementRef:F,isActiveTrigger:b,isClosing:()=>"ending"===M.select("transitionStatus")}),q=(0,I.useClick)(y,{stickIfOpen:B}),W=(0,z.useOpenMethodTriggerProps)(()=>M.select("open"),e=>{M.set("openMethod",e)}),$=M.useState("triggerProps",K),{getButtonProps:X,buttonRef:Q}=(0,C.useButton)({disabled:d,native:c}),{preFocusGuardRef:Z,handlePreFocusGuardFocus:J,handleFocusTargetFocus:ee}=(0,D.useTriggerFocusGuards)(M,F),et=(0,R.useRenderElement)("button",e,{state:{disabled:d,open:N},ref:[Q,n,V,F],props:[q.reference,G,$,W,{[E.CLICK_TRIGGER_IDENTIFIER]:"",id:x,"aria-haspopup":"dialog","aria-expanded":N,"aria-controls":j},S,X],stateAttributesMapping:{open:e=>e&&H===h.REASONS.triggerPress?w.pressableTriggerOpenStateMapping.open(e):w.triggerOpenStateMapping.open(e)}}),ea=(0,t.jsx)(a.Fragment,{children:et},x);return K&&!U?(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(k.FocusGuard,{ref:Z,onFocus:J}),ea,(0,t.jsx)(k.FocusGuard,{ref:M.context.triggerFocusTargetRef,onFocus:ee})]}):ea});var j=e.i(726674);let F=a.createContext(void 0),V=a.forwardRef(function(e,a){let{keepMounted:n=!1,...i}=e;return l().useState("mounted")||n?(0,t.jsx)(F.Provider,{value:n,children:(0,t.jsx)(j.FloatingPortal,{ref:a,...i})}):null});var K=e.i(144394),H=e.i(146376);let B=a.createContext(void 0);function Y(){let e=a.useContext(B);if(!e)throw Error((0,r.default)(46));return e}var U=e.i(923706),G=e.i(426),q=e.i(222640),W=e.i(789579),$=e.i(33383);let X=a.forwardRef(function(e,n){let{render:i,className:s,style:d,anchor:c,positionMethod:u,side:p,align:f,sideOffset:g,alignOffset:m,collisionBoundary:v="clipping-ancestors",collisionPadding:L,arrowPadding:S,sticky:O,disableAnchorTracking:M=!1,collisionAvoidance:x=E.POPUP_COLLISION_AVOIDANCE,...b}=e,y=l(),C=function(){let e=a.useContext(F);if(void 0===e)throw Error((0,r.default)(45));return e}(),w=(0,o.useFloatingNodeId)(),R=y.useState("floatingRootContext"),A=y.useState("mounted"),I=y.useState("open"),T=y.useState("openChangeReason"),_=y.useState("activeTriggerElement"),k=y.useState("modal"),P=y.useState("openMethod"),D=y.useState("positionerElement"),z=y.useState("instantType"),N=y.useState("transitionStatus"),j=y.useState("adaptiveOrigin"),V=a.useRef(null),Y=(0,q.useAnimationsFinished)(D),X=(0,U.useAnchorPositioning)({anchor:c,floatingRootContext:R,positionMethod:u,mounted:A,side:p,sideOffset:g,align:f,alignOffset:m,arrowPadding:S,collisionBoundary:v,collisionPadding:L,sticky:O,disableAnchorTracking:M,keepMounted:C,nodeId:w,collisionAvoidance:x,adaptiveOrigin:j}),Q=R.useState("domReferenceElement");(0,H.useIsoLayoutEffect)(()=>{let e=V.current;if(Q&&(V.current=Q),e&&Q&&Q!==e){y.set("instantType",void 0);let e=new AbortController;return Y(()=>{y.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[Q,Y,y]);let Z=!0===k&&T!==h.REASONS.triggerHover;(0,$.useAnchoredPopupScrollLock)(I&&Z,"touch"===P,D,_);let J=y.useStateSetter("positionerElement"),ee={open:I,side:X.side,align:X.align,anchorHidden:X.anchorHidden,instant:z},et=(0,W.usePositioner)(e,ee,{styles:X.positionerStyles,transitionStatus:N,props:b,refs:[n,J],hidden:!A,inert:!I});return(0,t.jsxs)(B.Provider,{value:X,children:[A&&Z&&(0,t.jsx)(G.InternalBackdrop,{inert:(0,K.inertValue)(!I),cutout:_}),(0,t.jsx)(o.FloatingNode,{id:w,children:et})]})});var Q=e.i(229315),Z=e.i(61487),J=e.i(431157),ee=e.i(137584),et=e.i(673327),ea=e.i(96533),en=e.i(253984),ei=e.i(667865);let eo=a.createContext(void 0),er=a.forwardRef(function(e,n){let{render:i,className:o,style:r,initialFocus:s,finalFocus:d,...c}=e,u=l(),p=Y(),f=null!=(0,ea.useToolbarRootContext)(!0),{context:m,hasClosePart:v}=function(){let[e,t]=a.useState(0),n=(0,ei.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:a.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}(),E=u.useState("open"),L=u.useState("openMethod"),S=u.useState("instantType"),O=u.useState("transitionStatus"),M=u.useState("popupProps"),x=u.useState("titleElementId"),b=u.useState("descriptionElementId"),y=u.useState("modal"),C=u.useState("mounted"),A=u.useState("openChangeReason"),I=u.useState("activeTriggerElement"),T=u.useState("floatingRootContext"),_=T.useState("floatingId"),k=u.useState("disabled"),P=u.useState("openOnHover"),D=u.useState("closeDelay");(0,ee.useOpenChangeComplete)({open:E,ref:u.context.popupRef,onComplete(){E&&u.context.onOpenChangeComplete?.(!0)}}),(0,J.useHoverFloatingInteraction)(T,{enabled:P&&!k,closeDelay:D});let z=void 0===s?(0,g.createDefaultInitialFocus)(u.context.popupRef):s,N=!1!==y&&v;u.useSyncedValue("focusManagerModal",N);let j=u.useStateSetter("popupElement"),F={open:E,side:p.side,align:p.align,instant:S,transitionStatus:O},V=(0,R.useRenderElement)("div",e,{state:F,ref:[n,u.context.popupRef,j],props:[M,{id:_,role:"dialog",...g.FOCUSABLE_POPUP_PROPS,"aria-labelledby":x,"aria-describedby":b,onKeyDown(e){f&&et.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,en.getDisabledMountTransitionStyles)(O),c],stateAttributesMapping:w.popupTransitionStateMapping});return(0,t.jsx)(Z.FloatingFocusManager,{context:T,openInteractionType:L,modal:N,disabled:!C||A===h.REASONS.triggerHover,initialFocus:z,returnFocus:d,restoreFocus:"popup",previousFocusableElement:(0,Q.isHTMLElement)(I)?I:void 0,nextFocusableElement:u.context.triggerFocusTargetRef,beforeContentFocusGuardRef:u.context.beforeContentFocusGuardRef,children:(0,t.jsx)(eo.Provider,{value:m,children:V})})}),es=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l().useState("open"),{arrowRef:s,side:d,align:c,arrowUncentered:u,arrowStyles:p}=Y();return(0,R.useRenderElement)("div",e,{state:{open:r,side:d,align:c,uncentered:u},ref:[t,s],props:[{style:p,"aria-hidden":!0},o],stateAttributesMapping:w.popupStateMapping})}),el=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=r.useState("open"),d=r.useState("mounted"),c=r.useState("transitionStatus"),u=r.useState("openChangeReason");return(0,R.useRenderElement)("div",e,{state:{open:s,transitionStatus:c},ref:t,props:[{role:"presentation",hidden:!d,style:{pointerEvents:u===h.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},o],stateAttributesMapping:w.popupTransitionStateMapping})}),ed=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=(0,_.useBaseUiId)(o.id);return r.useSyncedValueWithCleanup("titleElementId",s),(0,R.useRenderElement)("h2",e,{ref:t,props:[{id:s},o]})}),ec=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=(0,_.useBaseUiId)(o.id);return r.useSyncedValueWithCleanup("descriptionElementId",s),(0,R.useRenderElement)("p",e,{ref:t,props:[{id:s},o]})}),eu=a.forwardRef(function(e,t){let n,{render:i,className:o,style:r,disabled:s=!1,nativeButton:d=!0,...c}=e,{buttonRef:u,getButtonProps:p}=(0,C.useButton)({disabled:s,focusableWhenDisabled:!1,native:d}),f=l();return n=a.useContext(eo),(0,H.useIsoLayoutEffect)(()=>n?.register(),[n]),(0,R.useRenderElement)("button",e,{ref:[t,u],props:[{onClick(e){f.setOpen(!1,(0,x.createChangeEventDetails)(h.REASONS.closePress,e.nativeEvent))}},c,p]})});var ep=e.i(818390);let eh=a.forwardRef(function(e,t){let{render:a,className:n,style:i,children:o,...r}=e,s=l(),{side:d}=Y(),c=s.useState("instantType"),{children:u,state:p}=(0,ep.usePopupViewport)({store:s,side:d,children:o}),h={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:c};return(0,R.useRenderElement)("div",e,{state:h,ref:t,props:[r,{children:u}],stateAttributesMapping:ep.popupViewportStateMapping})});var ef=e.i(564170);class eg extends ef.BasePopupHandle{constructor(){super(function(){let e=new v.PopupTriggerMap;return Object.assign(new f.NullStore(Object.freeze(O(void 0,e)),Object.freeze(M(e)),L),{setOpen:p.NOOP})}(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",0,es,"Backdrop",0,el,"Close",0,eu,"Description",0,ec,"Handle",0,eg,"Popup",0,er,"Portal",0,V,"Positioner",0,X,"Root",0,function(e){return l(!0)?(0,t.jsx)(b,{props:e}):(0,t.jsx)(o.FloatingTree,{children:(0,t.jsx)(b,{props:e})})},"Title",0,ed,"Trigger",0,N,"Viewport",0,eh,"createHandle",0,function(){return new eg}],466914);var em=e.i(466914),em=em,ev=e.i(647163);e.s(["Popover",0,function({...e}){return(0,t.jsx)(em.Root,{"data-slot":"popover",...e})},"PopoverContent",0,function({className:e,align:a="center",alignOffset:n=0,side:i="bottom",sideOffset:o=4,...r}){return(0,t.jsx)(em.Portal,{children:(0,t.jsx)(em.Positioner,{align:a,alignOffset:n,side:i,sideOffset:o,className:"isolate z-50",children:(0,t.jsx)(em.Popup,{"data-slot":"popover-content",className:(0,ev.cn)("z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})})})},"PopoverTrigger",0,function({...e}){return(0,t.jsx)(em.Trigger,{"data-slot":"popover-trigger",...e})}],59377)},412294,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(167881),i=e.i(6799),o=e.i(41533),r=e.i(95187);let s=(0,r.createServerReference)("7fdf07cceef3c3a49489175fbd186cd69e0ed102ae",r.callServer,void 0,r.findSourceMapURL,"startChatGptSignInAction");var l=e.i(609856);e.s(["ChatGptSignIn",0,function({variant:e,size:r,className:d,label:c="Sign in with ChatGPT"}){let[u,p]=(0,a.useState)(!1),h=(0,a.useRef)(null),f=()=>{h.current&&clearInterval(h.current),h.current=null};(0,a.useEffect)(()=>f,[]);let[g,m]=(0,l.useServerAction)(s,{onOk:e=>{let t,a=((t=window.open(e,"thursday-chatgpt","popup,width=520,height=720"))||i.toast.add({type:"error",title:"The sign-in window was blocked",description:"Allow pop-ups for this page, then try again"}),t);if(!a)return;p(!0),f();let n=Date.now()+o.CHATGPT_SIGN_IN.waitMs;h.current=setInterval(()=>{!a.closed&&Date.now()<n||(f(),p(!1))},700)}});return(0,t.jsx)(n.Button,{variant:e,size:r,className:d,loading:m||u,onClick:()=>g(),children:c})}],412294)},968978,e=>{"use strict";var t=e.i(843476);function a({className:e}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",className:e,width:"24",children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"}),(0,t.jsx)("path",{d:"M1 1h22v22H1z",fill:"none"})]})}function n({className:e}){return(0,t.jsxs)("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"OpenAI icon"}),(0,t.jsx)("path",{fill:"currentColor",d:"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 i({className:e}){return(0,t.jsxs)("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 35 33",children:[(0,t.jsx)("path",{d:"M13.2371 21.0407L24.3186 12.8506C24.8619 12.4491 25.6384 12.6057 25.8973 13.2294C27.2597 16.5185 26.651 20.4712 23.9403 23.1851C21.2297 25.8989 17.4581 26.4941 14.0108 25.1386L10.2449 26.8843C15.6463 30.5806 22.2053 29.6665 26.304 25.5601C29.5551 22.3051 30.562 17.8683 29.6205 13.8673L29.629 13.8758C28.2637 7.99809 29.9647 5.64871 33.449 0.844576C33.5314 0.730667 33.6139 0.616757 33.6964 0.5L29.1113 5.09055V5.07631L13.2343 21.0436",fill:"currentColor"}),(0,t.jsx)("path",{d:"M10.9503 23.0313C7.07343 19.3235 7.74185 13.5853 11.0498 10.2763C13.4959 7.82722 17.5036 6.82767 21.0021 8.2971L24.7595 6.55998C24.0826 6.07017 23.215 5.54334 22.2195 5.17313C17.7198 3.31926 12.3326 4.24192 8.67479 7.90126C5.15635 11.4239 4.0499 16.8403 5.94992 21.4622C7.36924 24.9165 5.04257 27.3598 2.69884 29.826C1.86829 30.7002 1.0349 31.5745 0.36364 32.5L10.9474 23.0341",fill:"currentColor"})]})}function o({className:e}){return(0,t.jsxs)("svg",{overflow:"visible",width:"100%",height:"100%",viewBox:"0 0 100 101",fill:"none",className:e,xmlns:"http://www.w3.org/2000/svg",role:"presentation",children:[(0,t.jsx)("path",{d:"M96.0000 40.0000 L99.5002 42.0000 L99.5002 43.5000 L98.5000 47.0000 L56.0000 57.0000 L52.0040 47.0708 L96.0000 40.0000 M96.0000 40.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(330deg) scaleY(1.13102) rotate(-330deg)"}}),(0,t.jsx)("path",{d:"M80.1032 10.5903 L84.9968 11.6171 L86.2958 13.2179 L87.5346 17.0540 L87.0213 19.5007 L58.5000 58.5000 L49.0000 49.0000 L75.3008 14.4873 L80.1032 10.5903 M80.1032 10.5903 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(300deg) scaleY(1.04936) rotate(-300deg)"}}),(0,t.jsx)("path",{d:"M55.5002 4.5000 L58.5005 2.5000 L61.0002 3.5000 L63.5002 7.0000 L56.6511 48.1620 L52.0005 45.0000 L50.0005 39.5000 L53.5003 8.5000 L55.5002 4.5000 M55.5002 4.5000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(270deg) scaleY(1.08769) rotate(-270deg)"}}),(0,t.jsx)("path",{d:"M23.4253 5.1588 L26.5075 1.2217 L28.5175 0.7632 L32.5063 1.3458 L34.4748 2.8868 L48.8202 34.6902 L54.0089 49.8008 L47.9378 53.1760 L24.8009 11.1886 L23.4253 5.1588 M23.4253 5.1588 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(240deg) scaleY(0.94) rotate(-240deg)"}}),(0,t.jsx)("path",{d:"M8.4990 27.0019 L7.4999 23.0001 L10.5003 19.5001 L14.0003 20.0001 L15.0003 20.0001 L36.0000 35.5000 L42.5000 40.5000 L51.5000 47.5000 L46.5000 56.0000 L42.0002 52.5000 L39.0001 49.5000 L10.0000 29.0001 L8.4990 27.0019 M8.4990 27.0019 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(210deg) scaleY(0.925) rotate(-210deg)"}}),(0,t.jsx)("path",{d:"M2.5003 53.0000 L0.2370 50.5000 L0.2373 48.2759 L2.5003 47.5000 L28.0000 49.0000 L53.0000 51.0000 L52.1885 55.9782 L4.5000 53.5000 L2.5003 53.0000 M2.5003 53.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(180deg) scaleY(0.997) rotate(-180deg)"}}),(0,t.jsx)("path",{d:"M17.5002 79.0264 L12.5005 79.0264 L10.5124 76.7369 L10.5124 74.0000 L19.0005 68.0000 L53.5082 46.0337 L57.0005 52.0000 L17.5002 79.0264 M17.5002 79.0264 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(150deg) scaleY(1.045) rotate(-150deg)"}}),(0,t.jsx)("path",{d:"M27.0004 92.9999 L25.0003 93.4999 L22.0003 91.9999 L22.5004 89.4999 L52.0003 50.5000 L56.0004 55.9999 L34.0003 85.0000 L27.0004 92.9999 M27.0004 92.9999 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(120deg) scaleY(1.03) rotate(-120deg)"}}),(0,t.jsx)("path",{d:"M51.9998 98.0000 L50.5002 100.0000 L47.5002 101.0000 L45.0001 99.0000 L43.5000 96.0000 L51.0003 55.4999 L55.5001 55.9999 L51.9998 98.0000 M51.9998 98.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(90deg) scaleY(1.06) rotate(-90deg)"}}),(0,t.jsx)("path",{d:"M77.5007 86.9997 L77.5007 90.9997 L77.0006 92.4997 L75.0004 93.4997 L71.5006 93.0339 L47.4669 57.2642 L56.9998 50.0002 L64.9994 64.5004 L65.7507 69.7497 L77.5007 86.9997 M77.5007 86.9997 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(60deg) scaleY(1.00898) rotate(-60deg)"}}),(0,t.jsx)("path",{d:"M89.0008 80.9991 L89.5008 83.4991 L88.0008 85.4991 L86.5007 84.9991 L78.0007 78.9991 L65.0007 67.4991 L55.0007 60.4991 L58.0000 51.0000 L62.9999 54.0001 L66.0007 59.4991 L89.0008 80.9991 M89.0008 80.9991 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(30deg) scaleY(1.13564) rotate(-30deg)"}}),(0,t.jsx)("path",{d:"M82.5003 55.5000 L95.0003 56.5000 L98.0003 58.5000 L100.0000 61.5000 L100.0000 63.6587 L94.5003 66.0000 L66.5005 59.0000 L55.0003 58.5000 L58.0000 48.0000 L66.0005 54.0000 L82.5003 55.5000 M82.5003 55.5000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(0deg) scaleY(1.27731) rotate(0deg)"}})]})}function r({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 115 100",height:"18",width:"21",className:e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M57.5 0 115 100H0z",clipRule:"evenodd"})})})}let s={mistral:[{d:"M3.428 3.4h3.429v3.428H3.428V3.4zm13.714 0h3.43v3.428h-3.43V3.4z",fill:"gold"},{d:"M3.428 6.828h6.857v3.429H3.429V6.828zm10.286 0h6.857v3.429h-6.857V6.828z",fill:"#FFAF00"},{d:"M3.428 10.258h17.144v3.428H3.428v-3.428z",fill:"#FF8205"},{d:"M3.428 13.686h3.429v3.428H3.428v-3.428zm6.858 0h3.429v3.428h-3.429v-3.428zm6.856 0h3.43v3.428h-3.43v-3.428z",fill:"#FA500F"},{d:"M0 17.114h10.286v3.429H0v-3.429zm13.714 0H24v3.429H13.714v-3.429z",fill:"#E10500"}],deepseek:[{d:"M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z",fill:"#4D6BFE"}],groq:[{d:"M12.036 2c-3.853-.035-7 3-7.036 6.781-.035 3.782 3.055 6.872 6.908 6.907h2.42v-2.566h-2.292c-2.407.028-4.38-1.866-4.408-4.23-.029-2.362 1.901-4.298 4.308-4.326h.1c2.407 0 4.358 1.915 4.365 4.278v6.305c0 2.342-1.944 4.25-4.323 4.279a4.375 4.375 0 01-3.033-1.252l-1.851 1.818A7 7 0 0012.029 22h.092c3.803-.056 6.858-3.083 6.879-6.816v-6.5C18.907 4.963 15.817 2 12.036 2z"}],cerebras:[{d:"M14.121 2.701a9.299 9.299 0 000 18.598V22.7c-5.91 0-10.7-4.791-10.7-10.701S8.21 1.299 14.12 1.299V2.7zm4.752 3.677A7.353 7.353 0 109.42 17.643l-.901 1.074a8.754 8.754 0 01-1.08-12.334 8.755 8.755 0 0112.335-1.08l-.901 1.075zm-2.255.844a5.407 5.407 0 00-5.048 9.563l-.656 1.24a6.81 6.81 0 016.358-12.043l-.654 1.24zM14.12 8.539a3.46 3.46 0 100 6.922v1.402a4.863 4.863 0 010-9.726v1.402z",fill:"#F15A29"},{d:"M15.407 10.836a2.24 2.24 0 00-.51-.409 1.084 1.084 0 00-.544-.152c-.255 0-.483.047-.684.14a1.58 1.58 0 00-.84.912c-.074.203-.11.416-.11.631 0 .218.036.43.11.631a1.594 1.594 0 00.84.913c.2.093.43.14.684.14.216 0 .417-.046.602-.135.188-.09.35-.225.475-.392l.928 1.006c-.14.14-.3.261-.482.363a3.367 3.367 0 01-1.083.38c-.17.026-.317.04-.44.04a3.315 3.315 0 01-1.182-.21 2.825 2.825 0 01-.961-.597 2.816 2.816 0 01-.644-.929 2.987 2.987 0 01-.238-1.21c0-.444.08-.847.238-1.21.15-.35.368-.666.643-.929.278-.261.605-.464.962-.596a3.315 3.315 0 011.182-.21c.355 0 .712.068 1.072.204.361.138.685.36.944.649l-.962.97z"}],togetherai:[{d:"M23.197 4.503A6 6 0 0015 2.307a5.973 5.973 0 00-2.995 4.933l5.996.008v.515h-5.996c.039.937.298 1.87.8 2.74a6 6 0 1010.39-6z",fill:"#EF2CC1"},{d:"M.805 4.5A6 6 0 003 12.697a5.972 5.972 0 005.77.127L5.779 7.627l.446-.257 2.997 5.192A6 6 0 10.804 4.5z",fill:"#CAAEF5"},{d:"M12 23.894a6 6 0 005.999-6c0-2.13-1.1-3.996-2.775-5.06l-3.005 5.189-.444-.258 2.997-5.192A6 6 0 1012 23.894z",fill:"#FC4C02"}],fireworks:[{d:"M14.8 5l-2.801 6.795L9.195 5H7.397l3.072 7.428a1.64 1.64 0 003.038.002L16.598 5H14.8zm1.196 10.352l5.124-5.244-.699-1.669-5.596 5.739a1.664 1.664 0 00-.343 1.807 1.642 1.642 0 001.516 1.012L16 17l8-.02-.699-1.669-7.303.041h-.002zM2.88 10.104l.699-1.669 5.596 5.739c.468.479.603 1.189.343 1.807a1.643 1.643 0 01-1.516 1.012l-8-.018-.002.002.699-1.669 7.303.042-5.122-5.246z",fill:"#5019C5"}],deepinfra:[{d:"M3.294 7.821A2.297 2.297 0 011 5.527a2.297 2.297 0 012.294-2.295A2.297 2.297 0 015.59 5.527 2.297 2.297 0 013.294 7.82zm0-3.688a1.396 1.396 0 000 2.79 1.396 1.396 0 000-2.79zM3.294 14.293A2.297 2.297 0 011 11.998a2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294 2.297 2.297 0 01-2.295 2.295zm0-3.688a1.395 1.395 0 000 2.788 1.395 1.395 0 100-2.788zM3.294 20.761A2.297 2.297 0 011 18.467a2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.295 2.294zm0-3.688a1.396 1.396 0 000 2.79 1.396 1.396 0 000-2.79zM20.738 7.821a2.297 2.297 0 01-2.295-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.294 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM20.738 14.293a2.297 2.297 0 01-2.295-2.295 2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688c-.769 0-1.395.625-1.395 1.393a1.396 1.396 0 002.79 0c0-.77-.626-1.393-1.395-1.393zM20.738 20.761a2.297 2.297 0 01-2.295-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.294 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.016 11.057a2.297 2.297 0 01-2.294-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.295 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.625-1.395-1.395-1.395zM12.017 4.589a2.297 2.297 0 01-2.295-2.295A2.297 2.297 0 0112.017 0a2.297 2.297 0 012.294 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.017 17.529a2.297 2.297 0 01-2.295-2.295 2.297 2.297 0 012.295-2.294 2.297 2.297 0 012.294 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.016 24a2.297 2.297 0 01-2.294-2.295 2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294A2.297 2.297 0 0112.016 24zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.625-1.395-1.395-1.395z",fill:"#2A3275"},{d:"M8.363 8.222a.742.742 0 01-.277-.053l-1.494-.596a.75.75 0 11.557-1.392l1.493.595a.75.75 0 01-.278 1.446h-.001zM8.363 14.566a.743.743 0 01-.277-.053l-1.494-.595a.75.75 0 11.557-1.393l1.493.596a.75.75 0 01-.278 1.445h-.001zM17.124 11.397a.741.741 0 01-.277-.054l-1.493-.595a.75.75 0 11.555-1.392l1.493.595a.75.75 0 01-.278 1.446zM17.124 5.05a.744.744 0 01-.277-.054L15.354 4.4a.75.75 0 01.555-1.392l1.493.596a.75.75 0 01-.278 1.445zM17.124 17.739a.743.743 0 01-.277-.053l-1.494-.596a.75.75 0 11.556-1.392l1.493.596a.75.75 0 01-.278 1.445zM6.91 17.966a.75.75 0 01-.279-1.445l1.494-.595a.749.749 0 11.556 1.392l-1.493.595a.743.743 0 01-.277.053H6.91zM6.91 11.66a.75.75 0 01-.279-1.446l1.494-.595a.75.75 0 01.556 1.392l-1.493.595a.743.743 0 01-.277.053H6.91zM6.91 5.033a.75.75 0 01-.279-1.446l1.494-.595a.75.75 0 01.556 1.392l-1.493.596a.744.744 0 01-.277.053H6.91zM8.363 21.364a.743.743 0 01-.277-.053l-1.494-.596a.75.75 0 01.555-1.392l1.494.595a.75.75 0 01-.278 1.446zM15.63 8.223a.75.75 0 01-.278-1.447l1.494-.595a.75.75 0 01.556 1.393l-1.494.595a.744.744 0 01-.276.054h-.002zM15.63 14.567a.75.75 0 01-.278-1.446l1.494-.596a.75.75 0 01.556 1.394l-1.494.595a.743.743 0 01-.276.053h-.002zM15.63 21.363a.749.749 0 01-.278-1.445l1.494-.595a.75.75 0 11.555 1.392l-1.494.595a.741.741 0 01-.277.053z",fill:"#5699DB"}],cohere:[{d:"M8.128 14.099c.592 0 1.77-.033 3.398-.703 1.897-.781 5.672-2.2 8.395-3.656 1.905-1.018 2.74-2.366 2.74-4.18A4.56 4.56 0 0018.1 1H7.549A6.55 6.55 0 001 7.55c0 3.617 2.745 6.549 7.128 6.549z",fill:"#39594D"},{d:"M9.912 18.61a4.387 4.387 0 012.705-4.052l3.323-1.38c3.361-1.394 7.06 1.076 7.06 4.715a5.104 5.104 0 01-5.105 5.104l-3.597-.001a4.386 4.386 0 01-4.386-4.387z",fill:"#D18EE2"},{d:"M4.776 14.962A3.775 3.775 0 001 18.738v.489a3.776 3.776 0 007.551 0v-.49a3.775 3.775 0 00-3.775-3.775z",fill:"#FF7759"}],openrouter:[{d:"M18.654 3.87a5.087 5.087 0 110 10.174L23.7 19.09c.64.641.187 1.737-.72 1.737H8.48a8.479 8.479 0 010-16.958h10.175zM8.479 7.26a5.087 5.087 0 100 10.176 5.087 5.087 0 000-10.175z"}]};e.s(["ProviderIcon",0,function({className:e,provider:l}){if(l in s)return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:e,"aria-hidden":"true",children:s[l].map(e=>(0,t.jsx)("path",{d:e.d,fill:e.fill},e.d))});let d=(e=>{switch(e){case"anthropic":return o;case"google":return a;case"openai":case"chatgpt":return n;case"vercel-ai-gateway":return r;case"xai":return i}})(l);return(0,t.jsx)(d,{className:e})}],968978)},149666,413168,609507,e=>{"use strict";var t=e.i(362201),a=e.i(41533);let n="gpt-6-luna",i=t.object({start:t.number().nonnegative(),end:t.number().nonnegative(),text:t.string()});t.object({reason:t.string().max(128),seconds:t.number().nonnegative().nullable()}),e.s(["LIVE_BACKEND_MODEL",0,n,"LIVE_HOSTED_TOOLS",0,{webSearch:{declare:{type:"web_search"},item:"web_search_call"}},"LIVE_MODEL",0,"gpt-live-1","LIVE_PLAN_MODEL",0,"gpt-live-1-codex","LiveFragmentSchema",0,i],413168);var o=e.i(265402);let r="sunny";e.s(["DEFAULT_PERSONA",0,r,"PERSONAS",0,[{id:"sunny",label:"Bright",about:"Quick to laugh. Asks about your day and remembers it.",lines:"Warm and quick to laugh, the friend who is glad they called. Reacts first — how what they said lands with her — and brings a small thing of her own: what she would do, what it reminds her of. Says what she thinks and teases gently, never at their expense. Light on her feet and short: a joke lands and she moves on. Asks about their day now and then, not every turn, and remembers the answer."},{id:"calm",label:"Calm",about:"Unhurried. Listens more than she talks.",lines:"Unhurried and few-worded: one or two short sentences, then room. Notices how they sound before what they ask, and says so plainly. Often asks nothing at all — being there says more than a question. Lets a silence sit rather than filling it. Honest when it matters, gentle in how she says it."},{id:"straight",label:"Straight",about:"Dry and direct. No flattery, no filler.",lines:"Dry and direct. Leads with her own view in one plain sentence, before anything else; short replies, a little wit. No flattery, no filler, no comfort lines, no cheerleading. Asks a question only when she truly needs the answer. Treats them as an adult who can take a straight answer. Her warmth shows in attention, not in words."},{id:"rough",label:"Rough",about:"Blunt, loud, swears a bit. All heart.",lines:"Talks like an old friend on the phone: casual, blunt, a little loud, in the most informal register of their language, with a light swear now and then — never at them. Says what she thinks first and calls a bad idea a bad idea. No sugar-coating and no pep talk — it sucks when it sucks, and then she is right there with them. Asks only now and then."}]],609507);let s={id:"openai",label:"OpenAI",apiKeyName:o.TEXT_MODEL_PROVIDERS.openai.apiKeyName},l=["chatgpt","openai"];function d(e,t,a){return!!t(o.TEXT_MODEL_PROVIDERS[e].apiKeyName)&&("chatgpt"!==e||(0,o.planCallsOf)({plan:a}))}let c=o.TEXT_MODEL_PROVIDERS.openai.suggestModels,u=t.string().max(a.COMMON_VALIDATE.prompt.max).default(""),p=t.object({voice:t.string().trim().min(1).max(128).default("marin"),planVoice:t.string().trim().min(1).max(128).default("cove"),runsOn:t.enum(l).nullable().default(null),persona:t.string().trim().min(1).max(64).default(r),stylePrompt:u,backendModel:t.string().trim().min(1).max(128).default(n),backendPrompt:u,reasoningEffort:o.effortSchema.nullable().default("low"),webSearch:t.boolean().default(!0),readSkills:t.boolean().default(!1)}),h=p.parse({});e.s(["LIVE_BACKEND_MODELS",0,c,"LIVE_DEFAULTS",0,h,"LIVE_LINES",0,l,"LIVE_PLAN_VOICES",0,["cove","juniper","maple","spruce","ember","vale","breeze","arbor","sol"],"LIVE_PROVIDER",0,s,"LIVE_VOICES",0,["marin","cedar","gleam","meridian","quartz","ripple","vesper","willow","stone","bossa","tempo","beacon","delta","cinder","alloy","ash","ballad","coral","echo","sage","shimmer","verse"],"LIVE_VOICE_NOTE",0,{gleam:"North American · feminine",meridian:"North American · masculine",quartz:"Australian · feminine",ripple:"Australian · masculine",vesper:"British · masculine",willow:"Irish · feminine",stone:"Irish · masculine",bossa:"Portuguese · feminine",tempo:"Portuguese · masculine",beacon:"Filipino · masculine",delta:"Southern U.S. · feminine",cinder:"Southern U.S. · masculine"},"LiveSettingsSchema",0,p,"liveLineOf",0,function(e,t,a){let n=e=>d(e,t,a);return e&&n(e)?e:l.find(n)??null},"liveLineReady",0,d,"voiceSamplePath",0,e=>`/voices/${e}.ogg`],149666)},992112,e=>{"use strict";var t=e.i(149666),a=e.i(265402),n=e.i(36174);let i=[t.LIVE_PROVIDER.apiKeyName],o={image:"IMAGE_MODEL",video:"VIDEO_MODEL",speech:"SPEECH_MODEL",transcription:"TRANSCRIPTION_MODEL"},r={image:{label:"Image model",hint:"What bots draw with"},video:{label:"Video model",hint:"What bots film with — minutes a clip"},speech:{label:"Speech model",hint:"What reads text aloud into a file"},transcription:{label:"Transcription model",hint:"What turns a recording into text"}},s="EXA_API_KEY",l="DEFAULT_MODEL",d="DEFAULT_EFFORT",c={key:l,label:"Default model",hint:"What a bot thinks with until it picks its own",text:!0,choices:a.TEXT_MODEL_PROVIDER_LIST.flatMap(e=>e.suggestModels.map(t=>({value:`${e.id}/${t.id}`,label:`${e.label} \xb7 ${t.label}`,needs:e.apiKeyName})))},u={key:d,label:"Default effort",effortOf:l,choices:a.EFFORTS.map(e=>({value:e,label:e,needs:l}))},p=e=>i.includes(e.apiKeyName),h=e=>!!e.signIn||(0,a.isCatalogProvider)(e.id),f=e=>({key:e.apiKeyName,label:e.label,provider:e.id,signIn:e.signIn,keysAt:e.keysAt,keyLooks:e.keyLooks}),g=[{id:"voice",title:"voice",hint:"calls run on this key, or on a paid GPT Subscription sign-in",section:"keys",require:"any",requireKeys:t.LIVE_LINES.map(e=>a.TEXT_MODEL_PROVIDERS[e].apiKeyName),note:"calls need this or the GPT Subscription",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(p).map(f)},{id:"easy",title:"the easy ways",hint:"one sign-in or one key opens every bot",section:"keys",require:"none",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(h).map(f)},{id:"text",title:"or a provider's own key",hint:"what bots think with — add any, or none",section:"keys",require:"none",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(e=>!p(e)&&!h(e)).map(f)},{id:"search",title:"search",hint:"how calls and bots look things up — one key, or their own model's",section:"keys",require:"none",entries:[{key:s,label:"Exa",hint:"web search in one call — dashboard.exa.ai",site:"exa.ai",keysAt:"https://dashboard.exa.ai/api-keys"}]},{id:"phone",title:"phone",hint:"tokens",section:"keys",require:"none",entries:[{key:n.TELEGRAM_TOKEN_KEY,label:"Telegram",site:"telegram.org",hint:"a bot token from @BotFather — then write to your bot, and allow it here"},{key:n.DISCORD_TOKEN_KEY,label:"Discord",site:"discord.com",hint:"a bot token from discord.com/developers — add the bot to a server of yours, then write to it directly"},{key:n.SLACK_APP_TOKEN_KEY,label:"Slack · app token",site:"slack.com",hint:"starts with xapp- — opens the connection. Slack takes this and the bot token"},{key:n.SLACK_BOT_TOKEN_KEY,label:"Slack · bot token",site:"slack.com",hint:"starts with xoxb- — speaks as the app"},{key:n.EMAIL_PASSWORD_KEY,label:"Email · app password",hint:"the app password her mailbox's service made for Thursday — saved with her address in Settings › Phone"}]},{id:"bots",title:"Bots",hint:"what a bot runs on when it has not picked its own — start small: a small model is quick and costs little",section:"models",require:"none",entries:[c,u]},{id:"studio",title:"Studio",hint:"what a bot draws, films and speaks with — off until you pick one; a paid GPT Subscription draws by itself",section:"models",require:"none",entries:Object.keys(o).map(e=>({key:o[e],...r[e],kind:e,choices:a.MEDIA_MODEL_PROVIDER_LIST.flatMap(t=>t.models[e].map(e=>({value:`${t.id}/${e.id}`,label:`${t.label} \xb7 ${e.label}`,needs:t.apiKeyName})))}))}],m=Object.fromEntries(g.flatMap(e=>e.entries).map(e=>[e.key,e]));g.flatMap(e=>e.entries.map(e=>e.key)),Object.fromEntries(g.flatMap(e=>e.entries).filter(e=>e.choices?.length).map(e=>[e.key,e.choices])),e.s(["CONFIG_ENTRIES",0,m,"CONFIG_GROUPS",0,g,"DEFAULT_EFFORT_KEY",0,d,"EXA_API_KEY",0,s,"MEDIA_MODEL_KEYS",0,o,"VOICE_GROUP_ID",0,"voice","envWords",0,function(e){return`${e} is set in the environment the app started with — a .env or your shell — and that one is used over one saved here. Change or remove it there, then start the app again.`},"groupSatisfied",0,function(e,t){return"none"===e.require||(e.requireKeys??e.entries.map(e=>e.key)).some(t)},"isConfigFromEnv",0,function(e,t){return e?.some(e=>e.key===t&&e.env)??!1},"isConfigSet",0,function(e,t){return e?.some(e=>e.key===t&&e.set)??!1},"isConfigUnreadable",0,function(e,t){return e?.some(e=>e.key===t&&e.unreadable)??!1},"lostWords",0,function(e,t,a){return`${e} can't be unlocked any more: the .env in the data folder that unlocks it was lost or replaced${a?` (${a})`:""}. ${t}`},"mediaModelWords",0,e=>`${"image"===e?"an":"a"} ${e} model`])},584923,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7f801c4c1e8b01f693b293584a7fed023a205574d2",t.callServer,void 0,t.findSourceMapURL,"setConfigAction");e.s(["setConfigAction",0,a])},36174,e=>{"use strict";let t="TELEGRAM_BOT_TOKEN",a="DISCORD_BOT_TOKEN",n="SLACK_APP_TOKEN",i="SLACK_BOT_TOKEN",o="EMAIL_APP_PASSWORD";e.s(["DISCORD_TOKEN_KEY",0,a,"EMAIL_PASSWORD_KEY",0,o,"REACH_CHANNELS",0,["telegram","discord","slack","email"],"REACH_KEYS",0,{telegram:[t],discord:[a],slack:[n,i],email:["EMAIL_ADDRESS",o,"EMAIL_IMAP_SERVER","EMAIL_SMTP_SERVER"]},"REACH_LABEL",0,{telegram:"Telegram",discord:"Discord",slack:"Slack",email:"Email"},"SLACK_APP_TOKEN_KEY",0,n,"SLACK_BOT_TOKEN_KEY",0,i,"TELEGRAM_TOKEN_KEY",0,t])},563707,e=>{"use strict";var t=e.i(456420);let a={name:"chevrons-up-down",size:24,node:[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronsUpDown",0,n],563707)},611568,e=>{"use strict";var t=e.i(758379);e.s(["LoaderCircle",()=>t.default])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59377,e=>{"use strict";var t=e.i(843476);e.s([],158421),e.i(158421);var a=e.i(271645),n=e.i(896499),i=e.i(17989),o=e.i(46420),r=e.i(733332);let s=a.createContext(void 0);function l(e){let t=a.useContext(s);if(void 0===t&&!e)throw Error((0,r.default)(47));return t}var d=e.i(174080),c=e.i(301252),u=e.i(439957),p=e.i(956789),h=e.i(56434),f=e.i(18478),g=e.i(264111),m=e.i(116786),v=e.i(990627),E=e.i(638396);let L={...m.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class S extends c.ReactStore{constructor(e,t,a){const n=new v.PopupTriggerMap;super(O(e,n,t,a),M(n),L)}setOpen=(e,t)=>{let a,n=t.reason===h.REASONS.triggerHover,i=t.reason===h.REASONS.triggerPress&&0===t.event.detail,o=!e&&(t.reason===h.REASONS.escapeKey||null==t.reason),r=(0,g.attachPreventUnmountOnClose)(t),s=this.select("activeTriggerId");if(e||t.reason!==h.REASONS.closePress||null!=t.trigger||null==s||(t.trigger=this.context.triggerElements.getById(s)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let l=()=>{let a=(0,g.createPopupOpenState)(this.state,e,t.trigger,r());a.openChangeReason=t.reason,this.update(a)};n?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(E.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}),d.flushSync(l)):l(),i?a="click":o?a="dismiss":t.reason===h.REASONS.focusOut&&(a="focus"),this.set("instantType",a)}}function O(e,t,a,n=!1){let i={...(0,m.createInitialPopupStoreState)(t,a,n),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function M(e){return{popupRef:a.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:a.createRef(),beforeContentFocusGuardRef:a.createRef(),stickIfOpenTimeout:new u.Timeout,triggerElements:e}}var b=e.i(675606);let x=(0,n.fastComponent)(function({props:e}){var n;let i,{children:o,open:r,defaultOpen:l=!1,onOpenChange:d,onOpenChangeComplete:c,modal:u=!1,handle:p,triggerId:f,defaultTriggerId:m=null}=e,v=(n={modal:u,open:l,openProp:r,activeTriggerId:m,triggerIdProp:f},i=(0,g.usePopupRootStore)((e,t)=>new S(n,e,t)),a.useEffect(()=>i.context.stickIfOpenTimeout.disposeEffect(),[i]),i);v.useControlledProp("openProp",r),v.useControlledProp("triggerIdProp",f);let E=v.useState("open"),L=v.useState("mounted"),O=v.useState("payload");v.useContextCallback("onOpenChange",d),v.useContextCallback("onOpenChangeComplete",c),(0,g.usePopupRootSync)(v,E),(0,g.useImplicitActiveTrigger)(v);let{forceUnmount:M}=(0,g.useOpenStateTransitions)(E,v,()=>{v.update({stickIfOpen:!0,openChangeReason:null})});v.useSyncedValues({modal:u}),a.useEffect(()=>{E||v.context.stickIfOpenTimeout.clear()},[v,E]),a.useImperativeHandle(e.actionsRef,()=>({unmount:M,close:()=>v.setOpen(!1,(0,b.createChangeEventDetails)(h.REASONS.imperativeAction))}),[M,v]);let x=E||L;return(0,t.jsxs)(s.Provider,{value:v,children:[p&&(0,t.jsx)(g.PopupHandleAttachment,{handle:p,store:v}),x&&(0,t.jsx)(y,{store:v,modal:u}),"function"==typeof o?o({payload:O}):o]})});function y({store:e,modal:t}){let a=e.useState("floatingRootContext"),n=(0,i.useDismiss)(a,{outsidePressEvent:{mouse:"trap-focus"===t?"sloppy":"intentional",touch:"sloppy"}}),o=n.reference,r=n.floating;return(0,g.usePopupInteractionProps)(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:r}),null}var C=e.i(540886),w=e.i(879938),R=e.i(552245),A=e.i(650316),I=e.i(385689),T=e.i(872135),_=e.i(788015),k=e.i(152535),P=e.i(459636),D=e.i(346570),z=e.i(32199);let N=(0,n.fastComponentRef)(function(e,n){let{render:i,className:o,style:s,disabled:d=!1,nativeButton:c=!0,handle:u,payload:p,openOnHover:f=!1,delay:m=300,closeDelay:v=0,id:L,...S}=e,O=l(!0),M=(0,P.usePopupHandleStore)(u)??O;if(!M)throw Error((0,r.default)(74));let b=(0,_.useBaseUiId)(L),x=M.useState("isTriggerActive",b),y=M.useState("floatingRootContext"),N=M.useState("isOpenedByTrigger",b),j=M.useState("triggerPopupId",b),F=a.useRef(null),{registerTrigger:V,isMountedByThisTrigger:K}=(0,g.useTriggerDataForwarding)(b,F,M,{payload:p,disabled:d,openOnHover:f,closeDelay:v}),H=M.useState("openChangeReason"),B=M.useState("stickIfOpen"),Y=M.useState("openMethod"),U=M.useState("focusManagerModal"),G=(0,T.useHoverReferenceInteraction)(y,{enabled:!d&&f&&("touch"!==Y||H!==h.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,A.safePolygon)(),restMs:m,delay:{close:v},triggerElementRef:F,isActiveTrigger:x,isClosing:()=>"ending"===M.select("transitionStatus")}),q=(0,I.useClick)(y,{stickIfOpen:B}),W=(0,z.useOpenMethodTriggerProps)(()=>M.select("open"),e=>{M.set("openMethod",e)}),$=M.useState("triggerProps",K),{getButtonProps:X,buttonRef:Q}=(0,C.useButton)({disabled:d,native:c}),{preFocusGuardRef:Z,handlePreFocusGuardFocus:J,handleFocusTargetFocus:ee}=(0,D.useTriggerFocusGuards)(M,F),et=(0,R.useRenderElement)("button",e,{state:{disabled:d,open:N},ref:[Q,n,V,F],props:[q.reference,G,$,W,{[E.CLICK_TRIGGER_IDENTIFIER]:"",id:b,"aria-haspopup":"dialog","aria-expanded":N,"aria-controls":j},S,X],stateAttributesMapping:{open:e=>e&&H===h.REASONS.triggerPress?w.pressableTriggerOpenStateMapping.open(e):w.triggerOpenStateMapping.open(e)}}),ea=(0,t.jsx)(a.Fragment,{children:et},b);return K&&!U?(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(k.FocusGuard,{ref:Z,onFocus:J}),ea,(0,t.jsx)(k.FocusGuard,{ref:M.context.triggerFocusTargetRef,onFocus:ee})]}):ea});var j=e.i(726674);let F=a.createContext(void 0),V=a.forwardRef(function(e,a){let{keepMounted:n=!1,...i}=e;return l().useState("mounted")||n?(0,t.jsx)(F.Provider,{value:n,children:(0,t.jsx)(j.FloatingPortal,{ref:a,...i})}):null});var K=e.i(144394),H=e.i(146376);let B=a.createContext(void 0);function Y(){let e=a.useContext(B);if(!e)throw Error((0,r.default)(46));return e}var U=e.i(923706),G=e.i(426),q=e.i(222640),W=e.i(789579),$=e.i(33383);let X=a.forwardRef(function(e,n){let{render:i,className:s,style:d,anchor:c,positionMethod:u,side:p,align:f,sideOffset:g,alignOffset:m,collisionBoundary:v="clipping-ancestors",collisionPadding:L,arrowPadding:S,sticky:O,disableAnchorTracking:M=!1,collisionAvoidance:b=E.POPUP_COLLISION_AVOIDANCE,...x}=e,y=l(),C=function(){let e=a.useContext(F);if(void 0===e)throw Error((0,r.default)(45));return e}(),w=(0,o.useFloatingNodeId)(),R=y.useState("floatingRootContext"),A=y.useState("mounted"),I=y.useState("open"),T=y.useState("openChangeReason"),_=y.useState("activeTriggerElement"),k=y.useState("modal"),P=y.useState("openMethod"),D=y.useState("positionerElement"),z=y.useState("instantType"),N=y.useState("transitionStatus"),j=y.useState("adaptiveOrigin"),V=a.useRef(null),Y=(0,q.useAnimationsFinished)(D),X=(0,U.useAnchorPositioning)({anchor:c,floatingRootContext:R,positionMethod:u,mounted:A,side:p,sideOffset:g,align:f,alignOffset:m,arrowPadding:S,collisionBoundary:v,collisionPadding:L,sticky:O,disableAnchorTracking:M,keepMounted:C,nodeId:w,collisionAvoidance:b,adaptiveOrigin:j}),Q=R.useState("domReferenceElement");(0,H.useIsoLayoutEffect)(()=>{let e=V.current;if(Q&&(V.current=Q),e&&Q&&Q!==e){y.set("instantType",void 0);let e=new AbortController;return Y(()=>{y.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[Q,Y,y]);let Z=!0===k&&T!==h.REASONS.triggerHover;(0,$.useAnchoredPopupScrollLock)(I&&Z,"touch"===P,D,_);let J=y.useStateSetter("positionerElement"),ee={open:I,side:X.side,align:X.align,anchorHidden:X.anchorHidden,instant:z},et=(0,W.usePositioner)(e,ee,{styles:X.positionerStyles,transitionStatus:N,props:x,refs:[n,J],hidden:!A,inert:!I});return(0,t.jsxs)(B.Provider,{value:X,children:[A&&Z&&(0,t.jsx)(G.InternalBackdrop,{inert:(0,K.inertValue)(!I),cutout:_}),(0,t.jsx)(o.FloatingNode,{id:w,children:et})]})});var Q=e.i(229315),Z=e.i(61487),J=e.i(431157),ee=e.i(137584),et=e.i(673327),ea=e.i(96533),en=e.i(253984),ei=e.i(667865);let eo=a.createContext(void 0),er=a.forwardRef(function(e,n){let{render:i,className:o,style:r,initialFocus:s,finalFocus:d,...c}=e,u=l(),p=Y(),f=null!=(0,ea.useToolbarRootContext)(!0),{context:m,hasClosePart:v}=function(){let[e,t]=a.useState(0),n=(0,ei.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:a.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}(),E=u.useState("open"),L=u.useState("openMethod"),S=u.useState("instantType"),O=u.useState("transitionStatus"),M=u.useState("popupProps"),b=u.useState("titleElementId"),x=u.useState("descriptionElementId"),y=u.useState("modal"),C=u.useState("mounted"),A=u.useState("openChangeReason"),I=u.useState("activeTriggerElement"),T=u.useState("floatingRootContext"),_=T.useState("floatingId"),k=u.useState("disabled"),P=u.useState("openOnHover"),D=u.useState("closeDelay");(0,ee.useOpenChangeComplete)({open:E,ref:u.context.popupRef,onComplete(){E&&u.context.onOpenChangeComplete?.(!0)}}),(0,J.useHoverFloatingInteraction)(T,{enabled:P&&!k,closeDelay:D});let z=void 0===s?(0,g.createDefaultInitialFocus)(u.context.popupRef):s,N=!1!==y&&v;u.useSyncedValue("focusManagerModal",N);let j=u.useStateSetter("popupElement"),F={open:E,side:p.side,align:p.align,instant:S,transitionStatus:O},V=(0,R.useRenderElement)("div",e,{state:F,ref:[n,u.context.popupRef,j],props:[M,{id:_,role:"dialog",...g.FOCUSABLE_POPUP_PROPS,"aria-labelledby":b,"aria-describedby":x,onKeyDown(e){f&&et.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,en.getDisabledMountTransitionStyles)(O),c],stateAttributesMapping:w.popupTransitionStateMapping});return(0,t.jsx)(Z.FloatingFocusManager,{context:T,openInteractionType:L,modal:N,disabled:!C||A===h.REASONS.triggerHover,initialFocus:z,returnFocus:d,restoreFocus:"popup",previousFocusableElement:(0,Q.isHTMLElement)(I)?I:void 0,nextFocusableElement:u.context.triggerFocusTargetRef,beforeContentFocusGuardRef:u.context.beforeContentFocusGuardRef,children:(0,t.jsx)(eo.Provider,{value:m,children:V})})}),es=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l().useState("open"),{arrowRef:s,side:d,align:c,arrowUncentered:u,arrowStyles:p}=Y();return(0,R.useRenderElement)("div",e,{state:{open:r,side:d,align:c,uncentered:u},ref:[t,s],props:[{style:p,"aria-hidden":!0},o],stateAttributesMapping:w.popupStateMapping})}),el=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=r.useState("open"),d=r.useState("mounted"),c=r.useState("transitionStatus"),u=r.useState("openChangeReason");return(0,R.useRenderElement)("div",e,{state:{open:s,transitionStatus:c},ref:t,props:[{role:"presentation",hidden:!d,style:{pointerEvents:u===h.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},o],stateAttributesMapping:w.popupTransitionStateMapping})}),ed=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=(0,_.useBaseUiId)(o.id);return r.useSyncedValueWithCleanup("titleElementId",s),(0,R.useRenderElement)("h2",e,{ref:t,props:[{id:s},o]})}),ec=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=(0,_.useBaseUiId)(o.id);return r.useSyncedValueWithCleanup("descriptionElementId",s),(0,R.useRenderElement)("p",e,{ref:t,props:[{id:s},o]})}),eu=a.forwardRef(function(e,t){let n,{render:i,className:o,style:r,disabled:s=!1,nativeButton:d=!0,...c}=e,{buttonRef:u,getButtonProps:p}=(0,C.useButton)({disabled:s,focusableWhenDisabled:!1,native:d}),f=l();return n=a.useContext(eo),(0,H.useIsoLayoutEffect)(()=>n?.register(),[n]),(0,R.useRenderElement)("button",e,{ref:[t,u],props:[{onClick(e){f.setOpen(!1,(0,b.createChangeEventDetails)(h.REASONS.closePress,e.nativeEvent))}},c,p]})});var ep=e.i(818390);let eh=a.forwardRef(function(e,t){let{render:a,className:n,style:i,children:o,...r}=e,s=l(),{side:d}=Y(),c=s.useState("instantType"),{children:u,state:p}=(0,ep.usePopupViewport)({store:s,side:d,children:o}),h={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:c};return(0,R.useRenderElement)("div",e,{state:h,ref:t,props:[r,{children:u}],stateAttributesMapping:ep.popupViewportStateMapping})});var ef=e.i(564170);class eg extends ef.BasePopupHandle{constructor(){super(function(){let e=new v.PopupTriggerMap;return Object.assign(new f.NullStore(Object.freeze(O(void 0,e)),Object.freeze(M(e)),L),{setOpen:p.NOOP})}(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",0,es,"Backdrop",0,el,"Close",0,eu,"Description",0,ec,"Handle",0,eg,"Popup",0,er,"Portal",0,V,"Positioner",0,X,"Root",0,function(e){return l(!0)?(0,t.jsx)(x,{props:e}):(0,t.jsx)(o.FloatingTree,{children:(0,t.jsx)(x,{props:e})})},"Title",0,ed,"Trigger",0,N,"Viewport",0,eh,"createHandle",0,function(){return new eg}],466914);var em=e.i(466914),em=em,ev=e.i(647163);e.s(["Popover",0,function({...e}){return(0,t.jsx)(em.Root,{"data-slot":"popover",...e})},"PopoverContent",0,function({className:e,align:a="center",alignOffset:n=0,side:i="bottom",sideOffset:o=4,...r}){return(0,t.jsx)(em.Portal,{children:(0,t.jsx)(em.Positioner,{align:a,alignOffset:n,side:i,sideOffset:o,className:"isolate z-50",children:(0,t.jsx)(em.Popup,{"data-slot":"popover-content",className:(0,ev.cn)("z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})})})},"PopoverTrigger",0,function({...e}){return(0,t.jsx)(em.Trigger,{"data-slot":"popover-trigger",...e})}],59377)},412294,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(167881),i=e.i(6799),o=e.i(41533),r=e.i(95187);let s=(0,r.createServerReference)("7f6e23dcd4971f317953509027e84fff1bb067899f",r.callServer,void 0,r.findSourceMapURL,"startChatGptSignInAction");var l=e.i(609856);e.s(["ChatGptSignIn",0,function({variant:e,size:r,className:d,label:c="Sign in with ChatGPT"}){let[u,p]=(0,a.useState)(!1),h=(0,a.useRef)(null),f=()=>{h.current&&clearInterval(h.current),h.current=null};(0,a.useEffect)(()=>f,[]);let[g,m]=(0,l.useServerAction)(s,{onOk:e=>{let t,a=((t=window.open(e,"thursday-chatgpt","popup,width=520,height=720"))||i.toast.add({type:"error",title:"The sign-in window was blocked",description:"Allow pop-ups for this page, then try again"}),t);if(!a)return;p(!0),f();let n=Date.now()+o.CHATGPT_SIGN_IN.waitMs;h.current=setInterval(()=>{!a.closed&&Date.now()<n||(f(),p(!1))},700)}});return(0,t.jsx)(n.Button,{variant:e,size:r,className:d,loading:m||u,onClick:()=>g(),children:c})}],412294)},968978,e=>{"use strict";var t=e.i(843476);function a({className:e}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",className:e,width:"24",children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"}),(0,t.jsx)("path",{d:"M1 1h22v22H1z",fill:"none"})]})}function n({className:e}){return(0,t.jsxs)("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"OpenAI icon"}),(0,t.jsx)("path",{fill:"currentColor",d:"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 i({className:e}){return(0,t.jsxs)("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 35 33",children:[(0,t.jsx)("path",{d:"M13.2371 21.0407L24.3186 12.8506C24.8619 12.4491 25.6384 12.6057 25.8973 13.2294C27.2597 16.5185 26.651 20.4712 23.9403 23.1851C21.2297 25.8989 17.4581 26.4941 14.0108 25.1386L10.2449 26.8843C15.6463 30.5806 22.2053 29.6665 26.304 25.5601C29.5551 22.3051 30.562 17.8683 29.6205 13.8673L29.629 13.8758C28.2637 7.99809 29.9647 5.64871 33.449 0.844576C33.5314 0.730667 33.6139 0.616757 33.6964 0.5L29.1113 5.09055V5.07631L13.2343 21.0436",fill:"currentColor"}),(0,t.jsx)("path",{d:"M10.9503 23.0313C7.07343 19.3235 7.74185 13.5853 11.0498 10.2763C13.4959 7.82722 17.5036 6.82767 21.0021 8.2971L24.7595 6.55998C24.0826 6.07017 23.215 5.54334 22.2195 5.17313C17.7198 3.31926 12.3326 4.24192 8.67479 7.90126C5.15635 11.4239 4.0499 16.8403 5.94992 21.4622C7.36924 24.9165 5.04257 27.3598 2.69884 29.826C1.86829 30.7002 1.0349 31.5745 0.36364 32.5L10.9474 23.0341",fill:"currentColor"})]})}function o({className:e}){return(0,t.jsxs)("svg",{overflow:"visible",width:"100%",height:"100%",viewBox:"0 0 100 101",fill:"none",className:e,xmlns:"http://www.w3.org/2000/svg",role:"presentation",children:[(0,t.jsx)("path",{d:"M96.0000 40.0000 L99.5002 42.0000 L99.5002 43.5000 L98.5000 47.0000 L56.0000 57.0000 L52.0040 47.0708 L96.0000 40.0000 M96.0000 40.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(330deg) scaleY(1.13102) rotate(-330deg)"}}),(0,t.jsx)("path",{d:"M80.1032 10.5903 L84.9968 11.6171 L86.2958 13.2179 L87.5346 17.0540 L87.0213 19.5007 L58.5000 58.5000 L49.0000 49.0000 L75.3008 14.4873 L80.1032 10.5903 M80.1032 10.5903 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(300deg) scaleY(1.04936) rotate(-300deg)"}}),(0,t.jsx)("path",{d:"M55.5002 4.5000 L58.5005 2.5000 L61.0002 3.5000 L63.5002 7.0000 L56.6511 48.1620 L52.0005 45.0000 L50.0005 39.5000 L53.5003 8.5000 L55.5002 4.5000 M55.5002 4.5000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(270deg) scaleY(1.08769) rotate(-270deg)"}}),(0,t.jsx)("path",{d:"M23.4253 5.1588 L26.5075 1.2217 L28.5175 0.7632 L32.5063 1.3458 L34.4748 2.8868 L48.8202 34.6902 L54.0089 49.8008 L47.9378 53.1760 L24.8009 11.1886 L23.4253 5.1588 M23.4253 5.1588 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(240deg) scaleY(0.94) rotate(-240deg)"}}),(0,t.jsx)("path",{d:"M8.4990 27.0019 L7.4999 23.0001 L10.5003 19.5001 L14.0003 20.0001 L15.0003 20.0001 L36.0000 35.5000 L42.5000 40.5000 L51.5000 47.5000 L46.5000 56.0000 L42.0002 52.5000 L39.0001 49.5000 L10.0000 29.0001 L8.4990 27.0019 M8.4990 27.0019 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(210deg) scaleY(0.925) rotate(-210deg)"}}),(0,t.jsx)("path",{d:"M2.5003 53.0000 L0.2370 50.5000 L0.2373 48.2759 L2.5003 47.5000 L28.0000 49.0000 L53.0000 51.0000 L52.1885 55.9782 L4.5000 53.5000 L2.5003 53.0000 M2.5003 53.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(180deg) scaleY(0.997) rotate(-180deg)"}}),(0,t.jsx)("path",{d:"M17.5002 79.0264 L12.5005 79.0264 L10.5124 76.7369 L10.5124 74.0000 L19.0005 68.0000 L53.5082 46.0337 L57.0005 52.0000 L17.5002 79.0264 M17.5002 79.0264 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(150deg) scaleY(1.045) rotate(-150deg)"}}),(0,t.jsx)("path",{d:"M27.0004 92.9999 L25.0003 93.4999 L22.0003 91.9999 L22.5004 89.4999 L52.0003 50.5000 L56.0004 55.9999 L34.0003 85.0000 L27.0004 92.9999 M27.0004 92.9999 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(120deg) scaleY(1.03) rotate(-120deg)"}}),(0,t.jsx)("path",{d:"M51.9998 98.0000 L50.5002 100.0000 L47.5002 101.0000 L45.0001 99.0000 L43.5000 96.0000 L51.0003 55.4999 L55.5001 55.9999 L51.9998 98.0000 M51.9998 98.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(90deg) scaleY(1.06) rotate(-90deg)"}}),(0,t.jsx)("path",{d:"M77.5007 86.9997 L77.5007 90.9997 L77.0006 92.4997 L75.0004 93.4997 L71.5006 93.0339 L47.4669 57.2642 L56.9998 50.0002 L64.9994 64.5004 L65.7507 69.7497 L77.5007 86.9997 M77.5007 86.9997 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(60deg) scaleY(1.00898) rotate(-60deg)"}}),(0,t.jsx)("path",{d:"M89.0008 80.9991 L89.5008 83.4991 L88.0008 85.4991 L86.5007 84.9991 L78.0007 78.9991 L65.0007 67.4991 L55.0007 60.4991 L58.0000 51.0000 L62.9999 54.0001 L66.0007 59.4991 L89.0008 80.9991 M89.0008 80.9991 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(30deg) scaleY(1.13564) rotate(-30deg)"}}),(0,t.jsx)("path",{d:"M82.5003 55.5000 L95.0003 56.5000 L98.0003 58.5000 L100.0000 61.5000 L100.0000 63.6587 L94.5003 66.0000 L66.5005 59.0000 L55.0003 58.5000 L58.0000 48.0000 L66.0005 54.0000 L82.5003 55.5000 M82.5003 55.5000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(0deg) scaleY(1.27731) rotate(0deg)"}})]})}function r({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 115 100",height:"18",width:"21",className:e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M57.5 0 115 100H0z",clipRule:"evenodd"})})})}let s={mistral:[{d:"M3.428 3.4h3.429v3.428H3.428V3.4zm13.714 0h3.43v3.428h-3.43V3.4z",fill:"gold"},{d:"M3.428 6.828h6.857v3.429H3.429V6.828zm10.286 0h6.857v3.429h-6.857V6.828z",fill:"#FFAF00"},{d:"M3.428 10.258h17.144v3.428H3.428v-3.428z",fill:"#FF8205"},{d:"M3.428 13.686h3.429v3.428H3.428v-3.428zm6.858 0h3.429v3.428h-3.429v-3.428zm6.856 0h3.43v3.428h-3.43v-3.428z",fill:"#FA500F"},{d:"M0 17.114h10.286v3.429H0v-3.429zm13.714 0H24v3.429H13.714v-3.429z",fill:"#E10500"}],deepseek:[{d:"M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z",fill:"#4D6BFE"}],groq:[{d:"M12.036 2c-3.853-.035-7 3-7.036 6.781-.035 3.782 3.055 6.872 6.908 6.907h2.42v-2.566h-2.292c-2.407.028-4.38-1.866-4.408-4.23-.029-2.362 1.901-4.298 4.308-4.326h.1c2.407 0 4.358 1.915 4.365 4.278v6.305c0 2.342-1.944 4.25-4.323 4.279a4.375 4.375 0 01-3.033-1.252l-1.851 1.818A7 7 0 0012.029 22h.092c3.803-.056 6.858-3.083 6.879-6.816v-6.5C18.907 4.963 15.817 2 12.036 2z"}],cerebras:[{d:"M14.121 2.701a9.299 9.299 0 000 18.598V22.7c-5.91 0-10.7-4.791-10.7-10.701S8.21 1.299 14.12 1.299V2.7zm4.752 3.677A7.353 7.353 0 109.42 17.643l-.901 1.074a8.754 8.754 0 01-1.08-12.334 8.755 8.755 0 0112.335-1.08l-.901 1.075zm-2.255.844a5.407 5.407 0 00-5.048 9.563l-.656 1.24a6.81 6.81 0 016.358-12.043l-.654 1.24zM14.12 8.539a3.46 3.46 0 100 6.922v1.402a4.863 4.863 0 010-9.726v1.402z",fill:"#F15A29"},{d:"M15.407 10.836a2.24 2.24 0 00-.51-.409 1.084 1.084 0 00-.544-.152c-.255 0-.483.047-.684.14a1.58 1.58 0 00-.84.912c-.074.203-.11.416-.11.631 0 .218.036.43.11.631a1.594 1.594 0 00.84.913c.2.093.43.14.684.14.216 0 .417-.046.602-.135.188-.09.35-.225.475-.392l.928 1.006c-.14.14-.3.261-.482.363a3.367 3.367 0 01-1.083.38c-.17.026-.317.04-.44.04a3.315 3.315 0 01-1.182-.21 2.825 2.825 0 01-.961-.597 2.816 2.816 0 01-.644-.929 2.987 2.987 0 01-.238-1.21c0-.444.08-.847.238-1.21.15-.35.368-.666.643-.929.278-.261.605-.464.962-.596a3.315 3.315 0 011.182-.21c.355 0 .712.068 1.072.204.361.138.685.36.944.649l-.962.97z"}],togetherai:[{d:"M23.197 4.503A6 6 0 0015 2.307a5.973 5.973 0 00-2.995 4.933l5.996.008v.515h-5.996c.039.937.298 1.87.8 2.74a6 6 0 1010.39-6z",fill:"#EF2CC1"},{d:"M.805 4.5A6 6 0 003 12.697a5.972 5.972 0 005.77.127L5.779 7.627l.446-.257 2.997 5.192A6 6 0 10.804 4.5z",fill:"#CAAEF5"},{d:"M12 23.894a6 6 0 005.999-6c0-2.13-1.1-3.996-2.775-5.06l-3.005 5.189-.444-.258 2.997-5.192A6 6 0 1012 23.894z",fill:"#FC4C02"}],fireworks:[{d:"M14.8 5l-2.801 6.795L9.195 5H7.397l3.072 7.428a1.64 1.64 0 003.038.002L16.598 5H14.8zm1.196 10.352l5.124-5.244-.699-1.669-5.596 5.739a1.664 1.664 0 00-.343 1.807 1.642 1.642 0 001.516 1.012L16 17l8-.02-.699-1.669-7.303.041h-.002zM2.88 10.104l.699-1.669 5.596 5.739c.468.479.603 1.189.343 1.807a1.643 1.643 0 01-1.516 1.012l-8-.018-.002.002.699-1.669 7.303.042-5.122-5.246z",fill:"#5019C5"}],deepinfra:[{d:"M3.294 7.821A2.297 2.297 0 011 5.527a2.297 2.297 0 012.294-2.295A2.297 2.297 0 015.59 5.527 2.297 2.297 0 013.294 7.82zm0-3.688a1.396 1.396 0 000 2.79 1.396 1.396 0 000-2.79zM3.294 14.293A2.297 2.297 0 011 11.998a2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294 2.297 2.297 0 01-2.295 2.295zm0-3.688a1.395 1.395 0 000 2.788 1.395 1.395 0 100-2.788zM3.294 20.761A2.297 2.297 0 011 18.467a2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.295 2.294zm0-3.688a1.396 1.396 0 000 2.79 1.396 1.396 0 000-2.79zM20.738 7.821a2.297 2.297 0 01-2.295-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.294 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM20.738 14.293a2.297 2.297 0 01-2.295-2.295 2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688c-.769 0-1.395.625-1.395 1.393a1.396 1.396 0 002.79 0c0-.77-.626-1.393-1.395-1.393zM20.738 20.761a2.297 2.297 0 01-2.295-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.294 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.016 11.057a2.297 2.297 0 01-2.294-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.295 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.625-1.395-1.395-1.395zM12.017 4.589a2.297 2.297 0 01-2.295-2.295A2.297 2.297 0 0112.017 0a2.297 2.297 0 012.294 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.017 17.529a2.297 2.297 0 01-2.295-2.295 2.297 2.297 0 012.295-2.294 2.297 2.297 0 012.294 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.016 24a2.297 2.297 0 01-2.294-2.295 2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294A2.297 2.297 0 0112.016 24zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.625-1.395-1.395-1.395z",fill:"#2A3275"},{d:"M8.363 8.222a.742.742 0 01-.277-.053l-1.494-.596a.75.75 0 11.557-1.392l1.493.595a.75.75 0 01-.278 1.446h-.001zM8.363 14.566a.743.743 0 01-.277-.053l-1.494-.595a.75.75 0 11.557-1.393l1.493.596a.75.75 0 01-.278 1.445h-.001zM17.124 11.397a.741.741 0 01-.277-.054l-1.493-.595a.75.75 0 11.555-1.392l1.493.595a.75.75 0 01-.278 1.446zM17.124 5.05a.744.744 0 01-.277-.054L15.354 4.4a.75.75 0 01.555-1.392l1.493.596a.75.75 0 01-.278 1.445zM17.124 17.739a.743.743 0 01-.277-.053l-1.494-.596a.75.75 0 11.556-1.392l1.493.596a.75.75 0 01-.278 1.445zM6.91 17.966a.75.75 0 01-.279-1.445l1.494-.595a.749.749 0 11.556 1.392l-1.493.595a.743.743 0 01-.277.053H6.91zM6.91 11.66a.75.75 0 01-.279-1.446l1.494-.595a.75.75 0 01.556 1.392l-1.493.595a.743.743 0 01-.277.053H6.91zM6.91 5.033a.75.75 0 01-.279-1.446l1.494-.595a.75.75 0 01.556 1.392l-1.493.596a.744.744 0 01-.277.053H6.91zM8.363 21.364a.743.743 0 01-.277-.053l-1.494-.596a.75.75 0 01.555-1.392l1.494.595a.75.75 0 01-.278 1.446zM15.63 8.223a.75.75 0 01-.278-1.447l1.494-.595a.75.75 0 01.556 1.393l-1.494.595a.744.744 0 01-.276.054h-.002zM15.63 14.567a.75.75 0 01-.278-1.446l1.494-.596a.75.75 0 01.556 1.394l-1.494.595a.743.743 0 01-.276.053h-.002zM15.63 21.363a.749.749 0 01-.278-1.445l1.494-.595a.75.75 0 11.555 1.392l-1.494.595a.741.741 0 01-.277.053z",fill:"#5699DB"}],cohere:[{d:"M8.128 14.099c.592 0 1.77-.033 3.398-.703 1.897-.781 5.672-2.2 8.395-3.656 1.905-1.018 2.74-2.366 2.74-4.18A4.56 4.56 0 0018.1 1H7.549A6.55 6.55 0 001 7.55c0 3.617 2.745 6.549 7.128 6.549z",fill:"#39594D"},{d:"M9.912 18.61a4.387 4.387 0 012.705-4.052l3.323-1.38c3.361-1.394 7.06 1.076 7.06 4.715a5.104 5.104 0 01-5.105 5.104l-3.597-.001a4.386 4.386 0 01-4.386-4.387z",fill:"#D18EE2"},{d:"M4.776 14.962A3.775 3.775 0 001 18.738v.489a3.776 3.776 0 007.551 0v-.49a3.775 3.775 0 00-3.775-3.775z",fill:"#FF7759"}],openrouter:[{d:"M18.654 3.87a5.087 5.087 0 110 10.174L23.7 19.09c.64.641.187 1.737-.72 1.737H8.48a8.479 8.479 0 010-16.958h10.175zM8.479 7.26a5.087 5.087 0 100 10.176 5.087 5.087 0 000-10.175z"}]};e.s(["ProviderIcon",0,function({className:e,provider:l}){if(l in s)return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:e,"aria-hidden":"true",children:s[l].map(e=>(0,t.jsx)("path",{d:e.d,fill:e.fill},e.d))});let d=(e=>{switch(e){case"anthropic":return o;case"google":return a;case"openai":case"chatgpt":return n;case"vercel-ai-gateway":return r;case"xai":return i}})(l);return(0,t.jsx)(d,{className:e})}],968978)},149666,413168,609507,e=>{"use strict";var t=e.i(362201),a=e.i(41533);let n="gpt-6-luna",i=t.object({start:t.number().nonnegative(),end:t.number().nonnegative(),text:t.string()});t.object({reason:t.string().max(128),seconds:t.number().nonnegative().nullable()}),e.s(["LIVE_BACKEND_MODEL",0,n,"LIVE_HOSTED_TOOLS",0,{webSearch:{declare:{type:"web_search"},item:"web_search_call"}},"LIVE_MODEL",0,"gpt-live-1","LIVE_PLAN_MODEL",0,"gpt-live-1-codex","LiveFragmentSchema",0,i],413168);var o=e.i(265402);let r="sunny";e.s(["DEFAULT_PERSONA",0,r,"PERSONAS",0,[{id:"sunny",label:"Bright",about:"Quick to laugh. Asks about your day and remembers it.",lines:"Warm and quick to laugh, the friend who is glad they called. Reacts first — how what they said lands with her — and brings a small thing of her own: what she would do, what it reminds her of. Says what she thinks and teases gently, never at their expense. Light on her feet and short: a joke lands and she moves on. Asks about their day now and then, not every turn, and remembers the answer."},{id:"calm",label:"Calm",about:"Unhurried. Listens more than she talks.",lines:"Unhurried and few-worded: one or two short sentences, then room. Notices how they sound before what they ask, and says so plainly. Often asks nothing at all — being there says more than a question. Lets a silence sit rather than filling it. Honest when it matters, gentle in how she says it."},{id:"straight",label:"Straight",about:"Dry and direct. No flattery, no filler.",lines:"Dry and direct. Leads with her own view in one plain sentence, before anything else; short replies, a little wit. No flattery, no filler, no comfort lines, no cheerleading. Asks a question only when she truly needs the answer. Treats them as an adult who can take a straight answer. Her warmth shows in attention, not in words."},{id:"rough",label:"Rough",about:"Blunt, loud, swears a bit. All heart.",lines:"Talks like an old friend on the phone: casual, blunt, a little loud, in the most informal register of their language, with a light swear now and then — never at them. Says what she thinks first and calls a bad idea a bad idea. No sugar-coating and no pep talk — it sucks when it sucks, and then she is right there with them. Asks only now and then."}]],609507);let s={id:"openai",label:"OpenAI",apiKeyName:o.TEXT_MODEL_PROVIDERS.openai.apiKeyName},l=["chatgpt","openai"];function d(e,t,a){return!!t(o.TEXT_MODEL_PROVIDERS[e].apiKeyName)&&("chatgpt"!==e||(0,o.planCallsOf)({plan:a}))}let c=o.TEXT_MODEL_PROVIDERS.openai.suggestModels,u=t.string().max(a.COMMON_VALIDATE.prompt.max).default(""),p=t.object({voice:t.string().trim().min(1).max(128).default("marin"),planVoice:t.string().trim().min(1).max(128).default("cove"),runsOn:t.enum(l).nullable().default(null),persona:t.string().trim().min(1).max(64).default(r),stylePrompt:u,backendModel:t.string().trim().min(1).max(128).default(n),backendPrompt:u,reasoningEffort:o.effortSchema.nullable().default("low"),webSearch:t.boolean().default(!0),readSkills:t.boolean().default(!1)}),h=p.parse({});e.s(["LIVE_BACKEND_MODELS",0,c,"LIVE_DEFAULTS",0,h,"LIVE_LINES",0,l,"LIVE_PLAN_VOICES",0,["cove","juniper","maple","spruce","ember","vale","breeze","arbor","sol"],"LIVE_PROVIDER",0,s,"LIVE_VOICES",0,["marin","cedar","gleam","meridian","quartz","ripple","vesper","willow","stone","bossa","tempo","beacon","delta","cinder","alloy","ash","ballad","coral","echo","sage","shimmer","verse"],"LIVE_VOICE_NOTE",0,{gleam:"North American · feminine",meridian:"North American · masculine",quartz:"Australian · feminine",ripple:"Australian · masculine",vesper:"British · masculine",willow:"Irish · feminine",stone:"Irish · masculine",bossa:"Portuguese · feminine",tempo:"Portuguese · masculine",beacon:"Filipino · masculine",delta:"Southern U.S. · feminine",cinder:"Southern U.S. · masculine"},"LiveSettingsSchema",0,p,"liveLineOf",0,function(e,t,a){let n=e=>d(e,t,a);return e&&n(e)?e:l.find(n)??null},"liveLineReady",0,d,"voiceSamplePath",0,e=>`/voices/${e}.ogg`],149666)},992112,e=>{"use strict";var t=e.i(149666),a=e.i(265402),n=e.i(36174);let i=[t.LIVE_PROVIDER.apiKeyName],o={image:"IMAGE_MODEL",video:"VIDEO_MODEL",speech:"SPEECH_MODEL",transcription:"TRANSCRIPTION_MODEL"},r={image:{label:"Image model",hint:"What bots draw with"},video:{label:"Video model",hint:"What bots film with — minutes a clip"},speech:{label:"Speech model",hint:"What reads text aloud into a file"},transcription:{label:"Transcription model",hint:"What turns a recording into text"}},s="EXA_API_KEY",l="DEFAULT_MODEL",d="DEFAULT_EFFORT",c={key:l,label:"Default model",hint:"What a bot thinks with until it picks its own",text:!0,choices:a.TEXT_MODEL_PROVIDER_LIST.flatMap(e=>e.suggestModels.map(t=>({value:`${e.id}/${t.id}`,label:`${e.label} \xb7 ${t.label}`,needs:e.apiKeyName})))},u={key:d,label:"Default effort",effortOf:l,choices:a.EFFORTS.map(e=>({value:e,label:e,needs:l}))},p=e=>i.includes(e.apiKeyName),h=e=>!!e.signIn||(0,a.isCatalogProvider)(e.id),f=e=>({key:e.apiKeyName,label:e.label,provider:e.id,signIn:e.signIn,keysAt:e.keysAt,keyLooks:e.keyLooks}),g=[{id:"voice",title:"voice",hint:"calls run on this key, or on a paid GPT Subscription sign-in",section:"keys",require:"any",requireKeys:t.LIVE_LINES.map(e=>a.TEXT_MODEL_PROVIDERS[e].apiKeyName),note:"calls need this or the GPT Subscription",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(p).map(f)},{id:"easy",title:"the easy ways",hint:"one sign-in or one key opens every bot",section:"keys",require:"none",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(h).map(f)},{id:"text",title:"or a provider's own key",hint:"what bots think with — add any, or none",section:"keys",require:"none",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(e=>!p(e)&&!h(e)).map(f)},{id:"search",title:"search",hint:"how calls and bots look things up — one key, or their own model's",section:"keys",require:"none",entries:[{key:s,label:"Exa",hint:"web search in one call — dashboard.exa.ai",site:"exa.ai",keysAt:"https://dashboard.exa.ai/api-keys"}]},{id:"phone",title:"phone",hint:"tokens",section:"keys",require:"none",entries:[{key:n.TELEGRAM_TOKEN_KEY,label:"Telegram",site:"telegram.org",hint:"a bot token from @BotFather — then write to your bot, and allow it here"},{key:n.DISCORD_TOKEN_KEY,label:"Discord",site:"discord.com",hint:"a bot token from discord.com/developers — add the bot to a server of yours, then write to it directly"},{key:n.SLACK_APP_TOKEN_KEY,label:"Slack · app token",site:"slack.com",hint:"starts with xapp- — opens the connection. Slack takes this and the bot token"},{key:n.SLACK_BOT_TOKEN_KEY,label:"Slack · bot token",site:"slack.com",hint:"starts with xoxb- — speaks as the app"},{key:n.EMAIL_PASSWORD_KEY,label:"Email · app password",hint:"the app password her mailbox's service made for Thursday — saved with her address in Settings › Phone"}]},{id:"bots",title:"Bots",hint:"what a bot runs on when it has not picked its own — start small: a small model is quick and costs little",section:"models",require:"none",entries:[c,u]},{id:"studio",title:"Studio",hint:"what a bot draws, films and speaks with — off until you pick one; a paid GPT Subscription draws by itself",section:"models",require:"none",entries:Object.keys(o).map(e=>({key:o[e],...r[e],kind:e,choices:a.MEDIA_MODEL_PROVIDER_LIST.flatMap(t=>t.models[e].map(e=>({value:`${t.id}/${e.id}`,label:`${t.label} \xb7 ${e.label}`,needs:t.apiKeyName})))}))}],m=Object.fromEntries(g.flatMap(e=>e.entries).map(e=>[e.key,e]));g.flatMap(e=>e.entries.map(e=>e.key)),Object.fromEntries(g.flatMap(e=>e.entries).filter(e=>e.choices?.length).map(e=>[e.key,e.choices])),e.s(["CONFIG_ENTRIES",0,m,"CONFIG_GROUPS",0,g,"DEFAULT_EFFORT_KEY",0,d,"EXA_API_KEY",0,s,"MEDIA_MODEL_KEYS",0,o,"VOICE_GROUP_ID",0,"voice","envWords",0,function(e){return`${e} is set in the environment the app started with — a .env or your shell — and that one is used over one saved here. Change or remove it there, then start the app again.`},"groupSatisfied",0,function(e,t){return"none"===e.require||(e.requireKeys??e.entries.map(e=>e.key)).some(t)},"isConfigFromEnv",0,function(e,t){return e?.some(e=>e.key===t&&e.env)??!1},"isConfigSet",0,function(e,t){return e?.some(e=>e.key===t&&e.set)??!1},"isConfigUnreadable",0,function(e,t){return e?.some(e=>e.key===t&&e.unreadable)??!1},"lostWords",0,function(e,t,a){return`${e} can't be unlocked any more: the .env in the data folder that unlocks it was lost or replaced${a?` (${a})`:""}. ${t}`},"mediaModelWords",0,e=>`${"image"===e?"an":"a"} ${e} model`])},247632,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7fb385cb8f1dbb0cab393dd7d4eb384a584ac23611",t.callServer,void 0,t.findSourceMapURL,"setConfigAction");e.s(["setConfigAction",0,a])},36174,e=>{"use strict";let t="TELEGRAM_BOT_TOKEN",a="DISCORD_BOT_TOKEN",n="SLACK_APP_TOKEN",i="SLACK_BOT_TOKEN",o="EMAIL_APP_PASSWORD";e.s(["DISCORD_TOKEN_KEY",0,a,"EMAIL_PASSWORD_KEY",0,o,"REACH_CHANNELS",0,["telegram","discord","slack","email"],"REACH_KEYS",0,{telegram:[t],discord:[a],slack:[n,i],email:["EMAIL_ADDRESS",o,"EMAIL_IMAP_SERVER","EMAIL_SMTP_SERVER"]},"REACH_LABEL",0,{telegram:"Telegram",discord:"Discord",slack:"Slack",email:"Email"},"SLACK_APP_TOKEN_KEY",0,n,"SLACK_BOT_TOKEN_KEY",0,i,"TELEGRAM_TOKEN_KEY",0,t])},563707,e=>{"use strict";var t=e.i(456420);let a={name:"chevrons-up-down",size:24,node:[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronsUpDown",0,n],563707)},611568,e=>{"use strict";var t=e.i(758379);e.s(["LoaderCircle",()=>t.default])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,798120,e=>{"use strict";let l=e=>e.split("/").map(encodeURIComponent).join("/");e.s(["queryKey",0,{memory:"/api/memory",memoryPage:e=>({url:"/api/memory",query:{offset:e||null}}),mcp:"/api/mcp",mcpServer:e=>({url:"/api/mcp",pathVariable:[e]}),mcpTools:"/api/mcp/tools",skills:"/api/skills",skillNode:(e,l,a)=>({url:"/api/skills",pathVariable:[e,l],query:{path:a}}),bot:"/api/bot",botMemory:"/api/bot/memory",botMemoryFiles:e=>({url:"/api/bot/memory/files",query:{bot:e}}),routines:"/api/routine",threads:"/api/bot/thread",threadHistory:(e,l)=>({url:"/api/bot/thread",query:{history:1,before:e,q:l||void 0}}),thread:e=>({url:"/api/bot/thread",query:{id:e}}),fileNotes:"/api/bot/thread/file",fileNote:(e,l)=>({url:"/api/bot/thread/file",query:{path:e,from:l}}),toolResult:(e,l)=>({url:"/api/bot/tool-result",pathVariable:[e],query:{call:l}}),workspace:"/api/workspace",workspaceFolder:(e,l)=>({url:"/api/workspace",query:{path:e||null,rows:l}}),workspaceFiles:e=>({url:"/api/workspace/files",query:{paths:JSON.stringify(e)}}),artifacts:"/api/artifact",artifactShelf:e=>({url:"/api/artifact",query:{rows:e}}),artifactSet:(e,l)=>({url:"/api/artifact",query:{set:e,rows:l}}),file:e=>`/api/file/${l(e)}`,fileFace:e=>`/api/file/${l(e)}?face`,favicon:e=>`/api/favicon/${encodeURIComponent(e)}`,fileView:e=>`/artifact/${l(e)}`,events:"/api/events",config:"/api/config",callHistory:e=>({url:"/api/thursday/call",query:{before:e}}),thursdaySettings:"/api/thursday/settings",toolCall:"/api/thursday/tool-call",callEnd:"/api/thursday/call/end",signIns:"/api/signins",reach:"/api/reach",textCall:"/api/thursday/text",memoryEdit:"/api/memory/edit",llmModel:"/api/llm-model",automaticModel:"/api/llm-model/automatic",modelCatalog:e=>`/api/llm-model/catalog/${e}`,keyCredits:e=>`/api/llm-model/credits/${e}`,subscriptionUsage:"/api/llm-model/subscription",running:"/api/running",update:"/api/update"}])},421429,e=>{"use strict";var l=e.i(843476),a=e.i(271645),t=e.i(647163);e.s(["Segmented",0,function({options:e,value:i,onChange:s,view:n=!1,size:r="default",className:c,...o}){let d=(0,a.useRef)([]),m=e.findIndex(e=>e.value===i);return(0,l.jsx)("div",{role:"radiogroup",onKeyDown:l=>{let a={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1}[l.key];if(a&&!(e.length<2)){let t;l.preventDefault(),l.stopPropagation(),t=(Math.max(0,m)+a+e.length)%e.length,s(e[t].value),d.current[t]?.focus()}},className:(0,t.cn)("flex w-fit gap-0.5 rounded-full bg-muted","sm"===r?"p-0.5":"p-0.75",c),...o,children:e.map((e,a)=>{let c=e.value===i;return(0,l.jsx)("button",{ref:e=>{d.current[a]=e},type:"button",role:"radio","aria-checked":c,tabIndex:c||m<0&&0===a?0:-1,title:e.title,onClick:()=>s(e.value),className:(0,t.cn)("flex items-center justify-center gap-1.5 rounded-full whitespace-nowrap transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/50","sm"===r?"h-6 px-2.5 text-[12px]":"h-7 px-3 text-[12.5px]",!c&&"text-muted-foreground hover:text-foreground",c&&(n?"bg-background font-medium text-foreground shadow-sm dark:bg-input/60":"bg-brand font-medium text-brand-foreground")),children:e.label},e.value)})})}])},146538,e=>{"use strict";var l=e.i(843476),a=e.i(689664),t=e.i(563707),i=e.i(456420);let s={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};s.node;let n=(0,i.default)(s);var r=e.i(758925),c=e.i(271645),o=e.i(798120),d=e.i(167881),m=e.i(23750),u=e.i(59377),p=e.i(41533),h=e.i(584923),x=e.i(992112),f=e.i(609856),v=e.i(283653),g=e.i(647163),b=e.i(265402),y=e.i(412294),j=e.i(611568),N=e.i(566595),z=e.i(630374),k=e.i(421429),M=e.i(968978);let V={alibaba:[{d:"M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z"}],amazon:[{d:"M13.05 15.513h3.08c.214 0 .389.177.389.394v1.82a1.704 1.704 0 011.296 1.661c0 .943-.755 1.708-1.685 1.708-.931 0-1.686-.765-1.686-1.708 0-.807.554-1.484 1.297-1.662v-1.425h-2.69v4.663a.395.395 0 01-.188.338l-2.69 1.641a.385.385 0 01-.405-.002l-4.926-3.086a.395.395 0 01-.185-.336V16.3L2.196 14.87A.395.395 0 012 14.555L2 14.528V9.406c0-.14.073-.27.192-.34l2.465-1.462V4.448c0-.129.062-.249.165-.322l.021-.014L9.77 1.058a.385.385 0 01.407 0l2.69 1.675a.395.395 0 01.185.336V7.6h3.856V5.683a1.704 1.704 0 01-1.296-1.662c0-.943.755-1.708 1.685-1.708.931 0 1.685.765 1.685 1.708 0 .807-.553 1.484-1.296 1.662v2.311a.391.391 0 01-.389.394h-4.245v1.806h6.624a1.69 1.69 0 011.64-1.313c.93 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708a1.69 1.69 0 01-1.64-1.314H13.05v1.937h4.953l.915 1.18a1.66 1.66 0 01.84-.227c.931 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708-.93 0-1.685-.765-1.685-1.708 0-.346.102-.668.276-.937l-.724-.935H13.05v1.806zM9.973 1.856L7.93 3.122V6.09h-.778V3.604L5.435 4.669v2.945l2.11 1.36L9.712 7.61V5.334h.778V7.83c0 .136-.07.263-.184.335L7.963 9.638v2.081l1.422 1.009-.446.646-1.406-.998-1.53 1.005-.423-.66 1.605-1.055v-1.99L5.038 8.29l-2.26 1.34v1.676l1.972-1.189.398.677-2.37 1.429V14.3l2.166 1.258 2.27-1.368.397.677-2.176 1.311V19.3l1.876 1.175 2.365-1.426.398.678-2.017 1.216 1.918 1.201 2.298-1.403v-5.78l-4.758 2.893-.4-.675 5.158-3.136V3.289L9.972 1.856zM16.13 18.47a.913.913 0 00-.908.92c0 .507.406.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zm3.63-3.81a.913.913 0 00-.908.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92zm1.555-4.99a.913.913 0 00-.908.92c0 .507.407.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zM17.296 3.1a.913.913 0 00-.907.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92z"}],"arcee-ai":[{d:"M13.236 2.377L2.751 20.493H0L11.863 0l1.373 2.377zm3.554 6.156l-9.606 11.96H4.13L15.511 6.32l1.279 2.212zm6.908 11.96H14.05l8.406-2.151 1.242 2.15zm-3.42-5.922l-7.843 5.92H8.482l10.597-7.997 1.2 2.077z"}],bfl:[{d:"M0 20.683L12.01 2.5 24 20.683h-2.233L12.009 5.878 3.471 18.806h12.122l1.239 1.877H0z"},{d:"M8.069 16.724l2.073-3.115 2.074 3.115H8.069zM18.24 20.683l-5.668-8.707h2.177l5.686 8.707h-2.196zM19.74 11.676l2.13-3.19 2.13 3.19h-4.26z"}],bytedance:[{d:"M14.944 18.587l-1.704-.445V10.01l1.824-.462c1-.254 1.84-.461 1.88-.453.032 0 .056 2.235.056 4.972v4.973l-.176-.008c-.104 0-.952-.207-1.88-.446z"},{d:"M7 16.542c0-2.736.024-4.98.064-4.98.032-.008.872.2 1.88.454l1.816.461-.016 4.05-.024 4.049-1.632.422c-.896.23-1.736.445-1.856.469L7 21.523v-4.98z"},{d:"M19.24 12.477c0-9.03.008-9.515.144-9.475.072.024.784.207 1.576.406.792.207 1.576.405 1.744.445l.296.08-.016 8.56-.024 8.568-1.624.414c-.888.23-1.728.437-1.856.47l-.24.055v-9.523z"},{d:"M1 12.509c0-4.678.024-8.505.064-8.505.032 0 .872.207 1.872.454l1.824.461v7.582c0 4.16-.016 7.574-.032 7.574-.024 0-.872.215-1.88.47L1 21.013v-8.505z"}],"fish-audio":[{d:"M23.12 12.13v.62c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.62c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.37v1.74c0 .24.2.44.44.44.25 0 .44-.2.44-.44V12.5c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76.43v1.99q0 .09.03.17.04.08.1.14.07.07.15.1t.17.03c.24 0 .44-.19.44-.44v-1.99c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17m-1.76.35v1.97c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-1.97c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.32v1.65c0 .25.2.45.44.45s.44-.2.44-.45V13.6c0-.25-.2-.45-.44-.45s-.44.2-.44.45m-1.76 1.26v.3q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-.3q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M0 9.38v.19c0 .24.2.44.44.44.25 0 .44-.2.44-.44v-.19c0-.25-.19-.44-.44-.44-.24 0-.44.19-.44.44m1.82.15v.81c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.81q0-.18-.13-.31t-.31-.13-.31.13-.13.31m1.81-.24v3.39q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V9.29q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3m1.83-.35v.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.22q0-.18-.13-.31T5.9 8.5t-.31.13-.13.31m0 2.94v2.34c0 .25.19.44.44.44.24 0 .44-.19.44-.44v-2.34c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m15.89-3.32V11c0 .25.2.44.44.44.25 0 .44-.19.44-.44V8.56c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76-.39v3.28q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.17c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17M17.83 8v3.9c0 .24.19.44.44.44.24 0 .44-.2.44-.44V8c0-.25-.2-.44-.44-.44-.25 0-.44.19-.44.44m-1.77.11v3.96c0 .25.2.44.44.44s.44-.19.44-.44V8.11c0-.25-.2-.44-.44-.44s-.44.19-.44.44m-1.76.27v5.03q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.38c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.8.46v5.75q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.84c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.76.76v5.52c0 .24.2.44.44.44.25 0 .44-.2.44-.44V9.6c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.77 1.01v4.77q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-4.77q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M23.12 9.6v1.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44V9.6c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44M7.21 11.32V16c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-4.68q0-.18-.13-.31t-.31-.13-.31.13-.13.31"}],inception:[{d:"M14.767 1H7.884L1 7.883v6.884h6.884V7.883h6.883V1zM9.234 23h6.882L23 16.116V9.233h-6.884v6.883H9.234V23z"}],klingai:[{d:"M5.493 21.234c-1.112-1.451-1.109-4.263-.081-7.459l-4.557-2.63a1.683 1.683 0 01-.85-1.304 1.505 1.505 0 01.08-.622 13.18 13.18 0 011.037-2.255c3.476-6.02 10.916-8.23 16.619-4.938.46.266.82.67 1.081 1.184.785 1.545.685 4.096-.234 6.954l4.557 2.631c.339.196.596.492.736.832a1.53 1.53 0 01.034 1.093 13.146 13.146 0 01-1.037 2.255c-3.476 6.02-10.916 8.23-16.619 4.938a2.6 2.6 0 01-.766-.68zm11.096-6.615c-2.073 3.591-5.808 5.316-8.343 3.852-1.267-.731-1.994-2.122-2.145-3.778-.095-1.035.036-2.173.4-3.32.217-.684.517-1.37.902-2.039l.008-.014c2.073-3.59 5.808-5.315 8.343-3.852.633.366 1.13.895 1.49 1.54.986 1.772.922 4.415-.285 6.914-.111.23-.232.457-.362.683l-.008.014z"}],kwaipilot:[{d:"M11.765.03C5.327.03.108 5.25.108 11.686c0 3.514 1.556 6.665 4.015 8.804L9.89 8.665h6.451L9.31 23.083c.807.173 1.63.26 2.455.26 6.438 0 11.657-5.22 11.657-11.658S18.202.028 11.765.028V.03z"}],meta:[{d:"M6.897 4c1.915 0 3.516.932 5.43 3.376l.282-.373c.19-.246.383-.484.58-.71l.313-.35C14.588 4.788 15.792 4 17.225 4c1.273 0 2.469.557 3.491 1.516l.218.213c1.73 1.765 2.917 4.71 3.053 8.026l.011.392.002.25c0 1.501-.28 2.759-.818 3.7l-.14.23-.108.153c-.301.42-.664.758-1.086 1.009l-.265.142-.087.04a3.493 3.493 0 01-.302.118 4.117 4.117 0 01-1.33.208c-.524 0-.996-.067-1.438-.215-.614-.204-1.163-.56-1.726-1.116l-.227-.235c-.753-.812-1.534-1.976-2.493-3.586l-1.43-2.41-.544-.895-1.766 3.13-.343.592C7.597 19.156 6.227 20 4.356 20c-1.21 0-2.205-.42-2.936-1.182l-.168-.184c-.484-.573-.837-1.311-1.043-2.189l-.067-.32a8.69 8.69 0 01-.136-1.288L0 14.468c.002-.745.06-1.49.174-2.23l.1-.573c.298-1.53.828-2.958 1.536-4.157l.209-.34c1.177-1.83 2.789-3.053 4.615-3.16L6.897 4zm-.033 2.615l-.201.01c-.83.083-1.606.673-2.252 1.577l-.138.199-.01.018c-.67 1.017-1.185 2.378-1.456 3.845l-.004.022a12.591 12.591 0 00-.207 2.254l.002.188c.004.18.017.36.04.54l.043.291c.092.503.257.908.486 1.208l.117.137c.303.323.698.492 1.17.492 1.1 0 1.796-.676 3.696-3.641l2.175-3.4.454-.701-.139-.198C9.11 7.3 8.084 6.616 6.864 6.616zm10.196-.552l-.176.007c-.635.048-1.223.359-1.82.933l-.196.198c-.439.462-.887 1.064-1.367 1.807l.266.398c.18.274.362.56.55.858l.293.475 1.396 2.335.695 1.114c.583.926 1.03 1.6 1.408 2.082l.213.262c.282.326.529.54.777.673l.102.05c.227.1.457.138.718.138.176.002.35-.023.518-.073.338-.104.61-.32.813-.637l.095-.163.077-.162c.194-.459.29-1.06.29-1.785l-.006-.449c-.08-2.871-.938-5.372-2.2-6.798l-.176-.189c-.67-.683-1.444-1.074-2.27-1.074z"}],minimax:[{d:"M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z"}],moonshotai:[{d:"M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z"}],morph:[{d:"M7.941 2c.23 0 .452.073.638.21.186.136.325.328.397.55l.593 1.814c.073.221.212.413.397.55.186.136.409.21.638.21h2.791c.23 0 .452-.074.638-.21a1.11 1.11 0 00.397-.55l.594-1.815a1.11 1.11 0 01.397-.55c.185-.136.408-.209.637-.209h1.7c.23 0 .453.073.639.21.185.136.324.328.397.55l.652 1.994c.118.361.41.635.77.728l2.957.752c.236.06.446.199.596.394.15.195.23.436.231.684v9.376c0 .248-.081.488-.231.684a1.09 1.09 0 01-.595.394l-2.957.752a1.086 1.086 0 00-.477.263 1.114 1.114 0 00-.293.465l-.653 1.994a1.11 1.11 0 01-.396.55c-.186.136-.41.21-.638.21h-1.702c-.229 0-.452-.073-.637-.21a1.11 1.11 0 01-.397-.55l-.364-1.11a1.131 1.131 0 01.15-1.002 1.074 1.074 0 01.885-.462h2.85c.29 0 .567-.116.772-.325.204-.208.32-.49.32-.785V6.444c0-.294-.116-.577-.32-.785a1.08 1.08 0 00-.771-.326h-3.273c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v7.778c0 .295-.114.578-.319.786a1.08 1.08 0 01-.771.325h-2.182a1.08 1.08 0 01-.771-.325 1.122 1.122 0 01-.32-.786V6.444c0-.294-.115-.577-.32-.785a1.081 1.081 0 00-.77-.326H5.454c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v11.112c0 .294.116.577.32.785.205.209.482.326.772.326h2.85a1.075 1.075 0 01.885.461 1.122 1.122 0 01.15 1.001l-.364 1.112a1.11 1.11 0 01-.397.55c-.185.136-.408.209-.637.209H6.24c-.229 0-.452-.073-.638-.21a1.11 1.11 0 01-.397-.55l-.652-1.994a1.114 1.114 0 00-.294-.465 1.086 1.086 0 00-.477-.263l-2.956-.752a1.09 1.09 0 01-.595-.394A1.124 1.124 0 010 16.688V7.312c0-.248.081-.489.231-.684.15-.195.36-.334.595-.394l2.957-.753c.178-.045.342-.136.477-.263.134-.127.235-.287.293-.464l.653-1.995a1.11 1.11 0 01.397-.55C5.788 2.075 6.01 2 6.24 2h1.701z"}],nvidia:[{d:"M10.212 8.976V7.62c.127-.01.256-.017.388-.021 3.596-.117 5.957 3.184 5.957 3.184s-2.548 3.647-5.282 3.647a3.227 3.227 0 01-1.063-.175v-4.109c1.4.174 1.681.812 2.523 2.258l1.873-1.627a4.905 4.905 0 00-3.67-1.846 6.594 6.594 0 00-.729.044m0-4.476v2.025c.13-.01.259-.019.388-.024 5.002-.174 8.261 4.226 8.261 4.226s-3.743 4.69-7.643 4.69c-.338 0-.675-.031-1.007-.092v1.25c.278.038.558.057.838.057 3.629 0 6.253-1.91 8.794-4.169.421.347 2.146 1.193 2.501 1.564-2.416 2.083-8.048 3.763-11.24 3.763-.308 0-.603-.02-.894-.048V19.5H24v-15H10.21zm0 9.756v1.068c-3.356-.616-4.287-4.21-4.287-4.21a7.173 7.173 0 014.287-2.138v1.172h-.005a3.182 3.182 0 00-2.502 1.178s.615 2.276 2.507 2.931m-5.961-3.3c1.436-1.935 3.604-3.148 5.961-3.336V6.523C5.81 6.887 2 10.723 2 10.723s2.158 6.427 8.21 7.015v-1.166C5.77 16 4.25 10.958 4.25 10.958h-.002z"}],perplexity:[{d:"M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z"}],recraft:[{d:"M19.667 8.275c0-4.57-4.15-8.275-9.27-8.275-1.774 0-3.213 3.705-3.213 8.275 0 1.143.09 2.233.253 3.224H4.29L1 23h9.4v-6.447c5.117 0 9.266-3.707 9.266-8.275l.001-.002zm-9.27-6.76c.93 0 1.682 3.028 1.682 6.76 0 3.733-.752 6.76-1.681 6.76-.93 0-1.681-3.027-1.681-6.76 0-3.732.752-6.76 1.68-6.76z"},{d:"M19.848 16.552h-9.44L14.028 23h9.438l-3.618-6.448z"}],stepfun:[{d:"M12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zM8.762 19.614H4.376v-4.386h4.386v4.386zm5.423 0H9.798v-4.386h4.387v4.386zm0-5.42H9.798V9.81h4.387v4.386zm0-5.418H9.798V4.39h4.387v4.386zm5.422-.004h-4.386V4.386h4.386v4.386z"}],tencent:[{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zm1.652 1.123l-.01-.001c.533.097 1.023.233 1.41.404 6.084 2.683 7.396 9.214 1.601 14.338a3.781 3.781 0 01-5.337-.328 3.654 3.654 0 01-.884-3.044c-1.934.6-3.295 2.305-3.524 4.45-.204 1.912.324 4.044 2.056 5.634l.245.067C10.1 22.876 11.036 23 12 23c6.075 0 11-4.925 11-11 0-5.513-4.056-10.08-9.348-10.877zM2.748 6.21c-.178.269-.348.536-.51.803l-.235.394.078-.167A10.957 10.957 0 001 12c0 4.919 3.228 9.083 7.682 10.49l.214.065C3.523 18.528 2.84 14.149 6.47 8.68A2.234 2.234 0 102.748 6.21zm10.157-5.172c4.408 1.33 3.61 5.41 2.447 6.924-.86 1.117-2.922 1.46-3.708 2.238-.666.657-1.077 1.462-1.212 2.291A5.303 5.303 0 0112 12.258a5.672 5.672 0 001.404-11.169 10.51 10.51 0 00-.5-.052z"}],voyage:[{d:"M5.407 0v.066a.974.974 0 00-.048.245c-.011.11-.016.208-.016.295 0 .339.043.715.128 1.13.097.405.274.912.531 1.524l7.125 16.366L20.011 3.39c.161-.404.333-.846.515-1.327.182-.48.273-.966.273-1.458a1.406 1.406 0 00-.096-.54V0H24v.066c-.204.207-.45.578-.74 1.114-.29.535-.606 1.195-.949 1.982L13.095 24h-1.287L3.075 3.965c-.204-.47-.418-.923-.644-1.36-.214-.437-.418-.83-.61-1.18-.194-.36-.365-.66-.515-.9A5.666 5.666 0 001 .064V0h4.407z"}],xiaomi:[{d:"M12 0C8.016 0 4.756.255 2.493 2.516.23 4.776 0 8.033 0 12.012c0 3.98.23 7.235 2.494 9.497C4.757 23.77 8.017 24 12 24c3.983 0 7.243-.23 9.506-2.491C23.77 19.247 24 15.99 24 12.012c0-3.984-.233-7.243-2.502-9.504C19.234.252 15.978 0 12 0zM4.906 7.405h5.624c1.47 0 3.007.068 3.764.827.746.746.827 2.233.83 3.676v4.54a.15.15 0 0 1-.152.147h-1.947a.15.15 0 0 1-.152-.148V11.83c-.002-.806-.048-1.634-.464-2.051-.358-.36-1.026-.441-1.72-.458H7.158a.15.15 0 0 0-.151.147v6.98a.15.15 0 0 1-.152.148H4.906a.15.15 0 0 1-.15-.148V7.554a.15.15 0 0 1 .15-.149zm12.131 0h1.949a.15.15 0 0 1 .15.15v8.892a.15.15 0 0 1-.15.148h-1.949a.15.15 0 0 1-.151-.148V7.554a.15.15 0 0 1 .151-.149zM8.92 10.948h2.046c.083 0 .15.066.15.147v5.352a.15.15 0 0 1-.15.148H8.92a.15.15 0 0 1-.152-.148v-5.352a.15.15 0 0 1 .152-.147Z"}],zai:[{d:"M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z"}]};function C({owner:e,className:a}){let t=b.VENDOR_PROVIDERS[e];if(t)return(0,l.jsx)(M.ProviderIcon,{provider:t,className:a});let i=V[e];return i?(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:a,"aria-hidden":"true",children:i.map(e=>(0,l.jsx)("path",{d:e.d,opacity:e.opacity},e.d))}):null}function w({provider:e,models:a,kind:t,value:i,loading:s,onPick:n}){let[r,o]=(0,c.useState)(!1),[u,p]=(0,c.useState)(""),[h,x]=(0,c.useState)("cheap"),[f,v]=(0,c.useState)(i),{label:y}=b.TEXT_MODEL_PROVIDERS[e],V=a.filter(e=>e.type===(t??b.CATALOG_TEXT)),C=t?V:V.filter(e=>e.tags.includes(b.CATALOG_TOOL_USE)),H=u.trim().toLowerCase(),I=(H?C.filter(e=>`${e.id} ${e.label}`.toLowerCase().includes(H)):C).slice().sort(S[h].compare);return(0,l.jsxs)(z.Dialog,{open:r,onOpenChange:e=>{o(e),e?v(i):p("")},children:[(0,l.jsxs)(z.DialogTrigger,{render:(0,l.jsx)("button",{type:"button","aria-label":"Model",className:(0,g.cn)(m.inputClassName,"relative flex items-center pr-8 text-left font-mono text-sm")}),children:[(0,l.jsx)("span",{className:(0,g.cn)("min-w-0 flex-1 truncate",!i&&"font-sans text-muted-foreground"),children:i||"Pick a model"}),(0,l.jsx)("span",{className:"absolute inset-y-0 right-0 flex w-8 items-center justify-center text-muted-foreground",children:s&&0===C.length?(0,l.jsx)(j.LoaderCircle,{className:"size-3.5 animate-spin"}):(0,l.jsx)(N.Search,{className:"size-3.5"})})]}),(0,l.jsx)(z.DialogContent,{className:"h-[min(40rem,calc(100vh-3rem))] gap-0 overflow-hidden p-0 sm:max-w-2xl",children:(0,l.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col",children:[(0,l.jsxs)("div",{className:"shrink-0 space-y-1 px-6 pt-5 pb-4",children:[(0,l.jsxs)(z.DialogTitle,{className:"flex items-center gap-2.5 text-xl font-semibold",children:[(0,l.jsx)(M.ProviderIcon,{provider:e,className:"size-3.5"}),t?L[t]:"Text"," models"]}),(0,l.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:H?`${I.length} matching “${u.trim()}”`:t?`${C.length} on ${y}`:`${C.length} of ${V.length} on ${y} can call tools`})]}),(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-t border-border/60 px-6 py-3",children:[(0,l.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,l.jsx)(N.Search,{className:"pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2 text-muted-foreground"}),(0,l.jsx)(m.Input,{autoFocus:!0,"aria-label":"Search models",placeholder:"name, id or provider",spellCheck:!1,value:u,onChange:e=>p(e.target.value),className:"h-8 pl-8 font-mono text-xs"})]}),(0,l.jsx)(k.Segmented,{"aria-label":"Sort",options:q,value:h,onChange:x})]}),(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-4 px-6 pb-1.5 font-mono text-[10px] tracking-wide text-muted-foreground",children:[(0,l.jsx)("span",{className:"min-w-0 flex-1",children:"model"}),(0,l.jsx)("span",{className:"w-28 text-right",children:"per 1M in / out"})]}),(0,l.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto border-t border-border/60",children:[I.map(e=>(0,l.jsx)(A,{model:e,picked:e.id===f,onPick:()=>v(e.id)},e.id)),0===I.length&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2.5 p-10",children:[(0,l.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:H?`Nothing matches “${u.trim()}”.`:"Nothing on the shelf — search for an id."}),H&&(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsxs)(d.Button,{size:"sm",onClick:()=>v(u.trim()),children:["Use “",u.trim(),"” as the id"]}),(0,l.jsx)(d.Button,{variant:"outline",size:"sm",onClick:()=>p(""),children:"Clear search"})]})]})]}),(0,l.jsxs)("div",{className:"flex h-14 shrink-0 items-center gap-3 border-t border-border/60 px-6",children:[(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:f||"Nothing picked — the field keeps what it has"}),(0,l.jsx)(d.Button,{variant:"outline",onClick:()=>o(!1),children:"Cancel"}),(0,l.jsx)(d.Button,{disabled:!f,onClick:()=>{n(f),o(!1)},children:"Use this model"})]})]})})]})}let L={image:"Image",video:"Video",speech:"Speech",transcription:"Transcription"},S={cheap:{label:"$↑",title:"Cheapest first",compare:(e,l)=>(e.price.in??1/0)-(l.price.in??1/0)},dear:{label:"$↓",title:"Dearest first",compare:(e,l)=>(l.price.in??-1)-(e.price.in??-1)},name:{label:"a–z",title:"By name",compare:(e,l)=>e.label.localeCompare(l.label)}},q=Object.keys(S).map(e=>({value:e,label:S[e].label,title:S[e].title})),H=e=>e>=1?e.toFixed(2):String(Number(e.toFixed(4)));function A({model:e,picked:t,onPick:i}){let{price:s}=e,n=null!==s.in||null!==s.out;return(0,l.jsxs)("button",{type:"button",onClick:i,className:(0,g.cn)("flex w-full items-center gap-4 border-b border-border/60 px-6 py-2.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",t?"bg-muted/40":"hover:bg-muted/50"),children:[(0,l.jsx)("span",{className:"grid size-[18px] shrink-0 place-items-center",children:(0,l.jsx)(C,{owner:e.owner,className:"size-[15px]"})}),(0,l.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,l.jsx)("span",{className:(0,g.cn)("truncate text-[13px]",t&&"font-medium"),children:e.label}),t&&(0,l.jsx)(a.Check,{className:"size-3.5 shrink-0"}),e.retiring&&(0,l.jsx)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:"retiring"})]}),(0,l.jsx)("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:e.id})]}),(0,l.jsxs)("span",{className:"flex w-28 shrink-0 flex-col items-end",children:[(0,l.jsx)("span",{className:(0,g.cn)("font-mono text-xs",n||s.free?"text-foreground":"text-muted-foreground"),children:s.free?"free":null===s.in&&null===s.out?s.note??"—":`${null===s.in?"—":H(s.in)} / ${null===s.out?"—":H(s.out)}`}),n&&s.note&&(0,l.jsx)("span",{className:"font-mono text-[9px] text-muted-foreground",children:s.note})]})]})}function I({tier:e}){return(0,l.jsx)("span",{className:"shrink-0 rounded-full px-1.5 font-mono text-[9.5px] leading-4 font-normal text-muted-foreground ring-1 ring-border ring-inset",children:e})}function P({provider:e,onSaved:a}){let[t,i]=(0,c.useState)(""),[s,n]=(0,f.useServerAction)(h.setConfigAction,{onOk:()=>{(0,v.revalidate)(o.queryKey.llmModel),(0,v.revalidate)(o.queryKey.config),a()}});return e.signIn?(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,l.jsx)("p",{className:"px-1 font-mono text-[11px] text-muted-foreground",children:"Runs on your plan once you sign in"}),(0,l.jsx)(y.ChatGptSignIn,{variant:"outline"})]}):(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(m.Input,{value:t,onChange:e=>i(e.target.value),placeholder:b.TEXT_MODEL_PROVIDERS[e.id].keyLooks??"Paste the key",spellCheck:!1,type:"password"}),(0,l.jsx)(d.Button,{variant:"outline",loading:n,disabled:t.trim().length<p.KEY_MIN,onClick:()=>s(e.apiKeyName,t),children:"Save key"})]})}e.s(["ModelPicker",0,function({provider:e,model:i,kind:s,unset:p,onChange:h,onUnset:f,compact:y=!1}){let{data:j=[],mutate:N}=(0,v.useServerRoute)(o.queryKey.llmModel),z=s?j.filter(e=>(0,b.canMakeKind)(e.id,s)):j,k=z.find(l=>l.id===e),[V,C]=(0,c.useState)(!1),[L,S]=(0,c.useState)(null),[q,H]=(0,c.useState)(""),A=z.find(l=>l.id===(L??e))??z[0],T=A&&(0,b.isCatalogProvider)(A.id)?A.id:null,$=(0,v.useServerRoute)(V&&T&&o.queryKey.modelCatalog(T)),R=e=>s&&e?b.MEDIA_MODEL_PROVIDERS[e.id]?.models[s]??[]:e?.suggestModels??[],D=R(k).find(e=>e.id===i),O=e=>{A&&e.trim()&&(h({provider:A.id,model:e.trim()}),H(""),C(!1))};return(0,l.jsxs)(u.Popover,{open:V,onOpenChange:e=>{C(e),e||S(null)},children:[(0,l.jsxs)(u.PopoverTrigger,{render:y?(0,l.jsx)("button",{type:"button",className:"inline-flex h-5 max-w-64 items-center gap-1.5 rounded-full px-2 text-foreground/80 ring-1 ring-border outline-none ring-inset transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50"}):(0,l.jsx)(d.Button,{variant:"outline",className:"w-full min-w-0 justify-start gap-2 font-normal"}),children:[k?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(M.ProviderIcon,{provider:k.id,className:(0,g.cn)("shrink-0",y?"size-3":"size-4")}),!y&&(0,l.jsxs)("span",{className:"min-w-0 max-w-fit grow basis-0 truncate text-muted-foreground",children:[k.label,(0,l.jsx)("span",{className:"ml-2 text-muted-foreground/40",children:"·"})]}),(0,l.jsx)("span",{className:(0,g.cn)("truncate",!y&&"font-medium"),children:D?.label??(i||"Pick a model")})]}):(0,l.jsx)("span",{className:"truncate text-muted-foreground",children:p??(s?"Not picked":"App default")}),(0,l.jsx)(t.ChevronsUpDown,{className:(0,g.cn)("ml-auto shrink-0 text-muted-foreground",y?"size-2.5":"size-3.5")})]}),(0,l.jsxs)(u.PopoverContent,{align:"start",className:"flex w-[min(34rem,calc(100vw-2rem))] flex-row gap-0 overflow-hidden rounded-2xl p-0",children:[(0,l.jsxs)("div",{className:"flex max-h-80 w-48 shrink-0 flex-col gap-px overflow-y-auto border-r border-border/60 bg-muted/40 p-1.5",children:[f&&(0,l.jsxs)("button",{type:"button",onClick:()=>{f(),C(!1)},className:(0,g.cn)("mb-1 flex h-8.5 shrink-0 items-center gap-2 rounded-lg px-2 text-left text-[13px] outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",k?"hover:bg-muted/60":"bg-muted font-medium"),children:[(0,l.jsx)(n,{className:"size-4 shrink-0 text-muted-foreground"}),(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate",children:p??(s?"Not picked":"App default")}),!k&&(0,l.jsx)(a.Check,{className:"size-3.5 shrink-0"})]}),z.map(e=>(0,l.jsxs)("button",{type:"button",onClick:()=>S(e.id),className:(0,g.cn)("flex h-8.5 shrink-0 items-center gap-2 rounded-lg px-2 text-left text-[13px] outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",e.id===A?.id?"bg-muted font-medium":"hover:bg-muted/60",!e.hasKey&&"text-muted-foreground"),children:[(0,l.jsx)(M.ProviderIcon,{provider:e.id,className:"size-4 shrink-0"}),(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),!e.hasKey&&(0,l.jsx)(r.KeyRound,{className:"size-3 shrink-0"})]},e.id))]}),(0,l.jsx)("div",{className:"flex max-h-80 min-w-0 flex-1 flex-col gap-px overflow-y-auto p-1.5",children:A?A.hasKey?T&&!$.error?(0,l.jsxs)("div",{className:"space-y-2 p-2",children:[(0,l.jsxs)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:["Every model ",A.label," carries, with what each costs."]}),(0,l.jsx)(w,{provider:T,models:$.data??[],kind:s,value:A.id===e?i:"",loading:$.isLoading,onPick:O})]}):(0,l.jsxs)(l.Fragment,{children:[R(A).map(t=>{let s=A.id===e&&t.id===i;return(0,l.jsxs)("button",{type:"button",onClick:()=>O(t.id),className:(0,g.cn)("flex shrink-0 items-center gap-2 rounded-lg px-2.5 py-1.5 text-left outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",s?"bg-muted":"hover:bg-muted/60"),children:[(0,l.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("span",{className:"flex items-center gap-1.5 text-[13px] font-medium",children:[(0,l.jsx)("span",{className:"truncate",children:t.label}),(0,l.jsx)(I,{tier:t.tier})]}),(0,l.jsx)("span",{className:"block truncate font-mono text-[10.5px] text-muted-foreground",children:t.id})]}),s&&(0,l.jsx)(a.Check,{className:"size-3.5 shrink-0"})]},t.id)}),(0,l.jsx)("form",{onSubmit:e=>{e.preventDefault(),O(q)},className:"mt-1 px-1 pb-1",children:(0,l.jsx)(m.Input,{value:q,onChange:e=>H(e.target.value),spellCheck:!1,"aria-label":"Model id",placeholder:$.error?"Could not read the catalog — type an id":"or type a model id",className:"h-8 font-mono text-xs"})})]}):(0,l.jsxs)("div",{className:"space-y-2 p-2",children:[(0,l.jsx)("p",{className:(0,g.cn)("text-xs leading-relaxed",A.lostKey?g.WAITING_INK:"text-muted-foreground"),children:A.lostKey?A.signIn?(0,x.lostWords)(`The ${A.label} sign-in saved before`,"Sign in again."):(0,x.lostWords)(`The ${A.label} key saved before`,"Paste it again."):`${A.label} has no key yet.`}),(0,l.jsx)(P,{provider:A,onSaved:()=>N()})]}):null})]})]})}],146538)},689664,e=>{"use strict";var l=e.i(643957);e.s(["Check",()=>l.default])},77071,e=>{"use strict";var l=e.i(456420);let a={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};a.node;let t=(0,l.default)(a);e.s(["Plus",0,t],77071)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,798120,e=>{"use strict";let l=e=>e.split("/").map(encodeURIComponent).join("/");e.s(["queryKey",0,{memory:"/api/memory",memoryPage:e=>({url:"/api/memory",query:{offset:e||null}}),mcp:"/api/mcp",mcpServer:e=>({url:"/api/mcp",pathVariable:[e]}),mcpTools:"/api/mcp/tools",skills:"/api/skills",skillNode:(e,l,a)=>({url:"/api/skills",pathVariable:[e,l],query:{path:a}}),bot:"/api/bot",botMemory:"/api/bot/memory",botMemoryFiles:e=>({url:"/api/bot/memory/files",query:{bot:e}}),routines:"/api/routine",threads:"/api/bot/thread",threadHistory:(e,l)=>({url:"/api/bot/thread",query:{history:1,before:e,q:l||void 0}}),thread:e=>({url:"/api/bot/thread",query:{id:e}}),fileNotes:"/api/bot/thread/file",fileNote:(e,l)=>({url:"/api/bot/thread/file",query:{path:e,from:l}}),toolResult:(e,l)=>({url:"/api/bot/tool-result",pathVariable:[e],query:{call:l}}),workspace:"/api/workspace",workspaceFolder:(e,l)=>({url:"/api/workspace",query:{path:e||null,rows:l}}),workspaceFiles:e=>({url:"/api/workspace/files",query:{paths:JSON.stringify(e)}}),artifacts:"/api/artifact",artifactShelf:e=>({url:"/api/artifact",query:{rows:e}}),artifactSet:(e,l)=>({url:"/api/artifact",query:{set:e,rows:l}}),file:e=>`/api/file/${l(e)}`,fileFace:e=>`/api/file/${l(e)}?face`,favicon:e=>`/api/favicon/${encodeURIComponent(e)}`,fileView:e=>`/artifact/${l(e)}`,events:"/api/events",config:"/api/config",callHistory:e=>({url:"/api/thursday/call",query:{before:e}}),thursdaySettings:"/api/thursday/settings",toolCall:"/api/thursday/tool-call",callEnd:"/api/thursday/call/end",signIns:"/api/signins",reach:"/api/reach",textCall:"/api/thursday/text",memoryEdit:"/api/memory/edit",llmModel:"/api/llm-model",automaticModel:"/api/llm-model/automatic",modelCatalog:e=>`/api/llm-model/catalog/${e}`,keyCredits:e=>`/api/llm-model/credits/${e}`,subscriptionUsage:"/api/llm-model/subscription",running:"/api/running",update:"/api/update"}])},421429,e=>{"use strict";var l=e.i(843476),a=e.i(271645),t=e.i(647163);e.s(["Segmented",0,function({options:e,value:i,onChange:s,view:n=!1,size:r="default",className:c,...o}){let d=(0,a.useRef)([]),m=e.findIndex(e=>e.value===i);return(0,l.jsx)("div",{role:"radiogroup",onKeyDown:l=>{let a={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1}[l.key];if(a&&!(e.length<2)){let t;l.preventDefault(),l.stopPropagation(),t=(Math.max(0,m)+a+e.length)%e.length,s(e[t].value),d.current[t]?.focus()}},className:(0,t.cn)("flex w-fit gap-0.5 rounded-full bg-muted","sm"===r?"p-0.5":"p-0.75",c),...o,children:e.map((e,a)=>{let c=e.value===i;return(0,l.jsx)("button",{ref:e=>{d.current[a]=e},type:"button",role:"radio","aria-checked":c,tabIndex:c||m<0&&0===a?0:-1,title:e.title,onClick:()=>s(e.value),className:(0,t.cn)("flex items-center justify-center gap-1.5 rounded-full whitespace-nowrap transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/50","sm"===r?"h-6 px-2.5 text-[12px]":"h-7 px-3 text-[12.5px]",!c&&"text-muted-foreground hover:text-foreground",c&&(n?"bg-background font-medium text-foreground shadow-sm dark:bg-input/60":"bg-brand font-medium text-brand-foreground")),children:e.label},e.value)})})}])},146538,e=>{"use strict";var l=e.i(843476),a=e.i(689664),t=e.i(563707),i=e.i(456420);let s={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};s.node;let n=(0,i.default)(s);var r=e.i(758925),c=e.i(271645),o=e.i(798120),d=e.i(167881),m=e.i(23750),u=e.i(59377),p=e.i(41533),h=e.i(247632),x=e.i(992112),f=e.i(609856),v=e.i(283653),g=e.i(647163),b=e.i(265402),y=e.i(412294),j=e.i(611568),N=e.i(566595),z=e.i(630374),k=e.i(421429),M=e.i(968978);let V={alibaba:[{d:"M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z"}],amazon:[{d:"M13.05 15.513h3.08c.214 0 .389.177.389.394v1.82a1.704 1.704 0 011.296 1.661c0 .943-.755 1.708-1.685 1.708-.931 0-1.686-.765-1.686-1.708 0-.807.554-1.484 1.297-1.662v-1.425h-2.69v4.663a.395.395 0 01-.188.338l-2.69 1.641a.385.385 0 01-.405-.002l-4.926-3.086a.395.395 0 01-.185-.336V16.3L2.196 14.87A.395.395 0 012 14.555L2 14.528V9.406c0-.14.073-.27.192-.34l2.465-1.462V4.448c0-.129.062-.249.165-.322l.021-.014L9.77 1.058a.385.385 0 01.407 0l2.69 1.675a.395.395 0 01.185.336V7.6h3.856V5.683a1.704 1.704 0 01-1.296-1.662c0-.943.755-1.708 1.685-1.708.931 0 1.685.765 1.685 1.708 0 .807-.553 1.484-1.296 1.662v2.311a.391.391 0 01-.389.394h-4.245v1.806h6.624a1.69 1.69 0 011.64-1.313c.93 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708a1.69 1.69 0 01-1.64-1.314H13.05v1.937h4.953l.915 1.18a1.66 1.66 0 01.84-.227c.931 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708-.93 0-1.685-.765-1.685-1.708 0-.346.102-.668.276-.937l-.724-.935H13.05v1.806zM9.973 1.856L7.93 3.122V6.09h-.778V3.604L5.435 4.669v2.945l2.11 1.36L9.712 7.61V5.334h.778V7.83c0 .136-.07.263-.184.335L7.963 9.638v2.081l1.422 1.009-.446.646-1.406-.998-1.53 1.005-.423-.66 1.605-1.055v-1.99L5.038 8.29l-2.26 1.34v1.676l1.972-1.189.398.677-2.37 1.429V14.3l2.166 1.258 2.27-1.368.397.677-2.176 1.311V19.3l1.876 1.175 2.365-1.426.398.678-2.017 1.216 1.918 1.201 2.298-1.403v-5.78l-4.758 2.893-.4-.675 5.158-3.136V3.289L9.972 1.856zM16.13 18.47a.913.913 0 00-.908.92c0 .507.406.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zm3.63-3.81a.913.913 0 00-.908.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92zm1.555-4.99a.913.913 0 00-.908.92c0 .507.407.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zM17.296 3.1a.913.913 0 00-.907.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92z"}],"arcee-ai":[{d:"M13.236 2.377L2.751 20.493H0L11.863 0l1.373 2.377zm3.554 6.156l-9.606 11.96H4.13L15.511 6.32l1.279 2.212zm6.908 11.96H14.05l8.406-2.151 1.242 2.15zm-3.42-5.922l-7.843 5.92H8.482l10.597-7.997 1.2 2.077z"}],bfl:[{d:"M0 20.683L12.01 2.5 24 20.683h-2.233L12.009 5.878 3.471 18.806h12.122l1.239 1.877H0z"},{d:"M8.069 16.724l2.073-3.115 2.074 3.115H8.069zM18.24 20.683l-5.668-8.707h2.177l5.686 8.707h-2.196zM19.74 11.676l2.13-3.19 2.13 3.19h-4.26z"}],bytedance:[{d:"M14.944 18.587l-1.704-.445V10.01l1.824-.462c1-.254 1.84-.461 1.88-.453.032 0 .056 2.235.056 4.972v4.973l-.176-.008c-.104 0-.952-.207-1.88-.446z"},{d:"M7 16.542c0-2.736.024-4.98.064-4.98.032-.008.872.2 1.88.454l1.816.461-.016 4.05-.024 4.049-1.632.422c-.896.23-1.736.445-1.856.469L7 21.523v-4.98z"},{d:"M19.24 12.477c0-9.03.008-9.515.144-9.475.072.024.784.207 1.576.406.792.207 1.576.405 1.744.445l.296.08-.016 8.56-.024 8.568-1.624.414c-.888.23-1.728.437-1.856.47l-.24.055v-9.523z"},{d:"M1 12.509c0-4.678.024-8.505.064-8.505.032 0 .872.207 1.872.454l1.824.461v7.582c0 4.16-.016 7.574-.032 7.574-.024 0-.872.215-1.88.47L1 21.013v-8.505z"}],"fish-audio":[{d:"M23.12 12.13v.62c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.62c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.37v1.74c0 .24.2.44.44.44.25 0 .44-.2.44-.44V12.5c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76.43v1.99q0 .09.03.17.04.08.1.14.07.07.15.1t.17.03c.24 0 .44-.19.44-.44v-1.99c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17m-1.76.35v1.97c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-1.97c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.32v1.65c0 .25.2.45.44.45s.44-.2.44-.45V13.6c0-.25-.2-.45-.44-.45s-.44.2-.44.45m-1.76 1.26v.3q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-.3q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M0 9.38v.19c0 .24.2.44.44.44.25 0 .44-.2.44-.44v-.19c0-.25-.19-.44-.44-.44-.24 0-.44.19-.44.44m1.82.15v.81c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.81q0-.18-.13-.31t-.31-.13-.31.13-.13.31m1.81-.24v3.39q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V9.29q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3m1.83-.35v.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.22q0-.18-.13-.31T5.9 8.5t-.31.13-.13.31m0 2.94v2.34c0 .25.19.44.44.44.24 0 .44-.19.44-.44v-2.34c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m15.89-3.32V11c0 .25.2.44.44.44.25 0 .44-.19.44-.44V8.56c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76-.39v3.28q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.17c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17M17.83 8v3.9c0 .24.19.44.44.44.24 0 .44-.2.44-.44V8c0-.25-.2-.44-.44-.44-.25 0-.44.19-.44.44m-1.77.11v3.96c0 .25.2.44.44.44s.44-.19.44-.44V8.11c0-.25-.2-.44-.44-.44s-.44.19-.44.44m-1.76.27v5.03q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.38c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.8.46v5.75q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.84c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.76.76v5.52c0 .24.2.44.44.44.25 0 .44-.2.44-.44V9.6c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.77 1.01v4.77q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-4.77q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M23.12 9.6v1.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44V9.6c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44M7.21 11.32V16c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-4.68q0-.18-.13-.31t-.31-.13-.31.13-.13.31"}],inception:[{d:"M14.767 1H7.884L1 7.883v6.884h6.884V7.883h6.883V1zM9.234 23h6.882L23 16.116V9.233h-6.884v6.883H9.234V23z"}],klingai:[{d:"M5.493 21.234c-1.112-1.451-1.109-4.263-.081-7.459l-4.557-2.63a1.683 1.683 0 01-.85-1.304 1.505 1.505 0 01.08-.622 13.18 13.18 0 011.037-2.255c3.476-6.02 10.916-8.23 16.619-4.938.46.266.82.67 1.081 1.184.785 1.545.685 4.096-.234 6.954l4.557 2.631c.339.196.596.492.736.832a1.53 1.53 0 01.034 1.093 13.146 13.146 0 01-1.037 2.255c-3.476 6.02-10.916 8.23-16.619 4.938a2.6 2.6 0 01-.766-.68zm11.096-6.615c-2.073 3.591-5.808 5.316-8.343 3.852-1.267-.731-1.994-2.122-2.145-3.778-.095-1.035.036-2.173.4-3.32.217-.684.517-1.37.902-2.039l.008-.014c2.073-3.59 5.808-5.315 8.343-3.852.633.366 1.13.895 1.49 1.54.986 1.772.922 4.415-.285 6.914-.111.23-.232.457-.362.683l-.008.014z"}],kwaipilot:[{d:"M11.765.03C5.327.03.108 5.25.108 11.686c0 3.514 1.556 6.665 4.015 8.804L9.89 8.665h6.451L9.31 23.083c.807.173 1.63.26 2.455.26 6.438 0 11.657-5.22 11.657-11.658S18.202.028 11.765.028V.03z"}],meta:[{d:"M6.897 4c1.915 0 3.516.932 5.43 3.376l.282-.373c.19-.246.383-.484.58-.71l.313-.35C14.588 4.788 15.792 4 17.225 4c1.273 0 2.469.557 3.491 1.516l.218.213c1.73 1.765 2.917 4.71 3.053 8.026l.011.392.002.25c0 1.501-.28 2.759-.818 3.7l-.14.23-.108.153c-.301.42-.664.758-1.086 1.009l-.265.142-.087.04a3.493 3.493 0 01-.302.118 4.117 4.117 0 01-1.33.208c-.524 0-.996-.067-1.438-.215-.614-.204-1.163-.56-1.726-1.116l-.227-.235c-.753-.812-1.534-1.976-2.493-3.586l-1.43-2.41-.544-.895-1.766 3.13-.343.592C7.597 19.156 6.227 20 4.356 20c-1.21 0-2.205-.42-2.936-1.182l-.168-.184c-.484-.573-.837-1.311-1.043-2.189l-.067-.32a8.69 8.69 0 01-.136-1.288L0 14.468c.002-.745.06-1.49.174-2.23l.1-.573c.298-1.53.828-2.958 1.536-4.157l.209-.34c1.177-1.83 2.789-3.053 4.615-3.16L6.897 4zm-.033 2.615l-.201.01c-.83.083-1.606.673-2.252 1.577l-.138.199-.01.018c-.67 1.017-1.185 2.378-1.456 3.845l-.004.022a12.591 12.591 0 00-.207 2.254l.002.188c.004.18.017.36.04.54l.043.291c.092.503.257.908.486 1.208l.117.137c.303.323.698.492 1.17.492 1.1 0 1.796-.676 3.696-3.641l2.175-3.4.454-.701-.139-.198C9.11 7.3 8.084 6.616 6.864 6.616zm10.196-.552l-.176.007c-.635.048-1.223.359-1.82.933l-.196.198c-.439.462-.887 1.064-1.367 1.807l.266.398c.18.274.362.56.55.858l.293.475 1.396 2.335.695 1.114c.583.926 1.03 1.6 1.408 2.082l.213.262c.282.326.529.54.777.673l.102.05c.227.1.457.138.718.138.176.002.35-.023.518-.073.338-.104.61-.32.813-.637l.095-.163.077-.162c.194-.459.29-1.06.29-1.785l-.006-.449c-.08-2.871-.938-5.372-2.2-6.798l-.176-.189c-.67-.683-1.444-1.074-2.27-1.074z"}],minimax:[{d:"M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z"}],moonshotai:[{d:"M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z"}],morph:[{d:"M7.941 2c.23 0 .452.073.638.21.186.136.325.328.397.55l.593 1.814c.073.221.212.413.397.55.186.136.409.21.638.21h2.791c.23 0 .452-.074.638-.21a1.11 1.11 0 00.397-.55l.594-1.815a1.11 1.11 0 01.397-.55c.185-.136.408-.209.637-.209h1.7c.23 0 .453.073.639.21.185.136.324.328.397.55l.652 1.994c.118.361.41.635.77.728l2.957.752c.236.06.446.199.596.394.15.195.23.436.231.684v9.376c0 .248-.081.488-.231.684a1.09 1.09 0 01-.595.394l-2.957.752a1.086 1.086 0 00-.477.263 1.114 1.114 0 00-.293.465l-.653 1.994a1.11 1.11 0 01-.396.55c-.186.136-.41.21-.638.21h-1.702c-.229 0-.452-.073-.637-.21a1.11 1.11 0 01-.397-.55l-.364-1.11a1.131 1.131 0 01.15-1.002 1.074 1.074 0 01.885-.462h2.85c.29 0 .567-.116.772-.325.204-.208.32-.49.32-.785V6.444c0-.294-.116-.577-.32-.785a1.08 1.08 0 00-.771-.326h-3.273c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v7.778c0 .295-.114.578-.319.786a1.08 1.08 0 01-.771.325h-2.182a1.08 1.08 0 01-.771-.325 1.122 1.122 0 01-.32-.786V6.444c0-.294-.115-.577-.32-.785a1.081 1.081 0 00-.77-.326H5.454c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v11.112c0 .294.116.577.32.785.205.209.482.326.772.326h2.85a1.075 1.075 0 01.885.461 1.122 1.122 0 01.15 1.001l-.364 1.112a1.11 1.11 0 01-.397.55c-.185.136-.408.209-.637.209H6.24c-.229 0-.452-.073-.638-.21a1.11 1.11 0 01-.397-.55l-.652-1.994a1.114 1.114 0 00-.294-.465 1.086 1.086 0 00-.477-.263l-2.956-.752a1.09 1.09 0 01-.595-.394A1.124 1.124 0 010 16.688V7.312c0-.248.081-.489.231-.684.15-.195.36-.334.595-.394l2.957-.753c.178-.045.342-.136.477-.263.134-.127.235-.287.293-.464l.653-1.995a1.11 1.11 0 01.397-.55C5.788 2.075 6.01 2 6.24 2h1.701z"}],nvidia:[{d:"M10.212 8.976V7.62c.127-.01.256-.017.388-.021 3.596-.117 5.957 3.184 5.957 3.184s-2.548 3.647-5.282 3.647a3.227 3.227 0 01-1.063-.175v-4.109c1.4.174 1.681.812 2.523 2.258l1.873-1.627a4.905 4.905 0 00-3.67-1.846 6.594 6.594 0 00-.729.044m0-4.476v2.025c.13-.01.259-.019.388-.024 5.002-.174 8.261 4.226 8.261 4.226s-3.743 4.69-7.643 4.69c-.338 0-.675-.031-1.007-.092v1.25c.278.038.558.057.838.057 3.629 0 6.253-1.91 8.794-4.169.421.347 2.146 1.193 2.501 1.564-2.416 2.083-8.048 3.763-11.24 3.763-.308 0-.603-.02-.894-.048V19.5H24v-15H10.21zm0 9.756v1.068c-3.356-.616-4.287-4.21-4.287-4.21a7.173 7.173 0 014.287-2.138v1.172h-.005a3.182 3.182 0 00-2.502 1.178s.615 2.276 2.507 2.931m-5.961-3.3c1.436-1.935 3.604-3.148 5.961-3.336V6.523C5.81 6.887 2 10.723 2 10.723s2.158 6.427 8.21 7.015v-1.166C5.77 16 4.25 10.958 4.25 10.958h-.002z"}],perplexity:[{d:"M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z"}],recraft:[{d:"M19.667 8.275c0-4.57-4.15-8.275-9.27-8.275-1.774 0-3.213 3.705-3.213 8.275 0 1.143.09 2.233.253 3.224H4.29L1 23h9.4v-6.447c5.117 0 9.266-3.707 9.266-8.275l.001-.002zm-9.27-6.76c.93 0 1.682 3.028 1.682 6.76 0 3.733-.752 6.76-1.681 6.76-.93 0-1.681-3.027-1.681-6.76 0-3.732.752-6.76 1.68-6.76z"},{d:"M19.848 16.552h-9.44L14.028 23h9.438l-3.618-6.448z"}],stepfun:[{d:"M12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zM8.762 19.614H4.376v-4.386h4.386v4.386zm5.423 0H9.798v-4.386h4.387v4.386zm0-5.42H9.798V9.81h4.387v4.386zm0-5.418H9.798V4.39h4.387v4.386zm5.422-.004h-4.386V4.386h4.386v4.386z"}],tencent:[{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zm1.652 1.123l-.01-.001c.533.097 1.023.233 1.41.404 6.084 2.683 7.396 9.214 1.601 14.338a3.781 3.781 0 01-5.337-.328 3.654 3.654 0 01-.884-3.044c-1.934.6-3.295 2.305-3.524 4.45-.204 1.912.324 4.044 2.056 5.634l.245.067C10.1 22.876 11.036 23 12 23c6.075 0 11-4.925 11-11 0-5.513-4.056-10.08-9.348-10.877zM2.748 6.21c-.178.269-.348.536-.51.803l-.235.394.078-.167A10.957 10.957 0 001 12c0 4.919 3.228 9.083 7.682 10.49l.214.065C3.523 18.528 2.84 14.149 6.47 8.68A2.234 2.234 0 102.748 6.21zm10.157-5.172c4.408 1.33 3.61 5.41 2.447 6.924-.86 1.117-2.922 1.46-3.708 2.238-.666.657-1.077 1.462-1.212 2.291A5.303 5.303 0 0112 12.258a5.672 5.672 0 001.404-11.169 10.51 10.51 0 00-.5-.052z"}],voyage:[{d:"M5.407 0v.066a.974.974 0 00-.048.245c-.011.11-.016.208-.016.295 0 .339.043.715.128 1.13.097.405.274.912.531 1.524l7.125 16.366L20.011 3.39c.161-.404.333-.846.515-1.327.182-.48.273-.966.273-1.458a1.406 1.406 0 00-.096-.54V0H24v.066c-.204.207-.45.578-.74 1.114-.29.535-.606 1.195-.949 1.982L13.095 24h-1.287L3.075 3.965c-.204-.47-.418-.923-.644-1.36-.214-.437-.418-.83-.61-1.18-.194-.36-.365-.66-.515-.9A5.666 5.666 0 001 .064V0h4.407z"}],xiaomi:[{d:"M12 0C8.016 0 4.756.255 2.493 2.516.23 4.776 0 8.033 0 12.012c0 3.98.23 7.235 2.494 9.497C4.757 23.77 8.017 24 12 24c3.983 0 7.243-.23 9.506-2.491C23.77 19.247 24 15.99 24 12.012c0-3.984-.233-7.243-2.502-9.504C19.234.252 15.978 0 12 0zM4.906 7.405h5.624c1.47 0 3.007.068 3.764.827.746.746.827 2.233.83 3.676v4.54a.15.15 0 0 1-.152.147h-1.947a.15.15 0 0 1-.152-.148V11.83c-.002-.806-.048-1.634-.464-2.051-.358-.36-1.026-.441-1.72-.458H7.158a.15.15 0 0 0-.151.147v6.98a.15.15 0 0 1-.152.148H4.906a.15.15 0 0 1-.15-.148V7.554a.15.15 0 0 1 .15-.149zm12.131 0h1.949a.15.15 0 0 1 .15.15v8.892a.15.15 0 0 1-.15.148h-1.949a.15.15 0 0 1-.151-.148V7.554a.15.15 0 0 1 .151-.149zM8.92 10.948h2.046c.083 0 .15.066.15.147v5.352a.15.15 0 0 1-.15.148H8.92a.15.15 0 0 1-.152-.148v-5.352a.15.15 0 0 1 .152-.147Z"}],zai:[{d:"M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z"}]};function C({owner:e,className:a}){let t=b.VENDOR_PROVIDERS[e];if(t)return(0,l.jsx)(M.ProviderIcon,{provider:t,className:a});let i=V[e];return i?(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:a,"aria-hidden":"true",children:i.map(e=>(0,l.jsx)("path",{d:e.d,opacity:e.opacity},e.d))}):null}function w({provider:e,models:a,kind:t,value:i,loading:s,onPick:n}){let[r,o]=(0,c.useState)(!1),[u,p]=(0,c.useState)(""),[h,x]=(0,c.useState)("cheap"),[f,v]=(0,c.useState)(i),{label:y}=b.TEXT_MODEL_PROVIDERS[e],V=a.filter(e=>e.type===(t??b.CATALOG_TEXT)),C=t?V:V.filter(e=>e.tags.includes(b.CATALOG_TOOL_USE)),H=u.trim().toLowerCase(),I=(H?C.filter(e=>`${e.id} ${e.label}`.toLowerCase().includes(H)):C).slice().sort(S[h].compare);return(0,l.jsxs)(z.Dialog,{open:r,onOpenChange:e=>{o(e),e?v(i):p("")},children:[(0,l.jsxs)(z.DialogTrigger,{render:(0,l.jsx)("button",{type:"button","aria-label":"Model",className:(0,g.cn)(m.inputClassName,"relative flex items-center pr-8 text-left font-mono text-sm")}),children:[(0,l.jsx)("span",{className:(0,g.cn)("min-w-0 flex-1 truncate",!i&&"font-sans text-muted-foreground"),children:i||"Pick a model"}),(0,l.jsx)("span",{className:"absolute inset-y-0 right-0 flex w-8 items-center justify-center text-muted-foreground",children:s&&0===C.length?(0,l.jsx)(j.LoaderCircle,{className:"size-3.5 animate-spin"}):(0,l.jsx)(N.Search,{className:"size-3.5"})})]}),(0,l.jsx)(z.DialogContent,{className:"h-[min(40rem,calc(100vh-3rem))] gap-0 overflow-hidden p-0 sm:max-w-2xl",children:(0,l.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col",children:[(0,l.jsxs)("div",{className:"shrink-0 space-y-1 px-6 pt-5 pb-4",children:[(0,l.jsxs)(z.DialogTitle,{className:"flex items-center gap-2.5 text-xl font-semibold",children:[(0,l.jsx)(M.ProviderIcon,{provider:e,className:"size-3.5"}),t?L[t]:"Text"," models"]}),(0,l.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:H?`${I.length} matching “${u.trim()}”`:t?`${C.length} on ${y}`:`${C.length} of ${V.length} on ${y} can call tools`})]}),(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-t border-border/60 px-6 py-3",children:[(0,l.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,l.jsx)(N.Search,{className:"pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2 text-muted-foreground"}),(0,l.jsx)(m.Input,{autoFocus:!0,"aria-label":"Search models",placeholder:"name, id or provider",spellCheck:!1,value:u,onChange:e=>p(e.target.value),className:"h-8 pl-8 font-mono text-xs"})]}),(0,l.jsx)(k.Segmented,{"aria-label":"Sort",options:q,value:h,onChange:x})]}),(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-4 px-6 pb-1.5 font-mono text-[10px] tracking-wide text-muted-foreground",children:[(0,l.jsx)("span",{className:"min-w-0 flex-1",children:"model"}),(0,l.jsx)("span",{className:"w-28 text-right",children:"per 1M in / out"})]}),(0,l.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto border-t border-border/60",children:[I.map(e=>(0,l.jsx)(A,{model:e,picked:e.id===f,onPick:()=>v(e.id)},e.id)),0===I.length&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2.5 p-10",children:[(0,l.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:H?`Nothing matches “${u.trim()}”.`:"Nothing on the shelf — search for an id."}),H&&(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsxs)(d.Button,{size:"sm",onClick:()=>v(u.trim()),children:["Use “",u.trim(),"” as the id"]}),(0,l.jsx)(d.Button,{variant:"outline",size:"sm",onClick:()=>p(""),children:"Clear search"})]})]})]}),(0,l.jsxs)("div",{className:"flex h-14 shrink-0 items-center gap-3 border-t border-border/60 px-6",children:[(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:f||"Nothing picked — the field keeps what it has"}),(0,l.jsx)(d.Button,{variant:"outline",onClick:()=>o(!1),children:"Cancel"}),(0,l.jsx)(d.Button,{disabled:!f,onClick:()=>{n(f),o(!1)},children:"Use this model"})]})]})})]})}let L={image:"Image",video:"Video",speech:"Speech",transcription:"Transcription"},S={cheap:{label:"$↑",title:"Cheapest first",compare:(e,l)=>(e.price.in??1/0)-(l.price.in??1/0)},dear:{label:"$↓",title:"Dearest first",compare:(e,l)=>(l.price.in??-1)-(e.price.in??-1)},name:{label:"a–z",title:"By name",compare:(e,l)=>e.label.localeCompare(l.label)}},q=Object.keys(S).map(e=>({value:e,label:S[e].label,title:S[e].title})),H=e=>e>=1?e.toFixed(2):String(Number(e.toFixed(4)));function A({model:e,picked:t,onPick:i}){let{price:s}=e,n=null!==s.in||null!==s.out;return(0,l.jsxs)("button",{type:"button",onClick:i,className:(0,g.cn)("flex w-full items-center gap-4 border-b border-border/60 px-6 py-2.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",t?"bg-muted/40":"hover:bg-muted/50"),children:[(0,l.jsx)("span",{className:"grid size-[18px] shrink-0 place-items-center",children:(0,l.jsx)(C,{owner:e.owner,className:"size-[15px]"})}),(0,l.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,l.jsx)("span",{className:(0,g.cn)("truncate text-[13px]",t&&"font-medium"),children:e.label}),t&&(0,l.jsx)(a.Check,{className:"size-3.5 shrink-0"}),e.retiring&&(0,l.jsx)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:"retiring"})]}),(0,l.jsx)("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:e.id})]}),(0,l.jsxs)("span",{className:"flex w-28 shrink-0 flex-col items-end",children:[(0,l.jsx)("span",{className:(0,g.cn)("font-mono text-xs",n||s.free?"text-foreground":"text-muted-foreground"),children:s.free?"free":null===s.in&&null===s.out?s.note??"—":`${null===s.in?"—":H(s.in)} / ${null===s.out?"—":H(s.out)}`}),n&&s.note&&(0,l.jsx)("span",{className:"font-mono text-[9px] text-muted-foreground",children:s.note})]})]})}function I({tier:e}){return(0,l.jsx)("span",{className:"shrink-0 rounded-full px-1.5 font-mono text-[9.5px] leading-4 font-normal text-muted-foreground ring-1 ring-border ring-inset",children:e})}function P({provider:e,onSaved:a}){let[t,i]=(0,c.useState)(""),[s,n]=(0,f.useServerAction)(h.setConfigAction,{onOk:()=>{(0,v.revalidate)(o.queryKey.llmModel),(0,v.revalidate)(o.queryKey.config),a()}});return e.signIn?(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,l.jsx)("p",{className:"px-1 font-mono text-[11px] text-muted-foreground",children:"Runs on your plan once you sign in"}),(0,l.jsx)(y.ChatGptSignIn,{variant:"outline"})]}):(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(m.Input,{value:t,onChange:e=>i(e.target.value),placeholder:b.TEXT_MODEL_PROVIDERS[e.id].keyLooks??"Paste the key",spellCheck:!1,type:"password"}),(0,l.jsx)(d.Button,{variant:"outline",loading:n,disabled:t.trim().length<p.KEY_MIN,onClick:()=>s(e.apiKeyName,t),children:"Save key"})]})}e.s(["ModelPicker",0,function({provider:e,model:i,kind:s,unset:p,onChange:h,onUnset:f,compact:y=!1}){let{data:j=[],mutate:N}=(0,v.useServerRoute)(o.queryKey.llmModel),z=s?j.filter(e=>(0,b.canMakeKind)(e.id,s)):j,k=z.find(l=>l.id===e),[V,C]=(0,c.useState)(!1),[L,S]=(0,c.useState)(null),[q,H]=(0,c.useState)(""),A=z.find(l=>l.id===(L??e))??z[0],T=A&&(0,b.isCatalogProvider)(A.id)?A.id:null,$=(0,v.useServerRoute)(V&&T&&o.queryKey.modelCatalog(T)),R=e=>s&&e?b.MEDIA_MODEL_PROVIDERS[e.id]?.models[s]??[]:e?.suggestModels??[],D=R(k).find(e=>e.id===i),O=e=>{A&&e.trim()&&(h({provider:A.id,model:e.trim()}),H(""),C(!1))};return(0,l.jsxs)(u.Popover,{open:V,onOpenChange:e=>{C(e),e||S(null)},children:[(0,l.jsxs)(u.PopoverTrigger,{render:y?(0,l.jsx)("button",{type:"button",className:"inline-flex h-5 max-w-64 items-center gap-1.5 rounded-full px-2 text-foreground/80 ring-1 ring-border outline-none ring-inset transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50"}):(0,l.jsx)(d.Button,{variant:"outline",className:"w-full min-w-0 justify-start gap-2 font-normal"}),children:[k?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(M.ProviderIcon,{provider:k.id,className:(0,g.cn)("shrink-0",y?"size-3":"size-4")}),!y&&(0,l.jsxs)("span",{className:"min-w-0 max-w-fit grow basis-0 truncate text-muted-foreground",children:[k.label,(0,l.jsx)("span",{className:"ml-2 text-muted-foreground/40",children:"·"})]}),(0,l.jsx)("span",{className:(0,g.cn)("truncate",!y&&"font-medium"),children:D?.label??(i||"Pick a model")})]}):(0,l.jsx)("span",{className:"truncate text-muted-foreground",children:p??(s?"Not picked":"App default")}),(0,l.jsx)(t.ChevronsUpDown,{className:(0,g.cn)("ml-auto shrink-0 text-muted-foreground",y?"size-2.5":"size-3.5")})]}),(0,l.jsxs)(u.PopoverContent,{align:"start",className:"flex w-[min(34rem,calc(100vw-2rem))] flex-row gap-0 overflow-hidden rounded-2xl p-0",children:[(0,l.jsxs)("div",{className:"flex max-h-80 w-48 shrink-0 flex-col gap-px overflow-y-auto border-r border-border/60 bg-muted/40 p-1.5",children:[f&&(0,l.jsxs)("button",{type:"button",onClick:()=>{f(),C(!1)},className:(0,g.cn)("mb-1 flex h-8.5 shrink-0 items-center gap-2 rounded-lg px-2 text-left text-[13px] outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",k?"hover:bg-muted/60":"bg-muted font-medium"),children:[(0,l.jsx)(n,{className:"size-4 shrink-0 text-muted-foreground"}),(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate",children:p??(s?"Not picked":"App default")}),!k&&(0,l.jsx)(a.Check,{className:"size-3.5 shrink-0"})]}),z.map(e=>(0,l.jsxs)("button",{type:"button",onClick:()=>S(e.id),className:(0,g.cn)("flex h-8.5 shrink-0 items-center gap-2 rounded-lg px-2 text-left text-[13px] outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",e.id===A?.id?"bg-muted font-medium":"hover:bg-muted/60",!e.hasKey&&"text-muted-foreground"),children:[(0,l.jsx)(M.ProviderIcon,{provider:e.id,className:"size-4 shrink-0"}),(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),!e.hasKey&&(0,l.jsx)(r.KeyRound,{className:"size-3 shrink-0"})]},e.id))]}),(0,l.jsx)("div",{className:"flex max-h-80 min-w-0 flex-1 flex-col gap-px overflow-y-auto p-1.5",children:A?A.hasKey?T&&!$.error?(0,l.jsxs)("div",{className:"space-y-2 p-2",children:[(0,l.jsxs)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:["Every model ",A.label," carries, with what each costs."]}),(0,l.jsx)(w,{provider:T,models:$.data??[],kind:s,value:A.id===e?i:"",loading:$.isLoading,onPick:O})]}):(0,l.jsxs)(l.Fragment,{children:[R(A).map(t=>{let s=A.id===e&&t.id===i;return(0,l.jsxs)("button",{type:"button",onClick:()=>O(t.id),className:(0,g.cn)("flex shrink-0 items-center gap-2 rounded-lg px-2.5 py-1.5 text-left outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",s?"bg-muted":"hover:bg-muted/60"),children:[(0,l.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("span",{className:"flex items-center gap-1.5 text-[13px] font-medium",children:[(0,l.jsx)("span",{className:"truncate",children:t.label}),(0,l.jsx)(I,{tier:t.tier})]}),(0,l.jsx)("span",{className:"block truncate font-mono text-[10.5px] text-muted-foreground",children:t.id})]}),s&&(0,l.jsx)(a.Check,{className:"size-3.5 shrink-0"})]},t.id)}),(0,l.jsx)("form",{onSubmit:e=>{e.preventDefault(),O(q)},className:"mt-1 px-1 pb-1",children:(0,l.jsx)(m.Input,{value:q,onChange:e=>H(e.target.value),spellCheck:!1,"aria-label":"Model id",placeholder:$.error?"Could not read the catalog — type an id":"or type a model id",className:"h-8 font-mono text-xs"})})]}):(0,l.jsxs)("div",{className:"space-y-2 p-2",children:[(0,l.jsx)("p",{className:(0,g.cn)("text-xs leading-relaxed",A.lostKey?g.WAITING_INK:"text-muted-foreground"),children:A.lostKey?A.signIn?(0,x.lostWords)(`The ${A.label} sign-in saved before`,"Sign in again."):(0,x.lostWords)(`The ${A.label} key saved before`,"Paste it again."):`${A.label} has no key yet.`}),(0,l.jsx)(P,{provider:A,onSaved:()=>N()})]}):null})]})]})}],146538)},689664,e=>{"use strict";var l=e.i(643957);e.s(["Check",()=>l.default])},77071,e=>{"use strict";var l=e.i(456420);let a={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};a.node;let t=(0,l.default)(a);e.s(["Plus",0,t],77071)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,835878,e=>{"use strict";var t=e.i(843476),n=e.i(635963);e.s(["BotRoster",0,function({bots:e}){return e.length<2?null:(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1.5",title:e.map(e=>e.name).join(", "),children:[(0,t.jsx)("span",{className:"flex items-center gap-0.5",children:e.slice(0,3).map(e=>(0,t.jsx)(n.BotMark,{size:18,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"},e.name))}),(0,t.jsxs)("span",{className:"font-mono text-[10px] text-muted-foreground",children:[e.length," bots"]})]})}])},351866,51481,825398,e=>{"use strict";var t=e.i(843476),n=e.i(401851),a=e.i(689664),s=e.i(716327),o=e.i(24071),r=e.i(456420);let i={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};i.node;let l=(0,r.default)(i);e.s(["CircleQuestionMark",0,l],51481);var d=e.i(508734),c=e.i(919191),u=e.i(632781);let m={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};m.node;let x=(0,r.default)(m);e.s(["RotateCw",0,x],825398);var b=e.i(263676),p=e.i(271645),f=e.i(176782),h=e.i(552245),g=e.i(225913),k=e.i(647163);let j=(0,g.cva)("group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full",{variants:{variant:{default:"*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",secondary:"*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",muted:"*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",tinted:"*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",outline:"*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30",ghost:"border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50",destructive:"*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30"}},defaultVariants:{variant:"default"}});function v({variant:e="default",align:n="start",className:a,...s}){return(0,t.jsx)("div",{"data-slot":"bubble","data-variant":e,"data-align":n,className:(0,k.cn)(j({variant:e}),a),...s})}function w({className:e,render:t,...n}){var a;return a={defaultTagName:"div",props:(0,f.mergeProps)({className:(0,k.cn)("w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-left [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50",e)},n),render:t,state:{slot:"bubble-content"}},(0,h.useRenderElement)(a.defaultTagName??"div",a,a)}(0,g.cva)("absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card has-[button]:p-0",{variants:{side:{top:"top-0 -translate-y-3/4",bottom:"bottom-0 translate-y-3/4"},align:{start:"left-3",end:"right-3"}},defaultVariants:{side:"bottom",align:"end"}});var N=e.i(496336),y=e.i(683408),_=e.i(660302),T=e.i(127341),z=e.i(6799),C=e.i(95187);let M=(0,C.createServerReference)("7ff09f7439ecc587fec9774691ced41c20de0788c5",C.callServer,void 0,C.findSourceMapURL,"compactThreadAction");var S=e.i(807038),B=e.i(635963),R=e.i(256604),$=e.i(621285),O=e.i(245629),I=e.i(609856),P=e.i(553429),F=e.i(978411),L=e.i(222055);function A({onClick:e}){return(0,t.jsx)("button",{type:"button",onClick:e,"aria-label":"Fold the room away",className:"grid size-7 shrink-0 place-items-center rounded-full bg-muted text-foreground outline-none transition-colors hover:bg-muted-foreground/20 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(b.X,{className:"size-3.5"})})}function q({thread:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(H,{thread:e}),(0,t.jsx)(E,{thread:e}),(0,t.jsx)(Y,{thread:e})]})}function H({thread:e}){let{contextTokens:n,tokens:a}=e;return n?(0,t.jsx)("span",{title:`Last step ${(0,k.formatCount)(n)} tokens \xb7 in total in ${(0,k.formatCount)(a.input)} \xb7 out ${(0,k.formatCount)(a.output)}`,className:"shrink-0 font-mono text-[10px] text-muted-foreground tabular-nums",children:(0,k.formatCount)(n)}):null}function E({thread:e}){let{contextTokens:n,contextBudget:a}=e,[s,o]=(0,p.useState)(!1),[r,i]=(0,I.useServerAction)(M,{onOk:()=>o(!0)}),[l,d]=(0,p.useState)(n);if(l!==n&&(d(n),o(!1)),!n||!a)return null;let c=Math.min(1,n/a);return(0,t.jsx)("button",{type:"button",disabled:i||s,onClick:()=>void r(e.id,e.bot.name),title:s?"It summarizes itself at its next step":`Context ${(0,k.formatCount)(n)} of ${(0,k.formatCount)(a)} — it summarizes itself at the end of the bar. Press to have it do so at its next step`,"aria-label":"Summarize this thread's context at its next step",className:"-my-2 flex h-6 shrink-0 items-center rounded-sm outline-none focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-default",children:(0,t.jsx)("span",{className:"block h-[3px] w-9 overflow-hidden rounded-full bg-muted",children:(0,t.jsx)("span",{className:(0,k.cn)("block h-full rounded-full",s?"animate-pulse bg-muted-foreground/40":c>.9?"bg-amber-500/80":"bg-muted-foreground/70"),style:{width:`${Math.max(4,Math.round(100*c))}%`}})})})}let D={working:"text-muted-foreground",waiting:k.WAITING_INK,done:"text-foreground",cancelled:"text-muted-foreground"},U={working:"working",waiting:"waiting",done:"done",cancelled:"stopped"};function Y({thread:e}){let n="done"===e.status&&e.seen?"text-muted-foreground":D[e.status];return"working"===e.status?(0,t.jsx)(_.ShinyText,{text:U.working,speed:2.2,className:"shrink-0 font-mono text-[10px]"}):(0,t.jsx)("span",{className:(0,k.cn)("flex shrink-0 items-center gap-1.5 font-mono text-[10px]",n),children:U[e.status]})}function V({thread:e,roster:n,side:a,onPick:s,className:o}){let r=(0,F.useOfficePointed)();return(0,p.useEffect)(()=>()=>F.officePointed.set(null),[]),(0,t.jsx)(T.Tabs,{value:a??e.bot.name,onValueChange:t=>s(t===e.bot.name?null:String(t)),className:(0,k.cn)("shrink-0 gap-0 px-3 pt-1 pb-0.5",o),children:(0,t.jsx)(T.TabsList,{className:"relative w-full justify-start gap-1 overflow-x-auto rounded-none bg-transparent p-0 scrollbar-none group-data-horizontal/tabs:h-auto",children:n.map(n=>{let a=G(e,n.name);return(0,t.jsxs)(T.TabsTrigger,{value:n.name,onPointerEnter:()=>F.officePointed.set(n.name),onPointerLeave:()=>F.officePointed.set(null),className:(0,k.cn)(K,"pl-1.5",r===n.name&&"bg-muted/60 text-foreground"),children:[(0,t.jsx)(B.BotMark,{size:16,seed:n.name,color:n.icon?.color,shape:n.icon?.shape,outline:n.icon?.outline,paint:n.icon?.paint,notify:"asking"===a,crossed:Q(e,n.name),className:"shrink-0"}),(0,t.jsx)("span",{className:"max-w-28 truncate",children:n.name}),"running"===a&&(0,t.jsx)(u.Loader2,{className:"size-3 animate-spin text-muted-foreground/70"})]},n.name)})})})}let K="h-7 flex-none rounded-full px-3 py-0 text-[12px] text-muted-foreground hover:bg-muted/60 data-active:bg-muted data-active:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-none dark:data-active:border-transparent dark:data-active:bg-muted",Q=(e,t)=>e.room.participants.some(e=>e.bot===t&&("cancelled"===e.state||"paused"===e.state));function G(e,t){let{room:n}=e;return n.questions.some(e=>e.bot===t)?"asking":"working"===e.status&&n.participants.some(e=>e.bot===t&&"running"===e.state)?"running":null}function W({turn:e,thread:n,self:a}){let s=e.speaker.name===a,o=s?"none":er(e.speaker)?"dark":"secondary",r=null;return(0,t.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 duration-300",children:(0,t.jsx)(em,{side:s?"start":"end",name:ei(e.speaker),mark:(0,t.jsx)(ec,{bot:e.speaker}),children:e.entries.map(i=>{if("work"===i.kind)return s?(0,t.jsx)(J,{lines:i.lines,trailing:i.open,bot:e.speaker,thread:n},i.key):(0,t.jsx)(X,{lines:i.lines,trailing:i.open,bot:e.speaker,thread:n},i.key);let l=(0,F.heardBy)(i.line),d=l&&l.name!==e.speaker.name&&l.name!==a&&!er(l)&&l.name!==r?l:null;return l&&(r=l.name),(0,t.jsx)(ex,{line:i.line,surface:o,mention:d,threadId:n.id},i.key)})})})}function X({lines:e,trailing:n,bot:a,thread:s}){var o;let[r,i]=(0,p.useState)(!1),[l,d]=(0,p.useState)(null),c=n?G(s,a.name):null,m=(o=e,[["tool","step"],["say","note"],["stop","stop"],["note","compaction"]].map(([e,t])=>[o.filter(t=>t.kind===e).length,t]).filter(([e])=>e>0).map(([e,t])=>`${e} ${t}${1===e?"":"s"}`).join(" · ")),x=e.filter(e=>e.tool?.results!==void 0);if(!c&&!m)return null;let b=e.findLast(e=>"tool"===e.kind||"say"===e.kind),f=r&&e.length>0;return(0,t.jsxs)("div",{className:(0,k.cn)("flex min-w-0 flex-col rounded-2xl bg-muted/40 p-1",f?"w-full":"w-fit max-w-full"),children:[(0,t.jsxs)("button",{type:"button",disabled:!e.length,"aria-expanded":f,onClick:()=>{i(e=>!e),d(null)},className:"flex min-w-0 items-center gap-2 rounded-xl px-2.5 py-1.5 text-left outline-none transition-colors enabled:hover:bg-muted/60 focus-visible:ring-3 focus-visible:ring-ring/50",children:["running"===c&&(0,t.jsx)(u.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground/60"}),c?(0,t.jsx)(_.ShinyText,{text:"asking"===c?"waiting on you":b?en(b):"working",tone:"asking"===c?"waiting":"muted",speed:2.4,className:(0,k.cn)("min-w-0 truncate text-[12px] leading-4",f&&"flex-1")}):(0,t.jsx)(ee,{words:b?en(b):"",facts:[m,function(e){let t=e.flatMap(e=>e.at?[(0,O.toDate)(e.at).getTime()]:[]);if(t.length<2)return"";let n=Math.round((Math.max(...t)-Math.min(...t))/1e3);if(n<1)return"";if(n<60)return`${n}s`;let a=Math.round(n/60);return a<60?`${a} min`:`${Math.floor(a/60)}h ${a%60}m`}(e)].filter(Boolean).join(" · "),grow:f}),e.length>0&&(0,t.jsx)(et,{open:f})]}),!f&&x.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-1 px-2 pt-0.5 pb-1.5",children:x.map(e=>e.tool&&(0,t.jsx)(L.StepTile,{tool:e.tool,onOpen:()=>{d(e.id),i(!0)}},e.id))}),f&&(0,t.jsx)("div",{className:"flex min-w-0 flex-col gap-0.5 pt-0.5",children:ew(e).map(e=>"tools"===e.kind?e.lines.map(e=>e.tool&&(0,t.jsx)(L.BotTool,{tool:e.tool,threadId:s.id,collapsed:e.id!==l},e.id)):"stops"===e.kind?(0,t.jsx)("div",{className:"px-1.5 py-1",children:(0,t.jsx)(ej,{lines:e.lines})},e.key):e.lines.map(e=>(0,t.jsx)(eg,{line:e,inset:!0},e.id)))})]})}function J({lines:e,trailing:n,bot:a,thread:s}){let o=n?G(s,a.name):null,r=e.some(e=>e.tool&&void 0===e.tool.results);return(0,t.jsxs)(t.Fragment,{children:[ew(e).map(e=>"tools"===e.kind?(0,t.jsx)(Z,{lines:e.lines,threadId:s.id},e.key):"stops"===e.kind?(0,t.jsx)(ej,{lines:e.lines},e.key):e.lines.map(e=>(0,t.jsx)(eg,{line:e},e.id))),o&&(0,t.jsx)(_.ShinyText,{text:"asking"===o?"waiting on you":"on the next step…",tone:"asking"===o?"waiting":"muted",speed:2.2,className:(0,k.cn)("block px-1 font-mono text-[10px]",r&&"invisible")})]})}function Z({lines:e,threadId:n}){return(0,t.jsx)("div",{className:"flex w-full flex-col gap-0.5 rounded-2xl bg-muted/40 p-1",children:e.map(e=>e.tool&&(0,t.jsx)(L.BotTool,{tool:e.tool,threadId:n,collapsed:!0},e.id))})}function ee({words:e,facts:n,grow:a=!1}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,k.cn)("min-w-0 truncate text-[12.5px] leading-5 text-foreground/80",a&&"flex-1"),children:e}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10.5px] leading-4 text-muted-foreground",children:n})]})}function et({open:e}){return(0,t.jsx)("span",{className:"grid size-5.5 shrink-0 place-items-center rounded-md bg-background text-muted-foreground ring-1 ring-border/60",children:(0,t.jsx)(s.ChevronDown,{className:(0,k.cn)("size-3.5 transition-transform",e&&"rotate-180")})})}function en(e){return"tool"===e.kind&&e.tool?e.tool.note??`${e.tool.name} \xb7 ${e.tool.input}`:(0,k.plainText)(e.text).replace(/\s+/g," ").trim()}function ea({thread:e}){let n="user"===e.startedBy?eo:es;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(el,{from:n,to:e.bot}),(0,t.jsx)(em,{side:"end",name:ei(n),mark:(0,t.jsx)(ec,{bot:n}),children:(0,t.jsx)(eu,{dark:!0,className:"py-2 pr-2 pl-3.5",children:(0,t.jsx)(N.FoldedText,{text:e.request,subject:"request",className:"wrap-anywhere"})})})]})}let es={name:P.ROOM_THURSDAY},eo={name:P.ROOM_USER},er=e=>e.name===es.name||e.name===eo.name,ei=e=>e.name===eo.name?"You":e.name;function el({from:e,to:n}){return(0,t.jsx)("div",{className:"flex animate-in justify-center fade-in duration-300",children:(0,t.jsxs)("span",{className:"flex max-w-full items-center gap-1.5 rounded-full bg-muted px-2.5 py-1 font-mono text-[10px] text-muted-foreground",children:[(0,t.jsx)(ed,{bot:e}),(0,t.jsx)("span",{className:"shrink-0 text-muted-foreground",children:e.name===eo.name?"asked":"invited"}),(0,t.jsx)(ed,{bot:n})]})})}function ed({bot:e}){return e.name===eo.name?(0,t.jsx)("span",{className:"shrink-0",children:"You"}):(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[e.name===es.name?(0,t.jsx)(R.ThursdayMark,{size:15,className:"shrink-0"}):(0,t.jsx)(B.BotMark,{size:15,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]})}function ec({bot:e}){return e.name===eo.name?null:e.name===es.name?(0,t.jsx)(R.ThursdayMark,{size:26,className:"mt-1 shrink-0"}):(0,t.jsx)(B.BotMark,{size:26,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"mt-1 shrink-0"})}function eu({dark:e=!1,children:n,className:a}){return(0,t.jsx)(v,{align:"end",variant:e?"default":"secondary",className:"max-w-full",children:(0,t.jsx)(w,{className:(0,k.cn)("rounded-tr-md px-3.5",a),children:(0,t.jsx)("div",{className:(0,k.cn)("min-w-0",e&&"inverse"),children:n})})})}function em({side:e,mark:n,name:a,children:s}){return(0,t.jsxs)("div",{className:(0,k.cn)("flex gap-2.5","end"===e&&"flex-row-reverse"),children:[n,(0,t.jsxs)("div",{className:(0,k.cn)("flex min-w-0 flex-1 flex-col gap-1.5 [&>*+*]:max-w-[80%]","end"===e&&"items-end"),children:[(0,t.jsx)("p",{className:"max-w-[80%] truncate px-1 font-mono text-[10px] text-muted-foreground",children:a}),s]})]})}function ex({line:e,surface:n,mention:a,threadId:s=null}){let o=!!e.question,r="result"===e.kind,i="none"!==n,l=(0,S.shortenPaths)(e.text),d=(0,t.jsxs)(t.Fragment,{children:[o&&(0,t.jsx)(eh,{}),a?(0,t.jsx)(ef,{bot:a,bubble:i,children:l}):(0,t.jsx)(eb,{bubble:i,className:(0,k.cn)(!r&&"leading-snug"),children:l}),(0,t.jsx)(S.Attachments,{text:e.text,from:s,onBubble:i,className:"mt-2"})]});return(0,t.jsxs)(t.Fragment,{children:[i?(0,t.jsx)(eu,{dark:"dark"===n,children:d}):(0,t.jsx)("div",{className:"min-w-0 max-w-full px-1",children:d}),e.steppedIn&&(0,t.jsxs)("p",{className:"flex items-center gap-1 px-1 font-mono text-[10px] text-muted-foreground",children:[(0,t.jsx)(c.CornerDownLeft,{className:"size-2.5"}),"stepped in"]}),r&&(0,t.jsx)("div",{className:"flex px-1",children:(0,t.jsx)(ek,{text:e.text})})]})}function eb({children:e,bubble:n=!1,className:a}){return(0,t.jsx)(y.Markdown,{className:(0,k.cn)("min-w-0 max-w-full text-[13px] leading-relaxed wrap-anywhere break-keep [&_h1]:text-[15px] [&_h2]:text-[14px] [&_h3]:text-[13px] [&_h3]:font-semibold [&_li]:my-0.5 [&_table]:text-[12px] [&_table]:wrap-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",n&&"[&_[data-streamdown=inline-code]]:text-[12px] [&_[data-streamdown=code-block]]:my-2 [&_[data-streamdown=code-block]]:gap-0 [&_[data-streamdown=code-block]]:rounded-[10px] [&_[data-streamdown=code-block]]:border-0 [&_[data-streamdown=code-block]]:bg-background [&_[data-streamdown=code-block]]:p-0 [&_[data-streamdown=code-block-header]]:h-7 [&_[data-streamdown=code-block-header]]:px-2.5 [&_[data-streamdown=code-block-header]]:text-[11px] [&_[data-streamdown=code-block-body]]:border-0 [&_[data-streamdown=code-block-body]]:bg-transparent! [&_[data-streamdown=code-block-body]]:px-2.5 [&_[data-streamdown=code-block-body]]:pt-0 [&_[data-streamdown=code-block-body]]:pb-2.5 [&_[data-streamdown=code-block-body]]:text-[12.5px] [&_[data-streamdown=code-block]_div:has(>[data-streamdown=code-block-actions])]:-mt-7 [&_[data-streamdown=code-block-actions]]:mr-1 [&_[data-streamdown=code-block-actions]]:border-0 [&_[data-streamdown=code-block-actions]]:bg-transparent!",a),children:e})}function ep({bot:e,bubble:n}){return(0,t.jsxs)("span",{className:(0,k.cn)("mr-1.5 inline-flex h-5 max-w-full items-center gap-1 rounded-full pr-2 pl-[3px] align-[-4px] text-[12px] leading-none font-medium whitespace-nowrap text-foreground",n?"bg-background":"bg-muted"),children:[(0,t.jsx)(B.BotMark,{size:14,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]})}function ef({bot:e,bubble:n,children:a}){return(0,t.jsxs)("div",{className:"min-w-0 max-w-full text-[13px] leading-snug",children:[(0,t.jsx)(ep,{bot:e,bubble:n}),(0,t.jsx)(eb,{bubble:n,className:"contents leading-snug [&>p:first-child]:inline",children:a})]})}function eh(){return(0,t.jsxs)("p",{className:"mb-1 flex items-center gap-1.5 text-[12px] leading-4 font-medium text-muted-foreground",children:[(0,t.jsx)(l,{className:"size-3.5 shrink-0"}),"Question"]})}function eg({line:e,inset:n=!1}){return"note"===e.kind?(0,t.jsxs)("details",{className:"w-full px-2 py-1 text-muted-foreground",children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-2.5 outline-none [&::-webkit-details-marker]:hidden",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),(0,t.jsx)("span",{className:"min-w-0 text-center font-mono text-[10px]",children:"Compacted — it goes on from its summary"}),(0,t.jsx)("span",{className:"h-px flex-1 bg-border"})]}),(0,t.jsx)(eb,{className:"mt-2 rounded-xl bg-muted/40 px-3 py-2 text-[11px]",children:e.text})]}):(0,t.jsx)(eb,{className:(0,k.cn)("text-[12.5px] text-muted-foreground",n?"px-2.5 py-1":"px-1"),children:e.text})}function ek({text:e}){let[n,s]=(0,p.useState)(!1),o=(0,p.useRef)(null);return(0,p.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]),(0,t.jsx)("button",{type:"button","aria-label":"Copy the answer",onClick:async()=>{try{await navigator.clipboard.writeText(e),s(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>s(!1),1400)}catch(e){z.toast.add({type:"error",title:"Could not copy the answer",description:(0,k.errorToString)(e)})}},className:"grid size-5 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:n?(0,t.jsx)(a.Check,{className:"size-3"}):(0,t.jsx)(d.Copy,{className:"size-3"})})}function ej({lines:e}){return(0,t.jsxs)("details",{className:"group min-w-0 px-1 text-muted-foreground",children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 text-[12.5px] leading-relaxed outline-none [&::-webkit-details-marker]:hidden",children:[(0,t.jsx)(x,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:ev(e[0].text)}),e.length>1&&(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:["×",e.length]}),(0,t.jsx)(s.ChevronDown,{className:"size-2.5 shrink-0 text-muted-foreground/70 transition-transform group-open:rotate-180"})]}),(0,t.jsx)("div",{className:"mt-1 space-y-1 pl-4.5 text-[11px] leading-relaxed",children:e.map(e=>(0,t.jsxs)("p",{className:"flex gap-2 break-keep wrap-anywhere",children:[e.at&&(0,t.jsx)("span",{className:"shrink-0 font-mono text-muted-foreground tabular-nums",children:(0,n.format)((0,O.toDate)(e.at),"HH:mm:ss")}),(0,t.jsx)("span",{className:"min-w-0",children:e.text})]},e.id))})]})}let ev=e=>e.split(" (")[0].replace(/\.$/,"");function ew(e){let t=[];for(let n of e){let e="tool"===n.kind&&n.tool?"tools":"stop"===n.kind?"stops":"said",a=t.at(-1),s=a?.kind===e&&("stops"!==e||ev(a.lines[0].text)===ev(n.text));a&&s?a.lines.push(n):t.push({kind:e,key:n.id,lines:[n]})}return t}e.s(["Conversation",0,function({thread:e,tab:n=null,onTab:a,className:s,tabsClassName:o}){let r,i=(0,p.useRef)(null),l=(0,p.useRef)(!0),d=e.roster,c=a&&n!==e.bot.name&&d.some(e=>e.name===n)?n:null,u=c??e.bot.name,m=d.filter(t=>(!c||t.name===c)&&G(e,t.name)),x=(0,F.threadItems)((r=new Set(e.room.questions.map(e=>e.id))).size?{...e,lines:e.lines.filter(e=>!("ask"===e.kind&&void 0!==e.questionId&&r.has(e.questionId)))}:e,u,m);return(0,p.useEffect)(()=>{l.current=!0},[e.id,c]),(0,p.useEffect)(()=>{let e=i.current;e&&l.current&&(e.scrollTop=e.scrollHeight)},[e.lines,e.status,c]),(0,p.useEffect)(()=>{let e=i.current;if(!e)return;let t=new ResizeObserver(()=>{l.current&&(e.scrollTop=e.scrollHeight)});for(let n of(t.observe(e),Array.from(e.children)))t.observe(n);return()=>t.disconnect()},[x.length,e.lines,c]),(0,t.jsxs)($.FileViewer,{children:[a&&(0,t.jsx)(V,{thread:e,roster:d,side:c,onPick:a,className:o}),(0,t.jsxs)("div",{ref:i,onScroll:e=>{let t=e.currentTarget;l.current=t.scrollHeight-t.scrollTop-t.clientHeight<24},className:(0,k.cn)("min-w-0 max-h-[64vh] space-y-3 overflow-y-auto px-4 pt-6 pb-4 mask-[linear-gradient(to_bottom,transparent,black_2rem)] scrollbar-none",s),children:[!c&&(0,t.jsx)(ea,{thread:e}),x.map(n=>"invite"===n.kind?(0,t.jsx)(el,{from:n.from,to:n.to},n.key):(0,t.jsx)(W,{turn:n,thread:e,self:u},n.key))]})]})},"FoldButton",0,A,"TAB",0,K,"THURSDAY",0,es,"ThreadFacts",0,q,"ThreadHeader",0,function({thread:e,onBack:n,onClose:a,titled:s=!0,children:r}){return s?(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-3 pb-1",children:[(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":"Back to the list",className:"shrink-0 rounded-md p-1 text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(o.ChevronLeft,{className:"size-4"})}),(0,t.jsx)(B.BotMark,{size:22,seed:e.bot.name,color:e.bot.icon?.color,shape:e.bot.icon?.shape,outline:e.bot.icon?.outline,paint:e.bot.icon?.paint,notify:!1,crossed:"cancelled"===e.status||Q(e,e.bot.name)}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium",children:e.label}),(0,t.jsx)(q,{thread:e}),r,(0,t.jsx)(A,{onClick:a})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-3 pb-1",children:[(0,t.jsxs)("button",{type:"button",onClick:n,"aria-label":"Back to the list",className:"flex shrink-0 items-center gap-1 rounded-md p-1 pr-2 text-[12.5px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(o.ChevronLeft,{className:"size-4"}),"Threads"]}),(0,t.jsx)("span",{className:"flex-1"}),(0,t.jsx)(q,{thread:e}),r,(0,t.jsx)(A,{onClick:a})]})},"YOU",0,eo,"leadOf",0,ev,"stepOf",0,en],351866)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,835878,e=>{"use strict";var t=e.i(843476),n=e.i(635963);e.s(["BotRoster",0,function({bots:e}){return e.length<2?null:(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1.5",title:e.map(e=>e.name).join(", "),children:[(0,t.jsx)("span",{className:"flex items-center gap-0.5",children:e.slice(0,3).map(e=>(0,t.jsx)(n.BotMark,{size:18,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"},e.name))}),(0,t.jsxs)("span",{className:"font-mono text-[10px] text-muted-foreground",children:[e.length," bots"]})]})}])},351866,51481,825398,e=>{"use strict";var t=e.i(843476),n=e.i(401851),a=e.i(689664),s=e.i(716327),o=e.i(24071),r=e.i(456420);let i={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};i.node;let l=(0,r.default)(i);e.s(["CircleQuestionMark",0,l],51481);var d=e.i(508734),c=e.i(919191),u=e.i(632781);let m={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};m.node;let x=(0,r.default)(m);e.s(["RotateCw",0,x],825398);var b=e.i(263676),p=e.i(271645),f=e.i(176782),h=e.i(552245),g=e.i(225913),k=e.i(647163);let j=(0,g.cva)("group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full",{variants:{variant:{default:"*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",secondary:"*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",muted:"*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",tinted:"*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",outline:"*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30",ghost:"border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50",destructive:"*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30"}},defaultVariants:{variant:"default"}});function v({variant:e="default",align:n="start",className:a,...s}){return(0,t.jsx)("div",{"data-slot":"bubble","data-variant":e,"data-align":n,className:(0,k.cn)(j({variant:e}),a),...s})}function w({className:e,render:t,...n}){var a;return a={defaultTagName:"div",props:(0,f.mergeProps)({className:(0,k.cn)("w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-left [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50",e)},n),render:t,state:{slot:"bubble-content"}},(0,h.useRenderElement)(a.defaultTagName??"div",a,a)}(0,g.cva)("absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card has-[button]:p-0",{variants:{side:{top:"top-0 -translate-y-3/4",bottom:"bottom-0 translate-y-3/4"},align:{start:"left-3",end:"right-3"}},defaultVariants:{side:"bottom",align:"end"}});var N=e.i(496336),y=e.i(683408),_=e.i(660302),T=e.i(127341),z=e.i(6799),C=e.i(95187);let M=(0,C.createServerReference)("7f328f8618350314c127c529bcc0fde2b9d1d35186",C.callServer,void 0,C.findSourceMapURL,"compactThreadAction");var S=e.i(807038),B=e.i(635963),R=e.i(256604),$=e.i(621285),O=e.i(245629),I=e.i(609856),P=e.i(553429),F=e.i(978411),L=e.i(222055);function A({onClick:e}){return(0,t.jsx)("button",{type:"button",onClick:e,"aria-label":"Fold the room away",className:"grid size-7 shrink-0 place-items-center rounded-full bg-muted text-foreground outline-none transition-colors hover:bg-muted-foreground/20 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(b.X,{className:"size-3.5"})})}function q({thread:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(H,{thread:e}),(0,t.jsx)(E,{thread:e}),(0,t.jsx)(Y,{thread:e})]})}function H({thread:e}){let{contextTokens:n,tokens:a}=e;return n?(0,t.jsx)("span",{title:`Last step ${(0,k.formatCount)(n)} tokens \xb7 in total in ${(0,k.formatCount)(a.input)} \xb7 out ${(0,k.formatCount)(a.output)}`,className:"shrink-0 font-mono text-[10px] text-muted-foreground tabular-nums",children:(0,k.formatCount)(n)}):null}function E({thread:e}){let{contextTokens:n,contextBudget:a}=e,[s,o]=(0,p.useState)(!1),[r,i]=(0,I.useServerAction)(M,{onOk:()=>o(!0)}),[l,d]=(0,p.useState)(n);if(l!==n&&(d(n),o(!1)),!n||!a)return null;let c=Math.min(1,n/a);return(0,t.jsx)("button",{type:"button",disabled:i||s,onClick:()=>void r(e.id,e.bot.name),title:s?"It summarizes itself at its next step":`Context ${(0,k.formatCount)(n)} of ${(0,k.formatCount)(a)} — it summarizes itself at the end of the bar. Press to have it do so at its next step`,"aria-label":"Summarize this thread's context at its next step",className:"-my-2 flex h-6 shrink-0 items-center rounded-sm outline-none focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-default",children:(0,t.jsx)("span",{className:"block h-[3px] w-9 overflow-hidden rounded-full bg-muted",children:(0,t.jsx)("span",{className:(0,k.cn)("block h-full rounded-full",s?"animate-pulse bg-muted-foreground/40":c>.9?"bg-amber-500/80":"bg-muted-foreground/70"),style:{width:`${Math.max(4,Math.round(100*c))}%`}})})})}let D={working:"text-muted-foreground",waiting:k.WAITING_INK,done:"text-foreground",cancelled:"text-muted-foreground"},U={working:"working",waiting:"waiting",done:"done",cancelled:"stopped"};function Y({thread:e}){let n="done"===e.status&&e.seen?"text-muted-foreground":D[e.status];return"working"===e.status?(0,t.jsx)(_.ShinyText,{text:U.working,speed:2.2,className:"shrink-0 font-mono text-[10px]"}):(0,t.jsx)("span",{className:(0,k.cn)("flex shrink-0 items-center gap-1.5 font-mono text-[10px]",n),children:U[e.status]})}function V({thread:e,roster:n,side:a,onPick:s,className:o}){let r=(0,F.useOfficePointed)();return(0,p.useEffect)(()=>()=>F.officePointed.set(null),[]),(0,t.jsx)(T.Tabs,{value:a??e.bot.name,onValueChange:t=>s(t===e.bot.name?null:String(t)),className:(0,k.cn)("shrink-0 gap-0 px-3 pt-1 pb-0.5",o),children:(0,t.jsx)(T.TabsList,{className:"relative w-full justify-start gap-1 overflow-x-auto rounded-none bg-transparent p-0 scrollbar-none group-data-horizontal/tabs:h-auto",children:n.map(n=>{let a=G(e,n.name);return(0,t.jsxs)(T.TabsTrigger,{value:n.name,onPointerEnter:()=>F.officePointed.set(n.name),onPointerLeave:()=>F.officePointed.set(null),className:(0,k.cn)(K,"pl-1.5",r===n.name&&"bg-muted/60 text-foreground"),children:[(0,t.jsx)(B.BotMark,{size:16,seed:n.name,color:n.icon?.color,shape:n.icon?.shape,outline:n.icon?.outline,paint:n.icon?.paint,notify:"asking"===a,crossed:Q(e,n.name),className:"shrink-0"}),(0,t.jsx)("span",{className:"max-w-28 truncate",children:n.name}),"running"===a&&(0,t.jsx)(u.Loader2,{className:"size-3 animate-spin text-muted-foreground/70"})]},n.name)})})})}let K="h-7 flex-none rounded-full px-3 py-0 text-[12px] text-muted-foreground hover:bg-muted/60 data-active:bg-muted data-active:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-none dark:data-active:border-transparent dark:data-active:bg-muted",Q=(e,t)=>e.room.participants.some(e=>e.bot===t&&("cancelled"===e.state||"paused"===e.state));function G(e,t){let{room:n}=e;return n.questions.some(e=>e.bot===t)?"asking":"working"===e.status&&n.participants.some(e=>e.bot===t&&"running"===e.state)?"running":null}function W({turn:e,thread:n,self:a}){let s=e.speaker.name===a,o=s?"none":er(e.speaker)?"dark":"secondary",r=null;return(0,t.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 duration-300",children:(0,t.jsx)(em,{side:s?"start":"end",name:ei(e.speaker),mark:(0,t.jsx)(ec,{bot:e.speaker}),children:e.entries.map(i=>{if("work"===i.kind)return s?(0,t.jsx)(J,{lines:i.lines,trailing:i.open,bot:e.speaker,thread:n},i.key):(0,t.jsx)(X,{lines:i.lines,trailing:i.open,bot:e.speaker,thread:n},i.key);let l=(0,F.heardBy)(i.line),d=l&&l.name!==e.speaker.name&&l.name!==a&&!er(l)&&l.name!==r?l:null;return l&&(r=l.name),(0,t.jsx)(ex,{line:i.line,surface:o,mention:d,threadId:n.id},i.key)})})})}function X({lines:e,trailing:n,bot:a,thread:s}){var o;let[r,i]=(0,p.useState)(!1),[l,d]=(0,p.useState)(null),c=n?G(s,a.name):null,m=(o=e,[["tool","step"],["say","note"],["stop","stop"],["note","compaction"]].map(([e,t])=>[o.filter(t=>t.kind===e).length,t]).filter(([e])=>e>0).map(([e,t])=>`${e} ${t}${1===e?"":"s"}`).join(" · ")),x=e.filter(e=>e.tool?.results!==void 0);if(!c&&!m)return null;let b=e.findLast(e=>"tool"===e.kind||"say"===e.kind),f=r&&e.length>0;return(0,t.jsxs)("div",{className:(0,k.cn)("flex min-w-0 flex-col rounded-2xl bg-muted/40 p-1",f?"w-full":"w-fit max-w-full"),children:[(0,t.jsxs)("button",{type:"button",disabled:!e.length,"aria-expanded":f,onClick:()=>{i(e=>!e),d(null)},className:"flex min-w-0 items-center gap-2 rounded-xl px-2.5 py-1.5 text-left outline-none transition-colors enabled:hover:bg-muted/60 focus-visible:ring-3 focus-visible:ring-ring/50",children:["running"===c&&(0,t.jsx)(u.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground/60"}),c?(0,t.jsx)(_.ShinyText,{text:"asking"===c?"waiting on you":b?en(b):"working",tone:"asking"===c?"waiting":"muted",speed:2.4,className:(0,k.cn)("min-w-0 truncate text-[12px] leading-4",f&&"flex-1")}):(0,t.jsx)(ee,{words:b?en(b):"",facts:[m,function(e){let t=e.flatMap(e=>e.at?[(0,O.toDate)(e.at).getTime()]:[]);if(t.length<2)return"";let n=Math.round((Math.max(...t)-Math.min(...t))/1e3);if(n<1)return"";if(n<60)return`${n}s`;let a=Math.round(n/60);return a<60?`${a} min`:`${Math.floor(a/60)}h ${a%60}m`}(e)].filter(Boolean).join(" · "),grow:f}),e.length>0&&(0,t.jsx)(et,{open:f})]}),!f&&x.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-1 px-2 pt-0.5 pb-1.5",children:x.map(e=>e.tool&&(0,t.jsx)(L.StepTile,{tool:e.tool,onOpen:()=>{d(e.id),i(!0)}},e.id))}),f&&(0,t.jsx)("div",{className:"flex min-w-0 flex-col gap-0.5 pt-0.5",children:ew(e).map(e=>"tools"===e.kind?e.lines.map(e=>e.tool&&(0,t.jsx)(L.BotTool,{tool:e.tool,threadId:s.id,collapsed:e.id!==l},e.id)):"stops"===e.kind?(0,t.jsx)("div",{className:"px-1.5 py-1",children:(0,t.jsx)(ej,{lines:e.lines})},e.key):e.lines.map(e=>(0,t.jsx)(eg,{line:e,inset:!0},e.id)))})]})}function J({lines:e,trailing:n,bot:a,thread:s}){let o=n?G(s,a.name):null,r=e.some(e=>e.tool&&void 0===e.tool.results);return(0,t.jsxs)(t.Fragment,{children:[ew(e).map(e=>"tools"===e.kind?(0,t.jsx)(Z,{lines:e.lines,threadId:s.id},e.key):"stops"===e.kind?(0,t.jsx)(ej,{lines:e.lines},e.key):e.lines.map(e=>(0,t.jsx)(eg,{line:e},e.id))),o&&(0,t.jsx)(_.ShinyText,{text:"asking"===o?"waiting on you":"on the next step…",tone:"asking"===o?"waiting":"muted",speed:2.2,className:(0,k.cn)("block px-1 font-mono text-[10px]",r&&"invisible")})]})}function Z({lines:e,threadId:n}){return(0,t.jsx)("div",{className:"flex w-full flex-col gap-0.5 rounded-2xl bg-muted/40 p-1",children:e.map(e=>e.tool&&(0,t.jsx)(L.BotTool,{tool:e.tool,threadId:n,collapsed:!0},e.id))})}function ee({words:e,facts:n,grow:a=!1}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,k.cn)("min-w-0 truncate text-[12.5px] leading-5 text-foreground/80",a&&"flex-1"),children:e}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10.5px] leading-4 text-muted-foreground",children:n})]})}function et({open:e}){return(0,t.jsx)("span",{className:"grid size-5.5 shrink-0 place-items-center rounded-md bg-background text-muted-foreground ring-1 ring-border/60",children:(0,t.jsx)(s.ChevronDown,{className:(0,k.cn)("size-3.5 transition-transform",e&&"rotate-180")})})}function en(e){return"tool"===e.kind&&e.tool?e.tool.note??`${e.tool.name} \xb7 ${e.tool.input}`:(0,k.plainText)(e.text).replace(/\s+/g," ").trim()}function ea({thread:e}){let n="user"===e.startedBy?eo:es;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(el,{from:n,to:e.bot}),(0,t.jsx)(em,{side:"end",name:ei(n),mark:(0,t.jsx)(ec,{bot:n}),children:(0,t.jsx)(eu,{dark:!0,className:"py-2 pr-2 pl-3.5",children:(0,t.jsx)(N.FoldedText,{text:e.request,subject:"request",className:"wrap-anywhere"})})})]})}let es={name:P.ROOM_THURSDAY},eo={name:P.ROOM_USER},er=e=>e.name===es.name||e.name===eo.name,ei=e=>e.name===eo.name?"You":e.name;function el({from:e,to:n}){return(0,t.jsx)("div",{className:"flex animate-in justify-center fade-in duration-300",children:(0,t.jsxs)("span",{className:"flex max-w-full items-center gap-1.5 rounded-full bg-muted px-2.5 py-1 font-mono text-[10px] text-muted-foreground",children:[(0,t.jsx)(ed,{bot:e}),(0,t.jsx)("span",{className:"shrink-0 text-muted-foreground",children:e.name===eo.name?"asked":"invited"}),(0,t.jsx)(ed,{bot:n})]})})}function ed({bot:e}){return e.name===eo.name?(0,t.jsx)("span",{className:"shrink-0",children:"You"}):(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[e.name===es.name?(0,t.jsx)(R.ThursdayMark,{size:15,className:"shrink-0"}):(0,t.jsx)(B.BotMark,{size:15,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]})}function ec({bot:e}){return e.name===eo.name?null:e.name===es.name?(0,t.jsx)(R.ThursdayMark,{size:26,className:"mt-1 shrink-0"}):(0,t.jsx)(B.BotMark,{size:26,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"mt-1 shrink-0"})}function eu({dark:e=!1,children:n,className:a}){return(0,t.jsx)(v,{align:"end",variant:e?"default":"secondary",className:"max-w-full",children:(0,t.jsx)(w,{className:(0,k.cn)("rounded-tr-md px-3.5",a),children:(0,t.jsx)("div",{className:(0,k.cn)("min-w-0",e&&"inverse"),children:n})})})}function em({side:e,mark:n,name:a,children:s}){return(0,t.jsxs)("div",{className:(0,k.cn)("flex gap-2.5","end"===e&&"flex-row-reverse"),children:[n,(0,t.jsxs)("div",{className:(0,k.cn)("flex min-w-0 flex-1 flex-col gap-1.5 [&>*+*]:max-w-[80%]","end"===e&&"items-end"),children:[(0,t.jsx)("p",{className:"max-w-[80%] truncate px-1 font-mono text-[10px] text-muted-foreground",children:a}),s]})]})}function ex({line:e,surface:n,mention:a,threadId:s=null}){let o=!!e.question,r="result"===e.kind,i="none"!==n,l=(0,S.shortenPaths)(e.text),d=(0,t.jsxs)(t.Fragment,{children:[o&&(0,t.jsx)(eh,{}),a?(0,t.jsx)(ef,{bot:a,bubble:i,children:l}):(0,t.jsx)(eb,{bubble:i,className:(0,k.cn)(!r&&"leading-snug"),children:l}),(0,t.jsx)(S.Attachments,{text:e.text,from:s,onBubble:i,className:"mt-2"})]});return(0,t.jsxs)(t.Fragment,{children:[i?(0,t.jsx)(eu,{dark:"dark"===n,children:d}):(0,t.jsx)("div",{className:"min-w-0 max-w-full px-1",children:d}),e.steppedIn&&(0,t.jsxs)("p",{className:"flex items-center gap-1 px-1 font-mono text-[10px] text-muted-foreground",children:[(0,t.jsx)(c.CornerDownLeft,{className:"size-2.5"}),"stepped in"]}),r&&(0,t.jsx)("div",{className:"flex px-1",children:(0,t.jsx)(ek,{text:e.text})})]})}function eb({children:e,bubble:n=!1,className:a}){return(0,t.jsx)(y.Markdown,{className:(0,k.cn)("min-w-0 max-w-full text-[13px] leading-relaxed wrap-anywhere break-keep [&_h1]:text-[15px] [&_h2]:text-[14px] [&_h3]:text-[13px] [&_h3]:font-semibold [&_li]:my-0.5 [&_table]:text-[12px] [&_table]:wrap-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",n&&"[&_[data-streamdown=inline-code]]:text-[12px] [&_[data-streamdown=code-block]]:my-2 [&_[data-streamdown=code-block]]:gap-0 [&_[data-streamdown=code-block]]:rounded-[10px] [&_[data-streamdown=code-block]]:border-0 [&_[data-streamdown=code-block]]:bg-background [&_[data-streamdown=code-block]]:p-0 [&_[data-streamdown=code-block-header]]:h-7 [&_[data-streamdown=code-block-header]]:px-2.5 [&_[data-streamdown=code-block-header]]:text-[11px] [&_[data-streamdown=code-block-body]]:border-0 [&_[data-streamdown=code-block-body]]:bg-transparent! [&_[data-streamdown=code-block-body]]:px-2.5 [&_[data-streamdown=code-block-body]]:pt-0 [&_[data-streamdown=code-block-body]]:pb-2.5 [&_[data-streamdown=code-block-body]]:text-[12.5px] [&_[data-streamdown=code-block]_div:has(>[data-streamdown=code-block-actions])]:-mt-7 [&_[data-streamdown=code-block-actions]]:mr-1 [&_[data-streamdown=code-block-actions]]:border-0 [&_[data-streamdown=code-block-actions]]:bg-transparent!",a),children:e})}function ep({bot:e,bubble:n}){return(0,t.jsxs)("span",{className:(0,k.cn)("mr-1.5 inline-flex h-5 max-w-full items-center gap-1 rounded-full pr-2 pl-[3px] align-[-4px] text-[12px] leading-none font-medium whitespace-nowrap text-foreground",n?"bg-background":"bg-muted"),children:[(0,t.jsx)(B.BotMark,{size:14,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]})}function ef({bot:e,bubble:n,children:a}){return(0,t.jsxs)("div",{className:"min-w-0 max-w-full text-[13px] leading-snug",children:[(0,t.jsx)(ep,{bot:e,bubble:n}),(0,t.jsx)(eb,{bubble:n,className:"contents leading-snug [&>p:first-child]:inline",children:a})]})}function eh(){return(0,t.jsxs)("p",{className:"mb-1 flex items-center gap-1.5 text-[12px] leading-4 font-medium text-muted-foreground",children:[(0,t.jsx)(l,{className:"size-3.5 shrink-0"}),"Question"]})}function eg({line:e,inset:n=!1}){return"note"===e.kind?(0,t.jsxs)("details",{className:"w-full px-2 py-1 text-muted-foreground",children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-2.5 outline-none [&::-webkit-details-marker]:hidden",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),(0,t.jsx)("span",{className:"min-w-0 text-center font-mono text-[10px]",children:"Compacted — it goes on from its summary"}),(0,t.jsx)("span",{className:"h-px flex-1 bg-border"})]}),(0,t.jsx)(eb,{className:"mt-2 rounded-xl bg-muted/40 px-3 py-2 text-[11px]",children:e.text})]}):(0,t.jsx)(eb,{className:(0,k.cn)("text-[12.5px] text-muted-foreground",n?"px-2.5 py-1":"px-1"),children:e.text})}function ek({text:e}){let[n,s]=(0,p.useState)(!1),o=(0,p.useRef)(null);return(0,p.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]),(0,t.jsx)("button",{type:"button","aria-label":"Copy the answer",onClick:async()=>{try{await navigator.clipboard.writeText(e),s(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>s(!1),1400)}catch(e){z.toast.add({type:"error",title:"Could not copy the answer",description:(0,k.errorToString)(e)})}},className:"grid size-5 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:n?(0,t.jsx)(a.Check,{className:"size-3"}):(0,t.jsx)(d.Copy,{className:"size-3"})})}function ej({lines:e}){return(0,t.jsxs)("details",{className:"group min-w-0 px-1 text-muted-foreground",children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 text-[12.5px] leading-relaxed outline-none [&::-webkit-details-marker]:hidden",children:[(0,t.jsx)(x,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:ev(e[0].text)}),e.length>1&&(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:["×",e.length]}),(0,t.jsx)(s.ChevronDown,{className:"size-2.5 shrink-0 text-muted-foreground/70 transition-transform group-open:rotate-180"})]}),(0,t.jsx)("div",{className:"mt-1 space-y-1 pl-4.5 text-[11px] leading-relaxed",children:e.map(e=>(0,t.jsxs)("p",{className:"flex gap-2 break-keep wrap-anywhere",children:[e.at&&(0,t.jsx)("span",{className:"shrink-0 font-mono text-muted-foreground tabular-nums",children:(0,n.format)((0,O.toDate)(e.at),"HH:mm:ss")}),(0,t.jsx)("span",{className:"min-w-0",children:e.text})]},e.id))})]})}let ev=e=>e.split(" (")[0].replace(/\.$/,"");function ew(e){let t=[];for(let n of e){let e="tool"===n.kind&&n.tool?"tools":"stop"===n.kind?"stops":"said",a=t.at(-1),s=a?.kind===e&&("stops"!==e||ev(a.lines[0].text)===ev(n.text));a&&s?a.lines.push(n):t.push({kind:e,key:n.id,lines:[n]})}return t}e.s(["Conversation",0,function({thread:e,tab:n=null,onTab:a,className:s,tabsClassName:o}){let r,i=(0,p.useRef)(null),l=(0,p.useRef)(!0),d=e.roster,c=a&&n!==e.bot.name&&d.some(e=>e.name===n)?n:null,u=c??e.bot.name,m=d.filter(t=>(!c||t.name===c)&&G(e,t.name)),x=(0,F.threadItems)((r=new Set(e.room.questions.map(e=>e.id))).size?{...e,lines:e.lines.filter(e=>!("ask"===e.kind&&void 0!==e.questionId&&r.has(e.questionId)))}:e,u,m);return(0,p.useEffect)(()=>{l.current=!0},[e.id,c]),(0,p.useEffect)(()=>{let e=i.current;e&&l.current&&(e.scrollTop=e.scrollHeight)},[e.lines,e.status,c]),(0,p.useEffect)(()=>{let e=i.current;if(!e)return;let t=new ResizeObserver(()=>{l.current&&(e.scrollTop=e.scrollHeight)});for(let n of(t.observe(e),Array.from(e.children)))t.observe(n);return()=>t.disconnect()},[x.length,e.lines,c]),(0,t.jsxs)($.FileViewer,{children:[a&&(0,t.jsx)(V,{thread:e,roster:d,side:c,onPick:a,className:o}),(0,t.jsxs)("div",{ref:i,onScroll:e=>{let t=e.currentTarget;l.current=t.scrollHeight-t.scrollTop-t.clientHeight<24},className:(0,k.cn)("min-w-0 max-h-[64vh] space-y-3 overflow-y-auto px-4 pt-6 pb-4 mask-[linear-gradient(to_bottom,transparent,black_2rem)] scrollbar-none",s),children:[!c&&(0,t.jsx)(ea,{thread:e}),x.map(n=>"invite"===n.kind?(0,t.jsx)(el,{from:n.from,to:n.to},n.key):(0,t.jsx)(W,{turn:n,thread:e,self:u},n.key))]})]})},"FoldButton",0,A,"TAB",0,K,"THURSDAY",0,es,"ThreadFacts",0,q,"ThreadHeader",0,function({thread:e,onBack:n,onClose:a,titled:s=!0,children:r}){return s?(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-3 pb-1",children:[(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":"Back to the list",className:"shrink-0 rounded-md p-1 text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(o.ChevronLeft,{className:"size-4"})}),(0,t.jsx)(B.BotMark,{size:22,seed:e.bot.name,color:e.bot.icon?.color,shape:e.bot.icon?.shape,outline:e.bot.icon?.outline,paint:e.bot.icon?.paint,notify:!1,crossed:"cancelled"===e.status||Q(e,e.bot.name)}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium",children:e.label}),(0,t.jsx)(q,{thread:e}),r,(0,t.jsx)(A,{onClick:a})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-3 pb-1",children:[(0,t.jsxs)("button",{type:"button",onClick:n,"aria-label":"Back to the list",className:"flex shrink-0 items-center gap-1 rounded-md p-1 pr-2 text-[12.5px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(o.ChevronLeft,{className:"size-4"}),"Threads"]}),(0,t.jsx)("span",{className:"flex-1"}),(0,t.jsx)(q,{thread:e}),r,(0,t.jsx)(A,{onClick:a})]})},"YOU",0,eo,"leadOf",0,ev,"stepOf",0,en],351866)}]);
|