PageSourceSearch

https://friendli.ai/_next/static/immutable/chunks/148rex9c48jhe.js

js friendli.ai collected 2026-10-02 07:26:41 UTC 12,572 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="ee54cad7-88e3-987f-ef17-eeb960b53ffe")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,774015,e=>{"use strict";var r=e.i(459613),t=e.i(121449),s=e.i(927216),l=e.i(753549);e.i(696874);var i=e.i(512314);e.i(92968);var o=e.i(243425);e.s(["ErrorPlaceHolder",0,e=>{let a,n,d,c,u,p,m,h=(0,t.c)(20),{title:f,description:x,buttonText:b,lazyLoading:y,lazyFetch:j,showButton:g}=e,v=void 0===g||g,w=(0,l.useTranslations)();return h[0]!==w?(a=w("errors.error_placeholder"),h[0]=w,h[1]=a):a=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)("div",{className:"flex h-[56px] w-[56px] items-center justify-center rounded-sm border border-border-neutral-default bg-bg-white",children:(0,r.jsx)(i.TriangleWarningIcon,{className:"size-8 fill-fg-neutral-subtle"})}),h[2]=n):n=h[2],h[3]!==f?(d=(0,r.jsx)("p",{className:"title-xs text-center text-text-neutral-strong",children:f}),h[3]=f,h[4]=d):d=h[4],h[5]!==x?(c=!(0,s.isEmpty)(x)&&(0,r.jsx)("p",{className:"body-sm-regular text-center text-text-neutral-default",children:x}),h[5]=x,h[6]=c):c=h[6],h[7]!==d||h[8]!==c?(u=(0,r.jsxs)("div",{className:"flex flex-col gap-y-2",children:[d,c]}),h[7]=d,h[8]=c,h[9]=u):u=h[9],h[10]!==b||h[11]!==j||h[12]!==y||h[13]!==v||h[14]!==w?(p=v&&(0,r.jsx)(o.default,{type:"secondary",style:"outlined",size:"lg",disabled:y,label:b??w("shared.retry"),onClick:()=>null==j?void 0:j()}),h[10]=b,h[11]=j,h[12]=y,h[13]=v,h[14]=w,h[15]=p):p=h[15],h[16]!==a||h[17]!==u||h[18]!==p?(m=(0,r.jsxs)("article",{"aria-label":a,className:"flex flex-col items-center gap-y-4",children:[n,u,p]}),h[16]=a,h[17]=u,h[18]=p,h[19]=m):m=h[19],m}])},51859,e=>{"use strict";var r=e.i(459613),t=e.i(121449),s=e.i(774568),l=e.i(450866),i=e.i(990030),o=e.i(696592),a=e.i(116045),n=e.i(768197),d=e.i(378154),c=e.i(748916),u=e.i(753549),p=e.i(816295),m=e.i(168807),h=e.i(946201),f=e.i(304285);function x(e){return e.id}function b(e){let a,f,x,b,g,v,w,E,_,N,S,M,C,P,R,A,B=(0,t.c)(43),{model:k,isInSuite:F}=e,T=(0,u.useTranslations)(),{teamId:D,projectId:O}=(0,c.useParams)(),I=(0,c.useSearchParams)();B[0]!==I?(a=I.toString(),B[0]=I,B[1]=a):a=B[1];let z=a;B[2]!==k.id?(f=k.id.split("/"),B[2]=k.id,B[3]=f):f=B[3];let[H,L]=f;if(F&&(0,o.isNotNil)(D)&&(0,o.isNotNil)(O)){let e;B[4]!==k.id||B[5]!==O||B[6]!==D?(e=p.Paths.suite.team(D).project(O).model.detail(k.id),B[4]=k.id,B[5]=O,B[6]=D,B[7]=e):e=B[7];let r=e;x=z?`${r}?${z}`:r}else{let e;B[8]!==k.id?(e=p.Paths.model.detail(k.id),B[8]=k.id,B[9]=e):e=B[9],x=`${e}?ref=card`}let K=x;return B[10]!==k?(b=(0,r.jsx)(j,{model:k}),B[10]=k,B[11]=b):b=B[11],B[12]!==k.icon||B[13]!==k.id||B[14]!==H?(g=(0,r.jsx)("div",{className:"flex h-16 w-full items-center justify-center p-2",children:(0,o.isNotNil)(k.icon)?(0,r.jsx)(n.default,{className:"rounded-sm",width:48,height:48,src:k.icon,title:H,alt:H,unoptimized:!0}):(0,r.jsx)(i.default,{name:k.id,variant:"sunset",colors:h.BORING_AVATAR_COLORS,size:48})}),B[12]=k.icon,B[13]=k.id,B[14]=H,B[15]=g):g=B[15],B[16]!==b||B[17]!==g?(v=(0,r.jsxs)("div",{className:"flex w-full flex-col gap-1 px-5",children:[b,g]}),B[16]=b,B[17]=g,B[18]=v):v=B[18],B[19]===Symbol.for("react.memo_cache_sentinel")?(w=(0,r.jsx)("div",{className:"h-px w-full bg-website-border-light"}),B[19]=w):w=B[19],B[20]!==H||B[21]!==T?(E=H||T("shared.unknown_provider"),B[20]=H,B[21]=T,B[22]=E):E=B[22],B[23]!==E?(_=(0,r.jsx)("p",{className:"body-sm-regular line-clamp-1 break-all text-text-neutral-strong",children:E}),B[23]=E,B[24]=_):_=B[24],B[25]!==L||B[26]!==T?(N=L||T("models.unknown_model"),B[25]=L,B[26]=T,B[27]=N):N=B[27],B[28]!==N?(S=(0,r.jsx)("h3",{className:"website-subtitle-sm line-clamp-1 break-all text-website-text-default",children:N}),B[28]=N,B[29]=S):S=B[29],B[30]!==S||B[31]!==_?(M=(0,r.jsxs)("div",{className:"flex w-full flex-col gap-0.5",children:[_,S]}),B[30]=S,B[31]=_,B[32]=M):M=B[32],B[33]===Symbol.for("react.memo_cache_sentinel")?(C=(0,r.jsx)(s.RiCircleFill,{className:"size-1"}),B[33]=C):C=B[33],B[34]!==k.products?(P=(0,r.jsx)("div",{className:"flex flex-nowrap items-center gap-1 text-text-neutral-default",children:(0,r.jsx)(l.Separated,{with:C,children:[m.SupportedProductType.Serverless,m.SupportedProductType.Dedicated].filter(e=>k.products.includes(e)).map(y)})}),B[34]=k.products,B[35]=P):P=B[35],B[36]!==M||B[37]!==P?(R=(0,r.jsxs)("div",{className:"flex w-full flex-col gap-2 px-5 text-start",children:[M,P]}),B[36]=M,B[37]=P,B[38]=R):R=B[38],B[39]!==K||B[40]!==R||B[41]!==v?(A=(0,r.jsxs)(d.default,{href:K,className:"flex w-[17.5rem] min-w-[17.5rem] flex-col gap-4 roun
2ded-lg border border-website-border-light bg-website-bg-default-white py-5 hover:shadow-md",children:[v,w,R]}),B[39]=K,B[40]=R,B[41]=v,B[42]=A):A=B[42],A}function y(e){return(0,r.jsx)("p",{className:"body-xs-regular",children:e===m.SupportedProductType.Serverless?"Model APIs":(0,a.startCase)(e)},e)}function j(e){let l,i,o,a,n=(0,t.c)(12),{model:d}=e;if(d.inputModals.length>1||d.outputModals.length>1){let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e={icon:s.RiStackFill,label:"Multimodal"},n[0]=e):e=n[0],l=e}else if(d.inputModals.includes(m.DetailedHfModelModality.Video)||d.outputModals.includes(m.DetailedHfModelModality.Video)){let e;n[1]===Symbol.for("react.memo_cache_sentinel")?(e={icon:s.RiMovieFill,label:"Video"},n[1]=e):e=n[1],l=e}else if(d.inputModals.includes(m.DetailedHfModelModality.Audio)||d.outputModals.includes(m.DetailedHfModelModality.Audio)){let e;n[2]===Symbol.for("react.memo_cache_sentinel")?(e={icon:s.RiMicFill,label:"Speech & Audio"},n[2]=e):e=n[2],l=e}else if(d.inputModals.includes(m.DetailedHfModelModality.Image)||d.outputModals.includes(m.DetailedHfModelModality.Image)){let e;n[3]===Symbol.for("react.memo_cache_sentinel")?(e={icon:s.RiImageFill,label:"Computer Vision"},n[3]=e):e=n[3],l=e}else{let e;n[4]===Symbol.for("react.memo_cache_sentinel")?(e={icon:s.RiTextSnippet,label:"LLM"},n[4]=e):e=n[4],l=e}let{icon:c,label:u}=l;return n[5]!==c?(i=(0,r.jsx)(c,{className:"size-3 shrink-0"}),n[5]=c,n[6]=i):i=n[6],n[7]!==u?(o=(0,r.jsx)("span",{className:"website-caption-sm",children:u}),n[7]=u,n[8]=o):o=n[8],n[9]!==i||n[10]!==o?(a=(0,r.jsxs)("div",{className:"flex h-[1.375rem] w-fit flex-nowrap items-center gap-1 rounded-sm border border-website-border-light bg-website-bg-light px-1.5 text-website-text-default",children:[i,o]}),n[9]=i,n[10]=o,n[11]=a):a=n[11],a}e.s(["default",0,function(e){let s,l,i=(0,t.c)(5),{models:o,isInSuite:a}=e;return i[0]!==a?(s=e=>(0,r.jsx)(b,{model:e,isInSuite:a}),i[0]=a,i[1]=s):s=i[1],i[2]!==o||i[3]!==s?(l=(0,r.jsx)(f.default,{items:o,cardWidth:280,wrap:!0,getItemKeyAction:x,renderItemAction:s}),i[2]=o,i[3]=s,i[4]=l):l=i[4],l}])},83234,e=>{"use strict";var r=e.i(459613),t=e.i(121449),s=e.i(748916),l=e.i(753549),i=e.i(774015);e.s(["FeaturedModelError",0,function(){let e,o,a,n,d=(0,t.c)(10),c=(0,l.useTranslations)(),u=(0,s.useRouter)();return d[0]!==c?(e=c("shared.error"),d[0]=c,d[1]=e):e=d[1],d[2]!==c?(o=c("shared.please_check_your_connection"),d[2]=c,d[3]=o):o=d[3],d[4]!==u?(a=()=>u.refresh(),d[4]=u,d[5]=a):a=d[5],d[6]!==e||d[7]!==o||d[8]!==a?(n=(0,r.jsx)("div",{className:"rounded-md border border-border-neutral-default bg-fg-white px-4 py-6",children:(0,r.jsx)(i.ErrorPlaceHolder,{title:e,description:o,lazyFetch:a})}),d[6]=e,d[7]=o,d[8]=a,d[9]=n):n=d[9],n}])},126712,e=>{e.v(r=>Promise.all(["static/immutable/chunks/2b95ubhbjz1oj.js"].map(r=>e.l(r))).then(()=>r(124480)))},423284,e=>{"use strict";var r,t=e.i(454086);e.s(["SimulatePreloadedQuery",0,s=>(r||(r=t.lazy(()=>e.A(126712))),t.createElement(r,{...s})),"built_for_browser",0,!0])},663095,e=>{"use strict";var r=e.i(982468),t=class e extends Error{static assert(r,t){if(!r)throw new e(t)}},s=e.i(454086);let l=e=>e+1;var i=e.i(459613);let o=(0,s.createContext)(void 0),a=Object.assign(e=>{var r,t;let a,{blockOutside:n=!1,children:d}=e,[c,u]=(0,s.useReducer)(l,0),p=(0,s.useContext)(o),m=(t=r=null==p?void 0:p.resetKey,a=(0,s.useRef)(t),(0,s.useEffect)(()=>{a.current=t},[t]),a.current!==r);(0,s.useEffect)(()=>{!n&&m&&u()},[m,n]);let h=(0,s.useMemo)(()=>({reset:u,resetKey:c}),[c]);return(0,i.jsx)(o.Provider,{value:h,children:d})},{displayName:"ErrorBoundaryGroup",with:(e,t)=>Object.assign(s=>(0,i.jsx)(a,(0,r._objectSpread2)((0,r._objectSpread2)({},e),{},{children:(0,i.jsx)(t,(0,r._objectSpread2)({},s))})),{displayName:`${a.displayName}.with(${t.displayName||t.name||"Component"})`}),Consumer:e=>{let{children:r}=e;return(0,i.jsx)(i.Fragment,{children:r(n())})}}),n=()=>{let e=(0,s.useContext)(o);return t.assert(null!=e,"useErrorBoundaryGroup: this hook should be called in ErrorBoundaryGroup.props.children"),(0,s.useMemo)(()=>({reset:e.reset}),[e.reset])},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==r.length||e.some((e,t)=>!Object.is(e,r[t]))};var c=s;let u=(e,r)=>{if("boolean"==typeof e)return e;if("function"==typeof e){try{if(e===Error||e.prototype instanceof Error)return r instanceof e}catch(e){}try{if(r instanceof e)return!0}catch(e){}try{return e(r)}catch(e){}}return!1},p={isError:!1,error:null};var m=class extends c.Component{static getDerivedStateFromError(e){return{isError:!0,error:e}}componentDidUpdate(e,r){let{isError:t}=this.state,{resetKeys:s}=this.props;t&&r.isError&&d(e.resetKeys,s)&&this.reset()}componentDidCatch(e,r){var t,s;null==(t=(s=this.props).onError)||t.call(s,e,r)}render(){let{children:e,fallback:s,shouldCatch:l=!0}=this.props,{isError:o,error:a}=this.state,n=e;if(o){if(a instanceof t)throw a;if(a instanceof h)throw a.originalError;if((Array.isArray(l)?!l.some(e=>u(e,a)):!u(l,a))||void 0===s)throw a;n=(0,i.jsx)(f,{children:"function"==typeof s?(0,i.jsx)(s,{error:a,reset:this.reset}):s}
2)}return(0,i.jsx)(b.Provider,{value:(0,r._objectSpread2)((0,r._objectSpread2)({},this.state),{},{reset:this.reset}),children:n})}constructor(...e){super(...e),this.state=p,this.reset=()=>{var e,r;null==(e=(r=this.props).onReset)||e.call(r),this.setState(p)}}},h=class extends Error{constructor(e){super(),this.originalError=e}},f=class extends c.Component{componentDidCatch(e){throw e instanceof t?e:new h(e)}render(){return this.props.children}};let x=Object.assign((0,c.forwardRef)(function(e,r){var t;let{fallback:s,children:l,onError:a,onReset:n,resetKeys:d,shouldCatch:u}=e,p=null!=(t=(0,c.useContext)(o))?t:{resetKey:0},h=(0,c.useRef)(null);return(0,c.useImperativeHandle)(r,()=>({reset:()=>{var e;return null==(e=h.current)?void 0:e.reset()}})),(0,i.jsx)(m,{shouldCatch:u,fallback:s,onError:a,onReset:n,resetKeys:[p.resetKey,...d||[]],ref:h,children:l})}),{displayName:"ErrorBoundary",with:(e,t)=>Object.assign(s=>(0,i.jsx)(x,(0,r._objectSpread2)((0,r._objectSpread2)({},e),{},{children:(0,i.jsx)(t,(0,r._objectSpread2)({},s))})),{displayName:`${x.displayName}.with(${t.displayName||t.name||"Component"})`}),Consumer:e=>{let{children:r}=e;return(0,i.jsx)(i.Fragment,{children:r(y())})}}),b=Object.assign((0,c.createContext)(null),{displayName:"ErrorBoundaryContext"}),y=()=>{let[e,r]=(0,c.useState)({isError:!1,error:null});if(e.isError)throw e.error;let s=(0,c.useContext)(b);return t.assert(null!=s&&!s.isError,"useErrorBoundary: this hook should be called in ErrorBoundary.props.children"),(0,c.useMemo)(()=>({setError:e=>r({isError:!0,error:e})}),[])};e.s(["ErrorBoundary",0,x,"useErrorBoundary",0,y,"useErrorBoundaryFallbackProps",0,()=>{let e=(0,c.useContext)(b);return t.assert(null!=e&&e.isError,"useErrorBoundaryFallbackProps: this hook should be called in ErrorBoundary.props.fallback"),(0,c.useMemo)(()=>({error:e.error,reset:e.reset}),[e.error,e.reset])}],663095)},450866,e=>{"use strict";var r=e.i(454086),t=e.i(459613);e.s(["Separated",0,function(e){var s=e.children,l=e.with,i=r.Children.toArray(s).filter(r.isValidElement),o=i.length;return(0,t.jsx)(t.Fragment,{children:i.map(function(e,s){return(0,t.jsxs)(r.Fragment,{children:[e,s+1!==o?l:null]},s)})})}])},116045,e=>{"use strict";let r=/\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;e.s(["startCase",0,function(e){let t=Array.from(e.trim().match(r)??[]),s="";for(let e=0;e<t.length;e++){let r=t[e];s&&(s+=" "),s+=r[0].toUpperCase()+r.slice(1).toLowerCase()}return s}],116045)}]);
3
4//# debugId=ee54cad7-88e3-987f-ef17-eeb960b53ffe

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.