PageSourceSearch

https://scripod.com/assets/CatchBoundary-CYXXs9E4.js

js scripod.com collected 2026-10-09 00:23:34 UTC 1,549 bytes, 1 lines download raw bytes

1import{a as e,t}from"./jsx-runtime-D_MnEzuy.js";import{t as n}from"./react-DBEjWt7A.js";var r=e(n(),1),i=t();function a(e){let t=e.errorComponent??s;return(0,i.jsx)(o,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?r.createElement(t,{error:n,reset:i}):e.children})}var o=class extends r.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function s({error:e}){let[t,n]=r.useState(!1);return(0,i.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,i.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,i.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,i.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,i.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,i.jsx)(`div`,{children:(0,i.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,i.jsx)(`code`,{children:e.message}):null})}):null]})}export{s as n,a as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.