[
  {
    "path": ".gitignore",
    "content": ".vscode\n\n# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n\n# Runtime data\npids\n*.pid\n*.seed\n*.pid.lock\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n\n# nyc test coverage\n.nyc_output\n\n# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)\n.grunt\n\n# Bower dependency directory (https://bower.io/)\nbower_components\n\n# node-waf configuration\n.lock-wscript\n\n# Compiled binary addons (http://nodejs.org/api/addons.html)\nbuild/Release\n\n# Dependency directories\nnode_modules/\njspm_packages/\n\n# Typescript v1 declaration files\ntypings/\n\n# Optional npm cache directory\n.npm\n\n# Optional eslint cache\n.eslintcache\n\n# Optional REPL history\n.node_repl_history\n\n# Output of 'npm pack'\n*.tgz\n\n# dotenv environment variables file\n.env\n\n# gatsby files\n.cache/\npublic\n\n# Mac files\n.DS_Store\n\n# Yarn\nyarn-error.log\n.pnp/\n.pnp.js\n# Yarn Integrity file\n.yarn-integrity\n"
  },
  {
    "path": ".prettierrc",
    "content": "{\n    \"semi\": false,\n    \"singleQuote\": true,\n    \"trailingComma\": \"es5\",\n    \"tabWidth\": 4,\n    \"printWidth\": 100,\n    \"overrides\": [\n        {\n            \"files\": \"*.sass\",\n            \"options\": {\n                \"printWidth\": 999\n            }\n        },\n        {\n          \"files\": \"*.md\",\n          \"options\": {\n              \"tabWidth\": 2,\n              \"printWidth\": 80,\n              \"proseWrap\": \"always\",\n              \"htmlWhitespaceSensitivity\": \"strict\"\n          }\n      }\n    ]\n}\n"
  },
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (C) 2019 Ines Montani\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# Online course starter: R\n\nThis is a starter repo based on the\n[course framework](https://github.com/ines/spacy-course) I developed for my\n[spaCy course](https://course.spacy.io). The front-end is powered by\n[Gatsby](http://gatsbyjs.org/) and [Reveal.js](https://revealjs.com) and the\nback-end code execution uses [Binder](https://mybinder.org) 💖\n\n_This repo could use some better code examples. Also, if you have experience\nwith R, feel free to suggest improvements to the\n[test logic and template](#adding-tests). It all works as expected, but there\nmight be ways to make it more elegant._\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/ines/courser-starter-r)\n\n[![](https://user-images.githubusercontent.com/13643239/56341448-68fe9380-61b5-11e9-816f-5c71ae71b94f.png)](https://course-starter-r.netlify.com)\n\n## ✅ Quickstart\n\n1. [Import](https://github.com/new/import) this repo, install it and make sure\n   the app is running locally.\n2. Customize the [`meta.json`](meta.json) and\n   [`binder/install.R`](binder/install.R).\n3. Build a [Binder](https://mybinder.org) from the `binder` branch of this repo.\n4. Add content (chapters, exercises and slides) and optionally add separate\n   content license.\n5. Customize the UI theme in [`theme.sass`](theme.sass) and update images in\n   [`static`](static) as needed.\n6. Deploy the app, e.g. to [Netlify](https://netlify.com).\n\n### Running the app\n\nTo start the local development server, install [Gatsby](https://gatsbyjs.org)\nand then all other dependencies. This should serve up the app on\n`localhost:8000`.\n\n```bash\nnpm install -g gatsby-cli  # Install Gatsby globally\nnpm install                # Install dependencies\nnpm run dev                # Run the development server\n```\n\n## 💡Introduction\n\n> This section was contributed by [@laderast](https://github.com/laderast).\n> Thanks! ✨\n\n### How does this repo work?\n\nThe course repository works with two components: Gatsby (front-end), and Binder\n(back-end). We'll go over both of these to understand how it works as a whole.\n\n### What is Gatsby?\n\n[Gatsby](https://www.gatsbyjs.org/) is a JavaScript/react.js based web page\nbuilding framework, like Hugo, or Jekyll. The nice thing about it being\nJavaScript is that JavaScript widgets that you build are tightly integrated.\n\nYou can think of Gatsby as being the client side of the lesson framework. All\ncode, solutions, tests, and chapter.md files are handled by Gatsby.\n\n### What is Binder?\n\n[Binder](https://gke.mybinder.org/) is a way of building Docker containers from\nrepositories that can be launched on a remote server/cluster (such as\nmybinder.org). This Docker container can be based on a Dockerfile, or R image.\nThe thing about Binder is that the containers are ephemeral - if they're not\nused, they're deleted off the Binder servers. The main applications of Binder\nare:\n\n1. Reproducible Research (shareable notebooks) and\n2. Education (shareable notebooks)\n\nYou can think of Binder as being the server side of the lesson framework. It\nneeds the instructions on how to build the docker container (which is in the\n`binder/` folder), and the data you want to use for the lessons (in the `data/`\nfolder).\n\nThe only thing you need to get started with R and Binder is a repo that has a\n`runtime.txt` file, or a Dockerfile. The rest, such as datafiles, are optional,\nbut are usually contained in a Binder repository.\n\n### How does Gatsby work with Binder?\n\n![code-execution](https://user-images.githubusercontent.com/3315629/60834090-b49d5980-a174-11e9-9d69-966084ba97b9.png)\n\nInes was super clever and designed a JavaScript plugin for Gatsby called\n[Juniper](https://github.com/ines/juniper) to handle communication to and from\nthe Binder container using Jupyter kernels. That's how code gets executed on the\nBinder container, and how code output (such as terminal messages, images, etc)\nare received from the Binder container.\n\n## Branches of this repo\n\n![Course-repo](https://user-images.githubusercontent.com/3315629/60834054-a18a8980-a174-11e9-930d-c61df5faba7b.png)\n\nThere are two branches of this repo, which are used for different tasks:\n\n- **master** - this is what the course is served out of via netlify:\n  http://r-bootcamp.netlify.com - any changes to exercises in this branch will\n  show up on the netlify page. The netlify page uses a JavaScript framework\n  called Gatsby to build the pages. Gatsby submits code to binder and receives\n  the output. It also handles the code checking. The parts of the repo that are\n  handled by Gatsby include:\n\n1. exercises/solutions/tests\n2. chapter.md files\n3. slides (using reveal.js)\n\n- **binder** - this is what the Binder image is built from. The reason they're\n  different is that binder forces a Docker container rebuild when a branch is\n  updated. So, if we served our container out of master, it would rebuild\n  everytime we modified a `chapter.md` or an exercise. If you need to add\n  packages, you will add them to the `binder/install.R` for this branch, and if\n  you need to add datasets, you can add them to the `data/` folder. The parts of\n  the repo handled by Binder include:\n\n1. datasets in data/ folder (the container needs access to these to load data\n   from submitted code)\n2. installation instructions in the binder/ folder for installing dependencies\n\nI would say that the easiest thing to do is to occasionally merge `master` into\n`binder` when you need to update the data:\n\nNote that rebuilding the binder container can take a little bit of time (usually\non the order of 5 or 10 minutes or so), since it is installing/compiling\n`tidyverse` for the container. You can always check the build status of the\ncontainer by clicking the badge below and looking at the log.\n\nYou can view the binder container here:\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ines/course-starter-r/binder)\nor at: https://mybinder.org/v2/gh/ines/course-starter-r/binder\n\n- you can launch an Rstudio instance to test the container by using the \"new\"\n  tab in the top right corner, and selecting 'Rstudio'. This is super helpful if\n  you want to test if code will work in the binder container.\n\n### Adding Packages\n\nIf you need to add packages, add the appropriate `install.packages()` statement\ninto `binder/install.R`. When you do, check that the container was built\nproperly by clicking the binder link above.\n\nCurrently, `tidyverse` is installed in the binder container.\n\n### `data/` folder\n\nIf you want to access datasets in the data folder, you can always refer to this\nfolder as `data/`. For example, to use `data/pets.csv`:\n\n```\npets <- read.csv(\"data/pets.csv\")\n```\n\nRemember, if you need to add a dataset to the repo, it needs to be done in the\n`binder` branch into the `data/` folder.\n\n### Using `decampr` to transfer your DataCamp repository\n\nIf you would like to transfer your courses from DataCamp, there is a package\nmade for that: [`decampr`](http://github.com/laderast/decampr). It will scan\nyour repository and attempt to extract exercise instructions, quizzes, exercise\ncode, and solutions and write them to the appropriate directory for your\nproject. For more info, please check out the `decampr` repo:\nhttp://github.com/laderast/decampr\n\n## 🎨 Customization\n\nThe app separates its source and content – so you usually shouldn't have to dig\ninto the JavaScript source to change things. The following points of\ncustomization are available:\n\n| Location             | Description                                                                                                                           |\n| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |\n| `meta.json`          | General config settings, title, description etc.                                                                                      |\n| `theme.sass`         | Color theme.                                                                                                                          |\n| `binder/install.R`   | Packages to install.                                                                                                                  |\n| `binder/runtime.txt` | YYYY-MM-DD snapshot at MRAN that will be used for installing libraries. [See here](https://github.com/binder-examples/r) for details. |\n| `chapters`           | The chapters, one Markdown file per chapter.                                                                                          |\n| `slides`             | The slides, one Markdown file per slide deck.                                                                                         |\n| `static`             | Static assets like images, will be copied to the root.                                                                                |\n\n### `meta.json`\n\nThe following meta settings are available. **Note that you have to re-start\nGatsby to see the changes if you're editing it while the server is running.**\n\n| Setting              | Description                                                                                                                                |\n| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |\n| `courseId`           | Unique ID of the course. Will be used when saving completed exercises to the browser's local storage.                                      |\n| `title`              | The title of the course.                                                                                                                   |\n| `slogan`             | Course slogan, displayed in the page title on the front page.                                                                              |\n| `description`        | Course description. Used for site meta and in footer.                                                                                      |\n| `bio`                | Author bio. Used in the footer.                                                                                                            |\n| `siteUrl`            | URL of the deployed site (without trailing slash).                                                                                         |\n| `twitter`            | Author twitter handle, used in Twitter cards meta.                                                                                         |\n| `fonts`              | [Google Fonts](https://fonts.google.com) to load. Should be the font part of the URL in the embed string, e.g. `Lato:400,400i,700,700i`.   |\n| `testTemplate`       | Template used to validate the answers. `${solution}` will be replaced with the user code and `${test}` with the contents of the test file. |\n| `juniper.repo`       | Repo to build on Binder in `user/repo` format. Usually the same as this repo.                                                              |\n| `juniper.branch`     | Branch to build. Ideally not `master`, so the image is not rebuilt every time you push.                                                    |\n| `juniper.lang`       | Code language for syntax highlighting.                                                                                                     |\n| `juniper.kernelType` | The name of the kernel to use.                                                                                                             |\n| `juniper.debug`      | Logs additional debugging info to the console.                                                                                             |\n| `showProfileImage`   | Whether to show the profile image in the footer. If `true`, a file `static/profile.jpg` needs to be available.                             |\n| `footerLinks`        | List of objects with `\"text\"` and `\"url\"` to display as links in the footer.                                                               |\n| `theme`              | Currently only used for the progressive web app, e.g. as the theme color on mobile. For the UI theme, edit `theme.sass`.                   |\n\n### Static assets\n\nAll files added to `/static` will become available at the root of the deployed\nsite. So `/static/image.jpg` can be referenced in your course as `/image.jpg`.\nThe following assets need to be available and can be customized:\n\n| File              | Description                                              |\n| ----------------- | -------------------------------------------------------- |\n| `icon.png`        | Custom [favicon](https://en.wikipedia.org/wiki/Favicon). |\n| `logo.svg`        | The course logo.                                         |\n| `profile.jpg`     | Photo or profile image.                                  |\n| `social.jpg`      | Social image, displayed in Twitter and Facebook cards.   |\n| `icon_check.svg`  | \"Check\" icon displayed on \"Mark as completed\" button.    |\n| `icon_slides.svg` | Icon displayed in the corner of a slides exercise.       |\n\n## ✏️ Content\n\n### File formats\n\n#### Chapters\n\nChapters are placed in [`/chapters`](/chapters) and are Markdown files\nconsisting of `<exercise>` components. They'll be turned into pages, e.g.\n`/chapter1`. In their frontmatter block at the top of the file, they need to\nspecify `type: chapter`, as well as the following meta:\n\n```yaml\n---\ntitle: The chapter title\ndescription: The chapter description\nprev: /chapter1 # exact path to previous chapter or null to not show a link\nnext: /chapter3 # exact path to next chapter or null to not show a link\nid: 2 # unique identifier for chapter\ntype: chapter # important: this creates a standalone page from the chapter\n---\n\n```\n\n#### Slides\n\nSlides are placed in [`/slides`](/slides) and are markdown files consisting of\nslide content, separated by `---`. They need to specify the following\nfrontmatter block at the top of the file:\n\n```yaml\n---\ntype: slides\n---\n\n```\n\nThe **first and last slide** use a special layout and will display the headline\nin the center of the slide. **Speaker notes** (in this case, the script) can be\nadded at the end of a slide, prefixed by `Notes:`. They'll then be shown on the\nright next to the slides. Here's an example slides file:\n\n```markdown\n---\ntype: slides\n---\n\n# Processing pipelines\n\nNotes: This is a slide deck about processing pipelines.\n\n---\n\n# Next slide\n\n- Some bullet points here\n- And another bullet point\n\n<img src=\"/image.jpg\" alt=\"An image located in /static\" />\n```\n\n### Custom Elements\n\nWhen using custom elements, make sure to place a newline between the\nopening/closing tags and the children. Otherwise, Markdown content may not\nrender correctly.\n\n#### `<exercise>`\n\nContainer of a single exercise.\n\n| Argument     | Type            | Description                                                    |\n| ------------ | --------------- | -------------------------------------------------------------- |\n| `id`         | number / string | Unique exercise ID within chapter.                             |\n| `title`      | string          | Exercise title.                                                |\n| `type`       | string          | Optional type. `\"slides\"` makes container wider and adds icon. |\n| **children** | -               | The contents of the exercise.                                  |\n\n```markdown\n<exercise id=\"1\" title=\"Introduction to spaCy\">\n\nContent goes here...\n\n</exercise>\n```\n\n#### `<codeblock>`\n\n| Argument     | Type            | Description                                                                                  |\n| ------------ | --------------- | -------------------------------------------------------------------------------------------- |\n| `id`         | number / string | Unique identifier of the code exercise.                                                      |\n| `source`     | string          | Name of the source file (without file extension). Defaults to `exc_${id}` if not set.        |\n| `solution`   | string          | Name of the solution file (without file extension). Defaults to `solution_${id}` if not set. |\n| `test`       | string          | Name of the test file (without file extension). Defaults to `test_${id}` if not set.         |\n| **children** | string          | Optional hints displayed when the user clicks \"Show hints\".                                  |\n\n```markdown\n<codeblock id=\"02_03\">\n\nThis is a hint!\n\n</codeblock>\n```\n\n#### `<slides>`\n\nContainer to display slides interactively using Reveal.js and a Markdown file.\n\n| Argument | Type   | Description                                   |\n| -------- | ------ | --------------------------------------------- |\n| `source` | string | Name of slides file (without file extension). |\n\n```markdown\n<slides source=\"chapter1_01_introduction-to-spacy\">\n</slides>\n```\n\n#### `<choice>`\n\nContainer for multiple-choice question.\n\n| Argument     | Type            | Description                                                                                  |\n| ------------ | --------------- | -------------------------------------------------------------------------------------------- |\n| `id`         | string / number | Optional unique ID. Can be used if more than one choice question is present in one exercise. |\n| **children** | nodes           | Only `<opt>` components for the options.                                                     |\n\n```markdown\n<choice>\n\n<opt text=\"Option one\">You have selected option one! This is not good.</opt>\n<opt text=\"Option two\" correct=\"true\">Yay! </opt>\n\n</choice>\n```\n\n#### `<opt>`\n\nA multiple-choice option.\n\n| Argument     | Type   | Description                                                                                    |\n| ------------ | ------ | ---------------------------------------------------------------------------------------------- |\n| `text`       | string | The option text to be displayed. Supports inline HTML.                                         |\n| `correct`    | string | `\"true\"` if the option is the correct answer.                                                  |\n| **children** | string | The text to be displayed if the option is selected (explaining why it's correct or incorrect). |\n\n### Setting up Binder\n\nThe [`install.R`](binder/install.R) in the repository defines the packages that\nare installed when building it with Binder. You can specify the binder settings\nlike repo, branch and kernel type in the `\"juniper\"` section of the `meta.json`.\nI'd recommend running the very first build via the interface on the\n[Binder website](https://mybinder.org), as this gives you a detailed build log\nand feedback on whether everything worked as expected. Enter your repository\nURL, click \"launch\" and wait for it to install the dependencies and build the\nimage.\n\n![Binder](https://user-images.githubusercontent.com/13643239/39412757-a518d416-4c21-11e8-9dad-8b4cc14737bc.png)\n\n### Adding tests\n\nTo validate the code when the user hits \"Submit\", we're currently using a\nslightly hacky trick. Since the R code is sent back to the kernel as a string,\nwe can manipulate it and add tests – for example, exercise `exc_01_02_01.R` will\nbe validated using `test_01_02_01.R` (if available). The user code and test are\ncombined using a string template. At the moment, the `testTemplate` in the\n`meta.json` looks like this:\n\n```r\nsuccess <- function(text) {\n    cat(paste(\"\\033[32m\", text, \"\\033[0m\", sep = \"\"))\n}\n\n.solution <- \"${solutionEscaped}\"\n\n${solution}\n\n${test}\ntryCatch({\n    test()\n}, error = function(e) {\n    cat(paste(\"\\033[31m\", e[1], \"\\033[0m\", sep = \"\"))\n})\n```\n\nIf present, `${solution}` will be replaced with the string value of the\nsubmitted user code, and `${solutionEscaped}` with the code but with all `\"`\nreplaced by `\\\"`, so we can assign it to a variable as a string and check\nwhether the submission includes something. We also insert the regular solution,\nso we can actually run it and check the objects it creates. `${test}` is\nreplaced by the contents of the test file. The template also defines a `success`\nfunction, which prints a formatted green message and can be used in the tests.\nFinally, the `tryCatch` expression checks if the test function raises a `stop`\nand if so, it outputs the formatted error message. This also hides the full\nerror traceback (which can easily leak the correct answers).\n\nA test file could then look like this:\n\n```r\ntest <- function() {\n    if (some_var != length(mtcars)) {\n        stop(\"Are you getting the correct length?\")\n    }\n    if (!grepl(\"print(mtcars$gear)\", .solution, fixed = TRUE)) {\n        stop(\"Are you printing the correct variable?\")\n    }\n    success(\"Well done!\")\n}\n```\n\nThe string answer is available as `.solution`, and the test also has access to\nthe solution code.\n\n---\n\nFor more details on how it all works behind the scenes, see\n[the original course repo](https://github.com/ines/spacy-course).\n"
  },
  {
    "path": "binder/install.R",
    "content": "install.packages(\"tidyverse\")\ninstall.packages(\"rjson\")\n"
  },
  {
    "path": "binder/runtime.txt",
    "content": "r-2019-04-10\n"
  },
  {
    "path": "chapters/chapter1.md",
    "content": "---\ntitle: 'Chapter 1: Getting started'\ndescription:\n  'This chapter will teach you about many cool things and introduce you to the\n  most important concepts of the course.'\nprev: null\nnext: /chapter2\ntype: chapter\nid: 1\n---\n\n<exercise id=\"1\" title=\"Introduction\" type=\"slides\">\n\n<slides source=\"chapter1_01_introduction\">\n</slides>\n\n</exercise>\n\n<exercise id=\"2\" title=\"Getting Started\">\n\nLet's ask some questions about the slides. Whats the correct answer?\n\n<choice>\n<opt text=\"Answer one\">\n\nThis is not the correct answer.\n\n</opt>\n\n<opt text=\"Answer two\" correct=\"true\">\n\nGood job!\n\n</opt>\n\n<opt text=\"Answer three\">\n\nThis is not correct either.\n\n</opt>\n</choice>\n\n</exercise>\n\n<exercise id=\"3\" title=\"First steps\">\n\nThis is a code exercise. The content can be formatted in simple Markdown – so\nyou can have **bold text**, `code` or [links](https://spacy.io) or lists, like\nthe one for the instructions below.\n\n- These are instructions and they can have bullet points.\n- The code block below will look for the files `exc_01_03`, `solution_01_03` and\n  `test_01_03` in `/exercises`.\n\n<codeblock id=\"01_03\">\n\nThis is a hint.\n\n</codeblock>\n\n</exercise>\n"
  },
  {
    "path": "chapters/chapter2.md",
    "content": "---\ntitle: 'Chapter 2: More stuff'\ndescription:\n  'This chapter will teach you even more stuff and help you learn some new\n  concepts.'\nprev: /chapter1\nnext: null\ntype: chapter\nid: 2\n---\n"
  },
  {
    "path": "exercises/exc_01_03.R",
    "content": "library(ggplot2)\n\nmtcars$gear <- factor(mtcars$gear,levels=c(3,4,5),\n  \tlabels=c(\"3gears\",\"4gears\",\"5gears\"))\nmtcars$am <- factor(mtcars$am,levels=c(0,1),\n  \tlabels=c(\"Automatic\",\"Manual\"))\nmtcars$cyl <- factor(mtcars$cyl,levels=c(4,6,8),\n   labels=c(\"4cyl\",\"6cyl\",\"8cyl\"))\n\n# Print the gear variable of mtcars\nprint(____)\n\n# Assign the length of mtcars to some_var\nsome_var <- ____\n\n# Uncomment this to see the plot\n# print(qplot(mpg, data=mtcars, geom=\"density\", fill=gear, alpha=I(.5)))\n"
  },
  {
    "path": "exercises/solution_01_03.R",
    "content": "library(ggplot2)\n\nmtcars$gear <- factor(mtcars$gear,levels=c(3,4,5),\n  \tlabels=c(\"3gears\",\"4gears\",\"5gears\"))\nmtcars$am <- factor(mtcars$am,levels=c(0,1),\n  \tlabels=c(\"Automatic\",\"Manual\"))\nmtcars$cyl <- factor(mtcars$cyl,levels=c(4,6,8),\n   labels=c(\"4cyl\",\"6cyl\",\"8cyl\"))\n\n# Print the gear variable of mtcars\nprint(mtcars$gear)\n\n# Assign the length of mtcars to some_var\nsome_var <- length(mtcars)\n\n# Uncomment this to see the plot\n# print(qplot(mpg, data=mtcars, geom=\"density\", fill=gear, alpha=I(.5)))\n"
  },
  {
    "path": "exercises/test_01_03.R",
    "content": "test <- function() {\n    # Here we can either check objects created in the solution code, or the\n    # string value of the solution, available as .solution. See the testTemplate\n    # in the meta.json for details.\n    if (some_var != length(mtcars)) {\n        stop(\"Are you getting the correct length?\")\n    }\n    if (!grepl(\"print(mtcars$gear)\", .solution, fixed = TRUE)) {\n        stop(\"Are you printing the correct variable?\")\n    }\n\n    # This function is defined in the testTemplate\n    success(\"Well done!\")\n}\n"
  },
  {
    "path": "gatsby-browser.js",
    "content": "import python from 'codemirror/mode/r/r' // eslint-disable-line no-unused-vars\n\n// This doesn't have to be here – but if we do import Juniper here, it's already\n// preloaded and cached when we dynamically import it in code.js.\nimport Juniper from './src/components/juniper' // eslint-disable-line no-unused-vars\n"
  },
  {
    "path": "gatsby-config.js",
    "content": "const meta = require('./meta.json')\nconst autoprefixer = require('autoprefixer')\n\nmodule.exports = {\n    siteMetadata: meta,\n    plugins: [\n        {\n            resolve: `gatsby-plugin-sass`,\n            options: {\n                indentedSyntax: true,\n                postCssPlugins: [autoprefixer()],\n                cssLoaderOptions: {\n                    localIdentName:\n                        process.env.NODE_ENV == 'development'\n                            ? '[name]-[local]-[hash:8]'\n                            : '[hash:8]',\n                },\n            },\n        },\n        `gatsby-plugin-react-helmet`,\n        {\n            resolve: `gatsby-source-filesystem`,\n            options: {\n                name: `chapters`,\n                path: `${__dirname}/chapters`,\n            },\n        },\n        {\n            resolve: `gatsby-source-filesystem`,\n            options: {\n                name: `slides`,\n                path: `${__dirname}/slides`,\n            },\n        },\n        {\n            resolve: `gatsby-source-filesystem`,\n            options: {\n                name: `exercises`,\n                path: `${__dirname}/exercises`,\n            },\n        },\n        {\n            resolve: 'gatsby-plugin-react-svg',\n            options: {\n                rule: {\n                    include: /static/,\n                },\n            },\n        },\n        {\n            resolve: `gatsby-transformer-remark`,\n            options: {\n                plugins: [\n                    `gatsby-remark-copy-linked-files`,\n                    {\n                        resolve: `gatsby-remark-prismjs`,\n                        options: {\n                            noInlineHighlight: true,\n                        },\n                    },\n                    {\n                        resolve: `gatsby-remark-smartypants`,\n                        options: {\n                            dashes: 'oldschool',\n                        },\n                    },\n                    {\n                        resolve: `gatsby-remark-images`,\n                        options: {\n                            maxWidth: 790,\n                            linkImagesToOriginal: true,\n                            sizeByPixelDensity: false,\n                            showCaptions: true,\n                            quality: 80,\n                            withWebp: { quality: 80 },\n                        },\n                    },\n                    `gatsby-remark-unwrap-images`,\n                ],\n            },\n        },\n        `gatsby-transformer-sharp`,\n        `gatsby-plugin-sharp`,\n        `gatsby-plugin-sitemap`,\n        {\n            resolve: `gatsby-plugin-manifest`,\n            options: {\n                name: meta.title,\n                short_name: meta.title,\n                start_url: `/`,\n                background_color: meta.theme,\n                theme_color: meta.theme,\n                display: `minimal-ui`,\n                icon: `static/icon.png`,\n            },\n        },\n        `gatsby-plugin-offline`,\n    ],\n}\n"
  },
  {
    "path": "gatsby-node.js",
    "content": "const path = require('path')\nconst { createFilePath } = require('gatsby-source-filesystem')\n\nconst chapterTemplate = path.resolve('src/templates/chapter.js')\n\nfunction replacePath(pagePath) {\n    return pagePath === `/` ? pagePath : pagePath.replace(/\\/$/, ``)\n}\n\nasync function onCreateNode({\n    node,\n    actions,\n    getNode,\n    loadNodeContent,\n    createNodeId,\n    createContentDigest,\n}) {\n    const { createNodeField, createNode, createParentChildLink } = actions\n    if (node.internal.type === 'MarkdownRemark') {\n        const slug = createFilePath({ node, getNode, basePath: 'chapters', trailingSlash: false })\n        createNodeField({ name: 'slug', node, value: slug })\n    } else if (node.extension === 'r') {\n        // Load the contents of the Python file and make it available via GraphQL\n        // https://www.gatsbyjs.org/docs/creating-a-transformer-plugin/\n        const content = await loadNodeContent(node)\n        const contentDigest = createContentDigest(content)\n        const id = createNodeId(`${node.id}-code`)\n        const internal = { type: 'Code', contentDigest }\n        const codeNode = {\n            id,\n            parent: node.id,\n            children: [],\n            code: content,\n            name: node.name,\n            internal,\n        }\n        createNode(codeNode)\n        createParentChildLink({ parent: node, child: codeNode })\n    }\n}\n\nexports.onCreateNode = onCreateNode\n\nexports.createPages = ({ actions, graphql }) => {\n    const { createPage } = actions\n    return graphql(`\n        {\n            allMarkdownRemark {\n                edges {\n                    node {\n                        frontmatter {\n                            title\n                            type\n                        }\n                        fields {\n                            slug\n                        }\n                    }\n                }\n            }\n        }\n    `).then(result => {\n        if (result.errors) {\n            return Promise.reject(result.errors)\n        }\n        const posts = result.data.allMarkdownRemark.edges.filter(\n            ({ node }) => node.frontmatter.type == 'chapter'\n        )\n        posts.forEach(({ node }) => {\n            createPage({\n                path: replacePath(node.fields.slug),\n                component: chapterTemplate,\n                context: { slug: node.fields.slug },\n            })\n        })\n    })\n}\n"
  },
  {
    "path": "meta.json",
    "content": "{\n    \"courseId\": \"course-starter-r\",\n    \"title\": \"My cool online course\",\n    \"slogan\": \"A free online course\",\n    \"description\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tristique libero at est congue, sed vestibulum tortor laoreet. Aenean egestas massa non commodo consequat. Curabitur faucibus, sapien vitae euismod imperdiet, arcu erat semper urna, in accumsan sapien dui ac mi. Pellentesque felis lorem, semper nec velit nec, consectetur placerat enim.\",\n    \"bio\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tristique libero at est congue, sed vestibulum tortor laoreet. Aenean egestas massa non commodo consequat. Curabitur faucibus, sapien vitae euismod imperdiet, arcu erat semper urna.\",\n    \"siteUrl\": \"https://course-starter-r.netlify.com\",\n    \"twitter\": \"spacy_io\",\n    \"fonts\": \"IBM+Plex+Mono:500|IBM+Plex+Sans:700|Lato:400,400i,700,700i\",\n    \"testTemplate\": \"success <- function(text) {\\n    cat(paste(\\\"\\\\033[32m\\\", text, \\\"\\\\033[0m\\\", sep = \\\"\\\"))\\n}\\n\\n.solution <- \\\"${solutionEscaped}\\\"\\n\\n${solution}\\n\\n${test}\\ntryCatch({\\n    test()\\n}, error = function(e) {\\n    cat(paste(\\\"\\\\033[31m\\\", e[1], \\\"\\\\033[0m\\\", sep = \\\"\\\"))\\n})\",\n    \"juniper\": {\n        \"repo\": \"ines/course-starter-r\",\n        \"branch\": \"binder\",\n        \"lang\": \"r\",\n        \"kernelType\": \"ir\",\n        \"debug\": false\n    },\n    \"showProfileImage\": true,\n    \"footerLinks\": [\n        { \"text\": \"Website\", \"url\": \"https://spacy.io\" },\n        { \"text\": \"Source\", \"url\": \"https://github.com/ines/course-starter-r\" },\n        { \"text\": \"Built with ♥\", \"url\": \"https://github.com/ines/course-starter-r\" }\n    ],\n    \"theme\": \"#de7878\"\n}\n"
  },
  {
    "path": "package.json",
    "content": "{\n    \"name\": \"course-starter-r\",\n    \"private\": true,\n    \"description\": \"Starter package to build interactive R courses\",\n    \"version\": \"0.0.1\",\n    \"author\": \"Ines Montani <ines@explosion.ai>\",\n    \"dependencies\": {\n        \"@illinois/react-use-local-storage\": \"^1.1.0\",\n        \"@jupyterlab/outputarea\": \"^0.19.1\",\n        \"@jupyterlab/rendermime\": \"^0.19.1\",\n        \"@phosphor/widgets\": \"^1.6.0\",\n        \"autoprefixer\": \"^9.4.7\",\n        \"classnames\": \"^2.2.6\",\n        \"codemirror\": \"^5.43.0\",\n        \"gatsby\": \"^2.1.4\",\n        \"gatsby-image\": \"^2.0.29\",\n        \"gatsby-plugin-manifest\": \"^2.0.17\",\n        \"gatsby-plugin-offline\": \"^2.0.23\",\n        \"gatsby-plugin-react-helmet\": \"^3.0.6\",\n        \"gatsby-plugin-react-svg\": \"^2.1.1\",\n        \"gatsby-plugin-sass\": \"^2.0.10\",\n        \"gatsby-plugin-sharp\": \"^2.0.29\",\n        \"gatsby-plugin-sitemap\": \"^2.0.5\",\n        \"gatsby-remark-copy-linked-files\": \"^2.0.9\",\n        \"gatsby-remark-images\": \"^3.0.4\",\n        \"gatsby-remark-prismjs\": \"^3.2.4\",\n        \"gatsby-remark-smartypants\": \"^2.0.8\",\n        \"gatsby-remark-unwrap-images\": \"^1.0.1\",\n        \"gatsby-source-filesystem\": \"^2.0.20\",\n        \"gatsby-transformer-remark\": \"^2.2.5\",\n        \"gatsby-transformer-sharp\": \"^2.1.17\",\n        \"juniper-js\": \"^0.1.0\",\n        \"node-sass\": \"^4.11.0\",\n        \"prismjs\": \"^1.15.0\",\n        \"react\": \"^16.8.2\",\n        \"react-dom\": \"^16.8.2\",\n        \"react-helmet\": \"^5.2.0\",\n        \"rehype-react\": \"^3.1.0\",\n        \"remark-react\": \"^5.0.1\",\n        \"reveal.js\": \"^3.8.0\"\n    },\n    \"scripts\": {\n        \"build\": \"gatsby build\",\n        \"dev\": \"gatsby develop\",\n        \"lint\": \"eslint **\",\n        \"clear\": \"rm -rf .cache\",\n        \"test\": \"echo \\\"Write tests! -> https://gatsby.app/unit-testing\\\"\"\n    },\n    \"devDependencies\": {\n        \"browser-monads\": \"^1.0.0\",\n        \"prettier\": \"^1.16.4\"\n    },\n    \"repository\": {\n        \"type\": \"git\",\n        \"url\": \"https://github.com/ines/course-starter-python\"\n    }\n}\n"
  },
  {
    "path": "slides/chapter1_01_introduction.md",
    "content": "---\ntype: slides\n---\n\n# Introduction\n\nNotes: Text at the end of a slide prefixed like this will be displayed as\nspeaker notes on the side. Slides can be separated with a divider: ---.\n\n---\n\n# This is a slide\n\n```r\n# Print something\nprint(\"Hello world\", quote = FALSE)\n```\n\n```out\nHello world\n```\n\n- Slides can have code, bullet points, tables and pretty much all other Markdown\n  elements.\n- This is another bullet point.\n\n<img src=\"profile.jpg\" alt=\"This image is in /static\" width=\"25%\">\n\nNotes: Some more notes go here\n\n---\n\n# Let's practice!\n\nNotes: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam tristique\nlibero at est congue, sed vestibulum tortor laoreet. Aenean egestas massa non\ncommodo consequat. Curabitur faucibus, sapien vitae euismod imperdiet, arcu erat\nsemper urna, in accumsan sapien dui ac mi. Pellentesque felis lorem, semper nec\nvelit nec, consectetur placerat enim.\n"
  },
  {
    "path": "src/components/button.js",
    "content": "import React from 'react'\nimport classNames from 'classnames'\n\nimport IconCheck from '../../static/icon_check.svg'\nimport classes from '../styles/button.module.sass'\n\nexport const Button = ({ Component = 'button', children, onClick, variant, small, className }) => {\n    const buttonClassNames = classNames(classes.root, className, {\n        [classes.primary]: variant === 'primary',\n        [classes.secondary]: variant === 'secondary',\n        [classes.small]: !!small,\n    })\n    return (\n        <Component className={buttonClassNames} onClick={onClick}>\n            {children}\n        </Component>\n    )\n}\n\nexport const CompleteButton = ({ completed, toggleComplete, small = true }) => {\n    const buttonClassNames = classNames({\n        [classes.completeInactive]: !completed,\n        [classes.completeActive]: completed,\n    })\n    return (\n        <Button small={small} onClick={toggleComplete} className={buttonClassNames}>\n            {!completed ? (\n                'Mark as completed'\n            ) : (\n                <>\n                    <IconCheck width={14} height={14} className={classes.completeIcon} />{' '}\n                    <span className={classes.completeLabel}>Completed</span>{' '}\n                    <span className={classes.completeLabelHover}>Remove from completed</span>\n                </>\n            )}\n        </Button>\n    )\n}\n"
  },
  {
    "path": "src/components/choice.js",
    "content": "import React, { useState, useCallback } from 'react'\nimport classNames from 'classnames'\n\nimport { Button } from './button'\nimport classes from '../styles/choice.module.sass'\n\nconst Choice = ({ id = '0', children = [] }) => {\n    const [selected, setSelected] = useState(null)\n    const [answer, setAnswer] = useState(null)\n    const handleAnswer = useCallback(() => setAnswer(selected), [selected])\n    const options = children.filter(child => child !== '\\n')\n    return (\n        <>\n            {options.map(({ key, props }, i) => (\n                <p key={key} className={classes.option}>\n                    <input\n                        className={classes.input}\n                        name={`choice-${id}`}\n                        id={`choice-${id}-${i}`}\n                        value={i}\n                        type=\"radio\"\n                        checked={selected === i}\n                        onChange={() => setSelected(i)}\n                    />\n                    <label\n                        className={classes.label}\n                        htmlFor={`choice-${id}-${i}`}\n                        dangerouslySetInnerHTML={{ __html: `<span>${props.text}</span>` }}\n                    />\n                </p>\n            ))}\n            <Button variant=\"primary\" onClick={handleAnswer}>\n                Submit\n            </Button>\n            {options.map(({ key, props }, i) => {\n                const isCorrect = !!props.correct\n                return answer === i ? (\n                    <div\n                        key={key}\n                        className={classNames(classes.answer, { [classes.correct]: isCorrect })}\n                    >\n                        <strong\n                            className={classNames(classes.answerLabel, {\n                                [classes.answerLabelCorrect]: isCorrect,\n                            })}\n                        >\n                            {isCorrect ? \"That's correct! \" : 'Incorrect. '}\n                        </strong>\n                        {props.children}\n                    </div>\n                ) : null\n            })}\n        </>\n    )\n}\n\nexport const Option = ({ children }) => {\n    return children\n}\n\nexport default Choice\n"
  },
  {
    "path": "src/components/code.js",
    "content": "import React from 'react'\nimport { StaticQuery, graphql } from 'gatsby'\n\nimport { Hint } from './hint'\nimport { Button } from './button'\n\nimport classes from '../styles/code.module.sass'\n\nfunction getFiles({ allCode }) {\n    return Object.assign(\n        {},\n        ...allCode.edges.map(({ node }) => ({\n            [node.name]: node.code,\n        }))\n    )\n}\n\nfunction makeTest(template, testFile, solution) {\n    // Escape quotation marks in the solution code, for cases where we\n    // can only place the solution in regular quotes.\n    const solutionEscaped = solution.replace(/\"/g, '\\\\\"')\n    return template\n        .replace(/\\${solutionEscaped}/g, solutionEscaped)\n        .replace(/\\${solution}/g, solution)\n        .replace(/\\${test}/g, testFile)\n}\n\nclass CodeBlock extends React.Component {\n    state = { Juniper: null, showSolution: false, key: 0 }\n\n    handleShowSolution() {\n        this.setState({ showSolution: true })\n    }\n\n    handleReset() {\n        // Using the key as a hack to force component to rerender\n        this.setState({ showSolution: false, key: this.state.key + 1 })\n    }\n\n    updateJuniper() {\n        // This type of stuff only really works in class components. I'm not\n        // sure why, but I've tried with function components and hooks lots of\n        // times and couldn't get it to work. So class component it is.\n        if (!this.state.Juniper) {\n            // We need a dynamic import here for SSR. Juniper's dependencies\n            // include references to the global window object and I haven't\n            // managed to fix this using webpack yet. If we imported Juniper\n            // at the top level, Gatsby won't build.\n            import('./juniper').then(Juniper => {\n                this.setState({ Juniper: Juniper.default })\n            })\n        }\n    }\n\n    componentDidMount() {\n        this.updateJuniper()\n    }\n\n    componentDidUpdate() {\n        this.updateJuniper()\n    }\n\n    render() {\n        const { Juniper, showSolution } = this.state\n        const { id, source, solution, test, children } = this.props\n        const sourceId = source || `exc_${id}`\n        const solutionId = solution || `solution_${id}`\n        const testId = test || `test_${id}`\n        const juniperClassNames = {\n            cell: classes.cell,\n            input: classes.input,\n            button: classes.button,\n            output: classes.output,\n        }\n        const hintActions = [\n            { text: 'Show solution', onClick: () => this.handleShowSolution() },\n            { text: 'Reset', onClick: () => this.handleReset() },\n        ]\n\n        return (\n            <StaticQuery\n                query={graphql`\n                    {\n                        site {\n                            siteMetadata {\n                                testTemplate\n                                juniper {\n                                    repo\n                                    branch\n                                    kernelType\n                                    lang\n                                    debug\n                                }\n                            }\n                        }\n                        allCode {\n                            edges {\n                                node {\n                                    name\n                                    code\n                                }\n                            }\n                        }\n                    }\n                `}\n                render={data => {\n                    const { testTemplate } = data.site.siteMetadata\n                    const { repo, branch, kernelType, debug, lang } = data.site.siteMetadata.juniper\n                    const files = getFiles(data)\n                    const sourceFile = files[sourceId]\n                    const solutionFile = files[solutionId]\n                    const testFile = files[testId]\n                    return (\n                        <div className={classes.root} key={this.state.key}>\n                            {Juniper && (\n                                <Juniper\n                                    msgButton={null}\n                                    classNames={juniperClassNames}\n                                    repo={repo}\n                                    branch={branch}\n                                    lang={lang}\n                                    kernelType={kernelType}\n                                    debug={debug}\n                                    actions={({ runCode }) => (\n                                        <>\n                                            <Button onClick={() => runCode()}>Run Code</Button>\n                                            {testFile && (\n                                                <Button\n                                                    variant=\"primary\"\n                                                    onClick={() =>\n                                                        runCode(value =>\n                                                            makeTest(testTemplate, testFile, value)\n                                                        )\n                                                    }\n                                                >\n                                                    Submit\n                                                </Button>\n                                            )}\n                                        </>\n                                    )}\n                                >\n                                    {showSolution ? solutionFile : sourceFile}\n                                </Juniper>\n                            )}\n                            <Hint actions={hintActions}>{children}</Hint>\n                        </div>\n                    )\n                }}\n            />\n        )\n    }\n}\n\nexport default CodeBlock\n"
  },
  {
    "path": "src/components/exercise.js",
    "content": "import React, { useRef, useCallback, useContext, useEffect } from 'react'\nimport classNames from 'classnames'\n\nimport { Button, CompleteButton } from './button'\nimport { ChapterContext } from '../context'\nimport IconSlides from '../../static/icon_slides.svg'\nimport classes from '../styles/exercise.module.sass'\n\nconst Exercise = ({ id, title, type, children }) => {\n    const excRef = useRef()\n    const excId = parseInt(id)\n    const { activeExc, setActiveExc, completed, setCompleted } = useContext(ChapterContext)\n    const isExpanded = activeExc === excId\n    const isCompleted = completed.includes(excId)\n    useEffect(() => {\n        if (isExpanded && excRef.current) {\n            excRef.current.scrollIntoView()\n        }\n    }, [isExpanded])\n    const handleExpand = useCallback(() => setActiveExc(isExpanded ? null : excId), [\n        isExpanded,\n        excId,\n    ])\n    const handleNext = useCallback(() => setActiveExc(excId + 1))\n    const handleSetCompleted = useCallback(() => {\n        const newCompleted = isCompleted\n            ? completed.filter(v => v !== excId)\n            : [...completed, excId]\n        setCompleted(newCompleted)\n    }, [isCompleted, completed, excId])\n    const rootClassNames = classNames(classes.root, {\n        [classes.expanded]: isExpanded,\n        [classes.wide]: isExpanded && type === 'slides',\n        [classes.completed]: !isExpanded && isCompleted,\n    })\n    const titleClassNames = classNames(classes.title, {\n        [classes.titleExpanded]: isExpanded,\n    })\n    return (\n        <section ref={excRef} id={id} className={rootClassNames}>\n            <h2 className={titleClassNames} onClick={handleExpand}>\n                <span>\n                    <span\n                        className={classNames(classes.id, { [classes.idCompleted]: isCompleted })}\n                    >\n                        {excId}\n                    </span>\n                    {title}\n                </span>\n                {type === 'slides' && <IconSlides className={classes.icon} />}\n            </h2>\n            {isExpanded && (\n                <div>\n                    {children}\n                    <footer className={classes.footer}>\n                        <CompleteButton\n                            completed={isCompleted}\n                            toggleComplete={handleSetCompleted}\n                        />\n                        <Button onClick={handleNext} variant=\"secondary\" small>\n                            Next\n                        </Button>\n                    </footer>\n                </div>\n            )}\n        </section>\n    )\n}\n\nexport default Exercise\n"
  },
  {
    "path": "src/components/hint.js",
    "content": "import React, { useState, useCallback } from 'react'\n\nimport classes from '../styles/hint.module.sass'\n\nexport const Hint = ({ expanded = false, actions = [], children }) => {\n    const [isExpanded, setIsExpanded] = useState(expanded)\n    const handleExpand = useCallback(() => setIsExpanded(!isExpanded), [isExpanded])\n    return (\n        <aside className={classes.root}>\n            {isExpanded && children && <div className={classes.content}>{children}</div>}\n            <menu className={classes.actions}>\n                {children && (\n                    <button className={classes.label} onClick={handleExpand}>\n                        {isExpanded ? 'Hide hints' : 'Show hints'}\n                    </button>\n                )}\n                {actions.map(({ text, onClick }, i) => (\n                    <button className={classes.label} key={i} onClick={onClick}>\n                        {text}\n                    </button>\n                ))}\n            </menu>\n        </aside>\n    )\n}\n"
  },
  {
    "path": "src/components/juniper.js",
    "content": "import React from 'react'\nimport PropTypes from 'prop-types'\nimport CodeMirror from 'codemirror'\nimport { Widget } from '@phosphor/widgets'\nimport { Kernel, ServerConnection } from '@jupyterlab/services'\nimport { OutputArea, OutputAreaModel } from '@jupyterlab/outputarea'\nimport { RenderMimeRegistry, standardRendererFactories } from '@jupyterlab/rendermime'\nimport { window } from 'browser-monads'\n\nclass Juniper extends React.Component {\n    outputRef = null\n    inputRef = null\n    state = { content: null, cm: null, kernel: null, renderers: null, fromStorage: null }\n\n    static defaultProps = {\n        children: '',\n        branch: 'master',\n        url: 'https://mybinder.org',\n        serverSettings: {},\n        kernelType: 'python3',\n        lang: 'python',\n        theme: 'default',\n        isolateCells: true,\n        useBinder: true,\n        storageKey: 'juniper',\n        useStorage: true,\n        storageExpire: 60,\n        debug: true,\n        msgButton: 'run',\n        msgLoading: 'Loading...',\n        msgError: 'Connecting failed. Please reload and try again.',\n        classNames: {\n            cell: 'juniper-cell',\n            input: 'juniper-input',\n            button: 'juniper-button',\n            output: 'juniper-output',\n        },\n    }\n\n    static propTypes = {\n        children: PropTypes.string,\n        repo: PropTypes.string.isRequired,\n        branch: PropTypes.string,\n        url: PropTypes.string,\n        serverSettings: PropTypes.object,\n        kernelType: PropTypes.string,\n        lang: PropTypes.string,\n        theme: PropTypes.string,\n        isolateCells: PropTypes.bool,\n        useBinder: PropTypes.bool,\n        useStorage: PropTypes.bool,\n        storageExpire: PropTypes.number,\n        msgButton: PropTypes.string,\n        msgLoading: PropTypes.string,\n        msgError: PropTypes.string,\n        classNames: PropTypes.shape({\n            cell: PropTypes.string,\n            input: PropTypes.string,\n            button: PropTypes.string,\n            output: PropTypes.string,\n        }),\n        actions: PropTypes.func,\n    }\n\n    componentDidMount() {\n        this.setState({ content: this.props.children })\n        const renderers = standardRendererFactories.filter(factory =>\n            factory.mimeTypes.includes('text/latex') ? window.MathJax : true\n        )\n\n        const outputArea = new OutputArea({\n            model: new OutputAreaModel({ trusted: true }),\n            rendermime: new RenderMimeRegistry({ initialFactories: renderers }),\n        })\n\n        const cm = new CodeMirror(this.inputRef, {\n            value: this.props.children.trim(),\n            mode: this.props.lang,\n            theme: this.props.theme,\n        })\n        this.setState({ cm })\n\n        const runCode = wrapper => {\n            const value = cm.getValue()\n            this.execute(outputArea, wrapper ? wrapper(value) : value)\n        }\n        const setValue = value => cm.setValue(value)\n        cm.setOption('extraKeys', { 'Shift-Enter': runCode })\n        Widget.attach(outputArea, this.outputRef)\n        this.setState({ runCode, setValue })\n    }\n\n    log(logFunction) {\n        if (this.props.debug) {\n            logFunction()\n        }\n    }\n\n    componentWillReceiveProps({ children }) {\n        if (children !== this.state.content && this.state.cm) {\n            this.state.cm.setValue(children.trim())\n        }\n    }\n\n    /**\n     * Request a binder, e.g. from mybinder.org\n     * @param {string} repo - Repository name in the format 'user/repo'.\n     * @param {string} branch - The repository branch, e.g. 'master'.\n     * @param {string} url - The binder reployment URL, including 'http(s)'.\n     * @returns {Promise} - Resolved with Binder settings, rejected with Error.\n     */\n    requestBinder(repo, branch, url) {\n        const binderUrl = `${url}/build/gh/${repo}/${branch}`\n        this.log(() => console.info('building', { binderUrl }))\n        return new Promise((resolve, reject) => {\n            const es = new EventSource(binderUrl)\n            es.onerror = err => {\n                es.close()\n                this.log(() => console.error('failed'))\n                reject(new Error(err))\n            }\n            let phase = null\n            es.onmessage = ({ data }) => {\n                const msg = JSON.parse(data)\n                if (msg.phase && msg.phase !== phase) {\n                    phase = msg.phase.toLowerCase()\n                    this.log(() => console.info(phase === 'ready' ? 'server-ready' : phase))\n                }\n                if (msg.phase === 'failed') {\n                    es.close()\n                    reject(new Error(msg))\n                } else if (msg.phase === 'ready') {\n                    es.close()\n                    const settings = {\n                        baseUrl: msg.url,\n                        wsUrl: `ws${msg.url.slice(4)}`,\n                        token: msg.token,\n                    }\n                    resolve(settings)\n                }\n            }\n        })\n    }\n\n    /**\n     * Request kernel and estabish a server connection via the JupyerLab service\n     * @param {object} settings - The server settings.\n     * @returns {Promise} - A promise that's resolved with the kernel.\n     */\n    requestKernel(settings) {\n        if (this.props.useStorage) {\n            const timestamp = new Date().getTime() + this.props.storageExpire * 60 * 1000\n            const json = JSON.stringify({ settings, timestamp })\n            window.localStorage.setItem(this.props.storageKey, json)\n        }\n        const serverSettings = ServerConnection.makeSettings(settings)\n        return Kernel.startNew({\n            type: this.props.kernelType,\n            name: this.props.kernelType,\n            serverSettings,\n        }).then(kernel => {\n            this.log(() => console.info('ready'))\n            return kernel\n        })\n    }\n\n    /**\n     * Get a kernel by requesting a binder or from localStorage / user settings\n     * @returns {Promise}\n     */\n    getKernel() {\n        if (this.props.useStorage) {\n            const stored = window.localStorage.getItem(this.props.storageKey)\n            if (stored) {\n                this.setState({ fromStorage: true })\n                const { settings, timestamp } = JSON.parse(stored)\n                if (timestamp && new Date().getTime() < timestamp) {\n                    return this.requestKernel(settings)\n                }\n                window.localStorage.removeItem(this.props.storageKey)\n            }\n        }\n        if (this.props.useBinder) {\n            return this.requestBinder(this.props.repo, this.props.branch, this.props.url).then(\n                settings => this.requestKernel(settings)\n            )\n        }\n        return this.requestKernel(this.props.serverSettings)\n    }\n\n    /**\n     * Render the kernel response in a JupyterLab output area\n     * @param {OutputArea} outputArea - The cell's output area.\n     * @param {string} code - The code to execute.\n     */\n    renderResponse(outputArea, code) {\n        outputArea.future = this.state.kernel.requestExecute({ code })\n        outputArea.model.add({\n            output_type: 'stream',\n            name: 'loading',\n            text: this.props.msgLoading,\n        })\n        outputArea.model.clear(true)\n    }\n\n    /**\n     * Process request to execute the code\n     * @param {OutputArea} - outputArea - The cell's output area.\n     * @param {string} code - The code to execute.\n     */\n    execute(outputArea, code) {\n        this.log(() => console.info('executing'))\n        if (this.state.kernel) {\n            if (this.props.isolateCells) {\n                this.state.kernel\n                    .restart()\n                    .then(() => this.renderResponse(outputArea, code))\n                    .catch(() => {\n                        this.log(() => console.error('failed'))\n                        this.setState({ kernel: null })\n                        outputArea.model.clear()\n                        outputArea.model.add({\n                            output_type: 'stream',\n                            name: 'failure',\n                            text: this.props.msgError,\n                        })\n                    })\n                return\n            }\n            this.renderResponse(outputArea, code)\n            return\n        }\n        this.log(() => console.info('requesting kernel'))\n        const url = this.props.url.split('//')[1]\n        const action = !this.state.fromStorage ? 'Launching' : 'Reconnecting to'\n        outputArea.model.clear()\n        outputArea.model.add({\n            output_type: 'stream',\n            name: 'stdout',\n            text: `${action} Docker container on ${url}...`,\n        })\n        new Promise((resolve, reject) =>\n            this.getKernel()\n                .then(resolve)\n                .catch(reject)\n        )\n            .then(kernel => {\n                this.setState({ kernel })\n                this.renderResponse(outputArea, code)\n            })\n            .catch(() => {\n                this.log(() => console.error('failed'))\n                this.setState({ kernel: null })\n                if (this.props.useStorage) {\n                    this.setState({ fromStorage: false })\n                    window.localStorage.removeItem(this.props.storageKey)\n                }\n                outputArea.model.clear()\n                outputArea.model.add({\n                    output_type: 'stream',\n                    name: 'failure',\n                    text: this.props.msgError,\n                })\n            })\n    }\n\n    render() {\n        return (\n            <div className={this.props.classNames.cell}>\n                <div\n                    className={this.props.classNames.input}\n                    ref={x => {\n                        this.inputRef = x\n                    }}\n                />\n                {this.props.msgButton && (\n                    <button className={this.props.classNames.button} onClick={this.state.runCode}>\n                        {this.props.msgButton}\n                    </button>\n                )}\n                {this.props.actions && this.props.actions(this.state)}\n                <div\n                    ref={x => {\n                        this.outputRef = x\n                    }}\n                    className={this.props.classNames.output}\n                />\n            </div>\n        )\n    }\n}\n\nexport default Juniper\n"
  },
  {
    "path": "src/components/layout.js",
    "content": "import React from 'react'\nimport { StaticQuery, graphql } from 'gatsby'\n\nimport SEO from './seo'\nimport { Link } from './link'\nimport { H3 } from './typography'\nimport Logo from '../../static/logo.svg'\n\nimport '../styles/index.sass'\nimport classes from '../styles/layout.module.sass'\n\nconst Layout = ({ isHome, title, description, children }) => {\n    return (\n        <StaticQuery\n            query={graphql`\n                {\n                    site {\n                        siteMetadata {\n                            title\n                            description\n                            bio\n                            showProfileImage\n                            footerLinks {\n                                text\n                                url\n                            }\n                        }\n                    }\n                }\n            `}\n            render={data => {\n                const meta = data.site.siteMetadata\n                return (\n                    <>\n                        <SEO title={title} description={description} />\n                        <main className={classes.root}>\n                            {!isHome && (\n                                <h1 className={classes.logo}>\n                                    <Link hidden to=\"/\">\n                                        <Logo width={150} height={54} aria-label={meta.title} />\n                                    </Link>\n                                </h1>\n                            )}\n                            <div className={classes.content}>\n                                {(title || description) && (\n                                    <header className={classes.header}>\n                                        {title && <h1 className={classes.title}>{title}</h1>}\n                                        {description && (\n                                            <p className={classes.description}>{description}</p>\n                                        )}\n                                    </header>\n                                )}\n                                {children}\n                            </div>\n\n                            <footer className={classes.footer}>\n                                <div className={classes.footerContent}>\n                                    <section className={classes.footerSection}>\n                                        <H3>About this course</H3>\n                                        <p>{meta.description}</p>\n                                    </section>\n\n                                    <section className={classes.footerSection}>\n                                        <H3>About me</H3>\n                                        {meta.showProfileImage && (\n                                            <img\n                                                src=\"/profile.jpg\"\n                                                alt=\"\"\n                                                className={classes.profile}\n                                            />\n                                        )}\n                                        <p>{meta.bio}</p>\n                                    </section>\n\n                                    {meta.footerLinks && (\n                                        <ul className={classes.footerLinks}>\n                                            {meta.footerLinks.map(({ text, url }, i) => (\n                                                <li key={i} className={classes.footerLink}>\n                                                    <Link variant=\"secondary\" to={url}>\n                                                        {text}\n                                                    </Link>\n                                                </li>\n                                            ))}\n                                        </ul>\n                                    )}\n                                </div>\n                            </footer>\n                        </main>\n                    </>\n                )\n            }}\n        />\n    )\n}\n\nexport default Layout\n"
  },
  {
    "path": "src/components/link.js",
    "content": "import React from 'react'\nimport PropTypes from 'prop-types'\nimport { Link as GatsbyLink } from 'gatsby'\nimport classNames from 'classnames'\n\nimport classes from '../styles/link.module.sass'\n\nexport const Link = ({ children, to, href, onClick, variant, hidden, className, ...other }) => {\n    const dest = to || href\n    const external = /(http(s?)):\\/\\//gi.test(dest)\n    const linkClassNames = classNames(classes.root, className, {\n        [classes.hidden]: hidden,\n        [classes.secondary]: variant === 'secondary',\n    })\n\n    if (!external) {\n        if ((dest && /^#/.test(dest)) || onClick) {\n            return (\n                <a href={dest} onClick={onClick} className={linkClassNames}>\n                    {children}\n                </a>\n            )\n        }\n        return (\n            <GatsbyLink to={dest} className={linkClassNames} {...other}>\n                {children}\n            </GatsbyLink>\n        )\n    }\n    return (\n        <a\n            href={dest}\n            className={linkClassNames}\n            target=\"_blank\"\n            rel=\"noopener nofollow noreferrer\"\n            {...other}\n        >\n            {children}\n        </a>\n    )\n}\n\nLink.propTypes = {\n    children: PropTypes.node.isRequired,\n    to: PropTypes.string,\n    href: PropTypes.string,\n    onClick: PropTypes.func,\n    variant: PropTypes.oneOf(['secondary', null]),\n    hidden: PropTypes.bool,\n    className: PropTypes.string,\n}\n"
  },
  {
    "path": "src/components/seo.js",
    "content": "import React from 'react'\nimport Helmet from 'react-helmet'\nimport { StaticQuery, graphql } from 'gatsby'\n\nconst SEO = ({ title, description }) => (\n    <StaticQuery\n        query={query}\n        render={data => {\n            const lang = 'en'\n            const siteMetadata = data.site.siteMetadata\n            const pageTitle = title\n                ? `${title} · ${siteMetadata.title}`\n                : `${siteMetadata.title} · ${siteMetadata.slogan}`\n            const pageDesc = description || siteMetadata.description\n            const image = `${siteMetadata.siteUrl}/social.jpg`\n            const meta = [\n                {\n                    name: 'description',\n                    content: pageDesc,\n                },\n                {\n                    property: 'og:title',\n                    content: pageTitle,\n                },\n                {\n                    property: 'og:description',\n                    content: pageDesc,\n                },\n                {\n                    property: 'og:type',\n                    content: `website`,\n                },\n                {\n                    property: 'og:site_name',\n                    content: siteMetadata.title,\n                },\n                {\n                    property: 'og:image',\n                    content: image,\n                },\n                {\n                    name: 'twitter:card',\n                    content: 'summary_large_image',\n                },\n                {\n                    name: 'twitter:image',\n                    content: image,\n                },\n                {\n                    name: 'twitter:creator',\n                    content: `@${siteMetadata.twitter}`,\n                },\n                {\n                    name: 'twitter:site',\n                    content: `@${siteMetadata.twitter}`,\n                },\n                {\n                    name: 'twitter:title',\n                    content: pageTitle,\n                },\n                {\n                    name: 'twitter:description',\n                    content: pageDesc,\n                },\n            ]\n\n            return (\n                <Helmet defer={false} htmlAttributes={{ lang }} title={pageTitle} meta={meta}>\n                    {siteMetadata.fonts && (\n                        <link\n                            href={`https://fonts.googleapis.com/css?family=${siteMetadata.fonts}`}\n                            rel=\"stylesheet\"\n                        />\n                    )}\n                </Helmet>\n            )\n        }}\n    />\n)\n\nexport default SEO\n\nconst query = graphql`\n    query DefaultSEOQuery {\n        site {\n            siteMetadata {\n                title\n                description\n                slogan\n                siteUrl\n                twitter\n                fonts\n            }\n        }\n    }\n`\n"
  },
  {
    "path": "src/components/slides.js",
    "content": "import React from 'react'\nimport { StaticQuery, graphql } from 'gatsby'\nimport Marked from 'reveal.js/plugin/markdown/marked.js'\nimport classNames from 'classnames'\n\nimport '../styles/reveal.css'\nimport classes from '../styles/slides.module.sass'\n\nfunction getFiles({ allMarkdownRemark }) {\n    return Object.assign(\n        {},\n        ...allMarkdownRemark.edges.map(({ node }) => ({\n            [node.fields.slug.replace('/', '')]: node.rawMarkdownBody,\n        }))\n    )\n}\n\nfunction getSlideContent(data, source) {\n    const files = getFiles(data)\n    const file = files[source] || ''\n    return file.split('\\n---\\n').map(f => f.trim())\n}\n\nclass Slides extends React.Component {\n    componentDidMount() {\n        import('reveal.js').then(({ default: Reveal }) => {\n            window.Reveal = Reveal\n            window.marked = Marked\n            import('reveal.js/plugin/markdown/markdown.js').then(({ RevealMarkdown }) => {\n                RevealMarkdown.init()\n                Reveal.initialize({\n                    center: false,\n                    progress: false,\n                    showNotes: true,\n                    controls: true,\n                    width: '100%',\n                    height: 600,\n                    minScale: 0.75,\n                    maxScale: 1,\n                })\n            })\n        })\n    }\n\n    componentWillUnmount() {\n        // Work around default reveal.js behaviour that doesn't allow\n        // re-initialization and clashes with React\n        delete window.Reveal\n        delete window.marked\n        delete require.cache[require.resolve('reveal.js')]\n        delete require.cache[require.resolve('reveal.js/plugin/markdown/markdown.js')]\n    }\n\n    render() {\n        const { source } = this.props\n        const revealClassNames = classNames('reveal', 'show-notes', classes.reveal)\n        const slideClassNames = classNames('slides', classes.slides)\n\n        return (\n            <div className={classes.root}>\n                <div className={revealClassNames}>\n                    <StaticQuery\n                        query={graphql`\n                            {\n                                allMarkdownRemark(\n                                    filter: { frontmatter: { type: { eq: \"slides\" } } }\n                                ) {\n                                    edges {\n                                        node {\n                                            rawMarkdownBody\n                                            fields {\n                                                slug\n                                            }\n                                        }\n                                    }\n                                }\n                            }\n                        `}\n                        render={data => {\n                            const content = getSlideContent(data, source)\n                            return (\n                                <div className={slideClassNames}>\n                                    {content.map((markdown, i) => (\n                                        <section\n                                            key={i}\n                                            data-markdown=\"\"\n                                            data-separator-notes=\"^Notes:\"\n                                        >\n                                            <textarea data-template defaultValue={markdown} />\n                                        </section>\n                                    ))}\n                                </div>\n                            )\n                        }}\n                    />\n                </div>\n            </div>\n        )\n    }\n}\n\nexport default Slides\n"
  },
  {
    "path": "src/components/typography.js",
    "content": "import React from 'react'\n\nimport classes from '../styles/typography.module.sass'\n\nexport const H3 = ({ children }) => <h3 className={classes.h3}>{children}</h3>\nexport const Hr = () => <hr className={classes.hr} />\nexport const InlineCode = ({ children }) => <code className={classes.code}>{children}</code>\n\nexport const Ol = ({ children }) => <ol className={classes.ol}>{children}</ol>\nexport const Ul = ({ children }) => <ul className={classes.ul}>{children}</ul>\nexport const Li = ({ children }) => <li className={classes.li}>{children}</li>\n"
  },
  {
    "path": "src/context.js",
    "content": "import React from 'react'\n\nexport const ChapterContext = React.createContext()\n"
  },
  {
    "path": "src/markdown.js",
    "content": "import React from 'react'\nimport rehypeReact from 'rehype-react'\n\nimport Exercise from './components/exercise'\nimport CodeBlock from './components/code'\nimport { Link } from './components/link'\nimport Slides from './components/slides'\nimport Choice, { Option } from './components/choice'\nimport { H3, Hr, Ol, Ul, Li, InlineCode } from './components/typography'\n\nexport const renderAst = new rehypeReact({\n    createElement: React.createElement,\n    components: {\n        exercise: Exercise,\n        slides: Slides,\n        codeblock: CodeBlock,\n        choice: Choice,\n        opt: Option,\n        a: Link,\n        hr: Hr,\n        h3: H3,\n        ol: Ol,\n        ul: Ul,\n        li: Li,\n        code: InlineCode,\n    },\n}).Compiler\n"
  },
  {
    "path": "src/pages/index.js",
    "content": "import React from 'react'\nimport { graphql } from 'gatsby'\n\nimport Layout from '../components/layout'\nimport { Link } from '../components/link'\nimport Logo from '../../static/logo.svg'\n\nimport classes from '../styles/index.module.sass'\n\nexport default ({ data }) => {\n    const siteMetadata = data.site.siteMetadata\n    const chapters = data.allMarkdownRemark.edges.map(({ node }) => ({\n        slug: node.fields.slug,\n        title: node.frontmatter.title,\n        description: node.frontmatter.description,\n    }))\n    return (\n        <Layout isHome>\n            <Logo className={classes.logo} aria-label={siteMetadata.title} />\n            {chapters.map(({ slug, title, description }) => (\n                <section key={slug} className={classes.chapter}>\n                    <h2 className={classes.chapterTitle}>\n                        <Link hidden to={slug}>\n                            {title}\n                        </Link>\n                    </h2>\n                    <p className={classes.chapterDesc}>\n                        <Link hidden to={slug}>\n                            {description}\n                        </Link>\n                    </p>\n                </section>\n            ))}\n        </Layout>\n    )\n}\n\nexport const pageQuery = graphql`\n    {\n        site {\n            siteMetadata {\n                title\n            }\n        }\n        allMarkdownRemark(\n            sort: { fields: [frontmatter___title], order: ASC }\n            filter: { frontmatter: { type: { eq: \"chapter\" } } }\n        ) {\n            edges {\n                node {\n                    fields {\n                        slug\n                    }\n                    frontmatter {\n                        title\n                        description\n                    }\n                }\n            }\n        }\n    }\n`\n"
  },
  {
    "path": "src/styles/button.module.sass",
    "content": ".root\n    border: 0\n    background: var(--color-button-secondary)\n    color: var(--color-button-secondary-contrast)\n    padding: 0.75rem 1rem\n    font-family: var(--font-primary)\n    font-size: var(--font-size-sm)\n    font-weight: bold\n    border-radius: var(--border-radius)\n    margin-top: 3rem\n    margin-bottom: 2.25rem\n    margin-left: 2.5rem\n    transition: opacity 0.2s ease\n    box-shadow: 0 0 3px var(--color-subtle-medium)\n\n    &:hover\n        opacity: 0.9\n        box-shadow: none\n\n.primary\n    background: var(--color-button-primary)\n    color: var(--color-button-primary-contrast)\n\n.secondary\n    background: var(--color-theme)\n    color: var(--color-theme-contrast)\n\n.small\n    padding: 0.75rem 1rem\n    margin: 0\n    font-size: var(--font-size-sm)\n\n    &:not(:last-child)\n        margin-right: 1rem\n\n.complete-icon\n    position: relative\n    top: 0.15rem\n    margin-right: 0.5rem\n\n.complete-inactive\n    &:hover\n        opacity: 1\n        background: var(--color-button-primary)\n        color: var(--color-button-primary-contrast)\n\n.complete-active\n    background: var(--color-button-primary)\n    color: var(--color-button-primary-contrast)\n\n    &:hover\n        opacity: 1\n        background: var(--color-button-danger)\n        color: var(--color-button-danger-contrast)\n\n.complete-label\n    .root:hover &\n        display: none\n\n.complete-label-hover\n    display: none\n\n    .root:hover &\n        display: inline\n"
  },
  {
    "path": "src/styles/chapter.module.sass",
    "content": ".pagination\n    max-width: 100%\n    width: var(--width-container)\n    margin: 4rem auto 0\n    display: flex\n    justify-content: space-between\n"
  },
  {
    "path": "src/styles/choice.module.sass",
    "content": ".option\n    margin-bottom: 0.5rem\n    margin-left: 1rem\n\n.input\n    display: none\n\n.label\n    cursor: pointer\n    display: flex\n    align-items: flex-start\n\n    &:before\n        content: \"\"\n        flex: 0 0 20px\n        width: 20px\n        height: 20px\n        display: inline-block\n        border: 2px solid var(--color-theme)\n        border-radius: 50%\n        margin-right: 1rem\n        margin-top: 0.5rem\n\n    input[type=\"radio\"]:checked + &:before\n        border-width: 7px\n\n.answer\n    padding: 2rem\n    border-radius: var(--border-radius)\n    background: var(--color-incorrect-light)\n    margin-bottom: 2rem\n\n    p\n        margin-bottom: 0\n        display: inline\n\n.correct\n    background: var(--color-correct-light)\n\n.answer-label\n    color: var(--color-incorrect-dark)\n\n.answer-label-correct\n    color: var(--color-correct-dark)\n"
  },
  {
    "path": "src/styles/code.module.sass",
    "content": ".root\n    margin-left: -2rem\n    width: calc(100% + 4rem)\n    margin-bottom: 5rem\n\n.cell\n    background: var(--syntax-background)\n    border-top: 1px solid var(--color-subtle-medium)\n\n    & > div:first-child\n        padding: 1.5rem 2rem 1rem\n        position: relative\n\n        &:before\n            content: \"Input\"\n            display: inline-block\n            border-radius: var(--border-radius)\n            color: var(--syntax-background)\n            background: var(--syntax-text)\n            padding: 0 0.5rem\n            position: absolute\n            top: 1rem\n            right: 1.5rem\n            font-size: var(--font-size-xs)\n            font-weight: bold\n            text-transform: uppercase\n            z-index: 5\n\n.output\n    padding: 2rem 9rem 2rem 3rem\n    background: var(--syntax-text)\n    color: var(--syntax-background)\n    position: relative\n\n    &:before\n        content: \"Output\"\n        display: inline-block\n        border-radius: var(--border-radius)\n        background: var(--syntax-background)\n        color: var(--syntax-text)\n        padding: 0 0.5rem\n        position: absolute\n        top: 1rem\n        right: 1.5rem\n        font-size: var(--font-size-xs)\n        font-weight: bold\n        text-transform: uppercase\n"
  },
  {
    "path": "src/styles/exercise.module.sass",
    "content": ".root\n    width: var(--width-container)\n    max-width: 100%\n    padding: 1rem 2rem\n    border: 1px solid var(--color-subtle-medium)\n    border-radius: var(--border-radius)\n    margin: 0 auto 2rem\n    position: relative\n    background: var(--color-back)\n\n.wide\n    width: 95%\n\n.expanded\n    box-shadow: 0 0 10px var(--color-subtle-medium)\n\n.completed\n    color: var(--color-subtle-dark)\n    background: var(--color-subtle-light)\n\n.title\n    cursor: pointer\n    user-select: none\n    font-size: var(--font-size-lg)\n    font-family: var(--font-display)\n\n.id\n    background: var(--color-theme)\n    color: var(--color-theme-contrast)\n    font-size: 0.8em\n    width: 1.75em\n    height: 1.75em\n    display: inline-flex\n    border-radius: 50%\n    justify-content: center\n    align-items: center\n    margin-right: 1rem\n\n.id-completed\n    background: var(--color-button-primary)\n    color: var(--color-button-primary-contrast)\n\n.title-expanded\n    margin-bottom: 3rem\n\n.icon\n    float: right\n    vertical-align: middle\n    margin-right: 0.5rem\n\n.content\n    visibility: hidden\n    height: 0\n    opacity: 0\n    z-index: 0\n    overflow: hidden\n\n.footer\n    width: 100%\n    text-align: right\n    margin-top: 1rem\n    margin-bottom: 1rem\n\n.button\n    cursor: pointer\n    border: 0\n    background: var(--color-theme)\n    color: var(--color-theme-contrast)\n    padding: 0.75rem 1rem\n    font-family: var(--font-primary)\n    font-size: var(--font-size-sm)\n    font-weight: bold\n    border-radius: var(--border-radius)\n"
  },
  {
    "path": "src/styles/hint.module.sass",
    "content": ".root\n    width: 100%\n\n.actions\n    padding-left: 2rem\n\n.label\n    cursor: pointer\n    background: var(--color-subtle-light)\n    border-width: 0 1px 1px 1px\n    border-style: solid\n    border-color: var(--color-subtle-medium)\n    padding: 0.5rem 1rem 0.5rem\n    border-bottom-left-radius: var(--border-radius)\n    border-bottom-right-radius: var(--border-radius)\n    font-family: var(--font-primary)\n    font-size: var(--font-size-sm)\n    font-weight: bold\n    margin-right: 1rem\n\n.content\n    background: var(--color-subtle-light)\n    padding: 1rem 2rem\n    font-size: var(--font-size-sm)\n    border-bottom: 1px solid var(--color-subtle-medium)\n\n    p, ol, ul\n        margin-bottom: 0\n"
  },
  {
    "path": "src/styles/index.module.sass",
    "content": ".logo\n    width: 300px\n    height: auto\n    max-width: 100%\n    margin: 0 auto 6rem\n    display: block\n    color: var(--color-theme)\n\n.chapter\n    width: var(--width-container)\n    max-width: 100%\n    margin: 0 auto\n    padding: 2rem\n    border: 1px solid var(--color-subtle-medium)\n    border-radius: var(--border-radius)\n    margin-bottom: 2rem\n\n.chapter-title\n    font-family: var(--font-display)\n    font-size: var(--font-size-lg)\n    margin-bottom: 1.5rem\n\n.chapter-desc\n    font-size: var(--font-size-sm)\n    color: var(--color-subtle-dark)\n    margin-bottom: 0\n"
  },
  {
    "path": "src/styles/index.sass",
    "content": "@import '../../theme'\n\n/* Reset */\n\n*, *:before, *:after\n    box-sizing: border-box\n    padding: 0\n    margin: 0\n    border: 0\n    outline: 0\n\nhtml\n    font-family: sans-serif\n    text-rendering: optimizeSpeed\n    -ms-text-size-adjust: 100%\n    -webkit-text-size-adjust: 100%\n\nbody\n    margin: 0\n\narticle, aside, details, figcaption, figure, footer, header, main, menu, nav,\nsection, summary, progress\n    display: block\n\na\n    background-color: transparent\n    color: inherit\n    text-decoration: none\n\n    &:active,\n    &:hover\n        outline: 0\n\nabbr[title]\n    border-bottom: none\n    text-decoration: underline\n    text-decoration: underline dotted\n\nb, strong\n    font-weight: inherit\n    font-weight: bolder\n\nsmall\n    font-size: 80%\n\nsub, sup\n    position: relative\n    font-size: 65%\n    line-height: 0\n    vertical-align: baseline\n\nsup\n    top: -0.5em\n\nsub\n    bottom: -0.15em\n\nimg\n    border: 0\n    height: auto\n    max-width: 100%\n\nsvg\n    max-width: 100%\n    color-interpolation-filters: sRGB\n    fill: currentColor\n\n    &:not(:root)\n        overflow: hidden\n\nhr\n    box-sizing: content-box\n    overflow: visible\n    height: 0\n\npre\n    overflow: auto\n\ncode, pre\n    font-family: monospace, monospace\n    font-size: 1em\n\ntable\n    text-align: left\n    width: 100%\n    max-width: 100%\n    border-collapse: collapse\n    margin-bottom: 2rem\n\n    td, th\n        vertical-align: top\n        padding: 0.5rem\n        border-bottom: 1px solid var(--color-subtle-medium)\n\n    code\n        white-space: nowrap\n\nbutton\n    appearance: none\n    background: transparent\n    cursor: pointer\n\nprogress\n    appearance: none\n\n/* Layout */\n\nhtml\n    font-size: 11px\n\n@media(max-width: 767px)\n    html\n        font-size: 10px\n\nbody\n    font-family: var(--font-primary)\n    font-size: var(--font-size-md)\n    line-height: var(--line-height)\n    color: var(--color-front)\n    background: var(--color-back)\n\np\n    margin-bottom: 3rem\n\n::selection\n    background: var(--color-theme)\n    color: var(--color-theme-contrast)\n\n/* Code */\n\npre, code\n    font-family: var(--font-code)\n    font-weight: 500\n    font-size: 1.25rem\n    line-height: var(--line-height)\n\npre\n    margin-bottom: 3rem\n\npre code\n    display: block\n    padding: 2rem !important\n\n/* Syntax highlighting */\n\n.CodeMirror.cm-s-default\n    font-family: var(--font-code)\n    font-size: var(--font-size-sm)\n    background: var(--syntax-background)\n    color: var(--syntax-text)\n    word-wrap: break-word\n\n    .CodeMirror-line\n        padding: 0\n\n    .CodeMirror-selected\n        background: var(--syntax-selected-background)\n\n    .CodeMirror-cursor\n        border-left-color: currentColor\n\n    .cm-variable-2\n        color: inherit\n        font-style: italic\n\n    .cm-comment\n        color: var(--syntax-comment)\n\n    .cm-keyword, .cm-builtin\n        color: var(--syntax-keyword)\n\n    .cm-operator\n        color: var(--syntax-operator)\n\n    .cm-string\n        color: var(--syntax-selector)\n\n    .cm-number\n        color: var(--syntax-number)\n\n    .cm-def\n        color: var(--syntax-function)\n\n.jp-RenderedText pre\n    .ansi-cyan-fg.ansi-cyan-fg\n        color: var(--ansi-cyan)\n\n    .ansi-green-fg.ansi-green-fg\n        color: var(--ansi-green)\n\n    .ansi-red-fg.ansi-red-fg\n        color: var(--ansi-red)\n\n/* Gatsby Images */\n\n.gatsby-resp-image-link\n    border: 0\n\n.gatsby-resp-image-figure\n    margin-bottom: 4rem\n\n.gatsby-resp-image-figcaption\n    font-size: var(--font-size-xs)\n    color: var(--color-front-light)\n    padding-top: 1rem\n    text-align: center\n\n    code\n        color: inherit\n"
  },
  {
    "path": "src/styles/layout.module.sass",
    "content": ".root\n    width: 100%\n\n.content\n    margin-bottom: 4rem\n    padding: 6rem 1rem 1rem\n\n.logo\n    color: var(--color-theme)\n    position: absolute\n    top: 2rem\n    left: 2rem\n\n@media(min-width: 1200px)\n    .logo\n        position: fixed\n\n.header\n    width: var(--width-container)\n    max-width: 100%\n    margin: 5rem auto\n\n.title\n    font-size: var(--font-size-xl)\n    font-family: var(--font-display)\n    line-height: 1.3\n    margin-bottom: 2rem\n\n.footer\n    background: var(--color-subtle-light)\n    width: 100%\n    padding: 3rem\n    margin-top: 5.5rem\n\n.footer-content\n    max-width: 100%\n    width: var(--width-container)\n    margin: 0 auto\n    font-size: var(--font-size-sm)\n    justify-content: space-between\n    flex-flow: row wrap\n\n@media(min-width: 900px)\n    .footer-content\n        display: flex\n\n.footer-section\n    flex: 0 0 48%\n    padding: 0 2rem\n    margin-bottom: 1rem\n\n.footer-links\n    flex: 0 0 100%\n    padding-top: 2rem\n    font-size: var(--font-size-xs)\n    text-align: center\n    color: var(--color-subtle-dark)\n\n.footer-link\n    display: inline\n\n    &:not(:last-child)\n        margin-right: 1rem\n\n        &:after\n            content: \"\\b7\"\n            margin-left: 1rem\n\n.profile\n    width: var(--size-profile-pic)\n    height: var(--size-profile-pic)\n    border-radius: 50%\n    float: right\n    margin: 0 0 1rem 1rem\n    shape-outside: circle()\n"
  },
  {
    "path": "src/styles/link.module.sass",
    "content": ".root\n    cursor: pointer\n    border-bottom: 1px solid var(--color-theme)\n\n    &:hover\n        border-bottom-color: var(--color-front)\n\n.secondary\n    border-bottom-color: var(--color-subtle-dark)\n\n    &:hover\n        border-bottom-color: var(--color-front)\n\n.hidden\n    border-bottom: 0\n"
  },
  {
    "path": "src/styles/reveal.css",
    "content": "/*!\n * reveal.js\n * http://revealjs.com\n * MIT licensed\n *\n * Copyright (C) 2019 Hakim El Hattab, http://hakim.se\n */\n\n/*********************************************\n * VIEW FRAGMENTS\n *********************************************/\n.reveal .slides section .fragment {\n    opacity: 0;\n    visibility: hidden;\n    transition: all 0.2s ease;\n}\n.reveal .slides section .fragment.visible {\n    opacity: 1;\n    visibility: inherit;\n}\n\n.reveal .slides section .fragment.grow {\n    opacity: 1;\n    visibility: inherit;\n}\n.reveal .slides section .fragment.grow.visible {\n    -webkit-transform: scale(1.3);\n    transform: scale(1.3);\n}\n\n.reveal .slides section .fragment.shrink {\n    opacity: 1;\n    visibility: inherit;\n}\n.reveal .slides section .fragment.shrink.visible {\n    -webkit-transform: scale(0.7);\n    transform: scale(0.7);\n}\n\n.reveal .slides section .fragment.zoom-in {\n    -webkit-transform: scale(0.1);\n    transform: scale(0.1);\n}\n.reveal .slides section .fragment.zoom-in.visible {\n    -webkit-transform: none;\n    transform: none;\n}\n\n.reveal .slides section .fragment.fade-out {\n    opacity: 1;\n    visibility: inherit;\n}\n.reveal .slides section .fragment.fade-out.visible {\n    opacity: 0;\n    visibility: hidden;\n}\n\n.reveal .slides section .fragment.semi-fade-out {\n    opacity: 1;\n    visibility: inherit;\n}\n.reveal .slides section .fragment.semi-fade-out.visible {\n    opacity: 0.5;\n    visibility: inherit;\n}\n\n.reveal .slides section .fragment.strike {\n    opacity: 1;\n    visibility: inherit;\n}\n.reveal .slides section .fragment.strike.visible {\n    text-decoration: line-through;\n}\n\n.reveal .slides section .fragment.fade-up {\n    -webkit-transform: translate(0, 20%);\n    transform: translate(0, 20%);\n}\n.reveal .slides section .fragment.fade-up.visible {\n    -webkit-transform: translate(0, 0);\n    transform: translate(0, 0);\n}\n\n.reveal .slides section .fragment.fade-down {\n    -webkit-transform: translate(0, -20%);\n    transform: translate(0, -20%);\n}\n.reveal .slides section .fragment.fade-down.visible {\n    -webkit-transform: translate(0, 0);\n    transform: translate(0, 0);\n}\n\n.reveal .slides section .fragment.fade-right {\n    -webkit-transform: translate(-20%, 0);\n    transform: translate(-20%, 0);\n}\n.reveal .slides section .fragment.fade-right.visible {\n    -webkit-transform: translate(0, 0);\n    transform: translate(0, 0);\n}\n\n.reveal .slides section .fragment.fade-left {\n    -webkit-transform: translate(20%, 0);\n    transform: translate(20%, 0);\n}\n.reveal .slides section .fragment.fade-left.visible {\n    -webkit-transform: translate(0, 0);\n    transform: translate(0, 0);\n}\n\n.reveal .slides section .fragment.fade-in-then-out,\n.reveal .slides section .fragment.current-visible {\n    opacity: 0;\n    visibility: hidden;\n}\n.reveal .slides section .fragment.fade-in-then-out.current-fragment,\n.reveal .slides section .fragment.current-visible.current-fragment {\n    opacity: 1;\n    visibility: inherit;\n}\n\n.reveal .slides section .fragment.fade-in-then-semi-out {\n    opacity: 0;\n    visibility: hidden;\n}\n.reveal .slides section .fragment.fade-in-then-semi-out.visible {\n    opacity: 0.5;\n    visibility: inherit;\n}\n.reveal .slides section .fragment.fade-in-then-semi-out.current-fragment {\n    opacity: 1;\n    visibility: inherit;\n}\n\n.reveal .slides section .fragment.highlight-red,\n.reveal .slides section .fragment.highlight-current-red,\n.reveal .slides section .fragment.highlight-green,\n.reveal .slides section .fragment.highlight-current-green,\n.reveal .slides section .fragment.highlight-blue,\n.reveal .slides section .fragment.highlight-current-blue {\n    opacity: 1;\n    visibility: inherit;\n}\n\n.reveal .slides section .fragment.highlight-red.visible {\n    color: #ff2c2d;\n}\n\n.reveal .slides section .fragment.highlight-green.visible {\n    color: #17ff2e;\n}\n\n.reveal .slides section .fragment.highlight-blue.visible {\n    color: #1b91ff;\n}\n\n.reveal .slides section .fragment.highlight-current-red.current-fragment {\n    color: #ff2c2d;\n}\n\n.reveal .slides section .fragment.highlight-current-green.current-fragment {\n    color: #17ff2e;\n}\n\n.reveal .slides section .fragment.highlight-current-blue.current-fragment {\n    color: #1b91ff;\n}\n\n/*********************************************\n * DEFAULT ELEMENT STYLES\n *********************************************/\n/* Fixes issue in Chrome where italic fonts did not appear when printing to PDF */\n.reveal:after {\n    content: '';\n    font-style: italic;\n}\n\n.reveal iframe {\n    z-index: 1;\n}\n\n/** Prevents layering issues in certain browser/transition combinations */\n.reveal a {\n    position: relative;\n}\n\n.reveal .stretch {\n    max-width: none;\n    max-height: none;\n}\n\n.reveal pre.stretch code {\n    height: 100%;\n    max-height: 100%;\n    box-sizing: border-box;\n}\n\n/*********************************************\n * CONTROLS\n *********************************************/\n@-webkit-keyframes bounce-right {\n    0%,\n    10%,\n    25%,\n    40%,\n    50% {\n        -webkit-transform: translateX(0);\n        transform: translateX(0);\n    }\n    20% {\n        -webkit-transform: translateX(10px);\n        transform: translateX(10px);\n    }\n    30% {\n        -webkit-transform: translateX(-5px);\n        transform: translateX(-5px);\n    }\n}\n@keyframes bounce-right {\n    0%,\n    10%,\n    25%,\n    40%,\n    50% {\n        -webkit-transform: translateX(0);\n        transform: translateX(0);\n    }\n    20% {\n        -webkit-transform: translateX(10px);\n        transform: translateX(10px);\n    }\n    30% {\n        -webkit-transform: translateX(-5px);\n        transform: translateX(-5px);\n    }\n}\n\n@-webkit-keyframes bounce-down {\n    0%,\n    10%,\n    25%,\n    40%,\n    50% {\n        -webkit-transform: translateY(0);\n        transform: translateY(0);\n    }\n    20% {\n        -webkit-transform: translateY(10px);\n        transform: translateY(10px);\n    }\n    30% {\n        -webkit-transform: translateY(-5px);\n        transform: translateY(-5px);\n    }\n}\n\n@keyframes bounce-down {\n    0%,\n    10%,\n    25%,\n    40%,\n    50% {\n        -webkit-transform: translateY(0);\n        transform: translateY(0);\n    }\n    20% {\n        -webkit-transform: translateY(10px);\n        transform: translateY(10px);\n    }\n    30% {\n        -webkit-transform: translateY(-5px);\n        transform: translateY(-5px);\n    }\n}\n\n.reveal .controls {\n    display: none;\n    position: absolute;\n    top: auto;\n    bottom: 12px;\n    right: 12px;\n    left: auto;\n    z-index: 1;\n    color: #000;\n    pointer-events: none;\n    font-size: 10px;\n}\n.reveal .controls button {\n    position: absolute;\n    padding: 0;\n    background-color: transparent;\n    border: 0;\n    outline: 0;\n    cursor: pointer;\n    color: currentColor;\n    -webkit-transform: scale(0.9999);\n    transform: scale(0.9999);\n    transition: color 0.2s ease, opacity 0.2s ease, -webkit-transform 0.2s ease;\n    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;\n    z-index: 2;\n    pointer-events: auto;\n    font-size: inherit;\n    visibility: hidden;\n    opacity: 0;\n    -webkit-appearance: none;\n    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.reveal .controls .controls-arrow:before,\n.reveal .controls .controls-arrow:after {\n    content: '';\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 2.6em;\n    height: 0.5em;\n    border-radius: 0.25em;\n    background-color: currentColor;\n    transition: all 0.15s ease, background-color 0.8s ease;\n    -webkit-transform-origin: 0.2em 50%;\n    transform-origin: 0.2em 50%;\n    will-change: transform;\n}\n.reveal .controls .controls-arrow {\n    position: relative;\n    width: 3.6em;\n    height: 3.6em;\n}\n.reveal .controls .controls-arrow:before {\n    -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(45deg);\n    transform: translateX(0.5em) translateY(1.55em) rotate(45deg);\n}\n.reveal .controls .controls-arrow:after {\n    -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(-45deg);\n    transform: translateX(0.5em) translateY(1.55em) rotate(-45deg);\n}\n.reveal .controls .controls-arrow:hover:before {\n    -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(40deg);\n    transform: translateX(0.5em) translateY(1.55em) rotate(40deg);\n}\n.reveal .controls .controls-arrow:hover:after {\n    -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(-40deg);\n    transform: translateX(0.5em) translateY(1.55em) rotate(-40deg);\n}\n.reveal .controls .controls-arrow:active:before {\n    -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(36deg);\n    transform: translateX(0.5em) translateY(1.55em) rotate(36deg);\n}\n.reveal .controls .controls-arrow:active:after {\n    -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(-36deg);\n    transform: translateX(0.5em) translateY(1.55em) rotate(-36deg);\n}\n.reveal .controls .navigate-left {\n    right: 6.4em;\n    bottom: 3.2em;\n    -webkit-transform: translateX(-10px);\n    transform: translateX(-10px);\n}\n.reveal .controls .navigate-right {\n    right: 0;\n    bottom: 3.2em;\n    -webkit-transform: translateX(10px);\n    transform: translateX(10px);\n}\n.reveal .controls .navigate-right .controls-arrow {\n    -webkit-transform: rotate(180deg);\n    transform: rotate(180deg);\n}\n.reveal .controls .navigate-right.highlight {\n    -webkit-animation: bounce-right 2s 50 both ease-out;\n    animation: bounce-right 2s 50 both ease-out;\n}\n.reveal .controls .navigate-up {\n    right: 3.2em;\n    bottom: 6.4em;\n    -webkit-transform: translateY(-10px);\n    transform: translateY(-10px);\n}\n.reveal .controls .navigate-up .controls-arrow {\n    -webkit-transform: rotate(90deg);\n    transform: rotate(90deg);\n}\n.reveal .controls .navigate-down {\n    right: 3.2em;\n    bottom: 0;\n    -webkit-transform: translateY(10px);\n    transform: translateY(10px);\n}\n.reveal .controls .navigate-down .controls-arrow {\n    -webkit-transform: rotate(-90deg);\n    transform: rotate(-90deg);\n}\n.reveal .controls .navigate-down.highlight {\n    -webkit-animation: bounce-down 2s 50 both ease-out;\n    animation: bounce-down 2s 50 both ease-out;\n}\n.reveal .controls[data-controls-back-arrows='faded'] .navigate-left.enabled,\n.reveal .controls[data-controls-back-arrows='faded'] .navigate-up.enabled {\n    opacity: 0.3;\n}\n.reveal .controls[data-controls-back-arrows='faded'] .navigate-left.enabled:hover,\n.reveal .controls[data-controls-back-arrows='faded'] .navigate-up.enabled:hover {\n    opacity: 1;\n}\n.reveal .controls[data-controls-back-arrows='hidden'] .navigate-left.enabled,\n.reveal .controls[data-controls-back-arrows='hidden'] .navigate-up.enabled {\n    opacity: 0;\n    visibility: hidden;\n}\n.reveal .controls .enabled {\n    visibility: visible;\n    opacity: 0.9;\n    cursor: pointer;\n    -webkit-transform: none;\n    transform: none;\n}\n.reveal .controls .enabled.fragmented {\n    opacity: 0.5;\n}\n.reveal .controls .enabled:hover,\n.reveal .controls .enabled.fragmented:hover {\n    opacity: 1;\n}\n\n.reveal[data-navigation-mode='linear'].has-horizontal-slides .navigate-up,\n.reveal[data-navigation-mode='linear'].has-horizontal-slides .navigate-down {\n    display: none;\n}\n\n.reveal[data-navigation-mode='linear'].has-horizontal-slides .navigate-left,\n.reveal:not(.has-vertical-slides) .controls .navigate-left {\n    bottom: 1.4em;\n    right: 5.5em;\n}\n\n.reveal[data-navigation-mode='linear'].has-horizontal-slides .navigate-right,\n.reveal:not(.has-vertical-slides) .controls .navigate-right {\n    bottom: 1.4em;\n    right: 0.5em;\n}\n\n.reveal:not(.has-horizontal-slides) .controls .navigate-up {\n    right: 1.4em;\n    bottom: 5em;\n}\n\n.reveal:not(.has-horizontal-slides) .controls .navigate-down {\n    right: 1.4em;\n    bottom: 0.5em;\n}\n\n.reveal.has-dark-background .controls {\n    color: #fff;\n}\n\n.reveal.has-light-background .controls {\n    color: #000;\n}\n\n.reveal.no-hover .controls .controls-arrow:hover:before,\n.reveal.no-hover .controls .controls-arrow:active:before {\n    -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(45deg);\n    transform: translateX(0.5em) translateY(1.55em) rotate(45deg);\n}\n\n.reveal.no-hover .controls .controls-arrow:hover:after,\n.reveal.no-hover .controls .controls-arrow:active:after {\n    -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(-45deg);\n    transform: translateX(0.5em) translateY(1.55em) rotate(-45deg);\n}\n\n@media screen and (min-width: 500px) {\n    .reveal .controls[data-controls-layout='edges'] {\n        top: 0;\n        right: 0;\n        bottom: 0;\n        left: 0;\n    }\n    .reveal .controls[data-controls-layout='edges'] .navigate-left,\n    .reveal .controls[data-controls-layout='edges'] .navigate-right,\n    .reveal .controls[data-controls-layout='edges'] .navigate-up,\n    .reveal .controls[data-controls-layout='edges'] .navigate-down {\n        bottom: auto;\n        right: auto;\n    }\n    .reveal .controls[data-controls-layout='edges'] .navigate-left {\n        top: 50%;\n        left: 8px;\n        margin-top: -1.8em;\n    }\n    .reveal .controls[data-controls-layout='edges'] .navigate-right {\n        top: 50%;\n        right: 8px;\n        margin-top: -1.8em;\n    }\n    .reveal .controls[data-controls-layout='edges'] .navigate-up {\n        top: 8px;\n        left: 50%;\n        margin-left: -1.8em;\n    }\n    .reveal .controls[data-controls-layout='edges'] .navigate-down {\n        bottom: 8px;\n        left: 50%;\n        margin-left: -1.8em;\n    }\n}\n\n/*********************************************\n * PROGRESS BAR\n *********************************************/\n.reveal .progress {\n    position: absolute;\n    display: none;\n    height: 3px;\n    width: 100%;\n    bottom: 0;\n    left: 0;\n    z-index: 10;\n    background-color: rgba(0, 0, 0, 0.2);\n    color: #fff;\n}\n\n.reveal .progress:after {\n    content: '';\n    display: block;\n    position: absolute;\n    height: 10px;\n    width: 100%;\n    top: -10px;\n}\n\n.reveal .progress span {\n    display: block;\n    height: 100%;\n    width: 0px;\n    background-color: currentColor;\n    transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);\n}\n\n/*********************************************\n * SLIDE NUMBER\n *********************************************/\n.reveal .slide-number {\n    position: absolute;\n    display: block;\n    right: 8px;\n    bottom: 8px;\n    z-index: 31;\n    font-family: Helvetica, sans-serif;\n    font-size: 12px;\n    line-height: 1;\n    color: #fff;\n    background-color: rgba(0, 0, 0, 0.4);\n    padding: 5px;\n}\n\n.reveal .slide-number a {\n    color: currentColor;\n}\n\n.reveal .slide-number-delimiter {\n    margin: 0 3px;\n}\n\n/*********************************************\n * SLIDES\n *********************************************/\n.reveal {\n    position: relative;\n    width: 100%;\n    height: 100%;\n    overflow: hidden;\n    -ms-touch-action: pinch-zoom;\n    touch-action: pinch-zoom;\n}\n\n.reveal .slides {\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n    margin: auto;\n    pointer-events: none;\n    overflow: visible;\n    z-index: 1;\n    text-align: center;\n    -webkit-perspective: 600px;\n    perspective: 600px;\n    -webkit-perspective-origin: 50% 40%;\n    perspective-origin: 50% 40%;\n}\n\n.reveal .slides > section {\n    -webkit-perspective: 600px;\n    perspective: 600px;\n}\n\n.reveal .slides > section,\n.reveal .slides > section > section {\n    display: none;\n    position: absolute;\n    width: 100%;\n    padding: 20px 0px;\n    pointer-events: auto;\n    z-index: 10;\n    -webkit-transform-style: flat;\n    transform-style: flat;\n    transition: -webkit-transform-origin 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985),\n        -webkit-transform 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985),\n        visibility 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985),\n        opacity 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);\n    transition: transform-origin 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985),\n        transform 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985),\n        visibility 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985),\n        opacity 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);\n}\n\n/* Global transition speed settings */\n.reveal[data-transition-speed='fast'] .slides section {\n    transition-duration: 400ms;\n}\n\n.reveal[data-transition-speed='slow'] .slides section {\n    transition-duration: 1200ms;\n}\n\n/* Slide-specific transition speed overrides */\n.reveal .slides section[data-transition-speed='fast'] {\n    transition-duration: 400ms;\n}\n\n.reveal .slides section[data-transition-speed='slow'] {\n    transition-duration: 1200ms;\n}\n\n.reveal .slides > section.stack {\n    padding-top: 0;\n    padding-bottom: 0;\n    pointer-events: none;\n    height: 100%;\n}\n\n.reveal .slides > section.present,\n.reveal .slides > section > section.present {\n    display: block;\n    z-index: 11;\n    opacity: 1;\n}\n\n.reveal .slides > section:empty,\n.reveal .slides > section > section:empty,\n.reveal .slides > section[data-background-interactive],\n.reveal .slides > section > section[data-background-interactive] {\n    pointer-events: none;\n}\n\n.reveal.center,\n.reveal.center .slides,\n.reveal.center .slides section {\n    min-height: 0 !important;\n}\n\n/* Don't allow interaction with invisible slides */\n.reveal .slides > section.future,\n.reveal .slides > section > section.future,\n.reveal .slides > section.past,\n.reveal .slides > section > section.past {\n    pointer-events: none;\n}\n\n.reveal.overview .slides > section,\n.reveal.overview .slides > section > section {\n    pointer-events: auto;\n}\n\n.reveal .slides > section.past,\n.reveal .slides > section.future,\n.reveal .slides > section > section.past,\n.reveal .slides > section > section.future {\n    opacity: 0;\n}\n\n/*********************************************\n * Mixins for readability of transitions\n *********************************************/\n/*********************************************\n * SLIDE TRANSITION\n * Aliased 'linear' for backwards compatibility\n *********************************************/\n.reveal.slide section {\n    -webkit-backface-visibility: hidden;\n    backface-visibility: hidden;\n}\n\n.reveal .slides > section[data-transition='slide'].past,\n.reveal .slides > section[data-transition~='slide-out'].past,\n.reveal.slide .slides > section:not([data-transition]).past {\n    -webkit-transform: translate(-150%, 0);\n    transform: translate(-150%, 0);\n}\n\n.reveal .slides > section[data-transition='slide'].future,\n.reveal .slides > section[data-transition~='slide-in'].future,\n.reveal.slide .slides > section:not([data-transition]).future {\n    -webkit-transform: translate(150%, 0);\n    transform: translate(150%, 0);\n}\n\n.reveal .slides > section > section[data-transition='slide'].past,\n.reveal .slides > section > section[data-transition~='slide-out'].past,\n.reveal.slide .slides > section > section:not([data-transition]).past {\n    -webkit-transform: translate(0, -150%);\n    transform: translate(0, -150%);\n}\n\n.reveal .slides > section > section[data-transition='slide'].future,\n.reveal .slides > section > section[data-transition~='slide-in'].future,\n.reveal.slide .slides > section > section:not([data-transition]).future {\n    -webkit-transform: translate(0, 150%);\n    transform: translate(0, 150%);\n}\n\n.reveal.linear section {\n    -webkit-backface-visibility: hidden;\n    backface-visibility: hidden;\n}\n\n.reveal .slides > section[data-transition='linear'].past,\n.reveal .slides > section[data-transition~='linear-out'].past,\n.reveal.linear .slides > section:not([data-transition]).past {\n    -webkit-transform: translate(-150%, 0);\n    transform: translate(-150%, 0);\n}\n\n.reveal .slides > section[data-transition='linear'].future,\n.reveal .slides > section[data-transition~='linear-in'].future,\n.reveal.linear .slides > section:not([data-transition]).future {\n    -webkit-transform: translate(150%, 0);\n    transform: translate(150%, 0);\n}\n\n.reveal .slides > section > section[data-transition='linear'].past,\n.reveal .slides > section > section[data-transition~='linear-out'].past,\n.reveal.linear .slides > section > section:not([data-transition]).past {\n    -webkit-transform: translate(0, -150%);\n    transform: translate(0, -150%);\n}\n\n.reveal .slides > section > section[data-transition='linear'].future,\n.reveal .slides > section > section[data-transition~='linear-in'].future,\n.reveal.linear .slides > section > section:not([data-transition]).future {\n    -webkit-transform: translate(0, 150%);\n    transform: translate(0, 150%);\n}\n\n/*********************************************\n * CONVEX TRANSITION\n * Aliased 'default' for backwards compatibility\n *********************************************/\n.reveal .slides section[data-transition='default'].stack,\n.reveal.default .slides section.stack {\n    -webkit-transform-style: preserve-3d;\n    transform-style: preserve-3d;\n}\n\n.reveal .slides > section[data-transition='default'].past,\n.reveal .slides > section[data-transition~='default-out'].past,\n.reveal.default .slides > section:not([data-transition]).past {\n    -webkit-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);\n}\n\n.reveal .slides > section[data-transition='default'].future,\n.reveal .slides > section[data-transition~='default-in'].future,\n.reveal.default .slides > section:not([data-transition]).future {\n    -webkit-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);\n}\n\n.reveal .slides > section > section[data-transition='default'].past,\n.reveal .slides > section > section[data-transition~='default-out'].past,\n.reveal.default .slides > section > section:not([data-transition]).past {\n    -webkit-transform: translate3d(0, -300px, 0) rotateX(70deg) translate3d(0, -300px, 0);\n    transform: translate3d(0, -300px, 0) rotateX(70deg) translate3d(0, -300px, 0);\n}\n\n.reveal .slides > section > section[data-transition='default'].future,\n.reveal .slides > section > section[data-transition~='default-in'].future,\n.reveal.default .slides > section > section:not([data-transition]).future {\n    -webkit-transform: translate3d(0, 300px, 0) rotateX(-70deg) translate3d(0, 300px, 0);\n    transform: translate3d(0, 300px, 0) rotateX(-70deg) translate3d(0, 300px, 0);\n}\n\n.reveal .slides section[data-transition='convex'].stack,\n.reveal.convex .slides section.stack {\n    -webkit-transform-style: preserve-3d;\n    transform-style: preserve-3d;\n}\n\n.reveal .slides > section[data-transition='convex'].past,\n.reveal .slides > section[data-transition~='convex-out'].past,\n.reveal.convex .slides > section:not([data-transition]).past {\n    -webkit-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);\n}\n\n.reveal .slides > section[data-transition='convex'].future,\n.reveal .slides > section[data-transition~='convex-in'].future,\n.reveal.convex .slides > section:not([data-transition]).future {\n    -webkit-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);\n}\n\n.reveal .slides > section > section[data-transition='convex'].past,\n.reveal .slides > section > section[data-transition~='convex-out'].past,\n.reveal.convex .slides > section > section:not([data-transition]).past {\n    -webkit-transform: translate3d(0, -300px, 0) rotateX(70deg) translate3d(0, -300px, 0);\n    transform: translate3d(0, -300px, 0) rotateX(70deg) translate3d(0, -300px, 0);\n}\n\n.reveal .slides > section > section[data-transition='convex'].future,\n.reveal .slides > section > section[data-transition~='convex-in'].future,\n.reveal.convex .slides > section > section:not([data-transition]).future {\n    -webkit-transform: translate3d(0, 300px, 0) rotateX(-70deg) translate3d(0, 300px, 0);\n    transform: translate3d(0, 300px, 0) rotateX(-70deg) translate3d(0, 300px, 0);\n}\n\n/*********************************************\n * CONCAVE TRANSITION\n *********************************************/\n.reveal .slides section[data-transition='concave'].stack,\n.reveal.concave .slides section.stack {\n    -webkit-transform-style: preserve-3d;\n    transform-style: preserve-3d;\n}\n\n.reveal .slides > section[data-transition='concave'].past,\n.reveal .slides > section[data-transition~='concave-out'].past,\n.reveal.concave .slides > section:not([data-transition]).past {\n    -webkit-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);\n}\n\n.reveal .slides > section[data-transition='concave'].future,\n.reveal .slides > section[data-transition~='concave-in'].future,\n.reveal.concave .slides > section:not([data-transition]).future {\n    -webkit-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);\n}\n\n.reveal .slides > section > section[data-transition='concave'].past,\n.reveal .slides > section > section[data-transition~='concave-out'].past,\n.reveal.concave .slides > section > section:not([data-transition]).past {\n    -webkit-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);\n    transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);\n}\n\n.reveal .slides > section > section[data-transition='concave'].future,\n.reveal .slides > section > section[data-transition~='concave-in'].future,\n.reveal.concave .slides > section > section:not([data-transition]).future {\n    -webkit-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);\n    transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);\n}\n\n/*********************************************\n * ZOOM TRANSITION\n *********************************************/\n.reveal .slides section[data-transition='zoom'],\n.reveal.zoom .slides section:not([data-transition]) {\n    transition-timing-function: ease;\n}\n\n.reveal .slides > section[data-transition='zoom'].past,\n.reveal .slides > section[data-transition~='zoom-out'].past,\n.reveal.zoom .slides > section:not([data-transition]).past {\n    visibility: hidden;\n    -webkit-transform: scale(16);\n    transform: scale(16);\n}\n\n.reveal .slides > section[data-transition='zoom'].future,\n.reveal .slides > section[data-transition~='zoom-in'].future,\n.reveal.zoom .slides > section:not([data-transition]).future {\n    visibility: hidden;\n    -webkit-transform: scale(0.2);\n    transform: scale(0.2);\n}\n\n.reveal .slides > section > section[data-transition='zoom'].past,\n.reveal .slides > section > section[data-transition~='zoom-out'].past,\n.reveal.zoom .slides > section > section:not([data-transition]).past {\n    -webkit-transform: scale(16);\n    transform: scale(16);\n}\n\n.reveal .slides > section > section[data-transition='zoom'].future,\n.reveal .slides > section > section[data-transition~='zoom-in'].future,\n.reveal.zoom .slides > section > section:not([data-transition]).future {\n    -webkit-transform: scale(0.2);\n    transform: scale(0.2);\n}\n\n/*********************************************\n * CUBE TRANSITION\n *\n * WARNING:\n * this is deprecated and will be removed in a\n * future version.\n *********************************************/\n.reveal.cube .slides {\n    -webkit-perspective: 1300px;\n    perspective: 1300px;\n}\n\n.reveal.cube .slides section {\n    padding: 30px;\n    min-height: 700px;\n    -webkit-backface-visibility: hidden;\n    backface-visibility: hidden;\n    box-sizing: border-box;\n    -webkit-transform-style: preserve-3d;\n    transform-style: preserve-3d;\n}\n\n.reveal.center.cube .slides section {\n    min-height: 0;\n}\n\n.reveal.cube .slides section:not(.stack):before {\n    content: '';\n    position: absolute;\n    display: block;\n    width: 100%;\n    height: 100%;\n    left: 0;\n    top: 0;\n    background: rgba(0, 0, 0, 0.1);\n    border-radius: 4px;\n    -webkit-transform: translateZ(-20px);\n    transform: translateZ(-20px);\n}\n\n.reveal.cube .slides section:not(.stack):after {\n    content: '';\n    position: absolute;\n    display: block;\n    width: 90%;\n    height: 30px;\n    left: 5%;\n    bottom: 0;\n    background: none;\n    z-index: 1;\n    border-radius: 4px;\n    box-shadow: 0px 95px 25px rgba(0, 0, 0, 0.2);\n    -webkit-transform: translateZ(-90px) rotateX(65deg);\n    transform: translateZ(-90px) rotateX(65deg);\n}\n\n.reveal.cube .slides > section.stack {\n    padding: 0;\n    background: none;\n}\n\n.reveal.cube .slides > section.past {\n    -webkit-transform-origin: 100% 0%;\n    transform-origin: 100% 0%;\n    -webkit-transform: translate3d(-100%, 0, 0) rotateY(-90deg);\n    transform: translate3d(-100%, 0, 0) rotateY(-90deg);\n}\n\n.reveal.cube .slides > section.future {\n    -webkit-transform-origin: 0% 0%;\n    transform-origin: 0% 0%;\n    -webkit-transform: translate3d(100%, 0, 0) rotateY(90deg);\n    transform: translate3d(100%, 0, 0) rotateY(90deg);\n}\n\n.reveal.cube .slides > section > section.past {\n    -webkit-transform-origin: 0% 100%;\n    transform-origin: 0% 100%;\n    -webkit-transform: translate3d(0, -100%, 0) rotateX(90deg);\n    transform: translate3d(0, -100%, 0) rotateX(90deg);\n}\n\n.reveal.cube .slides > section > section.future {\n    -webkit-transform-origin: 0% 0%;\n    transform-origin: 0% 0%;\n    -webkit-transform: translate3d(0, 100%, 0) rotateX(-90deg);\n    transform: translate3d(0, 100%, 0) rotateX(-90deg);\n}\n\n/*********************************************\n * PAGE TRANSITION\n *\n * WARNING:\n * this is deprecated and will be removed in a\n * future version.\n *********************************************/\n.reveal.page .slides {\n    -webkit-perspective-origin: 0% 50%;\n    perspective-origin: 0% 50%;\n    -webkit-perspective: 3000px;\n    perspective: 3000px;\n}\n\n.reveal.page .slides section {\n    padding: 30px;\n    min-height: 700px;\n    box-sizing: border-box;\n    -webkit-transform-style: preserve-3d;\n    transform-style: preserve-3d;\n}\n\n.reveal.page .slides section.past {\n    z-index: 12;\n}\n\n.reveal.page .slides section:not(.stack):before {\n    content: '';\n    position: absolute;\n    display: block;\n    width: 100%;\n    height: 100%;\n    left: 0;\n    top: 0;\n    background: rgba(0, 0, 0, 0.1);\n    -webkit-transform: translateZ(-20px);\n    transform: translateZ(-20px);\n}\n\n.reveal.page .slides section:not(.stack):after {\n    content: '';\n    position: absolute;\n    display: block;\n    width: 90%;\n    height: 30px;\n    left: 5%;\n    bottom: 0;\n    background: none;\n    z-index: 1;\n    border-radius: 4px;\n    box-shadow: 0px 95px 25px rgba(0, 0, 0, 0.2);\n    -webkit-transform: translateZ(-90px) rotateX(65deg);\n}\n\n.reveal.page .slides > section.stack {\n    padding: 0;\n    background: none;\n}\n\n.reveal.page .slides > section.past {\n    -webkit-transform-origin: 0% 0%;\n    transform-origin: 0% 0%;\n    -webkit-transform: translate3d(-40%, 0, 0) rotateY(-80deg);\n    transform: translate3d(-40%, 0, 0) rotateY(-80deg);\n}\n\n.reveal.page .slides > section.future {\n    -webkit-transform-origin: 100% 0%;\n    transform-origin: 100% 0%;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n}\n\n.reveal.page .slides > section > section.past {\n    -webkit-transform-origin: 0% 0%;\n    transform-origin: 0% 0%;\n    -webkit-transform: translate3d(0, -40%, 0) rotateX(80deg);\n    transform: translate3d(0, -40%, 0) rotateX(80deg);\n}\n\n.reveal.page .slides > section > section.future {\n    -webkit-transform-origin: 0% 100%;\n    transform-origin: 0% 100%;\n    -webkit-transform: translate3d(0, 0, 0);\n    transform: translate3d(0, 0, 0);\n}\n\n/*********************************************\n * FADE TRANSITION\n *********************************************/\n.reveal .slides section[data-transition='fade'],\n.reveal.fade .slides section:not([data-transition]),\n.reveal.fade .slides > section > section:not([data-transition]) {\n    -webkit-transform: none;\n    transform: none;\n    transition: opacity 0.5s;\n}\n\n.reveal.fade.overview .slides section,\n.reveal.fade.overview .slides > section > section {\n    transition: none;\n}\n\n/*********************************************\n * NO TRANSITION\n *********************************************/\n.reveal .slides section[data-transition='none'],\n.reveal.none .slides section:not([data-transition]) {\n    -webkit-transform: none;\n    transform: none;\n    transition: none;\n}\n\n/*********************************************\n * PAUSED MODE\n *********************************************/\n.reveal .pause-overlay {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    background: black;\n    visibility: hidden;\n    opacity: 0;\n    z-index: 100;\n    transition: all 1s ease;\n}\n\n.reveal .pause-overlay .resume-button {\n    position: absolute;\n    bottom: 20px;\n    right: 20px;\n    color: #ccc;\n    border-radius: 2px;\n    padding: 6px 14px;\n    border: 2px solid #ccc;\n    font-size: 16px;\n    background: transparent;\n    cursor: pointer;\n}\n.reveal .pause-overlay .resume-button:hover {\n    color: #fff;\n    border-color: #fff;\n}\n\n.reveal.paused .pause-overlay {\n    visibility: visible;\n    opacity: 1;\n}\n\n/*********************************************\n * FALLBACK\n *********************************************/\n.no-transforms {\n    overflow-y: auto;\n}\n\n.no-transforms .reveal {\n    overflow: visible;\n}\n\n.no-transforms .reveal .slides {\n    position: relative;\n    width: 80%;\n    max-width: 1280px;\n    height: auto;\n    top: 0;\n    margin: 0 auto;\n    text-align: center;\n}\n\n.no-transforms .reveal .controls,\n.no-transforms .reveal .progress {\n    display: none;\n}\n\n.no-transforms .reveal .slides section {\n    display: block;\n    opacity: 1;\n    position: relative;\n    height: auto;\n    min-height: 0;\n    top: 0;\n    left: 0;\n    margin: 10vh 0;\n    margin: 70px 0;\n    -webkit-transform: none;\n    transform: none;\n}\n\n.reveal .no-transition,\n.reveal .no-transition * {\n    transition: none !important;\n}\n\n/*********************************************\n * PER-SLIDE BACKGROUNDS\n *********************************************/\n.reveal .backgrounds {\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    top: 0;\n    left: 0;\n    -webkit-perspective: 600px;\n    perspective: 600px;\n}\n\n.reveal .slide-background {\n    display: none;\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    opacity: 0;\n    visibility: hidden;\n    overflow: hidden;\n    background-color: rgba(0, 0, 0, 0);\n    transition: all 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);\n}\n\n.reveal .slide-background-content {\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    background-position: 50% 50%;\n    background-repeat: no-repeat;\n    background-size: cover;\n}\n\n.reveal .slide-background.stack {\n    display: block;\n}\n\n.reveal .slide-background.present {\n    opacity: 1;\n    visibility: visible;\n    z-index: 2;\n}\n\n.print-pdf .reveal .slide-background {\n    opacity: 1 !important;\n    visibility: visible !important;\n}\n\n/* Video backgrounds */\n.reveal .slide-background video {\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    max-width: none;\n    max-height: none;\n    top: 0;\n    left: 0;\n    -o-object-fit: cover;\n    object-fit: cover;\n}\n\n.reveal .slide-background[data-background-size='contain'] video {\n    -o-object-fit: contain;\n    object-fit: contain;\n}\n\n/* Immediate transition style */\n.reveal[data-background-transition='none'] > .backgrounds .slide-background,\n.reveal > .backgrounds .slide-background[data-background-transition='none'] {\n    transition: none;\n}\n\n/* Slide */\n.reveal[data-background-transition='slide'] > .backgrounds .slide-background,\n.reveal > .backgrounds .slide-background[data-background-transition='slide'] {\n    opacity: 1;\n    -webkit-backface-visibility: hidden;\n    backface-visibility: hidden;\n}\n\n.reveal[data-background-transition='slide'] > .backgrounds .slide-background.past,\n.reveal > .backgrounds .slide-background.past[data-background-transition='slide'] {\n    -webkit-transform: translate(-100%, 0);\n    transform: translate(-100%, 0);\n}\n\n.reveal[data-background-transition='slide'] > .backgrounds .slide-background.future,\n.reveal > .backgrounds .slide-background.future[data-background-transition='slide'] {\n    -webkit-transform: translate(100%, 0);\n    transform: translate(100%, 0);\n}\n\n.reveal[data-background-transition='slide']\n    > .backgrounds\n    .slide-background\n    > .slide-background.past,\n.reveal\n    > .backgrounds\n    .slide-background\n    > .slide-background.past[data-background-transition='slide'] {\n    -webkit-transform: translate(0, -100%);\n    transform: translate(0, -100%);\n}\n\n.reveal[data-background-transition='slide']\n    > .backgrounds\n    .slide-background\n    > .slide-background.future,\n.reveal\n    > .backgrounds\n    .slide-background\n    > .slide-background.future[data-background-transition='slide'] {\n    -webkit-transform: translate(0, 100%);\n    transform: translate(0, 100%);\n}\n\n/* Convex */\n.reveal[data-background-transition='convex'] > .backgrounds .slide-background.past,\n.reveal > .backgrounds .slide-background.past[data-background-transition='convex'] {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);\n}\n\n.reveal[data-background-transition='convex'] > .backgrounds .slide-background.future,\n.reveal > .backgrounds .slide-background.future[data-background-transition='convex'] {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);\n}\n\n.reveal[data-background-transition='convex']\n    > .backgrounds\n    .slide-background\n    > .slide-background.past,\n.reveal\n    > .backgrounds\n    .slide-background\n    > .slide-background.past[data-background-transition='convex'] {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -100%, 0) rotateX(90deg) translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0) rotateX(90deg) translate3d(0, -100%, 0);\n}\n\n.reveal[data-background-transition='convex']\n    > .backgrounds\n    .slide-background\n    > .slide-background.future,\n.reveal\n    > .backgrounds\n    .slide-background\n    > .slide-background.future[data-background-transition='convex'] {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 100%, 0) rotateX(-90deg) translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0) rotateX(-90deg) translate3d(0, 100%, 0);\n}\n\n/* Concave */\n.reveal[data-background-transition='concave'] > .backgrounds .slide-background.past,\n.reveal > .backgrounds .slide-background.past[data-background-transition='concave'] {\n    opacity: 0;\n    -webkit-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);\n    transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);\n}\n\n.reveal[data-background-transition='concave'] > .backgrounds .slide-background.future,\n.reveal > .backgrounds .slide-background.future[data-background-transition='concave'] {\n    opacity: 0;\n    -webkit-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);\n    transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);\n}\n\n.reveal[data-background-transition='concave']\n    > .backgrounds\n    .slide-background\n    > .slide-background.past,\n.reveal\n    > .backgrounds\n    .slide-background\n    > .slide-background.past[data-background-transition='concave'] {\n    opacity: 0;\n    -webkit-transform: translate3d(0, -100%, 0) rotateX(-90deg) translate3d(0, -100%, 0);\n    transform: translate3d(0, -100%, 0) rotateX(-90deg) translate3d(0, -100%, 0);\n}\n\n.reveal[data-background-transition='concave']\n    > .backgrounds\n    .slide-background\n    > .slide-background.future,\n.reveal\n    > .backgrounds\n    .slide-background\n    > .slide-background.future[data-background-transition='concave'] {\n    opacity: 0;\n    -webkit-transform: translate3d(0, 100%, 0) rotateX(90deg) translate3d(0, 100%, 0);\n    transform: translate3d(0, 100%, 0) rotateX(90deg) translate3d(0, 100%, 0);\n}\n\n/* Zoom */\n.reveal[data-background-transition='zoom'] > .backgrounds .slide-background,\n.reveal > .backgrounds .slide-background[data-background-transition='zoom'] {\n    transition-timing-function: ease;\n}\n\n.reveal[data-background-transition='zoom'] > .backgrounds .slide-background.past,\n.reveal > .backgrounds .slide-background.past[data-background-transition='zoom'] {\n    opacity: 0;\n    visibility: hidden;\n    -webkit-transform: scale(16);\n    transform: scale(16);\n}\n\n.reveal[data-background-transition='zoom'] > .backgrounds .slide-background.future,\n.reveal > .backgrounds .slide-background.future[data-background-transition='zoom'] {\n    opacity: 0;\n    visibility: hidden;\n    -webkit-transform: scale(0.2);\n    transform: scale(0.2);\n}\n\n.reveal[data-background-transition='zoom']\n    > .backgrounds\n    .slide-background\n    > .slide-background.past,\n.reveal\n    > .backgrounds\n    .slide-background\n    > .slide-background.past[data-background-transition='zoom'] {\n    opacity: 0;\n    visibility: hidden;\n    -webkit-transform: scale(16);\n    transform: scale(16);\n}\n\n.reveal[data-background-transition='zoom']\n    > .backgrounds\n    .slide-background\n    > .slide-background.future,\n.reveal\n    > .backgrounds\n    .slide-background\n    > .slide-background.future[data-background-transition='zoom'] {\n    opacity: 0;\n    visibility: hidden;\n    -webkit-transform: scale(0.2);\n    transform: scale(0.2);\n}\n\n/* Global transition speed settings */\n.reveal[data-transition-speed='fast'] > .backgrounds .slide-background {\n    transition-duration: 400ms;\n}\n\n.reveal[data-transition-speed='slow'] > .backgrounds .slide-background {\n    transition-duration: 1200ms;\n}\n\n/*********************************************\n * OVERVIEW\n *********************************************/\n.reveal.overview {\n    -webkit-perspective-origin: 50% 50%;\n    perspective-origin: 50% 50%;\n    -webkit-perspective: 700px;\n    perspective: 700px;\n}\n.reveal.overview .slides {\n    -moz-transform-style: preserve-3d;\n}\n.reveal.overview .slides section {\n    height: 100%;\n    top: 0 !important;\n    opacity: 1 !important;\n    overflow: hidden;\n    visibility: visible !important;\n    cursor: pointer;\n    box-sizing: border-box;\n}\n.reveal.overview .slides section:hover,\n.reveal.overview .slides section.present {\n    outline: 10px solid rgba(150, 150, 150, 0.4);\n    outline-offset: 10px;\n}\n.reveal.overview .slides section .fragment {\n    opacity: 1;\n    transition: none;\n}\n.reveal.overview .slides section:after,\n.reveal.overview .slides section:before {\n    display: none !important;\n}\n.reveal.overview .slides > section.stack {\n    padding: 0;\n    top: 0 !important;\n    background: none;\n    outline: none;\n    overflow: visible;\n}\n.reveal.overview .backgrounds {\n    -webkit-perspective: inherit;\n    perspective: inherit;\n    -moz-transform-style: preserve-3d;\n}\n.reveal.overview .backgrounds .slide-background {\n    opacity: 1;\n    visibility: visible;\n    outline: 10px solid rgba(150, 150, 150, 0.1);\n    outline-offset: 10px;\n}\n.reveal.overview .backgrounds .slide-background.stack {\n    overflow: visible;\n}\n\n.reveal.overview .slides section,\n.reveal.overview-deactivating .slides section {\n    transition: none;\n}\n\n.reveal.overview .backgrounds .slide-background,\n.reveal.overview-deactivating .backgrounds .slide-background {\n    transition: none;\n}\n\n/*********************************************\n * RTL SUPPORT\n *********************************************/\n.reveal.rtl .slides,\n.reveal.rtl .slides h1,\n.reveal.rtl .slides h2,\n.reveal.rtl .slides h3,\n.reveal.rtl .slides h4,\n.reveal.rtl .slides h5,\n.reveal.rtl .slides h6 {\n    direction: rtl;\n    font-family: sans-serif;\n}\n\n.reveal.rtl pre,\n.reveal.rtl code {\n    direction: ltr;\n}\n\n.reveal.rtl ol,\n.reveal.rtl ul {\n    text-align: right;\n}\n\n.reveal.rtl .progress span {\n    float: right;\n}\n\n/*********************************************\n * PARALLAX BACKGROUND\n *********************************************/\n.reveal.has-parallax-background .backgrounds {\n    transition: all 0.8s ease;\n}\n\n/* Global transition speed settings */\n.reveal.has-parallax-background[data-transition-speed='fast'] .backgrounds {\n    transition-duration: 400ms;\n}\n\n.reveal.has-parallax-background[data-transition-speed='slow'] .backgrounds {\n    transition-duration: 1200ms;\n}\n\n/*********************************************\n * OVERLAY FOR LINK PREVIEWS AND HELP\n *********************************************/\n.reveal > .overlay {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    z-index: 1000;\n    background: rgba(0, 0, 0, 0.9);\n    opacity: 0;\n    visibility: hidden;\n    transition: all 0.3s ease;\n}\n\n.reveal > .overlay.visible {\n    opacity: 1;\n    visibility: visible;\n}\n\n.reveal > .overlay .spinner {\n    position: absolute;\n    display: block;\n    top: 50%;\n    left: 50%;\n    width: 32px;\n    height: 32px;\n    margin: -16px 0 0 -16px;\n    z-index: 10;\n    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);\n    visibility: visible;\n    opacity: 0.6;\n    transition: all 0.3s ease;\n}\n\n.reveal > .overlay header {\n    position: absolute;\n    left: 0;\n    top: 0;\n    width: 100%;\n    height: 40px;\n    z-index: 2;\n    border-bottom: 1px solid #222;\n}\n\n.reveal > .overlay header a {\n    display: inline-block;\n    width: 40px;\n    height: 40px;\n    line-height: 36px;\n    padding: 0 10px;\n    float: right;\n    opacity: 0.6;\n    box-sizing: border-box;\n}\n\n.reveal > .overlay header a:hover {\n    opacity: 1;\n}\n\n.reveal > .overlay header a .icon {\n    display: inline-block;\n    width: 20px;\n    height: 20px;\n    background-position: 50% 50%;\n    background-size: 100%;\n    background-repeat: no-repeat;\n}\n\n.reveal > .overlay header a.close .icon {\n    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC);\n}\n\n.reveal > .overlay header a.external .icon {\n    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==);\n}\n\n.reveal > .overlay .viewport {\n    position: absolute;\n    display: -webkit-box;\n    display: -ms-flexbox;\n    display: flex;\n    top: 40px;\n    right: 0;\n    bottom: 0;\n    left: 0;\n}\n\n.reveal > .overlay.overlay-preview .viewport iframe {\n    width: 100%;\n    height: 100%;\n    max-width: 100%;\n    max-height: 100%;\n    border: 0;\n    opacity: 0;\n    visibility: hidden;\n    transition: all 0.3s ease;\n}\n\n.reveal > .overlay.overlay-preview.loaded .viewport iframe {\n    opacity: 1;\n    visibility: visible;\n}\n\n.reveal > .overlay.overlay-preview.loaded .viewport-inner {\n    position: absolute;\n    z-index: -1;\n    left: 0;\n    top: 45%;\n    width: 100%;\n    text-align: center;\n    letter-spacing: normal;\n}\n\n.reveal > .overlay.overlay-preview .x-frame-error {\n    opacity: 0;\n    transition: opacity 0.3s ease 0.3s;\n}\n\n.reveal > .overlay.overlay-preview.loaded .x-frame-error {\n    opacity: 1;\n}\n\n.reveal > .overlay.overlay-preview.loaded .spinner {\n    opacity: 0;\n    visibility: hidden;\n    -webkit-transform: scale(0.2);\n    transform: scale(0.2);\n}\n\n.reveal > .overlay.overlay-help .viewport {\n    overflow: auto;\n    color: #fff;\n}\n\n.reveal > .overlay.overlay-help .viewport .viewport-inner {\n    width: 600px;\n    margin: auto;\n    padding: 20px 20px 80px 20px;\n    text-align: center;\n    letter-spacing: normal;\n}\n\n.reveal > .overlay.overlay-help .viewport .viewport-inner .title {\n    font-size: 20px;\n}\n\n.reveal > .overlay.overlay-help .viewport .viewport-inner table {\n    border: 1px solid #fff;\n    border-collapse: collapse;\n    font-size: 16px;\n}\n\n.reveal > .overlay.overlay-help .viewport .viewport-inner table th,\n.reveal > .overlay.overlay-help .viewport .viewport-inner table td {\n    width: 200px;\n    padding: 14px;\n    border: 1px solid #fff;\n    vertical-align: middle;\n}\n\n.reveal > .overlay.overlay-help .viewport .viewport-inner table th {\n    padding-top: 20px;\n    padding-bottom: 20px;\n}\n\n/*********************************************\n * PLAYBACK COMPONENT\n *********************************************/\n.reveal .playback {\n    position: absolute;\n    left: 15px;\n    bottom: 20px;\n    z-index: 30;\n    cursor: pointer;\n    transition: all 400ms ease;\n    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.reveal.overview .playback {\n    opacity: 0;\n    visibility: hidden;\n}\n\n/*********************************************\n * CODE HIGHLGIHTING\n *********************************************/\n.reveal .hljs table {\n    margin: initial;\n}\n\n.reveal .hljs-ln-code,\n.reveal .hljs-ln-numbers {\n    padding: 0;\n    border: 0;\n}\n\n.reveal .hljs-ln-numbers {\n    opacity: 0.6;\n    padding-right: 0.75em;\n    text-align: right;\n    vertical-align: top;\n}\n\n.reveal .hljs[data-line-numbers]:not([data-line-numbers='']) tr:not(.highlight-line) {\n    opacity: 0.4;\n}\n\n/*********************************************\n * ROLLING LINKS\n *********************************************/\n.reveal .roll {\n    display: inline-block;\n    line-height: 1.2;\n    overflow: hidden;\n    vertical-align: top;\n    -webkit-perspective: 400px;\n    perspective: 400px;\n    -webkit-perspective-origin: 50% 50%;\n    perspective-origin: 50% 50%;\n}\n\n.reveal .roll:hover {\n    background: none;\n    text-shadow: none;\n}\n\n.reveal .roll span {\n    display: block;\n    position: relative;\n    padding: 0 2px;\n    pointer-events: none;\n    transition: all 400ms ease;\n    -webkit-transform-origin: 50% 0%;\n    transform-origin: 50% 0%;\n    -webkit-transform-style: preserve-3d;\n    transform-style: preserve-3d;\n    -webkit-backface-visibility: hidden;\n    backface-visibility: hidden;\n}\n\n.reveal .roll:hover span {\n    background: rgba(0, 0, 0, 0.5);\n    -webkit-transform: translate3d(0px, 0px, -45px) rotateX(90deg);\n    transform: translate3d(0px, 0px, -45px) rotateX(90deg);\n}\n\n.reveal .roll span:after {\n    content: attr(data-title);\n    display: block;\n    position: absolute;\n    left: 0;\n    top: 0;\n    padding: 0 2px;\n    -webkit-backface-visibility: hidden;\n    backface-visibility: hidden;\n    -webkit-transform-origin: 50% 0%;\n    transform-origin: 50% 0%;\n    -webkit-transform: translate3d(0px, 110%, 0px) rotateX(-90deg);\n    transform: translate3d(0px, 110%, 0px) rotateX(-90deg);\n}\n\n/*********************************************\n * SPEAKER NOTES\n *********************************************/\n.reveal aside.notes {\n    display: none;\n}\n\n.reveal .speaker-notes {\n    display: none;\n    position: absolute;\n    width: 33.3333333333%;\n    height: 100%;\n    top: 0;\n    left: 100%;\n    padding: 14px 18px 14px 18px;\n    z-index: 1;\n    font-size: 18px;\n    line-height: 1.4;\n    border: 1px solid rgba(0, 0, 0, 0.05);\n    color: #222;\n    background-color: #f5f5f5;\n    overflow: auto;\n    box-sizing: border-box;\n    text-align: left;\n    font-family: Helvetica, sans-serif;\n    -webkit-overflow-scrolling: touch;\n}\n.reveal .speaker-notes .notes-placeholder {\n    color: #ccc;\n    font-style: italic;\n}\n.reveal .speaker-notes:focus {\n    outline: none;\n}\n.reveal .speaker-notes:before {\n    content: 'Speaker notes';\n    display: block;\n    margin-bottom: 10px;\n    opacity: 0.5;\n}\n\n.reveal.show-notes {\n    max-width: 75%;\n    overflow: visible;\n}\n\n.reveal.show-notes .speaker-notes {\n    display: block;\n}\n\n@media screen and (min-width: 1600px) {\n    .reveal .speaker-notes {\n        font-size: 20px;\n    }\n}\n\n@media screen and (max-width: 1024px) {\n    .reveal.show-notes {\n        border-left: 0;\n        max-width: none;\n        max-height: 70%;\n        max-height: 70vh;\n        overflow: visible;\n    }\n    .reveal.show-notes .speaker-notes {\n        top: 100%;\n        left: 0;\n        width: 100%;\n        height: 42.8571428571%;\n        height: 30vh;\n        border: 0;\n    }\n}\n\n@media screen and (max-width: 600px) {\n    .reveal.show-notes {\n        max-height: 60%;\n        max-height: 60vh;\n    }\n    .reveal.show-notes .speaker-notes {\n        top: 100%;\n        height: 66.6666666667%;\n        height: 40vh;\n    }\n    .reveal .speaker-notes {\n        font-size: 14px;\n    }\n}\n\n/*********************************************\n * ZOOM PLUGIN\n *********************************************/\n.zoomed .reveal *,\n.zoomed .reveal *:before,\n.zoomed .reveal *:after {\n    -webkit-backface-visibility: visible !important;\n    backface-visibility: visible !important;\n}\n\n.zoomed .reveal .progress,\n.zoomed .reveal .controls {\n    opacity: 0;\n}\n\n.zoomed .reveal .roll span {\n    background: none;\n}\n\n.zoomed .reveal .roll span:after {\n    visibility: hidden;\n}\n"
  },
  {
    "path": "src/styles/slides.module.sass",
    "content": ".root\n    position: relative\n    width: 100%\n    height: 600px\n    overflow: hidden\n\n.slides\n    text-align: left !important\n\n\\:global\n    .reveal\n        h1\n            border-bottom: 1px solid var(--color-subtle-medium)\n\n        h1, h2, h3, pre, ul, ol\n            margin-bottom: 3rem\n\n        li\n            margin-left: 2rem\n\n        img\n            margin-bottom: 2rem\n\n        img[align]\n            padding: 2rem\n\n        td\n            border-bottom: 1px solid var(--color-subtle-medium)\n\n        th\n            border-bottom: 2px solid var(--color-theme)\n\n        a\n            color: var(--color-theme)\n            text-decoration: underline\n\n        section\n            height: 100%\n            padding: 1rem\n\n        section:first-child h1,\n        section:last-child h1\n            font-size: 4rem\n            border: 0\n            text-align: center\n            width: 100%\n            height: 100%\n            display: flex\n            align-items: center\n            justify-content: center\n\n        pre\n            margin-bottom: 1.5rem\n\n        pre code\n            width: 100%\n            display: block\n            padding: 0.5rem 1rem !important\n            border-radius: var(--border-radius)\n            background: var(--syntax-background)\n            color: var(--syntax-text)\n            position: relative\n\n        pre code.language-out\n            background: var(--syntax-text)\n            color: var(--syntax-background)\n\n            &:before\n                content: \"Output\"\n                position: absolute\n                top: 0.5rem\n                right: 1rem\n                font-family: var(--font-primary)\n                text-transform: uppercase\n                font-weight: bold\n                font-size: var(--font-size-xs)\n\n    .reveal.show-notes\n        max-width: 70%\n\n    .reveal .speaker-notes\n        background: var(--color-back)\n        border: 2px solid var(--color-subtle-medium)\n        color: var(--color-subtle-dark)\n        font-size: var(--font-size-xs)\n        font-family: var(--font-primary)\n        border-radius: var(--border-radius)\n        width: 40%\n        margin-left: 2.75%\n        height: 100%\n        overflow: auto\n\n        p\n            margin-bottom: 1.5rem\n\n        &:before\n            content: \"Script\"\n            font-weight: bold\n            color: inherit\n            opacity: 1\n\n    @media(max-width: 1024px)\n        .reveal.show-notes\n            max-width: 100%\n\n        .reveal.show-notes .speaker-notes\n            width: 100%\n            margin-left: 0\n            top: 125%\n            overflow: auto\n\n    @media(max-width: 600px)\n        .reveal.show-notes .speaker-notes\n            height: auto\n            top: 100%\n"
  },
  {
    "path": "src/styles/typography.module.sass",
    "content": ".h3\n    font-size: var(--font-size-md)\n    font-weight: bold\n    margin-bottom: 2rem\n\n.hr\n    border: 0\n    height: 0\n    margin-top: 7rem\n    margin-bottom: 7rem\n\n.ul,\n.ol\n    margin-bottom: 3rem\n\n.ol\n    list-style: none\n    counter-reset: ul\n\n    .li\n        margin-left: 0.5rem\n\n        &:before\n            margin-right: 1rem\n            font-weight: bold\n            counter-increment: ul\n            content: counter(ul) \". \"\n\n.li\n    margin-left: 2rem\n\n.code\n    background: var(--color-background-code)\n    padding: 2px 5px\n    border-radius: var(--border-radius)\n\n    pre &\n        background: var(--color-subtle-light)\n\n\\:global\n    pre code\n        background: var(--color-subtle-light)\n\n    p code, li code\n        background: var(--color-background-code)\n        padding: 2px 5px\n        border-radius: var(--border-radius)\n"
  },
  {
    "path": "src/templates/chapter.js",
    "content": "import React, { useState } from 'react'\nimport { graphql, navigate } from 'gatsby'\nimport useLocalStorage from '@illinois/react-use-local-storage'\n\nimport { renderAst } from '../markdown'\nimport { ChapterContext } from '../context'\nimport Layout from '../components/layout'\nimport { Button } from '../components/button'\n\nimport classes from '../styles/chapter.module.sass'\n\nconst Template = ({ data }) => {\n    const { markdownRemark, site } = data\n    const { courseId } = site.siteMetadata\n    const { frontmatter, htmlAst } = markdownRemark\n    const { title, description, prev, next, id } = frontmatter\n    const [activeExc, setActiveExc] = useState(null)\n    const [completed, setCompleted] = useLocalStorage(`${courseId}-completed-${id}`, [])\n    const html = renderAst(htmlAst)\n    const buttons = [\n        { slug: prev, text: '« Previous Chapter' },\n        { slug: next, text: 'Next Chapter »' },\n    ]\n\n    return (\n        <ChapterContext.Provider value={{ activeExc, setActiveExc, completed, setCompleted }}>\n            <Layout title={title} description={description}>\n                {html}\n\n                <section className={classes.pagination}>\n                    {buttons.map(({ slug, text }) => (\n                        <div key={slug}>\n                            {slug && (\n                                <Button variant=\"secondary\" small onClick={() => navigate(slug)}>\n                                    {text}\n                                </Button>\n                            )}\n                        </div>\n                    ))}\n                </section>\n            </Layout>\n        </ChapterContext.Provider>\n    )\n}\n\nexport default Template\n\nexport const pageQuery = graphql`\n    query($slug: String!) {\n        site {\n            siteMetadata {\n                courseId\n            }\n        }\n        markdownRemark(fields: { slug: { eq: $slug } }) {\n            htmlAst\n            frontmatter {\n                id\n                title\n                description\n                next\n                prev\n            }\n        }\n    }\n`\n"
  },
  {
    "path": "theme.sass",
    "content": "\\:root\n    --font-primary: Lato, Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'\n    --font-display: 'IBM Plex Sans', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'\n    --font-code: 'IBM Plex Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace\n\n    // Font Sizes\n    --font-size-xs: 1.15rem\n    --font-size-sm: 1.3rem\n    --font-size-md: 1.5rem\n    --font-size-lg: 1.8rem\n    --font-size-xl: 2.4rem\n\n    // Line heights\n    --line-height: 1.6\n\n    // Colors\n    --color-back: #fff\n    --color-front: #444\n    --color-theme: #de7878\n    --color-theme-contrast: #fff\n    --color-subtle-dark: #777\n    --color-subtle-medium: #eee\n    --color-subtle-light: #f9f9f9\n    --color-background-code: #7a818117\n\n    --color-button-primary: #29c15b\n    --color-button-primary-contrast: #fff\n    --color-button-secondary: #cdcdd4\n    --color-button-secondary-contrast: #686873\n    --color-button-danger: #d21313\n    --color-button-danger-contrast: #fff\n\n    --color-correct-light: #e3fde8\n    --color-correct-dark: #007737\n    --color-incorrect-light: #fde7e7\n    --color-incorrect-dark: #d21313\n\n    // Syntax Highlighting\n    // based on https://github.com/sdras/night-owl-vscode-theme\n    --syntax-background: #f7f7f7\n    --syntax-text: #403f53\n    --syntax-selected-background: #7a81812b\n    --syntax-comment: #989fb1\n    --syntax-tag: #994cc3\n    --syntax-number: #aa0982\n    --syntax-selector: #994cc3\n    --syntax-operator: #994cc3\n    --syntax-function: #4876d6\n    --syntax-keyword: #994cc3\n    --syntax-regex: #5ca7e4\n\n    --ansi-green: #12dc55\n    --ansi-red: #f76464\n    --ansi-cyan: #00d8ff\n\n    // Sizes\n    --width-container: 800px\n    --size-profile-pic: 125px\n    --border-radius: 5px\n"
  }
]