PageSourceSearch

https://duckmath.org/assets/GameFullscreen-Ckyh7jR-.js

js duckmath.org collected 2026-10-03 23:18:30 UTC 2,513 bytes, 1 lines download raw bytes

1import{B as v,b as w,c as L,r as s,j as n,L as I}from"./index-3F8zEw1m.js";import{G as E,r as S,h as j}from"./GameIframe-DOTD_G67.js";import{G as _}from"./testConts-vN1Nohsa.js";import{u as C}from"./useApps-CaaqTGBm.js";import F from"./404-BUPBNnqo.js";import"./SEOHelmet-Bvt0eIk_.js";function $({showBackButton:g=!0}={}){var f;const h=(f=v().title)==null?void 0:f.toLowerCase(),t=C(),d=w(L),i=d==null?void 0:d.Apps,[r,x]=s.useState(""),[b,k]=s.useState(!1),[c,m]=s.useState(!1),[u,p]=s.useState(0),e=t==null?void 0:t.find(a=>{var o;return((o=a.title)==null?void 0:o.toLowerCase())===h});if(s.useEffect(()=>{if(!(e!=null&&e.link))return;const a=e.link;m(!1);async function o(){const l=await S(a,e.url_data_source,e.supports_about_blank!==!1);x(j(l.url)),k(l.cors)}o()},[e==null?void 0:e.id,e==null?void 0:e.link,e==null?void 0:e.url_data_source]),s.useEffect(()=>{const a=document.body.style.overflow,o=document.documentElement.style.overflow;return document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",()=>{document.body.style.overflow=a,document.documentElement.style.overflow=o}},[]),s.useEffect(()=>{if(!(i||!(t!=null&&t.length)||!r||!c))return;const o=setInterval(()=>{p(l=>(l+1)%4)},400);return()=>clearInterval(o)},[i,t==null?void 0:t.length,r,c]),!i&&(t!=null&&t.length)&&!e)return n.jsx(F,{});const y=i||!(t!=null&&t.length)||!r||!c;return n.jsxs("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",margin:0,padding:0,backgroundColor:"rgb(25, 31, 38)",backgroundImage:"url('/imgs/duck.webp')",backgroundPosition:"center",backgroundRepeat:"no-repeat",zIndex:99999,overflow:"hidden"},children:[r&&n.jsx(E,{src:r,cors:b,testId:_,onLoad:()=>m(!0)}),y&&n.jsx("div",{style:{position:"absolute",left:"50%",top:"calc(50% + 60px)",transform:"translateX(-50%)",color:"#fff",fontSize:16,letterSpacing:1,textShadow:"0 1px 2px rgba(0,0,0,0.5)",pointerEvents:"none",fontFamily:"monospace",whiteSpace:"pre"},children:`Loading${".".repeat(u)}${" ".repeat(3-u)}`}),g&&e&&n.jsxs(I,{to:"/class2",style:{position:"fixed",top:8,left:8,display:"flex",alignItems:"center",gap:6,padding:"4px 5px",background:"rgba(255,255,255,0.9)",borderRadius:7,textDecoration:"none",zIndex:1e5,boxShadow:"0 2px 6px rgba(0,0,0,0.2)"},title:"Back to home",children:[n.jsx("img",{src:"/imgs/goose_xmas.png",alt:"","aria-hidden":"true",style:{width:25,height:25,objectFit:"contain"}}),n.jsx("img",{src:"/imgs/duckmath_text.svg",alt:"DuckMath",style:{height:18}})]})]})}export{$ as default};

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.