A stab victim almost bled to death on a two-minute ambulance journey to hospital, the High Court heard.
Garry Collie needed an emergency transfusion of three litres of blood when he arrived at accident and emergency.
Paramedics applied two tourniquets and constant pressure to his injured leg as they rushed him to hospital but were unable to stop blood spurting from a main artery.
The 33-year-old would have died if he had not had immediate medical treatment, the court at Livingston was told.
Sieann Smith, 25, of Balgarvie Crescent, Cupar, who pled guilty to stabbing Mr Collie to his severe injury, permanent disfigurement and to the danger of his life, was jailed for four years.
Her boyfriend Callum Gilchrist, 26, of Morriston Road, Elgin, was sentenced to 21 months in prison for pinning Mr Collie down, holding a knife against his face and threatening to cut off his ear before repeatedly cutting him on the face and hand with the blade.
Their friend Stephen Gauld, 25, who admitted repeatedly punching Mr Collie on the head and body to his injury was admonished and dismissed because he had served the equivalent of a five-month jail sentence on remand.
Judge Lord Kinclaven, passing sentence, told all three accused they had pled guilty to a “very serious” offence.
Addressing Smith, he said: “This was a significant escalation of your offending. There is no alternative to significant custodial sentence.”
He backdated her sentence to May 9 when he remanded her in custody.
He told Gilchrist his 21-month prison sentence would be backdated to August 17 2016 when he was placed on remand.
The court was told earlier Mr Collie dropped in to visit the three accused and Gauld’s girlfriend after hearing music from Gilchrist’s home in Morriston Road, Elgin, on August 15 2016.
He thought that all the people in the house looked “out of their faces” on drugs, but decided to sit down and roll himself a cigarette.
Initially things were fine but Gilchrist later went into the kitchen and picked up a knife with a six-inch silver blade and accused Mr Collie of having robbed him a year earlier.
Smith also returned to the living room carrying a white knife she had taken from the kitchen.
On the ambulance journey to hospital Mr Collie was drifting in and out of consciousness and the paramedics were concerned he would die, the court heard.