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($value, PATHINFO_EXTENSION); 		}  		if ( 			$value 			&& $ext 			&& strtolower($ext) === 'webp' 			&& ($value = file_get_contents($value)) 			&& str_contains($value, 'ANIM') 		) { 			$fail('validation.custom.safe-webp')->translate(); 		} 	}