Archive for the ‘Libya’ Category

World Report 2019: Libya | Human Rights Watch

Unaccountable militiassome linked to the interior and defense ministries of the United Nations-backed Government of National Accord (GNA), and others linked to the Libyan National Army (LNA) affiliated with the rival Interim Governmentcontinued to clash with each other in various parts of the country, as efforts to reconcile main parties in the east and west failed. In Libyas south, Tebu, Tuareg, and Arab armed groups continued to clash for control of territory and resources.

Despite the UNs support for holding elections in 2018, prospects for a nationwide vote remained dim due to the political impasse.

The violence, including frequent attacks on oil installations, disrupted the economy and public services. Around 200,000 people remained internally displaced, as of October.

Armed groups, some of them affiliated with the GNA or the Interim Government, carried out extrajudicial executions, attacked civilians and civilian properties, and abducted, tortured, and disappeared people.

The extremist armed group Islamic State (also known as ISIS) carried out several attacks that killed both civilians and members of the security forces.

Although the number of migrants and asylum seekers who transited Libya en route to Europe dropped dramatically compared to 2017, the number of those who died trying to reach Europe via the so-called Central Mediterranean Route soared. Those who ended up in detention in Libya faced ill-treatment and inhumane conditions at the hands of guards in official detention centers run by one of the competing governments, and in unofficial places of detention controlled by militias or traffickers and smugglers.

The GNA struggled to gain control over territory and institutions in western Libya. The LNA, under the command of General Khalifa Hiftar and allied with the Interim Government, expanded control over territory in the east and south.

Libyas legislative body, the House of Representatives (HOR), allied with the LNA and Interim Government, approved on September 25 amendments to the 2011 Constitutional Declaration, paving the way for a referendum on the draft constitution, and gave the High National Elections Commission (HNEC) 90 days to organize the referendum.

On January 23, unidentified armed groups detonated two car bombs in front of Bayaat al-Radwan mosque in Benghazi, killing at least 34 people and wounding over 90. Video recordings appeared to show LNA commander Mahmoud al-Werfalli, wanted for war crimes by the International Criminal Court (ICC) since August 2017, allegedly executing 10 individuals on January 24 in front of the same mosque.

Between February and June, clashes in the southern town of Sebha between armed groups loyal to the Awlad Suleiman and Tebu groups killed at least 16 civilians.

On May 2, ISIS claimed responsibility for an armed attack on the HNEC in Tripoli that, according to news reports, resulted in the killing of 14, most of them staff members, and the wounding of least 19 others.

In May, after a nearly 20-month-long siege of Derna, the LNA started a land and air operation to wrest control of the eastern city from the Derna Mujahedeen Shura Council (DMSC), an armed group that includes Islamists that opposes the LNA. As of September, resistance was reduced to one neighborhood, where some families remained trapped by the fighting. According to GNA-linked local council officials and members of the Derna Committee for Displaced, at least 1,000 families had been displaced by the fighting to other towns. Local officials also alleged cases of extrajudicial executions, appropriation of private property, looting, and arbitrary detention by the LNA as it overran the city.

Clashes erupted on August 26 in the capital, Tripoli, between armed groups vying for control of state institutions and lasted one month. While the southern parts of the city bore the brunt, indiscriminate shelling in neighborhoods elsewhere also killed civilians and destroyed infrastructure. At least 120 people were killed and 400 wounded over the course of the month-long fighting, according to the UN Support Mission in Libya (UNSMIL). The fighting involved destruction of civilian property, looting, abductions, and the displacement of thousands.

ISIS claimed responsibly for an attack on October 29, on al-Foqha, a town in central Libya, that resulted in the killing of four civiliansincluding two who were executed in publicin addition to at least nine who were abducted, according to UNSMIL.

Civilian and military courts operated at reduced capacity and were closed down entirely in some parts of the country

Prison authorities, often only nominally under the authority of one or another of the two rival governments, continued to hold thousands of detainees in long-term arbitrary detention without charges.

Pursuant to a ceasefire agreement between warring factions, the Special Deterrence Force (SDF), which is linked with the GNA Interior Ministry, released in September from Mitiga Prison, one of its prisons in Tripoli, 120 prisoners who had been held beyond the expiration of their sentences. In October, the SDF transferred 120 prisoners accused or sentenced for minor infractions, from Mitiga to Jdeida Prison, which is controlled by the GNA Justice Ministry. According to UNSMIL, authorities released 255 detainees in the aftermath of the crisis as of November 8.

Over 100 mostly non-Libyan women and children remain held without charge in two prisons in Tripoli and Misrata, and 24 orphaned children were at time of writing being held separately in a facility run by the Libyan Red Crescent in Misrata, all of them because of their suspected familial relationship to alleged ISIS fighters. There are few prospects for their release, either because it is not clear where they are from or because their governments will not accept their repatriation. Prisons in Libya are marked by overcrowding, bad living conditions, widespread ill-treatment and the lack of specialized services for women and children, such as educational and leisure activities and medical care.

On July 4, a second arrest warrant was issued at the International Criminal Court (ICC) against LNA Commander al-Werfalli. Al-Werfallis whereabouts were unknown at time of writing.

The ICC unsealed in April 2017 an arrest warrant that it had issued in 2013 for Mohamed Khaled al-Tuhamy, who, under ousted Libyan leader Muammar Gaddafi, headed the Internal Security Agency, for serious crimes committed during the 2011 uprising. His whereabouts were unknown at time of writing.

Saif al-Islam Gaddafi, a son of former Libyan leader Muammar Gaddafi, who was sentenced to death in absentia by a Libyan court in 2015, continued to be subject to an ICC arrest warrant to face charges of crimes against humanity. Gaddafis current whereabouts cannot be confirmed; independent international observers have not seen or heard from him since 2014.

In her November update to the Security Council, ICC Prosecutor Fatou Bensouda responded to a challenge brought by Saif al-Islam Gaddafi disputing the admissibility of his case in front of the ICC and affirmed that he should be arrested and surrendered to the court.

The death penalty is stipulated in over 30 articles in Libyas penal code, including for acts of speech and association. An unknown number of people were sentenced to death by Libyan civil and military courts since 2011, often after trials marred by due process violations. No death sentences have been carried out since 2010.

On August 15, and despite allegations of serious due process violations, a Tripoli court convicted 99 suspected Gaddafi supporters in a mass trial, sentencing 45 to death and 54 to five years in prison, in relation to the alleged killing of 146 people during the 2011 uprising.

The International Organization for Migration (IOM) estimated that around 200,000 people were internally displaced in Libya as of October.

A few hundred of the 40,000 residents of Tawergha whom armed groups and authorities based in Misrata forcibly displaced in 2011, began to return to their hometown after authorities representing Misrata and Tawergha signed a reconciliation memorandum in June. Authorities in the city of Misrata accused Tawerghans of having committed serious crimes as alleged Gaddafi supporters during the 2011 uprising that ousted him. Misrata-linked armed groups ransacked, looted, burned, and destroyed the town after the departure of the population in 2011.

Fighting in eastern Libya since May 2014 has displaced thousands of civilians from Benghazi and Ajdabiya. They have sought shelter in the west of the country after militias affiliated with the LNA accused them of being terrorists and detained them, and attacked, burned or appropriated their homes. Since 2014, authorities in Misrata and Tripoli have detained tens of people displaced from Benghazi, often on dubious terrorism allegations. Since the fighting started in May in Derna, at least 1,000 families fled the fighting, according to Derna officials.

Armed groups intimidated, threatened, and physically attacked activists, journalists, bloggers, and media professionals.

On April 29, the SDF arrested Suleiman Qashout and Ahmed Yaacoubi, organizers of an annual media award in Libya. They were both released in July, after being held without charge. Relatives and colleagues speculated that the SDF might have targeted the men because it disapproved of revealing clothing and the mixing of men and women at the award ceremony.

Musa Abdul Kareem, a journalist with the newspaper Fasanea, which is based in the south of Libya, was found dead on July 31 in Sebha, after unidentified individuals abducted him. According to news reports, Kareem had written reports critical of militias in Sebha.

On August 1, an armed group linked with the GNA Interior Ministry detained at the Tripoli Naval Base four Libyan journalists and photographers from Reuters and Agence France-Presse who were covering migration-related issues and held them for 10 hours without explanation.

Since 2011, militias and forces affiliated with several interim authorities, as well as ISIS fighters, have attacked religious minorities, including Sufis, Ibadis, and Christians, and destroyed religious sites in Libya with impunity.

On November 28, 2017, unidentified assailants set fire to Zawiyat Sheikha Radiya, a historic Sufi mosque in Tripoli, heavily damaging it. This attack follows the destruction by unidentified assailants in October 2017 of Sidi Abu Gharara, another historic Sufi mosque in Tripoli.

In July, unidentified armed groups attacked and damaged at least four Sufi sites in Al-Majouri and Al-Kish neighborhoods of Benghazi.

Libyan law does not criminalize domestic violence. Personal status laws discriminate against women, particularly with respect to marriage, divorce, and inheritance. The penal code allows for a reduced sentence for a man who kills or injures his wife or another female relative because he suspects her of extramarital sexual relations. It also allows rapists to escape prosecution if they marry their victim.

The penal code prohibits all sexual acts outside marriage, including consensual same-sex relations, and punishes them with flogging and up to five years in prison.

According to human rights activists, armed groups have continued to detain people because of their sexual orientation.

Libya remained a major hub for refugees, asylum seekers, and migrants on their way to Europe. Human Rights Watch interviewed migrants and asylum seekers who reported a litany of abuses at the hands of smugglers, and members of militias and gangs including rapes, beatings, and killings, with no intervention or protection provided by Libyas weak law enforcement agencies.

As of August, the International Organization for Migration (IOM) recorded around 20,000 arrivals to Italy and Malta by sea since January, most of whom departed from Libya. According to the UN High Commissioner for Refugees (UNHCR), at least 1,111 died or went missing while crossing the central Mediterranean route to Europe. As of August, the IOM reported that there were 669,176 migrants in Libya, including more than 60,000 children.

Libya is not a party to the 1951 Refugee Convention and does not have a refugee law or procedure. UNHCR registers some asylum seekers but theyand those unable to registerare not effectively protected and assisted in Libya.

To discourage and prevent arrivals in Europe from Libya, the European Union has provided training, equipment, and funds to Libyan coast guard forces to intercept boats both in Libyan coastal waters and international waters, and to return migrants and asylum seekers to Libyan territory.

Migrants and asylum seekers who are captured at sea and returned to Libyan territory, are placed in detention, where many suffer inhumane conditions, including beatings, sexual violence, extortion, forced labor, inadequate medical treatment, and insufficient food and water.

The Department for Combating Illegal Migration (DCIM), under the GNA Interior Ministry, manages the formal migrant detention centers, while smugglers and traffickers run informal ones. As of July, DCIM estimated that official detention centers were holding 9,000 migrants and asylum seekers in Libya.

The United States continued to conduct what it calls precision airstrikes against purported ISIS and Al-Qaeda targets in the south and west of the country. The United States did not report any civilian casualties

In a report issued on May 10, Cecilia Jimenez-Damary, the special rapporteur on the human rights of internally displaced persons (IDPs) and the first expert under the UN Special Procedures mechanisms to visit Libya after 2011, criticized the lack of a legal framework for addressing the rights and needs of IDPs, and the absence of a comprehensive policy in line with international standards.

In June, the UN Security Council renewed the arms embargo on Libya, effective since 2011, for another 12 months, and added measures to inspect vessels suspected of violating the embargo. On June 7, the Libya Sanctions Committee responsible for overseeing sanctions imposed by the Security Council, approved the addition of six individualsincluding two Eritrean and six Libyan nationalsto the Libya Sanctions List subjecting them to asset freezes and travel bans in relation to alleged serious human rights abuses of migrants and participation in illicit human trafficking and smuggling.

On September 5, the UN Panel of Experts, established pursuant to UN Security Council resolution 1973 (2011), issued its final 2018 report on threats and attacks on Libyan state institutions, human rights abuses, violations of the arms embargo, illicit exports of petroleum and implementation of asset freezes and travel bans. The report found that most armed groups involved in human rights violations were affiliated with the GNA or LNA.

According to the panel, weapons transfers to eastern Libyan such as armored vehicles, rifles, mortar, and rocket launchers have increased most notably in eastern Libya, which indicated that member states were not sufficiently enforcing the arms embargo.

In September, the UN Sanctions Committee imposed an asset freeze and travel ban on Ibrahim Jadhran, a Libyan militia commander, for his repeated attacks against the oil crescent region in Libya that resulted in civilian casualties and for his attempts to export oil illegally.

The mandate of the European Unions anti-smuggling naval operation in the central Mediterranean, Operation Sophia, runs until December 2018. It aims to disrupt migrant smugglers and human traffickers; it also has provided training to Libyan Coastguard and Navy forces and contributed to the enforcement of the UN arms embargo in international waters off Libyas coast.

Read more from the original source:
World Report 2019: Libya | Human Rights Watch

Libya, on brink of civil war, opens Houston oil HQ …

These refining towers are at Libya's Zawiya oil refinery near Tripoli.

These refining towers are at Libya's Zawiya oil refinery near Tripoli.

These refining towers are at Libya's Zawiya oil refinery near Tripoli.

These refining towers are at Libya's Zawiya oil refinery near Tripoli.

Libya, on brink of civil war, opens Houston oil HQ

On the brink of an escalating civil war, Libya opened its new U.S. oil headquarters Wednesday in Houston with the hope of political stability and increasing petroleum output on the horizon.

Libya's national oil company opened its new office in the BBVA Compass Plaza on Post Oak Boulevard in the Galleria area.

The new headquarters will serve as Libya's procurement office as it seeks to buy equipment from American energy companies and contract with U.S. services firms.

Libya's oil output is hovering near 900,000 barrels a day, which is down from 2018 highs of more than 1 million barrels. But the North African nation aspires for a lot of petroleum growth if it get stabilize its political leadership and reach a ceasefire. Libya aims to grow above 2 million barrels daily by the end of 2021.

"This office is projected to source over $10 billion worth of equipment, technology and services within the next few years, in addition to employing Houstonians and serving as an additional resource in the business community," said David Phillips, chairman of the Bilateral U.S.-Arab Chamber of Commerce.

RELATED:Oil rises on optimism OPEC+ supply curbs will stabilize market

Mustafa Sanalla, the chairman of Libya National Oil Corp., and Mohamed Abdo Denbarno, the General Manager of the Houston office, marked the grand opening on Wednesday with a ribbon cutting ceremony.

Read the original here:
Libya, on brink of civil war, opens Houston oil HQ ...

Libya’s rival governments move to financial war with …

TRIPOLI (Reuters) - With the frontlines around Libyas contested capital Tripoli stalemated, the two rival factions are bringing oil and money supplies into the firing line of their battle for power.

FILE PHOTO: Members of forces loyal to Libyan military commander Khalifa Haftar are seen with military vehicles near Libya's El Sharara oilfield in Obari,Libya, February 11, 2019. REUTERS/Stringer

Khalifa Haftar, chief of the eastern-based forces which are attacking the city, is putting pressure on state oil firm NOC and its operations in his fiefdom, diplomats and analysts say.

In response, the internationally-recognized government in Tripoli is limiting his access to hard currency, the sources said.

The moves mark a new turn in a war which started in early April when Haftar, who is allied to a parallel administration in eastern Libya, mounted a campaign to capture Tripoli.

His Libyan National Army (LNA) fighters have been unable to advance into the city center and costs are piling up as ammunition and other supplies need to be brought in from their home base in Benghazi 1,000 km (600 miles) away.

This has prompted Haftar to use oil as a strategic asset.

The LNA controls areas surrounding most of Libyas oil infrastructure but it does not benefit directly from oil and gas sales, which go through NOC in Tripoli managing the day-to-day operations.

NOC has tried to stay out of the conflict but it distributes energy revenues to the Tripoli-based central bank, which only works with Tripoli-based Prime Minister Fayez al-Serraj.

In recent days, Haftar has met with two executives working for NOC in the east in his base outside Benghazi.

The first was the chairman of NOC subsidiary AGOCO, which produces a third of Libyas output. Then Haftar met NOC board member Jadallah al-Awakli.

His office released pictures of the meetings showing the general dressed in military uniform.

Asked by Reuters about his meeting, Awakli said oil operations were benefiting from security provided by the LNA.

I congratulate the LNA on its victories, he said.

Another NOC unit in east Libya, Sirte Oil firm, also expressed support for the Tripoli offensive on its website.

The meetings took place days after the LNA sent a warship to Ras Lanuf port 600 km (400 miles) from the frontlines.

At the same time NOC said soldiers had entered Es Sider port and seized its air strip. It condemned what it called a militarization of oil facilities but did not name the LNA, which controls the area.

LNA officials denied this and said oil ports work normally.

Diplomats and analysts saw the move as a sign that Haftar wants to remind Tripoli he can stop oil exports as a way to pressure Serraj into a deal to share oil revenues should he not win on the battlefield.

The LNA last year tried to export oil bypassing NOC via a parallel NOC entity which has some 500 staff on duty.

NOC is concerned by renewed attempts to divide the corporation, a spokesman for NOC Tripoli said. It is particularly alarmed by evidence of staff coercion and is attempting to clarify the circumstances behind recent statements in support of the armed assault on Tripoli.

Analysts said Haftar is under financial pressure because Tripoli has limited his access to hard currency.

The LNA needs to import gear via merchants as its main foreign backers, Egypt and United Arab Emirates, have provided heavy equipment such as helicopters but have been reluctant to provide cash, Western and Gulf diplomatic sources said.

Haftar appears to be contingency planning for how he will continue funding his growing operation and what will likely be a prolonged conflict, said Tarek Megerisi, a European Council

policy fellow.

Diplomats said Haftar is trying gain the upper hand in the Tripoli war before the holy Muslim fasting month of Ramadan next week, when life slows down. The LNA would still need to maintain costly supply lines if a long stalemate occurs.

Haftar could try to force Tripoli into a deal by blocking oil exports, which would end funding for the government, or he could even consider trying to sell oil again, analysts said.

Washington stopped previous such attempts, even dispatching Navy SEALs to storm a tanker which had set off from a port run by a rogue commander in 2014.

Given he currently enjoys the backing of President (Donald) Trump, Haftar may now feel emboldened to try again and create a reliable revenue stream for himself, Megerisi said.

Trump told Haftar in a phone call he recognized his efforts in securing oil facilities, the White House has said.

Libyas output has been so far unaffected, remaining at about 1.1 million barrels a day though the conflict has divided even technocrats. An oil manager in Tripoli joined the front as well as engineers in the east.

An armed group on Monday attacked the southern El Sharara oilfield, which pumps 300,000 bpd, exploiting a vacuum as the LNA has moved troops north.

Tripoli has responded to Haftars moves with the central bank (CBL) on Monday imposing special checks on four banks, three of them in Benghazi, before they can get hard currency.

It cited suspicions of corruption but the east said this was just an excuse.

CBL...has opened a frontline of war and a siege on banks in Barqa, said Ramzi al-Agha, head of the liquidity committee at the eastern parallel central bank.

Barqa is a term for the east often used by activists demanding secession or at least autonomy from the west.

Jalel Harchaoui, research fellow at the Clingendael Institute in The Hague, said Haftar felt emboldened by a paralysis of U.N Security Council which has been unable to even call for a ceasefire.

Using the counter-terrorism argument many profound changes could be implemented especially with foreign support, he said. A big chunk of at oil exports is at risk owing to political reasons.

Continued here:
Libya's rival governments move to financial war with ...

Libya offensive stalls, but Haftar digs in given foreign …

TRIPOLI/PARIS (Reuters) - Military strongman Khalifa Haftars intended lightning seizure of Libyas capital has stalled, but he is unlikely to face real pressure from abroad to pull back as the arrival of hardline opponents bolsters his war cry against terrorism.

FILE PHOTO: A Libyan man carries a picture of Khalifa Haftar during a demonstration to support Libyan National Army offensive against Tripoli, in Benghazi, Libya April 12, 2019. REUTERS/Esam Omran Al-Fetori

Haftars eastern-based Libyan National Army (LNA) advanced to the outskirts of Tripoli almost two weeks ago, predicting defections, victory within two days and joyful women ululating in the streets.

However, the internationally-recognized government of Prime Minister Fayez al-Serraj has managed to bog them down in southern suburbs, thanks largely to armed groups who have rushed to aid them from various western Libyan factions.

And instead of ululating, many women in fact joined a rally on Friday in Tripoli against the offensive.

Haftar, a 75-year-old former general in former dictator Muammar Gaddafis army, has been building up troop numbers and intensifying air strikes in a campaign he is selling as necessary to restore order and eradicate jihadists.

That, however, is uniting Haftars enemies behind Serraj, who lacks regular forces and needs help, but may find them difficult to control the longer the war drags on, analysts say.

Renewed conflict has scuppered for now a U.N. peace plan for Libya, with a national reconciliation conference planned for this week postponed. It also threatens to disrupt oil supplies from the OPEC member and cause new migration across the sea to Europe.

Diplomats believe Haftar for now will face no pressure from backers including the United Arab Emirates, Egypt and France, who still see him as the best bet to end the chaos and divisions since the ousting of Gaddafi in 2011.

Their case, which undermines calls by former colonial ruler Italy and others for a political solution, is aided by the arrival of militants in recent days to help Serrajs forces.

One of them is Salah Badi, a commander from nearby Misrata port who has Islamist ties and possible ambitions himself to take Tripoli. In videos from the front line, Badi has been seen directing men as well as a U.N.-sanctioned people trafficker.

Some hardcore Islamists, previously affiliated to Ansar Sharia, have also popped up in the fighting, according to the videos. That group was blamed by Washington for the 2012 storming of a U.S. diplomatic compound in Benghazi that killed the ambassador and three other Americans.France, which has oil assets in Libya though less than Italy, has called for a ceasefire - albeit more reluctantly than Rome - while also echoing Haftars narrative that some extremists were among the Tripoli defenders.

There is an oversimplification. It is not just Haftar the baddy against the goodies in Tripoli and Misrata. There are groups that are at the end of the day allied to al Qaeda on the other side, said a French diplomatic source.

Perhaps if those opposed to Haftar had done a deal with him in 2017, the balance of power would not have shifted against them, the source said, referring to when France brought Haftar and Serraj together for face-to-face talks in Paris.

Serrajs government has sought to downplay the presence of hardliners. On both sides there are members accused of being violators, Mohamed Siyala, his foreign minister, told reporters.

Haftars own troops are swelled by an estimated hundreds of Salafist Islamists, and one of his commanders is wanted by the International Criminal Court over the alleged summary execution of dozens of people in the eastern city of Benghazi.

It was there that Haftar in 2014 launched his Operation Dignity campaign, naming his forces an army to try and distinguish from militias elsewhere.

He won the Benghazi battle against mainly Islamists in 2017 with covert support from the UAE, Egypt and France, but some of his defeated foes are now in Tripoli seeking revenge.

Neighboring Egypts President Abdel-Fattah al-Sisi met Haftar at the weekend in Cairo and in a statement confirmed Egypts support for efforts to combat terrorism.

Wolfram Lacher, a researcher at German think tank SWP, said there was exaggeration of the presence of militants in Tripoli for propaganda purposes.

These elements are a tiny minority of the forces that are fighting against Haftar right now, but this could become a self-fulfilling prophecy the longer this goes on, he said.

So anybody who has an interest in preventing jihadist mobilization in Libya should have an interest in stopping this war now.

In the past, the UAE and Egypt have supported Haftar with air strikes in eastern Libya, but it is unclear whether they would do so in the current campaign, diplomats and analysts say.

For Paris, Haftar, or a perceived stable army in Tripoli, is key to its wider policy against militants in the Sahel.

France has some 4,500 troops in the deserts to the south and west of Libya, and wants to ensure the porous borders are locked as tightly as possible. Its support of Haftar will depend on whether it thinks he can win or how much civilian casualties can be contained.

Should those escalate and refugee numbers swell, then it may be forced to be more proactive in pressuring Haftar.

It will also depend on how UAE support evolves.

France has listened increasingly closely to Abu Dhabi Crown Prince Mohammed bin Zayeds views on Libya since President Emmanuel Macron came to power. An internal policy battle in France between the foreign and defense ministries prior to his arrival had until then blurred Paris lines.

While France is keen to project its Libya policy as a home-grown policy, in reality France merely follows the UAE more or less, said Jalel Harchaoui, research fellow at the Clingendael Institute think-tank in The Hague.

What this means today is: Unless MBZ decides that Haftar has blown his chance and failed irretrievably, Emmanuel Macron is unlikely to alter or subdue his pro-Haftar policy in Libya.

Additional reporting by Ahmed Elumami in Tripoli; Editing by Andrew Cawthorne

Read more:
Libya offensive stalls, but Haftar digs in given foreign ...

Libya: UN-backed government condemns Tripoli airport …

' : ""},a.getDefinedParams = function(n, e) {return e.filter((function(e) {return n[e]})).reduce((function(e, t) {return r(e, (function(e, t, n) {t in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n;return e})({}, t, n[t]))}), {})},a.isValidMediaTypes = function(e) {var t = ["banner", "native", "video"];if (!Object.keys(e).every((function(e) {return (0,u.default)(t, e)})))return !1;if (e.video && e.video.context)return (0,u.default)(["instream", "outstream"], e.video.context);return !0},a.getBidderRequest = function(e, t, n) {return (0,o.default)(e, (function(e) {return 0 > t / 4).toString(16) : ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, e)},a.getBidIdParameter = function(e, t) {return t && t[e] ? t[e] : ""},a.tryAppendQueryString = function(e, t, n) {return n ? e + (t + "=") + encodeURIComponent(n) + "&" : e},a.parseQueryStringParameters = function(e) {var t = "";for (var n in e)e.hasOwnProperty(n) && (t += n + "=" + encodeURIComponent(e[n]) + "&");return t},a.transformAdServerTargetingObj = function(t) {return t && 0 ';return t += ''},a.createTrackPixelIframeHtml = function(e) {var t = !(1 n ') : ""},a.getIframeDocument = function(e) {if (e) {var t = void 0;try {t = e.contentWindow ? e.contentWindow.document : e.contentDocument.document ? e.contentDocument.document : e.contentDocument} catch (e) {a.logError("Cannot get iframe document", e)}return t}},a.getValueString = function(e, t, n) {return null == t ? n : a.isStr(t) ? t : a.isNumber(t) ? t.toString() : void a.logWarn("Unsuported type for param: " + e + " required type: String")};a.getHighestCpm = U("timeToRespond", (function(e, t) {return t = u.syncsPerBidder)return c.logWarn('Number of user syncs exceeded for "' + t + '"');if (u.filterSettings) {if (function(e, t) {var n = u.filterSettings;if (function(e, t) {if (e.all && e[t])return c.logWarn('Detected presence of the "filterSettings.all" and "filterSettings.' + t + '" in userSync config. You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.'),!1;var n = e.all ? e.all : e[t], r = e.all ? "all" : t;if (!n)return !1;var i = n.filter, o = n.bidders;if (i && "include" !== i && "exclude" !== i)return c.logWarn('UserSync "filterSettings.' + r + ".filter" setting '" + i + "' is not a valid option; use either 'include' or 'exclude'."),!1;return !!("*" === o || Array.isArray(o) && 0 n n n prebid.org wrappern n " + (n ? "" : "") + "n n n n "),ttlseconds: Number(e.ttl)}}},23: function(e, t) {var n = {}.toString;e.exports = function(e) {return n.call(e).slice(8, -1)}},24: function(e, t) {e.exports = function(e) {if (null == e)throw TypeError("Can't call method on " + e);return e}},25: function(e, t, n) {var r = n(60)("wks"), i = n(62), o = n(19).Symbol, a = "function" == typeof o;(e.exports = function(e) {return r[e] || (r[e] = a && o[e] || (a ? o : i)("Symbol." + e))}).store = r},26: function(e, t) {e.exports = function() {}},27: function(e, t, n) {"use strict";Object.defineProperty(t, "__esModule", {value: !0}),t.default = function(e) {var t = e;return {callBids: function() {},setBidderCode: function(e) {t = e},getBidderCode: function() {return t}}}},28: function(e, t, n) {"use strict";var r, i = n(7), o = (r = i) && r.__esModule ? r : {default: r}, a = (function(e) {{if (e && e.__esModule)return e;var t = {};if (null != e)for (var n in e)Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);return t.default = e,t}})(n(0));var d = {}, u = ["criteo"];function s(e, t) {var n = document.createElement("script");n.type = "text/javascript",n.async = !0,t && "function" == typeof t && (n.readyState ? n.onreadystatechange = function() {"loaded" !== n.readyState && "complete" !== n.readyState || (n.onreadystatechange = null,t())}: n.onload = function() {t()}),n.src = e;var r = document.getElementsByTagName("head");(r = r.length ? r : document.getElementsByTagName("body")).length && (r = r[0]).insertBefore(n, r.firstChild)}t.loadExternalScript = function(e, t) {if (t && e)if ((0,o.default)(u, t)) {if (!d[e]) {a.logWarn("module " + t + " is loading external JavaScript");var n = document.createElement("script");n.type = "text/javascript",n.async = !0,n.src = e,a.insertElement(n),d[e] = !0}} else a.logError(t + " not whitelisted for loading external JavaScript");else a.logError("cannot load external script without url and moduleCode")},t.loadScript = function(t, e, n) {t ? n ? d[t] ? e && "function" == typeof e && (d[t].loaded ? e() : d[t].callbacks.push(e)) : (d[t] = {loaded: !1,callbacks: []},e && "function" == typeof e && d[t].callbacks.push(e),s(t, (function() {d[t].loaded = !0;try {for (var e = 0; e t.max ? e : t}), {max: 0}), p = (0,v.default)(e.buckets, (function(e) {if (n > g.max * r) {var t = e.precision;void 0 === t && (t = y),i = (e.max * r).toFixed(t)} else if (n = e.min * r)return e}));return p && (t = n,a = r,d = void 0 !== (o = p).precision ? o.precision : y,u = o.increment * a,s = o.min * a,c = Math.pow(10, d + 2),f = (t * c - s * c) / (u * c),l = Math.floor(f) * u + s,i = (l = Number(l.toFixed(10))).toFixed(d)),i}function m(e) {if (o.isEmpty(e) || !e.buckets || !Array.isArray(e.buckets))return !1;var t = !0;return e.buckets.forEach((function(e) {void 0 !== e.min && e.max && e.increment || (t = !1)})),t}t.getPriceBucketString = function(e, t) {var n = 2 (0,S.timestamp)()},function(e) {return e && (e.status && !(0,A.default)([C.BID_STATUS.BID_TARGETING_SET, C.BID_STATUS.RENDERED], e.status) || !e.status)});function U(e, n) {var r = [], i = (0,S.groupBy)(e, "adUnitCode");return Object.keys(i).forEach((function(e) {var t = (0,S.groupBy)(i[e], "bidderCode");Object.keys(t).forEach((function(e) {return r.push(t[e].reduce(n))}))})),r}function u(n) {var g = {};function p(e) {return "string" == typeof e ? [e] : w.isArray(e) ? e : n.getAdUnitCodes() || []}function v() {return U(n.getBidsReceived().filter((function(e) {return "banner" !== e.mediaType || (0,a.sizeSupported)([e.width, e.height])})).filter(d).filter(t.isBidNotExpired), S.getOldestHighestCpmBid)}function y() {return n.getStandardBidderAdServerTargeting().map((function(e) {return e.key})).concat(R).filter(S.uniques)}function m(r, i, e, t) {return Object.keys(i.adserverTargeting).filter(o()).forEach((function(e) {var t, n;r.length && r.filter((n = e,function(e) {return e.adUnitCode === i.adUnitCode && e.adserverTargeting[n]})).forEach((t = e,function(e) {w.isArray(e.adserverTargeting[t]) || (e.adserverTargeting[t] = [e.adserverTargeting[t]]),e.adserverTargeting[t] = e.adserverTargeting[t].concat(i.adserverTargeting[t]).filter(S.uniques),delete i.adserverTargeting[t]}))})),r.push(i),r}function o() {var t = y();return function(e) {return -1 === t.indexOf(e)}}function b(t) {return _({}, t.adUnitCode, Object.keys(t.adserverTargeting).filter(o()).map((function(e) {return _({}, e.substring(0, O), [t.adserverTargeting[e]])})))}return g.resetPresetTargeting = function(e) {if ((0,S.isGptPubadsDefined)()) {var t = p(e), r = n.getAdUnits().filter((function(e) {return (0,A.default)(t, e.code)}));window.googletag.pubads().getSlots().forEach((function(n) {B.forEach((function(t) {r.forEach((function(e) {e.code !== n.getAdUnitPath() && e.code !== n.getSlotElementId() || n.setTargeting(t, null)}))}))}))}},g.getAllTargeting = function(e) {var r, t, i, n, o, a, d, u, s, c = 1 i && (r = !1)),!r})),r && e.run(),r}function u(e, t) {void 0 === e[t] ? e[t] = 1 : e[t]++}},addWinningBid: function(e) {o = o.concat(e),R.callBidWonBidder(e.bidder, e, f)},setBidTargeting: function(e) {R.callSetTargetingBidder(e.bidder, e)},getWinningBids: function() {return o},getTimeout: function() {return E},getAuctionId: function() {return m},getAuctionStatus: function() {return b},getAdUnits: function() {return s},getAdUnitCodes: function() {return l},getBidRequests: function() {return g},getBidsReceived: function() {return p}}},t.auctionCallbacks = W,t.getStandardBidderSettings = d,t.getKeyValueTargetingPairs = V,t.adjustBids = s;var _ = n(0), h = n(31), i = n(17), S = n(228), E = n(12), w = n(3), r = n(18), o = n(20), T = a(n(10)), C = a(n(7)), A = n(41);function a(e) {return e && e.__esModule ? e : {default: e}}var B = r.userSync.syncUsers, O = n(0), R = n(8), U = n(9), N = n(4), D = t.AUCTION_STARTED = "started", j = t.AUCTION_IN_PROGRESS = "inProgress", P = t.AUCTION_COMPLETED = "completed";U.on(N.EVENTS.BID_ADJUSTMENT, (function(e) {s(e)}));var k = 4, x = {}, M = {}, G = [];var q = t.addBidResponse = (0,o.createHook)("asyncSeries", (function(e, t) {this.auctionAddBidResponse(e, t)}), "addBidResponse");function W(e, p) {var v = 0, t = !1, n = (0,_.delayExecution)((function() {t = !0}), p.getBidRequests().length);function y() {v--,t && 0 === v && e()}return {addBidResponse: function(e, t) {v++;var n = p.getBidRequests(), r = p.getAuctionId(), i = (0,_.getBidderRequest)(n, t.bidderCode, e), o = (function(e) {var t = e.adUnitCode, n = e.bid, r = e.bidRequest, i = e.auctionId, o = r.start, a = b({}, n, {auctionId: i,responseTimestamp: (0,_.timestamp)(),requestTimestamp: o,cpm: parseFloat(n.cpm) || 0,bidder: n.bidderCode,adUnitCode: t});a.timeToRespond = a.responseTimestamp - a.requestTimestamp,U.emit(N.EVENTS.BID_ADJUSTMENT, a);var d = r.bids && (0,T.default)(r.bids, (function(e) {return e.adUnitCode == t})), u = d && d.renderer;u && u.url && (a.renderer = E.Renderer.install({url: u.url}),a.renderer.setRender(u.render));var s, c = w.config.getConfig("mediaTypePriceGranularity." + n.mediaType), f = (0,h.getPriceBucketString)(a.cpm, "object" === (void 0 === c ? "undefined" : m(c)) ? c : w.config.getConfig("customPriceBucket"), w.config.getConfig("currency.granularityMultiplier"));return a.pbLg = f.low,a.pbMg = f.med,a.pbHg = f.high,a.pbAg = f.auto,a.pbDg = f.dense,a.pbCg = f.custom,a.bidderCode && (0 e.getTimeout() + w.config.getConfig("timeoutBuffer") && e.executeCallback(!0)}function z(e, t) {U.emit(N.EVENTS.BID_RESPONSE, t),e.addBidReceived(t),I(e, t)}function d(e) {var t = w.config.getConfig("mediaTypePriceGranularity." + e), n = "string" == typeof e && t ? "string" == typeof t ? t : "custom" : w.config.getConfig("priceGranularity"), r = pbjs.bidderSettings;return r[N.JSON_MAPPING.BD_SETTING_STANDARD] || (r[N.JSON_MAPPING.BD_SETTING_STANDARD] = {}),r[N.JSON_MAPPING.BD_SETTING_STANDARD][N.JSON_MAPPING.ADSERVER_TARGETING] || (r[N.JSON_MAPPING.BD_SETTING_STANDARD][N.JSON_MAPPING.ADSERVER_TARGETING] = [{key: N.TARGETING_KEYS.BIDDER,val: function(e) {return e.bidderCode}}, {key: N.TARGETING_KEYS.AD_ID,val: function(e) {return e.adId}}, {key: N.TARGETING_KEYS.PRICE_BUCKET,val: function(e) {return n === N.GRANULARITY_OPTIONS.AUTO ? e.pbAg : n === N.GRANULARITY_OPTIONS.DENSE ? e.pbDg : n === N.GRANULARITY_OPTIONS.LOW ? e.pbLg : n === N.GRANULARITY_OPTIONS.MEDIUM ? e.pbMg : n === N.GRANULARITY_OPTIONS.HIGH ? e.pbHg : n === N.GRANULARITY_OPTIONS.CUSTOM ? e.pbCg : void 0}}, {key: N.TARGETING_KEYS.SIZE,val: function(e) {return e.size}}, {key: N.TARGETING_KEYS.DEAL,val: function(e) {return e.dealId}}, {key: N.TARGETING_KEYS.SOURCE,val: function(e) {return e.source}}, {key: N.TARGETING_KEYS.FORMAT,val: function(e) {return e.mediaType}}]),r[N.JSON_MAPPING.BD_SETTING_STANDARD]}function V(e, t) {if (!t)return {};var n = {}, r = pbjs.bidderSettings;r && (u(n, d(t.mediaType), t),e && r[e] && r[e][N.JSON_MAPPING.ADSERVER_TARGETING] && (u(n, r[e], t),t.sendStandardTargeting = r[e].sendStandardTargeting));return t.native && (n = b({}, n, (0,i.getNativeTargeting)(t))),n}function u(r, i, o) {var e = i[N.JSON_MAPPING.ADSERVER_TARGETING];return o.size = o.getSize(),O._each(e, (function(e) {var t = e.key, n = e.val;if (r[t] && O.logWarn("The key: " + t + " is getting ovewritten"),O.isFn(n))try {n = n(o)} catch (e) {O.logError("bidmanager", "ERROR", e)}(void 0 === i.suppressEmptyKeys || !0 !== i.suppressEmptyKeys) && t !== N.TARGETING_KEYS.DEAL || !O.isEmptyStr(n) && null != n ? r[t] = n : O.logInfo("suppressing empty key '" + t + "' from adserver targeting")})),r}function s(e) {var t = e.bidderCode, n = e.cpm, r = void 0;if (pbjs.bidderSettings && (t && pbjs.bidderSettings[t] && "function" == typeof pbjs.bidderSettings[t].bidCpmAdjustment ? r = pbjs.bidderSettings[t].bidCpmAdjustment : pbjs.bidderSettings[N.JSON_MAPPING.BD_SETTING_STANDARD] && "function" == typeof pbjs.bidderSettings[N.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment && (r = pbjs.bidderSettings[N.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment),r))try {n = r(e.cpm, b({}, e))} catch (e) {O.logError("Error during bid adjustment", "bidmanager.js", e)}0 (eg mediaTypes.banner.sizes)."), e.sizes = n);if (t && t.video) {var i = t.video;if (i.playerSize)if (Array.isArray(i.playerSize) && 1 === i.playerSize.length && i.playerSize.every(d)) e.sizes = i.playerSize;else if (d(i.playerSize)) {var o = [];o.push(i.playerSize),w.logInfo("Transforming video.playerSize from " + i.playerSize + " to " + o + " so it's in the proper format."),e.sizes = i.playerSize = o} else w.logError("Detected incorrect configuration of mediaTypes.video.playerSize. Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request."), delete e.mediaTypes.video.playerSize}if (t && t.native) {var a = t.native;a.image && a.image.sizes && !Array.isArray(a.image.sizes) && (w.logError("Please use an array of sizes for native.image.sizes field. Removing invalid mediaTypes.native.image.sizes property from request."),delete e.mediaTypes.native.image.sizes),a.image && a.image.aspect_ratios && !Array.isArray(a.image.aspect_ratios) && (w.logError("Please use an array of sizes for native.image.aspect_ratios field. Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete e.mediaTypes.native.image.aspect_ratios),a.icon && a.icon.sizes && !Array.isArray(a.icon.sizes) && (w.logError("Please use an array of sizes for native.icon.sizes field. Removing invalid mediaTypes.native.icon.sizes property from request."),delete e.mediaTypes.native.icon.sizes)}})),e},h.callBids = function(e, t, r, i, o, a) {if (t.length) {var n = t.reduce((function(e, t) {return e[Number(void 0 !== t.src && t.src === C.S2S.SRC)].push(t),e}), [[], []]), d = b(n, 2), u = d[0], s = d[1];if (s.length) {var c = (0,E.ajaxBuilder)(a, o ? {request: o.request.bind(null, "s2s"),done: o.done} : void 0), f = U.bidders, l = R[U.adapter], g = s[0].tid, p = s[0].adUnitsS2SCopy;if (l) {var v = {tid: g,ad_units: p};if (v.ad_units.length) {var y = s.map((function(e) {return e.start = (0,S.timestamp)(),i})), m = v.ad_units.reduce((function(e, t) {return e.concat((t.bids || []).reduce((function(e, t) {return e.concat(t.bidder)}), []))}), []);w.logMessage("CALLING S2S HEADER BIDDERS ==== " + f.filter((function(e) {return (0,A.default)(m, e)})).join(",")),s.forEach((function(e) {B.emit(C.EVENTS.BID_REQUESTED, e)})),l.callBids(v, s, r, (function() {return y.forEach((function(e) {return e()}))}), c)}}}u.forEach((function(e) {e.start = (0,S.timestamp)();var t = R[e.bidderCode];w.logMessage("CALLING BIDDER ======= " + e.bidderCode),B.emit(C.EVENTS.BID_REQUESTED, e);var n = (e.doneCbCallCount = 0,E.ajaxBuilder)(a, o ? {request: o.request.bind(null, e.bidderCode),done: o.done} : void 0);t.callBids(e, r, i, n)}))} else w.logWarn("callBids executed with no bidRequests. Were they filtered by labels or sizing?")},h.videoAdapters = [],h.registerBidAdapter = function(e, t) {var n = (2 n

n

n

n

Excerpt from:
Libya: UN-backed government condemns Tripoli airport ...