PageSourceSearch

https://www.piax.org/_next/static/chunks/aa2c16720934f3da.js

js piax.org collected 2026-09-25 12:32:10 UTC 71,589 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,808341,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a={cancelIdleCallback:function(){return r},requestIdleCallback:function(){return s}};for(var n in a)Object.defineProperty(i,n,{enumerable:!0,get:a[n]});let s="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},479520,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a={default:function(){return v},handleClientScriptLoad:function(){return h},initScriptLoader:function(){return g}};for(var n in a)Object.defineProperty(i,n,{enumerable:!0,get:a[n]});let s=e.r(555682),r=e.r(190809),l=e.r(843476),o=s._(e.r(174080)),c=r._(e.r(271645)),d=e.r(742732),u=e.r(922737),m=e.r(808341),p=new Map,x=new Set,f=e=>{let{src:t,id:i,onLoad:a=()=>{},onReady:n=null,dangerouslySetInnerHTML:s,children:r="",strategy:l="afterInteractive",onError:c,stylesheets:d}=e,m=i||t;if(m&&x.has(m))return;if(p.has(t)){x.add(m),p.get(t).then(a,c);return}let f=()=>{n&&n(),x.add(m)},h=document.createElement("script"),g=new Promise((e,t)=>{h.addEventListener("load",function(t){e(),a&&a.call(this,t),f()}),h.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});s?(h.innerHTML=s.__html||"",f()):r?(h.textContent="string"==typeof r?r:Array.isArray(r)?r.join(""):"",f()):t&&(h.src=t,p.set(t,g)),(0,u.setAttributesFromProps)(h,e),"worker"===l&&h.setAttribute("type","text/partytown"),h.setAttribute("data-nscript",l),d&&(e=>{if(o.default.preinit)return e.forEach(e=>{o.default.preinit(e,{as:"style"})});if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=e,t.appendChild(i)})}})(d),document.body.appendChild(h)};function h(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>f(e))}):f(e)}function g(e){e.forEach(h),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");x.add(t)})}function b(e){let{id:t,src:i="",onLoad:a=()=>{},onReady:n=null,strategy:s="afterInteractive",onError:r,stylesheets:u,...p}=e,{updateScripts:h,scripts:g,getIsSsr:b,appDir:v,nonce:w}=(0,c.useContext)(d.HeadManagerContext);w=p.nonce||w;let y=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||i;y.current||(n&&e&&x.has(e)&&n(),y.current=!0)},[n,t,i]);let j=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!j.current){if("afterInteractive"===s)f(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,m.requestIdleCallback)(()=>f(e)):window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>f(e))}));j.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(h?(g[s]=(g[s]||[]).concat([{id:t,src:i,onLoad:a,onReady:n,onError:r,...p,nonce:w}]),h(g)):b&&b()?x.add(t||i):b&&!b()&&f({...e,nonce:w})),v){if(u&&u.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!i)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...p,id:t}])})`}});else return o.default.preload(i,p.integrity?{as:"script",integrity:p.integrity,nonce:w,crossOrigin:p.crossOrigin}:{as:"script",nonce:w,crossOrigin:p.crossOrigin}),(0,l.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([i,{...p,id:t}])})`}});"afterInteractive"===s&&i&&o.default.preload(i,p.integrity?{as:"script",integrity:p.integrity,nonce:w,crossOrigin:p.crossOrigin}:{as:"script",nonce:w,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});let v=b;("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
1dule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},3303,(e,t,i)=>{t.exports=e.r(479520)},829601,137246,713711,337092,387640,428589,958080,541783,257305,831980,791748,561346,665828,281768,273660,945071,474205,e=>{"use strict";var t=e.i(843476),i=e.i(437902),a=e.i(271645),n=e.i(37727),s=e.i(761086),r=e.i(630374),l=e.i(582227),o=e.i(948148),c=e.i(861745);function d({isOpen:e,onClose:d}){let[m,p]=(0,a.useState)("email"),[x,f]=(0,a.useState)(""),[h,g]=(0,a.useState)(["","","","","",""]),[b,v]=(0,a.useState)(!1),[w,y]=(0,a.useState)(null),[j,_]=(0,a.useState)(0),k=(0,o.useTranslations)(),N=(0,c.useLocale)(),{user:C,emailLogin:S,sendCode:P,loginWithGoogle:I,loginFlag:M}=(0,l.useAuth)();(0,a.useEffect)(()=>{if(e&&"email"===m){let e=setTimeout(()=>{I().catch(console.error)},100);return()=>clearTimeout(e)}},[e,m]),(0,a.useEffect)(()=>{e&&(p("email"),f(""),g(["","","","","",""]),y(null),v(!1))},[e]),(0,a.useEffect)(()=>{C?.id&&e&&d()},[C?.id]);let F=e=>{if(e.preventDefault(),!b){if(v(!0),y(null),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x)){y(k("login.enter_a")),v(!1);return}P(x),setTimeout(()=>{v(!1),p("verification"),_(60)},1e3)}},T=async e=>{if(e.preventDefault(),!b){v(!0),y(null);try{let e=await S(x,h.join(""));v(!1),void 0!==e&&(p("success"),d())}catch(e){y(k("login.login_f")),v(!1)}}};return(0,a.useEffect)(()=>{if(j>0){let e=setInterval(()=>{_(e=>e-1)},1e3);return()=>clearInterval(e)}},[j]),(0,t.jsx)(r.Dialog,{open:e,onOpenChange:e=>!e&&d(),children:(0,t.jsxs)(r.DialogContent,{overlayClassName:"z-[160]",className:"z-[160] w-[90vw] md:w-[501px] py-[35px] px-4 md:px-[55px] filter-light text-[#20272E] rounded-[20px] border-0 bg-white overflow-hidden",children:[(0,t.jsx)("div",{className:"top-[20px] right-[20px] absolute cursor-pointer",onClick:()=>d(),children:(0,t.jsx)(n.X,{className:"text-[#585858]",size:16})}),(0,t.jsxs)(r.DialogHeader,{className:"w-full",children:[(0,t.jsx)(r.DialogTitle,{className:"sr-only"}),(0,t.jsxs)("div",{className:"jsx-e28f627c45f200bd w-full",children:[M&&(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd top-0 right-0 bottom-0 left-0 absolute z-10 bg-black/50 flex justify-center items-center",children:(0,t.jsxs)("div",{className:"jsx-e28f627c45f200bd login-loading",children:[(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd dot"}),(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd dot"}),(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd dot"}),(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd dot"})]})}),"email"===m&&(0,t.jsxs)("div",{className:"jsx-e28f627c45f200bd text-center w-full",children:[(0,t.jsx)("h1",{className:"jsx-e28f627c45f200bd text-[26px] font-semibold",children:k("login.welcome")}),(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd text-xs font-medium mt-6 w-full md:w-[354px] mx-auto",children:k("login.use_a")}),(0,t.jsx)("button",{className:"jsx-e28f627c45f200bd flex items-center justify-center h-[49px] mx-auto mt-12 focus-visible:outline-none",children:(0,t.jsx)("div",{id:"google-login-button",className:"jsx-e28f627c45f200bd h-[49px]"})}),(0,t.jsxs)("div",{className:"jsx-e28f627c45f200bd flex items-center w-full sm:w-96 mx-auto mb-2",children:[(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd flex-1 h-px bg-[#dedede]"}),(0,t.jsx)("span",{className:"jsx-e28f627c45f200bd mx-[55px] text-[18px] text-[#b2b2b2]",children:k("login.or")}),(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd flex-1 h-px bg-[#dedede]"})]}),(0,t.jsxs)("form",{onSubmit:F,className:"jsx-e28f627c45f200bd",children:[(0,t.jsxs)("div",{className:"jsx-e28f627c45f200bd relative w-full h-[49px] mx-auto",children:[(0,t.jsx)("input",{type:"text",placeholder:k("login.enter_y"),value:x,onChange:e=>f(e.target.value),className:"jsx-e28f627c45f200bd w-full h-full text-[#20272E] px-4 rounded-[12px] text-xs placeholder:text-[#B2B2B2] bg-[#F9F9F9] border border-[#DEDEDE] focus:outline-none"}),w&&(0,t.jsx)("p",{className:"jsx-e28f627c45f200bd mt-1 text-xs text-[#E85F5C]",children:w})]}),(0,t.jsxs)("button",{onClick:F,className:`jsx-e28f627c45f200bd flex items-center justify-center w-full sm:w-96 h-[49px] mx-auto mt-[15px] rounded-[24px] bg-[#20272e] ${x?"text-white":"text-white/30"} text-sm font-medium`,children:[(0,t.jsx)("span",{className:"jsx-e28f627c45f200bd",children:k("login.next_step")}),b&&(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd ml-2 animate-spin",children:(0,t.jsx)(s.Loader,{className:"w-5 h-5"})})]})]}),(0,t.jsxs)("div",{className:"jsx-e28f627c45f200bd flex flex-wrap justify-center items-center text-[10px] font-medium text-[#B2B2B2] text-center w-full sm:w-96 mt-4 mx-auto",children:[k("login.by_s"),(0,t.jsx)("span",{onClick:()=>{let e=location.origin;window.open(`${e}/${N}/terms-of-services`,"_blank","noopener,noreferrer")},className:"jsx-e28f627c45f200bd text-[#368AEA] cursor-pointer ml-1",children:k("login.terms_o")}),(0,t.jsx)("span",{className:"jsx-e28f627c45f200bd mx-1",children:k("login.and")}),(0,t.jsx)("span",{onClick:()=>{let e=location.origin;window.open(`${e}/${N}/privacy-policy`,"_blank","noopener,noreferrer")},className:"jsx-e28f627c45f200bd text-[#368AEA] cursor-pointer",children:k("login.privacy")}),"."]}),(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd flex flex-wrap items-center text-[10px] font-medium text-[#B2B2B2] text-center w-full sm:w-96 mx-auto",children:"© lmageCraft L.L.C. Foundation, 2024. All rights reserved. Contact: [email protected]"})]}),"verification"===m&&(0,t.jsxs)("div",{className:"jsx-e28f627c45f200bd text-center text-sm font-semibold",children:[(0,t.jsxs)("div",{onClick:()=>{p("email"),setTimeout(()=>{I()},200)},className:"jsx-e28f627c45f200bd flex items-center text-sm mb-6 relative -left-7 -top-4",children:[(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"jsx-e28f627c45f200bd h-4 w-4 mr-1",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd",className:"jsx-e28f627c45f200bd"})}),k("login.back")]}),(0,t.jsx)("p",{className:"jsx-e28f627c45f200bd text-left text-2xl font-semibold w-full mx-auto",children:k("login.verify_e")}),(0,t.jsx)("p",{className:"jsx-e28f627c45f200bd text-left text-xs text-[#585858] w-full mx-auto mt-3 font-medium",children:k("login.a_v").replace("1",x)}),(0,t.jsxs)("form",{onSubmit:T,className:"jsx-e28f627c45f200bd space-y-4 mt
1-4",children:[(0,t.jsx)(u,{code:h,setCode:g,isLoading:b,error:w}),w&&(0,t.jsx)("p",{className:"jsx-e28f627c45f200bd mt-1 text-xs text-[#E85F5C] text-center",children:w}),(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd text-right",children:(0,t.jsx)("button",{type:"button",onClick:()=>{0===j&&(_(60),P(x))},disabled:j>0,className:`jsx-e28f627c45f200bd text-xs font-medium ${j>0?"text-[#585858]":"text-[#0054FF]"}`,children:j>0?`${j}s`:k("login.resend_c")})}),(0,t.jsxs)("button",{onClick:T,className:"jsx-e28f627c45f200bd flex items-center justify-center w-full h-[49px] mx-auto mt-[41px] rounded-[24px] bg-[#20272e] text-white text-sm font-medium",children:[(0,t.jsx)("span",{className:"jsx-e28f627c45f200bd",children:k("login.Continue")}),b&&(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd ml-2 animate-spin",children:(0,t.jsx)(s.Loader,{className:"w-5 h-5"})})]})]}),(0,t.jsxs)("div",{className:"jsx-e28f627c45f200bd flex items-center w-full sm:w-96 mx-auto mt-[18px] mb-3",children:[(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd flex-1 h-px bg-[#dedede]"}),(0,t.jsx)("span",{className:"jsx-e28f627c45f200bd mx-[38px] text-[12px] text-[#b2b2b2]",children:"or"}),(0,t.jsx)("div",{className:"jsx-e28f627c45f200bd flex-1 h-px bg-[#dedede]"})]}),(0,t.jsx)("button",{className:"jsx-e28f627c45f200bd flex items-center justify-center h-[49px] mx-auto focus-visible:outline-none",children:(0,t.jsx)("div",{id:"google-login-button",className:"jsx-e28f627c45f200bd h-[49px]"})})]})]}),(0,t.jsx)(i.default,{id:"e28f627c45f200bd",children:".login-loading{--uib-size:47px;--uib-color:white;--uib-speed:1s;--uib-dot-size:calc(var(--uib-size)*.18);height:calc(var(--uib-size)*.5);width:var(--uib-size);justify-content:space-between;align-items:flex-end;display:flex}.dot{width:calc(var(--uib-size)*.17);height:calc(var(--uib-size)*.17);background-color:var(--uib-color);border-radius:50%;flex-shrink:0;transition:background-color .3s}.dot:first-child{animation:jump var(--uib-speed)ease-in-out calc(var(--uib-speed)*-.45)infinite}.dot:nth-child(2){animation:jump var(--uib-speed)ease-in-out calc(var(--uib-speed)*-.3)infinite}.dot:nth-child(3){animation:jump var(--uib-speed)ease-in-out calc(var(--uib-speed)*-.15)infinite}.dot:nth-child(4){animation:jump var(--uib-speed)ease-in-out infinite}@keyframes jump{0%,to{transform:translateY(0)}50%{transform:translateY(-200%)}}"})]})]})})}function u({code:e,setCode:i,isLoading:n,error:s}){let r=(0,a.useRef)([]);(0,a.useEffect)(()=>{r.current[0]&&r.current[0].focus()},[]);let l=e=>{e.preventDefault();let t=e.clipboardData.getData("text/plain").trim();/^\d{6}$/.test(t)&&(i(t.split("")),r.current[5]?.focus())};return(0,t.jsx)("div",{className:"flex justify-between items-center filter-light text-[#20272E]",children:e.map((a,o)=>(0,t.jsx)("input",{type:"text",inputMode:"numeric",maxLength:1,value:a,onChange:t=>((t,a)=>{if(!/^\d*$/.test(a))return;let n=[...e];n[t]=a.slice(-1),i(n),a&&t<5&&r.current[t+1]&&r.current[t+1]?.focus()})(o,t.target.value),onKeyDown:t=>{"Backspace"===t.key&&!e[o]&&o>0&&r.current[o-1]&&r.current[o-1]?.focus()},onPaste:0===o?l:void 0,ref:e=>{r.current[o]=e},className:`w-10 h-12 md:w-[46px] md:h-[51px] text-center text-[28px] font-medium border ${s?"border-[#E85F5C]":"border-[#dedede]"} rounded-[10px] bg-[#f9f9f9] dark:bg-[#f9f9f9] text-[#20272E] focus:outline-none transition-colors`,disabled:n,"aria-label":`digit ${o+1}`},o))})}e.s(["LoginModal",()=>d],829601),e.i(247167);var m=e.i(618566),p=e.i(499607),x=e.i(600471),f=e.i(170319),h=e.i(24594);function g(e){return`US$${e}`}function b({sku:e,price:i=0,originalPrice:a="0",discount:s=0,countDown:r={m:"",s:"",ms:""},onClose:l}){let c=(0,o.useTranslations)();return(0,t.jsx)("div",{className:"discount_modal w-[90vw] max-h-[85vh] md:max-w-[1029px] mx-auto overflow-hidden",children:(0,t.jsxs)("div",{className:"w-[90vw] max-h-[85vh] md:max-w-[1029px] text-center pt-[55px] pb-8 px-[50px] md:px-[70px] bg-white dark:bg-white rounded-[20px] hide-scrollbar hidden-scrollbar overflow-y-scroll relative",children:[(0,t.jsx)(n.X,{className:"absolute top-4 right-4 text-black/50 dark:text-black/50 z-50 cursor-pointer",size:16,onClick:l}),(0,t.jsx)("div",{className:"absolute w-[100px] h-[100px] md:w-[200px] md:h-[200px] -top-5 right-6 md:right-12",children:(0,t.jsx)("img",{src:"/new-icon/order-off-1.png",alt:""})}),(0,t.jsx)("div",{className:"absolute w-12 h-12 top-[200px] right-10",children:(0,t.jsx)("img",{src:"/new-icon/order-off-2.png",alt:""})}),(0,t.jsx)("div",{className:"absolute top-[34px] right-[280px] md:right-[250px] w-16 h-16 md:w-20 md:h-20",children:(0,t.jsx)("img",{src:"/new-icon/order-off-3.png",alt:""})}),(0,t.jsx)("div",{}),(0,t.jsx)("div",{}),(0,t.jsx)("div",{className:"w-full text-left text-base md:text-[30px] font-bold text-black dark:text-black my-4 mx-auto",children:c("order_off_box.text1")}),(0,t.jsxs)("div",{className:"w-full text-left text-sm md:text-[28px] font-bold text-black dark:text-black leading-[40px]",children:[c("order_off_box.text2").replace("1",s.toString())," ",(0,t.jsx)("br",{})," ",c("order_off_box.text2-2")," ",(0,t.jsx)("br",{}),c.rich("order_off_box.text3",{div:e=>(0,t.jsx)("span",{className:"text-[#0054ff] font-bold",children:e})})]}),(0,t.jsxs)("div",{className:"flex flex-col md:flex-row items-center mt-8",children:[(0,t.jsxs)("div",{className:"flex justify-center gap-2 text-center",children:[(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("div",{className:"bg-[#040000] dark:bg-[#040000] border rounded-[10px] p-1 w-[50px] h-[50px] flex justify-center items-center",children:(0,t.jsx)("div",{className:"text-xl font-semibold text-white",children:r.m})})}),(0,t.jsx)("div",{className:"flex items-center text-xl font-bold text-black dark:text-black",children:":"}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("div",{className:"bg-[#040000] dark:bg-[#040000] border rounded-[10px] p-1 w-[50px] h-[50px] flex justify-center items-center",children:(0,t.jsx)("div",{className:"text-xl font-semibold text-white",children:r.s})})}),(0,t.jsx)("div",{className:"flex items-center text-xl font-bold text-black dark:text-black",children:":"}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("div",{className:"bg-[#040000] dark:bg-[#040000] border rounded-[10px] p-1 w-[50px] h-[50px] flex justify-center items-center",children:(0,t.jsx)("div",{className:"text-xl font-semibold text-white",children:r.ms})})})]}),(0,t.jsx)("div",{className:"ml-0 mt-4 md:ml-10 md:mt-0 text-black dark:text-black",children:(0,t.jsxs)("div",{className:"flex justify-center items-center text-[20px] md:text-[28px] font-bold gap-2",children:[(0,t.jsxs)("span",{className:"font-bold text-[#0054ff] tracking-wide",children:[g(i),c("pricing.per_month")]}),(0,t.jsxs)("span",{className:"line-through text-[20px] md:text-[26px] text-[#585858] tracking-wide",children:[g(a),c("pricing.per_month")]})]})})]}),(0,t.jsx)("div",{className:"mt-10 text-sm md:text-[18px] text-[#585858] font-medium text-left",children:c("order_off_box.text4").replace("#",s.toString())}),(0,t.jsx)("button",{className:"w-full md:w-[335px] h-[50px] md:h-[77px] flex justify-center items-center rounded-[39px] mx-auto mt-10 bg-[#0054ff] text-white dark:text-white text-[21px] font-medium",onClick:l,children:c("order_off_box.text5")})]})})}
1e.s(["formatUsdPrice",()=>g],137246),e.s(["default",()=>b],713711);var v=e.i(475254);let w=(0,v.default)("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);var y=e.i(643531),j=e.i(3303);class _{static instance;paddle=null;isInitialized=!1;isInitializing=!1;eventCallbacks=new Map;initPromise=null;currentCheckoutOwner=null;checkoutOpen=!1;constructor(){}static getInstance(){return _.instance||(_.instance=new _),_.instance}async initialize(){if(this.isInitialized)return Promise.resolve();if(this.isInitializing&&this.initPromise)return this.initPromise;this.isInitializing=!0,this.initPromise=this._doInitialize();try{await this.initPromise}finally{this.isInitializing=!1}}async _doInitialize(){if(await this.waitForPaddleScript(),!window.Paddle)throw Error("Paddle.js not load");try{this.paddle=window.Paddle,this.paddle.Environment.set("production"),await this.paddle.Initialize({token:"live_512e7b08554a090494fff2f13f3",eventCallback:e=>{let t=this.currentCheckoutOwner;if(("checkout.closed"===e.name||"checkout.completed"===e.name)&&(this.checkoutOpen=!1,this.currentCheckoutOwner=null),t&&this.eventCallbacks.has(t)){let i=this.eventCallbacks.get(t);if(i)try{i(e)}catch(e){console.error(`Paddle event error (${t}):`,e)}}}}),this.isInitialized=!0}catch(e){throw console.error("❌ Paddle init error:",e),e}}waitForPaddleScript(){return new Promise(e=>{if(window.Paddle)return void e();let t=0,i=setInterval(()=>{t++,window.Paddle?(clearInterval(i),e()):t>=100&&(clearInterval(i),console.error("Paddle.js load timeout"),e())},100)})}registerEventCallback(e,t){this.eventCallbacks.set(e,t)}unregisterEventCallback(e){this.eventCallbacks.delete(e)}openCheckout(e,t){if(!this.isInitialized||!this.paddle)throw Error("Paddle not init");try{t&&(this.currentCheckoutOwner=t),this.checkoutOpen=!0,this.paddle.Checkout.open(e)}catch(e){throw console.error("open Paddle error:",e),this.currentCheckoutOwner=null,this.checkoutOpen=!1,e}}closeCheckout(){if(this.isInitialized&&this.paddle&&this.paddle.Checkout&&this.checkoutOpen)try{this.checkoutOpen=!1,this.currentCheckoutOwner=null,this.paddle.Checkout.close()}catch(e){console.error("close Paddle error:",e),this.checkoutOpen=!1,this.currentCheckoutOwner=null}}getPaddle(){return this.paddle}isReady(){return this.isInitialized}}let k=_.getInstance();e.s(["paddleManager",0,k],337092);var N=e.i(569860);function C(e,t,i,a,n,s){return{id:e,name:t,logoIcon:`https://image.piax.org/images/agent-icon/${i}`,category:a,tiers:n,highlight:s}}let S=[C("gpt-6-astra","GPT-6 Astra","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("grok-4-7","Grok 4.7","gork.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("mimo-v2-6-pro","MiMo-V2.6-Pro","xiaomi.svg","chat",{unlimited:!0,pro:!0,basic:!0}),C("gpt-6-sol","GPT 6 Sol","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gpt-6-luna","GPT 6 Luna","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gpt-5-6-sol","GPT 5.6 Sol","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gpt-5-6-terra","GPT-5.6 Terra","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gpt-5-6-luna","GPT 5.6 Luna","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gpt-5-5-pro","GPT 5.5 Pro","gpt4o.webp","chat",{unlimited:!0,pro:!1,basic:!1}),C("claude-opus-5-5","Claude Opus 5.5","claude-sonnet.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("claude-fable-5-1","Claude Fable 5.1","claude-sonnet.webp","chat",{unlimited:!0,pro:!1,basic:!1}),C("claude-fable-5","Claude Fable 5","claude-sonnet.webp","chat",{unlimited:!0,pro:!1,basic:!1}),C("claude-opus-5","Claude Opus 5","claude-sonnet.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("claude-sonnet-5","Claude Sonnet 5","claude-sonnet.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("claude-opus-4-8","Claude Opus 4.8","claude-sonnet.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("grok-4","Grok 4","gork.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("deepseek","DeepSeek V4 & V3 & R1","deepseek.webp","chat",{unlimited:!0,pro:!0,basic:!0}),C("gpt-5-5","GPT 5.5","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("minimax","MiniMax","minimax.webp","chat",{unlimited:!0,pro:!0,basic:!0}),C("glm","GLM","z.webp","chat",{unlimited:!0,pro:!0,basic:!0}),C("kimi","Kimi","kimi.webp","chat",{unlimited:!0,pro:!0,basic:!0}),C("seed","Seed","bytedance.svg","chat",{unlimited:!0,pro:!0,basic:!0}),C("mimo","Mimo","xiaomi.svg","chat",{unlimited:!0,pro:!0,basic:!0}),C("perplexity","Perplexity","perplexity.webp","chat",{unlimited:!0,pro:!0,basic:!0}),C("gpt-4-1","GPT 4.1","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!0}),C("gemini-3-8-flash","Gemini 3.8 Flash","gemini.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gemini-3-7-flash","Gemini 3.7 Flash","gemini.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gemini-3-6-flash","Gemini 3.6 Flash","gemini.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gemini-3-5-flash","Gemini 3.5 Flash","gemini.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gemini-3-1-pro","Gemini 3.1 Pro","gemini.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gemini-3-1-flash","Gemini 3.1 Flash","gemini.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gemini-2-5-pro","Gemini 2.5 Pro","gemini.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gpt-5-4-pro","GPT 5.4 Pro","gpt4o.webp","chat",{unlimited:!0,pro:!1,basic:!1}),C("gpt-5-4","GPT 5.4","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gpt-5-3","GPT 5.3","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gpt-5-3-codex","GPT 5.3 Codex","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gpt-5-2-codex","GPT 5.2 Codex","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gpt-5-2","GPT 5.2","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("gpt-5","GPT 5","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("o3","o3","gpt4o.webp","chat",{unlimited:!0,pro:!1,basic:!1}),C("gpt-4-1-mini","GPT 4.1 mini","gpt4o.webp","chat",{unlimited:!0,pro:!0,basic:!0}),C("claude-opus-4-7","Claude Opus 4.7","claude-sonnet.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("claude-sonnet-4-6","Claude Sonnet 4.6","claude-sonnet.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("claude-opus-4-6","Claude Opus 4.6","claude-sonnet.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("claude-opus-4-5","Claude Opus 4.5","claude-sonnet.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("claude-sonnet-4-5","Claude Sonnet 4.5","claude-sonnet.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("claude-haiku-4-5","Claude Haiku 4.5","claude-sonnet.webp","chat",{unlimited:!0,pro:!0,basic:!0}),C("claude-opus-4-1","Claude Opus 4.1","claude-sonnet.webp","chat",{unlimited:!0,pro:!1,basic:!1}),C("claude-opus-4","Claude Opus 4","claude-sonnet.webp","chat",{unlimited:!0,pro:!0,basic:!1}),C("midjourney","Midjourney","mj.webp","image",{unlimited:!0,pro:!0,basic:!0},{unlimited:!0,pro:!0,basic:!0}),C("nano-banana-2","Nano Banana 2","nano-banana3.webp","image",{unlimited:!0,pro:!0,basic:!1},{unlimited:!0,pro:!0}),C("nano-banana-pro","Nano Banana Pro","nano-banana3.webp","image",{unlimited:!0,pro:!0,basic:!1}),C("nano-banana","Nano Banana","nano-banana3.webp","image",{unlimited:!0,pro:!0,basic:!1}),C("gpt-image-2-5","GPT Image 2.5","dalle.webp","image",{unlimited:!0,pro:!0,basic:!1},{unlimited:!0,pro:!0}),C("gpt-image-2","GPT Image 2","dalle.webp","image",{unlimited:!0,pro:!0,basic:!1},{unlimited:!0,pro:!0}),C("z-image","Z-Image","wan.svg","image",{unlimited:!0,pro:!0,basic:!1}),C("wan-27-pro-image","Wan 2.7 Pro Image","wan.svg","image",{unlimited:!0,pro:!0,basic:!1}),C("qwen-image-3","Qwen Image 3","wan.svg","image",{unlimited:!0,pro:!0,basic:!1}),C("grok-imagine","Grok Imagine Image","gork.webp","image",{unlimited:!0,pro:!0,basic:!1}),C("seedream-5","Seedream 5.0","bytedance.svg","image",{unlimited:!0,pro:!0,basic:!1},{unlimited:!0,pro:!0}),C("seedream-4-5","Seedream 4.5","bytedance.svg","image",{unlimited:!0,pro:!0,basic:!1}),C("imagen-4","Imagen 4","google.webp","image",{unlimited:!0,pro:!0,basic:!1},{unlimited:!0,pro:!0}),C("imagen-3","Imagen 3","google.webp","image",{unlimited:!0,pro:!0,basic:!0}),C("flux","Flux","flux.webp","image",{unlimited:!0,pro:!0,basic:!1},{pro:!0}),C("ideogram","Ideogram","Ideogram.webp","image",{unlimited:!0,pro:!0,basic:!1}),C("dalle","Dall E","dalle.webp","image",{unlimited:!0,pro:!0,basic:!0}),C("muse-image","Muse Image","llama.webp","image",{unlimited:!0,pro:!0,basic:!0}),C("agnes-image","Agnes Image","agnes.avif","image",{unlimited:!0,pro:!0,basic:!0}),C("sora-2-pro","Sora 2 Pro","sora.svg","video",{unlimited:!0,pro:!1,basic:!1},{unlimited:!0}),C("sora-2","Sora 2","sora.svg","video",{unlimited:!0,pro:!1,basic:!1},{unlimited:!0}),C("gemini-omni-flash-1-1","Gemini Omni Flash 1.1","google.webp","video",{unlimited:!0,pro:!0,basic:!1}),C("veo-3-1","Veo 3.1","google.webp","video",{unlimited:!0,pro:!1,basic:!1},{unlimited:!0}),C("veo-3-1-fast","Veo 3.1 Fast","google.webp","video",{unlimited:!0,pro:!0,basic:!1},{pro:!0}),C("veo-3","Veo 3","google.webp","video",{unlimited:!0,pro:!1,basic:!1}),C("veo-2","Veo 2","google.webp","video",{unlimited:!0,pro:!0,basic:!1}),C("pixverse","Pixverse","pixverse.svg","video",{unlimited:!0,pro:!0,basic:!1}),C("pika","Pika","pika.svg","video",{unlimited:!0,pro:!0,basic:!1}),C("wan-3-0","Wan 3.0","wan.svg","video",{unlimited:!0,pro:!1,basic:!1}),C("wan-2-7","Wan 2.7","wan.svg","video",{unlimited:!0,pro:!1,basic:!1}),C("wan-2-6","Wan 2.6","wan.svg","video",{unlimited:!0,pro:!1,basic:!1}),C("wan-2-5","Wan 2.5","wan.svg","video",{unlimited:!0,pro:!0,basic:!1}
1),C("wan-2-2","Wan 2.2 Plus & Wan 2.2 Flash","wan.svg","video",{unlimited:!0,pro:!0,basic:!1}),C("hunyuan","Hunyuan","hunyuan.svg","video",{unlimited:!0,pro:!0,basic:!1}),C("mj-video","Midjourney Video","mj.webp","video",{unlimited:!0,pro:!1,basic:!1},{unlimited:!0}),C("runway","Runway","runway.webp","video",{unlimited:!0,pro:!0,basic:!0},{basic:!0}),C("luma","Luma","luma.webp","video",{unlimited:!0,pro:!0,basic:!1}),C("vidu","Vidu","vidu.webp","video",{unlimited:!0,pro:!0,basic:!0}),C("happy-horse","Happy Horse","happy-horse.svg","video",{unlimited:!0,pro:!0,basic:!1}),C("seedance-2-5","Seedance 2.5","seedance.webp","video",{unlimited:!0,pro:!1,basic:!1},{unlimited:!0}),C("seedance-2","Seedance 2.0","seedance.webp","video",{unlimited:!0,pro:!1,basic:!1},{unlimited:!0}),C("seedance","Seedance","seedance.webp","video",{unlimited:!0,pro:!0,basic:!1},{pro:!0}),C("kling","Kling","kling.webp","video",{unlimited:!0,pro:!0,basic:!1},{pro:!0}),C("minimax-h3","MiniMax H3","minimax.webp","video",{unlimited:!0,pro:!0,basic:!1},{pro:!0}),C("grok-imagine-video","Grok Imagine Video","gork.webp","video",{unlimited:!0,pro:!0,basic:!1},{pro:!0}),C("flux-3-video","Flux.3","flux-1.webp","video",{unlimited:!0,pro:!0,basic:!1},{pro:!0}),C("agnes-video","Agnes Video","agnes.avif","video",{unlimited:!0,pro:!0,basic:!0}),C("eleven-v3","ElevenLabs v3","elevenlabs.webp","audio",{unlimited:!0,pro:!0,basic:!0},{unlimited:!0,pro:!0,basic:!0}),C("eleven-dialogue","ElevenLabs Dialogue v3","elevenlabs.webp","audio",{unlimited:!0,pro:!0,basic:!1},{unlimited:!0,pro:!0}),C("minimax-speech","MiniMax Speech 2.8 HD","minimax.webp","audio",{unlimited:!0,pro:!0,basic:!0},{unlimited:!0,pro:!0,basic:!0}),C("qwen-tts","Qwen3 TTS 1.7B","wan.svg","audio",{unlimited:!0,pro:!0,basic:!0}),C("seed-audio","Seed Audio 1.0","bytedance.svg","audio",{unlimited:!0,pro:!0,basic:!0}),C("minimax-clone","MiniMax Voice Clone","minimax.webp","audio",{unlimited:!0,pro:!0,basic:!0}),C("qwen-clone","Qwen3 Voice Clone","wan.svg","audio",{unlimited:!0,pro:!0,basic:!0}),C("eleven-design","ElevenLabs Voice Design","elevenlabs.webp","audio",{unlimited:!0,pro:!0,basic:!0}),C("minimax-design","MiniMax Voice Design","minimax.webp","audio",{unlimited:!0,pro:!0,basic:!0}),C("qwen-design","Qwen3 Voice Design","wan.svg","audio",{unlimited:!0,pro:!0,basic:!0}),C("minimax-music","MiniMax Music 2.6","minimax.webp","audio",{unlimited:!0,pro:!0,basic:!0},{unlimited:!0,pro:!0,basic:!0}),C("lyria-2","Lyria 2","google.webp","audio",{unlimited:!0,pro:!0,basic:!0}),C("eleven-music","ElevenLabs Music v2.5","elevenlabs.webp","audio",{unlimited:!0,pro:!0,basic:!0}),C("scribe-v2","ElevenLabs Scribe v2","elevenlabs.webp","audio",{unlimited:!0,pro:!0,basic:!0},{unlimited:!0,pro:!0,basic:!0}),C("rodin-gen-2-5","Rodin Gen-2.5","rodin.svg","3d",{unlimited:!0,pro:!0,basic:!1},{unlimited:!0,pro:!0}),C("hunyuan-3d-pro","Hunyuan 3D Pro","hunyuan.svg","3d",{unlimited:!0,pro:!0,basic:!1},{unlimited:!0,pro:!0}),C("one","One AI Workspace","","tools",{unlimited:!0,pro:!0,basic:!1},{unlimited:!0,pro:!0}),C("tool-writer","AI Writer/Detector","","tools",{unlimited:!0,pro:!0,basic:!0}),C("tool-video","AI Video Tools","","tools",{unlimited:!0,pro:!0,basic:!0}),C("tool-image","AI Image Tools","","tools",{unlimited:!0,pro:!0,basic:!0}),C("tool-voice","AI Voice","","tools",{unlimited:!0,pro:!0,basic:!0})];function P(e){return S.filter(t=>t.category===e)}function I(e,t){var i;let a;return i=S.filter(i=>i.tiers[e]&&(!t||i.category===t)),a=new Map(S.map((e,t)=>[e.id,t])),[...i].sort((t,i)=>{let n=+!t.highlight?.[e],s=+!i.highlight?.[e];return n!==s?n-s:(a.get(t.id)??999)-(a.get(i.id)??999)}
1)}function M(e,t){var i,a;let n;return"unlimited"===e?I(e,t):(i=e,a=P(t),n=new Map(S.map((e,t)=>[e.id,t])),[...a].sort((e,t)=>{let a=+!e.tiers[i],s=+!t.tiers[i];if(a!==s)return a-s;let r=+!e.highlight?.[i],l=+!t.highlight?.[i];return r!==l?r-l:(n.get(e.id)??999)-(n.get(t.id)??999)}))}function F(e,t,i=5){let a=M(e,t);if("unlimited"===e)return a.slice(0,i);let n=a.filter(t=>t.tiers[e]),s=a.filter(t=>!t.tiers[e]&&t.highlight?.unlimited),r=new Set([...n.slice(0,i).map(e=>e.id),...s.map(e=>e.id)]);return a.filter(e=>r.has(e.id))}function T(e){return P(e)}e.s(["PLAN_TIER_ORDER",0,["unlimited","pro","basic"],"getComparisonByCategory",()=>T,"getModelsForPlanCard",()=>M,"getModelsForTierSorted",()=>I,"getPreviewModels",()=>F],387640);let D=[{id:"unlimited",nameKey:"pricing.unlimited",credits:11e5,creditsFormatted:"1,100,000",usageCaps:{images:500,videos:250,voices:800,chat:1e4},pricing:{monthPrice:39.9,annualPrice:29.9,lineMonthPrice:69.9,lineAnnualPrice:69.9,monthDiscount:43,annualDiscount:57,flashSale:{monthPrice:33.9,annualPrice:25.4}},sku:{stripe:{monthly:22,annually:25},paddle:{monthly:307,annually:310}},marketing:{icon:"infinity"},featureSectionKeys:{chat:"pricing.u_b_title",image:"pricing.u_i_title",video:"pricing.u_i_title",toolDescriptions:["u_o_c_1","u_o_c_2","u_o_c_3"]}},{id:"pro",nameKey:"pricing.pro",credits:6e5,creditsFormatted:"600,000",usageCaps:{images:300,videos:150,voices:500,chat:5e3},pricing:{monthPrice:15.9,annualPrice:11.9,lineMonthPrice:25.9,lineAnnualPrice:25.9,monthDiscount:39,annualDiscount:54,flashSale:{monthPrice:13.5,annualPrice:10.1}},sku:{stripe:{monthly:21,annually:24},paddle:{monthly:306,annually:309}},marketing:{recommended:!0,icon:"shield"},featureSectionKeys:{chat:"pricing.p_b_title",image:"pricing.p_i_title",video:"pricing.p_i_title",toolDescriptions:["p_o_c_1","p_o_c_2","p_o_c_3"]}},{id:"basic",nameKey:"pricing.basic",credits:25e4,creditsFormatted:"250,000",usageCaps:{images:100,videos:50,voices:200,chat:2e3},pricing:{monthPrice:9.9,annualPrice:7.9,lineMonthPrice:15.9,lineAnnualPrice:15.9,monthDiscount:38,annualDiscount:50,flashSale:{monthPrice:8.4,annualPrice:6.7}}
1,sku:{stripe:{monthly:20,annually:23},paddle:{monthly:305,annually:308}},marketing:{icon:"basic"},featureSectionKeys:{chat:"pricing.b_b_title",image:"pricing.b_i_title",video:"pricing.b_i_title",toolDescriptions:["b_o_c_1","b_o_c_2","b_o_c_3"]}}];function O(e,t,i){return"stripe"===i?({basic:{monthly:20,annually:23},pro:{monthly:21,annually:24},unlimited:{monthly:22,annually:25}})[e][t]:({basic:{monthly:305,annually:308},pro:{monthly:306,annually:309},unlimited:{monthly:307,annually:310}})[e][t]}let E=[23,24,25,308,309,310];function z({billingCycle:e,paymentMethod:t,flashSaleActive:i,t:a}){return D.map(n=>{var s,r,l,o;let c=n.pricing,d=(s=c.monthPrice,r=c.flashSale?.monthPrice,i&&null!=r?r:s),u=(l=c.annualPrice,o=c.flashSale?.annualPrice,i&&null!=o?o:l);return{id:n.id,name:a(n.nameKey),credits:n.credits,creditsFormatted:n.creditsFormatted,usageCaps:n.usageCaps,sku:O(n.id,e,t),monthPrice:d,annualPrice:u,lineMonthPrice:c.lineMonthPrice,lineAnnualPrice:c.lineAnnualPrice,monthDiscount:c.monthDiscount,annualDiscount:c.annualDiscount,recommended:n.marketing.recommended??!1,icon:n.marketing.icon,featureSectionKeys:n.featureSectionKeys,models:{chat:M(n.id,"chat"),image:M(n.id,"image"),video:M(n.id,"video"),audio:M(n.id,"audio"),"3d":M(n.id,"3d")},tools:I(n.id,"tools")}})}function L(e,t){return"monthly"===t?e.monthPrice:e.annualPrice}function A(e,t){return"monthly"===t?e.lineMonthPrice:e.lineAnnualPrice}function $(e,t){return"monthly"===t?e.monthDiscount:e.annualDiscount}function G(e){let t="string"==typeof e?Number(e):e;return!Number.isFinite(t)||t<=0?0:Math.ceil(1e6*t/8e-5)}function W(e,t="en-US"){return new Intl.NumberFormat(t,{maximumFractionDigits:0}).format(e)}e.s(["ANNUAL_SKU_IDS",0,E,"getPlanSku",()=>O],428589),e.s(["buildRuntimePlans",()=>z,"getDiscount",()=>$,"getDisplayPrice",()=>L,"getLinePrice",()=>A],958080),e.s(["creditsPer1MTokens",()=>G,"formatCredits",()=>W],541783);function V(e,t){if("chat"===t){if(e>=1e4)return 1e3*Math.round(e/1e3);if(e>=1e3)return 500*Math.round(e/500)}return e>=100?100*Math.round(e/100):e>=10?10*Math.round(e/10):Math.max(1,Math.round(e))}var R=e.i(282210);let B=new Set(["chatPaper","pair-programmer","pia-deepresearch","psychologist","decision-making","slang-dictionary","creative-writing","interviewer","brainstormer","jesus"]),H={openai:"provider_openai",anthropic:"provider_anthropic",google:"provider_google",deepseek:"provider_deepseek","x-ai":"provider_xai",qwen:"provider_qwen","meta-llama":"provider_meta",meta:"provider_meta",minimax:"provider_minimax",moonshotai:"provider_moonshot","z-ai":"provider_zai",mistralai:"provider_mistral",perplexity:"provider_perplexity",microsoft:"provider_microsoft","bytedance-seed":"provider_bytedance",xiaomi:"provider_xiaomi"},q=["openai","anthropic","google","deepseek","x-ai","qwen","meta-llama","meta","minimax","moonshotai","z-ai","mistralai","perplexity","microsoft","bytedance-seed","xiaomi"],K=new Set(q);function U(e){return e?/^v?\d/i.test(e)||/^o\d/i.test(e)||e.length<=3&&e===e.toLowerCase()?e.toUpperCase():e.charAt(0).toUpperCase()+e.slice(1):e}let Q=function(e=R.default){return e.filter(e=>!B.has(e.model_name)).map(e=>{var t;return{id:e.id,modelName:e.model_name,displayName:((t=e.model_name).includes("/")?t.split("/").slice(1).join(" / "):t).split(/[-_/]+/).map(U).join(" ").replace(/\bGpt\b/g,"GPT").replace(/\bGlm\b/g,"GLM").replace(/\bAi\b/g,"AI"),providerId:function(e){if(!e.includes("/"))return"openai";let t=e.split("/")[0];return K.has(t)?t:"openai"}(e.model_name),inputCreditsPer1M:G(e.in_price),outputCreditsPer1M:G(e.out_price)}})}();function X(e=Q){let t=new Map;for(let i of e)t.set(i.providerId,(t.get(i.providerId)??0)+1);return q.filter(e=>t.has(e)).map(e=>({id:e,count:t.get(e)??0,labelKey:H[e]}))}e.s(["CHAT_MODEL_PRICE_ROWS",0,Q,"getChatProviderOptions",()=>X],257305);var J=e.i(571581);let Y={"eleven-v3":"chars_1k","minimax-speech-2.8-hd":"chars_1k","qwen-3-tts-1.7b":"chars_1k","seed-audio-1.0":"minutes","minimax-voice-clone":"per_gen","qwen-voice-clone":"per_gen","eleven-voice-design":"chars_1k","eleven-voice-create":"per_gen","minimax-voice-design":"per_gen","qwen-voice-design":"chars_1k","minimax-music-2.6":"per_gen","lyria-2":"per_gen","eleven-music-v2.5":"minutes","scribe-v2":"minutes","eleven-dialogue-v3":"chars_1k"};function Z(e){return e?"chars_1k"===e?"unit_per_1k_chars":"minutes"===e?"unit_per_minute":"unit_per_run":null}let ee=/^rodin|^hunyuan-3d/i,et=new Set(["agnes-image","muse-image","midjourney","flux","flux-dev","flux-pro","flux-pro-1.1","flux-pro-1.1-ultra","flux-kontext-pro","flux-kontext-max","flux-2-pro","flux-2-flex","flux-2-max","flux-2-klein-4b","flux-2-klein-9b","gpt-image-1","gpt-image-1.5","gpt-image2","gpt-image-2","gpt-4o-image","sora_image","seedream4.5","seedream5","nano-banana-2","grok-imagine-image","z-image","qwen-image-3","wan2.7-pro","gemini-2.5-flash-image","gemini-3-pro-image","V_2","V_2_TURBO"]),ei=[/^dall-e-3/,/^imagen-/],ea={V_2:"Ideogram 2.0",V_2_TURBO:"Ideogram 2.0 Turbo"};function en(e){let t=ea[e];return t?{match:!0,variant:t}:null}let es=/eleven-v3|eleven-dialogue|minimax-speech|qwen-3-tts|seed-audio|voice-clone|voice-design|voice-create|minimax-music|lyria-2|eleven-music|scribe-v2/i;function er(e){return e?/^v?\d/i.test(e)||/^o\d/i.test(e)?e.toUpperCase():e.charAt(0).toUpperCase()+e.slice(1):e}function el(e){return e.split(/[-_/]+/).map(er).join(" ").replace(/\bGpt\b/g,"GPT").replace(/\bI2v\b/g,"I2V").replace(/\bT2v\b/g,"T2V").replace(/\bV(\d)/g,"V$1")}let eo=function(e=J.default){return e.map(e=>{var t;let i=function(e){if(en(e))return"ideogram";if(e.startsWith("dall-e-3"))return"dall-e-3";if(e.startsWith("kling-video/")){let t=e.split("/");return`${t[0]}/${t[1]}`}let t=e.indexOf("/");return t>0&&!e.startsWith("dall-e-3-")?e.slice(0,t):e}(e.model_name);return{id:e.id,modelName:e.model_name,category:(t=e.model_name,es.test(t)?"audio":ee.test(t)?"3d":en(t)||et.has(t)||ei.some(e=>e.test(t))?"image":"video"),familyKey:i,familyLabel:function(e){if(e.startsWith("kling-video/")){let t=e.split("/")[1]??"";return`Kling ${el(t)}`}return({"agnes-image":"Agnes Image 2.1 Flash","muse-image":"Muse Image","dall-e-3":"DALL·E 3","grok-imagine-video-1.5":"Grok Imagine Video 1.5","grok-imagine-video":"Grok Imagine Video","seedance-1-0-lite":"Seedance 1.0 Lite","seedance-1-5-pro":"Seedance 1.5 Pro","seedance-2-0":"Seedance 2.0","seedance-2.5":"Seedance 2.5","luma-ray-2-0":"Luma Ray 2.0","runway-gen-4-turbo":"Runway Gen-4 Turbo","vidu-q1":"Vidu Q1","minimax-h3":"Minimax H3","happy-horse-1.0":"Happy Horse 1.0","happy-horse-1.1":"Happy Horse 1.1","sora2-pro":"Sora 2 Pro",sora2:"Sora 2","wan-2.5":"Wan 2.5","wan-2.6":"Wan 2.6","wan-2.7":"Wan 2.7","wan-2.2-plus":"Wan 2.2 Plus","wan-2.2-flash":"Wan 2.2 Flas
1h","pixverse-v4":"Pixverse V4","pixverse-v4.5":"Pixverse V4.5","pixverse-v5":"Pixverse V5","pika-2.1":"Pika 2.1","pika-2.2":"Pika 2.2","flux-3":"Flux 3 Video",hunyuan:"Hunyuan Video",ideogram:"Ideogram","eleven-v3":"ElevenLabs v3","minimax-speech-2.8-hd":"MiniMax Speech 2.8 HD","qwen-3-tts-1.7b":"Qwen3 TTS 1.7B","seed-audio-1.0":"Seed Audio 1.0","minimax-voice-clone":"MiniMax Voice Clone","qwen-voice-clone":"Qwen3 Voice Clone","eleven-voice-design":"ElevenLabs Voice Design","eleven-voice-create":"ElevenLabs Voice Create","minimax-voice-design":"MiniMax Voice Design","qwen-voice-design":"Qwen3 Voice Design","minimax-music-2.6":"MiniMax Music 2.6","lyria-2":"Lyria 2","eleven-music-v2.5":"ElevenLabs Music v2.5","scribe-v2":"ElevenLabs Scribe v2","eleven-dialogue-v3":"ElevenLabs Dialogue v3"})[e]??el(e)}(i),variantLabel:function(e,t){let i=en(e);if(i)return i.variant;if(e.startsWith("kling-video/")){let t,i,a;return t=e.split("/"),i=t[2]?.replace(/-/g," ")??"",a=t[3]?`${t[3]}s`:"",[el(i),a].filter(Boolean).join(" · ")}if(t.startsWith("dall-e-3")){if("dall-e-3"===e)return"Standard";if("dall-e-3-1024"===e)return"1024";if("dall-e-3-1790"===e)return"1790"}if(e===t)return"Standard";let a=e.slice(t.length+1);if(!a)return"Standard";let n=a.split("/"),s=[];for(let e of n)/^\d+$/.test(e)?s.push(`${e}s`):"audio"===e?s.push("Audio"):/^\d+p$/i.test(e)||"4k"===e?s.push("4K"===e.toUpperCase()?"4K":e):e.includes("video")||e.includes("vidoe")?s.push(el(e.replace("vidoe","video"))):s.push(el(e));return s.join(" · ")||a}(e.model_name,i),credits:e.token,internalPrice:e.price,billingUnit:Y[e.model_name]}})}();function ec(e,t=eo){let i=new Map;for(let a of t){if(a.category!==e)continue;let t=i.get(a.familyKey);t||(t={familyKey:a.familyKey,familyLabel:a.familyLabel,category:a.category,rows:[],minCredits:a.credits,maxCredits:a.credits,billingUnit:a.billingUnit},i.set(a.familyKey,t)),t.rows.push(a),t.minCredits=Math.min(t.minCredits,a.credits),t.maxCredits=Math.max(t.maxCredits,a.credits)}let a=Array.from(i.values());for(let e of a)e.rows.sort((e,t)=>e.credits-t.credits||e.variantLabel.localeCompare(t.variantLabel));return a.sort((e,t)=>e.familyLabel.localeCompare(t.familyLabel)),a}function ed(e,t,i="en-US"){return e===t?W(e,i):`${W(e,i)} – ${W(t,i)}`}function eu(e=eo){let t={image:new Set,video:new Set,"3d":new Set,audio:new Set};for(let i of e)t[i.category].add(i.familyKey);return{image:t.image.size,video:t.video.size,"3d":t["3d"].size,audio:t.audio.size}}function em(){let e="paddle".toLowerCase()==="stripe"?"stripe":"paddle";return{paymentMethod:e,needPaddle:"paddle"===e,needStripe:"stripe"===e}}function ep({caps:e,formatCount:i,tPricing:a}){let n=[{key:"plan_credits_cap_images",count:e.images},{key:"plan_credits_cap_videos",count:e.videos},{key:"plan_credits_cap_voices",count:e.voices},{key:"plan_credits_cap_chat",count:e.chat}];return(0,t.jsx)("ul",{className:"mt-3 space-y-1 px-1 text-left",children:n.map(e=>(0,t.jsxs)("li",{className:"flex items-start gap-1.5 text-[10px] leading-snug text-[#585858] dark:text-[#b4b4b4] lg:text-xs",children:[(0,t.jsx)(y.Check,{className:"mt-0.5 h-3 w-3 shrink-0 text-[#69c94c] lg:h-3.5 lg:w-3.5",strokeWidth:2.5}),(0,t.jsx)("span",{children:a(e.key,{count:i(e.count)})})]},e.key))})}function ex({isOpen:e,onClose:i,onBeforeCheckout:d}){let u=(0,o.useTranslations)(),m=(0,o.useTranslations)("pricing"),p=(0,c.useLocale)(),{user:x,isMobile:b,handleOpenLogin:v}=(0,l.useAuth)(),{paymentMethod:_,needPaddle:C}=em(),[S,P]=(0,a.useState)(1),[I,M]=(0,a.useState)(!1),F=(0,a.useMemo)(()=>[{amount:50,credits:7e5,creditsFormatted:"700,000",bonus:15},{amount:100,credits:14e5,creditsFormatted:"1,400,000",bonus:35},{amount:200,credits:2875e3,creditsFormatted:"2,875,000",bonus:50},{amount:500,credits:625e4,creditsFormatted:"6,250,000",bonus:100}].map(e=>{var t;let i,a;return{...e,sku:(t=e.amount,"stripe"===_?({50:"8",100:"9",200:"10",500:"26"})[t]||"8":({50:301,100:302,200:303,500:304})[t]||301),usageCaps:(a=V(100*(i=e.credits/25e4),"media"),{images:a,videos:a/2,voices:V(200*i,"media"),chat:V(2e3*i,"chat")})}}),[_]),T=e=>new Intl.NumberFormat(p,{maximumFractionDigits:0}).format(e),D=F[S];return(0,a.useEffect)(()=>{e&&(0,N.sendGtagEvent)("top_up_modal_open",{locale:p})},[e,p]),(0,a.useEffect)(()=>
1{if(C)return e(),()=>{k.unregisterEventCallback("top-up-component")};async function e(){try{await k.initialize(),k.registerEventCallback("top-up-component",e=>{if("checkout.completed"===e.name){f.toast.success(u("top_up.success"));let t=window.location.origin,i=e.data?.id||"",a=e.data?.totals?.total||"";window.location.href=`${t}/payResult?code=success&orderCode=${i}&orderAmount=${a}`}})}catch(e){}}},[]),(0,t.jsxs)(t.Fragment,{children:[C&&(0,t.jsx)(j.default,{src:"https://cdn.paddle.com/paddle/v2/paddle.js",strategy:"afterInteractive"}),(0,t.jsx)(r.Dialog,{open:e,onOpenChange:e=>!e&&i(),children:(0,t.jsxs)(r.DialogContent,{className:"flex h-auto max-h-[92vh] w-[90vw] max-w-[1029px] flex-col overflow-hidden rounded-[20px] bg-white p-0 text-[#20272E] filter-light dark:bg-[#202020] lg:w-[1029px]",children:[(0,t.jsx)("div",{className:"absolute right-[20px] top-[20px] z-10 cursor-pointer",onClick:()=>i(),children:(0,t.jsx)(n.X,{className:"text-[#585858]",size:16})}),(0,t.jsx)(r.DialogTitle,{}),(0,t.jsxs)("div",{className:"flex flex-col overflow-hidden pt-10 lg:pt-11",children:[(0,t.jsxs)("div",{className:"max-h-[calc(92vh-6.25rem)] overflow-y-auto overscroll-contain px-6 pb-3 pt-2 hide-scrollbar hidden-scrollbar lg:max-h-[calc(92vh-6rem)] lg:px-[56px] lg:pb-4 lg:pt-3",children:[(0,t.jsx)("div",{className:"text-center text-[22px] font-bold lg:text-[24px]",children:u("top_up.title")}),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap justify-center gap-x-3 gap-y-1 px-1 text-[11px] font-medium text-[#585858] dark:text-[#b4b4b4] lg:gap-x-4 lg:text-xs",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(y.Check,{className:"h-3.5 w-3.5 shrink-0 text-[#0054FF] lg:h-4 lg:w-4",strokeWidth:2.5,"aria-hidden":!0}),u("top_up.badge_no_subscription")]}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(y.Check,{className:"h-3.5 w-3.5 shrink-0 text-[#0054FF] lg:h-4 lg:w-4",strokeWidth:2.5,"aria-hidden":!0}),u("top_up.badge_pay_as_you_go")]}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(y.Check,{className:"h-3.5 w-3.5 shrink-0 text-[#0054FF] lg:h-4 lg:w-4",strokeWidth:2.5,"aria-hidden":!0}),u("top_up.badge_cancel_anytime")]})]}),(0,t.jsxs)("div",{className:"mt-5 flex items-center justify-center gap-4 text-[30px] font-bold text-[#0054FF] lg:mt-6 lg:text-[40px] lg:gap-6",children:[(0,t.jsx)("img",{className:"h-[32px] w-[32px] lg:h-[45px] lg:w-[45px]",src:"/new-icon/top-up-icon.png",alt:"piax ai"}),(0,t.jsxs)("span",{children:[D.creditsFormatted," ",u("top_up.Tokens")]})]}),(0,t.jsx)("div",{className:"mt-4 flex w-full flex-col gap-3 lg:mt-6 lg:flex-row lg:items-stretch lg:justify-between lg:gap-4",children:F.map((e,i)=>(0,t.jsxs)("div",{onClick:()=>{P(i)},className:`bg-[#F2F2F2] dark:bg-[#27272a] border-2 ${S==i?"border-[#0054FF]":"border-transparent"} rounded-[20px] px-2 pt-[14px] pb-[14px] lg:px-3 lg:pt-[40px] lg:pb-[28px] flex-1 flex flex-col justify-center items-center cursor-pointer relative`,children:[1==i&&(0,t.jsx)("div",{className:"w-[75px] h-[44px] absolute -top-3 left-1/2 -translate-x-1/2",children:(0,t.jsx)("img",{src:"/new-icon/hot.png",alt:"piax ai"})}),3==i&&(0,t.jsxs)("div",{className:"w-[115px] h-[25px] flex justify-center items-center absolute -top-3 left-1/2 -translate-x-1/2 rounded-lg",style:{background:"linear-gradient(-90deg, #FCA72E, #FF8C56)",boxShadow:"0px 2px 5px 0px rgba(212,112,62,0.17)"},children:[(0,t.jsx)("img",{className:"w-3 h-3 mr-2",src:"/new-icon/best.png",alt:"piax ai"}),(0,t.jsx)("span",{className:"text-xs text-white dark:text-white",children:u("top_up.best")})]}),(0,t.jsx)("div",{className:`text-[32px] font-medium lg:text-[40px] ${S==i?"text-[#0054FF]":""}`,children:g(e.amount)}),(0,t.jsxs)("div",{className:"bg-[#0054FF] text-white dark:text-white rounded-[19px] flex items-center py-2 px-4 mt-3 lg:mt-6",children:[(0,t.jsx)(w,{size:22,className:"mr-2"}),"+",g(e.bonus)]}),(0,t.jsx)(ep,{caps:e.usageCaps,formatCount:T,tPricing:m})]},i))}),(0,t.jsx)("p",{className:"mt-3 text-center text-xs leading-snug text-[#858585] dark:text-[#b4b4b4]",children:m("plan_credits_cap_footnote")}),(0,t.jsx)("div",{className:"mt-2 text-center text-[#D73313]",children:u("order_v.top_up_warning")})]}),(0,t.jsx)("div",{className:"shrink-0 border-t border-[#f0f0f0] bg-white px-6 pb-5 pt-3 lg:px-[56px] lg:pb-6 lg:pt-4",children:(0,t.jsxs)("div",{onClick:()=>{let e;x?.id?I||(M(!0),e=window.location.origin,("stripe"===_?h.pay:h.paddlePay)({productNo:"pia",freeTrial:!0,orderSource:"",skuId:D.sku,paymentMethod:_,cancelUrl:`${e}/payResult?code=cancel&orderCode={orderCode}&orderAmount={orderAmount}`,successUrl:`${e}/payResult?code=success&orderCode={orderCode}&orderAmount={orderAmount}`}).then(e=>{if(e){if(gtag("event","begin_checkout",{currency:"USD",value:D.amount,items:{item_id:D.sku,item_name:"top_up",affiliation:"top_up",ua:b?"mobile":"pc",user_id:x?.id,payment_method:_,event_time:new Date().toISOString()}}),"stripe"===_&&e.url&&(window.location.href=e.url),"paddle"===_&&e.transactionId){if(M(!1),!k.isReady())return void f.toast.error(u("top_up.payment_init_error"));try{d?.(),i(),setTimeout(()=>{k.openCheckout({transactionId:e.transactionId,settings:{displayMode:"overlay",variant:"one-page"}},"top-up-component")},300)}catch(e){f.toast.error(u("top_up.payment_error")||"")}}}else M(!1),f.toast.info(e.message)})):v()}
1,className:"mx-auto flex h-[52px] w-full max-w-[358px] cursor-pointer items-center justify-center rounded-full bg-[#0054FF] text-[17px] font-semibold text-white lg:h-[54px] lg:text-[18px]",children:[u("top_up.Continue"),I&&(0,t.jsx)("div",{className:"ml-2 animate-spin",children:(0,t.jsx)(s.Loader,{size:20})})]})})]})]})})]})}e.s(["audioUnitMessageKey",()=>Z,"formatCreditsRange",()=>ed,"getMediaCategoryCounts",()=>eu,"getMediaFamilies",()=>ec],831980),e.s(["usePaymentProvider",()=>em],791748),e.s(["TopUp",()=>ex],561346);var ef=e.i(647163);let eh=[{file:"mastercard",maxW:42},{file:"visa",maxW:48},{file:"americanexpress",maxW:44},{file:"applepay",maxW:46},{file:"googlepay",maxW:48},{file:"alipay",maxW:52},{file:"wechat",maxW:44},{file:"paypal",maxW:48},{file:"paddle",maxW:52}];function eg({className:e,compact:i,centered:a,lightOnly:n,provider:s="paddle"}){let r=(0,o.useTranslations)("payment_trust"),l=i?24:30,c=eh.filter(e=>"paddle"!==e.file||"paddle"===s);return(0,t.jsxs)("div",{className:(0,ef.cn)("flex flex-col gap-3",e),children:[(0,t.jsxs)("div",{className:(0,ef.cn)(a?"text-center":"text-center lg:text-left"),children:[(0,t.jsx)("p",{className:(0,ef.cn)("font-medium text-[#20272E]",!n&&"dark:text-[#f4f4f5]",i?"text-[13px]":"text-sm"),children:r("secure_heading")}),(0,t.jsx)("p",{className:(0,ef.cn)("mt-1 text-[#585858]",!n&&"dark:text-[#a1a1aa]",i?"text-[12px] leading-snug":"text-[13px] leading-snug"),children:r("stripe"===s?"stripe_powered":"paddle_powered")})]}),(0,t.jsx)("ul",{className:(0,ef.cn)("m-0 flex list-none flex-wrap items-center justify-center gap-x-4 gap-y-2.5 p-0",!a&&"lg:justify-start",i&&"gap-x-3 gap-y-2"),"aria-label":r("methods_aria"),children:c.map(({file:e,maxW:i})=>(0,t.jsx)("li",{className:"flex shrink-0 items-center",children:(0,t.jsx)("img",{src:`/payment-icons/${e}.svg`,alt:"",width:i,height:l,className:(0,ef.cn)("w-auto max-w-full object-contain object-center opacity-[0.92]","applepay"===e&&!n&&"dark:invert"),style:{height:`${l}px`,maxWidth:`${i}px`},loading:"lazy"})},e))}),(0,t.jsx)("p",{className:(0,ef.cn)("text-[#858585]",!n&&"dark:text-[#71717a]",a?"text-center":"text-center lg:text-left",i?"text-[11px] leading-snug":"text-xs leading-snug"),children:r("availability_note")})]})}e.s(["PaymentMethodsTrust",()=>eg],665828);var eb=e.i(127341);function ev({children:e,className:i}){return(0,t.jsx)("div",{"data-pricing-light":!0,className:(0,ef.cn)("filter-light text-[#20272E]",i),children:e})}function ew({value:e,onChange:i,maxAnnualDiscount:a=57,topUpSlot:n}){let s=(0,o.useTranslations)("pricing");return(0,t.jsxs)(ev,{className:"pricing-billing-bar relative mx-auto max-w-[1200px] px-4 sm:px-5",children:[n&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-4 z-10 hidden md:flex md:items-center",children:n}),(0,t.jsx)("div",{className:"flex min-h-[40px] items-center justify-center md:min-h-0",children:(0,t.jsx)(eb.Tabs,{className:"w-fit",value:e,onValueChange:e=>i(e),children:(0,t.jsxs)(eb.TabsList,{className:"inline-flex h-12 gap-1 rounded-full bg-[#F2F2F2] p-1",children:[(0,t.jsx)(eb.TabsTrigger,{value:"monthly",className:"rounded-full px-6 data-[state=active]:bg-[#0054FF] data-[state=active]:text-white data-[state=active]:shadow-sm",children:s("monthly")}),(0,t.jsxs)(eb.TabsTrigger,{value:"annually",className:"relative rounded-full px-6 data-[state=active]:bg-[#0054FF] data-[state=active]:text-white data-[state=active]:shadow-sm",children:[s("annually"),(0,t.jsxs)("span",{className:"absolute -right-3 -top-3 rounded-full bg-[#FF3B30] px-2 py-0.5 text-xs font-bold text-white shadow-lg",children:["-",a,"%"]})]})]})})})]})}e.s(["PricingLightScope",()=>ev],281768),e.s(["BillingCycleToggle",()=>ew],273660);var ey=e.i(626438),ej=e.i(581418),e_=e.i(664659);let ek=(0,v.default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var eN=e.i(87309),eC=e.i(72664),eS=e.i(473708);let eP=(0,v.default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);var eI=e.i(278716),eM=e.i(195116);let eF={image:eS.Image,video:eI.Video,audio:eN.AudioLines,"3d":eC.Box,chat:eP,tools:eM.Wrench};function eT(){return(0,t.jsx)(y.Check,{size:16,className:"mt-0.5 flex-shrink-0 text-[#69c94c]",strokeWidth:2.5})}function eD({category:e}){let i=eF[e];return(0,t.jsx)(i,{size:16,className:"mt-0.5 flex-shrink-0 text-[#0054ff]",strokeWidth:2.25})}function eO({children:e}){return(0,t.jsxs)("li",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(eT,{}),(0,t.jsx)("span",{className:"min-w-0 flex-1 text-sm leading-snug",children:e})]})}function eE({available:e}){return e?(0,t.jsx)(y.Check,{size:16,className:"flex-shrink-0 text-[#69c94c]",strokeWidth:2.5}):(0,t.jsx)(n.X,{size:16,className:"flex-shrink-0 text-[#858585]",strokeWidth:2.5})}function ez({name:e,logoIcon:i,available:a=!0}){return(0,t.jsxs)("li",{className:"flex items-center gap-2",children:[(0,t.jsx)(eE,{available:a}),i?(0,t.jsx)("img",{className:`h-[18px] w-[18px] flex-shrink-0 rounded-full ${a?"":"grayscale opacity-50"}`,src:i,alt:""}):(0,t.jsx)("span",{className:"h-[18px] w-[18px] flex-shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{className:`min-w-0 flex-1 text-sm leading-snug ${a?"":"text-[#858585]"}`,children:e})]})}function eL({tierId:e,category:i,models:a,expanded:n,onShowMore:s}){let r=(0,o.useTranslations)("pricing"),l=F(e,i,5),c=n?a:l,d=a.length-l.length;return a.some(t=>t.tiers[e])?(0,t.jsxs)("ul",{className:"mt-2 space-y-2",children:[c.map(i=>(0,t.jsx)(ez,{name:i.name,logoIcon:i.logoIcon,available:i.tiers[e]},i.id)),!n&&d>0&&(0,t.jsx)("li",{className:"ml-[26px]",children:(0,t.jsx)("button",{type:"button",onClick:s,className:"text-xs font-medium text-[#0054ff] hover:underline",children:r("show_more",{count:d})})})]}):(0,t.jsx)("p",{className:"ml-[26px] text-xs text-[#858585]",children:r("no_models_in_category")})}function eA({title:e,tierId:i,category:n,models:s}){let r=(0,o.useTranslations)("pricing"),[l,c]=(0,a.useState)(!1),d=s.length>5;return(0,t.jsxs)("div",{className:"border-t border-[#DBDBDB] pt-4",children:[(0,t.jsxs)("button",{type:"button",className:"flex w-full items-start gap-2.5 text-left",onClick:()=>d&&c(e=>!e),disabled:!d,children:[(0,t.jsx)(eD,{category:n}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center justify-between gap-2",children:[(0,t.jsxs)("h4",{className:"text-sm font-semibold leading-snug",children:[e,"unlimited"===i&&(0,t.jsx)("span",{className:"ml-1 font-normal text-[#858585]",children:r("unlimited_category_unlock")})]}),d&&(l?(0,t.jsx)(ek,{size:16,className:"flex-shrink-0"}):(0,t.jsx)(e_.ChevronDown,{size:16,className:"flex-shrink-0"}))]})]}),(0,t.jsx)("div",{className:"ml-[26px]",children:(0,t.jsx)(eL,{tierId:i,category:n,models:s,expanded:l,onShowMore:()=>c(!0)})})]})}function e$({plan:e,compact:i,className:a}){let n=(0,o.useTranslations)("pricing"),s=(0,c.useLocale)(),{id:r,models:l,tools:d,featureSectionKeys:u,usageCaps:m,creditsFormatted:p}=e,x=[{key:"plan_credits_cap_images",count:m.images},{key:"plan_credits_cap_videos",count:m.videos},{key:"plan_credits_cap_voices",count:m.voices},{key:"plan_credits_cap_chat",count:m.chat}];return(0,t.jsxs)("div",{className:`space-y-4 border-t border-[#DBDBDB] ${i?"mt-5 pt-5":"mt-6 pt-5"} ${a??""}`,children:[(0,t.jsxs)("ul",{className:"space-y-2.5",children:[(0,t.jsx)(eO,{children:n("plan_bullet_credits",{credits:p})}),x.map(e=>{let i;return(0,t.jsx)(eO,{children:n(e.key,{count:(i=e.count,new Intl.NumberFormat(s,{maximumFractionDigits:0}).format(i))})},e.key)})]}),(0,t.jsx)("p",{className:"text-xs leading-snug text-[#858585]",children:n("plan_credits_cap_footnote")}),(0,t.jsx)(eA,{title:n("ai_image"),tierId:r,category:"image",models:l.image}),(0,t.jsx)(eA,{title:n("ai_video"),tierId:r,category:"video",models:l.video}),(0,t.jsx)(eA,{title:n("ai_voice"),tierId:r,category:"audio",models:l.audio}),(0,t.jsx)(eA,{title:n("ai_3d"),tierId:r,category:"3d",models:l["3d"]}),(0,t.jsx)(eA,{title:n("ai_chat"),tierId:r,category:"chat",models:l.chat}),(0,t.jsxs)("div",{className:"border-t border-[#DBDBDB] pt-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(eD,{category:"tools"}),(0,t.jsx)("h4",{className:"text-sm font-semibold leading-snug",children:n("ai_tools")})]}),(0,t.jsxs)("ul",{className:"ml-[26px] mt-2 space-y-2",children:[d.map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-2 text-sm leading-snug",children:[(0,t.jsx)(eE,{available:!0}),e.name]},e.id)),u.toolDescriptions.map(e=>(0,t.jsx)("li",{className:"text-xs leading-snug text-[#585858]",children:n(e)},e))]})]})]})}function eG({icon:e}){return"infinity"===e?(0,t.jsx)(ey.Infinity,{size:32,strokeWidth:"3px"}):"basic"===e?(0,t.jsx)(ej.ShieldCheck,{size:26,strokeWidth:"3px",className:"opacity-30"}):(0,t.jsx)(ej.ShieldCheck,{size:26,strokeWidth:"3px"})}function eW({plan:e,billingCycle:i,isCurrentPlan:a,loading:n,countdown:r,onSubscribe:l,className:c}){let d=(0,o.useTranslations)("pricing"),u=L(e,i),m=A(e,i),p=$(e,i),x="annually"===i,f="basic"!==e.id;return(0,t.jsxs)("div",{className:`pricing-plan-card relative flex h-full min-h-full w-full flex-col rounded-[30px] px-5 py-6 ${e.recommended?"animate-breathe-border border-2 border-[#0054FF] bg-[rgba(0,84,255,.06)]":"bg-[#F2F2F2]"} ${c??""}`,children:[e.recommended&&(0,t.jsx)("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 whitespace-nowrap rounded-full bg-[#0054FF] px-4 py-1 text-xs font-bold text-white",children:d("most_popular")}),r&&(0,t.jsxs)("div",{className:"absolute right-8 top-[75px] flex items-center gap-1 rounded-sm",children:[(0,t.jsx)("div",{className:"flex h-[28px] w-[28px] items-center justify-center rounded-sm bg-[#20272e] font-medium text-white",children:r.minutes}),":",(0,t.jsx)("div",{className:"flex h-[28px] w-[28px] items-center justify-center rounded-sm bg-[#20272e] font-medium text-white",children:r.seconds})]}),(0,t.jsxs)("div",{className:"flex min-h-[37px] items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-[9px]",children:[(0,t.jsx)(eG,{icon:e.icon}),(0,t.jsx)("span",{className:"text-xl font-bold",children:e.name})]}),f&&p>0&&(0,t.jsxs)("div",{className:"flex h-[37px] flex-shrink-0 items-center justify-center rounded-full border-2 border-[#0054FF] bg-[rgba(0,84,255,.1)] px-3 text-sm font-bold text-[#0054FF]",children:[d("flash_sale")," ",p,"%"]})]}),(0,t.jsxs)("div",{className:"mt-6",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-1.5 gap-y-1",children:[(0,t.jsx)("span",{className:"text-[36px] font-bold",children:g(u)}),(0,t.jsx)("span",{className:"text-base",children:d("per_month")}),m>u&&(0,t.jsxs)("span",{className:"text-sm line-through text-[#858585]",children:[g(m),d("per_month")]})]}),x&&(0,t.jsxs)("div",{className:"mt-2 text-sm",children:[(0,t.jsxs)("span",{className:"mr-4 font-bold",children:[g((12*e.annualPrice).toFixed(0)),d("per_year")]}),(0,t.jsxs)("span",{className:"line-through text-[#858585]",children:[g((12*e.lineAnnualPrice).toFixed(0)),d("per_year")]})]}),x&&(0,t.jsx)("p",{className:"mt-2 text-sm text-[#0054ff]",children:d("save_off").replace("1",String(e.annualDiscount))}),(0,t.jsx)("button",{type:"button",disabled:a||n,onClick:l,className:`mt-5 flex h-[54px] w-full cursor-pointer items-center justify-center rounded-full text-xl font-medium disabled:cursor-default ${e.recommended?`${!a&&!n?"pricing-pro-btn-shimmer ":""}bg-[#0054FF] text-white`:"border border-[#0054ff] bg-white text-[#0054ff]"}`,children:(0,t.jsxs)("span",{className:"relative z-[1] flex items-center justify-center",children:[a?d("current_s"):d("buy_plan",{plan:e.name}),n&&(0,t.jsx)("span",{className:"ml-2 animate-spin",children:(0,t.jsx)(s.Loader,{size:20})})]})})]}),(0,t.jsx)(e$,{plan:e,className:"flex-1"})]})}
1function eV({plans:e,billingCycle:i,currentSku:a,payFlag:n,payingPlanIndex:s,countdown:r,onSubscribe:l}){return(0,t.jsx)(ev,{className:"pricing-plans-grid mt-8 grid grid-cols-1 gap-5 md:grid-cols-3 md:items-stretch",children:e.map((e,o)=>(0,t.jsx)("div",{className:"pricing-plan-cell flex min-h-0 h-full",children:(0,t.jsx)(eW,{className:"flex-1",plan:e,billingCycle:i,isCurrentPlan:null!=a&&a===e.sku,loading:n&&s===o,countdown:r,onSubscribe:()=>l(e,o)})},e.id))})}e.s(["PricingPlansGrid",()=>eV],945071);let eR=Math.max(...D.map(e=>e.pricing.annualDiscount));function eB(){let i=(0,o.useTranslations)(),d=(0,c.useLocale)(),u=(0,m.usePathname)(),{user:g,subscription:v,isMobile:w,handleUserSubPlan:y,handleOpenLogin:_}=(0,l.useAuth)(),[C,S]=(0,a.useState)("zh"===d||"en"===d?"monthly":"annually"),{paymentMethod:P,needPaddle:I,needStripe:M}=em(),[F,T]=(0,a.useState)(!1),[D,O]=(0,a.useState)(-1),G=(0,a.useRef)(0),[W,V]=(0,a.useState)(!1),[R,B]=(0,a.useState)(!1),H=(0,a.useMemo)(()=>z({billingCycle:C,paymentMethod:P,flashSaleActive:F,t:i}),[C,P,F,i]),q=(0,a.useRef)(null),K=(0,a.useRef)(null),U=(0,a.useRef)(null),Q=(0,a.useRef)(""),[X,J]=(0,a.useState)(!1),[Y,Z]=(0,a.useState)(!1),[ee,et]=(0,a.useState)(!1),[ei,ea]=(0,a.useState)(!1),[en,es]=(0,a.useState)("29"),[er,el]=(0,a.useState)("59"),[eo,ec]=(0,a.useState)("99"),ed=(0,a.useRef)(0);function eu(e,t){G.current=e;let i=window.location.origin;("stripe"===P?h.pay:h.paddlePay)({productNo:"pia",enableExtraDiscount:!!ed.current,uiMode:"embedded",freeTrial:!0,orderSource:"",skuId:e,paymentMethod:P,cancelUrl:`${i}/payResult?code=cancel&orderCode={orderCode}&orderAmount={orderAmount}`,successUrl:`${i}/payResult?code=success&orderCode={orderCode}&orderAmount={orderAmount}`}).then(i=>{if(i){if(gtag("event","begin_checkout",{currency:"USD",value:E.includes(e)?Math.round(12*Number(t)):Number(t),items:{item_id:e,item_name:`${C}_plan`,affiliation:"Subscribe",ua:w?"mobile":"pc",user_id:g?.id,payment_method:P,event_time:new Date().toISOString()}}),"stripe"===P&&i.clientSecret){Q.current=i.clientSecret,ep();return}if("paddle"===P&&i.transactionId)return void ef(i.transactionId);i.url&&(window.location.href=i.url)}else V(!1),f.toast.warning(i.message)})}(0,a.useEffect)(()=>{(0,N.sendGtagEvent)("paybox_view",{ua:w?"mobile":"pc",locale:d,page_path:u,user_id:g?.id,event_time:new Date().toISOString()})},[]),(0,a.useEffect)(()=>{async function t(){if(I)try{await k.initialize(),k.registerEventCallback("pay-box-component",e=>{switch(e.name){case"checkout.completed":y();{let t=window.location.origin,i=e.data?.id||"",a=e.data?.totals?.total||"";window.location.href=`${t}/payResult?code=success&orderCode=${i}&orderAmount=${a}`}break;case"checkout.closed":ed.current||ei?J(!1):(ed.current=G.current,localStorage.setItem("orderOffStartTime",Math.floor(Date.now()/1e3).toString()),T(!0),Z(!0),es("29"),el("29"),ec("99"),eb())}})}catch{}}(async function(){if(!M||q.current)return;let{loadStripe:t}=await e.A(675340);q.current=await t("pk_live_51QZp5bB3okta7x5hC5kkWNQedfwXYISFHRXTeRa4oQCHi1Q658aK227YuUJPrKOntPDo1NqYHACKmYOnnCqgPdrw00dR3iPFt4",{locale:"en"})})(),t(),eh();let i="hidden",a="visibilitychange";void 0!==document.hidden?(i="hidden",a="visibilitychange"):void 0!==document.mozHidden?(i="mozHidden",a="mozvisibilitychange"):void 0!==document.msHidden?(i="msHidden",a="msvisibilitychange"):void 0!==document.webkitHidden&&(i="webkitHidden",a="webkitvisibilitychange");let n=()=>{document[i]?K.current&&clearInterval(K.current):eh()};return document.addEventListener(a,n,!1),()=>{k.unregisterEventCallback("pay-box-component"),K.current&&clearInterval(K.current),document.removeEventListener(a,n,!1)}},[]);let ep=async()=>{V(!1),J(!0),et(!0),q.current&&(U.current=await q.current.initEmbeddedCheckout({clientSecret:Q.current}),setTimeout(()=>U.current?.mount("#checkout"),500),setTimeout(()=>{let e=document.querySelector(".order-off-content");e&&(e.style.display="none")},1e3))},ef=async e=>{if(V(!1),!k.isReady())return void f.toast.error("Paddle init error, please reload!");try{e_(),setTimeout(()=>{k.openCheckout({transactionId:e,settings:{displayMode:"overlay",theme:"light",locale:d||"en",variant:"one-page"}},"pay-box-component")},300)}catch{f.toast.error("Paddle init error, please reload!")}};function eh(){let e=JSON.parse(localStorage.getItem("orderOff")||"{}"),t=parseInt(localStorage.getItem("orderOffStartTime")||"0",10);if(t>0&&Math.floor(Date.now()/1e3)-t>86400){localStorage.removeItem("orderOffStartTime"),localStorage.removeItem("orderOff"),ed.current=0,T(!1);return}if("orderOffTimeOut!"===e.status)return void ea(!0);if(null!=e.min&&e.min>=0&&e.sec>=0){let i=Math.floor(Date.now()/1e3)-t;if(i>1800)ev(),ed.current=0,T(!1);else{let t=1800-i;es(ey(Math.floor(t/60))),el(ey(t%60)),ed.current=e.orderOffSkuId,T(!0),H.forEach((e,t)=>{E.includes(ed.current)&&e.sku===ed.current&&O(t)}),K.current&&clearInterval(K.current),eb(ey(Math.floor(t/60)),ey(t%60))}}else ed.current=0,T(!1)}function eb(e,t){K.current&&(clearInterval(K.current),K.current=null);let i=parseInt(eo,10),a=parseInt(t||er,10),n=parseInt(e||en,10);K.current=setInterval(()=>{i>0?ej(--i,a,n):a>0?(i=99,a--,ej(i,a,n)):n>0?(n--,ej(i=99,a=59,n)):(K.current&&clearInterval(K.current),es("00"),el("00"),ec("00"),ed.current=0,T(!1),ea(!0),ev())},10)}function ev(){localStorage.setItem("orderOff",JSON.stringify({status:"orderOffTimeOut!",orderOffSkuId:0}))}function ey(e){return e<10?`0${e}`:e.toString()}function ej(e,t,i){ec(ey(e)),el(ey(t)),es(ey(i)),localStorage.setItem("orderOff",JSON.stringify({min:ey(i),sec:ey(t),orderOffSkuId:ed.current}))}function e_(){x.authService.callPayBox(0)}let ek=D>=0?H[D]:null;return(0,t.jsxs)(t.Fragment,{children:[I&&(0,t.jsx)(j.default,{src:"https://cdn.paddle.com/paddle/v2/paddle.js",strategy:"afterInteractive"}),(0,t.jsx)(r.Dialog,{open:!0,onOpenChange:e_,children:(0,t.jsxs)(r.DialogContent,{className:"paybox-dialog filter-light flex h-[92vh] w-[95vw] max-w-[1240px] flex-col overflow-hidden rounded-[20px] bg-white px-4 py-6 text-[#20272E] md:rounded-[24px] md:px-6",children:[(0,t.jsx)("div",{className:"absolute right-5 top-5 z-10 cursor-pointer",onClick:e_,children:(0,t.jsx)(n.X,{className:"text-[#585858]",size:16})}),(0,t.jsxs)(r.DialogHeader,{className:"shrink-0 px-10 text-center sm:text-center",children:[(0,t.jsx)(r.DialogTitle,{className:"text-[20px] font-bold leading-snug tracking-tight text-[#20272E] md:text-[24px]",children:i("pay_box.title")}),(0,t.jsx)(r.DialogDescription,{className:"mt-2 text-sm leading-snug text-[#585858]",children:i("pay_box.subtitle")})]}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto pt-4",children:[(0,t.jsx)(ew,{value:C,onChange:S,maxAnnualDiscount:eR,topUpSlot:(0,t.jsx)("button",{type:"button",onClick:()=>B(!0),className:"pointer-events-auto flex h-9 min-w-[96px] items-center justify-center rounded-2xl border border-[#20272E] px-4 text-xs font-medium text-[#20272E] hover:bg-[#20272E]/5",children:i("top_up.name")}
1)}),(0,t.jsx)("div",{className:"pricing-plans-wrap mx-auto max-w-[1200px] px-0 sm:px-2",children:(0,t.jsx)(eV,{plans:H,billingCycle:C,currentSku:v?.skuIdList?.[0],payFlag:W,payingPlanIndex:D,countdown:F?{minutes:en,seconds:er}:null,onSubscribe:function(e,t){g?.id?v?.status===1&&v?.skuIdList?.[0]===e.sku||W||(G.current=e.sku,V(!0),O(t),eu(e.sku,L(e,C))):_()}})}),(0,t.jsx)("p",{className:"mx-auto mt-6 max-w-[1200px] px-2 text-center text-xs leading-snug text-[#585858]",children:i.rich("payment_trust.cancel_anytime_rich",{link:e=>(0,t.jsx)(p.Link,{href:"/user",target:"_blank",rel:"noopener noreferrer",className:"text-[#0054ff] underline underline-offset-2 hover:opacity-90",children:e})})}),(0,t.jsx)(eg,{lightOnly:!0,centered:!0,provider:P,className:"mx-auto mt-4 max-w-[1200px] rounded-2xl border border-[#e5e5e5] bg-[#fafafa] px-4 py-4"})]}),X&&"stripe"===P&&(0,t.jsxs)("div",{className:"fixed inset-0 z-[999] flex h-full w-full flex-col items-center bg-black bg-opacity-70 pt-[5vh] md:justify-center xl:pt-0",children:[ee&&(0,t.jsx)("button",{type:"button",className:"relative left-[160px] top-[70px] z-[9999] cursor-pointer text-[#20272e] md:left-[480px] md:top-[40px]",onClick:()=>{if(ed.current||ei){J(!1),"stripe"===P&&U.current?U.current.destroy():"paddle"===P&&k.closeCheckout();let e=document.querySelector("#checkout");e&&(e.style.width="0")}else ed.current=G.current,localStorage.setItem("orderOffStartTime",Math.floor(Date.now()/1e3).toString()),T(!0),Z(!0),es("29"),el("29"),ec("99"),eb()},children:(0,t.jsx)(n.X,{size:16})}),(0,t.jsx)("div",{id:"checkout",className:"relative z-[2] max-h-[90vh] min-h-[550px] w-[90vw] overflow-x-hidden overflow-y-scroll rounded-[10px] bg-white py-[30px] hide-scrollbar hidden-scrollbar dark:bg-white lg:max-h-[630px] lg:w-[1020px]"}),(0,t.jsx)("div",{className:"order-off-content absolute left-1/2 top-[45%] z-[3] h-[35px] w-[35px] -translate-x-1/2 -translate-y-1/2 color-white",children:(0,t.jsx)("div",{className:"mx-auto mt-10 flex h-6 w-6 animate-spin items-center",children:(0,t.jsx)(s.Loader,{className:"h-6 w-6"})})})]}),Y&&ek&&(0,t.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black bg-opacity-70",children:(0,t.jsx)(b,{sku:G.current,price:L(ek,C),originalPrice:A(ek,C),discount:$(ek,C),countDown:{m:en,s:er,ms:eo},onClose:()=>{Z(!1),et(!1),"stripe"===P&&U.current?U.current.destroy():"paddle"===P&&k.closeCheckout();let e=document.querySelector(".order-off-content");e&&(e.style.display="block");let t=H[D];t&&eu(t.sku,L(t,C))}})})]})}),(0,t.jsx)(ex,{isOpen:R,onClose:()=>B(!1),onBeforeCheckout:e_})]})}e.s(["default",()=>eB],474205)}]);

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.