(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_hub-ui"]="1776361634403-2195cb2175"}catch(l){}})();import{r as i,c as u,j as t}from"./c2heove9.js";import{B as m}from"./km2t237d.js";import{i as p}from"./ct82etp1.js";function x({children:r,fallback:a,bugsnagContext:o}){const n=i.useMemo(()=>m.getPlugin("react")?.createErrorBoundary(u),[]);if(!n)return t.jsx(t.Fragment,{children:r});const e=s=>{s.context?.startsWith("/")&&o&&(s.context=o)};return t.jsx(n,{FallbackComponent:({error:s,...c})=>{if(p(s)&&s.response.status===401)throw s;return a?t.jsx(a,{error:s,...c}):null},onError:e,children:r})}function l(r){const a=o=>t.jsx(x,{bugsnagContext:r.displayName??void 0,children:t.jsx(r,{...o})});return a.displayName=r.displayName??r.name,a}export{x as E,l as c};