(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)},302027,e=>{"use strict";e.s(["EMBED_CHECKOUT_MESSAGE",0,"wx-checkout-complete","EMBED_RELOAD_FALLBACK_MS",0,3e3])},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_3FBCqtjuGiHyNVo5tcvC4ARwdPy4":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)},806262,e=>{"use strict";e.i(247865);var t=e.i(546446);e.i(284007),e.i(981030);let r=new WeakMap;e.s(["useHydrateAtoms",0,function(e,i){var n;let o,a=(0,t.useStore)(i),s=(n=a,(o=r.get(n))||(o=new WeakSet,r.set(n,o)),o);for(let[t,...r]of e)(!s.has(t)||(null==i?void 0:i.dangerouslyForceHydrate))&&(s.add(t),a.set(t,...r))}])},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)},797770,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["adsMetricsUnitAndZoneAtom",0,t])},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)},604323,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["metricsArticleDataAtom",0,t])},513539,e=>{"use strict";var t=e.i(981030);let r=(0,t.atom)(null),i=(0,t.atom)(null);e.s(["activeEventAtom",0,i,"layoutStateAtom",0,r])},236433,e=>{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["pageAtomsPathnameAtom",0,t])},947118,221085,e=>{"use strict";let t;var r=e.i(247865);let i=new Set,n=0,o=()=>"function"==typeof window.mParticle?.init,a=()=>{void 0!==t&&(clearInterval(t),t=void 0)},s=()=>{if(!o()||(a(),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,s(),n>=3e4&&a()},100))},u=e=>(i.add(e),l(),()=>{i.delete(e)}),c=e=>o()?(e(),()=>{}):u(e),d=e=>o()?()=>{}:u(e),m=()=>!1;e.s(["subscribeSdkLoaded",0,c,"useIsSdkLoaded",0,()=>(0,r.useSyncExternalStore)(d,o,m),"watchForSdkLoad",0,e=>{if("u"{};if(o())return s(),()=>{};l();let t=Array.from(document.scripts).find(t=>t.getAttribute("src")===e);if(!t)return()=>{};let r=()=>s();return t.addEventListener("load",r),()=>{t.removeEventListener("load",r)}}],221085);let f=e=>"function"==typeof window.mParticle?.ready?(window.mParticle?.ready?.(e),()=>{}):c(()=>{window.mParticle?.ready?.(e),e()}),p=()=>!!window.mParticle?.isInitialized?.(),g=()=>!1;e.s(["useIsInitialized",0,()=>(0,r.useSyncExternalStore)(f,p,g)],947118)},915044,382602,e=>{"use strict";var t=e.i(247865),r=e.i(947118),i=e.i(546446),n=e.i(293163),o=e.i(160317),a=e.i(981030),s=e.i(889753);let l=(0,a.atom)(e=>e(s.userProfileAtom)?.email),u=(0,a.atom)(e=>e(s.userProfileAtom)?.firstName),c=(0,a.atom)(e=>e(s.userProfileAtom)?.gender);(0,a.atom)(e=>e(s.userProfileAtom)?.emailVerified),e.s(["userEmailAtom",0,l,"userFirstNameAtom",0,u,"userGenderAtom",0,c],382602);var d=e.i(540768),m=e.i(310847),f=e.i(333350),p=e.i(528600);e.s(["useUserAttributes",0,()=>{let e=(0,r.useIsInitialized)(),{user:{isUserLoggedIn:a,isUserPremium:s,subscriptionTier:l}}=(0,p.useUser)(),[g,A]=(0,t.useState)(!1),[S,E]=(0,t.useState)(!1),C=s??!1,w=(0,o.getSubscriptionTierKey)(l),v=(0,i.useAtomValue)(u),I=(0,i.useAtomValue)(c),_=(0,i.useAtomValue)(m.wxuUserAnonymousIdAtom),b=(0,i.useAtomValue)(m.userHasLoggedInBeforeAtom),y=f.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,h=f.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,P=(0,d.getCookie)("subscription")??"",{productID:R=null,expirationDateTime:T=null,transactionDateTime:O=null,firstTransactionDateTime:k=null,autoRenew:L=null,price:N=null,productName:D=null}=(0,n.jwtDecoder)(P)||{},U=(0,t.useMemo)(()=>({premium:C,premiumProductTier:w,premiumExpiration:T,premiumStart:O,premiumFirstTransactionDate:k,premiumProductId:R,premiumProductAutoRenew:L,premiumPrice:N,premiumProductName:D,isRegisteredUser:a||b||!1,isLoggedIn:a,"Amplitude.device_id":_,$Gender:I,$FirstName:v,saleOfDataAuthorization:y,sensitiveDataAuthorization:h,devUser:!1}),[C,w,T,O,k,R,L,N,D,_,a,b,v,I,y,h]);(0,t.useEffect)(()=>{let{$FirstName:e,$Gender:t,...r}=U;(0,n.areObjectValuesDefined)(r)&&!g&&A(!0)},[U,g]);let j=(0,t.useCallback)(()=>{for(let e in U)void 0===U[e]&&delete U[e];if(e&&g&&!S){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(U),E(!0),console.debug("MParticle: User attributes set - ",U)}},[e,U,g,S]);return{userAttributes:U,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:j,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])}}],915044)},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:o,onUpdateData:a,onSetPageData:s}){let{updateComponentData:l,setPageData:u}=(0,r.useDebugSystem)(),c=(0,t.useRef)(!1),d=a||l,m=s||u;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)(()=>{o&&!c.current&&(i.lifecycle("Setting page metadata",{title:o.title,assetName:o.assetName,collection:o.collection}),m({...o,_updatedAt:new Date().toISOString()}),c.current=!0)},[o,m]),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),o=(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]),a=(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]),s=(0,r.useCallback)(e=>{o("page",e)},[o]),l=(0,r.useCallback)(e=>{o("route",e)},[o]),u=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&o(e,t)})},[o]);return{debugData:e,updateSection:o,updateComponentData:a,setPageData:s,clearAllDebugData:(0,r.useCallback)(()=>{n({timestamp:new Date().toISOString()})},[n]),updateRouteInfo:l,updatePageDebug:u}}],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])},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(553329),s=e.i(45846),l=e.i(284007),u=e.i(756227),c=e.i(358273),d=e.i(247865),m=e.i(540768),f=e.i(682142),p=e.i(782937),g=e.i(695881),A=e.i(333350),S=e.i(64412),E=e.i(950771),C=e.i(537989),w=e.i(695203),v=e.i(158662),I=e.i(777638),_=e.i(924776),b=e.i(409628),y=e.i(605781);let h=(0,g.createLogger)("useUserLoggedOut");var P=e.i(658547),R=e.i(472925),T=e.i(529603),O=e.i(160317),k=e.i(543512);let L={isLoggedIn:!1,upsxId:"",registeredEmail:void 0,premium:!1,premiumProductTier:(0,O.getSubscriptionTierKey)(k.UserSubscriptionTiers.none),$FirstName:"",$Gender:"",emailSubscriptions:"[]",premiumProductId:null,premiumExpiration:null,premiumStart:null,premiumFirstTransactionDate:null,premiumProductAutoRenew:null,premiumPrice:null,premiumProductName:null,premiumProductTerm:null};e.s(["useUserLogout",0,function({reload:e=!0,clearOnError:g=!1}={}){let O=(0,t.useSetAtom)(n.userPreferencesAtom),k=(0,u.useResetAuthState)(),{refresh:N}=(0,i.usePageNavigation)(),D=((e={})=>{let r=(0,t.useAtomValue)(C.pageIdAtom),i=(0,t.useAtomValue)(E.pageLocaleAtom),n=(0,t.useAtomValue)(w.deviceClassAtom),o=(0,t.useAtomValue)(v.experimentJoinListAtom),{location:a}=(0,S.useLocation)(),s=(0,_.useIsHightouchReady)(),{url:l,logoutMethod:u}=e;return(0,d.useCallback)(()=>{if(!A.default||!s)return;let e=(0,f.getCICookie)(),t=e?.["TWC-GeoIP-Country"]??(0,m.getCookie)("twc-location-country"),d=e?.["TWC-GeoIP-Region"]??(0,m.getCookie)("twc-location-region"),g=e?.["TWC-Privacy"]??(0,m.getCookie)("twc-privacy"),S=window.DprSdk?.getGdprConsentOptInsString()??"",E=window.DprSdk?.getCcpaSaleOptInString()??"",C=window.navigator?.globalPrivacyControl??!1,w=S?.includes("functional-technology")??!1,v=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,_=navigator?.cookieEnabled??!1,P=(0,m.getCookie)("partner")||"",R=(0,p.getPartnerByPattern)(P)??P,T=(0,c.getMetricsSession)(),O=T?.sessionId||"",k=T?.sessionStartTime||0,L=new Date,N=L.getHours(),D=b.WEEK_DAYS[L.getDay()]??"",U=-L.getTimezoneOffset()/60,j=document.referrer,M={url:l??window.location.pathname,logoutMethod:u??"manual",referrer:j,privProducts:E,deviceTimeZone:U,pageId:r??"",locale:i,deviceClass:n,sessionId:O,sessionStartTime:k,partner:R,wlocCity:a?.city??null,wlocCountry:a?.countryCode??null,wlocState:a?.adminDistrictCode??null,wlocDMA:a?.dmaCd??null,dayOfWeek:D,regime:g??"",cookiesEnabled:_,gpcSignalOptOut:C,functionalTechnologies:w,geographicallyRelevantAds:v,priv:S,hourOfDay:N,physicalCountry:t??"",physicalState:d??"",campaign:(0,I.getCampaign)()??void 0,tpcc:(0,I.getTpcc)(),linkReferral:(0,I.getLinkReferral)(),experimentJoinList:o,weatherMode:"normal",samsungVersion:(0,I.getSamsungVersion)(),appVersion:"7204776afb4d730ff635080a132f341559d385e9".slice(0,10)};try{let e=(0,y.trackUserLoggedout)(M);return h.info('Hightouch: Event "user-loggedout" tracked'),e}catch(e){h.error('Hightouch: Event "user-loggedout" failed',{error:e})}},[l,u,r,i,n,o,a,s])})(),{logout:U}=(0,P.useUserIdentity)();return async()=>{let{error:t}=await (0,a.tryCatch)(s.upsxClient.auth.logout());return t?(console.error("Failed to log out:",t),g&&(k(),O(l.RESET),(0,r.deleteCookie)("twc-user",{domain:(0,o.upsxCookieDomain)(window.location.hostname)})),!1):(await (0,R.settleWithin)(()=>D(),1e3),k(),await (0,a.tryCatch)(U()),(0,T.setSignInTraits)(L),(0,c.regenerateMetricsSession)(),O(l.RESET),(0,r.deleteCookie)("twc-user",{domain:(0,o.upsxCookieDomain)(window.location.hostname)}),e&&N({mpa:!0}),!0)}}],731672)},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])},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,e=>{"use strict";var t=e.i(546446),r=e.i(776169),i=e.i(579310),n=e.i(310847),o=e.i(247865);let a=Object.freeze([]),s=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),l=(0,t.useAtomValue)(i.userLocationsAtom),u=(0,o.useMemo)(()=>l?[...l].sort((e,t)=>e.position-t.position):a,[l]),[c,d]=(0,t.useAtom)(n.wxuUserRecentLocationsAtom),[,m]=(0,t.useAtom)(n.wxuUserRecentAddressesAtom),f=(0,o.useCallback)(t=>{let r={...t,position:Math.max(...u.map(e=>e.position),0)+1};e({locations:[...u,r]})},[u,e]),p=(0,o.useCallback)(t=>{e({locations:u.filter(e=>e.placeID!==t)})},[u,e]),g=(0,o.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),A=(0,o.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),S=(0,o.useCallback)(()=>{d([])},[d]),E=(0,o.useCallback)(e=>{m(t=>(t||[]).filter(t=>t.placeId!==e))},[m]),C=(0,o.useCallback)(e=>{p(e),A(e),E(e)},[p,A,E]);return{addFavoriteLocation:f,removeFavoriteLocation:p,addRecentLocation:g,removeRecentLocation:A,removeRecentAddress:E,clearRecentLocations:S,deleteLocation:C,recentLocations:c||s,favoriteLocations:u}}])},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()}])},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}])},991511,e=>{"use strict";var t=e.i(247865),r=e.i(806262),i=e.i(546446);e.s(["useRehydrateAtoms",0,e=>{(0,r.useHydrateAtoms)(e);let n=(0,i.useStore)(),o=(0,t.useRef)(e);o.current=e,(0,t.useEffect)(()=>{for(let[e,t]of o.current)n.get(e)!==t&&n.set(e,t)})}])},472925,e=>{"use strict";var t=e.i(553329);let r=async(e,r)=>{let i;await (0,t.tryCatch)(Promise.race([Promise.resolve().then(e),new Promise(e=>{i=setTimeout(e,r)})])),clearTimeout(i)};e.s(["settleWithin",0,r])}]);