(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),n=e.i(533760),i=e.i(405341),o=e.i(829065);e.s(["CJUniversalTagScript",0,()=>{let[e,s]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=(0,i.getCjConfig)();e&&(0,o.isCjEligible)()&&s(e)},[]),e)?(0,t.jsx)(n.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";var t=e.i(288906);e.s(["CJ_ACTION_ID_DIRECT_PURCHASE",0,521782,"CJ_ACTION_ID_TRIAL_SIGNUP",0,519532,"getCjConfig",0,()=>{let e=Number(t.default.env.NEXT_PUBLIC_CJ_ENTERPRISE_ID?.trim()),r=t.default.env.NEXT_PUBLIC_CJ_TAG_ID?.trim();return Number.isInteger(e)&&!(er.US_REGIMES.includes((0,r.getRegime)())],829065)},560542,e=>{"use strict";var t=e.i(247865),r=e.i(293163),n=e.i(695881),i=e.i(553329),o=e.i(405341),s=e.i(829065);let a=(0,n.createLogger)("CommissionJunction");e.s(["useCjConversionTag",0,({shouldFire:e,orderId:n,amount:l,hasTrial:c})=>{let u=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!e||u.current||!n)return;let t=(0,o.getCjConfig)();t&&(0,s.isCjEligible)()&&(u.current=!0,(0,i.tryCatch)((async()=>{var e;let i,s,a;return e={orderId:n,amount:l,actionTrackerId:c?o.CJ_ACTION_ID_TRIAL_SIGNUP:o.CJ_ACTION_ID_DIRECT_PURCHASE,cjEventId:(0,r.getCjEvent)()},(i=window).cj=i.cj||{},i.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,a=document.getElementsByTagName("script")[0],void(a?.parentNode?a.parentNode.insertBefore(s,a):document.body.appendChild(s))})()).then(({error:e})=>{e&&a.error("conversion tag failed",{orderId:n,error:e})}))},[e,n,l,c])}],560542)},185945,e=>{"use strict";var t=e.i(288906),r=e.i(247865),n=e.i(725287);function i(){return false}function o(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function s(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(n.current)e.route&&n.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:i()?"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 n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.3.1",e.sampleRate&&(n.dataset.sampleRate=e.sampleRate.toString()),e.route&&(n.dataset.route=e.route),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(n.dataset.dsn=e.dsn),i()&&!1===e.debug&&(n.dataset.debug="false"),n.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(n),{setRoute:e=>{n.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&&(n.current=r.setRoute)}},[e.route]),null}function a(e){let i=(()=>{let e=(0,n.useParams)(),t=(0,n.useSearchParams)()||new URLSearchParams,r=(0,n.usePathname)();if(!e)return null;let i=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!i)return r;let s=r;try{let e=Object.entries(i);for(let[t,r]of e)if(!Array.isArray(r)){let e=o(r);e.test(s)&&(s=s.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=o(r.join("/"));e.test(s)&&(s=s.replace(e,`/[...${t}]`))}return s}catch(e){return r}})();return r.default.createElement(s,{route:i,...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(a,{...e}))}])},538946,e=>{"use strict";var t,r=e.i(288906),n={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_C5eh3Be2zKezoCbjjaJFXUghygS9":void 0},i=e.i(247865),o=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:r}){return(0,i.useEffect)(()=>(e&&o&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(n,e);let r=document.createElement("script");for(let[i,o]of(r.src=`${n.scriptHostname}/_next-live/feedback/feedback.js`,r.setAttribute("data-explicit-opt-in","true"),e.nonce&&r.setAttribute("nonce",e.nonce),Object.entries((n.ownerId&&n.projectId?{"data-owner-id":n.ownerId,"data-project-id":n.projectId,"data-branch":t??n.branch}:n.deploymentId?{"data-deployment-id":n.deploymentId}:void 0)??{})))o&&r.setAttribute(i,o);(document.head||document.documentElement).appendChild(r)}}({nonce:r}),o=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],538946)},147732,e=>{"use strict";e.s(["debounce",0,function(e,t,{signal:r,edges:n}={}){let i,o=null,s=null!=n&&n.includes("leading"),a=null==n||n.includes("trailing"),l=()=>{null!==o&&(e.apply(i,o),i=void 0,o=null)},c=null,u=()=>{null!=c&&clearTimeout(c),c=setTimeout(()=>{c=null,a&&l(),d()},t)},d=()=>{null!==c&&(clearTimeout(c),c=null),i=void 0,o=null},f=function(...e){if(r?.aborted)return;i=this,o=e;let t=null==c;u(),s&&t&&l()};return f.schedule=u,f.cancel=d,f.flush=()=>{l()},r?.addEventListener("abort",d,{once:!0}),f}])},232598,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return o.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(276247),s=e.r(788443),a=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),n=e.i(725287),i=e.i(546446),o=e.i(540768),s=e.i(682142),a=e.i(782937),l=e.i(695881),c=e.i(333350),u=e.i(64412),d=e.i(950771),f=e.i(537989),g=e.i(695203),p=e.i(158662),m=e.i(358273),w=e.i(122124),v=e.i(777638),C=e.i(924776),h=e.i(409628),E=e.i(605781);let A=(0,l.createLogger)("useTrackString");e.s(["useTrackString",0,()=>{let e=(0,i.useAtomValue)(f.pageIdAtom),t=(0,i.useAtomValue)(d.pageLocaleAtom),l=(0,i.useAtomValue)(g.deviceClassAtom),b=(0,i.useAtomValue)(p.experimentJoinListAtom),S=(0,n.usePathname)(),{location:y}=(0,u.useLocation)(),I=(0,C.useIsHightouchReady)(),_=(0,r.useCallback)(r=>{let n=(0,s.getCICookie)(),i=n?.["TWC-GeoIP-Country"]??(0,o.getCookie)("twc-location-country"),c=n?.["TWC-GeoIP-Region"]??(0,o.getCookie)("twc-location-region"),u=n?.["TWC-Privacy"]??(0,o.getCookie)("twc-privacy"),d=window.DprSdk?.getGdprConsentOptInsString()??"",f=window.DprSdk?.getCcpaSaleOptInString()??"",g=window.navigator?.globalPrivacyControl??!1,p=d?.includes("functional-technology")??!1,C=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,E=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,A=String(window.DprSdk?.getUserConsent("sale-of-data")!==!1),I=String(window.DprSdk?.getUserConsent("sensitive-data")!==!1),_=navigator?.cookieEnabled??!1,k=(0,o.getCookie)("partner")||"",R=(0,a.getPartnerByPattern)(k)??k,T=(0,m.getMetricsSession)(),P=T?.sessionId||"",L=new Date(T?.sessionStartTime||0).toISOString(),O=new Date,N=O.getHours(),D=h.WEEK_DAYS[O.getDay()]??"",U="article"===e||"video"===e?(0,w.stripLastPartOfSlug)(S??""):(0,w.getAnonymizedPath)(S??"");return{trackString:r,pageId:e??"",schemaVersion:"nextgen",url:U,referrer:document.referrer,locale:t,deviceClass:l,partner:R,sessionId:P,sessionStartTime:L,siteMode:"normal",dayOfWeek:D,hourOfDay:N,regime:u??"",cookiesEnabled:_,gpcSignalOptOut:g,functionalTechnologies:p,geographicallyRelevantAds:C,interestBasedAds:E,priv:d,privProducts:f,saleOfData:A,saleOfDataAuthorization:A,sensitiveDataAuthorization:I,campaign:(0,v.getCampaign)(),experimentJoinList:b,weatherMode:"normal",physicalCountry:i??"",physicalState:c??"",wlocCity:y?.city??null,wlocCountry:y?.countryCode??null,wlocState:y?.adminDistrictCode??null,wlocDMA:y?.dmaCd??null,samsungVersion:(0,v.getSamsungVersion)(),appVersion:"d8cb3ceedccdf9c80944ee06f03898a7f36d30b1".slice(0,10)}},[e,t,l,b,S,y]);return(0,r.useCallback)(e=>{if(c.default&&e){if(!I)return void A.warn('Hightouch: Event "track-string" skipped - SDK not ready');try{(0,E.trackTrackString)(_(e)),A.info('Hightouch: Event "track-string" tracked',{trackString:e})}catch(e){A.error('Hightouch: Event "track-string" failed',{error:e})}}},[I,_])}],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 n=(0,t.atomWithStorage)("wx-ht-from-search-result",null);e.s(["fromSearchResultAtom",0,n],50727)},128541,e=>{"use strict";var t=e.i(284007);let r=(0,t.createJSONStorage)(()=>sessionStorage),n=(0,t.atomWithStorage)("wx-purchase-source-attribution",null,r);e.s(["purchaseSourceAttributionAtom",0,n])},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),n=e.i(546446),i=e.i(540768),o=e.i(682142),s=e.i(782937),a=e.i(695881),l=e.i(333350),c=e.i(64412),u=e.i(950771),d=e.i(537989),f=e.i(695203),g=e.i(158662),p=e.i(358273),m=e.i(122124),w=e.i(777638),v=e.i(924776),C=e.i(409628),h=e.i(605781);let E=(0,a.createLogger)("useTrackAssetViewed"),A=[],b=null;function S(e){try{(0,h.trackAssetViewed)(e),E.info(`Hightouch: Event "asset-viewed" tracked - ${e.contentId}`)}catch(e){E.error('Hightouch: Event "asset-viewed" failed',e)}}e.s(["trackHightouchAssetViewed",0,function(e){try{b?.(e)}catch(e){E.error('Hightouch: Event "asset-viewed" failed',e)}},"useRegisterAssetViewedTracker",0,()=>{let e=(()=>{let e=(0,r.usePathname)(),a=(0,n.useAtomValue)(d.pageIdAtom),h=(0,n.useAtomValue)(u.pageLocaleAtom),E=(0,n.useAtomValue)(f.deviceClassAtom),b=(0,n.useAtomValue)(g.experimentJoinListAtom),{location:y}=(0,c.useLocation)(),I=(0,v.useIsHightouchReady)(),_=(0,t.useCallback)(({moduleId:t,contentId:r,assetMediaType:n,title:l,pos:c,tagsKeyword:u})=>{let d=(0,o.getCICookie)(),f=d?.["TWC-GeoIP-Country"]??(0,i.getCookie)("twc-location-country"),g=d?.["TWC-GeoIP-Region"]??(0,i.getCookie)("twc-location-region"),v=d?.["TWC-Privacy"]??(0,i.getCookie)("twc-privacy"),A=window.DprSdk?.getGdprConsentOptInsString()??"",S=window.DprSdk?.getCcpaSaleOptInString()??"",I=window.navigator?.globalPrivacyControl??!1,_=A?.includes("functional-technology")??!1,k=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,R=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,T=navigator?.cookieEnabled??!1,P=(0,i.getCookie)("partner")||"",L=(0,s.getPartnerByPattern)(P)??P,O=(0,p.getMetricsSession)(),N=O?.sessionId||"",D=new Date(O?.sessionStartTime||0).toISOString(),U=new Date,j=U.getHours(),V=C.WEEK_DAYS[U.getDay()]??"",B="article"===a||"video"===a?(0,m.stripLastPartOfSlug)(e??""):(0,m.getAnonymizedPath)(e??"");return{moduleId:t,contentId:r,assetMediaType:n,title:l,pos:String(c),tagsKeyword:u??null,pageId:a??"",url:B,referrer:document.referrer,locale:h,deviceClass:E,partner:L,sessionId:N,sessionStartTime:D,siteMode:"normal",dayOfWeek:V,hourOfDay:j,regime:v??"",cookiesEnabled:T,gpcSignalOptOut:I,functionalTechnologies:_,geographicallyRelevantAds:k,interestBasedAds:R,priv:A,privProducts:S,campaign:(0,w.getCampaign)(),experimentJoinList:b,weatherMode:"normal",physicalCountry:f??"",physicalState:g??"",wlocCity:y?.city??null,wlocCountry:y?.countryCode??null,wlocState:y?.adminDistrictCode??null,wlocDMA:y?.dmaCd??null,samsungVersion:(0,w.getSamsungVersion)(),appVersion:"d8cb3ceedccdf9c80944ee06f03898a7f36d30b1".slice(0,10)}},[e,a,h,E,b,y]);return(0,t.useEffect)(()=>{if(!I||0===A.length)return;let e=A;A=[],e.forEach(S)},[I]),(0,t.useCallback)(e=>{if(!l.default)return;let t=_(e);I?S(t):A.push(t)},[I,_])})();(0,t.useEffect)(()=>(b=e,()=>{b===e&&(b=null)}),[e])}])},915044,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(947118),n=e.i(546446),i=e.i(293163),o=e.i(160317),s=e.i(382602),a=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:f,subscriptionTier:g}}=(0,u.useUser)(),[p,m]=(0,t.useState)(!1),[w,v]=(0,t.useState)(!1),C=f??!1,h=(0,o.getSubscriptionTierKey)(g),E=(0,n.useAtomValue)(s.userFirstNameAtom),A=(0,n.useAtomValue)(s.userGenderAtom),b=(0,n.useAtomValue)(l.wxuUserAnonymousIdAtom),S=(0,n.useAtomValue)(l.userHasLoggedInBeforeAtom),y=c.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,I=c.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,_=(0,a.getCookie)("subscription")??"",{productID:k=null,expirationDateTime:R=null,transactionDateTime:T=null,firstTransactionDateTime:P=null,autoRenew:L=null,price:O=null,productName:N=null}=(0,i.jwtDecoder)(_)||{},D=(0,t.useMemo)(()=>({premium:C,premiumProductTier:h,premiumExpiration:R,premiumStart:T,premiumFirstTransactionDate:P,premiumProductId:k,premiumProductAutoRenew:L,premiumPrice:O,premiumProductName:N,isRegisteredUser:d||S||!1,isLoggedIn:d,"Amplitude.device_id":b,$Gender:A,$FirstName:E,saleOfDataAuthorization:y,sensitiveDataAuthorization:I,devUser:!1}),[C,h,R,T,P,k,L,O,N,b,d,S,E,A,y,I]);(0,t.useEffect)(()=>{let{$FirstName:e,$Gender:t,...r}=D;(0,i.areObjectValuesDefined)(r)&&!p&&m(!0)},[D,p]);let U=(0,t.useCallback)(()=>{for(let e in D)void 0===D[e]&&delete D[e];if(e&&p&&!w){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(D),v(!0),console.debug("MParticle: User attributes set - ",D)}},[e,D,p,w]);return{userAttributes:D,setUserAttribute:(0,t.useCallback)((t,r)=>{if(!e)return void console.warn("MParticle is not initialized");let n=window.mParticle?.Identity?.getCurrentUser?.();n?(n.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")}])},520362,e=>{"use strict";var t=e.i(902875),r=e.i(247865);let n=e=>{let{apiRoute:t,depth:n,refresh:i,serverURL:o}=e,s=(0,r.useRef)(!1),a=(0,r.useCallback)(e=>{e.origin===o&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof i?i():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[i,o]);return(0,r.useEffect)(()=>("u">typeof window&&window.addEventListener("message",a),s.current||(s.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:o}),i()),()=>{"u">typeof window&&window.removeEventListener("message",a)}),[o,a,n,t,i]),null};var i=e.i(725287);let o=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),s={position:"absolute",pointerEvents:"none",border:"2px solid #5B9BD5",backgroundColor:"rgba(91, 155, 213, 0.04)",borderRadius:"8px",boxShadow:"0 0 8px rgba(91, 155, 213, 0.3)",zIndex:"9999",transition:"opacity 150ms ease"},a=e=>{let r=(0,i.useRouter)();return(0,t.jsx)(n,{...e,refresh:r.refresh})};e.s(["LivePreviewListener",0,a],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,r.useRef)(null),t=(0,r.useRef)(null),n=(0,r.useRef)(null),i=(0,r.useRef)(null),a=(0,r.useRef)(null),l=(0,r.useCallback)(()=>{if("u"{let r=t.current,i=e.current;if(!r||!i)return;if(!r.isConnected){t.current=null,i.style.opacity="0",n.current?.disconnect();return}let o=r.getBoundingClientRect();i.style.top=`${o.top+window.scrollY}px`,i.style.left=`${o.left+window.scrollX}px`,i.style.width=`${o.width}px`,i.style.height=`${o.height}px`,i.style.opacity="1"},[]),u=(0,r.useCallback)(()=>{t.current=null,a.current=null,e.current&&(e.current.style.opacity="0"),n.current?.disconnect()},[]),d=(0,r.useCallback)(()=>{t.current&&null===i.current&&(i.current=requestAnimationFrame(()=>{i.current=null,c()}))},[c]),f=(0,r.useCallback)(e=>{if(e===a.current)return;let r=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!r)return void o.debug("No element found for block ID",{blockId:e});let i=(e=>{let t=e,r=t.getBoundingClientRect();for(let e=0;e{let t=e=>{var t;(e=>{if(e===window.location.origin)return!0;try{let{hostname:t}=new URL(e);return"weather.com"===t||t.endsWith(".weather.com")}catch{return!1}})(e.origin)&&"object"==typeof(t=e.data)&&null!==t&&"type"in t&&("wx:block-highlight-clear"===t.type||"wx:block-highlight"===t.type&&"blockId"in t&&"string"==typeof t.blockId)&&("wx:block-highlight"===e.data.type?f(e.data.blockId):u())};return window.addEventListener("message",t),window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",d),window.removeEventListener("resize",d),null!==i.current&&cancelAnimationFrame(i.current),n.current?.disconnect(),e.current?.remove()}},[f,u,d]),null},"LivePreviewListener",0,a],520362)},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])},382602,e=>{"use strict";var t=e.i(981030),r=e.i(889753);let n=(0,t.atom)(e=>e(r.userProfileAtom)?.email),i=(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,n,"userFirstNameAtom",0,i,"userGenderAtom",0,o])},249725,e=>{"use strict";var t=e.i(546446),r=e.i(247865),n=e.i(726249),i=e.i(310847);let o=Object.freeze({});function s(){let e=(0,t.useSetAtom)(i.wxuUserLocationFeatureIdsAtom);return(0,r.useCallback)((t,r)=>{let i=[];t.placeId&&i.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&i.push((0,n.formatGeocode)(t.geocode)),0!==i.length&&e(e=>{let t=e??{};if(!i.some(e=>!(e in t)||t[e]!==r))return t;let n={...t};for(let e of i)n[e]=r;return n})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(i.wxuUserLocationFeatureIdsAtom)??o,a=(0,r.useCallback)(t=>{if(t.placeId){let r=e[t.placeId];if(r)return r}if(t.geocode){let r=e[(0,n.formatGeocode)(t.geocode)];if(r)return r}},[e]),l=(0,r.useCallback)(t=>t in e,[e]);return{featureIds:e,resolveFeatureId:a,hasResolvedPlaceId:l,recordFeatureId:s()}},"useRecordFeatureId",0,s])},145651,579310,e=>{"use strict";var t=e.i(546446),r=e.i(776169),n=e.i(981030),i=e.i(889753);let o=(0,e.i(174960).focusAtom)(i.userPreferencesAtom,e=>e.prop("locations")),s=(0,n.atom)(e=>e(i.userPreferencesAtom)?.locations||[]);(0,n.atom)(e=>{let t=e(s);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,n.atom)(e=>(e(s)?.length||0)>0),e.s(["userLocationsAtom",0,o,"userLocationsGetAtom",0,s],579310);var a=e.i(310847),l=e.i(247865);let c=Object.freeze([]),u=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),n=(0,t.useAtomValue)(o),i=(0,l.useMemo)(()=>n?[...n].sort((e,t)=>e.position-t.position):c,[n]),[s,d]=(0,t.useAtom)(a.wxuUserRecentLocationsAtom),[,f]=(0,t.useAtom)(a.wxuUserRecentAddressesAtom),g=(0,l.useCallback)(t=>{let r={...t,position:Math.max(...i.map(e=>e.position),0)+1};e({locations:[...i,r]})},[i,e]),p=(0,l.useCallback)(t=>{e({locations:i.filter(e=>e.placeID!==t)})},[i,e]),m=(0,l.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),w=(0,l.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),v=(0,l.useCallback)(()=>{d([])},[d]),C=(0,l.useCallback)(e=>{f(t=>(t||[]).filter(t=>t.placeId!==e))},[f]),h=(0,l.useCallback)(e=>{p(e),w(e),C(e)},[p,w,C]);return{addFavoriteLocation:g,removeFavoriteLocation:p,addRecentLocation:m,removeRecentLocation:w,removeRecentAddress:C,clearRecentLocations:v,deleteLocation:h,recentLocations:s||u,favoriteLocations:i}}],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]}])},436028,e=>{"use strict";e.s(["hasLength",0,e=>Array.isArray(e)&&e.length>0])}]);