The inverse of this question.
Your challenge is to, given a piece of ASCII art generated by the above question and its enlargement factor, shrink it down to its original size.
The enlargement process
ASCII art within a limited character set can be enlarged to a certain (odd) size by replacing certain characters with larger versions of themselves, like so:
-\
|
_/
, 3 =>
\
--- \
\
|
|
|
/
/
___/
Because each character is enlarged to a 3x3 square.
Only those six characters (\/|-_
) can be enlarged, and only those will be in your input. For a more detailed explanation, see the linked challenge.
I/O may be as a char matrix, ascii art, list of rows, etc.
Testcases
\
\
\
, 3 =>
\
---------
, 3 =>
---
|
|
|
|
|
|
|
|
| , 3 =>
|
|
|
| \ / |
| \ / |
| \___/ |
| |
| |
| |
\ /
\ /
\___/
, 3 =>
|\_/|
| |
\_/
_______________
\ /
\ /
\ /
/ \
/ \
/ \
\ /
\ /
\_________/ , 3 =>
_____
\ /
/ \
\___/
/\
/ \
/ \
/ \
/ \
/ \
/ \
/ \
/ ____________ \
| |
| |
| |
| |
| |
| |
/ \
/ \
___/ ______ \___, 3 =>
/\
/ \
/____\
||
||
_/__\_
\ /
\ /
\ /
\ /
\/
\ /
\ /
\ /
\ /
\/ , 5 =>
\/
\/
/ /
/ /
/ /
/ ------- /
/ /
/ /
/ /
\ \
\ \
\ \
\ ------- \
\ \
\ \
\ \, 7 =>
/-/
\-\