(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,688070,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["isWebViewOnlyAtom",0,t])},328343,e=>{"use strict";var t=e.i(592121),r=e.i(546446),i=e.i(737801),n=e.i(688070);e.s(["useEnrolledInExperimentEvent",0,()=>{let e=(0,i.useEventAttributes)(),o=(0,r.useAtomValue)(n.isWebViewOnlyAtom);return(0,t.useCallback)((t,r={})=>{if(o)return void console.debug("Skipping enrolled-in-experiment in webview mode");if(!window.mParticle?.isInitialized?.())return void console.warn("MParticle is not initialized");if(!t)return void console.warn("No exposure data provided to trackEnrolledInExperiment");if(!t.experiment_key)return void console.debug(`[Experiment] Skipping exposure tracking for ${t.flag_key} - no experiment_key (feature flag only)`);try{let i={...e,newVariant:t.variant||"",newExperiment:t.experiment_key,newExperimentReceivedAt:Date.now()};window.mParticle?.logEvent?.("enrolled-in-experiment",window.mParticle?.EventType?.Other,i,r),console.debug(`MParticle: Event tracked - enrolled-in-experiment for ${t.flag_key||"unknown"}:${t.variant}`)}catch(e){console.error("MParticle: Failed to track event",e)}},[e,o])}])},912555,e=>{"use strict";e.s(["AMPLITUDE_VARIANTS_COOKIE",0,"amplitude-variants","SUBS_OFFER_LAYOUT_FLAG_KEY",0,"subs-offer-page-hero-section"])},562209,e=>{"use strict";var t=e.i(546584),r=e.i(553329);let i="production"!==t.default.env.VERCEL_TARGET_ENV,n=new Set;e.s(["resetTrackedExposures",0,function(){n.clear()},"trackAmplitudeExposure",0,function({exposure:e,userId:t,deviceId:o}){if(!e.experiment_key){i&&console.debug(`[Experiment] Skipping Amplitude HTTP exposure for ${e.flag_key} — no experiment_key (feature flag only)`);return}if(!t&&!o){i&&console.debug("[Experiment] Skipping Amplitude HTTP exposure — no user identity");return}let s=`${e.flag_key}::${e.variant??""}`;if(n.has(s)){i&&console.debug(`[Experiment] Skipping duplicate Amplitude HTTP exposure: ${s}`);return}n.add(s);let a={api_key:"bb1117981ed2a95dc4fa64b75661d681",events:[{event_type:"$exposure",user_id:t,device_id:o,ip:"$remote",event_properties:{flag_key:e.flag_key,variant:e.variant,experiment_key:e.experiment_key,platform:"web",app_name:"wx-next-web",environment:i?"dev":"prod",experimentation_platform:"amplitude_experiment"}}]};(async()=>{let{data:t,error:n}=await (0,r.tryCatch)(fetch("https://api2.amplitude.com/2/httpapi",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a),keepalive:!0}));return n?console.error("[Experiment] Failed to send exposure to Amplitude HTTP API:",n):t&&!t.ok?console.error(`[Experiment] Amplitude HTTP API returned ${t.status}`):i&&console.debug("[Experiment] Amplitude HTTP exposure sent:",{flag_key:e.flag_key,variant:e.variant})})()}])},283366,e=>{"use strict";e.s(["getExposureVariantOverride",()=>v,"resetExposures",()=>E,"useExposure",()=>A]);var t=e.i(592121),r=e.i(695881),i=e.i(333350),n=e.i(358273),o=e.i(742436);let s=(0,r.createLogger)("useExposure"),a="wxu-exp-exposed:",l=new Set,u=()=>{try{return(0,n.getMetricsSession)()?.sessionId||null}catch{return null}},c=e=>{try{let t=localStorage.getItem(a+e);return new Set(t?JSON.parse(t):[])}catch{return new Set}},d=(e,t)=>{try{for(let t=localStorage.length-1;t>=0;t--){let r=localStorage.key(t);r?.startsWith(a)&&r!==a+e&&localStorage.removeItem(r)}localStorage.setItem(a+e,JSON.stringify([...t]))}catch{}},p=e=>{if(0===l.size)return;let t=c(e);for(let e of l)t.add(e);d(e,t),l.clear()},f=e=>{let t=u();return t?(p(t),c(t).has(e)):l.has(e)},m=new Map;function v(e){return m.get(e)}function E(){l.clear(),m.clear();let e=u();if(e)try{localStorage.removeItem(a+e)}catch{}}function A(e,r){let n=void 0!==r,a=r?.variant,v=(0,t.useContext)(o.ExperimentContext);(0,t.useEffect)(()=>{if(!i.default||!v||f(e)||n&&void 0===a)return;let{client:t}=v;if(!t)return;let r=()=>{if(!f(e)){(e=>{let t=u();if(!t)return l.add(e);p(t);let r=c(t);r.add(e),d(t,r)})(e),void 0!==a&&m.set(e,a);try{t.exposure(e)}catch(e){s.error("Failed to track exposure:",e)}}};window.mParticle?.isInitialized?.()?r():window.mParticle?.ready?.(r)},[v,e,n,a])}},742436,e=>{"use strict";e.s(["ExperimentContext",()=>A,"ExperimentProvider",()=>b,"default",()=>g,"useExperimentContext",()=>w],742436);var t=e.i(546584),r=e.i(699173),i=e.i(592121),n=e.i(185312),o=e.i(333350),s=e.i(310847),a=e.i(546446),l=e.i(328343),u=e.i(158662),c=e.i(528600),d=e.i(646341),p=e.i(912555),f=e.i(562209),m=e.i(283366);let v="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV",E="production"!==t.default.env.VERCEL_TARGET_ENV,A=(0,i.createContext)(null),b=({children:e,scriptSrc:t})=>{let b=(0,a.useAtomValue)(s.wxuUserAnonymousIdAtom),w=(0,l.useEnrolledInExperimentEvent)(),g=(0,a.useSetAtom)(u.experimentJoinListAtom),{user:h}=(0,c.useUser)(),[y,S]=(0,i.useState)(!1),[_,x]=(0,i.useState)(!1),[,k]=(0,i.useState)(0),C=(0,i.useRef)(void 0),I=(0,i.useRef)(void 0),O=(0,d.getCookie)("ANON_C")?.toString();C.current=h.userID||void 0,I.current=O||b;let R=(0,i.useRef)(new Set),P=(0,i.useCallback)(e=>{let t=(0,m.getExposureVariantOverride)(e.flag_key),r=void 0!==t?{...e,variant:t}:e,i=`${r.flag_key}::${r.variant??""}`;R.current.has(i)||(R.current.add(i),w(r),(0,f.trackAmplitudeExposure)({exposure:r,userId:C.current,deviceId:I.current}))},[w]),[T,L]=(0,i.useState)({});(0,i.useEffect)(()=>{if(o.default){let e=(0,d.getCookie)(p.AMPLITUDE_VARIANTS_COOKIE);if(e)try{let t=JSON.parse(e.toString());L(t),E&&Object.keys(t).length>0&&console.debug("[Experiment] Loaded server variants from cookie:",Object.keys(t))}catch(e){console.error("[Experiment] Failed to parse variants cookie:",e)}}},[]),(0,i.useEffect)(()=>{0===Object.keys(T).length?g(null):g(JSON.stringify(Object.entries(T).filter(([,e])=>!!e?.key).map(([e,t])=>{let r=t.key??"",i=Math.floor(Date.now()/1e3);return`${e},${r},${i}`})))},[T,g]);let N=function(e,t,r){let n=(0,i.useRef)(null),[s,a]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!s&&o.default&&v&&t){if(!window.Experiment)return void console.error("Amplitude Experiment SDK not loaded. Script may still be loading.");try{let t=Object.keys(r).length>0;n.current=window.Experiment.initialize(v,{debug:E,fetchTimeoutMillis:5e3,retryFetchOnFailure:!0,fetchOnStart:!1,automaticExposureTracking:!1,exposureTrackingProvider:{track:t=>{try{e(t),E&&console.debug("[Experiment] Exposure tracked:",t)}catch(e){console.error("[Experiment] Failed to track exposure:",e)}}},initialVariants:t?r:void 0,source:t?"initialVariants":"localStorage"}),a(!0),E&&(t?console.debug("[Experiment] SDK initialized with server variants:",Object.keys(r)):console.debug("[Experiment] SDK initialized (will fetch from API)"))}catch(e){console.error("Failed to initialize Amplitude Experiment SDK:",e)}}},[s,t,e,r]),n.current}(P,y,T);return(0,i.useEffect)(()=>{(async()=>{if(!N)return;let e=(0,d.getCookie)("ANON_C")?.toString()||b;if(!e&&!h.userID){E&&console.debug("[Experiment] No user identifier available"),x(!0);return}let t={device_id:e,...h.userID?{user_id:h.userID}:{},user_properties:{}};E&&console.debug("[Experiment] Fetching experiments from API for user:",t);try{await N.fetch(t)}catch(e){console.error("[Experiment] Failed to fetch experiments:",e)}finally{x(!0)}})()},[N,b,h.userID]),(0,i.useEffect)(()=>{R.current.clear(),(0,f.resetTrackedExposures)(),(0,m.resetExposures)(),k(e=>e+1)},[h.userID]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.default,{src:t,strategy:"afterInteractive",onLoad:()=>{S(!0),E&&console.debug("Amplitude Experiment script loaded")},onError:e=>{console.error("Failed to load Amplitude Experiment script:",e)}}),(0,r.jsx)(A.Provider,{value:{client:N,variant:(e,t)=>{if(!N)return t;let r=N.variant(e,t);return E&&console.debug("[Experiment] Current Variant:",r),r},fetch:e=>{if(!N)return Promise.resolve();if(!e){let e=(0,d.getCookie)("ANON_C")?.toString()||b;if(e||h.userID){let t={device_id:e,...h.userID?{user_id:h.userID}:{},user_properties:{}};return N.fetch(t)}}return N.fetch(e)},isFetchComplete:_},children:e})]})},w=()=>{let e=(0,i.useContext)(A);if(!e)throw Error("useExperimentContext must be used within an AmplitudeExperimentProvider");return e},g=b},5397,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["showAdminHeaderAtom",0,t])},630986,e=>{"use strict";var t=e.i(546446),r=e.i(604323);e.s(["useCMSAttributes",0,()=>(0,t.useAtomValue)(r.metricsArticleDataAtom)])},37423,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},436028,e=>{"use strict";e.s(["hasLength",0,e=>Array.isArray(e)&&e.length>0])},49893,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["adsKillswitchAtom",0,t])},21121,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["showVelvetcakeModuleAtom",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),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])},160317,e=>{"use strict";var t=e.i(543512);e.s(["getSubscriptionTierKey",0,function(e){return t.UserSubscriptionTierKeysMap[e]??t.UserSubscriptionTierKeysMap[t.UserSubscriptionTiers.none]}])},915044,e=>{"use strict";var t=e.i(592121),r=e.i(947118),i=e.i(546446),n=e.i(959194),o=e.i(160317),s=e.i(382602),a=e.i(864723),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:p,subscriptionTier:f}}=(0,c.useUser)(),[m,v]=(0,t.useState)(!1),[E,A]=(0,t.useState)(!1),b=p??!1,w=(0,o.getSubscriptionTierKey)(f),g=(0,i.useAtomValue)(s.userFirstNameAtom),h=(0,i.useAtomValue)(s.userGenderAtom),y=(0,i.useAtomValue)(l.wxuUserAnonymousIdAtom),S=(0,i.useAtomValue)(l.userHasLoggedInBeforeAtom),_=u.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,x=u.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,k=(0,a.getCookie)("subscription")??"",{productID:C=null,expirationDateTime:I=null,transactionDateTime:O=null,firstTransactionDateTime:R=null,autoRenew:P=null,price:T=null,productName:L=null}=(0,n.jwtDecoder)(k)||{},N=(0,t.useMemo)(()=>({premium:b,premiumProductTier:w,premiumExpiration:I,premiumStart:O,premiumFirstTransactionDate:R,premiumProductId:C,premiumProductAutoRenew:P,premiumPrice:T,premiumProductName:L,isRegisteredUser:d||S||!1,isLoggedIn:d,"Amplitude.device_id":y,$Gender:h,$FirstName:g,saleOfDataAuthorization:_,sensitiveDataAuthorization:x,devUser:!1}),[b,w,I,O,R,C,P,T,L,y,d,S,g,h,_,x]);(0,t.useEffect)(()=>{(0,n.areObjectValuesDefined)(N)&&!m&&v(!0)},[N,m]);let V=(0,t.useCallback)(()=>{for(let e in N)void 0===N[e]&&delete N[e];if(e&&m&&!E){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(N),A(!0),console.debug("MParticle: User attributes set - ",N)}},[e,N,m,E]);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:V,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])}}])},647872,279791,523579,494889,39822,726513,678480,e=>{"use strict";var t=e.i(981030);(0,t.atom)({});let r=(0,t.atom)(!1);e.s(["showOpenWebCommentsAtom",0,r],279791);let i=(0,t.atom)(!1);e.s(["retroWeatherAtom",0,i],523579);let n=(0,t.atom)(!1);e.s(["newsHubEnabledAtom",0,n],494889);let o=(0,t.atom)("a");e.s(["editorsPickLocationAwareVariantAtom",0,o],39822);let s=(0,t.atom)(void 0);e.s(["subsOfferCopyVariantAtom",0,s],726513);let a=(0,t.atom)(void 0);e.s(["subsOfferLayoutVariantAtom",0,a],678480),e.s([],647872)},647292,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["webViewPlatformAtom",0,t])},145651,579310,249725,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")),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,o,"userLocationsGetAtom",0,s],579310);var a=e.i(310847),l=e.i(592121);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]),[s,d]=(0,t.useAtom)(a.wxuUserRecentLocationsAtom),[,p]=(0,t.useAtom)(a.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]),v=(0,l.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),E=(0,l.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),A=(0,l.useCallback)(()=>{d([])},[d]),b=(0,l.useCallback)(e=>{p(t=>(t||[]).filter(t=>t.placeId!==e))},[p]),w=(0,l.useCallback)(e=>{m(e),E(e),b(e)},[m,E,b]);return{addFavoriteLocation:f,removeFavoriteLocation:m,addRecentLocation:v,removeRecentLocation:E,removeRecentAddress:b,clearRecentLocations:A,deleteLocation:w,recentLocations:s||c,favoriteLocations:n}}],145651);var d=e.i(726249);let p=Object.freeze({});function f(){let e=(0,t.useSetAtom)(a.wxuUserLocationFeatureIdsAtom);return(0,l.useCallback)((t,r)=>{let i=[];t.placeId&&i.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&i.push((0,d.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)(a.wxuUserLocationFeatureIdsAtom)??p,r=(0,l.useCallback)(t=>{if(t.placeId){let r=e[t.placeId];if(r)return r}if(t.geocode){let r=e[(0,d.formatGeocode)(t.geocode)];if(r)return r}},[e]),i=(0,l.useCallback)(t=>t in e,[e]);return{featureIds:e,resolveFeatureId:r,hasResolvedPlaceId:i,recordFeatureId:f()}},"useRecordFeatureId",0,f],249725)},800462,e=>{"use strict";let t=(0,e.i(284007).atomWithStorage)("wx-from-search-result",null);e.s(["fromSearchResultAtom",0,t])},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])},104777,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={callServer:function(){return o.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let o=e.r(836549),s=e.r(560716),a=e.r(544383)},248064,e=>{"use strict";var t=e.i(991511),r=e.i(763886),i=e.i(394481),n=e.i(663333),o=e.i(49893),s=e.i(889753),a=e.i(5397),l=e.i(21121);e.i(647872);var u=e.i(279791),c=e.i(523579),d=e.i(494889),p=e.i(726513),f=e.i(678480),m=e.i(39822);e.i(304158);var v=e.i(485737),E=e.i(739971),A=e.i(688070),b=e.i(647292);e.s(["FlagsBoundaryClient",0,({params:e})=>((0,t.useRehydrateAtoms)([[r.partnerAtom,e.partner],[i.privacyRegimeAtom,e.privacyRegime],[n.deviceClassAtom,e.deviceClass],[s.userTierAtom,e.userTier],[o.adsKillswitchAtom,e.adsKillswitch],[a.showAdminHeaderAtom,e.showAdminHeader],[u.showOpenWebCommentsAtom,e.showOpenWebComments],[l.showVelvetcakeModuleAtom,e.showVelvetcakeModule],[c.retroWeatherAtom,e.retroWeather],[d.newsHubEnabledAtom,e.newsHubEnabled],[v.geoipCountry,e.geoipCountry],[E.subscriptionsEnabledAtom,e.subscriptionsEnabled],[p.subsOfferCopyVariantAtom,e.subsOfferCopyVariant],[f.subsOfferLayoutVariantAtom,e.subsOfferLayoutVariant],[m.editorsPickLocationAwareVariantAtom,e.editorsPickLocationAwareVariant],[b.webViewPlatformAtom,e.webViewPlatform],[A.isWebViewOnlyAtom,e.isWebViewOnly]]),null)])},567277,e=>{"use strict";var t=e.i(546584),r=e.i(592121),i=e.i(961123);function n(){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 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 a(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 s=r;try{let e=Object.entries(n);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: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(a,{...e}))}])},540039,e=>{"use strict";var t,r=e.i(546584),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_7ETf9aCraSq25Mc9zeyGVae7V5Yn":void 0},n=e.i(592121),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}],540039)},520362,e=>{"use strict";var t=e.i(699173),r=e.i(592121);let i=e=>{let{apiRoute:t,depth:i,refresh:n,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 n?n():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[n,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}),n()),()=>{"u">typeof window&&window.removeEventListener("message",a)}),[o,a,i,t,n]),null};var n=e.i(961123);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,n.useRouter)();return(0,t.jsx)(i,{...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),i=(0,r.useRef)(null),n=(0,r.useRef)(null),a=(0,r.useRef)(null),l=(0,r.useCallback)(()=>{if("u"{let r=t.current,n=e.current;if(!r||!n)return;if(!r.isConnected){t.current=null,n.style.opacity="0",i.current?.disconnect();return}let o=r.getBoundingClientRect();n.style.top=`${o.top+window.scrollY}px`,n.style.left=`${o.left+window.scrollX}px`,n.style.width=`${o.width}px`,n.style.height=`${o.height}px`,n.style.opacity="1"},[]),c=(0,r.useCallback)(()=>{t.current=null,a.current=null,e.current&&(e.current.style.opacity="0"),i.current?.disconnect()},[]),d=(0,r.useCallback)(()=>{t.current&&null===n.current&&(n.current=requestAnimationFrame(()=>{n.current=null,u()}))},[u]),p=(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 n=(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?p(e.data.blockId):c())};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!==n.current&&cancelAnimationFrame(n.current),i.current?.disconnect(),e.current?.remove()}},[p,c,d]),null},"LivePreviewListener",0,a],520362)}]);