(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,198050,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(533760),n=e.i(405341),o=e.i(829065);e.s(["CJUniversalTagScript",0,()=>{let[e,a]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=(0,n.getCjConfig)();e&&(0,o.isCjEligible)()&&a(e)},[]),e)?(0,t.jsx)(i.default,{id:"cj-site-page",strategy:"afterInteractive",children:`(function (w, d, src, enterpriseId) { w.cj = w.cj || {}; w.cj.sitePage = { enterpriseId: enterpriseId }; if (d.getElementById('cjapitag')) return; var tag = d.createElement('script'); var first = d.getElementsByTagName('script')[0]; tag.id = 'cjapitag'; tag.async = true; tag.src = src; if (first && first.parentNode) first.parentNode.insertBefore(tag, first); else d.body.appendChild(tag); })(window, document, ${JSON.stringify(e.tagSrc)}, ${JSON.stringify(e.enterpriseId)});`}):null}])},405341,829065,e=>{"use strict";e.s(["CJ_ACTION_ID_DIRECT_PURCHASE",0,521782,"CJ_ACTION_ID_TRIAL_SIGNUP",0,519532,"getCjConfig",0,()=>{let e=Number("1601099".trim()),t="1377327807670".trim();return Number.isInteger(e)&&!(et.US_REGIMES.includes((0,t.getRegime)())],829065)},560542,e=>{"use strict";var t=e.i(247865),r=e.i(293163),i=e.i(695881),n=e.i(553329),o=e.i(405341),a=e.i(829065);let s=(0,i.createLogger)("CommissionJunction");e.s(["useCjConversionTag",0,({shouldFire:e,orderId:i,amount:l,hasTrial:u})=>{let c=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!e||c.current||!i)return;let t=(0,o.getCjConfig)();t&&(0,a.isCjEligible)()&&(c.current=!0,(0,n.tryCatch)((async()=>{var e;let n,a,s;return e={orderId:i,amount:l,actionTrackerId:u?o.CJ_ACTION_ID_TRIAL_SIGNUP:o.CJ_ACTION_ID_DIRECT_PURCHASE,cjEventId:(0,r.getCjEvent)()},(n=window).cj=n.cj||{},n.cj.order={enterpriseId:t.enterpriseId,actionTrackerId:e.actionTrackerId,orderId:e.orderId,pageType:"conversionConfirmation",currency:"USD",amount:e.amount,...e.cjEventId?{cjeventOrder:e.cjEventId}:{}},document.getElementById("cjapitag")?.remove(),(a=document.createElement("script")).id="cjapitag",a.async=!0,a.src=t.tagSrc,s=document.getElementsByTagName("script")[0],void(s?.parentNode?s.parentNode.insertBefore(a,s):document.body.appendChild(a))})()).then(({error:e})=>{e&&s.error("conversion tag failed",{orderId:i,error:e})}))},[e,i,l,u])}],560542)},281468,e=>{"use strict";var t=e.i(288906),r=e.i(247865),i=e.i(725287);function n(){return false}function o(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function a(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(i.current)e.route&&i.current(e.route);else{let r=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=e.scriptSrc?e.scriptSrc:n()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let i=document.createElement("script");return i.src=r,i.defer=!0,i.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),i.dataset.sdkv="1.3.1",e.sampleRate&&(i.dataset.sampleRate=e.sampleRate.toString()),e.route&&(i.dataset.route=e.route),e.endpoint?i.dataset.endpoint=e.endpoint:e.basePath&&(i.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(i.dataset.dsn=e.dsn),n()&&!1===e.debug&&(i.dataset.debug="false"),i.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(i),{setRoute:e=>{i.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(i.current=r.setRoute)}},[e.route]),null}function s(e){let n=(()=>{let e=(0,i.useParams)(),t=(0,i.useSearchParams)()||new URLSearchParams,r=(0,i.usePathname)();if(!e)return null;let n=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!n)return r;let a=r;try{let e=Object.entries(n);for(let[t,r]of e)if(!Array.isArray(r)){let e=o(r);e.test(a)&&(a=a.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=o(r.join("/"));e.test(a)&&(a=a.replace(e,`/[...${t}]`))}return a}catch(e){return r}})();return r.default.createElement(a,{route:n,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(s,{...e}))}])},175897,e=>{"use strict";var t,r=e.i(288906),i={scriptHostname:("u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof r.default?"dpl_3sBxciVxZfq2LsmL9wXxrfVMvd3F":void 0},n=e.i(247865),o=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:r}){return(0,n.useEffect)(()=>(e&&o&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(i,e);let r=document.createElement("script");for(let[n,o]of(r.src=`${i.scriptHostname}/_next-live/feedback/feedback.js`,r.setAttribute("data-explicit-opt-in","true"),e.nonce&&r.setAttribute("nonce",e.nonce),Object.entries((i.ownerId&&i.projectId?{"data-owner-id":i.ownerId,"data-project-id":i.projectId,"data-branch":t??i.branch}:i.deploymentId?{"data-deployment-id":i.deploymentId}:void 0)??{})))o&&r.setAttribute(n,o);(document.head||document.documentElement).appendChild(r)}}({nonce:r}),o=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],175897)},147732,e=>{"use strict";e.s(["debounce",0,function(e,t,{signal:r,edges:i}={}){let n,o=null,a=null!=i&&i.includes("leading"),s=null==i||i.includes("trailing"),l=()=>{null!==o&&(e.apply(n,o),n=void 0,o=null)},u=null,c=()=>{null!=u&&clearTimeout(u),u=setTimeout(()=>{u=null,s&&l(),d()},t)},d=()=>{null!==u&&(clearTimeout(u),u=null),n=void 0,o=null},g=function(...e){if(r?.aborted)return;n=this,o=e;let t=null==u;c(),a&&t&&l()};return g.schedule=c,g.cancel=d,g.flush=()=>{l()},r?.addEventListener("abort",d,{once:!0}),g}])},232598,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={callServer:function(){return o.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let o=e.r(276247),a=e.r(788443),s=e.r(955011)},866137,723469,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["adBlockAtom",0,t],866137);var r=e.i(247865),i=e.i(725287),n=e.i(546446),o=e.i(540768),a=e.i(682142),s=e.i(782937),l=e.i(695881),u=e.i(333350),c=e.i(64412),d=e.i(950771),g=e.i(537989),f=e.i(695203),m=e.i(158662),p=e.i(358273),C=e.i(122124),w=e.i(777638),S=e.i(924776),A=e.i(409628),v=e.i(605781);let E=(0,l.createLogger)("useTrackString");e.s(["useTrackString",0,()=>{let e=(0,n.useAtomValue)(g.pageIdAtom),t=(0,n.useAtomValue)(d.pageLocaleAtom),l=(0,n.useAtomValue)(f.deviceClassAtom),h=(0,n.useAtomValue)(m.experimentJoinListAtom),I=(0,i.usePathname)(),{location:y}=(0,c.useLocation)(),b=(0,S.useIsHightouchReady)(),_=(0,r.useCallback)(r=>{let i=(0,a.getCICookie)(),n=i?.["TWC-GeoIP-Country"]??(0,o.getCookie)("twc-location-country"),u=i?.["TWC-GeoIP-Region"]??(0,o.getCookie)("twc-location-region"),c=i?.["TWC-Privacy"]??(0,o.getCookie)("twc-privacy"),d=window.DprSdk?.getGdprConsentOptInsString()??"",g=window.DprSdk?.getCcpaSaleOptInString()??"",f=window.navigator?.globalPrivacyControl??!1,m=d?.includes("functional-technology")??!1,S=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,v=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,E=String(window.DprSdk?.getUserConsent("sale-of-data")!==!1),b=String(window.DprSdk?.getUserConsent("sensitive-data")!==!1),_=navigator?.cookieEnabled??!1,k=(0,o.getCookie)("partner")||"",T=(0,s.getPartnerByPattern)(k)??k,P=(0,p.getMetricsSession)(),R=P?.sessionId||"",L=new Date(P?.sessionStartTime||0).toISOString(),O=new Date,D=O.getHours(),N=A.WEEK_DAYS[O.getDay()]??"",U="article"===e||"video"===e?(0,C.stripLastPartOfSlug)(I??""):(0,C.getAnonymizedPath)(I??"");return{trackString:r,pageId:e??"",schemaVersion:"nextgen",url:U,referrer:document.referrer,locale:t,deviceClass:l,partner:T,sessionId:R,sessionStartTime:L,siteMode:"normal",dayOfWeek:N,hourOfDay:D,regime:c??"",cookiesEnabled:_,gpcSignalOptOut:f,functionalTechnologies:m,geographicallyRelevantAds:S,interestBasedAds:v,priv:d,privProducts:g,saleOfData:E,saleOfDataAuthorization:E,sensitiveDataAuthorization:b,campaign:(0,w.getCampaign)(),experimentJoinList:h,weatherMode:"normal",physicalCountry:n??"",physicalState:u??"",wlocCity:y?.city??null,wlocCountry:y?.countryCode??null,wlocState:y?.adminDistrictCode??null,wlocDMA:y?.dmaCd??null,samsungVersion:(0,w.getSamsungVersion)(),appVersion:"85dee9ff4fc616ff898a900e27b8983226c234e0".slice(0,10)}},[e,t,l,h,I,y]);return(0,r.useCallback)(e=>{if(u.default&&e){if(!b)return void E.warn('Hightouch: Event "track-string" skipped - SDK not ready');try{(0,v.trackTrackString)(_(e)),E.info('Hightouch: Event "track-string" tracked',{trackString:e})}catch(e){E.error('Hightouch: Event "track-string" failed',{error:e})}}},[b,_])}],723469)},800462,50727,e=>{"use strict";var t=e.i(284007);let r=(0,t.atomWithStorage)("wx-from-search-result",null);e.s(["fromSearchResultAtom",0,r],800462);let i=(0,t.atomWithStorage)("wx-ht-from-search-result",null);e.s(["fromSearchResultAtom",0,i],50727)},128541,e=>{"use strict";var t=e.i(284007);let r=(0,t.createJSONStorage)(()=>sessionStorage),i=(0,t.atomWithStorage)("wx-purchase-source-attribution",null,r);e.s(["purchaseSourceAttributionAtom",0,i])},647292,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["webViewPlatformAtom",0,t])},320209,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(725287),i=e.i(546446),n=e.i(540768),o=e.i(682142),a=e.i(782937),s=e.i(695881),l=e.i(333350),u=e.i(64412),c=e.i(950771),d=e.i(537989),g=e.i(695203),f=e.i(158662),m=e.i(358273),p=e.i(122124),C=e.i(777638),w=e.i(924776),S=e.i(409628),A=e.i(605781);let v=(0,s.createLogger)("useTrackAssetViewed"),E=[],h=null;function I(e){try{(0,A.trackAssetViewed)(e),v.info(`Hightouch: Event "asset-viewed" tracked - ${e.contentId}`)}catch(e){v.error('Hightouch: Event "asset-viewed" failed',e)}}e.s(["trackHightouchAssetViewed",0,function(e){try{h?.(e)}catch(e){v.error('Hightouch: Event "asset-viewed" failed',e)}},"useRegisterAssetViewedTracker",0,()=>{let e=(()=>{let e=(0,r.usePathname)(),s=(0,i.useAtomValue)(d.pageIdAtom),A=(0,i.useAtomValue)(c.pageLocaleAtom),v=(0,i.useAtomValue)(g.deviceClassAtom),h=(0,i.useAtomValue)(f.experimentJoinListAtom),{location:y}=(0,u.useLocation)(),b=(0,w.useIsHightouchReady)(),_=(0,t.useCallback)(({moduleId:t,contentId:r,assetMediaType:i,title:l,pos:u,tagsKeyword:c})=>{let d=(0,o.getCICookie)(),g=d?.["TWC-GeoIP-Country"]??(0,n.getCookie)("twc-location-country"),f=d?.["TWC-GeoIP-Region"]??(0,n.getCookie)("twc-location-region"),w=d?.["TWC-Privacy"]??(0,n.getCookie)("twc-privacy"),E=window.DprSdk?.getGdprConsentOptInsString()??"",I=window.DprSdk?.getCcpaSaleOptInString()??"",b=window.navigator?.globalPrivacyControl??!1,_=E?.includes("functional-technology")??!1,k=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,T=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,P=navigator?.cookieEnabled??!1,R=(0,n.getCookie)("partner")||"",L=(0,a.getPartnerByPattern)(R)??R,O=(0,m.getMetricsSession)(),D=O?.sessionId||"",N=new Date(O?.sessionStartTime||0).toISOString(),U=new Date,V=U.getHours(),j=S.WEEK_DAYS[U.getDay()]??"",M="article"===s||"video"===s?(0,p.stripLastPartOfSlug)(e??""):(0,p.getAnonymizedPath)(e??"");return{moduleId:t,contentId:r,assetMediaType:i,title:l,pos:String(u),tagsKeyword:c??null,pageId:s??"",url:M,referrer:document.referrer,locale:A,deviceClass:v,partner:L,sessionId:D,sessionStartTime:N,siteMode:"normal",dayOfWeek:j,hourOfDay:V,regime:w??"",cookiesEnabled:P,gpcSignalOptOut:b,functionalTechnologies:_,geographicallyRelevantAds:k,interestBasedAds:T,priv:E,privProducts:I,campaign:(0,C.getCampaign)(),experimentJoinList:h,weatherMode:"normal",physicalCountry:g??"",physicalState:f??"",wlocCity:y?.city??null,wlocCountry:y?.countryCode??null,wlocState:y?.adminDistrictCode??null,wlocDMA:y?.dmaCd??null,samsungVersion:(0,C.getSamsungVersion)(),appVersion:"85dee9ff4fc616ff898a900e27b8983226c234e0".slice(0,10)}},[e,s,A,v,h,y]);return(0,t.useEffect)(()=>{if(!b||0===E.length)return;let e=E;E=[],e.forEach(I)},[b]),(0,t.useCallback)(e=>{if(!l.default)return;let t=_(e);b?I(t):E.push(t)},[b,_])})();(0,t.useEffect)(()=>(h=e,()=>{h===e&&(h=null)}),[e])}])},915044,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(947118),i=e.i(546446),n=e.i(293163),o=e.i(160317),a=e.i(382602),s=e.i(540768),l=e.i(310847),u=e.i(333350),c=e.i(528600);e.s(["useUserAttributes",0,()=>{let e=(0,r.useIsInitialized)(),{user:{isUserLoggedIn:d,isUserPremium:g,subscriptionTier:f}}=(0,c.useUser)(),[m,p]=(0,t.useState)(!1),[C,w]=(0,t.useState)(!1),S=g??!1,A=(0,o.getSubscriptionTierKey)(f),v=(0,i.useAtomValue)(a.userFirstNameAtom),E=(0,i.useAtomValue)(a.userGenderAtom),h=(0,i.useAtomValue)(l.wxuUserAnonymousIdAtom),I=(0,i.useAtomValue)(l.userHasLoggedInBeforeAtom),y=u.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,b=u.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,_=(0,s.getCookie)("subscription")??"",{productID:k=null,expirationDateTime:T=null,transactionDateTime:P=null,firstTransactionDateTime:R=null,autoRenew:L=null,price:O=null,productName:D=null}=(0,n.jwtDecoder)(_)||{},N=(0,t.useMemo)(()=>({premium:S,premiumProductTier:A,premiumExpiration:T,premiumStart:P,premiumFirstTransactionDate:R,premiumProductId:k,premiumProductAutoRenew:L,premiumPrice:O,premiumProductName:D,isRegisteredUser:d||I||!1,isLoggedIn:d,"Amplitude.device_id":h,$Gender:E,$FirstName:v,saleOfDataAuthorization:y,sensitiveDataAuthorization:b,devUser:!1}),[S,A,T,P,R,k,L,O,D,h,d,I,v,E,y,b]);(0,t.useEffect)(()=>{let{$FirstName:e,$Gender:t,...r}=N;(0,n.areObjectValuesDefined)(r)&&!m&&p(!0)},[N,m]);let U=(0,t.useCallback)(()=>{for(let e in N)void 0===N[e]&&delete N[e];if(e&&m&&!C){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(N),w(!0),console.debug("MParticle: User attributes set - ",N)}},[e,N,m,C]);return{userAttributes:N,setUserAttribute:(0,t.useCallback)((t,r)=>{if(!e)return void console.warn("MParticle is not initialized");let i=window.mParticle?.Identity?.getCurrentUser?.();i?(i.setUserAttribute(t,r),console.debug(`MParticle: User attribute set - ${t}`)):console.warn("MParticle: No current user")},[e]),setUserAttributes:U,removeUserAttribute:(0,t.useCallback)(t=>{if(!e)return void console.warn("MParticle is not initialized");let r=window.mParticle?.Identity?.getCurrentUser?.();r?(r.removeUserAttribute(t),console.debug(`MParticle: User attribute removed - ${t}`)):console.warn("MParticle: No current user")},[e])}}])},456215,e=>{"use strict";e.s(["isSnowCastWebView",0,function(e){return"snowcast"===e||e.startsWith("snowcast-")},"isWebViewIos",0,function(e){return"ios"===e||e.endsWith("-ios")}])},313983,e=>{"use strict";var t,r=((t={}).ESSENTIAL_TECHNOLOGY="essential-technology",t.FUNCTIONAL_TECHNOLOGY="functional-technology",t.GEOGRAPHICALLY_RELEVANT_ADVERTISING="geographically-relevant-advertising",t.INTERNATIONAL_TRANSFER="international-transfer",t.SALE_OF_DATA="sale-of-data",t.SENSITIVE_DATA="sensitive-data",t.SELECT_PERSONALISED_CONTENT="Select personalised content",t.SELECT_PERSONALISED_ADS="Select personalised ads",t.SELECT_BASIC_ADS="Select basic ads",t.CREATE_A_PERSONALISED_ADS_PROFILE="Create a personalised ads profile",t.CREATE_A_PERSONALISED_CONTENT_PROFILE="Create a personalised content profile",t.MEASURE_AD_PERFORMANCE="Measure ad performance",t.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS="Apply market research to generate audience insights",t.DEVELOP_AND_IMPROVE_PRODUCTS="Develop and improve products",t.STORE_AND_OR_ACCESS_INFORMATION_ON_A_DEVICE="Store and/or access information on a device",t.MEASURE_CONTENT_PERFORMANCE="Measure content performance",t);e.s(["Purpose",()=>r])},7150,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["pushlyPromptSuppressedAtom",0,t])},731672,e=>{"use strict";var t=e.i(546446),r=e.i(965586),i=e.i(671525),n=e.i(889753),o=e.i(810564),a=e.i(45846),s=e.i(284007),l=e.i(756227),u=e.i(358273),c=e.i(247865),d=e.i(540768),g=e.i(682142),f=e.i(782937),m=e.i(695881),p=e.i(333350),C=e.i(64412),w=e.i(950771),S=e.i(537989),A=e.i(695203),v=e.i(158662),E=e.i(777638),h=e.i(924776),I=e.i(409628),y=e.i(605781);let b=(0,m.createLogger)("useUserLoggedOut");e.s(["useUserLogout",0,function({reload:e=!0}={}){let m=(0,t.useSetAtom)(n.userPreferencesAtom),_=(0,l.useResetAuthState)(),{refresh:k}=(0,i.usePageNavigation)(),T=((e={})=>{let r=(0,t.useAtomValue)(S.pageIdAtom),i=(0,t.useAtomValue)(w.pageLocaleAtom),n=(0,t.useAtomValue)(A.deviceClassAtom),o=(0,t.useAtomValue)(v.experimentJoinListAtom),{location:a}=(0,C.useLocation)(),s=(0,h.useIsHightouchReady)(),{url:l,logoutMethod:m}=e;return(0,c.useCallback)(()=>{if(!p.default||!s)return;let e=(0,g.getCICookie)(),t=e?.["TWC-GeoIP-Country"]??(0,d.getCookie)("twc-location-country"),c=e?.["TWC-GeoIP-Region"]??(0,d.getCookie)("twc-location-region"),C=e?.["TWC-Privacy"]??(0,d.getCookie)("twc-privacy"),w=window.DprSdk?.getGdprConsentOptInsString()??"",S=window.DprSdk?.getCcpaSaleOptInString()??"",A=window.navigator?.globalPrivacyControl??!1,v=w?.includes("functional-technology")??!1,h=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,_=navigator?.cookieEnabled??!1,k=(0,d.getCookie)("partner")||"",T=(0,f.getPartnerByPattern)(k)??k,P=(0,u.getMetricsSession)(),R=P?.sessionId||"",L=P?.sessionStartTime||0,O=new Date,D=O.getHours(),N=I.WEEK_DAYS[O.getDay()]??"",U=-O.getTimezoneOffset()/60,V=document.referrer,j={url:l??window.location.pathname,logoutMethod:m??"manual",referrer:V,privProducts:S,deviceTimeZone:U,pageId:r??"",locale:i,deviceClass:n,sessionId:R,sessionStartTime:L,partner:T,wlocCity:a?.city??null,wlocCountry:a?.countryCode??null,wlocState:a?.adminDistrictCode??null,wlocDMA:a?.dmaCd??null,dayOfWeek:N,regime:C??"",cookiesEnabled:_,gpcSignalOptOut:A,functionalTechnologies:v,geographicallyRelevantAds:h,priv:w,hourOfDay:D,physicalCountry:t??"",physicalState:c??"",campaign:(0,E.getCampaign)()??void 0,tpcc:(0,E.getTpcc)(),linkReferral:(0,E.getLinkReferral)(),experimentJoinList:o,weatherMode:"normal",samsungVersion:(0,E.getSamsungVersion)(),appVersion:"85dee9ff4fc616ff898a900e27b8983226c234e0".slice(0,10)};try{(0,y.trackUserLoggedout)(j),b.info('Hightouch: Event "user-loggedout" tracked')}catch(e){b.error('Hightouch: Event "user-loggedout" failed',{error:e})}},[l,m,r,i,n,o,a,s])})();return async()=>{try{return(0,u.regenerateMetricsSession)(),await a.upsxClient.auth.logout(),T(),_(),m(s.RESET),(0,r.deleteCookie)("twc-user",{domain:(0,o.upsxCookieDomain)(window.location.hostname)}),e&&k({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}],731672)},382602,e=>{"use strict";var t=e.i(981030),r=e.i(889753);let i=(0,t.atom)(e=>e(r.userProfileAtom)?.email),n=(0,t.atom)(e=>e(r.userProfileAtom)?.firstName),o=(0,t.atom)(e=>e(r.userProfileAtom)?.gender);(0,t.atom)(e=>e(r.userProfileAtom)?.emailVerified),e.s(["userEmailAtom",0,i,"userFirstNameAtom",0,n,"userGenderAtom",0,o])},249725,e=>{"use strict";var t=e.i(546446),r=e.i(247865),i=e.i(726249),n=e.i(310847);let o=Object.freeze({});function a(){let e=(0,t.useSetAtom)(n.wxuUserLocationFeatureIdsAtom);return(0,r.useCallback)((t,r)=>{let n=[];t.placeId&&n.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&n.push((0,i.formatGeocode)(t.geocode)),0!==n.length&&e(e=>{let t=e??{};if(!n.some(e=>!(e in t)||t[e]!==r))return t;let i={...t};for(let e of n)i[e]=r;return i})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(n.wxuUserLocationFeatureIdsAtom)??o,s=(0,r.useCallback)(t=>{if(t.placeId){let r=e[t.placeId];if(r)return r}if(t.geocode){let r=e[(0,i.formatGeocode)(t.geocode)];if(r)return r}},[e]),l=(0,r.useCallback)(t=>t in e,[e]);return{featureIds:e,resolveFeatureId:s,hasResolvedPlaceId:l,recordFeatureId:a()}},"useRecordFeatureId",0,a])},145651,579310,e=>{"use strict";var t=e.i(546446),r=e.i(776169),i=e.i(981030),n=e.i(889753);let o=(0,e.i(174960).focusAtom)(n.userPreferencesAtom,e=>e.prop("locations")),a=(0,i.atom)(e=>e(n.userPreferencesAtom)?.locations||[]);(0,i.atom)(e=>{let t=e(a);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,i.atom)(e=>(e(a)?.length||0)>0),e.s(["userLocationsAtom",0,o,"userLocationsGetAtom",0,a],579310);var s=e.i(310847),l=e.i(247865);let u=Object.freeze([]),c=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),i=(0,t.useAtomValue)(o),n=(0,l.useMemo)(()=>i?[...i].sort((e,t)=>e.position-t.position):u,[i]),[a,d]=(0,t.useAtom)(s.wxuUserRecentLocationsAtom),[,g]=(0,t.useAtom)(s.wxuUserRecentAddressesAtom),f=(0,l.useCallback)(t=>{let r={...t,position:Math.max(...n.map(e=>e.position),0)+1};e({locations:[...n,r]})},[n,e]),m=(0,l.useCallback)(t=>{e({locations:n.filter(e=>e.placeID!==t)})},[n,e]),p=(0,l.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),C=(0,l.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),w=(0,l.useCallback)(()=>{d([])},[d]),S=(0,l.useCallback)(e=>{g(t=>(t||[]).filter(t=>t.placeId!==e))},[g]),A=(0,l.useCallback)(e=>{m(e),C(e),S(e)},[m,C,S]);return{addFavoriteLocation:f,removeFavoriteLocation:m,addRecentLocation:p,removeRecentLocation:C,removeRecentAddress:S,clearRecentLocations:w,deleteLocation:A,recentLocations:a||c,favoriteLocations:n}}],145651)},160317,e=>{"use strict";var t=e.i(543512);e.s(["getSubscriptionTierKey",0,function(e){return t.UserSubscriptionTierKeysMap[e]??t.UserSubscriptionTierKeysMap[t.UserSubscriptionTiers.none]}])},402525,e=>{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["getSmartScriptClickUrl",0,function(e){let t=e?.clickURL;return"string"==typeof t&&t?t:null},"smartScriptClickUrlAtom",0,t,"withCtaAttribution",0,function(e,{trackAdset:t,deepLinkValue:r}){if(!URL.canParse(e))return e;let i=new URL(e);return t&&i.searchParams.set("af_adset",t.replace(/ /g,"_")),r&&i.searchParams.set("deep_link_value",r),i.toString()}])},436028,e=>{"use strict";e.s(["hasLength",0,e=>Array.isArray(e)&&e.length>0])},216809,e=>{"use strict";var t=e.i(247865),r=e.i(553329);e.s(["useAppsFlyerConsent",0,function(){let[e,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let e=!1;return(async()=>{let t=window.DprSdk?.isInitialized;if(!t)return;let{error:n}=await (0,r.tryCatch)(t);n||e||i(!!window.DprSdk?.getFeatureFlags()?.appsFlyer)})(),()=>{e=!0}},[]),e}])}]);