PageSourceSearch

https://xyc.ai/static/js/async/1672.98f26e0fd1.js

js xyc.ai collected 2026-10-05 14:38:11 UTC 55,732 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[1672],{75066(){},69439(){},21292(e,t,r){r.d(t,{NG:()=>p,gZ:()=>m});var a=r(72361),s=r(68413),n=r(93294),o=r(61631),i=r(81204),l=r(46775);let c=(0,s.createContext)({code:""}),d={name:"line-numbers",line(e,t){e.children.unshift({type:"element",tagName:"span",properties:{className:["inline-block","min-w-10","mr-4","text-right","select-none","text-muted-foreground"]},children:[{type:"text",value:String(t)}]})}};async function u(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,n.Yz)(e,{lang:t,themes:{light:"one-light",dark:"one-dark-pro"},transformers:r?[d]:[]})}let p=e=>{let{code:t,language:r,showLineNumbers:n=!1,className:o,children:l,...d}=e,[p,m]=(0,s.useState)("");return(0,s.useEffect)(()=>{let e=!1;return u(t,r,n).then(t=>{e||m(t)}),()=>{e=!0}},[t,r,n]),(0,a.jsx)(c.Provider,{value:{code:t},children:(0,a.jsx)("div",{className:(0,i.cn)("group bg-background text-foreground relative w-full overflow-hidden rounded-md border",o),...d,children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"[&>pre]:bg-background! [&>pre]:text-foreground! overflow-hidden [&_code]:font-mono [&_code]:text-sm [&>pre]:m-0 [&>pre]:p-4 [&>pre]:text-sm",dangerouslySetInnerHTML:{__html:p}}),l&&(0,a.jsx)("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:l})]})})})},m=e=>{let{onCopy:t,onError:r,timeout:n=2e3,children:d,className:u,...p}
1=e,[m,x]=(0,s.useState)(!1),{code:h}=(0,s.useContext)(c),f=async()=>{if("u"<typeof window||!navigator?.clipboard?.writeText)return void r?.(Error("Clipboard API not available"));try{await navigator.clipboard.writeText(h),x(!0),t?.(),setTimeout(()=>x(!1),n)}catch(e){r?.(e)}},g=m?o.Srz:o.TdU;return(0,a.jsx)(l.$,{className:(0,i.cn)("shrink-0",u),onClick:f,size:"icon",variant:"ghost",...p,children:d??(0,a.jsx)(g,{size:14})})}},38525(e,t,r){r.d(t,{d:()=>o});var a=r(72361),s=r(6702),n=r(3088);function o(e){var t;let{t:r}=(0,s.Bd)(),{group:o,label:i,ratio:l,copyable:c=!1,showDot:d,...u}=e,p=o?.trim(),m="auto"===p,x=!p,h=m||x,f=(t={labelOverride:i,groupName:p,isAutoGroup:m,isEmptyGroup:x,t:r}).labelOverride?t.labelOverride:t.isEmptyGroup?t.t("User Group"):t.isAutoGroup?t.t("Auto"):t.groupName??"";return(0,a.jsx)(n.Wh,{...u,copyable:c,label:f,showDot:d??(!h&&void 0),variant:h?"neutral":void 0,autoColor:h?void 0:p})}},98302(e,t,r){r.d(t,{h:()=>d});var a=r(72361),s=r(71114),n=r(20032),o=r(61631),i=r(17926),l=r(89518),c=r(3773);function d(e){let t=e.lang??"zh",r=(0,c.P)(t),{auth:d}=(0,n.n)(),u=!!d.user;return(0,a.jsx)("footer",{className:"footer home-footer",children:(0,a.jsxs)("div",{className:"footer-inner home-footer-inner",children:[(0,a.jsxs)("div",{className:"footer-grid home-footer-grid",children:[(0,a.jsxs)("div",{className:"footer-about home-footer-brand",children:[(0,a.jsx)("a",{href:"/",className:"home-footer-logo","aria-label":"XycAi",children:(0,a.jsx)(i.O,{className:"home-footer-logo-image"})}),(0,a.jsx)("p",{children:r.footer.statement})]}),(0,a.jsxs)("div",{className:"footer-col home-footer-column",children:[(0,a.jsxs)("span",{className:"home-footer-column-rule","aria-hidden":"true",children:[(0,a.jsx)("span",{children:"+"}),(0,a.jsx)("span",{children:"+"})]}),(0,a.jsx)("h4",{children:r.footer.business}),(0,a.jsx)("a",{href:"/#token-platform",children:r.footer.token}),(0,a.jsx)("a",{href:"/#ai-custom",children:r.footer.aiCustom}),(0,a.jsx)("a",{href:"/#gpu-compute",children:r.footer.gpu})]}),(0,a.jsxs)("div",{className:"footer-col home-footer-column",children:[(0,a.jsxs)("span",{className:"home-footer-column-rule","aria-hidden":"true",children:[(0,a.jsx)("span",{children:"+"}),(0,a.jsx)("span",{children:"+"})]}),(0,a.jsx)("h4",{children:r.footer.resources}),(0,a.jsx)(s.N_,{to:"/model-square",children:r.footer.models}),(0,a.jsx)(s.N_,{to:"/download",children:r.footer.download}),(0,a.jsxs)("a",{href:"https://docs.xyc.ai/",target:"_blank",rel:"noreferrer",children:[r.footer.docs,(0,a.jsx)(o.F1e,{"aria-hidden":"true"})]}),(0,a.jsx)("a",{href:"/news/",children:r.footer.news}),(0,a.jsx)("button",{type:"button",onClick:l.Uq,className:"footer-link-btn home-footer-button",children:r.footer.support}),u?(0,a.jsx)(s.N_,{to:"/dashboard",children:r.nav.dashboard}):(0,a.jsx)(s.N_,{to:"/sign-in",children:r.nav.login})]}),(0,a.jsxs)("div",{className:"footer-col home-footer-column",children:[(0,a.jsxs)("span",{className:"home-footer-column-rule","aria-hidden":"true",children:[(0,a.jsx)("span",{children:"+"}),(0,a.jsx)("span",{children:"+"})]}),(0,a.jsx)("h4",{children:r.footer.legal}),(0,a.jsx)(s.N_,{to:"/privacy-policy",children:r.footer.privacy}),(0,a.jsx)(s.N_,{to:"/user-agreement",children:r.footer.terms}),(0,a.jsx)(s.N_,{to:"/cookie-policy",children:r.footer.cookies})]}),(0,a.jsxs)("div",{className:"footer-col home-footer-contact",children:[(0,a.jsxs)("span",{className:"home-footer-column-rule","aria-hidden":"true",children:[(0,a.jsx)("span",{children:"+"}),(0,a.jsx)("span",{children:"+"})]}),(0,a.jsx)("h4",{children:r.footer.contact}),(0,a.jsx)("a",{href:"mailto:[email protected]",children:r.footer.sales}),(0,a.jsxs)("a",{href:"https://docs.xyc.ai/",target:"_blank",rel:"noreferrer",children:[r.footer.support,(0,a.jsx)(o.F1e,{"aria-hidden":"true"})]}),(0,a.jsxs)("div",{className:"home-footer-contact-actions",children:[(0,a.jsxs)("a",{className:"home-footer-contact-primary",href:"mailto:[email protected]",children:[r.footer.contact,(0,a.jsx)(o.F1e,{"aria-hidden":"true"})]}),(0,a.jsxs)(s.N_,{className:"home-footer-contact-secondary",to:"/sign-up",children:[r.nav.signup,(0,a.jsx)(o.F1e,{"aria-hidden":"true"})]})]})]})]}),(0,a.jsxs)("div",{className:"home-footer-company",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"XYCAI"}),(0,a.jsx)("span",{children:"1500 N Grant St Ste R, Denver, CO 80203, US"}),(0,a.jsx)("span",{children:"Unit 437, 20-28 Porter Street, Ryde, NSW 2112, Australia"})]}),(0,a.jsxs)("a",{href:"mailto:[email protected]",children:[r.footer.sales,": [email protected]"]})]}),(0,a.jsx)("div",{className:"footer-bottom home-footer-bottom",children:(0,a.jsx)("div",{className:"footer-copy",children:"© 2025–2026 XycAi INC. 保留所有权利。"})})]})})}r(75066),r(69439)},27909(e,t,r){r.d(t,{j:()=>l});var a=r(72361),s=r(99170),n=r(98302),o=r(13260);r(75066);var i=r(14317);function l(e){let{children:t,title:r}=e,{lang:l,selectLanguage:c}=(0,i.B)();return(0,s.H)(r[l]),(0,a.jsxs)("div",{className:"xyc-homepage home-marketplace-page",lang:"zh"===l?"zh-CN":"en",dir:"ltr",children:[(0,a.jsx)(o.X,{lang:l,onLangChange:c,solid:!0}),(0,a.jsx)("main",{className:"home-marketplace-main bg-background text-foreground",children:t}),(0,a.jsx)(n.h,{lang:l})]})}},4860(e,t,r){r.d(t,{R:()=>s});var a=r(64577);async function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24;return(await a.FH.get("/api/perf-metrics/summary",{params:{hours:e}})).data}},80270(e,t,r){r.d(t,{P:()=>s});let a=[[/claude|anthropic/i,"Anthropic"],[/codex|gpt|openai|chatgpt/i,"OpenAI"],[/gemini|google/i,"Gemini.Color"],[/智谱|zhipu|glm|chatglm/i,"Zhipu.Color"],[/kimi|moonshot|月之暗面/i,"Kimi"],[/minimax/i,"Minimax.Color"],[/grok|xai/i,"XAI"],[/doubao|字节|豆包/i,"Doubao.Color"],[/deepseek/i,"DeepSeek.Color"],[/qwen|通义|阿里/i,"Qwen.Color"],[/cohere/i,"Cohere.Color"],[/mistral/i,"Mistral.Color"],[/零一|万物|(^|[^a-z])yi([^a-z]|$)/i,"Yi.Color"],[/typesafe|jev/i,"local:typesafe.png"]];function s(e){for(let[t,r]of a)if(t.test(e))return r}},26423(e,t,r){r.d(t,{h:()=>n});var a=r(20032),s=r(29760);function n(){let{user:e}=(0,a.n)(e=>e.auth);return(e?.role??0)>=s.z7.ADMIN}},99170(e,t,r){r.d(t,{H:()=>n});var a=r(68413),s=r(38610);function n(e){let{systemName:t}=(0,s.R)();(0,a.useEffect)(()=>{let r=document.title;return document.title=t?`${e} - ${t}`:e,()=>{document.title=r}},[e,t])}},38417(e,t,r){r.d(t,{Y:()=>n});var a=r(72361),s=r(28277);function n(e){let t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;if(!e||"string"!=typeof e)return(0,a.jsx)("div",{className:"bg-muted text-muted-foreground flex items-center justify-center rounded-full text-xs font-medium",style:{width:n,height:n},children:"?"});let o=e.trim();if(o.startsWith("local:"))return(0,a.jsx)("img",{src:`/logos/${o.slice(6)}
1`,alt:"","aria-hidden":"true",width:n,height:n,className:"dark:invert",style:{width:n,height:n}});if(!o)return(0,a.jsx)("div",{className:"bg-muted text-muted-foreground flex items-center justify-center rounded-full text-xs font-medium",style:{width:n,height:n},children:"?"});let i=o.split("."),l=i[0],c=s[l];if(c&&i.length>1&&c[i[1]]?(t=c[i[1]],r=2):(t=s[l],r=i.length>1&&/^[A-Z]/.test(i[1])?2:1),!t||"function"!=typeof t&&"object"!=typeof t){let e=o.charAt(0).toUpperCase();return(0,a.jsx)("div",{className:"bg-muted text-muted-foreground flex items-center justify-center rounded-full text-xs font-medium",style:{width:n,height:n},children:e})}let d={};for(let e=r;e<i.length;e++){let t=i[e];if(!t)continue;let r=t.indexOf("=");if(-1===r){d[t.trim()]=!0;continue}let a=t.slice(0,r).trim(),s=t.slice(r+1).trim();d[a]=function(e){if(null==e)return!0;let t=String(e).trim();return(t.startsWith("{")&&t.endsWith("}")&&(t=t.slice(1,-1).trim()),t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'"))?t.slice(1,-1):"true"===t||"false"!==t&&(/^-?\d+(?:\.\d+)?$/.test(t)?Number(t):t)}(s)}return null==d.size&&null!=n&&(d.size=n),(0,a.jsx)(t,{...d})}},86119(e,t,r){r.d(t,{P:()=>s});var a=r(68413);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"--radius-md",t=arguments.length>1?arguments[1]:void 0,[r,s]=(0,a.useState)();return(0,a.useEffect)(()=>{s(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"--radius-md";if("u"<typeof document)return;let t=document.createElement("div");t.style.borderRadius=`var(${e})`,t.style.pointerEvents="none",t.style.position="absolute",t.style.visibility="hidden",document.documentElement.appendChild(t);let r=getComputedStyle(t).borderTopLeftRadius;t.remove();let a=Number.parseFloat(r);return Number.isFinite(a)?a:void 0}(e))},[e,t]),r}},96087(e,t,r){r.d(t,{R:()=>o});var a=r(68413),s=r(4288);let n=null;function o(){let{resolvedTheme:e}=(0,s.D)(),[t,o]=(0,a.useState)(!1),i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let t=!1;return(async()=>{o(!1),n||(n=r.e(3573).then(r.bind(r,59668)).then(e=>e.ThemeManager));let a=await n;t||(i.current=a,a.setCurrentTheme("dark"===e?"dark":"light"),o(!0))})(),()=>{t=!0}},[e]),{resolvedTheme:e,themeReady:t}}},79899(e,t,r){r.r(t),r.d(t,{component:()=>eA});var a=r(72361),s=r(20032),n=r(67267),o=r(27909),i=r(6702),l=r(20769),c=r(61631),d=r(38417),u=r(46775),p=r(68413);r(63742),r(43631),r(10998);var m=r(34126);r(5304);var x=r(81204);function h(e){let{t}=(0,i.Bd)(),r=(0,p.useRef)(null);return(0,p.useEffect)(()=>{function e(e){(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),r.current?.focus()),"Escape"===e.key&&document.activeElement===r.current&&r.current?.blur()}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]),(0,a.jsxs)("div",{className:(0,x.cn)("relative",e.className),children:[(0,a.jsx)(c.vji,{className:"text-muted-foreground/60 pointer-events-none absolute top-1/2 left-3.5 size-4 -translate-y-1/2"}),(0,a.jsx)("input",{ref:r,type:"text",placeholder:e.placeholder||t("Search models..."),value:e.value,onChange:t=>e.onChange(t.target.value),className:(0,x.cn)("placeholder:text-muted-foreground/50","h-10 w-full pr-16 pl-10 text-sm transition-all outline-none",e.bare?"border-0 bg-transparent":(0,x.cn)("border-border/60 bg-background rounded-lg border","hover:border-border","focus:border-primary/50 focus:ring-primary/20 focus:ring-2")),"aria-label":t("Search models")}),(0,a.jsx)("div",{className:"absolute top-1/2 right-2.5 flex -translate-y-1/2 items-center gap-1",children:e.value?(0,a.jsx)(u.$,{variant:"ghost",size:"icon",onClick:e.onClear,className:"text-muted-foreground/60 hover:text-foreground size-7","aria-label":t("Clear search"),children:(0,a.jsx)(c.X,{className:"size-4"})}):(0,a.jsx)("kbd",{className:"bg-muted text-muted-foreground pointer-events-none hidden rounded border px-1.5 py-0.5 font-mono text-[10px] sm:inline-block",children:"⌘K"})})]})}r(52606),r(3088),r(52946),r(97723);var f=r(64577);r(4860);var g=r(18434);function b(e){let t=e.viewMode??"card";return(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(g.E,{className:"h-8 w-40"}),(0,a.jsx)(g.E,{className:"h-4 w-52"})]}),(0,a.jsx)(g.E,{className:"h-10 w-full rounded-lg"}),(0,a.jsx)(v,{}),"table"===t?(0,a.jsx)(j,{}):(0,a.jsx)(y,{})]})}function y(){return(0,a.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:Array.from({length:9}).map((e,t)=>(0,a.jsxs)("div",{className:"rounded-xl border p-5",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-start gap-3",children:[(0,a.jsx)(g.E,{className:"size-10 shrink-0 rounded-xl"}),(0,a.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,a.jsx)(g.E,{className:"h-5 w-36"}),(0,a.jsx)(g.E,{className:"h-3.5 w-48"})]})]}),(0,a.jsx)(g.E,{className:"h-8 w-16 rounded-md"})]}),(0,a.jsxs)("div",{className:"mt-4 space-y-2",children:[(0,a.jsx)(g.E,{className:"h-3.5 w-full"}),(0,a.jsx)(g.E,{className:"h-3.5 w-4/5"})]}),(0,a.jsxs)("div",{className:"mt-4 flex items-center gap-2",children:[(0,a.jsx)(g.E,{className:"h-4 w-24"}),(0,a.jsx)(g.E,{className:"h-4 w-16"})]}),(0,a.jsxs)("div",{className:"mt-2 flex items-center gap-3",children:[(0,a.jsx)(g.E,{className:"h-3.5 w-14"}),(0,a.jsx)(g.E,{className:"h-3.5 w-14"}),(0,a.jsx)(g.E,{className:"h-3.5 w-8"})]})]},t))})}function v(){return(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"flex flex-1 flex-wrap items-center gap-2",children:[80,90,75,85,70].map((e,t)=>(0,a.jsx)(g.E,{className:"h-8 rounded-lg",style:{width:`${e}px`}},t))}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(g.E,{className:"h-8 w-24 rounded-lg"}),(0,a.jsx)(g.E,{className:"h-8 w-20 rounded-lg"}),(0,a.jsx)(g.E,{className:"h-8 w-24"}),(0,a.jsx)(g.E,{className:"h-8 w-20 rounded-lg"})]})]}),(0,a.jsx)(g.E,{className:"h-5 w-24"})]})}function j(){let e=[{width:200},{width:100},{width:100},{width:100},{width:80},{width:100}];return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg border",children:[(0,a.jsx)("div",{className:"bg-muted/30 border-b px-4 py-3",children:(0,a.jsx)("div",{className:"flex items-center gap-4",children:e.map((e,t)=>(0,a.jsx)(g.E,{className:"h-4",style:{width:`${e.width}px`}},t))})}),Array.from({length:10}).map((t,r)=>(0,a.jsx)("div",{className:"flex items-center gap-4 border-b px-4 py-3 last:border-b-0",children:e.map((e,t)=>(0,a.jsx)(g.E,{className:"h-5",style:{width:`${e.width}px`}},t))},r))]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(g.E,{className:"h-5 w-32"}),(0,a.jsx)("div",{className:"flex items-center gap-2",children:Array.from({length:4}).map((e,t)=>(0,a.jsx)(g.E,{className:"size-8"},t))})]})]})}r(34151),r(92170);var N=r(53540),w=r(30464);async function k(){return(await f.FH.get("/api/pricing")).data}async function _(){return(await f.FH.get("/api/model-probe/status")).data}async function C(){return(await f.FH.get("/api/cache-hit/status")).data}async function P(e,t){await f.FH.put("/api/models/description",{model_name:e,description:t})}new Intl.NumberFormat(void 0,{maximumFractionDigits:1});var S=r(76318);r(32999),r(21292),r(38525),r(86119),r(96087),r(50665),r(58254),r(23336),r(72202);var M=r(3773);let I={"gpt-image-2.5-flare":{primary:5,secondary:.499},"gpt-image-2.5-sunburst":{primary:5,secondary:.498},"codex-auto-review":{primary:5,secondary:.497}};function z(e){let t=e.model_name.toLowerCase(),r=I[t];
1if(r)return{dated:!1,...r};let a=t.lastIndexOf("/");a>=0&&(t=t.slice(a+1));let s=t.match(/(20\d{2})-?(\d{2})-?(\d{2})/);if(s)return{dated:!0,primary:Number(s[1]+s[2]+s[3]),secondary:0};let n=(t=t.replace(/\d+(?:\.\d+)?[bkm]\b/g,"")).match(/(\d+)(?:[.-](\d+))?/);return{dated:!1,primary:n&&Number(n[1])||0,secondary:n?.[2]?Number(`0.${n[2]}`):0}}function A(e,t){let r=2*e.model_ratio;switch(t){case"input":return r;case"output":return r*e.completion_ratio;case"cache":return null!=e.cache_ratio?r*Number(e.cache_ratio):null;case"create_cache":return null!=e.create_cache_ratio?r*Number(e.create_cache_ratio):null}}function E(e){return e>=1?e.toFixed(2):String(Math.round(1e4*e)/1e4)}let D={智谱:"Zhipu AI",字节跳动:"ByteDance",零一万物:"01.AI",其他:"Other"},R="Discounted official-price workflows for primary non-coding and tool-processing workloads.",T={"claude-edu":{category:"Anthropic",label:"Claude Learning",desc:"0.7x ratio, discounted Pro & Max mixed account pool (all third-party Antigravity excluded), affordable pricing, no client restrictions, and a 1M-context option on XycAi. Recommended for everyday learning."},"claude-eco":{category:"Anthropic",label:"Claude Economy",desc:"1.3x ratio, full-capability Pro & Max mixed account pool (all third-party Antigravity excluded), affordable pricing, no client restrictions, and a 1M-context option on XycAi. Recommended for everyday work."},"claude-ent":{category:"Anthropic",label:"Claude Enterprise",desc:"2.7x ratio, full-capability official parent accounts with no restrictions, long context across all models, image support, and search. Built as the primary production tier for large projects and tested on tasks running for over 100 hours and frontend workloads spanning 260,000 files."},"claude-flow":{category:"Anthropic",label:"Claude Workflow",desc:R},"gpt-eco":{category:"OpenAI",label:"GPT Economy",desc:"0.5x ratio, discounted Plus & Pro mixed account pool (all third-party Antigravity excluded) at an affordable price. Restricted to Codex clients (Codex app and Codex CLI); image generation is unavailable."},"gpt-ent":{category:"OpenAI",label:"GPT Enterprise",desc:"1x ratio, full-capability official parent accounts with no restrictions, long context across all models, image support, and search. Built as the primary production tier for large projects."},"gpt-img":{category:"OpenAI",label:"GPT Image Generation",desc:"1x ratio."},"gpt-flow":{category:"OpenAI",label:"GPT Workflow",desc:R},"glm-ent":{category:"Zhipu AI",label:"GLM Enterprise",desc:"A leading Chinese model with no queue."},"glm-flow":{category:"Zhipu AI",label:"GLM Workflow",desc:R},"gemini-flow":{category:"Gemini",label:"Gemini Workflow",desc:R},"deepseek-flow":{category:"DeepSeek",label:"DeepSeek Workflow",desc:R},"grok-flow":{category:"Grok",label:"Grok Workflow",desc:R},"doubao-flow":{category:"ByteDance",label:"Doubao Workflow",desc:R},"cohere-flow":{category:"Cohere",label:"Cohere Workflow",desc:R},"mistral-flow":{category:"Mistral",label:"Mistral Workflow",desc:R},"yi-flow":{category:"01.AI",label:"01.AI Workflow",desc:R},"misc-flow":{category:"Other",label:"Other Workflow",desc:R}},$={zh:{modelCountSuffix:"个模型",promoBadge:"补贴",welfareBadge:"福利",searchPlaceholder:"搜索模型名称、系列或分组…",noPricingGroups:"暂无分组,请先在后台配置分组。",priceList:"价格列表",groupDescription:"分组介绍:",imageDiscount:"1-5折",fixedImagePricing:"按照固定的人民币单张计费,最高节省 90%",officialPriceAt:"官方价的",equivalentRatio:"相当于",inputPrice:"输入价格",outputPrice:"输出价格",cacheCreation:"缓存创建",cacheRead:"缓存读取",image:"图",perImage:"/å¼ ",perSecond:"/秒",videoDurationNote:"默认 8 秒,可选 1–15 秒",official:"官方",officialPrice:"官方价格",save:"省",copyModelId:"复制模型 ID",noModelsInGroup:"该分组下暂无模型",modelId:"模型 ID",uptime:"在线率",savings:"节省幅度",noData:"无数据",successful:"次成功",noProbeData:"暂无探测数据",cacheHitRate:"全站缓存命中率",cacheHitTooltip:"请求命中率(按条数)/每小时刷新",poolAvailability:"公共号池可用率",poolAvailabilityTooltip:"每20分钟号池桶状态表",promo:{privacyCommitment:"我们不会出售您的数据,也不会将您的对话用于模型训练、不做日志储存。",privacyPolicy:"《隐私政策》",qualityPledge:"模型降智 · 假一赔十",restrictionTitle:"重要提示:",restrictionNotice:"部分模型未获准在受限制地区或国家使用,具体以相关供应商条款及当地法律为准,境外版地址请访问:",billingTitle:"由于合规要求,本站采用美元计费,全模型长上下文工具不另外计费(只计 Token)",enterpriseModelsPrefix:"所有企业版、工具模型均为",fullMaxAccounts:"满血 MAX 账号",productivityBridge:"、我们卖的是生äº
1§åŠ›å·¥å…·ã€",notProxyPlusAccounts:"非反代降智 Plus 账号",accountOriginAndRefundPrefix:"(账号均由星道智链子公司 XycAi Inc. 等美国地区账号开出)。",refund:"",enterpriseRouteTitle:"企业专属线路",enterpriseRoutePrefix:"大客户可申请",dedicatedRoute:"独立 CDN 的 CN2 双向回程线路",enterpriseRouteSuffix:",无需挤公共 API 端点。"}},en:{modelCountSuffix:"models",promoBadge:"Subsidy",welfareBadge:"Bonus",searchPlaceholder:"Search model names, families, or groups...",noPricingGroups:"No pricing groups are currently available.",priceList:"Price List",groupDescription:"Group details:",imageDiscount:"46%-90% off",fixedImagePricing:"Fixed RMB pricing per image, with savings up to 90%",officialPriceAt:"the official price",equivalentRatio:"equivalent to",inputPrice:"Input Price",outputPrice:"Output Price",cacheCreation:"Cache Creation",cacheRead:"Cache Read",image:" image",perImage:"/image",perSecond:"/sec",videoDurationNote:"Default 8s, adjustable 1–15s",official:"Official",officialPrice:"Official price",save:"Save",copyModelId:"Copy model ID",noModelsInGroup:"No models are currently available in this group.",modelId:"Model ID",uptime:"Uptime",savings:"Savings",noData:"No data",successful:"successful",noProbeData:"No probe data",cacheHitRate:"Cache hit rate",cacheHitTooltip:"Request hit rate (by count) / refreshed hourly",poolAvailability:"Pool availability",poolAvailabilityTooltip:"Account pool bucket status, probed every 20 minutes",promo:{privacyCommitment:"We do not sell your data, use your conversations for model training, or retain conversation logs.",privacyPolicy:"Privacy Policy",qualityPledge:"No degraded models - 10x compensation if verified",restrictionTitle:"Important notice: ",restrictionNotice:"Some models are not authorized for use in restricted regions or countries. Refer to the relevant provider terms and local laws. For the international version, visit: ",billingTitle:"To meet compliance requirements, billing is in USD. Long-context tools are included for every model; only Token usage is billed.",enterpriseModelsPrefix:"All enterprise and tool models use ",fullMaxAccounts:"full-capability MAX accounts",productivityBridge:". We provide productivity tools, not ",notProxyPlusAccounts:"degraded Plus accounts behind reverse proxies",accountOriginAndRefundPrefix:". Accounts are issued in the United States by XycAi Inc. and other Xingdao Zhilian subsidiaries.",refund:"",enterpriseRouteTitle:"Dedicated enterprise routes",enterpriseRoutePrefix:"High-volume customers can request ",dedicatedRoute:"a dedicated CDN with bidirectional CN2 routing",enterpriseRouteSuffix:" instead of sharing the public API endpoint."}}};function L(e,t){return"zh"===t?e:D[e]??e}var W=r(80270);let G=/claude|anthropic|codex|gpt|openai|chatgpt|智谱|zhipu|glm|chatglm|grok|xai|kimi|moonshot|月之暗面|deepseek|minimax/i,F=/gemini|typesafe/i;function O(e){let{active:t,onClick:r,icon:s,label:n,count:o,badge:i}=e;return(0,a.jsxs)("button",{type:"button",onClick:r,className:(0,x.cn)("relative flex shrink-0 items-center gap-2 rounded-md border px-3.5 py-2 text-sm font-medium transition-colors duration-150",t?"border-primary/50 bg-primary/[0.06] text-primary shadow-[inset_2px_0_0_0_var(--color-primary)]":"border-border/70 text-foreground hover:bg-surface-hover hover:border-border"),children:[i&&(0,a.jsx)("span",{"aria-hidden":"true",className:(0,x.cn)("pointer-events-none absolute -top-1.5 -right-1 z-10 flex h-4 min-w-8 items-center justify-center rounded-full px-1 text-[10px] leading-none font-semibold text-white shadow-sm","welfare"===i.kind?"bg-emerald-600":"bg-orange-500"),children:i.label}),s&&(0,a.jsx)("span",{className:"flex size-4.5 items-center justify-center",children:(0,d.Y)(s,18)}),n,(0,a.jsx)("span",{className:(0,x.cn)("text-[13px]",t?"text-primary/70":"text-text-tertiary"),children:o})]})}function q(e){let{categories:t,totalCount:r,selected:s,onSelect:n,search:o,onSearchChange:i,language:l}=e;if(0===t.length)return null;let c=$[l];return(0,a.jsxs)("div",{className:"border-border/70 bg-card rounded-lg rounded-tr-[14px] border [corner-shape:rou
1nd_bevel_round_round]",children:[(0,a.jsxs)("div",{className:"flex items-center gap-0 px-5 py-4",children:[(0,a.jsxs)("span",{className:"text-foreground border-border/70 shrink-0 border-r pr-4 text-[15px]",children:[(0,a.jsx)("strong",{className:"text-primary font-semibold",children:r})," ",c.modelCountSuffix]}),(0,a.jsx)(h,{value:o,onChange:i,onClear:()=>i(""),placeholder:c.searchPlaceholder,className:"min-w-0 flex-1 pl-1",bare:!0})]}),(0,a.jsx)("div",{className:"border-border/60 border-t"}),(0,a.jsx)("div",{className:"persistent-scrollbar flex gap-2 overflow-x-auto px-5 py-3",children:t.map(e=>(0,a.jsx)(O,{active:e.name===s,onClick:()=>n(e.name),icon:(0,W.P)(e.name),label:e.label,count:e.count,badge:G.test(e.name)?{label:c.promoBadge,kind:"promo"}:F.test(e.name)?{label:c.welfareBadge,kind:"welfare"}:void 0},e.name))})]})}var B=r(26423),K=r(98532),X=r(48196);function H(e){let{data:t,language:r}=e,s=$[r];return(0,a.jsxs)("div",{className:"mt-1 flex h-3.5 items-center gap-1.5",children:[(0,a.jsx)("span",{className:"text-text-tertiary text-[10px] leading-none whitespace-nowrap",children:s.cacheHitRate}),(0,a.jsx)("div",{className:"flex items-end gap-px",style:{height:10},children:t.buckets.map((e,t)=>(0,a.jsx)("div",{className:(0,x.cn)("w-[3px] rounded-[1px]",0===e.total?"bg-muted-foreground/20":0===e.hit?"bg-muted-foreground/40":"bg-indigo-500 dark:bg-indigo-400"),style:{height:0===e.total?2:2+Math.round(e.hit/e.total*8)}},e.ts>0?e.ts:`empty-${t}`))}),(0,a.jsx)("span",{className:"text-text-secondary font-mono text-[10px] leading-none font-semibold tabular-nums",children:t.rate_24h<0?"—":`${t.rate_24h.toFixed(1)}%`}),(0,a.jsxs)(m.m_,{children:[(0,a.jsx)(m.k$,{render:(0,a.jsx)(c.mNh,{className:"text-icon hover:text-foreground size-3 shrink-0 cursor-help transition-colors"})}),(0,a.jsx)(m.ZI,{side:"top",className:"text-xs",children:s.cacheHitTooltip})]})]})}function U(e){let{data:t,language:r}=e,s=$[r];return(0,a.jsxs)("div",{className:"mt-1 flex h-3.5 items-center gap-1.5",children:[(0,a.jsx)("span",{className:"text-text-tertiary text-[10px] leading-none whitespace-nowrap",children:s.poolAvailability}),(0,a.jsx)("div",{className:"flex items-end gap-px",style:{height:10},children:(function(e){let t=new Map;for(let r of e){let e=3600*Math.floor(r.ts/3600),a=t.get(e);a?(a.total+=r.total,a.success+=r.success):t.set(e,{ts:e,total:r.total,success:r.success})}return[...t.values()].sort((e,t)=>e.ts-t.ts)})(t.buckets).map((e,t)=>{let r,s,n,o;return(0,a.jsx)("div",{className:(0,x.cn)("w-[3px] rounded-[1px] hover:bg-black dark:hover:bg-white",0===e.total?"bg-muted-foreground/20":0===e.success?"bg-red-600 dark:bg-red-500":e.success<e.total?"bg-red-300 dark:bg-red-400/60":"bg-emerald-500 dark:bg-emerald-400"),style:{height:0===e.total?2:2+Math.round(e.success/e.total*8)},title:(r=new Date(1e3*e.ts),s=new Date((e.ts+3600)*1e3),n=e=>String(e).padStart(2,"0"),o=`${n(r.getMonth()+1)}-${n(r.getDate())} ${n(r.getHours())}:00–${n(s.getHours())}:00`,0===e.total?o:`${o} \xb7 ${(e.success/e.total*100).toFixed(0)}%`)},e.ts>0?e.ts:`empty-${t}`)})}),(0,a.jsx)("span",{className:"text-text-secondary font-mono text-[10px] leading-none font-semibold tabular-nums",children:t.rate_24h<0?"—":`${t.rate_24h.toFixed(1)}%`}),(0,a.jsxs)(m.m_,{children:[(0,a.jsx)(m.k$,{render:(0,a.jsx)(c.mNh,{className:"text-icon hover:text-foreground size-3 shrink-0 cursor-help transition-colors"})}),(0,a.jsx)(m.ZI,{side:"top",className:"text-xs",children:s.poolAvailabilityTooltip})]})]})}function Z(e){return e.model_name.toLowerCase().startsWith("gpt-image-2")}Array.from({length:48},()=>({ts:0,total:0,success:0}));let V=[{resolution:"1K",price:"0.15",official:"0.28",savings:46},{resolution:"2K",price:"0.25",official:"1.1~1.2",savings:77},{resolution:"4K",price:"0.45",official:"4.3~5.0",savings:90}];function Y(e){let{language:t}=e,r=$[t],s="zh"===t?"¥":"CN¥";return(0,a.jsx)("div",{className:"flex flex-col gap-1.5",children:V.map(e=>(0,a.jsxs)("div",{className:"flex items-baseline gap-2 font-mono text-xs tabular-nums",children:[(0,a.jsxs)("span",{className:"text-foreground font-semibold whitespace-nowrap",children:[e.resolution,r.image," ",s,e.price,r.perImage]}),(0,a.jsxs)("span",{className:"text-text-tertiary text-[11px] whitespace-nowrap",children:[r.official," ",(0,a.jsxs)("span",{className:"line-through",children:[s,e.official]})]}),(0,a.jsxs)("span",{className:"shrink-0 rounded bg-emerald-50 px-1 py-px text-[10px] font-medium text-emerald-700 dark:bg-emerald-500/15 dark:text-emerald-300",children:[r.save,"en"===t&&" ",e.savings,"%"]})]},e.resolution))})}let Q={"grok-imagine-image-quality":[{spec:"1K",price:"0.18",unit:"perImage",isImage:!0},{spec:"2K",price:"0.25",unit:"perImage",isImage:!0}],"grok-imagine-image":[{spec:"1K",price:"0.14",unit:"perImage",isImage:!0},{spec:"2K",price:"0.19",unit:"perImage",isImage:!0}],"grok-imagine-video":[{spec:"480p",price:"0.11",unit:"perSecond",isImage:!1},{spec:"720p",price:"0.15",unit:"perSecond",isImage:!1}],"grok-imagine-video-1.5":[{spec:"480p",price:"0.17",unit:"perSecond",isImage:!1},{spec:"720p",price:"0.30",unit:"perSecond",isImage:!1},{spec:"1080p",price:"0.53",unit:"perSecond",isImage:!1}]};function J(e){return Q[e.model_name.toLowerCase()]??null}let ee={"deepseek-v4-flash":{input:{offPeak:1,peak:2},output:{offPeak:4,peak:8},cache:{offPeak:.02,peak:.04}},"deepseek-v4-pro":{input:{offPeak:9,peak:9},output:{offPeak:27,peak:27},cache:{offPeak:.3,peak:.3}},"deepseek-flash":{input:{offPeak:1,peak:2},output:{offPeak:4,peak:8},cache:{offPeak:.02,peak:.04}}};function et(e){return ee[e.model_name.toLowerCase()]??null}function er(e){let t=et(e);return!!t&&Object.values(t).every(e=>e&&e.offPeak===e.peak)}function ea(e,t,r){let a=et(e),s=a?.[t];return s?"peak"===r?s.peak:s.offPeak:null}function es(e){let{tiers:t,language:r}=e,s=$[r],n="zh"===r?"¥":"CN¥",o=t.some(e=>"perSecond"===e.unit);return(0,a.jsxs)("div",{className:"flex flex-col gap-1.5",children:[t.map(e=>(0,a.jsx)("div",{className:"flex items-baseline gap-2 font-mono text-xs tabular-nums",children:(0,a.jsxs)("span",{className:"text-foreground font-semibold whitespace-nowrap",children:[e.spec,e.isImage?s.image:""," ",n,e.price,"perImage"===e.unit?s.perImage:s.perSecond]})},e.spec)),o&&(0,a.jsx)("span",{className:"text-text-tertiary text-[11px]",children:s.videoDurationNote})]})}function en(e){let{text:t,ariaLabel:r}=e,[s,n]=(0,p.useState)(!1);return(0,a.jsx)("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(t),n(!0),window.setTimeout(()=>n(!1),1200)},className:"text-icon hover:text-foreground shrink-0 transition-colors","aria-label":r,children:s?(0,a.jsx)(c.Jlk,{className:"size-3.5 text-emerald-600"}):(0,a.jsx)(c.QRo,{className:"size-3.5"})})}var eo=r(35770);let ei=["t0","t1","t2","v1"],el={t0:{zh:"普通",en:"T0"},t1:{zh:"T1",en:"T1"},t2:{zh:"T2",en:"T2"},v1:{zh:"V1",en:"V1"},v2:{zh:"V2",en:"V2"}};var ec=r(96962),ed=r(20598),eu=r(28769);function ep(e){let{modelName:t,description:r,isAdmin:s,language:n}=e,o=(0,ec.jE)(),[i,l]=(0,p.useState)(!1),[c,d]=(0,p.useState)(""),[u,m]=(0,p.useState)(!1),x=(0,p.useRef)(null);(0,p.useEffect)(()=>{i&&x.current?.focus()},[i]);let h=()=>{l(!1),d("")},f=async()=>{let e=c.trim();if(e===r.trim())return void h();m(!0);try{await P(t,e),ed.oR.success("zh"===n?"备注已更新":"Notes updated"),l(!1),o.invalidateQueries({queryKey:["pricing"]})}catch(e){ed.oR.error(e instanceof Error&&e.message?e.message:"zh"===n?"备注保存失败":"Failed to save notes")}finally{m(!1)}};return i?(0,a.jsx)(eu.T,{ref:x,value:c,maxLength:500,disabled:u,onChange:e=>d(e.target.value),onBlur:()=>void f(),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),f()),"Escape"===e.key&&(e.preventDefault(),h())},className:"min-h-[96px] w-[420px] max-w-full text-[12px] leading-relaxed",placeholder:"zh"===n?"Enter 保存 · Shift+Enter 换行 · Esc 取消":"Enter to save · Shift+Enter newline · Esc to cancel"}):(0,a.jsx)("p",{onDoubleClick:()=>{s&&!u&&(d(r),l(!0))},title:s?"zh"===n?"双击编辑备注":"Double-click to edit":void 0,className:s?"text-text-secondary hover:bg-surface-hover w-max min-w-[160px] cursor-text rounded px-1 py-0.5 text-[12px] leading-relaxed transition-colors":"text-text-secondary w-max min-w-[160px] text-[12px] leading-relaxed",children:r?r.split("\n").map((e,t)=>{var r;let s=/^#+\s*/.exec(e),n=s?e.slice(s[0].length):e;return(0,a.jsx)("span",{className:s?"text-foreground block font-semibold whitespace-pre":"block whitespace-pre",children:(r=String(t),n.split(/(\*[^*\n]+\*)/g).map((e,t)=>e.length>2&&e.startsWith("*")&&e.endsWith("*")?(0,a.jsx)("span",{className:"text-sky-600 dark:text-sky-400",children:e.slice(1,-1)},`${r}-${t}`):e))},t)}):"—"})}let em=["input","output","create_cache","cache"],ex={off_peak:{zh:"空闲",en:"Off-peak"},peak:{zh:"高峰",en:"Peak"}},eh={zh:"上下文阶梯定价",en:"Context tier pricing"},ef={zh:{title:"按单次请求的上下文长度分档计价:",body:"请求超过272K时整单按高档计:输入x2倍、输出x1.5倍、缓存X2倍,计费"},en:{title:"Tiered pricing by per-request context length:",body:"When a request exceeds 272K context, the entire request is billed at the higher tier: input x2, output x1.5, cache x2."}},eg=["cyan","violet","coral","amber"],eb=(e,t,r)=>
1Math.min(Math.max(e,t),r);function ey(e){let{viewportRef:t,viewportId:r,language:s}=e,n=(0,p.useRef)(null),o=(0,p.useRef)(null),[i,l]=(0,p.useState)(!1),[c,d]=(0,p.useState)({clientWidth:0,scrollLeft:0,scrollWidth:0}),u=(0,p.useCallback)(()=>{let e=t.current;if(!e)return;let r=e.scrollWidth,a=e.clientWidth,s=Math.max(r-a,0),n=eb(e.scrollLeft,0,s);d(e=>e.scrollWidth===r&&e.clientWidth===a&&e.scrollLeft===n?e:{clientWidth:a,scrollLeft:n,scrollWidth:r})},[t]);(0,p.useEffect)(()=>{let e=t.current;if(!e)return;u(),e.addEventListener("scroll",u,{passive:!0});let r="u">typeof ResizeObserver?new ResizeObserver(u):null;return r?.observe(e),e.firstElementChild&&r?.observe(e.firstElementChild),()=>{e.removeEventListener("scroll",u),r?.disconnect()}},[u,t]);let m=Math.max(c.scrollWidth-c.clientWidth,0),h=m>0,f=c.scrollWidth>0?eb(c.clientWidth/c.scrollWidth*100,18,100):100,g=h?c.scrollLeft/m*(100-f):0,b=(0,p.useCallback)(e=>{let r=t.current;r&&h&&r.scrollTo({left:eb(e,0,1)*m,behavior:"smooth"})},[h,m,t]),y=e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),o.current=null,l(!1)};return(0,a.jsx)("div",{className:"pricing-table-scrollbar",children:(0,a.jsx)("div",{ref:n,id:`${r}-scrollbar`,className:(0,x.cn)("pricing-table-scrollbar__track",i&&"pricing-table-scrollbar__track--dragging"),role:"scrollbar",tabIndex:0,"aria-controls":r,"aria-label":"zh"===s?"横向滚动模型价格表":"Scroll the model pricing table horizontally","aria-orientation":"horizontal","aria-valuemin":0,"aria-valuemax":Math.round(m),"aria-valuenow":Math.round(c.scrollLeft),"aria-disabled":!h,onPointerDown:e=>{if(!h||!n.current)return;let t=n.current.getBoundingClientRect();if(t.width<=0)return;let r=eb((e.clientX-t.left)/t.width,0,1),a=f/100;b(a>=1?0:(r-a/2)/(1-a))},onKeyDown:e=>{h&&("ArrowLeft"===e.key?(e.preventDefault(),b(c.scrollLeft/m-.1)):"ArrowRight"===e.key?(e.preventDefault(),b(c.scrollLeft/m+.1)):"Home"===e.key?(e.preventDefault(),b(0)):"End"===e.key&&(e.preventDefault(),b(1)))},children:(0,a.jsxs)("div",{className:(0,x.cn)("pricing-table-scrollbar__thumb",i&&"pricing-table-scrollbar__thumb--dragging"),style:{left:`${g}%`,width:`${f}%`},onPointerDown:e=>{h&&(e.preventDefault(),e.stopPropagation(),e.currentTarget.setPointerCapture(e.pointerId),o.current={startX:e.clientX,startScrollLeft:c.scrollLeft},l(!0))},onPointerMove:e=>{let r=o.current,a=t.current,s=n.current;if(!r||!a||!s)return;let i=s.getBoundingClientRect().width*(1-f/100);i<=0||(a.scrollLeft=eb(r.startScrollLeft+(e.clientX-r.startX)/i*m,0,m))},onPointerUp:y,onPointerCancel:y,children:[(0,a.jsx)("span",{className:"pricing-table-scrollbar__blue","aria-hidden":"true"}),(0,a.jsx)("span",{className:"pricing-table-scrollbar__arrows","aria-hidden":"true",children:eg.map(e=>(0,a.jsx)("span",{className:`pricing-table-scrollbar__arrow pricing-table-scrollbar__arrow--${e}`},e))})]})})})}function ev(e,t){return t.model_discounts?.[e.model_name]??null}function ej(e,t,r,a){let s=e[t.key];if(a){let e=ev(a,t);if(null!=e){if("t0"!==r){let e=s?.[`${r}@${a.model_name}`];if(null!=e)return e}return e}}return"t0"===r?t.discount:s?.[r]??t.discount}function eN(e,t,r,a,s){let n=e[r.key],o=ev(t,r);if(null!=o){if("t0"!==a){let e=n?.[`${a}@${t.model_name}`];if(null!=e)return e}return o}let i=r.time_discounts?.[s]??r.discount;return"t0"===a?i:n?.[`${a}_${s}`]??i}function ew(e){let{language:t}=e;return(0,a.jsx)("span",{className:"inline-flex items-center rounded bg-emerald-50 px-1.5 py-0.5 text-[12px] font-medium text-emerald-700 dark:bg-emerald-500/15 dark:text-emerald-300",children:"zh"===t?"免费":"Free"})}function ek(e){let{officialUsd:t,discountOf:r,rate:s,symbol:n,expanded:o,currentTier:i}=e,l=o?ei:[i];return(0,a.jsx)("div",{className:(0,x.cn)("grid items-baseline gap-x-3",o?"grid-cols-4":"grid-cols-1"),children:l.map(e=>{let l=e===i;return(0,a.jsxs)("span",{className:(0,x.cn)("font-mono text-[12px] whitespace-nowrap tabular-nums",l&&o?"bg-primary/[0.08] text-primary -mx-1 rounded px-1 font-bold":l?"text-foreground font-semibold":"text-foreground/85"),children:[n,E(t*r(e)*s)]},e)})})}function e_(e){let{model:t,group:r,type:s,rate:n,symbol:o,language:i,expanded:l,currentTier:c,matrix:d}=e,u=A(t,s);return null==u?(0,a.jsx)("span",{className:"text-text-tertiary text-[13px]",children:"—"}):0===r.discount?(0,a.jsx)(ew,{language:i}):(0,a.jsx)(ek,{officialUsd:u,discountOf:e=>ej(d,r,e,t),rate:n,symbol:o,expanded:l,currentTier:c})}function eC(e){let{model:t,group:r,type:s,slot:n,rate:o,symbol:i,language:l,expanded:c,currentTier:d,matrix:u}=e,p=ea(t,s,n);return null==p?(0,a.jsx)("span",{className:"text-text-tertiary text-[13px]",children:"—"}):0===r.discount?(0,a.jsx)(ew,{language:l}):(0,a.jsx)(ek,{officialUsd:p/6.9,discountOf:e=>eN(u,t,r,e,n),rate:o,symbol:i,expanded:c,currentTier:d})}function eP(e){let{model:t,language:r,officialRate:s,symbol:n,showCny:o,timeTiered:i,colSpanBefore:l,colSpanAfter:c}=e,d=$[r],u=e=>o?`\xa5${e}`:`$${E(e/6.9)}`;return(0,a.jsxs)("tr",{className:"border-border/40 border-t border-dashed",children:[(0,a.jsx)("td",{colSpan:l,className:"px-3 py-1.5 text-right",children:(0,a.jsx)("span",{className:"text-[11px] font-medium text-sky-600 dark:text-sky-400",children:d.officialPrice})}),em.map(e=>{if(i&&er(t)){let r=ea(t,e,"peak");return(0,a.jsx)("td",{className:"px-2 py-1.5",children:null==r?(0,a.jsx)("span",{className:"text-text-tertiary text-[11px]",children:"—"}):(0,a.jsx)("span",{className:"font-mono text-[11.5px] text-sky-600 tabular-nums line-through dar
1k:text-sky-400",children:u(r)})},e)}if(i){let s=ea(t,e,"off_peak"),n=ea(t,e,"peak");return(0,a.jsx)("td",{className:"px-2 py-1.5",children:null==s&&null==n?(0,a.jsx)("span",{className:"text-text-tertiary text-[11px]",children:"—"}):(0,a.jsx)("div",{className:"flex flex-col gap-px",children:[["off_peak",s],["peak",n]].map(e=>{let[t,s]=e;return(0,a.jsxs)("span",{className:"flex items-baseline gap-1 whitespace-nowrap",children:[(0,a.jsx)("span",{className:"text-text-tertiary text-[10px]",children:ex[t][r]}),null==s?(0,a.jsx)("span",{className:"text-text-tertiary text-[11px]",children:"—"}):(0,a.jsx)("span",{className:"font-mono text-[11.5px] text-sky-600 tabular-nums line-through dark:text-sky-400",children:u(s)})]},t)})})},e)}let o=A(t,e);return(0,a.jsx)("td",{className:"px-2 py-1.5",children:null==o?(0,a.jsx)("span",{className:"text-text-tertiary text-[11px]",children:"—"}):(0,a.jsxs)("span",{className:"font-mono text-[11.5px] text-sky-600 tabular-nums line-through dark:text-sky-400",children:[n,E(1===s?o:function(e){let t=Math.round(7*e*100)/100,r=1/0;for(let a of[7,6.9]){let s=e*a,n=Math.round(100*s)/100,o=Math.abs(s-n)+.001*!(1e-4>Math.abs(s-Math.round(10*s)/10));o<r-1e-9&&(r=o,t=n)}return t}(o))]})},e)}),(0,a.jsx)("td",{colSpan:c})]})}function eS(e){let{model:t,language:r}=e;if(Z(t))return(0,a.jsx)(Y,{language:r});let s=J(t);return s?(0,a.jsx)(es,{tiers:s,language:r}):null}function eM(e){let{models:t,groups:r,language:n,tierDiscounts:o}=e,i=$[n],l=(0,S.Eh)(e=>e.config.currency.liveUsdExchangeRate),d="zh"===n,u=d&&l>0?l:1,m=d?7:1,h=d?"¥":"$",[f,g]=(0,p.useState)(new Set),b=(0,p.useRef)(null),y=`pricing-table-viewport-${(0,p.useId)().replaceAll(":","")}`,[v,j]=(0,p.useState)(!1),w=(0,B.h)(),k=(0,s.n)(e=>e.auth.user),P=(0,eo.BV)(k?.setting),M=ei.includes(P)?P:"v1",{models:I}=function(){let{data:e,isLoading:t,error:r}=(0,N.I)({queryKey:["cache-hit-status"],queryFn:C,staleTime:3e5,refetchInterval:6e5});return{models:e?.data?.models??[],generatedAt:e?.data?.generated_at,isLoading:t,error:r}}(),{groups:E}=function(){let{data:e,isLoading:t,error:r}=(0,N.I)({queryKey:["model-probe-status"],queryFn:_,staleTime:6e4,refetchInterval:6e4});return{groups:e?.data?.groups??[],generatedAt:e?.data?.generated_at,isLoading:t,error:r}}(),D=(0,p.useMemo)(()=>{let e=new Map;for(let t of E)for(let r of t.models){let t=e.get(r.model);for(let a of(t||(t=new Map,e.set(r.model,t)),r.buckets)){let e=t.get(a.ts);e?(e.total+=a.total,e.success+=a.success):t.set(a.ts,{...a})}}let t=new Map;for(let[r,a]of e){let e=[...a.values()].sort((e,t)=>e.ts-t.ts),s=e.reduce((e,t)=>e+t.total,0),n=e.reduce((e,t)=>e+t.success,0);t.set(r,{model:r,rate_24h:s>0?n/s*100:-1,buckets:e})}return t},[E]),R=(0,p.useMemo)(()=>new Map(I.map(e=>[e.model,e])),[I]),T=(0,p.useMemo)(()=>{let e=new Map(r.map(e=>[e.key,e])),a=t.map(t=>({model:t,groups:(t.enable_groups??[]).map(t=>e.get(t)).filter(e=>!!e).sort((e,t)=>e.order-t.order)})).filter(e=>e.groups.length>0),s=(e,t)=>e.groups.some(e=>t.test(e.key)),n=/(^|-)(eco|economy)($|-)/i,o=/(^|-)(ent|enterprise)($|-)/i,i=["deepseek-flash"],l=e=>{let t=i.indexOf(e.model.model_name.toLowerCase());return t<0?i.length:t};return a.sort((e,t)=>{let r=l(e),a=l(t);if(r!==a)return r-a;let i=z(e.model),c=z(t.model);if(i.dated!==c.dated)return i.dated?1:-1;if(c.primary!==i.primary)return c.primary-i.primary;if(c.secondary!==i.secondary)return c.secondary-i.secondary;let d=s(e,o);if(d!==s(t,o))return d?-1:1;let u=s(e,n);return u!==s(t,n)?u?-1:1:e.model.model_name.localeCompare(t.model.model_name)}),a},[t,r]),L={input:i.inputPrice,output:i.outputPrice,create_cache:i.cacheCreation,cache:i.cacheRead};return 0===T.length?(0,a.jsx)("div",{className:"border-border/70 text-text-secondary rounded-lg border border-dashed py-12 text-center text-sm",children:i.noModelsInGroup}):(0,a.jsxs)("div",{className:"border-border/70 overflow-hidden rounded-lg border",children:[(0,a.jsx)(ey,{viewportRef:b,viewportId:y,language:n}),(0,a.jsx)("div",{id:y,ref:b,className:"pricing-table-scrollbar__viewport overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-max min-w-full border-collapse",children:[(0,a.jsxs)("thead",{children:[(0,a.jsxs)("tr",{className:"border-border/60 bg-background-secondary/60 border-b",children:[(0,a.jsx)("th",{rowSpan:2,className:"text-text-tertiary border-border/60 border-b-2 px-3 pt-3 pb-2.5 text-left text-[11px] font-semibold tracking-wider up
1percase",children:i.modelId}),(0,a.jsxs)("th",{rowSpan:2,className:"text-text-tertiary border-border/60 relative border-b-2 px-2 pt-3 pb-2.5 text-left text-[11px] font-semibold tracking-wider uppercase",children:["zh"===n?"分组":"Group",(0,a.jsx)("button",{type:"button",onClick:()=>j(!0),className:"text-primary hover:text-primary/80 absolute right-1.5 bottom-1 text-[10px] font-normal tracking-normal whitespace-nowrap normal-case transition-colors hover:underline",children:"zh"===n?"等级与代理说明:":"Tiers & agent pricing:"})]}),em.map(e=>{let t=f.has(e);return(0,a.jsx)("th",{className:"text-text-tertiary px-2 pt-3 pb-1 text-left text-[11px] font-semibold tracking-wider whitespace-nowrap uppercase",children:(0,a.jsxs)("button",{type:"button",onClick:()=>g(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r}),title:t?"zh"===n?"折叠阶梯价":"Collapse tiers":"zh"===n?"展开阶梯价":"Expand tiers",className:"hover:text-foreground flex items-center gap-1 transition-colors",children:[L[e],(0,a.jsx)("span",{className:"shrink-0 rounded bg-orange-100 px-1 py-px text-[10px] font-medium tracking-normal normal-case text-orange-700 dark:bg-orange-500/15 dark:text-orange-300",children:t?"zh"===n?"收起":"Fold":"zh"===n?"展开":"Expand"})]})},e)}),(0,a.jsx)("th",{rowSpan:2,className:"text-text-tertiary border-border/60 border-b-2 px-2 pt-3 pb-2.5 text-left text-[11px] font-semibold tracking-wider uppercase",children:(0,a.jsx)("span",{className:"whitespace-nowrap",children:"zh"===n?"折扣":"Off"})}),(0,a.jsx)("th",{rowSpan:2,className:"text-text-tertiary border-border/60 border-b-2 px-2 pt-3 pb-2.5 text-left text-[11px] font-semibold tracking-wider uppercase",children:"zh"===n?"备注":"Notes"})]}),(0,a.jsx)("tr",{className:"border-border bg-background-secondary/60 border-b-2",children:em.map(e=>(0,a.jsx)("th",{className:"px-2 pt-0 pb-2",children:(0,a.jsx)("div",{className:(0,x.cn)("grid gap-x-3 text-left",f.has(e)?"grid-cols-4":"grid-cols-1"),children:(f.has(e)?ei:[M]).map(e=>(0,a.jsx)("span",{className:(0,x.cn)("text-[10px] font-medium whitespace-nowrap",e===M?"text-primary":"text-text-tertiary"),children:el[e][n]},e))})},e))})]}),T.map(e=>{var t;let{model:r,groups:s}=e,l=R.get(r.model_name),p=0===r.quota_type&&null!=A(r,"cache")&&!!l&&l.rate_24h>=0,g=Z(r)||!!J(r),b=!g&&!!et(r),y=b&&er(r),v=[];for(let e of s){let a=g||!et(t=r)?[]:er(t)?["peak"]:["off_peak","peak"];if(0===a.length)v.push({group:e,slot:null});else for(let t of a)v.push({group:e,slot:t})}let j=!g,N=v.length+ +!!j;return(0,a.jsxs)("tbody",{className:"border-border/60 group border-b last:border-b-0",children:[v.map((e,t)=>{var s;let{group:d,slot:m}=e,b=null==m?ej(o,d,M,r):eN(o,r,d,M,m),v=b!==(null==m?d.discount:d.time_discounts?.[m]??d.discount);return(0,a.jsxs)("tr",{className:(0,x.cn)("group-hover:bg-surface-hover transition-colors",t>0&&"border-border/40 border-t border-dashed"),children:[0===t&&(0,a.jsxs)("td",{rowSpan:N,className:"border-border/40 border-r px-3 py-3 align-top",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:"text-foreground font-mono text-[13px] font-semibold whitespace-nowrap",children:r.model_name}),(0,a.jsx)(en,{text:r.model_name,ariaLabel:i.copyModelId})]}),p&&(0,a.jsx)(H,{data:l,language:n}),D.get(r.model_name)&&(0,a.jsx)(U,{data:D.get(r.model_name),language:n})]}),(0,a.jsxs)("td",{className:"border-border/40 border-r px-2 py-3 align-top",children:[(0,a.jsx)("span",{className:"text-foreground text-[12.5px] font-medium whitespace-nowrap",title:d.desc,children:d.label}),m&&!y&&(0,a.jsx)("div",{className:"text-text-tertiary mt-0.5 text-[10.5px]",children:ex[m][n]}),null==m&&"tiered_expr"===(s=r).billing_mode&&(s.billing_expr??"").includes("len <= 272000")&&(0,a.jsxs)(X.AM,{children:[(0,a.jsx)("div",{className:"mt-1",children:(0,a.jsxs)(X.Wv,{className:"text-text-tertiary hover:text-foreground inline-flex cursor-pointer items-center gap-1 text-[10.5px] whitespace-nowrap",children:[(0,a.jsx)(c.mNh,{className:"size-3 shrink-0"}),eh[n]]})}),(0,a.jsxs)(X.hl,{className:"w-80 p-3",children:[(0,a.jsx)("p",{className:"text-foreground text-[12.5px] font-medium",children:ef[n].title}),(0,a.jsx)("p",{className:"text-muted-foreground mt-2 text-[12px] leading-relaxed",children:ef[n].body})]})]})]}),g?(0,a.jsx)("td",{colSpan:em.length,className:"px-3 py-3",children:(0,a.jsx)(eS,{model:r,language:n})}):em.map(e=>(0,a.jsx)("td",{className:"px-2 py-3 align-top",children:null==m?(0,a.jsx)(e_,{model:r,group:d,type:e,rate:u,symbol
1:h,language:n,expanded:f.has(e),currentTier:M,matrix:o}):(0,a.jsx)(eC,{model:r,group:d,type:e,slot:m,rate:u,symbol:h,language:n,expanded:f.has(e),currentTier:M,matrix:o})},e)),(0,a.jsx)("td",{className:"px-2 py-3 align-top",children:(0,a.jsx)("span",{className:(0,x.cn)("inline-flex items-center rounded px-1.5 py-0.5 text-[12px] font-medium whitespace-nowrap",v?"bg-primary/10 text-primary":"bg-emerald-50 text-emerald-700 dark:bg-emerald-500/15 dark:text-emerald-300"),children:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh";if(0===e)return"zh"===t?"免费":"Free";if("en"===t)return`${Math.max(0,Math.round((1-e)*100))}% off`;let r=Math.round(1e3*e)/100;return`${r}折`}(b,n)})}),0===t&&(0,a.jsx)("td",{rowSpan:N,className:"border-border/40 border-l px-2 py-3 align-top",children:(0,a.jsx)(ep,{modelName:r.model_name,description:r.description||"",isAdmin:w,language:n})})]},`${d.key}-${m??"plain"}`)}),j&&(0,a.jsx)(eP,{model:r,language:n,officialRate:m,symbol:h,showCny:d,timeTiered:b,colSpanBefore:1,colSpanAfter:1})]},r.model_name)})]})}),(0,a.jsx)(K.D,{open:v,onOpenChange:j,currentTier:M})]})}function eI(e){var t;let{models:r,pricingGroups:s,tierDiscounts:n}=e,{i18n:o}=(0,i.Bd)(),l=(t=o.resolvedLanguage??o.language,t?.toLowerCase().startsWith("zh")?"zh":"en"),d=$[l],u=(0,M.P)(l).hero.proofs.slice(-2),m=(0,S.Eh)(e=>e.config.currency.liveUsdExchangeRate),[x,h]=(0,p.useState)(""),f=(0,p.useMemo)(()=>{let e=new Set(r.flatMap(e=>e.enable_groups??[]));return s.filter(t=>e.has(t.key))},[r,s]),g=(0,p.useMemo)(()=>{let e=new Map;for(let t of f)e.set(t.key,r.filter(e=>e.enable_groups?.includes(t.key)).sort((e,t)=>{let r=A(e,"input")??0,a=A(t,"input")??0;if(a!==r)return a-r;let s=z(e),n=z(t);return s.dated!==n.dated?s.dated?1:-1:n.primary!==s.primary?n.primary-s.primary:n.secondary!==s.secondary?n.secondary-s.secondary:e.model_name.localeCompare(t.model_name)}));return e},[r,f]),b=(0,p.useMemo)(()=>{let e=new Map;for(let t of f){let r=e.get(t.category)??{order:t.order,models:new Set};for(let e of g.get(t.key)??[])r.models.add(e.model_name);e.has(t.category)||e.set(t.category,r)}return[...e.entries()].sort((e,t)=>e[1].order-t[1].order).map(e=>{let[t,r]=e;return{name:t,label:L(t,l),count:r.models.size}})},[f,g,l]),[y,v]=(0,p.useState)(""),j=b.some(e=>e.name===y)?y:b[0]?.name??"",N=(0,p.useMemo)(()=>f.filter(e=>e.category===j).sort((e,t)=>e.order-t.order),[f,j]),w=(0,p.useMemo)(()=>N.map(e=>(function(e,t){if("zh"===t)return e;let r=T[e.key];return r?{...e,category:r.category,label:r.label,desc:e.desc?r.desc:""}:{...e,category:L(e.category,t)}})(e,l)),[N,l]),k=(0,p.useMemo)(()=>{let e=new Set,t=[];for(let r of N)for(let a of g.get(r.key)??[])e.has(a.model_name)||(e.add(a.model_name),t.push(a));let r=x.trim().toLowerCase();return r?t.filter(e=>e.model_name.toLowerCase().includes(r)):t},[N,g,x]);return 0===f.length?(0,a.jsx)("div",{className:"border-border/70 bg-card text-text-secondary rounded-lg border py-16 text-center text-sm",children:d.noPricingGroups}):(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(q,{categories:b,totalCount:r.length,selected:j,onSelect:e=>{v(e)},search:x,onSearchChange:h,language:l}),(0,a.jsxs)("div",{className:"border-border/70 bg-card space-y-4 rounded-lg rounded-tr-[14px] border p-5 [corner-shape:round_bevel_round_round] sm:p-6",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[(0,a.jsx)("span",{"aria-hidden":!0,className:"bg-primary h-4.5 w-1 shrink-0 rounded-full"}),(0,a.jsx)(c.Co5,{className:"text-primary size-5"}),(0,a.jsx)("h2",{className:"text-foreground text-lg font-semibold",children:d.priceList}),(0,a.jsx)("span",{className:"bg-primary text-primary-foreground inline-flex shrink-0 items-center rounded-md px-2.5 py-1 text-[12px] font-medium",children:"zh"===l?"除特殊备注外、本公司承诺:无任何第三方反代账号,均官方号池,且不保留任何对话内容":"Unless otherwise noted, all capacity comes from official account pools — no third-party reverse proxies, and no conversation content is retained."}),"zh"===l&&m>0&&(0,a.jsxs)("span",{className:"text-text-tertiary text-[12px] font-normal",children:["(实时汇率:",m.toFixed(2),",本站基于实时汇率换算计费,相对一些 1:7 汇率的固定算法,更加优惠)(网络搜索全免费、只计token)"]})]}),(0,a.jsx)("div",{className:"grid gap-2 sm:grid-cols-2",children:u.map((e,t)=>(0,a.jsxs)("div",{className:"flex min-w-0 items-start gap-2 rounded-md border border-sky-200/80 bg-sky-50/70 px-3 py-2 dark:border-sky-800/50 dark:bg-sky-950/20",children:[(0,a.jsx)("span",{className:"mt-0.5 shrink-0 font-mono text-[10px] font-semibold tracking-wide text-sky-600 dark:text-sky-300",children:String(t+1).padStart(2,"0")}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"text-foreground text-[12px] leading-tight font-semibold",children:e.title}),(0,a.jsx)("p",{className:"text-text-secondary mt-0.5 text-[11px] leading-relaxed",children:e.description})]}),(0,a.jsx)(c.F1e,{"aria-hidden":"true",className:"mt-0.5 size-3.5 shrink-0 text-sky-600 dark:text-sky-300"})]},e.title))}),(0,a.jsx)(eM,{models:k,groups:w,language:l,tierDiscounts:n})]})]})}function ez(){let{models:e,pricingGroups:t,tierDiscounts:r,isLoading:s}=function(){let{status:e}=(0,w.s)(),{data:t,isLoading:r,error:a,refetch:s}=(0,N.I)({queryKey:["pricing"],queryFn:k,staleTime:3e5}),n=(0,p.useMemo)(()=>Math.max(e?.price??1,.001),[e?.price]),o=(0,p.useMemo)(()=>Math.max(e?.usd_exchange_rate??n,.001),[e?.usd_exchange_rate,n]);return{models:(0,p.useMemo)(()=>
1{if(!t?.data||!t?.vendors)return[];let e=new Map(t.vendors.map(e=>[e.id,e]));return t.data.map(r=>{let a=r.vendor_id?e.get(r.vendor_id):void 0;return{...r,key:r.model_name,vendor_name:a?.name,vendor_icon:a?.icon,vendor_description:a?.description,group_ratio:t.group_ratio}})},[t]),vendors:t?.vendors??[],groupRatio:t?.group_ratio??{},usableGroup:t?.usable_group??{},pricingGroups:t?.pricing_groups??[],tierDiscounts:t?.tier_discounts??{},endpointMap:t?.supported_endpoint??{},autoGroups:t?.auto_groups??[],isLoading:r,error:a,refetch:s,priceRate:n,usdExchangeRate:o}}();return s?(0,a.jsx)("div",{className:"mx-auto w-full max-w-[1800px] px-3 pt-6 pb-8 sm:px-5 sm:pt-8 sm:pb-10",children:(0,a.jsx)(b,{viewMode:"table"})}):(0,a.jsx)(l.Z_,{className:"relative mx-auto w-full max-w-[1800px] px-3 pt-5 pb-8 sm:px-5 sm:pt-7 sm:pb-10",children:(0,a.jsx)("main",{className:"min-w-0 space-y-4",children:(0,a.jsx)(eI,{models:e||[],pricingGroups:t,tierDiscounts:r})})})}function eA(){return(0,s.n)(e=>e.auth.user)?(0,a.jsx)(n.GN,{children:(0,a.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto",children:(0,a.jsx)(ez,{})})}):(0,a.jsx)(o.j,{title:{zh:"模型广场",en:"Model Square"},children:(0,a.jsx)(ez,{})})}}}]);

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.