public function validate(string $attribute, mixed $value, Closure $fail): void 	{ 		$ext = null;  		if ($value instanceof UploadedFile) { 			$ext = $value->extension(); 			$value = $value->path(); 		} elseif (filter_var($value, FILTER_VALIDATE_URL)) { 			$ext = pathinfo((string) $value, PATHINFO_EXTENSION); 		}  		if (!$value) { 			return; 		}  		if (!$ext) { 			return; 		}  		if (strtolower($ext) !== 'webp') { 			return; 		}  		if (!($value = file_get_contents($value))) { 			return; 		}  		if (!Str::contains($value, 'ANIM')) { 			return; 		}  		$fail('validation.custom.safe-webp')->translate(); 	}