1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,881464,e=>{"use strict";e.i(247167),e.i(271645);var t,r=e.i(174080),n=e.i(31575),i=e.i(33968),s=e.i(410160),a=(0,e.i(209428).default)({},r),o=a.version,l=a.render,c=a.unmountComponentAtNode;try{Number((o||"").split(".")[0])>=18&&(t=a.createRoot)}catch(e){}e.i(88014);e.s([],881464)},175696,e=>{"use strict";var t=e.i(861745),r=e.i(843476);function n({locale:e,...n}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...n})}e.s(["default",()=>n])},164065,e=>{"use strict";var t=e.i(271645),r=e.i(582227),n=e.i(531752);function i(){let{user:e,handleOpenLogin:i,openLogin:s}=(0,r.useAuth)(),a=(0,t.useRef)(!1),o=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{if((0,n.getExtensionIdFromQuery)()){if(e?.id){if(o.current)return;if((0,n.sendAuthToExtension)())o.current=!0;else{let e=window.setTimeout(()=>{(0,n.sendAuthToExtension)()&&(o.current=!0)},300);return()=>window.clearTimeout(e)}return}s||a.current||(a.current=!0,i())}},[e?.id,s,i]),null}e.s(["ExtensionAuthBridge",()=>i])},862134,e=>{e.v({customCloseButton:"Toast-module-scss-module__Nx9cwa__customCloseButton",toastContent:"Toast-module-scss-module__Nx9cwa__toastContent"})},793610,e=>{"use strict";var t=e.i(843476),r=e.i(170319),n=e.i(862134),i=e.i(37727);let s={success:(e,t={})=>{r.toast.success(e,a(t))},error:(e,t={})=>{r.toast.error(e,a(t))},info:(e,t={})=>{r.toast.info(e,a(t))},warn:(e,t={})=>{r.toast.warn(e,a(t))}},a=(e={})=>{let r={className:n.default.toastContent,...e};
1return!0===e.closeButton?r.closeButton=e=>(0,t.jsx)(o,{...e}):void 0===e.closeButton&&(r.closeButton=!1),r},o=({closeToast:e})=>(0,t.jsx)("button",{className:n.default.customCloseButton,onClick:e,children:(0,t.jsx)(i.X,{className:"w-4 h-4"})}),l=()=>(0,t.jsx)(r.ToastContainer,{position:"top-center",autoClose:2e3,closeButton:!1,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,theme:"light",toastClassName:e=>e?.type==="error"||e?.type==="success"||e?.type==="info"||e?.type==="warning"?n.default.toastContent:"",icon:({type:e,theme:r})=>{switch(e){case"info":return(0,t.jsx)("div",{children:"â¹ï¸"});case"error":return(0,t.jsx)("div",{children:"â"});case"success":return(0,t.jsx)("div",{children:"â
"});case"warning":return(0,t.jsx)("div",{children:"â ï¸"});default:return null}}});e.s(["Toast",()=>s,"ToastContainerWrapper",()=>l])},716915,(e,t,r)=>{!function(n,i){if("function"==typeof define&&define.amd){let n;void 0!==(n=i(e.r,r,t))&&e.v(n)}else t.exports=i()}(e.e,function(){var e,t,r,n={};n.version="0.2.0";var i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function s(e,t,r){return e<t?t:e>r?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(i[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();n.status=1===(e=s(e,i.minimum,1))?null:e;var r=n.render(!t),l=r.querySelector(i.barSelector),c=i.speed,d=i.easing;return r.offsetWidth,a(function(t){var s,a,u,h;""===i.positionUsing&&(i.positionUsing=n.getPositioningCSS()),o(l,(s=e,a=c,u=d,(h="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+s)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+s)*100+"%,0)"}:{"margin-left":(-1+s)*100+"%"}).transition="all "+a+"ms "+u,h)),1===e?(o(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){o(r,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},c)},c)):setTimeout(t,c)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},i.trickleSpeed)};return i.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*s(Math.random()*t,.1,.95)),t=s(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var r,s=t.querySelector(i.barSelector),a=e?"-100":(-1+(n.status||0))*100,l=document.querySelector(i.parent);return o(s,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),!i.showSpinner&&(r=t.querySelector(i.spinnerSelector))&&h(r),l!=document.body&&c(l,"nprogress-custom-parent"),l.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&h(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var a=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),o=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,i){var s;n=t[s=(s=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[s]=function(t){var r=document.body.style;if(t in r)return t;for(var n,i=e.length,s=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((n=e[i]+s)in r)return n;return t}(s)),r.style[n]=i}return function(e,t){var n,i,s=arguments;if(2==s.length)for(n in t)void 0!==(i=t[n])&&t.hasOwnProperty(n)&&r(e,n,i);else r(e,s[1],s[2])}}();function l(e,t){return("string"==typeof e?e:u(e)).indexOf(" "+t+" ")>=0}function c(e,t){var r=u(e),n=r+t;l(r,t)||(e.className=n.substring(1))}function d(e,t){var r,n=u(e);l(e,t)&&(e.className=(r=n.replace(" "+t+" "," ")).substring(1,r.length-1))}function u(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function h(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})},356055,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(618566),i=e.i(475254);let s=(0,i.default)("arrow-left-to-line",[["path",{d:"M3 19V5",key:"rwsyhb"}],["path",{d:"m13 6-6 6 6 6",key:"1yhaz7"}],["path",{d:"M7 12h14",key:"uoisry"}]]);
1var a=e.i(174080),o=e.i(499607),l=e.i(373264),c=e.i(267026),d=e.i(278716),u=e.i(473708);let h=(0,i.default)("folder-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2",key:"1urifu"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]),m=(0,i.default)("cuboid",[["path",{d:"m21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a2 2 0 0 0-.95 1.7v5.82a2 2 0 0 0 .88 1.66l6.05 4.07a2 2 0 0 0 2.17.05l9.95-6.12a2 2 0 0 0 .95-1.7V8.06a2 2 0 0 0-.88-1.66Z",key:"1u2ovd"}],["path",{d:"M10 22v-8L2.25 9.15",key:"11pn4q"}],["path",{d:"m10 14 11.77-6.87",key:"1kt1wh"}]]);var x=e.i(87309);let f=(0,i.default)("audio-waveform",[["path",{d:"M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2",key:"57tc96"}]]);var p=e.i(210407),g=e.i(771649),b=e.i(387951),v=e.i(810980);let w=(0,i.default)("file-headphone",[["path",{d:"M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343",key:"1vfytu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0",key:"1etmh7"}]]);var j=e.i(463059);let k=(0,i.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),y=(0,i.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),N=(0,i.default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var _=e.i(227516);let E=(0,i.default)("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);var C=e.i(41966),T=e.i(283086);let S=(0,i.default)("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);var M=e.i(582227),L=e.i(753102),F=e.i(948148),D=e.i(363178);e.i(986325);var P=e.i(790894);let $="emkknepkfjchcjcpbllbfofnjcohknbi",B=`https://chromewebstore.google.com/detail/${$}`;var I=e.i(728231),A=e.i(647163);function R({className:e}){let n=(0,r.useId)().replace(/:/g,"");return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 128 128","aria-hidden":"true",children:[(0,t.jsx)("circle",{fill:"#fff",cx:"64.149",cy:"64.236",r:"60.999"}),(0,t.jsxs)("linearGradient",{id:`${n}-a`,gradientUnits:"userSpaceOnUse",x1:"395.191",y1:"484.168",x2:"395.191",y2:"484.723",gradientTransform:"matrix(82 0 0 82 -32341.5 -39660.313)",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#81B4E0"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#0C5A94"})]}),(0,t.jsx)("circle",{fill:`url(#${n}-a)`,cx:"64.149",cy:"64.235",r:"22.736"}),(0,t.jsxs)("linearGradient",{id:`${n}-b`,gradientUnits:"userSpaceOnUse",x1:"-608.91",y1:"-597.648",x2:"-608.91",y2:"-547.185",gradientTransform:"translate(675 599.775)",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#F06B59"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#DF2227"})]}),(0,t.jsx)("path",{fill:`url(#${n}-b)`,d:"M119.602 36.508C104.336 5.792 67.06-6.732 36.343 8.534A62.105 62.105 0 0012.578 29.3l24.955 43.253c-4.597-14.606 3.521-30.174 18.127-34.77a27.676 27.676 0 017.935-1.274"}),(0,t.jsxs)("linearGradient",{id:`${n}-c`,gradientUnits:"userSpaceOnUse",x1:"-657.835",y1:"-491.393",x2:"-632.327",y2:"-533.537",gradientTransform:"translate(675 599.775)",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#388B41"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#4CB749"})]}),(0,t.jsx)("path",{fill:`url(#${n}-c)`,d:"M12.578 29.3c-19.1 28.492-11.486 67.071 17.005 86.171a62.133 62.133 0 0029.575 10.319l26.063-44.363c-9.745 11.811-27.22 13.486-39.032 3.74a27.717 27.717 0 01-8.657-12.613"}),(0,t.jsxs)("linearGradient",{id:`${n}-d`,gradientUnits:"userSpaceOnUse",x1:"-572.385",y1:"-486.91",x2:"-599.557",y2:"-552.345",gradientTransform:"translate(675 599.775)",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#E4B022"}),(0,t.jsx)("stop",{offset:".3",stopColor:"#FCD209"})]}),(0,t.jsx)("path",{fill:`url(#${n}-d)`,d:"M59.158 125.791c34.204 2.585 64.027-23.047 66.613-57.25a62.097 62.097 0 00-6.17-32.031H63.595c15.312.07 27.67 12.541 27.598 27.854a27.725 27.725 0 01-5.972 17.064"})]})}function z({collapsed:e,isMobile:n}){let i=(0,F.useTranslations)("sidebar"),[s,a]=(0,r.useState)(!1);if((0,r.useEffect)(()=>
1{if(n||!function(){if("undefined"==typeof navigator)return!1;let e=navigator.userAgent;return!(/Android|iPhone|iPad|iPod|Mobile|webOS|BlackBerry/i.test(e)||/Firefox|FxiOS/i.test(e)||/Safari/i.test(e)&&!/Chrome|Chromium|Edg|OPR/i.test(e))&&/Chrome|Chromium|Edg|OPR/i.test(e)}())return void a(!1);let e=!1,t=()=>{new Promise(e=>{let t,r=(t=!1,r=>{t||(t=!0,e(r))});try{let e=window.chrome?.runtime;if("function"==typeof e?.sendMessage){e.sendMessage($,{type:"PIAX_PING"},()=>{let t=String(e.lastError?.message||"");t?r(!/Could not establish connection|Receiving end does not exist/i.test(t)):r(!0)}),window.setTimeout(()=>r(!1),1500);return}let t=new Image;t.onload=()=>r(!0),t.onerror=()=>r(!1),t.src=`chrome-extension://${$}/icons/icon16.png?t=${Date.now()}`,window.setTimeout(()=>r(!1),1500)}catch{r(!1)}}).then(t=>{e||a(!t)}).catch(()=>{e||a(!1)})};t();let r=()=>{"visible"===document.visibilityState&&t()};return document.addEventListener("visibilitychange",r),()=>{e=!0,document.removeEventListener("visibilitychange",r)}},[n]),!s)return null;let o=i("add_to_chrome");return(0,t.jsx)(I.TooltipProvider,{delayDuration:250,children:(0,t.jsxs)(I.Tooltip,{children:[(0,t.jsx)(I.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)("a",{href:B,target:"_blank",rel:"noopener noreferrer",className:(0,A.cn)("mb-2 flex items-center text-sm font-medium hover:bg-[#efefef] dark:hover:bg-[#27272a]",e?"mx-auto h-10 w-10 justify-center rounded-full":"mx-2 gap-2 rounded-[6px] px-[6px] py-2"),children:[(0,t.jsx)(R,{className:"h-5 w-5 shrink-0"}),e?null:(0,t.jsx)("span",{className:"truncate",children:o})]})}),(0,t.jsxs)(I.TooltipContent,{side:"right",align:"center",sideOffset:8,className:"max-w-[240px] space-y-1.5 border-[#DEDEDE] bg-white p-3 text-left text-[#20272E] dark:border-[#424242] dark:bg-[#202020] dark:text-[#f3f3f3]",children:[(0,t.jsx)("p",{className:"text-[13px] font-semibold leading-snug",children:i("add_to_chrome_tip_title")}),(0,t.jsxs)("ul",{className:"list-disc space-y-1 pl-3.5 text-[12px] leading-snug text-[#585858] dark:text-[#b4b4b4]",children:[(0,t.jsx)("li",{children:i("add_to_chrome_tip_1")}),(0,t.jsx)("li",{children:i("add_to_chrome_tip_2")}),(0,t.jsx)("li",{children:i("add_to_chrome_tip_3")})]})]})]})})}let O=(0,i.default)("blocks",[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]]);function V({collapsed:e,onNavigate:r}){let i=(0,F.useTranslations)("sidebar"),s=(0,n.usePathname)().split("/").filter(Boolean).includes("gen-ai-skills"),a=i("skills");return(0,t.jsx)(I.TooltipProvider,{delayDuration:250,children:(0,t.jsxs)(I.Tooltip,{children:[(0,t.jsx)(I.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)(o.Link,{href:"/gen-ai-skills",onClick:r,className:(0,A.cn)("mb-2 flex items-center text-sm font-medium hover:bg-[#efefef] dark:hover:bg-[#27272a]",e?"mx-auto h-10 w-10 justify-center rounded-full":"mx-2 gap-2 rounded-[6px] px-[6px] py-2",s?"bg-[#efefef] dark:bg-[#27272a]":""),children:[(0,t.jsx)(O,{className:(0,A.cn)("h-5 w-5 shrink-0",s?"text-[#0054FF]":"")}),e?null:(0,t.jsx)("span",{className:"truncate",children:a})]})}),(0,t.jsxs)(I.TooltipContent,{side:"right",align:"center",sideOffset:8,className:"max-w-[240px] space-y-1.5 border-[#DEDEDE] bg-white p-3 text-left text-[#20272E] dark:border-[#424242] dark:bg-[#202020] dark:text-[#f3f3f3]",children:[(0,t.jsx)("p",{className:"text-[13px] font-semibold leading-snug",children:i("skills_tip_title")}),(0,t.jsxs)("ul",{className:"list-disc space-y-1 pl-3.5 text-[12px] leading-snug text-[#585858] dark:text-[#b4b4b4]",children:[(0,t.jsx)("li",{children:i("skills_tip_1")}),(0,t.jsx)("li",{children:i("skills_tip_2")})]})]})]})})}function U({child:e,onPick:r}){return(0,t.jsxs)(o.Link,{href:e.href,onClick:r,className:"flex items-center gap-2.5 px-3 py-2 text-sm text-[#20272E] hover:bg-[#f4f4f5] dark:text-[#f3f3f3] dark:hover:bg-[#27272a]",children:["tts"===e.icon?(0,t.jsx)(g.Type,{className:"h-4 w-4 shrink-0 text-[#888]"}):"reader"===e.icon?(0,t.jsx)(v.BookOpen,{className:"h-4 w-4 shrink-0 text-[#888]"}):"clone"===e.icon?(0,t.jsx)(f,{className:"h-4 w-4 shrink-0 text-[#888]"}):"design"===e.icon?(0,t.jsx)(C.PenTool,{className:"h-4 w-4 shrink-0 text-[#888]"}):"music"===e.icon?(0,t.jsx)(p.Music2,{className:"h-4 w-4 shrink-0 text-[#888]"}):"transcribe"===e.icon?(0,t.jsx)(w,{className:"h-4 w-4 shrink-0 text-[#888]"}):"videoText"===e.icon?(0,t.jsx)(d.Video,{className:"h-4 w-4 shrink-0 text-[#888]"}):"podcast"===e.icon?(0,t.jsx)(b.Mic,{className:"h-4 w-4 shrink-0 text-[#888]"}):(0,t.jsx)(x.AudioLines,{className:"h-4 w-4 shrink-0 text-[#888]"}),(0,t.jsx)("span",{className:"truncate",children:e.label})]})}
1function q({mobileItemClick:e}){let{setTheme:i,resolvedTheme:f}=(0,D.useTheme)(),[p,g]=(0,r.useState)(!1),b=(0,P.useAgents)(),v=(0,F.useTranslations)(),w=(0,n.usePathname)(),$=[{icon:"home",darkIcon:"",label:v("sidebar.home"),href:"/home"},{icon:"one",darkIcon:"",label:v("sidebar.oneAgent"),href:"/one",badge:"Agent"},{icon:"studio",darkIcon:"",label:v("sidebar.studio"),href:"/studio"},{icon:"chat",darkIcon:"",label:v("sidebar.chat"),href:"/chat/gpt-6-astra"},{icon:"image",darkIcon:"",label:v("sidebar.image"),href:"/image/text-to-image/gpt-image-2-5"},{icon:"video",darkIcon:"",label:v("sidebar.video"),href:"/video/image-to-video/seedance-2-5"},{icon:"audio",darkIcon:"",label:v("sidebar.voice"),href:"/ai-voice-generator",children:[{icon:"voice",label:v("sidebar.voiceGenerator"),href:"/ai-voice-generator"},{icon:"podcast",label:v("sidebar.podcastGenerator"),href:"/ai-podcast-generator"},{icon:"tts",label:v("sidebar.textToSpeech"),href:"/text-to-speech"},{icon:"reader",label:v("sidebar.textReader"),href:"/ai-text-reader"},{icon:"clone",label:v("sidebar.voiceCloning"),href:"/ai-voice-cloning"},{icon:"design",label:v("sidebar.voiceDesigner"),href:"/ai-voice-designer"},{icon:"transcribe",label:v("sidebar.audioToText"),href:"/ai-audio-to-text"},{icon:"videoText",label:v("sidebar.videoToText"),href:"/video-to-text"},{icon:"music",label:v("sidebar.musicGenerator"),href:"/ai-music-generator"}]},{icon:"3d",darkIcon:"",label:v("sidebar.threeD"),href:"/ai-3d-generator"},{icon:"history",darkIcon:"",label:v("sidebar.history"),href:""}],{user:B,subscription:I,routerPush:A,handleOpenLogin:R,isMobile:O,handleModelHistoryFLag:q}=(0,M.useAuth)(),[G,H]=(0,r.useState)(!1),W=()=>{H(!G)},K=["/ai-voice-generator","/text-to-speech","/ai-text-reader","/ai-podcast-generator","/ai-voice-cloning","/ai-voice-designer","/ai-audio-to-text","/video-to-text","/ai-music-generator"],[X,J]=(0,r.useState)(!1),[Q,Y]=(0,r.useState)({top:0,left:0}),Z=(0,r.useRef)(null),ee=(0,r.useRef)(null),et=()=>{ee.current&&clearTimeout(ee.current);let e=Z.current?.getBoundingClientRect();e&&Y({top:e.top,left:e.right+6}),J(!0)},er=()=>{ee.current&&clearTimeout(ee.current),ee.current=setTimeout(()=>J(!1),160)},[en,ei]=(0,r.useState)(!1),[es,ea]=(0,r.useState)([]);return(0,r.useEffect)(()=>{g(!0)},[]),(0,r.useEffect)(()=>{let e=localStorage.getItem("modelHistory");if(!e)return;let t=[];try{t=JSON.parse(e)||[]}catch(e){return}ea(t)},[w,b,en]),(0,t.jsxs)("aside",{className:`${G?"w-[60px]":"w-[190px]"} overflow-visible bg-[#f9f9f9] dark:bg-[#1b1b1d] text-[#20272E] dark:text-[#f3f3f3] pt-[23px] flex-shrink-0 h-full transition-all duration-300 flex flex-col relative`,children:[(0,t.jsxs)("div",{className:`flex ${!G?"justify-between":"justify-center"} items-center relative px-[14px]`,children:[!G&&(0,t.jsx)(o.Link,{href:"/home",className:"flex items-center gap-2",children:p?"dark"===f?(0,t.jsx)("img",{className:"w-[73px] h-[13px]",src:"https://image.piax.org/images/logo-dark.png",alt:"piax ai"}):(0,t.jsx)("img",{className:"w-[73px] h-[13px]",src:"https://image.piax.org/images/logo.png",alt:"piax ai"}):(0,t.jsx)("span",{className:"inline-block w-[73px] h-[13px]","aria-hidden":!0})}),(0,t.jsx)("button",{className:`hidden md:flex w-[22px] h-[22px] justify-center items-center border border-[#DEDEDE] rounded-[5px] transform transition-transform duration-500 2 ${G?"scale-x-[-1]":""} `,onClick:W,children:(0,t.jsx)(s,{className:"w-4 h-2.5"})})]}),(0,t.jsx)("nav",{className:"flex flex-col h-full mt-7 relative",children:$.map((n,i)=>{let s="history"===n.icon,f=((e,t)=>{if(!e)return!1;let r=e=>{let t=e.split("/").filter(Boolean);return t.length>0&&2===t[0].length?"/"+t.slice(1).join("/"):"/"+t.join("/")},n=r(e),i=r(t);return"/ai-voice-generator"===n?K.some(e=>i===e||i.startsWith(`${e}/`)):n.split("/").filter(Boolean)[0]===i.split("/").filter(Boolean)[0]})(n.href,w);return(0,t.jsxs)(r.default.Fragment,{children:[s&&(0,t.jsx)("div",{className:"mx-2 mb-1 mt-2 h-px bg-[#dedede] dark:bg-[#27272a]","aria-hidden":!0}),(0,t.jsxs)("div",{ref:n.children?Z:void 0,className:"relative",onMouseEnter:()=>{n.children&&!O&&et()},onMouseLeave:()=>{n.children&&!O&&er()},children:[(0,t.jsx)(o.Link,{href:n.href?`${n.href}`:"",onClick:t=>{if(n.href||t.preventDefault(),n.children&&O){t.preventDefault(),J(e=>!e);return}(t=>{if(!t){ei(!en),q(!en),O&&W();return}e(),ei(!1)})(n.href)},children:(0,t.jsxs)("div",{className:`nav-item mb-1 text-sm font-medium hover:bg-[#efefef] dark:hover:bg-[#27272a] cursor-pointer ${G?"justify-center rounded-full w-[40px] mx-auto":"gap-2 px-[6px] rounded-[6px] mx-2"} ${f?"bg-[#efefef] dark:bg-[#27272a]":""}`,title:G?n.label:void 0,children:["home"==n.icon?(0,t.jsx)(l.LayoutGrid,{className:`w-5 h-5 ${f?"text-[#0054FF]":""}`}):"chat"==n.icon?(0,t.jsx)(c.MessageCircleMore,{className:`w-5 h-5 ${f?"text-[#0054FF]":""}`}):"one"==n.icon?(0,t.jsxs)("span",{className:"relative inline-flex shrink-0",children:[(0,t.jsx)(T.Sparkles,{className:`h-5 w-5 ${f?"text-[#0054FF]":""}`}),G&&n.badge&&(0,t.jsx)(L.default,{compact:!0,variant:"solid",className:"absolute -right-1.5 -top-1"})]}):"studio"==n.icon?(0,t.jsx)(S,{className:`h-5 w-5 ${f?"text-[#0054FF]":""}`}):"image"==n.icon?(0,t.jsx)(u.Image,{className:`w-5 h-5 ${f?"text-[#0054FF]":""}`}):"video"==n.icon?(0,t.jsx)(d.Video,{className:`w-5 h-5 ${f?"text-[#0054FF]":""}`}):"3d"==n.icon?(0,t.jsx)(m,{className:`w-5 h-5 ${f?"text-[#0054FF]":""}`}):"audio"==n.icon?(0,t.jsx)(x.AudioLines,{className:`w-5 h-5 ${f?"text-[#0054FF]":""}`}):"history"==n.icon?(0,t.jsx)(h,{className:`w-5 h-5 ${f?"text-[#0054FF]":""}`}):(0,t.jsx)(t.Fragment,{}),!G&&(0,t.jsx)("span",{className:"main-nav-text truncate",children:n.label}),!G&&"one"===n.icon&&n.badge&&(0,t.jsx)(L.default,{className:"ml-auto"}),n.children&&!G&&(0,t.jsx)(j.ChevronRight,{className:"w-3 h-4 ml-auto"}),!n.href&&!G&&!n.children&&(0,t.jsx)(j.ChevronRight,{className:"w-3 h-4 ml-auto"})]})}),n.children&&X&&O?(0,t.jsx)("div",{className:"mx-2 mb-2 rounded-xl border border-[#
2EBEBEB] bg-white py-1.5 dark:border-[#333] dark:bg-[#1b1b1d]",children:n.children.map(r=>(0,t.jsx)(U,{child:r,onPick:()=>{J(!1),e()}},r.href))}):null,n.children&&X&&!O&&"undefined"!=typeof document?(0,a.createPortal)((0,t.jsx)("div",{style:{top:Q.top,left:Q.left},className:"fixed z-[80] w-56 rounded-xl border border-[#EBEBEB] bg-white py-1.5 shadow-[0_12px_40px_rgba(15,23,42,0.12)] dark:border-[#333] dark:bg-[#1b1b1d]",onMouseEnter:et,onMouseLeave:er,children:n.children.map(e=>(0,t.jsx)(U,{child:e,onPick:()=>J(!1)},e.href))}),document.body):null]})]},i)})}),(0,t.jsx)(V,{collapsed:G,onNavigate:e}),(0,t.jsx)(z,{collapsed:G,isMobile:O}),!G&&(0,t.jsxs)("div",{className:"border border-[#DEDEDE] dark:border-[#27272A] rounded-2xl w-[172px] px-3 py-5 mx-2 cursor-pointer",children:[(0,t.jsx)("div",{className:"mb-3 text-center text-[10px] font-bold text-black dark:text-[#f3f3f3]",children:v("sidebar.unlock_all")}),(0,t.jsx)(o.Link,{href:"/pricing",target:"_blank",rel:"noopener noreferrer",children:(0,t.jsxs)("div",{onClick:()=>e,className:"w-[134px] h-[32px] flex justify-center items-center gap-2 bg-[#0054FF] rounded-2xl text-xs text-white font-bold",children:[(0,t.jsx)("img",{className:"w-4 h-5",src:"/new-icon/upgrade.png",alt:"piax ai"}),(0,t.jsx)("span",{children:v("sidebar.upgrade")})]})})]}),(0,t.jsx)("div",{className:"mt-4 mb-4 mx-2 cursor-pointer",children:B?.id?(0,t.jsx)(o.Link,{href:"/user",children:(0,t.jsxs)("div",{className:"flex justify-center items-center",children:[(0,t.jsx)("div",{className:"flex justify-center items-center w-[29px] h-[29px] rounded-full bg-[rgba(0,84,255,.1)] text-[18px] text-[#0054FF] flex-shrink-0 overflow-hidden",children:B.ico&&B.ico.trim()?(0,t.jsx)("img",{className:"w-full h-full",src:B.ico.trim(),alt:"piax ai"}):(0,t.jsx)(t.Fragment,{children:B?.email?B.email.substring(0,1).toLocaleUpperCase():"P"})}),!G&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-xs text-black mx-2 truncate",children:B.email}),(0,t.jsx)(j.ChevronRight,{className:"w-3 h-4 ml-auto flex-shrink-0"})]})]})}):(0,t.jsx)("div",{className:"w-full h-[32px] mx-auto flex justify-center items-center gap-2 bg-[#0054FF] rounded-2xl text-xs text-white font-bold",onClick:()=>{R(),e()},children:v("sidebar.Login")})}),!G&&(0,t.jsxs)("div",{className:`flex items-center gap-7 border-t border-[#DEDEDE] dark:border-[#424242] mx-2 py-4 px-3 ${!B?.id?"justify-between":""}`,children:[(0,t.jsxs)(o.Link,{href:"https://x.com/piaxgpt",target:"_blank",rel:"noopener noreferrer",children:[" ",(0,t.jsx)(E,{className:"w-4 h-4 cursor-pointer dark:text-[#999]"})]}),(0,t.jsx)(o.Link,{href:"https://blog.piax.org/",target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(C.PenTool,{className:"w-4 h-4 cursor-pointer dark:text-[#999]"})}),(0,t.jsx)(o.Link,{href:"/user",children:(0,t.jsx)(N,{className:"w-4 h-4 cursor-pointer dark:text-[#999]"})}),(0,t.jsx)("div",{className:"cursor-pointer dark:text-[#999]",onClick:()=>{var e;i(e="dark"===f?"light":"dark"),document.cookie=`theme=${e}; path=/; max-age=31536000; samesite=lax`},children:p?"dark"===f?(0,t.jsx)(y,{className:"h-4 w-4"}):(0,t.jsx)(k,{className:"h-4 w-4"}):(0,t.jsx)("span",{className:"inline-flex h-4 w-4","aria-hidden":!0})})]}),(0,t.jsx)("div",{className:`top-0 left-full absolute z-[999] h-full transition-all duration-300 ease-in-out ${en?"w-fit":"w-0"}`,onClick:e=>{e.target===e.currentTarget&&ei(!en)},children:(0,t.jsx)("div",{className:`top-0 left-0 absolute z-10 h-full bg-[#f9f9f9] dark:bg-[#212121] overflow-hidden shadow-[2px_0_8px_0_rgba(0,0,0,0.08)] dark:shadow-[2px_0_8px_0_rgba(0,0,0,0.2)] dark:border-[#333333] transition-all duration-300 ease-out ${en?"w-[70vw] md:w-[300px]":"w-0"}`,children:(0,t.jsxs)("div",{className:"p-5 h-full overflow-y-scroll w-[70vw] md:w-[300px]",children:[(0,t.jsx)("div",{className:"text-[20px] font-semibold mb-6 text-black dark:text-white",children:v("sidebar.model_history")}),(0,t.jsx)("div",{children:es.length?(0,t.jsx)("div",{children:es.map((r,n)=>(0,t.jsxs)("div",{onClick:()=>{A(r.path,""),ei(!en),e()},className:"text-black dark:text-white cursor-pointer group hover:bg-black/5 dark:hover:bg-white/5 p-3 rounded-lg transition-all duration-200",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:["string"==typeof r.icon&&r.icon.trim()?(0,t.jsx)("img",{className:"w-8 h-8 rounded-full",src:r.icon.trim(),alt:r.name}):(0,t.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-black/10 dark:bg-white/10",children:(0,t.jsx)(c.MessageCircleMore,{className:"h-4 w-4 text-black/40 dark:text-white/40","aria-hidden":!0})}),(0,t.jsx)("span",{className:"text-sm font-medium",children:r.name})]}),(0,t.jsx)("div",{className:"text-sm text-black/30 dark:text-white/30 line-clamp-2 my-2",children:r.desc})]},n))}):(0,t.jsxs)("div",{className:"flex flex-col items-center mt-10 mx-auto text-center",children:[(0,t.jsx)("div",{className:"w-12 h-12 flex justify-center items-center text-black/30 dark:text-white/30 bg-black/10 dark:bg-white/10 rounded-full",children:(0,t.jsx)(_.History,{className:"w-6 h-6"})}),(0,t.jsx)("span",{className:"mt-3 text-sm text-black/30 dark:text-white/30",children:"no data"})]})})]})})})]})}function G({isOpen:e,onClose:n}){let{modelHistoryFlag:i}=(0,M.useAuth)();return(0,r.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),(0,t.jsxs)("div",{className:(0,A.cn)("fixed inset-0 z-[60] md:hidden",!e&&"pointer-events-none"),"aria-hidden":!e,children:[(0,t.jsx)("div",{className:(0,A.cn)("fixed inset-0 bg-black transition-opacity duration-300",e?"bg-opacity-50":"bg-opacity-0"),onClick:n,"aria-hidden":"true"}),(0,t.jsxs)("div",{className:(0,A.cn)("fixed inset-y-0 left-0 max-w-[80%] transition-transform duration-300 ease-out",e?"translate-x-0":"-translate-x-full"),children:[(0,t.jsx)("button",{className:`absolute top-[23px] ${i?"left-1/2 -translate-x-1/2":"right-2"} z-10 w-[22px] h-[22px] flex justify-center items-center border border-[#DEDEDE] rounded-[5px] transform transition-transform duration-500`,onClick:n,children:(0,t.jsx)(s,{className:"w-4 h-2.5"})}),(0,t.jsx)("div",{children:i}
2),(0,t.jsx)(q,{mobileItemClick:n})]})]})}var H=e.i(861745);let W=(0,i.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var K=e.i(664659),X=e.i(463415),J=e.i(538798),Q=e.i(829601),Y=e.i(474205);function Z({toggleMobileSidebar:e}){(0,n.usePathname)();let{openLogin:r,handleOpenLogin:i,payBoxDetail:s,handleModelHistoryFLag:a}=(0,M.useAuth)(),l=(0,H.useLocale)(),c=(0,n.useRouter)();return(0,t.jsxs)("header",{className:"h-10 border-b border-gray-200 md:w-0 md:h-0",children:[(0,t.jsxs)("div",{className:"h-10 flex justify-between items-center",children:[(0,t.jsx)("button",{onClick:()=>{e(),a(!1)},className:"block md:hidden text-gray-500 py-2 px-3","aria-label":"Toggle menu",children:(0,t.jsx)(W,{size:20})}),(0,t.jsxs)("div",{className:"md:hidden flex items-center gap-2 px-2",children:[(0,t.jsx)("div",{className:"block relative border border-[#20272E] dark:border-[#f3f3f3] rounded-[20px] px-2",children:(0,t.jsxs)(X.DropdownMenu,{children:[(0,t.jsx)(X.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)("button",{className:"flex items-center gap-1 outline-none text-sm font-medium",children:[J.localeList.find(e=>e.lang==l)?.content,(0,t.jsx)(K.ChevronDown,{size:16})]})}),(0,t.jsx)(X.DropdownMenuContent,{align:"end",className:"bg-white dark:bg-[#1b1b1d] shadow-2xl border-0 cursor-pointer",children:J.localeList.map(e=>(0,t.jsx)(X.DropdownMenuItem,{className:"cursor-pointer",onClick:()=>{var t;let r,n;return t=e.lang,["br","de","en","es","fr","ja","ko","ru","zh","zh-CN"].includes((r=window.location.pathname.split("/").filter(Boolean))[0])&&r.shift(),n=`/${t}/${r.join("/")}`,void c.push(n)},children:e.content},e.lang))})]})}),(0,t.jsx)(o.Link,{href:"/pricing",target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)("div",{className:"flex justify-center items-center rounded-[20px] w-20 h-6 text-sm font-medium border border-[#20272E] dark:border-[#f3f3f3]",children:"Pricing"})})]})]}),(0,t.jsx)(Q.LoginModal,{isOpen:r,onClose:()=>{i()}}),!!s.type&&4002==s.type&&(0,t.jsx)(Y.default,{})]})}var ee=e.i(37727),et=e.i(630374),er=e.i(569860),en=e.i(282541);let ei="piax_nr_promo_closed_id",es=new Set;function ea(e){if(es.has(e))return!0;try{if(localStorage.getItem(ei)===e)return!0}catch{}return function(){if("undefined"==typeof document)return null;let e=`${ei}=`,t=document.cookie.split("; ").find(t=>t.startsWith(e));return t?decodeURIComponent(t.slice(e.length)):null}()===e}function eo({src:e,poster:n,className:i}){let s=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=s.current;if(!e)return;e.muted=!0;let t=e.play();void 0!==t&&t.catch(()=>{})},[e]),(0,t.jsx)("video",{ref:s,src:e,poster:n,muted:!0,loop:!0,playsInline:!0,autoPlay:!0,preload:"metadata",className:i})}function el(){let e=(0,H.useLocale)(),n=(0,P.useAgents)(),i=(0,F.useTranslations)("home"),s=en.NEWLY_RELEASED_ITEMS[0],a=s.id,[l,c]=(0,r.useState)(!1),d=(0,r.useRef)(null),u=(0,r.useRef)(!1),h=(0,r.useCallback)(()=>{es.add(a);try{localStorage.setItem(ei,a)}catch{}!function(e){if("undefined"==typeof document)return;let t="https:"===location.protocol,r=`${ei}=${encodeURIComponent(e)}; Path=/; Max-Age=34560000; SameSite=Lax`;t&&(r+="; Secure"),document.cookie=r}(a),d.current&&(clearTimeout(d.current),d.current=null)},[a]),m=(0,r.useMemo)(()=>(0,en.getNewlyReleasedPresentation)(s,n,e,i),[s,n,e,i]);(0,r.useEffect)(()=>{if(!ea(a))return d.current=setTimeout(()=>{ea(a)||c(!0)},1200),()=>{d.current&&(clearTimeout(d.current),d.current=null)}},[a]),(0,r.useEffect)(()=>{let e=e=>{e.key===ei&&e.newValue===a&&(d.current&&(clearTimeout(d.current),d.current=null),c(!1))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[a]),(0,r.useEffect)(()=>{l&&(u.current=!1)},[l]);let x=(0,r.useCallback)(()=>{u.current||(u.current=!0,(0,er.sendGtagEvent)("newly_released_promo_close",{newly_released_id:s.id}),h(),c(!1))},[s.id,h]),f=(0,r.useCallback)(e=>{e||x()},[x]),p=(0,r.useCallback)(t=>{if(t.preventDefault(),u.current)return;let r=m.href;if(!r||"#"===r)return void x();u.current=!0,(0,er.sendGtagEvent)("newly_released_promo_click",{newly_released_id:s.id}),h(),c(!1);let n=new URL((0,o.getPathname)({locale:e,href:r}),window.location.origin).toString();window.open(n,"_blank","noopener,noreferrer")},[x,s.id,e,h,m.href]),g=(0,r.useCallback)(e=>
2{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),p(e))},[p]);return(0,t.jsx)(et.Dialog,{open:l,onOpenChange:f,children:(0,t.jsxs)(et.DialogContent,{className:(0,A.cn)("max-h-[92vh] w-[min(100vw-1.5rem,520px)] gap-0 overflow-hidden rounded-2xl border-0 bg-white/95 p-0 text-[#20272E] shadow-2xl ring-0 filter-light","outline-none focus:outline-none focus-visible:ring-0","data-[state=open]:animate-in data-[state=closed]:animate-out"),children:[(0,t.jsx)("button",{type:"button","aria-label":"Close",className:"absolute right-3 top-3 z-20 flex h-9 w-9 items-center justify-center rounded-full border-0 bg-black/25 text-white backdrop-blur-sm transition hover:bg-black/40",onClick:e=>{e.stopPropagation(),x()},children:(0,t.jsx)(ee.X,{className:"h-4 w-4 opacity-90"})}),(0,t.jsxs)("div",{role:"button",tabIndex:0,className:"cursor-pointer outline-none",onClick:p,onKeyDown:g,children:[(0,t.jsx)("div",{className:"relative aspect-video w-full bg-[#1a1a1a]",children:"video"===m.kind?(0,t.jsx)(eo,{src:m.mediaUrl,poster:m.poster,className:"pointer-events-none h-full w-full object-cover"}):m.thumb?(0,t.jsx)("img",{src:m.thumb,alt:"",className:"pointer-events-none h-full w-full object-cover"}):(0,t.jsx)(en.NewlyReleasedMediaPlaceholder,{title:m.title})}),(0,t.jsxs)("div",{className:"px-6 pb-8 pt-6 text-center",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-[#0054FF]",children:i("newly_released_title")}),(0,t.jsx)(et.DialogTitle,{className:"mt-2 text-center text-xl font-bold leading-snug tracking-normal text-[#20272E]",children:m.title}),m.description?(0,t.jsx)(et.DialogDescription,{className:"mx-auto mt-2 max-w-sm text-center text-sm leading-relaxed text-[#585858]",children:m.description}):(0,t.jsx)(et.DialogDescription,{className:"sr-only",children:i("newly_released_promo_cta")}),(0,t.jsx)("span",{className:"mx-auto mt-6 inline-flex items-center rounded-full bg-[#0054FF] px-6 py-2.5 text-sm font-semibold text-white opacity-90",children:i("newly_released_promo_cta")})]})]})]})})}let ec="piax_closed_popup_id",ed="pricing-57-off-models-v1",eu=new Set;function eh(){if(eu.has(ed))return!0;try{return localStorage.getItem(ec)===ed}catch{return!1}}function em(e){return!!e&&("/user"===e||e.endsWith("/user")||"/pricing"===e||e.endsWith("/pricing"))}function ex(){let e=(0,H.useLocale)(),i=(0,F.useTranslations)("share_earn_promo"),s=(0,n.usePathname)(),[a,l]=(0,r.useState)(!1),c=(0,r.useRef)(null),d=(0,r.useRef)(!1),u=(0,r.useCallback)(()=>{eu.add(ed);try{localStorage.setItem(ec,ed)}catch{}c.current&&(clearTimeout(c.current),c.current=null)},[]);(0,r.useEffect)(()=>em(s)||eh()?void l(!1):(c.current=setTimeout(()=>{eh()||em(s)||l(!0)},1200),()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[s]),(0,r.useEffect)(()=>{let e=e=>{e.key===ec&&e.newValue===ed&&(c.current&&(clearTimeout(c.current),c.current=null),l(!1))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]);let h=(0,r.useCallback)(()=>{d.current||(d.current=!0,(0,er.sendGtagEvent)("earn_credits_promo_close",{popup_id:ed,locale:e}),u(),l(!1))},[e,u]),m=(0,r.useCallback)(()=>{d.current||(d.current=!0,(0,er.sendGtagEvent)("earn_credits_promo_click",{popup_id:ed,locale:e}),u(),l(!1))},[e,u]);return a?(0,t.jsx)("div",{role:"dialog","aria-labelledby":"earn-credits-promo-title","aria-describedby":"earn-credits-promo-desc",className:(0,A.cn)("fixed bottom-4 right-4 z-40 w-[min(100vw-2rem,300px)] origin-bottom-right","animate-in fade-in slide-in-from-bottom-4 zoom-in-95 duration-300","overflow-hidden rounded-2xl border border-black/5 bg-white text-[#20272E] shadow-[0_12px_40px_rgba(0,0,0,0.18)] dark:border-[#424242] dark:bg-[#202020] dark:text-[#f3f3f3]"),children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_at_top,_rgba(0,84,255,0.12),_transparent_55%)]"}),(0,t.jsx)("button",{type:"button","aria-label":i("close"),className:"absolute right-2 top-2 z-10 flex h-8 w-8 items-center justify-center rounded-full text-[#7A7A7A] transition hover:bg-[#F2F2F2] hover:text-[#20272E] dark:hover:bg-[#333] dark:hover:text-[#f3f3f3]",onClick:h,children:(0,t.jsx)(ee.X,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"relative px-5 pb-5 pt-6 text-center",children:[(0,t.jsx)("div",{className:"text-3xl leading-none","aria-hidden":!0,
2children:"ð¥"}),(0,t.jsx)("h2",{id:"earn-credits-promo-title",className:"mt-2 text-lg font-bold tracking-tight text-[#20272E] dark:text-[#f3f3f3]",children:i("title")}),(0,t.jsx)("p",{className:"mt-4 text-[11px] font-semibold uppercase tracking-[0.18em] text-[#7A7A7A] dark:text-[#999]",children:i("reward_label")}),(0,t.jsx)("p",{className:"mt-1 text-[28px] font-extrabold leading-none tracking-tight text-[#0054FF]",children:i("reward")}),(0,t.jsx)("p",{id:"earn-credits-promo-desc",className:"mt-3 text-sm leading-relaxed text-[#585858] dark:text-[#b4b4b4]",children:i("subtitle")}),(0,t.jsx)(o.Link,{href:"/pricing",target:"_blank",rel:"noopener noreferrer",onClick:m,className:"mt-5 inline-flex h-11 w-full items-center justify-center rounded-full bg-[#0054FF] px-4 text-sm font-semibold text-white transition hover:opacity-90",children:i("cta")})]})]})}):null}var ef=e.i(716915);function ep({isMobile:e,hideTopBar:i,children:s}){let a=(0,n.useRouter)(),o=(0,n.usePathname)(),[l,c]=(0,r.useState)(!1),d=()=>{c(e=>!e)},u=(0,r.useCallback)(()=>{let e=window.innerHeight;document.documentElement.style.setProperty("--app-height",`${e}px`),window.visualViewport&&document.documentElement.style.setProperty("--real-viewport-height",`${window.visualViewport.height}px`)},[]);return(0,r.useEffect)(()=>{if(!e)return;let t=()=>{setTimeout(()=>{u()},100)};return window.addEventListener("banner-closed",t),()=>{window.removeEventListener("banner-closed",t)}},[e,u]),(0,r.useEffect)(()=>{if(!e)return;u();let t=()=>{u()},r=()=>{if(window.visualViewport){let e=window.innerHeight>window.visualViewport.height+150;document.documentElement.style.setProperty("--real-viewport-height",`${window.visualViewport.height}px`),e?document.documentElement.classList.add("keyboard-visible"):document.documentElement.classList.remove("keyboard-visible")}};window.addEventListener("resize",t),window.addEventListener("orientationchange",t),window.visualViewport&&(window.visualViewport.addEventListener("resize",r),window.visualViewport.addEventListener("scroll",r)),u();let n=document.createElement("style");return n.innerHTML=` 3 :root { 4 --app-height: 100vh; 5 --real-viewport-height: 100vh; 6 } 7 8 .keyboard-visible .keyboard-adjust { 9 height: var(--real-viewport-height); 10 overflow: hidden; 11 } 12 `,document.head.appendChild(n),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t),window.visualViewport&&(window.visualViewport.removeEventListener("resize",r),window.visualViewport.removeEventListener("scroll",r)),document.head.removeChild(n)}},[e,u]),(0,r.useEffect)(()=>{let e=a.push,t=a.replace;return a.push=(...t)=>{let r=window.location.pathname;return("string"==typeof t[0]?t[0]:t[0]?.pathname)===r?(ef.default.done(),Promise.resolve(!1)):(ef.default.start(),e.apply(a,t))},a.replace=(...e)=>{let r=window.location.pathname;return("string"==typeof e[0]?e[0]:e[0]?.pathname)===r?(ef.default.done(),Promise.resolve(!1)):(ef.default.start(),t.apply(a,e))},()=>{a.push=e,a.replace=t}},[a]),(0,r.useEffect)(()=>{ef.default.done()},[o]),(0,t.jsxs)("div",{className:"w-full flex flex-col bg-white dark:bg-[#212121] keyboard-adjust",style:{height:e?"var(--app-height, 100vh)":"100vh",overflow:"hidden",position:"relative"},children:[(0,t.jsxs)("div",{className:"flex w-full flex-1 overflow-hidden",children:[!i&&(0,t.jsxs)("div",{className:"sidebar-container h-full",children:[(0,t.jsx)("div",{className:"hidden md:block h-full",children:(0,t.jsx)(q,{mobileItemClick:d})}),(0,t.jsx)(G,{isOpen:l,onClose:d})]}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col w-full h-full overflow-hidden",children:[!i&&(0,t.jsx)(Z,{toggleMobileSidebar:d}),(0,t.jsx)("div",{className:"w-full flex-1 content-container overflow-y-auto",children:s})]})]}),(0,t.jsx)(ex,{}),(0,t.jsx)(el,{})]})}ef.default.configure({showSpinner:!1}),e.s(["default",()=>ep],356055)},139807,e=>{"use strict";var t=e.i(843476),r=e.i(3303);let n="W8NF4VCK6R";e.s(["default",0,()=>(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{strategy:"afterInteractive",src:`https://www.googletagmanager.com/gtag/js?i
12d=G-${n}`}),(0,t.jsx)(r.default,{id:"gtag-init",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:` 13 window.dataLayer = window.dataLayer || []; 14 function gtag(){dataLayer.push(arguments);} 15 gtag('js', new Date()); 16 gtag('config', 'G-${n}', { 17 page_path: window.location.pathname, 18 }); 19 `}})]})})])},151626,e=>{"use strict";var t=e.i(843476),r=e.i(3303);e.s(["default",0,()=>(0,t.jsx)(r.default,{id:"twitter-pixel",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:` 20 !function (e, t, n, s, u, a) { 21 e.twq || (s = e.twq = function () { 22 s.exe ? s.exe.apply(s, arguments) : s.queue.push(arguments); 23 }, s.version = '1.1', s.queue = [], u = t.createElement(n), u.async = !0, u.src = 'https://static.ads-twitter.com/uwt.js', 24 a = t.getElementsByTagName(n)[0], a.parentNode.insertBefore(u, a)) 25 }(window, document, 'script'); 26 twq('config', 'paeqy'); 27 `}})])},689554,e=>{"use strict";var t=e.i(843476),r=e.i(363178);function n({children:e,...n}){return(0,t.jsx)(r.ThemeProvider,{...n,children:e})}e.s(["ThemeProvider",()=>n])},814234,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(790894);function i({serverData:e,children:i}){let{initializeFromServer:s}=(0,n.useAgentsStore)();return(0,r.useEffect)(()=>{e.length>0&&s(e)},[e,s]),(0,t.jsx)(t.Fragment,{children:i})}e.s(["ServerAgentsInitializer",()=>i])}]);
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.