PageSourceSearch

https://gut39.ru/assets/dynamic-BdrdvaNs.js

js gut39.ru collected 2026-10-09 22:41:24 UTC 2,539 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t}from"./framework-C-kvl5Nm.js";var n=e(t(),1),r=()=>{};function i(e={}){return{error:null,isLoading:!0,pastDelay:!0,retry:r,timedOut:!1,...e}}function a(e){return(typeof e==`object`||typeof e==`function`)&&e!==null&&`default`in e}function o(e){return typeof e==`function`?e:()=>e}function s(e,t){let n;return n=e instanceof Promise||typeof e==`function`?{loader:o(e)}:e,{...n,...t}}function c(e){return n.lazy(async()=>{let t=await e();return a(t)?t:{default:t}})}function l(e,t){let[r,i]=n.useState(()=>t),[a,o]=n.useState(0);return{LazyComponent:r,retry:n.useCallback(()=>{i(()=>c(e)),o(e=>e+1)},[e]),retryKey:a}}var u;function d(){return u||(n.Component?(u=class extends n.Component{constructor(e){super(e),this.state={error:null,resetKey:e.resetKey}}static getDerivedStateFromProps(e,t){return e.resetKey===t.resetKey?null:{error:null,resetKey:e.resetKey}}static getDerivedStateFromError(e){return{error:e instanceof Error?e:Error(String(e))}}render(){return this.state.error?n.createElement(this.props.fallback,i({isLoading:!1,error:this.state.error,retry:this.props.retry})):this.props.children}},u):null)}var f=typeof window>`u`;function p(e,t){let{loader:a,loading:u,ssr:p=!0}=s(e,t),m=a?o(a):()=>Promise.resolve(()=>null);if(!p){if(f){let e=e=>u?n.createElement(u,i({pastDelay:!1})):null;return e.displayName=`DynamicSSRFalse`,e}let e=c(m),t=t=>{let[r,a]=n.useState(!1),{LazyComponent:o,retry:s,retryKey:c}=l(m,e);if(n.useEffect(()=>a(!0),[]),!r)return u?n.createElement(u,i({retry:s})):null;let f=u?n.createElement(u,i({retry:s})):null,p=n.createElement(o,t),h=p;if(u){let e=d();e&&(h=n.createElement(e,{fallback:u,retry:s,resetKey:c},p))}return n.createElement(n.Suspense,{fallback:f},h)};return t.displayName=`DynamicClientSSRFalse`,t}if(f){if(typeof n.lazy!=`function`){let e=async e=>{let t=await m(),r=`default`in t?t.default:t;return n.createElement(r,e)};return e.displayName=`DynamicAsyncServer`,e}let e=c(m),t=t=>{let a=u?n.createElement(u,i()):null,o=n.createElement(e,t),s=o;if(u){let e=d();e&&(s=n.createElement(e,{fallback:u,retry:r,resetKey:0},o))}return n.createElement(n.Suspense,{fallback:a},s)};return t.displayName=`DynamicServer`,t}let h=c(m),g=e=>{let{LazyComponent:t,retry:r,retryKey:a}=l(m,h),o=u?n.createElement(u,i({retry:r})):null,s=n.createElement(t,e),c=s;if(u){let e=d();e&&(c=n.createElement(e,{fallback:u,retry:r,resetKey:a},s))}return n.createElement(n.Suspense,{fallback:o},c)};return g.displayName=`DynamicClient`,g}export{p 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.