The jihadists holed up in a Paris suburb apartment had been planning to attack Charles de Gaulle Airport and a shopping mall before a special forces team stopped them in the nick of time in a predawn raid Wednesday, French media reported.

French authorities said the terrorists in Saint-Denis comprised a fourth team of jihadists hell-bent on unleashing death and terror — in addition to the three teams that killed 129 people and injured 350 others in Paris on Friday, France TV reported.

A woman wearing an explosive vest blew herself up, one terrorist and a police dog were killed, and seven people were arrested Wednesday when special forces tried to storm the apartment where the alleged mastermind of last week’s slaughter was believed to be staying, authorities said.

The raid was launched after information from tapped phone conversations, surveillance and witness accounts indicated that Abdelhamid Abaaoud might be in the apartment in Saint-Denis, French prosecutor Francois Molins said.

Authorities could not immediately confirm whether Abaaoud, a Belgian Islamic State militant, was killed or arrested Wednesday morning.

DNA tests will be used to determine if the alleged ringleader was killed, a Belgian counterterrorism official told CNN.

The raid resulted in the collapse of an entire floor of the apartment building, where authorities found body parts, the source told CNN.

The terrorists in the apartment were planning a strike at the Paris airport and the Mall of Quatre Temps in La Défense (Hauts-de-Seine), according to France 2.

Police were seen escorting away a man who was naked from the waist down, and another wrapped in a gold emergency blanket.

“As things stand, it is impossible to give you the identities of the people detained, which are being verified,” Molins said at the scene. “All will be done to determine who is who, and based on the work of forensic police, we’ll tell you who was in the apartment — and what consequences it will have for the development of the investigation.”

French President François Hollande praised the bravery of the forces and said that France was “at war.”

“It is the entire country that’s been attacked,” Hollande told a gathering of French mayors. “For what it represents, the fight we are leading to eradicate terrorism. And simply for what we are.”

A standoff continued for more than seven hours — with gunfire and loud bangs reverberating throughout the historic suburb.

Four police officers were slightly injured and a SWAT team dog, a Malinois named Diesel, was shot dead by terrorists in the action, police said.

“The operation is over,” government spokesman Stephane Le Foll said about 6 a.m. EST.

The city of Saint-Denis also tweeted that a security perimeter was still set up — warning residents not to leave their homes.

A police official said he believed the Belgian Islamic State jihadist was in the apartment along with five others when the raid was launched not far from the Stade de France, where three of the seven attackers blew themselves up on Friday.

A White House official said President Obama, who is in Manila for an economic summit, has been briefed on the raid.

French media also reported that authorities zeroed in on the Saint-Denis apartment from information they retrieved from one of the attackers’ cellphones that was found in a trash can near the Bataclan concert hall where 89 people were massacred.

Seven attackers died in Friday’s attacks, which targeted several bars and restaurants and the Bataclan concert hall, as well as the national stadium.

The Islamic State has claimed responsibility for the carnage.

A man arrested Wednesday during the raid told AFP that he had lent the apartment to the men as a favor to a friend.

“I said that there was no mattress, they told me, ‘It’s not a problem,’ they just wanted water and to pray,” the man said, the New York Times reported.

Djamila Khaldi, 54, a cashier who lives near a Gothic basilica nearby, was preparing to take her daughter to the airport when gunfire erupted, the New York Times reported.

She told the paper she was not surprised authorities had tracked the suspects to the neighborhood. She said a friend believed she had seen one of the suspected terrorists, Salah Abdeslam, on Monday.

“She was terrified and she looked at another woman knowing that she recognized him too,” Khaldi told the Times. “They did not dare to go to the police.”

Abaaoud was believed to be in Syria after a January police raid in Belgium, but bragged in ISIS propaganda of his ability to move back and forth between Europe and Syria undetected.

Hollande held an emergency meeting with senior ministers at the Elysee Palace to monitor the raid.

“We guessed it was linked to Friday night,” said Yves Steux, barman at L’escargot restaurant near the raid. “My wife panicked and was scared and told me not to leave, but I ignored her. Life goes on.”

Baptiste Marie, a 26-year-old independent journalist who lives in the neighborhood, said a second large explosion was followed by “two more explosions. There was an hour of gunfire.”

Another witness, Amine Guizani, said he heard the sound of grenades and automatic gunfire.

“It was continuous. It didn’t stop,” he said. “It lasted from 4:20 until 5:30. It was a good hour. I couldn’t say how many shots were fired, but it was probably 500. Hundreds, definitely. There were maybe 10 explosions.”

A US official briefed on intelligence matters said Abaaoud was a key figure in an Islamic State external operations cell that US intelligence agencies have been tracking for many months.

In Saint-Denis on Wednesday, cops cordoned off the area nearby, including a pedestrian zone lined with shops and 19th-century apartment buildings. Riot police cleared people from the streets, pointing guns at curious residents to move them off the roads.

French authorities had previously said that at least eight people were directly involved in the bloodshed: seven who died in the attacks and one who got away and slipped across the border to Belgium.

However, there have been gaps in officials’ public statements, which have never fully disclosed how many attackers took part in the deadly rampage.

On Tuesday, officials told the AP they now believe at least one other attacker was involved and they were working to identify and track down that suspect.

Surveillance video obtained by the AP also indicated that a team of three attackers carried out the shootings at one of the cafes. The video was among evidence authorities used in concluding that at least one other attacker was at large, the French officials indicated.

The brief clip shows two black-clad gunmen with automatic weapons firing on the bar, then returning toward a waiting car, whose driver was maneuvering behind them.

Authorities believe the car is the same black SEAT-make vehicle that was found Saturday with three Kalashnikovs inside.

View video

Police have identified one subject of their manhunt as Abdeslam, whom French police accidentally permitted to cross into Belgium on Saturday. One of his brothers, Brahim, blew himself up in Paris.

Meanwhile, French fighter jets attacked Islamic State targets in Syria for a third night. The French Defense Ministry said 10 jets had hit two Islamic State command centers in the militants’ base of Raqqa, Syria.

France — and the rest of Europe — remains on edge four days after the attacks.

Two Air France flights bound for Paris from the US were diverted Tuesday night — one to Salt Lake City and one to Halifax — because of anonymous threats received after they had taken off. Both were inspected and cleared to resume their journeys.

In other recent developments from the Paris attacks:

At least 33 ISIS militants have been killed by military airstrikes in the last 72 hours, according to the Syrian Observatory for Human Rights. The London-based group said many of the terrorists living in Raqqa, Syria, are fleeing to Mosul, Iraq, out of safety concerns.

France will not “cede to fear,” Hollande said during an address to local politicians Wednesday. “Life must resume,” he said, urging people to get back to their normal lives. “What would our country be without its cafes, concerts, sports events, museums?” He pledged additional security to help facilitate museum and other cultural attraction reopenings. Hollande also hit back at those linking the terrorist attacks that killed 129 and injured hundreds more to Syrian refugees — confirming that France will still accept 30,000 refugees in the next two years. “Some people have tried to draw a connection between the movement of refugees from the Middle East and the terrorist threat,” he said. “This link exists because people from Iraq and Syria live in areas controlled by Islamic State and are killed by those who attack us.”

Copenhagen International Airport’s main terminal was evacuated Wednesday because of a “suspicious bag,” according to the Associated Press. A slew of emergency personnel — including a bomb squad, fire trucks and police — were seen accessing the situation.

German Chancellor Angela Merkel said she thought officials made the right decision to cancel the soccer match between Germany and the Netherlands due to multiple security concerns. “These are difficult decisions, perhaps the most difficult given the conflicting priorities of freedom and security,” she said. “I was just as sad as millions of fans that the match was canceled, but the security officials took a responsible decision.”

Since Sunday, there have been more than 400 raids in France.

European authorities are searching for a Citroen Xsara that could be transporting Salah Abdeslam. French authorities have sent out a document to European police asking them to be on the lookout for the getaway vehicle, a Spanish security official told El Español.

With Post wires