"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8100],{153:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(75302),l=n(9397);let a=()=>(0,r.md)(l.$)},745:(e,t,n)=>{n.d(t,{F:()=>i});var r=n(76792),l=n(42292),a=n(23233);let o=(0,l.forwardRef)((e,t)=>{let{title:n,titleId:l,desc:a,descId:o,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":l,"aria-describedby":o,...i,children:[a?(0,r.jsx)("desc",{id:o,children:a}):null,void 0===n?(0,r.jsx)("title",{id:l,children:"Plus"}):n?(0,r.jsx)("title",{id:l,children:n}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M12 8.5a.8.8 0 0 0-.8-.8H8.8V5.3a.8.8 0 1 0-1.6 0v2.4H4.8a.8.8 0 1 0 0 1.6h2.4v2.4a.8.8 0 0 0 1.6 0V9.3h2.4a.8.8 0 0 0 .8-.8"})]})}),i=l.forwardRef((e,t)=>(0,r.jsx)(a.h,{ref:t,icon:o,...e}));i.displayName="Plus"},9397:(e,t,n)=>{n.d(t,{$:()=>r});let r=(0,n(11854).eU)()},13942:(e,t,n)=>{n.d(t,{a:()=>r});let r=(0,n(11854).eU)()},14999:(e,t,n)=>{n.d(t,{H:()=>i});var r=n(76792),l=n(42292),a=n(23233);let o=(0,l.forwardRef)((e,t)=>{let{title:n,titleId:l,desc:a,descId:o,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":l,"aria-describedby":o,...i,children:[a?(0,r.jsx)("desc",{id:o,children:a}):null,void 0===n?(0,r.jsx)("title",{id:l,children:"Minus"}):n?(0,r.jsx)("title",{id:l,children:n}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M12 8.5a.8.8 0 0 0-.8-.8H4.8a.8.8 0 1 0 0 1.6h6.4a.8.8 0 0 0 .8-.8"})]})}),i=l.forwardRef((e,t)=>(0,r.jsx)(a.h,{ref:t,icon:o,...e}));i.displayName="Minus"},18556:(e,t,n)=>{n.d(t,{J:()=>r});let r=e=>Array.isArray(e)&&e.length>0},22627:(e,t,n)=>{n.d(t,{A:()=>c,_:()=>i});var r=n(76792),l=n(42292),a=n(57965),o=n(48260);let i=(0,l.forwardRef)((e,t)=>{let{src:n,alt:l,shadow:i,rounded:c=!0,className:s,wrapperClassName:d,width:u=320,height:f=180,quality:p,priority:m=!1,loading:v,objectFit:h="contain",fill:x=!1,sizes:g,...w}=e;if(!n)return null;let y=(0,r.jsx)(a.default,{ref:t,src:n,alt:l,width:x?void 0:u,height:x?void 0:f,quality:p,priority:m,loading:v,fill:x,sizes:g,className:(0,o.cn)({"shadow-md":i,"rounded-lg":c,"object-contain":"contain"===h,"object-cover":"cover"===h,"object-fill":"fill"===h,"object-none":"none"===h,"object-scale-down":"scale-down"===h,"h-auto w-full":!x},s),...w});return x?(0,r.jsx)("div",{className:(0,o.cn)("relative h-full w-full",d),children:y}):y});i.displayName="Image";let c=i},23803:(e,t,n)=>{t.h=function e(t){let n=(0,r.default)("".concat(a,":").concat(t)),o=(0,r.default)("".concat(a,":debug:").concat(t)),i=(0,r.default)("".concat(a,":error:").concat(t)),c=(0,r.default)("".concat(a,":warn:").concat(t)),s=(0,r.default)("".concat(a,":lifecycle:").concat(t));i.log=l;let d=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),l=1;l1?t-1:0),l=1;l1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;re("".concat(t,":").concat(n)),d};let r=function(e){return e&&e.__esModule?e:{default:e}}(n(55505));r.default.log=console.info.bind(console);let l=console.error.bind(console),a="wx-next"},32035:(e,t,n)=>{n.d(t,{PF:()=>c,Vp:()=>s,Yt:()=>o,c2:()=>i});var r=n(11854),l=n(71666),a=n(33845);let o=(0,r.eU)(e=>{var t;return(null==(t=e(a.JK))?void 0:t.unit)||l.tE}),i=(0,r.eU)(e=>e(o)===l.tE),c=(0,r.eU)(e=>e(o)===l.cl),s=(0,r.eU)(e=>e(o)===l.Uo)},44237:(e,t,n)=>{n.d(t,{K:()=>o});var r=n(75302),l=n(42292),a=n(74155);function o(){let[e,t]=(0,r.fp)(a.B),n=(0,l.useCallback)((e,n)=>{t(t=>{let r=(null==t?void 0:t[e])||{},l="object"==typeof n&&null!==n&&"object"==typeof r?{...r,...n}:n;return{...t,[e]:l}})},[t]),o=(0,l.useCallback)((e,n)=>{t(t=>{let r=t||{timestamp:new Date().toISOString()},l=r.components||{};if(null===n){let t={...l};return delete t[e],{...r,components:t}}return{...r,components:{...l,[e]:n}}})},[t]),i=(0,l.useCallback)(e=>{n("page",e)},[n]),c=(0,l.useCallback)(e=>{n("route",e)},[n]),s=(0,l.useCallback)(e=>{Object.entries(e).forEach(e=>{let[t,r]=e;r&&n(t,r)})},[n]);return{debugData:e,updateSection:n,updateComponentData:o,setPageData:i,clearAllDebugData:(0,l.useCallback)(()=>{t({timestamp:new Date().toISOString()})},[t]),updateRouteInfo:c,updatePageDebug:s}}},46178:(e,t,n)=>{n.d(t,{A:()=>o,d:()=>a});var r=n(42292),l=n(10997);function a(e,t){let[n,a]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let n=(0,l.s)(e=>{a(e)},t);return n(e),()=>{n.cancel()}},[e,t]),n}let o=a},55406:(e,t,n)=>{n.d(t,{B:()=>o});var r=n(76792),l=n(42292),a=n(71666);let o=(0,l.memo)(e=>{let{className:t,unitsClassName:n,units:l,value:o,degreeSymbolClass:i,unitOnly:c}=e,s=null!=o,d=l?(0,a.Bu)(l):null,u=null==d?void 0:d.temp,f=Number.isFinite(o)&&Math.round(o);return(0,r.jsx)("span",{"data-testid":"TemperatureValue",className:t,dir:"ltr",children:s||!s&&c?(0,r.jsxs)(r.Fragment,{children:[s&&f,(0,r.jsx)("span",{className:i,children:"\xb0"}),u&&(0,r.jsx)("span",{className:n,children:u})]}):"--"})})},55680:(e,t,n)=>{n.d(t,{X:()=>l});var r=n(42292);let l=e=>{let t=(0,r.useRef)(e);return t.current=e,t}},58010:(e,t,n)=>{n.r(t),n.d(t,{DebugCollector:()=>o});var r=n(42292),l=n(44237);let a=(0,n(23803).h)("DebugCollector");function o(e){let{componentName:t,data:n,page:o,onUpdateData:i,onSetPageData:c}=e,{updateComponentData:s,setPageData:d}=(0,l.K)(),u=(0,r.useRef)(!1),f=i||s,p=c||d;return(0,r.useEffect)(()=>{if(n)return a.lifecycle("Collecting component data for ".concat(t),{dataKeys:Object.keys(n),hasPerformance:!!n.performance,hasContext:!!n.context}),f(t,{...n,_collectedAt:new Date().toISOString()}),()=>{a.lifecycle("Cleaning up data for ".concat(t)),f(t,null)}},[t,n,f]),(0,r.useEffect)(()=>{o&&!u.current&&(a.lifecycle("Setting page metadata",{title:o.title,assetName:o.assetName,collection:o.collection}),p({...o,_updatedAt:new Date().toISOString()}),u.current=!0)},[o,p]),null}},64996:(e,t,n)=>{n.d(t,{A:()=>s,W:()=>i});var r=n(76792),l=n(73675),a=n(1313),o=n(11854);let i=(0,o.eU)(!1);function c(){try{var e;(null==(e=window.top)?void 0:e.DprSdk)&&(window.DprSdk=window.top.DprSdk,window.DprSdk.init({getApplicationInfo:()=>({id:"weather.com",version:"2.0.0"}),getUserRegime:()=>(0,a.getCookie)("twc-privacy")}),(0,o.zp)().set(i,!0))}catch(e){}}function s(){return(0,r.jsx)(l.default,{async:!0,src:"https://weather.com/api/v1/script/dprSdkScript.js",onLoad:c})}},70412:(e,t,n)=>{n.d(t,{z:()=>l});var r=n(87523);let l=()=>!(0,r.Ub)({query:"(min-width: 768px)"})},74155:(e,t,n)=>{n.d(t,{B:()=>r});let r=(0,n(11854).eU)({timestamp:new Date().toISOString()})},75207:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentObservationsUrlConfig=function(e){let{geocode:t,units:n,language:r}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/observations/current",query:{geocode:t,units:n,language:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},77722:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(76792);n(42292);var l=n(48260);function a(e){let{className:t,type:n,...a}=e;return(0,r.jsx)("input",{type:n,"data-slot":"input",className:(0,l.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...a})}},79296:(e,t,n)=>{n.d(t,{Mu:()=>o,cc:()=>i,tX:()=>a});var r=n(11854),l=n(33845);let a=(0,r.eU)(e=>{var t;return null==(t=e(l.UU))?void 0:t.email}),o=(0,r.eU)(e=>{var t;return null==(t=e(l.UU))?void 0:t.firstName}),i=(0,r.eU)(e=>{var t;return null==(t=e(l.UU))?void 0:t.gender});(0,r.eU)(e=>{var t;return null==(t=e(l.UU))?void 0:t.emailVerified})},79442:(e,t,n)=>{n.d(t,{bt:()=>j,lG:()=>p,Cf:()=>h,Es:()=>g,c7:()=>x,LC:()=>v,ZJ:()=>m,L3:()=>w});var r=n(76792);n(42292);var l=n(74277),a=n(72527),o=n(48260),i=n(27370),c=n(30505),s=n(68751);let d=(0,c.F)("",{variants:{type:{overlay:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",content:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-white shadow-lg duration-200 sm:max-w-md p-6",header:"mb-4 text-center",footer:"mt-6 flex flex-col-reverse gap-2 text-center"}},defaultVariants:{type:"content"}}),u=e=>{let{children:t}=e;return(0,r.jsx)(s.EY,{variant:"Title.M",children:t})},f=e=>{let{children:t}=e;return(0,r.jsx)(s.EY,{variant:"Body.M",color:"secondary",children:t})};function p(e){let{...t}=e;return(0,r.jsx)(l.bL,{"data-slot":"dialog",...t})}function m(e){let{...t}=e;return(0,r.jsx)(l.ZL,{"data-slot":"dialog-portal",...t})}function v(e){let{className:t,...n}=e;return(0,r.jsx)(l.hJ,{"data-slot":"dialog-overlay",className:(0,o.cn)(d({type:"overlay"}),t),...n})}function h(e){let{className:t,children:n,showCloseButton:i=!0,...c}=e;return(0,r.jsxs)(m,{"data-slot":"dialog-portal",children:[(0,r.jsx)(v,{}),(0,r.jsxs)(l.UC,{"data-slot":"dialog-content",className:(0,o.cn)(d({type:"content"}),t),...c,children:[n,i&&(0,r.jsxs)(l.bm,{className:"absolute top-4 right-4 cursor-pointer transition-opacity hover:opacity-70 focus:outline-none",children:[(0,r.jsx)(a.b,{className:"h-5 w-5 text-black"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function x(e){let{className:t,...n}=e;return(0,r.jsx)("div",{"data-slot":"dialog-header",className:(0,o.cn)(d({type:"header"}),t),...n})}function g(e){let{className:t,...n}=e;return(0,r.jsx)("div",{"data-slot":"dialog-footer",className:(0,o.cn)(d({type:"footer"}),t),...n})}function w(e){let{className:t,children:n,...a}=e;return(0,r.jsx)(l.hE,{"data-slot":"dialog-title",className:(0,o.cn)("pt-4 text-center",t),...a,children:(0,r.jsx)(u,{children:n})})}function y(e){let{className:t,children:n,...a}=e;return(0,r.jsx)(l.VY,{"data-slot":"dialog-description",className:(0,o.cn)("pb-4 text-center",t),...a,children:(0,r.jsx)(f,{children:n})})}function b(e){let{primary:t,secondary:n,className:l}=e;return(0,r.jsxs)("div",{className:(0,o.cn)("flex flex-col-reverse gap-3",l),children:[n&&(0,r.jsx)(i.$n,{variant:"secondary",onClick:n.onClick,className:"w-full",children:n.label}),t&&(0,r.jsx)(i.$n,{variant:"default",onClick:t.onClick,className:"w-full",children:t.label})]})}function j(e){let{title:t,description:n,primaryAction:l,secondaryAction:a,showCloseButton:i=!0,className:c,children:s,...d}=e;return(0,r.jsxs)(h,{showCloseButton:i,className:(0,o.cn)("p-6",c),...d,children:[(0,r.jsx)(x,{children:(0,r.jsx)(w,{children:t})}),(0,r.jsx)(y,{children:n}),s,(l||a)&&(0,r.jsx)(b,{primary:l,secondary:a})]})}},82903:(e,t,n)=>{n.d(t,{$m:()=>p,As:()=>f,nD:()=>u,ub:()=>m});var r=n(76792),l=n(42292),a=n(745),o=n(14999),i=n(48260),c=n(68751),s=n(9198),d=n(10678);l.forwardRef((e,t)=>{let{className:n,href:l,children:a,...o}=e;return(0,r.jsx)(s.default,{ref:t,href:l,...o,children:(0,r.jsx)(c.EY,{variant:"Caption.M",color:"secondary",children:a})})}).displayName="AccordionTextLink";let u=l.forwardRef((e,t)=>{let{className:n,type:l="single",collapsible:a=!0,...o}=e,c={ref:t,type:l,className:(0,i.cn)("w-full",n),"data-slot":"accordion",...o};return"single"===l&&(c.collapsible=a),(0,r.jsx)(d.bL,{...c})});function f(e){let{className:t,...n}=e;return(0,r.jsx)(d.q7,{"data-slot":"accordion-item",className:(0,i.cn)("w-full",t),...n})}function p(e){let{className:t,children:n,triggerContent:l,title:s,number:u,iconClassName:f,iconNodeOverride:p,...m}=e;return(0,r.jsx)(d.Y9,{className:"flex",children:(0,r.jsxs)(d.l9,{"data-slot":"accordion-trigger",className:(0,i.cn)("hover:text-whale-400 group flex flex-1 cursor-pointer items-center justify-between py-4 text-left font-medium transition-all",t),...m,children:[(0,r.jsxs)("div",{className:"flex grow items-center",children:[void 0!==u&&(0,r.jsx)("div",{className:"mr-3 flex h-6 w-6 items-center justify-center rounded-full bg-[#204794] text-sm font-medium text-white",children:(0,r.jsx)("span",{className:"leading-none tracking-wide",children:u})}),l||(s?(0,r.jsx)(c.EY,{variant:"Body.L",children:s}):n)]}),(0,r.jsx)("div",{className:"relative flex items-center",children:p||(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.F,{className:(0,i.cn)("h-5 w-5 shrink-0 transition-all duration-200",f,"group-data-[state=open]:rotate-45 group-data-[state=open]:opacity-0")}),(0,r.jsx)(o.H,{className:(0,i.cn)("absolute h-5 w-5 shrink-0 opacity-0 transition-all duration-200",f,"group-data-[state=open]:opacity-100")})]})})]})})}function m(e){let{className:t,animated:n,...l}=e;return(0,r.jsx)(d.UC,{"data-slot":"accordion-content",className:(0,i.cn)("overflow-hidden text-sm transition-all",{"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down":n},t),...l})}u.displayName="Accordion",l.forwardRef((e,t)=>{let{className:n,children:l,enabled:a=!1,...o}=e;return(0,r.jsx)("div",{ref:t,className:(0,i.cn)("mt-4",n),...o,children:(0,r.jsx)(c.EY,{variant:"Caption.M",color:"disabled",children:l})})}).displayName="AccordionTextSpotlight"},86942:(e,t,n)=>{t.z=o;let r=n(75207),l=n(17681),a=n(36762);async function o(e){let t=(0,r.getCurrentObservationsUrlConfig)(e),n=(0,l.urlFrom)(t),o=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,a.handleFetchResponse)(o)}},94591:(e,t,n)=>{t.SK=c,t.$$=s;let r=n(31497),l=n(17681),a=n(36762);async function o(e){let t=(0,r.getLocationSearchUrlConfig)(e),n=(0,l.urlFrom)(t),o=await fetch(n,{headers:{"Accept-Encoding":"gzip"}});return(0,a.handleFetchResponse)(o)}function i(e){let t=[];if(!e.location||!e.location.city||0===e.location.city.length)return t;let n=e.location.city.length;for(let H=0;H{function r(e){let{src:t,autoWebP:n,width:r="",quality:l,saturation:a,ratio:o,format:i}=e;if(!t||-1===t.indexOf("w-x.co"))return t;let c=new URL(t);return c.searchParams.set("format",null!=i?i:"auto"),c.searchParams.set("optimize","medium"),c.searchParams.set("width",r.toString()),a&&c.searchParams.set("saturation","".concat(a)),o&&c.searchParams.set("crop",o),n&&c.searchParams.set("auto","webp"),l&&c.searchParams.set("quality",l.toString()),c.href}n.r(t),n.d(t,{default:()=>r})},99530:(e,t,n)=>{n.d(t,{FL:()=>x,Gl:()=>g});var r=n(76792),l=n(42292),a=n(73675),o=n(1843),i=n(83531),c=n(75302),s=n(92700),d=n(16151),u=n(89170),f=n(24847),p=n(37811);let m="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV",v="production"!==p.env.VERCEL_TARGET_ENV,h=(0,l.createContext)(null),x=e=>{let{children:t,scriptSrc:n}=e,p=(0,c.md)(i.pX),x=(()=>{let e=(0,s.N)(),t=(0,d.G)();return(0,l.useCallback)(function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return void console.warn("MParticle is not initialized");if(!n)return void console.warn("No exposure data provided to trackEnrolledInExperiment");try{var l,a,o,i;let t={...e,newVariant:n.variant||"",newExperiment:n.experiment_key||"",newExperimentReceivedAt:Date.now()};null==(i=window.mParticle)||null==(o=i.logEvent)||o.call(i,"enrolled-in-experiment",null==(a=window.mParticle)||null==(l=a.EventType)?void 0:l.Other,t,r),console.debug("MParticle: Event tracked - enrolled-in-experiment for ".concat(n.flag_key||"unknown",":").concat(n.variant))}catch(e){console.error("MParticle: Failed to track event",e)}},[t,e])})(),{user:g}=(0,u.J)(),[w,y]=(0,l.useState)(!1),b=function(e,t){let n=(0,l.useRef)(null),[r,a]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(o.A&&!r&&m&&t){if(!window.Experiment)return void console.error("Amplitude Experiment SDK not loaded. Script may still be loading.");try{n.current=window.Experiment.initialize(m,{debug:v,fetchTimeoutMillis:5e3,retryFetchOnFailure:!0,fetchOnStart:!1,exposureTrackingProvider:{track:t=>{try{console.debug("[Experiment] Raw Exposure:",t),e(t),console.debug("[Experiment] Exposure tracked:",t)}catch(e){console.error("[Experiment] Failed to track exposure:",e)}}}}),a(!0),console.debug("Amplitude Experiment SDK initialized")}catch(e){console.error("Failed to initialize Amplitude Experiment SDK:",e)}}},[r,t,e]),n.current}(x,w);return(0,l.useEffect)(()=>{(async()=>{if(b){var e;let t=null==(e=(0,f.getCookie)("ANON_C"))?void 0:e.toString(),n=g.userID||t||p;if(!n)return console.debug("[Experiment] No user identifier available");let r={device_id:p,user_id:n,user_properties:{}};console.debug("[Experiment] Fetching experiments for user:",r),await b.fetch(r)}})()},[b,p,g.userID]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.default,{src:n,strategy:"afterInteractive",onLoad:()=>{y(!0),console.debug("Amplitude Experiment script loaded")},onError:e=>{console.error("Failed to load Amplitude Experiment script:",e)}}),(0,r.jsx)(h.Provider,{value:{client:b,variant:(e,t)=>{if(!b)return t;let n=b.variant(e,t);return console.debug("[Experiment] Current Variant:",n),n},fetch:e=>{if(!b)return Promise.resolve();if(!e){var t;let e=null==(t=(0,f.getCookie)("ANON_C"))?void 0:t.toString(),n=g.userID||e||p;if(n){let e=g.userID?{user_id:n,user_properties:{}}:{device_id:n,user_properties:{}};return b.fetch(e)}}return b.fetch(e)}},children:t})]})},g=()=>{let e=(0,l.useContext)(h);if(!e)throw Error("useExperimentContext must be used within an AmplitudeExperimentProvider");return e}},99551:(e,t,n)=>{n.d(t,{AM:()=>c,Rp:()=>d,Wv:()=>s,hl:()=>u});var r=n(76792),l=n(42292),a=n(19646),o=n(48260);let i=l.createContext({trigger:"click",onMouseEnter:()=>{},onMouseLeave:()=>{}});function c(e){let{trigger:t="click",openDelay:n=0,closeDelay:o=300,open:c,onOpenChange:s,...d}=e,[u,f]=l.useState(c||!1),p=l.useRef(null),m=l.useRef(null);l.useEffect(()=>{void 0!==c&&f(c)},[c]);let v=l.useCallback(e=>{f(e),null==s||s(e)},[s]);l.useEffect(()=>()=>{p.current&&clearTimeout(p.current),m.current&&clearTimeout(m.current)},[]);let h=l.useCallback(()=>{"hover"===t&&(m.current&&(clearTimeout(m.current),m.current=null),u||(p.current=setTimeout(()=>{v(!0)},n)))},[t,u,n,v]),x=l.useCallback(()=>{"hover"===t&&(p.current&&(clearTimeout(p.current),p.current=null),m.current=setTimeout(()=>{v(!1)},o))},[t,o,v]),g=l.useMemo(()=>({trigger:t,onMouseEnter:h,onMouseLeave:x}),[t,h,x]);return(0,r.jsx)(i.Provider,{value:g,children:(0,r.jsx)(a.bL,{"data-slot":"popover",open:u,onOpenChange:v,...d})})}function s(e){let{triggerClass:t,...n}=e,{trigger:o,onMouseEnter:c,onMouseLeave:s}=l.useContext(i);return(0,r.jsx)(a.l9,{"data-slot":"popover-trigger",className:t,..."hover"===o?{onMouseEnter:c,onMouseLeave:s}:{},...n})}function d(e){let{...t}=e;return(0,r.jsx)(a.i3,{"data-slot":"popover-arrow",...t})}function u(e){let{className:t,align:n="center",sideOffset:c=4,children:s,showArrow:d=!0,...u}=e,{trigger:f,onMouseEnter:p,onMouseLeave:m}=l.useContext(i);return(0,r.jsx)(a.ZL,{children:(0,r.jsxs)(a.UC,{"data-slot":"popover-content",align:n,sideOffset:c,className:(0,o.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border-none p-4 shadow-[0_2px_12px_0_#0003] outline-hidden",t),..."hover"===f?{onMouseEnter:p,onMouseLeave:m}:{},...u,children:[d&&(0,r.jsx)(a.i3,{className:"border-none fill-white",height:12,width:20}),s]})})}}}]);