1. MPC response overview

As of 15 October 2023, a total of 906,121 persons or 180,327 families have been reached by MPC interventions.

A total of USD 29.6 million has been disbursed by 30 implementing agencies in 276 communities across 35 sub-districts.

Only beneficiaries who have received at least USD 100/family/month have been included; excludes sector-based activities such as non-MPC cash-for-food.


906,000 people reached with MPC, USD 29.6 million disbursed, 15 October 2023

governorate

district

comm.

partners

households

beneficiaries

total_usd

%_BNF1

Aleppo

A'zaz

23

14

8,202

36,314

1,201,947

4.01

Aleppo

Afrin

118

20

49,717

217,745

7,675,360

24.03

Aleppo

Al Bab

5

7

8,154

43,283

1,229,848

4.78

Aleppo

Jarablus

1

3

670

2,170

107,372

0.24

Aleppo

Jebel Saman

18

12

14,531

72,737

2,038,245

8.03

Ar-Raqqa

Tell Abiad

2

1

102

399

19,912

0.04

Idleb

Ariha

6

4

1,869

9,514

288,750

1.05

Idleb

Harim

68

22

87,464

393,840

12,974,553

43.46

Idleb

Idleb

24

16

24,583

116,983

3,703,836

12.91

Idleb

Jisr-Ash-Shugur

13

5

3,041

13,136

409,297

1.45

Total

-

-

-

198,333

906,121

29,649,120

100.00

1As percentage of all MPC beneficiaries reached in NW Syria


In February 2023, 161,266 beneficiary frequencies were reached, and in March 2023 the number increased to 173,246. In April 2023 137,451 were reached. As of May 2023, 101,268 beneficiaries have been reached, followed by 67,501 in June, with 127,423 in July 2023 with 134,733 in August 2023, with 76,105 in September 2023, and 76,105 in October 2023.

This document distinguishes between beneficiaries, or unique individuals reached, and beneficiary frequencies, or the number of times people have been reached, inclusive of double counting.



1.1 Progress by date


The small number of beneficiaries reached earlier than February all pertained to the HRP, the only such beneficiaries reported so far. The CWG would like to encourage partners to report on their January achievements.



2. Map of activities





3. Geographic breakdown of beneficiaries

Coverage continues to be highest in Afrin and Harim districts, where the highest numbers of damaged houses and wounded people are located (though these areas do not necessarily have the highest proportions of damage).



Casualties and damaged houses, absolute figures and per 100,000 persons

governorate

district

wounded_dead1

wounded_dead_100k1

damaged_houses1

damaged_houses_100k1

Aleppo

A'zaz

356

57.87

276

44.86

Aleppo

Afrin

2,232

478.79

2,910

624.22

Aleppo

Al Bab

206

70.04

832

282.89

Aleppo

Jarablus

40

33.82

257

217.30

Aleppo

Jebel Saman

616

236.80

176

67.66

Idleb

Harim

8,449

507.65

3,230

194.07

Idleb

Idleb

350

48.23

946

130.37

Idleb

Jisr-Ash-Shugur

595

183.68

1,915

591.18

1Data from the Assistance Coordination Unit, Syria 20230328;


Below is a breakdown of beneficiaries based on whether they originate from camps or villages. The majority of MPC beneficiaries are from villages.


More than twice as many beneficiaries from villages as from camps

village_camps

beneficiaries

%_beneficiaries

camp

121,785

13.44

village

280,487

30.95

NA

503,849

55.61




3.1 By sub-district

The plots below show the breakdown of beneficiaries by sub-district. Caution must be taken to ensure that allocations are fair across the affected areas: there are numerous sub-districts where a very large proportion of the total population has already been reached by multipurpose cash, in particular, Jandairis, Harim, Salqin and Sharan.

Response activities must be proportional with the magnitude and severity of earthquake damage. Over allocation deprives affected persons of the aid they are due.

The average percentage of the population reached, of all sub-districts, is 14.61%.






3.2 Planned activities

We find it encouraging that new sub-districts are being included in the planned allocations, although it’s noteworthy that some of the planned allocation is still being assigned to areas that have already benefited from relatively high levels of support.






4. Cash response actors and cash disbursed

USD 29.6 million has been distributed across 276 communities and 35 sub-districts in NW Syria.


Reach and footprint of cash response actors

implementing_partner1

beneficiary_freq

districts

communities

GOAL (GOAL)

208,321

4

96

Shafak Organization (SO)

147,134

8

44

International Rescue Committee (IRC)

136,582

4

32

Ihsan for Relief and Development (IRD)

87,094

6

40

Syria Relief (SR)

58,492

5

15

Violet Organization (VO)

46,855

5

38

Bahar Organization (BO)

36,025

2

32

Norwegian Refugee Council (NRC)

30,248

2

6

Takaful Al Sham (TAS)

28,088

3

30

Ataa Humanitarian Relief Association (ATAA)

27,434

9

25

Solidarités International (SI)

18,943

1

6

Uluslararasi Insani Yardimlasma Dernegi (IYD)

18,814

6

19

Syrian Association for Relief and Development (SARD)

18,597

3

11

Sened Organization (SENED)

15,995

4

7

Mercy Without Limits (MWL)

15,422

4

7

People in Need (PIN)

12,804

5

6

CBRTWG-031

12,091

4

12

World Vision International (WVI)

12,048

1

4

GMO -- Mercy Corps

9,870

1

1

Welthungerhilfe (WHH)

9,220

4

10

Elaf for Relief and Development (ELAF)

6,900

3

4

International Humanitarian Relief (IHR)

6,654

3

9

Hand in Hand For Syria (HIHFS)

6,651

1

7

Social Development International (SDI)

6,252

2

3

Hope Revival Organization (HRO)

4,850

1

18

Ghiras Al Nahda (GAN)

3,050

1

2

Bonyan Organization (BO)

2,951

1

4

The Syrian Est. for Human Care and Development (Massrat)

2,692

3

3

Al-Sham Humanitarian Foundation (AHF)

1,980

7

7

Seeds Of Hope Relief and Development (SOH)

481

1

1

1Only partners who provided more than USD 100/family/month;


In the scatter plot below, each point is a single cash working group partner. The x-axis indicates the number of beneficiary frequencies reached per agency and the y-axis indicates the number of communities (admin4) reached. Mouse over each point for more details.





4.1 Cash disbursed per partner


Cash disbursed and families reached by partner

implementing_partner

total_usd

families

usd_per_fam

%_usd_total

GOAL (GOAL)

6,463,650

43,091

150.00

21.80

Shafak Organization (SO)

4,476,400

29,671

150.87

15.10

International Rescue Committee (IRC)

3,720,300

24,802

150.00

12.55

Ihsan for Relief and Development (IRD)

2,411,900

16,750

143.99

8.13

Syria Relief (SR)

1,871,558

12,007

155.87

6.31

Violet Organization (VO)

1,421,250

9,680

146.82

4.79

Ataa Humanitarian Relief Association (ATAA)

1,154,929

6,323

182.66

3.90

Bahar Organization (BO)

1,080,750

7,205

150.00

3.65

Takaful Al Sham (TAS)

781,460

5,558

140.60

2.64

Norwegian Refugee Council (NRC)

772,400

5,603

137.85

2.61

Syrian Association for Relief and Development (SARD)

710,148

3,997

177.67

2.40

Uluslararasi Insani Yardimlasma Dernegi (IYD)

523,300

3,983

131.38

1.76

Welthungerhilfe (WHH)

494,550

3,297

150.00

1.67

Solidarités International (SI)

434,750

3,620

120.10

1.47

People in Need (PIN)

411,450

2,743

150.00

1.39

Mercy Without Limits (MWL)

399,731

2,877

138.94

1.35

Sened Organization (SENED)

379,200

2,528

150.00

1.28

CBRTWG-031

362,550

2,417

150.00

1.22

World Vision International (WVI)

301,200

2,008

150.00

1.02

Elaf for Relief and Development (ELAF)

252,500

1,250

202.00

0.85

GMO -- Mercy Corps

218,100

2,181

100.00

0.74

Hand in Hand For Syria (HIHFS)

210,079

1,400

150.06

0.71

International Humanitarian Relief (IHR)

179,250

1,195

150.00

0.60

Social Development International (SDI)

151,650

1,011

150.00

0.51

Hope Revival Organization (HRO)

121,250

970

125.00

0.41

Bonyan Organization (BO)

119,964

575

208.63

0.40

Ghiras Al Nahda (GAN)

91,500

610

150.00

0.31

The Syrian Est. for Human Care and Development (Massrat)

81,000

540

150.00

0.27

Al-Sham Humanitarian Foundation (AHF)

41,250

330

125.00

0.14

Seeds Of Hope Relief and Development (SOH)

11,100

111

100.00

0.04


The CWG is currently working with other Clusters to consolidate all cash-based activities and will soon be able to provide more comprehensive reporting.



4.2 Currency disbursed

A total of 96.16% of cash disbursed was in USD.


Proportion of cash disbursed by currency

currency

total_usd

%_of_total

TRY

1,138,914

3.84

USD

28,510,204

96.16

Total

29,649,118

100.00




5. Annexes


5.1 Interactive reference table at sub-district level

Columns include: governorate, district, sub-district, total population, beneficiaries, total usd disbursed, wounded and dead, wounded and dead per 100k, damaged houses, damaged houses per 100k, admin3pcode




5.2 Reporting quality

This section documents issues encountered in the cleaning of 4W and FSL data and their impacts on the quality of reporting the CWG can provide. The recommendations by the CWG are included to enhance reporting quality:

  1. The CWG has adopted a new 4Ws template for monthly reporting, aiming to improve the documentation of the earthquake response efforts. The reporting deadline is set on the 15th of each month. In February 8 partners reported their achievements, In March 9 partners have reported their achievements, with 15 partners having reported in April, in May 16 partners have reported. 10 partners have reported in June, with 11 partners have reported in July, while 15 reported in August, with 15 reported in September, and 4 reported in October. If no MPC activities were implemented, please inform the CWG as well.

  2. For this reporting period, activities pertaining to 16,744 beneficiaries were missing their dates or had dates in unreadable formats. Please ensure that the start date and end date are entered in the format (mm/dd/yyyy) and select the month of reporting from the options in the drop down menu.

  3. For sex-and-age dis-aggregations, please do not back fill these columns using calculations based on the census or the MSNA. If no dis-aggregated data is available to your organisation, please leave these columns blank.

  4. The Cash Working Group is currently only collecting planned and implemented Multipurpose Cash achievements. Whilst the CWG welcomes additional inputs on other CVA activities, we also want to ensure that the reporting load is as low as possible for partners i.e. if an agency has implemented Cash-for-Work, this should be reported to the ERL Cluster. The CWG will work with all Clusters to develop a consolidated picture of response-wide CVA interventions.

  5. Please indicate in the previously_assisted column whether or not beneficiaries have been reached before. However, if the beneficiaries are being reported for the first time to the Cash Working Group, even if you have reached them before, please indicate No in this column. This column is used to calculate the number of unique individuals reached.

LS0tDQp0aXRsZTogIk5vcnRod2VzdCBTeXJpYSBDYXNoIFdvcmtpbmcgR3JvdXAgRWFydGhxdWFrZSBSZXNwb25zZSBCdWxsZXRpbiINCmRhdGU6ICJgciBmb3JtYXQoU3lzLnRpbWUoKSwgJyVkICVCLCAlWScpYCINCm91dHB1dDoNCiAgaHRtbF9kb2N1bWVudDoNCiAgICBjb2RlX2Rvd25sb2FkOiB5ZXMNCiAgICB0aGVtZTogcmVhZGFibGUNCiAgICB0b2M6IHllcw0KICAgIHRvY19kZXB0aDogNA0KICAgIHRvY19mbG9hdDogeWVzDQogICAgbnVtYmVyX3NlY3Rpb25zOiBubw0KICAgIGNvbGxhcHNlZDogbm8NCiAgd29yZF9kb2N1bWVudDoNCiAgICB0b2M6IHllcw0KICAgIHRvY19kZXB0aDogJzQnDQphbHdheXNfYWxsb3dfaHRtbDogeWVzDQotLS0NCg0KYGBge2NzcywgZWNobz1GQUxTRX0NCg0KI1RPQzo6YmVmb3JlIHsNCiAgY29udGVudDogIiI7DQogIGRpc3BsYXk6IGJsb2NrOw0KICBoZWlnaHQ6IDcwcHg7DQogIG1hcmdpbjogMmVtIDIwcHggNDBweCAyMHB4Ow0KICBiYWNrZ3JvdW5kLWltYWdlOiB1cmw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KGJlbmVmaWNpYXJpZXMgPSAwKSkgJT4lIA0KICAgICAgICAgICAgICBtdXRhdGUoZ292ZXJub3JhdGUgPSByZWNvZGUoZ292ZXJub3JhdGUsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImFsZXBwbyIgPSAiQWxlcHBvIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQUxFUFBPIiA9ICJBbGVwcG8iKSwgDQogICAgICAgICAgICAgIGRpc3RyaWN0ID0gcmVjb2RlKGRpc3RyaWN0LCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkphYmFsIFNhbW1hbiIgPSAiSmViZWwgU2FtYW4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImF6YXoiID0gIkEnemF6IiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJqYXJhYmx1cyIgPSAiSmFyYWJsdXMiKSwgDQogICAgICAgICAgICAgIHN1Yl9kaXN0cmljdCA9IHJlY29kZShzdWJfZGlzdHJpY3QsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImF6YXoiID0gIkEnemF6IiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiamFyYWJsdXMiID0gIkphcmFibHVzIiksIA0KICAgICAgICAgICAgICBwcmV2aW91c2x5X2Fzc2lzdGVkID0gaWZlbHNlKGFkbWluMXBjb2RlICVpbiUgYygiU1kxMSIpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiTm8iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcmV2aW91c2x5X2Fzc2lzdGVkKSkgJT4lIA0KICAgICAgICAgICAgICAgIGZpbHRlcihhZG1pbjFwY29kZSAhPSAiU1kwOSIpDQogDQogIA0KDQpobm8gPC0gcmVhZF9leGNlbCgiLi9kYXRhLzIwMjNITk9fUGlOX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PSBuX2Rpc3RpbmN0KGFkbWluNHBjb2RlKSwgDQogICAgICBob3VzZWhvbGRzID0gc3VtKGZhbWlsaWVzLCBuYS5ybSA9IFRSVUUpLCANCiAgICAgIGJlbmVmaWNpYXJpZXMgPSBzdW0oYmVuZWZpY2lhcmllc1twcmV2aW91c2x5X2Fzc2lzdGVkID09ICJObyJdLCBuYS5ybSA9IFRSVUUpLCANCiAgICAgIHRvdGFsX3VzZCA9IHN1bSh0b3RhbF91c2QsIG5hLnJtID0gVFJVRSksIA0KICAgICAgLmdyb3VwcyA9ICJkcm9wIikgJT4lIA0KICAgICAgICB1bmdyb3VwKCkgJT4lIA0KICAgICAgICAgIG11dGF0ZShgJV9CTkZgID0gDQogICAgICAgICAgcm91bmQoYmVuZWZpY2lhcmllcyAvIHN1bShiZW5lZmljaWFyaWVzLCBuYS5ybSA9IFRSVUUpICogMTAwLCBkaWdpdHMgPSAyKSwgDQogICAgICAgICAgdG90YWxfdXNkID0gcm91bmQodG90YWxfdXNkKSkgJT4lDQogICAgICAgICAgICBhZG9ybl90b3RhbHMoInJvdyIsLCwsIGhvdXNlaG9sZHMsIGJlbmVmaWNpYXJpZXMsIHRvdGFsX3VzZCwgYCVfQk5GYCkgJT4lIA0KICAgICAgICAgICAgICBtdXRhdGUoYCVfQk5GYCA9IGlmZWxzZShgJV9CTkZgID4gOTkuOTgsIDEwMCwgYCVfQk5GYCkpICU+JSANCiAgICAgICAgICAgICAgICBzZWxlY3QoZ292ZXJub3JhdGUsIGRpc3RyaWN0LCBgY29tbS5gID0gY29tbXVuaXRpZXMsIHBhcnRuZXJzLCANCiAgICAgICAgICAgICAgICBob3VzZWhvbGRzLCBiZW5lZmljaWFyaWVzLCB0b3RhbF91c2QsIGAlX0JORmApICU+JSANCiAgICAgICAgICAgICAgICAgIGZsZXh0YWJsZSgpICU+JSANCiAgICAgICAgICAgICAgICAgICAgc2V0X2NhcHRpb24ocGFzdGUwKA0KICAgICAgICAgICAgICAgICAgICAgIHJvdW5kKHN1bV9zdGF0cyRiZW5lZmljaWFyaWVzLCBkaWdpdHMgPSAtMykgJT4lIGZvcm1hdChiaWcubWFyayA9ICIsIiksDQogICAgICAgICAgICAgICAgICAgICAgIiBwZW9wbGUgcmVhY2hlZCB3aXRoIE1QQywgVVNEICIsDQogICAgICAgICAgICAgICAgICAgICAgcGFzdGUoZm9ybWF0KHJvdW5kKChzdW1fc3RhdHMgJT4lIHB1bGwodG90YWxfdXNkKSkgLyAxMDAwMDAwLCAxKSwgdHJpbSA9IFRSVUUpLCAibWlsbGlvbiIpLCANCiAgICAgICAgICAgICAgICAgICAgICAiIGRpc2J1cnNlZCwgIiwgDQogICAgICAgICAgICAgICAgICAgICAgcmVwb3J0X2RhdGUpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICB0aGVtZV96ZWJyYSgpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgZm9vdG5vdGUoaSA9IDEsIGogPSA4LCBwYXJ0ID0gImhlYWRlciIsIHJlZl9zeW1ib2xzID0gIjEiLCAgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGFzX3BhcmFncmFwaCgiQXMgcGVyY2VudGFnZSBvZiBhbGwgTVBDIGJlbmVmaWNpYXJpZXMgcmVhY2hlZCBpbiBOVyBTeXJpYSIpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0X3RhYmxlX3Byb3BlcnRpZXMobGF5b3V0ID0gImF1dG9maXQiLCB3aWR0aCA9IDEpDQoNCg0KYGBgDQoNCmBgYHtyIHN1bW1hcnktdGFibGUtcHJpbnQsIGV2YWw9RkFMU0V9DQpjYnIgICU+JSANCiAgZmlsdGVyKHByb2plY3Rfc3RhdHVzID09ICJDb21wbGV0ZWQiKSAlPiUNCiAgICBncm91cF9ieShnb3Zlcm5vcmF0ZSwgZGlzdHJpY3QpICU+JSANCiAgICAgIHN1bW1hcmlzZShwYXJ0bmVycyA9IG5fZGlzdGluY3QoaW1wbGVtZW50aW5nX3BhcnRuZXIpLCANCiAgICAgIGNvbW11bml0aWVzID0gbl9kaXN0aW5jdChhZG1pbjRwY29kZSksIA0KICAgICAgaG91c2Vob2xkcyA9IHN1bShmYW1pbGllcywgbmEucm0gPSBUUlVFKSwgDQogICAgICBiZW5lZmljaWFyaWVzID0gc3VtKGJlbmVmaWNpYXJpZXNbcHJldmlvdXNseV9hc3Npc3RlZCA9PSAiTm8iXSwgbmEucm0gPSBUUlVFKSwgDQogICAgICB0b3RhbF91c2QgPSBzdW0odG90YWxfdXNkLCBuYS5ybSA9IFRSVUUpLCANCiAgICAgIC5ncm91cHMgPSAiZHJvcCIpICU+JSANCiAgICAgICAgdW5ncm91cCgpICU+JSANCiAgICAgICAgICBtdXRhdGUoYCVfQk5GYCA9IA0KICAgICAgICAgICByb3VuZChiZW5lZmljaWFyaWVzIC8gc3VtKGJlbmVmaWNpYXJpZXMsIG5hLnJtID0gVFJVRSkgKiAxMDAsIGRpZ2l0cyA9IDIpLCANCiAgICAgICAgICAgdG90YWxfdXNkID0gcm91bmQodG90YWxfdXNkKSkgJT4lDQogICAgICAgICAgICBhZG9ybl90b3RhbHMoInJvdyIsLCwsIGhvdXNlaG9sZHMsIGJlbmVmaWNpYXJpZXMsIHRvdGFsX3VzZCwgYCVfQk5GYCkgJT4lIA0KICAgICAgICAgICAgICBtdXRhdGUoYCVfQk5GYCA9IGlmZWxzZShgJV9CTkZgID4gOTkuOTgsIDEwMCwgYCVfQk5GYCkpICU+JSANCiAgICAgICAgICAgICAgICBzZWxlY3QoZ292ZXJub3JhdGUsIGRpc3RyaWN0LCBgY29tbS5gID0gY29tbXVuaXRpZXMsIHBhcnRuZXJzLCANCiAgICAgICAgICAgICAgICBob3VzZWhvbGRzLCBiZW5lZmljaWFyaWVzLCB0b3RhbF91c2QsIGAlX0JORmApICU+JSANCiAgICAgICAgICAgICAgICAgIGZsZXh0YWJsZSgpICU+JSANCiAgICAgICAgICAgICAgICAgICAgc2V0X2NhcHRpb24ocGFzdGUwKA0KICAgICAgICAgICAgICAgICAgICByb3VuZChzdW1fc3RhdHMkYmVuZWZpY2lhcmllcywgZGlnaXRzID0gLTMpICU+JSBmb3JtYXQoYmlnLm1hcmsgPSAiLCIpLA0KICAgICAgICAgICAgICAgICAgICAiIHBlb3BsZSByZWFjaGVkIHdpdGggTVBDLCBVU0QgIiwNCiAgICAgICAgICAgICAgICAgICAgcGFzdGUoZm9ybWF0KHJvdW5kKChzdW1fc3RhdHMgJT4lIHB1bGwodG90YWxfdXNkKSkgLyAxMDAwMDAwLCAxKSwgdHJpbSA9IFRSVUUpLCAibWlsbGlvbiIpLCANCiAgICAgICAgICAgICAgICAgICAgIiBkaXNidXJzZWQsICIsIA0KICAgICAgICAgICAgICAgICAgICByZXBvcnRfZGF0ZSkpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICB0aGVtZV96ZWJyYSgpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICBmb290bm90ZShpID0gMSwgaiA9IDgsIHBhcnQgPSAiaGVhZGVyIiwgcmVmX3N5bWJvbHMgPSAiMSIsICANCiAgICAgICAgICAgICAgICAgICAgICAgICBhc19wYXJhZ3JhcGgoIkFzIHBlcmNlbnRhZ2Ugb2YgYWxsIE1QQyBiZW5lZmljaWFyaWVzIHJlYWNoZWQgaW4gTlcgU3lyaWEiKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRfdGFibGVfcHJvcGVydGllcyhsYXlvdXQgPSAiYXV0b2ZpdCIsIHdpZHRoID0gMSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNhdmVfYXNfaW1hZ2UocGF0aCA9ICIuL2ltZy9zdW1tYXJ5X3RhYmxlLnBuZyIpDQpgYGANCg0KDQoNCjxicj4NCg0KSW4gRmVicnVhcnkgMjAyMywgYHIgZmlsdGVyKGNiciwgbW9udGggPT0gMiAmIHByb2plY3Rfc3RhdHVzID09ICJDb21wbGV0ZWQiKSAlPiUge3N1bSguJGJlbmVma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CBhdCByb3VnaGx5IGV2ZXJ5IDE1IGRheXMsIEFsdGhvdWdoIHNvbWUgZGF5cyBkbyBub3QgaGF2ZSBkaXN0cmlidXRpb25zIA0KICAgICAgICAgICAgICAgICAgICAgIG11dGF0ZShjdW1fbGFiZWwgPSBpZmVsc2UoZW5kX2RhdGUgPT0gIjIwMjMtMDItMTAifCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTAzLTAxInwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTAzLTE1InwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTAzLTMwInwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA0LTE1InwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA0LTMwInwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA1LTI0InwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA2LTExInwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA2LTMwInwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA3LTE3InwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA3LTMxInwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA4LTE1InwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA4LTMwInwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA5LTE0InwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA5LTMwInwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTEwLTE0IiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGN1bV9iZW4sICIiKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjdW1fbGFiZWwgPSBhcy5udW1lcmljKGN1bV9sYWJlbCksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPSBhbnlkYXRlKGVuZF9kYXRlKSkgDQoNCnByb2dyZXNzX2xpbmUgJT4lIA0KICBnZ3Bsb3QoYWVzKHggPSBlbmRfZGF0ZSwgeSA9IGN1bV9iZW4pKSArIA0KICBnZW9tX2xpbmUoY29sb3VyID0gImJsdWUiKSArIA0KICBnZW9tX3RleHQoYWVzKGxhYmVsID0gc2NhbGVzOjpjb21tYShjdW1fbGFiZWwpKSwgdmp1c3QgPSAtMSwgDQogICAgICAgICAgICBzaXplID0gNCkgKyANCiAgc2NhbGVfeF9kYXRlKGRhdGVfYnJlYWtzID0gIjEgbW9udGgiLCBkYXRlX2xhYmVscyA9ICIlYiIpICsNCiAgc2NhbGVfeV9jb250aW51b3VzKGxhYmVscyA9IGNvbW1hLCBleHBhbmQgPSBleHBhb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gICAgICAgICAgICAgICB0ZXh0ID0gcGFzdGUwKCJzdWJfZGlzdHJpY3Q6ICIsIHN1Yl9kaXN0cmljdCwgIlxuIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiY29tbXVuaXR5OiAiLCBjb21tdW5pdHksICJcbiIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImxvY2F0aW9uX3R5cGU6ICIsIHZpbGxhZ2VfY2FtcHMsICJcbiIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImJlbmVmaWNpYXJpZXM6IiwgZm9ybWF0KGJlbmVmaWNpYXJpZXMsIGJpZy5tYXJrID0gIiwiKSwgIlxuIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAicGFydG5lcjogIiwgYWJicmV2aWF0aW9uLCAiXG4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAibG9uX3g6ICIsIGxvbmdpdHVkZV94LCAiXG4iLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJsYXRfeTogIiwgbGF0aXR1ZGVfeSkpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2hhcGUgPSAyMSwgc3Ryb2tlID0gLjM1LCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWxwaGEgPSAuNSkgKyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2NhbGVfc2l6ZV9jb250aW51b3VzKGxhYmVscyA9IGNvbW1hKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY2FsZV9jb2xvdXJfdmlyaWRpc19kKG5hLnRyYW5zbGF0ZSA9IEZBTFNFKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGVtZV92b2lkKCkgKyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhlbWUocGxvdC5iYWNrZ3JvdW5kID0gZWxlbWVudF9yZWN0KGZpbGwgPSAid2hpdGUiLCBjb2xvdXIgPSBOQSksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwbG90LmNhcHRpb24gPSBlbGVtZW50X3RleHQoaGp1c3QgPSAwLjUpLCkgKw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYWJzKHRpdGxlID0gIkNvbW11bml0aWVzIHJlYWNoZWQgYW5kIHBsYW5uZWQgLS0gQ1dHIHBhcnRuZXJzIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1YnRpdGxlID0gIlBsYW5uZWQgaW4geWVsbG93LCBjb21wbGV0ZWQgaW4gcHVycGxlLCBzaXplIHNob3dzIG51bWJlciBvZiBwZXJzb25zIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbG91ciA9ICJTdGF0dXMiKSArDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGd1aWRlcyhzaXplID0gIm5vbmUiKQ0KDQogIA0KZ2dwbG90bHkocGxhbm5lZF9pbXBsZW1lbnRlZF9tYXAsIHRvb2x0aXAgPSBjKCJ0ZXh0IikpICU+JSANCiAgcGxvdGx5OjpzdHlsZShob3Zlcm9uID0gInBvaW50IikgJT4lIA0KICAgIGxheW91dCh0aXRsZSA9IGxpc3QodGV4dCA9IHBhc3RlMCgiQ29tbXVuaXRpZXMgcmVhY2hlZCBhbmQgcGxhbm5lZCAtLSBDV0cgcGFydG5lcnMiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiPGJyPiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICI8c3VwPiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJQbGFubmVkIGluIGdyZWVuLCBjb21wbGV0ZWQgaW4gcHVycGxlLCBzaXplIHNob3dzIG51bWJlciBvZiBwZXJzb25zOyBjbGljayBhbmQgZHJhZyB0byB6b29tOyBtb3VzZSBvdmVyIGZvciBkZXRhaWxzIikpKQ0KICANCmBgYA0KDQo8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yANCiAgICAgICAgICAgICAgICBnZW9tX2NvbChhZXMoZmlsbCA9IGdvdmVybm9yYXRlKSkgKyANCiAgICAgICAgICAgICAgICBnZW9tX3RleHQoYWVzKGxhYmVsID0gY29tbWEoYmVuZWZpY2lhcmllcykpLCANCiAgICAgICAgICAgICAgICBoanVzdCA9ICJpbndhcmQiKSArIA0KICAgICAgICAgICAgICAgIHNjYWxlX2ZpbGxfdmlyaWRpc19kKGJlZ2luID0gLjMpICsgDQogICAgICAgICAgICAgICAgbGFicyh0aXRsZSA9ICJNUEMgYmVuZWZpY2lhcmllcyBieSBkaXN0cmljdCIsIA0KICAgICAgICAgICAgICAgIHN1YnRpdGxlID0gcGFzdGUwKCJhcyBvZiAiLCByZXBvcnRfZGF0ZSksIA0KICAgICAgICAgICAgICAgIHkgPSAiIikgKyANCiAgICAgICAgICAgICAgICBzY2FsZV94X2NvbnRpbnVvdXMobGFiZWxzID0gdW5pdF9mb3JtYXQodW5pdCA9ICJLIiwgc2NhbGUgPSAxZS0zLCBhY2N1cmFjeSA9IDEpKSArIA0KICAgICAgICAgICAgICAgIGhubyAlPiUgDQogICAgICAgICAgICAgICAgICBmaWx0ZXIoYWRtaW4ybmFtZV9lbiAlaW4lIGMoIkhhcmltIiwgIklkbGViIiwgIkppc3ItQXNoLVNodWd1ciIsICJBcmloYSIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJUZWxsIEFiaWFkIiwgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJBZnJpbiIsICJKZWJlbCBTYW1hbiIsICJBJ3pheiIsICJKYXJhYmx1cyIsICJBbCBCYWIiKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ3JvdXBfYnkoZ292ZXJub3JhdGUgPSBhZG1pbjFuYW1lX2VuLCBkaXN0cmljdCA9IGFkbWluMm5hbWVfZW4pICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VtbWFyaXNlKHRvdGFsX3BvcHVsYXRpb24gPSBzdW0odG90YWxfcG9wdWxhdGlvbiwgbmEucm0gPSBUUlVFKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5ncm91cHMgPSAiZHJvcCIpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZWZ0X2pvaW4oDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2JyICU+JQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlsdGVyKHByb2plY3Rfc3RhdHVzID09ICJDb21wbGV0ZWQiICYgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcmV2aW91c2x5X2Fzc2lzdGVkID09ICJObyIpICU+JSAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ3JvdXBfYnkoZGlzdHJpY3QpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1bW1hcmlzZShiZW5lZmljaWFyaWVzID0gc3VtKGJlbmVmaWNpYXJpZXMsIG5hLnJtID0gVFJVRSkpICwgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBieSA9ICJkaXN0cmljdCIpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbXV0YXRlKGRpc3RyaWN0ID0gZmN0X3JlbGV2ZWwoZGlzdHJpY3QsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJBbCBCYWIiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiSmFyYWJsdXMiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQSd6YXoiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiSmViZWwgU2FtYW4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQWZyaW4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVsbCBBYmlhZCIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFyaWhhIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkppc3ItQXNoLVNodWd1ciIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJJZGxlYiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJIYXJpbSIpLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBjX3JlYWNoZWQgPSByb3VuZChiZW5lZmljaWFyaWVzIC8gdG90YWxfcG9wdWxhdGlvbiAqIDEwMCwgZGlnaXRzID0gMSkpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdncGxvdChhZXMoeCA9IHBjX3JlYWNoZWQsIHkgPSBkaXN0cmljdCkpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdlb21fY29sKGFlcyhmaWxsID0gZ292ZXJub3JhdGUpKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2VvbV90ZXh0KGFlcyhsYWJlbCA9IGNvbW1hKHBjX3JlYWNoZWQpKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoanVzdCA9ICJpbndhcmQiKSArDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY2FsZV9maWxsX3ZpcmlkaXNfZChiZWdpbiA9IC4zKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFicyh0aXRsZSA9ICJQZXJjZW50IG9mIHBvcHVsYXRpb24gcmVhY2hlZCIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VidGl0bGUgPSBwYXN0ZTAoImFzIG9mICIsIHJlcG9ydF9kYXRlKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB5ID0gIiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeCA9ICIlIG9mIHBvcHVsYXRpb24gcmVhY2hlZCIpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBsb3RfbGF5b3V0KGd1aWRlcyA9ICJjb2xsZWN0IikgJiANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoZW1lKGxlZ2VuZC5wb3NpdGlvbiA9ICJib3R0b20iKQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdnc2F2ZSgiLi9pbWcvbXBjX2J5X2Rpc3RyaWN0LnBuZyIsIGRwaSA9IDMwMCwgaGVpZ2h0ID0gOC4yNywgd2lkdGggPSAxMS42OSwgdW5pdHMgPSAiaW4iKSAgDQoNCmBgYA0KDQo8YnI+DQoNCmBgYHtyIHRhYmxlLWVxLWRhbWFnZX0NCmVxICU+JSANCiAgbGVmdF9qb2luKGhubyAlPiUgDQogICAgc2VsZWN0KGdvdmVybm9yYXRlID0gYWRtaW4xbmFtZV9lbiwgDQogICAgZGlzdHJpY3QgPSBhZG1pbjJuYW1lX2VuLCANCiAgICBzdWJfZGlzdHJpY3QgPSBhZG1pbjNuYW1lX2VuLCANCiAgICBhZG1pbjNwY29kZSksIA0KICAgIGJ5ID0gImFkbWluM3Bjb2RlIikgJT4lIA0KICAgICAgZmlsdGVyKGFkbWluM3Bjb2RlICVpbiUgbndfcGNvZGUzICYgDQogICAgICBkaXN0cmljdCAlaW4lIGMoIkhhcmltIiwgIklkbGViIiwgIkppc3ItQXNoLVNodWd1ciIsICJBcmloYSIsIA0KICAgICAgICAgICAgICAgICAgICAgICJUZWxsIEFiaWFkIiwgIA0KICAgICAgICAgICAgICAgICAgICAgICJBZnJpbiIsICJKZWJlbCBTYW1hbiIsICJBJ3pheiIsICJKYXJhYmx1cyIsICJBbCBCYWIiKSkgJT4lIA0KICAgICAgICBncm91cF9ieShnb3Zlcm5vcmF0ZSwgZGlzdHJpY3QpICU+JSANCiAgICAgICAgICBzdW1tYXJpc2Uod291bmRlZF9kZWFkID0gc3VtKHdvdW5kZWRfZGVhZCwgbmEucm0gPSBUUlVFKSwgDQogICAgICAgICAgZGFtYWdlZF9ob3VzZXMgPSBzdW0oZGFtYWdlZF9ob3VzZXMsIG5hLnJtID0gVFJVRSkpICU+JSANCiAgICAgICAgICAgIGZpbHRlcihkaXN0cmljdCAhPSAiQXJpaGEiKSAlPiUgDQogICAgICAgICAgICAgIGxlZnRfam9pbihobm8gJT4lIA0KICAgICAgICAgICAgICAgIGZpbHRlcihhZG1pbjNwY29kZSAlaW4lIG53X3Bjb2RlMyAmDQogICAgICAgICAgICAgICAgYWRtaW4ybmFtZV9lbiAlaW4lIGMoIkhhcmltIiwgIklkbGViIiwgIkppc3ItQXNoLVNodWd1ciIsICJBcmloYSIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlRlbGwgQWJpYWQiLCAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFmcmluIiwgIkplYmVsIFNhbWFuIiwgIkEnemF6IiwgIkphcmFibHVzIiwgIkFsIEJhYiIpKSAlPiUNCiAgICAgICAgICAgICAgICAgIGdyb3VwX2J5KGRpc3RyaWN0ID0gYWRtaW4ybmFtZV9lbikgJT4lDQogICAgICAgICAgICAgICAgICAgIHN1bW1hcmlzZShwb3B1bGF0aW9uID0gc3VtKHRvdGFsX3BvcHVsYXRpb24sIG5hLnJtID0gVFJVRSkpLCBieSA9ICJkaXN0cmljdCIpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICBtdXRhdGUod291bmRlZF9kZWFkXzEwMGsgPSByb3VuZCh3b3VuZGVkX2RlYWQgLyBwb3B1bGF0aW9uICogMTAwMDAwLCBkaWdpdHMgPSAyKSwgDQogICAgICAgICAgICAgICAgICAgICAgICBkYW1hZ2VkX2hvdXNlc18xMDBrID0gcm91bmQoZGFtYWdlZF9ob3VzZXMgLyBwb3B1bGF0aW9uICogMTAwMDAwLCBkaWdpdHMgPSAyKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3QoZ292ZXJub3JhdGUsIGRpc3Ry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MuMSBCeSBzdWItZGlzdHJpY3QNCg0KYGBge3IgZGYtcGMtcmVhY2hlZH0NCmF2Z19wY19yZWFjaGVkIDwtIGNiciAlPiUgDQogIG11dGF0ZShzdWJfZGlzdHJpY3QgPSByZWNvZGUoc3ViX2Rpc3RyaWN0LCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAic2FscWluIiA9ICJTYWxxaW4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiYWZyaW4iID0gIkFmcmluIikpICU+JQ0KICAgIGZpbHRlcihwcm9qZWN0X3N0YXR1cyA9PSAiQ29tcGxldGVkIiAmIA0KICAgICAgICAgICBwcmV2aW91c2x5X2Fzc2lzdGVkID09ICJObyIpICU+JQ0KICAgICAgZmlsdGVyKCFpcy5uYShhZG1pbjNwY29kZSkpICU+JSANCiAgICAgICAgZ3JvdXBfYnkoc3ViX2Rpc3RyaWN0LCBhZG1pbjNwY29kZSwgZ292ZXJub3JhdGUpICU+JQ0KICAgICAgICAgIHN1bW1hcmlzZShiZW5lZmljaWFyaWVzID0gc3VtKGJlbmVmaWNpYXJpZXMsIG5hLnJtID0gVFJVRSksDQogICAgICAgICAgLmdyb3VwcyA9ICJkcm9wIikgJT4lIA0KICAgICAgICAgICAgbGVmdF9qb2luKGhubyAlPiUgDQogICAgICAgICAgICAgIGZpbHRlcihhZG1pbjJuYW1lX2VuICVpbiUgYygiSGFyaW0iLCAiSWRsZWIiLCAiSmlzci1Bc2gtU2h1Z3VyIiwgIkFyaWhhIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVsbCBBYmlhZCIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFmcmluIiwgIkplYmVsIFNhbWFuIiwgIkEnemF6IiwgIkphcmFibHVzIiwgIkFsIEJhYiIpKSAlPiUNCiAgICAgICAgICAgICAgICBncm91cF9ieShhZG1pbjFuYW1lX2VuLCBhZG1pbjNwY29kZSkgJT4lDQogICAgICAgICAgICAg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kpICU+JSANCiAgICAgICAgICAgICAgICBhcnJhbmdlKHN1Yl9kaXN0cmljdCkgJT4lIA0KICAgICAgICAgICAgICAgICAgZ2dwbG90KGFlcyh4ID0gYmVuZWZpY2lhcmllcywgeSA9IHN1Yl9kaXN0cmljdCkpICsgDQogICAgICAgICAgICAgICAgICBnZW9tX2NvbChhZXMoZmlsbCA9IGdvdmVybm9yYXRlKSkgKyANCiAgICAgICAgICAgICAgICAgIGdlb21fdGV4dChhZXMobGFiZWwgPSBjb21tYShiZW5lZmljaWFyaWVzKSksIA0KICAgICAgICAgICAgICAgICAgaGp1c3QgPSAiaW53YXJkIikgKyANCiAgICAgICAgICAgICAgICAgIHNjYWxlX2ZpbGxfdmlyaWRpc19kKGJlZ2luID0gLjMpICsgDQogICAgICAgICAgICAgICAgICBsYWJzKHRpdGxlID0gIk1QQyBiZW5lZmljaWFyaWVzIGJ5IHN1Yi1kaXN0cmljdCIsIA0KICAgICAgICAgICAgICAgICAgc3VidGl0bGUgPSBwYXN0ZTAoImFzIG9mICIsIHJlcG9ydF9kYXRlKSwgDQogICAgICAgICAgICAgICAgICB5ID0gIiIpICsgDQogICAgICAgICAgICAgICAgICBzY2FsZV94X2NvbnRpbnVvdXMobGFiZWxzID0gY29tbWEpICsgDQogICAgICAgICAgICAgICAgICANCmNiciAlPiUgDQogIG11dGF0ZShzdWJfZGlzdHJpY3QgPSByZWNvZGUoc3ViX2Rpc3RyaWN0LCANCiAgICAgICAgICJzYWxxaW4iID0gIlNhbHFpbiIsIA0KICAgICAgICAgImFmcmluIiA9ICJBZnJpbiIpKSAlPiUNCiAgICBmaWx0ZXIocHJvamVjdF9zdGF0dXMgPT0gIkNvbXBsZXRlZCIgJiAgDQogICAgcHJldmlvdXNseV9hc3Npc3RlZCA9PSAiTm8iKSAlPiUNCiAgICAgIGZpbHRlcighaXMubmEoYWRtaW4zcGNvZGUpKSAlPiUgDQogICAgICAgIGdyb3VwX2J5KHN1Yl9kaXN0cmljdCwgYWRtaW4zcGNvZGUsIGdvdmVybm9yYXRlKSAlPiUNCiAgICAgICAgICBzdW1tYXJpc2UoYmVuZWZpY2lhcmllcyA9IHN1bShiZW5lZmljaWFyaWVzLCBuYS5ybSA9IFRSVUUpLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5ncm91cHMgPSAiZHJvcCIpICU+JSANCiAgICAgICAgICAgIGxlZnRfam9pbihobm8gJT4lIA0KICAgICAgICAgICAgICBmaWx0ZXIoYWRtaW4ybmFtZV9lbiAlaW4lIGMoIkhhcmltIiwgIklkbGViIiwgIkppc3ItQXNoLVNodWd1ciIsICJBcmloYSIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlRlbGwgQWJpYWQiLCAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQWZyaW4iLCAiSmViZWwgU2FtYW4iLCAiQSd6YXoiLCAiSmFyYWJsdXMiLCAiQWwgQmFiIikpICU+JQ0KICAgICAgICAgICAgICAgIGdyb3VwX2J5KGFkbWluMW5hbWVfZW4sIGFkbWluM3Bjb2RlKSAlPiUNCiAgICAgICAgICAgICAgICAgIHN1bW1hcmlzZSh0b3RhbF9wb3B1bGF0aW9uID0gc3VtKHRvdGFsX3BvcHVsYXRpb24sIG5hLnJtID0gVFJVRSksDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuZ3JvdXBzID0gImRyb3AiKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBieSA9ICJhZG1pbjNwY29kZSIpICU+JSANCiAgICAgICAgICAgICAgICAgICAgbXV0YXRlKHBjX3JlYWNoZWQgPSByb3VuZChiZW5lZmljaWFyaWVzIC8gdG90YWxfcG9wdWxhdGlvbiAqIDEwMCwgZGlnaXRzID0gMSkpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICBtdXRhdGUoc3ViX2Rpc3RyaWN0ID0gZmFjdG9yKHN1Yl9kaXN0cmljdCwgIHN1Yl9kaXN0cmljdF9vcmRlciksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJfZGlzdHJpY3QgPSBmY3RfcmV2KHN1Yl9kaXN0cmljdCkpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgIGFycmFuZ2Uoc3ViX2Rpc3RyaWN0KSAlPiUgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBnZ3Bsb3QoYWVzKHggPSBwY19yZWFjaGVkLCB5ID0gc3ViX2Rpc3RyaWN0KSkgKw0KICAgICAgICAgICAgICAgICAgICAgICAgICBnZW9tX2NvbChhZXMoZmlsbCA9IGdvdmVybm9yYXRlKSkgKyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgZ2VvbV90ZXh0KGFlcyhsYWJlbCA9IGNvbW1hKHBjX3JlYWNoZWQpKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGhqdXN0ID0gImlud2FyZCIpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgc2NhbGVfZmlsbF92aXJpZGlzX2QoYmVnaW4gPSAuMykgKyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgbGFicyh0aXRsZSA9ICJQZXJjZW50IG9mIHBvcHVsYXRpb24gcmVhY2hlZCIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJ0aXRsZSA9IHBhc3RlMCgiYXMgb2YgIiwgcmVwb3J0X2RhdGUpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgeSA9ICIiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgeCA9ICIlIG9mIHBvcHVsYXRpb24gcmVhY2hlZCIpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgcGxvdF9sYXlvdXQoZ3VpZGVzID0gImNvbGxlY3QiKSAmIA0KICAgICAgICAgICAgICAgICAgICAgICAgICB0aGVtZShsZWdlbmQucG9zaXRpb24gPSAiYm90dG9tIikNCg0KZ2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AgICAgZmlsdGVyKHByb2plY3Rfc3RhdHVzID09ICJDb21wbGV0ZWQiKSAlPiUgDQogICAgICAgICAgZ3JvdXBfYnkoYWRtaW4zcGNvZGUpICU+JSANCiAgICAgICAgICAgIHN1bW1hcmlzZShiZW5lZmljaWFyaWVzID0gc3VtKGJlbmVmaWNpYXJpZXNbcHJldmlvdXNseV9hc3Npc3RlZCA9PSAiTm8iXSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuYS5ybSA9IFRSVUUpLCANCiAgICAgICAgICAgIHRvdGFsX3VzZCA9IHN1bSh0b3RhbF91c2QsIG5hLnJtID0gVFJVRSkpLCANCiAgICAgICAgICAgIGJ5ID0gImFkbWluM3Bjb2RlIikgJT4lIA0KICAgICAgICAgICAgICBzZWxlY3QoZ292ZXJub3JhdGUsIGRpc3RyaWN0LCBzdWJfZGlzdHJpY3QsIA0KICAgICAgICAgICAgICAgICAgICAgdG90YWxfcG9wdWxhdGlvbiwgDQogICAgICAgICAgICAgICAgICAgICBiZW5lZmljaWFyaWVzLCB0b3RhbF91c2QsIA0KICAgICAgICAgICAgICAgICAgICAgd291bmRlZF9kZWFkLCB3b3VuZGVkX2RlYWRfMTAwaywgDQogICAgICAgICAgICAgICAgICAgICBkYW1hZ2VkX2hvdXNlcywgZGFtYWdlZF9ob3VzZXNfMTAwaywgDQogICAgICAgICAgICAgICAgICAgICBhZG1pbjNwY29kZSkgJT4lIA0KICAgICAgICAgICAgICAgIGRhdGF0YWJsZShvcHRpb25zID0gbGlzdChwYWdlTGVuZ3RoID0gMTAsIHNjcm9sbFggPSBUUlVFKSwgDQogICAgICAgICAgICAgICAgZmlsdGVyID0gbGlzdChwb3NpdGlvbiA9ICJ0b3AiLCBjbGVhciA9IEZBTFNFKSwNCiAgICAgICAgICAgICAgICBjYXB0aW9uID0gaHRtbHRvb2xzOjp0YWdzJGNhcHRpb24oc3R5bGUgPSAnY2FwdGlvbi1zaWRlOiB0b3A7IA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7IGZvbnQtc2l6ZToxMjAlIDsnLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiUmVmZXJlbmNlIHRhYmxlIC0tIEVhcnRocXVha2UgaW1wYWN0cywgZnJvbSBBQ1UsIGV4dHJhY3RlZCAyMDIzMDMyOCIpKSAlPiUgDQogICAgICAgICAgICAgICAgICBmb3JtYXRTdHlsZSgwLCB0YXJnZXQgPSAicm93IiwgbGluZUhlaWdodCA9ICI4MCUiLCBmb250U2l6ZSA9ICI4MCUiKSAlPiUgDQogICAgICAgICAgICAgICAgICAgIGZvcm1hdFJvdW5kKGMoIndvdW5kZWRfZGVhZF8xMDBrIiwgImRhbWFnZWRfaG91c2VzXzEwMGsiKSwgZGlnaXRzID0gMikgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgIGZvcm1hdEN1cnJlbmN5KGMoInRvdGFsX3BvcHVsYXRpb24iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJ3b3VuZGVkX2RlYWQiLCAiZGFtYWdlZF9ob3VzZXMiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJiZW5lZmljaWFyaWVzIiwgInRvdGFsX3VzZCIpLCANCiAgICAgICAgICAgICAgICAgICAgICBjdXJyZW5jeSA9ICIiLCBpbnRlcnZhbCA9IDMsIG1hcmsgPSAiLCIpICU+JQ0KICAgICAgICAgICAgICAgICAgICAgICAgZm9ybWF0Um91bmQoYygidG90YWxfcG9wdWxhdGlvbiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAid291bmRlZF9kZWFkIiwgImRhbWFnZWRfaG91c2VzIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImJlbmVmaWNpYXJpZXMiLCAidG90YWxfdXNkI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