1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/admin-ICugp9z3.js","assets/footer-SPdOkgUe.js","assets/arena-sponsors-DbdzKbUg.js","assets/external-link-BgCDjD-_.js","assets/trophy-CQO7DY2q.js","assets/input-CsYhat5Z.js","assets/interviews-CIVYzVO5.js","assets/arrow-left-WunHAxUw.js","assets/search-CpBrZP8W.js","assets/festivals-Dv2a3dY7.js","assets/news-CkHmLyT1.js","assets/youtube-api-Ck7hfpkk.js","assets/article-CxJ0zZ4L.js","assets/calendar-1YJuQkpL.js","assets/share-2-B-453Hvp.js","assets/not-found-Yvxe0Mz9.js","assets/privacy-BXU10bEC.js","assets/ProtectedEmail-DL94SS2x.js","assets/terms-fxt9SZu3.js","assets/cookies-fQ3V4DnB.js","assets/dmca-Om3eqlXG.js","assets/store-jO6chtKA.js","assets/tours-D2jty6He.js","assets/TouringWallOfFame-roWQ7ok5.js","assets/tour-act-ByT6GueB.js","assets/cruise-zhiCJ7j6.js","assets/arena-DiHYVUFQ.js","assets/arena-leaderboard-DQjeq-BC.js","assets/arena-week-CAhT_C3z.js","assets/arena-band-BTRE24j0.js","assets/fan-profile-Bc1c-kdl.js"])))=>i.map(i=>d[i]); 2import{$ as e,A as t,B as n,D as r,F as i,G as a,H as o,I as s,K as c,L as l,M as u,N as d,O as f,P as p,Q as m,R as h,U as g,V as _,X as v,Z as y,a as b,b as x,c as S,d as C,et as w,f as T,g as E,h as D,j as O,k,l as A,m as j,n as M,nt as N,p as P,r as F,s as I,t as L,tt as ee,v as te,w as ne,y as R,z as re}from"./footer-SPdOkgUe.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ie=ee((t=>{var n=e();t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot}))(),z=N(w(),1),ae=1,oe=1e6,B=0;function se(){return B=(B+1)%(2**53-1),B.toString()}var ce=new Map,V=e=>{if(ce.has(e))return;let t=setTimeout(()=>{ce.delete(e),fe({type:`REMOVE_TOAST`,toastId:e})},oe);ce.set(e,t)},le=(e,t)=>{switch(t.type){case`ADD_TOAST`:return{...e,toasts:[t.toast,...e.toasts].slice(0,ae)};case`UPDATE_TOAST`:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case`DISMISS_TOAST`:{let{toastId:n}=t;return n?V(n):e.toasts.forEach(e=>{V(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case`REMOVE_TOAST`:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},ue=[],de={toasts:[]};function fe(e){de=le(de,e),ue.forEach(e=>{e(de)})}function pe({...e}){let t=se(),n=e=>fe({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>fe({type:`DISMISS_TOAST`,toastId:t});return fe({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function me(){let[e,t]=z.useState(de);return z.useEffect(()=>(ue.push(t),()=>{let e=ue.indexOf(t);e>-1&&ue.splice(e,1)}),[e]),{...e,toast:pe,dismiss:e=>fe({type:`DISMISS_TOAST`,toastId:e})}}var he=N(e(),1);function H(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function ge(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function _e(...e){return t=>{let n=!1,r=e.map(e=>{let r=ge(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():ge(e[t],null)}}}}function U(...e){return z.useCallback(_e(...e),e)}var W=y();function ve(e,t){let n=z.createContext(t),r=e=>{let{children:t,...r}=e,i=z.useMemo(()=>r,Object.values(r));return(0,W.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=z.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function ye(e,t=[]){let n=[];function r(t,r){let i=z.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=z.useMemo(()=>o,Object.values(o));return(0,W.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=z.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>z.createContext(e));return function(n){let r=n?.[e]||t;return z.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,be(i,...t)]}function be(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return z.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}
vendor: 5,188 bytes, line 2
2function xe(e){let t=Ce(e),n=z.forwardRef((e,n)=>{let{children:r,...i}=e,a=z.Children.toArray(r),o=a.find(Ee);if(o){let e=o.props.children,r=a.map(t=>t===o?z.Children.count(e)>1?z.Children.only(null):z.isValidElement(e)?e.props.children:null:t);return(0,W.jsx)(t,{...i,ref:n,children:z.isValidElement(e)?z.cloneElement(e,void 0,r):null})}return(0,W.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var Se=xe(`Slot`);function Ce(e){let t=z.forwardRef((e,t)=>{let{children:n,...r}=e;if(z.isValidElement(n)){let e=Oe(n),i=De(r,n.props);return n.type!==z.Fragment&&(i.ref=t?_e(t,e):e),z.cloneElement(n,i)}return z.Children.count(n)>1?z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var we=Symbol(`radix.slottable`);function Te(e){let t=({children:e})=>(0,W.jsx)(W.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=we,t}function Ee(e){return z.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===we}function De(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Oe(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ke(e){let t=e+`CollectionProvider`,[n,r]=ye(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=z.useRef(null),a=z.useRef(new Map).current;return(0,W.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=xe(s),l=z.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=U(t,a(s,n).collectionRef);return(0,W.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=xe(u),p=z.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=z.useRef(null),s=U(t,o),c=a(u,n);return z.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,W.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return z.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var G=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=xe(`Primitive.${t}`),r=z.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,W.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ae(e,t){e&&he.flushSync(()=>e.dispatchEvent(t))}function K(e){let t=z.useRef(e);return z.useEffect(()=>{t.current=e}),z.useMemo(()=>(...e)=>t.current?.(...e),[])}function je(e,t=globalThis?.document){let n=K(e);z.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var Me=`DismissableLayer`,Ne=`dismissableLayer.update`,Pe=`dismissableLayer.pointerDownOutside`,Fe=`dismissableLayer.focusOutside`,Ie,Le=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Re=z.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=z.useContext(Le),[u,d]=z.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=z.useState({}),m=U(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),v=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=v>=_,x=Ve(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!b||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),S=He(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return je(e=>{v===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),z.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ie=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Ue(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Ie)}},[u,f,n,l]),z.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Ue())},[u,l]),z.useEffect(()=>{let e=()=>p({});return document.addEventListener(Ne,e),()=>document.removeEventListener(Ne,e)},[]),(0,W.jsx)(G.div,{...c,ref:m,style:{pointerEvents:y?b?`auto`:`none`:void 0,...e.style},onFocusCapture:H(e.onFocusCapture,S.onFocusCapture),onBlurCapture:H(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:H(e.onPointerDownCapture,x.onPointerDownCapture)})});Re.displayName=Me;var ze=`DismissableLayerBranch`,Be=z.forwardRef((e,t)=>
2{let n=z.useContext(Le),r=z.useRef(null),i=U(t,r);return z.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,W.jsx)(G.div,{...e,ref:i})});Be.displayName=ze;function Ve(e,t=globalThis?.document){let n=K(e),r=z.useRef(!1),i=z.useRef(()=>{});return z.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){We(Pe,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function He(e,t=globalThis?.document){let n=K(e),r=z.useRef(!1);return z.useEffect(()=>{let e=e=>{e.target&&!r.current&&We(Fe,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ue(){let e=new CustomEvent(Ne);document.dispatchEvent(e)}function We(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ae(i,a):i.dispatchEvent(a)}var Ge=Re,Ke=Be,qe=globalThis?.document?z.useLayoutEffect:()=>{},Je=`Portal`,Ye=z.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=z.useState(!1);qe(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?he.createPortal((0,W.jsx)(G.div,{...r,ref:t}),o):null});Ye.displayName=Je;function Xe(e,t){return z.useReducer((e,n)=>t[e][n]??e,e)}var Ze=e=>{let{present:t,children:n}=e,r=Qe(t),i=typeof n==`function`?n({present:r.isPresent}):z.Children.only(n),a=U(r.ref,et(i));return typeof n==`function`||r.isPresent?z.cloneElement(i,{ref:a}):null};Ze.displayName=`Presence`;function Qe(e){let[t,n]=z.useState(),r=z.useRef({}),i=z.useRef(e),a=z.useRef(`none`),[o,s]=Xe(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return z.useEffect(()=>{let e=$e(r.current);a.current=o===`mounted`?e:`none`},[o]),qe(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=$e(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),qe(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=$e(r.current).includes(a.animationName);if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=$e(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:z.useCallback(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}function $e(e){return e?.animationName||`none`}function et(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function tt({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=nt({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=K(n);return[o,z.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function nt({defaultProp:e,onChange:t}){let n=z.useState(e),[r]=n,i=z.useRef(r),a=K(t);return z.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}var rt=`VisuallyHidden`,it=z.forwardRef((e,t)=>(0,W.jsx)(G.span,{...e,ref:t,style:{position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`,...e.style}}));it.displayName=rt;var at=it,ot=`ToastProvider`,[st,ct,lt]=ke(`Toast`),[ut,dt]=ye(`Toast`,[lt]),[ft,pt]=ut(ot),mt=e=>{let{__scopeToast:t,label:n=`Notification`,duration:r=5e3,swipeDirection:i=`right`,swipeThreshold:a=50,children:o}=e,[s,c]=z.useState(null),[l,u]=z.useState(0),d=z.useRef(!1),f=z.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${ot}\`. Expected non-empty \`string\`.`),(0,W.jsx)(st.Provider,{scope:t,children:(0,W.jsx)(ft,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:l,viewport:s,onViewportChange:c,onToastAdd:z.useCallback(()=>u(e=>e+1),[]),onToastRemove:z.useCallback(()=>u(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};mt.displayName=ot;var ht=`ToastViewport`,gt=[`F8`],_t=`toast.viewportPause`,vt=`toast.viewportResume`,yt=z.forwardRef((e,t)=>
vendor: 7,121 bytes, line 2
2{let{__scopeToast:n,hotkey:r=gt,label:i=`Notifications ({hotkey})`,...a}=e,o=pt(ht,n),s=ct(n),c=z.useRef(null),l=z.useRef(null),u=z.useRef(null),d=z.useRef(null),f=U(t,d,o.onViewportChange),p=r.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),m=o.toastCount>0;z.useEffect(()=>{let e=e=>{r.length!==0&&r.every(t=>e[t]||e.code===t)&&d.current?.focus()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),z.useEffect(()=>{let e=c.current,t=d.current;if(m&&e&&t){let n=()=>{if(!o.isClosePausedRef.current){let e=new CustomEvent(_t);t.dispatchEvent(e),o.isClosePausedRef.current=!0}},r=()=>{if(o.isClosePausedRef.current){let e=new CustomEvent(vt);t.dispatchEvent(e),o.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener(`focusin`,n),e.addEventListener(`focusout`,i),e.addEventListener(`pointermove`,n),e.addEventListener(`pointerleave`,a),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),()=>{e.removeEventListener(`focusin`,n),e.removeEventListener(`focusout`,i),e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerleave`,a),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)}}},[m,o.isClosePausedRef]);let h=z.useCallback(({tabbingDirection:e})=>{let t=s().map(t=>{let n=t.ref.current,r=[n,...Kt(n)];return e===`forwards`?r:r.reverse()});return(e===`forwards`?t.reverse():t).flat()},[s]);return z.useEffect(()=>{let e=d.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if(t.key===`Tab`&&!n){let n=document.activeElement,r=t.shiftKey;if(t.target===e&&r){l.current?.focus();return}let i=h({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);qt(i.slice(a+1))?t.preventDefault():r?l.current?.focus():u.current?.focus()}};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}},[s,h]),(0,W.jsxs)(Ke,{ref:c,role:`region`,"aria-label":i.replace(`{hotkey}`,p),tabIndex:-1,style:{pointerEvents:m?void 0:`none`},children:[m&&(0,W.jsx)(xt,{ref:l,onFocusFromOutsideViewport:()=>{qt(h({tabbingDirection:`forwards`}))}}),(0,W.jsx)(st.Slot,{scope:n,children:(0,W.jsx)(G.ol,{tabIndex:-1,...a,ref:f})}),m&&(0,W.jsx)(xt,{ref:u,onFocusFromOutsideViewport:()=>{qt(h({tabbingDirection:`backwards`}))}})]})});yt.displayName=ht;var bt=`ToastFocusProxy`,xt=z.forwardRef((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=pt(bt,n);return(0,W.jsx)(it,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:`fixed`},onFocus:e=>{let t=e.relatedTarget;a.viewport?.contains(t)||r()}})});xt.displayName=bt;var St=`Toast`,Ct=`toast.swipeStart`,wt=`toast.swipeMove`,Tt=`toast.swipeCancel`,Et=`toast.swipeEnd`,Dt=z.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...o}=e,[s=!0,c]=tt({prop:r,defaultProp:i,onChange:a});return(0,W.jsx)(Ze,{present:n||s,children:(0,W.jsx)(At,{open:s,...o,ref:t,onClose:()=>c(!1),onPause:K(e.onPause),onResume:K(e.onResume),onSwipeStart:H(e.onSwipeStart,e=>{e.currentTarget.setAttribute(`data-swipe`,`start`)}),onSwipeMove:H(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`move`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-y`,`${n}px`)}),onSwipeCancel:H(e.onSwipeCancel,e=>{e.currentTarget.setAttribute(`data-swipe`,`cancel`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-y`)}),onSwipeEnd:H(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`end`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-y`,`${n}px`),c(!1)})})})});Dt.displayName=St;var[Ot,kt]=ut(St,{onClose(){}}),At=z.forwardRef((e,t)=>{let{__scopeToast:n,type:r=`foreground`,duration:i,open:a,onClose:o,onEscapeKeyDown:s,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...m}=e,h=pt(St,n),[g,_]=z.useState(null),v=U(t,e=>_(e)),y=z.useRef(null),b=z.useRef(null),x=i||h.duration,S=z.useRef(0),C=z.useRef(x),w=z.useRef(0),{onToastAdd:T,onToastRemove:E}=h,D=K(()=>{g?.contains(document.activeElement)&&h.viewport?.focus(),o()}),O=z.useCallback(e=>{!e||e===1/0||(window.clearTimeout(w.current),S.current=new Date().getTime(),w.current=window.setTimeout(D,e))},[D]);z.useEffect(()=>{let e=h.viewport;if(e){let t=()=>{O(C.current),l?.()},n=()=>{let e=new Date().getTime()-S.current;C.current-=e,window.clearTimeout(w.current),c?.()};return e.addEventListener(_t,n),e.addEventListener(vt,t),()=>{e.removeEventListener(_t,n),e.removeEventListener(vt,t)}}},[h.viewport,x,c,l,O]),z.useEffect(()=>{a&&!h.isClosePausedRef.current&&O(x)},[a,x,h.isClosePausedRef,O]),z.useEffect(()=>(T(),()=>E()),[T,E]);let k=z.useMemo(()=>g?Vt(g):null,[g]);return h.viewport?(0,W.jsxs)(W.Fragment,{children:[k&&(0,W.jsx)(jt,{__scopeToast:n,role:`status`,"aria-live":r===`foreground`?`assertive`:`polite`,"aria-atomic":!0,children:k}),(0,W.jsx)(Ot,{scope:n,onClose:D,children:he.createPortal((0,W.jsx)(st.ItemSlot,{scope:n,children:(0,W.jsx)(Ge,{asChild:!0,onEscapeKeyDown:H(s,()=>{h.isFocusedToastEscapeKeyDownRef.current||D(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,W.jsx)(G.li,{role:`status`,"aria-live":`off`,"aria-atomic":!0,tabIndex:0,"data-state":a?`open`:`closed`,"data-swipe-direction":h.swipeDirection,...m,ref:v,style:{userSelect:`none`,touchAction:`none`,...e.style},onKeyDown:H(e.onKeyDown,e=>{e.key===`Escape`&&(s?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:H(e.onPointerDown,e=>{e.button===0&&(y.current={x:e.clientX,y:e.clientY})}),onPointerMove:H(e.onPointerMove,e=>{if(!y.current)return;let t=e.clientX-y.current.x,n=e.clientY-y.current.y,r=!!b.current,i=[`left`,`right`].includes(h.swipeDirection),a=[`left`,`up`].includes(h.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),c=e.pointerType===`touch`?10:2,l={x:o,y:s},f={originalEvent:e,delta:l};r?(b.current=l,Ht(wt,d,f,{discrete:!1})):Ut(l,h.swipeDirection,c)?(b.current=l,Ht(Ct,u,f,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(y.current=null)}),onPointerUp:H(e.onPointerUp,e=>{let t=b.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),b.current=null,y.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};Ut(t,h.swipeDirection,h.swipeThreshold)?Ht(Et,p,r,{discrete:!0}):Ht(Tt,f,r,{discrete:!0}),n.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),jt=e=>{let{__scopeToast:t,children:n,...r}=e,i=pt(St,t),[a,o]=z.useState(!1),[s,c]=z.useState(!1);return Wt(()=>
2o(!0)),z.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,W.jsx)(Ye,{asChild:!0,children:(0,W.jsx)(it,{...r,children:a&&(0,W.jsxs)(W.Fragment,{children:[i.label,` `,n]})})})},Mt=`ToastTitle`,Nt=z.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,W.jsx)(G.div,{...r,ref:t})});Nt.displayName=Mt;var Pt=`ToastDescription`,Ft=z.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,W.jsx)(G.div,{...r,ref:t})});Ft.displayName=Pt;var It=`ToastAction`,Lt=z.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,W.jsx)(Bt,{altText:n,asChild:!0,children:(0,W.jsx)(zt,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${It}\`. Expected non-empty \`string\`.`),null)});Lt.displayName=It;var Rt=`ToastClose`,zt=z.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,i=kt(Rt,n);return(0,W.jsx)(Bt,{asChild:!0,children:(0,W.jsx)(G.button,{type:`button`,...r,ref:t,onClick:H(e.onClick,i.onClose)})})});zt.displayName=Rt;var Bt=z.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...i}=e;return(0,W.jsx)(G.div,{"data-radix-toast-announce-exclude":``,"data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Vt(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),Gt(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.radixToastAnnounceExclude===``;if(!n)if(r){let n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...Vt(e))}}),t}function Ht(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ae(i,a):i.dispatchEvent(a)}var Ut=(e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n};function Wt(e=()=>{}){let t=K(e);qe(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}function Gt(e){return e.nodeType===e.ELEMENT_NODE}function Kt(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function qt(e){let t=document.activeElement;return e.some(e=>e===t?!0:(e.focus(),document.activeElement!==t))}var Jt=mt,Yt=yt,Xt=Dt,Zt=Nt,Qt=Ft,$t=Lt,en=zt;function tn(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=tn(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function nn(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=tn(e))&&(r&&(r+=` `),r+=t);return r}var rn=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,an=nn,on=(e,t)=>n=>{if(t?.variants==null)return an(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=rn(t)||rn(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return an(e,a,t?.compoundVariants?.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({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},sn=v(`ArrowRight`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),cn=v(`ArrowUpRight`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),ln=v(`ChevronLeft`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),un=v(`ChevronRight`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),dn=v(`CircleAlert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),fn=v(`LockOpen`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]]),pn=v(`Lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),mn=v(`MapPin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),hn=v(`Play`,[[`polygon`,{points:`6 3 20 12 6 21 6 3`,key:`1oa8hb`}]]),gn=v(`Ticket`,[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`M13 5v2`,key:`dyzc3o`}],[`path`,{d:`M13 17v2`,key:`1ont0d`}],[`path`,{d:`M13 11v2`,key:`1wjjxi`}]]),_n=v(`X`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),vn=`-`,yn=e=>{let t=Cn(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split(vn);return n[0]===``&&n.length!==1&&n.shift(),bn(n,t)||Sn(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},bn=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?bn(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(vn);return t.validators.find(({validator:e})=>e(a))?.classGroupId},xn=/^\[(.+)\]$/,Sn=e=>{if(xn.test(e)){let t=xn.exec(e)[1],n=t?.substring(0,t.indexOf(`:`));if(n)return`arbitrary..`+n}},Cn=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 15,533 bytes, line 2
2return Dn(Object.entries(e.classGroups),n).forEach(([e,n])=>{wn(n,r,e,t)}),r},wn=(e,t,n,r)=>{e.forEach(e=>{if(typeof e==`string`){let r=e===``?t:Tn(t,e);r.classGroupId=n;return}if(typeof e==`function`){if(En(e)){wn(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,i])=>{wn(i,Tn(t,e),n,r)})})},Tn=(e,t)=>{let n=e;return t.split(vn).forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},En=e=>e.isThemeGetter,Dn=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>typeof e==`string`?t+e:typeof e==`object`?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,On=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);if(t!==void 0)return t;if((t=r.get(e))!==void 0)return i(e,t),t},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},kn=`!`,An=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],a=t.length,o=e=>{let n=[],o=0,s=0,c;for(let l=0;l<e.length;l++){let u=e[l];if(o===0){if(u===i&&(r||e.slice(l,l+a)===t)){n.push(e.slice(s,l)),s=l+a;continue}if(u===`/`){c=l;continue}}u===`[`?o++:u===`]`&&o--}let l=n.length===0?e:e.substring(s),u=l.startsWith(kn);return{modifiers:n,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:c&&c>s?c-s:void 0}};return n?e=>n({className:e,parseClassName:o}):o},jn=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{e[0]===`[`?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},Mn=e=>({cache:On(e.cacheSize),parseClassName:An(e),...yn(e)}),Nn=/\s+/,Pn=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(Nn),s=``;for(let e=o.length-1;e>=0;--e){let t=o[e],{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:d}=n(t),f=!!d,p=r(f?u.substring(0,d):u);if(!p){if(!f){s=t+(s.length>0?` `+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?` `+s:s);continue}f=!1}let m=jn(c).join(`:`),h=l?m+kn:m,g=h+p;if(a.includes(g))continue;a.push(g);let _=i(p,f);for(let e=0;e<_.length;++e){let t=_[e];a.push(h+t)}s=t+(s.length>0?` `+s:s)}return s};function Fn(){let e=0,t,n,r=``;for(;e<arguments.length;)(t=arguments[e++])&&(n=In(t))&&(r&&(r+=` `),r+=n);return r}var In=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=In(e[r]))&&(n&&(n+=` `),n+=t);return n};function Ln(e,...t){let n,r,i,a=o;function o(o){return n=Mn(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)}function s(e){let t=r(e);if(t)return t;let a=Pn(e,n);return i(e,a),a}return function(){return a(Fn.apply(null,arguments))}}var q=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},Rn=/^\[(?:([a-z-]+):)?(.+)\]$/i,zn=/^\d+\/\d+$/,Bn=new Set([`px`,`full`,`screen`]),Vn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Un=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Wn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Gn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kn=e=>Jn(e)||Bn.has(e)||zn.test(e),qn=e=>or(e,`length`,sr),Jn=e=>!!e&&!Number.isNaN(Number(e)),Yn=e=>or(e,`number`,Jn),Xn=e=>!!e&&Number.isInteger(Number(e)),Zn=e=>e.endsWith(`%`)&&Jn(e.slice(0,-1)),J=e=>Rn.test(e),Qn=e=>Vn.test(e),$n=new Set([`length`,`size`,`percentage`]),er=e=>or(e,$n,cr),tr=e=>or(e,`position`,cr),nr=new Set([`image`,`url`]),rr=e=>or(e,nr,ur),ir=e=>or(e,``,lr),ar=()=>!0,or=(e,t,n)=>{let r=Rn.exec(e);return r?r[1]?typeof t==`string`?r[1]===t:t.has(r[1]):n(r[2]):!1},sr=e=>Hn.test(e)&&!Un.test(e),cr=()=>!1,lr=e=>Wn.test(e),ur=e=>Gn.test(e),dr=Ln(()=>{let e=q(`colors`),t=q(`spacing`),n=q(`blur`),r=q(`brightness`),i=q(`borderColor`),a=q(`borderRadius`),o=q(`borderSpacing`),s=q(`borderWidth`),c=q(`contrast`),l=q(`grayscale`),u=q(`hueRotate`),d=q(`invert`),f=q(`gap`),p=q(`gradientColorStops`),m=q(`gradientColorStopPositions`),h=q(`inset`),g=q(`margin`),_=q(`opacity`),v=q(`padding`),y=q(`saturate`),b=q(`scale`),x=q(`sepia`),S=q(`skew`),C=q(`space`),w=q(`translate`),T=()=>[`auto`,`contain`,`none`],E=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],D=()=>[`auto`,J,t],O=()=>[J,t],k=()=>[``,Kn,qn],A=()=>[`auto`,Jn,J],j=()=>[`bottom`,`center`,`left`,`left-bottom`,`left-top`,`right`,`right-bottom`,`right-top`,`top`],M=()=>[`solid`,`dashed`,`dotted`,`double`,`none`],N=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],P=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`],F=()=>[``,`0`,J],I=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],L=()=>[Jn,J];return{cacheSize:500,separator:`:`,theme:{colors:[ar],spacing:[Kn,qn],blur:[`none`,``,Qn,J],brightness:L(),borderColor:[e],borderRadius:[`none`,``,`full`,Qn,J],borderSpacing:O(),borderWidth:k(),contrast:L(),grayscale:F(),hueRotate:L(),invert:F(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Zn,qn],inset:D(),margin:D(),opacity:L(),padding:O(),saturate:L(),scale:L(),sepia:F(),skew:L(),space:O(),translate:O()},classGroups:{aspect:[{aspect:[`auto`,`square`,`video`,J]}],container:[`container`],columns:[{columns:[Qn]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:[...j(),J]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[`auto`,Xn,J]}],basis:[{basis:D()}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`wrap`,`wrap-reverse`,`nowrap`]}],flex:[{flex:[`1`,`auto`,`initial`,`none`,J]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:[`first`,`last`,`none`,Xn,J]}],"grid-cols":[{"grid-cols":[ar]}],"col-start-end":[{col:[`auto`,{span:[`full`,Xn,J]},J]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[ar]}],"row-start-end":[{row:[`auto`,{span:[Xn,J]},J]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":[`auto`,`min`,`max`,`fr`,J]}],"auto-rows":[{"auto-rows":[`auto`,`min`,`max`,`fr`,J]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:[`normal`,...P()]}],"justify-items":[{"justify-items":[`start`,`end`,`center`,`stretch`]}],"justify-self":[{"justify-self":[`auto`,`start`,`end`,`center`,`stretch`]}],"align-content":[{content:[`normal`,...P(),`baseline`]}],"align-items":[{items:[`start`,`end`,`center`,`baseline`,`stretch`]}],"align-self":[{self:[`auto`,`start`,`end`,`center`,`stretch`,`baseline`]}],"place-content":[{"place-content":[...P(),`baseline`]}],"place-items":[{"place-items":[`start`,`end`,`center`,`baseline`,`stretch`]}],"place-self":[{"place-self":[`auto`,`start`,`end`,`center`,`stretch`]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":[C]}],"space-y-reverse":[`space-y-reverse`],w:[{w:[`auto`,`min`,`max`,`fit`,`svw`,`lvw`,`dvw`,J,t]}],"min-w":[{"min-w":[J,t,`min`,`max`,`fit`]}],"max-w":[{"max-w":[J,t,`none`,`full`,`min`,`max`,`fit`,`prose`,{screen:[Qn]},Qn]}],h:[{h:[J,t,`auto`,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"min-h":[{"min-h":[J,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"max-h":[{"max-h":[J,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],size:[{size:[J,t,`auto`,`min`,`max`,`fit`]}],"font-size":[{text:[`base`,Qn,qn]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`,Yn]}],"font-family":[{font:[ar]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`,J]}],"line-clamp":[{"line-clamp":[`none`,Jn,Yn]}],leading:[{leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`,Kn,J]}],"list-image":[{"list-image":[`none`,J]}],"list-style-type":[{list:[`none`,`disc`,`decimal`,J]}],"list-style-position":[{list:[`inside`,`outside`]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...M(),`wavy`]}],"text-decoration-thickness":[{decoration:[`auto`,`from-font`,Kn,qn]}],"underline-offset":[{"underline-offset":[`auto`,Kn,J]}],"text-decoration-color":[{decoration:[e]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:O()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,J]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:[...j(),tr]}],"bg-repeat":[{bg:[`no-repeat`,{repeat:[``,`x`,`y`,`round`,`space`]}]}],"bg-size":[{bg:[`auto`,`cover`,`contain`,er]}],"bg-image":[{bg:[`none`,{"gradient-to":[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},rr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...M(),`hidden`]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":[`divide-y-reverse`],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:M()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[``,...M()]}],"outline-offset":[{"outline-offset":[Kn,J]}],"outline-w":[{outline:[Kn,qn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:k()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[Kn,qn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:[``,`inner`,`none`,Qn,ir]}],"shadow-color":[{shadow:[ar]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...N(),`plus-lighter`,`plus-darker`]}],"bg-blend":[{"bg-blend":N()}],filter:[{filter:[``,`none`]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":[``,`none`,Qn,J]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":[``,`none`]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[`none`,`all`,``,`colors`,`opacity`,`shadow`,`transform`,J]}],duration:[{duration:L()}],ease:[{ease:[`linear`,`in`,`out`,`in-out`,J]}],delay:[{delay:L()}],animate:[{animate:[`none`,`spin`,`ping`,`pulse`,`bounce`,J]}],transform:[{transform:[``,`gpu`,`none`]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[Xn,J]}],"translate-x":[{"translate-x":[w]}],"translate-y":[{"translate-y":[w]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:[`center`,`top`,`top-right`,`right`,`bottom-right`,`bottom`,`bottom-left`,`left`,`top-left`,J]}],accent:[{accent:[`auto`,e]}],appearance:[{appearance:[`none`,`auto`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom
2-in`,`zoom-out`,J]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":[`none`,`auto`]}],resize:[{resize:[`none`,`y`,`x`,``]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,J]}],fill:[{fill:[e,`none`]}],"stroke-w":[{stroke:[Kn,qn,Yn]}],stroke:[{stroke:[e,`none`]}],sr:[`sr-only`,`not-sr-only`],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-s`,`border-w-e`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-s`,`border-color-e`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]}}});function fr(...e){return dr(nn(e))}var pr=Jt,mr=z.forwardRef(({className:e,...t},n)=>(0,W.jsx)(Yt,{ref:n,className:fr(`fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]`,e),...t}));mr.displayName=Yt.displayName;var hr=on(`group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full`,{variants:{variant:{default:`border bg-background text-foreground`,destructive:`destructive group border-destructive bg-destructive text-destructive-foreground`}},defaultVariants:{variant:`default`}}),gr=z.forwardRef(({className:e,variant:t,...n},r)=>(0,W.jsx)(Xt,{ref:r,className:fr(hr({variant:t}),e),...n}));gr.displayName=Xt.displayName;var _r=z.forwardRef(({className:e,...t},n)=>(0,W.jsx)($t,{ref:n,className:fr(`inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive`,e),...t}));_r.displayName=$t.displayName;var vr=z.forwardRef(({className:e,...t},n)=>(0,W.jsx)(en,{ref:n,className:fr(`absolute right-2 top-2 rounded-md p-1 text-foreground
2/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600`,e),"toast-close":``,...t,children:(0,W.jsx)(_n,{className:`h-4 w-4`})}));vr.displayName=en.displayName;var yr=z.forwardRef(({className:e,...t},n)=>(0,W.jsx)(Zt,{ref:n,className:fr(`text-sm font-semibold`,e),...t}));yr.displayName=Zt.displayName;var br=z.forwardRef(({className:e,...t},n)=>(0,W.jsx)(Qt,{ref:n,className:fr(`text-sm opacity-90`,e),...t}));br.displayName=Qt.displayName;function xr(){let{toasts:e}=me();return(0,W.jsxs)(pr,{children:[e.map(function({id:e,title:t,description:n,action:r,...i}){return(0,W.jsxs)(gr,{...i,children:[(0,W.jsxs)(`div`,{className:`grid gap-1`,children:[t&&(0,W.jsx)(yr,{children:t}),n&&(0,W.jsx)(br,{children:n})]}),r,(0,W.jsx)(vr,{})]},e)}),(0,W.jsx)(mr,{})]})}function Sr(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Cr=e=>{switch(e){case`success`:return Er;case`info`:return Or;case`warning`:return Dr;case`error`:return kr;default:return null}},wr=Array(12).fill(0),Tr=({visible:e,className:t})=>z.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},z.createElement(`div`,{className:`sonner-spinner`},wr.map((e,t)=>z.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),Er=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),Dr=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),Or=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),kr=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},z.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),Ar=z.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},z.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),z.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),jr=()=>{let[e,t]=z.useState(document.hidden);return z.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},Mr=1,Y=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:Mr++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>
2this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],z.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(Pr(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!z.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||Mr++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Nr=(e,t)=>{let n=t?.id||Mr++;return Y.addToast({title:e,...t,id:n}),n},Pr=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`;Object.assign(Nr,{success:Y.success,info:Y.info,warning:Y.warning,error:Y.error,custom:Y.custom,message:Y.message,promise:Y.promise,dismiss:Y.dismiss,loading:Y.loading},{getHistory:()=>Y.toasts,getToasts:()=>Y.getActiveToasts()}),Sr(`
vendor: 14,859 bytes, line 2
2[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
2`);function Fr(e){return e.label!==void 0}var Ir=3,Lr=`24px`,Rr=`16px`,zr=4e3,Br=356,Vr=14,Hr=45,Ur=200;function Wr(...e){return e.filter(Boolean).join(` `)}function Gr(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Kr=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[E,D]=z.useState(null),[O,k]=z.useState(null),[A,j]=z.useState(!1),[M,N]=z.useState(!1),[P,F]=z.useState(!1),[I,L]=z.useState(!1),[ee,te]=z.useState(!1),[ne,R]=z.useState(0),[re,ie]=z.useState(0),ae=z.useRef(n.duration||y||zr),oe=z.useRef(null),B=z.useRef(null),se=c===0,ce=c+1<=o,V=n.type,le=n.dismissible!==!1,ue=n.className||``,de=n.descriptionClassName||``,fe=z.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),pe=z.useMemo(()=>n.closeButton??p,[n.closeButton,p]),me=z.useMemo(()=>n.duration||y||zr,[n.duration,y]),he=z.useRef(0),H=z.useRef(0),ge=z.useRef(0),_e=z.useRef(null),[U,W]=b.split(`-`),ve=z.useMemo(()=>
2s.reduce((e,t,n)=>n>=fe?e:e+t.height,0),[s,fe]),ye=jr(),be=n.invert||t,xe=V===`loading`;H.current=z.useMemo(()=>fe*x+ve,[fe,ve]),z.useEffect(()=>{ae.current=me},[me]),z.useEffect(()=>{j(!0)},[]),z.useEffect(()=>{let e=B.current;if(e){let t=e.getBoundingClientRect().height;return ie(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),z.useLayoutEffect(()=>{if(!A)return;let e=B.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,ie(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[A,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Se=z.useCallback(()=>{N(!0),R(H.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},Ur)},[n,d,a,H]);z.useEffect(()=>{if(n.promise&&V===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||ye?(()=>{if(ge.current<he.current){let e=new Date().getTime()-he.current;ae.current-=e}ge.current=new Date().getTime()})():ae.current!==1/0&&(he.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Se()},ae.current)),()=>clearTimeout(e)},[u,i,n,V,ye,Se]),z.useEffect(()=>{n.delete&&(Se(),n.onDismiss==null||n.onDismiss.call(n,n))},[Se,n.delete]);function Ce(){return w?.loading?z.createElement(`div`,{className:Wr(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":V===`loading`},w.loading):z.createElement(Tr,{className:Wr(C?.loader,n?.classNames?.loader),visible:V===`loading`})}let we=n.icon||w?.[V]||Cr(V);return z.createElement(`li`,{tabIndex:0,ref:B,className:Wr(_,ue,C?.toast,n?.classNames?.toast,C?.default,C?.[V],n?.classNames?.[V]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":A,"data-promise":!!n.promise,"data-swiped":ee,"data-removed":M,"data-visible":ce,"data-y-position":U,"data-x-position":W,"data-index":c,"data-front":se,"data-swiping":P,"data-dismissible":le,"data-type":V,"data-invert":be,"data-swipe-out":I,"data-swipe-direction":O,"data-expanded":!!(u||S&&A),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${M?ne:H.current}px`,"--initial-height":S?`auto`:`${re}px`,...m,...n.style},onDragEnd:()=>{F(!1),D(null),_e.current=null},onPointerDown:e=>{e.button!==2&&(xe||!le||(oe.current=new Date,R(H.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(F(!0),_e.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(I||!le)return;_e.current=null;let e=Number(B.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(B.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-oe.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=Hr||a>.11){R(H.current),n.onDismiss==null||n.onDismiss.call(n,n),k(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Se(),L(!0);return}else{var o,s;(o=B.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=B.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}te(!1),F(!1),D(null)},onPointerMove:t=>{var n,r;if(!_e.current||!le||window.getSelection()?.toString().length>0)return;let i=t.clientY-_e.current.y,a=t.clientX-_e.current.x,o=e.swipeDirections??Gr(b);!E&&(Math.abs(a)>1||Math.abs(i)>1)&&D(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if(E===`x`&&(o.includes(`left`)||o.includes(`right`)))if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&te(!0),(n=B.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=B.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},pe&&!n.jsx&&V!==`loading`?z.createElement(`button`,{"aria-label":T,"data-disabled":xe,"data-close-button":!0,onClick:xe||!le?()=>{}:()=>{Se(),n.onDismiss==null||n.onDismiss.call(n,n)},className:Wr(C?.closeButton,n?.classNames?.closeButton)},w?.close??Ar):null,(V||n.icon||n.promise)&&n.icon!==null&&(w?.[V]!==null||n.icon)?z.createElement(`div`,{"data-icon":``,className:Wr(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Ce():null,n.type===`loading`?null:we):null,z.createElement(`div`,{"data-content":``,className:Wr(C?.content,n?.classNames?.content)},z.createElement(`div`,{"data-title":``,className:Wr(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?z.createElement(`div`,{"data-description":``,className:Wr(v,de,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),z.isValidElement(n.cancel)?n.c
2ancel:n.cancel&&Fr(n.cancel)?z.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{Fr(n.cancel)&&le&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Se())},className:Wr(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,z.isValidElement(n.action)?n.action:n.action&&Fr(n.action)?z.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{Fr(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Se())},className:Wr(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function qr(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Jr(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Rr:Lr;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var Yr=z.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=Ir,toastOptions:g,dir:_=qr(),gap:v=Vr,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=z.useState([]),C=z.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=z.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[T,E]=z.useState([]),[D,O]=z.useState(!1),[k,A]=z.useState(!1),[j,M]=z.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),N=z.useRef(null),P=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),F=z.useRef(null),I=z.useRef(!1),L=z.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||Y.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return z.useEffect(()=>Y.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{he.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),z.useEffect(()=>{if(d!==`system`){M(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?M(`dark`):M(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{M(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{M(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),z.useEffect(()=>{x.length<=1&&O(!1)},[x]),z.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;O(!0),(t=N.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===N.current||N.current?.contains(document.activeElement))&&O(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),z.useEffect(()=>{if(N.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,I.current=!1)}},[N.current]),z.createElement(`section`,{ref:t,"aria-label":`${b} ${P}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?z.createElement(`ol`,{key:t,dir:_===`auto`?qr():_,tabIndex:-1,ref:N,className:c,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${Br}px`,"--gap":`${v}px`,...m,...Jr(l,u)},onBlur:e=>{I.current&&!e.currentTarget.contains(e.relatedTarget)&&(I.current=!1,F.current&&=(F.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`fal
2se`||I.current||(I.current=!0,F.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{k||O(!1)},onDragEnd:()=>O(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||A(!0)},onPointerUp:()=>A(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>z.createElement(Kr,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:k,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:L,toasts:C.filter(e=>e.position==n.position),heights:T.filter(e=>e.position==n.position),setHeights:E,expandByDefault:o,gap:v,expanded:D,swipeDirections:e.swipeDirections}))):null}))}),Xr=z.useId||(()=>void 0),Zr=0;function Qr(e){let[t,n]=z.useState(Xr());return qe(()=>{e||n(e=>e??String(Zr++))},[e]),e||(t?`radix-${t}`:``)}var $r=[`top`,`right`,`bottom`,`left`],ei=Math.min,X=Math.max,ti=Math.round,ni=Math.floor,ri=e=>({x:e,y:e}),ii={left:`right`,right:`left`,bottom:`top`,top:`bottom`},ai={start:`end`,end:`start`};function oi(e,t,n){return X(e,ei(t,n))}function si(e,t){return typeof e==`function`?e(t):e}function ci(e){return e.split(`-`)[0]}function li(e){return e.split(`-`)[1]}function ui(e){return e===`x`?`y`:`x`}function di(e){return e===`y`?`height`:`width`}function fi(e){return[`top`,`bottom`].includes(ci(e))?`y`:`x`}function pi(e){return ui(fi(e))}function mi(e,t,n){n===void 0&&(n=!1);let r=li(e),i=pi(e),a=di(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=yi(o)),[o,yi(o)]}function hi(e){let t=yi(e);return[gi(e),t,gi(t)]}function gi(e){return e.replace(/start|end/g,e=>ai[e])}function _i(e,t,n){let r=[`left`,`right`],i=[`right`,`left`],a=[`top`,`bottom`],o=[`bottom`,`top`];switch(e){case`top`:case`bottom`:return n?t?i:r:t?r:i;case`left`:case`right`:return t?a:o;default:return[]}}function vi(e,t,n,r){let i=li(e),a=_i(ci(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(gi)))),a}function yi(e){return e.replace(/left|right|bottom|top/g,e=>ii[e])}function bi(e){return{top:0,right:0,bottom:0,left:0,...e}}function xi(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:bi(e)}function Si(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ci(e,t,n){let{reference:r,floating:i}=e,a=fi(t),o=pi(t),s=di(o),c=ci(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(li(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}var wi=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ci(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=Ci(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function Ti(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=si(t,e),p=xi(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Si(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Si(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left
vendor: 13,990 bytes, line 2
2:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ei=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=si(e,t)||{};if(l==null)return{};let d=xi(u),f={x:n,y:r},p=pi(i),m=di(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=ei(d[_],T),D=ei(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=oi(O,A,k),M=!c.arrow&&li(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),Di=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=si(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ci(r),_=fi(o),v=ci(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[yi(o)]:hi(o)),x=p!==`none`;!d&&x&&b.push(...vi(o,m,p,y));let S=[o,...b],C=await Ti(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=mi(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=fi(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Oi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ki(e){return $r.some(t=>e[t]>=0)}var Ai=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n}=t,{strategy:r=`referenceHidden`,...i}=si(e,t);switch(r){case`referenceHidden`:{let e=Oi(await Ti(t,{...i,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ki(e)}}}case`escaped`:{let e=Oi(await Ti(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ki(e)}}}default:return{}}}}};async function ji(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ci(n),s=li(n),c=fi(n)===`y`,l=[`left`,`top`].includes(o)?-1:1,u=a&&c?-1:1,d=si(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Mi=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ji(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ni=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=si(e,t),l={x:n,y:r},u=await Ti(t,c),d=fi(ci(i)),f=ui(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=oi(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=oi(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},Pi=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=si(e,t),u={x:n,y:r},d=fi(i),f=ui(d),p=u[f],m=u[d],h=si(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=[`top`,`left`].includes(ci(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Fi=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=si(e,t),u=await Ti(t,l),d=ci(i),f=li(i),p=fi(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=ei(h-u[g],v),x=ei(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=X(u.left,0),t=X(u.right,0),n=X(u.top,0),r=X(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:X(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:X(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Ii(){return typeof window<`u`}function Li(e){return zi(e)?(e.nodeName||``).toLowerCase():`#document`}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ri(e){return((zi(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function zi(e){return Ii()?e instanceof Node||e instanceof Z(e).Node:!1}function Bi(e){return Ii()?e instanceof Element||e instanceof Z(e).Element:!1}function Vi(e){return Ii()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function Hi(e){return!Ii()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function Ui(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Xi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function Wi(e){return[`table`,`td`,`th`].includes(Li(e))}function Gi(e){return[`:popover-open`,`:modal`].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ki(e){let t=Ji(),n=Bi(e)?Xi(e):e;return[`transform`,`translate`,`scale`,`rotate`,`perspective`].some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`].some(e=>(n.willChange||``).includes(e))||[`paint`,`layout`,`strict`,`content`].some(e=>(n.contain||``).includes(e))}function qi(e){let t=Qi(e);for(;Vi(t)&&!Yi(t);){if(Ki(t))return t;if(Gi(t))return null;t=Qi(t)}return null}function Ji(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}function Yi(e){return[`html`,`body`,`#document`].includes(Li(e))}function Xi(e){return Z(e).getComputedStyle(e)}function Zi(e){return Bi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qi(e){if(Li(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Hi(e)&&e.host||Ri(e);return Hi(t)?t.host:t}function $i(e){let t=Qi(e);return Yi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vi(t)&&Ui(t)?t:$i(t)}function ea(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=$i(e),i=r===e.ownerDocument?.body,a=Z(r);if(i){let e=ta(a);return t.concat(a,a.visualViewport||[],Ui(r)?r:[],e&&n?ea(e):[])}return t.concat(r,ea(r,[],n))}function ta(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function na(e){let t=Xi(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Vi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ti(n)!==a||ti(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ra(e){return Bi(e)?e:e.contextElement}function ia(e){let t=ra(e);if(!Vi(t))return ri(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=na(t),o=(a?ti(n.width):n.width)/r,s=(a?ti(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var aa=ri(0);function oa(e){let t=Z(e);return!Ji()||!t.visualViewport?aa:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sa(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Z(e)?!1:t}function ca(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ra(e),o=ri(1);t&&(r?Bi(r)&&(o=ia(r)):o=ia(e));let s=sa(a,n,r)?oa(a):ri(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Z(a),t=r&&Bi(r)?Z(r):r,n=e,i=ta(n);for(;i&&r&&t!==n;){let e=ia(i),t=i.getBoundingClientRect(),r=Xi(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Z(i),i=ta(n)}}return Si({width:u,height:d,x:c,y:l})}function la(e,t){let n=Zi(e).scrollLeft;return t?t.left+n:ca(Ri(e)).left+n}function ua(e,t,n){n===void 0&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:la(e,r)),y:r.top+t.scrollTop}}function da(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ri(r),s=t?Gi(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ri(1),u=ri(0),d=Vi(r);if((d||!d&&!a)&&((Li(r)!==`body`||Ui(o))&&(c=Zi(r)),Vi(r))){let e=ca(r);l=ia(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?ua(o,c,!0):ri(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function fa(e){return Array.from(e.getClientRects())}function pa(e){let t=Ri(e),n=Zi(e),r=e.ownerDocument.body,i=X(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=X(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+la(e),s=-n.scrollTop;return Xi(r).direction===`rtl`&&(o+=X(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function ma(e,t){let n=Z(e),r=Ri(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Ji();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}function ha(e,t){let n=ca(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Vi(e)?ia(e):ri(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ga(e,t,n){let r;if(t===`viewport`)r=ma(e,n);else if(t===`document`)r=pa(Ri(e));else if(Bi(t))r=ha(t,n);else{let n=oa(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Si(r)}function _a(e,t){let n=Qi(e);return n===t||!Bi(n)||Yi(n)?!1:Xi(n).position===`fixed`||_a(n,t)}function va(e,t){let n=t.get(e);if(n)return n;let r=ea(e,[],!1).filter(e=>Bi(e)&&Li(e)!==`body`),i=null,a=Xi(e).position===`fixed`,o=a?Qi(e):e;for(;Bi(o)&&!Yi(o);){let t=Xi(o),n=Ki(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&[`absolute`,`fixed`].includes(i.position)||Ui(o)&&!n&&_a(e,o))?r=r.filter(e=>e!==o):i=t,o=Qi(o)}return t.set(e,r),r}function ya(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Gi(t)?[]:va(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=ga(t,n,i);return e.top=X(r.top,e.top),e.right=ei(r.right,e.right),e.bottom=ei(r.bottom,e.bottom),e.left=X(r.left,e.left),e},ga(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function ba(e){let{width:t,height:n}=na(e);return{width:t,height:n}}function xa(e,t,n){let r=Vi(t),i=Ri(t),a=n===`fixed`,o=ca(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ri(0);if(r||!r&&!a)if((Li(t)!==`body`||Ui(i))&&(s=Zi(t)),r){let e=ca(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=la(i));let l=i&&!r&&!a?ua(i,s):ri(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Sa(e){return Xi(e).position===`static`}function Ca(e,t){if(!Vi(e)||Xi(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Ri(e)===n&&(n=n.ownerDocument.body),n}function wa(e,t){let n=Z(e);if(Gi(e))return n;if(!Vi(e)){let t=Qi(e);for(;t&&!Yi(t);){if(Bi(t)&&!Sa(t))return t;t=Qi(t)}return n}let r=Ca(e,t);for(;r&&Wi(r)&&Sa(r);)r=Ca(r,t);return r&&Yi(r)&&Sa(r)&&!Ki(r)?n:r||qi(e)||n}var Ta=async function(e){let t=this.getOffsetParent||wa,n=this.getDimensions,r=await n(e.floating);return{reference:xa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ea(e){return Xi(e).direction===`rtl`}var Da={convertOffsetParentRelativeRectToViewportRelativeRect:da,getDocumentElement:Ri,getClippingRect:ya,getOffsetParent:wa,getElementRects:Ta,getClientRects:fa,getDimensions:ba,getScale:ia,isElement:Bi,isRTL:Ea};function Oa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ka(e,t){let n=null,r,i=Ri(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=ni(d),h=ni(i.clientWidth-(u+f)),g=ni(i.clientHeight-(d+p)),_=ni(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:X(0,ei(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Oa(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Aa(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ra(e),u=i||a?[...l?ea(l):[],...ea(t)]:[];
vendor: 4,683 bytes, line 2
2u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?ka(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?ca(e):null;c&&g();function g(){let t=ca(e);h&&!Oa(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ja=Mi,Ma=Ni,Na=Di,Pa=Fi,Fa=Ai,Ia=Ei,La=Pi,Ra=(e,t,n)=>{let r=new Map,i={platform:Da,...n},a={...i.platform,_c:r};return wi(e,t,{...i,platform:a})},za=typeof document<`u`?z.useLayoutEffect:z.useEffect;function Ba(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ba(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Ba(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Va(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ha(e,t){let n=Va(e);return Math.round(t*n)/n}function Ua(e){let t=z.useRef(e);return za(()=>{t.current=e}),t}function Wa(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=z.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=z.useState(r);Ba(f,r)||p(r);let[m,h]=z.useState(null),[g,_]=z.useState(null),v=z.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=z.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=z.useRef(null),C=z.useRef(null),w=z.useRef(u),T=c!=null,E=Ua(c),D=Ua(i),O=Ua(l),k=z.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Ra(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Ba(w.current,t)&&(w.current=t,he.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);za(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=z.useRef(!1);za(()=>(A.current=!0,()=>{A.current=!1}),[]),za(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=z.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=z.useMemo(()=>({reference:b,floating:x}),[b,x]),N=z.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Ha(M.floating,u.x),r=Ha(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Va(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return z.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Ga=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Ia({element:r.current,padding:i}).fn(n):r?Ia({element:r,padding:i}).fn(n):{}}}},Ka=(e,t)=>({...ja(e),options:[e,t]}),qa=(e,t)=>({...Ma(e),options:[e,t]}),Ja=(e,t)=>({...La(e),options:[e,t]}),Ya=(e,t)=>({...Na(e),options:[e,t]}),Xa=(e,t)=>({...Pa(e),options:[e,t]}),Za=(e,t)=>({...Fa(e),options:[e,t]}),Qa=(e,t)=>({...Ga(e),options:[e,t]}),$a=`Arrow`,eo=z.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,W.jsx)(G.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,W.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});eo.displayName=$a;var to=eo;function no(e){let[t,n]=z.useState(void 0);return qe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var ro=`Popper`,[io,ao]=ye(ro),[oo,so]=io(ro),co=e=>{let{__scopePopper:t,children:n}=e,[r,i]=z.useState(null);return(0,W.jsx)(oo,{scope:t,anchor:r,onAnchorChange:i,children:n})};co.displayName=ro;var lo=`PopperAnchor`,uo=z.forwardRef((e,t)=>
vendor: 4,203 bytes, line 2
2{let{__scopePopper:n,virtualRef:r,...i}=e,a=so(lo,n),o=z.useRef(null),s=U(t,o);return z.useEffect(()=>{a.onAnchorChange(r?.current||o.current)}),r?null:(0,W.jsx)(G.div,{...i,ref:s})});uo.displayName=lo;var fo=`PopperContent`,[po,mo]=io(fo),ho=z.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=so(fo,n),[_,v]=z.useState(null),y=U(t,e=>v(e)),[b,x]=z.useState(null),S=no(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],O=D.length>0,k={padding:E,boundary:D.filter(yo),altBoundary:O},{refs:A,floatingStyles:j,placement:M,isPositioned:N,middlewareData:P}=Wa({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>Aa(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[Ka({mainAxis:i+w,alignmentAxis:o}),c&&qa({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Ja():void 0,...k}),c&&Ya({...k}),Xa({...k,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&Qa({element:b,padding:s}),bo({arrowWidth:C,arrowHeight:w}),f&&Za({strategy:`referenceHidden`,...k})]}),[F,I]=xo(M),L=K(m);qe(()=>{N&&L?.()},[N,L]);let ee=P.arrow?.x,te=P.arrow?.y,ne=P.arrow?.centerOffset!==0,[R,re]=z.useState();return qe(()=>{_&&re(window.getComputedStyle(_).zIndex)},[_]),(0,W.jsx)(`div`,{ref:A.setFloating,"data-radix-popper-content-wrapper":``,style:{...j,transform:N?j.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:R,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(` `),...P.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,W.jsx)(po,{scope:n,placedSide:F,onArrowChange:x,arrowX:ee,arrowY:te,shouldHideArrow:ne,children:(0,W.jsx)(G.div,{"data-side":F,"data-align":I,...h,ref:y,style:{...h.style,animation:N?void 0:`none`}})})})});ho.displayName=fo;var go=`PopperArrow`,_o={top:`bottom`,right:`left`,bottom:`top`,left:`right`},vo=z.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=mo(go,n),a=_o[i.placedSide];return(0,W.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,W.jsx)(to,{...r,ref:t,style:{...r.style,display:`block`}})})});vo.displayName=go;function yo(e){return e!==null}var bo=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=xo(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function xo(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var So=co,Co=uo,wo=ho,To=vo,[Eo,Do]=ye(`Tooltip`,[ao]),Oo=ao(),ko=`TooltipProvider`,Ao=700,jo=`tooltip.open`,[Mo,No]=Eo(ko),Po=e=>{let{__scopeTooltip:t,delayDuration:n=Ao,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=z.useRef(!0),s=z.useRef(!1),c=z.useRef(0);return z.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,W.jsx)(Mo,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:z.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:z.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 5,235 bytes, line 2
2o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:z.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};Po.displayName=ko;var Fo=`Tooltip`,[Io,Lo]=Eo(Fo),Ro=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=No(Fo,e.__scopeTooltip),l=Oo(t),[u,d]=z.useState(null),f=Qr(),p=z.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=z.useRef(!1),[_=!1,v]=tt({prop:r,defaultProp:i,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(jo))):c.onClose(),a?.(e)}}),y=z.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=z.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=z.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=z.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return z.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,W.jsx)(So,{...l,children:(0,W.jsx)(Io,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:z.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:z.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};Ro.displayName=Fo;var zo=`TooltipTrigger`,Bo=z.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Lo(zo,n),a=No(zo,n),o=Oo(n),s=U(t,z.useRef(null),i.onTriggerChange),c=z.useRef(!1),l=z.useRef(!1),u=z.useCallback(()=>c.current=!1,[]);return z.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,W.jsx)(Co,{asChild:!0,...o,children:(0,W.jsx)(G.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:H(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:H(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:H(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:H(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:H(e.onBlur,i.onClose),onClick:H(e.onClick,i.onClose)})})});Bo.displayName=zo;var Vo=`TooltipPortal`,[Ho,Uo]=Eo(Vo,{forceMount:void 0}),Wo=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Lo(Vo,t);return(0,W.jsx)(Ho,{scope:t,forceMount:n,children:(0,W.jsx)(Ze,{present:n||a.open,children:(0,W.jsx)(Ye,{asChild:!0,container:i,children:r})})})};Wo.displayName=Vo;var Go=`TooltipContent`,Ko=z.forwardRef((e,t)=>{let n=Uo(Go,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Lo(Go,e.__scopeTooltip);return(0,W.jsx)(Ze,{present:r||o.open,children:o.disableHoverableContent?(0,W.jsx)(Zo,{side:i,...a,ref:t}):(0,W.jsx)(qo,{side:i,...a,ref:t})})}),qo=z.forwardRef((e,t)=>{let n=Lo(Go,e.__scopeTooltip),r=No(Go,e.__scopeTooltip),i=z.useRef(null),a=U(t,i),[o,s]=z.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=z.useCallback(()=>{s(null),d(!1)},[d]),p=z.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=ts(r,es(r,n.getBoundingClientRect())),a=ns(t.getBoundingClientRect()),o=is([...i,...a]);s(o),d(!0)},[d]);return z.useEffect(()=>()=>f(),[f]),z.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),z.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!rs(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,W.jsx)(Zo,{...e,ref:a})}),[Jo,Yo]=Eo(Fo,{isInside:!1}),Xo=Te(`TooltipContent`),Zo=z.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=Lo(Go,n),l=Oo(n),{onClose:u}=c;return z.useEffect(()=>(document.addEventListener(jo,u),()=>document.removeEventListener(jo,u)),[u]),z.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,W.jsx)(Re,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,W.jsxs)(wo,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,W.jsx)(Xo,{children:r}),(0,W.jsx)(Jo,{scope:n,isInside:!0,children:(0,W.jsx)(at,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});Ko.displayName=Go;var Qo=`TooltipArrow`,$o=z.forwardRef((e,t)=>
2{let{__scopeTooltip:n,...r}=e,i=Oo(n);return Yo(Qo,n).isInside?null:(0,W.jsx)(To,{...i,...r,ref:t})});$o.displayName=Qo;function es(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function ts(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ns(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function rs(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function is(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),as(t)}function as(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var os=Po,ss=Ko,cs=os,ls=z.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,W.jsx)(ss,{ref:r,sideOffset:t,className:fr(`z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 origin-[--radix-tooltip-content-transform-origin]`,e),...n}));ls.displayName=ss.displayName;var us=class extends c{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let i=t.queryKey,a=t.queryHash??h(i,t),o=this.get(a);return o||(o=new r({cache:this,queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){k.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>n(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>n(e,t)):t}notify(e){k.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){k.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){k.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ds=class extends f{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||fs(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status===`pending`?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){this.#n=t({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#r({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#r({type:`pause`})},onContinue:()=>{this.#r({type:`continue`})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});
2let n=this.state.status===`pending`,r=!this.#n.canStart();try{if(!n){this.#r({type:`pending`,variables:e,isPaused:r}),await this.#t.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#r({type:`pending`,context:t,variables:e,isPaused:r})}let t=await this.#n.start();return await this.#t.config.onSuccess?.(t,e,this.state.context,this),await this.options.onSuccess?.(t,e,this.state.context),await this.#t.config.onSettled?.(t,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(t,null,e,this.state.context),this.#r({type:`success`,data:t}),t}catch(t){try{throw await this.#t.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#t.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#r({type:`error`,error:t})}}finally{this.#t.runNext(this)}}#r(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),k.batch(()=>{this.#e.forEach(t=>{t.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:`updated`,action:e})})}};function fs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ps=class extends c{constructor(e={}){super(),this.config=e,this.#e=new Map,this.#t=Date.now()}#e;#t;build(e,t,n){let r=new ds({mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){let t=ms(e),n=this.#e.get(t)??[];n.push(e),this.#e.set(t,n),this.notify({type:`added`,mutation:e})}remove(e){let t=ms(e);if(this.#e.has(t)){let n=this.#e.get(t)?.filter(t=>t!==e);n&&(n.length===0?this.#e.delete(t):this.#e.set(t,n))}this.notify({type:`removed`,mutation:e})}canRun(e){let t=this.#e.get(ms(e))?.find(e=>e.state.status===`pending`);return!t||t===e}runNext(e){return(this.#e.get(ms(e))?.find(t=>
2t!==e&&t.state.isPaused))?.continue()??Promise.resolve()}clear(){k.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#e.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>re(t,e))}findAll(e={}){return this.getAll().filter(t=>re(e,t))}notify(e){k.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return k.batch(()=>Promise.all(e.map(e=>e.continue().catch(_))))}};function ms(e){return e.options.scope?.id??String(e.mutationId)}function hs(e){return{onFetch:(t,n)=>{let r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},l=0,u=async()=>{let n=!1,u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener(`abort`,()=>{n=!0}),t.signal)})},f=i(t.options,t.fetchOptions),m=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a={queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};u(a);let o=await f(a),{maxPages:s}=t.options,c=i?p:d;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(a&&o.length){let e=a===`backward`,t=e?_s:gs,n={pages:o,pageParams:s};c=await m(n,t(r,n),e)}else{let t=e??o.length;do{let e=l===0?s[0]??r.initialPageParam:gs(r,c);if(l>0&&e==null)break;c=await m(c,e),l++}while(l<t)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function gs(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function _s(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function vs(e,t){return t?gs(e,t)!=null:!1}function ys(e,t){return!t||!e.getPreviousPageParam?!1:_s(e,t)!=null}var bs=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new us,this.#t=e.mutationCache||new ps,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=u.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=O.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{let n=this.defaultQueryOptions(e),r=this.#e.build(this,n);return e.revalidateIfStale&&r.isStaleByTime(g(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=s(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return k.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;k.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e,r={type:`active`,...e};return k.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){let n={revert:!0,...t},r=k.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(_).catch(_)}invalidateQueries(e={},t={}){return k.batch(()=>{if(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e.refetchType===`none`)return Promise.resolve();let n={...e,type:e.refetchType??e.type??`active`};return this.refetchQueries(n,t)})}refetchQueries(e={},t){let n={...t,cancelRefetch:t?.cancelRefetch??!0},r=k.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(_)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(_)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(g(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_).catch(_)}
2fetchInfiniteQuery(e){return e.behavior=hs(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_).catch(_)}ensureInfiniteQueryData(e){return e.behavior=hs(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return O.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(l(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{o(e,t.queryKey)&&(n={...n,...t.defaultOptions})}),n}setMutationDefaults(e,t){this.#i.set(l(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{o(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=h(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.enabled!==!0&&t.queryFn===a&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};async function xs(e){if(!e.ok){let t=await e.text()||e.statusText;throw Error(`${e.status}: ${t}`)}}async function Ss(e,t,n){let r=await fetch(t,{method:e,headers:n?{"Content-Type":`application/json`}:{},body:n?JSON.stringify(n):void 0,credentials:`include`});return await xs(r),r}var Cs=new bs({defaultOptions:{queries:{queryFn:(({on401:e})=>async({queryKey:t})=>{let n=await fetch(t.join(`/`),{credentials:`include`});return e===`returnNull`&&n.status===401?null:(await xs(n),await n.json())})({on401:`throw`}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),ws=on(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground hover:bg-destructive/90`,outline:`border border-input bg-background hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-10 px-4 py-2`,sm:`h-9 rounded-md px-3`,lg:`h-11 rounded-md px-8`,icon:`h-10 w-10`}},defaultVariants:{variant:`default`,size:`default`}}),Ts=z.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,W.jsx)(r?Se:`button`,{className:fr(ws({variant:t,size:n,className:e})),ref:a,...i}));Ts.displayName=`Button`;var Es=class extends z.Component{constructor(...e){super(...e),this.state={hasError:!1},this.handleReset=()=>{this.setState({hasError:!1,error:void 0})}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`Error boundary caught:`,e,t)}render(){return this.state.hasError?(0,W.jsx)(`div`,{className:`min-h-screen bg-black text-white flex items-center justify-center p-4`,children:(0,W.jsxs)(`div`,{className:`max-w-md w-full bg-zinc-900 border border-red-500/20 rounded-lg p-8 text-center`,children:[(0,W.jsx)(dn,{className:`w-16 h-16 text-red-500 mx-auto mb-4`}),(0,W.jsx)(`h1`,{className:`text-2xl font-bold mb-2`,children:`Something went wrong`}),(0,W.jsx)(`p`,{className:`text-gray-400 mb-6`,children:this.state.error?.message||`An unexpected error occurred`}),(0,W.jsxs)(`div`,{className:`flex gap-4 justify-center`,children:[(0,W.jsx)(Ts,{onClick:this.handleReset,variant:`outline`,children:`Try Again`}),(0,W.jsx)(Ts,{onClick:()=>window.location.href=`/#/`,variant:`default`,children:`Go Home`})]})]})}):this.props.children}},Ds=`/assets/Nano_Banana_Pro_CHANGE_EIGHT_TO_EI8HT_on_this_poster__the_titl_1771335984721-00dtbWyv.webp`,Os=`/assets/img_7998_1771222623589-D6gs_d00.webp`,ks=`/assets/dj-rock-feed-optimized-JwS3z5_8.png`,As=`/assets/Shinedown_-_Sound_Of_Madness_1771286658137-a_jrBkkb.mp3`;function js({text:e,onDone:t}){let[n,r]=(0,z.useState)(``),i=(0,z.useRef)(0);return(0,z.useEffect)(()=>{i.current=0,r(``);let n=setInterval(()=>{i.current++,r(e.slice(0,i.current)),i.current>
2=e.length&&(clearInterval(n),t?.())},40);return()=>clearInterval(n)},[e]),(0,W.jsxs)(`span`,{children:[n,(0,W.jsx)(`span`,{className:`tk-cursor`,children:`|`})]})}function Ms(){let[e,t]=(0,z.useState)(`intro`),[n,r]=(0,z.useState)(!1),[i,a]=(0,z.useState)(!1),o=(0,z.useRef)(null),[s,c]=(0,z.useState)(!1),[l,u]=(0,z.useState)(!1);(0,z.useEffect)(()=>{document.title=`Rock Feed - Special Announcement`},[]),(0,z.useEffect)(()=>{let e=o.current;e&&(e.volume=.4,e.play().catch(()=>{c(!0)}))},[]);let d=()=>{let e=o.current;e&&(e.volume=.4,e.play().then(()=>c(!1)).catch(()=>{}))};(0,z.useEffect)(()=>{if(e!==`intro`)return;let t=setTimeout(()=>r(!0),500);return()=>clearTimeout(t)},[e]),(0,z.useEffect)(()=>{if(e!==`intro`||!n)return;let r=setTimeout(()=>a(!0),4500),i=setTimeout(()=>{t(`ready`),a(!1)},5e3);return()=>{clearTimeout(r),clearTimeout(i)}},[e,n]),(0,z.useEffect)(()=>{if(e!==`sure`)return;let t=setTimeout(()=>u(!0),100);return()=>clearTimeout(t)},[e]);let f=()=>{s&&d(),t(`sure`)},p=()=>{window.location.href=`https://en.wikipedia.org/wiki/Poseur`};return e===`announcement`?(0,W.jsxs)(`div`,{className:`tk-root`,"data-testid":`takeover-announcement`,children:[(0,W.jsx)(A,{title:`Rock Feed - Special Announcement`,description:`A special Rock Feed announcement.`,path:`/takeover`,noindex:!0}),(0,W.jsx)(`audio`,{ref:o,src:As,loop:!0,preload:`auto`}),s&&(0,W.jsx)(`div`,{className:`tk-audio-tap`,onClick:d,"data-testid":`tap-to-play-audio`,children:(0,W.jsxs)(`div`,{className:`tk-audio-tap-inner`,children:[(0,W.jsx)(`div`,{className:`tk-audio-icon`,children:`ð`}),(0,W.jsx)(`p`,{className:`tk-audio-text`,children:`TAP FOR SOUND`})]})}),(0,W.jsxs)(`div`,{className:`tk-scroll-container`,children:[(0,W.jsxs)(`div`,{className:`tk-top-bar`,children:[(0,W.jsx)(`img`,{src:ks,alt:`DJ Rock Feed`,className:`tk-bar-logo`,"data-testid":`logo-dj-rockfeed`}),(0,W.jsx)(`div`,{className:`tk-bar-text`,children:`SPECIAL ANNOUNCEMENT`})]}),(0,W.jsxs)(`section`,{className:`tk-posters-row`,children:[(0,W.jsx)(`div`,{className:`tk-poster-col`,children:(0,W.jsx)(`img`,{src:Ds,alt:`DJ Rock Feed On Tour With Shinedown`,className:`tk-poster`,"data-testid":`poster-announcement`})}),(0,W.jsx)(`div`,{className:`tk-poster-col`,children:(0,W.jsx)(`img`,{src:Os,alt:`Shinedown Dance Kid Dance Act II Tour Dates`,className:`tk-poster`,"data-testid":`poster-tour-dates`})})]}),(0,W.jsx)(`div`,{className:`tk-cta-row`,children:(0,W.jsx)(`a`,{href:`https://www.shinedown.com/?frontpage=true`,target:`_blank`,rel:`noopener noreferrer`,className:`tk-cta-primary`,"data-testid":`link-tickets-hero`,children:`GET TICKETS NOW`})}),(0,W.jsx)(`div`,{className:`tk-divider`}),(0,W.jsxs)(`section`,{className:`tk-section tk-video-section`,children:[(0,W.jsxs)(`h2`,{className:`tk-video-heading`,"data-testid":`text-headbanger-homes`,children:[`INSIDE `,(0,W.jsx)(`span`,{className:`tk-heading-highlight`,children:`SHINEDOWN`}),` GUITARIST ZACH MYERS' MANSION ON THE `,(0,W.jsx)(`span`,{className:`tk-heading-highlight`,children:`BRAND NEW`}),` EPISODE OF HEADBANGER HOMES`]}),(0,W.jsx)(`div`,{className:`tk-yt-wrapper`,children:(0,W.jsx)(`iframe`,{src:`https://www.youtube.com/embed/04wW94cK9Co`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,allowFullScreen:!0,frameBorder:`0`,className:`tk-yt-iframe`,"data-testid":`embed-headbanger-homes`})})]}),(0,W.jsx)(`footer`,{className:`tk-footer`,children:(0,W.jsx)(`span`,{children:`ROCKFEED.NET`})})]}),(0,W.jsx)(`style`,{children:Ps})]}):(0,W.jsxs)(`div`,{className:`tk-dark-root`,"data-testid":`takeover-${e}`,children:[(0,W.jsx)(A,{title:`Rock Feed - Special Announcement`,description:`A special Rock Feed announcement.`,path:`/takeover`,noindex:!0}),(0,W.jsx)(`audio`,{ref:o,src:As,loop:!0,preload:`auto`}),s&&(0,W.jsx)(`div`,{className:`tk-audio-tap`,onClick:d,"data-testid":`tap-to-play-audio`,children:(0,W.jsxs)(`div`,{className:`tk-audio-tap-inner`,children:[(0,W.jsx)(`div`,{className:`tk-audio-icon`,children:`ð`}),(0,W.jsx)(`p`,{className:`tk-audio-text`,children:`TAP FOR SOUND`})]})}),(0,W.jsx)(`div`,{className:`tk-vignette`}),(0,W.jsx)(`div`,{className:`tk-vhs-noise`}),(0,W.jsxs)(`div`,{className:`tk-dust-particles`,children:[(0,W.jsx)(`div`,{className:`tk-dust tk-dust-1`}),(0,W.jsx)(`div`,{className:`tk-dust tk-dust-2`}),(0,W.jsx)(`div`,{className:`tk-dust tk-dust-3`}),(0,W.jsx)(`div`,{className:`tk-dust tk-dust-4`}),(0,W.jsx)(`div`,{className:`tk-dust tk-dust-5`}),(0,W.jsx)(`div`,{className:`tk-dust tk-dust-6`}),(0,W.jsx)(`div`,{className:`tk-dust tk-dust-7`}),(0,W.jsx)(`div`,{className:`tk-dust tk-dust-8`})]}),(0,W.jsx)(`div`,{className:`tk-scanlines`}),(0,W.jsx)(`div`,{className:`tk-lens-flare`}),e===`intro`&&(0,W.jsxs)(`div`,{className:`tk-intro-center ${i?`tk-fade-out`:``}`,children:[(0,W.jsx)(`img`,{src:ks,alt:`Rock Feed`,className:`tk-intro-logo`}),n&&(0,W.jsx)(`h1`,{className:`tk-intro-headline tk-slide-up`,children:(0,W.jsx)(js,{text:`IT'S TIME TO MAKE A MAJOR ANNOUNCEMENT`})}),(0,W.jsx)(`div`,{className:`tk-intro-line`})]}),e===`ready`&&(0,W.jsxs)(`div`,{className:`tk-intro-center tk-slide-up`,children:[(0,W.jsxs)(`h1`,{className:`tk-prompt-headline`,children:[`ARE YOU READY TO LEARN WHO HAS TAKEN OVER `,(0,W.jsx)(`span`,{className:`tk-red`,children:`ROCK FEED'S`}),` WEBSITE?`]}),(0,W.jsxs)(`div`,{className:`tk-prompt-buttons`,children:[(0,W.jsx)(`button`,{className:`tk-btn-yes`,onClick:f,"data-testid":`btn-ye
2s`,children:`YES`}),(0,W.jsx)(`button`,{className:`tk-btn-no`,onClick:p,"data-testid":`btn-no`,children:`NO`})]})]}),e===`sure`&&(0,W.jsx)(`div`,{className:`tk-intro-center tk-slide-up`,children:l&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`h1`,{className:`tk-sure-headline`,children:[`ARE YOU `,(0,W.jsx)(`span`,{className:`tk-red`,children:`ABSOLUTELY SURE`}),`? ONCE YOU SEE THIS, THERE'S `,(0,W.jsx)(`span`,{className:`tk-red`,children:`NO GOING BACK`}),`...`]}),(0,W.jsxs)(`div`,{className:`tk-prompt-buttons tk-fade-in-delay`,children:[(0,W.jsx)(`button`,{className:`tk-btn-yes tk-btn-pulse`,onClick:()=>{t(`announcement`)},"data-testid":`btn-show-me`,children:`SHOW ME`}),(0,W.jsx)(`button`,{className:`tk-btn-no`,onClick:p,"data-testid":`btn-no-way`,children:`I CAN'T HANDLE IT`})]})]})}),(0,W.jsx)(`style`,{children:Ns})]})}var Ns=` 3 @import url('https://fonts.googleapis.com/css2?family=Anton&family=Oswald:wght@400;600;700&display=swap'); 4 5 .tk-dark-root { 6 position: fixed; 7 top: 0; left: 0; 8 width: 100vw; height: 100vh; 9 background: #0a0a0a; 10 z-index: 99999; 11 overflow: hidden; 12 display: flex; 13 align-items: center; 14 justify-content: center; 15 } 16 17 .tk-vignette { 18 position: absolute; 19 top: 0; left: 0; 20 width: 100%; height: 100%; 21 background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.85) 100%); 22 pointer-events: none; 23 z-index: 1; 24 } 25 26 .tk-vhs-noise { 27 position: absolute; 28 top: 0; left: 0; 29 width: 100%; height: 100%; 30 pointer-events: none; 31 z-index: 1; 32 opacity: 0.06; 33 background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); 34 background-size: 150px; 35 animation: tk-vhs-shift 0.1s steps(3) infinite; 36 } 37 38 @keyframes tk-vhs-shift { 39 0% { transform: translate(0, 0); } 40 33% { transform: translate(-1px, 1px); } 41 66% { transform: translate(1px, -1px); } 42 100% { transform: translate(0, 0); } 43 } 44 45 .tk-scanlines { 46 position: absolute; 47 top: 0; left: 0; 48 width: 100%; height: 100%; 49 pointer-events: none; 50 z-index: 1; 51 background: repeating-linear-gradient( 52 0deg, 53 transparent 0px, 54 transparent 2px, 55 rgba(0, 0, 0, 0.15) 2px, 56 rgba(0, 0, 0, 0.15) 4px 57 ); 58 opacity: 0.4; 59 } 60 61 .tk-dust-particles { 62 position: absolute; 63 top: 0; left: 0; 64 width: 100%; height: 100%; 65 pointer-events: none; 66 z-index: 1; 67 overflow: hidden; 68 } 69 70 .tk-dust { 71 position: absolute; 72 width: 3px; 73 height: 3px; 74 background: rgba(255, 255, 255, 0.4); 75 border-radius: 50%; 76 animation: tk-dust-float linear infinite; 77 } 78 79 .tk-dust-1 { left: 10%; top: 20%; animation-duration: 8s; animation-delay: 0s; width: 2px; height: 2px; opacity: 0.5; } 80 .tk-dust-2 { left: 25%; top: 60%; animation-duration: 12s; animation-delay: -2s; width: 3px; height: 3px; opacity: 0.3; } 81 .tk-dust-3 { left: 45%; top: 10%; animation-duration: 10s; animation-delay: -4s; width: 2px; height: 2px; opacity: 0.6; } 82 .tk-dust-4 { left: 65%; top: 70%; animation-duration: 9s; animation-delay: -1s; width: 4px; height: 4px; opacity: 0.2; } 83 .tk-dust-5 { left: 80%; top: 30%; animation-duration: 11s; animation-delay: -3s; width: 2px; height: 2px; opacity: 0.4; } 84 .tk-dust-6 { left: 15%; top: 80%; animation-duration: 7s; animation-delay: -5s; width: 3px; height: 3px; opacity: 0.35; } 85 .tk-dust-7 { left: 55%; top: 45%; animation-duration: 13s; animation-delay: -6s; width: 2px; height: 2px; opacity: 0.5; } 86 .tk-dust-8 { left: 90%; top: 55%; animation-duration: 10s; animation-delay: -2s; width: 3px; height: 3px; opacity: 0.25; } 87 88 @keyframes tk-dust-float { 89 0% { transform: translate(0, 0) scale(1); opacity: 0; } 90 10% { opacity: 1; } 91 50% { transform: translate(-30px, -60px) scale(1.2); } 92 90% { opacity: 1; } 93 100% { transform: translate(-60px, -120px) scale(0.8); opacity: 0; } 94 } 95 96 .tk-lens-flare { 97 position: absolute; 98 top: 15%; 99 right: 10%; 100 width: 200px; 101 height: 200px; 102 pointer-events: none; 103 z-index: 1; 104 background: radial-gradient(circle, rgba(255, 60, 60, 0.15) 0%, rgba(255, 120, 80, 0.08) 30%, transparent 70%); 105 border-radius: 50%; 106 animation: tk-flare-drift 6s ease-in-out infinite; 107 } 108 109 .tk-lens-flare::before { 110 content: ''; 111 position: absolute; 112 top: 50%; 113 left: 50%; 114 transform: translate(-50%, -50%); 115 width: 300px; 116 height: 4px; 117 background: linear-gradient(90deg, transparent, rgba(255, 100, 80, 0.12), rgba(255, 200, 150, 0.2), rgba(255, 100, 80, 0.12), transparent); 118 border-radius: 2px; 119 } 120 121 .tk-lens-flare::after { 122 content: ''; 123 position: absolute; 124 top: 40%; 125 left: 30%; 126 width: 40px; 127 height: 40px; 128 background: radial-gradient(circle, rgba(255, 200, 180, 0.2) 0%, transparent 70%); 129 border-radius: 50%; 130 animation: tk-flare-sub 4s ease-in-out infinite alternate; 131 } 132 133 @keyframes tk-flare-drift { 134 0%, 100% { transform: translate(0, 0); opacity: 0.7; } 135 30% { transform: translate(-20px, 10px); opacity: 1; } 136 70% { transform: translate(10px, -15px); opacity: 0.5; } 137 } 138 139 @keyframes tk-flare-sub { 140 from { transform: translate(0, 0); opacity: 0.3; } 141 to { transform: translate(20px, -10px); opacity: 0.6; } 142 } 143 144 .tk-intro-center { 145 position: relative; 146 z-index: 2; 147 display: flex; 148 flex-direction: column; 149 align-items: center; 150 gap: 32px; 151 padding: 0 32px; 152 max-width: 800px; 153 text-align: center; 154 transition: opacity 0.5s ease-out; 155 } 156 157 .tk-fade-out { 158 opacity: 0; 159 } 160 161 .tk-intro-logo { 162 height: 100px; 163 width: auto; 164 filter: drop-shadow(0 0 30px rgba(255, 26, 26, 0.3)); 165 animation: tk-logo-glow 3s ease-in-out infinite; 166 } 167 168 @keyframes tk-logo-glow { 169 0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 26, 26, 0.2)); } 170 50% { filter: drop-shadow(0 0 40px rgba(255, 26, 26, 0.5)); } 171 } 172 173 .tk-intro-headline { 174 font-family: 'Anton', 'Arial Black', sans-serif; 175 font-size: clamp(26px, 6vw, 52px); 176 color: #fff; 177 letter-spacing: 3px; 178 text-transform: uppercase; 179 line-height: 1.25; 180 margin: 0; 181 word-spacing: 0.05em; 182 } 183 184 .tk-intro-line { 185 width: 80px; 186 height: 3px; 187 background: #ff1a1a; 188 box-shadow: 0 0 15px rgba(255, 26, 26, 0.5); 189 animation: tk-line-expand 2s ease-out forwards; 190 } 191 192 @keyframes tk-line-expand { 193 from { width: 0; opacity: 0; } 194 to { width: 80px; opacity: 1; } 195 } 196 197 .tk-cursor { 198 color: #ff1a1a; 199 font-weight: 400; 200 animation: tk-blink 0.7s step-end infinite; 201 } 202 203 @keyframes tk-blink { 204 0%, 100% { opacity: 1; } 205 50% { opacity: 0; } 206 } 207 208 .tk-slide-up { 209 animation: tk-slide-up 0.6s ease-out; 210 } 211 212 @keyframes tk-slide-up { 213 from { opacity: 0; transform: translateY(30px); } 214 to { opacity: 1; transform: translateY(0); } 215 } 216 217 .tk-prompt-headline { 218 font-family: 'Anton', 'Arial Black', sans-serif; 219 font-size: clamp(24px, 5vw, 44px); 220 color: #fff; 221 letter-spacing: 2px; 222 text-transform: uppercase; 223 line-height: 1.35; 224 margin: 0; 225 text-wrap: balance; 226 } 227 228 .tk-red { 229 color: #ff1a1a; 230 } 231 232 .tk-sure-headline { 233 font-family: 'Anton', 'Arial Black', sans-serif; 234 font-size: clamp(20px, 4vw, 36px); 235 color: #fff; 236 letter-spacing: 1px; 237 text-transform: uppercase; 238 line-height: 1.35; 239 margin: 0; 240 text-wrap: balance; 241 } 242 243 .tk-prompt-buttons { 244 display: flex; 245 gap: 24px; 246 align-items: center; 247 margin-top: 8px; 248 } 249 250 .tk-btn-yes { 251 background: #ff1a1a; 252 color: #fff; 253 font-family: 'Anton', 'Arial Black', sans-serif; 254 font-size: clamp(22px, 4vw, 36px); 255 letter-spacing: 6px; 256 text-transform: uppercase; 257 border: none; 258 padding: 16px 52px; 259 cursor: pointer; 260 transition: all 0.2s; 261 box-shadow: 0 4px 20px rgba(255, 26, 26, 0.4); 262 } 263 264 .tk-btn-yes:hover { 265 background: #fff; 266 color: #ff1a1a; 267 box-shadow: 0 4px 40px rgba(255, 26, 26, 0.6); 268 transform: scale(1.05); 269 } 270 271 .tk-btn-no { 272 background: transparent; 273 color: rgba(255, 255, 255, 0.4); 274 font-family: 'Anton', 'Arial Black', sans-serif; 275 font-size: clamp(18px, 3vw, 28px); 276 letter-spacing: 4px; 277 text-transform: uppercase; 278 border: 1px solid rgba(255, 255, 255, 0.15); 279 padding: 14px 40px; 280 cursor: pointer; 281 transition: all 0.2s; 282 } 283 284 .tk-btn-no:hover { 285 border-color: rgba(255, 255, 255, 0.4); 286 color: rgba(255, 255, 255, 0.7); 287 } 288 289 .tk-btn-pulse { 290 animation: tk-btn-glow 1.5s ease-in-out infinite; 291 } 292 293 @keyframes tk-btn-glow { 294 0%, 100% { box-shadow: 0 4px 20px rgba(255, 26, 26, 0.4); } 295 50% { box-shadow: 0 4px 50px rgba(255, 26, 26, 0.8), 0 0 80px rgba(255, 26, 26, 0.2); } 296 } 297 298 .tk-fade-in-delay { 299 animation: tk-fade-in-d 0.5s ease-out 1.5s both; 300 } 301 302 @keyframes tk-fade-in-d { 303 from { opacity: 0; transform: translateY(15px); } 304 to { opacity: 1; transform: translateY(0); } 305 } 306 307 .tk-audio-tap { 308 position: fixed; 309 bottom: 20px; 310 right: 20px; 311 z-index: 100001; 312 cursor: pointer; 313 animation: tk-audio-bounce 2s ease-in-out infinite; 314 } 315 .tk-audio-tap-inner { 316 background: rgba(255, 26, 26, 0.9); 317 backdrop-filter: blur(10px); 318 border-radius: 12px; 319 padding: 12px 20px; 320 display: flex; 321 align-items: center; 322 gap: 8px; 323 box-shadow: 0 4px 20px rgba(255, 26, 26, 0.4); 324 } 325 .tk-audio-icon { font-size: 20px; } 326 .tk-audio-text { 327 color: #fff; 328 font-family: 'Oswald', 'Arial', sans-serif; 329 font-size: 14px; 330 font-weight: 600; 331 letter-spacing: 2px; 332 margin: 0; 333 } 334 @keyframes tk-audio-bounce { 335 0%, 100% { transform: translateY(0); } 336 50% { transform: translateY(-5px); } 337 } 338 339 @media (max-width: 768px) { 340 .tk-intro-center { 341 gap: 20px; 342 padding: 0 20px; 343 } 344 .tk-intro-logo { 345 height: 60px; 346 } 347 .tk-intro-headline { 348 font-size: clamp(22px, 7vw, 36px); 349 letter-spacing: 1px; 350 line-height: 1.2; 351 } 352 .tk-prompt-headline { 353 font-size: clamp(20px, 6vw, 32px); 354 letter-spacing: 1px; 355 line-height: 1.3; 356 } 357 .tk-sure-headline { 358 font-size: clamp(18px, 5.5vw, 28px); 359 letter-spacing: 0.5px; 360 line-height: 1.3; 361 } 362 .tk-prompt-buttons { 363 flex-direction: column; 364 gap: 16px; 365 width: 100%; 366 } 367 .tk-btn-yes { 368 width: 100%; 369 max-width: 280px; 370 text-align: center; 371 font-size: 24px; 372 padding: 14px 40px; 373 } 374 .tk-btn-no { 375 width: 100%; 376 max-width: 280px; 377 text-align: center; 378 font-size: 18px; 379 padding: 12px 32px; 380 } 381 .tk-lens-flare { 382 width: 120px; 383 height: 120px; 384 top: 10%; 385 right: 5%; 386 } 387 .tk-lens-flare::before { 388 width: 180px; 389 } 390 } 391`,Ps=` 392 @import url('https://fonts.googleapis.com/css2?family=Anton&family=Oswald:wght@400;600;700&display=swap'); 393 394 .tk-root { 395 position: fixed; 396 top: 0; left: 0; 397 width: 100vw; height: 100vh; 398 background: #0a0a0a; 399 z-index: 99999; 400 overflow: hidden; 401 animation: tk-reveal 0.8s ease-out; 402 } 403 404 @keyframes tk-reveal { 405 from { opacity: 0; } 406 to { opacity: 1; } 407 } 408 409 .tk-scroll-container { 410 width: 100%; 411 height: 100%; 412 overflow-y: auto; 413 -webkit-overflow-scrolling: touch; 414 padding-bottom: 20px; 415 } 416 .tk-top-bar { 417 display: flex; 418 align-items: center; 419 justify-content: center; 420 gap: 16px; 421 padding: 20px 20px 10px; 422 } 423 .tk-bar-logo { 424 height: 70px; 425 width: auto; 426 flex-shrink: 0; 427 } 428 .tk-bar-text { 429 font-family: 'Anton', 'Arial Black', sans-serif; 430 font-size: 26px; 431 color: #fff; 432 letter-spacing: 4px; 433 text-transform: uppercase; 434 border-left: 2px solid #ff1a1a; 435 padding-left: 16px; 436 line-height: 1.2; 437 } 438 .tk-posters-row { 439 display: flex; 440 flex-direction: row; 441 align-items: stretch; 442 justify-content: center; 443 gap: 32px; 444 padding: 10px 32px 20px; 445 max-width: 1100px; 446 margin: 0 auto; 447 } 448 .tk-poster-col { 449 flex: 1; 450 max-width: 500px; 451 display: flex; 452 flex-direction: column; 453 align-items: center; 454 justify-content: center; 455 } 456 .tk-poster-col .tk-poster { 457 width: 100%; 458 height: 100%; 459 object-fit: cover; 460 } 461 .tk-cta-row { 462 text-align: center; 463 padding: 20px 20px 40px; 464 } 465 .tk-section { 466 display: flex; 467 flex-direction: column; 468 align-items: center; 469 padding: 40px 20px; 470 max-width: 800px; 471 margin: 0 auto; 472 } 473 .tk-poster { 474 width: 100%; 475 height: auto; 476 display: block; 477 border: 1px solid rgba(255,255,255,0.08); 478 box-shadow: 0 8px 60px rgba(0,0,0,0.6); 479 } 480 481 .tk-cta-primary { 482 display: inline-block; 483 background: #ff1a1a; 484 color: #fff; 485 font-family: 'Oswald', 'Arial', sans-serif; 486 font-size: 20px; 487 font-weight: 700; 488 letter-spacing: 3px; 489 text-decoration: none; 490 text-transform: uppercase; 491 padding: 16px 48px; 492 transition: all 0.2s; 493 box-shadow: 0 4px 20px rgba(255,26,26,0.4); 494 } 495 .tk-cta-primary:hover { 496 background: #e01515; 497 transform: translateY(-1px); 498 box-shadow: 0 6px 30px rgba(255,26,26,0.5); 499 } 500 501 .tk-divider { 502 width: 60%; 503 max-width: 300px; 504 height: 1px; 505 background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); 506 margin: 0 auto; 507 } 508 .tk-video-section { 509 padding-bottom: 20px; 510 } 511 .tk-video-heading { 512 font-family: 'Oswald', 'Arial', sans-serif; 513 font-size: 22px; 514 font-weight: 600; 515 color: rgba(255,255,255,0.85); 516 text-align: center; 517 letter-spacing: 2px; 518 line-height: 1.4; 519 margin-bottom: 24px; 520 max-width: 700px; 521 text-transform: uppercase; 522 } 523 .tk-heading-highlight { 524 color: #ff1a1a; 525 font-weight: 700; 526 } 527 .tk-yt-wrapper { 528 width: 100%; 529 max-width: 720px; 530 aspect-ratio: 16/9; 531 } 532 .tk-yt-iframe { 533 width: 100%; 534 height: 100%; 535 border: 1px solid rgba(255,255,255,0.08); 536 } 537 .tk-footer { 538 text-align: center; 539 padding: 30px 20px 40px; 540 font-family: 'Oswald', 'Arial', sans-serif; 541 font-size: 12px; 542 color: rgba(255,255,255,0.2); 543 letter-spacing: 5px; 544 } 545 546 .tk-audio-tap { 547 position: fixed; 548 bottom: 20px; 549 right: 20px; 550 z-index: 100001; 551 cursor: pointer; 552 animation: tk-audio-bounce 2s ease-in-out infinite; 553 } 554 .tk-audio-tap-inner { 555 background: rgba(255, 26, 26, 0.9); 556 backdrop-filter: blur(10px); 557 border-radius: 12px; 558 padding: 12px 20px; 559 display: flex; 560 align-items: center; 561 gap: 8px; 562 box-shadow: 0 4px 20px rgba(255, 26, 26, 0.4); 563 } 564 .tk-audio-icon { font-size: 20px; } 565 .tk-audio-text { 566 color: #fff; 567 font-family: 'Oswald', 'Arial', sans-serif; 568 font-size: 14px; 569 font-weight: 600; 570 letter-spacing: 2px; 571 margin: 0; 572 } 573 @keyframes tk-audio-bounce { 574 0%, 100% { transform: translateY(0); } 575 50% { transform: translateY(-5px); } 576 } 577 578 @media (max-width: 768px) { 579 .tk-top-bar { 580 gap: 10px; 581 padding: 14px 16px 6px; 582 } 583 .tk-bar-logo { 584 height: 40px; 585 } 586 .tk-bar-text { 587 font-size: 15px; 588 letter-spacing: 2px; 589 padding-left: 10px; 590 } 591 .tk-posters-row { 592 flex-direction: column; 593 padding: 10px 16px 10px; 594 gap: 24px; 595 align-items: center; 596 } 597 .tk-poster-col { 598 max-width: 100%; 599 } 600 .tk-poster-col .tk-poster { 601 height: auto; 602 object-fit: contain; 603 } 604 .tk-section { 605 padding: 28px 16px; 606 } 607 .tk-cta-row { 608 padding: 16px 16px 32px; 609 } 610 .tk-cta-primary { 611 font-size: 17px; 612 padding: 14px 36px; 613 width: 100%; 614 max-width: 400px; 615 text-align: center; 616 } 617 .tk-video-heading { 618 font-size: 16px; 619 letter-spacing: 1px; 620 } 621 .tk-scroll-container { 622 padding-bottom: 20px; 623 } 624 } 625`;function Fs(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,i,a,o=[],s=``,c=e.split(`/`);for(c[0]||c.shift();i=c.shift();)n=i[0],n===`*`?(o.push(n),s+=i[1]===`?`?`(?:/(.*))?`:`/(.*)`):n===`:`?(r=i.indexOf(`?`,1),a=i.indexOf(`.`,1),o.push(i.substring(1,~r?r:~a?a:i.length)),s+=~r&&!~a?`(?:/([^/]+?))?`:`/([^/]+?)`,~a&&(s+=(~r?`?`:``)+`
625\\`+i.substring(a))):s+=`/`+i;return{keys:o,pattern:RegExp(`^`+s+(t?`(?=$|/)`:`/?$`),`i`)}}var Is=ee((e=>{var t=w();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),Ls=ee(((e,t)=>{t.exports=Is()}))(),Rs=z.useInsertionEffect,zs=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?z.useLayoutEffect:z.useEffect,Bs=Rs||zs,Vs=e=>{let t=z.useRef([e,(...e)=>t[0](...e)]).current;return Bs(()=>{t[0]=e}),t[1]},Hs=`popstate`,Us=`pushState`,Ws=`replaceState`,Gs=[Hs,Us,Ws,`hashchange`],Ks=e=>{for(let t of Gs)addEventListener(t,e);return()=>{for(let t of Gs)removeEventListener(t,e)}},qs=(e,t)=>(0,Ls.useSyncExternalStore)(Ks,e,t),Js=()=>location.search,Ys=({ssrSearch:e=``}={})=>qs(Js,()=>e),Xs=()=>location.pathname,Zs=({ssrPath:e}={})=>qs(Xs,e?()=>e:Xs),Qs=(e,{replace:t=!1,state:n=null}={})=>history[t?Ws:Us](n,``,e),$s=(e={})=>[Zs(e),Qs],ec=Symbol.for(`wouter_v3`);if(typeof history<`u`&&window[ec]===void 0){for(let e of[Us,Ws]){let t=history[e];history[e]=function(){let n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,ec,{value:!0})}var tc=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?`~`+t:t.slice(e.length)||`/`,nc=(e=``)=>e===`/`?``:e,rc=(e,t)=>e[0]===`~`?e.slice(1):nc(t)+e,ic=(e=``,t)=>tc(ac(nc(e)),ac(t)),ac=e=>{try{return decodeURI(e)}catch{return e}},oc={hook:$s,searchHook:Ys,parser:Fs,base:``,ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},sc=(0,z.createContext)(oc),cc=()=>(0,z.useContext)(sc);(0,z.createContext)({});var lc=e=>{let[t,n]=e.hook(e);return[ic(e.base,t),Vs((t,r)=>n(rc(t,e.base),r))]},uc=(0,z.forwardRef)((e,t)=>{let n=cc(),[r,i]=lc(n),{to:a=``,href:o=a,onClick:s,asChild:c,children:l,className:u,replace:d,state:f,...p}=e,m=Vs(t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||t.button!==0||(s?.(t),t.defaultPrevented||(t.preventDefault(),i(o,e)))}),h=n.hrefs(o[0]===`~`?o.slice(1):n.base+o,n);return c&&(0,z.isValidElement)(l)?(0,z.cloneElement)(l,{onClick:m,href:h}):(0,z.createElement)(`a`,{...p,onClick:m,href:h,className:u?.call?u(r===o):u,children:l,ref:t})});function dc({guests:e}){let[t,n]=(0,z.useState)(!1),[r,i]=(0,z.useState)(0),a=(0,z.useRef)(null),o=(0,z.useRef)(null),s=(0,z.useRef)(0),c=(0,z.useRef)(null);(0,z.useEffect)(()=>{let e=window.matchMedia(`(prefers-reduced-motion: reduce)`);n(e.matches);let t=e=>n(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let l=(0,z.useCallback)(()=>{if(a.current){let e=a.current.scrollWidth/2;i(e)}},[]);if((0,z.useEffect)(()=>
625{l();let e=new ResizeObserver(()=>{l()});return a.current&&e.observe(a.current),()=>e.disconnect()},[l,e]),(0,z.useEffect)(()=>{if(t||r===0)return;let e=window.innerWidth<768?25:15,n=performance.now(),i=!1,a=t=>{if(!i)return;let l=t-n;n=t,s.current-=e*l/1e3,s.current<=-r&&(s.current+=r),c.current&&(c.current.style.transform=`translate3d(${s.current}px, 0, 0)`),o.current=requestAnimationFrame(a)},l=()=>{i||(i=!0,n=performance.now(),o.current=requestAnimationFrame(a))},u=()=>{i=!1,o.current&&=(cancelAnimationFrame(o.current),null)},d;return c.current&&(d=new IntersectionObserver(e=>e[0].isIntersecting?l():u(),{rootMargin:`100px 0px`}),d.observe(c.current)),l(),()=>{u(),d?.disconnect()}},[t,r]),!e||e.length===0)return null;let u=Array.from(new Set(e.map(e=>e.trim()))),d=(e=!1)=>(0,W.jsxs)(W.Fragment,{children:[e&&(0,W.jsx)(`span`,{className:`w-4 md:w-10 flex-shrink-0`,"aria-hidden":`true`}),(0,W.jsx)(`span`,{className:`text-[10px] md:text-[11px] font-semibold text-white/60 uppercase mr-2 flex-shrink-0`,children:`Members of: `}),u.map((e,t)=>(0,W.jsxs)(`span`,{className:`flex items-center flex-shrink-0`,children:[(0,W.jsx)(`span`,{className:`text-[11px] md:text-[12px] font-semibold text-white/85`,children:e}),t<u.length-1&&(0,W.jsx)(`span`,{className:`text-red-500/50 mx-2 md:mx-3`,children:` ⢠`})]},t)),(0,W.jsx)(`span`,{className:`w-8 md:w-12 flex-shrink-0`,children:` `})]});return(0,W.jsxs)(uc,{href:`/interviews`,className:`relative bg-[#0b0b0e] overflow-hidden border-t border-b border-red-600/25 flex flex-col md:flex-row md:items-stretch md:h-[44px] cursor-pointer hover:bg-[#111114] transition-colors`,role:`region`,"aria-label":`As Seen on Rock Feed - Click to view interviews`,"data-testid":`wall-of-fame-ticker`,children:[(0,W.jsxs)(`div`,{className:`flex-shrink-0 flex items-center justify-center md:justify-start gap-1.5 md:gap-2 px-3 md:px-4 pt-1.5 pb-0.5 md:py-0 md:h-full bg-inherit z-20 md:border-r border-red-600/20`,children:[(0,W.jsx)(`span`,{className:`text-[10px] md:text-[11px] font-black tracking-[0.04em] md:tracking-[0.06em] text-white/90 uppercase whitespace-nowrap`,children:`As Seen On `}),(0,W.jsx)(`span`,{className:`text-[11px] md:text-[14px] font-black tracking-[0.02em] text-red-500 uppercase whitespace-nowrap`,children:`Rock Feed `})]}),(0,W.jsxs)(`div`,{className:`flex-1 h-7 md:h-full overflow-hidden relative`,children:[(0,W.jsx)(`div`,{className:`absolute right-0 top-0 bottom-0 w-10 md:w-16 bg-gradient-to-l from-[#0b0b0e] to-transparent z-10 pointer-events-none`}),(0,W.jsx)(`div`,{className:`absolute left-0 top-0 bottom-0 w-10 md:w-8 bg-gradient-to-r from-[#0b0b0e] to-transparent z-10 pointer-events-none`}),t?(0,W.jsx)(`div`,{className:`h-full flex items-center overflow-x-auto scrollbar-hide px-3 md:px-4`,style:{scrollbarWidth:`none`,msOverflowStyle:`none`},children:(0,W.jsxs)(`div`,{className:`flex items-center whitespace-nowrap gap-2 md:gap-3`,children:[(0,W.jsx)(`span`,{className:`text-[10px] md:text-[11px] font-semibold text-white/60 uppercase mr-1`,children:`Members of: `}),u.map((e,t)=>(0,W.jsxs)(`span`,{className:`flex items-center gap-2 md:gap-3`,children:[(0,W.jsx)(`span`,{className:`text-[11px] md:text-[12px] font-semibold text-white/85`,children:e}),t<u.length-1&&(0,W.jsx)(`span`,{className:`text-red-500/50`,children:` ⢠`})]},t))]})}):(0,W.jsx)(`div`,{ref:c,className:`h-full flex items-center whitespace-nowrap ticker-container`,style:{willChange:`transform`,backfaceVisibility:`hidden`,perspective:1e3},children:(0,W.jsxs)(`div`,{ref:a,className:`flex items-center`,children:[d(!0),(0,W.jsx)(`div`,{className:`flex items-center flex-shrink-0`,"aria-hidden":`true`,children:d(!1)})]})})]})]})}var fc=`/assets/tour_1769290952352-DlfI3mlz.webp`,pc=`'Barlow Condensed', sans-serif`,mc=`#e5101a`,hc=[`JAN`,`FEB`,`MAR`,`APR`,`MAY`,`JUN`,`JUL`,`AUG`,`SEP`,`OCT`,`NOV`,`DEC`];function gc(e,t){let n=e.getFullYear()===new Date().getFullYear()?``:` ${e.getFullYear()}`,r=`${hc[e.getMonth()]}${n}`;return!t||t.getTime()===e.getTime()?{month:r,days:String(e.getDate())}:{month:r,days:t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()?`${e.getDate()}â${t.getDate()}`:`${e.getDate()} â ${hc[t.getMonth()]} ${t.getDate()}`}}var _c=e=>
625new Date(`${e}T00:00:00`),vc=({month:e,days:t,place:n,venue:r,ticketUrl:i,soldOut:a,detailsTo:o,compact:s=!1,testId:c})=>{let l=o?(0,W.jsx)(T,{to:o,className:`inline-flex items-center px-4 py-2 text-[11px] font-bold uppercase transition-colors hover:bg-[#c9a45c] hover:text-black sm:px-5 sm:text-xs`,style:{color:`var(--honor-cream)`,border:`1px solid var(--honor-brass)`,letterSpacing:`0.16em`,fontFamily:pc},"data-testid":`${c}-details`,children:`Details`}):i&&!a?(0,W.jsx)(`a`,{href:i,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center px-4 py-2 text-[11px] font-bold uppercase text-white transition-opacity hover:opacity-85 sm:px-5 sm:text-xs`,style:{backgroundColor:mc,letterSpacing:`0.16em`,fontFamily:pc},"data-testid":`${c}-tickets`,children:`Tickets`}):null,u=e=>(0,W.jsx)(`span`,{className:`text-[10px] font-semibold uppercase`,style:{color:`var(--honor-muted)`,letterSpacing:`0.2em`},"data-testid":`${c}-soldout${e}`,children:`Sold Out`});return(0,W.jsxs)(`li`,{className:`flex items-center gap-4 border-b sm:gap-6 ${s?`py-3.5`:`py-5 md:py-6`}`,style:{borderColor:`var(--honor-rule)`},"data-testid":c,children:[(0,W.jsxs)(`div`,{className:`w-[64px] shrink-0 ${s?`sm:w-[92px] md:w-[112px]`:`sm:w-[104px] md:w-[136px]`}`,children:[(0,W.jsx)(`span`,{className:`block text-[10px] font-semibold uppercase sm:text-[11px]`,style:{color:`var(--honor-brass)`,letterSpacing:`0.22em`},children:e}),(0,W.jsx)(`span`,{className:`mt-0.5 block whitespace-nowrap text-[26px] leading-none ${s?`sm:text-[30px] md:text-[32px]`:`sm:text-[34px] md:text-[40px]`}`,style:{fontFamily:pc,fontWeight:800,color:`var(--honor-cream)`},children:t})]}),(0,W.jsxs)(`div`,{className:`min-w-0 flex-1 md:grid md:grid-cols-[minmax(0,0.85fr)_minmax(0,1.15fr)] md:items-center md:gap-8`,children:[(0,W.jsx)(`span`,{className:`block text-[17px] font-bold uppercase leading-tight ${s?`sm:text-[19px]`:`sm:text-[21px]`}`,style:{fontFamily:pc,color:`var(--honor-cream)`,letterSpacing:`0.03em`},children:n}),(0,W.jsx)(`span`,{className:`mt-0.5 block text-[13px] leading-snug sm:text-[15px] md:mt-0`,style:{color:`var(--honor-muted)`},children:r}),(a||l)&&(0,W.jsxs)(`div`,{className:`mt-3 flex items-center gap-4 sm:hidden`,children:[l,a&&u(`-mobile`)]})]}),(a||l)&&(0,W.jsxs)(`div`,{className:`hidden shrink-0 items-center gap-4 sm:flex`,children:[a&&u(``),l]})]})},yc=({show:e,compact:t})=>{let{month:n,days:r}=gc(_c(e.date),e.dateEnd?_c(e.dateEnd):void 0);return(0,W.jsx)(vc,{month:n,days:r,place:`${e.city}, ${e.state}`,venue:e.venue,ticketUrl:e.ticketUrl||void 0,soldOut:e.soldOut,detailsTo:e.kind===`cruise`?`/cruise`:void 0,compact:t,testId:`appearance-${e.date}`})};function bc(e,t=!1){let[n,r]=(0,z.useState)(()=>typeof window>`u`||!window.matchMedia?t:window.matchMedia(e).matches);return(0,z.useEffect)(()=>{if(typeof window>`u`||!window.matchMedia)return;let t=window.matchMedia(e),n=()=>r(t.matches);return n(),t.addEventListener?(t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)):(t.addListener(n),()=>t.removeListener(n))},[e]),n}function xc(){return bc(`(min-width: 768px)`)}function Sc(){return bc(`(prefers-reduced-motion: reduce)`)}var Cc=[{month:`MAY`,dates:[{date:`2026-05-13`,venue:`Resch Center`,city:`Green Bay`,state:`WI`,ticketUrl:`https://link.seated.com/166bbbbf-0c61-41f5-86f8-40361498be4c`},{date:`2026-05-15`,venue:`Sonic Temple Festival`,city:`Columbus`,state:`OH`,ticketUrl:`https://link.seated.com/2845e024-75ad-4904-82e8-dc7e82e1ca0a`},{date:`2026-05-16`,venue:`Kohl Center`,city:`Madison`,state:`WI`,ticketUrl:`https://link.seated.com/8c3c78b8-16f6-4925-93d5-722e35438675`},{date:`2026-05-18`,venue:`Denny Sanford PREMIER Center`,city:`Sioux Falls`,state:`SD`,ticketUrl:`https://link.seated.com/41881e7b-7306-4929-ba03-0cf56bbef890`},{date:`2026-05-19`,venue:`INTRUST Bank Arena`,city:`Wichita`,state:`KS`,ticketUrl:`https://link.seated.com/b2b11651-afea-4e1a-bd41-5c31ba6679cd`},{date:`2026-05-22`,venue:`Moody Center`,city:`Austin`,state:`TX`,ticketUrl:`https://link.seated.com/237a25f7-6e35-43e6-869d-694e3d30fe31`},{date:`2026-05-23`,venue:`Paycom Center`,city:`Oklahoma City`,state:`OK`,ticketUrl:`https://link.seated.com/5522a50b-db9c-431b-85a4-f5ae7acf345b`},{date:`2026-05-26`,venue:`VyStar Veterans Memorial Arena`,city:`Jacksonville`,state:`FL`,ticketUrl:`https://link.seated.com/5650c306-b8fe-4489-a6fc-541fc41c50a5`}
625,{date:`2026-05-28`,venue:`Hertz Arena`,city:`Estero`,state:`FL`,ticketUrl:`https://link.seated.com/0f2fc96d-0852-4141-b611-10c3e983ee04`},{date:`2026-05-30`,venue:`Benchmark International Arena`,city:`Tampa`,state:`FL`,ticketUrl:`https://link.seated.com/ef957f7b-465d-4346-b8e7-11dae4a9ba29`}]},{month:`JUNE`,dates:[{date:`2026-06-02`,venue:`Mississippi Coast Coliseum`,city:`Biloxi`,state:`MS`,ticketUrl:`https://link.seated.com/adff3a0d-9d80-4b25-97ed-8074039ad861`},{date:`2026-06-05`,venue:`Chartway Arena`,city:`Norfolk`,state:`VA`,ticketUrl:`https://link.seated.com/76790fb6-9d93-4e28-a533-68c0f1e03380`},{date:`2026-06-06`,venue:`Giant Center`,city:`Hershey`,state:`PA`,ticketUrl:`https://link.seated.com/1e022711-f4f2-44a6-8584-5548276fff70`}]},{month:`JULY`,dates:[{date:`2026-07-11`,venue:`Soaring Eagle Casino & Resort`,city:`Mt. Pleasant`,state:`MI`,ticketUrl:`https://link.seated.com/7483c6e6-b80c-45a8-830d-e7e9970167ca`},{date:`2026-07-13`,venue:`Coca-Cola Coliseum`,city:`Toronto`,state:`ON`,ticketUrl:`https://link.seated.com/6123ed9b-6c32-4e64-9e22-9a4940ed1809`},{date:`2026-07-15`,venue:`Videotron Centre`,city:`Quebec City`,state:`QC`,ticketUrl:`https://link.seated.com/468d3f3b-571c-49d6-bcd7-a0d1e3c6d207`},{date:`2026-07-17`,venue:`Mohegan Sun Arena`,city:`Uncasville`,state:`CT`,ticketUrl:`https://link.seated.com/e9105d49-5f14-4df1-a010-758556e78134`},{date:`2026-07-18`,venue:`MVP Arena`,city:`Albany`,state:`NY`,ticketUrl:`https://link.seated.com/2e954d15-73d9-44e9-b6fb-0d4c3a6842bd`},{date:`2026-07-20`,venue:`SNHU Arena`,city:`Manchester`,state:`NH`,ticketUrl:`https://link.seated.com/216b4d11-cc1b-4612-ae94-cec0c74fc719`},{date:`2026-07-21`,venue:`Prudential Center`,city:`Newark`,state:`NJ`,ticketUrl:`https://link.seated.com/ff06a8d8-4cef-4fd2-aba3-4b7bbaf3a033`},{date:`2026-07-23`,venue:`Xfinity Mobile Arena`,city:`Philadelphia`,state:`PA`,ticketUrl:`https://link.seated.com/40f12abd-ca28-4ffa-b925-84f9cf61e214`},{date:`2026-07-25`,venue:`Food City Center`,city:`Knoxville`,state:`TN`,ticketUrl:`https://link.seated.com/ee808aa5-92fd-4e81-a195-f6896e19391b`},{date:`2026-07-26`,venue:`Spectrum Center`,city:`Charlotte`,state:`NC`,ticketUrl:`https://www.ticketmaster.com/shinedown-dance-kid-dance-act-ii-charlotte-north-carolina-07-26-2026/event/2D006483020BDDAC`},{date:`2026-07-28`,venue:`Ozarks Amphitheater`,city:`Camdenton`,state:`MO`,ticketUrl:`https://www.ticketmaster.com/shinedown-dance-kid-dance-act-ii-camdenton-missouri-07-28-2026/event/06006483B419F4F6`},{date:`2026-07-30`,venue:`United Supermarkets Arena`,city:`Lubbock`,state:`TX`,ticketUrl:`https://link.seated.com/a08e7900-f9ee-49c3-827a-fda97a39b3af`},{date:`2026-07-31`,venue:`Weidner Field`,city:`Colorado Springs`,state:`CO`,ticketUrl:`https://link.seated.com/80cc3d91-b610-4c26-9890-c1f30651975c`}]},{month:`AUGUST`,dates:[{date:`2026-08-02`,venue:`UTEP Don Haskins Center`,city:`El Paso`,state:`TX`,ticketUrl:`https://link.seated.com/ae962566-2144-4a6e-82af-88a4b13db026`},{date:`2026-08-04`,venue:`Tucson Arena`,city:`Tucson`,state:`AZ`,ticketUrl:`https://link.seated.com/63ce7bd9-3c27-4aab-83df-f1de87f72e41`},{date:`2026-08-06`,venue:`Toyota Arena`,city:`Ontario`,state:`CA`,ticketUrl:`https://link.seated.com/635bf33a-b91a-4427-88a7-e99966ed255e`},{date:`2026-08-07`,venue:`Michelob ULTRA Arena`,city:`Las Vegas`,state:`NV`,ticketUrl:`https://link.seated.com/675977aa-af1f-4867-b044-09f77892c280`},{date:`2026-08-09`,venue:`Nugget Event Center`,city:`Sparks`,state:`NV`,ticketUrl:`https://link.seated.com/3c8b9702-0124-4a57-87c9-f8baabd14efb`},{date:`2026-08-10`,venue:`ExtraMile Arena`,city:`Boise`,state:`ID`,ticketUrl:`https://link.seated.com/e81c3f31-aff2-4d42-8470-5553d2b644c8`},{date:`2026-08-12`,venue:`First Interstate Arena`,city:`Billings`,state:`MT`,ticketUrl:`https://link.seated.com/1bf043d8-659c-4b32-b2fd-2c64bf8448de`},{date:`2026-08-14`,venue:`Numerica Veterans Arena`,city:`Spokane`,state:`WA`,ticketUrl:`https://link.seated.com/b56f014b-7953-4d5b-85ed-f179d7aed9d2`},{date:`2026-08-15`,venue:`PNE Pacific Coliseum`,city:`Vancouver`,state:`BC`,ticketUrl:`https://link.seated.com/b243d183-0571-4c2f
625-ae5a-f5058cbef708`},{date:`2026-08-17`,venue:`Rogers Place`,city:`Edmonton`,state:`AB`,ticketUrl:`https://link.seated.com/8d9ea97a-cda8-484a-aaeb-05a807c5bcbf`},{date:`2026-08-20`,venue:`FargoDome`,city:`Fargo`,state:`ND`,ticketUrl:`https://link.seated.com/8c81827d-ec7e-4e79-9c2e-e6972e9e71f6`},{date:`2026-08-21`,venue:`Treasure Island Resort & Casino`,city:`Welch`,state:`MN`,ticketUrl:`https://link.seated.com/e6b96b54-e414-4f5a-8eb7-7098da29936a`},{date:`2026-08-23`,venue:`Illinois State Fair`,city:`Springfield`,state:`IL`,ticketUrl:`https://link.seated.com/917cac27-c0f2-4e5b-b8db-e222adc30a61`}]},{month:`OCTOBER`,dates:[{date:`2026-10-23`,dateEnd:`2026-10-25`,venue:`Shinedown Lunatic Ball Beach Weekend`,city:`Miramar Beach`,state:`FL`,ticketUrl:`https://linkly.link/2akC6`,kind:`event`}]},{month:`APRIL 2027`,dates:[{date:`2027-04-17`,dateEnd:`2027-04-21`,venue:`Creed's Summer of '99 & Beyond Cruise`,city:`Miami â Bahamas`,state:`Norwegian Joy`,ticketUrl:``,soldOut:!0,kind:`cruise`}]}];function wc(e){return new Date((e.dateEnd??e.date)+`T00:00:00`)}function Tc(e){let t=new Date;t.setHours(0,0,0,0);let n=Cc.flatMap(e=>e.dates).filter(e=>wc(e)>=t).sort((e,t)=>e.date.localeCompare(t.date));return typeof e==`number`?n.slice(0,e):n}var Ec=`Dance, Kid, Dance Act II Tour · 2026`,Dc=`An act DJ Rock Feed has shared the stage with on the road.`,Oc=[{name:`Shinedown`,slug:`shinedown`,dedication:Ec,imageUrl:`https://i.scdn.co/image/ab6761610000e5ebf4abd88b7232d8cc5ed55ebb`,spotifyUrl:`https://open.spotify.com/artist/70BYFdaZbEKbeauJ670ysI`},{name:`Coheed and Cambria`,slug:`coheed-and-cambria`,dedication:Ec,imageUrl:`https://i.scdn.co/image/ab6761610000e5ebbff9d794acaadead8e742f9e`,spotifyUrl:`https://open.spotify.com/artist/3utxjLheHaVEd9bPjQRsy8`},{name:`From Ashes to New`,slug:`from-ashes-to-new`,dedication:Ec,imageUrl:`https://i.scdn.co/image/ab6761610000e5eb1fbd0eb17ce0864c160410e0`,spotifyUrl:`https://open.spotify.com/artist/4HrkLxQHZ5mgCtIVpiH5QX`},{name:`Black Stone Cherry`,slug:`black-stone-cherry`,dedication:Ec,imageUrl:`https://i.scdn.co/image/ab6761610000e5ebaaa535d09163ad78e4e225ab`,spotifyUrl:`https://open.spotify.com/artist/6WMo39FU3nrpSz3qMgRKug`},{name:`Skillet`,slug:`skillet`,imageUrl:`https://i.scdn.co/image/ab6761610000e5eb1dd3a81c51bfcb6fd4c01118`,spotifyUrl:`https://open.spotify.com/artist/49bzE5vRBRI
625ota4qeHtQM8`,wikipediaTitle:`Skillet (band)`}];new Set(Oc.map(e=>e.slug));function kc(e){if(e)return Oc.find(t=>t.slug===e)}function Ac(e){return`/tour/${e.slug}`}function jc(e){return e.length===0?``:e.length===1?e[0]:`${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`}function Mc(e,t){if(e.length<=t)return e;let n=e.slice(0,t),r=n.lastIndexOf(` `);return`${(r>t*.6?n.slice(0,r):n).replace(/[.,;:â-]+$/,``)}â¦`}var Nc=`DJ Rock Feed on Tour â Wall of Fame | Rock Feed`,Pc=Mc(`The acts DJ Rock Feed has shared the stage with â ${jc(Oc.map(e=>e.name))} â plus upcoming live dates.`,200);function Fc(e){return`${e.name} â Toured With DJ Rock Feed | Rock Feed`}function Ic(e,t){let n=t??`An act DJ Rock Feed has shared the stage with on the road.`;return Mc(`${e.dedication?`${e.name} â ${e.dedication}. `:n.startsWith(e.name)?``:`${e.name}. `}${n}`,165)}var Lc=`Artists I've Toured With`,Rc=3;function zc(){return(0,W.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,children:(0,W.jsx)(`path`,{d:`M2.5 8h10M8.5 3.5 13 8l-4.5 4.5`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function Bc(){return(0,W.jsxs)(T,{to:`/tour#tour-dates`,className:`djrf-hof__more`,"data-testid":`link-djrf-all-tour-dates`,children:[`All tour dates `,(0,W.jsx)(zc,{})]})}function Vc({act:e}){return(0,W.jsx)(`span`,{className:`djrf-hof__frame`,children:(0,W.jsx)(`span`,{className:`djrf-hof__mat`,children:e.imageUrl?(0,W.jsx)(`img`,{src:e.imageUrl,alt:``,loading:`lazy`,decoding:`async`}):(0,W.jsx)(`span`,{className:`djrf-hof__photo-fallback`,children:e.name})})})}function Hc(){let e=xc(),t=Tc(Rc);return(0,W.jsx)(`section`,{className:`djrf-hof honor-board`,"aria-labelledby":`djrf-hof-title`,"data-testid":`section-djrf-hall-of-fame`,children:(0,W.jsxs)(`div`,{className:`djrf-hof__inner`,children:[(0,W.jsxs)(`header`,{className:`djrf-hof__head`,children:[(0,W.jsxs)(`h2`,{id:`djrf-hof-title`,className:`djrf-hof__title`,children:[(0,W.jsx)(`img`,{src:fc,alt:`DJ Rock Feed`,width:1e3,height:361,decoding:`async`,"data-testid":`img-djrf-logo`}),` `,(0,W.jsx)(`span`,{children:`Wall of Fame`})]}),(0,W.jsx)(`p`,{className:`djrf-hof__lede`,"data-testid":`text-djrf-lede`,children:Lc})]}),e?(0,W.jsx)(Uc,{}):(0,W.jsx)(Wc,{}),t.length>0?(0,W.jsxs)(`div`,{className:`djrf-hof__appearances`,"data-testid":`block-djrf-appearances`,children:[(0,W.jsxs)(`div`,{className:`djrf-hof__dates-head`,children:[(0,W.jsx)(`h3`,{children:t.length>1?`Next appearances`:`Next appearance`}),(0,W.jsx)(Bc,{})]}),(0,W.jsx)(`ul`,{children:t.map(e=>(0,W.jsx)(yc,{show:e,compact:!0},e.date))})]}):(0,W.jsx)(`div`,{className:`djrf-hof__foot`,children:(0,W.jsx)(Bc,{})})]})})}function Uc(){return(0,W.jsx)(`ul`,{className:`djrf-hof__wall`,"aria-label":`Artists I've toured with`,"data-testid":`strip-djrf-wall`,children:Oc.map(e=>(0,W.jsx)(`li`,{className:`djrf-hof__act`,children:(0,W.jsxs)(T,{to:Ac(e),className:`djrf-hof__act-link`,"data-testid":`card-act-${e.slug}`,children:[(0,W.jsx)(Vc,{act:e}),(0,W.jsx)(`span`,{className:`djrf-hof__plate`,children:(0,W.jsx)(`strong`,{"data-role":`name`,children:e.name})})]})},e.slug))})}function Wc(){return(0,W.jsx)(`ul`,{className:`djrf-hof__rows`,"aria-label":`Artists I've toured with`,"data-testid":`list-djrf-wall`,children:Oc.map(e=>(0,W.jsx)(`li`,{className:`djrf-hof__row`,children:(0,W.jsxs)(T,{to:Ac(e),className:`djrf-hof__row-link`,"data-testid":`card-act-${e.slug}`,children:[(0,W.jsx)(Vc,{act:e}),(0,W.jsx)(`span`,{className:`djrf-hof__row-text`,children:(0,W.jsx)(`strong`,{"data-role":`name`,children:e.name})}),(0,W.jsx)(`span`,{className:`djrf-hof__row-go`,"aria-hidden":`true`,children:(0,W.jsx)(zc,{})})]})},e.slug))})}function Gc(e){if(!e)return null;let t=e.match(/(?:img\.youtube\.com|i\.ytimg\.com)\/vi\/([^\/]+)/);if(t)return t[1];let n=e.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([^&]+)/);return n?n[1]:null}var Kc=`(max-width: 768px) 100vw, 400px`;function qc({videoId:e,fallbackSrc:t,alt:n,className:r,loading:i,size:a=`hero`,sizes:o,priority:s=!1,fadeIn:c=!0,...l}){let u=e||Gc(t),d=(0,z.useCallback)(()=>u?`https://img.youtube.com/vi/${u}/${a===`list`?`mqdefault`:`maxresdefault`}.jpg`:t,[u,t,a]),[f,p]=(0,z.useState)(d),[m,h]=(0,z.useState)(!1),[g,_]=(0,z.useState)(!1),v=(0,z.useRef)(null);(0,z.useEffect)(()=>{p(d()),h(!1),_(!1)},[d]),(0,z.useEffect)(()=>
625{v.current?.complete&&v.current.naturalWidth>0&&_(!0)},[f]),(0,z.useEffect)(()=>{if(!u||m||f===t||a===`list`)return;let e=new Image;e.src=t},[u,f,t,m,a]);let y=()=>{m||(h(!0),p(t),_(!1))},b=a===`card`&&u&&!m?[`https://img.youtube.com/vi/${u}/mqdefault.jpg 320w`,`https://img.youtube.com/vi/${u}/hqdefault.jpg 480w`,`https://img.youtube.com/vi/${u}/sddefault.jpg 640w`].join(`, `):void 0;return(0,W.jsx)(`img`,{ref:v,src:f,srcSet:b,sizes:b?o||Kc:void 0,alt:n,className:[r,c?`transition-opacity duration-500 ease-out ${g?`opacity-100`:`opacity-0`}`:``].filter(Boolean).join(` `),loading:s?`eager`:i,decoding:`async`,onError:y,onLoad:()=>_(!0),...s?{fetchpriority:`high`}:void 0,...l})}var Jc={jan:0,january:0,feb:1,february:1,mar:2,march:2,apr:3,april:3,may:4,jun:5,june:5,jul:6,july:6,aug:7,august:7,sep:8,sept:8,september:8,oct:9,october:9,nov:10,november:10,dec:11,december:11};function Yc(e,t=new Date){let n={isPast:!1,startTime:1/0,endTime:1/0,year:null};if(!e)return n;let r=e.match(/(\w+)\s+(\d+)(?:-(\d+))?,\s+(\d+)/);if(!r)return n;let i=Jc[r[1].toLowerCase()];if(i===void 0)return n;let a=parseInt(r[2],10),o=r[3]?parseInt(r[3],10):a,s=parseInt(r[4],10),c=new Date(s,i,a),l=new Date(s,i,o,23,59,59,999),u=c.getTime(),d=l.getTime();return isNaN(u)||isNaN(d)?n:{isPast:d<t.getTime(),startTime:u,endTime:d,year:s}}function Xc(e){let t=Array.from(new Set(e.map(e=>Yc(e).year).filter(e=>e!=null))).sort((e,t)=>e-t);if(t.length===0)return null;let n=t[0],r=t[t.length-1];return n===r?String(n):`${n}â${Math.floor(n/100)===Math.floor(r/100)?String(r).slice(-2):r}`}function Zc(e){if(!e)return null;let t=e.match(/(\w+)\s+(\d+)(?:-(\d+))?,\s+(\d+)/);if(!t||Jc[t[1].toLowerCase()]===void 0)return null;let n=t[1].slice(0,3),r=t[3]?`${t[2]}â${t[3]}`:t[2];return{month:n.charAt(0).toUpperCase()+n.slice(1).toLowerCase(),days:r,year:t[4]}}var Qc=1440*60*1e3;function $c(e,t=new Date,n=45){let r=Yc(e,t);if(r.year==null)return{kind:`tba`};if(r.isPast)return{kind:`past`};let i=t.getTime();if(i>=r.startTime)return{kind:`live`};let a=Math.ceil((r.startTime-i)/Qc);return a<=n?{kind:`soon`,daysUntil:a}:{kind:`upcoming`}}function el(e){return e.trim().replace(/\s+/g,` `).toLowerCase()}function tl(e){let t=Yc(e.dates).year;if(il(e.lineupYear,t))return[];let n=new Map;for(let t of e.headliners??[])t?.name&&!n.has(el(t.name))&&n.set(el(t.name),t);return rl(e.lineup).map(e=>{let t=n.get(el(e));return{name:e,imageUrl:t?.imageUrl??null,focalX:t?.focalX??null,focalY:t?.focalY??null}})}var nl=/^(?:\d{4}\s+)?lineup\s+tba$|^tba$/i;function rl(e){return(e||[]).filter(e=>!nl.test(e.trim()))}function il(e,t){return e!=null&&t!=null&&e<t}var al=`/assets/dwp-logo-CU7a6WkG.png`,ol=`/assets/festival-stage-crowd-CgESGs6o.webp`,sl={"purple-500":`#a855f7`,"purple-600":`#9333ea`,"purple-700":`#7e22ce`,"purple-800":`#6b21a8`,"purple-900":`#581c87`,"violet-500":`#8b5cf6`,"violet-600":`#7c3aed`,"violet-700":`#6d28d9`,"violet-800":`#5b21b6`,"violet-900":`#4c1d95`,"fuchsia-500":`#d946ef`,"fuchsia-600":`#c026d3`,"fuchsia-700":`#a21caf`,"fuchsia-800":`#86198f`,"fuchsia-900":`#701a75`,"pink-500":`#ec4899`,"pink-600":`#db2777`,"pink-700":`#be185d`,"pink-800":`#9d174d`,"pink-900":`#831843`,"rose-500":`#f43f5e`,"rose-600":`#e11d48`,"rose-700":`#be123c`,"rose-800":`#9f1239`,"rose-900":`#881337`,"red-500":`#ef4444`,"red-600":`#dc2626`,"red-700":`#b91c1c`,"red-800":`#991b1b`,"red-900":`#7f1d1d`,"orange-500":`#f97316`,"orange-600":`#ea580c`,"orange-700":`#c2410c`,"orange-800":`#9a3412`,"orange-900":`#7c2d12`,"amber-500":`#f59e0b`,"amber-600":`#d97706`,"amber-700":`#b45309`,"amber-800":`#92400e`,"amber-900":`#78350f`,"yellow-500":`#eab308`,"yellow-600":`#ca8a04`,"yellow-700":`#a16207`,"yellow-800":`#854d0e`,"yellow-900":`#713f12`,"lime-500":`#84cc16`,"lime-600":`#65a30d`,"lime-700":`#4d7c0f`,"lime-800":`#3f6212`,"lime-900":`#365314`,"green-500":`#22c55e`,"green-600":`#16a34a`,"green-700":`#15803d`,"green-800":`#166534`,"green-900":`#14532d`,"emerald-500":`#10b981`,"emerald-600":`#059669`,"emerald-700":`#047857`,"emerald-800":`#065f46`,"emerald-900":`#064e3b`,"teal-500":`#14b8a6`,"teal-600":`#0d9488`,"teal-700":`#0f766e`,"teal-800":`#115e59`,"teal-900":`#134e4a`,"cyan-500":`#06b6d4`,"cyan-600":`#0891b2`,"cyan-700":`#0e7490`,"cyan-800":`#155e75`,"cyan-900":`#164e63`,"sky-500":`#0ea5e9`,"sky-600":`#0284c7`,"sky-700":`#0369a1`,"sky-800":`#075985`,"sky-900":`#0c4a6e`,"blue-500":`#3b82f6`,"blue-600":`#2563eb`,"blue-700":`#1d4ed8`,"blue-800":`#1e40af`,"blue-900":`#1e3a8a`,"indigo-500":`#6366f1`,"indigo-600":`#4f46e5`,"indigo-700":`#4338ca`,"
625indigo-800":`#3730a3`,"indigo-900":`#312e81`,"gray-500":`#6b7280`,"gray-600":`#4b5563`,"gray-700":`#374151`,"gray-800":`#1f2937`,"gray-900":`#111827`,"slate-500":`#64748b`,"slate-600":`#475569`,"slate-700":`#334155`,"slate-800":`#1e293b`,"slate-900":`#0f172a`,"zinc-500":`#71717a`,"zinc-600":`#52525b`,"zinc-700":`#3f3f46`,"zinc-800":`#27272a`,"zinc-900":`#18181b`,"neutral-500":`#737373`,"neutral-600":`#525252`,"neutral-700":`#404040`,"neutral-800":`#262626`,"neutral-900":`#171717`,"stone-500":`#78716c`,"stone-600":`#57534e`,"stone-700":`#44403c`,"stone-800":`#292524`,"stone-900":`#1c1917`,black:`#000000`,white:`#ffffff`},cl=`linear-gradient(135deg, #7f1d1d 0%, #e5101a 55%, #1a1a1a 100%)`,ll=[`from-`,`via-`,`to-`];function ul(e){if(!e)return cl;let t=[];for(let n of ll){let r=e.split(/\s+/).find(e=>e.startsWith(n));if(!r)continue;let i=sl[r.slice(n.length).split(`/`)[0]];i&&t.push(i)}if(t.length<2)return cl;let n=100/(t.length-1);return`linear-gradient(135deg, ${t.map((e,t)=>`${e} ${Math.round(t*n)}%`).join(`, `)})`}var dl=`/assets/LOUDER%20THAN%20LIFE%20LOGO_1760938532426-BD2Fp6-m.png`,fl=`/assets/louder-than-life-wordmark-smN4GJ_I.webp`,pl=`/assets/image_1781806138745-DWTM0RbH.webp`,ml=`/assets/image_1782245480284-CF5nhy73.webp`,hl=`/assets/aftershock-2026-logo-BuguHqoH.webp`,gl=`/assets/INKCARCERATION_1760938624353-BhC3tNqm.webp`,_l={"/assets/LOUDER THAN LIFE LOGO_1760938532426.png":dl,"/assets/ROCKVILLE LOGO_1760938532426.webp":pl,"/assets/image_1782245480284.png":ml,"/assets/AFTERSHOCK_1760938532426.webp":hl,"/assets/aftershock-2026-logo.webp":hl,"/assets/INKCARCERATION_1760938624353.webp":gl},vl={"/assets/LOUDER THAN LIFE LOGO_1760938532426.png":fl};function yl(e){if(e)return vl[e]??_l[e]}var bl=`https://dannywimmerpresents.com/`,xl=7e3,Sl=4,Cl=12,wl=`w-[calc(100%-1.5rem)] max-w-[360px]`,Tl={fontFamily:`'Anton', sans-serif`},El={fontFamily:`'Oswald', sans-serif`};function Dl(e,t){let n=(e??``).trim(),r=(t??``).trim();return n?r&&n.toLowerCase().endsWith(r.toLowerCase())?n.slice(0,n.length-r.length).replace(/[\s,·â¢|ââ-]+$/,``).trim()||null:n.toLowerCase()===r.toLowerCase()?null:n:null}function Ol(e,t=new Date){let n=e.find(e=>!Yc(e.dates,t).isPast)?.id;return e.map((e,r)=>{let i=$c(e.dates,t,1/0);return{festival:e,order:r+1,status:i,isPast:i.kind===`past`,isNext:e.id===n,editionYear:Yc(e.dates,t).year,block:Zc(e.dates),headliners:tl(e),logo:yl(e.logoUrl),venue:Dl(e.location,e.shortLocation),gradient:ul(e.gradient)}})}function kl(e){switch(e.kind){case`past`:return{value:null,unit:null,label:`Wrapped`};case`live`:return{value:null,unit:null,label:`Happening now`};case`soon`:{let t=e.daysUntil===1?`day`:`days`;return{value:String(e.daysUntil),unit:t,label:`In ${e.daysUntil} ${t}`}}case`upcoming`:return{value:null,unit:null,label:`Coming up`};default:return{value:null,unit:null,label:`Dates TBA`}}}function Al(e){return e.isPast?`Wrapped`:e.status.kind===`live`?`Live now`:e.isNext?`Next up`:e.editionYear?`${e.editionYear} edition`:`Dates TBA`}function jl(){return`Rock Feed Festival Guide`}function Ml(e){let[t,n]=(0,z.useState)(!0);return(0,z.useEffect)(()=>{let t=e.current;if(!t||typeof IntersectionObserver>`u`)return;let r=new IntersectionObserver(([e])=>n(e.isIntersecting),{threshold:.05});return r.observe(t),()=>r.disconnect()},[e]),t}function Nl(){let[e,t]=(0,z.useState)(()=>typeof document>`u`||document.visibilityState!==`hidden`);return(0,z.useEffect)(()=>{let e=()=>t(document.visibilityState!==`hidden`);return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e}function Pl({gridOpacity:e}){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`img`,{src:ol,alt:``,"aria-hidden":`true`,loading:`lazy`,decoding:`async`,className:`hfs-backdrop`,"data-testid":`img-festivals-stage-backdrop`}),(0,W.jsx)(`div`,{className:`hfs-shade`,"aria-hidden":`true`}),(0,W.jsx)(`div`,{className:`hfs-uplight`,"aria-hidden":`true`}),(0,W.jsx)(`div`,{className:`hfs-grid absolute inset-0 ${e}`,"aria-hidden":`true`})]})}function Fl({className:e=``}){return(0,W.jsxs)(`a`,{href:bl,target:`_blank`,rel:`noopener noreferrer`,className:`group inline-flex items-center gap-3 ${e}`,"aria-label":`Official Festival Partner: Danny Wimmer Presents`,"data-testid":`link-festivals-partner`,children:[(0,W.jsxs)(`span`,{className:`font-barlow-condensed whitespace-nowrap text-left text-[10px] font-semibold uppercase leading-[1.15] tracking-[0.26em] text-white/70 md:text-right md:text-[11px]`,children:[`Official`,(0,W.jsx)(`br`,{}),`Festival Partner`]}),(0,W.jsx)(`span`,{className:`h-7 w-px bg-white/15 md:h-8`,"aria-hidden":`true`}),(0,W.jsx)(`img`,{src:al,alt:`Danny Wimmer Presents`,className:`h-7 w-auto transition-transform duration-300 group-hover:scale-[1.04] md:h-9`,"data-testid":`img-dwp-logo-home`})]})}function Il(){return(0,W.jsxs)(T,{to:`/festivals`,className:`group inline-flex items-center gap-1 whitespace-nowrap text-xs text-white/50 transition-colors hover:text-white`,"data-testid":`link-festivals-view-all`,children:[`View All`,(0,W.jsx)(sn,{className:`h-3 w-3 transition-transform group-hover:translate-x-0.5`})]})}var Ll=`font-barlow-condensed truncate text-[11px] font-semibold uppercase leading-4 tracking-[0.16em] text-white/45 md:text-xs md:leading-4 md:tracking-[0.28em]`;function Rl({cards:e,stacked:t}){let n=Xc(e.map(e=>e.festival.dates)),r=(0,W.jsxs)(`h2`,{className:`uppercase tracking-wide text-white ${t?`text-[26px] leading-none`:`text-[38px] leading-none`}`,style:Tl,"data-testid":`text-festivals-season-title`,children:[(0,W.jsx)(`span`,{className:t?`block`:void 0,children:`Festival Season`}),n?(0,W.jsxs)(W.Fragment,{children:[t?null:` `,(0,W.jsx)(`span`,{className:`text-[#e5101a] ${t?`block`:`whitespace-nowrap`}`,"data-testid":`text-festivals-season-range`,children:n})]}):null]}),i=(0,W.jsxs)(`p`,{className:`${Ll} ${t?`min-w-0`:`mb-1.5`}`,"data-testid":`text-festivals-season-eyebrow`,children:[!t&&(0,W.jsx)(`span`,{className:`hidden lg:inline`,children:`Danny Wimmer Presents · `}),jl()]});return t?(0,W.jsxs)(`header`,{className:`mb-5`,"data-testid":`festivals-showcase-header`,children:[(0,W.jsxs)(`div`,{className:`mb-1.5 flex items-center justify-between gap-3`,children:[i,(0,W.jsx)(Il,{})]}),r,(0,W.jsx)(`div`,{className:`mt-3 flex items-center`,children:(0,W.jsx)(Fl,{})})]}):(0,W.jsx)(`header`,{className:`mb-6`,"data-testid":`festivals-showcase-header`,children:(0,W.jsxs)(`div`,{className:`flex items-end justify-between gap-3`,children:[(0,W.jsxs)(`div`,{className:`min-w-0`,children:[i,r]}),(0,W.jsxs)(`div`,{className:`flex shrink-0 items-center gap-7`,children:[(0,W.jsx)(Fl,{}),(0,W.jsx)(Il,{})]})]})})}function zl({card:e}){let t=e.status.kind===`live`||e.isNext&&!e.isPast;return(0,W.jsxs)(`span`,{className:`font-barlow-condensed inline-flex w-fit items-center gap-1.5 px-2.5 py-1 text-[11px] font-bold uppercase tracking-[0.18em] ${e.isPast?`bg-white/10 text-white/55`:`bg-[#e5101a] text-white`}`,"data-testid":`text-festival-marker-${e.festival.id}
625`,children:[t&&(0,W.jsx)(`i`,{className:`hfs-live-dot h-1.5 w-1.5 rounded-full bg-white`,"aria-hidden":`true`}),Al(e)]})}function Bl({headliner:e,festId:t}){let[n,r]=(0,z.useState)(!1);return(0,W.jsxs)(`li`,{className:`min-w-0 max-w-[72px] flex-1 basis-0`,children:[e.imageUrl&&!n?(0,W.jsx)(`img`,{src:e.imageUrl,alt:``,loading:`lazy`,decoding:`async`,className:`hfs-photo aspect-square w-full max-w-[48px] bg-[#1b1b1f] object-cover`,style:{objectPosition:`${e.focalX??50}% ${e.focalY??20}%`},onError:()=>r(!0),"data-testid":`img-festival-headliner-${t}`}):(0,W.jsx)(`span`,{className:`hfs-photo flex aspect-square w-full max-w-[48px] items-center justify-center bg-[#1b1b1f] px-1 text-center text-[9px] font-bold uppercase leading-tight tracking-wide text-white/60`,style:El,"aria-hidden":`true`,children:e.name.split(/\s+/).map(e=>e[0]).join(``).slice(0,3)}),(0,W.jsx)(`p`,{className:`font-barlow-condensed mt-1 line-clamp-2 text-[10px] font-semibold uppercase leading-tight tracking-wide text-white/72`,"data-testid":`text-festival-headliner-${t}`,children:e.name})]})}function Vl({card:e}){let{festival:t,headliners:n,editionYear:r}=e;if(e.isPast&&n.length)return(0,W.jsxs)(`p`,{className:`text-xs uppercase leading-relaxed tracking-[0.16em] text-white/38`,style:El,"data-testid":`text-festival-past-bill-${t.id}`,children:[r?`${r} bill: `:`Bill: `,n.slice(0,3).map(e=>e.name).join(` · `)]});if(n.length===0)return(0,W.jsx)(`div`,{className:`border border-white/15 bg-white/[.04] px-3 py-3 text-xs uppercase tracking-[0.18em] text-white/72`,style:El,"data-testid":`text-festival-lineup-tba-${t.id}`,children:r?`${r} lineup TBA`:`Lineup TBA`});let i=n.slice(0,Sl),a=n.length-i.length;return(0,W.jsxs)(`ul`,{className:`flex items-start gap-2`,"data-testid":`text-festival-lineup-${t.id}`,children:[i.map((e,n)=>(0,W.jsx)(Bl,{headliner:e,festId:t.id},`${e.name}-${n}`)),a>0&&(0,W.jsxs)(`li`,{className:`min-w-0 max-w-[48px] flex-1 basis-0`,"data-testid":`text-festival-lineup-more-${t.id}`,children:[(0,W.jsxs)(`span`,{className:`flex aspect-square w-full max-w-[48px] items-center justify-center border border-white/20 text-sm font-bold text-white/70`,style:El,children:[`+`,a]}),(0,W.jsx)(`p`,{className:`font-barlow-condensed mt-1 text-[10px] font-semibold uppercase leading-tight tracking-wide text-white/50`,children:`more`})]})]})}function Hl({card:e,tree:t,sheen:n,onBringToFront:r}){let{festival:i,block:a,isPast:o,logo:s}=e,c=kl(e.status),l=t===`mobile`;return(0,W.jsxs)(`article`,{className:`hfs-card relative flex h-full min-h-[510px] flex-col overflow-hidden border border-white/15 ${l?`p-4`:`p-5`} ${n?`hfs-card-sheen`:``} ${o?`hfs-card-past`:``}`,"data-testid":l?`card-festival-mobile-${i.id}`:`card-festival-${i.id}`,"data-status":e.status.kind,children:[(0,W.jsx)(T,{to:`/festivals`,className:`absolute inset-0 z-[1]`,"aria-label":r?`Bring ${i.name} to the front`:`${i.name} on the Festivals page`,onClick:r?e=>{e.preventDefault(),r()}:void 0,"data-testid":`link-festival-card-${i.id}`}),(0,W.jsx)(`div`,{className:`absolute inset-x-0 top-0 h-1`,style:{background:e.gradient},"aria-hidden":`true`}),(0,W.jsx)(`div`,{className:l?`hfs-card-wash absolute inset-x-0 top-0 h-20 opacity-30`:`absolute inset-x-0 top-0 h-32 opacity-25`,style:{background:e.gradient},"aria-hidden":`true`}),(0,W.jsxs)(`div`,{className:`relative flex items-start justify-between gap-3`,children:[(0,W.jsx)(zl,{card:e}),(0,W.jsx)(`span`,{className:`text-[10px] tracking-[0.2em] text-white/45`,style:El,children:String(e.order).padStart(2,`0`)})]}),(0,W.jsx)(`div`,{className:`relative my-5 flex h-[72px] items-center`,children:s?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`img`,{src:s,alt:``,loading:`lazy`,decoding:`async`,className:`block h-auto max-h-full w-auto ${l?`max-w-full`:`max-w-[90%]`}`,"data-testid":`img-festival-logo-${i.id}`}),(0,W.jsx)(`h3`,{className:`sr-only`,children:i.name})]}):(0,W.jsx)(`h3`,{className:`line-clamp-2 text-[28px] uppercase leading-none tracking-wide text-white`,style:Tl,children:i.name})}),(0,W.jsxs)(`div`,{className:`relative grid grid-cols-[auto_1fr] gap-3 md:gap-4`,children:[(0,W.jsxs)(`div`,{className:`whitespace-nowrap leading-[.78] text-white`,style:Tl,children:[(0,W.jsx)(`span`,{className:`block ${l?`text-lg`:`text-xl`}`,children:a?.month??`TBA`}),(0,W.jsx)(`span`,{className:`block ${l?`text-[32px]`:`text-[38px]`}`,children:a?.days??`â`})]}),(0,W.jsxs)(`div`,{className:`h-16 min-w-0 overflow-hidden border-l border-white/[.18] pl-3 md:pl-4`,children:[(0,W.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.12em] text-white`,style:El,"data-testid":`text-festival-dates-${i.id}`,children:a?`${a.month} ${a.days}, ${a.year}`:i.dates}),(0,W.jsxs)(`p`,{className:`font-barlow-condensed mt-1 flex items-start gap-1 text-[13px] uppercase tracking-wide text-white/58 md:text-sm`,children:[(0,W.jsx)(mn,{className:`mt-0.5 h-3 w-3 shrink-0 text-[#e5101a]`,"aria-hidden":`true`}),(0,W.jsx)(`span`,{children:i.shortLocation})]}),e.venue&&(0,W.jsx)(`p`,{className:`font-barlow-condensed mt-1 truncate text-xs text-white/35`,children:e.venue})]})]}),(0,W.jsxs)(`div`,{className:`relative mt-5 border-y border-white/10 py-4`,children:[(0,W.jsx)(`p`,{className:`text-[10px] uppercase tracking-[0.22em] text-white/45`,style:El,children:`Countdown`}),(0,W.jsx)(`p`,{className:`mt-1 text-[31px] leading-none text-white`,style:Tl,"data-testid":`text-festival-countdown-${i.id}`,children:c.value?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{className:`sr-only`,children:`In `}),(0,W.jsx)(`span`,{className:`text-[#e5101a]`,children:c.value}),` `,(0,W.jsx)(`span`,{className:`text-lg`,children:c.unit})]}):c.label})]}),(0,W.jsxs)(`div`,{className:`relative mt-4 h-[100px] overflow-hidden`,children:[(0,W.jsx)(`p`,{className:`mb-2 text-[10px] uppercase tracking-[0.21em] text-white/45`,style:El,children:e.headliners.length===0?`Lineup`:`Headliners`}),(0,W.jsx)(Vl,{card:e})]}),(0,W.jsxs)(`a`,{href:i.website,target:`_blank`,rel:`noopener noreferrer`,className:`font-barlow-condensed relative z-[2] mt-auto inline-flex items-center justify-center gap-2 bg-[#e5101a] px-4 py-3 text-sm font-bold uppercase tracking-[0.14em] text-white transition-transform hover:-translate-y-0.5`,"data-testid":`link-tickets-${i.id}`,children:[(0,W.jsx)(gn,{className:`h-4 w-4`,"aria-hidden":`true`}
625),o?`Festival Site`:`Get Tickets`,(0,W.jsx)(cn,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,W.jsxs)(`span`,{className:`sr-only`,children:[` â `,i.name,` (opens in a new tab)`]})]})]})}var Ul={[-2]:{transform:`translateX(-73%) translateZ(-210px) rotateY(31deg) scale(.66)`,opacity:.48,zIndex:4},[-1]:{transform:`translateX(-48%) translateZ(-105px) rotateY(18deg) scale(.82)`,opacity:.72,zIndex:9},0:{transform:`translateX(0) translateZ(48px) rotateY(0deg) scale(1)`,opacity:1,zIndex:20},1:{transform:`translateX(48%) translateZ(-105px) rotateY(-18deg) scale(.82)`,opacity:.72,zIndex:9},2:{transform:`translateX(73%) translateZ(-210px) rotateY(-31deg) scale(.66)`,opacity:.48,zIndex:4}},Wl=`(min-width: 900px)`,Gl={[-2]:{transform:`translateX(-60%) translateZ(-210px) rotateY(31deg) scale(.66)`,opacity:0,zIndex:4},[-1]:{transform:`translateX(-40%) translateZ(-105px) rotateY(18deg) scale(.8)`,opacity:.72,zIndex:9},0:Ul[0],1:{transform:`translateX(40%) translateZ(-105px) rotateY(-18deg) scale(.8)`,opacity:.72,zIndex:9},2:{transform:`translateX(60%) translateZ(-210px) rotateY(-31deg) scale(.66)`,opacity:0,zIndex:4}};function Kl(e,t,n){if(n===0)return 0;let r=e-t,i=Math.floor(n/2);return r>i&&(r-=n),r<-i&&(r+=n),r}function ql({cards:e,reducedMotion:t}){let n=e.length,[r,i]=(0,z.useState)(()=>Math.max(0,e.findIndex(e=>e.isNext))),[a,o]=(0,z.useState)(!1),s=(0,z.useRef)(null),c=Ml(s),l=Nl(),u=bc(Wl)?Ul:Gl,d=n?r%n:0,f=!t&&c&&l;(0,z.useEffect)(()=>{if(!f||a||n<2)return;let e=setInterval(()=>i(e=>(e+1)%n),xl);return()=>clearInterval(e)},[f,a,n,d]);let p=e=>i(t=>((t%n+e)%n+n)%n);return(0,W.jsxs)(`div`,{ref:s,className:`hfs-stage relative overflow-hidden`,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onFocusCapture:()=>o(!0),onBlurCapture:()=>o(!1),"data-testid":`festivals-deck`,"data-active-id":e[d]?.festival.id,children:[(0,W.jsx)(Pl,{gridOpacity:`opacity-30`}),(0,W.jsx)(`div`,{className:`relative z-30 px-8 pt-8`,children:(0,W.jsx)(Rl,{cards:e,stacked:!1})}),(0,W.jsx)(`div`,{className:`hfs-perspective relative mx-auto mt-5 h-[555px] max-w-[1080px]`,children:(0,W.jsx)(`div`,{className:`hfs-preserve-3d absolute inset-0`,children:e.map((e,t)=>{let r=Kl(t,d,n),a=u[r],o=t===d,s=!a||a.opacity===0;return(0,W.jsx)(`div`,{className:`hfs-deck-card`,style:a??{transform:`scale(.5)`,opacity:0,zIndex:0},"data-hidden":s?`true`:void 0,...s?{inert:``}:{},"data-active":o?`true`:`false`,"data-offset":r,onFocusCapture:o?void 0:()=>i(t),children:(0,W.jsx)(Hl,{card:e,tree:`desktop`,sheen:o&&f,onBringToFront:o?void 0:()=>i(t)})},e.festival.id)})})}),n>1&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`div`,{className:`absolute left-7 top-[53%] z-30`,children:(0,W.jsx)(`button`,{type:`button`,onClick:()=>p(-1),"aria-label":`Previous festival`,className:`grid h-11 w-11 place-items-center border border-white/20 bg-black/55 text-white transition-colors hover:bg-[#e5101a]`,"data-testid":`button-festivals-prev`,children:(0,W.jsx)(ln,{className:`h-5 w-5`})})}),(0,W.jsx)(`div`,{className:`absolute right-7 top-[53%] z-30`,children:(0,W.jsx)(`button`,{type:`button`,onClick:()=>p(1),"aria-label":`Next festival`,className:`grid h-11 w-11 place-items-center border border-white/20 bg-black/55 text-white transition-colors hover:bg-[#e5101a]`,"data-testid":`button-festivals-next`,children:(0,W.jsx)(un,{className:`h-5 w-5`})})})]}),(0,W.jsx)(`div`,{className:`relative flex items-center justify-center gap-2 pb-7`,children:e.map((e,t)=>(0,W.jsx)(`button`,{type:`button`,"aria-label":`Show ${e.festival.name}`,"aria-pressed":t===d,onClick:()=>i(t),className:`p-2`,"data-testid":`button-festivals-dot-${e.festival.id}`,children:(0,W.jsx)(`span`,{className:`block h-1 transition-all duration-500 ${t===d?`w-9 bg-[#e5101a]`:`w-3 bg-white/30`}`})},e.festival.id))})]})}function Jl({cards:e,reducedMotion:t}){let[n,r]=(0,z.useState)(0),i=(0,z.useRef)(null),a=Ml(i);return(0,W.jsxs)(`div`,{ref:i,className:`hfs-stage relative overflow-hidden pt-6`,"data-testid":`festivals-rail-stage`,children:[(0,W.jsx)(Pl,{gridOpacity:`opacity-20`}),(0,W.jsx)(`div`,{className:`relative px-4`,children:(0,W.jsx)(Rl,{cards:e,stacked:!0})}),(0,W.jsxs)(`p`,{className:`hfs-swipe-cue relative px-4`,"data-testid":`text-festivals-swipe-cue`,children:[`Swipe for more festivals `,(0,W.jsx)(`span`,{"aria-hidden":`true`,children:`â`})]}),(0,W.jsx)(`div`,{className:`hfs-no-scrollbar relative flex snap-x snap-mandatory items-stretch gap-3 overflow-x-auto overscroll-x-contain scroll-px-4 px-4 pb-5 pt-2`,"data-testid":`festivals-rail`,onScroll:t=>{let n=t.currentTarget,i=n.firstElementChild?.clientWidth??1,a=n.scrollWidth-n.clientWidth,o=a>0&&n.scrollLeft>=a-1;r(o?e.length-1:Math.min(e.length-1,Math.max(0,Math.round(n.scrollLeft/(i+Cl)))))},children:e.map((e,r)=>(0,W.jsx)(`div`,{className:`hfs-rail-card ${wl} shrink-0 snap-start`,children:(0,W.jsx)(Hl,{card:e,tree:`mobile`,sheen:r===n&&a&&!t})},e.festival.id))}),(0,W.jsx)(`div`,{className:`relative flex justify-center gap-1.5 pb-7`,"aria-hidden":`true`,children:e.map((e,t)=>(0,W.jsx)(`span`,{className:`h-1 ${t===n?`w-7 bg-[#e5101a]`:`w-2 bg-white/30`}`},e.festival.id))})]})}function Q({className:e}){return(0,W.jsx)(`span`,{className:`rf-skeleton-pulse block bg-white/10 ${e}`})}function Yl({stacked:e}){return e?(0,W.jsxs)(`div`,{className:`mb-5`,children:[(0,W.jsxs)(`div`,{className:`mb-1.5 flex items-center justify-between gap-3`,children:[(0,W.jsx)(Q,{className:`h-4 w-48`}),(0,W.jsx)(Q,{className:`h-4 w-14`})]}),(0,W.jsx)(Q,{className:`h-[26px] w-52`}),(0,W.jsx)(Q,{className:`h-[26px] w-28`}),(0,W.jsx)(`div`,{className:`mt-3 flex items-center`,children:(0,W.jsx)(Q,{className:`h-7 w-44`})})]}):(0,W.jsx)(`div`,{className:`mb-6`,children:(0,W.jsxs)(`div`,{className:`flex items-end justify-between gap-3`,children:[(0,W.jsxs)(`div`,{className:`min-w-0`,children:[(0,W.jsx)(Q,{className:`mb-1.5 h-4 w-72`}),(0,W.jsx)(Q,{className:`h-[38px] w-[380px]`})]}),(0,W.jsxs)(`div`,{className:`flex shrink-0 items-center gap-7`,children:[(0,W.jsx)(Q,{className:`h-9 w-40`}),(0,W.jsx)(Q,{className:`h-4 w-14`})]})]})})}function Xl({desktop:e}){return e?(0,W.jsxs)(`div`,{className:`hfs-stage relative overflow-hidden`,"data-testid":`skeleton-festivals-showcase`,"aria-busy":`true`,children:[(0,W.jsx)(`div`,{className:`relative px-8 pt-8`,children:(0,W.jsx)(Yl,{stacked:!1})}
625),(0,W.jsx)(`div`,{className:`relative mx-auto mt-5 h-[555px] max-w-[1080px]`,children:(0,W.jsx)(`div`,{className:`hfs-deck-card`,children:(0,W.jsx)(Q,{className:`h-full w-full border border-white/10`})})}),(0,W.jsx)(`div`,{className:`relative flex items-center justify-center gap-2 pb-7`,children:[0,1,2].map(e=>(0,W.jsx)(`span`,{className:`p-2`,children:(0,W.jsx)(Q,{className:`h-1 ${e===0?`w-9`:`w-3`}`})},e))})]}):(0,W.jsxs)(`div`,{className:`hfs-stage relative overflow-hidden pt-6`,"data-testid":`skeleton-festivals-showcase`,"aria-busy":`true`,children:[(0,W.jsx)(`div`,{className:`relative px-4`,children:(0,W.jsx)(Yl,{stacked:!0})}),(0,W.jsx)(`div`,{className:`relative h-5 px-4`,"aria-hidden":`true`}),(0,W.jsx)(`div`,{className:`relative flex items-stretch gap-3 overflow-hidden px-4 pb-5`,children:(0,W.jsx)(`div`,{className:`hfs-rail-card ${wl} shrink-0`,children:(0,W.jsx)(Q,{className:`min-h-[510px] w-full border border-white/10`})})}),(0,W.jsxs)(`div`,{className:`relative flex justify-center gap-1.5 pb-7`,children:[(0,W.jsx)(Q,{className:`h-1 w-7`}),(0,W.jsx)(Q,{className:`h-1 w-2`}),(0,W.jsx)(Q,{className:`h-1 w-2`})]})]})}function Zl({children:e}){return(0,W.jsx)(`section`,{className:`py-4 md:px-12`,"data-testid":`section-festivals-showcase`,children:(0,W.jsx)(`div`,{className:`mx-auto max-w-[1400px]`,children:e})})}function Ql({festivals:e,isLoading:t}){let n=xc(),r=Sc(),i=(0,z.useMemo)(()=>Ol(e),[e]);return t?(0,W.jsx)(Zl,{children:(0,W.jsx)(Xl,{desktop:n})}):i.length===0?null:(0,W.jsx)(Zl,{children:n?(0,W.jsx)(ql,{cards:i,reducedMotion:r}):(0,W.jsx)(Jl,{cards:i,reducedMotion:r})})}var $l=/^[A-Za-z0-9_-]{11}$/;function eu(e){return typeof e==`string`&&$l.test(e)}function tu(e){if(!e)return null;let t=e.trim();if($l.test(t))return t;for(let e of[/youtube\.com\/watch\?(?:.*&)?v=([A-Za-z0-9_-]{11})(?:[&#]|$)/,/youtu\.be\/([A-Za-z0-9_-]{11})(?:[?&#]|$)/,/youtube\.com\/(?:embed|shorts|live|v)\/([A-Za-z0-9_-]{11})(?:[?&#/]|$)/]){let n=t.match(e);if(n)return n[1]}return null}function nu(e){return`https://www.youtube.com/watch?v=${e}`}function ru(e){return`https://img.youtube.com/vi/${e}/hqdefault.jpg`}var iu={"Tk9TM7-eTmw":{jpg:`/events/joseph-plane-cabin.jpg`,webp:`/events/joseph-plane-cabin.webp`}};function au(e){return Object.prototype.hasOwnProperty.call(iu,e)?iu[e]:null}var ou={youtube:`YouTube`,spotify:`Spotify`,apple:`Apple Podcasts`},$={videoId:`Tk9TM7-eTmw`,headline:`The Ronnie Radke Interview`,subline:`Falling In Reverse's Ronnie Radke sits down with Rock Feed. Watch 'Joseph' now â the episode is out.`,episodeYoutubeUrl:`https://youtu.be/Vx01yN6vd94`,episodeSpotifyUrl:``,episodeAppleUrl:``,podcastYoutubeUrl:`https://www.youtube.com/watch?v=Vx01yN6vd94&t=390s`,podcastSpotifyUrl:`https://open.spotify.com/show/2YIx5mE1Qy9cVSU5Afjczz?dl_branch=1`,podcastAppleUrl:`https://podcasts.apple.com/us/podcast/rock-feed/id1484275082`,lockedLine:`You're early. This explosive podcast will unlock soon.`,interviewImageUrl:``,badgeLine:`The must-see rock interview of the year`};$.videoId,$.headline,$.subline,$.episodeYoutubeUrl,$.episodeSpotifyUrl,$.episodeAppleUrl,$.podcastYoutubeUrl,$.podcastSpotifyUrl,$.podcastAppleUrl,$.lockedLine,$.interviewImageUrl,$.badgeLine;function su(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function cu(e){return!su(e)||e<1e6?null:`Now over ${e>=1e7?String(Math.floor(e/1e6)):(Math.floor(e/1e5)/10).toFixed(1).replace(/\.0$/,``)} million views`}function lu(e){let t=cu(e.episodeViewCount),n=(typeof e.badgeLine==`string`?e.badgeLine.trim():``)||null;return t||n?{views:t,line:n}:null}function uu(e){return(typeof e.episodeTitle==`string`?e.episodeTitle.trim():``)||e.headline}function du(e){return e.episodeVideoId?`video`:e.episodeLinks.length>0?`links`:`locked`}var fu=`home-takeover`,pu=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;function mu(e){if(typeof e!=`string`)return null;let t=e.trim().toLowerCase();if(!t||t.length>254||!pu.test(t))return null;let n=t.lastIndexOf(`@`),r=t.slice(0,n),i=t.slice(n+1);return r.length>64||r.startsWith(`.`)||r.endsWith(`.`)||r.includes(`..`)||i.startsWith(`.`)||i.endsWith(`.`)||i.includes(`..`)||i.startsWith(`-`)?null:t}var hu={live:!1};function gu(e){if(typeof e!=`string`||!e.trim())return!1;try{return new URL(e.trim()).protocol===`https:`}catch{return!1}}function _u(e){return Array.isArray(e)&&e.every(e=>e&&typeof e==`object`&&gu(e.url)&&typeof e.label==`string`&&typeof e.platform==`string`&&e.platform in ou)}function vu(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.live===!0&&eu(t.videoId)&&gu(t.videoUrl)&&gu(t.posterUrl)&&typeof t.headline==`string`&&t.headline.trim().length>0&&typeof t.subline==`string`&&_u(t.episodeLinks)&&_u(t.podcastLinks)&&typeof t.lockedLine==`string`&&(t.interviewImageUrl===null||gu(t.interviewImageUrl))&&(t.episodeVideoId===null||eu(t.episodeVideoId))&&
625(t.badgeLine===void 0||typeof t.badgeLine==`string`)&&(t.episodeViewCount==null||su(t.episodeViewCount))&&(t.episodeTitle==null||typeof t.episodeTitle==`string`)}var yu=`Get notified when it unlocks`,bu=`You're on the list. We'll email you the moment it drops.`,xu=`One email, the moment it drops.`,Su=`That doesn't look like an email address.`,Cu=`Couldn't save that. Try again.`,wu=`Too many tries. Give it a few minutes.`,Tu=8e3;async function Eu(e,t,n){let r=new AbortController,i=setTimeout(()=>r.abort(),Tu);try{let i=await fetch(`/api/home-takeover/signup`,{method:`POST`,headers:{"Content-Type":`application/json`},credentials:`same-origin`,body:JSON.stringify({email:e,website:t,source:n}),signal:r.signal});return i.ok?{ok:!0}:i.status===429?{ok:!1,message:wu}:i.status===400?{ok:!1,message:Su}:{ok:!1,message:Cu}}catch{return{ok:!1,message:Cu}}finally{clearTimeout(i)}}function Du({source:e=fu}){let[t,n]=(0,z.useState)(``),[r,i]=(0,z.useState)(``),[a,o]=(0,z.useState)(`idle`),[s,c]=(0,z.useState)(null);async function l(n){if(n.preventDefault(),a===`sending`)return;let i=mu(t);if(!i){c(Su);return}c(null),o(`sending`);let s=await Eu(i,r,e);s.ok?o(`done`):(c(s.message),o(`idle`))}if(a===`done`)return(0,W.jsx)(`p`,{className:`hto-notify-done`,role:`status`,"data-testid":`text-takeover-notify-done`,children:bu});let u=a===`sending`;return(0,W.jsxs)(`form`,{className:`hto-notify`,onSubmit:l,noValidate:!0,"data-testid":`form-takeover-notify`,children:[(0,W.jsx)(`label`,{className:`hto-notify-label`,htmlFor:`hto-notify-email`,children:yu}),(0,W.jsxs)(`div`,{className:`hto-notify-fields`,children:[(0,W.jsx)(`input`,{id:`hto-notify-email`,className:`hto-notify-input`,type:`email`,name:`email`,inputMode:`email`,autoComplete:`email`,placeholder:`Your email`,value:t,onChange:e=>{n(e.target.value),s&&c(null)},disabled:u,"aria-invalid":s?!0:void 0,"aria-describedby":s?`hto-notify-error`:`hto-notify-note`,"data-testid":`input-takeover-notify-email`}),(0,W.jsx)(`button`,{type:`submit`,className:`hto-notify-button`,disabled:u,"data-testid":`button-takeover-notify`,children:u?`Savingâ¦`:`Notify me`})]}),(0,W.jsx)(`input`,{className:`hto-notify-honeypot`,type:`text`,name:`website`,tabIndex:-1,autoComplete:`off`,"aria-hidden":`true`,value:r,onChange:e=>i(e.target.value),"data-testid":`input-takeover-notify-website`}),s?(0,W.jsx)(`p`,{id:`hto-notify-error`,className:`hto-notify-error`,role:`alert`,"data-testid":`text-takeover-notify-error`,children:s}):(0,W.jsx)(`p`,{id:`hto-notify-note`,className:`hto-notify-note`,"data-testid":`text-takeover-notify-note`,children:xu})]})}var Ou=`It's out. Listen to the full interview.`;function ku({status:e}){let[t,n]=(0,z.useState)(e.posterUrl),r=ru(e.videoId),i=lu(e);return(0,W.jsxs)(`section`,{className:`hto-stage`,"data-testid":`home-takeover`,"aria-labelledby":`home-takeover-headline`,children:[(0,W.jsx)(`img`,{className:`hto-backdrop`,src:t,alt:``,"aria-hidden":`true`,decoding:`async`,onError:()=>{t!==r&&n(r)},"data-testid":`img-takeover-backdrop`}
625),(0,W.jsx)(`div`,{className:`hto-shade`,"aria-hidden":`true`}),(0,W.jsxs)(`div`,{className:`hto-body`,children:[i&&(0,W.jsxs)(`p`,{className:`hto-badge`,"data-testid":`text-takeover-badge`,children:[i.views&&(0,W.jsx)(`strong`,{className:`hto-badge-views`,"data-testid":`text-takeover-badge-views`,children:i.views}),i.views&&i.line&&(0,W.jsxs)(W.Fragment,{children:[` `,(0,W.jsx)(`span`,{className:`hto-badge-dot`,"aria-hidden":`true`,children:`·`}),` `]}),i.line&&(0,W.jsx)(`span`,{"data-testid":`text-takeover-badge-line`,children:i.line})]}),(0,W.jsx)(`h2`,{id:`home-takeover-headline`,className:`hto-headline`,"data-testid":`text-takeover-headline`,children:e.headline}),e.subline&&(0,W.jsx)(`p`,{className:`hto-subline`,"data-testid":`text-takeover-subline`,children:e.subline}),(0,W.jsx)(Fu,{status:e}),du(e)!==`video`&&e.podcastLinks.length>0&&(0,W.jsx)(Mu,{links:e.podcastLinks})]})]})}var Au=`Watch the podcast`,ju={youtube:I,spotify:b,apple:F};function Mu({links:e,attached:t=!1}){return(0,W.jsxs)(`nav`,{className:t?`hto-podcast hto-podcast--attached`:`hto-podcast`,"aria-labelledby":`hto-podcast-label`,"data-testid":`takeover-podcast`,children:[(0,W.jsx)(`p`,{id:`hto-podcast-label`,className:`hto-podcast-label`,children:Au}),(0,W.jsx)(`ul`,{className:`hto-podcast-buttons`,children:e.map(e=>{let t=ju[e.platform];return(0,W.jsx)(`li`,{className:`hto-podcast-item`,children:(0,W.jsxs)(`a`,{className:`hto-podcast-button`,"data-platform":e.platform,href:e.url,target:`_blank`,rel:`noopener noreferrer`,"data-testid":`link-takeover-podcast-${e.platform}`,children:[(0,W.jsx)(t,{className:`hto-podcast-icon`,"aria-hidden":`true`}),(0,W.jsx)(`span`,{className:`hto-podcast-name`,children:e.label}),(0,W.jsx)(cn,{className:`hto-podcast-arrow`,"aria-hidden":`true`})]})},e.platform)})})]})}function Nu(e){return`https://www.youtube-nocookie.com/embed/${e}?autoplay=1&rel=0&playsinline=1&modestbranding=1`}var Pu=`hto-episode-title`;function Fu({status:e}){let t=du(e);if(t===`video`&&e.episodeVideoId){let t=uu(e);return(0,W.jsxs)(`div`,{className:`hto-episode hto-episode--video`,role:`group`,"aria-labelledby":Pu,"data-testid":`takeover-episode`,"data-state":`video`,children:[(0,W.jsx)(`h3`,{id:Pu,className:`hto-episode-title`,"data-testid":`text-takeover-episode-title`,children:t}),(0,W.jsx)(Ru,{videoId:e.episodeVideoId,title:t}),e.podcastLinks.length>0&&(0,W.jsx)(Mu,{links:e.podcastLinks,attached:!0})]})}return(0,W.jsxs)(`div`,{className:`hto-episode`,"data-testid":`takeover-episode`,"data-state":t,children:[(0,W.jsx)(Lu,{status:e}),(0,W.jsx)(`div`,{className:`hto-episode-shade`,"aria-hidden":`true`}),(0,W.jsxs)(`div`,{className:`hto-episode-body`,children:[(0,W.jsxs)(`div`,{className:`hto-episode-intro`,children:[(0,W.jsx)(`span`,{className:`hto-episode-lock`,"aria-hidden":`true`,children:t===`locked`?(0,W.jsx)(pn,{className:`hto-episode-lock-icon`}):(0,W.jsx)(fn,{className:`hto-episode-lock-icon`})}),t===`locked`?(0,W.jsx)(`p`,{className:`hto-episode-line`,"data-testid":`text-takeover-locked-line`,children:e.lockedLine}):(0,W.jsx)(`p`,{className:`hto-episode-line`,"data-testid":`text-takeover-episode-out`,children:Ou})]}),t===`locked`?(0,W.jsx)(Du,{}):(0,W.jsx)(`div`,{className:`hto-episode-links`,"data-testid":`takeover-episode-links`,children:e.episodeLinks.map(e=>(0,W.jsxs)(`a`,{className:`hto-link hto-link--card`,href:e.url,target:`_blank`,rel:`noopener noreferrer`,"data-testid":`link-takeover-episode-card-${e.platform}`,children:[e.label,(0,W.jsx)(cn,{className:`hto-link-icon`,"aria-hidden":`true`})]},e.platform))})]})]})}function Iu(e){let t=au(e.videoId),n=[],r=new Set,i=e=>{e&&!r.has(e.src)&&(r.add(e.src),n.push(e))};return i(e.interviewImageUrl?{src:e.interviewImageUrl}:null),i(t?{src:t.jpg,webp:t.webp}:null),i({src:e.posterUrl}),i({src:ru(e.videoId)}),n}function Lu({status:e}){let t=Iu(e),[n,r]=(0,z.useState)(0),i=t[n];if(!i)return null;let a=(0,W.jsx)(`img`,{className:`hto-episode-still`,src:i.src,alt:``,"aria-hidden":`true`,decoding:`async`,onError:()=>r(n+1),"data-testid":`img-takeover-episode-still`});return i.webp?(0,W.jsxs)(`picture`,{className:`hto-episode-picture`,children:[(0,W.jsx)(`source`,{type:`image/webp`,srcSet:i.webp}),a]}):a}function Ru({videoId:e,title:t}){let[n,r]=(0,z.useState)(!1);return(0,W.jsx)(`div`,{className:`hto-player`,"data-testid":`takeover-episode-player`,"data-
625playing":n?`true`:`false`,children:n?(0,W.jsx)(`iframe`,{className:`hto-frame`,src:Nu(e),title:t,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,allowFullScreen:!0,"data-testid":`iframe-takeover-episode-video`}):(0,W.jsxs)(`button`,{type:`button`,className:`hto-poster`,onClick:()=>r(!0),"aria-label":`Play the episode`,"aria-describedby":Pu,"data-testid":`button-takeover-episode-play`,children:[(0,W.jsx)(qc,{videoId:e,fallbackSrc:ru(e),alt:``,size:`hero`,priority:!0,className:`hto-poster-img`,"data-testid":`img-takeover-episode-poster`}),(0,W.jsx)(`span`,{className:`hto-play`,"aria-hidden":`true`,children:(0,W.jsx)(hn,{className:`hto-play-icon`,strokeWidth:0,fill:`currentColor`})})]})})}var zu=[`/api/home-takeover`],Bu=4e3,Vu=5*6e4;async function Hu(){let e=new AbortController,t=setTimeout(()=>e.abort(),Bu);try{let t=await fetch(`/api/home-takeover`,{credentials:`same-origin`,signal:e.signal});if(!t.ok)return hu;let n=await t.json();return vu(n)?n:hu}catch{return hu}finally{clearTimeout(t)}}function Uu(){let e=x({queryKey:zu,queryFn:Hu,staleTime:6e4,refetchOnWindowFocus:!1,refetchInterval:e=>e.state.data?.live?Vu:!1,retry:!1});return{pending:e.isPending,status:e.data??hu}}function Wu(e){let t=new Date,n=new Date(e),r=t.getTime()-n.getTime(),i=Math.floor(r/(1e3*60*60)),a=Math.floor(r/(1e3*60));if(a<60)return`${a}m ago`;if(i<24)return`${i}h ago`;let o=Math.floor(i/24);return o===1?`1d ago`:`${o}
625d ago`}var Gu=/\s+(?:Reveals?|Talks?|Talked|Sits? Down With|Discusses|Discussed|Explains?|Explained|Says?|Said|Shares?|Shared|Reacts? To|Responds? To|Opens? Up|Breaks? (?:Down|Silence|His Silence|Her Silence)|Calls? Out|Confirms?|Slams?|Addresses?|Announces?|Recalls?|Remembers?|Defends?|Admits?|Denies?|Claims?)\s+/i;function Ku(e){let t=e.match(Gu);return!t||t.index===void 0||t.index<2?null:e.slice(0,t.index).trim()}var qu=()=>{let[e,t]=(0,z.useState)(()=>typeof window>`u`||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches);return(0,z.useEffect)(()=>{if(typeof window>`u`||!window.matchMedia)return;let e=window.matchMedia(`(prefers-reduced-motion: reduce)`),n=e=>t(e.matches);return e.addEventListener?(e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)):(e.addListener(n),()=>e.removeListener(n))},[]),e},Ju=e=>{let t=`(min-width: ${e}px)`,[n,r]=(0,z.useState)(()=>typeof window>`u`||!window.matchMedia?!1:window.matchMedia(t).matches);return(0,z.useEffect)(()=>{if(typeof window>`u`||!window.matchMedia)return;let e=window.matchMedia(t),n=()=>r(e.matches);return n(),e.addEventListener?(e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)):(e.addListener(n),()=>e.removeListener(n))},[t]),n},Yu=()=>Ju(768);function Xu(e){if(e==null||!Number.isFinite(e)||e<0)return null;if(e<1e3)return`${e} subscribers`;if(e<1e6){let t=e/1e3;return`${t>=100?Math.round(t):t.toFixed(1).replace(/\.0$/,``)}K subscribers`}if(e<1e9){let t=e/1e6;return`${t>=100?Math.round(t):t.toFixed(1).replace(/\.0$/,``)}M subscribers`}return`${(e/1e9).toFixed(1).replace(/\.0$/,``)}B subscribers`}var Zu=({featuredVideo:e,isLoading:t,onPlayClick:n})=>{let r=qu(),i=Yu(),{data:a}=x({queryKey:[`/api/youtube/channel-by-video`,e?.id],queryFn:()=>fetch(`/api/youtube/channel-by-video/${e.id}`).then(e=>e.ok?e.json():null),enabled:!!e?.id,staleTime:3600*1e3,gcTime:7200*1e3}),o=a?.channelTitle||`Rock Feed`,s=Xu(a?.subscriberCount??null),c=!r&&!!e?.id;return t?(0,W.jsx)(`div`,{className:`relative w-full min-h-[520px] md:min-h-[max(500px,70vh)] bg-gradient-to-b from-zinc-900 to-black`,children:(0,W.jsx)(`div`,{className:`w-full pt-8 md:pt-0`,style:{paddingTop:`clamp(60px, 10vh, 120px)`},children:(0,W.jsx)(`div`,{className:`max-w-[1400px] mx-auto px-6 md:px-12 w-full pb-16 md:pb-0`,children:(0,W.jsxs)(`div`,{className:`animate-pulse space-y-4 max-w-2xl`,children:[(0,W.jsx)(`div`,{className:`h-4 bg-white/10 rounded w-32`}),(0,W.jsx)(`div`,{className:`h-16 bg-white/10 rounded w-3/4`}),(0,W.jsx)(`div`,{className:`h-20 bg-white/10 rounded`}),(0,W.jsxs)(`div`,{className:`flex gap-4`,children:[(0,W.jsx)(`div`,{className:`h-12 bg-white/10 rounded w-36`}),(0,W.jsx)(`div`,{className:`h-12 bg-white/10 rounded w-36`})]})]})})})}):e?(0,W.jsxs)(W.Fragment,{children:[!i&&(0,W.jsxs)(`div`,{className:`rf-fade-in md:hidden bg-[#0a0a0a] flex flex-col items-center justify-start overflow-x-hidden`,children:[(0,W.jsx)(`div`,{className:`w-full px-4 pt-4 pb-2 z-10`,children:(0,W.jsxs)(`div`,{className:`relative w-full aspect-video rounded-2xl overflow-hidden shadow-[0_12px_40px_rgba(229,16,26,0.15)] bg-black border border-white/5`,children:[(0,W.jsx)(`div`,{className:`absolute -bottom-4 left-1/2 -translate-x-1/2 w-3/4 h-8 bg-[#e5101a]/30 blur-2xl z-0`,style:{animation:r?`none`:`tcSubtlePulse 4s ease-in-out infinite`}}),(0,W.jsxs)(T,{to:`/news/${e.id}`,className:`absolute inset-0 z-10 block rounded-2xl overflow-hidden group`,"aria-label":`Watch ${e.title}`,"data-testid":`link-home-hero-mobile-thumb`,children:[(0,W.jsx)(qc,{videoId:e.id,fallbackSrc:e.thumbnail,alt:e.title,priority:!0,className:`w-full h-full object-cover`}),(0,W.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-black/60 via-black/10 to-black/25`}),(0,W.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,W.jsx)(`span`,{className:`flex items-center justify-center w-11 h-11 rounded-full bg-white/15 backdrop-blur-md ring-1 ring-white/40 shadow-[0_4px_20px_rgba(0,0,0,0.45)] transition-transform group-active:scale-95`,children:(0,W.jsx)(hn,{className:`w-4 h-4 text-white translate-x-0.5 drop-shadow-[0_1px_2px_rgba(0,0,0,0.6)]`,fill:`currentColor`})})})]})]})}),(0,W.jsxs)(`div`,{className:`w-full px-5 pb-8 pt-4 flex flex-col z-20`,children:[(0,W.jsxs)(`div`,{className:`flex flex-nowrap items-center gap-2 self
625-start mb-3 max-w-full overflow-hidden`,children:[(0,W.jsx)(`span`,{className:`shrink-0 inline-block h-3.5 w-[3px] bg-[#e5101a] shadow-[0_0_10px_rgba(229,16,26,0.7)]`}),(0,W.jsxs)(`span`,{className:`whitespace-nowrap text-[10px] font-bold uppercase tracking-[0.22em] text-white/85 leading-none`,style:{fontFamily:`'Oswald', 'Anton', sans-serif`},"data-testid":`text-home-hero-mobile-chip`,children:[`Featured `,(0,W.jsx)(`span`,{className:`text-white/25 mx-0.5`,children:`/`}),` `,(0,W.jsx)(`span`,{className:`text-[#ff2a35]`,children:`New Episode`})]}),(0,W.jsxs)(`span`,{className:`shrink-0 relative flex items-center justify-center w-1.5 h-1.5`,children:[!r&&(0,W.jsx)(`span`,{className:`absolute inset-0 rounded-full bg-[#ff2a35]`,style:{animation:`tcPing 1.6s cubic-bezier(0,0,.2,1) infinite`}}),(0,W.jsx)(`span`,{className:`relative rounded-full bg-[#ff2a35] w-1.5 h-1.5`})]})]}),(0,W.jsx)(`h2`,{className:`text-[clamp(1.5rem,6.5vw,1.875rem)] font-black text-white leading-[1.12] tracking-tight mb-4 [text-wrap:balance] break-words`,style:{fontFamily:`'Montserrat', sans-serif`},"data-testid":`text-home-hero-mobile-title`,children:(()=>{let t=Ku(e.title);return t?e.title.split(t).map((e,n,r)=>(0,W.jsxs)(`span`,{children:[e,n<r.length-1&&(0,W.jsx)(`span`,{className:`text-[#ff2a35]`,children:t})]},n)):e.title})()}),(0,W.jsxs)(`div`,{className:`flex items-center gap-2 mb-4 flex-wrap`,children:[(0,W.jsxs)(`span`,{className:`flex items-center gap-1.5 text-[11px]`,children:[(0,W.jsx)(I,{className:`w-3.5 h-3.5 text-[#e5101a]`}),(0,W.jsx)(`span`,{className:`font-bold tracking-wide text-[#ff2a35] uppercase`,"data-testid":`text-home-hero-mobile-channel`,children:o})]}),(0,W.jsxs)(`span`,{className:`flex items-center gap-2 whitespace-nowrap`,children:[s&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{className:`text-[11px] text-white/50`,"data-testid":`text-home-hero-mobile-subscribers`,children:s}),(0,W.jsx)(`span`,{className:`text-white/20 text-[10px]`,children:`â¢`})]}),(0,W.jsx)(`span`,{className:`text-[11px] text-white/50`,children:Wu(e.publishedAt)})]})]}),(0,W.jsx)(T,{to:`/news/${e.id}`,className:`w-full flex items-center justify-center h-12 rounded-xl bg-gradient-to-b from-[#ff1f2c] to-[#b30d14] active:scale-[0.98] text-white font-bold uppercase tracking-[0.16em] text-[13px] transition-all shadow-[0_10px_28px_rgba(229,16,26,0.35)] border border-white/10 whitespace-nowrap`,"data-testid":`link-home-hero-mobile`,children:`Watch Full Episode`})]}),(0,W.jsx)(`style`,{children:` 626 @keyframes tcPing { 627 0% { transform: scale(0.6); opacity: 0.9; } 628 80% { transform: scale(2.4); opacity: 0; } 629 100% { transform: scale(2.4); opacity: 0; } 630 } 631 @keyframes tcSubtlePulse { 632 0%, 100% { opacity: 1; } 633 50% { opacity: 0.5; } 634 } 635 `})]}),i&&(0,W.jsxs)(`div`,{className:`rf-fade-in hidden md:block relative w-full overflow-hidden`,style:{minHeight:`max(560px, 76vh)`},children:[(0,W.jsxs)(`div`,{className:`absolute inset-0 overflow-hidden`,children:[(0,W.jsx)(`div`,{className:`absolute top-1/2 left-1/2`,style:{height:`103%`,aspectRatio:`16 / 9`,minWidth:`100%`,transform:`translate(-50%, -50%)`},children:c?(0,W.jsx)(`iframe`,{src:`https://www.youtube.com/embed/${e.id}?autoplay=1&mute=1&controls=0&loop=1&playlist=${e.id}&modestbranding=1&playsinline=1&rel=0`,title:e.title,allow:`autoplay; encrypted-media; picture-in-picture`,frameBorder:0,className:`w-full h-full pointer-events-none`}):(0,W.jsx)(qc,{videoId:e.id,fallbackSrc:e.thumbnail,alt:e.title,priority:!0,className:`w-full h-full object-cover`})}),(0,W.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent`}),(0,W.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-r from-black/70 via-transparent to-black/20`})]}),(0,W.jsx)(`div`,{className:`absolute left-0 top-0 h-full z-[15] pointer-events-none`,style:{width:`48px`,opacity:.88,maskImage:`linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%)`,WebkitMaskImage:`linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%)`},children:(0,W.jsxs)(`svg`,{width:`48`,height:`100%`,xmlns:`http://www.w3.org/2000/svg`,style:{display:`block`,position:`relative`,zIndex:1},children:[(0,W.jsxs)(`defs`,{children:[(0,W.jsxs)(`linearGradient`,{id:`tl_vert`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,W.jsx)(`stop`,{offset:`0%`,stopColor:`#181818`}),(0,W.jsx)(`stop`,{offset:`20%`,stopColor:`#686868`}),(0,W.jsx)(`stop`,{offset:`46%`,stopColor:`#c2c2c2`}),(0,W.jsx)(`stop`,{offset:`66%`,stopColor:`#7e7e7e`}),(0,W.jsx)(`stop`,{offset:`100%`,stopColor:`#202020`})]}),(0,W.jsxs)(`linearGradient`,{id:`tl_horz`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,W.jsx)(`stop`,{offset:`0%`,stopColor:`#141414`}),(0,W.jsx)(`stop`,{offset:`32%`,stopColor:`#9a9a9a`}),(0,W.jsx)(`stop`,{offset:`58%`,stopColor:`#bebebe`}),(0,W.jsx)(`stop`,{offset:`82%`,stopColor:`#707070`}),(0,W.jsx)(`stop`,{offset:`100%`,stopColor:`#222222`})]}),(0,W.jsxs)(`radialGradient`,{id:`tl_bolt`,cx:`38%`,cy:`35%`,children:[(0,W.jsx)(`stop`,{offset:`0%`,stopColor:`#ececec`}),(0,W.jsx)(`stop`,{offset:`42%`,stopColor:`#8a8a8a`}),(0,W.jsx)(`stop`,{offset:`100%`,stopColor:`#2e2e2e`})]}),(0,W.jsxs)(`linearGradient`,{id:`tl_tint`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,W.jsx)(`stop`,{offset:`0%`,stopColor:`#e5101a`,stopOpacity:`0`}
635),(0,W.jsx)(`stop`,{offset:`52%`,stopColor:`#e5101a`,stopOpacity:`0.07`}),(0,W.jsx)(`stop`,{offset:`100%`,stopColor:`#e5101a`,stopOpacity:`0.22`})]}),(0,W.jsxs)(`pattern`,{id:`tl_pat`,x:`0`,y:`0`,width:`48`,height:`72`,patternUnits:`userSpaceOnUse`,children:[(0,W.jsx)(`rect`,{x:`12`,y:`0`,width:`3`,height:`72`,fill:`#282828`,opacity:`0.95`}),(0,W.jsx)(`rect`,{x:`33`,y:`0`,width:`3`,height:`72`,fill:`#282828`,opacity:`0.95`}),(0,W.jsx)(`rect`,{x:`12`,y:`0`,width:`21`,height:`2`,fill:`#222`,opacity:`0.85`}),(0,W.jsx)(`rect`,{x:`12`,y:`70`,width:`21`,height:`2`,fill:`#222`,opacity:`0.85`}),(0,W.jsx)(`line`,{x1:`12`,y1:`0`,x2:`36`,y2:`72`,stroke:`#262626`,strokeWidth:`1.5`,opacity:`0.65`}),(0,W.jsx)(`line`,{x1:`36`,y1:`0`,x2:`12`,y2:`72`,stroke:`#262626`,strokeWidth:`1.5`,opacity:`0.65`}),(0,W.jsx)(`line`,{x1:`8`,y1:`0`,x2:`12`,y2:`5`,stroke:`#484848`,strokeWidth:`1.5`}),(0,W.jsx)(`line`,{x1:`40`,y1:`0`,x2:`36`,y2:`5`,stroke:`#484848`,strokeWidth:`1.5`}),(0,W.jsx)(`line`,{x1:`8`,y1:`72`,x2:`12`,y2:`67`,stroke:`#484848`,strokeWidth:`1.5`}),(0,W.jsx)(`line`,{x1:`40`,y1:`72`,x2:`36`,y2:`67`,stroke:`#484848`,strokeWidth:`1.5`}),(0,W.jsx)(`line`,{x1:`8`,y1:`0`,x2:`40`,y2:`72`,stroke:`#606060`,strokeWidth:`2`,strokeLinecap:`round`}),(0,W.jsx)(`line`,{x1:`40`,y1:`0`,x2:`8`,y2:`72`,stroke:`#606060`,strokeWidth:`2`,strokeLinecap:`round`}),(0,W.jsx)(`rect`,{x:`5`,y:`-3`,width:`38`,height:`6`,fill:`url(#tl_horz)`}),(0,W.jsx)(`rect`,{x:`5`,y:`69`,width:`38`,height:`6`,fill:`url(#tl_horz)`}),(0,W.jsx)(`rect`,{x:`5`,y:`0`,width:`6`,height:`72`,fill:`url(#tl_vert)`}),(0,W.jsx)(`rect`,{x:`37`,y:`0`,width:`6`,height:`72`,fill:`url(#tl_vert)`}),(0,W.jsx)(`circle`,{cx:`8`,cy:`0`,r:`4.5`,fill:`url(#tl_bolt)`}),(0,W.jsx)(`circle`,{cx:`40`,cy:`0`,r:`4.5`,fill:`url(#tl_bolt)`}),(0,W.jsx)(`circle`,{cx:`8`,cy:`72`,r:`4.5`,fill:`url(#tl_bolt)`}),(0,W.jsx)(`circle`,{cx:`40`,cy:`72`,r:`4.5`,fill:`url(#tl_bolt)`}),(0,W.jsx)(`circle`,{cx:`24`,cy:`36`,r:`3.5`,fill:`url(#tl_bolt)`}),(0,W.jsx)(`rect`,{x:`0`,y:`0`,width:`48`,height:`72`,fill:`url(#tl_tint)`})]})]}),(0,W.jsx)(`rect`,{width:`48`,height:`100%`,fill:`url(#tl_pat)`})]})}),(0,W.jsx)(`div`,{className:`absolute right-0 top-0 h-full z-[15] pointer-events-none`,style:{width:`48px`,opacity:.88,transform:`scaleX(-1)`,maskImage:`linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%)`,WebkitMaskImage:`linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%)`},children:(0,W.jsxs)(`svg`,{width:`48`,height:`100%`,xmlns:`http://www.w3.org/2000/svg`,style:{display:`block`,position:`relative`,zIndex:1},children:[(0,W.jsxs)(`defs`,{children:[(0,W.jsxs)(`linearGradient`,{id:`tr_vert`,x1:`0`,y1:`0`,x2:`1`,y2:`0`,children:[(0,W.jsx)(`stop`,{offset:`0%`,stopColor:`#181818`}),(0,W.jsx)(`stop`,{offset:`20%`,stopColor:`#686868`}),(0,W.jsx)(`stop`,{offset:`46%`,stopColor:`#c2c2c2`}),(0,W.jsx)(`stop`,{offset:`66%`,stopColor:`#7e7e7e`}),(0,W.jsx)(`stop`,{offset:`100%`,stopColor:`#202020`})]}),(0,W.jsxs)(`linearGradient`,{id:`tr_horz`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,W.jsx)(`stop`,{offset:`0%`,stopColor:`#141414`}),(0,W.jsx)(`stop`,{offset:`32%`,stopColor:`#9a9a9a`}),(0,W.jsx)(`stop`,{offset:`58%`,stopColor:`#bebebe`}),(0,W.jsx)(`stop`,{offset:`82%`,stopColor:`#707070`}),(0,W.jsx)(`stop`,{offset:`100%`,stopColor:`#222222`})]}),(0,W.jsxs)(`radialGradient`,{id:`tr_bolt`,cx:`38%`,cy:`35%`,children:[(0,W.jsx)(`stop`,{offset:`0%`,stopColor:`#ececec`}),(0,W.jsx)(`stop`,{offset:`42%`,stopColor:`#8a8a8a`}),(0,W.jsx)(`stop`,{offset:`100%`,stopColor:`#2e2e2e`})]}),(0,W.jsxs)(`linearGradient`,{id:`tr_tint`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,W.jsx)(`stop`,{offset:`0%`,stopColor:`#e5101a`,stopOpacity:`0`}),(0,W.jsx)(`stop`,{offset:`52%`,stopColor:`#e5101a`,stopOpacity:`0.07`}),(0,W.jsx)(`stop`,{offset:`100%`,stopColor:`#e5101a`,stopOpacity:`0.22`})]}),(0,W.jsxs)(`pattern`,{id:`tr_pat`,x:`0`,y:`0`,width:`48`,height:`72`,patternUnits:`userSpaceOnUse`,children:[(0,W.jsx)(`rect`,{x:`12`,y:`0`,width:`3`,height:`72`,fill:`#282828`,opacity:`0.95`}),(0,W.jsx)(`rect`,{x:`33`,y:`0`,width:`3`,height:`72`,fill:`#282828`,opacity:`0.95`}
635),(0,W.jsx)(`rect`,{x:`12`,y:`0`,width:`21`,height:`2`,fill:`#222`,opacity:`0.85`}),(0,W.jsx)(`rect`,{x:`12`,y:`70`,width:`21`,height:`2`,fill:`#222`,opacity:`0.85`}),(0,W.jsx)(`line`,{x1:`12`,y1:`0`,x2:`36`,y2:`72`,stroke:`#262626`,strokeWidth:`1.5`,opacity:`0.65`}),(0,W.jsx)(`line`,{x1:`36`,y1:`0`,x2:`12`,y2:`72`,stroke:`#262626`,strokeWidth:`1.5`,opacity:`0.65`}),(0,W.jsx)(`line`,{x1:`8`,y1:`0`,x2:`12`,y2:`5`,stroke:`#484848`,strokeWidth:`1.5`}),(0,W.jsx)(`line`,{x1:`40`,y1:`0`,x2:`36`,y2:`5`,stroke:`#484848`,strokeWidth:`1.5`}),(0,W.jsx)(`line`,{x1:`8`,y1:`72`,x2:`12`,y2:`67`,stroke:`#484848`,strokeWidth:`1.5`}),(0,W.jsx)(`line`,{x1:`40`,y1:`72`,x2:`36`,y2:`67`,stroke:`#484848`,strokeWidth:`1.5`}),(0,W.jsx)(`line`,{x1:`8`,y1:`0`,x2:`40`,y2:`72`,stroke:`#606060`,strokeWidth:`2`,strokeLinecap:`round`}),(0,W.jsx)(`line`,{x1:`40`,y1:`0`,x2:`8`,y2:`72`,stroke:`#606060`,strokeWidth:`2`,strokeLinecap:`round`}),(0,W.jsx)(`rect`,{x:`5`,y:`-3`,width:`38`,height:`6`,fill:`url(#tr_horz)`}),(0,W.jsx)(`rect`,{x:`5`,y:`69`,width:`38`,height:`6`,fill:`url(#tr_horz)`}),(0,W.jsx)(`rect`,{x:`5`,y:`0`,width:`6`,height:`72`,fill:`url(#tr_vert)`}),(0,W.jsx)(`rect`,{x:`37`,y:`0`,width:`6`,height:`72`,fill:`url(#tr_vert)`}),(0,W.jsx)(`circle`,{cx:`8`,cy:`0`,r:`4.5`,fill:`url(#tr_bolt)`}),(0,W.jsx)(`circle`,{cx:`40`,cy:`0`,r:`4.5`,fill:`url(#tr_bolt)`}),(0,W.jsx)(`circle`,{cx:`8`,cy:`72`,r:`4.5`,fill:`url(#tr_bolt)`}),(0,W.jsx)(`circle`,{cx:`40`,cy:`72`,r:`4.5`,fill:`url(#tr_bolt)`}),(0,W.jsx)(`circle`,{cx:`24`,cy:`36`,r:`3.5`,fill:`url(#tr_bolt)`}),(0,W.jsx)(`rect`,{x:`0`,y:`0`,width:`48`,height:`72`,fill:`url(#tr_tint)`})]})]}),(0,W.jsx)(`rect`,{width:`48`,height:`100%`,fill:`url(#tr_pat)`})]})}),(0,W.jsx)(`div`,{className:`absolute left-0 top-0 h-full pointer-events-none z-[8]`,style:{width:`240px`,background:`radial-gradient(ellipse 100% 72% at 0% 100%, rgba(229,16,26,0.52) 0%, rgba(229,16,26,0.22) 32%, rgba(229,16,26,0.07) 58%, transparent 80%)`,animation:`trussGlow 5s ease-in-out infinite alternate`,maskImage:`linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%)`,WebkitMaskImage:`linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%)`}}),(0,W.jsx)(`div`,{className:`absolute right-0 top-0 h-full pointer-events-none z-[8]`,style:{width:`240px`,background:`radial-gradient(ellipse 100% 72% at 100% 100%, rgba(229,16,26,0.52) 0%, rgba(229,16,26,0.22) 32%, rgba(229,16,26,0.07) 58%, transparent 80%)`,animation:`trussGlow 5s ease-in-out -2.5s infinite alternate`,maskImage:`linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%)`,WebkitMaskImage:`linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%)`}}),(0,W.jsxs)(`div`,{className:`absolute z-[20] top-7 left-20 hidden md:flex items-center gap-2.5`,children:[(0,W.jsx)(`span`,{className:`inline-block h-4 w-[3px] bg-[#e5101a] shadow-[0_0_12px_rgba(229,16,26,0.8)]`}),(0,W.jsx)(`span`,{className:`text-[11px] font-bold uppercase tracking-[0.35em] text-white/90 leading-none drop-shadow-[0_2px_8px_rgba(0,0,0,0.9)]`,style:{fontFamily:`'Oswald', 'Anton', sans-serif`},children:`New Episode`}),(0,W.jsxs)(`span`,{className:`relative flex items-center justify-center`,style:{width:6,height:6},children:[!r&&(0,W.jsx)(`span`,{className:`absolute inset-0 rounded-full bg-[#ff2a35]`,style:{animation:`tcping 1.6s cubic-bezier(0,0,.2,1) infinite`}}),(0,W.jsx)(`span`,{className:`relative rounded-full bg-[#ff2a35]`,style:{width:5,height:5}})]})]}),(0,W.jsx)(`div`,{className:`absolute z-[20] bottom-5 left-0 right-0`,style:{paddingLeft:`max(64px, 5vw)`,paddingRight:`max(64px, 5vw)`},children:(0,W.jsx)(`div`,{className:`max-w-[1400px] mx-auto md:flex md:justify-center`,children:(0,W.jsxs)(`div`,{className:`inline-flex items-center gap-5 max-w-[1020px] rounded-xl px-6 py-3 backdrop-blur-md`,style:{background:`linear-gradient(135deg, rgba(15,15,15,0.82), rgba(8,8,8,0.62))`,border:`1px solid rgba(255,255,255,0.09)`,boxShadow:`0 30px 70px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05)`},children:[(0,W.jsxs)(`div`,{className:`min-w-0`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-2.5 mb-1.5 flex-wrap`,children:[(0,W.jsx)(`span`,{className:`px-2 py-0.5 bg-[#e5101a] text-white text-[10px] font-black tracking-[0.18em] uppercase rounded`,children:`FEATURED`}),(0,W.jsxs)(`span`,{className:`flex items-center gap-1.5 text-xs`,children:[(0,W.jsx)(I,{className:`w-3.5 h-3.5 text-[#e5101a]`}),(0,W.jsx)(`span`,{className:`font-black tracking-wide text-[#ff2a35] uppercase text-[11px]`,"data-testid":`text-hero-channel-title`,children:o})]}),s&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{className:`text-xs text-white/55`,"data-testid":`text-hero-channel-subscribers`,children:s}),(0,W.jsx)(`span`,{className:`text-white/30`,children:`â¢`})]}),(0,W.jsx)(`span`,{className:`text-xs text-white/55`,children:Wu(e.publishedAt)})]}),(0,W.jsx)(`h2`,{className:`text-2xl xl:text-[1.85rem] font-black text-white leading-[1.08] tracking-tight drop-shadow-2xl`,style:{fontFamily:`'Montserrat', sans-serif`},children:(()=>{let t=Ku(e.title);return t?e.title.split(t).map((e,n,r)=>(0,W.jsxs)(`span`,{children:[e,n<r.length-1&&(0,W.jsx)(`span`,{className:`text-[#ff2a35]`,children:t})]},n)):e.title})()})]}),(0,W.jsx)(`div`,{className:`shrink-0 flex items-center gap-3`,children:(0,W.jsxs)(T,{to:`/news/${e.id}`,className:`group inline-flex items-center gap-2.5 pl-4 pr-5 py-2.5 rounded-lg bg-[#e5101a] hover:bg-[#c40f17] text-white font-bold text-sm transition-all shadow-[0_14px_30px_rgba(229,16,26,0.45)] whitespace-nowrap`,"data-testid":`button-billboard-play`,children:[(0,W.jsx)(hn,{className:`w-4 h-4 transition-transform group-hover:scale-110`,fill:`currentColor`}),`Watch Full Episode`]})})]})})}),(0,W.jsx)(`div`,{className:`absolute bottom-0 left-0 right-0 h-32 bg-gradient-to-t from-[#0a0a0a] to-transparent pointer-events-none`}),(0,W.jsx)(`style`,{children:` 636 @keyframes tcping { 637 0% { transform: scale(0.6); opacity: 0.9; } 638 80% { transform: scale(2.4); opacity: 0; } 639 100% { transform: scale(2.4); opacity: 0; } 640 } 641 `})]})]}):null},Qu=({item:e,index:t,showRank:n=!1,hideTimeAgo:r=!1})=>(0,W.jsx)(T,{to:`/interviews/${e.id}`,className:`block`,"data-testid":`card-mobile-${e.id}`,children:(0,W.jsxs)(`div`,{className:`group cursor-pointer`,children:[(0,W.jsxs)(`div`,{className:`relative aspect-video rounded-lg overflow-hidden bg-white/5 ring-1 ring-white/10 shadow-[0_10px_32px_rgba(229,16,26,0.14)]`,children:[(0,W.jsx)(qc,{videoId:e.id,fallbackSrc:e.thumbnail,alt:e.title,size:`card`,sizes:`(max-width: 768px) 100vw, 320px`,className:`w-full h-full object-cover`,loading:`lazy`}),(0,W.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,W.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-black/60 flex items-center justify-center`,children:(0,W.jsx)(hn,{className:`w-3 h-3 text-white ml-0.5`,fill:`currentColor`})})}),n&&typeof t==`number`&&(0,W.jsx)(`div`,{className:`absolute top-1 left-1 w-5 h-5 rounded bg-[#e5101a] flex items-center justify-center`,children:(0,W.jsx)(`span`,{className:`text-[10px] font-bold text-white`,children:t+1})}),new Date(e.publishedAt).getTime()>Date.now()-1440*60*1e3&&(0,W.jsx)(`div`,{className:`absolute top-1 right-1 px-1.5 py-0.5 bg-[#e5101a] text-white text-[8px] font-bold uppercase rounded`,children:`NEW`})]}),(0,W.jsxs)(`div`,{className:`mt-2`,children:[(0,W.jsx)(`h3`,{className:`text-sm font-semibold text-white line-clamp-2 leading-snug`,children:e.title}),!r&&(0,W.jsx)(`p`,{className:`text-[10px] text-white/40 mt-0.5`,children:Wu(e.publishedAt)})]})]})}),$u=({item:e,index:t,showRank:n=!1,hideTimeAgo:r=!1})=>{let i=(0,W.jsxs)(`div`,{className:`group relative flex-shrink-0 w-[180px] md:w-[320px] snap-start cursor-pointer transition-all duration-300 hover:scale-105 hover:z-10`,children:[(0,W.jsxs)(`div`,{className:`relative aspect-video rounded-lg overflow-hidden shadow-xl`,children:[(0,W.jsx)(qc,{videoId:e.id,fallbackSrc:e.thumbnail,alt:e.title,size:`card`,sizes:`(max-width: 768px) 180px, 320px`,className:`w-full h-full object-cover transition-transform duration-500`,loading:`lazy`}),(0,W.jsx)(`div`,{className:`absolute inset-0 bg-black/0 group-hover:bg-black/40 transition-all duration-300`}),(0,W.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-all duration-300`,children:(0,W.jsx)(`div`,{className:`w-10 h-10 md:w-14 md:h-14 roun
641ded-full bg-white/95 flex items-center justify-center shadow-2xl transform scale-75 group-hover:scale-100 transition-transform duration-300`,children:(0,W.jsx)(hn,{className:`w-4 h-4 md:w-6 md:h-6 text-black ml-0.5`,fill:`currentColor`})})}),(0,W.jsx)(`div`,{className:`absolute bottom-1.5 right-1.5 md:bottom-2 md:right-2 px-1.5 md:px-2 py-0.5 bg-black/80 backdrop-blur-sm rounded text-[9px] md:text-[11px] font-medium text-white`,children:`12:45`}),n&&typeof t==`number`&&(0,W.jsx)(`div`,{className:`absolute -left-2 bottom-0 text-[80px] font-black text-white/20 leading-none`,style:{fontFamily:`'Anton', sans-serif`},children:t+1}),new Date(e.publishedAt).getTime()>Date.now()-1440*60*1e3&&(0,W.jsx)(`div`,{className:`absolute top-2 left-2 px-2 py-0.5 bg-[#e5101a] text-white text-[10px] font-bold tracking-wider uppercase rounded`,children:`NEW`})]}),(0,W.jsxs)(`div`,{className:`mt-2 md:mt-3 space-y-0.5 md:space-y-1`,children:[(0,W.jsx)(`h3`,{className:`text-xs md:text-sm font-semibold text-white line-clamp-2 group-hover:text-white/90 transition-colors leading-snug`,children:e.title}),!r&&(0,W.jsx)(`p`,{className:`text-[10px] md:text-xs text-white/50`,children:Wu(e.publishedAt)})]})]});return(0,W.jsx)(T,{to:`/interviews/${e.id}`,className:`block`,"data-testid":`card-episode-${e.id}`,children:i})},ed=({title:e,subtitle:t,videos:n,href:r,isLoading:i=!1,showRank:a=!1,hideTimeAgo:o=!1})=>{let s=(0,z.useRef)(null),[c,l]=(0,z.useState)(!1),[u,d]=(0,z.useState)(!1),f=(0,z.useCallback)(()=>{if(s.current){let{scrollLeft:e,scrollWidth:t,clientWidth:n}=s.current;l(e>10),d(e<t-n-10)}},[]);(0,z.useEffect)(()=>{let e=setTimeout(f,100);return()=>clearTimeout(e)},[n,i,f]);let p=e=>{if(s.current){let t=s.current.clientWidth*.8;s.current.scrollBy({left:e===`left`?-t:t,behavior:`smooth`})}};return!i&&n.length===0?null:(0,W.jsx)(`section`,{className:`relative group/rail py-2 px-4 md:px-12`,children:(0,W.jsxs)(`div`,{className:`max-w-[1400px] mx-auto`,children:[(0,W.jsx)(`div`,{className:`flex items-center justify-between mb-3 md:mb-4`,children:(0,W.jsxs)(`div`,{className:`flex flex-col`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,W.jsx)(`h2`,{className:`text-lg md:text-2xl font-bold text-white`,children:e}),r&&(r.startsWith(`http`)?(0,W.jsxs)(`a`,{href:r,target:`_blank`,rel:`noopener noreferrer`,className:`md:opacity-0 md:group-hover/rail:opacity-100 transition-opacity flex items-center gap-1 text-xs md:text-sm text-red-500 hover:text-red-400`,children:[`See All `,(0,W.jsx)(un,{className:`w-3 h-3 md:w-4 md:h-4`})]}):(0,W.jsxs)(T,{to:r,className:`md:opacity-0 md:group-hover/rail:opacity-100 transition-opacity flex items-center gap-1 text-xs md:text-sm text-red-500 hover:text-red-400`,children:[`See All `,(0,W.jsx)(un,{className:`w-3 h-3 md:w-4 md:h-4`})]}))]}),t&&(0,W.jsx)(`p`,{className:`text-xs md:text-sm text-white/50 mt-0.5`,children:t})]})}),(0,W.jsx)(`div`,{className:`md:hidden`,children:i?(0,W.jsx)(`div`,{className:`flex flex-col gap-5`,children:Array.from({length:4}).map((e,t)=>(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`div`,{className:`aspect-video bg-white/5 rounded-lg animate-pulse`}),(0,W.jsxs)(`div`,{className:`mt-2 space-y-1.5`,children:[(0,W.jsx)(`div`,{className:`h-3 bg-white/5 rounded w-3/4`}),(0,W.jsx)(`div`,{className:`h-2 bg-white/5 rounded w-1/2`})]})]},t))}):(0,W.jsx)(`div`,{className:`rf-fade-in flex flex-col gap-5`,children:n.slice(0,4).map((e,t)=>(0,W.jsx)(Qu,{item:e,index:t,showRank:a,hideTimeAgo:o},e.id))})}),(0,W.jsxs)(`div`,{className:`hidden md:block relative`,children:[c&&(0,W.jsx)(`button`,{onClick:()=>p(`left`),className:`absolute left-0 top-0 bottom-12 z-20 w-16 bg-gradient-to-r from-[#0a0a0a] via-black/80 to-transparent flex items-center justify-start pl-2 opacity-0 group-hover/rail:opacity-100 transition-opacity`,"data-testid":`button-scroll-left`,children:(0,W.jsx)(ln,{className:`w-8 h-8 text-white`})}),u&&(0,W.jsx)(`button`,{onClick:()=>p(`right`),className:`absolute right-0 top-0 bottom-12 z-20 w-16 bg-gradient-to-l from-[#0a0a0a] via-black/80 to-transparent flex items-center justify-end pr-2 opacity-0 group-hover/rail:opacity-100 transition-opacity`,"data-testid":`button-scroll-right`,children:(0,W.jsx)(un,{className:`w-8 h-8 text-white`})}),(0,W.jsx)(`div`,{ref:s,onScroll:f,className:`flex gap-3 overflow-x-auto scrollbar-hide pb-4 scroll-smooth ${i?``:`rf-fade-in`}`,style:{scrollbarWidth:`none`,msOverflowStyle:`none`},children:i?Array.from({length:6}).map((e,t)=>(0,W.jsxs)(`div`,{className:`flex-shrink-0 w-[320px]`,children:[(0,W.jsx)(`div`,{className:`aspect-video bg-white/5 rounded-lg animate-pulse`}),(0,W.jsxs)(`div`,{className:`mt-3 space-y-2`,children:[(0,W.jsx)(`div`,{className:`h-4 bg-white/5 rounded w-3/4`}),(0,W.jsx)(`div`,{className:`h-3 bg-white/5 rounded w-1/2`})]})]},t)):n.map((e,t)=>(0,W.jsx)($u,{item:e,index:t,showRank:a,hideTimeAgo:o},e.id))})]})]})})},td={fontFamily:`'Oswald', 'Anton', sans-serif`},nd=1440*60*1e3,rd=e=>new Date(e).getTime()>Date.now()-nd,id=`focus:outline-none focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-4 focus-visible:ring-offset-[#0a0a0a]`,ad=({video:e,lead:t=!1})=>(0,W.jsxs)(`div`,{className:`relative aspect-video overflow-hidden bg-black`,children:[(0,W.jsx)(qc,{videoId:e.id,fallbackSrc:e.thumbnail,alt:``,size:t?`hero`:`list`,className:`w-full h-full object-contain saturate-[.85]`,loading:`lazy`}),(0,W.jsx)(`div`,{"aria-hidden":`true`,className:`absolute inset-0 bg-black/20 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.08)] transition-colors duration-300 group-hover:bg-black/5 motion-reduce:transition-none`})]}),od=({publishedAt:e,lead:t=!1})=>(0,W.jsxs)(`p`,{className:`flex items-center gap-2 font-bold uppercase leading-none ${t?`text-[11px] tracking-[0.28em]`:`text-[10px] tracking-[0.22em]`}`,style:td,children:[t&&(0,W.jsx)(`span`,{"aria-hidden":`true`,className:`inline-block h-3 w-[3px] shrink-0 bg-[#e5101a] shadow-[0_0_10px_rgba(229,16,26,0.6)]`}),rd(e)&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`span`,{className:`text-[#ff2a35]`,children:`New`}),(0,W.jsx)(`span`,{"aria-hidden":`true`,className:`text-white/25`,children:`/`})]}),(0,W.jsx)(`time`,{dateTime:e,className:`text-white/50`,children:Wu(e)})]}),sd=({video:e,headlineClassName:t})=>(0,W.jsxs)(T,{to:`/news/${e.id}`,className:`group block rounded-sm ${id}`,"data-testid":`link-report-1`,children:[(0,W.jsx)(ad,{video:e,lead:!0}),(0,W.jsxs)(`div`,{className:`mt-4 lg:mt-5`,children:[(0,W.jsx)(od,{publishedAt:e.publishedAt,lead:!0}),(0,W.jsx)(`h3`,{className:`mt-2.5 font-bold text-white group-hover:text-red-400 transition-colors motion-reduce:transition-none [text-wrap:balance] break-words ${t}`,style:td,children:e.title})]})]}),cd=({video:e,index:t,thumbClassName:n,className:r=``})=>(0,W.jsx)(`li`,{className:`flex py-4 ${r}`,children:(0,W.jsxs)(T,{to:`/news/${e.id}
641`,className:`group flex flex-1 items-center gap-4 rounded-sm ${id}`,"data-testid":`link-report-${t}`,children:[(0,W.jsx)(`div`,{className:`shrink-0 ${n}`,children:(0,W.jsx)(ad,{video:e})}),(0,W.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,W.jsx)(od,{publishedAt:e.publishedAt}),(0,W.jsx)(`h3`,{className:`mt-1.5 text-[17px] font-semibold leading-snug text-white/90 group-hover:text-red-400 transition-colors motion-reduce:transition-none line-clamp-3 break-words`,style:td,children:e.title})]})]})}),ld=`w-32 xl:w-40`,ud=({lead:e,rest:t})=>(0,W.jsxs)(`div`,{className:`rf-fade-in grid grid-cols-12 gap-x-10`,children:[(0,W.jsx)(`div`,{className:`col-span-7`,children:(0,W.jsx)(sd,{video:e,headlineClassName:`text-[2rem] xl:text-[2.375rem] leading-[1.06]`})}),(0,W.jsx)(`ul`,{className:`col-span-5 flex flex-col divide-y divide-white/10 border-l border-white/10 pl-8`,children:t.map((e,t)=>(0,W.jsx)(cd,{video:e,index:t+2,thumbClassName:ld,className:`flex-1 first:pt-0 last:pb-0`},e.id))})]}),dd=()=>(0,W.jsxs)(`div`,{className:`rf-skeleton-pulse grid grid-cols-12 gap-x-10`,"aria-hidden":`true`,children:[(0,W.jsxs)(`div`,{className:`col-span-7`,children:[(0,W.jsx)(`div`,{className:`aspect-video bg-white/5`}),(0,W.jsx)(`div`,{className:`mt-5 h-3 w-24 rounded bg-white/10`}),(0,W.jsx)(`div`,{className:`mt-3 h-8 w-11/12 rounded bg-white/10`}),(0,W.jsx)(`div`,{className:`mt-2 h-8 w-2/3 rounded bg-white/10`})]}),(0,W.jsx)(`div`,{className:`col-span-5 flex flex-col divide-y divide-white/10 border-l border-white/10 pl-8`,children:Array.from({length:5}).map((e,t)=>(0,W.jsxs)(`div`,{className:`flex flex-1 items-center gap-4 py-4 first:pt-0 last:pb-0`,children:[(0,W.jsx)(`div`,{className:`shrink-0 aspect-video bg-white/5 ${ld}`}),(0,W.jsxs)(`div`,{className:`flex-1 space-y-2`,children:[(0,W.jsx)(`div`,{className:`h-2.5 w-16 rounded bg-white/10`}),(0,W.jsx)(`div`,{className:`h-4 w-full rounded bg-white/10`}),(0,W.jsx)(`div`,{className:`h-4 w-3/4 rounded bg-white/10`})]})]},t))})]}),fd=`w-28 sm:w-36 md:w-40`,pd=({lead:e,rest:t})=>(0,W.jsxs)(`div`,{className:`rf-fade-in`,children:[(0,W.jsx)(sd,{video:e,headlineClassName:`text-2xl sm:text-3xl md:text-[2.125rem] leading-[1.1]`}),(0,W.jsx)(`ul`,{className:`mt-6 border-t border-white/10 divide-y divide-white/10`,children:t.map((e,t)=>(0,W.jsx)(cd,{video:e,index:t+2,thumbClassName:fd},e.id))})]}),md=()=>(0,W.jsxs)(`div`,{className:`rf-skeleton-pulse`,"aria-hidden":`true`,children:[(0,W.jsx)(`div`,{className:`aspect-video bg-white/5`}),(0,W.jsx)(`div`,{className:`mt-4 h-3 w-20 rounded bg-white/10`}),(0,W.jsx)(`div`,{className:`mt-3 h-7 w-full rounded bg-white/10`}),(0,W.jsx)(`div`,{className:`mt-2 h-7 w-3/4 rounded bg-white/10`}),(0,W.jsx)(`div`,{className:`mt-6 border-t border-white/10 divide-y divide-white/10`,children:Array.from({length:5}).map((e,t)=>(0,W.jsxs)(`div`,{className:`flex items-center gap-4 py-4`,children:[(0,W.jsx)(`div`,{className:`shrink-0 aspect-video bg-white/5 ${fd}`}),(0,W.jsxs)(`div`,{className:`flex-1 space-y-2`,children:[(0,W.jsx)(`div`,{className:`h-2.5 w-14 rounded bg-white/10`}),(0,W.jsx)(`div`,{className:`h-4 w-full rounded bg-white/10`}),(0,W.jsx)(`div`,{className:`h-4 w-2/3 rounded bg-white/10`})]})]},t))})]}),hd=`h-[52px] text-[22px] leading-[26px]`,gd=({video:e,index:t})=>(0,W.jsx)(`li`,{className:`py-5 first:pt-0 last:pb-0`,children:(0,W.jsxs)(T,{to:`/news/${e.id}`,className:`group block rounded-sm ${id}`,"data-testid":`link-report-${t}`,children:[(0,W.jsx)(ad,{video:e,lead:!0}),(0,W.jsxs)(`div`,{className:`mt-3`,children:[(0,W.jsx)(od,{publishedAt:e.publishedAt,lead:t===1}),(0,W.jsx)(`h3`,{className:`mt-2 font-semibold text-white group-hover:text-red-400 transition-colors motion-reduce:transition-none line-clamp-2 break-words ${hd}`,style:td,children:e.title})]})]})}),_d=({reports:e})=>(0,W.jsx)(`ul`,{className:`rf-fade-in divide-y divide-white/10`,"data-testid":`list-reports-phone`,children:e.map((e,t)=>(0,W.jsx)(gd,{video:e,index:t+1},e.id))}),vd=()=>(0,W.jsx)(`div`,{className:`rf-skeleton-pulse divide-y divide-white/10`,"aria-hidden":`true`,"data-testid":`skeleton-reports-phone`,children:Array.from({length:6}).map((e,t)=>(0,W.jsxs)(`div`,{className:`py-5 first:pt-0 last:pb-0`,children:[(0,W.jsx)(`div`,{className:`aspect-video bg-white/5`}),(0,W.jsx)(`div`,{className:`mt-3 w-16 rounded bg-white/10 ${t===0?`h-3`:`h-2.5`}`}),(0,W.jsxs)(`div`,{className:`mt-2 space-y-2 ${hd}`,children:[(0,W.jsx)(`div`,{className:`h-[18px] w-full rounded bg-white/10`}),(0,W.jsx)(`div`,{className:`h-[18px] w-3/4 rounded bg-white/10`})]})]},t))}),yd=({videos:e,isLoading:t=!1})=>{let n=Ju(1024),r=Yu(),i=e.slice(0,6);if(!t&&i.length===0)return null;let[a,...o]=i;return(0,W.jsx)(`section`,{className:`px-4 md:px-12 py-6`,"data-testid":`section-latest-reports`,children:(0,W.jsxs)(`div`,{className:`max-w-[1400px] mx-auto`,children:[(0,W.jsxs)(`div`,{className:`mb-6 md:mb-8 flex items-center justify-between gap-4 border-b border-white/10 pb-4`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-3 min-w-0`,children:[(0,W.jsx)(`span`,{"aria-hidden":`true`,className:`inline-block h-6 md:h-7 w-[3px] shrink-0 bg-[#e5101a] shadow-[0_0_12px_rgba(229,16,26,0.7)]`}),(0,W.jsx)(`h2`,{className:`text-2xl md:text-3xl font-bold text-white uppercase tracking-wide leading-none`,style:td,children:`Latest Reports`})]}),(0,W.jsxs)(T,{to:`/news`,className:`group inline-flex shrink-0 items-center gap-1 whitespace-nowrap text-xs md:text-sm font-semibold text-red-500 hover:text-red-400 transition-colors motion-reduce:transition-none rounded-sm focus:outline-none focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 focus-visible:ring-offset-[#0a0a0a]`,"data-testid":`link-all-reports`,children:[`All Reports`,(0,W.jsx)(un,{className:`w-3 h-3 md:w-4 md:h-4 transition-transform group-hover:translate-x-0.5 motion-reduce:transition-none`})]})]}),t||!a?n?(0,W.jsx)(dd,{}):r?(0,W.jsx)(md,{}):(0,W.jsx)(vd,{}):n?(0,W.jsx)(ud,{lead:a,rest:o}):r?(0,W.jsx)(pd,{lead:a,rest:o}):(0,W.jsx)(_d,{reports:i})]})})},bd={fontFamily:`'Anton', 'Oswald', sans-serif`},xd={fontFamily:`'Montserrat', sans-serif`},Sd=`radial-gradient(ellipse 58% 100% at 50% 0%, rgba(229,16,26,0.7) 0%, rgba(229,16,26,0.32) 38%, rgba(229,16,26,0) 72%)`,Cd=({rank:e,className:t})=>(0,W.jsx)(`span`,{"aria-hidden":`true`,className:`block select-none leading-[0.82] tracking-tight text-white transition-colors duration-200 motion-reduce:transition-none group-hover:text-[#ff2a35] ${t}`,style:bd,children:e}),wd=({title:e})=>{let t=Ku(e);if(!t||!e.includes(t))return(0,W.jsx)(W.Fragment,{children:e});let n=e.split(t);return(0,W.jsx)(W.Fragment,{children:n.map((e,r)=>(0,W.jsxs)(`span`,{children:[e,r<n.length-1&&(0,W.jsx)(`span`,{className:`text-[#ff2a35]`,children:t})]},`${r}-${e}`))})},Td=({video:e,reducedMotion:t})=>(0,W.jsxs)(`div`,{className:`relative`,children:[(0,W.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute top-full -inset-x-3 lg:-inset-x-14 h-16 lg:h-32 -z-10`,style:{background:Sd,animation:t?`none`:`trussGlow 5s ease-in-out infinite alternate`}}),(0,W.jsx)(ad,{video:e,lead:!0})]}),Ed=`grid grid-cols-[4.5rem_1fr] xl:grid-cols-[5.5rem_1fr] items-center gap-x-6`,Dd=({video:e,reducedMotion:t})=>(0,W.jsxs)(T,{to:`/interviews/${e.id}`,className:`group relative isolate ${Ed} rounded-sm ${id}`,"data-testid":`spotlight-interview-1`,children:[(0,W.jsx)(Cd,{rank:1,className:`text-[8.5rem] xl:text-[11rem]`}),(0,W.jsxs)(`div`,{className:`grid grid-cols-12 items-center gap-x-8 xl:gap-x-10`,children:[(0,W.jsx)(`div`,{className:`col-span-7`,children:(0,W.jsx)(Td,{video:e,reducedMotion:t})}),(0,W.jsxs)(`div`,{className:`col-span-5 min-w-0`,children:[(0,W.jsx)(`h3`,{className:`text-[1.625rem] xl:text-[2.25rem] font-black leading-[1.08] tracking-tight text-white [text-wrap:balance] break-words`,style:xd,"data-testid":`text-trending-1-title`,children:(0,W.jsx)(wd,{title:e.title})}),(0,W.jsxs)(`span`,{className:`mt-6 inline-flex items-center gap-2.5 rounded-lg bg-[#e5101a] pl-4 pr-5 py-2.5 text-sm font-bold text-white shadow-[0_14px_30px_rgba(229,16,26,0.45)] transition-colors duration-200 motion-reduce:transition-none group-hover:bg-[#c40f17]`,children:[(0,W.jsx)(hn,{className:`h-4 w-4`,fill:`currentColor`}),`Watch`]})]})]})]}),Od=({video:e,rank:t})=>(0,W.jsx)(`li`,{children:(0,W.jsxs)(T,{to:`/interviews/${e.id}`,className:`group ${Ed} py-4 xl:py-5 rounded-sm ${id}`,"data-testid":`ranked-item-${t}`,children:[(0,W.jsx)(Cd,{rank:t,className:`text-[3.25rem] xl:text-[3.75rem]`}),(0,W.jsxs)(`div`,{className:`flex items-center gap-x-6`,children:[(0,W.jsx)(`div`,{className:`w-32 xl:w-40 shrink-0`,children:(0,W.jsx)(ad,{video:e})}),(0,W.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,W.jsx)(`h3`,{className:`text-lg xl:text-xl font-semibold leading-snug text-white/90 line-clamp-2 transition-colors duration-200 motion-reduce:transition-none group-hover:text-red-400`,style:td,children:e.title})})]})]})}),kd=({videos:e,reducedMotion:t})=>(0,W.jsxs)(`div`,{className:`rf-fade-in`,children:[(0,W.jsx)(Dd,{video:e[0],reducedMotion:t}),e.length>1&&(0,W.jsx)(`ol`,{className:`relative mt-10 border-y border-white/10 divide-y divide-white/10`,start:2,children:e.slice(1,5).map((e,t)=>(0,W.jsx)(Od,{video:e,rank:t+2},e.id))})]}),Ad=()=>(0,W.jsxs)(`div`,{className:`rf-skeleton-pulse`,"aria-hidden":`true`,"data-testid":`skeleton-trending-interviews`,children:[(0,W.jsxs)(`div`,{className:Ed,children:[(0,W.jsx)(`div`,{className:`h-28 w-10 bg-white/10`}),(0,W.jsxs)(`div`,{className:`grid grid-cols-12 items-center gap-x-8 xl:gap-x-10`,children:[(0,W.jsx)(`div`,{className:`col-span-7 aspect-video bg-white/5`}),(0,W.jsxs)(`div`,{className:`col-span-5 space-y-3`,children:[(0,W.jsx)(`div`,{className:`h-7 w-full bg-white/10`}),(0,W.jsx)(`div`,{className:`h-7 w-4/5 bg-white/10`}),(0,W.jsx)(`div`,{className:`h-7 w-1/2 bg-white/10`}),(0,W.jsx)(`div`,{className:`mt-6 h-10 w-28 rounded-lg bg-white/10`})]})]})]}),(0,W.jsx)(`div`,{className:`mt-10 border-y border-white/10 divide-y divide-white/10`,children:Array.from({length:4}).map((e,t)=>(0,W.jsxs)(`div`,{className:`${Ed} py-4 xl:py-5`,children:[(0,W.jsx)(`div`,{className:`h-10 w-6 bg-white/10`}),(0,W.jsxs)(`div`,{className:`flex items-center gap-x-6`,children:[(0,W.jsx)(`div`,{className:`w-32 xl:w-40 shrink-0 aspect-video bg-white/5`}),(0,W.jsx)(`div`,{className:`flex-1`,children:(0,W.jsx)(`div`,{className:`h-4 w-3/4 bg-white/10`})})]})]},t))})]}),jd=`flex h-12 w-full items-center justify-center gap-2.5 rounded-xl border border-white/10 text-xs font-bold uppercase tracking-[0.14em] text-white whitespace-nowrap active:scale-[0.98] transition-transform motion-reduce:transition-none`,Md=({video:e,reducedMotion:t})=>(0,W.jsxs)(T,{to:`/interviews/${e.id}`,className:`group relative isolate block rounded-sm ${id}`,"data-testid":`spotlight-interview-1`,children:[(0,W.jsx)(Td,{video:e,reducedMotion:t}),(0,W.jsxs)(`div`,{className:`mt-6 flex items-start gap-x-4`,children:[(0,W.jsx)(Cd,{rank:1,className:`w-10 shrink-0 text-[4.5rem] sm:w-12 sm:text-[5.5rem]`}),(0,W.jsx)(`div`,{className:`min-w-0 flex-1 pt-1`,children:(0,W.jsx)(`h3`,{className:`text-[clamp(1.375rem,6vw,1.75rem)] md:text-[2rem] font-black leading-[1.1] tracking-tight text-white [text-wrap:balance] break-words`,style:xd,"data-testid":`text-trending-1-title`,children:(0,W.jsx)(wd,{title:e.title})})})]}),(0,W.jsxs)(`span`,{className:`${jd}
641 mt-5 bg-gradient-to-b from-[#ff1f2c] to-[#b30d14] shadow-[0_10px_30px_rgba(229,16,26,0.35)]`,children:[(0,W.jsx)(hn,{className:`h-4 w-4`,fill:`currentColor`}),`Watch`]})]}),Nd=({video:e,rank:t})=>(0,W.jsx)(`li`,{children:(0,W.jsxs)(T,{to:`/interviews/${e.id}`,className:`group flex items-center gap-x-3 sm:gap-x-4 py-3.5 rounded-sm ${id}`,"data-testid":`ranked-item-${t}`,children:[(0,W.jsx)(Cd,{rank:t,className:`w-7 shrink-0 text-[2.25rem] sm:w-9 sm:text-[2.75rem]`}),(0,W.jsx)(`div`,{className:`w-24 sm:w-32 md:w-40 shrink-0`,children:(0,W.jsx)(ad,{video:e})}),(0,W.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,W.jsx)(`h3`,{className:`text-[15px] sm:text-base md:text-lg font-semibold leading-snug text-white/90 line-clamp-2 transition-colors duration-200 motion-reduce:transition-none group-hover:text-red-400`,style:td,children:e.title})})]})}),Pd=({videos:e,reducedMotion:t})=>(0,W.jsxs)(`div`,{className:`rf-fade-in`,children:[(0,W.jsx)(Md,{video:e[0],reducedMotion:t}),e.length>1&&(0,W.jsx)(`ol`,{className:`relative mt-7 border-y border-white/10 divide-y divide-white/10`,start:2,children:e.slice(1,5).map((e,t)=>(0,W.jsx)(Nd,{video:e,rank:t+2},e.id))}),(0,W.jsxs)(T,{to:`/interviews`,className:`${jd} mt-6 bg-white/[0.04] ${id}`,"data-testid":`button-more-interviews`,children:[`All Interviews`,(0,W.jsx)(un,{className:`h-4 w-4`})]})]}),Fd=()=>(0,W.jsxs)(`div`,{className:`rf-skeleton-pulse`,"aria-hidden":`true`,"data-testid":`skeleton-trending-interviews`,children:[(0,W.jsx)(`div`,{className:`aspect-video bg-white/5`}),(0,W.jsxs)(`div`,{className:`mt-6 flex items-start gap-x-4`,children:[(0,W.jsx)(`div`,{className:`h-16 w-7 bg-white/10`}),(0,W.jsxs)(`div`,{className:`flex-1 space-y-1.5 pt-1`,children:[(0,W.jsx)(`div`,{className:`h-5 w-full bg-white/10`}),(0,W.jsx)(`div`,{className:`h-5 w-5/6 bg-white/10`}),(0,W.jsx)(`div`,{className:`h-5 w-2/3 bg-white/10`})]})]}),(0,W.jsx)(`div`,{className:`mt-5 h-12 rounded-xl bg-white/10`}),(0,W.jsx)(`div`,{className:`mt-7 border-y border-white/10 divide-y divide-white/10`,children:Array.from({length:4}).map((e,t)=>(0,W.jsxs)(`div`,{className:`flex items-center gap-x-3 py-3.5`,children:[(0,W.jsx)(`div`,{className:`h-8 w-4 bg-white/10`}),(0,W.jsx)(`div`,{className:`w-24 sm:w-32 md:w-40 shrink-0 aspect-video bg-white/5`}),(0,W.jsxs)(`div`,{className:`flex-1 space-y-2`,children:[(0,W.jsx)(`div`,{className:`h-3.5 w-full bg-white/10`}),(0,W.jsx)(`div`,{className:`h-3.5 w-2/3 bg-white/10`})]})]},t))}),(0,W.jsx)(`div`,{className:`mt-6 h-12 rounded-xl bg-white/10`})]}),Id=({videos:e,isLoading:t=!1})=>{let n=Ju(1024),r=qu();if(!t&&e.length===0)return null;let i=t||e.length===0;return(0,W.jsx)(`section`,{className:`px-4 md:px-12 py-6`,"data-testid":`section-trending-interviews`,children:(0,W.jsxs)(`div`,{className:`max-w-[1400px] mx-auto`,children:[(0,W.jsxs)(`div`,{className:`relative mb-6 md:mb-8 flex items-end justify-between gap-4 border-b border-white/10 pb-4`,children:[(0,W.jsxs)(`div`,{className:`min-w-0`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,W.jsx)(`span`,{"aria-hidden":`true`,className:`inline-block h-3.5 w-[3px] shrink-0 bg-[#e5101a] shadow-[0_0_12px_rgba(229,16,26,0.8)]`}),(0,W.jsx)(`span`,{className:`text-[10px] md:text-[11px] font-bold uppercase tracking-[0.32em] text-white/70 leading-none`,style:td,"data-testid":`text-trending-kicker`,children:`Most Watched`})]}),(0,W.jsx)(`h2`,{className:`mt-2.5 text-2xl md:text-3xl font-bold text-white uppercase tracking-wide leading-none`,style:td,children:`Trending Interviews`}),(0,W.jsx)(`p`,{className:`mt-2 text-xs md:text-sm text-white/50`,children:`The most-watched of our latest interview episodes, ranked by views.`})]}),(0,W.jsxs)(T,{to:`/interviews`,className:`group absolute right-0 top-0 lg:static inline-flex shrink-0 items-center gap-1 whitespace-nowrap text-xs md:text-sm font-semibold text-red-500 hover:text-red-400 transition-colors motion-reduce:transition-none rounded-sm focus:outline-none focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 focus-visible:ring-offset-[#0a0a0a]`,"data-testid":`link-all-interviews`,children:[`All Interviews`,(0,W.jsx)(un,{className:`w-3 h-3 md:w-4 md:h-4 transition-transform group-hover:translate-x-0.5 motion-reduce:transition-none`})]})]}),n?i?(0,W.jsx)(Ad,{}):(0,W.jsx)(kd,{videos:e,reducedMotion:r}):i?(0,W.jsx)(Fd,{}):(0,W.jsx)(Pd,{videos:e,reducedMotion:r})]})})};async function Ld(e){let t=await fetch(e);if(!t.ok)throw Error(`${t.status} ${t.statusText} â ${e}`);let n=await t.json();return Array.isArray(n)?n:[]}var Rd={staleTime:300*1e3,retry:2,retryDelay:e=>Math.min(1e3*2**e,5e3)},zd=`Nirvana,Soundgarden,Alice In Chains,System of a Down,Deftone
641s,Slipknot,Avenged Sevenfold,Mötley Crüe,Falling In Reverse,Disturbed,Pantera,Nickelback,Sublime,Three Days Grace,Staind,SHINEDOWN,Killswitch Engage,Sevendust,Bullet For My Valentine,Underoath,P.O.D.,Chevelle,Architects,Nothing More,The Plot In You,Hollywood Undead,Flyleaf,Crossfade,Sum 41,GWAR,Tech N9ne,Slaughter To Prevail,Lorna Shore,DAYSEEKER,Spineshank,DOROTHY,Mammoth,Koe Wetzel,Kat Von D`.split(`,`);function Bd(){let e=Uu(),t=e.status.live?e.status:null;return(0,W.jsxs)(`div`,{className:`min-h-screen bg-[#0a0a0a] text-[#F3F4F6]`,children:[t?(0,W.jsx)(A,{image:t.posterUrl,ogTitle:t.headline,ogDescription:t.subline||void 0}):(0,W.jsx)(A,{}),(0,W.jsxs)(`div`,{className:`sr-only`,children:[(0,W.jsx)(`h1`,{children:`Rock Feed â Daily Rock & Metal News`}),(0,W.jsx)(`p`,{children:`Rock Feed is the official site for daily rock and heavy metal news, interviews, tours, and charts.`})]}),(0,W.jsx)(`div`,{className:`relative z-50`,children:(0,W.jsx)(M,{})}),(0,W.jsx)(`div`,{className:`relative z-30`,children:(0,W.jsx)(dc,{guests:zd})}),e.pending?(0,W.jsx)(`div`,{className:`hto-pending`,"aria-busy":`true`,"data-testid":`home-takeover-pending`}):(0,W.jsxs)(W.Fragment,{children:[t&&(0,W.jsx)(ku,{status:t}),(0,W.jsx)(Vd,{})]}),!e.pending&&(0,W.jsx)(L,{})]})}function Vd(){let{data:e,isLoading:t,isFetching:n}=x({queryKey:[`/api/news`,`v2`],queryFn:()=>Ld(`/api/news?limit=60`),...Rd}),{data:r,isLoading:i,isFetching:a}=x({queryKey:[`/api/interviews`],queryFn:()=>Ld(`/api/interviews?limit=24`),...Rd}),{data:o,isLoading:s,isFetching:c}=x({queryKey:[`/api/trending-interviews`],queryFn:()=>Ld(`/api/trending-interviews`),...Rd}),{data:l,isLoading:u}=x({queryKey:[`/api/trending`],queryFn:()=>Ld(`/api/trending`),...Rd}),{data:d,isLoading:f}=x({queryKey:[`/api/headbanger-homes`],queryFn:()=>Ld(`/api/headbanger-homes`),...Rd}),{data:p,isLoading:m,isFetching:h}=x({queryKey:[`/api/festivals`],queryFn:()=>Ld(`/api/festivals`),...Rd}),g=e||[],_=[...p||[]].sort((e,t)=>{let n=Yc(e.dates),r=Yc(t.dates);return n.isPast===r.isPast?n.startTime-r.startTime:n.isPast?1:-1}),v=r||[],y=o||[],b=d||[],S=t||n&&g.length===0,C=i||a&&v.length===0,w=m||h&&_.length===0,E=s||c&&y.length===0,D=C||v.length>0,O=w||_.length>0,k=g[0],A=(0,z.useMemo)(()=>g.slice(1,12),[g]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`div`,{children:(0,W.jsx)(Zu,{featuredVideo:k,isLoading:t})}),(0,W.jsxs)(`div`,{className:`relative z-10 space-y-8 pb-4 pt-0 sm:pt-8 rf-noise rf-glow-top`,children:[(0,W.jsx)(yd,{videos:A,isLoading:S}),(0,W.jsx)(Hc,{}),(0,W.jsx)(ed,{title:`Latest Interviews`,videos:v.slice(0,12),href:`/interviews`,isLoading:C,hideTimeAgo:!0}),D&&O&&(0,W.jsx)(`div`,{className:`relative my-8 px-4 md:px-12`,children:(0,W.jsx)(`div`,{className:`max-w-[1400px] mx-auto`,children:(0,W.jsx)(`div`,{className:`h-px bg-gradient-to-r from-transparent via-red-600/60 to-transparent`})})}),O&&(0,W.jsx)(Ql,{festivals:_,isLoading:w}),(0,W.jsx)(Id,{videos:y,isLoading:E}),!f&&b.length>0&&(0,W.jsx)(`section`,{className:`rf-fade-in pt-6 pb-2 px-4 md:px-12`,children:(0,W.jsxs)(`div`,{className:`max-w-[1400px] mx-auto`,children:[(0,W.jsxs)(`div`,{className:`flex items-start justify-between gap-3 mb-5`,children:[(0,W.jsxs)(`div`,{className:`min-w-0`,children:[(0,W.jsxs)(`h2`,{className:`text-lg md:text-2xl font-bold text-white flex flex-col md:flex-row md:items-center gap-1.5 md:gap-2`,children:[(0,W.jsx)(`span`,{className:`leading-tight`,children:`Headbanger Homes`}),(0,W.jsx)(`span`,{className:`self-start md:self-auto px-1.5 py-0.5 bg-[#e5101a] text-white text-[9px] md:text-xs font-bold tracking-wider uppercase rounded leading-none whitespace-nowrap`,children:`Original Series`})]}),(0,W.jsx)(`p`,{className:`text-xs md:text-sm text-white/50 mt-1.5 md:mt-1`,children:`Inside the homes of rock's biggest stars`})]}),(0,W.jsxs)(`a`,{href:`https://www.youtube.com/playlist?list=PLDMvMj2JgJXFCT2uzrB3xTtLzkgJs1KKM`,target:`_blank`,rel:`noopener noreferrer`,className:`flex items-center gap-1 text-xs md:text-sm text-red-500 hover:text-red-400 font-medium transition-colors flex-shrink-0 whitespace-nowrap mt-1`,"data-testid":`link-headbanger-homes-all`,children:[`Watch All `,(0,W.jsx)(un,{className:`w-3 h-3 md:w-4 md:h-4`})]})]}),(0,W.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-4 md:gap-5`,children:b.slice(0,4).map((e,t)=>(0,W.jsxs)(T,{to:`/watch/${e.id}`,className:`group block transform transition-all duration-300 hover:scale-[1.03] hover:z-10`,"data-testid":`card-headbanger-homes-${t}`,children:[(0,W.jsxs)(`div`,{className:`relative aspect-video rounded-lg overflow-hidden shadow-xl group-hover:shadow-2xl group-hover:shadow-red-900/20 transition-shadow duration-300 bg-zinc-900`,children:[(0,W.jsx)(qc,{videoId:e.id,fallbackSrc:e.thumbnail,alt:e.title,size:`card`,sizes:`(max-width: 640px) 100v
641w, (max-width: 768px) 50vw, 330px`,className:`w-full h-full object-cover transition-transform duration-500 group-hover:scale-105`,loading:`lazy`}),(0,W.jsx)(`div`,{className:`absolute inset-0 bg-black/0 group-hover:bg-black/30 transition-all duration-300`}),(0,W.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-all duration-300`,children:(0,W.jsx)(`div`,{className:`w-12 h-12 md:w-14 md:h-14 rounded-full bg-white/95 flex items-center justify-center shadow-2xl transform scale-75 group-hover:scale-100 transition-transform duration-300`,children:(0,W.jsx)(hn,{className:`w-5 h-5 md:w-6 md:h-6 text-black ml-0.5`,fill:`currentColor`})})})]}),(0,W.jsx)(`h3`,{className:`mt-2 text-sm font-semibold text-white/90 line-clamp-2 leading-snug group-hover:text-red-400 transition-colors`,children:e.title})]},e.id))})]})})]})]})}var Hd=(0,z.lazy)(()=>R(()=>import(`./admin-ICugp9z3.js`),__vite__mapDeps([0,1,2,3,4,5]))),Ud=(0,z.lazy)(()=>R(()=>import(`./interviews-CIVYzVO5.js`),__vite__mapDeps([6,1,7,8,5]))),Wd=(0,z.lazy)(()=>R(()=>import(`./festivals-Dv2a3dY7.js`),__vite__mapDeps([9,1]))),Gd=(0,z.lazy)(()=>R(()=>import(`./news-CkHmLyT1.js`),__vite__mapDeps([10,1,7,3,8,11]))),Kd=(0,z.lazy)(()=>R(()=>import(`./article-CxJ0zZ4L.js`),__vite__mapDeps([12,1,7,13,14,11]))),qd=(0,z.lazy)(()=>R(()=>import(`./not-found-Yvxe0Mz9.js`),__vite__mapDeps([15,1]))),Jd=(0,z.lazy)(()=>R(()=>import(`./privacy-BXU10bEC.js`),__vite__mapDeps([16,1,7,17]))),Yd=(0,z.lazy)(()=>R(()=>import(`./terms-fxt9SZu3.js`),__vite__mapDeps([18,1,7,17]))),Xd=(0,z.lazy)(()=>R(()=>import(`./cookies-fQ3V4DnB.js`),__vite__mapDeps([19,1,7,17]))),Zd=(0,z.lazy)(()=>R(()=>import(`./dmca-Om3eqlXG.js`),__vite__mapDeps([20,1,7,17]))),Qd=(0,z.lazy)(()=>R(()=>import(`./store-jO6chtKA.js`),__vite__mapDeps([21,1,3]))),$d=(0,z.lazy)(()=>R(()=>import(`./tours-D2jty6He.js`),__vite__mapDeps([22,1,3,23]))),ef=(0,z.lazy)(()=>R(()=>import(`./tour-act-ByT6GueB.js`),__vite__mapDeps([24,1,7,15,23]))),tf=(0,z.lazy)(()=>R(()=>import(`./cruise-zhiCJ7j6.js`),__vite__mapDeps([25,1,13]))),nf=(0,z.lazy)(()=>R(()=>import(`./arena-DiHYVUFQ.js`),__vite__mapDeps([26,1,14,2]))),rf=(0,z.lazy)(()=>R(()=>import(`./arena-leaderboard-DQjeq-BC.js`),__vite__mapDeps([27,1,4,26,14,2]))),af=(0,z.lazy)(()=>R(()=>import(`./arena-week-CAhT_C3z.js`),__vite__mapDeps([28,1,14,26,2]))),of=(0,z.lazy)(()=>R(()=>import(`./arena-band-BTRE24j0.js`),__vite__mapDeps([29,1,26,14,2]))),sf=(0,z.lazy)(()=>R(()=>import(`./fan-profile-Bc1c-kdl.js`),__vite__mapDeps([30,1,14,2,4,26]))),cf=null;function lf(){return(0,z.useEffect)(()=>{try{let e=new URLSearchParams(window.location.search).get(`ref`);if(!e)return;let t=`rf_ref_logged_${e}`;if(sessionStorage.getItem(t))return;sessionStorage.setItem(t,`1`),fetch(`/api/ref`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({ref:e,path:window.location.pathname}),keepalive:!0}).catch(()=>{})}catch{}},[]),null}function uf(){let{pathname:e}=E();return(0,z.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}var df=()=>(0,W.jsx)(`div`,{className:`min-h-screen bg-black flex items-center justify-center`,children:(0,W.jsx)(`img`,{src:S,alt:`Rock Feed`,className:`h-16 w-auto animate-pulse`})});function ff({children:e}){let{data:t,isLoading:n}=x({queryKey:[`/api/takeover`],staleTime:300*1e3,retry:!1});return n?(0,W.jsx)(df,{}):t?.arena===!1?(0,W.jsx)(qd,{}):(0,W.jsx)(W.Fragment,{children:e})}function pf(){let{videoId:e}=te();return(0,W.jsx)(P,{to:e?`/news/${e}`:`/news`,replace:!0})}function mf(){let{data:e}=x({queryKey:[`/api/takeover`],staleTime:300*1e3,retry:!1});return e?.takeover?(0,W.jsx)(Ms,{}):(0,W.jsxs)(C,{children:[(0,W.jsx)(uf,{}),(0,W.jsx)(z.Suspense,{fallback:(0,W.jsx)(df,{}),children:(0,W.jsxs)(D,{children:[(0,W.jsx)(j,{path:`/`,element:(0,W.jsx)(Bd,{})}),(0,W.jsx)(j,{path:`/interviews`,element:(0,W.jsx)(Ud,{})}),(0,W.jsx)(j,{path:`/festivals`,element:(0,W.jsx)(Wd,{})}),(0,W.jsx)(j,{path:`/news`,element:(0,W.jsx)(Gd,{})}),(0,W.jsx)(j,{path:`/news/:videoId`,element:(0,W.jsx)(Kd,{})}),(0,W.jsx)(j,{path:`/interviews/:videoId`,element:(0,W.jsx)(Kd,{})}),(0,W.jsx)(j,{path:`/watch/:videoId`,element:(0,W.jsx)(pf,{})}),(0,W.jsx)(j,{path:`/admin`,element:(0,W.jsx)(Hd,{})}),(0,W.jsx)(j,{path:`/privacy`,element:(0,W.jsx)(Jd,{})}),(0,W.jsx)(j,{path:`/terms`,element:(0,W.jsx)(Yd,{})}),(0,W.jsx)(j,{path:`/cookies`,element:(0,W.jsx)(Xd,{})}),(0,W.jsx)(j,{path:`/dmca`,element:(0,W.jsx)(Zd,{})}),(0,W.jsx)(j,{path:`/store`,element:(0,W.jsx)(Qd,{})}),(0,W.jsx)(j,{path:`/tour`,element:(0,W.jsx)($d,{})}),(0,W.jsx)(j,{path:`/tour/:slug`,element:(0,W.jsx)(ef,{})}),(0,W.jsx)(j,{path:`/cruise`,element:(0,W.jsx)(tf,{})}),(0,W.jsx)(j,{path:`/arena`,element:(0,W.jsx)(ff,{children:(0,W.jsx)(nf,{})})}),(0,W.jsx)(j,{path:`/arena/leaderboard`,element:(0,W.jsx)(ff,{children:(0,W.jsx)(rf,{})})}),(0,W.jsx)(j,{path:`/arena/week/:weekNumber`,element:(0,W.jsx)(ff,{children:(0,W.jsx)(af,{})})}),(0,W.jsx)(j,{path:`/arena/band/:slug`,element:(0,W.jsx)(ff,{children:(0,W.jsx)(of,{})})}),(0,W.jsx)(j,{path:`/fan/:handle`,element:(0,W.jsx)(ff,{children:(0,W.jsx)(sf,{})})}),(0,W.jsx)(j,{path:`/pulse`,element:(0,W.jsx)(P,{to:`/`,replace:!0})}),cf,(0,W.jsx)(j,{path:`*`,element:(0,W.jsx)(qd,{})})]})})]})}(0,ie.createRoot)(document.getElementById(`root`)).render((0,W.jsx)(m,{children:(0,W.jsx)(()=>(0,W.jsx)(Es,{children:(0,W.jsx)(ne,{client:Cs,children:(0,W.jsxs)(cs,{children:[(0,W.jsx)(xr,{}),(0,W.jsx)(Yr,{}),(0,W.jsx)(lf,{}),(0,W.jsx)(mf,{})]})})}),{})}));export{Re as $,gc as A,fr as B,Ic as C,Tc as D,kc as E,vs as F,un as G,gn as H,ys as I,sn as J,ln as K,hs as L,Ts as M,Ss as N,yc as O,Cs as P,Ye as Q,fs as R,Nc as S,Ac as T,hn as U,_n as V,mn as W,tt as X,on as Y,Ze as Z,tl as _,tu as a,_e as at,Oc as b,hl as c,me as ct,dl as d,K as et,al as f,Xc as g,$c as h,su as i,ye as it,fc as j,vc as k,ml as l,Yc as m,cu as n,xe as nt,nu as o,U as ot,Zc as p,cn as q,lu as r,ve as rt,gl as s,H as st,$ as t,G as tt,pl as u,qc as v,Fc as w,Pc as x,Dc as y,Qr as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.