% const currentPage = typeof activePage === 'string' ? activePage : ''; const pageTitle = typeof title === 'string' && title ? title : 'Proxer Downloader'; const globalStatus = typeof global === 'object' && global ? global : {}; const summaryKnown = typeof counts === 'object' && counts !== null; const downloadsPaused = globalStatus.captcha_blocked === true; const pendingCount = summaryKnown ? (Number(counts.queued) || 0) + (Number(counts.processing) || 0) : null; %>