1. MPC response overview

As of 15 July 2023, a total of 687,767 persons or 137,081 families have been reached by MPC interventions.

A total of USD 21.6 million has been disbursed by 29 implementing agencies in 266 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.


688,000 people reached with MPC, USD 21.6 million disbursed, 15 July 2023

governorate

district

comm.

partners

households

beneficiaries

total_usd

%_BNF1

Aleppo

A'zaz

14

13

5,538

20,603

591,845

3.00

Aleppo

Afrin

112

20

34,617

164,211

4,858,839

23.88

Aleppo

Al Bab

5

6

8,758

43,841

1,267,310

6.37

Aleppo

Jarablus

2

4

1,046

3,448

126,604

0.50

Aleppo

Jebel Saman

18

11

11,735

65,743

1,634,747

9.56

Ar-Raqqa

Tell Abiad

2

1

525

2,938

30,116

0.43

Idleb

Ariha

3

3

746

2,051

86,100

0.30

Idleb

Harim

58

21

68,083

291,368

9,821,056

42.36

Idleb

Idleb

27

16

15,680

76,060

2,636,266

11.06

Idleb

Jisr-Ash-Shugur

27

5

4,432

17,504

559,696

2.55

Total

-

-

-

151,160

687,767

21,612,579

100.00

1As percentage of all MPC beneficiaries reached in NW Syria


In February 2023, 162,231 beneficiary frequencies were reached, and in March 2023 the number increased to 215,163. In April 2023 160,999 were reached. As of May 2023, 88,653 beneficiaries have been reached, followed by 60,020 in June, and 24,499 in July 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

124,883

18.16

village

274,661

39.94

NA

288,223

41.91




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 11.04%.






3.2 Planned activities

Whilst it is heartening to see new sub-districts, the majority of planned allocations have been accorded to areas that have already received relatively high levels of support.






4. Cash response actors and cash disbursed

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


Reach and footprint of cash response actors

implementing_partner1

beneficiary_freq

districts

communities

GOAL (GOAL)

150,251

4

96

Shafak Organization (SO)

116,063

7

37

International Rescue Committee (IRC)

94,708

3

22

Ataa Humanitarian Relief Association (ATAA)

58,251

9

37

Ihsan for Relief and Development (IRD)

51,098

6

32

CBRTWG-031

39,705

6

62

Uluslararasi Insani Yardimlasma Dernegi (IYD)

28,687

6

19

Mercy-USA for Aid and Development (MUSA)

27,905

5

37

Violet Organization (VO)

27,400

3

24

Norwegian Refugee Council (NRC)

22,850

2

4

Syria Relief (SR)

20,525

4

12

Mercy Without Limits (MWL)

19,474

4

10

People in Need (PIN)

12,804

5

6

World Vision International (WVI)

12,048

1

4

Bahar Organization (BO)

12,000

1

1

Insan Charity

7,874

1

1

Solidarités International (SI)

7,058

1

5

International Humanitarian Relief (IHR)

6,654

3

9

Hand in Hand For Syria (HIHFS)

6,651

1

7

CBRTWG-033

5,158

3

7

Welthungerhilfe (WHH)

4,830

4

4

Elaf for Relief and Development (ELAF)

3,800

3

3

Social Development International (SDI)

3,332

2

3

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

Syrian Association for Relief and Development (SARD)

1,683

3

4

Seeds Of Hope Relief and Development (SOH)

916

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)

4,721,550

31,477

150.00

21.85

Shafak Organization (SO)

3,284,200

22,581

145.44

15.20

International Rescue Committee (IRC)

2,515,050

16,767

150.00

11.64

Ataa Humanitarian Relief Association (ATAA)

2,208,774

12,739

173.39

10.22

Ihsan for Relief and Development (IRD)

1,484,550

9,897

150.00

6.87

Violet Organization (VO)

868,350

5,789

150.00

4.02

CBRTWG-031

764,275

7,668

99.67

3.54

Uluslararasi Insani Yardimlasma Dernegi (IYD)

646,950

6,126

105.61

2.99

Norwegian Refugee Council (NRC)

636,300

4,242

150.00

2.94

Syria Relief (SR)

578,350

4,160

139.03

2.68

Mercy-USA for Aid and Development (MUSA)

561,900

5,718

98.27

2.60

Mercy Without Limits (MWL)

465,522

4,230

110.05

2.15

People in Need (PIN)

411,450

2,743

150.00

1.90

Bahar Organization (BO)

360,000

2,400

150.00

1.67

Welthungerhilfe (WHH)

344,400

2,296

150.00

1.59

World Vision International (WVI)

301,200

2,008

150.00

1.39

Solidarités International (SI)

218,250

1,455

150.00

1.01

Hand in Hand For Syria (HIHFS)

210,079

1,400

150.06

0.97

International Humanitarian Relief (IHR)

179,250

1,195

150.00

0.83

Elaf for Relief and Development (ELAF)

170,000

700

242.86

0.79

Insan Charity

150,000

1,500

100.00

0.69

Ghiras Al Nahda (GAN)

91,500

610

150.00

0.42

Bonyan Organization (BO)

86,471

575

150.38

0.40

CBRTWG-033

82,800

903

91.69

0.38

Social Development International (SDI)

82,650

551

150.00

0.38

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

81,000

540

150.00

0.37

Syrian Association for Relief and Development (SARD)

46,948

341

137.68

0.22

Al-Sham Humanitarian Foundation (AHF)

41,250

330

125.00

0.19

Seeds Of Hope Relief and Development (SOH)

19,560

219

89.32

0.09


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 88.99% of cash disbursed was in USD.


Proportion of cash disbursed by currency

currency

total_usd

%_of_total

TRY

2,378,737

11.01

USD

19,233,841

88.99

Total

21,612,578

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 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 10 partners reported their achievements, In March 11 partners have reported their achievements, with 18 partners having reported in April, in May 17 partners have reported. 10 partners have reported in June, and 7 partners have reported in July. If no MPC activities were implemented, please inform the CWG as well.

  2. For this reporting period, activities pertaining to 39,094 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 calculate to the number of unique individuals reached.

LS0tDQp0aXRsZTogIk5vcnRod2VzdCBTeXJpYSBDYXNoIFdvcmtpbmcgR3JvdXAgRWFydGhxdWFrZSBSZXNwb25zZSBCdWxsZXRpbiINCmRhdGU6ICJgciBmb3JtYXQoU3lzLnRpbWUoKSwgJyVkICVCLCAlWScpYCINCm91dHB1dDoNCiAgaHRtbF9kb2N1bWVudDoNCiAgICBjb2RlX2Rvd25sb2FkOiB5ZXMNCiAgICB0aGVtZTogcmVhZGFibGUNCiAgICB0b2M6IHllcw0KICAgIHRvY19kZXB0aDogNA0KICAgIHRvY19mbG9hdDogeWVzDQogICAgbnVtYmVyX3NlY3Rpb25zOiBubw0KICAgIGNvbGxhcHNlZDogbm8NCiAgd29yZF9kb2N1bWVudDoNCiAgICB0b2M6IHllcw0KICAgIHRvY19kZXB0aDogJzQnDQphbHdheXNfYWxsb3dfaHRtbDogeWVzDQotLS0NCg0KYGBge2NzcywgZWNobz1GQUxTRX0NCg0KI1RPQzo6YmVmb3JlIHsNCiAgY29udGVudDogIiI7DQogIGRpc3BsYXk6IGJsb2NrOw0KICBoZWlnaHQ6IDcwcHg7DQogIG1hcmdpbjogMmVtIDIwcHggNDBweCAyMHB4Ow0KICBiYWNrZ3JvdW5kLWltYWdlOiB1cmwoImh0dHBzOi8vZ2l0aHViLmNvbS9ub3J0aHdlc3Qtc3lyaWEtY2FzaC13b3JraW5nLWdyb3VwL211bHRpc2VjdG9yXzRXc19yZXZpZXcvcmF3L21haW4vTldTLUNXRyUyMGxvZ28uUE5HIik7DQogIGJhY2tncm91bmQtc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ICAgICAgImFsZXBwbyIgPSAiQWxlcHBvIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQUxFUFBPIiA9ICJBbGVwcG8iKSwgDQogICAgICAgICBkaXN0cmljdCA9IHJlY29kZShkaXN0cmljdCwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAiSmFiYWwgU2FtbWFuIiA9ICJKZWJlbCBTYW1hbiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgImF6YXoiID0gIkEnemF6IiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAiamFyYWJsdXMiID0gIkphcmFibHVzIiksIA0KICAgICAgICAgIHN1Yl9kaXN0cmljdCA9IHJlY29kZShzdWJfZGlzdHJpY3QsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJhemF6IiA9ICJBJ3pheiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgImphcmFibHVzIiA9ICJKYXJhYmx1cyIpLCANCiAgIyBEb2luZyB0aGlzIGJlY2F1c2UgQXItUmFxcWEgaGFzIG5ldmVyIGFwcGVhcmVkIGJlZm9yZQ0KICAgICAgICAgICAgcHJldmlvdXNseV9hc3Npc3RlZCA9IGlmZWxzZShhZG1pbjFwY29kZSAlaW4lIGMoIlNZMTEiKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJObyIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcmV2aW91c2x5X2Fzc2lzdGVkKSkgJT4lIA0KICAgICAgICAgICAgICBmaWx0ZXIoYWRtaW4xcGNvZGUgIT0gIlNZMDkiKQ0KIA0KICANCg0KaG5vIDwtIHJlYWRfZXhjZWwoIi4vZGF0YS8yMDIzSE5PX1BpTl9TZXZlcml0eV9kZXRhaWxlZEFvSV9GT1JTSEFSRSAxNTAzMjAyMy54bHN4Iiwgc2tpcCA9IDEsIA0KICAgICAgICAgICAgICAgICAgc2hlZXQgPSAxKSAlPiUNCiAgY2xlYW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ICAgICAgY29tbXVuaXRpZXMgPSBuX2Rpc3RpbmN0KGFkbWluNHBjb2RlKSwgDQogICAgICBob3VzZWhvbGRzID0gc3VtKGZhbWlsaWVzLCBuYS5ybSA9IFRSVUUpLCANCiAgICAgIGJlbmVmaWNpYXJpZXMgPSBzdW0oYmVuZWZpY2lhcmllc1twcmV2aW91c2x5X2Fzc2lzdGVkID09ICJObyJdLCBuYS5ybSA9IFRSVUUpLCANCiAgICAgIHRvdGFsX3VzZCA9IHN1bSh0b3RhbF91c2QsIG5hLnJtID0gVFJVRSksIA0KICAgICAgLmdyb3VwcyA9ICJkcm9wIikgJT4lIA0KICAgICAgICB1bmdyb3VwKCkgJT4lIA0KICAgICAgICAgIG11dGF0ZShgJV9CTkZgID0gDQogICAgICAgICAgcm91bmQoYmVuZWZpY2lhcmllcyAvIHN1bShiZW5lZmljaWFyaWVzLCBuYS5ybSA9IFRSVUUpICogMTAwLCBkaWdpdHMgPSAyKSwgDQogICAgICAgICAgdG90YWxfdXNkID0gcm91bmQodG90YWxfdXNkKSkgJT4lDQogICAgICAgICAgICBhZG9ybl90b3RhbHMoInJvdyIsLCwsIGhvdXNlaG9sZHMsIGJlbmVmaWNpYXJpZXMsIHRvdGFsX3VzZCwgYCVfQk5GYCkgJT4lIA0KICAgICAgICAgICAgICBtdXRhdGUoYCVfQk5GYCA9IGlmZWxzZShgJV9CTkZgID4gOTkuOTgsIDEwMCwgYCVfQk5GYCkpICU+JSANCiAgICAgICAgICAgICAgICBzZWxlY3QoZ292ZXJub3JhdGUsIGRpc3RyaWN0LCBgY29tbS5gID0gY29tbXVuaXRpZXMsIHBhcnRuZXJzLCANCiAgICAgICAgICAgICAgICBob3VzZWhvbGRzLCBiZW5lZmljaWFyaWVzLCB0b3RhbF91c2QsIGAlX0JORmApICU+JSANCiAgICAgICAgICAgICAgICAgIGZsZXh0YWJsZSgpICU+JSANCiAgICAgICAgICAgICAgICAgICAgc2V0X2NhcHRpb24ocGFzdGUwKA0KICAgICAg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JORmApKSAlPiUgDQogICAgICAgICAgICAgICAgc2VsZWN0KGdvdmVybm9yYXRlLCBkaXN0cmljdCwgYGNvbW0uYCA9IGNvbW11bml0aWVzLCBwYXJ0bmVycywgDQogICAgICAgICAgICAgICAgaG91c2Vob2xkcywgYmVuZWZpY2lhcmllcywgdG90YWxfdXNkLCBgJV9CTkZgKSAlPiUgDQogICAgICAgICAgICAgICAgICBmbGV4dGFibGUoKSAlPiUgDQogICAgICAgICAgICAgICAgICAgIHNldF9jYXB0aW9uKHBhc3RlMCgNCiAgICAgICAgICAgICAgICAgICAgcm91bmQoc3VtX3N0YXRzJGJlbmVmaWNpYXJpZXMsIGRpZ2l0cyA9IC0zKSAlPiUgZm9ybWF0KGJpZy5tYXJrID0gIiwiKSwNCiAgICAgICAgICAgICAgICAgICAgIiBwZW9wbGUgcmVhY2hlZCB3aXRoIE1QQywgVVNEICIsDQogICAgICAgICAgICAgICAgICAgIHBhc3RlKGZvcm1hdChyb3VuZCgoc3VtX3N0YXRzICU+JSBwdWxsKHRvdGFsX3VzZCkpIC8gMTAwMDAwMCwgMSksIHRyaW0gPSBUUlVFKSwgIm1pbGxpb24iKSwgDQogICAgICAgICAgICAgICAgICAgICIgZGlzYnVyc2VkLCAiLCANCiAgICAgICAgICAgICAgICAgICAgcmVwb3J0X2RhdGUpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgdGhlbWVfemVicmEoKSAlPiUgDQogICMgIGZvb3Rub3RlKGkgPSAxLCBqID0gNiwgcGFydCA9ICJoZWFkZXIiLCByZWZfc3ltYm9scyA9ICJhIiwNCiAgIyAgYXNfcGFyYWdyYXBoKCJCZW5lZmljaWFyeSBmaWd1cmVzIGluY2x1ZGUgb25seSByZXBvcnRlZCBNUEMgd2l0aCBhIG1pbmltdW0gdHJhbnNmZXIgdmFsdWUgI29mIFVTRCAxMDAiKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgZm9vdG5vdGUoaSA9IDEsIGogPSA4LCBwYX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biA9IGN1bXN1bShiZW5lZmljaWFyaWVzKSkgJT4lIA0KICAjIFNwYWNlZCBhdCByb3VnaGx5IGV2ZXJ5IDE1IGRheXMsIA0KICAjIEFsdGhvdWdoIHNvbWUgZGF5cyBkbyBub3QgaGF2ZSBkaXN0cmlidXRpb25zIA0KICAgICAgICAgICAgICAgICAgICBtdXRhdGUoY3VtX2xhYmVsID0gaWZlbHNlKGVuZF9kYXRlID09ICIyMDIzLTAyLTEwInwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDMtMDEifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTAzLTE1InwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wMy0zMCJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDQtMTUifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA0LTMwInwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wNS0yNCJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDYtMTEifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA2LTMwInwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wNy0xMyIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY3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R1ZGVfeCwgeSA9IGxhdGl0dWRlX3ksIA0KICAgICAgICAgICAgICAgICB0ZXh0ID0gcGFzdGUwKCJzdWJfZGlzdHJpY3Q6ICIsIHN1Yl9kaXN0cmljdCwgIlxuIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiY29tbXVuaXR5OiAiLCBjb21tdW5pdHksICJcbiIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImxvY2F0aW9uX3R5cGU6ICIsIHZpbGxhZ2VfY2FtcHMsICJcbiIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImJlbmVmaWNpYXJpZXM6IiwgZm9ybWF0KGJlbmVmaWNpYXJpZXMsIGJpZy5tYXJrID0gIiwiKSwgIlxuIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAicGFydG5lcjogIiwgYWJicmV2aWF0aW9uLCAiXG4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAibG9uX3g6ICIsIGxvbmdpdHVkZV94LCAiXG4iLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJsYXRfeTogIiwgbGF0aXR1ZGVfeSkpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2hhcGUgPSAyMSwgc3Ryb2tlID0gLjM1LCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWxwaGEgPSAuNSkgKyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2NhbGVfc2l6ZV9jb250aW51b3VzKGxhYmVscyA9IGNvbW1hKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY2FsZV9jb2xvdXJfdmlyaWRpc19kKG5hLnRyYW5zbGF0ZSA9IEZBTFNFKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGVtZV92b2lkKCkgKyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhlbWUocGxvdC5iYWNrZ3JvdW5kID0gZWxlbWVudF9yZWN0KGZpbGwgPSAid2hpdGUiLCBjb2xvdXIgPSBOQSksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwbG90LmNhcHRpb24gPSBlbGVtZW50X3RleHQoaGp1c3QgPSAwLjUpLCkgKw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYWJzKHRpdGxlID0gIkNvbW11bml0aWVzIHJlYWNoZWQgYW5kIHBsYW5uZWQgLS0gQ1dHIHBhcnRuZXJzIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1YnRpdGxlID0gIlBsYW5uZWQgaW4geWVsbG93LCBjb21wbGV0ZWQgaW4gcHVycGxlLCBzaXplIHNob3dzIG51bWJlciBvZiBwZXJzb25zIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbG91ciA9ICJTdGF0dXMiKSArDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGd1aWRlcyhzaXplID0gIm5vbmUiKQ0KDQogIA0KZ2dwbG90bHkocGxhbm5lZF9pbXBsZW1lbnRlZF9tYXAsIHRvb2x0aXAgPSBjKCJ0ZXh0IikpICU+JSANCiAgcGxvdGx5OjpzdHlsZShob3Zlcm9uID0gInBvaW50IikgJT4lIA0KICAgIGxheW91dCh0aXRsZSA9IGxpc3QodGV4dCA9IHBhc3RlMCgiQ29tbXVuaXRpZXMgcmVhY2hlZCBhbmQgcGxhbm5lZCAtLSBDV0cgcGFydG5lcnMiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiPGJyPiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICI8c3VwPiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJQbGFubmVkIGluIGdyZWVuLCBjb21wbGV0ZWQgaW4gcHVycGxlLCBzaXplIHNob3dzIG51bWJlciBvZiBwZXJzb25zOyBjbGljayBhbmQgZHJhZyB0byB6b29tOyBtb3VzZSBvdmVy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GJlbmVmaWNpYXJpZXMsIHkgPSBkaXN0cmljdCkpICsgDQogICAgICAgICAgICAgICAgZ2VvbV9jb2woYWVzKGZpbGwgPSBnb3Zlcm5vcmF0ZSkpICsgDQogICAgICAgICAgICAgICAgZ2VvbV90ZXh0KGFlcyhsYWJlbCA9IGNvbW1hKGJlbmVmaWNpYXJpZXMpKSwgDQogICAgICAgICAgICAgICAgaGp1c3QgPSAiaW53YXJkIikgKyANCiAgICAgICAgICAgICAgICBzY2FsZV9maWxsX3ZpcmlkaXNfZChiZWdpbiA9IC4zKSArIA0KICAgICAgICAgICAgICAgIGxhYnModGl0bGUgPSAiTVBDIGJlbmVmaWNpYXJpZXMgYnkgZGlzdHJpY3QiLCANCiAgICAgICAgICAgICAgICBzdWJ0aXRsZSA9IHBhc3RlMCgiYXMgb2YgIiwgcmVwb3J0X2RhdGUpLCANCiAgICAgICAgICAgICAgICB5ID0gIiIpICsgDQogICAgICAgICAgICAgICAgc2NhbGVfeF9jb250aW51b3VzKGxhYmVscyA9IHVuaXRfZm9ybWF0KHVuaXQgPSAiSyIsIHNjYWxlID0gMWUtMywgYWNjdXJhY3kgPSAxKSkgKyANCiAgICAgICAgICAgICAgICBobm8gJT4lIA0KICAgICAgICAgICAgICAgICAgZmlsdGVyKGFkbWluMm5hbWVfZW4gJWluJSBjKCJIYXJpbSIsICJJZGxlYiIsICJKaXNyLUFzaC1TaHVndXIiLCAiQXJpaGEiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVsbCBBYmlhZCIsICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQWZyaW4iLCAiSmViZWwgU2FtYW4iLCAiQSd6YXoiLCAiSmFyYWJsdXMiLCAiQWwgQmFiIikpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdyb3VwX2J5KGdvdmVybm9yYXRlID0gYWRtaW4xbmFtZV9lbiwgZGlzdHJpY3QgPSBhZG1pbjJuYW1lX2VuKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1bW1hcmlzZSh0b3RhbF9wb3B1bGF0aW9uID0gc3VtKHRvdGFsX3BvcHVsYXRpb24sIG5hLnJtID0gVFJVRSksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuZ3JvdXBzID0gImRyb3AiKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGVmdF9qb2luKA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNiciAlPiUNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbHRlcihwcm9qZWN0X3N0YXR1cyA9PSAiQ29tcGxldGVkIiAmICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJldmlvdXNseV9hc3Npc3RlZCA9PSAiTm8iKSAlPiUgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdyb3VwX2J5KGRpc3RyaWN0KSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdW1tYXJpc2UoYmVuZWZpY2lhcmllcyA9IHN1bShiZW5lZmljaWFyaWVzLCBuYS5ybSA9IFRSVUUpKSAsICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnkgPSAiZGlzdHJpY3QiKSAlPiUgDQogICMgS2luZCBvZiBpcnJpdGF0aW5nIHRoYXQgeW91J3JlIGRvaW5nIHRoaXMgbWFudWFsbHkgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbXV0YXRlKGRpc3RyaWN0ID0gZmN0X3JlbGV2ZWwoZGlzdHJpY3QsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJBbCBCYWIiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiSmFyYWJsdXMiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQSd6YXoiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiSmViZWwgU2FtYW4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQWZyaW4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVsbCBBYmlhZCIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFyaWhhIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkppc3ItQXNoLVNodWd1ciIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJJZGxlYiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJIYXJpbSIpLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBjX3JlYWNoZWQgPSByb3VuZChiZW5lZmljaWFyaWVzIC8gdG90YWxfcG9wdWxhdGlvbiAqIDEwMCwgZGlnaXRzID0gMSkpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdncGxvdChhZXMoeCA9IHBjX3JlYWNoZWQsIHkgPSBkaXN0cmljdCkpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdlb21fY29sKGFlcyhmaWxsID0gZ292ZXJub3JhdGUpKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2VvbV90ZXh0KGFlcyhsYWJlbCA9IGNvbW1hKHBjX3JlYWNoZWQpKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoanVzdCA9ICJpbndhcmQiKSArDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY2FsZV9maWxsX3ZpcmlkaXNfZChiZWdpbiA9IC4zKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFicyh0aXRsZSA9ICJQZXJjZW50IG9mIHBvcHVsYXRpb24gcmVhY2hlZCIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VidGl0bGUgPSBwYXN0ZTAoImFzIG9mICIsIHJlcG9ydF9kYXRlKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB5ID0gIiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeCA9ICIlIG9mIHBvcHVsYXRpb24gcmVhY2hlZCIpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBsb3RfbGF5b3V0KGd1aWRlcyA9ICJjb2xsZWN0IikgJiANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoZW1lKGxlZ2VuZC5wb3NpdGlvbiA9ICJib3R0b20iKQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdnc2F2ZSgiLi9pbWcvbXBjX2J5X2Rpc3RyaWN0LnBuZyIsIGRwaSA9IDMwMCwgaGVpZ2h0ID0gOC4yNywgd2lkdGggPSAxMS42OSwgdW5pdHMgPSAiaW4iKSAgDQoNCmBgYA0KDQo8YnI+DQoNCmBgYHtyIHRhYmxlLWVxLWRhbWFnZX0NCmVxICU+JSANCiAgbGVmdF9qb2luKGhubyAlPiUgDQogICAgc2VsZWN0KGdvdmVybm9yYXRlID0gYWRtaW4xbmFtZV9lbiwgDQogICAgZGlzdHJpY3QgPSBhZG1pbjJuYW1lX2VuLCANCiAgICBzdWJfZGlzdHJpY3QgPSBhZG1pbjNuYW1lX2VuLCANCiAgICBhZG1pbjNwY29kZSksIA0KICAgIGJ5ID0gImFkbWluM3Bjb2RlIikgJT4lIA0KICAgICAgZmlsdGVyKGFkbWluM3Bjb2RlICVpbiUgbndfcGNvZGUzICYgDQogICAgICBkaXN0cmljdCAlaW4lIGMoIkhhcmltIiwgIklkbGViIiwgIkppc3ItQXNoLVNodWd1ciIsICJBcmloYSIsIA0KICAgICAgICAgICAgICAgICAgICAgICJUZWxsIEFiaWFkIiwgIA0KICAgICAgICAgICAgICAgICAgICAgICJBZnJpbiIsICJKZWJlbCBTYW1hbiIsICJBJ3pheiIsICJKYXJhYmx1cyIsICJBbCBCYWIiKSkgJT4lIA0KICAgICAgICBncm91cF9ieShnb3Zlcm5vcmF0ZSwgZGlzdHJpY3QpICU+JSANCiAgICAgICAgICBzdW1tYXJpc2Uod291bmRlZF9kZWFkID0gc3VtKHdvdW5kZWRfZGVhZCwgbmEucm0gPSBUUlVFKSwgDQogICAgICAgICAgZGFtYWdlZF9ob3VzZXMgPSBzdW0oZGFtYWdlZF9ob3VzZXMsIG5hLnJtID0gVFJVRSkpICU+JSANCiAgIyBXaGVyZSBpcyBBcmloYSwgYW5kIHdoeSBpcyBpdCBzaG93aW5nIHVwIGhlcmUNCiAgICAgICAgICAgIGZpbHRlcihkaXN0cmljdCAhPSAiQXJpaGEiKSAlPiUgDQogICAgICAgICAgICAgIGxlZnRfam9pbihobm8gJT4lIA0KICAgICAgICAgICAgICAgIGZpbHRlcihhZG1pbjNwY29kZSAlaW4lIG53X3Bjb2RlMyAmDQogICAgICAgICAgICAgICAgYWRtaW4ybmFtZV9lbiAlaW4lIGMoIkhhcmltIiwgIklkbGViIiwgIkppc3ItQXNoLVNodWd1ciIsICJBcmloYSIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlRlbGwgQWJpYWQiLCAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJBZnJpbiIsICJKZWJlbCBTYW1hbiIsICJBJ3pheiIsICJKYXJhYmx1cyIsICJBbCBCYWIiKSkgJT4lDQogICAgICAgICAgICAgICAgICBncm91cF9ieShkaXN0cmljdCA9IGFkbWluMm5hbWVfZW4pICU+JQ0KICAgICAgICAgICAgICAgICAgICBzdW1tYXJpc2UocG9wdWxhdGlvbiA9IHN1bSh0b3RhbF9wb3B1bGF0aW9uLCBuYS5ybSA9IFRSVUUpKSwgYnkgPSAiZGlzdHJpY3QiKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgbXV0YXRlKHdvdW5kZWRfZGVhZF8xMDBrID0gcm91bmQod291bmRlZF9kZWFkIC8gcG9wdWxhdGlvbiAqIDEwMDAwMCwgZGlnaXRzID0gMiksIA0KICAgICAgICAgICAgICAgICAgICAgICAgZGFtYWdlZF9ob3VzZXNfMTAwayA9IHJvdW5kKGRhbWFnZWRfaG91c2VzIC8gcG9wdWxhdGlvbiAqIDEwMDAwMCwgZGlnaXRzID0gMikpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZWN0KGdvdmVybm9yYXRlLCBkaXN0cmljdCwgd291bmRlZF9kZWFkLCB3b3VuZGVkX2RlYWRfMTAwaywgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGRhbWFnZWRfaG91c2VzLCBkYW1hZ2VkX2hvdXNlc18xMDBrKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgZmxleHRhYmxlKCkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhlbWVfemVicmEoKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNldF90YWJsZV9wcm9wZXJ0aWVzKGxheW91dCA9ICJhdXRvZml0Iiwgd2lkdGggPSAuOTkpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRfY2FwdGlvbigiQ2FzdWFsdGllcyBhbmQgZGFtYWdlZCBob3VzZXMsIGFic29sdXRlIGZpZ3VyZXMgYW5kIHBlciAxMDAsMDAwIHBlcnNvbnMiKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb290bm90ZShwYXJ0ID0gImhlYWRlciIsIGkgPSAxLCBqID0gMzo2LCBpbmxpbmUgPSBUUlVFLCByZWZfc3ltYm9scyA9ICIxIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlID0gYXNfcGFyYWdyYXBoKCJEYXRhIGZyb20gdGhlIEFzc2lzdGFuY2UgQ29vcmRpbmF0aW9uIFVuaXQsIFN5cmlhIDIwMjMwMzI4IikpDQpgYGANCg0KPGJyPg0KDQpCZWxvdyBpcyBhIGJyZWFrZG93biBvZiBiZW5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HMiKSAlPiUgDQogICAgICAgICAgICAgICAgICB0aGVtZV96ZWJyYSgpICU+JQ0KICAgICAgICAgICAgICAgICAgICBzZXRfdGFibGVfcHJvcGVydGllcyhsYXlvdXQgPSAiYXV0b2ZpdCIsIHdpZHRoID0gLjYpDQogIA0KYGBgDQoNCg0KPGJyPjxicj48YnI+DQoNCiMjIyAzLjEgQnkgc3ViLWRpc3RyaWN0DQoNCmBgYHtyIGRmLXBjLXJlYWNoZWR9DQphdmdfcGNfcmVhY2hlZCA8LSBjYnIgJT4lIA0KICBtdXRhdGUoc3ViX2Rpc3RyaWN0ID0gcmVjb2RlKHN1Yl9kaXN0cmljdCwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInNhbHFpbiIgPSAiU2FscWluIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImFmcmluIiA9ICJBZnJpbiIpKSAlPiUNCiAgICBmaWx0ZXIocHJvamVjdF9zdGF0dXMgPT0gIkNvbXBsZXRlZCIgJiANCiAgICAgICAgICAgcHJldmlvdXNseV9hc3Npc3RlZCA9PSAiTm8iKSAlPiUNCiAgICAgIGZpbHRlcighaXMubmEoYWRtaW4zcGNvZGUpKSAlPiUgDQogICAgICAgIGdyb3VwX2J5KHN1Yl9kaXN0cmljdCwgYWRtaW4zcGNvZGUsIGdvdmVybm9yYXRlKSAlPiUNCiAgICAgICAgICBzdW1tYXJpc2UoYmVuZWZpY2lhcmllcyA9IHN1bShiZW5lZmljaWFyaWVzLCBuYS5ybSA9IFRSVUUpLA0KICAgICAgICAgIC5ncm91cHMgPSAiZHJvcCIpICU+JSANCiAgICAgICAgICAgIGxlZnRfam9pbihobm8gJT4lIA0KICAgICAgICAgICAgICBmaWx0ZXIoYWRtaW4ybmFtZV9lbiAlaW4lIGMoIkhhcmltIiwgIklkbGViIiwgIkppc3ItQXNoLVNodWd1ciIsICJBcmloYSIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlRlbGwgQWJpYWQiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJBZnJpbiIsICJKZWJlbCBTYW1hbiIsICJBJ3pheiIsICJKYXJhYmx1cyIsICJBbCBCYWIiKSkgJT4lDQogICAgICAgICAgICAgICAgZ3JvdXBfYnkoYWRtaW4xbmFtZV9lbiwgYWRtaW4zcGNvZGUpICU+JQ0KICAgICAgICAgICAgICAgICAgc3VtbWFyaXNlKHRvdGFsX3BvcHVsYXRpb24gPSBzdW0odG90YWxfcG9wdWxhdGlvbiwgbmEucm0gPSBUUlVFKSwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAuZ3JvdXBzID0gImRyb3AiKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgYnkgPSAiYWRtaW4zcGNvZGUiKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdW1tYXJpc2UodG90YWxfcG9wdWxhdGlvbiA9IHN1bSh0b3RhbF9wb3B1bGF0aW9uLCBuYS5ybSA9IFRSVUUpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJlbmVmaWNpYXJpZXMgPSBzdW0oYmVuZWZpY2lhcmllcywgbmEucm0gPSBUUlVFKSkgJT4lDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG11dGF0ZShhdmdfcGNfcmVhY2hlZCA9IHJvdW5kKGJlbmVmaWNpYXJpZXMgLyB0b3RhbF9wb3B1bGF0aW9uICogMTAwLCBkaWdpdHMgPSAyKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHB1bGwoYXZnX3BjX3JlYWNoZWQpDQpgYGANCg0KDQpUaGUgcGxvdHMgYmVsb3cgc2hvdyB0aGUgYnJlYWtkb3duIG9mIGJlbmVmaWNpYXJpZXMgYnkgc3ViLWRpc3RyaWN0LiBDYXV0aW9uIG11c3QgYmUgdGFrZW4gdG8gZW5zdXJlIHRoYXQgYWxsb2NhdGlvbnMgYXJlIGZhaXIgYWNyb3NzIHRo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ICAgICJhZnJpbiIgPSAiQWZyaW4iKSkgJT4lIA0KICAgICAgICBncm91cF9ieShnb3Zlcm5vcmF0ZSwgc3ViX2Rpc3RyaWN0KSAlPiUgDQogICAgICAgICAgc3VtbWFyaXNlKGJlbmVmaWNpYXJpZXMgPSBzdW0oYmVuZWZpY2lhcmllcywgbmEucm0gPSBUUlVFKSwgDQogICAgICAgICAgICAgICAgICAgIC5ncm91cHMgPSAiZHJvcCIpICU+JSANCiAgICAgICAgICAgIGFycmFuZ2UoZGVzYyhiZW5lZmljaWFyaWVzKSkgJT4lIA0KICAgICAgICAgICAgICBhcnJhbmdlKGRlc2MoZ292ZXJub3JhdGUpKSAlPiUgDQogICAgICAgICAgICAgICAgcHVsbChzdWJfZGlzdHJpY3QpDQpgYGANCg0KDQoNCmBgYHtyIG1wYy1ieS1zdWItZGlzdHJpY3QsIGZpZy5oZWlnaHQ9OH0NCg0KY2JyICU+JSANCiAgZmlsdGVyKHByb2plY3Rfc3RhdHVzID09ICJDb21wbGV0ZWQiICYgDQogICAgICAgICBwcmV2aW91c2x5X2Fzc2lzdGVkID09ICJObyIpICU+JSANCiAgICBmaWx0ZXIoIWlzLm5hKGFkbWluM3Bjb2RlKSkgJT4lIA0KICAgICAgbXV0YXRlKHN1Yl9kaXN0cmljdCA9IHJlY29kZShzdWJfZGlzdHJpY3QsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAic2FscWluIiA9ICJTYWxxaW4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImFmcmluIiA9ICJBZnJpbiIpKSAlPiUgDQogICAgICAgIGdyb3VwX2J5KGdvdmVybm9yYXRlLCBzdWJfZGlzdHJpY3QpICU+JSANCiAgICAgICAgICBzdW1tYXJpc2UoYmVuZWZpY2lhcmllcyA9IHN1bShiZW5lZmljaWFyaWVzLCBuYS5ybSA9IFRSVUUpLCANCiAgICAgICAgICAgICAgICAgICAgLmdyb3VwcyA9ICJkcm9wIikgJT4lIA0KICAgICAgICAgICAgdW5ncm91cCgpICU+JSANCiAgICAgICAgICAgICAgbXV0YXRlKHN1Yl9kaXN0cmljdCA9IGZhY3RvcihzdWJfZGlzdHJpY3QsICBzdWJfZGlzdHJpY3Rfb3JkZXIpLCANCiAgICAgICAgICAgICAgc3ViX2Rpc3RyaWN0ID0gZmN0X3JldihzdWJfZGlzdHJpY3QpKSAlPiUgDQogICAgICAgICAgICAgICAgYXJyYW5nZShzdWJfZGlzdHJpY3QpICU+JSANCiAgICAgICAgICAgICAgICAgIGdncGxvdChhZXMoeCA9IGJlbmVmaWNpYXJpZXMsIHkgPSBzdWJfZGlzdHJpY3QpKSArIA0KICAgICAgICAgICAgICAgICAgZ2VvbV9jb2woYWVzKGZpbGwgPSBnb3Zlcm5vcmF0ZSkpICsgDQogICAgICAgICAgICAgICAgICBnZW9tX3RleHQoYWVzKGxhYmVsID0gY29tbWEoYmVuZWZpY2lhcmllcykpLCANCiAgICAgICAgICAgICAgICAgIGhqdXN0ID0gImlud2FyZCIpICsgDQogICAgICAgICAgICAgICAgICBzY2FsZV9maWxsX3ZpcmlkaXNfZChiZWdpbiA9IC4zKSArIA0KICAgICAgICAgICAgICAgICAgbGFicyh0aXRsZSA9ICJNUEMgYmVuZWZpY2lhcmllcyBieSBzdWItZGlzdHJpY3QiLCANCiAgICAgICAgICAgICAgICAgIHN1YnRpdGxlID0gcGFzdGUwKCJhcyBvZiAiLCByZXBvcnRfZGF0ZSksIA0KICAgICAgICAgICAgICAgICAgeSA9ICIiKSArIA0KICAgICAgICAgICAgICAgICAgc2NhbGVfeF9jb250aW51b3VzKGxhYmVscyA9IGNvbW1hKSArIA0KICAgICAgICAgICAgICAgICAgDQpjYnIgJT4lIA0KICBtdXRhdGUoc3ViX2Rpc3RyaWN0ID0gcmVjb2RlKHN1Yl9kaXN0cmljdCwgDQogICAgICAgICAic2FscWluIiA9ICJTYWxxaW4iLCANCiAgICAgICAgICJhZnJpbiIgPSAiQWZyaW4iKSkgJT4lDQogICAgZmlsdGVyKHByb2plY3Rfc3RhdHVzID09ICJDb21wbGV0ZWQiICYgIA0KICAgIHByZXZpb3VzbHlfYXNzaXN0ZWQgPT0gIk5vIikgJT4lDQogICAgICBmaWx0ZXIoIWlzLm5hKGFkbWluM3Bjb2RlKSkgJT4lIA0KICAgICAgICBncm91cF9ieShzdWJfZGlzdHJpY3QsIGFkbWluM3Bjb2RlLCBnb3Zlcm5vcmF0ZSkgJT4lDQogICAgICAgICAgc3VtbWFyaXNlKGJlbmVmaWNpYXJpZXMgPSBzdW0oYmVuZWZpY2lhcmllcywgbmEucm0gPSBUUlVFKSwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuZ3JvdXBzID0gImRyb3AiKSAlPiUgDQogICAgICAgICAgICBsZWZ0X2pvaW4oaG5vICU+JSANCiAgICAgICAgICAgICAgZmlsdGVyKGFkbWluMm5hbWVfZW4gJWluJSBjKCJIYXJpbSIsICJJZGxlYiIsICJKaXNyLUFzaC1TaHVndXIiLCAiQXJpaGEiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJUZWxsIEFiaWFkIiwgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFmcmluIiwgIkplYmVsIFNhbWFuIiwgIkEnemF6IiwgIkphcmFibHVzIiwgIkFsIEJhYiIpKSAlPiUNCiAgICAgICAgICAgICAgICBncm91cF9ieShhZG1pbjFuYW1lX2VuLCBhZG1pbjNwY29kZSkgJT4lDQogICAgICAgICAgICAgICAgICBzdW1tYXJpc2UodG90YWxfcG9wdWxhdGlvbiA9IHN1bSh0b3RhbF9wb3B1bGF0aW9uLCBuYS5ybSA9IFRSVUUpLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmdyb3VwcyA9ICJkcm9wIiksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnkgPSAiYWRtaW4zcGNvZGUiKSAlPiUgDQogICAgICAgICAgICAgICAgICAgIG11dGF0ZShwY19yZWFjaGVkID0gcm91bmQoYmVuZWZpY2lhcmllcyAvIHRvdGFsX3BvcHVsYXRpb24gKiAxMDAsIGRpZ2l0cyA9IDEpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgbXV0YXRlKHN1Yl9kaXN0cmljdCA9IGZhY3RvcihzdWJfZGlzdHJpY3QsICBzdWJfZGlzdHJpY3Rfb3JkZXIpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3ViX2Rpc3RyaWN0ID0gZmN0X3JldihzdWJfZGlzdHJpY3QpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICBhcnJhbmdlKHN1Yl9kaXN0cmljdCkgJT4lICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgZ2dwbG90KGFlcyh4ID0gcGNfcmVhY2hlZCwgeSA9IHN1Yl9kaXN0cmljdCkpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgZ2VvbV9jb2woYWVzKGZpbGwgPSBnb3Zlcm5vcmF0ZSkpICsgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGdlb21fdGV4dChhZXMobGFiZWwgPSBjb21tYShwY19yZWFjaGVkKSksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBoanVzdCA9ICJpbndhcmQiKSArDQogICAgICAgICAgICAgICAgICAgICAgICAgIHNjYWxlX2ZpbGxfdmlyaWRpc19kKGJlZ2luID0gLjMpICsgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGxhYnModGl0bGUgPSAiUGVyY2VudCBvZiBwb3B1bGF0aW9uIHJlYWNoZWQiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgc3VidGl0bGUgPSBwYXN0ZTAoImFzIG9mICIsIHJlcG9ydF9kYXRlKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgIHkgPSAiIiwgDQogICAgICAgICAgICAgICAgICAgICAgICA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ikgJT4lIA0KICAgICAgbGVmdF9qb2luKGNiciAlPiUgDQogICAgICAgIGZpbHRlcihwcm9qZWN0X3N0YXR1cyA9PSAiQ29tcGxldGVkIikgJT4lIA0KICAgICAgICAgIGdyb3VwX2J5KGFkbWluM3Bjb2RlKSAlPiUgDQogICAgICAgICAgICBzdW1tYXJpc2UoYmVuZWZpY2lhcmllcyA9IHN1bShiZW5lZmljaWFyaWVzW3ByZXZpb3VzbHlfYXNzaXN0ZWQgPT0gIk5vIl0sIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmEucm0gPSBUUlVFKSwgDQogICAgICAgICAgICB0b3RhbF91c2QgPSBzdW0odG90YWxfdXNkLCBuYS5ybSA9IFRSVUUpKSwgDQogICAgICAgICAgICBieSA9ICJhZG1pbjNwY29kZSIpICU+JSANCiAgICAgICAgICAgICAgc2VsZWN0KGdvdmVybm9yYXRlLCBkaXN0cmljdCwgc3ViX2Rpc3RyaWN0LCANCiAgICAgICAgICAgICAgICAgICAgIHRvdGFsX3BvcHVsYXRpb24sIA0KICAgICAgICAgICAgICAgICAgICAgYmVuZWZpY2lhcmllcywgdG90YWxfdXNkLCANCiAgICAgICAgICAgICAgICAgICAgIHdvdW5kZWRfZGVhZCwgd291bmRlZF9kZWFkXzEwMGssIA0KICAgICAgICAgICAgICAgICAgICAgZGFtYWdlZF9ob3VzZXMsIGRhbWFnZWRfaG91c2VzXzEwMGssIA0KICAgICAgICAgICAgICAgICAgICAgYWRtaW4zcGNvZGUpICU+JSANCiAgICAgICAgICAgICAgICBkYXRhdGFibGUob3B0aW9ucyA9IGxpc3QocGFnZUxlbmd0aCA9IDEwLCBzY3JvbGxYID0gVFJVRSksIA0KICAgICAgICAgICAgICAgIGZpbHRlciA9IGxpc3QocG9zaXRpb24gPSAidG9wIiwgY2xlYXIgPSBGQUxTRSksDQogICAgICAgICAgICAgICAgY2FwdGlvbiA9IGh0bWx0b29sczo6dGFncyRjYXB0aW9uKHN0eWxlID0gJ2NhcHRpb24tc2lkZTogdG9wOyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyOyBmb250LXNpemU6MTIwJSA7JywNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlJlZmVyZW5jZSB0YWJsZSAtLSBFYXJ0aHF1YWtlIGltcGFjdHMsIGZyb20gQUNVLCBleHRyYWN0ZWQgMjAyMzAzMjgiKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgZm9ybWF0U3R5bGUoMCwgdGFyZ2V0ID0gInJvdyIsIGxpbmVIZWlnaHQgPSAiODAlIiwgZm9udFNpemUgPSAiODAlIikgJT4lIA0KICAgICAgICAgICAgICAgICAgICBmb3JtYXRSb3VuZChjKCJ3b3VuZGVkX2RlYWRfMTAwayIsICJkYW1hZ2VkX2hvdXNlc18xMDBrIiksIGRpZ2l0cyA9IDIpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICBmb3JtYXRDdXJyZW5jeShjKCJ0b3RhbF9wb3B1bGF0aW9uIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAid291bmRlZF9kZWFkIiwgImRhbWFnZWRfaG91c2VzIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiYmVuZWZpY2lhcmllcyIsICJ0b3RhbF91c2QiKSwgDQogICAgICAgICAgICAgICAgICAgICAgY3VycmVuY3kgPSAiIiwgaW50ZXJ2YWwgPSAzLCBtYXJrID0gIiwiKSAlPiUNCiAgICAgICAgICAgICAgICAgICAgICAgIGZvcm1hdFJvdW5kKGMoInRvdGFsX3BvcHVsYXRpb24iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIndvdW5kZWRfZGVhZCIsICJkYW1hZ2VkX2hvdXNlcyIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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