From 47690a2e48de52391ed2293d5f02720138341dc1 Mon Sep 17 00:00:00 2001 From: Gabriel Mocanu Date: Wed, 13 Sep 2023 04:00:48 +0300 Subject: [PATCH] task: Update new structure Update new structure Signed-off-by: Gabriel Mocanu --- .../workflows/{linting.yml => actions.yml} | 14 +- .github/workflows/deployment.yml | 54 ++ .github/workflows/labeler.yml | 6 +- .github/workflows/push-updates.yml | 30 - CONTRIBUTING.md | 75 +- COPYING.md | 322 ++++--- Dockerfile | 23 + Makefile | 41 + README.md | 111 +++ REVIEWING.md | 14 +- _index.md | 26 - chapters/README.md | 9 + .../01-02-challenge-sppb/sol/solution.sh | 0 .../01-02-challenge-sppb/sol/sppb.c | 0 .../activities/01-02-challenge-sppb/src/sppb | Bin .../01-02-challenge-sppb/src/sppb.tar.gz | Bin 0 -> 4272 bytes .../03-challenge-domino/sol/domino.c | 0 .../03-challenge-domino/sol/solution.sh | 0 .../activities/03-challenge-domino/src/domino | Bin .../04-challenge-call-me/sol/README | 0 .../04-challenge-call-me/sol/call_me.c | 0 .../04-challenge-call-me/src/calc_offset.py | 0 .../04-challenge-call-me/src/call_me | Bin .../05-challenge-snooze-me/sol/gdb_history | 0 .../05-challenge-snooze-me/sol/snooze_me.c | 0 .../05-challenge-snooze-me/src/snooze_me | Bin .../06-challenge-phone-home/sol/encrypt.py | 0 .../06-challenge-phone-home/sol/phone_home.c | 0 .../sol/solution-gdb.output | 0 .../06-challenge-phone-home/src/phone_home | Bin .../07-challenge-chain-encoder/sol/base64.c | 0 .../07-challenge-chain-encoder/sol/base64.h | 0 .../07-challenge-chain-encoder/sol/main.c | 0 .../07-challenge-chain-encoder/sol/md5.c | 0 .../07-challenge-chain-encoder/sol/md5.h | 0 .../sol/solution.sh | 0 .../07-challenge-chain-encoder/src/encoder | Bin .../activities/08-challenge-cdkey/sol/RC4.c | 0 .../activities/08-challenge-cdkey/sol/RC4.h | 0 .../activities/08-challenge-cdkey/sol/main.c | 0 .../08-challenge-cdkey/sol/solution.sh | 0 .../activities/08-challenge-cdkey/src/cdkey | Bin .../dynamic-analysis/reading/README.md | 0 .../dynamic-analysis/slides/Makefile | 1 + .../_site/css/highlight/base16/zenburn.css | 7 + .../slides/_site/dist/reset.css | 30 + .../slides/_site/dist/reveal.css | 8 + .../slides/_site/dist/reveal.esm.js | 9 + .../slides/_site/dist/reveal.esm.js.map | 1 + .../slides/_site/dist/reveal.js | 9 + .../slides/_site/dist/reveal.js.map | 1 + .../slides/_site/dist/theme/beige.css | 364 +++++++ .../_site/dist/theme/black-contrast.css | 360 +++++++ .../slides/_site/dist/theme/black.css | 357 +++++++ .../slides/_site/dist/theme/blood.css | 390 ++++++++ .../slides/_site/dist/theme/dracula.css | 414 ++++++++ .../dist/theme/fonts/league-gothic/LICENSE | 2 + .../fonts/league-gothic/league-gothic.css | 10 + .../fonts/league-gothic/league-gothic.eot | Bin 0 -> 25696 bytes .../fonts/league-gothic/league-gothic.ttf | Bin 0 -> 64256 bytes .../fonts/league-gothic/league-gothic.woff | Bin 0 -> 30764 bytes .../dist/theme/fonts/source-sans-pro/LICENSE | 45 + .../source-sans-pro-italic.eot | Bin 0 -> 75720 bytes .../source-sans-pro-italic.ttf | Bin 0 -> 238084 bytes .../source-sans-pro-italic.woff | Bin 0 -> 98556 bytes .../source-sans-pro-regular.eot | Bin 0 -> 88070 bytes .../source-sans-pro-regular.ttf | Bin 0 -> 288008 bytes .../source-sans-pro-regular.woff | Bin 0 -> 114324 bytes .../source-sans-pro-semibold.eot | Bin 0 -> 89897 bytes .../source-sans-pro-semibold.ttf | Bin 0 -> 284640 bytes .../source-sans-pro-semibold.woff | Bin 0 -> 115648 bytes .../source-sans-pro-semibolditalic.eot | Bin 0 -> 75706 bytes .../source-sans-pro-semibolditalic.ttf | Bin 0 -> 240944 bytes .../source-sans-pro-semibolditalic.woff | Bin 0 -> 98816 bytes .../fonts/source-sans-pro/source-sans-pro.css | 39 + .../slides/_site/dist/theme/league.css | 366 +++++++ .../slides/_site/dist/theme/moon.css | 365 +++++++ .../slides/_site/dist/theme/night.css | 358 +++++++ .../slides/_site/dist/theme/serif.css | 361 +++++++ .../slides/_site/dist/theme/simple.css | 360 +++++++ .../slides/_site/dist/theme/sky.css | 368 ++++++++ .../slides/_site/dist/theme/solarized.css | 361 +++++++ .../_site/dist/theme/white-contrast.css | 360 +++++++ .../slides/_site/dist/theme/white.css | 357 +++++++ ...hite_contrast_compact_verbatim_headers.css | 360 +++++++ .../dynamic-analysis/slides/_site/favicon.ico | Bin 0 -> 1406 bytes .../dynamic-analysis/slides/_site/index.html | 72 ++ .../_site/plugin/highlight/highlight.esm.js | 5 + .../_site/plugin/highlight/highlight.js | 5 + .../slides/_site/plugin/highlight/monokai.css | 71 ++ .../slides/_site/plugin/highlight/plugin.js | 439 +++++++++ .../slides/_site/plugin/highlight/zenburn.css | 80 ++ .../_site/plugin/markdown/markdown.esm.js | 7 + .../slides/_site/plugin/markdown/markdown.js | 7 + .../slides/_site/plugin/markdown/plugin.js | 475 ++++++++++ .../slides/_site/plugin/math/katex.js | 96 ++ .../slides/_site/plugin/math/math.esm.js | 6 + .../slides/_site/plugin/math/math.js | 1 + .../slides/_site/plugin/math/mathjax2.js | 89 ++ .../slides/_site/plugin/math/mathjax3.js | 77 ++ .../slides/_site/plugin/math/plugin.js | 15 + .../slides/_site/plugin/notes/notes.esm.js | 1 + .../slides/_site/plugin/notes/notes.js | 1 + .../slides/_site/plugin/notes/plugin.js | 261 +++++ .../_site/plugin/notes/speaker-view.html | 891 ++++++++++++++++++ .../slides/_site/plugin/search/plugin.js | 243 +++++ .../slides/_site/plugin/search/search.esm.js | 7 + .../slides/_site/plugin/search/search.js | 7 + .../slides/_site/plugin/zoom/plugin.js | 264 ++++++ .../slides/_site/plugin/zoom/zoom.esm.js | 11 + .../slides/_site/plugin/zoom/zoom.js | 11 + .../dynamic-analysis/slides/_site/slides.html | 72 ++ .../slides/dynamic-analysis.md | 1 + .../dynamic-analysis/slides/slides.md | 9 + .../dynamic-analysis/slides/slides.mdpp | 10 + .../sol/solution.sh | 0 .../01-challenge-binary-puzzle/src/Makefile | 0 .../01-challenge-binary-puzzle/src/libguess.c | 0 .../01-challenge-binary-puzzle/src/libguess.h | 0 .../01-challenge-binary-puzzle/src/main.c | 0 .../drills}/01-challenge-binary-puzzle/src/p1 | Bin .../drills}/01-challenge-binary-puzzle/src/p2 | Bin .../drills}/01-challenge-binary-puzzle/src/p3 | Bin .../drills}/01-challenge-binary-puzzle/src/p4 | Bin .../01-challenge-binary-puzzle/src/second.c | 0 .../01-challenge-binary-puzzle/src/third.c | 0 .../sol/Makefile | 0 .../02-challenge-missing-function/sol/stuff.c | 0 .../02-challenge-missing-function/sol/stuff.h | 0 .../src/Makefile | 0 .../02-challenge-missing-function/src/help.c | 0 .../src/helpless-binary | Bin .../02-challenge-missing-function/src/stuff.c | 0 .../02-challenge-missing-function/src/stuff.h | 0 .../sol/solution.sh | 0 .../04-challenge-compiler-flags/src/Makefile | 0 .../src/caller-no-pie | Bin 0 -> 14908 bytes .../src/caller-pie | Bin 0 -> 15048 bytes .../04-challenge-compiler-flags/src/caller.c | 0 .../04-challenge-compiler-flags/src/caller1.o | Bin 0 -> 1216 bytes .../04-challenge-compiler-flags/src/caller2.o | Bin 0 -> 936 bytes .../04-challenge-compiler-flags/src/flag.c | 0 .../04-challenge-compiler-flags/src/flag1.o | Bin .../04-challenge-compiler-flags/src/flag2.o | Bin .../05-challenge-print-flag/sol/README.md | 0 .../05-challenge-print-flag/src/Makefile | 0 .../05-challenge-print-flag/src/get_message | Bin .../05-challenge-print-flag/src/get_message.c | 0 .../drills}/06-challenge-matryoshka/README.md | 0 .../06-challenge-matryoshka/sol/solution | 0 .../06-challenge-matryoshka/src/Makefile | 0 .../src/do_xor_encrypt.c | 0 .../drills}/06-challenge-matryoshka/src/flag | 0 .../06-challenge-matryoshka/src/inner_key | 0 .../src/inner_template.c | 0 .../06-challenge-matryoshka/src/matryoshka | Bin .../src/matryoshka_template.c | 0 .../drills}/07-challenge-fix-me/sol/README | 0 .../drills}/07-challenge-fix-me/sol/elfie | Bin .../drills}/07-challenge-fix-me/src/elfie | Bin .../media}/elf-dependency.png | Bin .../media}/elf-dynamic-linking.png | Bin .../media}/elf-link-exec.png | Bin .../media}/elf-merging.png | Bin .../media}/elf-sect-inf.png | Bin .../media}/elf-space-aslr.png | Bin .../media}/elf-space-final.png | Bin .../media}/elf-space.png | Bin .../media}/elf-static-linking.png | Bin .../reading/README.md | 0 .../executables-and-processes/slides/Makefile | 1 + .../slides/executables-and-processes.md | 1 + .../slides/slides.mdpp | 10 + .../demos}/01-tutorial-strings/src/Makefile | 0 .../demos}/01-tutorial-strings/src/crackme1.c | 0 .../src/Makefile | 0 .../src/crackme2.c | 0 .../demos}/03-tutorial-symbols/src/Makefile | 0 .../demos}/03-tutorial-symbols/src/crackme3.c | 0 .../src/Makefile | 0 .../src/strcmp.c | 0 .../src/Makefile | 0 .../src/client.c | 0 .../src/client.py | 0 .../src/server.c | 0 .../src/server.py | 0 .../06-tutorial-open-files/src/Makefile | 0 .../06-tutorial-open-files/src/crackme6.c | 0 .../07-challenge-perfect-answer/sol/README | 0 .../src/perfect-answer | Bin .../08-challenge-lots-of-strings/sol/README | 0 .../sol/lots_of_strings.c | 0 .../src/lots_of_strings | Bin .../09-challenge-sleepy-cats/sol/README | 0 .../09-challenge-sleepy-cats/sol/sleepy.c | 0 .../09-challenge-sleepy-cats/src/sleepy | Bin .../drills}/10-challenge-hidden/sol/README | 0 .../drills}/10-challenge-hidden/sol/hidden.c | 0 .../drills}/10-challenge-hidden/src/hidden | Bin .../11-challenge-detective/sol/detective.c | 0 .../11-challenge-detective/sol/exploit.py | 0 .../sol/exploit_template.py | 0 .../11-challenge-detective/src/detective | Bin .../drills}/bonus/src/bonus_ctf_task_01 | Bin .../exploration-tools/media}/files.png | Bin .../exploration-tools/reading/README.md | 0 .../exploration-tools/slides/Makefile | 1 + .../slides/exploration-tools.md | 1 + .../exploration-tools/slides/slides.mdpp | 10 + chapters/binary-analysis/overview/README.md | 1 + .../binary-analysis/overview/slides/Makefile | 1 + .../_site/css/highlight/base16/zenburn.css | 7 + .../overview/slides/_site/dist/reset.css | 30 + .../overview/slides/_site/dist/reveal.css | 8 + .../overview/slides/_site/dist/reveal.esm.js | 9 + .../slides/_site/dist/reveal.esm.js.map | 1 + .../overview/slides/_site/dist/reveal.js | 9 + .../overview/slides/_site/dist/reveal.js.map | 1 + .../slides/_site/dist/theme/beige.css | 364 +++++++ .../_site/dist/theme/black-contrast.css | 360 +++++++ .../slides/_site/dist/theme/black.css | 357 +++++++ .../slides/_site/dist/theme/blood.css | 390 ++++++++ .../slides/_site/dist/theme/dracula.css | 414 ++++++++ .../dist/theme/fonts/league-gothic/LICENSE | 2 + .../fonts/league-gothic/league-gothic.css | 10 + .../fonts/league-gothic/league-gothic.eot | Bin 0 -> 25696 bytes .../fonts/league-gothic/league-gothic.ttf | Bin 0 -> 64256 bytes .../fonts/league-gothic/league-gothic.woff | Bin 0 -> 30764 bytes .../dist/theme/fonts/source-sans-pro/LICENSE | 45 + .../source-sans-pro-italic.eot | Bin 0 -> 75720 bytes .../source-sans-pro-italic.ttf | Bin 0 -> 238084 bytes .../source-sans-pro-italic.woff | Bin 0 -> 98556 bytes .../source-sans-pro-regular.eot | Bin 0 -> 88070 bytes .../source-sans-pro-regular.ttf | Bin 0 -> 288008 bytes .../source-sans-pro-regular.woff | Bin 0 -> 114324 bytes .../source-sans-pro-semibold.eot | Bin 0 -> 89897 bytes .../source-sans-pro-semibold.ttf | Bin 0 -> 284640 bytes .../source-sans-pro-semibold.woff | Bin 0 -> 115648 bytes .../source-sans-pro-semibolditalic.eot | Bin 0 -> 75706 bytes .../source-sans-pro-semibolditalic.ttf | Bin 0 -> 240944 bytes .../source-sans-pro-semibolditalic.woff | Bin 0 -> 98816 bytes .../fonts/source-sans-pro/source-sans-pro.css | 39 + .../slides/_site/dist/theme/league.css | 366 +++++++ .../overview/slides/_site/dist/theme/moon.css | 365 +++++++ .../slides/_site/dist/theme/night.css | 358 +++++++ .../slides/_site/dist/theme/serif.css | 361 +++++++ .../slides/_site/dist/theme/simple.css | 360 +++++++ .../overview/slides/_site/dist/theme/sky.css | 368 ++++++++ .../slides/_site/dist/theme/solarized.css | 361 +++++++ .../_site/dist/theme/white-contrast.css | 360 +++++++ .../slides/_site/dist/theme/white.css | 357 +++++++ ...hite_contrast_compact_verbatim_headers.css | 360 +++++++ .../overview/slides/_site/favicon.ico | Bin 0 -> 1406 bytes .../overview/slides/_site/index.html | 75 ++ .../_site/plugin/highlight/highlight.esm.js | 5 + .../_site/plugin/highlight/highlight.js | 5 + .../slides/_site/plugin/highlight/monokai.css | 71 ++ .../slides/_site/plugin/highlight/plugin.js | 439 +++++++++ .../slides/_site/plugin/highlight/zenburn.css | 80 ++ .../_site/plugin/markdown/markdown.esm.js | 7 + .../slides/_site/plugin/markdown/markdown.js | 7 + .../slides/_site/plugin/markdown/plugin.js | 475 ++++++++++ .../slides/_site/plugin/math/katex.js | 96 ++ .../slides/_site/plugin/math/math.esm.js | 6 + .../overview/slides/_site/plugin/math/math.js | 1 + .../slides/_site/plugin/math/mathjax2.js | 89 ++ .../slides/_site/plugin/math/mathjax3.js | 77 ++ .../slides/_site/plugin/math/plugin.js | 15 + .../slides/_site/plugin/notes/notes.esm.js | 1 + .../slides/_site/plugin/notes/notes.js | 1 + .../slides/_site/plugin/notes/plugin.js | 261 +++++ .../_site/plugin/notes/speaker-view.html | 891 ++++++++++++++++++ .../slides/_site/plugin/search/plugin.js | 243 +++++ .../slides/_site/plugin/search/search.esm.js | 7 + .../slides/_site/plugin/search/search.js | 7 + .../slides/_site/plugin/zoom/plugin.js | 264 ++++++ .../slides/_site/plugin/zoom/zoom.esm.js | 11 + .../overview/slides/_site/plugin/zoom/zoom.js | 11 + .../overview/slides/_site/slides.html | 75 ++ .../overview/slides/binary-analysis.md | 1 + .../binary-analysis/overview/slides/slides.md | 12 + .../overview/slides/slides.mdpp | 12 + .../01-tutorial-disassemble-methods/README.md | 1 + .../src/Makefile | 0 .../src/emperor | Bin .../src/emperor.c | 0 .../01-tutorial-disassemble-methods/src/wrong | Bin .../src/wrong.c | 0 .../demos/02-tutorial-ida-time/README.md | 1 + .../demos}/02-tutorial-ida-time/src/Makefile | 0 .../02-tutorial-ida-time/src/hyp3rs3rv3r | Bin .../02-tutorial-ida-time/src/hyp3rs3rv3r.c | 0 .../03-tutorial-cpp-executables/README.md | 1 + .../03-tutorial-cpp-executables/src/Makefile | 0 .../src/hello_world.cpp | 0 .../static-analysis/demos/README.md | 1 + .../04-challenge-crypto-crackme/README.md | 1 + .../sol/crackme-04-gen.py | 0 .../src/crypto_crackme | Bin .../src/libcrypto.so.1.0.0 | Bin .../src/libssl.so.1.0.0 | Bin .../src/secret.enc | 0 .../drills/05-challenge-broken/README.md | 1 + .../drills}/05-challenge-broken/sol/password | 0 .../05-challenge-broken/sol/solution.sh | 0 .../drills}/05-challenge-broken/src/Makefile | 0 .../drills}/05-challenge-broken/src/broken | Bin .../drills}/05-challenge-broken/src/broken.c | 0 .../drills/06-challenge-hyp3rs3rv3r/README.md | 1 + .../06-challenge-hyp3rs3rv3r/sol/exploit.py | 0 .../sol/exploit_template.py | 0 .../06-challenge-hyp3rs3rv3r/src/banner | 0 .../06-challenge-hyp3rs3rv3r/src/hyp3rs3rv3r | Bin .../static-analysis/drills/README.md | 1 + .../static-analysis/media}/fork_xref_1.png | Bin .../static-analysis/media}/fork_xref_2.png | Bin .../static-analysis/media}/handle_LIST.png | Bin .../media}/handle_child_process.png | Bin .../media}/ida_c++_demangled.png | Bin .../static-analysis/media}/ida_c++_main.png | Bin .../static-analysis/media}/ida_c++_start.png | Bin .../static-analysis/media}/ida_first_view.png | Bin .../media}/ida_initial_screen.png | Bin .../static-analysis/media}/ida_main.png | Bin .../static-analysis/reading/README.md | 1 + .../static-analysis/reading/README_2.md | 127 ++- .../static-analysis/slides/Makefile | 1 + .../_site/css/highlight/base16/zenburn.css | 7 + .../slides/_site/dist/reset.css | 30 + .../slides/_site/dist/reveal.css | 8 + .../slides/_site/dist/reveal.esm.js | 9 + .../slides/_site/dist/reveal.esm.js.map | 1 + .../slides/_site/dist/reveal.js | 9 + .../slides/_site/dist/reveal.js.map | 1 + .../slides/_site/dist/theme/beige.css | 364 +++++++ .../_site/dist/theme/black-contrast.css | 360 +++++++ .../slides/_site/dist/theme/black.css | 357 +++++++ .../slides/_site/dist/theme/blood.css | 390 ++++++++ .../slides/_site/dist/theme/dracula.css | 414 ++++++++ .../dist/theme/fonts/league-gothic/LICENSE | 2 + .../fonts/league-gothic/league-gothic.css | 10 + .../fonts/league-gothic/league-gothic.eot | Bin 0 -> 25696 bytes .../fonts/league-gothic/league-gothic.ttf | Bin 0 -> 64256 bytes .../fonts/league-gothic/league-gothic.woff | Bin 0 -> 30764 bytes .../dist/theme/fonts/source-sans-pro/LICENSE | 45 + .../source-sans-pro-italic.eot | Bin 0 -> 75720 bytes .../source-sans-pro-italic.ttf | Bin 0 -> 238084 bytes .../source-sans-pro-italic.woff | Bin 0 -> 98556 bytes .../source-sans-pro-regular.eot | Bin 0 -> 88070 bytes .../source-sans-pro-regular.ttf | Bin 0 -> 288008 bytes .../source-sans-pro-regular.woff | Bin 0 -> 114324 bytes .../source-sans-pro-semibold.eot | Bin 0 -> 89897 bytes .../source-sans-pro-semibold.ttf | Bin 0 -> 284640 bytes .../source-sans-pro-semibold.woff | Bin 0 -> 115648 bytes .../source-sans-pro-semibolditalic.eot | Bin 0 -> 75706 bytes .../source-sans-pro-semibolditalic.ttf | Bin 0 -> 240944 bytes .../source-sans-pro-semibolditalic.woff | Bin 0 -> 98816 bytes .../fonts/source-sans-pro/source-sans-pro.css | 39 + .../slides/_site/dist/theme/league.css | 366 +++++++ .../slides/_site/dist/theme/moon.css | 365 +++++++ .../slides/_site/dist/theme/night.css | 358 +++++++ .../slides/_site/dist/theme/serif.css | 361 +++++++ .../slides/_site/dist/theme/simple.css | 360 +++++++ .../slides/_site/dist/theme/sky.css | 368 ++++++++ .../slides/_site/dist/theme/solarized.css | 361 +++++++ .../_site/dist/theme/white-contrast.css | 360 +++++++ .../slides/_site/dist/theme/white.css | 357 +++++++ ...hite_contrast_compact_verbatim_headers.css | 360 +++++++ .../static-analysis/slides/_site/favicon.ico | Bin 0 -> 1406 bytes .../static-analysis/slides/_site/index.html | 73 ++ .../_site/plugin/highlight/highlight.esm.js | 5 + .../_site/plugin/highlight/highlight.js | 5 + .../slides/_site/plugin/highlight/monokai.css | 71 ++ .../slides/_site/plugin/highlight/plugin.js | 439 +++++++++ .../slides/_site/plugin/highlight/zenburn.css | 80 ++ .../_site/plugin/markdown/markdown.esm.js | 7 + .../slides/_site/plugin/markdown/markdown.js | 7 + .../slides/_site/plugin/markdown/plugin.js | 475 ++++++++++ .../slides/_site/plugin/math/katex.js | 96 ++ .../slides/_site/plugin/math/math.esm.js | 6 + .../slides/_site/plugin/math/math.js | 1 + .../slides/_site/plugin/math/mathjax2.js | 89 ++ .../slides/_site/plugin/math/mathjax3.js | 77 ++ .../slides/_site/plugin/math/plugin.js | 15 + .../slides/_site/plugin/notes/notes.esm.js | 1 + .../slides/_site/plugin/notes/notes.js | 1 + .../slides/_site/plugin/notes/plugin.js | 261 +++++ .../_site/plugin/notes/speaker-view.html | 891 ++++++++++++++++++ .../slides/_site/plugin/search/plugin.js | 243 +++++ .../slides/_site/plugin/search/search.esm.js | 7 + .../slides/_site/plugin/search/search.js | 7 + .../slides/_site/plugin/zoom/plugin.js | 264 ++++++ .../slides/_site/plugin/zoom/zoom.esm.js | 11 + .../slides/_site/plugin/zoom/zoom.js | 11 + .../static-analysis/slides/_site/slides.html | 73 ++ .../static-analysis/slides/slides.md | 10 + .../static-analysis/slides/slides.mdpp | 10 + .../static-analysis/slides/static-analysis.md | 1 + .../buffer-exploitation/README.md | 0 .../activities/00-tutorial/src/Makefile | 0 .../activities/00-tutorial/src/buffers.c | 0 .../activities/00-tutorial/src/script.py | 0 .../activities/00-tutorial/src/simple_read.c | 0 .../01-challenge-parrot/sol/parrot.c | 0 .../01-challenge-parrot/sol/solve.py | 0 .../activities/01-challenge-parrot/src/parrot | Bin .../02-challenge-indexing/sol/.gdb_history | 0 .../02-challenge-indexing/sol/indexing.c | 0 .../02-challenge-indexing/sol/solve.py | 0 .../02-challenge-indexing/src/indexing | Bin .../03-challenge-level7/sol/level07.c | 0 .../03-challenge-level7/sol/solve.py | 0 .../activities/03-challenge-level7/src/atoi | Bin .../activities/03-challenge-level7/src/atoi.c | 0 .../03-challenge-level7/src/level07 | Bin .../sol/neighbourly.c | 0 .../04-challenge-neighbourly/sol/solve.py | 0 .../04-challenge-neighbourly/src/neighbourly | Bin .../sol/input_functions.c | 0 .../05-challenge-input-functions/sol/solve.py | 0 .../src/input_functions | Bin .../activities/06-challenge-birds/sol/birds.c | 0 .../06-challenge-birds/sol/solve.py | 0 .../activities/06-challenge-birds/src/birds | Bin .../assets/stack_buffer.png | Bin .../assets/stack_x86_64.png | Bin .../overview/slides/Makefile | 1 + .../_site/css/highlight/base16/zenburn.css | 7 + .../overview/slides/_site/dist/reset.css | 30 + .../overview/slides/_site/dist/reveal.css | 8 + .../overview/slides/_site/dist/reveal.esm.js | 9 + .../slides/_site/dist/reveal.esm.js.map | 1 + .../overview/slides/_site/dist/reveal.js | 9 + .../overview/slides/_site/dist/reveal.js.map | 1 + .../slides/_site/dist/theme/beige.css | 364 +++++++ .../_site/dist/theme/black-contrast.css | 360 +++++++ .../slides/_site/dist/theme/black.css | 357 +++++++ .../slides/_site/dist/theme/blood.css | 390 ++++++++ .../slides/_site/dist/theme/dracula.css | 414 ++++++++ .../dist/theme/fonts/league-gothic/LICENSE | 2 + .../fonts/league-gothic/league-gothic.css | 10 + .../fonts/league-gothic/league-gothic.eot | Bin 0 -> 25696 bytes .../fonts/league-gothic/league-gothic.ttf | Bin 0 -> 64256 bytes .../fonts/league-gothic/league-gothic.woff | Bin 0 -> 30764 bytes .../dist/theme/fonts/source-sans-pro/LICENSE | 45 + .../source-sans-pro-italic.eot | Bin 0 -> 75720 bytes .../source-sans-pro-italic.ttf | Bin 0 -> 238084 bytes .../source-sans-pro-italic.woff | Bin 0 -> 98556 bytes .../source-sans-pro-regular.eot | Bin 0 -> 88070 bytes .../source-sans-pro-regular.ttf | Bin 0 -> 288008 bytes .../source-sans-pro-regular.woff | Bin 0 -> 114324 bytes .../source-sans-pro-semibold.eot | Bin 0 -> 89897 bytes .../source-sans-pro-semibold.ttf | Bin 0 -> 284640 bytes .../source-sans-pro-semibold.woff | Bin 0 -> 115648 bytes .../source-sans-pro-semibolditalic.eot | Bin 0 -> 75706 bytes .../source-sans-pro-semibolditalic.ttf | Bin 0 -> 240944 bytes .../source-sans-pro-semibolditalic.woff | Bin 0 -> 98816 bytes .../fonts/source-sans-pro/source-sans-pro.css | 39 + .../slides/_site/dist/theme/league.css | 366 +++++++ .../overview/slides/_site/dist/theme/moon.css | 365 +++++++ .../slides/_site/dist/theme/night.css | 358 +++++++ .../slides/_site/dist/theme/serif.css | 361 +++++++ .../slides/_site/dist/theme/simple.css | 360 +++++++ .../overview/slides/_site/dist/theme/sky.css | 368 ++++++++ .../slides/_site/dist/theme/solarized.css | 361 +++++++ .../_site/dist/theme/white-contrast.css | 360 +++++++ .../slides/_site/dist/theme/white.css | 357 +++++++ ...hite_contrast_compact_verbatim_headers.css | 360 +++++++ .../overview/slides/_site/favicon.ico | Bin 0 -> 1406 bytes .../overview/slides/_site/index.html | 75 ++ .../_site/plugin/highlight/highlight.esm.js | 5 + .../_site/plugin/highlight/highlight.js | 5 + .../slides/_site/plugin/highlight/monokai.css | 71 ++ .../slides/_site/plugin/highlight/plugin.js | 439 +++++++++ .../slides/_site/plugin/highlight/zenburn.css | 80 ++ .../_site/plugin/markdown/markdown.esm.js | 7 + .../slides/_site/plugin/markdown/markdown.js | 7 + .../slides/_site/plugin/markdown/plugin.js | 475 ++++++++++ .../slides/_site/plugin/math/katex.js | 96 ++ .../slides/_site/plugin/math/math.esm.js | 6 + .../overview/slides/_site/plugin/math/math.js | 1 + .../slides/_site/plugin/math/mathjax2.js | 89 ++ .../slides/_site/plugin/math/mathjax3.js | 77 ++ .../slides/_site/plugin/math/plugin.js | 15 + .../slides/_site/plugin/notes/notes.esm.js | 1 + .../slides/_site/plugin/notes/notes.js | 1 + .../slides/_site/plugin/notes/plugin.js | 261 +++++ .../_site/plugin/notes/speaker-view.html | 891 ++++++++++++++++++ .../slides/_site/plugin/search/plugin.js | 243 +++++ .../slides/_site/plugin/search/search.esm.js | 7 + .../slides/_site/plugin/search/search.js | 7 + .../slides/_site/plugin/zoom/plugin.js | 264 ++++++ .../slides/_site/plugin/zoom/zoom.esm.js | 11 + .../overview/slides/_site/plugin/zoom/zoom.js | 11 + .../overview/slides/_site/slides.html | 75 ++ .../slides/exploitation-techniques.md | 1 + .../overview/slides/slides.md | 12 + .../overview/slides/slides.mdpp | 12 + .../README.md | 0 .../01-leak-call-system/sol/exploit.py | 0 .../activities/01-leak-call-system/sol/rop.c | 0 .../activities/01-leak-call-system/src/rop | Bin .../sol/exploit_mprotect.py | 0 .../sol/exploit_ret2main.py | 0 .../sol/exploit_stack_pivot.py | 0 .../02-low-stack-space/sol/rop_limited.c | 0 .../02-low-stack-space/src/rop_limited | Bin .../return-oriented-programming/README.md | 0 .../activities/00-demo/sol/exploit.py | 0 .../activities/00-demo/sol/exploit64.py | 0 .../activities/00-demo/src/Makefile | 0 .../activities/00-demo/src/Makefile.64 | 0 .../activities/00-demo/src/exploit.py | 0 .../activities/00-demo/src/exploit64.py | 0 .../activities/00-demo/src/vuln | Bin .../activities/00-demo/src/vuln.c | 0 .../activities/00-demo/src/vuln64 | Bin .../01-tutorial-ret-to-libc/sol/auth.c | 0 .../01-tutorial-ret-to-libc/sol/sol.sh | 0 .../01-tutorial-ret-to-libc/src/auth | Bin .../sol/force_exit.c | 0 .../03-challenge-no-ret-control/sol/skel.py | 0 .../src/force_exit | Bin .../04-challenge-ret-to-plt/sol/.gdb_history | 0 .../04-challenge-ret-to-plt/sol/exploit.py | 0 .../04-challenge-ret-to-plt/src/random | Bin .../05-gadget-tutorial/sol/payload.py | 0 .../05-gadget-tutorial/src/gadget_tut | Bin .../activities/06-echo-service/sol/client.scr | 0 .../06-echo-service/sol/echo_service | Bin .../06-echo-service/sol/echo_service.c | 0 .../06-echo-service/sol/echo_service.scr | 0 .../06-echo-service/sol/payload-aslr-alt.py | 0 .../06-echo-service/sol/payload-aslr.py | 0 .../06-echo-service/sol/payload-no-aslr.py | 0 .../06-echo-service/src/echo_service | Bin .../assets/overwatch_stack_conflict.png | Bin .../assets/overwatch_stack_no_conflict.png | Bin .../assets/overwatch_stack_simple.png | Bin .../shellcodes-advanced/README.md | 0 .../src/Makefile | 0 .../src/exploit.py | 0 .../src/script.py | 0 .../01-tutorial-avoiding-overwriting/src/vuln | Bin .../src/vuln.c | 0 .../src/vuln.o | Bin .../02-tutorial-nop-sleds/src/Makefile | 0 .../02-tutorial-nop-sleds/src/exploit.py | 0 .../02-tutorial-nop-sleds/src/script.py | 0 .../activities/02-tutorial-nop-sleds/src/vuln | Bin .../02-tutorial-nop-sleds/src/vuln.c | 0 .../02-tutorial-nop-sleds/src/vuln.o | Bin .../src/Makefile | 0 .../src/exploit.py | 0 .../src/vuln.c | 0 .../src/.gitignore | 0 .../src/Makefile | 0 .../src/vuln.c | 0 .../src/09-challenge-shellcode-stack-hard | 0 .../src/10-challenge-shellcode-argv | 0 .../src/11-challenge-shellcode-env | 0 .../src/.gitignore | 0 .../07-challenge-no-nops-allowed/src/Makefile | 0 .../07-challenge-no-nops-allowed/src/vuln.c | 0 .../src/.gitignore | 0 .../src/Makefile | 0 .../08-challenge-multiline-output/src/vuln.c | 0 .../src/.gitignore | 0 .../src/Makefile | 0 .../src/vuln.c | 0 .../shellcodes/README.md | 0 .../src/Makefile | 0 .../src/exit_shellcode.nasm | 0 .../src/mystery_shellcode.bin | Bin .../src/Makefile | 0 .../src/exit_shellcode.nasm | 0 .../src/vuln.c | 0 .../src/vuln2.c | 0 .../src/Makefile | 0 .../src/exploit.py | 0 .../src/hello_shellcode.nasm | 0 .../src/vuln.c | 0 .../05-tutorial-debugging-shellcodes/src | 0 .../06-challenge-binsh-shellcode/src/Makefile | 0 .../src/binsh_shellcode.nasm | 0 .../src/exploit.py | 0 .../06-challenge-binsh-shellcode/src/vuln.c | 0 .../sol/exploit.py | 0 .../src/Makefile | 0 .../src/vuln.c | 0 .../sol/exploit.py | 0 .../08-challenge-shellcode-after/src/Makefile | 0 .../08-challenge-shellcode-after/src/vuln.c | 0 .../src/Makefile | 0 .../src/vuln.c | 0 .../sol/exploit.py | 0 .../10-challenge-shellcode-argv/src/Makefile | 0 .../10-challenge-shellcode-argv/src/vuln.c | 0 .../11-challenge-shellcode-env/sol/exploit.py | 0 .../11-challenge-shellcode-env/src/Makefile | 0 .../11-challenge-shellcode-env/src/vuln.c | 0 .../shellcodes}/assets/shellcode_above.drawio | 0 .../shellcodes}/assets/shellcode_above.png | Bin .../shellcodes}/assets/shellcode_below.drawio | 0 .../shellcodes}/assets/shellcode_below.png | Bin .../shellcodes}/assets/stack_buffer.png | Bin .../Makefile | 0 .../exploit.py | 0 .../exploit3.py | 0 .../vuln | Bin .../vuln.c | 0 .../Makefile | 0 .../exploit.py | 0 .../exploit3.py | 0 .../vuln | Bin .../vuln.c | 0 .../Makefile | 0 .../README.md | 0 .../exploit3.py | 0 .../03-tutorial-bypass-dep-no-aslr-libc/vuln | Bin .../vuln.c | 0 .../04-tutorial-bypass-dep-aslr-libc/Makefile | 0 .../exploit.py | 0 .../exploit3.py | 0 .../04-tutorial-bypass-dep-aslr-libc/vuln | Bin .../04-tutorial-bypass-dep-aslr-libc/vuln.c | 0 .../ld-linux.so.2 | Bin .../libc.so.6 | Bin .../rwslotmachine7 | Bin .../sol_pie_bypass.py | 0 .../sol/exploit3.py | 0 .../sol/vuln.c | 0 .../src/vuln | Bin .../sol/exploit3.py | 0 .../sol/vuln.c | 0 .../src/vuln | Bin .../README.md | 0 .../sol/exploit3.py | 0 .../sol/vuln.c | 0 .../src/vuln | Bin .../.gitignore | 0 .../README.md | 0 .../sol/exploit3.py | 0 .../sol/vuln.c | 0 .../src/vuln | 0 .../defense-mechanisms/README.md | 0 .../01-rwslotmachine1/sol/rwslotmachine1.c | 0 .../01-rwslotmachine1/sol/sol_no_nx.py | 0 .../01-rwslotmachine1/src/ld-linux.so.2 | Bin .../01-rwslotmachine1/src/libc.so.6 | Bin .../01-rwslotmachine1/src/rwslotmachine1 | Bin .../02-rwslotmachine2/sol/rwslotmachine2.c | 0 .../sol/sol_got_overwrite.py | 0 .../02-rwslotmachine2/src/ld-linux.so.2 | Bin .../02-rwslotmachine2/src/libc.so.6 | Bin .../02-rwslotmachine2/src/rwslotmachine2 | Bin .../03-rwslotmachine3/sol/rwslotmachine3.c | 0 .../sol/sol_got_overwrite_2stage.py | 0 .../03-rwslotmachine3/src/ld-linux.so.2 | Bin .../03-rwslotmachine3/src/libc.so.6 | Bin .../03-rwslotmachine3/src/rwslotmachine3 | Bin .../04-rwslotmachine4/sol/rwslotmachine4.c | 0 .../04-rwslotmachine4/sol/sol_relro_bypass.py | 0 .../04-rwslotmachine4/src/ld-linux.so.2 | Bin .../04-rwslotmachine4/src/libc.so.6 | Bin .../04-rwslotmachine4/src/libint.so | Bin .../04-rwslotmachine4/src/rwslotmachine4 | Bin .../05-rwslotmachine5/sol/rwslotmachine5.c | 0 .../05-rwslotmachine5/sol/sol_seccomp.py | 0 .../05-rwslotmachine5/src/ld-linux.so.2 | Bin .../05-rwslotmachine5/src/libc.so.6 | Bin .../05-rwslotmachine5/src/rwslotmachine5 | Bin .../activities/common/ld-2.27.so | Bin .../activities/common/libc-2.27.so | Bin .../activities/common/skel.py | 0 .../information-leaks/README.md | 0 .../00-tutorial-snippets/canary.gdb | 0 .../activities/00-tutorial-snippets/ssp.c | 0 .../01-challenge-mycanary/sol/exploit.py | 0 .../sol/exploit_local.py | 0 .../01-challenge-mycanary/sol/mycanary.c | 0 .../01-challenge-mycanary/src/mycanary | Bin .../sol/bulletproof.c | 0 .../02-challenge-bulletproof/sol/exploit.py | 0 .../02-challenge-bulletproof/src/bulletproof | Bin .../format1/sol/exploit_format0.sh | 0 .../format1/sol/exploit_format1.py | 0 .../format1/sol/exploit_format2.sh | 0 .../format1/sol/exploit_format3.py | 0 .../format1/sol/exploit_format4.py | 0 .../format1/sol/helper_format1.py | 0 .../format1/src/Makefile | 0 .../format1/src/format1 | Bin .../format1/src/format1.c | 0 .../format2/sol/exploit_format0.sh | 0 .../format2/sol/exploit_format1.py | 0 .../format2/sol/exploit_format2.sh | 0 .../format2/sol/exploit_format3.py | 0 .../format2/sol/exploit_format4.py | 0 .../format2/sol/helper_format1.py | 0 .../format2/src/Makefile | 0 .../format2/src/format2 | Bin .../format2/src/format2.c | 0 .../format3/sol/exploit_format0.sh | 0 .../format3/sol/exploit_format1.py | 0 .../format3/sol/exploit_format2.sh | 0 .../format3/sol/exploit_format3.py | 0 .../format3/sol/exploit_format4.py | 0 .../format3/sol/helper_format1.py | 0 .../format3/src/Makefile | 0 .../format3/src/format3 | Bin .../format3/src/format3.c | 0 .../format4/sol/exploit_format0.sh | 0 .../format4/sol/exploit_format1.py | 0 .../format4/sol/exploit_format2.sh | 0 .../format4/sol/exploit_format3.py | 0 .../format4/sol/exploit_format4.py | 0 .../format4/sol/helper_format1.py | 0 .../format4/src/Makefile | 0 .../format4/src/format4 | Bin .../format4/src/format4.c | 0 .../overview/slides/Makefile | 1 + .../_site/css/highlight/base16/zenburn.css | 7 + .../overview/slides/_site/dist/reset.css | 30 + .../overview/slides/_site/dist/reveal.css | 8 + .../overview/slides/_site/dist/reveal.esm.js | 9 + .../slides/_site/dist/reveal.esm.js.map | 1 + .../overview/slides/_site/dist/reveal.js | 9 + .../overview/slides/_site/dist/reveal.js.map | 1 + .../slides/_site/dist/theme/beige.css | 364 +++++++ .../_site/dist/theme/black-contrast.css | 360 +++++++ .../slides/_site/dist/theme/black.css | 357 +++++++ .../slides/_site/dist/theme/blood.css | 390 ++++++++ .../slides/_site/dist/theme/dracula.css | 414 ++++++++ .../dist/theme/fonts/league-gothic/LICENSE | 2 + .../fonts/league-gothic/league-gothic.css | 10 + .../fonts/league-gothic/league-gothic.eot | Bin 0 -> 25696 bytes .../fonts/league-gothic/league-gothic.ttf | Bin 0 -> 64256 bytes .../fonts/league-gothic/league-gothic.woff | Bin 0 -> 30764 bytes .../dist/theme/fonts/source-sans-pro/LICENSE | 45 + .../source-sans-pro-italic.eot | Bin 0 -> 75720 bytes .../source-sans-pro-italic.ttf | Bin 0 -> 238084 bytes .../source-sans-pro-italic.woff | Bin 0 -> 98556 bytes .../source-sans-pro-regular.eot | Bin 0 -> 88070 bytes .../source-sans-pro-regular.ttf | Bin 0 -> 288008 bytes .../source-sans-pro-regular.woff | Bin 0 -> 114324 bytes .../source-sans-pro-semibold.eot | Bin 0 -> 89897 bytes .../source-sans-pro-semibold.ttf | Bin 0 -> 284640 bytes .../source-sans-pro-semibold.woff | Bin 0 -> 115648 bytes .../source-sans-pro-semibolditalic.eot | Bin 0 -> 75706 bytes .../source-sans-pro-semibolditalic.ttf | Bin 0 -> 240944 bytes .../source-sans-pro-semibolditalic.woff | Bin 0 -> 98816 bytes .../fonts/source-sans-pro/source-sans-pro.css | 39 + .../slides/_site/dist/theme/league.css | 366 +++++++ .../overview/slides/_site/dist/theme/moon.css | 365 +++++++ .../slides/_site/dist/theme/night.css | 358 +++++++ .../slides/_site/dist/theme/serif.css | 361 +++++++ .../slides/_site/dist/theme/simple.css | 360 +++++++ .../overview/slides/_site/dist/theme/sky.css | 368 ++++++++ .../slides/_site/dist/theme/solarized.css | 361 +++++++ .../_site/dist/theme/white-contrast.css | 360 +++++++ .../slides/_site/dist/theme/white.css | 357 +++++++ ...hite_contrast_compact_verbatim_headers.css | 360 +++++++ .../overview/slides/_site/favicon.ico | Bin 0 -> 1406 bytes .../overview/slides/_site/index.html | 75 ++ .../_site/plugin/highlight/highlight.esm.js | 5 + .../_site/plugin/highlight/highlight.js | 5 + .../slides/_site/plugin/highlight/monokai.css | 71 ++ .../slides/_site/plugin/highlight/plugin.js | 439 +++++++++ .../slides/_site/plugin/highlight/zenburn.css | 80 ++ .../_site/plugin/markdown/markdown.esm.js | 7 + .../slides/_site/plugin/markdown/markdown.js | 7 + .../slides/_site/plugin/markdown/plugin.js | 475 ++++++++++ .../slides/_site/plugin/math/katex.js | 96 ++ .../slides/_site/plugin/math/math.esm.js | 6 + .../overview/slides/_site/plugin/math/math.js | 1 + .../slides/_site/plugin/math/mathjax2.js | 89 ++ .../slides/_site/plugin/math/mathjax3.js | 77 ++ .../slides/_site/plugin/math/plugin.js | 15 + .../slides/_site/plugin/notes/notes.esm.js | 1 + .../slides/_site/plugin/notes/notes.js | 1 + .../slides/_site/plugin/notes/plugin.js | 261 +++++ .../_site/plugin/notes/speaker-view.html | 891 ++++++++++++++++++ .../slides/_site/plugin/search/plugin.js | 243 +++++ .../slides/_site/plugin/search/search.esm.js | 7 + .../slides/_site/plugin/search/search.js | 7 + .../slides/_site/plugin/zoom/plugin.js | 264 ++++++ .../slides/_site/plugin/zoom/zoom.esm.js | 11 + .../overview/slides/_site/plugin/zoom/zoom.js | 11 + .../overview/slides/_site/slides.html | 75 ++ .../mitigations-and-defensive-strategies.md | 1 + .../overview/slides/slides.md | 12 + .../overview/slides/slides.mdpp | 12 + common/makefile/defs.mk | 13 + common/makefile/linux.mk | 16 + common/makefile/linux/d/defs.mk | 3 + common/makefile/multiple.mk | 12 + common/makefile/single.mk | 13 + common/makefile/slides.mk | 33 + common/test/c/.gitignore | 2 + common/test/c/Makefile | 6 + common/test/c/open.c | 41 + common/test/c/sock/.gitignore | 1 + common/test/c/sock/Makefile | 10 + common/test/c/sock/README.md | 19 + common/test/c/sock/http_reply_once.c | 159 ++++ common/test/slides/.gitignore | 2 + common/test/slides/Makefile | 6 + common/test/slides/file1.mdpp | 12 + common/test/slides/file2.mdpp | 8 + common/test/slides/file3.mdpp | 3 + common/test/slides/media/.gitignore | 1 + common/test/slides/media/block/block-1.svg | 4 + common/test/slides/media/block/block-2.svg | 4 + common/utils/log/CPPLINT.cfg | 1 + common/utils/log/log.c | 170 ++++ common/utils/log/log.h | 59 ++ common/utils/sock/sock_util.c | 114 +++ common/utils/sock/sock_util.h | 34 + common/utils/utils.h | 36 + config.yaml | 80 ++ 821 files changed, 45988 insertions(+), 281 deletions(-) rename .github/workflows/{linting.yml => actions.yml} (61%) create mode 100644 .github/workflows/deployment.yml delete mode 100644 .github/workflows/push-updates.yml create mode 100644 Dockerfile create mode 100644 Makefile create mode 100644 README.md delete mode 100644 _index.md create mode 100644 chapters/README.md rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/01-02-challenge-sppb/sol/solution.sh (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/01-02-challenge-sppb/sol/sppb.c (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/01-02-challenge-sppb/src/sppb (100%) create mode 100644 chapters/binary-analysis/dynamic-analysis/activities/01-02-challenge-sppb/src/sppb.tar.gz rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/03-challenge-domino/sol/domino.c (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/03-challenge-domino/sol/solution.sh (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/03-challenge-domino/src/domino (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/04-challenge-call-me/sol/README (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/04-challenge-call-me/sol/call_me.c (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/04-challenge-call-me/src/calc_offset.py (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/04-challenge-call-me/src/call_me (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/05-challenge-snooze-me/sol/gdb_history (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/05-challenge-snooze-me/sol/snooze_me.c (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/05-challenge-snooze-me/src/snooze_me (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/06-challenge-phone-home/sol/encrypt.py (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/06-challenge-phone-home/sol/phone_home.c (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/06-challenge-phone-home/sol/solution-gdb.output (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/06-challenge-phone-home/src/phone_home (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/07-challenge-chain-encoder/sol/base64.c (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/07-challenge-chain-encoder/sol/base64.h (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/07-challenge-chain-encoder/sol/main.c (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/07-challenge-chain-encoder/sol/md5.c (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/07-challenge-chain-encoder/sol/md5.h (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/07-challenge-chain-encoder/sol/solution.sh (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/07-challenge-chain-encoder/src/encoder (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/08-challenge-cdkey/sol/RC4.c (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/08-challenge-cdkey/sol/RC4.h (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/08-challenge-cdkey/sol/main.c (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/08-challenge-cdkey/sol/solution.sh (100%) rename {dynamic-analysis => chapters/binary-analysis/dynamic-analysis}/activities/08-challenge-cdkey/src/cdkey (100%) rename dynamic-analysis/index.md => chapters/binary-analysis/dynamic-analysis/reading/README.md (100%) create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/Makefile create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/css/highlight/base16/zenburn.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reset.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.esm.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.esm.js.map create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.js.map create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/beige.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/black-contrast.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/black.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/blood.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/dracula.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/league-gothic/LICENSE create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/league-gothic/league-gothic.css create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/league-gothic/league-gothic.eot create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/league-gothic/league-gothic.ttf create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/league-gothic/league-gothic.woff create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/LICENSE create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.eot create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.ttf create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.woff create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.eot create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.ttf create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.woff create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.eot create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.ttf create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.woff create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/league.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/moon.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/night.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/serif.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/simple.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/sky.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/solarized.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/white-contrast.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/white.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/dist/theme/white_contrast_compact_verbatim_headers.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/favicon.ico create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/index.html create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/highlight/highlight.esm.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/highlight/highlight.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/highlight/monokai.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/highlight/plugin.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/highlight/zenburn.css create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/markdown/markdown.esm.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/markdown/markdown.js create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/markdown/plugin.js create mode 100755 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/math/katex.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/math/math.esm.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/math/math.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/math/mathjax2.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/math/mathjax3.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/math/plugin.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/notes/notes.esm.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/notes/notes.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/notes/plugin.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/notes/speaker-view.html create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/search/plugin.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/search/search.esm.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/search/search.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/zoom/plugin.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/zoom/zoom.esm.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/plugin/zoom/zoom.js create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/_site/slides.html create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/dynamic-analysis.md create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/slides.md create mode 100644 chapters/binary-analysis/dynamic-analysis/slides/slides.mdpp rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/01-challenge-binary-puzzle/sol/solution.sh (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/01-challenge-binary-puzzle/src/Makefile (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/01-challenge-binary-puzzle/src/libguess.c (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/01-challenge-binary-puzzle/src/libguess.h (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/01-challenge-binary-puzzle/src/main.c (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/01-challenge-binary-puzzle/src/p1 (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/01-challenge-binary-puzzle/src/p2 (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/01-challenge-binary-puzzle/src/p3 (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/01-challenge-binary-puzzle/src/p4 (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/01-challenge-binary-puzzle/src/second.c (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/01-challenge-binary-puzzle/src/third.c (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/02-challenge-missing-function/sol/Makefile (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/02-challenge-missing-function/sol/stuff.c (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/02-challenge-missing-function/sol/stuff.h (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/02-challenge-missing-function/src/Makefile (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/02-challenge-missing-function/src/help.c (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/02-challenge-missing-function/src/helpless-binary (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/02-challenge-missing-function/src/stuff.c (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/02-challenge-missing-function/src/stuff.h (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/04-challenge-compiler-flags/sol/solution.sh (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/04-challenge-compiler-flags/src/Makefile (100%) create mode 100755 chapters/binary-analysis/executables-and-processes/drills/04-challenge-compiler-flags/src/caller-no-pie create mode 100755 chapters/binary-analysis/executables-and-processes/drills/04-challenge-compiler-flags/src/caller-pie rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/04-challenge-compiler-flags/src/caller.c (100%) create mode 100644 chapters/binary-analysis/executables-and-processes/drills/04-challenge-compiler-flags/src/caller1.o create mode 100644 chapters/binary-analysis/executables-and-processes/drills/04-challenge-compiler-flags/src/caller2.o rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/04-challenge-compiler-flags/src/flag.c (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/04-challenge-compiler-flags/src/flag1.o (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/04-challenge-compiler-flags/src/flag2.o (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/05-challenge-print-flag/sol/README.md (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/05-challenge-print-flag/src/Makefile (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/05-challenge-print-flag/src/get_message (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/05-challenge-print-flag/src/get_message.c (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/06-challenge-matryoshka/README.md (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/06-challenge-matryoshka/sol/solution (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/06-challenge-matryoshka/src/Makefile (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/06-challenge-matryoshka/src/do_xor_encrypt.c (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/06-challenge-matryoshka/src/flag (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/06-challenge-matryoshka/src/inner_key (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/06-challenge-matryoshka/src/inner_template.c (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/06-challenge-matryoshka/src/matryoshka (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/06-challenge-matryoshka/src/matryoshka_template.c (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/07-challenge-fix-me/sol/README (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/07-challenge-fix-me/sol/elfie (100%) rename {executables-and-processes/activities => chapters/binary-analysis/executables-and-processes/drills}/07-challenge-fix-me/src/elfie (100%) rename {executables-and-processes/assets => chapters/binary-analysis/executables-and-processes/media}/elf-dependency.png (100%) rename {executables-and-processes/assets => chapters/binary-analysis/executables-and-processes/media}/elf-dynamic-linking.png (100%) rename {executables-and-processes/assets => chapters/binary-analysis/executables-and-processes/media}/elf-link-exec.png (100%) rename {executables-and-processes/assets => chapters/binary-analysis/executables-and-processes/media}/elf-merging.png (100%) rename {executables-and-processes/assets => chapters/binary-analysis/executables-and-processes/media}/elf-sect-inf.png (100%) rename {executables-and-processes/assets => chapters/binary-analysis/executables-and-processes/media}/elf-space-aslr.png (100%) rename {executables-and-processes/assets => chapters/binary-analysis/executables-and-processes/media}/elf-space-final.png (100%) rename {executables-and-processes/assets => chapters/binary-analysis/executables-and-processes/media}/elf-space.png (100%) rename {executables-and-processes/assets => chapters/binary-analysis/executables-and-processes/media}/elf-static-linking.png (100%) rename executables-and-processes/index.md => chapters/binary-analysis/executables-and-processes/reading/README.md (100%) create mode 100644 chapters/binary-analysis/executables-and-processes/slides/Makefile create mode 100644 chapters/binary-analysis/executables-and-processes/slides/executables-and-processes.md create mode 100644 chapters/binary-analysis/executables-and-processes/slides/slides.mdpp rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/01-tutorial-strings/src/Makefile (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/01-tutorial-strings/src/crackme1.c (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/02-tutorial-execution-tracing/src/Makefile (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/02-tutorial-execution-tracing/src/crackme2.c (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/03-tutorial-symbols/src/Makefile (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/03-tutorial-symbols/src/crackme3.c (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/04-tutorial-library-dependencies/src/Makefile (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/04-tutorial-library-dependencies/src/strcmp.c (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/05-tutorial-network-netstat-netcat/src/Makefile (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/05-tutorial-network-netstat-netcat/src/client.c (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/05-tutorial-network-netstat-netcat/src/client.py (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/05-tutorial-network-netstat-netcat/src/server.c (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/05-tutorial-network-netstat-netcat/src/server.py (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/06-tutorial-open-files/src/Makefile (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/demos}/06-tutorial-open-files/src/crackme6.c (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/07-challenge-perfect-answer/sol/README (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/07-challenge-perfect-answer/src/perfect-answer (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/08-challenge-lots-of-strings/sol/README (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/08-challenge-lots-of-strings/sol/lots_of_strings.c (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/08-challenge-lots-of-strings/src/lots_of_strings (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/09-challenge-sleepy-cats/sol/README (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/09-challenge-sleepy-cats/sol/sleepy.c (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/09-challenge-sleepy-cats/src/sleepy (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/10-challenge-hidden/sol/README (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/10-challenge-hidden/sol/hidden.c (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/10-challenge-hidden/src/hidden (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/11-challenge-detective/sol/detective.c (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/11-challenge-detective/sol/exploit.py (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/11-challenge-detective/sol/exploit_template.py (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/11-challenge-detective/src/detective (100%) rename {exploration-tools/activities => chapters/binary-analysis/exploration-tools/drills}/bonus/src/bonus_ctf_task_01 (100%) rename {exploration-tools/assets => chapters/binary-analysis/exploration-tools/media}/files.png (100%) rename exploration-tools/index.md => chapters/binary-analysis/exploration-tools/reading/README.md (100%) create mode 100644 chapters/binary-analysis/exploration-tools/slides/Makefile create mode 100644 chapters/binary-analysis/exploration-tools/slides/exploration-tools.md create mode 100644 chapters/binary-analysis/exploration-tools/slides/slides.mdpp create mode 100644 chapters/binary-analysis/overview/README.md create mode 100644 chapters/binary-analysis/overview/slides/Makefile create mode 100644 chapters/binary-analysis/overview/slides/_site/css/highlight/base16/zenburn.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/reset.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/reveal.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/reveal.esm.js create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/reveal.esm.js.map create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/reveal.js create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/reveal.js.map create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/beige.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/black-contrast.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/black.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/blood.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/dracula.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/league-gothic/LICENSE create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/league-gothic/league-gothic.css create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/league-gothic/league-gothic.eot create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/league-gothic/league-gothic.ttf create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/league-gothic/league-gothic.woff create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/LICENSE create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.eot create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.ttf create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.woff create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.eot create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.ttf create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.woff create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.eot create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.ttf create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.woff create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf create mode 100755 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/league.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/moon.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/night.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/serif.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/simple.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/sky.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/solarized.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/white-contrast.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/white.css create mode 100644 chapters/binary-analysis/overview/slides/_site/dist/theme/white_contrast_compact_verbatim_headers.css create mode 100644 chapters/binary-analysis/overview/slides/_site/favicon.ico create mode 100644 chapters/binary-analysis/overview/slides/_site/index.html create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/highlight/highlight.esm.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/highlight/highlight.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/highlight/monokai.css create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/highlight/plugin.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/highlight/zenburn.css create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/markdown/markdown.esm.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/markdown/markdown.js create mode 100755 chapters/binary-analysis/overview/slides/_site/plugin/markdown/plugin.js create mode 100755 chapters/binary-analysis/overview/slides/_site/plugin/math/katex.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/math/math.esm.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/math/math.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/math/mathjax2.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/math/mathjax3.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/math/plugin.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/notes/notes.esm.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/notes/notes.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/notes/plugin.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/notes/speaker-view.html create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/search/plugin.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/search/search.esm.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/search/search.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/zoom/plugin.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/zoom/zoom.esm.js create mode 100644 chapters/binary-analysis/overview/slides/_site/plugin/zoom/zoom.js create mode 100644 chapters/binary-analysis/overview/slides/_site/slides.html create mode 100644 chapters/binary-analysis/overview/slides/binary-analysis.md create mode 100644 chapters/binary-analysis/overview/slides/slides.md create mode 100644 chapters/binary-analysis/overview/slides/slides.mdpp create mode 100644 chapters/binary-analysis/static-analysis/demos/01-tutorial-disassemble-methods/README.md rename {static-analysis/activities => chapters/binary-analysis/static-analysis/demos}/01-tutorial-disassemble-methods/src/Makefile (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/demos}/01-tutorial-disassemble-methods/src/emperor (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/demos}/01-tutorial-disassemble-methods/src/emperor.c (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/demos}/01-tutorial-disassemble-methods/src/wrong (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/demos}/01-tutorial-disassemble-methods/src/wrong.c (100%) create mode 100644 chapters/binary-analysis/static-analysis/demos/02-tutorial-ida-time/README.md rename {static-analysis/activities => chapters/binary-analysis/static-analysis/demos}/02-tutorial-ida-time/src/Makefile (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/demos}/02-tutorial-ida-time/src/hyp3rs3rv3r (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/demos}/02-tutorial-ida-time/src/hyp3rs3rv3r.c (100%) create mode 100644 chapters/binary-analysis/static-analysis/demos/03-tutorial-cpp-executables/README.md rename {static-analysis/activities => chapters/binary-analysis/static-analysis/demos}/03-tutorial-cpp-executables/src/Makefile (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/demos}/03-tutorial-cpp-executables/src/hello_world.cpp (100%) create mode 100644 chapters/binary-analysis/static-analysis/demos/README.md create mode 100644 chapters/binary-analysis/static-analysis/drills/04-challenge-crypto-crackme/README.md rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/04-challenge-crypto-crackme/sol/crackme-04-gen.py (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/04-challenge-crypto-crackme/src/crypto_crackme (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/04-challenge-crypto-crackme/src/libcrypto.so.1.0.0 (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/04-challenge-crypto-crackme/src/libssl.so.1.0.0 (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/04-challenge-crypto-crackme/src/secret.enc (100%) create mode 100644 chapters/binary-analysis/static-analysis/drills/05-challenge-broken/README.md rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/05-challenge-broken/sol/password (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/05-challenge-broken/sol/solution.sh (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/05-challenge-broken/src/Makefile (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/05-challenge-broken/src/broken (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/05-challenge-broken/src/broken.c (100%) create mode 100644 chapters/binary-analysis/static-analysis/drills/06-challenge-hyp3rs3rv3r/README.md rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/06-challenge-hyp3rs3rv3r/sol/exploit.py (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/06-challenge-hyp3rs3rv3r/sol/exploit_template.py (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/06-challenge-hyp3rs3rv3r/src/banner (100%) rename {static-analysis/activities => chapters/binary-analysis/static-analysis/drills}/06-challenge-hyp3rs3rv3r/src/hyp3rs3rv3r (100%) create mode 100644 chapters/binary-analysis/static-analysis/drills/README.md rename {static-analysis/assets => chapters/binary-analysis/static-analysis/media}/fork_xref_1.png (100%) rename {static-analysis/assets => chapters/binary-analysis/static-analysis/media}/fork_xref_2.png (100%) rename {static-analysis/assets => chapters/binary-analysis/static-analysis/media}/handle_LIST.png (100%) rename {static-analysis/assets => chapters/binary-analysis/static-analysis/media}/handle_child_process.png (100%) rename {static-analysis/assets => chapters/binary-analysis/static-analysis/media}/ida_c++_demangled.png (100%) rename {static-analysis/assets => chapters/binary-analysis/static-analysis/media}/ida_c++_main.png (100%) rename {static-analysis/assets => chapters/binary-analysis/static-analysis/media}/ida_c++_start.png (100%) rename {static-analysis/assets => chapters/binary-analysis/static-analysis/media}/ida_first_view.png (100%) rename {static-analysis/assets => chapters/binary-analysis/static-analysis/media}/ida_initial_screen.png (100%) rename {static-analysis/assets => chapters/binary-analysis/static-analysis/media}/ida_main.png (100%) create mode 100644 chapters/binary-analysis/static-analysis/reading/README.md rename static-analysis/index.md => chapters/binary-analysis/static-analysis/reading/README_2.md (84%) create mode 100644 chapters/binary-analysis/static-analysis/slides/Makefile create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/css/highlight/base16/zenburn.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/reset.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/reveal.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/reveal.esm.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/reveal.esm.js.map create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/reveal.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/reveal.js.map create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/beige.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/black-contrast.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/black.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/blood.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/dracula.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/league-gothic/LICENSE create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/league-gothic/league-gothic.css create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/league-gothic/league-gothic.eot create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/league-gothic/league-gothic.ttf create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/league-gothic/league-gothic.woff create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/LICENSE create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.eot create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.ttf create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.woff create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.eot create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.ttf create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.woff create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.eot create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.ttf create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.woff create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/league.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/moon.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/night.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/serif.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/simple.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/sky.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/solarized.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/white-contrast.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/white.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/dist/theme/white_contrast_compact_verbatim_headers.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/favicon.ico create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/index.html create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/highlight/highlight.esm.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/highlight/highlight.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/highlight/monokai.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/highlight/plugin.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/highlight/zenburn.css create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/markdown/markdown.esm.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/markdown/markdown.js create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/plugin/markdown/plugin.js create mode 100755 chapters/binary-analysis/static-analysis/slides/_site/plugin/math/katex.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/math/math.esm.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/math/math.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/math/mathjax2.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/math/mathjax3.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/math/plugin.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/notes/notes.esm.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/notes/notes.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/notes/plugin.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/notes/speaker-view.html create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/search/plugin.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/search/search.esm.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/search/search.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/zoom/plugin.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/zoom/zoom.esm.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/plugin/zoom/zoom.js create mode 100644 chapters/binary-analysis/static-analysis/slides/_site/slides.html create mode 100644 chapters/binary-analysis/static-analysis/slides/slides.md create mode 100644 chapters/binary-analysis/static-analysis/slides/slides.mdpp create mode 100644 chapters/binary-analysis/static-analysis/slides/static-analysis.md rename buffer-exploitation/index.md => chapters/exploitation-techniques/buffer-exploitation/README.md (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/00-tutorial/src/Makefile (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/00-tutorial/src/buffers.c (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/00-tutorial/src/script.py (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/00-tutorial/src/simple_read.c (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/01-challenge-parrot/sol/parrot.c (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/01-challenge-parrot/sol/solve.py (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/01-challenge-parrot/src/parrot (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/02-challenge-indexing/sol/.gdb_history (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/02-challenge-indexing/sol/indexing.c (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/02-challenge-indexing/sol/solve.py (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/02-challenge-indexing/src/indexing (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/03-challenge-level7/sol/level07.c (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/03-challenge-level7/sol/solve.py (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/03-challenge-level7/src/atoi (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/03-challenge-level7/src/atoi.c (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/03-challenge-level7/src/level07 (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/04-challenge-neighbourly/sol/neighbourly.c (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/04-challenge-neighbourly/sol/solve.py (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/04-challenge-neighbourly/src/neighbourly (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/05-challenge-input-functions/sol/input_functions.c (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/05-challenge-input-functions/sol/solve.py (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/05-challenge-input-functions/src/input_functions (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/06-challenge-birds/sol/birds.c (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/06-challenge-birds/sol/solve.py (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/activities/06-challenge-birds/src/birds (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/assets/stack_buffer.png (100%) rename {buffer-exploitation => chapters/exploitation-techniques/buffer-exploitation}/assets/stack_x86_64.png (100%) create mode 100644 chapters/exploitation-techniques/overview/slides/Makefile create mode 100644 chapters/exploitation-techniques/overview/slides/_site/css/highlight/base16/zenburn.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/reset.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/reveal.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/reveal.esm.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/reveal.esm.js.map create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/reveal.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/reveal.js.map create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/beige.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/black-contrast.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/black.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/blood.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/dracula.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/league-gothic/LICENSE create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/league-gothic/league-gothic.css create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/league-gothic/league-gothic.eot create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/league-gothic/league-gothic.ttf create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/league-gothic/league-gothic.woff create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/LICENSE create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.eot create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.ttf create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.woff create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.eot create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.ttf create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.woff create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.eot create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.ttf create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.woff create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf create mode 100755 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/league.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/moon.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/night.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/serif.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/simple.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/sky.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/solarized.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/white-contrast.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/white.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/dist/theme/white_contrast_compact_verbatim_headers.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/favicon.ico create mode 100644 chapters/exploitation-techniques/overview/slides/_site/index.html create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/highlight/highlight.esm.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/highlight/highlight.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/highlight/monokai.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/highlight/plugin.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/highlight/zenburn.css create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/markdown/markdown.esm.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/markdown/markdown.js create mode 100755 chapters/exploitation-techniques/overview/slides/_site/plugin/markdown/plugin.js create mode 100755 chapters/exploitation-techniques/overview/slides/_site/plugin/math/katex.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/math/math.esm.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/math/math.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/math/mathjax2.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/math/mathjax3.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/math/plugin.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/notes/notes.esm.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/notes/notes.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/notes/plugin.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/notes/speaker-view.html create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/search/plugin.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/search/search.esm.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/search/search.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/zoom/plugin.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/zoom/zoom.esm.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/plugin/zoom/zoom.js create mode 100644 chapters/exploitation-techniques/overview/slides/_site/slides.html create mode 100644 chapters/exploitation-techniques/overview/slides/exploitation-techniques.md create mode 100644 chapters/exploitation-techniques/overview/slides/slides.md create mode 100644 chapters/exploitation-techniques/overview/slides/slides.mdpp rename return-oriented-programming-advanced/index.md => chapters/exploitation-techniques/return-oriented-programming-advanced/README.md (100%) rename {return-oriented-programming-advanced => chapters/exploitation-techniques/return-oriented-programming-advanced}/activities/01-leak-call-system/sol/exploit.py (100%) rename {return-oriented-programming-advanced => chapters/exploitation-techniques/return-oriented-programming-advanced}/activities/01-leak-call-system/sol/rop.c (100%) rename {return-oriented-programming-advanced => chapters/exploitation-techniques/return-oriented-programming-advanced}/activities/01-leak-call-system/src/rop (100%) rename {return-oriented-programming-advanced => chapters/exploitation-techniques/return-oriented-programming-advanced}/activities/02-low-stack-space/sol/exploit_mprotect.py (100%) rename {return-oriented-programming-advanced => chapters/exploitation-techniques/return-oriented-programming-advanced}/activities/02-low-stack-space/sol/exploit_ret2main.py (100%) rename {return-oriented-programming-advanced => chapters/exploitation-techniques/return-oriented-programming-advanced}/activities/02-low-stack-space/sol/exploit_stack_pivot.py (100%) rename {return-oriented-programming-advanced => chapters/exploitation-techniques/return-oriented-programming-advanced}/activities/02-low-stack-space/sol/rop_limited.c (100%) rename {return-oriented-programming-advanced => chapters/exploitation-techniques/return-oriented-programming-advanced}/activities/02-low-stack-space/src/rop_limited (100%) rename return-oriented-programming/index.md => chapters/exploitation-techniques/return-oriented-programming/README.md (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/00-demo/sol/exploit.py (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/00-demo/sol/exploit64.py (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/00-demo/src/Makefile (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/00-demo/src/Makefile.64 (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/00-demo/src/exploit.py (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/00-demo/src/exploit64.py (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/00-demo/src/vuln (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/00-demo/src/vuln.c (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/00-demo/src/vuln64 (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/01-tutorial-ret-to-libc/sol/auth.c (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/01-tutorial-ret-to-libc/sol/sol.sh (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/01-tutorial-ret-to-libc/src/auth (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/03-challenge-no-ret-control/sol/force_exit.c (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/03-challenge-no-ret-control/sol/skel.py (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/03-challenge-no-ret-control/src/force_exit (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/04-challenge-ret-to-plt/sol/.gdb_history (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/04-challenge-ret-to-plt/sol/exploit.py (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/04-challenge-ret-to-plt/src/random (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/05-gadget-tutorial/sol/payload.py (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/05-gadget-tutorial/src/gadget_tut (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/06-echo-service/sol/client.scr (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/06-echo-service/sol/echo_service (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/06-echo-service/sol/echo_service.c (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/06-echo-service/sol/echo_service.scr (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/06-echo-service/sol/payload-aslr-alt.py (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/06-echo-service/sol/payload-aslr.py (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/06-echo-service/sol/payload-no-aslr.py (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/activities/06-echo-service/src/echo_service (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/assets/overwatch_stack_conflict.png (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/assets/overwatch_stack_no_conflict.png (100%) rename {return-oriented-programming => chapters/exploitation-techniques/return-oriented-programming}/assets/overwatch_stack_simple.png (100%) rename shellcodes-advanced/index.md => chapters/exploitation-techniques/shellcodes-advanced/README.md (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/01-tutorial-avoiding-overwriting/src/Makefile (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/01-tutorial-avoiding-overwriting/src/exploit.py (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/01-tutorial-avoiding-overwriting/src/script.py (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/01-tutorial-avoiding-overwriting/src/vuln (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/01-tutorial-avoiding-overwriting/src/vuln.c (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/01-tutorial-avoiding-overwriting/src/vuln.o (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/02-tutorial-nop-sleds/src/Makefile (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/02-tutorial-nop-sleds/src/exploit.py (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/02-tutorial-nop-sleds/src/script.py (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/02-tutorial-nop-sleds/src/vuln (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/02-tutorial-nop-sleds/src/vuln.c (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/02-tutorial-nop-sleds/src/vuln.o (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/03-tutorial-null-free-shellcode/src/Makefile (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/03-tutorial-null-free-shellcode/src/exploit.py (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/03-tutorial-null-free-shellcode/src/vuln.c (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/05-tutorial-alphanumeric-shellcodes/src/.gitignore (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/05-tutorial-alphanumeric-shellcodes/src/Makefile (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/05-tutorial-alphanumeric-shellcodes/src/vuln.c (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/06-challenge-nop-sled-redo/src/09-challenge-shellcode-stack-hard (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/06-challenge-nop-sled-redo/src/10-challenge-shellcode-argv (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/06-challenge-nop-sled-redo/src/11-challenge-shellcode-env (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/07-challenge-no-nops-allowed/src/.gitignore (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/07-challenge-no-nops-allowed/src/Makefile (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/07-challenge-no-nops-allowed/src/vuln.c (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/08-challenge-multiline-output/src/.gitignore (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/08-challenge-multiline-output/src/Makefile (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/08-challenge-multiline-output/src/vuln.c (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/09-challenge-execve-blocking-attempt/src/.gitignore (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/09-challenge-execve-blocking-attempt/src/Makefile (100%) rename {shellcodes-advanced => chapters/exploitation-techniques/shellcodes-advanced}/activities/09-challenge-execve-blocking-attempt/src/vuln.c (100%) rename shellcodes/index.md => chapters/exploitation-techniques/shellcodes/README.md (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/01-tutorial-generating-machine-code/src/Makefile (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/01-tutorial-generating-machine-code/src/exit_shellcode.nasm (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/02-tutorial-inspecting-machine-code/src/mystery_shellcode.bin (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/03-tutorial-injecting-machine-code/src/Makefile (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/03-tutorial-injecting-machine-code/src/exit_shellcode.nasm (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/03-tutorial-injecting-machine-code/src/vuln.c (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/03-tutorial-injecting-machine-code/src/vuln2.c (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/04-tutorial-hello-world-shellcode/src/Makefile (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/04-tutorial-hello-world-shellcode/src/exploit.py (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/04-tutorial-hello-world-shellcode/src/hello_shellcode.nasm (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/04-tutorial-hello-world-shellcode/src/vuln.c (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/05-tutorial-debugging-shellcodes/src (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/06-challenge-binsh-shellcode/src/Makefile (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/06-challenge-binsh-shellcode/src/binsh_shellcode.nasm (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/06-challenge-binsh-shellcode/src/exploit.py (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/06-challenge-binsh-shellcode/src/vuln.c (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/07-challenge-shellcode-on-stack/sol/exploit.py (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/07-challenge-shellcode-on-stack/src/Makefile (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/07-challenge-shellcode-on-stack/src/vuln.c (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/08-challenge-shellcode-after/sol/exploit.py (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/08-challenge-shellcode-after/src/Makefile (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/08-challenge-shellcode-after/src/vuln.c (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/09-challenge-shellcode-stack-hard/src/Makefile (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/09-challenge-shellcode-stack-hard/src/vuln.c (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/10-challenge-shellcode-argv/sol/exploit.py (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/10-challenge-shellcode-argv/src/Makefile (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/10-challenge-shellcode-argv/src/vuln.c (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/11-challenge-shellcode-env/sol/exploit.py (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/11-challenge-shellcode-env/src/Makefile (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/activities/11-challenge-shellcode-env/src/vuln.c (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/assets/shellcode_above.drawio (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/assets/shellcode_above.png (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/assets/shellcode_below.drawio (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/assets/shellcode_below.png (100%) rename {shellcodes => chapters/exploitation-techniques/shellcodes}/assets/stack_buffer.png (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/01-tutorial-bypass-dep-system-sh-present/Makefile (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/01-tutorial-bypass-dep-system-sh-present/exploit.py (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/01-tutorial-bypass-dep-system-sh-present/exploit3.py (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/01-tutorial-bypass-dep-system-sh-present/vuln (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/01-tutorial-bypass-dep-system-sh-present/vuln.c (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/02-tutorial-bypass-dep-system-sh-separate/Makefile (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/02-tutorial-bypass-dep-system-sh-separate/exploit.py (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/02-tutorial-bypass-dep-system-sh-separate/exploit3.py (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/02-tutorial-bypass-dep-system-sh-separate/vuln (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/02-tutorial-bypass-dep-system-sh-separate/vuln.c (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/03-tutorial-bypass-dep-no-aslr-libc/Makefile (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/03-tutorial-bypass-dep-no-aslr-libc/README.md (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/03-tutorial-bypass-dep-no-aslr-libc/exploit3.py (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/03-tutorial-bypass-dep-no-aslr-libc/vuln (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/03-tutorial-bypass-dep-no-aslr-libc/vuln.c (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/04-tutorial-bypass-dep-aslr-libc/Makefile (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/04-tutorial-bypass-dep-aslr-libc/exploit.py (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/04-tutorial-bypass-dep-aslr-libc/exploit3.py (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/04-tutorial-bypass-dep-aslr-libc/vuln (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/04-tutorial-bypass-dep-aslr-libc/vuln.c (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/05-tutorial-bypass-dep-aslr-pie-rop/ld-linux.so.2 (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/05-tutorial-bypass-dep-aslr-pie-rop/libc.so.6 (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/05-tutorial-bypass-dep-aslr-pie-rop/rwslotmachine7 (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/05-tutorial-bypass-dep-aslr-pie-rop/sol_pie_bypass.py (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/06-challenge-bypass-dep-system-sh-present/sol/exploit3.py (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/06-challenge-bypass-dep-system-sh-present/sol/vuln.c (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/06-challenge-bypass-dep-system-sh-present/src/vuln (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/07-challenge-bypass-dep-system-sh-separate/sol/exploit3.py (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/07-challenge-bypass-dep-system-sh-separate/sol/vuln.c (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/07-challenge-bypass-dep-system-sh-separate/src/vuln (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/08-challenge-bypass-dep-no-aslr-libc/README.md (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/08-challenge-bypass-dep-no-aslr-libc/sol/exploit3.py (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/08-challenge-bypass-dep-no-aslr-libc/sol/vuln.c (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/08-challenge-bypass-dep-no-aslr-libc/src/vuln (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/09-challenge-bypass-dep-aslr-libc/.gitignore (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/09-challenge-bypass-dep-aslr-libc/README.md (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/09-challenge-bypass-dep-aslr-libc/sol/exploit3.py (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/09-challenge-bypass-dep-aslr-libc/sol/vuln.c (100%) rename {bypassing-mitigations => chapters/mitigations-and-defensive-strategies/bypassing-mitigations}/activities/09-challenge-bypass-dep-aslr-libc/src/vuln (100%) rename defense-mechanisms/index.md => chapters/mitigations-and-defensive-strategies/defense-mechanisms/README.md (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/01-rwslotmachine1/sol/rwslotmachine1.c (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/01-rwslotmachine1/sol/sol_no_nx.py (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/01-rwslotmachine1/src/ld-linux.so.2 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/01-rwslotmachine1/src/libc.so.6 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/01-rwslotmachine1/src/rwslotmachine1 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/02-rwslotmachine2/sol/rwslotmachine2.c (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/02-rwslotmachine2/sol/sol_got_overwrite.py (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/02-rwslotmachine2/src/ld-linux.so.2 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/02-rwslotmachine2/src/libc.so.6 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/02-rwslotmachine2/src/rwslotmachine2 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/03-rwslotmachine3/sol/rwslotmachine3.c (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/03-rwslotmachine3/sol/sol_got_overwrite_2stage.py (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/03-rwslotmachine3/src/ld-linux.so.2 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/03-rwslotmachine3/src/libc.so.6 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/03-rwslotmachine3/src/rwslotmachine3 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/04-rwslotmachine4/sol/rwslotmachine4.c (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/04-rwslotmachine4/sol/sol_relro_bypass.py (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/04-rwslotmachine4/src/ld-linux.so.2 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/04-rwslotmachine4/src/libc.so.6 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/04-rwslotmachine4/src/libint.so (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/04-rwslotmachine4/src/rwslotmachine4 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/05-rwslotmachine5/sol/rwslotmachine5.c (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/05-rwslotmachine5/sol/sol_seccomp.py (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/05-rwslotmachine5/src/ld-linux.so.2 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/05-rwslotmachine5/src/libc.so.6 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/05-rwslotmachine5/src/rwslotmachine5 (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/common/ld-2.27.so (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/common/libc-2.27.so (100%) rename {defense-mechanisms => chapters/mitigations-and-defensive-strategies/defense-mechanisms}/activities/common/skel.py (100%) rename information-leaks/index.md => chapters/mitigations-and-defensive-strategies/information-leaks/README.md (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/00-tutorial-snippets/canary.gdb (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/00-tutorial-snippets/ssp.c (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/01-challenge-mycanary/sol/exploit.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/01-challenge-mycanary/sol/exploit_local.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/01-challenge-mycanary/sol/mycanary.c (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/01-challenge-mycanary/src/mycanary (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/02-challenge-bulletproof/sol/bulletproof.c (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/02-challenge-bulletproof/sol/exploit.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/02-challenge-bulletproof/src/bulletproof (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format1/sol/exploit_format0.sh (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format1/sol/exploit_format1.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format1/sol/exploit_format2.sh (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format1/sol/exploit_format3.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format1/sol/exploit_format4.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format1/sol/helper_format1.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format1/src/Makefile (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format1/src/format1 (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format1/src/format1.c (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format2/sol/exploit_format0.sh (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format2/sol/exploit_format1.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format2/sol/exploit_format2.sh (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format2/sol/exploit_format3.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format2/sol/exploit_format4.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format2/sol/helper_format1.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format2/src/Makefile (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format2/src/format2 (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format2/src/format2.c (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format3/sol/exploit_format0.sh (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format3/sol/exploit_format1.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format3/sol/exploit_format2.sh (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format3/sol/exploit_format3.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format3/sol/exploit_format4.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format3/sol/helper_format1.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format3/src/Makefile (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format3/src/format3 (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format3/src/format3.c (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format4/sol/exploit_format0.sh (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format4/sol/exploit_format1.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format4/sol/exploit_format2.sh (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format4/sol/exploit_format3.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format4/sol/exploit_format4.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format4/sol/helper_format1.py (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format4/src/Makefile (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format4/src/format4 (100%) rename {information-leaks => chapters/mitigations-and-defensive-strategies/information-leaks}/activities/03-challenge-format-strings/format4/src/format4.c (100%) create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/Makefile create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/css/highlight/base16/zenburn.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/reset.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/reveal.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/reveal.esm.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/reveal.esm.js.map create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/reveal.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/reveal.js.map create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/beige.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/black-contrast.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/black.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/blood.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/dracula.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/league-gothic/LICENSE create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/league-gothic/league-gothic.css create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/league-gothic/league-gothic.eot create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/league-gothic/league-gothic.ttf create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/league-gothic/league-gothic.woff create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/LICENSE create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.eot create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.ttf create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-italic.woff create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.eot create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.ttf create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-regular.woff create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.eot create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.ttf create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibold.woff create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.eot create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro-semibolditalic.woff create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/fonts/source-sans-pro/source-sans-pro.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/league.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/moon.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/night.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/serif.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/simple.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/sky.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/solarized.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/white-contrast.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/white.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/dist/theme/white_contrast_compact_verbatim_headers.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/favicon.ico create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/index.html create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/highlight/highlight.esm.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/highlight/highlight.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/highlight/monokai.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/highlight/plugin.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/highlight/zenburn.css create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/markdown/markdown.esm.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/markdown/markdown.js create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/markdown/plugin.js create mode 100755 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/math/katex.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/math/math.esm.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/math/math.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/math/mathjax2.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/math/mathjax3.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/math/plugin.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/notes/notes.esm.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/notes/notes.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/notes/plugin.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/notes/speaker-view.html create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/search/plugin.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/search/search.esm.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/search/search.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/zoom/plugin.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/zoom/zoom.esm.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/plugin/zoom/zoom.js create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/_site/slides.html create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/mitigations-and-defensive-strategies.md create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/slides.md create mode 100644 chapters/mitigations-and-defensive-strategies/overview/slides/slides.mdpp create mode 100644 common/makefile/defs.mk create mode 100644 common/makefile/linux.mk create mode 100644 common/makefile/linux/d/defs.mk create mode 100644 common/makefile/multiple.mk create mode 100644 common/makefile/single.mk create mode 100644 common/makefile/slides.mk create mode 100644 common/test/c/.gitignore create mode 100644 common/test/c/Makefile create mode 100644 common/test/c/open.c create mode 100644 common/test/c/sock/.gitignore create mode 100644 common/test/c/sock/Makefile create mode 100644 common/test/c/sock/README.md create mode 100644 common/test/c/sock/http_reply_once.c create mode 100644 common/test/slides/.gitignore create mode 100644 common/test/slides/Makefile create mode 100644 common/test/slides/file1.mdpp create mode 100644 common/test/slides/file2.mdpp create mode 100644 common/test/slides/file3.mdpp create mode 100644 common/test/slides/media/.gitignore create mode 100644 common/test/slides/media/block/block-1.svg create mode 100644 common/test/slides/media/block/block-2.svg create mode 100644 common/utils/log/CPPLINT.cfg create mode 100644 common/utils/log/log.c create mode 100644 common/utils/log/log.h create mode 100644 common/utils/sock/sock_util.c create mode 100644 common/utils/sock/sock_util.h create mode 100644 common/utils/utils.h create mode 100644 config.yaml diff --git a/.github/workflows/linting.yml b/.github/workflows/actions.yml similarity index 61% rename from .github/workflows/linting.yml rename to .github/workflows/actions.yml index 4eff2b4..b66a7f7 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/actions.yml @@ -1,4 +1,4 @@ -name: Linting Workflow +name: Linter Actions Workflow on: pull_request: @@ -10,8 +10,8 @@ jobs: name: Checkpatch runs-on: ubuntu-latest steps: - - name: 📥 Checkpatch - uses: security-summer-school/actions/checkpatch@main + - name: Checkpatch + uses: open-education-hub/actions/checkpatch@main with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -19,8 +19,8 @@ jobs: name: Super Linter runs-on: ubuntu-latest steps: - - name: 📥 Super Linter - uses: security-summer-school/actions/super-linter@main + - name: Super Linter + uses: open-education-hub/actions/super-linter@main with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -28,7 +28,7 @@ jobs: name: Spellcheck runs-on: ubuntu-latest steps: - - name: 📥 Spellcheck - uses: security-summer-school/actions/spellcheck@main + - name: Spellcheck + uses: open-education-hub/actions/spellcheck@main with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 0000000..da43fdf --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,54 @@ +name: Binary Security - Github Page + +on: + push: + branches: + - main # Set a branch to deploy + +jobs: + deploy: + name: Deploy to GitHub Pages + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v2 + with: + path: ./repo + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: ./repo + file: ./repo/Dockerfile + push: false + load: true + tags: binary-security/docusaurus:latest + cache-from: type=gha + cache-to: type=gha + + - name: Load image + run: | + mkdir output + docker image list + docker run -v $GITHUB_WORKSPACE/repo:/content -v $GITHUB_WORKSPACE/output:/output binary-security/docusaurus:latest + + # Popular action to deploy to GitHub Pages: + # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + # Build output to publish to the `gh-pages` branch: + publish_dir: ./output + # The following lines assign commit authorship to the official + # GH-Actions bot for deploys to `gh-pages` branch: + # https://github.com/actions/checkout/issues/13#issuecomment-724415212 + # The GH actions bot is used by default if you didn't specify the two fields. + # You can swap them out with your own user credentials. + user_name: "github-actions[bot]" + user_email: "github-actions[bot]@users.noreply.github.com" + publish_branch: gh-pages diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 6b75389..3c20656 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,8 +1,8 @@ -name: Labeler Workflow +name: Labeler Actions Workflow on: schedule: - - cron: "0 */12 * * *" + - cron: "0 */12 * * *" workflow_dispatch: jobs: @@ -11,6 +11,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Labeler - uses: security-summer-school/actions/cron-labeler@main + uses: open-education-hub/actions/cron-labeler@main with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/push-updates.yml b/.github/workflows/push-updates.yml deleted file mode 100644 index 5f2dee3..0000000 --- a/.github/workflows/push-updates.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Sync parent repo with submodule - -on: - push: - branches: - - master - -jobs: - update: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - with: - repository: security-summer-school/security-summer-school.github.io - token: ${{ secrets.BINARY_PRIVATE_TOKEN }} - - - name: Pull and update submodule recursively - run: | - git submodule update --init --recursive - git submodule update --remote --recursive -- content/en/binary/ - - - name: Commit - run: | - git config user.email "binary-updater@github.com" - git config user.name "Binary Track Updater" - git add content/en/binary/ - git commit -m "binary: Update track submodule" || echo "No changes to commit" - git push - diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c2263dd..dbbda0e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,10 +1,71 @@ -# Contributing to the Binary Security Track +# Contributing -We welcome contributions to the content and source code of the Binary Security Track. -You may contribute by: +These are recommendations when contributing to the contents of this repository. +They consider contributions to both actual content (mostly Markdown) and support code (demo, lab activities) made via Git. -- opening [issues](https://github.com/security-summer-school/binary/issues) -- taking part in [discussions](https://github.com/security-summer-school/binary/discussions) -- creating [pull requests](https://github.com/security-summer-school/binary/pulls) to update the content +## First Steps -Before you make any contribution, make sure it follows the [community guide](https://github.com/security-summer-school/meta/blob/master/docs/contributing.md). +Some good first steps and best practices when using Git are explained here: +* the Git Immersion tutorial: https://gitimmersion.com/ +* the Atlassian tutorial: https://www.atlassian.com/git/tutorials/learn-git-with-bitbucket-cloud +* this blog post on the ROSEdu Techblog: https://techblog.rosedu.org/git-good-practices.html + +## Language + +All of our content is developed in English. +This means we use English for content, support code, commit messages, pull requests, issues, comments, everything. + +## Content Writing Style + +This section addresses the development of session content and other Markdown files. + +Write each sentence on a new line. +This way, changing one sentence only affects one line in the source code. + +Use the **first person plural** when writing documentation and tutorials. +Use phrases like "we run the command / app", "we look at the source code", "we find the flag". + +Use the second person for challenges and other individual activities. +Use phrases like "find the flag", "run this command", "download the tool". + +## Images + +Images and diagrams would ideally be animated on slides. +Aim to use reveal.js features to animate drawing of diagrams. + +If reveal.js drawing is difficult, use [draw.io](https://app.diagrams.net/) to create diagrams. +Ideally you would "animate" those diagrams by creating multiple incremental versions of the diagram and adding each to a slide; +when browsing slides pieces of these diagrams will "appear" and complete the final image, rendering an animation-like effect. + +For text where no animation is required, use diagrams / images created with [draw.io](https://app.diagrams.net/). +If using external images / diagram, make sure they use a CC BY-SA license and give credits (mention author and / or add link to the image source). + +## Issues + +When opening an issue, please clearly state the problem. +Make sure it's reproducible. +Add images if required. +Also, if relevant, detail the environment you used (OS, software versions). +Ideally, if the issue is something you could fix, open a pull request with the fix. + +## Discussions + +Use GitHub discussions for bringing up ideas on content, new chapters, new sections. +Provide support to others asking questions and take part in suggestions brought by others. +Please be civil when taking part in discussions. + +## Pull Requests + +For pull requests, please follow the [GitHub flow](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork): create a fork of the repository, create your own branch, do commits, push changes to your branch, do a pull request (PR). +The destination branch of pull requests is the default `master` branch. + +Make sure each commit corresponds to **one** code / content change only. +If there are multiple commits belonging to a given change, please squash the commits. + +Also make sure one pull request covers only **one** topic. + +Use commit messages with verbs at imperative mood: "Add README", "Update contents", "Introduce feature". +Prefix each commit message with the chapter it belongs to: `software-stack`, `data`, `compute`, `io`, `app-interact`. +How a good commit message should look like: https://cbea.ms/git-commit/ + +The use of `-s` / `--signoff` when creating a commit is optional, but strongly recommended. diff --git a/COPYING.md b/COPYING.md index c86cac0..57f3c19 100644 --- a/COPYING.md +++ b/COPYING.md @@ -1,13 +1,13 @@ # License -This repository consists of actual content (Markdown files, slides) and support code (for challenges and activities and for automation and deployment). -Unless otherwise stated, actual content is licensed under the [Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license](https://creativecommons.org/licenses/by-sa/4.0/). +The content of this repository is dual-licensed. +Unless otherwise stated, text content and slides are licensed under the [Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license](https://creativecommons.org/licenses/by-sa/4.0/). Unless otherwise stated, support code is licensed under the [3-Clause BSD license](https://opensource.org/licenses/BSD-3-Clause) (SPDX short identifier: BSD-3-Clause). A copy of each license is below. Copy of CC BY-SA 4.0: -```markdown +``` Attribution-NonCommercial-ShareAlike 4.0 International ======================================================================= @@ -43,7 +43,7 @@ exhaustive, and do not form part of our licenses. material not subject to the license. This includes other CC- licensed material, or material used under an exception or limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors + wiki.creativecommons.org/Considerations_for_licensors Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the @@ -59,8 +59,8 @@ exhaustive, and do not form part of our licenses. such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees + for the public: + wiki.creativecommons.org/Considerations_for_licensees ======================================================================= @@ -77,88 +77,90 @@ Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. + Section 1 -- Definitions. -a. Adapted Material means material subject to Copyright and Similar -Rights that is derived from or based upon the Licensed Material -and in which the Licensed Material is translated, altered, -arranged, transformed, or otherwise modified in a manner requiring -permission under the Copyright and Similar Rights held by the -Licensor. For purposes of this Public License, where the Licensed -Material is a musical work, performance, or sound recording, -Adapted Material is always produced where the Licensed Material is -synched in timed relation with a moving image. - -b. Adapter's License means the license You apply to Your Copyright -and Similar Rights in Your contributions to Adapted Material in -accordance with the terms and conditions of this Public License. - -c. BY-NC-SA Compatible License means a license listed at -creativecommons.org/compatiblelicenses, approved by Creative -Commons as essentially the equivalent of this Public License. - -d. Copyright and Similar Rights means copyright and/or similar rights -closely related to copyright including, without limitation, -performance, broadcast, sound recording, and Sui Generis Database -Rights, without regard to how the rights are labeled or -categorized. For purposes of this Public License, the rights -specified in Section 2(b)(1)-(2) are not Copyright and Similar -Rights. - -e. Effective Technological Measures means those measures that, in the -absence of proper authority, may not be circumvented under laws -fulfilling obligations under Article 11 of the WIPO Copyright -Treaty adopted on December 20, 1996, and/or similar international -agreements. - -f. Exceptions and Limitations means fair use, fair dealing, and/or -any other exception or limitation to Copyright and Similar Rights -that applies to Your use of the Licensed Material. - -g. License Elements means the license attributes listed in the name -of a Creative Commons Public License. The License Elements of this -Public License are Attribution, NonCommercial, and ShareAlike. - -h. Licensed Material means the artistic or literary work, database, -or other material to which the Licensor applied this Public -License. - -i. Licensed Rights means the rights granted to You subject to the -terms and conditions of this Public License, which are limited to -all Copyright and Similar Rights that apply to Your use of the -Licensed Material and that the Licensor has authority to license. - -j. Licensor means the individual(s) or entity(ies) granting rights -under this Public License. - -k. NonCommercial means not primarily intended for or directed towards -commercial advantage or monetary compensation. For purposes of -this Public License, the exchange of the Licensed Material for -other material subject to Copyright and Similar Rights by digital -file-sharing or similar means is NonCommercial provided there is -no payment of monetary compensation in connection with the -exchange. - -l. Share means to provide material to the public by any means or -process that requires permission under the Licensed Rights, such -as reproduction, public display, public performance, distribution, -dissemination, communication, or importation, and to make material -available to the public including in ways that members of the -public may access the material from a place and at a time -individually chosen by them. - -m. Sui Generis Database Rights means rights other than copyright -resulting from Directive 96/9/EC of the European Parliament and of -the Council of 11 March 1996 on the legal protection of databases, -as amended and/or succeeded, as well as other essentially -equivalent rights anywhere in the world. - -n. You means the individual or entity exercising the Licensed Rights -under this Public License. Your has a corresponding meaning. + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. BY-NC-SA Compatible License means a license listed at + creativecommons.org/compatiblelicenses, approved by Creative + Commons as essentially the equivalent of this Public License. + + d. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + e. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + f. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + g. License Elements means the license attributes listed in the name + of a Creative Commons Public License. The License Elements of this + Public License are Attribution, NonCommercial, and ShareAlike. + + h. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + i. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + j. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + k. NonCommercial means not primarily intended for or directed towards + commercial advantage or monetary compensation. For purposes of + this Public License, the exchange of the Licensed Material for + other material subject to Copyright and Similar Rights by digital + file-sharing or similar means is NonCommercial provided there is + no payment of monetary compensation in connection with the + exchange. + + l. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + m. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + n. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + Section 2 -- Scope. -a. License grant. + a. License grant. 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, @@ -219,7 +221,7 @@ a. License grant. the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). -b. Other rights. + b. Other rights. 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, @@ -241,12 +243,13 @@ b. Other rights. the Licensed Material is used other than for NonCommercial purposes. + Section 3 -- License Conditions. Your exercise of the Licensed Rights is expressly made subject to the following conditions. -a. Attribution. + a. Attribution. 1. If You Share the Licensed Material (including in modified form), You must: @@ -287,7 +290,7 @@ a. Attribution. information required by Section 3(a)(1)(A) to the extent reasonably practicable. -b. ShareAlike. + b. ShareAlike. In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply. @@ -306,66 +309,69 @@ b. ShareAlike. Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply. + Section 4 -- Sui Generis Database Rights. Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: -a. for the avoidance of doubt, Section 2(a)(1) grants You the right -to extract, reuse, reproduce, and Share all or a substantial -portion of the contents of the database for NonCommercial purposes -only; + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database for NonCommercial purposes + only; -b. if You include all or a substantial portion of the database -contents in a database in which You have Sui Generis Database -Rights, then the database in which You have Sui Generis Database -Rights (but not its individual contents) is Adapted Material, -including for purposes of Section 3(b); and + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material, + including for purposes of Section 3(b); and -c. You must comply with the conditions in Section 3(a) if You Share -all or a substantial portion of the contents of the database. + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. + Section 5 -- Disclaimer of Warranties and Limitation of Liability. -a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE -EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS -AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF -ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, -IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, -WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, -ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT -KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT -ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - -b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE -TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, -NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, -INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, -COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR -USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN -ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR -DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR -IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - -c. The disclaimer of warranties and limitation of liability provided -above shall be interpreted in a manner that, to the extent -possible, most closely approximates an absolute disclaimer and -waiver of all liability. + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + Section 6 -- Term and Termination. -a. This Public License applies for the term of the Copyright and -Similar Rights licensed here. However, if You fail to comply with -this Public License, then Your rights under this Public License -terminate automatically. + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. -b. Where Your right to use the Licensed Material has terminated under -Section 6(a), it reinstates: + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the @@ -377,45 +383,47 @@ Section 6(a), it reinstates: right the Licensor may have to seek remedies for Your violations of this Public License. -c. For the avoidance of doubt, the Licensor may also offer the -Licensed Material under separate terms or conditions or stop -distributing the Licensed Material at any time; however, doing so -will not terminate this Public License. + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. -d. Sections 1, 5, 6, 7, and 8 survive termination of this Public -License. Section 7 -- Other Terms and Conditions. -a. The Licensor shall not be bound by any additional or different -terms or conditions communicated by You unless expressly agreed. + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. -b. Any arrangements, understandings, or agreements regarding the -Licensed Material not stated herein are separate from and -independent of the terms and conditions of this Public License. Section 8 -- Interpretation. -a. For the avoidance of doubt, this Public License does not, and -shall not be interpreted to, reduce, limit, restrict, or impose -conditions on any use of the Licensed Material that could lawfully -be made without permission under this Public License. + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. -b. To the extent possible, if any provision of this Public License is -deemed unenforceable, it shall be automatically reformed to the -minimum extent necessary to make it enforceable. If the provision -cannot be reformed, it shall be severed from this Public License -without affecting the enforceability of the remaining terms and -conditions. + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. -c. No term or condition of this Public License will be waived and no -failure to comply consented to unless expressly agreed to by the -Licensor. + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. -d. Nothing in this Public License constitutes or may be interpreted -as a limitation upon, or waiver of, any privileges and immunities -that apply to the Licensor or You, including from the legal -processes of any jurisdiction or authority. + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. ======================================================================= @@ -441,7 +449,7 @@ Creative Commons may be contacted at creativecommons.org. Copy of BSD-3-Clause: -```markdown +``` Copyright 2021 University POLITEHNICA of Bucharest Redistribution and use in source and binary forms, with or without diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b942996 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM ghcr.io/open-education-hub/openedu-builder:0.5.1 + +# Install tools. +RUN apt-get update && \ + apt-get install -yqq ffmpeg curl make + +# Install MarkdownPP using pip. +RUN pip install MarkdownPP + +# Install node LTS (16) +RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \ + apt-get update && \ + apt-get install -yqq nodejs + +# Install reveal-md using npm. +RUN npm install -g reveal-md + +# Install Docusaurus. +RUN npm install create-docusaurus@2.1.0 + +WORKDIR /content + +ENTRYPOINT ["oe_builder"] diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7822fd2 --- /dev/null +++ b/Makefile @@ -0,0 +1,41 @@ +REPO_NAME = binary-security +IMAGE_NAME = $(REPO_NAME)/docusaurus:latest +CONTAINER_NAME = open-edu-hub-$(REPO_NAME)-bash +OUTPUT_DIR = $$PWD/.output/$(REPO_NAME) + +.PHONY: all buildimg build serve run_bash enter_bash stop_bash clean cleanall + +all: build + +buildimg: + docker build -f ./Dockerfile --tag $(IMAGE_NAME) . + +build: buildimg + @echo "Building content. This will take a while (several minutes) ..." + @echo "After the build, run" + @echo "" + @echo " make serve" + @echo "" + @mkdir -p $(OUTPUT_DIR) + docker run --rm -v $$PWD/:/content -v $(OUTPUT_DIR):/output $(IMAGE_NAME) + +serve: + @echo "Point your browser to http://localhost:8080/$(REPO_NAME)" + @cd $(OUTPUT_DIR)/.. && python3 -m http.server 8080 + +run_bash: buildimg + @mkdir -p $(OUTPUT_DIR) + docker run -d -it --entrypoint /bin/bash --name $(CONTAINER_NAME) -v $$PWD/:/content -v $(OUTPUT_DIR):/output $(IMAGE_NAME) + +enter_bash: + docker exec -it $(CONTAINER_NAME) /bin/bash + +stop_bash: + -test "$(shell docker container inspect -f '{{.State.Running}}' $(CONTAINER_NAME) 2> /dev/null)" = "true" && docker stop $(CONTAINER_NAME) + +clean: stop_bash + -docker container inspect $(CONTAINER_NAME) > /dev/null 2>&1 && docker rm $(CONTAINER_NAME) + -sudo rm -fr $(OUTPUT_DIR) + +cleanall: clean + -docker inspect --type=image $(IMAGE_NAME) > /dev/null 2>&1 && docker image rm $(IMAGE_NAME) diff --git a/README.md b/README.md new file mode 100644 index 0000000..5eaa188 --- /dev/null +++ b/README.md @@ -0,0 +1,111 @@ +# Binary Security + +These are open educational resources ([OER](https://en.wikipedia.org/wiki/Open_educational_resources)). +The repository should be used as a template for the your own classes. + +## Using the Content + +Content is located in the `content/` folder. + +Each chapter has its own folder. +Content for each chapter is split in two subfolders: + +- `lecture/`: content to be presented and discussed as part of lectures / presentations +- `practice/`: content to be worked on as practical activities + +Lecture content is expected to be presented and followed. +Practice content is expected to be used hands-on individually or as part of team. + +## Publishing Workflow + +Before building the repository you have to set up the following items: + +- Select the GitHub Pages branch by following the [Configuring a publishing source for your GitHub Pages site](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site) tutorial. + You will have to set up the `gh-pages` branch as the publishing branch. +- Add a publishing key named `ACCESS_TOKEN` by following the [Automatic token authentication](https://docs.github.com/en/actions/security-guides/automatic-token-authentication) tutorial. + +In order to publish the content of this repository, we use a GitHub workflow located in `.github/workflows/deployment.yml`. +This workflow will build the site using [Docusaurus](https://docusaurus.io/) and publish the contents to a link similar to `.github.io`. + +## Your first TODOs + +To configure this repo for the class for which you intend to develop content, you must make the following changes: + +- Change the repository name to match your class name (the default name is `oer-template`). +- In `config.yaml`: + - Change `title` to you class name. + - Change `url` to `.github.io`. + - Change `baseurl` to `/` if the repository is the only one with a GitHub page in your profile. + Otherwise, change it to `//`. + - Change links to social media sites, if applicable. + +## Running Locally + +When testing locally, you will have to build the container that will run the builder based on the [`Dockerfile`](Dockerfile). +For this, the simplest way is the use the [`Makefile`](Makefile). +First, edit the `Makefile` and update the `REPO_NAME` variable to the preferred name of your future website. + +To generate the web contents locally, run: + +```console +make +``` + +To view the local contents, start a web server by running the command: + +```console +make serve +``` + +As the output of the command tells, point your browser to `http://localhost:8080/$REPO_NAME`, where `$REPO_NAME` is the name of the repository you configured in the [`Makefile`](Makefile).. + +## Chapter Contents + +### Lecture + +Lecture content consists of slides, demos, media files and quizzes in the `lecture/` subfolder of each chapter. + +Slides are written in [GitHub Markdown](https://guides.github.com/features/mastering-markdown/) and use [reveal-md](https://github.com/webpro/reveal-md) and [reveal.js](https://revealjs.com/) to render HTML output. +Building slides requires [MarkdownPP](https://github.com/amyreese/markdown-pp). +Lecture slides are built from the `slides.mdpp` file using the `make` command (and the `Makefile`). +`slides.mdpp` is a wrapper / index file; +actual content is stored in Markdown format in files in the `slides/` subfolder. +Output is generated in the `_site/` subfolder; +open the `_site/index.html` in a browser to view the slides. + +Demos are snippets of code and support files that showcase concepts and ideas related to the lecture. +Demos are located in the `demo/` subfolder. +Each demo has its own folder with source code, `Makefile` or other build files (if required) and support files. + +Media files are images and films used in slides for visual support. +Media files are located in the `media/` subfolder. + +Quizzes are used in slides to trigger interactivity with participants and as a form of (self-)assessment. +Quizzes are located in the `quiz/` subfolder. +Quiz questions are stored in [Markdown format](https://guides.github.com/features/mastering-markdown/), one file per quiz. + +### Practice + +Practice content consists of background text, media files, support files and quizzes in the `practice/` subfolder of each chapter. + +Background text is located in `content/` folder as a series of sections. +Each section consists of general information, tutorial information followed by description of actual work items and a quiz. +Sections are indexed in the `README.md` file. + +Support files for work items are stored in the `support/` subfolder. +There is a subfolder for each section. +Each section subfolder contains source code, `Makefile` (or other build files, if required) and support files. + +Media files are images and films used in text for visual support. +Media files are located in the `media/` subfolder. + +Quizzes are referenced at the end of each section as a form of (self-)assessment. +Quizzes are located in the `quiz/` subfolder. +Quiz questions are stored in [Markdown format](https://guides.github.com/features/mastering-markdown/), one file per quiz. + +## Contributing + +Contributions are welcome. +See the [contribution guide](CONTRIBUTING.md) on how you could report or fix issues and on how you can improve the content. + +Reviewers are requested to follow the [reviewing guide](REVIEWING.md). diff --git a/REVIEWING.md b/REVIEWING.md index e6bd2be..91e61c4 100644 --- a/REVIEWING.md +++ b/REVIEWING.md @@ -1,9 +1,19 @@ -# SSS Reviewer Guidelines +# Reviewing Contributions -These are recommendations for reviewing contributions to SSS repositories. +These are recommendations when reviewing contributions to this repository. +Contributions will mostly take the form of GitHub pull requests (PRs), issues and discussions are expected as well. Reviewing is important to ensure high quality and consistency of content. As a reviewer, we trust you will vet contributions and provide constructive suggestions to update them to fit the SSS guidelines. +When reviewing contributions, please be civil and welcoming towards contributors. +Contributions may not be in the best shape initially, but we appreciate time and effort spent in doing this. + +If a contribution is OK, please approve it. +In case of a reviewed and approved PR, the assignee will then `Rebase and merge` the PR. + +If a contribution needs work, please make the appropriate comments. +For a PR use discussion comments, or comments on the code / text, or directly [suggest changes](https://thenextweb.com/news/github-launches-suggested-changes-to-make-it-easier-to-collaborate-within-pull-requests). + ## Activities / Challenges Make sure that activities / challenges are of good quality: diff --git a/_index.md b/_index.md deleted file mode 100644 index 33ea74d..0000000 --- a/_index.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -linkTitle: Binary Exploitation -type: docs -menu: - main: - weight: 20 ---- - -# Security Summer School: Exploit Track - -Welcome to the Binary Exploit Track of the Security Summer School at University POLITEHNICA of Bucharest (UPB). - -The Table Of Contents is: - -1. [Exploration Tools](exploration-tools/) -1. [Executables And Processes](executables-and-processes/) -1. [Static Analysis](static-analysis/) -1. [Dynamic Analysis](dynamic-analysis/) -1. [Buffer Exploitation](buffer-exploitation/) -1. [Shellcodes](shellcodes/) -1. [Shellcodes Advanced](shellcodes-advanced/) -1. [Return Oriented Programming](return-oriented-programming/) -1. [Defense Mechanisms](defense-mechanisms/) -1. [Information Leaks](information-leaks/) -1. [Return Oriented Programming Advanced](return-oriented-programming-advanced/) -1. [Bypassing Mitigations](bypassing-mitigations/) diff --git a/chapters/README.md b/chapters/README.md new file mode 100644 index 0000000..83f01a1 --- /dev/null +++ b/chapters/README.md @@ -0,0 +1,9 @@ +--- +slug: / +--- + +# Intro + +This is a landing page for your course. + +Here you will add infomation about your course that a student might want to know at first glance. diff --git a/dynamic-analysis/activities/01-02-challenge-sppb/sol/solution.sh b/chapters/binary-analysis/dynamic-analysis/activities/01-02-challenge-sppb/sol/solution.sh similarity index 100% rename from dynamic-analysis/activities/01-02-challenge-sppb/sol/solution.sh rename to chapters/binary-analysis/dynamic-analysis/activities/01-02-challenge-sppb/sol/solution.sh diff --git a/dynamic-analysis/activities/01-02-challenge-sppb/sol/sppb.c b/chapters/binary-analysis/dynamic-analysis/activities/01-02-challenge-sppb/sol/sppb.c similarity index 100% rename from dynamic-analysis/activities/01-02-challenge-sppb/sol/sppb.c rename to chapters/binary-analysis/dynamic-analysis/activities/01-02-challenge-sppb/sol/sppb.c diff --git a/dynamic-analysis/activities/01-02-challenge-sppb/src/sppb b/chapters/binary-analysis/dynamic-analysis/activities/01-02-challenge-sppb/src/sppb similarity index 100% rename from dynamic-analysis/activities/01-02-challenge-sppb/src/sppb rename to chapters/binary-analysis/dynamic-analysis/activities/01-02-challenge-sppb/src/sppb diff --git a/chapters/binary-analysis/dynamic-analysis/activities/01-02-challenge-sppb/src/sppb.tar.gz b/chapters/binary-analysis/dynamic-analysis/activities/01-02-challenge-sppb/src/sppb.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4ca9c298862af6fd10fdb30d976e271bfcdfaa9a GIT binary patch literal 4272 zcmV;h5Kr$PiwFP!000001MOUUY#hgVpWWLdm*Vkwd{`naCf?YTLpiz^MUi^Z5}y(s zN}^>&mLkdPy}Lc$O2^&HKB!0BS_bqTKz(z7e|v9@;|5fUGE#ZWB6lypHLlTu3guXuk* z|9@2O9T^{G7^Z|-5+I1q&vASY_#Fdwd=C*wJ?SDhl8=!Ziou-(4!FA^0XmM@E&%RP zz>l8dcyuj*TO1wZI4Y19-OnHaI@FVhqX(Zr9nf862|*Y1>IJMM=)t`L5w9?n=|gdF z-{*LAoe;4GT#ciLtVk>9TS13z5iq(MQf|Xjz<&zrj&2z6utzuXD>JhX%HIcNqZ@~~ zagY9X&@a{3HBPg3gWg-ecOdQ^PyfX8N-CbuMDvPj9g7)StlQSLI(@rs=cmZeZoU6c zZ%UkseetP(c;~NL4}bmgSm&2HCx6D_5Qoo}#+HyeM^F3mCL$nS25$97&UAd`lfRs= zu5+g++zf6*6~3VgAN61yqHR_B?kc>c3P-B&C%`4LrZViAR1{&&60v;8l<2rs+lFg(kzq6$K>?1OpLrN7lQkeDTE>UwrY!7hi0-W9Bly_|FhHweWk`lAfNqS}Ydtn>X3w#hGXM0}I7<9PBEJ zt9ZB~zqkr_B{>YfehH|>Rk%CJq3-pI6yq)>hufRi=PAbBO0Es@GZf>lB_|+0PciOZ za$Sh$D8^k(4qyGeeiC5v&AVn_oq6r8i9Nd)Z=%(lfNGwdx%6_eIB|C7Bzm{+ePRBk za~wah_%Nh+=X6KsLUzvnH&+Td*sH{U-@(mRKVHnv?_jH-?JGYu`>UDDtvQUvZiu|J zaP}KFqcS_^h8)jMAH~b;4=ya;aN%8+x%ks7rtn>w*URP#npb4P&g^A7GxKKR=5w;Y z2Yc4CdHiA?TJU@j;}{@Llj`!`co>L>$zhV?VHdpkmG_IqnP)?DFD*bcj3xIaEC=+= zVKTA!MXHUwFmeUc<|3Hl0FC3$j$E0@-GUJh(Fp!DMkFwz-HtfSF5X~sK{azFeQz!8 zpEtIj-f`u-yDmSwbN0pG|I6&f3s>0LA6I<_!gyuVG zS|N-6LDjG5;dXzYgHTEB!IIdGSFi1y#UwrY!7hinw#g{)q!QY4RcglE5QR7CAOyp(BkcEP- zO)DAjCBrzX>6wiJSw(---mh7DDOOO7jl!x-OcZG8Uu~=*wVO9nxfl$KT(({aV zPV6SkJv_5A#BmQYwLHFL=m7T$B*1frW5n;Q4T9 z;Dsxr7uY)-5e`8Yk;)^f7_~MH%zWCycFTVUgmuJp#{7G=Q zuflV?A&i{k_y+J6AL00RVxQSwN$m63*Mo}y?r`wGyE} z_k*h^_FnBer##$ylX;HEbHnS2y?1Q_hx^PYW;hENTZKz6d_n z6}Fz*=nVHiI{Ay|-`#L8v~?8RUT|4()8Ot0_t;#Svu$W-qtG=hrxZyQl8IP%EE(-x z?SzExM0YZgOeW}7+dg(~Z%Drm-TD(xvH!@r8jiu^(4hyQAr@OnWU-^!pRPz^Uvafx z07`(ViBOLoj1I810z-A5w{>+iGPnkF=YooA5;lub@ii9a!3P5@dbMbsz>Z?n>l+ zTikjILOdQ}=QdCf;dfw~jTE%Sq9K<-d)Z z9nIJ;!~8`AI~(!c$0+|A(suEC!P~|^jGEgUvjDd9Q>fYB@EFj>`LCkpz>3d6+#dd) z5FBj32f#l50MZW8>Kx?XM9p1we*tOk<_}`s#AU0%%kZxvxSQ53$G?lT6#qF$lP4@5 ze+bsLKMh{pZq$4tyzDwO>flCLyrQBW2Mp^KO412b!}SAL_Sck_$KWq$@F?qWA91-K zhgclohMkz~p)e}K1t2qZL97iPFTvM4%o9HWP2-=SCRBqO_FREP)*|L=aPqF8EW$J~ ztHLeyf$++36VqH1foOI)34}M+Z>rx=KL&rwflg9ie=9JcElv>TO|TJyPzCgmRolV@ z!u9obG6o{xZdA@?Jy7e)*+K(b0BnXERXxLuwIDzAF*4Q?2USClC*hWMB!y$lmiBTa zR&;CIV}tFOuF*?p+hFd-NSR!sLTelFFO1-U7lwH++yGa`vGQT!mZ4K?mdSKFer$cO z*xO@UwL~XXE1pcm6*Zl=GBTk=2gFl~XE)%EK6lQyO$Wtzd5tHYcm(WmU6nainRdF_vm5ld7B% zpyoQ&L0Ly+oftVyH-(ZKZ`1A@Wl>6}<${TZJZ@gJF977V^bst}&cr}VAJwGAQ+pjT zo0leyZh~FCSIS$mJ2z-TlGoHpfnF-g#f;O?nDjLEu%!dYTT^OjAnZ|@rtQY&8nT_{ zsFIPzjATkst}e^EY>3p1$WqY?soPVWTMC^51ylD7Ih_!+FI-XzM$9TWrP2m@=rplg zT3#_AiI&f}wTkDoDLH;b$}90<**Icqg?L7Tj+&C-f^YX>4n(0GSy!ce+>i}J(NrUz zSQpJ4SEVT>9hE?F+)#|Tls1)V#Z+WaC!>k(C=6g826$4AVxPth9eR~k9NWCKpxqz( z0ms_!sS>uA1wSrfx(XtfOW0l(;JV4i)KZPEr)*5E_=vmS36NTf50sfPY^Oi(;zkPhm9TB?^<)V*Q5^cdi<|BCm2eBi zttD*#f^oHkoz>#JiR9#RMIz-zpE<0x;~e{|M{0(ep5yJQ2%RBd1!@LB<1m8V0^G*A&-6~Qyza@smHM5 z^Dcim83ugm5xYIjP~SZecx%qKVQgj_$kR-DJOvof!=4Vt+45PyuR8M&`RADOct?Q$ zcolyqQ=YHQY?#`zc6s>Utl~fG!2-CyL3>$;-^8vUmzYYM%imO`uV*W92jG)X{voHm zYpV3`f?HpzPaC-v^q1zG{(<)4G7|s(`keH*>?EG@53!Xtp(^X`k2Z3GEic$G{k_h< zVugdxRn_NdPkL7t!x&a zNEx_;Ps06M)+QZXy2?h{fR-94~lL>$>UEQ<8G>fyn|cX2_Y4euyBsG(l zuQegAvIX{JV;c`w}6!~@bHI4hy>4Y$kbHQVnM;@dqK<{b(VJ(Ii?K5 zX#`!_EU`AKFmm2nHc%GDJv)Y+aU?P0_!KN$z&CZ<&$%JG4k(bAs+n>O=5Q=!DfvuP z$v9C1gJV&gv{aXqj2wxjTM9@KVk!J@Ac@qnSzKNOgF}Tw4 zkLem6!sdxC&9|a zaG|1RwUR28(&cFv!C$oOhOvqNZNVof-n;O&LBDyx5a+3Gi+j67`-NJEN53t=RNB|O zzuotGc=%lXF=OACt9kfMg5MR38uD=cblJ%-=;5KmJ#D>{AFit+5O{{z-y>ig4z61E zlJfTgaJ@Cp+V8EZ+i@4TqEjxe!$u*|a!-FLWIVmD{%j?=L+(`mG7U{?0@-?;9Q- zt~;Lu-g@R*-uJ-a>J`VBetRNb*10@%KLpq4@NgXz`2gPEI&DQB{gy_&{2dLKhvV@J zr+&!8b?wy;$nP}|kFK9!vUDxMd(*?ibxl`-5Wb3s@>{2TcfPyhfO%xbg% literal 0 HcmV?d00001 diff --git a/dynamic-analysis/activities/03-challenge-domino/sol/domino.c b/chapters/binary-analysis/dynamic-analysis/activities/03-challenge-domino/sol/domino.c similarity index 100% rename from dynamic-analysis/activities/03-challenge-domino/sol/domino.c rename to chapters/binary-analysis/dynamic-analysis/activities/03-challenge-domino/sol/domino.c diff --git a/dynamic-analysis/activities/03-challenge-domino/sol/solution.sh b/chapters/binary-analysis/dynamic-analysis/activities/03-challenge-domino/sol/solution.sh similarity index 100% rename from dynamic-analysis/activities/03-challenge-domino/sol/solution.sh rename to chapters/binary-analysis/dynamic-analysis/activities/03-challenge-domino/sol/solution.sh diff --git a/dynamic-analysis/activities/03-challenge-domino/src/domino b/chapters/binary-analysis/dynamic-analysis/activities/03-challenge-domino/src/domino similarity index 100% rename from dynamic-analysis/activities/03-challenge-domino/src/domino rename to chapters/binary-analysis/dynamic-analysis/activities/03-challenge-domino/src/domino diff --git a/dynamic-analysis/activities/04-challenge-call-me/sol/README b/chapters/binary-analysis/dynamic-analysis/activities/04-challenge-call-me/sol/README similarity index 100% rename from dynamic-analysis/activities/04-challenge-call-me/sol/README rename to chapters/binary-analysis/dynamic-analysis/activities/04-challenge-call-me/sol/README diff --git a/dynamic-analysis/activities/04-challenge-call-me/sol/call_me.c b/chapters/binary-analysis/dynamic-analysis/activities/04-challenge-call-me/sol/call_me.c similarity index 100% rename from dynamic-analysis/activities/04-challenge-call-me/sol/call_me.c rename to chapters/binary-analysis/dynamic-analysis/activities/04-challenge-call-me/sol/call_me.c diff --git a/dynamic-analysis/activities/04-challenge-call-me/src/calc_offset.py b/chapters/binary-analysis/dynamic-analysis/activities/04-challenge-call-me/src/calc_offset.py similarity index 100% rename from dynamic-analysis/activities/04-challenge-call-me/src/calc_offset.py rename to chapters/binary-analysis/dynamic-analysis/activities/04-challenge-call-me/src/calc_offset.py diff --git a/dynamic-analysis/activities/04-challenge-call-me/src/call_me b/chapters/binary-analysis/dynamic-analysis/activities/04-challenge-call-me/src/call_me similarity index 100% rename from dynamic-analysis/activities/04-challenge-call-me/src/call_me rename to chapters/binary-analysis/dynamic-analysis/activities/04-challenge-call-me/src/call_me diff --git a/dynamic-analysis/activities/05-challenge-snooze-me/sol/gdb_history b/chapters/binary-analysis/dynamic-analysis/activities/05-challenge-snooze-me/sol/gdb_history similarity index 100% rename from dynamic-analysis/activities/05-challenge-snooze-me/sol/gdb_history rename to chapters/binary-analysis/dynamic-analysis/activities/05-challenge-snooze-me/sol/gdb_history diff --git a/dynamic-analysis/activities/05-challenge-snooze-me/sol/snooze_me.c b/chapters/binary-analysis/dynamic-analysis/activities/05-challenge-snooze-me/sol/snooze_me.c similarity index 100% rename from dynamic-analysis/activities/05-challenge-snooze-me/sol/snooze_me.c rename to chapters/binary-analysis/dynamic-analysis/activities/05-challenge-snooze-me/sol/snooze_me.c diff --git a/dynamic-analysis/activities/05-challenge-snooze-me/src/snooze_me b/chapters/binary-analysis/dynamic-analysis/activities/05-challenge-snooze-me/src/snooze_me similarity index 100% rename from dynamic-analysis/activities/05-challenge-snooze-me/src/snooze_me rename to chapters/binary-analysis/dynamic-analysis/activities/05-challenge-snooze-me/src/snooze_me diff --git a/dynamic-analysis/activities/06-challenge-phone-home/sol/encrypt.py b/chapters/binary-analysis/dynamic-analysis/activities/06-challenge-phone-home/sol/encrypt.py similarity index 100% rename from dynamic-analysis/activities/06-challenge-phone-home/sol/encrypt.py rename to chapters/binary-analysis/dynamic-analysis/activities/06-challenge-phone-home/sol/encrypt.py diff --git a/dynamic-analysis/activities/06-challenge-phone-home/sol/phone_home.c b/chapters/binary-analysis/dynamic-analysis/activities/06-challenge-phone-home/sol/phone_home.c similarity index 100% rename from dynamic-analysis/activities/06-challenge-phone-home/sol/phone_home.c rename to chapters/binary-analysis/dynamic-analysis/activities/06-challenge-phone-home/sol/phone_home.c diff --git a/dynamic-analysis/activities/06-challenge-phone-home/sol/solution-gdb.output b/chapters/binary-analysis/dynamic-analysis/activities/06-challenge-phone-home/sol/solution-gdb.output similarity index 100% rename from dynamic-analysis/activities/06-challenge-phone-home/sol/solution-gdb.output rename to chapters/binary-analysis/dynamic-analysis/activities/06-challenge-phone-home/sol/solution-gdb.output diff --git a/dynamic-analysis/activities/06-challenge-phone-home/src/phone_home b/chapters/binary-analysis/dynamic-analysis/activities/06-challenge-phone-home/src/phone_home similarity index 100% rename from dynamic-analysis/activities/06-challenge-phone-home/src/phone_home rename to chapters/binary-analysis/dynamic-analysis/activities/06-challenge-phone-home/src/phone_home diff --git a/dynamic-analysis/activities/07-challenge-chain-encoder/sol/base64.c b/chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/sol/base64.c similarity index 100% rename from dynamic-analysis/activities/07-challenge-chain-encoder/sol/base64.c rename to chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/sol/base64.c diff --git a/dynamic-analysis/activities/07-challenge-chain-encoder/sol/base64.h b/chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/sol/base64.h similarity index 100% rename from dynamic-analysis/activities/07-challenge-chain-encoder/sol/base64.h rename to chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/sol/base64.h diff --git a/dynamic-analysis/activities/07-challenge-chain-encoder/sol/main.c b/chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/sol/main.c similarity index 100% rename from dynamic-analysis/activities/07-challenge-chain-encoder/sol/main.c rename to chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/sol/main.c diff --git a/dynamic-analysis/activities/07-challenge-chain-encoder/sol/md5.c b/chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/sol/md5.c similarity index 100% rename from dynamic-analysis/activities/07-challenge-chain-encoder/sol/md5.c rename to chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/sol/md5.c diff --git a/dynamic-analysis/activities/07-challenge-chain-encoder/sol/md5.h b/chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/sol/md5.h similarity index 100% rename from dynamic-analysis/activities/07-challenge-chain-encoder/sol/md5.h rename to chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/sol/md5.h diff --git a/dynamic-analysis/activities/07-challenge-chain-encoder/sol/solution.sh b/chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/sol/solution.sh similarity index 100% rename from dynamic-analysis/activities/07-challenge-chain-encoder/sol/solution.sh rename to chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/sol/solution.sh diff --git a/dynamic-analysis/activities/07-challenge-chain-encoder/src/encoder b/chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/src/encoder similarity index 100% rename from dynamic-analysis/activities/07-challenge-chain-encoder/src/encoder rename to chapters/binary-analysis/dynamic-analysis/activities/07-challenge-chain-encoder/src/encoder diff --git a/dynamic-analysis/activities/08-challenge-cdkey/sol/RC4.c b/chapters/binary-analysis/dynamic-analysis/activities/08-challenge-cdkey/sol/RC4.c similarity index 100% rename from dynamic-analysis/activities/08-challenge-cdkey/sol/RC4.c rename to chapters/binary-analysis/dynamic-analysis/activities/08-challenge-cdkey/sol/RC4.c diff --git a/dynamic-analysis/activities/08-challenge-cdkey/sol/RC4.h b/chapters/binary-analysis/dynamic-analysis/activities/08-challenge-cdkey/sol/RC4.h similarity index 100% rename from dynamic-analysis/activities/08-challenge-cdkey/sol/RC4.h rename to chapters/binary-analysis/dynamic-analysis/activities/08-challenge-cdkey/sol/RC4.h diff --git a/dynamic-analysis/activities/08-challenge-cdkey/sol/main.c b/chapters/binary-analysis/dynamic-analysis/activities/08-challenge-cdkey/sol/main.c similarity index 100% rename from dynamic-analysis/activities/08-challenge-cdkey/sol/main.c rename to chapters/binary-analysis/dynamic-analysis/activities/08-challenge-cdkey/sol/main.c diff --git a/dynamic-analysis/activities/08-challenge-cdkey/sol/solution.sh b/chapters/binary-analysis/dynamic-analysis/activities/08-challenge-cdkey/sol/solution.sh similarity index 100% rename from dynamic-analysis/activities/08-challenge-cdkey/sol/solution.sh rename to chapters/binary-analysis/dynamic-analysis/activities/08-challenge-cdkey/sol/solution.sh diff --git a/dynamic-analysis/activities/08-challenge-cdkey/src/cdkey b/chapters/binary-analysis/dynamic-analysis/activities/08-challenge-cdkey/src/cdkey similarity index 100% rename from dynamic-analysis/activities/08-challenge-cdkey/src/cdkey rename to chapters/binary-analysis/dynamic-analysis/activities/08-challenge-cdkey/src/cdkey diff --git a/dynamic-analysis/index.md b/chapters/binary-analysis/dynamic-analysis/reading/README.md similarity index 100% rename from dynamic-analysis/index.md rename to chapters/binary-analysis/dynamic-analysis/reading/README.md diff --git a/chapters/binary-analysis/dynamic-analysis/slides/Makefile b/chapters/binary-analysis/dynamic-analysis/slides/Makefile new file mode 100644 index 0000000..7b467e5 --- /dev/null +++ b/chapters/binary-analysis/dynamic-analysis/slides/Makefile @@ -0,0 +1 @@ +include ../../../../common/makefile/slides.mk diff --git a/chapters/binary-analysis/dynamic-analysis/slides/_site/css/highlight/base16/zenburn.css b/chapters/binary-analysis/dynamic-analysis/slides/_site/css/highlight/base16/zenburn.css new file mode 100644 index 0000000..a075f5f --- /dev/null +++ b/chapters/binary-analysis/dynamic-analysis/slides/_site/css/highlight/base16/zenburn.css @@ -0,0 +1,7 @@ +/*! + Theme: Zenburn + Author: elnawe + License: ~ MIT (or more permissive) [via base16-schemes-source] + Maintainer: @highlightjs/core-team + Version: 2021.09.0 +*/pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#dcdccc;background:#383838}.hljs ::selection,.hljs::selection{background-color:#606060;color:#dcdccc}.hljs-comment{color:#6f6f6f}.hljs-tag{color:grey}.hljs-operator,.hljs-punctuation,.hljs-subst{color:#dcdccc}.hljs-operator{opacity:.7}.hljs-bullet,.hljs-deletion,.hljs-name,.hljs-selector-tag,.hljs-template-variable,.hljs-variable{color:#dca3a3}.hljs-attr,.hljs-link,.hljs-literal,.hljs-number,.hljs-symbol,.hljs-variable.constant_{color:#dfaf8f}.hljs-class .hljs-title,.hljs-title,.hljs-title.class_{color:#e0cf9f}.hljs-strong{font-weight:700;color:#e0cf9f}.hljs-addition,.hljs-code,.hljs-string,.hljs-title.class_.inherited__{color:#5f7f5f}.hljs-built_in,.hljs-doctag,.hljs-keyword.hljs-atrule,.hljs-quote,.hljs-regexp{color:#93e0e3}.hljs-attribute,.hljs-function .hljs-title,.hljs-section,.hljs-title.function_,.ruby .hljs-property{color:#7cb8bb}.diff .hljs-meta,.hljs-keyword,.hljs-template-tag,.hljs-type{color:#dc8cc3}.hljs-emphasis{color:#dc8cc3;font-style:italic}.hljs-meta,.hljs-meta .hljs-keyword,.hljs-meta .hljs-string{color:#000}.hljs-meta .hljs-keyword,.hljs-meta-keyword{font-weight:700} \ No newline at end of file diff --git a/chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reset.css b/chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reset.css new file mode 100644 index 0000000..e238539 --- /dev/null +++ b/chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reset.css @@ -0,0 +1,30 @@ +/* http://meyerweb.com/eric/tools/css/reset/ + v4.0 | 20180602 + License: none (public domain) +*/ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +main, menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, main, menu, nav, section { + display: block; +} \ No newline at end of file diff --git a/chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.css b/chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.css new file mode 100644 index 0000000..b722f5e --- /dev/null +++ b/chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.css @@ -0,0 +1,8 @@ +/*! +* reveal.js 4.5.0 +* https://revealjs.com +* MIT licensed +* +* Copyright (C) 2011-2023 Hakim El Hattab, https://hakim.se +*/ +.reveal .r-stretch,.reveal .stretch{max-width:none;max-height:none}.reveal pre.r-stretch code,.reveal pre.stretch code{height:100%;max-height:100%;box-sizing:border-box}.reveal .r-fit-text{display:inline-block;white-space:nowrap}.reveal .r-stack{display:grid}.reveal .r-stack>*{grid-area:1/1;margin:auto}.reveal .r-hstack,.reveal .r-vstack{display:flex}.reveal .r-hstack img,.reveal .r-hstack video,.reveal .r-vstack img,.reveal .r-vstack video{min-width:0;min-height:0;object-fit:contain}.reveal .r-vstack{flex-direction:column;align-items:center;justify-content:center}.reveal .r-hstack{flex-direction:row;align-items:center;justify-content:center}.reveal .items-stretch{align-items:stretch}.reveal .items-start{align-items:flex-start}.reveal .items-center{align-items:center}.reveal .items-end{align-items:flex-end}.reveal .justify-between{justify-content:space-between}.reveal .justify-around{justify-content:space-around}.reveal .justify-start{justify-content:flex-start}.reveal .justify-center{justify-content:center}.reveal .justify-end{justify-content:flex-end}html.reveal-full-page{width:100%;height:100%;height:100vh;height:calc(var(--vh,1vh) * 100);overflow:hidden}.reveal-viewport{height:100%;overflow:hidden;position:relative;line-height:1;margin:0;background-color:#fff;color:#000}.reveal-viewport:fullscreen{top:0!important;left:0!important;width:100%!important;height:100%!important;transform:none!important}.reveal .fragment{transition:all .2s ease}.reveal .fragment:not(.custom){opacity:0;visibility:hidden;will-change:opacity}.reveal .fragment.visible{opacity:1;visibility:inherit}.reveal .fragment.disabled{transition:none}.reveal .fragment.grow{opacity:1;visibility:inherit}.reveal .fragment.grow.visible{transform:scale(1.3)}.reveal .fragment.shrink{opacity:1;visibility:inherit}.reveal .fragment.shrink.visible{transform:scale(.7)}.reveal .fragment.zoom-in{transform:scale(.1)}.reveal .fragment.zoom-in.visible{transform:none}.reveal .fragment.fade-out{opacity:1;visibility:inherit}.reveal .fragment.fade-out.visible{opacity:0;visibility:hidden}.reveal .fragment.semi-fade-out{opacity:1;visibility:inherit}.reveal .fragment.semi-fade-out.visible{opacity:.5;visibility:inherit}.reveal .fragment.strike{opacity:1;visibility:inherit}.reveal .fragment.strike.visible{text-decoration:line-through}.reveal .fragment.fade-up{transform:translate(0,40px)}.reveal .fragment.fade-up.visible{transform:translate(0,0)}.reveal .fragment.fade-down{transform:translate(0,-40px)}.reveal .fragment.fade-down.visible{transform:translate(0,0)}.reveal .fragment.fade-right{transform:translate(-40px,0)}.reveal .fragment.fade-right.visible{transform:translate(0,0)}.reveal .fragment.fade-left{transform:translate(40px,0)}.reveal .fragment.fade-left.visible{transform:translate(0,0)}.reveal .fragment.current-visible,.reveal .fragment.fade-in-then-out{opacity:0;visibility:hidden}.reveal .fragment.current-visible.current-fragment,.reveal .fragment.fade-in-then-out.current-fragment{opacity:1;visibility:inherit}.reveal .fragment.fade-in-then-semi-out{opacity:0;visibility:hidden}.reveal .fragment.fade-in-then-semi-out.visible{opacity:.5;visibility:inherit}.reveal .fragment.fade-in-then-semi-out.current-fragment{opacity:1;visibility:inherit}.reveal .fragment.highlight-blue,.reveal .fragment.highlight-current-blue,.reveal .fragment.highlight-current-green,.reveal .fragment.highlight-current-red,.reveal .fragment.highlight-green,.reveal .fragment.highlight-red{opacity:1;visibility:inherit}.reveal .fragment.highlight-red.visible{color:#ff2c2d}.reveal .fragment.highlight-green.visible{color:#17ff2e}.reveal .fragment.highlight-blue.visible{color:#1b91ff}.reveal .fragment.highlight-current-red.current-fragment{color:#ff2c2d}.reveal .fragment.highlight-current-green.current-fragment{color:#17ff2e}.reveal .fragment.highlight-current-blue.current-fragment{color:#1b91ff}.reveal:after{content:"";font-style:italic}.reveal iframe{z-index:1}.reveal a{position:relative}@keyframes bounce-right{0%,10%,25%,40%,50%{transform:translateX(0)}20%{transform:translateX(10px)}30%{transform:translateX(-5px)}}@keyframes bounce-left{0%,10%,25%,40%,50%{transform:translateX(0)}20%{transform:translateX(-10px)}30%{transform:translateX(5px)}}@keyframes bounce-down{0%,10%,25%,40%,50%{transform:translateY(0)}20%{transform:translateY(10px)}30%{transform:translateY(-5px)}}.reveal .controls{display:none;position:absolute;top:auto;bottom:12px;right:12px;left:auto;z-index:11;color:#000;pointer-events:none;font-size:10px}.reveal .controls button{position:absolute;padding:0;background-color:transparent;border:0;outline:0;cursor:pointer;color:currentColor;transform:scale(.9999);transition:color .2s ease,opacity .2s ease,transform .2s ease;z-index:2;pointer-events:auto;font-size:inherit;visibility:hidden;opacity:0;-webkit-appearance:none;-webkit-tap-highlight-color:transparent}.reveal .controls .controls-arrow:after,.reveal .controls .controls-arrow:before{content:"";position:absolute;top:0;left:0;width:2.6em;height:.5em;border-radius:.25em;background-color:currentColor;transition:all .15s ease,background-color .8s ease;transform-origin:.2em 50%;will-change:transform}.reveal .controls .controls-arrow{position:relative;width:3.6em;height:3.6em}.reveal .controls .controls-arrow:before{transform:translateX(.5em) translateY(1.55em) rotate(45deg)}.reveal .controls .controls-arrow:after{transform:translateX(.5em) translateY(1.55em) rotate(-45deg)}.reveal .controls .controls-arrow:hover:before{transform:translateX(.5em) translateY(1.55em) rotate(40deg)}.reveal .controls .controls-arrow:hover:after{transform:translateX(.5em) translateY(1.55em) rotate(-40deg)}.reveal .controls .controls-arrow:active:before{transform:translateX(.5em) translateY(1.55em) rotate(36deg)}.reveal .controls .controls-arrow:active:after{transform:translateX(.5em) translateY(1.55em) rotate(-36deg)}.reveal .controls .navigate-left{right:6.4em;bottom:3.2em;transform:translateX(-10px)}.reveal .controls .navigate-left.highlight{animation:bounce-left 2s 50 both ease-out}.reveal .controls .navigate-right{right:0;bottom:3.2em;transform:translateX(10px)}.reveal .controls .navigate-right .controls-arrow{transform:rotate(180deg)}.reveal .controls .navigate-right.highlight{animation:bounce-right 2s 50 both ease-out}.reveal .controls .navigate-up{right:3.2em;bottom:6.4em;transform:translateY(-10px)}.reveal .controls .navigate-up .controls-arrow{transform:rotate(90deg)}.reveal .controls .navigate-down{right:3.2em;bottom:-1.4em;padding-bottom:1.4em;transform:translateY(10px)}.reveal .controls .navigate-down .controls-arrow{transform:rotate(-90deg)}.reveal .controls .navigate-down.highlight{animation:bounce-down 2s 50 both ease-out}.reveal .controls[data-controls-back-arrows=faded] .navigate-up.enabled{opacity:.3}.reveal .controls[data-controls-back-arrows=faded] .navigate-up.enabled:hover{opacity:1}.reveal .controls[data-controls-back-arrows=hidden] .navigate-up.enabled{opacity:0;visibility:hidden}.reveal .controls .enabled{visibility:visible;opacity:.9;cursor:pointer;transform:none}.reveal .controls .enabled.fragmented{opacity:.5}.reveal .controls .enabled.fragmented:hover,.reveal .controls .enabled:hover{opacity:1}.reveal:not(.rtl) .controls[data-controls-back-arrows=faded] .navigate-left.enabled{opacity:.3}.reveal:not(.rtl) .controls[data-controls-back-arrows=faded] .navigate-left.enabled:hover{opacity:1}.reveal:not(.rtl) .controls[data-controls-back-arrows=hidden] .navigate-left.enabled{opacity:0;visibility:hidden}.reveal.rtl .controls[data-controls-back-arrows=faded] .navigate-right.enabled{opacity:.3}.reveal.rtl .controls[data-controls-back-arrows=faded] .navigate-right.enabled:hover{opacity:1}.reveal.rtl .controls[data-controls-back-arrows=hidden] .navigate-right.enabled{opacity:0;visibility:hidden}.reveal[data-navigation-mode=linear].has-horizontal-slides .navigate-down,.reveal[data-navigation-mode=linear].has-horizontal-slides .navigate-up{display:none}.reveal:not(.has-vertical-slides) .controls .navigate-left,.reveal[data-navigation-mode=linear].has-horizontal-slides .navigate-left{bottom:1.4em;right:5.5em}.reveal:not(.has-vertical-slides) .controls .navigate-right,.reveal[data-navigation-mode=linear].has-horizontal-slides .navigate-right{bottom:1.4em;right:.5em}.reveal:not(.has-horizontal-slides) .controls .navigate-up{right:1.4em;bottom:5em}.reveal:not(.has-horizontal-slides) .controls .navigate-down{right:1.4em;bottom:.5em}.reveal.has-dark-background .controls{color:#fff}.reveal.has-light-background .controls{color:#000}.reveal.no-hover .controls .controls-arrow:active:before,.reveal.no-hover .controls .controls-arrow:hover:before{transform:translateX(.5em) translateY(1.55em) rotate(45deg)}.reveal.no-hover .controls .controls-arrow:active:after,.reveal.no-hover .controls .controls-arrow:hover:after{transform:translateX(.5em) translateY(1.55em) rotate(-45deg)}@media screen and (min-width:500px){.reveal .controls[data-controls-layout=edges]{top:0;right:0;bottom:0;left:0}.reveal .controls[data-controls-layout=edges] .navigate-down,.reveal .controls[data-controls-layout=edges] .navigate-left,.reveal .controls[data-controls-layout=edges] .navigate-right,.reveal .controls[data-controls-layout=edges] .navigate-up{bottom:auto;right:auto}.reveal .controls[data-controls-layout=edges] .navigate-left{top:50%;left:.8em;margin-top:-1.8em}.reveal .controls[data-controls-layout=edges] .navigate-right{top:50%;right:.8em;margin-top:-1.8em}.reveal .controls[data-controls-layout=edges] .navigate-up{top:.8em;left:50%;margin-left:-1.8em}.reveal .controls[data-controls-layout=edges] .navigate-down{bottom:-.3em;left:50%;margin-left:-1.8em}}.reveal .progress{position:absolute;display:none;height:3px;width:100%;bottom:0;left:0;z-index:10;background-color:rgba(0,0,0,.2);color:#fff}.reveal .progress:after{content:"";display:block;position:absolute;height:10px;width:100%;top:-10px}.reveal .progress span{display:block;height:100%;width:100%;background-color:currentColor;transition:transform .8s cubic-bezier(.26,.86,.44,.985);transform-origin:0 0;transform:scaleX(0)}.reveal .slide-number{position:absolute;display:block;right:8px;bottom:8px;z-index:31;font-family:Helvetica,sans-serif;font-size:12px;line-height:1;color:#fff;background-color:rgba(0,0,0,.4);padding:5px}.reveal .slide-number a{color:currentColor}.reveal .slide-number-delimiter{margin:0 3px}.reveal{position:relative;width:100%;height:100%;overflow:hidden;touch-action:pinch-zoom}.reveal.embedded{touch-action:pan-y}.reveal .slides{position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;margin:auto;pointer-events:none;overflow:visible;z-index:1;text-align:center;perspective:600px;perspective-origin:50% 40%}.reveal .slides>section{perspective:600px}.reveal .slides>section,.reveal .slides>section>section{display:none;position:absolute;width:100%;pointer-events:auto;z-index:10;transform-style:flat;transition:transform-origin .8s cubic-bezier(.26,.86,.44,.985),transform .8s cubic-bezier(.26,.86,.44,.985),visibility .8s cubic-bezier(.26,.86,.44,.985),opacity .8s cubic-bezier(.26,.86,.44,.985)}.reveal[data-transition-speed=fast] .slides section{transition-duration:.4s}.reveal[data-transition-speed=slow] .slides section{transition-duration:1.2s}.reveal .slides section[data-transition-speed=fast]{transition-duration:.4s}.reveal .slides section[data-transition-speed=slow]{transition-duration:1.2s}.reveal .slides>section.stack{padding-top:0;padding-bottom:0;pointer-events:none;height:100%}.reveal .slides>section.present,.reveal .slides>section>section.present{display:block;z-index:11;opacity:1}.reveal .slides>section:empty,.reveal .slides>section>section:empty,.reveal .slides>section>section[data-background-interactive],.reveal .slides>section[data-background-interactive]{pointer-events:none}.reveal.center,.reveal.center .slides,.reveal.center .slides section{min-height:0!important}.reveal .slides>section:not(.present),.reveal .slides>section>section:not(.present){pointer-events:none}.reveal.overview .slides>section,.reveal.overview .slides>section>section{pointer-events:auto}.reveal .slides>section.future,.reveal .slides>section.future>section,.reveal .slides>section.past,.reveal .slides>section.past>section,.reveal .slides>section>section.future,.reveal .slides>section>section.past{opacity:0}.reveal .slides>section[data-transition=slide].past,.reveal .slides>section[data-transition~=slide-out].past,.reveal.slide .slides>section:not([data-transition]).past{transform:translate(-150%,0)}.reveal .slides>section[data-transition=slide].future,.reveal .slides>section[data-transition~=slide-in].future,.reveal.slide .slides>section:not([data-transition]).future{transform:translate(150%,0)}.reveal .slides>section>section[data-transition=slide].past,.reveal .slides>section>section[data-transition~=slide-out].past,.reveal.slide .slides>section>section:not([data-transition]).past{transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=slide].future,.reveal .slides>section>section[data-transition~=slide-in].future,.reveal.slide .slides>section>section:not([data-transition]).future{transform:translate(0,150%)}.reveal .slides>section[data-transition=linear].past,.reveal .slides>section[data-transition~=linear-out].past,.reveal.linear .slides>section:not([data-transition]).past{transform:translate(-150%,0)}.reveal .slides>section[data-transition=linear].future,.reveal .slides>section[data-transition~=linear-in].future,.reveal.linear .slides>section:not([data-transition]).future{transform:translate(150%,0)}.reveal .slides>section>section[data-transition=linear].past,.reveal .slides>section>section[data-transition~=linear-out].past,.reveal.linear .slides>section>section:not([data-transition]).past{transform:translate(0,-150%)}.reveal .slides>section>section[data-transition=linear].future,.reveal .slides>section>section[data-transition~=linear-in].future,.reveal.linear .slides>section>section:not([data-transition]).future{transform:translate(0,150%)}.reveal .slides section[data-transition=default].stack,.reveal.default .slides section.stack{transform-style:preserve-3d}.reveal .slides>section[data-transition=default].past,.reveal .slides>section[data-transition~=default-out].past,.reveal.default .slides>section:not([data-transition]).past{transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=default].future,.reveal .slides>section[data-transition~=default-in].future,.reveal.default .slides>section:not([data-transition]).future{transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=default].past,.reveal .slides>section>section[data-transition~=default-out].past,.reveal.default .slides>section>section:not([data-transition]).past{transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0)}.reveal .slides>section>section[data-transition=default].future,.reveal .slides>section>section[data-transition~=default-in].future,.reveal.default .slides>section>section:not([data-transition]).future{transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0)}.reveal .slides section[data-transition=convex].stack,.reveal.convex .slides section.stack{transform-style:preserve-3d}.reveal .slides>section[data-transition=convex].past,.reveal .slides>section[data-transition~=convex-out].past,.reveal.convex .slides>section:not([data-transition]).past{transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=convex].future,.reveal .slides>section[data-transition~=convex-in].future,.reveal.convex .slides>section:not([data-transition]).future{transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=convex].past,.reveal .slides>section>section[data-transition~=convex-out].past,.reveal.convex .slides>section>section:not([data-transition]).past{transform:translate3d(0,-300px,0) rotateX(70deg) translate3d(0,-300px,0)}.reveal .slides>section>section[data-transition=convex].future,.reveal .slides>section>section[data-transition~=convex-in].future,.reveal.convex .slides>section>section:not([data-transition]).future{transform:translate3d(0,300px,0) rotateX(-70deg) translate3d(0,300px,0)}.reveal .slides section[data-transition=concave].stack,.reveal.concave .slides section.stack{transform-style:preserve-3d}.reveal .slides>section[data-transition=concave].past,.reveal .slides>section[data-transition~=concave-out].past,.reveal.concave .slides>section:not([data-transition]).past{transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0)}.reveal .slides>section[data-transition=concave].future,.reveal .slides>section[data-transition~=concave-in].future,.reveal.concave .slides>section:not([data-transition]).future{transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0)}.reveal .slides>section>section[data-transition=concave].past,.reveal .slides>section>section[data-transition~=concave-out].past,.reveal.concave .slides>section>section:not([data-transition]).past{transform:translate3d(0,-80%,0) rotateX(-70deg) translate3d(0,-80%,0)}.reveal .slides>section>section[data-transition=concave].future,.reveal .slides>section>section[data-transition~=concave-in].future,.reveal.concave .slides>section>section:not([data-transition]).future{transform:translate3d(0,80%,0) rotateX(70deg) translate3d(0,80%,0)}.reveal .slides section[data-transition=zoom],.reveal.zoom .slides section:not([data-transition]){transition-timing-function:ease}.reveal .slides>section[data-transition=zoom].past,.reveal .slides>section[data-transition~=zoom-out].past,.reveal.zoom .slides>section:not([data-transition]).past{visibility:hidden;transform:scale(16)}.reveal .slides>section[data-transition=zoom].future,.reveal .slides>section[data-transition~=zoom-in].future,.reveal.zoom .slides>section:not([data-transition]).future{visibility:hidden;transform:scale(.2)}.reveal .slides>section>section[data-transition=zoom].past,.reveal .slides>section>section[data-transition~=zoom-out].past,.reveal.zoom .slides>section>section:not([data-transition]).past{transform:scale(16)}.reveal .slides>section>section[data-transition=zoom].future,.reveal .slides>section>section[data-transition~=zoom-in].future,.reveal.zoom .slides>section>section:not([data-transition]).future{transform:scale(.2)}.reveal.cube .slides{perspective:1300px}.reveal.cube .slides section{padding:30px;min-height:700px;backface-visibility:hidden;box-sizing:border-box;transform-style:preserve-3d}.reveal.center.cube .slides section{min-height:0}.reveal.cube .slides section:not(.stack):before{content:"";position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);border-radius:4px;transform:translateZ(-20px)}.reveal.cube .slides section:not(.stack):after{content:"";position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0 0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);transform:translateZ(-90px) rotateX(65deg)}.reveal.cube .slides>section.stack{padding:0;background:0 0}.reveal.cube .slides>section.past{transform-origin:100% 0;transform:translate3d(-100%,0,0) rotateY(-90deg)}.reveal.cube .slides>section.future{transform-origin:0 0;transform:translate3d(100%,0,0) rotateY(90deg)}.reveal.cube .slides>section>section.past{transform-origin:0 100%;transform:translate3d(0,-100%,0) rotateX(90deg)}.reveal.cube .slides>section>section.future{transform-origin:0 0;transform:translate3d(0,100%,0) rotateX(-90deg)}.reveal.page .slides{perspective-origin:0 50%;perspective:3000px}.reveal.page .slides section{padding:30px;min-height:700px;box-sizing:border-box;transform-style:preserve-3d}.reveal.page .slides section.past{z-index:12}.reveal.page .slides section:not(.stack):before{content:"";position:absolute;display:block;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,.1);transform:translateZ(-20px)}.reveal.page .slides section:not(.stack):after{content:"";position:absolute;display:block;width:90%;height:30px;left:5%;bottom:0;background:0 0;z-index:1;border-radius:4px;box-shadow:0 95px 25px rgba(0,0,0,.2);-webkit-transform:translateZ(-90px) rotateX(65deg)}.reveal.page .slides>section.stack{padding:0;background:0 0}.reveal.page .slides>section.past{transform-origin:0 0;transform:translate3d(-40%,0,0) rotateY(-80deg)}.reveal.page .slides>section.future{transform-origin:100% 0;transform:translate3d(0,0,0)}.reveal.page .slides>section>section.past{transform-origin:0 0;transform:translate3d(0,-40%,0) rotateX(80deg)}.reveal.page .slides>section>section.future{transform-origin:0 100%;transform:translate3d(0,0,0)}.reveal .slides section[data-transition=fade],.reveal.fade .slides section:not([data-transition]),.reveal.fade .slides>section>section:not([data-transition]){transform:none;transition:opacity .5s}.reveal.fade.overview .slides section,.reveal.fade.overview .slides>section>section{transition:none}.reveal .slides section[data-transition=none],.reveal.none .slides section:not([data-transition]){transform:none;transition:none}.reveal .pause-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;visibility:hidden;opacity:0;z-index:100;transition:all 1s ease}.reveal .pause-overlay .resume-button{position:absolute;bottom:20px;right:20px;color:#ccc;border-radius:2px;padding:6px 14px;border:2px solid #ccc;font-size:16px;background:0 0;cursor:pointer}.reveal .pause-overlay .resume-button:hover{color:#fff;border-color:#fff}.reveal.paused .pause-overlay{visibility:visible;opacity:1}.reveal .no-transition,.reveal .no-transition *,.reveal .slides.disable-slide-transitions section{transition:none!important}.reveal .slides.disable-slide-transitions section{transform:none!important}.reveal .backgrounds{position:absolute;width:100%;height:100%;top:0;left:0;perspective:600px}.reveal .slide-background{display:none;position:absolute;width:100%;height:100%;opacity:0;visibility:hidden;overflow:hidden;background-color:rgba(0,0,0,0);transition:all .8s cubic-bezier(.26,.86,.44,.985)}.reveal .slide-background-content{position:absolute;width:100%;height:100%;background-position:50% 50%;background-repeat:no-repeat;background-size:cover}.reveal .slide-background.stack{display:block}.reveal .slide-background.present{opacity:1;visibility:visible;z-index:2}.print-pdf .reveal .slide-background{opacity:1!important;visibility:visible!important}.reveal .slide-background video{position:absolute;width:100%;height:100%;max-width:none;max-height:none;top:0;left:0;object-fit:cover}.reveal .slide-background[data-background-size=contain] video{object-fit:contain}.reveal>.backgrounds .slide-background[data-background-transition=none],.reveal[data-background-transition=none]>.backgrounds .slide-background:not([data-background-transition]){transition:none}.reveal>.backgrounds .slide-background[data-background-transition=slide],.reveal[data-background-transition=slide]>.backgrounds .slide-background:not([data-background-transition]){opacity:1}.reveal>.backgrounds .slide-background.past[data-background-transition=slide],.reveal[data-background-transition=slide]>.backgrounds .slide-background.past:not([data-background-transition]){transform:translate(-100%,0)}.reveal>.backgrounds .slide-background.future[data-background-transition=slide],.reveal[data-background-transition=slide]>.backgrounds .slide-background.future:not([data-background-transition]){transform:translate(100%,0)}.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=slide],.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.past:not([data-background-transition]){transform:translate(0,-100%)}.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=slide],.reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.future:not([data-background-transition]){transform:translate(0,100%)}.reveal>.backgrounds .slide-background.past[data-background-transition=convex],.reveal[data-background-transition=convex]>.backgrounds .slide-background.past:not([data-background-transition]){opacity:0;transform:translate3d(-100%,0,0) rotateY(-90deg) translate3d(-100%,0,0)}.reveal>.backgrounds .slide-background.future[data-background-transition=convex],.reveal[data-background-transition=convex]>.backgrounds .slide-background.future:not([data-background-transition]){opacity:0;transform:translate3d(100%,0,0) rotateY(90deg) translate3d(100%,0,0)}.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=convex],.reveal[data-background-transition=convex]>.backgrounds .slide-background>.slide-background.past:not([data-background-transition]){opacity:0;transform:translate3d(0,-100%,0) rotateX(90deg) translate3d(0,-100%,0)}.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=convex],.reveal[data-background-transition=convex]>.backgrounds .slide-background>.slide-background.future:not([data-background-transition]){opacity:0;transform:translate3d(0,100%,0) rotateX(-90deg) translate3d(0,100%,0)}.reveal>.backgrounds .slide-background.past[data-background-transition=concave],.reveal[data-background-transition=concave]>.backgrounds .slide-background.past:not([data-background-transition]){opacity:0;transform:translate3d(-100%,0,0) rotateY(90deg) translate3d(-100%,0,0)}.reveal>.backgrounds .slide-background.future[data-background-transition=concave],.reveal[data-background-transition=concave]>.backgrounds .slide-background.future:not([data-background-transition]){opacity:0;transform:translate3d(100%,0,0) rotateY(-90deg) translate3d(100%,0,0)}.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=concave],.reveal[data-background-transition=concave]>.backgrounds .slide-background>.slide-background.past:not([data-background-transition]){opacity:0;transform:translate3d(0,-100%,0) rotateX(-90deg) translate3d(0,-100%,0)}.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=concave],.reveal[data-background-transition=concave]>.backgrounds .slide-background>.slide-background.future:not([data-background-transition]){opacity:0;transform:translate3d(0,100%,0) rotateX(90deg) translate3d(0,100%,0)}.reveal>.backgrounds .slide-background[data-background-transition=zoom],.reveal[data-background-transition=zoom]>.backgrounds .slide-background:not([data-background-transition]){transition-timing-function:ease}.reveal>.backgrounds .slide-background.past[data-background-transition=zoom],.reveal[data-background-transition=zoom]>.backgrounds .slide-background.past:not([data-background-transition]){opacity:0;visibility:hidden;transform:scale(16)}.reveal>.backgrounds .slide-background.future[data-background-transition=zoom],.reveal[data-background-transition=zoom]>.backgrounds .slide-background.future:not([data-background-transition]){opacity:0;visibility:hidden;transform:scale(.2)}.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=zoom],.reveal[data-background-transition=zoom]>.backgrounds .slide-background>.slide-background.past:not([data-background-transition]){opacity:0;visibility:hidden;transform:scale(16)}.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=zoom],.reveal[data-background-transition=zoom]>.backgrounds .slide-background>.slide-background.future:not([data-background-transition]){opacity:0;visibility:hidden;transform:scale(.2)}.reveal[data-transition-speed=fast]>.backgrounds .slide-background{transition-duration:.4s}.reveal[data-transition-speed=slow]>.backgrounds .slide-background{transition-duration:1.2s}.reveal [data-auto-animate-target^=unmatched]{will-change:opacity}.reveal section[data-auto-animate]:not(.stack):not([data-auto-animate=running]) [data-auto-animate-target^=unmatched]{opacity:0}.reveal.overview{perspective-origin:50% 50%;perspective:700px}.reveal.overview .slides{-moz-transform-style:preserve-3d}.reveal.overview .slides section{height:100%;top:0!important;opacity:1!important;overflow:hidden;visibility:visible!important;cursor:pointer;box-sizing:border-box}.reveal.overview .slides section.present,.reveal.overview .slides section:hover{outline:10px solid rgba(150,150,150,.4);outline-offset:10px}.reveal.overview .slides section .fragment{opacity:1;transition:none}.reveal.overview .slides section:after,.reveal.overview .slides section:before{display:none!important}.reveal.overview .slides>section.stack{padding:0;top:0!important;background:0 0;outline:0;overflow:visible}.reveal.overview .backgrounds{perspective:inherit;-moz-transform-style:preserve-3d}.reveal.overview .backgrounds .slide-background{opacity:1;visibility:visible;outline:10px solid rgba(150,150,150,.1);outline-offset:10px}.reveal.overview .backgrounds .slide-background.stack{overflow:visible}.reveal.overview .slides section,.reveal.overview-deactivating .slides section{transition:none}.reveal.overview .backgrounds .slide-background,.reveal.overview-deactivating .backgrounds .slide-background{transition:none}.reveal.rtl .slides,.reveal.rtl .slides h1,.reveal.rtl .slides h2,.reveal.rtl .slides h3,.reveal.rtl .slides h4,.reveal.rtl .slides h5,.reveal.rtl .slides h6{direction:rtl;font-family:sans-serif}.reveal.rtl code,.reveal.rtl pre{direction:ltr}.reveal.rtl ol,.reveal.rtl ul{text-align:right}.reveal.rtl .progress span{transform-origin:100% 0}.reveal.has-parallax-background .backgrounds{transition:all .8s ease}.reveal.has-parallax-background[data-transition-speed=fast] .backgrounds{transition-duration:.4s}.reveal.has-parallax-background[data-transition-speed=slow] .backgrounds{transition-duration:1.2s}.reveal>.overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,.9);transition:all .3s ease}.reveal>.overlay .spinner{position:absolute;display:block;top:50%;left:50%;width:32px;height:32px;margin:-16px 0 0 -16px;z-index:10;background-image:url(data:image/gif;base64,R0lGODlhIAAgAPMAAJmZmf%2F%2F%2F6%2Bvr8nJybW1tcDAwOjo6Nvb26ioqKOjo7Ozs%2FLy8vz8%2FAAAAAAAAAAAACH%2FC05FVFNDQVBFMi4wAwEAAAAh%2FhpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh%2BQQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ%2FV%2FnmOM82XiHRLYKhKP1oZmADdEAAAh%2BQQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY%2FCZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB%2BA4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6%2BHo7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq%2BB6QDtuetcaBPnW6%2BO7wDHpIiK9SaVK5GgV543tzjgGcghAgAh%2BQQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK%2B%2BG%2Bw48edZPK%2BM6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE%2BG%2BcD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm%2BFNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk%2BaV%2BoJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0%2FVNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc%2BXiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30%2FiI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE%2FjiuL04RGEBgwWhShRgQExHBAAh%2BQQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR%2BipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY%2BYip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd%2BMFCN6HAAIKgNggY0KtEBAAh%2BQQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1%2BvsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d%2BjYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg%2BygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0%2Bbm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h%2BKr0SJ8MFihpNbx%2B4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX%2BBP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA%3D%3D);visibility:visible;opacity:.6;transition:all .3s ease}.reveal>.overlay header{position:absolute;left:0;top:0;width:100%;padding:5px;z-index:2;box-sizing:border-box}.reveal>.overlay header a{display:inline-block;width:40px;height:40px;line-height:36px;padding:0 10px;float:right;opacity:.6;box-sizing:border-box}.reveal>.overlay header a:hover{opacity:1}.reveal>.overlay header a .icon{display:inline-block;width:20px;height:20px;background-position:50% 50%;background-size:100%;background-repeat:no-repeat}.reveal>.overlay header a.close .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC)}.reveal>.overlay header a.external .icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==)}.reveal>.overlay .viewport{position:absolute;display:flex;top:50px;right:0;bottom:0;left:0}.reveal>.overlay.overlay-preview .viewport iframe{width:100%;height:100%;max-width:100%;max-height:100%;border:0;opacity:0;visibility:hidden;transition:all .3s ease}.reveal>.overlay.overlay-preview.loaded .viewport iframe{opacity:1;visibility:visible}.reveal>.overlay.overlay-preview.loaded .viewport-inner{position:absolute;z-index:-1;left:0;top:45%;width:100%;text-align:center;letter-spacing:normal}.reveal>.overlay.overlay-preview .x-frame-error{opacity:0;transition:opacity .3s ease .3s}.reveal>.overlay.overlay-preview.loaded .x-frame-error{opacity:1}.reveal>.overlay.overlay-preview.loaded .spinner{opacity:0;visibility:hidden;transform:scale(.2)}.reveal>.overlay.overlay-help .viewport{overflow:auto;color:#fff}.reveal>.overlay.overlay-help .viewport .viewport-inner{width:600px;margin:auto;padding:20px 20px 80px 20px;text-align:center;letter-spacing:normal}.reveal>.overlay.overlay-help .viewport .viewport-inner .title{font-size:20px}.reveal>.overlay.overlay-help .viewport .viewport-inner table{border:1px solid #fff;border-collapse:collapse;font-size:16px}.reveal>.overlay.overlay-help .viewport .viewport-inner table td,.reveal>.overlay.overlay-help .viewport .viewport-inner table th{width:200px;padding:14px;border:1px solid #fff;vertical-align:middle}.reveal>.overlay.overlay-help .viewport .viewport-inner table th{padding-top:20px;padding-bottom:20px}.reveal .playback{position:absolute;left:15px;bottom:20px;z-index:30;cursor:pointer;transition:all .4s ease;-webkit-tap-highlight-color:transparent}.reveal.overview .playback{opacity:0;visibility:hidden}.reveal .hljs{min-height:100%}.reveal .hljs table{margin:initial}.reveal .hljs-ln-code,.reveal .hljs-ln-numbers{padding:0;border:0}.reveal .hljs-ln-numbers{opacity:.6;padding-right:.75em;text-align:right;vertical-align:top}.reveal .hljs.has-highlights tr:not(.highlight-line){opacity:.4}.reveal .hljs:not(:first-child).fragment{position:absolute;top:0;left:0;width:100%;box-sizing:border-box}.reveal pre[data-auto-animate-target]{overflow:hidden}.reveal pre[data-auto-animate-target] code{height:100%}.reveal .roll{display:inline-block;line-height:1.2;overflow:hidden;vertical-align:top;perspective:400px;perspective-origin:50% 50%}.reveal .roll:hover{background:0 0;text-shadow:none}.reveal .roll span{display:block;position:relative;padding:0 2px;pointer-events:none;transition:all .4s ease;transform-origin:50% 0;transform-style:preserve-3d;backface-visibility:hidden}.reveal .roll:hover span{background:rgba(0,0,0,.5);transform:translate3d(0,0,-45px) rotateX(90deg)}.reveal .roll span:after{content:attr(data-title);display:block;position:absolute;left:0;top:0;padding:0 2px;backface-visibility:hidden;transform-origin:50% 0;transform:translate3d(0,110%,0) rotateX(-90deg)}.reveal aside.notes{display:none}.reveal .speaker-notes{display:none;position:absolute;width:33.3333333333%;height:100%;top:0;left:100%;padding:14px 18px 14px 18px;z-index:1;font-size:18px;line-height:1.4;border:1px solid rgba(0,0,0,.05);color:#222;background-color:#f5f5f5;overflow:auto;box-sizing:border-box;text-align:left;font-family:Helvetica,sans-serif;-webkit-overflow-scrolling:touch}.reveal .speaker-notes .notes-placeholder{color:#ccc;font-style:italic}.reveal .speaker-notes:focus{outline:0}.reveal .speaker-notes:before{content:"Speaker notes";display:block;margin-bottom:10px;opacity:.5}.reveal.show-notes{max-width:75%;overflow:visible}.reveal.show-notes .speaker-notes{display:block}@media screen and (min-width:1600px){.reveal .speaker-notes{font-size:20px}}@media screen and (max-width:1024px){.reveal.show-notes{border-left:0;max-width:none;max-height:70%;max-height:70vh;overflow:visible}.reveal.show-notes .speaker-notes{top:100%;left:0;width:100%;height:30vh;border:0}}@media screen and (max-width:600px){.reveal.show-notes{max-height:60%;max-height:60vh}.reveal.show-notes .speaker-notes{top:100%;height:40vh}.reveal .speaker-notes{font-size:14px}}.reveal .jump-to-slide{position:absolute;top:15px;left:15px;z-index:30;font-size:32px;-webkit-tap-highlight-color:transparent}.reveal .jump-to-slide-input{background:0 0;padding:8px;font-size:inherit;color:currentColor;border:0}.reveal .jump-to-slide-input::placeholder{color:currentColor;opacity:.5}.reveal.has-dark-background .jump-to-slide-input{color:#fff}.reveal.has-light-background .jump-to-slide-input{color:#222}.reveal .jump-to-slide-input:focus{outline:0}.zoomed .reveal *,.zoomed .reveal :after,.zoomed .reveal :before{backface-visibility:visible!important}.zoomed .reveal .controls,.zoomed .reveal .progress{opacity:0}.zoomed .reveal .roll span{background:0 0}.zoomed .reveal .roll span:after{visibility:hidden}html.print-pdf *{-webkit-print-color-adjust:exact}html.print-pdf{width:100%;height:100%;overflow:visible}html.print-pdf body{margin:0 auto!important;border:0;padding:0;float:none!important;overflow:visible}html.print-pdf .nestedarrow,html.print-pdf .reveal .controls,html.print-pdf .reveal .playback,html.print-pdf .reveal .progress,html.print-pdf .reveal.overview,html.print-pdf .state-background{display:none!important}html.print-pdf .reveal pre code{overflow:hidden!important;font-family:Courier,"Courier New",monospace!important}html.print-pdf .reveal{width:auto!important;height:auto!important;overflow:hidden!important}html.print-pdf .reveal .slides{position:static;width:100%!important;height:auto!important;zoom:1!important;pointer-events:initial;left:auto;top:auto;margin:0!important;padding:0!important;overflow:visible;display:block;perspective:none;perspective-origin:50% 50%}html.print-pdf .reveal .slides .pdf-page{position:relative;overflow:hidden;z-index:1;page-break-after:always}html.print-pdf .reveal .slides section{visibility:visible!important;display:block!important;position:absolute!important;margin:0!important;padding:0!important;box-sizing:border-box!important;min-height:1px;opacity:1!important;transform-style:flat!important;transform:none!important}html.print-pdf .reveal section.stack{position:relative!important;margin:0!important;padding:0!important;page-break-after:avoid!important;height:auto!important;min-height:auto!important}html.print-pdf .reveal img{box-shadow:none}html.print-pdf .reveal .backgrounds{display:none}html.print-pdf .reveal .slide-background{display:block!important;position:absolute;top:0;left:0;width:100%;height:100%;z-index:auto!important}html.print-pdf .reveal.show-notes{max-width:none;max-height:none}html.print-pdf .reveal .speaker-notes-pdf{display:block;width:100%;height:auto;max-height:none;top:auto;right:auto;bottom:auto;left:auto;z-index:100}html.print-pdf .reveal .speaker-notes-pdf[data-layout=separate-page]{position:relative;color:inherit;background-color:transparent;padding:20px;page-break-after:always;border:0}html.print-pdf .reveal .slide-number-pdf{display:block;position:absolute;font-size:14px}html.print-pdf .aria-status{display:none}@media print{html:not(.print-pdf){overflow:visible;width:auto;height:auto}html:not(.print-pdf) body{margin:0;padding:0;overflow:visible}html:not(.print-pdf) .reveal{background:#fff;font-size:20pt}html:not(.print-pdf) .reveal .backgrounds,html:not(.print-pdf) .reveal .controls,html:not(.print-pdf) .reveal .progress,html:not(.print-pdf) .reveal .slide-number,html:not(.print-pdf) .reveal .state-background{display:none!important}html:not(.print-pdf) .reveal li,html:not(.print-pdf) .reveal p,html:not(.print-pdf) .reveal td{font-size:20pt!important;color:#000}html:not(.print-pdf) .reveal h1,html:not(.print-pdf) .reveal h2,html:not(.print-pdf) .reveal h3,html:not(.print-pdf) .reveal h4,html:not(.print-pdf) .reveal h5,html:not(.print-pdf) .reveal h6{color:#000!important;height:auto;line-height:normal;text-align:left;letter-spacing:normal}html:not(.print-pdf) .reveal h1{font-size:28pt!important}html:not(.print-pdf) .reveal h2{font-size:24pt!important}html:not(.print-pdf) .reveal h3{font-size:22pt!important}html:not(.print-pdf) .reveal h4{font-size:22pt!important;font-variant:small-caps}html:not(.print-pdf) .reveal h5{font-size:21pt!important}html:not(.print-pdf) .reveal h6{font-size:20pt!important;font-style:italic}html:not(.print-pdf) .reveal a:link,html:not(.print-pdf) .reveal a:visited{color:#000!important;font-weight:700;text-decoration:underline}html:not(.print-pdf) .reveal div,html:not(.print-pdf) .reveal ol,html:not(.print-pdf) .reveal p,html:not(.print-pdf) .reveal ul{visibility:visible;position:static;width:auto;height:auto;display:block;overflow:visible;margin:0;text-align:left!important}html:not(.print-pdf) .reveal pre,html:not(.print-pdf) .reveal table{margin-left:0;margin-right:0}html:not(.print-pdf) .reveal pre code{padding:20px}html:not(.print-pdf) .reveal blockquote{margin:20px 0}html:not(.print-pdf) .reveal .slides{position:static!important;width:auto!important;height:auto!important;left:0!important;top:0!important;margin-left:0!important;margin-top:0!important;padding:0!important;zoom:1!important;transform:none!important;overflow:visible!important;display:block!important;text-align:left!important;perspective:none;perspective-origin:50% 50%}html:not(.print-pdf) .reveal .slides section{visibility:visible!important;position:static!important;width:auto!important;height:auto!important;display:block!important;overflow:visible!important;left:0!important;top:0!important;margin-left:0!important;margin-top:0!important;padding:60px 20px!important;z-index:auto!important;opacity:1!important;page-break-after:always!important;transform-style:flat!important;transform:none!important;transition:none!important}html:not(.print-pdf) .reveal .slides section.stack{padding:0!important}html:not(.print-pdf) .reveal .slides section:last-of-type{page-break-after:avoid!important}html:not(.print-pdf) .reveal .slides section .fragment{opacity:1!important;visibility:visible!important;transform:none!important}html:not(.print-pdf) .reveal .r-fit-text{white-space:normal!important}html:not(.print-pdf) .reveal section img{display:block;margin:15px 0;background:#fff;border:1px solid #666;box-shadow:none}html:not(.print-pdf) .reveal section small{font-size:.8em}html:not(.print-pdf) .reveal .hljs{max-height:100%;white-space:pre-wrap;word-wrap:break-word;word-break:break-word;font-size:15pt}html:not(.print-pdf) .reveal .hljs .hljs-ln-numbers{white-space:nowrap}html:not(.print-pdf) .reveal .hljs td{font-size:inherit!important;color:inherit!important}} \ No newline at end of file diff --git a/chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.esm.js b/chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.esm.js new file mode 100644 index 0000000..be243b7 --- /dev/null +++ b/chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.esm.js @@ -0,0 +1,9 @@ +/*! +* reveal.js 4.5.0 +* https://revealjs.com +* MIT licensed +* +* Copyright (C) 2011-2023 Hakim El Hattab, https://hakim.se +*/ +const e=(e,t)=>{for(let i in t)e[i]=t[i];return e},t=(e,t)=>Array.from(e.querySelectorAll(t)),i=(e,t,i)=>{i?e.classList.add(t):e.classList.remove(t)},n=e=>{if("string"==typeof e){if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}return e},s=(e,t)=>{e.style.transform=t},a=(e,t)=>{let i=e.matches||e.matchesSelector||e.msMatchesSelector;return!(!i||!i.call(e,t))},r=(e,t)=>{if("function"==typeof e.closest)return e.closest(t);for(;e;){if(a(e,t))return e;e=e.parentNode}return null},o=(e,t,i,n="")=>{let s=e.querySelectorAll("."+i);for(let t=0;t{let t=document.createElement("style");return t.type="text/css",e&&e.length>0&&(t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))),document.head.appendChild(t),t},d=()=>{let e={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,(t=>{e[t.split("=").shift()]=t.split("=").pop()}));for(let t in e){let i=e[t];e[t]=n(unescape(i))}return void 0!==e.dependencies&&delete e.dependencies,e},c=(e,t=0)=>{if(e){let i,n=e.style.height;return e.style.height="0px",e.parentNode.style.height="auto",i=t-e.parentNode.offsetHeight,e.style.height=n+"px",e.parentNode.style.removeProperty("height"),i}return t},h={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},u=navigator.userAgent,g=/(iphone|ipod|ipad|android)/gi.test(u)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;/chrome/i.test(u)&&/edge/i.test(u);const v=/android/gi.test(u);var p={};Object.defineProperty(p,"__esModule",{value:!0});var m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?x(t(document.querySelectorAll(e)),i):x([e],i)[0]}}("undefined"==typeof window?null:window);class b{constructor(e){this.Reveal=e,this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this)}shouldPreload(e){let t=this.Reveal.getConfig().preloadIframes;return"boolean"!=typeof t&&(t=e.hasAttribute("data-preload")),t}load(e,i={}){e.style.display=this.Reveal.getConfig().display,t(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach((e=>{("IFRAME"!==e.tagName||this.shouldPreload(e))&&(e.setAttribute("src",e.getAttribute("data-src")),e.setAttribute("data-lazy-loaded",""),e.removeAttribute("data-src"))})),t(e,"video, audio").forEach((e=>{let i=0;t(e,"source[data-src]").forEach((e=>{e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src"),e.setAttribute("data-lazy-loaded",""),i+=1})),g&&"VIDEO"===e.tagName&&e.setAttribute("playsinline",""),i>0&&e.load()}));let n=e.slideBackgroundElement;if(n){n.style.display="block";let t=e.slideBackgroundContentElement,s=e.getAttribute("data-background-iframe");if(!1===n.hasAttribute("data-loaded")){n.setAttribute("data-loaded","true");let a=e.getAttribute("data-background-image"),r=e.getAttribute("data-background-video"),o=e.hasAttribute("data-background-video-loop"),l=e.hasAttribute("data-background-video-muted");if(a)/^data:/.test(a.trim())?t.style.backgroundImage=`url(${a.trim()})`:t.style.backgroundImage=a.split(",").map((e=>`url(${((e="")=>encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)))(decodeURI(e.trim()))})`)).join(",");else if(r&&!this.Reveal.isSpeakerNotes()){let e=document.createElement("video");o&&e.setAttribute("loop",""),l&&(e.muted=!0),g&&(e.muted=!0,e.setAttribute("playsinline","")),r.split(",").forEach((t=>{let i=((e="")=>h[e.split(".").pop()])(t);e.innerHTML+=i?``:``})),t.appendChild(e)}else if(s&&!0!==i.excludeIframes){let e=document.createElement("iframe");e.setAttribute("allowfullscreen",""),e.setAttribute("mozallowfullscreen",""),e.setAttribute("webkitallowfullscreen",""),e.setAttribute("allow","autoplay"),e.setAttribute("data-src",s),e.style.width="100%",e.style.height="100%",e.style.maxHeight="100%",e.style.maxWidth="100%",t.appendChild(e)}}let a=t.querySelector("iframe[data-src]");a&&this.shouldPreload(n)&&!/autoplay=(1|true|yes)/gi.test(s)&&a.getAttribute("src")!==s&&a.setAttribute("src",s)}this.layout(e)}layout(e){Array.from(e.querySelectorAll(".r-fit-text")).forEach((e=>{f(e,{minSize:24,maxSize:.8*this.Reveal.getConfig().height,observeMutations:!1,observeWindow:!1})}))}unload(e){e.style.display="none";let i=this.Reveal.getSlideBackground(e);i&&(i.style.display="none",t(i,"iframe[src]").forEach((e=>{e.removeAttribute("src")}))),t(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach((e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")})),t(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach((e=>{e.setAttribute("data-src",e.getAttribute("src")),e.removeAttribute("src")}))}formatEmbeddedContent(){let e=(e,i,n)=>{t(this.Reveal.getSlidesElement(),"iframe["+e+'*="'+i+'"]').forEach((t=>{let i=t.getAttribute(e);i&&-1===i.indexOf(n)&&t.setAttribute(e,i+(/\?/.test(i)?"&":"?")+n)}))};e("src","youtube.com/embed/","enablejsapi=1"),e("data-src","youtube.com/embed/","enablejsapi=1"),e("src","player.vimeo.com/","api=1"),e("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(e){e&&!this.Reveal.isSpeakerNotes()&&(t(e,'img[src$=".gif"]').forEach((e=>{e.setAttribute("src",e.getAttribute("src"))})),t(e,"video, audio").forEach((e=>{if(r(e,".fragment")&&!r(e,".fragment.visible"))return;let t=this.Reveal.getConfig().autoPlayMedia;if("boolean"!=typeof t&&(t=e.hasAttribute("data-autoplay")||!!r(e,".slide-background")),t&&"function"==typeof e.play)if(e.readyState>1)this.startEmbeddedMedia({target:e});else if(g){let t=e.play();t&&"function"==typeof t.catch&&!1===e.controls&&t.catch((()=>{e.controls=!0,e.addEventListener("play",(()=>{e.controls=!1}))}))}else e.removeEventListener("loadeddata",this.startEmbeddedMedia),e.addEventListener("loadeddata",this.startEmbeddedMedia)})),t(e,"iframe[src]").forEach((e=>{r(e,".fragment")&&!r(e,".fragment.visible")||this.startEmbeddedIframe({target:e})})),t(e,"iframe[data-src]").forEach((e=>{r(e,".fragment")&&!r(e,".fragment.visible")||e.getAttribute("src")!==e.getAttribute("data-src")&&(e.removeEventListener("load",this.startEmbeddedIframe),e.addEventListener("load",this.startEmbeddedIframe),e.setAttribute("src",e.getAttribute("data-src")))})))}startEmbeddedMedia(e){let t=!!r(e.target,"html"),i=!!r(e.target,".present");t&&i&&(e.target.currentTime=0,e.target.play()),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}startEmbeddedIframe(e){let t=e.target;if(t&&t.contentWindow){let i=!!r(e.target,"html"),n=!!r(e.target,".present");if(i&&n){let e=this.Reveal.getConfig().autoPlayMedia;"boolean"!=typeof e&&(e=t.hasAttribute("data-autoplay")||!!r(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&e?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&e?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(i,n={}){n=e({unloadIframes:!0},n),i&&i.parentNode&&(t(i,"video, audio").forEach((e=>{e.hasAttribute("data-ignore")||"function"!=typeof e.pause||(e.setAttribute("data-paused-by-reveal",""),e.pause())})),t(i,"iframe").forEach((e=>{e.contentWindow&&e.contentWindow.postMessage("slide:stop","*"),e.removeEventListener("load",this.startEmbeddedIframe)})),t(i,'iframe[src*="youtube.com/embed/"]').forEach((e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})),t(i,'iframe[src*="player.vimeo.com/"]').forEach((e=>{!e.hasAttribute("data-ignore")&&e.contentWindow&&"function"==typeof e.contentWindow.postMessage&&e.contentWindow.postMessage('{"method":"pause"}',"*")})),!0===n.unloadIframes&&t(i,"iframe[data-src]").forEach((e=>{e.setAttribute("src","about:blank"),e.removeAttribute("src")})))}}class y{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(e,t){let i="none";e.slideNumber&&!this.Reveal.isPrintingPDF()&&("all"===e.showSlideNumber||"speaker"===e.showSlideNumber&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(e=this.Reveal.getCurrentSlide()){let t,i=this.Reveal.getConfig(),n="h.v";if("function"==typeof i.slideNumber)t=i.slideNumber(e);else{"string"==typeof i.slideNumber&&(n=i.slideNumber),/c/.test(n)||1!==this.Reveal.getHorizontalSlides().length||(n="c");let s=e&&"uncounted"===e.dataset.visibility?0:1;switch(t=[],n){case"c":t.push(this.Reveal.getSlidePastCount(e)+s);break;case"c/t":t.push(this.Reveal.getSlidePastCount(e)+s,"/",this.Reveal.getTotalSlides());break;default:let i=this.Reveal.getIndices(e);t.push(i.h+s);let a="h/v"===n?"/":".";this.Reveal.isVerticalSlide(e)&&t.push(a,i.v+1)}}let s="#"+this.Reveal.location.getHash(e);return this.formatNumber(t[0],t[1],t[2],s)}formatNumber(e,t,i,n="#"+this.Reveal.location.getHash()){return"number"!=typeof i||isNaN(i)?`\n\t\t\t\t\t${e}\n\t\t\t\t\t`:`\n\t\t\t\t\t${e}\n\t\t\t\t\t${t}\n\t\t\t\t\t${i}\n\t\t\t\t\t`}destroy(){this.element.remove()}}class w{constructor(e){this.Reveal=e,this.onInput=this.onInput.bind(this),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){this.element=document.createElement("div"),this.element.className="jump-to-slide",this.jumpInput=document.createElement("input"),this.jumpInput.type="text",this.jumpInput.className="jump-to-slide-input",this.jumpInput.placeholder="Jump to slide",this.jumpInput.addEventListener("input",this.onInput),this.jumpInput.addEventListener("keydown",this.onKeyDown),this.jumpInput.addEventListener("blur",this.onBlur),this.element.appendChild(this.jumpInput)}show(){this.indicesOnShow=this.Reveal.getIndices(),this.Reveal.getRevealElement().appendChild(this.element),this.jumpInput.focus()}hide(){this.isVisible()&&(this.element.remove(),this.jumpInput.value="",clearTimeout(this.jumpTimeout),delete this.jumpTimeout)}isVisible(){return!!this.element.parentNode}jump(){clearTimeout(this.jumpTimeout),delete this.jumpTimeout;const e=this.jumpInput.value.trim("");let t=this.Reveal.location.getIndicesFromHash(e,{oneBasedIndex:!0});return!t&&/\S+/i.test(e)&&e.length>1&&(t=this.search(e)),t&&""!==e?(this.Reveal.slide(t.h,t.v,t.f),!0):(this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),!1)}jumpAfter(e){clearTimeout(this.jumpTimeout),this.jumpTimeout=setTimeout((()=>this.jump()),e)}search(e){const t=new RegExp("\\b"+e.trim()+"\\b","i"),i=this.Reveal.getSlides().find((e=>t.test(e.innerText)));return i?this.Reveal.getIndices(i):null}cancel(){this.Reveal.slide(this.indicesOnShow.h,this.indicesOnShow.v,this.indicesOnShow.f),this.hide()}confirm(){this.jump(),this.hide()}destroy(){this.jumpInput.removeEventListener("input",this.onInput),this.jumpInput.removeEventListener("keydown",this.onKeyDown),this.jumpInput.removeEventListener("blur",this.onBlur),this.element.remove()}onKeyDown(e){13===e.keyCode?this.confirm():27===e.keyCode&&(this.cancel(),e.stopImmediatePropagation())}onInput(e){this.jumpAfter(200)}onBlur(){setTimeout((()=>this.hide()),1)}}const E=e=>{let t=e.match(/^#([0-9a-f]{3})$/i);if(t&&t[1])return t=t[1],{r:17*parseInt(t.charAt(0),16),g:17*parseInt(t.charAt(1),16),b:17*parseInt(t.charAt(2),16)};let i=e.match(/^#([0-9a-f]{6})$/i);if(i&&i[1])return i=i[1],{r:parseInt(i.slice(0,2),16),g:parseInt(i.slice(2,4),16),b:parseInt(i.slice(4,6),16)};let n=e.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);if(n)return{r:parseInt(n[1],10),g:parseInt(n[2],10),b:parseInt(n[3],10)};let s=e.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i);return s?{r:parseInt(s[1],10),g:parseInt(s[2],10),b:parseInt(s[3],10),a:parseFloat(s[4])}:null};class R{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="backgrounds",this.Reveal.getRevealElement().appendChild(this.element)}create(){this.element.innerHTML="",this.element.classList.add("no-transition"),this.Reveal.getHorizontalSlides().forEach((e=>{let i=this.createBackground(e,this.element);t(e,"section").forEach((e=>{this.createBackground(e,i),i.classList.add("stack")}))})),this.Reveal.getConfig().parallaxBackgroundImage?(this.element.style.backgroundImage='url("'+this.Reveal.getConfig().parallaxBackgroundImage+'")',this.element.style.backgroundSize=this.Reveal.getConfig().parallaxBackgroundSize,this.element.style.backgroundRepeat=this.Reveal.getConfig().parallaxBackgroundRepeat,this.element.style.backgroundPosition=this.Reveal.getConfig().parallaxBackgroundPosition,setTimeout((()=>{this.Reveal.getRevealElement().classList.add("has-parallax-background")}),1)):(this.element.style.backgroundImage="",this.Reveal.getRevealElement().classList.remove("has-parallax-background"))}createBackground(e,t){let i=document.createElement("div");i.className="slide-background "+e.className.replace(/present|past|future/,"");let n=document.createElement("div");return n.className="slide-background-content",i.appendChild(n),t.appendChild(i),e.slideBackgroundElement=i,e.slideBackgroundContentElement=n,this.sync(e),i}sync(e){const t=e.slideBackgroundElement,i=e.slideBackgroundContentElement,n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundVideo:e.getAttribute("data-background-video"),backgroundIframe:e.getAttribute("data-background-iframe"),backgroundColor:e.getAttribute("data-background-color"),backgroundGradient:e.getAttribute("data-background-gradient"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition"),backgroundOpacity:e.getAttribute("data-background-opacity")},s=e.hasAttribute("data-preload");e.classList.remove("has-dark-background"),e.classList.remove("has-light-background"),t.removeAttribute("data-loaded"),t.removeAttribute("data-background-hash"),t.removeAttribute("data-background-size"),t.removeAttribute("data-background-transition"),t.style.backgroundColor="",i.style.backgroundSize="",i.style.backgroundRepeat="",i.style.backgroundPosition="",i.style.backgroundImage="",i.style.opacity="",i.innerHTML="",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(svg|png|jpg|jpeg|gif|bmp|webp)([?#\s]|$)/gi.test(n.background)?e.setAttribute("data-background-image",n.background):t.style.background=n.background),(n.background||n.backgroundColor||n.backgroundGradient||n.backgroundImage||n.backgroundVideo||n.backgroundIframe)&&t.setAttribute("data-background-hash",n.background+n.backgroundSize+n.backgroundImage+n.backgroundVideo+n.backgroundIframe+n.backgroundColor+n.backgroundGradient+n.backgroundRepeat+n.backgroundPosition+n.backgroundTransition+n.backgroundOpacity),n.backgroundSize&&t.setAttribute("data-background-size",n.backgroundSize),n.backgroundColor&&(t.style.backgroundColor=n.backgroundColor),n.backgroundGradient&&(t.style.backgroundImage=n.backgroundGradient),n.backgroundTransition&&t.setAttribute("data-background-transition",n.backgroundTransition),s&&t.setAttribute("data-preload",""),n.backgroundSize&&(i.style.backgroundSize=n.backgroundSize),n.backgroundRepeat&&(i.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(i.style.backgroundPosition=n.backgroundPosition),n.backgroundOpacity&&(i.style.opacity=n.backgroundOpacity);let a=n.backgroundColor;if(!a||!E(a)){let e=window.getComputedStyle(t);e&&e.backgroundColor&&(a=e.backgroundColor)}if(a){const t=E(a);t&&0!==t.a&&("string"==typeof(r=a)&&(r=E(r)),(r?(299*r.r+587*r.g+114*r.b)/1e3:null)<128?e.classList.add("has-dark-background"):e.classList.add("has-light-background"))}var r}update(e=!1){let i=this.Reveal.getCurrentSlide(),n=this.Reveal.getIndices(),s=null,a=this.Reveal.getConfig().rtl?"future":"past",r=this.Reveal.getConfig().rtl?"past":"future";if(Array.from(this.element.childNodes).forEach(((i,o)=>{i.classList.remove("past","present","future"),on.h?i.classList.add(r):(i.classList.add("present"),s=i),(e||o===n.h)&&t(i,".slide-background").forEach(((e,t)=>{e.classList.remove("past","present","future"),tn.v?e.classList.add("future"):(e.classList.add("present"),o===n.h&&(s=e))}))})),this.previousBackground&&this.Reveal.slideContent.stopEmbeddedContent(this.previousBackground,{unloadIframes:!this.Reveal.slideContent.shouldPreload(this.previousBackground)}),s){this.Reveal.slideContent.startEmbeddedContent(s);let e=s.querySelector(".slide-background-content");if(e){let t=e.style.backgroundImage||"";/\.gif/i.test(t)&&(e.style.backgroundImage="",window.getComputedStyle(e).opacity,e.style.backgroundImage=t)}let t=this.previousBackground?this.previousBackground.getAttribute("data-background-hash"):null,i=s.getAttribute("data-background-hash");i&&i===t&&s!==this.previousBackground&&this.element.classList.add("no-transition"),this.previousBackground=s}i&&["has-light-background","has-dark-background"].forEach((e=>{i.classList.contains(e)?this.Reveal.getRevealElement().classList.add(e):this.Reveal.getRevealElement().classList.remove(e)}),this),setTimeout((()=>{this.element.classList.remove("no-transition")}),1)}updateParallax(){let e=this.Reveal.getIndices();if(this.Reveal.getConfig().parallaxBackgroundImage){let t,i,n=this.Reveal.getHorizontalSlides(),s=this.Reveal.getVerticalSlides(),a=this.element.style.backgroundSize.split(" ");1===a.length?t=i=parseInt(a[0],10):(t=parseInt(a[0],10),i=parseInt(a[1],10));let r,o,l=this.element.offsetWidth,d=n.length;r="number"==typeof this.Reveal.getConfig().parallaxBackgroundHorizontal?this.Reveal.getConfig().parallaxBackgroundHorizontal:d>1?(t-l)/(d-1):0,o=r*e.h*-1;let c,h,u=this.element.offsetHeight,g=s.length;c="number"==typeof this.Reveal.getConfig().parallaxBackgroundVertical?this.Reveal.getConfig().parallaxBackgroundVertical:(i-u)/(g-1),h=g>0?c*e.v:0,this.element.style.backgroundPosition=o+"px "+-h+"px"}}destroy(){this.element.remove()}}const S=".slides section",A=".slides>section",k=".slides>section.present>section",L=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,C=/fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/;let x=0;class P{constructor(e){this.Reveal=e}run(e,t){this.reset();let i=this.Reveal.getSlides(),n=i.indexOf(t),s=i.indexOf(e);if(e.hasAttribute("data-auto-animate")&&t.hasAttribute("data-auto-animate")&&e.getAttribute("data-auto-animate-id")===t.getAttribute("data-auto-animate-id")&&!(n>s?t:e).hasAttribute("data-auto-animate-restart")){this.autoAnimateStyleSheet=this.autoAnimateStyleSheet||l();let i=this.getAutoAnimateOptions(t);e.dataset.autoAnimate="pending",t.dataset.autoAnimate="pending",i.slideDirection=n>s?"forward":"backward";let a="none"===e.style.display;a&&(e.style.display=this.Reveal.getConfig().display);let r=this.getAutoAnimatableElements(e,t).map((e=>this.autoAnimateElements(e.from,e.to,e.options||{},i,x++)));if(a&&(e.style.display="none"),"false"!==t.dataset.autoAnimateUnmatched&&!0===this.Reveal.getConfig().autoAnimateUnmatched){let e=.8*i.duration,n=.2*i.duration;this.getUnmatchedAutoAnimateElements(t).forEach((e=>{let t=this.getAutoAnimateOptions(e,i),n="unmatched";t.duration===i.duration&&t.delay===i.delay||(n="unmatched-"+x++,r.push(`[data-auto-animate="running"] [data-auto-animate-target="${n}"] { transition: opacity ${t.duration}s ease ${t.delay}s; }`)),e.dataset.autoAnimateTarget=n}),this),r.push(`[data-auto-animate="running"] [data-auto-animate-target="unmatched"] { transition: opacity ${e}s ease ${n}s; }`)}this.autoAnimateStyleSheet.innerHTML=r.join(""),requestAnimationFrame((()=>{this.autoAnimateStyleSheet&&(getComputedStyle(this.autoAnimateStyleSheet).fontWeight,t.dataset.autoAnimate="running")})),this.Reveal.dispatchEvent({type:"autoanimate",data:{fromSlide:e,toSlide:t,sheet:this.autoAnimateStyleSheet}})}}reset(){t(this.Reveal.getRevealElement(),'[data-auto-animate]:not([data-auto-animate=""])').forEach((e=>{e.dataset.autoAnimate=""})),t(this.Reveal.getRevealElement(),"[data-auto-animate-target]").forEach((e=>{delete e.dataset.autoAnimateTarget})),this.autoAnimateStyleSheet&&this.autoAnimateStyleSheet.parentNode&&(this.autoAnimateStyleSheet.parentNode.removeChild(this.autoAnimateStyleSheet),this.autoAnimateStyleSheet=null)}autoAnimateElements(e,t,i,n,s){e.dataset.autoAnimateTarget="",t.dataset.autoAnimateTarget=s;let a=this.getAutoAnimateOptions(t,n);void 0!==i.delay&&(a.delay=i.delay),void 0!==i.duration&&(a.duration=i.duration),void 0!==i.easing&&(a.easing=i.easing);let r=this.getAutoAnimatableProperties("from",e,i),o=this.getAutoAnimatableProperties("to",t,i);if(t.classList.contains("fragment")&&(delete o.styles.opacity,e.classList.contains("fragment"))){(e.className.match(C)||[""])[0]===(t.className.match(C)||[""])[0]&&"forward"===n.slideDirection&&t.classList.add("visible","disabled")}if(!1!==i.translate||!1!==i.scale){let e=this.Reveal.getScale(),t={x:(r.x-o.x)/e,y:(r.y-o.y)/e,scaleX:r.width/o.width,scaleY:r.height/o.height};t.x=Math.round(1e3*t.x)/1e3,t.y=Math.round(1e3*t.y)/1e3,t.scaleX=Math.round(1e3*t.scaleX)/1e3,t.scaleX=Math.round(1e3*t.scaleX)/1e3;let n=!1!==i.translate&&(0!==t.x||0!==t.y),s=!1!==i.scale&&(0!==t.scaleX||0!==t.scaleY);if(n||s){let e=[];n&&e.push(`translate(${t.x}px, ${t.y}px)`),s&&e.push(`scale(${t.scaleX}, ${t.scaleY})`),r.styles.transform=e.join(" "),r.styles["transform-origin"]="top left",o.styles.transform="none"}}for(let e in o.styles){const t=o.styles[e],i=r.styles[e];t===i?delete o.styles[e]:(!0===t.explicitValue&&(o.styles[e]=t.value),!0===i.explicitValue&&(r.styles[e]=i.value))}let l="",d=Object.keys(o.styles);if(d.length>0){r.styles.transition="none",o.styles.transition=`all ${a.duration}s ${a.easing} ${a.delay}s`,o.styles["transition-property"]=d.join(", "),o.styles["will-change"]=d.join(", "),l='[data-auto-animate-target="'+s+'"] {'+Object.keys(r.styles).map((e=>e+": "+r.styles[e]+" !important;")).join("")+'}[data-auto-animate="running"] [data-auto-animate-target="'+s+'"] {'+Object.keys(o.styles).map((e=>e+": "+o.styles[e]+" !important;")).join("")+"}"}return l}getAutoAnimateOptions(t,i){let n={easing:this.Reveal.getConfig().autoAnimateEasing,duration:this.Reveal.getConfig().autoAnimateDuration,delay:0};if(n=e(n,i),t.parentNode){let e=r(t.parentNode,"[data-auto-animate-target]");e&&(n=this.getAutoAnimateOptions(e,n))}return t.dataset.autoAnimateEasing&&(n.easing=t.dataset.autoAnimateEasing),t.dataset.autoAnimateDuration&&(n.duration=parseFloat(t.dataset.autoAnimateDuration)),t.dataset.autoAnimateDelay&&(n.delay=parseFloat(t.dataset.autoAnimateDelay)),n}getAutoAnimatableProperties(e,t,i){let n=this.Reveal.getConfig(),s={styles:[]};if(!1!==i.translate||!1!==i.scale){let e;if("function"==typeof i.measure)e=i.measure(t);else if(n.center)e=t.getBoundingClientRect();else{let i=this.Reveal.getScale();e={x:t.offsetLeft*i,y:t.offsetTop*i,width:t.offsetWidth*i,height:t.offsetHeight*i}}s.x=e.x,s.y=e.y,s.width=e.width,s.height=e.height}const a=getComputedStyle(t);return(i.styles||n.autoAnimateStyles).forEach((t=>{let i;"string"==typeof t&&(t={property:t}),void 0!==t.from&&"from"===e?i={value:t.from,explicitValue:!0}:void 0!==t.to&&"to"===e?i={value:t.to,explicitValue:!0}:("line-height"===t.property&&(i=parseFloat(a["line-height"])/parseFloat(a["font-size"])),isNaN(i)&&(i=a[t.property])),""!==i&&(s.styles[t.property]=i)})),s}getAutoAnimatableElements(e,t){let i=("function"==typeof this.Reveal.getConfig().autoAnimateMatcher?this.Reveal.getConfig().autoAnimateMatcher:this.getAutoAnimatePairs).call(this,e,t),n=[];return i.filter(((e,t)=>{if(-1===n.indexOf(e.to))return n.push(e.to),!0}))}getAutoAnimatePairs(e,t){let i=[];const n="h1, h2, h3, h4, h5, h6, p, li";return this.findAutoAnimateMatches(i,e,t,"[data-id]",(e=>e.nodeName+":::"+e.getAttribute("data-id"))),this.findAutoAnimateMatches(i,e,t,n,(e=>e.nodeName+":::"+e.innerText)),this.findAutoAnimateMatches(i,e,t,"img, video, iframe",(e=>e.nodeName+":::"+(e.getAttribute("src")||e.getAttribute("data-src")))),this.findAutoAnimateMatches(i,e,t,"pre",(e=>e.nodeName+":::"+e.innerText)),i.forEach((e=>{a(e.from,n)?e.options={scale:!1}:a(e.from,"pre")&&(e.options={scale:!1,styles:["width","height"]},this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-code",(e=>e.textContent),{scale:!1,styles:[],measure:this.getLocalBoundingBox.bind(this)}),this.findAutoAnimateMatches(i,e.from,e.to,".hljs .hljs-ln-line[data-line-number]",(e=>e.getAttribute("data-line-number")),{scale:!1,styles:["width"],measure:this.getLocalBoundingBox.bind(this)}))}),this),i}getLocalBoundingBox(e){const t=this.Reveal.getScale();return{x:Math.round(e.offsetLeft*t*100)/100,y:Math.round(e.offsetTop*t*100)/100,width:Math.round(e.offsetWidth*t*100)/100,height:Math.round(e.offsetHeight*t*100)/100}}findAutoAnimateMatches(e,t,i,n,s,a){let r={},o={};[].slice.call(t.querySelectorAll(n)).forEach(((e,t)=>{const i=s(e);"string"==typeof i&&i.length&&(r[i]=r[i]||[],r[i].push(e))})),[].slice.call(i.querySelectorAll(n)).forEach(((t,i)=>{const n=s(t);let l;if(o[n]=o[n]||[],o[n].push(t),r[n]){const e=o[n].length-1,t=r[n].length-1;r[n][e]?(l=r[n][e],r[n][e]=null):r[n][t]&&(l=r[n][t],r[n][t]=null)}l&&e.push({from:l,to:t,options:a})}))}getUnmatchedAutoAnimateElements(e){return[].slice.call(e.children).reduce(((e,t)=>{const i=t.querySelector("[data-auto-animate-target]");return t.hasAttribute("data-auto-animate-target")||i||e.push(t),t.querySelector("[data-auto-animate-target]")&&(e=e.concat(this.getUnmatchedAutoAnimateElements(t))),e}),[])}}class N{constructor(e){this.Reveal=e}configure(e,t){!1===e.fragments?this.disable():!1===t.fragments&&this.enable()}disable(){t(this.Reveal.getSlidesElement(),".fragment").forEach((e=>{e.classList.add("visible"),e.classList.remove("current-fragment")}))}enable(){t(this.Reveal.getSlidesElement(),".fragment").forEach((e=>{e.classList.remove("visible"),e.classList.remove("current-fragment")}))}availableRoutes(){let e=this.Reveal.getCurrentSlide();if(e&&this.Reveal.getConfig().fragments){let t=e.querySelectorAll(".fragment:not(.disabled)"),i=e.querySelectorAll(".fragment:not(.disabled):not(.visible)");return{prev:t.length-i.length>0,next:!!i.length}}return{prev:!1,next:!1}}sort(e,t=!1){e=Array.from(e);let i=[],n=[],s=[];e.forEach((e=>{if(e.hasAttribute("data-fragment-index")){let t=parseInt(e.getAttribute("data-fragment-index"),10);i[t]||(i[t]=[]),i[t].push(e)}else n.push([e])})),i=i.concat(n);let a=0;return i.forEach((e=>{e.forEach((e=>{s.push(e),e.setAttribute("data-fragment-index",a)})),a++})),!0===t?i:s}sortAll(){this.Reveal.getHorizontalSlides().forEach((e=>{let i=t(e,"section");i.forEach(((e,t)=>{this.sort(e.querySelectorAll(".fragment"))}),this),0===i.length&&this.sort(e.querySelectorAll(".fragment"))}))}update(e,t){let i={shown:[],hidden:[]},n=this.Reveal.getCurrentSlide();if(n&&this.Reveal.getConfig().fragments&&(t=t||this.sort(n.querySelectorAll(".fragment"))).length){let s=0;if("number"!=typeof e){let t=this.sort(n.querySelectorAll(".fragment.visible")).pop();t&&(e=parseInt(t.getAttribute("data-fragment-index")||0,10))}Array.from(t).forEach(((t,n)=>{if(t.hasAttribute("data-fragment-index")&&(n=parseInt(t.getAttribute("data-fragment-index"),10)),s=Math.max(s,n),n<=e){let s=t.classList.contains("visible");t.classList.add("visible"),t.classList.remove("current-fragment"),n===e&&(this.Reveal.announceStatus(this.Reveal.getStatusText(t)),t.classList.add("current-fragment"),this.Reveal.slideContent.startEmbeddedContent(t)),s||(i.shown.push(t),this.Reveal.dispatchEvent({target:t,type:"visible",bubbles:!1}))}else{let e=t.classList.contains("visible");t.classList.remove("visible"),t.classList.remove("current-fragment"),e&&(this.Reveal.slideContent.stopEmbeddedContent(t),i.hidden.push(t),this.Reveal.dispatchEvent({target:t,type:"hidden",bubbles:!1}))}})),e="number"==typeof e?e:-1,e=Math.max(Math.min(e,s),-1),n.setAttribute("data-fragment",e)}return i}sync(e=this.Reveal.getCurrentSlide()){return this.sort(e.querySelectorAll(".fragment"))}goto(e,t=0){let i=this.Reveal.getCurrentSlide();if(i&&this.Reveal.getConfig().fragments){let n=this.sort(i.querySelectorAll(".fragment:not(.disabled)"));if(n.length){if("number"!=typeof e){let t=this.sort(i.querySelectorAll(".fragment:not(.disabled).visible")).pop();e=t?parseInt(t.getAttribute("data-fragment-index")||0,10):-1}e+=t;let s=this.update(e,n);return s.hidden.length&&this.Reveal.dispatchEvent({type:"fragmenthidden",data:{fragment:s.hidden[0],fragments:s.hidden}}),s.shown.length&&this.Reveal.dispatchEvent({type:"fragmentshown",data:{fragment:s.shown[0],fragments:s.shown}}),this.Reveal.controls.update(),this.Reveal.progress.update(),this.Reveal.getConfig().fragmentInURL&&this.Reveal.location.writeURL(),!(!s.shown.length&&!s.hidden.length)}}return!1}next(){return this.goto(null,1)}prev(){return this.goto(null,-1)}}class M{constructor(e){this.Reveal=e,this.active=!1,this.onSlideClicked=this.onSlideClicked.bind(this)}activate(){if(this.Reveal.getConfig().overview&&!this.isActive()){this.active=!0,this.Reveal.getRevealElement().classList.add("overview"),this.Reveal.cancelAutoSlide(),this.Reveal.getSlidesElement().appendChild(this.Reveal.getBackgroundsElement()),t(this.Reveal.getRevealElement(),S).forEach((e=>{e.classList.contains("stack")||e.addEventListener("click",this.onSlideClicked,!0)}));const e=70,i=this.Reveal.getComputedSlideSize();this.overviewSlideWidth=i.width+e,this.overviewSlideHeight=i.height+e,this.Reveal.getConfig().rtl&&(this.overviewSlideWidth=-this.overviewSlideWidth),this.Reveal.updateSlidesVisibility(),this.layout(),this.update(),this.Reveal.layout();const n=this.Reveal.getIndices();this.Reveal.dispatchEvent({type:"overviewshown",data:{indexh:n.h,indexv:n.v,currentSlide:this.Reveal.getCurrentSlide()}})}}layout(){this.Reveal.getHorizontalSlides().forEach(((e,i)=>{e.setAttribute("data-index-h",i),s(e,"translate3d("+i*this.overviewSlideWidth+"px, 0, 0)"),e.classList.contains("stack")&&t(e,"section").forEach(((e,t)=>{e.setAttribute("data-index-h",i),e.setAttribute("data-index-v",t),s(e,"translate3d(0, "+t*this.overviewSlideHeight+"px, 0)")}))})),Array.from(this.Reveal.getBackgroundsElement().childNodes).forEach(((e,i)=>{s(e,"translate3d("+i*this.overviewSlideWidth+"px, 0, 0)"),t(e,".slide-background").forEach(((e,t)=>{s(e,"translate3d(0, "+t*this.overviewSlideHeight+"px, 0)")}))}))}update(){const e=Math.min(window.innerWidth,window.innerHeight),t=Math.max(e/5,150)/e,i=this.Reveal.getIndices();this.Reveal.transformSlides({overview:["scale("+t+")","translateX("+-i.h*this.overviewSlideWidth+"px)","translateY("+-i.v*this.overviewSlideHeight+"px)"].join(" ")})}deactivate(){if(this.Reveal.getConfig().overview){this.active=!1,this.Reveal.getRevealElement().classList.remove("overview"),this.Reveal.getRevealElement().classList.add("overview-deactivating"),setTimeout((()=>{this.Reveal.getRevealElement().classList.remove("overview-deactivating")}),1),this.Reveal.getRevealElement().appendChild(this.Reveal.getBackgroundsElement()),t(this.Reveal.getRevealElement(),S).forEach((e=>{s(e,""),e.removeEventListener("click",this.onSlideClicked,!0)})),t(this.Reveal.getBackgroundsElement(),".slide-background").forEach((e=>{s(e,"")})),this.Reveal.transformSlides({overview:""});const e=this.Reveal.getIndices();this.Reveal.slide(e.h,e.v),this.Reveal.layout(),this.Reveal.cueAutoSlide(),this.Reveal.dispatchEvent({type:"overviewhidden",data:{indexh:e.h,indexv:e.v,currentSlide:this.Reveal.getCurrentSlide()}})}}toggle(e){"boolean"==typeof e?e?this.activate():this.deactivate():this.isActive()?this.deactivate():this.activate()}isActive(){return this.active}onSlideClicked(e){if(this.isActive()){e.preventDefault();let t=e.target;for(;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(this.deactivate(),t.nodeName.match(/section/gi))){let e=parseInt(t.getAttribute("data-index-h"),10),i=parseInt(t.getAttribute("data-index-v"),10);this.Reveal.slide(e,i)}}}}class I{constructor(e){this.Reveal=e,this.shortcuts={},this.bindings={},this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onDocumentKeyPress=this.onDocumentKeyPress.bind(this)}configure(e,t){"linear"===e.navigationMode?(this.shortcuts["→ , ↓ , SPACE , N , L , J"]="Next slide",this.shortcuts["← , ↑ , P , H , K"]="Previous slide"):(this.shortcuts["N , SPACE"]="Next slide",this.shortcuts["P , Shift SPACE"]="Previous slide",this.shortcuts["← , H"]="Navigate left",this.shortcuts["→ , L"]="Navigate right",this.shortcuts["↑ , K"]="Navigate up",this.shortcuts["↓ , J"]="Navigate down"),this.shortcuts["Alt + ←/↑/→/↓"]="Navigate without fragments",this.shortcuts["Shift + ←/↑/→/↓"]="Jump to first/last slide",this.shortcuts["B , ."]="Pause",this.shortcuts.F="Fullscreen",this.shortcuts.G="Jump to slide",this.shortcuts["ESC, O"]="Slide overview"}bind(){document.addEventListener("keydown",this.onDocumentKeyDown,!1),document.addEventListener("keypress",this.onDocumentKeyPress,!1)}unbind(){document.removeEventListener("keydown",this.onDocumentKeyDown,!1),document.removeEventListener("keypress",this.onDocumentKeyPress,!1)}addKeyBinding(e,t){"object"==typeof e&&e.keyCode?this.bindings[e.keyCode]={callback:t,key:e.key,description:e.description}:this.bindings[e]={callback:t,key:null,description:null}}removeKeyBinding(e){delete this.bindings[e]}triggerKey(e){this.onDocumentKeyDown({keyCode:e})}registerKeyboardShortcut(e,t){this.shortcuts[e]=t}getShortcuts(){return this.shortcuts}getBindings(){return this.bindings}onDocumentKeyPress(e){e.shiftKey&&63===e.charCode&&this.Reveal.toggleHelp()}onDocumentKeyDown(e){let t=this.Reveal.getConfig();if("function"==typeof t.keyboardCondition&&!1===t.keyboardCondition(e))return!0;if("focused"===t.keyboardCondition&&!this.Reveal.isFocused())return!0;let i=e.keyCode,n=!this.Reveal.isAutoSliding();this.Reveal.onUserInput(e);let s=document.activeElement&&!0===document.activeElement.isContentEditable,a=document.activeElement&&document.activeElement.tagName&&/input|textarea/i.test(document.activeElement.tagName),r=document.activeElement&&document.activeElement.className&&/speaker-notes/i.test(document.activeElement.className),o=!(-1!==[32,37,38,39,40,78,80].indexOf(e.keyCode)&&e.shiftKey||e.altKey)&&(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey);if(s||a||r||o)return;let l,d=[66,86,190,191];if("object"==typeof t.keyboard)for(l in t.keyboard)"togglePause"===t.keyboard[l]&&d.push(parseInt(l,10));if(this.Reveal.isPaused()&&-1===d.indexOf(i))return!1;let c="linear"===t.navigationMode||!this.Reveal.hasHorizontalSlides()||!this.Reveal.hasVerticalSlides(),h=!1;if("object"==typeof t.keyboard)for(l in t.keyboard)if(parseInt(l,10)===i){let i=t.keyboard[l];"function"==typeof i?i.apply(null,[e]):"string"==typeof i&&"function"==typeof this.Reveal[i]&&this.Reveal[i].call(),h=!0}if(!1===h)for(l in this.bindings)if(parseInt(l,10)===i){let t=this.bindings[l].callback;"function"==typeof t?t.apply(null,[e]):"string"==typeof t&&"function"==typeof this.Reveal[t]&&this.Reveal[t].call(),h=!0}!1===h&&(h=!0,80===i||33===i?this.Reveal.prev({skipFragments:e.altKey}):78===i||34===i?this.Reveal.next({skipFragments:e.altKey}):72===i||37===i?e.shiftKey?this.Reveal.slide(0):!this.Reveal.overview.isActive()&&c?this.Reveal.prev({skipFragments:e.altKey}):this.Reveal.left({skipFragments:e.altKey}):76===i||39===i?e.shiftKey?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):!this.Reveal.overview.isActive()&&c?this.Reveal.next({skipFragments:e.altKey}):this.Reveal.right({skipFragments:e.altKey}):75===i||38===i?e.shiftKey?this.Reveal.slide(void 0,0):!this.Reveal.overview.isActive()&&c?this.Reveal.prev({skipFragments:e.altKey}):this.Reveal.up({skipFragments:e.altKey}):74===i||40===i?e.shiftKey?this.Reveal.slide(void 0,Number.MAX_VALUE):!this.Reveal.overview.isActive()&&c?this.Reveal.next({skipFragments:e.altKey}):this.Reveal.down({skipFragments:e.altKey}):36===i?this.Reveal.slide(0):35===i?this.Reveal.slide(this.Reveal.getHorizontalSlides().length-1):32===i?(this.Reveal.overview.isActive()&&this.Reveal.overview.deactivate(),e.shiftKey?this.Reveal.prev({skipFragments:e.altKey}):this.Reveal.next({skipFragments:e.altKey})):58===i||59===i||66===i||86===i||190===i||191===i?this.Reveal.togglePause():70===i?(e=>{let t=(e=e||document.documentElement).requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)})(t.embedded?this.Reveal.getViewportElement():document.documentElement):65===i?t.autoSlideStoppable&&this.Reveal.toggleAutoSlide(n):71===i?t.jumpToSlide&&this.Reveal.toggleJumpToSlide():h=!1),h?e.preventDefault&&e.preventDefault():27!==i&&79!==i||(!1===this.Reveal.closeOverlay()&&this.Reveal.overview.toggle(),e.preventDefault&&e.preventDefault()),this.Reveal.cueAutoSlide()}}class D{constructor(e){var t,i,n;n=1e3,(i="MAX_REPLACE_STATE_FREQUENCY")in(t=this)?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,this.Reveal=e,this.writeURLTimeout=0,this.replaceStateTimestamp=0,this.onWindowHashChange=this.onWindowHashChange.bind(this)}bind(){window.addEventListener("hashchange",this.onWindowHashChange,!1)}unbind(){window.removeEventListener("hashchange",this.onWindowHashChange,!1)}getIndicesFromHash(e=window.location.hash,t={}){let i=e.replace(/^#\/?/,""),n=i.split("/");if(/^[0-9]*$/.test(n[0])||!i.length){const e=this.Reveal.getConfig();let i,s=e.hashOneBasedIndex||t.oneBasedIndex?1:0,a=parseInt(n[0],10)-s||0,r=parseInt(n[1],10)-s||0;return e.fragmentInURL&&(i=parseInt(n[2],10),isNaN(i)&&(i=void 0)),{h:a,v:r,f:i}}{let e,t;/\/[-\d]+$/g.test(i)&&(t=parseInt(i.split("/").pop(),10),t=isNaN(t)?void 0:t,i=i.split("/").shift());try{e=document.getElementById(decodeURIComponent(i))}catch(e){}if(e)return{...this.Reveal.getIndices(e),f:t}}return null}readURL(){const e=this.Reveal.getIndices(),t=this.getIndicesFromHash();t?t.h===e.h&&t.v===e.v&&void 0===t.f||this.Reveal.slide(t.h,t.v,t.f):this.Reveal.slide(e.h||0,e.v||0)}writeURL(e){let t=this.Reveal.getConfig(),i=this.Reveal.getCurrentSlide();if(clearTimeout(this.writeURLTimeout),"number"==typeof e)this.writeURLTimeout=setTimeout(this.writeURL,e);else if(i){let e=this.getHash();t.history?window.location.hash=e:t.hash&&("/"===e?this.debouncedReplaceState(window.location.pathname+window.location.search):this.debouncedReplaceState("#"+e))}}replaceState(e){window.history.replaceState(null,null,e),this.replaceStateTimestamp=Date.now()}debouncedReplaceState(e){clearTimeout(this.replaceStateTimeout),Date.now()-this.replaceStateTimestamp>this.MAX_REPLACE_STATE_FREQUENCY?this.replaceState(e):this.replaceStateTimeout=setTimeout((()=>this.replaceState(e)),this.MAX_REPLACE_STATE_FREQUENCY)}getHash(e){let t="/",i=e||this.Reveal.getCurrentSlide(),n=i?i.getAttribute("id"):null;n&&(n=encodeURIComponent(n));let s=this.Reveal.getIndices(e);if(this.Reveal.getConfig().fragmentInURL||(s.f=void 0),"string"==typeof n&&n.length)t="/"+n,s.f>=0&&(t+="/"+s.f);else{let e=this.Reveal.getConfig().hashOneBasedIndex?1:0;(s.h>0||s.v>0||s.f>=0)&&(t+=s.h+e),(s.v>0||s.f>=0)&&(t+="/"+(s.v+e)),s.f>=0&&(t+="/"+s.f)}return t}onWindowHashChange(e){this.readURL()}}class T{constructor(e){this.Reveal=e,this.onNavigateLeftClicked=this.onNavigateLeftClicked.bind(this),this.onNavigateRightClicked=this.onNavigateRightClicked.bind(this),this.onNavigateUpClicked=this.onNavigateUpClicked.bind(this),this.onNavigateDownClicked=this.onNavigateDownClicked.bind(this),this.onNavigatePrevClicked=this.onNavigatePrevClicked.bind(this),this.onNavigateNextClicked=this.onNavigateNextClicked.bind(this)}render(){const e=this.Reveal.getConfig().rtl,i=this.Reveal.getRevealElement();this.element=document.createElement("aside"),this.element.className="controls",this.element.innerHTML=`\n\t\t\t\n\t\t\t\n\t\t\t`,this.Reveal.getRevealElement().appendChild(this.element),this.controlsLeft=t(i,".navigate-left"),this.controlsRight=t(i,".navigate-right"),this.controlsUp=t(i,".navigate-up"),this.controlsDown=t(i,".navigate-down"),this.controlsPrev=t(i,".navigate-prev"),this.controlsNext=t(i,".navigate-next"),this.controlsRightArrow=this.element.querySelector(".navigate-right"),this.controlsLeftArrow=this.element.querySelector(".navigate-left"),this.controlsDownArrow=this.element.querySelector(".navigate-down")}configure(e,t){this.element.style.display=e.controls?"block":"none",this.element.setAttribute("data-controls-layout",e.controlsLayout),this.element.setAttribute("data-controls-back-arrows",e.controlsBackArrows)}bind(){let e=["touchstart","click"];v&&(e=["touchstart"]),e.forEach((e=>{this.controlsLeft.forEach((t=>t.addEventListener(e,this.onNavigateLeftClicked,!1))),this.controlsRight.forEach((t=>t.addEventListener(e,this.onNavigateRightClicked,!1))),this.controlsUp.forEach((t=>t.addEventListener(e,this.onNavigateUpClicked,!1))),this.controlsDown.forEach((t=>t.addEventListener(e,this.onNavigateDownClicked,!1))),this.controlsPrev.forEach((t=>t.addEventListener(e,this.onNavigatePrevClicked,!1))),this.controlsNext.forEach((t=>t.addEventListener(e,this.onNavigateNextClicked,!1)))}))}unbind(){["touchstart","click"].forEach((e=>{this.controlsLeft.forEach((t=>t.removeEventListener(e,this.onNavigateLeftClicked,!1))),this.controlsRight.forEach((t=>t.removeEventListener(e,this.onNavigateRightClicked,!1))),this.controlsUp.forEach((t=>t.removeEventListener(e,this.onNavigateUpClicked,!1))),this.controlsDown.forEach((t=>t.removeEventListener(e,this.onNavigateDownClicked,!1))),this.controlsPrev.forEach((t=>t.removeEventListener(e,this.onNavigatePrevClicked,!1))),this.controlsNext.forEach((t=>t.removeEventListener(e,this.onNavigateNextClicked,!1)))}))}update(){let e=this.Reveal.availableRoutes();[...this.controlsLeft,...this.controlsRight,...this.controlsUp,...this.controlsDown,...this.controlsPrev,...this.controlsNext].forEach((e=>{e.classList.remove("enabled","fragmented"),e.setAttribute("disabled","disabled")})),e.left&&this.controlsLeft.forEach((e=>{e.classList.add("enabled"),e.removeAttribute("disabled")})),e.right&&this.controlsRight.forEach((e=>{e.classList.add("enabled"),e.removeAttribute("disabled")})),e.up&&this.controlsUp.forEach((e=>{e.classList.add("enabled"),e.removeAttribute("disabled")})),e.down&&this.controlsDown.forEach((e=>{e.classList.add("enabled"),e.removeAttribute("disabled")})),(e.left||e.up)&&this.controlsPrev.forEach((e=>{e.classList.add("enabled"),e.removeAttribute("disabled")})),(e.right||e.down)&&this.controlsNext.forEach((e=>{e.classList.add("enabled"),e.removeAttribute("disabled")}));let t=this.Reveal.getCurrentSlide();if(t){let e=this.Reveal.fragments.availableRoutes();e.prev&&this.controlsPrev.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),e.next&&this.controlsNext.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),this.Reveal.isVerticalSlide(t)?(e.prev&&this.controlsUp.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),e.next&&this.controlsDown.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")}))):(e.prev&&this.controlsLeft.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})),e.next&&this.controlsRight.forEach((e=>{e.classList.add("fragmented","enabled"),e.removeAttribute("disabled")})))}if(this.Reveal.getConfig().controlsTutorial){let t=this.Reveal.getIndices();!this.Reveal.hasNavigatedVertically()&&e.down?this.controlsDownArrow.classList.add("highlight"):(this.controlsDownArrow.classList.remove("highlight"),this.Reveal.getConfig().rtl?!this.Reveal.hasNavigatedHorizontally()&&e.left&&0===t.v?this.controlsLeftArrow.classList.add("highlight"):this.controlsLeftArrow.classList.remove("highlight"):!this.Reveal.hasNavigatedHorizontally()&&e.right&&0===t.v?this.controlsRightArrow.classList.add("highlight"):this.controlsRightArrow.classList.remove("highlight"))}}destroy(){this.unbind(),this.element.remove()}onNavigateLeftClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.prev():this.Reveal.left()}onNavigateRightClicked(e){e.preventDefault(),this.Reveal.onUserInput(),"linear"===this.Reveal.getConfig().navigationMode?this.Reveal.next():this.Reveal.right()}onNavigateUpClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.up()}onNavigateDownClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.down()}onNavigatePrevClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.prev()}onNavigateNextClicked(e){e.preventDefault(),this.Reveal.onUserInput(),this.Reveal.next()}}class F{constructor(e){this.Reveal=e,this.onProgressClicked=this.onProgressClicked.bind(this)}render(){this.element=document.createElement("div"),this.element.className="progress",this.Reveal.getRevealElement().appendChild(this.element),this.bar=document.createElement("span"),this.element.appendChild(this.bar)}configure(e,t){this.element.style.display=e.progress?"block":"none"}bind(){this.Reveal.getConfig().progress&&this.element&&this.element.addEventListener("click",this.onProgressClicked,!1)}unbind(){this.Reveal.getConfig().progress&&this.element&&this.element.removeEventListener("click",this.onProgressClicked,!1)}update(){if(this.Reveal.getConfig().progress&&this.bar){let e=this.Reveal.getProgress();this.Reveal.getTotalSlides()<2&&(e=0),this.bar.style.transform="scaleX("+e+")"}}getMaxWidth(){return this.Reveal.getRevealElement().offsetWidth}onProgressClicked(e){this.Reveal.onUserInput(e),e.preventDefault();let t=this.Reveal.getSlides(),i=t.length,n=Math.floor(e.clientX/this.getMaxWidth()*i);this.Reveal.getConfig().rtl&&(n=i-n);let s=this.Reveal.getIndices(t[n]);this.Reveal.slide(s.h,s.v)}destroy(){this.element.remove()}}class z{constructor(e){this.Reveal=e,this.lastMouseWheelStep=0,this.cursorHidden=!1,this.cursorInactiveTimeout=0,this.onDocumentCursorActive=this.onDocumentCursorActive.bind(this),this.onDocumentMouseScroll=this.onDocumentMouseScroll.bind(this)}configure(e,t){e.mouseWheel?(document.addEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.addEventListener("mousewheel",this.onDocumentMouseScroll,!1)):(document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1)),e.hideInactiveCursor?(document.addEventListener("mousemove",this.onDocumentCursorActive,!1),document.addEventListener("mousedown",this.onDocumentCursorActive,!1)):(this.showCursor(),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1))}showCursor(){this.cursorHidden&&(this.cursorHidden=!1,this.Reveal.getRevealElement().style.cursor="")}hideCursor(){!1===this.cursorHidden&&(this.cursorHidden=!0,this.Reveal.getRevealElement().style.cursor="none")}destroy(){this.showCursor(),document.removeEventListener("DOMMouseScroll",this.onDocumentMouseScroll,!1),document.removeEventListener("mousewheel",this.onDocumentMouseScroll,!1),document.removeEventListener("mousemove",this.onDocumentCursorActive,!1),document.removeEventListener("mousedown",this.onDocumentCursorActive,!1)}onDocumentCursorActive(e){this.showCursor(),clearTimeout(this.cursorInactiveTimeout),this.cursorInactiveTimeout=setTimeout(this.hideCursor.bind(this),this.Reveal.getConfig().hideCursorTime)}onDocumentMouseScroll(e){if(Date.now()-this.lastMouseWheelStep>1e3){this.lastMouseWheelStep=Date.now();let t=e.detail||-e.wheelDelta;t>0?this.Reveal.next():t<0&&this.Reveal.prev()}}}const H=(e,t)=>{const i=document.createElement("script");i.type="text/javascript",i.async=!1,i.defer=!1,i.src=e,"function"==typeof t&&(i.onload=i.onreadystatechange=e=>{("load"===e.type||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=i.onerror=null,t())},i.onerror=e=>{i.onload=i.onreadystatechange=i.onerror=null,t(new Error("Failed loading script: "+i.src+"\n"+e))});const n=document.querySelector("head");n.insertBefore(i,n.lastChild)};class B{constructor(e){this.Reveal=e,this.state="idle",this.registeredPlugins={},this.asyncDependencies=[]}load(e,t){return this.state="loading",e.forEach(this.registerPlugin.bind(this)),new Promise((e=>{let i=[],n=0;if(t.forEach((e=>{e.condition&&!e.condition()||(e.async?this.asyncDependencies.push(e):i.push(e))})),i.length){n=i.length;const t=t=>{t&&"function"==typeof t.callback&&t.callback(),0==--n&&this.initPlugins().then(e)};i.forEach((e=>{"string"==typeof e.id?(this.registerPlugin(e),t(e)):"string"==typeof e.src?H(e.src,(()=>t(e))):(console.warn("Unrecognized plugin format",e),t())}))}else this.initPlugins().then(e)}))}initPlugins(){return new Promise((e=>{let t=Object.values(this.registeredPlugins),i=t.length;if(0===i)this.loadAsync().then(e);else{let n,s=()=>{0==--i?this.loadAsync().then(e):n()},a=0;n=()=>{let e=t[a++];if("function"==typeof e.init){let t=e.init(this.Reveal);t&&"function"==typeof t.then?t.then(s):s()}else s()},n()}}))}loadAsync(){return this.state="loaded",this.asyncDependencies.length&&this.asyncDependencies.forEach((e=>{H(e.src,e.callback)})),Promise.resolve()}registerPlugin(e){2===arguments.length&&"string"==typeof arguments[0]?(e=arguments[1]).id=arguments[0]:"function"==typeof e&&(e=e());let t=e.id;"string"!=typeof t?console.warn("Unrecognized plugin format; can't find plugin.id",e):void 0===this.registeredPlugins[t]?(this.registeredPlugins[t]=e,"loaded"===this.state&&"function"==typeof e.init&&e.init(this.Reveal)):console.warn('reveal.js: "'+t+'" plugin has already been registered')}hasPlugin(e){return!!this.registeredPlugins[e]}getPlugin(e){return this.registeredPlugins[e]}getRegisteredPlugins(){return this.registeredPlugins}destroy(){Object.values(this.registeredPlugins).forEach((e=>{"function"==typeof e.destroy&&e.destroy()})),this.registeredPlugins={},this.asyncDependencies=[]}}class O{constructor(e){this.Reveal=e}async setupPDF(){const e=this.Reveal.getConfig(),i=t(this.Reveal.getRevealElement(),S),n=e.slideNumber&&/all|print/i.test(e.showSlideNumber),s=this.Reveal.getComputedSlideSize(window.innerWidth,window.innerHeight),a=Math.floor(s.width*(1+e.margin)),r=Math.floor(s.height*(1+e.margin)),o=s.width,d=s.height;await new Promise(requestAnimationFrame),l("@page{size:"+a+"px "+r+"px; margin: 0px;}"),l(".reveal section>img, .reveal section>video, .reveal section>iframe{max-width: "+o+"px; max-height:"+d+"px}"),document.documentElement.classList.add("print-pdf"),document.body.style.width=a+"px",document.body.style.height=r+"px";const c=document.querySelector(".reveal-viewport");let h;if(c){const e=window.getComputedStyle(c);e&&e.background&&(h=e.background)}await new Promise(requestAnimationFrame),this.Reveal.layoutSlideContents(o,d),await new Promise(requestAnimationFrame);const u=i.map((e=>e.scrollHeight)),g=[],v=i[0].parentNode;let p=1;i.forEach((function(i,s){if(!1===i.classList.contains("stack")){let l=(a-o)/2,c=(r-d)/2;const v=u[s];let m=Math.max(Math.ceil(v/r),1);m=Math.min(m,e.pdfMaxPagesPerSlide),(1===m&&e.center||i.classList.contains("center"))&&(c=Math.max((r-v)/2,0));const f=document.createElement("div");if(g.push(f),f.className="pdf-page",f.style.height=(r+e.pdfPageHeightOffset)*m+"px",h&&(f.style.background=h),f.appendChild(i),i.style.left=l+"px",i.style.top=c+"px",i.style.width=o+"px",this.Reveal.slideContent.layout(i),i.slideBackgroundElement&&f.insertBefore(i.slideBackgroundElement,i),e.showNotes){const t=this.Reveal.getSlideNotes(i);if(t){const i=8,n="string"==typeof e.showNotes?e.showNotes:"inline",s=document.createElement("div");s.classList.add("speaker-notes"),s.classList.add("speaker-notes-pdf"),s.setAttribute("data-layout",n),s.innerHTML=t,"separate-page"===n?g.push(s):(s.style.left=i+"px",s.style.bottom=i+"px",s.style.width=a-2*i+"px",f.appendChild(s))}}if(n){const e=document.createElement("div");e.classList.add("slide-number"),e.classList.add("slide-number-pdf"),e.innerHTML=p++,f.appendChild(e)}if(e.pdfSeparateFragments){const e=this.Reveal.fragments.sort(f.querySelectorAll(".fragment"),!0);let t;e.forEach((function(e,i){t&&t.forEach((function(e){e.classList.remove("current-fragment")})),e.forEach((function(e){e.classList.add("visible","current-fragment")}),this);const s=f.cloneNode(!0);if(n){const e=i+1;s.querySelector(".slide-number-pdf").innerHTML+="."+e}g.push(s),t=e}),this),e.forEach((function(e){e.forEach((function(e){e.classList.remove("visible","current-fragment")}))}))}else t(f,".fragment:not(.fade-out)").forEach((function(e){e.classList.add("visible")}))}}),this),await new Promise(requestAnimationFrame),g.forEach((e=>v.appendChild(e))),this.Reveal.slideContent.layout(this.Reveal.getSlidesElement()),this.Reveal.dispatchEvent({type:"pdf-ready"})}isPrintingPDF(){return/print-pdf/gi.test(window.location.search)}}class q{constructor(e){this.Reveal=e,this.touchStartX=0,this.touchStartY=0,this.touchStartCount=0,this.touchCaptured=!1,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)}bind(){let e=this.Reveal.getRevealElement();"onpointerdown"in window?(e.addEventListener("pointerdown",this.onPointerDown,!1),e.addEventListener("pointermove",this.onPointerMove,!1),e.addEventListener("pointerup",this.onPointerUp,!1)):window.navigator.msPointerEnabled?(e.addEventListener("MSPointerDown",this.onPointerDown,!1),e.addEventListener("MSPointerMove",this.onPointerMove,!1),e.addEventListener("MSPointerUp",this.onPointerUp,!1)):(e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1))}unbind(){let e=this.Reveal.getRevealElement();e.removeEventListener("pointerdown",this.onPointerDown,!1),e.removeEventListener("pointermove",this.onPointerMove,!1),e.removeEventListener("pointerup",this.onPointerUp,!1),e.removeEventListener("MSPointerDown",this.onPointerDown,!1),e.removeEventListener("MSPointerMove",this.onPointerMove,!1),e.removeEventListener("MSPointerUp",this.onPointerUp,!1),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1)}isSwipePrevented(e){if(a(e,"video, audio"))return!0;for(;e&&"function"==typeof e.hasAttribute;){if(e.hasAttribute("data-prevent-swipe"))return!0;e=e.parentNode}return!1}onTouchStart(e){if(this.isSwipePrevented(e.target))return!0;this.touchStartX=e.touches[0].clientX,this.touchStartY=e.touches[0].clientY,this.touchStartCount=e.touches.length}onTouchMove(e){if(this.isSwipePrevented(e.target))return!0;let t=this.Reveal.getConfig();if(this.touchCaptured)v&&e.preventDefault();else{this.Reveal.onUserInput(e);let i=e.touches[0].clientX,n=e.touches[0].clientY;if(1===e.touches.length&&2!==this.touchStartCount){let s=this.Reveal.availableRoutes({includeFragments:!0}),a=i-this.touchStartX,r=n-this.touchStartY;a>40&&Math.abs(a)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.next():this.Reveal.prev():this.Reveal.left()):a<-40&&Math.abs(a)>Math.abs(r)?(this.touchCaptured=!0,"linear"===t.navigationMode?t.rtl?this.Reveal.prev():this.Reveal.next():this.Reveal.right()):r>40&&s.up?(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.prev():this.Reveal.up()):r<-40&&s.down&&(this.touchCaptured=!0,"linear"===t.navigationMode?this.Reveal.next():this.Reveal.down()),t.embedded?(this.touchCaptured||this.Reveal.isVerticalSlide())&&e.preventDefault():e.preventDefault()}}}onTouchEnd(e){this.touchCaptured=!1}onPointerDown(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchStart(e))}onPointerMove(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchMove(e))}onPointerUp(e){e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&"touch"!==e.pointerType||(e.touches=[{clientX:e.clientX,clientY:e.clientY}],this.onTouchEnd(e))}}const U="focus",j="blur";class W{constructor(e){this.Reveal=e,this.onRevealPointerDown=this.onRevealPointerDown.bind(this),this.onDocumentPointerDown=this.onDocumentPointerDown.bind(this)}configure(e,t){e.embedded?this.blur():(this.focus(),this.unbind())}bind(){this.Reveal.getConfig().embedded&&this.Reveal.getRevealElement().addEventListener("pointerdown",this.onRevealPointerDown,!1)}unbind(){this.Reveal.getRevealElement().removeEventListener("pointerdown",this.onRevealPointerDown,!1),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)}focus(){this.state!==U&&(this.Reveal.getRevealElement().classList.add("focused"),document.addEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=U}blur(){this.state!==j&&(this.Reveal.getRevealElement().classList.remove("focused"),document.removeEventListener("pointerdown",this.onDocumentPointerDown,!1)),this.state=j}isFocused(){return this.state===U}destroy(){this.Reveal.getRevealElement().classList.remove("focused")}onRevealPointerDown(e){this.focus()}onDocumentPointerDown(e){let t=r(e.target,".reveal");t&&t===this.Reveal.getRevealElement()||this.blur()}}class K{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="speaker-notes",this.element.setAttribute("data-prevent-swipe",""),this.element.setAttribute("tabindex","0"),this.Reveal.getRevealElement().appendChild(this.element)}configure(e,t){e.showNotes&&this.element.setAttribute("data-layout","string"==typeof e.showNotes?e.showNotes:"inline")}update(){this.Reveal.getConfig().showNotes&&this.element&&this.Reveal.getCurrentSlide()&&!this.Reveal.print.isPrintingPDF()&&(this.element.innerHTML=this.getSlideNotes()||'No notes on this slide.')}updateVisibility(){this.Reveal.getConfig().showNotes&&this.hasNotes()&&!this.Reveal.print.isPrintingPDF()?this.Reveal.getRevealElement().classList.add("show-notes"):this.Reveal.getRevealElement().classList.remove("show-notes")}hasNotes(){return this.Reveal.getSlidesElement().querySelectorAll("[data-notes], aside.notes").length>0}isSpeakerNotesWindow(){return!!window.location.search.match(/receiver/gi)}getSlideNotes(e=this.Reveal.getCurrentSlide()){if(e.hasAttribute("data-notes"))return e.getAttribute("data-notes");let t=e.querySelectorAll("aside.notes");return t?Array.from(t).map((e=>e.innerHTML)).join("\n"):null}destroy(){this.element.remove()}}class V{constructor(e,t){this.diameter=100,this.diameter2=this.diameter/2,this.thickness=6,this.playing=!1,this.progress=0,this.progressOffset=1,this.container=e,this.progressCheck=t,this.canvas=document.createElement("canvas"),this.canvas.className="playback",this.canvas.width=this.diameter,this.canvas.height=this.diameter,this.canvas.style.width=this.diameter2+"px",this.canvas.style.height=this.diameter2+"px",this.context=this.canvas.getContext("2d"),this.container.appendChild(this.canvas),this.render()}setPlaying(e){const t=this.playing;this.playing=e,!t&&this.playing?this.animate():this.render()}animate(){const e=this.progress;this.progress=this.progressCheck(),e>.8&&this.progress<.2&&(this.progressOffset=this.progress),this.render(),this.playing&&requestAnimationFrame(this.animate.bind(this))}render(){let e=this.playing?this.progress:0,t=this.diameter2-this.thickness,i=this.diameter2,n=this.diameter2,s=28;this.progressOffset+=.1*(1-this.progressOffset);const a=-Math.PI/2+e*(2*Math.PI),r=-Math.PI/2+this.progressOffset*(2*Math.PI);this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(i,n,t+4,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(i,n,t,0,2*Math.PI,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="rgba( 255, 255, 255, 0.2 )",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(i,n,t,r,a,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(i-14,n-14),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,10,s),this.context.fillRect(18,0,10,s)):(this.context.beginPath(),this.context.translate(4,0),this.context.moveTo(0,0),this.context.lineTo(24,14),this.context.lineTo(0,s),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()}on(e,t){this.canvas.addEventListener(e,t,!1)}off(e,t){this.canvas.removeEventListener(e,t,!1)}destroy(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)}}var $={width:960,height:700,margin:.04,minScale:.2,maxScale:2,controls:!0,controlsTutorial:!0,controlsLayout:"bottom-right",controlsBackArrows:"faded",progress:!0,slideNumber:!1,showSlideNumber:"all",hashOneBasedIndex:!1,hash:!1,respondToHashChanges:!0,jumpToSlide:!0,history:!1,keyboard:!0,keyboardCondition:null,disableLayout:!1,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,navigationMode:"default",shuffle:!1,fragments:!0,fragmentInURL:!0,embedded:!1,help:!0,pause:!0,showNotes:!1,showHiddenSlides:!1,autoPlayMedia:null,preloadIframes:null,autoAnimate:!0,autoAnimateMatcher:null,autoAnimateEasing:"ease",autoAnimateDuration:1,autoAnimateUnmatched:!0,autoAnimateStyles:["opacity","color","background-color","padding","font-size","line-height","letter-spacing","border-width","border-color","border-radius","outline","outline-offset"],autoSlide:0,autoSlideStoppable:!0,autoSlideMethod:null,defaultTiming:null,mouseWheel:!1,previewLinks:!1,postMessage:!0,postMessageEvents:!1,focusBodyOnPageVisibilityChange:!0,transition:"slide",transitionSpeed:"default",backgroundTransition:"fade",parallaxBackgroundImage:"",parallaxBackgroundSize:"",parallaxBackgroundRepeat:"",parallaxBackgroundPosition:"",parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,pdfMaxPagesPerSlide:Number.POSITIVE_INFINITY,pdfSeparateFragments:!0,pdfPageHeightOffset:-1,viewDistance:3,mobileViewDistance:2,display:"block",hideInactiveCursor:!0,hideCursorTime:5e3,sortFragmentsOnSync:!0,dependencies:[],plugins:[]};const X="4.5.0";function Y(a,l){arguments.length<2&&(l=arguments[0],a=document.querySelector(".reveal"));const h={};let u,v,p,m,f,E={},C=!1,x={hasNavigatedHorizontally:!1,hasNavigatedVertically:!1},H=[],U=1,j={layout:"",overview:""},Y={},_="idle",J=0,G=0,Q=-1,Z=!1,ee=new b(h),te=new y(h),ie=new w(h),ne=new P(h),se=new R(h),ae=new N(h),re=new M(h),oe=new I(h),le=new D(h),de=new T(h),ce=new F(h),he=new z(h),ue=new B(h),ge=new O(h),ve=new W(h),pe=new q(h),me=new K(h);function fe(e){if(!a)throw'Unable to find presentation root (
).';if(Y.wrapper=a,Y.slides=a.querySelector(".slides"),!Y.slides)throw'Unable to find slides container (
).';return E={...$,...E,...l,...e,...d()},be(),window.addEventListener("load",We,!1),ue.load(E.plugins,E.dependencies).then(ye),new Promise((e=>h.on("ready",e)))}function be(){!0===E.embedded?Y.viewport=r(a,".reveal-viewport")||a:(Y.viewport=document.body,document.documentElement.classList.add("reveal-full-page")),Y.viewport.classList.add("reveal-viewport")}function ye(){C=!0,we(),Ee(),Ce(),ke(),Le(),lt(),xe(),le.readURL(),se.update(!0),setTimeout((()=>{Y.slides.classList.remove("no-transition"),Y.wrapper.classList.add("ready"),Fe({type:"ready",data:{indexh:u,indexv:v,currentSlide:m}})}),1),ge.isPrintingPDF()&&(Ne(),"complete"===document.readyState?ge.setupPDF():window.addEventListener("load",(()=>{ge.setupPDF()})))}function we(){E.showHiddenSlides||t(Y.wrapper,'section[data-visibility="hidden"]').forEach((e=>{e.parentNode.removeChild(e)}))}function Ee(){Y.slides.classList.add("no-transition"),g?Y.wrapper.classList.add("no-hover"):Y.wrapper.classList.remove("no-hover"),se.render(),te.render(),ie.render(),de.render(),ce.render(),me.render(),Y.pauseOverlay=o(Y.wrapper,"div","pause-overlay",E.controls?'':null),Y.statusElement=Re(),Y.wrapper.setAttribute("role","application")}function Re(){let e=Y.wrapper.querySelector(".aria-status");return e||(e=document.createElement("div"),e.style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.overflow="hidden",e.style.clip="rect( 1px, 1px, 1px, 1px )",e.classList.add("aria-status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),Y.wrapper.appendChild(e)),e}function Se(e){Y.statusElement.textContent=e}function Ae(e){let t="";if(3===e.nodeType)t+=e.textContent;else if(1===e.nodeType){let i=e.getAttribute("aria-hidden"),n="none"===window.getComputedStyle(e).display;"true"===i||n||Array.from(e.childNodes).forEach((e=>{t+=Ae(e)}))}return t=t.trim(),""===t?"":t+" "}function ke(){setInterval((()=>{0===Y.wrapper.scrollTop&&0===Y.wrapper.scrollLeft||(Y.wrapper.scrollTop=0,Y.wrapper.scrollLeft=0)}),1e3)}function Le(){document.addEventListener("fullscreenchange",$t),document.addEventListener("webkitfullscreenchange",$t)}function Ce(){E.postMessage&&window.addEventListener("message",Ut,!1)}function xe(t){const n={...E};if("object"==typeof t&&e(E,t),!1===h.isReady())return;const s=Y.wrapper.querySelectorAll(S).length;Y.wrapper.classList.remove(n.transition),Y.wrapper.classList.add(E.transition),Y.wrapper.setAttribute("data-transition-speed",E.transitionSpeed),Y.wrapper.setAttribute("data-background-transition",E.backgroundTransition),Y.viewport.style.setProperty("--slide-width",E.width+"px"),Y.viewport.style.setProperty("--slide-height",E.height+"px"),E.shuffle&&dt(),i(Y.wrapper,"embedded",E.embedded),i(Y.wrapper,"rtl",E.rtl),i(Y.wrapper,"center",E.center),!1===E.pause&&Ze(),E.previewLinks?(He(),Be("[data-preview-link=false]")):(Be(),He("[data-preview-link]:not([data-preview-link=false])")),ne.reset(),f&&(f.destroy(),f=null),s>1&&E.autoSlide&&E.autoSlideStoppable&&(f=new V(Y.wrapper,(()=>Math.min(Math.max((Date.now()-Q)/J,0),1))),f.on("click",Yt),Z=!1),"default"!==E.navigationMode?Y.wrapper.setAttribute("data-navigation-mode",E.navigationMode):Y.wrapper.removeAttribute("data-navigation-mode"),me.configure(E,n),ve.configure(E,n),he.configure(E,n),de.configure(E,n),ce.configure(E,n),oe.configure(E,n),ae.configure(E,n),te.configure(E,n),rt()}function Pe(){window.addEventListener("resize",Kt,!1),E.touch&&pe.bind(),E.keyboard&&oe.bind(),E.progress&&ce.bind(),E.respondToHashChanges&&le.bind(),de.bind(),ve.bind(),Y.slides.addEventListener("click",Wt,!1),Y.slides.addEventListener("transitionend",jt,!1),Y.pauseOverlay.addEventListener("click",Ze,!1),E.focusBodyOnPageVisibilityChange&&document.addEventListener("visibilitychange",Vt,!1)}function Ne(){pe.unbind(),ve.unbind(),oe.unbind(),de.unbind(),ce.unbind(),le.unbind(),window.removeEventListener("resize",Kt,!1),Y.slides.removeEventListener("click",Wt,!1),Y.slides.removeEventListener("transitionend",jt,!1),Y.pauseOverlay.removeEventListener("click",Ze,!1)}function Me(){Ne(),Mt(),Be(),me.destroy(),ve.destroy(),ue.destroy(),he.destroy(),de.destroy(),ce.destroy(),se.destroy(),te.destroy(),ie.destroy(),document.removeEventListener("fullscreenchange",$t),document.removeEventListener("webkitfullscreenchange",$t),document.removeEventListener("visibilitychange",Vt,!1),window.removeEventListener("message",Ut,!1),window.removeEventListener("load",We,!1),Y.pauseOverlay&&Y.pauseOverlay.remove(),Y.statusElement&&Y.statusElement.remove(),document.documentElement.classList.remove("reveal-full-page"),Y.wrapper.classList.remove("ready","center","has-horizontal-slides","has-vertical-slides"),Y.wrapper.removeAttribute("data-transition-speed"),Y.wrapper.removeAttribute("data-background-transition"),Y.viewport.classList.remove("reveal-viewport"),Y.viewport.style.removeProperty("--slide-width"),Y.viewport.style.removeProperty("--slide-height"),Y.slides.style.removeProperty("width"),Y.slides.style.removeProperty("height"),Y.slides.style.removeProperty("zoom"),Y.slides.style.removeProperty("left"),Y.slides.style.removeProperty("top"),Y.slides.style.removeProperty("bottom"),Y.slides.style.removeProperty("right"),Y.slides.style.removeProperty("transform"),Array.from(Y.wrapper.querySelectorAll(S)).forEach((e=>{e.style.removeProperty("display"),e.style.removeProperty("top"),e.removeAttribute("hidden"),e.removeAttribute("aria-hidden")}))}function Ie(e,t,i){a.addEventListener(e,t,i)}function De(e,t,i){a.removeEventListener(e,t,i)}function Te(e){"string"==typeof e.layout&&(j.layout=e.layout),"string"==typeof e.overview&&(j.overview=e.overview),j.layout?s(Y.slides,j.layout+" "+j.overview):s(Y.slides,j.overview)}function Fe({target:t=Y.wrapper,type:i,data:n,bubbles:s=!0}){let a=document.createEvent("HTMLEvents",1,2);return a.initEvent(i,s,!0),e(a,n),t.dispatchEvent(a),t===Y.wrapper&&ze(i),a}function ze(t,i){if(E.postMessageEvents&&window.parent!==window.self){let n={namespace:"reveal",eventName:t,state:xt()};e(n,i),window.parent.postMessage(JSON.stringify(n),"*")}}function He(e="a"){Array.from(Y.wrapper.querySelectorAll(e)).forEach((e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Xt,!1)}))}function Be(e="a"){Array.from(Y.wrapper.querySelectorAll(e)).forEach((e=>{/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Xt,!1)}))}function Oe(e){je(),Y.overlay=document.createElement("div"),Y.overlay.classList.add("overlay"),Y.overlay.classList.add("overlay-preview"),Y.wrapper.appendChild(Y.overlay),Y.overlay.innerHTML=`
\n\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tUnable to load iframe. This is likely due to the site's policy (x-frame-options).\n\t\t\t\t\n\t\t\t
`,Y.overlay.querySelector("iframe").addEventListener("load",(e=>{Y.overlay.classList.add("loaded")}),!1),Y.overlay.querySelector(".close").addEventListener("click",(e=>{je(),e.preventDefault()}),!1),Y.overlay.querySelector(".external").addEventListener("click",(e=>{je()}),!1)}function qe(e){"boolean"==typeof e?e?Ue():je():Y.overlay?je():Ue()}function Ue(){if(E.help){je(),Y.overlay=document.createElement("div"),Y.overlay.classList.add("overlay"),Y.overlay.classList.add("overlay-help"),Y.wrapper.appendChild(Y.overlay);let e='

Keyboard Shortcuts


',t=oe.getShortcuts(),i=oe.getBindings();e+="";for(let i in t)e+=``;for(let t in i)i[t].key&&i[t].description&&(e+=``);e+="
KEYACTION
${i}${t[i]}
${i[t].key}${i[t].description}
",Y.overlay.innerHTML=`\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
${e}
\n\t\t\t\t
\n\t\t\t`,Y.overlay.querySelector(".close").addEventListener("click",(e=>{je(),e.preventDefault()}),!1)}}function je(){return!!Y.overlay&&(Y.overlay.parentNode.removeChild(Y.overlay),Y.overlay=null,!0)}function We(){if(Y.wrapper&&!ge.isPrintingPDF()){if(!E.disableLayout){g&&!E.embedded&&document.documentElement.style.setProperty("--vh",.01*window.innerHeight+"px");const e=Ve(),t=U;Ke(E.width,E.height),Y.slides.style.width=e.width+"px",Y.slides.style.height=e.height+"px",U=Math.min(e.presentationWidth/e.width,e.presentationHeight/e.height),U=Math.max(U,E.minScale),U=Math.min(U,E.maxScale),1===U?(Y.slides.style.zoom="",Y.slides.style.left="",Y.slides.style.top="",Y.slides.style.bottom="",Y.slides.style.right="",Te({layout:""})):(Y.slides.style.zoom="",Y.slides.style.left="50%",Y.slides.style.top="50%",Y.slides.style.bottom="auto",Y.slides.style.right="auto",Te({layout:"translate(-50%, -50%) scale("+U+")"}));const i=Array.from(Y.wrapper.querySelectorAll(S));for(let t=0,n=i.length;t .stretch, section > .r-stretch").forEach((t=>{let n=c(t,i);if(/(img|video)/gi.test(t.nodeName)){const i=t.naturalWidth||t.videoWidth,s=t.naturalHeight||t.videoHeight,a=Math.min(e/i,n/s);t.style.width=i*a+"px",t.style.height=s*a+"px"}else t.style.width=e+"px",t.style.height=n+"px"}))}function Ve(e,t){let i=E.width,n=E.height;E.disableLayout&&(i=Y.slides.offsetWidth,n=Y.slides.offsetHeight);const s={width:i,height:n,presentationWidth:e||Y.wrapper.offsetWidth,presentationHeight:t||Y.wrapper.offsetHeight};return s.presentationWidth-=s.presentationWidth*E.margin,s.presentationHeight-=s.presentationHeight*E.margin,"string"==typeof s.width&&/%$/.test(s.width)&&(s.width=parseInt(s.width,10)/100*s.presentationWidth),"string"==typeof s.height&&/%$/.test(s.height)&&(s.height=parseInt(s.height,10)/100*s.presentationHeight),s}function $e(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function Xe(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){const t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function Ye(e=m){return e&&e.parentNode&&!!e.parentNode.nodeName.match(/section/i)}function _e(){return!(!m||!Ye(m))&&!m.nextElementSibling}function Je(){return 0===u&&0===v}function Ge(){return!!m&&(!m.nextElementSibling&&(!Ye(m)||!m.parentNode.nextElementSibling))}function Qe(){if(E.pause){const e=Y.wrapper.classList.contains("paused");Mt(),Y.wrapper.classList.add("paused"),!1===e&&Fe({type:"paused"})}}function Ze(){const e=Y.wrapper.classList.contains("paused");Y.wrapper.classList.remove("paused"),Nt(),e&&Fe({type:"resumed"})}function et(e){"boolean"==typeof e?e?Qe():Ze():tt()?Ze():Qe()}function tt(){return Y.wrapper.classList.contains("paused")}function it(e){"boolean"==typeof e?e?ie.show():ie.hide():ie.isVisible()?ie.hide():ie.show()}function nt(e){"boolean"==typeof e?e?Dt():It():Z?Dt():It()}function st(){return!(!J||Z)}function at(e,t,i,n){if(Fe({type:"beforeslidechange",data:{indexh:void 0===e?u:e,indexv:void 0===t?v:t,origin:n}}).defaultPrevented)return;p=m;const s=Y.wrapper.querySelectorAll(A);if(0===s.length)return;void 0!==t||re.isActive()||(t=Xe(s[e])),p&&p.parentNode&&p.parentNode.classList.contains("stack")&&$e(p.parentNode,v);const a=H.concat();H.length=0;let r=u||0,o=v||0;u=ct(A,void 0===e?u:e),v=ct(k,void 0===t?v:t);let l=u!==r||v!==o;l||(p=null);let d=s[u],c=d.querySelectorAll("section");m=c[v]||d;let h=!1;l&&p&&m&&!re.isActive()&&(p.hasAttribute("data-auto-animate")&&m.hasAttribute("data-auto-animate")&&p.getAttribute("data-auto-animate-id")===m.getAttribute("data-auto-animate-id")&&!(u>r||v>o?m:p).hasAttribute("data-auto-animate-restart")&&(h=!0,Y.slides.classList.add("disable-slide-transitions")),_="running"),gt(),We(),re.isActive()&&re.update(),void 0!==i&&ae.goto(i),p&&p!==m&&(p.classList.remove("present"),p.setAttribute("aria-hidden","true"),Je()&&setTimeout((()=>{Et().forEach((e=>{$e(e,0)}))}),0));e:for(let e=0,t=H.length;e{Se(Ae(m))})),ce.update(),de.update(),me.update(),se.update(),se.updateParallax(),te.update(),ae.update(),le.writeURL(),Nt(),h&&(setTimeout((()=>{Y.slides.classList.remove("disable-slide-transitions")}),0),E.autoAnimate&&ne.run(p,m))}function rt(){Ne(),Pe(),We(),J=E.autoSlide,Nt(),se.create(),le.writeURL(),!0===E.sortFragmentsOnSync&&ae.sortAll(),de.update(),ce.update(),gt(),me.update(),me.updateVisibility(),se.update(!0),te.update(),ee.formatEmbeddedContent(),!1===E.autoPlayMedia?ee.stopEmbeddedContent(m,{unloadIframes:!1}):ee.startEmbeddedContent(m),re.isActive()&&re.layout()}function ot(e=m){se.sync(e),ae.sync(e),ee.load(e),se.update(),me.update()}function lt(){yt().forEach((e=>{t(e,"section").forEach(((e,t)=>{t>0&&(e.classList.remove("present"),e.classList.remove("past"),e.classList.add("future"),e.setAttribute("aria-hidden","true"))}))}))}function dt(e=yt()){e.forEach(((t,i)=>{let n=e[Math.floor(Math.random()*e.length)];n.parentNode===t.parentNode&&t.parentNode.insertBefore(t,n);let s=t.querySelectorAll("section");s.length&&dt(s)}))}function ct(e,i){let n=t(Y.wrapper,e),s=n.length,a=ge.isPrintingPDF(),r=!1,o=!1;if(s){E.loop&&(i>=s&&(r=!0),(i%=s)<0&&(i=s+i,o=!0)),i=Math.max(Math.min(i,s-1),0);for(let e=0;ei?(t.classList.add(s?"past":"future"),E.fragments&&ut(t)):e===i&&E.fragments&&(r?ut(t):o&&ht(t))}let e=n[i],t=e.classList.contains("present");e.classList.add("present"),e.removeAttribute("hidden"),e.removeAttribute("aria-hidden"),t||Fe({target:e,type:"visible",bubbles:!1});let l=e.getAttribute("data-state");l&&(H=H.concat(l.split(" ")))}else i=0;return i}function ht(e){t(e,".fragment").forEach((e=>{e.classList.add("visible"),e.classList.remove("current-fragment")}))}function ut(e){t(e,".fragment.visible").forEach((e=>{e.classList.remove("visible","current-fragment")}))}function gt(){let e,i,n=yt(),s=n.length;if(s&&void 0!==u){let a=re.isActive()?10:E.viewDistance;g&&(a=re.isActive()?6:E.mobileViewDistance),ge.isPrintingPDF()&&(a=Number.MAX_VALUE);for(let r=0;r0,right:u0,down:v1&&(n.left=!0,n.right=!0),i.length>1&&(n.up=!0,n.down=!0)),t.length>1&&"linear"===E.navigationMode&&(n.right=n.right||n.down,n.left=n.left||n.up),!0===e){let e=ae.availableRoutes();n.left=n.left||e.prev,n.up=n.up||e.prev,n.down=n.down||e.next,n.right=n.right||e.next}if(E.rtl){let e=n.left;n.left=n.right,n.right=e}return n}function pt(e=m){let t=yt(),i=0;e:for(let n=0;n0){let i=.9;t+=m.querySelectorAll(".fragment.visible").length/e.length*i}}return Math.min(t/(e-1),1)}function ft(e){let i,n=u,s=v;if(e){let i=Ye(e),a=i?e.parentNode:e,r=yt();n=Math.max(r.indexOf(a),0),s=void 0,i&&(s=Math.max(t(e.parentNode,"section").indexOf(e),0))}if(!e&&m){if(m.querySelectorAll(".fragment").length>0){let e=m.querySelector(".current-fragment");i=e&&e.hasAttribute("data-fragment-index")?parseInt(e.getAttribute("data-fragment-index"),10):m.querySelectorAll(".fragment.visible").length-1}}return{h:n,v:s,f:i}}function bt(){return t(Y.wrapper,S+':not(.stack):not([data-visibility="uncounted"])')}function yt(){return t(Y.wrapper,A)}function wt(){return t(Y.wrapper,".slides>section>section")}function Et(){return t(Y.wrapper,A+".stack")}function Rt(){return yt().length>1}function St(){return wt().length>1}function At(){return bt().map((e=>{let t={};for(let i=0;i{e.hasAttribute("data-autoplay")&&J&&1e3*e.duration/e.playbackRate>J&&(J=1e3*e.duration/e.playbackRate+1e3)}))),!J||Z||tt()||re.isActive()||Ge()&&!ae.availableRoutes().next&&!0!==E.loop||(G=setTimeout((()=>{"function"==typeof E.autoSlideMethod?E.autoSlideMethod():Ot(),Nt()}),J),Q=Date.now()),f&&f.setPlaying(-1!==G)}}function Mt(){clearTimeout(G),G=-1}function It(){J&&!Z&&(Z=!0,Fe({type:"autoslidepaused"}),clearTimeout(G),f&&f.setPlaying(!1))}function Dt(){J&&Z&&(Z=!1,Fe({type:"autoslideresumed"}),Nt())}function Tt({skipFragments:e=!1}={}){x.hasNavigatedHorizontally=!0,E.rtl?(re.isActive()||e||!1===ae.next())&&vt().left&&at(u+1,"grid"===E.navigationMode?v:void 0):(re.isActive()||e||!1===ae.prev())&&vt().left&&at(u-1,"grid"===E.navigationMode?v:void 0)}function Ft({skipFragments:e=!1}={}){x.hasNavigatedHorizontally=!0,E.rtl?(re.isActive()||e||!1===ae.prev())&&vt().right&&at(u-1,"grid"===E.navigationMode?v:void 0):(re.isActive()||e||!1===ae.next())&&vt().right&&at(u+1,"grid"===E.navigationMode?v:void 0)}function zt({skipFragments:e=!1}={}){(re.isActive()||e||!1===ae.prev())&&vt().up&&at(u,v-1)}function Ht({skipFragments:e=!1}={}){x.hasNavigatedVertically=!0,(re.isActive()||e||!1===ae.next())&&vt().down&&at(u,v+1)}function Bt({skipFragments:e=!1}={}){if(e||!1===ae.prev())if(vt().up)zt({skipFragments:e});else{let i;if(i=E.rtl?t(Y.wrapper,A+".future").pop():t(Y.wrapper,A+".past").pop(),i&&i.classList.contains("stack")){let e=i.querySelectorAll("section").length-1||void 0;at(u-1,e)}else Tt({skipFragments:e})}}function Ot({skipFragments:e=!1}={}){if(x.hasNavigatedHorizontally=!0,x.hasNavigatedVertically=!0,e||!1===ae.next()){let t=vt();t.down&&t.right&&E.loop&&_e()&&(t.down=!1),t.down?Ht({skipFragments:e}):E.rtl?Tt({skipFragments:e}):Ft({skipFragments:e})}}function qt(e){E.autoSlideStoppable&&It()}function Ut(e){let t=e.data;if("string"==typeof t&&"{"===t.charAt(0)&&"}"===t.charAt(t.length-1)&&(t=JSON.parse(t),t.method&&"function"==typeof h[t.method]))if(!1===L.test(t.method)){const e=h[t.method].apply(h,t.args);ze("callback",{method:t.method,result:e})}else console.warn('reveal.js: "'+t.method+'" is is blacklisted from the postMessage API')}function jt(e){"running"===_&&/section/gi.test(e.target.nodeName)&&(_="idle",Fe({type:"slidetransitionend",data:{indexh:u,indexv:v,previousSlide:p,currentSlide:m}}))}function Wt(e){const t=r(e.target,'a[href^="#"]');if(t){const i=t.getAttribute("href"),n=le.getIndicesFromHash(i);n&&(h.slide(n.h,n.v,n.f),e.preventDefault())}}function Kt(e){We()}function Vt(e){!1===document.hidden&&document.activeElement!==document.body&&("function"==typeof document.activeElement.blur&&document.activeElement.blur(),document.body.focus())}function $t(e){(document.fullscreenElement||document.webkitFullscreenElement)===Y.wrapper&&(e.stopImmediatePropagation(),setTimeout((()=>{h.layout(),h.focus.focus()}),1))}function Xt(e){if(e.currentTarget&&e.currentTarget.hasAttribute("href")){let t=e.currentTarget.getAttribute("href");t&&(Oe(t),e.preventDefault())}}function Yt(e){Ge()&&!1===E.loop?(at(0,0),Dt()):Z?Dt():It()}const _t={VERSION:X,initialize:fe,configure:xe,destroy:Me,sync:rt,syncSlide:ot,syncFragments:ae.sync.bind(ae),slide:at,left:Tt,right:Ft,up:zt,down:Ht,prev:Bt,next:Ot,navigateLeft:Tt,navigateRight:Ft,navigateUp:zt,navigateDown:Ht,navigatePrev:Bt,navigateNext:Ot,navigateFragment:ae.goto.bind(ae),prevFragment:ae.prev.bind(ae),nextFragment:ae.next.bind(ae),on:Ie,off:De,addEventListener:Ie,removeEventListener:De,layout:We,shuffle:dt,availableRoutes:vt,availableFragments:ae.availableRoutes.bind(ae),toggleHelp:qe,toggleOverview:re.toggle.bind(re),togglePause:et,toggleAutoSlide:nt,toggleJumpToSlide:it,isFirstSlide:Je,isLastSlide:Ge,isLastVerticalSlide:_e,isVerticalSlide:Ye,isPaused:tt,isAutoSliding:st,isSpeakerNotes:me.isSpeakerNotesWindow.bind(me),isOverview:re.isActive.bind(re),isFocused:ve.isFocused.bind(ve),isPrintingPDF:ge.isPrintingPDF.bind(ge),isReady:()=>C,loadSlide:ee.load.bind(ee),unloadSlide:ee.unload.bind(ee),showPreview:Oe,hidePreview:je,addEventListeners:Pe,removeEventListeners:Ne,dispatchEvent:Fe,getState:xt,setState:Pt,getProgress:mt,getIndices:ft,getSlidesAttributes:At,getSlidePastCount:pt,getTotalSlides:kt,getSlide:Lt,getPreviousSlide:()=>p,getCurrentSlide:()=>m,getSlideBackground:Ct,getSlideNotes:me.getSlideNotes.bind(me),getSlides:bt,getHorizontalSlides:yt,getVerticalSlides:wt,hasHorizontalSlides:Rt,hasVerticalSlides:St,hasNavigatedHorizontally:()=>x.hasNavigatedHorizontally,hasNavigatedVertically:()=>x.hasNavigatedVertically,addKeyBinding:oe.addKeyBinding.bind(oe),removeKeyBinding:oe.removeKeyBinding.bind(oe),triggerKey:oe.triggerKey.bind(oe),registerKeyboardShortcut:oe.registerKeyboardShortcut.bind(oe),getComputedSlideSize:Ve,getScale:()=>U,getConfig:()=>E,getQueryHash:d,getSlidePath:le.getHash.bind(le),getRevealElement:()=>a,getSlidesElement:()=>Y.slides,getViewportElement:()=>Y.viewport,getBackgroundsElement:()=>se.element,registerPlugin:ue.registerPlugin.bind(ue),hasPlugin:ue.hasPlugin.bind(ue),getPlugin:ue.getPlugin.bind(ue),getPlugins:ue.getRegisteredPlugins.bind(ue)};return e(h,{..._t,announceStatus:Se,getStatusText:Ae,print:ge,focus:ve,progress:ce,controls:de,location:le,overview:re,fragments:ae,slideContent:ee,slideNumber:te,onUserInput:qt,closeOverlay:je,updateSlidesVisibility:gt,layoutSlideContents:Ke,transformSlides:Te,cueAutoSlide:Nt,cancelAutoSlide:Mt}),_t}let _=Y,J=[];_.initialize=e=>(Object.assign(_,new Y(document.querySelector(".reveal"),e)),J.map((e=>e(_))),_.initialize()),["configure","on","off","addEventListener","removeEventListener","registerPlugin"].forEach((e=>{_[e]=(...t)=>{J.push((i=>i[e].call(null,...t)))}})),_.isReady=()=>!1,_.VERSION=X;export default _; +//# sourceMappingURL=reveal.esm.js.map diff --git a/chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.esm.js.map b/chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.esm.js.map new file mode 100644 index 0000000..2866e41 --- /dev/null +++ b/chapters/binary-analysis/dynamic-analysis/slides/_site/dist/reveal.esm.js.map @@ -0,0 +1 @@ +{"version":3,"file":"reveal.esm.js","sources":["../js/utils/util.js","../js/utils/device.js","../node_modules/fitty/dist/fitty.module.js","../js/controllers/slidecontent.js","../js/controllers/slidenumber.js","../js/controllers/jumptoslide.js","../js/utils/color.js","../js/controllers/backgrounds.js","../js/utils/constants.js","../js/controllers/autoanimate.js","../js/controllers/fragments.js","../js/controllers/overview.js","../js/controllers/keyboard.js","../js/controllers/location.js","../js/controllers/controls.js","../js/controllers/progress.js","../js/controllers/pointer.js","../js/utils/loader.js","../js/controllers/plugins.js","../js/controllers/print.js","../js/controllers/touch.js","../js/controllers/focus.js","../js/controllers/notes.js","../js/components/playback.js","../js/config.js","../js/reveal.js","../js/index.js"],"sourcesContent":["/**\n * Extend object a with the properties of object b.\n * If there's a conflict, object b takes precedence.\n *\n * @param {object} a\n * @param {object} b\n */\nexport const extend = ( a, b ) => {\n\n\tfor( let i in b ) {\n\t\ta[ i ] = b[ i ];\n\t}\n\n\treturn a;\n\n}\n\n/**\n * querySelectorAll but returns an Array.\n */\nexport const queryAll = ( el, selector ) => {\n\n\treturn Array.from( el.querySelectorAll( selector ) );\n\n}\n\n/**\n * classList.toggle() with cross browser support\n */\nexport const toggleClass = ( el, className, value ) => {\n\tif( value ) {\n\t\tel.classList.add( className );\n\t}\n\telse {\n\t\tel.classList.remove( className );\n\t}\n}\n\n/**\n * Utility for deserializing a value.\n *\n * @param {*} value\n * @return {*}\n */\nexport const deserialize = ( value ) => {\n\n\tif( typeof value === 'string' ) {\n\t\tif( value === 'null' ) return null;\n\t\telse if( value === 'true' ) return true;\n\t\telse if( value === 'false' ) return false;\n\t\telse if( value.match( /^-?[\\d\\.]+$/ ) ) return parseFloat( value );\n\t}\n\n\treturn value;\n\n}\n\n/**\n * Measures the distance in pixels between point a\n * and point b.\n *\n * @param {object} a point with x/y properties\n * @param {object} b point with x/y properties\n *\n * @return {number}\n */\nexport const distanceBetween = ( a, b ) => {\n\n\tlet dx = a.x - b.x,\n\t\tdy = a.y - b.y;\n\n\treturn Math.sqrt( dx*dx + dy*dy );\n\n}\n\n/**\n * Applies a CSS transform to the target element.\n *\n * @param {HTMLElement} element\n * @param {string} transform\n */\nexport const transformElement = ( element, transform ) => {\n\n\telement.style.transform = transform;\n\n}\n\n/**\n * Element.matches with IE support.\n *\n * @param {HTMLElement} target The element to match\n * @param {String} selector The CSS selector to match\n * the element against\n *\n * @return {Boolean}\n */\nexport const matches = ( target, selector ) => {\n\n\tlet matchesMethod = target.matches || target.matchesSelector || target.msMatchesSelector;\n\n\treturn !!( matchesMethod && matchesMethod.call( target, selector ) );\n\n}\n\n/**\n * Find the closest parent that matches the given\n * selector.\n *\n * @param {HTMLElement} target The child element\n * @param {String} selector The CSS selector to match\n * the parents against\n *\n * @return {HTMLElement} The matched parent or null\n * if no matching parent was found\n */\nexport const closest = ( target, selector ) => {\n\n\t// Native Element.closest\n\tif( typeof target.closest === 'function' ) {\n\t\treturn target.closest( selector );\n\t}\n\n\t// Polyfill\n\twhile( target ) {\n\t\tif( matches( target, selector ) ) {\n\t\t\treturn target;\n\t\t}\n\n\t\t// Keep searching\n\t\ttarget = target.parentNode;\n\t}\n\n\treturn null;\n\n}\n\n/**\n * Handling the fullscreen functionality via the fullscreen API\n *\n * @see http://fullscreen.spec.whatwg.org/\n * @see https://developer.mozilla.org/en-US/docs/DOM/Using_fullscreen_mode\n */\nexport const enterFullscreen = element => {\n\n\telement = element || document.documentElement;\n\n\t// Check which implementation is available\n\tlet requestMethod = element.requestFullscreen ||\n\t\t\t\t\t\telement.webkitRequestFullscreen ||\n\t\t\t\t\t\telement.webkitRequestFullScreen ||\n\t\t\t\t\t\telement.mozRequestFullScreen ||\n\t\t\t\t\t\telement.msRequestFullscreen;\n\n\tif( requestMethod ) {\n\t\trequestMethod.apply( element );\n\t}\n\n}\n\n/**\n * Creates an HTML element and returns a reference to it.\n * If the element already exists the existing instance will\n * be returned.\n *\n * @param {HTMLElement} container\n * @param {string} tagname\n * @param {string} classname\n * @param {string} innerHTML\n *\n * @return {HTMLElement}\n */\nexport const createSingletonNode = ( container, tagname, classname, innerHTML='' ) => {\n\n\t// Find all nodes matching the description\n\tlet nodes = container.querySelectorAll( '.' + classname );\n\n\t// Check all matches to find one which is a direct child of\n\t// the specified container\n\tfor( let i = 0; i < nodes.length; i++ ) {\n\t\tlet testNode = nodes[i];\n\t\tif( testNode.parentNode === container ) {\n\t\t\treturn testNode;\n\t\t}\n\t}\n\n\t// If no node was found, create it now\n\tlet node = document.createElement( tagname );\n\tnode.className = classname;\n\tnode.innerHTML = innerHTML;\n\tcontainer.appendChild( node );\n\n\treturn node;\n\n}\n\n/**\n * Injects the given CSS styles into the DOM.\n *\n * @param {string} value\n */\nexport const createStyleSheet = ( value ) => {\n\n\tlet tag = document.createElement( 'style' );\n\ttag.type = 'text/css';\n\n\tif( value && value.length > 0 ) {\n\t\tif( tag.styleSheet ) {\n\t\t\ttag.styleSheet.cssText = value;\n\t\t}\n\t\telse {\n\t\t\ttag.appendChild( document.createTextNode( value ) );\n\t\t}\n\t}\n\n\tdocument.head.appendChild( tag );\n\n\treturn tag;\n\n}\n\n/**\n * Returns a key:value hash of all query params.\n */\nexport const getQueryHash = () => {\n\n\tlet query = {};\n\n\tlocation.search.replace( /[A-Z0-9]+?=([\\w\\.%-]*)/gi, a => {\n\t\tquery[ a.split( '=' ).shift() ] = a.split( '=' ).pop();\n\t} );\n\n\t// Basic deserialization\n\tfor( let i in query ) {\n\t\tlet value = query[ i ];\n\n\t\tquery[ i ] = deserialize( unescape( value ) );\n\t}\n\n\t// Do not accept new dependencies via query config to avoid\n\t// the potential of malicious script injection\n\tif( typeof query['dependencies'] !== 'undefined' ) delete query['dependencies'];\n\n\treturn query;\n\n}\n\n/**\n * Returns the remaining height within the parent of the\n * target element.\n *\n * remaining height = [ configured parent height ] - [ current parent height ]\n *\n * @param {HTMLElement} element\n * @param {number} [height]\n */\nexport const getRemainingHeight = ( element, height = 0 ) => {\n\n\tif( element ) {\n\t\tlet newHeight, oldHeight = element.style.height;\n\n\t\t// Change the .stretch element height to 0 in order find the height of all\n\t\t// the other elements\n\t\telement.style.height = '0px';\n\n\t\t// In Overview mode, the parent (.slide) height is set of 700px.\n\t\t// Restore it temporarily to its natural height.\n\t\telement.parentNode.style.height = 'auto';\n\n\t\tnewHeight = height - element.parentNode.offsetHeight;\n\n\t\t// Restore the old height, just in case\n\t\telement.style.height = oldHeight + 'px';\n\n\t\t// Clear the parent (.slide) height. .removeProperty works in IE9+\n\t\telement.parentNode.style.removeProperty('height');\n\n\t\treturn newHeight;\n\t}\n\n\treturn height;\n\n}\n\nconst fileExtensionToMimeMap = {\n\t'mp4': 'video/mp4',\n\t'm4a': 'video/mp4',\n\t'ogv': 'video/ogg',\n\t'mpeg': 'video/mpeg',\n\t'webm': 'video/webm'\n}\n\n/**\n * Guess the MIME type for common file formats.\n */\nexport const getMimeTypeFromFile = ( filename='' ) => {\n\treturn fileExtensionToMimeMap[filename.split('.').pop()]\n}\n\n/**\n * Encodes a string for RFC3986-compliant URL format.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI#encoding_for_rfc3986\n *\n * @param {string} url\n */\nexport const encodeRFC3986URI = ( url='' ) => {\n\treturn encodeURI(url)\n\t .replace(/%5B/g, \"[\")\n\t .replace(/%5D/g, \"]\")\n\t .replace(\n\t\t/[!'()*]/g,\n\t\t(c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`\n\t );\n}","const UA = navigator.userAgent;\n\nexport const isMobile = /(iphone|ipod|ipad|android)/gi.test( UA ) ||\n\t\t\t\t\t\t( navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 ); // iPadOS\n\nexport const isChrome = /chrome/i.test( UA ) && !/edge/i.test( UA );\n\nexport const isAndroid = /android/gi.test( UA );","/*\n * fitty v2.3.3 - Snugly resizes text to fit its parent container\n * Copyright (c) 2020 Rik Schennink (https://pqina.nl/)\n */\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.default = function (w) {\n\n // no window, early exit\n if (!w) return;\n\n // node list to array helper method\n var toArray = function toArray(nl) {\n return [].slice.call(nl);\n };\n\n // states\n var DrawState = {\n IDLE: 0,\n DIRTY_CONTENT: 1,\n DIRTY_LAYOUT: 2,\n DIRTY: 3\n };\n\n // all active fitty elements\n var fitties = [];\n\n // group all redraw calls till next frame, we cancel each frame request when a new one comes in. If no support for request animation frame, this is an empty function and supports for fitty stops.\n var redrawFrame = null;\n var requestRedraw = 'requestAnimationFrame' in w ? function () {\n w.cancelAnimationFrame(redrawFrame);\n redrawFrame = w.requestAnimationFrame(function () {\n return redraw(fitties.filter(function (f) {\n return f.dirty && f.active;\n }));\n });\n } : function () {};\n\n // sets all fitties to dirty so they are redrawn on the next redraw loop, then calls redraw\n var redrawAll = function redrawAll(type) {\n return function () {\n fitties.forEach(function (f) {\n return f.dirty = type;\n });\n requestRedraw();\n };\n };\n\n // redraws fitties so they nicely fit their parent container\n var redraw = function redraw(fitties) {\n\n // getting info from the DOM at this point should not trigger a reflow, let's gather as much intel as possible before triggering a reflow\n\n // check if styles of all fitties have been computed\n fitties.filter(function (f) {\n return !f.styleComputed;\n }).forEach(function (f) {\n f.styleComputed = computeStyle(f);\n });\n\n // restyle elements that require pre-styling, this triggers a reflow, please try to prevent by adding CSS rules (see docs)\n fitties.filter(shouldPreStyle).forEach(applyStyle);\n\n // we now determine which fitties should be redrawn\n var fittiesToRedraw = fitties.filter(shouldRedraw);\n\n // we calculate final styles for these fitties\n fittiesToRedraw.forEach(calculateStyles);\n\n // now we apply the calculated styles from our previous loop\n fittiesToRedraw.forEach(function (f) {\n applyStyle(f);\n markAsClean(f);\n });\n\n // now we dispatch events for all restyled fitties\n fittiesToRedraw.forEach(dispatchFitEvent);\n };\n\n var markAsClean = function markAsClean(f) {\n return f.dirty = DrawState.IDLE;\n };\n\n var calculateStyles = function calculateStyles(f) {\n\n // get available width from parent node\n f.availableWidth = f.element.parentNode.clientWidth;\n\n // the space our target element uses\n f.currentWidth = f.element.scrollWidth;\n\n // remember current font size\n f.previousFontSize = f.currentFontSize;\n\n // let's calculate the new font size\n f.currentFontSize = Math.min(Math.max(f.minSize, f.availableWidth / f.currentWidth * f.previousFontSize), f.maxSize);\n\n // if allows wrapping, only wrap when at minimum font size (otherwise would break container)\n f.whiteSpace = f.multiLine && f.currentFontSize === f.minSize ? 'normal' : 'nowrap';\n };\n\n // should always redraw if is not dirty layout, if is dirty layout, only redraw if size has changed\n var shouldRedraw = function shouldRedraw(f) {\n return f.dirty !== DrawState.DIRTY_LAYOUT || f.dirty === DrawState.DIRTY_LAYOUT && f.element.parentNode.clientWidth !== f.availableWidth;\n };\n\n // every fitty element is tested for invalid styles\n var computeStyle = function computeStyle(f) {\n\n // get style properties\n var style = w.getComputedStyle(f.element, null);\n\n // get current font size in pixels (if we already calculated it, use the calculated version)\n f.currentFontSize = parseFloat(style.getPropertyValue('font-size'));\n\n // get display type and wrap mode\n f.display = style.getPropertyValue('display');\n f.whiteSpace = style.getPropertyValue('white-space');\n };\n\n // determines if this fitty requires initial styling, can be prevented by applying correct styles through CSS\n var shouldPreStyle = function shouldPreStyle(f) {\n\n var preStyle = false;\n\n // if we already tested for prestyling we don't have to do it again\n if (f.preStyleTestCompleted) return false;\n\n // should have an inline style, if not, apply\n if (!/inline-/.test(f.display)) {\n preStyle = true;\n f.display = 'inline-block';\n }\n\n // to correctly calculate dimensions the element should have whiteSpace set to nowrap\n if (f.whiteSpace !== 'nowrap') {\n preStyle = true;\n f.whiteSpace = 'nowrap';\n }\n\n // we don't have to do this twice\n f.preStyleTestCompleted = true;\n\n return preStyle;\n };\n\n // apply styles to single fitty\n var applyStyle = function applyStyle(f) {\n f.element.style.whiteSpace = f.whiteSpace;\n f.element.style.display = f.display;\n f.element.style.fontSize = f.currentFontSize + 'px';\n };\n\n // dispatch a fit event on a fitty\n var dispatchFitEvent = function dispatchFitEvent(f) {\n f.element.dispatchEvent(new CustomEvent('fit', {\n detail: {\n oldValue: f.previousFontSize,\n newValue: f.currentFontSize,\n scaleFactor: f.currentFontSize / f.previousFontSize\n }\n }));\n };\n\n // fit method, marks the fitty as dirty and requests a redraw (this will also redraw any other fitty marked as dirty)\n var fit = function fit(f, type) {\n return function () {\n f.dirty = type;\n if (!f.active) return;\n requestRedraw();\n };\n };\n\n var init = function init(f) {\n\n // save some of the original CSS properties before we change them\n f.originalStyle = {\n whiteSpace: f.element.style.whiteSpace,\n display: f.element.style.display,\n fontSize: f.element.style.fontSize\n };\n\n // should we observe DOM mutations\n observeMutations(f);\n\n // this is a new fitty so we need to validate if it's styles are in order\n f.newbie = true;\n\n // because it's a new fitty it should also be dirty, we want it to redraw on the first loop\n f.dirty = true;\n\n // we want to be able to update this fitty\n fitties.push(f);\n };\n\n var destroy = function destroy(f) {\n return function () {\n\n // remove from fitties array\n fitties = fitties.filter(function (_) {\n return _.element !== f.element;\n });\n\n // stop observing DOM\n if (f.observeMutations) f.observer.disconnect();\n\n // reset the CSS properties we changes\n f.element.style.whiteSpace = f.originalStyle.whiteSpace;\n f.element.style.display = f.originalStyle.display;\n f.element.style.fontSize = f.originalStyle.fontSize;\n };\n };\n\n // add a new fitty, does not redraw said fitty\n var subscribe = function subscribe(f) {\n return function () {\n if (f.active) return;\n f.active = true;\n requestRedraw();\n };\n };\n\n // remove an existing fitty\n var unsubscribe = function unsubscribe(f) {\n return function () {\n return f.active = false;\n };\n };\n\n var observeMutations = function observeMutations(f) {\n\n // no observing?\n if (!f.observeMutations) return;\n\n // start observing mutations\n f.observer = new MutationObserver(fit(f, DrawState.DIRTY_CONTENT));\n\n // start observing\n f.observer.observe(f.element, f.observeMutations);\n };\n\n // default mutation observer settings\n var mutationObserverDefaultSetting = {\n subtree: true,\n childList: true,\n characterData: true\n };\n\n // default fitty options\n var defaultOptions = {\n minSize: 16,\n maxSize: 512,\n multiLine: true,\n observeMutations: 'MutationObserver' in w ? mutationObserverDefaultSetting : false\n };\n\n // array of elements in, fitty instances out\n function fittyCreate(elements, options) {\n\n // set options object\n var fittyOptions = _extends({}, defaultOptions, options);\n\n // create fitties\n var publicFitties = elements.map(function (element) {\n\n // create fitty instance\n var f = _extends({}, fittyOptions, {\n\n // internal options for this fitty\n element: element,\n active: true\n });\n\n // initialise this fitty\n init(f);\n\n // expose API\n return {\n element: element,\n fit: fit(f, DrawState.DIRTY),\n unfreeze: subscribe(f),\n freeze: unsubscribe(f),\n unsubscribe: destroy(f)\n };\n });\n\n // call redraw on newly initiated fitties\n requestRedraw();\n\n // expose fitties\n return publicFitties;\n }\n\n // fitty creation function\n function fitty(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n\n // if target is a string\n return typeof target === 'string' ?\n\n // treat it as a querySelector\n fittyCreate(toArray(document.querySelectorAll(target)), options) :\n\n // create single fitty\n fittyCreate([target], options)[0];\n }\n\n // handles viewport changes, redraws all fitties, but only does so after a timeout\n var resizeDebounce = null;\n var onWindowResized = function onWindowResized() {\n w.clearTimeout(resizeDebounce);\n resizeDebounce = w.setTimeout(redrawAll(DrawState.DIRTY_LAYOUT), fitty.observeWindowDelay);\n };\n\n // define observe window property, so when we set it to true or false events are automatically added and removed\n var events = ['resize', 'orientationchange'];\n Object.defineProperty(fitty, 'observeWindow', {\n set: function set(enabled) {\n var method = (enabled ? 'add' : 'remove') + 'EventListener';\n events.forEach(function (e) {\n w[method](e, onWindowResized);\n });\n }\n });\n\n // fitty global properties (by setting observeWindow to true the events above get added)\n fitty.observeWindow = true;\n fitty.observeWindowDelay = 100;\n\n // public fit all method, will force redraw no matter what\n fitty.fitAll = redrawAll(DrawState.DIRTY);\n\n // export our fitty function, we don't want to keep it to our selves\n return fitty;\n}(typeof window === 'undefined' ? null : window);","import { extend, queryAll, closest, getMimeTypeFromFile, encodeRFC3986URI } from '../utils/util.js'\nimport { isMobile } from '../utils/device.js'\n\nimport fitty from 'fitty';\n\n/**\n * Handles loading, unloading and playback of slide\n * content such as images, videos and iframes.\n */\nexport default class SlideContent {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t\tthis.startEmbeddedIframe = this.startEmbeddedIframe.bind( this );\n\n\t}\n\n\t/**\n\t * Should the given element be preloaded?\n\t * Decides based on local element attributes and global config.\n\t *\n\t * @param {HTMLElement} element\n\t */\n\tshouldPreload( element ) {\n\n\t\t// Prefer an explicit global preload setting\n\t\tlet preload = this.Reveal.getConfig().preloadIframes;\n\n\t\t// If no global setting is available, fall back on the element's\n\t\t// own preload setting\n\t\tif( typeof preload !== 'boolean' ) {\n\t\t\tpreload = element.hasAttribute( 'data-preload' );\n\t\t}\n\n\t\treturn preload;\n\t}\n\n\t/**\n\t * Called when the given slide is within the configured view\n\t * distance. Shows the slide element and loads any content\n\t * that is set to load lazily (data-src).\n\t *\n\t * @param {HTMLElement} slide Slide to show\n\t */\n\tload( slide, options = {} ) {\n\n\t\t// Show the slide element\n\t\tslide.style.display = this.Reveal.getConfig().display;\n\n\t\t// Media elements with data-src attributes\n\t\tqueryAll( slide, 'img[data-src], video[data-src], audio[data-src], iframe[data-src]' ).forEach( element => {\n\t\t\tif( element.tagName !== 'IFRAME' || this.shouldPreload( element ) ) {\n\t\t\t\telement.setAttribute( 'src', element.getAttribute( 'data-src' ) );\n\t\t\t\telement.setAttribute( 'data-lazy-loaded', '' );\n\t\t\t\telement.removeAttribute( 'data-src' );\n\t\t\t}\n\t\t} );\n\n\t\t// Media elements with children\n\t\tqueryAll( slide, 'video, audio' ).forEach( media => {\n\t\t\tlet sources = 0;\n\n\t\t\tqueryAll( media, 'source[data-src]' ).forEach( source => {\n\t\t\t\tsource.setAttribute( 'src', source.getAttribute( 'data-src' ) );\n\t\t\t\tsource.removeAttribute( 'data-src' );\n\t\t\t\tsource.setAttribute( 'data-lazy-loaded', '' );\n\t\t\t\tsources += 1;\n\t\t\t} );\n\n\t\t\t// Enable inline video playback in mobile Safari\n\t\t\tif( isMobile && media.tagName === 'VIDEO' ) {\n\t\t\t\tmedia.setAttribute( 'playsinline', '' );\n\t\t\t}\n\n\t\t\t// If we rewrote sources for this video/audio element, we need\n\t\t\t// to manually tell it to load from its new origin\n\t\t\tif( sources > 0 ) {\n\t\t\t\tmedia.load();\n\t\t\t}\n\t\t} );\n\n\n\t\t// Show the corresponding background element\n\t\tlet background = slide.slideBackgroundElement;\n\t\tif( background ) {\n\t\t\tbackground.style.display = 'block';\n\n\t\t\tlet backgroundContent = slide.slideBackgroundContentElement;\n\t\t\tlet backgroundIframe = slide.getAttribute( 'data-background-iframe' );\n\n\t\t\t// If the background contains media, load it\n\t\t\tif( background.hasAttribute( 'data-loaded' ) === false ) {\n\t\t\t\tbackground.setAttribute( 'data-loaded', 'true' );\n\n\t\t\t\tlet backgroundImage = slide.getAttribute( 'data-background-image' ),\n\t\t\t\t\tbackgroundVideo = slide.getAttribute( 'data-background-video' ),\n\t\t\t\t\tbackgroundVideoLoop = slide.hasAttribute( 'data-background-video-loop' ),\n\t\t\t\t\tbackgroundVideoMuted = slide.hasAttribute( 'data-background-video-muted' );\n\n\t\t\t\t// Images\n\t\t\t\tif( backgroundImage ) {\n\t\t\t\t\t// base64\n\t\t\t\t\tif( /^data:/.test( backgroundImage.trim() ) ) {\n\t\t\t\t\t\tbackgroundContent.style.backgroundImage = `url(${backgroundImage.trim()})`;\n\t\t\t\t\t}\n\t\t\t\t\t// URL(s)\n\t\t\t\t\telse {\n\t\t\t\t\t\tbackgroundContent.style.backgroundImage = backgroundImage.split( ',' ).map( background => {\n\t\t\t\t\t\t\t// Decode URL(s) that are already encoded first\n\t\t\t\t\t\t\tlet decoded = decodeURI(background.trim());\n\t\t\t\t\t\t\treturn `url(${encodeRFC3986URI(decoded)})`;\n\t\t\t\t\t\t}).join( ',' );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Videos\n\t\t\t\telse if ( backgroundVideo && !this.Reveal.isSpeakerNotes() ) {\n\t\t\t\t\tlet video = document.createElement( 'video' );\n\n\t\t\t\t\tif( backgroundVideoLoop ) {\n\t\t\t\t\t\tvideo.setAttribute( 'loop', '' );\n\t\t\t\t\t}\n\n\t\t\t\t\tif( backgroundVideoMuted ) {\n\t\t\t\t\t\tvideo.muted = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Enable inline playback in mobile Safari\n\t\t\t\t\t//\n\t\t\t\t\t// Mute is required for video to play when using\n\t\t\t\t\t// swipe gestures to navigate since they don't\n\t\t\t\t\t// count as direct user actions :'(\n\t\t\t\t\tif( isMobile ) {\n\t\t\t\t\t\tvideo.muted = true;\n\t\t\t\t\t\tvideo.setAttribute( 'playsinline', '' );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Support comma separated lists of video sources\n\t\t\t\t\tbackgroundVideo.split( ',' ).forEach( source => {\n\t\t\t\t\t\tlet type = getMimeTypeFromFile( source );\n\t\t\t\t\t\tif( type ) {\n\t\t\t\t\t\t\tvideo.innerHTML += ``;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tvideo.innerHTML += ``;\n\t\t\t\t\t\t}\n\t\t\t\t\t} );\n\n\t\t\t\t\tbackgroundContent.appendChild( video );\n\t\t\t\t}\n\t\t\t\t// Iframes\n\t\t\t\telse if( backgroundIframe && options.excludeIframes !== true ) {\n\t\t\t\t\tlet iframe = document.createElement( 'iframe' );\n\t\t\t\t\tiframe.setAttribute( 'allowfullscreen', '' );\n\t\t\t\t\tiframe.setAttribute( 'mozallowfullscreen', '' );\n\t\t\t\t\tiframe.setAttribute( 'webkitallowfullscreen', '' );\n\t\t\t\t\tiframe.setAttribute( 'allow', 'autoplay' );\n\n\t\t\t\t\tiframe.setAttribute( 'data-src', backgroundIframe );\n\n\t\t\t\t\tiframe.style.width = '100%';\n\t\t\t\t\tiframe.style.height = '100%';\n\t\t\t\t\tiframe.style.maxHeight = '100%';\n\t\t\t\t\tiframe.style.maxWidth = '100%';\n\n\t\t\t\t\tbackgroundContent.appendChild( iframe );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Start loading preloadable iframes\n\t\t\tlet backgroundIframeElement = backgroundContent.querySelector( 'iframe[data-src]' );\n\t\t\tif( backgroundIframeElement ) {\n\n\t\t\t\t// Check if this iframe is eligible to be preloaded\n\t\t\t\tif( this.shouldPreload( background ) && !/autoplay=(1|true|yes)/gi.test( backgroundIframe ) ) {\n\t\t\t\t\tif( backgroundIframeElement.getAttribute( 'src' ) !== backgroundIframe ) {\n\t\t\t\t\t\tbackgroundIframeElement.setAttribute( 'src', backgroundIframe );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tthis.layout( slide );\n\n\t}\n\n\t/**\n\t * Applies JS-dependent layout helpers for the scope.\n\t */\n\tlayout( scopeElement ) {\n\n\t\t// Autosize text with the r-fit-text class based on the\n\t\t// size of its container. This needs to happen after the\n\t\t// slide is visible in order to measure the text.\n\t\tArray.from( scopeElement.querySelectorAll( '.r-fit-text' ) ).forEach( element => {\n\t\t\tfitty( element, {\n\t\t\t\tminSize: 24,\n\t\t\t\tmaxSize: this.Reveal.getConfig().height * 0.8,\n\t\t\t\tobserveMutations: false,\n\t\t\t\tobserveWindow: false\n\t\t\t} );\n\t\t} );\n\n\t}\n\n\t/**\n\t * Unloads and hides the given slide. This is called when the\n\t * slide is moved outside of the configured view distance.\n\t *\n\t * @param {HTMLElement} slide\n\t */\n\tunload( slide ) {\n\n\t\t// Hide the slide element\n\t\tslide.style.display = 'none';\n\n\t\t// Hide the corresponding background element\n\t\tlet background = this.Reveal.getSlideBackground( slide );\n\t\tif( background ) {\n\t\t\tbackground.style.display = 'none';\n\n\t\t\t// Unload any background iframes\n\t\t\tqueryAll( background, 'iframe[src]' ).forEach( element => {\n\t\t\t\telement.removeAttribute( 'src' );\n\t\t\t} );\n\t\t}\n\n\t\t// Reset lazy-loaded media elements with src attributes\n\t\tqueryAll( slide, 'video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]' ).forEach( element => {\n\t\t\telement.setAttribute( 'data-src', element.getAttribute( 'src' ) );\n\t\t\telement.removeAttribute( 'src' );\n\t\t} );\n\n\t\t// Reset lazy-loaded media elements with children\n\t\tqueryAll( slide, 'video[data-lazy-loaded] source[src], audio source[src]' ).forEach( source => {\n\t\t\tsource.setAttribute( 'data-src', source.getAttribute( 'src' ) );\n\t\t\tsource.removeAttribute( 'src' );\n\t\t} );\n\n\t}\n\n\t/**\n\t * Enforces origin-specific format rules for embedded media.\n\t */\n\tformatEmbeddedContent() {\n\n\t\tlet _appendParamToIframeSource = ( sourceAttribute, sourceURL, param ) => {\n\t\t\tqueryAll( this.Reveal.getSlidesElement(), 'iframe['+ sourceAttribute +'*=\"'+ sourceURL +'\"]' ).forEach( el => {\n\t\t\t\tlet src = el.getAttribute( sourceAttribute );\n\t\t\t\tif( src && src.indexOf( param ) === -1 ) {\n\t\t\t\t\tel.setAttribute( sourceAttribute, src + ( !/\\?/.test( src ) ? '?' : '&' ) + param );\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\n\t\t// YouTube frames must include \"?enablejsapi=1\"\n\t\t_appendParamToIframeSource( 'src', 'youtube.com/embed/', 'enablejsapi=1' );\n\t\t_appendParamToIframeSource( 'data-src', 'youtube.com/embed/', 'enablejsapi=1' );\n\n\t\t// Vimeo frames must include \"?api=1\"\n\t\t_appendParamToIframeSource( 'src', 'player.vimeo.com/', 'api=1' );\n\t\t_appendParamToIframeSource( 'data-src', 'player.vimeo.com/', 'api=1' );\n\n\t}\n\n\t/**\n\t * Start playback of any embedded content inside of\n\t * the given element.\n\t *\n\t * @param {HTMLElement} element\n\t */\n\tstartEmbeddedContent( element ) {\n\n\t\tif( element && !this.Reveal.isSpeakerNotes() ) {\n\n\t\t\t// Restart GIFs\n\t\t\tqueryAll( element, 'img[src$=\".gif\"]' ).forEach( el => {\n\t\t\t\t// Setting the same unchanged source like this was confirmed\n\t\t\t\t// to work in Chrome, FF & Safari\n\t\t\t\tel.setAttribute( 'src', el.getAttribute( 'src' ) );\n\t\t\t} );\n\n\t\t\t// HTML5 media elements\n\t\t\tqueryAll( element, 'video, audio' ).forEach( el => {\n\t\t\t\tif( closest( el, '.fragment' ) && !closest( el, '.fragment.visible' ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Prefer an explicit global autoplay setting\n\t\t\t\tlet autoplay = this.Reveal.getConfig().autoPlayMedia;\n\n\t\t\t\t// If no global setting is available, fall back on the element's\n\t\t\t\t// own autoplay setting\n\t\t\t\tif( typeof autoplay !== 'boolean' ) {\n\t\t\t\t\tautoplay = el.hasAttribute( 'data-autoplay' ) || !!closest( el, '.slide-background' );\n\t\t\t\t}\n\n\t\t\t\tif( autoplay && typeof el.play === 'function' ) {\n\n\t\t\t\t\t// If the media is ready, start playback\n\t\t\t\t\tif( el.readyState > 1 ) {\n\t\t\t\t\t\tthis.startEmbeddedMedia( { target: el } );\n\t\t\t\t\t}\n\t\t\t\t\t// Mobile devices never fire a loaded event so instead\n\t\t\t\t\t// of waiting, we initiate playback\n\t\t\t\t\telse if( isMobile ) {\n\t\t\t\t\t\tlet promise = el.play();\n\n\t\t\t\t\t\t// If autoplay does not work, ensure that the controls are visible so\n\t\t\t\t\t\t// that the viewer can start the media on their own\n\t\t\t\t\t\tif( promise && typeof promise.catch === 'function' && el.controls === false ) {\n\t\t\t\t\t\t\tpromise.catch( () => {\n\t\t\t\t\t\t\t\tel.controls = true;\n\n\t\t\t\t\t\t\t\t// Once the video does start playing, hide the controls again\n\t\t\t\t\t\t\t\tel.addEventListener( 'play', () => {\n\t\t\t\t\t\t\t\t\tel.controls = false;\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// If the media isn't loaded, wait before playing\n\t\t\t\t\telse {\n\t\t\t\t\t\tel.removeEventListener( 'loadeddata', this.startEmbeddedMedia ); // remove first to avoid dupes\n\t\t\t\t\t\tel.addEventListener( 'loadeddata', this.startEmbeddedMedia );\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\t// Normal iframes\n\t\t\tqueryAll( element, 'iframe[src]' ).forEach( el => {\n\t\t\t\tif( closest( el, '.fragment' ) && !closest( el, '.fragment.visible' ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.startEmbeddedIframe( { target: el } );\n\t\t\t} );\n\n\t\t\t// Lazy loading iframes\n\t\t\tqueryAll( element, 'iframe[data-src]' ).forEach( el => {\n\t\t\t\tif( closest( el, '.fragment' ) && !closest( el, '.fragment.visible' ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif( el.getAttribute( 'src' ) !== el.getAttribute( 'data-src' ) ) {\n\t\t\t\t\tel.removeEventListener( 'load', this.startEmbeddedIframe ); // remove first to avoid dupes\n\t\t\t\t\tel.addEventListener( 'load', this.startEmbeddedIframe );\n\t\t\t\t\tel.setAttribute( 'src', el.getAttribute( 'data-src' ) );\n\t\t\t\t}\n\t\t\t} );\n\n\t\t}\n\n\t}\n\n\t/**\n\t * Starts playing an embedded video/audio element after\n\t * it has finished loading.\n\t *\n\t * @param {object} event\n\t */\n\tstartEmbeddedMedia( event ) {\n\n\t\tlet isAttachedToDOM = !!closest( event.target, 'html' ),\n\t\t\tisVisible \t\t= !!closest( event.target, '.present' );\n\n\t\tif( isAttachedToDOM && isVisible ) {\n\t\t\tevent.target.currentTime = 0;\n\t\t\tevent.target.play();\n\t\t}\n\n\t\tevent.target.removeEventListener( 'loadeddata', this.startEmbeddedMedia );\n\n\t}\n\n\t/**\n\t * \"Starts\" the content of an embedded iframe using the\n\t * postMessage API.\n\t *\n\t * @param {object} event\n\t */\n\tstartEmbeddedIframe( event ) {\n\n\t\tlet iframe = event.target;\n\n\t\tif( iframe && iframe.contentWindow ) {\n\n\t\t\tlet isAttachedToDOM = !!closest( event.target, 'html' ),\n\t\t\t\tisVisible \t\t= !!closest( event.target, '.present' );\n\n\t\t\tif( isAttachedToDOM && isVisible ) {\n\n\t\t\t\t// Prefer an explicit global autoplay setting\n\t\t\t\tlet autoplay = this.Reveal.getConfig().autoPlayMedia;\n\n\t\t\t\t// If no global setting is available, fall back on the element's\n\t\t\t\t// own autoplay setting\n\t\t\t\tif( typeof autoplay !== 'boolean' ) {\n\t\t\t\t\tautoplay = iframe.hasAttribute( 'data-autoplay' ) || !!closest( iframe, '.slide-background' );\n\t\t\t\t}\n\n\t\t\t\t// YouTube postMessage API\n\t\t\t\tif( /youtube\\.com\\/embed\\//.test( iframe.getAttribute( 'src' ) ) && autoplay ) {\n\t\t\t\t\tiframe.contentWindow.postMessage( '{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*' );\n\t\t\t\t}\n\t\t\t\t// Vimeo postMessage API\n\t\t\t\telse if( /player\\.vimeo\\.com\\//.test( iframe.getAttribute( 'src' ) ) && autoplay ) {\n\t\t\t\t\tiframe.contentWindow.postMessage( '{\"method\":\"play\"}', '*' );\n\t\t\t\t}\n\t\t\t\t// Generic postMessage API\n\t\t\t\telse {\n\t\t\t\t\tiframe.contentWindow.postMessage( 'slide:start', '*' );\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t}\n\n\t/**\n\t * Stop playback of any embedded content inside of\n\t * the targeted slide.\n\t *\n\t * @param {HTMLElement} element\n\t */\n\tstopEmbeddedContent( element, options = {} ) {\n\n\t\toptions = extend( {\n\t\t\t// Defaults\n\t\t\tunloadIframes: true\n\t\t}, options );\n\n\t\tif( element && element.parentNode ) {\n\t\t\t// HTML5 media elements\n\t\t\tqueryAll( element, 'video, audio' ).forEach( el => {\n\t\t\t\tif( !el.hasAttribute( 'data-ignore' ) && typeof el.pause === 'function' ) {\n\t\t\t\t\tel.setAttribute('data-paused-by-reveal', '');\n\t\t\t\t\tel.pause();\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\t// Generic postMessage API for non-lazy loaded iframes\n\t\t\tqueryAll( element, 'iframe' ).forEach( el => {\n\t\t\t\tif( el.contentWindow ) el.contentWindow.postMessage( 'slide:stop', '*' );\n\t\t\t\tel.removeEventListener( 'load', this.startEmbeddedIframe );\n\t\t\t});\n\n\t\t\t// YouTube postMessage API\n\t\t\tqueryAll( element, 'iframe[src*=\"youtube.com/embed/\"]' ).forEach( el => {\n\t\t\t\tif( !el.hasAttribute( 'data-ignore' ) && el.contentWindow && typeof el.contentWindow.postMessage === 'function' ) {\n\t\t\t\t\tel.contentWindow.postMessage( '{\"event\":\"command\",\"func\":\"pauseVideo\",\"args\":\"\"}', '*' );\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// Vimeo postMessage API\n\t\t\tqueryAll( element, 'iframe[src*=\"player.vimeo.com/\"]' ).forEach( el => {\n\t\t\t\tif( !el.hasAttribute( 'data-ignore' ) && el.contentWindow && typeof el.contentWindow.postMessage === 'function' ) {\n\t\t\t\t\tel.contentWindow.postMessage( '{\"method\":\"pause\"}', '*' );\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tif( options.unloadIframes === true ) {\n\t\t\t\t// Unload lazy-loaded iframes\n\t\t\t\tqueryAll( element, 'iframe[data-src]' ).forEach( el => {\n\t\t\t\t\t// Only removing the src doesn't actually unload the frame\n\t\t\t\t\t// in all browsers (Firefox) so we set it to blank first\n\t\t\t\t\tel.setAttribute( 'src', 'about:blank' );\n\t\t\t\t\tel.removeAttribute( 'src' );\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\n\t}\n\n}\n","/**\n * Handles the display of reveal.js' optional slide number.\n */\nexport default class SlideNumber {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t}\n\n\trender() {\n\n\t\tthis.element = document.createElement( 'div' );\n\t\tthis.element.className = 'slide-number';\n\t\tthis.Reveal.getRevealElement().appendChild( this.element );\n\n\t}\n\n\t/**\n\t * Called when the reveal.js config is updated.\n\t */\n\tconfigure( config, oldConfig ) {\n\n\t\tlet slideNumberDisplay = 'none';\n\t\tif( config.slideNumber && !this.Reveal.isPrintingPDF() ) {\n\t\t\tif( config.showSlideNumber === 'all' ) {\n\t\t\t\tslideNumberDisplay = 'block';\n\t\t\t}\n\t\t\telse if( config.showSlideNumber === 'speaker' && this.Reveal.isSpeakerNotes() ) {\n\t\t\t\tslideNumberDisplay = 'block';\n\t\t\t}\n\t\t}\n\n\t\tthis.element.style.display = slideNumberDisplay;\n\n\t}\n\n\t/**\n\t * Updates the slide number to match the current slide.\n\t */\n\tupdate() {\n\n\t\t// Update slide number if enabled\n\t\tif( this.Reveal.getConfig().slideNumber && this.element ) {\n\t\t\tthis.element.innerHTML = this.getSlideNumber();\n\t\t}\n\n\t}\n\n\t/**\n\t * Returns the HTML string corresponding to the current slide\n\t * number, including formatting.\n\t */\n\tgetSlideNumber( slide = this.Reveal.getCurrentSlide() ) {\n\n\t\tlet config = this.Reveal.getConfig();\n\t\tlet value;\n\t\tlet format = 'h.v';\n\n\t\tif ( typeof config.slideNumber === 'function' ) {\n\t\t\tvalue = config.slideNumber( slide );\n\t\t} else {\n\t\t\t// Check if a custom number format is available\n\t\t\tif( typeof config.slideNumber === 'string' ) {\n\t\t\t\tformat = config.slideNumber;\n\t\t\t}\n\n\t\t\t// If there are ONLY vertical slides in this deck, always use\n\t\t\t// a flattened slide number\n\t\t\tif( !/c/.test( format ) && this.Reveal.getHorizontalSlides().length === 1 ) {\n\t\t\t\tformat = 'c';\n\t\t\t}\n\n\t\t\t// Offset the current slide number by 1 to make it 1-indexed\n\t\t\tlet horizontalOffset = slide && slide.dataset.visibility === 'uncounted' ? 0 : 1;\n\n\t\t\tvalue = [];\n\t\t\tswitch( format ) {\n\t\t\t\tcase 'c':\n\t\t\t\t\tvalue.push( this.Reveal.getSlidePastCount( slide ) + horizontalOffset );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'c/t':\n\t\t\t\t\tvalue.push( this.Reveal.getSlidePastCount( slide ) + horizontalOffset, '/', this.Reveal.getTotalSlides() );\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlet indices = this.Reveal.getIndices( slide );\n\t\t\t\t\tvalue.push( indices.h + horizontalOffset );\n\t\t\t\t\tlet sep = format === 'h/v' ? '/' : '.';\n\t\t\t\t\tif( this.Reveal.isVerticalSlide( slide ) ) value.push( sep, indices.v + 1 );\n\t\t\t}\n\t\t}\n\n\t\tlet url = '#' + this.Reveal.location.getHash( slide );\n\t\treturn this.formatNumber( value[0], value[1], value[2], url );\n\n\t}\n\n\t/**\n\t * Applies HTML formatting to a slide number before it's\n\t * written to the DOM.\n\t *\n\t * @param {number} a Current slide\n\t * @param {string} delimiter Character to separate slide numbers\n\t * @param {(number|*)} b Total slides\n\t * @param {HTMLElement} [url='#'+locationHash()] The url to link to\n\t * @return {string} HTML string fragment\n\t */\n\tformatNumber( a, delimiter, b, url = '#' + this.Reveal.location.getHash() ) {\n\n\t\tif( typeof b === 'number' && !isNaN( b ) ) {\n\t\t\treturn `\n\t\t\t\t\t${a}\n\t\t\t\t\t${delimiter}\n\t\t\t\t\t${b}\n\t\t\t\t\t`;\n\t\t}\n\t\telse {\n\t\t\treturn `\n\t\t\t\t\t${a}\n\t\t\t\t\t`;\n\t\t}\n\n\t}\n\n\tdestroy() {\n\n\t\tthis.element.remove();\n\n\t}\n\n}","/**\n * Makes it possible to jump to a slide by entering its\n * slide number or id.\n */\nexport default class JumpToSlide {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t\tthis.onInput = this.onInput.bind( this );\n\t\tthis.onBlur = this.onBlur.bind( this );\n\t\tthis.onKeyDown = this.onKeyDown.bind( this );\n\n\t}\n\n\trender() {\n\n\t\tthis.element = document.createElement( 'div' );\n\t\tthis.element.className = 'jump-to-slide';\n\n this.jumpInput = document.createElement( 'input' );\n this.jumpInput.type = 'text';\n this.jumpInput.className = 'jump-to-slide-input';\n this.jumpInput.placeholder = 'Jump to slide';\n\t\tthis.jumpInput.addEventListener( 'input', this.onInput );\n\t\tthis.jumpInput.addEventListener( 'keydown', this.onKeyDown );\n\t\tthis.jumpInput.addEventListener( 'blur', this.onBlur );\n\n this.element.appendChild( this.jumpInput );\n\n\t}\n\n\tshow() {\n\n\t\tthis.indicesOnShow = this.Reveal.getIndices();\n\n\t\tthis.Reveal.getRevealElement().appendChild( this.element );\n\t\tthis.jumpInput.focus();\n\n\t}\n\n\thide() {\n\n\t\tif( this.isVisible() ) {\n\t\t\tthis.element.remove();\n\t\t\tthis.jumpInput.value = '';\n\n\t\t\tclearTimeout( this.jumpTimeout );\n\t\t\tdelete this.jumpTimeout;\n\t\t}\n\n\t}\n\n\tisVisible() {\n\n\t\treturn !!this.element.parentNode;\n\n\t}\n\n\t/**\n\t * Parses the current input and jumps to the given slide.\n\t */\n\tjump() {\n\n\t\tclearTimeout( this.jumpTimeout );\n\t\tdelete this.jumpTimeout;\n\n\t\tconst query = this.jumpInput.value.trim( '' );\n\t\tlet indices = this.Reveal.location.getIndicesFromHash( query, { oneBasedIndex: true } );\n\n\t\t// If no valid index was found and the input query is a\n\t\t// string, fall back on a simple search\n\t\tif( !indices && /\\S+/i.test( query ) && query.length > 1 ) {\n\t\t\tindices = this.search( query );\n\t\t}\n\n\t\tif( indices && query !== '' ) {\n\t\t\tthis.Reveal.slide( indices.h, indices.v, indices.f );\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\tthis.Reveal.slide( this.indicesOnShow.h, this.indicesOnShow.v, this.indicesOnShow.f );\n\t\t\treturn false;\n\t\t}\n\n\t}\n\n\tjumpAfter( delay ) {\n\n\t\tclearTimeout( this.jumpTimeout );\n\t\tthis.jumpTimeout = setTimeout( () => this.jump(), delay );\n\n\t}\n\n\t/**\n\t * A lofi search that looks for the given query in all\n\t * of our slides and returns the first match.\n\t */\n\tsearch( query ) {\n\n\t\tconst regex = new RegExp( '\\\\b' + query.trim() + '\\\\b', 'i' );\n\n\t\tconst slide = this.Reveal.getSlides().find( ( slide ) => {\n\t\t\treturn regex.test( slide.innerText );\n\t\t} );\n\n\t\tif( slide ) {\n\t\t\treturn this.Reveal.getIndices( slide );\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\n\t}\n\n\t/**\n\t * Reverts back to the slide we were on when jump to slide was\n\t * invoked.\n\t */\n\tcancel() {\n\n\t\tthis.Reveal.slide( this.indicesOnShow.h, this.indicesOnShow.v, this.indicesOnShow.f );\n\t\tthis.hide();\n\n\t}\n\n\tconfirm() {\n\n\t\tthis.jump();\n\t\tthis.hide();\n\n\t}\n\n\tdestroy() {\n\n\t\tthis.jumpInput.removeEventListener( 'input', this.onInput );\n\t\tthis.jumpInput.removeEventListener( 'keydown', this.onKeyDown );\n\t\tthis.jumpInput.removeEventListener( 'blur', this.onBlur );\n\n\t\tthis.element.remove();\n\n\t}\n\n\tonKeyDown( event ) {\n\n\t\tif( event.keyCode === 13 ) {\n\t\t\tthis.confirm();\n\t\t}\n\t\telse if( event.keyCode === 27 ) {\n\t\t\tthis.cancel();\n\n\t\t\tevent.stopImmediatePropagation();\n\t\t}\n\n\t}\n\n\tonInput( event ) {\n\n\t\tthis.jumpAfter( 200 );\n\n\t}\n\n\tonBlur() {\n\n\t\tsetTimeout( () => this.hide(), 1 );\n\n\t}\n\n}","/**\n * Converts various color input formats to an {r:0,g:0,b:0} object.\n *\n * @param {string} color The string representation of a color\n * @example\n * colorToRgb('#000');\n * @example\n * colorToRgb('#000000');\n * @example\n * colorToRgb('rgb(0,0,0)');\n * @example\n * colorToRgb('rgba(0,0,0)');\n *\n * @return {{r: number, g: number, b: number, [a]: number}|null}\n */\nexport const colorToRgb = ( color ) => {\n\n\tlet hex3 = color.match( /^#([0-9a-f]{3})$/i );\n\tif( hex3 && hex3[1] ) {\n\t\thex3 = hex3[1];\n\t\treturn {\n\t\t\tr: parseInt( hex3.charAt( 0 ), 16 ) * 0x11,\n\t\t\tg: parseInt( hex3.charAt( 1 ), 16 ) * 0x11,\n\t\t\tb: parseInt( hex3.charAt( 2 ), 16 ) * 0x11\n\t\t};\n\t}\n\n\tlet hex6 = color.match( /^#([0-9a-f]{6})$/i );\n\tif( hex6 && hex6[1] ) {\n\t\thex6 = hex6[1];\n\t\treturn {\n\t\t\tr: parseInt( hex6.slice( 0, 2 ), 16 ),\n\t\t\tg: parseInt( hex6.slice( 2, 4 ), 16 ),\n\t\t\tb: parseInt( hex6.slice( 4, 6 ), 16 )\n\t\t};\n\t}\n\n\tlet rgb = color.match( /^rgb\\s*\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)$/i );\n\tif( rgb ) {\n\t\treturn {\n\t\t\tr: parseInt( rgb[1], 10 ),\n\t\t\tg: parseInt( rgb[2], 10 ),\n\t\t\tb: parseInt( rgb[3], 10 )\n\t\t};\n\t}\n\n\tlet rgba = color.match( /^rgba\\s*\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\,\\s*([\\d]+|[\\d]*.[\\d]+)\\s*\\)$/i );\n\tif( rgba ) {\n\t\treturn {\n\t\t\tr: parseInt( rgba[1], 10 ),\n\t\t\tg: parseInt( rgba[2], 10 ),\n\t\t\tb: parseInt( rgba[3], 10 ),\n\t\t\ta: parseFloat( rgba[4] )\n\t\t};\n\t}\n\n\treturn null;\n\n}\n\n/**\n * Calculates brightness on a scale of 0-255.\n *\n * @param {string} color See colorToRgb for supported formats.\n * @see {@link colorToRgb}\n */\nexport const colorBrightness = ( color ) => {\n\n\tif( typeof color === 'string' ) color = colorToRgb( color );\n\n\tif( color ) {\n\t\treturn ( color.r * 299 + color.g * 587 + color.b * 114 ) / 1000;\n\t}\n\n\treturn null;\n\n}","import { queryAll } from '../utils/util.js'\nimport { colorToRgb, colorBrightness } from '../utils/color.js'\n\n/**\n * Creates and updates slide backgrounds.\n */\nexport default class Backgrounds {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t}\n\n\trender() {\n\n\t\tthis.element = document.createElement( 'div' );\n\t\tthis.element.className = 'backgrounds';\n\t\tthis.Reveal.getRevealElement().appendChild( this.element );\n\n\t}\n\n\t/**\n\t * Creates the slide background elements and appends them\n\t * to the background container. One element is created per\n\t * slide no matter if the given slide has visible background.\n\t */\n\tcreate() {\n\n\t\t// Clear prior backgrounds\n\t\tthis.element.innerHTML = '';\n\t\tthis.element.classList.add( 'no-transition' );\n\n\t\t// Iterate over all horizontal slides\n\t\tthis.Reveal.getHorizontalSlides().forEach( slideh => {\n\n\t\t\tlet backgroundStack = this.createBackground( slideh, this.element );\n\n\t\t\t// Iterate over all vertical slides\n\t\t\tqueryAll( slideh, 'section' ).forEach( slidev => {\n\n\t\t\t\tthis.createBackground( slidev, backgroundStack );\n\n\t\t\t\tbackgroundStack.classList.add( 'stack' );\n\n\t\t\t} );\n\n\t\t} );\n\n\t\t// Add parallax background if specified\n\t\tif( this.Reveal.getConfig().parallaxBackgroundImage ) {\n\n\t\t\tthis.element.style.backgroundImage = 'url(\"' + this.Reveal.getConfig().parallaxBackgroundImage + '\")';\n\t\t\tthis.element.style.backgroundSize = this.Reveal.getConfig().parallaxBackgroundSize;\n\t\t\tthis.element.style.backgroundRepeat = this.Reveal.getConfig().parallaxBackgroundRepeat;\n\t\t\tthis.element.style.backgroundPosition = this.Reveal.getConfig().parallaxBackgroundPosition;\n\n\t\t\t// Make sure the below properties are set on the element - these properties are\n\t\t\t// needed for proper transitions to be set on the element via CSS. To remove\n\t\t\t// annoying background slide-in effect when the presentation starts, apply\n\t\t\t// these properties after short time delay\n\t\t\tsetTimeout( () => {\n\t\t\t\tthis.Reveal.getRevealElement().classList.add( 'has-parallax-background' );\n\t\t\t}, 1 );\n\n\t\t}\n\t\telse {\n\n\t\t\tthis.element.style.backgroundImage = '';\n\t\t\tthis.Reveal.getRevealElement().classList.remove( 'has-parallax-background' );\n\n\t\t}\n\n\t}\n\n\t/**\n\t * Creates a background for the given slide.\n\t *\n\t * @param {HTMLElement} slide\n\t * @param {HTMLElement} container The element that the background\n\t * should be appended to\n\t * @return {HTMLElement} New background div\n\t */\n\tcreateBackground( slide, container ) {\n\n\t\t// Main slide background element\n\t\tlet element = document.createElement( 'div' );\n\t\telement.className = 'slide-background ' + slide.className.replace( /present|past|future/, '' );\n\n\t\t// Inner background element that wraps images/videos/iframes\n\t\tlet contentElement = document.createElement( 'div' );\n\t\tcontentElement.className = 'slide-background-content';\n\n\t\telement.appendChild( contentElement );\n\t\tcontainer.appendChild( element );\n\n\t\tslide.slideBackgroundElement = element;\n\t\tslide.slideBackgroundContentElement = contentElement;\n\n\t\t// Syncs the background to reflect all current background settings\n\t\tthis.sync( slide );\n\n\t\treturn element;\n\n\t}\n\n\t/**\n\t * Renders all of the visual properties of a slide background\n\t * based on the various background attributes.\n\t *\n\t * @param {HTMLElement} slide\n\t */\n\tsync( slide ) {\n\n\t\tconst element = slide.slideBackgroundElement,\n\t\t\tcontentElement = slide.slideBackgroundContentElement;\n\n\t\tconst data = {\n\t\t\tbackground: slide.getAttribute( 'data-background' ),\n\t\t\tbackgroundSize: slide.getAttribute( 'data-background-size' ),\n\t\t\tbackgroundImage: slide.getAttribute( 'data-background-image' ),\n\t\t\tbackgroundVideo: slide.getAttribute( 'data-background-video' ),\n\t\t\tbackgroundIframe: slide.getAttribute( 'data-background-iframe' ),\n\t\t\tbackgroundColor: slide.getAttribute( 'data-background-color' ),\n\t\t\tbackgroundGradient: slide.getAttribute( 'data-background-gradient' ),\n\t\t\tbackgroundRepeat: slide.getAttribute( 'data-background-repeat' ),\n\t\t\tbackgroundPosition: slide.getAttribute( 'data-background-position' ),\n\t\t\tbackgroundTransition: slide.getAttribute( 'data-background-transition' ),\n\t\t\tbackgroundOpacity: slide.getAttribute( 'data-background-opacity' ),\n\t\t};\n\n\t\tconst dataPreload = slide.hasAttribute( 'data-preload' );\n\n\t\t// Reset the prior background state in case this is not the\n\t\t// initial sync\n\t\tslide.classList.remove( 'has-dark-background' );\n\t\tslide.classList.remove( 'has-light-background' );\n\n\t\telement.removeAttribute( 'data-loaded' );\n\t\telement.removeAttribute( 'data-background-hash' );\n\t\telement.removeAttribute( 'data-background-size' );\n\t\telement.removeAttribute( 'data-background-transition' );\n\t\telement.style.backgroundColor = '';\n\n\t\tcontentElement.style.backgroundSize = '';\n\t\tcontentElement.style.backgroundRepeat = '';\n\t\tcontentElement.style.backgroundPosition = '';\n\t\tcontentElement.style.backgroundImage = '';\n\t\tcontentElement.style.opacity = '';\n\t\tcontentElement.innerHTML = '';\n\n\t\tif( data.background ) {\n\t\t\t// Auto-wrap image urls in url(...)\n\t\t\tif( /^(http|file|\\/\\/)/gi.test( data.background ) || /\\.(svg|png|jpg|jpeg|gif|bmp|webp)([?#\\s]|$)/gi.test( data.background ) ) {\n\t\t\t\tslide.setAttribute( 'data-background-image', data.background );\n\t\t\t}\n\t\t\telse {\n\t\t\t\telement.style.background = data.background;\n\t\t\t}\n\t\t}\n\n\t\t// Create a hash for this combination of background settings.\n\t\t// This is used to determine when two slide backgrounds are\n\t\t// the same.\n\t\tif( data.background || data.backgroundColor || data.backgroundGradient || data.backgroundImage || data.backgroundVideo || data.backgroundIframe ) {\n\t\t\telement.setAttribute( 'data-background-hash', data.background +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata.backgroundSize +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata.backgroundImage +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata.backgroundVideo +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata.backgroundIframe +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata.backgroundColor +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata.backgroundGradient +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata.backgroundRepeat +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata.backgroundPosition +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata.backgroundTransition +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata.backgroundOpacity );\n\t\t}\n\n\t\t// Additional and optional background properties\n\t\tif( data.backgroundSize ) element.setAttribute( 'data-background-size', data.backgroundSize );\n\t\tif( data.backgroundColor ) element.style.backgroundColor = data.backgroundColor;\n\t\tif( data.backgroundGradient ) element.style.backgroundImage = data.backgroundGradient;\n\t\tif( data.backgroundTransition ) element.setAttribute( 'data-background-transition', data.backgroundTransition );\n\n\t\tif( dataPreload ) element.setAttribute( 'data-preload', '' );\n\n\t\t// Background image options are set on the content wrapper\n\t\tif( data.backgroundSize ) contentElement.style.backgroundSize = data.backgroundSize;\n\t\tif( data.backgroundRepeat ) contentElement.style.backgroundRepeat = data.backgroundRepeat;\n\t\tif( data.backgroundPosition ) contentElement.style.backgroundPosition = data.backgroundPosition;\n\t\tif( data.backgroundOpacity ) contentElement.style.opacity = data.backgroundOpacity;\n\n\t\t// If this slide has a background color, we add a class that\n\t\t// signals if it is light or dark. If the slide has no background\n\t\t// color, no class will be added\n\t\tlet contrastColor = data.backgroundColor;\n\n\t\t// If no bg color was found, or it cannot be converted by colorToRgb, check the computed background\n\t\tif( !contrastColor || !colorToRgb( contrastColor ) ) {\n\t\t\tlet computedBackgroundStyle = window.getComputedStyle( element );\n\t\t\tif( computedBackgroundStyle && computedBackgroundStyle.backgroundColor ) {\n\t\t\t\tcontrastColor = computedBackgroundStyle.backgroundColor;\n\t\t\t}\n\t\t}\n\n\t\tif( contrastColor ) {\n\t\t\tconst rgb = colorToRgb( contrastColor );\n\n\t\t\t// Ignore fully transparent backgrounds. Some browsers return\n\t\t\t// rgba(0,0,0,0) when reading the computed background color of\n\t\t\t// an element with no background\n\t\t\tif( rgb && rgb.a !== 0 ) {\n\t\t\t\tif( colorBrightness( contrastColor ) < 128 ) {\n\t\t\t\t\tslide.classList.add( 'has-dark-background' );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tslide.classList.add( 'has-light-background' );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}\n\n\t/**\n\t * Updates the background elements to reflect the current\n\t * slide.\n\t *\n\t * @param {boolean} includeAll If true, the backgrounds of\n\t * all vertical slides (not just the present) will be updated.\n\t */\n\tupdate( includeAll = false ) {\n\n\t\tlet currentSlide = this.Reveal.getCurrentSlide();\n\t\tlet indices = this.Reveal.getIndices();\n\n\t\tlet currentBackground = null;\n\n\t\t// Reverse past/future classes when in RTL mode\n\t\tlet horizontalPast = this.Reveal.getConfig().rtl ? 'future' : 'past',\n\t\t\thorizontalFuture = this.Reveal.getConfig().rtl ? 'past' : 'future';\n\n\t\t// Update the classes of all backgrounds to match the\n\t\t// states of their slides (past/present/future)\n\t\tArray.from( this.element.childNodes ).forEach( ( backgroundh, h ) => {\n\n\t\t\tbackgroundh.classList.remove( 'past', 'present', 'future' );\n\n\t\t\tif( h < indices.h ) {\n\t\t\t\tbackgroundh.classList.add( horizontalPast );\n\t\t\t}\n\t\t\telse if ( h > indices.h ) {\n\t\t\t\tbackgroundh.classList.add( horizontalFuture );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbackgroundh.classList.add( 'present' );\n\n\t\t\t\t// Store a reference to the current background element\n\t\t\t\tcurrentBackground = backgroundh;\n\t\t\t}\n\n\t\t\tif( includeAll || h === indices.h ) {\n\t\t\t\tqueryAll( backgroundh, '.slide-background' ).forEach( ( backgroundv, v ) => {\n\n\t\t\t\t\tbackgroundv.classList.remove( 'past', 'present', 'future' );\n\n\t\t\t\t\tif( v < indices.v ) {\n\t\t\t\t\t\tbackgroundv.classList.add( 'past' );\n\t\t\t\t\t}\n\t\t\t\t\telse if ( v > indices.v ) {\n\t\t\t\t\t\tbackgroundv.classList.add( 'future' );\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tbackgroundv.classList.add( 'present' );\n\n\t\t\t\t\t\t// Only if this is the present horizontal and vertical slide\n\t\t\t\t\t\tif( h === indices.h ) currentBackground = backgroundv;\n\t\t\t\t\t}\n\n\t\t\t\t} );\n\t\t\t}\n\n\t\t} );\n\n\t\t// Stop content inside of previous backgrounds\n\t\tif( this.previousBackground ) {\n\n\t\t\tthis.Reveal.slideContent.stopEmbeddedContent( this.previousBackground, { unloadIframes: !this.Reveal.slideContent.shouldPreload( this.previousBackground ) } );\n\n\t\t}\n\n\t\t// Start content in the current background\n\t\tif( currentBackground ) {\n\n\t\t\tthis.Reveal.slideContent.startEmbeddedContent( currentBackground );\n\n\t\t\tlet currentBackgroundContent = currentBackground.querySelector( '.slide-background-content' );\n\t\t\tif( currentBackgroundContent ) {\n\n\t\t\t\tlet backgroundImageURL = currentBackgroundContent.style.backgroundImage || '';\n\n\t\t\t\t// Restart GIFs (doesn't work in Firefox)\n\t\t\t\tif( /\\.gif/i.test( backgroundImageURL ) ) {\n\t\t\t\t\tcurrentBackgroundContent.style.backgroundImage = '';\n\t\t\t\t\twindow.getComputedStyle( currentBackgroundContent ).opacity;\n\t\t\t\t\tcurrentBackgroundContent.style.backgroundImage = backgroundImageURL;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// Don't transition between identical backgrounds. This\n\t\t\t// prevents unwanted flicker.\n\t\t\tlet previousBackgroundHash = this.previousBackground ? this.previousBackground.getAttribute( 'data-background-hash' ) : null;\n\t\t\tlet currentBackgroundHash = currentBackground.getAttribute( 'data-background-hash' );\n\t\t\tif( currentBackgroundHash && currentBackgroundHash === previousBackgroundHash && currentBackground !== this.previousBackground ) {\n\t\t\t\tthis.element.classList.add( 'no-transition' );\n\t\t\t}\n\n\t\t\tthis.previousBackground = currentBackground;\n\n\t\t}\n\n\t\t// If there's a background brightness flag for this slide,\n\t\t// bubble it to the .reveal container\n\t\tif( currentSlide ) {\n\t\t\t[ 'has-light-background', 'has-dark-background' ].forEach( classToBubble => {\n\t\t\t\tif( currentSlide.classList.contains( classToBubble ) ) {\n\t\t\t\t\tthis.Reveal.getRevealElement().classList.add( classToBubble );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.Reveal.getRevealElement().classList.remove( classToBubble );\n\t\t\t\t}\n\t\t\t}, this );\n\t\t}\n\n\t\t// Allow the first background to apply without transition\n\t\tsetTimeout( () => {\n\t\t\tthis.element.classList.remove( 'no-transition' );\n\t\t}, 1 );\n\n\t}\n\n\t/**\n\t * Updates the position of the parallax background based\n\t * on the current slide index.\n\t */\n\tupdateParallax() {\n\n\t\tlet indices = this.Reveal.getIndices();\n\n\t\tif( this.Reveal.getConfig().parallaxBackgroundImage ) {\n\n\t\t\tlet horizontalSlides = this.Reveal.getHorizontalSlides(),\n\t\t\t\tverticalSlides = this.Reveal.getVerticalSlides();\n\n\t\t\tlet backgroundSize = this.element.style.backgroundSize.split( ' ' ),\n\t\t\t\tbackgroundWidth, backgroundHeight;\n\n\t\t\tif( backgroundSize.length === 1 ) {\n\t\t\t\tbackgroundWidth = backgroundHeight = parseInt( backgroundSize[0], 10 );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbackgroundWidth = parseInt( backgroundSize[0], 10 );\n\t\t\t\tbackgroundHeight = parseInt( backgroundSize[1], 10 );\n\t\t\t}\n\n\t\t\tlet slideWidth = this.element.offsetWidth,\n\t\t\t\thorizontalSlideCount = horizontalSlides.length,\n\t\t\t\thorizontalOffsetMultiplier,\n\t\t\t\thorizontalOffset;\n\n\t\t\tif( typeof this.Reveal.getConfig().parallaxBackgroundHorizontal === 'number' ) {\n\t\t\t\thorizontalOffsetMultiplier = this.Reveal.getConfig().parallaxBackgroundHorizontal;\n\t\t\t}\n\t\t\telse {\n\t\t\t\thorizontalOffsetMultiplier = horizontalSlideCount > 1 ? ( backgroundWidth - slideWidth ) / ( horizontalSlideCount-1 ) : 0;\n\t\t\t}\n\n\t\t\thorizontalOffset = horizontalOffsetMultiplier * indices.h * -1;\n\n\t\t\tlet slideHeight = this.element.offsetHeight,\n\t\t\t\tverticalSlideCount = verticalSlides.length,\n\t\t\t\tverticalOffsetMultiplier,\n\t\t\t\tverticalOffset;\n\n\t\t\tif( typeof this.Reveal.getConfig().parallaxBackgroundVertical === 'number' ) {\n\t\t\t\tverticalOffsetMultiplier = this.Reveal.getConfig().parallaxBackgroundVertical;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tverticalOffsetMultiplier = ( backgroundHeight - slideHeight ) / ( verticalSlideCount-1 );\n\t\t\t}\n\n\t\t\tverticalOffset = verticalSlideCount > 0 ? verticalOffsetMultiplier * indices.v : 0;\n\n\t\t\tthis.element.style.backgroundPosition = horizontalOffset + 'px ' + -verticalOffset + 'px';\n\n\t\t}\n\n\t}\n\n\tdestroy() {\n\n\t\tthis.element.remove();\n\n\t}\n\n}\n","\nexport const SLIDES_SELECTOR = '.slides section';\nexport const HORIZONTAL_SLIDES_SELECTOR = '.slides>section';\nexport const VERTICAL_SLIDES_SELECTOR = '.slides>section.present>section';\n\n// Methods that may not be invoked via the postMessage API\nexport const POST_MESSAGE_METHOD_BLACKLIST = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/;\n\n// Regex for retrieving the fragment style from a class attribute\nexport const FRAGMENT_STYLE_REGEX = /fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/;","import { queryAll, extend, createStyleSheet, matches, closest } from '../utils/util.js'\nimport { FRAGMENT_STYLE_REGEX } from '../utils/constants.js'\n\n// Counter used to generate unique IDs for auto-animated elements\nlet autoAnimateCounter = 0;\n\n/**\n * Automatically animates matching elements across\n * slides with the [data-auto-animate] attribute.\n */\nexport default class AutoAnimate {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t}\n\n\t/**\n\t * Runs an auto-animation between the given slides.\n\t *\n\t * @param {HTMLElement} fromSlide\n\t * @param {HTMLElement} toSlide\n\t */\n\trun( fromSlide, toSlide ) {\n\n\t\t// Clean up after prior animations\n\t\tthis.reset();\n\n\t\tlet allSlides = this.Reveal.getSlides();\n\t\tlet toSlideIndex = allSlides.indexOf( toSlide );\n\t\tlet fromSlideIndex = allSlides.indexOf( fromSlide );\n\n\t\t// Ensure that both slides are auto-animate targets with the same data-auto-animate-id value\n\t\t// (including null if absent on both) and that data-auto-animate-restart isn't set on the\n\t\t// physically latter slide (independent of slide direction)\n\t\tif( fromSlide.hasAttribute( 'data-auto-animate' ) && toSlide.hasAttribute( 'data-auto-animate' )\n\t\t\t\t&& fromSlide.getAttribute( 'data-auto-animate-id' ) === toSlide.getAttribute( 'data-auto-animate-id' ) \n\t\t\t\t&& !( toSlideIndex > fromSlideIndex ? toSlide : fromSlide ).hasAttribute( 'data-auto-animate-restart' ) ) {\n\n\t\t\t// Create a new auto-animate sheet\n\t\t\tthis.autoAnimateStyleSheet = this.autoAnimateStyleSheet || createStyleSheet();\n\n\t\t\tlet animationOptions = this.getAutoAnimateOptions( toSlide );\n\n\t\t\t// Set our starting state\n\t\t\tfromSlide.dataset.autoAnimate = 'pending';\n\t\t\ttoSlide.dataset.autoAnimate = 'pending';\n\n\t\t\t// Flag the navigation direction, needed for fragment buildup\n\t\t\tanimationOptions.slideDirection = toSlideIndex > fromSlideIndex ? 'forward' : 'backward';\n\n\t\t\t// If the from-slide is hidden because it has moved outside\n\t\t\t// the view distance, we need to temporarily show it while\n\t\t\t// measuring\n\t\t\tlet fromSlideIsHidden = fromSlide.style.display === 'none';\n\t\t\tif( fromSlideIsHidden ) fromSlide.style.display = this.Reveal.getConfig().display;\n\n\t\t\t// Inject our auto-animate styles for this transition\n\t\t\tlet css = this.getAutoAnimatableElements( fromSlide, toSlide ).map( elements => {\n\t\t\t\treturn this.autoAnimateElements( elements.from, elements.to, elements.options || {}, animationOptions, autoAnimateCounter++ );\n\t\t\t} );\n\n\t\t\tif( fromSlideIsHidden ) fromSlide.style.display = 'none';\n\n\t\t\t// Animate unmatched elements, if enabled\n\t\t\tif( toSlide.dataset.autoAnimateUnmatched !== 'false' && this.Reveal.getConfig().autoAnimateUnmatched === true ) {\n\n\t\t\t\t// Our default timings for unmatched elements\n\t\t\t\tlet defaultUnmatchedDuration = animationOptions.duration * 0.8,\n\t\t\t\t\tdefaultUnmatchedDelay = animationOptions.duration * 0.2;\n\n\t\t\t\tthis.getUnmatchedAutoAnimateElements( toSlide ).forEach( unmatchedElement => {\n\n\t\t\t\t\tlet unmatchedOptions = this.getAutoAnimateOptions( unmatchedElement, animationOptions );\n\t\t\t\t\tlet id = 'unmatched';\n\n\t\t\t\t\t// If there is a duration or delay set specifically for this\n\t\t\t\t\t// element our unmatched elements should adhere to those\n\t\t\t\t\tif( unmatchedOptions.duration !== animationOptions.duration || unmatchedOptions.delay !== animationOptions.delay ) {\n\t\t\t\t\t\tid = 'unmatched-' + autoAnimateCounter++;\n\t\t\t\t\t\tcss.push( `[data-auto-animate=\"running\"] [data-auto-animate-target=\"${id}\"] { transition: opacity ${unmatchedOptions.duration}s ease ${unmatchedOptions.delay}s; }` );\n\t\t\t\t\t}\n\n\t\t\t\t\tunmatchedElement.dataset.autoAnimateTarget = id;\n\n\t\t\t\t}, this );\n\n\t\t\t\t// Our default transition for unmatched elements\n\t\t\t\tcss.push( `[data-auto-animate=\"running\"] [data-auto-animate-target=\"unmatched\"] { transition: opacity ${defaultUnmatchedDuration}s ease ${defaultUnmatchedDelay}s; }` );\n\n\t\t\t}\n\n\t\t\t// Setting the whole chunk of CSS at once is the most\n\t\t\t// efficient way to do this. Using sheet.insertRule\n\t\t\t// is multiple factors slower.\n\t\t\tthis.autoAnimateStyleSheet.innerHTML = css.join( '' );\n\n\t\t\t// Start the animation next cycle\n\t\t\trequestAnimationFrame( () => {\n\t\t\t\tif( this.autoAnimateStyleSheet ) {\n\t\t\t\t\t// This forces our newly injected styles to be applied in Firefox\n\t\t\t\t\tgetComputedStyle( this.autoAnimateStyleSheet ).fontWeight;\n\n\t\t\t\t\ttoSlide.dataset.autoAnimate = 'running';\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\tthis.Reveal.dispatchEvent({\n\t\t\t\ttype: 'autoanimate',\n\t\t\t\tdata: {\n\t\t\t\t\tfromSlide,\n\t\t\t\t\ttoSlide,\n\t\t\t\t\tsheet: this.autoAnimateStyleSheet\n\t\t\t\t}\n\t\t\t});\n\n\t\t}\n\n\t}\n\n\t/**\n\t * Rolls back all changes that we've made to the DOM so\n\t * that as part of animating.\n\t */\n\treset() {\n\n\t\t// Reset slides\n\t\tqueryAll( this.Reveal.getRevealElement(), '[data-auto-animate]:not([data-auto-animate=\"\"])' ).forEach( element => {\n\t\t\telement.dataset.autoAnimate = '';\n\t\t} );\n\n\t\t// Reset elements\n\t\tqueryAll( this.Reveal.getRevealElement(), '[data-auto-animate-target]' ).forEach( element => {\n\t\t\tdelete element.dataset.autoAnimateTarget;\n\t\t} );\n\n\t\t// Remove the animation sheet\n\t\tif( this.autoAnimateStyleSheet && this.autoAnimateStyleSheet.parentNode ) {\n\t\t\tthis.autoAnimateStyleSheet.parentNode.removeChild( this.autoAnimateStyleSheet );\n\t\t\tthis.autoAnimateStyleSheet = null;\n\t\t}\n\n\t}\n\n\t/**\n\t * Creates a FLIP animation where the `to` element starts out\n\t * in the `from` element position and animates to its original\n\t * state.\n\t *\n\t * @param {HTMLElement} from\n\t * @param {HTMLElement} to\n\t * @param {Object} elementOptions Options for this element pair\n\t * @param {Object} animationOptions Options set at the slide level\n\t * @param {String} id Unique ID that we can use to identify this\n\t * auto-animate element in the DOM\n\t */\n\tautoAnimateElements( from, to, elementOptions, animationOptions, id ) {\n\n\t\t// 'from' elements are given a data-auto-animate-target with no value,\n\t\t// 'to' elements are are given a data-auto-animate-target with an ID\n\t\tfrom.dataset.autoAnimateTarget = '';\n\t\tto.dataset.autoAnimateTarget = id;\n\n\t\t// Each element may override any of the auto-animate options\n\t\t// like transition easing, duration and delay via data-attributes\n\t\tlet options = this.getAutoAnimateOptions( to, animationOptions );\n\n\t\t// If we're using a custom element matcher the element options\n\t\t// may contain additional transition overrides\n\t\tif( typeof elementOptions.delay !== 'undefined' ) options.delay = elementOptions.delay;\n\t\tif( typeof elementOptions.duration !== 'undefined' ) options.duration = elementOptions.duration;\n\t\tif( typeof elementOptions.easing !== 'undefined' ) options.easing = elementOptions.easing;\n\n\t\tlet fromProps = this.getAutoAnimatableProperties( 'from', from, elementOptions ),\n\t\t\ttoProps = this.getAutoAnimatableProperties( 'to', to, elementOptions );\n\n\t\t// Maintain fragment visibility for matching elements when\n\t\t// we're navigating forwards, this way the viewer won't need\n\t\t// to step through the same fragments twice\n\t\tif( to.classList.contains( 'fragment' ) ) {\n\n\t\t\t// Don't auto-animate the opacity of fragments to avoid\n\t\t\t// conflicts with fragment animations\n\t\t\tdelete toProps.styles['opacity'];\n\n\t\t\tif( from.classList.contains( 'fragment' ) ) {\n\n\t\t\t\tlet fromFragmentStyle = ( from.className.match( FRAGMENT_STYLE_REGEX ) || [''] )[0];\n\t\t\t\tlet toFragmentStyle = ( to.className.match( FRAGMENT_STYLE_REGEX ) || [''] )[0];\n\n\t\t\t\t// Only skip the fragment if the fragment animation style\n\t\t\t\t// remains unchanged\n\t\t\t\tif( fromFragmentStyle === toFragmentStyle && animationOptions.slideDirection === 'forward' ) {\n\t\t\t\t\tto.classList.add( 'visible', 'disabled' );\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\t// If translation and/or scaling are enabled, css transform\n\t\t// the 'to' element so that it matches the position and size\n\t\t// of the 'from' element\n\t\tif( elementOptions.translate !== false || elementOptions.scale !== false ) {\n\n\t\t\tlet presentationScale = this.Reveal.getScale();\n\n\t\t\tlet delta = {\n\t\t\t\tx: ( fromProps.x - toProps.x ) / presentationScale,\n\t\t\t\ty: ( fromProps.y - toProps.y ) / presentationScale,\n\t\t\t\tscaleX: fromProps.width / toProps.width,\n\t\t\t\tscaleY: fromProps.height / toProps.height\n\t\t\t};\n\n\t\t\t// Limit decimal points to avoid 0.0001px blur and stutter\n\t\t\tdelta.x = Math.round( delta.x * 1000 ) / 1000;\n\t\t\tdelta.y = Math.round( delta.y * 1000 ) / 1000;\n\t\t\tdelta.scaleX = Math.round( delta.scaleX * 1000 ) / 1000;\n\t\t\tdelta.scaleX = Math.round( delta.scaleX * 1000 ) / 1000;\n\n\t\t\tlet translate = elementOptions.translate !== false && ( delta.x !== 0 || delta.y !== 0 ),\n\t\t\t\tscale = elementOptions.scale !== false && ( delta.scaleX !== 0 || delta.scaleY !== 0 );\n\n\t\t\t// No need to transform if nothing's changed\n\t\t\tif( translate || scale ) {\n\n\t\t\t\tlet transform = [];\n\n\t\t\t\tif( translate ) transform.push( `translate(${delta.x}px, ${delta.y}px)` );\n\t\t\t\tif( scale ) transform.push( `scale(${delta.scaleX}, ${delta.scaleY})` );\n\n\t\t\t\tfromProps.styles['transform'] = transform.join( ' ' );\n\t\t\t\tfromProps.styles['transform-origin'] = 'top left';\n\n\t\t\t\ttoProps.styles['transform'] = 'none';\n\n\t\t\t}\n\n\t\t}\n\n\t\t// Delete all unchanged 'to' styles\n\t\tfor( let propertyName in toProps.styles ) {\n\t\t\tconst toValue = toProps.styles[propertyName];\n\t\t\tconst fromValue = fromProps.styles[propertyName];\n\n\t\t\tif( toValue === fromValue ) {\n\t\t\t\tdelete toProps.styles[propertyName];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// If these property values were set via a custom matcher providing\n\t\t\t\t// an explicit 'from' and/or 'to' value, we always inject those values.\n\t\t\t\tif( toValue.explicitValue === true ) {\n\t\t\t\t\ttoProps.styles[propertyName] = toValue.value;\n\t\t\t\t}\n\n\t\t\t\tif( fromValue.explicitValue === true ) {\n\t\t\t\t\tfromProps.styles[propertyName] = fromValue.value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tlet css = '';\n\n\t\tlet toStyleProperties = Object.keys( toProps.styles );\n\n\t\t// Only create animate this element IF at least one style\n\t\t// property has changed\n\t\tif( toStyleProperties.length > 0 ) {\n\n\t\t\t// Instantly move to the 'from' state\n\t\t\tfromProps.styles['transition'] = 'none';\n\n\t\t\t// Animate towards the 'to' state\n\t\t\ttoProps.styles['transition'] = `all ${options.duration}s ${options.easing} ${options.delay}s`;\n\t\t\ttoProps.styles['transition-property'] = toStyleProperties.join( ', ' );\n\t\t\ttoProps.styles['will-change'] = toStyleProperties.join( ', ' );\n\n\t\t\t// Build up our custom CSS. We need to override inline styles\n\t\t\t// so we need to make our styles vErY IMPORTANT!1!!\n\t\t\tlet fromCSS = Object.keys( fromProps.styles ).map( propertyName => {\n\t\t\t\treturn propertyName + ': ' + fromProps.styles[propertyName] + ' !important;';\n\t\t\t} ).join( '' );\n\n\t\t\tlet toCSS = Object.keys( toProps.styles ).map( propertyName => {\n\t\t\t\treturn propertyName + ': ' + toProps.styles[propertyName] + ' !important;';\n\t\t\t} ).join( '' );\n\n\t\t\tcss = \t'[data-auto-animate-target=\"'+ id +'\"] {'+ fromCSS +'}' +\n\t\t\t\t\t'[data-auto-animate=\"running\"] [data-auto-animate-target=\"'+ id +'\"] {'+ toCSS +'}';\n\n\t\t}\n\n\t\treturn css;\n\n\t}\n\n\t/**\n\t * Returns the auto-animate options for the given element.\n\t *\n\t * @param {HTMLElement} element Element to pick up options\n\t * from, either a slide or an animation target\n\t * @param {Object} [inheritedOptions] Optional set of existing\n\t * options\n\t */\n\tgetAutoAnimateOptions( element, inheritedOptions ) {\n\n\t\tlet options = {\n\t\t\teasing: this.Reveal.getConfig().autoAnimateEasing,\n\t\t\tduration: this.Reveal.getConfig().autoAnimateDuration,\n\t\t\tdelay: 0\n\t\t};\n\n\t\toptions = extend( options, inheritedOptions );\n\n\t\t// Inherit options from parent elements\n\t\tif( element.parentNode ) {\n\t\t\tlet autoAnimatedParent = closest( element.parentNode, '[data-auto-animate-target]' );\n\t\t\tif( autoAnimatedParent ) {\n\t\t\t\toptions = this.getAutoAnimateOptions( autoAnimatedParent, options );\n\t\t\t}\n\t\t}\n\n\t\tif( element.dataset.autoAnimateEasing ) {\n\t\t\toptions.easing = element.dataset.autoAnimateEasing;\n\t\t}\n\n\t\tif( element.dataset.autoAnimateDuration ) {\n\t\t\toptions.duration = parseFloat( element.dataset.autoAnimateDuration );\n\t\t}\n\n\t\tif( element.dataset.autoAnimateDelay ) {\n\t\t\toptions.delay = parseFloat( element.dataset.autoAnimateDelay );\n\t\t}\n\n\t\treturn options;\n\n\t}\n\n\t/**\n\t * Returns an object containing all of the properties\n\t * that can be auto-animated for the given element and\n\t * their current computed values.\n\t *\n\t * @param {String} direction 'from' or 'to'\n\t */\n\tgetAutoAnimatableProperties( direction, element, elementOptions ) {\n\n\t\tlet config = this.Reveal.getConfig();\n\n\t\tlet properties = { styles: [] };\n\n\t\t// Position and size\n\t\tif( elementOptions.translate !== false || elementOptions.scale !== false ) {\n\t\t\tlet bounds;\n\n\t\t\t// Custom auto-animate may optionally return a custom tailored\n\t\t\t// measurement function\n\t\t\tif( typeof elementOptions.measure === 'function' ) {\n\t\t\t\tbounds = elementOptions.measure( element );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif( config.center ) {\n\t\t\t\t\t// More precise, but breaks when used in combination\n\t\t\t\t\t// with zoom for scaling the deck ¯\\_(ツ)_/¯\n\t\t\t\t\tbounds = element.getBoundingClientRect();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlet scale = this.Reveal.getScale();\n\t\t\t\t\tbounds = {\n\t\t\t\t\t\tx: element.offsetLeft * scale,\n\t\t\t\t\t\ty: element.offsetTop * scale,\n\t\t\t\t\t\twidth: element.offsetWidth * scale,\n\t\t\t\t\t\theight: element.offsetHeight * scale\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tproperties.x = bounds.x;\n\t\t\tproperties.y = bounds.y;\n\t\t\tproperties.width = bounds.width;\n\t\t\tproperties.height = bounds.height;\n\t\t}\n\n\t\tconst computedStyles = getComputedStyle( element );\n\n\t\t// CSS styles\n\t\t( elementOptions.styles || config.autoAnimateStyles ).forEach( style => {\n\t\t\tlet value;\n\n\t\t\t// `style` is either the property name directly, or an object\n\t\t\t// definition of a style property\n\t\t\tif( typeof style === 'string' ) style = { property: style };\n\n\t\t\tif( typeof style.from !== 'undefined' && direction === 'from' ) {\n\t\t\t\tvalue = { value: style.from, explicitValue: true };\n\t\t\t}\n\t\t\telse if( typeof style.to !== 'undefined' && direction === 'to' ) {\n\t\t\t\tvalue = { value: style.to, explicitValue: true };\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Use a unitless value for line-height so that it inherits properly\n\t\t\t\tif( style.property === 'line-height' ) {\n\t\t\t\t\tvalue = parseFloat( computedStyles['line-height'] ) / parseFloat( computedStyles['font-size'] );\n\t\t\t\t}\n\n\t\t\t\tif( isNaN(value) ) {\n\t\t\t\t\tvalue = computedStyles[style.property];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif( value !== '' ) {\n\t\t\t\tproperties.styles[style.property] = value;\n\t\t\t}\n\t\t} );\n\n\t\treturn properties;\n\n\t}\n\n\t/**\n\t * Get a list of all element pairs that we can animate\n\t * between the given slides.\n\t *\n\t * @param {HTMLElement} fromSlide\n\t * @param {HTMLElement} toSlide\n\t *\n\t * @return {Array} Each value is an array where [0] is\n\t * the element we're animating from and [1] is the\n\t * element we're animating to\n\t */\n\tgetAutoAnimatableElements( fromSlide, toSlide ) {\n\n\t\tlet matcher = typeof this.Reveal.getConfig().autoAnimateMatcher === 'function' ? this.Reveal.getConfig().autoAnimateMatcher : this.getAutoAnimatePairs;\n\n\t\tlet pairs = matcher.call( this, fromSlide, toSlide );\n\n\t\tlet reserved = [];\n\n\t\t// Remove duplicate pairs\n\t\treturn pairs.filter( ( pair, index ) => {\n\t\t\tif( reserved.indexOf( pair.to ) === -1 ) {\n\t\t\t\treserved.push( pair.to );\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} );\n\n\t}\n\n\t/**\n\t * Identifies matching elements between slides.\n\t *\n\t * You can specify a custom matcher function by using\n\t * the `autoAnimateMatcher` config option.\n\t */\n\tgetAutoAnimatePairs( fromSlide, toSlide ) {\n\n\t\tlet pairs = [];\n\n\t\tconst codeNodes = 'pre';\n\t\tconst textNodes = 'h1, h2, h3, h4, h5, h6, p, li';\n\t\tconst mediaNodes = 'img, video, iframe';\n\n\t\t// Explicit matches via data-id\n\t\tthis.findAutoAnimateMatches( pairs, fromSlide, toSlide, '[data-id]', node => {\n\t\t\treturn node.nodeName + ':::' + node.getAttribute( 'data-id' );\n\t\t} );\n\n\t\t// Text\n\t\tthis.findAutoAnimateMatches( pairs, fromSlide, toSlide, textNodes, node => {\n\t\t\treturn node.nodeName + ':::' + node.innerText;\n\t\t} );\n\n\t\t// Media\n\t\tthis.findAutoAnimateMatches( pairs, fromSlide, toSlide, mediaNodes, node => {\n\t\t\treturn node.nodeName + ':::' + ( node.getAttribute( 'src' ) || node.getAttribute( 'data-src' ) );\n\t\t} );\n\n\t\t// Code\n\t\tthis.findAutoAnimateMatches( pairs, fromSlide, toSlide, codeNodes, node => {\n\t\t\treturn node.nodeName + ':::' + node.innerText;\n\t\t} );\n\n\t\tpairs.forEach( pair => {\n\t\t\t// Disable scale transformations on text nodes, we transition\n\t\t\t// each individual text property instead\n\t\t\tif( matches( pair.from, textNodes ) ) {\n\t\t\t\tpair.options = { scale: false };\n\t\t\t}\n\t\t\t// Animate individual lines of code\n\t\t\telse if( matches( pair.from, codeNodes ) ) {\n\n\t\t\t\t// Transition the code block's width and height instead of scaling\n\t\t\t\t// to prevent its content from being squished\n\t\t\t\tpair.options = { scale: false, styles: [ 'width', 'height' ] };\n\n\t\t\t\t// Lines of code\n\t\t\t\tthis.findAutoAnimateMatches( pairs, pair.from, pair.to, '.hljs .hljs-ln-code', node => {\n\t\t\t\t\treturn node.textContent;\n\t\t\t\t}, {\n\t\t\t\t\tscale: false,\n\t\t\t\t\tstyles: [],\n\t\t\t\t\tmeasure: this.getLocalBoundingBox.bind( this )\n\t\t\t\t} );\n\n\t\t\t\t// Line numbers\n\t\t\t\tthis.findAutoAnimateMatches( pairs, pair.from, pair.to, '.hljs .hljs-ln-line[data-line-number]', node => {\n\t\t\t\t\treturn node.getAttribute( 'data-line-number' );\n\t\t\t\t}, {\n\t\t\t\t\tscale: false,\n\t\t\t\t\tstyles: [ 'width' ],\n\t\t\t\t\tmeasure: this.getLocalBoundingBox.bind( this )\n\t\t\t\t} );\n\n\t\t\t}\n\n\t\t}, this );\n\n\t\treturn pairs;\n\n\t}\n\n\t/**\n\t * Helper method which returns a bounding box based on\n\t * the given elements offset coordinates.\n\t *\n\t * @param {HTMLElement} element\n\t * @return {Object} x, y, width, height\n\t */\n\tgetLocalBoundingBox( element ) {\n\n\t\tconst presentationScale = this.Reveal.getScale();\n\n\t\treturn {\n\t\t\tx: Math.round( ( element.offsetLeft * presentationScale ) * 100 ) / 100,\n\t\t\ty: Math.round( ( element.offsetTop * presentationScale ) * 100 ) / 100,\n\t\t\twidth: Math.round( ( element.offsetWidth * presentationScale ) * 100 ) / 100,\n\t\t\theight: Math.round( ( element.offsetHeight * presentationScale ) * 100 ) / 100\n\t\t};\n\n\t}\n\n\t/**\n\t * Finds matching elements between two slides.\n\t *\n\t * @param {Array} pairs \tList of pairs to push matches to\n\t * @param {HTMLElement} fromScope Scope within the from element exists\n\t * @param {HTMLElement} toScope Scope within the to element exists\n\t * @param {String} selector CSS selector of the element to match\n\t * @param {Function} serializer A function that accepts an element and returns\n\t * a stringified ID based on its contents\n\t * @param {Object} animationOptions Optional config options for this pair\n\t */\n\tfindAutoAnimateMatches( pairs, fromScope, toScope, selector, serializer, animationOptions ) {\n\n\t\tlet fromMatches = {};\n\t\tlet toMatches = {};\n\n\t\t[].slice.call( fromScope.querySelectorAll( selector ) ).forEach( ( element, i ) => {\n\t\t\tconst key = serializer( element );\n\t\t\tif( typeof key === 'string' && key.length ) {\n\t\t\t\tfromMatches[key] = fromMatches[key] || [];\n\t\t\t\tfromMatches[key].push( element );\n\t\t\t}\n\t\t} );\n\n\t\t[].slice.call( toScope.querySelectorAll( selector ) ).forEach( ( element, i ) => {\n\t\t\tconst key = serializer( element );\n\t\t\ttoMatches[key] = toMatches[key] || [];\n\t\t\ttoMatches[key].push( element );\n\n\t\t\tlet fromElement;\n\n\t\t\t// Retrieve the 'from' element\n\t\t\tif( fromMatches[key] ) {\n\t\t\t\tconst primaryIndex = toMatches[key].length - 1;\n\t\t\t\tconst secondaryIndex = fromMatches[key].length - 1;\n\n\t\t\t\t// If there are multiple identical from elements, retrieve\n\t\t\t\t// the one at the same index as our to-element.\n\t\t\t\tif( fromMatches[key][ primaryIndex ] ) {\n\t\t\t\t\tfromElement = fromMatches[key][ primaryIndex ];\n\t\t\t\t\tfromMatches[key][ primaryIndex ] = null;\n\t\t\t\t}\n\t\t\t\t// If there are no matching from-elements at the same index,\n\t\t\t\t// use the last one.\n\t\t\t\telse if( fromMatches[key][ secondaryIndex ] ) {\n\t\t\t\t\tfromElement = fromMatches[key][ secondaryIndex ];\n\t\t\t\t\tfromMatches[key][ secondaryIndex ] = null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If we've got a matching pair, push it to the list of pairs\n\t\t\tif( fromElement ) {\n\t\t\t\tpairs.push({\n\t\t\t\t\tfrom: fromElement,\n\t\t\t\t\tto: element,\n\t\t\t\t\toptions: animationOptions\n\t\t\t\t});\n\t\t\t}\n\t\t} );\n\n\t}\n\n\t/**\n\t * Returns a all elements within the given scope that should\n\t * be considered unmatched in an auto-animate transition. If\n\t * fading of unmatched elements is turned on, these elements\n\t * will fade when going between auto-animate slides.\n\t *\n\t * Note that parents of auto-animate targets are NOT considered\n\t * unmatched since fading them would break the auto-animation.\n\t *\n\t * @param {HTMLElement} rootElement\n\t * @return {Array}\n\t */\n\tgetUnmatchedAutoAnimateElements( rootElement ) {\n\n\t\treturn [].slice.call( rootElement.children ).reduce( ( result, element ) => {\n\n\t\t\tconst containsAnimatedElements = element.querySelector( '[data-auto-animate-target]' );\n\n\t\t\t// The element is unmatched if\n\t\t\t// - It is not an auto-animate target\n\t\t\t// - It does not contain any auto-animate targets\n\t\t\tif( !element.hasAttribute( 'data-auto-animate-target' ) && !containsAnimatedElements ) {\n\t\t\t\tresult.push( element );\n\t\t\t}\n\n\t\t\tif( element.querySelector( '[data-auto-animate-target]' ) ) {\n\t\t\t\tresult = result.concat( this.getUnmatchedAutoAnimateElements( element ) );\n\t\t\t}\n\n\t\t\treturn result;\n\n\t\t}, [] );\n\n\t}\n\n}\n","import { extend, queryAll } from '../utils/util.js'\n\n/**\n * Handles sorting and navigation of slide fragments.\n * Fragments are elements within a slide that are\n * revealed/animated incrementally.\n */\nexport default class Fragments {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t}\n\n\t/**\n\t * Called when the reveal.js config is updated.\n\t */\n\tconfigure( config, oldConfig ) {\n\n\t\tif( config.fragments === false ) {\n\t\t\tthis.disable();\n\t\t}\n\t\telse if( oldConfig.fragments === false ) {\n\t\t\tthis.enable();\n\t\t}\n\n\t}\n\n\t/**\n\t * If fragments are disabled in the deck, they should all be\n\t * visible rather than stepped through.\n\t */\n\tdisable() {\n\n\t\tqueryAll( this.Reveal.getSlidesElement(), '.fragment' ).forEach( element => {\n\t\t\telement.classList.add( 'visible' );\n\t\t\telement.classList.remove( 'current-fragment' );\n\t\t} );\n\n\t}\n\n\t/**\n\t * Reverse of #disable(). Only called if fragments have\n\t * previously been disabled.\n\t */\n\tenable() {\n\n\t\tqueryAll( this.Reveal.getSlidesElement(), '.fragment' ).forEach( element => {\n\t\t\telement.classList.remove( 'visible' );\n\t\t\telement.classList.remove( 'current-fragment' );\n\t\t} );\n\n\t}\n\n\t/**\n\t * Returns an object describing the available fragment\n\t * directions.\n\t *\n\t * @return {{prev: boolean, next: boolean}}\n\t */\n\tavailableRoutes() {\n\n\t\tlet currentSlide = this.Reveal.getCurrentSlide();\n\t\tif( currentSlide && this.Reveal.getConfig().fragments ) {\n\t\t\tlet fragments = currentSlide.querySelectorAll( '.fragment:not(.disabled)' );\n\t\t\tlet hiddenFragments = currentSlide.querySelectorAll( '.fragment:not(.disabled):not(.visible)' );\n\n\t\t\treturn {\n\t\t\t\tprev: fragments.length - hiddenFragments.length > 0,\n\t\t\t\tnext: !!hiddenFragments.length\n\t\t\t};\n\t\t}\n\t\telse {\n\t\t\treturn { prev: false, next: false };\n\t\t}\n\n\t}\n\n\t/**\n\t * Return a sorted fragments list, ordered by an increasing\n\t * \"data-fragment-index\" attribute.\n\t *\n\t * Fragments will be revealed in the order that they are returned by\n\t * this function, so you can use the index attributes to control the\n\t * order of fragment appearance.\n\t *\n\t * To maintain a sensible default fragment order, fragments are presumed\n\t * to be passed in document order. This function adds a \"fragment-index\"\n\t * attribute to each node if such an attribute is not already present,\n\t * and sets that attribute to an integer value which is the position of\n\t * the fragment within the fragments list.\n\t *\n\t * @param {object[]|*} fragments\n\t * @param {boolean} grouped If true the returned array will contain\n\t * nested arrays for all fragments with the same index\n\t * @return {object[]} sorted Sorted array of fragments\n\t */\n\tsort( fragments, grouped = false ) {\n\n\t\tfragments = Array.from( fragments );\n\n\t\tlet ordered = [],\n\t\t\tunordered = [],\n\t\t\tsorted = [];\n\n\t\t// Group ordered and unordered elements\n\t\tfragments.forEach( fragment => {\n\t\t\tif( fragment.hasAttribute( 'data-fragment-index' ) ) {\n\t\t\t\tlet index = parseInt( fragment.getAttribute( 'data-fragment-index' ), 10 );\n\n\t\t\t\tif( !ordered[index] ) {\n\t\t\t\t\tordered[index] = [];\n\t\t\t\t}\n\n\t\t\t\tordered[index].push( fragment );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tunordered.push( [ fragment ] );\n\t\t\t}\n\t\t} );\n\n\t\t// Append fragments without explicit indices in their\n\t\t// DOM order\n\t\tordered = ordered.concat( unordered );\n\n\t\t// Manually count the index up per group to ensure there\n\t\t// are no gaps\n\t\tlet index = 0;\n\n\t\t// Push all fragments in their sorted order to an array,\n\t\t// this flattens the groups\n\t\tordered.forEach( group => {\n\t\t\tgroup.forEach( fragment => {\n\t\t\t\tsorted.push( fragment );\n\t\t\t\tfragment.setAttribute( 'data-fragment-index', index );\n\t\t\t} );\n\n\t\t\tindex ++;\n\t\t} );\n\n\t\treturn grouped === true ? ordered : sorted;\n\n\t}\n\n\t/**\n\t * Sorts and formats all of fragments in the\n\t * presentation.\n\t */\n\tsortAll() {\n\n\t\tthis.Reveal.getHorizontalSlides().forEach( horizontalSlide => {\n\n\t\t\tlet verticalSlides = queryAll( horizontalSlide, 'section' );\n\t\t\tverticalSlides.forEach( ( verticalSlide, y ) => {\n\n\t\t\t\tthis.sort( verticalSlide.querySelectorAll( '.fragment' ) );\n\n\t\t\t}, this );\n\n\t\t\tif( verticalSlides.length === 0 ) this.sort( horizontalSlide.querySelectorAll( '.fragment' ) );\n\n\t\t} );\n\n\t}\n\n\t/**\n\t * Refreshes the fragments on the current slide so that they\n\t * have the appropriate classes (.visible + .current-fragment).\n\t *\n\t * @param {number} [index] The index of the current fragment\n\t * @param {array} [fragments] Array containing all fragments\n\t * in the current slide\n\t *\n\t * @return {{shown: array, hidden: array}}\n\t */\n\tupdate( index, fragments ) {\n\n\t\tlet changedFragments = {\n\t\t\tshown: [],\n\t\t\thidden: []\n\t\t};\n\n\t\tlet currentSlide = this.Reveal.getCurrentSlide();\n\t\tif( currentSlide && this.Reveal.getConfig().fragments ) {\n\n\t\t\tfragments = fragments || this.sort( currentSlide.querySelectorAll( '.fragment' ) );\n\n\t\t\tif( fragments.length ) {\n\n\t\t\t\tlet maxIndex = 0;\n\n\t\t\t\tif( typeof index !== 'number' ) {\n\t\t\t\t\tlet currentFragment = this.sort( currentSlide.querySelectorAll( '.fragment.visible' ) ).pop();\n\t\t\t\t\tif( currentFragment ) {\n\t\t\t\t\t\tindex = parseInt( currentFragment.getAttribute( 'data-fragment-index' ) || 0, 10 );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tArray.from( fragments ).forEach( ( el, i ) => {\n\n\t\t\t\t\tif( el.hasAttribute( 'data-fragment-index' ) ) {\n\t\t\t\t\t\ti = parseInt( el.getAttribute( 'data-fragment-index' ), 10 );\n\t\t\t\t\t}\n\n\t\t\t\t\tmaxIndex = Math.max( maxIndex, i );\n\n\t\t\t\t\t// Visible fragments\n\t\t\t\t\tif( i <= index ) {\n\t\t\t\t\t\tlet wasVisible = el.classList.contains( 'visible' )\n\t\t\t\t\t\tel.classList.add( 'visible' );\n\t\t\t\t\t\tel.classList.remove( 'current-fragment' );\n\n\t\t\t\t\t\tif( i === index ) {\n\t\t\t\t\t\t\t// Announce the fragments one by one to the Screen Reader\n\t\t\t\t\t\t\tthis.Reveal.announceStatus( this.Reveal.getStatusText( el ) );\n\n\t\t\t\t\t\t\tel.classList.add( 'current-fragment' );\n\t\t\t\t\t\t\tthis.Reveal.slideContent.startEmbeddedContent( el );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif( !wasVisible ) {\n\t\t\t\t\t\t\tchangedFragments.shown.push( el )\n\t\t\t\t\t\t\tthis.Reveal.dispatchEvent({\n\t\t\t\t\t\t\t\ttarget: el,\n\t\t\t\t\t\t\t\ttype: 'visible',\n\t\t\t\t\t\t\t\tbubbles: false\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Hidden fragments\n\t\t\t\t\telse {\n\t\t\t\t\t\tlet wasVisible = el.classList.contains( 'visible' )\n\t\t\t\t\t\tel.classList.remove( 'visible' );\n\t\t\t\t\t\tel.classList.remove( 'current-fragment' );\n\n\t\t\t\t\t\tif( wasVisible ) {\n\t\t\t\t\t\t\tthis.Reveal.slideContent.stopEmbeddedContent( el );\n\t\t\t\t\t\t\tchangedFragments.hidden.push( el );\n\t\t\t\t\t\t\tthis.Reveal.dispatchEvent({\n\t\t\t\t\t\t\t\ttarget: el,\n\t\t\t\t\t\t\t\ttype: 'hidden',\n\t\t\t\t\t\t\t\tbubbles: false\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} );\n\n\t\t\t\t// Write the current fragment index to the slide
.\n\t\t\t\t// This can be used by end users to apply styles based on\n\t\t\t\t// the current fragment index.\n\t\t\t\tindex = typeof index === 'number' ? index : -1;\n\t\t\t\tindex = Math.max( Math.min( index, maxIndex ), -1 );\n\t\t\t\tcurrentSlide.setAttribute( 'data-fragment', index );\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn changedFragments;\n\n\t}\n\n\t/**\n\t * Formats the fragments on the given slide so that they have\n\t * valid indices. Call this if fragments are changed in the DOM\n\t * after reveal.js has already initialized.\n\t *\n\t * @param {HTMLElement} slide\n\t * @return {Array} a list of the HTML fragments that were synced\n\t */\n\tsync( slide = this.Reveal.getCurrentSlide() ) {\n\n\t\treturn this.sort( slide.querySelectorAll( '.fragment' ) );\n\n\t}\n\n\t/**\n\t * Navigate to the specified slide fragment.\n\t *\n\t * @param {?number} index The index of the fragment that\n\t * should be shown, -1 means all are invisible\n\t * @param {number} offset Integer offset to apply to the\n\t * fragment index\n\t *\n\t * @return {boolean} true if a change was made in any\n\t * fragments visibility as part of this call\n\t */\n\tgoto( index, offset = 0 ) {\n\n\t\tlet currentSlide = this.Reveal.getCurrentSlide();\n\t\tif( currentSlide && this.Reveal.getConfig().fragments ) {\n\n\t\t\tlet fragments = this.sort( currentSlide.querySelectorAll( '.fragment:not(.disabled)' ) );\n\t\t\tif( fragments.length ) {\n\n\t\t\t\t// If no index is specified, find the current\n\t\t\t\tif( typeof index !== 'number' ) {\n\t\t\t\t\tlet lastVisibleFragment = this.sort( currentSlide.querySelectorAll( '.fragment:not(.disabled).visible' ) ).pop();\n\n\t\t\t\t\tif( lastVisibleFragment ) {\n\t\t\t\t\t\tindex = parseInt( lastVisibleFragment.getAttribute( 'data-fragment-index' ) || 0, 10 );\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tindex = -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Apply the offset if there is one\n\t\t\t\tindex += offset;\n\n\t\t\t\tlet changedFragments = this.update( index, fragments );\n\n\t\t\t\tif( changedFragments.hidden.length ) {\n\t\t\t\t\tthis.Reveal.dispatchEvent({\n\t\t\t\t\t\ttype: 'fragmenthidden',\n\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\tfragment: changedFragments.hidden[0],\n\t\t\t\t\t\t\tfragments: changedFragments.hidden\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tif( changedFragments.shown.length ) {\n\t\t\t\t\tthis.Reveal.dispatchEvent({\n\t\t\t\t\t\ttype: 'fragmentshown',\n\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\tfragment: changedFragments.shown[0],\n\t\t\t\t\t\t\tfragments: changedFragments.shown\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tthis.Reveal.controls.update();\n\t\t\t\tthis.Reveal.progress.update();\n\n\t\t\t\tif( this.Reveal.getConfig().fragmentInURL ) {\n\t\t\t\t\tthis.Reveal.location.writeURL();\n\t\t\t\t}\n\n\t\t\t\treturn !!( changedFragments.shown.length || changedFragments.hidden.length );\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn false;\n\n\t}\n\n\t/**\n\t * Navigate to the next slide fragment.\n\t *\n\t * @return {boolean} true if there was a next fragment,\n\t * false otherwise\n\t */\n\tnext() {\n\n\t\treturn this.goto( null, 1 );\n\n\t}\n\n\t/**\n\t * Navigate to the previous slide fragment.\n\t *\n\t * @return {boolean} true if there was a previous fragment,\n\t * false otherwise\n\t */\n\tprev() {\n\n\t\treturn this.goto( null, -1 );\n\n\t}\n\n}","import { SLIDES_SELECTOR } from '../utils/constants.js'\nimport { extend, queryAll, transformElement } from '../utils/util.js'\n\n/**\n * Handles all logic related to the overview mode\n * (birds-eye view of all slides).\n */\nexport default class Overview {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t\tthis.active = false;\n\n\t\tthis.onSlideClicked = this.onSlideClicked.bind( this );\n\n\t}\n\n\t/**\n\t * Displays the overview of slides (quick nav) by scaling\n\t * down and arranging all slide elements.\n\t */\n\tactivate() {\n\n\t\t// Only proceed if enabled in config\n\t\tif( this.Reveal.getConfig().overview && !this.isActive() ) {\n\n\t\t\tthis.active = true;\n\n\t\t\tthis.Reveal.getRevealElement().classList.add( 'overview' );\n\n\t\t\t// Don't auto-slide while in overview mode\n\t\t\tthis.Reveal.cancelAutoSlide();\n\n\t\t\t// Move the backgrounds element into the slide container to\n\t\t\t// that the same scaling is applied\n\t\t\tthis.Reveal.getSlidesElement().appendChild( this.Reveal.getBackgroundsElement() );\n\n\t\t\t// Clicking on an overview slide navigates to it\n\t\t\tqueryAll( this.Reveal.getRevealElement(), SLIDES_SELECTOR ).forEach( slide => {\n\t\t\t\tif( !slide.classList.contains( 'stack' ) ) {\n\t\t\t\t\tslide.addEventListener( 'click', this.onSlideClicked, true );\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\t// Calculate slide sizes\n\t\t\tconst margin = 70;\n\t\t\tconst slideSize = this.Reveal.getComputedSlideSize();\n\t\t\tthis.overviewSlideWidth = slideSize.width + margin;\n\t\t\tthis.overviewSlideHeight = slideSize.height + margin;\n\n\t\t\t// Reverse in RTL mode\n\t\t\tif( this.Reveal.getConfig().rtl ) {\n\t\t\t\tthis.overviewSlideWidth = -this.overviewSlideWidth;\n\t\t\t}\n\n\t\t\tthis.Reveal.updateSlidesVisibility();\n\n\t\t\tthis.layout();\n\t\t\tthis.update();\n\n\t\t\tthis.Reveal.layout();\n\n\t\t\tconst indices = this.Reveal.getIndices();\n\n\t\t\t// Notify observers of the overview showing\n\t\t\tthis.Reveal.dispatchEvent({\n\t\t\t\ttype: 'overviewshown',\n\t\t\t\tdata: {\n\t\t\t\t\t'indexh': indices.h,\n\t\t\t\t\t'indexv': indices.v,\n\t\t\t\t\t'currentSlide': this.Reveal.getCurrentSlide()\n\t\t\t\t}\n\t\t\t});\n\n\t\t}\n\n\t}\n\n\t/**\n\t * Uses CSS transforms to position all slides in a grid for\n\t * display inside of the overview mode.\n\t */\n\tlayout() {\n\n\t\t// Layout slides\n\t\tthis.Reveal.getHorizontalSlides().forEach( ( hslide, h ) => {\n\t\t\thslide.setAttribute( 'data-index-h', h );\n\t\t\ttransformElement( hslide, 'translate3d(' + ( h * this.overviewSlideWidth ) + 'px, 0, 0)' );\n\n\t\t\tif( hslide.classList.contains( 'stack' ) ) {\n\n\t\t\t\tqueryAll( hslide, 'section' ).forEach( ( vslide, v ) => {\n\t\t\t\t\tvslide.setAttribute( 'data-index-h', h );\n\t\t\t\t\tvslide.setAttribute( 'data-index-v', v );\n\n\t\t\t\t\ttransformElement( vslide, 'translate3d(0, ' + ( v * this.overviewSlideHeight ) + 'px, 0)' );\n\t\t\t\t} );\n\n\t\t\t}\n\t\t} );\n\n\t\t// Layout slide backgrounds\n\t\tArray.from( this.Reveal.getBackgroundsElement().childNodes ).forEach( ( hbackground, h ) => {\n\t\t\ttransformElement( hbackground, 'translate3d(' + ( h * this.overviewSlideWidth ) + 'px, 0, 0)' );\n\n\t\t\tqueryAll( hbackground, '.slide-background' ).forEach( ( vbackground, v ) => {\n\t\t\t\ttransformElement( vbackground, 'translate3d(0, ' + ( v * this.overviewSlideHeight ) + 'px, 0)' );\n\t\t\t} );\n\t\t} );\n\n\t}\n\n\t/**\n\t * Moves the overview viewport to the current slides.\n\t * Called each time the current slide changes.\n\t */\n\tupdate() {\n\n\t\tconst vmin = Math.min( window.innerWidth, window.innerHeight );\n\t\tconst scale = Math.max( vmin / 5, 150 ) / vmin;\n\t\tconst indices = this.Reveal.getIndices();\n\n\t\tthis.Reveal.transformSlides( {\n\t\t\toverview: [\n\t\t\t\t'scale('+ scale +')',\n\t\t\t\t'translateX('+ ( -indices.h * this.overviewSlideWidth ) +'px)',\n\t\t\t\t'translateY('+ ( -indices.v * this.overviewSlideHeight ) +'px)'\n\t\t\t].join( ' ' )\n\t\t} );\n\n\t}\n\n\t/**\n\t * Exits the slide overview and enters the currently\n\t * active slide.\n\t */\n\tdeactivate() {\n\n\t\t// Only proceed if enabled in config\n\t\tif( this.Reveal.getConfig().overview ) {\n\n\t\t\tthis.active = false;\n\n\t\t\tthis.Reveal.getRevealElement().classList.remove( 'overview' );\n\n\t\t\t// Temporarily add a class so that transitions can do different things\n\t\t\t// depending on whether they are exiting/entering overview, or just\n\t\t\t// moving from slide to slide\n\t\t\tthis.Reveal.getRevealElement().classList.add( 'overview-deactivating' );\n\n\t\t\tsetTimeout( () => {\n\t\t\t\tthis.Reveal.getRevealElement().classList.remove( 'overview-deactivating' );\n\t\t\t}, 1 );\n\n\t\t\t// Move the background element back out\n\t\t\tthis.Reveal.getRevealElement().appendChild( this.Reveal.getBackgroundsElement() );\n\n\t\t\t// Clean up changes made to slides\n\t\t\tqueryAll( this.Reveal.getRevealElement(), SLIDES_SELECTOR ).forEach( slide => {\n\t\t\t\ttransformElement( slide, '' );\n\n\t\t\t\tslide.removeEventListener( 'click', this.onSlideClicked, true );\n\t\t\t} );\n\n\t\t\t// Clean up changes made to backgrounds\n\t\t\tqueryAll( this.Reveal.getBackgroundsElement(), '.slide-background' ).forEach( background => {\n\t\t\t\ttransformElement( background, '' );\n\t\t\t} );\n\n\t\t\tthis.Reveal.transformSlides( { overview: '' } );\n\n\t\t\tconst indices = this.Reveal.getIndices();\n\n\t\t\tthis.Reveal.slide( indices.h, indices.v );\n\t\t\tthis.Reveal.layout();\n\t\t\tthis.Reveal.cueAutoSlide();\n\n\t\t\t// Notify observers of the overview hiding\n\t\t\tthis.Reveal.dispatchEvent({\n\t\t\t\ttype: 'overviewhidden',\n\t\t\t\tdata: {\n\t\t\t\t\t'indexh': indices.h,\n\t\t\t\t\t'indexv': indices.v,\n\t\t\t\t\t'currentSlide': this.Reveal.getCurrentSlide()\n\t\t\t\t}\n\t\t\t});\n\n\t\t}\n\t}\n\n\t/**\n\t * Toggles the slide overview mode on and off.\n\t *\n\t * @param {Boolean} [override] Flag which overrides the\n\t * toggle logic and forcibly sets the desired state. True means\n\t * overview is open, false means it's closed.\n\t */\n\ttoggle( override ) {\n\n\t\tif( typeof override === 'boolean' ) {\n\t\t\toverride ? this.activate() : this.deactivate();\n\t\t}\n\t\telse {\n\t\t\tthis.isActive() ? this.deactivate() : this.activate();\n\t\t}\n\n\t}\n\n\t/**\n\t * Checks if the overview is currently active.\n\t *\n\t * @return {Boolean} true if the overview is active,\n\t * false otherwise\n\t */\n\tisActive() {\n\n\t\treturn this.active;\n\n\t}\n\n\t/**\n\t * Invoked when a slide is and we're in the overview.\n\t *\n\t * @param {object} event\n\t */\n\tonSlideClicked( event ) {\n\n\t\tif( this.isActive() ) {\n\t\t\tevent.preventDefault();\n\n\t\t\tlet element = event.target;\n\n\t\t\twhile( element && !element.nodeName.match( /section/gi ) ) {\n\t\t\t\telement = element.parentNode;\n\t\t\t}\n\n\t\t\tif( element && !element.classList.contains( 'disabled' ) ) {\n\n\t\t\t\tthis.deactivate();\n\n\t\t\t\tif( element.nodeName.match( /section/gi ) ) {\n\t\t\t\t\tlet h = parseInt( element.getAttribute( 'data-index-h' ), 10 ),\n\t\t\t\t\t\tv = parseInt( element.getAttribute( 'data-index-v' ), 10 );\n\n\t\t\t\t\tthis.Reveal.slide( h, v );\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}\n\n}","import { enterFullscreen } from '../utils/util.js'\n\n/**\n * Handles all reveal.js keyboard interactions.\n */\nexport default class Keyboard {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t\t// A key:value map of keyboard keys and descriptions of\n\t\t// the actions they trigger\n\t\tthis.shortcuts = {};\n\n\t\t// Holds custom key code mappings\n\t\tthis.bindings = {};\n\n\t\tthis.onDocumentKeyDown = this.onDocumentKeyDown.bind( this );\n\t\tthis.onDocumentKeyPress = this.onDocumentKeyPress.bind( this );\n\n\t}\n\n\t/**\n\t * Called when the reveal.js config is updated.\n\t */\n\tconfigure( config, oldConfig ) {\n\n\t\tif( config.navigationMode === 'linear' ) {\n\t\t\tthis.shortcuts['→ , ↓ , SPACE , N , L , J'] = 'Next slide';\n\t\t\tthis.shortcuts['← , ↑ , P , H , K'] = 'Previous slide';\n\t\t}\n\t\telse {\n\t\t\tthis.shortcuts['N , SPACE'] = 'Next slide';\n\t\t\tthis.shortcuts['P , Shift SPACE'] = 'Previous slide';\n\t\t\tthis.shortcuts['← , H'] = 'Navigate left';\n\t\t\tthis.shortcuts['→ , L'] = 'Navigate right';\n\t\t\tthis.shortcuts['↑ , K'] = 'Navigate up';\n\t\t\tthis.shortcuts['↓ , J'] = 'Navigate down';\n\t\t}\n\n\t\tthis.shortcuts['Alt + ←/↑/→/↓'] = 'Navigate without fragments';\n\t\tthis.shortcuts['Shift + ←/↑/→/↓'] = 'Jump to first/last slide';\n\t\tthis.shortcuts['B , .'] = 'Pause';\n\t\tthis.shortcuts['F'] = 'Fullscreen';\n\t\tthis.shortcuts['G'] = 'Jump to slide';\n\t\tthis.shortcuts['ESC, O'] = 'Slide overview';\n\n\t}\n\n\t/**\n\t * Starts listening for keyboard events.\n\t */\n\tbind() {\n\n\t\tdocument.addEventListener( 'keydown', this.onDocumentKeyDown, false );\n\t\tdocument.addEventListener( 'keypress', this.onDocumentKeyPress, false );\n\n\t}\n\n\t/**\n\t * Stops listening for keyboard events.\n\t */\n\tunbind() {\n\n\t\tdocument.removeEventListener( 'keydown', this.onDocumentKeyDown, false );\n\t\tdocument.removeEventListener( 'keypress', this.onDocumentKeyPress, false );\n\n\t}\n\n\t/**\n\t * Add a custom key binding with optional description to\n\t * be added to the help screen.\n\t */\n\taddKeyBinding( binding, callback ) {\n\n\t\tif( typeof binding === 'object' && binding.keyCode ) {\n\t\t\tthis.bindings[binding.keyCode] = {\n\t\t\t\tcallback: callback,\n\t\t\t\tkey: binding.key,\n\t\t\t\tdescription: binding.description\n\t\t\t};\n\t\t}\n\t\telse {\n\t\t\tthis.bindings[binding] = {\n\t\t\t\tcallback: callback,\n\t\t\t\tkey: null,\n\t\t\t\tdescription: null\n\t\t\t};\n\t\t}\n\n\t}\n\n\t/**\n\t * Removes the specified custom key binding.\n\t */\n\tremoveKeyBinding( keyCode ) {\n\n\t\tdelete this.bindings[keyCode];\n\n\t}\n\n\t/**\n\t * Programmatically triggers a keyboard event\n\t *\n\t * @param {int} keyCode\n\t */\n\ttriggerKey( keyCode ) {\n\n\t\tthis.onDocumentKeyDown( { keyCode } );\n\n\t}\n\n\t/**\n\t * Registers a new shortcut to include in the help overlay\n\t *\n\t * @param {String} key\n\t * @param {String} value\n\t */\n\tregisterKeyboardShortcut( key, value ) {\n\n\t\tthis.shortcuts[key] = value;\n\n\t}\n\n\tgetShortcuts() {\n\n\t\treturn this.shortcuts;\n\n\t}\n\n\tgetBindings() {\n\n\t\treturn this.bindings;\n\n\t}\n\n\t/**\n\t * Handler for the document level 'keypress' event.\n\t *\n\t * @param {object} event\n\t */\n\tonDocumentKeyPress( event ) {\n\n\t\t// Check if the pressed key is question mark\n\t\tif( event.shiftKey && event.charCode === 63 ) {\n\t\t\tthis.Reveal.toggleHelp();\n\t\t}\n\n\t}\n\n\t/**\n\t * Handler for the document level 'keydown' event.\n\t *\n\t * @param {object} event\n\t */\n\tonDocumentKeyDown( event ) {\n\n\t\tlet config = this.Reveal.getConfig();\n\n\t\t// If there's a condition specified and it returns false,\n\t\t// ignore this event\n\t\tif( typeof config.keyboardCondition === 'function' && config.keyboardCondition(event) === false ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// If keyboardCondition is set, only capture keyboard events\n\t\t// for embedded decks when they are focused\n\t\tif( config.keyboardCondition === 'focused' && !this.Reveal.isFocused() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Shorthand\n\t\tlet keyCode = event.keyCode;\n\n\t\t// Remember if auto-sliding was paused so we can toggle it\n\t\tlet autoSlideWasPaused = !this.Reveal.isAutoSliding();\n\n\t\tthis.Reveal.onUserInput( event );\n\n\t\t// Is there a focused element that could be using the keyboard?\n\t\tlet activeElementIsCE = document.activeElement && document.activeElement.isContentEditable === true;\n\t\tlet activeElementIsInput = document.activeElement && document.activeElement.tagName && /input|textarea/i.test( document.activeElement.tagName );\n\t\tlet activeElementIsNotes = document.activeElement && document.activeElement.className && /speaker-notes/i.test( document.activeElement.className);\n\n\t\t// Whitelist certain modifiers for slide navigation shortcuts\n\t\tlet isNavigationKey = [32, 37, 38, 39, 40, 78, 80].indexOf( event.keyCode ) !== -1;\n\n\t\t// Prevent all other events when a modifier is pressed\n\t\tlet unusedModifier = \t!( isNavigationKey && event.shiftKey || event.altKey ) &&\n\t\t\t\t\t\t\t\t( event.shiftKey || event.altKey || event.ctrlKey || event.metaKey );\n\n\t\t// Disregard the event if there's a focused element or a\n\t\t// keyboard modifier key is present\n\t\tif( activeElementIsCE || activeElementIsInput || activeElementIsNotes || unusedModifier ) return;\n\n\t\t// While paused only allow resume keyboard events; 'b', 'v', '.'\n\t\tlet resumeKeyCodes = [66,86,190,191];\n\t\tlet key;\n\n\t\t// Custom key bindings for togglePause should be able to resume\n\t\tif( typeof config.keyboard === 'object' ) {\n\t\t\tfor( key in config.keyboard ) {\n\t\t\t\tif( config.keyboard[key] === 'togglePause' ) {\n\t\t\t\t\tresumeKeyCodes.push( parseInt( key, 10 ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif( this.Reveal.isPaused() && resumeKeyCodes.indexOf( keyCode ) === -1 ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Use linear navigation if we're configured to OR if\n\t\t// the presentation is one-dimensional\n\t\tlet useLinearMode = config.navigationMode === 'linear' || !this.Reveal.hasHorizontalSlides() || !this.Reveal.hasVerticalSlides();\n\n\t\tlet triggered = false;\n\n\t\t// 1. User defined key bindings\n\t\tif( typeof config.keyboard === 'object' ) {\n\n\t\t\tfor( key in config.keyboard ) {\n\n\t\t\t\t// Check if this binding matches the pressed key\n\t\t\t\tif( parseInt( key, 10 ) === keyCode ) {\n\n\t\t\t\t\tlet value = config.keyboard[ key ];\n\n\t\t\t\t\t// Callback function\n\t\t\t\t\tif( typeof value === 'function' ) {\n\t\t\t\t\t\tvalue.apply( null, [ event ] );\n\t\t\t\t\t}\n\t\t\t\t\t// String shortcuts to reveal.js API\n\t\t\t\t\telse if( typeof value === 'string' && typeof this.Reveal[ value ] === 'function' ) {\n\t\t\t\t\t\tthis.Reveal[ value ].call();\n\t\t\t\t\t}\n\n\t\t\t\t\ttriggered = true;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\t// 2. Registered custom key bindings\n\t\tif( triggered === false ) {\n\n\t\t\tfor( key in this.bindings ) {\n\n\t\t\t\t// Check if this binding matches the pressed key\n\t\t\t\tif( parseInt( key, 10 ) === keyCode ) {\n\n\t\t\t\t\tlet action = this.bindings[ key ].callback;\n\n\t\t\t\t\t// Callback function\n\t\t\t\t\tif( typeof action === 'function' ) {\n\t\t\t\t\t\taction.apply( null, [ event ] );\n\t\t\t\t\t}\n\t\t\t\t\t// String shortcuts to reveal.js API\n\t\t\t\t\telse if( typeof action === 'string' && typeof this.Reveal[ action ] === 'function' ) {\n\t\t\t\t\t\tthis.Reveal[ action ].call();\n\t\t\t\t\t}\n\n\t\t\t\t\ttriggered = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// 3. System defined key bindings\n\t\tif( triggered === false ) {\n\n\t\t\t// Assume true and try to prove false\n\t\t\ttriggered = true;\n\n\t\t\t// P, PAGE UP\n\t\t\tif( keyCode === 80 || keyCode === 33 ) {\n\t\t\t\tthis.Reveal.prev({skipFragments: event.altKey});\n\t\t\t}\n\t\t\t// N, PAGE DOWN\n\t\t\telse if( keyCode === 78 || keyCode === 34 ) {\n\t\t\t\tthis.Reveal.next({skipFragments: event.altKey});\n\t\t\t}\n\t\t\t// H, LEFT\n\t\t\telse if( keyCode === 72 || keyCode === 37 ) {\n\t\t\t\tif( event.shiftKey ) {\n\t\t\t\t\tthis.Reveal.slide( 0 );\n\t\t\t\t}\n\t\t\t\telse if( !this.Reveal.overview.isActive() && useLinearMode ) {\n\t\t\t\t\tthis.Reveal.prev({skipFragments: event.altKey});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.Reveal.left({skipFragments: event.altKey});\n\t\t\t\t}\n\t\t\t}\n\t\t\t// L, RIGHT\n\t\t\telse if( keyCode === 76 || keyCode === 39 ) {\n\t\t\t\tif( event.shiftKey ) {\n\t\t\t\t\tthis.Reveal.slide( this.Reveal.getHorizontalSlides().length - 1 );\n\t\t\t\t}\n\t\t\t\telse if( !this.Reveal.overview.isActive() && useLinearMode ) {\n\t\t\t\t\tthis.Reveal.next({skipFragments: event.altKey});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.Reveal.right({skipFragments: event.altKey});\n\t\t\t\t}\n\t\t\t}\n\t\t\t// K, UP\n\t\t\telse if( keyCode === 75 || keyCode === 38 ) {\n\t\t\t\tif( event.shiftKey ) {\n\t\t\t\t\tthis.Reveal.slide( undefined, 0 );\n\t\t\t\t}\n\t\t\t\telse if( !this.Reveal.overview.isActive() && useLinearMode ) {\n\t\t\t\t\tthis.Reveal.prev({skipFragments: event.altKey});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.Reveal.up({skipFragments: event.altKey});\n\t\t\t\t}\n\t\t\t}\n\t\t\t// J, DOWN\n\t\t\telse if( keyCode === 74 || keyCode === 40 ) {\n\t\t\t\tif( event.shiftKey ) {\n\t\t\t\t\tthis.Reveal.slide( undefined, Number.MAX_VALUE );\n\t\t\t\t}\n\t\t\t\telse if( !this.Reveal.overview.isActive() && useLinearMode ) {\n\t\t\t\t\tthis.Reveal.next({skipFragments: event.altKey});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.Reveal.down({skipFragments: event.altKey});\n\t\t\t\t}\n\t\t\t}\n\t\t\t// HOME\n\t\t\telse if( keyCode === 36 ) {\n\t\t\t\tthis.Reveal.slide( 0 );\n\t\t\t}\n\t\t\t// END\n\t\t\telse if( keyCode === 35 ) {\n\t\t\t\tthis.Reveal.slide( this.Reveal.getHorizontalSlides().length - 1 );\n\t\t\t}\n\t\t\t// SPACE\n\t\t\telse if( keyCode === 32 ) {\n\t\t\t\tif( this.Reveal.overview.isActive() ) {\n\t\t\t\t\tthis.Reveal.overview.deactivate();\n\t\t\t\t}\n\t\t\t\tif( event.shiftKey ) {\n\t\t\t\t\tthis.Reveal.prev({skipFragments: event.altKey});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.Reveal.next({skipFragments: event.altKey});\n\t\t\t\t}\n\t\t\t}\n\t\t\t// TWO-SPOT, SEMICOLON, B, V, PERIOD, LOGITECH PRESENTER TOOLS \"BLACK SCREEN\" BUTTON\n\t\t\telse if( keyCode === 58 || keyCode === 59 || keyCode === 66 || keyCode === 86 || keyCode === 190 || keyCode === 191 ) {\n\t\t\t\tthis.Reveal.togglePause();\n\t\t\t}\n\t\t\t// F\n\t\t\telse if( keyCode === 70 ) {\n\t\t\t\tenterFullscreen( config.embedded ? this.Reveal.getViewportElement() : document.documentElement );\n\t\t\t}\n\t\t\t// A\n\t\t\telse if( keyCode === 65 ) {\n\t\t\t\tif ( config.autoSlideStoppable ) {\n\t\t\t\t\tthis.Reveal.toggleAutoSlide( autoSlideWasPaused );\n\t\t\t\t}\n\t\t\t}\n\t\t\t// G\n\t\t\telse if( keyCode === 71 ) {\n\t\t\t\tif ( config.jumpToSlide ) {\n\t\t\t\t\tthis.Reveal.toggleJumpToSlide();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttriggered = false;\n\t\t\t}\n\n\t\t}\n\n\t\t// If the input resulted in a triggered action we should prevent\n\t\t// the browsers default behavior\n\t\tif( triggered ) {\n\t\t\tevent.preventDefault && event.preventDefault();\n\t\t}\n\t\t// ESC or O key\n\t\telse if( keyCode === 27 || keyCode === 79 ) {\n\t\t\tif( this.Reveal.closeOverlay() === false ) {\n\t\t\t\tthis.Reveal.overview.toggle();\n\t\t\t}\n\n\t\t\tevent.preventDefault && event.preventDefault();\n\t\t}\n\n\t\t// If auto-sliding is enabled we need to cue up\n\t\t// another timeout\n\t\tthis.Reveal.cueAutoSlide();\n\n\t}\n\n}","/**\n * Reads and writes the URL based on reveal.js' current state.\n */\nexport default class Location {\n\n\t// The minimum number of milliseconds that must pass between\n\t// calls to history.replaceState\n\tMAX_REPLACE_STATE_FREQUENCY = 1000\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t\t// Delays updates to the URL due to a Chrome thumbnailer bug\n\t\tthis.writeURLTimeout = 0;\n\n\t\tthis.replaceStateTimestamp = 0;\n\n\t\tthis.onWindowHashChange = this.onWindowHashChange.bind( this );\n\n\t}\n\n\tbind() {\n\n\t\twindow.addEventListener( 'hashchange', this.onWindowHashChange, false );\n\n\t}\n\n\tunbind() {\n\n\t\twindow.removeEventListener( 'hashchange', this.onWindowHashChange, false );\n\n\t}\n\n\t/**\n\t * Returns the slide indices for the given hash link.\n\t *\n\t * @param {string} [hash] the hash string that we want to\n\t * find the indices for\n\t *\n\t * @returns slide indices or null\n\t */\n\tgetIndicesFromHash( hash=window.location.hash, options={} ) {\n\n\t\t// Attempt to parse the hash as either an index or name\n\t\tlet name = hash.replace( /^#\\/?/, '' );\n\t\tlet bits = name.split( '/' );\n\n\t\t// If the first bit is not fully numeric and there is a name we\n\t\t// can assume that this is a named link\n\t\tif( !/^[0-9]*$/.test( bits[0] ) && name.length ) {\n\t\t\tlet element;\n\n\t\t\tlet f;\n\n\t\t\t// Parse named links with fragments (#/named-link/2)\n\t\t\tif( /\\/[-\\d]+$/g.test( name ) ) {\n\t\t\t\tf = parseInt( name.split( '/' ).pop(), 10 );\n\t\t\t\tf = isNaN(f) ? undefined : f;\n\t\t\t\tname = name.split( '/' ).shift();\n\t\t\t}\n\n\t\t\t// Ensure the named link is a valid HTML ID attribute\n\t\t\ttry {\n\t\t\t\telement = document.getElementById( decodeURIComponent( name ) );\n\t\t\t}\n\t\t\tcatch ( error ) { }\n\n\t\t\tif( element ) {\n\t\t\t\treturn { ...this.Reveal.getIndices( element ), f };\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tconst config = this.Reveal.getConfig();\n\t\t\tlet hashIndexBase = config.hashOneBasedIndex || options.oneBasedIndex ? 1 : 0;\n\n\t\t\t// Read the index components of the hash\n\t\t\tlet h = ( parseInt( bits[0], 10 ) - hashIndexBase ) || 0,\n\t\t\t\tv = ( parseInt( bits[1], 10 ) - hashIndexBase ) || 0,\n\t\t\t\tf;\n\n\t\t\tif( config.fragmentInURL ) {\n\t\t\t\tf = parseInt( bits[2], 10 );\n\t\t\t\tif( isNaN( f ) ) {\n\t\t\t\t\tf = undefined;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn { h, v, f };\n\t\t}\n\n\t\t// The hash couldn't be parsed or no matching named link was found\n\t\treturn null\n\n\t}\n\n\t/**\n\t * Reads the current URL (hash) and navigates accordingly.\n\t */\n\treadURL() {\n\n\t\tconst currentIndices = this.Reveal.getIndices();\n\t\tconst newIndices = this.getIndicesFromHash();\n\n\t\tif( newIndices ) {\n\t\t\tif( ( newIndices.h !== currentIndices.h || newIndices.v !== currentIndices.v || newIndices.f !== undefined ) ) {\n\t\t\t\t\tthis.Reveal.slide( newIndices.h, newIndices.v, newIndices.f );\n\t\t\t}\n\t\t}\n\t\t// If no new indices are available, we're trying to navigate to\n\t\t// a slide hash that does not exist\n\t\telse {\n\t\t\tthis.Reveal.slide( currentIndices.h || 0, currentIndices.v || 0 );\n\t\t}\n\n\t}\n\n\t/**\n\t * Updates the page URL (hash) to reflect the current\n\t * state.\n\t *\n\t * @param {number} delay The time in ms to wait before\n\t * writing the hash\n\t */\n\twriteURL( delay ) {\n\n\t\tlet config = this.Reveal.getConfig();\n\t\tlet currentSlide = this.Reveal.getCurrentSlide();\n\n\t\t// Make sure there's never more than one timeout running\n\t\tclearTimeout( this.writeURLTimeout );\n\n\t\t// If a delay is specified, timeout this call\n\t\tif( typeof delay === 'number' ) {\n\t\t\tthis.writeURLTimeout = setTimeout( this.writeURL, delay );\n\t\t}\n\t\telse if( currentSlide ) {\n\n\t\t\tlet hash = this.getHash();\n\n\t\t\t// If we're configured to push to history OR the history\n\t\t\t// API is not available.\n\t\t\tif( config.history ) {\n\t\t\t\twindow.location.hash = hash;\n\t\t\t}\n\t\t\t// If we're configured to reflect the current slide in the\n\t\t\t// URL without pushing to history.\n\t\t\telse if( config.hash ) {\n\t\t\t\t// If the hash is empty, don't add it to the URL\n\t\t\t\tif( hash === '/' ) {\n\t\t\t\t\tthis.debouncedReplaceState( window.location.pathname + window.location.search );\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.debouncedReplaceState( '#' + hash );\n\t\t\t\t}\n\t\t\t}\n\t\t\t// UPDATE: The below nuking of all hash changes breaks\n\t\t\t// anchors on pages where reveal.js is running. Removed\n\t\t\t// in 4.0. Why was it here in the first place? ¯\\_(ツ)_/¯\n\t\t\t//\n\t\t\t// If history and hash are both disabled, a hash may still\n\t\t\t// be added to the URL by clicking on a href with a hash\n\t\t\t// target. Counter this by always removing the hash.\n\t\t\t// else {\n\t\t\t// \twindow.history.replaceState( null, null, window.location.pathname + window.location.search );\n\t\t\t// }\n\n\t\t}\n\n\t}\n\n\treplaceState( url ) {\n\n\t\twindow.history.replaceState( null, null, url );\n\t\tthis.replaceStateTimestamp = Date.now();\n\n\t}\n\n\tdebouncedReplaceState( url ) {\n\n\t\tclearTimeout( this.replaceStateTimeout );\n\n\t\tif( Date.now() - this.replaceStateTimestamp > this.MAX_REPLACE_STATE_FREQUENCY ) {\n\t\t\tthis.replaceState( url );\n\t\t}\n\t\telse {\n\t\t\tthis.replaceStateTimeout = setTimeout( () => this.replaceState( url ), this.MAX_REPLACE_STATE_FREQUENCY );\n\t\t}\n\n\t}\n\n\t/**\n\t * Return a hash URL that will resolve to the given slide location.\n\t *\n\t * @param {HTMLElement} [slide=currentSlide] The slide to link to\n\t */\n\tgetHash( slide ) {\n\n\t\tlet url = '/';\n\n\t\t// Attempt to create a named link based on the slide's ID\n\t\tlet s = slide || this.Reveal.getCurrentSlide();\n\t\tlet id = s ? s.getAttribute( 'id' ) : null;\n\t\tif( id ) {\n\t\t\tid = encodeURIComponent( id );\n\t\t}\n\n\t\tlet index = this.Reveal.getIndices( slide );\n\t\tif( !this.Reveal.getConfig().fragmentInURL ) {\n\t\t\tindex.f = undefined;\n\t\t}\n\n\t\t// If the current slide has an ID, use that as a named link,\n\t\t// but we don't support named links with a fragment index\n\t\tif( typeof id === 'string' && id.length ) {\n\t\t\turl = '/' + id;\n\n\t\t\t// If there is also a fragment, append that at the end\n\t\t\t// of the named link, like: #/named-link/2\n\t\t\tif( index.f >= 0 ) url += '/' + index.f;\n\t\t}\n\t\t// Otherwise use the /h/v index\n\t\telse {\n\t\t\tlet hashIndexBase = this.Reveal.getConfig().hashOneBasedIndex ? 1 : 0;\n\t\t\tif( index.h > 0 || index.v > 0 || index.f >= 0 ) url += index.h + hashIndexBase;\n\t\t\tif( index.v > 0 || index.f >= 0 ) url += '/' + (index.v + hashIndexBase );\n\t\t\tif( index.f >= 0 ) url += '/' + index.f;\n\t\t}\n\n\t\treturn url;\n\n\t}\n\n\t/**\n\t * Handler for the window level 'hashchange' event.\n\t *\n\t * @param {object} [event]\n\t */\n\tonWindowHashChange( event ) {\n\n\t\tthis.readURL();\n\n\t}\n\n}","import { queryAll } from '../utils/util.js'\nimport { isAndroid } from '../utils/device.js'\n\n/**\n * Manages our presentation controls. This includes both\n * the built-in control arrows as well as event monitoring\n * of any elements within the presentation with either of the\n * following helper classes:\n * - .navigate-up\n * - .navigate-right\n * - .navigate-down\n * - .navigate-left\n * - .navigate-next\n * - .navigate-prev\n */\nexport default class Controls {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t\tthis.onNavigateLeftClicked = this.onNavigateLeftClicked.bind( this );\n\t\tthis.onNavigateRightClicked = this.onNavigateRightClicked.bind( this );\n\t\tthis.onNavigateUpClicked = this.onNavigateUpClicked.bind( this );\n\t\tthis.onNavigateDownClicked = this.onNavigateDownClicked.bind( this );\n\t\tthis.onNavigatePrevClicked = this.onNavigatePrevClicked.bind( this );\n\t\tthis.onNavigateNextClicked = this.onNavigateNextClicked.bind( this );\n\n\t}\n\n\trender() {\n\n\t\tconst rtl = this.Reveal.getConfig().rtl;\n\t\tconst revealElement = this.Reveal.getRevealElement();\n\n\t\tthis.element = document.createElement( 'aside' );\n\t\tthis.element.className = 'controls';\n\t\tthis.element.innerHTML =\n\t\t\t`\n\t\t\t\n\t\t\t\n\t\t\t`;\n\n\t\tthis.Reveal.getRevealElement().appendChild( this.element );\n\n\t\t// There can be multiple instances of controls throughout the page\n\t\tthis.controlsLeft = queryAll( revealElement, '.navigate-left' );\n\t\tthis.controlsRight = queryAll( revealElement, '.navigate-right' );\n\t\tthis.controlsUp = queryAll( revealElement, '.navigate-up' );\n\t\tthis.controlsDown = queryAll( revealElement, '.navigate-down' );\n\t\tthis.controlsPrev = queryAll( revealElement, '.navigate-prev' );\n\t\tthis.controlsNext = queryAll( revealElement, '.navigate-next' );\n\n\t\t// The left, right and down arrows in the standard reveal.js controls\n\t\tthis.controlsRightArrow = this.element.querySelector( '.navigate-right' );\n\t\tthis.controlsLeftArrow = this.element.querySelector( '.navigate-left' );\n\t\tthis.controlsDownArrow = this.element.querySelector( '.navigate-down' );\n\n\t}\n\n\t/**\n\t * Called when the reveal.js config is updated.\n\t */\n\tconfigure( config, oldConfig ) {\n\n\t\tthis.element.style.display = config.controls ? 'block' : 'none';\n\n\t\tthis.element.setAttribute( 'data-controls-layout', config.controlsLayout );\n\t\tthis.element.setAttribute( 'data-controls-back-arrows', config.controlsBackArrows );\n\n\t}\n\n\tbind() {\n\n\t\t// Listen to both touch and click events, in case the device\n\t\t// supports both\n\t\tlet pointerEvents = [ 'touchstart', 'click' ];\n\n\t\t// Only support touch for Android, fixes double navigations in\n\t\t// stock browser\n\t\tif( isAndroid ) {\n\t\t\tpointerEvents = [ 'touchstart' ];\n\t\t}\n\n\t\tpointerEvents.forEach( eventName => {\n\t\t\tthis.controlsLeft.forEach( el => el.addEventListener( eventName, this.onNavigateLeftClicked, false ) );\n\t\t\tthis.controlsRight.forEach( el => el.addEventListener( eventName, this.onNavigateRightClicked, false ) );\n\t\t\tthis.controlsUp.forEach( el => el.addEventListener( eventName, this.onNavigateUpClicked, false ) );\n\t\t\tthis.controlsDown.forEach( el => el.addEventListener( eventName, this.onNavigateDownClicked, false ) );\n\t\t\tthis.controlsPrev.forEach( el => el.addEventListener( eventName, this.onNavigatePrevClicked, false ) );\n\t\t\tthis.controlsNext.forEach( el => el.addEventListener( eventName, this.onNavigateNextClicked, false ) );\n\t\t} );\n\n\t}\n\n\tunbind() {\n\n\t\t[ 'touchstart', 'click' ].forEach( eventName => {\n\t\t\tthis.controlsLeft.forEach( el => el.removeEventListener( eventName, this.onNavigateLeftClicked, false ) );\n\t\t\tthis.controlsRight.forEach( el => el.removeEventListener( eventName, this.onNavigateRightClicked, false ) );\n\t\t\tthis.controlsUp.forEach( el => el.removeEventListener( eventName, this.onNavigateUpClicked, false ) );\n\t\t\tthis.controlsDown.forEach( el => el.removeEventListener( eventName, this.onNavigateDownClicked, false ) );\n\t\t\tthis.controlsPrev.forEach( el => el.removeEventListener( eventName, this.onNavigatePrevClicked, false ) );\n\t\t\tthis.controlsNext.forEach( el => el.removeEventListener( eventName, this.onNavigateNextClicked, false ) );\n\t\t} );\n\n\t}\n\n\t/**\n\t * Updates the state of all control/navigation arrows.\n\t */\n\tupdate() {\n\n\t\tlet routes = this.Reveal.availableRoutes();\n\n\t\t// Remove the 'enabled' class from all directions\n\t\t[...this.controlsLeft, ...this.controlsRight, ...this.controlsUp, ...this.controlsDown, ...this.controlsPrev, ...this.controlsNext].forEach( node => {\n\t\t\tnode.classList.remove( 'enabled', 'fragmented' );\n\n\t\t\t// Set 'disabled' attribute on all directions\n\t\t\tnode.setAttribute( 'disabled', 'disabled' );\n\t\t} );\n\n\t\t// Add the 'enabled' class to the available routes; remove 'disabled' attribute to enable buttons\n\t\tif( routes.left ) this.controlsLeft.forEach( el => { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );\n\t\tif( routes.right ) this.controlsRight.forEach( el => { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );\n\t\tif( routes.up ) this.controlsUp.forEach( el => { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );\n\t\tif( routes.down ) this.controlsDown.forEach( el => { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );\n\n\t\t// Prev/next buttons\n\t\tif( routes.left || routes.up ) this.controlsPrev.forEach( el => { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );\n\t\tif( routes.right || routes.down ) this.controlsNext.forEach( el => { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );\n\n\t\t// Highlight fragment directions\n\t\tlet currentSlide = this.Reveal.getCurrentSlide();\n\t\tif( currentSlide ) {\n\n\t\t\tlet fragmentsRoutes = this.Reveal.fragments.availableRoutes();\n\n\t\t\t// Always apply fragment decorator to prev/next buttons\n\t\t\tif( fragmentsRoutes.prev ) this.controlsPrev.forEach( el => { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );\n\t\t\tif( fragmentsRoutes.next ) this.controlsNext.forEach( el => { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );\n\n\t\t\t// Apply fragment decorators to directional buttons based on\n\t\t\t// what slide axis they are in\n\t\t\tif( this.Reveal.isVerticalSlide( currentSlide ) ) {\n\t\t\t\tif( fragmentsRoutes.prev ) this.controlsUp.forEach( el => { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );\n\t\t\t\tif( fragmentsRoutes.next ) this.controlsDown.forEach( el => { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif( fragmentsRoutes.prev ) this.controlsLeft.forEach( el => { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );\n\t\t\t\tif( fragmentsRoutes.next ) this.controlsRight.forEach( el => { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );\n\t\t\t}\n\n\t\t}\n\n\t\tif( this.Reveal.getConfig().controlsTutorial ) {\n\n\t\t\tlet indices = this.Reveal.getIndices();\n\n\t\t\t// Highlight control arrows with an animation to ensure\n\t\t\t// that the viewer knows how to navigate\n\t\t\tif( !this.Reveal.hasNavigatedVertically() && routes.down ) {\n\t\t\t\tthis.controlsDownArrow.classList.add( 'highlight' );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.controlsDownArrow.classList.remove( 'highlight' );\n\n\t\t\t\tif( this.Reveal.getConfig().rtl ) {\n\n\t\t\t\t\tif( !this.Reveal.hasNavigatedHorizontally() && routes.left && indices.v === 0 ) {\n\t\t\t\t\t\tthis.controlsLeftArrow.classList.add( 'highlight' );\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.controlsLeftArrow.classList.remove( 'highlight' );\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\n\t\t\t\t\tif( !this.Reveal.hasNavigatedHorizontally() && routes.right && indices.v === 0 ) {\n\t\t\t\t\t\tthis.controlsRightArrow.classList.add( 'highlight' );\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.controlsRightArrow.classList.remove( 'highlight' );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tdestroy() {\n\n\t\tthis.unbind();\n\t\tthis.element.remove();\n\n\t}\n\n\t/**\n\t * Event handlers for navigation control buttons.\n\t */\n\tonNavigateLeftClicked( event ) {\n\n\t\tevent.preventDefault();\n\t\tthis.Reveal.onUserInput();\n\n\t\tif( this.Reveal.getConfig().navigationMode === 'linear' ) {\n\t\t\tthis.Reveal.prev();\n\t\t}\n\t\telse {\n\t\t\tthis.Reveal.left();\n\t\t}\n\n\t}\n\n\tonNavigateRightClicked( event ) {\n\n\t\tevent.preventDefault();\n\t\tthis.Reveal.onUserInput();\n\n\t\tif( this.Reveal.getConfig().navigationMode === 'linear' ) {\n\t\t\tthis.Reveal.next();\n\t\t}\n\t\telse {\n\t\t\tthis.Reveal.right();\n\t\t}\n\n\t}\n\n\tonNavigateUpClicked( event ) {\n\n\t\tevent.preventDefault();\n\t\tthis.Reveal.onUserInput();\n\n\t\tthis.Reveal.up();\n\n\t}\n\n\tonNavigateDownClicked( event ) {\n\n\t\tevent.preventDefault();\n\t\tthis.Reveal.onUserInput();\n\n\t\tthis.Reveal.down();\n\n\t}\n\n\tonNavigatePrevClicked( event ) {\n\n\t\tevent.preventDefault();\n\t\tthis.Reveal.onUserInput();\n\n\t\tthis.Reveal.prev();\n\n\t}\n\n\tonNavigateNextClicked( event ) {\n\n\t\tevent.preventDefault();\n\t\tthis.Reveal.onUserInput();\n\n\t\tthis.Reveal.next();\n\n\t}\n\n\n}","/**\n * Creates a visual progress bar for the presentation.\n */\nexport default class Progress {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t\tthis.onProgressClicked = this.onProgressClicked.bind( this );\n\n\t}\n\n\trender() {\n\n\t\tthis.element = document.createElement( 'div' );\n\t\tthis.element.className = 'progress';\n\t\tthis.Reveal.getRevealElement().appendChild( this.element );\n\n\t\tthis.bar = document.createElement( 'span' );\n\t\tthis.element.appendChild( this.bar );\n\n\t}\n\n\t/**\n\t * Called when the reveal.js config is updated.\n\t */\n\tconfigure( config, oldConfig ) {\n\n\t\tthis.element.style.display = config.progress ? 'block' : 'none';\n\n\t}\n\n\tbind() {\n\n\t\tif( this.Reveal.getConfig().progress && this.element ) {\n\t\t\tthis.element.addEventListener( 'click', this.onProgressClicked, false );\n\t\t}\n\n\t}\n\n\tunbind() {\n\n\t\tif ( this.Reveal.getConfig().progress && this.element ) {\n\t\t\tthis.element.removeEventListener( 'click', this.onProgressClicked, false );\n\t\t}\n\n\t}\n\n\t/**\n\t * Updates the progress bar to reflect the current slide.\n\t */\n\tupdate() {\n\n\t\t// Update progress if enabled\n\t\tif( this.Reveal.getConfig().progress && this.bar ) {\n\n\t\t\tlet scale = this.Reveal.getProgress();\n\n\t\t\t// Don't fill the progress bar if there's only one slide\n\t\t\tif( this.Reveal.getTotalSlides() < 2 ) {\n\t\t\t\tscale = 0;\n\t\t\t}\n\n\t\t\tthis.bar.style.transform = 'scaleX('+ scale +')';\n\n\t\t}\n\n\t}\n\n\tgetMaxWidth() {\n\n\t\treturn this.Reveal.getRevealElement().offsetWidth;\n\n\t}\n\n\t/**\n\t * Clicking on the progress bar results in a navigation to the\n\t * closest approximate horizontal slide using this equation:\n\t *\n\t * ( clickX / presentationWidth ) * numberOfSlides\n\t *\n\t * @param {object} event\n\t */\n\tonProgressClicked( event ) {\n\n\t\tthis.Reveal.onUserInput( event );\n\n\t\tevent.preventDefault();\n\n\t\tlet slides = this.Reveal.getSlides();\n\t\tlet slidesTotal = slides.length;\n\t\tlet slideIndex = Math.floor( ( event.clientX / this.getMaxWidth() ) * slidesTotal );\n\n\t\tif( this.Reveal.getConfig().rtl ) {\n\t\t\tslideIndex = slidesTotal - slideIndex;\n\t\t}\n\n\t\tlet targetIndices = this.Reveal.getIndices(slides[slideIndex]);\n\t\tthis.Reveal.slide( targetIndices.h, targetIndices.v );\n\n\t}\n\n\tdestroy() {\n\n\t\tthis.element.remove();\n\n\t}\n\n}","/**\n * Handles hiding of the pointer/cursor when inactive.\n */\nexport default class Pointer {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t\t// Throttles mouse wheel navigation\n\t\tthis.lastMouseWheelStep = 0;\n\n\t\t// Is the mouse pointer currently hidden from view\n\t\tthis.cursorHidden = false;\n\n\t\t// Timeout used to determine when the cursor is inactive\n\t\tthis.cursorInactiveTimeout = 0;\n\n\t\tthis.onDocumentCursorActive = this.onDocumentCursorActive.bind( this );\n\t\tthis.onDocumentMouseScroll = this.onDocumentMouseScroll.bind( this );\n\n\t}\n\n\t/**\n\t * Called when the reveal.js config is updated.\n\t */\n\tconfigure( config, oldConfig ) {\n\n\t\tif( config.mouseWheel ) {\n\t\t\tdocument.addEventListener( 'DOMMouseScroll', this.onDocumentMouseScroll, false ); // FF\n\t\t\tdocument.addEventListener( 'mousewheel', this.onDocumentMouseScroll, false );\n\t\t}\n\t\telse {\n\t\t\tdocument.removeEventListener( 'DOMMouseScroll', this.onDocumentMouseScroll, false ); // FF\n\t\t\tdocument.removeEventListener( 'mousewheel', this.onDocumentMouseScroll, false );\n\t\t}\n\n\t\t// Auto-hide the mouse pointer when its inactive\n\t\tif( config.hideInactiveCursor ) {\n\t\t\tdocument.addEventListener( 'mousemove', this.onDocumentCursorActive, false );\n\t\t\tdocument.addEventListener( 'mousedown', this.onDocumentCursorActive, false );\n\t\t}\n\t\telse {\n\t\t\tthis.showCursor();\n\n\t\t\tdocument.removeEventListener( 'mousemove', this.onDocumentCursorActive, false );\n\t\t\tdocument.removeEventListener( 'mousedown', this.onDocumentCursorActive, false );\n\t\t}\n\n\t}\n\n\t/**\n\t * Shows the mouse pointer after it has been hidden with\n\t * #hideCursor.\n\t */\n\tshowCursor() {\n\n\t\tif( this.cursorHidden ) {\n\t\t\tthis.cursorHidden = false;\n\t\t\tthis.Reveal.getRevealElement().style.cursor = '';\n\t\t}\n\n\t}\n\n\t/**\n\t * Hides the mouse pointer when it's on top of the .reveal\n\t * container.\n\t */\n\thideCursor() {\n\n\t\tif( this.cursorHidden === false ) {\n\t\t\tthis.cursorHidden = true;\n\t\t\tthis.Reveal.getRevealElement().style.cursor = 'none';\n\t\t}\n\n\t}\n\n\tdestroy() {\n\n\t\tthis.showCursor();\n\n\t\tdocument.removeEventListener( 'DOMMouseScroll', this.onDocumentMouseScroll, false );\n\t\tdocument.removeEventListener( 'mousewheel', this.onDocumentMouseScroll, false );\n\t\tdocument.removeEventListener( 'mousemove', this.onDocumentCursorActive, false );\n\t\tdocument.removeEventListener( 'mousedown', this.onDocumentCursorActive, false );\n\n\t}\n\n\t/**\n\t * Called whenever there is mouse input at the document level\n\t * to determine if the cursor is active or not.\n\t *\n\t * @param {object} event\n\t */\n\tonDocumentCursorActive( event ) {\n\n\t\tthis.showCursor();\n\n\t\tclearTimeout( this.cursorInactiveTimeout );\n\n\t\tthis.cursorInactiveTimeout = setTimeout( this.hideCursor.bind( this ), this.Reveal.getConfig().hideCursorTime );\n\n\t}\n\n\t/**\n\t * Handles mouse wheel scrolling, throttled to avoid skipping\n\t * multiple slides.\n\t *\n\t * @param {object} event\n\t */\n\tonDocumentMouseScroll( event ) {\n\n\t\tif( Date.now() - this.lastMouseWheelStep > 1000 ) {\n\n\t\t\tthis.lastMouseWheelStep = Date.now();\n\n\t\t\tlet delta = event.detail || -event.wheelDelta;\n\t\t\tif( delta > 0 ) {\n\t\t\t\tthis.Reveal.next();\n\t\t\t}\n\t\t\telse if( delta < 0 ) {\n\t\t\t\tthis.Reveal.prev();\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}","/**\n * Loads a JavaScript file from the given URL and executes it.\n *\n * @param {string} url Address of the .js file to load\n * @param {function} callback Method to invoke when the script\n * has loaded and executed\n */\nexport const loadScript = ( url, callback ) => {\n\n\tconst script = document.createElement( 'script' );\n\tscript.type = 'text/javascript';\n\tscript.async = false;\n\tscript.defer = false;\n\tscript.src = url;\n\n\tif( typeof callback === 'function' ) {\n\n\t\t// Success callback\n\t\tscript.onload = script.onreadystatechange = event => {\n\t\t\tif( event.type === 'load' || /loaded|complete/.test( script.readyState ) ) {\n\n\t\t\t\t// Kill event listeners\n\t\t\t\tscript.onload = script.onreadystatechange = script.onerror = null;\n\n\t\t\t\tcallback();\n\n\t\t\t}\n\t\t};\n\n\t\t// Error callback\n\t\tscript.onerror = err => {\n\n\t\t\t// Kill event listeners\n\t\t\tscript.onload = script.onreadystatechange = script.onerror = null;\n\n\t\t\tcallback( new Error( 'Failed loading script: ' + script.src + '\\n' + err ) );\n\n\t\t};\n\n\t}\n\n\t// Append the script at the end of \n\tconst head = document.querySelector( 'head' );\n\thead.insertBefore( script, head.lastChild );\n\n}","import { loadScript } from '../utils/loader.js'\n\n/**\n * Manages loading and registering of reveal.js plugins.\n */\nexport default class Plugins {\n\n\tconstructor( reveal ) {\n\n\t\tthis.Reveal = reveal;\n\n\t\t// Flags our current state (idle -> loading -> loaded)\n\t\tthis.state = 'idle';\n\n\t\t// An id:instance map of currently registered plugins\n\t\tthis.registeredPlugins = {};\n\n\t\tthis.asyncDependencies = [];\n\n\t}\n\n\t/**\n\t * Loads reveal.js dependencies, registers and\n\t * initializes plugins.\n\t *\n\t * Plugins are direct references to a reveal.js plugin\n\t * object that we register and initialize after any\n\t * synchronous dependencies have loaded.\n\t *\n\t * Dependencies are defined via the 'dependencies' config\n\t * option and will be loaded prior to starting reveal.js.\n\t * Some dependencies may have an 'async' flag, if so they\n\t * will load after reveal.js has been started up.\n\t */\n\tload( plugins, dependencies ) {\n\n\t\tthis.state = 'loading';\n\n\t\tplugins.forEach( this.registerPlugin.bind( this ) );\n\n\t\treturn new Promise( resolve => {\n\n\t\t\tlet scripts = [],\n\t\t\t\tscriptsToLoad = 0;\n\n\t\t\tdependencies.forEach( s => {\n\t\t\t\t// Load if there's no condition or the condition is truthy\n\t\t\t\tif( !s.condition || s.condition() ) {\n\t\t\t\t\tif( s.async ) {\n\t\t\t\t\t\tthis.asyncDependencies.push( s );\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tscripts.push( s );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\n\t\t\tif( scripts.length ) {\n\t\t\t\tscriptsToLoad = scripts.length;\n\n\t\t\t\tconst scriptLoadedCallback = (s) => {\n\t\t\t\t\tif( s && typeof s.callback === 'function' ) s.callback();\n\n\t\t\t\t\tif( --scriptsToLoad === 0 ) {\n\t\t\t\t\t\tthis.initPlugins().then( resolve );\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\t// Load synchronous scripts\n\t\t\t\tscripts.forEach( s => {\n\t\t\t\t\tif( typeof s.id === 'string' ) {\n\t\t\t\t\t\tthis.registerPlugin( s );\n\t\t\t\t\t\tscriptLoadedCallback( s );\n\t\t\t\t\t}\n\t\t\t\t\telse if( typeof s.src === 'string' ) {\n\t\t\t\t\t\tloadScript( s.src, () => scriptLoadedCallback(s) );\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tconsole.warn( 'Unrecognized plugin format', s );\n\t\t\t\t\t\tscriptLoadedCallback();\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.initPlugins().then( resolve );\n\t\t\t}\n\n\t\t} );\n\n\t}\n\n\t/**\n\t * Initializes our plugins and waits for them to be ready\n\t * before proceeding.\n\t */\n\tinitPlugins() {\n\n\t\treturn new Promise( resolve => {\n\n\t\t\tlet pluginValues = Object.values( this.registeredPlugins );\n\t\t\tlet pluginsToInitialize = pluginValues.length;\n\n\t\t\t// If there are no plugins, skip this step\n\t\t\tif( pluginsToInitialize === 0 ) {\n\t\t\t\tthis.loadAsync().then( resolve );\n\t\t\t}\n\t\t\t// ... otherwise initialize plugins\n\t\t\telse {\n\n\t\t\t\tlet initNextPlugin;\n\n\t\t\t\tlet afterPlugInitialized = () => {\n\t\t\t\t\tif( --pluginsToInitialize === 0 ) {\n\t\t\t\t\t\tthis.loadAsync().then( resolve );\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tinitNextPlugin();\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tlet i = 0;\n\n\t\t\t\t// Initialize plugins serially\n\t\t\t\tinitNextPlugin = () => {\n\n\t\t\t\t\tlet plugin = pluginValues[i++];\n\n\t\t\t\t\t// If the plugin has an 'init' method, invoke it\n\t\t\t\t\tif( typeof plugin.init === 'function' ) {\n\t\t\t\t\t\tlet promise = plugin.init( this.Reveal );\n\n\t\t\t\t\t\t// If the plugin returned a Promise, wait for it\n\t\t\t\t\t\tif( promise && typeof promise.then === 'function' ) {\n\t\t\t\t\t\t\tpromise.then( afterPlugInitialized );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tafterPlugInitialized();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tafterPlugInitialized();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tinitNextPlugin();\n\n\t\t\t}\n\n\t\t} )\n\n\t}\n\n\t/**\n\t * Loads all async reveal.js dependencies.\n\t */\n\tloadAsync() {\n\n\t\tthis.state = 'loaded';\n\n\t\tif( this.asyncDependencies.length ) {\n\t\t\tthis.asyncDependencies.forEach( s => {\n\t\t\t\tloadScript( s.src, s.callback );\n\t\t\t} );\n\t\t}\n\n\t\treturn Promise.resolve();\n\n\t}\n\n\t/**\n\t * Registers a new plugin with this reveal.js instance.\n\t *\n\t * reveal.js waits for all registered plugins to initialize\n\t * before considering itself ready, as long as the plugin\n\t * is registered before calling `Reveal.initialize()`.\n\t */\n\tregisterPlugin( plugin ) {\n\n\t\t// Backwards compatibility to make reveal.js ~3.9.0\n\t\t// plugins work with reveal.js 4.0.0\n\t\tif( arguments.length === 2 && typeof arguments[0] === 'string' ) {\n\t\t\tplugin = arguments[1];\n\t\t\tplugin.id = arguments[0];\n\t\t}\n\t\t// Plugin can optionally be a function which we call\n\t\t// to create an instance of the plugin\n\t\telse if( typeof plugin === 'function' ) {\n\t\t\tplugin = plugin();\n\t\t}\n\n\t\tlet id = plugin.id;\n\n\t\tif( typeof id !== 'string' ) {\n\t\t\tconsole.warn( 'Unrecognized plugin format; can\\'t find plugin.id', plugin );\n\t\t}\n\t\telse if( this.registeredPlugins[id] === undefined ) {\n\t\t\tthis.registeredPlugins[id] = plugin;\n\n\t\t\t// If a plugin is registered after reveal.js is loaded,\n\t\t\t// initialize it right away\n\t\t\tif( this.state === 'loaded' && typeof plugin.init === 'function' ) {\n\t\t\t\tplugin.init( this.Reveal );\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tconsole.warn( 'reveal.js: \"'+ id +'\" plugin has already been registered' );\n\t\t}\n\n\t}\n\n\t/**\n\t * Checks if a specific plugin has been registered.\n\t *\n\t * @param {String} id Unique plugin identifier\n\t */\n\thasPlugin( id ) {\n\n\t\treturn !!this.registeredPlugins[id];\n\n\t}\n\n\t/**\n\t * Returns the specific plugin instance, if a plugin\n\t * with the given ID has been registered.\n\t *\n\t * @param {String} id Unique plugin identifier\n\t */\n\tgetPlugin( id ) {\n\n\t\treturn this.registeredPlugins[id];\n\n\t}\n\n\tgetRegisteredPlugins() {\n\n\t\treturn this.registeredPlugins;\n\n\t}\n\n\tdestroy() {\n\n\t\tObject.values( this.registeredPlugins ).forEach( plugin => {\n\t\t\tif( typeof plugin.destroy === 'function' ) {\n\t\t\t\tplugin.destroy();\n\t\t\t}\n\t\t} );\n\n\t\tthis.registeredPlugins = {};\n\t\tthis.asyncDependencies = [];\n\n\t}\n\n}\n","import { SLIDES_SELECTOR } from '../utils/constants.js'\nimport { queryAll, createStyleSheet } from '../utils/util.js'\n\n/**\n * Setups up our presentation for printing/exporting to PDF.\n */\nexport default class Print {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t}\n\n\t/**\n\t * Configures the presentation for printing to a static\n\t * PDF.\n\t */\n\tasync setupPDF() {\n\n\t\tconst config = this.Reveal.getConfig();\n\t\tconst slides = queryAll( this.Reveal.getRevealElement(), SLIDES_SELECTOR )\n\n\t\t// Compute slide numbers now, before we start duplicating slides\n\t\tconst injectPageNumbers = config.slideNumber && /all|print/i.test( config.showSlideNumber );\n\n\t\tconst slideSize = this.Reveal.getComputedSlideSize( window.innerWidth, window.innerHeight );\n\n\t\t// Dimensions of the PDF pages\n\t\tconst pageWidth = Math.floor( slideSize.width * ( 1 + config.margin ) ),\n\t\t\tpageHeight = Math.floor( slideSize.height * ( 1 + config.margin ) );\n\n\t\t// Dimensions of slides within the pages\n\t\tconst slideWidth = slideSize.width,\n\t\t\tslideHeight = slideSize.height;\n\n\t\tawait new Promise( requestAnimationFrame );\n\n\t\t// Let the browser know what page size we want to print\n\t\tcreateStyleSheet( '@page{size:'+ pageWidth +'px '+ pageHeight +'px; margin: 0px;}' );\n\n\t\t// Limit the size of certain elements to the dimensions of the slide\n\t\tcreateStyleSheet( '.reveal section>img, .reveal section>video, .reveal section>iframe{max-width: '+ slideWidth +'px; max-height:'+ slideHeight +'px}' );\n\n\t\tdocument.documentElement.classList.add( 'print-pdf' );\n\t\tdocument.body.style.width = pageWidth + 'px';\n\t\tdocument.body.style.height = pageHeight + 'px';\n\n\t\tconst viewportElement = document.querySelector( '.reveal-viewport' );\n\t\tlet presentationBackground;\n\t\tif( viewportElement ) {\n\t\t\tconst viewportStyles = window.getComputedStyle( viewportElement );\n\t\t\tif( viewportStyles && viewportStyles.background ) {\n\t\t\t\tpresentationBackground = viewportStyles.background;\n\t\t\t}\n\t\t}\n\n\t\t// Make sure stretch elements fit on slide\n\t\tawait new Promise( requestAnimationFrame );\n\t\tthis.Reveal.layoutSlideContents( slideWidth, slideHeight );\n\n\t\t// Batch scrollHeight access to prevent layout thrashing\n\t\tawait new Promise( requestAnimationFrame );\n\n\t\tconst slideScrollHeights = slides.map( slide => slide.scrollHeight );\n\n\t\tconst pages = [];\n\t\tconst pageContainer = slides[0].parentNode;\n\t\tlet slideNumber = 1;\n\n\t\t// Slide and slide background layout\n\t\tslides.forEach( function( slide, index ) {\n\n\t\t\t// Vertical stacks are not centred since their section\n\t\t\t// children will be\n\t\t\tif( slide.classList.contains( 'stack' ) === false ) {\n\t\t\t\t// Center the slide inside of the page, giving the slide some margin\n\t\t\t\tlet left = ( pageWidth - slideWidth ) / 2;\n\t\t\t\tlet top = ( pageHeight - slideHeight ) / 2;\n\n\t\t\t\tconst contentHeight = slideScrollHeights[ index ];\n\t\t\t\tlet numberOfPages = Math.max( Math.ceil( contentHeight / pageHeight ), 1 );\n\n\t\t\t\t// Adhere to configured pages per slide limit\n\t\t\t\tnumberOfPages = Math.min( numberOfPages, config.pdfMaxPagesPerSlide );\n\n\t\t\t\t// Center slides vertically\n\t\t\t\tif( numberOfPages === 1 && config.center || slide.classList.contains( 'center' ) ) {\n\t\t\t\t\ttop = Math.max( ( pageHeight - contentHeight ) / 2, 0 );\n\t\t\t\t}\n\n\t\t\t\t// Wrap the slide in a page element and hide its overflow\n\t\t\t\t// so that no page ever flows onto another\n\t\t\t\tconst page = document.createElement( 'div' );\n\t\t\t\tpages.push( page );\n\n\t\t\t\tpage.className = 'pdf-page';\n\t\t\t\tpage.style.height = ( ( pageHeight + config.pdfPageHeightOffset ) * numberOfPages ) + 'px';\n\n\t\t\t\t// Copy the presentation-wide background to each individual\n\t\t\t\t// page when printing\n\t\t\t\tif( presentationBackground ) {\n\t\t\t\t\tpage.style.background = presentationBackground;\n\t\t\t\t}\n\n\t\t\t\tpage.appendChild( slide );\n\n\t\t\t\t// Position the slide inside of the page\n\t\t\t\tslide.style.left = left + 'px';\n\t\t\t\tslide.style.top = top + 'px';\n\t\t\t\tslide.style.width = slideWidth + 'px';\n\n\t\t\t\tthis.Reveal.slideContent.layout( slide );\n\n\t\t\t\tif( slide.slideBackgroundElement ) {\n\t\t\t\t\tpage.insertBefore( slide.slideBackgroundElement, slide );\n\t\t\t\t}\n\n\t\t\t\t// Inject notes if `showNotes` is enabled\n\t\t\t\tif( config.showNotes ) {\n\n\t\t\t\t\t// Are there notes for this slide?\n\t\t\t\t\tconst notes = this.Reveal.getSlideNotes( slide );\n\t\t\t\t\tif( notes ) {\n\n\t\t\t\t\t\tconst notesSpacing = 8;\n\t\t\t\t\t\tconst notesLayout = typeof config.showNotes === 'string' ? config.showNotes : 'inline';\n\t\t\t\t\t\tconst notesElement = document.createElement( 'div' );\n\t\t\t\t\t\tnotesElement.classList.add( 'speaker-notes' );\n\t\t\t\t\t\tnotesElement.classList.add( 'speaker-notes-pdf' );\n\t\t\t\t\t\tnotesElement.setAttribute( 'data-layout', notesLayout );\n\t\t\t\t\t\tnotesElement.innerHTML = notes;\n\n\t\t\t\t\t\tif( notesLayout === 'separate-page' ) {\n\t\t\t\t\t\t\tpages.push( notesElement );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tnotesElement.style.left = notesSpacing + 'px';\n\t\t\t\t\t\t\tnotesElement.style.bottom = notesSpacing + 'px';\n\t\t\t\t\t\t\tnotesElement.style.width = ( pageWidth - notesSpacing*2 ) + 'px';\n\t\t\t\t\t\t\tpage.appendChild( notesElement );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t// Inject page numbers if `slideNumbers` are enabled\n\t\t\t\tif( injectPageNumbers ) {\n\t\t\t\t\tconst numberElement = document.createElement( 'div' );\n\t\t\t\t\tnumberElement.classList.add( 'slide-number' );\n\t\t\t\t\tnumberElement.classList.add( 'slide-number-pdf' );\n\t\t\t\t\tnumberElement.innerHTML = slideNumber++;\n\t\t\t\t\tpage.appendChild( numberElement );\n\t\t\t\t}\n\n\t\t\t\t// Copy page and show fragments one after another\n\t\t\t\tif( config.pdfSeparateFragments ) {\n\n\t\t\t\t\t// Each fragment 'group' is an array containing one or more\n\t\t\t\t\t// fragments. Multiple fragments that appear at the same time\n\t\t\t\t\t// are part of the same group.\n\t\t\t\t\tconst fragmentGroups = this.Reveal.fragments.sort( page.querySelectorAll( '.fragment' ), true );\n\n\t\t\t\t\tlet previousFragmentStep;\n\n\t\t\t\t\tfragmentGroups.forEach( function( fragments, index ) {\n\n\t\t\t\t\t\t// Remove 'current-fragment' from the previous group\n\t\t\t\t\t\tif( previousFragmentStep ) {\n\t\t\t\t\t\t\tpreviousFragmentStep.forEach( function( fragment ) {\n\t\t\t\t\t\t\t\tfragment.classList.remove( 'current-fragment' );\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Show the fragments for the current index\n\t\t\t\t\t\tfragments.forEach( function( fragment ) {\n\t\t\t\t\t\t\tfragment.classList.add( 'visible', 'current-fragment' );\n\t\t\t\t\t\t}, this );\n\n\t\t\t\t\t\t// Create a separate page for the current fragment state\n\t\t\t\t\t\tconst clonedPage = page.cloneNode( true );\n\n\t\t\t\t\t\t// Inject unique page numbers for fragments\n\t\t\t\t\t\tif( injectPageNumbers ) {\n\t\t\t\t\t\t\tconst numberElement = clonedPage.querySelector( '.slide-number-pdf' );\n\t\t\t\t\t\t\tconst fragmentNumber = index + 1;\n\t\t\t\t\t\t\tnumberElement.innerHTML += '.' + fragmentNumber;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpages.push( clonedPage );\n\n\t\t\t\t\t\tpreviousFragmentStep = fragments;\n\n\t\t\t\t\t}, this );\n\n\t\t\t\t\t// Reset the first/original page so that all fragments are hidden\n\t\t\t\t\tfragmentGroups.forEach( function( fragments ) {\n\t\t\t\t\t\tfragments.forEach( function( fragment ) {\n\t\t\t\t\t\t\tfragment.classList.remove( 'visible', 'current-fragment' );\n\t\t\t\t\t\t} );\n\t\t\t\t\t} );\n\n\t\t\t\t}\n\t\t\t\t// Show all fragments\n\t\t\t\telse {\n\t\t\t\t\tqueryAll( page, '.fragment:not(.fade-out)' ).forEach( function( fragment ) {\n\t\t\t\t\t\tfragment.classList.add( 'visible' );\n\t\t\t\t\t} );\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}, this );\n\n\t\tawait new Promise( requestAnimationFrame );\n\n\t\tpages.forEach( page => pageContainer.appendChild( page ) );\n\n\t\t// Re-run JS-based content layout after the slide is added to page DOM\n\t\tthis.Reveal.slideContent.layout( this.Reveal.getSlidesElement() );\n\n\t\t// Notify subscribers that the PDF layout is good to go\n\t\tthis.Reveal.dispatchEvent({ type: 'pdf-ready' });\n\n\t}\n\n\t/**\n\t * Checks if this instance is being used to print a PDF.\n\t */\n\tisPrintingPDF() {\n\n\t\treturn ( /print-pdf/gi ).test( window.location.search );\n\n\t}\n\n}\n","import { isAndroid } from '../utils/device.js'\nimport { matches } from '../utils/util.js'\n\nconst SWIPE_THRESHOLD = 40;\n\n/**\n * Controls all touch interactions and navigations for\n * a presentation.\n */\nexport default class Touch {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t\t// Holds information about the currently ongoing touch interaction\n\t\tthis.touchStartX = 0;\n\t\tthis.touchStartY = 0;\n\t\tthis.touchStartCount = 0;\n\t\tthis.touchCaptured = false;\n\n\t\tthis.onPointerDown = this.onPointerDown.bind( this );\n\t\tthis.onPointerMove = this.onPointerMove.bind( this );\n\t\tthis.onPointerUp = this.onPointerUp.bind( this );\n\t\tthis.onTouchStart = this.onTouchStart.bind( this );\n\t\tthis.onTouchMove = this.onTouchMove.bind( this );\n\t\tthis.onTouchEnd = this.onTouchEnd.bind( this );\n\n\t}\n\n\t/**\n\t *\n\t */\n\tbind() {\n\n\t\tlet revealElement = this.Reveal.getRevealElement();\n\n\t\tif( 'onpointerdown' in window ) {\n\t\t\t// Use W3C pointer events\n\t\t\trevealElement.addEventListener( 'pointerdown', this.onPointerDown, false );\n\t\t\trevealElement.addEventListener( 'pointermove', this.onPointerMove, false );\n\t\t\trevealElement.addEventListener( 'pointerup', this.onPointerUp, false );\n\t\t}\n\t\telse if( window.navigator.msPointerEnabled ) {\n\t\t\t// IE 10 uses prefixed version of pointer events\n\t\t\trevealElement.addEventListener( 'MSPointerDown', this.onPointerDown, false );\n\t\t\trevealElement.addEventListener( 'MSPointerMove', this.onPointerMove, false );\n\t\t\trevealElement.addEventListener( 'MSPointerUp', this.onPointerUp, false );\n\t\t}\n\t\telse {\n\t\t\t// Fall back to touch events\n\t\t\trevealElement.addEventListener( 'touchstart', this.onTouchStart, false );\n\t\t\trevealElement.addEventListener( 'touchmove', this.onTouchMove, false );\n\t\t\trevealElement.addEventListener( 'touchend', this.onTouchEnd, false );\n\t\t}\n\n\t}\n\n\t/**\n\t *\n\t */\n\tunbind() {\n\n\t\tlet revealElement = this.Reveal.getRevealElement();\n\n\t\trevealElement.removeEventListener( 'pointerdown', this.onPointerDown, false );\n\t\trevealElement.removeEventListener( 'pointermove', this.onPointerMove, false );\n\t\trevealElement.removeEventListener( 'pointerup', this.onPointerUp, false );\n\n\t\trevealElement.removeEventListener( 'MSPointerDown', this.onPointerDown, false );\n\t\trevealElement.removeEventListener( 'MSPointerMove', this.onPointerMove, false );\n\t\trevealElement.removeEventListener( 'MSPointerUp', this.onPointerUp, false );\n\n\t\trevealElement.removeEventListener( 'touchstart', this.onTouchStart, false );\n\t\trevealElement.removeEventListener( 'touchmove', this.onTouchMove, false );\n\t\trevealElement.removeEventListener( 'touchend', this.onTouchEnd, false );\n\n\t}\n\n\t/**\n\t * Checks if the target element prevents the triggering of\n\t * swipe navigation.\n\t */\n\tisSwipePrevented( target ) {\n\n\t\t// Prevent accidental swipes when scrubbing timelines\n\t\tif( matches( target, 'video, audio' ) ) return true;\n\n\t\twhile( target && typeof target.hasAttribute === 'function' ) {\n\t\t\tif( target.hasAttribute( 'data-prevent-swipe' ) ) return true;\n\t\t\ttarget = target.parentNode;\n\t\t}\n\n\t\treturn false;\n\n\t}\n\n\t/**\n\t * Handler for the 'touchstart' event, enables support for\n\t * swipe and pinch gestures.\n\t *\n\t * @param {object} event\n\t */\n\tonTouchStart( event ) {\n\n\t\tif( this.isSwipePrevented( event.target ) ) return true;\n\n\t\tthis.touchStartX = event.touches[0].clientX;\n\t\tthis.touchStartY = event.touches[0].clientY;\n\t\tthis.touchStartCount = event.touches.length;\n\n\t}\n\n\t/**\n\t * Handler for the 'touchmove' event.\n\t *\n\t * @param {object} event\n\t */\n\tonTouchMove( event ) {\n\n\t\tif( this.isSwipePrevented( event.target ) ) return true;\n\n\t\tlet config = this.Reveal.getConfig();\n\n\t\t// Each touch should only trigger one action\n\t\tif( !this.touchCaptured ) {\n\t\t\tthis.Reveal.onUserInput( event );\n\n\t\t\tlet currentX = event.touches[0].clientX;\n\t\t\tlet currentY = event.touches[0].clientY;\n\n\t\t\t// There was only one touch point, look for a swipe\n\t\t\tif( event.touches.length === 1 && this.touchStartCount !== 2 ) {\n\n\t\t\t\tlet availableRoutes = this.Reveal.availableRoutes({ includeFragments: true });\n\n\t\t\t\tlet deltaX = currentX - this.touchStartX,\n\t\t\t\t\tdeltaY = currentY - this.touchStartY;\n\n\t\t\t\tif( deltaX > SWIPE_THRESHOLD && Math.abs( deltaX ) > Math.abs( deltaY ) ) {\n\t\t\t\t\tthis.touchCaptured = true;\n\t\t\t\t\tif( config.navigationMode === 'linear' ) {\n\t\t\t\t\t\tif( config.rtl ) {\n\t\t\t\t\t\t\tthis.Reveal.next();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthis.Reveal.prev();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.Reveal.left();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if( deltaX < -SWIPE_THRESHOLD && Math.abs( deltaX ) > Math.abs( deltaY ) ) {\n\t\t\t\t\tthis.touchCaptured = true;\n\t\t\t\t\tif( config.navigationMode === 'linear' ) {\n\t\t\t\t\t\tif( config.rtl ) {\n\t\t\t\t\t\t\tthis.Reveal.prev();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthis.Reveal.next();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.Reveal.right();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if( deltaY > SWIPE_THRESHOLD && availableRoutes.up ) {\n\t\t\t\t\tthis.touchCaptured = true;\n\t\t\t\t\tif( config.navigationMode === 'linear' ) {\n\t\t\t\t\t\tthis.Reveal.prev();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.Reveal.up();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if( deltaY < -SWIPE_THRESHOLD && availableRoutes.down ) {\n\t\t\t\t\tthis.touchCaptured = true;\n\t\t\t\t\tif( config.navigationMode === 'linear' ) {\n\t\t\t\t\t\tthis.Reveal.next();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.Reveal.down();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// If we're embedded, only block touch events if they have\n\t\t\t\t// triggered an action\n\t\t\t\tif( config.embedded ) {\n\t\t\t\t\tif( this.touchCaptured || this.Reveal.isVerticalSlide() ) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Not embedded? Block them all to avoid needless tossing\n\t\t\t\t// around of the viewport in iOS\n\t\t\t\telse {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t// There's a bug with swiping on some Android devices unless\n\t\t// the default action is always prevented\n\t\telse if( isAndroid ) {\n\t\t\tevent.preventDefault();\n\t\t}\n\n\t}\n\n\t/**\n\t * Handler for the 'touchend' event.\n\t *\n\t * @param {object} event\n\t */\n\tonTouchEnd( event ) {\n\n\t\tthis.touchCaptured = false;\n\n\t}\n\n\t/**\n\t * Convert pointer down to touch start.\n\t *\n\t * @param {object} event\n\t */\n\tonPointerDown( event ) {\n\n\t\tif( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === \"touch\" ) {\n\t\t\tevent.touches = [{ clientX: event.clientX, clientY: event.clientY }];\n\t\t\tthis.onTouchStart( event );\n\t\t}\n\n\t}\n\n\t/**\n\t * Convert pointer move to touch move.\n\t *\n\t * @param {object} event\n\t */\n\tonPointerMove( event ) {\n\n\t\tif( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === \"touch\" ) {\n\t\t\tevent.touches = [{ clientX: event.clientX, clientY: event.clientY }];\n\t\t\tthis.onTouchMove( event );\n\t\t}\n\n\t}\n\n\t/**\n\t * Convert pointer up to touch end.\n\t *\n\t * @param {object} event\n\t */\n\tonPointerUp( event ) {\n\n\t\tif( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === \"touch\" ) {\n\t\t\tevent.touches = [{ clientX: event.clientX, clientY: event.clientY }];\n\t\t\tthis.onTouchEnd( event );\n\t\t}\n\n\t}\n\n}","import { closest } from '../utils/util.js'\n\n/**\n * Manages focus when a presentation is embedded. This\n * helps us only capture keyboard from the presentation\n * a user is currently interacting with in a page where\n * multiple presentations are embedded.\n */\n\nconst STATE_FOCUS = 'focus';\nconst STATE_BLUR = 'blur';\n\nexport default class Focus {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t\tthis.onRevealPointerDown = this.onRevealPointerDown.bind( this );\n\t\tthis.onDocumentPointerDown = this.onDocumentPointerDown.bind( this );\n\n\t}\n\n\t/**\n\t * Called when the reveal.js config is updated.\n\t */\n\tconfigure( config, oldConfig ) {\n\n\t\tif( config.embedded ) {\n\t\t\tthis.blur();\n\t\t}\n\t\telse {\n\t\t\tthis.focus();\n\t\t\tthis.unbind();\n\t\t}\n\n\t}\n\n\tbind() {\n\n\t\tif( this.Reveal.getConfig().embedded ) {\n\t\t\tthis.Reveal.getRevealElement().addEventListener( 'pointerdown', this.onRevealPointerDown, false );\n\t\t}\n\n\t}\n\n\tunbind() {\n\n\t\tthis.Reveal.getRevealElement().removeEventListener( 'pointerdown', this.onRevealPointerDown, false );\n\t\tdocument.removeEventListener( 'pointerdown', this.onDocumentPointerDown, false );\n\n\t}\n\n\tfocus() {\n\n\t\tif( this.state !== STATE_FOCUS ) {\n\t\t\tthis.Reveal.getRevealElement().classList.add( 'focused' );\n\t\t\tdocument.addEventListener( 'pointerdown', this.onDocumentPointerDown, false );\n\t\t}\n\n\t\tthis.state = STATE_FOCUS;\n\n\t}\n\n\tblur() {\n\n\t\tif( this.state !== STATE_BLUR ) {\n\t\t\tthis.Reveal.getRevealElement().classList.remove( 'focused' );\n\t\t\tdocument.removeEventListener( 'pointerdown', this.onDocumentPointerDown, false );\n\t\t}\n\n\t\tthis.state = STATE_BLUR;\n\n\t}\n\n\tisFocused() {\n\n\t\treturn this.state === STATE_FOCUS;\n\n\t}\n\n\tdestroy() {\n\n\t\tthis.Reveal.getRevealElement().classList.remove( 'focused' );\n\n\t}\n\n\tonRevealPointerDown( event ) {\n\n\t\tthis.focus();\n\n\t}\n\n\tonDocumentPointerDown( event ) {\n\n\t\tlet revealElement = closest( event.target, '.reveal' );\n\t\tif( !revealElement || revealElement !== this.Reveal.getRevealElement() ) {\n\t\t\tthis.blur();\n\t\t}\n\n\t}\n\n}","/**\n * Handles the showing of speaker notes\n */\nexport default class Notes {\n\n\tconstructor( Reveal ) {\n\n\t\tthis.Reveal = Reveal;\n\n\t}\n\n\trender() {\n\n\t\tthis.element = document.createElement( 'div' );\n\t\tthis.element.className = 'speaker-notes';\n\t\tthis.element.setAttribute( 'data-prevent-swipe', '' );\n\t\tthis.element.setAttribute( 'tabindex', '0' );\n\t\tthis.Reveal.getRevealElement().appendChild( this.element );\n\n\t}\n\n\t/**\n\t * Called when the reveal.js config is updated.\n\t */\n\tconfigure( config, oldConfig ) {\n\n\t\tif( config.showNotes ) {\n\t\t\tthis.element.setAttribute( 'data-layout', typeof config.showNotes === 'string' ? config.showNotes : 'inline' );\n\t\t}\n\n\t}\n\n\t/**\n\t * Pick up notes from the current slide and display them\n\t * to the viewer.\n\t *\n\t * @see {@link config.showNotes}\n\t */\n\tupdate() {\n\n\t\tif( this.Reveal.getConfig().showNotes && this.element && this.Reveal.getCurrentSlide() && !this.Reveal.print.isPrintingPDF() ) {\n\n\t\t\tthis.element.innerHTML = this.getSlideNotes() || 'No notes on this slide.';\n\n\t\t}\n\n\t}\n\n\t/**\n\t * Updates the visibility of the speaker notes sidebar that\n\t * is used to share annotated slides. The notes sidebar is\n\t * only visible if showNotes is true and there are notes on\n\t * one or more slides in the deck.\n\t */\n\tupdateVisibility() {\n\n\t\tif( this.Reveal.getConfig().showNotes && this.hasNotes() && !this.Reveal.print.isPrintingPDF() ) {\n\t\t\tthis.Reveal.getRevealElement().classList.add( 'show-notes' );\n\t\t}\n\t\telse {\n\t\t\tthis.Reveal.getRevealElement().classList.remove( 'show-notes' );\n\t\t}\n\n\t}\n\n\t/**\n\t * Checks if there are speaker notes for ANY slide in the\n\t * presentation.\n\t */\n\thasNotes() {\n\n\t\treturn this.Reveal.getSlidesElement().querySelectorAll( '[data-notes], aside.notes' ).length > 0;\n\n\t}\n\n\t/**\n\t * Checks if this presentation is running inside of the\n\t * speaker notes window.\n\t *\n\t * @return {boolean}\n\t */\n\tisSpeakerNotesWindow() {\n\n\t\treturn !!window.location.search.match( /receiver/gi );\n\n\t}\n\n\t/**\n\t * Retrieves the speaker notes from a slide. Notes can be\n\t * defined in two ways:\n\t * 1. As a data-notes attribute on the slide
\n\t * 2. With