(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,997793,e=>{"use strict";var t=e.i(902875),l=e.i(247865),a=e.i(947118),n=e.i(737801),i=e.i(551699);e.s(["AssetAnalytics",0,({contentId:e,assetMediaType:r,title:s,position:c,tagsKeyword:o,moduleId:d,variant:u="frontend",children:m,className:h,dataAttrProps:v})=>{let x,g,f,[p,b]=(0,l.useState)(null),k=(0,l.useMemo)(()=>p?[p]:[],[p]),w=(x="asset-viewed",g=(0,a.useIsInitialized)(),f=(0,n.useEventAttributes)(),(0,l.useCallback)(({moduleId:e,contentId:t,assetMediaType:l,title:a,pos:n,tagsKeyword:i})=>{if(!g)return void console.warn("MParticle is not initialized");let r={moduleId:e,contentId:t,assetMediaType:l,title:a,pos:String(n),tagsKeyword:i,...f};try{window.mParticle?.logEvent?.(x,window.mParticle?.EventType?.Other,r),console.debug(`MParticle: Event "${x}" tracked`,r)}catch(e){console.error(`MParticle: Event "${x}" failed`,e)}},[f,g])),y=(0,l.useCallback)(()=>{w({moduleId:d??p?.closest("[data-module-id]")?.dataset.moduleId??"",contentId:e,assetMediaType:r,title:s,pos:c,tagsKeyword:o})},[p,w,d,e,r,s,c,o]);return((0,i.useFullVisibilityOnce)(y,{targets:k,disabled:"admin"===u}),"admin"===u)?(0,t.jsx)(t.Fragment,{children:m}):(0,t.jsx)("div",{ref:b,className:h,...v,children:m})}],997793)},1231,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getDmaByGeocode=i;let a=e.r(343277),n=e.r(726249);async function i(e,t="en-US"){let{location:l}=await (0,a.getLocationPointByGeocode)((0,n.formatGeocode)(e),t);return l?.dmaCd?l.dmaCd:null}},643881,e=>{"use strict";var t=e.i(902875),l=e.i(381477),a=e.i(64412),n=e.i(495110),i=e.i(341669),r=e.i(1231),s=e.i(426606),c=e.i(553329),o=e.i(695881),d=e.i(650130);let u=(0,o.createLogger)("block:content-syndication-carousel");async function m(e){var t;let l,{data:a,error:n}=await (0,c.tryCatch)((0,r.getDmaByGeocode)(e.geocode,e.language));n&&u.warn("DMA resolution failed; falling back to geocode",{geocode:e.geocode,error:n});let i=function(e,{geocode:t,channel:l,territory:a,language:n}){let i=window.location.host,r=new URLSearchParams({channel:l});return e?r.set("dma",e):r.set("geocode",t),a&&r.set("territory",a),n&&r.set("language",n),`https://${i}/api/payload/v1/media/content-syndication-carousel?${r.toString()}`}(a,e),{data:o,error:m}=await (0,c.tryCatch)((0,s.fetchWithoutCredentials)(i));if(m||!o.ok)return u.warn("Your News carousel request failed",{status:o?.status,error:m}),[];let{data:h,error:v}=await (0,c.tryCatch)(o.json());return v||!h?[]:(t=h.data??[],(l=function(e){let t=e?.split(",");if(!t||2!==t.length)return null;let l=parseFloat(t[0]??""),a=parseFloat(t[1]??"");return Number.isNaN(l)||Number.isNaN(a)?null:{lat:l,lon:a}}(e.geocode))?t.map((e,t)=>({item:e,index:t,distance:function(e,t){let l=1/0;for(let a of e??[]){let e=(0,d.calculateDistance)(t.lat,t.lon,a.lat,a.lng);Number.isFinite(e)&&ee.item.isBreaking!==t.item.isBreaking?e.item.isBreaking?-1:1:e.distance!==t.distance?e.distancee.item):t.slice())}var h=e.i(247865),v=e.i(368847),x=e.i(235577),g=e.i(813272),f=e.i(498076),p=e.i(632137),b=e.i(598513),k=e.i(581014),w=e.i(240058),y=e.i(123590),j=e.i(37429),z=e.i(925209),T=e.i(957174),C=e.i(747961);let N=(0,h.forwardRef)(({title:e,titleId:l,desc:a,descId:n,...i},r)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:r,"aria-labelledby":l,"aria-describedby":n,...i,children:[a?(0,t.jsx)("desc",{id:n,children:a}):null,void 0===e?(0,t.jsx)("title",{id:l,children:"Play"}):e?(0,t.jsx)("title",{id:l,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M5.5 11.5A.5.5 0 0 1 5 11V5a.5.5 0 0 1 .724-.447l6 3a.5.5 0 0 1 0 .894l-6 3a.5.5 0 0 1-.224.053M6 5.809v4.382L10.382 8z"}),(0,t.jsx)("path",{d:"M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2m0-1a7 7 0 1 0 0 14A7 7 0 0 0 8 1"})]})]})),S=h.default.forwardRef((e,l)=>(0,t.jsx)(C.BaseIcon,{ref:l,icon:N,...e}));S.displayName="PlayOutline";var M=e.i(997793),I=e.i(896363),B=e.i(263478);function L(e){return e.isBreaking?["breaking"]:e.isLocal?["local"]:[]}let E=e=>{let l=(0,h.useId)();return(0,t.jsxs)("svg",{viewBox:"0 0 35 35",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("title",{children:"The Weather Channel"}),(0,t.jsxs)("mask",{id:l,children:[(0,t.jsx)("rect",{width:"35",height:"35",rx:"4",fill:"#fff"}),(0,t.jsx)("path",{fillRule:"evenodd",fill:"#000",d:"M13.998 27.281c.73 0 1.232.272 1.402.757.06.178.077.314.077.782l-.026 1.462v.077c0 .467.077.646.408.893l-.603.697c-.264-.11-.502-.306-.612-.527-.162.153-.179.17-.264.23-.212.152-.518.237-.875.237-.97 0-1.497-.493-1.497-1.36 0-1.02.706-1.496 2.092-1.496.085 0 .136 0 .255.008v-.178c0-.485-.094-.647-.51-.647-.366 0-.791.179-1.259.494l-.484-.817c.28-.178.4-.238.705-.357.425-.178.791-.255 1.19-.255zm13.202.009c.502 0 .978.17 1.259.459.4.408.578.995.578 1.904v.264H26.52v.034c0 .671.332 1.054.918 1.054.392 0 .757-.145 1.106-.434l.442.68c-.502.409-1.029.604-1.641.604-1.25 0-2.057-.884-2.057-2.253 0-.782.161-1.3.544-1.726.357-.4.79-.586 1.368-.586zm3.724-1.854c.043.238.06.519.06 1.131v3.675c.003.495.018.584.076.686.043.077.136.12.23.12.042 0 .068 0 .127-.017l.196.68a1.902 1.902 0 01-.68.119c-.485 0-.876-.23-1.012-.595-.077-.201-.098-.332-.102-.82v-3.406c0-.57-.017-.918-.06-1.31l1.165-.263zm-25.521.255c.586 0 1.173.188 1.496.468l-.536.808a1.557 1.557 0 00-.943-.332c-.4 0-.79.196-1.003.51-.23.34-.332.833-.332 1.522 0 .808.068 1.258.246 1.581.239.434.63.664 1.14.664a1.53 1.53 0 001.011-.383l.545.748c-.468.383-.97.553-1.641.553-.816 0-1.446-.264-1.93-.816-.476-.536-.714-1.25-.714-2.117 0-.74.127-1.327.4-1.837a2.539 2.539 0 012.26-1.369zm16.527 1.573c.102.179.161.366.161.544.264-.187.315-.22.502-.323.23-.119.527-.187.782-.187.484 0 .91.255 1.046.63.059.16.084.348.084.62v3.18h-1.122v-2.831c0-.494-.085-.638-.382-.638-.23 0-.527.153-.79.391v3.078h-1.14v-3.154c0-.375-.051-.732-.153-1.02l1.012-.29zM8.65 25.428c.051.238.077.646.077 1.063v.867c0 .136-.017.314-.017.365.297-.28.79-.467 1.232-.467.536 0 .995.255 1.131.62.085.247.11.315.11.808v3.044H10.07v-2.925c0-.434-.119-.595-.442-.595-.28 0-.646.17-.901.4v3.12H7.57v-5.033c0-.408-.033-.816-.085-.995l1.165-.272zm8.748 1.836c.102.179.162.366.162.544.263-.187.314-.22.501-.323.23-.119.527-.187.783-.187.484 0 .91.255 1.045.63.06.16.085.348.085.62v3.18h-1.122v-2.831c0-.494-.085-.638-.383-.638-.23 0-.527.153-.79.391v3.078h-1.14v-3.154c0-.375-.05-.732-.152-1.02l1.011-.29zm-3.06 2.56h-.051c-.791 0-1.063.144-1.063.662 0 .34.213.57.502.57.212 0 .425-.11.595-.298l.017-.935zm12.88-1.701c-.434 0-.68.34-.68.944v.017h1.317v-.051c0-.323-.034-.493-.136-.655-.11-.17-.272-.255-.502-.255zm-11.104-8.89c.731 0 1.233.271 1.403.756.06.178.076.314.076.782l-.025 1.462v.077c0 .467.076.646.408.892l-.604.698c-.263-.111-.501-.306-.612-.528-.161.153-.178.17-.263.23-.213.153-.519.238-.876.238-.97 0-1.496-.493-1.496-1.36 0-1.02.705-1.497 2.091-1.497.085 0 .136 0 .255.009v-.179c0-.484-.093-.646-.51-.646-.366 0-.79.179-1.258.493l-.485-.816c.28-.178.4-.238.706-.357.425-.178.79-.255 1.19-.255zm-4.353.008c.502 0 .978.17 1.259.459.4.408.578.994.578 1.904v.264H11.08v.034c0 .671.332 1.054.918 1.054.391 0 .757-.145 1.106-.434l.442.68c-.502.408-1.03.604-1.641.604-1.25 0-2.058-.884-2.058-2.253 0-.782.162-1.3.545-1.726.357-.4.79-.586 1.368-.586zm15.788 0c.501 0 .977.17 1.258.459.4.408.578.994.578 1.904v.264h-2.517v.034c0 .671.332 1.054.919 1.054.39 0 .756-.145 1.105-.434l.442.68c-.502.408-1.029.604-1.641.604-1.25 0-2.057-.884-2.057-2.253 0-.782.161-1.3.544-1.726.357-.4.79-.586 1.369-.586zm-7.677-1.233c-.043.4-.068.867-.068 1.31h1.02l-.29.756h-.73v2.219c0 .552.102.697.493.697.102 0 .204-.026.408-.085l.144.68a2.39 2.39 0 01-.926.196c-.578 0-1.046-.256-1.173-.638-.06-.164-.074-.25-.076-.536l-.001-2.533h-.434v-.74h.434c0-.425 0-.714.043-1.037l1.156-.29zM3.83 17.77l.51 2.33c.247 1.105.315 1.946.315 1.946.025-.23.127-1.071.306-1.887l.527-2.39h1.3l.545 2.645c.11.552.255 1.564.255 1.564.017-.187.22-1.47.323-1.964l.484-2.244h1.25l-1.428 5.96H6.916l-.527-2.406c-.204-.919-.272-1.667-.28-1.718 0 0-.12.833-.29 1.7l-.484 2.423H3.983l-1.411-5.96H3.83zm18.473-.391c.051.238.077.646.077 1.062v.868c0 .136-.017.314-.017.365.297-.28.79-.467 1.232-.467.536 0 .995.255 1.131.62.085.247.11.315.11.808v3.043h-1.113v-2.924c0-.434-.12-.595-.442-.595-.28 0-.646.17-.901.4v3.12h-1.157v-5.033c0-.409-.034-.817-.085-.995l1.165-.272zm9.98 1.845c.17 0 .247.017.426.093l-.315 1.003a.643.643 0 00-.331-.085c-.255 0-.485.12-.697.366v3.077h-1.14v-2.907c0-.587-.068-1.029-.161-1.275l1.02-.272c.102.178.162.374.179.62a1.97 1.97 0 01.646-.552c.093-.043.246-.068.374-.068zm-15.829 2.55h-.05c-.792 0-1.064.145-1.064.663 0 .34.213.57.502.57.213 0 .425-.11.595-.298l.017-.935zm-4.676-1.7c-.433 0-.68.34-.68.943v.017h1.318v-.05c0-.324-.034-.494-.136-.655-.11-.17-.272-.255-.502-.255zm15.788 0c-.434 0-.68.34-.68.943v.017h1.317v-.05c0-.324-.034-.494-.136-.655-.11-.17-.272-.255-.501-.255zM13.598 11.19c.502 0 .978.17 1.258.46.4.408.579.994.579 1.904v.263h-2.517v.035c0 .671.332 1.054.918 1.054.391 0 .757-.145 1.105-.434l.443.68c-.502.408-1.03.604-1.641.604-1.25 0-2.058-.884-2.058-2.253 0-.782.162-1.3.544-1.726.357-.4.791-.587 1.37-.587zm-6.801-1.47l-.196.986h-1.41v4.922H3.982v-4.922H2.538V9.72h4.259zm1.556-.391c.05.238.076.646.076 1.062v.867c0 .137-.017.315-.017.366.298-.28.79-.468 1.233-.468.536 0 .995.256 1.13.621.086.247.111.315.111.808v3.043H9.773v-2.924c0-.434-.12-.595-.443-.595-.28 0-.646.17-.9.4v3.12H7.272v-5.034c0-.408-.034-.816-.085-.994l1.165-.272zm5.262 2.695c-.433 0-.68.34-.68.943v.017h1.318v-.05c0-.324-.034-.494-.136-.655-.11-.17-.272-.255-.502-.255z"})]}),(0,t.jsx)("rect",{width:"35",height:"35",rx:"4",fill:"currentColor",mask:`url(#${l})`})]})},P=(0,h.memo)(({item:e,moduleId:l,itemPosition:a})=>{let n=(0,k.useTranslations)("ContentContextualization"),{url:i,title:r,thumbnail:s,altText:c,partnerLogo:o,eyebrow:d,meta:u}={id:e.id,url:e.url,title:e.headline??"",thumbnail:e.imageUrl,altText:e.headline??"",partnerLogo:e.partnerLogoUrl?{src:e.partnerLogoUrl,altText:e.providerName??""}:null,eyebrow:function(e){let[t]=L(e);return t?{tone:t}:null}(e),meta:"video"===e.type&&e.watchTime?{kind:"watch",minutes:e.watchTime,seconds:e.durationSeconds}:"article"===e.type&&e.readTime?{kind:"read",minutes:e.readTime,seconds:null}:null},m=u?.kind==="watch"?S:T.Book,x=L(e),g=(0,I.parseArrayToString)(x.length>0?x:["other"]),[f,p]=(0,h.useState)(!1),[C,N]=(0,h.useState)(!1),P=(0,y.useTrackContentLinkClick)(),R=(0,b.useSendInteractionEvent)(),$=(0,h.useCallback)(()=>{i&&(P({linkType:!i.startsWith("/")&&!i.includes("weather.com")&&(i.startsWith("http")||i.startsWith("//"))?"external":"internal",linkURL:i,linkText:e.headline??void 0,moduleId:l,tagsKeyword:g}),R({moduleId:l,interactionType:"click",interactionElement:"content-contextualization-card"},{flushImmediately:!0}))},[P,R,i,e.headline,l,g]),A=d?n("breaking"===d.tone?"breaking":"local"):null,H=(0,B.useContentMetaLabel)()(u),_=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"relative aspect-video overflow-hidden rounded-2xl bg-black/5",children:[s&&!f?(0,t.jsx)(j.Image,{src:s,alt:c,fill:!0,objectFit:"cover",sizes:"(max-width: 640px) 16rem, 18rem",loading:"lazy",onError:()=>p(!0)}):(0,t.jsx)("div",{"aria-hidden":"true",className:"from-brand-300 to-brand-400 absolute inset-0 flex items-center justify-center bg-gradient-to-b",children:(0,t.jsx)(E,{className:"size-16 text-white"})}),o&&!C&&(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 p-2",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 bg-gradient-to-b from-transparent from-50% to-black/70"}),(0,t.jsx)("span",{className:"relative block h-[42px] w-[105px]",children:(0,t.jsx)(j.Image,{src:o.src,alt:o.altText,fill:!0,objectFit:"contain",className:"object-left-bottom",sizes:"105px",loading:"lazy",onError:()=>N(!0)})})]})]}),(0,t.jsxs)("div",{className:"mt-3 flex flex-col gap-2",children:[d&&(0,t.jsxs)(v.Text,{elementType:"span",variant:"Caption.S.Bold",color:"breaking"===d.tone?"error":"secondary",className:"flex items-center gap-1 tracking-wide uppercase",children:["local"===d.tone&&(0,t.jsx)(z.Location,{size:"sm","aria-hidden":"true"}),A]}),(0,t.jsx)(v.Text,{elementType:"h3",variant:"Title.XS",responsive:!0,lineClamp:2,children:r}),u&&(0,t.jsxs)(v.Text,{elementType:"span",variant:"Body.S",color:"secondary",className:"flex items-center gap-1",children:[(0,t.jsx)(m,{size:"sm","aria-hidden":"true"}),H]})]})]});return(0,t.jsx)(M.AssetAnalytics,{contentId:e.id,moduleId:l,assetMediaType:"video"===e.type?"video":"text",title:r,position:a,tagsKeyword:g,className:"block w-64 shrink-0 sm:w-72",children:i?(0,t.jsx)(w.default,{href:i,sourceModule:l,sourceElement:"content-contextualization","data-item-position":a,onClick:$,className:"block no-underline",children:_}):_})}),R="top-[72px] sm:top-[81px]",$=({items:e,title:l,hideTitle:a=!1,className:n,moduleId:i,moduleName:r})=>{let s=(0,h.useRef)(null),c=(0,f.useIsMobile)(),{atStart:o,atEnd:d,scrollBy:u,onScroll:m}=(0,g.useScrollable)(s),k=(0,b.useSendInteractionEvent)(),w=(0,h.useRef)(!1),y=(0,h.useRef)(null);(0,h.useEffect)(()=>()=>{y.current&&clearTimeout(y.current)},[]);let j=(0,h.useCallback)(()=>{m(),w.current||(w.current=!0,k({moduleId:i,interactionType:"scroll",interactionElement:"content-contextualization-carousel"})),y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{w.current=!1},300)},[m,k,i]);return 0===e.length?null:(0,t.jsxs)("section",{"aria-label":l,className:(0,p.cn)("not-prose",n),...r?{"data-module-name":r}:{},children:[!a&&(0,t.jsx)(v.Text,{elementType:"h2",variant:"Title.M",className:"mb-4",children:l}),(0,t.jsxs)("div",{className:"relative overflow-hidden",children:[!c&&(0,t.jsx)(x.ScrollButton,{direction:"left",variant:"solid",className:R,hidden:o,onClick:()=>u(-320)}),(0,t.jsx)("div",{ref:s,onScroll:j,style:c?void 0:(0,g.getScrollMaskStyle)(o,d),className:"flex gap-6 overflow-x-auto pb-1 [&::-webkit-scrollbar]:hidden",children:e.map((e,l)=>(0,t.jsx)(P,{item:e,moduleId:i,itemPosition:l+1},e.id))}),!c&&(0,t.jsx)(x.ScrollButton,{direction:"right",variant:"solid",className:R,hidden:d,onClick:()=>u(320)})]})]})};e.s(["ContentContextualization",0,({title:e,hideTitle:r,channel:s,territory:c,moduleId:o,moduleName:d})=>{let{location:u,isLoading:h}=(0,a.useLocation)(),v=(0,n.useIsHydratingRender)()&&!u,x=u?.geocode,{data:g,isLoading:f}=(0,l.default)(x?["your-news",x,s,c]:null,()=>m({geocode:x,channel:s,territory:c}),{dedupingInterval:3e5,revalidateOnFocus:!1,revalidateOnReconnect:!0,keepPreviousData:!0});return h||v||x&&f&&!g?(0,t.jsx)(i.default,{skeletonClassName:"h-72 w-full rounded-2xl"}):g&&0!==g.length?(0,t.jsx)($,{items:g,title:e,hideTitle:r,moduleId:o,moduleName:d}):null}],643881)},177220,function(e){e.n(e.i(643881))},263478,e=>{"use strict";var t=e.i(581014);function l(){let e=(0,t.useTranslations)("ContentContextualization");return t=>{if(t)return"read"===t.kind?e("readTime",{minutes:t.minutes}):null!==t.seconds&&t.seconds{let l=e(t);return t&&l?{label:l,kind:t.kind}:void 0}}])},813272,e=>{"use strict";var t=e.i(247865);e.s(["getScrollMaskStyle",0,function(e,t,l="3rem",a="0px"){if(e&&t)return;let n=e?`linear-gradient(to right, black calc(100% - ${l}), transparent calc(100% - ${a}), transparent 100%)`:t?`linear-gradient(to right, transparent 0%, transparent ${a}, black ${l})`:`linear-gradient(to right, transparent 0%, transparent ${a}, black ${l}, black calc(100% - ${l}), transparent calc(100% - ${a}), transparent 100%)`;return{maskImage:n,WebkitMaskImage:n}},"useScrollable",0,function(e){let[l,a]=(0,t.useState)({atStart:!0,atEnd:!1}),n=(0,t.useCallback)(()=>{let t=e.current;if(!t)return;let l=t.scrollLeft=t.scrollWidth-t.clientWidth-4;a(e=>e.atStart===l&&e.atEnd===n?e:{atStart:l,atEnd:n})},[e]);(0,t.useEffect)(()=>{let t=e.current;if(!t)return;let l=new ResizeObserver(n);return l.observe(t),n(),()=>l.disconnect()},[e,n]);let i=(0,t.useCallback)(t=>{e.current?.scrollBy({left:t,behavior:"smooth"})},[e]);return{...l,scrollBy:i,onScroll:n}}])}]);