The balance of power in central and eastern europe was reshaped at the end of the seventeenth and beginning of the eighteenth centuries because of the loss of power of: