import{j as n}from"./jsx-runtime-agliiQSw.js";import{r as s}from"./index-BtyHvDgk.js";import{a as u}from"./index-sWE7Vh13.js";import{c as f}from"./misc-CJRwnByf.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:"8bd8bc3153d70a1c10ccde8d38796bd67282553d"}}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(i,{})}),e,n.jsx("div",{"aria-hidden":"true",children:n.jsx(i,{})})]})}const a="█<▓█ ▒░/▒░ █░>▒▓/ █▒▒ ▓▒▓/█<░▒ ▓/░>",c=()=>a[Math.floor(Math.random()*a.length)];function i(){const[t,e]=s.useState(a[0]),[r,o]=s.useState(a[1]);return l(()=>{e(c()),o(c())},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-DiAugSWv.js.map
