(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,869057,966980,e=>{"use strict";let t=new Map;e.s(["f",0,function(e,r,a){return null==e?"":(function(e,r){let a=JSON.stringify({locale:function e(t){return Array.isArray(t)?t.map(t=>e(t)).join(","):null==t?"":String(t)}(e),options:r}),n=t.get(a);if(n)return n;let i=new Intl.NumberFormat(e,r);return t.set(a,i),i})(r,a).format(e)}],869057),e.s(["f",0,function(e,t,r){return(e-t)*100/(r-t)}],966980)},39835,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))});e.s(["f",0,r],39835)},215891,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"}))});e.s(["f",0,r],215891)},739308,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});e.s(["f",0,r],739308)},411892,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))});e.s(["f",0,r],411892)},143128,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))});e.s(["f",0,r],143128)},470239,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))});e.s(["f",0,r],470239)},596520,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.114 5.636a9 9 0 0 1 0 12.728M16.463 8.288a5.25 5.25 0 0 1 0 7.424M6.75 8.25l4.72-4.72a.75.75 0 0 1 1.28.53v15.88a.75.75 0 0 1-1.28.53l-4.72-4.72H4.51c-.88 0-1.704-.507-1.938-1.354A9.009 9.009 0 0 1 2.25 12c0-.83.112-1.633.322-2.396C2.806 8.756 3.63 8.25 4.51 8.25H6.75Z"}))});e.s(["f",0,r],596520)},973523,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z"}))});e.s(["f",0,r],973523)},708638,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...a},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M18.97 3.659a2.25 2.25 0 0 0-3.182 0l-10.94 10.94a3.75 3.75 0 1 0 5.304 5.303l7.693-7.693a.75.75 0 0 1 1.06 1.06l-7.693 7.693a5.25 5.25 0 1 1-7.424-7.424l10.939-10.94a3.75 3.75 0 1 1 5.303 5.304L9.097 18.835l-.008.008-.007.007-.002.002-.003.002A2.25 2.25 0 0 1 5.91 15.66l7.81-7.81a.75.75 0 0 1 1.061 1.06l-7.81 7.81a.75.75 0 0 0 1.054 1.068L18.97 6.84a2.25 2.25 0 0 0 0-3.182Z",clipRule:"evenodd"}))});e.s(["f",0,r],708638)},859986,e=>{"use strict";var t=e.i(651681);let r={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};r.node;let a=(0,t.f)(r);e.s(["f",0,a],859986)},526475,e=>{"use strict";var t=e.i(651681);let r={name:"expand",size:24,node:[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]};r.node;let a=(0,t.f)(r);e.s(["f",0,a],526475)},283884,e=>{"use strict";var t=e.i(651681);let r={name:"pause",size:24,node:[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]};r.node;let a=(0,t.f)(r);e.s(["f",0,a],283884)},502704,e=>{"use strict";var t=e.i(651681);let r={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};r.node;let a=(0,t.f)(r);e.s(["f",0,a],502704)},6146,e=>{"use strict";var t=e.i(663456),r=e.i(16043),a=e.i(535072),n=e.i(402600),i=e.i(953401);let l=/^\/workspaces\/[^/]+\/(?:chat|fusion)(?:\/|$)/;e.s(["M",0,"data-dashboard-sidebar-animated","K",0,"data-dashboard-sidebar-wide","B",0,function(){let e,s=(0,t.c)(4),o=(0,n.f)(),d=(0,r.useContext)(i.f),c=(0,a.s)();return s[0]!==d||s[1]!==c||s[2]!==o?(e=d&&c&&l.test(o??""),s[0]=d,s[1]=c,s[2]=o,s[3]=e):e=s[3],e}])},77825,e=>{"use strict";var t=e.i(663456);e.i(707060);var r=e.i(288265),a=e.i(128564),n=e.i(73668),i=e.i(402600),l=e.i(273536);e.s(["f",0,function(){let e,s=(0,t.c)(2),o=(0,r.f)(),{isSignedIn:d}=(0,n.useEntity)();s[0]!==d?(e={isEnabled:d},s[0]=d,s[1]=e):e=s[1];let{workspaces:c,activeWorkspaceId:u}=(0,a.Z)(e);return function({isSignedIn:e,workspaces:t,activeWorkspaceId:r,urlWorkspaceSlug:a,label:n}){if(!e)return;if(void 0!==a)return{href:`/workspaces/${a}`,label:n};let i=t?.find(e=>e.id===r);return{href:i?`/workspaces/${i.slug}`:"/workspaces",label:n}}({isSignedIn:d,workspaces:c,activeWorkspaceId:u,urlWorkspaceSlug:(0,l.s)((0,i.f)()),label:o("Workspace")})}],77825)},40255,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(288265),n=e.i(202058),i=e.i(283884),l=e.i(502704),s=e.i(16043),o=e.i(136562),d=e.i(139697);let c=(0,s.createContext)(null),u=(0,s.createContext)(null);function m(){return(0,s.useContext)(c)}function f(){return(0,s.useContext)(u)}function h({audioProps:e,children:r,src:a}){let n=(0,s.useRef)(null),i=(0,s.useRef)(null),[l,o]=(0,s.useState)(),[d,m]=(0,s.useState)(null),[f,v]=(0,s.useState)(0),[x,p]=(0,s.useState)(!0),[g,b]=(0,s.useState)(0),[w,j]=(0,s.useState)(0),y=(0,s.useCallback)(async()=>{let e=n.current;if(!e)return;if(i.current)try{await i.current}catch{}finally{i.current=null}let t=e.play();i.current=t;try{await t}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;throw e}finally{i.current=null}},[]),k=(0,s.useCallback)(()=>{n.current?.pause()},[]),N=(0,s.useCallback)(e=>{let t=n.current;if(!t||void 0===l||!Number.isFinite(l))return;let r=Math.max(0,Math.min(e,l));t.currentTime=r,j(r)},[l]);(0,s.useEffect)(()=>{let e=n.current;e&&(o(void 0),m(null),v(e.networkState),p(!0),b(e.readyState),j(0),e.load())},[a]),(0,s.useEffect)(()=>{let e=n.current;if(!e)return;let t=()=>{v(e.networkState),b(e.readyState)},r=()=>{o(e.duration)},a=()=>{m(e.error)},i=()=>{p(!0)},l=()=>{p(!1)},s=()=>{j(e.currentTime)};return e.addEventListener("canplay",t),e.addEventListener("durationchange",r),e.addEventListener("ended",i),e.addEventListener("error",a),e.addEventListener("loadedmetadata",r),e.addEventListener("loadstart",t),e.addEventListener("pause",i),e.addEventListener("play",l),e.addEventListener("playing",t),e.addEventListener("timeupdate",s),e.addEventListener("waiting",t),()=>{e.removeEventListener("canplay",t),e.removeEventListener("durationchange",r),e.removeEventListener("ended",i),e.removeEventListener("error",a),e.removeEventListener("loadedmetadata",r),e.removeEventListener("loadstart",t),e.removeEventListener("pause",i),e.removeEventListener("play",l),e.removeEventListener("playing",t),e.removeEventListener("timeupdate",s),e.removeEventListener("waiting",t)}},[]);let E=!x,_=g<3&&2===f,L=(0,s.useMemo)(()=>({duration:l,error:d,isBuffering:_,isPlaying:E,pause:k,play:y,ref:n,seek:N}),[l,d,_,E,k,y,N]);return(0,t.jsx)(c.Provider,{value:L,children:(0,t.jsxs)(u.Provider,{value:w,children:[(0,t.jsx)("audio",{ref:n,src:a,className:"hidden",preload:"metadata",...e}),r]})})}function v(e){let s,c,u,f,h,v,x,p,g,b,w,j,y,k=(0,r.c)(33);k[0]!==e?({children:s,className:c,isLoading:u,size:h,type:v,variant:x,...f}=e,k[0]=e,k[1]=s,k[2]=c,k[3]=u,k[4]=f,k[5]=h,k[6]=v,k[7]=x):(s=k[1],c=k[2],u=k[3],f=k[4],h=k[5],v=k[6],x=k[7]);let N=void 0===h?"icon":h,E=void 0===v?"button":v,_=void 0===x?"outline":x,L=(0,a.f)(),z=m();if(!z)return null;let S=u??z.isBuffering;k[8]!==z.isPlaying?(p=z.isPlaying?(0,t.jsx)(i.f,{}):(0,t.jsx)(l.f,{}),k[8]=z.isPlaying,k[9]=p):p=k[9];let M=p,C=S||void 0;k[10]!==L||k[11]!==z.isPlaying?(g=L(z.isPlaying?"Pause audio":"Play audio"),k[10]=L,k[11]=z.isPlaying,k[12]=g):g=k[12],k[13]!==c?(b=(0,o.f)("shrink-0",c),k[13]=c,k[14]=b):b=k[14];let A=!0===u;return k[15]!==z?(w=()=>{z.isPlaying?z.pause():z.play()},k[15]=z,k[16]=w):w=k[16],k[17]!==s||k[18]!==M||k[19]!==S||k[20]!==u?(j=S&&!0!==u?(0,t.jsx)(n.f,{className:"animate-spin"}):s??M,k[17]=s,k[18]=M,k[19]=S,k[20]=u,k[21]=j):j=k[21],k[22]!==f||k[23]!==N||k[24]!==j||k[25]!==C||k[26]!==g||k[27]!==b||k[28]!==A||k[29]!==w||k[30]!==E||k[31]!==_?(y=(0,t.jsx)(d.Button,{"aria-busy":C,"aria-label":g,className:b,shape:"pill",isLoading:A,onClick:w,size:N,type:E,variant:_,...f,children:j}),k[22]=f,k[23]=N,k[24]=j,k[25]=C,k[26]=g,k[27]=b,k[28]=A,k[29]=w,k[30]=E,k[31]=_,k[32]=y):y=k[32],y}function x(e){let a,n,i,l,d,c,u,h,v,x,g,b,w,j,y,k,N,E,_,L,z,S,M,C=(0,r.c)(55);C[0]!==e?({"aria-label":h,className:a,disabled:n,onPointerCancel:i,onPointerDown:l,onPointerUp:d,onValueChange:c,step:v,...u}=e,C[0]=e,C[1]=a,C[2]=n,C[3]=i,C[4]=l,C[5]=d,C[6]=c,C[7]=u,C[8]=h,C[9]=v):(a=C[1],n=C[2],i=C[3],l=C[4],d=C[5],c=C[6],u=C[7],h=C[8],v=C[9]);let A=void 0===h?"Seek audio":h,R=void 0===v?.25:v,V=m(),T=f(),B=(0,s.useRef)(!1),[P,I]=(0,s.useState)(!1),[O,Z]=(0,s.useState)(null);if(!V||null===T)return null;let{duration:H}=V;C[10]!==H?(x=void 0!==H&&Number.isFinite(H)&&H>0,C[10]=H,C[11]=x):x=C[11];let F=x,D=P&&null!==O?O:T,$=F?Math.min(100,Math.max(0,D/H*100)):0,W=n||!F;C[12]!==V?(g=()=>{I(!1),Z(null),B.current&&V.play().catch(p)},C[12]=V,C[13]=g):g=C[13];let q=g;C[14]!==q||C[15]!==d?(b=e=>{q(),d?.(e)},C[14]=q,C[15]=d,C[16]=b):b=C[16];let U=b;C[17]!==q||C[18]!==i?(w=e=>{q(),i?.(e)},C[17]=q,C[18]=i,C[19]=w):w=C[19];let K=w;C[20]!==a?(j=(0,o.f)("group/audio-progress relative flex h-4 min-w-20 flex-1 items-center",a),C[20]=a,C[21]=j):j=C[21],C[22]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 h-1 rounded-full bg-secondary"}),C[22]=y):y=C[22];let G=`${$}%`;C[23]!==G?(k=(0,t.jsx)("div",{className:"pointer-events-none absolute left-0 h-1 w-(--progress-width) rounded-full bg-primary","data-allow-inline-style":!0,style:{"--progress-width":G}}),C[23]=G,C[24]=k):k=C[24];let X=!W&&"group-hover/audio-progress:opacity-100",J=!W&&P&&"opacity-100";C[25]!==X||C[26]!==J?(N=(0,o.f)("pointer-events-none absolute left-(--thumb-left) size-3 rounded-full bg-foreground opacity-0 shadow-sm transition-opacity",X,J),C[25]=X,C[26]=J,C[27]=N):N=C[27];let Q=`calc(${$}% - 0.375rem)`;C[28]!==Q?(E={"--thumb-left":Q},C[28]=Q,C[29]=E):E=C[29],C[30]!==N||C[31]!==E?(_=(0,t.jsx)("span",{className:N,"data-allow-inline-style":!0,style:E}),C[30]=N,C[31]=E,C[32]=_):_=C[32];let Y=F?H:0;return C[33]!==c||C[34]!==V?(L=e=>{let t=e.currentTarget.valueAsNumber;Z(t),V.seek(t),c?.(t)},C[33]=c,C[34]=V,C[35]=L):L=C[35],C[36]!==l||C[37]!==V?(z=e=>{B.current=V.isPlaying,I(!0),V.pause(),l?.(e)},C[36]=l,C[37]=V,C[38]=z):z=C[38],C[39]!==A||C[40]!==D||C[41]!==K||C[42]!==U||C[43]!==W||C[44]!==u||C[45]!==R||C[46]!==Y||C[47]!==L||C[48]!==z?(S=(0,t.jsx)("input",{"aria-label":A,className:"absolute inset-0 h-full w-full cursor-pointer appearance-none bg-transparent opacity-0 disabled:cursor-not-allowed",disabled:W,max:Y,min:0,onChange:L,onPointerDown:z,onPointerUp:U,onPointerCancel:K,step:R,type:"range",value:D,...u}),C[39]=A,C[40]=D,C[41]=K,C[42]=U,C[43]=W,C[44]=u,C[45]=R,C[46]=Y,C[47]=L,C[48]=z,C[49]=S):S=C[49],C[50]!==k||C[51]!==_||C[52]!==S||C[53]!==j?(M=(0,t.jsxs)("div",{className:j,children:[y,k,_,S]}),C[50]=k,C[51]=_,C[52]=S,C[53]=j,C[54]=M):M=C[54],M}function p(){}function g(e){let a,n,i,l,s,d=(0,r.c)(11);d[0]!==e?({className:a,...n}=e,d[0]=e,d[1]=a,d[2]=n):(a=d[1],n=d[2]);let c=f();return null===c?null:(d[3]!==a?(i=(0,o.f)("w-10 text-overline tabular-nums text-muted-foreground",a),d[3]=a,d[4]=i):i=d[4],d[5]!==c?(l=j(c),d[5]=c,d[6]=l):l=d[6],d[7]!==n||d[8]!==i||d[9]!==l?(s=(0,t.jsx)("span",{className:i,...n,children:l}),d[7]=n,d[8]=i,d[9]=l,d[10]=s):s=d[10],s)}function b(e){let a,n,i,l,s,d=(0,r.c)(11);d[0]!==e?({className:a,...n}=e,d[0]=e,d[1]=a,d[2]=n):(a=d[1],n=d[2]);let c=m();if(!c)return null;let{duration:u}=c;return d[3]!==a?(i=(0,o.f)("w-10 text-right text-overline tabular-nums text-muted-foreground",a),d[3]=a,d[4]=i):i=d[4],d[5]!==u?(l=void 0!==u&&Number.isFinite(u)?j(u):"--:--",d[5]=u,d[6]=l):l=d[6],d[7]!==n||d[8]!==i||d[9]!==l?(s=(0,t.jsx)("span",{className:i,...n,children:l}),d[7]=n,d[8]=i,d[9]=l,d[10]=s):s=d[10],s}function w(e){let n,i,l,s,d,c,u=(0,r.c)(13);u[0]!==e?({className:i,children:n,...l}=e,u[0]=e,u[1]=n,u[2]=i,u[3]=l):(n=u[1],i=u[2],l=u[3]);let f=(0,a.f)(),h=m();return h?.error?(u[4]!==i?(s=(0,o.f)("text-caption text-negative-text",i),u[4]=i,u[5]=s):s=u[5],u[6]!==n||u[7]!==f?(d=n??f("Audio could not be loaded."),u[6]=n,u[7]=f,u[8]=d):d=u[8],u[9]!==l||u[10]!==s||u[11]!==d?(c=(0,t.jsx)("div",{className:s,role:"status",...l,children:d}),u[9]=l,u[10]=s,u[11]=d,u[12]=c):c=u[12],c):null}function j(e){let t=Number.isFinite(e)?Math.max(0,e):0,r=Math.floor(t/3600),a=Math.floor(t%3600/60),n=Math.floor(t%60),i=r>0?a.toString().padStart(2,"0"):a.toString(),l=n.toString().padStart(2,"0");return r>0?`${r}:${i}:${l}`:`${i}:${l}`}e.s(["d",0,function(e){let n,i,l,s,d,c,u,m,f,p,j,y,k,N=(0,r.c)(27);N[0]!==e?({audioProps:n,children:i,className:l,description:s,metadata:d,src:u,title:m,...c}=e,N[0]=e,N[1]=n,N[2]=i,N[3]=l,N[4]=s,N[5]=d,N[6]=c,N[7]=u,N[8]=m):(n=N[1],i=N[2],l=N[3],s=N[4],d=N[5],c=N[6],u=N[7],m=N[8]);let E=(0,a.f)();N[9]!==E||N[10]!==m?(f=m??E("Audio preview"),N[9]=E,N[10]=m,N[11]=f):f=N[11];let _=f;return N[12]!==l?(p=(0,o.f)("flex w-full items-center gap-3 rounded-lg border border-border bg-card p-3 text-card-foreground shadow-sm",l),N[12]=l,N[13]=p):p=N[13],N[14]!==i||N[15]!==s||N[16]!==d||N[17]!==_?(j=i??(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v,{}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 flex flex-col gap-y-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex flex-col gap-y-0.5",children:[(0,t.jsx)("div",{className:"truncate text-body font-medium",children:_}),s&&(0,t.jsx)("div",{className:"truncate text-caption text-muted-foreground",children:s})]}),d&&(0,t.jsx)("div",{className:"shrink-0 text-overline text-muted-foreground",children:d})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(g,{}),(0,t.jsx)(x,{}),(0,t.jsx)(b,{})]}),(0,t.jsx)(w,{})]})]}),N[14]=i,N[15]=s,N[16]=d,N[17]=_,N[18]=j):j=N[18],N[19]!==c||N[20]!==p||N[21]!==j?(y=(0,t.jsx)("div",{className:p,...c,children:j}),N[19]=c,N[20]=p,N[21]=j,N[22]=y):y=N[22],N[23]!==n||N[24]!==u||N[25]!==y?(k=(0,t.jsx)(h,{src:u,audioProps:n,children:y}),N[23]=n,N[24]=u,N[25]=y,N[26]=k):k=N[26],k},"l",0,v,"p",0,b,"V",0,x,"h",0,h,"H",0,g,"C",0,j,"G",0,m,"m",0,f])},1423,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(16043),n=e.i(367898),i=e.i(869057),l=e.i(788968),s=e.i(966980),o=e.i(93836),d=e.i(107397);let c=a.createContext(void 0);function u(){let e=a.useContext(c);if(void 0===e)throw Error((0,d.f)(51));return e}let m={status:e=>"progressing"===e?{"data-progressing":""}:"complete"===e?{"data-complete":""}:"indeterminate"===e?{"data-indeterminate":""}:null},f=a.forwardRef(function(e,r){let{format:d,getAriaValueText:u,locale:f,max:h=100,min:v=0,value:x,render:p,className:g,children:b,style:w,...j}=e,[y,k]=a.useState(),N="indeterminate",E=null,_=null,L="",z="indeterminate progress";if(null!=x&&Number.isFinite(x)){let e=(0,s.f)(x,v,h);E=(0,l.f)(Number.isNaN(e)?0:e,0,100),N=(_=(0,l.f)(x,v,h))===h?"complete":"progressing",z=L=d?(0,i.f)(_,f,d):(0,i.f)(E/100,f,{style:"percent"})}let S=a.useMemo(()=>({status:N}),[N]),M={"aria-labelledby":y,"aria-valuemax":h,"aria-valuemin":v,"aria-valuenow":_??void 0,"aria-valuetext":u?u(L,x):z,role:"progressbar",children:(0,t.jsxs)(a.Fragment,{children:[b,(0,t.jsx)("span",{role:"presentation",style:n.p,children:"x"})]})},C=a.useMemo(()=>({formattedValue:L,percentageValue:E,setLabelId:k,state:S,value:x}),[L,E,k,S,x]),A=(0,o.a)("div",e,{state:S,ref:r,props:[M,j],stateAttributesMapping:m});return(0,t.jsx)(c.Provider,{value:C,children:A})}),h=a.forwardRef(function(e,t){let{render:r,className:a,style:n,...i}=e,{state:l}=u();return(0,o.a)("div",e,{state:l,ref:t,props:i,stateAttributesMapping:m})}),v=a.forwardRef(function(e,t){let{render:r,className:a,style:n,...i}=e,{percentageValue:l,state:s}=u(),d=null==l?{}:{insetInlineStart:0,height:"inherit",width:`${l}%`};return(0,o.a)("div",e,{state:s,ref:t,props:[{style:d},i],stateAttributesMapping:m})});e.s(["Indicator",0,v,"Root",0,f,"Track",0,h],372909);var x=e.i(372909),x=x,p=x,g=x,b=e.i(136562),w=e.i(207298);let j=(0,w.f)("relative h-4 w-full overflow-hidden rounded-full [&>[role=presentation]]:!absolute",{variants:{track:{default:"bg-secondary",muted:"bg-muted",border:"bg-border",foreground:"bg-foreground/20 dark:bg-foreground/10"}},defaultVariants:{track:"default"}}),y=(0,w.f)((0,b.f)("h-full rounded-full","transition-[width,background-color] duration-fast ease-smooth-out motion-reduce:transition-colors"),{variants:{variant:{accent:"bg-primary",neutral:"bg-foreground",positive:"bg-positive",warning:"bg-warning",promo:"bg-promo",negative:"bg-negative"}},defaultVariants:{variant:"accent"}});e.s(["f",0,function(e){let a,n,i,l,s,o,d,c,u,m,f,h,v,w,k=(0,r.c)(28);k[0]!==e?({className:a,indicatorClassName:n,indicatorColor:i,max:o,track:d,value:c,variant:u,ref:s,...l}=e,k[0]=e,k[1]=a,k[2]=n,k[3]=i,k[4]=l,k[5]=s,k[6]=o,k[7]=d,k[8]=c,k[9]=u):(a=k[1],n=k[2],i=k[3],l=k[4],s=k[5],o=k[6],d=k[7],c=k[8],u=k[9]);let N=void 0===o?100:o,E=Math.min(100,Math.max(0,("number"==typeof c?c:0)/("number"==typeof N&&N>0?N:100)*100));return k[10]!==a||k[11]!==d?(m=(0,b.f)(j({track:d}),a),k[10]=a,k[11]=d,k[12]=m):m=k[12],k[13]!==n||k[14]!==i||k[15]!==u?(f=(0,b.f)(y({variant:u}),void 0!==i&&"bg-(--indicator-color)",n),k[13]=n,k[14]=i,k[15]=u,k[16]=f):f=k[16],k[17]!==i?(h=void 0===i?void 0:{"--indicator-color":i},k[17]=i,k[18]=h):h=k[18],k[19]!==f||k[20]!==h?(v=(0,t.jsx)(x.Track,{className:"h-full w-full",children:(0,t.jsx)(p.Indicator,{className:f,"data-allow-inline-style":!0,style:h})}),k[19]=f,k[20]=h,k[21]=v):v=k[21],k[22]!==E||k[23]!==l||k[24]!==s||k[25]!==m||k[26]!==v?(w=(0,t.jsx)(g.Root,{ref:s,value:E,className:m,...l,children:v}),k[22]=E,k[23]=l,k[24]=s,k[25]=m,k[26]=v,k[27]=w):w=k[27],w}],1423)},632665,e=>{"use strict";var t=e.i(579841),r=e.i(988590),a=e.i(733476);e.s(["f",0,function(e){var n;return!!(0,t.a)(e.output_modalities)&&(!e.endpoint||(n=e.endpoint.adapter_name,!!(0,r.q)(n,a.n)||!((0,r.q)(n,a.G)||(0,r.q)(n,a.W))&&!(0,r.q)(n,a.O)))}],632665)},948235,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(196991),n=e.i(136562);e.s(["f",0,function(e){let i,l,s,o,d=(0,r.c)(9);d[0]!==e?(i=void 0===e?{}:e,d[0]=e,d[1]=i):i=d[1];let{isCompact:c,className:u}=i,m=void 0!==c&&c;return d[2]!==u?(l=(0,n.f)("mt-1 text-center text-3xs text-muted-foreground/60",u),d[2]=u,d[3]=l):l=d[3],d[4]!==m?(s=m?(0,t.jsx)(a.T,{children:"Responses are AI-generated. Verify before relying on them."}):(0,t.jsx)(a.T,{children:"Responses are AI-generated and can be inaccurate. Review all outputs before relying on them."}),d[4]=m,d[5]=s):s=d[5],d[6]!==l||d[7]!==s?(o=(0,t.jsx)("p",{className:l,children:s}),d[6]=l,d[7]=s,d[8]=o):o=d[8],o}])},368386,284343,e=>{"use strict";var t=e.i(663456),r=e.i(16043),a=e.i(510164);let n={kind:"idle"};function i(e,t){var r,a,i,s;switch(t.type){case"drag_enter":return"dragging"===(r=e).kind?{kind:"dragging",depth:r.depth+1,isValid:r.isValid}:{kind:"dragging",depth:1,isValid:!0};case"drag_leave":return"dragging"!==(a=e).kind?a:a.depth>1?{kind:"dragging",depth:a.depth-1,isValid:a.isValid}:{kind:"leaving",isValid:a.isValid};case"drag_over":return i=e,s=t.isValid,"dragging"!==i.kind||i.isValid===s?i:{kind:"dragging",depth:i.depth,isValid:s};case"drop":return l(e,!0);case"drag_end":return l(e,!1);case"leave_settled":return"leaving"===e.kind?n:e;default:return t}}function l(e,t){return"idle"===e.kind?e:{kind:"leaving",isValid:t}}function s(e){if("file"!==e.kind)return!1;let t=(e.type||"").toLowerCase();return!t.startsWith("video/")||!!a.t.has(t)}function o(){}e.s(["f",0,function(e,a){let l,d,c,u,m,f,h,v,x,p,g,b=(0,t.c)(33);b[0]!==a?(l=void 0===a?{}:a,b[0]=a,b[1]=l):l=b[1];let{shouldPreventDefault:w,animationDelay:j,typeValidator:y,onDrop:k}=l,N=void 0===w||w,E=void 0===j?200:j,_=void 0===y?s:y,[L,z]=(0,r.useReducer)(i,n);b[2]!==E||b[3]!==L.kind?(d=()=>{if("leaving"!==L.kind)return;let e=setTimeout(()=>z({type:"leave_settled"}),E);return()=>clearTimeout(e)},b[2]=E,b[3]=L.kind,b[4]=d):d=b[4],b[5]!==E||b[6]!==L?(c=[L,E],b[5]=E,b[6]=L,b[7]=c):c=b[7],(0,r.useEffect)(d,c),b[8]!==N?(u=e=>{N&&e.preventDefault(),z({type:"drag_enter"})},b[8]=N,b[9]=u):u=b[9];let S=u;b[10]!==N?(m=e=>{N&&e.preventDefault(),z({type:"drag_leave"})},b[10]=N,b[11]=m):m=b[11];let M=m;b[12]!==N||b[13]!==_?(f=e=>{N&&e.preventDefault();let t=e.dataTransfer?.items;z({type:"drag_over",isValid:!!t&&Array.from(t).every(e=>_(e))})},b[12]=N,b[13]=_,b[14]=f):f=b[14];let C=f;b[15]!==k||b[16]!==N?(h=e=>{if(N&&e.preventDefault(),z({type:"drop"}),k)try{Promise.resolve(k(e)).catch(o)}catch(e){}},b[15]=k,b[16]=N,b[17]=h):h=b[17];let A=h;b[18]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{z({type:"drag_end"})},b[18]=v):v=b[18];let R=v;b[19]!==e||b[20]!==S||b[21]!==M||b[22]!==C||b[23]!==A?(x=()=>{let t=e.current;if(t)return t.addEventListener("dragenter",S),t.addEventListener("dragleave",M),t.addEventListener("dragover",C),t.addEventListener("dragend",R),t.addEventListener("drop",A),()=>{t.removeEventListener("dragenter",S),t.removeEventListener("dragleave",M),t.removeEventListener("dragover",C),t.removeEventListener("dragend",R),t.removeEventListener("drop",A)}},b[19]=e,b[20]=S,b[21]=M,b[22]=C,b[23]=A,b[24]=x):x=b[24],b[25]!==S||b[26]!==M||b[27]!==C||b[28]!==A?(p=[S,M,C,R,A],b[25]=S,b[26]=M,b[27]=C,b[28]=A,b[29]=p):p=b[29],(0,r.useEffect)(x,p);let V="idle"!==L.kind,T="idle"===L.kind||L.isValid;return b[30]!==V||b[31]!==T?(g={isDragging:V,isValid:T},b[30]=V,b[31]=T,b[32]=g):g=b[32],g}],368386);var d=e.i(659350),c=e.i(288265),u=e.i(612927),m=e.i(136562),f=e.i(139697),h=e.i(261499),v=e.i(751155),x=e.i(557157),p=e.i(74680),g=e.i(411892),b=e.i(143128),w=e.i(470239),j=e.i(596520),y=e.i(973523),k=e.i(207298),N=e.i(387086),E=e.i(919035),_=e.i(526475),L=e.i(647402),z=e.i(262646),S=e.i(797521);let M={[x.f.Image]:{label:(0,N.b)("Image"),icon:(0,d.jsx)(w.f,{className:"size-6"})},[x.f.Text]:{label:(0,N.b)("Text"),icon:(0,d.jsx)(b.f,{className:"size-6"})},[x.f.File]:{label:(0,N.b)("PDF"),icon:(0,d.jsx)(g.f,{className:"size-6"})},[x.f.Audio]:{label:(0,N.b)("Audio"),icon:(0,d.jsx)(j.f,{className:"size-6"})},[x.f.Video]:{label:(0,N.b)("Video"),icon:(0,d.jsx)(y.f,{className:"size-6"})}},C=(0,k.f)("relative flex min-w-0 cursor-pointer select-none items-center gap-2.5 overflow-hidden rounded-lg border bg-background px-3 py-2 ph-no-capture transition-colors hover:bg-card-hover group-focus-within:ring-2 group-focus-within:ring-ring",{variants:{variant:{composer:"h-16 w-56",message:"h-14 min-w-40 max-w-56"}}}),A=(0,k.f)("shrink-0 rounded-md",{variants:{variant:{composer:"size-10",message:"size-9"}}}),R=(0,k.f)("min-w-0 text-left",{variants:{variant:{composer:"pr-7",message:""}}}),V=(0,k.f)("truncate font-medium text-foreground",{variants:{variant:{composer:"text-sm leading-5",message:"text-xs"}}}),T=(0,k.f)("absolute text-muted-foreground opacity-60 transition-opacity md:opacity-0 md:group-hover:opacity-100 md:group-focus-within:opacity-100",{variants:{variant:{composer:"bottom-2 right-3 size-4",message:"bottom-1.5 right-1.5 size-3.5"}}});function B(e){let r,a,n,i,l,s,o,u,f,h,v,p=(0,t.c)(49),{attachment:g,variant:b,isLoading:w}=e,j=(0,c.f)(),y=(0,E.f)(),k=(0,S.f)();if(void 0!==w&&w){let e,t,r;return p[0]!==j?(e=j("Loading attachment"),p[0]=j,p[1]=e):e=p[1],p[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,d.jsx)(z.f,{className:"size-6"}),p[2]=t):t=p[2],p[3]!==e?(r=(0,d.jsx)("div",{"aria-label":e,className:"flex size-16 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",role:"status",children:t}),p[3]=e,p[4]=r):r=p[4],r}let N=M[g.type],B=g.type===x.f.Image&&void 0!==g.url;if(B&&"composer"===b){let e;return p[5]!==g.name||p[6]!==g.url?(e=(0,d.jsx)("img",{alt:g.name,className:"size-16 shrink-0 rounded-lg object-cover ph-no-capture","data-dd-privacy":"hidden",src:g.url}),p[5]=g.name,p[6]=g.url,p[7]=e):e=p[7],e}let P=g.name===N.label&&0===g.size;return p[8]!==b?(r=(0,m.f)(C({variant:b})),p[8]=b,p[9]=r):r=p[9],p[10]!==g.name||p[11]!==g.url||p[12]!==B||p[13]!==N.icon||p[14]!==b?(a=B?(0,d.jsx)("img",{alt:g.name,className:(0,m.f)(A({variant:b}),"object-cover"),src:g.url}):(0,d.jsx)("div",{className:(0,m.f)(A({variant:b}),"flex items-center justify-center bg-muted text-muted-foreground"),children:N.icon}),p[10]=g.name,p[11]=g.url,p[12]=B,p[13]=N.icon,p[14]=b,p[15]=a):a=p[15],p[16]!==b?(n=(0,m.f)(R({variant:b})),p[16]=b,p[17]=n):n=p[17],p[18]!==b?(i=(0,m.f)(V({variant:b})),p[18]=b,p[19]=i):i=p[19],p[20]!==g.name||p[21]!==P||p[22]!==y||p[23]!==N.label?(l=P?y(N.label):g.name,p[20]=g.name,p[21]=P,p[22]=y,p[23]=N.label,p[24]=l):l=p[24],p[25]!==g.name||p[26]!==i||p[27]!==l?(s=(0,d.jsx)("p",{className:i,title:g.name,children:l}),p[25]=g.name,p[26]=i,p[27]=l,p[28]=s):s=p[28],p[29]!==g.name||p[30]!==g.size||p[31]!==k||p[32]!==P||p[33]!==y||p[34]!==N.label?(o=P?null:(0,d.jsxs)("p",{className:"truncate text-xs text-muted-foreground",children:[function(e){let t=e.lastIndexOf(".");if(t<=0||t===e.length-1)return null;let r=e.slice(t+1);return r.length>5||!/^[a-zA-Z0-9]+$/.test(r)?null:r.toUpperCase()}(g.name)??y(N.label),g.size>0?(0,d.jsxs)(d.Fragment,{children:[" ",(0,d.jsx)(L.f,{})," ",k.bytes(g.size)??"—"]}):null]}),p[29]=g.name,p[30]=g.size,p[31]=k,p[32]=P,p[33]=y,p[34]=N.label,p[35]=o):o=p[35],p[36]!==n||p[37]!==s||p[38]!==o?(u=(0,d.jsxs)("div",{className:n,children:[s,o]}),p[36]=n,p[37]=s,p[38]=o,p[39]=u):u=p[39],p[40]!==b?(f=(0,m.f)(T({variant:b})),p[40]=b,p[41]=f):f=p[41],p[42]!==f?(h=(0,d.jsx)(_.f,{"aria-hidden":"true",className:f}),p[42]=f,p[43]=h):h=p[43],p[44]!==h||p[45]!==r||p[46]!==a||p[47]!==u?(v=(0,d.jsxs)("div",{className:r,"data-dd-privacy":"hidden",children:[a,u,h]}),p[44]=h,p[45]=r,p[46]=a,p[47]=u,p[48]=v):v=p[48],v}var P=e.i(196991),I=e.i(40255),O=e.i(80676),Z=e.i(670168);let H=(0,r.lazy)(()=>e.A(504972).then(e=>({default:e.AttachmentPDFPreview})));function F(e){let a=(0,t.c)(19),{attachment:n}=e;switch(n.type){case"image":{let e;return a[0]!==n.name||a[1]!==n.url?(e=(0,d.jsx)("div",{className:"bg-background h-max w-full max-w-max overflow-auto rounded-md border",children:(0,d.jsx)("picture",{className:"flex shrink-0 self-center",children:(0,d.jsx)("img",{alt:n.name,className:"max-h-screen max-w-full rounded-md",src:n.url})})}),a[0]=n.name,a[1]=n.url,a[2]=e):e=a[2],e}case"text":{let e,t;return a[3]!==n.content?(e=n.content?.slice(0,42e4)??"",a[3]=n.content,a[4]=e):e=a[4],a[5]!==e?(t=(0,d.jsx)("div",{className:"bg-background h-max w-full overflow-auto rounded-md border px-4 py-2",children:(0,d.jsx)("pre",{className:"max-h-[calc(100vh-16rem)] max-w-96 whitespace-pre-wrap break-words rounded-md text-sm",children:e})}),a[5]=e,a[6]=t):t=a[6],t}case"file":{let e,t;return a[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,d.jsx)(Z.l,{className:"size-full"}),a[7]=e):e=a[7],a[8]!==n.content?(t=(0,d.jsx)(r.Suspense,{fallback:e,children:(0,d.jsx)(H,{base64DataURL:n.content,showControls:!0,className:"size-full overflow-hidden rounded-md border"})}),a[8]=n.content,a[9]=t):t=a[9],t}case"audio":{let e,t,r,i,l,s=n.url??"";return a[10]===Symbol.for("react.memo_cache_sentinel")?(e={crossOrigin:"anonymous"},a[10]=e):e=a[10],a[11]===Symbol.for("react.memo_cache_sentinel")?(t=(0,d.jsx)(I.l,{size:"icon",variant:"outline"}),a[11]=t):t=a[11],a[12]===Symbol.for("react.memo_cache_sentinel")?(r=(0,d.jsx)(P.T,{children:(0,d.jsx)("span",{className:"font-medium",children:"Audio Input"})}),a[12]=r):r=a[12],a[13]===Symbol.for("react.memo_cache_sentinel")?(i=(0,d.jsxs)("div",{className:"flex items-center gap-4",children:[t,(0,d.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[r,(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(I.H,{}),(0,d.jsx)("span",{className:"text-muted-foreground",children:"/"}),(0,d.jsx)(I.p,{})]})]}),(0,d.jsx)(I.V,{})]})]}),a[13]=i):i=a[13],a[14]!==s?(l=(0,d.jsx)("div",{className:"bg-background w-full max-w-md rounded-md border p-6",children:(0,d.jsx)(I.h,{src:s,audioProps:e,children:i})}),a[14]=s,a[15]=l):l=a[15],l}case"video":{let e,t;return a[16]===Symbol.for("react.memo_cache_sentinel")?(e=(0,d.jsx)("track",{kind:"captions"}),a[16]=e):e=a[16],a[17]!==n.url?(t=(0,d.jsx)("div",{className:"bg-background w-full max-w-2xl rounded-md border",children:(0,d.jsx)("video",{className:"max-h-[70vh] w-full rounded-md",src:n.url,controls:!0,autoPlay:!1,children:e})}),a[17]=n.url,a[18]=t):t=a[18],t}default:return null}}function D(e){let a,n,i,l,s,o,h,v,x,p,g,b,w,j,y=(0,t.c)(40),{children:k,attachments:N,initialIndex:E}=e,_=(0,c.f)(),[L,z]=(0,r.useState)(!1),S=N[void 0===E?0:E]??N[0];if(!S)return null;let M="file"===S.type;y[0]!==S.name||y[1]!==_?(a=_("Open attachment preview: {name}",{name:S.name}),y[0]=S.name,y[1]=_,y[2]=a):a=y[2],y[3]===Symbol.for("react.memo_cache_sentinel")?(n=()=>z(!0),y[3]=n):n=y[3],y[4]!==k||y[5]!==a?(i=(0,d.jsx)(f.Button,{variant:"ghost",className:"h-auto p-0 contents w-auto hover:bg-transparent","aria-label":a,onClick:n,children:k}),y[4]=k,y[5]=a,y[6]=i):i=y[6];let C=!M,A=M&&"flex h-[90vh] flex-col";y[7]!==A?(l=(0,m.f)("w-full max-w-4xl",A),y[7]=A,y[8]=l):l=y[8],y[9]!==S.name?(s=(0,d.jsx)(O.F,{className:"sr-only",children:S.name}),y[9]=S.name,y[10]=s):s=y[10],y[11]!==_||y[12]!==M?(o=M&&(0,d.jsx)(O.t,{className:"absolute right-3 top-3 z-20 flex size-8 items-center justify-center rounded-full border border-border bg-popover text-popover-foreground shadow-md transition-colors hover:bg-accent-subtle hover:text-accent-foreground focus-visible:border-focus-border focus-visible:shadow-focus focus-visible:outline-none","aria-label":_("Close"),children:(0,d.jsx)(u.X,{className:"size-4"})}),y[11]=_,y[12]=M,y[13]=o):o=y[13];let R=M&&"min-h-0 w-full flex-1";return y[14]!==R?(h=(0,m.f)("flex flex-col items-center justify-center gap-2 ph-no-capture",R),y[14]=R,y[15]=h):h=y[15],y[16]!==S?(v=(0,d.jsx)(F,{attachment:S}),y[16]=S,y[17]=v):v=y[17],y[18]!==S.size||y[19]!==_?(x=S.size>0&&_(" ({size} MB)",{size:Math.round(S.size/1024/1024*10)/10}),y[18]=S.size,y[19]=_,y[20]=x):x=y[20],y[21]!==S.name||y[22]!==x?(p=(0,d.jsxs)("pre",{className:"text-muted-foreground text-wrap break-all text-center text-xs",children:[S.name,x]}),y[21]=S.name,y[22]=x,y[23]=p):p=y[23],y[24]!==h||y[25]!==v||y[26]!==p?(g=(0,d.jsxs)("div",{className:h,"data-dd-privacy":"hidden",children:[v,p]}),y[24]=h,y[25]=v,y[26]=p,y[27]=g):g=y[27],y[28]!==g||y[29]!==C||y[30]!==l||y[31]!==s||y[32]!==o?(b=(0,d.jsxs)(O.d,{keepMounted:!1,showCloseButton:C,className:l,children:[s,o,g]}),y[28]=g,y[29]=C,y[30]=l,y[31]=s,y[32]=o,y[33]=b):b=y[33],y[34]!==L||y[35]!==b?(w=(0,d.jsx)(O.N,{open:L,onOpenChange:z,children:b}),y[34]=L,y[35]=b,y[36]=w):w=y[36],y[37]!==w||y[38]!==i?(j=(0,d.jsxs)(d.Fragment,{children:[i,w]}),y[37]=w,y[38]=i,y[39]=j):j=y[39],j}let $=[];function W(e){return e.type===x.f.Image}e.s(["f",0,e=>{let r,a,n,i,l,s,o=(0,t.c)(20),{attachment:g,attachments:b,onDismiss:w,isLoading:j}=e,y=void 0===b?$:b,k=void 0!==j&&j,N=(0,c.f)(),E=g.type===x.f.Image;o[0]!==g||o[1]!==y||o[2]!==E?(r=E?(y.length>0?y:[g]).filter(W):[],a=E?r.indexOf(g):-1,o[0]=g,o[1]=y,o[2]=E,o[3]=r,o[4]=a):(r=o[3],a=o[4]);let _=a,L=w?"composer":"message",z=E&&"composer"===L&&void 0!==g.url;return o[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m.f)("min-w-0",h.G),o[5]=n):n=o[5],o[6]!==N||o[7]!==z||o[8]!==w?(i=w&&(0,d.jsx)("div",{className:(0,m.f)("absolute right-1 top-1 z-10",!z&&"opacity-100 md:opacity-0 md:group-hover:opacity-100 md:group-focus-within:opacity-100"),children:(0,d.jsx)(v.Tooltip,{content:N("Remove attachment"),side:"left",children:(0,d.jsx)(f.Button,{size:"icon-sm",variant:"ghost",shape:z?"pill":"default",className:z?"size-5 min-w-5 border border-border/60 bg-background/80 p-0 shadow-sm backdrop-blur-sm hover:bg-background":void 0,"aria-label":N("Remove attachment"),onClick:w,children:(0,d.jsx)(u.X,{className:z?"size-3":"size-4"})})})}),o[6]=N,o[7]=z,o[8]=w,o[9]=i):i=o[9],o[10]!==g||o[11]!==r||o[12]!==_||o[13]!==E||o[14]!==k||o[15]!==L?(l=E?(0,d.jsx)(p.f,{images:r,initialIndex:Math.max(_,0),children:(0,d.jsx)(B,{attachment:g,variant:L,isLoading:k})}):(0,d.jsx)(D,{attachments:[g],initialIndex:0,children:(0,d.jsx)(B,{attachment:g,variant:L,isLoading:k})}),o[10]=g,o[11]=r,o[12]=_,o[13]=E,o[14]=k,o[15]=L,o[16]=l):l=o[16],o[17]!==i||o[18]!==l?(s=(0,d.jsx)("div",{className:n,children:(0,d.jsxs)("div",{className:"group relative flex min-w-0",children:[i,l]})}),o[17]=i,o[18]=l,o[19]=s):s=o[19],s}],284343)},656921,e=>{"use strict";var t=e.i(663456),r=e.i(16043);e.s(["f",0,function(e,a){let n,i,l,s=(0,t.c)(6);s[0]!==e||s[1]!==a?(n=t=>{if(null===e||!t.key)return;let r=t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement;("function"==typeof e?!e(t):t.key!==e||r||t.ctrlKey||t.metaKey)||(t.preventDefault(),a(t))},s[0]=e,s[1]=a,s[2]=n):n=s[2];let o=(0,r.useEffectEvent)(n);s[3]!==o?(i=()=>{let e=e=>o(e);return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},s[3]=o,s[4]=i):i=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(l=[],s[5]=l):l=s[5],(0,r.useEffect)(i,l)}])},74680,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(288265),n=e.i(49505),i=e.i(88084),l=e.i(16043),s=e.i(136562),o=e.i(139697),d=e.i(80676),c=e.i(656921);let u="absolute top-1/2 z-30 flex -translate-y-1/2 pointer-events-none opacity-0 transition-opacity duration-200 group-hover:opacity-100";function m(e){let a,n,i,l,o,d,c=(0,r.c)(12);c[0]!==e?({side:l,onClick:n,className:a,...i}=e,c[0]=e,c[1]=a,c[2]=n,c[3]=i,c[4]=l):(a=c[1],n=c[2],i=c[3],l=c[4]);let u="left"===l?"left-0":"right-0";return c[5]!==a||c[6]!==u?(o=(0,s.f)("absolute top-0 z-20 h-full w-1/3 cursor-pointer transition-colors active:bg-accent-subtle/80","focus-visible:border-focus-border focus-visible:shadow-focus focus-visible:outline-none",u,a),c[5]=a,c[6]=u,c[7]=o):o=c[7],c[8]!==n||c[9]!==i||c[10]!==o?(d=(0,t.jsx)("button",{type:"button",onClick:n,className:o,...i}),c[8]=n,c[9]=i,c[10]=o,c[11]=d):d=c[11],d}e.s(["f",0,function(e){let f,h,v,x,p,g,b,w,j,y,k,N,E,_,L,z,S,M,C,A,R=(0,r.c)(50),{images:V,initialIndex:T,children:B}=e,P=void 0===T?0:T,I=(0,a.f)(),[O,Z]=(0,l.useState)(!1),[H,F]=(0,l.useState)(P),D=V.length,$=V[H];if(R[0]!==P||R[1]!==O?(f=()=>{O&&F(P)},h=[O,P],R[0]=P,R[1]=O,R[2]=f,R[3]=h):(f=R[2],h=R[3]),(0,l.useEffect)(f,h),R[4]!==O?(v=e=>O&&"ArrowRight"===e.key,R[4]=O,R[5]=v):v=R[5],R[6]!==D?(x=()=>F(e=>(e+1)%D),R[6]=D,R[7]=x):x=R[7],(0,c.f)(v,x),R[8]!==O?(p=e=>O&&"ArrowLeft"===e.key,R[8]=O,R[9]=p):p=R[9],R[10]!==D?(g=()=>F(e=>(e-1+D)%D),R[10]=D,R[11]=g):g=R[11],(0,c.f)(p,g),!$)return null;R[12]!==I||R[13]!==$.name?(b=I("Open image preview: {name}",{name:$.name}),R[12]=I,R[13]=$.name,R[14]=b):b=R[14],R[15]===Symbol.for("react.memo_cache_sentinel")?(w=()=>Z(!0),R[15]=w):w=R[15],R[16]!==B||R[17]!==b?(j=(0,t.jsx)(o.Button,{variant:"ghost",className:"h-auto p-0 contents w-auto hover:bg-transparent","aria-label":b,onClick:w,children:B}),R[16]=B,R[17]=b,R[18]=j):j=R[18],R[19]===Symbol.for("react.memo_cache_sentinel")?(y=(0,s.f)("w-full max-w-4xl flex flex-col items-center"),R[19]=y):y=R[19],R[20]!==$.name?(k=(0,t.jsx)(d.s,{children:(0,t.jsx)(d.F,{children:$.name})}),R[20]=$.name,R[21]=k):k=R[21],R[22]!==I||R[23]!==D?(N=D>1&&(0,t.jsx)(m,{"aria-label":I("Previous image"),side:"left",onClick:()=>F(e=>(e-1+D)%D)}),R[22]=I,R[23]=D,R[24]=N):N=R[24],R[25]!==I||R[26]!==D?(E=D>1&&(0,t.jsx)(m,{"aria-label":I("Next image"),side:"right",onClick:()=>F(e=>(e+1)%D)}),R[25]=I,R[26]=D,R[27]=E):E=R[27],R[28]!==D?(_=D>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,s.f)(u,"left-0"),children:(0,t.jsx)(o.Button,{variant:"outline",size:"icon-sm",tabIndex:-1,children:(0,t.jsx)(n.f,{className:"size-4"})})}),(0,t.jsx)("div",{className:(0,s.f)(u,"right-0"),children:(0,t.jsx)(o.Button,{variant:"outline",size:"icon-sm",tabIndex:-1,children:(0,t.jsx)(i.f,{className:"size-4"})})})]}),R[28]=D,R[29]=_):_=R[29],R[30]!==$.name||R[31]!==$.url?(L=(0,t.jsx)("img",{src:$.url,alt:$.name,className:"relative z-0 object-contain max-h-[65vh] w-auto max-w-full select-none mx-auto rounded-sm",draggable:!1}),R[30]=$.name,R[31]=$.url,R[32]=L):L=R[32],R[33]!==N||R[34]!==E||R[35]!==_||R[36]!==L?(z=(0,t.jsxs)("div",{className:"relative flex items-center justify-center w-full max-h-[70vh] min-h-80 group ph-no-capture","data-dd-privacy":"hidden",children:[N,E,_,L]}),R[33]=N,R[34]=E,R[35]=_,R[36]=L,R[37]=z):z=R[37];let W=D>1?`${H+1} / ${D}`:"";return R[38]!==W?(S=(0,t.jsx)("div",{className:"text-xs text-muted-foreground py-2 text-center w-full",children:W}),R[38]=W,R[39]=S):S=R[39],R[40]!==k||R[41]!==z||R[42]!==S?(M=(0,t.jsxs)(d.d,{keepMounted:!1,className:y,children:[k,z,S]}),R[40]=k,R[41]=z,R[42]=S,R[43]=M):M=R[43],R[44]!==O||R[45]!==M?(C=(0,t.jsx)(d.N,{open:O,onOpenChange:Z,children:M}),R[44]=O,R[45]=M,R[46]=C):C=R[46],R[47]!==j||R[48]!==C?(A=(0,t.jsxs)(t.Fragment,{children:[j,C]}),R[47]=j,R[48]=C,R[49]=A):A=R[49],A}])},524268,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(73867),n=e.i(739308),i=e.i(136562),l=e.i(139697),s=e.i(217411);e.i(707060);var o=e.i(288265),d=e.i(882968);e.s(["f",0,function(e){let c,u,m,f,h,v,x,p,g,b,w,j,y,k,N,E,_,L=(0,r.c)(41),{title:z,triggerAriaLabel:S,isOpen:M,onOpenChange:C,newAction:A,children:R}=e,V=(0,o.f)(),T=A.icon;L[0]!==A||L[1]!==C?(c=async()=>{await A.onClick(),C(!1)},L[0]=A,L[1]=C,L[2]=c):c=L[2];let B=c;return L[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(n.f,{className:"!size-5"}),L[3]=u):u=L[3],L[4]!==S?(m=(0,t.jsx)(s.V,{render:(0,t.jsx)(l.Button,{type:"button",variant:"ghost",size:"icon",className:"shrink-0","aria-label":S,children:u})}),L[4]=S,L[5]=m):m=L[5],L[6]===Symbol.for("react.memo_cache_sentinel")?(f=(0,i.f)(d.c,d.a,d.T,"flex h-auto flex-col gap-0 border-r-0 p-0 dark:border-r","data-[closed]:duration-fast data-[open]:duration-fast motion-reduce:animate-none"),L[6]=f):f=L[6],L[7]!==V||L[8]!==z?(h=V("Back to {title}",{title:z.toLowerCase()}),L[7]=V,L[8]=z,L[9]=h):h=L[9],L[10]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(a.f,{className:"!size-5"}),L[10]=v):v=L[10],L[11]!==h?(x=(0,t.jsx)(s.O,{render:(0,t.jsx)(l.Button,{type:"button",variant:"ghost",size:"icon",className:"shrink-0","aria-label":h,children:v})}),L[11]=h,L[12]=x):x=L[12],L[13]!==z?(p=(0,t.jsx)(s.L,{className:"text-sm font-medium",children:z}),L[13]=z,L[14]=p):p=L[14],L[15]!==x||L[16]!==p?(g=(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-2 py-2",children:[x,p]}),L[15]=x,L[16]=p,L[17]=g):g=L[17],L[18]!==B?(b=()=>void B(),L[18]=B,L[19]=b):b=L[19],L[20]!==T?(w=(0,t.jsx)(T,{className:"absolute left-3 size-4"}),L[20]=T,L[21]=w):w=L[21],L[22]!==A.label?(j=(0,t.jsx)("span",{className:"w-full text-center",children:A.label}),L[22]=A.label,L[23]=j):j=L[23],L[24]!==b||L[25]!==w||L[26]!==j?(y=(0,t.jsxs)(l.Button,{type:"button",size:"md",variant:"outline",className:"relative w-full shrink-0",onClick:b,children:[w,j]}),L[24]=b,L[25]=w,L[26]=j,L[27]=y):y=L[27],L[28]!==R?(k=(0,t.jsx)("div",{className:"min-h-0 flex-1",children:R}),L[28]=R,L[29]=k):k=L[29],L[30]!==y||L[31]!==k?(N=(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2 p-2",children:[y,k]}),L[30]=y,L[31]=k,L[32]=N):N=L[32],L[33]!==N||L[34]!==g?(E=(0,t.jsxs)(s.U,{side:"left",keepMounted:!1,showCloseButton:!1,overlayClassName:d.B,"aria-describedby":void 0,className:f,children:[g,N]}),L[33]=N,L[34]=g,L[35]=E):E=L[35],L[36]!==M||L[37]!==C||L[38]!==E||L[39]!==m?(_=(0,t.jsxs)(s.j,{open:M,onOpenChange:C,modal:"trap-focus",children:[m,E]}),L[36]=M,L[37]=C,L[38]=E,L[39]=m,L[40]=_):_=L[40],_}])},318875,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(136562),n=e.i(139697),i=e.i(80676),l=e.i(761821);e.i(707060);var s=e.i(196991),o=e.i(16043);function d(e){let n,i,l,o,d,c=(0,r.c)(7),{className:u}=e;return c[0]!==u?(n=(0,a.f)("flex items-center gap-3 text-muted-foreground",u),c[0]=u,c[1]=n):n=c[1],c[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),l=(0,t.jsx)("span",{children:(0,t.jsx)(s.T,{children:"or"})}),o=(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),c[2]=i,c[3]=l,c[4]=o):(i=c[2],l=c[3],o=c[4]),c[5]!==n?(d=(0,t.jsxs)("div",{className:n,children:[i,l,o]}),c[5]=n,c[6]=d):d=c[6],d}e.i(406201);var c=e.i(967605),u=e.i(134611),m=e.i(632665);let f=(0,o.memo)(e=>{let o,f,h,v,x,p,g,b,w,j,y,k=(0,r.c)(22),{open:N,onOpenChange:E,onContinueWithFreeModels:_}=e,{availableTextModels:L}=(0,l.S)();if(k[0]!==L){let e;o=(e=L.filter(e=>(e.endpoint?.is_free===!0||e.slug.endsWith(":free"))&&(0,m.f)(e)).toSorted((e,t)=>Date.parse(t.created_at)-Date.parse(e.created_at)).slice(0,3).map(u.i)).length>0?`/chat?models=${e.join(",")}`:"/models?max_price=0",k[0]=L,k[1]=o}else o=k[1];let z=o;k[2]!==E?(f=()=>{E(!1)},k[2]=E,k[3]=f):f=k[3];let S=f;return k[4]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.f)("max-w-sm"),k[4]=h):h=k[4],k[5]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(i.F,{children:(0,t.jsx)(s.T,{children:"Insufficient credits"})}),k[5]=v):v=k[5],k[6]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsxs)(i.s,{className:"text-center",children:[v,(0,t.jsx)(i.C,{children:(0,t.jsx)(s.T,{children:"Add credits to continue using paid models."})})]}),k[6]=x):x=k[6],k[7]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)(n.Button,{variant:"default",className:"w-full",children:(0,t.jsx)(s.T,{children:"Buy credits"})}),k[7]=p):p=k[7],k[8]!==S?(g=(0,t.jsx)(c.Link,{href:"https://openrouter.ai/settings/credits",className:"w-full",onClick:S,children:p}),k[8]=S,k[9]=g):g=k[9],k[10]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(d,{className:"text-sm"}),k[10]=b):b=k[10],k[11]!==S||k[12]!==z||k[13]!==_?(w=(0,t.jsx)("div",{className:"flex items-center justify-center",children:_?(0,t.jsx)("button",{type:"button",className:"text-sm underline hover:opacity-80 text-muted-foreground",onClick:()=>{S(),_()},children:(0,t.jsx)(s.T,{children:"Continue with free models"})}):(0,t.jsx)(c.Link,{href:z,variant:"underline",className:"text-sm hover:opacity-80",onClick:S,children:(0,t.jsx)(s.T,{children:"Continue with free models"})})}),k[11]=S,k[12]=z,k[13]=_,k[14]=w):w=k[14],k[15]!==g||k[16]!==w?(j=(0,t.jsxs)(i.d,{className:h,children:[x,(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[g,b,w]})]}),k[15]=g,k[16]=w,k[17]=j):j=k[17],k[18]!==E||k[19]!==N||k[20]!==j?(y=(0,t.jsx)(i.N,{open:N,onOpenChange:E,children:j}),k[18]=E,k[19]=N,k[20]=j,k[21]=y):y=k[21],y});e.s(["f",0,f],318875)},123215,e=>{"use strict";var t=e.i(663456),r=e.i(376885),a=e.i(398254),n=e.i(76429),i=e.i(292312),l=e.i(274417),s=e.i(372844),o=e.i(514681),d=e.i(46369),c=e.i(960773),u=e.i(912),m=e.i(544341);e.i(16043),e.s(["f",0,function(){let e,f=(0,t.c)(5),{openSignUp:h}=(0,a.f)(),{timezone:v}=(0,u.f)(),x=(0,c.Q)(),p=(0,d.f)(),{isSignedIn:g}=(0,r.f)();return(0,o.f)(g),f[0]!==p||f[1]!==h||f[2]!==x||f[3]!==v?(e=async e=>{if(void 0===h)return;let[t,r]=await Promise.all([(0,n.w)(i.f),(0,l.$)(i.f)]);try{h({...e,unsafeMetadata:{...(0,s.f)({sessionId:x.get_session_id()??"",anonymousDistinctId:x.get_distinct_id()??"",sealedSignupCfMetadataResult:t,radarSessionRelay:r,existingMetadata:e?.unsafeMetadata}),...v?{[m.$]:v}:{},...p()}})}catch(e){x.captureException(e,{error_source:"signup-modal-open"})}},f[0]=p,f[1]=h,f[2]=x,f[3]=v,f[4]=e):e=f[4],e}])},797677,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(136562),n=e.i(207298),i=e.i(16043);let l=(0,n.f)("size-full rounded-[inherit]",{variants:{orientation:{horizontal:"overflow-x-auto overflow-y-hidden",vertical:"overflow-y-auto overflow-x-hidden"}},defaultVariants:{orientation:"horizontal"}}),s=(0,n.f)("",{variants:{orientation:{horizontal:"w-max",vertical:"h-max"}},defaultVariants:{orientation:"horizontal"}});function o(e){window.clearTimeout(e)}e.s(["f",0,e=>{let n,d,c,u,m,f,h,v,x=(0,r.c)(19),{children:p,className:g,itemCount:b,orientation:w}=e,j=void 0===w?"horizontal":w,y=(0,i.useRef)(null),k=(0,i.useRef)(b);return x[0]!==b||x[1]!==j?(n=()=>{let e=k.current;if(k.current=b,b<=e)return;let t=()=>{if(y.current){if("horizontal"===j){y.current.scrollLeft=y.current.scrollWidth;return}y.current.scrollTop=y.current.scrollHeight}};t();let r=[window.setTimeout(t,50),window.setTimeout(t,200),window.setTimeout(t,500)];return()=>{r.forEach(o)}},d=[b,j],x[0]=b,x[1]=j,x[2]=n,x[3]=d):(n=x[2],d=x[3]),(0,i.useEffect)(n,d),x[4]!==g?(c=(0,a.f)("w-full overflow-hidden",g),x[4]=g,x[5]=c):c=x[5],x[6]!==j?(u=l({orientation:j}),x[6]=j,x[7]=u):u=x[7],x[8]!==j?(m=s({orientation:j}),x[8]=j,x[9]=m):m=x[9],x[10]!==p||x[11]!==m?(f=(0,t.jsx)("div",{className:m,children:p}),x[10]=p,x[11]=m,x[12]=f):f=x[12],x[13]!==u||x[14]!==f?(h=(0,t.jsx)("div",{ref:y,className:u,children:f}),x[13]=u,x[14]=f,x[15]=h):h=x[15],x[16]!==c||x[17]!==h?(v=(0,t.jsx)("div",{className:c,children:h}),x[16]=c,x[17]=h,x[18]=v):v=x[18],v}])},903121,e=>{"use strict";var t=e.i(659350),r=e.i(663456),a=e.i(16043);let n=a.forwardRef(function({title:e,titleId:t,...r},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm14.25 6a.75.75 0 0 1-.22.53l-2.25 2.25a.75.75 0 1 1-1.06-1.06L15.44 12l-1.72-1.72a.75.75 0 1 1 1.06-1.06l2.25 2.25c.141.14.22.331.22.53Zm-10.28-.53a.75.75 0 0 0 0 1.06l2.25 2.25a.75.75 0 1 0 1.06-1.06L8.56 12l1.72-1.72a.75.75 0 1 0-1.06-1.06l-2.25 2.25Z",clipRule:"evenodd"}))}),i=a.forwardRef(function({title:e,titleId:t,...r},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5H5.625ZM7.5 15a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5A.75.75 0 0 1 7.5 15Zm.75 2.25a.75.75 0 0 0 0 1.5H12a.75.75 0 0 0 0-1.5H8.25Z",clipRule:"evenodd"}),a.createElement("path",{d:"M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z"}))}),l=a.forwardRef(function({title:e,titleId:t,...r},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M1.5 6a2.25 2.25 0 0 1 2.25-2.25h16.5A2.25 2.25 0 0 1 22.5 6v12a2.25 2.25 0 0 1-2.25 2.25H3.75A2.25 2.25 0 0 1 1.5 18V6ZM3 16.06V18c0 .414.336.75.75.75h16.5A.75.75 0 0 0 21 18v-1.94l-2.69-2.689a1.5 1.5 0 0 0-2.12 0l-.88.879.97.97a.75.75 0 1 1-1.06 1.06l-5.16-5.159a1.5 1.5 0 0 0-2.12 0L3 16.061Zm10.125-7.81a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Z",clipRule:"evenodd"}))});var s=e.i(136562);e.i(707060);var o=e.i(196991);e.s(["f",0,e=>{let a,d,c,u,m=(0,r.c)(11),{className:f,isValid:h,onDrop:v}=e;m[0]!==v?(a=v?{onDrop:v}:{},m[0]=v,m[1]=a):a=m[1];let x=h?"border-accent-border bg-selected-bg":"border-destructive bg-destructive/10";return m[2]!==f||m[3]!==x?(d=(0,s.f)("flex h-32 w-full items-center justify-center rounded-lg border-2 border-dashed backdrop-blur-sm",x,"transition-colors duration-200 ease-in-out",f),m[2]=f,m[3]=x,m[4]=d):d=m[4],m[5]!==h?(c=(0,t.jsx)("div",{className:"text-center",children:h?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 font-semibold text-foreground",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(l,{className:"size-6 -rotate-6 text-muted-foreground"}),(0,t.jsx)(n,{className:"size-6 text-muted-foreground"}),(0,t.jsx)(i,{className:"size-6 rotate-6 text-muted-foreground"})]}),(0,t.jsx)(o.T,{children:"Drop files here to add to your message"})]}):(0,t.jsx)(o.T,{children:(0,t.jsx)("p",{className:"font-semibold text-destructive",children:"Invalid file type (images, audio, video, text, PDF)"})})}),m[5]=h,m[6]=c):c=m[6],m[7]!==a||m[8]!==d||m[9]!==c?(u=(0,t.jsx)("div",{role:"button",tabIndex:0,...a,className:d,children:c}),m[7]=a,m[8]=d,m[9]=c,m[10]=u):u=m[10],u}],903121)},829104,e=>{"use strict";let t={Loading:"loading",Blocked:"blocked",Allowed:"allowed"};e.s(["u",0,t,"I",0,function({isAuthLoaded:e,isSignedIn:r,workspaces:a,didFetchFail:n}){return e?!0!==r?t.Allowed:void 0!==a?0===a.length?t.Blocked:t.Allowed:n?t.Allowed:t.Loading:t.Loading}])},205059,e=>{"use strict";var t=e.i(663456),r=e.i(376885),a=e.i(128564),n=e.i(829104);e.s(["f",0,function(){let e,i,l=(0,t.c)(7),{isLoaded:s,isSignedIn:o}=(0,r.f)(),d=!0===o;l[0]!==d?(e={isEnabled:d},l[0]=d,l[1]=e):e=l[1];let{workspaces:c,didFetchFail:u}=(0,a.Z)(e);return l[2]!==u||l[3]!==s||l[4]!==o||l[5]!==c?(i=(0,n.I)({isAuthLoaded:s,isSignedIn:o,workspaces:c,didFetchFail:u}),l[2]=u,l[3]=s,l[4]=o,l[5]=c,l[6]=i):i=l[6],i}])},329415,902988,e=>{"use strict";var t=e.i(663456),r=e.i(128564),a=e.i(424909),n=e.i(402600);e.s(["f",0,function(){let e,i,l,s=(0,t.c)(6),o=(0,n.f)();s[0]===Symbol.for("react.memo_cache_sentinel")?(e={isEnabled:!0},s[0]=e):e=s[0];let{workspaces:d,activeWorkspaceId:c}=(0,r.Z)(e);if(s[1]!==c||s[2]!==o||s[3]!==d){l=Symbol.for("react.early_return_sentinel");e:{let e=/^\/workspaces\/([^/]+)/.exec(o??"")?.[1];if(void 0===e||void 0===d||!c){l=!1;break e}i=(0,a.f)(d,e)?.id}s[1]=c,s[2]=o,s[3]=d,s[4]=i,s[5]=l}else i=s[4],l=s[5];return l!==Symbol.for("react.early_return_sentinel")?l:i===c}],329415),e.s(["f",0,function(){let e,i,l,s=(0,t.c)(5),o=(0,n.f)();s[0]===Symbol.for("react.memo_cache_sentinel")?(e={isEnabled:!0},s[0]=e):e=s[0];let{workspaces:d}=(0,r.Z)(e);if(s[1]!==o||s[2]!==d){l=Symbol.for("react.early_return_sentinel");e:{let e=/^\/workspaces\/([^/]+)/.exec(o??"")?.[1];if(void 0===e||void 0===d){l=void 0;break e}i=(0,a.f)(d,e)}s[1]=o,s[2]=d,s[3]=i,s[4]=l}else i=s[3],l=s[4];return l!==Symbol.for("react.early_return_sentinel")?l:void 0!==i}],902988)}]); //# sourceMappingURL=14zcpghbg_7d2.js.map