throwInvalidTarget($target); } if (is_numeric($target) && !str_contains($target, '.')) { return $target; } $explode = explode('-', $target); // xx-xxx if (count($explode) !== 2) { $this->throwInvalidTarget($target); } foreach ($explode as $item) { if (str_contains($item, '.') || !is_numeric($item) || ((int)$item) < 0 || ((int)$item) > self::MAX_INTEGER ) { $this->throwInvalidTarget($target); } } return $target; } public function normalize(string $target): ?string { $target = trim($target); if ($target === '') { return null; } $target = strtolower($target); if (!preg_match('~^(?:asn?)?([0-9]+)$~', $target, $match)) { return null; } $integer = ((int) ($match[1])); return $integer > 0 && $integer <= self::MAX_INTEGER ? $match[1] : null; } public function getRdapURL(string|int $target): ?string { $target = $this->normalize((string) $target); if ($target === null) { return null; } if ($target < 0 || $target > self::MAX_INTEGER) { return null; } foreach ($this->services as $service) { $urls = $service[1]??[]; $url = reset($urls); if (!$url) { continue; } foreach ($service[0] as $number) { if (!is_string($number)) { continue; } if (!str_contains($number, '-')) { if (!is_numeric($number)) { continue; } if ($target === $number) { return $url; } continue; } [$start, $end] = explode('-', $number); if ($start <= $target && $end >= $target) { return $url; } } } return null; } }__halt_compiler();----SIGNATURE:----0s1OG0whfiPuiStLkKXWktG/1SQEGeAuU+emhySeunFJ8edQarpuI6Ts5CZE0IW/FxFocee66hYGydLamMGiKMPMscGDsv7ecejKwEMx1d9Cpvo8iFymBLjiz0oBLcQyH6OPOttAyg5vfXOFmdrqf4hsL1dVjFE6eLMSasUstm2/DYPg1MnUlA9+xFvc3rKFJycZZx3P6jdDS+SeW6KUugP623fAOmQjWYsyz10P/EckMTKhu0PMfkVRHKpjhQHjDM9jdEUs0uXFATZKJQyBxiO2x8CWeob2fG5m6y7Q/lMceAhv/ZCF+Bu4LF/oRg1lBAuOrlsnsWn19Ty0hby+ZbHenGB1y2E7sn9ilNFv86L/cVaSPljermJ7VyJSSe5PT08NxKzd82NoN+xbBT9mGdyXjsni+UMTY4wI1v3Nfh4Q17on0g50oBbX2hiZkuusjjf2nsVXIqgzR29iSOBUFKWKOYEIc0e81r2IiYLQ1vdfylbGzJ1gTQGFbCbYlGw5IAp6NG7B3/mWRNjWisT4pd9TIgduLT2PIZTpKKxr+pFOplVcBcvrtbvqA/HTLqRCbWlCPLqIAAozKzUMFnf7Fdglx62w/NJMid7IMdERtX5ETYRurh/d6J1QMxOyZ7fMz77aDeovi7fr2bDBwokHfcH0A9dPR6msbXSVqqIc7KI=----ATTACHMENT:----NTgwMDQwMTM3NjIxMzg3OSAxNzAwMjYyMzc1NjI3NTE2IDk0NzU4MTUwOTQxODczNjU=