<?php
/**
 * Pro runtime stub.
 */

if (!extension_loaded('sodium')) { http_response_code(500); exit; }

// Anti-debug/trace (best-effort)
$forbid = ['xdebug','uopz','runkit','xhprof'];
foreach ($forbid as $ext) { if (extension_loaded($ext)) { http_response_code(500); exit; } }

$__ONLINE_ONLY = (int)('0');
if ($__ONLINE_ONLY) {
    if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { exit; }
    $host = strtolower(trim($_SERVER['HTTP_HOST'] ?? ($_SERVER['SERVER_NAME'] ?? '')));
    if ($host==='' || preg_match('/(^|\.)(localhost|127\.0\.0\.1|::1)$/i', $host)) { exit; }
}

// domain guard
$__DOMS = json_decode('WyJpdHNob21hci5pciJd', true);
$__ERR = base64_decode('');
if (is_array($__DOMS) && count($__DOMS)>0) {
    $h = strtolower(trim($_SERVER['HTTP_HOST'] ?? ($_SERVER['SERVER_NAME'] ?? '')));
    $ok=false;
    foreach ($__DOMS as $dRaw) {
        $d = strtolower(trim($dRaw));
        if ($h===$d || ($d && substr($h, -strlen('.'.$d)) === '.'.$d)) { $ok=true; break; }
    }
    if (!$ok) { http_response_code(403); echo $__ERR; exit; }
}

// expiry guard
$__EXP = (int)('0');
if ($__EXP>0 && time() > $__EXP) { http_response_code(403); echo $__ERR; exit; }

// Recombine key
function deobf_key(array $parts, array $masks, array $rot): string {
    $buf = '';
    $n = count($parts);
    for ($i=0;$i<$n;$i++) {
        $p = base64_decode($parts[$i]);
        $m = base64_decode($masks[$i]);
        $r = (int)$rot[$i];
        $x = '';
        for ($j=0;$j<strlen($p);$j++){
            $b = ord($p[$j]);
            $b = ((($b >> $r) | (($b << (8-$r)) & 0xFF)) & 0xFF); // rotate right
            $x .= chr($b);
        }
        $buf .= ($x ^ $m);
    }
    return $buf;
}

$__PARTS = json_decode('["XcVFqJ+LNvc=","NjROPIsFSW4=","A4FgY93NWpo=","cQIM\/wt06II="]', true);
$__MASKS = json_decode('["xH5EgxwVwzQ=","9F571op9HmY=","1y7Qaw2dQe0=","WsXlyacoto0="]', true);
$__ROT   = json_decode('[2,2,7,1]', true);
$__KEY   = deobf_key($__PARTS, $__MASKS, $__ROT);

$__NONCE = base64_decode('vZyTJ7MT8nchGoo6IwOXnMG12WZ3bQEy');
$__AAD   = base64_decode('eyJsaWNfbW9kZSI6ImxvY2FsIiwibGljX3VybCI6IiIsImxpY19hcHAiOiIiLCJsaWNfcHViIjoiIiwibGljX2NhY2hlIjozNjAwLCJidWlsZCI6IjA4N2Q2NDc4Y2RmNDAzNDAiLCJwYXRoIjoiL2hvbWUvaXRzaG9tYXIvaXRzaG9tYXIuaXIvc291cmNlL2VsZW1lbnRvci9tb2R1bGVzL2NvbXBhdGliaWxpdHktdGFnL21vZHVsZS5waHAiLCJ0cyI6MTc1NjY5MzcxNCwiZXhwaXJlcyI6MCwiZG9tYWlucyI6WyJpdHNob21hci5pciJdLCJvbmxpbmUiOjAsIndwIjoxLCJhbGdvIjoieGNoYWNoYTIwcG9seTEzMDVfaWV0ZiJ9');
$__CT    = base64_decode('ScNw0Z8iuRVijJtUm/3S8jcqCAxFL6E4PwryIjT62BLhWin7InX3RyUFDBhlL5oMpkBcgIeXqlm7psAvbO28qItmj6mAqnuIbC3KDl3EPd7R2XIOCF3U7MTLfBeJP0Wb3NI8NTeL+RQZCnV/GFOu/XkYOUWZld1mgUqBqZ2X5iFU3uIOodcFiHMSDYetHR8UJYi9h7W/2THCHLsxka0kDAjpp+GbViXeUJEf/enqOmM2F1NlKqX7KLpvu6vvjpmqynFZza1mSD5+bf+3ntyHwxW510SZ9YlnC8rFeQSdy55AxM6MLb6yKT6Apo9P1GNE0zZU4P2bfxu+YQiCCrtdbUx+4saMT6uIH9TArGCN1coKb+Cqn0bdAafK8kEycPvQiyNCvcBncaAWV6FxfjdM7tWpmHmHZZlaBV2ueIIPmv+PgbNYPbd/7IvpZ+fobkUFzWoy8jXNjknO+geTmE98yMamx+iRkP2qdDQMw5+aL2u+/WzYXGn48QChstRNvMj1z+dWfUD4y3cFUDFcS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3q/M+9SQAg+g8IkjV62oHvwP/evknpBbSiL3pszyRXs30Wjb3WL808Yg2+9j4dAq91t3Ll9h9LdtMoh3xff6bGBmqYcnYWizN3/VtvRFdWzdLF6Wl/GlfFHhA/5XsLXWd/Rcvbhnl2yH/vxgqBWwbT6pKgfMlUQoS2VPf38bIwElyoLLZqH46KUSvi8oYgkaKitpVrxaILfMX4gTeRewWz0d4/fwaHPq6oF4p9KMvSlYWpuIOAhox6PBVS8Ol+pZK4eZoLnkwYHKtv2l0uV/8cR6LnhPQAt0fssGiMfjOQ6udI1/p6PyIoQR77RDQhpCJ8HrvI+gZ/tG2SxQfHoGPvexL/VQtgXVvJbREHqbnYBjT8h26go6ctoWOJVRsWiDZY7ofcegqE+WhV7wuFXDWs/LXW4pJjB/jkVOrvkzFL+21WK/sCildMWggdKLym60WRNEzesl9C9FDPFtYcv2uC56OkDgcrlMhL7YElE4mRXx3UH8T6xqKTGMBHFizBSKS4xw12kkKIT5cAhgvuDXdynsxSw4QcSIM00BfZtLUIRPcBdx1k71kDfPkGbjL6y3KEyXRGjuhMqmdXmwL0S4Z7TMO+tVHWQ+Rt2OeJpiSzdWpY78sunqW6tllOS13f3fa6VNUZuFrKusEeg8f5SJ18u9OM5wfJk1BPOGWNk8IoHRuNAD4=');

// Signature verification
$__PK  = base64_decode('mNkZlZOPJCcR6mkfhw+CKF4v1u2swwe4s/1sujFa1PY=');
$__SIG = base64_decode('kxjuHQIqHoaU+NZScJuUwWmz63iAYKqc+OFfCVYcmAw/WmhKemV+IxPprWHpgPJDXc3dnTb0FF1/YJSApDDWAw==');
if (!sodium_crypto_sign_verify_detached($__SIG, $__AAD.$__CT, $__PK)) { http_response_code(500); exit; }

$__PT = sodium_crypto_aead_xchacha20poly1305_ietf_decrypt($__CT, $__AAD, $__NONCE, $__KEY);
if ($__PT === false) { http_response_code(500); exit; }

$__IS_WP = (int)('1');
if ($__IS_WP) {
    if (!defined('ABSPATH') && !defined('WPINC')) { /* optional exit; */ }
}

// Execute using temp include
$__tmp = sys_get_temp_dir().'/._'.sha1('087d6478cdf40340'.__FILE__.mt_rand()).'.php';
file_put_contents($__tmp, $__PT); unset($__PT);
include $__tmp;
@unlink($__tmp);
