(globalThis.TURBOPACK_remote_chunk_loading_global_prj_Ea8QNpCs22Ye85AIRZ6hT1aa8n7z||(globalThis.TURBOPACK_remote_chunk_loading_global_prj_Ea8QNpCs22Ye85AIRZ6hT1aa8n7z=[])).push(["object"==typeof document?document.currentScript:void 0,75335,e=>{"use strict";var t=e.i(43476),n=e.i(30086),r=e.i(52236);e.s(["default",0,function({label:e="Close",className:a,...i}){return(0,t.jsx)("button",{type:"button","aria-label":e,className:(0,r.cn)("flex size-8 shrink-0 press-92 items-center justify-center rounded-full bg-surface-muted text-fg focus-visible:ring-2 focus-visible:ring-focus focus-visible:outline-none",a),...i,children:(0,t.jsx)(n.X,{size:16,"aria-hidden":"true"})})}])},67491,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(52236);let a=['aria-checked="true"','aria-pressed="true"','data-state="active"'].map(e=>`:scope > [${e}]`).join(", ");function i(e,t,n){let r=e?.parentElement?.querySelector(a);!e||(e.style.opacity=r?"":"0",r&&(e.style.transition=t?"":"none",n?(e.style.height=`${r.offsetHeight}px`,e.style.translate=`0 ${r.offsetTop}px`):(e.style.width=`${r.offsetWidth}px`,e.style.translate=`${r.offsetLeft}px 0`)))}e.s(["SegmentPill",0,function({className:e,vertical:a=!1}){let o=(0,n.useRef)(null),s=(0,n.useRef)(!1);return(0,n.useLayoutEffect)(()=>{i(o.current,s.current,a),s.current=!0}),(0,n.useLayoutEffect)(()=>{let e=o.current?.parentElement;if(!e)return;let t=new ResizeObserver(()=>i(o.current,!1,a));return t.observe(e),()=>t.disconnect()},[a]),(0,t.jsx)("span",{ref:o,"aria-hidden":"true",className:(0,r.cn)("pointer-events-none absolute segment-slide",a?"top-0":"left-0",e)})}])},10423,e=>{"use strict";var t=e.i(43476),n=e.i(52236),r=e.i(74271),a=e.i(67491),i=e.i(26320);let o=[{value:"imperial",text:"US (°F, mph, ft)"},{value:"metric",text:"Metric (°C, km/h, m)"}];e.s(["default",0,function({className:e}){let s=(0,i.useUnits)();return(0,t.jsxs)("div",{role:"radiogroup","aria-label":"Units","data-testid":"units-switch",className:(0,n.cn)(r.segmentTrack,"relative",e),children:[(0,t.jsx)(a.SegmentPill,{className:r.segmentPill}),o.map(({value:e,text:a})=>(0,t.jsx)("button",{type:"button",role:"radio","aria-checked":s===e,onClick:()=>(0,i.setUnits)(e),className:(0,n.cn)(r.segmentItem,"px-2",(0,r.segmentItemState)(s===e,!0)),children:a},e))]})}])},74205,e=>{"use strict";var t=e.i(43476),n=e.i(30086),r=e.i(57688),a=e.i(52236),i=e.i(66691),o=e.i(75335);e.i(55294);var s=e.i(69655),l=e.i(35120),d=e.i(93549);let c="https://s.w-x.co/assets/radar/upsells",u=[{label:"No Ads",bold:!0},{label:"Storm Radar iOS app",isNew:!0},{label:"Morning Brief newsletter"},{label:"72-Hour Future Radar"},{label:"192-Hour forecast"},{label:"Extended 15-minute details"}],f=[{logo:"spotify-logo.png",alt:"Spotify",text:"Up to 4 months free"},{logo:"outside-logo.png",alt:"Outside+",text:"45% off Outside+"},{logo:"viator-logo.png",alt:"Viator",text:"15% off experiences"},{logo:"birdies-logo.png",alt:"18Birdies",text:"Free trial + 30% off"}];function g(e){return"intro"===e?"Welcome to Flights":l.PREMIUM_ENABLED?"Unlock Premium Flight Risk Tracking":"Sign in to track more flights"}let m=()=>(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-flex size-4 shrink-0 items-center justify-center rounded-full border border-[#204794] text-[#204794] dark:border-interactive dark:text-fg-interactive",children:(0,t.jsx)(n.Check,{"aria-hidden":!0,className:"size-[9px]"})});function p({onClose:e,variant:n="limit",Title:r="h2"}){return(0,t.jsxs)("div",{"data-testid":"upgrade-prompt",className:"w-full text-fg",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(r,{className:"flex min-h-8 min-w-0 flex-1 items-center text-sheet-title",children:g(n)}),(0,t.jsx)(o.default,{onClick:e})]}),(0,t.jsx)("p",{className:"mt-2 text-body text-fg-secondary",children:"intro"===n?`Track ${(0,s.freeFlightsText)()} and see the weather risk along the way. Sign in with a free weather.com account for unlimited tracking.`:`You've tracked ${(0,s.freeFlightsText)()}. Sign in with a free weather.com account for unlimited tracking.`}),(0,t.jsx)(d.default,{onOpen:e,"data-testid":"upgrade-prompt-sign-in",className:"mt-5 flex h-11 press-97 items-center justify-center rounded-full bg-interactive px-4 text-body-strong text-fg-on-interactive hover:bg-interactive-hover",children:"Sign in"})]})}function x({onClose:e,variant:o="limit"}){return(0,t.jsxs)("div",{"data-testid":"upgrade-prompt",className:"relative max-h-full w-full overflow-y-auto rounded-lg bg-[#F2F2F2] text-[#252422] dark:bg-surface-raised dark:text-fg",children:[(0,t.jsx)("button",{type:"button","aria-label":"Close",onClick:e,className:"absolute top-3 right-3 z-10 flex size-8 cursor-pointer items-center justify-center rounded-full bg-surface-muted text-fg transition-colors hover:bg-surface-muted",children:(0,t.jsx)(n.XIcon,{"aria-hidden":!0,className:"size-4"})}),(0,t.jsx)("p",{className:"px-12 pt-10 pb-1 text-center text-sm text-[#676767] dark:text-fg-secondary",children:"forecast"===o?(0,t.jsxs)(t.Fragment,{children:["Future radar and the forecast timeline are part of Premium. Already a subscriber?"," ",(0,t.jsx)(d.default,{onOpen:e,"data-testid":"upgrade-prompt-sign-in",className:"font-semibold text-[#204794] hover:underline dark:text-fg-interactive",children:"Sign in"}),"."]}):"intro"===o?(0,t.jsxs)(t.Fragment,{children:["Track your flights and see weather risk along the way —"," ",(0,t.jsx)(d.default,{onOpen:e,"data-testid":"upgrade-prompt-sign-in",className:"font-semibold text-[#204794] hover:underline dark:text-fg-interactive",children:"sign in"})," ","for unlimited tracking, free."]}):(0,t.jsxs)(t.Fragment,{children:["You've tracked ",(0,s.freeFlightsText)()," —"," ",(0,t.jsx)(d.default,{onOpen:e,"data-testid":"upgrade-prompt-sign-in",className:"font-semibold text-[#204794] hover:underline dark:text-fg-interactive",children:"sign in"})," ","for unlimited tracking."]})}),(0,t.jsxs)("div",{className:"flex flex-col px-6 pt-2 pb-4 max-md:px-4 max-md:pb-3",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-6 max-md:mb-2",children:[(0,t.jsx)(r.default,{className:"h-[76px] w-[200px] shrink-0 rounded-lg object-cover max-md:hidden",src:`${c}/radar-upsell.jpg`,alt:"Flight weather risk radar",width:200,height:76,unoptimized:!0}),(0,t.jsx)("h2",{className:"m-0 flex-1 text-xl leading-[1.1] font-semibold max-md:text-center max-md:text-lg",children:"intro"===o?"Welcome to Flights — See Weather Risk Before You Fly":"forecast"===o?"Unlock 72-Hour Future Radar, Plus Much More":"Unlock Premium Flight Risk Tracking, Plus Much More"})]}),(0,t.jsxs)("div",{className:"mb-3 rounded-xl bg-surface p-4 max-md:mb-2 max-md:p-3",children:[(0,t.jsxs)("p",{className:"m-0 mb-3 text-center text-sm leading-[1.4] font-medium text-[#204794] max-md:mb-2 dark:text-fg-interactive",children:["No ads. Premium features."," ",(0,t.jsx)("strong",{className:"font-bold",children:"And plenty of perks."})]}),(0,t.jsxs)("div",{className:"flex gap-4 max-md:gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"m-0 mb-3 border-b border-[#CDCDCD] pb-2 text-sm leading-[1.15] font-medium text-[#252422] max-md:mb-2 max-md:pb-1 dark:border-default dark:text-fg",children:"Premium Features"}),(0,t.jsx)("ul",{className:"m-0 list-none p-0",children:u.map(({label:e,bold:n,isNew:r})=>(0,t.jsxs)("li",{className:"flex items-center gap-2 py-1 max-md:gap-1.5 max-md:py-0.5",children:[(0,t.jsx)(m,{}),(0,t.jsxs)("span",{className:(0,a.cn)("text-sm leading-[1.15] max-md:text-xs",n?"font-bold":"font-medium"),children:[r?(0,t.jsx)("span",{className:"font-bold text-[#FF4C02]",children:"NEW → "}):null,e]})]},e))})]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,t.jsxs)("h3",{className:"m-0 mb-3 border-b border-[#CDCDCD] pb-2 text-sm leading-[1.15] font-medium text-[#252422] max-md:mb-2 max-md:pb-1 dark:border-default dark:text-fg",children:["Premium Perks,"," ",(0,t.jsx)("span",{className:"font-bold",children:"up to $187 value!"})]}),(0,t.jsx)("ul",{className:"m-0 flex grow list-none flex-col justify-around p-0",children:f.map(({logo:e,alt:n,text:a})=>(0,t.jsxs)("li",{className:"flex items-center gap-2 py-1 max-md:gap-1.5 max-md:py-0.5",children:[(0,t.jsx)(r.default,{src:`${c}/${e}`,alt:n,width:64,height:24,className:"h-6 w-16 shrink-0 object-contain object-left max-md:h-4.5 max-md:w-12 dark:brightness-0 dark:invert",unoptimized:!0}),(0,t.jsx)("span",{className:"text-sm leading-[1.15] font-bold max-md:text-xs",children:a})]},n))})]})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-6 max-md:flex-col max-md:gap-3",children:[(0,t.jsx)(i.Button,{asChild:!0,className:"h-auto rounded-lg bg-[#252422] px-5 py-2.5 text-white hover:bg-[#3a3a3a] dark:bg-surface-inverse dark:text-fg-inverse dark:hover:bg-surface-inverse/90",children:(0,t.jsx)("a",{href:"https://weather.com/subscribe",children:(0,t.jsxs)("span",{className:"flex flex-col items-center leading-tight",children:[(0,t.jsx)("span",{className:"text-sm font-bold",children:"Try Premium FREE for 7 days"}),(0,t.jsx)("span",{className:"text-xs font-normal opacity-80",children:"New subscribers only"})]})})}),(0,t.jsx)("a",{href:"https://weather.com/subscribe/premium-perks",className:"text-sm font-bold text-[#252422] hover:opacity-70 dark:text-fg",children:"Learn More"})]})]})]})}e.s(["PremiumUpsell",0,x,"default",0,function(e){return l.PREMIUM_ENABLED?(0,t.jsx)(x,{...e}):(0,t.jsx)(p,{...e})},"upgradeTitle",0,g])},99039,e=>{"use strict";e.s(["FLOATING_BAR_STYLE",0,{position:"absolute",bottom:"calc(12px + var(--flint-sheet-v, 0px))",left:"50%",transform:"translateX(-50%)",zIndex:10,width:"min(640px, calc(100% - 24px))",border:"1px solid var(--border-color-subtle)",borderRadius:20,background:"color-mix(in srgb, var(--color-surface) 88%, transparent)",backdropFilter:"blur(14px)",WebkitBackdropFilter:"blur(14px)",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.22)",padding:"12px 16px 14px"},"roundPlayStyle",0,function(e){return{background:e?"var(--color-surface-muted)":"var(--color-interactive)",color:e?"var(--color-fg-disabled)":"var(--color-fg-on-interactive)",border:"none",borderRadius:"50%",width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",cursor:e?"default":"pointer",flexShrink:0,padding:0}},"roundStepStyle",0,function(e){return{background:"var(--color-surface-muted)",color:e?"var(--color-fg-disabled)":"var(--color-fg-secondary)",border:"none",borderRadius:"50%",width:30,height:30,display:"flex",alignItems:"center",justifyContent:"center",cursor:e?"default":"pointer",flexShrink:0,padding:0}}])},66691,e=>{"use strict";var t=e.i(43476),n=e.i(25913),r=e.i(52236),a=e.i(86011);let i=(0,n.cva)("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:n="default",size:o="default",asChild:s=!1,...l}){let d=s?a.Slot.Root:"button";return(0,t.jsx)(d,{"data-slot":"button","data-variant":n,"data-size":o,className:(0,r.cn)(i({variant:n,size:o,className:e})),...l})}])},82879,e=>{"use strict";var t=e.i(43476),n=e.i(52236),r=e.i(30086),a=e.i(64053);e.i(66691);var i=e.i(75335);function o({...e}){return(0,t.jsx)(a.Dialog.Portal,{"data-slot":"dialog-portal",...e})}let s={classic:"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",flint:"fixed inset-0 z-50 bg-overlay data-[state=open]:animate-scrim-in data-[state=closed]:animate-scrim-out"},l={classic:"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none sm:max-w-lg",flint:"fixed top-[9vh] left-1/2 z-50 flex max-h-[76vh] w-[min(560px,calc(100vw-2rem))] -translate-x-1/2 flex-col gap-4 rounded-dialog border border-subtle bg-surface-floating p-4.5 text-fg shadow-floating outline-none data-[state=open]:animate-dialog-in data-[state=closed]:animate-dialog-out"};function d({className:e,variant:r="classic",...i}){return(0,t.jsx)(a.Dialog.Overlay,{"data-slot":"dialog-overlay",className:(0,n.cn)(s[r],e),...i})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(a.Dialog.Root,{"data-slot":"dialog",...e})},"DialogClose",0,function({...e}){return(0,t.jsx)(a.Dialog.Close,{"data-slot":"dialog-close",...e})},"DialogContent",0,function({className:e,children:s,showCloseButton:c=!0,variant:u="classic",...f}){return(0,t.jsxs)(o,{"data-slot":"dialog-portal",children:[(0,t.jsx)(d,{variant:u}),(0,t.jsxs)(a.Dialog.Content,{"data-slot":"dialog-content","data-variant":u,className:(0,n.cn)(l[u],e),...f,children:[s,c&&"flint"===u&&(0,t.jsx)(a.Dialog.Close,{asChild:!0,children:(0,t.jsx)(i.default,{className:"absolute top-4.5 right-4.5"})}),c&&"classic"===u&&(0,t.jsxs)(a.Dialog.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,t.jsx)(r.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})},"DialogDescription",0,function({className:e,...r}){return(0,t.jsx)(a.Dialog.Description,{"data-slot":"dialog-description",className:(0,n.cn)("text-sm text-muted-foreground",e),...r})},"DialogTitle",0,function({className:e,...r}){return(0,t.jsx)(a.Dialog.Title,{"data-slot":"dialog-title",className:(0,n.cn)("text-lg leading-none font-semibold",e),...r})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(a.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})},"FLINT_SHEET_HEIGHT",0,"top-[6vh] h-[min(920px,88vh)] max-h-none"])},49415,e=>{"use strict";var t=e.i(30929),n=e.i(73621);function r(e){let t=e.flight;if(!t)return null;let n=t.times.gateOut.best,r=t.times.gateIn.best;if(!n||!r)return null;let a=new Date(n).getTime(),i=new Date(r).getTime();return Number.isNaN(a)||Number.isNaN(i)||i0:"taxiing-out"!==t.status&&null!=t.times.gateOut.actual)}function i(e){return e.flight?.times.gateIn.actual!=null}e.s(["airborneWindow",0,function(e){let t=r(e);if(!t)return null;let a=e=>e?Date.parse(e):null;return(0,n.airborneWindow)(t,a(e.flight?.times.takeoff.best),a(e.flight?.times.landing.best))},"buildTimeline",0,function(e){let t=e.map(e=>({leg:e,window:r(e)})).filter(e=>null!==e.window).sort((e,t)=>e.window.start-t.window.start);if(0===t.length)return{segments:[],overallWindow:null};let n=[];for(let e=0;ei.window.start&&console.warn("[flightTimeline] overlapping leg windows",r.ident,i.leg.ident)}return{segments:n,overallWindow:{start:n[0].start,end:n[n.length-1].end}}},"estimatedFractionWithoutFix",0,function(e){if(e.position||e.trackPositions?.length||!a(e)||i(e))return null;let t=e.flight?.progressPercent;return null!=t&&t>0?Math.min(t,99)/100:null},"findActiveSegment",0,function(e,t){for(let n=0;n=r.start&&(a?t{"use strict";let t="flights:stop-playback";e.s(["onStopPlayback",0,function(e){return window.addEventListener(t,e),()=>window.removeEventListener(t,e)},"stopPlayback",0,function(){window.dispatchEvent(new Event(t))}])},64053,26999,e=>{"use strict";var t=e.i(71645),n=e.i(81140),r=e.i(20783),a=e.i(30030),i=e.i(10772),o=e.i(69340),s=e.i(26330),l=e.i(65491),d=e.i(74606),c=e.i(96626),u=e.i(48425),f=e.i(3536),g=e.i(34620),m=e.i(85369),p=e.i(86312),x=e.i(91918),h=e.i(43476),v=Object.defineProperty,b=(e,t)=>v(e,"name",{value:t,configurable:!0}),y="Dialog",[j,k]=(0,a.createContextScope)(y),[w,D]=j(y),N=b(e=>{let{__scopeDialog:n,children:r,open:a,defaultOpen:s,onOpenChange:l,modal:d=!0}=e,c=t.useRef(null),u=t.useRef(null),[f,g]=(0,o.useControllableState)({prop:a,defaultProp:s??!1,onChange:l,caller:y}),[m,p]=t.useState(0),[x,v]=t.useState(0);return(0,h.jsx)(w,{scope:n,triggerRef:c,contentRef:u,contentId:(0,i.useId)(),titleId:(0,i.useId)(),descriptionId:(0,i.useId)(),titlePresent:m>0,descriptionPresent:x>0,setTitleCount:p,setDescriptionCount:v,open:f,onOpenChange:g,onOpenToggle:t.useCallback(()=>g(e=>!e),[g]),modal:d,children:r})},"Dialog"),C=t.forwardRef(b(function(e,t){let{__scopeDialog:a,...i}=e,o=D("DialogTrigger",a),s=(0,r.useComposedRefs)(t,o.triggerRef);return(0,h.jsx)(u.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":B(o.open),...i,ref:s,onClick:(0,n.composeEventHandlers)(e.onClick,o.onOpenToggle)})},"DialogTrigger")),S="DialogPortal",[P,R]=j(S,{forceMount:void 0}),M=b(e=>{let{__scopeDialog:n,forceMount:r,children:a,container:i}=e,o=D(S,n);return(0,h.jsx)(P,{scope:n,forceMount:r,children:t.Children.map(a,e=>(0,h.jsx)(c.Presence,{present:r||o.open,children:(0,h.jsx)(d.Portal,{asChild:!0,container:i,children:e})}))})},"DialogPortal"),_="DialogOverlay",F=t.forwardRef(b(function(e,t){let n=R(_,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=D(_,e.__scopeDialog);return i.modal?(0,h.jsx)(c.Presence,{present:r||i.open,children:(0,h.jsx)(T,{...a,ref:t})}):null},"DialogOverlay")),E=(0,x.createSlot)("DialogOverlay.RemoveScroll"),T=t.forwardRef(b(function(e,t){let{__scopeDialog:n,...a}=e,i=D(_,n),o=(0,s.useDismissableLayerSurface)(),l=(0,r.useComposedRefs)(t,o);return(0,h.jsx)(m.RemoveScroll,{as:E,allowPinchZoom:!0,shards:[i.contentRef],children:(0,h.jsx)(u.Primitive.div,{"data-state":B(i.open),...a,ref:l,style:{pointerEvents:"auto",...a.style}})})},"DialogOverlayImpl")),O="DialogContent",z=t.forwardRef(b(function(e,t){let n=R(O,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=D(O,e.__scopeDialog);return(0,h.jsx)(c.Presence,{present:r||i.open,children:i.modal?(0,h.jsx)(I,{...a,ref:t}):(0,h.jsx)(A,{...a,ref:t})})},"DialogContent")),I=t.forwardRef(b(function(e,a){let i=D(O,e.__scopeDialog),o=t.useRef(null),s=(0,r.useComposedRefs)(a,i.contentRef,o);return t.useEffect(()=>{let e=o.current;if(e)return(0,p.hideOthers)(e)},[]),(0,h.jsx)(L,{...e,ref:s,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:(0,n.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:(0,n.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,n.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),A=t.forwardRef(b(function(e,n){let r=D(O,e.__scopeDialog),a=t.useRef(!1),i=t.useRef(!1);return(0,h.jsx)(L,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||r.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"DialogContentNonModal")),L=t.forwardRef(b(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=e,d=D(O,n);return(0,f.useFocusGuards)(),(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,h.jsx)(s.DismissableLayer,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionPresent?d.descriptionId:void 0,"aria-labelledby":d.titlePresent?d.titleId:void 0,"data-state":B(d.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>d.onOpenChange(!1)})})})},"DialogContentImpl")),$=t.forwardRef(b(function(e,t){let{__scopeDialog:n,...r}=e,a=D("DialogTitle",n),{setTitleCount:i}=a;return(0,g.useLayoutEffect)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,h.jsx)(u.Primitive.h2,{id:a.titleId,...r,ref:t})},"DialogTitle")),H=t.forwardRef(b(function(e,t){let{__scopeDialog:n,...r}=e,a=D("DialogDescription",n),{setDescriptionCount:i}=a;return(0,g.useLayoutEffect)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,h.jsx)(u.Primitive.p,{id:a.descriptionId,...r,ref:t})},"DialogDescription")),U=t.forwardRef(b(function(e,t){let{__scopeDialog:r,...a}=e,i=D("DialogClose",r);return(0,h.jsx)(u.Primitive.button,{type:"button",...a,ref:t,onClick:(0,n.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})},"DialogClose")),W=b(e=>e.children,"WarningProvider");function B(e){return e?"open":"closed"}b(B,"getState"),e.s(["Close",0,U,"Content",0,z,"Description",0,H,"Dialog",0,N,"DialogClose",0,U,"DialogContent",0,z,"DialogDescription",0,H,"DialogOverlay",0,F,"DialogPortal",0,M,"DialogTitle",0,$,"DialogTrigger",0,C,"Overlay",0,F,"Portal",0,M,"Root",0,N,"Title",0,$,"Trigger",0,C,"WarningProvider",0,W,"createDialogScope",0,k],26999);var Y=e.i(26999);e.s(["Dialog",0,Y],64053)},25913,86011,e=>{"use strict";var t=e.i(7670);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,r=t.clsx;e.s(["cva",0,(e,t)=>a=>{var i;if((null==t?void 0:t.variants)==null)return r(e,null==a?void 0:a.class,null==a?void 0:a.className);let{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(e=>{let t=null==a?void 0:a[e],r=null==s?void 0:s[e];if(null===t)return null;let i=n(t)||n(r);return o[e][i]}),d=a&&Object.entries(a).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return r(e,l,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...d}[t]):({...s,...d})[t]===n})?[...e,n,r]:e},[]),null==a?void 0:a.class,null==a?void 0:a.className)}],25913);var a=e.i(91918);e.s(["Slot",0,a],86011)},463,e=>{"use strict";let t=(0,e.i(75254).default)("locate-fixed",[["line",{x1:"2",x2:"5",y1:"12",y2:"12",key:"bvdh0s"}],["line",{x1:"19",x2:"22",y1:"12",y2:"12",key:"1tbv5k"}],["line",{x1:"12",x2:"12",y1:"2",y2:"5",key:"11lu5j"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}],["circle",{cx:"12",cy:"12",r:"7",key:"fim9np"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["LocateFixed",0,t],463)},3781,(e,t,n)=>{"use strict";n.Fragment=Symbol.for("react.fragment"),n.jsxDEV=void 0},21694,(e,t,n)=>{"use strict";e.i(47167),t.exports=e.r(3781)},93547,e=>{"use strict";e.s(["CORS_DOCS_URL",0,"https://vercel.com/docs/remote-components/concepts/cors-external-urls#accessing-cross-site-protected-remote-components","MISSING_SHARED_MODULES_MESSAGE",0,"Remote Components shared modules not found. Did you forget to wrap your config with `withRemoteComponentsConfig` on both host and remote?","RC_PROTECTED_REMOTE_FETCH_PATHNAME",0,"/rc-fetch-protected-remote"])},53069,e=>{"use strict";let t=Math.ceil(53.333333333333336),n=(e,t)=>Math.floor(e/t)*t,r=(e,t)=>Math.ceil(e/t)*t;function a(e,t){let n=e.length;if(t1?Math.max(9e5,e[n-1]-e[n-2]):9e5;return e[n-1]+(t-n+1)*r}function i(e,t){let n=0;for(let r=1;rMath.abs(n))return"Now";let r=Math.abs(n),a=r>=1440?`${Math.floor(r/1440)}d ${Math.round(r%1440/60)}h`:r>=60?`${Math.floor(r/60)}h ${r%60}m`:`${r}m`;return n>0?`In ${a}`:`${a} ago`},"clockLabel",0,function(e,t){let n=new Date(e),r=n.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});return n.toDateString()===new Date(t).toDateString()?r:`${n.toLocaleDateString("en-US",{weekday:"short"})} ${r}`},"frameAnHourFrom",0,function(e,t,n){let r=e.length-1,a=i(e,e[t]+36e5*n);return Math.max(0,Math.min(r,a===t?t+n:a))},"hourLabel",0,function(e){let t=new Date(e);return 0===t.getHours()?t.toLocaleDateString("en-US",{weekday:"short"}):t.toLocaleTimeString("en-US",{hour:"numeric"})},"isHourlyFrame",0,(e,t)=>t+1=354e4,"nearestFrame",0,i,"playRate",0,function(e,t,n){let r=e?.find(e=>n>=e.start&&n=354e4?6:1,c=`${l.toDateString()}-${l.getHours()}`;l.getMinutes()=4&&(i.add(c),o=t,r.push({k:t,t:n}))}return r},"slotOf",0,function(e,t,n){let r=e.length+t;if(re){let t=n(e,36e5)+216e5,r=l+9e5;for(;r