<?php
namespace Claromentis\Core\Ai\Controller;

$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"] ?: array()) + array("_f73dab6" . "06630b38" . "8645c4f7" . "d3fbb13b" . "b" => base64_decode("YXJyYXlfbWVyZ2U" . "="), "_9a122dd" . "9e0255ca" . "418d473b" . "4ba68f14" . "b" => base64_decode("bWV0YWRhdG" . "FbXQ=="), "_1128df95be" . "7b7ba48e931" . "c0662b158c1" => base64_decode("Zmx1c" . "2g="), "_c2900f14e63513f00ce80edbb04" . "5506c" => base64_decode("b2JfZ" . "mx1c2" . "g="), "_a1b32522d3" . "c9a793e0e43" . "07466b172d9" => base64_decode("ZG" . "F0" . "YT" . "og"), "_cfab5a4a6804604f499" . "8a7244eba86bd" => base64_decode("Cgo" . "="), "sta" . "tus" => base64_decode("c3R" . "hdH" . "Vz"), "_2e384775c6854f" . "15e613f8da88db6" . "08d" => base64_decode("Y2ZnX2FpX2VuYWJsZWRfbW9kd" . "Wxlcw=="), "te" . "xt" => base64_decode("dGV" . "4dA" . "=="), "_321258308" . "ef09879cd1" . "84188c6cd2" . "744" => base64_decode("dGVybW" . "luYXRl" . "ZA=="), "_839809c6beb4465bd21e0378" . "14ee4683" => base64_decode("Y29tbW9uLmFpLmludmFsaWR" . "fcHJvbXB0"), "_eac6791b" . "be0decdc5" . "761307838" . "b277de" => base64_decode("Y29tbW9uLmFpLnVuZXhwZWN0ZWRfcmVzcG9" . "uc2U="), "_d962cfd1735adb2dfba46f6" . "9c7f15cb8" => base64_decode("cGFydA=" . "="), "_54faabe694dfa8d05dc6c0827a214" . "f82" => base64_decode("aW1h" . "Z2U="), "_7669a8431d2368b1dc" . "09581496aea68e" => base64_decode("Zmlua" . "XNo"), "_ea8229a12" . "1285ee649a" . "72fd880bac" . "39b" => base64_decode("YXJyYXlfZm" . "lsdGVy"), "_475c4ddf78" . "73ea4e9044d" . "f10ae31d01e" => base64_decode("QUkgaW1hZ2UgZ2VuZXJh" . "dGlvbiBpcyBkaXNhYmxl" . "ZA=="), "_f083878fb6118" . "0fbf68ba3a77b8" . "d7de3" => base64_decode("aW" . "1h" . "Z2" . "Vz"), "_df34c069de43011ade22c720a331" . "8f60" => base64_decode("aGlz" . "dG9y" . "eVtd"), "_38f12d8b8c719a8ce0fc2fae" . "fc225f35" => base64_decode("YXJyYXlfb" . "WFw"), "_e956b2bd945b591c54" . "805c9582d15a3b" => base64_decode("b3B0aW9uc1" . "td"), "_967e161ed500fc" . "f11d56175ec7989" . "7dc" => base64_decode("QUkgaXMgbm90" . "IGVuYWJsZWQg" . "Zm9yIGFueSBt" . "b2R1bGVz"), "_1ab2691b0149e6c0f5bef2e0" . "34d68c11" => base64_decode("Jywg" . "Jw=="), "_8dacf526543365460e" . "a3a88a3a0904a1" => base64_decode("JzsgdmFsaWQgbW9" . "kdWxlcyBhcmUg"), "lang" . "uage" => base64_decode("bGFuZ3VhZ2" . "U="), "_655a561f4e34bbdfa745dc1339347" . "1b3" => base64_decode("bWlt" . "ZV90" . "eXBl"), "d" . "a" . "t" . "a" => base64_decode("ZGF" . "0YQ" . "=="), "_4d707fab93bebb00bbe" . "69e8159697c90" => base64_decode(""), "modul" . "e" => base64_decode("bW9kd" . "Wxl"), "_b2ffc45fa7bfe7aac72914a57d0f9" . "162" => base64_decode("SW52YWxpZCBtb2R1bGU" . "gJw=="), "_e05e0022a2e5ad344b9c4a0d3f64" . "e1a5" => base64_decode("bWVzc2FnZ" . "Q=="), "_5159b3572969eca46acd1b2e14" . "18459c" => base64_decode("aW1wbG9" . "kZQ=="), "_a7442cd7a4d3c557bf6b6b4b0d72" . "4559" => base64_decode("cH" . "Jv" . "bX" . "B0"), "_d1071a032215f0e" . "b5c4a8ef175f7049" . "d" => base64_decode("cm9sZQ" . "=="), "_bd71c3b" . "5c201fc1" . "1db82ed1" . "4ce424de" . "5" => base64_decode("aW5fYXJy" . "YXk="), "_e608e5b5c4c34a67ba97ef84c1" . "e16199" => base64_decode("Jw" . "=="), "_e10fcb42c31466650609758a3" . "97def43" => base64_decode("Y29tbW9u" . "LmFpLmJs" . "b2NrZWRf" . "cHJvbXB0"), "_7aefd482de7885f4293c" . "2926df28c235" => base64_decode("anNvbl9lbm" . "NvZGU="));
use Claromentis\Core\Ai\Adapters\Vertex\Responses\Text\VertexAiGenerateTextResponse;
use Claromentis\Core\Ai\Ai;
use Claromentis\Core\Ai\AiConfigurationInterface;
use Claromentis\Core\Ai\AiImageConfiguration;
use Claromentis\Core\Ai\AiPluginInterface;
use Claromentis\Core\Ai\AiTextGenerationConfiguration;
use Claromentis\Core\Ai\Exceptions\AiContentFilterException;
use Claromentis\Core\Ai\Exceptions\AiInvalidRequestException;
use Claromentis\Core\Ai\Exceptions\AiInvalidResponseException;
use Claromentis\Core\Ai\Exceptions\AiServerResponseException;
use Claromentis\Core\Ai\Parts\FilePart;
use Claromentis\Core\Ai\Parts\PartInterface;
use Claromentis\Core\Ai\Parts\TextPart;
use Claromentis\Core\Ai\Util\Util;
use Claromentis\Core\Config\Config;
use Claromentis\Core\Http\JsonPrettyResponse;
use Claromentis\Core\Http\RequestData;
use Claromentis\Core\Http\ResponseFactory;
use Claromentis\Core\Localization\Lmsg;
use Claromentis\Core\TextUtil\ClaText;
use Parsedown;
use RestExBadRequest;
use RestExError;
use Symfony\Component\HttpFoundation\Response;
use Throwable;




class RestAiController
{
    
    
    
    
    private Ai $ai;
    
    
    
    
    protected Config $config;
    
    
    
    
    private ResponseFactory $responseFactory;
    
    
    
    
    private ClaText $claText;
    
    
    
    
    private Lmsg $lmsg;
    
    
    
    
    
    
    
    
    public function __construct(Ai $ai, Config $config, ResponseFactory $responseFactory, ClaText $cla_text, Lmsg $lmsg)
    {
        $this->ai = $ai;
        $this->config = $config;
        $this->responseFactory = $responseFactory;
        $this->claText = $cla_text;
        $this->lmsg = $lmsg;
    }
    
    
    
    
    
    
    
    public function generateTextStream(RequestData $requestData) : Response
    {
        $_a7442cd7a4d3c557bf6b6b4b0d724559 = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_a7442cd7a4d3c557bf6" . "b6b4b0d724559"]);
        $module = $requestData->get($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["modu" . "le"], $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_4d707fab9" . "3bebb00bbe" . "69e8159697" . "c90"]);
        $language = $requestData->get($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["lang" . "uage"]);
        $this->validateModule($module);
        $_a7442cd7a4d3c557bf6b6b4b0d724559 = $this->initializePrompt($module, AiPluginInterface::TYPE_TEXT_GENERATION, $language, $_a7442cd7a4d3c557bf6b6b4b0d724559);
        $_f9aef021fb8e50005cc6aa3a9d7e2117 = $this->responseFactory->GetEventStreamResponse(function () use($_a7442cd7a4d3c557bf6b6b4b0d724559) {
            $_e696d5598f94156853fd8b977b8c344c = new Parsedown();
            $_77ab044ee5ed2012c760c0fbb7bd34f9 = $GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_4d707fab93beb" . "b00bbe69e81596" . "97c90"];
            $this->ai->generateTextStream(function (VertexAiGenerateTextResponse $_fd5a3a643834299cbdadfc3540ba0bcb) use($_e696d5598f94156853fd8b977b8c344c, &$_77ab044ee5ed2012c760c0fbb7bd34f9) {
                if ($_fd5a3a643834299cbdadfc3540ba0bcb->hasTerminated()) {
                    $this->flush($GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_321258308ef09879cd184188c6" . "cd2744"]);
                } else {
                    try {
                        $_77ab044ee5ed2012c760c0fbb7bd34f9 .= $_fd5a3a643834299cbdadfc3540ba0bcb->getGeneratedText();
                    } catch (Throwable $throwable) {
                        $this->handleException($throwable);
                    }
                    $this->flush($GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_e05e0022a2e5ad344b9" . "c4a0d3f64e1a5"], $this->claText->SanitizeHtml($_e696d5598f94156853fd8b977b8c344c->text($_77ab044ee5ed2012c760c0fbb7bd34f9)));
                }
            }, $_a7442cd7a4d3c557bf6b6b4b0d724559);
            $this->flush($GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_7669a8431d2368" . "b1dc09581496aea" . "68e"]);
        });
        return $_f9aef021fb8e50005cc6aa3a9d7e2117;
    }
    
    
    
    
    
    
    
    
    
    public function generateText(RequestData $requestData) : Response
    {
        $_a7442cd7a4d3c557bf6b6b4b0d724559 = $requestData->get($GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_a7442cd7a4d3c557" . "bf6b6b4b0d724559"]);
        $module = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["mo" . "du" . "le"], $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_4d707fab93bebb00bbe6" . "9e8159697c90"]);
        $language = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["lang" . "uage"]);
        $metadata = $requestData->get($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_9a122dd9e0255ca418d473" . "b4ba68f14b"], []);
        $this->validateModule($module);
        $_a7442cd7a4d3c557bf6b6b4b0d724559 = $this->initializePrompt($module, AiPluginInterface::TYPE_TEXT_GENERATION, $language, $_a7442cd7a4d3c557bf6b6b4b0d724559, $metadata);
        try {
            $_fd5a3a643834299cbdadfc3540ba0bcb = $this->ai->generateText($_a7442cd7a4d3c557bf6b6b4b0d724559);
        } catch (Throwable $throwable) {
            $this->handleException($throwable);
        }
        return $this->responseFactory->GetJsonPrettyResponse([$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["te" . "xt"] => $this->claText->SanitizeHtml($_fd5a3a643834299cbdadfc3540ba0bcb)]);
    }
    
    
    
    
    
    
    
    public function generateImages(RequestData $requestData) : Response
    {
        $_a7442cd7a4d3c557bf6b6b4b0d724559 = $requestData->get($GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_a7442cd7a4d3c557bf6b6b4b0d7" . "24559"]);
        $options = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_e956b2b" . "d945b591" . "c54805c9" . "582d15a3" . "b"]);
        if (!($this->config->get($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_2e384775c6854f" . "15e613f8da88db6" . "08d"])[$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_54faabe694dfa8d05dc6c0827a21" . "4f82"]] ?? false)) {
            throw new RestExBadRequest($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_475c4ddf7873ea4e9044df10ae31d" . "01e"]);
        }
        $_d2c06c4cf8a9682c756442538657aa7e = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_f73dab606630b388645c4f7d3fbb13b" . "b"]($this->initializePrompt($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_54faabe694dfa8d05dc" . "6c0827a214f82"], AiPluginInterface::TYPE_IMAGE_GENERATION), [new TextPart($_a7442cd7a4d3c557bf6b6b4b0d724559)]);
        try {
            $_f083878fb61180fbf68ba3a77b8d7de3 = $this->ai->generateImages(Util::extractText($_d2c06c4cf8a9682c756442538657aa7e), new AiImageConfiguration($options ?? []));
        } catch (Throwable $throwable) {
            $this->handleException($throwable);
        }
        return $this->responseFactory->GetJsonPrettyResponse([$GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_f083878fb61180f" . "bf68ba3a77b8d7de" . "3"] => $GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_38f12d8" . "b8c719a8" . "ce0fc2fa" . "efc225f3" . "5"](function ($_54faabe694dfa8d05dc6c0827a214f82) {
            return [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_655a561f4e3" . "4bbdfa745dc1" . "3393471b3"] => $_54faabe694dfa8d05dc6c0827a214f82->getMimeType(), $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["d" . "a" . "t" . "a"] => $_54faabe694dfa8d05dc6c0827a214f82->getValue()];
        }, $_f083878fb61180fbf68ba3a77b8d7de3)]);
    }
    
    
    
    
    
    
    
    public function generateChat(RequestData $requestData) : JsonPrettyResponse
    {
        $_a82e7c9cba13670954fbe01d604c242a = $requestData->get($GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_df34c069de43011ade22c" . "720a3318f60"], []);
        $module = $requestData->get($GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["mo" . "du" . "le"], $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_4d707fab93bebb00bbe69" . "e8159697c90"]);
        $language = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["lang" . "uage"]);
        $metadata = $requestData->get($GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_9a122dd9e0255c" . "a418d473b4ba68f" . "14b"], []);
        $this->validateModule($module);
        $_6f77ebd0332e42368c37efd859b74de7 = $this->ai->getInitializationPrompt($module, AiPluginInterface::TYPE_CHAT_GENERATION, $language, $metadata);
        $_9961f986823b4be7f5c4cc8379c6b228 = $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_38f12d8b8c719a8" . "ce0fc2faefc225f3" . "5"](function ($_9258ac851c9bc3180b251966de4a02bc) {
            if (isset($_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["da" . "ta"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_655a561f4e34b" . "bdfa745dc13393" . "471b3"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_d1071a032" . "215f0eb5c4" . "a8ef175f70" . "49d"]])) {
                return new FilePart($_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["d" . "a" . "t" . "a"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_655a561f4e34bbdfa745dc1" . "3393471b3"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_d1071a032" . "215f0eb5c4" . "a8ef175f70" . "49d"]]);
            }
            return new TextPart($_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["te" . "xt"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_d1071a032215f0eb5c4a8ef175f7" . "049d"]]);
        }, $_a82e7c9cba13670954fbe01d604c242a);
        if ($_6f77ebd0332e42368c37efd859b74de7) {
            $_9961f986823b4be7f5c4cc8379c6b228 = $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_f73dab606" . "630b388645" . "c4f7d3fbb1" . "3bb"]($_6f77ebd0332e42368c37efd859b74de7, $_9961f986823b4be7f5c4cc8379c6b228);
        }
        try {
            $text = $this->ai->generateChat($_9961f986823b4be7f5c4cc8379c6b228);
        } catch (Throwable $throwable) {
            $this->handleException($throwable);
        }
        $_e696d5598f94156853fd8b977b8c344c = new Parsedown();
        return $this->responseFactory->GetJsonPrettyResponse([$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_d962cfd1735adb" . "2dfba46f69c7f15" . "cb8"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_d1071a032215f0eb5c4a8" . "ef175f7049d"] => PartInterface::PART_ROLE_MODEL, $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["t" . "e" . "x" . "t"] => $this->claText->SanitizeHtml($_e696d5598f94156853fd8b977b8c344c->text($text))]]);
    }
    
    
    
    
    
    
    
    
    
    
    private function initializePrompt(string $module, string $pluginType, ?string $languageCode = null, ?string $userPrompt = null, ?array $metadata = null) : ?array
    {
        $_cec480cefdb389e4790714f70ba7809c = $this->ai->getInitializationPrompt($module, $pluginType, $languageCode, $metadata);
        return $GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_ea8229a12" . "1285ee649a" . "72fd880bac" . "39b"]($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_f73dab606630b388645c4f7d3f" . "bb13bb"]($_cec480cefdb389e4790714f70ba7809c, [new TextPart($userPrompt ?? $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_4d707fab93bebb00bbe69e" . "8159697c90"])]), function ($_59cdb5ce92fcf760d09d3c6ed5b03aaa) {
            return $_59cdb5ce92fcf760d09d3c6ed5b03aaa !== null && !empty($_59cdb5ce92fcf760d09d3c6ed5b03aaa->getValue());
        });
    }
    
    
    
    
    
    
    
    
    private function flush(string $status, string $text = '')
    {
        echo $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_a1b32522d3c9a793e0e43" . "07466b172d9"] . $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_7aefd48" . "2de7885f" . "4293c292" . "6df28c23" . "5"]([$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["st" . "at" . "us"] => $status, $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["tex" . "t"] => $text]) . $GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_cfab5a4a680" . "4604f4998a72" . "44eba86bd"];
        $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_c2900f1" . "4e63513f" . "00ce80ed" . "bb045506" . "c"]();
        $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_1128df95be7b7ba48" . "e931c0662b158c1"]();
    }
    
    
    
    
    
    
    
    
    
    
    private function handleException($throwable) : void
    {
        if ($throwable instanceof AiInvalidRequestException) {
            throw new RestExBadRequest(($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_839809c6beb4465bd21e03" . "7814ee4683"]), $throwable->getCode(), $throwable);
        } elseif ($throwable instanceof AiContentFilterException) {
            throw new RestExBadRequest(($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_e10fcb4" . "2c314666" . "50609758" . "a397def4" . "3"]), $throwable->getCode(), $throwable);
        } elseif ($throwable instanceof AiInvalidResponseException || $throwable instanceof AiServerResponseException) {
            throw new RestExError(($this->lmsg)($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_eac6791bbe0" . "decdc5761307" . "838b277de"], $throwable->getCode()), $throwable->getCode(), $throwable);
        }
        throw new RestExError($throwable->getMessage(), $throwable->getCode(), $throwable);
    }
    
    
    
    
    
    
    private function validateModule(string $module) : void
    {
        $_7e868a0f1e76721d67a3c57a1406d916 = $this->ai->getModules();
        if (empty($_7e868a0f1e76721d67a3c57a1406d916)) {
            throw new RestExBadRequest($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_967e161ed500fcf1" . "1d56175ec79897dc"]);
        }
        if (!$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_bd71c3b5c201fc11db82ed14" . "ce424de5"]($module, $_7e868a0f1e76721d67a3c57a1406d916)) {
            $_de3bcb12af58b547f987c780da4b95d3 = $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_e608e5b5c4c34a67ba97" . "ef84c1e16199"] . $GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_5159b3572969eca46acd1" . "b2e1418459c"]($GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_1ab2691b0" . "149e6c0f5b" . "ef2e034d68" . "c11"], $_7e868a0f1e76721d67a3c57a1406d916) . $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_e608e5b5" . "c4c34a67b" . "a97ef84c1" . "e16199"];
            throw new RestExBadRequest($GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_b2ffc45fa7bfe7aac72914" . "a57d0f9162"] . $module . $GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_8dacf526543365" . "460ea3a88a3a090" . "4a1"] . $_de3bcb12af58b547f987c780da4b95d3);
        }
    }
}