<?php
namespace Claromentis\Search\Client;

$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"] ?: array()) + array("_455f2d904708bbd315582cbd96427a" . "ec" => base64_decode("cmV" . "hbF" . "9za" . "Xpl"), "keywor" . "ds" => base64_decode("a2V5d29y" . "ZHM="), "si" . "ze" => base64_decode("c2l6" . "ZQ=="), "_2c297518be54" . "1f8b9283eda58" . "99ae63b" => base64_decode("cmV" . "hbF" . "9mc" . "m9t"), "_1e7d5a9034314226251ffb62a7faaf6" . "b" => base64_decode("dmVjdG9yX2tleXd" . "vcmRz"), "fro" . "m" => base64_decode("ZnJv" . "bQ=="));







class RankFusionResolver implements ResponseResolverInterface
{
    private ElasticsearchRankFusion $rankFusion;
    
    
    
    
    
    
    public function __construct(ElasticsearchRankFusion $_86dac47bedcf22c0af36cb2116e8c741)
    {
        $this->rankFusion = $_86dac47bedcf22c0af36cb2116e8c741;
    }
    public function resolve(array $_94f80d178820183de370d9e8d7f3a5fc, array $options) : array
    {
        if (!isset($options[$GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_1e7d5a9034314226251ffb62a7f" . "aaf6b"]])) {
            return $_94f80d178820183de370d9e8d7f3a5fc;
        }
        $from = $options[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_2c297518be541f8b9283eda5899a" . "e63b"]] ?? $options[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["fro" . "m"]] ?? null;
        $size = $options[$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_455f2d904708bbd315582cbd96427a" . "ec"]] ?? $options[$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["siz" . "e"]] ?? null;
        return $this->rankFusion->rank($_94f80d178820183de370d9e8d7f3a5fc, $options[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["ke" . "yw" . "or" . "ds"]] ?? null, $from, $size);
    }
}