(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,477877,e=>{"use strict";var t=e.i(458201),n=e.i(538167),r=e.i(2248),i=e.i(652517),o=e.i(846871),a=e.i(302027);e.s(["EmbedReloadBridge",0,()=>{let[e,l]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{if(window.parent!==window)return(0,i.x)(e=>{l(!0),window.parent.postMessage({type:a.j,action:"reload"},"*"),window.setTimeout(e,a.V)})},[]),e)?(0,r.createPortal)((0,t.jsx)("div",{className:"z-overlay fixed inset-0 flex items-center justify-center bg-white/80","aria-busy":"true",children:(0,t.jsx)(o.f,{size:"lg",variant:"primary"})}),document.body):null}])},599827,e=>{"use strict";var t=e.i(538167),n=e.i(584169),r=e.i(528600),i=e.i(901351),o=e.i(652517);e.s(["PurchaseTokenRefresh",0,()=>{let{user:e}=(0,r.f)();return(0,t.useEffect)(()=>{if(!e.isUserLoggedIn)return;let t=(0,n.getCookie)("premium"),r=!1;if(t&&"string"==typeof t){let e=t.split(".")[1];if(e)try{let{expirationDateTime:t,iat:n,premium:i}=JSON.parse(atob(e))||{};if(i){let e=new Date(t);e.setDate(e.getDate()-1);let i=new Date,o=new Date(1e3*n);o.setDate(o.getDate()+1),r=i>=o&&i>=e}}catch(e){console.error("Failed to parse premium cookie JWT:",e)}}r&&(async()=>{try{let e,t,n=await i.f.purchase.getPurchaseToken();n?.premium&&(t=(e=new URLSearchParams(window.location.search)).get("re"),e.delete("re"),window.history.replaceState({},"",window.location.href.replace(`${0==[...e].length?"?":""}re=${t}`,"")),t||(e.set("re",Date.now().toString()),(0,o.Q)(()=>{window.location.search=e.toString()})))}catch(e){console.error("Failed to refresh purchase token:",e)}})()},[e.isUserLoggedIn]),null}])},71977,e=>{"use strict";var t=e.i(584169),n=e.i(282446),r=e.i(42318),i=e.i(889753),o=e.i(543512),a=e.i(901351),l=e.i(892504),s=e.i(528600);async function u(e){try{if((0,t.getCookie)("premium")||(0,l.r)())return null;let n=await a.f.purchase.getPurchaseToken();if((0,l.q)(),n?.premium){let t=o.j[n.product];t&&e(t)}return!0}catch(e){return console.error("Failed to get UPSX token:",e),!1}}e.s(["PurchaseTokenSync",0,()=>(!function(){let{user:e}=(0,s.f)(),t=(0,n.F)(i.x);(0,r.f)(e.isUserLoggedIn?"upsx/cookie/purchase":null,()=>u(t))}(),null)],71977)},987070,e=>{"use strict";var t=e.i(458201),n=e.i(538167),r=e.i(794120);let i=(0,e.i(695881).createLogger)("SWRProvider");e.s(["SWRProvider",0,({children:e,fallback:o={}})=>{let[a]=(0,n.useState)(()=>new Map);return(0,t.jsx)(r.K,{value:{provider:()=>a,fallback:o,onDiscarded:e=>i.warn("response discarded",{key:e})},children:e})}])},165341,e=>{"use strict";var t=e.i(538167),n=e.i(282446),r=e.i(584169),i=e.i(245943),o=e.i(889753),a=e.i(310847),l=e.i(528600),s=e.i(513513),u=e.i(810564),c=e.i(731672),d=e.i(90543);e.i(543512),(0,e.i(695881).createLogger)("upsxVerify");let f="upsx_stale_session";e.s(["StaleSessionLogout",0,()=>{let e=(0,c.f)({reload:!1,clearOnError:!0}),p=(0,c.f)(),g=(0,s.J)((0,n.y)(o.x)),m=(0,n.y)(o.Y)?.userID,w=(0,n.y)(a.n)?.userID,y=!!(m||w),{userIdError:h}=(0,l.f)(),v=h instanceof i.APIError&&401===h.code,S=(0,t.useRef)((0,d.R)()),I=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{if(I.current)return;let t=!!(0,r.getCookie)(f);t&&(0,r.deleteCookie)(f,{domain:(0,u.o)(window.location.hostname),path:"/"});let n=(0,d.R)()===S.current;(g?v&&!y&&n:t||y&&n)&&(I.current=!0,g?p():e())},[g,v,y,e,p]),null}],165341)},85617,e=>{"use strict";var t=e.i(538167),n=e.i(528600),r=e.i(584824),i=e.i(45846),o=e.i(436028),a=e.i(839315),l=e.i(87809),s=e.i(358233),u=e.i(521350),c=e.i(584169),d=e.i(313983);let f=async()=>{try{let e=await m();await S({upsxConsentResponse:e}),await w({upsxConsentResponse:e}),await I({upsxConsentResponse:e})}catch(e){console.log(e)}},p=({purpose:e,upsxConsentResponse:t})=>{let n=t?.find?.(t=>t?.purpose===e);return n?.consent},g=async({purpose:e,value:t,setByUser:n})=>{let r={purpose:e,consent:t,setByUser:n,consentDateTime:new Date().toISOString()};await i.f.consent.createUserConsent(r)},m=async()=>await i.f.consent.getUserConsent(),w=async({upsxConsentResponse:e})=>{let t=p({purpose:"sale-of-data",upsxConsentResponse:e}),{localSaleOfDataConsent:n,setByUser:r}=y();h({localSaleOfDataConsent:n,upsxSaleOfDataConsent:t}),v({upsxSaleOfDataConsent:t})&&await g({purpose:"sale-of-data",value:n,setByUser:r})},y=()=>{let e=window.DprSdk,t=e?.getUserConsent("sale-of-data"),n="boolean"==typeof t;return{localSaleOfDataConsent:n?t:e?.getRegimePurposeDefaultValue("sale-of-data")??!0,setByUser:n}},h=({localSaleOfDataConsent:e,upsxSaleOfDataConsent:t})=>{let n=window.DprSdk,r=window.navigator.globalPrivacyControl,i=(0,u.isLocalStorageAvailable)()?localStorage.getItem("saleOfDataConflict"):null,o=(0,l.o)()===s.Q.USA_CCPA&&!0===t&&!1===e&&!r;o&&!i?(0,u.isLocalStorageAvailable)()&&localStorage.setItem("saleOfDataConflict","true"):!o&&i&&(0,u.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),!1===t&&!0===e&&n?.setUserConsents({"sale-of-data":!1},{skipLogUserConsent:!0})},v=({upsxSaleOfDataConsent:e})=>{let t=!1,n=window.navigator.globalPrivacyControl;return("boolean"!=typeof e||n&&!0===e)&&(t=!0),t},S=async({upsxConsentResponse:e})=>{if(!s.D.includes((0,l.o)())||window.navigator.globalPrivacyControl||!(()=>{let e=(0,c.getCookie)("premium");if(!e||"string"!=typeof e)return!1;let t=e.split(".")[1];if(!t)return!1;try{let{expirationDateTime:e,firstTransactionDateTime:n}=JSON.parse(atob(t))||{};if(!n||!e)return!1;return new Date(e).getTime()t?.find?.(t=>t?.purpose===e)?.setByUser)({purpose:"sale-of-data",upsxConsentResponse:e});if(!0===n||!0===t&&!1===n)return;await g({purpose:"sale-of-data",value:!0,setByUser:!1});let r=e?.find?.(e=>e?.purpose==="sale-of-data");r?(r.consent=!0,r.setByUser=!1):Array.isArray(e)&&e.push({purpose:"sale-of-data",consent:!0,setByUser:!1,consentDateTime:new Date().toISOString(),consentID:"",userID:""})},I=async({upsxConsentResponse:e})=>{if((0,l.o)()!==s.Q.USA_CCPA)return;let t=p({purpose:d.d.SENSITIVE_DATA,upsxConsentResponse:e}),{localSensitiveDataConsent:n}=C();E({localSensitiveDataConsent:n,upsxSensitiveDataConsent:t}),function({upsxSensitiveDataConsent:e}){let t=!1;return"boolean"!=typeof e&&(t=!0),t}({upsxSensitiveDataConsent:t})&&await g({purpose:d.d.SENSITIVE_DATA,value:!0,setByUser:!1})},C=()=>{let{DprSdk:e}=window,t=e?.getUserConsent(d.d.SENSITIVE_DATA),n="boolean"==typeof t;return{localSensitiveDataConsent:n?t:e?.getRegimePurposeDefaultValue(d.d.SENSITIVE_DATA)??!0,setByUser:n}},E=async({localSensitiveDataConsent:e,upsxSensitiveDataConsent:t})=>{let{DprSdk:n}=window;"boolean"==typeof t&&t!==e&&n?.setUserConsents({[d.d.SENSITIVE_DATA]:t},{skipLogUserConsent:!0})};e.s(["UserAuthSync",0,()=>(!function(){let[e,c]=(0,t.useState)(!1),[d,f]=(0,t.useState)(null),p=(0,t.useRef)(!1),g=(0,l.o)(),{user:{isUserLoggedIn:m,userID:w,anonId:y}}=(0,n.f)(),h=(0,r.f)(),v=(0,t.useCallback)(async(e={})=>{if(w){c(!0),f(null);try{let t,n,r,l,u,c=await i.f.applications.getApplications(e.appId||"twc-web-registered",e.endpointId||w),d=c?.partners||[],f=(t=[],(n=(0,a.d)())&&t.push({name:"omniture",id:n}),(r=(0,a.S)({upsxId:w,anonId:y}))&&(t.push({name:"amplitude",id:r}),t.push({name:"airlytics",id:r})),y&&t.push({name:"installationID",id:y}),h&&t.push({name:"twcID",id:h}),(l=(0,a.u)())&&t.push({name:"mParticle",id:l}),!m&&l&&t.push({name:"braze",id:l}),m&&w&&(t.push({name:"zuora",id:w}),t.push({name:"braze",id:w})),u=(0,a.t)(),s.E.includes(g)&&u&&t.push({name:"sourcepoint",id:u}),t),v=(0,o.f)(d)?f.filter(e=>{let t=d.find(t=>t.name===e.name);return!t||t.id!==e.id}):f;return v.length&&(c?await i.f.applications.addPartner(e.appId||"twc-web-registered",e.endpointId||w,{partners:v,version:"1.0.0"}):await i.f.applications.createApplication({appId:e.appId||"twc-web-registered",endpointId:e.endpointId||w,partners:v,version:"1.0.0"})),p.current=!0,{success:!0,addedOrUpdated:v}}catch(t){let e=t instanceof Error?t:Error("Unknown error occurred");return f(e),{success:!1,error:e.message}}finally{c(!1),(0,u.isLocalStorageAvailable)()&&localStorage.setItem("PARTNERS_SYNC","false")}}},[w,y,m,h]);(0,t.useEffect)(()=>{if(!(0,u.isLocalStorageAvailable)())return;let e=localStorage.getItem("PARTNERS_SYNC"),t=e&&JSON.parse(e);m&&w&&t&&!p.current&&(async()=>{await v()})()},[w,m,v])}(),!function(){let e=(0,t.useRef)(!1),{user:{isUserLoggedIn:r}}=(0,n.f)();(0,t.useEffect)(()=>{r&&!e.current&&(f(),e.current=!0)},[r])}(),null)],85617)},157725,e=>{"use strict";var t=e.i(538167),n=e.i(282446),r=e.i(528600),i=e.i(776169),o=e.i(310847);let a=!1;var l=e.i(935251),s=e.i(343277),u=e.i(553329),c=e.i(145651),d=e.i(249725);e.s(["UserPreferenceSync",0,()=>(!function(){let{user:{isUserLoggedIn:e,userID:l},userProfile:s}=(0,r.f)(),{updatePreferences:u}=(0,i.f)(),c=(0,n.y)(o.o);(0,t.useEffect)(()=>{(async()=>{if(e&&s&&l&&!a){a=!0;try{c&&await u(c,!1)}catch(e){console.error("Failed to sync user preferences:",e),a=!1}}})()},[e,s,l,u,c])}(),!function(){let e=(0,l.useParams)(),r=e?.locale||"en-US",{favoriteLocations:i}=(0,c.f)(),{hasResolvedPlaceId:a,recordFeatureId:f}=(0,d.S)(),[p,g]=(0,n.q)(o.Q),m=(0,t.useRef)(!1),w=(0,t.useRef)(!1);(0,t.useEffect)(()=>()=>{w.current=!0},[]),(0,t.useEffect)(()=>{if(m.current||1===p)return;let e=function(e,t){let n=new Set,r=[];for(let i of e){let e=i.placeID;!e||n.has(e)||t(e)||(n.add(e),r.push(e))}return r}(i,a);if(0===e.length){i.length>0&&1!==p&&g(1);return}m.current=!0,(async()=>{let t=!0;for(let n=0;n{let{data:n,error:i}=await (0,u.f)((0,s.getLocationPointByPlaceId)(e,r));if(w.current)return;if(i){t=!1;return}let o=n?.location;f({placeId:e,geocode:o?`${o.latitude},${o.longitude}`:void 0},o?.featureId??null)}))}t&&!w.current&&g(1)})()},[i,a,f,p,g,r])}(),null)],157725)},186894,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function({html:e,height:t=null,width:n=null,children:o,dataNtpc:a=""}){return(0,i.useEffect)(()=>{a&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${a}`}})},[a]),(0,r.jsxs)(r.Fragment,{children:[o,e?(0,r.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=n?`${n}px`:"auto"},"data-ntpc":a,dangerouslySetInnerHTML:{__html:e}}):null]})};let r=e.r(458201),i=e.r(538167)},829445,(e,t,n)=>{"use strict";let r;var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.GoogleAnalytics=function(e){let{gaId:t,debugMode:n,dataLayerName:i="dataLayer",nonce:s}=e;return void 0===r&&(r=i),(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:` window['${i}'] = window['${i}'] || []; function gtag(){window['${i}'].push(arguments);} gtag('js', new Date()); gtag('config', '${t}' ${n?",{ 'debug_mode': true }":""});`},nonce:s}),(0,o.jsx)(l.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:s})]})},n.sendGAEvent=function(){void 0===r?console.warn("@next/third-parties: GA has not been initialized"):window[r]?window[r].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${r} does not exist`)};let o=e.r(458201),a=e.r(538167),l=i(e.r(526932))},163926,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.sendGTMEvent=void 0,n.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:n,dataLayerName:r="dataLayer",auth:s,preview:u,dataLayer:c,nonce:d}=e;l=r;let f=new URL(n||"https://www.googletagmanager.com/gtm.js");return t&&f.searchParams.set("id",t),"dataLayer"!==r&&f.searchParams.set("l",r),s&&f.searchParams.set("gtm_auth",s),u&&(f.searchParams.set("gtm_preview",u),f.searchParams.set("gtm_cookies_win","x")),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:` (function(w,l){ w[l]=w[l]||[]; w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); ${c?`w[l].push(${JSON.stringify(c)})`:""} })(window,'${r}');`},nonce:d}),(0,i.jsx)(a.default,{id:"_next-gtm","data-ntpc":"GTM",src:f.href,nonce:d})]})};let i=e.r(458201),o=e.r(538167),a=r(e.r(526932)),l="dataLayer";n.sendGTMEvent=(e,t)=>{let n=t||l;window[n]=window[n]||[],window[n].push(e)}},569579,e=>{"use strict";var t=e.i(458201),n=e.i(538167),r=e.i(282446),i=e.i(74492),o=e.i(695881),a=e.i(157112),l=e.i(245943),s=e.i(333350),u=e.i(889753),c=e.i(398444),d=e.i(74874),f=e.i(528600);let p=(0,o.createLogger)("useResolveIdentity");var g=e.i(935251),m=e.i(540223),w=e.i(608201),y=e.i(236593),h=e.i(800462),v=e.i(736677),S=e.i(220126),I=e.i(50727),C=e.i(694211),E=e.i(358273);let b=()=>{let e,t,i,o,a,l,s=(0,g.usePathname)(),u=(0,C.f)(),c=(0,r.F)(m.f),d=(e=(0,r.F)(w.f),t=(0,r.F)(y.f),i=(0,r.F)(h.f),o=(0,r.F)(v.f),a=(0,r.F)(S.f),l=(0,r.F)(I.f),(0,n.useCallback)(()=>{e(null),t(null),i(null),o(null),a(null),l(null)},[e,t,i,o,a,l])),f=(0,n.useRef)(u);return(0,n.useEffect)(()=>{if(!s)return;u!==f.current&&(f.current=u,d());let e=(0,E.N)();(!e||(0,E.C)())&&(0,E.H)(),(0,E.y)(e),(0,E.b)(s,u),c({pathname:s,restore:u,count:(0,E.N)()?.pageCount||1})},[s,u,c,d]),null};var T=e.i(199690),D=e.i(947118),_=e.i(221085),k=e.i(310847),P=e.i(382602),A=e.i(839315),L=e.i(688070),O=e.i(456215),N=e.i(647292),R=e.i(491240),M=e.i(915044),x=e.i(293163),U=e.i(737801),F=e.i(236433);let V=()=>{let e=(0,g.usePathname)(),t=(0,r.y)(F.f);return!!e&&t===e};var H=e.i(630986),G=e.i(128541);let j=["subscribe","subscribe-checkout","subscribe-stripe-checkout","subscribe-checkout-embed","subscribe-stripe-checkout-embed"],$=["subscribe-checkout","subscribe-stripe-checkout","subscribe-checkout-embed","subscribe-stripe-checkout-embed"],W={sourcePage:"direct",sourceModule:null,sourceElement:"direct",sourceUpsellPlacement:null};function B(e,t,n,r){return null!=e&&j.includes(e)?t||(null!=e&&$.includes(e)&&!n&&!r?W:null):null}var K=e.i(64412),J=e.i(797770),Y=e.i(866137),q=e.i(513539);let z=["article","video","liveblog"];var Q=e.i(521350);let Z="location-viewed-last-fired";var X=e.i(147732),ee=e.i(694897);let et=new Date().getTime(),en=(0,X.f)(()=>{eo()},250);s.default&&(window.addEventListener("scroll",en),(0,ee.q)(()=>{et=new Date().getTime(),ei=er(),eo()}));let er=()=>s.default&&window.innerHeight>0?window.innerHeight:0,ei=er();function eo(){window.scrollY>ei&&(ei=window.scrollY)}let ea='window.mParticle=window.mParticle||{EventType:{Unknown:0,Navigation:1,Location:2,Search:3,Transaction:4,UserContent:5,UserPreference:6,Social:7,Other:8}};window.mParticle.eCommerce={Cart:{}};window.mParticle.Identity={};window.mParticle.config=window.mParticle.config||{};window.mParticle.config.rq=window.mParticle.config.rq||[];window.mParticle.ready=function(t){window.mParticle.config.rq.push(t)};function e(e,o){return function(){if(o){e=o+"."+e}var t=Array.prototype.slice.call(arguments);t.unshift(e);window.mParticle.config.rq.push(t)}}var o=["endSession","logError","logEvent","logForm","logLink","logPageView","setSessionAttribute","setAppName","setAppVersion","setOptOut","setPosition","startNewSession","startTrackingLocation","stopTrackingLocation"];var n=["setCurrencyCode","logCheckout"];var i=["identify","login","logout","modify"];o.forEach(function(t){window.mParticle[t]=e(t)});n.forEach(function(t){window.mParticle.eCommerce[t]=e(t,"eCommerce")});i.forEach(function(t){window.mParticle.Identity[t]=e(t,"Identity")});',el='if(window.mParticle&&typeof window.mParticle.init==="function"){return}',es=`(function(){${el}${ea}})();`,eu=({scriptSrc:e})=>{let i=(0,r.y)(L.f);(0,n.useEffect)(()=>(0,_.x)(e),[e]),(()=>{let e=(0,r.y)(L.f),t=(0,r.y)(N.f),i="us2-fb061d169ced8343850163112c402d41",o=(0,D.f)(),a=(0,_.s)(),l=(0,n.useRef)(o),{user:{isUserLoggedIn:s,userID:u}}=(0,f.f)(),c=(0,r.y)(P.i),d=s?u:null,p=s?c:"",g=(0,r.y)(k.E),m=(({hasInvokedMPInit:e,apiKey:t,isUserLoggedIn:n,customerid:r,email:i,other:o})=>!e&&t&&o&&(n&&r&&i||!n))({hasInvokedMPInit:l.current,apiKey:i,isUserLoggedIn:s,customerid:d,email:p,other:g});(0,n.useEffect)(()=>{if(m){if("function"!=typeof window.mParticle?.init)return;l.current=!0;let n={isDevelopmentMode:!1,logLevel:"warning",identifyRequest:{userIdentities:{email:p,customerid:d,other:(0,R.f)(g)}},v1SecureServiceUrl:"mparticle.weather.com/webevents/v1/JS/",v2SecureServiceUrl:"mparticle.weather.com/webevents/v2/JS/",v3SecureServiceUrl:"mparticle.weather.com/webevents/v3/JS/",configUrl:"mparticle.weather.com/tags/JS/v2/",identityUrl:"mparticle.weather.com/identity/v1/",aliasUrl:"mparticle.weather.com/webevents/v1/identity/",dataPlan:{planId:"weather_web",planVersion:3},identityCallback:e=>{if(e?.getUser()){let t=e.getUser().getMPID();t&&(console.debug("MParticle: Identity callback triggered",t),(e=>{try{let t=(0,A.N)();if(t&&t!==e){let e=(0,E.N)();if(e&&Number.isFinite(e.sessionStartTime)&&Date.now()-e.sessionStartTime{let e=(0,D.f)(),t=(0,g.usePathname)(),i=(0,U.f)(),o=(0,H.f)(),a=(0,r.y)(w.f),l=(0,r.y)(y.f),[s,u]=(0,n.useState)(!1),c=(0,C.f)(),d=(0,n.useRef)(null),f=(0,n.useMemo)(()=>({author:o?.author||"",contentId:o?.contentId,premiumContent:o?.premiumContent,publishDate:o?.publishDate,provider:o?.provider,title:o?.title,nodeTypes:o?.nodeType,pageTemplate:o?.pageTemplate,iabContent:o?.iabContent??null,tagsAnalytics:o?.tagsAnalytics,tagsGeo:o?.tagsGeo,tagsKeyword:o?.tagsKeyword,tagsStorm:o?.tagsStorm,collection:o?.collection,entitlements:o?.entitlements,createdDate:o?.createdDate,...i,fromString:i.fromString??"",url:t?(0,x.Z)(t):"",sourcePage:a??"",sourceModule:l?.id??null,sourceModuleName:l?.name??null,...l?.modulePosition!=null&&{sourcePosition:l.modulePosition},sourceElement:l?.element??null}),[i,o,t,a,l]);return(0,n.useEffect)(()=>{(0,x.k)(f)&&!s&&u(!0)},[f,s]),(0,n.useCallback)(async()=>{if(f?.pageId==="article"&&e&&s&&void 0!==f.pageCount&&d.current!==c)try{window.mParticle?.logEvent?.("article-viewed",window.mParticle?.EventType?.Other,f),console.debug(`MParticle: Event "article-viewed" tracked - ${f?.pageId}`),d.current=c}catch(e){console.error('MParticle: Event "article-viewed" failed',e)}},[c,e,f,s])})();if((0,n.useEffect)(()=>{o()},[o]),(0,n.useEffect)(()=>{a()},[a]),i)return(0,t.jsx)("script",{id:"mparticle-webview-sdk",dangerouslySetInnerHTML:{__html:`(function(){${el}${ea}var r=document.createElement("script");r.type="text/javascript";r.async=true;r.src="${e}";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(r,c)})();`}});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ec,{}),(0,t.jsx)("script",{id:"mparticle-bootstrap",dangerouslySetInnerHTML:{__html:es}}),(0,t.jsx)("script",{src:e,async:!0})]})},ec=()=>{let e,t=(()=>{let e=(0,D.f)(),t=(0,U.f)(),[r,i]=(0,n.useState)(!1),o=(0,C.f)(),a=(0,n.useRef)(null),l=(0,n.useMemo)(()=>({...t}),[t]);return(0,n.useEffect)(()=>{(0,x.k)(l)&&!r&&i(!0)},[l,r]),(0,n.useCallback)(async()=>{if((0,E.g)()&&e&&r&&void 0!==l.pageCount&&a.current!==o)try{let e=(0,x.l)();window.mParticle?.logEvent?.("session-start",window.mParticle?.EventType?.Other,{...l,...e}),a.current=o,(0,E.v)(),(0,x.m)(e),console.debug(`MParticle: Event "session-start" tracked - sessionId: ${l.sessionId}`)}catch(e){console.error('MParticle: Event "session-start" failed',e)}},[o,e,l,r])})(),i=(()=>{let e=(0,D.f)(),t=V(),i=(0,C.f)(),o=(0,U.f)(),a=(0,H.f)(),l=o.pageId,u=s.default&&!["video","article"].includes(l)?window.location.href:"",[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(!1),p=(0,n.useRef)(void 0),[g,m]=(0,r.q)(h.f),[v,S]=(0,r.q)(w.f),[I,E]=(0,r.q)(y.f),{location:b}=(0,K.f)(),T=(0,r.y)(J.f),_=(0,r.y)(Y.f),k=B(l,(0,r.y)(G.f),v,I),P=(0,r.y)(q.D),A=(0,r.y)(q.M),L=(0,n.useMemo)(()=>{let e=z.includes(l)&&a?{...null!=a.title&&{title:a.title},...null!=a.author&&{author:a.author},...null!=a.contentId&&{contentId:a.contentId},...null!=a.collection&&{collection:a.collection},...null!=a.createdDate&&{createdDate:a.createdDate},...null!=a.entitlements&&{entitlements:a.entitlements},...null!=a.nodeType&&{nodeTypes:a.nodeType},...null!=a.iabContent&&{iabContent:a.iabContent},...null!=a.pageTemplate&&{pageTemplate:a.pageTemplate},...null!=a.premiumContent&&{premiumContent:a.premiumContent},...null!=a.provider&&{provider:a.provider},...null!=a.publishDate&&{publishDate:a.publishDate},...null!=a.tagsAnalytics&&{tagsAnalytics:a.tagsAnalytics},...null!=a.tagsGeo&&{tagsGeo:a.tagsGeo},...null!=a.tagsKeyword&&{tagsKeyword:a.tagsKeyword},...null!=a.tagsStorm&&{tagsStorm:a.tagsStorm},...null!=a.cmsUrl&&{cmsUrl:a.cmsUrl}}:{};return{...o,...b?.presentationName&&{wlocPresentationName:b?.presentationName},...g&&{fromSearchResult:g},sourcePage:k?.sourcePage??v??"",sourceModule:k?.sourceModule??I?.id??null,sourceModuleName:I?.name??null,...I?.position!=null&&{sourcePosition:I.position},...k===W&&{sourcePosition:null},sourceElement:k?.sourceElement??I?.element??null,...k?.sourceUpsellPlacement&&{sourceUpsellPlacement:k.sourceUpsellPlacement},adBlock:_,...T&&{adsMetricsUnitAndZone:T},...e,fullUrl:u,articleHeadline:"",layoutState:P,activeEvent:A}},[o,b,g,v,I,k,_,T,a,u,P,A]);return(0,n.useEffect)(()=>{(0,x.k)(L)&&!c&&d(!0)},[L,c]),(0,n.useCallback)(async()=>{let n=`${i}:${L.pageId}`;if(p.current!==n&&(f.current=!1,p.current=n),e&&t&&c&&void 0!==L.pageCount&&!f.current)try{window.mParticle?.logEvent?.("page-viewed",window.mParticle?.EventType?.Other,L),f.current=!0,g&&m(null),v&&S(null),I&&E(null),console.debug(`MParticle: Event "page-viewed" tracked - ${L.pageId}`)}catch(e){console.error('MParticle: Event "page-viewed" failed',e)}},[i,e,t,L,c,g,m,v,S,I,E])})(),o=(()=>{let{location:e}=(0,K.f)(),t=(0,D.f)(),r=(0,U.f)(),i=e?.geocode,o=i?.split?.(","),a=o?.[0]?parseFloat(o[0]):void 0,l=o?.[1]?parseFloat(o[1]):void 0,u=e?.ianaTimeZone,c="string"==typeof u&&u.length>0?u.slice(0,255):"Etc/UTC",d=r.sessionId,f=(0,n.useMemo)(()=>({...r,latitude:a,longitude:l,ianaTimeZone:c}),[r,a,l,c]);return(0,n.useCallback)(async()=>{if(!s.default||!t||!i||!d||!Number.isFinite(a)||!Number.isFinite(l)||!(0,x.k)(f))return;let n=(()=>{if(!(0,Q.isLocalStorageAvailable)())return null;try{let e=localStorage.getItem(Z);if(!e)return null;let t=JSON.parse(e);if("string"!=typeof t?.geocode||"string"!=typeof t?.sessionId)return null;return t}catch{return null}})();if(!n||n.geocode!==i||n.sessionId!==d)try{window.mParticle?.logEvent?.("location-viewed",window.mParticle?.EventType?.Other,f);if((0,Q.isLocalStorageAvailable)())try{localStorage.setItem(Z,JSON.stringify({geocode:i,sessionId:d}))}catch{}console.debug(`MParticle: Event "location-viewed" tracked - ${e?.displayName||"Unknown location"}`)}catch(e){console.error('MParticle: Event "location-viewed" failed',e)}},[t,f,i,d,a,l,e?.displayName])})();return e=(0,U.f)(),(0,n.useEffect)(()=>{let t=()=>{if(window.mParticle?.isInitialized?.()){let t,n,r,i=(new Date().getTime()-et)/1e3,o=(t=document.documentElement.scrollHeight,n=window.innerHeight,ei=ei||window.scrollY,(r=t===n?100:Math.round(ei/(t-n)*100))>100?r=100:r{window.removeEventListener("beforeunload",t),window.removeEventListener("blur",t)}},[e]),(0,n.useEffect)(()=>{t()},[t]),(0,n.useEffect)(()=>{i()},[i]),(0,n.useEffect)(()=>{o()},[o]),null};var ed=e.i(526932),ef=e.i(216809);let ep=["pba"];var eg=e.i(584824);let em=(0,o.createLogger)("AppsFlyer"),ew=()=>{let e,i,o,a,l,s=(0,r.y)(L.f),u=(0,ef.f)(),d=(e=(0,D.f)(),i=(0,r.y)(c.f),o=(0,eg.f)(),i?o??null:e&&window.mParticle?.Identity?.getCurrentUser?.()?.getMPID()||null),f="website-weather.com",[p,g]=(0,n.useState)(!1),m=(0,n.useRef)(null);return((0,n.useEffect)(()=>{},[f]),(0,n.useEffect)(()=>{if(!p||!d||m.current===d)return;let e=window.AF;e&&(e("pba","setCustomerUserId",d),m.current=d)},[p,d]),s||!u)?null:(0,t.jsx)(ed.default,{id:"appsflyer-websdk-bootstrap",strategy:"afterInteractive",onReady:()=>g(!0),onError:()=>em.error("AppsFlyer Web SDK failed to load"),children:(a=ep.join(","),l=JSON.stringify(f),`window.AppsFlyerSdkObject=${JSON.stringify("AF")};window.AF=window.AF||function(){(window.AF.q=window.AF.q||[]).push([Date.now()].concat(Array.prototype.slice.call(arguments)))};window.AF.id=window.AF.id||{pba:{webAppId:${l}}};window.AF.plugins={};var o=document.createElement("script"),p=document.getElementsByTagName("script")[0];o.async=1;o.src=${JSON.stringify(`https://websdk.appsflyersdk.com?st=${a}&af_id=`)}+encodeURIComponent(${l});p.parentNode.insertBefore(o,p);`)})};var ey=e.i(402525);let eh={oneLinkURL:T.default.env.NEXT_PUBLIC_APPSFLYER_ONELINK_URL||"https://weather.onelink.me/2902176432",webReferrer:"web_referrer",afParameters:{mediaSource:{keys:["utm_source","pid"],defaultValue:"organic_web"},campaign:{keys:["utm_campaign","c"],defaultValue:"direct_web"},adSet:{keys:["af_adset"]},channel:{keys:["af_channel","utm_medium"]},afSub1:{keys:["googleClickIdKey"]},afSub2:{keys:["fbclid"]},afSub3:{keys:["ttclid"]},afSub5:{keys:["gbraid","af_sub5"]},ad:{keys:["af_ad"]},deepLinkValue:{keys:["deep_link_value"]},afCustom:[{paramKey:"af_dp",keys:["af_dp"]},{paramKey:"af_ad_type",keys:["content"]},{paramKey:"is_retargeting",keys:["(none)"],defaultValue:"TRUE"},{paramKey:"clickid",keys:["clickid"]},{paramKey:"utm_source",keys:["utm_source"],defaultValue:"direct"},{paramKey:"utm_medium",keys:["utm_medium"]},{paramKey:"utm_campaign",keys:["utm_campaign"]},{paramKey:"utm_id",keys:["utm_id"]},{paramKey:"utm_term",keys:["utm_term"]},{paramKey:"utm_content",keys:["utm_content"]},{paramKey:"af_ss_ui",defaultValue:"true"}]}},ev=(0,o.createLogger)("AppsFlyerSmartScript"),eS=()=>{let e=(0,r.y)(L.f),i=(0,ef.f)(),o=(0,r.F)(ey.H),a=(0,n.useCallback)(()=>{let e=window.AF_SMART_SCRIPT;if(!e)return void ev.error("Smart Script loaded but window.AF_SMART_SCRIPT is missing");let t=e.generateOneLinkURL(eh);window.AF_SMART_SCRIPT_RESULT=t;let n=(0,ey.Z)(t);n?o(n):ev.info("Smart Script generated no URL; CTAs keep their fallback")},[o]);return e||!i?null:(0,t.jsx)(ed.default,{id:"appsflyer-onelink-smart-script",src:"/wx-next-web/static/vendor/@appsflyer/[email protected]/onelink-smart-script.min.js",strategy:"afterInteractive",onReady:a,onError:()=>ev.error("Smart Script failed to load")})};var eI=e.i(605781),eC=e.i(128713),eE=e.i(201542),eb=e.i(143778),eT=e.i(160317),eD=e.i(145651),e_=e.i(45587),ek=e.i(529603);let eP=[],eA=()=>{for(;eP[0]?.();)eP.shift()},eL=!1,eO=null,eN=e=>{let t=eL?eO:(0,A.u)()||(0,A.N)()||e.event.userId;return t&&0===eP.length?(e.event.userId=t,e):new Promise(n=>{eP.push(()=>{let r=t||(eL?eO:window.htevents?.user()?.id()??null);return!!r&&(e.event.userId=r,n(e),!0)}),eA()})},eR={name:"user-id-plugin",type:"before",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:eN,page:eN};var eM=e.i(24638),ex=e.i(963722),eU=e.i(313983);let eF={"daily-newsletters-1":"newsletter","marketing-emails-1":"marketing","weekly-brief":"weekly"},eV=e=>`[${e.map(e=>`'${e}'`).join(",")}]`;var eH=e.i(682142),eG=e.i(181848);let ej={latitude:null,longitude:null,country_code:null,region_code:null,city_name:null,dma_code:null,location_source:null},e$="htConsentStateTimestamps",eW=(e,t,n,r)=>{let i=n[e],o=i?.consented===t?i.timestamp:r;return n[e]={consented:t,timestamp:o},{regulation:"ccpa"===e?"CCPA":"GDPR",consented:t,timestamp_unixtime_ms:o}},eB=e=>{if(!e)return;let t=Number(e);return Number.isFinite(t)?t:void 0},eK="",eJ=e=>{if(!e.event.context)return e;e.event.context.ht_eventsource="weather_web",e.event.context.ht_environment="production";let t=(()=>{let e=(0,ex.u)(eU.d.SALE_OF_DATA),t=(0,ex.u)(eU.d.SENSITIVE_DATA);if(null===e||null===t)return;let n=(()=>{try{return JSON.parse(localStorage.getItem(e$)??"{}")}catch{return{}}})(),r=String(Date.now()),i={ccpa:{data_sale_opt_out:eW("ccpa",!e,n,r)},gdpr:{sensitivedata:eW("gdpr",t,n,r)}};try{localStorage.setItem(e$,JSON.stringify(n))}catch{}return i})();t&&(e.event.context.consent_state=t);let n=(()=>{let e;if(!(0,eG.b)())return{...ej};let t=(0,eH.f)();if(!t)return;let n={latitude:eB(t["TWC-GeoIP-Lat"]),longitude:eB(t["TWC-GeoIP-Long"]),country_code:t["TWC-GeoIP-Country"]||void 0,region_code:t["TWC-GeoIP-Region"]||void 0,city_name:(e=t["TWC-GeoIP-City"])?decodeURIComponent(e).toLowerCase().replace(/(^|[\s-])\p{L}/gu,e=>e.toUpperCase()):void 0,dma_code:eB(t["TWC-GeoIP-DMA"]),location_source:"ip_lookup"};return Object.keys(n).forEach(e=>{void 0===n[e]&&delete n[e]}),Object.keys(n).length>1?n:void 0})();return n&&(e.event.context.location=n),e.event.anonymousId&&(e.event.context.device={...e.event.context.device,id:e.event.anonymousId}),eK&&(e.event.context.device={...e.event.context.device,is_tablet:"tablet"===eK}),e},eY={name:"web-feed-context-plugin",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:eJ,page:eJ,identify:eJ},eq=e=>{let{properties:t}=e.event;return t&&!(0,eG.b)()&&(e.event.properties=(0,eG.m)(t,t.physicalCountry)),e},ez={name:"full-metrics-consent-plugin",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:eq,page:eq},eQ=(e,t)=>{if(!t){let t;(0,a._)("hightouchEventDropped",{event:e.event.event??e.event.type,type:e.event.type,reason:(t=e.failedDelivery()?.reason)instanceof Error?t.message:t&&"object"==typeof t&&"reason"in t?String(t.reason??""):t?String(t):""})}},eZ={name:"delivery-monitor-plugin",type:"utility",version:"1.0.0",isLoaded:()=>!0,load:(e,t)=>(t.queue.on("flush",eQ),Promise.resolve()),unload:(e,t)=>{t.queue.off("flush",eQ)}};var eX=e.i(126807),e0=e.i(695203);let e1=(0,o.createLogger)("useRegisterPlugins"),e2=(0,o.createLogger)("useIdentify"),e3=["isLoggedIn","isRegisteredUser","premium","premiumProductTier","Amplitude.device_id","$FirstName","$Gender","saleOfDataAuthorization","sensitiveDataAuthorization","premiumProductId","premiumExpiration","premiumStart","premiumFirstTransactionDate","premiumProductAutoRenew","premiumPrice","premiumProductName","premiumProductTerm","recentLocationsCount","favoriteLocationsCount","appVersion","installationId","twcId"];var e8=e.i(867059),e5=e.i(782937),e4=e.i(950771),e7=e.i(537989),e9=e.i(158662),e6=e.i(777638),te=e.i(727365),tt=e.i(896363),tn=e.i(924776),tr=e.i(122124);let ti=(0,o.createLogger)("useSessionStart"),to=["SUN","MON","TUE","WED","THU","FRI","SAT"],ta=new Set(["email-campaign","email-triggered","push-campaign","push-triggered","webpush-campaign","webpush-triggered","iam-campaign","iam-triggered"]),tl=new Set(["city","locality","neighborhood","airport","postal","poi","ski","geocode","locid"]),ts=new Set(["mapbox","twc-poi","twc-v3-loc-search","twc-v3-loc-point"]),tu=["cookiesEnabled","deviceClass","functionalTechnologies","geographicallyRelevantAds","gpcSignalOptOut","hourOfDay","locale","pageId","partner","physicalCountry","physicalState","priv","privProducts","regime","schemaVersion","sessionId","sessionStartTime","wlocCity","wlocCountry","wlocDMA","wlocState"],tc=(0,o.createLogger)("useLocationViewed"),td=["SUN","MON","TUE","WED","THU","FRI","SAT"],tf=new Set(["city","locality","neighborhood","airport","postal","poi","ski","geocode","locid"]),tp=new Set(["mapbox","twc-poi","twc-v3-loc-search","twc-v3-loc-point"]),tg="wx-ht-location-viewed-last-fired",tm=e=>Math.trunc(10*e)/10,tw=["cookiesEnabled","deviceClass","functionalTechnologies","geographicallyRelevantAds","gpcSignalOptOut","hourOfDay","locale","pageId","partner","physicalCountry","physicalState","priv","regime","schemaVersion","sessionId","sessionStartTime","siteMode","wlocCity","wlocCountry","wlocDMA","wlocState"];var ty=e.i(514285),th=e.i(673915),tv=e.i(604323);let tS=(0,o.createLogger)("usePageView"),tI=["SUN","MON","TUE","WED","THU","FRI","SAT"],tC=new Set(["email-campaign","email-triggered","push-campaign","push-triggered","webpush-campaign","webpush-triggered","iam-campaign","iam-triggered"]),tE=new Set(["city","locality","neighborhood","airport","postal","poi","ski","geocode","locid"]),tb=new Set(["mapbox","twc-poi","twc-v3-loc-search","twc-v3-loc-point"]),tT=["article","video","liveblog"],tD=["url","fullUrl","dayOfWeek","adsMetricsUnitAndZone","pageId","pageCount","schemaVersion","sessionId","sessionStartTime","locale","partner","deviceClass","wlocCity","wlocCountry","wlocState","siteMode","regime","cookiesEnabled","gpcSignalOptOut","functionalTechnologies","geographicallyRelevantAds","priv","hourOfDay","physicalCountry","physicalState","wlocDMA"],t_=null,tk=(0,o.createLogger)("usePageViewEnd"),tP=["SUN","MON","TUE","WED","THU","FRI","SAT"],tA=new Set(["city","locality","neighborhood","airport","postal","poi","ski","geocode","locid"]),tL=new Set(["mapbox","twc-poi","twc-v3-loc-search","twc-v3-loc-point"]),tO=["adLoaded","adRequested","adsMetricsUnitAndZone","cookiesEnabled","dayOfWeek","deviceClass","functionalTechnologies","geographicallyRelevantAds","gpcSignalOptOut","hourOfDay","locale","pageCount","pageId","partner","physicalCountry","physicalState","priv","regime","schemaVersion","sessionId","sessionStartTime","siteMode","url","wlocCity","wlocCountry","wlocDMA","wlocState"],tN=s.default?new Date().getTime():0,tR=()=>s.default&&window.innerHeight>0?window.innerHeight:0,tM=tR();function tx(){window.scrollY>tM&&(tM=window.scrollY)}s.default&&(window.addEventListener("scroll",tx),(0,ee.q)(()=>{tN=new Date().getTime(),tM=tR(),tx()}));let tU=null,tF=null,tV=new Set,tH=()=>tF,tG=e=>(tV.add(e),()=>{tV.delete(e)}),tj=(0,o.createLogger)("useArticleView"),t$=["SUN","MON","TUE","WED","THU","FRI","SAT"],tW=new Set(["city","locality","neighborhood","airport","postal","poi","ski","geocode","locid"]),tB=new Set(["mapbox","twc-poi","twc-v3-loc-search","twc-v3-loc-point"]),tK=["appVersion","author","contentId","cookiesEnabled","createdDate","dayOfWeek","deviceClass","functionalTechnologies","geographicallyRelevantAds","gpcSignalOptOut","hourOfDay","interestBasedAds","locale","pageId","pageType","partner","physicalCountry","physicalState","priv","publishDate","regime","sessionId","sessionStartTime","siteMode","url","wlocCity","wlocCountry","wlocDMA","wlocState"],tJ=null;var tY=e.i(553329),tq=e.i(361957);let tz=(0,o.createLogger)("useArticleViewWebview"),tQ=e=>{if(!e)return null;let t=new Date(e).getTime();return Number.isNaN(t)?null:t};var tZ=e.i(320209),tX=e.i(409628);let t0=(0,o.createLogger)("useArticleViewEnd"),t1=null,t2=new Set,t3=e=>{let t=t1;if(t1=null,!t||t2.has(t.payload.articleViewId))return;var n,r=t.payload.articleViewId;if(t2.add(r),t2.size>10){let e=t2.values().next().value;void 0!==e&&t2.delete(e)}n=t.payload.articleViewId,tU?.id===n&&(tU=null),tF?.id===n&&(tF=null,tV.forEach(e=>e()));let i=new Date;try{(0,eI.J)({...t.payload,articleExitReason:e,dayOfWeek:tX.f[i.getDay()]??"",hourOfDay:i.getHours()}),t0.info(`Hightouch: Event "article-view-end" tracked (${e})`)}catch(e){t0.error('Hightouch: Event "article-view-end" failed',{error:e})}},t8=(0,o.createLogger)("useSessionEnd"),t5="hightouch-session-end-snapshot",t4=e=>{(0,Q.isLocalStorageAvailable)()&&localStorage.setItem(t5,JSON.stringify(e))},t7=(0,o.createLogger)("useTrackPageMonetized"),t9=/top300|position1/i,t6=e=>e[0]?.slot?.getSlotElementId?.()??"";var ne=e.i(723469);let nt="data-track-string";(0,o.createLogger)("Hightouch");let nn=({scriptSrc:e})=>{if((0,r.y)(L.f))return(0,t.jsx)(ni,{});let n=T.default.env.NEXT_PUBLIC_HIGHTOUCH_API_HOST||"us-east-1.hightouch-events.com";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(nr,{}),(0,t.jsx)(ed.default,{id:"hightouch-sdk",strategy:"afterInteractive",children:`!function(){var e=window.htevents=window.htevents||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Hightouch snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(t){return function(){var n=Array.prototype.slice.call(arguments);return n.unshift(t),e.push(n),e}};for(var t=0;t{let e,t,i;return e=(0,r.F)(eC.f),(0,n.useEffect)(()=>{if(!s.default)return;let t=!1,n=()=>{window.htevents&&!t&&(t=!0,window.htevents.ready(()=>{window.htevents&&((0,eI.t)(window.htevents),e(!0))}))};return n(),window.addEventListener("htevents:loaded",n),()=>{window.removeEventListener("htevents:loaded",n)}},[e]),t=(0,r.y)(eC.f),(0,n.useEffect)(()=>{if(!s.default||t)return;let e=setTimeout(()=>(0,a._)("hightouchSdkNotLoaded"),1e4);return()=>clearTimeout(e)},[t]),(()=>{let e=(0,r.F)(e_.e),t=(0,r.F)(e_.C),{user:i,isUserIdLoading:o}=(0,f.f)(),{anonId:a,userID:l,isUserLoggedIn:u,isUserPremium:d,subscriptionTier:p}=i,g=(0,r.y)(P.I),m=(0,r.y)(P.P),w=(0,r.y)(P.i),y=(0,r.y)(eb.f),h=(0,r.y)(k.m),{recentLocations:v,favoriteLocations:S}=(0,eD.f)(),I=(0,r.y)(c.f),C=(0,eg.f)();(0,D.f)();let E=s.default?(0,A.u)():null,b=(0,eM.f)(),T=void 0!==b,_=I?C:E,L=(0,n.useMemo)(()=>{if(!s.default||!T||u&&!l&&o)return null;let e=function(e){if(!e)return{};let[,t]=e.split(".");if(!t)return{};let n=t.replace(/-/g,"+").replace(/_/g,"/");try{return JSON.parse(window.atob(n))}catch{return{}}}((0,eE.getCookie)("subscription")??""),t="2d384ed4459fe37bf05c101299c20aff70888100",n=u&&y?.userId===l?(y.subscriptions??[]).flatMap(e=>{let t=eF[e.subscriptionGroupName];return e.isSubscribed&&t?[t]:[]}):[];return{isLoggedIn:u,isRegisteredUser:u||h||!1,premium:d??!1,premiumProductTier:(0,eT.f)(p),...u&&l?{upsxId:l}:{},"Amplitude.device_id":a,$FirstName:g??"",$Gender:m??"",saleOfDataAuthorization:(0,ex.u)(eU.d.SALE_OF_DATA,b),sensitiveDataAuthorization:(0,ex.u)(eU.d.SENSITIVE_DATA,b),premiumProductId:e.productID??null,premiumExpiration:e.expirationDateTime??null,premiumStart:e.transactionDateTime??null,premiumFirstTransactionDate:e.firstTransactionDateTime??null,premiumProductAutoRenew:e.autoRenew??null,premiumPrice:e.price??null,premiumProductName:e.productName??null,premiumProductTerm:e.term??null,recentLocationsCount:v.length,favoriteLocationsCount:S.length,...u&&w?{registeredEmail:w}:{},appVersion:t.slice(0,10),buildVersion_ds:t,emailSubscriptions:eV(n),subscribedAlerts_ds:eV([]),experiment_ds:null,variant_ds:null,lotame_id:null,triggerIds_ds:null,triggersLastUpdated_ds:null,premiumBundle:null,routines:null,routinesCount:0,videoAutoplaySettings_ds:null,installationId:a,twcId:_??"",devUser:!1}},[u,h,d,p,l,a,g,m,w,y,v,S,_,b,T,o]);(0,n.useEffect)(()=>{L&&(e(L),(0,ek.k)(L),eL=I,eO=C,t(!0))},[L,I,C,e,t])})(),(()=>{let e=(0,r.y)(eC.f),[t,i]=(0,r.q)(eX.f),o=(0,r.y)(e0.f);(0,n.useEffect)(()=>{eK=o},[o]),(0,n.useEffect)(()=>{s.default&&e&&window.htevents&&(t||window.htevents.register(eR,ek.Y,eY,ez,eZ).then(()=>i(!0)).catch(e=>e1.error("Failed to register Hightouch plugins",e)))},[e,t,i])})(),(()=>{let e=(0,r.y)(c.f),t=(0,eg.f)(),i=(0,r.y)(eC.f),o=(0,r.y)(eX.f),a=(0,r.y)(e_.C),l=(0,r.y)(e_.e);(0,D.f)(),(0,n.useEffect)(()=>{(0,Q.isLocalStorageAvailable)()&&(localStorage.removeItem("wx-ht-identified"),localStorage.removeItem("wx-ht-identities"))},[]);let{user:u,isUserIdLoading:d}=(0,f.f)(),{anonId:p,userID:g,isUserLoggedIn:m}=u,w=`${p}|${g}`,y=(0,n.useRef)(null),[h,v]=(0,n.useState)(null),S=i&&a&&!d&&!(m&&!g);(0,n.useEffect)(()=>{if(!window.htevents||!p||!S)return;let e=!0;return Promise.resolve(window.htevents.user()).then(t=>{e&&window.htevents&&(t.traits()?.upsxId&&!g&&(window.htevents.reset(),y.current=null,e2.info("Hightouch: reset() called on logout")),t.anonymousId()!==p&&window.htevents.setAnonymousId(p),v({key:w}))}),()=>{e=!1}},[p,g,w,S]);let I=e?t:s.default?(0,A.u)():null,C=i&&o&&h?.key===w&&a&&!!l&&!!I&&e3.every(e=>void 0!==l[e])&&!d&&(l.upsxId??"")===g&&l.twcId===I&&(e||!!l.upsxId==!!(0,A.H)());(0,n.useEffect)(()=>{if(!window.htevents||!I||!C)return;let e={...l,...(0,ek.p)()},t=JSON.stringify({userId:I,traits:e});t!==y.current&&(y.current=t,(0,eI.W)(I,e),eA(),e2.info(`Hightouch: identify() called - userId: ${I}`))},[I,l,C,h])})(),(()=>{let e=(0,g.usePathname)(),t=(0,r.y)(e7.f),i=(0,r.y)(e4.f),o=(0,r.y)(e0.f),a=(0,r.y)(e9.f),{location:l,isLoading:u}=(0,K.f)(),c=(0,eM.f)(),d=(0,tn.f)()&&void 0!==c,f=(0,e8.f)(),p=V(),m=(0,C.f)(),w=(0,n.useRef)(null),y=(0,n.useMemo)(()=>{if(!s.default||!t)return null;let n=(0,eH.f)(),r=n?.["TWC-GeoIP-Country"]??(0,eE.getCookie)("twc-location-country"),u=n?.["TWC-GeoIP-Region"]??(0,eE.getCookie)("twc-location-region"),d=n?.["TWC-Privacy"]??(0,eE.getCookie)("twc-privacy"),p=window.DprSdk?.getGdprConsentOptInsString()??"",g=window.DprSdk?.getCcpaSaleOptInString()??"",m=window.navigator?.globalPrivacyControl??!1,w=(0,ex.u)(eU.d.FUNCTIONAL_TECHNOLOGY,c),y=(0,ex.u)(eU.d.GEOGRAPHICALLY_RELEVANT_ADVERTISING,c),h=(0,ex.u)(eU.d.SALE_OF_DATA,c),v=(0,ex.u)(eU.d.SENSITIVE_DATA,c),S=navigator?.cookieEnabled??!1,I=(0,eE.getCookie)("partner")||"",C=(0,e5.i)(I)??I,b=(0,E.N)(),T=b?.sessionId||"",D=new Date(b?.sessionStartTime||0).toISOString(),_=new Date,k=_.getHours(),P=to[_.getDay()]??"",A=t&&["article","video"].includes(t)?e?.split("/").slice(0,-1).join("/")??"":(0,tr.N)(e??""),L=document.referrer,{utmSource:O,utmMedium:N,utmCampaign:R,utmContent:M,utmTerm:x}=(0,e6.k)(),U=(0,te.f)(l?.type),F=l?.featureSource??null;return{pageId:t,schemaVersion:"nextgen",pageCount:f,sessionId:T,sessionStartTime:D,locale:i,partner:C,deviceClass:o,wlocCity:l?.city??null,wlocCountry:l?.countryCode??null,wlocState:l?.adminDistrictCode??null,wlocDMA:l?.dmaCd??null,wlocId:l?.placeId??null,wlocFeatureSource:null!=F&&ts.has(F)?F:void 0,wlocTags:l?.tags?.length?(0,tt.f)(l.tags):null,wlocType:null!==U&&tl.has(U)?U:void 0,wlocFeatureId:l?.featureId??null,siteMode:"normal",dayOfWeek:P,regime:d??"",cookiesEnabled:S,gpcSignalOptOut:m,functionalTechnologies:w,geographicallyRelevantAds:y,priv:p,privProducts:g,saleOfDataAuthorization:h,sensitiveDataAuthorization:v,interestBasedAds:c?.[eU.d.INTEREST_BASED_ADS]??null,hourOfDay:k,physicalCountry:r??"",physicalState:u??"",url:A,referrer:L,utmSource:O,utmMedium:null!==N&&ta.has(N)?N:null,utmCampaign:R,utmContent:M,utmTerm:x,campaign:(0,e6.s)(),tpcc:(0,e6.J)(),linkReferral:(0,e6.W)(),experimentJoinList:a,weatherMode:"normal",samsungVersion:(0,e6.L)(),appVersion:"2d384ed4459fe37bf05c101299c20aff70888100".slice(0,10)}},[f,t,i,o,l,e,a,c]),h=d&&void 0!==f&&p&&null!==y&&!u&&tu.every(e=>void 0!==y[e]);(0,n.useEffect)(()=>{if(y&&h&&(0,E.Y)()&&w.current!==m)try{(0,eI.g)(y),w.current=m,(0,E.D)(),ti.info(`Hightouch: Event "session-start" tracked - sessionId: ${y.sessionId}`)}catch(e){ti.error('Hightouch: Event "session-start" failed',{error:e})}},[y,h,m])})(),(()=>{let e=(0,g.usePathname)(),t=(0,r.y)(e4.f),i=(0,r.y)(e0.f),o=(0,r.y)(e9.f),{location:a}=(0,K.f)(),l=(0,eM.f)(),u=(0,tn.f)()&&void 0!==l,c=(0,n.useRef)(null),d=(0,n.useCallback)(e=>{let n=(0,eH.f)(),r=n?.["TWC-GeoIP-Country"]??(0,eE.getCookie)("twc-location-country"),l=n?.["TWC-GeoIP-Region"]??(0,eE.getCookie)("twc-location-region"),s=n?.["TWC-Privacy"]??(0,eE.getCookie)("twc-privacy"),u=(0,eE.getCookie)("partner")||"",c=(0,e5.i)(u)??u,d=new Date;return{sessionId:e.sessionId,sessionStartTime:new Date(e.sessionStartTime).toISOString(),duration:Math.max(0,Math.round((e.lastActiveTime-e.sessionStartTime)/1e3)),locale:t,deviceClass:i,partner:c,siteMode:"normal",dayOfWeek:tX.f[d.getDay()]??"",hourOfDay:d.getHours(),regime:s??"",cookiesEnabled:navigator?.cookieEnabled??!1,gpcSignalOptOut:window.navigator?.globalPrivacyControl??!1,priv:window.DprSdk?.getGdprConsentOptInsString()??"",referrer:document.referrer,campaign:(0,e6.s)(),experimentJoinList:o,weatherMode:"normal",physicalCountry:r??"",physicalState:l??"",wlocCity:a?.city??null,wlocCountry:a?.countryCode??null,wlocState:a?.adminDistrictCode??null,wlocDMA:a?.dmaCd??null,samsungVersion:(0,e6.L)(),appVersion:"2d384ed4459fe37bf05c101299c20aff70888100".slice(0,10)}},[t,i,o,a]),f=(0,n.useCallback)(()=>{if(!s.default||!u)return;let e=(0,E.N)();if(!e?.sessionId)return;let t=(()=>{if(!(0,Q.isLocalStorageAvailable)())return null;try{let e=JSON.parse(localStorage.getItem(t5)??"null");return e?.sessionId?e:null}catch{return null}})(),n=Date.now();if(t&&t.sessionId!==e.sessionId){if(c.current!==t.sessionId){c.current=t.sessionId;try{(0,eI.m)(d(t)),t8.info(`Hightouch: Event "session-end" tracked - sessionId: ${t.sessionId}`)}catch(e){t8.error('Hightouch: Event "session-end" failed',{error:e})}}t4({sessionId:e.sessionId,sessionStartTime:e.sessionStartTime,lastActiveTime:n});return}t&&(0,E.C)()||t4({sessionId:e.sessionId,sessionStartTime:e.sessionStartTime,lastActiveTime:n})},[u,d]);(0,n.useEffect)(()=>{f()},[f,e]),(0,n.useEffect)(()=>{if(!s.default)return;let e=()=>{"hidden"===document.visibilityState&&f()};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[f])})(),(()=>{let e=(0,g.usePathname)(),t=(0,r.y)(e7.f),i=!!t,o=(0,r.y)(e4.f),a=(0,r.y)(e0.f),l=(0,r.y)(J.f),{location:u,isLoading:c}=(0,K.f)(),d=(0,eM.f)(),f=(0,tn.f)()&&void 0!==d,p=(0,e8.f)(),m=(0,C.f)(),w=V(),y=(0,r.y)(th.f),h=(0,r.y)(tv.f),b=(0,r.y)(e9.f),T=(0,r.y)(q.D),D=(0,r.y)(q.M),[_,k]=(0,r.q)(v.f),[P,A]=(0,r.q)(S.f),[L,O]=(0,r.q)(I.f),N=B(t,(0,r.y)(G.f),_,P),R=(0,n.useMemo)(()=>{if(!s.default||!t||void 0===p)return null;let n=(0,eH.f)(),r=n?.["TWC-GeoIP-Country"]??(0,eE.getCookie)("twc-location-country"),c=n?.["TWC-GeoIP-Region"]??(0,eE.getCookie)("twc-location-region"),f=n?.["TWC-Privacy"]??(0,eE.getCookie)("twc-privacy"),g=window.DprSdk?.getGdprConsentOptInsString()??"",m=window.DprSdk?.getCcpaSaleOptInString()??"",w=window.navigator?.globalPrivacyControl??!1,v=(0,ex.u)(eU.d.FUNCTIONAL_TECHNOLOGY,d),S=(0,ex.u)(eU.d.GEOGRAPHICALLY_RELEVANT_ADVERTISING,d),I=(0,ex.u)(eU.d.SALE_OF_DATA,d),C=navigator?.cookieEnabled??!1,k=(0,eE.getCookie)("partner")||"",A=(0,e5.i)(k)??k,O=document.referrer,{utmSource:R,utmMedium:M,utmCampaign:x,utmContent:U,utmTerm:F}=(0,e6.k)(),V=(0,ex.u)(eU.d.SENSITIVE_DATA,d),H=(0,E.N)(),G=H?.sessionId||"",j=new Date(H?.sessionStartTime||0).toISOString(),$=new Date,W=$.getHours(),B=tI[$.getDay()]??"",K=i&&["article","video"].includes(t)?e?.split("/").slice(0,-1).join("/")??"":(0,tr.N)(e??""),J=i&&!["video","article"].includes(t)?window.location.href:"",Y=(0,te.f)(u?.type),q=u?.featureSource??null,z=tT.includes(t)?{author:h?.author??null,collection:h?.collection??null,contentId:h?.contentId??null,createdDate:h?.createdDate??null,entitlements:h?.entitlements??null,iabContent:h?.iabContent??void 0,nodeTypes:h?.nodeType??null,pageTemplate:h?.pageTemplate??null,premiumContent:h?.premiumContent!=null?String(h.premiumContent):null,provider:h?.provider??null,publishDate:h?.publishDate??null,tagsGeo:h?.tagsGeo??null,tagsKeyword:h?.tagsKeyword??null,tagsStorm:h?.tagsStorm??null}:{};return{url:K,fullUrl:J,dayOfWeek:B,adsMetricsUnitAndZone:l,pageId:t,pageCount:p,schemaVersion:"nextgen",sessionId:G,sessionStartTime:j,locale:o,partner:A,deviceClass:a,wlocCity:u?.city??null,wlocCountry:u?.countryCode??null,wlocState:u?.adminDistrictCode??null,siteMode:"normal",regime:f??"",cookiesEnabled:C,gpcSignalOptOut:w,functionalTechnologies:v,geographicallyRelevantAds:S,priv:g,privProducts:m,saleOfDataAuthorization:I,hourOfDay:W,physicalCountry:r??"",physicalState:c??"",wlocDMA:u?.dmaCd??null,wlocId:u?.placeId??null,wlocFeatureSource:null!=q&&tb.has(q)?q:void 0,wlocTags:u?.tags?.length?(0,tt.f)(u.tags):null,wlocType:null!==Y&&tE.has(Y)?Y:void 0,samsungVersion:(0,e6.L)(),appVersion:"2d384ed4459fe37bf05c101299c20aff70888100".slice(0,10),interestBasedAds:d?.[eU.d.INTEREST_BASED_ADS]??null,sensitiveDataAuthorization:V,referrer:O,fromString:y,fromSearchResult:L??null,utmSource:R,utmMedium:null!==M&&tC.has(M)?M:null,utmCampaign:x,utmContent:U,utmTerm:F,campaign:(0,e6.s)(),tpcc:(0,e6.J)(),linkReferral:(0,e6.W)(),experimentJoinList:b,weatherMode:"normal",layoutState:T??void 0,activeEvent:D,wlocPresentationName:u?.presentationName??null,wlocFeatureId:u?.featureId??null,sourcePage:N?.sourcePage??_??null,sourceModule:N?.sourceModule??P?.id??null,sourcePosition:P?.position!=null?String(P.position):null,sourceElement:N?.sourceElement??P?.element??null,...z}},[p,e,t,o,a,l,u,y,_,P,N,L,h,b,T,D,d]),M=f&&w&&null!==R&&!c&&i&&tD.every(e=>void 0!==R[e]);(0,n.useEffect)(()=>{let t=`${m}:${e}`;if(R&&M&&t_!==t&&!(t_?.startsWith(`${m}:`)&&(0,ty.g)(e))){(0,ty.T)();try{(0,eI.d)(R),t_=t,tS.info(`Hightouch: Event "page-viewed" tracked - ${e}`)}catch(e){tS.error('Hightouch: Event "page-viewed" failed',{error:e})}_&&k(null),P&&A(null),L&&O(null)}},[e,m,R,M,_,k,P,A,L,O])})(),(()=>{let e=(0,g.usePathname)(),t=(0,r.y)(e7.f),i=(0,r.y)(e4.f),o=(0,r.y)(e0.f),a=(0,r.y)(e9.f),{location:l,isLoading:u}=(0,K.f)(),c=(0,eM.f)(),d=(0,tn.f)()&&void 0!==c,f=V(),p=(0,n.useRef)(null),m=(0,e8.f)(),w=l?.geocode,y=(0,n.useMemo)(()=>{if(!s.default||void 0===m||!t||!w)return null;let[n,r]=w.split(","),u=Number(n),d=Number(r);if(!Number.isFinite(u)||!Number.isFinite(d))return null;let f=(0,eH.f)(),p=f?.["TWC-GeoIP-Country"]??(0,eE.getCookie)("twc-location-country"),g=f?.["TWC-GeoIP-Region"]??(0,eE.getCookie)("twc-location-region"),y=f?.["TWC-Privacy"]??(0,eE.getCookie)("twc-privacy"),h=window.DprSdk?.getGdprConsentOptInsString()??"",v=window.DprSdk?.getCcpaSaleOptInString()??"",S=window.navigator?.globalPrivacyControl??!1,I=(0,ex.u)(eU.d.FUNCTIONAL_TECHNOLOGY,c),C=(0,ex.u)(eU.d.GEOGRAPHICALLY_RELEVANT_ADVERTISING,c),b=(0,ex.u)(eU.d.SALE_OF_DATA,c),T=(0,ex.u)(eU.d.SENSITIVE_DATA,c),D=navigator?.cookieEnabled??!1,_=(0,eE.getCookie)("partner")||"",k=(0,e5.i)(_)??_,P=(0,E.N)(),A=P?.sessionId||"",L=new Date(P?.sessionStartTime||0).toISOString(),O=new Date,N=O.getHours(),R=td[O.getDay()]??"",M=["article","video"].includes(t)?e?.split("/").slice(0,-1).join("/")??"":(0,tr.N)(e??""),x=document.referrer,U=(0,te.f)(l?.type),F=l?.featureSource??null,V=l?.ianaTimeZone;return{pageId:t,schemaVersion:"nextgen",sessionId:A,sessionStartTime:L,locale:i,partner:k,deviceClass:o,latitude:tm(u),longitude:tm(d),ianaTimeZone:"string"==typeof V&&V.length>0?V.slice(0,255):"Etc/UTC",postalCode:l?.postalCode??void 0,type:l?.type??void 0,wlocCity:l?.city??null,wlocCountry:l?.countryCode??null,wlocState:l?.adminDistrictCode??null,wlocDMA:l?.dmaCd??null,wlocId:l?.placeId??null,wlocFeatureSource:null!=F&&tp.has(F)?F:void 0,wlocTags:l?.tags?.length?(0,tt.f)(l.tags):null,wlocType:null!==U&&tf.has(U)?U:void 0,wlocFeatureId:l?.featureId??null,siteMode:"normal",dayOfWeek:R,regime:y??"",cookiesEnabled:D,gpcSignalOptOut:S,functionalTechnologies:I,geographicallyRelevantAds:C,priv:h,privProducts:v,saleOfDataAuthorization:b,sensitiveDataAuthorization:T,interestBasedAds:c?.[eU.d.INTEREST_BASED_ADS]??null,hourOfDay:N,physicalCountry:p??"",physicalState:g??"",url:M,referrer:x,campaign:(0,e6.s)(),tpcc:(0,e6.J)(),linkReferral:(0,e6.W)(),experimentJoinList:a??null,weatherMode:"normal",samsungVersion:(0,e6.L)(),appVersion:"2d384ed4459fe37bf05c101299c20aff70888100".slice(0,10)}},[m,t,i,o,a,l,w,e,c]),h=d&&f&&null!==y&&!u&&tw.every(e=>void 0!==y[e]);(0,n.useEffect)(()=>{if(!y||!h||!w||!y.sessionId)return;let e=`${w}|${y.sessionId}`;if(p.current===e)return;let t=(()=>{if(!(0,Q.isLocalStorageAvailable)())return null;try{let e=localStorage.getItem(tg);if(!e)return null;let t=JSON.parse(e);if("string"!=typeof t?.geocode||"string"!=typeof t?.sessionId)return null;return t}catch{return null}})();if(t?.geocode===w&&t.sessionId===y.sessionId){p.current=e;return}(0,eI.L)(y),p.current=e;var n={geocode:w,sessionId:y.sessionId};if((0,Q.isLocalStorageAvailable)())try{localStorage.setItem(tg,JSON.stringify(n))}catch{}tc.info(`Hightouch: Event "location-viewed" tracked - ${l?.displayName??w}`)},[y,h,w,l?.displayName])})(),(()=>{let e=(0,g.usePathname)(),t=(0,r.y)(e7.f),i=!!t,o=(0,r.y)(e4.f),a=(0,r.y)(e0.f),l=(0,r.y)(J.f),{location:u,isLoading:c}=(0,K.f)(),d=(0,eM.f)(),f=(0,tn.f)()&&void 0!==d,p=(0,e8.f)(),m=(0,C.f)(),w=V(),y=(0,r.y)(th.f),h=(0,r.y)(e9.f),v=(0,n.useMemo)(()=>{if(!s.default||!t||void 0===p)return null;let n=(0,eH.f)(),r=n?.["TWC-GeoIP-Country"]??(0,eE.getCookie)("twc-location-country"),c=n?.["TWC-GeoIP-Region"]??(0,eE.getCookie)("twc-location-region"),f=n?.["TWC-Privacy"]??(0,eE.getCookie)("twc-privacy"),g=window.DprSdk?.getGdprConsentOptInsString()??"",m=window.DprSdk?.getCcpaSaleOptInString()??"",w=window.navigator?.globalPrivacyControl??!1,v=(0,ex.u)(eU.d.FUNCTIONAL_TECHNOLOGY,d),S=(0,ex.u)(eU.d.GEOGRAPHICALLY_RELEVANT_ADVERTISING,d),I=(0,ex.u)(eU.d.SALE_OF_DATA,d),C=(0,ex.u)(eU.d.SENSITIVE_DATA,d),b=navigator?.cookieEnabled??!1,T=(0,eE.getCookie)("partner")||"",D=(0,e5.i)(T)??T,_=(0,E.N)(),k=_?.sessionId||"",P=new Date(_?.sessionStartTime||0).toISOString(),A=new Date,L=A.getHours(),O=tP[A.getDay()]??"",N=i&&["article","video"].includes(t)?e?.split("/").slice(0,-1).join("/")??"":(0,tr.N)(e??""),R=document.referrer,M=window.location.search.replace(/^\?/,"")||null,x=(0,te.f)(u?.type),U=u?.featureSource??null;return{adLoaded:null,adRequested:null,adsMetricsUnitAndZone:l,url:N,dayOfWeek:O,pageId:t,pageCount:p,schemaVersion:"nextgen",sessionId:k,sessionStartTime:P,locale:o,partner:D,deviceClass:a,wlocCity:u?.city??null,wlocCountry:u?.countryCode??null,wlocState:u?.adminDistrictCode??null,wlocDMA:u?.dmaCd??null,wlocId:u?.placeId??null,wlocFeatureSource:null!=U&&tL.has(U)?U:void 0,wlocTags:u?.tags?.length?(0,tt.f)(u.tags):null,wlocType:null!==x&&tA.has(x)?x:void 0,wlocFeatureId:u?.featureId??null,siteMode:"normal",regime:f??"",cookiesEnabled:b,gpcSignalOptOut:w,functionalTechnologies:v,geographicallyRelevantAds:S,priv:g,privProducts:m,saleOfDataAuthorization:I,sensitiveDataAuthorization:C,interestBasedAds:d?.[eU.d.INTEREST_BASED_ADS]??null,referrer:R,pageQuery:M,fromString:y,campaign:(0,e6.s)(),tpcc:(0,e6.J)(),linkReferral:(0,e6.W)(),experimentJoinList:h,weatherMode:"normal",hourOfDay:L,physicalCountry:r??"",physicalState:c??"",samsungVersion:(0,e6.L)(),appVersion:"2d384ed4459fe37bf05c101299c20aff70888100".slice(0,10),timeOnPage:0}},[p,e,t,o,a,l,u,y,h,d]),S=f&&w&&null!==v&&!c&&i&&tO.every(e=>void 0!==v[e]),I=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!v||!S)return;let e=()=>{let e,t;if(I.current===m)return;I.current=m;let n=(new Date().getTime()-tN)/1e3,r=(e=document.documentElement.scrollHeight,e===(t=window.innerHeight)?100:Math.min(100,Math.max(0,Math.round(tM/(e-t)*100))));try{(0,eI.c)({...v,timeOnPage:n,scrollDepth:r}),tk.info(`Hightouch: Event "page-view-end" tracked - timeOnPage: ${n}`)}catch(e){tk.error('Hightouch: Event "page-view-end" failed',{error:e})}};return window.addEventListener("beforeunload",e),window.addEventListener("blur",e),()=>{window.removeEventListener("beforeunload",e),window.removeEventListener("blur",e)}},[v,S,m])})(),(()=>{let e=(0,g.usePathname)(),t=(0,r.y)(e7.f),i=(0,r.y)(e4.f),o=(0,r.y)(e0.f),a=(0,r.y)(tv.f),l=(0,r.y)(v.f),u=(0,r.y)(S.f),c=(0,r.y)(th.f),d=(0,r.y)(e9.f),{location:f,isLoading:p}=(0,K.f)(),m=(0,eM.f)(),w=(0,tn.f)()&&void 0!==m,y=V(),h=(0,e8.f)(),I=(0,C.f)(),b=(0,n.useMemo)(()=>{if(!s.default||void 0===h||"article"!==t&&"liveblog"!==t)return null;let n=(0,eH.f)(),r=n?.["TWC-GeoIP-Country"]??(0,eE.getCookie)("twc-location-country"),p=n?.["TWC-GeoIP-Region"]??(0,eE.getCookie)("twc-location-region"),g=n?.["TWC-Privacy"]??(0,eE.getCookie)("twc-privacy"),w=window.DprSdk?.getGdprConsentOptInsString()??"",y=window.DprSdk?.getCcpaSaleOptInString()??"",v=window.navigator?.globalPrivacyControl??!1,S=(0,ex.u)(eU.d.FUNCTIONAL_TECHNOLOGY,m),I=(0,ex.u)(eU.d.GEOGRAPHICALLY_RELEVANT_ADVERTISING,m),C=navigator?.cookieEnabled??!1,b=(0,eE.getCookie)("partner")||"",T=(0,e5.i)(b)??b,D=(0,E.N)(),_=D?.sessionId||"",k=new Date(D?.sessionStartTime||0).toISOString(),P=new Date,A=P.getHours(),L=t$[P.getDay()]??"",O=e?.split("/").slice(0,-1).join("/")??"",N=document.referrer,R=(0,te.f)(f?.type),M=f?.featureSource??null;return{articleViewId:e?(tU?.pathname!==e&&(tU={pathname:e,id:(()=>{try{return crypto.randomUUID()}catch{return`${Date.now()}-${Math.random().toString(36).slice(2)}`}})()}),tU.id):null,pageId:t,pageType:"liveblog"===t?"liveblog":"article",author:a?.author||"",contentId:a?.contentId??"",createdDate:a?.createdDate??"",publishDate:a?.publishDate??"",collection:a?.collection??null,entitlements:a?.entitlements??null,nodeTypes:a?.nodeType??null,pageTemplate:a?.pageTemplate??null,premiumContent:a?.premiumContent??null,provider:a?.provider??null,tagsGeo:a?.tagsGeo??null,tagsKeyword:a?.tagsKeyword??null,tagsStorm:a?.tagsStorm??null,sourcePage:l??null,sourceModule:u?.id??null,sourceElement:u?.element??null,sourcePosition:u?.modulePosition??null,sessionId:_,sessionStartTime:k,locale:i,partner:T,deviceClass:o,wlocCity:f?.city??null,wlocCountry:f?.countryCode??null,wlocState:f?.adminDistrictCode??null,wlocDMA:f?.dmaCd??null,wlocId:f?.placeId??null,wlocFeatureSource:null!=M&&tB.has(M)?M:void 0,wlocTags:f?.tags?.length?(0,tt.f)(f.tags):null,wlocType:null!==R&&tW.has(R)?R:void 0,wlocFeatureId:f?.featureId??null,siteMode:"normal",dayOfWeek:L,regime:g??"",cookiesEnabled:C,gpcSignalOptOut:v,functionalTechnologies:S,geographicallyRelevantAds:I,priv:w,hourOfDay:A,physicalCountry:r??"",physicalState:p??"",url:O,samsungVersion:(0,e6.L)(),appVersion:"2d384ed4459fe37bf05c101299c20aff70888100".slice(0,10),interestBasedAds:m?.[eU.d.INTEREST_BASED_ADS]??null,privProducts:y,referrer:N,fromString:c,schemaVersion:"nextgen",campaign:(0,e6.s)(),tpcc:(0,e6.J)(),linkReferral:(0,e6.W)(),experimentJoinList:d,weatherMode:"normal"}},[h,t,i,o,f,a,l,u,e,c,d,m]),T=w&&y&&null!==b&&!p&&tK.every(e=>void 0!==b[e]);(0,n.useEffect)(()=>{let t=`${I}:${e}`;if(b&&T&&tJ!==t)try{var n;(0,eI.K)(b),tJ=t,e&&b.articleViewId&&(n=b.articleViewId,tF={pathname:e,id:n},tV.forEach(e=>e())),tj.info(`Hightouch: Event "article-viewed" tracked - ${e}`)}catch(e){tj.error('Hightouch: Event "article-viewed" failed',{error:e})}},[e,I,b,T])})(),(()=>{let e=(0,g.usePathname)(),t=(0,r.y)(e7.f),i=(0,r.y)(e4.f),o=(0,r.y)(e0.f),a=(0,r.y)(tv.f),l=(0,r.y)(e9.f),{location:u}=(0,K.f)(),c=(0,eM.f)(),d=(0,tn.f)()&&void 0!==c,f=(0,n.useSyncExternalStore)(tG,tH,()=>null),p=(0,n.useMemo)(()=>{if(!s.default||!e||"article"!==t&&"liveblog"!==t||!a?.contentId||f?.pathname!==e)return null;let n=(0,eH.f)(),r=n?.["TWC-GeoIP-Country"]??(0,eE.getCookie)("twc-location-country"),d=n?.["TWC-GeoIP-Region"]??(0,eE.getCookie)("twc-location-region"),p=n?.["TWC-Privacy"]??(0,eE.getCookie)("twc-privacy"),g=window.DprSdk?.getGdprConsentOptInsString()??"",m=(0,eE.getCookie)("partner")||"",w=(0,E.N)(),y=new Date;return{articleViewId:f.id,contentId:a.contentId,pageId:t,url:e.split("/").slice(0,-1).join("/"),schemaVersion:"nextgen",locale:i,deviceClass:o,partner:(0,e5.i)(m)??m,sessionId:w?.sessionId||"",sessionStartTime:new Date(w?.sessionStartTime||0).toISOString(),siteMode:"normal",weatherMode:"normal",dayOfWeek:tX.f[y.getDay()]??"",hourOfDay:y.getHours(),regime:p??"",cookiesEnabled:navigator?.cookieEnabled??!1,gpcSignalOptOut:window.navigator?.globalPrivacyControl??!1,functionalTechnologies:(0,ex.u)(eU.d.FUNCTIONAL_TECHNOLOGY,c),geographicallyRelevantAds:(0,ex.u)(eU.d.GEOGRAPHICALLY_RELEVANT_ADVERTISING,c),interestBasedAds:c?.[eU.d.INTEREST_BASED_ADS]??null,priv:g,privProducts:window.DprSdk?.getCcpaSaleOptInString()??"",experimentJoinList:l,physicalCountry:r??"",physicalState:d??"",wlocCity:u?.city??null,wlocCountry:u?.countryCode??null,wlocState:u?.adminDistrictCode??null,wlocDMA:u?.dmaCd??null,appVersion:"2d384ed4459fe37bf05c101299c20aff70888100".slice(0,10)}},[e,f,t,a,i,o,l,u,c]);(0,n.useEffect)(()=>{t1&&t1.pathname!==e&&t3("navigated")},[e]),(0,n.useEffect)(()=>{d&&p&&e&&(t1={pathname:e,payload:p})},[d,p,e]),(0,n.useEffect)(()=>{if(!s.default)return;let e=()=>t3("dismissed");return window.addEventListener("beforeunload",e),window.addEventListener("pagehide",e),()=>{window.removeEventListener("beforeunload",e),window.removeEventListener("pagehide",e)}},[])})(),(()=>{let e=(0,r.y)(e7.f),t=(0,r.y)(e4.f),i=(0,r.y)(e0.f),o=(0,r.y)(J.f),a=(0,r.y)(th.f),l=(0,r.y)(e9.f),u=(0,g.usePathname)(),{location:c}=(0,K.f)(),d=(0,eM.f)(),f=(0,tn.f)()&&void 0!==d,p=(0,e8.f)(),m=(0,n.useCallback)((n,r)=>{let s=(0,eH.f)(),f=s?.["TWC-GeoIP-Country"]??(0,eE.getCookie)("twc-location-country"),p=s?.["TWC-GeoIP-Region"]??(0,eE.getCookie)("twc-location-region"),g=s?.["TWC-Privacy"]??(0,eE.getCookie)("twc-privacy"),m=window.DprSdk?.getGdprConsentOptInsString()??"",w=window.DprSdk?.getCcpaSaleOptInString()??"",y=(0,ex.u)(eU.d.SALE_OF_DATA),h=(0,eE.getCookie)("partner")||"",v=(0,e5.i)(h)??h,S=(0,E.N)(),I=new Date;return{adPosition:n,adsMetricsUnitAndZone:o,pageId:e??"",url:e&&["article","video"].includes(e)?u?.split("/").slice(0,-1).join("/")??"":(0,tr.N)(u??""),pageCount:r,schemaVersion:"nextgen",referrer:document.referrer,fromString:a,locale:t,deviceClass:i,partner:v,sessionId:S?.sessionId||"",sessionStartTime:new Date(S?.sessionStartTime||0).toISOString(),siteMode:"normal",dayOfWeek:tX.f[I.getDay()]??"",hourOfDay:I.getHours(),regime:g??"",cookiesEnabled:navigator?.cookieEnabled??!1,gpcSignalOptOut:window.navigator?.globalPrivacyControl??!1,functionalTechnologies:(0,ex.u)(eU.d.FUNCTIONAL_TECHNOLOGY),geographicallyRelevantAds:(0,ex.u)(eU.d.GEOGRAPHICALLY_RELEVANT_ADVERTISING),interestBasedAds:d?.[eU.d.INTEREST_BASED_ADS]??null,priv:m,privProducts:w,saleOfDataAuthorization:y,sensitiveDataAuthorization:(0,ex.u)(eU.d.SENSITIVE_DATA),campaign:(0,e6.s)(),tpcc:(0,e6.J)(),linkReferral:(0,e6.W)(),experimentJoinList:l,weatherMode:"normal",physicalCountry:f??"",physicalState:p??"",wlocCity:c?.city??null,wlocCountry:c?.countryCode??null,wlocState:c?.adminDistrictCode??null,wlocDMA:c?.dmaCd??null,samsungVersion:(0,e6.L)(),appVersion:"2d384ed4459fe37bf05c101299c20aff70888100".slice(0,10)}},[e,t,i,o,a,l,u,c,d]),w=(0,n.useRef)(m);w.current=m;let y=(0,n.useRef)(p);y.current=p;let h=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!s.default||!f||void 0===p||h.current)return;h.current=!0;let e=window;e.__HeliosQ=e.__HeliosQ||[],e.__HeliosQ.push(()=>{e.__Helios?.waitForEvent("SLOT_ON_LOAD",{filter:({args:e})=>t9.test(t6(e))}).then(({args:e})=>{(0,eI.b)(w.current(t6(e),y.current??p)),t7.info('Hightouch: Event "page-monetized" tracked')}).catch(e=>{t7.error('Hightouch: Event "page-monetized" failed',{error:e})})})},[f,p])})(),(0,tZ.f)(),i=(0,ne.f)(),(0,n.useEffect)(()=>{let e=e=>{if(!(e.target instanceof Element))return;let t=e.target.closest(`[${nt}]`)?.getAttribute(nt);t&&"false"!==t&&i(t)};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[i]),null},ni=()=>{let e,t,i,o,a,l,u,c,d,f,p;return e=(0,g.usePathname)(),t=(0,r.y)(e7.f),i=(0,r.y)(tv.f),o=(0,r.y)(L.f),a=(0,n.useMemo)(()=>{if(!s.default||!o||"article"!==t&&"liveblog"!==t)return null;try{return crypto.randomUUID()}catch{return`${Date.now()}-${Math.random().toString(36).slice(2)}`}},[o,t,e]),(l=(0,n.useRef)(a)).current=a,u=(0,n.useRef)(new Set),c=(0,n.useCallback)(async(e,t)=>{if(u.current.has(e))return;u.current.add(e);let{data:n,error:r}=await (0,tY.f)((0,tq.emit)("article-view-end",{articleViewId:e,endTime:Date.now(),articleExitReason:t}));r?tz.error('bridge: "article-view-end" failed',r):tz.info(`bridge: "article-view-end" ${n.status} (${t})`)},[]),d=(0,n.useRef)(null),f=(0,n.useRef)(null),p=(0,n.useRef)(e),(0,n.useEffect)(()=>{p.current!==e&&(p.current=e,d.current&&(c(d.current,"navigated"),d.current=null))},[e,c]),(0,n.useEffect)(()=>{if(!a||f.current===e)return;let t=i?.contentId;t&&(f.current=e,d.current=a,(async()=>{let{data:n,error:r}=await (0,tY.f)((0,tq.emit)("article-viewed",{articleViewId:a,startTime:Date.now(),contentId:t,collection:i?.collection??null,author:i?.author??null,provider:i?.provider??null,publishDate:tQ(i?.publishDate),createdDate:tQ(i?.createdDate),nodeType:i?.nodeType??null,pageTemplate:i?.pageTemplate??null,premiumContent:i?.premiumContent??null,entitlements:i?.entitlements??null,tagsKeyword:i?.tagsKeyword??null,tagsStorm:i?.tagsStorm??null,tagsGeo:i?.tagsGeo??null}));r?tz.error('bridge: "article-viewed" failed',r):tz.info(`bridge: "article-viewed" ${n.status} - ${e}`)})())},[a,e,i]),(0,n.useEffect)(()=>{if(!s.default||!o)return;let e=e=>{l.current&&c(l.current,e)};window.__twcArticleFlush=()=>e("dismissed");let t=()=>{"hidden"===document.visibilityState&&e("backgrounded")},n=()=>e("navigated");return document.addEventListener("visibilitychange",t),window.addEventListener("pagehide",n),()=>{document.removeEventListener("visibilitychange",t),window.removeEventListener("pagehide",n),delete window.__twcArticleFlush}},[o,c]),null};var no=e.i(691458);e.s(["Analytics",0,({scriptSrc:e,hightouchScriptSrc:o})=>{let g,m,w;return g=(0,r.F)(th.f),(0,n.useEffect)(()=>{let e=(0,eE.getCookie)("fromStr");e&&(g(String(e)),(0,eE.deleteCookie)("fromStr",{domain:".weather.com"}))},[]),m=(0,r.F)(Y.f),(0,n.useEffect)(()=>{let e=!1,t=null,n=null,r=null;return Promise.all([new Promise(e=>{(r=document.createElement("div")).id="ad-detector-bait",r.className="ad-banner ad-unit ad-placeholder",r.style.cssText="width:1px !important;height:1px !important;position:absolute;left:-9999px !important;top:-1000px !important;",document.body.appendChild(r),t=setTimeout(()=>{if(t=null,!r)return e(!1);let n=window.getComputedStyle(r),i=!document.body.contains(r)||null===r.offsetParent||"none"===n.display||"hidden"===n.visibility;r.remove(),r=null,e(i)},50)}),new Promise(e=>{n=setTimeout(()=>{n=null,e(!0)},3e3),fetch("https://securepubads.g.doubleclick.net/pagead/ppub_config",{method:"HEAD",mode:"no-cors"}).then(()=>{null!==n&&clearTimeout(n),n=null,e(!1)}).catch(()=>{null!==n&&clearTimeout(n),n=null,e(!0)})})]).then(([t,n])=>{e||m(t||n)}),()=>{e=!0,null!==t&&clearTimeout(t),null!==n&&clearTimeout(n),r?.remove(),r=null}},[m]),function(){let{user:{anonId:e,userID:t}}=(0,f.f)(),[o,g]=(0,r.q)(u.s),m=(0,r.y)(u.Y)?.userID,w=(0,r.y)(c.f),y=!o.twcID,h=o.installationID!==e,v=o.expiresAt?Date.parse(o.expiresAt):0/0,S=!Number.isFinite(v)||v{let t;if(!s.default||!e||!I||!w)return;let n=!1;return(async()=>{let{twcId:r,error:i}=await (0,d.f)(e);if(!n){if(!r){p.error("Failed to resolve identity",i),(0,a._)("twcIdResolveFailed",{status:i instanceof l.APIError?i.code??null:i?null:200,attempt:b+1}),(e=>{if(!e)return!1;if(!(e instanceof l.APIError)||void 0===e.code)return!0;let{code:t}=e;return 0===t||408===t||429===t||t>=500})(i)&&bE({key:e,count:b+1}),1e3*2**b*(.8+.4*Math.random())));return}g(r)}})(),()=>{n=!0,clearTimeout(t)}},[e,I,g,w,b]);let T=(0,n.useRef)(null);(0,n.useEffect)(()=>{t&&m&&m!==t&&T.current!==t&&(T.current=t,g(i.s))},[t,m,g]);let D=(0,n.useRef)(!1);(0,n.useEffect)(()=>{w||null===o.twcID||D.current||(D.current=!0,g(i.s))},[w,o.twcID,g]),o.twcID,o.hashedTwcID}(),w=(0,r.f)(),(0,n.useEffect)(()=>{let e=()=>{let e=w.get(no.n);e&&((0,ex.O)(e),w.set(no.a,!0))};return e(),w.sub(no.n,e)},[w]),(0,n.useEffect)(()=>{if(!window.DprSdk)return void w.set(no.a,!0);let e=window.setTimeout(()=>w.set(no.a,!0),3e3);return()=>window.clearTimeout(e)},[w]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b,{}),(0,t.jsx)(eu,{scriptSrc:e}),(0,t.jsx)(ew,{}),(0,t.jsx)(eS,{}),(0,t.jsx)(nn,{scriptSrc:o})]})}],569579)},572739,e=>{"use strict";var t=e.i(458201),n=e.i(526932),r=e.i(2248),i=e.i(282446),o=e.i(538167);e.i(87809);var a=e.i(358233),l=e.i(528600),s=e.i(691458);e.s(["default",0,function({regime:e,isUserLoggedIn:u}){let c=(0,i.f)(),{user:{userID:d},isUserIdLoading:f}=(0,l.f)();return(0,o.useEffect)(()=>{let e=window.top?.__twcResolveUserId;e&&(u?d?e(d):f||e(""):e(""))},[u,d,f]),a.E.includes(e)&&(0,r.preload)("https://cdn.privacy-mgmt.com/unified/wrapperMessagingWithoutDetection.js",{as:"script"}),(0,o.useEffect)(()=>{(async()=>{window?.DprSdk?.isInitialized&&(await window?.DprSdk.isInitialized,c.set(s.D,!0))})()},[c]),(0,o.useEffect)(()=>{let e=window.top,t=e?.DprSdk?.isUserConsentsInitialized;if(!e||!t)return;let n=!0,r=e=>c.set(s.n,{...e});return(async()=>{await t,n&&(e.__twcUserConsents&&r(e.__twcUserConsents),e.__twcOnUserConsents=r)})(),()=>{n=!1,delete e.__twcOnUserConsents}},[c]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{id:"dprsdk-script",src:"https://weather.com/api/v1/script/dprSdkScript.js",strategy:"beforeInteractive"}),(0,t.jsx)(n.default,{id:"dprsdk-init",strategy:"beforeInteractive",children:` if (window.top?.DprSdk) { var w = window.top; if (!w.__twcUserId) { w.__twcUserId = new Promise(function (r) { w.__twcResolveUserId = r; }); } var getRegisteredUserId = function () { return w.__twcUserId; }; async function initDprSdk() { try { await w.DprSdk.init({ getApplicationInfo: function () { return { id: 'weather.com', version: '2.0.0' }; }, getUserRegime: function () { return '${e}'; }, getUserId: getRegisteredUserId, getRegisteredUserId: getRegisteredUserId, getIsUserLoggedIn: function () { return ${u}; }, setUserConsents: function (consents) { w.__twcUserConsents = consents; if (w.__twcOnUserConsents) w.__twcOnUserConsents(consents); }, }); } catch (_error) { // do nothing. } } initDprSdk(); } `})]})}])},595315,e=>{"use strict";var t=e.i(538167),n=e.i(333350),r=e.i(742436),i=e.i(569014);let o=new Set;e.s(["default",0,function({env1:e}){let a=null!==(0,t.useContext)(r.ExperimentContext);return(0,t.useEffect)(()=>{if(n.default&&a)for(let t of(0,i.o)(e)){let e=(0,i.C)(t);if(o.has(e))continue;let n=()=>{let n=window.__wxExposureSink;!n||o.has(e)||(o.add(e),n(t))};window.mParticle?.isInitialized?.()?n():window.mParticle?.ready?.(n)}},[a,e]),null}])},792302,e=>{"use strict";var t=e.i(458201),n=e.i(289818),r=e.i(282446),i=e.i(5397),o=e.i(538167),a=e.i(26752),l=e.i(674339),s=e.i(935251),u=e.i(695881),c=e.i(609858);let d=(0,u.createLogger)("AtomDebugHydrationBoundaries"),f=({debugData:e})=>{let{updateSection:t}=(0,c.f)(),n=(0,s.usePathname)();return d.info("Initial props received",{hasDebugData:!!e,currentPath:n}),(0,a.f)([[l.f,e||{timestamp:new Date().toISOString()}]]),(0,o.useEffect)(()=>{d.lifecycle("Path changed",n);let r=sessionStorage.getItem("lastPath"),i=!r||r===n;d.info("Navigation type",i?"Direct load/refresh":"Client-side navigation"),t("route",n),i&&!e?t("meta",{dataState:"stale",lastConfirmedPath:r||null,currentPath:n,isDirectLoad:!0,timestamp:new Date().toISOString()}):(t("components",{}),e&&(d.info("Updating with new debug data for path",n),e.page&&t("page",e.page),e.match&&t("match",e.match),e.timestamp&&t("timestamp",e.timestamp),e.headers&&t("headers",e.headers),e.environment&&t("environment",e.environment),e.location&&t("location",{...e.location,source:"server-hydration",_updatedAt:new Date().toISOString()}),t("meta",{dataState:"fresh",lastConfirmedPath:n,currentPath:n,isDirectLoad:i,timestamp:new Date().toISOString()}))),sessionStorage.setItem("lastPath",n??"")},[n,e,t]),d.lifecycle("Hydration complete",{debugData:e,pathname:n}),null};var p=e.i(668969);let g=(0,p.createServerReference)("401f7684be8c80e3be84ad479d2c310d6708f76615",p.callServer,void 0,p.findSourceMapURL,"translateDebugDataAction");var m=e.i(64412);let w=(0,u.createLogger)("LocationCollector"),y=(0,u.createLogger)("DataCollector");function h({pageProps:e,userRoles:t}){let n=(0,s.usePathname)(),r=(0,s.useSearchParams)(),{updateSection:i}=(0,c.f)(),a=(0,o.useRef)(!1);!function(){let{updateSection:e}=(0,c.f)(),{location:t,isLoading:n}=(0,m.f)();(0,o.useEffect)(()=>{t&&!n&&(w.info("Location data updated",t.displayName),e("location",{...t,_observedFrom:"useLocation",_collectedBy:"LocationCollector",_updatedAt:new Date().toISOString()}))},[t,n,e])}(),(0,o.useEffect)(()=>{if(t&&t.length>0){let e=Array.isArray(t)?t:[];i("userRoles",e),y.info("DataCollector","User roles updated",e)}},[t,i]);let l=(0,o.useCallback)(async()=>{try{y.info("DataCollector","Collecting data for route:",{path:n,paramsCount:r?Array.from(r.keys()).length:0});let t={};r?.forEach((e,n)=>{t[n]=e}),y.lifecycle("DataCollector","Calling translateDebugDataAction");let o=await g({route:n??"",params:t,pageProps:e});o&&(y.info("DataCollector","Debug data received",{route:o.route,hasPage:!!o.page,hasMatch:!!o.match,hasHeaders:!!o.headers,hasEnvironment:!!o.environment}),o.route&&(i("route",o.route),y.info("DataCollector","Route updated",o.route)),o.page&&(i("page",o.page),y.info("DataCollector","Page data updated",{title:o.page.title,id:o.page.id}),i("meta",{dataState:"fresh",lastConfirmedPath:n,currentPath:n,isDirectLoad:!1,timestamp:new Date().toISOString()})),o.match&&(i("match",o.match),y.info("DataCollector","Match data updated",{hasMatch:!0,matchKeys:Object.keys(o.match||{})})),o.headers&&(i("headers",o.headers),y.info("DataCollector","Headers updated",{headerCount:Object.keys(o.headers||{}).length})),o.environment&&(i("environment",o.environment),y.info("DataCollector","Environment data updated",{envVarCount:Object.keys(o.environment||{}).length})),i("timestamp",new Date().toISOString()))}catch(e){y.error("DataCollector","Error collecting debug data:",e),i("errors",{dataCollection:{message:e.message,timestamp:new Date().toISOString()}})}},[n,r,e,i]);return(0,o.useEffect)(()=>{y.lifecycle("DataCollector","Setting up data collection for path",n),a.current||(a.current=!0);let e=setTimeout(()=>{l()},200);return()=>{clearTimeout(e),y.lifecycle("DataCollector","Cleanup for path",n)}},[l,n]),null}function v({children:e,pageProps:n}){return(0,t.jsxs)(r.g,{children:[(0,t.jsx)(f,{debugData:null}),(0,t.jsx)(h,{pageProps:n}),e]})}let S=(0,n.default)(()=>e.A(186044).then(e=>({default:e.FrontendAdminHeader})),{loadableGenerated:{modules:[451309]},ssr:!1,loading:()=>null});e.s(["AdminHeaderWrapper",0,function({children:e}){return(0,r.y)(i.f)?(0,t.jsxs)(v,{children:[(0,t.jsx)(S,{}),e]}):(0,t.jsx)(t.Fragment,{children:e})}],792302)},369769,e=>{"use strict";var t=e.i(458201),n=e.i(526932),r=e.i(538167),i=e.i(282446),o=e.i(959377),a=e.i(330871),l=e.i(528600),s=e.i(310847),u=e.i(64412),c=e.i(839315),d=e.i(584824),f=e.i(398444);let p=()=>{let{user:e}=(0,l.f)(),t=(0,i.y)(s.m),{location:n}=(0,u.f)(),o=(0,d.f)(),p=(0,i.y)(f.f),[g,m]=(0,r.useState)(null);(0,r.useEffect)(()=>{let e;if(p)return;(e=(0,c.u)())&&e!==g&&m(e);let t=setInterval(()=>{let e=(0,c.u)();e&&(m(e),clearInterval(t))},1e3);return()=>clearInterval(t)},[g,p]);let{latitude:w,longitude:y}=(e=>{if(!e)return{latitude:void 0,longitude:void 0};let[t,n]=e.split(",");return{latitude:t?parseFloat(t):void 0,longitude:n?parseFloat(n):void 0}})(n?.geocode);return(0,a.usePushlyProfile)({isPremium:e.isUserPremium,isUserLoggedIn:e.isUserLoggedIn,userHasLoggedInBefore:t??!1,locationData:n?{placeId:n.placeId,latitude:w,longitude:y,postalCode:n.postalCode,featureId:n.featureId}:void 0,upsUserId:e.userID||void 0,externalId:(p?o:g)||void 0,twcId:o||void 0}),null};var g=e.i(7150);let m="samsung_widget",w="en-US";e.s(["Pushly",0,({serviceWorkerPath:e,partner:a,locale:l="en-US"})=>{let[s,u]=(0,r.useState)(!1),c=(0,i.y)(g.f),d="XJe7TqRv7lQ0gyF5biuPnAchWgRhgAjeQc0h";return((0,o.useInitializeSdk)({domainKey:d||"",serviceWorkerPath:e,enabled:s&&a!==m&&l===w&&!!d&&!c}),a===m||l!==w)?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{src:`https://cdn.p-n.io/pushly-sdk.min.js?domain_key=${d}`,strategy:"afterInteractive",onLoad:()=>{console.log("Pushly SDK loaded"),u(!0)},onError:e=>{console.error("Failed to load Pushly SDK:",e)}}),(0,t.jsx)(p,{})]})}],369769)},231457,e=>{"use strict";let t=(0,e.i(144683).g)(!1);e.s(["f",0,t])},959377,e=>{"use strict";var t=e.i(538167),n=e.i(282446),r=e.i(231457);e.s(["useInitializeSdk",0,function(e){let{domainKey:i,serviceWorkerPath:o,enabled:a=!1}=e,[l,s]=(0,n.q)(r.f);return(0,t.useEffect)(()=>{if(a)try{window.PushlySDK=window.PushlySDK||[],window.pushly=window.pushly||function(...e){window.PushlySDK.push(e)},window.pushly("load",{domainKey:i,sw:o}),s(!0)}catch(e){console.error("Failed to initialize Pushly SDK:",e)}},[i,o,a,s]),{isInitialized:l}}])},330871,e=>{"use strict";var t=e.i(538167),n=e.i(282446),r=e.i(231457);function i(e){let{isPremium:t,isUserLoggedIn:n,userHasLoggedInBefore:r,locationData:i,upsUserId:o,twcId:a}=e;return{is_premium:t,is_registered_user:r||n,place_id:i?.placeId,twc_latitude:i?.latitude,twc_longitude:i?.longitude,twc_postal_code:i?.postalCode,twc_feature_id:i?.featureId,...n&&o&&{upsx_id:o},...a&&{twc_id:a}}}e.s(["usePushlyProfile",0,function(e){let o=(0,t.useRef)(!1),a=(0,t.useRef)(e),l=(0,n.y)(r.f);(0,t.useEffect)(()=>{a.current=e},[e]),(0,t.useEffect)(()=>{if(!l||!window.pushly||!e)return;let{externalId:t}=e,n=i(e);try{window.pushly("profile",n),t&&window.pushly("external_id",t),o.current||(o.current=!0,window.pushly("on_permission_allowed",()=>{let e=a.current;if(!e||!window.pushly)return;let t=i(e);window.pushly("profile",t),e.externalId&&window.pushly("external_id",e.externalId)}))}catch(e){console.error("Failed to set Pushly profile:",e)}},[e,l])}])},639524,e=>{"use strict";e.i(822016),e.S([807079,"Toaster,f"])},584824,e=>{"use strict";var t=e.i(282446),n=e.i(889753),r=e.i(310847),i=e.i(528600);e.s(["f",0,function(){let{user:{anonId:e,isUserLoggedIn:o}}=(0,i.f)(),{twcID:a,installationID:l}=(0,t.y)(n.s),s=(0,t.y)(n.Y)?.userID,u=(0,t.y)(r.n)?.userID;return!o&&(s||u)?null:l===e?a:null}])},361957,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.supportsEvent=n.isBridgeMode=void 0,n.emit=c;let i=e.r(695881),o=r(e.r(333350)),a=(0,i.createLogger)("webviewBridge"),l=o.default?window.__twcWebviewAnalytics:void 0;n.isBridgeMode=l?.mode==="native-bridge"&&!!l.bridge,n.supportsEvent=e=>Array.isArray(l?.bridge?.events)&&l.bridge.events.includes(e);let s=new Set(["accepted","unsupported","invalid","no-host"]),u=e=>e&&"object"==typeof e&&"status"in e&&s.has(e.status)?e:{status:"invalid",detail:"malformed reply"};async function c(e,t){if(!n.isBridgeMode)return{status:"no-host"};if(!(0,n.supportsEvent)(e))return a.info(`bridge: host does not support "${e}"`),{status:"unsupported",detail:"not in manifest"};let r={v:1,event:e,payload:t,clientTs:Date.now()};a.info(`bridge: sending "${e}"`);try{let e=window.webkit?.messageHandlers?.twcAnalyticsBridge;if(e)return u(await e.postMessage(r));let t=window.TwcAnalyticsBridge;if(t)return u(JSON.parse(t.post(JSON.stringify(r))));return{status:"no-host"}}catch(t){return a.error(`bridge: "${e}" failed`,t),{status:"invalid",detail:String(t)}}}}]);