(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,n){return null==e?"":(function(e,r){let n=JSON.stringify({locale:function e(t){return Array.isArray(t)?t.map(t=>e(t)).join(","):null==t?"":String(t)}(e),options:r}),i=t.get(n);if(i)return i;let a=new Intl.NumberFormat(e,r);return t.set(n,a),a})(r,n).format(e)}],869057),e.s(["f",0,function(e,t,r){return(e-t)*100/(r-t)}],966980)},782059,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 8.25H7.5a2.25 2.25 0 0 0-2.25 2.25v9a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25H15M9 12l3 3m0 0 3-3m-3 3V2.25"}))});e.s(["f",0,r],782059)},572677,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))});e.s(["f",0,r],572677)},246601,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"}))});e.s(["f",0,r],246601)},531397,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))});e.s(["f",0,r],531397)},215891,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),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)},47354,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),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.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"}))});e.s(["f",0,r],47354)},739308,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),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)},988199,361220,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"}))});e.s(["f",0,r],988199);var n=e.i(659350),i=e.i(663456),a=e.i(136562),o=e.i(139697),l=e.i(536397),s=e.i(799963),c=e.i(624112),d=e.i(983739);e.i(707060);var u=e.i(387086),f=e.i(196991),m=e.i(288265),p=e.i(919035),h=e.i(354896);let g=[{value:d.f.Price,label:(0,u.b)("Price")},{value:d.f.Throughput,label:(0,u.b)("Throughput")}];e.s(["f",0,e=>{var r,d;let u,v,x,b,y,w,j,k,N,_,S,C,E,R,T,M,O,L,z,A,I,B,P,D,F=(0,i.c)(56);F[0]!==e?({className:v,contentClassName:x,selected:k,onDone:y,disabled:b,ref:j,...w}=e,F[0]=e,F[1]=v,F[2]=x,F[3]=b,F[4]=y,F[5]=w,F[6]=j,F[7]=k):(v=F[1],x=F[2],b=F[3],y=F[4],w=F[5],j=F[6],k=F[7]);let $=(0,m.f)(),H=(0,p.f)(),[V,W]=(0,t.useState)(!1),G=(0,t.useId)(),U=V&&!b;F[8]!==b?(N=e=>!b&&W(e),F[8]=b,F[9]=N):N=F[9],F[10]!==v?(_=(0,a.f)("relative px-2 pr-7",v),F[10]=v,F[11]=_):_=F[11],F[12]!==$||F[13]!==H||F[14]!==k?(S=(r=k,d=H,((u=g.find(e=>e.value===r))?d(u.label):void 0)??$("Sort By")),F[12]=$,F[13]=H,F[14]=k,F[15]=S):S=F[15],F[16]!==S?(C=(0,n.jsx)("span",{className:"line-clamp-1 w-full truncate text-start",children:S}),F[16]=S,F[17]=C):C=F[17],F[18]===Symbol.for("react.memo_cache_sentinel")?(E=(0,n.jsx)(h.f,{className:"absolute right-1 size-4 opacity-50"}),F[18]=E):E=F[18],F[19]!==b||F[20]!==G||F[21]!==V||F[22]!==w||F[23]!==j||F[24]!==_||F[25]!==C?(R=(0,n.jsx)(c.J,{render:(0,n.jsxs)(o.Button,{ref:j,variant:"outline",role:"combobox","aria-expanded":V,"aria-controls":G,align:"start",className:_,disabled:b,...w,children:[C,E]})}),F[19]=b,F[20]=G,F[21]=V,F[22]=w,F[23]=j,F[24]=_,F[25]=C,F[26]=R):R=F[26],F[27]!==x?(T=(0,a.f)("rounded-lg p-0",x),F[27]=x,F[28]=T):T=F[28],F[29]!==$?(M=$("Sort By"),F[29]=$,F[30]=M):M=F[30];let q=!k;return F[31]!==y?(O=()=>{y(void 0),W(!1)},F[31]=y,F[32]=O):O=F[32],F[33]===Symbol.for("react.memo_cache_sentinel")?(L=(0,n.jsx)(f.T,{children:"Default"}),F[33]=L):L=F[33],F[34]!==q||F[35]!==O?(z=(0,n.jsx)(s.X,{isSelected:q,onSelect:O,children:L}),F[34]=q,F[35]=O,F[36]=z):z=F[36],F[37]!==H||F[38]!==y||F[39]!==k?(A=g.map(e=>(0,n.jsx)(s.X,{isSelected:k===e.value,onSelect:()=>{y(e.value),W(!1)},children:H(e.label)},e.value)),F[37]=H,F[38]=y,F[39]=k,F[40]=A):A=F[40],F[41]!==z||F[42]!==A||F[43]!==M?(I=(0,n.jsxs)(l.W,{heading:M,children:[z,A]}),F[41]=z,F[42]=A,F[43]=M,F[44]=I):I=F[44],F[45]!==G||F[46]!==I?(B=(0,n.jsx)(l.s,{children:(0,n.jsx)(l.X,{id:G,children:I})}),F[45]=G,F[46]=I,F[47]=B):B=F[47],F[48]!==B||F[49]!==T?(P=(0,n.jsx)(c.T,{positionerClassName:"z-popover",collisionPadding:8,className:T,children:B}),F[48]=B,F[49]=T,F[50]=P):P=F[50],F[51]!==U||F[52]!==P||F[53]!==N||F[54]!==R?(D=(0,n.jsxs)(c.V,{open:U,onOpenChange:N,children:[R,P]}),F[51]=U,F[52]=P,F[53]=N,F[54]=R,F[55]=D):D=F[55],D}],361220)},915663,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))});e.s(["f",0,r],915663)},609303,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))});e.s(["f",0,r],609303)},710968,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"}))});e.s(["f",0,r],710968)},2078,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"}))});e.s(["f",0,r],2078)},616108,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"}))});e.s(["f",0,r],616108)},962852,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"}))});e.s(["f",0,r],962852)},485741,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}))});e.s(["f",0,r],485741)},971892,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 12.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 18.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Z"}))});e.s(["f",0,r],971892)},934227,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["f",0,r],934227)},269510,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3v1.5M3 21v-6m0 0 2.77-.693a9 9 0 0 1 6.208.682l.108.054a9 9 0 0 0 6.086.71l3.114-.732a48.524 48.524 0 0 1-.005-10.499l-3.11.732a9 9 0 0 1-6.085-.711l-.108-.054a9 9 0 0 0-6.208-.682L3 4.5M3 15V4.5"}))});e.s(["f",0,r],269510)},338749,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"}))});e.s(["f",0,r],338749)},657288,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))});e.s(["f",0,r],657288)},778553,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"}))});e.s(["f",0,r],778553)},935084,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))});e.s(["f",0,r],935084)},795647,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,r],795647)},194215,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))});e.s(["f",0,r],194215)},708638,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),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)},694913,864226,e=>{"use strict";var t=e.i(126435),r=e.i(403908);let n=/[#.]/g;var i=e.i(301800),a=e.i(773601),o=e.i(237925);function l(e,t,a){let l=a?function(e){let t=new Map;for(let r of e)t.set(r.toLowerCase(),r);return t}(a):void 0;return function(a,c,...d){let u;if(null==a)u={type:"root",children:[]},d.unshift(c);else{let f=(u=function(e,t){let r,i,a=e||"",o={},l=0;for(;l{"use strict";var t=e.i(651681);let r={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],45924),e.s(["f",0,n],61885)},773151,e=>{"use strict";var t=e.i(651681);let r={name:"arrow-up-down",size:24,node:[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],773151)},917023,e=>{"use strict";var t=e.i(651681);let r={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],917023)},49505,e=>{"use strict";var t=e.i(651681);let r={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],49505)},1971,e=>{"use strict";var t=e.i(651681);let r={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n])},88084,e=>{"use strict";var t=e.i(1971);e.s(["f",()=>t.f])},193854,e=>{"use strict";var t=e.i(651681);let r={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],193854)},68570,e=>{"use strict";var t=e.i(651681);let r={name:"file",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],68570)},816216,e=>{"use strict";var t=e.i(651681);let r={name:"image-off",size:24,node:[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],816216)},257723,734824,e=>{"use strict";var t=e.i(651681);let r={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],734824),e.s(["f",0,n],257723)},975436,e=>{"use strict";var t=e.i(307683);e.s(["f",()=>t.f])},527993,e=>{"use strict";var t=e.i(651681);let r={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],527993)},472089,e=>{"use strict";var t=e.i(651681);let r={name:"mic",size:24,node:[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],472089)},384566,e=>{"use strict";var t=e.i(651681);let r={name:"settings",size:24,node:[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],384566)},750636,e=>{"use strict";var t=e.i(651681);let r={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],750636)},357321,e=>{"use strict";var t=e.i(651681);let r={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};r.node;let n=(0,t.f)(r);e.s(["f",0,n])},654678,e=>{"use strict";var t=e.i(357321);e.s(["f",()=>t.f])},99938,e=>{"use strict";var t=e.i(651681);let r={name:"type",size:24,node:[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],99938)},288087,e=>{"use strict";var t=e.i(651681);let r={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],288087)},336819,e=>{"use strict";var t=e.i(651681);let r={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],336819)},168639,e=>{"use strict";var t,r,n,i,a,o,l,s=e.i(790294),c=e.i(16043),d=(t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),u="__POSTHOG_REACT_SHARED_STATE__",f="u">typeof globalThis?globalThis:"u">typeof window?window:{};try{o=f[u]=f[u]||new WeakMap}catch(e){o=new WeakMap}o.has(c.createContext)||o.set(c.createContext,{});var m=o.get(c.createContext);m.context||(m.context=(0,c.createContext)({get client(){return l||m.defaultPostHogInstance},bootstrap:void 0}));var p=m.context,h=function(e){return"function"==typeof e},g=function(e){var t=Object.prototype.toString.call(e);return e instanceof Error||"[object Error]"===t||"[object Exception]"===t||"[object DOMException]"===t||"[object DOMError]"===t},v=function(e,t){try{Object.defineProperty(e,"name",{value:t,writable:!0,enumerable:!0,configurable:!0})}catch(e){}},x=function(e,t){for(var r=new WeakSet,n=e;!r.has(n);){if(r.add(n),!g(n.cause)){void 0!==n.cause&&(t.cause=n.cause),n.cause=t;return}n=n.cause}},b=function(e,t){if(!t)return e;var r=Error(g(e)?e.message:"Primitive value captured as exception: ".concat(String(e)));return(v(r,"React ErrorBoundary ".concat(g(e)?e.name:"Error")),r.stack=t,g(e))?(x(e,r),e):r},y={componentStack:null,exceptionEvent:null,error:null};r=a=function(e){function t(t){var r=e.call(this,t)||this;return r._resetError=function(){r.setState(y)},r.state=y,r}return d(t,e),t.prototype.componentDidCatch=function(e,t){var r,n=this.props.additionalProperties;h(n)?r=n(e,t):"object"==typeof n&&(r=n);var i=this.context.client,a=t.componentStack,o=i.captureException(b(e,a),r);this.setState({error:e,componentStack:null!=a?a:null,exceptionEvent:o})},t.prototype.render=function(){var e=this.props,t=e.children,r=e.fallback,n=this.state;if(null==n.componentStack)return h(t)?t():t;var i=h(r)?c.default.createElement(r,{error:n.error,componentStack:n.componentStack,exceptionEvent:n.exceptionEvent,resetError:this._resetError}):r;return c.default.isValidElement(i)?i:(console.warn("[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."),c.default.createElement(c.default.Fragment,null))},t}(c.default.Component),"symbol"==typeof(n="PostHogErrorBoundary")&&(n=n.description?"[".concat(n.description,"]"):""),Object.defineProperty(r,"name",{configurable:!0,value:n}),a.contextType=p,i=s.f,m.defaultPostHogInstance&&m.defaultPostHogInstance!==l||(m.defaultPostHogInstance=i),l=i,e.s(["f",0,function(){return(0,c.useContext)(p).client}])},973811,e=>{"use strict";var t="u"=s&&(d=o,o=r(),u=0)}function p(){let n=o,{length:i}=arguments;for(let e=0;e{o=r(),d=null,u=0,p.resetResultsCount()},p.resultsCount=()=>f,p.resetResultsCount=()=>{f=0},p}var i=Symbol("NOT_FOUND"),a=e=>Array.isArray(e)?e:[e];function o(e,...t){let r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,i=(...e)=>{let t,i,o=0,l=0,s={},c=e.pop();"object"==typeof c&&(s=c,c=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);let{memoize:d,memoizeOptions:u=[],argsMemoize:f=n,argsMemoizeOptions:m=[]}={...r,...s},p=a(u),h=a(m),g=(!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${r}]`)}}(t=Array.isArray(e[0])?e[0]:e,"createSelector expects all input-selectors to be functions, but received the following types: "),t),v=d(function(){return o++,c.apply(null,arguments)},...p);return Object.assign(f(function(){l++;let{length:e}=g,t=Array(e);for(let r=0;rl,resetDependencyRecomputations:()=>{l=0},lastResult:()=>i,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:f})};return Object.assign(i,{withTypes:()=>i}),i}var l=o(n),s=Object.assign((e,t=l)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>s}),c=(e,t)=>e===t;e.s(["l",0,l,"O",0,o,"P",0,function(e,t){let r,n,{equalityCheck:a=c,maxSize:o=1,resultEqualityCheck:l}="object"==typeof t?t:{equalityCheck:t},s=function(e,t){if(null===e||null===t||e.length!==t.length)return!1;let{length:r}=e;for(let n=0;nr&&s(r.key,e)?r.value:i,put(e,t){r={key:e,value:t}},findMatchingEntry(e,t){let n=r;return void 0!==n&&t(n.value,e)?n:void 0},clear(){r=void 0}}:(n=[],{get:function(e){let t=n.findIndex(t=>s(t.key,e));if(t>-1){let e=n[t];return t>0&&(n.splice(t,1),n.unshift(e)),e.value}return i},put:function(e,t){n.unshift({key:e,value:t}),n.length>o&&n.pop()},findMatchingEntry:function(e,t){let r=n,{length:i}=r;for(let n=0;n{u.clear(),f.resetResultsCount()},f.resultsCount=()=>d,f.resetResultsCount=()=>{d=0},f},"u",0,n])},895783,e=>{"use strict";var t=e.i(16043);let r=(e,t)=>{let r=e instanceof Map?e:new Map(e.entries()),n=t instanceof Map?t:new Map(t.entries());if(r.size!==n.size)return!1;for(let[e,t]of r)if(!n.has(e)||!Object.is(t,n.get(e)))return!1;return!0};e.s(["f",0,function(e){let n=t.default.useRef(void 0);return t=>{let i=e(t);return!function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;if(Symbol.iterator in e&&Symbol.iterator in t){if("entries"in e&&"entries"in t)return r(e,t);let n=e[Symbol.iterator](),i=t[Symbol.iterator](),a=n.next(),o=i.next();for(;!a.done&&!o.done;){if(!Object.is(a.value,o.value))return!1;a=n.next(),o=i.next()}return!!a.done&&!!o.done}return r({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}(n.current,i)?n.current=i:n.current}}],895783)},333131,e=>{"use strict";e.i(988590);var t=e.i(393182);function r(e,{autoViaJev:n=!1}={}){return e===t.f.JevRouter||e===t.f.AutoBeta||e===t.f.AutoCode||void 0!==function(e){if(e!==t.f.Auto)return e?.match(/^([a-z0-9]+(?:-[a-z0-9]+)*)\/auto$/)?.[1]}(e)||n&&e===t.f.Auto}let n=new Map([[t.f.Phaser,t.f.AutoBeta]]);e.s(["j",0,{AnthropicClaudeFable:"~anthropic/claude-fable-latest",AnthropicClaudeOpus:"~anthropic/claude-opus-latest",AnthropicClaudeSonnet:"~anthropic/claude-sonnet-latest",AnthropicClaudeHaiku:"~anthropic/claude-haiku-latest",GoogleGeminiPro:"~google/gemini-pro-latest",GoogleGeminiFlash:"~google/gemini-flash-latest",OpenAIGpt:"~openai/gpt-latest",OpenAIGptSol:"~openai/gpt-sol-latest",OpenAIGptAstra:"~openai/gpt-astra-latest",XAIGrok:"~x-ai/grok-latest",OpenAIGptMini:"~openai/gpt-mini-latest",MoonshotKimi:"~moonshotai/kimi-latest"},"x",0,n,"n",0,function(e){return r(e,{autoViaJev:!0})},"Q",0,r])},4763,282104,e=>{"use strict";var t=e.i(497214),r=e.i(988590),n=e.i(615199);let i={[n.$.Age18Plus]:{label:"18+ age confirmation",statement:"I confirm that I am 18 years of age or older.",organizationStatement:"Confirm that all users in this organization meet the 18+ age requirement.",grant:n.b.SelfAttested},[n.$.PrivilegedModelAccess]:{label:"Privileged model access approval",statement:"This account is approved by OpenRouter to use privileged models.",organizationStatement:"This organization is approved by OpenRouter to use privileged models.",grant:n.b.Reviewed}},a=Object.values(n.$).filter(e=>o(e));function o(e){return i[e].grant===n.b.SelfAttested}e.s(["e",0,a,"w",0,o,"W",0,function(e){let{true:i,false:a}=(0,t.E)([...e],e=>(0,r.q)(e,n.$));return{known:i,unknown:a}}],282104);let l="/settings/preferences",s=`https://openrouter.ai${l}`;n.b.SelfAttested,n.b.Reviewed,e.s(["W",0,l,"k",0,s,"r",0,function(e,t){if(0===e.length)return[];let r=new Set(t);return e.filter(e=>!r.has(e))}],4763)},615199,e=>{"use strict";e.s(["b",0,{SelfAttested:"self_attested",Reviewed:"reviewed"},"x",0,{User:"user",Org:"org"},"$",0,{Age18Plus:"age_18plus",PrivilegedModelAccess:"privileged_model_access"}])},707028,412217,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),i=e.i(961160),a=e.i(429332),o=e.i(96659),l=e.i(16043),s=e.i(85194),c=e.i(136562),d=e.i(913743),u=e.i(18914),f=e.i(19532),m=e.i(551280),p=e.i(758427),h=e.i(468149);let g="data-message-chrome",v={[g]:""},x=`[${g}]`;e.s(["Y",0,x,"q",0,v],412217);let b=/^ {0,3}(`{3,}|~{3,})/,y=/^ {0,3}<[a-zA-Z/!?]/,w=/^ {0,3}\[[^\]]+\]:/,j=/^#{1,6}(\s|$)/,k=/^(`{3,}|~{3,})/,N=/^(\s|[-*+]\s|\d{1,9}[.)]\s|>|\||<|\[|---|\*\*\*|___)/;function _(e,t){let r=b.exec(e);if(!r)return t;let n=r[1];return null===t?{marker:n[0],length:n.length}:n[0]===t.marker&&n.length>=t.length&&e.trim()===n?null:t}let S=(0,a.default)(()=>e.A(747765).then(e=>e.ChatroomMathMarkdown),{loadableGenerated:{modules:[817481]}}),C="pointer-events-none sticky top-12 z-10 h-0",E="pointer-events-auto absolute right-2 top-2 flex items-center",R="mt-6 mb-4 text-foreground",T=e=>{let n,i,a=(0,r.c)(3),{children:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(R,"border-b border-border pb-1 text-2xl font-bold"),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("h1",{className:n,children:o}),a[1]=o,a[2]=i):i=a[2],i},M=e=>{let n,i,a=(0,r.c)(3),{children:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(R,"text-2xl font-bold"),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("h2",{className:n,children:o}),a[1]=o,a[2]=i):i=a[2],i},O=e=>{let n,i,a=(0,r.c)(3),{children:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(R,"text-base font-medium"),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("h3",{className:n,children:o}),a[1]=o,a[2]=i):i=a[2],i},L=e=>{let n,i,a=(0,r.c)(3),{children:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(R,"text-base font-medium"),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("h4",{className:n,children:o}),a[1]=o,a[2]=i):i=a[2],i},z=e=>{let n,i,a=(0,r.c)(3),{children:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(R,"text-base font-medium"),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("h5",{className:n,children:o}),a[1]=o,a[2]=i):i=a[2],i},A=e=>{let n,i,a=(0,r.c)(3),{children:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(R,"text-sm font-medium"),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("h6",{className:n,children:o}),a[1]=o,a[2]=i):i=a[2],i},I=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("blockquote",{className:"mb-4 border-l-2 border-border pl-4 italic",children:a}),i[0]=a,i[1]=n):n=i[1],n},B=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("p",{className:"mb-4 break-words text-sm font-normal leading-7",children:a}),i[0]=a,i[1]=n):n=i[1],n},P=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("div",{className:"markdown-table my-6 overflow-x-auto rounded-lg border border-border bg-card text-foreground",children:(0,t.jsx)("table",{className:"w-full border-collapse",children:a})}),i[0]=a,i[1]=n):n=i[1],n},D=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("thead",{className:"whitespace-nowrap border-b border-border text-foreground",children:a}),i[0]=a,i[1]=n):n=i[1],n},F=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("tbody",{children:a}),i[0]=a,i[1]=n):n=i[1],n},$=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("tr",{className:"border-b border-border last:border-b-0",children:a}),i[0]=a,i[1]=n):n=i[1],n},H=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("th",{className:"border-r border-border p-3 text-left font-medium last:border-r-0",children:a}),i[0]=a,i[1]=n):n=i[1],n},V=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("td",{className:"border-r border-border p-3 text-left last:border-r-0",children:a}),i[0]=a,i[1]=n):n=i[1],n},W=e=>{let n,i,a=(0,r.c)(4);if(a[0]!==e){let{node:t,...r}=e;n=r,a[0]=e,a[1]=n}else n=a[1];return a[2]!==n?(i=(0,t.jsx)("ul",{...n,className:"list-disc pl-8"}),a[2]=n,a[3]=i):i=a[3],i},G=e=>{let n,i,a=(0,r.c)(4);if(a[0]!==e){let{node:t,...r}=e;n=r,a[0]=e,a[1]=n}else n=a[1];return a[2]!==n?(i=(0,t.jsx)("ol",{...n,className:"list-decimal pl-8"}),a[2]=n,a[3]=i):i=a[3],i},U=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("li",{className:"mt-1.5",children:a}),i[0]=a,i[1]=n):n=i[1],n},q=()=>{let e,n=(0,r.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("hr",{className:"my-6 border-t border-border"}),n[0]=e):e=n[0],e},Z=e=>{let n,i=(0,r.c)(3),{src:a,alt:l}=e;if("string"!=typeof a||!a)return null;let s=l??"";return i[0]!==a||i[1]!==s?(n=(0,t.jsx)(o.default,{src:a,alt:s,width:0,height:0,sizes:"100vw",className:"w-full h-auto max-w-full rounded-lg",unoptimized:!0}),i[0]=a,i[1]=s,i[2]=n):n=i[2],n},K="opacity-0 transition-opacity duration-100 group-hover/codeblock:opacity-100",Y="inline-flex rounded-md bg-popover",J=e=>{let n,i,a=(0,r.c)(3),{text:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,c.f)(Y,K),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsx)("span",{className:n,children:(0,t.jsx)(p.f,{text:o,hideCopyText:!0,className:"hover:bg-card-hover",size:"sm",variant:"ghost"})}),a[1]=o,a[2]=i):i=a[2],i},X=e=>{let n,a,o,s,f,m,p=(0,r.c)(30),{children:h}=e,{resolvedTheme:g}=(0,i.i)();if(p[0]!==h){let e,{className:t,children:r}=l.default.Children.toArray(h)[0].props;n=r,p[3]===Symbol.for("react.memo_cache_sentinel")?(e=/language-(\w+)/,p[3]=e):e=p[3],a=e.exec(t||""),p[0]=h,p[1]=n,p[2]=a}else n=p[1],a=p[2];let x=a,b=x?x[1]:null;if(b){let e,r,i,a,o,l,s,f="dark"===g?u.N:u.L,m=String(n);p[4]!==m?(e=m.trimEnd(),p[4]=m,p[5]=e):e=p[5];let h=e;return p[6]===Symbol.for("react.memo_cache_sentinel")?(r=(0,c.f)(Y,"h-8 select-none items-center px-1.5 text-xs leading-none text-muted-foreground",K),p[6]=r):r=p[6],p[7]!==b?(i=(0,t.jsx)("span",{className:r,children:b}),p[7]=b,p[8]=i):i=p[8],p[9]!==h?(a=(0,t.jsx)(J,{text:h}),p[9]=h,p[10]=a):a=p[10],p[11]!==i||p[12]!==a?(o=(0,t.jsx)("div",{className:C,...v,children:(0,t.jsxs)("div",{className:E,children:[i,a]})}),p[11]=i,p[12]=a,p[13]=o):o=p[13],p[14]!==h||p[15]!==b||p[16]!==f?(l=(0,t.jsx)(d.f,{code:h,lang:b,theme:f}),p[14]=h,p[15]=b,p[16]=f,p[17]=l):l=p[17],p[18]!==o||p[19]!==l?(s=(0,t.jsxs)("div",{className:"relative group/codeblock mb-4",children:[o,l]}),p[18]=o,p[19]=l,p[20]=s):s=p[20],s}let y=String(n);p[21]!==y?(o=y.trimEnd(),p[21]=y,p[22]=o):o=p[22];let w=o;return p[23]!==w?(s=(0,t.jsx)("div",{className:C,...v,children:(0,t.jsx)("div",{className:E,children:(0,t.jsx)(J,{text:w})})}),p[23]=w,p[24]=s):s=p[24],p[25]!==w?(f=(0,t.jsx)("pre",{className:"overflow-x-auto rounded-lg border border-border bg-card p-4",children:(0,t.jsx)("code",{className:"bg-transparent font-mono text-sm text-foreground",children:w})}),p[25]=w,p[26]=f):f=p[26],p[27]!==s||p[28]!==f?(m=(0,t.jsxs)("div",{className:"relative group/codeblock mb-4",children:[s,f]}),p[27]=s,p[28]=f,p[29]=m):m=p[29],m},Q=(0,n.f)((0,c.f)("rounded-md bg-card-hover px-1.5 py-0.5 font-mono text-sm leading-6 break-words","[.markdown-table_td_&]:break-normal [.markdown-table_td_&]:whitespace-pre","[.markdown-table_th_&]:break-normal [.markdown-table_th_&]:whitespace-pre"),{variants:{variant:{classic:"text-foreground",subtle:"border border-border text-foreground"}},defaultVariants:{variant:"classic"}}),ee=(0,n.f)((0,c.f)("min-w-0 w-full","[&>ol]:mb-4 [&>ul]:mb-4","[&>*:last-child]:mb-0","[&_li>p]:mb-0"),{variants:{variant:{classic:"",subtle:"[&_h1]:text-2xl [&_h2]:text-xl"}},defaultVariants:{variant:"classic"}}),et=e=>{let n,i=(0,r.c)(2),{children:a}=e;return i[0]!==a?(n=(0,t.jsx)("strong",{className:"font-medium",children:a}),i[0]=a,i[1]=n):n=i[1],n},er=e=>{let n,i,a,o=(0,r.c)(6);return o[0]!==e?({children:n,...i}=e,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]),o[3]!==n||o[4]!==i?(a=(0,t.jsx)("details",{...i,className:"group/details mb-4 overflow-hidden rounded-lg border border-border bg-card px-4 text-foreground open:pb-3",children:n}),o[3]=n,o[4]=i,o[5]=a):a=o[5],a},en=e=>{let n,i,a,o,l=(0,r.c)(7);return l[0]!==e?({children:n,...i}=e,l[0]=e,l[1]=n,l[2]=i):(n=l[1],i=l[2]),l[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("span",{"aria-hidden":!0,className:"text-xs transition-transform duration-200 group-open/details:rotate-90",children:"▶"}),l[3]=a):a=l[3],l[4]!==n||l[5]!==i?(o=(0,t.jsxs)("summary",{...i,className:"-mx-4 flex cursor-pointer list-none select-none items-center gap-2 px-4 py-3 font-medium text-foreground transition-colors hover:bg-card-hover [&::-webkit-details-marker]:hidden",children:[a,n]}),l[4]=n,l[5]=i,l[6]=o):o=l[6],o},ei=[],ea=(0,l.memo)(e=>{let n,i=(0,r.c)(5),{markdown:a,components:o,rehypePlugins:l,disallowedElements:c}=e;return i[0]!==o||i[1]!==c||i[2]!==a||i[3]!==l?(n=(0,t.jsx)(s.f,{remarkPlugins:h.z,rehypePlugins:l,disallowedElements:c,components:o,children:a}),i[0]=o,i[1]=c,i[2]=a,i[3]=l,i[4]=n):n=i[4],n});e.s(["f",0,e=>{let n,i,a,o,s,d,u,p,g,v,x=(0,r.c)(37),{children:b,className:C,linkClassName:E,disableLink:R,shouldRenderRawHtml:K,disallowedElements:Y,codeVariant:J,isStreaming:eo}=e,el=void 0===b?"":b,es=void 0===C?"":C,ec=void 0===E?"":E,ed=void 0!==R&&R,eu=void 0===K||K,ef=void 0===Y?ei:Y,em=void 0===J?"classic":J,ep=void 0!==eo&&eo;if(x[0]!==em)n=e=>{let n,i,a,o,l,s=(0,r.c)(10);if(s[0]!==e){let{node:t,className:r,children:o,...l}=e;i=r,n=o,a=l,s[0]=e,s[1]=n,s[2]=i,s[3]=a}else n=s[1],i=s[2],a=s[3];return s[4]!==i?(o=(0,c.f)(Q({variant:em}),i),s[4]=i,s[5]=o):o=s[5],s[6]!==n||s[7]!==a||s[8]!==o?(l=(0,t.jsx)("code",{...a,className:o,children:n}),s[6]=n,s[7]=a,s[8]=o,s[9]=l):l=s[9],l},x[0]=em,x[1]=n;else n=x[1];if(x[2]!==ed||x[3]!==ec){let e;e={disableLink:ed,linkClassName:ec},i=({node:r,...n})=>e.disableLink?(0,t.jsx)("span",{...n}):(0,t.jsx)(m.b,{className:e.linkClassName,...n,children:n.children}),x[2]=ed,x[3]=ec,x[4]=i}else i=x[4];x[5]!==i||x[6]!==n?(a={h1:T,h2:M,h3:O,h4:L,h5:z,h6:A,blockquote:I,p:B,pre:X,code:n,table:P,thead:D,tbody:F,tr:$,th:H,td:V,ul:W,ol:G,li:U,hr:q,a:i,strong:et,img:Z,details:er,summary:en},x[5]=i,x[6]=n,x[7]=a):a=x[7];let eh=a,eg=(0,f.f)(el);x[8]!==eu?(o=(0,h.C)(eu),x[8]=eu,x[9]=o):o=x[9];let ev=o;x[10]!==es||x[11]!==em?(s=(0,c.f)(ee({variant:em}),es),x[10]=es,x[11]=em,x[12]=s):s=x[12];let ex=s;if(x[13]!==el||x[14]!==eh||x[15]!==ex||x[16]!==ef||x[17]!==ep||x[18]!==ev){let e,r=ep?function(e){let t=e.split("\n");if(function(e){let t=null;for(let r of e){if(null===t&&(y.test(r)||w.test(r)))return!0;t=_(r,t)}return!1}(t))return[e];let r=[],n=0,i=null;for(let[e,a]of t.entries()){let o=null!==i;if(i=_(a,i),o||null!==i||""!==a.trim())continue;let l=t[e+1];if(void 0===l||!(""!==l.trim()&&(j.test(l)||k.test(l)||!N.test(l))))continue;let s=t.slice(n,e).join("\n");""!==s.trim()&&(r.push(s),n=e+1)}return r.push(t.slice(n).join("\n")),r}(el):[el];d=ex,x[21]!==eh||x[22]!==ef||x[23]!==ev?(e=(e,r)=>(0,t.jsxs)(l.default.Fragment,{children:[r>0?"\n":null,(0,t.jsx)(ea,{markdown:e,components:eh,rehypePlugins:ev,disallowedElements:ef})]},r),x[21]=eh,x[22]=ef,x[23]=ev,x[24]=e):e=x[24],u=r.map(e),x[13]=el,x[14]=eh,x[15]=ex,x[16]=ef,x[17]=ep,x[18]=ev,x[19]=d,x[20]=u}else d=x[19],u=x[20];x[25]!==d||x[26]!==u?(p=(0,t.jsx)("div",{className:d,children:u}),x[25]=d,x[26]=u,x[27]=p):p=x[27];let eb=p;return eg?(x[28]!==el||x[29]!==eh||x[30]!==ex||x[31]!==ef||x[32]!==eu?(g=(0,t.jsx)(S,{shouldRenderRawHtml:eu,disallowedElements:ef,components:eh,className:ex,children:el}),x[28]=el,x[29]=eh,x[30]=ex,x[31]=ef,x[32]=eu,x[33]=g):g=x[33],x[34]!==eb||x[35]!==g?(v=(0,t.jsx)(l.Suspense,{fallback:eb,children:g}),x[34]=eb,x[35]=g,x[36]=v):v=x[36],v):eb}],707028)},18914,e=>{"use strict";let t="#03080A",r="#FCFCFE";function n(e){return{comment:e.muted,punctuation:e.muted,string:e.string,"diff.plus":e.string,link_uri:e.string,number:e.constant,boolean:e.constant,constant:e.constant,attribute:e.constant,variant:e.constant,"selector.class":e.constant,"selector.id":e.constant,"selector.pseudo":e.constant,keyword:e.keyword,operator:e.keyword,preproc:e.keyword,link_text:e.keyword,function:e.function,constructor:e.function,type:e.type,namespace:e.type,enum:e.type,variable:e.foreground,property:e.property,tag:e.tag,selector:e.tag,"diff.minus":e.tag,"string.regex":e.regex,title:{color:e.foreground,font_weight:700},"emphasis.strong":{color:e.foreground,font_weight:700},emphasis:{font_style:"italic"}}}let i="openrouter-light",a="openrouter-dark",o={name:i,appearance:"light",style:{"editor.background":"#FFFFFF","editor.foreground":t,syntax:n({foreground:t,muted:"#03080AB0",string:"#007544",constant:"#8A6000",keyword:"#0352C9",function:"#800080",type:"#4682B4",property:"#7B68EE",tag:"#BF0024",regex:"#2E8B57"})}},l={name:a,appearance:"dark",style:{"editor.background":"#03080A","editor.foreground":r,syntax:n({foreground:r,muted:"#FCFCFEA0",string:"#34DFAA",constant:"#FFAB00",keyword:"#4D8DFF",function:"#DA70D6",type:"#40E0D0",property:"#FFBB28",tag:"#FF2D55",regex:"#9ACD32"})}};e.s(["N",0,a,"L",0,i,"Y",0,l,"l",0,o])},551280,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(531397),i=e.i(196991),a=e.i(16043),o=e.i(136562);e.s(["o",0,e=>{let i,a,l=(0,r.c)(4),{className:s}=e;return l[0]!==s?(i=(0,o.f)("ml-1 inline-block w-4",s),l[0]=s,l[1]=i):i=l[1],l[2]!==i?(a=(0,t.jsx)(n.f,{className:i}),l[2]=i,l[3]=a):a=l[3],a},"b",0,e=>{let n,l,s,c,d,u,f,m,p,h,g,v=(0,r.c)(26);v[0]!==e?({className:l,href:c,children:n,target:f,rel:u,"aria-describedby":s,...d}=e,v[0]=e,v[1]=n,v[2]=l,v[3]=s,v[4]=c,v[5]=d,v[6]=u,v[7]=f):(n=v[1],l=v[2],s=v[3],c=v[4],d=v[5],u=v[6],f=v[7]);let x=c?.startsWith("http"),b=f??(x?"_blank":void 0),y="_blank"===b,w=(0,a.useId)();v[8]!==s||v[9]!==w||v[10]!==y?(m=y?[s,w].filter(Boolean).join(" "):s,v[8]=s,v[9]=w,v[10]=y,v[11]=m):m=v[11];let j=m;v[12]!==l?(p=(0,o.f)(l,"underline underline-offset-2 decoration-current/40 hover:text-accent-foreground hover:decoration-current transition-colors"),v[12]=l,v[13]=p):p=v[13];let k=u??(y?"noopener noreferrer":void 0);return v[14]!==w||v[15]!==y?(h=y&&(0,t.jsx)("span",{id:w,hidden:!0,children:(0,t.jsx)(i.T,{children:"Opens in new tab"})}),v[14]=w,v[15]=y,v[16]=h):h=v[16],v[17]!==n||v[18]!==c||v[19]!==d||v[20]!==j||v[21]!==b||v[22]!==p||v[23]!==k||v[24]!==h?(g=(0,t.jsxs)("a",{...d,href:c,className:p,target:b,rel:k,"aria-describedby":j,children:[n,h]}),v[17]=n,v[18]=c,v[19]=d,v[20]=j,v[21]=b,v[22]=p,v[23]=k,v[24]=h,v[25]=g):g=v[25],g}],551280)},19532,e=>{"use strict";var t=e.i(539758);let r=/^[ \t>]*(?:(?:[-*+]|\d{1,9}[.)])[ \t]+[ \t>]*)*(?:`{3,}|~{3,})[ \t]*math\b/m,n=/&(?:dollar|#0*36|#[xX]0*24);/g;e.s(["f",0,e=>{let i=e.replace(n,()=>"$");return i.includes("$$")||(0,t.v)(i)||r.test(e)}])},953401,e=>{"use strict";let t=(0,e.i(16043).createContext)(!1);e.s(["f",0,t])},6146,e=>{"use strict";var t=e.i(663456),r=e.i(16043),n=e.i(535072),i=e.i(402600),a=e.i(953401);let o=/^\/workspaces\/[^/]+\/(?:chat|fusion)(?:\/|$)/;e.s(["M",0,"data-dashboard-sidebar-animated","K",0,"data-dashboard-sidebar-wide","B",0,function(){let e,l=(0,t.c)(4),s=(0,i.f)(),c=(0,r.useContext)(a.f),d=(0,n.s)();return l[0]!==c||l[1]!==d||l[2]!==s?(e=c&&d&&o.test(s??""),l[0]=c,l[1]=d,l[2]=s,l[3]=e):e=l[3],e}])},77825,e=>{"use strict";var t=e.i(663456);e.i(707060);var r=e.i(288265),n=e.i(128564),i=e.i(73668),a=e.i(402600),o=e.i(273536);e.s(["f",0,function(){let e,l=(0,t.c)(2),s=(0,r.f)(),{isSignedIn:c}=(0,i.useEntity)();l[0]!==c?(e={isEnabled:c},l[0]=c,l[1]=e):e=l[1];let{workspaces:d,activeWorkspaceId:u}=(0,n.Z)(e);return function({isSignedIn:e,workspaces:t,activeWorkspaceId:r,urlWorkspaceSlug:n,label:i}){if(!e)return;if(void 0!==n)return{href:`/workspaces/${n}`,label:i};let a=t?.find(e=>e.id===r);return{href:a?`/workspaces/${a.slug}`:"/workspaces",label:i}}({isSignedIn:c,workspaces:d,activeWorkspaceId:u,urlWorkspaceSlug:(0,o.s)((0,a.f)()),label:s("Workspace")})}],77825)},481437,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(512157),i=e.i(988590),a=e.i(771271),o=e.i(983335),l=e.i(618115),s=e.i(196991),c=e.i(288265),d=e.i(354896),u=e.i(16043),f=e.i(136562),m=e.i(702596),p=e.i(592176),h=e.i(447556),g=e.i(448457),v=e.i(761821),x=e.i(272719),b=e.i(307287),y=e.i(399907),w=e.i(139697),j=e.i(536397),k=e.i(799963),N=e.i(894868),_=e.i(640947),S=e.i(328262),C=e.i(624112),E=e.i(670168),R=e.i(954217),T=e.i(741155);let M="Auto";function O(e){let i,a,o,d,C,E,O,P,D,F,$,H,V,W,G,U,q,Z,K=(0,r.c)(87),{permaslug:Y,variant:J,selected:X,selectedNames:Q,defaultLabel:ee,isAutoDefault:et,closeOnSelect:er,showGuardrailsWarning:en,hideUnavailableByDefault:ei,disableSelectForUnavailable:ea,workspaceId:eo,includeGuardrails:el,guardrailLayer:es,editedPolicyId:ec,includeGrantedProviders:ed,includeProvidersWithoutInfo:eu,onToggle:ef,onFilter:em,onSort:ep,onDone:eh}=e,eg=void 0===ee?M:ee,ev=void 0===er||er,ex=void 0!==en&&en,eb=void 0!==ea&&ea,ey=void 0!==eu&&eu,{getProviderInfo:ew}=(0,v.S)(),ej=(0,x.f)(A);K[0]!==ec||K[1]!==es||K[2]!==el?(i={includeGuardrails:el,guardrailLayer:es,editedPolicyId:ec},K[0]=ec,K[1]=es,K[2]=el,K[3]=i):i=K[3];let ek=(0,p.R)(ej,eo,i),eN=ek.getProviderEligibilityStatus,e_=ek.getProviderIneligibilityReasons,eS=(0,c.f)(),[eC,eE]=(0,u.useState)(void 0!==ei&&ei);K[4]!==Y||K[5]!==J?(a=(0,g.L)({permaslug:Y,variant:J}),K[4]=Y,K[5]=J,K[6]=a):a=K[6];let{data:eR,isPending:eT,error:eM}=(0,l.f)(a),eO=(0,x.f)(z),eL=void 0!==ed&&ed&&!Y?eO:null;K[7]!==eL?(o=(0,h.D)(eL),K[7]=eL,K[8]=o):o=K[8];let{data:ez}=(0,l.f)(o);K[9]!==eR||K[10]!==ez?(d=function(e,t){if(!e||!t?.length)return e;let r=new Set(e);return[...e,...t.map(e=>e.name).filter(e=>!r.has(e))]}(eR,ez),K[9]=eR,K[10]=ez,K[11]=d):d=K[11];let eA=d;K[12]!==eM?(C=(0,m.i)(eM),K[12]=eM,K[13]=C):C=K[13],(0,b.useGlobalErrorMonitor)(C);let eI=(0,u.useRef)(null);K[14]!==eS||K[15]!==eT?(E=()=>{eI.current&&(eI.current.textContent=eT?eS("Loading..."):"")},O=[eS,eT],K[14]=eS,K[15]=eT,K[16]=E,K[17]=O):(E=K[16],O=K[17]),(0,u.useEffect)(E,O);e:{if(!eA){let e;K[18]===Symbol.for("react.memo_cache_sentinel")?(e=[],K[18]=e):e=K[18],P=e;break e}let e=eA;if(em){let t;K[19]!==e||K[20]!==em?(t=e.filter(em),K[19]=e,K[20]=em,K[21]=t):t=K[21],e=t}if(eC&&ex){let t;if(K[22]!==e||K[23]!==eN||K[24]!==ew){let r;K[26]!==eN||K[27]!==ew?(r=e=>{let t=I(e,ew(e));return!t||eN(t)!==p.P.Ineligible},K[26]=eN,K[27]=ew,K[28]=r):r=K[28],t=e.filter(r),K[22]=e,K[23]=eN,K[24]=ew,K[25]=t}else t=K[25];e=t}if(ep){let t;K[29]!==e||K[30]!==ep?(t=[...e].sort(ep),K[29]=e,K[30]=ep,K[31]=t):t=K[31],e=t}P=e}let eB=P,eP=et??eg===M;K[32]!==eh?(D=()=>eh?.(),K[32]=eh,K[33]=D):D=K[33];let eD=D;K[34]===Symbol.for("react.memo_cache_sentinel")?(F=Array.from({length:6}).map(L),K[34]=F):F=K[34];let eF=F;if(K[35]!==eD||K[36]!==ev||K[37]!==eb||K[38]!==eN||K[39]!==e_||K[40]!==ew||K[41]!==eS||K[42]!==ey||K[43]!==ef||K[44]!==eB||K[45]!==X||K[46]!==Q||K[47]!==ex){let e,r;K[49]!==ew||K[50]!==ey?(e=e=>{let t=ew(e);return t?[{providerName:e,providerInfo:t,display:t}]:ey?[{providerName:e,providerInfo:t,display:B(e)}]:[]},K[49]=ew,K[50]=ey,K[51]=e):e=K[51],K[52]!==eD||K[53]!==ev||K[54]!==eb||K[55]!==eN||K[56]!==e_||K[57]!==eS||K[58]!==ef||K[59]!==X||K[60]!==Q||K[61]!==ex?(r=e=>{let{providerName:r,providerInfo:i,display:a}=e,o=X===r||(Q?.has(r)??!1),l=I(r,i),s=ex&&l&&eN(l)===p.P.Ineligible,c=s&&l?e_(l):[],d=!!(eb&&s);return(0,t.jsx)(k.X,{isSelected:o,disabled:d,className:(0,f.f)(s&&"opacity-50"),icon:(0,t.jsx)(_.f,{frame:!0,providerName:a.name,providerIcon:a.icon,className:"size-5"}),trailing:s?(0,t.jsx)(S.InfoTooltip,{icon:(0,t.jsx)(n.f,{className:"size-4"}),side:"right",align:"center",sideOffset:24,children:c.length>0?(0,t.jsx)(y.f,{reasons:c}):eS("This provider is unavailable due to your privacy or guardrail settings")}):void 0,onSelect:()=>{!d&&(ef(r),ev&&eD())},children:a.displayName},a.name)},K[52]=eD,K[53]=ev,K[54]=eb,K[55]=eN,K[56]=e_,K[57]=eS,K[58]=ef,K[59]=X,K[60]=Q,K[61]=ex,K[62]=r):r=K[62],$=eB.flatMap(e).map(r),K[35]=eD,K[36]=ev,K[37]=eb,K[38]=eN,K[39]=e_,K[40]=ew,K[41]=eS,K[42]=ey,K[43]=ef,K[44]=eB,K[45]=X,K[46]=Q,K[47]=ex,K[48]=$}else $=K[48];let e$=$;K[63]!==eS?(H=eS("Search providers"),K[63]=eS,K[64]=H):H=K[64],K[65]!==eC||K[66]!==ex?(V=ex?(0,t.jsx)("div",{className:"flex items-center gap-2 border-b px-2 py-1.5",children:(0,t.jsx)(T.f,{content:(0,t.jsx)(s.T,{children:(0,t.jsxs)("span",{children:["Hide providers unavailable due to your"," ",(0,t.jsx)(R.TextLink,{href:"/settings/privacy",children:"privacy settings"})]})}),children:(0,t.jsx)(w.Button,{variant:eC?"default":"outline",size:"sm",density:"compact",onClick:()=>eE(!eC),children:(0,t.jsx)(s.T,{children:"Hide Unavailable"})})})}):void 0,K[65]=eC,K[66]=ex,K[67]=V):V=K[67],K[68]===Symbol.for("react.memo_cache_sentinel")?(W=(0,t.jsx)("div",{ref:eI,role:"status",className:"sr-only"}),K[68]=W):W=K[68],K[69]!==eS?(G=eS("Providers"),K[69]=eS,K[70]=G):G=K[70],K[71]!==eD||K[72]!==ev||K[73]!==eg||K[74]!==eS||K[75]!==eP||K[76]!==ef||K[77]!==X?(U=eP&&(0,t.jsx)(k.X,{isSelected:!X,icon:(0,t.jsx)(N.f,{author:"openrouter",className:"size-5"}),onSelect:()=>{ef(void 0),ev&&eD()},children:eg===M?eS("Auto"):eg}),K[71]=eD,K[72]=ev,K[73]=eg,K[74]=eS,K[75]=eP,K[76]=ef,K[77]=X,K[78]=U):U=K[78];let eH=eT?eF:e$;return K[79]!==G||K[80]!==U||K[81]!==eH?(q=(0,t.jsxs)(j.W,{heading:G,children:[U,eH]}),K[79]=G,K[80]=U,K[81]=eH,K[82]=q):q=K[82],K[83]!==H||K[84]!==V||K[85]!==q?(Z=(0,t.jsxs)(k.i,{searchPlaceholder:H,header:V,children:[W,q]}),K[83]=H,K[84]=V,K[85]=q,K[86]=Z):Z=K[86],Z}function L(e,r){return(0,t.jsxs)("div",{"aria-hidden":"true",className:"relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm font-medium",children:[(0,t.jsx)(E.l,{className:"mr-2 size-5 rounded-full"}),(0,t.jsx)(E.l,{className:"h-4 w-32"})]},r)}function z(e){return e.contextEntityId}function A(e){return e.entity?.clerk_user_id??null}function I(e,t){return(0,i.q)(e,a.R)?o.G[e]:t?.slug??null}function B(e){return{name:e,displayName:e,icon:{url:""}}}e.s(["v",0,e=>{let n,i,a,o,s,m,p,h,x,b,y,j,k,S,E,R,T,L,z,A,I,P,D,F,$,H,V,W,G,U,q,Z,K,Y,J,X,Q=(0,r.c)(83);Q[0]!==e?({className:n,contentClassName:a,permaslug:S,variant:P,selected:T,onDone:y,onFilter:j,onSort:k,defaultLabel:A,hideChevron:I,size:z,closeOnSelect:i,showGuardrailsWarning:L,hideUnavailableByDefault:p,disableSelectForUnavailable:o,workspaceId:D,includeGuardrails:x,guardrailLayer:m,editedPolicyId:s,includeGrantedProviders:h,includeProvidersWithoutInfo:b,ref:R,...E}=e,Q[0]=e,Q[1]=n,Q[2]=i,Q[3]=a,Q[4]=o,Q[5]=s,Q[6]=m,Q[7]=p,Q[8]=h,Q[9]=x,Q[10]=b,Q[11]=y,Q[12]=j,Q[13]=k,Q[14]=S,Q[15]=E,Q[16]=R,Q[17]=T,Q[18]=L,Q[19]=z,Q[20]=A,Q[21]=I,Q[22]=P,Q[23]=D):(n=Q[1],i=Q[2],a=Q[3],o=Q[4],s=Q[5],m=Q[6],p=Q[7],h=Q[8],x=Q[9],b=Q[10],y=Q[11],j=Q[12],k=Q[13],S=Q[14],E=Q[15],R=Q[16],T=Q[17],L=Q[18],z=Q[19],A=Q[20],I=Q[21],P=Q[22],D=Q[23]);let ee=void 0===A?M:A,et=void 0!==I&&I;Q[24]!==i||Q[25]!==ee||Q[26]!==o||Q[27]!==s||Q[28]!==m||Q[29]!==p||Q[30]!==h||Q[31]!==x||Q[32]!==b||Q[33]!==j||Q[34]!==k||Q[35]!==S||Q[36]!==T||Q[37]!==L||Q[38]!==P||Q[39]!==D?(F={permaslug:S,variant:P,selected:T,defaultLabel:ee,closeOnSelect:i,showGuardrailsWarning:L,hideUnavailableByDefault:p,disableSelectForUnavailable:o,workspaceId:D,includeGuardrails:x,guardrailLayer:m,editedPolicyId:s,includeGrantedProviders:h,includeProvidersWithoutInfo:b,onFilter:j,onSort:k},Q[24]=i,Q[25]=ee,Q[26]=o,Q[27]=s,Q[28]=m,Q[29]=p,Q[30]=h,Q[31]=x,Q[32]=b,Q[33]=j,Q[34]=k,Q[35]=S,Q[36]=T,Q[37]=L,Q[38]=P,Q[39]=D,Q[40]=F):F=Q[40];let er=F,{getProviderInfo:en}=(0,v.S)(),ei=(0,c.f)(),[ea,eo]=(0,u.useState)(!1);Q[41]!==S||Q[42]!==P?($=(0,g.L)({permaslug:S,variant:P}),Q[41]=S,Q[42]=P,Q[43]=$):$=Q[43];let{refetch:el}=(0,l.f)($);e:{let e;if(!T){H=null;break e}Q[44]!==en||Q[45]!==b||Q[46]!==T?(e=en(T)??(b?B(T):null),Q[44]=en,Q[45]=b,Q[46]=T,Q[47]=e):e=Q[47],H=e}let es=H,ec=ee===M,ed=!et&&"pr-7";return Q[48]!==n||Q[49]!==ed?(V=(0,f.f)("relative flex w-full px-2",ed,n),Q[48]=n,Q[49]=ed,Q[50]=V):V=Q[50],Q[51]!==el?(W=()=>void el(),Q[51]=el,Q[52]=W):W=Q[52],Q[53]!==ee||Q[54]!==ei||Q[55]!==ec||Q[56]!==es?(G=(0,t.jsx)("span",{className:"line-clamp-1 w-full truncate text-start",children:es?(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(_.f,{providerName:es.name,providerIcon:es.icon,className:"size-6 rounded-full"}),es.displayName]}):(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[ec&&(0,t.jsx)(N.f,{author:"openrouter",className:"size-6"}),ec?ei("Auto"):ee]})}),Q[53]=ee,Q[54]=ei,Q[55]=ec,Q[56]=es,Q[57]=G):G=Q[57],Q[58]!==et?(U=!et&&(0,t.jsx)(d.f,{className:"absolute right-1 size-4 opacity-50"}),Q[58]=et,Q[59]=U):U=Q[59],Q[60]!==ea||Q[61]!==E||Q[62]!==R||Q[63]!==z||Q[64]!==U||Q[65]!==V||Q[66]!==W||Q[67]!==G?(q=(0,t.jsx)(C.J,{render:(0,t.jsxs)(w.Button,{ref:R,type:"button",variant:"outline",size:z,role:"combobox","aria-expanded":ea,align:"start",className:V,onClick:W,...E,children:[G,U]})}),Q[60]=ea,Q[61]=E,Q[62]=R,Q[63]=z,Q[64]=U,Q[65]=V,Q[66]=W,Q[67]=G,Q[68]=q):q=Q[68],Q[69]!==a?(Z=(0,f.f)("rounded-lg p-0",a),Q[69]=a,Q[70]=Z):Z=Q[70],Q[71]===Symbol.for("react.memo_cache_sentinel")?(K=()=>eo(!1),Q[71]=K):K=Q[71],Q[72]!==ec||Q[73]!==y||Q[74]!==er?(Y=(0,t.jsx)(O,{...er,isAutoDefault:ec,onToggle:y,onDone:K}),Q[72]=ec,Q[73]=y,Q[74]=er,Q[75]=Y):Y=Q[75],Q[76]!==Z||Q[77]!==Y?(J=(0,t.jsx)(C.T,{positionerClassName:"z-popover",collisionPadding:8,className:Z,children:Y}),Q[76]=Z,Q[77]=Y,Q[78]=J):J=Q[78],Q[79]!==ea||Q[80]!==q||Q[81]!==J?(X=(0,t.jsxs)(C.V,{open:ea,onOpenChange:eo,children:[q,J]}),Q[79]=ea,Q[80]=q,Q[81]=J,Q[82]=X):X=Q[82],X},"B",0,O])},82045,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(874511),i=e.i(6045),a=e.i(653706),o=e.i(509849),l=e.i(161892),s=e.i(899575),c=e.i(823471);let d=e.i(533739).f;e.s(["Backdrop",()=>i.f,"Close",()=>a.f,"Description",()=>o.f,"Popup",()=>l.f,"Portal",()=>s.f,"Root",0,function(e){return(0,n.f)("alert-dialog",e)},"Title",()=>c.f,"Trigger",0,d],359661);var u=e.i(359661),u=u,f=u,m=u,p=u,h=u,g=u,v=u,x=e.i(136562),b=e.i(801127),y=e.i(857162),w=e.i(80676),j=e.i(374696),k=e.i(261499);let N=u.Root,_=f.Portal;function S(e){let n,i,a,o,l,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:a,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=a):(n=s[1],i=s[2],a=s[3]),s[4]!==n?(o=(0,x.f)("fixed inset-0 z-alert bg-black/50",k.u,n),s[4]=n,s[5]=o):o=s[5],s[6]!==i||s[7]!==a||s[8]!==o?(l=(0,t.jsx)(m.Backdrop,{className:o,"data-slot":"alert-dialog-overlay",...i,forceRender:!0,ref:a}),s[6]=i,s[7]=a,s[8]=o,s[9]=l):l=s[9],l}e.s(["m",0,N,"s",0,function(e){let n,i,a,o,l,s,c=(0,r.c)(12);c[0]!==e?({className:n,ref:a,variant:o,...i}=e,c[0]=e,c[1]=n,c[2]=i,c[3]=a,c[4]=o):(n=c[1],i=c[2],a=c[3],o=c[4]);let d=void 0===o?"default":o;return c[5]!==n||c[6]!==d?(l=(0,x.f)((0,b.i)({size:"sm",variant:d}),n),c[5]=n,c[6]=d,c[7]=l):l=c[7],c[8]!==i||c[9]!==a||c[10]!==l?(s=(0,t.jsx)(v.Close,{ref:a,className:l,...i}),c[8]=i,c[9]=a,c[10]=l,c[11]=s):s=c[11],s},"D",0,function(e){let n,i,a,o,l,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:a,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=a):(n=s[1],i=s[2],a=s[3]),s[4]!==n?(o=(0,x.f)((0,b.i)({variant:"outline",size:"sm"}),"mt-2 sm:mt-0",n),s[4]=n,s[5]=o):o=s[5],s[6]!==i||s[7]!==a||s[8]!==o?(l=(0,t.jsx)(v.Close,{ref:a,className:o,...i}),s[6]=i,s[7]=a,s[8]=o,s[9]=l):l=s[9],l},"B",0,function(e){let n,i,a,o,l,s,c,d,u,f,m=(0,r.c)(20);return m[0]!==e?({className:i,overlayClassName:a,children:n,ref:l,...o}=e,m[0]=e,m[1]=n,m[2]=i,m[3]=a,m[4]=o,m[5]=l):(n=m[1],i=m[2],a=m[3],o=m[4],l=m[5]),m[6]!==a?(s=(0,t.jsx)(S,{className:a}),m[6]=a,m[7]=s):s=m[7],m[8]!==i?(c=(0,x.f)("fixed left-[50%] top-[50%] z-alert grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6",w.b,k.Q,i),m[8]=i,m[9]=c):c=m[9],m[10]!==n?(d=(0,t.jsx)(j.l,{layer:"alert",children:n}),m[10]=n,m[11]=d):d=m[11],m[12]!==o||m[13]!==l||m[14]!==c||m[15]!==d?(u=(0,t.jsx)(p.Popup,{ref:l,className:c,...o,children:d}),m[12]=o,m[13]=l,m[14]=c,m[15]=d,m[16]=u):u=m[16],m[17]!==s||m[18]!==u?(f=(0,t.jsx)(_,{keepMounted:!0,children:(0,t.jsxs)(y.ContainedContextProvider,{value:!1,children:[s,u]})}),m[17]=s,m[18]=u,m[19]=f):f=m[19],f},"I",0,function(e){let n,i,a,o,l,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:a,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=a):(n=s[1],i=s[2],a=s[3]),s[4]!==n?(o=(0,x.f)("text-body text-muted-foreground",n),s[4]=n,s[5]=o):o=s[5],s[6]!==i||s[7]!==a||s[8]!==o?(l=(0,t.jsx)(g.Description,{ref:a,className:o,...i}),s[6]=i,s[7]=a,s[8]=o,s[9]=l):l=s[9],l},"_",0,function(e){let n,i,a,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...i}=e,l[0]=e,l[1]=n,l[2]=i):(n=l[1],i=l[2]),l[3]!==n?(a=(0,x.f)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",n),l[3]=n,l[4]=a):a=l[4],l[5]!==i||l[6]!==a?(o=(0,t.jsx)("div",{className:a,...i}),l[5]=i,l[6]=a,l[7]=o):o=l[7],o},"O",0,function(e){let n,i,a,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...i}=e,l[0]=e,l[1]=n,l[2]=i):(n=l[1],i=l[2]),l[3]!==n?(a=(0,x.f)("flex flex-col gap-y-2 text-center sm:text-left",n),l[3]=n,l[4]=a):a=l[4],l[5]!==i||l[6]!==a?(o=(0,t.jsx)("div",{className:a,...i}),l[5]=i,l[6]=a,l[7]=o):o=l[7],o},"g",0,function(e){let n,i,a,o,l,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:a,...i}=e,s[0]=e,s[1]=n,s[2]=i,s[3]=a):(n=s[1],i=s[2],a=s[3]),s[4]!==n?(o=(0,x.f)("text-base font-semibold",n),s[4]=n,s[5]=o):o=s[5],s[6]!==i||s[7]!==a||s[8]!==o?(l=(0,t.jsx)(h.Title,{ref:a,className:o,...i}),s[6]=i,s[7]=a,s[8]=o,s[9]=l):l=s[9],l}],82045)},147188,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),i=e.i(16043),a=e.i(136562);let o=(0,i.createContext)({imageLoadingStatus:"idle",onImageLoadingStatusChange:()=>{}}),l=(0,n.f)("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{default:"h-10 w-10",sm:"size-5 text-overline",md:"size-6 text-overline",lg:"size-8 text-body",xl:"size-10 text-body","2xl":"size-16 text-body"},variant:{default:"",framed:"ring-2 ring-border/50"}},defaultVariants:{size:"default",variant:"default"}});e.s(["E",0,function(e){let n,s,c,d,u,f,m,p,h,g,v,x=(0,r.c)(22);x[0]!==e?({className:s,children:n,size:u,variant:f,ref:d,...c}=e,x[0]=e,x[1]=n,x[2]=s,x[3]=c,x[4]=d,x[5]=u,x[6]=f):(n=x[1],s=x[2],c=x[3],d=x[4],u=x[5],f=x[6]);let[b,y]=(0,i.useState)("idle");x[7]===Symbol.for("react.memo_cache_sentinel")?(m=e=>y(e),x[7]=m):m=x[7];let w=m;x[8]!==b?(p={imageLoadingStatus:b,onImageLoadingStatusChange:w},x[8]=b,x[9]=p):p=x[9];let j=p;return x[10]!==s||x[11]!==u||x[12]!==f?(h=(0,a.f)(l({size:u,variant:f}),s),x[10]=s,x[11]=u,x[12]=f,x[13]=h):h=x[13],x[14]!==n||x[15]!==c||x[16]!==d||x[17]!==h?(g=(0,t.jsx)("span",{ref:d,className:h,...c,children:n}),x[14]=n,x[15]=c,x[16]=d,x[17]=h,x[18]=g):g=x[18],x[19]!==j||x[20]!==g?(v=(0,t.jsx)(o,{value:j,children:g}),x[19]=j,x[20]=g,x[21]=v):v=x[21],v},"b",0,function(e){let n,l,s,c,d,u=(0,r.c)(10);u[0]!==e?({className:n,ref:s,...l}=e,u[0]=e,u[1]=n,u[2]=l,u[3]=s):(n=u[1],l=u[2],s=u[3]);let{imageLoadingStatus:f}=(0,i.use)(o);return"loaded"===f?null:(u[4]!==n?(c=(0,a.f)("flex h-full w-full items-center justify-center rounded-full bg-muted",n),u[4]=n,u[5]=c):c=u[5],u[6]!==l||u[7]!==s||u[8]!==c?(d=(0,t.jsx)("span",{ref:s,className:c,...l}),u[6]=l,u[7]=s,u[8]=c,u[9]=d):d=u[9],d)},"Z",0,function(e){let n,l,s,c,d,u,f,m,p,h,g,v=(0,r.c)(25);v[0]!==e?({className:l,ref:u,src:f,alt:n,onLoad:c,onError:s,...d}=e,v[0]=e,v[1]=n,v[2]=l,v[3]=s,v[4]=c,v[5]=d,v[6]=u,v[7]=f):(n=v[1],l=v[2],s=v[3],c=v[4],d=v[5],u=v[6],f=v[7]);let{imageLoadingStatus:x,onImageLoadingStatusChange:b}=(0,i.use)(o),y="loaded"!==x&&"hidden";return v[8]!==l||v[9]!==y?(m=(0,a.f)("aspect-square h-full w-full",y,l),v[8]=l,v[9]=y,v[10]=m):m=v[10],v[11]!==b||v[12]!==c?(p=e=>{b("loaded"),c?.(e)},v[11]=b,v[12]=c,v[13]=p):p=v[13],v[14]!==s||v[15]!==b?(h=e=>{b("error"),s?.(e)},v[14]=s,v[15]=b,v[16]=h):h=v[16],v[17]!==n||v[18]!==d||v[19]!==u||v[20]!==f||v[21]!==m||v[22]!==p||v[23]!==h?(g=(0,t.jsx)("img",{ref:u,className:m,src:f,alt:n,onLoad:p,onError:h,...d}),v[17]=n,v[18]=d,v[19]=u,v[20]=f,v[21]=m,v[22]=p,v[23]=h,v[24]=g):g=v[24],g}])},548204,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043),i=e.i(815922),a=e.i(93836),o=e.i(741780),l=e.i(3758),s=e.i(420304),c=e.i(240070);let d={...s.l,...c.f},u=n.forwardRef(function(e,r){let{render:s,className:c,defaultOpen:u=!1,disabled:f=!1,onOpenChange:m,open:p,style:h,...g}=e,v=(0,i.f)(m),x=(0,o.f)({open:p,defaultOpen:u,onOpenChange:v,disabled:f}),b=n.useMemo(()=>({open:x.open,disabled:x.disabled,transitionStatus:x.transitionStatus}),[x.open,x.disabled,x.transitionStatus]),y=n.useMemo(()=>({...x,onOpenChange:v,state:b}),[x,v,b]),w=(0,a.a)("div",e,{state:b,ref:r,props:g,stateAttributesMapping:d});return(0,t.jsx)(l.p.Provider,{value:y,children:w})});var f=e.i(225421);let m={...s.J,...c.f},p=n.forwardRef(function(e,t){let{panelId:r,open:n,handleTrigger:i,state:o,disabled:s}=(0,l.$)(),{className:c,disabled:d=s,render:u,nativeButton:p=!0,style:h,...g}=e,{getButtonProps:v,buttonRef:x}=(0,f.f)({disabled:d,native:p});return(0,a.a)("button",e,{state:o,ref:[t,x],props:[{"aria-controls":n?r:void 0,"aria-expanded":n,onClick:i},g,v],stateAttributesMapping:m})});var h=e.i(533124),g=e.i(612308),v=e.i(22525);let x=n.forwardRef(function(e,t){let{className:r,hiddenUntilFound:n,keepMounted:i,render:o,id:s,style:c,...u}=e,{defaultPanelId:f,mounted:m,onOpenChange:p,open:x,setMounted:b,setPanelIdState:y,setOpen:w,state:j,transitionStatus:k}=(0,l.$)(),N=s||void 0,_=N??f;(0,h.f)(()=>(y(e=>N??(null===e?void 0:e)),()=>{y(e=>e===N?null:e)}),[N,y]);let{height:S,props:C,ref:E,shouldPreventOpenAnimation:R,shouldRender:T,transitionStatus:M,width:O}=(0,v.f)({externalRef:t,hiddenUntilFound:n??!1,id:_,keepMounted:i??!1,mounted:m,onOpenChange:p,open:x,setMounted:b,setOpen:w,transitionStatus:k}),L={...j,transitionStatus:M},z=(0,g.f)(c,L),A=(0,a.a)("div",{...e,style:void 0},{state:L,ref:E,props:[C,{style:{"--collapsible-panel-height":void 0===S?"auto":`${S}px`,"--collapsible-panel-width":void 0===O?"auto":`${O}px`}},u,z?{style:z}:void 0,R?{style:{animationName:"none"}}:void 0],stateAttributesMapping:d});return T?A:null});e.s(["Panel",0,x,"Root",0,u,"Trigger",0,p],772956);var b=e.i(772956),b=b,y=b,w=b,j=e.i(136562),k=e.i(159125);e.s(["Collapsible",0,function(e){let n,i,a=(0,r.c)(4);return a[0]!==e?({...n}=e,a[0]=e,a[1]=n):n=a[1],a[2]!==n?(i=(0,t.jsx)(b.Root,{"data-slot":"collapsible",...n}),a[2]=n,a[3]=i):i=a[3],i},"CollapsibleContent",0,function(e){let n,i,a,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...i}=e,l[0]=e,l[1]=n,l[2]=i):(n=l[1],i=l[2]),l[3]!==n?(a=e=>(0,j.f)("h-(--collapsible-panel-height)",k.f,"function"==typeof n?n(e):n),l[3]=n,l[4]=a):a=l[4],l[5]!==i||l[6]!==a?(o=(0,t.jsx)(w.Panel,{"data-slot":"collapsible-content",className:a,...i}),l[5]=i,l[6]=a,l[7]=o):o=l[7],o},"CollapsibleTrigger",0,function(e){let n,i,a=(0,r.c)(4);return a[0]!==e?({...n}=e,a[0]=e,a[1]=n):n=a[1],a[2]!==n?(i=(0,t.jsx)(y.Trigger,{"data-slot":"collapsible-trigger",...n}),a[2]=n,a[3]=i):i=a[3],i}],548204)},647402,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562);let i=(0,e.i(207298).f)("inline-block size-[0.215em] shrink-0 rounded-full bg-current align-middle",{variants:{tone:{inherit:"",faint:"text-faint"}},defaultVariants:{tone:"inherit"}});e.s(["f",0,function(e){let a,o,l=(0,r.c)(6),{className:s,tone:c,"data-testid":d}=e;return l[0]!==s||l[1]!==c?(a=(0,n.f)(i({tone:c}),s),l[0]=s,l[1]=c,l[2]=a):a=l[2],l[3]!==d||l[4]!==a?(o=(0,t.jsx)("span",{"aria-hidden":"true",className:a,"data-testid":d}),l[3]=d,l[4]=a,l[5]=o):o=l[5],o}],647402)},912147,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(788843),i=e.i(136562),a=e.i(490112);e.s(["f",0,function(e){let o,l,s,c,d,u,f,m,p,h,g,v,x,b=(0,r.c)(28);b[0]!==e?({children:o,className:l,size:d,weight:m,icon:s,iconPosition:u,showExternalIcon:f,...c}=e,b[0]=e,b[1]=o,b[2]=l,b[3]=s,b[4]=c,b[5]=d,b[6]=u,b[7]=f,b[8]=m):(o=b[1],l=b[2],s=b[3],c=b[4],d=b[5],u=b[6],f=b[7],m=b[8]);let y=void 0===u?"end":u,w=void 0!==f&&f;b[9]!==s||b[10]!==w?(p=s??(w?(0,t.jsx)(n.f,{className:"inline size-3 align-[-1px]"}):null),b[9]=s,b[10]=w,b[11]=p):p=b[11];let j=p;return b[12]!==l||b[13]!==d||b[14]!==m?(h=(0,i.f)((0,a.X)({size:d,weight:m}),l),b[12]=l,b[13]=d,b[14]=m,b[15]=h):h=b[15],b[16]!==y||b[17]!==j?(g="start"===y&&j&&(0,t.jsx)("span",{className:"mr-0.5 inline-flex",children:j}),b[16]=y,b[17]=j,b[18]=g):g=b[18],b[19]!==y||b[20]!==j?(v="end"===y&&j&&(0,t.jsx)("span",{className:"ml-0.5 inline-flex",children:j}),b[19]=y,b[20]=j,b[21]=v):v=b[21],b[22]!==o||b[23]!==c||b[24]!==h||b[25]!==g||b[26]!==v?(x=(0,t.jsxs)("a",{className:h,...c,children:[g,o,v]}),b[22]=o,b[23]=c,b[24]=h,b[25]=g,b[26]=v,b[27]=x):x=b[27],x}])},1423,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043),i=e.i(367898),a=e.i(869057),o=e.i(788968),l=e.i(966980),s=e.i(93836),c=e.i(107397);let d=n.createContext(void 0);function u(){let e=n.useContext(d);if(void 0===e)throw Error((0,c.f)(51));return e}let f={status:e=>"progressing"===e?{"data-progressing":""}:"complete"===e?{"data-complete":""}:"indeterminate"===e?{"data-indeterminate":""}:null},m=n.forwardRef(function(e,r){let{format:c,getAriaValueText:u,locale:m,max:p=100,min:h=0,value:g,render:v,className:x,children:b,style:y,...w}=e,[j,k]=n.useState(),N="indeterminate",_=null,S=null,C="",E="indeterminate progress";if(null!=g&&Number.isFinite(g)){let e=(0,l.f)(g,h,p);_=(0,o.f)(Number.isNaN(e)?0:e,0,100),N=(S=(0,o.f)(g,h,p))===p?"complete":"progressing",E=C=c?(0,a.f)(S,m,c):(0,a.f)(_/100,m,{style:"percent"})}let R=n.useMemo(()=>({status:N}),[N]),T={"aria-labelledby":j,"aria-valuemax":p,"aria-valuemin":h,"aria-valuenow":S??void 0,"aria-valuetext":u?u(C,g):E,role:"progressbar",children:(0,t.jsxs)(n.Fragment,{children:[b,(0,t.jsx)("span",{role:"presentation",style:i.p,children:"x"})]})},M=n.useMemo(()=>({formattedValue:C,percentageValue:_,setLabelId:k,state:R,value:g}),[C,_,k,R,g]),O=(0,s.a)("div",e,{state:R,ref:r,props:[T,w],stateAttributesMapping:f});return(0,t.jsx)(d.Provider,{value:M,children:O})}),p=n.forwardRef(function(e,t){let{render:r,className:n,style:i,...a}=e,{state:o}=u();return(0,s.a)("div",e,{state:o,ref:t,props:a,stateAttributesMapping:f})}),h=n.forwardRef(function(e,t){let{render:r,className:n,style:i,...a}=e,{percentageValue:o,state:l}=u(),c=null==o?{}:{insetInlineStart:0,height:"inherit",width:`${o}%`};return(0,s.a)("div",e,{state:l,ref:t,props:[{style:c},a],stateAttributesMapping:f})});e.s(["Indicator",0,h,"Root",0,m,"Track",0,p],372909);var g=e.i(372909),g=g,v=g,x=g,b=e.i(136562),y=e.i(207298);let w=(0,y.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"}}),j=(0,y.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 n,i,a,o,l,s,c,d,u,f,m,p,h,y,k=(0,r.c)(28);k[0]!==e?({className:n,indicatorClassName:i,indicatorColor:a,max:s,track:c,value:d,variant:u,ref:l,...o}=e,k[0]=e,k[1]=n,k[2]=i,k[3]=a,k[4]=o,k[5]=l,k[6]=s,k[7]=c,k[8]=d,k[9]=u):(n=k[1],i=k[2],a=k[3],o=k[4],l=k[5],s=k[6],c=k[7],d=k[8],u=k[9]);let N=void 0===s?100:s,_=Math.min(100,Math.max(0,("number"==typeof d?d:0)/("number"==typeof N&&N>0?N:100)*100));return k[10]!==n||k[11]!==c?(f=(0,b.f)(w({track:c}),n),k[10]=n,k[11]=c,k[12]=f):f=k[12],k[13]!==i||k[14]!==a||k[15]!==u?(m=(0,b.f)(j({variant:u}),void 0!==a&&"bg-(--indicator-color)",i),k[13]=i,k[14]=a,k[15]=u,k[16]=m):m=k[16],k[17]!==a?(p=void 0===a?void 0:{"--indicator-color":a},k[17]=a,k[18]=p):p=k[18],k[19]!==m||k[20]!==p?(h=(0,t.jsx)(g.Track,{className:"h-full w-full",children:(0,t.jsx)(v.Indicator,{className:m,"data-allow-inline-style":!0,style:p})}),k[19]=m,k[20]=p,k[21]=h):h=k[21],k[22]!==_||k[23]!==o||k[24]!==l||k[25]!==f||k[26]!==h?(y=(0,t.jsx)(x.Root,{ref:l,value:_,className:f,...o,children:h}),k[22]=_,k[23]=o,k[24]=l,k[25]=f,k[26]=h,k[27]=y):y=k[27],y}],1423)},743500,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(339814),i=e.i(288265),a=e.i(354896),o=e.i(16043),l=e.i(136562),s=e.i(753996),c=e.i(138257),d=e.i(301206),u=e.i(139697),f=e.i(536397),m=e.i(799963),p=e.i(624112),h=e.i(133735);function g(e){let[t,r]=e;return[r,t]}e.s(["f",0,e=>{let v,x,b,y,w,j,k,N,_,S,C,E,R,T,M,O,L,z,A,I=(0,r.c)(86),{label:B,value:P,options:D,onChange:F,showInnerValue:$,prefixLabel:H,className:V,popoverClassName:W,placeholder:G,shouldSort:U,showSearch:q,variant:Z,size:K,align:Y,isGroupHeader:J,emptyTrigger:X}=e,Q=void 0!==$&&$,ee=void 0===U||U,et=void 0===q||q,er=void 0===Z?"default":Z,en=void 0===K?"md":K,ei=void 0===Y?"start":Y,ea=(0,i.f)(),eo=(0,c.useLocale)(),[el,es]=(0,o.useState)(!1),ec=(0,o.useRef)(null),{isScrolledToBottom:ed,listCallbackRef:eu}=(0,s.f)();I[0]!==et?(v=e=>{!et||(e.preventDefault(),(0,d.f)()||ec.current?.focus({preventScroll:!0}))},I[0]=et,I[1]=v):v=I[1];let ef=v;I[2]!==D?(x=new Map(Object.entries(D).map(g)),I[2]=D,I[3]=x):x=I[3];let em=x;if(I[4]!==eo||I[5]!==D||I[6]!==ee){let e;I[8]!==eo||I[9]!==ee?(e=(e,t)=>{let[r]=e,[i]=t;return ee?(0,n.o)(r,i,{locale:eo}):0},I[8]=eo,I[9]=ee,I[10]=e):e=I[10],b=Object.entries(D).sort(e),I[4]=eo,I[5]=D,I[6]=ee,I[7]=b}else b=I[7];let ep=b;I[11]!==P||I[12]!==em?(y=em.get(P),I[11]=P,I[12]=em,I[13]=y):y=I[13];let eh=y,eg=void 0!==X&&void 0===eh;if(I[14]!==J||I[15]!==ep){e:{let e=new Set;if(!J){w=e;break e}let t=!1;for(let[,r]of ep)J(r)?t=!0:t?e.add(r):t=!1;w=e}I[14]=J,I[15]=ep,I[16]=w}else w=I[16];let ev=w,ex="ambient"===er?"ghost":"outline",eb="ambient"===er?"pill":void 0,ey="ambient"===er&&"border border-input text-muted-foreground shadow-none hover:shadow-sm",ew=eg&&"pr-2 text-muted-foreground hover:bg-accent hover:text-foreground";I[17]!==V||I[18]!==ey||I[19]!==ew?(j=(0,l.f)("relative flex w-auto px-2 pr-7","gap-1 overflow-hidden",ey,ew,V),I[17]=V,I[18]=ey,I[19]=ew,I[20]=j):j=I[20],I[21]!==X||I[22]!==ea||I[23]!==B||I[24]!==H||I[25]!==eh||I[26]!==eg||I[27]!==Q||I[28]!==P?(k=eg?X:(0,t.jsxs)(t.Fragment,{children:[void 0!==H&&(0,t.jsx)("span",{className:"shrink-0 text-muted-foreground",children:H}),(0,t.jsx)("span",{className:"truncate",children:eh??ea("Select {label}",{label:B})}),Q&&(0,t.jsxs)("span",{className:"text-muted-foreground min-w-0 truncate text-sm",children:["(",String(P),")"]}),(0,t.jsx)(a.f,{className:"absolute right-1 size-4 opacity-50"})]}),I[21]=X,I[22]=ea,I[23]=B,I[24]=H,I[25]=eh,I[26]=eg,I[27]=Q,I[28]=P,I[29]=k):k=I[29],I[30]!==el||I[31]!==en||I[32]!==ex||I[33]!==eb||I[34]!==j||I[35]!==k?(N=(0,t.jsx)(p.J,{render:(0,t.jsx)(u.Button,{type:"button",variant:ex,size:en,role:"combobox","aria-expanded":el,align:"start",shape:eb,className:j,children:k})}),I[30]=el,I[31]=en,I[32]=ex,I[33]=eb,I[34]=j,I[35]=k,I[36]=N):N=I[36];let ej="sm"===en?"w-48":"w-64",ek="ambient"===er&&"rounded-xl";I[37]!==W||I[38]!==ej||I[39]!==ek?(_=(0,l.f)("p-0",ej,ek,W),I[37]=W,I[38]=ej,I[39]=ek,I[40]=_):_=I[40];let eN="ambient"===er&&"rounded-xl";if(I[41]!==eN?(S=(0,l.f)(eN),I[41]=eN,I[42]=S):S=I[42],I[43]!==ea||I[44]!==G||I[45]!==et||I[46]!==en?(C=et&&(0,t.jsx)(f.H,{ref:ec,placeholder:G??ea("Search"),size:"sm",className:(0,l.f)("sm"===en&&"h-7"),wrapperClassName:(0,l.f)("sm"===en&&"flex-row-reverse"),iconClassName:(0,l.f)("sm"===en&&"h-3 w-3 mr-0 ml-2")}),I[43]=ea,I[44]=G,I[45]=et,I[46]=en,I[47]=C):C=I[47],I[48]!==ev||I[49]!==J||I[50]!==F||I[51]!==en||I[52]!==ep||I[53]!==P||I[54]!==er){let e;I[56]!==ev||I[57]!==J||I[58]!==F||I[59]!==en||I[60]!==P||I[61]!==er?(e=e=>{let[r,n]=e;return J?.(n)?(0,t.jsx)(f.J,{disabled:!0,className:(0,l.f)("pointer-events-none font-semibold text-muted-foreground opacity-100","sm"===en&&"text-xs"),children:r},r):(0,t.jsx)(m.X,{size:"sm"===en?"sm":"md",isSelected:P===n,className:(0,l.f)("ambient"===er&&"rounded-lg text-muted-foreground",ev.has(n)&&"pl-6"),onSelect:()=>{F(n),es(!1)},children:r},r)},I[56]=ev,I[57]=J,I[58]=F,I[59]=en,I[60]=P,I[61]=er,I[62]=e):e=I[62],E=ep.map(e),I[48]=ev,I[49]=J,I[50]=F,I[51]=en,I[52]=ep,I[53]=P,I[54]=er,I[55]=E}else E=I[55];return I[63]!==E?(R=(0,t.jsx)(f.W,{children:E}),I[63]=E,I[64]=R):R=I[64],I[65]!==eu||I[66]!==R?(T=(0,t.jsx)(f.X,{ref:eu,children:R}),I[65]=eu,I[66]=R,I[67]=T):T=I[67],I[68]!==ed?(M=(0,t.jsx)(h.f,{isAtEdge:ed}),I[68]=ed,I[69]=M):M=I[69],I[70]!==T||I[71]!==M?(O=(0,t.jsxs)("div",{className:"relative",children:[T,M]}),I[70]=T,I[71]=M,I[72]=O):O=I[72],I[73]!==S||I[74]!==C||I[75]!==O?(L=(0,t.jsxs)(f.s,{className:S,children:[C,O]}),I[73]=S,I[74]=C,I[75]=O,I[76]=L):L=I[76],I[77]!==ei||I[78]!==ef||I[79]!==_||I[80]!==L?(z=(0,t.jsx)(p.T,{className:_,align:ei,onOpenAutoFocus:ef,children:L}),I[77]=ei,I[78]=ef,I[79]=_,I[80]=L,I[81]=z):z=I[81],I[82]!==el||I[83]!==N||I[84]!==z?(A=(0,t.jsxs)(p.V,{open:el,onOpenChange:es,children:[N,z]}),I[82]=el,I[83]=N,I[84]=z,I[85]=A):A=I[85],A}])},656521,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),i=e.i(61885),a=e.i(773151),o=e.i(136562),l=e.i(609623),s=e.i(261499);(0,n.f)("",{variants:{variant:{default:"px-4 py-2.5",action:"w-10 px-3 py-2.5"},align:{left:"text-left",right:"text-right"}},defaultVariants:{variant:"default"}}),(0,n.f)((0,o.f)("group/sort inline-flex max-w-full select-none items-center gap-1","text-inherit transition-colors hover:text-slate-12"),{variants:{align:{left:"",right:"flex-row-reverse"}},defaultVariants:{align:"left"}});let c=28/24;e.s(["z",0,function(e){let n,d,u,f,m,p=(0,r.c)(10),{direction:h,firstDirection:g}=e,v=!1!==h;p[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(a.f,{"aria-hidden":"true",className:(0,o.f)("or-table__sort-icon or-table__sort-icon--muted","opacity-0 transition-opacity duration-fast ease-smooth-out motion-reduce:transition-none","group-hover/sort:opacity-100 group-focus-visible/sort:opacity-100")}),p[0]=n):n=p[0];let x=!1===h&&"delay-(--duration-fast) motion-reduce:transition-transform motion-reduce:duration-0",b="asc"===(!1===h?void 0===g?"asc":g:h)&&"-scale-y-100";return p[1]!==x||p[2]!==b?(d=(0,o.f)("flex",s.a,x,b),p[1]=x,p[2]=b,p[3]=d):d=p[3],p[4]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(i.f,{"aria-hidden":"true",className:"or-table__sort-icon",strokeWidth:c}),p[4]=u):u=p[4],p[5]!==d?(f=(0,t.jsx)("span",{className:d,children:u}),p[5]=d,p[6]=f):f=p[6],p[7]!==v||p[8]!==f?(m=(0,t.jsx)(l.f,{active:v,from:n,to:f}),p[7]=v,p[8]=f,p[9]=m):m=p[9],m},"w",0,function(e,t="asc"){return!1===e?t:e===t&&("asc"===t?"desc":"asc")}])},554395,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),i=e.i(136562),a=e.i(102187);let o=(0,n.f)((0,i.f)("flex w-full","text-body pointer-coarse:text-base","placeholder:text-muted-foreground/50","focus-visible:outline-hidden focus-visible:ring-0","disabled:cursor-not-allowed disabled:opacity-50"),{variants:{variant:{default:(0,i.f)("min-h-20 px-3 py-2","rounded-md border border-input bg-input-bg","focus-visible:border-focus-border focus-visible:shadow-focus"),embedded:"overflow-y-auto px-3 py-2.5"}},defaultVariants:{variant:"default"}}),l=o();e.s(["g",0,l,"o",0,function(e){let n,l,s,c,d,u,f,m,p=(0,r.c)(16);return p[0]!==e?({className:n,inputClassName:s,variant:u,font:l,ref:d,...c}=e,p[0]=e,p[1]=n,p[2]=l,p[3]=s,p[4]=c,p[5]=d,p[6]=u):(n=p[1],l=p[2],s=p[3],c=p[4],d=p[5],u=p[6]),p[7]!==n||p[8]!==l||p[9]!==s||p[10]!==u?(f=(0,i.f)(o({variant:u}),(0,a.f)({font:l}),s,n),p[7]=n,p[8]=l,p[9]=s,p[10]=u,p[11]=f):f=p[11],p[12]!==c||p[13]!==d||p[14]!==f?(m=(0,t.jsx)("textarea",{className:f,ref:d,...c}),p[12]=c,p[13]=d,p[14]=f,p[15]=m):m=p[15],m}])},741155,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(535072),a=e.i(624112),o=e.i(751155);e.s(["f",0,function(e){let l,s,c,d,u,f=(0,r.c)(35);if((0,i.x)()){let r,i,a,l,s=e.side??"bottom",c=e.align,d=e.sideOffset,u=e.open,m=e.onOpenChange,p=e.inline?"inline-block":"flex items-center justify-center";return f[0]!==p?(r=(0,n.f)("p-0",p),f[0]=p,f[1]=r):r=f[1],f[2]!==e.className?(i=(0,n.f)("w-52 p-2 text-xs",e.className),f[2]=e.className,f[3]=i):i=f[3],f[4]!==e.content||f[5]!==i?(a=(0,t.jsx)("div",{className:i,children:e.content}),f[4]=e.content,f[5]=i,f[6]=a):a=f[6],f[7]!==e.align||f[8]!==e.children||f[9]!==e.onOpenChange||f[10]!==e.open||f[11]!==e.sideOffset||f[12]!==s||f[13]!==r||f[14]!==a?(l=(0,t.jsx)(o.Tooltip,{side:s,align:c,sideOffset:d,open:u,onOpenChange:m,className:r,content:a,children:e.children}),f[7]=e.align,f[8]=e.children,f[9]=e.onOpenChange,f[10]=e.open,f[11]=e.sideOffset,f[12]=s,f[13]=r,f[14]=a,f[15]=l):l=f[15],l}let m=e.open,p=e.onOpenChange,h=e.inline&&"inline-block";f[16]!==h?(l=(0,n.f)(h),f[16]=h,f[17]=l):l=f[17];let g="button"===e.children.type;f[18]!==e.children||f[19]!==l||f[20]!==g?(s=(0,t.jsx)(a.J,{className:l,nativeButton:g,render:e.children}),f[18]=e.children,f[19]=l,f[20]=g,f[21]=s):s=f[21];let v=e.side,x=e.align,b=e.sideOffset;return f[22]!==e.className?(c=(0,n.f)("w-52 p-2",e.className),f[22]=e.className,f[23]=c):c=f[23],f[24]!==e.align||f[25]!==e.content||f[26]!==e.side||f[27]!==e.sideOffset||f[28]!==c?(d=(0,t.jsx)(a.T,{side:v,align:x,sideOffset:b,text:"body",className:c,children:e.content}),f[24]=e.align,f[25]=e.content,f[26]=e.side,f[27]=e.sideOffset,f[28]=c,f[29]=d):d=f[29],f[30]!==e.onOpenChange||f[31]!==e.open||f[32]!==d||f[33]!==s?(u=(0,t.jsxs)(a.V,{open:m,onOpenChange:p,children:[s,d]}),f[30]=e.onOpenChange,f[31]=e.open,f[32]=d,f[33]=s,f[34]=u):u=f[34],u}])},212892,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(88084),i=e.i(136562),a=e.i(548204);function o(e){let n,a,o,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]!==n?(o=(0,i.f)("flex size-4 shrink-0 items-center justify-center","[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4","[[data-slot=trace-title]~&]:-ml-1",n),s[3]=n,s[4]=o):o=s[4],s[5]!==a||s[6]!==o?(l=(0,t.jsx)("span",{"data-slot":"trace-icon","aria-hidden":"true",className:o,...a}),s[5]=a,s[6]=o,s[7]=l):l=s[7],l}e.s(["r",0,function(e){let n,a,o,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]!==n?(o=(0,i.f)("flex w-full min-w-0 flex-col gap-2","*:has-[>[data-slot=trace-line]]:flex *:has-[>[data-slot=trace-line]]:w-fit","*:has-[>[data-slot=trace-line]]:max-w-full *:has-[>[data-slot=trace-line]]:min-w-0","*:has-[>[data-slot=trace-line]]:rounded-md *:has-[>[data-slot=trace-line]]:text-left","*:has-[>[data-slot=trace-line]]:outline-none","*:has-[>[data-slot=trace-line]]:focus-visible:ring-3 *:has-[>[data-slot=trace-line]]:focus-visible:ring-ring/30",n),s[3]=n,s[4]=o):o=s[4],s[5]!==a||s[6]!==o?(l=(0,t.jsx)("div",{"data-slot":"trace",className:o,...a}),s[5]=a,s[6]=o,s[7]=l):l=s[7],l},"a",0,function(e){let n,o,l,s,c=(0,r.c)(8);return c[0]!==e?({className:n,...o}=e,c[0]=e,c[1]=n,c[2]=o):(n=c[1],o=c[2]),c[3]!==n?(l=(0,i.f)("flex w-full min-w-0 flex-col",n),c[3]=n,c[4]=l):l=c[4],c[5]!==o||c[6]!==l?(s=(0,t.jsx)(a.Collapsible,{"data-slot":"trace-collapsible",className:l,...o}),c[5]=o,c[6]=l,c[7]=s):s=c[7],s},"p",0,function(e){let n,o,l,s,c,d,u=(0,r.c)(12);return u[0]!==e?({className:o,children:n,...l}=e,u[0]=e,u[1]=n,u[2]=o,u[3]=l):(n=u[1],o=u[2],l=u[3]),u[4]!==o?(s=(0,i.f)("mt-2 mb-1 ml-[calc(--spacing(2)-1px)] min-w-0 border-l border-border pr-1 pl-4","leading-body wrap-break-word text-muted-foreground",o),u[4]=o,u[5]=s):s=u[5],u[6]!==n||u[7]!==s?(c=(0,t.jsx)("div",{"data-slot":"trace-collapsible-content-inner",className:s,children:n}),u[6]=n,u[7]=s,u[8]=c):c=u[8],u[9]!==l||u[10]!==c?(d=(0,t.jsx)(a.CollapsibleContent,{"data-slot":"trace-collapsible-content",className:"min-w-0",...l,children:c}),u[9]=l,u[10]=c,u[11]=d):d=u[11],d},"G",0,function(e){let l,s,c,d,u,f,m=(0,r.c)(11);return m[0]!==e?({className:s,children:l,...c}=e,m[0]=e,m[1]=l,m[2]=s,m[3]=c):(l=m[1],s=m[2],c=m[3]),m[4]!==s?(d=(0,i.f)("group/trace-collapsible-trigger flex w-fit max-w-full min-w-0 cursor-pointer items-center gap-1","rounded-md text-left text-muted-foreground outline-none","transition-colors duration-quick hover:text-foreground","focus-visible:ring-3 focus-visible:ring-ring/30","has-[[data-status=error]]:text-negative-text",s),m[4]=s,m[5]=d):d=m[5],m[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(o,{className:"transition-transform duration-fast ease-smooth-out motion-reduce:transition-none group-data-[panel-open]/trace-collapsible-trigger:rotate-90",children:(0,t.jsx)(n.f,{})}),m[6]=u):u=m[6],m[7]!==l||m[8]!==c||m[9]!==d?(f=(0,t.jsxs)(a.CollapsibleTrigger,{"data-slot":"trace-collapsible-trigger",className:d,...c,children:[l,u]}),m[7]=l,m[8]=c,m[9]=d,m[10]=f):f=m[10],f},"E",0,function(e){let n,a,o,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]!==n?(o=(0,i.f)("shrink-0 text-muted-foreground/70 tabular-nums",n),s[3]=n,s[4]=o):o=s[4],s[5]!==a||s[6]!==o?(l=(0,t.jsx)("span",{"data-slot":"trace-description",className:o,...a}),s[5]=a,s[6]=o,s[7]=l):l=s[7],l},"L",0,o,"V",0,function(e){let n,a,o,l,s,c=(0,r.c)(10);return c[0]!==e?({className:n,status:o,...a}=e,c[0]=e,c[1]=n,c[2]=a,c[3]=o):(n=c[1],a=c[2],o=c[3]),c[4]!==n?(l=(0,i.f)("flex w-fit max-w-full min-w-0 items-center gap-2 text-body text-muted-foreground","transition-colors duration-quick","in-[a,button]:cursor-pointer in-[a:hover,button:hover]:text-foreground","data-[status=error]:text-negative-text data-[status=error]:in-[a:hover,button:hover]:text-negative-text","data-[status=pending]:opacity-60","data-[status=running]:*:data-[slot=trace-title]:shimmer-text",n),c[4]=n,c[5]=l):l=c[5],c[6]!==a||c[7]!==o||c[8]!==l?(s=(0,t.jsx)("span",{"data-slot":"trace-line","data-status":o,className:l,...a}),c[6]=a,c[7]=o,c[8]=l,c[9]=s):s=c[9],s},"O",0,{Running:"running",Error:"error",Pending:"pending"},"W",0,function(e){let n,a,o,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]!==n?(o=(0,i.f)("min-w-0 truncate",n),s[3]=n,s[4]=o):o=s[4],s[5]!==a||s[6]!==o?(l=(0,t.jsx)("span",{"data-slot":"trace-title",className:o,...a}),s[5]=a,s[6]=o,s[7]=l):l=s[7],l}])},336810,e=>{"use strict";var t=e.i(497214),r=e.i(315368);let n={Blue:"var(--chart-1)",Mint:"var(--chart-2)",YellowOrange:"var(--chart-3)",Orange:"var(--chart-4)",Tomato:"var(--chart-5)",SteelBlue:"var(--chart-6)",YellowGreen:"var(--chart-7)",Orchid:"var(--chart-8)",Turquoise:"var(--chart-9)",HotPink:"var(--chart-10)",Goldenrod:"var(--chart-11)",MediumSlateBlue:"var(--chart-12)",LightCoral:"var(--chart-13)",OliveDrab:"var(--chart-14)",PaleVioletRed:"var(--chart-15)",MediumSeaGreen:"var(--chart-16)",DarkKhaki:"var(--chart-17)",Purple:"var(--chart-18)",OrangeRed:"var(--chart-19)",SeaGreen:"var(--chart-20)",Slate400:"#94a3b8"},i=[n.Blue,n.Mint,n.YellowOrange,n.Orange,n.Tomato,n.SteelBlue,n.YellowGreen,n.Orchid,n.Turquoise,n.HotPink,n.Goldenrod,n.MediumSlateBlue,n.LightCoral,n.OliveDrab,n.PaleVioletRed,n.MediumSeaGreen,n.DarkKhaki,n.Purple,n.OrangeRed,n.SeaGreen],a=e=>!(e.length<3)&&new Set(e.map(e=>new Date(e)).map(e=>e.toISOString().slice(0,10))).sizeMath.round(e+i*r)))}let a=Math.ceil(e/i)*i,o=Math.floor(r/i)*i,l=Math.floor((o-a)/i)+1;if(l<2)return[];let s=Math.max(1,Math.round((l-1)/(n-1))),c=Math.floor((l-1)/s)+1;return Array.from({length:c},(e,t)=>o-(c-1-t)*s*i)},"D",0,(e,n)=>{let i=(0,t.H)(e.map(e=>(0,r.I)(String(e[o])).getUTCFullYear())),l=(0,t.H)(e.map(e=>(0,r.I)(String(e[o])).toISOString().slice(0,10)));return{containsMultipleYears:i.length>1,containsMultipleDays:l.length>1,isHighRes:a(n)}},"I",0,function(e){return void 0===e||e?"opacity-100":"opacity-50"}])},511667,e=>{"use strict";var t=e.i(336810);let r="Other",n=t.F.Slate400;function i(e){return e===r||"Others"===e}function a(e){let t=0x811c9dc5;for(let r=0;r>>0;return t}e.s(["w",0,n,"d",0,r,"C",0,"__other__","z",0,function(e,r){let o=new Map,l=new Set;for(let s of[...new Set(e)].toSorted()){if(i(s)){o.set(s,n);continue}if(0===r.length){o.set(s,t.a);continue}let e=a(s)%r.length,c=function({preferredSlot:e,paletteLength:t,claimedSlots:r}){for(let n=0;n{"use strict";var t=e.i(579841),r=e.i(988590),n=e.i(733476);e.s(["f",0,function(e){var i;return!!(0,t.a)(e.output_modalities)&&(!e.endpoint||(i=e.endpoint.adapter_name,!!(0,r.q)(i,n.n)||!((0,r.q)(i,n.G)||(0,r.q)(i,n.W))&&!(0,r.q)(i,n.O)))}],632665)},512688,e=>{"use strict";var t=e.i(663456),r=e.i(16043),n=e.i(143253);e.s(["f",0,function(e){let i,a,o=(0,t.c)(3),l=(0,r.useRef)(e);return o[0]!==e?(i=()=>{l.current=e},a=[e],o[0]=e,o[1]=i,o[2]=a):(i=o[1],a=o[2]),(0,n.f)(i,a),l}])},648292,e=>{"use strict";var t=e.i(663456),r=e.i(16043);let n=()=>void 0;function i(){}e.s(["f",0,function(e){let a,o,l=(0,t.c)(4);l[0]!==e?(a=t=>{let r=e.current;if(!r||"u"n.disconnect()},l[0]=e,l[1]=a):a=l[1];let s=a;l[2]!==e?(o=()=>e.current?.offsetWidth,l[2]=e,l[3]=o):o=l[3];let c=o;return(0,r.useSyncExternalStore)(s,c,n)}])},753996,133735,e=>{"use strict";var t=e.i(663456),r=e.i(16043);function n(){return 3}function i(){}e.s(["f",0,function(){let e,a,o,l=(0,t.c)(7),[s,c]=(0,r.useState)(null);l[0]!==s?(e=e=>{if(!s)return i;s.addEventListener("scroll",e,{passive:!0});let t=new MutationObserver(e);return t.observe(s,{childList:!0,subtree:!0,attributes:!0}),()=>{s.removeEventListener("scroll",e),t.disconnect()}},l[0]=s,l[1]=e):e=l[1];let d=e;l[2]!==s?(a=()=>{var e;return(e=s)?e.scrollTop<8|2*(e.scrollHeight-e.scrollTop-e.clientHeight<8):3},l[2]=s,l[3]=a):a=l[3];let u=a,f=(0,r.useSyncExternalStore)(d,u,n),m=(2&f)!=0,p=(1&f)!=0;return l[4]!==m||l[5]!==p?(o={isScrolledToBottom:m,isScrolledToTop:p,listCallbackRef:c},l[4]=m,l[5]=p,l[6]=o):o=l[6],o}],753996);var a=e.i(659350),o=e.i(354896),l=e.i(206581),s=e.i(136562);e.s(["f",0,function(e){let r,n,i,c=(0,t.c)(8),{isAtEdge:d,side:u}=e,f="top"===(void 0===u?"bottom":u),m=f?"top-0 bg-gradient-to-b pb-3 pt-1":"bottom-0 bg-gradient-to-t pb-1 pt-3",p=d?"opacity-0":"opacity-100";return c[0]!==m||c[1]!==p?(r=(0,s.f)("pointer-events-none absolute inset-x-0 flex justify-center transition-opacity duration-150",m,"from-popover via-popover/80 to-transparent",p),c[0]=m,c[1]=p,c[2]=r):r=c[2],c[3]!==f?(n=f?(0,a.jsx)(l.f,{className:"size-4 text-muted-foreground"}):(0,a.jsx)(o.f,{className:"size-4 text-muted-foreground"}),c[3]=f,c[4]=n):n=c[4],c[5]!==r||c[6]!==n?(i=(0,a.jsx)("div",{className:r,"aria-hidden":"true",children:n}),c[5]=r,c[6]=n,c[7]=i):i=c[7],i}],133735)},315368,e=>{"use strict";var t=e.i(30368),r=e.i(272114),n=e.i(647204);let i=e=>{let t=(0,r.z)(e);return new Date((0,n.V)(t)?0/0:t.data)};e.s(["$",0,function(e,r,n=!1){return(0,t.f)(e).date(i(r),{timeZone:"UTC",preset:n?"medium":"day-month"})??"—"},"M",0,function(e,{value:r,shouldIncludeDay:n=!1,timeZone:a}){let o=(0,t.f)(e),l=i(r);return(n?o.dateTime(l,{timeZone:a,preset:"chart-numeric-hour"}):o.time(l,{timeZone:a,preset:"numeric"}))??"—"},"I",0,i,"n",0,function(e,t){return"utc"===e||"UTC"===t?void 0:t}])},989794,e=>{"use strict";var t=e.i(756247),r=e.i(387086);let n={[t.f.Temperature]:(0,r.b)("Temperature"),[t.f.TopP]:(0,r.b)("Top P"),[t.f.TopK]:(0,r.b)("Top K"),[t.f.MinP]:(0,r.b)("Min P"),[t.f.TopA]:(0,r.b)("Top A"),[t.f.FrequencyPenalty]:(0,r.b)("Frequency penalty"),[t.f.PresencePenalty]:(0,r.b)("Presence penalty"),[t.f.RepetitionPenalty]:(0,r.b)("Repetition penalty"),[t.f.MaxTokens]:(0,r.b)("Max tokens"),[t.f.MaxCompletionTokens]:(0,r.b)("Max completion tokens"),[t.f.LogitBias]:(0,r.b)("Logit bias"),[t.f.Logprobs]:(0,r.b)("Logprobs"),[t.f.TopLogprobs]:(0,r.b)("Top logprobs"),[t.f.Prediction]:(0,r.b)("Prediction"),[t.f.Seed]:(0,r.b)("Seed"),[t.f.ResponseFormat]:(0,r.b)("Response format"),[t.f.StructuredOutputs]:(0,r.b)("Structured outputs"),[t.f.Stop]:(0,r.b)("Stop"),[t.f.Tools]:(0,r.b)("Tools"),[t.f.ToolChoice]:(0,r.b)("Tool choice"),[t.f.ParallelToolCalls]:(0,r.b)("Parallel tool calls"),[t.f.IncludeReasoning]:(0,r.b)("Include reasoning"),[t.f.Reasoning]:(0,r.b)("Reasoning"),[t.f.ReasoningEffort]:(0,r.b)("Reasoning effort"),[t.f.WebSearchOptions]:(0,r.b)("Web search options"),[t.f.Verbosity]:(0,r.b)("Verbosity")};e.s(["f",0,function(e,t){return e(n[t])}])},234281,e=>{"use strict";var t=e.i(663456);e.i(16043);var r=e.i(801103),n=e.i(797521),i=e.i(304903);function a(e,a){let o,l=(0,t.c)(5),s=(0,n.f)(),c=(0,i.P)(e),d=(0,r.m)();return l[0]!==s||l[1]!==d||l[2]!==a||l[3]!==c?(o=e=>void 0===d?s.dateTime(e,{timeZone:c,preset:"full"}):s.relativeTime(e,{timeZone:c,nowMs:d,preset:a}),l[0]=s,l[1]=d,l[2]=a,l[3]=c,l[4]=o):o=l[4],o}e.s(["n",0,a,"D",0,function(e,r){let n,i=(0,t.c)(3),o=a(void 0,r);return i[0]!==o||i[1]!==e?(n=o(e),i[0]=o,i[1]=e,i[2]=n):n=i[2],n}])},853508,e=>{"use strict";var t=e.i(805276),r=e.i(127160);let n="",i="",a="",o="//";function l(e,...t){return e.reduce((e,r,n)=>{let i=t[n];return i?`${e}${r}${i}`:`${e}${r}`.trimEnd()},"")}let s=({siteUrl:e=i,siteName:t=a,commentPrefix:r=o}={})=>[`"HTTP-Referer": "${e}", ${r} Optional. Site URL for rankings on openrouter.ai.`,`"X-OpenRouter-Title": "${t}", ${r} Optional. Site title for rankings on openrouter.ai.`];e.s(["G",0,a,"$",0,i,"s",0,({apiKey:e="$OPENROUTER_API_KEY",data:t="",endpoint:r="chat/completions"})=>` curl https://openrouter.ai/api/v1/${r} \\ -H "Content-Type: application/json" \\ -H "Authorization: Bearer ${e}" \\ -d '${t}' `,"N",0,({apiKey:e=r.O,siteUrl:c=i,siteName:d=a,model:u=n,system:f="",prompt:m="Hello",messages:p="",prefill:h="",top_p:g,temperature:v,frequency_penalty:x,presence_penalty:b,repetition_penalty:y,provider:w,top_k:j,response_format:k})=>{let N=p;N&&0!==N.length||(N=[f&&`{"role": "system", "content": "${f}"}`,`{"role": "user", "content": "${m}"}`,h&&`{"role": "assistant", "content": "${h}"}`].filter(Boolean).join(",\n "),N=`[ ${N} ]`);let _=`"${n}", ${o} Required. ex: "openai/gpt-4o"`,S=[`"model": ${!u||u===n?_:`"${u}"`}`,`"messages": ${N}`,g&&`"top_p": ${g}`,v&&`"temperature": ${v}`,x&&`"frequency_penalty": ${x}`,b&&`"presence_penalty": ${b}`,y&&`"repetition_penalty": ${y}`,j&&`"top_k": ${j}`,w&&`"provider": ${(0,t.c)(w)}`,k&&`"response_format": ${(0,t.c)(k)}`].filter(Boolean).join(`, ${(0,t.G)(6)}`);return l` fetch("https://openrouter.ai/api/v1/chat/completions", { method: "POST", headers: { "Authorization": "Bearer ${e}", ${s({siteUrl:c,siteName:d}).join("\n ")} "Content-Type": "application/json" }, body: JSON.stringify({ ${S} }) }); `},"V",0,s])},656921,e=>{"use strict";var t=e.i(663456),r=e.i(16043);e.s(["f",0,function(e,n){let i,a,o,l=(0,t.c)(6);l[0]!==e||l[1]!==n?(i=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(),n(t))},l[0]=e,l[1]=n,l[2]=i):i=l[2];let s=(0,r.useEffectEvent)(i);l[3]!==s?(a=()=>{let e=e=>s(e);return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},l[3]=s,l[4]=a):a=l[4],l[5]===Symbol.for("react.memo_cache_sentinel")?(o=[],l[5]=o):o=l[5],(0,r.useEffect)(a,o)}])},149784,e=>{"use strict";e.s(["f",0,function(){return!("u"{"use strict";let t={Quality:"quality",Budget:"budget",Fast:"fast"},r=[{id:t.Quality,label:"Quality",emoji:"🏆",permaslugs:["~anthropic/claude-opus-latest","~openai/gpt-sol-latest","~google/gemini-pro-latest"]},{id:t.Budget,label:"Budget",emoji:"💰",permaslugs:["~google/gemini-flash-latest","deepseek/deepseek-v4-flash","~moonshotai/kimi-latest"]},{id:t.Fast,label:"Fast",emoji:"⚡",permaslugs:["~google/gemini-flash-latest","deepseek/deepseek-v4-flash","~moonshotai/kimi-latest"]}],n=t.Quality;e.s(["b",0,"~anthropic/claude-opus-latest","j",0,n,"p",0,r,"t",0,t])},430022,e=>{"use strict";e.s(["v",0,function(e){if(!/^\d{4}-\d{2}-\d{2}$/u.test(e))return!1;let t=new Date(`${e}T00:00:00.000Z`);return!Number.isNaN(t.getTime())&&t.toISOString().slice(0,10)===e},"o",0,function(e){return!Number.isNaN(e.getTime())},"N",0,864e5,"V",0,3600,"X",0,6e4,"O",0,2592e6,"R",0,1e3,"b",0,6048e5,"y",0,function(e){if(!e)return new Date(0/0);let t=e.replace(" ","T");return new Date(/[zZ]$|[+-]\d{2}:\d{2}$/.test(t)?t:`${t}Z`)},"P",0,function(e,t){if(!e)return t;if(e instanceof Date)return Number.isNaN(e.getTime())?t:e;if("string"==typeof e||"number"==typeof e){let t=new Date(e);if(!Number.isNaN(t.getTime()))return t}return t},"S",0,function(e,t=0){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))},"Q",0,e=>e.toISOString().split("T")[0]])},805276,e=>{"use strict";function t(e,r={baseIndent:0}){let n=e.split("\n"),i=n.map(e=>e.length-e.trimStart().length).filter(e=>e>0),a=Math.min(...i)-r.baseIndent,o=Math.max(r.baseIndent-Math.min(...i),0);return n.map((e,t)=>{let r=e.length-e.trimStart().length;return o>0&&t>0?" ".repeat(o)+e:r>=a?e.substring(a):e}).join("\n")}function r(e,t=2){try{return JSON.stringify(e,null,t)}catch{return String(e)}}function n(e,t=2){return r(e,t)}function i(e,n=8){return t(r(e),{baseIndent:n})}e.s(["G",0,function(e=8){return" ".repeat(e)},"c",0,i,"h",0,function(e,t=8){return n(e)},"F",0,function(e,t=8){return i(e,t).replaceAll(/: true(?=\s|,|}|$)/gm,": True").replaceAll(/: false(?=\s|,|}|$)/gm,": False").replaceAll(/: null(?=\s|,|}|$)/gm,": None")},"H",0,t,"K",0,r,"T",0,n])},814492,e=>{"use strict";var t,r,n=e.i(169798),i=e.i(335609),a=e.i(647204);e.i(30012);var o=e.i(882844),l=e.i(635157);let s=(r=[(t=l.z.object({PROVIDER_ENCRYPTION_KEY:l.z.string().nullish(),SIGNUP_CF_SEAL_KEY:l.z.string().nullish(),CALLBACK_URL_ENCRYPTION_KEY:l.z.string().nullish(),AUTH_USER_SALT:l.z.string().default("default-salt"),CI:l.z.string().default(""),SITE_URL:l.z.string().nullish()}),e=>{let r=(0,o.C)(t,e??n.default.env);return(0,a.V)(r)?(0,a.Y)(r.error.message):(0,a.N)(r.data)})],function(e){let t=[];for(let n of r){let r=n(e);if((0,a.V)(r))return r;t.push(r.data)}return(0,a.N)(Object.assign({},...t))});var c=e.i(640216);e.s(["G",0,()=>{var e;return e={production:"https://internal.openrouter.ai",local:"http://localhost:3001"},(0,c.y)(window.location.hostname)?e.local:e.production},"P",0,()=>{let e=[(0,a.u)(s()).SITE_URL,n.default?.env?.NEXT_PUBLIC_SITE_URL,n.default?.env?.NEXT_PUBLIC_VERCEL_URL].map(e=>e?.trim()).find(e=>!!e)??"https://openrouter.ai";return(0,i.d)(e.includes("http")?e:`https://${e}`)},"c",0,function(e){let t=e.replaceAll(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"_");return t.match(/^(?:\d|--|-\d)/)?`_${t}`:t}],814492)},769122,e=>{"use strict";var t,r=((t={}).CodeDebugging="code:debugging",t.CodeSecurityReview="code:review_security",t.CodeGeneralImpl="code:general_impl",t.CodeSqlDatabase="code:sql_database",t.CodeFrontendUi="code:frontend_ui",t.CodeDevopsConfig="code:devops_config",t.CodeShellExecution="code:shell_execution",t.CodeFileReadWrite="code:file_read_write",t.CodeRepoScan="code:repo_scan",t.AgentMultiStepPlanning="agent:multi_step_planning",t.AgentWebSearch="agent:web_search",t.AgentWorkflowExecution="agent:workflow_execution",t.AgentToolDispatch="agent:tool_dispatch",t.AgentMemoryExtraction="agent:memory_extraction",t.ClassificationTagging="classification_tagging",t.DataExtraction="data:extraction",t.DataTransformation="data:transformation",t.Devops="devops",t.Summarization="summarization",t.Translation="translation",t.ContentWriting="content_writing",t.ResearchReport="research_report",t.QaKnowledge="qa_knowledge",t.ConversationalReply="conversational_reply",t.CustomerSupport="customer_support",t.FinanceTrading="finance_trading",t.SecurityAudit="security_audit",t.Math="math",t.RoleplayFiction="roleplay_fiction",t.Other="other",t);let n=Object.values(r);e.s(["H",0,n,"G",0,[{tag:"code:general_impl",displayName:"Code Generation",description:"Write new code to solve a non-trivial problem (function, class, feature)."},{tag:"code:debugging",displayName:"Debugging",description:"Diagnose why something doesn't work — stack traces, bug location, fix proposal."},{tag:"code:review_security",displayName:"Code Review",description:"Audit code for vulnerabilities, correctness, or quality issues."},{tag:"code:sql_database",displayName:"SQL & Database",description:"Write or analyze SQL queries, schema design, query optimization."},{tag:"code:frontend_ui",displayName:"Frontend & UI",description:"Write or modify UI components — HTML/CSS/React/Vue/etc."},{tag:"code:devops_config",displayName:"DevOps & Config",description:"Infrastructure config files — Dockerfile, Kubernetes, Terraform, GitHub Actions."},{tag:"code:shell_execution",displayName:"Shell Execution",description:"Run or generate a shell command."},{tag:"code:file_read_write",displayName:"File I/O",description:"Read or write file contents — open, cat, edit, save."},{tag:"code:repo_scan",displayName:"Repo Scanning",description:"Search or list files in a repo — find, grep, list."},{tag:"agent:multi_step_planning",displayName:"Multi-step Planning",description:"Decompose a goal into a multi-step execution plan."},{tag:"agent:web_search",displayName:"Web Search",description:"Search the web or look up online information."},{tag:"agent:workflow_execution",displayName:"Workflow Execution",description:"Execute or orchestrate a multi-step workflow/pipeline. Default for autonomous agent system prompts."},{tag:"agent:tool_dispatch",displayName:"Tool Dispatch",description:"Call a specific tool or function within an agent context."},{tag:"agent:memory_extraction",displayName:"Memory Extraction",description:"Extract or store memory facts from a conversation."},{tag:"classification_tagging",displayName:"Classification",description:"Assign a label or category to supplied text — sentiment, intent, urgency."},{tag:"data:extraction",displayName:"Data Extraction",description:"Pull values out of supplied text — names, dates, entities, fields."},{tag:"data:transformation",displayName:"Data Transformation",description:"Reshape or restructure supplied data — JSON↔CSV, sort, group, reformat."},{tag:"devops",displayName:"DevOps",description:"Deployment operations, cluster management, infrastructure at the system level."},{tag:"summarization",displayName:"Summarization",description:"Produce a shorter version of supplied text."},{tag:"translation",displayName:"Translation",description:"Translate text from one language to another."},{tag:"content_writing",displayName:"Content Writing",description:"Draft net-new prose — emails, blog posts, social copy, marketing."},{tag:"research_report",displayName:"Research & Reports",description:"Produce a written report from multiple sources — market analysis, comparison."},{tag:"qa_knowledge",displayName:"Q&A & Knowledge",description:"Factual Q&A from world knowledge — explain X, what is Y, how does Z work."},{tag:"conversational_reply",displayName:"Conversation",description:"Genuine chat-turn reply in a conversational register."},{tag:"customer_support",displayName:"Customer Support",description:"Customer support ticket handling — schedule, book, route, FAQ, billing."},{tag:"finance_trading",displayName:"Finance & Trading",description:"Trading signals, market analysis, financial modeling."},{tag:"security_audit",displayName:"Security Audit",description:"Penetration test, threat modeling, vulnerability scan, compliance review."},{tag:"math",displayName:"Math",description:"Solve equations, proofs, integrals, derivatives."},{tag:"roleplay_fiction",displayName:"Roleplay & Fiction",description:"Character roleplay, interactive fiction, narrative continuation."},{tag:"other",displayName:"Other",description:"True last resort: corrupted text, empty messages, pure gibberish."}],"Z",()=>r])},127160,e=>{"use strict";e.s(["O",0,"","f",0,"https://discord.gg/fVyRaUDgxW","Z",0,"https://github.com/OpenRouterTeam","F",0,"https://www.linkedin.com/company/104068329","T",0,"https://status.openrouter.ai","q",0,"https://twitter.com/openrouter","B",0,"https://www.youtube.com/@OpenRouterAI"])},314522,e=>{"use strict";e.i(882844);var t=e.i(635157);let r=t.z.union([t.z.string(),t.z.record(t.z.string(),t.z.unknown()),t.z.array(t.z.unknown())]).openapi({description:"A plain string, or a JSON object or array of structured guidance."});e.s(["f",0,r])},219027,324202,e=>{"use strict";e.s(["f",0,function(e){return"messages"in e&&Array.isArray(e.messages)&&e.messages.length>0}],219027);var t=e.i(368174);e.s(["f",0,function(e){return(0,t.f)(e)&&Array.isArray(e.content)}],324202)},431525,e=>{"use strict";var t=e.i(663456),r=e.i(273536),n=e.i(402600);function i(e){let t=(0,r.s)(e);return void 0===t?"/logs":`/workspaces/${t}/logs`}e.s(["b",0,i,"D",0,function(){let e,r=(0,t.c)(2),a=(0,n.f)();return r[0]!==a?(e=i(a),r[0]=a,r[1]=e):e=r[1],e}])},404142,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(139697),a=e.i(875910),o=e.i(751155),l=e.i(656921);e.i(707060);var s=e.i(196991),c=e.i(288265),d=e.i(859986),u=e.i(651681);let f={name:"panel-left",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],aliases:["sidebar"]};f.node;let m=(0,u.f)(f);e.i(406201);var p=e.i(967605);function h(e){let n,i=(0,r.c)(8),{title:a,isExpanded:o,onToggle:l,newAction:s,newActionPlacement:c}=e;if(o||void 0===l){let e;return i[0]!==s||i[1]!==c||i[2]!==l||i[3]!==a?(e=(0,t.jsx)(v,{title:a,onToggle:l,newAction:s,newActionPlacement:c}),i[0]=s,i[1]=c,i[2]=l,i[3]=a,i[4]=e):e=i[4],e}return i[5]!==s||i[6]!==l?(n=(0,t.jsx)(x,{onToggle:l,newAction:s}),i[5]=s,i[6]=l,i[7]=n):n=i[7],n}function g(e){let i,a,o,l=(0,r.c)(5),{backAction:s}=e,c=s.href;return l[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.f)("flex h-10 w-full items-center gap-2 rounded-md px-2","text-sm hover:bg-card-hover"),a=(0,t.jsx)(d.f,{className:"size-3.5 shrink-0"}),l[0]=i,l[1]=a):(i=l[0],a=l[1]),l[2]!==s.href||l[3]!==s.label?(o=(0,t.jsx)("div",{className:"-mx-2 -mt-px shrink-0 border-b border-border px-2 pb-2",children:(0,t.jsxs)(p.Link,{href:c,variant:"subtle",className:i,children:[a,s.label]})}),l[2]=s.href,l[3]=s.label,l[4]=o):o=l[4],o}function v(e){let a,l,s,d,u,f,p,h=(0,r.c)(29),{title:g,onToggle:v,newAction:x,newActionPlacement:b}=e,y=(0,c.f)(),w=x.icon,j="header"===b;return h[0]!==g?(a=(0,t.jsx)("h3",{className:"text-base font-medium text-foreground",children:g}),h[0]=g,h[1]=a):a=h[1],h[2]!==w||h[3]!==j||h[4]!==x.ariaLabel||h[5]!==x.isDisabled||h[6]!==x.label||h[7]!==x.onClick?(l=j?(0,t.jsx)(o.Tooltip,{side:"bottom",delay:0,content:x.label,children:(0,t.jsx)(i.Button,{size:"icon",variant:"ghost","aria-label":x.ariaLabel,onClick:x.onClick,disabled:x.isDisabled,className:"shrink-0",children:(0,t.jsx)(w,{className:"size-5 text-muted-foreground"})})}):null,h[2]=w,h[3]=j,h[4]=x.ariaLabel,h[5]=x.isDisabled,h[6]=x.label,h[7]=x.onClick,h[8]=l):l=h[8],h[9]!==y||h[10]!==v?(s=v?(0,t.jsx)(i.Button,{size:"icon",variant:"ghost","aria-label":y("Toggle sidebar"),onClick:e=>{e.stopPropagation(),v()},className:"shrink-0",children:(0,t.jsx)(m,{className:"size-5 text-muted-foreground"})}):null,h[9]=y,h[10]=v,h[11]=s):s=h[11],h[12]!==l||h[13]!==s?(d=(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[l,s]}),h[12]=l,h[13]=s,h[14]=d):d=h[14],h[15]!==a||h[16]!==d?(u=(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 px-1",children:[a,d]}),h[15]=a,h[16]=d,h[17]=u):u=h[17],h[18]!==w||h[19]!==j||h[20]!==x.ariaLabel||h[21]!==x.isDisabled||h[22]!==x.label||h[23]!==x.onClick||h[24]!==x.shortcutHint?(f=j?null:(0,t.jsxs)(i.Button,{align:"start",variant:"outline",size:"sm",tone:"strong",onClick:x.onClick,disabled:x.isDisabled,"aria-label":x.ariaLabel,className:(0,n.f)("w-full gap-3","hover:bg-card-hover"),children:[(0,t.jsx)(w,{className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{children:x.label}),x.shortcutHint&&(0,t.jsx)("span",{className:"ml-auto hidden text-xs text-muted-foreground md:inline",children:x.shortcutHint})]}),h[18]=w,h[19]=j,h[20]=x.ariaLabel,h[21]=x.isDisabled,h[22]=x.label,h[23]=x.onClick,h[24]=x.shortcutHint,h[25]=f):f=h[25],h[26]!==u||h[27]!==f?(p=(0,t.jsxs)(t.Fragment,{children:[u,f]}),h[26]=u,h[27]=f,h[28]=p):p=h[28],p}function x(e){let n,l,d,u,f,p,h,g,v,x,b,y=(0,r.c)(27),{onToggle:w,newAction:j}=e,k=(0,c.f)(),N=j.icon;return y[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(s.T,{children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:["Toggle sidebar",(0,t.jsx)(a.f,{children:"["})]})}),y[0]=n):n=y[0],y[1]!==k?(l=k("Toggle sidebar"),y[1]=k,y[2]=l):l=y[2],y[3]!==w?(d=e=>{e.stopPropagation(),w()},y[3]=w,y[4]=d):d=y[4],y[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(m,{className:"size-5 text-muted-foreground"}),y[5]=u):u=y[5],y[6]!==l||y[7]!==d?(f=(0,t.jsx)(o.Tooltip,{side:"right",delay:0,content:n,children:(0,t.jsx)(i.Button,{size:"icon",variant:"ghost","aria-label":l,onClick:d,className:"shrink-0",children:u})}),y[6]=l,y[7]=d,y[8]=f):f=y[8],y[9]!==j.shortcutHint?(p=j.shortcutHint&&(0,t.jsx)(a.f,{children:j.shortcutHint}),y[9]=j.shortcutHint,y[10]=p):p=y[10],y[11]!==j.label||y[12]!==p?(h=(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[j.label,p]}),y[11]=j.label,y[12]=p,y[13]=h):h=y[13],y[14]!==N?(g=(0,t.jsx)(N,{className:"size-5"}),y[14]=N,y[15]=g):g=y[15],y[16]!==j.ariaLabel||y[17]!==j.isDisabled||y[18]!==j.onClick||y[19]!==g?(v=(0,t.jsx)(i.Button,{size:"icon",variant:"ghost",onClick:j.onClick,disabled:j.isDisabled,"aria-label":j.ariaLabel,className:"shrink-0",children:g}),y[16]=j.ariaLabel,y[17]=j.isDisabled,y[18]=j.onClick,y[19]=g,y[20]=v):v=y[20],y[21]!==h||y[22]!==v?(x=(0,t.jsx)(o.Tooltip,{side:"right",delay:0,content:h,children:v}),y[21]=h,y[22]=v,y[23]=x):x=y[23],y[24]!==x||y[25]!==f?(b=(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-1",children:[f,x]}),y[24]=x,y[25]=f,y[26]=b):b=y[26],b}e.s(["f",0,e=>{let i,a,o,s,c,d,u,f,m,p,v,x,b,y,w,j,k,N,_,S,C=(0,r.c)(44);C[0]!==e?({children:a,title:x,isCollapsed:o,onToggle:c,newAction:s,newActionPlacement:f,backAction:i,isEmbedded:m,containerClassName:p,className:v,ref:u,...d}=e,C[0]=e,C[1]=i,C[2]=a,C[3]=o,C[4]=s,C[5]=c,C[6]=d,C[7]=u,C[8]=f,C[9]=m,C[10]=p,C[11]=v,C[12]=x):(i=C[1],a=C[2],o=C[3],s=C[4],c=C[5],d=C[6],u=C[7],f=C[8],m=C[9],p=C[10],v=C[11],x=C[12]);let E=void 0===f?"row":f,R=void 0!==m&&m,T=void 0===p?"":p,M=void 0===v?"":v,O=R||!o,L=R?void 0:c,z=void 0===L?null:"[";(0,l.f)(z,c),C[13]!==i||C[14]!==T||C[15]!==R||C[16]!==O?(b=(0,n.f)(function({isEmbedded:e,isExpanded:t,hasBackAction:r}){return e?"flex h-full w-full shrink-0 flex-col p-px":(0,n.f)("flex h-full shrink-0 flex-col p-px","transition-[width] duration-quick ease-smooth-out","bg-background border-r border-border",t?"w-65":"w-13.5",r&&"animate-in fade-in-0 slide-in-from-right-2 duration-medium ease-smooth-out")}({isEmbedded:R,isExpanded:O,hasBackAction:void 0!==i}),T),C[13]=i,C[14]=T,C[15]=R,C[16]=O,C[17]=b):b=C[17],C[18]!==M?(y=(0,n.f)("flex h-full w-full flex-col gap-2 p-2",M),C[18]=M,C[19]=y):y=C[19],C[20]!==i||C[21]!==O?(w=O&&i?(0,t.jsx)(g,{backAction:i}):null,C[20]=i,C[21]=O,C[22]=w):w=C[22],C[23]!==O||C[24]!==s||C[25]!==E||C[26]!==x||C[27]!==L?(j=(0,t.jsx)(h,{title:x,isExpanded:O,onToggle:L,newAction:s,newActionPlacement:E}),C[23]=O,C[24]=s,C[25]=E,C[26]=x,C[27]=L,C[28]=j):j=C[28];let A=O?"opacity-100 visible pointer-events-auto h-auto":"opacity-0 invisible pointer-events-none h-0";return C[29]!==A?(k=(0,n.f)("flex-1 min-h-0 overflow-hidden",A,"transition-[opacity,visibility,height] duration-fast ease-smooth-out","py-px"),C[29]=A,C[30]=k):k=C[30],C[31]!==a||C[32]!==k?(N=(0,t.jsx)("div",{className:k,children:a}),C[31]=a,C[32]=k,C[33]=N):N=C[33],C[34]!==N||C[35]!==y||C[36]!==w||C[37]!==j?(_=(0,t.jsxs)("div",{className:y,children:[w,j,N]}),C[34]=N,C[35]=y,C[36]=w,C[37]=j,C[38]=_):_=C[38],C[39]!==d||C[40]!==u||C[41]!==_||C[42]!==b?(S=(0,t.jsx)("aside",{ref:u,...d,className:b,children:_}),C[39]=d,C[40]=u,C[41]=_,C[42]=b,C[43]=S):S=C[43],S}],404142)},524268,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(73867),i=e.i(739308),a=e.i(136562),o=e.i(139697),l=e.i(217411);e.i(707060);var s=e.i(288265),c=e.i(882968);e.s(["f",0,function(e){let d,u,f,m,p,h,g,v,x,b,y,w,j,k,N,_,S,C=(0,r.c)(41),{title:E,triggerAriaLabel:R,isOpen:T,onOpenChange:M,newAction:O,children:L}=e,z=(0,s.f)(),A=O.icon;C[0]!==O||C[1]!==M?(d=async()=>{await O.onClick(),M(!1)},C[0]=O,C[1]=M,C[2]=d):d=C[2];let I=d;return C[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(i.f,{className:"!size-5"}),C[3]=u):u=C[3],C[4]!==R?(f=(0,t.jsx)(l.V,{render:(0,t.jsx)(o.Button,{type:"button",variant:"ghost",size:"icon",className:"shrink-0","aria-label":R,children:u})}),C[4]=R,C[5]=f):f=C[5],C[6]===Symbol.for("react.memo_cache_sentinel")?(m=(0,a.f)(c.c,c.a,c.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"),C[6]=m):m=C[6],C[7]!==z||C[8]!==E?(p=z("Back to {title}",{title:E.toLowerCase()}),C[7]=z,C[8]=E,C[9]=p):p=C[9],C[10]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)(n.f,{className:"!size-5"}),C[10]=h):h=C[10],C[11]!==p?(g=(0,t.jsx)(l.O,{render:(0,t.jsx)(o.Button,{type:"button",variant:"ghost",size:"icon",className:"shrink-0","aria-label":p,children:h})}),C[11]=p,C[12]=g):g=C[12],C[13]!==E?(v=(0,t.jsx)(l.L,{className:"text-sm font-medium",children:E}),C[13]=E,C[14]=v):v=C[14],C[15]!==g||C[16]!==v?(x=(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border px-2 py-2",children:[g,v]}),C[15]=g,C[16]=v,C[17]=x):x=C[17],C[18]!==I?(b=()=>void I(),C[18]=I,C[19]=b):b=C[19],C[20]!==A?(y=(0,t.jsx)(A,{className:"absolute left-3 size-4"}),C[20]=A,C[21]=y):y=C[21],C[22]!==O.label?(w=(0,t.jsx)("span",{className:"w-full text-center",children:O.label}),C[22]=O.label,C[23]=w):w=C[23],C[24]!==b||C[25]!==y||C[26]!==w?(j=(0,t.jsxs)(o.Button,{type:"button",size:"md",variant:"outline",className:"relative w-full shrink-0",onClick:b,children:[y,w]}),C[24]=b,C[25]=y,C[26]=w,C[27]=j):j=C[27],C[28]!==L?(k=(0,t.jsx)("div",{className:"min-h-0 flex-1",children:L}),C[28]=L,C[29]=k):k=C[29],C[30]!==j||C[31]!==k?(N=(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2 p-2",children:[j,k]}),C[30]=j,C[31]=k,C[32]=N):N=C[32],C[33]!==N||C[34]!==x?(_=(0,t.jsxs)(l.U,{side:"left",keepMounted:!1,showCloseButton:!1,overlayClassName:c.B,"aria-describedby":void 0,className:m,children:[x,N]}),C[33]=N,C[34]=x,C[35]=_):_=C[35],C[36]!==T||C[37]!==M||C[38]!==_||C[39]!==f?(S=(0,t.jsxs)(l.j,{open:T,onOpenChange:M,modal:"trap-focus",children:[f,_]}),C[36]=T,C[37]=M,C[38]=_,C[39]=f,C[40]=S):S=C[40],S}])},649896,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(657288),i=e.i(279496),a=e.i(136562),o=e.i(139697),l=e.i(181870);e.i(707060);var s=e.i(288265);e.s(["f",0,function(e){let c,d,u,f,m,p,h,g=(0,r.c)(16),{placeholder:v,value:x,onValueChange:b}=e,y=(0,s.f)();return g[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.f)("flex h-8 shrink-0 items-center gap-3 rounded-md pl-3 pr-1","border border-border bg-background","focus-within:border-focus-border focus-within:shadow-focus"),d=(0,t.jsx)(n.f,{"aria-hidden":"true",className:"size-4 shrink-0 text-muted-foreground"}),g[0]=c,g[1]=d):(c=g[0],d=g[1]),g[2]!==b?(u=e=>b(e.target.value),g[2]=b,g[3]=u):u=g[3],g[4]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.f)("h-full flex-1 min-w-0 border-0 bg-transparent px-0 shadow-none","focus-visible:border-transparent focus-visible:shadow-none focus:bg-transparent focus:ring-0","dark:bg-transparent dark:focus:bg-transparent"),g[4]=f):f=g[4],g[5]!==v||g[6]!==u||g[7]!==x?(m=(0,t.jsx)(l.f,{placeholder:v,value:x,onChange:u,className:f}),g[5]=v,g[6]=u,g[7]=x,g[8]=m):m=g[8],g[9]!==y||g[10]!==b||g[11]!==x?(p=x&&(0,t.jsx)(o.Button,{variant:"ghost",size:"icon-3xs",tone:"subdued",glyph:"sm","aria-label":y("Clear search"),onClick:()=>b(""),className:"shrink-0",children:(0,t.jsx)(i.f,{className:"size-3.5"})}),g[9]=y,g[10]=b,g[11]=x,g[12]=p):p=g[12],g[13]!==m||g[14]!==p?(h=(0,t.jsxs)("div",{className:c,children:[d,m,p]}),g[13]=m,g[14]=p,g[15]=h):h=g[15],h}])},318875,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(139697),a=e.i(80676),o=e.i(761821);e.i(707060);var l=e.i(196991),s=e.i(16043);function c(e){let i,a,o,s,c,d=(0,r.c)(7),{className:u}=e;return d[0]!==u?(i=(0,n.f)("flex items-center gap-3 text-muted-foreground",u),d[0]=u,d[1]=i):i=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),o=(0,t.jsx)("span",{children:(0,t.jsx)(l.T,{children:"or"})}),s=(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),d[2]=a,d[3]=o,d[4]=s):(a=d[2],o=d[3],s=d[4]),d[5]!==i?(c=(0,t.jsxs)("div",{className:i,children:[a,o,s]}),d[5]=i,d[6]=c):c=d[6],c}e.i(406201);var d=e.i(967605),u=e.i(134611),f=e.i(632665);let m=(0,s.memo)(e=>{let s,m,p,h,g,v,x,b,y,w,j,k=(0,r.c)(22),{open:N,onOpenChange:_,onContinueWithFreeModels:S}=e,{availableTextModels:C}=(0,o.S)();if(k[0]!==C){let e;s=(e=C.filter(e=>(e.endpoint?.is_free===!0||e.slug.endsWith(":free"))&&(0,f.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]=C,k[1]=s}else s=k[1];let E=s;k[2]!==_?(m=()=>{_(!1)},k[2]=_,k[3]=m):m=k[3];let R=m;return k[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,n.f)("max-w-sm"),k[4]=p):p=k[4],k[5]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)(a.F,{children:(0,t.jsx)(l.T,{children:"Insufficient credits"})}),k[5]=h):h=k[5],k[6]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsxs)(a.s,{className:"text-center",children:[h,(0,t.jsx)(a.C,{children:(0,t.jsx)(l.T,{children:"Add credits to continue using paid models."})})]}),k[6]=g):g=k[6],k[7]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(i.Button,{variant:"default",className:"w-full",children:(0,t.jsx)(l.T,{children:"Buy credits"})}),k[7]=v):v=k[7],k[8]!==R?(x=(0,t.jsx)(d.Link,{href:"https://openrouter.ai/settings/credits",className:"w-full",onClick:R,children:v}),k[8]=R,k[9]=x):x=k[9],k[10]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(c,{className:"text-sm"}),k[10]=b):b=k[10],k[11]!==R||k[12]!==E||k[13]!==S?(y=(0,t.jsx)("div",{className:"flex items-center justify-center",children:S?(0,t.jsx)("button",{type:"button",className:"text-sm underline hover:opacity-80 text-muted-foreground",onClick:()=>{R(),S()},children:(0,t.jsx)(l.T,{children:"Continue with free models"})}):(0,t.jsx)(d.Link,{href:E,variant:"underline",className:"text-sm hover:opacity-80",onClick:R,children:(0,t.jsx)(l.T,{children:"Continue with free models"})})}),k[11]=R,k[12]=E,k[13]=S,k[14]=y):y=k[14],k[15]!==x||k[16]!==y?(w=(0,t.jsxs)(a.d,{className:p,children:[g,(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[x,b,y]})]}),k[15]=x,k[16]=y,k[17]=w):w=k[17],k[18]!==_||k[19]!==N||k[20]!==w?(j=(0,t.jsx)(a.N,{open:N,onOpenChange:_,children:w}),k[18]=_,k[19]=N,k[20]=w,k[21]=j):j=k[21],j});e.s(["f",0,m],318875)},123215,e=>{"use strict";var t=e.i(663456),r=e.i(376885),n=e.i(398254),i=e.i(76429),a=e.i(292312),o=e.i(274417),l=e.i(372844),s=e.i(514681),c=e.i(46369),d=e.i(960773),u=e.i(912),f=e.i(544341);e.i(16043),e.s(["f",0,function(){let e,m=(0,t.c)(5),{openSignUp:p}=(0,n.f)(),{timezone:h}=(0,u.f)(),g=(0,d.Q)(),v=(0,c.f)(),{isSignedIn:x}=(0,r.f)();return(0,s.f)(x),m[0]!==v||m[1]!==p||m[2]!==g||m[3]!==h?(e=async e=>{if(void 0===p)return;let[t,r]=await Promise.all([(0,i.w)(a.f),(0,o.$)(a.f)]);try{p({...e,unsafeMetadata:{...(0,l.f)({sessionId:g.get_session_id()??"",anonymousDistinctId:g.get_distinct_id()??"",sealedSignupCfMetadataResult:t,radarSessionRelay:r,existingMetadata:e?.unsafeMetadata}),...h?{[f.$]:h}:{},...v()}})}catch(e){g.captureException(e,{error_source:"signup-modal-open"})}},m[0]=v,m[1]=p,m[2]=g,m[3]=h,m[4]=e):e=m[4],e}])},709441,e=>{"use strict";e.s(["f",0,{Submitted:"submitted",Failed:"failed",FreeTextUnavailable:"free_text_unavailable"}])},169133,805274,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(269510),i=e.i(510433),a=e.i(139697),o=e.i(751155),l=e.i(236614),s=e.i(231171),c=e.i(73668),d=e.i(443143);e.i(707060);var u=e.i(196991),f=e.i(288265),m=e.i(429332),p=e.i(16043);e.i(818009);var h=e.i(982432),g=e.i(592001),v=e.i(342837),x=e.i(647204),b=e.i(506050),y=e.i(67089),w=e.i(549692);e.i(882844);var j=e.i(635157);let k=j.z.object({id:j.z.string().openapi({description:"Generation feedback ID",example:"abc123-def456-ghi789"}),generation_id:j.z.string().openapi({description:"Generation ID",example:"gen_abc123xyz"})});j.z.object({data:k});var N=e.i(905361);function _(e){return(0,g.f)("/api/frontend/v1/private/generations-feedback",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({generation_id:e.generationId,category:e.category,comment:e.comment})})}var S=e.i(709441),C=e.i(440843);function E(e,t){let n,i,a,o,l,s=(0,r.c)(11);s[0]!==t?(n=void 0===t?{}:t,s[0]=t,s[1]=n):n=s[1];let c=n,d=(0,f.f)(),{mutate:u}=((l=(0,r.c)(1))[0]===Symbol.for("react.memo_cache_sentinel")?(o={mutationFn:_,invalidates:N.C.NONE},l[0]=o):o=l[0],(0,N.h)(o)),{submitGuardrailFalsePositive:m,submitGenerationFeedback:j,toast:k}=c,E=void 0===m?C.o:m,T=void 0===j?u:j,M=void 0===k?h.c:k,[O,L]=(0,p.useState)(!1);s[2]!==d||s[3]!==e||s[4]!==T||s[5]!==E||s[6]!==M?(i=async t=>{var r,n;if(!t.category)return S.f.Failed;let i=t.category;if(L(!0),"guardrail_false_positive"===t.category&&t.guardrailEventType&&t.guardrailId){let n=t.guardrailEventType,i=t.guardrailId,a=t.entityTypes?.length?t.entityTypes:[null],o=await (0,x.$)(()=>Promise.all(a.map(e=>E({generation_id:t.generationId,event_type:n,guardrail_id:i,...null===e?{}:{entity_type:e}}))));L(!1);let l=(0,x.V)(o)?void 0:o.data.find(R);if((0,x.V)(o)||l){let t=l&&(0,x.V)(l)?(r=l.error,(0,w.w)(r)?r.error.message:r.message??d("Please try again later.")):d("Please try again later.");return M({title:d("Failed to submit false positive report"),description:t,variant:"destructive"}),e?.onError?.(),S.f.Failed}return M({title:d("False positive reported"),description:d("Thank you for your feedback!")}),e?.onSuccess?.(),S.f.Submitted}if("guardrail_false_positive"===t.category)return L(!1),S.f.Failed;let a=await (0,x.$)(()=>T({generationId:t.generationId,category:i,comment:t.comment}));if(L(!1),(0,x.V)(a))return(0,y.L)("generation-feedback-submission-threw",(0,b.s)(a.error)),M({title:d("Failed to submit feedback"),description:d("Please try again later."),variant:"destructive"}),e?.onError?.(),S.f.Failed;let o=a.data;return(0,x.V)(o)&&(0,g.d)(o.error)===v.g.S409_Conflict?(M({title:d("Feedback already submitted"),description:d("We already have your feedback for this generation.")}),e?.onSuccess?.(),S.f.Submitted):(0,x.V)(o)&&(n=o.error).status===v.g.S400_Bad_Request&&n.metadata?.code==="generation_free_text_unavailable"?S.f.FreeTextUnavailable:(0,x.V)(o)?(M({title:d("Failed to submit feedback"),description:o.error.message,variant:"destructive"}),e?.onError?.(),S.f.Failed):(M({title:d("Feedback submitted"),description:d("Thank you for your feedback!")}),e?.onSuccess?.(),S.f.Submitted)},s[2]=d,s[3]=e,s[4]=T,s[5]=E,s[6]=M,s[7]=i):i=s[7];let z=i;return s[8]!==O||s[9]!==z?(a={submit:z,isSubmitting:O},s[8]=O,s[9]=z,s[10]=a):a=s[10],a}function R(e){return(0,x.V)(e)}e.s(["f",0,E],805274);let T=(0,m.default)(()=>e.A(635445).then(e=>e.ReportFeedbackDialog),{loadableGenerated:{modules:[213776]}});function M(e){let n,i=(0,r.c)(2);return(0,d.f)(e.open)?(i[0]!==e?(n=(0,t.jsx)(T,{...e}),i[0]=e,i[1]=n):n=i[1],n):null}e.s(["f",0,function(e){let d,m,h,g,v,x,b,y,w,j=(0,r.c)(60),{variant:k,generationId:N,showLabel:_}=e,S=void 0===N?"":N,C=(0,f.f)(),[R,T]=(0,p.useState)(!1),{contextEntityId:O}=(0,c.useEntity)(),L=(0,l.f)(i.J.FreeTextFeedback),z=L===s.L.Blocked,A=L===s.L.Loading,I="header"===k;j[0]===Symbol.for("react.memo_cache_sentinel")?(d={onSuccess:()=>{T(!1)}},j[0]=d):d=j[0];let{submit:B,isSubmitting:P}=E(d);if("header"===k){let e,r,i,o,l,s,c;return j[1]!==C?(e=C("Report feedback for a generation"),j[1]=C,j[2]=e):e=j[2],j[3]===Symbol.for("react.memo_cache_sentinel")?(r=()=>T(!0),i=(0,t.jsx)(n.f,{className:"size-4"}),o=(0,t.jsx)(u.T,{children:"Feedback"}),j[3]=r,j[4]=i,j[5]=o):(r=j[3],i=j[4],o=j[5]),j[6]!==e?(l=(0,t.jsxs)(a.Button,{variant:"outline",size:"sm",shape:"pill",tone:"subdued",title:e,onClick:r,children:[i,o]}),j[6]=e,j[7]=l):l=j[7],j[8]!==O||j[9]!==S||j[10]!==R||j[11]!==z||j[12]!==A||j[13]!==P||j[14]!==I||j[15]!==B?(s=(0,t.jsx)(M,{isFreeTextBlocked:z,isFreeTextResolving:A,open:R,onOpenChange:T,generationId:S,contextEntityId:O,onSubmit:B,isSubmitting:P,showGenerationIdInput:I}),j[8]=O,j[9]=S,j[10]=R,j[11]=z,j[12]=A,j[13]=P,j[14]=I,j[15]=B,j[16]=s):s=j[16],j[17]!==l||j[18]!==s?(c=(0,t.jsxs)(t.Fragment,{children:[l,s]}),j[17]=l,j[18]=s,j[19]=c):c=j[19],c}if(void 0!==_&&_){let e,r,i,o,l,s,c;return j[20]===Symbol.for("react.memo_cache_sentinel")?(e=()=>T(!0),j[20]=e):e=j[20],j[21]!==C?(r=C("Report Feedback"),j[21]=C,j[22]=r):r=j[22],j[23]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(n.f,{className:"h-4 w-4"}),j[23]=i):i=j[23],j[24]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("span",{className:"text-sm",children:(0,t.jsx)(u.T,{children:"Report feedback"})}),j[24]=o):o=j[24],j[25]!==r?(l=(0,t.jsxs)(a.Button,{align:"start",variant:"ghost",size:"xs",className:"h-auto w-full gap-2 py-1.5",onClick:e,"aria-label":r,children:[i,o]}),j[25]=r,j[26]=l):l=j[26],j[27]!==O||j[28]!==S||j[29]!==R||j[30]!==z||j[31]!==A||j[32]!==P||j[33]!==B?(s=(0,t.jsx)(M,{isFreeTextBlocked:z,isFreeTextResolving:A,open:R,onOpenChange:T,generationId:S,contextEntityId:O,onSubmit:B,isSubmitting:P}),j[27]=O,j[28]=S,j[29]=R,j[30]=z,j[31]=A,j[32]=P,j[33]=B,j[34]=s):s=j[34],j[35]!==l||j[36]!==s?(c=(0,t.jsxs)(t.Fragment,{children:[l,s]}),j[35]=l,j[36]=s,j[37]=c):c=j[37],c}return j[38]!==C?(m=C("Report Feedback"),j[38]=C,j[39]=m):m=j[39],j[40]===Symbol.for("react.memo_cache_sentinel")?(h=()=>T(!0),j[40]=h):h=j[40],j[41]!==C?(g=C("Report Feedback"),j[41]=C,j[42]=g):g=j[42],j[43]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(n.f,{className:"h-4 w-4"}),j[43]=v):v=j[43],j[44]!==g?(x=(0,t.jsx)(a.Button,{variant:"ghost",size:"icon-sm",onClick:h,"aria-label":g,children:v}),j[44]=g,j[45]=x):x=j[45],j[46]!==m||j[47]!==x?(b=(0,t.jsx)(o.Tooltip,{content:m,children:x}),j[46]=m,j[47]=x,j[48]=b):b=j[48],j[49]!==O||j[50]!==S||j[51]!==R||j[52]!==z||j[53]!==A||j[54]!==P||j[55]!==B?(y=(0,t.jsx)(M,{isFreeTextBlocked:z,isFreeTextResolving:A,open:R,onOpenChange:T,generationId:S,contextEntityId:O,onSubmit:B,isSubmitting:P}),j[49]=O,j[50]=S,j[51]=R,j[52]=z,j[53]=A,j[54]=P,j[55]=B,j[56]=y):y=j[56],j[57]!==y||j[58]!==b?(w=(0,t.jsxs)(t.Fragment,{children:[b,y]}),j[57]=y,j[58]=b,j[59]=w):w=j[59],w}],169133)},543696,e=>{"use strict";var t=e.i(733442);e.s(["f",0,function(e){let{isSignedIn:r,clerkOrgId:n,workspacePartitionId:i}=e;if(!r)return`${t.E}:guest:${t.t}`;let a=null===i?"":`:ws:${i}`;return n?`${t.E}:${n}${a}:${t.t}`:`${t.E}${a}:${t.t}`}])},733064,e=>{"use strict";var t=e.i(663456),r=e.i(199630),n=e.i(16043);let i="openrouter:default-preset",a="openrouter:default-preset-change";function o(){try{return localStorage.getItem(i)??void 0}catch{return}}e.s(["f",0,function(){let e,l,s,c,d=(0,t.c)(5),[u,f]=(0,n.useState)(o),m=(0,r.f)();d[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{let e=e=>{e.key===i&&f(e.newValue??void 0)},t=e=>{var t;(t=e)instanceof CustomEvent&&t.type===a&&("string"==typeof t.detail||null===t.detail)&&f(e.detail??void 0)};return window.addEventListener("storage",e),window.addEventListener(a,t),()=>{window.removeEventListener("storage",e),window.removeEventListener(a,t)}},l=[],d[0]=e,d[1]=l):(e=d[0],l=d[1]),(0,n.useEffect)(e,l),d[2]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{null===e?(localStorage.removeItem(i),f(void 0)):(localStorage.setItem(i,e),f(e)),window.dispatchEvent(new CustomEvent(a,{detail:e}))},d[2]=s):s=d[2];let p=s,h=m?u:void 0;return d[3]!==h?(c=[h,p],d[3]=h,d[4]=c):c=d[4],c}])},227327,e=>{"use strict";var t=e.i(195759),r=e.i(471316);e.s(["f",0,e=>Object.fromEntries(e.variantSlugs.map(t=>[t,e.getModelInfoByVariantSlug(t)]).filter(([e,t])=>null!==t).map(([e,n])=>{let i,a=void 0===(i=(0,t._)(e))?void 0:t.P[i],o=(0,r.f)({model:e,modelInfo:n,...a&&{providerSort:a},reasoning:{enabled:n?.endpoint?.supports_reasoning??!1}});return[o.id,o]}))])},797913,649301,655673,371784,703880,e=>{"use strict";var t=e.i(663456);let r=(0,e.i(313939).f)()(e=>({isSelectionMode:!1,selectedRoomIds:new Set,enterSelectionMode:()=>e({isSelectionMode:!0}),exitSelectionMode:()=>e({isSelectionMode:!1,selectedRoomIds:new Set}),toggleRoom:t=>e(e=>{let r=new Set(e.selectedRoomIds);return r.has(t)?r.delete(t):r.add(t),{selectedRoomIds:r}}),selectAll:t=>e({selectedRoomIds:new Set(t)}),selectMany:t=>e(e=>{let r=new Set(e.selectedRoomIds);for(let e of t)r.add(e);return{selectedRoomIds:r}}),clear:()=>e({selectedRoomIds:new Set}),clearMany:t=>e(e=>{let r=new Set(e.selectedRoomIds);for(let e of t)r.delete(e);return{selectedRoomIds:r}})}));function n(e){let n,i=(0,t.c)(2);return i[0]!==e?(n=t=>t.selectedRoomIds.has(e),i[0]=e,i[1]=n):n=i[1],r(n)}function i(){return r(a)}function a(e){return e.isSelectionMode}function o(){return r(l)}function l(e){return e.selectedRoomIds.size}e.s(["h",0,n,"u",0,i,"N",0,r,"s",0,o],797913);var s=e.i(659350),c=e.i(39835),d=e.i(194215),u=e.i(136562),f=e.i(139697),m=e.i(797521),p=e.i(205194);e.i(707060);var h=e.i(196991),g=e.i(288265),v=e.i(153746),x=e.i(16043),b=e.i(22422),y=e.i(82045);function w(e){let r,n,i,a,o,l,c,d=(0,t.c)(19),{open:u,onOpenChange:m,title:p,description:g,confirmLabel:v,variant:x,onConfirm:b}=e;d[0]!==p?(r=(0,s.jsx)(y.g,{children:p}),d[0]=p,d[1]=r):r=d[1],d[2]!==g?(n=(0,s.jsx)(y.I,{children:g}),d[2]=g,d[3]=n):n=d[3],d[4]!==r||d[5]!==n?(i=(0,s.jsxs)(y.O,{children:[r,n]}),d[4]=r,d[5]=n,d[6]=i):i=d[6],d[7]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)(y.D,{children:(0,s.jsx)(h.T,{children:"Cancel"})}),d[7]=a):a=d[7];let w="destructive"===(void 0===x?"destructive":x)?"destructive":"default";return d[8]!==v||d[9]!==b||d[10]!==w?(o=(0,s.jsxs)(y._,{children:[a,(0,s.jsx)(y.s,{render:(0,s.jsx)(f.Button,{variant:w,onClick:b,children:v})})]}),d[8]=v,d[9]=b,d[10]=w,d[11]=o):o=d[11],d[12]!==i||d[13]!==o?(l=(0,s.jsxs)(y.B,{children:[i,o]}),d[12]=i,d[13]=o,d[14]=l):l=d[14],d[15]!==m||d[16]!==u||d[17]!==l?(c=(0,s.jsx)(y.m,{open:u,onOpenChange:m,children:l}),d[15]=m,d[16]=u,d[17]=l,d[18]=c):c=d[18],c}var j=e.i(674896);let k=(0,x.createContext)({roomHref:e=>`/chat?room=${e}`,deletedRoomHref:"/chat",canDuplicate:!0}),N=k.Provider;function _(){return(0,x.useContext)(k)}function S(e){return e.exitSelectionMode}e.s(["T",0,function(e){let r,n,i,a=(0,t.c)(8),{children:o}=e,l=(0,j.W)(j.L.Chat);a[0]!==l?(r=e=>`${l}?room=${e}`,a[0]=l,a[1]=r):r=a[1],a[2]!==l||a[3]!==r?(n={roomHref:r,deletedRoomHref:l,canDuplicate:!0},a[2]=l,a[3]=r,a[4]=n):n=a[4];let c=n;return a[5]!==o||a[6]!==c?(i=(0,s.jsx)(N,{value:c,children:o}),a[5]=o,a[6]=c,a[7]=i):i=a[7],i},"q",0,N,"J",0,_],649301),e.s(["f",0,function(){let e,n,i,a,l,y,j,k,N,C,E,R,T,M,O,L,z,A,I,B,P,D,F,$,H,V,W,G=(0,t.c)(67),U=(0,m.f)(),q=(0,g.f)(),Z=(0,p.f)(),K=_(),Y=o(),J=r(S),[X,Q]=(0,x.useState)(!1),[ee,et]=(0,x.useState)(!1);G[0]!==J?(e=()=>{let e=[...r.getState().selectedRoomIds];et(!1),b.z.exportManyData({payload:{roomIds:e}}),J()},G[0]=J,G[1]=e):e=G[1];let er=e;G[2]!==J||G[3]!==K||G[4]!==Z?(n=async()=>{let e=[...r.getState().selectedRoomIds];for(let t of(Q(!1),e))await b.z.deleteChatroom({payload:{roomId:t},dependencies:{deletedRoomHref:K.deletedRoomHref,router:Z}});J()},G[2]=J,G[3]=K,G[4]=Z,G[5]=n):n=G[5];let en=n;return 0===Y?null:(G[6]!==q?(i=q("Bulk chat actions"),G[6]=q,G[7]=i):i=G[7],G[8]===Symbol.for("react.memo_cache_sentinel")?(a=(0,u.f)("shrink-0 flex flex-col gap-1.5","rounded-xl border border-border bg-background px-2.5 py-2"),G[8]=a):a=G[8],G[9]!==Y||G[10]!==U?(l=U.number(Y,{preset:"integer"}),G[9]=Y,G[10]=U,G[11]=l):l=G[11],G[12]!==l?(y=(0,s.jsx)(h.T,{children:(0,s.jsxs)("span",{className:"px-0.5 text-sm font-medium text-foreground",children:[(0,s.jsx)(v.d,{children:l})," selected"]})}),G[12]=l,G[13]=y):y=G[13],G[14]!==q?(j=q("Export selected chats"),G[14]=q,G[15]=j):j=G[15],G[16]===Symbol.for("react.memo_cache_sentinel")?(k=()=>et(!0),N=(0,s.jsx)(c.f,{className:"size-4"}),C=(0,s.jsx)(h.T,{children:"Export"}),G[16]=k,G[17]=N,G[18]=C):(k=G[16],N=G[17],C=G[18]),G[19]!==j?(E=(0,s.jsxs)(f.Button,{type:"button",variant:"outline",size:"sm","aria-label":j,className:"flex-1",onClick:k,children:[N,C]}),G[19]=j,G[20]=E):E=G[20],G[21]!==q?(R=q("Delete selected chats"),G[21]=q,G[22]=R):R=G[22],G[23]===Symbol.for("react.memo_cache_sentinel")?(T=()=>Q(!0),M=(0,s.jsx)(d.f,{className:"size-4"}),O=(0,s.jsx)(h.T,{children:"Delete"}),G[23]=T,G[24]=M,G[25]=O):(T=G[23],M=G[24],O=G[25]),G[26]!==R?(L=(0,s.jsxs)(f.Button,{type:"button",variant:"outline",size:"sm","aria-label":R,className:"flex-1 border-negative/30 text-negative hover:bg-negative-bg hover:text-negative",onClick:T,children:[M,O]}),G[26]=R,G[27]=L):L=G[27],G[28]!==E||G[29]!==L?(z=(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[E,L]}),G[28]=E,G[29]=L,G[30]=z):z=G[30],G[31]!==z||G[32]!==i||G[33]!==y?(A=(0,s.jsxs)("div",{role:"toolbar","aria-label":i,className:a,children:[y,z]}),G[31]=z,G[32]=i,G[33]=y,G[34]=A):A=G[34],G[35]!==q?(I=q("Export selected chats"),G[35]=q,G[36]=I):I=G[36],G[37]!==Y||G[38]!==q?(B=q("This will download {count, plural, one {# chat} other {# chats}} as a single JSON file.",{count:Y}),G[37]=Y,G[38]=q,G[39]=B):B=G[39],G[40]!==Y||G[41]!==q?(P=q("Export ({count})",{count:Y}),G[40]=Y,G[41]=q,G[42]=P):P=G[42],G[43]!==er||G[44]!==ee||G[45]!==I||G[46]!==B||G[47]!==P?(D=(0,s.jsx)(w,{open:ee,onOpenChange:et,title:I,description:B,confirmLabel:P,variant:"default",onConfirm:er}),G[43]=er,G[44]=ee,G[45]=I,G[46]=B,G[47]=P,G[48]=D):D=G[48],G[49]!==q?(F=q("Delete selected chats"),G[49]=q,G[50]=F):F=G[50],G[51]!==Y||G[52]!==q?($=q("This will permanently delete {count, plural, one {# chat} other {# chats}}. This action cannot be undone.",{count:Y}),G[51]=Y,G[52]=q,G[53]=$):$=G[53],G[54]!==Y||G[55]!==q?(H=q("Delete ({count})",{count:Y}),G[54]=Y,G[55]=q,G[56]=H):H=G[56],G[57]!==en||G[58]!==X||G[59]!==F||G[60]!==$||G[61]!==H?(V=(0,s.jsx)(w,{open:X,onOpenChange:Q,title:F,description:$,confirmLabel:H,variant:"destructive",onConfirm:en}),G[57]=en,G[58]=X,G[59]=F,G[60]=$,G[61]=H,G[62]=V):V=G[62],G[63]!==A||G[64]!==D||G[65]!==V?(W=(0,s.jsxs)(s.Fragment,{children:[A,D,V]}),G[63]=A,G[64]=D,G[65]=V,G[66]=W):W=G[66],W)}],655673);var C=e.i(303125);let E=x.forwardRef(function({title:e,titleId:t,...r},n){return x.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":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14"}))});function R(e){let n,a,o,l,c,d,f,m,p,h=(0,t.c)(37),{visibleRoomIds:v,className:x,label:b,labelClassName:y}=e,w=(0,g.f)(),j=i(),k=r(O),N=r(M),_=r(T);if(0===v.length)return null;if(h[0]!==_||h[1]!==w||h[2]!==j||h[3]!==N||h[4]!==k||h[5]!==v){let e,t;h[11]!==k?(e=e=>k.has(e),h[11]=k,h[12]=e):e=h[12];let r=v.filter(e).length;n=r===v.length,l=!(o=0===r)&&!n,h[13]!==_||h[14]!==o||h[15]!==j||h[16]!==N||h[17]!==v?(t=()=>{if(j){if(o)return void N(v);_(v)}},h[13]=_,h[14]=o,h[15]=j,h[16]=N,h[17]=v,h[18]=t):t=h[18],a=t,c=o?w("Select all ({count})",{count:v.length}):w("Deselect {count}",{count:r}),h[0]=_,h[1]=w,h[2]=j,h[3]=N,h[4]=k,h[5]=v,h[6]=n,h[7]=a,h[8]=o,h[9]=l,h[10]=c}else n=h[6],a=h[7],o=h[8],l=h[9],c=h[10];let S=c,R=l?"mixed":n,L=j?"transition-colors hover:bg-card-hover hover:text-accent-foreground":"cursor-default";return h[19]!==x||h[20]!==L?(d=(0,u.f)("flex w-fit shrink-0 items-center gap-2 rounded-md p-1.5 text-muted-foreground",L,x),h[19]=x,h[20]=L,h[21]=d):d=h[21],h[22]!==n||h[23]!==o||h[24]!==l||h[25]!==j?(f=j?(0,s.jsxs)("span",{"aria-hidden":"true",className:(0,u.f)("flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border","transition-[background-color,border-color]",n&&"border-primary bg-primary text-primary-foreground",l&&"border-primary bg-primary text-primary-foreground",o&&"border-foreground/30 bg-muted"),children:[n?(0,s.jsx)(C.f,{className:"h-3 w-3 stroke-3"}):null,l?(0,s.jsx)(E,{className:"h-3 w-3 stroke-3"}):null]}):null,h[22]=n,h[23]=o,h[24]=l,h[25]=j,h[26]=f):f=h[26],h[27]!==b||h[28]!==y?(m=b?(0,s.jsx)("span",{className:(0,u.f)("text-xs leading-none",y),children:b}):null,h[27]=b,h[28]=y,h[29]=m):m=h[29],h[30]!==S||h[31]!==R||h[32]!==a||h[33]!==d||h[34]!==f||h[35]!==m?(p=(0,s.jsxs)("button",{type:"button",role:"checkbox","aria-checked":R,"aria-label":S,onClick:a,className:d,children:[f,m]}),h[30]=S,h[31]=R,h[32]=a,h[33]=d,h[34]=f,h[35]=m,h[36]=p):p=h[36],p}function T(e){return e.clearMany}function M(e){return e.selectMany}function O(e){return e.selectedRoomIds}e.s(["f",0,R],371784);let L=x.forwardRef(function({title:e,titleId:t,...r},n){return x.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":t},r),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"}))});var z=e.i(962852),A=e.i(971892),I=e.i(778553),B=e.i(181870),P=e.i(624112),D=e.i(954217),F=e.i(332610),$=e.i(300326),H=e.i(295654),V=e.i(693946),W=e.i(700050),G=e.i(624621),U=e.i(918331);function q(e){let a,o,l,c=(0,t.c)(11),{roomId:d}=e,u=(0,g.f)(),f=i(),m=n(d),p=r(K);return f?(c[0]!==u||c[1]!==m||c[2]!==d?(a=u(m?"Deselect chat {roomId}":"Select chat {roomId}",{roomId:d}),c[0]=u,c[1]=m,c[2]=d,c[3]=a):a=c[3],c[4]!==d||c[5]!==p?(o=()=>p(d),c[4]=d,c[5]=p,c[6]=o):o=c[6],c[7]!==m||c[8]!==a||c[9]!==o?(l=(0,s.jsx)(U.f,{checked:m,"aria-label":a,onClick:Z,onCheckedChange:o}),c[7]=m,c[8]=a,c[9]=o,c[10]=l):l=c[10],l):null}function Z(e){e.stopPropagation()}function K(e){return e.toggleRoom}function Y(e){let n,a,o,l,c,m,v,y,j,k,N,S,C,E,R,T,M,O,U,Z,K,Y,X,Q,ee,et,er,en,ei,ea,eo,el,es,ec,ed,eu,ef,em,ep,eh,eg,ev,ex,eb,ey,ew,ej,ek,eN,e_,eS,eC,eE,eR,eT=(0,t.c)(149),{roomId:eM}=e,eO=(0,g.f)(),eL=(0,p.f)(),ez=_(),eA=eM===(0,G.f)(V.M);eT[0]!==eM?(n=e=>(0,V.m)(e,eM),eT[0]=eM,eT[1]=n):n=eT[1];let eI=(0,G.f)(n);eT[2]!==eM?(a=e=>(0,V.J)(e,eM),eT[2]=eM,eT[3]=a):a=eT[3];let eB=(0,G.f)(a),eP=i(),eD=r(J),eF=(0,F.f)();eT[4]!==eF?(o=eF.isOpen("rename"),eT[4]=eF,eT[5]=o):o=eT[5];let e$=o;eT[6]!==eF?(l=eF.isOpen("delete_confirm"),eT[6]=eF,eT[7]=l):l=eT[7];let eH=l,{close:eV}=eF,eW=(0,x.useRef)(null);eT[8]!==eV||eT[9]!==eH?(c=()=>{if(!eH)return;let e=e=>{"Escape"===e.key&&(e.stopPropagation(),eV("delete_confirm"))};return document.addEventListener("keydown",e,{capture:!0}),()=>document.removeEventListener("keydown",e,{capture:!0})},m=[eH,eV],eT[8]=eV,eT[9]=eH,eT[10]=c,eT[11]=m):(c=eT[10],m=eT[11]),(0,x.useEffect)(c,m),eT[12]!==eF||eT[13]!==ez.deletedRoomHref||eT[14]!==eM||eT[15]!==eL?(v=()=>{eF.close("delete_confirm"),b.z.deleteChatroom({payload:{roomId:eM},dependencies:{deletedRoomHref:ez.deletedRoomHref,router:eL}})},eT[12]=eF,eT[13]=ez.deletedRoomHref,eT[14]=eM,eT[15]=eL,eT[16]=v):v=eT[16];let eG=v;eT[17]!==e$?(y=()=>{e$&&(eW.current?.focus(),eW.current?.select())},j=[e$],eT[17]=e$,eT[18]=y,eT[19]=j):(y=eT[18],j=eT[19]),(0,x.useEffect)(y,j),eT[20]!==e$||eT[21]!==eI?(k=()=>{eW.current&&!e$&&(eW.current.value=eI)},N=[eI,e$],eT[20]=e$,eT[21]=eI,eT[22]=k,eT[23]=N):(k=eT[22],N=eT[23]),(0,x.useEffect)(k,N),eT[24]!==eF||eT[25]!==eM||eT[26]!==eI?(S=()=>{let e=eW.current?.value.trim()??"";eF.close("rename"),e&&e!==eI&&(b.z.updateRoom({payload:{roomId:eM,partialRoom:{title:e}}}),(0,W.n)({oldTitleLength:eI.length,newTitleLength:e.length}))},eT[24]=eF,eT[25]=eM,eT[26]=eI,eT[27]=S):S=eT[27];let eU=S;eT[28]!==eF||eT[29]!==eI?(C=()=>{eF.close("rename"),eW.current&&(eW.current.value=eI)},eT[28]=eF,eT[29]=eI,eT[30]=C):C=eT[30];let eq=C;eT[31]!==eB||eT[32]!==eM?(E=()=>{b.z.updateRoom({payload:{roomId:eM,partialRoom:{isPinned:!eB}}})},eT[31]=eB,eT[32]=eM,eT[33]=E):E=eT[33];let eZ=E,eK=eA?"bg-accent text-accent-foreground":"hover:bg-card-hover",eY=(!eB||eP)&&"pl-3";eT[34]!==eK||eT[35]!==eY?(R=(0,u.f)("group relative flex h-9 items-center rounded-lg",eK,"transition-colors",eY),eT[34]=eK,eT[35]=eY,eT[36]=R):R=eT[36],eT[37]!==eP||eT[38]!==eM?(T=eP&&(0,s.jsx)("div",{className:"pr-2",children:(0,s.jsx)(q,{roomId:eM})}),eT[37]=eP,eT[38]=eM,eT[39]=T):T=eT[39],eT[40]!==eO||eT[41]!==eZ||eT[42]!==eB||eT[43]!==eP?(M=eB&&!eP&&(0,s.jsx)(f.Button,{variant:"ghost",size:"icon",shape:"sm","aria-label":eO("Unpin room"),title:eO("Unpin room"),className:"shrink-0 hover:bg-transparent",onClick:eZ,children:(0,s.jsx)(L,{className:"h-4 w-4 text-muted-foreground"})}),eT[40]=eO,eT[41]=eZ,eT[42]=eB,eT[43]=eP,eT[44]=M):M=eT[44],eT[45]!==ez||eT[46]!==eM?(O=ez.roomHref(eM),eT[45]=ez,eT[46]=eM,eT[47]=O):O=eT[47],eT[48]!==eP||eT[49]!==eM||eT[50]!==eD?(U=e=>{eP&&(e.preventDefault(),eD(eM))},eT[48]=eP,eT[49]=eM,eT[50]=eD,eT[51]=U):U=eT[51];let eJ=eA&&"text-accent-foreground";eT[52]!==eJ?(Z=(0,u.f)("flex flex-1 items-center","min-w-0","no-underline text-muted-foreground hover:no-underline",eJ),eT[52]=eJ,eT[53]=Z):Z=eT[53];let eX=e$&&"cursor-text",eQ=eI===H.l&&!e$&&"italic text-faint";eT[54]!==eX||eT[55]!==eQ?(K=(0,u.f)("ph-no-capture h-auto w-full cursor-pointer truncate border-0 bg-transparent p-0 font-medium leading-5 shadow-none pointer-coarse:leading-5 focus-visible:border-transparent focus-visible:shadow-none",eX,eQ),eT[54]=eX,eT[55]=eQ,eT[56]=K):K=eT[56],eT[57]!==eq||eT[58]!==eU?(Y=e=>{"Enter"===e.key?eU():"Escape"===e.key&&eq()},eT[57]=eq,eT[58]=eU,eT[59]=Y):Y=eT[59];let e0=!e$;eT[60]!==eF?(X=e=>{e.preventDefault(),eF.open("rename")},eT[60]=eF,eT[61]=X):X=eT[61],eT[62]!==eU||eT[63]!==eI||eT[64]!==K||eT[65]!==Y||eT[66]!==e0||eT[67]!==X?(Q=(0,s.jsx)("div",{className:"flex min-w-0 flex-1 items-center",children:(0,s.jsx)(B.f,{ref:eW,className:K,"data-dd-privacy":"hidden",placeholder:H.l,defaultValue:eI,onBlur:eU,onKeyDown:Y,readOnly:e0,onDoubleClick:X})}),eT[62]=eU,eT[63]=eI,eT[64]=K,eT[65]=Y,eT[66]=e0,eT[67]=X,eT[68]=Q):Q=eT[68],eT[69]!==O||eT[70]!==U||eT[71]!==Z||eT[72]!==Q?(ee=(0,s.jsx)("div",{className:"flex h-full min-w-0 flex-1",children:(0,s.jsx)(D.TextLink,{href:O,scroll:!1,onClick:U,className:Z,children:Q})}),eT[69]=O,eT[70]=U,eT[71]=Z,eT[72]=Q,eT[73]=ee):ee=eT[73];let e1=eP&&"hidden";eT[74]!==e1?(et=(0,u.f)("flex shrink-0 items-center",e1),eT[74]=e1,eT[75]=et):et=eT[75],eT[76]!==eF?(er=eF.isOpen("menu"),eT[76]=eF,eT[77]=er):er=eT[77],eT[78]!==eF?(en=e=>eF.setOpen("menu",e),eT[78]=eF,eT[79]=en):en=eT[79];let e2=eA&&"opacity-100";eT[80]!==e2?(ei=(0,u.f)("group-hover:opacity-100 md:opacity-0","data-[state=open]:opacity-100",e2,"hover:bg-transparent"),eT[80]=e2,eT[81]=ei):ei=eT[81],eT[82]!==eO?(ea=eO("Room actions"),eT[82]=eO,eT[83]=ea):ea=eT[83],eT[84]===Symbol.for("react.memo_cache_sentinel")?(eo=(0,s.jsx)(A.f,{className:"size-5"}),eT[84]=eo):eo=eT[84],eT[85]!==ei||eT[86]!==ea?(el=(0,s.jsx)(P.J,{render:(0,s.jsx)(f.Button,{size:"icon",variant:"ghost",className:ei,"aria-label":ea,children:eo})}),eT[85]=ei,eT[86]=ea,eT[87]=el):el=eT[87],eT[88]!==eZ||eT[89]!==eF?(es=()=>{eF.close("menu"),eZ()},eT[88]=eZ,eT[89]=eF,eT[90]=es):es=eT[90],eT[91]===Symbol.for("react.memo_cache_sentinel")?(ec=(0,s.jsx)(L,{className:"h-4 w-4"}),eT[91]=ec):ec=eT[91];let e5=eB?"pinned":"unpinned";return eT[92]!==e5?(ed=(0,s.jsx)(h.T,{children:(0,s.jsxs)("span",{className:"inline-flex items-center gap-2",children:[ec,(0,s.jsx)($.f,{branch:e5,pinned:"Unpin",unpinned:"Pin"})]})}),eT[92]=e5,eT[93]=ed):ed=eT[93],eT[94]!==es||eT[95]!==ed?(eu=(0,s.jsx)(f.Button,{align:"start",size:"sm",variant:"ghost",className:"w-full",onClick:es,children:ed}),eT[94]=es,eT[95]=ed,eT[96]=eu):eu=eT[96],eT[97]!==eF?(ef=()=>{eF.close("menu"),requestAnimationFrame(()=>eF.open("rename"))},eT[97]=eF,eT[98]=ef):ef=eT[98],eT[99]===Symbol.for("react.memo_cache_sentinel")?(em=(0,s.jsx)(I.f,{className:"size-4"}),eT[99]=em):em=eT[99],eT[100]===Symbol.for("react.memo_cache_sentinel")?(ep=(0,s.jsx)(h.T,{children:"Rename"}),eT[100]=ep):ep=eT[100],eT[101]!==ef?(eh=(0,s.jsxs)(f.Button,{align:"start",size:"sm",variant:"ghost",className:"w-full",onClick:ef,children:[em," ",ep]}),eT[101]=ef,eT[102]=eh):eh=eT[102],eT[103]!==eF||eT[104]!==ez.canDuplicate||eT[105]!==eM||eT[106]!==eL?(eg=ez.canDuplicate?(0,s.jsxs)(f.Button,{align:"start",size:"sm",variant:"ghost",className:"w-full",onClick:()=>{eF.close("menu"),b.z.duplicateRoom({payload:{sourceRoomId:eM},dependencies:{router:eL}})},children:[(0,s.jsx)(z.f,{className:"size-4"})," ",(0,s.jsx)(h.T,{children:"Duplicate"})]}):null,eT[103]=eF,eT[104]=ez.canDuplicate,eT[105]=eM,eT[106]=eL,eT[107]=eg):eg=eT[107],eT[108]!==eF?(ev=()=>{eF.open("delete_confirm")},eT[108]=eF,eT[109]=ev):ev=eT[109],eT[110]===Symbol.for("react.memo_cache_sentinel")?(ex=(0,s.jsx)(d.f,{className:"size-4"}),eT[110]=ex):ex=eT[110],eT[111]===Symbol.for("react.memo_cache_sentinel")?(eb=(0,s.jsx)(h.T,{children:"Delete"}),eT[111]=eb):eb=eT[111],eT[112]!==ev?(ey=(0,s.jsxs)(f.Button,{align:"start",size:"sm",variant:"ghost",className:"w-full text-negative hover:text-negative",onClick:ev,children:[ex," ",eb]}),eT[112]=ev,eT[113]=ey):ey=eT[113],eT[114]!==eu||eT[115]!==eh||eT[116]!==eg||eT[117]!==ey?(ew=(0,s.jsx)(P.T,{side:"right",text:"body",className:"w-48 p-1.5",children:(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[eu,eh,eg,ey]})}),eT[114]=eu,eT[115]=eh,eT[116]=eg,eT[117]=ey,eT[118]=ew):ew=eT[118],eT[119]!==er||eT[120]!==en||eT[121]!==el||eT[122]!==ew?(ej=(0,s.jsxs)(P.V,{open:er,onOpenChange:en,children:[el,ew]}),eT[119]=er,eT[120]=en,eT[121]=el,eT[122]=ew,eT[123]=ej):ej=eT[123],eT[124]!==et||eT[125]!==ej?(ek=(0,s.jsx)("div",{className:et,children:ej}),eT[124]=et,eT[125]=ej,eT[126]=ek):ek=eT[126],eT[127]!==eF?(eN=e=>eF.setOpen("delete_confirm",e),eT[127]=eF,eT[128]=eN):eN=eT[128],eT[129]!==eO?(e_=eO("Delete chat"),eT[129]=eO,eT[130]=e_):e_=eT[130],eT[131]!==eO?(eS=eO("This will permanently delete this chat. This action cannot be undone."),eT[131]=eO,eT[132]=eS):eS=eT[132],eT[133]!==eO?(eC=eO("Delete"),eT[133]=eO,eT[134]=eC):eC=eT[134],eT[135]!==eG||eT[136]!==eH||eT[137]!==eN||eT[138]!==e_||eT[139]!==eS||eT[140]!==eC?(eE=(0,s.jsx)(w,{open:eH,onOpenChange:eN,title:e_,description:eS,confirmLabel:eC,variant:"destructive",onConfirm:eG}),eT[135]=eG,eT[136]=eH,eT[137]=eN,eT[138]=e_,eT[139]=eS,eT[140]=eC,eT[141]=eE):eE=eT[141],eT[142]!==R||eT[143]!==T||eT[144]!==M||eT[145]!==ee||eT[146]!==ek||eT[147]!==eE?(eR=(0,s.jsxs)("div",{className:R,children:[T,M,ee,ek,eE]}),eT[142]=R,eT[143]=T,eT[144]=M,eT[145]=ee,eT[146]=ek,eT[147]=eE,eT[148]=eR):eR=eT[148],eR}function J(e){return e.toggleRoom}let X=(0,x.memo)(e=>(0,s.jsx)(x.Suspense,{fallback:null,children:(0,s.jsx)(Y,{...e})}),(e,t)=>e.roomId===t.roomId);function Q(e){return(0,s.jsx)(X,{roomId:e},e)}function ee(e){return(0,s.jsx)(X,{roomId:e},e)}e.s(["f",0,function(e){let r,n,i,a=(0,t.c)(12),{rooms:o}=e,l=(0,g.f)(),c=o.pinned.length>0,d=o.recent.length>0;if(!c&&!d){let e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(h.T,{children:(0,s.jsx)("div",{className:"flex h-full items-center justify-center px-4 text-xs text-muted-foreground",children:"No matching rooms"})}),a[0]=e):e=a[0],e}return a[1]!==l||a[2]!==c||a[3]!==o.pinned?(r=c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,u.f)("flex items-center px-3","pt-2 pb-1"),children:(0,s.jsx)(R,{visibleRoomIds:o.pinned,label:l("Pinned"),labelClassName:"text-overline font-medium uppercase tracking-wider text-muted-foreground",className:"-ml-1.5"})}),(0,s.jsx)("div",{className:"flex flex-col gap-0.5",children:o.pinned.map(ee)})]}),a[1]=l,a[2]=c,a[3]=o.pinned,a[4]=r):r=a[4],a[5]!==c||a[6]!==d||a[7]!==o.recent?(n=d&&(0,s.jsx)("div",{className:"flex flex-col",children:o.recent.map((e,t)=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:(0,u.f)("flex items-center gap-2 px-3",c||0!==t?"pt-4 pb-1":"pt-2 pb-1"),children:[(0,s.jsx)(R,{visibleRoomIds:e.roomIds,label:e.groupName,labelClassName:"text-overline font-medium uppercase tracking-wider text-muted-foreground",className:"-ml-1.5"}),(0,s.jsx)("div",{"aria-hidden":"true",className:"h-px flex-1 bg-border"})]}),(0,s.jsx)("div",{className:"flex flex-col gap-0.5",children:e.roomIds.map(Q)})]},e.groupName))}),a[5]=c,a[6]=d,a[7]=o.recent,a[8]=n):n=a[8],a[9]!==r||a[10]!==n?(i=(0,s.jsxs)("div",{className:"flex flex-col",children:[r,n]}),a[9]=r,a[10]=n,a[11]=i):i=a[11],i}],703880)},797677,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(207298),a=e.i(16043);let o=(0,i.f)("size-full rounded-[inherit]",{variants:{orientation:{horizontal:"overflow-x-auto overflow-y-hidden",vertical:"overflow-y-auto overflow-x-hidden"}},defaultVariants:{orientation:"horizontal"}}),l=(0,i.f)("",{variants:{orientation:{horizontal:"w-max",vertical:"h-max"}},defaultVariants:{orientation:"horizontal"}});function s(e){window.clearTimeout(e)}e.s(["f",0,e=>{let i,c,d,u,f,m,p,h,g=(0,r.c)(19),{children:v,className:x,itemCount:b,orientation:y}=e,w=void 0===y?"horizontal":y,j=(0,a.useRef)(null),k=(0,a.useRef)(b);return g[0]!==b||g[1]!==w?(i=()=>{let e=k.current;if(k.current=b,b<=e)return;let t=()=>{if(j.current){if("horizontal"===w){j.current.scrollLeft=j.current.scrollWidth;return}j.current.scrollTop=j.current.scrollHeight}};t();let r=[window.setTimeout(t,50),window.setTimeout(t,200),window.setTimeout(t,500)];return()=>{r.forEach(s)}},c=[b,w],g[0]=b,g[1]=w,g[2]=i,g[3]=c):(i=g[2],c=g[3]),(0,a.useEffect)(i,c),g[4]!==x?(d=(0,n.f)("w-full overflow-hidden",x),g[4]=x,g[5]=d):d=g[5],g[6]!==w?(u=o({orientation:w}),g[6]=w,g[7]=u):u=g[7],g[8]!==w?(f=l({orientation:w}),g[8]=w,g[9]=f):f=g[9],g[10]!==v||g[11]!==f?(m=(0,t.jsx)("div",{className:f,children:v}),g[10]=v,g[11]=f,g[12]=m):m=g[12],g[13]!==u||g[14]!==m?(p=(0,t.jsx)("div",{ref:j,className:u,children:m}),g[13]=u,g[14]=m,g[15]=p):p=g[15],g[16]!==d||g[17]!==p?(h=(0,t.jsx)("div",{className:d,children:p}),g[16]=d,g[17]=p,g[18]=h):h=g[18],h}])},903121,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.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:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.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"}))}),a=n.forwardRef(function({title:e,titleId:t,...r},i){return n.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:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.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"}),n.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"}))}),o=n.forwardRef(function({title:e,titleId:t,...r},i){return n.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:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.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 l=e.i(136562);e.i(707060);var s=e.i(196991);e.s(["f",0,e=>{let n,c,d,u,f=(0,r.c)(11),{className:m,isValid:p,onDrop:h}=e;f[0]!==h?(n=h?{onDrop:h}:{},f[0]=h,f[1]=n):n=f[1];let g=p?"border-accent-border bg-selected-bg":"border-destructive bg-destructive/10";return f[2]!==m||f[3]!==g?(c=(0,l.f)("flex h-32 w-full items-center justify-center rounded-lg border-2 border-dashed backdrop-blur-sm",g,"transition-colors duration-200 ease-in-out",m),f[2]=m,f[3]=g,f[4]=c):c=f[4],f[5]!==p?(d=(0,t.jsx)("div",{className:"text-center",children:p?(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)(o,{className:"size-6 -rotate-6 text-muted-foreground"}),(0,t.jsx)(i,{className:"size-6 text-muted-foreground"}),(0,t.jsx)(a,{className:"size-6 rotate-6 text-muted-foreground"})]}),(0,t.jsx)(s.T,{children:"Drop files here to add to your message"})]}):(0,t.jsx)(s.T,{children:(0,t.jsx)("p",{className:"font-semibold text-destructive",children:"Invalid file type (images, audio, video, text, PDF)"})})}),f[5]=p,f[6]=d):d=f[6],f[7]!==n||f[8]!==c||f[9]!==d?(u=(0,t.jsx)("div",{role:"button",tabIndex:0,...n,className:c,children:d}),f[7]=n,f[8]=c,f[9]=d,f[10]=u):u=f[10],u}],903121)},601608,563456,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(6146),i=e.i(77825),a=e.i(535072),o=e.i(205194);e.i(707060);var l=e.i(288265),s=e.i(40181),c=e.i(16043),d=e.i(404142),u=e.i(22422),f=e.i(624621),m=e.i(329415),p=e.i(902988),h=e.i(362942),g=e.i(649301),v=e.i(907781);function x(){let e=(0,f.f)(y),t=(0,f.f)(b),r=(0,v.f)();return null!==r&&e===r&&"pending"!==t&&"failed"!==t}function b(e){return e.initializationStatus}function y(e){return e.storageInstanceId}e.s(["f",0,x],563456);let w=(0,c.memo)(e=>{let n,a,c,v,b,y,w,j,k,_=(0,r.c)(28),{isEmbedded:S}=e,C=void 0!==S&&S,E=(0,l.f)(),R=(0,o.f)(),T=(0,f.f)(N),M=(0,i.f)(),O=x(),L=(0,m.f)(),z=C&&!(O&&L),A=(0,p.f)(),I=C&&!1===A,B=z&&!I;_[0]!==R?(n=async()=>{var e;let t=await u.z.createChatroom({payload:{characters:f.f.getState().rooms[f.f.getState().currentRoomId??""]?.characters}});R.push((e=t.id,`?room=${e}`))},_[0]=R,_[1]=n):n=_[1];let P=n;return _[2]!==B?(a=B?{inert:!0}:{},_[2]=B,_[3]=a):a=_[3],_[4]!==E?(c=E("Chat"),_[4]=E,_[5]=c):c=_[5],_[6]!==E?(v=E("New chat"),_[6]=E,_[7]=v):v=_[7],_[8]!==E?(b=E("New Chat (⌘ /)"),_[8]=E,_[9]=b):b=_[9],_[10]!==P||_[11]!==I||_[12]!==v||_[13]!==b?(y={label:v,ariaLabel:b,icon:s.f,onClick:P,shortcutHint:"⌘/",isDisabled:I},_[10]=P,_[11]=I,_[12]=v,_[13]=b,_[14]=y):y=_[14],_[15]!==z?(w=z?null:(0,t.jsx)(g.T,{children:(0,t.jsx)(h.f,{})}),_[15]=z,_[16]=w):w=_[16],_[17]!==M||_[18]!==T||_[19]!==C||_[20]!==c||_[21]!==y||_[22]!==w?(j=(0,t.jsx)(d.f,{title:c,isCollapsed:T,onToggle:u.z.toggleRoomManagerCollapsed,backAction:M,isEmbedded:C,newAction:y,containerClassName:"h-full min-h-0",children:w}),_[17]=M,_[18]=T,_[19]=C,_[20]=c,_[21]=y,_[22]=w,_[23]=j):j=_[23],_[24]!==B||_[25]!==a||_[26]!==j?(k=(0,t.jsx)("div",{className:"h-full min-h-0","aria-busy":B,...a,children:j}),_[24]=B,_[25]=a,_[26]=j,_[27]=k):k=_[27],k},()=>!0);function j(){let e=(0,r.c)(1),i=(0,a.x)();if((0,n.B)())return null;if(i){let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(w,{}),e[0]=r):r=e[0],r}return null}let k=(0,c.memo)(()=>{let e,n=(0,r.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(c.Suspense,{fallback:null,children:(0,t.jsx)(j,{})}),n[0]=e):e=n[0],e},()=>!0);function N(e){return e.isRoomManagerCollapsed}e.s(["EmbeddedRoomManager",0,function(){let e,n=(0,r.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(w,{isEmbedded:!0}),n[0]=e):e=n[0],e},"ResponsiveRoomManager",0,k],601608)},362942,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(139697),i=e.i(797521);e.i(707060);var a=e.i(359980),o=e.i(196991),l=e.i(288265),s=e.i(153746),c=e.i(16043),d=e.i(649896),u=e.i(797913),f=e.i(655673),m=e.i(371784),p=e.i(703880),h=e.i(138257),g=e.i(801103),v=e.i(304903),x=e.i(895783),b=e.i(693946),y=e.i(624621);function w(e){let n,l,c,d,u=(0,r.c)(17),{count:f,internId:m}=e,p=(0,i.f)();u[0]!==f||u[1]!==p?(n=p.number(f,{preset:"integer"}),u[0]=f,u[1]=p,u[2]=n):n=u[2];let h=n;if(void 0===m){let e,r,n;return u[3]!==h?(e=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.d,{children:h})," room"]}),r=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.d,{children:h})," rooms"]}),u[3]=h,u[4]=e,u[5]=r):(e=u[4],r=u[5]),u[6]!==f||u[7]!==e||u[8]!==r?(n=(0,t.jsx)(o.T,{children:(0,t.jsx)(a.f,{n:f,one:e,other:r})}),u[6]=f,u[7]=e,u[8]=r,u[9]=n):n=u[9],n}return u[10]!==h?(l=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.d,{children:h})," conversation"]}),c=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.d,{children:h})," conversations"]}),u[10]=h,u[11]=l,u[12]=c):(l=u[11],c=u[12]),u[13]!==f||u[14]!==l||u[15]!==c?(d=(0,t.jsx)(o.T,{children:(0,t.jsx)(a.f,{n:f,one:l,other:c})}),u[13]=f,u[14]=l,u[15]=c,u[16]=d):d=u[16],d}let j=(0,c.memo)(e=>{let i,a,s,j,S,C,E,R,T,M,O,L,z,A,I,B,P,D,F=(0,r.c)(33),{internId:$}=e,H=(0,l.f)(),[V,W]=(0,c.useState)(""),[G,U]=(0,c.useState)(V),q=(0,u.u)(),Z=(0,u.N)(k),K=(0,u.N)(N);F[0]!==V?(i=()=>{let e=setTimeout(()=>{U(V)},250);return()=>clearTimeout(e)},a=[V],F[0]=V,F[1]=i,F[2]=a):(i=F[1],a=F[2]),(0,c.useEffect)(i,a);let Y=(I=(0,r.c)(6),B=(0,h.useLocale)(),P=(0,v.P)(),D=(0,g.m)(),I[0]!==G||I[1]!==$||I[2]!==B||I[3]!==D||I[4]!==P?(A=e=>void 0===$?(0,b.F)(e,G,B,{timeZone:P,nowMs:D}):(0,b.v)(e,$,G,B,{timeZone:P,nowMs:D}),I[0]=G,I[1]=$,I[2]=B,I[3]=D,I[4]=P,I[5]=A):A=I[5],(0,y.f)((0,x.f)(A)));F[3]!==Y.pinned||F[4]!==Y.recent?(s=[...Y.pinned,...Y.recent.flatMap(_)],F[3]=Y.pinned,F[4]=Y.recent,F[5]=s):s=F[5];let J=s;F[6]!==H||F[7]!==$?(j=H(void 0===$?"Search rooms...":"Search conversations..."),F[6]=H,F[7]=$,F[8]=j):j=F[8],F[9]!==V||F[10]!==j?(S=(0,t.jsx)(d.f,{placeholder:j,value:V,onValueChange:W}),F[9]=V,F[10]=j,F[11]=S):S=F[11],F[12]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsx)("div",{"aria-hidden":"true",className:"shrink-0 -mx-2 py-4",children:(0,t.jsx)("div",{className:"h-px bg-border"})}),F[12]=C):C=F[12],F[13]!==H||F[14]!==$||F[15]!==q||F[16]!==J?(E=q?(0,t.jsx)(m.f,{visibleRoomIds:J,label:H("Select all"),className:"ml-1.5"}):(0,t.jsx)("span",{className:"inline-flex h-7 items-center pl-3 text-xs font-medium text-muted-foreground",children:(0,t.jsx)(w,{count:J.length,internId:$})}),F[13]=H,F[14]=$,F[15]=q,F[16]=J,F[17]=E):E=F[17];let X=q?K:Z;return F[18]!==q?(R=q?(0,t.jsx)(o.T,{children:"Done"}):(0,t.jsx)(o.T,{children:"Select"}),F[18]=q,F[19]=R):R=F[19],F[20]!==X||F[21]!==R?(T=(0,t.jsx)(n.Button,{type:"button",variant:"ghost",size:"sm",tone:"subdued",className:"px-1.5",onClick:X,children:R}),F[20]=X,F[21]=R,F[22]=T):T=F[22],F[23]!==T||F[24]!==E?(M=(0,t.jsxs)("div",{className:"flex h-7 shrink-0 items-center justify-between gap-1.5 pr-1",children:[E,T]}),F[23]=T,F[24]=E,F[25]=M):M=F[25],F[26]!==Y?(O=(0,t.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto scrollbar-hide",children:(0,t.jsx)(p.f,{rooms:Y})}),F[26]=Y,F[27]=O):O=F[27],F[28]===Symbol.for("react.memo_cache_sentinel")?(L=(0,t.jsx)(f.f,{}),F[28]=L):L=F[28],F[29]!==M||F[30]!==O||F[31]!==S?(z=(0,t.jsxs)("div",{className:"flex h-full min-h-0 w-full flex-col gap-2",children:[S,C,M,O,L]}),F[29]=M,F[30]=O,F[31]=S,F[32]=z):z=F[32],z},(e,t)=>e.internId===t.internId);function k(e){return e.enterSelectionMode}function N(e){return e.exitSelectionMode}function _(e){return e.roomIds}e.s(["f",0,j],362942)},907781,e=>{"use strict";var t=e.i(663456),r=e.i(73668);e.i(16043);var n=e.i(215370),i=e.i(543696);e.s(["f",0,function(){let e,a=(0,t.c)(4),{isLoading:o,isOrgLoading:l,clerkOrg:s,isSignedIn:c}=(0,r.useEntity)(),d=(0,n.f)();s?.id;e:{let t;if(!(!o&&!l)||!d.isReady){e=null;break e}let r=!0===c,n=s?.id;a[0]!==r||a[1]!==n||a[2]!==d.partitionId?(t=(0,i.f)({isSignedIn:r,clerkOrgId:n,workspacePartitionId:d.partitionId}),a[0]=r,a[1]=n,a[2]=d.partitionId,a[3]=t):t=a[3],e=t}return e}])},660298,e=>{"use strict";e.s(["f",0,function(e,{date:t=new Date().toDateString(),name:r="OpenRouter Chat",ext:n=".md"}={}){let i=`${r} ${t}${n}`.trim(),a=i.length>100?`${i.slice(0,100-n.length)}${n}`:i,o=new Blob([e],{type:"text/markdown;charset=utf-8;"}),l=document.createElement("a"),s=URL.createObjectURL(o);l.setAttribute("href",s),l.setAttribute("download",a),l.style.visibility="hidden",document.body.appendChild(l),l.click(),document.body.removeChild(l),setTimeout(()=>URL.revokeObjectURL(s),4e4)}])},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:n,didFetchFail:i}){return e?!0!==r?t.Allowed:void 0!==n?0===n.length?t.Blocked:t.Allowed:i?t.Allowed:t.Loading:t.Loading}])},205059,e=>{"use strict";var t=e.i(663456),r=e.i(376885),n=e.i(128564),i=e.i(829104);e.s(["f",0,function(){let e,a,o=(0,t.c)(7),{isLoaded:l,isSignedIn:s}=(0,r.f)(),c=!0===s;o[0]!==c?(e={isEnabled:c},o[0]=c,o[1]=e):e=o[1];let{workspaces:d,didFetchFail:u}=(0,n.Z)(e);return o[2]!==u||o[3]!==l||o[4]!==s||o[5]!==d?(a=(0,i.I)({isAuthLoaded:l,isSignedIn:s,workspaces:d,didFetchFail:u}),o[2]=u,o[3]=l,o[4]=s,o[5]=d,o[6]=a):a=o[6],a}])},215370,784814,e=>{"use strict";var t=e.i(376885),r=e.i(128564),n=e.i(427150);function i(e){let{activeWorkspaceId:t,defaultWorkspaceId:r}=e;return t&&r?t===r?null:t:null}e.s(["X",0,i,"Q",0,function(e,t){return(e.workspaceId??null)===t}],784814);let a={isReady:!1,partitionId:null},o={isReady:!0,partitionId:null},l=null;e.s(["f",0,function(){let{isLoaded:e,isSignedIn:s,userId:c,orgId:d}=(0,t.f)(),{workspaces:u,activeWorkspaceId:f,defaultWorkspaceId:m,didFetchFail:p}=(0,r.Z)({isEnabled:!0===s});if(!e)return a;if(!s||!(0,n.f)(c))return o;let h=d??null;if(void 0===u)return p&&l?.userId===c&&l.orgId===h?{isReady:!0,partitionId:l.partitionId}:a;let g=i({activeWorkspaceId:f,defaultWorkspaceId:m});return l={userId:c,orgId:h,partitionId:g},{isReady:!0,partitionId:g}}],215370)},329415,902988,e=>{"use strict";var t=e.i(663456),r=e.i(128564),n=e.i(424909),i=e.i(402600);e.s(["f",0,function(){let e,a,o,l=(0,t.c)(6),s=(0,i.f)();l[0]===Symbol.for("react.memo_cache_sentinel")?(e={isEnabled:!0},l[0]=e):e=l[0];let{workspaces:c,activeWorkspaceId:d}=(0,r.Z)(e);if(l[1]!==d||l[2]!==s||l[3]!==c){o=Symbol.for("react.early_return_sentinel");e:{let e=/^\/workspaces\/([^/]+)/.exec(s??"")?.[1];if(void 0===e||void 0===c||!d){o=!1;break e}a=(0,n.f)(c,e)?.id}l[1]=d,l[2]=s,l[3]=c,l[4]=a,l[5]=o}else a=l[4],o=l[5];return o!==Symbol.for("react.early_return_sentinel")?o:a===d}],329415),e.s(["f",0,function(){let e,a,o,l=(0,t.c)(5),s=(0,i.f)();l[0]===Symbol.for("react.memo_cache_sentinel")?(e={isEnabled:!0},l[0]=e):e=l[0];let{workspaces:c}=(0,r.Z)(e);if(l[1]!==s||l[2]!==c){o=Symbol.for("react.early_return_sentinel");e:{let e=/^\/workspaces\/([^/]+)/.exec(s??"")?.[1];if(void 0===e||void 0===c){o=void 0;break e}a=(0,n.f)(c,e)}l[1]=s,l[2]=c,l[3]=a,l[4]=o}else a=l[3],o=l[4];return o!==Symbol.for("react.early_return_sentinel")?o:void 0!==a}],902988)}]); //# sourceMappingURL=20tcwp0wiyaoe.js.map