Minecraft wiki entry for Before_1.8, associated text: Base Value of the target.
Prior Work Penalties of both target and sacrifice.
If renaming, the extra cost of renaming
If the target item is not at full durability, the repair cost depending on the sacrifice.
If the sacrifice has enchantments, the enchantment cost