(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,251590,986044,e=>{"use strict";var t=e.i(247865),r=e.i(855128),n=e.i(271359),i=e.i(982538),o=e.i(902875),l=Object.defineProperty,s=(e,t)=>l(e,"name",{value:t,configurable:!0});function a(e){let l=e+"CollectionProvider",[a,c]=(0,r.createContextScope)(l),[d,u]=a(l,{collectionRef:{current:null},itemMap:new Map}),f=s(e=>{let{scope:r,children:n}=e,i=t.useRef(null),l=t.useRef(new Map).current;return(0,o.jsx)(d,{scope:r,itemMap:l,collectionRef:i,children:n})},"CollectionProvider");f.displayName=l;let h=e+"CollectionSlot",p=(0,i.createSlot)(h),m=t.forwardRef((e,t)=>{let{scope:r,children:i}=e,l=u(h,r),s=(0,n.useComposedRefs)(t,l.collectionRef);return(0,o.jsx)(p,{ref:s,children:i})});m.displayName=h;let x=e+"CollectionItemSlot",y="data-radix-collection-item",g=(0,i.createSlot)(x),b=t.forwardRef((e,r)=>{let{scope:i,children:l,...s}=e,a=t.useRef(null),c=(0,n.useComposedRefs)(r,a),d=u(x,i);return t.useEffect(()=>(d.itemMap.set(a,{ref:a,...s}),()=>void d.itemMap.delete(a))),(0,o.jsx)(g,{...{[y]:""},ref:c,children:l})});function v(r){let n=u(e+"CollectionConsumer",r);return t.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${y}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])}return b.displayName=x,s(v,"useCollection"),[{Provider:f,Slot:m,ItemSlot:b},v,c]}s(a,"createCollection");var c=new WeakMap,d=class e extends Map{static{s(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],c.set(this,!0)}set(e,t){return c.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,l=h(e),s=l>=0?l:o+l,a=s=o?-1:s;if(a===this.size||i&&a===this.size-1||-1===a)return this.set(t,r),this;let c=this.size+ +!i;l=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t0&&(i=r-1);for(let e=t;e=0?n:r+n;return i=r?-1:i}function h(e){return e!=e||0===e?0:Math.trunc(e)}function p(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!Object.prototype.hasOwnProperty.call(t,n)||e[n]!==t[n])return!1;return!0}function m(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function x(e,t){return e[1].element&&t[1].element?m(e[1].element,t[1].element)?-1:1:0}function y(e){return new MutationObserver(t=>{for(let r of t)if("childList"===r.type)return void e()})}s(u,"at"),s(f,"toSafeIndex"),s(h,"toSafeInteger"),s(function(e){let l=e+"CollectionProvider",[a,c]=(0,r.createContextScope)(l),[u,f]=a(l,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new d,setItemMap:s(()=>void 0,"setItemMap")}),h=s(({state:e,...t})=>e?(0,o.jsx)(g,{...t,state:e}):(0,o.jsx)(m,{...t}),"CollectionProvider");h.displayName=l;let m=s(e=>{let t=A();return(0,o.jsx)(g,{...e,state:t})},"CollectionInit");m.displayName=l+"Init";let g=s(e=>{let{scope:r,children:i,state:l}=e,s=t.useRef(null),[a,c]=t.useState(null),d=(0,n.useComposedRefs)(s,c),[f,h]=l;return t.useEffect(()=>{if(!a)return;let e=y(()=>{});return e.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[a]),(0,o.jsx)(u,{scope:r,itemMap:f,setItemMap:h,collectionRef:d,collectionRefObject:s,collectionElement:a,children:i})},"CollectionProviderImpl");g.displayName=l+"Impl";let b=e+"CollectionSlot",v=(0,i.createSlot)(b),C=t.forwardRef((e,t)=>{let{scope:r,children:i}=e,l=f(b,r),s=(0,n.useComposedRefs)(t,l.collectionRef);return(0,o.jsx)(v,{ref:s,children:i})});C.displayName=b;let w=e+"CollectionItemSlot",j=(0,i.createSlot)(w),R=t.forwardRef((e,r)=>{let{scope:i,children:l,...s}=e,a=t.useRef(null),[c,u]=t.useState(null),h=(0,n.useComposedRefs)(r,a,u),{setItemMap:m}=f(w,i),y=t.useRef(s);p(y.current,s)||(y.current=s);let g=y.current;return t.useEffect(()=>(m(e=>c?e.has(c)?e.set(c,{...g,element:c}).toSorted(x):(e.set(c,{...g,element:c}),e.toSorted(x)):e),()=>{m(e=>c&&e.has(c)?(e.delete(c),new d(e)):e)}),[c,g,m]),(0,o.jsx)(j,{"data-radix-collection-item":"",ref:h,children:l})});function A(){return t.useState(new d)}function k(t){let{itemMap:r}=f(e+"CollectionConsumer",t);return r}return R.displayName=w,s(A,"useInitCollection"),s(k,"useCollection"),[{Provider:h,Slot:C,ItemSlot:R},{createCollectionScope:c,useCollection:k,useInitCollection:A}]},"createCollection"),s(p,"shallowEqual"),s(m,"isElementPreceding"),s(x,"sortByDocumentPosition"),s(y,"getChildListObserver"),e.s(["createCollection",0,a],251590);var g=Object.defineProperty,b=t.createContext(void 0);function v(e){let r=t.useContext(b);return e||r||"ltr"}g(v,"name",{value:"useDirection",configurable:!0}),e.s(["useDirection",0,v],986044)},120843,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getWeatherAlertDetail=l;let n=e.r(196481),i=e.r(678651),o=e.r(414655);async function l({detailKey:e,language:t="en-US"}){let r=(0,i.urlFrom)((0,n.getSunWeatherAlertDetailUrlConfig)({detailKey:e,language:t})),s=await fetch(r,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),a=await (0,o.handleFetchResponse)(s);return a?.alertDetail??null}},665488,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(859827),i=e.i(993269),o=e.i(632137),l=e.i(368847),s=e.i(240058),a=e.i(855128),c=e.i(251590),d=e.i(271359),u=e.i(543836),f=e.i(803976),h=e.i(942928),p=e.i(714035),m=e.i(312610),x=e.i(296994),y=Object.defineProperty,g=(e,t)=>y(e,"name",{value:t,configurable:!0}),b="Collapsible",[v,C]=(0,a.createContextScope)(b),[w,j]=v(b),R=r.forwardRef(g(function(e,n){let{__scopeCollapsible:i,open:o,defaultOpen:l,disabled:s,onOpenChange:a,...c}=e,[d,u]=(0,f.useControllableState)({prop:o,defaultProp:l??!1,onChange:a,caller:b});return(0,t.jsx)(w,{scope:i,disabled:s,contentId:(0,x.useId)(),open:d,onOpenToggle:r.useCallback(()=>u(e=>!e),[u]),children:(0,t.jsx)(h.Primitive.div,{"data-state":O(d),"data-disabled":s?"":void 0,...c,ref:n})})},"Collapsible")),A=r.forwardRef(g(function(e,r){let{__scopeCollapsible:n,...i}=e,o=j("CollapsibleTrigger",n);return(0,t.jsx)(h.Primitive.button,{type:"button","aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":O(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...i,ref:r,onClick:(0,u.composeEventHandlers)(e.onClick,o.onOpenToggle)})},"CollapsibleTrigger")),k="CollapsibleContent",S=r.forwardRef(g(function(e,r){let{forceMount:n,...i}=e,o=j(k,e.__scopeCollapsible);return(0,t.jsx)(m.Presence,{present:n||o.open,children:({present:e})=>(0,t.jsx)(I,{...i,ref:r,present:e})})},"CollapsibleContent")),I=r.forwardRef(g(function(e,n){let{__scopeCollapsible:i,present:o,children:l,...s}=e,a=j(k,i),[c,u]=r.useState(o),f=r.useRef(null),m=(0,d.useComposedRefs)(n,f),x=r.useRef(0),y=x.current,g=r.useRef(0),b=g.current,v=a.open||c,C=r.useRef(v),w=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,p.useLayoutEffect)(()=>{let e=f.current;if(e){w.current=w.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();x.current=t.height,g.current=t.width,C.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),u(o)}},[a.open,o]),(0,t.jsx)(h.Primitive.div,{"data-state":O(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...s,ref:m,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:v&&l})},"CollapsibleContentImpl"));function O(e){return e?"open":"closed"}g(O,"getState");var N=e.i(986044),P=Object.defineProperty,_=(e,t)=>P(e,"name",{value:t,configurable:!0}),D="Accordion",M=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[T,z,E]=(0,c.createCollection)(D),[L,U]=(0,a.createContextScope)(D,[E,C]),B=C(),F=r.forwardRef(_(function(e,r){let{type:n,...i}=e;return(0,t.jsx)(T.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,t.jsx)(V,{...i,ref:r}):(0,t.jsx)($,{...i,ref:r})})},"Accordion")),[H,K]=L(D),[q,W]=L(D,{collapsible:!1}),$=r.forwardRef(_(function(e,n){let{value:i,defaultValue:o,onValueChange:l=_(()=>{},"onValueChange"),collapsible:s=!1,...a}=e,[c,d]=(0,f.useControllableState)({prop:i,defaultProp:o??"",onChange:l,caller:D});return(0,t.jsx)(H,{scope:e.__scopeAccordion,value:r.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:r.useCallback(()=>s&&d(""),[s,d]),children:(0,t.jsx)(q,{scope:e.__scopeAccordion,collapsible:s,children:(0,t.jsx)(Q,{...a,ref:n})})})},"AccordionImplSingle")),V=r.forwardRef(_(function(e,n){let{value:i,defaultValue:o,onValueChange:l=_(()=>{},"onValueChange"),...s}=e,[a,c]=(0,f.useControllableState)({prop:i,defaultProp:o??[],onChange:l,caller:D}),d=r.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=r.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(H,{scope:e.__scopeAccordion,value:a,onItemOpen:d,onItemClose:u,children:(0,t.jsx)(q,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(Q,{...s,ref:n})})})},"AccordionImplMultiple")),[G,J]=L(D),Q=r.forwardRef(_(function(e,n){let{__scopeAccordion:i,disabled:o,dir:l,orientation:s="vertical",...a}=e,c=r.useRef(null),f=(0,d.useComposedRefs)(c,n),p=z(i),m="ltr"===(0,N.useDirection)(l),x=(0,u.composeEventHandlers)(e.onKeyDown,e=>{if(!M.includes(e.key))return;let t=e.target,r=p().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),i=r.length;if(-1===n)return;e.preventDefault();let o=n,l=i-1,a=_(()=>{(o=n+1)>l&&(o=0)},"moveNext"),c=_(()=>{(o=n-1){e?s.onItemOpen(i):s.onItemClose(i)}})})},"AccordionItem")),et=r.forwardRef(_(function(e,r){let{__scopeAccordion:n,...i}=e,o=J(D,n),l=Z("AccordionHeader",n);return(0,t.jsx)(h.Primitive.h3,{"data-orientation":o.orientation,"data-state":eo(l.open),"data-disabled":l.disabled?"":void 0,...i,ref:r})},"AccordionHeader")),er="AccordionTrigger",en=r.forwardRef(_(function(e,r){let{__scopeAccordion:n,...i}=e,o=J(D,n),l=Z(er,n),s=W(er,n),a=B(n);return(0,t.jsx)(T.ItemSlot,{scope:n,children:(0,t.jsx)(A,{"aria-disabled":l.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:l.triggerId,...a,...i,ref:r})})},"AccordionTrigger")),ei=r.forwardRef(_(function(e,r){let{__scopeAccordion:n,...i}=e,o=J(D,n),l=Z("AccordionContent",n),s=B(n);return(0,t.jsx)(S,{role:"region","aria-labelledby":l.triggerId,"data-orientation":o.orientation,...s,...i,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})},"AccordionContent"));function eo(e){return e?"open":"closed"}_(eo,"getState"),r.forwardRef(({className:e,href:r,children:n,...i},o)=>(0,t.jsx)(s.default,{ref:o,href:r,...i,children:(0,t.jsx)(l.Text,{variant:"Caption.M",color:"secondary",children:n})})).displayName="AccordionTextLink";let el=r.forwardRef(({className:e,type:r="single",collapsible:n=!0,...i},l)=>{let s={ref:l,type:r,className:(0,o.cn)("w-full",e),"data-slot":"accordion",...i};return"single"===r&&(s.collapsible=n),(0,t.jsx)(F,{...s})});el.displayName="Accordion",r.forwardRef(({className:e,children:r,enabled:n=!1,...i},s)=>(0,t.jsx)("div",{ref:s,className:(0,o.cn)("mt-4",e),...i,children:(0,t.jsx)(l.Text,{variant:"Caption.M",color:"disabled",children:r})})).displayName="AccordionTextSpotlight",e.s(["Accordion",0,el,"AccordionContent",0,function({className:e,animated:r,...n}){return(0,t.jsx)(ei,{"data-slot":"accordion-content",className:(0,o.cn)("overflow-hidden text-sm transition-all",{"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down":r},e),...n})},"AccordionItem",0,function({className:e,...r}){return(0,t.jsx)(ee,{"data-slot":"accordion-item",className:(0,o.cn)("w-full",e),...r})},"AccordionTrigger",0,function({className:e,children:r,triggerContent:s,title:a,number:c,iconClassName:d,iconNodeOverride:u,...f}){return(0,t.jsx)(et,{className:"flex",children:(0,t.jsxs)(en,{"data-slot":"accordion-trigger",className:(0,o.cn)("hover:text-whale-400 group flex flex-1 cursor-pointer items-center justify-between py-4 text-left font-medium transition-all",e),...f,children:[(0,t.jsxs)("div",{className:"flex grow items-center",children:[void 0!==c&&(0,t.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,t.jsx)("span",{className:"leading-none tracking-wide",children:c})}),s||(a?(0,t.jsx)(l.Text,{variant:"Body.L",children:a}):r)]}),(0,t.jsx)("div",{className:"relative flex items-center",children:u||(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Plus,{className:(0,o.cn)("h-5 w-5 shrink-0 transition-all duration-200",d,"group-data-[state=open]:rotate-45 group-data-[state=open]:opacity-0")}),(0,t.jsx)(i.Minus,{className:(0,o.cn)("absolute h-5 w-5 shrink-0 opacity-0 transition-all duration-200",d,"group-data-[state=open]:opacity-100")})]})})]})})}],665488)}]);