(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,367810,396817,634177,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(543836),l=e.i(271359),i=e.i(855128),n=e.i(296994),o=e.i(803976),s=e.i(698900),c=e.i(546504),d=e.i(778469),u=e.i(312610),f=e.i(942928),x=e.i(235453),p=e.i(714035),g=e.i(621790),m=e.i(73772),h=e.i(982538),y=Object.defineProperty,v=(e,t)=>y(e,"name",{value:t,configurable:!0}),b="Dialog",[w,C]=(0,i.createContextScope)(b),[E,j]=w(b),T=v(e=>{let{__scopeDialog:r,children:l,open:i,defaultOpen:s,onOpenChange:c,modal:d=!0}=e,u=a.useRef(null),f=a.useRef(null),[x,p]=(0,o.useControllableState)({prop:i,defaultProp:s??!1,onChange:c,caller:b}),[g,m]=a.useState(0),[h,y]=a.useState(0);return(0,t.jsx)(E,{scope:r,triggerRef:u,contentRef:f,contentId:(0,n.useId)(),titleId:(0,n.useId)(),descriptionId:(0,n.useId)(),titlePresent:g>0,descriptionPresent:h>0,setTitleCount:m,setDescriptionCount:y,open:x,onOpenChange:p,onOpenToggle:a.useCallback(()=>p(e=>!e),[p]),modal:d,children:l})},"Dialog"),D=a.forwardRef(v(function(e,a){let{__scopeDialog:i,...n}=e,o=j("DialogTrigger",i),s=(0,l.useComposedRefs)(a,o.triggerRef);return(0,t.jsx)(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":G(o.open),...n,ref:s,onClick:(0,r.composeEventHandlers)(e.onClick,o.onOpenToggle)})},"DialogTrigger")),R="DialogPortal",[L,S]=w(R,{forceMount:void 0}),A=v(e=>{let{__scopeDialog:r,forceMount:l,children:i,container:n}=e,o=j(R,r);return(0,t.jsx)(L,{scope:r,forceMount:l,children:a.Children.map(i,e=>(0,t.jsx)(u.Presence,{present:l||o.open,children:(0,t.jsx)(d.Portal,{asChild:!0,container:n,children:e})}))})},"DialogPortal"),P="DialogOverlay",I=a.forwardRef(v(function(e,a){let r=S(P,e.__scopeDialog),{forceMount:l=r.forceMount,...i}=e,n=j(P,e.__scopeDialog);return n.modal?(0,t.jsx)(u.Presence,{present:l||n.open,children:(0,t.jsx)(_,{...i,ref:a})}):null},"DialogOverlay")),B=(0,h.createSlot)("DialogOverlay.RemoveScroll"),_=a.forwardRef(v(function(e,a){let{__scopeDialog:r,...i}=e,n=j(P,r),o=(0,s.useDismissableLayerSurface)(),c=(0,l.useComposedRefs)(a,o);return(0,t.jsx)(g.RemoveScroll,{as:B,allowPinchZoom:!0,shards:[n.contentRef],children:(0,t.jsx)(f.Primitive.div,{"data-state":G(n.open),...i,ref:c,style:{pointerEvents:"auto",...i.style}})})},"DialogOverlayImpl")),N="DialogContent",k=a.forwardRef(v(function(e,a){let r=S(N,e.__scopeDialog),{forceMount:l=r.forceMount,...i}=e,n=j(N,e.__scopeDialog);return(0,t.jsx)(u.Presence,{present:l||n.open,children:n.modal?(0,t.jsx)(O,{...i,ref:a}):(0,t.jsx)(M,{...i,ref:a})})},"DialogContent")),O=a.forwardRef(v(function(e,i){let n=j(N,e.__scopeDialog),o=a.useRef(null),s=(0,l.useComposedRefs)(i,n.contentRef,o);return a.useEffect(()=>{let e=o.current;if(e)return(0,m.hideOthers)(e)},[]),(0,t.jsx)(U,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,a=0===t.button&&!0===t.ctrlKey;(2===t.button||a)&&e.preventDefault()}),onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),M=a.forwardRef(v(function(e,r){let l=j(N,e.__scopeDialog),i=a.useRef(!1),n=a.useRef(!1);return(0,t.jsx)(U,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||l.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(n.current=!0));let a=t.target;l.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&n.current&&t.preventDefault()}})},"DialogContentNonModal")),U=a.forwardRef(v(function(e,a){let{__scopeDialog:r,trapFocus:l,onOpenAutoFocus:i,onCloseAutoFocus:n,...o}=e,d=j(N,r);return(0,x.useFocusGuards)(),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(c.FocusScope,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:i,onUnmountAutoFocus:n,children:(0,t.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":G(d.open),...o,ref:a,deferPointerDownOutside:!0,onDismiss:()=>d.onOpenChange(!1)})})})},"DialogContentImpl")),F=a.forwardRef(v(function(e,a){let{__scopeDialog:r,...l}=e,i=j("DialogTitle",r),{setTitleCount:n}=i;return(0,p.useLayoutEffect)(()=>(n(e=>e+1),()=>n(e=>e-1)),[n]),(0,t.jsx)(f.Primitive.h2,{id:i.titleId,...l,ref:a})},"DialogTitle")),$=a.forwardRef(v(function(e,a){let{__scopeDialog:r,...l}=e,i=j("DialogDescription",r),{setDescriptionCount:n}=i;return(0,p.useLayoutEffect)(()=>(n(e=>e+1),()=>n(e=>e-1)),[n]),(0,t.jsx)(f.Primitive.p,{id:i.descriptionId,...l,ref:a})},"DialogDescription")),K=a.forwardRef(v(function(e,a){let{__scopeDialog:l,...i}=e,n=j("DialogClose",l);return(0,t.jsx)(f.Primitive.button,{type:"button",...i,ref:a,onClick:(0,r.composeEventHandlers)(e.onClick,()=>n.onOpenChange(!1))})},"DialogClose"));function G(e){return e?"open":"closed"}v(G,"getState"),e.s(["Close",0,K,"Content",0,k,"Description",0,$,"Overlay",0,I,"Portal",0,A,"Root",0,T,"Title",0,F,"Trigger",0,D],396817);var V=e.i(226602),z=e.i(632137),Y=e.i(877957),X=e.i(294237);e.i(368847);let H=(0,X.cva)("",{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-overlay 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-overlay 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"}});function W({...e}){return(0,t.jsx)(A,{"data-slot":"dialog-portal",...e})}function q({className:e,...a}){return(0,t.jsx)(I,{"data-slot":"dialog-overlay",className:(0,z.cn)(H({type:"overlay"}),e),...a})}function Z({className:e,overlayClassName:a,children:r,showCloseButton:l=!0,...i}){return(0,t.jsxs)(W,{"data-slot":"dialog-portal",children:[(0,t.jsx)(q,{className:a}),(0,t.jsxs)(k,{"data-slot":"dialog-content",className:(0,z.cn)(H({type:"content"}),e),...i,children:[r,l&&(0,t.jsxs)(K,{className:"absolute top-4 right-4 cursor-pointer transition-opacity hover:opacity-70 focus:outline-none",children:[(0,t.jsx)(V.Close,{className:"h-5 w-5 text-black"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function Q({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,z.cn)(H({type:"header"}),e),...a})}function J({className:e,children:a,...r}){return(0,t.jsx)(F,{"data-slot":"dialog-title",className:(0,z.cn)("pt-4 text-center",e),...r,children:a})}function ee({className:e,children:a,...r}){return(0,t.jsx)($,{"data-slot":"dialog-description",className:(0,z.cn)("pb-4 text-center",e),...r,children:a})}function et({primary:e,secondary:a,className:r}){return(0,t.jsxs)("div",{className:(0,z.cn)("flex flex-col-reverse gap-3",r),children:[a&&(0,t.jsx)(Y.Button,{variant:"secondary",onClick:a.onClick,className:"w-full",children:a.label}),e&&(0,t.jsx)(Y.Button,{variant:"default",onClick:e.onClick,className:"w-full",children:e.label})]})}e.s(["dialogStyles",0,H],634177),e.s(["BasicDialog",0,function({title:e,description:a,primaryAction:r,secondaryAction:l,showCloseButton:i=!0,className:n,children:o,...s}){return(0,t.jsxs)(Z,{showCloseButton:i,className:(0,z.cn)("p-6",n),...s,children:[(0,t.jsx)(Q,{children:(0,t.jsx)(J,{children:e})}),(0,t.jsx)(ee,{children:a}),o,(r||l)&&(0,t.jsx)(et,{primary:r,secondary:l})]})},"Dialog",0,function({...e}){return(0,t.jsx)(T,{"data-slot":"dialog",...e})},"DialogClose",0,function({...e}){return(0,t.jsx)(K,{"data-slot":"dialog-close",...e})},"DialogContent",0,Z,"DialogDescription",0,ee,"DialogFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,z.cn)(H({type:"footer"}),e),...a})},"DialogHeader",0,Q,"DialogOverlay",0,q,"DialogPortal",0,W,"DialogTitle",0,J,"DialogTrigger",0,function({...e}){return(0,t.jsx)(D,{"data-slot":"dialog-trigger",...e})}],367810)},294237,e=>{"use strict";var t=e.i(7284);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,r=t.clsx;e.s(["cva",0,(e,t)=>l=>{var i;if((null==t?void 0:t.variants)==null)return r(e,null==l?void 0:l.class,null==l?void 0:l.className);let{variants:n,defaultVariants:o}=t,s=Object.keys(n).map(e=>{let t=null==l?void 0:l[e],r=null==o?void 0:o[e];if(null===t)return null;let i=a(t)||a(r);return n[e][i]}),c=l&&Object.entries(l).reduce((e,t)=>{let[a,r]=t;return void 0===r||(e[a]=r),e},{});return r(e,s,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:a,className:r,...l}=t;return Object.entries(l).every(e=>{let[t,a]=e;return Array.isArray(a)?a.includes({...o,...c}[t]):({...o,...c})[t]===a})?[...e,a,r]:e},[]),null==l?void 0:l.class,null==l?void 0:l.className)}])},747961,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(294237),l=e.i(789876);let i=(0,r.cva)("inline-block",{variants:{size:{sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-16 h-16",xxl:"w-32 h-32"},color:{primary:"text-gray-900",brandDark:"text-brand-dark",brandLight:"text-brand-light",inverse:"text-white"}},defaultVariants:{size:"md",color:"primary"}}),n=a.default.forwardRef(({icon:e,size:a,color:r,title:n,desc:o,className:s,ariaHidden:c,...d},u)=>(0,t.jsx)(e,{ref:u,className:(0,l.cn)(i({size:a,color:r}),s),title:n,desc:o,...c&&{"aria-hidden":c},...d}));n.displayName="BaseIcon",e.s(["BaseIcon",0,n])},632137,e=>{"use strict";var t=e.i(7284);let a=(0,e.i(923191).extendTailwindMerge)({extend:{classGroups:{"font-size":[{text:["xxs"]}]},theme:{color:[{brand:["100","200","300","400","dark","light"]}]}}});e.s(["cn",0,function(...e){return a((0,t.clsx)(e))}])},683903,e=>{"use strict";var t=e.i(730921);function a(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let r=a(0,t.useTranslations),l=a(0,t.useFormatter);e.s(["useFormatter",0,l,"useTranslations",0,r])},368847,341669,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(294237),l=e.i(632137);let i=({skeletonClassName:e,elementType:a="span"})=>(0,t.jsx)(a,{className:(0,l.cn)("square inline-block animate-pulse rounded bg-gray-200",e)});e.s(["default",0,i],341669);let n={0:"No Clamp",1:"1 Line",2:"2 Lines",3:"3 Lines",4:"4 Lines",5:"5 Lines"};[0,1,2,3,4,5].map(e=>({label:n[e],value:String(e)}));let o=a.default.forwardRef(({className:e,isLoading:a,skeletonClassName:r,variant:n,elementType:o,lineClamp:c,color:d,responsive:u,children:f,...x},p)=>{if(a)return(0,t.jsx)(i,{skeletonClassName:r||""});let g=o||function({variant:e}){switch(e){case"Display.XL":case"Display.L":case"Title.XL":return"h1";case"Display.M":case"Display.S":case"Title.L":case"Title.M":case"Title.S":return"h2";default:return"p"}}({variant:n}),m=(0,t.jsx)(g,{className:(0,l.cn)(s({variant:n,color:d,lineClamp:c,responsive:u}),e),ref:p,...x,children:f});return u?(0,t.jsx)("div",{className:"@container/text",children:m}):m});o.displayName="Text";let s=(0,r.cva)("",{variants:{variant:{"Display.XL":["text-6xl","leading-relaxed","tracking-tighter"],"Display.L":["text-5xl","leading-normal","tracking-tighter","font-medium"],"Display.M":["text-4xl","leading-tight","tracking-tight","font-medium"],"Display.S":["text-xl","leading-relaxed","tracking-tight","font-medium"],"Title.XL":["text-4xl","leading-snug","tracking-tight","font-extrabold"],"Title.L":["text-3xl","leading-normal","tracking-tight","font-extrabold"],"Title.M":["text-2xl","leading-normal","tracking-tight","font-extrabold"],"Title.S":["text-xl","leading-normal","tracking-tight","font-bold"],"Title.XS":["text-base","leading-relaxed","tracking-tight","font-bold"],"Body.L":["text-lg","leading-loose","tracking-normal","font-medium"],"Body.L.Bold":["text-lg","leading-loose","tracking-normal","font-bold"],"Body.L.ExtraBold":["text-lg","leading-loose","tracking-normal","font-extrabold"],"Body.M":["text-base","leading-loose","tracking-tight","font-medium"],"Body.M.Bold":["text-base","leading-loose","tracking-tight","font-bold"],"Body.M.ExtraBold":["text-base","leading-loose","tracking-tight","font-extrabold"],"Body.S":["text-sm","leading-loose","tracking-tight","font-medium"],"Body.S.Bold":["text-sm","leading-loose","tracking-normal","font-bold"],"Caption.M":["text-xs","leading-normal","tracking-normal","font-medium"],"Caption.M.Bold":["text-xs","leading-normal","tracking-normal","font-bold"],"Caption.S":["text-xxs","leading-loose","tracking-tight","font-medium"],"Caption.S.Bold":["text-xxs","leading-loose","tracking-normal","font-bold"]},responsive:{true:"",false:""},color:{primary:"text-gray-900",secondary:"text-gray-500",default:"text-gray-900",disabled:"text-gray-400",placeholder:"text-gray-600",brandDark:"text-brand-dark",brandLight:"text-brand-light",inverse:"text-white",error:"text-[var(--color-alert-severe)]"},lineClamp:{0:"",1:"line-clamp-1 pb-0.5",2:"line-clamp-2 pb-0.5",3:"line-clamp-3 pb-0.5",4:"line-clamp-4 pb-0.5",5:"line-clamp-5 pb-0.5"}},compoundVariants:[{variant:"Display.XL",responsive:!0,class:"text-4xl @sm/text:text-5xl @lg/text:text-6xl"},{variant:"Display.L",responsive:!0,class:"text-2xl @sm/text:text-4xl @lg/text:text-5xl"},{variant:"Display.M",responsive:!0,class:"text-xl @sm/text:text-2xl @lg/text:text-4xl"},{variant:"Display.S",responsive:!0,class:"text-lg @sm/text:text-xl @lg/text:text-2xl"},{variant:"Title.XL",responsive:!0,class:"text-2xl @sm/text:text-3xl @lg/text:text-4xl"},{variant:"Title.L",responsive:!0,class:"text-xl @sm/text:text-2xl @lg/text:text-3xl"},{variant:"Title.M",responsive:!0,class:"text-lg @sm/text:text-xl @lg/text:text-2xl"},{variant:"Title.S",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Title.XS",responsive:!0,class:"text-sm @sm/text:text-base"},{variant:"Body.L",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Body.L.Bold",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Body.L.ExtraBold",responsive:!0,class:"text-base @sm/text:text-lg @lg/text:text-xl"},{variant:"Body.M",responsive:!0,class:"text-sm @sm/text:text-base @lg/text:text-lg"},{variant:"Body.M.Bold",responsive:!0,class:"text-sm @sm/text:text-base @lg/text:text-lg"},{variant:"Body.M.ExtraBold",responsive:!0,class:"text-sm @sm/text:text-base @lg/text:text-lg"},{variant:"Body.S",responsive:!0,class:"text-xs @sm/text:text-sm @lg/text:text-base"},{variant:"Body.S.Bold",responsive:!0,class:"text-xs @sm/text:text-sm @lg/text:text-base"},{variant:"Caption.M",responsive:!0,class:"text-xxs @sm/text:text-xs @lg/text:text-sm"},{variant:"Caption.M.Bold",responsive:!0,class:"text-xxs @sm/text:text-xs @lg/text:text-sm"},{variant:"Caption.S",responsive:!0,class:"text-xxs @sm/text:text-xxs @lg/text:text-xs"},{variant:"Caption.S.Bold",responsive:!0,class:"text-xxs @sm/text:text-xxs @lg/text:text-xs"}],defaultVariants:{variant:"Body.M",color:"default",responsive:!1}});e.s(["Text",0,o,"default",0,o,"textVariants",0,s],368847)},982538,e=>{"use strict";var t=e.i(592121);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function r(e){let r=t.forwardRef((r,l)=>{var o;let f,x,{children:p,...g}=r,m=null,h=!1,y=[];s(p)&&"function"==typeof u&&(p=u(p._payload)),t.Children.forEach(p,e=>{var a;if(a=e,t.isValidElement(a)&&"function"==typeof a.type&&"__radixId"in a.type&&a.type.__radixId===i){h=!0;let t="child"in e.props?e.props.child:e.props.children;s(t)&&"function"==typeof u&&(t=u(t._payload)),m=n(e,t),y.push(m?.props?.children)}else y.push(e)}),m?m=t.cloneElement(m,void 0,y):!h&&1===t.Children.count(p)&&t.isValidElement(p)&&(m=p);let v=m?(o=m,(x=(f=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in f&&f.isReactWarning)?o.ref:(x=(f=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in f&&f.isReactWarning)?o.props.ref:o.props.ref||o.ref):void 0,b=function(...e){return t.useCallback(function(...e){return t=>{let r=!1,l=e.map(e=>{let l=a(e,t);return r||"function"!=typeof l||(r=!0),l});if(r)return()=>{for(let t=0;t{let t=i(...e);return l(...e),t}:l&&(a[r]=l):"style"===r?a[r]={...l,...i}:"className"===r&&(a[r]=[l,i].filter(Boolean).join(" "))}return{...e,...a}}(g,m.props??{});return m.type!==t.Fragment&&(w.ref=l?b:v),t.cloneElement(m,w)});return r.displayName=`${e}.Slot`,r}var l=r("Slot"),i=Symbol.for("radix.slottable"),n=(e,a)=>{if("child"in e.props){let a=e.props.child;return t.isValidElement(a)?t.cloneElement(a,void 0,e.props.children(a.props.children)):null}return t.isValidElement(a)?a:null},o=Symbol.for("react.lazy");function s(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===o&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,d=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,u=t[" use ".trim().toString()];e.s(["Slot",0,l,"createSlot",0,r,"createSlottable",0,function(e){let t=e=>"child"in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=i,t}],982538)},877957,564993,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(982538),l=e.i(294237),i=e.i(632137),n=e.i(747961);let o=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:l,...i},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":l,...i,children:[r?(0,t.jsx)("desc",{id:l,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Loader Circle"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.65 2.926A5.335 5.335 0 1 0 13.335 8a.665.665 0 0 1 1.33 0 6.665 6.665 0 1 1-4.606-6.34.665.665 0 1 1-.41 1.266",clipRule:"evenodd"})]})),s=a.default.forwardRef((e,a)=>(0,t.jsx)(n.BaseIcon,{ref:a,icon:o,...e}));s.displayName="LoaderCircle",e.s(["LoaderCircle",0,s],564993);let c=(0,l.cva)("rounded-lg cursor-pointer",{variants:{variant:{default:"bg-brand-400 text-primary-foreground hover:bg-[#252C3F] active:bg-[#0C1226] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-0",secondary:"bg-white text-gray-900 active:bg-[#E6E6E6] focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",destructive:"bg-alert-severe hover:bg-[#C1251A] active:bg-[#A70C00] text-white focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",outline:"border-1 border-gray-500 hover:bg-white active:bg-[#E6E6E6] bg-transparent focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",ghost:"hover:bg-white active:bg-[#E6E6E6] bg-transparent focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",link:"text-primary underline-offset-3 underline focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-0",avatarAccountLink:"text-primary text-[14px]",avatarGoPremium:"bg-gray-900 text-white text-[14px]",avatarSignOut:"text-primary text-[16px]",ghostUI:""},size:{default:"h-10 px-4 py-3",lg:"h-10 px-8 py-3",sm:"h-8 px-3 py-2",xsm:"h-6 px-2",icon:"h-10 w-10",text:""},loading:{true:"pointer-events-none cursor-not-allowed opacity-50",false:""},disabled:{true:"pointer-events-none cursor-not-allowed opacity-30",false:""}},defaultVariants:{variant:"default",size:"default",loading:!1,disabled:!1}}),d=a.forwardRef(({className:e,variant:a="default",size:l,asChild:n=!1,disabled:o=!1,loading:d=!1,children:u,...f},x)=>{let p=n?r.Slot:"button";return(0,t.jsx)(p,{...f,className:(0,i.cn)(c({variant:a,size:l,loading:d,disabled:o}),"inline-flex items-center justify-center",e),ref:x,disabled:o||d,children:n?u:(0,t.jsxs)(t.Fragment,{children:[d&&(0,t.jsx)(s,{size:"sm",className:"mr-2 animate-spin",color:"default"===a||"destructive"===a?"inverse":"primary"}),u]})})});d.displayName="Button",e.s(["Button",0,d],877957)},226602,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let l=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:l,...i},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":l,...i,children:[r?(0,t.jsx)("desc",{id:l,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Close"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12.809 4.113a.652.652 0 1 0-.922-.922L8 7.078 4.113 3.19a.652.652 0 1 0-.922.922L7.078 8 3.19 11.887a.652.652 0 0 0 .922.922L8 8.922l3.887 3.887a.652.652 0 1 0 .922-.922L8.922 8z"})]})),i=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:l,...e}));i.displayName="Close",e.s(["Close",0,i])},671525,e=>{"use strict";var t=e.i(961123);let a=()=>{let e=(0,t.useRouter)();return{navigate:(t,a={})=>{let{mpa:r=!0,replace:l=!1}=a;r?l?window.location.replace(t):window.location.href=t:l?e.replace(t):e.push(t)},refresh:(t={})=>{let{mpa:a=!0}=t;a?window.location.reload():e.refresh()},router:e}};e.s(["default",0,a,"usePageNavigation",0,a])},837879,e=>{"use strict";var t=e.i(592121),a=e.i(546446),r=e.i(961123),l=e.i(485737),i=e.i(739971),n=e.i(725296),o=e.i(394481),s=e.i(763886),c=e.i(132084);e.s(["useSubscriptionsEnabled",0,()=>{let e=(0,a.useAtomValue)(i.subscriptionsEnabledAtom),d=(0,a.useAtomValue)(l.geoipCountry),u=(0,r.useParams)()?.locale,f=(0,a.useAtomValue)(o.privacyRegimeAtom)??n.Regime.EXEMPT,x=(0,a.useAtomValue)(s.partnerAtom);return(0,t.useMemo)(()=>null!==e?e:"US"===d&&"en-US"===u&&n.US_REGIMES.includes(f)&&x!==c.Partner.OPPO,[e,d,u,f,x])}])},756227,95870,391174,e=>{"use strict";var t=e.i(546446),a=e.i(284007),r=e.i(889753),l=e.i(310847),i=e.i(613646);e.s(["mutate",()=>i.j],95870);var i=i,n=e.i(318849);let o=()=>{(0,i.j)(e=>"string"==typeof e&&e.startsWith("upsx/"),void 0,{revalidate:!1});try{localStorage.removeItem(n.SWR_CACHE_STORAGE_KEY)}catch{}};e.s(["invalidateUpsxCache",0,o],391174),e.s(["useResetAuthState",0,function(){let e=(0,t.useSetAtom)(r.userProfileAtom),i=(0,t.useSetAtom)(l.wxuUserAccountUserAccountResponseAtom);return()=>{o(),e(a.RESET),i(null)}}],756227)},498076,e=>{"use strict";var t=e.i(546446),a=e.i(663333);e.s(["useIsMobile",0,function(){return"mobile"===(0,t.useAtomValue)(a.deviceClassAtom)}])},514514,e=>{"use strict";var t=e.i(592121);let a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},r=(...e)=>e.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim();var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.forwardRef)(({color:e="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:c,...d},u)=>(0,t.createElement)("svg",{ref:u,...l,width:a,height:a,stroke:e,strokeWidth:n?24*Number(i)/Number(a):i,className:r("lucide",o),...!s&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,a])=>(0,t.createElement)(e,a)),...Array.isArray(s)?s:[s]]));e.s(["default",0,(e,l)=>{let n=(0,t.forwardRef)(({className:n,...o},s)=>(0,t.createElement)(i,{ref:s,iconNode:l,className:r(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...o}));return n.displayName=a(e),n}],514514)},47524,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let l=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:l,...i},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":l,...i,children:[r?(0,t.jsx)("desc",{id:l,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Chevron Right"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M10.414 7.643c.26.26.26.682 0 .943l-4.178 4.178a.495.495 0 1 1-.7-.7l3.95-3.95-3.95-3.95a.495.495 0 1 1 .7-.7z"})]})),i=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:l,...e}));i.displayName="ChevronRight",e.s(["ChevronRight",0,i])},523084,e=>{"use strict";var t=e.i(699173),a=e.i(592121),r=e.i(747961);let l=(0,a.forwardRef)(({title:e,titleId:a,desc:r,descId:l,...i},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":a,"aria-describedby":l,...i,children:[r?(0,t.jsx)("desc",{id:l,children:r}):null,void 0===e?(0,t.jsx)("title",{id:a,children:"Chevron Left"}):e?(0,t.jsx)("title",{id:a,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M5.586 8.586a.667.667 0 0 1 0-.943l4.178-4.179a.495.495 0 0 1 .7.7l-3.95 3.95 3.95 3.95a.495.495 0 1 1-.7.7z"})]})),i=a.default.forwardRef((e,a)=>(0,t.jsx)(r.BaseIcon,{ref:a,icon:l,...e}));i.displayName="ChevronLeft",e.s(["ChevronLeft",0,i])},89887,e=>{"use strict";function t(e,t){let a="/"+e.split("/").filter(Boolean).slice(1).join("/");return"en-US"===t?a:`/${t}${a}`}e.s(["buildLocationCanonicalBase",0,t,"buildLocationCanonicalPath",0,function(e,a,r){return`${t(e,a)}/${r}`}])},388706,e=>{"use strict";let t=[{pageType:"today",urlKey:"today",urlType:"weather/today",suffix:"today",base:"/weather/today/",sidebarCanonical:!1,sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-today"},{pageType:"hourbyhour",urlKey:"hourly",urlType:"weather/hourbyhour",suffix:"hourbyhour",base:"/weather/hourly/",sidebarCanonical:!1,sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-hourly"},{pageType:"tenday",urlKey:"tenday",urlType:"weather/tenday",suffix:"tenday",base:"/weather/tenday/",sidebarCanonical:!1,sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-tenday"},{pageType:"localalerts",urlKey:"alerts",urlType:"weather/alerts/localalerts",suffix:"localalerts",base:"/weather/alerts/localalerts/",sidebarCanonical:!0,sitemapExcluded:!0,canonicalEligible:!0,weatherCacheTag:"weather-alerts"},{pageType:"allergy",urlKey:"allergy",urlType:"forecast/allergy",suffix:"allergy",base:"/forecast/allergy/",sidebarCanonical:!0,sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-allergy"},{pageType:"air-quality",urlKey:"airQuality",urlType:"forecast/air-quality",suffix:"air-quality",base:"/weather/air-quality/",sidebarCanonical:!0,sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-air-quality"},{pageType:"cold-flu",urlKey:"coldFlu",urlType:"forecast/cold-flu",suffix:"cold-flu",base:"/forecast/cold-flu/",sidebarCanonical:!0,sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-cold-flu"},{pageType:"radar",urlKey:"radar",urlType:"weather/radar/interactive",suffix:"radar",base:"/weather/radar/interactive/",sidebarCanonical:!0,sitemapExcluded:!1,canonicalEligible:!0,weatherCacheTag:"weather-radar-interactive"}],a=t.map(e=>e.pageType);Object.fromEntries(t.map(e=>[e.urlType,e.pageType])),Object.fromEntries(t.map(e=>[e.suffix,e.pageType]));let r=Object.fromEntries(t.map(e=>[e.pageType,e.base])),l=Object.fromEntries(t.map(e=>[e.pageType,e.urlKey])),i=Object.fromEntries(t.map(e=>[e.pageType,e.suffix])),n=Object.fromEntries(t.map(e=>[e.pageType,e.canonicalEligible]));t.map(e=>e.urlType).join("|"),t.map(e=>e.suffix).join("|"),t.filter(e=>e.sitemapExcluded).map(e=>e.pageType);let o=t.filter(e=>e.sidebarCanonical).map(e=>({urlKey:e.urlKey,segment:e.suffix}));e.s(["BASE_BY_PAGE",0,r,"CANONICAL_ELIGIBLE_BY_PAGE",0,n,"CANONICAL_PAGE_TYPES",0,a,"PAGE_TYPE_TO_SUFFIX",0,i,"PAGE_TYPE_TO_URL_KEY",0,l,"SIDEBAR_CANONICAL_LINKS",0,o])},304116,e=>{"use strict";var t=e.i(89887),a=e.i(611540),r=e.i(388706);e.s(["buildLocationPageHref",0,function({pageType:e,locale:l,canonicalID:i,featureId:n,placeId:o,canonicalBasePath:s,skipCanonical:c=!1}){let d=r.PAGE_TYPE_TO_SUFFIX[e],u=r.CANONICAL_ELIGIBLE_BY_PAGE[e]&&!c;return s&&u?`${s}/${d}`:u&&i?(0,t.buildLocationCanonicalPath)(i,l,d):(0,a.interpolateLocationUrl)(a.URLS[r.PAGE_TYPE_TO_URL_KEY[e]],u?{locale:l,locId:o??n??"",featureId:n}:{locale:l,locId:o??""})}])},258990,e=>{"use strict";e.s(["decodeLocId",0,e=>{try{return decodeURIComponent(e)}catch{return e}}])},674885,e=>{"use strict";var t=e.i(981030),a=e.i(617874),r=e.i(889753);let l=(0,t.atom)(e=>e(r.userPreferencesAtom)?.unit||a.UNIT_IMPERIAL),i=(0,t.atom)(e=>e(l)===a.UNIT_IMPERIAL),n=(0,t.atom)(e=>e(l)===a.UNIT_METRIC),o=(0,t.atom)(e=>e(l)===a.UNIT_HYBRID);e.s(["isHybridUnitsAtom",0,o,"isImperialUnitsAtom",0,i,"isMetricUnitsAtom",0,n,"userUnitPreferenceAtom",0,l])},512134,e=>{"use strict";var t=e.i(592121);e.s(["useIsClient",0,function(){let[e,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{a(!0)},[]),e}])},697151,e=>{"use strict";let t=(0,e.i(514514).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",0,t],697151)},269153,e=>{"use strict";var t=e.i(546446),a=e.i(763886),r=e.i(132084);e.s(["useIsSamsungPartner",0,function(){return(0,t.useAtomValue)(a.partnerAtom)===r.Partner.SAMSUNG}])},559421,e=>{"use strict";var t=e.i(961123),a=e.i(89887),r=e.i(64412),l=e.i(942400),i=e.i(269153),n=e.i(512134);e.i(388706),e.s(["useCanonicalBasePath",0,function(){let e=(0,t.useParams)(),o=(0,t.usePathname)(),{location:s}=(0,r.useLocation)(),c=(0,l.usePageLocale)(),d=(0,i.useIsSamsungPartner)();if(!(0,n.useIsClient)()||d)return;let u=e?.canonicalLocation,f=e?.featureId;if(!(u?.length||f&&!o.includes("/l/")))return;let x=s?.canonicalID;if(x)return(0,a.buildLocationCanonicalBase)(x,c);if(o.includes("/byFeatureId/"))return;let p=/\/day-\d+$/.test(o)?o.substring(0,o.lastIndexOf("/")):o;return p.substring(0,p.lastIndexOf("/"))}])}]);