;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="18544081-8206-2d02-6ffc-ed2b05bca012")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,739432,e=>{"use strict";var t=e.i(908464),r=e.i(472361);e.s(["useOnInView",0,function(e,n){let i,o,c,a=(0,t.c)(11);a[0]!==n?(i=void 0===n?{}:n,a[0]=n,a[1]=i):i=a[1];let{threshold:l,root:u,rootRef:s,rootMargin:f,scrollMargin:d,triggerOnce:h}=i,E=void 0===l?0:l,_=void 0===u?null:u,m=void 0!==h&&h,p=(0,r.useRef)(e);a[2]!==e?(o=()=>{p.current=e},a[2]=e,a[3]=o):o=a[3],(0,r.useEffect)(o);let R=(0,r.useRef)(null);return a[4]!==_||a[5]!==f||a[6]!==s||a[7]!==d||a[8]!==E||a[9]!==m?(c=e=>{if(R.current?.disconnect(),R.current=null,!e)return;let t=new IntersectionObserver(e=>{let r=Array.isArray(t.thresholds)?t.thresholds:[t.thresholds];e.forEach(e=>{let n=e.isIntersecting&&r.some(t=>e.intersectionRatio>=t);p.current(n,e),n&&m&&t.disconnect()})},{threshold:E,root:_??s?.current??null,rootMargin:f,scrollMargin:d});t.observe(e),R.current=t},a[4]=_,a[5]=f,a[6]=s,a[7]=d,a[8]=E,a[9]=m,a[10]=c):c=a[10],c}])},432604,e=>{"use strict";var t=e.i(472361);e.s(["usePreviousValue",0,function(e){let[r,n]=(0,t.useState)(e);return r!==e&&n(e),r}])},334726,e=>{"use strict";let t=["mc_enable","mc_disable","od","atod_token","pdp_no_cache","utm_source","utm_campaign","utm_medium","utm_content","utm_term","ilsource","ilcampaign","ilmedium"];e.s(["getUrlWithQueryParams",0,function(e){let r=new URL(e,window.location.origin),n=new URLSearchParams(location.search);for(let e of t){let t=n.getAll(e);if(!r.searchParams.has(e))for(let n of t)r.searchParams.append(e,n)}return r.toString()},"isPdpNoCacheEnabled",0,function(){return new URLSearchParams(window.location.search).has("pdp_no_cache")},"preserveQueryParams",0,function(e,r){let n=new URLSearchParams(r),i=[];for(let e of t){let t=n.getAll(e);t.length>0&&i.push([e,t])}if(0===i.length)return e;let o=new URL(e,window.location.origin);for(let[e,t]of i)if(!o.searchParams.has(e))for(let r of t)o.searchParams.append(e,r);return o.pathname+o.search+o.hash}])},772477,(e,t,r)=>{t.exports=e.r(770841)},127750,631436,111525,e=>{"use strict";var t=e.i(908464),r=e.i(472361),n=e.i(772477);let i=new Set;function o(){for(let e of i)e()}let c=!1;function a(e){return i.add(e),!function(){if(c)return;c=!0;let{pushState:e,replaceState:t}=history;history.pushState=function(...t){e.apply(this,t),queueMicrotask(o)},history.replaceState=function(...e){t.apply(this,e),queueMicrotask(o)}}(),window.addEventListener("popstate",e),()=>{i.delete(e),window.removeEventListener("popstate",e)}}function l(){return window.location.pathname}e.s(["subscribe",0,a],631436),e.s(["useWindowPathname",0,function(){let e,i=(0,t.c)(2),o=(0,n.usePathname)();return i[0]!==o?(e=()=>o,i[0]=o,i[1]=e):e=i[1],(0,r.useSyncExternalStore)(a,l,e)}],127750);var u=e.i(425814),s=e.i(859474);e.s(["useIsRouteIntercepted",0,function(){let e,n,i=(0,t.c)(3);i[0]===Symbol.for("react.memo_cache_sentinel")?(e=u.GlobalLayoutRouterContext,i[0]=e):e=i[0];let{tree:o}=(0,r.useContext)(e);return i[1]!==o?(n=(0,s.hasInterceptionRouteInCurrentTree)(o),i[1]=o,i[2]=n):n=i[2],n}],111525)},385790,e=>{"use strict";var t=e.i(733783),r=e.i(908464),n=e.i(334726),i=e.i(772477),o=e.i(472361),c=e.i(127750),a=e.i(111525),l=e.i(432604);let u=o.useLayoutEffect,s=(0,o.createContext)(null),f=(0,o.createContext)(null),d=(0,o.createContext)(null);e.s(["LocationPathnameContext",0,d,"NavigationLoadingContext",0,s,"NavigationLoadingProvider",0,function(e){let h,E,_,m,p,R,P,v,I,T=(0,r.c)(19),{children:y}=e,S=(0,a.useIsRouteIntercepted)(),w=(0,o.useRef)(S),[L,O]=(0,o.useTransition)();T[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],T[0]=h):h=T[0];let g=(0,o.useRef)(h),[A,b]=(0,o.useState)(null),[C,N]=(0,o.useState)(null),D=(0,i.useRouter)(),x=(0,o.useRef)(D),F=function(){let e=(0,i.usePathname)(),t=(0,c.useWindowPathname)(),r=(0,l.usePreviousValue)(e),[n,a]=(0,o.useState)(null),u=n;return r!==e&&(u=e),null!=u&&e===t&&(u=null),window.history.state?.__ecto_soft===!0&&t!==e&&(u=t),u!==n&&a(u),u}();T[1]!==S||T[2]!==D?(E=()=>{w.current=S,x.current=D},T[1]=S,T[2]=D,T[3]=E):E=T[3],u(E),T[4]===Symbol.for("react.memo_cache_sentinel")?(_=(e,t)=>{if("number"==typeof e){N(null),b(null),O(()=>{e<0?x.current.back():e>0&&x.current.forward()});return}if(w.current&&!t?.replace){b(null),x.current.back(),setTimeout(()=>_(e,t));return}let r=window.location.search,i=(0,n.preserveQueryParams)(e,r);if(!t?.force){for(let{fn:r,id:n}of g.current)if(r(i))return void b({id:n,state:"blocked",reset:()=>b(null),proceed:()=>_(e,{...t,force:!0})})}if(t?.soft){let e=t?.state?{...window.history.state,...t?.state,__ecto_soft:!0}:{...window.history.state,__ecto_soft:!0};N(t?.state??null),t?.replace?window.history.replaceState(e,"",i):window.history.pushState(e,"",i),b(null);return}O(()=>{N(t?.state??null),t?.replace?x.current.replace(i):x.current.push(i),b(null)})},m=(e,t)=>{let r=new URL(window.location.href);for(let t in e){let n=e[t];r.searchParams.delete(t),Array.isArray(n)?n.forEach(e=>r.searchParams.append(t,e)):null!=n&&r.searchParams.set(t,n)}_(r.pathname+r.search,t)},T[4]=_,T[5]=m):(_=T[4],m=T[5]);let k=m;T[6]===Symbol.for("react.memo_cache_sentinel")?(p=(e,t)=>(g.current=[...g.current,{fn:e,id:t}],()=>{g.current=g.current.filter(t=>t.fn!==e)}),T[6]=p):p=T[6];let M=p;T[7]!==A||T[8]!==L?(R={navigate:_,isPending:L,startNavigationTransition:O,setSearchParams:k,addBlocker:M,blocker:A},T[7]=A,T[8]=L,T[9]=R):R=T[9];let V=R;return T[10]!==y||T[11]!==V?(P=(0,t.jsx)(s.Provider,{value:V,children:y}),T[10]=y,T[11]=V,T[12]=P):P=T[12],T[13]!==F||T[14]!==P?(v=(0,t.jsx)(d.Provider,{value:F,children:P}),T[13]=F,T[14]=P,T[15]=v):v=T[15],T[16]!==C||T[17]!==v?(I=(0,t.jsx)(f.Provider,{value:C,children:v}),T[16]=C,T[17]=v,T[18]=I):I=T[18],I},"NavigationStateContext",0,f])},330843,e=>{"use strict";let t=(0,e.i(472361).createContext)({isIntercepted:!1});e.s(["NavigationRouteContext",0,t])},237334,e=>{"use strict";var t=e.i(472361),r=e.i(772477),n=e.i(385790),i=e.i(330843);e.s(["useCurrentPathname",0,function(){let e,i=(0,r.usePathname)(),o=(0,t.use)(n.LocationPathnameContext);e:{if(null!=o){e=o;break e}e=i}return e},"usePathname",0,function(){let e,o=(0,t.use)(i.NavigationRouteContext),c=(0,r.usePathname)(),a=(0,t.use)(n.LocationPathnameContext);e:{if(o.isIntercepted&&o.pathname){e=o.pathname;break e}if(null!=a){e=a;break e}e=c}return e}])},405359,774789,e=>{"use strict";e.i(178414);var t,r=e.i(925261),n=((t={}).ROOT="root",t.HOME="home",t.HOME_INDEX="home_index",t.HOME_REDIRECT="home_redirect",t.ASK="ask",t.PROMPT="prompt",t.SHARE="share",t.ARTIFACT_SHARE="artifact_share",t.MEDIA_SHARE="media_share",t.VIBES="vibes",t.VIBES_INDEX="vibes_index",t.VIBES_POST="vibes_post",t.MEDIA="media",t.CREATE="create",t.PROFILE="profile",t.PROFILE_INDEX="profile_index",t.PROFILE_POST="profile_post",t.PROFILE_REMIX="profile_remix",t.PROFILE_FOLLOWERS="profile_followers",t.PROFILE_FOLLOWING="profile_following",t.PROFILE_EDIT="profile_edit",t.PROFILE_EDIT_REDIRECT="profile_edit_redirect",t.DEBUG_UR_PREVIEW="debug_ur_preview",t.TEST_ENT_QUERY="test_ent_query",t.ICONS="icons",t.ACCOUNT_STATUS="account_status",t.NOTIFICATIONS="notifications",t.ACCESS_DENIED="access_denied",t.TASKS="tasks",t.TASKS_INDEX="tasks_index",t.TASKS_TIMELINE="tasks_timeline",t.TASK_EXECUTIONS="task_executions",t.PROACTIVE_FEED_TOOLING="proactive_feed_tooling",t.PROACTIVE_FEED_TOOLING_INDEX="proactive_feed_tooling_index",t.PROACTIVE_FEED_TOOLING_IMAGE_GEN="proactive_feed_tooling_image_gen",t.PROACTIVE_FEED_TOOLING_FETCH_CARDS="proactive_feed_tooling_fetch_cards",t.AI_IMAGE_GENERATOR="ai_image_generator",t.AI_VIDEO_GENERATOR="ai_video_generator",t.REPORT_STATUS="report_status",t.AI_DETECTOR="ai_detector",t.AI_VERIFY="ai_verify",t.AI_VERIFY_REDIRECT="ai_verify_redirect",t.LIBRARY="library",t.HELP="help",t);e.s(["EctoRouteId",()=>n],774789);let i=[{id:n.ROOT,path:"/",children:[{id:n.HOME,path:"/",children:[{id:n.HOME_INDEX,index:!0,tracePolicy:r.EctoRouteTracePolicy.HOME},{id:n.ASK,path:"ask",tracePolicy:r.EctoRouteTracePolicy.HOME},{id:n.PROMPT,path:"prompt/:id",tracePolicy:r.EctoRouteTracePolicy.PROMPT}]},{id:n.HOME_REDIRECT,path:"home"},{id:n.REPORT_STATUS,path:"report_status",tracePolicy:r.EctoRouteTracePolicy.REPORT_STATUS},{id:n.ACCOUNT_STATUS,path:"account_status/:vanityScreenEntrypoint",tracePolicy:r.EctoRouteTracePolicy.ACCOUNT_STATUS},{id:n.VIBES,path:"vibes",children:[{id:n.VIBES_INDEX,index:!0,tracePolicy:r.EctoRouteTracePolicy.VIBES},{id:n.VIBES_POST,path:"post/:postId/:slug?",tracePolicy:r.EctoRouteTracePolicy.VIBES_POST}]},{id:n.MEDIA,path:"media",tracePolicy:r.EctoRouteTracePolicy.MEDIA},{id:n.ARTIFACT_SHARE,path:"share/a/:id",tracePolicy:r.EctoRouteTracePolicy.ARTIFACT_SHARE},{id:n.SHARE,path:"share/c/:id",tracePolicy:r.EctoRouteTracePolicy.SHARE},{id:n.SHARE,path:"share/:id",tracePolicy:r.EctoRouteTracePolicy.SHARE},{id:n.MEDIA_SHARE,path:"share/m/:id",tracePolicy:r.EctoRouteTracePolicy.MEDIA_SHARE},{id:n.MEDIA_SHARE,path:"media-share/:id",tracePolicy:r.EctoRouteTracePolicy.MEDIA_SHARE},{id:n.CREATE,path:"create",tracePolicy:r.EctoRouteTracePolicy.CREATE},{id:n.LIBRARY,path:"artifacts",tracePolicy:r.EctoRouteTracePolicy.ARTIFACTS},{id:n.NOTIFICATIONS,path:"notifications",tracePolicy:r.EctoRouteTracePolicy.NOTIFICATIONS},{id:n.ACCESS_DENIED,path:"access_denied",tracePolicy:r.EctoRouteTracePolicy.ACCESS_DENIED},{id:n.AI_IMAGE_GENERATOR,path:"ai-image-generator",tracePolicy:r.EctoRouteTracePolicy.AI_IMAGE_GENERATOR},{id:n.AI_VIDEO_GENERATOR,path:"ai-video-generator",tracePolicy:r.EctoRouteTracePolicy.AI_VIDEO_GENERATOR},{id:n.AI_DETECTOR,path:"ai-detector",tracePolicy:r.EctoRouteTracePolicy.AI_DETECTOR},{id:n.AI_VERIFY,path:"identification",tracePolicy:r.EctoRouteTracePolicy.AI_VERIFY},{id:n.AI_VERIFY_REDIRECT,path:"ai-verify"},{id:n.HELP,path:"help",tracePolicy:r.EctoRouteTracePolicy.HELP},{id:n.PROFILE_EDIT_REDIRECT,path:"profile_edit"},{id:n.PROFILE,path:":username",children:[{id:n.PROFILE_INDEX,index:!0,tracePolicy:r.EctoRouteTracePolicy.PROFILE},{id:n.PROFILE_POST,path:"post/:postId/:slug?",tracePolicy:r.EctoRouteTracePolicy.PROFILE_VIBES_POST},{id:n.PROFILE_REMIX,path:"remix",tracePolicy:r.EctoRouteTracePolicy.PROFILE_REMIX},{id:n.PROFILE_FOLLOWERS,path:"followers",tracePolicy:r.EctoRouteTracePolicy.PROFILE_FOLLOWERS},{id:n.PROFILE_FOLLOWING,path:"following",tracePolicy:r.EctoRouteTracePolicy.PROFILE_FOLLOWING},{id:n.PROFILE_EDIT,path:"edit",tracePolicy:r.EctoRouteTracePolicy.PROFILE}]},{id:n.DEBUG_UR_PREVIEW,path:"_debug/ur-preview",tracePolicy:r.EctoRouteTracePolicy.DEBUG_UR_PREVIEW}]}],o=/^:[\w-]+$/,c=e=>"*"===e,a=e=>e.join("/").replace(/\/\/+/g,"/"),l=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");e.s(["matchRoutes",0,function(e){let t=function e(t,r=[],n=[],i="",l=!1){let u=(t,u,s=l,f)=>{var d,h;let E,_,m={relativePath:void 0===f?t.path||"":f,childrenIndex:u,route:t};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(i)&&s)return;m.relativePath=m.relativePath.slice(i.length)}let p=a([i,m.relativePath]),R=n.concat(m);"children"in t&&t.children&&t.children.length>0&&e(t.children,r,R,p,s),(null!=t.path||t.index)&&r.push({path:p,score:(d=p,h=t.index,_=(E=d.split("/")).length,E.some(c)&&(_+=-2),h&&(_+=2),E.filter(e=>!c(e)).reduce((e,t)=>e+(o.test(t)?3:""===t?1:10),_)),routesMeta:R})};return t.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...i]=r,o=n.endsWith("?"),c=n.replace(/\?$/,"");if(0===i.length)return o?[c,""]:[c];let a=e(i.join("/")),l=[];return l.push(...a.map(e=>""===e?c:[c,e].join("/"))),o&&l.push(...a),l.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))u(e,t,!0,r);else u(e,t)}),r}(i);t.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let r=null;for(let n=0;null==r&&n(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),n+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?n+="\\/*$":""!==e&&"/"!==e&&(n+="(?:(?=\\/|$))"),[new RegExp(n),r]}(e.path,e.end),i=t.match(r);if(!i)return null;let o=i[0],c=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=a[n]||"";c=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let i=a[n];return r&&!i?e[t]=void 0:e[t]=(i||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:c,pattern:e}}({path:c.relativePath,end:u},s),d=c.route;if(!f)return null;Object.assign(n,f.params),o.push({params:n,pathname:a([i,f.pathname]),pathnameBase:l(a([i,f.pathnameBase])),route:d}),"/"!==f.pathnameBase&&(i=a([i,f.pathnameBase]))}return o}(t[n],e);return r}],405359)},20474,e=>{"use strict";var t=e.i(908464),r=e.i(772477),n=e.i(405359),i=e.i(237334);e.s(["useParams",0,function(){let e,o=(0,t.c)(2),c=(0,i.usePathname)();(0,r.useParams)();{let t;o[0]!==c?(t=function(e){let t=(0,n.matchRoutes)(e);if(!t)return{};let r=t.reduce((e,t)=>({...e,...t.params}),{});return"username"in r&&"string"==typeof r.username&&(r.username=r.username.replace(/^@/,"")),r}(c),o[0]=c,o[1]=t):t=o[1],e=t}return e}])},354887,e=>{"use strict";var t=e.i(908464),r=e.i(472361),n=e.i(772477),i=e.i(330843),o=e.i(631436),c=e.i(385790);function a(){return window.location.search}e.s(["useSearchParams",0,function(){let e,l,u=(0,t.c)(4),s=(0,r.use)(i.NavigationRouteContext),f=(0,n.useSearchParams)();u[0]!==f?(e=()=>{let e;return(e=f.toString())?`?${e}`:""},u[0]=f,u[1]=e):e=u[1];let d=(0,r.useSyncExternalStore)(o.subscribe,a,e),h=(0,r.use)(c.LocationPathnameContext);e:{if(s.isIntercepted&&s.searchParams){l=s.searchParams;break e}if(null!=h){let e;u[2]!==d?(e=new n.ReadonlyURLSearchParams(d),u[2]=d,u[3]=e):e=u[3],l=e;break e}l=f}return l}])},835119,e=>{"use strict";var t=e.i(908464),r=e.i(472361);function n(e){return"function"==typeof e?e():e}e.s(["useLatchedValue",0,function(e,i,o){let c,a,l=(0,t.c)(9);l[0]!==o?(c=void 0===o?{}:o,l[0]=o,l[1]=c):c=l[1];let{resetKey:u,isEqual:s}=c,f=void 0===s?Object.is:s;l[2]!==u||l[3]!==e?(a=()=>({key:u,latched:n(e)}),l[2]=u,l[3]=e,l[4]=a):a=l[4];let[d,h]=(0,r.useState)(a),{key:E,latched:_}=d;if(Object.is(E,u)){if(i){let t;l[7]!==e?(t=n(e),l[7]=e,l[8]=t):t=l[8],_=t}}else{let t;E=u,l[5]!==e?(t=n(e),l[5]=e,l[6]=t):t=l[6],_=t}return f(_,d.latched)&&Object.is(E,d.key)||h({key:E,latched:_}),_}])},527357,843890,e=>{"use strict";var t=e.i(385790),r=e.i(472361),n=e.i(237334);e.i(20474);var i=e.i(354887),o=e.i(908464),c=e.i(835119);e.s(["useNavigationState",0,function(){let e,a=(0,o.c)(2),l=(0,r.use)(t.NavigationStateContext),u=(0,n.usePathname)(),s=(0,i.useSearchParams)();a[0]!==s?(e=s.toString(),a[0]=s,a[1]=e):e=a[1];let f=`${u}?${e}`;return(0,c.useLatchedValue)(l,!1,{resetKey:f})??null}],843890),e.s(["useNavigate",0,function(){let e=(0,r.use)(t.NavigationLoadingContext);if(!e)throw Error("useNavigate must be used within a NavigationLoadingProvider");return e}],527357)},879695,672054,e=>{"use strict";var t=e.i(908464);function r(...e){return t=>{let r=[];return e.forEach(e=>{if(null!=e){if("function"==typeof e){let n=e(t);"function"==typeof n?r.push(n):r.push(()=>e(null));return}if("object"==typeof e){e.current=t,r.push(()=>{e.current=null});return}}}),()=>{r.forEach(e=>e())}}}e.s(["default",0,r],672054),e.s(["useMergeRefs",0,function(e,n,i,o){let c,a=(0,t.c)(5);return a[0]!==e||a[1]!==n||a[2]!==i||a[3]!==o?(c=r(e,n,i,o),a[0]=e,a[1]=n,a[2]=i,a[3]=o,a[4]=c):c=a[4],c}],879695)},714277,e=>{"use strict";function t(e,t,r){let n;return"requestIdleCallback"in window?(n=window.requestIdleCallback(()=>{n=null,e()},t),()=>{null!=n&&window.cancelIdleCallback(n)}):(n=window.setTimeout(e,r),()=>{null!=n&&window.clearTimeout(n)})}e.s(["requestIdleCallbackAfterLoad",0,function(e,r,n){let i;var o=()=>t(e,r,n);function c(){"complete"===document.readyState&&!0===window.__REACT_INITIAL_RENDER_COMPLETE__&&(window.removeEventListener("react_initial_render_complete",c),window.removeEventListener("load",c),i=t(o,void 0,void 0))}return"complete"!==document.readyState&&window.addEventListener("load",c),!0!==window.__REACT_INITIAL_RENDER_COMPLETE__&&window.addEventListener("react_initial_render_complete",c),c(),()=>{window.removeEventListener("react_initial_render_complete",c),window.removeEventListener("load",c),i?.()}}])},520243,180181,e=>{"use strict";function t(e){if(null==e)return;let t=/(auto|scroll)/,r=e;for(;(r=r.parentElement)&&r!==document.body;){let e=getComputedStyle(r);if(t.test(e.overflow+e.overflowY))return r}return document.documentElement}function r(e,t){let r=e.offsetTop,n=e.offsetParent;for(;t!==n;)if(n instanceof HTMLElement)r+=n.offsetTop,n=n.offsetParent;else break;return r}e.s(["getOffsetTopFromParent",0,r,"getScrollParent",0,t,"scrollElementIntoViewIfNeeded",0,function(e,n="all",i){let o,c=t(e);if(null==c)return;let a=e.getBoundingClientRect(),l=r(e,c),u=l+a.height,s=Number.isNaN(o=parseInt(getComputedStyle(c).scrollPaddingTop??"0",10))?0:o,f=c.scrollTop+s,d=c.scrollTop+c.clientHeight;"top"===n?(ld)&&e.scrollIntoView(i):"bottom"===n?(ud)&&e.scrollIntoView(i):(ld)&&e.scrollIntoView(i)}],180181);let n=new WeakMap;e.s(["createHoverPrefetchController",0,function(e){let{triggerPrefetch:r,enabledRef:i}=e,o=null,c=!1,a=null,l=()=>{null!=o&&(window.clearTimeout(o),o=null)},u=()=>{c&&null==o&&i.current&&(c=!1,o=window.setTimeout(()=>{o=null,r()},100))},s=()=>{null==o&&i.current&&(a?.isScrolling()?c=!0:o=window.setTimeout(()=>{o=null,r()},100))},f=()=>{l(),c=!1},d=e=>{0!==e.button||i.current&&r()},h=e=>{"Enter"!==e.key||i.current&&r()};return{addListeners(e){e.addEventListener("pointerenter",s),e.addEventListener("pointerleave",f),e.addEventListener("pointerdown",d),e.addEventListener("keydown",h);let r=t(e);r&&r!==document.documentElement&&(a=function(e,t){let r=n.get(e);if(!r){let t=null,i={isScrolling:!1,subscribers:new Set,dispose:()=>{}},o=()=>{i.isScrolling=!0,null!=t&&window.clearTimeout(t),t=window.setTimeout(()=>{for(let e of(i.isScrolling=!1,t=null,i.subscribers))e()},100)};e.addEventListener("scroll",o,{passive:!0}),i.dispose=()=>{e.removeEventListener("scroll",o),null!=t&&window.clearTimeout(t),n.delete(e)},r=i,n.set(e,r)}r.subscribers.add(t);let i=r;return{isScrolling:()=>i.isScrolling,unsubscribe:()=>{i.subscribers.delete(t),0===i.subscribers.size&&i.dispose()}}}(r,u))},removeListeners(e){l(),c=!1,e.removeEventListener("pointerenter",s),e.removeEventListener("pointerleave",f),e.removeEventListener("pointerdown",d),e.removeEventListener("keydown",h),a?.unsubscribe(),a=null},clearPendingTimeout:l}}],520243)},277162,22337,147237,e=>{"use strict";function t(){return"u">typeof navigator?navigator.deviceMemory:void 0}function r(e){return null!=e&&e<=4}e.s(["conversationPrefetchLimitForDevice",0,function(){let e=t();return e?e<=2?0:e<=4?6:1/0:1/0},"deviceMemoryGiB",0,t,"isLowMemoryDevice",0,function(){return r(t())},"isLowMemoryFromGiB",0,r,"shouldDisableViewportPrefetch",0,function(){let e=t();return null!=e&&e<=2}],277162);var n=e.i(733783),i=e.i(908464),o=e.i(772477),c=e.i(472361);function a(e){let t,r,n,o=(0,i.c)(5);o[0]!==e?(t=t=>e(t),o[0]=e,o[1]=t):t=o[1];let a=(0,c.useEffectEvent)(t);o[2]!==a?(r=()=>{let e=()=>{a(document.visibilityState)};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},o[2]=a,o[3]=r):r=o[3],o[4]===Symbol.for("react.memo_cache_sentinel")?(n=[],o[4]=n):n=o[4],(0,c.useEffect)(r,n)}e.s(["usePageVisibilityCallback",0,a],22337);let l=c.createContext(null);e.s(["EctoPrefetchContext",0,l,"EctoPrefetchContextProvider",0,function(e){let t,r,u,s,f,d,h,E,_,m,p,R,P,v,I=(0,i.c)(6),{children:T,prefetchDisabled:y}=e,S=void 0!==y&&y,w=(_=(0,i.c)(7),m=(0,c.useRef)(!1),_[0]===Symbol.for("react.memo_cache_sentinel")?(u=new Set,_[0]=u):u=_[0],p=(0,c.useRef)(u),R=(0,o.useRouter)(),P=(0,c.useRef)(R),_[1]!==R?(s=()=>{P.current=R},_[1]=R,_[2]=s):s=_[2],(0,c.useEffect)(s),_[3]===Symbol.for("react.memo_cache_sentinel")?(f=e=>{m.current||("visible"===document.visibilityState?P.current.prefetch(e,{kind:"full"}):p.current.add(e))},_[3]=f):f=_[3],v=f,_[4]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{"visible"!==e||m.current||(p.current.forEach(e=>v(e)),p.current.clear())},_[4]=d):d=_[4],a(d),_[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>()=>{m.current=!0},E=[],_[5]=h,_[6]=E):(h=_[5],E=_[6]),(0,c.useEffect)(h,E),v);return I[0]!==w||I[1]!==S?(t={fetcher:w,prefetchDisabled:S},I[0]=w,I[1]=S,I[2]=t):t=I[2],I[3]!==T||I[4]!==t?(r=(0,n.jsx)(l.Provider,{value:t,children:T}),I[3]=T,I[4]=t,I[5]=r):r=I[5],r}],147237)},565317,104346,e=>{"use strict";var t=e.i(908464),r=e.i(472361),n=e.i(147237);e.s(["usePrefetchRouteIntent",0,function(e){let i,o,c,a=(0,t.c)(5),{href:l}=e,u=(0,r.use)(n.EctoPrefetchContext),s=(0,r.useRef)(u?.fetcher),f=(0,r.useRef)(!1),d=(0,r.useRef)(null),h=(0,r.useRef)(l);a[0]!==u?.fetcher||a[1]!==l?(i=()=>{s.current=u?.fetcher,h.current=l},a[0]=u?.fetcher,a[1]=l,a[2]=i):i=a[2],(0,r.useEffect)(i);let E=(0,r.useRef)(null);return a[3]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{let e=d.current;if(!e)return;let t=()=>{!f.current&&h.current&&(f.current=!0,E.current?.(),s.current?.(h.current))},r=()=>t(),n=e=>{"Enter"===e.key&&t()};e.addEventListener("pointerdown",r),e.addEventListener("keydown",n);let i=()=>{e.removeEventListener("pointerdown",r),e.removeEventListener("keydown",n)};return E.current=i,i},c=[],a[3]=o,a[4]=c):(o=a[3],c=a[4]),(0,r.useEffect)(o,c),d}],565317);var i=e.i(714277),o=e.i(739432);e.s(["usePrefetchRouteInViewport",0,function(e){let c,a,l,u,s,f,d,h=(0,t.c)(10),{href:E}=e,_=(0,r.use)(n.EctoPrefetchContext),m=(0,r.useRef)(_?.fetcher),p=(0,r.useRef)(!1),R=(0,r.useRef)(null),P=(0,r.useRef)(E);h[0]!==_?.fetcher||h[1]!==E?(c=()=>{m.current=_?.fetcher,P.current=E},h[0]=_?.fetcher,h[1]=E,h[2]=c):c=h[2],(0,r.useEffect)(c),h[3]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{R.current=null,!p.current&&P.current&&(p.current=!0,m.current?.(P.current))},h[3]=a):a=h[3];let v=a;h[4]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{R.current?.(),R.current=null},h[4]=l):l=h[4];let I=(0,r.useEffectEvent)(l);h[5]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{e&&null==R.current&&!p.current&&P.current&&(R.current=(0,i.requestIdleCallbackAfterLoad)(v,{timeout:3e3},3e3))},s={threshold:.1,triggerOnce:!0},h[5]=u,h[6]=s):(u=h[5],s=h[6]);let T=(0,o.useOnInView)(u,s);return h[7]!==I?(f=()=>()=>{I()},h[7]=I,h[8]=f):f=h[8],h[9]===Symbol.for("react.memo_cache_sentinel")?(d=[],h[9]=d):d=h[9],(0,r.useEffect)(f,d),T}],104346)},224175,e=>{"use strict";var t=e.i(908464),r=e.i(472361),n=e.i(147237),i=e.i(520243);e.s(["usePrefetchRouteOnHover",0,function(e){let o,c,a,l,u=(0,t.c)(6),{href:s}=e,f=(0,r.use)(n.EctoPrefetchContext),d=(0,r.useRef)(f?.fetcher),h=(0,r.useRef)(null),E=(0,r.useRef)(s);u[0]!==f?.fetcher||u[1]!==s?(o=()=>{d.current=f?.fetcher,E.current=s},u[0]=f?.fetcher,u[1]=s,u[2]=o):o=u[2],(0,r.useEffect)(o),u[3]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{E.current&&d.current?.(E.current)},u[3]=c):c=u[3];let _=c;return u[4]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{let e=h.current;if(!e)return;let t=(0,i.createHoverPrefetchController)({triggerPrefetch:_,enabledRef:E});return t.addListeners(e),()=>{t.removeListeners(e)}},l=[],u[4]=a,u[5]=l):(a=u[4],l=u[5]),(0,r.useEffect)(a,l),h}])},762554,652877,e=>{"use strict";var t=e.i(733783),r=e.i(908464);e.i(178414);var n=e.i(472361),i=e.i(334726),o=e.i(277162),c=e.i(147237),a=e.i(565317),l=e.i(104346),u=e.i(224175),s=e.i(714277),f=e.i(520243);function d(e){return e.isIntersecting}var h=e.i(457327);function E(e){let t,i,o=(0,r.c)(4),c=(0,h.useInteractionLoggerWithLazyData)(),a=(0,n.useRef)(c);if(o[0]!==c?(t=()=>{a.current=c},o[0]=c,o[1]=t):t=o[1],(0,n.useEffect)(t),o[2]!==e){let t=t=>e?a.current(e):null;i=e=>{if(null!=e)return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}},o[2]=e,o[3]=i}else i=o[3];return i}e.s(["useInteractionEventHandler",0,E],652877);var _=e.i(527357),m=e.i(261205),p=e.i(879695);function R(e){let h,E,m,R,P,v,I,T,y,S,w,L=(0,r.c)(24);if(L[0]!==e?({replace:E,state:P,soft:R,force:h,...m}=e,L[0]=e,L[1]=h,L[2]=E,L[3]=m,L[4]=R,L[5]=P):(h=L[1],E=L[2],m=L[3],R=L[4],P=L[5]),L[6]!==m){let{href:e,prefetch:t,onClick:r,ref:n,...i}=m;v=e,T=r,y=n,I=i,L[6]=m,L[7]=v,L[8]=I,L[9]=T,L[10]=y}else v=L[7],I=L[8],T=L[9],y=L[10];let{navigate:O}=(0,_.useNavigate)(),g=function(e){let t,h,E=(0,r.c)(3);E[0]!==e?({prefetch:h,...t}=e,E[0]=e,E[1]=t,E[2]=h):(t=E[1],h=E[2]);let _=void 0===h?"intent":h,m=(0,n.use)(c.EctoPrefetchContext),p=(0,a.usePrefetchRouteIntent)(t),R=function(e){let t,i,o,a=(0,r.c)(5),{href:l}=e,u=(0,n.use)(c.EctoPrefetchContext),f=(0,n.useRef)(u?.fetcher),d=(0,n.useRef)(!1),h=(0,n.useRef)(null),E=(0,n.useRef)(l);return a[0]!==u?.fetcher||a[1]!==l?(t=()=>{f.current=u?.fetcher,E.current=l},a[0]=u?.fetcher,a[1]=l,a[2]=t):t=a[2],(0,n.useEffect)(t),a[3]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{if(h.current&&E.current&&f.current&&!d.current)return(0,s.requestIdleCallbackAfterLoad)(()=>{E.current&&(d.current=!0,f.current?.(E.current))})},o=[],a[3]=i,a[4]=o):(i=a[3],o=a[4]),(0,n.useEffect)(i,o),h}(t),P=(0,u.usePrefetchRouteOnHover)(t),v=(0,l.usePrefetchRouteInViewport)(t),I=function(e){let t,i,o,a,l=(0,r.c)(6),{href:u}=e,h=(0,n.use)(c.EctoPrefetchContext),E=(0,n.useRef)(h?.fetcher),_=(0,n.useRef)(null),m=(0,n.useRef)(u);l[0]!==h?.fetcher||l[1]!==u?(t=()=>{E.current=h?.fetcher,m.current=u},l[0]=h?.fetcher,l[1]=u,l[2]=t):t=l[2],(0,n.useEffect)(t);let p=(0,n.useRef)(null);l[3]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{m.current&&E.current?.(m.current)},l[3]=i):i=l[3];let R=i;return l[4]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{let e=_.current;if(!e||!m.current)return;let t=(0,f.createHoverPrefetchController)({triggerPrefetch:R,enabledRef:m});t.addListeners(e);let r=new IntersectionObserver(e=>{r.disconnect(),e.some(d)&&(p.current=(0,s.requestIdleCallbackAfterLoad)(R,{timeout:3e3},3e3))},{threshold:.1});return r.observe(e),()=>{r.disconnect(),t.removeListeners(e),p.current?.(),p.current=null}},a=[],l[4]=o,l[5]=a):(o=l[4],a=l[5]),(0,n.useEffect)(o,a),_}(t);if("none"===_||null==t.href||(0,i.isPdpNoCacheEnabled)()||m?.prefetchDisabled)return;if("intent"===_)return p;if("render"===_)return R;let T=(0,o.shouldDisableViewportPrefetch)();return"viewport"!==_||T?"initial_viewport_or_hover"!==_||T?P:I:v}(e),A=(0,p.useMergeRefs)(g,y);return L[11]!==h||L[12]!==v||L[13]!==O||L[14]!==T||L[15]!==E||L[16]!==R||L[17]!==P?(S=e=>{e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||0!==e.button?T?.(e):(e.preventDefault(),T?.(e),O(v,{replace:E,state:P,soft:R,force:h}))},L[11]=h,L[12]=v,L[13]=O,L[14]=T,L[15]=E,L[16]=R,L[17]=P,L[18]=S):S=L[18],L[19]!==v||L[20]!==I||L[21]!==A||L[22]!==S?(w=(0,t.jsx)("a",{ref:A,href:v,onClick:S,...I}),L[19]=v,L[20]=I,L[21]=A,L[22]=S,L[23]=w):w=L[23],w}e.s(["EctoBaseLink",0,function(e){let n,i,o,c,a,l,u=(0,r.c)(16);u[0]!==e?({analytics:n,href:i,ref:o,...c}=e,u[0]=e,u[1]=n,u[2]=i,u[3]=o,u[4]=c):(n=u[1],i=u[2],o=u[3],c=u[4]);let s=i.startsWith("http://")||i.startsWith("https://"),f=n?.actionTarget??"BaseLink";u[5]!==f||u[6]!==n?(a=null==n?null:{...n,actionTarget:f},u[5]=f,u[6]=n,u[7]=a):a=u[7];let d=E(a),h=(0,p.useMergeRefs)(d,o);if(s){let e;return u[8]!==i||u[9]!==h||u[10]!==c?(e=(0,t.jsx)(m.EctoAnchor,{ref:h,href:i,...c}),u[8]=i,u[9]=h,u[10]=c,u[11]=e):e=u[11],e}return u[12]!==i||u[13]!==h||u[14]!==c?(l=(0,t.jsx)(R,{ref:h,href:i,...c}),u[12]=i,u[13]=h,u[14]=c,u[15]=l):l=u[15],l}],762554)}]); //# debugId=18544081-8206-2d02-6ffc-ed2b05bca012