import{j as n}from"./jsx-runtime-C_974cfT.js";import{r as s}from"./index-BDZD4X5K.js";import{a as u}from"./index-bXLUfgPf.js";import{c as f}from"./misc-BOyXKFuR.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"3ea6c863933c57219be78eb06addfb47859d8df2"}}catch{}})();function j({className:t,children:e="Loading"}){const{reducedMotion:r}=u();return r==="reduce"?n.jsx("div",{className:"animate-pulse",children:e}):n.jsxs("div",{className:f("flex items-center gap-2 font-mono text-sm font-medium uppercase",t),role:"status",children:[n.jsx("div",{"aria-hidden":"true",children:n.jsx(c,{})}),e,n.jsx("div",{"aria-hidden":"true",children:n.jsx(c,{})})]})}const a="█<▓█ ▒░/▒░ █░>▒▓/ █▒▒ ▓▒▓/█<░▒ ▓/░>",i=()=>a[Math.floor(Math.random()*a.length)];function c(){const[t,e]=s.useState(a[0]),[r,o]=s.useState(a[1]);return l(()=>{e(i()),o(i())},80),n.jsxs("span",{children:[t,r]})}function l(t,e=1e3){const r=s.useRef(null);s.useEffect(()=>{r.current=t},[t]),s.useEffect(()=>{function o(){r.current?.()}if(e!==null){const d=setInterval(o,e);return()=>clearInterval(d)}},[e])}export{j as L};
//# sourceMappingURL=loading-B_A7E1hQ.js.map
