1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
|
#include "headers.h"
int Mode;
HWND hwnd2importWindow;
int Openfile(char *outputFile, const char *module)
{
OPENFILENAME ofn = {0};
char filename[MAX_PATH] = "";
char filter[MAX_PATH];
mir_snprintf(filter, SIZEOF(filter), "%s%c*.ini%c%s%c*.*%c", Translate("INI Files"), 0, 0, Translate("All Files"), 0, 0);
char *title = Translate("Export to file");
if (module)
{
int n = 0;
mir_strncpy(filename, module, MAX_PATH);
while(filename[n])
{
switch(filename[n])
{
case '*':
case ':':
case '/':
case '?':
case '|':
case '\\':
filename[n] = '_';
break;
}
n++;
}
}
ofn.lStructSize = sizeof(ofn);
ofn.lpstrFile = filename;
ofn.lpstrFilter = filter;
ofn.Flags = OFN_HIDEREADONLY | OFN_SHAREAWARE | OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT;
ofn.lpstrTitle = title;
ofn.nMaxFile = MAX_PATH;
ofn.lpstrDefExt = "ini";
if (!GetSaveFileName(&ofn))
return 0;
lstrcpy(outputFile,filename);
return 1;
}
char* StrReplace (char* Search, char* Replace, char* Resource)
{
int i = 0;
int SearchLen = (int)_tcslen(Search);
char* Work = mir_tstrdup(Replace);
int ReplaceLen = (int)_tcslen(Work);
char* Pointer = _tcsstr(Resource, Search);
while (Pointer != NULL)
{
int PointerLen = (int)_tcslen(Pointer);
int ResourceLen = (int)_tcslen(Resource);
char* NewText = (char*)mir_calloc((ResourceLen - SearchLen + ReplaceLen + 1)*sizeof(char));
_tcsncpy(NewText, Resource, ResourceLen - PointerLen);
_tcscat(NewText, Work);
_tcscat(NewText, Pointer + SearchLen);
Resource = (char*)mir_realloc(Resource, (ResourceLen - SearchLen + ReplaceLen + 1)*sizeof(char));
for (i = 0; i < (ResourceLen - SearchLen + ReplaceLen); i++)
Resource[i] = NewText[i];
Resource[i] = 0;
mir_free(NewText);
Pointer = _tcsstr(Resource + (ResourceLen - PointerLen + ReplaceLen), Search);
}
mir_free(Work);
return Resource;
}
void exportModule(HANDLE hContact, char* module, FILE* file)
{
char tmp[32];
ModuleSettingLL settinglist;
struct ModSetLinkLinkItem *setting;
EnumSettings(hContact,module,&settinglist);
// print the module header..
fprintf(file, "\n[%s]", module);
setting = settinglist.first;
while(setting)
{
DBVARIANT dbv;
if (!GetSetting(hContact, module, setting->name, &dbv))
{
switch (dbv.type)
{
case DBVT_BYTE:
fprintf(file, "\n%s=b%s", setting->name, itoa(dbv.bVal,tmp,10));
db_free(&dbv);
break;
case DBVT_WORD:
fprintf(file, "\n%s=w%s", setting->name, itoa(dbv.wVal,tmp,10));
db_free(&dbv);
break;
case DBVT_DWORD:
fprintf(file, "\n%s=d%s", setting->name, itoa(dbv.dVal,tmp,10));
db_free(&dbv);
break;
case DBVT_ASCIIZ:
case DBVT_UTF8:
if (strchr(dbv.pszVal, '\r'))
{
char *end = StrReplace("\\", "\\\\", dbv.pszVal);
end = StrReplace("\r", "\\r", end);
end = StrReplace("\n", "\\n", end);
fprintf(file, "\n%s=g%s", setting->name, end);
break;
}
if (dbv.type == DBVT_UTF8)
fprintf(file, "\n%s=u%s", setting->name, dbv.pszVal);
else
fprintf(file, "\n%s=s%s", setting->name, dbv.pszVal);
db_free(&dbv);
break;
case DBVT_BLOB:
{
int j;
char *data = NULL;
if (!(data = (char*)mir_alloc( 3*(dbv.cpbVal+1)*sizeof(char))))
break;
data[0] = '\0';
for (j=0; j<dbv.cpbVal; j++)
{
char tmp[16];
mir_snprintf(tmp, SIZEOF(tmp), "%02X ", (BYTE)dbv.pbVal[j]);
strcat(data, tmp);
}
fprintf(file,"\n%s=n%s",setting->name , data);
mir_free(data);
}
db_free(&dbv);
break;
}
}
setting = (struct ModSetLinkLinkItem *)setting->next;
}
FreeModuleSettingLL(&settinglist);
}
char *NickFromHContact(HANDLE hContact)
{
static char nick[512] = "";
if (hContact)
{
char szProto[256];
int loaded = 0;
if (GetValue(hContact,"Protocol","p",szProto,SIZEOF(szProto)))
loaded = IsProtocolLoaded(szProto);
if (!szProto[0] || !loaded)
{
char name[256];
if (szProto[0])
{
if (GetValue(hContact,szProto,"Nick",name,SIZEOF(name)))
mir_snprintf(nick, SIZEOF(nick),"%s (%s)", name, szProto);
else
mir_snprintf(nick, SIZEOF(nick),"(UNKNOWN) (%s)", szProto);
}
else
mir_snprintf(nick, SIZEOF(nick),"(UNKNOWN)");
}
else
{
char *uid = (char*)CallProtoService(szProto, PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0);
if ((INT_PTR)uid != CALLSERVICE_NOTFOUND && uid) {
char szUID[256];
GetValue(hContact, szProto, uid, szUID, SIZEOF(szUID));
mir_snprintf(nick, SIZEOF(nick), "%s *(%s)*<%s>*{%s}*", (char*)GetContactName(hContact,szProto,0), szProto, uid, szUID);
}
else mir_snprintf(nick, SIZEOF(nick), "%s (%s)", (char*)GetContactName(hContact,szProto,0), szProto);
}
}
return nick;
}
void exportDB(HANDLE hContact, char* module) // hContact == -1 export entire db. module == NULL export entire contact.
{ // hContact == -1, module == "" - all contacts
FILE* file = NULL;
char fileName[MAX_PATH];
int nullcontactDone = 0;
ModuleSettingLL modlist;
struct ModSetLinkLinkItem *mod;
// enum all the modules
if (!EnumModules(&modlist)) { msg(Translate("Error Loading Module List"),modFullname); return;}
if (Openfile(fileName, ((int)hContact==-1)?NULL:module))
{
if (!(file = fopen(fileName, "wt"))) { msg(Translate("Couldn't open file for writing"), modFullname); return; }
SetCursor(LoadCursor(NULL,IDC_WAIT));
// exporting entire db
if (hContact == INVALID_HANDLE_VALUE)
{
hContact = NULL;
if (module == NULL)
{
fprintf(file, "SETTINGS:\n");
mod = modlist.first;
while(mod)
{
if (IsModuleEmpty(hContact, mod->name))
{
mod = (struct ModSetLinkLinkItem *)mod->next;
continue;
}
exportModule(hContact, mod->name, file);
mod = (struct ModSetLinkLinkItem *)mod->next;
if (mod)
fprintf(file, "\n");
}
}
else
{
if (module == "") module = NULL; // reset module for all contacts export
}
hContact = db_find_first();
while (hContact)
{
if (!hContact) continue;
// filter
if (Mode != MODE_ALL)
{
char szProto[256];
int loaded = 0;
if (GetValue(hContact,"Protocol","p",szProto,SIZEOF(szProto)))
loaded = IsProtocolLoaded(szProto);
if ((loaded && Mode == MODE_UNLOADED) || (!loaded && Mode == MODE_LOADED))
{
hContact = db_find_next(hContact);
continue;
}
}
fprintf(file, "CONTACT: %s\n", NickFromHContact(hContact));
if (module == NULL) // export all modules
{
mod = modlist.first;
while(mod)
{
if (IsModuleEmpty(hContact, mod->name))
{
mod = (struct ModSetLinkLinkItem *)mod->next;
continue;
}
exportModule(hContact, mod->name, file);
mod = (struct ModSetLinkLinkItem *)mod->next;
if (mod)
fprintf(file, "\n");
}
}
else // export module
{
exportModule(hContact, module, file);
}
hContact = db_find_next(hContact);
}
}
// exporting a contact
else
{
if (!module) // exporting every module
{
if (hContact)
fprintf(file, "CONTACT: %s\n", NickFromHContact(hContact));
else
fprintf(file, "SETTINGS:\n");
mod = modlist.first;
while(mod)
{
if (IsModuleEmpty(hContact, mod->name))
{
mod = (struct ModSetLinkLinkItem *)mod->next;
continue;
}
exportModule(hContact, mod->name, file);
mod = (struct ModSetLinkLinkItem *)mod->next;
if (mod)
fprintf(file, "\n");
}
}
else
{
if (hContact)
fprintf(file, "FROM CONTACT: %s\n", NickFromHContact(hContact));
else
fprintf(file, "SETTINGS:\n");
exportModule(hContact, module, file);
}
}
fclose(file);
SetCursor(LoadCursor(NULL,IDC_ARROW));
}
FreeModuleSettingLL(&modlist);
}
HANDLE CheckNewContact(char *myProto, char *uid, char *myName)
{
char szProto[256], szName[256];
for (HANDLE hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
if (DBGetContactSettingStringStatic(hContact, "Protocol", "p", szProto, 256))
if (!mir_strcmp(szProto, myProto))
if (GetValue(hContact, szProto, uid, szName, SIZEOF(szName)) && !mir_strcmp(szName, myName))
return hContact;
return INVALID_HANDLE_VALUE;
}
HANDLE Clist_GroupExists(WCHAR *tszGroup)
{
unsigned int i = 0;
WCHAR *_t = 0;
char str[10];
INT_PTR result = 0;
DBVARIANT dbv = {0};
int match;
do {
_itoa(i, str, 10);
result = db_get_ts(0, "CListGroups", str, &dbv);
if (!result) {
match = (!lstrcmpW(tszGroup, (LPCWSTR)&dbv.ptszVal[1]) && (lstrlenW(tszGroup) == lstrlenW((LPCWSTR)&dbv.ptszVal[1])));
db_free(&dbv);
if(match)
return((HANDLE)(i + 1));
}
i++;
}
while(result == 0);
return(0);
}
void importSettings(HANDLE hContact, char *importstring )
{
char module[256] = "", setting[256] = "", *end;
int i=0, value, type;
importstring = strtok(importstring, "\n");
SetCursor(LoadCursor(NULL,IDC_WAIT));
while (importstring != NULL)
{
i=0;
rtrim(importstring);
if (importstring[i] == '\0')
{
importstring = strtok(NULL, "\n");
continue;
}
else if (!strncmp(&importstring[i],"SETTINGS:",strlen("SETTINGS:")))
{
importstring = strtok(NULL, "\n");
continue;
}
else if (!strncmp(&importstring[i],"CONTACT:", strlen("CONTACT:")))
{
int len, add = 1;
hContact = INVALID_HANDLE_VALUE;
i = i + (int)strlen("CONTACT:");
len = (int)strlen(&importstring[i]);
if (len > 10) {
char uid[256]="",szUID[256]="",szProto[512]="";
char *p1,*p2;
p1 = strrchr(&importstring[i], '>*{');
p2 = strrchr(&importstring[i], '}*');
if (p1 && p2 && p1+3 < p2 && p2-p1 < SIZEOF(szUID)) {
strncpy(szUID, p1+1, p2-p1-2);
p1 = strrchr(&importstring[i], ')*<');
p2 = strrchr(&importstring[i], '>*{');
if (p1 && p2 && p1+3 < p2 && p2-p1 < SIZEOF(uid)) {
strncpy(uid, p1+1, p2-p1-3);
p1 = strrchr(&importstring[i], ' *(');
p2 = strrchr(&importstring[i], ')*<');
if (p1 && p2 && p1+3 < p2 && p2-p1 < SIZEOF(szProto)) {
char *protouid;
strncpy(szProto, p1+1, p2-p1-3);
protouid = (char*)CallProtoService(szProto,PS_GETCAPS,PFLAG_UNIQUEIDSETTING,0);
if ((INT_PTR)protouid != CALLSERVICE_NOTFOUND) {
if (!mir_strcmp(protouid, uid))
hContact = CheckNewContact(szProto, uid, szUID);
}
else hContact = CheckNewContact(szProto, uid, szUID);
}
}
}
}
if (hContact == INVALID_HANDLE_VALUE)
{
HANDLE temp = (HANDLE)CallService(MS_DB_CONTACT_ADD,0,0);
if (temp)
hContact = temp;
}
}
else if (importstring[i] == '[' && !strchr(&importstring[i+1],'='))// get the module
{
if (end = strpbrk(&importstring[i+1], "]")) {
if ((end+1) != '\0') *end = '\0';
strcpy(module, &importstring[i+1]);
}
}
else if (importstring[i] == '-' && importstring[i+1] == '[' &&
!strchr(&importstring[i+2],'='))// get the module
{
if (end = strpbrk(&importstring[i+2], "]")) {
if ((end+1) != '\0') *end = '\0';
strcpy(module, &importstring[i+2]);
deleteModule(module, hContact, 1);
}
}
else if (strstr(&importstring[i], "=") && module[0]) // get the setting
{
if (end = strpbrk(&importstring[i+1], "=")) {
if ((end+1) != '\0') *end = '\0';
strcpy(setting, &importstring[i]);
// get the type
type = *(end+1);
if (lstrcmp(module, "CList") == 0 && lstrcmp(setting, "Group") == 0)
{
WCHAR* GroupName = mir_a2u(end+2);
if (!GroupName)
continue;
HANDLE GroupHandle = Clist_GroupExists(GroupName);
if(GroupHandle == 0) {
GroupHandle = (HANDLE)CallService(MS_CLIST_GROUPCREATE, 0, (LPARAM)GroupName);
if(GroupHandle) {
CallService(MS_CLUI_GROUPADDED, (WPARAM)GroupHandle, 0);
CallService(MS_CLIST_GROUPSETEXPANDED, (WPARAM)GroupHandle, 1);
}
}
mir_free(GroupName);
}
switch (type)
{
case 'b':
case 'B':
if (sscanf((end+2), "%d", &value) == 1)
db_set_b(hContact, module, setting, (BYTE)value);
break;
case 'w':
case 'W':
if (sscanf((end+2), "%d", &value) == 1)
db_set_w(hContact, module, setting, (WORD)value);
break;
case 'd':
case 'D':
if (sscanf((end+2), "%d", &value) == 1)
db_set_dw(hContact, module, setting, (DWORD)value);
break;
case 's':
case 'S':
db_set_s(hContact,module, setting, (end+2));
break;
case 'g':
case 'G':
{ char *pstr;
for(pstr=end+2;*pstr;pstr++) {
if (*pstr=='\\') {
switch(pstr[1]) {
case 'n': *pstr='\n'; break;
case 't': *pstr='\t'; break;
case 'r': *pstr='\r'; break;
default: *pstr=pstr[1]; break;
}
MoveMemory(pstr+1,pstr+2,lstrlenA(pstr+2)+1);
} } }
case 'u':
case 'U':
db_set_utf(hContact,module, setting, (end+2));
break;
case 'l':
case 'L':
case '-':
db_unset(hContact, module, setting);
break;
case 'n':
case 'N':
WriteBlobFromString(hContact, module, setting, (end+2), (int)strlen((end+2)));
break;
}
}
}
importstring = strtok(NULL, "\n");
}
SetCursor(LoadCursor(NULL,IDC_ARROW));
}
INT_PTR CALLBACK ImportDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch(msg)
{
case WM_INITDIALOG:
{
hwnd2importWindow = hwnd;
SetWindowLongPtr(hwnd,GWLP_USERDATA,lParam);
TranslateDialogDefault(hwnd);
SendDlgItemMessage(hwnd, IDC_TEXT, EM_LIMITTEXT, (WPARAM)sizeof(TCHAR)*0x7FFFFFFF, 0);
}
break;
case WM_COMMAND:
{
switch(LOWORD(wParam))
{
case IDC_CRLF:
{
int length = GetWindowTextLength(GetDlgItem(hwnd, IDC_TEXT));
char *string = (char*)_alloca(length+3);
int Pos = 2;
if (length)
{
int Range = SendDlgItemMessage(hwnd,IDC_TEXT,EM_GETSEL,0,0);
int Min = LOWORD(Range);
int Max = HIWORD(Range);
GetDlgItemText(hwnd, IDC_TEXT, string, length+1);
if (Min == -1)
memcpy(string, crlf_string, SIZEOF(crlf_string));
else
if (Max == -1 || Max >= length)
memcpy(&string[Min], crlf_string, SIZEOF(crlf_string));
else
if (Max-Min > 2)
{
memcpy(&string[Min], crlf_string, SIZEOF(crlf_string));
memmove(&string[Min+2], &string[Max], length - Max + 1);
}
else
{
memmove(&string[Min+2], &string[Max], length - Max + 1);
memcpy(&string[Min], crlf_string, SIZEOF(crlf_string));
}
if (Min) Pos += Min;
}
else
memcpy(string, crlf_string, SIZEOF(crlf_string));
SetDlgItemText(hwnd, IDC_TEXT, string);
SendDlgItemMessage(hwnd,IDC_TEXT,EM_SETSEL,Pos,Pos);
SetFocus(GetDlgItem(hwnd, IDC_TEXT));
}
break;
case IDOK:
{
HANDLE hContact = (HANDLE)GetWindowLongPtr(hwnd,GWLP_USERDATA);
int length = GetWindowTextLength(GetDlgItem(hwnd, IDC_TEXT));
char *string;
if (length)
{
string = (char*)_alloca(length+1);
if (!string) {msg(Translate("Couldnt allocate enough memory!"), modFullname); DestroyWindow(hwnd); }
GetDlgItemText(hwnd, IDC_TEXT, string, length+1);
importSettings(hContact, string);
refreshTree(1);
}
}
break;
case IDCANCEL:
DestroyWindow(hwnd);
hwnd2importWindow = 0;
break;
}
}
break;
}
return 0;
}
void ImportSettingsMenuItem(HANDLE hContact)
{
if (hwnd2importWindow)
DestroyWindow(hwnd2importWindow);
CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_IMPORT), 0, ImportDlgProc, (LPARAM)hContact);
}
int Openfile2Import(char *outputFiles)
{
OPENFILENAME ofn = {0};
char filter[MAX_PATH];
mir_snprintf(filter, SIZEOF(filter), "%s%c*.ini%c%s%c*.*%c", Translate("INI Files"), 0, 0, Translate("All Files"), 0, 0);
char *title = Translate("Import from files");
ofn.lStructSize = OPENFILENAME_SIZE_VERSION_400;
ofn.lpstrFilter = filter;
ofn.hwndOwner = 0;
ofn.lpstrFile = outputFiles;
ofn.nMaxFile = MAX_PATH*10;
ofn.nMaxFileTitle = MAX_PATH;
ofn.Flags = OFN_HIDEREADONLY | OFN_SHAREAWARE | OFN_PATHMUSTEXIST | OFN_ALLOWMULTISELECT | OFN_EXPLORER;
ofn.lpstrTitle = title;
if (!GetOpenFileName(&ofn))
return 0;
return ofn.nFileOffset;
}
BOOL Exists(LPCTSTR strName)
{
return GetFileAttributes(strName) != INVALID_FILE_ATTRIBUTES;
}
void ImportSettingsFromFileMenuItem(HANDLE hContact, char* FilePath)
{
char szFileNames[MAX_PATH*10] = {0};
char szPath[MAX_PATH] = "";
char szFile[MAX_PATH];
int index = 0;
HANDLE hFile, hMap;
PBYTE pFile = NULL;
DWORD offset = 0;
if (lstrcmp(FilePath, "") == 0)
offset = Openfile2Import(szFileNames);
else
{
if(Exists(FilePath))
lstrcpy(szFileNames, FilePath);
else
lstrcpy(szFileNames, "");
}
if (!lstrcmp(szFileNames, "") == 0)
{
if ((DWORD)lstrlenA(szFileNames) < offset)
{
index += offset;
strncpy(szPath, szFileNames, offset);
strcat(szPath, "\\");
}
while(szFileNames[index])
{
strcpy(szFile, szPath);
strcat(szFile, &szFileNames[index]);
index += (int)strlen(&szFileNames[index])+1;
hFile = CreateFile(szFile, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);
if (hFile != INVALID_HANDLE_VALUE)
{
if (GetFileSize(hFile, NULL) > 0)
{
hMap = CreateFileMapping(hFile, NULL, PAGE_READONLY, 0, 0, NULL);
if (hMap) {
pFile = (PBYTE)MapViewOfFile(hMap, FILE_MAP_COPY, 0, 0 ,0);
if (pFile) {
importSettings(hContact, (char*)pFile);
UnmapViewOfFile(pFile);
}
CloseHandle(hMap);
}
}
CloseHandle(hFile);
}
else
break;
}
if (lstrcmp(FilePath, "") == 0)
refreshTree(1);
}
}
|