(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,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 o;let n,a=(0,t.useStore)(i),l=(o=a,(n=r.get(o))||(n=new WeakSet,r.set(o,n)),n);for(let[t,...r]of e)(!l.has(t)||(null==i?void 0:i.dangerouslyForceHydrate))&&(l.add(t),a.set(t,...r))}])},797770,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["adsMetricsUnitAndZoneAtom",0,t])},688070,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["isWebViewOnlyAtom",0,t])},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])},630986,e=>{"use strict";var t=e.i(546446),r=e.i(604323);e.s(["useCMSAttributes",0,()=>(0,t.useAtomValue)(r.metricsArticleDataAtom)])},328343,680810,562209,e=>{"use strict";var t=e.i(247865),r=e.i(546446),i=e.i(737801),o=e.i(688070);e.s(["useEnrolledInExperimentEvent",0,()=>{let e=(0,i.useEventAttributes)(),n=(0,r.useAtomValue)(o.isWebViewOnlyAtom);return(0,t.useCallback)((t,r={})=>{if(n)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.flag_key,newExperimentKey: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,n])}],328343);var n=e.i(288906),a=e.i(540768),l=e.i(682142),c=e.i(782937),s=e.i(695881),d=e.i(333350),u=e.i(64412),p=e.i(950771),g=e.i(537989),f=e.i(695203),m=e.i(358273),I=e.i(777638),E=e.i(924776),y=e.i(409628),x=e.i(605781);let v=(0,s.createLogger)("useTrackEnrolledInExperiment"),h=[];function w(e){try{(0,x.trackEnrolledInExperiment)(e),v.info(`Hightouch: Event "enrolled-in-experiment" tracked - ${e.newExperiment}:${e.newVariant}`)}catch(e){v.error("Hightouch: Failed to track enrolled-in-experiment",e)}}e.s(["useTrackEnrolledInExperiment",0,()=>{let e=(0,r.useAtomValue)(g.pageIdAtom),i=(0,r.useAtomValue)(p.pageLocaleAtom),n=(0,r.useAtomValue)(f.deviceClassAtom),s=(0,r.useAtomValue)(o.isWebViewOnlyAtom),{location:x}=(0,u.useLocation)(),v=(0,E.useIsHightouchReady)(),C=(0,t.useCallback)((t,r)=>{let o=(0,l.getCICookie)(),s=o?.["TWC-GeoIP-Country"]??(0,a.getCookie)("twc-location-country"),d=o?.["TWC-GeoIP-Region"]??(0,a.getCookie)("twc-location-region"),u=o?.["TWC-Privacy"]??(0,a.getCookie)("twc-privacy"),p=window.DprSdk?.getGdprConsentOptInsString()??"",g=window.DprSdk?.getCcpaSaleOptInString()??"",f=window.navigator?.globalPrivacyControl??!1,E=p?.includes("functional-technology")??!1,v=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,h=navigator?.cookieEnabled??!1,w=(0,a.getCookie)("partner")||"",C=(0,c.getPartnerByPattern)(w)??w,D=(0,m.getMetricsSession)(),P=D?.sessionId||"",L=D?.sessionStartTime||0,S=new Date,k=S.getHours(),b=y.WEEK_DAYS[S.getDay()]??"",A=-S.getTimezoneOffset()/60;return{newExperiment:t.flag_key,newVariant:t.variant||"",newExperimentReceivedAt:Date.now(),experimentJoinList:r,pageId:e??"",referrer:document.referrer,locale:i,deviceClass:n,partner:C,sessionId:P,sessionStartTime:L,dayOfWeek:b,hourOfDay:k,deviceTimeZone:A,regime:u??"",cookiesEnabled:h,gpcSignalOptOut:f,functionalTechnologies:E,geographicallyRelevantAds:v,priv:p,privProducts:g,campaign:(0,I.getCampaign)()??void 0,weatherMode:"normal",physicalCountry:s??"",physicalState:d??"",wlocCity:x?.city??null,wlocCountry:x?.countryCode??null,wlocState:x?.adminDistrictCode??null,wlocDMA:x?.dmaCd??null,samsungVersion:(0,I.getSamsungVersion)(),appVersion:"b1f2a8b9d69b0e3e05fe6d294ee6a35cce1a3921".slice(0,10)}},[e,i,n,x]);return(0,t.useEffect)(()=>{if(!v||0===h.length)return;let e=h;h=[],e.forEach(w)},[v]),(0,t.useCallback)((e,t)=>{if(!d.default||s||!e.experiment_key)return;let r=C(e,t);v?w(r):h.push(r)},[v,s,C])}],680810);var C=e.i(553329);let D="production"!==n.default.env.VERCEL_TARGET_ENV,P=new Set;e.s(["resetTrackedExposures",0,function(){P.clear()},"trackAmplitudeExposure",0,function({exposure:e,userId:t,deviceId:r}){if(!e.experiment_key){D&&console.debug(`[Experiment] Skipping Amplitude HTTP exposure for ${e.flag_key} — no experiment_key (feature flag only)`);return}if(!t&&!r){D&&console.debug("[Experiment] Skipping Amplitude HTTP exposure — no user identity");return}let i=`${e.flag_key}::${e.variant??""}`;if(P.has(i)){D&&console.debug(`[Experiment] Skipping duplicate Amplitude HTTP exposure: ${i}`);return}P.add(i);let o={api_key:"bb1117981ed2a95dc4fa64b75661d681",events:[{event_type:"$exposure",user_id:t,device_id:r,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:D?"dev":"prod",experimentation_platform:"amplitude_experiment"}}]};(async()=>{let{data:t,error:r}=await (0,C.tryCatch)(fetch("https://api2.amplitude.com/2/httpapi",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o),keepalive:!0}));return r?console.error("[Experiment] Failed to send exposure to Amplitude HTTP API:",r):t&&!t.ok?console.error(`[Experiment] Amplitude HTTP API returned ${t.status}`):D&&console.debug("[Experiment] Amplitude HTTP exposure sent:",{flag_key:e.flag_key,variant:e.variant})})()}],562209)},343277,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getLocationPointByPlaceId=l,r.getLocationPointByGeocode=c,r.getLocationPointByLocIdParam=s,r.getLocationPointByIcao=d,r.getLocationPointByCanonicalCityId=u,r.getLocationPointByFeatureId=p;let i=e.r(630585),o=e.r(678651),n=e.r(414655),a=e.r(330091);async function l(e,t){let r=(0,o.urlFrom)((0,i.getLocationPointUrlConfig)({placeId:e,language:t})),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,n.handleFetchResponse)(a)}async function c(e,t,r){let a=(0,o.urlFrom)((0,i.getLocationPointUrlConfig)({geocode:e,language:t,locationType:r?.locationType})),l=await fetch(a,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,n.handleFetchResponse)(l)}async function s(e,t){let r=(0,a.testLocId)(e);if(!r)throw Error("Not a valid locId or type supported");let l=(0,o.urlFrom)((0,i.getLocationPointUrlConfig)({[r.type]:r.locId,language:t})),c=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,n.handleFetchResponse)(c)}async function d(e,t){let r=(0,o.urlFrom)((0,i.getLocationPointUrlConfig)({icaoCode:e,language:t,locationType:"airport"})),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,n.handleFetchResponse)(a)}async function u(e,t){let r=(0,o.urlFrom)((0,i.getLocationPointUrlConfig)({canonicalCityId:e,language:t})),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,n.handleFetchResponse)(a)}async function p(e,t,r){let a=(0,o.urlFrom)((0,i.getLocationPointUrlConfig)({featureId:e,language:t,locationType:r?.locationType})),l=await fetch(a,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400,tags:[`featureId:${e}`]}});return(0,n.handleFetchResponse)(l)}},630585,(e,t,r)=>{"use strict";e.i(288906),Object.defineProperty(r,"__esModule",{value:!0}),r.getLocationSearchUrlConfig=function({query:e,language:t,locationType:r,countryCode:i,adminDistrictCode:o}){let n={query:e,language:t,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return r&&(n.locationType=r),i&&(n.countryCode=i),o&&(n.adminDistrictCode=o),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/search",query:n}},r.getLocationPointUrlConfig=function({geocode:e,locId:t,placeId:r,canonicalCityId:i,featureId:o,icaoCode:n,locationType:a,language:l}){let c={language:l,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return e&&(c.geocode=e),t&&(c.locid=t),r&&(c.placeid=r),i&&(c.canonicalCityId=i),o&&(c.featureId=o),n&&(c.icaoCode=n),a&&(c.locationType=a),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/point",query:c}}},330091,(e,t,r)=>{"use strict";var i,o;Object.defineProperty(r,"__esModule",{value:!0}),r.ErrInvalidFeatureId=r.ErrInvalidCanonicalCityID=r.ErrInvalidPlaceID=r.ErrInvalidPartialLocID9=r.ErrInvalidPartialLocID1=r.ErrInvalidUSZipCode=r.ErrInvalidLocID=r.ErrInvalidLatOrLong=r.ErrInvalidGeocode=r.ErrInvalid=r.LocationError=r.isMapboxFeatureId=r.MAPBOX_FEATURE_TYPES=r.RegExpUuidFeatureId=r.RegExpFeatureId=r.RegExpCanonicalCityID=r.RegExpPlaceID=r.RegExpPartialLocID9=r.RegExpPartialLocID1=r.RegExpUSZipCode=r.RegExpLocID=r.RegExpGeocode=r.LocationTypeMap=r.LocationType=void 0,r.valid=c,r.normalized=function(e,t){switch(t){case i.Geocode:return g(e);case i.LocID:return m(e);case i.USZipCode:return I(e);case i.PartialLocID1:return E(e);case i.PartialLocID9:return y(e);case i.PlaceID:return x(e);case i.CanonicalCityID:return v(e);case i.FeatureId:return h(e);default:return e}},r.testLocId=function(e){let t="";try{t=decodeURIComponent(e)}catch{}for(let e of(t=p(t),s))if(e.regex.test(t))try{return{type:e.type,locId:e.normalize(t)}}catch{break}return null},r.locIdFromSeoPhrase=p,r.normalizedGeocode=g,r.parseLatLonFromGeocode=function(e){let t=g(e).split(",");if(2!==t.length||!t[0]||!t[1])throw r.ErrInvalidGeocode;let i=parseFloat(t[0].trim()),o=parseFloat(t[1].trim());if(isNaN(i)||isNaN(o))throw r.ErrInvalidGeocode;return[i,o]},r.normalizeLatOrLong=f,r.normalizedLocID=m,r.normalizedUSZipCode=I,r.normalizedPartialLocID1=E,r.normalizedPartialLocID9=y,r.normalizedPlaceID=x,r.normalizedCanonicalCityID=v,r.normalizedFeatureId=h,r.geocodeFromLatLong=function(e,t){return`${e.toFixed(2)},${t.toFixed(2)}`},(o=i||(r.LocationType=i={}))[o.Geocode=0]="Geocode",o[o.LocID=1]="LocID",o[o.USZipCode=2]="USZipCode",o[o.PartialLocID1=3]="PartialLocID1",o[o.PartialLocID9=4]="PartialLocID9",o[o.PlaceID=5]="PlaceID",o[o.CanonicalCityID=6]="CanonicalCityID",o[o.FeatureId=7]="FeatureId",r.LocationTypeMap={Geocode:"geocode",LocID:"locId",USZipCode:"locId",PartialLocID1:"locId",PartialLocID9:"locId",PlaceID:"placeId",CanonicalCityID:"canonicalCityId",FeatureId:"featureId"},r.RegExpGeocode=/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/;let n=/.*(\+|-|\s)+(\w*|(\w{4}\d{4})|(\d+))(:(1|4|5|9|11|13|16|17|19|21|25|27|28))?(:\w{2})?$/;r.RegExpLocID=/^([^+|^:]*):(1|4|5|9|11|13|16|17|19|21|25|27|28):\w{2}$/,r.RegExpUSZipCode=/^\d{5}(:\d)?(\w{2})?$/,r.RegExpPartialLocID1=/^\w{4}\d{4}(:1)?$/,r.RegExpPartialLocID9=/^([a-zA-Z]{3}):.*$/,r.RegExpPlaceID=/^([0-9a-f]){32,}$/,r.RegExpCanonicalCityID=r.RegExpPlaceID,r.RegExpFeatureId=/^(place|locality|neighborhood|postcode|poi|ski|airport|address|district|region|country)\.[\w.]+$/i,r.RegExpUuidFeatureId=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,r.MAPBOX_FEATURE_TYPES=["place","locality","neighborhood","postcode","address","district","region","country"];let a=RegExp(`^(${r.MAPBOX_FEATURE_TYPES.join("|")})\\.[\\w.]+$`,"i");r.isMapboxFeatureId=e=>a.test(e);class l extends Error{constructor(e){super(e),this.name="LocationError"}}function c(e,t){switch(t){case i.Geocode:return r.RegExpGeocode.test(e)&&"0.00,0.00"!==e;case i.LocID:return r.RegExpLocID.test(e);case i.USZipCode:return r.RegExpUSZipCode.test(e);case i.PartialLocID1:return r.RegExpPartialLocID1.test(e);case i.PartialLocID9:return r.RegExpPartialLocID9.test(e);case i.PlaceID:return r.RegExpPlaceID.test(e);case i.CanonicalCityID:return r.RegExpCanonicalCityID.test(e);case i.FeatureId:return r.RegExpFeatureId.test(e)||r.RegExpUuidFeatureId.test(e);default:return!1}}r.LocationError=l,r.ErrInvalid=new l("location: invalid location"),r.ErrInvalidGeocode=new l("location: invalid location: invalid geocode"),r.ErrInvalidLatOrLong=new l("location: invalid location: invalid latitude or longitude"),r.ErrInvalidLocID=new l("location: invalid location: invalid locid"),r.ErrInvalidUSZipCode=new l("location: invalid location: invalid US zip code"),r.ErrInvalidPartialLocID1=new l("location: invalid location: invalid partial locid type 1"),r.ErrInvalidPartialLocID9=new l("location: invalid location: invalid partial locid type 9"),r.ErrInvalidPlaceID=new l("location: invalid location: invalid placeid"),r.ErrInvalidCanonicalCityID=new l("location: invalid location: invalid canonical city ID"),r.ErrInvalidFeatureId=new l("location: invalid location: invalid featureId");let s=[{regex:r.RegExpFeatureId,type:r.LocationTypeMap.FeatureId,normalize:h},{regex:r.RegExpUuidFeatureId,type:r.LocationTypeMap.FeatureId,normalize:h},{regex:r.RegExpGeocode,type:r.LocationTypeMap.Geocode,normalize:g},{regex:r.RegExpLocID,type:r.LocationTypeMap.LocID,normalize:m},{regex:r.RegExpUSZipCode,type:r.LocationTypeMap.USZipCode,normalize:I},{regex:r.RegExpPartialLocID1,type:r.LocationTypeMap.PartialLocID1,normalize:E},{regex:r.RegExpPartialLocID9,type:r.LocationTypeMap.PartialLocID9,normalize:y},{regex:r.RegExpPlaceID,type:r.LocationTypeMap.PlaceID,normalize:x},{regex:r.RegExpCanonicalCityID,type:r.LocationTypeMap.CanonicalCityID,normalize:v}],d=/-/,u=/\s/;function p(e){if(r.RegExpUuidFeatureId.test(e))return e;let t=e;if(n.test(e))if(d.test(e)){let r=e.split("-").pop();r&&(t=r)}else if(u.test(e)){let r=e.split(" ").pop();r&&(t=r)}else{let r=e.split("+").pop();r&&(t=r)}return t}function g(e){if(""===e||!c(e,i.Geocode))throw r.ErrInvalidGeocode;let t=e.split(",");if(2!==t.length)throw r.ErrInvalidGeocode;try{for(let e=0;e{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},742436,e=>{"use strict";e.s(["ExperimentContext",()=>m,"ExperimentProvider",()=>I,"default",()=>y,"useExperimentContext",()=>E],742436);var t=e.i(288906),r=e.i(902875),i=e.i(247865),o=e.i(533760),n=e.i(333350),a=e.i(546446),l=e.i(328343),c=e.i(680810),s=e.i(158662),d=e.i(528600),u=e.i(562209),p=e.i(283366);let g="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV",f="production"!==t.default.env.VERCEL_TARGET_ENV,m=(0,i.createContext)(null),I=({children:e,scriptSrc:t})=>{let I=(0,l.useEnrolledInExperimentEvent)(),E=(0,c.useTrackEnrolledInExperiment)(),y=(0,a.useSetAtom)(s.experimentJoinListAtom),{user:x}=(0,d.useUser)(),[v,h]=(0,i.useState)(!1),[w,C]=(0,i.useState)(!1),[,D]=(0,i.useState)(0),P=(0,i.useRef)(void 0),L=(0,i.useRef)(void 0);P.current=x.userID||void 0,L.current=x.anonId||void 0;let S=(0,i.useRef)(new Set),k=(0,i.useRef)({}),b=function(e,t){let r=(0,i.useRef)(null),[o,a]=(0,i.useState)(!1),l=(0,i.useRef)(e);return l.current=e,(0,i.useEffect)(()=>{if(!o&&n.default&&g&&t){if(!window.Experiment)return void console.error("Amplitude Experiment SDK not loaded. Script may still be loading.");try{r.current=window.Experiment.initialize(g,{debug:f,fetchTimeoutMillis:5e3,retryFetchOnFailure:!0,fetchOnStart:!1,automaticExposureTracking:!1,exposureTrackingProvider:{track:e=>{try{l.current(e),f&&console.debug("[Experiment] Exposure tracked:",e)}catch(e){console.error("[Experiment] Failed to track exposure:",e)}}},source:"localStorage"}),a(!0),f&&console.debug("[Experiment] SDK initialized (will fetch from API)")}catch(e){console.error("Failed to initialize Amplitude Experiment SDK:",e)}}},[o,t]),r.current}((0,i.useCallback)(e=>{let t=(0,p.getExposureVariantOverride)(e.flag_key),r=void 0!==t?{...e,variant:t}:e,i=`${r.flag_key}::${r.variant??""}`;if(S.current.has(i))return;S.current.add(i);let[o]=JSON.parse(JSON.stringify(Object.entries({[r.flag_key]:{key:r.variant}}).filter(([,e])=>!!e?.key).map(([e,t])=>{let r=t.key??"",i=Math.floor(Date.now()/1e3);return`${e},${r},${i}`})));o&&(k.current={...k.current,[r.flag_key]:o},y(JSON.stringify(Object.values(k.current))),(0,p.writeJoinListEntry)(r.flag_key,o)),I(r),(0,u.trackAmplitudeExposure)({exposure:r,userId:P.current,deviceId:L.current});let n=Object.values(k.current);E(r,n.length>0?JSON.stringify(n):null)},[I,E,y]),v);return(0,i.useEffect)(()=>{(async()=>{if(!b)return;let e=x.anonId;if(!e&&!x.userID){f&&console.debug("[Experiment] No user identifier available"),C(!0);return}let t={device_id:e,...x.userID?{user_id:x.userID}:{},user_properties:{}};f&&console.debug("[Experiment] Fetching experiments from API for user:",t);try{await b.fetch(t)}catch(e){console.error("[Experiment] Failed to fetch experiments:",e)}finally{C(!0)}})()},[b,x.anonId,x.userID]),(0,i.useEffect)(()=>{S.current.clear(),(0,u.resetTrackedExposures)(),(0,p.resetExposures)(),k.current={},y(null),D(e=>e+1);let e=(0,p.readJoinListEntries)();Object.keys(e).length>0&&(k.current=e,y(JSON.stringify(Object.values(e))))},[x.userID,y]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{src:t,strategy:"afterInteractive",onLoad:()=>{h(!0),f&&console.debug("Amplitude Experiment script loaded")},onError:e=>{console.error("Failed to load Amplitude Experiment script:",e)}}),(0,r.jsx)(m.Provider,{value:{client:b,variant:(e,t)=>{if(!b)return t;let r=b.variant(e,t);return f&&console.debug("[Experiment] Current Variant:",r),r},fetch:e=>{if(!b)return Promise.resolve();if(!e){let e=x.anonId;if(e||x.userID){let t={device_id:e,...x.userID?{user_id:x.userID}:{},user_properties:{}};return b.fetch(t)}}return b.fetch(e)},isFetchComplete:w},children:e})]})},E=()=>{let e=(0,i.useContext)(m);if(!e)throw Error("useExperimentContext must be used within an AmplitudeExperimentProvider");return e},y=I},283366,e=>{"use strict";e.s(["getExposureVariantOverride",()=>x,"readJoinListEntries",()=>f,"resetExposures",()=>v,"useExposure",()=>h,"writeJoinListEntry",()=>m]);var t=e.i(247865),r=e.i(695881),i=e.i(333350),o=e.i(358273),n=e.i(742436);let a=(0,r.createLogger)("useExposure"),l="wxu-exp-exposed:",c=new Set,s=()=>{try{return(0,o.getMetricsSession)()?.sessionId||null}catch{return null}},d=(e,t)=>{for(let r=localStorage.length-1;r>=0;r--){let i=localStorage.key(r);i?.startsWith(e)&&i!==e+t&&localStorage.removeItem(i)}},u=e=>{try{let t=localStorage.getItem(l+e);return new Set(t?JSON.parse(t):[])}catch{return new Set}},p=(e,t)=>{try{d(l,e),localStorage.setItem(l+e,JSON.stringify([...t]))}catch{}},g="wxu-exp-joinlist:",f=()=>{let e=s();if(!e)return{};try{let t=localStorage.getItem(g+e);return t?JSON.parse(t):{}}catch{return{}}},m=(e,t)=>{let r=s();if(r)try{d(g,r);let i=f();localStorage.setItem(g+r,JSON.stringify({...i,[e]:t}))}catch{}},I=e=>{if(0===c.size)return;let t=u(e);for(let e of c)t.add(e);p(e,t),c.clear()},E=e=>{let t=s();return t?(I(t),u(t).has(e)):c.has(e)},y=new Map;function x(e){return y.get(e)}function v(){c.clear(),y.clear();let e=s();if(e)try{localStorage.removeItem(l+e)}catch{}}function h(e,r){let o=void 0!==r,l=r?.variant,d=(0,t.useContext)(n.ExperimentContext);(0,t.useEffect)(()=>{if(!i.default||!d||E(e)||o&&void 0===l)return;let{client:t}=d;if(!t)return;let r=()=>{if(!E(e)){(e=>{let t=s();if(!t)return c.add(e);I(t);let r=u(t);r.add(e),p(t,r)})(e),void 0!==l&&y.set(e,l);try{t.exposure(e)}catch(e){a.error("Failed to track exposure:",e)}}};window.mParticle?.isInitialized?.()?r():window.mParticle?.ready?.(r)},[d,e,o,l])}},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:o,page:n,onUpdateData:a,onSetPageData:l}){let{updateComponentData:c,setPageData:s}=(0,r.useDebugSystem)(),d=(0,t.useRef)(!1),u=a||c,p=l||s;return(0,t.useEffect)(()=>{if(o)return i.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(o),hasPerformance:!!o.performance,hasContext:!!o.context}),u(e,{...o,_collectedAt:new Date().toISOString()}),()=>{i.lifecycle(`Cleaning up data for ${e}`),u(e,null)}},[e,o,u]),(0,t.useEffect)(()=>{n&&!d.current&&(i.lifecycle("Setting page metadata",{title:n.title,assetName:n.assetName,collection:n.collection}),p({...n,_updatedAt:new Date().toISOString()}),d.current=!0)},[n,p]),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,o]=(0,t.useAtom)(i),n=(0,r.useCallback)((e,t)=>{o(r=>{let i=r?.[e]||{},o="object"==typeof t&&null!==t&&"object"==typeof i?{...i,...t}:t;return{...r,[e]:o}})},[o]),a=(0,r.useCallback)((e,t)=>{o(r=>{let i=r||{timestamp:new Date().toISOString()},o=i.components||{};if(null===t){let t={...o};return delete t[e],{...i,components:t}}return{...i,components:{...o,[e]:t}}})},[o]),l=(0,r.useCallback)(e=>{n("page",e)},[n]),c=(0,r.useCallback)(e=>{n("route",e)},[n]),s=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&n(e,t)})},[n]);return{debugData:e,updateSection:n,updateComponentData:a,setPageData:l,clearAllDebugData:(0,r.useCallback)(()=>{o({timestamp:new Date().toISOString()})},[o]),updateRouteInfo:c,updatePageDebug:s}}],609858)},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 o=(0,i.useStore)(),n=(0,t.useRef)(e);n.current=e,(0,t.useEffect)(()=>{for(let[e,t]of n.current)o.get(e)!==t&&o.set(e,t)})}])}]);