1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/not-found-D-JhGnAQ.js","assets/tanstack-BroK-4Fs.js","assets/react-dom-BNkgh4op.js","assets/lucide-AVMD1FCy.js","assets/framer-motion-Dt497jUw.js","assets/audio-ebook-CCWeaeC6.js","assets/visual-ebook-DogmLDFv.js","assets/cover_visual_gardening-CB1lUuhw.js","assets/visual_page_mistakes-BF4kOaED.js","assets/affiliates-oLvU9mNa.js","assets/kids-ebook-creator-CQ7DMGID.js","assets/flipbook-CaX1O6T4.js","assets/add-ons-D-OZcDtv.js","assets/illo_ai_models-Hk9OMW7A.js","assets/youtube-and-url-conversion-DpzLczNy.js","assets/research-tools-BEVfrifW.js","assets/disclaimer-CIl1fXsu.js","assets/LegalLayout-B1lYvvIr.js","assets/privacy-policy-CZIpijf-.js","assets/refund-CdJzfNIQ.js","assets/terms-chdtMrFA.js","assets/admin-ChjSFBVW.js","assets/chatgpt-subscription-addon-BfZCaMCs.js","assets/mcp-addon-DMS26KYX.js","assets/puzzle-book-addon-Bw-r14FV.js","assets/puzzle-book-lifetime-Bv967eMl.js","assets/kids-activity-book-CoftLm_p.js","assets/kids-activity-book-DUnOh2Fu.css","assets/kids-activity-book-lifetime-yHGVEy8e.js","assets/visual-books-D1Ka85iN.js","assets/addons-store-2vLZf0GC.js","assets/support-D-BSLKsD.js"])))=>i.map(i=>d[i]); 2import{r as u,R as St,j as t,a as G,u as Tt,b as Ue,Q as Ea,c as Aa}from"./tanstack-BroK-4Fs.js";import{r as Sa,a as gr,R as Ta,c as Ra}from"./react-dom-BNkgh4op.js";import{X as Ce,C as Zt,M as _a,B as Pe,F as er,S as Z,a as Bo,b as De,c as Ur,P as Ia,E as Oa,d as Da,A as Fo,T as Ee,Z as Le,e as Rt,f as La,H as Ma,g as $a,h as za,i as Ba,Y as Fa,Q as Vo,j as Va,D as Me,k as ne,l as Wa,m as qa,W as Ka,U as nt,n as Wo,L as qo,o as Ko,p as Ua,q as Ha,r as Ga,s as Uo,R as Ya,t as Xa,u as Ja,v as bt,I as Ho,w as Qa,x as Go,G as Za,y as ei,z as ti,J as ri,K as Yo,N as oi,O as ni,V as Xo,_ as si,$ as ai,a0 as ii,a1 as Hr,a2 as li,a3 as ci}from"./lucide-AVMD1FCy.js";import{m as R,A as et}from"./framer-motion-Dt497jUw.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function o(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=o(s);fetch(s.href,a)}})();const di="modulepreload",ui=function(e){return"/"+e},Gr={},K=function(r,o,n){let s=Promise.resolve();if(o&&o.length>0){let c=function(d){return Promise.all(d.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=i?.nonce||i?.getAttribute("nonce");s=c(o.map(d=>{if(d=ui(d),d in Gr)return;Gr[d]=!0;const p=d.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${m}`))return;const f=document.createElement("link");if(f.rel=p?"stylesheet":di,p||(f.as="script"),f.crossOrigin="",f.href=d,l&&f.setAttribute("nonce",l),document.head.appendChild(f),p)return new Promise((h,b)=>{f.addEventListener("load",h),f.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return s.then(i=>{for(const l of i||[])l.status==="rejected"&&a(l.reason);return r().catch(a)})};function mi(e,r){if(e instanceof RegExp)return{keys:!1,pattern:e};var o,n,s,a,i=[],l="",c=e.split("/");for(c[0]||c.shift();s=c.shift();)o=s[0],o==="*"?(i.push(o),l+=s[1]==="?"?"(?:/(.*))?":"/(.*)"):o===":"?(n=s.indexOf("?",1),a=s.indexOf(".",1),i.push(s.substring(1,~n?n:~a?a:s.length)),l+=~n&&!~a?"(?:/([^/]+?))?":"/([^/]+?)",~a&&(l+=(~n?"?":"")+"\\"+s.substring(a))):l+="/"+s;return{keys:i,pattern:new RegExp("^"+l+(r?"(?=$|/)":"/?$"),"i")}}var qt={exports:{}},Kt={};var Yr;function pi(){if(Yr)return Kt;Yr=1;var e=Sa();function r(m,f){return m===f&&(m!==0||1/m===1/f)||m!==m&&f!==f}var o=typeof Object.is=="function"?Object.is:r,n=e.useState,s=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function l(m,f){var h=f(),b=n({inst:{value:h,getSnapshot:f}}),x=b[0].inst,g=b[1];return a(function(){x.value=h,x.getSnapshot=f,c(x)&&g({inst:x})},[m,h,f]),s(function(){return c(x)&&g({inst:x}),m(function(){c(x)&&g({inst:x})})},[m]),i(h),h}function c(m){var f=m.getSnapshot;m=m.value;try{var h=f();return!o(m,h)}catch{return!0}}function d(m,f){return f()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return Kt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Kt}var Xr;
2function fi(){return Xr||(Xr=1,qt.exports=pi()),qt.exports}var hi=fi();const xi=St.useInsertionEffect,gi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bi=gi?u.useLayoutEffect:u.useEffect,yi=xi||bi,Jo=e=>{const r=u.useRef([e,(...o)=>r[0](...o)]).current;return yi(()=>{r[0]=e}),r[1]},vi="popstate",br="pushState",yr="replaceState",wi="hashchange",Jr=[vi,br,yr,wi],ji=e=>{for(const r of Jr)addEventListener(r,e);return()=>{for(const r of Jr)removeEventListener(r,e)}},Qo=(e,r)=>hi.useSyncExternalStore(ji,e,r),Qr=()=>location.search,Ni=({ssrSearch:e}={})=>Qo(Qr,e!=null?()=>e:Qr),Zr=()=>location.pathname,ki=({ssrPath:e}={})=>Qo(Zr,e!=null?()=>e:Zr),Ci=(e,{replace:r=!1,state:o=null}={})=>history[r?yr:br](o,"",e),Pi=(e={})=>[ki(e),Ci],eo=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[eo]>"u"){for(const e of[br,yr]){const r=history[e];history[e]=function(){const o=r.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),o}}Object.defineProperty(window,eo,{value:!0})}const Ei=(e,r)=>r.toLowerCase().indexOf(e.toLowerCase())?"~"+r:r.slice(e.length)||"/",Zo=(e="")=>e==="/"?"":e,Ai=(e,r)=>e[0]==="~"?e.slice(1):Zo(r)+e,Si=(e="",r)=>Ei(to(Zo(e)),to(r)),to=e=>{try{return decodeURI(e)}catch{return e}},en={hook:Pi,searchHook:Ni,parser:mi,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e,aroundNav:(e,r,o)=>e(r,o)},tn=u.createContext(en),st=()=>u.useContext(tn),rn={},on=u.createContext(rn),Ti=()=>u.useContext(on),_t=e=>{const[r,o]=e.hook(e);return[Si(e.base,r),Jo((n,s)=>e.aroundNav(o,Ai(n,e.base),s))]},vr=()=>_t(st()),nn=(e,r,o,n)=>{const{pattern:s,keys:a}=r instanceof RegExp?{keys:!1,pattern:r}:e(r||"*",n),i=s.exec(o)||[],[l,...c]=i;return l!==void 0?[!0,(()=>{const d=a!==!1?Object.fromEntries(a.map((m,f)=>[m,c[f]])):i.groups;let p={...c};return d&&Object.assign(p,d),p})(),...n?[l]:[]]:[!1,null]},sn=({children:e,...r})=>{const o=st(),n=r.hook?en:o;let s=n;const[a,i=r.ssrSearch??""]=r.ssrPath?.split("?")??[];a&&(r.ssrSearch=i,r.ssrPath=a),r.hrefs=r.hrefs??r.hook?.hrefs,r.searchHook=r.searchHook??r.hook?.searchHook;let l=u.useRef({}),c=l.current,d=c;for(let p in n){const m=p==="base"?n[p]+(r[p]??""):r[p]??n[p];c===d&&m!==d[p]&&(l.current=d={...d}),d[p]=m,(m!==n[p]||m!==s[p])&&(s=d)}return u.createElement(tn.Provider,{value:s,children:e})},ro=({children:e,component:r},o)=>r?u.createElement(r,{params:o}):typeof e=="function"?e(o):e,Ri=e=>{let r=u.useRef(rn);const o=r.current;return r.current=Object.keys(e).length!==Object.keys(o).length||Object.entries(e).some(([n,s])=>s!==o[n])?e:o},W=({path:e,nest:r,match:o,...n})=>{const s=st(),[a]=_t(s),[i,l,c]=o??nn(s.parser,e,a,r),d=Ri({...Ti(),...l});if(!i)return null;const p=c?u.createElement(sn,{base:c},ro(n,d)):ro(n,d);return u.createElement(on.Provider,{value:d,children:p})},oe=u.forwardRef((e,r)=>{const o=st(),[n,s]=_t(o),{to:a="",href:i=a,onClick:l,asChild:c,children:d,className:p,replace:m,state:f,transition:h,...b}=e,x=Jo(y=>{y.ctrlKey||y.metaKey||y.altKey||y.shiftKey||y.button!==0||(l?.(y),y.defaultPrevented||(y.preventDefault(),s(i,e)))}),g=o.hrefs(i[0]==="~"?i.slice(1):o.base+i,o);return c&&u.isValidElement(d)?u.cloneElement(d,{onClick:x,href:g}):u.createElement("a",{...b,onClick:x,href:g,className:p?.call?p(n===i):p,children:d,ref:r})}),an=e=>Array.isArray(e)?e.flatMap(r=>an(r&&r.type===u.Fragment?r.props.children:r)):[e],_i=({children:e,location:r})=>{const o=st(),[n]=_t(o);for(const s of an(e)){let a=0;if(u.isValidElement(s)&&(a=nn(o.parser,s.props.path,r||n,s.props.nest))[0])return u.cloneElement(s,{match:a})}return null},Ii="https://ebookwriter.ai/opengraph.jpg";function ce(e,r,o,n){let s=document.querySelector(e);s||(s=document.createElement("meta"),s.setAttribute(r,o),document.head.appendChild(s)),s.setAttribute("content",n)}function Oi({title:e,description:r,canonical:o,ogImage:n=Ii,structuredData:s,robots:a}){u.useEffect(()=>{if(document.title=e,a)ce('meta[name="robots"]',"name","robots",a);else{const c=document.querySelector('meta[name="robots"]');c&&c.remove()}ce('meta[name="description"]',"name","description",r),ce('meta[property="og:title"]',"property","og:title",e),ce('meta[property="og:description"]',"property","og:description",r),ce('meta[property="og:url"]',"property","og:url",o),ce('meta[property="og:image"]',"property","og:image",n),ce('meta[property="og:image:alt"]',"property","og:image:alt",e),ce('meta[name="twitter:title"]',"name","twitter:title",e),ce('meta[name="twitter:description"]',"name","twitter:description",r),ce('meta[name="twitter:image"]',"name","twitter:image",n);let i=document.querySelector('link[rel="canonical"]');i||(i=document.createElement("link"),i.setAttribute("rel","canonical"),document.head.appendChild(i)),i.setAttribute("href",o);const l=document.querySelector("script[data-page-schema]");if(l&&l.remove(),s){const c=document.createElement("script");
2c.setAttribute("type","application/ld+json"),c.setAttribute("data-page-schema","true"),c.textContent=JSON.stringify(s),document.head.appendChild(c)}return()=>{const c=document.querySelector("script[data-page-schema]");c&&c.remove()}},[e,r,o,n,s])}const Di=1,Li=1e6;let Ut=0;function Mi(){return Ut=(Ut+1)%Number.MAX_SAFE_INTEGER,Ut.toString()}const Ht=new Map,oo=e=>{if(Ht.has(e))return;const r=setTimeout(()=>{Ht.delete(e),tt({type:"REMOVE_TOAST",toastId:e})},Li);Ht.set(e,r)},$i=(e,r)=>{switch(r.type){case"ADD_TOAST":return{...e,toasts:[r.toast,...e.toasts].slice(0,Di)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(o=>o.id===r.toast.id?{...o,...r.toast}:o)};case"DISMISS_TOAST":{const{toastId:o}=r;return o?oo(o):e.toasts.forEach(n=>{oo(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===o||o===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return r.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==r.toastId)}}},yt=[];let vt={toasts:[]};function tt(e){vt=$i(vt,e),yt.forEach(r=>{r(vt)})}function zi({...e}){const r=Mi(),o=s=>tt({type:"UPDATE_TOAST",toast:{...s,id:r}}),n=()=>tt({type:"DISMISS_TOAST",toastId:r});return tt({type:"ADD_TOAST",toast:{...e,id:r,open:!0,onOpenChange:s=>{s||n()}}}),{id:r,dismiss:n,update:o}}function Bi(){const[e,r]=u.useState(vt);return u.useEffect(()=>(yt.push(r),()=>{const o=yt.indexOf(r);o>-1&&yt.splice(o,1)}),[e]),{...e,toast:zi,dismiss:o=>tt({type:"DISMISS_TOAST",toastId:o})}}function q(e,r,{checkForDefaultPrevented:o=!0}={}){return function(s){if(e?.(s),o===!1||!s.defaultPrevented)return r?.(s)}}function no(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function wr(...e){return r=>{let o=!1;const n=e.map(s=>{const a=no(s,r);return!o&&typeof a=="function"&&(o=!0),a});if(o)return()=>{for(let s=0;s<n.length;s++){const a=n[s];typeof a=="function"?a():no(e[s],null)}}}}function X(...e){return u.useCallback(wr(...e),e)}function ze(e,r=[]){let o=[];function n(a,i){const l=u.createContext(i),c=o.length;o=[...o,i];const d=m=>{const{scope:f,children:h,...b}=m,x=f?.[e]?.[c]||l,g=u.useMemo(()=>b,Object.values(b));return t.jsx(x.Provider,{value:g,children:h})};d.displayName=a+"Provider";function p(m,f){const h=f?.[e]?.[c]||l,b=u.useContext(h);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[d,p]}const s=()=>{const a=o.map(i=>u.createContext(i));return function(l){const c=l?.[e]||a;return u.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[n,Fi(s,...r)]}function Fi(...e){const r=e[0];if(e.length===1)return r;const o=()=>{const n=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const i=n.reduce((l,{useScope:c,scopeName:d})=>{const m=c(a)[`__scope${d}`];return{...l,...m}},{});return u.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return o.scopeName=r.scopeName,o}function tr(e){const r=Vi(e),o=u.forwardRef((n,s)=>{const{children:a,...i}=n,l=u.Children.toArray(a),c=l.find(qi);if(c){const d=c.props.children,p=l.map(m=>m===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:m);return t.jsx(r,{...i,ref:s,children:u.isValidElement(d)?u.cloneElement(d,void 0,p):null})}return t.jsx(r,{...i,ref:s,children:a})});return o.displayName=`${e}.Slot`,o}function Vi(e){const r=u.forwardRef((o,n)=>{const{children:s,...a}=o;if(u.isValidElement(s)){const i=Ui(s),l=Ki(a,s.props);return s.type!==u.Fragment&&(l.ref=n?wr(n,i):i),u.cloneElement(s,l)}return u.Children.count(s)>1?u.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var ln=Symbol("radix.slottable");function Wi(e){const r=({children:o})=>t.jsx(t.Fragment,{children:o});return r.displayName=`${e}.Slottable`,r.__radixId=ln,r}function qi(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ln}function Ki(e,r){const o={...r};for(const n in r){const s=e[n],a=r[n];/^on[A-Z]/.test(n)?s&&a?o[n]=(...l)=>{const c=a(...l);return s(...l),c}:s&&(o[n]=s):n==="style"?o[n]={...s,...a}:n==="className"&&(o[n]=[s,a].filter(Boolean).join(" "))}return{...e,...o}}function Ui(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function jr(e){const r=e+"CollectionProvider",[o,n]=ze(r),[s,a]=o(r,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:g,children:y}=x,v=G.useRef(null),w=G.useRef(new Map).current;return t.jsx(s,{scope:g,itemMap:w,collectionRef:v,children:y})};i.displayName=r;const l=e+"CollectionSlot",c=tr(l),d=G.forwardRef((x,g)=>{const{scope:y,children:v}=x,w=a(l,y),j=X(g,w.collectionRef);return t.jsx(c,{ref:j,children:v})});d.displayName=l;const p=e+"CollectionItemSlot",m="data-radix-collection-item",f=tr(p),h=G.forwardRef((x,g)=>{const{scope:y,children:v,...w}=x,j=G.useRef(null),C=X(g,j),k=a(p,y);return G.useEffect(()=>(k.itemMap.set(j,{ref:j,...w}),()=>{k.itemMap.delete(j)})),t.jsx(f,{[m]:"",ref:C,children:v})});h.displayName=p;function b(x){const g=a(e+"CollectionConsumer",x);return G.useCallback(()=>{const v=g.collectionRef.current;if(!v)return[];const w=Array.from(v.querySelectorAll(`[${m}]`));return Array.from(g.itemMap.values()).sort((k,P)=>w.indexOf(k.ref.current)-w.indexOf(P.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:d,ItemSlot:h},b,n]}var Hi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],U=Hi.reduce((e,r)=>{const o=tr(`Primitive.${r}`),n=u.forwardRef((s,a)=>{const{asChild:i,...l}=s,c=i?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),t.jsx(c,{...l,ref:a})});return n.displayName=`Primitive.${r}`,{...e,[r]:n}},{});function cn(e,r){e&&gr.flushSync(()=>
vendor: 4,651 bytes, line 2
2e.dispatchEvent(r))}function Ae(e){const r=u.useRef(e);return u.useEffect(()=>{r.current=e}),u.useMemo(()=>(...o)=>r.current?.(...o),[])}function Gi(e,r=globalThis?.document){const o=Ae(e);u.useEffect(()=>{const n=s=>{s.key==="Escape"&&o(s)};return r.addEventListener("keydown",n,{capture:!0}),()=>r.removeEventListener("keydown",n,{capture:!0})},[o,r])}var Yi="DismissableLayer",rr="dismissableLayer.update",Xi="dismissableLayer.pointerDownOutside",Ji="dismissableLayer.focusOutside",so,dn=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nr=u.forwardRef((e,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...c}=e,d=u.useContext(dn),[p,m]=u.useState(null),f=p?.ownerDocument??globalThis?.document,[,h]=u.useState({}),b=X(r,P=>m(P)),x=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(g),v=p?x.indexOf(p):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,j=v>=y,C=Zi(P=>{const N=P.target,L=[...d.branches].some($=>$.contains(N));!j||L||(s?.(P),i?.(P),P.defaultPrevented||l?.())},f),k=el(P=>{const N=P.target;[...d.branches].some($=>$.contains(N))||(a?.(P),i?.(P),P.defaultPrevented||l?.())},f);return Gi(P=>{v===d.layers.size-1&&(n?.(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},f),u.useEffect(()=>{if(p)return o&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(so=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),ao(),()=>{o&&d.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=so)}},[p,f,o,d]),u.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),ao())},[p,d]),u.useEffect(()=>{const P=()=>h({});return document.addEventListener(rr,P),()=>document.removeEventListener(rr,P)},[]),t.jsx(U.div,{...c,ref:b,style:{pointerEvents:w?j?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,k.onFocusCapture),onBlurCapture:q(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,C.onPointerDownCapture)})});Nr.displayName=Yi;var Qi="DismissableLayerBranch",un=u.forwardRef((e,r)=>{const o=u.useContext(dn),n=u.useRef(null),s=X(r,n);return u.useEffect(()=>{const a=n.current;if(a)return o.branches.add(a),()=>{o.branches.delete(a)}},[o.branches]),t.jsx(U.div,{...e,ref:s})});un.displayName=Qi;function Zi(e,r=globalThis?.document){const o=Ae(e),n=u.useRef(!1),s=u.useRef(()=>{});return u.useEffect(()=>{const a=l=>{if(l.target&&!n.current){let c=function(){mn(Xi,o,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(r.removeEventListener("click",s.current),s.current=c,r.addEventListener("click",s.current,{once:!0})):c()}else r.removeEventListener("click",s.current);n.current=!1},i=window.setTimeout(()=>{r.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),r.removeEventListener("pointerdown",a),r.removeEventListener("click",s.current)}},[r,o]),{onPointerDownCapture:()=>n.current=!0}}function el(e,r=globalThis?.document){const o=Ae(e),n=u.useRef(!1);return u.useEffect(()=>{const s=a=>{a.target&&!n.current&&mn(Ji,o,{originalEvent:a},{discrete:!1})};return r.addEventListener("focusin",s),()=>r.removeEventListener("focusin",s)},[r,o]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ao(){const e=new CustomEvent(rr);document.dispatchEvent(e)}function mn(e,r,o,{discrete:n}){const s=o.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});r&&s.addEventListener(e,r,{once:!0}),n?cn(s,a):s.dispatchEvent(a)}var tl=Nr,rl=un,me=globalThis?.document?u.useLayoutEffect:()=>{},ol="Portal",kr=u.forwardRef((e,r)=>{const{container:o,...n}=e,[s,a]=u.useState(!1);me(()=>a(!0),[]);const i=o||s&&globalThis?.document?.body;return i?Ta.createPortal(t.jsx(U.div,{...n,ref:r}),i):null});kr.displayName=ol;function nl(e,r){return u.useReducer((o,n)=>r[o][n]??o,e)}var at=e=>{const{present:r,children:o}=e,n=sl(r),s=typeof o=="function"?o({present:n.isPresent}):u.Children.only(o),a=X(n.ref,al(s));return typeof o=="function"||n.isPresent?u.cloneElement(s,{ref:a}):null};at.displayName="Presence";function sl(e){const[r,o]=u.useState(),n=u.useRef(null),s=u.useRef(e),a=u.useRef("none"),i=e?"mounted":"unmounted",[l,c]=nl(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=pt(n.current);a.current=l==="mounted"?d:"none"},[l]),me(()=>{const d=n.current,p=s.current;
2if(p!==e){const f=a.current,h=pt(d);e?c("MOUNT"):h==="none"||d?.display==="none"?c("UNMOUNT"):c(p&&f!==h?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),me(()=>{if(r){let d;const p=r.ownerDocument.defaultView??window,m=h=>{const x=pt(n.current).includes(CSS.escape(h.animationName));if(h.target===r&&x&&(c("ANIMATION_END"),!s.current)){const g=r.style.animationFillMode;r.style.animationFillMode="forwards",d=p.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=g)})}},f=h=>{h.target===r&&(a.current=pt(n.current))};return r.addEventListener("animationstart",f),r.addEventListener("animationcancel",m),r.addEventListener("animationend",m),()=>{p.clearTimeout(d),r.removeEventListener("animationstart",f),r.removeEventListener("animationcancel",m),r.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:u.useCallback(d=>{n.current=d?getComputedStyle(d):null,o(d)},[])}}function pt(e){return e?.animationName||"none"}function al(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var il=St[" useInsertionEffect ".trim().toString()]||me;function it({prop:e,defaultProp:r,onChange:o=()=>{},caller:n}){const[s,a,i]=ll({defaultProp:r,onChange:o}),l=e!==void 0,c=l?e:s;{const p=u.useRef(e!==void 0);u.useEffect(()=>{const m=p.current;m!==l&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,n])}const d=u.useCallback(p=>{if(l){const m=cl(p)?p(e):p;m!==e&&i.current?.(m)}else a(p)},[l,e,a,i]);return[c,d]}function ll({defaultProp:e,onChange:r}){const[o,n]=u.useState(e),s=u.useRef(o),a=u.useRef(r);return il(()=>{a.current=r},[r]),u.useEffect(()=>{s.current!==o&&(a.current?.(o),s.current=o)},[o,s]),[o,n,a]}function cl(e){return typeof e=="function"}var dl=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ul="VisuallyHidden",It=u.forwardRef((e,r)=>t.jsx(U.span,{...e,ref:r,style:{...dl,...e.style}}));It.displayName=ul;var ml=It,Cr="ToastProvider",[Pr,pl,fl]=jr("Toast"),[pn]=ze("Toast",[fl]),[hl,Ot]=pn(Cr),fn=e=>{const{__scopeToast:r,label:o="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:a=50,children:i}=e,[l,c]=u.useState(null),[d,p]=u.useState(0),m=u.useRef(!1),f=u.useRef(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${Cr}\`. Expected non-empty \`string\`.`),t.jsx(Pr.Provider,{scope:r,children:t.jsx(hl,{scope:r,label:o,duration:n,swipeDirection:s,swipeThreshold:a,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:u.useCallback(()=>p(h=>h+1),[]),onToastRemove:u.useCallback(()=>p(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:f,children:i})})};fn.displayName=Cr;var hn="ToastViewport",xl=["F8"],or="toast.viewportPause",nr="toast.viewportResume",xn=u.forwardRef((e,r)=>{const{__scopeToast:o,hotkey:n=xl,label:s="Notifications ({hotkey})",...a}=e,i=Ot(hn,o),l=pl(o),c=u.useRef(null),d=u.useRef(null),p=u.useRef(null),m=u.useRef(null),f=X(r,m,i.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;u.useEffect(()=>{const g=y=>{n.length!==0&&n.every(w=>y[w]||y.code===w)&&m.current?.focus()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[n]),u.useEffect(()=>{const g=c.current,y=m.current;if(b&&g&&y){const v=()=>{if(!i.isClosePausedRef.current){const k=new CustomEvent(or);y.dispatchEvent(k),i.isClosePausedRef.current=!0}},w=()=>{if(i.isClosePausedRef.current){const k=new CustomEvent(nr);y.dispatchEvent(k),i.isClosePausedRef.current=!1}},j=k=>{!g.contains(k.relatedTarget)&&w()},C=()=>{g.contains(document.activeElement)||w()};return g.addEventListener("focusin",v),g.addEventListener("focusout",j),g.addEventListener("pointermove",v),g.addEventListener("pointerleave",C),window.addEventListener("blur",v),window.addEventListener("focus",w),()=>{g.removeEventListener("focusin",v),g.removeEventListener("focusout",j),g.removeEventListener("pointermove",v),g.removeEventListener("pointerleave",C),window.removeEventListener("blur",v),window.removeEventListener("focus",w)}}},[b,i.isClosePausedRef]);const x=u.useCallback(({tabbingDirection:g})=>{const v=l().map(w=>{const j=w.ref.current,C=[j,...Sl(j)];return g==="forwards"?C:C.reverse()});return(g==="forwards"?v.reverse():v).flat()},[l]);return u.useEffect(()=>{const g=m.current;if(g){const y=v=>{const w=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!w){const C=document.activeElement,k=v.shiftKey;if(v.target===g&&k){d.current?.focus();return}const L=x({tabbingDirection:k?"backwards":"forwards"}),$=L.findIndex(O=>O===C);Gt(L.slice($+1))?v.preventDefault():k?d.current?.focus():p.current?.focus()}};return g.addEventListener("keydown",y),()=>g.removeEventListener("keydown",y)}},[l,x]),t.jsxs(rl,{ref:c,role:"region","aria-label":s.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&t.jsx(sr,{ref:d,onFocusFromOutsideViewport:()=>{const g=x({tabbingDirection:"forwards"});Gt(g)}}),t.jsx(Pr.Slot,{scope:o,children:t.jsx(U.ol,{tabIndex:-1,...a,ref:f})}),b&&t.jsx(sr,{ref:p,onFocusFromOutsideViewport:()=>{const g=x({tabbingDirection:"backwards"});Gt(g)}})]})});xn.displayName=hn;var gn="ToastFocusProxy",sr=u.forwardRef((e,r)=>{const{__scopeToast:o,onFocusFromOutsideViewport:n,...s}=e,a=Ot(gn,o);
2return t.jsx(It,{tabIndex:0,...s,ref:r,style:{position:"fixed"},onFocus:i=>{const l=i.relatedTarget;!a.viewport?.contains(l)&&n()}})});sr.displayName=gn;var lt="Toast",gl="toast.swipeStart",bl="toast.swipeMove",yl="toast.swipeCancel",vl="toast.swipeEnd",bn=u.forwardRef((e,r)=>{const{forceMount:o,open:n,defaultOpen:s,onOpenChange:a,...i}=e,[l,c]=it({prop:n,defaultProp:s??!0,onChange:a,caller:lt});return t.jsx(at,{present:o||l,children:t.jsx(Nl,{open:l,...i,ref:r,onClose:()=>c(!1),onPause:Ae(e.onPause),onResume:Ae(e.onResume),onSwipeStart:q(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:q(e.onSwipeMove,d=>{const{x:p,y:m}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:q(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:q(e.onSwipeEnd,d=>{const{x:p,y:m}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),c(!1)})})})});bn.displayName=lt;var[wl,jl]=pn(lt,{onClose(){}}),Nl=u.forwardRef((e,r)=>{const{__scopeToast:o,type:n="foreground",duration:s,open:a,onClose:i,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:f,onSwipeEnd:h,...b}=e,x=Ot(lt,o),[g,y]=u.useState(null),v=X(r,S=>y(S)),w=u.useRef(null),j=u.useRef(null),C=s||x.duration,k=u.useRef(0),P=u.useRef(C),N=u.useRef(0),{onToastAdd:L,onToastRemove:$}=x,O=Ae(()=>{g?.contains(document.activeElement)&&x.viewport?.focus(),i()}),B=u.useCallback(S=>{!S||S===1/0||(window.clearTimeout(N.current),k.current=new Date().getTime(),N.current=window.setTimeout(O,S))},[O]);u.useEffect(()=>{const S=x.viewport;if(S){const z=()=>{B(P.current),d?.()},I=()=>{const D=new Date().getTime()-k.current;P.current=P.current-D,window.clearTimeout(N.current),c?.()};return S.addEventListener(or,I),S.addEventListener(nr,z),()=>{S.removeEventListener(or,I),S.removeEventListener(nr,z)}}},[x.viewport,C,c,d,B]),u.useEffect(()=>{a&&!x.isClosePausedRef.current&&B(C)},[a,C,x.isClosePausedRef,B]),u.useEffect(()=>(L(),()=>$()),[L,$]);const F=u.useMemo(()=>g?Cn(g):null,[g]);return x.viewport?t.jsxs(t.Fragment,{children:[F&&t.jsx(kl,{__scopeToast:o,role:"status","aria-live":n==="foreground"?"assertive":"polite",children:F}),t.jsx(wl,{scope:o,onClose:O,children:gr.createPortal(t.jsx(Pr.ItemSlot,{scope:o,children:t.jsx(tl,{asChild:!0,onEscapeKeyDown:q(l,()=>{x.isFocusedToastEscapeKeyDownRef.current||O(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:t.jsx(U.li,{tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":x.swipeDirection,...b,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:q(e.onKeyDown,S=>{S.key==="Escape"&&(l?.(S.nativeEvent),S.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,O()))}),onPointerDown:q(e.onPointerDown,S=>{S.button===0&&(w.current={x:S.clientX,y:S.clientY})}),onPointerMove:q(e.onPointerMove,S=>{if(!w.current)return;const z=S.clientX-w.current.x,I=S.clientY-w.current.y,D=!!j.current,_=["left","right"].includes(x.swipeDirection),V=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,T=_?V(0,z):0,_e=_?0:V(0,I),ve=S.pointerType==="touch"?10:2,he={x:T,y:_e},we={originalEvent:S,delta:he};D?(j.current=he,ft(bl,m,we,{discrete:!1})):io(he,x.swipeDirection,ve)?(j.current=he,ft(gl,p,we,{discrete:!1}),S.target.setPointerCapture(S.pointerId)):(Math.abs(z)>ve||Math.abs(I)>ve)&&(w.current=null)}),onPointerUp:q(e.onPointerUp,S=>{const z=j.current,I=S.target;if(I.hasPointerCapture(S.pointerId)&&I.releasePointerCapture(S.pointerId),j.current=null,w.current=null,z){const D=S.currentTarget,_={originalEvent:S,delta:z};io(z,x.swipeDirection,x.swipeThreshold)?ft(vl,h,_,{discrete:!0}):ft(yl,f,_,{discrete:!0}),D.addEventListener("click",V=>V.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),kl=e=>{const{__scopeToast:r,children:o,...n}=e,s=Ot(lt,r),[a,i]=u.useState(!1),[l,c]=u.useState(!1);return El(()=>i(!0)),u.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),l?null:t.jsx(kr,{asChild:!0,children:t.jsx(It,{...n,children:a&&t.jsxs(t.Fragment,{children:[s.label," ",o]})})})},Cl="ToastTitle",yn=u.forwardRef((e,r)=>{const{__scopeToast:o,...n}=e;return t.jsx(U.div,{...n,ref:r})});yn.displayName=Cl;var Pl="ToastDescription",vn=u.forwardRef((e,r)=>{const{__scopeToast:o,...n}=e;return t.jsx(U.div,{...n,ref:r})});vn.displayName=Pl;var wn="ToastAction",jn=u.forwardRef((e,r)=>{const{altText:o,...n}=e;return o.trim()?t.jsx(kn,{altText:o,asChild:!0,children:t.jsx(Er,{...n,ref:r})}):(console.error(`Invalid prop \`altText\` supplied to \`${wn}\`. Expected non-empty \`string\`.`),null)});jn.displayName=wn;var Nn="ToastClose",Er=u.forwardRef((e,r)=>{const{__scopeToast:o,...n}=e,s=jl(Nn,o);return t.jsx(kn,{asChild:!0,children:t.jsx(U.button,{type:"button",...n,ref:r,onClick:q(e.onClick,s.onClose)})})});Er.displayName=Nn;var kn=u.forwardRef((e,r)=>{const{__scopeToast:o,altText:n,...s}=e;return t.jsx(U.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:r})});function Cn(e){const r=[];
2return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&r.push(n.textContent),Al(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",a=n.dataset.radixToastAnnounceExclude==="";if(!s)if(a){const i=n.dataset.radixToastAnnounceAlt;i&&r.push(i)}else r.push(...Cn(n))}}),r}function ft(e,r,o,{discrete:n}){const s=o.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:o});r&&s.addEventListener(e,r,{once:!0}),n?cn(s,a):s.dispatchEvent(a)}var io=(e,r,o=0)=>{const n=Math.abs(e.x),s=Math.abs(e.y),a=n>s;return r==="left"||r==="right"?a&&n>o:!a&&s>o};function El(e=()=>{}){const r=Ae(e);me(()=>{let o=0,n=0;return o=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(r)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(n)}},[r])}function Al(e){return e.nodeType===e.ELEMENT_NODE}function Sl(e){const r=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function Gt(e){const r=document.activeElement;return e.some(o=>o===r?!0:(o.focus(),document.activeElement!==r))}var Tl=fn,Pn=xn,En=bn,An=yn,Sn=vn,Tn=jn,Rn=Er;function _n(e){var r,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(o=_n(e[r]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function In(){for(var e,r,o=0,n="",s=arguments.length;o<s;o++)(e=arguments[o])&&(r=_n(e))&&(n&&(n+=" "),n+=r);return n}const lo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,co=In,On=(e,r)=>o=>{var n;if(r?.variants==null)return co(e,o?.class,o?.className);const{variants:s,defaultVariants:a}=r,i=Object.keys(s).map(d=>{const p=o?.[d],m=a?.[d];if(p===null)return null;const f=lo(p)||lo(m);return s[d][f]}),l=o&&Object.entries(o).reduce((d,p)=>{let[m,f]=p;return f===void 0||(d[m]=f),d},{}),c=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((d,p)=>{let{class:m,className:f,...h}=p;return Object.entries(h).every(b=>{let[x,g]=b;return Array.isArray(g)?g.includes({...a,...l}[x]):{...a,...l}[x]===g})?[...d,m,f]:d},[]);return co(e,i,c,o?.class,o?.className)},Rl=(e,r)=>{const o=new Array(e.length+r.length);for(let n=0;n<e.length;n++)o[n]=e[n];for(let n=0;n<r.length;n++)o[e.length+n]=r[n];return o},_l=(e,r)=>({classGroupId:e,validator:r}),Dn=(e=new Map,r=null,o)=>({nextPart:e,validators:r,classGroupId:o}),jt="-",uo=[],Il="arbitrary..",Ol=e=>{const r=Ll(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Dl(i);const l=i.split(jt),c=l[0]===""&&l.length>1?1:0;return Ln(l,c,r)},getConflictingClassGroupIds:(i,l)=>{if(l){const c=n[i],d=o[i];return c?d?Rl(d,c):c:d||uo}return o[i]||uo}}},Ln=(e,r,o)=>{if(e.length-r===0)return o.classGroupId;const s=e[r],a=o.nextPart.get(s);if(a){const d=Ln(e,r+1,a);if(d)return d}const i=o.validators;if(i===null)return;const l=r===0?e.join(jt):e.slice(r).join(jt),c=i.length;for(let d=0;d<c;d++){const p=i[d];if(p.validator(l))return p.classGroupId}},Dl=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),o=r.indexOf(":"),n=r.slice(0,o);return n?Il+n:void 0})(),Ll=e=>{const{theme:r,classGroups:o}=e;return Ml(o,r)},Ml=(e,r)=>{const o=Dn();for(const n in e){const s=e[n];Ar(s,o,n,r)}return o},Ar=(e,r,o,n)=>{const s=e.length;for(let a=0;a<s;a++){const i=e[a];$l(i,r,o,n)}},$l=(e,r,o,n)=>{if(typeof e=="string"){zl(e,r,o);return}if(typeof e=="function"){Bl(e,r,o,n);return}Fl(e,r,o,n)},zl=(e,r,o)=>{const n=e===""?r:Mn(r,e);n.classGroupId=o},Bl=(e,r,o,n)=>{if(Vl(e)){Ar(e(n),r,o,n);return}r.validators===null&&(r.validators=[]),r.validators.push(_l(o,e))},Fl=(e,r,o,n)=>{const s=Object.entries(e),a=s.length;for(let i=0;i<a;i++){const[l,c]=s[i];Ar(c,Mn(r,l),o,n)}},Mn=(e,r)=>{let o=e;const n=r.split(jt),s=n.length;for(let a=0;a<s;a++){const i=n[a];let l=o.nextPart.get(i);l||(l=Dn(),o.nextPart.set(i,l)),o=l}return o},Vl=e=>
vendor: 4,697 bytes, line 2
2"isThemeGetter"in e&&e.isThemeGetter===!0,Wl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),n=Object.create(null);const s=(a,i)=>{o[a]=i,r++,r>e&&(r=0,n=o,o=Object.create(null))};return{get(a){let i=o[a];if(i!==void 0)return i;if((i=n[a])!==void 0)return s(a,i),i},set(a,i){a in o?o[a]=i:s(a,i)}}},ar="!",mo=":",ql=[],po=(e,r,o,n,s)=>({modifiers:e,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:n,isExternal:s}),Kl=e=>{const{prefix:r,experimentalParseClassName:o}=e;let n=s=>{const a=[];let i=0,l=0,c=0,d;const p=s.length;for(let x=0;x<p;x++){const g=s[x];if(i===0&&l===0){if(g===mo){a.push(s.slice(c,x)),c=x+1;continue}if(g==="/"){d=x;continue}}g==="["?i++:g==="]"?i--:g==="("?l++:g===")"&&l--}const m=a.length===0?s:s.slice(c);let f=m,h=!1;m.endsWith(ar)?(f=m.slice(0,-1),h=!0):m.startsWith(ar)&&(f=m.slice(1),h=!0);const b=d&&d>c?d-c:void 0;return po(a,h,f,b)};if(r){const s=r+mo,a=n;n=i=>i.startsWith(s)?a(i.slice(s.length)):po(ql,!1,i,void 0,!0)}if(o){const s=n;n=a=>o({className:a,parseClassName:s})}return n},Ul=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((o,n)=>{r.set(o,1e6+n)}),o=>{const n=[];let s=[];for(let a=0;a<o.length;a++){const i=o[a],l=i[0]==="[",c=r.has(i);l||c?(s.length>0&&(s.sort(),n.push(...s),s=[]),n.push(i)):s.push(i)}return s.length>0&&(s.sort(),n.push(...s)),n}},Hl=e=>({cache:Wl(e.cacheSize),parseClassName:Kl(e),sortModifiers:Ul(e),...Ol(e)}),Gl=/\s+/,Yl=(e,r)=>{const{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:s,sortModifiers:a}=r,i=[],l=e.trim().split(Gl);let c="";for(let d=l.length-1;d>=0;d-=1){const p=l[d],{isExternal:m,modifiers:f,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:x}=o(p);if(m){c=p+(c.length>0?" "+c:c);continue}let g=!!x,y=n(g?b.substring(0,x):b);if(!y){if(!g){c=p+(c.length>0?" "+c:c);continue}if(y=n(b),!y){c=p+(c.length>0?" "+c:c);continue}g=!1}const v=f.length===0?"":f.length===1?f[0]:a(f).join(":"),w=h?v+ar:v,j=w+y;if(i.indexOf(j)>-1)continue;i.push(j);const C=s(y,g);for(let k=0;k<C.length;++k){const P=C[k];i.push(w+P)}c=p+(c.length>0?" "+c:c)}return c},Xl=(...e)=>{let r=0,o,n,s="";for(;r<e.length;)(o=e[r++])&&(n=$n(o))&&(s&&(s+=" "),s+=n);return s},$n=e=>{if(typeof e=="string")return e;let r,o="";for(let n=0;n<e.length;n++)e[n]&&(r=$n(e[n]))&&(o&&(o+=" "),o+=r);return o},Jl=(e,...r)=>{let o,n,s,a;const i=c=>{const d=r.reduce((p,m)=>m(p),e());return o=Hl(d),n=o.cache.get,s=o.cache.set,a=l,l(c)},l=c=>{const d=n(c);if(d)return d;const p=Yl(c,o);return s(c,p),p};return a=i,(...c)=>a(Xl(...c))},Ql=[],Y=e=>{const r=o=>o[e]||Ql;return r.isThemeGetter=!0,r},zn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Bn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zl=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ec=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ne=e=>Zl.test(e),M=e=>!!e&&!Number.isNaN(Number(e)),ke=e=>!!e&&Number.isInteger(Number(e)),Yt=e=>e.endsWith("%")&&M(e.slice(0,-1)),xe=e=>ec.test(e),Fn=()=>!0,sc=e=>tc.test(e)&&!rc.test(e),Sr=()=>!1,ac=e=>oc.test(e),ic=e=>nc.test(e),lc=e=>!E(e)&&!A(e),cc=e=>Re(e,qn,Sr),E=e=>zn.test(e),Ie=e=>Re(e,Kn,sc),fo=e=>Re(e,gc,M),dc=e=>Re(e,Hn,Fn),uc=e=>Re(e,Un,Sr),ho=e=>Re(e,Vn,Sr),mc=e=>Re(e,Wn,ic),ht=e=>Re(e,Gn,ac),A=e=>Bn.test(e),Je=e=>Be(e,Kn),pc=e=>Be(e,Un),xo=e=>Be(e,Vn),fc=e=>Be(e,qn),hc=e=>Be(e,Wn),xt=e=>Be(e,Gn,!0),xc=e=>Be(e,Hn,!0),Re=(e,r,o)=>{const n=zn.exec(e);return n?n[1]?r(n[1]):o(n[2]):!1},Be=(e,r,o=!1)=>{const n=Bn.exec(e);return n?n[1]?r(n[1]):o:!1},Vn=e=>e==="position"||e==="percentage",Wn=e=>e==="image"||e==="url",qn=e=>e==="length"||e==="size"||e==="bg-size",Kn=e=>e==="length",gc=e=>e==="number",Un=e=>e==="family-name",Hn=e=>e==="number"||e==="weight",Gn=e=>e==="shadow",bc=()=>{const e=Y("color"),r=Y("font"),o=Y("text"),n=Y("font-weight"),s=Y("tracking"),a=Y("leading"),i=Y("breakpoint"),l=Y("container"),c=Y("spacing"),d=Y("radius"),p=Y("shadow"),m=Y("inset-shadow"),f=Y("text-shadow"),h=Y("drop-shadow"),b=Y("blur"),x=Y("perspective"),g=Y("aspect"),y=Y("ease"),v=Y("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...j(),A,E],k=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],N=()=>[A,E,c],L=()=>[Ne,"full","auto",...N()],$=()=>
vendor: 7,830 bytes, line 2
2[ke,"none","subgrid",A,E],O=()=>["auto",{span:["full",ke,A,E]},ke,A,E],B=()=>[ke,"auto",A,E],F=()=>["auto","min","max","fr",A,E],S=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...N()],D=()=>[Ne,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],_=()=>[Ne,"screen","full","dvw","lvw","svw","min","max","fit",...N()],V=()=>[Ne,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],T=()=>[e,A,E],_e=()=>[...j(),xo,ho,{position:[A,E]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],he=()=>["auto","cover","contain",fc,cc,{size:[A,E]}],we=()=>[Yt,Je,Ie],J=()=>["","none","full",d,A,E],Q=()=>["",M,Je,Ie],le=()=>["solid","dashed","dotted","double"],Xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[M,Yt,xo,ho],ut=()=>["","none",b,A,E],Fe=()=>["none",M,A,E],Ve=()=>["none",M,A,E],je=()=>[M,A,E],mt=()=>[Ne,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xe],breakpoint:[xe],color:[Fn],container:[xe],"drop-shadow":[xe],ease:["in","out","in-out"],font:[lc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xe],shadow:[xe],spacing:["px",M],text:[xe],"text-shadow":[xe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ne,E,A,g]}],container:["container"],columns:[{columns:[M,E,A,l]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[ke,"auto",A,E]}],basis:[{basis:[Ne,"full","auto",l,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[M,Ne,"auto","initial","none",E]}],grow:[{grow:["",M,A,E]}],shrink:[{shrink:["",M,A,E]}],order:[{order:[ke,"first","last","none",A,E]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...S(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...S()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":S()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pbs:[{pbs:N()}],pbe:[{pbe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mbs:[{mbs:I()}],mbe:[{mbe:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],"inline-size":[{inline:["auto",..._()]}],"min-inline-size":[{"min-inline":["auto",..._()]}],"max-inline-size":[{"max-inline":["none",..._()]}],"block-size":[{block:["auto",...V()]}],"min-block-size":[{"min-block":["auto",...V()]}],"max-block-size":[{"max-block":["none",...V()]}],w:[{w:[l,"screen",...D()]}],"min-w":[{"min-w":[l,"screen","none",...D()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",o,Je,Ie]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,xc,dc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yt,E]}],"font-family":[{font:[pc,uc,r]}],"font-features":[{"font-features":[E]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,A,E]}],"line-clamp":[{"line-clamp":[M,"none",A,fo]}],leading:[{leading:[a,...N()]}],"list-image":[{"list-image":["none",A,E]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",A,E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[M,"from-font","auto",A,Ie]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[M,"auto",A,E]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A,E]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",A,E]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_e()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:he()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ke,A,E],radial:["",A,E],conic:[ke,A,E]},hc,mc]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:we()}
vendor: 7,278 bytes, line 2
2],"gradient-via-pos":[{via:we()}],"gradient-to-pos":[{to:we()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[M,A,E]}],"outline-w":[{outline:["",M,Je,Ie]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",p,xt,ht]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",m,xt,ht]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[M,Ie]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",f,xt,ht]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[M,A,E]}],"mix-blend":[{"mix-blend":[...Xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Xe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[M]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[A,E]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[M]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_e()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:he()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",A,E]}],filter:[{filter:["","none",A,E]}],blur:[{blur:ut()}],brightness:[{brightness:[M,A,E]}],contrast:[{contrast:[M,A,E]}],"drop-shadow":[{"drop-shadow":["","none",h,xt,ht]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",M,A,E]}],"hue-rotate":[{"hue-rotate":[M,A,E]}],invert:[{invert:["",M,A,E]}],saturate:[{saturate:[M,A,E]}],sepia:[{sepia:["",M,A,E]}],"backdrop-filter":[{"backdrop-filter":["","none",A,E]}],"backdrop-blur":[{"backdrop-blur":ut()}],"backdrop-brightness":[{"backdrop-brightness":[M,A,E]}],"backdrop-contrast":[{"backdrop-contrast":[M,A,E]}],"backdrop-grayscale":[{"backdrop-grayscale":["",M,A,E]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[M,A,E]}],"backdrop-invert":[{"backdrop-invert":["",M,A,E]}],"backdrop-opacity":[{"backdrop-opacity":[M,A,E]}],"backdrop-saturate":[{"backdrop-saturate":[M,A,E]}],"backdrop-sepia":[{"backdrop-sepia":["",M,A,E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",A,E]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[M,"initial",A,E]}],ease:[{ease:["linear","initial",y,A,E]}],delay:[{delay:[M,A,E]}],animate:[{animate:["none",v,A,E]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,A,E]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:Ve()}],"scale-x":[{"scale-x":Ve()}],"scale-y":[{"scale-y":Ve()}],"scale-z":[{"scale-z":Ve()}],"scale-3d":["scale-3d"],skew:[{skew:je()}],"skew-x":[{"skew-x":je()}],"skew-y":[{"skew-y":je()}],transform:[{transform:[A,E,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:mt()}],"translate-x":[{"translate-x":mt()}],"translate-y":[{"translate-y":mt()}],"translate-z":[{"translate-z":mt()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}
2],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",A,E]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mbs":[{"scroll-mbs":N()}],"scroll-mbe":[{"scroll-mbe":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pbs":[{"scroll-pbs":N()}],"scroll-pbe":[{"scroll-pbe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",A,E]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[M,Je,Ie,fo]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},yc=Jl(bc);function re(...e){return yc(In(e))}const vc=Tl,Yn=u.forwardRef(({className:e,...r},o)=>t.jsx(Pn,{ref:o,className:re("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...r}));Yn.displayName=Pn.displayName;const wc=On("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Xn=u.forwardRef(({className:e,variant:r,...o},n)=>t.jsx(En,{ref:n,className:re(wc({variant:r}),e),...o}));Xn.displayName=En.displayName;const jc=u.forwardRef(({className:e,...r},o)=>t.jsx(Tn,{ref:o,className:re("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...r}));jc.displayName=Tn.displayName;const Jn=u.forwardRef(({className:e,...r},o)=>t.jsx(Rn,{ref:o,className:re("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,688 bytes, line 2
2/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...r,children:t.jsx(Ce,{className:"h-4 w-4"})}));Jn.displayName=Rn.displayName;const Qn=u.forwardRef(({className:e,...r},o)=>t.jsx(An,{ref:o,className:re("text-sm font-semibold",e),...r}));Qn.displayName=An.displayName;const Zn=u.forwardRef(({className:e,...r},o)=>t.jsx(Sn,{ref:o,className:re("text-sm opacity-90",e),...r}));Zn.displayName=Sn.displayName;function Nc(){const{toasts:e}=Bi();return t.jsxs(vc,{children:[e.map(function({id:r,title:o,description:n,action:s,...a}){return t.jsxs(Xn,{...a,children:[t.jsxs("div",{className:"grid gap-1",children:[o&&t.jsx(Qn,{children:o}),n&&t.jsx(Zn,{children:n})]}),s,t.jsx(Jn,{})]},r)}),t.jsx(Yn,{})]})}var kc=St[" useId ".trim().toString()]||(()=>{}),Cc=0;function es(e){const[r,o]=u.useState(kc());return me(()=>{o(n=>n??String(Cc++))},[e]),r?`radix-${r}`:""}const Pc=["top","right","bottom","left"],Se=Math.min,ee=Math.max,Nt=Math.round,gt=Math.floor,ue=e=>({x:e,y:e}),Ec={left:"right",right:"left",bottom:"top",top:"bottom"};function ir(e,r,o){return ee(e,Se(r,o))}function ge(e,r){return typeof e=="function"?e(r):e}function be(e){return e.split("-")[0]}function He(e){return e.split("-")[1]}function Tr(e){return e==="x"?"y":"x"}function Rr(e){return e==="y"?"height":"width"}function de(e){const r=e[0];return r==="t"||r==="b"?"y":"x"}function _r(e){return Tr(de(e))}function Ac(e,r,o){o===void 0&&(o=!1);const n=He(e),s=_r(e),a=Rr(s);let i=s==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[a]>r.floating[a]&&(i=kt(i)),[i,kt(i)]}function Sc(e){const r=kt(e);return[lr(e),r,lr(r)]}function lr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const go=["left","right"],bo=["right","left"],Tc=["top","bottom"],Rc=["bottom","top"];function _c(e,r,o){switch(e){case"top":case"bottom":return o?r?bo:go:r?go:bo;case"left":case"right":return r?Tc:Rc;default:return[]}}function Ic(e,r,o,n){const s=He(e);let a=_c(be(e),o==="start",n);return s&&(a=a.map(i=>i+"-"+s),r&&(a=a.concat(a.map(lr)))),a}function kt(e){const r=be(e);return Ec[r]+e.slice(r.length)}function Oc(e){return{top:0,right:0,bottom:0,left:0,...e}}function ts(e){return typeof e!="number"?Oc(e):{top:e,right:e,bottom:e,left:e}}function Ct(e){const{x:r,y:o,width:n,height:s}=e;return{width:n,height:s,top:o,left:r,right:r+n,bottom:o+s,x:r,y:o}}function yo(e,r,o){let{reference:n,floating:s}=e;const a=de(r),i=_r(r),l=Rr(i),c=be(r),d=a==="y",p=n.x+n.width/2-s.width/2,m=n.y+n.height/2-s.height/2,f=n[l]/2-s[l]/2;let h;switch(c){case"top":h={x:p,y:n.y-s.height};break;case"bottom":h={x:p,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:m};break;case"left":h={x:n.x-s.width,y:m};break;default:h={x:n.x,y:n.y}}switch(He(r)){case"start":h[i]-=f*(o&&d?-1:1);break;case"end":h[i]+=f*(o&&d?-1:1);break}return h}async function Dc(e,r){var o;r===void 0&&(r={});const{x:n,y:s,platform:a,rects:i,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:f=!1,padding:h=0}=ge(r,e),b=ts(h),g=l[f?m==="floating"?"reference":"floating":m],y=Ct(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(g)))==null||o?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:p,strategy:c})),v=m==="floating"?{x:n,y:s,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),j=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},C=Ct(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:w,strategy:c}):v);return{top:(y.top-C.top+b.top)/j.y,bottom:(C.bottom-y.bottom+b.bottom)/j.y,left:(y.left-C.left+b.left)/j.x,right:(C.right-y.right+b.right)/j.x}}const Lc=50,Mc=async(e,r,o)=>{const{placement:n="bottom",strategy:s="absolute",middleware:a=[],platform:i}=o,l=i.detectOverflow?i:{...i,detectOverflow:Dc},c=await(i.isRTL==null?void 0:i.isRTL(r));let d=await i.getElementRects({reference:e,floating:r,strategy:s}),{x:p,y:m}=yo(d,n,c),f=n,h=0;const b={};for(let x=0;x<a.length;x++){const g=a[x];if(!g)continue;const{name:y,fn:v}=g,{x:w,y:j,data:C,reset:k}=await v({x:p,y:m,initialPlacement:n,placement:f,strategy:s,middlewareData:b,re
vendor: 5,696 bytes, line 2
2cts:d,platform:l,elements:{reference:e,floating:r}});p=w??p,m=j??m,b[y]={...b[y],...C},k&&h<Lc&&(h++,typeof k=="object"&&(k.placement&&(f=k.placement),k.rects&&(d=k.rects===!0?await i.getElementRects({reference:e,floating:r,strategy:s}):k.rects),{x:p,y:m}=yo(d,f,c)),x=-1)}return{x:p,y:m,placement:f,strategy:s,middlewareData:b}},$c=e=>({name:"arrow",options:e,async fn(r){const{x:o,y:n,placement:s,rects:a,platform:i,elements:l,middlewareData:c}=r,{element:d,padding:p=0}=ge(e,r)||{};if(d==null)return{};const m=ts(p),f={x:o,y:n},h=_r(s),b=Rr(h),x=await i.getDimensions(d),g=h==="y",y=g?"top":"left",v=g?"bottom":"right",w=g?"clientHeight":"clientWidth",j=a.reference[b]+a.reference[h]-f[h]-a.floating[b],C=f[h]-a.reference[h],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let P=k?k[w]:0;(!P||!await(i.isElement==null?void 0:i.isElement(k)))&&(P=l.floating[w]||a.floating[b]);const N=j/2-C/2,L=P/2-x[b]/2-1,$=Se(m[y],L),O=Se(m[v],L),B=$,F=P-x[b]-O,S=P/2-x[b]/2+N,z=ir(B,S,F),I=!c.arrow&&He(s)!=null&&S!==z&&a.reference[b]/2-(S<B?$:O)-x[b]/2<0,D=I?S<B?S-B:S-F:0;return{[h]:f[h]+D,data:{[h]:z,centerOffset:S-z-D,...I&&{alignmentOffset:D}},reset:I}}}),zc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var o,n;const{placement:s,middlewareData:a,rects:i,initialPlacement:l,platform:c,elements:d}=r,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...g}=ge(e,r);if((o=a.arrow)!=null&&o.alignmentOffset)return{};const y=be(s),v=de(l),w=be(l)===l,j=await(c.isRTL==null?void 0:c.isRTL(d.floating)),C=f||(w||!x?[kt(l)]:Sc(l)),k=b!=="none";!f&&k&&C.push(...Ic(l,x,b,j));const P=[l,...C],N=await c.detectOverflow(r,g),L=[];let $=((n=a.flip)==null?void 0:n.overflows)||[];if(p&&L.push(N[y]),m){const S=Ac(s,i,j);L.push(N[S[0]],N[S[1]])}if($=[...$,{placement:s,overflows:L}],!L.every(S=>S<=0)){var O,B;const S=(((O=a.flip)==null?void 0:O.index)||0)+1,z=P[S];if(z&&(!(m==="alignment"?v!==de(z):!1)||$.every(_=>de(_.placement)===v?_.overflows[0]>0:!0)))return{data:{index:S,overflows:$},reset:{placement:z}};let I=(B=$.filter(D=>D.overflows[0]<=0).sort((D,_)=>D.overflows[1]-_.overflows[1])[0])==null?void 0:B.placement;if(!I)switch(h){case"bestFit":{var F;const D=(F=$.filter(_=>{if(k){const V=de(_.placement);return V===v||V==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(V=>V>0).reduce((V,T)=>V+T,0)]).sort((_,V)=>_[1]-V[1])[0])==null?void 0:F[0];D&&(I=D);break}case"initialPlacement":I=l;break}if(s!==I)return{reset:{placement:I}}}return{}}}};function vo(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function wo(e){return Pc.some(r=>e[r]>=0)}const Bc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:o,platform:n}=r,{strategy:s="referenceHidden",...a}=ge(e,r);switch(s){case"referenceHidden":{const i=await n.detectOverflow(r,{...a,elementContext:"reference"}),l=vo(i,o.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:wo(l)}}}case"escaped":{const i=await n.detectOverflow(r,{...a,altBoundary:!0}),l=vo(i,o.floating);return{data:{escapedOffsets:l,escaped:wo(l)}}}default:return{}}}}},rs=new Set(["left","top"]);async function Fc(e,r){const{placement:o,platform:n,elements:s}=e,a=await(n.isRTL==null?void 0:n.isRTL(s.floating)),i=be(o),l=He(o),c=de(o)==="y",d=rs.has(i)?-1:1,p=a&&c?-1:1,m=ge(r,e);let{mainAxis:f,crossAxis:h,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof b=="number"&&(h=l==="end"?b*-1:b),c?{x:h*p,y:f*d}:{x:f*d,y:h*p}}const Vc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var o,n;const{x:s,y:a,placement:i,middlewareData:l}=r,c=await Fc(r,e);return i===((o=l.offset)==null?void 0:o.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:s+c.x,y:a+c.y,data:{...c,placement:i}}}}},Wc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:o,y:n,placement:s,platform:a}=r,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:y=>{let{x:v,y:w}=y;return{x:v,y:w}}},...d}=ge(e,r),p={x:o,y:n},m=await a.detectOverflow(r,d),f=de(be(s)),h=Tr(f);let b=p[h],x=p[f];if(i){const y=h==="y"?"top":"left",v=h==="y"?"bottom":"right",w=b+m[y],j=b-m[v];b=ir(w,b,j)}if(l){const y=f==="y"?"top":"left",v=f==="y"?"bottom":"right",w=x+m[y],j=x-m[v];x=ir(w,x,j)}const g=c.fn({...r,[h]:b,[f]:x});return{...g,data:{x:g.x-o,y:g.y-n,enabled:{[h]:i,[f]:l}}}}}},qc=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:o,y:n,placement:s,rects:a,middlewareData:i}=r,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=ge(e,r),p={x:o,y:n},m=de(s),f=Tr(m);let h=p[f],b=p[m];const x=ge(l,r),g=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const w=f==="y"?"height":"width",j=a.reference[f]-a.floating[w]+g.mainAxis,C=a.reference[f]+a.reference[w]-g.mainAxis;h<j?h=j:h>C&&(h=C)}if(d){var y,v;const w=f==="y"?"width":"height",j=rs.has(be(s)),C=a.reference[m]-a.floating[w]+(j&&((y=i.offset)==null?void 0:y[m])||0)+(j?0:g.crossAxis),k=a.reference[m]+a.reference[w]+(j?0:((v=i.offset)==null?void 0:v[m])||0)-(j?g.crossAxis:0);b<C?b=C:b>k&&(b=k)}return{[f]:h,[m]:b}}}},Kc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var o,n;const{placement:s,rects:a,platform:i,elements:l}=r,{apply:c=()=>{},...d}=ge(e,r),p=await i.detectOverflow(r,d),m=be(s),f=He(s),h=de(s)==="y",{width:b,height:x}=a.floating;let g,y;m==="top"||m==="bottom"?(g=m,y=f===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(y=m,g=f==="end"?"top":"bottom");
2const v=x-p.top-p.bottom,w=b-p.left-p.right,j=Se(x-p[g],v),C=Se(b-p[y],w),k=!r.middlewareData.shift;let P=j,N=C;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(N=w),(n=r.middlewareData.shift)!=null&&n.enabled.y&&(P=v),k&&!f){const $=ee(p.left,0),O=ee(p.right,0),B=ee(p.top,0),F=ee(p.bottom,0);h?N=b-2*($!==0||O!==0?$+O:ee(p.left,p.right)):P=x-2*(B!==0||F!==0?B+F:ee(p.top,p.bottom))}await c({...r,availableWidth:N,availableHeight:P});const L=await i.getDimensions(l.floating);return b!==L.width||x!==L.height?{reset:{rects:!0}}:{}}}};function Dt(){return typeof window<"u"}function Ge(e){return os(e)?(e.nodeName||"").toLowerCase():"#document"}function te(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function pe(e){var r;return(r=(os(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function os(e){return Dt()?e instanceof Node||e instanceof te(e).Node:!1}function se(e){return Dt()?e instanceof Element||e instanceof te(e).Element:!1}function ye(e){return Dt()?e instanceof HTMLElement||e instanceof te(e).HTMLElement:!1}function jo(e){return!Dt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof te(e).ShadowRoot}function ct(e){const{overflow:r,overflowX:o,overflowY:n,display:s}=ae(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+o)&&s!=="inline"&&s!=="contents"}function Uc(e){return/^(table|td|th)$/.test(Ge(e))}function Lt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Hc=/transform|translate|scale|rotate|perspective|filter/,Gc=/paint|layout|strict|content/,Oe=e=>!!e&&e!=="none";let Xt;function Ir(e){const r=se(e)?ae(e):e;return Oe(r.transform)||Oe(r.translate)||Oe(r.scale)||Oe(r.rotate)||Oe(r.perspective)||!Or()&&(Oe(r.backdropFilter)||Oe(r.filter))||Hc.test(r.willChange||"")||Gc.test(r.contain||"")}function Yc(e){let r=Te(e);for(;ye(r)&&!qe(r);){if(Ir(r))return r;if(Lt(r))return null;r=Te(r)}return null}function Or(){return Xt==null&&(Xt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Xt}function qe(e){return/^(html|body|#document)$/.test(Ge(e))}function ae(e){return te(e).getComputedStyle(e)}function Mt(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Te(e){if(Ge(e)==="html")return e;const r=e.assignedSlot||e.parentNode||jo(e)&&e.host||pe(e);return jo(r)?r.host:r}function ns(e){const r=Te(e);return qe(r)?e.ownerDocument?e.ownerDocument.body:e.body:ye(r)&&ct(r)?r:ns(r)}function rt(e,r,o){var n;r===void 0&&(r=[]),o===void 0&&(o=!0);const s=ns(e),a=s===((n=e.ownerDocument)==null?void 0:n.body),i=te(s);if(a){const l=cr(i);return r.concat(i,i.visualViewport||[],ct(s)?s:[],l&&o?rt(l):[])}else return r.concat(s,rt(s,[],o))}function cr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ss(e){const r=ae(e);let o=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const s=ye(e),a=s?e.offsetWidth:o,i=s?e.offsetHeight:n,l=Nt(o)!==a||Nt(n)!==i;return l&&(o=a,n=i),{width:o,height:n,$:l}}function Dr(e){return se(e)?e:e.contextElement}function We(e){const r=Dr(e);if(!ye(r))return ue(1);const o=r.getBoundingClientRect(),{width:n,height:s,$:a}=ss(r);let i=(a?Nt(o.width):o.width)/n,l=(a?Nt(o.height):o.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Xc=ue(0);function as(e){const r=te(e);return!Or()||!r.visualViewport?Xc:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Jc(e,r,o){return r===void 0&&(r=!1),!o||r&&o!==te(e)?!1:r}function $e(e,r,o,n){r===void 0&&(r=!1),o===void 0&&(o=!1);const s=e.getBoundingClientRect(),a=Dr(e);let i=ue(1);r&&(n?se(n)&&(i=We(n)):i=We(e));const l=Jc(a,o,n)?as(a):ue(0);let c=(s.left+l.x)/i.x,d=(s.top+l.y)/i.y,p=s.width/i.x,m=s.height/i.y;if(a){const f=te(a),h=n&&se(n)?te(n):n;let b=f,x=cr(b);for(;x&&n&&h!==b;){const g=We(x),y=x.getBoundingClientRect(),v=ae(x),w=y.left+(x.clientLeft+parseFloat(v.paddingLeft))*g.x,j=y.top+(x.clientTop+parseFloat(v.paddingTop))*g.y;c*=g.x,d*=g.y,p*=g.x,m*=g.y,c+=w,d+=j,b=te(x),x=cr(b)}}return Ct({width:p,height:m,x:c,y:d})}function $t(e,r){const o=Mt(e).scrollLeft;return r?r.left+o:$e(pe(e)).left+o}function is(e,r){const o=e.getBoundingClientRect(),n=o.left+r.scrollLeft-$t(e,o),s=o.top+r.scrollTop;return{x:n,y:s}}function Qc(e){let{elements:r,rect:o,offsetParent:n,strategy:s}=e;const a=s==="fixed",i=pe(n),l=r?Lt(r.floating):!1;if(n===i||l&&a)return o;let c={scrollLeft:0,scrollTop:0},d=ue(1);const p=ue(0),m=ye(n);if((m||!m&&!a)&&((Ge(n)!=="body"||ct(i))&&(c=Mt(n)),m)){const h=$e(n);d=We(n),p.x=h.x+n.clientLeft,p.y=h.y+n.clientTop}const f=i&&!m&&!a?is(i,c):ue(0);return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-c.scrollLeft*d.x+p.x+f.x,y:o.y*d.y-c.scrollTop*d.y+p.y+f.y}}function Zc(e){return Array.from(e.getClientRects())}function ed(e){const r=pe(e),o=Mt(e),n=e.ownerDocument.body,s=ee(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),a=ee(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+$t(e);const l=-o.scrollTop;return ae(n).direction==="rtl"&&(i+=ee(r.clientWidth,n.clientWidth)-s),{width:s,height:a,x:i,y:l}}const No=25;
vendor: 5,048 bytes, line 2
2function td(e,r){const o=te(e),n=pe(e),s=o.visualViewport;let a=n.clientWidth,i=n.clientHeight,l=0,c=0;if(s){a=s.width,i=s.height;const p=Or();(!p||p&&r==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}const d=$t(n);if(d<=0){const p=n.ownerDocument,m=p.body,f=getComputedStyle(m),h=p.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(n.clientWidth-m.clientWidth-h);b<=No&&(a-=b)}else d<=No&&(a+=d);return{width:a,height:i,x:l,y:c}}function rd(e,r){const o=$e(e,!0,r==="fixed"),n=o.top+e.clientTop,s=o.left+e.clientLeft,a=ye(e)?We(e):ue(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,c=s*a.x,d=n*a.y;return{width:i,height:l,x:c,y:d}}function ko(e,r,o){let n;if(r==="viewport")n=td(e,o);else if(r==="document")n=ed(pe(e));else if(se(r))n=rd(r,o);else{const s=as(e);n={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Ct(n)}function ls(e,r){const o=Te(e);return o===r||!se(o)||qe(o)?!1:ae(o).position==="fixed"||ls(o,r)}function od(e,r){const o=r.get(e);if(o)return o;let n=rt(e,[],!1).filter(l=>se(l)&&Ge(l)!=="body"),s=null;const a=ae(e).position==="fixed";let i=a?Te(e):e;for(;se(i)&&!qe(i);){const l=ae(i),c=Ir(i);!c&&l.position==="fixed"&&(s=null),(a?!c&&!s:!c&&l.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||ct(i)&&!c&&ls(e,i))?n=n.filter(p=>p!==i):s=l,i=Te(i)}return r.set(e,n),n}function nd(e){let{element:r,boundary:o,rootBoundary:n,strategy:s}=e;const i=[...o==="clippingAncestors"?Lt(r)?[]:od(r,this._c):[].concat(o),n],l=ko(r,i[0],s);let c=l.top,d=l.right,p=l.bottom,m=l.left;for(let f=1;f<i.length;f++){const h=ko(r,i[f],s);c=ee(h.top,c),d=Se(h.right,d),p=Se(h.bottom,p),m=ee(h.left,m)}return{width:d-m,height:p-c,x:m,y:c}}function sd(e){const{width:r,height:o}=ss(e);return{width:r,height:o}}function ad(e,r,o){const n=ye(r),s=pe(r),a=o==="fixed",i=$e(e,!0,a,r);let l={scrollLeft:0,scrollTop:0};const c=ue(0);function d(){c.x=$t(s)}if(n||!n&&!a)if((Ge(r)!=="body"||ct(s))&&(l=Mt(r)),n){const h=$e(r,!0,a,r);c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}else s&&d();a&&!n&&s&&d();const p=s&&!n&&!a?is(s,l):ue(0),m=i.left+l.scrollLeft-c.x-p.x,f=i.top+l.scrollTop-c.y-p.y;return{x:m,y:f,width:i.width,height:i.height}}function Jt(e){return ae(e).position==="static"}function Co(e,r){if(!ye(e)||ae(e).position==="fixed")return null;if(r)return r(e);let o=e.offsetParent;return pe(e)===o&&(o=o.ownerDocument.body),o}function cs(e,r){const o=te(e);if(Lt(e))return o;if(!ye(e)){let s=Te(e);for(;s&&!qe(s);){if(se(s)&&!Jt(s))return s;s=Te(s)}return o}let n=Co(e,r);for(;n&&Uc(n)&&Jt(n);)n=Co(n,r);return n&&qe(n)&&Jt(n)&&!Ir(n)?o:n||Yc(e)||o}const id=async function(e){const r=this.getOffsetParent||cs,o=this.getDimensions,n=await o(e.floating);return{reference:ad(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ld(e){return ae(e).direction==="rtl"}const cd={convertOffsetParentRelativeRectToViewportRelativeRect:Qc,getDocumentElement:pe,getClippingRect:nd,getOffsetParent:cs,getElementRects:id,getClientRects:Zc,getDimensions:sd,getScale:We,isElement:se,isRTL:ld};function ds(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function dd(e,r){let o=null,n;const s=pe(e);function a(){var l;clearTimeout(n),(l=o)==null||l.disconnect(),o=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:p,top:m,width:f,height:h}=d;if(l||r(),!f||!h)return;const b=gt(m),x=gt(s.clientWidth-(p+f)),g=gt(s.clientHeight-(m+h)),y=gt(p),w={rootMargin:-b+"px "+-x+"px "+-g+"px "+-y+"px",threshold:ee(0,Se(1,c))||1};let j=!0;function C(k){const P=k[0].intersectionRatio;if(P!==c){if(!j)return i();P?i(!1,P):n=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!ds(d,e.getBoundingClientRect())&&i(),j=!1}try{o=new IntersectionObserver(C,{...w,root:s.ownerDocument})}catch{o=new IntersectionObserver(C,w)}o.observe(e)}return i(!0),a}function ud(e,r,o,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Dr(e),p=s||a?[...d?rt(d):[],...r?rt(r):[]]:[];p.forEach(y=>{s&&y.addEventListener("scroll",o,{passive:!0}),a&&y.addEventListener("resize",o)});const m=d&&l?dd(d,o):null;let f=-1,h=null;i&&(h=new ResizeObserver(y=>{let[v]=y;v&&v.target===d&&h&&r&&(h.unobserve(r),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(r)})),o()}),d&&!c&&h.observe(d),r&&h.observe(r));let b,x=c?$e(e):null;c&&g();function g(){const y=$e(e);x&&!ds(x,y)&&o(),x=y,b=requestAnimationFrame(g)}return o(),()=>{var y;p.forEach(v=>{s&&v.removeEventListener("scroll",o),a&&v.removeEventListener("resize",o)}),m?.(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(b)}}const md=Vc,pd=Wc,fd=zc,hd=Kc,xd=Bc,Po=$c,gd=qc,bd=(e,r,o)=>{const n=new Map,s={platform:cd,...o},a={...s.platform,_c:n};return Mc(e,r,{...s,platform:a})};var yd=typeof document<"u",vd=function(){},wt=yd?u.useLayoutEffect:vd;function Pt(e,r){if(e===r)return!0;
vendor: 6,418 bytes, line 2
2if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let o,n,s;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==r.length)return!1;for(n=o;n--!==0;)if(!Pt(e[n],r[n]))return!1;return!0}if(s=Object.keys(e),o=s.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(r,s[n]))return!1;for(n=o;n--!==0;){const a=s[n];if(!(a==="_owner"&&e.$$typeof)&&!Pt(e[a],r[a]))return!1}return!0}return e!==e&&r!==r}function us(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Eo(e,r){const o=us(e);return Math.round(r*o)/o}function Qt(e){const r=u.useRef(e);return wt(()=>{r.current=e}),r}function wd(e){e===void 0&&(e={});const{placement:r="bottom",strategy:o="absolute",middleware:n=[],platform:s,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[p,m]=u.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[f,h]=u.useState(n);Pt(f,n)||h(n);const[b,x]=u.useState(null),[g,y]=u.useState(null),v=u.useCallback(_=>{_!==k.current&&(k.current=_,x(_))},[]),w=u.useCallback(_=>{_!==P.current&&(P.current=_,y(_))},[]),j=a||b,C=i||g,k=u.useRef(null),P=u.useRef(null),N=u.useRef(p),L=c!=null,$=Qt(c),O=Qt(s),B=Qt(d),F=u.useCallback(()=>{if(!k.current||!P.current)return;const _={placement:r,strategy:o,middleware:f};O.current&&(_.platform=O.current),bd(k.current,P.current,_).then(V=>{const T={...V,isPositioned:B.current!==!1};S.current&&!Pt(N.current,T)&&(N.current=T,gr.flushSync(()=>{m(T)}))})},[f,r,o,O,B]);wt(()=>{d===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,m(_=>({..._,isPositioned:!1})))},[d]);const S=u.useRef(!1);wt(()=>(S.current=!0,()=>{S.current=!1}),[]),wt(()=>{if(j&&(k.current=j),C&&(P.current=C),j&&C){if($.current)return $.current(j,C,F);F()}},[j,C,F,$,L]);const z=u.useMemo(()=>({reference:k,floating:P,setReference:v,setFloating:w}),[v,w]),I=u.useMemo(()=>({reference:j,floating:C}),[j,C]),D=u.useMemo(()=>{const _={position:o,left:0,top:0};if(!I.floating)return _;const V=Eo(I.floating,p.x),T=Eo(I.floating,p.y);return l?{..._,transform:"translate("+V+"px, "+T+"px)",...us(I.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:V,top:T}},[o,l,I.floating,p.x,p.y]);return u.useMemo(()=>({...p,update:F,refs:z,elements:I,floatingStyles:D}),[p,F,z,I,D])}const jd=e=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){const{element:n,padding:s}=typeof e=="function"?e(o):e;return n&&r(n)?n.current!=null?Po({element:n.current,padding:s}).fn(o):{}:n?Po({element:n,padding:s}).fn(o):{}}}},Nd=(e,r)=>{const o=md(e);return{name:o.name,fn:o.fn,options:[e,r]}},kd=(e,r)=>{const o=pd(e);return{name:o.name,fn:o.fn,options:[e,r]}},Cd=(e,r)=>({fn:gd(e).fn,options:[e,r]}),Pd=(e,r)=>{const o=fd(e);return{name:o.name,fn:o.fn,options:[e,r]}},Ed=(e,r)=>{const o=hd(e);return{name:o.name,fn:o.fn,options:[e,r]}},Ad=(e,r)=>{const o=xd(e);return{name:o.name,fn:o.fn,options:[e,r]}},Sd=(e,r)=>{const o=jd(e);return{name:o.name,fn:o.fn,options:[e,r]}};var Td="Arrow",ms=u.forwardRef((e,r)=>{const{children:o,width:n=10,height:s=5,...a}=e;return t.jsx(U.svg,{...a,ref:r,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:t.jsx("polygon",{points:"0,0 30,0 15,10"})})});ms.displayName=Td;var Rd=ms;function ps(e){const[r,o]=u.useState(void 0);return me(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let i,l;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,l=d.blockSize}else i=e.offsetWidth,l=e.offsetHeight;o({width:i,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else o(void 0)},[e]),r}var fs="Popper",[hs,xs]=ze(fs),[ch,gs]=hs(fs),bs="PopperAnchor",ys=u.forwardRef((e,r)=>{const{__scopePopper:o,virtualRef:n,...s}=e,a=gs(bs,o),i=u.useRef(null),l=X(r,i),c=u.useRef(null);return u.useEffect(()=>{const d=c.current;c.current=n?.current||i.current,d!==c.current&&a.onAnchorChange(c.current)}),n?null:t.jsx(U.div,{...s,ref:l})});ys.displayName=bs;var Lr="PopperContent",[_d,Id]=hs(Lr),vs=u.forwardRef((e,r)=>{const{__scopePopper:o,side:n="bottom",sideOffset:s=0,align:a="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:b,...x}=e,g=gs(Lr,o),[y,v]=u.useState(null),w=X(r,le=>v(le)),[j,C]=u.useState(null),k=ps(j),P=k?.width??0,N=k?.height??0,L=n+(a!=="center"?"-"+a:""),$=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},O=Array.isArray(d)?d:[d],B=O.length>0,F={padding:$,boundary:O.filter(Dd),altBoundary:B},{refs:S,floatingStyles:z,placement:I,isPositioned:D,middlewareData:_}=wd({strategy:"fixed",placement:L,whileElementsMounted:(...le)=>ud(...le,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[Nd({mainAxis:s+N,alignmentAxis:i}),c&&kd({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Cd():void 0,...F}),c&&Pd({...F}),Ed({...F,apply:({elements:le,rects:Xe,availableWidth:H,availableHeight:ut})=>{const{width:Fe,height:Ve}=Xe.reference,je=le.floating.style;je.setProperty("--radix-popper-available-width",`${H}px`),je.setProperty("--radix-popper-available-height",`${ut}px`),je.setProperty("--radix-popper-anchor-width",`${Fe}px`),je.setProperty("--radix-popper-anchor-height",`${Ve}px`)}}),j&&Sd({element:j,padding:l}),Ld({arrowWidth:P,arrowHeight:N}),f&&Ad({strategy:"referenceHidden",...F})]}),[V,T]=Ns(I),_e=Ae(b);me(()=>{D&&_e?.()},[D,_e]);const ve=_.arrow?.x,he=_.arrow?.y,we=_.arrow?.centerOffset!==0,[J,Q]=u.useState();return me(()=>{y&&Q(window.getComputedStyle(y).zIndex)},[y]),t.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:D?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:t.jsx(_d,{scope:o,placedSide:V,onArrowChange:C,arrowX:ve,arrowY:he,shouldHideArrow:we,children:t.jsx(U.div,{"data-side":V,"data-align":T,...x,ref:w,style:{...x.style,animation:D?void 0:"none"}})})})});vs.displayName=Lr;var ws="PopperArrow",Od={top:"bottom",right:"left",bottom:"top",left:"r
2ight"},js=u.forwardRef(function(r,o){const{__scopePopper:n,...s}=r,a=Id(ws,n),i=Od[a.placedSide];return t.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:t.jsx(Rd,{...s,ref:o,style:{...s.style,display:"block"}})})});js.displayName=ws;function Dd(e){return e!==null}var Ld=e=>({name:"transformOrigin",options:e,fn(r){const{placement:o,rects:n,middlewareData:s}=r,i=s.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,p]=Ns(o),m={start:"0%",center:"50%",end:"100%"}[p],f=(s.arrow?.x??0)+l/2,h=(s.arrow?.y??0)+c/2;let b="",x="";return d==="bottom"?(b=i?m:`${f}px`,x=`${-c}px`):d==="top"?(b=i?m:`${f}px`,x=`${n.floating.height+c}px`):d==="right"?(b=`${-c}px`,x=i?m:`${h}px`):d==="left"&&(b=`${n.floating.width+c}px`,x=i?m:`${h}px`),{data:{x:b,y:x}}}});function Ns(e){const[r,o="center"]=e.split("-");return[r,o]}var Md=ys,$d=vs,zd=js,[zt]=ze("Tooltip",[xs]),Mr=xs(),ks="TooltipProvider",Bd=700,Ao="tooltip.open",[Fd,Cs]=zt(ks),Ps=e=>{const{__scopeTooltip:r,delayDuration:o=Bd,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:a}=e,i=u.useRef(!0),l=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),t.jsx(Fd,{scope:r,isOpenDelayedRef:i,delayDuration:o,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:u.useCallback(d=>{l.current=d},[]),disableHoverableContent:s,children:a})};Ps.displayName=ks;var Es="Tooltip",[dh,dt]=zt(Es),dr="TooltipTrigger",Vd=u.forwardRef((e,r)=>{const{__scopeTooltip:o,...n}=e,s=dt(dr,o),a=Cs(dr,o),i=Mr(o),l=u.useRef(null),c=X(r,l,s.onTriggerChange),d=u.useRef(!1),p=u.useRef(!1),m=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),t.jsx(Md,{asChild:!0,...i,children:t.jsx(U.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:q(e.onPointerMove,f=>{f.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(s.onTriggerEnter(),p.current=!0)}),onPointerLeave:q(e.onPointerLeave,()=>{s.onTriggerLeave(),p.current=!1}),onPointerDown:q(e.onPointerDown,()=>{s.open&&s.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:q(e.onFocus,()=>{d.current||s.onOpen()}),onBlur:q(e.onBlur,s.onClose),onClick:q(e.onClick,s.onClose)})})});Vd.displayName=dr;var $r="TooltipPortal",[Wd,qd]=zt($r,{forceMount:void 0}),As=e=>{const{__scopeTooltip:r,forceMount:o,children:n,container:s}=e,a=dt($r,r);return t.jsx(Wd,{scope:r,forceMount:o,children:t.jsx(at,{present:o||a.open,children:t.jsx(kr,{asChild:!0,container:s,children:n})})})};As.displayName=$r;var Ke="TooltipContent",Ss=u.forwardRef((e,r)=>{const o=qd(Ke,e.__scopeTooltip),{forceMount:n=o.forceMount,side:s="top",...a}=e,i=dt(Ke,e.__scopeTooltip);return t.jsx(at,{present:n||i.open,children:i.disableHoverableContent?t.jsx(Ts,{side:s,...a,ref:r}):t.jsx(Kd,{side:s,...a,ref:r})})}),Kd=u.forwardRef((e,r)=>{const o=dt(Ke,e.__scopeTooltip),n=Cs(Ke,e.__scopeTooltip),s=u.useRef(null),a=X(r,s),[i,l]=u.useState(null),{trigger:c,onClose:d}=o,p=s.current,{onPointerInTransitChange:m}=n,f=u.useCallback(()=>{l(null),m(!1)},[m]),h=u.useCallback((b,x)=>{const g=b.currentTarget,y={x:b.clientX,y:b.clientY},v=Xd(y,g.getBoundingClientRect()),w=Jd(y,v),j=Qd(x.getBoundingClientRect()),C=eu([...w,...j]);l(C),m(!0)},[m]);return u.useEffect(()=>()=>f(),[f]),u.useEffect(()=>{if(c&&p){const b=g=>h(g,p),x=g=>h(g,c);return c.addEventListener("pointerleave",b),p.addEventListener("pointerleave",x),()=>{c.removeEventListener("pointerleave",b),p.removeEventListener("pointerleave",x)}}},[c,p,h,f]),u.useEffect(()=>{if(i){const b=x=>{const g=x.target,y={x:x.clientX,y:x.clientY},v=c?.contains(g)||p?.contains(g),w=!Zd(y,i);v?f():w&&(f(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,p,i,d,f]),t.jsx(Ts,{...e,ref:a})}),[Ud,Hd]=zt(Es,{isInside:!1}),Gd=Wi("TooltipContent"),Ts=u.forwardRef((e,r)=>{const{__scopeTooltip:o,children:n,"aria-label":s,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,c=dt(Ke,o),d=Mr(o),{onClose:p}=c;return u.useEffect(()=>(document.addEventListener(Ao,p),()=>document.removeEventListener(Ao,p)),[p]),u.useEffect(()=>{if(c.trigger){const m=f=>{f.target?.contains(c.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[c.trigger,p]),t.jsx(Nr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:t.jsxs($d,{"data-state":c.stateAttribute,...d,...l,ref:r,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[t.jsx(Gd,{children:n}),t.jsx(Ud,{scope:o,isInside:!0,children:t.jsx(ml,{id:c.contentId,role:"tooltip",children:s||n})})]})})});Ss.displayName=Ke;var Rs="TooltipArrow",Yd=u.forwardRef((e,r)=>{const{__scopeTooltip:o,...n}=e,s=Mr(o);return Hd(Rs,o).isInside?null:t.jsx(zd,{...s,...n,ref:r})});Yd.displayName=Rs;function Xd(e,r){const o=Math.abs(r.top-e.y),n=Math.abs(r.bottom-e.y),s=Math.abs(r.right-e.x),a=Math.abs(r.left-e.x);switch(Math.min(o,n,s,a)){case a:return"left";case s:return"right";case o:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Jd(e,r,o=5){const n=[];
2switch(r){case"top":n.push({x:e.x-o,y:e.y+o},{x:e.x+o,y:e.y+o});break;case"bottom":n.push({x:e.x-o,y:e.y-o},{x:e.x+o,y:e.y-o});break;case"left":n.push({x:e.x+o,y:e.y-o},{x:e.x+o,y:e.y+o});break;case"right":n.push({x:e.x-o,y:e.y-o},{x:e.x-o,y:e.y+o});break}return n}function Qd(e){const{top:r,right:o,bottom:n,left:s}=e;return[{x:s,y:r},{x:o,y:r},{x:o,y:n},{x:s,y:n}]}function Zd(e,r){const{x:o,y:n}=e;let s=!1;for(let a=0,i=r.length-1;a<r.length;i=a++){const l=r[a],c=r[i],d=l.x,p=l.y,m=c.x,f=c.y;p>n!=f>n&&o<(m-d)*(n-p)/(f-p)+d&&(s=!s)}return s}function eu(e){const r=e.slice();return r.sort((o,n)=>o.x<n.x?-1:o.x>n.x?1:o.y<n.y?-1:o.y>n.y?1:0),tu(r)}function tu(e){if(e.length<=1)return e.slice();const r=[];for(let n=0;n<e.length;n++){const s=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(s.y-i.y)>=(a.y-i.y)*(s.x-i.x))r.pop();else break}r.push(s)}r.pop();const o=[];for(let n=e.length-1;n>=0;n--){const s=e[n];for(;o.length>=2;){const a=o[o.length-1],i=o[o.length-2];if((a.x-i.x)*(s.y-i.y)>=(a.y-i.y)*(s.x-i.x))o.pop();else break}o.push(s)}return o.pop(),r.length===1&&o.length===1&&r[0].x===o[0].x&&r[0].y===o[0].y?r:r.concat(o)}var ru=Ps,ou=As,_s=Ss;const nu=ru,su=u.forwardRef(({className:e,sideOffset:r=4,...o},n)=>t.jsx(ou,{children:t.jsx(_s,{ref:n,sideOffset:r,className:re("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...o})}));su.displayName=_s.displayName;const au=new Set([204,205,304]),iu="application/json, application/problem+json";function Is(e){return typeof Request<"u"&&e instanceof Request}function lu(e,r){return r?r.toUpperCase():Is(e)?e.method.toUpperCase():"GET"}function cu(e){return typeof URL<"u"&&e instanceof URL}function du(e){return typeof e=="string"?e:cu(e)?e.toString():e.url}function uu(...e){const r=new Headers;for(const o of e)o&&new Headers(o).forEach((n,s)=>{r.set(s,n)});return r}function Os(e){const r=e.get("content-type");return r?r.split(";",1)[0].trim().toLowerCase():null}function ur(e){return e==="application/json"||!!e?.endsWith("+json")}function Ds(e){return!!(e&&(e.startsWith("text/")||e==="application/xml"||e==="text/xml"||e.endsWith("+xml")||e==="application/x-www-form-urlencoded"))}function Ls(e,r){return!!(r==="HEAD"||au.has(e.status)||e.headers.get("content-length")==="0"||e.body===null)}function Ms(e){return e.charCodeAt(0)===65279?e.slice(1):e}function $s(e){const r=e.trimStart();return r.startsWith("{")||r.startsWith("[")}function Qe(e,r){if(!e||typeof e!="object")return;const o=e[r];if(typeof o!="string")return;const n=o.trim();return n===""?void 0:n}function mu(e,r=300){return e.length>r?`${e.slice(0,r-1)}â¦`:e}function pu(e,r){const o=`HTTP ${e.status} ${e.statusText}`;if(typeof r=="string"){const i=r.trim();return i?`${o}: ${mu(i)}`:o}const n=Qe(r,"title"),s=Qe(r,"detail"),a=Qe(r,"message")??Qe(r,"error_description")??Qe(r,"error");return n&&s?`${o}: ${n} â ${s}`:s?`${o}: ${s}`:a?`${o}: ${a}`:n?`${o}: ${n}`:o}class fu extends Error{name="ApiError";status;statusText;data;headers;response;method;url;constructor(r,o,n){super(pu(r,o)),Object.setPrototypeOf(this,new.target.prototype),this.status=r.status,this.statusText=r.statusText,this.data=o,this.headers=r.headers,this.response=r,this.method=n.method,this.url=r.url||n.url}}class hu extends Error{name="ResponseParseError";status;statusText;headers;response;method;url;rawBody;cause;constructor(r,o,n,s){super(`Failed to parse response from ${s.method} ${r.url||s.url} (${r.status} ${r.statusText}) as JSON`),Object.setPrototypeOf(this,new.target.prototype),this.status=r.status,this.statusText=r.statusText,this.headers=r.headers,this.response=r,this.method=s.method,this.url=r.url||s.url,this.rawBody=o,this.cause=n}}async function xu(e,r){const o=await e.text(),n=Ms(o);if(n.trim()==="")return null;try{return JSON.parse(n)}catch(s){throw new hu(e,o,s,r)}}async function gu(e,r){if(Ls(e,r))return null;const o=Os(e.headers);if(o&&!ur(o)&&!Ds(o))return typeof e.blob=="function"?e.blob():e.text();const n=await e.text(),s=Ms(n);if(s.trim()==="")return null;if(ur(o)||$s(s))try{return JSON.parse(s)}catch{return n}return n}function bu(e){const r=Os(e.headers);return ur(r)?"json":Ds(r)||r==null?"text":"blob"}async function yu(e,r,o){if(Ls(e,o.method))return null;switch(r==="auto"?bu(e):r){case"json":return xu(e,o);case"text":{const s=await e.text();return s===""?null:s}case"blob":if(typeof e.blob!="function")throw new TypeError('Blob responses are not supported in this runtime. Use responseType "json" or "text" instead.');return e.blob()}}async function fe(e,r={}){e=e;const{responseType:o="auto",headers:n,...s}=r,a=lu(e,s.method);if(s.body!=null&&(a==="GET"||a==="HEAD"))throw new TypeError(`customFetch: ${a} requests cannot have a body.`);const i=uu(Is(e)?e.headers:void 0,n);
2typeof s.body=="string"&&!i.has("content-type")&&$s(s.body)&&i.set("content-type","application/json"),o==="json"&&!i.has("accept")&&i.set("accept",iu);const l={method:a,url:du(e)},c=await fetch(e,{...s,method:a,headers:i});if(!c.ok){const d=await gu(c,a);throw new fu(c,d,l)}return await yu(c,o,l)}const vu=()=>"/api/track",wu=async(e,r)=>fe(vu(),{...r,method:"POST",headers:{"Content-Type":"application/json",...r?.headers},body:JSON.stringify(e)}),ju=e=>{const r=["trackPageView"],{mutation:o,request:n}={mutation:{mutationKey:r},request:void 0};return{mutationFn:a=>{const{data:i}=a??{};return wu(i,n)},...o}},Nu=e=>Ue(ju()),ku=()=>"/api/admin/login",Cu=async(e,r)=>fe(ku(),{...r,method:"POST",headers:{"Content-Type":"application/json",...r?.headers},body:JSON.stringify(e)}),Pu=e=>{const r=["adminLogin"],{mutation:o,request:n}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:r}}:{mutation:{mutationKey:r},request:void 0};return{mutationFn:a=>{const{data:i}=a??{};return Cu(i,n)},...o}},uh=e=>Ue(Pu(e)),Eu=()=>"/api/admin/logout",Au=async e=>fe(Eu(),{...e,method:"POST"}),Su=e=>{const r=["adminLogout"],{mutation:o,request:n}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:r}}:{mutation:{mutationKey:r},request:void 0};return{mutationFn:()=>Au(n),...o}},mh=e=>Ue(Su(e)),Tu=()=>"/api/admin/me",Ru=async e=>fe(Tu(),{...e,method:"GET"}),_u=()=>["/api/admin/me"],Iu=e=>{const{query:r,request:o}=e??{};return{queryKey:r?.queryKey??_u(),queryFn:({signal:a})=>Ru({signal:a,...o}),...r}};function ph(e){const r=Iu(e);return{...Tt(r),queryKey:r.queryKey}}const Ou=e=>{const r=new URLSearchParams;Object.entries(e||{}).forEach(([n,s])=>{s!==void 0&&r.append(n,s===null?"null":s.toString())});const o=r.toString();return o.length>0?`/api/admin/stats?${o}`:"/api/admin/stats"},Du=async(e,r)=>fe(Ou(e),{...r,method:"GET"}),Lu=e=>["/api/admin/stats",...e?[e]:[]],Mu=(e,r)=>{const{query:o,request:n}={};return{queryKey:o?.queryKey??Lu(e),queryFn:({signal:i})=>Du(e,{signal:i,...n}),...o}};function fh(e,r){const o=Mu(e);return{...Tt(o),queryKey:o.queryKey}}const $u=e=>{const r=new URLSearchParams;Object.entries(e||{}).forEach(([n,s])=>{s!==void 0&&r.append(n,s===null?"null":s.toString())});const o=r.toString();return o.length>0?`/api/admin/facebook-ads?${o}`:"/api/admin/facebook-ads"},zu=async(e,r)=>fe($u(e),{...r,method:"GET"}),Bu=e=>["/api/admin/facebook-ads",...e?[e]:[]],Fu=(e,r)=>{const{query:o,request:n}={};return{queryKey:o?.queryKey??Bu(e),queryFn:({signal:i})=>zu(e,{signal:i,...n}),...o}};function hh(e,r){const o=Fu(e);return{...Tt(o),queryKey:o.queryKey}}const Vu=()=>"/api/admin/short-links",Wu=async e=>fe(Vu(),{...e,method:"GET"}),qu=()=>["/api/admin/short-links"],Ku=e=>{const{query:r,request:o}={};return{queryKey:r?.queryKey??qu(),queryFn:({signal:a})=>Wu({signal:a,...o}),...r}};function xh(e){const r=Ku();return{...Tt(r),queryKey:r.queryKey}}const Uu=()=>"/api/admin/short-links",Hu=async(e,r)=>fe(Uu(),{...r,method:"POST",headers:{"Content-Type":"application/json",...r?.headers},body:JSON.stringify(e)}),Gu=e=>{const r=["adminCreateShortLink"],{mutation:o,request:n}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:r}}:{mutation:{mutationKey:r},request:void 0};return{mutationFn:a=>{const{data:i}=a??{};return Hu(i,n)},...o}},gh=e=>Ue(Gu(e)),Yu=e=>`/api/admin/short-links/${e}`,Xu=async(e,r)=>fe(Yu(e),{...r,method:"DELETE"}),Ju=e=>{const r=["adminDeleteShortLink"],{mutation:o,request:n}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:r}}:{mutation:{mutationKey:r},request:void 0};return{mutationFn:a=>{const{id:i}=a??{};return Xu(i,n)},...o}},bh=e=>Ue(Ju(e)),Qu=()=>"/api/support",Zu=async(e,r)=>fe(Qu(),{...r,method:"POST",headers:{"Content-Type":"application/json",...r?.headers},body:JSON.stringify(e)}),em=e=>{const r=["sendSupportMessage"],{mutation:o,request:n}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:r}}:{mutation:{mutationKey:r},request:void 0};return{mutationFn:a=>{const{data:i}=a??{};return Zu(i,n)},...o}},yh=e=>
2Ue(em(e)),tm="1703764194223254";let So=!1;function rm(){if(typeof window>"u"||window.location.pathname.startsWith("/admin"))return!1;try{if(localStorage.getItem("ebw_no_track")==="1")return!1}catch{}return!0}function zs(){if(!rm())return!1;if(So)return!0;if(!window.fbq){const e=function(...o){e.callMethod?e.callMethod(...o):e.queue.push(o)};e.push=e,e.loaded=!0,e.version="2.0",e.queue=[],window.fbq=e,window._fbq=e;const r=document.createElement("script");r.async=!0,r.src="https://connect.facebook.net/en_US/fbevents.js",document.head.appendChild(r)}return window.fbq("init",tm),So=!0,!0}function om(){zs()&&window.fbq("track","PageView")}function To(e,r){zs()&&(r?window.fbq("track",e,r):window.fbq("track",e))}const Ro="ebw_visitor_id",Bs="ebw_no_track";function nm(){try{localStorage.setItem(Bs,"1")}catch{}}function sm(){try{return localStorage.getItem(Bs)==="1"}catch{return!1}}function am(){try{let e=localStorage.getItem(Ro);return e||(e=crypto.randomUUID(),localStorage.setItem(Ro,e)),e}catch{return"anonymous"}}function im(){const[e]=vr(),{mutate:r}=Nu();u.useEffect(()=>{if(e.startsWith("/admin")){nm();return}if(sm())return;om();const o=new URLSearchParams(window.location.search);r({data:{path:e,visitorId:am(),referrer:document.referrer||null,utmSource:o.get("utm_source"),utmMedium:o.get("utm_medium"),utmCampaign:o.get("utm_campaign"),utmContent:o.get("utm_content"),utmTerm:o.get("utm_term")}})},[e,r])}var lm=Symbol.for("react.lazy"),Et=St[" use ".trim().toString()];function cm(e){return typeof e=="object"&&e!==null&&"then"in e}function Fs(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===lm&&"_payload"in e&&cm(e._payload)}function dm(e){const r=mm(e),o=u.forwardRef((n,s)=>{let{children:a,...i}=n;Fs(a)&&typeof Et=="function"&&(a=Et(a._payload));const l=u.Children.toArray(a),c=l.find(fm);if(c){const d=c.props.children,p=l.map(m=>m===c?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:m);return t.jsx(r,{...i,ref:s,children:u.isValidElement(d)?u.cloneElement(d,void 0,p):null})}return t.jsx(r,{...i,ref:s,children:a})});return o.displayName=`${e}.Slot`,o}var um=dm("Slot");function mm(e){const r=u.forwardRef((o,n)=>{let{children:s,...a}=o;if(Fs(s)&&typeof Et=="function"&&(s=Et(s._payload)),u.isValidElement(s)){const i=xm(s),l=hm(a,s.props);return s.type!==u.Fragment&&(l.ref=n?wr(n,i):i),u.cloneElement(s,l)}return u.Children.count(s)>1?u.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var pm=Symbol("radix.slottable");function fm(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pm}function hm(e,r){const o={...r};for(const n in r){const s=e[n],a=r[n];/^on[A-Z]/.test(n)?s&&a?o[n]=(...l)=>{const c=a(...l);return s(...l),c}:s&&(o[n]=s):n==="style"?o[n]={...s,...a}:n==="className"&&(o[n]=[s,a].filter(Boolean).join(" "))}return{...e,...o}}function xm(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}const gm=On("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover-elevate active-elevate-2",{variants:{variant:{default:"bg-primary text-primary-foreground border border-primary-border",destructive:"bg-destructive text-destructive-foreground shadow-sm border-destructive-border",outline:" border [border-color:var(--button-outline)] shadow-xs active:shadow-none ",secondary:"border bg-secondary text-secondary-foreground border border-secondary-border ",ghost:"border border-transparent",link:"text-primary underline-offset-4 hover:underline"},size:{default:"min-h-9 px-4 py-2",sm:"min-h-8 rounded-md px-3 text-xs",lg:"min-h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ot=u.forwardRef(({className:e,variant:r,size:o,asChild:n=!1,...s},a)=>{const i=n?um:"button";return t.jsx(i,{className:re(gm({variant:r,size:o,className:e})),ref:a,...s})});ot.displayName="Button";const Vs="/assets/logo-mIdyucgx.png",_o=[{label:"Puzzle Book Creator",href:"/puzzle-book-addon"},{label:"Kids Activity Book",href:"/kids-activity-book"},{label:"Audio Ebook Converter",href:"/audio-ebook"},{label:"Kids Ebook Creator",href:"/kids-ebook-creator"},{label:"Magazine Style Visual Ebooks",href:"/visual-ebook"},{label:"Interactive Flipbook",href:"/flipbook"},{label:"AI Research Engine",href:"/research-tools"},{label:"URL and YouTube to Ebook",href:"/youtube-and-url-conversion"},{label:"MCP Add-On",href:"/mcp-addon"}];function bm({solid:e=!1}){const[r,o]=vr(),[n,s]=u.useState(!1),[a,i]=u.useState(!1),[l,c]=u.useState(!1),d=m=>{if(i(!1),r!=="/"){o("/"),setTimeout(()=>{const h=document.getElementById(m);h&&h.scrollIntoView({behavior:"smooth"})},80);return}const f=document.getElementById(m);f&&f.scrollIntoView({behavior:"smooth"})},p=()=>
2{if(r!=="/"){o("/"),setTimeout(()=>window.scrollTo({top:0,behavior:"smooth"}),60);return}window.scrollTo({top:0,behavior:"smooth"})};return t.jsxs(R.header,{initial:{y:-100},animate:{y:0},className:`${e?"sticky":"fixed"} top-0 left-0 right-0 z-50 transition-all duration-300 bg-slate-950/85 backdrop-blur-xl border-b border-white/10 py-1.5 shadow-lg shadow-black/30`,children:[t.jsxs("div",{className:"container mx-auto px-6 md:px-12 flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center gap-1 cursor-pointer group",onClick:p,"data-testid":"nav-logo",children:[t.jsx("img",{src:Vs,alt:"eBookWriter AI",className:"transition-all duration-300 h-12 w-12 md:h-14 md:w-14"}),t.jsxs("div",{className:"flex flex-col leading-none",children:[t.jsx("span",{className:"font-extrabold tracking-tight transition-all duration-300 bg-gradient-to-r from-white via-indigo-200 to-fuchsia-300 bg-clip-text text-transparent drop-shadow-[0_2px_10px_rgba(0,0,0,0.45)] text-xl md:text-2xl",children:"eBookWriter"}),t.jsx("span",{className:"font-bold uppercase tracking-[0.2em] mt-1 whitespace-nowrap transition-all duration-300 text-fuchsia-200/90 drop-shadow text-[9px]",children:"AI Publishing Engine"})]})]}),t.jsxs("nav",{className:"hidden xl:flex items-center gap-8 text-sm font-semibold transition-colors text-slate-100/90",children:[t.jsx("button",{onClick:()=>d("features"),className:"transition-colors hover:text-white","data-testid":"nav-features",children:"Features"}),t.jsx("button",{onClick:()=>d("showcase"),className:"transition-colors hover:text-white","data-testid":"nav-showcase",children:"Showcase"}),t.jsx("button",{onClick:()=>d("pricing"),className:"transition-colors hover:text-white","data-testid":"nav-pricing",children:"Pricing"}),t.jsx("button",{onClick:()=>d("faq"),className:"transition-colors hover:text-white","data-testid":"nav-faq",children:"FAQ"}),t.jsxs("div",{className:"relative",onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[t.jsxs("button",{className:"flex items-center gap-1 transition-colors hover:text-white","data-testid":"nav-addons","aria-expanded":n,children:["Premium Features",t.jsx(Zt,{className:`w-4 h-4 transition-transform duration-200 ${n?"rotate-180":""}`})]}),t.jsx(et,{children:n&&t.jsx(R.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:.15},className:"absolute left-1/2 -translate-x-1/2 top-full pt-3 w-72",children:t.jsxs("div",{className:"rounded-2xl bg-slate-950/95 backdrop-blur-xl border border-white/10 shadow-2xl shadow-black/50 p-2",children:[_o.map(m=>t.jsx(oe,{href:m.href,className:"block rounded-xl px-3 py-2.5 text-sm font-semibold text-slate-200 hover:bg-white/10 hover:text-white transition-colors","data-testid":`nav-addon-${m.href.replace("/","")}`,children:m.label},m.href)),t.jsx("div",{className:"my-1.5 h-px bg-white/10"}),t.jsx(oe,{href:"/add-ons",className:"block rounded-xl px-3 py-2.5 text-sm font-bold bg-gradient-to-r from-primary/20 to-fuchsia-600/20 text-white hover:from-primary/30 hover:to-fuchsia-600/30 transition-colors","data-testid":"nav-addon-view-all",children:"View all premium features"})]})})})]}),t.jsx(oe,{href:"/support",className:"transition-colors hover:text-white","data-testid":"nav-support",children:"Support"})]}),t.jsxs("div",{className:"flex items-center gap-3 md:gap-4",children:[t.jsx("a",{href:"https://app.ebookwriter.ai/login",target:"_blank",rel:"noopener noreferrer",className:"hidden xl:block text-sm font-semibold transition-colors text-slate-100/90 hover:text-white","data-testid":"nav-login",children:"Log in"}),t.jsx(ot,{onClick:()=>d("pricing"),className:"bg-gradient-to-r from-primary to-fuchsia-600 hover:from-primary/90 hover:to-fuchsia-600/90 text-white rounded-full font-bold transition-all shadow-lg shadow-primary/30 hover:shadow-xl hover:shadow-primary/40 h-9 px-5 text-xs","data-testid":"nav-cta",children:"Get Access"}),t.jsx("button",{onClick:()=>i(m=>!m),className:"xl:hidden inline-flex h-10 w-10 items-center justify-center rounded-xl text-slate-100 hover:bg-white/10 transition-colors","aria-label":a?"Close menu":"Open menu","aria-expanded":a,"data-testid":"nav-mobile-toggle",children:a?t.jsx(Ce,{className:"h-6 w-6"}):t.jsx(_a,{className:"h-6 w-6"})})]})]}),t.jsx(et,{children:a&&t.jsx(R.div,{initial:{opacity:0,height:0}
2,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"xl:hidden overflow-hidden",children:t.jsx("div",{className:"container mx-auto px-6 pb-4 pt-2",children:t.jsxs("div",{className:"rounded-2xl bg-slate-950/95 backdrop-blur-xl border border-white/10 shadow-2xl shadow-black/50 p-2 text-sm font-semibold text-slate-100",children:[t.jsx("button",{onClick:()=>d("features"),className:"block w-full rounded-xl px-3 py-2.5 text-left hover:bg-white/10 transition-colors","data-testid":"nav-mobile-features",children:"Features"}),t.jsx("button",{onClick:()=>d("showcase"),className:"block w-full rounded-xl px-3 py-2.5 text-left hover:bg-white/10 transition-colors","data-testid":"nav-mobile-showcase",children:"Showcase"}),t.jsx("button",{onClick:()=>d("pricing"),className:"block w-full rounded-xl px-3 py-2.5 text-left hover:bg-white/10 transition-colors","data-testid":"nav-mobile-pricing",children:"Pricing"}),t.jsx("button",{onClick:()=>d("faq"),className:"block w-full rounded-xl px-3 py-2.5 text-left hover:bg-white/10 transition-colors","data-testid":"nav-mobile-faq",children:"FAQ"}),t.jsxs("button",{onClick:()=>c(m=>!m),className:"flex w-full items-center justify-between rounded-xl px-3 py-2.5 text-left hover:bg-white/10 transition-colors","aria-expanded":l,"data-testid":"nav-mobile-addons",children:["Premium Features",t.jsx(Zt,{className:`w-4 h-4 transition-transform duration-200 ${l?"rotate-180":""}`})]}),t.jsx(et,{children:l&&t.jsx(R.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.15},className:"overflow-hidden",children:t.jsxs("div",{className:"pl-3",children:[_o.map(m=>t.jsx(oe,{href:m.href,onClick:()=>i(!1),className:"block rounded-xl px-3 py-2 text-[13px] font-medium text-slate-300 hover:bg-white/10 hover:text-white transition-colors","data-testid":`nav-mobile-addon-${m.href.replace("/","")}`,children:m.label},m.href)),t.jsx(oe,{href:"/add-ons",onClick:()=>i(!1),className:"block rounded-xl px-3 py-2 text-[13px] font-bold text-white hover:bg-white/10 transition-colors","data-testid":"nav-mobile-addon-view-all",children:"View all premium features"})]})})}),t.jsx(oe,{href:"/support",onClick:()=>i(!1),className:"block w-full rounded-xl px-3 py-2.5 text-left hover:bg-white/10 transition-colors","data-testid":"nav-mobile-support",children:"Support"}),t.jsx("a",{href:"https://app.ebookwriter.ai/login",target:"_blank",rel:"noopener noreferrer",onClick:()=>i(!1),className:"block w-full rounded-xl px-3 py-2.5 text-left hover:bg-white/10 transition-colors","data-testid":"nav-mobile-login",children:"Log in"})]})})})})]})}const ym="/assets/image_1788525033859-CX32Z5Nj.png",vm="/assets/hero_cosmic-D2dbTfHe.png",wm="/assets/card_speed-BHkZdKUh.webp",jm="/assets/card_money-BHufqn6h.webp",Nm="/assets/card_ai-pdhraiED.webp",km="/assets/cover_airsoft-Bbkofirc.webp",Cm="/assets/cover_boy_dog-UMNsaViN.webp",Pm="/assets/cover_maine_coon-FZAUB9wE.webp",Em="/assets/cover_israel-DrxIOl_6.webp",Am="/assets/cover_ebook_profits-B9Ns1NjA.webp",Sm="/assets/cover_window-C1_6mBTi.webp",Tm=[{src:km,title:"A Beginners Guide to Playing Airsoft",category:"Hobby Guide",url:"https://app.ebookwriter.ai/share/RW6-RBhEKZgQgPvki-4oDg",rotation:-6},{src:Cm,title:"My Best Friend Has Paws",category:"Children's Book",url:"https://app.ebookwriter.ai/share/b6jbbt2KkC7dZVaaFY0v4w",rotation:3},{src:Am,title:"eBook Profits on Autopilot",category:"Business",url:"https://app.ebookwriter.ai/share/eY81xjR_wM-qJTn9EqkOTg",rotation:-2},{src:Sm,title:"The Window That Shouldn't Open",category:"Horror Fiction",url:"https://app.ebookwriter.ai/share/Nxyz6Se7xP-6ONECKjFrJQ",rotation:5},{src:Pm,title:"Raising Maine Coon Cats",category:"Pet Care",url:"https://app.ebookwriter.ai/share/rn3UZiRzkkmemHnu67fvLw",rotation:-3},{src:Em,title:"The Biblical History of Israel",category:"History",url:"https://app.ebookwriter.ai/share/zQAiRTlvOTtrsIdfzq6VDg",rotation:4}],Rm=[{Icon:Pe,top:"12%",left:"6%",size:40,duration:9,delay:0,rotate:-8,color:"text-indigo-500/70"},{Icon:er,top:"22%",left:"88%",size:32,duration:11,delay:1.2,rotate:12,color:"text-fuchsia-500/70"},{Icon:Z,top:"60%",left:"4%",size:28,duration:7,delay:.6,rotate:0,color:"text-amber-500/80"},{Icon:Pe,top:"70%",left:"92%",size:36,duration:10,delay:2,rotate:15,color:"text-violet-500/70"},{Icon:er,top:"45%",left:"94%",size:26,duration:8,delay:.4,rotate:-10,color:"text-cyan-500/70"},{Icon:Z,top:"32%",left:"10%",size:22,duration:6,delay:1.5,rotate:0,color:"text-pink-500/80"},{Icon:Pe,top:"82%",left:"20%",size:30,duration:12,delay:2.5,rotate:-20,color:"text-emerald-500/70"},{Icon:Z,top:"16%",left:"72%",size:24,duration:7,delay:1.8,rotate:0,color:"text-fuchsia-400/80"}],_m=Array.from({length:14},(e,r)=>({top:`${r*37%90+5}%`,left:`${r*53%92+4}%`,size:4+r%4,duration:5+r%5,delay:r%6*.4})),Io="https://app.ebookwriter.ai/share/UXqwHrzxg5NakZCY1zz-yw",Oo="/demo-vi
2deo/playlist.m3u8";function Im(){const e=u.useRef(null),[r,o]=u.useState(!1),[n,s]=u.useState(null);u.useEffect(()=>{const l=e.current;if(!l)return;const c=l;let d=!1,p=null;async function m(){if(c.canPlayType("application/vnd.apple.mpegurl")){c.src=Oo;return}const{default:f}=await K(async()=>{const{default:b}=await import("./hls-WrVSMb3K.js");return{default:b}},[]);if(d)return;if(!f.isSupported()){s("Your browser does not support this video stream.");return}const h=new f({backBufferLength:30,maxBufferLength:30});p=h,h.loadSource(Oo),h.attachMedia(c),h.on(f.Events.ERROR,(b,x)=>{if(x.fatal){if(x.type===f.ErrorTypes.NETWORK_ERROR){h.startLoad();return}if(x.type===f.ErrorTypes.MEDIA_ERROR){h.recoverMediaError();return}s("The demo video could not be loaded. Please refresh and try again."),h.destroy()}})}return m(),()=>{d=!0,p?.destroy()}},[]);function a(){const l=e.current;l&&(l.currentTime=0,l.load(),o(!1))}function i(){const l=e.current;l&&l.play().catch(()=>{s("The demo video could not start. Please try again.")})}return t.jsxs("section",{className:"relative bg-slate-950 pt-36 pb-20 md:pt-52 md:pb-32 overflow-hidden",children:[t.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url(${vm})`,backgroundSize:"contain",backgroundPosition:"center top",backgroundRepeat:"no-repeat"}}),t.jsx("div",{className:"absolute inset-0 bg-slate-950/68 pointer-events-none"}),t.jsx(R.div,{className:"absolute top-32 left-1/4 w-[500px] h-[500px] bg-primary/40 blur-[140px] rounded-full pointer-events-none",animate:{x:[0,60,-40,0],y:[0,-40,60,0],scale:[1,1.15,.95,1]},transition:{duration:18,repeat:1/0,ease:"easeInOut"}}),t.jsx(R.div,{className:"absolute top-20 right-1/4 w-[400px] h-[400px] bg-fuchsia-400/35 blur-[120px] rounded-full pointer-events-none",animate:{x:[0,-60,40,0],y:[0,60,-40,0],scale:[1,1.1,1.05,1]},transition:{duration:22,repeat:1/0,ease:"easeInOut"}}),t.jsx(R.div,{className:"absolute bottom-40 left-1/3 w-[400px] h-[400px] bg-amber-300/35 blur-[140px] rounded-full pointer-events-none",animate:{x:[0,80,-30,0],y:[0,30,-50,0],scale:[1,.9,1.2,1]},transition:{duration:24,repeat:1/0,ease:"easeInOut"}}),t.jsx(R.div,{className:"absolute top-1/2 right-1/3 w-[350px] h-[350px] bg-cyan-400/25 blur-[120px] rounded-full pointer-events-none",animate:{x:[0,-50,30,0],y:[0,40,-60,0],scale:[1,1.2,.9,1]},transition:{duration:20,repeat:1/0,ease:"easeInOut"}}),t.jsxs("div",{className:"absolute inset-0 pointer-events-none overflow-hidden",children:[Rm.map((l,c)=>t.jsx(R.div,{className:`absolute ${l.color} drop-shadow-md`,style:{top:l.top,left:l.left},initial:{opacity:0}
2,animate:{y:[0,-28,12,0],x:[0,14,-10,0],rotate:[l.rotate,l.rotate+18,l.rotate-12,l.rotate],opacity:[.6,.95,.7,.6]},transition:{duration:l.duration,delay:l.delay,repeat:1/0,ease:"easeInOut"},children:t.jsx("span",{style:{display:"inline-block",width:l.size,height:l.size},children:t.jsx(l.Icon,{className:"w-full h-full"})})},c)),_m.map((l,c)=>t.jsx(R.div,{className:"absolute rounded-full bg-gradient-to-br from-indigo-400 to-fuchsia-400",style:{top:l.top,left:l.left,width:`${l.size}px`,height:`${l.size}px`,filter:"blur(0.5px)"},initial:{opacity:0},animate:{y:[0,-40,0],opacity:[0,.85,0],scale:[.6,1.2,.6]},transition:{duration:l.duration,delay:l.delay,repeat:1/0,ease:"easeInOut"}},`p-${c}`))]}),t.jsxs("div",{className:"container mx-auto px-6 md:px-12 relative z-10",children:[t.jsx("div",{className:"max-w-5xl mx-auto text-center",children:t.jsxs(R.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[t.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-white/25 bg-white/10 backdrop-blur-md px-5 py-2 text-xs font-bold mb-8 shadow-lg shadow-black/20",children:[t.jsxs("span",{className:"relative flex h-2 w-2",children:[t.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-fuchsia-300 opacity-75"}),t.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-fuchsia-300"})]}),t.jsx("span",{className:"bg-gradient-to-r from-indigo-200 via-fuchsia-200 to-amber-200 bg-clip-text text-transparent uppercase tracking-wider",children:"New: Now powered by GPT Image V2"})]}),t.jsxs("h1",{className:"text-4xl md:text-6xl font-extrabold leading-[1.05] tracking-[-0.03em] text-white mb-6 drop-shadow-[0_2px_20px_rgba(0,0,0,0.45)]",children:["Create"," ",t.jsxs("span",{className:"relative inline-block",children:[t.jsx("span",{className:"relative bg-gradient-to-r from-indigo-300 via-fuchsia-300 to-amber-300 bg-clip-text text-transparent",children:"Profitable"}),t.jsxs("svg",{className:"absolute -bottom-2 left-0 w-full",viewBox:"0 0 300 12",fill:"none",preserveAspectRatio:"none",style:{height:"10px"},children:[t.jsx("path",{d:"M2 8 Q 75 2 150 6 T 298 4",stroke:"url(#underline)",strokeWidth:"4",strokeLinecap:"round",fill:"none"}),t.jsx("defs",{children:t.jsxs("linearGradient",{id:"underline",x1:"0",y1:"0",x2:"1",y2:"0",children:[t.jsx("stop",{offset:"0%",stopColor:"#A5B4FC"}),t.jsx("stop",{offset:"50%",stopColor:"#F0ABFC"}),t.jsx("stop",{offset:"100%",stopColor:"#FCD34D"})]})})]})]})," ","eBooks On Demand. No Writing Required."]}),t.jsx("div",{className:"mb-10 flex justify-center",children:t.jsx("p",{className:"inline-block text-base md:text-lg text-white max-w-2xl leading-relaxed font-medium rounded-2xl bg-slate-950/55 backdrop-blur-md border border-white/10 px-6 py-4 shadow-xl shadow-black/30",children:"The fastest way to generate fully formatted, highly structured ebooks. No ghostwriters, no formatters, no waiting."})}),t.jsx("div",{className:"mb-8 flex justify-center",children:t.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full bg-emerald-500/15 border border-emerald-400/40 backdrop-blur-md px-5 py-2.5 text-sm font-bold text-emerald-200 shadow-lg shadow-emerald-500/10","data-testid":"hero-no-api-key-badge",children:[t.jsx(Bo,{className:"w-4 h-4 text-emerald-300","aria-hidden":"true"}),"No API keys needed. We handle all the AI for you."]})}),t.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-6 mb-14 text-sm",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("div",{className:"flex","aria-hidden":"true",children:[1,2,3,4,5].map(l=>t.jsx(De,{className:"w-4 h-4 fill-amber-300 text-amber-300"},l))}),t.jsx("span",{className:"font-bold text-white",children:"4.9/5"}),t.jsx("span",{className:"text-slate-300",children:"from 2,400+ creators"})]}),t.jsx("div",{className:"hidden sm:block w-px h-6 bg-white/20"}),t.jsxs("div",{className:"flex items-center gap-2 text-slate-300",children:[t.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse","aria-hidden":"true"}),t.jsx("span",{className:"font-semibold",children:"17,000+ books published"})]})]})]})}),t.jsxs(R.div,{initial:{opacity:0,y:28}
2,animate:{opacity:1,y:0},transition:{duration:.75,delay:.35},className:"relative max-w-5xl mx-auto mb-14",children:[t.jsxs("div",{className:"rounded-[28px] border border-white/15 bg-slate-900 p-2 shadow-[0_34px_100px_-34px_rgba(124,58,237,0.75)] md:rounded-[34px] md:p-3",children:[t.jsxs("div",{className:"flex items-center justify-between gap-4 px-3 py-2.5 md:px-4",children:[t.jsxs("div",{className:"flex items-center gap-2","aria-hidden":"true",children:[t.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-rose-400"}),t.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-amber-300"}),t.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-emerald-400"})]}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center justify-center gap-2 px-1 text-xs font-bold leading-tight text-white sm:text-sm md:text-base",children:[t.jsx(Ur,{className:"h-4 w-4 flex-none text-violet-300","aria-hidden":"true"}),t.jsx("span",{className:"text-center",children:"From an idea to a published e-book in under 3 hours. Press play to see the full video."})]}),t.jsx("span",{className:"hidden text-xs font-bold uppercase tracking-[0.16em] text-slate-500 sm:block",children:"Demo"})]}),t.jsxs("div",{className:"relative overflow-hidden rounded-[20px] border border-white/10 bg-black md:rounded-[25px]",children:[t.jsx("video",{ref:e,className:"aspect-video w-full bg-black object-contain",controls:!0,playsInline:!0,preload:"metadata",poster:ym,onPlay:()=>{s(null),o(!0)},onPause:()=>o(!1),onEnded:a,onError:()=>s("The demo video could not be loaded. Please refresh and try again."),"data-testid":"video-product-demo","aria-label":"eBookWriter AI product demonstration",children:"Your browser does not support embedded video playback."}),n&&t.jsx("p",{className:"absolute inset-x-4 bottom-4 rounded-lg bg-rose-950/90 px-4 py-3 text-center text-sm font-semibold text-rose-100",role:"alert",children:n}),t.jsx(et,{children:!r&&t.jsx(R.div,{initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"absolute inset-0 bg-black/45 pointer-events-none"},"scrim")}),t.jsx(et,{children:!r&&t.jsx(R.button,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.25},onClick:i,className:"absolute inset-0 flex items-center justify-center","aria-label":"Play demo video",style:{background:"transparent"},children:t.jsxs("span",{className:"relative flex items-center justify-center",children:[t.jsx("span",{className:"absolute inline-flex h-24 w-24 rounded-full bg-violet-500/30 animate-ping sm:h-28 sm:w-28"}),t.jsx("span",{className:"absolute inline-flex h-16 w-16 rounded-full bg-violet-500/20 sm:h-20 sm:w-20"}),t.jsx("span",{className:"relative flex h-16 w-16 items-center justify-center rounded-full bg-violet-500 shadow-[0_0_60px_rgba(139,92,246,0.7)] ring-4 ring-white/30 transition-transform hover:scale-110 sm:h-20 sm:w-20",children:t.jsx(Ia,{className:"h-7 w-7 translate-x-0.5 fill-white text-white sm:h-8 sm:w-8","aria-hidden":"true"})})]})},"play-overlay")})]})]}),t.jsx("div",{className:"mt-5 flex justify-center",children:t.jsxs("a",{href:Io,target:"ebookwriter-interactive-demo",rel:"noopener noreferrer","data-testid":"link-open-interactive-demo-hero",onClick:l=>{l.preventDefault(),window.open(Io,"ebookwriter-interactive-demo","popup=yes,width=1280,height=820,noopener,noreferrer")},className:"group inline-flex items-center gap-3 rounded-xl border border-violet-300/50 bg-violet-400 px-5 py-3 text-sm font-extrabold text-slate-950 shadow-[0_18px_44px_-20px_rgba(167,139,250,0.9)] transition hover:bg-violet-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-slate-950 md:px-6 md:text-base","aria-label":"Open the interactive eBookWriter demo in a popup window",children:[t.jsx(Ur,{className:"h-5 w-5","aria-hidden":"true"}),t.jsx("span",{children:"Open the interactive ebook demo"}),t.jsx(Oa,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5","aria-hidden":"true"})]})})]}),t.jsxs(R.div,{initial:{opacity:0,y:60},animate:{opacity:1,y:0},transition:{duration:.9,delay:.4},className:"relative max-w-6xl mx-auto mb-12",children:[t.jsx("div",{className:"absolute inset-0 -z-10 bg-gradient-to-r from-primary/30 via-fuchsia-500/30 to-amber-400/30 blur-[100px] rounded-[100px] opacity-70"}),t.jsxs("div",{className:"rounded-[28px] border border-white/60 bg-white/95 backdrop-blur p-6 md:p-10 shadow-2xl shadow-primary/20 ring-1 ring-black/5",children:[t.jsxs("div",{className:"flex items-center justify-between mb-6 flex-wrap gap-3",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("div",{className:"flex -space-x-1.5",children:[0,1,2].map(l=>t.jsx("div",{className:`w-6 h-6 rounded-full border-2 border-white shadow ${["bg-gradient-to-br from-amber-400 to-orange-500","bg-gradient-to-br from-primary to-fuchsia-600","bg-gradient-to-br from-emerald-400 to-teal-600"][l]}`},l))}),t.jsx("span",{className:"text-xs font-bold tracking-[0.15em] text-slate-700 uppercase",children:"Real ebooks. Real creators."})]}),t.jsxs(R.div,{animate:{scale:[1,1.06,1]},transition:{duration:1.6,repeat:1/0,ease:"easeInOut"},className:"flex items-center gap-2 px-4 py-2 rounded-full bg-gradient-to-r from-emerald-500 to-teal-500 shadow-lg shadow-emerald-500/40 ring-2 ring-emerald-300",children:[t.jsx(Da,{className:"w-4 h-4 text-white","aria-hidden":"true"}),t.jsx("span",{className:"text-xs md:text-sm font-extrabold tracking-[0.1em] text-white uppercase",children:"Live examples · Click to read"})]})]}),t.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-4 md:gap-4",children:Tm.map((l,c)=>t.jsxs(R.a,{href:l.url,target:"_blank",rel:"noopener noreferrer","data-testid":`hero-cover-${c}`,initial:{opacity:0,y:20,rotate:l.rotation},animate:{opacity:1,y:0,rotate:l.rotation},transition:{duration:.6,delay:.5+c*.08},whileHover:{y:-8,rotate:0,scale:1.04},className:"group relative block aspect-[2/3] rounded-xl overflow-hidden shadow-xl shadow-slate-900/30 ring-1 ring-black/10 bg-slate-100",children:[t.jsx("img",{src:l.src,alt:l.title,loading:"lazy",className:"w-full h-full object-cover"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-950/85 via-slate-950/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),t.jsxs("div",{className:"absolute inset-x-0 bottom-0 p-3 translate-y-2 group-hover:translate-y-0 opacity-0 group-hover:opacity-100 transition-all duration-300",children:[t.jsx("div",{className:"text-[10px] font-extrabold tracking-[0.15em] text-amber-300 uppercase mb-1",children:l.category}),t.jsx("div",{className:"text-xs font-bold text-white leading-tight mb-2 line-clamp-2",children:l.title}),t.jsxs("div",{className:"inline-flex items-center gap-1 px-2 py-1 rounded-full bg-white text-[10px] font-extrabold text-slate-900 uppercase tracking-wider shadow",children:["Read Live ",t.jsx(Fo,{className:"w-3 h-3",strokeWidth:3})]})]})]},c))}),t.jsxs("div",{className:"mt-6 flex items-center justify-center gap-6 flex-wrap text-xs font-semibold text-slate-600",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Pe,{className:"w-3.5 h-3.5 text-primary"})," 6 genres shown"]}),t.jsx("div",{className:"hidden sm:block w-px h-4 bg-slate-200"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Z,{className:"w-3.5 h-3.5 text-fuchsia-500"})," Each generated end to end by AI"]}),t.jsx("div",{className:"hidden sm:block w-px h-4 bg-slate-200"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(De,{className:"w-3.5 h-3.5 text-amber-500 fill-amber-500"})," Cover, layout, content - all AI"]})]})]}),t.jsx(R.div,{initial:{opacity:0,y:10}
2,animate:{opacity:1,y:0},transition:{delay:.9},className:"absolute -top-6 -left-6 hidden md:block bg-white rounded-2xl shadow-2xl border border-border p-4 max-w-[220px] rotate-[-4deg]",children:t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-emerald-400 to-teal-600 flex items-center justify-center",children:t.jsx(Ee,{className:"w-5 h-5 text-white"})}),t.jsxs("div",{children:[t.jsx("div",{className:"text-lg font-extrabold text-foreground leading-none",children:"+$2,847"}),t.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted-foreground mt-1",children:"this month"})]})]})}),t.jsx(R.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:1.1},className:"absolute -bottom-6 -right-6 hidden md:block bg-white rounded-2xl shadow-2xl border border-border p-4 max-w-[260px] rotate-[3deg]",children:t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-primary to-fuchsia-600 flex items-center justify-center",children:t.jsx(Pe,{className:"w-5 h-5 text-white"})}),t.jsxs("div",{children:[t.jsx("div",{className:"text-sm font-bold text-foreground leading-tight",children:"6 published examples"}),t.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wider text-emerald-600 mt-1",children:"Click any cover · Read free"})]})]})})]}),t.jsx(R.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,delay:.5},className:"grid grid-cols-1 sm:grid-cols-3 gap-4 max-w-4xl mx-auto",children:[{icon:Le,label:"Speed",value:"Fast",color:"from-amber-400 to-orange-500",bg:wm},{icon:Ee,label:"Avg royalty",value:"$2k/mo",color:"from-emerald-400 to-teal-600",bg:jm},{icon:De,label:"AI models",value:"6+",color:"from-pink-500 to-rose-600",bg:Nm}].map((l,c)=>t.jsxs(R.div,{whileHover:{y:-4},className:"relative rounded-2xl bg-white border border-white/60 shadow-lg shadow-primary/5 overflow-hidden",children:[t.jsxs("div",{className:"relative h-24 w-full overflow-hidden",children:[t.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url(${l.bg})`,backgroundSize:"cover",backgroundPosition:"center"}}),t.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${l.color} opacity-25 mix-blend-multiply`}),t.jsx("div",{className:"absolute inset-x-0 bottom-0 h-12 bg-gradient-to-t from-white to-transparent"}),t.jsx("div",{className:`absolute top-3 left-3 w-10 h-10 rounded-xl bg-gradient-to-br ${l.color} flex items-center justify-center shadow-lg ring-2 ring-white/80`,children:t.jsx(l.icon,{className:"w-5 h-5 text-white","aria-hidden":"true"})})]}),t.jsxs("div",{className:"px-5 pb-5 pt-2 bg-white",children:[t.jsx("div",{className:"text-2xl md:text-3xl font-extrabold text-foreground tracking-tight",children:l.value}),t.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mt-1",children:l.label})]})]},c))})]})]})}const Om=[{name:"GPT 5",sub:"OpenAI",role:"Chapter Engine",description:"Long form narrative writing, story arcs, and chapter expansion with bestseller pacing and tone.",usedFor:"Drafts every chapter",gradient:"from-emerald-400 via-teal-500 to-cyan-600",bg:"from-emerald-50 via-teal-50/60 to-white",border:"border-emerald-200/70",glow:"bg-emerald-400/30",icon:t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",className:"w-9 h-9 text-white",children:t.jsx("path",{d:"M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073z",fill:"currentColor"})})},{name:"GPT Image V2",sub:"OpenAI",role:"Cover Studio",description:"Photorealistic ebook covers, character portraits, and editorial illustrations with consistent style.",usedFor:"KDP ready covers",gradient:"from-violet-500 via-purple-500 to-fuchsia-600",bg:"from-violet-50 via-fuchsia-50/60 to-white",border:"border-violet-200/70",glow:"bg-violet-400/30",icon:t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",className:"w-9 h-9 text-white",children:[t.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"3",stroke:"currentColor",strokeWidth:"2"}
2),t.jsx("circle",{cx:"9",cy:"9",r:"2",fill:"currentColor"}),t.jsx("path",{d:"M21 15l-5-5L5 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},{name:"Gemini 2.5 Pro",sub:"Google",role:"Research Brain",description:"Real time research, fact checking, source synthesis, and deep outline expansion across any niche.",usedFor:"Outlines and facts",gradient:"from-blue-500 via-indigo-500 to-purple-600",bg:"from-blue-50 via-indigo-50/60 to-white",border:"border-blue-200/70",glow:"bg-blue-400/30",icon:t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",className:"w-9 h-9 text-white",children:t.jsx("path",{d:"M12 2 L14 10 L22 12 L14 14 L12 22 L10 14 L2 12 L10 10 Z",fill:"currentColor"})})},{name:"Claude Sonnet 4",sub:"Anthropic",role:"Editor in Chief",description:"Editorial polish, tone consistency, fact alignment, and a final quality pass that catches every rough edge.",usedFor:"Final polish pass",gradient:"from-orange-400 via-amber-500 to-red-500",bg:"from-orange-50 via-amber-50/60 to-white",border:"border-orange-200/70",glow:"bg-orange-400/30",icon:t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",className:"w-9 h-9 text-white",children:t.jsx("path",{d:"M6 4 L10 4 L14 12 L18 4 L18 20 L14 20 L14 14 L10 20 L6 20 Z",fill:"currentColor",opacity:"0.95"})})},{name:"DALL E 3",sub:"OpenAI",role:"Cover Variants",description:"Stylized cover alternatives, marketing graphics, and social mockups so you can A B test before launch.",usedFor:"Marketing assets",gradient:"from-pink-500 via-rose-500 to-red-500",bg:"from-pink-50 via-rose-50/60 to-white",border:"border-pink-200/70",glow:"bg-pink-400/30",icon:t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",className:"w-9 h-9 text-white",children:[t.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),t.jsx("path",{d:"M12 3 C 7 3 7 21 12 21 C 17 21 17 3 12 3 Z",stroke:"currentColor",strokeWidth:"2",fill:"none"}),t.jsx("path",{d:"M3 12 L21 12",stroke:"currentColor",strokeWidth:"2"})]})},{name:"Nano Banana",sub:"Google",role:"Live Image Edits",description:"Lightning fast in context image edits, character consistency, and one click revisions of any visual.",usedFor:"Iterations in seconds",gradient:"from-yellow-400 via-amber-400 to-orange-500",bg:"from-yellow-50 via-amber-50/60 to-white",border:"border-yellow-200/70",glow:"bg-yellow-400/30",icon:t.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",className:"w-9 h-9 text-white",children:[t.jsx("path",{d:"M5 17 C 5 8 12 4 19 4 C 18 12 13 19 5 19 Z",fill:"currentColor"}),t.jsx("path",{d:"M19 4 L21 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}];function Dm(){return t.jsxs("section",{className:"py-20 md:py-28 relative overflow-hidden bg-gradient-to-b from-white via-slate-50/60 to-white",children:[t.jsx("div",{className:"absolute top-0 left-1/4 w-[600px] h-[400px] bg-gradient-to-br from-primary/10 via-fuchsia-300/10 to-transparent blur-3xl rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute bottom-0 right-1/4 w-[500px] h-[400px] bg-gradient-to-br from-amber-200/15 via-pink-200/10 to-transparent blur-3xl rounded-full pointer-events-none"}),t.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-7xl relative z-10",children:[t.jsxs("div",{className:"text-center mb-14",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-primary/20 bg-primary/5 backdrop-blur px-5 py-2 text-xs font-bold uppercase tracking-[0.2em] text-primary mb-5",children:[t.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary animate-pulse"}),"Best in class AI stack"]}),t.jsxs("h2",{className:"text-4xl md:text-5xl font-extrabold tracking-tight mb-4",children:["Six Elite Models."," ",t.jsx("span",{className:"bg-gradient-to-r from-primary via-fuchsia-600 to-amber-500 bg-clip-text text-transparent",children:"One eBook Engine."})]}),t.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Every chapter routes to the right model so your ebooks read like a bestseller and look like a magazine."})]}),t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5 md:gap-6",children:Om.map((e,r)=>t.jsxs(R.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.06,duration:.5},whileHover:{y:-6},className:`group relative rounded-3xl bg-gradient-to-br ${e.bg} border ${e.border} p-7 md:p-8 overflow-hidden shadow-sm hover:shadow-2xl transition-shadow duration-500`,"data-testid":`model-${e.name.toLowerCase().replace(/\s/g,"")}`,children:[t.jsx("div",{className:`absolute -top-16 -right-16 w-48 h-48 ${e.glow} blur-3xl rounded-full group-hover:scale-125 transition-transform duration-700`}),t.jsx("div",{className:`absolute -bottom-20 -left-20 w-40 h-40 ${e.glow} opacity-50 blur-3xl rounded-full`}),t.jsx("div",{className:"absolute inset-0 opacity-[0.04]",style:{backgroundImage:"radial-gradient(circle at 30% 40%, currentColor 1px, transparent 1px)",backgroundSize:"24px 24px"}}),t.jsxs("div",{className:"relative flex items-start justify-between mb-5",children:[t.jsx("div",{className:`w-16 h-16 rounded-2xl bg-gradient-to-br ${e.gradient} flex items-center justify-center shadow-xl shadow-slate-900/15 ring-4 ring-white/80`,children:e.icon}),t.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-white/90 backdrop-blur border border-slate-200 shadow-sm",children:[t.jsx("span",{className:`w-1.5 h-1.5 rounded-full bg-gradient-to-br ${e.gradient}`}),t.jsx("span",{className:"text-[10px] font-extrabold tracking-[0.15em] text-slate-700 uppercase",children:e.sub})]})]}),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:`inline-block text-[10px] font-extrabold tracking-[0.2em] uppercase bg-gradient-to-r ${e.gradient} bg-clip-text text-transparent mb-1.5`,children:e.role}),t.jsx("h3",{className:"font-extrabold text-2xl text-slate-900 leading-tight mb-3 tracking-tight",children:e.name}),t.jsx("p",{className:"text-[15px] text-slate-600 leading-relaxed mb-5 min-h-[60
2px]",children:e.description}),t.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-slate-200/80",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("div",{className:`w-8 h-8 rounded-lg bg-gradient-to-br ${e.gradient} flex items-center justify-center shadow-md`,children:t.jsx(Rt,{className:"w-4 h-4 text-white",strokeWidth:3})}),t.jsx("span",{className:"text-xs font-bold text-slate-700 uppercase tracking-wider",children:e.usedFor})]}),t.jsxs("span",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-[0.15em]",children:["0",r+1]})]})]})]},r))}),t.jsxs("div",{className:"mt-12 flex items-center justify-center gap-3 flex-wrap",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-white border border-slate-200 shadow-sm",children:[t.jsx("div",{className:"flex -space-x-1",children:["from-emerald-400 to-cyan-500","from-violet-500 to-fuchsia-600","from-blue-500 to-indigo-600","from-orange-400 to-red-500","from-pink-500 to-rose-500","from-yellow-400 to-orange-500"].map((e,r)=>t.jsx("div",{className:`w-5 h-5 rounded-full bg-gradient-to-br ${e} border-2 border-white`},r))}),t.jsx("span",{className:"text-xs font-bold text-slate-700",children:"Routed automatically. Zero config."})]}),t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-emerald-50 border border-emerald-200 text-emerald-700",children:[t.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"}),t.jsx("span",{className:"text-xs font-extrabold uppercase tracking-wider",children:"All included"})]})]})]})]})}const Lm="/assets/addon_bg_audio-CCp5UfvP.webp",Mm="/assets/addon_bg_kids-Bw3Y_5iB.webp",$m="/assets/addon_bg_visual-DUuc28sY.webp",zm="/assets/addon_bg_flipbook-B04_8wEL.webp",Bm="/assets/addon_bg_research-Qezw_6Ie.webp",Fm="/assets/addon_bg_youtube-Dy4dHMF9.webp",Vm=[{Icon:Ma,eyebrow:"Audio ebooks",title:"Audio Ebook Converter",pitch:"Turn any ebook into a fully narrated audiobook with one click using ultra realistic OpenAI voices.",accent:"from-indigo-500 via-violet-500 to-fuchsia-500",iconBg:"from-indigo-500 to-violet-600",glow:"shadow-indigo-500/30",bg:Lm},{Icon:Pe,eyebrow:"Kids ebook",title:"Kids Ebook Creator",pitch:"Generate beautifully illustrated children's storybooks from a single idea, ready for KDP or gifting.",accent:"from-amber-500 via-orange-500 to-fuchsia-600",iconBg:"from-amber-500 to-orange-600",glow:"shadow-amber-500/30",bg:Mm},{Icon:$a,eyebrow:"Visual ebooks",title:"Magazine Style Visual Ebooks",pitch:"Ship magazine grade layouts with infographics, 3D illustrations, and editorial typography on every page.",accent:"from-fuchsia-500 via-pink-500 to-rose-500",iconBg:"from-fuchsia-500 to-pink-600",glow:"shadow-fuchsia-500/30",bg:$m},{Icon:za,eyebrow:"Shareable flipbook",title:"Interactive Flipbook",pitch:"Turn your ebook into a beautiful page flipping experience you can share with a single link.",accent:"from-emerald-500 via-teal-500 to-cyan-500",iconBg:"from-emerald-500 to-teal-600",glow:"shadow-emerald-500/30",bg:zm},{Icon:Ba,eyebrow:"Research tools",title:"AI Research Engine",pitch:"Pull live data, statistics, and citations into your ebooks to make every chapter sharper and more credible.",accent:"from-sky-500 via-indigo-500 to-violet-500",iconBg:"from-sky-500 to-indigo-600",glow:"shadow-sky-500/30",bg:Bm},{Icon:Fa,eyebrow:"URL and YouTube",title:"URL and YouTube to Ebook",pitch:"Drop in any article URL or YouTube video and instantly convert it into a polished ebook chapter.",accent:"from-rose-500 via-red-500 to-orange-500",iconBg:"from-rose-500 to-red-600",glow:"shadow-rose-500/30",bg:Fm}];function Wm({addon:e,index:r}){const{Icon:o}=e;return t.jsxs(R.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.5,delay:r*.05},"data-testid":`home-addon-card-${r}`,className:"group relative flex flex-col h-full rounded-3xl bg-slate-950/60 backdrop-blur-sm border border-white/10 p-6 md:p-7 hover:border-white/25 hover:-translate-y-1 transition-all duration-500 overflow-hidden",children:[t.jsx("div",{className:"absolute inset-0 bg-cover bg-center opacity-70 group-hover:opacity-90 transition-opacity duration-700 pointer-events-none",style:{backgroundImage:`url(${e.bg})`}}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-950/95 via-slate-950/55 to-slate-950/25 pointer-events-none"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-slate-950/70 via-trans
2parent to-slate-950/40 pointer-events-none"}),t.jsx("div",{className:`absolute -top-px left-6 right-6 h-px bg-gradient-to-r ${e.accent} opacity-70 z-10`}),t.jsx("div",{className:`absolute -top-20 -right-20 w-48 h-48 rounded-full bg-gradient-to-br ${e.accent} opacity-0 group-hover:opacity-20 blur-3xl transition-opacity duration-700 pointer-events-none`}),t.jsxs("div",{className:"relative z-10 flex items-start gap-4 mb-5",children:[t.jsx("div",{className:`shrink-0 w-12 h-12 rounded-2xl bg-gradient-to-br ${e.iconBg} flex items-center justify-center shadow-lg ${e.glow}`,children:t.jsx(o,{className:"w-6 h-6 text-white",strokeWidth:2.2})}),t.jsxs("div",{className:"flex flex-col leading-tight pt-1",children:[t.jsx("span",{className:"text-[10px] font-extrabold tracking-[0.2em] text-white/50 uppercase",children:e.eyebrow}),t.jsx("h3",{className:"text-lg md:text-xl font-extrabold text-white mt-1.5 leading-snug",children:e.title})]})]}),t.jsx("p",{className:"relative z-10 text-sm md:text-[15px] text-slate-300/90 leading-relaxed font-medium flex-1",children:e.pitch}),t.jsxs("div",{className:"relative z-10 mt-6 pt-5 border-t border-white/10",children:[t.jsxs("span",{className:`inline-flex items-center gap-1.5 rounded-full bg-gradient-to-r ${e.accent} px-3 py-1 text-[11px] font-extrabold tracking-wide text-white uppercase shadow-lg ${e.glow}`,children:[t.jsx(Le,{className:"w-3.5 h-3.5","aria-hidden":"true"})," Included with qualifying plans"]}),t.jsx("p",{className:"mt-2.5 text-xs md:text-[13px] text-slate-400 leading-relaxed font-medium",children:"Unlocked right in your dashboard with a qualifying subscription. Check the pricing table to see which plans include it."})]})]})}function qm(){return t.jsxs("section",{className:"relative py-24 md:py-32 overflow-hidden bg-gradient-to-b from-slate-950 via-indigo-950 to-slate-950","data-testid":"home-addons-teaser",children:[t.jsx("div",{className:"absolute top-20 left-1/4 w-[600px] h-[600px] bg-fuchsia-500/15 blur-[160px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute bottom-10 right-1/4 w-[500px] h-[500px] bg-indigo-500/20 blur-[140px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute top-1/2 left-10 w-[300px] h-[300px] bg-amber-400/10 blur-[120px] rounded-full pointer-events-none"}),t.jsx("div",{"aria-hidden":"true",className:"absolute inset-0 opacity-[0.04] pointer-events-none",style:{backgroundImage:"linear-gradient(to right, white 1px, transparent 1px), linear-gradient(to bottom, white 1px, transparent 1px)",backgroundSize:"44px 44px"}}),t.jsxs("div",{className:"container relative z-10 mx-auto px-4 md:px-6 max-w-6xl",children:[t.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-14 md:mb-16",children:[t.jsxs(R.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"inline-flex items-center gap-2 rounded-full border border-white/20 bg-white/10 backdrop-blur-md px-5 py-2 text-xs font-extrabold tracking-[0.2em] uppercase mb-7 shadow-lg shadow-black/20","data-testid":"home-addons-teaser-eyebrow",children:[t.jsx(Z,{className:"w-3.5 h-3.5 text-amber-300 fill-amber-300"}),t.jsx("span",{className:"bg-gradient-to-r from-indigo-200 via-fuchsia-200 to-amber-200 bg-clip-text text-transparent",children:"Premium features"})]}),t.jsxs(R.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.05},className:"text-4xl md:text-5xl lg:text-6xl font-extrabold tracking-[-0.02em] leading-[1.05] text-white mb-6","data-testid":"home-addons-teaser-title",children:["Expand your opportunities with"," ",t.jsx("span",{className:"bg-gradient-to-r from-indigo-300 via-fuchsia-300 to-amber-300 bg-clip-text text-transparent",children:"eBookWriter AI"}),"."]}),t.jsxs(R.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1},className:"text-lg md:text-xl text-slate-300/90 leading-relaxed font-medium","data-testid":"home-addons-teaser-subtitle",children:["Every feature below, including our brand-new"," ",t.jsx("span",{className:"font-extrabold bg-gradient-to-r from-fuchsia-300 via-pink-300 to-amber-300 bg-clip-text text-transparent",children:"Visual eBooks"}),", is available with a qualifying subscription. What you get varies by plan. Some plans include a few, and higher tiers include them all, so check the pricing table and pick the plan that matches everything you want to create."]}),t.jsxs(R.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.15},className:"mt-7 flex flex-wrap items-center justify-center gap-2.5",children:[t.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-emerald-500/15 border border-emerald-400/30 px-3.5 py-1.5 text-[11px] font-bold tracking-wide text-emerald-200","data-testid":"home-addons-teaser-chip-included",children:[t.jsx(La,{className:"w-3.5 h-3.5"})," Included with qualifying plans"]}),t.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-fuchsia-500/15 border border-fuchsia-400/30 px-3.5 py-1.5 text-[11px] font-bold tracking-wide text-fuchsia-200","data-testid":"home-addons-teaser-chip-dashboard",children:[t.jsx(Le,{className:"w-3.5 h-3.5"})," Unlocks instantly in your dashboard"]}),t.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-indigo-500/15 border border-indigo-400/30 px-3.5 py-1.5 text-[11px] font-bold tracking-wide text-indigo-200","data-testid":"home-addons-teaser-chip-keep",children:[t.jsx(Z,{className:"w-3.5 h-3.5"})," All of them on higher tiers"]})]})]}),t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 md:gap-6","data-testid":"home-addons-teaser-grid",children:Vm.map((e,r)=>t.jsx(Wm,{addon:e,index:r},e.title))})]})]})}const Km="/assets/avatar_sarah_casual-DvBLJ4jI.jpg",Um="/assets/avatar_michael_casual-CuES0AjU.jpg",Hm="/assets/avatar_jessica_casual-jw7btJs-.jpg",Gm=[{quote:"My first ebook was live on Amazon the same day I started. I made $312 the first week.",author:"Sarah K",role:"KDP Publisher",photo:Km,accent:"from-rose-500 via-pink-500 to-fuchsia-500",chipBg:"bg-rose-500",metric:"$312 first week"},{quote:"Looks like I hired a pro writer and a pro designer. It's just me and this app.",author:"Michael T",role:"Affiliate Marketer",photo:Um,accent:"from-indigo-500 via-violet-500 to-fuchsia-500",chipBg:"bg-indigo-500",metric:"Pro level output"},{quote:"Perfect for affiliate lead magnets. My list grew 3,400 in two weeks.",author:"Jessica L",role:"Coach",photo:Hm,accent:"from-emerald-500 via-teal-500 to-cyan-500",chipBg:"bg-emerald-500",metric:"+3,400 subscribers"}];function Ym(){return t.jsxs("section",{className:"py-20 md:py-24 bg-gradient-to-b from-white via-slate-50 to-white relative overflow-hidden",children:[t.jsx("div",{className:"absolute top-0 left-1/4 w-[400px] h-[400px] bg-gradient-to-br from-amber-200/30 to-rose-200/20 blur-[100px] rounded-full pointer-events-none"}),t.jsxs("div",{className:"container mx-auto px-4 md:px-6 relative z-10",children:[t.jsxs("div",{className:"text-center mb-14",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-amber-50 to-rose-50 border border-amber-200/50 text-xs font-bold tracking-[0.15em] text-amber-700 mb-5 uppercase",children:[t.jsx(De,{className:"w-3.5 h-3.5 fill-amber-500 text-amber-500"})," Trusted by creators"]}),t.jsxs("h2",{className:"text-3xl md:text-5xl font-extrabold tracking-tight text-slate-900 leading-[1.05]",children:["Join Thousands of"," ",t.jsx("span",{className:"bg-gradient-to-r from-amber-500 via-rose-500 to-fuchsia-500 bg-clip-text text-transparent",children:"Smart Publishers."})]})]}),t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 max-w-6xl mx-auto",children:Gm.map((e,r)=>t.jsxs(R.div,{initial:!1,"data-testid":`testimonial-${r}`,className:"group relative rounded-3xl overflow-hidden shadow-xl shadow-slate-900/15 hover:shadow-2xl hover:-translate-y-1.5 transition-all duration-500 aspect-[4/5] isolate",children:[t.jsx("div",{className:`absolute -inset-px rounded-3xl bg-gradient-to-br ${e.accent} opacity-0 group-hover:opacity-100 blur transition-opacity duration-500 -z-10`}),t.jsx("img",{src:e.photo,alt:e.author,loading:"lazy",className:"absolute inset-0 w-full h-full object-cover scale-105 group-hover:scale-110 transition-transform duration-700"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-950/90 via-slate-950/30 via-40% to-transparent to-65%"}),t.jsxs("div",{className:"absolute top-4 left-4 right-4 flex items-start justify-between gap-2 z-10",children:[t.jsxs("div",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full ${e.chipBg} text-white text-[10px] font-extrabold uppercase tracking-[0.15em] shadow-lg`,children:[t.jsx("svg",{className:"w-3 h-3",viewBox:"0 0 24 24",fill:"
2currentColor","aria-hidden":"true",children:t.jsx("path",{d:"M12 2l2.39 2.36 3.31-.16.32 3.31L20.39 9.6l-1.06 3.14 1.51 2.96-2.83 1.74-.95 3.18-3.31-.32L12 22.5l-1.75-2.2-3.31.32-.95-3.18-2.83-1.74 1.51-2.96L3.61 9.6l2.37-2.09.32-3.31 3.31.16L12 2zm-1.16 13.42l6.01-6.01-1.41-1.41-4.6 4.6-2.13-2.12-1.41 1.41 3.54 3.53z"})}),"Verified"]}),t.jsx("div",{className:"inline-flex items-center gap-0.5 px-2 py-1 rounded-full bg-white/95 backdrop-blur shadow text-amber-500",children:[1,2,3,4,5].map(o=>t.jsx(De,{className:"w-3 h-3 fill-current"},o))})]}),t.jsxs("div",{className:"absolute inset-x-0 bottom-0 p-6 z-10",children:[t.jsx(Vo,{className:"w-8 h-8 text-white/40 mb-2",fill:"currentColor"}),t.jsxs("p",{className:"text-white font-bold text-lg leading-snug mb-5 drop-shadow-md",children:['"',e.quote,'"']}),t.jsxs("div",{className:"flex items-end justify-between gap-3 pt-4 border-t border-white/20",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-base font-extrabold text-white leading-tight",children:e.author}),t.jsx("p",{className:"text-xs text-white/80 font-semibold mt-1",children:e.role})]}),t.jsx("div",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full bg-white/15 backdrop-blur border border-white/25 text-white text-[10px] font-extrabold uppercase tracking-wider",children:e.metric})]})]})]},r))})]})]})}const Xm=[{text:"Spending weeks staring at blank pages.",icon:Va},{text:"Paying thousands to generic ghostwriters.",icon:Me},{text:"Struggling with clunky formatting tools and margins.",icon:Ce},{text:"Missing the trend entirely because execution took too long.",icon:Ce}],Jm=[{text:"Enter a topic, select a voice, and generate.",icon:Le},{text:"Get a beautifully formatted, ready to publish ebook instantly.",icon:Z},{text:"Professional images and KDP ready images generated for you.",icon:Z},{text:"Publish multiple high quality assets per day.",icon:Le}];function Qm(){return t.jsxs("section",{id:"comparison",className:"py-24 md:py-32 relative bg-gradient-to-b from-white via-muted/40 to-white overflow-hidden",children:[t.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[900px] h-[600px] bg-gradient-to-br from-primary/8 via-fuchsia-300/8 to-amber-200/8 blur-3xl rounded-full pointer-events-none"}),t.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-7xl relative z-10",children:[t.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[t.jsx("div",{className:"inline-flex items-center gap-2 rounded-full border border-primary/20 bg-white px-4 py-2 text-xs font-bold uppercase tracking-[0.2em] text-primary mb-5 shadow-sm",children:"The shift"}),t.jsxs("h2",{className:"text-4xl md:text-6xl font-extrabold tracking-tight mb-5 leading-[1.05]",children:["Stop Grinding."," ",t.jsx("span",{className:"bg-gradient-to-r from-primary via-fuchsia-600 to-amber-500 bg-clip-text text-transparent",children:"Start Publishing."})]}),t.jsx("p",{className:"text-lg md:text-xl text-muted-foreground leading-relaxed",children:"The old way costs you months. The new way is on demand."})]}),t.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[t.jsxs(R.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"relative rounded-[32px] overflow-hidden shadow-2xl shadow-slate-900/40 ring-1 ring-white/10","data-testid":"card-old-way",children:[t.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-slate-950 via-slate-900 to-zinc-950"}),t.jsx("div",{className:"absolute -top-20 -right-20 w-72 h-72 bg-red-500/20 blur-3xl rounded-full"}),t.jsx("div",{className:"absolute -bottom-24 -left-24 w-72 h-72 bg-rose-700/15 blur-3xl rounded-full"}),t.jsx("div",{className:"absolute inset-0 opacity-[0.07]",style:{backgroundImage:"radial-gradient(circle at 20% 30%, white 1px, transparent 1px), radial-gradient(circle at 70% 60%, white 1px, transparent 1px)",backgroundSize:"60px 60px, 80px 80px"}}),t.jsxs("div",{className:"relative p-10 md:p-12",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full bg-red-500/20 border border-red-400/30 px-4 py-1.5 text-xs font-bold uppercase tracking-[0.2em] text-red-300",children:[t.jsx(Ce,{className:"w-3 h-3"}),"The Old Way"]}),t.jsxs("div",{className:"text-right",children:[t.jsx("div",{className:"text-3xl font-extrabold text-white",children:"6+"}),t.jsx("div",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400",children:"weeks avg"})]})]}),t.jsx("h3",{className:"text-3xl md:text-4xl font-extrabold text-white mb-2 tracking-tight leading-tight",children:"Slow. Expensive. Painful."}),t.jsx("p",{className:"text-slate-300 mb-8 text-base leading-relaxed",children:"Most creators are stuck in a never ending loop of writing, editing, formatting, and outsourcing."}),t.jsx("ul",{className:"space-y-4",children:Xm.map((e,r)=>t.jsxs("li",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-9 h-9 rounded-xl bg-red-500/20 border border-red-400/30 flex items-center justify-center shrink-0",children:t.jsx(e.icon,{className:"w-4 h-4 text-red-400"})}),t.jsx("span",{className:"text-slate-200 leading-relaxed font-medium pt-1",children:e.text})]},r))}),t.jsxs("div",{className:"mt-10 pt-8 border-t border-white/10 flex items-center gap-6",children:[t.jsxs("div",{children:[t.jsx("div",{className:"text-xl font-extrabold text-white",children:"$2,000+"}),t.jsx("div",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400",children:"ghostwriter"})]}),t.jsx("div",{className:"w-px h-10 bg-white/10"}),t.jsxs("div",{children:[t.jsx("div",{className:"text-xl font-extrabold text-white",children:"$150"}),t.jsx("div",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400",children:"cover designer"})]}),t.jsx("div",{className:"w-px h-10 bg-white/10"}),t.jsxs("div",{children:[t.jsx("div",{className:"text-xl font-extrabold text-white",children:"$80"}),t.jsx("div",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400",children:"formatter"})]})]})]})]}),t.jsxs(R.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.15},className:"relative rounded-[32px] overflow-hidden shadow-2xl shadow-primary/20","data-testid":"card-new-way",children:[t.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary via-fuchsia-600 to-purple-700"}),t.jsx("div",{className:"absolute -top-20 -right-20 w-64 h-64 bg-amber-300/40 blur-3xl rounded-full"}),t.jsx("div",{className:"absolute -bottom-20 -left-20 w-64 h-64 bg-cyan-400/30 blur-3xl rounded-full"}),t.jsx("div",{className:"absolute inset-0 opacity-20",style:{backgroundImage:"radial-gradient(circle at 20% 30%, white 1px, transparent 1px), radial-gradient(circle at 70% 60%, white 1px, transparent 1px)",backgroundSize:"60px 60px, 80px 80px"}}),t.jsxs("div",{className:"relative p-10 md:p-12",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full bg-white/15 backdrop-blur border border-white/30 px-4 py-1.5 text-xs font-bold uppercase tracking-[0.2em] text-white",children:[t.jsx(Z,{className:"w-3 h-3"}),"The eBookWriter Way"]}),t.jsxs("div",{className:"text-right",children:[t.jsx("div",{className:"text-3xl font-extrabold text-white",children:"100%"}),t.jsx("div",{className:"text-[10px] font-bold uppercase tracking-wider text-white/70",children:"automated"})]})]}),t.jsx("h3",{className:"text-3xl md:text-4xl font-extrabold text-white mb-2 tracking-tight leading-tight",children:"Fast. Brilliant. Profitable."}),t.jsx("p",{className:"text-white/85 mb-8 text-base leading-relaxed",children:"Generate a complete, beautifully formatted ebook on demand. No writing, no formatting, no waiting on freelancers."}),t.jsx("ul",{className:"space-y-4",children:Jm.map((e,r)=>t.jsxs("li",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-9 h-9 rounded-xl bg-white shadow-lg flex items-center justify-center shrink-0",children:t.jsx(ne,{className:"w-5 h-5 text-primary",strokeWidth:3})}),t.jsx("span",{className:"text-white leading-relaxed font-semibold pt-1",children:e.text})]},r))}),t.jsxs("div",{className:"mt-10 pt-8 border-t border-white/20 flex items-center gap-6",children:[t.jsxs("div",{children:[t.jsx("div",{className:"text-xl font-extrabold text-white",children:"180"}),t.jsx("div",{className:"text-[10px] font-bold uppercase tracking-wider text-white/70",children:"pages max"})]}),t.jsx("div",{className:"w-px h-10 bg-white/20"}),t.jsxs("div",{children:[t.jsx("div",{className:"text-xl font-extrabold text-white",children:"$0"}),t.jsx("div",{className:"text-[10px] font-bold uppercase tracking-wider text-white/70",children:"designers"})]}),t.jsx("div",{className:"w-px h-10 bg-white/20"}),t.jsxs("div",{children:[t.jsx("div",{className:"text-xl font-extrabold text-white",children:"â"}),t.jsx("div",{className:"text-[10px] font-bold uppercase tracking-wider text-white/70",children:"books/day"})]})]})]})]})]})]})]})}const Zm="/assets/image_1777458449313-C9dMwzOd.png",ep="/assets/image_1777458525671-BENl_9Io.png",tp="/assets/image_1777458618255-CGpxMP1e.png",rp="/assets/image_1777458632866-CHINJp8e.png",op="/assets/image_1777458666517-BJi3FT3w.png",np="/assets/image_1777458829420-BKih1iAG.png",sp="/assets/image_1777459039323-CJM63OLN.png",ap="/assets/image_1777459186906-DEXBkVqh.png",ip="/assets/image_1777459458431-BJe5dO-t.png",lp="/assets/image_1777459818376-BnvBovpO.png",cp="/assets/image_1777459853013-DFC0zih3.png",dp="/assets/image_1777459914240-BunD4HLs.png",up=[{step:"01",eyebrow:"Step 1. Pick a format",title:"Cho
2ose the kind of book you want to publish.",description:"Open the Create eBook wizard and pick from six battle tested formats. Whether you're publishing a 180 page guide for Amazon KDP, a 10 page lead magnet to capture emails, or a children's storybook with custom illustrations, you start by picking the format and dropping in a topic. The live preview on the right starts rendering your cover and first chapter in real time as you type.",highlights:["Instant eBook, full length book from a single topic","Short Report, Doc to eBook, Kid Storybook, URL to eBook, Video to eBook","Live cover and Chapter 1 preview update as you type","Set topic, title, author, and target page count from one screen"],img:Zm,alt:"Create eBook wizard showing six format choices and live preview of cover and chapter"},{step:"02",eyebrow:"Step 2. Audience & tone",title:"Dial in exactly who the book is for.",description:"Tell the AI who's going to read this book and how it should sound. Choose your target audience, the purpose (informative, persuasive, entertainment, training), the tone (professional, casual, authoritative, friendly), and the language. The cover preview re renders instantly with the title typeset in the chosen style, so you can see what you're publishing before a single word is written.",highlights:["Targeted audience and reading level controls","Pick from informative, persuasive, training, or entertainment purposes","Tone presets: professional, casual, authoritative, friendly","Native multi language generation, not machine translated"],img:tp,alt:"Audience and tone configuration step with live cover preview titled Personal Finance For Beginners"},{step:"03",eyebrow:"Step 3. Design system",title:"Pick a design preset, or upload your own cover.",description:"Choose from four built in design presets (Classic serif, Modern sans, Minimal airy, Bold punchy), set page size and alignment, and decide how the cover gets made. You can let the AI generate a custom cover for you, upload your own artwork, or skip the cover entirely if you're producing a lead magnet. Background patterns, typography, and spacing are all adjustable without touching a single CSS value.",highlights:["Four typography driven design presets baked in","A4, Letter, and KDP friendly page sizes","AI generated cover, custom upload, or no cover","Background patterns, font, and alignment per book"],img:rp,alt:"Design step showing layout, background, design presets, page size, and cover image options"},{step:"04",eyebrow:"Step 4. Pick the engine",title:"Route the right AI model for the right job.",description:"Choose which model writes your book and which engine generates the artwork. Use GPT 5 Mini for fast, cost efficient drafts, GPT 5 for premium prose, or Gemini and Claude for variety. For images, swap between OpenAI DALL E 3, GPT Image 1 / 1.5 / 2, and Gemini 2.5 / 3 Pro Flash Image (Nano Banana). Toggle on affiliate link automation and the system will weave your monetized links into the content naturally.",highlights:["Models: GPT 5, GPT 5 Mini, Gemini 2.5 Pro, Claude Sonnet 4","Image engines: DALL E 3, GPT Image 1/1.5/2, Nano Banana 2.5 / 3 Pro","Image count, illustration style, and per book quality controls","Affiliate link automation built directly into generation"],img:ep,alt:"AI settings panel showing model selection, image engine dropdown with all options, and credit estimate"},{step:"05",eyebrow:"Step 5. Review & generate",title:"One last look. Then watch the magic.",description:"The Review screen consolidates every choice you made, type, title, page count, audience, tone, model, image count, page size, font, and cover, alongside an exact credit estimate so there are no surprises. You'll see what the book will cost in credits, your current balance, and whether you have enough headroom to ship the book. Hit Generate eBook and you're done.",highlights:["Full settings summary on a single screen","Exact credit cost calculated before you commit","Live balance check (e.g. 470 used / 150,150 available)","Save as draft or generate immediately"],img:op,alt:"Review and generate step with full settings summary and credit estimate panel"},{step:"06",eyebrow:"Generating",title:"Watch your book write itself in real time.",description:"The book detail page opens immediately with a live progress bar, status badges, and a chapter list that fills in as the AI writes. Word counts and section labels appear in real time, no waiting screens, no spinners, no guessing. Watch your Instant eBook come together end to end, with chapters, sections, and word counts updating live.",highlights:["Live progress bar with In Progress / Done status per chapter","Word counts populate in real time per chapter and section","Auto refresh, no need to babysit the tab","Complete metadata: model used, language, page count, total words"],img:np,alt:"My Books detail view of an in progress ebook with live chapter list and word counts"},{step:"07",eyebrow:"Auto structured",title:"A real table of contents, built for you.",description:"When generation finishes, you get a fully built table of contents, chapters and numbered sub sections, each with its own word count and Done status. Nothing is generic AI prose. The structure follows real publishing conventions, with a logical narrative flow from foundational chapters through advanced topics, ready for KDP's strict formatting requirements.",highlights:["Multi chapter structure with numbered sub sections (1.1, 1.2, 1.3â¦)","Word counts per section so you can balance pacing","Done indicators so you know exactly what's reviewed","Built to match Amazon KDP and Apple Books
2structure rules"],img:ap,alt:"Chapter and section structure for the Personal Finance For Beginners ebook"},{step:"08",eyebrow:"Total editorial control",title:"Edit any sentence, image, or link visually.",description:"The full visual editor lets you rewrite any section, swap any image, change any heading, and add or replace links, without leaving the browser. A built in formatting toolbar gives you headings (H1 to H4), bold, italics, lists, and alignment. AI assist buttons let you regenerate text or swap an image with one click. Every change is auto saved with Ctrl/Cmd+S.",highlights:["Rich text editor with H1 to H4, lists, alignment, and links","AI Image and AI Text buttons regenerate any block on demand","Drag and drop image upload","Per section save plus full Save All Changes (Ctrl+S)"],img:sp,alt:"Section editor showing rich text toolbar, AI image and AI text buttons, and chapter sidebar"},{step:"09",eyebrow:"AI cover design",title:"Magazine quality covers, generated for you.",description:"The AI doesn't just write, it designs. Each cover is generated context aware: it reads the topic, audience, and tone and produces a publish ready cover with custom typography, illustrations, supporting graphics, and color palettes that fit the niche. Plug it straight into Amazon KDP, Etsy, or Gumroad without a designer or a $40 Fiverr commission.",highlights:["Topic aware composition with custom typography","Built in illustrations, charts, and supporting graphics","Color palette tuned to the book's niche and tone","KDP ready dimensions out of the box"],img:cp,alt:"Generated AI cover for Personal Finance For Beginners with piggy bank, books, and budget illustrations"},{step:"10",eyebrow:"Real interior pages",title:"Properly typeset interiors with images and depth.",description:"Every interior page is laid out like a real published book, proper margins, headings, body copy, contextual images, multi column layouts, page numbers, and section breaks. Photos and illustrations are dropped into chapters in places that actually make sense for the content. This is what readers see when they open your book on a Kindle, an iPad, or in print.",highlights:["Proper book typography with margins, headings, and page numbers","Contextual images placed where they reinforce the content","Multi column layouts and section breaks where appropriate","Looks identical to a $30 hardcover from a real publisher"],img:dp,alt:"Real interior pages of the generated ebook with body copy, headings, and a contextual photograph"},{step:"11",eyebrow:"Export anywhere",title:"Download in EPUB, PDF, DOCX, TXT, or share as a flipbook.",description:"When the book is done, the Downloads tab gives you every format you need: EPUB for Kindle and KDP, PDF for lead magnets and direct sale, DOCX for further editing in Word or Google Docs, plain TXT for repurposing, and a Share Flipbook link for embedding the book on your site. The cover image is also downloadable separately for thumbnails, ads, and social posts.",highlights:["EPUB. Kindle Direct Publishing ready","PDF, perfect for lead magnets and Gumroad","DOCX and TXT, for editing and repurposing","Share Flipbook link plus standalone cover download"],img:lp,alt:"Downloads tab showing EPUB, PDF, cover image, and additional formats including DOCX and Flipbook"},{step:"12",eyebrow:"Library dashboard",title:"Run your entire publishing operation from one screen.",description:"The eBooks dashboard is your command center. See every book you've ever generated, filter by status (In Progress, Completed, Failed, Draft), search by topic, and one click into any book to preview, edit, download, or kick off a new version. Power users are running 20+ books per month from this exact view, every one of them generating royalties on KDP without further work.",highlights:["Total / In Progress / Completed / Failed / Draft counters","Search and filter across your full library","One click preview, edit, download, or duplicate per book","Built for users running 20+ books per month"],img:ip,alt:"eBooks library dashboard with status counters, filters, and per book actions"}];function mp(){return t.jsxs("section",{id:"showcase",className:"pt-24 md:pt-32 pb-24 md:pb-32 relative overflow-hidden bg-gradient-to-b from-white via-slate-50 to-white",children:[t.jsx("div",{className:"absolute top-0 left-1/4 w-[500px] h-[500px] bg-gradient-to-br from-indigo-300/30 to-violet-300/20 blur-[120px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute top-0 right-1/4 w-[500px] h-[500px] bg-gradient-to-tl from-fuchsia-300/30 to-pink-300/20 blur-[120px] rounded-full pointer-events-none"}),t.jsx("div",{className:"container mx-auto px-4 md:px-6 mb-20 relative z-10",children:t.jsxs(R.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center max-w-4xl mx-auto",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-indigo-50 to-fuchsia-50 border border-indigo-200/50 text-xs font-bold tracking-[0.15em] text-indigo-700 mb-6 uppercase",children:[t.jsx(Z,{className:"w-3.5 h-3.5"})," Introducing the full workflow"]}),t.jsxs("h2",{className:"text-5xl md:text-7xl font-extrabold tracking-tight mb-6 leading-[1.02]",children:["Meet"," ",t.jsx("span",{className:"bg-gradient-to-r from-indigo-600 via-violet-600 to-fuchsia-600 bg-clip-text text-transparent",children:"eBookWriter AI."})]}),t.jsx("p",{className:"text-xl md:text-2xl text-slate-600 leading-relaxed max-w-3xl mx-auto mb-8",children:"The world's most advanced publishing engine. Researcher, author, formatter, and cover designer working in perfect unison."}),t.jsx("p",{className:"text-base md:text-lg text-muted-foreground max-w-2xl mx-auto",children:"Walk through the exact thirteen screen workflow real publishers use to ship a finished book on demand. Every screenshot below is the real eBookWriter AI app, not a mockup."})]})}),t.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-7xl",children:[t.jsx("div",{className:"space-y-28 md:space-y-36",children:up.map((e,r)=>{const o=r%2!==0;return t.jsxs(R.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"grid grid-cols-1 lg:grid-cols-12 gap-10 lg:gap-16 items-center relative","data-testid":`showcase-step-${e.step}`,children:[t.jsx("div",{className:`absolute ${o?"right-0":"left-0"} top-1/2 -translate-y-1/2 w-[480px] h-[480px] rounded-full -z-10 blur-[100px] ${o?"bg-accent/15":"bg-primary/10"}`}),t.jsx("div",{className:`${o?"lg:order-2 lg:col-start-6":"lg:col-start-1"} lg:col-span-7`,children:t.jsx("div",{className:"rounded-2xl overflow-hidden border border-border shadow-2xl bg-white p-2 hover:scale-[1.01] transition-transform duration-500",children:t.jsx("img",{src:e.img,alt:e.alt,className:"w-full h-auto rounded-xl border border-border",loading:"lazy"})})}),t.jsxs("div",{className:`${o?"lg:order-1 lg:col-start-1":"lg:col-start-8"} lg:col-span-5`,children:[t.jsxs("div",{className:"flex items-baseline gap-4 mb-4",children:[t.jsx("span",{className:"text-5xl font-bold text-primary/30 tabular-nums tracking-tighter",children:e.step}),t.jsx("span",{className:"text-xs font-semibold uppercase tracking-[0.15em] text-primary",children:e.eyebrow})]}),t.jsx("h3",{className:"text-2xl md:text-3xl font-bold text-foreground tracking-tight leading-[1.15] mb-5",children:e.title}),t.jsx("p",{className:"text-base md:text-[17px] text-muted-foreground leading-relaxed mb-6",children:e.description}),t.jsx("ul",{className:"space-y-3",children:e.highlights.map(n=>t.jsxs("li",{className:"flex items-start gap-3",children:[t.jsx("span",{className:"mt-1 flex h-5 w-5 items-center justify-center rounded-full bg-primary/10 flex-shrink-0",children:t.jsx(ne,{className:"h-3 w-3 text-primary",strokeWidth:3})}),t.jsx("span",{className:"text-sm md:text-[15px] text-foreground
2/90 leading-relaxed",children:n})]},n))})]})]},e.step)})}),t.jsxs(R.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"mt-28 md:mt-36 relative rounded-[2.5rem] overflow-hidden bg-gradient-to-br from-slate-950 via-indigo-950 to-violet-950 border border-white/10 shadow-2xl shadow-indigo-500/20","data-testid":"showcase-step-13",children:[t.jsx("div",{className:"absolute -top-24 -left-24 w-[500px] h-[500px] rounded-full bg-fuchsia-500/20 blur-[120px] pointer-events-none"}),t.jsx("div",{className:"absolute -bottom-24 -right-24 w-[500px] h-[500px] rounded-full bg-indigo-400/25 blur-[120px] pointer-events-none"}),t.jsxs("div",{className:"relative px-6 py-14 md:px-14 md:py-20",children:[t.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-14",children:[t.jsxs("div",{className:"inline-flex items-center gap-3 mb-5",children:[t.jsx("span",{className:"text-5xl md:text-6xl font-bold text-white/20 tabular-nums tracking-tighter leading-none",children:"13"}),t.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.2em] text-fuchsia-300",children:"Step 13. Publish & Profit"})]}),t.jsxs("h3",{className:"text-3xl md:text-5xl font-extrabold text-white tracking-tight leading-[1.1] mb-5",children:["Your Finished Book Becomes"," ",t.jsx("span",{className:"bg-gradient-to-r from-amber-300 via-fuchsia-300 to-indigo-300 bg-clip-text text-transparent",children:"Income on Autopilot."})]}),t.jsx("p",{className:"text-base md:text-lg text-slate-300 leading-relaxed",children:"Hit download, grab your PDF or EPUB, and the path to revenue opens up. Real publishers route a single book into many income streams. Pick the channels that fit your business."})]}),t.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3 mb-12",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-white/10 border border-white/15 backdrop-blur text-white text-sm font-bold",children:[t.jsx(Wa,{className:"w-4 h-4 text-emerald-300","aria-hidden":"true"})," PDF + EPUB export included"]}),t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-white/10 border border-white/15 backdrop-blur text-white text-sm font-bold",children:[t.jsx(Ee,{className:"w-4 h-4 text-amber-300","aria-hidden":"true"})," Multiple income streams per book"]})]}),t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5 max-w-6xl mx-auto",children:[{icon:qa,iconColor:"from-amber-400 to-orange-500",badge:"01",badgeColor:"text-amber-300",title:"Publish on Amazon KDP and global retailers",body:"Upload your EPUB to Kindle Direct Publishing for the world's largest reader base. Earn up to 70 percent royalty per sale, plus page read royalties when you enroll in Kindle Unlimited. Use Draft2Digital or PublishDrive to push the same file to Apple Books, Kobo, Barnes and Noble Press, and Google Play in one click.",platforms:["Amazon KDP","Apple Books","Kobo Writing Life","Barnes & Noble Press","Google Play Books","Draft2Digital","PublishDrive"]},{icon:Ka,iconColor:"from-emerald-400 to-teal-500",badge:"02",badgeColor:"text-emerald-300",title:"Sell direct and keep the lion's share",body:"Skip the marketplace cut and sell your book straight to readers from your own page or social bio. Modern checkout tools handle delivery, license keys, EU VAT, refunds, and instant payouts so you collect 90 percent or more of every sale.",platforms:["Gumroad","Payhip","Lemon Squeezy","SendOwl","Stripe Checkout","Shopify Digital"]},{icon:nt,iconColor:"from-fuchsia-400 to-pink-500",badge:"03",badgeColor:"text-fuchsia-300",title:"Tap affiliate marketplaces and let others sell for you",body:"List your book on a network where thousands of affiliates are already hunting for products to promote. They drive the traffic, you set the commission, and the platform handles tracking, payouts, and disputes. Perfect for info products, lead magnets, and high ticket guides.",platforms:["WarriorPlus","JVZoo","ClickBank","Digistore24","PartnerStack"]}
2,{icon:Wo,iconColor:"from-indigo-400 to-violet-500",badge:"04",badgeColor:"text-indigo-300",title:"Use the book as a lead magnet to grow an email list",body:"Give the book away for free in exchange for an email address. Build an audience you actually own, then sell coaching, courses, services, or higher ticket books to that list later. The book pays for itself in weeks once subscribers start converting.",platforms:["ConvertKit","Beehiiv","MailerLite","ActiveCampaign","Mailchimp","Kit"]},{icon:qo,iconColor:"from-rose-400 to-red-500",badge:"05",badgeColor:"text-rose-300",title:"Repurpose into paperback, audiobook, and course",body:"One manuscript becomes a paperback on KDP Print or IngramSpark, an audiobook on ACX or Findaway Voices, a paid Kindle Vella serial, and a video course on Teachable or Skool. Each format reaches a different buyer. Same content, multiple income streams.",platforms:["KDP Print","IngramSpark","ACX (Audible)","Findaway Voices","Teachable","Kajabi","Skool"]},{icon:Ee,iconColor:"from-cyan-400 to-blue-500",badge:"06",badgeColor:"text-cyan-300",title:"Add affiliate links and license PLR rights",body:"Drop affiliate links into chapters where you recommend tools or products and earn on every reader click. Or sell Private Label Rights so other creators can rebrand and resell, paying you upfront. Both turn the book into recurring revenue long after launch.",platforms:["Amazon Associates","Impact","ShareASale","PartnerStack","IDPLR","Resell Rights Weekly"]}].map(e=>{const r=e.icon;return t.jsxs("div",{className:"group relative rounded-2xl p-6 md:p-7 bg-white/[0.04] border border-white/10 hover:bg-white/[0.07] hover:border-white/20 transition-all duration-300","data-testid":`monetize-card-${e.badge}`,children:[t.jsxs("div",{className:"flex items-start justify-between mb-4",children:[t.jsx("div",{className:`w-12 h-12 rounded-xl bg-gradient-to-br ${e.iconColor} flex items-center justify-center shadow-lg shadow-black/40`,children:t.jsx(r,{className:"w-6 h-6 text-white",strokeWidth:2.5,"aria-hidden":"true"})}),t.jsx("span",{className:`text-3xl font-bold ${e.badgeColor} opacity-50 tabular-nums tracking-tighter`,children:e.badge})]}),t.jsx("h4",{className:"text-lg md:text-xl font-bold text-white leading-snug mb-3",children:e.title}),t.jsx("p",{className:"text-sm md:text-[15px] text-slate-300 leading-relaxed mb-5",children:e.body}),t.jsx("div",{className:"flex flex-wrap gap-1.5",children:e.platforms.map(o=>t.jsx("span",{className:"inline-flex items-center px-2.5 py-1 rounded-md bg-white/[0.06] border border-white/10 text-xs font-semibold text-white/80",children:o},o))})]},e.badge)})}),t.jsx("div",{className:"mt-12 text-center",children:t.jsxs("div",{className:"inline-flex flex-wrap items-center justify-center gap-3 px-6 py-3 rounded-full bg-gradient-to-r from-fuchsia-500/15 to-indigo-500/15 border border-white/15 backdrop-blur",children:[t.jsx(Rt,{className:"w-4 h-4 text-fuchsia-300","aria-hidden":"true"}),t.jsx("span",{className:"text-sm md:text-base font-bold text-white",children:"One book. Six revenue paths. Pick the ones that fit your business."})]})})]})]})]})]})}const pp="/assets/character_scene1-DbuajWTX.webp",fp="/assets/character_scene2-BRXeG9ao.webp",hp="/assets/character_scene3-BQu-taHG.webp",Do=[{icon:Ua,title:"Define your cast",description:"Give every character a name, age, hair, eyes, outfit, and personality. Build a full visual identity in seconds.",gradient:"from-indigo-500 to-violet-600"},{icon:Ko,title:"Lock the visual DNA",description:"We fingerprint each character with a locked seed and a style anchor. The model never improvises on appearance.",gradient:"from-fuchsia-500 to-pink-600"},{icon:Ha,title:"Generate every chapter",description:"Across 180 pages and dozens of scenes, the same face, same hair, same outfit. Recognizable on every spread.",gradient:"from-amber-500 to-orange-600"}],xp=[{src:pp,label:"Chapter 1",caption:"Enchanted forest"},{src:fp,label:"Chapter 7",caption:"Sapphire lake"},{src:hp,label:"Chapter 14",caption:"Starlit clouds"}],gp=["Same face on every page","Outfits stay on model","Hair color never drifts","Multiple characters supported"];function bp(){return t.jsxs("section",{id:"character-consistency",className:"py-24 md:py-32 bg-gradient-to-b from-white via-indigo-50/40 to-white relative overflow-hidden",children:[t.jsx("div",{className:"absolute top-0 left-1/4 w-[600px] h-[600px] bg-gradient-to-br from-indigo-200/40 via-fuchsia-200/30 to-transparent blur-[120px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[600px] bg-gradient-to-tr from-amber-200/30 via-pink-200/30 to-transparent blur-[120px] rounded-full pointer-events-none"}),t.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-7xl relative z-10",children:[t.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-indigo-50 to-fuchsia-50 border border-indigo-200/60 text-xs font-bold tracking-[0.15em] text-indigo-700 mb-6 uppercase",children:[t.jsx(Z,{className:"w-3.5 h-3.5"})," Character Consistency Engine"]}),t.jsxs("h2",{className:"text-4xl md:text-6xl font-extrabold tracking-tight mb-6 leading-[1.05] text-slate-900",children:["Same Character."," ",t.jsx("span",{className:"bg-gradient-to-r from-indigo-600 via-violet-600 to-fuchsia-600 bg-clip-text text-transparent",children:"Every Chapter."})," ","Every Page."]}),t.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"The biggest weakness of AI ebooks is broken. Your hero looks the same on page 3, page 47, and page 180. Same face. Same outfit. Same world."})]}),t.jsxs(R.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"relative mb-20",children:[t.jsx("div",{className:"absolute -inset-6 bg-gradient-to-r from-indigo-500/20 via-fuchsia-500/20 to-amber-500/20 blur-3xl rounded-[2.5rem] pointer-events-none"}),t.jsxs("div",{className:"relative rounded-3xl bg-white border border-slate-200 shadow-2xl shadow-indigo-500/10 p-6 md:p-10",children:[t.jsxs("div",{className:"flex items-center justify-between mb-6 flex-wrap gap-4",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"w-11 h-11 rounded-2xl bg-gradient-to-br from-indigo-500 to-fuchsia-600 flex items-center justify-center shadow-lg",children:t.jsx(Ko,{className:"w-5 h-5 text-white"})}),t.jsxs("div",{children:[t.jsx("div",{className:"text-xs font-bold tracking-[0.15em] text-indigo-600 uppercase",children:"Character Lock"}),t.jsx("div",{className:"text-base font-extrabold text-slate-900",children:"Luna · 8 years old · Yellow dress · Red curly pigtails"})]})]}),t.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-emerald-50 border border-emerald-200",children:[t.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-500 animate-pulse"}),t.jsx("span",{className:"text-xs font-bold text-emerald-700 tracking-wide",children:"LOCKED ACROSS 180 PAGES"})]})]}),t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:xp.map((e,r)=>t.jsxs(R.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.5,delay:r*.1},whileHover:{y:-6},className:"group relative rounded-2xl overflow-hidden border border-slate-200 shadow-lg bg-slate-50","data-testid":`character-scene-${r}`,children:[t.jsx("div",{className:"aspect-square overflow-hidden",children:t.jsx("img",{src:e.src,alt:`${e.label}: ${e.caption}`,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"})}),t.jsx("div",{className:"absolute top-3 left-3 px-2.5 py-1 rounded-full bg-white/95 backdrop-blur-sm text-[10px] font-extrabold tracking-[0.15em] text-slate-900 shadow",children:e.label}),t.jsxs("div",{className:"absolute bottom-3 left-3 right-3 px-3 py-2 rounded-xl bg-slate-900/80 backdrop-blur-sm text-white text-xs font-semibold flex items-center justify-between",children:[t.jsx("span",{children:e.caption}),t.jsxs("span",{className:"flex items-center gap-1 text-emerald-300",children:[t.jsx(ne,{className:"w-3.5 h-3.5",strokeWidth:3})," Match"]})]})]},r))}),t.jsx("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2",children:gp.map((e,r)=>t.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-slate-700",children:[t.jsx("div",{className:"w-5 h-5 rounded-full bg-gradient-to-br from-emerald-400 to-teal-600 flex items-center justify-center shadow",children:t.jsx(ne,{className:"w-3 h-3 text-white",strokeWidth:3})}),e]},r))})]})]}),t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 relative",children:Do.map((e,r)=>t.jsxs(R.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:r*.1},className:"relative group","data-testid":`consistency-step-${r}`,children:[t.jsxs("div",{className:"relative h-full rounded-3xl bg-white border border-slate-200 p-7 shadow-md hover:shadow-2xl hover:-translate-y-1 transition-all duration-500 overflow-hidden",children:[t.jsx("div",{className:`absolute -top-12 -right-12 w-32 h-32 bg-gradient-to-br ${e.gradient} opacity-15 blur-3xl rounded-full pointer-events-none`}),t.jsxs("div",{className:"absolute top-6 right-6 text-6xl font-extrabold text-slate-100 select-none leading-none",children:["0",r+1]}),t.jsx("div",{className:`relative w-12 h-12 rounded-2xl bg-gradient-to-br ${e.gradient} flex items-center justify-center mb-5 shadow-lg group-hover:scale-110 group-hover:rotate-3 transition-transform duration-500`,children:t.jsx(e.icon,{className:"w-6 h-6 text-white",strokeWidth:2.5})}),t.jsx("h3",{className:"relative text-xl font-extrabold mb-3 tracking-tight text-slate-900",children:e.title}),t.jsx("p",{className:"relative text-sm leading-relaxed text-slate-600",children:e.description})]}),r<Do.length-1&&t.jsx("div",{className:"hidden md:flex absolute top-1/2 -right-4 -translate-y-1/2 z-10 w-8 h-8 rounded-full bg-white border border-slate-200 shadow items-center justify-center",children:t.jsx(Rt,{className:"w-4 h-4 text-slate-400"})})]},r))})]})]})}const yp=[{icon:Ga,title:"Lead Generation",desc:"Grow massive email lists by offering high value ebooks in exchange for subscriber emails.",tactics:["Offer free ebooks for emails","Add opt ins to blogs and videos","Use in tripwire funnels"],gradient:"from-blue-500 to-cyan-500",bg:"from-blue-50 to-cyan-50/50",chip:"bg-blue-100 text-blue-700"},{icon:Uo,title:"Authority and Credibility",desc:"Position yourself as the go to expert in your niche by publishing a comprehensive book on the subject.",tactics:["Showcase your expertise","Build trust with insights","Highlight real case studies"],gradient:"from-
2amber-500 to-orange-500",bg:"from-amber-50 to-orange-50/50",chip:"bg-amber-100 text-amber-700"},{icon:Me,title:"Affiliate Marketing",desc:"Embed affiliate links natively inside valuable content. Readers click and buy naturally while learning.",tactics:["Embed affiliate links in chapters","Recommend tools and courses","Include a top resources page"],gradient:"from-emerald-500 to-teal-500",bg:"from-emerald-50 to-teal-50/50",chip:"bg-emerald-100 text-emerald-700"},{icon:Ya,title:"Content Repurposing",desc:"Turn dead blog posts and old YouTube videos into fresh, high ticket ebooks you can sell or give away.",tactics:["Turn blogs into ebooks","Break chapters into social posts","Use content in emails and videos"],gradient:"from-violet-500 to-purple-500",bg:"from-violet-50 to-purple-50/50",chip:"bg-violet-100 text-violet-700"},{icon:Xa,title:"Passive Income",desc:"Publish directly to Amazon KDP, Etsy, or Gumroad. Generate royalties while you sleep.",tactics:["Sell on Amazon KDP and Etsy","Bundle with other products","Use as entry level offers"],gradient:"from-rose-500 to-pink-500",bg:"from-rose-50 to-pink-50/50",chip:"bg-rose-100 text-rose-700"},{icon:Wo,title:"Email Marketing Boost",desc:"Stop sending boring newsletters. Send full mini reports and guides that blow your subscribers away.",tactics:["Re engage cold subscribers","Segment lists by reader interest","Run exclusive subscriber promos"],gradient:"from-indigo-500 to-blue-500",bg:"from-indigo-50 to-blue-50/50",chip:"bg-indigo-100 text-indigo-700"},{icon:qo,title:"Branding",desc:"Elevate brand perception with professionally formatted, stunning visual digital assets.",tactics:["Create a branded ebook library","Use consistent visuals everywhere","Add strong calls to action"],gradient:"from-fuchsia-500 to-pink-500",bg:"from-fuchsia-50 to-pink-50/50",chip:"bg-fuchsia-100 text-fuchsia-700"},{icon:Ja,title:"Sales Funnel Boost",desc:"Add premium ebooks as upsells, downsells, or order bumps to lift average cart value.",tactics:["Make it the first step in your funnel","Follow up with paid upsells","Combine with webinars or courses"],gradient:"from-cyan-500 to-blue-500",bg:"from-cyan-50 to-blue-50/50",chip:"bg-cyan-100 text-cyan-700"},{icon:nt,title:"Customer Education",desc:"Onboard new clients with custom generated training guides tailored to their exact needs.",tactics:["Teach product usage step by step","Ship bonus ebooks with orders","Reduce refunds with clarity"],gradient:"from-orange-500 to-red-500",bg:"from-orange-50 to-red-50/50",chip:"bg-orange-100 text-orange-700"}];function vp(){return t.jsxs("section",{id:"profit",className:"py-24 md:py-32 bg-gradient-to-b from-white via-slate-50 to-white relative overflow-hidden",children:[t.jsx("div",{className:"absolute top-0 right-0 w-[500px] h-[500px] bg-gradient-to-br from-fuchsia-200/30 to-indigo-200/30 blur-[120px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute bottom-0 left-0 w-[500px] h-[500px] bg-gradient-to-tr from-emerald-200/20 to-cyan-200/20 blur-[120px] rounded-full pointer-events-none"}),t.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-6xl relative z-10",children:[t.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-20",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-emerald-50 to-cyan-50 border border-emerald-200/50 text-xs font-bold tracking-[0.15em] text-emerald-700 mb-6 uppercase",children:[t.jsx(Ee,{className:"w-3.5 h-3.5","aria-hidden":"true"})," Nine Revenue Engines"]}),t.jsxs("h2",{className:"text-4xl md:text-6xl font-extrabold tracking-tight mb-6 leading-[1.05]",children:["How Marketers"," ",t.jsx("span",{className:"bg-gradient-to-r from-emerald-500 via-teal-500 to-cyan-500 bg-clip-text text-transparent",children:"Profit."})]}),t.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"More than a writing tool. This is an engine for generating high value digital assets that drive real revenue across nine proven channels."})]}),t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:y
2p.map((e,r)=>t.jsxs(R.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:r*.05},className:`group relative p-7 md:p-8 rounded-3xl bg-gradient-to-br ${e.bg} border border-white shadow-sm hover:shadow-2xl hover:-translate-y-1 transition-all duration-500 overflow-hidden flex flex-col`,"data-testid":`profit-method-${r}`,children:[t.jsx("div",{className:`absolute top-0 right-0 w-40 h-40 bg-gradient-to-br ${e.gradient} opacity-0 group-hover:opacity-10 blur-3xl rounded-full transition-opacity duration-500`}),t.jsxs("div",{className:"flex items-start justify-between mb-5",children:[t.jsx("div",{className:`w-14 h-14 rounded-2xl bg-gradient-to-br ${e.gradient} flex items-center justify-center text-white shadow-lg group-hover:scale-110 group-hover:rotate-3 transition-transform duration-500`,children:t.jsx(e.icon,{className:"w-7 h-7",strokeWidth:2.5,"aria-hidden":"true"})}),t.jsxs("span",{className:`text-[10px] font-extrabold tracking-[0.15em] uppercase px-2.5 py-1 rounded-full ${e.chip}`,children:["0",r+1]})]}),t.jsx("h3",{className:"text-xl font-extrabold text-slate-900 mb-2 tracking-tight",children:e.title}),t.jsx("p",{className:"text-slate-600 text-sm leading-relaxed mb-5",children:e.desc}),t.jsx("ul",{className:"space-y-2.5 mt-auto pt-4 border-t border-slate-200/70",children:e.tactics.map((o,n)=>t.jsxs("li",{className:"flex items-start gap-2.5",children:[t.jsx("div",{className:`shrink-0 mt-0.5 w-4 h-4 rounded-full bg-gradient-to-br ${e.gradient} flex items-center justify-center shadow-sm`,"aria-hidden":"true",children:t.jsx(ne,{className:"w-2.5 h-2.5 text-white",strokeWidth:4,"aria-hidden":"true"})}),t.jsx("span",{className:"text-[13px] font-semibold text-slate-700 leading-snug",children:o})]},n))})]},r))}),t.jsx(R.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mt-12 text-center",children:t.jsxs("div",{className:"inline-flex flex-wrap items-center justify-center gap-2 max-w-full px-5 py-3 rounded-2xl md:rounded-full bg-gradient-to-r from-emerald-500 to-teal-500 text-white shadow-lg",children:[t.jsx(Ee,{className:"w-4 h-4 shrink-0","aria-hidden":"true"}),t.jsx("span",{className:"text-sm font-extrabold tracking-wide leading-snug text-center",children:"27 specific tactics. One platform. Pick the ones that fit your business."})]})})]})]})}const wp="/assets/photo_earnings-QJnIQhrS.webp";function jp(){return t.jsxs("section",{className:"py-24 md:py-32 bg-gradient-to-br from-slate-900 via-indigo-950 to-slate-900 relative overflow-hidden",children:[t.jsx("div",{className:"absolute top-0 right-0 w-[700px] h-[700px] bg-gradient-to-br from-fuchsia-500/30 to-indigo-500/20 blur-[120px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute bottom-0 left-0 w-[600px] h-[600px] bg-gradient-to-tr from-emerald-500/20 to-cyan-500/10 blur-[120px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_50%_50%,rgba(99,102,241,0.1)_0%,transparent_70%)] pointer-events-none"}),t.jsx("div",{className:"container mx-auto px-4 md:px-6 max-w-6xl relative z-10",children:t.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-12 lg:gap-20",children:[t.jsxs(R.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"flex-1 space-y-8",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-emerald-500/20 to-teal-500/20 border border-emerald-400/30 text-sm font-bold text-emerald-300 backdrop-blur-sm",children:[t.jsx(Ee,{className:"w-4 h-4"})," Real Results, Real Publishers"]}),t.jsxs("h2",{className:"text-4xl md:text-6xl font-extrabold tracking-tight text-white leading-[1.05]",children:["Scale Your Passive Income"," ",t.jsx("span",{className:"bg-gradient-to-r from-emerald-300 via-cyan-300 to-blue-300 bg-clip-text text-transparent",children:"Effortlessly."})]}),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:"absolute -inset-4 bg-gradient-to-r from-emerald-500/20 to-cyan-500/20 blur-2xl rounded-3xl"}),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:"text-7xl md:text-8xl font-black tracking-tight bg-gradient-to-r from-emerald-300 via-teal-300 to-cyan-300 bg-clip-text text-transparent leading-none",children:"$1k to $5k+"}),t.jsxs("p",{className:"text-2xl font-bold text-white/90 mt-2 flex items-center gap-2",children:["per month ",t.jsx("span",{className:"text-base font-medium text-white/60",children:"in recurring KDP royalties"})]})]})]}),t.jsx("p",{className:"text-lg text-slate-300 leading-relaxed max-w-xl",children:"Our top users are publishing high quality, beautifully formatted ebooks on Amazon KDP, Etsy, and their own funnels. They aren't spending hours formatting or paying graphic designers."}),t.jsx("div",{className:"grid sm:grid-cols-3 gap-4 pt-4",children:[{quote:"Game changer.",author:"Mark",role:"KDP Publisher",color:"from-emerald-400 to-teal-400"},{quote:"500+ daily leads.",author:"Jessica",role:"Coach",color:"from-cyan-400 to-blue-400"},{quote:"Fastest ROI ever.",author:"David",role:"Creator",color:"from-fuchsia-400 to-pink-400"}].map((e,r)=>t.jsxs("div",{className:"rounded-2xl p-5 bg-white/5 backdrop-blur-sm border border-white/10 hover:bg-white/10 transition-colors",children:[t.jsx("div",{className:"flex text-amber-400 mb-2",children:[1,2,3,4,5].map(o=>t.jsx(De,{className:"w-3.5 h-3.5 fill-current"},o))}),t.jsxs("p",{className:"text-white font-bold text-sm mb-2",children:['"',e.quote,'"']}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("div",{className:`w-7 h-7 rounded-full bg-gradient-to-br ${e.color} flex items-center justify-center text-xs font-extrabold text-white`,children:e.author[0]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-bold text-white/90",children:e.author}),t.jsx("p",{className:"text-[10px] text-white/50 uppercase tracking-wider",children:e.role})]})]})]},r))})]}),t.jsxs(R.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"flex-1 w-full relative",children:[t.jsx("div",{className:"absolute -inset-8 bg-gradient-to-br from-fuchsia-500/30 to-emerald-500/30 blur-3xl rounded-full"}),t.jsx("div",{className:"relative rounded-3xl border border-white/20 bg-white/10 backdrop-blur-xl shadow-2xl p-2",children:t.jsx("img",{src:wp,alt:"Earnings on phone",loading:"lazy",className:"w-full h-auto rounded-2xl object-cover"})}),t.jsxs(R.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.6},className:"absolute -top-6 -left-6 bg-white rounded-2xl shadow-2xl p-4 flex items-center gap-3 border border-emerald-100",children:[t.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-emerald-500 to-teal-500 flex items-center justify-center",children:t.jsx(Fo,{className:"w-5 h-5 text-white",strokeWidth:3})}),t.jsxs("div",{children:[t.jsx("p",{className:"text-2xl font-black text-slate-900 leading-none",children:"+247%"}),t.jsx("p",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-widest",children:"vs last quarter"})]})]}),t.jsxs(R.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.8},className:"absolute -bottom-6 -right-6 bg-white rounded-2xl shadow-2xl p-4 border border-fuchsia-100",children:[t.jsx("p",{className:"text-[10px] font-bold text-fuchsia-600 uppercase tracking-widest mb-1",children:"Top earner"}),t.jsxs("p",{className:"text-xl font-black text-slate-900 leading-none",children:["$8,420",t.jsx("span",{className:"text-sm font-bold text-slate-500",children:"/mo"})]})]})]})]})})]})}function Ws(e,[r,o]){return Math.min(o,Math.max(r,e))}var Np=u.createContext(void 0);function qs(e){const r=u.useContext(Np);return e||r||"ltr"}function kp(e){const r=u.useRef({value:e,previous:e});return u.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}var Ks=["PageUp","PageDown"],Us=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Hs={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Ye="Slider",[mr,Cp,Pp]=jr(Ye),[Gs]=ze(Ye,[Pp]),[Ep,Bt]=Gs(Ye),Ys=u.forwardRef((e,r)=>{const{name:o,min:n=0,max:s=100,step:a=1,orientation:i="horizontal",disabled:l=!1,minStepsBetweenThumbs:c=0,defaultValue:d=[n],value:p,onValueChange:m=()=>{},onValueCommit:f=()=>{},inverted:h=!1,form:b,...x}=e,g=u.useRef(new Set),y=u.useRef(0),w=i==="horizontal"?Ap:Sp,[j=[],C]=it({prop:p,defaultProp:d,onChange:O=>{[...g.current][y.current]?.focus(),m(O)}}),k=u.useRef(j);function P(O){const B=Op(j,O);$(O,B)}function N(O){$(O,y.current)}function L(){const O=k.current[y.current];j[y.current]!==O&&f(j)}function $(O,B,{commit:F}={commit:!1}){const S=$p(a),z=zp(Math.round((O-n)/a)*a+n,S),I=Ws(z,[n,s]);C((D=[])=>{const _=_p(D,I,B);if(Mp(_,c*a)){y.current=_.indexOf(I);const V=String(_)!==String(D);return V&&F&&f(_),V?_:D}else return D})}return t.jsx(Ep,{scope:e.__scopeSlider,name:o,disabled:l,min:n,max:s,valueIndexToChangeRef:y,thumbs:g.current,values:j,orientation:i,form:b,children:t.jsx(mr.Provider,{scope:e.__scopeSlider,children:t.jsx(mr.Slot,{scope:e.__scopeSlider,children:t.jsx(w,{"aria-disabled":l,"data-disabled":l?"":void 0,...x,ref:r,onPointerDown:q(x.onPointerDown,()=>{l||(k.current=j)}),min:n,max:s,inverted:h,onSlideStart:l?void 0:P,onSlideMove:l?void 0:N,onSlideEnd:l?void 0:L,onHomeKeyDown:()=>!l&&$(n,0,{commit:!0}),onEndKeyDown:()=>!l&&$(s,j.length-1,{commit:!0}),onStepKeyDown:({event:O,direction:B})=>{if(!l){const z=Ks.includes(O.key)||O.shiftKey&&Us.includes(O.key)?10:1,I=y.current,D=j[I],_=a*z*B;$(D+_,I,{commit:!0})}}})})})})});Ys.displayName=Ye;var[Xs,Js]=Gs(Ye,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Ap=u.forwardRef((e,r)=>{const{min:o,max:n,dir:s,inverted:a,onSlideStart:i,onSlideMove:l,onSlideEnd:c,onStepKeyDown:d,...p}=e,[m,f]=u.useState(null),h=X(r,w=>f(w)),b=u.useRef(void 0),x=qs(s),g=x==="ltr",y=g&&!a||!g&&a;function v(w){const j=b.current||m.getBoundingClientRect(),C=[0,j.width],P=zr(C,y?[o,n]:[n,o]);return b.current=j,P(w-j.left)}return t.jsx(Xs,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:t.jsx(Qs,{dir:x,"data-orientation":"horizontal",...p,ref:h,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const j=v(w.clientX);i?.(j)},onSlideMove:w=>{const j=v(w.clientX);l?.(j)},onSlideEnd:()=>{b.current=void 0,c?.()},onStepKeyDown:w=>{const C=Hs[y?"from-left":"from-right"].includes(w.key);d?.({event:w,direction:C?-1:1})}})})}),Sp=u.forwardRef((e,r)=>{const{min:o,max:n,inverted:s,onSlideStart:a,onSlideMove:i,onSlideEnd:l,onStepKeyDown:c,...d}=e,p=u.useRef(null),m=X(r,p),f=u.useRef(void 0),h=!s;function b(x){const g=f.current||p.current.getBoundingClientRect(),y=[0,g.height],w=zr(y,h?[n,o]:[o,n]);return f.current=g,w(x-g.top)}return t.jsx(Xs,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:t.jsx(Qs,{"data-orientation":"vertical",...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:x=>{const g=b(x.clientY);a?.(g)},onSlideMove:x=>{const g=b(x.clientY);i?.(g)},onSlideEnd:()=>{f.current=void 0,l?.()},onStepKeyDown:x=>{const y=Hs[h?"from-bottom":"from-top"].includes(x.key);c?.({event:x,direction:y?-1:1})}})})}),Qs=u.forwardRef((e,r)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:l,onStepKeyDown:c,...d}=e,p=Bt(Ye,o);return t.jsx(U.span,{...d,ref:r,onKeyDown:q(e.onKeyDown,m=>{m.key==="Home"?(i(m),m.preventDefault()):m.key==="End"?(l(m),m.preventDefault()):Ks.concat(Us).includes(m.key)&&
2(c(m),m.preventDefault())}),onPointerDown:q(e.onPointerDown,m=>{const f=m.target;f.setPointerCapture(m.pointerId),m.preventDefault(),p.thumbs.has(f)?f.focus():n(m)}),onPointerMove:q(e.onPointerMove,m=>{m.target.hasPointerCapture(m.pointerId)&&s(m)}),onPointerUp:q(e.onPointerUp,m=>{const f=m.target;f.hasPointerCapture(m.pointerId)&&(f.releasePointerCapture(m.pointerId),a(m))})})}),Zs="SliderTrack",ea=u.forwardRef((e,r)=>{const{__scopeSlider:o,...n}=e,s=Bt(Zs,o);return t.jsx(U.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:r})});ea.displayName=Zs;var pr="SliderRange",ta=u.forwardRef((e,r)=>{const{__scopeSlider:o,...n}=e,s=Bt(pr,o),a=Js(pr,o),i=u.useRef(null),l=X(r,i),c=s.values.length,d=s.values.map(f=>na(f,s.min,s.max)),p=c>1?Math.min(...d):0,m=100-Math.max(...d);return t.jsx(U.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:l,style:{...e.style,[a.startEdge]:p+"%",[a.endEdge]:m+"%"}})});ta.displayName=pr;var fr="SliderThumb",ra=u.forwardRef((e,r)=>{const o=Cp(e.__scopeSlider),[n,s]=u.useState(null),a=X(r,l=>s(l)),i=u.useMemo(()=>n?o().findIndex(l=>l.ref.current===n):-1,[o,n]);return t.jsx(Tp,{...e,ref:a,index:i})}),Tp=u.forwardRef((e,r)=>{const{__scopeSlider:o,index:n,name:s,...a}=e,i=Bt(fr,o),l=Js(fr,o),[c,d]=u.useState(null),p=X(r,v=>d(v)),m=c?i.form||!!c.closest("form"):!0,f=ps(c),h=i.values[n],b=h===void 0?0:na(h,i.min,i.max),x=Ip(n,i.values.length),g=f?.[l.size],y=g?Dp(g,b,l.direction):0;return u.useEffect(()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}},[c,i.thumbs]),t.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${b}% + ${y}px)`},children:[t.jsx(mr.ItemSlot,{scope:e.__scopeSlider,children:t.jsx(U.span,{role:"slider","aria-label":e["aria-label"]||x,"aria-valuemin":i.min,"aria-valuenow":h,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:p,style:h===void 0?{display:"none"}:e.style,onFocus:q(e.onFocus,()=>{i.valueIndexToChangeRef.current=n})})}),m&&t.jsx(oa,{name:s??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:h},n)]})});ra.displayName=fr;var Rp="RadioBubbleInput",oa=u.forwardRef(({__scopeSlider:e,value:r,...o},n)=>{const s=u.useRef(null),a=X(s,n),i=kp(r);return u.useEffect(()=>{const l=s.current;if(!l)return;const c=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==r&&p){const m=new Event("input",{bubbles:!0});p.call(l,r),l.dispatchEvent(m)}},[i,r]),t.jsx(U.input,{style:{display:"none"},...o,ref:a,defaultValue:r})});oa.displayName=Rp;function _p(e=[],r,o){const n=[...e];return n[o]=r,n.sort((s,a)=>s-a)}function na(e,r,o){const a=100/(o-r)*(e-r);return Ws(a,[0,100])}function Ip(e,r){return r>2?`Value ${e+1} of ${r}`:r===2?["Minimum","Maximum"][e]:void 0}function Op(e,r){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-r)),n=Math.min(...o);return o.indexOf(n)}function Dp(e,r,o){const n=e/2,a=zr([0,50],[0,n]);return(n-a(r)*o)*o}function Lp(e){return e.slice(0,-1).map((r,o)=>e[o+1]-r)}function Mp(e,r){if(r>0){const o=Lp(e);return Math.min(...o)>=r}return!0}function zr(e,r){return o=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const n=(r[1]-r[0])/(e[1]-e[0]);return r[0]+n*(o-e[0])}}function $p(e){return(String(e).split(".")[1]||"").length}function zp(e,r){const o=Math.pow(10,r);return Math.round(e*o)/o}var sa=Ys,Bp=ea,Fp=ta,Vp=ra;const hr=u.forwardRef(({className:e,...r},o)=>t.jsxs(sa,{ref:o,className:re("relative flex w-full touch-none select-none items-center",e),...r,children:[t.jsx(Bp,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:t.jsx(Fp,{className:"absolute h-full bg-primary"})}),t.jsx(Vp,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));hr.displayName=sa.displayName;const Wp=.85,qp=.7;
2function Ze(e){return"$"+Math.round(e).toLocaleString("en-US")}function Kp(){const[e,r]=u.useState(11),[o,n]=u.useState(100),s=e*o,a=s*Wp,i=a*12,l=s*qp;return t.jsxs("section",{id:"earnings-calculator",className:"relative py-24 md:py-32 bg-gradient-to-b from-white via-indigo-50/40 to-white overflow-hidden",children:[t.jsx("div",{className:"absolute top-1/4 left-0 w-[500px] h-[500px] bg-gradient-to-br from-indigo-300/20 to-violet-300/20 blur-[130px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute bottom-0 right-0 w-[500px] h-[500px] bg-gradient-to-tr from-fuchsia-300/20 to-pink-300/20 blur-[130px] rounded-full pointer-events-none"}),t.jsxs("div",{className:"container relative mx-auto px-4 md:px-6 max-w-6xl",children:[t.jsxs(R.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-14",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-indigo-50 to-fuchsia-50 border border-indigo-200/60 text-xs font-bold tracking-[0.2em] text-indigo-700 mb-5 uppercase",children:[t.jsx(Z,{className:"w-3.5 h-3.5"})," Potential earnings"]}),t.jsxs("h2",{className:"text-4xl md:text-6xl font-extrabold tracking-tight text-slate-900 leading-[1.05] mb-5",children:["How Much"," ",t.jsx("span",{className:"inline-block italic pr-2 bg-gradient-to-r from-indigo-600 via-violet-600 to-fuchsia-600 bg-clip-text text-transparent",children:"You'd Earn"})," ","Publishing with eBookWriter AI"]}),t.jsx("p",{className:"text-lg text-slate-600 max-w-2xl mx-auto leading-relaxed",children:"This shows potential royalties from book sales, based on Amazon KDP. You keep 85 percent, payment processor fees included. You can also sell the same ebooks on other platforms like Etsy, Gumroad, or your own website."})]}),t.jsxs("div",{className:"grid lg:grid-cols-2 gap-6 lg:gap-8 items-start",children:[t.jsxs(R.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"rounded-3xl bg-white border border-slate-200 shadow-[0_30px_80px_-30px_rgba(79,70,229,0.35)] p-7 md:p-9",children:[t.jsxs("div",{className:"flex items-center gap-4 roun
2ded-2xl bg-slate-50 border border-slate-100 p-5 mb-8",children:[t.jsx("div",{className:"w-11 h-11 rounded-xl bg-gradient-to-br from-indigo-500 to-violet-600 flex items-center justify-center flex-shrink-0",children:t.jsx(Pe,{className:"w-5 h-5 text-white"})}),t.jsxs("div",{children:[t.jsx("p",{className:"font-extrabold text-slate-900 leading-tight",children:"Book sales scenario"}),t.jsx("p",{className:"text-sm text-slate-500",children:"Price x copies x 85 percent royalty"})]})]}),t.jsxs("div",{className:"mb-8",children:[t.jsxs("div",{className:"flex items-end justify-between mb-4",children:[t.jsx("label",{className:"text-sm font-bold text-slate-700",children:"Book price"}),t.jsx("span",{className:"text-2xl font-extrabold bg-gradient-to-r from-indigo-600 to-violet-600 bg-clip-text text-transparent tabular-nums","data-testid":"value-book-price",children:Ze(e)})]}),t.jsx(hr,{value:[e],min:9,max:15,step:1,onValueChange:c=>r(c[0]),"data-testid":"slider-book-price","aria-label":"Book price"}),t.jsxs("div",{className:"flex justify-between text-xs text-slate-400 mt-2 tabular-nums",children:[t.jsx("span",{children:"$9"}),t.jsx("span",{children:"$15"})]})]}),t.jsxs("div",{className:"mb-8",children:[t.jsxs("div",{className:"flex items-end justify-between mb-4",children:[t.jsx("label",{className:"text-sm font-bold text-slate-700",children:"Copies sold per month"}),t.jsx("span",{className:"text-2xl font-extrabold bg-gradient-to-r from-indigo-600 to-violet-600 bg-clip-text text-transparent tabular-nums","data-testid":"value-copies",children:o.toLocaleString("en-US")})]}),t.jsx(hr,{value:[o],min:10,max:1e3,step:10,onValueChange:c=>n(c[0]),"data-testid":"slider-copies","aria-label":"Copies sold per month"}),t.jsxs("div",{className:"flex justify-between text-xs text-slate-400 mt-2 tabular-nums",children:[t.jsx("span",{children:"10"}),t.jsx("span",{children:"1,000"})]})]}),t.jsxs("div",{className:"flex items-center justify-between border-t border-slate-100 pt-5",children:[t.jsx("span",{className:"text-sm font-medium text-slate-500",children:"Potential book sales"}),t.jsxs("span",{className:"font-extrabold text-slate-900 tabular-nums","data-testid":"value-gross-sales",children:[Ze(s)," / month"]})]})]}),t.jsxs(R.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.1},className:"space-y-6",children:[t.jsxs("div",{className:"relative rounded-3xl bg-gradient-to-br from-indigo-600 via-violet-600 to-fuchsia-600 text-white shadow-2xl shadow-violet-500/30 p-7 md:p-9 overflow-hidden",children:[t.jsx("div",{className:"absolute -top-12 -right-12 w-48 h-48 bg-white/10 blur-2xl rounded-full pointer-events-none"}),t.jsxs("div",{className:"relative flex items-center justify-between gap-3 mb-6",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-white/15 border border-white/20 text-[10px] font-extrabold tracking-[0.18em] uppercase",children:[t.jsx(Me,{className:"w-3.5 h-3.5"})," Your estimated payout"]}),t.jsxs("div",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-emerald-400/20 border border-emerald-300/30 text-[10px] font-extrabold tracking-[0.12em] uppercase text-emerald-100",children:[t.jsx(Ee,{className:"w-3.5 h-3.5"}),t.jsx("span",{"data-testid":"badge-passive-income",children:"Hands free passive income"})]})]}),t.jsx("p",{className:"relative text-sm font-semibold text-indigo-100 mb-1",children:"Estimated author payout"}),t.jsxs("div",{className:"relative flex items-baseline gap-2",children:[t.jsx("span",{className:"text-6xl md:text-7xl font-black tracking-tight tabular-nums","data-testid":"value-monthly-payout",children:Ze(a)}),t.jsx("span",{className:"text-xl font-bold text-indigo-100",children:"/ month"})]}),t.jsxs("p",{className:"relative text-sm text-indigo-100 mt-1 tabular-nums","data-testid":"value-yearly-payout",children:[Ze(i)," per year"]}),t.jsxs("div",{className:"relative mt-6 rounded-2xl bg-white/10 border border-white/15 p-4 text-sm leading-relaxed text-indigo-50",children:[t.jsx("span",{className:"font-bold text-white",children:"Your eBookWriter AI share (85 percent)."})," ","Estimated author earnings based on your price and sales. This is not a monthly subscription fee."]})]}),t.jsxs("div",{className:"flex items-center justify-between rounded-2xl bg-white border border-slate-200 shadow-sm p-6",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-bold text-slate-500 mb-1",children:"Amazon KDP (70%)"}),t.jsxs("p",{className:"text-3xl font-black text-slate-900 tabular-nums",children:[t.jsx("span",{"data-testid":"value-kdp-p
2ayout",children:Ze(l)}),t.jsx("span",{className:"text-base font-bold text-slate-400",children:" / month"})]})]}),t.jsx(Me,{className:"w-10 h-10 text-slate-200",strokeWidth:2.5})]})]})]})]})]})}const Up=[{feature:"Speed",icon:Le,iconBg:"from-amber-400 to-orange-500",us:"Minutes",general:"Hours",freelancers:"Weeks",diy:"Months"},{feature:"Cost",icon:Me,iconBg:"from-emerald-400 to-teal-500",us:"$49 to $199/mo",general:"$20/mo",freelancers:"$500 to $2,000+",diy:"Your time"},{feature:"Quality & Flow",icon:Z,iconBg:"from-fuchsia-400 to-pink-500",us:"Highly structured",general:"Repetitive",freelancers:"Hit or miss",diy:"Varies"},{feature:"Formatting",icon:er,iconBg:"from-indigo-400 to-violet-500",us:"Instant KDP/EPUB",general:"Raw text only",freelancers:"Extra fee",diy:"Manual"},{feature:"Cover Design",icon:Ho,iconBg:"from-rose-400 to-red-500",us:"AI covers included",general:"None",freelancers:"$50 to $150 extra",diy:"DIY Canva"},{feature:"Affiliate Links",icon:Qa,iconBg:"from-cyan-400 to-blue-500",us:"Automated",general:"Manual",freelancers:"Manual",diy:"Manual"}];function Hp(){return t.jsxs("section",{id:"comparison",className:"py-24 md:py-32 relative overflow-hidden bg-gradient-to-b from-slate-950 via-indigo-950 to-slate-950",children:[t.jsx("div",{className:"absolute top-1/4 -left-32 w-[600px] h-[600px] bg-fuchsia-500/20 blur-[140px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute bottom-1/4 -right-32 w-[600px] h-[600px] bg-indigo-400/25 blur-[140px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[400px] h-[400px] bg-amber-300/10 blur-[120px] rounded-full pointer-events-none"}),t.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-6xl relative z-10",children:[t.jsxs("div",{className:"text-center mb-16 max-w-3xl mx-auto",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-amber-400/20 to-fuchsia-500/20 border border-amber-300/30 backdrop-blur text-xs font-bold tracking-[0.15em] text-amber-200 mb-6 uppercase",children:[t.jsx(bt,{className:"w-3.5 h-3.5 text-amber-300"})," The clear winner"]}),t.jsxs("h2",{className:"text-4xl md:text-6xl font-extrabold tracking-tight mb-6 leading-[1.05] text-white",children:["eBookWriter AI vs."," ",t.jsx("span",{className:"bg-gradient-to-r from-slate-400 to-slate-500 bg-clip-text text-transparent",children:"the Old Way."})]}),t.jsx("p",{className:"text-lg md:text-xl text-slate-300",children:"See why serious creators choose a dedicated publishing engine over generic tools or expensive freelancers."})]}),t.jsxs(R.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"relative",children:[t.jsx("div",{className:"absolute -inset-4 bg-gradient-to-br from-indigo-500/30 via-fuchsia-500/30 to-amber-500/20 blur-3xl rounded-[3rem] -z-10"}),t.jsxs("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 z-30 hidden md:flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-amber-400 to-orange-500 text-white text-[10px] font-extrabold uppercase tracking-[0.2em] shadow-lg shadow-amber-500/40 whitespace-nowrap",children:[t.jsx(Uo,{className:"w-3.5 h-3.5 fill-current","aria-hidden":"true"})," Winner across the board"]}),t.jsx("div",{className:"relative rounded-3xl overflow-hidden bg-white shadow-[0_30px_120px_-20px_rgba(99,102,241,0.5)] border border-white/20",children:t.jsx("div",{className:"overflow-x-auto",children:t.jsxs("table",{className:"w-full text-left min-w-[820px]",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{className:"p-6 font-extrabold text-[11px] text-slate-500 uppercase tracking-widest bg-gradient-to-br from-slate-50 to-slate-100 border-b-2 border-slate-200 w-1/4",children:"Capability"}),t.jsxs("th",{className:"p-0 border-b-2 border-indigo-300 w-1/4 relative align-top",children:[t.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-indigo-600 via-violet-600 to-fuchsia-600"}),t.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_top_right,rgba(255,255,255,0.25),transparent_60%)]"}),t.jsxs("div",{className:"relative flex items-center gap-2 px-6 py-6 text-white font-extrabold",children:[t.jsx("div",{className:"w-8 h-8 rounded-xl bg-white/20 backdrop-blur flex items-center justify-center shadow-lg",children:t.jsx(bt,{className:"w-4 h-4 text-amber-300 fill-amber-300","aria-hidden":"true"})}),t.jsxs("div",{className:"flex flex-col leading-tight",children:[t.jsx("span",{className:"text-base",children:"eBookWriter AI"}),t.jsx("span",{className:"text-[9px] font-bold uppercase tracking-widest text-amber-200/90",children:"Recommended"})]})]})]}),t.jsx("th",{className:"p-6 font-bold text-sm text-slate-700 bg-gradient-to-b from-slate-50 to-white border-b-2 border-slate-200 w-1/6",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{children:"Generic AI"}),t.jsx("span",{className:"text-[9px] font-bold uppercase tracking-widest text-slate-400",children:"ChatGPT, Gemini"})]})}),t.jsx("th",{className:"p-6 font-bold text-sm text-slate-700 bg-gradient-to-b from-slate-50 to-white border-b-2 border-slate-200 w-1/6",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{children:"Freelancers"}),t.jsx("span",{className:"text-[9px] font-bold uppercase tracking-widest text-slate-400",children:"Upwork, Fiverr"})]})}),t.jsx("th",{className:"p-6 font-bold text-sm text-slate-700 bg-gradient-to-b from-slate-50 to-white border-b-2 border-slate-200 w-1/6",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{children:"DIY"}),t.jsx("span",{className:"text-[9px] font-bold uppercase tracking-widest text-slate-400",children:"You + Word"})]})})]})}),t.jsx("tbody",{children:Up.map((e,r)=>{const o=e.icon;return t.jsxs("tr",{className:`group transition-colors ${r%2===0?"bg-white":"bg-slate-50/50"} hover:bg-indigo-50/30`,children:[t.jsx("td",{className:"p-6 text-sm font-extrabold text-slate-900",children:t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:`w-9 h-9 rounded-xl bg-gradient-to-br ${e.iconBg} flex items-center justify-center shadow-md flex-shrink-0`,children:t.jsx(o,{className:"w-4 h-4 text-white",strokeWidth:2.5,"aria-hidden":"true"})}),e.feature]}
2)}),t.jsxs("td",{className:"p-6 text-sm font-extrabold text-slate-900 bg-gradient-to-r from-indigo-50 via-violet-50 to-fuchsia-50 border-l border-r border-indigo-100/70 relative",children:[t.jsx("div",{className:"absolute inset-y-0 left-0 w-0.5 bg-gradient-to-b from-indigo-500 via-violet-500 to-fuchsia-500"}),t.jsx("div",{className:"absolute inset-y-0 right-0 w-0.5 bg-gradient-to-b from-indigo-500 via-violet-500 to-fuchsia-500"}),t.jsxs("div",{className:"flex items-center gap-2.5",children:[t.jsx("div",{className:"w-6 h-6 rounded-full bg-gradient-to-br from-indigo-500 to-fuchsia-500 flex items-center justify-center flex-shrink-0 shadow-md shadow-fuchsia-500/30 group-hover:scale-110 transition-transform",children:t.jsx(ne,{className:"w-3.5 h-3.5 text-white",strokeWidth:3.5,"aria-hidden":"true"})}),t.jsx("span",{className:"bg-gradient-to-r from-indigo-700 to-fuchsia-700 bg-clip-text text-transparent",children:e.us})]})]}),t.jsx("td",{className:"p-6 text-sm text-slate-500",children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("div",{className:"w-6 h-6 rounded-full bg-gradient-to-br from-rose-100 to-rose-200 flex items-center justify-center flex-shrink-0 ring-1 ring-rose-200/60",children:t.jsx(Ce,{className:"w-3.5 h-3.5 text-rose-500",strokeWidth:3,"aria-hidden":"true"})}),t.jsx("span",{className:"font-medium",children:e.general})]})}),t.jsx("td",{className:"p-6 text-sm text-slate-500",children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("div",{className:"w-6 h-6 rounded-full bg-gradient-to-br from-rose-100 to-rose-200 flex items-center justify-center flex-shrink-0 ring-1 ring-rose-200/60",children:t.jsx(Ce,{className:"w-3.5 h-3.5 text-rose-500",strokeWidth:3,"aria-hidden":"true"})}),t.jsx("span",{className:"font-medium",children:e.freelancers})]})}),t.jsx("td",{className:"p-6 text-sm text-slate-500",children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("div",{className:"w-6 h-6 rounded-full bg-gradient-to-br from-rose-100 to-rose-200 flex items-center justify-center flex-shrink-0 ring-1 ring-rose-200/60",children:t.jsx(Ce,{className:"w-3.5 h-3.5 text-rose-500",strokeWidth:3,"aria-hidden":"true"})}),t.jsx("span",{className:"font-medium",children:e.diy})]})})]},r)})})]})})})]}),t.jsx(R.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-10 max-w-5xl mx-auto",children:[{value:"6 of 6",label:"categories won",color:"from-amber-400 to-orange-500",icon:bt},{value:"10x",label:"faster than freelancers",color:"from-fuchsia-400 to-pink-500",icon:Le},{value:"90% less",label:"than hiring a team",color:"from-emerald-400 to-teal-500",icon:Me}].map((e,r)=>{const o=e.icon;return t.jsxs("div",{className:"rounded-2xl bg-white/[0.04] border border-white/10 backdrop-blur p-5 flex items-center gap-4","data-testid":`comparison-stat-${r}`,children:[t.jsx("div",{className:`w-12 h-12 rounded-xl bg-gradient-to-br ${e.color} flex items-center justify-center shadow-lg shadow-black/40`,children:t.jsx(o,{className:"w-6 h-6 text-white",strokeWidth:2.5,"aria-hidden":"true"})}),t.jsxs("div",{children:[t.jsx("div",{className:"text-2xl font-black text-white leading-none",children:e.value}),t.jsx("div",{className:"text-xs font-bold uppercase tracking-widest text-slate-300 mt-1",children:e.label})]})]},r)})}),t.jsx("div",{className:"mt-10 text-center",children:t.jsxs("div",{className:"inline-flex flex-wrap items-center justify-center gap-2 px-5 py-2.5 rounded-full bg-gradient-to-r from-amber-400/15 via-fuchsia-500/15 to-indigo-500/15 border border-white/15 backdrop-blur",children:[t.jsx(De,{className:"w-4 h-4 text-amber-300 fill-amber-300","aria-hidden":"true"}),t.jsx("span",{className:"text-sm font-bold text-white",children:"Built for creators who treat publishing like a business."})]})})]})]})}const Gp=[{icon:Me,title:"Sell anywhere, keep 100%",desc:"List your ebooks on Amazon KDP, Gumroad, your own site, anywhere you want. Every dollar of profit is yours.",accent:"from-amber-500 to-orange-500"},{icon:Za,title:"Any platform, any market",desc:"Resell on retailers, course platforms, affiliate marketplaces, lead magnets, paid newsletters. No restrictions on where.",accent:"from-rose-500 to-pink-500"},{icon:ei,title:"Unlimited titles forever",desc:"Publish one book or one thousand. Your commercial rights never expire and never cap on volume.",accent:"from-fuchsia-500 to-violet-500"}];function Yp(){return t.jsxs("section",{className:"relative py-24 md:py-32 overflow-hidden bg-gradient-to-b from-amber-50 via-orange-50/60 to-rose-50/40","data-testid":"section-commercial-license",children:[t.jsx("div",{className:"absolute top-0 right-0 w-[700px] h-[700px] bg-gradient-to-br from-amber-300/40 to-orange-300/30 blur-[160px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute bottom-0 left-0 w-[600px] h-[600px] bg-gradient-to-tr from-fuchsia-300/30 to-rose-300/30 blur-[140px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_50%_0%,rgba(251,191,36,0.15),transparent_60%)] pointer-events-none"}),t.jsx("div",{className:"container relative mx-auto px-4 md:px-6",children:t.jsx(R.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},className:"max-w-6xl mx-auto",children:t.jsxs("div",{className:"relative rounded-[2.5rem] overflow-hidden bg-white border-2 border-amber-200 shadow-[0_30px_120px_-20px_rgba(251,146,60,0.45)]",children:[t.jsx("div",{className:"absolute top-0 inset-x-0 h-1.5 bg-gradient-to-r from-amber-400 via-orange-500 to-rose-500"}),t.jsx("div",{className:"absolute -top-24 -right-24 w-[400px] h-[400px] bg-amber-200/50 blur-[100px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute -bottom-32 -left-32 w-[400px] h-[400px] bg-rose-200/50 blur-[100px] rounded-full pointer-events-none"}),t.jsxs("div",{className:"relative px-6 py-14 md:px-14 md:py-20",children:[t.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-14",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-amber-400 to-orange-500 text-white text-[11px] font-extrabold tracking-[0.2em] uppercase mb-6 shadow-lg shadow-orange-500/40",children:[t.jsx(Go,{className:"w-3.5 h-3.5"})," Bonus included today"]}),t.jsxs("h2",{className:"text-4xl md:text-6xl font-extrabold tracking-tight text-slate-900 leading-[1.05] mb-6",children:["Free"," ",t.jsx("span",{className:"bg-gradient-to-r from-amber-500 via-orange-500 to-rose-500 bg-clip-text text-transparent",children:"Commercial License"})," ","When You Subscribe Today."]}),t.jsxs("p",{className:"text-lg md:text-xl text-slate-600 leading-relaxed",children:["Resell every ebook, cover, and asset you create. Anywhere you want. And keep"," ",t.jsx("span",{className:"text-orange-600 font-bold",children:"every dollar of profit."})]})]}),t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 mb-12",children:Gp.map((e,r)=>{const o=e.icon;return t.jsxs(R.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.1},"data-testid":`license-right-${r}`,className:"relative rounded-2xl bg-gradient-to-br from-white to-amber-50/60 border border-amber-200/70 p-6 hover:border-orange-300 hover:shadow-xl hover:shadow-orange-200/50 hover:-translate-y-1 transition-all duration-300",children:[t.jsx("div",{className:`w-12 h-12 rounded-xl bg-gradient-to-br ${e.accent} flex items-center justify-center shadow-lg shadow-orange-500/30 mb-4`,children:t.jsx(o,{className:"w-6 h-6 text-white",strokeWidth:2.5,"aria-hidden":"true"})}),t.jsx("h3",{className:"text-lg font-extrabold text-slate-900 mb-2 leading-tight",children:e.title}),t.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:e.desc})]},r)})}),t.jsx("div",{className:"relative rounded-2xl bg-gradient-to-br from-amber-100 via-orange-50 to-rose-50 border-2 border-amber-300/60 p-6 md:p-8 shadow-inner",children:t.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-5",children:[t.jsx("div",{className:"flex-shrink-0 w-14 h-14 roun
2ded-xl bg-gradient-to-br from-amber-500 to-orange-600 flex items-center justify-center shadow-lg shadow-orange-500/40",children:t.jsx(ti,{className:"w-7 h-7 text-white",strokeWidth:2.5,"aria-hidden":"true"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"text-[10px] font-extrabold tracking-[0.2em] text-orange-700 uppercase mb-1.5",children:"What is included"}),t.jsx("p",{className:"text-base md:text-lg text-slate-800 font-semibold leading-snug",children:"A free commercial use license covering every ebook, cover, image, and asset you create with eBookWriter AI. Resell them anywhere you want, and keep every dollar of profit."})]}),t.jsx("div",{className:"flex-shrink-0 hidden lg:flex flex-col items-end gap-2",children:t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-xl bg-white border-2 border-orange-300 text-orange-700 text-xs font-extrabold uppercase tracking-wider shadow-sm",children:[t.jsx(Z,{className:"w-4 h-4"})," Yours to keep"]})})]})}),t.jsxs("div",{className:"mt-10 flex flex-wrap items-center justify-center gap-3 text-xs font-bold text-slate-700",children:[t.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white border border-amber-200 shadow-sm",children:[t.jsx(ne,{className:"w-3.5 h-3.5 text-emerald-600"})," No royalties owed"]}),t.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white border border-amber-200 shadow-sm",children:[t.jsx(ne,{className:"w-3.5 h-3.5 text-emerald-600"})," No revenue share"]}),t.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white border border-amber-200 shadow-sm",children:[t.jsx(ne,{className:"w-3.5 h-3.5 text-emerald-600"})," No platform restrictions"]}),t.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white border border-amber-200 shadow-sm",children:[t.jsx(ne,{className:"w-3.5 h-3.5 text-emerald-600"})," Use for clients too"]})]})]})]})})})]})}const Xp=["YouTube URL to ebook","AI research tools","Flipbook lead collection","WonderPages kids' books","Audio generation","Visual books","MCP Add-On","Puzzle Book Creator","Kids Activity Book"],Jp=[{name:"Free",tagline:"Try everything, pay nothing",icon:Z,monthlyPrice:"$0",yearlyPrice:"$0",monthlyNote:"Free forever",yearlyNote:"Free forever",credits:"250 credits / month",images:"5 AI images / month",languages:"1 language",features:["no","no","no","no","no","no","no","no","no"],cta:"Start Free",monthlyUrl:"https://app.ebookwriter.ai/signup",yearlyUrl:"https://app.ebookwriter.ai/signup"},{name:"Author",tagline:"For solo creators & hobbyists",icon:ri,monthlyPrice:"$19",yearlyPrice:"$190",yearlyNote:"2 months free, billed annually",credits:"1,900 credits / month",images:"50 AI images / month",languages:"1 language",features:["yes","addon","addon","addon","addon","addon","no","no","no"],cta:"Choose Author",monthlyUrl:"https://warriorplus.com/o2/buy/bz4trh/jpqdh3/j9yzfr",yearlyUrl:"https://warriorplus.com/o2/buy/bz4trh/jpqdh3/b8xk4v"},{name:"Creator",tagline:"For serious creators & marketers",icon:Yo,monthlyPrice:"$49",yearlyPrice:"$490",yearlyNote:"2 months free, billed annually",credits:"4,900 credits / month",images:"150 AI images / month",languages:"3 languages",features:["yes","yes","yes","yes","addon","addon","yes","yes","yes"],cta:"Choose Creator",featured:!0,monthlyUrl:"https://warriorplus.com/o2/buy/bz4trh/jpqdh3/qhbx7z",yearlyUrl:"https://warriorplus.com/o2/buy/bz4trh/jpqdh3/d6855t"},{name:"Publisher",tagline:"For serious publishers",icon:Pe,monthlyPrice:"$99",yearlyPrice:"$990",yearlyNote:"2 months free, billed annually",credits:"9,900 credits / month",images:"400 AI images / month",languages:"8 languages",features:["yes","yes","yes","yes","yes","yes","yes","yes","yes"],cta:"Choose Publisher",monthlyUrl:"https://warriorplus.com/o2/buy/bz4trh/jpqdh3/yy3kv2",yearlyUrl:"https://warriorplus.com/o2/buy/bz4trh/jpqdh3/ssx49c"},{name:"Studio",tagline:"For small teams & power users",icon:nt,monthlyPrice:"$199",yearlyPrice:"$1,990",yearlyNote:"2 months free, billed annually",credits:"19,900 credits / month",images:"1,200 AI images / month",languages:"Unlimited languages",features:["yes","yes","yes","yes","yes","yes","yes","yes","yes"],cta:"Choose Studio",monthlyUrl:"https://warriorplus.c
2om/o2/buy/bz4trh/jpqdh3/r9t08m",yearlyUrl:"https://warriorplus.com/o2/buy/bz4trh/jpqdh3/nrv2km"},{name:"Agency",tagline:"For agencies & white-label resellers",icon:oi,monthlyPrice:"$499",yearlyPrice:"$4,990",yearlyNote:"2 months free, billed annually",credits:"49,900 credits / month",images:"3,000 AI images / month",languages:"Unlimited languages",features:["yes","yes","yes","yes","yes","yes","yes","yes","yes"],cta:"Choose Agency",monthlyUrl:"https://warriorplus.com/o2/buy/bz4trh/jpqdh3/gvrr46",yearlyUrl:"https://warriorplus.com/o2/buy/bz4trh/jpqdh3/z4hy6j"}];function Qp({label:e,state:r}){return r==="no"||r==="addon"?t.jsxs("li",{className:"flex items-center gap-2.5",children:[t.jsx("span",{className:"inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-slate-100",children:t.jsx(ai,{className:"h-3 w-3 text-slate-400",strokeWidth:2.5,"aria-hidden":"true"})}),t.jsx("span",{className:"text-sm text-slate-400",children:e}),(e==="MCP Add-On"||e==="Puzzle Book Creator")&&t.jsx("span",{className:"rounded-full bg-gradient-to-r from-fuchsia-500 to-violet-500 px-2 py-0.5 text-[9px] font-extrabold uppercase tracking-wide text-white","data-testid":`pricing-${e==="MCP Add-On"?"mcp":"puzzle-book"}-new-badge`,children:"New"}),t.jsx("span",{className:"sr-only",children:"Not included"})]}):t.jsxs("li",{className:"flex items-center gap-2.5",children:[t.jsx("span",{className:"inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-emerald-400 to-emerald-500",children:t.jsx(ne,{className:"h-3 w-3 text-white",strokeWidth:3.5,"aria-hidden":"true"})}),t.jsx("span",{className:"text-sm text-slate-600",children:e}),(e==="MCP Add-On"||e==="Puzzle Book Creator")&&t.jsx("span",{className:"rounded-full bg-gradient-to-r from-fuchsia-500 to-violet-500 px-2 py-0.5 text-[9px] font-extrabold uppercase tracking-wide text-white","data-testid":`pricing-${e==="MCP Add-On"?"mcp":"puzzle-book"}-new-badge`,children:"New"}),t.jsx("span",{className:"sr-only",children:"Included"})]})}function Zp(){const[e,r]=u.useState(!1);return t.jsxs("section",{id:"pricing",className:"py-24 md:py-32 bg-gradient-to-b from-slate-50 via-white to-slate-50 relative overflow-hidden",children:[t.jsx("div",{className:"absolute top-1/3 left-1/2 -translate-x-1/2 w-[900px] h-[600px] bg-gradient-to-br from-indigo-200/40 via-fuchsia-200/30 to-amber-200/20 blur-[120px] rounded-full pointer-events-none"}),t.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-7xl relative z-10",children:[t.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-10",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-indigo-50 to-fuchsia-50 border border-indigo-200/50 text-xs font-bold tracking-[0.15em] text-indigo-700 mb-6 uppercase",children:[t.jsx(Z,{className:"w-3.5 h-3.5"})," Simple, scalable pricing"]}),t.jsxs("h2",{className:"text-4xl md:text-6xl font-extrabold tracking-tight mb-6 leading-[1.05]",children:["Pick the Plan That"," ",t.jsx("span",{className:"bg-gradient-to-r from-indigo-600 via-violet-600 to-fuchsia-600 bg-clip-text text-transparent",children:"Scales with You."})]}),t.jsx("p",{className:"text-lg md:text-xl text-muted-foreground",children:"Switch between monthly and yearly billing and upgrade anytime as you grow."})]}),t.jsxs("div",{className:"mb-12 flex items-center justify-center gap-3",children:[t.jsx("span",{className:`text-sm font-semibold transition-colors ${e?"text-slate-400":"text-slate-900"}`,children:"Monthly"}),t.jsx("button",{type:"button",role:"switch","aria-checked":e,"aria-label":"Toggle yearly billing",onClick:()=>r(o=>!o),className:"relative inline-flex h-8 w-14 items-center rounded-full bg-gradient-to-r from-indigo-600 to-violet-600 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2","data-testid":"pricing-billing-toggle",children:t.jsx("span",{className:`inline-block h-6 w-6 transform rounded-full bg-white shadow transition-transform ${e?"translate-x-7":"translate-x-1"}`})}),t.jsx("span",{className:`text-sm font-semibold transition-colors ${e?"text-slate-900":"text-slate-400"}`,children:"Yearly"})]}),t.jsx(R.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3 max-w-6xl mx-auto items-stretch",children:Jp.map(o=>{const n=o.icon,s=e?o.yearlyPrice:o.monthlyPrice,a=e?o.yearlyNote:o.monthlyNote;return t.jsxs("div",{className:"relative flex",children:[o.featured&&t.jsx("div",{className:"absolute -top-3.5 left-1/2 z-10 -translate-x-1/2",children:t.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-gradient-to-r from-indigo-600 to-violet-600 px-3.5 py-1 text-[10px] font-bold uppercase tracking-wide text-white shadow-lg shadow-indigo-500/30",children:[t.jsx(Yo,{className:"h-3 w-3","aria-hidden":"true"})," Recommended"]})}),t.jsxs("div",{className:`flex w-full flex-col rounded-2xl bg-white p-7 ${o.featured?"border-2 border-indigo-500 shadow-xl shadow-indigo-500/15":"border border-slate-200 shadow-sm"}`,"data-testid":`pricing-card-${o.name.toLowerCase()}`,children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("span",{className:`inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-xl ${o.featured?"bg-gradient-to-br from-indigo-600 to-violet-600 text-white":"bg-indigo-50 text-indigo-600"}`,children:t.jsx(n,{className:"h-5 w-5","aria-hidden":"true"})}),t.jsxs("div",{className:"text-left",children:[t.jsx("div",{className:"text-lg font-extrabold tracking-tight text-slate-900",children:o.name}),t.jsx("div",{className:"text-xs text-slate-400",children:o.tagline})]})]}),t.jsxs("div",{className:"mt-6",children:[t.jsxs("div",{className:"flex items-baseline gap-1",children:[t.jsx("span",{className:"text-4xl md:text-5xl font-black tracking-tight text-slate-900",children:s}),t.jsx("span",{className:"text-sm font-semibold text-slate-400",children:e?"/year":"/month"})]}),t.jsx("div",{className:"mt-2 min-h-[1.5rem]",children:e&&o.name!=="Free"?t.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-emerald-50 border border-emerald-200 px-2.5 py-1 text-[11px] font-bold text-emerald-700",children:[t.jsx(ni,{className:"h-3.5 w-3.5","aria-hidden":"true"}),"2 months free",t.jsx("span",{className:"font-medium text-emerald-600/80",children:"billed annually"})]}):t.jsx("span",{className:"text-xs text-slate-400",children:a})})]}),t.jsxs("ul",{className:"mt-5 space-y-2.5 border-t border-slate-100 pt-5",children:[t.jsxs("li",{className:"flex items-center gap-2.5",children:[t.jsx(Xo,{className:"h-4 w-4 shrink-0 text-indigo-500","aria-hidden":"true"}),t.jsx("span",{className:"text-sm font-semibold text-slate-700",children:o.credits})]}),t.jsxs("li",{className:"flex items-center gap-2.5",children:[t.jsx(Ho,{className:"h-4 w-4 shrink-0 text-indigo-500","aria-hidden":"true"}),t.jsx("span",{className:"text-sm font-semibold text-slate-700",children:o.images})]}),t.jsxs("li",{className:"flex items-center gap-2.5",children:[t.jsx(si,{className:"h-4 w-4 shrink-0 text-indigo-500","aria-hidden":"true"}),t.jsx("span",{className:"text-sm font-semibold text-slate-700",children:o.languages})]})]}),t.jsx("ul",{className:"mt-5 flex-1 space-y-3 border-t border-slate-100 pt-5",children:Xp.map((i,l)=>t.jsx(Qp,{label:i,state:o.features[l]},i))}),t.jsx("div",{className:"mt-7",children:(()=>{const i=e?o.yearlyUrl:o.monthlyUrl,l=`h-11 w-full rounded-xl text-sm font-bold transition-all ${o.featured?"bg-gradient-to-r from-indigo-600 to-violet-600 text-white shadow-md shadow-indigo-500/30 hover:opacity-90":"border border-slate-200 bg-white text-slate-900 shadow-sm hover:bg-slate-50"}`;return i?t.jsx(ot,{asChild:!0,className:l,"data-testid":`btn-buy-${o.name.toLowerCase()}`,children:t.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",onClick:()=>o.name==="Free"?To("Lead",{content_name:"pricing-free"}):To("InitiateCheckout",{content_name:o.name,content_category:e?"yearly":"monthly"}),children:o.cta})}):t.jsx(ot,{className:l,"data-testid":`btn-buy-${o.name.toLowerCase()}`,children:o.cta})})()})]})]},o.name)})})]})]})}const ef=[{credits:"470",label:"20 to 40 pages",gradient:"from-emerald-500 to-teal-500",bg:"from-emerald-50 to-teal-50"},{credits:"850",label:"80 to 100 pages",gradient:"from-blue-500 to-cyan-500",bg:"from-blue-50 to-cyan-50"},{credits:"1,650",label:"160 to 180 pages",gradient:"from-violet-500 to-fuchsia-500",bg:"from-violet-50 to-fuchsia-50"}
2,{credits:"50",label:"Per regen",gradient:"from-amber-500 to-orange-500",bg:"from-amber-50 to-orange-50"}];function tf(){return t.jsx("section",{className:"py-16 bg-gradient-to-b from-slate-50 to-white border-y border-slate-200/60",children:t.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-5xl text-center",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-white border border-slate-200 text-xs font-bold tracking-[0.15em] text-slate-600 mb-6 uppercase shadow-sm",children:[t.jsx(Xo,{className:"w-3.5 h-3.5 text-amber-500"})," How credits work"]}),t.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:ef.map((e,r)=>t.jsxs(R.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.05},className:`p-6 rounded-2xl bg-gradient-to-br ${e.bg} border border-white shadow-sm hover:shadow-md transition-shadow`,children:[t.jsx("p",{className:`text-4xl font-black mb-2 tracking-tight bg-gradient-to-r ${e.gradient} bg-clip-text text-transparent`,children:e.credits}),t.jsx("p",{className:"text-[10px] font-extrabold text-slate-600 uppercase tracking-widest",children:e.label})]},r))})]})})}var Ft="Collapsible",[rf,aa]=ze(Ft),[of,Br]=rf(Ft),ia=u.forwardRef((e,r)=>{const{__scopeCollapsible:o,open:n,defaultOpen:s,disabled:a,onOpenChange:i,...l}=e,[c,d]=it({prop:n,defaultProp:s??!1,onChange:i,caller:Ft});return t.jsx(of,{scope:o,disabled:a,contentId:es(),open:c,onOpenToggle:u.useCallback(()=>d(p=>!p),[d]),children:t.jsx(U.div,{"data-state":Vr(c),"data-disabled":a?"":void 0,...l,ref:r})})});ia.displayName=Ft;var la="CollapsibleTrigger",ca=u.forwardRef((e,r)=>{const{__scopeCollapsible:o,...n}=e,s=Br(la,o);return t.jsx(U.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":Vr(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:r,onClick:q(e.onClick,s.onOpenToggle)})});ca.displayName=la;var Fr="CollapsibleContent",da=u.forwardRef((e,r)=>{const{forceMount:o,...n}=e,s=Br(Fr,e.__scopeCollapsible);return t.jsx(at,{present:o||s.open,children:({present:a})=>t.jsx(nf,{...n,ref:r,present:a})})});da.displayName=Fr;var nf=u.forwardRef((e,r)=>{const{__scopeCollapsible:o,present:n,children:s,...a}=e,i=Br(Fr,o),[l,c]=u.useState(n),d=u.useRef(null),p=X(r,d),m=u.useRef(0),f=m.current,h=u.useRef(0),b=h.current,x=i.open||l,g=u.useRef(x),y=u.useRef(void 0);return u.useEffect(()=>{const v=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(v)},[]),me(()=>{const v=d.current;if(v){y.current=y.current||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const w=v.getBoundingClientRect();m.current=w.height,h.current=w.width,g.current||(v.style.transitionDuration=y.current.transitionDuration,v.style.animationName=y.current.animationName),c(n)}},[i.open,n]),t.jsx(U.div,{"data-state":Vr(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!x,...a,ref:p,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:x&&s})});function Vr(e){return e?"open":"closed"}var sf=ia,af=ca,lf=da,ie="Accordion",cf=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Wr,df,uf]=jr(ie),[Vt]=ze(ie,[uf,aa]),qr=aa(),ua=G.forwardRef((e,r)=>{const{type:o,...n}=e,s=n,a=n;return t.jsx(Wr.Provider,{scope:e.__scopeAccordion,children:o==="multiple"?t.jsx(hf,{...a,ref:r}):t.jsx(ff,{...s,ref:r})})});ua.displayName=ie;var[ma,mf]=Vt(ie),[pa,pf]=Vt(ie,{collapsible:!1}),ff=G.forwardRef((e,r)=>{const{value:o,defaultValue:n,onValueChange:s=()=>{},collapsible:a=!1,...i}=e,[l,c]=it({prop:o,defaultProp:n??"",onChange:s,caller:ie});return t.jsx(ma,{scope:e.__scopeAccordion,value:G.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:G.useCallback(()=>a&&c(""),[a,c]),children:t.jsx(pa,{scope:e.__scopeAccordion,collapsible:a,children:t.jsx(fa,{...i,ref:r})})})}),hf=G.forwardRef((e,r)=>{const{value:o,defaultValue:n,onValueChange:s=()=>{},...a}=e,[i,l]=it({prop:o,defaultProp:n??[],onChange:s,caller:ie}),c=G.useCallback(p=>l((m=[])=>[...m,p]),[l]),d=G.useCallback(p=>l((m=[])=>m.filter(f=>f!==p)),[l]);return t.jsx(ma,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:d,children:t.jsx(pa,{scope:e.__scopeAccordion,collapsible:!0,children:t.jsx(fa,{...a,ref:r})})})}),[xf,Wt]=Vt(ie),fa=G.forwardRef((e,r)=>{const{__scopeAccordion:o,disabled:n,dir:s,orientation:a="vertical",...i}=e,l=G.useRef(null),c=X(l,r),d=df(o),m=qs(s)==="ltr",f=q(e.onKeyDown,h=>{if(!cf.includes(h.key))return;const b=h.target,x=d().filter(N=>!N.ref.current?.disabled),g=x.findIndex(N=>N.ref.current===b),y=x.length;if(g===-1)return;h.preventDefault();let v=g;const w=0,j=y-1,C=()=>{v=g+1,v>j&&(v=w)},k=()=>{v=g-1,v<w&&(v=j)};switch(h.key){case"Home":v=w;break;case"End":v=j;break;case"ArrowRight":a==="horizontal"&&(m?C():k());break;case"ArrowDown":a==="vertical"&&C();break;case"ArrowLeft":a==="horizontal"&&(m?k():C());break;case"ArrowUp":a==="vertical"&&k();break}const P=v%y;x[P].ref.current?.focus()});return t.jsx(xf,{scope:o,disabled:n,direction:s,orientation:a,children:t.jsx(Wr.Slot,{scope:o,children:t.jsx(U.div,{...i,"data-orientation":a,ref:c,onKeyDown:n?void 0:f})})})}),At="AccordionItem",[gf,Kr]=Vt(At),ha=G.forwardRef((e,r)=>{const{__scopeAccordion:o,value:n,...s}=e,a=Wt(At,o),i=mf(At,o),l=qr(o),c=es(),d=n&&i.value.includes(n)||!1,p=a.disabled||e.disabled;return t.jsx(gf,{scope:o,open:d,disabled:p,triggerId:c,children:t.jsx(sf,{"data-orientation":a.orientation,"data-state":wa(d),...l,...s,ref:r,disabled:p,open:d,onOpenChange:m=>{m?i.onItemOpen(n):i.onItemClose(n)}})})});ha.displayName=At;var xa="AccordionHeader",ga=G.forwardRef((e,r)=>{const{__scopeAccordion:o,...n}
2=e,s=Wt(ie,o),a=Kr(xa,o);return t.jsx(U.h3,{"data-orientation":s.orientation,"data-state":wa(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:r})});ga.displayName=xa;var xr="AccordionTrigger",ba=G.forwardRef((e,r)=>{const{__scopeAccordion:o,...n}=e,s=Wt(ie,o),a=Kr(xr,o),i=pf(xr,o),l=qr(o);return t.jsx(Wr.ItemSlot,{scope:o,children:t.jsx(af,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":s.orientation,id:a.triggerId,...l,...n,ref:r})})});ba.displayName=xr;var ya="AccordionContent",va=G.forwardRef((e,r)=>{const{__scopeAccordion:o,...n}=e,s=Wt(ie,o),a=Kr(ya,o),i=qr(o);return t.jsx(lf,{role:"region","aria-labelledby":a.triggerId,"data-orientation":s.orientation,...i,...n,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});va.displayName=ya;function wa(e){return e?"open":"closed"}var bf=ua,yf=ha,vf=ga,ja=ba,Na=va;const wf=bf,ka=u.forwardRef(({className:e,...r},o)=>t.jsx(yf,{ref:o,className:re("border-b",e),...r}));ka.displayName="AccordionItem";const Ca=u.forwardRef(({className:e,children:r,...o},n)=>t.jsx(vf,{className:"flex",children:t.jsxs(ja,{ref:n,className:re("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...o,children:[r,t.jsx(Zt,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Ca.displayName=ja.displayName;const Pa=u.forwardRef(({className:e,children:r,...o},n)=>t.jsx(Na,{ref:n,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...o,children:t.jsx("div",{className:re("pb-4 pt-0",e),children:r})}));Pa.displayName=Na.displayName;const jf=[{q:"Do I have to pay monthly?",a:"All plans are subscription based. You can pay monthly or save with yearly billing, which gives you 2 months free. Check the pricing table to compare plans."},{q:"Why use a credit system?",a:"A credit system ensures fairness and keeps our infrastructure fast for everyone. AI generation, especially image and audio generation, requires significant computing power, so each plan includes a generous monthly credit allowance that matches its tier."},{q:"Do I need my own OpenAI API key?",a:"No. With our subscription plans, we use our own API keys, so everything works right out of the box. No signing up for developer accounts, no managing usage limits, and no surprise API bills. Just log in and start creating."},{q:"What kind of ebooks can I create?",a:"Almost anything. Non fiction guides, technical manuals, recipes, children's storybooks, affiliate lead magnets, summaries, and full novels."},{q:"Can I edit the ebooks after they are generated?",a:"Absolutely. eBookWriter AI features a full visual editor. You can rewrite text, swap images, change formatting, and manually insert links before exporting."},{q:"Do they include images?",a:"Yes. Depending on your tier, you can use our advanced GPT Image V2 integration to auto generate contextually relevant, breathtaking images throughout your book."},{q:"What formats can I export to?",a:"You can export your finished book as an EPUB (perfect for Kindle/KDP), PDF (great for lead magnets), DOCX, or plain TXT."}];function Nf(){return t.jsxs("section",{id:"faq",className:"py-24 md:py-32 bg-gradient-to-b from-white via-slate-50 to-white relative overflow-hidden",children:[t.jsx("div",{className:"absolute top-1/3 left-1/2 -translate-x-1/2 w-[700px] h-[400px] bg-gradient-to-br from-indigo-200/20 via-fuchsia-200/15 to-cyan-200/15 blur-[120px] rounded-full pointer-events-none"}),t.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-3xl relative z-10",children:[t.jsxs("div",{className:"text-center mb-14",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-indigo-50 to-cyan-50 border border-indigo-200/50 text-xs font-bold tracking-[0.15em] text-indigo-700 mb-6 uppercase",children:[t.jsx(ii,{className:"w-3.5 h-3.5"})," Got questions?"]}),t.jsxs("h2",{className:"text-4xl md:text-6xl font-extrabold tracking-tight leading-[1.05]",children:["Frequently"," ",t.jsx("span",{className:"bg-gradient-to-r from-indigo-600 via-violet-600 to-cyan-500 bg-clip-text text-transparent",children:"Asked."})]})]}),t.jsx(wf,{type:"single",collapsible:!0,className:"w-full space-y-4",children:jf.map((e,r)=>t.jsx(R.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.3,delay:r*.04},children:t.jsxs(ka,{value:`item-${r}`,className:"bg-white border border-slate-200 rounded-2xl px-6 data-[state=open]:border-indigo-300 data-[state=open]:shadow-xl data-[state=open]:shadow-indigo-100 hover:border-slate-300 transition-all overflow-hidden",children:[t.jsx(Ca,{className:"text-left text-lg font-extrabold hover:no-underline py-6 text-slate-900 [&>svg]:text-indigo-600 [&>svg]:w-5 [&>svg]:h-5",children:e.q}),t.jsx(Pa,{className:"text-slate-600 text-base pb-6 leading-relaxed",children:e.a})]})},r))})]})]})}const kf="/assets/Chris_Derenberger_1777973991521-DZ4V_Nph.jpg",Cf="/assets/Nasir3_1777973662981-T8PWUPKA.jpeg",Pf="/assets/Mosharrf_Hossain_1777973752258-C3p3EytR.png",Ef="/assets/smridha_1777973798559-Dy079c-a.jpeg",Af="/assets/1723047422687_1777973838777-R86kJcV3.jpg",Sf="/assets/Masud_Rana_1777973869166-ClfGOyMH.jpg",Tf=[{Icon:Go,value:"25",label:"Years online",iconBg:"from-
2amber-400 to-orange-500"},{Icon:nt,value:"38k+",label:"Students",iconBg:"from-violet-500 to-fuchsia-500"},{Icon:bt,value:"7-Figure",label:"Marketer",iconBg:"from-emerald-500 to-teal-500"}],Lo=[{name:"Md Nasir Uddin (Nobin)",role:"Founder & CEO, Dev8.io · Dev Team Lead",photo:Cf,ring:"from-violet-500 via-fuchsia-500 to-pink-500",featured:!0},{name:"Mosharrf Hossain",role:"Lead Engineer",photo:Pf,ring:"from-indigo-500 to-violet-500",featured:!1},{name:"Salihan Mridha",role:"Software Engineer",photo:Ef,ring:"from-violet-500 to-fuchsia-500",featured:!1},{name:"Ashikur Rahman",role:"Software Engineer",photo:Af,ring:"from-fuchsia-500 to-pink-500",featured:!1},{name:"Masudul Islam (Rana)",role:"Technical Support Engineer",photo:Sf,ring:"from-indigo-500 to-fuchsia-500",featured:!1}];function Rf(){return t.jsxs("section",{id:"about",className:"relative py-24 md:py-32 overflow-hidden bg-gradient-to-b from-white via-slate-50 to-white","data-testid":"section-about-us",children:[t.jsx("div",{className:"absolute top-0 left-1/4 w-[600px] h-[600px] bg-gradient-to-br from-indigo-300/25 to-fuchsia-300/20 blur-[140px] rounded-full pointer-events-none"}),t.jsx("div",{className:"absolute bottom-0 right-1/4 w-[500px] h-[500px] bg-gradient-to-tr from-violet-300/20 to-fuchsia-300/20 blur-[140px] rounded-full pointer-events-none"}),t.jsxs("div",{className:"container relative mx-auto px-4 md:px-6 max-w-6xl",children:[t.jsxs("div",{className:"grid lg:grid-cols-12 gap-10 lg:gap-12 items-center mb-24",children:[t.jsx(R.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7},className:"lg:col-span-4 relative flex justify-center",children:t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:"absolute -inset-5 bg-gradient-to-br from-indigo-300/40 via-violet-300/30 to-fuchsia-300/30 blur-3xl rounded-full pointer-events-none"}),t.jsx("div",{className:"relative rounded-[26px] p-2 bg-white shadow-[0_30px_80px_-20px_rgba(79,70,229,0.4)] ring-1 ring-slate-200 w-[240px] md:w-[260px]",children:t.jsx("div",{className:"rounded-[20px] overflow-hidden bg-slate-100 w-full aspect-[4/5]",children:t.jsx("img",{src:kf,alt:"Chris Derenberger, founder of DARKCore AI",className:"w-full h-full object-cover"})})}),t.jsxs(R.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3,type:"spring"},className:"absolute -bottom-4 -right-3 rounded-xl bg-slate-900 text-white px-4 py-2.5 shadow-2xl border border-indigo-500/30",children:[t.jsx("p",{className:"text-[9px] font-extrabold tracking-[0.2em] text-indigo-300 uppercase leading-none mb-1",children:"Founder of"}),t.jsx("p",{className:"text-sm font-extrabold leading-tight whitespace-nowrap",children:"DARKCore AI"})]})]})}),t.jsxs(R.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7,delay:.1},className:"lg:col-span-8",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-indigo-50 to-fuchsia-50 border border-indigo-200/60 text-xs font-bold tracking-[0.2em] text-indigo-700 mb-5 uppercase",children:[t.jsx(nt,{className:"w-3.5 h-3.5"})," Meet your coach"]}),t.jsxs("h2",{className:"text-4xl md:text-6xl lg:text-7xl font-extrabold tracking-tight leading-[1.05] mb-4",children:[t.jsx("span",{className:"text-slate-900",children:"Chris"})," ",t.jsx("span",{className:"bg-gradient-to-r from-indigo-600 via-violet-600 to-fuchsia-600 bg-clip-text text-transparent",children:"Derenberger"})]}),t.jsxs("p",{className:"text-base md:text-lg text-slate-600 font-bold mb-8",children:["Two decade online marketer",t.jsx("span",{className:"mx-2 text-slate-400",children:"·"}),"Founder of DARKCore AI"]}),t.jsx("div",{className:"grid grid-cols-3 gap-3 md:gap-4 mb-8",children:Tf.map((e,r)=>t.jsxs(R.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2+r*.08},"data-testid":`coach-stat-${r}`,className:"rounded-2xl bg-white border border-slate-200 shadow-md p-4 md:p-5",children:[t.jsx("div",{className:`w-9 h-9 rounded-lg bg-gradient-to-br ${e.iconBg} flex items-center justify-center shadow-md mb-3`,children:t.jsx(e.Icon,{className:"w-5 h-5 text-white",strokeWidth:2.5})}),t.jsx("p",{className:"text-xl md:text-3xl font-extrabold text-slate-900 leading-none whitespace-nowrap",children:e.value}),t.jsx("p",{className:"text-[10px] md:text-xs font-extrabold tracking-[0.15em] text-slate-500 uppercase mt-1.5",children:e.label})]},e.label))}),t.jsxs("div",{className:"space-y-4 text-base md:text-lg text-slate-700 leading-relaxed",children:[t.jsx("p",{children:"I've been full time online since 2013. I didn't build eBookWriter AI just to sell it. I built it because I was tired of generic AI output, clunky formatting, and expensive freelancers slowing down my own publishing business."}),t.jsx("p",{children:"This tool is the exact engine we use internally to generate hundreds of high quality assets. When you join today, you're not just getting software. You're getting the exact workflow that's generating real income for real people right now."})]}),t.jsxs("div",{className:"mt-8 flex gap-4 items-start",children:[t.jsx("div",{className:"shrink-0 w-10 h-10 rounded-xl bg-gradient-to-br from-indigo-100 to-fuchsia-100 flex items-center justify-center",children:t.jsx(Vo,{className:"w-5 h-5 text-indigo-600 fill-indigo-600"})}),t.jsx("p",{className:"text-lg md:text-xl font-extrabold italic text-slate-900 leading-snug",children:`"We built what we wanted to use. Now we're sharing it with you."`})]})]})]}),t.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-10",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-gradient-to-r from-violet-50 to-fuchsia-50 border border-violet-200/60 text-xs font-bold tracking-[0.15em] text-violet-700 mb-4 uppercase",children:[t.jsx(Hr,{className:"w-3.5 h-3.5"})," Engineering at Dev8.io"]}),t.jsx("h3",{className:"text-2xl md:text-4xl font-extrabold tracking-tight text-slate-900 leading-tight",children:"The Crew Shipping the Product."})]}),t.jsxs("div",{className:"max-w-6xl mx-auto grid grid-cols-1 lg:grid-cols-12 gap-5 md:gap-6 items-stretch",children:[(()=>{const e=Lo[0];return t.jsxs(R.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},"data-testid":"team-member-0",className:"group relative lg:col-span-5 rounded-3xl bg-gradient-to-br from-white via-fuchsia-50/40 to-violet-50/40 border-2 border-fuchsia-200 ring-1 ring-fuchsia-100 shadow-xl shadow-fuchsia-200/40 hover:shadow-2xl hover:shadow-fuchsia-300/50 transition-all duration-500 overflow-hidden",children:[t.jsx("div",{"aria-hidden":"true",className:"absolute -top-20 -right-20 w-64 h-64 roun
2ded-full bg-gradient-to-br from-fuchsia-300/40 to-violet-300/40 blur-3xl"}),t.jsxs("div",{className:"relative p-6 md:p-8 flex flex-col items-center text-center",children:[t.jsxs("div",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-gradient-to-r from-violet-600 via-fuchsia-600 to-pink-600 text-white text-[10px] font-extrabold uppercase tracking-[0.18em] shadow-lg shadow-fuchsia-500/40 mb-5",children:[t.jsx(Hr,{className:"w-3 h-3"})," Dev Lead"]}),t.jsxs("div",{className:"relative mb-5",children:[t.jsx("div",{"aria-hidden":"true",className:`absolute inset-0 rounded-full bg-gradient-to-br ${e.ring} blur-2xl opacity-60 scale-110`}),t.jsx("div",{className:`relative rounded-full p-1.5 bg-gradient-to-br ${e.ring} shadow-2xl`,children:t.jsx("div",{className:"rounded-full p-1 bg-white",children:t.jsx("div",{className:"w-44 h-44 md:w-52 md:h-52 lg:w-56 lg:h-56 rounded-full overflow-hidden bg-slate-100",children:t.jsx("img",{src:e.photo,alt:e.name,loading:"lazy",className:"w-full h-full object-cover scale-110 group-hover:scale-125 transition-transform duration-700"})})})})]}),t.jsx("p",{className:"text-xl md:text-2xl font-extrabold text-slate-900 leading-tight mb-1.5",children:e.name}),t.jsx("p",{className:"text-sm md:text-base text-slate-600 font-semibold leading-snug max-w-xs",children:e.role})]})]})})(),t.jsx("div",{className:"lg:col-span-7 grid grid-cols-2 gap-4 md:gap-5",children:Lo.slice(1).map((e,r)=>{const o=r+1;return t.jsxs(R.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.07},"data-testid":`team-member-${o}`,className:"group relative rounded-2xl bg-white border border-slate-200 shadow-md hover:shadow-xl hover:-translate-y-1 transition-all duration-500 p-4 md:p-5 flex flex-col items-center text-center gap-3 sm:flex-row sm:items-center sm:text-left sm:gap-4",children:[t.jsxs("div",{className:"relative shrink-0",children:[t.jsx("div",{"aria-hidden":"true",className:`absolute inset-0 rounded-full bg-gradient-to-br ${e.ring} blur opacity-40 scale-110 group-hover:opacity-70 transition-opacity duration-500`}),t.jsx("div",{className:`relative rounded-full p-[3px] bg-gradient-to-br ${e.ring} shadow-lg`,children:t.jsx("div",{className:"rounded-full p-0.5 bg-white",children:t.jsx("div",{className:"w-20 h-20 md:w-24 md:h-24 rounded-full overflow-hidden bg-slate-100",children:t.jsx("img",{src:e.photo,alt:e.name,loading:"lazy",className:"w-full h-full object-cover scale-110 group-hover:scale-125 transition-transform duration-700"})})})})]}),t.jsxs("div",{className:"min-w-0 text-left",children:[t.jsx("p",{className:"text-sm md:text-base font-extrabold text-slate-900 leading-tight mb-1",children:e.name}),t.jsx("p",{className:"text-xs md:text-sm text-slate-500 font-semibold leading-snug",children:e.role})]})]},e.name)})})]}),t.jsx("div",{className:"mt-14 text-center",children:t.jsxs("div",{className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-gradient-to-r from-indigo-600 via-violet-600 to-fuchsia-600 text-white text-sm font-bold shadow-lg shadow-indigo-500/30",children:[t.jsx(Z,{className:"w-4 h-4"})," One product. One team."]})})]})]})}function _f(){const e=r=>{const o=document.getElementById(r);o&&o.scrollIntoView({behavior:"smooth"})};return t.jsxs("section",{className:"py-32 md:py-40 relative overflow-hidden mesh-bg",children:[t.jsx("div",{className:"absolute inset-0 bg-white/60 backdrop-blur-[100px]"}),t.jsx("div",{className:"container mx-auto px-4 md:px-6 text-center max-w-4xl relative z-10",children:t.jsxs(R.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[t.jsx("h2",{className:"text-5xl md:text-7xl font-extrabold tracking-tight mb-8 text-foreground",children:"Stop Writing. Start Publishing."}),t.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground mb-12 max-w-2xl mx-auto",children:"Join thousands of creators generating real passive income with the most advanced AI publishing engine."}),t.jsxs(ot,{onClick:()=>e("pricing"),size:"lg",className:"h-16 px-12 bg-primary hover:bg-primary/90 text-white rounded-full text-lg font-bold shadow-lg hover:shadow-xl transition-all","data-testid":"final-cta",children:["Get Instant Access ",t.jsx(Rt,{className:"ml-2 h-6 w-6"})]}),t.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-6 md:gap-10 mt-16 text-sm font-medium text-muted-foreground",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(li,{className:"w-4 h-4"})," Secure Payment"]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Bo,{className:"w-4 h-4"})," Commercial Rights"]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(ci,{className:"w-4 h-4"})," Credits Roll Over"]})]})]})})]})}function If(){return t.jsx("footer",{className:"bg-gradient-to-b from-white to-muted border-t border-border pt-16 pb-8",children:t.jsxs("div",{className:"container mx-auto px-6 md:px-12",children:[t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-12 mb-16",children:[t.jsxs("div",{className:"col-span-1 md:col-span-1",children:[t.jsxs("div",{className:"flex items-center gap-1 mb-5",children:[t.jsx("img",{src:Vs,alt:"eBookWriter AI",className:"h-20 w-20"}),t.jsxs("div",{className:"flex flex-col leading-none",children:[t.jsx("span",{className:"font-extrabold text-2xl tracking-tight bg-gradient-to-r from-foreground via-primary to-fuchsia-600 bg-clip-text text-transparent",children:"eBookWriter"}),t.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.2em] text-primary/80 mt-1",children:"AI Publishing Engine"})]})]}),t.jsx("p",{className:"text-sm text-muted-foreground mb-6 leading-relaxed",children:"Create, publish, and profit from AI ebooks on demand. A DARKCore AI Product."})]}),t.jsxs("div",{children:[t.jsx("h4",{className:"font-bold text-foreground mb-4 text-sm uppercase tracking-wider",children:"Product"}),t.jsxs("ul",{className:"space-y-3 text-sm text-muted-foreground",children:[t.jsx("li",{children:t.jsx("a",{href:"#features",className:"hover:text-primary transition-colors",children:"Features"})}),t.jsx("li",{children:t.jsx("a",{href:"#showcase",className:"hover:text-primary transition-colors",children:"Showcase"})}),t.jsx("li",{children:t.jsx("a",{href:"#pricing",className:"hover:text-primary transition-colors",children:"Pricing"})}),t.jsx("li",{children:t.jsx("a",{href:"#faq",className:"hover:text-primary transition-colors",children:"FAQ"})})]})]}),t.jsxs("div",{children:[t.jsx("h4",{className:"font-bold text-foreground mb-4 text-sm uppercase tracking-wider",children:"Resources"}),t.jsxs("ul",{className:"space-y-3 text-sm text-muted-foreground",children:[t.jsx("li",{children:t.jsx(oe,{href:"/support","data-testid":"footer-link-support",className:"hover:text-primary transition-colors",children:"Support"})}),t.jsx("li",{children:t.jsx("a",{href:"https://www.youtube.com/playlist?list=PLubsLN_LYMCifBeallrBBr3foCCy5O2fI",target:"_blank",rel:"noopener noreferrer","data-testid":"footer-link-tutorials",className:"hover:text-primary transition-colors",children:"Tutorials"})})]})]}),t.jsxs("div",{children:[t.jsx("h4",{className:"font-bold text-foreground mb-4 text-sm uppercase tracking-wider",children:"Legal"}),t.jsxs("ul",{className:"space-y-3 text-sm text-muted-foreground",children:[t.jsx("li",{children:t.jsx(oe,{href:"/privacy-policy","data-testid":"footer-link-privacy",className:"hover:text-primary transition-colors",children:"Privacy Policy"})}),t.jsx("li",{children:t.jsx(oe,{href:"/terms","data-testid":"footer-link-terms",className:"hover:text-primary transition-colors",children:"Terms of Use"})}),t.jsx("li",{children:t.jsx(oe,{href:"/refund","data-testid":"footer-link-refund",className:"hover:text-primary transition-colors",children:"Refund Policy"})}),t.jsx("li",{children:t.jsx(oe,{href:"/disclaimer","data-testid":"footer-link-disclaimer",className:"hover:text-primary transition-colors",children:"Earnings Disclaimer"})})]})]})]}),t.jsx("div",{className:"border-t border-border pt-8 flex flex-col md:flex-row items-center justify-between gap-4 text-xs font-medium text-muted-foreground",children:t.jsxs("p",{children:["© ",new Date().getFullYear()," eBookWriter AI. All rights reserved."]})})]})})}const Of=u.lazy(()=>K(()=>import("./not-found-D-JhGnAQ.js"),__vite__mapDeps([0,1,2,3,4]))),Df=u.lazy(()=>K(()=>import("./audio-ebook-CCWeaeC6.js"),__vite__mapDeps([5,1,2,4,3]))),Lf=u.lazy(()=>K(()=>import("./visual-ebook-DogmLDFv.js"),__vite__mapDeps([6,1,2,7,8,4,3]))),Mf=u.lazy(()=>K(()=>import("./affiliates-oLvU9mNa.js"),__vite__mapDeps([9,1,2,4,3]))),$f=u.lazy(()=>K(()=>import("./kids-ebook-creator-CQ7DMGID.js"),__vite__mapDeps([10,1,2,4,3]))),zf=u.lazy(()=>K(()=>import("./flipbook-CaX1O6T4.js"),__vite__mapDeps([11,1,2,4,3]))),Bf=u.lazy(()=>K(()=>import("./add-ons-D-OZcDtv.js"),__vite__mapDeps([12,1,2,13,7,4,3]))),Ff=u.lazy(()=>K(()=>import("./youtube-and-url-conversion-DpzLczNy.js"),__vite__mapDeps([14,1,2,4,3]))),Vf=u.lazy(()=>K(()=>import("./research-tools-BEVfrifW.js"),__vite__mapDeps([15,1,2,4,3]))),Wf=u.lazy(()=>K(()=>import("./disclaimer-CIl1fXsu.js"),__vite__mapDeps([16,1,2,17,4,3]))),qf=u.lazy(()=>K(()=>import("./privacy-policy-CZIpijf-.js"),__vite__mapDeps([18,1,2,17,4,3]))),Kf=u.lazy(()=>K(()=>import("./refund-CdJzfNIQ.js"),__vite__mapDeps([19,1,2,17,4,3]))),Uf=u.lazy(()=>K(()=>import("./terms-chdtMrFA.js"),__vite__mapDeps([20,1,2,17,4,3]))),Hf=u.lazy(()=>K(()=>import("./admin-ChjSFBVW.js"),__vite__mapDeps([21,1,2,3,4]))),Gf=u.lazy(()=>K(()=>import("./chatgpt-subscription-addon-BfZCaMCs.js"),__vite__mapDeps([22,1,2,4,3]))),Yf=u.lazy(()=>K(()=>import("./mcp-addon-DMS26KYX.js"),__vite__mapDeps([23,1,2,4,3]))),Xf=u.lazy(()=>K(()=>import("./puzzle-book-addon-Bw-r14FV.js"),__vite__mapDeps([24,1,2,4,3]))),Jf=u.lazy(()=>K(()=>import("./puzzle-book-lifetime-Bv967eMl.js"),__vite__mapDeps([25,1,2,24,4,3]))),Qf=u.lazy(()=>K(()=>import("./kids-activity-book-CoftLm_p.js"),__vite__mapDeps([26,1,2,4,3,27]))),Zf=u.lazy(()=>K(()=>import("./kids-activity-book-lifetime-yHGVEy8e.js"),__vite__mapDeps([28,1,2,26,4,3,27]))),Mo=u.lazy(()=>K(()=>import("./visual-books-D1Ka85iN.js"),__vite__mapDeps([29,1,2,7,8,4,3]))),$o=u.lazy(()=>K(()=>import("./addons-store-2vLZf0GC.js"),__vite__mapDeps([30,1,2,13,7,4,3]))),zo=u.lazy(()=>K(()=>import("./support-D-BSLKsD.js"),__vite__mapDeps([31,1,2,3,4]))),eh=new Ea;function th(){return Oi({title:"eBookWriter AI. Create, Publish & Profit From AI eBooks in Minutes",description:"Generate fully formatted, profit ready ebooks up to 180 pages with GPT 5, GPT Image V2 and more. No writing required. Sell on Amazon KDP, build lead magnets, and earn recurring income.",canonical:"https://ebookwriter.ai"}),t.jsxs("div",{className:"min-h-[100dvh] w-full bg-background text-foreground overflow-x-hidden",children:[t.jsx(bm,{}),t.jsxs("main",{children:[t.jsx(Im,{}),t.jsx(Kp,{}),t.jsx(Dm,{}),t.jsx(Ym,{}),t.jsx(Qm,{}),t.jsx(mp,{}),t.jsx(bp,{}),t.jsx(qm,{}),t.jsx(vp,{}),t.jsx(jp,{}),t.jsx(Hp,{}),t.jsx(Yp,{}),t.jsx(Zp,{}),t.jsx(tf,{}),t.jsx(Nf,{}),t.jsx(Rf,{}),t.jsx(_f,{})]}),t.jsx(If,{})]})}function rh(){const[e]=vr();return u.useEffect(()=>{window.scrollTo(0,0)},[e]),null}function oh(){return im(),t.jsx(u.Suspense,{fallback:null,children:t.jsxs(_i,{children:[t.jsx(W,{path:"/",component:th}),t.jsx(W,{path:"/audio-ebook",component:Df}),t.jsx(W,{path:"/visual-ebook",component:Lf}),t.jsx(W,{path:"/affiliates",component:Mf}),t.jsx(W,{path:"/kids-ebook-creator",component:$f}),t.jsx(W,{path:"/flipbook",component:zf}),t.jsx(W,{path:"/add-ons",component:Bf}),t.jsx(W,{path:"/youtube-and-url-conversion",component:Ff}),t.jsx(W,{path:"/research-tools",component:Vf}),t.jsx(W,{path:"/disclaimer",component:Wf}),t.jsx(W,{path:"/privacy-policy",component:qf}),t.jsx(W,{path:"/refund",component:Kf}),t.jsx(W,{path:"/terms",component:Uf}),t.jsx(W,{path:"/admin",component:Hf}),t.jsx(W,{path:"/chatgpt-subscription-addon",component:Gf}),t.jsx(W,{path:"/mcp-addon",component:Yf}),t.jsx(W,{path:"/puzzle-book-addon",component:Xf}),t.jsx(W,{path:"/puzzle-book-lifetime",component:Jf}),t.jsx(W,{path:"/kids-activity-book",component:Qf}),t.jsx(W,{path:"/kids-activity-book-lifetime",component:Zf}),t.jsx(W,{path:"/visual-books",component:Mo}),t.jsx(W,{path:"/visual-books/",component:Mo}),t.jsx(W,{path:"/addons-store",component:$o}),t.jsx(W,{path:"/addons-store/",component:$o}),t.jsx(W,{path:"/support",component:zo}
2),t.jsx(W,{path:"/support/",component:zo}),t.jsx(W,{component:Of})]})})}function nh(){return t.jsx(Aa,{client:eh,children:t.jsxs(nu,{children:[t.jsxs(sn,{base:"/".replace(/\/$/,""),children:[t.jsx(rh,{}),t.jsx(oh,{})]}),t.jsx(Nc,{})]})})}Ra.createRoot(document.getElementById("root")).render(t.jsx(nh,{}));export{ot as B,If as F,oe as L,bm as N,K as _,Am as a,Em as b,re as c,Sm as d,km as e,ph as f,mh as g,fh as h,hh as i,uh as j,xh as k,Vs as l,gh as m,bh as n,_u as o,qu as p,yh as q,Oi as u};
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.