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 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797
|
/*
* help.c: handles the help stuff for irc
*
* Written by Michael Sandrof, Troy Rollo and Matthew R. Green.
*
* Copyright (c) 1990 Michael Sandrof.
* Copyright (c) 1991, 1992 Troy Rollo.
* Copyright (c) 1992-2017 Matthew R. Green.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#include "irc.h"
IRCII_RCSID("@(#)$eterna: help.c,v 1.108 2017/07/09 06:58:07 mrg Exp $");
#include <dirent.h>
#define NLENGTH(d) (my_strlen((d)->d_name)
#include <sys/stat.h>
#include "ircterm.h"
#include "server.h"
#include "vars.h"
#include "ircaux.h"
#include "input.h"
#include "window.h"
#include "screen.h"
#include "output.h"
#include "help.h"
#include "scandir.h"
#include "sl_irc.h"
#ifdef ALPHASORT_VOID_ARG
typedef const void *compar_type;
#else
typedef const struct dirent **compar_type;
#endif
static void help_me(u_char *, u_char *);
static void help_show_paused_topic(u_char *, u_char *);
static void create_help_window(void);
static void set_help_screen(Screen *);
static int compar(compar_type, compar_type);
static int selectent(const struct dirent *);
static int show_help(Window *, u_char *);
static void help_prompt_format_add(void);
static void help_no_help(u_char *);
static void help_prompt(u_char *, u_char *);
static void help_topic(u_char *, u_char *);
static Window *help_window = NULL;
static FILE *help_fp;
static u_char no_help[] = "NOHELP";
static int entry_size;
static u_char *this_arg;
static int finished_help_paging = 0;
static int help_show_directory = 0;
static int dont_pause_topic = 0;
static Screen *help_screen = NULL;
static u_char paused_topic[128];
static u_char *help_topic_list = NULL;
static int use_help_window = 0;
static StringList *help_paused_lines;
/* we are piglet */
/* compar: used by scandir to alphabetize the help entries */
static int
compar(compar_type p1, compar_type p2)
{
const struct dirent *e1 = *(const struct dirent **)p1;
const struct dirent *e2 = *(const struct dirent **)p2;
return (my_stricmp((u_char *)e1->d_name, (u_char *)e2->d_name));
}
/*
* selectent: used by scandir to decide which entries to include in the help
* listing.
*/
static int
selectent(const struct dirent *entry)
{
if (*(entry->d_name) == '.')
return (0);
if (my_strnicmp((u_char *)entry->d_name, this_arg, my_strlen(this_arg)))
return (0);
else
{
int len = my_strlen(entry->d_name);
#ifdef ZCAT
const char *temp;
/*
* Handle major length of filename is case of suffix .Z:
* stripping suffix length
*/
temp = &(entry->d_name[len - my_strlen(ZSUFFIX)]);
if (!my_strcmp(temp, ZSUFFIX))
len -= my_strlen(ZSUFFIX);
#endif /* ZCAT */
entry_size = (len > entry_size) ? len : entry_size;
return (1);
}
}
/*
* show_help: show's either a page of text from a help_fp, or the whole
* thing, depending on the value of HELP_PAGER_VAR. If it gets to the end,
* (in either case it will eventally), it closes the file, and returns 0
* to indicate this.
*/
static int
show_help(Window *window, u_char *name)
{
int rows = 0;
u_char line[81];
if (!help_fp)
return (0);
if (window)
{
set_curr_scr_win(window);
}
else
{
window = curr_scr_win;
}
if (get_int_var(HELP_PAGER_VAR))
rows = window_get_display_size(window);
while (--rows)
{
if (fgets(CP(line), 80, help_fp))
{
u_char *p = line + my_strlen(line) - 1;
if (*p == '\n')
*p = '\0';
if (*line != '!' && *line != '#')
help_put_it(name, "%s", line);
else
rows++;
}
else
return (0);
}
return (1);
}
/*
* help_prompt_format_add: format the help prompt and add it to the
* wait list.
*/
static void
help_prompt_format_add(void)
{
u_char *tmp = NULL,
*list;
if (term_basic())
return;
if (help_topic_list)
list = help_topic_list;
else
list = empty_string();
malloc_snprintf(&tmp, "%s%sHelp? ", list, *list ? " " : "");
add_wait_prompt(tmp, help_me, list, WAIT_PROMPT_LINE);
new_free(&tmp);
}
static void
help_no_help(u_char *name)
{
help_put_it(name, "*** No help available on %s: Use ? "
"for list of topics", name);
}
/*
* help_prompt: The main procedure called to display the help file
* currently being accessed. Using add_wait_prompt(), it sets it
* self up to be recalled when the next page is asked for. If
* called when we have finished paging the help file, we exit, as
* there is nothing left to show. If line is 'q' or 'Q', exit the
* help pager, clean up, etc.. If all is cool for now, we call
* show_help, and either if its finished, exit, or prompt for the
* next page. From here, if we've finished the help page, and
* doing help prompts, prompt for the help..
*/
static void
help_prompt(u_char *name, u_char *line)
{
if (finished_help_paging)
{
if (*paused_topic)
help_show_paused_topic(paused_topic, NULL);
return;
}
if (line && ((*line == 'q') || (*line == 'Q')))
{
finished_help_paging = 1;
if (help_fp)
{
fclose(help_fp);
help_fp = NULL;
}
set_help_screen(NULL);
return;
}
if (show_help(help_window, name))
if (term_basic())
help_prompt(name, NULL);
else
add_wait_prompt(UP("*** Hit any key for more, 'q' to quit ***"),
help_prompt, name, WAIT_PROMPT_KEY);
else
{
finished_help_paging = 1;
if (help_fp)
{
fclose(help_fp);
help_fp = NULL;
}
if (help_show_directory)
{
if (get_int_var(HELP_PAGER_VAR))
if (term_basic())
help_show_paused_topic(paused_topic, NULL);
else
add_wait_prompt(UP("*** Hit any key to end ***"),
help_show_paused_topic, paused_topic,
WAIT_PROMPT_KEY);
else
{
help_show_paused_topic(paused_topic, NULL);
set_help_screen(NULL);
}
help_show_directory = 0;
return;
}
}
if (finished_help_paging)
{
if (get_int_var(HELP_PROMPT_VAR))
help_prompt_format_add();
else
{
if (*paused_topic)
help_show_paused_topic(paused_topic, NULL);
set_help_screen(NULL);
}
}
}
/*
* help_topic: Given a topic, we search the help directory, and try to
* find the right file, if all is cool, and we can open it, or zcat it,
* then we call help_prompt to get the actually displaying of the file
* on the road.
*/
static void
help_topic(u_char *path, u_char *name)
{
struct stat sb;
u_char *filename = NULL;
#ifdef ZCAT
int do_zcat = 0;
#endif /* ZCAT */
if (name == NULL)
return;
Debug(DB_HELP, "path %s, name %s", path, name);
/*
* Check the existence of <name> or <name>.Z .. Handle suffix
* .Z if present. Open the file if it isn't present, zcat the
* file if it is present, and ends with .Z ..
*/
malloc_snprintf(&filename, "%s/%s", path, name);
if (stat(CP(filename), &sb) == -1)
{
#ifdef ZCAT
if (my_strcmp(name + (my_strlen(name) - my_strlen(ZSUFFIX)), ZSUFFIX))
{
malloc_snprintf(&filename, "%s/%s%s", path, ZSUFFIX);
if (stat(CP(filename), &sb) == -1)
{
new_free(&filename);
goto no_help_found;
}
}
else
#endif /* ZCAT */
goto no_help_found;
}
if (my_strcmp(filename + (my_strlen(filename) - my_strlen(ZSUFFIX)), ZSUFFIX) == 0)
do_zcat = 1;
if (!filename)
goto no_help_found;
if (sb.st_mode & S_IFDIR)
return;
if (help_fp)
fclose(help_fp);
#ifdef ZCAT
if (!do_zcat)
{
#endif /* ZCAT */
if ((help_fp = fopen(CP(filename), "r")) == NULL)
goto no_help_found;
#ifdef ZCAT
}
else
{
if ((help_fp = zcat(filename)) == NULL)
goto no_help_found;
}
#endif /* ZCAT */
/*
* Hopefully now we have got a file descriptor <help_fp>, a name
* so we start displaying the help file, calling help_prompt for
* the first time.
*/
new_free(&filename);
help_put_it(name, "*** Help on %s", name);
help_prompt(name, NULL);
return;
no_help_found:
new_free(&filename);
help_no_help(name);
}
/*
* help_pause_add_line: this procedure does a help_put_it() call, but
* puts off the calling, until help_show_paused_topic() is called.
* I do this because I need to create the list of help topics, but
* not show them, until we've seen the whole file, so we called
* help_show_paused_topic() when we've seen the file, if it is needed.
*/
static void
help_pause_add_line(char *format, ...)
{
va_list vl;
u_char *copy = NULL;
va_start(vl, format);
malloc_vsnprintf(©, format, vl);
va_end(vl);
if (!help_paused_lines)
help_paused_lines = sl_init();
sl_add(help_paused_lines, CP(copy));
}
/*
* help_show_paused_topic: see above. Called when we've seen the
* whole help file, and we have a list of topics to display.
*/
static void
help_show_paused_topic(u_char *name, u_char *unused)
{
size_t iter;
u_char *line;
if (!help_paused_lines)
return;
for (iter = 0; (line = sl_iter_fwd(help_paused_lines, &iter)) != NULL;)
help_put_it(name, "%s", line);
if (get_int_var(HELP_PROMPT_VAR))
{
u_char *buf = NULL;
malloc_snprintf(&buf, "%s%sHelp? ", name, (name && *name) ? " " : "");
if (!term_basic())
add_wait_prompt(buf, help_me, name, WAIT_PROMPT_LINE);
new_free(&buf);
}
else
set_help_screen(NULL);
dont_pause_topic = 0;
sl_free(help_paused_lines, 1);
help_paused_lines = NULL;
}
/*
* help_me: The big one. The help procedure that handles working out
* what was actually requested, sets up the paused topic list if it is
* needed, does pretty much all the hard work.
*/
static void
help_me(u_char *topics, u_char *args)
{
u_char *ptr;
struct dirent **namelist = NULL;
int entries,
free_cnt = 0,
cnt,
i,
cols;
struct stat sb;
u_char path[PATH_MAX+1];
int help_paused_first_call = 0;
u_char *help_paused_path = NULL;
u_char *help_paused_name = NULL;
u_char *temp;
u_char *tmp = NULL;
StringList *sl;
#ifdef ZCAT
u_char *arg_z = NULL;
#endif /* ZCAT */
Debug(DB_HELP, "got topics '%s' args '%s'", topics, args);
if (*topics)
malloc_strcpy(&help_topic_list, topics);
else
new_free(&help_topic_list);
#ifdef DAEMON_UID
if (DAEMON_UID == getuid())
ptr = DEFAULT_HELP_PATH;
else
#endif /* DAEMON_UID */
ptr = get_string_var(HELP_PATH_VAR);
snprintf(CP(path), sizeof path, "%s/%s", ptr, topics);
for (ptr = path; (ptr = my_index(ptr, ' '));)
*ptr = '/';
/*
* first we check access to the help dir, whinge if we can't, then
* work out we need to ask them for more help, else we check the
* args list, and do the stuff
*/
if (help_show_directory)
{
help_show_paused_topic(paused_topic, NULL);
help_show_directory = 0;
}
finished_help_paging = 0;
if (access(CP(path), R_OK|X_OK))
{
help_put_it(no_help, "*** Cannot access help directory!");
set_help_screen(NULL);
return;
}
this_arg = next_arg(args, &args);
if (!this_arg && help_topic_list && get_int_var(HELP_PROMPT_VAR))
{
if ((temp = my_rindex(help_topic_list, ' ')) != NULL)
*temp = '\0';
else
new_free(&help_topic_list);
help_prompt_format_add();
return;
}
if (!this_arg) /* && *help_topic_list) */
{
set_help_screen(NULL);
return;
}
create_help_window();
while (this_arg)
{
save_message_from();
message_from(NULL, LOG_CURRENT);
if (*this_arg == '\0')
help_topic(path, NULL);
if (my_strcmp(this_arg, "?") == 0)
{
this_arg = empty_string();
if (!dont_pause_topic)
dont_pause_topic = 1;
}
entry_size = 0;
/*
* here we clean the namelist if it exists, and then go to
* work on the directory.. working out if is dead, or if we
* can show some help, or create the paused topic list.
*/
if (namelist)
{
for (i = 0; i < free_cnt; i++)
new_free(&(namelist[i]));
new_free(&namelist);
}
free_cnt = entries = scandir(CP(path), &namelist,
selectent, compar);
/* special case to handle stuff like LOG and LOGFILE */
if (entries > 1)
{
#ifdef ZCAT
/* Check if exist compressed or uncompressed entries */
malloc_strcpy(&arg_z, this_arg);
malloc_strcat(&arg_z, UP(ZSUFFIX));
if (my_stricmp(UP(namelist[0]->d_name), arg_z) == 0 ||
my_stricmp(UP(namelist[0]->d_name), this_arg) == 0)
#else
if (my_stricmp(UP(namelist[0]->d_name), this_arg) == 0)
#endif /* ZCAT */
entries = 1;
#ifdef ZCAT
new_free(&arg_z);
#endif /* ZCAT */
}
/*
* entries: -1 means something really died, 0 means there
* was no help, 1, means it wasn't a directory, and so to
* show the help file, and the default means to add the
* stuff to the paused topic list..
*/
if (help_topic_list)
dont_pause_topic = 1;
switch (entries)
{
case -1:
help_put_it(no_help, "*** Error during help function: %s",
strerror(errno));
set_help_screen(NULL);
if (help_paused_first_call)
{
help_topic(help_paused_path, help_paused_name);
help_paused_first_call = 0;
new_free(&help_paused_path);
new_free(&help_paused_name);
}
return;
case 0:
help_no_help(this_arg);
if (!get_int_var(HELP_PROMPT_VAR))
{
set_help_screen(NULL);
break;
}
help_prompt_format_add();
if (help_paused_first_call)
{
help_topic(help_paused_path, help_paused_name);
help_paused_first_call = 0;
new_free(&help_paused_path);
new_free(&help_paused_name);
}
for (i = 0; i < free_cnt; i++)
{
new_free(&namelist[i]);
}
break;
case 1:
malloc_snprintf(&tmp, "%s/%s", path, namelist[0]->d_name);
if (stat(CP(tmp), &sb) == -1)
{
for (i = 0; i < free_cnt; i++)
{
new_free(&namelist[i]);
}
new_free(&tmp);
restore_message_from();
continue;
}
if (sb.st_mode & S_IFDIR)
{
my_strmcpy(path, tmp, sizeof path);
if (help_topic_list)
malloc_snprintf(&help_topic_list,
"%s %s",
help_topic_list,
namelist[0]->d_name);
else
malloc_strcpy(&help_topic_list,
UP(namelist[0]->d_name));
Debug(DB_HELP, "new topic list: '%s'", help_topic_list);
if ((this_arg = next_arg(args, &args)) == NULL)
{
help_paused_first_call = 1;
malloc_strcpy(&help_paused_path, path);
malloc_strcpy(&help_paused_name,
UP(namelist[0]->d_name));
dont_pause_topic = -1;
this_arg = UP("?");
}
for (i = 0; i < free_cnt; i++)
{
new_free(&namelist[i]);
}
new_free(&tmp);
restore_message_from();
continue;
}
help_topic(path, UP(namelist[0]->d_name));
finished_help_paging = 0; /* this is a big kludge */
for (i = 0; i < free_cnt; i++)
{
new_free(&namelist[i]);
}
new_free(&tmp);
break;
default:
help_show_directory = 1;
my_strmcpy(paused_topic, help_topic_list ? help_topic_list : empty_string(), sizeof paused_topic);
help_pause_add_line("*** %s choices:", paused_topic);
cnt = 0;
sl = sl_init();
entry_size += 2;
cols = (get_co() - 10) / entry_size;
for (i = 0; i < entries; i++)
{
u_char *buffer = NULL;
malloc_snprintf(&buffer, "%-13s", namelist[i]->d_name);
#ifdef ZCAT
/*
* In tmp store the actual help choice and strip
* .Z suffix in compressed files: put filename
* (without .Z) on the help screen. If it is
* the first choice cat it to the buffer and
* save the last choice.
*/
temp = &(buffer[my_strlen(buffer) - my_strlen(ZSUFFIX)]);
if (!my_strcmp(temp, ZSUFFIX))
temp[0] = '\0';
#endif /* ZCAT */
sl_add(sl, CP(buffer));
if (++cnt == cols)
{
buffer = sl_concat(sl, empty_string());
help_pause_add_line("%s", buffer);
new_free(&buffer);
sl_free(sl, 1);
sl = sl_init();
cnt = 0;
}
}
if (sl_size(sl) != 0)
{
u_char *buffer = sl_concat(sl, empty_string());
help_pause_add_line("%s", buffer);
new_free(&buffer);
}
sl_free(sl, 1);
if (help_paused_first_call)
{
help_topic(help_paused_path, help_paused_name);
help_paused_first_call = 0;
new_free(&help_paused_path);
new_free(&help_paused_name);
}
if (dont_pause_topic == 1)
{
help_show_paused_topic(paused_topic, NULL);
help_show_directory = 0;
}
break;
}
for (i = 0; i < free_cnt; i++)
{
new_free(&namelist[i]);
}
new_free(&namelist);
restore_message_from();
break;
}
/*
* This one is for when there was never a topic and the prompt
* never got a topic.. and help_screen was never reset..
* phone, jan 1993.
*/
if (help_topic_list && finished_help_paging)
set_help_screen(NULL);
}
/*
* help: the HELP command, gives help listings for any and all topics out
* there
*/
void
help(u_char *command, u_char *args, u_char *subargs)
{
u_char *help_path;
finished_help_paging = 0;
help_show_directory = 0;
dont_pause_topic = 0;
use_help_window = 0;
#ifdef DAEMON_UID
if (DAEMON_UID == getuid())
help_path = DEFAULT_HELP_PATH;
else
#endif /* DAEMON_UID */
help_path = get_string_var(HELP_PATH_VAR);
if (!(help_path && *help_path && !access(CP(help_path), R_OK | X_OK)))
{
if (*help_path)
help_put_it(no_help, "*** HELP_PATH error: %s", strerror(errno));
else
help_put_it(no_help, "*** No HELP_PATH variable set");
return;
}
/*
* Check that we aren't doing HELP in a more than one screen, as this
* really leads to seriously difficult to fix problems!. This is all
* due to the wildly popular /window create. blah.
*/
if (help_path && help_screen && help_screen != get_current_screen())
{
say("You may not run help in two screens");
return;
}
help_screen = get_current_screen();
help_window = NULL;
help_me(empty_string(), (args && *args) ? args : (u_char *) "?");
}
static void
create_help_window(void)
{
if (help_window)
return;
if (!term_basic() && get_int_var(HELP_WINDOW_VAR))
{
use_help_window = 1;
help_window = new_window();
window_set_hold_mode(help_window, OFF);
update_all_windows();
}
else
help_window = curr_scr_win;
}
static void
set_help_screen(Screen *screen)
{
help_screen = screen;
if (!help_screen && help_window)
{
if (use_help_window)
{
unsigned display = set_display_off();
delete_window(help_window);
set_display(display);
}
help_window = NULL;
update_all_windows();
}
}
|