1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[866],{2785:()=>{},7483:(e,t,r)=>{"use strict";r.d(t,{ContentFeed:()=>c});var a=r(85465),i=r(43209),n=r(46402),l=r(54951);let s=["video","news","ad","video","news","video","ad","video","news","news","news","video"],o=["video","ad","news","video","video","ad","video","news","video","news","video","news"],d=["video","ad","news","video","news","video","video","ad","video","news","video","news"],c=({locale:e,contentFeedItems:t,excludeAds:r})=>{let{viewPortSize:c}=(0,l.wo)(),u=(e=>{switch(e){case i.i.SMALL:return s;case i.i.MEDIUM:return o;case i.i.LARGE:return d;default:return s}})(c);if(!t||0===t.length)return null;let h={video:t.filter(e=>"video"===e.type),news:t.filter(e=>"news"===e.type),ad:t.filter(e=>"ad"===e.type)},m=[];return u.forEach(e=>{("ad"===e&&!r?.[c??i.i.SMALL]||h[e].length>0)&&(m.push(h[e][0]),h[e].shift())}),!!c&&(0,a.jsx)(n.AEd,{locale:e,children:m.map((t,i)=>{let l=`item-${i+1}`;return"ad"===t.type?r?.[c]?null:(0,a.jsx)(n.AEd.Ad,{locale:e,adSlotId:t.adSlotId,gridArea:l},t.adSlotId):(0,a.jsx)(n.AEd.Item,{itemType:t?.type,testId:`content-feed-${t.type}`,href:t.link,imageUrl:t.imageUrl,description:t.description,duration:t.duration,gridArea:l,ga4ModuleParameters:t.ga4ModuleParameters},t.link)})})}},19155:(e,t,r)=>{"use strict";r.d(t,{formatUrlParameters:()=>a}),r(13550),r(56493),r(79065),r(78175);let a=(e,t=!1)=>{let r=Object.entries(e||{}).map(([e,t])=>`${e}=${t}`).join("&");return t?encodeURIComponent(r):r}},31254:(e,t,r)=>{"use strict";r.d(t,{ContentFeedClient:()=>v});var a=r(85465);r(74948),r(44133),r(59522),r(86419),r(43117);var i=r(46402),n=r(13550),l=r(54473);r(94556),r(92591);let s=async(e,t,r)=>{let a=await (0,l.fZ)(e,r,"content_feed");if(!a?.playlists?.[0]?.id)return[];let i=await (0,n.Od)(`${t}/${a.playlists[0].id}`);return i?.playlist??[]};var o=r(86454),d=r(90553);let c=async(e,t,r,a)=>{let i,l,s;return s=await (i=a?"/{locale}/lineups/{listType}/regions/{regionId}".replace("{regionId}",a.toString()):"/{locale}/lineups/{listType}/national",l=i.replace("{locale}",t).replace("{listType}",r),(0,n.g6)(e,l,void 0,{cache:"no-store",...void 0})),s?.lineups.map(e=>({...e.articleOrVideo,headline:e.alternateHeadline??e.articleOrVideo.headline,newsArticleID:e.newsArticleID,newsAuthor:e.newsAuthor,newsCategory:e.newsCategory,newsKeyword:e.newsKeyword,newsSource:e.newsSource,newsSponsor:e.newsSponsor,newsTitle:e.newsTitle,newsUpdateDate:e.newsUpdateDate,newsPublicationDate:e.newsPublicationDate,pageName:e.pageName}))??null};r(50292),r(37811);var u=r(64148);let h=async(e,t,r)=>{let a=await c(e,t,"trendingNow");return a&&0!==a.length?a.slice(0,r??a.length):[]};var m=r(63164);let p=async(e,t,r,a)=>{let i=s(a,t,r),n=h(e,r,6),[l,o]=await Promise.allSettled([i,n]),d="fulfilled"===l.status?l.value:[],c="fulfilled"===o.status?o.value:[];return 0===d.length&&0===c.length?[]:[...d.slice(0,6).map((e,t)=>({...x(r,e),index:t+1})),...c.map((e,t)=>({...g(e),index:t+1})),{type:"ad",adSlotId:m.tS.BOTTOM_PROMO_1,index:1},{type:"ad",adSlotId:m.tS.BOTTOM_PROMO_2,index:2}]},g=e=>({imageUrl:e.thumbnail?(0,i.Sbs)(e.thumbnail.url):u.I.url,description:e.headline,link:e.path,type:"news",ga4ModuleParameters:f(e)}),f=e=>({[o.L8.NewsArticleId]:e.newsArticleID,[o.L8.NewsAuthor]:e.newsAuthor,[o.L8.NewsCategory]:e.newsCategory,[o.L8.NewsKeyword]:e.newsKeyword,[o.L8.NewsPublicationDate]:e.newsPublicationDate,[o.L8.NewsTitle]:e.newsTitle,[o.L8.NewsUpdateDate]:e.newsUpdateDate,[o.L8.NewsSource]:e.newsSource,[o.L8.NewsSponsor]:e.newsSponsor}),x=(e,t)=>{let r=t.images[0].src,a=`/${e.split("-")[0]}/video/${t.mediaid}?playlist=${t.feedid}`;
1return{imageUrl:r,description:t.title,link:a,duration:(e=>{if(!e||"number"!=typeof e)return"";let t=Math.floor(e/3600),r=Math.floor((e-3600*t)/60),a=e-3600*t-60*r,i=[t.toString(),r.toString(),a.toString()];return 0===t&&(i[0]=void 0),r<10&&0!==t&&(i[1]="0"+i[1]),a<10&&(i[2]="0"+i[2]),i.filter(e=>void 0!==e&&!isNaN(+e)).join(":")})(t.duration),type:"video",ga4ModuleParameters:{[o.L8.VideoId]:t.mediaid,[o.L8.VideoPlaylistId]:t.feedid,[o.L8.VideoTitle]:t.title,[o.L8.VideoPublicationDate]:(0,d.Yq)((0,d.L9)(1e3*t.pubdate),"YYYY-MM-DD")}}};var w=r(7483),b=r(56493);let v=({locale:e,contentApiBaseUrl:t,jwPlaylistApiBaseUrl:r,twnmmLibBaseUrl:i,excludeAds:n})=>{let[l,s]=(0,b.useState)();return(0,b.useEffect)(()=>{(async()=>{s(await p(t,r,e,i))})()},[t,r,e,i]),(0,a.jsx)(w.ContentFeed,{locale:e,contentFeedItems:l,excludeAds:n})}},34496:(e,t,r)=>{"use strict";r.d(t,{TopBannerAdWrapper:()=>d});var a=r(85465),i=r(63600);let n=i.Ay.div` 2 display: flex; 3 justify-content: center; 4 5 ${e=>e.extraPadding?"padding: 4rem 0px 2.9rem 0px;":"padding: 0;"} 6`;
6var l=r(76277),s=r(95543),o=r(9853);let d=({testid:e,children:t})=>{let{hasTakeover:r}=(0,l.p)(),i=(0,s.useSearchParams)();return(0,a.jsx)(n,{extraPadding:r&&!(i?(0,o.me)(i):(0,o.me)(null)),"data-testid":e,children:t})}},39010:(e,t,r)=>{var a={"./asset-hyperlink.json":52683,"./blockquote.json":18773,"./document.json":71575,"./embedded-asset-block.json":77497,"./embedded-entry-block.json":74989,"./embedded-entry-inline.json":14519,"./embedded-resource-block.json":14349,"./embedded-resource-inline.json":96119,"./entry-hyperlink.json":66395,"./heading-1.json":39236,"./heading-2.json":53977,"./heading-3.json":80282,"./heading-4.json":50799,"./heading-5.json":52760,"./heading-6.json":80477,"./hr.json":63816,"./hyperlink.json":98270,"./list-item.json":40144,"./ordered-list.json":86534,"./paragraph.json":10482,"./resource-hyperlink.json":14373,"./table-cell.json":74593,"./table-header-cell.json":54545,"./table-row.json":64521,"./table.json":73020,"./text.json":12689,"./unordered-list.json":47413};function i(e){return r(n(e))}function n(e){if(!r.o(a,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=n,e.exports=i,i.id=39010},43117:(e,t,r)=>{"use strict";r.d(t,{c:()=>l});var a=r(44133),i=r(74948),n=r(19155);let l=(e,t,r={})=>{let l=a.B[t],s=(0,n.formatUrlParameters)(r.queryParams),o=s?`?${s}`:"",d={slug:l.breadcrumbs.article,news:l.breadcrumbs.news,...r.pageParams},c=(0,i.iX)(e,{pageParams:d,allowedCategoryPathSubstrings:r.allowedCategoryPathSubstrings});return o?c.map(e=>({name:e.name,url:e.url+o,ga4Product:e.ga4Product})):c}},44133:(e,t,r)=>{"use strict";r.d(t,{B:()=>a});let a={"en-CA":{languageCode:"en",secondaryNavigation:{categories:"Categories",sections:"Sections"},breadcrumbs:{news:"news",article:"Article",featured:"Featured"},urlSegments:{featured:"featured",news:"news"},news:"News",seeMore:"See More",featuredNews:"Featured News",featuredSubCategoryNews:"Featured {category} News",organization:{name:"The Weather Network",url:"https://www.theweathernetwork.com",logoUrl:"https://j.theweathernetwork.com/logos/TWN_MM_swirl_icon.svg",publishingPrinciplesUrl:"https://www.theweathernetwork.com/en/info/about-us"}},"fr-CA":{languageCode:"fr",secondaryNavigation:{categories:"Cat\xe9gories",sections:"Sections"},breadcrumbs:{news:"nouvelles",article:"Article",featured:"\xe0 la une"},urlSegments:{featured:"a-la-une",news:"nouvelles"},news:"Nouvelles",seeMore:"Voir plus",featuredNews:"Nouvelles \xe0 la une",featuredSubCategoryNews:"{category} \xe0 la une",organization:{name:"M\xe9t\xe9oM\xe9dia",url:"https://www.meteomedia.com",logoUrl:"https://j.theweathernetwork.com/logos/TWN_MM_swirl_icon.svg",publishingPrinciplesUrl:"https://www.meteomedia.com/fr/infos/a-propos-de-nous"}}}},44273:(e,t,r)=>{"use strict";r.d(t,{L:()=>M});var a=r(85465),i=r(38882),n=r(46402),l=r(63600),s=r(20279);let o=l.Ay.div` 7 display: flex; 8 flex-flow: row wrap; 9 justify-content: space-between; 10`,d=(0,l.AH)` 11 @media ${s.j[s.i.SMALL]}, ${s.j[s.i.MEDIUM]}, ${s.j[s.i.LARGE]} { 12 border-bottom-left-radius: 0; 13 border-bottom-right-radius: 0; 14 } 15`,c=l.Ay.div` 16 width: 100%; 17 display: flex; 18 flex-direction: row; 19 gap: 5px; 20 font-weight: 400; 21 22 ${n.W2g} 23 ${({flattenBottom:e})=>e?d:""} 24 ${({disabled:e})=>e&&` 25 opacity: 0.5; 26 cursor: not-allowed; 27 > * { 28 pointer-events: none; 29 } 30 `} 31`,u=l.Ay.input` 32 width: 100%; 33 background-color: #FFFFFF; 34 color: #4C5353; 35 border: none; 36 font-size: 1.2rem; 37 &:focus{ 38 outline: none; 39 } 40 &::placeholder { 41 color: revert; 42 } 43 &:disabled { 44 cursor: not-allowed; 45 opacity: 0.5; 46 } 47`,h=l.Ay.div` 48 background-color: ${e=>e.theme.backgroundColor}; 49`,m=l.Ay.div` 50 margin: 1rem 1.2rem; 51 color: ${e=>e.theme.textColor}; 52`,p=l.Ay.output` 53 width: 100%; 54 background-color: ${e=>e.theme.backgroundColor}; 55`,g=l.Ay.label` 56 padding-left: 1rem; 57 font-size: 1rem; 58 font-weight: 300; 59 color: ${e=>e.theme.textColor}; 60`,f=l.Ay.button` 61 background: none; 62 margin-right: 4px; 63 margin-top: 0px; 64 margin-bottom: 0px; 65 border: none; 66 cursor: pointer; 67 color: ${i.AA.primaryBlack}; 68`;var x=r(45333),w=r(56493),b=r(49593),v=r(523);let y=(0,l.AH)` 69 margin: 1em; 70 padding: 5px 5px 5px 0px; 71 color: ${e=>e.theme.headerTextColor}; 72 display: flex; 73 flex-flow: row nowrap; 74 justify-content: space-between; 75 border-bottom: 1px solid #e9e7e7; 76 cursor: pointer; 77 78 &:hover { 79 color: ${e=>e.theme.highlightColor}; 80 } 81 div { 82 width:90%; 83 } 84`,j=l.Ay.a` 85 ${y} 86`,A=l.Ay.button` 87 text-decoration: none; 88 background: none; 89 border: none; 90 font-size: inherit; 91 font-family: inherit; 92 ${y} 93`;var k=r(86454);let N=e=>{let{searchItem:t,profileType:r,locale:i,onItemClick:l}=e,s=t.path??(0,b.Nw)(i,r,t),o=((...e)=>{let t=e.pop();return t.countryDisplayCode?(0,b.EK)(t.name,t.provName,t.countryDisplayCode):`${t.name}, ${t.provName||t.countryName}`})(t);return Object.keys(t).length?(0,a.jsx)("li",{children:(0,a.jsx)(v.xM,{ga4ModuleParameters:{[k.L8.ModuleName]:k.Oe.Search},children:l?(0,a.jsx)(A,{"data-testid":"search-result-item",onClick:()=>{l&&l(t,r)},type:"button",children:o}):(0,a.jsxs)(j,{href:s,"data-testid":"search-result-item",children:[o,(0,a.jsx)(n.vKP,{size:"16px"})]})})}):null};var S=r(34325);let $=l.Ay.div` 94 background-color: #175489; 95 margin-bottom: 1em; 96 padding: 15px 20px; 97 color: #ffffff; 98 display: flex; 99 flex-flow: row nowrap; 100 align-items: center; 101 gap: 1rem; 102 outline: none; 103 font-weight: 600; 104 height: 2.8em; 105 &:focus { 106 outline: none; 107 } 108 ${({isShowingPointer:e})=>e?"cursor: pointer;":""} 109 110 h2 { 111 font-size: 16px; 112 font-weight: 600; 113 margin: 0; 114 padding: 0; 115 } 116 117 svg { 118 fill: #ffffff; 119 } 120`,C=l.Ay.ul` 121 margin: 0; 122 padding: 0; 123 list-style: none; 124`,P=({profile:e,startExpanded:t=!1,expandCount:r=10,collapseCount:i=5,locale:l,onItemClick:s})=>{let[o,d]=(0,w.useState)(t),c=x.B[l],u=!1;if(!e||!e.name)return null;let h=(0,b.mg)(e.name);h||(u=!0);let m=e.location.length>i,p=e.location.slice(0,o?r:i).filter(e=>{if(e.friendlyURL||e.path)return!0;
124if(Array.isArray(e.name)&&e.name.length>0){let t=e.name.find(e=>e.locale===l);if(t?.friendlyURL)return!0}return!1});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)($,{className:"SearchResultCategory",onClick:()=>{m&&d(e=>!e)},"data-testid":`search-location-heading-${e.name}`,isShowingPointer:m,children:[(0,a.jsx)("h2",{children:u?e.name.toUpperCase():c.profileType[`${e.name}`].searchHeading.toUpperCase()}),m&&!o&&(0,a.jsx)(n.JKM,{"aria-label":x.B[l].showMore,children:(0,a.jsx)(n.c11,{size:10})}),m&&o&&(0,a.jsx)(n.JKM,{"aria-label":x.B[l].showLess,children:(0,a.jsx)(n.QGg,{size:10})})]}),(0,a.jsx)(C,{"data-testid":`search-location-panel-${e.name}`,children:p.map(e=>(0,a.jsx)(N,{searchItem:e,profileType:h||S.E.CITY,locale:l,onItemClick:s},e.row))})]})},L=e=>{let{searchProfileList:t,startExpanded:r=!1,locale:i,onItemClick:n}=e;return t.profile.map(e=>(0,a.jsx)(P,{profile:e,startExpanded:r,expandCount:e.location.length,locale:i,onItemClick:n},e.name))};var I=r(45389);let M=({locale:e,searchBaseUrl:t,profileTypes:r,hideRecentLocations:i,className:l,hasAttachedResults:s,onItemClick:d,disabled:v,onDisabledClick:y}
124)=>{let j=x.B[e],[A,k]=w.useState(""),[N,S]=w.useState(""),[$,C]=w.useState(),[P,M]=w.useState(!1),E=async a=>{M(!0);let i=await (0,b.Hu)(t,e,a,999,r);i?.profile?.[0]?.location?.[0]?C(i):C(null),M(!1)},T=w.useCallback((0,I.sg)(E,200),[]),U=(0,w.useMemo)(()=>(0,b.pc)(e,i),[e,i]),F=(0,w.useMemo)(()=>{if(P)return x.B[e].searching;if(!$||$.profile[0].name===x.B[e].recent||""===$.profile[0].name)return null;let t=$.profile.reduce((e,t)=>e+t.rowCount,0),r=t>1?x.B[e].resultsFor:x.B[e].resultFor;return`${t} ${r} ${A}`},[$,A,P,e]);w.useEffect(()=>{A.length<3?(i?C(void 0):C(U),S("")):null===$?S(j.noSearchResultsFound):S("")},[j.noSearchResultsFound,A,U,$,i]),w.useEffect(()=>{A.length>=3&&T(A)},[A,T]);let R=()=>{k(""),C(i?void 0:U),S("")},_=!!F||!!$||!!N;return(0,a.jsxs)("div",{id:"SearchInputWithResults",className:l,children:[(0,a.jsx)(o,{children:(0,a.jsxs)(c,{id:"InputBox",flattenBottom:_&&!!s,disabled:v,onClick:v?y:void 0,children:[(0,a.jsx)(n.WIv,{size:20}),(0,a.jsx)(u,{disabled:v,id:"InputField",type:"text",value:A,name:"search",onChange:e=>{k(e.target.value)},placeholder:j.searchPlaceholder,"data-testid":"search-input-field",autoComplete:"off",autoFocus:!0,"aria-describedby":"search-results-count"}),A&&(0,a.jsx)(f,{onClick:R,"aria-label":j.clearSearch,children:"â"})]})}),_&&(0,a.jsxs)(h,{id:"SearchResultsWrapper",children:[F&&(0,a.jsx)(p,{id:"search-results-count",htmlFor:"InputField","data-testid":"search-results-count","aria-live":"polite",children:(0,a.jsx)(g,{children:F})}),!!$&&(0,a.jsx)(L,{searchProfileList:$,locale:e,onItemClick:d?(e,t)=>{d(e,t),R()}:void 0}),!!N&&(0,a.jsx)(m,{"data-testid":"search-error",children:N})]})]})}},45333:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});var a=r(34325);let i={"en-CA":{searchTitle:"Search for your weather",searchPlaceholder:"Enter location",clearSearch:"Clear search",showMore:"Show more results",showLess:"Show fewer results",recent:"Recent",resultsFor:"results for",resultFor:"result for",searching:"searching...",profileType:{[a.E.CITY]:{searchHeading:"Locations"},[a.E.GOLF]:{searchHeading:"Golf Courses"},[a.E.SCHOOL]:{searchHeading:"Schools"},[a.E.AIRPORT]:{searchHeading:"Airports"},[a.E.BEACH]:{searchHeading:"Beach Report"},[a.E.CAMPGROUND]:{searchHeading:"Camping Report"},[a.E.COTTAGE]:{searchHeading:"Cottage Report"},[a.E.MARINE]:{searchHeading:"Marine"},[a.E.PARK]:{searchHeading:"Parks"},[a.E.SKI]:{searchHeading:"Ski Resorts"},[a.E.ATTRACTION]:{searchHeading:"Attractions"},[a.E.VACATION]:{searchHeading:"Vacation destinations"}},noSearchResultsFound:"No locations found. Please try again."},"fr-CA":{searchTitle:"Rechercher votre pr\xe9vision m\xe9t\xe9o",searchPlaceholder:"Entrer un endroit",clearSearch:"Effacer la recherche",showMore:"Montrer plus de r\xe9sultats",showLess:"Montrer moins de r\xe9sultats",recent:"R\xe9cents",resultsFor:"r\xe9sultats pour",resultFor:"r\xe9sultat pour",searching:"recherche...",profileType:{[a.E.CITY]:{searchHeading:"Emplacements"},[a.E.GOLF]:{searchHeading:"Cours de golf"},[a.E.SCHOOL]:{searchHeading:"\xc9coles"},[a.E.AIRPORT]:{searchHeading:"A\xe9roports"},[a.E.BEACH]:{searchHeading:"Bulletin plage"},[a.E.CAMPGROUND]:{searchHeading:"Bulletin camping"},[a.E.COTTAGE]:{searchHeading:"Bulletin chalet"},[a.E.MARINE]:{searchHeading:"Maritimes"},[a.E.PARK]:{searchHeading:"Parcs"},[a.E.SKI]:{searchHeading:"Stations de ski"},[a.E.ATTRACTION]:{searchHeading:"Attractions"},[a.E.VACATION]:{searchHeading:"Destinations vacances"}},noSearchResultsFound:"Aucun endroit disponible - Veuillez r\xe9essayer."}}},54473:(e,t,r)=>{"use strict";r.d(t,{Hm:()=>o,uo:()=>m,eA:()=>d,oo:()=>h,fZ:()=>c}),r(23564),r(22123),r(63164),r(61435),r(7707),r(1013);var a=r(14536),i=r.n(a),n=r(9853),l=r(50292),s=r(13550);let o=e=>"en-ca"===e.toLocaleLowerCase()?"twn":"fr-ca"===e.toLocaleLowerCase()?"mm":void 0,d=async(e,t,r,a,i,n)=>{if(t&&r&&a)try{let o=await (0,s.Od)(`${e}/frontend/video/web/player-config.json?v=2026-07-09`);if(!o)return void l.vF.error("Failed to get player-config.json. Error: No data returned");let d=`${t}-${r}-${a}${n?"-connatix":""}${i?"-beta":""}`,c=o[d];if(!c)return void l.vF.error(`Failed to get player-config.json. Error: No config found for ${d}`);return{playerId:c["player-id"],secondaryPlayerId:c["secondary-player-id"],recommendationPlaylistId:c["recommendation-playlist-id"],videoId:c["video-id"]}}catch(e){l.vF.error("Failed to get player-config.json. Error: "+e)}},c=async(e,t,r="overview")=>{let a=null;try{a=await (0,s.Od)(`${e}/frontend/video/web/${t.toLowerCase()}.json`)}catch(e){return l.vF.error(`Failed to get video playlists info. Error: ${e}`),null}return a?.placement?.find(e=>e.name===r)||null},u=[{pattern:/\/(news\/climate|nouvelles\/climat)\//i,product:"climate"},{pattern:/\/news|nouvelles\//i,product:"news"},{pattern:/\/video\/?/i,product:"videogallery"},{pattern:/\/current|actuelle\/?/i,product:"citypage"},{pattern:/\/stormcentre|meteoenaction\//i,product:"stormcentre"},{pattern:/\/info|explore|hub-pages|contests|infos|explorer|concours\//i,product:"hubpages"}],h=e=>{if(!e)return;let t=u.filter(t=>null!==e.match(t.pattern));if(t.length>0)return t[0].product},m=e=>{if(!e)return;let t=(0,n.me)(new URL(e).searchParams),r=i()(navigator.userAgent);return t?r.os.name?.toLowerCase()==="android"?"android":"ios":"mobile"===r.device.type?"mweb":"web"}},59522:(e,t,r)=>{"use strict";r.d(t,{Yt:()=>a.Yt});var a=r(86454)},64148:(e,t,r)=>{"use strict";r.d(t,{C:()=>a,I:()=>i});let a=["news","category","subcategory","slug"],i={__typename:"Asset",url:"https://j.theweathernetwork.com/web/article-default-thumbnail.webp",width:640,height:313}},74948:(e,t,r)=>{"use strict";r.d(t,{iX:()=>n}),r(90553);var a=r(59522);r(44133);var i=r(64148);r(96964);let n=(e,t={})=>{let r=t.pageParams??{},n=e.replace(/(^\/|\/$)/g,"").split("/"),l=[],s=`/${n.shift()}`,o=Array.from(new Set(t.allowedCategoryPathSubstrings?.map(e=>e.split("/")[0])??[]));
124return n.forEach((e,n)=>{s+=`/${e}`;let d=i.C[n];if(o.length>0&&"category"===d&&!o.some(e=>s.includes(e))||t.allowedCategoryPathSubstrings&&"subcategory"===d&&!t.allowedCategoryPathSubstrings.some(e=>s.includes(e)))return;let c=r[d];e.includes("?")&&(e=e.split("?")[0]),e.includes("#")&&(e=e.split("#")[0]);let u={name:c||e,url:s,ga4Product:a.Yt.News};l.push(u)}),l}},76277:(e,t,r)=>{"use strict";r.d(t,{TakeoverProvider:()=>o,p:()=>s});var a=r(85465),i=r(56493);let n={hasTakeover:!1,takeoverImageUrl:"",trackingPixelUrl:""},l=(0,i.createContext)(void 0);function s(){let e=(0,i.useContext)(l);if(void 0===e)throw Error("Takeover Provider is not present");return e}let o=({children:e})=>{let[t,r]=(0,i.useState)(n);return(0,i.useEffect)(()=>(globalThis.pelmorex={...globalThis.pelmorex??{},runTakeOverReact:(e,t)=>{e&&r({hasTakeover:!0,takeoverImageUrl:e,trackingPixelUrl:t})}},()=>{"function"==typeof globalThis.pelmorex?.runTakeOverReact&&delete globalThis.pelmorex.runTakeOverReact}),[]),(0,a.jsx)(l.Provider,{value:t,children:e})}},76624:(e,t,r)=>{"use strict";r.d(t,{PromoBox:()=>v});var a=r(85465),i=r(63600),n=r(38882);let l=i.Ay.div.attrs({"data-testid":"promo-container"})` 125 height: 300px; 126 position: relative; 127 margin-top: ${n.AA.verticalModuleGap}; 128`,s=(0,i.AH)` 129 height: 300px; 130 position: absolute; 131 inset: -100%; 132 margin: auto; 133 max-width: 100vw; 134`,o=i.Ay.a` 135 ${s} 136 display: block; 137 width: 100vw; 138 z-index: 1; 139`,d=i.Ay.img` 140 ${s} 141 object-fit: cover; 142 object-position: center; 143`;var c=r(86454),u=r(59420),h=r(54951),m=r(43209),p=r(56493),g=r(13550);let f={"en-CA":{promotion:"Promotion"},"fr-CA":{promotion:"Promotion"}};var x=r(61129);let w={[m.i.SMALL]:"mobile",[m.i.MEDIUM]:"tablet",[m.i.LARGE]:"desktop"},b={[m.i.SMALL]:"imageMobile",[m.i.MEDIUM]:"imageTablet",[m.i.LARGE]:"imageDesktop"},v=({style:e,...t})=>{let{viewPortSize:r}=(0,h.wo)(),{contentApiResponse:i}=(({contentApiBaseUrl:e,locale:t,promoProduct:r,regionId:a})=>{let[i,n]=(0,p.useState)();return(0,p.useEffect)(()=>{let i=!0;return(async()=>{let l=`${e}/${t}/promo/${r}/${a??"untargeted"}`,s=await (0,g.In)(l);i&&(s?.data?n(s.data):n(null))})(),()=>{i=!1}},[]),{contentApiResponse:i}})({...t});(0,p.useLayoutEffect)(()=>{document.body.style.overflowX="hidden"},[]);let n=r?w[r]:void 0,s=n&&i?i[n]:void 0,m=s?.length??0,v=(0,p.useMemo)(()=>Math.floor(Math.random()*m),[m]);if(!r||!i)return(0,a.jsx)(l,{style:e});if(!s||0===m)return null;let y=s[v],j={[c.L8.ModuleName]:c.Oe.Promo,[c.L8.ModuleText]:y.title},A=b[r],k=y[A]?.url;return k&&(0,a.jsx)(u.SW,{ga4ModuleParameters:j,"data-testid":"promo-box",children:(0,a.jsx)(u.xM,{ga4ModuleParameters:j,children:(0,a.jsx)(l,{style:e,children:(0,a.jsx)(o,{...(0,x.uv)(y.link,t.locale),children:(0,a.jsx)(d,{src:`${k}?q=80`,alt:`${f[t.locale].promotion}: ${y.headline}`})})})})})}},84683:()=>{},86419:(e,t,r)=>{"use strict";r.r(t),r.d(t,{useNewsBreadcrumbsData:()=>n});var a=r(95543),i=r(43117);let n=(e,t={})=>{let r=(0,a.usePathname)(),n=(0,a.useSearchParams)().toString(),l=n?`${r}?${n}`:r;return(0,i.c)(l,e,t)}},87614:(e,t,r)=>{"use strict";r.d(t,{E:()=>G,SiteChrome:()=>e$});var a=r(85465);r(2785);var i=r(43209),n=r(56493),l=r(63164),s=r(76277),o=r(46402);let d=({children:e})=>(0,a.jsx)("div",{className:"pt-4 pl-[1.15rem] font-semibold",children:e});r(31254),r(7483),r(72452);var c=r(63600);c.Ay.button` 144 width: auto; 145 min-width: 4.688rem; 146 height: 1.563rem; 147 border: solid; 148 border-width: 0.063rem; 149 border-color: #ffffff; 150 border-radius: 4px; 151 background: #0000004D 0% 0% no-repeat padding-box; 152 color: #ffffff; 153 cursor: pointer; 154 z-index: 1; 155`,c.Ay.div` 156 height: 100%; 157 width: 100%; 158 display: flex; 159 align-items: center; 160 justify-content: center; 161 gap: 0.25rem; 162`,c.Ay.div` 163 position: absolute; 164 display: flex; 165 justify-content: flex-end; 166 right: ${({right:e})=>e}; 167 top: ${({top:e})=>e}; 168`,c.Ay.div` 169 padding-right: 0rem; 170`;var u=r(523),h=r(86454);r(15360);var m=r(54951);r(9853),r(44273);var p=r(45333),g=r(49593),f=r(92617),x=r(45389);let w=({flattenBottom:e,disabled:t,children:r,onClick:i})=>(0,a.jsx)("div",{id:"InputBox",onClick:i,className:`w-full flex flex-row gap-[5px] font-normal 171 ${t?"opacity-50 cursor-not-allowed pointer-events-none":""} 172 ${e?"rounded-b-none":""} 173 `,children:r}),b=({disabled:e,value:t,name:r,onChange:i,placeholder:n})=>(0,a.jsx)("input",{disabled:e,type:"text",value:t,name:r,onChange:i,placeholder:n,"data-testid":"search-input-field",autoComplete:"off",autoFocus:!0,"aria-describedby":"search-results-count",className:(0,f.cn)("w-full bg-white border-none text-[1.2rem] text-dark-grey-500","focus:outline-none","placeholder:text-[#757575]","disabled:cursor-not-allowed disabled:opacity-50")}),v=({resultsText:e})=>(0,a.jsx)("output",{className:"w-full bg-white dark:bg-near-black",i
173d:"search-results-count",htmlFor:"InputField","data-testid":"search-results-count","aria-live":"polite",children:(0,a.jsx)("label",{className:"pl-4 text-body-md font-light text-primary-foreground",children:e})}),y=e=>{let{searchItem:t,profileType:r,locale:i,onItemClick:n}=e,l=t.path??(0,g.Nw)(i,r,t),s=((...e)=>{let t=e.pop();return t.countryDisplayCode?(0,g.EK)(t.name,t.provName,t.countryDisplayCode):`${t.name}, ${t.provName||t.countryName}`})(t),d=(0,f.cn)("m-4 p-0 py-[5px] pr-[5px] flex whitespace-nowrap justify-between","border-b border-border cursor-pointer hover:text-highlight");return Object.keys(t).length?(0,a.jsx)("li",{children:(0,a.jsx)(u.xM,{ga4ModuleParameters:{[h.L8.ModuleName]:h.Oe.Search},children:n?(0,a.jsx)("button",{"data-testid":"search-result-item",onClick:()=>{n&&n(t,r)},type:"button",className:(0,f.cn)(d,"bg-transparent border-0 text-inherit font-inherit no-underline"),children:s}):(0,a.jsxs)("a",{href:l,"data-testid":"search-result-item",className:d,children:[s,(0,a.jsx)(o.vKP,{size:"16px"})]})})}):null};var j=r(34325);let A=({isShowingPointer:e,onClick:t,className:r,children:i,dataTestId:n})=>(0,a.jsx)("div",{onClick:t,"data-testid":n,className:(0,f.cn)(r,"outline-none","bg-[#175489] mb-4 py-[15px] px-[20px] text-white flex flex-row items-center gap-4 h-[2.8em]",e?"cursor-pointer":""),children:i}),k=({ariaLabel:e,icon:t})=>(0,a.jsx)("button",{className:"bg-transparent border-none cursor-pointer","aria-label":e,children:t}),N=({profile:e,startExpanded:t=!1,expandCount:r=10,collapseCount:i=5,locale:l,onItemClick:s})=>{let[d,c]=(0,n.useState)(t),u=p.B[l],h=!1;if(!e||!e.name)return null;let m=(0,g.mg)(e.name);m||(h=!0);let f=e.location.length>i,x=e.location.slice(0,d?r:i).filter(e=>{if(e.friendlyURL||e.path)return!0;if(Array.isArray(e.name)&&e.name.length>0){let t=e.name.find(e=>e.locale===l);if(t?.friendlyURL)return!0}return!1});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(A,{className:"SearchResultCategory",dataTestId:`search-location-heading-${e.name}`,onClick:()=>{f&&c(e=>!e)},"data-testid":`search-location-heading-${e.name}`,isShowingPointer:f,children:[(0,a.jsx)("h2",{className:"font-semibold",children:h?e.name.toUpperCase():u.profileType[`${e.name}`].searchHeading.toUpperCase()}),f&&!d&&(0,a.jsx)(k,{ariaLabel:p.B[l].showMore,icon:(0,a.jsx)(o.c11,{size:10})}),f&&d&&(0,a.jsx)(k,{ariaLabel:p.B[l].showLess,icon:(0,a.jsx)(o.QGg,{size:10})})]}),(0,a.jsx)("ul",{"data-testid":`search-location-panel-${e.name}`,children:x.map(e=>(0,a.jsx)(y,{searchItem:e,profileType:m||j.E.CITY,locale:l,onItemClick:s},e.row))})]})},S=e=>{let{searchProfileList:t,startExpanded:r=!1,locale:i,onItemClick:n}=e;return t.profile.map(e=>(0,a.jsx)(N,{profile:e,startExpanded:r,expandCount:e.location.length,locale:i,onItemClick:n},e.name))},$=({locale:e,searchBaseUrl:t,profileTypes:r,hideRecentLocations:i,className:l,hasAttachedResults:s,onItemClick:d,disabled:c,onDisabledClick:u})=>{let h=p.B[e],[m,y]=n.useState(""),[j,A]=n.useState(""),[k,N]=n.useState(),[$,C]=n.useState(!1),P=async a=>{C(!0);let i=await (0,g.Hu)(t,e,a,999,r);i?.profile?.[0]?.location?.[0]?N(i):N(null),C(!1)},L=n.useCallback((0,x.sg)(P,200),[]),I=(0,n.useMemo)(()=>(0,g.pc)(e,i),[e,i]),M=(0,n.useMemo)(()=>{if($)return p.B[e].searching;if(!k||k.profile[0].name===p.B[e].recent||""===k.profile[0].name)return null;let t=k.profile.reduce((e,t)=>e+t.rowCount,0),r=t>1?p.B[e].resultsFor:p.B[e].resultFor;return`${t} ${r} ${m}`},[k,m,$,e]);n.useEffect(()=>{m.length<3?(i?N(void 0):N(I),A("")):null===k?A(h.noSearchResultsFound):A("")},[h.noSearchResultsFound,m,I,k,i]),n.useEffect(()=>{m.length>=3&&L(m)},[m,L]);let E=()=>{y(""),N(i?void 0:I),A("")},T=!!M||!!k||!!j;return(0,a.jsxs)("div",{id:"SearchInputWithResults",className:l,children:[(0,a.jsx)("div",{className:(0,f.cn)("p-3 m-4 rounded-sm md:rounded-md lg:rounded-lg border border-black","shadow-search-input bg-white text-dark-grey-500"),children:(0,a.jsxs)(w,{flattenBottom:T&&!!s,disabled:c,onClick:c?u:void 0,children:[(0,a.jsx)(o.WIv,{size:20}),(0,a.jsx)(b,{disabled:c,value:m,name:"search",onChange:e=>{y(e.target.value)},placeholder:h.searchPlaceholder,"data-testid":"search-input-field","aria-describedby":"search-results-count"}),m&&(0,a.jsx)("button",{"aria-label":h.clearSearch,className:"mr-1 text-black",onClick:E,children:"â"})]})}),T&&(0,a.jsxs)("div",{className:"bg-white dark:bg-near-black",i
173d:"SearchResultsWrapper",children:[M&&(0,a.jsx)(v,{resultsText:M}),!!k&&(0,a.jsx)(S,{searchProfileList:k,locale:e,onItemClick:d?(e,t)=>{d(e,t),E()}:void 0}),!!j&&(0,a.jsx)("div",{className:"my-[1rem] mx-[1.2rem]","data-testid":"search-error",children:j})]})]})};r(96188),r(76624);var C=r(20279);let P=(0,c.i7)` 174 from { 175 height: 0; 176 overflow: hidden; 177 } 178 to { 179 height: 8rem; 180 } 181`,L=(0,c.i7)` 182 from { 183 height: 0; 184 overflow: hidden; 185 } 186 to { 187 height: 5rem; 188 } 189`,I=(0,c.i7)` 190 from { 191 height: 0; 192 overflow: hidden; 193 } 194 to { 195 height: 2.5rem; 196 } 197`;c.Ay.a` 198 background-color: #A0D4D8; 199 color: #203C73; 200 201 height: 8rem; 202 width: 100%; 203 padding: 0 1rem; 204 205 display: flex; 206 flex-direction: column; 207 align-items: center; 208 justify-content: center; 209 gap: 0.75rem; 210 211 animation: ${P} 0.5s ease-out forwards; 212 213 @media ${C.j[C.i.MEDIUM]} { 214 height: 5rem; 215 gap: 0.5rem; 216 animation: ${L} 0.5s ease-out forwards; 217 } 218 219 @media ${C.j[C.i.SMALL]} { 220 height: 2.5rem; 221 padding: 0 0.75rem; 222 position: fixed; 223 bottom: ${({bottomNavHeight:e})=>e}; 224 justify-content: space-around; 225 gap: 0; 226 227 z-index: 100; 228 flex-direction: row; 229 animation: ${I} 0.5s ease-out forwards; 230 } 231`,c.Ay.div` 232 233 ${o.Il4.BodyLg} 234 font-weight: 500; 235 236 display: flex; 237 gap: 0.75rem; 238 239 @media ${C.j[C.i.MEDIUM]} { 240 ${o.Il4.BodySm} 241 } 242 243 @media ${C.j[C.i.SMALL]} { 244 ${o.Il4.BodySm} 245 display: flex; 246 gap: 0.375rem; 247 } 248`,c.Ay.div` 249 background-color: #203C73; 250 color: white; 251 252 height: 1.625rem; 253 border-radius: 0.8125rem; 254 padding: 0 1rem; 255 256 ${o.Il4.BodySm} 257 258 display: flex; 259 justify-content: center; 260 align-items: center; 261 262 @media ${C.j[C.i.SMALL]} { 263 ${o.Il4.BodyXs} 264 } 265`;var M=r(85113);r(84683);let E=({disable:e})=>{let t=(0,M.Br)("watch-live","not_in_experiment");return e||"not_in_experiment"===t||"control_no_live_stream"===t?null:(0,a.jsx)(u.xM,{ga4ModuleParameters:{[h.L8.ModuleName]:"watchLiveBanner",[h.L8.ModuleSubProduct]:"watchLive"},children:(0,a.jsxs)("a",{href:"/en/gta-live",className:`slideIn bg-[#A0D4D8] text-[#203C73] w-full 266 fixed flex items-center justify-around gap-0 z-[100] h-[2.5rem] px-[0.75rem] bottom-[3.95rem] 267 md:relative md:h-[5rem] md:flex-col md:bottom-0 md:justify-center md:gap-2 md:px-4 268 xl:h-[8rem] xl:gap-[0.75rem]`,children:[(0,a.jsx)("div",{className:"flex text-sm font-normal gap-[0.375rem]\n md:gap-2 xl:font-medium xl:text-[18px] xl:gap-[0.75rem]",children:"Watch The Weather Network Live"}),(0,a.jsx)("div",{className:"bg-[#203C73] text-white h-[1.625rem] rounded-full\n px-4 flex items-center justify-center text-xs md:text-sm font-normal",children:"live_stream_with_sign_in"===t?"Sign in":"Stream Now"})]})})};c.Ay.div` 269 display: flex; 270 background-color: ${e=>e.hideBackground?"transparent":e.isDarkMode?"#000000":e.isDefault?"rgba(0,0,0,0.2)":"#FFFFFF"} ; 271 margin: ${e=>e.styleOverrides?.margin??"1.5rem"}; 272 min-height: ${e=>e.styleOverrides?.minHeight??"18rem"}; 273 display: flex; 274 flex-direction: column; 275 justify-content: center; 276 align-items: center; 277 word-wrap: break-word; /* IE 5.5-7 */ 278 white-space: pre-wrap; /* Modern browsers */ 279`,c.Ay.div` 280 margin: ${e=>e.styleOverrides?.contentBottomMargin||"0 1.7em 1.5em 1.7em"}; 281 display: flex; 282 flex-direction: column; 283 justify-content: center; 284 align-items: center; 285`,c.Ay.div` 286 font-size: ${e=>e.isDefault?"2rem":"2.4375rem"}; 287 // color: #f6d906; 288 margin: ${e=>e.isDefault?"0 0 0.5em 0":"0"}; 289`,c.Ay.div` 290 font-weight: bold; 291 margin: 0 0 5px 0; 292`,c.Ay.div` 293 text-align: center; 294 ${e=>e.isDefault?"":"max-width: 300px"}; 295 ${e=>e.isDefault?"":"font-size: 0.875rem"}; 296`,c.Ay.div` 297 text-transform: uppercase; 298 margin-top: 18px; 299 font-size: 0.75rem; 300 color: #f6d906; 301`,c.Ay.button` 302 border: 1px solid ${e=>e.isDefault?"#f6d906":"#FFFFFF"}; 303 border-radius: 4px; 304 padding: .25em 2em; 305 text-decoration: none; 306 font: ${e=>e.isDefault?"#FFFFFF":"normal bold 14px Poppins, sans-serif"}; 307 color: #FFFFFF; 308 background-color: ${e=>e.isDefault?"rgba(0, 0, 0, 0.15)":"#61A3AE"}; 309 cursor: ${e=>e.isDefault?"arrow":"pointer"}; 310 &.disabled { 311 color: gray; 312 } 313`,c.Ay.div(e=>` 314 position: ${e.position||"relative"}; 315 width: 100%; 316 height: 100%; 317 text-align: center; 318 `),c.Ay.div(e=>` 319 background: ${e.isDark?"rgba(0,0,0,0.8)":"rgba(255,255,255,0.90)"}; 320 display: flex; 321 justify-content: center; 322 align-items: center; 323 position: absolute; 324 width: 100%; 325 height: 100%; 326 z-index: 5; 327 `),r(13550);var T=r(22123),U=r(23564);let F="#f6d906",R=(0,c.AH)` 328 width: 100%; 329 background-color: ${F}; 330`,_=c.Ay.div.attrs({className:"UnderlineComponent"})` 331 ${R}; 332`,B=(0,c.AH)` 333 ${_} { 334 transform-origin: bottom left; 335 transform: scaleX(0); 336 ${o.WTC.TransitionAnimationTime}; 337 } 338`,z=(0,c.AH)` 339 ${_} { 340 background-color: ${F}; 341 transform: scaleX(1); 342 ${o.WTC.TransitionAnimationTime} 343 } 344`,O=(0,c.AH)` 345 @media ${U.jO[T.iL.LARGE]},${U.jO[T.iL.MEDIUM]} { 346 ${B}; 347 :hover { 348 ${z} 349 }; 350 } 351`;c.Ay.li.attrs({className:"UnderlineTextComponent"})` 352 position: relative; 353 list-style-type: none; 354 ${O}; 355`,c.Ay.div.attrs({className:"ResponsiveContainerComponent"})` 356 max-width: ${U.$d[T.iL.LARGE]}px; 357 margin: 0 auto; 358 width: 100%; 359`;let H={"en-CA":{title:"Search",heading:"Search for your weather"},"fr-CA":{title:"Rechercher",heading:"Rechercher votre pr\xe9vision m\xe9t\xe9o"}},D=({locale:e,searchBaseUrl:t,overrideTriggerElement:r,profileTypes:i,hideRecentLocations:n,overlayTitle:l})=>(0,a.jsxs)(o.gyG,{locale:e,triggerElement:r??(0,a.jsx)(o.JKM,{"aria-label":H[e].title,"data-testid":"search-overlay-default-trigger-element",children:(0,a.jsx)(o.WIv,{size:20})}),children:[(0,a.jsx)(d,{children:l??H[e].heading}),(0,a.jsx)($,{locale:e,searchBaseUrl:t,profileTypes:i,hideRecentLocations:n})]}),W={"en-CA":{navBarLabel:"Site",weather:{label:"Weather",linkUrl:"/",highlightUrlPattern:/(^\/en\/[a-z-]+\/[a-z]{2}\/[a-z0-9-]+\/[a-z0-9-]+\/[a-z0-9-]+)|(^\/[a-z]{2}\/(forecasts|weather|hourly-weather-forecast|36-hour-weather-forecast|14-day-weather-trend|historical)\/)/i},maps:{label:"Maps",linkUrl:"/en/maps/radar",highlightUrlPattern:/^\/en\/maps\//i},news:{label:"News",linkUrl:"/en/news",highlightUrlPattern:/^\/en\/news/i},video:{label:"Video",linkUrl:"/en/video",highlightUrlPattern:/^\/en\/video/i},vacation:{label:"Vacation",linkUrl:"/en/vacation",highlightUrlPattern:/^\/en\/vacation/i}},"fr-CA":{navBarLabel:"Site web",weather:{label:"M\xe9t\xe9o",linkUrl:"/",highlightUrlPattern:/(^\/fr\/[a-z-]+\/[a-z]{2}\/[a-z0-9-]+\/[a-z0-9-]+\/[a-z0-9-]+)|(^\/[a-z]{2}\/(previsions|meteo|previsions-meteo-horaires|previsions-meteo-36-heures|tendance-meteo-14-jours|historique)\/)/i},maps:{label:"Cartes",linkUrl:"/fr/cartes/radar",highlightUrlPattern:/^\/fr\/cartes\//i},news:{label:"Nouvelles",linkUrl:"/fr/nouvelles",highlightUrlPattern:/^\/fr\/nouvelles/i},video:{label:"Vid\xe9os",linkUrl:"/fr/video",highlightUrlPattern:/^\/fr\/video/i},vacation:{label:"Vacances",linkUrl:"/fr/vacances",highlightUrlPattern:/^\/fr\/vacances/i}}},V="1.71875rem",G="3.95rem",Y=({children:e})=>(0,a.jsx)("ul",{className:(0,f.cn)("w-full flex md:justify-end xl:justify-between md:gap-2 md:pr-4","max-md:justify-between max-md:items-center max-md:list-none","max-md:[background-color:var(--theme-prop-primary-nav-background-color)]",`max-md:h-[${G}] max-md:border-t max-md:border-t-[rgba(0,0,0,0.2)]`,"max-md:px-4 max-md:py-0 max-md:ml-[1.2rem]"),children:e}),K=({isHighlighted:e=!1,showIconInHorizontalNav:t=!1,children:r})=>(0,a.jsx)("div",{"data-highlighted":e?"true":void 0,className:(0,f.cn)("flex flex-col items-center text-xs font-normal max-md:p-[0.5em]","text-nav-text-light fill-nav-text-light dark:text-nav-text-dark dark:fill-nav-text-dark","md:block md:w-fit md:uppercase md:box-content md:text-base","md:[&_span]:px-1.5","md:relative md:inline-block","md:[font-variation-settings:'wght'_400]","md:transition-[font-variation-settings,font-weight]","md:[transition-duration:450ms] md:[transition-timing-function:cubic-bezier(0.19,1,0.22,1)]","md:after:content-[''] md:after:absolute md:after:block","md:after:left-0 md:after:top-full md:after:mt-[0.67rem]","md:after:h-1.5 md:after:bg-[#F6DA07]",{"max-md:text-night-blue max-md:fill-night-blue":e,"dark:max-md:text-brand-yellow dark:max-md:fill-brand-yellow":e,"md:[&_i]:hidden md:[&_svg]:hidden":!t},e?"md:[font-variation-settings:'wght'_600] md:font-bold md:after:w-full":"md:after:w-0 md:after:transition-[width] md:after:[transition-duration:450ms] md:after:[transition-timing-function:cubic-bezier(0.19,1,0.22,1)] md:hover:[font-variation-settings:'wght'_600] md:hover:font-bold md:hover:after:w-full"),children:r}),X=({highlightUrlPattern:e,showIconInHorizontalNav:t,children:r})=>
359{let[i,l]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{l(!!window.location.pathname.match(e))},[e]),(0,a.jsx)(K,{isHighlighted:i,showIconInHorizontalNav:t,children:r})},q=({linkUrl:e,highlightUrlPattern:t,children:r,dataTestId:n,disabled:l,showIconInHorizontalNav:s,moduleSubProduct:d})=>{let{viewPortSize:c}=(0,m.wo)();if(l)return null;let p=c===i.i.SMALL?h.Oe.NavigationTabBar:h.Oe.NavigationTopNav;return(0,a.jsx)(o.Wv7,{href:e,"data-testid":n,className:(0,f.cn)("inline-block h-full rounded-sm","keyboard-focus-link"),children:(0,a.jsx)(u.xM,{ga4ModuleParameters:{[h.L8.ModuleName]:p,[h.L8.ModuleSubProduct]:d},children:(0,a.jsx)(X,{highlightUrlPattern:t,showIconInHorizontalNav:s,children:r})})})};var J=r(59522);let Z=({locale:e})=>{let t=W[e].weather,[r,i]=(0,n.useState)(t.linkUrl),l=(0,g._U)();return(0,n.useEffect)(()=>{i(l?.path??t.linkUrl)},[l]),(0,a.jsxs)(q,{linkUrl:r,highlightUrlPattern:t.highlightUrlPattern,dataTestId:"header-nav-item-weather",disabled:t.disabled,moduleSubProduct:J.Yt.Current,children:[(0,a.jsx)(o.ESV,{size:V}),(0,a.jsx)("span",{children:t.label})]})},Q=({locale:e})=>{let[t,r]=(0,n.useState)(new URLSearchParams),i=(0,g._U)(),l=W[e].maps;(0,n.useEffect)(()=>{if(i){let e=new URLSearchParams;e.set("lat",`${i.lat}`),e.set("lng",`${i.long}`),r(e)}},[i?.lat,i?.long]);let s=t.toString()?`?${t.toString()}`:"",d=`${l.linkUrl}${s}`;return(0,a.jsxs)(q,{linkUrl:d,highlightUrlPattern:l.highlightUrlPattern,dataTestId:"header-nav-item-maps",disabled:l.disabled,moduleSubProduct:J.Yt.Maps,children:[(0,a.jsx)(o.MCo,{size:V}),(0,a.jsx)("span",{children:l.label})]})},ee=({locale:e})=>{let t=W[e].news;return(0,a.jsxs)(q,{linkUrl:t.linkUrl,highlightUrlPattern:t.highlightUrlPattern,dataTestId:"header-nav-item-news",disabled:t.disabled,moduleSubProduct:J.Yt.News,children:[(0,a.jsx)(o.LEX,{size:V}),(0,a.jsx)("span",{children:t.label})]})},et=({locale:e})=>{let t=W[e].video;return(0,a.jsxs)(q,{linkUrl:t.linkUrl,highlightUrlPattern:t.highlightUrlPattern,dataTestId:"header-nav-item-videos",disabled:t.disabled,moduleSubProduct:J.Yt.Videos,children:[(0,a.jsx)(o.npA,{size:V}),(0,a.jsx)("span",{children:t.label})]})},er=()=>(0,a.jsx)(q,{linkUrl:"/en/gta-live",highlightUrlPattern:/^\/en\/gta-live/i,dataTestId:"header-nav-item-watch-live",moduleSubProduct:"watchLive",showIconInHorizontalNav:!0,children:(0,a.jsxs)("div",{className:"flex items-center flex-row-reverse w-max sm:flex-col",children:[(0,a.jsx)(o.sY7,{size:V,className:"md:hidden"}),(0,a.jsx)("span",{children:"Watch Live"})]})}),ea=({locale:e})=>{let t=(0,M.Br)("watch-live","not_in_experiment"),[r,i]=(0,n.useState)(!1);(0,n.useEffect)(()=>{i("live_stream_with_sign_in"===t||"live_stream_without_sign_in"===t)},[t]);let l=W[e];return(0,a.jsx)("nav",{className:"w-full","aria-label":l.navBarLabel,"data-testid":"header-navigation-bar",children:(0,a.jsxs)(Y,{children:[(0,a.jsx)("li",{children:(0,a.jsx)(Z,{locale:e})}),(0,a.jsx)("li",{children:(0,a.jsx)(Q,{locale:e})}),(0,a.jsx)("li",{children:(0,a.jsx)(ee,{locale:e})}),(0,a.jsx)("li",{children:(0,a.jsx)(et,{locale:e})}),r&&(0,a.jsx)("li",{children:(0,a.jsx)(er,{locale:e})})]})})},ei=({children:e,dataTestId:t})=>(0,a.jsx)("div",{"data-testid":t,className:(0,f.cn)("z-[100] fixed bottom-0 w-full","md:static md:self-end md:top-[27.5px]","md:w-[87%] lg:w-[87%]"),children:e}),en=({children:e})=>(0,a.jsx)("div",{className:"flex flex-row items-center gap-4 justify-end md:gap-1 xl:gap-4 md:w-[70%] xl:w-1/2",children:e}),el=({children:e})=>(0,a.jsx)("div",{className:"w-[7.5rem] md:w-[10.5rem]",children:e}),es={"en-CA":{welcome:"Welcome"},"fr-CA":{welcome:"Bienvenue"}};var eo=r(69576),ed=r(10024);let ec=({locale:e,firebaseOptions:t})=>{let{user:r,loading:i}=(0,eo.t7)({locale:e,firebaseOptions:t});return(0,a.jsx)(o.Wv7,{href:ed.XF[e].signInPath,"data-testid":"account-button",children:(0,a.jsxs)("div",{className:`flex items-center ${r&&!i?"text-night-blue":""}`,children:[(0,a.jsx)(o.nys,{size:29}),(0,a.jsx)("span",{className:(0,f.cn)("max-w-[5.375rem] overflow-hidden text-ellipsis whitespace-nowrap text-body-sm font-normal","md:max-w-[3.875rem]","xl:max-w-[7.875rem]"),children:r&&!i?r.displayName:es[e].welcome})]})})},eu=({children:e,className:t=""})=>(0,a.jsx)("div",{className:(0,f.cn)("w-full shadow-header dark:shadow-none -mt-[1px]","bg-white dark:bg-near-black","text-nav-text-light dark:text-nav-text-dark","[&_a]:text-nav-text-light dark:[&_a]:text-nav-text-dark",t),children:e}),eh=({children:e,className:t=""})=>(0,a.jsx)("div",{className:(0,f.cn)("flex items-center justify-between w-full h-[2.375rem]","md:h-[3.875rem]",t),children:e}),em=({locale:e,searchBaseUrl:t,hideHeaderAndNavigation:r,headerText:i,disableSearch:n,disableAccount:l,firebaseOptions:s})=>(0,a.jsx)(eu,{children:(0,a.jsxs)(o.ufH,{children:[!r&&(0,a.jsxs)(eh,{children:[(0,a.jsx)(el,{children:(0,a.jsx)(o.Wv7,{href:"/",className:(0,f.cn)("inline-block rounded-sm","keyboard-focus-link"),children:(0,a.jsx)(o.PY2,{size:"100%",locale:e})})}),(0,a.jsxs)(en,{children:[(0,a.jsx)(ei,{dataTestId:"navigation-container",children:(0,a.jsx)(ea,{locale:e})}),(0,a.jsxs)("div",{className:"flex items-center gap-2 xl:gap-4",children:[!n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D,{locale:e,searchBaseUrl:t})," |"]}),!l&&(0,a.jsx)(ec,{firebaseOptions:s,locale:e})]})]})]}),i&&(0,a.jsx)("div",{className:"py-4",children:(0,a.jsx)("h1",{className:"text-xl font-bold",children:i})})]})}),ep=n.forwardRef(({disableSticky:e,className:t,children:r,...i},n)=>(0,a.jsx)("div",{ref:n,className:(0,f.cn)(!e&&"sticky top-0 z-[100]",t),...i,children:r}));ep.displayName="StickyItem";let eg=n.forwardRef(({disableSticky:e,className:t,children:r,...i},n)=>(0,a.jsx)("div",{ref:n,className:(0,f.cn)({"site-chrome-header-sticky-item sticky z-[100]":!e,"top-[var(--header-sticky-top)]":!e},t),...i,children:r}));
359eg.displayName="HeaderStickyItem";var ef=r(3381);let ex=({children:e,isAdPushedDownRef:t,adWrapperRef:r})=>(0,a.jsx)("div",{ref:r,className:(0,f.cn)("bg-white dark:bg-near-black","empty:min-h-[90px] [&_div:empty]:min-h-[90px]","max-md:empty:min-h-[50px] max-md:empty:h-[50px]","max-md:[&_div:empty]:min-h-[50px] max-md:[&_div:empty]:h-[50px]",{"bg-transparent":t.current}),"data-testid":"header-ad-content",children:e}),ew={"en-CA":{siteName:"The Weather Network",installApp:"Install App",closeBanner:"Close banner"},"fr-CA":{siteName:"M\xe9t\xe9oM\xe9dia",installApp:"Installer l'application",closeBanner:"Fermer la banni\xe8re"}};var eb=r(18586),ev=r(93886),ey=r(59420);let ej=({children:e})=>(0,a.jsx)("div",{"data-testid":"app-install-banner",className:"w-full pb-2 text-body-md font-[sans-serif] bg-background font-normal",children:(0,a.jsx)("div",{className:"flex flex-col gap-2 px-4 py-2 border-b border-[#9a9a9a]",children:e})}),eA=({locale:e,setBeforeInstallEvent:t})=>(0,a.jsx)("div",{className:"w-full flex justify-end pb-2",children:(0,a.jsx)("button",{type:"button",className:(0,f.cn)("m-0 inline-flex items-center justify-center border-0","bg-transparent p-0"),"aria-label":ew[e].closeBanner,onClick:()=>{t(null),(0,ev.Sp)(eb.A.APP_INSTALL_BANNER_SEEN,"true",{path:"/","max-age":30*ev.N_})},children:(0,a.jsx)(o.USm,{size:20,stroke:"currentColor"})})}),ek=({locale:e})=>(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(o.mZ1,{styling:"tailwind",size:"2rem"}),(0,a.jsx)("div",{children:ew[e].siteName})]}),eN=({onClick:e,label:t})=>(0,a.jsx)("button",{className:"bg-[#13A31A] text-white px-4 py-2 m-0",onClick:e,children:t}),eS=({locale:e,beforeInstallEvent:t,setBeforeInstallEvent:r})=>{let i={[h.L8.ModuleName]:h.Oe.Smartbanner};return(0,a.jsx)(ey.SW,{ga4ModuleParameters:i,children:(0,a.jsxs)(ej,{children:[(0,a.jsx)(ey.xM,{ga4ModuleParameters:{...i,[h.L8.ModuleSubProduct]:h.kO.Close},children:(0,a.jsx)(eA,{locale:e,setBeforeInstallEvent:r})}),(0,a.jsxs)("div",{className:"w-full flex justify-between",children:[(0,a.jsx)(ek,{locale:e}),(0,a.jsx)(ey.xM,{ga4ModuleParameters:{...i,[h.L8.ModuleSubProduct]:h.kO.Install},children:(0,a.jsx)(eN,{label:ew[e].installApp,onClick:()=>{t.prompt(),t.userChoice.then(e=>{(0,ev.Sp)(eb.A.APP_INSTALL_BANNER_SEEN,"true",{path:"/","max-age":30*ev.N_}),r(null),"accepted"===e.outcome&&ey.Ay.sendClickEvent({...i,[h.L8.ModuleSubProduct]:h.kO.InstallModal})})}})})]})]})})},e$=({locale:e,searchBaseUrl:t,firebaseOptions:r,isTopBannerBelowHeader:o,hideHeaderAndNavigation:d,showPostHeaderContent:c,stickinessDurationInMs:u=7e3,isPostHeaderAdContentSticky:h,headerText:p,disableSticky:g,disableTopBanner:x,disableSearch:w,disableAccount:b,disableWatchLiveBanner:v,postHeaderContent:y,adContent:j,children:A})=>{let k=(0,n.useRef)(null),N=(0,n.useRef)(null),S=(0,n.useRef)(null),{hasTakeover:$}=(0,s.p)(),{beforeInstallEvent:C,setBeforeInstallEvent:P}=(0,m.AJ)(),L=o||$,I=(0,n.useRef)(L);I.current=L;
359let[M,T]=(0,n.useState)(!1);(0,n.useLayoutEffect)(()=>{if(!k.current)return;let e=new ResizeObserver(()=>{S.current&&k.current&&!M&&!I.current&&(S.current.style.top=`${k.current.clientHeight}px`)});return e.observe(k.current),()=>e.disconnect()},[k.current]),(0,n.useLayoutEffect)(()=>{S.current&&x&&(S.current.style.top="0")},[S.current,x]),(0,n.useEffect)(()=>{if(!M)return;let e=0;k.current&&!I.current&&(e+=k.current.clientHeight),S.current&&(e+=S.current.clientHeight),k.current&&!I.current&&(k.current.style.transition="top 0.5s",k.current.style.top=`-${e+1}px`),S.current&&(S.current.style.transition="top 0.5s",S.current.style.top=`-${e+1}px`)},[M]),(0,n.useLayoutEffect)(()=>{let e=setTimeout(()=>T(!0),u);return()=>{clearTimeout(e)}},[u]);let{viewPortSize:U}=(0,m.wo)();(0,n.useEffect)(()=>{let e;if(!U)return;let t=t=>{t.slot.getSlotElementId()===l.tS.TOP_BANNER&&(e=setTimeout(()=>T(!0),U===i.i.SMALL?2e3:500))};return globalThis.window.googletag=globalThis.window.googletag||{cmd:[]},globalThis.window.googletag.cmd.push(()=>{globalThis.window.googletag.pubads().addEventListener("impressionViewable",t)}
359),()=>{globalThis.window.googletag.cmd.push(()=>{globalThis.window.googletag.pubads().removeEventListener("impressionViewable",t)}),clearTimeout(e)}},[U]),(0,n.useLayoutEffect)(()=>{if(!M)return;let e=setTimeout(()=>{k.current&&(k.current.style.position="static"),S.current&&(S.current.style.position="static")},500);return()=>{clearTimeout(e)}},[M]),(0,n.useLayoutEffect)(()=>{I.current&&k.current&&N.current&&S.current&&(k.current.style.order="1",N.current.style.backgroundColor="transparent",S.current.style.top="0")},[I.current]);let F=g||I.current&&!h;return(0,a.jsxs)("div",{className:(0,f.cn)("min-h-full","flex flex-col","font-sans","[&_input]:font-sans"),"data-testid":"site-chrome",children:[(0,a.jsxs)("header",{className:"contents",children:[C&&!(0,ef.R)(ef.A.APP_INSTALL_BANNER_SEEN)&&(0,a.jsx)(eS,{locale:e,beforeInstallEvent:C,setBeforeInstallEvent:P}),!x&&j&&(0,a.jsx)(ep,{ref:k,disableSticky:F,"data-testid":"ad-content-wrapper",className:F?"":"z-[101]",children:(0,a.jsx)(ex,{isAdPushedDownRef:I,adWrapperRef:N,children:j})}),(0,a.jsxs)(eg,{ref:S,disableSticky:g,"data-testid":"site-chrome-header",children:[(0,a.jsx)(em,{firebaseOptions:r,locale:e,searchBaseUrl:t,hideHeaderAndNavigation:d,headerText:p,disableSearch:w,disableAccount:b}),(!d||c)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(E,{disable:v}),(0,a.jsx)(ep,{children:(0,a.jsx)("div",{className:"w-full shadow-header dark:shadow-none",children:y})})]})]})]}),(0,a.jsx)("div",{className:(0,f.cn)("h-full order-2",d?"pb-0":`pb-[${G}] md:pb-0`),children:A})]})}},92591:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getVideoIdAndPlaylistFromUrlPath:()=>l,useVideoPlaylist:()=>s});var a=r(9853),i=r(95543),n=r(56493);let l=e=>{let t=/\/[a-z]{2}\/video\/([^/?]+)(?:\?([^/]+))?$/.exec(e),{playlist:r=""}=(0,a.hA)(t?.[2]||"");return{videoId:t?.[1]||"",playListId:decodeURIComponent(r)}},s=({languageCode:e,queryParams:t={}})=>{let r=(0,i.useRouter)(),s=(0,i.usePathname)(),o=(0,i.useSearchParams)(),d=`${s}${o.toString()?`?${o.toString()}`:""}`,c=(0,n.useRef)(d),{videoId:u,playListId:h}=l(d);return{setPlaylistItem:(0,n.useCallback)(i=>{if(""!==i.videoId){let n=`/${e}/video/${i.videoId}`,l={...t};i.playListId&&(l.playlist=i.playListId);let s=(0,a.Tk)(l),o=n+(s?`?${s}`:"");o!==c.current&&(globalThis.pelmorex?.contviewed&&(globalThis.pelmorex.contviewed=void 0),r.push(o,{scroll:!1}),c.current=o)}},[e,t,r]),videoId:u,playListId:h}}},94556:(e,t,r)=>{"use strict";r.r(t),r.d(t,{usePlayerConfig:()=>l});var a=r(54473),i=r(56493),n=r(29420);let l=(e,t,r,l)=>{let[s,o]=(0,i.useState)();return(0,i.useEffect)(()=>{let i=!1,s=window.location.href,d=(0,n.bw)(e,s),c=(0,a.Hm)(e),u=r??(0,a.oo)(s),h=(0,a.uo)(s);return(async()=>{try{let e=await (0,a.eA)(t,c,h,u,d,l);i||o(e)}catch(e){i||o(void 0)}})(),()=>{i=!0}},[e,t,r,l]),{playerConfig:s}}},96188:(e,t,r)=>{"use strict";r.d(t,{LocationSearchInPage:()=>o});var a=r(63600),i=r(44273),n=r(20279),l=r(46402);let s=(0,a.AH)` 360 z-index: 99; 361 362 #InputTitle { 363 margin: 0; 364 } 365 366 #InputField { 367 background-color: transparent; 368 } 369 370 #SearchResultsWrapper { 371 max-height: 40vh; 372 ${l.DBs} 373 374 border: 1px solid ${e=>e.theme.textColor}; 375 border-top: none; 376 ${l.uPM} 377 378 z-index: 99; 379 position: absolute; 380 381 overflow-y: scroll; 382 scrollbar-width: thin; 383 } 384 385 .SearchResultCategory { 386 margin: 0; 387 } 388`,o=(0,a.Ay)(i.L)` 389 &, #SearchResultsWrapper { 390 @media ${n.j[n.i.SMALL]} { 391 width: ${e=>e.width?.[n.i.SMALL]??"100%"}; 392 } 393 @media ${n.j[n.i.MEDIUM]} { 394 width: ${e=>e.width?.[n.i.MEDIUM]??"66%"}; 395 } 396 @media ${n.j[n.i.LARGE]} { 397 width: ${e=>e.width?.[n.i.LARGE]??"50%"}; 398 } 399 } 400 401 ${s} 402`;(0,a.Ay)(i.L)` 403 &, #SearchResultsWrapper { 404 width: 100%; 405 } 406 407 ${s} 408`,(0,a.Ay)(i.L)` 409 #InputTitle { 410 margin: 1rem; 411 } 412 413 #InputBox { 414 margin: 1rem; 415 background-color: white; 416 } 417 418 #InputField { 419 background-color: white; 420 } 421`}}]);
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.