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

$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"] ?: array()) + array("_321258308ef09879cd184188c6cd2" . "744" => base64_decode("dGVybWluYX" . "RlZA=="), "lang" . "uage" => base64_decode("bGF" . "uZ3" . "VhZ" . "2U="), "_df34c069" . "de43011ad" . "e22c720a3" . "318f60" => base64_decode("aGlzdG9ye" . "Vtd"), "modul" . "e" => base64_decode("bW9kd" . "Wxl"), "_1128df95be7b7ba48e931c" . "0662b158c1" => base64_decode("Zmx1c2g" . "="), "_655a561f4e34b" . "bdfa745dc13393" . "471b3" => base64_decode("bWltZV90eX" . "Bl"), "_475c4ddf78" . "73ea4e9044d" . "f10ae31d01e" => base64_decode("QUkgaW1hZ2UgZ2VuZXJhdGlvbiBpcyBkaXNhYmxlZA" . "=="), "_38f12d8b8c719a8ce0fc2faefc225f" . "35" => base64_decode("YXJyYXlfbWF" . "w"), "_54faabe694dfa" . "8d05dc6c0827a2" . "14f82" => base64_decode("aW1hZ" . "2U="), "_4d707fab93bebb00bbe69" . "e8159697c90" => base64_decode(""), "_c2900f14e63513f0" . "0ce80edbb045506c" => base64_decode("b2JfZ" . "mx1c2" . "g="), "_b2ffc45fa7bfe7" . "aac72914a57d0f9" . "162" => base64_decode("SW52YWxpZCBtb2R" . "1bGUgJw=="), "_e956b2bd945b591c5480" . "5c9582d15a3b" => base64_decode("b3B0aW9" . "uc1td"), "_ea8229a" . "121285ee" . "649a72fd" . "880bac39" . "b" => base64_decode("YXJyYXlfZml" . "sdGVy"), "_9a122dd9e0255ca418d473b4ba68f" . "14b" => base64_decode("bWV0Y" . "WRhdG" . "FbXQ=" . "="), "_7669a8431d2" . "368b1dc09581" . "496aea68e" => base64_decode("ZmluaXN" . "o"), "_a1b32522d3c9a7" . "93e0e4307466b17" . "2d9" => base64_decode("ZGF0YT" . "og"), "da" . "ta" => base64_decode("ZGF0YQ=" . "="), "_d962cfd" . "1735adb2" . "dfba46f6" . "9c7f15cb" . "8" => base64_decode("cG" . "Fy" . "dA" . "=="), "_f73dab6" . "06630b38" . "8645c4f7" . "d3fbb13b" . "b" => base64_decode("YXJyYXlfb" . "WVyZ2U="), "_24ca62b4d01cc6d515dfd0bea4c" . "9d59a" => base64_decode("Y29udGVud" . "A=="), "_7aefd482de7885f4293c292" . "6df28c235" => base64_decode("anNvbl9lbmNvZ" . "GU="), "_eac6791bbe" . "0decdc57613" . "07838b277de" => base64_decode("Y29tbW9uLmFp" . "LnVuZXhwZWN0" . "ZWRfcmVzcG9u" . "c2U="), "_e05e0022a2e5ad344b9c4a0d3f64" . "e1a5" => base64_decode("bWVz" . "c2Fn" . "ZQ=="), "_bd71c3b" . "5c201fc1" . "1db82ed1" . "4ce424de" . "5" => base64_decode("aW5fYXJy" . "YXk="), "tex" . "t" => base64_decode("dG" . "V4" . "dA" . "=="), "_967e161ed500fcf11d56175ec79897" . "dc" => base64_decode("QUkgaXMgbm90IGVuYWJsZWQgZm9y" . "IGFueSBtb2R1bGVz"), "_f083878fb6118" . "0fbf68ba3a77b8" . "d7de3" => base64_decode("aW1hZ2V" . "z"), "_5159b3572969eca46acd1b2e1418459" . "c" => base64_decode("aW1wbG9kZ" . "Q=="), "_e10fcb42c31466650" . "609758a397def43" => base64_decode("Y29tbW9uLmFpLmJsb2NrZWR" . "fcHJvbXB0"), "_d1071a032215f" . "0eb5c4a8ef175f" . "7049d" => base64_decode("cm9s" . "ZQ=="), "_cfab5a4a680" . "4604f4998a72" . "44eba86bd" => base64_decode("C" . "g" . "o" . "="), "_1ab2691b0149e6c0f5bef2e03" . "4d68c11" => base64_decode("Jy" . "wg" . "Jw" . "=="), "_8dacf526543365460e" . "a3a88a3a0904a1" => base64_decode("JzsgdmF" . "saWQgbW" . "9kdWxlc" . "yBhcmUg"), "_e608e5b5c4c34a67b" . "a97ef84c1e16199" => base64_decode("J" . "w" . "=" . "="), "_a7442cd7a4d3c557bf6b6b4b0d72455" . "9" => base64_decode("cHJv" . "bXB0"), "_839809c6beb4465bd21e0" . "37814ee4683" => base64_decode("Y29tbW9uLmFpLmludmFsaWRfcHJvb" . "XB0"), "sta" . "tus" => base64_decode("c3RhdH" . "Vz"));
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["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_a7442cd7a4d3c557bf6b6" . "b4b0d724559"]);
        $module = $requestData->get($GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["mo" . "du" . "le"], $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_4d707fab93bebb00bbe69e815" . "9697c90"]);
        $language = $requestData->get($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["lan" . "gua" . "ge"]);
        $this->validateModule($module);
        $plugin = $this->ai->getPlugin($module, AiPluginInterface::TYPE_TEXT_GENERATION);
        if ($plugin) {
            $_a7442cd7a4d3c557bf6b6b4b0d724559 = $this->initializeParts($plugin, $language, $_a7442cd7a4d3c557bf6b6b4b0d724559);
        }
        $_f9aef021fb8e50005cc6aa3a9d7e2117 = $this->responseFactory->GetEventStreamResponse(function () use($_a7442cd7a4d3c557bf6b6b4b0d724559) {
            $_e696d5598f94156853fd8b977b8c344c = new Parsedown();
            $_77ab044ee5ed2012c760c0fbb7bd34f9 = $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_4d707fab93bebb00bbe69e81" . "59697c90"];
            $this->ai->generateTextStream(function (VertexAiGenerateTextResponse $_fd5a3a643834299cbdadfc3540ba0bcb) use($_e696d5598f94156853fd8b977b8c344c, &$_77ab044ee5ed2012c760c0fbb7bd34f9) {
                if ($_fd5a3a643834299cbdadfc3540ba0bcb->hasTerminated()) {
                    $this->flush($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_321258308ef09879cd184188c6cd" . "2744"]);
                } else {
                    try {
                        $_77ab044ee5ed2012c760c0fbb7bd34f9 .= $_fd5a3a643834299cbdadfc3540ba0bcb->getGeneratedText();
                    } catch (Throwable $throwable) {
                        $this->handleException($throwable);
                    }
                    $this->flush($GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_e05e0022a2e5" . "ad344b9c4a0d3" . "f64e1a5"], $this->claText->SanitizeHtml($_e696d5598f94156853fd8b977b8c344c->text($_77ab044ee5ed2012c760c0fbb7bd34f9)));
                }
            }, $_a7442cd7a4d3c557bf6b6b4b0d724559);
            $this->flush($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_7669a8431d2368b1dc095814" . "96aea68e"]);
        });
        return $_f9aef021fb8e50005cc6aa3a9d7e2117;
    }
    
    
    
    
    
    
    
    
    
    public function generateText(RequestData $requestData) : Response
    {
        $_a7442cd7a4d3c557bf6b6b4b0d724559 = $requestData->get($GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_a7442cd7a4d3c557b" . "f6b6b4b0d724559"]);
        $module = $requestData->get($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["mo" . "du" . "le"], $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_4d707fab93bebb00bbe69e81" . "59697c90"]);
        $language = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["languag" . "e"]);
        $metadata = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_9a122dd9e0255ca" . "418d473b4ba68f14" . "b"], []);
        $this->validateModule($module);
        $plugin = $this->ai->getPlugin($module, AiPluginInterface::TYPE_TEXT_GENERATION);
        if ($plugin) {
            $_a7442cd7a4d3c557bf6b6b4b0d724559 = $this->initializeParts($plugin, $language, $_a7442cd7a4d3c557bf6b6b4b0d724559, $metadata);
        }
        try {
            $_fd5a3a643834299cbdadfc3540ba0bcb = $this->ai->generateText($_a7442cd7a4d3c557bf6b6b4b0d724559, $plugin ? $plugin->getConfiguration() : null);
            if ($plugin) {
                $_fd5a3a643834299cbdadfc3540ba0bcb = $plugin->transformResponse($_fd5a3a643834299cbdadfc3540ba0bcb);
            } else {
                $_fd5a3a643834299cbdadfc3540ba0bcb = $this->claText->SanitizeHtml($_fd5a3a643834299cbdadfc3540ba0bcb);
            }
        } catch (Throwable $throwable) {
            $this->handleException($throwable);
        }
        return $this->responseFactory->GetJsonPrettyResponse([$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_24ca62b4d01cc6d515dfd0bea4c9d59" . "a"] => $_fd5a3a643834299cbdadfc3540ba0bcb]);
    }
    
    
    
    
    
    
    
    public function generateImages(RequestData $requestData) : Response
    {
        $_a7442cd7a4d3c557bf6b6b4b0d724559 = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_a7442cd7a4d3c" . "557bf6b6b4b0d7" . "24559"]);
        $options = $requestData->get($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_e956b2bd945b591c54805c9582d1" . "5a3b"]);
        if (!$this->ai->isModuleEnabled($GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_54faabe694dfa8d05dc6c0827a2" . "14f82"])) {
            throw new RestExBadRequest($GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_475c4ddf7873ea4e9044df10ae31d" . "01e"]);
        }
        $plugin = $this->ai->getPlugin($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_54faabe694dfa8d0" . "5dc6c0827a214f82"], AiPluginInterface::TYPE_IMAGE_GENERATION);
        if ($plugin) {
            $_a7442cd7a4d3c557bf6b6b4b0d724559 = $this->initializeParts($plugin, null, $_a7442cd7a4d3c557bf6b6b4b0d724559, null);
        }
        try {
            $_f083878fb61180fbf68ba3a77b8d7de3 = $this->ai->generateImages(Util::extractText($_a7442cd7a4d3c557bf6b6b4b0d724559), new AiImageConfiguration($options ?? []));
        } catch (Throwable $throwable) {
            $this->handleException($throwable);
        }
        return $this->responseFactory->GetJsonPrettyResponse([$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_f083878fb61180fbf" . "68ba3a77b8d7de3"] => $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_38f12d8b8c719a8ce0fc2faef" . "c225f35"](function ($_54faabe694dfa8d05dc6c0827a214f82) {
            return [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_655a561f4e34bb" . "dfa745dc1339347" . "1b3"] => $_54faabe694dfa8d05dc6c0827a214f82->getMimeType(), $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["dat" . "a"] => $_54faabe694dfa8d05dc6c0827a214f82->getValue()];
        }, $_f083878fb61180fbf68ba3a77b8d7de3)]);
    }
    
    
    
    
    
    
    
    public function generateChat(RequestData $requestData) : JsonPrettyResponse
    {
        $_a82e7c9cba13670954fbe01d604c242a = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_df34c069de43" . "011ade22c720a" . "3318f60"], []);
        $module = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["mo" . "du" . "le"], $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_4d707fab93bebb00bbe69e8" . "159697c90"]);
        $language = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["la" . "ng" . "ua" . "ge"]);
        $metadata = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_9a122dd9e0255c" . "a418d473b4ba68f" . "14b"], []);
        $this->validateModule($module);
        $plugin = $this->ai->getPlugin($module, AiPluginInterface::TYPE_CHAT_GENERATION);
        if ($plugin) {
            $_a7442cd7a4d3c557bf6b6b4b0d724559 = $this->initializeParts($plugin, $language, null, $metadata);
        }
        $_9961f986823b4be7f5c4cc8379c6b228 = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_38f12d8b8c719a8ce" . "0fc2faefc225f35"](function ($_9258ac851c9bc3180b251966de4a02bc) {
            if (isset($_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["dat" . "a"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_655a561f4e34bbdfa745dc133934" . "71b3"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_d1071a032215f0eb5c4a8ef175f704" . "9d"]])) {
                return new FilePart($_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["d" . "a" . "t" . "a"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_655a561f4e34bbdfa745dc13393" . "471b3"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_d1071a03221" . "5f0eb5c4a8ef" . "175f7049d"]]);
            }
            return new TextPart($_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["t" . "e" . "x" . "t"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_d1071a032215f0eb5c4a8ef175f704" . "9d"]]);
        }, $_a82e7c9cba13670954fbe01d604c242a);
        if ($_a7442cd7a4d3c557bf6b6b4b0d724559) {
            $_9961f986823b4be7f5c4cc8379c6b228 = $GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_f73dab606630b38" . "8645c4f7d3fbb13b" . "b"]($_a7442cd7a4d3c557bf6b6b4b0d724559, $_9961f986823b4be7f5c4cc8379c6b228);
        }
        try {
            $_fd5a3a643834299cbdadfc3540ba0bcb = $this->ai->generateChat($_9961f986823b4be7f5c4cc8379c6b228);
            if ($plugin) {
                $_fd5a3a643834299cbdadfc3540ba0bcb = $plugin->transformResponse($_fd5a3a643834299cbdadfc3540ba0bcb);
            } else {
                $_fd5a3a643834299cbdadfc3540ba0bcb = $this->claText->SanitizeHtml($_fd5a3a643834299cbdadfc3540ba0bcb);
            }
        } catch (Throwable $throwable) {
            $this->handleException($throwable);
        }
        return $this->responseFactory->GetJsonPrettyResponse([$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_d962cfd1735adb2dfba46f69c7f15" . "cb8"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_d1071a032215f0eb" . "5c4a8ef175f7049d"] => PartInterface::PART_ROLE_MODEL, $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_24ca62b4d01cc6d515dfd0be" . "a4c9d59a"] => $_fd5a3a643834299cbdadfc3540ba0bcb]]);
    }
    
    
    
    
    
    
    
    
    
    
    
    
    private function initializeParts(AiPluginInterface $plugin, ?string $languageCode = null, ?string $userPrompt = null, ?array $metadata = null) : ?array
    {
        $_70b52ce74e40801d2c81b11669a461e6 = $this->ai->getSystemPromptParts($plugin, $languageCode, $metadata);
        return $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_ea8229a121285ee649a72fd8" . "80bac39b"]($GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_f73dab606630b" . "388645c4f7d3fb" . "b13bb"]($_70b52ce74e40801d2c81b11669a461e6, [new TextPart($userPrompt ?? $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_4d707fab93bebb00bbe69" . "e8159697c90"])]), function ($_59cdb5ce92fcf760d09d3c6ed5b03aaa) {
            return $_59cdb5ce92fcf760d09d3c6ed5b03aaa !== null && !empty($_59cdb5ce92fcf760d09d3c6ed5b03aaa->getValue());
        });
    }
    
    
    
    
    
    
    
    
    private function flush(string $status, string $text = '')
    {
        echo $GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_a1b32522" . "d3c9a793e" . "0e4307466" . "b172d9"] . $GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_7aefd482de7885f4293c2926df28c23" . "5"]([$GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["statu" . "s"] => $status, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["t" . "e" . "x" . "t"] => $text]) . $GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_cfab5a4a68" . "04604f4998a" . "7244eba86bd"];
        $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_c2900f14e63513f0" . "0ce80edbb045506c"]();
        $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_1128df95be7b7ba48e" . "931c0662b158c1"]();
    }
    
    
    
    
    
    
    
    
    
    
    private function handleException($throwable) : void
    {
        if ($throwable instanceof AiInvalidRequestException) {
            throw new RestExBadRequest(($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_839809c6beb4465bd" . "21e037814ee4683"]), $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["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_eac6791bbe0decdc5761307838b277" . "de"], $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["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_967e161ed500fcf" . "11d56175ec79897d" . "c"]);
        }
        if (!$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_bd71c3b5c201fc11db" . "82ed14ce424de5"]($module, $_7e868a0f1e76721d67a3c57a1406d916)) {
            $_de3bcb12af58b547f987c780da4b95d3 = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_e608e5b5c4c" . "34a67ba97ef8" . "4c1e16199"] . $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_5159b3572" . "969eca46ac" . "d1b2e14184" . "59c"]($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_1ab2691b0" . "149e6c0f5b" . "ef2e034d68" . "c11"], $_7e868a0f1e76721d67a3c57a1406d916) . $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_e608e5b5c4c34a67" . "ba97ef84c1e16199"];
            throw new RestExBadRequest($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_b2ffc45fa7b" . "fe7aac72914a" . "57d0f9162"] . $module . $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_8dacf5265" . "43365460ea" . "3a88a3a090" . "4a1"] . $_de3bcb12af58b547f987c780da4b95d3);
        }
    }
}