try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7a2f6265-00e6-49bd-9300-a82b8b0e7187",e._sentryDebugIdIdentifier="sentry-dbid-7a2f6265-00e6-49bd-9300-a82b8b0e7187")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4899],{2711:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,82212,23)),Promise.resolve().then(t.t.bind(t,91045,23)),Promise.resolve().then(t.bind(t,25879)),Promise.resolve().then(t.bind(t,41648)),Promise.resolve().then(t.bind(t,10142)),Promise.resolve().then(t.bind(t,42457))},17666:(e,r,t)=>{"use strict";t.d(r,{ErrorBoundary:()=>l});var o=t(24375);let n=(0,o.createContext)(null),s={didCatch:!1,error:null};class l extends o.Component{static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var r,t,o=arguments.length,n=Array(o),l=0;l0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==r.length||e.some((e,t)=>!Object.is(e,r[t]))}(e.resetKeys,o)){var n,l;null==(n=(l=this.props).onReset)||n.call(l,{next:o,prev:e.resetKeys,reason:"keys"}),this.setState(s)}}render(){let{children:e,fallbackRender:r,FallbackComponent:t,fallback:s}=this.props,{didCatch:l,error:a}=this.state,i=e;if(l){let e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof r)i=r(e);else if(t)i=(0,o.createElement)(t,e);else if(void 0!==s)i=s;else throw a}return(0,o.createElement)(n.Provider,{value:{didCatch:l,error:a,resetErrorBoundary:this.resetErrorBoundary}},i)}constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=s}}},25879:(e,r,t)=>{"use strict";t.d(r,{BooksGrid:()=>c});var o=t(65183),n=t(24375),s=t(32812),l=t(82212),a=t.n(l),i=t(92378);let d=(0,n.memo)(function(e){let{book:r,isPriority:t}=e,l=(0,n.useCallback)(e=>{e.preventDefault();let t=document.getElementById(r.slug);t&&t.scrollIntoView({behavior:"smooth"})},[r.slug]);return(0,o.jsx)(a(),{href:"#".concat(r.slug),onClick:l,className:"inline-block","aria-label":"View ".concat(r.title),children:(0,o.jsx)(s.default,{src:r.coverSrc,alt:r.title,width:100,height:150,sizes:"(max-width: 768px) 100px, 100px",quality:85,className:"border border-black rounded-xs shadow-md transition-transform hover:scale-105",priority:t,loading:t?"eager":"lazy"})})}),c=(0,n.memo)(function(){let e=i.b.slice(0,10);return(0,o.jsx)("div",{className:"mx-auto max-w-2xl flex flex-wrap gap-4 md:gap-8 justify-center",children:e.map((e,r)=>(0,o.jsx)(d,{book:e,isPriority:r<3},e.slug))})})},42457:(e,r,t)=>{"use strict";t.d(r,{default:()=>d});var o=t(65183),n=t(9613),s=t(45592),l=t(24375),a=t(17666);let i=(0,l.memo)(function(e){let{error:r,resetErrorBoundary:t,componentName:l}=e,a=(0,s.Qk)(r);return(0,s.A)(r)&&r.isUserFriendly||n.Cp(r,{extra:{componentName:l||"unknown",errorType:r.name,errorMessage:r.message,errorStack:r.stack},tags:{location:l||"unknown",errorType:r.name}}),(0,o.jsxs)("div",{role:"alert",className:"p-4 border border-error rounded-lg bg-error-light max-w-xl mx-auto my-8",children:[(0,o.jsx)("h2",{className:"text-lg font-semibold text-red-800 mb-2",children:"Oops! Something went wrong"}),(0,o.jsx)("p",{className:"text-red-700 mb-4",children:a}),!1,(0,o.jsx)("button",{onClick:t,className:"px-4 py-2 bg-error text-white rounded-sm hover:bg-error-hover transition-colors",children:"Try again"})]})}),d=(0,l.memo)(function(e){let{children:r,componentName:t,fallback:n=i,onError:s}=e,d=(0,l.useCallback)(e=>(0,o.jsx)(n,{...e,componentName:t}),[n,t]);return(0,o.jsx)(a.ErrorBoundary,{FallbackComponent:d,onError:(e,r)=>{s&&s(e,r),console.error("Error in ".concat(t||"component",":"),e,r)},children:r})})}},e=>{e.O(0,[2382,1045,3998,8305,4241,4661,2985,2378,435,3675,7358],()=>e(e.s=2711)),_N_E=e.O()}]);