(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,688070,e=>{"use strict";let t=(0,e.i(144683).g)(!1);e.s(["f",0,t])},328343,680810,562209,e=>{"use strict";var t=e.i(538167),r=e.i(282446),n=e.i(737801),i=e.i(688070);e.s(["f",0,()=>{let e=(0,n.f)(),a=(0,r.y)(i.f);return(0,t.useCallback)((t,r={})=>{if(a)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 n={...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,n,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,a])}],328343);var a=e.i(199690),o=e.i(201542),l=e.i(682142),u=e.i(782937),c=e.i(695881),s=e.i(333350),d=e.i(64412),f=e.i(950771),p=e.i(537989),m=e.i(695203),g=e.i(358273),w=e.i(777638),x=e.i(924776),y=e.i(24638),v=e.i(963722),_=e.i(313983),k=e.i(409628),E=e.i(605781);let h=(0,c.createLogger)("useTrackEnrolledInExperiment"),b=[];function I(e){try{(0,E.P)(e),h.info(`Hightouch: Event "enrolled-in-experiment" tracked - ${e.newExperiment}:${e.newVariant}`)}catch(e){h.error("Hightouch: Failed to track enrolled-in-experiment",e)}}e.s(["f",0,()=>{let e=(0,r.y)(p.f),n=(0,r.y)(f.f),a=(0,r.y)(m.f),c=(0,r.y)(i.f),{location:E}=(0,d.f)(),h=(0,y.f)(),S=(0,x.f)()&&void 0!==h,C=(0,t.useCallback)((t,r)=>{let i=(0,l.f)(),c=i?.["TWC-GeoIP-Country"]??(0,o.getCookie)("twc-location-country"),s=i?.["TWC-GeoIP-Region"]??(0,o.getCookie)("twc-location-region"),d=i?.["TWC-Privacy"]??(0,o.getCookie)("twc-privacy"),f=window.DprSdk?.getGdprConsentOptInsString()??"",p=window.DprSdk?.getCcpaSaleOptInString()??"",m=window.navigator?.globalPrivacyControl??!1,x=(0,v.u)(_.d.FUNCTIONAL_TECHNOLOGY),y=(0,v.u)(_.d.GEOGRAPHICALLY_RELEVANT_ADVERTISING),h=navigator?.cookieEnabled??!1,b=(0,o.getCookie)("partner")||"",I=(0,u.i)(b)??b,S=(0,g.N)(),C=S?.sessionId||"",D=S?.sessionStartTime||0,O=new Date,P=O.getHours(),T=k.f[O.getDay()]??"",N=-O.getTimezoneOffset()/60;return{newExperiment:t.flag_key,newVariant:t.variant||"",newExperimentReceivedAt:Date.now(),experimentJoinList:r,pageId:e??"",referrer:document.referrer,locale:n,deviceClass:a,partner:I,sessionId:C,sessionStartTime:D,dayOfWeek:T,hourOfDay:P,deviceTimeZone:N,regime:d??"",cookiesEnabled:h,gpcSignalOptOut:m,functionalTechnologies:x,geographicallyRelevantAds:y,priv:f,privProducts:p,campaign:(0,w.s)()??void 0,weatherMode:"normal",physicalCountry:c??"",physicalState:s??"",wlocCity:E?.city??null,wlocCountry:E?.countryCode??null,wlocState:E?.adminDistrictCode??null,wlocDMA:E?.dmaCd??null,samsungVersion:(0,w.L)(),appVersion:"2d384ed4459fe37bf05c101299c20aff70888100".slice(0,10)}},[e,n,a,E]);return(0,t.useEffect)(()=>{if(!S||0===b.length)return;let e=b;b=[],e.forEach(I)},[S]),(0,t.useCallback)((e,t)=>{if(!s.default||c||!e.experiment_key)return;let r=C(e,t);S?I(r):b.push(r)},[S,c,C])}],680810);var S=e.i(553329);let C="production"!==a.default.env.VERCEL_TARGET_ENV,D=new Set;e.s(["y",0,function(){D.clear()},"B",0,function({exposure:e,userId:t,deviceId:r}){if(!e.experiment_key){C&&console.debug(`[Experiment] Skipping Amplitude HTTP exposure for ${e.flag_key} — no experiment_key (feature flag only)`);return}if(!t&&!r){C&&console.debug("[Experiment] Skipping Amplitude HTTP exposure — no user identity");return}let n=`${e.flag_key}::${e.variant??""}`;if(D.has(n)){C&&console.debug(`[Experiment] Skipping duplicate Amplitude HTTP exposure: ${n}`);return}D.add(n);let i={api_key:"bb1117981ed2a95dc4fa64b75661d681",events:[{event_type:"$exposure",user_id:t,device_id:r,ip:"$remote",time:Date.now(),event_properties:{flag_key:e.flag_key,variant:e.variant,experiment_key:e.experiment_key,platform:"web",app_name:"wx-next-web",environment:C?"dev":"prod",experimentation_platform:"amplitude_experiment"}}]};(async()=>{let{data:t,error:r}=await (0,S.f)(fetch("https://api2.amplitude.com/2/httpapi",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i),keepalive:!0}));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}`):C&&console.debug("[Experiment] Amplitude HTTP exposure sent:",{flag_key:e.flag_key,variant:e.variant})})()}],562209)},742436,569014,e=>{"use strict";e.s(["ExperimentContext",()=>_,"ExperimentProvider",()=>k,"useExperimentContext",()=>E],742436);var t=e.i(199690),r=e.i(458201),n=e.i(538167),i=e.i(333350),a=e.i(282446),o=e.i(328343),l=e.i(680810),u=e.i(158662),c=e.i(528600),s=e.i(562209),d=e.i(283366),f=e.i(219750),p=e.i(441535),m=e.i(830460);e.i(617163);let g={next:[{experimentName:"cw15000",variantName:"control"}],htmx:[{experimentName:"cw15000",variantName:"a"}]},w="wx.siteExperiment",x=e=>e.metadata?.[w]===!0,y=e=>x(e)?`${e.flag_key}:${e.variant??""}`:e.flag_key;e.s(["c",0,x,"o",0,function(e){return(Object.hasOwn(g,e)?g[e]:[]).map(e=>({...e})).map(({experimentName:e,variantName:t})=>({flag_key:e,variant:t,experiment_key:e,metadata:{[w]:!0}}))},"C",0,y],569014);let v="production"!==t.default.env.VERCEL_TARGET_ENV,_=(0,n.createContext)(null),k=({children:e})=>{let t=(0,o.f)(),g=(0,l.f)(),w=(0,a.F)(u.f),{user:k}=(0,c.f)(),[E,h]=(0,n.useState)(!1),[,b]=(0,n.useState)(0),I=(0,n.useRef)(void 0),S=(0,n.useRef)(void 0);I.current=k.userID||void 0;let C=i.default?window.__wxExperimentDeviceId:void 0;S.current=C||k.anonId||void 0,v&&C&&k.anonId&&C!==k.anonId&&console.warn("[Experiment] Device ID divergence — bucketing on the early ID.",{earlyDeviceId:C,useUserAnonId:k.anonId});let D=(0,n.useRef)(new Set),O=(0,n.useRef)({}),P=(0,n.useCallback)(e=>{if(void 0===e.variant&&e.metadata?.default===!0){v&&console.debug(`[Experiment] Skipping unassigned exposure for ${e.flag_key}`);return}let r=(0,d.p)(e.flag_key),n=void 0!==r?{...e,variant:r}:e,i=`${n.flag_key}::${n.variant??""}`;if(D.current.has(i))return;let a=()=>{if(D.current.has(i))return;D.current.add(i);let[e]=JSON.parse((0,p.f)({[n.flag_key]:{key:n.variant}}));if(e){let t=y(n);O.current={...O.current,[t]:e},w(JSON.stringify(Object.values(O.current))),(0,d.W)(t,e)}try{let e=f.f[n.flag_key];t(e?{...n,flag_key:e}:n),x(n)||(0,s.B)({exposure:n,userId:I.current,deviceId:S.current});let r=Object.values(O.current);g(n,r.length>0?JSON.stringify(r):null)}catch(e){console.error("[Experiment] Failed to track exposure:",e)}};window.mParticle?.isInitialized?.()?a():window.mParticle?.ready?.(a)},[t,g,w]),T=function(){let[e,t]=(0,n.useState)(()=>i.default?window.__wxExperimentClient??null:null);return(0,n.useEffect)(()=>{if(e||!i.default)return;let r=(0,m.F)(!0)??null;r?t(r):v&&console.debug("[Experiment] No client available (no API key?) — variants will use fallbacks")},[e]),e}();return(0,n.useEffect)(()=>{if(!i.default)return;window.__wxExposureSink=P;let e=window.__wxExposureQueue;if(e?.length)for(let t of(window.__wxExposureQueue=[],e))P(t);return()=>{window.__wxExposureSink===P&&(window.__wxExposureQueue??=[],window.__wxExposureSink=e=>{window.__wxExposureQueue?.push(e)})}},[P]),(0,n.useEffect)(()=>{let e=!i.default||!1!==window.__wxNeedsRemoteExperiments;(async()=>{if(!T)return;if(!e){v&&console.debug("[Experiment] All flags are local-mode — skipping remote fetch"),h(!0);return}let t=S.current;if(!t&&!k.userID){v&&console.debug("[Experiment] No user identifier available"),h(!0);return}let r={device_id:t,...k.userID?{user_id:k.userID}:{},user_properties:{}};v&&console.debug("[Experiment] Fetching experiments from API for user:",r);try{await T.fetch(r)}catch(e){console.error("[Experiment] Failed to fetch experiments:",e)}finally{h(!0)}})()},[T,k.anonId,k.userID]),(0,n.useEffect)(()=>{if(!T)return;let e=S.current;(e||k.userID)&&T.setUser({device_id:e,...k.userID?{user_id:k.userID}:{}})},[T,k.anonId,k.userID]),(0,n.useEffect)(()=>{D.current.clear(),(0,s.y)(),(0,d.z)(),O.current={},w(null),b(e=>e+1);let e=(0,d.f)();Object.keys(e).length>0&&(O.current=e,w(JSON.stringify(Object.values(e))))},[k.userID,w]),(0,r.jsx)(_.Provider,{value:{client:T,variant:(e,t)=>{if(!T)return t;let r=T.variant(e,t);return v&&console.debug("[Experiment] Current Variant:",r),r},fetch:e=>{if(!T)return Promise.resolve();if(!e){let e=S.current;if(e||k.userID){let t={device_id:e,...k.userID?{user_id:k.userID}:{},user_properties:{}};return T.fetch(t)}}return T.fetch(e)},isFetchComplete:E},children:e})},E=()=>{let e=(0,n.useContext)(_);if(!e)throw Error("useExperimentContext must be used within an AmplitudeExperimentProvider");return e}},219750,441535,e=>{"use strict";e.s(["f",0,{"homepage-video-player-desktop-web":"cw13124",cw14363:"cw14363",cw14385:"cw14385",cw15118:"cw15118","tenday-upsell-gate":"cw14461","ad-label-upsell":"cw15141"}],219750),e.s(["f",0,function(e){return JSON.stringify(Object.entries(e).filter(([,e])=>!!e?.key).map(([e,t])=>{let r=t.key??"",n=Math.floor(Date.now()/1e3);return`${e},${r},${n}`}))}],441535)},283366,e=>{"use strict";e.s(["p",()=>v,"f",()=>m,"z",()=>_,"I",()=>k,"W",()=>g]);var t=e.i(538167),r=e.i(695881),n=e.i(333350),i=e.i(358273),a=e.i(742436);let o=(0,r.createLogger)("useExposure"),l="wxu-exp-exposed:",u=new Set,c=()=>{try{return(0,i.N)()?.sessionId||null}catch{return null}},s=(e,t)=>{for(let r=localStorage.length-1;r>=0;r--){let n=localStorage.key(r);n?.startsWith(e)&&n!==e+t&&localStorage.removeItem(n)}},d=e=>{try{let t=localStorage.getItem(l+e);return new Set(t?JSON.parse(t):[])}catch{return new Set}},f=(e,t)=>{try{s(l,e),localStorage.setItem(l+e,JSON.stringify([...t]))}catch{}},p="wxu-exp-joinlist:",m=()=>{let e=c();if(!e)return{};try{let t=localStorage.getItem(p+e);return t?JSON.parse(t):{}}catch{return{}}},g=(e,t)=>{let r=c();if(r)try{s(p,r);let n=m();localStorage.setItem(p+r,JSON.stringify({...n,[e]:t}))}catch{}},w=e=>{if(0===u.size)return;let t=d(e);for(let e of u)t.add(e);f(e,t),u.clear()},x=e=>{let t=c();return t?(w(t),d(t).has(e)):u.has(e)},y=new Map;function v(e){return y.get(e)}function _(){u.clear(),y.clear();let e=c();if(e)try{localStorage.removeItem(l+e)}catch{}}function k(e,r){let i=void 0!==r,l=r?.variant,s=(0,t.useContext)(a.ExperimentContext);(0,t.useEffect)(()=>{if(!n.default||!s||x(e)||i&&void 0===l)return;let{client:t,isFetchComplete:r}=s;if(!t||!r)return;let a=()=>{if(!x(e)){(e=>{let t=c();if(!t)return u.add(e);w(t);let r=d(t);r.add(e),f(t,r)})(e),void 0!==l&&y.set(e,l);try{t.exposure(e)}catch(t){(e=>{let t=c();if(!t)return u.delete(e);let r=d(t);r.delete(e)&&f(t,r)})(e),void 0!==l&&y.delete(e),o.error("Failed to track exposure:",t)}}};window.mParticle?.isInitialized?.()?a():window.mParticle?.ready?.(a)},[s,e,i,l])}},617163,e=>{"use strict";e.i(199690),e.s([])},752496,e=>{"use strict";var t=e.i(538167),r=e.i(609858);let n=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:i,page:a,onUpdateData:o,onSetPageData:l}){let{updateComponentData:u,setPageData:c}=(0,r.f)(),s=(0,t.useRef)(!1),d=o||u,f=l||c;return(0,t.useEffect)(()=>{if(i)return n.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(i),hasPerformance:!!i.performance,hasContext:!!i.context}),d(e,{...i,_collectedAt:new Date().toISOString()}),()=>{n.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,i,d]),(0,t.useEffect)(()=>{a&&!s.current&&(n.lifecycle("Setting page metadata",{title:a.title,assetName:a.assetName,collection:a.collection}),f({...a,_updatedAt:new Date().toISOString()}),s.current=!0)},[a,f]),null}])},609858,674339,e=>{"use strict";var t=e.i(282446),r=e.i(538167);let n=(0,e.i(144683).g)({timestamp:new Date().toISOString()});e.s(["f",0,n],674339),e.s(["f",0,function(){let[e,i]=(0,t.q)(n),a=(0,r.useCallback)((e,t)=>{i(r=>{let n=r?.[e]||{},i="object"==typeof t&&null!==t&&"object"==typeof n?{...n,...t}:t;return{...r,[e]:i}})},[i]),o=(0,r.useCallback)((e,t)=>{i(r=>{let n=r||{timestamp:new Date().toISOString()},i=n.components||{};if(null===t){let t={...i};return delete t[e],{...n,components:t}}return{...n,components:{...i,[e]:t}}})},[i]),l=(0,r.useCallback)(e=>{a("page",e)},[a]),u=(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:o,setPageData:l,clearAllDebugData:(0,r.useCallback)(()=>{i({timestamp:new Date().toISOString()})},[i]),updateRouteInfo:u,updatePageDebug:c}}],609858)}]);