(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_hub-ui"]="1776093229687-6cfd5f17e7"}catch(l){}})();const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["n0ceov9p.js","c2heove9.js","ipsmdhri.js","lej86w1k.js","n774k9r1.js","e1ed3ype.js","dqt06de9.js","cn2mrooy.js","brik0n97.js","fhfgpx48.js","k5os1d6s.js","ggvbaq4g.js","dgvx0slb.js","b2qz6tvq.js","gjupmyyj.js","c29hhq2p.js","cjh1csys.js","n4wk4ibr.js"])))=>i.map(i=>d[i]); import{_ as y}from"./nxcn1bpj.js";import{r as c,j as e}from"./c2heove9.js";import"./nngf2a7j.js";import{u as E}from"./c98yk4k6.js";import{W as h}from"./juwga711.js";import{a as u}from"./g811ww8h.js";import{R as p}from"./dyokuqk8.js";import{a5 as m,V as f,w as x,T as s}from"./lej86w1k.js";const g="https://dockerstatic.com/hub-ui/o4vm16u0.png";function L(t,r){return t.errorPageOverrides=r,t}function I(t){return t?.errorPageOverrides}c.lazy(()=>y(()=>import("./n0ceov9p.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])).then(t=>({default:t.ErrorDetails})));function l({error:t,showSadWhale:r=!0,shouldSetPageTitle:o=!1}){const n=E(),a=t?I(t):void 0,j=a?.title??"Something went wrong!",v=a?.subtitle??"We've logged this error and will review it as soon as we can.";if(t?.response?.status===429){const i=Number.parseInt(t?.response?.headers?.["x-retry-after"],10),d=i?i-Math.round(Date.now()/1e3):void 0;return e.jsxs(m,{children:[o&&e.jsx(h,{children:e.jsx("title",{children:"Too many requests"})}),e.jsxs(f,{spacing:2,sx:{alignItems:"center",paddingTop:8},children:[e.jsx(x,{component:"img",src:g,alt:""}),e.jsx(s,{variant:"h2",children:"Rate limit exceeded."}),e.jsxs(s,{variant:"body1",children:["We've detected an unusually high number of requests from your IP.",d&&e.jsxs(e.Fragment,{children:[" ","Please try again in ",e.jsx(P,{seconds:d})," seconds."]})]}),e.jsxs(s,{variant:"body1",children:["If this keeps happening, please"," ",e.jsx(p,{to:u("/support/contact"),children:"file a support ticket"})," ","with the below ID."]}),e.jsxs(s,{sx:w=>({fontFamily:w.typography.code.fontFamily}),children:["Error ID: ",n]})]})]})}return e.jsxs(m,{sx:{marginBottom:4},children:[o&&e.jsx(h,{children:e.jsx("title",{children:"Error"})}),e.jsxs(f,{spacing:2,sx:{alignItems:"center",paddingTop:8},children:[r&&a?.showWhale!==!1&&e.jsx(x,{component:"img",src:g,alt:""}),e.jsx(s,{variant:"h2",children:j}),e.jsx(s,{variant:"subtitle1",children:v}),e.jsxs(s,{variant:"body1",children:["If this keeps happening, please"," ",e.jsx(p,{to:u("/support/contact"),children:"file a support ticket"})," ","with the below ID."]}),e.jsxs(s,{sx:i=>({fontFamily:i.typography.code.fontFamily}),children:["Error ID: ",n]}),!1]})]})}function R({error:t}){return e.jsx(l,{error:t,showSadWhale:!0})}function A({error:t}){return e.jsx(l,{error:t,showSadWhale:!0,shouldSetPageTitle:!0})}function N({error:t}){return e.jsx(l,{error:t,showSadWhale:!1,shouldSetPageTitle:!0})}function P({seconds:t}){const[r,o]=c.useState(t);return c.useEffect(()=>{const n=setTimeout(()=>{r>0?o(r-1):window.location.reload()},r>1?1e3:1500);return()=>{clearTimeout(n)}},[r]),e.jsx(e.Fragment,{children:r})}export{N as E,A as a,R as b,L as w};