(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),a=e.i(829065);e.s(["CJUniversalTagScript",0,()=>{let[e,s]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=(0,n.getCjConfig)();e&&(0,a.isCjEligible)()&&s(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),a=e.i(405341),s=e.i(829065);let o=(0,i.createLogger)("CommissionJunction");e.s(["useCjConversionTag",0,({shouldFire:e,orderId:i,amount:l,hasTrial:c})=>{let u=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!e||u.current||!i)return;let t=(0,a.getCjConfig)();t&&(0,s.isCjEligible)()&&(u.current=!0,(0,n.tryCatch)((async()=>{var e;let n,s,o;return e={orderId:i,amount:l,actionTrackerId:c?a.CJ_ACTION_ID_TRIAL_SIGNUP:a.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(),(s=document.createElement("script")).id="cjapitag",s.async=!0,s.src=t.tagSrc,o=document.getElementsByTagName("script")[0],void(o?.parentNode?o.parentNode.insertBefore(s,o):document.body.appendChild(s))})()).then(({error:e})=>{e&&o.error("conversion tag failed",{orderId:i,error:e})}))},[e,i,l,c])}],560542)},147732,e=>{"use strict";e.s(["debounce",0,function(e,t,{signal:r,edges:i}={}){let n,a=null,s=null!=i&&i.includes("leading"),o=null==i||i.includes("trailing"),l=()=>{null!==a&&(e.apply(n,a),n=void 0,a=null)},c=null,u=()=>{null!=c&&clearTimeout(c),c=setTimeout(()=>{c=null,o&&l(),d()},t)},d=()=>{null!==c&&(clearTimeout(c),c=null),n=void 0,a=null},g=function(...e){if(r?.aborted)return;n=this,a=e;let t=null==c;u(),s&&t&&l()};return g.schedule=u,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 a.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(276247),s=e.r(788443),o=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),a=e.i(540768),s=e.i(682142),o=e.i(782937),l=e.i(695881),c=e.i(333350),u=e.i(64412),d=e.i(950771),g=e.i(537989),m=e.i(695203),p=e.i(158662),f=e.i(358273),S=e.i(122124),C=e.i(777638),A=e.i(924776),w=e.i(409628),I=e.i(605781);let y=(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)(m.deviceClassAtom),h=(0,n.useAtomValue)(p.experimentJoinListAtom),E=(0,i.usePathname)(),{location:v}=(0,u.useLocation)(),b=(0,A.useIsHightouchReady)(),k=(0,r.useCallback)(r=>{let i=(0,s.getCICookie)(),n=i?.["TWC-GeoIP-Country"]??(0,a.getCookie)("twc-location-country"),c=i?.["TWC-GeoIP-Region"]??(0,a.getCookie)("twc-location-region"),u=i?.["TWC-Privacy"]??(0,a.getCookie)("twc-privacy"),d=window.DprSdk?.getGdprConsentOptInsString()??"",g=window.DprSdk?.getCcpaSaleOptInString()??"",m=window.navigator?.globalPrivacyControl??!1,p=d?.includes("functional-technology")??!1,A=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,I=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,y=String(window.DprSdk?.getUserConsent("sale-of-data")!==!1),b=String(window.DprSdk?.getUserConsent("sensitive-data")!==!1),k=navigator?.cookieEnabled??!1,_=(0,a.getCookie)("partner")||"",P=(0,o.getPartnerByPattern)(_)??_,T=(0,f.getMetricsSession)(),D=T?.sessionId||"",N=new Date(T?.sessionStartTime||0).toISOString(),O=new Date,R=O.getHours(),L=w.WEEK_DAYS[O.getDay()]??"",U="article"===e||"video"===e?(0,S.stripLastPartOfSlug)(E??""):(0,S.getAnonymizedPath)(E??"");return{trackString:r,pageId:e??"",schemaVersion:"nextgen",url:U,referrer:document.referrer,locale:t,deviceClass:l,partner:P,sessionId:D,sessionStartTime:N,siteMode:"normal",dayOfWeek:L,hourOfDay:R,regime:u??"",cookiesEnabled:k,gpcSignalOptOut:m,functionalTechnologies:p,geographicallyRelevantAds:A,interestBasedAds:I,priv:d,privProducts:g,saleOfData:y,saleOfDataAuthorization:y,sensitiveDataAuthorization:b,campaign:(0,C.getCampaign)(),experimentJoinList:h,weatherMode:"normal",physicalCountry:n??"",physicalState:c??"",wlocCity:v?.city??null,wlocCountry:v?.countryCode??null,wlocState:v?.adminDistrictCode??null,wlocDMA:v?.dmaCd??null,samsungVersion:(0,C.getSamsungVersion)(),appVersion:"5b8bc815e7134765d1960d872f87d1969a9442bd".slice(0,10)}},[e,t,l,h,E,v]);return(0,r.useCallback)(e=>{if(c.default&&e){if(!b)return void y.warn('Hightouch: Event "track-string" skipped - SDK not ready');try{(0,I.trackTrackString)(k(e)),y.info('Hightouch: Event "track-string" tracked',{trackString:e})}catch(e){y.error('Hightouch: Event "track-string" failed',{error:e})}}},[b,k])}],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),a=e.i(682142),s=e.i(782937),o=e.i(695881),l=e.i(333350),c=e.i(64412),u=e.i(950771),d=e.i(537989),g=e.i(695203),m=e.i(158662),p=e.i(358273),f=e.i(122124),S=e.i(777638),C=e.i(924776),A=e.i(409628),w=e.i(605781);let I=(0,o.createLogger)("useTrackAssetViewed"),y=[],h=null;function E(e){try{(0,w.trackAssetViewed)(e),I.info(`Hightouch: Event "asset-viewed" tracked - ${e.contentId}`)}catch(e){I.error('Hightouch: Event "asset-viewed" failed',e)}}e.s(["trackHightouchAssetViewed",0,function(e){try{h?.(e)}catch(e){I.error('Hightouch: Event "asset-viewed" failed',e)}},"useRegisterAssetViewedTracker",0,()=>{let e=(()=>{let e=(0,r.usePathname)(),o=(0,i.useAtomValue)(d.pageIdAtom),w=(0,i.useAtomValue)(u.pageLocaleAtom),I=(0,i.useAtomValue)(g.deviceClassAtom),h=(0,i.useAtomValue)(m.experimentJoinListAtom),{location:v}=(0,c.useLocation)(),b=(0,C.useIsHightouchReady)(),k=(0,t.useCallback)(({moduleId:t,contentId:r,assetMediaType:i,title:l,pos:c,tagsKeyword:u})=>{let d=(0,a.getCICookie)(),g=d?.["TWC-GeoIP-Country"]??(0,n.getCookie)("twc-location-country"),m=d?.["TWC-GeoIP-Region"]??(0,n.getCookie)("twc-location-region"),C=d?.["TWC-Privacy"]??(0,n.getCookie)("twc-privacy"),y=window.DprSdk?.getGdprConsentOptInsString()??"",E=window.DprSdk?.getCcpaSaleOptInString()??"",b=window.navigator?.globalPrivacyControl??!1,k=y?.includes("functional-technology")??!1,_=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,P=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,T=navigator?.cookieEnabled??!1,D=(0,n.getCookie)("partner")||"",N=(0,s.getPartnerByPattern)(D)??D,O=(0,p.getMetricsSession)(),R=O?.sessionId||"",L=new Date(O?.sessionStartTime||0).toISOString(),U=new Date,j=U.getHours(),V=A.WEEK_DAYS[U.getDay()]??"",M="article"===o||"video"===o?(0,f.stripLastPartOfSlug)(e??""):(0,f.getAnonymizedPath)(e??"");return{moduleId:t,contentId:r,assetMediaType:i,title:l,pos:String(c),tagsKeyword:u??null,pageId:o??"",url:M,referrer:document.referrer,locale:w,deviceClass:I,partner:N,sessionId:R,sessionStartTime:L,siteMode:"normal",dayOfWeek:V,hourOfDay:j,regime:C??"",cookiesEnabled:T,gpcSignalOptOut:b,functionalTechnologies:k,geographicallyRelevantAds:_,interestBasedAds:P,priv:y,privProducts:E,campaign:(0,S.getCampaign)(),experimentJoinList:h,weatherMode:"normal",physicalCountry:g??"",physicalState:m??"",wlocCity:v?.city??null,wlocCountry:v?.countryCode??null,wlocState:v?.adminDistrictCode??null,wlocDMA:v?.dmaCd??null,samsungVersion:(0,S.getSamsungVersion)(),appVersion:"5b8bc815e7134765d1960d872f87d1969a9442bd".slice(0,10)}},[e,o,w,I,h,v]);return(0,t.useEffect)(()=>{if(!b||0===y.length)return;let e=y;y=[],e.forEach(E)},[b]),(0,t.useCallback)(e=>{if(!l.default)return;let t=k(e);b?E(t):y.push(t)},[b,k])})();(0,t.useEffect)(()=>(h=e,()=>{h===e&&(h=null)}),[e])}])},947118,221085,e=>{"use strict";let t;var r=e.i(247865);let i=new Set,n=0,a=()=>"function"==typeof window.mParticle?.init,s=()=>{void 0!==t&&(clearInterval(t),t=void 0)},o=()=>{if(!a()||(s(),0===i.size))return;let e=[...i];for(let t of(i.clear(),e))t()},l=()=>{void 0===t&&(n=0,t=setInterval(()=>{n+=100,o(),n>=3e4&&s()},100))},c=e=>(i.add(e),l(),()=>{i.delete(e)}),u=e=>a()?(e(),()=>{}):c(e),d=e=>a()?()=>{}:c(e),g=()=>!1;e.s(["subscribeSdkLoaded",0,u,"useIsSdkLoaded",0,()=>(0,r.useSyncExternalStore)(d,a,g),"watchForSdkLoad",0,e=>{if("u"{};if(a())return o(),()=>{};l();let t=Array.from(document.scripts).find(t=>t.getAttribute("src")===e);if(!t)return()=>{};let r=()=>o();return t.addEventListener("load",r),()=>{t.removeEventListener("load",r)}}],221085);let m=e=>"function"==typeof window.mParticle?.ready?(window.mParticle?.ready?.(e),()=>{}):u(()=>{window.mParticle?.ready?.(e),e()}),p=()=>!!window.mParticle?.isInitialized?.(),f=()=>!1;e.s(["useIsInitialized",0,()=>(0,r.useSyncExternalStore)(m,p,f)],947118)},915044,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(947118),i=e.i(546446),n=e.i(293163),a=e.i(160317),s=e.i(382602),o=e.i(540768),l=e.i(310847),c=e.i(333350),u=e.i(528600);e.s(["useUserAttributes",0,()=>{let e=(0,r.useIsInitialized)(),{user:{isUserLoggedIn:d,isUserPremium:g,subscriptionTier:m}}=(0,u.useUser)(),[p,f]=(0,t.useState)(!1),[S,C]=(0,t.useState)(!1),A=g??!1,w=(0,a.getSubscriptionTierKey)(m),I=(0,i.useAtomValue)(s.userFirstNameAtom),y=(0,i.useAtomValue)(s.userGenderAtom),h=(0,i.useAtomValue)(l.wxuUserAnonymousIdAtom),E=(0,i.useAtomValue)(l.userHasLoggedInBeforeAtom),v=c.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,b=c.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,k=(0,o.getCookie)("subscription")??"",{productID:_=null,expirationDateTime:P=null,transactionDateTime:T=null,firstTransactionDateTime:D=null,autoRenew:N=null,price:O=null,productName:R=null}=(0,n.jwtDecoder)(k)||{},L=(0,t.useMemo)(()=>({premium:A,premiumProductTier:w,premiumExpiration:P,premiumStart:T,premiumFirstTransactionDate:D,premiumProductId:_,premiumProductAutoRenew:N,premiumPrice:O,premiumProductName:R,isRegisteredUser:d||E||!1,isLoggedIn:d,"Amplitude.device_id":h,$Gender:y,$FirstName:I,saleOfDataAuthorization:v,sensitiveDataAuthorization:b,devUser:!1}),[A,w,P,T,D,_,N,O,R,h,d,E,I,y,v,b]);(0,t.useEffect)(()=>{let{$FirstName:e,$Gender:t,...r}=L;(0,n.areObjectValuesDefined)(r)&&!p&&f(!0)},[L,p]);let U=(0,t.useCallback)(()=>{for(let e in L)void 0===L[e]&&delete L[e];if(e&&p&&!S){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(L),C(!0),console.debug("MParticle: User attributes set - ",L)}},[e,L,p,S]);return{userAttributes:L,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])}}])},491240,e=>{"use strict";let t=(0,e.i(695881).createLogger)("MParticleIdentity");e.s(["truncateIdentityValue",0,e=>"string"==typeof e&&e.length>256?(t.warn(`identity value exceeded 256 chars (${e.length}); truncating`),e.slice(0,256)):e])},37423,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},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")}])},5397,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["showAdminHeaderAtom",0,t])},752496,e=>{"use strict";var t=e.i(247865),r=e.i(609858);let i=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:n,page:a,onUpdateData:s,onSetPageData:o}){let{updateComponentData:l,setPageData:c}=(0,r.useDebugSystem)(),u=(0,t.useRef)(!1),d=s||l,g=o||c;return(0,t.useEffect)(()=>{if(n)return i.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(n),hasPerformance:!!n.performance,hasContext:!!n.context}),d(e,{...n,_collectedAt:new Date().toISOString()}),()=>{i.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,n,d]),(0,t.useEffect)(()=>{a&&!u.current&&(i.lifecycle("Setting page metadata",{title:a.title,assetName:a.assetName,collection:a.collection}),g({...a,_updatedAt:new Date().toISOString()}),u.current=!0)},[a,g]),null}])},609858,674339,e=>{"use strict";var t=e.i(546446),r=e.i(247865);let i=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,i],674339),e.s(["useDebugSystem",0,function(){let[e,n]=(0,t.useAtom)(i),a=(0,r.useCallback)((e,t)=>{n(r=>{let i=r?.[e]||{},n="object"==typeof t&&null!==t&&"object"==typeof i?{...i,...t}:t;return{...r,[e]:n}})},[n]),s=(0,r.useCallback)((e,t)=>{n(r=>{let i=r||{timestamp:new Date().toISOString()},n=i.components||{};if(null===t){let t={...n};return delete t[e],{...i,components:t}}return{...i,components:{...n,[e]:t}}})},[n]),o=(0,r.useCallback)(e=>{a("page",e)},[a]),l=(0,r.useCallback)(e=>{a("route",e)},[a]),c=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&a(e,t)})},[a]);return{debugData:e,updateSection:a,updateComponentData:s,setPageData:o,clearAllDebugData:(0,r.useCallback)(()=>{n({timestamp:new Date().toISOString()})},[n]),updateRouteInfo:l,updatePageDebug:c}}],609858)},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])},45846,e=>{"use strict";e.i(288906);let t=new(e.i(245943)).UPSXClient({baseUrl:"https://upsx.weather.com"});e.s(["upsxClient",0,t])},378869,e=>{"use strict";let t=(0,e.i(284007).atomWithStorage)("wxu-web/keyval:emailSubscriptions",null,void 0,{getOnInit:!0});e.s(["emailPreferencesAtom",0,t])},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),a=(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,a])},249725,e=>{"use strict";var t=e.i(546446),r=e.i(247865),i=e.i(726249),n=e.i(310847);let a=Object.freeze({});function s(){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)??a,o=(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:o,hasResolvedPlaceId:l,recordFeatureId:s()}},"useRecordFeatureId",0,s])},145651,579310,e=>{"use strict";var t=e.i(546446),r=e.i(776169),i=e.i(981030),n=e.i(889753);let a=(0,e.i(174960).focusAtom)(n.userPreferencesAtom,e=>e.prop("locations")),s=(0,i.atom)(e=>e(n.userPreferencesAtom)?.locations||[]);(0,i.atom)(e=>{let t=e(s);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,i.atom)(e=>(e(s)?.length||0)>0),e.s(["userLocationsAtom",0,a,"userLocationsGetAtom",0,s],579310);var o=e.i(310847),l=e.i(247865);let c=Object.freeze([]),u=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),i=(0,t.useAtomValue)(a),n=(0,l.useMemo)(()=>i?[...i].sort((e,t)=>e.position-t.position):c,[i]),[s,d]=(0,t.useAtom)(o.wxuUserRecentLocationsAtom),[,g]=(0,t.useAtom)(o.wxuUserRecentAddressesAtom),m=(0,l.useCallback)(t=>{let r={...t,position:Math.max(...n.map(e=>e.position),0)+1};e({locations:[...n,r]})},[n,e]),p=(0,l.useCallback)(t=>{e({locations:n.filter(e=>e.placeID!==t)})},[n,e]),f=(0,l.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),S=(0,l.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),C=(0,l.useCallback)(()=>{d([])},[d]),A=(0,l.useCallback)(e=>{g(t=>(t||[]).filter(t=>t.placeId!==e))},[g]),w=(0,l.useCallback)(e=>{p(e),S(e),A(e)},[p,S,A]);return{addFavoriteLocation:m,removeFavoriteLocation:p,addRecentLocation:f,removeRecentLocation:S,removeRecentAddress:A,clearRecentLocations:C,deleteLocation:w,recentLocations:s||u,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]}])},892504,e=>{"use strict";let t="upsx-purchase-checked-at";e.s(["clearPurchaseChecked",0,()=>{try{localStorage.removeItem(t)}catch{}},"markPurchaseChecked",0,()=>{try{localStorage.setItem(t,String(Date.now()))}catch{}},"purchaseCheckedRecently",0,()=>{try{let e=localStorage.getItem(t);if(!e)return!1;let r=Number(e);if(!Number.isFinite(r))return!1;return Date.now()-r{"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}])}]);