(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,636831,e=>{"use strict";var t=e.i(843476);e.s(["default",0,()=>(0,t.jsx)(t.Fragment,{})])},311066,e=>{"use strict";var t=e.i(843476),a=e.i(815316);e.s(["default",0,({size:e=48,className:r,isVideo:i=!1,...s})=>i?(0,t.jsx)("svg",{width:e,height:e,...s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,a.cn)("animate-spin [animation-duration:1.5s]",r),children:(0,t.jsxs)("g",{id:"Size=24, Weight=01 Thin, State=Inactive, Style=Sharp",children:[(0,t.jsx)("path",{id:"Line 4",opacity:"0.9",d:"M12 6.5V2.5",stroke:"#E2E0E8",strokeLinecap:"square"}),(0,t.jsx)("path",{id:"Line 4 Copy",opacity:"0.5",d:"M12 21.5V17.5",stroke:"#E2E0E8",strokeLinecap:"square"}),(0,t.jsx)("path",{id:"Line 4_2",d:"M15.8894 8.11094L18.7178 5.28251",stroke:"#E2E0E8",strokeLinecap:"square"}),(0,t.jsx)("path",{id:"Line 4 Copy_2",opacity:"0.6",d:"M5.28294 18.7176L8.11137 15.8892",stroke:"#E2E0E8",strokeLinecap:"square"}),(0,t.jsx)("path",{id:"Line 4_3",opacity:"0.4",d:"M15.8893 15.8891L18.7177 18.7176",stroke:"#E2E0E8",strokeLinecap:"square"}),(0,t.jsx)("path",{id:"Line 4 Copy_3",opacity:"0.8",d:"M5.28286 5.28245L8.11129 8.11088",stroke:"#E2E0E8",strokeLinecap:"square"}),(0,t.jsx)("path",{id:"Line 3",opacity:"0.3",d:"M17.5 12H21.5",stroke:"#E2E0E8",strokeLinecap:"square"}),(0,t.jsx)("path",{id:"Line 3 Copy",opacity:"0.7",d:"M2.5 12H6.5",stroke:"#E2E0E8",strokeLinecap:"square"})]})}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,...s,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:(0,a.cn)("animate-spin text-brand-red",r),children:(0,t.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})})])},480712,568120,e=>{"use strict";var t=e.i(311066),a=e.i(843476),r=e.i(271645);e.s(["SpinnerShell",0,({children:e,onChildReady:i})=>{let[s,n]=r.default.useState(!0),l=r.default.useCallback(()=>{n(!1),i?.()},[i]);return(0,a.jsxs)("div",{className:"relative",children:[s&&(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-white",children:(0,a.jsx)(t.default,{})}),r.default.isValidElement(e)&&r.default.cloneElement(e,{onLoaded:l})]})}],568120),e.s([],480712)},752472,e=>{"use strict";var t,a=e.i(247167),r=e.i(82490),i=e.i(374774),s=e.i(505489),n=e.i(25667),l=e.i(634727),o=e.i(964882),c=e.i(778497),d=e.i(894706);let u=0,p=a.default.env.NEXT_PUBLIC_JW_PLAYER_ID||"1BWlFwPe",m="https://cdn.jwplayer.com/manifests/",f="https://cdn.jwplayer.com/videos/",g="https://cdn.jwplayer.com/v2";async function h(e){let t=e.trim();if(!t)return!1;let a=new URL(`${g}/playlists/${t}`);globalThis.location?.hostname&&a.searchParams.set("page_domain",globalThis.location.hostname);try{let e=await fetch(a,{method:"HEAD"});return 404===e.status}catch{return!1}}async function x(e,t,a,r,i){let s=`${g}/${e}`;try{var n;let e=await fetch(s);if(!e.ok)throw Error("JW v2 request failed");let t=await e.json(),l=t.playlist?.[0];if(null==l||"object"!=typeof l)throw Error("JW v2 missing playlist");let o={...l};return a&&(o.image=a),i&&(o.title=i),r&&(o.tracks=[...(n=o.tracks,Array.isArray(n)?n.filter(e=>"object"==typeof e&&null!==e&&"captions"!==e.kind):[]),{file:r,kind:"captions",default:!0}]),[o]}catch{if(t.length>0)return[{mediaid:t,...a?{image:a}:{},...i?{title:i}:{},sources:[{file:`${m}${t}.m3u8`,type:"hls"},{file:`${m}${t}.mpd`,type:"dash"},{file:`${f}${t}.mp4`,type:"mp4"}],...r?{tracks:[{file:r,kind:"captions",default:!0}]}:{}}];return`${g}/${e}`}}let y="640x360";var v=((t=v||{}).VIDEO_ID="vid",t.TAGS="tags",t.POS="pos",t.VERTICAL="vertical",t.PLACEMENT="plcmt",t);function w(e,{customParams:t=new URLSearchParams,isLiveStream:a=!1}={}){var l,o;let{primarysection:c="",contentType:d=""}=(0,i.getPageLevelAdTargetingKeyVals)(),{testads:p=""}=(0,n.getQueryParams)();p&&t.set("testads",p);let m=`preroll${u+1}`,[f,g]=e.split("?"),h=`${r.BASE_AD_UNIT_PATH}/${"homepage"===c?"home":c}/${m}`;({base:f,adUnit:h}=(l=f,o=h,a&&(l=l.replace("/gampad","/gampad/live"),o=`${r.BASE_AD_UNIT_PATH}/video/live`),{base:l,adUnit:o}));let x=new URLSearchParams(g);x.set("iu",h);let y=x.get("cust_params")??"";x.delete("cust_params");let v=new URLSearchParams(`${y}&${t.toString()}`),j=v.get("npa");j&&(x.set("npa",j),v.delete("npa"));let b=v.getAll("tags").join(",");v.delete("tags"),v.set("tags",b),v.set("vertical","false"),a||d===s.ContentType.VIDEO_COLLECTION||d===s.ContentType.ARTICLE_VIDEO?v.set("plcmt","1"):v.set("plcmt","2"),v.set("vid",x.get("vid")||""),v.set("pos",m);let E=(0,n.getEncodedParams)(v);for(let[e,t]of x)t.includes(",")&&x.set(e,encodeURIComponent(t)),("description_url"===e||"url"===e)&&x.set(e,encodeURIComponent(t));return`${f}?${decodeURIComponent(x.toString())}&cust_params=${E}`}async function j(e,{mediaId:t="",playlistId:a,autostart:r=!1,disableAds:s=!1,noRec:n=!1,disableRelated:d=!1,vertical:p=!1,dynamicAspect:m=!1,autoPauseAds:f=!0,floatingPlayer:h=!0,generateSEOMetadata:v=!1,controls:b=!0,stretching:E="uniform",muted:k=!0,loop:N=!1,aspect_ratio:L,displaytitle:P=!0,pageLevelTargetKeyVals:C,posterImage:S,captionFile:_,titleOverride:T},{onSetupError:I}={}){let A;if(void 0===window.jwplayer)return;let M=!!t&&(S||_||T),$=a&&!M?`playlists/${a}`:`media/${t}`,R=window.jwplayer(e),F={playlist:M?await x($,t,S,_,T):`${g}/${$}`,displaytitle:P,mute:!0===r||"viewable"===r||k,repeat:N,controls:b,stretching:E,autostart:r,generateSEOMetadata:v,autoPause:{pauseAds:f},floating:{mode:h&&!p?"notVisible":"never"}};F.plugins={"//cdn-ext.spiny.ai/spec/jwp/pandora-jwp.js":{}},!m&&(p||L)&&(F.aspectratio=p?"9:16":L),n?(F.nextUpDisplay=!1,F.related={displayMode:"none"}):d&&(F.related={displayMode:"none"}),s&&(F.advertising=void 0);let O=!0;return I&&R.on("setupError",e=>{if(O){A=e;return}I(e,R)}),R.setup(F,{analytics:{dataLayer:!0}}),O=!1,s||function(e,t){let{advertising:{schedule:a=[]}={}}=window.jwplayer?.defaults??{};e.setPlaylistItemCallback(async e=>{let r=await new Promise(e=>{let t,a=!1,r=t=>{a||(a=!0,e(t))},i="tuser_interacted_with_banner",s=!1,n=()=>{if(void 0===t&&"function"==typeof window.__tcfapi)try{window.__tcfapi("ping",2,e=>{if(e?.cmpStatus==="loaded"&&!(t=!!e?.gdprApplies))return void r(!0)})}catch{}if(!0===t&&!s&&"function"==typeof window.__tcfapi){s=!0,window.__tcfapi("addEventListener",2,e=>{let t="true"===localStorage.getItem(i),a=e?.eventStatus==="useractioncomplete",s=e?.eventStatus==="tcloaded"&&!!e?.tcString&&t,n=e?.eventStatus==="tcloaded"&&!t;if(a||s){let e=window.customKetchConsent?.behavioral_advertising??!1;a&&localStorage.setItem(i,"true"),r(e)}else if(n){let e=()=>{"function"==typeof window.ketch?window.ketch("showConsent"):setTimeout(e,200)};e()}});return}s||setTimeout(n,200)};n()});e.link=globalThis.location.href;let s=[...a],n=s.shift();if(void 0===n)return e;let d=(0,i.getPageLevelAdTargetingKeyVals)(),p=d.sponsorshipTag||t?.sponsorshipTag;p&&!d.sponsorshipTag&&(p=(0,i.processSponsorshipTagSplit)(p));let{sponsorshipTag:m,...f}=t||{},g={...d,...f,...p&&{sponsorshipTag:p}},h=new URLSearchParams(g);r||h.set("npa","1");let x=w(n?.tag,{customParams:h}),v=new URL(x).searchParams.get("iu")??"";return new Promise(t=>{Promise.allSettled([new Promise(e=>{void 0===window.apstag?e(""):window.apstag.fetchBids({slots:[{slotID:"preroll",mediaType:"video",sizes:[[640,360]]}]},(t=[])=>{e(t.filter(e=>e.mediaType&&"video"===e.mediaType).map(e=>e.qsParams).join(""))})}).catch(e=>(0,c.logError)({message:"[JW]: APS bidding params request failed",error:e})),function(e){let t=new URL(e).searchParams.get("iu")??"",[a,r]=y.split("x").map(Number);return(0,o.defineDvtagSlot)(t,{id:t,sizes:[{width:a,height:r}],position:"video"}),new Promise(e=>{(0,o.onDvtagReady)(()=>{let a;try{a=(0,o.getDvtagTargeting)(t)}catch(e){(0,c.logError)({message:"[JW]: DV quality targeting request failed",error:e,context:{adUnitPath:t}})}e(a)})})}(x),function(e,t,a={},r=5e3){return new Promise((i,s)=>{let n;try{let l=window.mnjs||{};l.que=l.que||[],window.mnjs.que.push(function(){window.mnjs.requestVideoBids?.({adUnitPath:e,id:t,params:a,callback:function(e){clearTimeout(n),i(e)}})}),n=setTimeout(()=>s(Error("Media.net Timeout")),r)}catch(e){void 0!==n&&clearTimeout(n),s(e)}}).catch(a=>(0,c.logWarn)({message:"[JW]: Media.net video bidding failed; continuing without bid params",error:a,context:{adUnitPath:e,id:t}}))}(v,v,{iu:v,ad_type:"video",sz:y,vpos:"preroll",description_url:globalThis.location.href,cust_params:g}),new Promise(e=>{if(!(0,l.iasAvailable)())return void e("");let t=setTimeout(()=>e(""),300);(0,l.getIASVideoTargeting)(v,v).then(a=>{clearTimeout(t),e(a)}).catch(()=>{clearTimeout(t),e("")})})]).then(a=>{let[i="",l,o,c=""]=a.filter(e=>"fulfilled"===e.status).map(e=>e.value);x=o||x;let d=function(e){if(!e)return"";let t=new URLSearchParams;for(let[a,r]of Object.entries(e))Array.isArray(r)&&0!==r.length&&t.set(a.toLowerCase(),r.join(","));return t.toString()}(l),u=new URLSearchParams(`${i}&${d}&${c}`);r||u.set("npa","1");let p=w(x,{customParams:u,isLiveStream:!1}),m=[{...n,tag:p},...s];t({...e,adschedule:m})}).catch(()=>{t()}).finally(()=>{u+=1})})})}(R,C),A&&I&&I(A,R),R}d.default.object({playlist:d.default.array(d.default.object({title:d.default.string(),description:d.default.string(),link:d.default.string(),image:d.default.string(),duration:d.default.number(),pubdate:d.default.number(),updated:d.default.preprocess(e=>{if("string"!=typeof e)return e;let t=Number(e);return e.trim()&&Number.isFinite(t)?t:void 0},d.default.number().optional()),primarytag:d.default.string().optional(),tags:d.default.string().optional(),short_title:d.default.string().optional(),sources:d.default.array(d.default.object({file:d.default.string(),type:d.default.string(),width:d.default.number().optional(),height:d.default.number().optional()})).min(1)})).min(1)});let b=d.default.object({mediaid:d.default.string(),title:d.default.string(),image:d.default.string().optional(),duration:d.default.number().optional(),pubdate:d.default.number().optional(),description:d.default.string().optional(),short_title:d.default.string().optional()});d.default.object({playlist:d.default.array(b)}),e.s(["JW_BRANDED_PLAYER_ID",0,"Bo1OjIIk","JW_MAIN_PLAYER_ID",0,p,"JW_PLAYER_MANIFEST_URL",0,m,"JW_PLAYER_VIDEO_URL",0,f,"isJwPlaylistMissing",0,h,"setUpPlayer",0,j])},220718,e=>{"use strict";e.s(["normalizeMarfeelSection",0,function(e){let t=e.trim();if(!t)return"";let a=t.replaceAll(/[^a-z]/gi,"");return a.length>0&&a.length<=2?`${[...a.toUpperCase()].join(".")}.`:t.split(/[\s_-]+/).map(e=>{let t;return(t=e.replaceAll(/[^\da-z]/gi,""))?/^[a-z]{1,2}$/i.test(t)?`${[...t.toUpperCase()].join(".")}.`:t[0].toUpperCase()+t.slice(1).toLowerCase():""}).filter(Boolean).join(" ")}])},894529,e=>{"use strict";var t=e.i(271645),a=e.i(212044),r=e.i(220718);let i=["contentType","templateType","wordCount","sponsorshipTag","videoOnPage","section","Primary Tag"];function s(e){let t=e.section?(0,r.normalizeMarfeelSection)(e.section):null,a=e.primaryTag?(0,r.normalizeMarfeelSection)(e.primaryTag):null;return{contentType:e.contentType??"",templateType:e.templateType??"",wordCount:null==e.wordCount?"":String(e.wordCount),sponsorshipTag:e.sponsorshipTag??"",videoOnPage:null==e.videoOnPage?"":String(e.videoOnPage),section:t??"","Primary Tag":a??""}}e.s(["default",0,function(e){let{contentType:r,templateType:n,wordCount:l,sponsorshipTag:o,videoOnPage:c,section:d,primaryTag:u}=e;return(0,t.useLayoutEffect)(()=>((0,a.setCurrentPageVars)(s(e)),()=>{(0,a.setCurrentPageVars)({})}),[r,n,l,o,c,d,u]),(0,t.useEffect)(()=>{let t=s(e);return(0,a.pushMarfeelCompassCommand)(e=>{for(let[a,r]of Object.entries(t))e.setPageVar(a,r)}),()=>{(0,a.pushMarfeelCompassCommand)(e=>{for(let t of i)e.setPageVar(t,"")})}},[r,n,l,o,c,d,u]),null}])},713588,e=>{"use strict";var t=e.i(843476);e.s(["default",0,({ref:e,className:a,...r})=>(0,t.jsx)("div",{ref:e,className:a,...r})])},10197,e=>{"use strict";var t=e.i(843476),a=e.i(815316);let r=({children:e,className:r,component:i="div",noDefaultClass:s=!1,...n})=>(0,t.jsx)(i,{className:(0,a.cn)("grid gap-x-4",{"grid-cols-4 lg:grid-cols-12":!s},r),...n,children:e});r.displayName="Grid",e.s(["default",0,r])},622270,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(475254);let i=(0,r.default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),s=(0,r.default)("flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]),n=(0,r.default)("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]),l=(0,r.default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);var o=e.i(37727),c=e.i(522016),d=Object.defineProperty,u=(e,t)=>d(e,"name",{value:t,configurable:!0});function p(e,r=[]){let i=[];function s(r,s){let n=a.createContext(s);n.displayName=r+"Context";let l=i.length;i=[...i,s];let o=u(r=>{let{scope:i,children:s,...o}=r,c=i?.[e]?.[l]||n,d=a.useMemo(()=>o,Object.values(o));return(0,t.jsx)(c.Provider,{value:d,children:s})},"Provider");function c(t,i,o={}){let{optional:d=!1}=o,u=i?.[e]?.[l]||n,p=a.useContext(u);if(p)return p;if(void 0!==s)return s;if(!d)throw Error(`\`${t}\` must be used within \`${r}\``)}return o.displayName=r+"Provider",u(c,"useContext"),[o,c]}u(s,"createContext");let n=u(()=>{let t=i.map(e=>a.createContext(e));return u(function(r){let i=r?.[e]||t;return a.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])},"useScope")},"createScope");return n.scopeName=e,[s,m(n,...r)]}function m(...e){let t=e[0];if(1===e.length)return t;let r=u(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return u(function(e){let i=r.reduce((t,{useScope:a,scopeName:r})=>{let i=a(e)[`__scope${r}`];return{...t,...i}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}function f(e){let t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}u(function(e,r){let i=a.createContext(r);i.displayName=e+"Context";let s=u(e=>{let{children:r,...s}=e,n=a.useMemo(()=>s,Object.values(s));return(0,t.jsx)(i.Provider,{value:n,children:r})},"Provider");function n(t,s={}){let{optional:l=!1}=s,o=a.useContext(i);if(o)return o;if(void 0!==r)return r;if(!l)throw Error(`\`${t}\` must be used within \`${e}\``)}return s.displayName=e+"Provider",u(n,"useContext"),[s,n]},"createContext"),u(p,"createContextScope"),u(m,"composeContextScopes"),(0,Object.defineProperty)(f,"name",{value:"useCallbackRef",configurable:!0});var g=globalThis?.document?a.useLayoutEffect:()=>{},h=e.i(174080),x=e.i(991918),y=Object.defineProperty,v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let i=(0,x.createSlot)(`Primitive.${r}`),s=a.forwardRef((e,a)=>{let{asChild:s,...n}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(s?i:r,{...n,ref:a})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{});y(function(e,t){e&&h.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var w=Object.defineProperty,j=(e,t)=>w(e,"name",{value:t,configurable:!0}),b="Avatar",[E,k]=p(b),N=[0,()=>void 0],[L,P]=E(b),C=a.forwardRef(j(function(e,r){let{__scopeAvatar:i,...s}=e,[n,l]=a.useState("idle"),[o,c]=I();return(0,t.jsx)(L,{scope:i,imageLoadingStatus:n,setImageLoadingStatus:l,imageCount:o,setImageCount:c,children:(0,t.jsx)(v.span,{...s,ref:r})})},"Avatar")),S=a.forwardRef(j(function(e,r){let{__scopeAvatar:i,src:s,onLoadingStatusChange:n,...l}=e,o=P("AvatarImage",i);A(o.setImageCount);let c=_(s,{referrerPolicy:l.referrerPolicy,crossOrigin:l.crossOrigin,loadingStatus:o.imageLoadingStatus,setLoadingStatus:o.setImageLoadingStatus}),d=f(e=>{n?.(e)}),u=a.useRef(c);return g(()=>{let e=u.current;u.current=c,c!==e&&d(c)},[c,d]),"loaded"===c?(0,t.jsx)(v.img,{...l,ref:r,src:s}):null},"AvatarImage"));function _(e,{loadingStatus:t,setLoadingStatus:a,referrerPolicy:r,crossOrigin:i}){return g(()=>{if(!e)return void a("error");let t=new window.Image,s=j(e=>{a(T(e.currentTarget))},"handleLoad"),n=j(()=>a("error"),"handleError");return t.addEventListener("load",s),t.addEventListener("error",n),r&&(t.referrerPolicy=r),t.crossOrigin=i??null,t.src=e,a(T(t)),()=>{t.removeEventListener("load",s),t.removeEventListener("error",n),a("idle")}},[e,i,r,a]),t}function T(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}function I(){return N}function A(e){}j(_,"useImageLoadingStatus"),j(T,"getImageLoadingStatus"),j(I,"useImageCount"),j(A,"useUpdateImageCount");var M=e.i(815316),$=e.i(285385);let R=(0,a.memo)((0,a.forwardRef)(({className:e,...a},r)=>(0,t.jsx)(C,{ref:r,className:(0,M.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...a})));R.displayName=C.displayName;let F=(0,a.memo)((0,a.forwardRef)(({className:e,...a},r)=>(0,t.jsx)($.default,{ref:r,className:(0,M.cn)("aspect-square h-full w-full object-cover",e),...a})));F.displayName=S.displayName;var O=e.i(397099),U=e.i(245423);let z=(0,r.default)("bell-off",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]);var D=e.i(324402),W=e.i(778497);let q=({onFollowToggle:e,isFollowing:r=!1,className:i,size:s="md",onLoginStart:l,onLoginDisplayed:o})=>{let[c,d]=(0,a.useState)(!1),{user:u,displayLoginForm:p}=(0,D.default)(),m=async()=>{try{u?await e():(l?.(),p({displayMode:"modal",loginDisplayed:o,onLoggedIn:async t=>{let a=t.user.uid||t.user.sub;await (0,O.checkUserExists)(a)||await (0,O.createFirebaseUser)({...t.user,uid:a}),await e(t)}}))}catch(e){(0,W.logError)({message:"[FollowButton]: Toggle handler failed",error:e,context:{isFollowing:r,hasUser:!!u}}),d(!1)}finally{u&&d(!1)}},f={sm:"size-3",md:"size-4",lg:"size-5"};return(0,t.jsx)("button",{type:"button",onClick:()=>void m(),disabled:c,className:(0,M.cn)("mb-5 inline-flex w-full items-center justify-center gap-2 bg-black font-graphik text-white hover:bg-black/90 focus:outline-none focus-visible:ring-2 focus-visible:ring-black focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-70",{sm:"px-3 py-1.5 text-xs",md:"px-4 py-3 text-sm",lg:"px-6 py-4 text-base"}[s],i),"aria-pressed":r,"aria-busy":c,children:c?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n,{className:(0,M.cn)("animate-spin",f[s]),"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Processing…"})]}):r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(z,{className:f[s],"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Unfollow"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(U.Bell,{className:f[s],"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Follow"})]})})};var V=e.i(963219),B=e.i(669138),J=e.i(387644),Y=e.i(19477),K=e.i(618566);e.s(["default",0,({followedObjectType:e,followedObject:r,defaultFollowed:d,className:u="",isOpen:p=!1,size:m="base",variant:f="icon",onDarkBackground:g=!1})=>{let[h,x]=(0,a.useState)(p),[y,v]=(0,a.useState)(!1),w=(0,a.useRef)(null),[j,b]=(0,a.useState)(d),E=(0,a.useRef)(null),{follow:k,unfollow:N,isObjectFollowed:L}=(0,O.default)(),{pianoPreview:P}=(0,B.useFeatureFlags)(),C=(0,K.usePathname)(),S=()=>{w.current&&(clearTimeout(w.current),w.current=null)},_=()=>{S(),v(!1),x(!1)};(0,a.useEffect)(()=>S,[]);let T={base:"size-4",large:"size-4"},I="section"===e?"section":"tag"===e?"tag":"author";(0,a.useEffect)(()=>{let t=!0;return(async()=>{if(!0===d)return b(!0);if(!1===d)return b(!1);try{let a=await L(r.id,e);t&&b(a)}catch(t){(0,W.logError)({message:"[FollowModal]: Failed to check follow status",error:t,context:{followedObjectId:r.id,followedObjectType:e}}),b(!1)}})(),()=>{t=!1}},[L,r.id,e,d]),(0,a.useEffect)(()=>{let e=E.current;e&&(h?e.open||e.showModal():e.open&&e.close())},[h]),(0,a.useEffect)(()=>{let e=E.current;if(!e)return;let t=e=>{e.preventDefault(),x(!1)},a=t=>{let a=e.getBoundingClientRect();t.clientX>=a.left&&t.clientX<=a.right&&t.clientY>=a.top&&t.clientY<=a.bottom||x(!1)};return e.addEventListener("cancel",t),e.addEventListener("click",a),()=>{e.removeEventListener("cancel",t),e.removeEventListener("click",a)}},[]);let A=async t=>{let a=!j;(0,W.logDebug)({message:"[FollowModalTrigger] onFollowToggle",context:{nextIsFollowing:a,followedObject:r}});let i=void 0===r.id||null===r.id?"":String(r.id).trim(),s=(r.name??"").trim();if(!i||"0"===i||!s)return void(0,W.logError)({message:"[FollowModal]: refusing to follow/unfollow item with missing uid or name",context:{followedObjectType:e,followedObject:r}});b(a),a&&(0,J.sendGTMEvent)({event:Y.eventName.FOLLOW_CLICK,..."author"===e?{author:s}:{topic:s},pagePath:C});let n={type:e,title:s,url:r.url,system:{uid:i}},l=t?.user?.uid||t?.user?.sub;try{await (a?k:N)(n,l)}catch(t){(0,W.logError)({message:"[FollowModal]: Follow/unfollow toggle failed",error:t,context:{nextIsFollowing:a,followedObjectType:e,uid:l}}),b(j)}},$=e=>{e.preventDefault(),e.stopPropagation(),x(e=>!e)};return P?(0,t.jsxs)("div",{className:`relative inline-block ${u}`,children:["label"===f?(0,t.jsxs)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":h,"aria-controls":"follow-centered-modal",onClick:$,className:(0,M.cn)("inline-flex items-center justify-center gap-2",{base:"px-3 py-1.5 text-xs",large:"px-4 py-2 text-sm"}[m],"font-graphik text-white","bg-black hover:bg-black/90","rounded-full","focus:outline-none focus-visible:ring-2 focus-visible:ring-black focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-70"),children:[j?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{children:["Following ",r.name]}),(0,t.jsx)(i,{className:T[m],"aria-hidden":"true"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{children:["Follow ",r.name]}),(0,t.jsx)(l,{className:T[m],"aria-hidden":"true"})]}),(0,t.jsx)("span",{className:"sr-only",children:"Open follow modal"})]}):(0,t.jsxs)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":h,"aria-controls":"follow-centered-modal",onClick:$,className:(0,M.cn)("flex items-center justify-center rounded-full",g?"bg-transparent":(0,M.cn)("text-white",j?"bg-red-600":"bg-black"),{base:"size-5",large:"size-6"}[m]),children:[j?(0,t.jsx)(i,{className:T[m],"aria-hidden":"true"}):(0,t.jsx)(l,{className:T[m],"aria-hidden":"true"}),(0,t.jsx)("span",{className:"sr-only",children:"Open follow modal"})]}),(0,t.jsx)("dialog",{ref:E,id:"follow-centered-modal",className:"fixed inset-0 z-[299999] hidden place-items-center bg-transparent font-normal backdrop:bg-black/40 open:flex open:items-center open:justify-center",children:(0,t.jsxs)("div",{className:"relative z-[9999999] w-[min(92vw,560px)] overflow-hidden rounded-2xl bg-white shadow-2xl",role:"document",children:[y?(0,t.jsxs)("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center gap-3 bg-white/95 text-center",role:"status","aria-live":"polite",children:[(0,t.jsx)(n,{className:"size-6 animate-spin text-red-600","aria-hidden":"true"}),(0,t.jsx)("p",{className:"font-graphik text-sm text-gray-700",children:"Opening sign in…"})]}):null,(0,t.jsxs)("div",{className:"flex items-center gap-2 bg-red-600 p-4 text-white",children:[(0,t.jsx)(s,{className:"size-4","aria-hidden":"true"}),(0,t.jsx)("p",{className:"font-graphik text-xs",children:"Personalized Content"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>x(!1),className:"absolute right-3 top-3 rounded p-1 text-white","aria-label":"Close modal",children:(0,t.jsx)(o.X,{className:"size-5"})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-6 p-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[r?.thumbnail?(0,t.jsx)(R,{className:"size-12 overflow-hidden rounded-xl ring-1 ring-gray-200",children:(0,t.jsx)(F,{width:48,height:48,src:r.thumbnail,alt:r.name})}):null,(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h2",{className:"truncate font-editorial text-xl normal-case",children:r.name}),r.title?(0,t.jsx)("p",{className:"truncate text-xs text-gray-600",children:r.title}):null]})]}),(0,t.jsxs)("p",{className:"mt-4 whitespace-normal text-sm normal-case text-gray-700",children:["Follow this ",I," to personalize your feed and get instant alerts."]})]}),(0,t.jsxs)("div",{className:"flex flex-col justify-between",children:[(0,t.jsx)(q,{onFollowToggle:A,isFollowing:j,onLoginStart:()=>{v(!0),S(),w.current=setTimeout(_,3e3)},onLoginDisplayed:_}),(0,t.jsx)(c.default,{href:V.PathNames.MY_FEED,onClick:()=>x(!1),className:"inline-flex w-full items-center justify-center gap-2 border border-red-600 bg-white px-4 py-2 font-graphik text-sm normal-case text-red-700",children:"Go to your personalized feed"}),(0,t.jsxs)("div",{className:"mt-6 text-xs text-gray-600",children:[(0,t.jsx)("p",{className:"mb-3 font-medium text-gray-800",children:"WHY FOLLOW?"}),(0,t.jsxs)("ul",{className:"list-disc space-y-1 pl-5 normal-case",children:[(0,t.jsx)("li",{children:"Custom Feed: See the stories that matter most to you."}),(0,t.jsx)("li",{children:"Smart Alerts: Get notified about major news as it happens."})]})]})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between border-t px-4 py-3",children:[(0,t.jsxs)("p",{className:"text-xs text-gray-600",children:["Update your preferences in"," ",(0,t.jsx)(c.default,{className:"text-brand-red",href:V.PathNames.ACCOUNT_PREFERENCES,children:"Account Settings"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>x(!1),className:"rounded-md px-3 py-1.5 text-xs text-gray-700 hover:bg-gray-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-red-600 focus-visible:ring-offset-2",children:"Close"})]})]})})]}):null}],622270)},586119,e=>{"use strict";var t=e.i(843476),a=e.i(752472),r=e.i(815316),i=e.i(3303),s=e.i(271645);e.i(480712);var n=e.i(311066),l=e.i(374774);let o="data:text/vtt;charset=utf-8,"+encodeURIComponent("WEBVTT\n\n");function c({mediaId:e,posterImage:i,vertical:s,className:n}){if(!e.trim())return null;let l=`${a.JW_PLAYER_MANIFEST_URL}${e}.m3u8`,d=`${a.JW_PLAYER_VIDEO_URL}${e}.mp4`;return(0,t.jsxs)("video",{className:(0,r.cn)("h-full w-full bg-black-coffee object-contain",{"aspect-9/16":s,"aspect-video":!s},n),controls:!0,playsInline:!0,preload:"metadata",poster:i,"data-testid":"jw-native-fallback-video",children:[(0,t.jsx)("source",{src:l,type:"application/x-mpegURL"}),(0,t.jsx)("source",{src:d,type:"video/mp4"}),(0,t.jsx)("track",{kind:"captions",srcLang:"en",label:"English",src:o})]})}var d=e.i(778497);e.s(["default",0,function({mediaId:e,playlistId:o,autostart:u=!1,disableAds:p=!1,noRec:m=!1,vertical:f=!1,dynamicAspect:g=!1,floatingPlayer:h=!1,muted:x=!1,loop:y=!1,aspect_ratio:v,posterImage:w,generateSEOMetadata:j=!1,className:b,playerInstanceRef:E,captionFile:k,fallbackMediaId:N,playerLibraryId:L,onComplete:P,onPlaylistItem:C,...S}){let _=(0,s.useId)(),T=`jwplayer-${_}`,I=`https://cdn.jwplayer.com/libraries/${L??a.JW_MAIN_PLAYER_ID}.js`,[A,M]=(0,s.useState)(!1),[$,R]=(0,s.useState)(!1),[F,O]=(0,s.useState)(!0),[U,z]=(0,s.useState)(!1),[D,W]=(0,s.useState)(null),q=(0,s.useRef)(null),V=(0,s.useRef)(!0),B=(0,s.useRef)(!1),J=(0,s.useRef)(!1),Y=(0,s.useRef)(null),K=D??(N?.trim()||e.trim()||o?.trim()||"");return((0,s.useEffect)(()=>{if($&&A){let e=setInterval(()=>{if(window.google?.ima){window.google.ima.settings.setFeatureFlags({force_ad_request_wait_gpt_sync:!0});let t=T.replaceAll(/([,.:[\]])/g,String.raw`\$1`),a=document.querySelector(`#${t}`);if(!a)return;let r=new window.google.ima.AdDisplayContainer(a),i=new window.google.ima.AdsLoader(r),s=new window.google.ima.AdsRequest;i.requestAds(s),clearInterval(e)}},100);return()=>clearInterval(e)}},[$,A,T]),(0,s.useEffect)(()=>(V.current=!0,()=>{V.current=!1,q.current&&(q.current.remove(),q.current=null)}),[]),U&&K)?(0,t.jsx)("div",{className:(0,r.cn)("relative m-auto flex w-full bg-black-coffee",{"aspect-9/16":f,"aspect-video":!f},b),"data-testid":"video-container",children:(0,t.jsx)(c,{mediaId:K,posterImage:w,vertical:f,className:"m-auto"})}):(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:(0,r.cn)("relative m-auto w-full overflow-hidden bg-black-coffee",!g&&(f?"aspect-9/16":"aspect-video"),b),"data-testid":"video-container",children:[(0,t.jsx)("div",{id:T,className:(0,r.cn)("z-0 min-h-0 min-w-0",g?"absolute inset-0 size-full":"relative size-full")}),(0,t.jsx)("div",{ref:Y,"data-testid":"video-loading-overlay",style:{display:F?"flex":"none"},className:"pointer-events-none absolute inset-0 z-10 items-center justify-center bg-black-coffee",children:F&&(0,t.jsx)(n.default,{isVideo:!0})})]}),!A&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{id:`jwplayer-script-${e}-${_}`,src:I,onError:()=>{z(!0),O(!1)},onLoad:()=>{(async()=>{let t=t=>{(0,d.logWarn)({message:"[Video]: JW player setup failed; switching to native fallback",error:t,context:{mediaId:e}}),V.current&&(z(!0),O(!1))},r=e=>{e.remove(),q.current===e&&(q.current=null),E&&E.current===e&&(E.current=null)},i=()=>{Y.current&&(Y.current.style.display="none"),O(!1)},s=()=>{Y.current&&(Y.current.style.display="flex"),O(!0)},n=async({setupMediaId:e,setupPlaylistId:o,hasAttemptedPlaylistFallback:c})=>{let b=!1,N=!1,L=o?.trim()??"",_=!c&&!!L,I=async e=>{!_||b||(b=!0,V.current&&(W(L),(0,d.logWarn)({message:"[JW]: Contentstack playlist ID resolved as a media ID fallback",context:{playlistId:o,mediaId:L}}),r(e),J.current=!1,B.current=!1,O(!0),await n({setupMediaId:L,setupPlaylistId:void 0,hasAttemptedPlaylistFallback:!0})))},A=await (0,a.setUpPlayer)(T,{mediaId:e,playlistId:o,autostart:u,disableAds:p,noRec:m,vertical:f,dynamicAspect:g,floatingPlayer:h,generateSEOMetadata:j,muted:x,loop:y,aspect_ratio:v,posterImage:w,captionFile:k,...S},{onSetupError:(e,a)=>{if(V.current&&!b&&!N){if(!_||102404!==e.code){N=!0,r(a),t(e);return}I(a).catch(t)}}});if(!b&&!N){if(!V.current)return void A?.remove();if(!A){z(!0),O(!1);return}for(let e of(A.on("buffer",()=>{document.querySelector("#scale-agent-overlay-container")?.dataset.isexpanded==="true"&&"function"==typeof A.pause&&A.pause()}),["ready","firstFrame","error","adStarted"]))A.on(e,i);for(let e of(A.on("playlistItem",()=>{if(B.current=!0,!J.current){J.current=!0;return}s()}),A.on("firstFrame",()=>{B.current=!1}),["adComplete","adSkipped","adError"]))A.on(e,()=>{B.current&&s()});P&&A.on("complete",P),C&&A.on("playlistItem",({index:e,item:t})=>C({index:e,mediaId:t?.mediaid,item:t})),E&&(E.current=A),q.current=A,_&&(0,a.isJwPlaylistMissing)(L).then(e=>{e&&I(A).catch(t)}),(0,l.setPageLevelTargetingKeyVal)(l.CustomTargetingKey.VIDEO_ON_PAGE,"true"),M(!0)}};try{await n({setupMediaId:e,setupPlaylistId:o,hasAttemptedPlaylistFallback:!1})}catch(e){t(e)}})()}}),!p&&(0,t.jsx)(i.default,{id:"ima-adaptor",src:"https://static.adsafeprotected.com/vans-adapter-google-ima.js","data-purposes":"behavioral_advertising",onLoad:()=>R(!0)})]})]})}],586119)},5e3,e=>{"use strict";var t=e.i(843476),a=e.i(285385),r=e.i(815316),i=e.i(797510);e.s(["default",0,({src:e,credit:s="",caption:n="",imageParentClass:l,imageClass:o,captionClass:c,creditClass:d,figCaptionClass:u,className:p,fill:m=!0,...f})=>(0,t.jsxs)("figure",{className:p,children:[(0,t.jsx)("div",{className:(0,r.cn)("relative w-full",l),children:(0,t.jsx)(a.default,{src:e,fill:m,className:(0,r.cn)("object-cover",o),...f})}),(s||n)&&(0,t.jsxs)("figcaption",{className:(0,r.cn)("rich-text mt-1 font-graphik-compact text-caption-small",u),children:[n&&(0,t.jsx)("span",{className:(0,r.cn)("text-grey-1",c),children:(0,t.jsx)(i.SanitizedPlainText,{text:n})}),s&&(0,t.jsx)("span",{className:(0,r.cn)("mt-1 italic text-grey-1",d,{"ml-2":n}),children:(0,t.jsx)(i.SanitizedPlainText,{text:s})})]})]})])},533089,e=>{"use strict";var t=e.i(843476);e.s(["ChevronDown",0,({size:e="1.5rem",className:a,color:r="currentColor",alt:i,...s})=>(0,t.jsxs)("svg",{className:a,width:e,height:e,viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:[(0,t.jsx)("title",{children:i}),(0,t.jsx)("g",{id:"Chevron",children:(0,t.jsx)("path",{id:"Line Copy",d:"M14.1666 4L8.49998 9.66667L2.83331 4",stroke:r,strokeWidth:"1.2",strokeLinecap:"square"})})]})])}]);