!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a09e9c-6b44-7cd0-a386-1e929d837911")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,512357,741485,58115,e=>{"use strict";var t=e.i(270401),r=e.i(120102),n=e.i(86222),i=e.i(228876),a=e.i(361409),o=e.i(192291),l=e.i(271710),c=e.i(365054),u=e.i(686738),s=e.i(302113),d=e.i(991066),f=e.i(939550),g=e.i(467219),m=e.i(846755),v=e.i(861187);function h(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function p(e,t){return h(t,e===v.ARROW_UP||e===v.ARROW_DOWN,e===v.ARROW_LEFT||e===v.ARROW_RIGHT)}function b(e,t,r){return h(t,e===v.ARROW_DOWN,r?e===v.ARROW_LEFT:e===v.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,w){let I="rootStore"in e?e.rootStore:e,x=I.useState("open"),y=I.useState("floatingElement"),U=I.useState("domReferenceElement"),N=I.context.dataRef,{listRef:F,activeIndex:k,onNavigate:R=()=>{},enabled:L=!0,selectedIndex:S=null,allowEscape:E=!1,loopFocus:O=!1,nested:T=!1,rtl:C=!1,virtual:A=!1,focusItemOnOpen:P="auto",focusItemOnHover:M=!0,openOnArrowKeyDown:D=!0,disabledIndices:_,orientation:j="vertical",parentOrientation:W,cols:z=1,id:V,resetOnPointerLeave:G=!0,externalTree:H}=w,$=(0,c.getFloatingFocusElement)(y),B=(0,n.useValueAsRef)($),K=(0,d.useFloatingParentNodeId)(),q=(0,d.useFloatingTree)(H);(0,a.useIsoLayoutEffect)(()=>{N.current.orientation=j},[N,j]);let Y=(0,c.isTypeableCombobox)(U),J=t.useRef(P),Z=t.useRef(S??-1),Q=t.useRef(null),X=t.useRef(!0),ee=(0,i.useStableCallback)(e=>{R(-1===Z.current?null:Z.current,e)}),et=t.useRef(ee),er=t.useRef(!!y),en=t.useRef(x),ei=t.useRef(!1),ea=t.useRef(!1),eo=t.useRef(null),el=(0,n.useValueAsRef)(_),ec=(0,n.useValueAsRef)(x),eu=(0,n.useValueAsRef)(S),es=(0,n.useValueAsRef)(G),ed=(0,i.useStableCallback)(()=>{function e(e){A?q?.events.emit("virtualfocus",e):eo.current=(0,m.enqueueFocus)(e,{sync:ei.current,preventScroll:!0})}let t=F.current[Z.current],r=ea.current;t&&e(t),(ei.current?e=>e():requestAnimationFrame)(()=>{let n=F.current[Z.current]||t;!n||(t||e(n),em&&(r||!X.current)&&n.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,a.useIsoLayoutEffect)(()=>{L&&(x&&y?(Z.current=S??-1,J.current&&null!=S&&(ea.current=!0,ee())):er.current&&(Z.current=-1,et.current()))},[L,x,y,S,ee]),(0,a.useIsoLayoutEffect)(()=>{if(L){if(!x){ei.current=!1;return}if(y)if(null==k){if(ei.current=!1,null!=eu.current)return;if(er.current&&(Z.current=-1,ed()),(!en.current||!er.current)&&J.current&&(null!=Q.current||!0===J.current&&null==Q.current)){let e=0,t=()=>{null==F.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(Z.current=null==Q.current||b(Q.current,j,C)||T?(0,s.getMinListIndex)(F):(0,s.getMaxListIndex)(F),Q.current=null,ee())};t()}}else(0,s.isIndexOutOfListBounds)(F.current,k)||(Z.current=k,ed(),ea.current=!1)}},[L,x,y,k,eu,T,F,j,C,ee,ed,el]),(0,a.useIsoLayoutEffect)(()=>{if(!L||y||!q||A||!er.current)return;let e=q.nodesRef.current,t=e.find(e=>e.id===K)?.context?.elements.floating,r=(0,l.activeElement)((0,o.ownerDocument)(y)),n=e.some(e=>e.context&&(0,l.contains)(e.context.elements.floating,r));t&&!n&&X.current&&t.focus({preventScroll:!0})},[L,y,q,K,A]),(0,a.useIsoLayoutEffect)(()=>{et.current=ee,en.current=x,er.current=!!y}),(0,a.useIsoLayoutEffect)(()=>{x||(Q.current=null,J.current=P)},[x,P]);let ef=null!=k,eg=(0,i.useStableCallback)(e=>{if(!ec.current)return;let t=F.current.indexOf(e.currentTarget);-1!==t&&(Z.current!==t||k!==t)&&(Z.current=t,ee(e))}),em=t.useMemo(()=>({onFocus(e){ei.current=!0,eg(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){ei.current=!0,ea.current=!1,M&&eg(e)},onPointerLeave(e){if(!ec.current||!X.current||"touch"===e.pointerType)return;ei.current=!0;let t=e.relatedTarget;if(!(!M||F.current.includes(t))&&es.current&&(eo.current?.(),eo.current=null,Z.current=-1,ee(e),!A)){let e=B.current,t=(0,l.activeElement)((0,o.ownerDocument)(e));e&&(0,l.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[eg,ec,B,M,F,ee,es,A]),ev=t.useCallback(()=>W??q?.nodesRef.current.find(e=>e.id===K)?.context?.dataRef?.current.orientation,[K,q,W]),eh=(0,i.useStableCallback)(e=>{var t;let n,i;if(X.current=!1,ei.current=!0,229===e.which||!ec.current&&e.currentTarget===B.current)return;if(T&&(t=e.key,n=C?t===v.ARROW_RIGHT:t===v.ARROW_LEFT,i=t===v.ARROW_UP,"both"===j||"horizontal"===j&&z&&z>1?"Escape"===t:h(j,n,i))){p(e.key,ev())||(0,u.stopEvent)(e),I.setOpen(!1,(0,f.createChangeEventDetails)(g.REASONS.listNavigation,e.nativeEvent)),(0,r.isHTMLElement)(U)&&(A?q?.events.emit("virtualfocus",U):U.focus());return}let a=Z.current,o=(0,s.getMinListIndex)(F,_),c=(0,s.getMaxListIndex)(F,_);if(Y||("Home"===e.key&&((0,u.stopEvent)(e),Z.current=o,ee(e)),"End"===e.key&&((0,u.stopEvent)(e),Z.current=c,ee(e))),z>1){let t=Array.from({length:F.current.length},()=>({width:1,height:1})),r=(0,s.createGridCellMap)(t,z,!1),n=r.findIndex(e=>null!=e&&!(0,s.isListIndexDisabled)(F.current,e,_)),i=r.reduce((e,t,r)=>null==t||(0,s.isListIndexDisabled)(F.current,t,_)?e:r,-1),a=r[(0,s.getGridNavigatedIndex)(r.map(e=>null!=e?F.current[e]:null),{event:e,orientation:j,loopFocus:O,rtl:C,cols:z,disabledIndices:(0,s.getGridCellIndices)([...("function"!=typeof _?_:null)||F.current.map((e,t)=>(0,s.isListIndexDisabled)(F.current,t,_)?t:void 0),void 0],r),minIndex:n,maxIndex:i,prevIndex:(0,s.getGridCellIndexOfCorner)(Z.current>c?o:Z.current,t,r,z,e.key===v.ARROW_DOWN?"bl":e.key===(C?v.ARROW_LEFT:v.ARROW_RIGHT)?"tr":"tl"),stopEvent:!0})];if(null!=a&&(Z.current=a,ee(e)),"both"===j)return}if(p(e.key,j)){if((0,u.stopEvent)(e),x&&!A&&(0,l.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){Z.current=b(e.key,j,C)?o:c,ee(e);return}b(e.key,j,C)?O?a>=c?E&&a!==F.current.length?Z.current=-1:(ei.current=!1,Z.current=o):Z.current=(0,s.findNonDisabledListIndex)(F.current,{startingIndex:a,disabledIndices:_}):Z.current=Math.min(c,(0,s.findNonDisabledListIndex)(F.current,{startingIndex:a,disabledIndices:_})):O?a<=o?E&&-1!==a?Z.current=F.current.length:(ei.current=!1,Z.current=c):Z.current=(0,s.findNonDisabledListIndex)(F.current,{startingIndex:a,decrement:!0,disabledIndices:_}):Z.current=Math.max(o,(0,s.findNonDisabledListIndex)(F.current,{startingIndex:a,decrement:!0,disabledIndices:_})),(0,s.isIndexOutOfListBounds)(F.current,Z.current)&&(Z.current=-1),ee(e)}}),ep=t.useMemo(()=>A&&x&&ef&&{"aria-activedescendant":`${V}-${k}`},[A,x,ef,V,k]),eb=t.useMemo(()=>({"aria-orientation":"both"===j?void 0:j,...!Y?ep:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&x&&!A){let t=(0,l.getTarget)(e.nativeEvent);if(t&&!(0,l.contains)(B.current,t))return;(0,u.stopEvent)(e),I.setOpen(!1,(0,f.createChangeEventDetails)(g.REASONS.focusOut,e.nativeEvent)),(0,r.isHTMLElement)(U)&&U.focus();return}eh(e)},onPointerMove(){X.current=!0}}),[ep,eh,B,j,Y,I,x,A,U]),ew=t.useMemo(()=>{function e(e){"auto"===P&&(0,u.isVirtualClick)(e.nativeEvent)&&(J.current=!A)}function t(e){J.current=P,"auto"===P&&(0,u.isVirtualPointerEvent)(e.nativeEvent)&&(J.current=!0)}return{onKeyDown(e){var t,r;let n=I.select("open");X.current=!1;let i=e.key.startsWith("Arrow"),a=(t=e.key,r=ev(),h(r,C?t===v.ARROW_LEFT:t===v.ARROW_RIGHT,t===v.ARROW_DOWN)),o=p(e.key,j),l=(T?a:o)||"Enter"===e.key||""===e.key.trim();if(A&&n)return eh(e);if(n||D||!i){if(l){let t=p(e.key,ev());Q.current=T&&t?null:e.key}if(T){a&&((0,u.stopEvent)(e),n?(Z.current=(0,s.getMinListIndex)(F,el.current),ee(e)):I.setOpen(!0,(0,f.createChangeEventDetails)(g.REASONS.listNavigation,e.nativeEvent,e.currentTarget)));return}o&&(null!=eu.current&&(Z.current=eu.current),(0,u.stopEvent)(e),!n&&D?I.setOpen(!0,(0,f.createChangeEventDetails)(g.REASONS.listNavigation,e.nativeEvent,e.currentTarget)):eh(e),n&&ee(e))}},onFocus(e){I.select("open")&&!A&&(Z.current=-1,ee(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[eh,el,P,F,T,ee,I,D,j,ev,C,eu,A]),eI=t.useMemo(()=>({...ep,...ew}),[ep,ew]);return t.useMemo(()=>L?{reference:eI,floating:eb,item:em,trigger:ew}:{},[L,eI,eb,ew,em])}],512357);var w=e.i(671695);e.s(["useTypeahead",0,function(e,r){let n="rootStore"in e?e.rootStore:e,o=n.context.dataRef,c=n.useState("open"),{listRef:d,elementsRef:f,activeIndex:g,onMatch:m,onTypingChange:v,enabled:h=!0,resetMs:p=750,selectedIndex:b=null}=r,I=(0,w.useTimeout)(),x=t.useRef(""),y=t.useRef(b??g??-1),U=t.useRef(null);(0,a.useIsoLayoutEffect)(()=>{(c||null===b)&&(I.clear(),U.current=null,""!==x.current&&(x.current=""))},[c,b,I]),(0,a.useIsoLayoutEffect)(()=>{c&&""===x.current&&(y.current=b??g??-1)},[c,b,g]);let N=(0,i.useStableCallback)(e=>{e?o.current.typing||(o.current.typing=e,v?.(e)):o.current.typing&&(o.current.typing=e,v?.(e))}),F=(0,i.useStableCallback)(e=>{function t(e,r,n=0){if(0===e.length)return -1;let i=(n%e.length+e.length)%e.length,a=r.toLocaleLowerCase();for(let t=0;t0&&" "===e.key&&((0,u.stopEvent)(e),N(!0)),x.current.length>0&&" "!==x.current[0]&&-1===t(r,x.current)&&" "!==e.key&&N(!1),null==r||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;c&&" "!==e.key&&((0,u.stopEvent)(e),N(!0));let n=""===x.current;n&&(y.current=b??g??-1),r.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&x.current===e.key&&(x.current="",y.current=U.current),x.current+=e.key,I.start(p,()=>{x.current="",y.current=U.current,N(!1)});let i=n?b??g??-1:y.current,a=t(r,x.current,(i??0)+1);-1!==a?(m?.(a),U.current=a):" "!==e.key&&(x.current="",N(!1))}),k=(0,i.useStableCallback)(e=>{let t=e.relatedTarget,r=n.select("domReferenceElement"),i=n.select("floatingElement"),a=(0,l.contains)(r,t),o=(0,l.contains)(i,t);a||o||(I.clear(),x.current="",y.current=U.current,N(!1))}),R=t.useMemo(()=>({onKeyDown:F,onBlur:k}),[F,k]),L=t.useMemo(()=>({onKeyDown:F,onBlur:k}),[F,k]);return t.useMemo(()=>h?{reference:R,floating:L}:{},[h,R,L])}],741485);var I=e.i(281085);e.s(["getPseudoElementBounds",0,function(e){let t=e.getBoundingClientRect(),r=(0,I.ownerWindow)(e),n=r.getComputedStyle(e,"::before"),i=r.getComputedStyle(e,"::after");if("none"===n.content&&"none"===i.content)return t;let a=parseFloat(n.width)||0,o=parseFloat(n.height)||0,l=parseFloat(i.width)||0,c=parseFloat(i.height)||0,u=Math.max(t.width,a,l),s=Math.max(t.height,o,c),d=u-t.width,f=s-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}],58115)},897464,e=>{"use strict";var t=e.i(270401),r=e.i(361409),n=e.i(761073);e.s(["useRegisterFieldControl",0,function(e,i){let{enabled:a=!0,getValue:o,id:l,value:c}=i,{registerFieldControl:u}=(0,n.useFieldRootContext)(),s=t.useRef(null);s.current||(s.current=Symbol()),(0,r.useIsoLayoutEffect)(()=>{let t=s.current;if(t&&a)return u(t,{controlRef:e,getValue:o,id:l,value:c}),()=>{u(t,void 0)}},[e,a,o,l,u,c])}])},761073,391699,e=>{"use strict";var t,r=e.i(397744),n=e.i(270401),i=e.i(618568);let a=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),o={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},l={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},c={disabled:!1,...l};e.s(["DEFAULT_FIELD_ROOT_STATE",0,c,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,l,"DEFAULT_VALIDITY_STATE",0,o,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{[a.valid]:""}:{[a.invalid]:""}}],391699);let u=n.createContext({invalid:void 0,name:void 0,validityData:{state:o,errors:[],error:"",value:"",initialValue:null},setValidityData:i.NOOP,disabled:void 0,touched:l.touched,setTouched:i.NOOP,dirty:l.dirty,setDirty:i.NOOP,filled:l.filled,setFilled:i.NOOP,focused:l.focused,setFocused:i.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:c,markedDirtyRef:{current:!1},registerFieldControl:i.NOOP,validation:{getValidationProps:(e=i.EMPTY_OBJECT)=>e,getInputValidationProps:(e=i.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}});e.s(["useFieldRootContext",0,function(e=!0){let t=n.useContext(u);if(t.setValidityData===i.NOOP&&!e)throw Error((0,r.default)(28));return t}],761073)},965358,e=>{"use strict";var t=e.i(270401),r=e.i(618568);let n=t.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:r.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["useFormContext",0,function(){return t.useContext(n)}])},231152,e=>{"use strict";var t=e.i(270401),r=e.i(618568);let n=t.createContext({controlId:void 0,registerControlId:r.NOOP,labelId:void 0,setLabelId:r.NOOP,messageIds:[],setMessageIds:r.NOOP,getDescriptionProps:e=>e});e.s(["useLabelableContext",0,function(){return t.useContext(n)}])},435848,e=>{"use strict";var t=e.i(270401),r=e.i(361409),n=e.i(228876),i=e.i(836033),a=e.i(120102),o=e.i(618568),l=e.i(593478),c=e.i(231152);e.s(["useLabelableId",0,function(e={}){let{id:u,implicit:s=!1,controlRef:d}=e,{controlId:f,registerControlId:g}=(0,c.useLabelableContext)(),m=(0,l.useBaseUiId)(u),v=s?f:void 0,h=(0,i.useRefWithInit)(()=>Symbol("labelable-control")),p=t.useRef(!1),b=t.useRef(null!=u),w=(0,n.useStableCallback)(()=>{p.current&&g!==o.NOOP&&(p.current=!1,g(h.current,void 0))});return(0,r.useIsoLayoutEffect)(()=>{let e;if(g!==o.NOOP){if(s){let t=d?.current;e=(0,a.isElement)(t)&&null!=t.closest("label")?u??null:v??m}else if(null!=u)b.current=!0,e=u;else{if(!b.current)return void w();e=m}if(void 0===e)return void w();p.current=!0,g(h.current,e)}},[u,d,v,g,s,m,h,w]),t.useEffect(()=>w,[w]),f??m}])},39285,e=>{"use strict";e.s(["serializeValue",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},540427,e=>{"use strict";var t=e.i(270401),r=e.i(281334);let n=t.forwardRef(function(e,t){let{className:n,render:i,orientation:a="horizontal",style:o,...l}=e;return(0,r.useRenderElement)("div",e,{state:{orientation:a},ref:t,props:[{role:"separator","aria-orientation":a},l]})});e.s(["Separator",0,n])},777246,e=>{"use strict";var t=e.i(397744),r=e.i(270401);let n=r.createContext(void 0);e.s(["useToolbarRootContext",0,function(e){let i=r.useContext(n);if(void 0===i&&!e)throw Error((0,t.default)(69));return i}])},922651,e=>{"use strict";var t=e.i(270401),r=e.i(192291),n=e.i(987950),i=e.i(361409);e.s(["useAnchoredPopupScrollLock",0,function(e,a,o,l){let[c,u]=t.useState(!1);(0,i.useIsoLayoutEffect)(()=>{if(!e||!a||null==o)return void u(!1);let t=(0,r.ownerDocument)(o).documentElement.clientWidth,n=o.offsetWidth;u(t>0&&n>0&&n>=t-20)},[e,a,o]),(0,n.useScrollLock)(e&&(!a||c),l)}])},210761,e=>{"use strict";var t=e.i(361409),r=e.i(593478);e.s(["useRegisteredLabelId",0,function(e,n){let i=(0,r.useBaseUiId)(e);return(0,t.useIsoLayoutEffect)(()=>(n(i),()=>{n(void 0)}),[i,n]),i}])},30023,e=>{"use strict";let t=(0,e.i(202913).default)("arrow-up-down",[["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"}]]);e.s(["ArrowUpDown",0,t],30023)},191379,e=>{"use strict";let t=(0,e.i(202913).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",0,t],191379)},222584,e=>{"use strict";let t=(0,e.i(202913).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},479937,e=>{"use strict";let t=(0,e.i(202913).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["default",0,t])},477986,e=>{"use strict";var t=e.i(479937);e.s(["ChevronUp",()=>t.default])},108663,e=>{"use strict";var t=e.i(270401);function r(e,r,n,i){var a=this,o=(0,t.useRef)(null),l=(0,t.useRef)(0),c=(0,t.useRef)(0),u=(0,t.useRef)(null),s=(0,t.useRef)([]),d=(0,t.useRef)(),f=(0,t.useRef)(),g=(0,t.useRef)(e),m=(0,t.useRef)(!0);g.current=e;var v="u">typeof window,h=!r&&0!==r&&v;if("function"!=typeof e)throw TypeError("Expected a function");r=+r||0;var p=!!(n=n||{}).leading,b=!("trailing"in n)||!!n.trailing,w="maxWait"in n,I="debounceOnServer"in n&&!!n.debounceOnServer,x=w?Math.max(+n.maxWait||0,r):null;return(0,t.useEffect)(function(){return m.current=!0,function(){m.current=!1}},[]),(0,t.useMemo)(function(){var e=function(e){var t=s.current,r=d.current;return s.current=d.current=null,l.current=e,c.current=c.current||e,f.current=g.current.apply(r,t)},t=function(e,t){h&&cancelAnimationFrame(u.current),u.current=h?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!m.current)return!1;var t=e-o.current;return!o.current||t>=r||t<0||w&&e-l.current>=x},y=function(t){return u.current=null,b&&s.current?e(t):(s.current=d.current=null,f.current)},U=function e(){var i=Date.now();if(p&&c.current===l.current&&N(),n(i))return y(i);if(m.current){var a=r-(i-o.current);t(e,w?Math.min(a,x-(i-l.current)):a)}},N=function(){i&&i({})},F=function(){if(v||I){var i=Date.now(),c=n(i);if(s.current=[].slice.call(arguments),d.current=a,o.current=i,c){if(!u.current&&m.current)return l.current=o.current,t(U,r),p?e(o.current):f.current;if(w)return t(U,r),e(o.current)}return u.current||t(U,r),f.current}};return F.cancel=function(){var e=u.current;e&&(h?cancelAnimationFrame(u.current):clearTimeout(u.current)),l.current=0,s.current=o.current=d.current=u.current=null,e&&i&&i({})},F.isPending=function(){return!!u.current},F.flush=function(){return u.current?y(Date.now()):f.current},F},[p,w,r,x,b,h,v,I,i])}function n(e,t){return e===t}e.s(["useDebounce",0,function(e,i,a){var o=a&&a.equalityFn||n,l=(0,t.useRef)(e),c=(0,t.useState)({})[1],u=r((0,t.useCallback)(function(e){l.current=e,c({})},[c]),i,a,c),s=(0,t.useRef)(e);return o(s.current,e)||(u(e),s.current=e),[l.current,u]},"useDebouncedCallback",0,r])},963,e=>{"use strict";var t,r,n=((t={}).Text="text",t.Image="image",t.Embeddings="embeddings",t.Audio="audio",t.Video="video",t.Rerank="rerank",t.TTS="speech",t.Transcription="transcription",t);let i=new Set(["embeddings","rerank","speech","transcription"]),a=new Set(["embeddings","rerank"]),o=new Set(["text","image"]);function l(e){return 0===e.length||e.some(e=>o.has(e))&&!e.some(e=>i.has(e))}function c(e){return e.includes("video")&&!l(e)}var u=((r={}).Text="text",r.Image="image",r.File="file",r.Audio="audio",r.Video="video",r);e.s(["InputModality",()=>u,"NON_GENERATIVE_OUTPUT_MODALITIES",0,a,"OUTPUT_MODALITY_LABELS",0,{text:"Text",image:"Image",embeddings:"Embeddings",audio:"Audio",video:"Video",rerank:"Rerank",speech:"Speech",transcription:"Transcription"},"OutputModality",()=>n,"USER_FACING_OUTPUT_MODALITIES",0,["text","image","video","speech","transcription","embeddings","rerank","audio"],"isChatroomSelectableModel",0,function(e){return l(e)||c(e)},"isChattableModel",0,l,"isNonChattableVideoModel",0,c,"isTextOnly",0,function(e){return 1===e.length&&e.includes("text")}])},557225,630056,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473),i=e.i(188363),a=e.i(687421),o=e.i(678998);function l(e){return e.toLowerCase()}let c=new Map([[l(a.ProviderName.OpenAI),{url:(0,o.getLocalIconUri)("OpenAI.svg"),className:"dark:invert"}],[l(a.ProviderName.Perplexity),{url:(0,o.getLocalIconUri)("Perplexity.png")}],[l(a.ProviderName.Poolside),{url:(0,o.getLocalIconUri)("poolside-logomark-solid-color.svg")}],[l(a.ProviderName.Perceptron),{url:(0,o.getFaviconUrl)("https://www.perceptron.inc")}],["voyageai",{url:(0,o.getFaviconUrl)("https://www.voyageai.com")}],[l(a.ProviderName.GoogleAIStudio),{url:(0,o.getLocalIconUri)("GoogleAIStudio.svg")}],[l(a.ProviderName.Anthropic),{url:(0,o.getLocalIconUri)("Anthropic.svg")}],[l(a.ProviderName.ClaudeOnAws),{url:(0,o.getLocalIconUri)("Anthropic.svg")}],[l(a.ProviderName.Cohere),{url:(0,o.getLocalIconUri)("Cohere.png")}],[l(a.ProviderName.Deepgram),{url:(0,o.getLocalIconUri)("Deepgram.svg"),className:"dark:invert"}],[l(a.ProviderName.DeepSeek),{url:(0,o.getLocalIconUri)("DeepSeek.png")}],[l(a.ProviderName.Together),{url:(0,o.getFaviconUrl)("https://www.together.ai/")}],[l(a.ProviderName.Infermatic),{url:(0,o.getFaviconUrl)("https://infermatic.ai/")}],[l(a.ProviderName.HuggingFace),{url:(0,o.getFaviconUrl)("https://huggingface.co/")}],[l(a.ProviderName.AI21),{url:(0,o.getFaviconUrl)("https://ai21.com/")}],[l(a.ProviderName.Featherless),{url:(0,o.getFaviconUrl)("https://featherless.ai/")}],[l(a.ProviderName.Reflection),{url:(0,o.getFaviconUrl)("https://railway.app/")}],[l(a.ProviderName.Inflection),{url:(0,o.getFaviconUrl)("https://inflection.ai/")}],[l(a.ProviderName.Minimax),{url:(0,o.getFaviconUrl)("https://minimaxi.com/")}],[l(a.ProviderName.Liquid),{url:(0,o.getFaviconUrl)("https://www.liquid.ai/"),className:"dark:invert"}],[l(a.ProviderName.Inception),{url:(0,o.getLocalIconUri)("Inception.svg"),className:"dark:invert"}],[l(a.ProviderName.Relace),{url:(0,o.getFaviconUrl)("https://www.relace.ai")}],[l(a.ProviderName.Sourceful),{url:(0,o.getFaviconUrl)("https://www.sourceful.com/")}],[l(a.ProviderName.BytePlus),{url:(0,o.getFaviconUrl)("https://www.byteplus.com")}],[l(a.ProviderName.Xiaomi),{url:(0,o.getFaviconUrl)("https://www.mi.com")}],["arcee-ai",{url:(0,o.getFaviconUrl)("https://www.arcee.ai")}],["fish-audio",{url:(0,o.getFaviconUrl)("https://fish.audio/")}],["z-ai",{url:(0,o.getFaviconUrl)("https://z.ai/"),className:"dark:invert"}],["moonshotai",{url:(0,o.getLocalIconUri)("MoonshotAI.png")}],["morph",{url:(0,o.getFaviconUrl)("https://morphllm.com")}],["qwen",{url:(0,o.getLocalIconUri)("Qwen.png")}],["google",{url:(0,o.getLocalIconUri)("GoogleGemini.svg")}],["microsoft",{url:(0,o.getLocalIconUri)("Microsoft.svg")}],["nousresearch",{url:(0,o.getFaviconUrl)("https://nousresearch.com/")}],["nvidia",{url:(0,o.getFaviconUrl)("https://nvidia.com/")}],["meta-llama",{url:(0,o.getLocalIconUri)("Meta.png")}],["meta",{url:(0,o.getLocalIconUri)("Meta.png")}],["databricks",{url:(0,o.getFaviconUrl)("https://databricks.com/")}],["openrouter",{url:(0,o.getLocalIconUri)("openrouter-glyph-light.svg"),darkUrl:(0,o.getLocalIconUri)("openrouter-glyph-dark.svg")}],["mistralai",{url:(0,o.getLocalIconUri)("Mistral.png")}],["x-ai",{url:(0,o.getFaviconUrl)("https://x.ai/")}],["amazon",{url:(0,o.getFaviconUrl)("https://nova.amazon.com/")}],["aion-labs",{url:(0,o.getFaviconUrl)("https://www.aionlabs.ai/")}],["allenai",{url:(0,o.getFaviconUrl)("https://allenai.org/")}],["switchpoint",{url:(0,o.getFaviconUrl)("https://switchpoint.dev/")}],["thedrummer",{url:(0,o.getLocalIconUri)("TheDrummer.png")}],["deepcogito",{url:(0,o.getFaviconUrl)("https://www.deepcogito.com/")}],["baidu",{url:(0,o.getFaviconUrl)("https://www.baidu.com/")}],["kwaipilot",{url:(0,o.getLocalIconUri)("Kwaipilot.png")}],["kwaivgi",{url:(0,o.getLocalIconUri)("KlingAI.png")}],["black-forest-labs",{url:(0,o.getFaviconUrl)("https://bfl.ai")}],["prime-intellect",{url:(0,o.getFaviconUrl)("https://www.primeintellect.ai/")}],["primeintellect",{url:(0,o.getFaviconUrl)("https://www.primeintellect.ai/")}],["essentialai",{url:(0,o.getFaviconUrl)("https://www.essential.ai/")}],["bytedance-seed",{url:(0,o.getFaviconUrl)("https://seed.bytedance.com/")}],[l(a.ProviderName.Seed),{url:(0,o.getFaviconUrl)("https://seed.bytedance.com/")}],["writer",{url:(0,o.getFaviconUrl)("https://writer.com/"),className:"dark:invert"}],["stepfun",{url:(0,o.getFaviconUrl)("https://platform.stepfun.ai/")}],["stepfun-ai",{url:(0,o.getFaviconUrl)("https://platform.stepfun.ai/")}],[l(a.ProviderName.Recraft),{url:(0,o.getLocalIconUri)("Recraft.svg"),className:"dark:invert"}],["bytedance",{url:(0,o.getFaviconUrl)("https://seed.bytedance.com/")}],["alibaba",{url:(0,o.getFaviconUrl)("https://www.alibabacloud.com")}],["inclusionai",{url:(0,o.getFaviconUrl)("https://www.inclusion-ai.org/")}],["tencent",{url:(0,o.getLocalIconUri)("Tencent.png")}],["ibm-granite",{url:(0,o.getLocalIconUri)("IBMGranite.svg"),className:"dark:invert"}],["nex-agi",{url:(0,o.getLocalIconUri)("NexAGI.svg"),className:"dark:invert"}],["thinkingmachines",{url:(0,o.getFaviconUrl)("https://thinkingmachines.ai/")}],["sakana",{url:(0,o.getFaviconUrl)("https://sakana.ai")}],[l(a.ProviderName.HeyGen),{url:(0,o.getFaviconUrl)("https://heygen.com")}],["zyphra",{url:(0,o.getLocalIconUri)("Zyphra.svg"),className:"dark:invert"}],["sesame",{url:(0,o.getFaviconUrl)("https://www.sesame.com")}],["canopylabs",{url:(0,o.getFaviconUrl)("https://canopylabs.ai"),className:"dark:invert"}],["hexgrad",{url:(0,o.getLocalIconUri)("Hexgrad.png")}],[l(a.ProviderName.Krea),{url:(0,o.getFaviconUrl)("https://www.krea.ai")}],[l(a.ProviderName.Runway),{url:(0,o.getFaviconUrl)("https://runwayml.com")}],[l(a.ProviderName.Upstage),{url:(0,o.getFaviconUrl)("https://www.upstage.ai/")}],["stealth",{url:(0,o.getLocalIconUri)("Stealth.svg"),className:"invert-0 dark:invert"}]]),u=new Map([["microsoft/mai-",{url:(0,o.getLocalIconUri)("MAI.png")}]]),s=/^\/(?![/\\])/u,d=/^data:image\//iu;function f(e,t){var r;let n=c.get(e.toLowerCase());return t&&(!t.startsWith("data:")||d.test(t))?(r=n?.className,s.test(t)||d.test(t)?{url:t}:t.startsWith("//")?{url:(0,o.getFaviconUrl)(`https:${t}`)}:t.startsWith("http")?{url:(0,o.getFaviconUrl)(t)}:{url:(0,o.getLocalIconUri)(t),className:r}):n??{url:o.HUGGING_FACE_FAVICON_URL}}function g({permaslug:e,author:t,iconUri:r}){let n=e.toLowerCase().replace(/^~/,"");for(let[e,t]of u)if(n.startsWith(e))return t;return f(t,r)}e.s(["getAuthorIconInfo",0,f,"getModelAuthorIconInfo",0,g],630056);var m=e.i(837556);e.s(["AuthorIcon",0,function(e){let a,o,l,c,u,s,d,v=(0,r.c)(25),{author:h,permaslug:p,iconUri:b,className:w,frame:I,frameRingClassName:x,bare:y}=e,U=void 0!==I&&I,N=void 0!==y&&y;if(v[0]!==h||v[1]!==N||v[2]!==w||v[3]!==U||v[4]!==x||v[5]!==b||v[6]!==p){u=Symbol.for("react.early_return_sentinel");e:{if(o=void 0===p?f(h,b):g({permaslug:p,author:h,iconUri:b}),N){let e;v[12]!==w?(e=(0,n.cn)("flex size-6 shrink-0 items-center justify-center","[&_img]:object-contain",w),v[12]=w,v[13]=e):e=v[13],u=(0,t.jsx)("div",{className:e,children:(0,t.jsx)(i.RemoteFavicon,{className:(0,n.cn)("size-full overflow-hidden",o?.className),faviconFor:h,imgSrc:o.url,imgSrcDark:o.darkUrl,size:256})});break e}if(U){u=(0,t.jsx)(m.IconFrame,{className:w,ringClassName:x,children:(0,t.jsx)(i.RemoteFavicon,{className:(0,n.cn)("size-full",o?.className),faviconFor:h,imgSrc:o.url,imgSrcDark:o.darkUrl,size:256})});break e}v[14]!==w?(c=(0,n.cn)("flex items-center justify-center","size-6 shrink-0 rounded-full border","bg-background p-1",w),v[14]=w,v[15]=c):c=v[15],a=i.RemoteFavicon,l=(0,n.cn)("overflow-hidden rounded-full",o?.className)}v[0]=h,v[1]=N,v[2]=w,v[3]=U,v[4]=x,v[5]=b,v[6]=p,v[7]=a,v[8]=o,v[9]=l,v[10]=c,v[11]=u}else a=v[7],o=v[8],l=v[9],c=v[10],u=v[11];return u!==Symbol.for("react.early_return_sentinel")?u:(v[16]!==a||v[17]!==h||v[18]!==o.darkUrl||v[19]!==o.url||v[20]!==l?(s=(0,t.jsx)(a,{className:l,faviconFor:h,imgSrc:o.url,imgSrcDark:o.darkUrl,size:256}),v[16]=a,v[17]=h,v[18]=o.darkUrl,v[19]=o.url,v[20]=l,v[21]=s):s=v[21],v[22]!==c||v[23]!==s?(d=(0,t.jsx)("div",{className:c,children:s}),v[22]=c,v[23]=s,v[24]=d):d=v[24],d)}],557225)},837556,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(452473);e.s(["IconFrame",0,function(e){let i,a,o,l,c,u,s=(0,r.c)(15),{children:d,className:f,variant:g,decorative:m,ringClassName:v}=e,h=void 0!==m&&m||void 0;s[0]!==f?(i=(0,n.cn)("relative flex shrink-0 items-center justify-center","box-content p-px","overflow-hidden rounded-sm bg-background","size-6",f),s[0]=f,s[1]=i):i=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,n.cn)("absolute inset-px flex items-center justify-center","[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-contain","[&_img]:rounded-sm"),s[2]=a):a=s[2],s[3]!==d?(o=(0,t.jsx)("div",{className:a,children:d}),s[3]=d,s[4]=o):o=s[4];let p="app"===(void 0===g?"default":g)&&"dark:inset-px dark:ring-white";return s[5]!==v||s[6]!==p?(l=(0,n.cn)("pointer-events-none absolute inset-0 rounded-[inherit] ring-1 ring-inset ring-border/60",p,v),s[5]=v,s[6]=p,s[7]=l):l=s[7],s[8]!==l?(c=(0,t.jsx)("div",{"aria-hidden":!0,className:l}),s[8]=l,s[9]=c):c=s[9],s[10]!==h||s[11]!==i||s[12]!==o||s[13]!==c?(u=(0,t.jsxs)("div",{"aria-hidden":h,className:i,children:[o,c]}),s[10]=h,s[11]=i,s[12]=o,s[13]=c,s[14]=u):u=s[14],u}])},759024,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(704318),i=e.i(452473),a=e.i(691038),o=e.i(778084),l=e.i(648156);e.s(["InfoTooltip",0,function(e){var c;let u,s,d,f,g,m,v,h,p=(0,r.c)(33),{align:b,"aria-label":w,children:I,className:x,contentClassName:y,icon:U,side:N,sideOffset:F}=e,k=void 0===N?"bottom":N,R=(0,a.useMediaMd)();p[0]!==w||p[1]!==I?(u=w??("string"==typeof(c=I)&&c.trim().length>0?c.trim():"Information"),p[0]=w,p[1]=I,p[2]=u):u=p[2],p[3]!==x?(s=(0,i.cn)("inline-flex items-center justify-center border-0 bg-transparent p-0 align-middle text-[inherit] leading-[inherit] focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus",x),p[3]=x,p[4]=s):s=p[4],p[5]!==U?(d=U??(0,t.jsx)(n.InformationCircleIcon,{className:"inline h-4 w-4 text-muted-foreground"}),p[5]=U,p[6]=d):d=p[6],p[7]!==u||p[8]!==s||p[9]!==d?(f=(0,t.jsx)("button",{type:"button",tabIndex:-1,"aria-label":u,className:s,children:d}),p[7]=u,p[8]=s,p[9]=d,p[10]=f):f=p[10];let L=f;if(R){let e,r;return p[11]!==y?(e=(0,i.cn)("max-w-xs",y),p[11]=y,p[12]=e):e=p[12],p[13]!==b||p[14]!==I||p[15]!==k||p[16]!==F||p[17]!==e||p[18]!==L?(r=(0,t.jsx)(l.Tooltip,{align:b,className:e,content:I,side:k,sideOffset:F,children:L}),p[13]=b,p[14]=I,p[15]=k,p[16]=F,p[17]=e,p[18]=L,p[19]=r):r=p[19],r}return p[20]!==L?(g=(0,t.jsx)(o.PopoverTrigger,{render:L}),p[20]=L,p[21]=g):g=p[21],p[22]!==y?(m=(0,i.cn)("w-52 p-2 text-xs",y),p[22]=y,p[23]=m):m=p[23],p[24]!==b||p[25]!==I||p[26]!==k||p[27]!==F||p[28]!==m?(v=(0,t.jsx)(o.PopoverContent,{align:b,side:k,sideOffset:F,className:m,children:I}),p[24]=b,p[25]=I,p[26]=k,p[27]=F,p[28]=m,p[29]=v):v=p[29],p[30]!==g||p[31]!==v?(h=(0,t.jsxs)(o.Popover,{children:[g,v]}),p[30]=g,p[31]=v,p[32]=h):h=p[32],h}])},188363,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(948992),i=e.i(678998),a=e.i(270401);let o=/\.(png|jpe?g|ico|svg|webp|gif|bmp)$/i;e.s(["RemoteFavicon",0,function(e){let l,c,u,s,d,f,g,m,v,h,p,b,w=(0,r.c)(51),[I,x]=(0,a.useState)(null),[y,U]=(0,a.useState)(null),[N,F]=(0,a.useState)(!1),[k,R]=(0,a.useState)(!1),L=e.size||256,S=e.hasCuratedFaviconUrl??!1;w[0]!==N||w[1]!==k||w[2]!==e.faviconFor||w[3]!==e.imgSrc||w[4]!==L||w[5]!==S?(l=function({faviconFor:e,size:t,didCuratedIconFail:r,didSiteIconFail:n,hasCuratedFaviconUrl:a,imgSrc:l}){if(l)return{source:"given",src:l};if(a&&(e=>{try{let{pathname:t}=new URL(e);return o.test(t)}catch{return!1}})(e)&&!r)return{source:"curated",src:(0,i.getCdnImageUrl)(e)};let c=n?(0,i.getParentSiteUrl)(e):null;return null!==c?{source:"parent-site",src:(0,i.getFaviconUrl)(c,t)}:{source:"site",src:(0,i.getFaviconUrl)(e,t)}}({faviconFor:e.faviconFor,size:L,didCuratedIconFail:N,didSiteIconFail:k,hasCuratedFaviconUrl:S,imgSrc:e.imgSrc}),w[0]=N,w[1]=k,w[2]=e.faviconFor,w[3]=e.imgSrc,w[4]=L,w[5]=S,w[6]=l):l=w[6];let{source:E,src:O}=l;w[7]!==e.faviconFor||w[8]!==L||w[9]!==E?(c=t=>{"site"!==E||L<=16||t>16||null!==(0,i.getParentSiteUrl)(e.faviconFor)&&R(!0)},w[7]=e.faviconFor,w[8]=L,w[9]=E,w[10]=c):c=w[10];let T=c;w[11]!==e.faviconFor||w[12]!==E?(u=t=>{switch(E){case"curated":if((0,i.isOpenRouterHostedUrl)(e.faviconFor))return void x(t);F(!0);return;case"site":if(null===(0,i.getParentSiteUrl)(e.faviconFor))return void x(t);R(!0);return;case"given":case"parent-site":return void x(t);default:x(t)}},w[11]=e.faviconFor,w[12]=E,w[13]=u):u=w[13];let C=u;w[14]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{x(null)},w[14]=s):s=w[14],w[15]!==O?(d=[O],w[15]=O,w[16]=d):d=w[16],(0,a.useEffect)(s,d),w[17]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{F(!1),R(!1)},w[17]=f):f=w[17],w[18]!==e.faviconFor||w[19]!==e.imgSrc||w[20]!==L?(g=[e.faviconFor,e.imgSrc,L],w[18]=e.faviconFor,w[19]=e.imgSrc,w[20]=L,w[21]=g):g=w[21],(0,a.useEffect)(f,g),w[22]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{U(null)},w[22]=m):m=w[22],w[23]!==e.imgSrcDark?(v=[e.imgSrcDark],w[23]=e.imgSrcDark,w[24]=v):v=w[24],(0,a.useEffect)(m,v);let A=`Favicon for ${e.faviconFor}`;w[25]!==L||w[26]!==A?(h={width:L,height:L,alt:A,className:"h-full w-full object-cover"},w[25]=L,w[26]=A,w[27]=h):h=w[27];let P=h;if(e.imgSrcDark){let r,i,a;return w[28]!==I||w[29]!==P||w[30]!==C||w[31]!==T||w[32]!==O?(r=(0,t.jsx)("span",{className:"block h-full w-full shrink-0 dark:hidden",children:I?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.GlobeAltIcon,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...P,src:O,onError:e=>C(e.toString()),onLoad:e=>T(e.currentTarget.naturalWidth)})}),w[28]=I,w[29]=P,w[30]=C,w[31]=T,w[32]=O,w[33]=r):r=w[33],w[34]!==y||w[35]!==P||w[36]!==e.imgSrcDark?(i=(0,t.jsx)("span",{className:"hidden h-full w-full shrink-0 dark:block",children:y?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.GlobeAltIcon,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...P,src:e.imgSrcDark,onError:e=>U(e.toString())})}),w[34]=y,w[35]=P,w[36]=e.imgSrcDark,w[37]=i):i=w[37],w[38]!==e.className||w[39]!==r||w[40]!==i?(a=(0,t.jsxs)("div",{className:e.className,children:[r,i]}),w[38]=e.className,w[39]=r,w[40]=i,w[41]=a):a=w[41],a}return w[42]!==I||w[43]!==P||w[44]!==C||w[45]!==T||w[46]!==O?(p=I?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.GlobeAltIcon,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("picture",{className:"h-full w-full shrink-0",children:(0,t.jsx)("img",{...P,src:O,loading:"lazy",decoding:"async",onError:e=>C(e.toString()),onLoad:e=>T(e.currentTarget.naturalWidth)})}),w[42]=I,w[43]=P,w[44]=C,w[45]=T,w[46]=O,w[47]=p):p=w[47],w[48]!==e.className||w[49]!==p?(b=(0,t.jsx)("div",{className:e.className,children:p}),w[48]=e.className,w[49]=p,w[50]=b):b=w[50],b}])},379684,e=>{"use strict";var t=e.i(222666),r=e.i(505962),n=e.i(734293),i=e.i(452473),a=e.i(654847),o=e.i(191379),l=e.i(551365),c=e.i(971531),u=e.i(639580),s=e.i(664288);let d="text-foreground underline underline-offset-2 decoration-current/40 hover:text-accent-foreground hover:decoration-current transition-colors";e.s(["LINK_CLASSES",0,d,"TextLink",0,function(e){let f,g,m,v,h,p,b,w,I,x,y,U,N,F,k,R,L,S,E,O,T,C,A=(0,r.c)(71);A[0]!==e?({render:w,children:f,className:g,icon:m,iconPosition:I,showExternalIcon:x,prefetch:y,onFocus:v,onMouseEnter:h,onTouchStart:p,...b}=e,A[0]=e,A[1]=f,A[2]=g,A[3]=m,A[4]=v,A[5]=h,A[6]=p,A[7]=b,A[8]=w,A[9]=I,A[10]=x,A[11]=y):(f=A[1],g=A[2],m=A[3],v=A[4],h=A[5],p=A[6],b=A[7],w=A[8],I=A[9],x=A[10],y=A[11]);let P=void 0===I?"end":I,M=void 0!==x&&x,D=void 0===y?"hover":y,_=(0,u.useLocalizedHref)(b.href);A[12]!==_?(U=(0,a.getHrefString)(_),A[12]=_,A[13]=U):U=A[13],A[14]!==D||A[15]!==U?(N={prefetch:D,href:U},A[14]=D,A[15]=U,A[16]=N):N=A[16],A[17]!==v||A[18]!==h||A[19]!==p?(F={onFocus:v,onMouseEnter:h,onTouchStart:p},A[17]=v,A[18]=h,A[19]=p,A[20]=F):F=A[20];let j=(0,c.useLinkPrefetch)(N,F);A[21]!==g?(k=(0,i.cn)(d,"text-xs cursor-pointer",g),A[21]=g,A[22]=k):k=A[22];let W=k;A[23]!==m||A[24]!==M?(R=m??(M?(0,t.jsx)(o.ArrowUpRight,{className:"inline size-3 align-[-1px]"}):null),A[23]=m,A[24]=M,A[25]=R):R=A[25];let z=R;A[26]!==P||A[27]!==z?(L="start"===P&&z?(0,t.jsx)("span",{className:"mr-0.5 inline-flex",children:z}):null,A[26]=P,A[27]=z,A[28]=L):L=A[28];let V=L;A[29]!==P||A[30]!==z?(S="end"===P&&z?(0,t.jsx)("span",{className:"ml-0.5 inline-flex",children:z}):null,A[29]=P,A[30]=z,A[31]=S):S=A[31];let G=S,H=(0,a.isCrossZoneHref)(_);A[32]!==f||A[33]!==w?(E=w?(0,s.getChildContent)(w):f,A[32]=f,A[33]=w,A[34]=E):E=A[34];let $=E;A[35]!==$||A[36]!==G||A[37]!==_||A[38]!==v||A[39]!==h||A[40]!==p||A[41]!==b||A[42]!==w||A[43]!==W||A[44]!==V?(O=w?{className:W,children:(0,t.jsxs)(t.Fragment,{children:[V,$,G]}),...b,onFocus:v,onMouseEnter:h,onTouchStart:p,href:_}:{},A[35]=$,A[36]=G,A[37]=_,A[38]=v,A[39]=h,A[40]=p,A[41]=b,A[42]=w,A[43]=W,A[44]=V,A[45]=O):O=A[45],A[46]!==w||A[47]!==O?(T={render:w,defaultTagName:"a",props:O},A[46]=w,A[47]=O,A[48]=T):T=A[48];let B=(0,n.useRender)(T);if(w){if(H)throw Error(`TextLink: cross-zone href "${(0,a.getHrefString)(_)}" cannot be combined with the render prop. Use a plain element instead.`);return B}if(H){let e,r,n;if(A[49]!==b){let{href:t,replace:r,scroll:n,shallow:i,passHref:a,legacyBehavior:o,locale:l,onNavigate:c,...u}=b;e=u,A[49]=b,A[50]=e}else e=A[50];return A[51]!==_?(r=(0,a.getHrefString)(_),A[51]=_,A[52]=r):r=A[52],A[53]!==e||A[54]!==f||A[55]!==G||A[56]!==v||A[57]!==h||A[58]!==p||A[59]!==W||A[60]!==V||A[61]!==r?(n=(0,t.jsxs)("a",{href:r,className:W,onFocus:v,onMouseEnter:h,onTouchStart:p,...e,children:[V,f,G]}),A[53]=e,A[54]=f,A[55]=G,A[56]=v,A[57]=h,A[58]=p,A[59]=W,A[60]=V,A[61]=r,A[62]=n):n=A[62],n}return A[63]!==f||A[64]!==G||A[65]!==_||A[66]!==j||A[67]!==b||A[68]!==W||A[69]!==V?(C=(0,t.jsxs)(l.default,{className:W,...b,...j,href:_,children:[V,f,G]}),A[63]=f,A[64]=G,A[65]=_,A[66]=j,A[67]=b,A[68]=W,A[69]=V,A[70]=C):C=A[70],C}])},664288,e=>{"use strict";e.s(["getChildContent",0,function(e){let{props:t}=e;if("object"==typeof t&&null!==t&&"children"in t)return t.children}])},678998,e=>{"use strict";e.i(687421);let t=(e,t=256)=>`https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${e}&size=${t}`,r=new Set(["ac","co","com","edu","go","gob","gov","ltd","me","ne","net","nom","or","org","plc","sch"]),n=new Set(["amazonaws.com","azurewebsites.net","cloudfront.net","firebaseapp.com","fly.dev","github.io","gitlab.io","herokuapp.com","ngrok.app","ngrok.io","netlify.app","onrender.com","pages.dev","run.app","vercel.app","web.app","workers.dev"]),i=e=>{try{let t=new URL(e).hostname.toLowerCase().replace(/\.$/,"");return"openrouter.ai"===t||t.endsWith(".openrouter.ai")}catch{return!1}},a=t("https://huggingface.co/");e.s(["HUGGING_FACE_FAVICON_URL",0,a,"getCdnImageUrl",0,e=>i(e)?e:`/api/frontend/v1/image-proxy?url=${encodeURIComponent(e)}`,"getFaviconUrl",0,t,"getLocalIconUri",0,e=>`/images/icons/${e}`,"getParentSiteUrl",0,e=>{let t=(e=>{let t=/^[a-z][a-z\d+\-.]*:\/\//iu.test(e)?e:`https://${e}`;try{return new URL(t).hostname.toLowerCase().replace(/\.$/u,"")}catch{return null}})(e);if(null===t)return null;let i=t.split(".").slice(1);if(i.length<2||2===i.length&&2===(i[1]??"").length&&r.has(i[0]??""))return null;let a=i.join(".");return[...n].some(e=>a===e||a.endsWith(`.${e}`))?null:`https://${a}`},"isOpenRouterHostedUrl",0,i])},408784,e=>{"use strict";var t=e.i(988855),r=e.i(704355);e.s(["compareCanonicalText",0,function(e,n){return(0,t.compareDisplayText)(e,n,{locale:r.DEFAULT_LOCALE})}])}]); //# sourceMappingURL=00r1v6pnfn_i7.js.map //# chunkId=01a09e9c-6b44-7cd0-a386-1e929d837911