PageSourceSearch

https://imagev2.ai/_next/static/chunks/ea16b6d4759fa6e3.js?dpl=dpl_FUk1FYfiitHvwpSvj7H3sak1TK8n

js imagev2.ai collected 2026-10-05 12:04:06 UTC 88,637 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,247241,e=>{"use strict";var t=e.i(579657),a=e.i(886572),i=e.i(928521),r=e.i(739737),s=e.i(17485),n=e.i(50746),l=e.i(704927),o=e.i(952414),d=e.i(487486),c=e.i(519455);e.i(50792);var u=e.i(76795),m=e.i(770590),p=e.i(798802),g=e.i(367692),x=e.i(612797),f=e.i(432856),h=e.i(294538);function b({items:e,group:r,onCheckout:l,onPayPalCheckout:o,onLocalWalletCheckout:u,isLoading:b,productId:v,paymentMethod:y}){let w=(0,x.useTranslations)("pricing"),_=(0,f.useLocale)(),j=(0,n.useMemo)(()=>[...e].sort((e,t)=>(e.slider_multiplier||1)-(t.slider_multiplier||1)),[e]),[k,N]=(0,n.useState)(0),D=j[k]||j[0];if(!D)return null;let S=D.slider_multiplier||1,P=D.base_credits||0,R=D.bonus_credits||0,C=D.bonus_percent||0;return(0,t.jsxs)("div",{className:"relative rounded-2xl px-5 py-4 md:p-6 mb-6 min-h-[420px] transition-all duration-300 hover:shadow-xl hover:scale-[1.02] border border-gray-200 dark:border-gray-800 hover:border-cyan-300 dark:hover:border-cyan-600 bg-white dark:bg-gray-900 shadow-md dark:shadow-black/30",children:["yearly"===r&&(0,t.jsxs)("div",{className:"absolute -top-4 -right-4 bg-gradient-to-r from-red-500 to-rose-600 text-white px-4 py-2 rounded-xl text-lg font-extrabold shadow-xl flex items-center gap-2",children:[(0,t.jsx)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})}),"50% OFF"]}),(0,t.jsx)("div",{className:"flex h-full flex-col gap-6",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)("div",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:D.title}),(0,t.jsx)("div",{className:"flex-1"})]}),D.credits&&D.amount?(0,t.jsxs)("p",{className:"text-sm text-green-600 font-medium mb-1",children:["$",(D.amount/100/D.credits).toFixed(3)," / credit"]}):null,(0,t.jsxs)("div",{className:"flex items-end gap-3 mb-2 flex-wrap",children:[D.original_price&&(0,t.jsx)("span",{className:"text-xl text-muted-foreground font-semibold line-through",children:D.original_price}),D.price&&(0,t.jsx)("span",{className:"text-[30px] md:text-5xl font-extrabold text-gray-900 dark:text-white",children:D.price})]}),"yearly"===r&&D.tip&&(0,t.jsx)("p",{className:"text-base font-semibold text-gray-900 dark:text-gray-200 mb-4",children:D.tip}),"yearly"!==r&&(0,t.jsx)("div",{className:"mb-4"}),(0,t.jsxs)("div",{className:"rounded-xl p-4 mb-4 bg-gradient-to-br from-cyan-50 to-yellow-50 dark:from-cyan-950/30 dark:to-yellow-950/20",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(m.Gift,{className:"w-5 h-5 text-cyan-500"}),(0,t.jsx)("span",{className:"text-gray-900 dark:text-gray-100 font-medium text-sm",children:w("quantity_adjustment")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"text-gray-900 dark:text-white font-bold text-xl",children:[S,"x"]}),C>0&&(0,t.jsxs)(d.Badge,{className:"bg-green-500 text-white px-2 py-0.5 text-xs border-0",children:["+",C,"% ",w("bonus")]})]})]}),(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsx)(g.Slider,{value:[k],onValueChange:e=>{N(e[0])},max:j.length-1,step:1,className:"w-full"})}),(0,t.jsx)("div",{className:"flex justify-between text-sm text-gray-500 dark:text-gray-400 mb-4",children:j.map((e,a)=>(0,t.jsxs)("span",{className:`cursor-pointer transition-colors ${k===a?"text-cyan-600 dark:text-cyan-400 font-medium":""}`,onClick:()=>N(a),children:[e.slider_multiplier||1,"x"]},e.product_id))}),S>1&&(0,t.jsxs)("div",{className:"space-y-1 text-sm",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)("span",{className:"text-gray-500 dark:text-gray-400",children:w("base")}),(0,t.jsxs)("span",{className:"text-gray-900 dark:text-gray-100",children:[P.toLocaleString("en-US")," ",w("credits_per_month")]})]}),(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)("span",{className:"text-green-600 dark:text-green-400",children:w("bonus")}),(0,t.jsxs)("span",{className:"text-green-600 dark:text-green-400",children:["+",R.toLocaleStr
1ing("en-US")," ",w("credits_per_month")]})]}),(0,t.jsxs)("div",{className:"flex justify-between pt-1 border-t border-gray-300 dark:border-gray-700",children:[(0,t.jsx)("span",{className:"text-gray-500 dark:text-gray-400",children:w("total")}),(0,t.jsxs)("span",{className:"text-gray-900 dark:text-white font-semibold",children:[(P+R).toLocaleString("en-US")," ",w("credits_per_month")]})]})]})]}),D.button&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(c.Button,{className:"w-full flex items-center justify-center gap-2 font-semibold text-[18px] h-12 mb-2 transition-all duration-300 bg-gradient-to-r from-gray-700 via-gray-500 to-gray-700 hover:from-gray-600 hover:via-gray-400 hover:to-gray-600 dark:from-gray-800 dark:via-gray-700 dark:to-gray-800 dark:hover:from-gray-700 dark:hover:via-gray-600 dark:hover:to-gray-700 text-white shadow-md hover:shadow-lg hover:scale-105",disabled:b&&"stripe"===y,onClick:()=>{b||l(D)},children:b&&"stripe"===y&&v===D.product_id?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.Loader,{className:"h-4 w-4 animate-spin"}),(0,t.jsx)("span",{children:w("processing")})]}):(0,t.jsx)("span",{children:w("pay_now")})})}),(h.WECHAT_PAY_ENABLED||h.ALIPAY_PAY_ENABLED)&&("zh"===_||"zh-TW"===_&&"month"!==D.interval)&&(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)(p.default,{locale:_,isLoading:b&&v===D.product_id,paymentMethod:y,processingLabel:w("processing"),showWechat:h.WECHAT_PAY_ENABLED&&!!u,showAlipay:h.ALIPAY_PAY_ENABLED&&!!u,tone:"dark",onClick:()=>{!b&&u&&u(D)}})})]}),D.features_title&&(0,t.jsx)("p",{className:"mb-3 font-semibold text-gray-900 dark:text-white",children:D.features_title}),D.features&&(0,t.jsx)("ul",{className:"flex flex-col gap-3",children:D.features.map((e,i)=>{let r=e.startsWith("!!"),n=e.startsWith("xx"),l=r||n?e.slice(2):e;return(0,t.jsxs)("li",{className:"flex gap-3 items-start",children:[n?(0,t.jsx)(s.XCircle,{className:"mt-0.5 size-5 shrink-0 text-red-500 fill-red-100"}):(0,t.jsx)(a.CircleCheck,{className:"mt-0.5 size-5 shrink-0 text-cyan-500 fill-cyan-100 dark:fill-cyan-500/20"}),(0,t.jsx)("span",{className:`text-[14px] md:text-base ${r?"font-bold text-green-600 dark:text-green-400":n?"font-bold text-green-700/60 dark:text-green-500/70":"text-gray-900 dark:text-gray-200"}`,children:r||n?l:l.split(/(\d[\d,]*)/g).map((e,a)=>/^\d[\d,]*$/.test(e)?(0,t.jsx)("span",{className:"font-bold text-cyan-600 dark:text-cyan-400",children:e},a):e)})]},`feature-${i}`)})})]})})]})}var v=e.i(922036),y=e.i(167173),w=e.i(379671),_=e.i(439112);function j(){let e=(0,_.getFirstTouchAttribution)(),t=null,a=document.cookie.split("; ").find(e=>e.startsWith("_ga="));if(a){let e=a.split("=")[1]?.split(".");e&&e.length>=4&&(t=`${e[2]}.${e[3]}`)}!t&&e?.ga_client_id&&(t=e.ga_client_id);let i=e?.gclid||null;return{ga_client_id:t,gclid:i,gbraid:e?.gbraid||null,wbraid:e?.wbraid||null}}let k="promo_banner_countdown_end";function N({pricing:e}){let m;if(e.disabled)return null;let{user:g,setShowSignModal:_}=(0,y.useAppContext)(),N=(0,l.useSearchParams)(),D=(0,l.usePathname)(),S=(0,x.useTranslations)("pricing"),P=(0,f.useLocale)(),[R,C]=(0,n.useState)("yearly"),[I,M]=(0,n.useState)(!1),[A,E]=(0,n.useState)(null),[T,L]=(0,n.useState)("stripe"),{hours:F,minutes:V,seconds:z}=function(){let[e,t]=(0,n.useState)({hours:0,minutes:0,seconds:0});return(0,n.useEffect)(()=>{let e=localStorage.getItem(k);if(!e){let t=Date.now()+432e5;localStorage.setItem(k,String(t)),e=String(t)}let a=()=>{let a=Date.now(),i=Math.max(0,Number(e)-a);t({hours:Math.floor(i/36e5),minutes:Math.floor(i%36e5/6e4),seconds:Math.floor(i%6e4/1e3)})};a();let i=setInterval(a,1e3);return()=>clearInterval(i)},[]),e}(),O=(0,n.useCallback)(()=>{let e=["#FFD700","#FFA500","#FF6347","#00CED1","#9370DB","#FF69B4"],t=(t,a)=>{(0,o.default)({...a,particleCount:Math.floor(200*t),colors:e,zIndex:9999})};t(.5,{spread:80,origin:{x:0,y:.6},startVelocity:55}),t(.5,{spread:80,origin:{x:1,y:.6},startVelocity:55}),setTimeout(()=>{t(.6,{spread:70,origin:{x:.15,y:.65},startVelocity:50}),t(.6,{spread:70,origin:{x:.85,y:.65},startVelocity:50}),t(.4,{spread:90,origin:{x:.5,y:.55},startVelocity:55})},150),setTimeout(()=>{t(.4,{spread:100,origin:{x:.5,y:.7},startVelocity:40})},300)},[]);(0,n.useEffect)(()=>
1{if(!D?.includes("/pricing"))return;let e=setTimeout(()=>{O()},300);return()=>clearTimeout(e)},[O,D]),(0,n.useEffect)(()=>{(0,w.trackPageView)("payment_view_manual",{page:"pricing",placement:"pricing_page"})},[]);let K=async e=>{if(!I){M(!0),E(e.product_id);try{if((0,w.trackClick)("click_upgrade",{page:"pricing",placement:"pricing_card_checkout_button",plan:e.title||e.product_id,price:e.price,billing_cycle:R,logged_in:!!g}),!g)return void _(!0);(0,w.logAnalyticsEvent)("begin_checkout",{event_type:"conversion",page:"pricing",plan:e.title||e.product_id,billing_cycle:R,payment_method:"stripe"});let t=N.get("returnUrl"),{ga_client_id:a,gclid:i,gbraid:r,wbraid:s}=j(),n={product_id:e.product_id,cancel_url:t,ga_client_id:a,gclid:i,gbraid:r,wbraid:s},l=await fetch("/api/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(401===l.status){M(!1),E(null),(0,w.logAnalyticsEvent)("checkout_error",{page:"pricing",step:"init",plan:e.title||e.product_id,error_code:"unauthorized",error_message:"User not logged in"}),_(!0);return}let{code:o,message:d,data:c}=await l.json();if(0!==o){(0,w.logAnalyticsEvent)("checkout_error",{page:"pricing",step:"init",plan:e.title||e.product_id,error_code:o?.toString(),error_message:d}),v.toast.error(d);return}let{public_key:m,session_id:p}=c,x=await (0,u.loadStripe)(m);if(!x){(0,w.logAnalyticsEvent)("checkout_error",{page:"pricing",step:"init",plan:e.title||e.product_id,error_code:"stripe_init_failed",error_message:"Failed to initialize Stripe"}),v.toast.error(S("checkout_failed"));return}let f=await x.redirectToCheckout({sessionId:p});f.error&&((0,w.logAnalyticsEvent)("checkout_error",{page:"pricing",step:"retry",plan:e.title||e.product_id,error_message:f.error.message}),v.toast.error(f.error.message))}catch(t){console.log("checkout failed: ",t),(0,w.logAnalyticsEvent)("checkout_error",{page:"pricing",step:"retry",plan:e.title||e.product_id,error_message:t?.message||"Unknown error"}),v.toast.error(S("checkout_failed"))}finally{M(!1),E(null)}}},B=async e=>{if(!I){M(!0),E(e.product_id),L("paypal");try{if((0,w.trackClick)("click_upgrade",{page:"pricing",placement:"pricing_card_paypal_button",plan:e.title||e.product_id,price:e.price,billing_cycle:R,logged_in:!!g,payment_method:"paypal"}),!g)return void _(!0);(0,w.logAnalyticsEvent)("begin_checkout",{event_type:"conversion",page:"pricing",plan:e.title||e.product_id,billing_cycle:R,payment_method:"paypal"});let t=N.get("returnUrl"),{ga_client_id:a,gclid:i,gbraid:r,wbraid:s}=j(),n=await fetch("/api/paypal-checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({product_id:e.product_id,cancel_url:t,ga_client_id:a,gclid:i,gbraid:r,wbraid:s})});if(401===n.status){M(!1),E(null),(0,w.logAnalyticsEvent)("checkout_error",{page:"pricing",step:"init",plan:e.title||e.product_id,error_code:"unauthorized",error_message:"User not logged in",payment_method:"paypal"}),_(!0);return}let{code:l,message:o,data:d}=await n.json();if(0!==l){(0,w.logAnalyticsEvent)("checkout_error",{page:"pricing",step:"init",plan:e.title||e.product_id,error_code:l?.toString(),error_message:o,payment_method:"paypal"}),v.toast.error(o);return}window.location.href=d.approval_url}catch(t){console.log("PayPal checkout failed: ",t),(0,w.logAnalyticsEvent)("checkout_error",{page:"pricing",step:"retry",plan:e.title||e.product_id,error_message:t?.message||"Unknown error",payment_method:"paypal"}),v.toast.error(S("checkout_failed"))}finally{M(!1),E(null)}}},U=async e=>{if(!I){M(!0),E(e.product_id),L("local_wallet");try{if((0,w.trackClick)("click_upgrade",{page:"pricing",placement:"pricing_card_local_wallet_button",plan:e.title||e.product_id,price:e.price,billing_cycle:R,logged_in:!!g,payment_method:"local_wallet"}),!g)return void _(!0);(0,w.logAnalyticsEvent)("begin_checkout",{event_type:"conversion",page:"pricing",plan:e.title||e.product_id,billing_cycle:R,payment_method:"local_wallet"});let t=N.get("returnUrl"),a=e.currency?.toLowerCase()==="cny"&&e.amount>4e4||e.currency?.toLowerCase()==="usd"&&e.amount>400/7*100?"alipay":"local_wallet",{ga_client_id:i,gclid:r,gbraid:s,wbraid:n}=j(),l={product_id:e.product_id,cancel_url:t,payment_method:a,ga_client_id:i,gclid:r,gbraid:s,wbraid:n},o=await fetch("/api/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(401===o.status){M(!1),E(null),_(!0);return}let{code:d,message:c,data:m}=await o.json();if(0!==d)return void v.toast.error(c);let{public_key:p,session_id:x}=m,f=await (0,u.loadStripe)(p);if(!f)return void v.toast.error(S("checkout_failed"));let h=await f.redirectToCheckout({sessionId:x});h.error&&v.toast.error(h.error.message)}catch(e){console.log("local wallet checkout failed: ",e),v.toast.error(S("checkout_failed"))}finally{M(!1),E(null)}}};return(0,n.useEffect)(()=>
1{if(e.items){let t=e.groups?.find(e=>"yearly"===e.name)?"yearly":e.items[0]?.group||"yearly";C(t);let a=e.items.filter(e=>e.group===t),i=a.find(e=>e.is_featured)||a[0];i&&E(i.product_id),M(!1)}},[e.items,e.groups]),(0,t.jsx)("section",{id:e.name,className:"py-8",children:(0,t.jsxs)("div",{className:"mx-auto max-w-6xl px-4 md:px-6",children:[(0,t.jsxs)("div",{className:"mx-auto mb-8 text-center",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-3 mb-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-2 bg-gradient-to-r from-orange-500 to-red-500 rounded-xl font-mono text-2xl font-bold text-white tracking-wide shadow-lg",children:[(0,t.jsx)("span",{className:"w-9 text-center",children:String(F).padStart(2,"0")}),(0,t.jsx)("span",{className:"text-orange-200 animate-pulse",children:":"}),(0,t.jsx)("span",{className:"w-9 text-center",children:String(V).padStart(2,"0")}),(0,t.jsx)("span",{className:"text-orange-200 animate-pulse",children:":"}),(0,t.jsx)("span",{className:"w-9 text-center",children:String(z).padStart(2,"0")})]}),(0,t.jsx)("span",{className:"text-2xl font-bold text-orange-600",children:S("limited_offer")})]}),(0,t.jsx)("h2",{className:"mb-4 text-3xl font-semibold lg:text-4xl bg-gradient-to-r from-cyan-400 to-yellow-400 bg-clip-text text-transparent",children:e.title}),(0,t.jsxs)("p",{className:"text-gray-900 dark:text-gray-200 font-semibold lg:text-lg flex items-center justify-center gap-2",children:[(0,t.jsx)(r.Sparkles,{className:"w-5 h-5 text-cyan-500"}),e.description]})]}),(0,t.jsxs)("div",{className:"w-full flex flex-col items-center gap-2",children:[e.groups&&e.groups.length>0&&(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center mb-10",children:[(0,t.jsx)("div",{className:"flex bg-gray-100 dark:bg-gray-800 rounded-full p-1",children:e.groups.map((e,a)=>{let i=R===e.name;return(0,t.jsx)("button",{onClick:()=>C(e.name||""),className:`relative px-5 md:px-8 py-2.5 md:py-3 rounded-full font-semibold text-sm md:text-base transition-all duration-200 ease-in-out ${i?"bg-white dark:bg-gray-700 text-gray-900 dark:text-white shadow-md":"text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200"}`,children:(0,t.jsxs)("span",{className:"flex items-center gap-1.5 md:gap-2",children:[e.title,e.label&&(0,t.jsxs)("span",{className:"text-red-500 text-xs md:text-sm font-medium",children:["-",e.label]})]})},a)})}),"credit-pack"===R?(0,t.jsxs)("p",{className:"mt-3 text-base font-semibold text-green-500 flex items-center gap-1",children:[(0,t.jsx)(a.CircleCheck,{className:"w-5 h-5 text-green-500 fill-green-100"}),S("credit_pack_tip")]}):(0,t.jsxs)("p",{className:"mt-3 text-base font-semibold text-green-500 flex items-center gap-1",children:[(0,t.jsx)(a.CircleCheck,{className:"w-5 h-5 text-green-500 fill-green-100"}),S("cancel_anytime")]})]}),(0,t.jsxs)("div",{className:"w-full mt-0 grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 animate-in fade-in-0 duration-300",children:[e.items?.map((e,r)=>e.group&&e.group!==R||e.slider_group?null:(0,t.jsxs)("div",{className:`relative rounded-2xl px-4 py-4 md:px-5 md:py-5 mb-4 min-h-[380px] transition-all duration-300 hover:shadow-xl hover:scale-[1.02] ${e.is_featured?"border-2 border-cyan-400 bg-gradient-to-br from-cyan-50 to-yellow-50 dark:from-cyan-950/40 dark:to-yellow-950/30 shadow-lg shadow-cyan-200/50 dark:shadow-cyan-900/30":"border border-gray-200 dark:border-gray-800 hover:border-cyan-300 dark:hover:border-cyan-600 bg-white dark:bg-gray-900 shadow-md dark:shadow-black/30"} ${e.product_id?.startsWith("pro_")?"order-first md:order-none":""}`,children:["yearly"===R&&(0,t.jsxs)("div",{className:"absolute -top-4 -right-4 bg-gradient-to-r from-red-500 to-rose-600 text-white px-4 py-2 rounded-xl text-lg font-extrabold shadow-xl flex items-center gap-2",children:[(0,t.jsx)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})}),"50% OFF"]}),(0,t.jsx)("div",{className:"flex h-full flex-col gap-6",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[e.title&&(0,t.jsx)("div",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:e.title}),(0,t.jsx)("div",{className:"flex-1"}),e.label&&(0,t.jsx)(d.Badge,{className:"bg-gradient-to-r from-cyan-400 to-yellow-400 text-slate-900 px-3 py-1.5 shadow-md border-0",children:e.label})]}),e.credits&&e.amount?(0,t.jsxs)("p",{className:"text-sm text-green-600 font-medium mb-1",children:["$",(e.amount/100/e.credits).toFixed(3)," / credit"]}):null,(0,t.jsxs)("div",{className:"flex items-end gap-3 mb-2 flex-wrap",children:[e.original_price&&(0,t.jsx)("span",{className:"text-xl text-muted-foreground font-semibold line-through",children:e.original_price}),e.price&&(0,t.jsx)("span",{className:"text-[30px] md:text-5xl font-extrabold text-gray-900 dark:text-white",children:e.price})]}),"yearly"===R&&e.tip&&(0,t.jsx)("p",{className:"text-base font-semibold text-gray-900 dark:text-gray-200 mb-4",children:e.tip}),"yearly"!==R&&(0,t.jsx)("div",{className:"mb-4"}),e.button&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(c.Button,{className:`w-full flex items-center justify-center gap-2 font-semibold text-[18px] h-12 mb-2 transition-all duration-300 ${e.is_featured?"bg-gradient-to-r from-cyan-400 to-yellow-400 hover:from-cyan-500 hover:to-yellow-500 text-slate-900 shadow-lg hover:shadow-xl hover:scale-105":"bg-gradient-to-r from-gray-700 via-gray-500 to-gray-700 hover:from-gray-600 hover:via-gray-400 hover:to-gray-600 dark:from-gray-800 dark:via-gray-700 dark:to-gray-800 dark:hover:from-gray-700 dark:hover:via-gray-600 dark:hover:to-gray-700 text-white shadow-md hover:shadow-lg hover:scale-105"}`,disabled:I&&"stripe"===T,onClick:()=>{I||(L("stripe"),K(e))},children:I&&"stripe"===T&&A===e.product_id?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.Loader,{className:"h-4 w-4 animate-spin"}),(0,t.jsx)("span",{children:S("processing")})]}):(0,t.jsx)("span",{children:S("pay_now")})})}
1),(h.WECHAT_PAY_ENABLED||h.ALIPAY_PAY_ENABLED)&&("zh"===P||"zh-TW"===P&&"month"!==e.interval)&&(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)(p.default,{locale:P,isLoading:I&&A===e.product_id,paymentMethod:T,processingLabel:S("processing"),showWechat:h.WECHAT_PAY_ENABLED,showAlipay:h.ALIPAY_PAY_ENABLED,tone:"dark",onClick:()=>{I||U(e)}})})]}),e.features_title&&(0,t.jsx)("p",{className:"mb-3 font-semibold text-gray-900 dark:text-white",children:e.features_title}),e.features&&(0,t.jsx)("ul",{className:"flex flex-col gap-3",children:e.features.map((e,i)=>{let r=e.startsWith("!!"),n=e.startsWith("xx"),l=r||n?e.slice(2):e;return(0,t.jsxs)("li",{className:"flex gap-3 items-start",children:[n?(0,t.jsx)(s.XCircle,{className:"mt-0.5 size-5 shrink-0 text-red-500 fill-red-100"}):(0,t.jsx)(a.CircleCheck,{className:"mt-0.5 size-5 shrink-0 text-cyan-500 fill-cyan-100 dark:fill-cyan-500/20"}),(0,t.jsx)("span",{className:`text-[14px] md:text-base ${r?"font-bold text-green-600 dark:text-green-400":n?"font-medium text-red-500 dark:text-red-400":"text-gray-900 dark:text-gray-200"}`,children:r||n?l:l.split(/(\d[\d,]*)/g).map((e,a)=>/^\d[\d,]*$/.test(e)?(0,t.jsx)("span",{className:"font-bold text-cyan-600 dark:text-cyan-400",children:e},a):e)})]},`feature-${i}`)})})]})})]},r)),(m=e.items?.filter(e=>"ultra"===e.slider_group&&e.group===R)||[]).length>0?(0,t.jsx)(b,{items:m,group:R,onCheckout:e=>{L("stripe"),K(e)},onPayPalCheckout:B,onLocalWalletCheckout:U,isLoading:I,productId:A,paymentMethod:T}):null]},R)]})]})})}e.s(["default",()=>N],247241)},929679,e=>{"use strict";let t=(0,e.i(85208).default)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["default",()=>t])},784711,e=>{"use strict";var t=e.i(929679);e.s(["Copy",()=>t.default])},270296,e=>{"use strict";var t=e.i(579657),a=e.i(50746),i=e.i(705273),r=e.i(784711),s=e.i(895137),n=e.i(269498),l=e.i(975157);function o({item:e,onClose:o,labels:d,title:c}){let[u,m]=(0,a.useState)(!1);if(!e)return null;let p=async()=>{try{await navigator.clipboard.writeText(e.prompt),m(!0),setTimeout(()=>m(!1),1800)}catch{}},g=c||e.title;return(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/70 backdrop-blur-sm",onClick:o,children:(0,t.jsxs)("div",{className:"relative w-full max-w-3xl max-h-[90vh] overflow-auto bg-background rounded-2xl shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("button",{onClick:o,className:"absolute top-3 right-3 z-10 p-2 rounded-full bg-black/30 hover:bg-black/50 text-white transition-colors","aria-label":"Close",children:(0,t.jsx)(n.X,{className:"w-5 h-5"})}),(0,t.jsx)("div",{className:(0,l.cn)("grid gap-1 bg-muted",1===e.images.length&&"grid-cols-1",2===e.images.length&&"grid-cols-2",e.images.length>=3&&"grid-cols-2 md:grid-cols-3"),children:e.images.map((e,a)=>(0,t.jsx)("div",{className:"relative aspect-square",children:(0,t.jsx)(i.default,{src:e,alt:`${g} ${a+1}`,fill:!0,sizes:"(max-width: 768px) 100vw, 600px",className:"object-cover",unoptimized:!0})},e+a))}),(0,t.jsxs)("div",{className:"p-5 md:p-6 space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl md:text-2xl font-bold mb-1",children:g}),e.description&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.description})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"text-[10px] font-semibold tracking-wider text-emerald-500 mb-2",children:d.promptLabel}),(0,t.jsx)("pre",{className:"whitespace-pre-wrap break-words p-4 pr-24 bg-muted rounded-xl text-xs md:text-sm leading-relaxed font-mono max-h-80 overflow-auto",children:e.prompt}),(0,t.jsx)("button",{onClick:p,className:"absolute top-8 right-3 inline-flex items-center gap-1.5 px-3.5 py-2 rounded-lg bg-gradient-to-r from-emerald-500 to-cyan-500 text-white text-xs font-semibold hover:from-emerald-600 hover:to-cyan-600 transition-colors shadow-sm",children:u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Check,{className:"w-3.5 h-3.5"})," ",d.copied]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Copy,{className:"w-3.5 h-3.5"})," ",d.copy]})})]}),e.tags&&e.tags.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.tags.map(e=>(0,t.jsx)("span",{className:"px-3 py-1 rounded-full bg-muted text-xs text-muted-foreground",children:e},e))}),e.source?.author&&(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 pt-3 border-t border-border/50 text-sm text-muted-foreground",children:[(0,t.jsxs)("span",{children:[d.source,":"]}),(0,t.jsxs)("span",{className:"text-foreground",children:["@",e.source.author]})]})]})]})})}e.s(["PromptDialog",()=>o])},568723,e=>{"use strict";let t={name:"GPT Image 2",shortName:"GPT Image 2",domain:"imagev2.ai",url:"https://imagev2.ai",email:{support:"[email protected]",noreply:"[email protected]",fromName:"GPT Image 2",get from(){return`${this.fromN
1ame} <${this.noreply}>`},get fromOfficial(){return`${this.fromName} <${this.support}>`}},tagline:"The AI image generator that actually thinks.",description:"GPT Image 2 is the next-generation AI image model with native reasoning, 4K output, and pixel-perfect typography.",logo:{default:"/logo.svg",dark:"/logo-dark.svg",icon:"/favicon.ico"},social:{twitter:"",discord:"",youtube:""},get copyright(){return`\xa9 ${new Date().getFullYear()} ${this.name}. All rights reserved.`}};t.name,t.shortName,t.domain,t.url;let a=t.email.support;t.email.noreply,e.s(["BRAND",0,t,"BRAND_EMAIL_SUPPORT",0,a])},968518,e=>{"use strict";var t=e.i(579657),a=e.i(50746),i=e.i(939432),r=e.i(975157);let s=[{image:"/imgs/samples/sample03.jpg",caption:"text + image + audio → single fused scene"},{image:"/imgs/samples/sample04.jpeg",caption:"outfit, background, expression — edited in place"},{image:"/imgs/samples/sample05.jpg",caption:"same character, three different shots"}];function n({section:e}){if(e.disabled)return null;let s=e.items||[],[n,o]=(0,a.useState)(0),d=s[n];return(0,t.jsxs)("section",{id:e.name,className:"relative py-20 md:py-28 overflow-hidden bg-gradient-to-b from-slate-50 via-white to-slate-50 dark:from-slate-950 dark:via-background dark:to-slate-950",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute top-0 left-1/3 w-[500px] h-[500px] rounded-full bg-cyan-300/25 dark:bg-cyan-400/10 blur-3xl pointer-events-none"}),(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute bottom-0 right-1/4 w-[500px] h-[500px] rounded-full bg-yellow-300/25 dark:bg-yellow-400/10 blur-3xl pointer-events-none"}),(0,t.jsxs)("div",{className:"relative container mx-auto px-4 max-w-7xl",children:[(0,t.jsxs)("div",{className:"text-center mb-12 md:mb-16 max-w-3xl mx-auto",children:[(0,t.jsx)("div",{className:"inline-flex items-center gap-2 px-3 py-1 mb-5 rounded-full border border-cyan-400/30 bg-cyan-400/10 text-xs font-mono tracking-wider text-cyan-700 dark:text-cyan-300 uppercase",children:"Multimodal · Editable"}),(0,t.jsx)("h2",{className:"text-3xl md:text-5xl font-bold text-gray-900 dark:text-white leading-[1.1] tracking-tight",children:e.title}),e.description&&(0,t.jsx)("p",{className:"mt-5 text-base md:text-lg text-gray-600 dark:text-gray-400 leading-relaxed",children:e.description})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-5 md:gap-8 items-stretch",children:[(0,t.jsx)("div",{className:"lg:col-span-2 flex flex-col gap-3",children:s.map((e,a)=>(0,t.jsxs)("button",{onClick:()=>o(a),className:(0,r.cn)("group relative text-left rounded-2xl border p-5 md:p-6 transition-all duration-300","focus:outline-none focus-visible:ring-2 focus-visible:ring-cyan-400",n===a?"border-cyan-400 bg-white dark:bg-white/[0.04] shadow-lg shadow-cyan-400/10":"border-gray-200 dark:border-white/10 bg-white/40 dark:bg-white/[0.02] hover:border-gray-300 dark:hover:border-white/20"),children:[(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)("div",{className:(0,r.cn)("flex-shrink-0 w-10 h-10 rounded-xl flex items-center justify-center transition-all",n===a?"bg-gradient-to-br from-cyan-400 to-yellow-300 text-slate-900 shadow":"bg-gray-100 dark:bg-white/5 text-gray-500 dark:text-gray-400"),children:e.icon?(0,t.jsx)(i.default,{name:e.icon,className:"w-5 h-5"}):(0,t.jsxs)("span",{className:"text-sm font-mono",children:["0",a+1]})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-1.5",children:[(0,t.jsx)("h3",{className:(0,r.cn)("text-base md:text-lg font-bold transition-colors",n===a?"text-gray-900 dark:text-white":"text-gray-700 dark:text-gray-300"),children:e.title}),(0,t.jsx)("span",{className:(0,r.cn)("text-[10px] font-mono uppercase tracking-wider transition-opacity",n===a?"text-cyan-600 dark:text-cyan-400":"opacity-0"),children:"Active"})]}),(0,t.jsx)("p",{className:(0,r.cn)("text-sm leading-relaxed transition-all",n===a?"text-gray-600 dark:text-gray-300":"text-gray-500 dark:text-gray-500 line-clamp-2"),children:e.description})]})]}),(0,t.jsx)("span",{className:(0,r.cn)("absolute left-0 top-4 bottom-4 w-[3px] rounded-r-full bg-gradient-to-b from-cyan-400 to-yellow-300 transition-opacity",n===a?"opacity-100":"opacity-0")})]},a))}),(0,t.jsx)("div",{className:"lg:col-span-3",children:(0,t.jsxs)("div",{className:"relative h-full rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-slate-900/60 backdrop-blur-sm overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b border-gray-200 dark:border-white/10 bg-gray-50 dark:bg-white/[0.02]",children:[(0,t.jsx)("span",{className:"w-2.5 h-2.5 rounded-full bg-red-400"}),(0,t.jsx)("span",{className:"w-2.5 h-2.5 rounded-full bg-amber-400"}),(0,t.jsx)("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-400"}),(0,t.jsxs)("span",{className:"ml-3 text-[11px] font-mono text-gray-400 dark:text-gray-500 truncate",children:["seedance-2.0 / ",d?.title?.toLowerCase().replace(/\s+/g,"-")]})]}),(0,t.jsx)(l,{active:n,currentTitle:d?.title})]})})]})]})]})}function l({active:e,currentTitle:a}){let i=s[e]||s[0];return(0,t.jsxs)("div",{className:"relative aspect-video bg-black",children:[(0,t.jsx)("img",{src:i.image,alt:i.caption,className:"absolute inset-0 w-full h-full object-cover"},i.image),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/10 to-transparent pointer-events-none"}),(0,t.jsx)("div",{className:"absolute top-4 left-4 flex items-center gap-2",children:(0,t.jsxs)("span",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-black/50 backdrop-blur-md border border-white/20 text-[10px] md:text-xs font-mono text-white uppercase tracking-wider",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),a]})}),(0,t.jsxs)("div",{className:"absolute bottom-4 left-4 right-4 text-white",children:[(0,t.jsx)("div",{className:"text-[10px] md:text-xs font-mono uppercase tracking-wider text-white/60 mb-1",children:"Output"}),(0,t.jsx)("div",{className:"text-sm md:text-base font-semibold drop-shadow",children:i.caption})]})]})}e.s(["default",()=>n])},896038,e=>{"use strict";let t={ice:"bg-gradient-to-r from-cyan-500 to-amber-400 bg-clip-text !text-transparent dark:from-cyan-300 dark:to-yellow-200"};function a(e){return e?t[e]:void 0}e.s(["ACCENT_TITLE_CLASS",0,t,"accentTitleClass",()=>a])},838100,e=>{"use strict";
1var t=e.i(579657),a=e.i(939432),i=e.i(975157),r=e.i(896038);e.s(["default",0,({section:e})=>{let s=e.steps||[];return(0,t.jsxs)("section",{className:"relative py-20 md:py-28 overflow-hidden bg-white dark:bg-background",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 opacity-[0.4] dark:opacity-[0.12] [background-image:linear-gradient(to_right,rgb(0_0_0/0.05)_1px,transparent_1px),linear-gradient(to_bottom,rgb(0_0_0/0.05)_1px,transparent_1px)] dark:[background-image:linear-gradient(to_right,rgb(255_255_255/0.06)_1px,transparent_1px),linear-gradient(to_bottom,rgb(255_255_255/0.06)_1px,transparent_1px)] [background-size:64px_64px] [mask-image:radial-gradient(ellipse_at_center,black_20%,transparent_75%)]"}),(0,t.jsxs)("div",{className:"relative container mx-auto px-4 max-w-5xl",children:[(0,t.jsxs)("div",{className:"text-center mb-20 md:mb-24 max-w-3xl mx-auto",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1 mb-5 rounded-full border border-cyan-400/30 bg-gradient-to-r from-cyan-100/60 to-yellow-100/60 dark:from-cyan-400/10 dark:to-yellow-400/10 text-xs font-mono tracking-wider text-cyan-800 dark:text-cyan-200 uppercase",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"}),"3-step workflow"]}),(0,t.jsx)("h2",{className:(0,i.cn)("text-3xl md:text-5xl font-bold text-gray-900 dark:text-white leading-[1.1] tracking-tight",(0,r.accentTitleClass)(e.accent)),children:e.title}),e.description&&(0,t.jsx)("p",{className:"mt-5 text-base md:text-lg text-gray-600 dark:text-gray-400 leading-relaxed",children:e.description})]}),(0,t.jsxs)("ol",{className:"relative space-y-20 md:space-y-28",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"hidden md:block absolute left-1/2 top-0 bottom-0 w-px -translate-x-1/2 bg-gradient-to-b from-transparent via-gray-300 dark:via-white/20 to-transparent"}),s.map((s,n)=>{let l=n%2==0;return(0,t.jsx)("li",{className:"relative",children:(0,t.jsxs)("div",{className:(0,i.cn)("grid grid-cols-1 md:grid-cols-2 items-center gap-8 md:gap-16",!l&&"md:[&>div:first-child]:order-2"),children:[(0,t.jsx)("div",{className:(0,i.cn)("flex md:items-center",l?"md:justify-end":"md:justify-start"),children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"block font-black leading-none tracking-tighter text-[120px] md:text-[180px] bg-gradient-to-br from-cyan-400 to-yellow-300 dark:from-cyan-300 dark:to-yellow-200 bg-clip-text text-transparent select-none",children:String(n+1).padStart(2,"0")}),(0,t.jsx)("span",{"aria-hidden":!0,className:(0,i.cn)("hidden md:block absolute top-1/2 -translate-y-1/2 w-3 h-3 rounded-full bg-gradient-to-br from-cyan-400 to-yellow-300 ring-4 ring-white dark:ring-background",l?"-right-[calc(4rem+6px)]":"-left-[calc(4rem+6px)]")})]})}),(0,t.jsxs)("div",{className:(0,i.cn)("max-w-md",l?"md:pl-6":"md:pr-6 md:ml-auto md:text-right"),children:[(0,t.jsxs)("div",{className:(0,i.cn)("flex items-center gap-2 mb-3 text-xs font-mono uppercase tracking-[0.2em] text-gray-500 dark:text-gray-500",!l&&"md:justify-end"),children:[s.icon&&(0,t.jsx)(a.default,{name:s.icon,className:"w-4 h-4 text-yellow-500 dark:text-yellow-400"}),(0,t.jsxs)("span",{children:["step / ",String(n+1).padStart(2,"0")]})]}),(0,t.jsx)("h3",{className:(0,i.cn)("text-2xl md:text-3xl font-bold text-gray-900 dark:text-white mb-3 leading-tight",(0,r.accentTitleClass)(e.accent)),children:s.title}),(0,t.jsx)("p",{className:"text-sm md:text-base text-gray-600 dark:text-gray-400 leading-relaxed",children:s.description})]})]})},n)})]}),(0,t.jsx)("div",{className:"mt-20 md:mt-24 flex items-center justify-center",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2 rounded-full border border-gray-200 dark:border-white/10 bg-gray-50 dark:bg-white/[0.03] font-mono text-[11px] uppercase tracking-wider text-gray-500 dark:text-gray-400",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"}),"avg. finish time · ~60s"]})})]})]})}])},877065,e=>{"use strict";var t=e.i(165923);e.s(["Plus",()=>t.default])},333770,681657,e=>{"use strict";var t=e.i(579657),a=e.i(273443),i=e.i(877065);let r=(0,e.i(85208).default)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);e.s(["Minus",()=>r],681657);var s=e.i(612797),n=e.i(568723),l=e.i(975157),o=e.i(896038);function d({section:e}){let d=(0,s.useTranslations)("user");return e.disabled?null:(0,t.jsx)("section",{id:e.name,className:"py-16 md:py-24",children:(0,t.jsxs)("div",{className:"container max-w-4xl",children:[(0,t.jsxs)("div",{className:"text-center mb-12",children:[(0,t.jsx)("h2",{className:(0,l.cn)("text-3xl md:text-4xl font-bold tracking-tight",(0,o.accentTitleClass)(e.accent)),children:e.title}),e.description&&(0,t.jsx)("p",{className:"mt-4 text-lg text-muted-foreground max-w-2xl mx-auto",children:e.description}),(0,t.jsxs)("p",{className:"mt-3 text-base text-muted-foreground",children:[d("contact_us_short")," ",(0,t.jsx)("a",{href:`mailto:${n.BRAND_EMAIL_SUPPORT}`,className:"font-medium text-primary hover:underline",children:n.BRAND_EMAIL_SUPPORT})]})]}),(0,t.jsx)(a.Accordion,{type:"single",collapsible:!0,className:"w-full space-y-3",children:e.items?.map((e,s)=>(0,t.jsxs)(a.AccordionItem,{value:`item-${s}`,className:"border border-border/50 rounded-xl px-6 bg-muted/30 data-[state=open]:bg-muted/50 transition-colors",children:[(0,t.jsxs)(a.AccordionTrigger,{className:"text-left text-base md:text-lg font-medium hover:no-underline py-5 [&[data-state=open]>div>.icon-plus]:hidden [&[data-state=open]>div>.icon-minus]:block [&>svg]:hidden",children:[(0,t.jsx)("span",{className:"flex-1 pr-4",children:e.title}),(0,t.jsxs)("div",{className:"shrink-0 w-6 h-6 rounded-full bg-primary/10 flex items-center justify-center",children:[(0,t.jsx)(i.Plus,{className:"icon-plus w-4 h-4 text-primary"}),(0,t.jsx)(r,{className:"icon-minus w-4 h-4 text-primary hidden"})]})]}),(0,t.jsx)(a.AccordionContent,{className:"text-muted-foreground text-base leading-relaxed pb-5",children:e.description})]},s))})]})})}e.s(["default",()=>d],333770)},867073,e=>{"use strict";let t=(0,e.i(85208).default)("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);e.s(["default",()=>t])}
1,351538,e=>{"use strict";let t=(0,e.i(85208).default)("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);e.s(["default",()=>t])},165923,e=>{"use strict";let t=(0,e.i(85208).default)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["default",()=>t])},575532,615599,e=>{"use strict";e.s(["DEFAULT_MAX_INPUT_IMAGE_BYTES",0,0xa00000,"MEBIBYTE",0,1048576],615599);let t=[{id:"gpt-image-2-5",name:"GPT Image 2.5",description:"Sharper detail, faster generation, and more precise image editing",badge:"NEW",provider:"kieai-gpt-image-2",supportedModes:["txt2img","img2img"],creditsPerImage:{txt2img:3,img2img:3},pricing:{byResolution:{"1K":{premiumYearly:3,nonPremiumYearly:4.2,upstreamCredits:6},"2K":{premiumYearly:5,nonPremiumYearly:7,upstreamCredits:10},"4K":{premiumYearly:8,nonPremiumYearly:11.2,upstreamCredits:16}}},features:{customSize:!1,multipleOutputs:!0,aspectRatios:["auto","1:1","3:2","2:3","16:9","9:16","4:3","3:4","21:9","27:16","16:27","9:8","8:9"],resolutions:["1K","2K","4K"],maxInputImages:16,maxInputImageBytes:0x1e00000,promptMinLength:1,promptMaxLength:2e4,outputFormats:["jpeg"],backgrounds:["transparent","opaque","auto"],defaultBackground:"auto"},icon:"/imgs/models/openai-color.svg"},{id:"gpt-image-2",name:"GPT Image 2",description:"OpenAI GPT Image 2 — high-fidelity generation with natural scene understanding",badge:"Best",provider:"kieai-gpt-image-2",supportedModes:["txt2img","img2img"],creditsPerImage:{txt2img:3,img2img:3},features:{customSize:!1,multipleOutputs:!0,aspectRatios:["auto","1:1","3:2","2:3","4:3","3:4","16:9","9:16","2:1","1:2","3:1","1:3","21:9","9:21","5:4","4:5"],resolutions:["1K","2K","4K"],maxInputImages:16,promptMaxLength:2e4},icon:"/imgs/models/openai-color.svg"},{id:"nano-banana-2",name:"Nano Banana 2",description:"Advanced reasoning, perfect text rendering, multi-character consistency, 4K quality",hidden:!0,vipIcon:!0,provider:"kieai-nano-banana-2",supportedModes:["txt2img","img2img"],creditsPerImage:{txt2img:3,img2img:3},features:{customSize:!0,multipleOutputs:!0,aspectRatios:["1:1","2:3","3:2","3:4","4:3","4:5","5:4","9:16","16:9","21:9","auto"],resolutions:["1K","2K","4K"],maxInputImages:14,maxInputImageBytes:0x1e00000,promptMaxLength:2e4},icon:"https://pub-33ecb9363d53468c95faf00bae1c6ac5.r2.dev/assets/imgs/models/nano-banana-color.png"},{id:"nano-banana-pro",name:"Nano Banana Pro",description:"Advanced reasoning, perfect text rendering, multi-character consistency, 4K quality",provider:"kieai-nano-banana-pro",supportedModes:["txt2img","img2img"],creditsPerImage:{txt2img:14,img2img:14},features:{customSize:!0,multipleOutputs:!0,aspectRatios:["1:1","2:3","3:2","3:4","4:3","4:5","5:4","9:16","16:9","21:9"],resolutions:["1K","2K","4K"],maxInputImages:8,maxInputImageBytes:0x1e00000,promptMaxLength:2e4},icon:"https://pub-33ecb9363d53468c95faf00bae1c6ac5.r2.dev/assets/imgs/models/nano-banana-color.png"},{id:"nano-banana",name:"Nano Banana",description:"Ultra-high character consistency",provider:"kieai-nano-banana",fallbackProvider:"wavespeed-nano-banana",supportedModes:["txt2img","img2img"],creditsPerImage:{txt2img:4,img2img:4},features:{customSize:!1,multipleOutputs:!0,aspectRatios:["1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9"],maxInputImages:10,maxInputImageBytes:0xa00000,promptMaxLength:2e4},icon:"https://pub-33ecb9363d53468c95faf00bae1c6ac5.r2.dev/assets/imgs/models/nano-banana-color.png"},{id:"seedream-5-pro",name:"Seedream 5 Pro",description:"Precision editing, realistic detail, and multilingual visual creation",badge:"Recommended",provider:"kieai-seedream",supportedModes:["txt2img","img2img"],creditsPerImage:{txt2img:3.5,img2img:3.5},pricing:{byResolution:{"1K":{premiumYearly:3.5,nonPremiumYearly:5,upstreamCredits:7},"2K":{premiumYearly:7,nonPremiumYearly:9,upstreamCredits:14}},inputImageCredits:.5,firstInputImageFree:!0,upstreamInputImageCredits:.5,upstreamFirstInputImageFree:!0},providerParams:{models:{txt2img:"seedream/5-pro-text-to-image",img2img:"seedream/5-pro-image-to-image"}
1,qualityByResolution:{"1K":"basic","2K":"high"},defaultAspectRatio:"1:1",nsfwChecker:!1},features:{customSize:!0,multipleOutputs:!0,aspectRatios:["1:1","4:3","3:4","16:9","9:16","2:3","3:2","21:9"],resolutions:["1K","2K"],maxInputImages:10,maxInputImageBytes:0x1e00000,outputFormats:["png","jpeg"],layerDecomposition:!1},icon:"/imgs/models/seedream-color.svg"},{id:"seedream-5-lite",name:"Seedream 5 Lite",description:"Latest generation, fastest speed, stunning quality",provider:"kieai-seedream",supportedModes:["txt2img","img2img"],creditsPerImage:{txt2img:3,img2img:3},pricing:{byResolution:{"2K":{premiumYearly:3,nonPremiumYearly:5,upstreamCredits:5.5},"3K":{premiumYearly:3,nonPremiumYearly:5,upstreamCredits:5.5},"4K":{premiumYearly:3,nonPremiumYearly:5,upstreamCredits:5.5}}},providerParams:{models:{txt2img:"seedream/5-lite-text-to-image",img2img:"seedream/5-lite-image-to-image"},qualityByResolution:{"2K":"basic","3K":"high","4K":"ultra"},defaultAspectRatio:"1:1",nsfwChecker:!1},features:{customSize:!0,multipleOutputs:!0,aspectRatios:["1:1","4:3","3:4","16:9","9:16","2:3","3:2","21:9"],resolutions:["2K","3K","4K"],maxInputImages:14,maxInputImageBytes:0x1e00000,promptMinLength:3,promptMaxLength:3e3,outputFormats:["png","jpeg"]},icon:"/imgs/models/seedream-color.svg"},{id:"seedream-4-5",name:"Seedream 4.5",description:"Character consistency, ultra-sharp realism, cinematic lighting",hidden:!0,provider:"fal",fallbackProvider:"kieai-seedream",supportedModes:["txt2img","img2img"],creditsPerImage:{txt2img:4,img2img:4},features:{customSize:!0,multipleOutputs:!0,aspectRatios:["1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9"],resolutions:["2K","4K"],maxInputImages:14,promptMaxLength:3e3},icon:"/imgs/models/seedream-color.svg"},{id:"z-image",name:"Z-Image",description:"Free image generator speed with production-ready quality",hidden:!0,badge:"Free",provider:"kieai-nano-banana",supportedModes:["txt2img"],creditsPerImage:{txt2img:1,img2img:0},features:{customSize:!1,multipleOutputs:!1,aspectRatios:["1:1","4:3","3:4","16:9","9:16"],maxInputImages:0,promptMaxLength:1e3},icon:"/imgs/models/wan-color.svg"}],a="gpt-image-2";function i(e){return t.find(t=>t.id===e)}function r(e){if(e){let t=i(e);if(t)return t}return i(a)||t[0]}function s(){let e=new Map(["gpt-image-2-5","gpt-image-2","seedream-5-pro","seedream-5-lite","nano-banana-pro","nano-banana"].map((e,t)=>[e,t]));return[...t].sort((t,a)=>(e.get(t.id)??Number.MAX_SAFE_INTEGER)-(e.get(a.id)??Number.MAX_SAFE_INTEGER))}function n(e){return e.features.maxInputImageBytes??0xa00000}function l(e,t,a,r,s=0){let n=i(e);if(!n)return"txt2img"===t?4*a:12*a;let c=n.creditsPerImage[t],m=n.pricing?.byResolution?.[o(r)];m&&(c=m.premiumYearly),"nano-banana-pro"===e?c="4K"===r?8:4:"nano-banana"===e?c=2:"nano-banana-2"===e?c="4K"===r?6:"2K"===r?4:3:"gpt-image-2"===e&&(c=d[u(r)].vip);let p=n.pricing?.firstInputImageFree?Math.max(0,s-1):s;return(c+(n.pricing?.inputImageCredits||0)*p)*a}function o(e){return"2K"===e||"3K"===e||"4K"===e?e:"1K"}let d={"1K":{vip:3,nonVip:4.5},"2K":{vip:5,nonVip:7.5},"4K":{vip:8,nonVip:11}},c=new Set(["5:4","4:5","3:1","1:3","9:21"]);function u(e){return"2K"===e?"2K":"4K"===e?"4K":"1K"}function m(e,t){let a=i(e),r=a?.features.resolutions;return r&&0!==r.length&&"gpt-image-2"===e&&t&&c.has(t)?r.filter(e=>"1K"===e):r}function p(e,t,a){if("gpt-image-2"===e&&"1K"!==a&&t&&c.has(t))return"gpt_image_2_high_res_ratio_not_supported"}let g=new Set(["gpt-image-2-5","gpt-image-2","seedream-5-pro","seedream-5-lite"]);function x(e,t,a,r,s,n=0){if("gpt-image-2"===e){let e=d[u(r)];return(s?e.vip:e.nonVip)*a}let c=i(e),m=c?.pricing?.byResolution?.[o(r)];
1if(c&&m){let e=s?m.premiumYearly:m.nonPremiumYearly,t=c.pricing?.firstInputImageFree?Math.max(0,n-1):n;return(e+(c.pricing?.inputImageCredits||0)*t)*a}return l(e,t,a,r,n)}function f(e){let t=i(e)?.features.outputFormats;return t&&t.length>0?t:e.startsWith("seedream-")&&"seedream-5-lite"!==e||"z-image"===e||"gpt-image-2"===e||"gpt-image-2-5"===e?["jpeg"]:e.startsWith("nano-banana")?["png","jpeg"]:["png","jpeg","webp"]}let h=["The text content failed the review","NSFW","nsfw","Your input was rejected","Prompt was rejected","Prompt rejected","createTaskRep is blank"];function b(e){if(!e)return!1;let t=e.toLowerCase();return h.some(e=>t.includes(e.toLowerCase()))}function v(e){return"nano-banana"===e||"nano-banana-pro"===e||"nano-banana-2"===e||"gpt-image-2"===e||"gpt-image-2-5"===e}e.s(["DEFAULT_IMAGE_MODEL_ID",0,a,"IMAGE_MODELS",0,t,"PREMIUM_DISCOUNTED_IMAGE_MODELS",0,g,"calculateImageCredits",()=>l,"calculateImageCreditsForUser",()=>x,"getAllImageModels",()=>s,"getAllowedResolutionsForAspectRatio",()=>m,"getDefaultImageModel",()=>r,"getImageModelConfig",()=>i,"getMaxInputImageBytes",()=>n,"getResolutionConstraintReason",()=>p,"getSupportedOutputFormats",()=>f,"isNanoBananaModel",()=>v,"isNsfwError",()=>b],575532)},799801,e=>{"use strict";function t(e){let t=(e||"aivideoapi").toLowerCase(),a="wavespeed"===t?"kieai":t;if("kieai"!==a&&"aivideoapi"!==a)throw Error(`Invalid persisted Seedance 2 provider: ${a}. Use "aivideoapi" or "kieai".`);return a}let a="/imgs/models/seedream-color.svg",i={veo4:"seedance-2.5","omni-flash":"seedance-2.5","gemini-omni":"seedance-2.5","gemini-omni-flash":"seedance-2.5"};function r(e){return i[e]||e}let s=[{id:"seedance-2.5",name:"Seedance 2.5",description:"Multimodal video generation with up to 30 images, 10 videos, and 10 audio clips",provider:"aivideoapi",maxDuration:30,minDuration:4,supportedDurations:[],supportedResolutions:["480p","720p"],supportedModes:["text-to-video","image-to-video"],creditsPerVideo:{"text-to-video":20,"image-to-video":24},features:{audioGeneration:!0,audioDescription:!1,motionControl:!1,seedControl:!1,promptOptional:!1,promptMaxLength:2e4,durationSlider:!0},icon:a,vipIcon:!0,supportedParams:{resolutions:[{id:"480p",label:"480P (SD)",isDefault:!0},{id:"720p",label:"720P (HD)",isDefault:!1}],durations:[],durationRange:{min:4,max:30,step:1,default:4},textToVideoParams:{aspectRatios:[{id:"adaptive",label:"Adaptive",isDefault:!0},{id:"16:9",label:"16:9 (Widescreen)",isDefault:!1},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"4:3",label:"4:3 (Standard)",isDefault:!1},{id:"3:4",label:"3:4 (Portrait)",isDefault:!1},{id:"21:9",label:"21:9 (Cinematic)",isDefault:!1}],specialParams:{webSearch:!0}},imageToVideoParams:{aspectRatios:void 0,specialParams:{endImage:!0}},referenceToVideoParams:{aspectRatios:[{id:"adaptive",label:"Adaptive",isDefault:!0},{id:"16:9",label:"16:9 (Widescreen)",isDefault:!1},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"4:3",label:"4:3 (Standard)",isDefault:!1},{id:"3:4",label:"3:4 (Portrait)",isDefault:!1},{id:"21:9",label:"21:9 (Cinematic)",isDefault:!1}],specialParams:{videoEdit:!0}},commonSpecialParams:{returnLastFrame:!0,outputFormat:["mp4","mov"]}},defaultParams:{resolution:"480p",aspectRatio:"adaptive",duration:4,generateAudio:!0,outputCount:1}},{id:"seedance-2.0",name:"Seedance 2.0",description:"Latest video generation with enhanced quality and multi-reference support",provider:"aivideoapi",maxDuration:15,minDuration:4,supportedDurations:[],supportedResolutions:["480p","720p","1080p","4k"],supportedModes:["text-to-video","image-to-video"],creditsPerVideo:{"text-to-video":20,"image-to-video":24},features:{audioGeneration:!0,audioDescription:!1,motionControl:!1,seedControl:!0,promptOptional:!1,promptMaxLength:2e4,durationSlider:!0},icon:a,vipIcon:!0,supportedParams:{resolutions:[{id:"480p",label:"480P (SD)",isDefault:!0},{id:"720p",label:"720P (HD)",isDefault:!1},{id:"1080p",label:"1080P (FHD)",isDefault:!1},{id:"4k",label:"4K (UHD)",isDefault:!1}],durations:[],durationRange:{min:4,max:15,step:1,default:4},textToVideoParams:{aspectRatios:[{id:"adaptive",label:"Adaptive",isDefault:!0},{id:"16:9",label:"16:9 (Widescreen)",isDefault:!1},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"4:3",label:"4:3 (Standard)",isDefault:!1},{id:"3:4",label:"3:4 (Portrait)",isDefault:!1},{id:"21:9",label:"21:9 (Cinematic)",isDefault:!1}],specialParams:{webSearch:!0}},imageToVideoParams:{aspectRatios:[{id:"adaptive",label:"Adaptive",isDefault:!0},{id:"16:9",label:"16:9 (Widescreen)",isDefault:!1},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"4:3",label:"4:3 (Standard)",isDefault:!1},{id:"3:4",label:"3:4 (Portrait)",isDefault:!1},{id:"21:9",label:"21:9 (Cinematic)",isDefault:!1}],specialParams:{endImage:!0}},referenceToVideoParams:{aspectRatios:[{id:"adaptive",label:"Adaptive",isDefault:!0},{id:"16:9",label:"16:9 (Widescreen)",isDefault:!1},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"4:3",label:"4:3 (Standard)",isDefault:!1},{id:"3:4",label:"3:4 (Portrait)",isDefault:!1},{id:"21:9",label:"21:9 (Cinematic)",isDefault:!1}]},seedRange:{min:-1,max:0xffffffff},commonSpecialParams:{modelVersion:["seedance-2-standard","seedance-2-fast"],returnLastFrame:!0}},defaultParams:{resolution:"480p",aspectRatio:"adaptive",duration:4,generateAudio:!0,outputCount:1}},{id:"seedance-2.0-mini",name:"Seedance 2.0 Mini",description:"Lower-cost Seedance 2 generation with multi-reference support and native audio",provider:"aivideoapi",maxDuration:15,minDuration:4,supportedDurations:[],supportedResolutions:["480p","720p"],supportedModes:["text-to-vi
1deo","image-to-video"],creditsPerVideo:{"text-to-video":10,"image-to-video":12},features:{audioGeneration:!0,audioDescription:!1,motionControl:!1,seedControl:!0,promptOptional:!1,promptMaxLength:2e4,durationSlider:!0},icon:a,supportedParams:{resolutions:[{id:"480p",label:"480P (SD)",isDefault:!0},{id:"720p",label:"720P (HD)",isDefault:!1}],durations:[],durationRange:{min:4,max:15,step:1,default:4},textToVideoParams:{aspectRatios:[{id:"adaptive",label:"Adaptive",isDefault:!0},{id:"16:9",label:"16:9 (Widescreen)",isDefault:!1},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"4:3",label:"4:3 (Standard)",isDefault:!1},{id:"3:4",label:"3:4 (Portrait)",isDefault:!1},{id:"21:9",label:"21:9 (Cinematic)",isDefault:!1}],specialParams:{webSearch:!0}},imageToVideoParams:{aspectRatios:[{id:"adaptive",label:"Adaptive",isDefault:!0},{id:"16:9",label:"16:9 (Widescreen)",isDefault:!1},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"4:3",label:"4:3 (Standard)",isDefault:!1},{id:"3:4",label:"3:4 (Portrait)",isDefault:!1},{id:"21:9",label:"21:9 (Cinematic)",isDefault:!1}],specialParams:{endImage:!0}},referenceToVideoParams:{aspectRatios:[{id:"adaptive",label:"Adaptive",isDefault:!0},{id:"16:9",label:"16:9 (Widescreen)",isDefault:!1},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"4:3",label:"4:3 (Standard)",isDefault:!1},{id:"3:4",label:"3:4 (Portrait)",isDefault:!1},{id:"21:9",label:"21:9 (Cinematic)",isDefault:!1}]},seedRange:{min:-1,max:0xffffffff},commonSpecialParams:{returnLastFrame:!0}},defaultParams:{resolution:"480p",aspectRatio:"adaptive",duration:4,generateAudio:!0,outputCount:1}},{id:"seedance-1.5-pro",name:"Seedance 1.5 Pro",description:"Next-gen video generation with audio support",provider:"kieai",maxDuration:12,supportedDurations:[4,8,12],supportedResolutions:["480p","720p","1080p"],supportedModes:["text-to-video","image-to-video"],creditsPerVideo:{"text-to-video":10,"image-to-video":12},features:{audioGeneration:!0,audioDescription:!1,motionControl:!0,seedControl:!1,promptOptional:!1,promptMaxLength:2e4},icon:a,badge:"Free Tries",supportedParams:{resolutions:[{id:"480p",label:"480P (SD)",isDefault:!0},{id:"720p",label:"720P (HD)",isDefault:!1},{id:"1080p",label:"1080P (FHD)",isDefault:!1}],durations:[{value:4,label:"4 seconds",creditsMultiplier:.5,isDefault:!0},{value:8,label:"8 seconds",creditsMultiplier:1,isDefault:!1},{value:12,label:"12 seconds",creditsMultiplier:1.5,isDefault:!1}],textToVideoParams:{aspectRatios:[{id:"16:9",label:"16:9 (Widescreen)",isDefault:!0},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"4:3",label:"4:3 (Standard)",isDefault:!1},{id:"3:4",label:"3:4 (Portrait)",isDefault:!1},{id:"21:9",label:"21:9 (Cinematic)",isDefault:!1}],specialParams:{}},imageToVideoParams:{aspectRatios:[{id:"16:9",label:"16:9 (Widescreen)",isDefault:!0},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"4:3",label:"4:3 (Standard)",isDefault:!1},{id:"3:4",label:"3:4 (Portrait)",isDefault:!1},{id:"21:9",label:"21:9 (Cinematic)",isDefault:!1}],specialParams:{endImage:!0}},commonSpecialParams:{fixedCamera:!0}},defaultParams:{resolution:"480p",aspectRatio:"16:9",duration:4,generateAudio:!1,outputCount:1}},{id:"minimax-h3",name:"MiniMax H3",description:"Native video with text, first/last frames, and multimodal references",provider:"aivideoapi",maxDuration:15,minDuration:4,supportedDurations:[],supportedResolutions:["720p","2k"],supportedModes:["text-to-video","image-to-video"],creditsPerVideo:{"text-to-video":30,"image-to-video":30},features:{audioGeneration:!1,audioDescription:!1,motionControl:!1,seedControl:!1,promptOptional:!1,promptMaxLength:7e3,durationSlider:!0},icon:"/imgs/models/hailuo-color.svg",vipIcon:!0,supportedParams:{resolutions:[{id:"720p",label:"720P",isDefault:!0},{id:"2k",label:"2K",isDefault:!1}],durations:[],durationRange:{min:4,max:15,step:1,default:4},textToVideoParams:{aspectRatios:[{id:"21:9",label:"21:9 (Cinematic)",isDefault:!1},{id:"16:9",label:"16:9 (Widescreen)",isDefault:!0},{id:"4:3",label:"4:3 (Standard)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"3:4",label:"3:4 (Portrait)",isDefault:!1},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1}]},imageToVideoParams:{specialParams:{endImage:!0}},referenceToVideoParams:{aspectRatios:[{id:"adaptive",label:"Adaptive",isDefault:!1},{id:"21:9",label:"21:9 (Cinematic)",isDefault:!1},{id:"16:9",label:"16:9 (Widescreen)",isDefault:!0},{id:"4:3",label:"4:3 (Standard)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"3:4",label:"3:4 (Portrait)",isDefault:!1},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1}]}},defaultParams:{resolution:"720p",aspectRatio:"16:9",duration:4,generateAudio:!1,outputCount:1}},{id:"sora-2",name:"Sora 2",description:"Ultra-fast AI video generation by OpenAI",provider:"kieai",hidden:!0,maxDuration:15,supportedDurations:[10,15],supportedResolutions:["720p"],supportedModes:["text-to-vi
1deo","image-to-video"],creditsPerVideo:{"text-to-video":5,"image-to-video":5},features:{audioGeneration:!1,motionControl:!1,seedControl:!1,promptOptional:!1,promptMaxLength:1e4},icon:"/imgs/models/openai-color.svg",supportedParams:{resolutions:[{id:"720p",label:"720P",isDefault:!0}],durations:[{value:10,label:"10 seconds",creditsMultiplier:1,isDefault:!0},{value:15,label:"15 seconds",creditsMultiplier:1.4,isDefault:!1}],textToVideoParams:{aspectRatios:[{id:"16:9",label:"16:9 (Landscape)",isDefault:!0},{id:"9:16",label:"9:16 (Portrait)",isDefault:!1}],specialParams:{}},imageToVideoParams:{aspectRatios:[{id:"16:9",label:"16:9 (Landscape)",isDefault:!0},{id:"9:16",label:"9:16 (Portrait)",isDefault:!1}],specialParams:{}}},defaultParams:{resolution:"720p",aspectRatio:"16:9",duration:10,generateAudio:!1,outputCount:1}},{id:"wan-3.0",name:"Wan 3.0",description:"Omni-reference video generation with Standard and faster Prime routes",provider:"kieai",maxDuration:30,minDuration:2,supportedDurations:[],supportedResolutions:["480p","720p","1080p"],supportedModes:["text-to-video","image-to-video"],creditsPerVideo:{"text-to-video":20,"image-to-video":20},features:{audioGeneration:!0,motionControl:!1,seedControl:!0,promptOptional:!1,promptMaxLength:2e4,durationSlider:!0},icon:"/imgs/models/wan-color.svg",badge:"Freeform",supportedParams:{resolutions:[{id:"480p",label:"480P (SD)",isDefault:!0},{id:"720p",label:"720P (HD)",isDefault:!1},{id:"1080p",label:"1080P (Full HD)",isDefault:!1}],durations:[],durationRange:{min:2,max:30,step:1,default:5},textToVideoParams:{aspectRatios:[{id:"adaptive",label:"Adaptive",isDefault:!0},{id:"16:9",label:"16:9 (Landscape)",isDefault:!1},{id:"4:3",label:"4:3",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"3:4",label:"3:4",isDefault:!1},{id:"9:16",label:"9:16 (Portrait)",isDefault:!1}],specialParams:{seed:!0}},imageToVideoParams:{aspectRatios:[{id:"adaptive",label:"Adaptive",isDefault:!0},{id:"16:9",label:"16:9 (Landscape)",isDefault:!1},{id:"4:3",label:"4:3",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"3:4",label:"3:4",isDefault:!1},{id:"9:16",label:"9:16 (Portrait)",isDefault:!1}],specialParams:{seed:!0,endImage:!0}},referenceToVideoParams:{aspectRatios:[{id:"adaptive",label:"Adaptive",isDefault:!0},{id:"16:9",label:"16:9 (Landscape)",isDefault:!1},{id:"4:3",label:"4:3",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"3:4",label:"3:4",isDefault:!1},{id:"9:16",label:"9:16 (Portrait)",isDefault:!1}],specialParams:{seed:!0,referenceLinkUrls:!0,referenceFileUrls:!0}},seedRange:{min:0,max:0x7fffffff},commonSpecialParams:{seed:!0,wan30Route:["standard","prime"]}},defaultParams:{resolution:"480p",aspectRatio:"adaptive",duration:5,generateAudio:!0,outputCount:1}},{id:"wan-2.7",name:"Wan 2.7",description:"Four-mode video generation: text, image, reference, and video edit",provider:"kieai",maxDuration:10,minDuration:2,supportedDurations:[],supportedResolutions:["720p","1080p"],supportedModes:["text-to-video","image-to-video"],creditsPerVideo:{"text-to-video":40,"image-to-video":40},features:{audioGeneration:!1,motionControl:!1,seedControl:!0,promptOptional:!1,promptMaxLength:5e3,durationSlider:!0},icon:"/imgs/models/wan-color.svg",badge:"Freeform",supportedParams:{resolutions:[{id:"720p",label:"720P (HD)",isDefault:!0},{id:"1080p",label:"1080P (Full HD)",isDefault:!1}],durations:[],durationRange:{min:2,max:10,step:1,default:5},textToVideoParams:{aspectRatios:[{id:"16:9",label:"16:9 (Landscape)",isDefault:!0},{id:"9:16",label:"9:16 (Portrait)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"4:3",label:"4:3",isDefault:!1},{id:"3:4",label:"3:4",isDefault:!1}],specialParams:{seed:!0,negativePrompt:!0}},imageToVideoParams:{aspectRatios:void 0,specialParams:{seed:!0,negativePrompt:!0,endImage:!0}},referenceToVideoParams:{aspectRatios:[{id:"16:9",label:"16:9 (Landscape)",isDefault:!0},{id:"9:16",label:"9:16 (Portrait)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"4:3",label:"4:3",isDefault:!1},{id:"3:4",label:"3:4",isDefault:!1}],specialParams:{seed:!0,negativePrompt:!0}},videoEditParams:{aspectRatios:[{id:"16:9",label:"16:9 (Landscape)",isDefault:!0},{id:"9:16",label:"9:16 (Portrait)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"4:3",label:"4:3",isDefault:!1},{id:"3:4",label:"3:4",isDefault:!1}],specialParams:{seed:!0,negativePrompt:!0,audioSetting:!0,sourceVideoDuration:!0}},seedRange:{min:0,max:0x7fffffff},commonSpecialParams:{seed:!0,negativePrompt:!0,wanMode:!0}},defaultParams:{resolution:"720p",aspectRatio:"16:9",duration:5,generateAudio:!1,outputCount:1}},{id:"wan-2.6",name:"Wan 2.6",description:"High-quality video generation with 720p and 1080p support",provider:"kieai",maxDuration:15,supportedDurations:[5,10,15],supportedResolutions:["720p","1080p"],supportedModes:["text-to-vi
1deo","image-to-video"],creditsPerVideo:{"text-to-video":35,"image-to-video":35},features:{audioGeneration:!1,motionControl:!1,seedControl:!1,promptOptional:!1,promptMaxLength:5e3},icon:"/imgs/models/wan-color.svg",badge:"Freeform",supportedParams:{resolutions:[{id:"720p",label:"720P (HD)",isDefault:!0},{id:"1080p",label:"1080P (Full HD)",isDefault:!1}],durations:[{value:5,label:"5 seconds",creditsMultiplier:1,isDefault:!0},{value:10,label:"10 seconds",creditsMultiplier:2,isDefault:!1},{value:15,label:"15 seconds",creditsMultiplier:3,isDefault:!1}],textToVideoParams:{aspectRatios:void 0,specialParams:{}},imageToVideoParams:{aspectRatios:void 0,specialParams:{}},commonSpecialParams:{multiShots:!0}},defaultParams:{resolution:"720p",duration:5,generateAudio:!1,outputCount:1}},{id:"grok-imagine",name:"Grok Imagine",description:"Creative video generation by xAI with fun, normal and spicy modes",provider:"kieai",maxDuration:10,supportedDurations:[6,10],supportedResolutions:[],supportedModes:["text-to-video","image-to-video"],creditsPerVideo:{"text-to-video":10,"image-to-video":10},features:{audioGeneration:!1,motionControl:!1,seedControl:!1,promptOptional:!0,promptMaxLength:5e3},icon:"/imgs/models/grok-color.svg",supportedParams:{resolutions:[],durations:[{value:6,label:"6 seconds",creditsMultiplier:1,isDefault:!0},{value:10,label:"10 seconds",creditsMultiplier:1.5,isDefault:!1}],textToVideoParams:{aspectRatios:[{id:"16:9",label:"16:9 (Widescreen)",isDefault:!0},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1},{id:"3:2",label:"3:2 (Landscape)",isDefault:!1},{id:"2:3",label:"2:3 (Portrait)",isDefault:!1}],specialParams:{}},imageToVideoParams:{aspectRatios:void 0,specialParams:{}},commonSpecialParams:{grokMode:["fun","normal","spicy"]}},defaultParams:{resolution:"720p",aspectRatio:"16:9",duration:6,generateAudio:!1,outputCount:1}},{id:"kling-3.0",name:"Kling 3.0",description:"Latest Kling model with flexible duration (3-15s) and native audio",provider:"kieai",maxDuration:15,minDuration:3,supportedDurations:[3,4,5,6,7,8,9,10,11,12,13,14,15],supportedResolutions:[],supportedModes:["text-to-video","image-to-video"],creditsPerVideo:{"text-to-video":50,"image-to-video":50},features:{audioGeneration:!0,audioDescription:!1,motionControl:!1,seedControl:!1,promptOptional:!1,promptMaxLength:2500},icon:"/imgs/models/kling-color.svg",supportedParams:{resolutions:[],durations:[{value:3,label:"3s",isDefault:!0},{value:4,label:"4s",isDefault:!1},{value:5,label:"5s",isDefault:!1},{value:6,label:"6s",isDefault:!1},{value:7,label:"7s",isDefault:!1},{value:8,label:"8s",isDefault:!1},{value:9,label:"9s",isDefault:!1},{value:10,label:"10s",isDefault:!1},{value:11,label:"11s",isDefault:!1},{value:12,label:"12s",isDefault:!1},{value:13,label:"13s",isDefault:!1},{value:14,label:"14s",isDefault:!1},{value:15,label:"15s",isDefault:!1}],textToVideoParams:{aspectRatios:[{id:"16:9",label:"16:9 (Widescreen)",isDefault:!0},{id:"9:16",label:"9:16 (Vertical)",isDefault:!1},{id:"1:1",label:"1:1 (Square)",isDefault:!1}],specialParams:{}},imageToVideoParams:{aspectRatios:void 0,specialParams:{endImage:!0}},commonSpecialParams:{mode:["standard","pro"],multiShots:!0}},defaultParams:{resolution:"720p",aspectRatio:"16:9",duration:3,generateAudio:!1,outputCount:1}}];function n(e){let t=r(e);return s.find(e=>e.id===t)}function l(){return s}let o=new Set(["seedance-2.0","seedance-2.0-mini","seedance-2.5"]),d=new Set([...o,"minimax-h3","wan-3.0"]),c=new Set(["seedance-2.0"]);function u(e){return!!e&&o.has(r(e))}function m(e){return!!e&&d.has(r(e))}function p(e){return m(e)}function g(e){return!!e&&c.has(r(e))}let x={"seedance-1.0":{"seedance-1-lite":{"480p":9,"720p":18,"1080p":36},"seedance-1-pro":{"480p":15,"720p":30,"1080p":75}},"seedance-1.5-pro":{"480p":{video:{4:4,8:7,12:10},withAudio:{4:7,8:14,12:19}},"720p":{video:{4:7,8:14,12:21},withAudio:{4:14,8:28,12:42}},"1080p":{video:{4:15,8:30,12:45},withAudio:{4:30,8:60,12:90}}},"seedance-2.0":{"seedance-2-standard":{"480p":{base:9.5,videoRate:5.75},"720p":{base:20.5,videoRate:12.5}
1,"1080p":{base:51,videoRate:31},"4k":{base:104,videoRate:64}},"seedance-2-fast":{"480p":{base:8,videoRate:4.5},"720p":{base:16.5,videoRate:10}}},"seedance-2.0-mini":{"480p":{base:4.75,videoRate:3},"720p":{base:10.25,videoRate:6.25}},"minimax-h3":{perSecond:{"2k":11.6926,"720p":7.3074},additionalImage:2.9222,freeImages:5},"wan-2.6":{"720p":{5:35,10:70,15:105},"1080p":{5:53,10:105,15:158}},"wan-2.7":{perSecond:{"720p":8,"1080p":12}},"wan-3.0":{perSecond:{standard:{"480p":4,"720p":8,"1080p":16},prime:{"480p":7,"720p":13,"1080p":26}}},"sora-2":{10:5,15:7},"grok-imagine":{6:10,10:15},"kling-3.0":{perSecond:{standard:{video:10,withAudio:15},pro:{video:14,withAudio:20}}}},f={"seedance-2.0":{"seedance-2-standard":{"480p":{base:6.84,videoRate:4.56},"720p":{base:14.44,videoRate:9.5},"1080p":{base:36.1,videoRate:23.56},"4k":{base:74.1,videoRate:55.1}},"seedance-2-fast":{"480p":{base:4.1325,videoRate:2.85},"720p":{base:8.6925,videoRate:5.7}}},"seedance-2.0-mini":{"480p":{base:1.368,videoRate:.912},"720p":{base:2.888,videoRate:1.9}}},h={"480p":{base:9.8268,videoRate:6.5512},"720p":{base:22.1046,videoRate:14.7364}};function b(e){return Math.max(0,e||0)}function v(e,a){let i=r(e),{duration:s,resolution:l,aspectRatio:o,mode:d,modelVersion:c,generateAudio:u}=a,m=s/(i.startsWith("sora")?4:5),p=0;if("seedance-1.0"===i&&c){let e=x["seedance-1.0"][c];p=e?.[l]||10}else if("seedance-1.5-pro"===i){let e=x["seedance-1.5-pro"][l];return e&&(u?e.withAudio:e.video)[s]||14}else if("minimax-h3"===i){let e=x["minimax-h3"],t=e.perSecond[l]||e.perSecond["2k"],i=Math.floor(Math.max(0,a.videoInputDuration||0)),r=Math.max(0,Math.max(0,Math.floor(a.imageInputCount||0))-e.freeImages);return Math.ceil(t*(s+i)+e.additionalImage*r)}else if("seedance-2.5"===i){let e=h[l]||h["720p"],t=b(a.videoInputDuration),i=-1===s?t:s;return Math.ceil(t>0?e.videoRate*(t+i):e.base*i)}else if(g(i)){let e="seedance-2-fast"===a.modelVersion?"seedance-2-fast":"seedance-2-standard",r="aivideoapi"===(a.provider||t())?f[i][e]:x[i][e],n=r[l]||r["720p"],o=b(a.videoInputDuration);return Math.ceil(o>0?n.videoRate*(o+s):n.base*s)}else if("seedance-2.0-mini"===i){let e="aivideoapi"===(a.provider||t())?f["seedance-2.0-mini"]:x["seedance-2.0-mini"],i=e[l]||e["720p"],r=b(a.videoInputDuration);return Math.ceil(r>0?i.videoRate*(r+s):i.base*s)}else if("wan-2.6"===i){let e=x["wan-2.6"][l];return e&&e[s.toString()]||35}else if("wan-2.7"===i){let e=x["wan-2.7"].perSecond;return Math.ceil((e[l]||e["720p"])*s)}else if("wan-3.0"===i){let e=x["wan-3.0"].perSecond["prime"===a.wan30Route?"prime":"standard"];return Math.ceil((e[l]??e["480p"])*s)}else if("sora-2"===i)return x["sora-2"][s.toString()]||5;else if("grok-imagine"===i)return x["grok-imagine"][s.toString()]||10;else if("kling-3.0"===i){let e=x["kling-3.0"].perSecond["pro"===d?"pro":"standard"];return Math.ceil(s*(u?e.withAudio:e.video))}else{let e=n(i);p=e?"object"==typeof e.creditsPerVideo?e.creditsPerVideo["text-to-video"]||10:e.creditsPerVideo||10:10}return Math.ceil(p*m)}function y(e){let t=r(e);return t.startsWith("seedance-")||t.startsWith("minimax-")}function w(e,t,a){let i=r(e),s=v(i,t);return a?s:Math.ceil(s*(y(i)?2:1.4))}e.s(["DEFAULT_VIDEO_MODEL_ID",0,"seedance-2.5","VIDEO_MODELS",0,s,"calculateCredits",()=>v,"calculateCreditsForUser",()=>w,"getAllVideoModels",()=>l,"getVideoModelConfig",()=>n,"isMultimodalReferenceVideoModel",()=>m,"isSeedance2ReferenceModel",()=>u,"isSeedance2VersionedModel",()=>g,"isSeedanceOrMinimaxModel",()=>y,"normalizeVideoModelId",()=>r,"usesReferenceModeByDefault",()=>p],799801)},108446,e=>{"use strict";var t=e.i(579657),a=e.i(975157);let i=[{value:"1M+",label:"Creators"},{value:"40M+",label:"Videos generated"},{value:"180+",label:"Countries"},{value:"4.9",label:"Avg. rating",suffix:"/5"}];function r({section:e}){if(e.disabled)return null;let a=e.items||[];if(0===a.length)return null;let r=[...a].sort((e,t)=>(t.description?.length||0)-(e.description?.length||0)).slice(0,2);return(0,t.jsxs)("section",{className:"relative py-20 md:py-28 bg-gradient-to-b from-slate-950 via-slate-900 to-slate-950 text-white overflow-hidden",children:[(0,t.jsx)("div",{"aria-hidden":!0,
1className:"absolute inset-0 opacity-[0.08] [background-image:linear-gradient(to_right,rgb(255_255_255/0.5)_1px,transparent_1px),linear-gradient(to_bottom,rgb(255_255_255/0.5)_1px,transparent_1px)] [background-size:80px_80px] [mask-image:radial-gradient(ellipse_at_center,black_30%,transparent_75%)]"}),(0,t.jsxs)("div",{className:"relative container mx-auto px-4 max-w-6xl",children:[(0,t.jsxs)("div",{className:"text-center mb-14 md:mb-20",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1 mb-5 rounded-full border border-cyan-300/40 bg-gradient-to-r from-cyan-400/15 to-yellow-400/15 text-xs font-mono tracking-wider text-cyan-200 uppercase",children:[(0,t.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"}),"Social proof"]}),e.title&&(0,t.jsx)("h2",{className:"text-3xl md:text-5xl font-bold leading-[1.1] tracking-tight",children:e.title}),e.description&&(0,t.jsx)("p",{className:"mt-4 text-base md:text-lg text-white/60 max-w-2xl mx-auto leading-relaxed",children:e.description})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-px bg-white/10 rounded-2xl overflow-hidden mb-16",children:i.map((e,a)=>(0,t.jsxs)("div",{className:"bg-slate-950 px-5 py-6 md:py-8 flex flex-col items-center justify-center text-center",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-0.5",children:[(0,t.jsx)("span",{className:"text-4xl md:text-5xl font-black tracking-tight bg-gradient-to-br from-cyan-300 to-yellow-300 bg-clip-text text-transparent",children:e.value}),e.suffix&&(0,t.jsx)("span",{className:"text-base md:text-lg font-bold text-white/40",children:e.suffix})]}),(0,t.jsx)("div",{className:"mt-2 text-[10px] md:text-xs font-mono uppercase tracking-wider text-white/50",children:e.label})]},a))}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5 md:gap-6",children:r.map((e,a)=>(0,t.jsx)(s,{item:e,accent:0===a?"yellow":"cyan"},a))})]})]})}function s({item:e,accent:i}){let r={yellow:{quote:"text-yellow-300/50",rule:"from-yellow-300 to-transparent",name:"text-yellow-200"},cyan:{quote:"text-cyan-400/40",rule:"from-cyan-400 to-transparent",name:"text-cyan-300"}}[i],s=(e.title||"").split(/\s+/).map(e=>e[0]).filter(Boolean).slice(0,2).join("").toUpperCase();return(0,t.jsxs)("figure",{className:"relative flex flex-col rounded-2xl bg-white/[0.03] border border-white/10 p-8 md:p-10 backdrop-blur-sm",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:(0,a.cn)("absolute top-6 right-6 text-[120px] md:text-[160px] leading-none font-serif select-none",r.quote),children:"“"}),(0,t.jsx)("blockquote",{className:"relative text-base md:text-lg text-white/90 leading-relaxed font-medium",children:e.description}),(0,t.jsx)("div",{className:(0,a.cn)("my-6 h-px bg-gradient-to-r",r.rule)}),(0,t.jsxs)("figcaption",{className:"flex items-center gap-4",children:[(0,t.jsx)("div",{className:(0,a.cn)("w-11 h-11 rounded-full bg-white/5 border border-white/15 flex items-center justify-center font-mono text-sm font-bold",r.name),children:s||"•"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-semibold text-white",children:e.title}),(0,t.jsx)("div",{className:"text-xs md:text-sm text-white/50 mt-0.5",children:e.label})]})]})]})}e.s(["default",()=>r])},926355,e=>{"use strict";var t=e.i(579657),a=e.i(50746);let i=(0,a.createContext)(void 0);function r({children:e}){let[r,s]=(0,a.useState)(0);return(0,t.jsx)(i.Provider,{value:{refreshTrigger:r,triggerRefresh:()=>{s(e=>e+1)}},children:e})}function s(){let e=(0,a.useContext)(i);if(void 0===e)throw Error("useGenerationHistory must be used within a GenerationHistoryProvider");return e}e.s(["GenerationHistoryProvider",()=>r,"useGenerationHistory",()=>s])},471873,e=>{"use strict";var t=e.i(867073);e.s(["Music",()=>t.default])},40190,e=>{"use strict";function t(e){return`https://cdn.imagev2.ai/${e}`}e.s(["getR2PublicUrl",()=>t])},41817,e=>{"use strict";var t=e.i(615599);let a=["image/jpeg","image/png","image/webp"],i=async e=>{try{return await createImageBitmap(e)}catch{return new Promise((t,a)=>{let i=new Image,r=URL.createObjectURL(e);i.onload=()=>{URL.revokeObjectURL(r),t(i)},i.onerror=()=>{URL.revokeObjectURL(r),a(Error("Unable to decode image"))},i.src=r})}},r=(e,t)=>new Promise((a,i)=>{e.toBlob(e=>e?a(e):i(Error("Failed to encode image")),"image/jpeg",t)}),s=async(e,s=t.DEFAULT_MAX_INPUT_IMAGE_BYTES)=>
1{if(!Number.isFinite(s)||s<=0)throw Error("Invalid image upload size limit");if(a.includes(e.type)&&e.size<=s)return{blob:e,contentType:e.type,filename:e.name};let n=await i(e);try{let t="naturalWidth"in n?n.naturalWidth:n.width,a="naturalHeight"in n?n.naturalHeight:n.height,i=Math.min(1,4096/Math.max(t,a)),l=Math.max(1,Math.round(t*i)),o=Math.max(1,Math.round(a*i)),d=document.createElement("canvas"),c=null;for(let t=0;t<6;t++){d.width=l,d.height=o;let t=d.getContext("2d");if(!t)throw Error("Failed to get canvas context");for(let a of(t.drawImage(n,0,0,l,o),[.9,.8,.65,.5]))if((c=await r(d,a)).size<=s)return{blob:c,contentType:"image/jpeg",filename:e.name.replace(/\.[^.]+$/,"")+".jpg"};if(!c||64>=Math.max(l,o))break;let a=Math.min(.9,.9*Math.sqrt(s/c.size)),i=Math.max(1,Math.floor(l*a)),u=Math.max(1,Math.floor(o*a));if(i===l&&u===o)break;l=i,o=u}throw Error(`Unable to prepare image within ${(s/1024/1024).toFixed(0)} MiB limit`)}finally{"close"in n&&n.close()}};e.s(["compressImage",0,(e,t=2621440)=>new Promise((a,i)=>{let r=new FileReader;r.onload=r=>{let s=new Image;s.onload=()=>{let r=document.createElement("canvas"),n=s.width,l=s.height,o=e.size>0xa00000?800:e.size>5242880?1e3:1200;n>l&&n>o?(l=l*o/n,n=o):l>o&&(n=n*o/l,l=o),r.width=n,r.height=l;let d=r.getContext("2d");if(!d)return i(Error("Failed to get canvas context"));d.drawImage(s,0,0,n,l);try{a(((e,t=2621440)=>{let a=e.toDataURL("image/jpeg",.9),i=Math.floor(3*(a.split(",")[1]||a).length/4);if(i<=t)return a;let r=Math.sqrt(t/i*.8);return r=Math.max(.1,Math.min(.9,r)),e.toDataURL("image/jpeg",r)})(r,t))}catch(e){i(e)}},s.onerror=i,s.src=r.target?.result}
1,r.onerror=i,r.readAsDataURL(e)}),"prepareImageForUpload",0,s])},349330,784288,128627,e=>{"use strict";function t(e){return e<0x1e00000}function a(e,t){let a=e/t;return e>=300&&e<=6e3&&t>=300&&t<=6e3&&a>=.4&&a<=2.5}function i(e,t){return a(e,t)}function r(e,t){let a;if(a=e/t,!(e>=300)||!(e<=6e3)||!(t>=300)||!(t<=6e3)||!(a>=.4)||!(a<=2.5))return"dimensions_or_aspect_ratio";let i=e*t;return i<409600?"pixel_count_too_low":i>8295044?"pixel_count_too_high":null}e.s(["SEEDANCE_2_REFERENCE_AUDIO_MAX_BYTES",0,0xf00000,"SEEDANCE_2_REFERENCE_IMAGE_MAX_BYTES",0,0x1e00000,"SEEDANCE_2_REFERENCE_VIDEO_MAX_BYTES",0,0xc800000,"getSeedance2VideoDimensionError",()=>r,"isValidSeedance25ImageDimensions",()=>i,"isValidSeedance2ImageDimensions",()=>a,"isValidSeedance2ImageFileSize",()=>t],784288);let s={frameImage:0xa00000,referenceImage:0xa00000,referenceVideo:0x3200000,referenceAudio:0xf00000,firstClip:0x1e00000,drivingAudio:0x3200000,sourceVideo:0x6400000},n={"seedance-2.5":{frameImage:0x1e00000,referenceImage:0x1e00000,referenceVideo:0xc800000,referenceAudio:0xf00000},"minimax-h3":{frameImage:0x1e00000,referenceImage:0x1e00000,referenceVideo:0x3200000,referenceAudio:0xf00000},"seedance-2.0":{frameImage:0x1e00000,referenceImage:0x1e00000,referenceVideo:0xc800000,referenceAudio:0xf00000},"seedance-2.0-mini":{frameImage:0x1e00000,referenceImage:0x1e00000,referenceVideo:0xc800000,referenceAudio:0xf00000},"seedance-1.5-pro":{frameImage:0xa00000},"wan-2.7":{frameImage:0x1e00000,referenceImage:0x1e00000,referenceVideo:0xa00000,referenceAudio:0x1e00000,firstClip:0x1e00000,drivingAudio:0x3200000,sourceVideo:0x6400000},"wan-3.0":{frameImage:0x1400000,referenceImage:0x1400000,referenceVideo:0x6400000,referenceAudio:0xf00000}};function l(e){return{...s,...n[e]}}e.s(["getVideoUploadLimits",()=>l],349330);let o={images:9,videos:3,audios:3},d={images:30,videos:10,audios:10},c={images:9,videos:3,audios:3},u={images:10,videos:5,audios:5};function m(e){return"seedance-2.5"===e?d:"minimax-h3"===e?c:"wan-3.0"===e?u:o}e.s(["getReferenceAssetLimits",()=>m],128627)},517853,(e,t,a)=>{},379110,(e,t,a)=>{var i=e.i(609327);e.r(517853);var r=e.r(50746),s=r&&"object"==typeof r&&"default"in r?r:{default:r},n=void 0!==i.default&&i.default.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},o=function(){function e(e){var t=void 0===e?{}:e,a=t.name,i=void 0===a?"stylesheet":a,r=t.optimizeForSpeed,s=void 0===r?n:r;d(l(i),"`name` must be a string"),this._name=i,this._deletedRulePlaceholder="#"+i+"-deleted-rule____{}",d("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var o="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=o?o.getAttribute("content"):null}var t,a=e.prototype;return a.setOptimizeForSpeed=function(e){d("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),d(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},a.isOptimizeForSpeed=function(){return this._optimizeForSpeed},a.inject=function(){var e=this;if(d(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(n||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,a){return"number"==typeof a?e._serverSheet.cssRules[a]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),a},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},a.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},a.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},a.insertRule=function(e,t){if(d(l(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;
1if(this._optimizeForSpeed){var a=this.getSheet();"number"!=typeof t&&(t=a.cssRules.length);try{a.insertRule(e,t)}catch(t){return n||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var i=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,i))}return this._rulesCount++},a.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var a="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!a.cssRules[e])return e;a.deleteRule(e);try{a.insertRule(t,e)}catch(i){n||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),a.insertRule(this._deletedRulePlaceholder,e)}}else{var i=this._tags[e];d(i,"old rule at index `"+e+"` not found"),i.textContent=t}return e},a.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];d(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},a.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},a.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,a){return a?t=t.concat(Array.prototype.map.call(e.getSheetForTag(a).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},a.makeStyleTag=function(e,t,a){t&&d(l(t),"makeStyleTag accepts only strings as second parameter");var i=document.createElement("style");this._nonce&&i.setAttribute("nonce",this._nonce),i.type="text/css",i.setAttribute("data-"+e,""),t&&i.appendChild(document.createTextNode(t));var r=document.head||document.getElementsByTagName("head")[0];return a?r.insertBefore(i,a):r.appendChild(i),i},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,t),e}();function d(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,a=e.length;a;)t=33*t^e.charCodeAt(--a);return t>>>0},u={};function m(e,t){if(!t)return"jsx-"+e;var a=String(t),i=e+a;return u[i]||(u[i]="jsx-"+c(e+"-"+a)),u[i]}function p(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var a=e+t;return u[a]||(u[a]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[a]}var g=function(){function e(e){var t=void 0===e?{}:e,a=t.styleSheet,i=void 0===a?null:a,r=t.optimizeForSpeed,s=void 0!==r&&r;this._sheet=i||new o({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),i&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var a=this.getIdAndRules(e),i=a.styleId,r=a.rules;if(i in this._instancesCounts){this._instancesCounts[i]+=1;return}var s=r.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[i]=s,this._instancesCounts[i]=1},t.remove=function(e){var t=this,a=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(a in this._instancesCounts,"styleId: `"+a+"` not found"),this._instancesCounts[a]-=1,this._instancesCounts[a]<1){var i=this._fromServer&&this._fromServer[a];i?(i.parentNode.removeChild(i),delete this._fromServer[a]):(this._indices[a].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[a]),delete this._instancesCounts[a]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],a=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return a[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,a;return t=this.cssRules(),void 0===(a=e)&&(a={}),t.map(function(e){var t=e[0],i=e[1];return s.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:a.nonce?a.nonce:void 0,dangerouslySetInnerHTML:{__html:i}})})},t.getIdAndRules=function(e){var t=e.children,a=e.dynamic,i=e.id;if(a){var r=m(i,a);return{styleId:r,rules:Array.isArray(t)?t.map(function(e){return p(r,e)}):[p(r,t)]}}return{styleId:m(i),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),x=r.createContext(null);function f(){return new g}function h(){return r.useContext(x)}x.displayName="StyleSheetContext";var b=s.default.useInsertionEffect||s.default.useLayoutEffect,v="undefined"!=typeof window?f():void 0;function y(e){var t=v||h();return t&&("undefined"==typeof window?t.add(e):b(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}y.dynamic=function(e){return e.map(function(e){return m(e[0],e[1])}).join(" ")},a.StyleRegistry=function(e){var t=e.registry,a=e.children,i=r.useContext(x),n=r.useState(function(){return i||t||f()})[0];return s.default.createElement(x.Provider,{value:n},a)},a.createStyleRegistry=f,a.style=y,a.useStyleRegistry=h},14514,(e,t,a)=>{t.exports=e.r(379110).style},217158,e=>{"use strict";var t=e.i(351538);e.s(["Link2",()=>t.default])},926209,e=>{"use strict";let t=(0,e.i(85208).default)("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",()=>t],926209)},602300,e=>{"use strict";var t=e.i(579657),a=e.i(50746),i=e.i(705273),r=e.i(599430),s=e.i(318547),n=e.i(612797),l=e.i(70028),o=e.i(270296);function d(){let e=(0,n.useTranslations)("gpt_image_gallery"),i=l.default,[d,u]=(0,a.useState)(null),m=(0,a.useMemo)(()=>{let e=new Map;for(let t of i){let a=t.category||"uncategorized",i=e.get(a)??[];i.length<2&&(i.push(t),e.set(a,i))}let t=Array.from(e.values()),a=[];for(let e=0;e<2;e++)for(let i of t)i[e]&&a.push(i[e]);return a},[i]);return(0,t.jsxs)("section",{className:"relative py-16 md:py-24 bg-background",children:[(0,t.jsxs)("div",{className:"container mx-auto px-4 max-w-7xl",children:[(0,t.jsxs)("div",{className:"text-center mb-10 md:mb-14 max-w-3xl mx-auto",children:[(0,t.jsx)("h2",{className:"text-3xl md:text-5xl font-bold mb-4 bg-gradient-to-r from-cyan-300 to-yellow-200 bg-clip-text text-transparent",children:e("title")}),(0,t.jsx)("p",{className:"text-base md:text-lg text-muted-foreground leading-relaxed",children:e("description")})]}),(0,t.jsx)("div",{className:"columns-2 md:columns-3 lg:columns-4 gap-4",children:m.map(e=>(0,t.jsx)(c,{item:e,onClick:()=>u(e)},e.id))}),(0,t.jsx)("div",{className:"mt-10 md:mt-14 flex justify-center",children:(0,t.jsxs)(r.default,{href:"/gpt-image-prompts",className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-gradient-to-r from-emerald-500 to-cyan-500 text-white font-semibold hover:from-emerald-600 hover:to-cyan-600 transition-colors",children:[e("view_all"),(0,t.jsx)(s.ArrowRight,{className:"w-4 h-4"})]})})]}),(0,t.jsx)(o.PromptDialog,{item:d,onClose:()=>u(null),labels:{copy:e("copy"),copied:e("copied"),source:e("source"),promptLabel:e("prompt_label")}})]})}function c({item:e,onClick:a}){let r=e.coverWidth||4,s=e.coverHeight||3;return(0,t.jsxs)("div",{onClick:a,className:"break-inside-avoid mb-4 group relative cursor-pointer overflow-hidden rounded-2xl border border-border/50 bg-muted/30 hover:border-cyan-400/50 transition-colors",children:[(0,t.jsx)(i.default,{src:e.cover,alt:e.title,width:r,height:s,sizes:"(max-width: 640px) 50vw, (max-width: 1024px) 33vw, 25vw",className:"w-full h-auto block transition-transform duration-500 group-hover:scale-[1.03]",unoptimized:!0}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 p-3 md:p-4 opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:(0,t.jsx)("h3",{className:"text-white text-sm md:text-base font-semibold line-clamp-2 drop-shadow",children:e.title})})]})}e.s(["default",()=>d])}]);

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.