(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,408821,e=>{"use strict";var r=e.i(20277),t=e.i(324066),i=e.i(76130),o=e.i(427938),n=e.i(890665),s=e.i(922946);function a({error:e,reset:a}){return(0,s.useEffect)(()=>{n.captureException(e,{tags:{errorBoundary:"app",digest:e.digest},extra:{componentStack:e.stack}}),console.error("App Error Boundary caught error:",e)},[e]),(0,r.jsx)(t.default,{sx:{height:"100%",bgcolor:"grey.50",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsxs)(t.default,{sx:{p:2,display:"flex",flexDirection:"column",justifyContent:"flex-start",bgcolor:"white",border:"solid lightgray 1px",borderRadius:"8px",minHeight:"200px",boxShadow:3},children:[(0,r.jsx)(o.default,{variant:"h6",sx:{width:"800px",mb:2},children:"You have encountered an error"}),(0,r.jsx)(t.default,{sx:{flex:1,fontSize:"10pt",color:"grey.600",mb:2},children:e.message||String(e)}),e.digest&&(0,r.jsxs)(t.default,{sx:{fontSize:"9pt",color:"grey.400",mb:2},children:["Error ID: ",e.digest]}),(0,r.jsx)(i.default,{sx:{justifySelf:"center",alignSelf:"center",mt:"20px"},color:"iochmara",variant:"contained",size:"small",onClick:()=>{a()},children:"Try again"})]})})}e.s(["default",()=>a])}]);