PageSourceSearch

https://www.happy-horse.studio/_next/static/chunks/d0e1ee6e5472b845.js?dpl=dpl_9mhU7MFXxwmKyEZMBH5gJ33QbJuY

js happy-horse.studio collected 2026-10-04 07:36:16 UTC 50,644 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,824961,e=>{"use strict";var t=e.i(78186);function r(e){let r=t.useRef({value:e,previous:e});return t.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}e.s(["usePrevious",()=>r])},165754,e=>{"use strict";var t=e.i(982446),r=e.i(519455),a=e.i(755146),n=e.i(945228),s=e.i(518052),i=e.i(520133),o=e.i(494263),l=e.i(658912),c=e.i(514541),u=e.i(862336),d=e.i(473241),f=e.i(306645),m=e.i(78186);function h(){if(!(Object.keys(n.websiteConfig.i18n.locales).length>1))return null;let e=(0,i.useLocaleRouter)(),h=(0,i.useLocalePathname)(),p=(0,f.useParams)(),g=(0,u.useLocale)(),{currentLocale:b,setCurrentLocale:x}=(0,l.useLocaleStore)(),[,y]=(0,m.useTransition)(),v=(0,d.useTranslations)("Common");return(0,m.useEffect)(()=>{x(g)},[g,x]),(0,t.jsxs)(a.DropdownMenu,{children:[(0,t.jsx)(a.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(r.Button,{variant:"ghost",size:"sm",className:"size-8 p-0.5 border border-border rounded-full cursor-pointer",children:[(0,t.jsx)(c.Languages,{className:"size-3"}),(0,t.jsx)("span",{className:"sr-only",children:v("language")})]})}),(0,t.jsx)(a.DropdownMenuContent,{align:"end",children:Object.entries(n.websiteConfig.i18n.locales).map(([r,n])=>(0,t.jsxs)(a.DropdownMenuItem,{onClick:()=>{x(r),(0,o.setClientCookie)(s.LOCALE_PREFERENCE_COOKIE_NAME,r,s.LOCALE_PREFERENCE_MAX_AGE),(0,o.deleteClientCookie)(s.LOCALE_SUGGEST_COOKIE_NAME),y(()=>{e.replace({pathname:h,params:p},{locale:r})})},className:"cursor-pointer",children:[n.flag&&(0,t.jsx)("span",{className:"mr-2 text-md",children:n.flag}),(0,t.jsx)("span",{className:"text-sm",children:n.name})]},r))})]})}e.s(["default",()=>h])},518052,494263,e=>{"use strict";function t(e){if("undefined"==typeof document)return null;let t=`${encodeURIComponent(e)}=`,r=document.cookie.split("; ").find(e=>e.startsWith(t));return r?decodeURIComponent(r.slice(t.length)):null}function r(e,t,r){"undefined"!=typeof document&&(document.cookie=`${encodeURIComponent(e)}=${encodeURIComponent(t)}; path=/; max-age=${r}; samesite=lax`)}function a(e){"undefined"!=typeof document&&(document.cookie=`${encodeURIComponent(e)}=; path=/; max-age=0; samesite=lax`)}e.s(["LOCALE_PREFERENCE_COOKIE_NAME",0,"locale_pref","LOCALE_PREFERENCE_MAX_AGE",0,31536e3,"LOCALE_SUGGEST_COOKIE_NAME",0,"locale_suggest","LOCALE_SUGGEST_DISMISSED_COOKIE_NAME",0,"locale_suggest_dismissed","LOCALE_SUGGEST_DISMISSED_MAX_AGE",0,604800],518052),e.s(["deleteClientCookie",()=>a,"getClientCookie",()=>t,"setClientCookie",()=>r],494263)},658912,514541,e=>{"use strict";let t;var r=e.i(78186);let a=e=>{let t,r=new Set,a=(e,a)=>{let n="function"==typeof e?e(t):e;if(!Object.is(n,t)){let e=t;t=(null!=a?a:"object"!=typeof n||null===n)?n:Object.assign({},t,n),r.forEach(r=>r(t,e))}},n=()=>t,s={setState:a,getState:n,getInitialState:()=>i,subscribe:e=>(r.add(e),()=>r.delete(e))},i=t=e(a,n,s);return s},n=e=>{let t=e?a(e):a,n=e=>(function(e,t=e=>e){let a=r.default.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return r.default.useDebugValue(a),a})(t,e);return Object.assign(n,t),n},s=(t=e=>({currentLocale:"",setCurrentLocale:t=>e(e=>({currentLocale:t}))}))?n(t):n;e.s(["useLocaleStore",0,s],658912);let i=(0,e.i(904274).default)("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);e.s(["Languages",()=>i],514541)},850029,585422,992496,e=>{"use strict";var t=e.i(904274);let r=(0,t.default)("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);e.s(["LaptopIcon",()=>r],850029);let a=(0,t.default)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);e.s(["MoonIcon",()=>a],585422);let n=(0,t.default)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["SunIcon",()=>n],992496)},799985,e=>{"use strict";var t=e.i(982446),r=e.i(519455),a=e.i(755146),n=e.i(945228),s=e.i(850029),i=e.i(585422),o=e.i(992496),l=e.i(473241),c=e.i(242092);function u(){if(!n.websiteConfig.ui.mode?.enableSwitch)return null;let{setTheme:e}=(0,c.useTheme)(),u=(0,l.useTranslations)("Common.mode");return(0,t.jsxs)(a.DropdownMenu,{children:[(0,t.jsx)(a.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(r.Button,{variant:"ghost",size:"sm",className:"size-8 p-0.5 border border-border rounded-full cursor-pointer",children:[(0,t.jsx)(o.SunIcon,{className:"rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,t.jsx)(i.MoonIcon,{className:"absolute rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,t.jsx)("span",{className:"sr-only",children:u("label")})]})}),(0,t.jsxs)(a.DropdownMenuContent,{align:"end",children:[(0,t.jsxs)(a.DropdownMenuItem,{onClick:()=>e("light"),className:"cursor-pointer",children:[(0,t.jsx)(o.SunIcon,{className:"mr-2 size-4"}),(0,t.jsx)("span",{children:u("light")})]}),(0,t.jsxs)(a.DropdownMenuItem,{onClick:()=>e("dark"),className:"cursor-pointer",children:[(0,t.jsx)(i.MoonIcon,{className:"mr-2 size-4"}),(0,t.jsx)("span",{children:u("dark")})]}),(0,t.jsxs)(a.DropdownMenuItem,{onClick:()=>e("system"),className:"cursor-pointer",children:[(0,t.jsx)(s.LaptopIcon,{className:"mr-2 size-4"}),(0,t.jsx)("span",{children:u("system")})]})]})]})}e.s(["ModeSwitcher",()=>u])},793479,e=>{"use strict";var t=e.i(982446),r=e.i(975157);function a({className:e,type:a,...n}){return(0,t.jsx)("input",{type:a,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}e.s(["Input",()=>a])},6184,e=>{"use strict";let t=(0,e.i(904274).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",()=>t])},584608,e=>{"use strict";var t=e.i(6184);e.s(["Loader2Icon",()=>t.default])},118192,644108,130055,165813,e=>{"use strict";var t=e.i(687183),r=e.i(306645),a=e.i(78186),n=e.i(862336),s=e.i(969569);function i(e){let t;return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&(null==(t="object"==typeof e?e.pathname:e)||!!t.startsWith("/"))}function o(e,t){return e.replace(RegExp(`^${t}`),"")||"/"}function l(e,t){let r=e;
1return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),r+=t}function c(e,t){return t===e||t.startsWith(`${e}/`)}function u(e,t,r){return"string"==typeof e?e:e[t]||r}function d(e){let t=function(){try{return"true"===s.default.env._next_intl_trailing_slash}catch{return!1}}(),[r,...a]=e.split("#"),n=a.join("#"),i=r;if("/"!==i){let e=i.endsWith("/");t&&!e?i+="/":!t&&e&&(i=i.slice(0,-1))}return n&&(i+="#"+n),i}function f(e,t){let r,a=d(e),n=d(t);return(r=a.replace(/\/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)"),RegExp(`^${r}$`)).test(n)}function m(e,t){return"never"!==t.mode&&t.prefixes?.[e]||h(e)}function h(e){return"/"+e}function p(e){return e.includes("[[...")}function g(e){return e.includes("[...")}function b(e){return e.includes("[")}function x(e,t){let r=e.split("/"),a=t.split("/"),n=Math.max(r.length,a.length);for(let e=0;e<n;e++){let t=r[e],n=a[e];if(!t&&n)return -1;if(t&&!n)return 1;if(t||n){if(!b(t)&&b(n))return -1;if(b(t)&&!b(n))return 1;if(!g(t)&&g(n))return -1;if(g(t)&&!g(n))return 1;if(!p(t)&&p(n))return -1;if(p(t)&&!p(n))return 1}}return 0}function y(e){return e.sort(x)}function v(e){return"function"==typeof e.then}function k(e){return"string"==typeof e?{pathname:e}:e}function j(e){let t=new URLSearchParams;for(let[r,a]of Object.entries(e))Array.isArray(a)?a.forEach(e=>{t.append(r,String(e))}):t.set(r,String(a));return"?"+t.toString()}function C({pathname:e,locale:t,params:r,pathnames:a,query:n}){function s(e){let s,i=a[e];return i?(s=u(i,t,e),r&&Object.entries(r).forEach(([e,t])=>{let r,a;Array.isArray(t)?(r=`(\\[)?\\[...${e}\\](\\])?`,a=t.map(e=>String(e)).join("/")):(r=`\\[${e}\\]`,a=String(t)),s=s.replace(RegExp(r,"g"),a)}),s=new URL(s=s.replace(/\[\[\.\.\..+\]\]/g,""),"http://l").pathname):s=e,s=d(s),n&&(s+=j(n)),s}if("string"==typeof e)return s(e);{let{pathname:t,...r}=e;return{...r,pathname:s(t)}}}function w(e,t,r){let a=y(Object.keys(r)),n=decodeURI(t);for(let t of a){let a=r[t];if("string"==typeof a){if(f(a,n))return t}else if(f(u(a,e,t),n))return t}return t}function L(e,t=window.location.pathname){return"/"===e?t:t.replace(e,"")}function N(e,t,r,a){let n,{mode:s}=r.localePrefix;return void 0!==a?n=a:i(e)&&("always"===s?n=!0:"as-needed"===s&&(n=r.domains?!r.domains.some(e=>e.defaultLocale===t):t!==r.defaultLocale)),n?l(m(t,r.localePrefix),e):e}function S(e,t,r,a){if(!e||a===r||null==a||!t)return;let n=L(t),{name:s,...i}=e;i.path||(i.path=""!==n?n:"/");let o=`${s}=${a};`;for(let[e,t]of Object.entries(i))o+=`${"maxAge"===e?"max-age":e}`,"boolean"!=typeof t&&(o+="="+t),o+=";";document.cookie=o}e.s(["getLocaleAsPrefix",()=>h,"getLocalePrefix",()=>m,"getLocalizedTemplate",()=>u,"getSortedPathnames",()=>y,"hasPathnamePrefixed",()=>c,"isLocalizableHref",()=>i,"isPromise",()=>v,"matchesPathname",()=>f,"normalizeTrailingSlash",()=>d,"prefixPathname",()=>l,"unprefixPathname",()=>o],644108),e.s(["applyPathnamePrefix",()=>N,"compileLocalizedPathname",()=>C,"getBasePath",()=>L,"getRoute",()=>w,"normalizeNameOrNameWithParams",()=>k,"serializeSearchParams",()=>j],130055),e.s(["default",()=>S],165813);var M=e.i(982446),E=(0,a.forwardRef)(function({href:e,locale:a,localeCookie:s,onClick:i,prefetch:o,...l},c){let u=(0,n.useLocale)(),d=null!=a&&a!==u,f=(0,r.usePathname)();return d&&(o=!1),(0,M.jsx)(t.default,{ref:c,href:e,hrefLang:d?a:void 0,onClick:function(e){S(s,f,u,a),i&&i(e)},prefetch:o,...l})});e.s(["default",()=>E],118192)},294237,e=>{"use strict";var t=e.i(7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=t.clsx;e.s(["cva",0,(e,t)=>n=>{var s;if((null==t?void 0:t.variants)==null)return a(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:o}=t,l=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],a=null==o?void 0:o[e];if(null===t)return null;let s=r(t)||r(a);return i[e][s]}),c=n&&Object.entries(n).reduce((e,t)=>{let[r,a]=t;return void 0===a||(e[r]=a),e},{});return a(e,l,null==t||null==(s=t.compoundVariants)?void 0:s.reduce((e,t)=>{let{class:r,className:a,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...c}[t]):({...o,...c})[t]===r})?[...e,r,a]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}])},904274,e=>{"use strict";var t=e.i(78186);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,t.forwardRef)(({color:e="currentColor",size:n=24,strokeWidth:s=2,absoluteStrokeWidth:i,className:o="",children:l,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...a,width:n,height:n,stroke:e,strokeWidth:i?24*Number(s)/Number(n):s,className:r("lucide",o),...u},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(l)?l:[l]])),s=(e,a)=>{let s=(0,t.forwardRef)(({className:s,...i},o)=>(0,t.createElement)(n,{ref:o,iconNode:a,className:r(`lucide-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,s),...i}));return s.displayName=`${e}`,s};e.s(["default",()=>s],904274)},519455,e=>{"use strict";var t=e.i(982446),r=e.i(172095),a=e.i(294237),n=e.i(975157);let s=(0,a.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function i({className:e,variant:a,size:i,asChild:o=!1,...l}){let c=o?r.Slot:"button";return(0,t.jsx)(c,{"data-slot":"button",className:(0,n.cn)(s({variant:a,size:i,className:e})),...l})}e.s(["Button",()=>i,"buttonVariants",()=>s])},520133,e=>{"use strict";var t=e.i(306645),r=e.i(78186),a=e.i(862336),n=r["use".trim()],s=e.i(644108),i=e.i(118192),o=e.i(130055),l=e.i(982446),c=e.i(165813);let{Link:u,getPathname:d,redirect:f,usePathname:m,useRouter:h}=function(e){let{Link:u,config:d,getPathname:f,...m}=function(e,a){var c,u,d;let f={...c=a||{},localePrefix:"object"==typeof(d=c.localePrefix)?d:{mode:d||"always"}
1,localeCookie:!!((u=c.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof u&&u},localeDetection:c.localeDetection??!0,alternateLinks:c.alternateLinks??!0},m=f.pathnames,h=(0,r.forwardRef)(function({href:t,locale:r,...a},o){let c,u;"object"==typeof t?(c=t.pathname,u=t.params):c=t;let d=(0,s.isLocalizableHref)(t),h=e(),g=(0,s.isPromise)(h)?n(h):h,b=d?p({locale:r||g,href:null==m?c:{pathname:c,params:u},forcePrefix:null!=r||void 0}):c;return(0,l.jsx)(i.default,{ref:o,href:"object"==typeof t?{...t,pathname:b}:b,locale:r,localeCookie:f.localeCookie,...a})});function p(e){let t,{forcePrefix:r,href:a,locale:n}=e;return null==m?"object"==typeof a?(t=a.pathname,a.query&&(t+=(0,o.serializeSearchParams)(a.query))):t=a:t=(0,o.compileLocalizedPathname)({locale:n,...(0,o.normalizeNameOrNameWithParams)(a),pathnames:f.pathnames}),(0,o.applyPathnamePrefix)(t,n,f,r)}function g(e){return function(t,...r){return e(p(t),...r)}}return{config:f,Link:h,redirect:g(t.redirect),permanentRedirect:g(t.permanentRedirect),getPathname:p}}(a.useLocale,e);return{...m,Link:u,usePathname:function(){let e,n,i=(e=(0,t.usePathname)(),n=(0,a.useLocale)(),(0,r.useMemo)(()=>{if(!e)return e;let t=e,r=(0,s.getLocalePrefix)(n,d.localePrefix);if((0,s.hasPathnamePrefixed)(r,e))t=(0,s.unprefixPathname)(e,r);else if("never"!==d.localePrefix.mode&&d.localePrefix.prefixes){let r=(0,s.getLocaleAsPrefix)(n);(0,s.hasPathnamePrefixed)(r,e)&&(t=(0,s.unprefixPathname)(e,r))}return t},[d.localePrefix,n,e])),l=(0,a.useLocale)();return(0,r.useMemo)(()=>i&&d.pathnames?(0,o.getRoute)(l,i,d.pathnames):i,[l,i])},useRouter:function(){let e=(0,t.useRouter)(),n=(0,a.useLocale)(),s=(0,t.usePathname)();return(0,r.useMemo)(()=>{function t(e){return function(t,r){let{locale:a,...i}=r||{},o=[f({href:t,locale:a||n,forcePrefix:null!=a||void 0})];Object.keys(i).length>0&&o.push(i),(0,c.default)(d.localeCookie,s,n,a),e(...o)}}return{...e,push:t(e.push),replace:t(e.replace),prefetch:t(e.prefetch)}},[n,s,e])},getPathname:f}}(e.i(744705).routing);e.s(["LocaleLink",0,u,"getLocalePathname",0,d,"useLocalePathname",0,m,"useLocaleRouter",0,h],520133)},77607,e=>{"use strict";var t,r=e.i(945228),a=((t={}).Root="/",t.FAQ="/#faqs",t.Features="/#features",t.Pricing="/pricing",t.Gallery="/prompt",t.Blog="/blog",t.Docs="/docs",t.About="/about",t.Contact="/contact",t.Waitlist="/waitlist",t.Resources="/resources",t.Changelog="/changelog",t.Roadmap="/roadmap",t.CookiePolicy="/cookie",t.PrivacyPolicy="/privacy",t.TermsOfService="/terms",t.Login="/auth/login",t.Register="/auth/register",t.AuthError="/auth/error",t.ForgotPassword="/auth/forgot-password",t.ResetPassword="/auth/reset-password",t.Dashboard="/dashboard",t.AdminUsers="/admin/users",t.SettingsProfile="/settings/profile",t.SettingsBilling="/settings/billing",t.SettingsCredits="/settings/credits",t.SettingsSecurity="/settings/security",t.SettingsNotifications="/settings/notifications",t.Videos="/videos",t.Payment="/payment",t.AIText="/ai/text",t.AIImage="/ai/image",t.AIChat="/ai/chat",t.AIVideo="/ai/video",t.AIAudio="/ai/audio",t.Home="/",t.Kling="/kling",t.MagicuiBlocks="/magicui",t.HeroBlocks="/blocks/hero-section",t.LogoCloudBlocks="/blocks/logo-cloud",t.FeaturesBlocks="/blocks/features",t.IntegrationsBlocks="/blocks/integrations",t.ContentBlocks="/blocks/content",t.StatsBlocks="/blocks/stats",t.TeamBlocks="/blocks/team",t.TestimonialsBlocks="/blocks/testimonials",t.CallToActionBlocks="/blocks/call-to-action",t.FooterBlocks="/blocks/footer",t.PricingBlocks="/blocks/pricing",t.ComparatorBlocks="/blocks/comparator",t.FAQBlocks="/blocks/faqs",t.LoginBlocks="/blocks/login",t.SignupBlocks="/blocks/sign-up",t.ForgotPasswordBlocks="/blocks/forgot-password",t.ContactBlocks="/blocks/contact",t);let n=r.websiteConfig.routes.defaultLoginRedirect??"/dashboard";e.s(["DEFAULT_LOGIN_REDIRECT",0,n,"Routes",()=>a])},804370,e=>{"use strict";var t=e.i(78186),r=e.i(382255),a=e.i(329429),n=e.i(267321),s=e.i(884248),i=class extends n.Subscribable{#e;#t=void 0;#r;#a;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,s.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.hashKey)(t.mutationKey)!==(0,s.hashKey)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#s()}mutate(e,t){return this.#a=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#n(){let e=this.#r?.state??(0,r.getDefaultState)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#s(e){a.notifyManager.batch(()=>
1{if(this.#a&&this.hasListeners()){let t=this.#t.variables,r=this.#t.context;e?.type==="success"?(this.#a.onSuccess?.(e.data,t,r),this.#a.onSettled?.(e.data,null,t,r)):e?.type==="error"&&(this.#a.onError?.(e.error,t,r),this.#a.onSettled?.(void 0,e.error,t,r))}this.listeners.forEach(e=>{e(this.#t)})})}},o=e.i(972862);function l(e,r){let n=(0,o.useQueryClient)(r),[l]=t.useState(()=>new i(n,e));t.useEffect(()=>{l.setOptions(e)},[l,e]);let c=t.useSyncExternalStore(t.useCallback(e=>l.subscribe(a.notifyManager.batchCalls(e)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),u=t.useCallback((e,t)=>{l.mutate(e,t).catch(s.noop)},[l]);if(c.error&&(0,s.shouldThrowError)(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:u,mutateAsync:c.mutate}}e.s(["useMutation",()=>l],804370)},846216,e=>{"use strict";var t=e.i(155598);let r=(0,t.createServerReference)("7f93a3f952dc649e04ecea12ab7117c736c3c67bdd",t.callServer,void 0,t.findSourceMapURL,"consumeCreditsAction"),a=(0,t.createServerReference)("7f1aa77a0e9e16c83d31deabe13e6059dcb02e19ae",t.callServer,void 0,t.findSourceMapURL,"getCreditBalanceAction"),n=(0,t.createServerReference)("7f35354397d3e47761cbc15db524750eab6ad5fb45",t.callServer,void 0,t.findSourceMapURL,"getCreditStatsAction"),s=(0,t.createServerReference)("7f5aca1480eec5fb48e427de066396e4f3dc61dd28",t.callServer,void 0,t.findSourceMapURL,"getCreditTransactionsAction");var i=e.i(884248),o=e.i(804370),l=e.i(316127),c=e.i(972862);async function u(e,t,r){return new Promise((a,n)=>{let s=setTimeout(()=>{n(Error(r))},t);e.then(e=>{clearTimeout(s),a(e)}).catch(e=>{clearTimeout(s),n(e)})})}let d={all:["credits"],balance:e=>[...d.all,"balance",e],stats:e=>[...d.all,"stats",e],transactions:e=>[...d.all,"transactions",e],transactionsList:(e,t)=>[...d.transactions(e),t]};function f(e){return(0,l.useQuery)({queryKey:d.balance(e||""),queryFn:async()=>{if(!e)throw Error("User ID is required");let t=await u(a(),8e3,"Credit balance request timed out");if(!t?.data?.success)throw Error(t?.data?.error||"Failed to fetch credit balance");return t.data.credits||0},enabled:!!e,retry:1})}function m(e){return(0,l.useQuery)({queryKey:d.stats(e||""),queryFn:async()=>{if(!e)throw Error("User ID is required");let t=await u(n(),8e3,"Credit stats request timed out");if(!t?.data?.success)throw Error(t?.data?.error||"Failed to fetch credit stats");return t.data.data},enabled:!!e,retry:1})}function h(e){let t=(0,c.useQueryClient)();return(0,o.useMutation)({mutationFn:async({amount:e,description:t})=>{let a=await r({amount:e,description:t});if(!a?.data?.success)throw console.log("useConsumeCredits error:",a?.data?.error),Error(a?.data?.error||"Failed to consume credits");return a.data},onSuccess:()=>{e&&(t.invalidateQueries({queryKey:d.balance(e)}),t.invalidateQueries({queryKey:d.stats(e)}),t.invalidateQueries({queryKey:d.transactions(e)}))}})}function p(e,t,r,a,n,o){return(0,l.useQuery)({queryKey:d.transactionsList(e||"",{pageIndex:t,pageSize:r,search:a,sorting:n,filters:o}),queryFn:async()=>{if(!e)throw Error("User ID is required");let i=await s({pageIndex:t,pageSize:r,search:a,sorting:n,filters:o});if(!i?.data?.success)throw console.log("useCreditTransactions error:",i?.data?.error),Error(i?.data?.error||"Failed to fetch credit transactions");return{items:i.data.data?.items||[],total:i.data.data?.total||0}},enabled:!!e,placeholderData:i.keepPreviousData})}e.s(["creditsKeys",0,d,"useConsumeCredits",()=>h,"useCreditBalance",()=>f,"useCreditStats",()=>m,"useCreditTransactions",()=>p],846216)},599506,e=>{"use strict";let t=(0,e.i(904274).default)("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);e.s(["CoinsIcon",()=>t],599506)},920932,e=>{"use strict";var t=e.i(982446),r=e.i(828420),a=e.i(776639),n=e.i(520133),s=e.i(77607),i=e.i(78186);e.s(["LoginWrapper",0,({children:e,mode:o="redirect",asChild:l,callbackUrl:c,highlightsTitle:u,highlights:d,open:f,onOpenChange:m})=>{let h=(0,n.useLocaleRouter)(),[p,g]=(0,i.useState)(!1),[b,x]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{g(!0)},[]),p)?"modal"===o?(0,t.jsxs)(a.Dialog,{open:f??b,onOpenChange:e=>{x(e),m?.(e)},children:[e?(0,t.jsx)(a.DialogTrigger,{asChild:l,children:e}):null,(0,t.jsxs)(a.DialogContent,{className:"sm:max-w-[400px] p-0",children:[(0,t.jsx)(a.DialogHeader,{className:"hidden",children:(0,t.jsx)(a.DialogTitle,{})}),(0,t.jsx)(r.LoginForm,{callbackUrl:c,className:"border-none",highlightsTitle:u,highlights:d})]})]}):(0,t.jsx)("span",{onClick:()=>{let e=c?`${s.Routes.Login}?callbackUrl=${encodeURIComponent(c)}`:`${s.Routes.Login}`;console.log("login wrapper, loginPath",e),h.push(e)},className:"cursor-pointer",children:e}):null}])}
1,607102,e=>{"use strict";var t=e.i(165428);e.s(["Sparkles",()=>t.default])},165428,e=>{"use strict";let t=(0,e.i(904274).default)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);e.s(["default",()=>t])},311453,e=>{"use strict";function t(e,t){if("function"!=typeof window.gtag)return;let r={};if(t)for(let[e,a]of Object.entries(t))null!=a&&(r[e]=a);window.gtag("event",e,r)}e.s(["trackGaEvent",()=>t])},776639,e=>{"use strict";var t=e.i(982446),r=e.i(472035),a=e.i(307436),n=e.i(975157);function s({...e}){return(0,t.jsx)(r.Root,{"data-slot":"dialog",...e})}function i({...e}){return(0,t.jsx)(r.Trigger,{"data-slot":"dialog-trigger",...e})}function o({...e}){return(0,t.jsx)(r.Portal,{"data-slot":"dialog-portal",...e})}function l({className:e,...a}){return(0,t.jsx)(r.Overlay,{"data-slot":"dialog-overlay",className:(0,n.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...a})}function c({className:e,children:s,showCloseButton:i=!0,...c}){return(0,t.jsxs)(o,{"data-slot":"dialog-portal",children:[(0,t.jsx)(l,{}),(0,t.jsxs)(r.Content,{"data-slot":"dialog-content",className:(0,n.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...c,children:[s,i&&(0,t.jsxs)(r.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,t.jsx)(a.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,n.cn)("flex flex-col gap-2 text-center sm:text-left",e),...r})}function d({className:e,...a}){return(0,t.jsx)(r.Title,{"data-slot":"dialog-title",className:(0,n.cn)("text-lg leading-none font-semibold",e),...a})}function f({className:e,...a}){return(0,t.jsx)(r.Description,{"data-slot":"dialog-description",className:(0,n.cn)("text-muted-foreground text-sm",e),...a})}e.s(["Dialog",()=>s,"DialogContent",()=>c,"DialogDescription",()=>f,"DialogHeader",()=>u,"DialogTitle",()=>d,"DialogTrigger",()=>i])},44137,772560,e=>{"use strict";var t=e.i(982446);let r=(0,e.i(904274).default)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",()=>r],772560),e.s(["FormSuccess",0,({message:e})=>e?(0,t.jsxs)("div",{className:"bg-emerald-500/15 p-3 rounded-md flex items-center gap-x-2 text-sm text-emerald-500",children:[(0,t.jsx)(r,{className:"h-4 w-4"}),(0,t.jsx)("p",{children:e})]}):null],44137)},515288,e=>{"use strict";var t=e.i(982446),r=e.i(975157);function a({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,r.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...a})}function n({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...a})}function s({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("leading-none font-semibold",e),...a})}function i({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-muted-foreground text-sm",e),...a})}function o({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",e),...a})}function l({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center px-6 [.border-t]:pt-6",e),...a})}e.s(["Card",()=>a,"CardContent",()=>o,"CardDescription",()=>i,"CardFooter",()=>l,"CardHeader",()=>n,"CardTitle",()=>s])},110204,e=>{"use strict";var t=e.i(982446),r=e.i(78186),a=e.i(125214),n=r.forwardRef((e,r)=>(0,t.jsx)(a.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));n.displayName="Label";var s=e.i(975157);function i({className:e,...r}){return(0,t.jsx)(n,{"data-slot":"label",className:(0,s.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}e.s(["Label",()=>i],110204)},743173,e=>{"use strict";var t=e.i(982446);let r=(0,e.i(904274).default)("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}
1],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);e.s(["FormError",0,({message:e})=>e?(0,t.jsxs)("div",{className:"bg-destructive/15 p-3 rounded-md flex items-center gap-x-2 text-sm text-destructive",children:[(0,t.jsx)(r,{className:"h-4 w-4"}),(0,t.jsx)("p",{children:e})]}):null],743173)},870053,e=>{"use strict";var t=e.i(982446),r=e.i(945228),a=e.i(975157),n=e.i(242092),s=e.i(410828),i=e.i(78186);function o({className:e}){let{theme:o}=(0,n.useTheme)(),[l,c]=(0,i.useState)(!1),u=r.websiteConfig.metadata.images?.logoLight??"/logo.png",d=r.websiteConfig.metadata.images?.logoDark??u;return(0,i.useEffect)(()=>{c(!0)},[]),(0,t.jsx)(s.default,{src:l&&"dark"===o?d:u,alt:"HappyHorse AI Logo",title:"HappyHorse AI Logo",width:96,height:96,className:(0,a.cn)("size-8 rounded-md",e)})}e.s(["Logo",()=>o])},319270,e=>{"use strict";var t=e.i(982446),r=e.i(519455),a=e.i(520133),n=e.i(975157);let s=({href:e,label:s})=>(0,t.jsx)(a.LocaleLink,{href:e,className:(0,n.cn)((0,r.buttonVariants)({variant:"link",size:"sm"}),"font-normal w-full text-muted-foreground hover:underline underline-offset-4 hover:text-primary"),children:s});var i=e.i(870053),o=e.i(515288);e.s(["AuthCard",0,({children:e,headerLabel:r,bottomButtonLabel:l,bottomButtonHref:c,className:u})=>(0,t.jsxs)(o.Card,{className:(0,n.cn)("shadow-xs border border-border",u),children:[(0,t.jsxs)(o.CardHeader,{className:"flex flex-col items-center",children:[(0,t.jsx)(a.LocaleLink,{href:"/",prefetch:!1,children:(0,t.jsx)(i.Logo,{className:"mb-2"})}),(0,t.jsx)(o.CardDescription,{children:r})]}),(0,t.jsx)(o.CardContent,{children:e}),l&&c&&(0,t.jsx)(o.CardFooter,{children:(0,t.jsx)(s,{label:l,href:c})})]})],319270)},448929,e=>{"use strict";var t=e.i(982446);function r(e){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:46.5,height:48,viewBox:"0 0 496 512",...e,children:[(0,t.jsx)("title",{children:"GitHub"}),(0,t.jsx)("path",{fill:"currentColor",d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6c-3.3.3-5.6-1.3-5.6-3.6c0-2 2.3-3.6 5.2-3.6c3-.3 5.6 1.3 5.6 3.6m-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9c2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3m44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9c.3 2 2.9 3.3 5.9 2.6c2.9-.7 4.9-2.6 4.6-4.6c-.3-1.9-3-3.2-5.9-2.9M244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2c12.8 2.3 17.3-5.6 17.3-12.1c0-6.2-.3-40.4-.3-61.4c0 0-70 15-84.7-29.8c0 0-11.4-29.1-27.8-36.6c0 0-22.9-15.7 1.6-15.4c0 0 24.9 2 38.6 25.8c21.9 38.6 58.6 27.5 72.9 20.9c2.3-16 8.8-27.1 16-33.7c-55.9-6.2-112.3-14.3-112.3-110.5c0-27.5 7.6-41.3 23.6-58.9c-2.6-6.5-11.1-33.3 2.6-67.9c20.9-6.5 69 27 69 27c20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27c13.7 34.7 5.2 61.4 2.6 67.9c16 17.7 25.8 31.5 25.8 58.9c0 96.5-58.9 104.2-114.8 110.5c9.2 7.9 17 22.9 17 46.4c0 33.7-.3 75.4-.3 83.6c0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252C496 113.3 383.5 8 244.8 8M97.2 352.9c-1.3 1-1 3.3.7 5.2c1.6 1.6 3.9 2.3 5.2 1c1.3-1 1-3.3-.7-5.2c-1.6-1.6-3.9-2.3-5.2-1m-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9c1.6 1 3.6.7 4.3-.7c.7-1.3-.3-2.9-2.3-3.9c-2-.6-3.6-.3-4.3.7m32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2c2.3 2.3 5.2 2.6 6.5 1c1.3-1.3.7-4.3-1.3-6.2c-2.2-2.3-5.2-2.6-6.5-1m-11.4-14.7c-1.6 1-1.6 3.6 0 5.9s4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2c-1.4-2.3-4-3.3-5.6-2"})]})}e.s(["GitHubIcon",()=>r])},390014,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let a=e.r(762338);function n({reason:e,children:t}){if("undefined"==typeof window)throw Object.defineProperty(new a.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},647856,(e,t,r)=>{"use strict";function a(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return a}})},395431,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return l}});let a=e.r(982446),n=e.r(231660),s=e.r(890768),i=e.r(647856),o=e.r(545799);function l({moduleIds:e}){if("undefined"!=typeof window)return null;let t=s.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let a=t.reactLoadableManifest;for(let t of e){if(!a[t])continue;let e=a[t].files;
1r.push(...e)}}if(0===r.length)return null;let l=(0,o.getDeploymentIdQueryOrEmptyString)();return(0,a.jsx)(a.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,i.encodeURIPath)(e)}${l}`;return e.endsWith(".css")?(0,a.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,n.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},443937,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let a=e.r(982446),n=e.r(78186),s=e.r(390014),i=e.r(395431);function o(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},c=function(e){let t={...l,...e},r=(0,n.lazy)(()=>t.loader().then(o)),c=t.loading;function u(e){let o=c?(0,a.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,u=l?n.Suspense:n.Fragment,d=t.ssr?(0,a.jsxs)(a.Fragment,{children:["undefined"==typeof window?(0,a.jsx)(i.PreloadChunks,{moduleIds:t.modules}):null,(0,a.jsx)(r,{...e})]}):(0,a.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,a.jsx)(r,{...e})});return(0,a.jsx)(u,{...l?{fallback:o}:{},children:d})}return u.displayName="LoadableComponent",u}},659808,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}});let a=e.r(481258)._(e.r(443937));function n(e,t){let r={};"function"==typeof e&&(r.loader=e);let n={...r,...t};return(0,a.default)({...n,modules:n.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},629837,48185,e=>{"use strict";e.i(969569);var t=e.i(982446);e.i(903133);var r=e.i(945228);e.i(242092);var a=e.i(659808),n=e.i(78186);(0,a.default)(()=>e.A(352292).then(e=>e.Turnstile),{loadableGenerated:{modules:[614268]},ssr:!1});let s=(0,n.forwardRef)(({validationError:e,...t},a)=>(r.websiteConfig.features.enableTurnstileCaptcha&&console.error("Captcha: NEXT_PUBLIC_TURNSTILE_SITE_KEY is not set"),null));s.displayName="Captcha",e.s(["Captcha",0,s],629837);var i=e.i(987391),o=e.i(311453),l=e.i(975157);let c=({text:e,className:r})=>(0,t.jsxs)("div",{className:(0,l.cn)("relative flex items-center",r),children:[(0,t.jsx)("div",{className:"grow border-t border-border"}),(0,t.jsx)("span",{className:"shrink mx-4 text-sm text-muted-foreground",children:e}),(0,t.jsx)("div",{className:"grow border-t border-border"})]});var u=e.i(448929),d=e.i(519455),f=e.i(520133),m=e.i(124863),h=e.i(578938),p=e.i(77607),g=e.i(584608),b=e.i(862336),x=e.i(473241),y=e.i(306645);e.s(["SocialLoginButton",0,({callbackUrl:e,showDivider:a=!0,className:s,buttonClassName:l,dividerClassName:v})=>{if(!r.websiteConfig.auth.enableGoogleLogin&&!r.websiteConfig.auth.enableGithubLogin)return null;let k=(0,x.useTranslations)("AuthPage.login"),j=(0,y.useSearchParams)().get("callbackUrl"),C=(0,b.useLocale)(),w=(0,f.getLocalePathname)({locale:C,href:p.DEFAULT_LOGIN_REDIRECT}),L=e||j||w,[N,S]=(0,n.useState)(null),M=async e=>{await h.authClient.signIn.social({provider:e,callbackURL:L,errorCallbackURL:p.Routes.AuthError},{onRequest:t=>{S(e)},onResponse:e=>{S(null)},onSuccess:t=>{(0,o.trackGaEvent)("login_success",{method:`social_${e}`,callback_url:L}),(0,i.upsertUserAttributionAction)({metadata:(0,m.getUserAttributionMetadata)()}),S(null)},onError:e=>{console.log("social login error",e.error.message),S(null)}})};return(0,t.jsxs)("div",{className:`w-full flex flex-col gap-4 ${s??""}`,children:[a&&(0,t.jsx)(c,{text:k("or"),className:v}),r.websiteConfig.auth.enableGoogleLogin&&(0,t.jsxs)(d.Button,{size:"lg",className:`group w-full cursor-pointer rounded-xl border border-white/20 bg-zinc-900/80 text-zinc-100 shadow-[inset_0_1px_0_rgba(255,255,255,0.08)] transition-all duration-200 hover:border-zinc-400/70 hover:bg-zinc-800/90 ${l??""}`,variant:"outline",onClick:()=>M("google"),disabled:"google"===N,children:["google"===N?(0,t.jsx)(g.Loader2Icon,{className:"mr-2 size-4 animate-spin"}):(0,t.jsx)("span",{className:"mr-3 inline-flex size-7 items-center justify-center rounded-full text-[1.45rem] font-black leading-none text-transparent [background-image:conic-gradient(from_20deg,#4285F4_0deg,#34A853_120deg,#FBBC05_220deg,#EA4335_320deg,#4285F4_360deg)] bg-clip-text","aria-hidden":!0,
1children:"G"}),(0,t.jsx)("span",{className:"text-base font-semibold tracking-[0.01em]",children:k("signInWithGoogle")})]}),r.websiteConfig.auth.enableGithubLogin&&(0,t.jsxs)(d.Button,{size:"lg",className:`w-full cursor-pointer rounded-xl border border-white/20 bg-zinc-900/80 text-zinc-100 shadow-[inset_0_1px_0_rgba(255,255,255,0.08)] transition-all duration-200 hover:border-zinc-400/70 hover:bg-zinc-800/90 ${l??""}`,variant:"outline",onClick:()=>M("github"),disabled:"github"===N,children:["github"===N?(0,t.jsx)(g.Loader2Icon,{className:"mr-2 size-4 animate-spin"}):(0,t.jsx)(u.GitHubIcon,{className:"size-4 mr-2"}),(0,t.jsx)("span",{className:"text-base font-semibold tracking-[0.01em]",children:k("signInWithGitHub")})]})]})}],48185)},828420,e=>{"use strict";var t=e.i(982446),r=e.i(987391),a=e.i(311453),n=e.i(319270),s=e.i(743173),i=e.i(44137),o=e.i(519455),l=e.i(903133),c=e.i(793479),u=e.i(945228),d=e.i(520133),f=e.i(124863),m=e.i(578938),h=e.i(975157),p=e.i(77607),g=e.i(869279),b=e.i(584608),x=e.i(862336),y=e.i(473241),v=e.i(306645),k=e.i(78186),j=e.i(474221),C=e.i(116719),w=e.i(629837),L=e.i(48185);e.s(["LoginForm",0,({className:e,callbackUrl:N,onSuccess:S,highlightsTitle:M,highlights:E})=>{let R=(0,y.useTranslations)("AuthPage.login"),P=(0,v.useSearchParams)(),_=(0,v.useRouter)(),O=P.get("error"),z=P.get("callbackUrl"),I=(0,x.useLocale)(),A=(0,d.getLocalePathname)({locale:I,href:p.DEFAULT_LOGIN_REDIRECT}),T=N||z||A,[D,U]=(0,k.useState)(""),[F,B]=(0,k.useState)(""),[$,q]=(0,k.useState)(!1),[G,H]=(0,k.useState)(!1),[K,W]=(0,k.useState)(!1),V=(0,k.useRef)(null),Q=$||G,X=u.websiteConfig.auth.enableCredentialLogin,Z=u.websiteConfig.features.enableTurnstileCaptcha&&!1,Y=C.string().optional(),J=C.object({email:C.email({message:R("emailRequired")}),otp:C.string().min(1,{message:R("otpRequired")}),captchaToken:Y}),ee=(0,j.useForm)({resolver:(0,g.zodResolver)(J),defaultValues:{email:"",otp:"",captchaToken:""}}),et=(0,j.useWatch)({control:ee.control,name:"captchaToken"}),er=async e=>!0,ea=async()=>{if(!await ee.trigger("email"))return;U(""),B("");let e=ee.getValues();await er(e.captchaToken)&&await m.authClient.emailOtp.sendVerificationOtp({email:e.email,type:"sign-in"},{onRequest:()=>{q(!0)},onResponse:()=>{q(!1)},onSuccess:()=>{W(!0),B(R("otpSent"))},onError:e=>{U(`${e.error.status}: ${e.error.message}`)}})},en=async e=>{K?(U(""),B(""),await m.authClient.signIn.emailOtp({email:e.email,otp:e.otp},{onRequest:()=>{H(!0)},onResponse:()=>{H(!1)},onSuccess:()=>{(0,a.trackGaEvent)("login_success",{method:"email_otp",callback_url:T}),(0,r.upsertUserAttributionAction)({metadata:(0,f.getUserAttributionMetadata)()}),B(R("loginSuccess")),_.push(T),S&&S()},onError:e=>{U(`${e.error.status}: ${e.error.message}`)}})):U(R("otpNotSent"))};return(0,t.jsxs)(n.AuthCard,{headerLabel:R("welcomeBack"),className:(0,h.cn)("",e),children:[(M||E&&E.length>0)&&(0,t.jsxs)("div",{className:"mb-4 rounded-lg border border-fuchsia-500/25 bg-fuchsia-500/5 p-3",children:[M&&(0,t.jsx)("p",{className:"mb-2 text-sm font-semibold text-foreground",children:M}),E&&E.length>0&&(0,t.jsx)("ul",{className:"space-y-1.5 text-xs text-muted-foreground",children:E.map(e=>(0,t.jsxs)("li",{className:"flex items-start gap-2",children:[(0,t.jsx)("span",{className:"mt-[6px] inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-fuchsia-400"}),(0,t.jsx)("span",{children:e})]},e))})]}),X&&(0,t.jsx)(l.Form,{...ee,children:(0,t.jsxs)("form",{onSubmit:ee.handleSubmit(en),className:"space-y-5",children:[(0,t.jsx)(L.SocialLoginButton,{callbackUrl:T,showDivider:!1,className:"mb-1",buttonClassName:"h-12"}),(0,t.jsxs)("div",{className:"relative flex items-center",children:[(0,t.jsx)("div",{className:"grow border-t border-zinc-700/70"}),(0,t.jsx)("span",{className:"mx-4 shrink text-sm tracking-[0.08em] text-zinc-500",children:"Or continue with"}),(0,t.jsx)("div",{className:"grow border-t border-zinc-700/70"})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(l.FormField,{control:ee.control,name:"email",render:({field:e})=>(0,t.jsxs)(l.FormItem,{children:[(0,t.jsx)(l.FormControl,{children:(0,t.jsx)(c.Input,{...e,disabled:Q,placeholder:"[email protected]",type:"email",className:"h-12 rounded-xl border border-zinc-600 bg-black/80 px-4 text-base text-zinc-200 placeholder:text-zinc-500 focus-visible:border-zinc-400"})}),(0,t.jsx)(l.FormMessage,{})]})}),K&&(0,t.jsx)(l.FormField,{control:ee.control,name:"otp",render:({field:e})=>(0,t.jsxs)(l.FormItem,{children:[(0,t.jsx)(l.FormControl,{children:(0,t.jsx)(c.Input,{...e,disabled:Q,placeholder:R("verificationCodePlaceholder"),inputMode:"numeric",className:"h-12 rounded-xl border border-zinc-600 bg-black/80 px-4 text-base text-zinc-200 placeholder:text-zinc-500 focus-visible:border-zinc-400"})}),(0,t.jsx)(l.FormMessage,{})]})})]}),(0,t.jsx)(s.FormError,{message:D||O||void 0}),(0,t.jsx)(i.FormSuccess,{message:F}),Z&&(0,t.jsx)(w.Captcha,{ref:V,onSuccess:e=>ee.setValue("captchaToken",e),validationError:ee.formState.errors.captchaToken?.message}),(0,t.jsxs)(o.Button,{disabled:Q||Z&&!et||K&&!ee.getValues("otp"),size:"lg",type:"button",onClick:async()=>{K?await ee.handleSubmit(en)():await ea()},className:"h-12 w-full rounded-xl border border-zinc-500/80 bg-zinc-300 text-base font-semibold text-zinc-900 hover:bg-zinc-200 flex items-center justify-center gap-2 cursor-pointer",children:[(G||$)&&(0,t.jsx)(b.Loader2Icon,{className:"mr-2 size-4 animate-spin"}),(0,t.jsx)("span",{children:K?R("verifyAndSignIn"):"Continue with Email"})]})]})}),!X&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(L.SocialLoginButton,{callbackUrl:T,showDivider:!1})})]})}])},378569,e=>{"use strict";let t=(0,e.i(904274).default)("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);e.s(["default",()=>t])},913226,e=>{"use strict";var t=e.i(524444);e.s(["X",()=>t.default])},977163,e=>{"use strict";let t=(0,e.i(904274).default)("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["default",()=>t])},415427,e=>{"use strict";let t=(0,e.i(904274).default)("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}
1],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);e.s(["User2Icon",()=>t],415427)},956468,e=>{"use strict";let t=(0,e.i(904274).default)("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["default",()=>t])},225123,e=>{"use strict";var t=e.i(982446),r=e.i(975157),a=e.i(415427);function n({name:e,image:n,className:s,...i}){return(0,t.jsxs)("div",{className:(0,r.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full bg-muted",s),...i,children:[(0,t.jsxs)("div",{className:"absolute inset-0 flex items-center justify-center",children:[(0,t.jsx)("span",{className:"sr-only",children:e}),(0,t.jsx)(a.User2Icon,{className:"size-4"})]}),n&&(0,t.jsx)("img",{alt:e,title:e,src:n,className:"absolute inset-0 size-full object-cover",loading:"lazy",onLoad:e=>{let t=e.currentTarget.previousElementSibling;t&&(t.style.opacity="0")},onError:e=>{let t=e.currentTarget.previousElementSibling;t&&(t.style.opacity="1"),e.currentTarget.style.display="none"}})]})}e.s(["UserAvatar",()=>n])},957947,e=>{"use strict";let t=(0,e.i(904274).default)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);e.s(["CreditCardIcon",()=>t],957947)},614185,512482,e=>{"use strict";var t=e.i(378569);e.s(["FilmIcon",()=>t.default],614185);var r=e.i(956468);e.s(["Settings2Icon",()=>r.default],512482)},958915,894120,e=>{"use strict";function t(e="/"){if("undefined"==typeof document)return;let r=document.createElement("form");r.method="POST",r.action="/api/auth/sign-out",r.style.display="none";let a=document.createElement("input");a.type="hidden",a.name="callbackURL",a.value=e,r.appendChild(a),document.body.appendChild(r),r.submit()}e.s(["forceSignOutWithPost",()=>t],958915);let r=(0,e.i(904274).default)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);e.s(["default",()=>r],894120)},107308,e=>{"use strict";var t=e.i(982446),r=e.i(78186),a=e.i(178896),n=e.i(904245),s=e.i(989780),i=e.i(190395),o=e.i(474765),l=e.i(125214),c=e.i(791790),u=e.i(479993),d="Collapsible",[f,m]=(0,n.createContextScope)(d),[h,p]=f(d),g=r.forwardRef((e,a)=>{let{__scopeCollapsible:n,open:i,defaultOpen:o,disabled:c,onOpenChange:d,...f}=e,[m=!1,p]=(0,s.useControllableState)({prop:i,defaultProp:o,onChange:d});return(0,t.jsx)(h,{scope:n,disabled:c,contentId:(0,u.useId)(),open:m,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),children:(0,t.jsx)(l.Primitive.div,{"data-state":j(m),"data-disabled":c?"":void 0,...f,ref:a})})});g.displayName=d;var b="CollapsibleTrigger",x=r.forwardRef((e,r)=>{let{__scopeCollapsible:n,...s}=e,i=p(b,n);return(0,t.jsx)(l.Primitive.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":j(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...s,ref:r,onClick:(0,a.composeEventHandlers)(e.onClick,i.onOpenToggle)})});x.displayName=b;var y="CollapsibleContent",v=r.forwardRef((e,r)=>{let{forceMount:a,...n}=e,s=p(y,e.__scopeCollapsible);return(0,t.jsx)(c.Presence,{present:a||s.open,children:({present:e})=>(0,t.jsx)(k,{...n,ref:r,present:e})})});v.displayName=y;var k=r.forwardRef((e,a)=>{let{__scopeCollapsible:n,present:s,children:c,...u}=e,d=p(y,n),[f,m]=r.useState(s),h=r.useRef(null),g=(0,o.useComposedRefs)(a,h),b=r.useRef(0),x=b.current,v=r.useRef(0),k=v.current,C=d.open||f,w=r.useRef(C),L=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,i.useLayoutEffect)(()=>{let e=h.current;if(e){L.current=L.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();b.current=t.height,v.current=t.width,w.current||(e.style.transitionDuration=L.current.transitionDuration,e.style.animationName=L.current.animationName),m(s)}},[d.open,s]),(0,t.jsx)(l.Primitive.div,{"data-state":j(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!C,...u,ref:g,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":k?`${k}px`:void 0,...e.style}
1,children:C&&c})});function j(e){return e?"open":"closed"}function C({...e}){return(0,t.jsx)(g,{"data-slot":"collapsible",...e})}function w({...e}){return(0,t.jsx)(x,{"data-slot":"collapsible-trigger",...e})}function L({...e}){return(0,t.jsx)(v,{"data-slot":"collapsible-content",...e})}e.s(["Collapsible",()=>C,"CollapsibleContent",()=>L,"CollapsibleTrigger",()=>w],107308)},352292,e=>{e.v(t=>Promise.all(["static/chunks/735eb915c5753aec.js"].map(t=>e.l(t))).then(()=>t(614268)))}]);

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.