From 95435e70350a4998964412f3abe42f027dc2bb5c Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 23 Oct 2016 10:21:37 +0200 Subject: [PATCH] Implemented basic search modal functionality --- .babelrc | 3 +- .eslintignore | 3 +- .eslintrc | 3 +- .github/ISSUE_TEMPLATE.md | 28 + .sass-lint.yml | 4 +- docs/extensions/codehilite.md | 4 +- docs/extensions/footnotes.md | 4 +- lib/providers/jsx.js | 2 +- lib/tasks/tests/regression/foo.js | 72 + .../tasks/tests/regression/selenium.js | 93 +- .../icons/bitbucket-black-850dc5f8b2.svg | 1 - .../assets/images/icons/bitbucket-black.svg | 20 + .../icons/bitbucket-white-42306ad0de.svg | 1 - .../assets/images/icons/bitbucket-white.svg | 20 + .../images/icons/github-black-da331b3ec4.svg | 1 - material/assets/images/icons/github-black.svg | 18 + .../images/icons/github-white-1cfc8ff99e.svg | 1 - material/assets/images/icons/github-white.svg | 18 + .../images/icons/gitlab-black-81ba4a278f.svg | 1 - material/assets/images/icons/gitlab-black.svg | 31 + .../images/icons/gitlab-white-d65054b8fe.svg | 1 - material/assets/images/icons/gitlab-white.svg | 32 + .../javascripts/application-2ff8f6a9f1.js | 58 - material/assets/javascripts/application.js | 3756 +++++++++++++++++ .../assets/javascripts/application.js.map | 1 + .../javascripts/modernizr-dede1352ed.js | 1 - material/assets/javascripts/modernizr.js | 1220 ++++++ .../stylesheets/application-2ebf05d4b7.css | 1 - material/assets/stylesheets/application.css | 1576 +++++++ .../assets/stylesheets/application.css.map | 1 + material/base.html | 6 +- material/partials/search.html | 21 +- mkdocs.yml | 3 +- package.json | 3 +- src/assets/javascripts/application.js | 60 +- .../components/Material/Sidebar/Abstract.js | 13 +- .../components/Material/Sidebar/Marker.js | 19 +- .../components/Material/Sidebar/Position.js | 43 +- .../Source/Abstract.js} | 72 +- .../components/Material/Source/GitHub.js | 0 .../components/Material/Source/GitLab.js | 0 .../javascripts/components/scrollspy.js | 131 - src/assets/javascripts/components/sidebar.js | 142 - src/assets/stylesheets/_shame.scss | 239 +- src/assets/stylesheets/base/_icons.scss | 3 +- src/assets/stylesheets/base/_typeset.scss | 8 +- .../stylesheets/extensions/_footnotes.scss | 4 +- src/assets/stylesheets/layout/_base.scss | 14 +- src/assets/stylesheets/layout/_content.scss | 2 +- src/assets/stylesheets/layout/_footer.scss | 2 +- src/assets/stylesheets/layout/_header.scss | 11 +- src/assets/stylesheets/layout/_nav.scss | 14 +- src/assets/stylesheets/layout/_search.scss | 176 +- src/assets/stylesheets/layout/_sidebar.scss | 11 +- src/assets/stylesheets/layout/_source.scss | 5 +- src/partials/search.html | 111 +- 56 files changed, 7298 insertions(+), 790 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 lib/tasks/tests/regression/foo.js rename src/assets/javascripts/components/expander.js => lib/tasks/tests/regression/selenium.js (59%) delete mode 100644 material/assets/images/icons/bitbucket-black-850dc5f8b2.svg create mode 100644 material/assets/images/icons/bitbucket-black.svg delete mode 100644 material/assets/images/icons/bitbucket-white-42306ad0de.svg create mode 100644 material/assets/images/icons/bitbucket-white.svg delete mode 100644 material/assets/images/icons/github-black-da331b3ec4.svg create mode 100644 material/assets/images/icons/github-black.svg delete mode 100644 material/assets/images/icons/github-white-1cfc8ff99e.svg create mode 100644 material/assets/images/icons/github-white.svg delete mode 100644 material/assets/images/icons/gitlab-black-81ba4a278f.svg create mode 100644 material/assets/images/icons/gitlab-black.svg delete mode 100644 material/assets/images/icons/gitlab-white-d65054b8fe.svg create mode 100644 material/assets/images/icons/gitlab-white.svg delete mode 100644 material/assets/javascripts/application-2ff8f6a9f1.js create mode 100644 material/assets/javascripts/application.js create mode 100644 material/assets/javascripts/application.js.map delete mode 100644 material/assets/javascripts/modernizr-dede1352ed.js create mode 100644 material/assets/javascripts/modernizr.js delete mode 100644 material/assets/stylesheets/application-2ebf05d4b7.css create mode 100644 material/assets/stylesheets/application.css create mode 100644 material/assets/stylesheets/application.css.map rename src/assets/javascripts/components/{search.js => Material/Source/Abstract.js} (51%) create mode 100644 src/assets/javascripts/components/Material/Source/GitHub.js create mode 100644 src/assets/javascripts/components/Material/Source/GitLab.js delete mode 100644 src/assets/javascripts/components/scrollspy.js delete mode 100644 src/assets/javascripts/components/sidebar.js diff --git a/.babelrc b/.babelrc index 9691c8965..0be079203 100644 --- a/.babelrc +++ b/.babelrc @@ -2,8 +2,9 @@ "presets": ["es2015"], "plugins": [ "add-module-exports", + "babel-root-import", ["transform-react-jsx", { "pragma": "JSX.createElement" }] ] -} \ No newline at end of file +} diff --git a/.eslintignore b/.eslintignore index 115d06489..d80776538 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ /build /material -/site \ No newline at end of file +/site +/lib diff --git a/.eslintrc b/.eslintrc index efff6969e..6f081f879 100644 --- a/.eslintrc +++ b/.eslintrc @@ -191,9 +191,10 @@ "virtual": "abstract" }, "requireParamDescription": true, + "requireReturn": false, "requireReturnDescription": true }], "yield-star-spacing": 2 }, "root": true -} \ No newline at end of file +} diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 000000000..d1ddaeb48 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,28 @@ +## Description + +[Description of the bug] + +### Expected behavior + +[What you expected to happen] + +### Actual behavior + +[What is actually happening] + +### Steps to reproduce the bug + +1. [First step] +2. [Second step] +3. [and so on...] + +### Package versions + +- Python: `python --version` +- MkDocs: `mkdocs --version` +- Material: `pip show mkdocs-material | grep -E ^Version` + +### System information + +- OS: [The operating system you're running] +- Browser: [The browser used, if relevant] \ No newline at end of file diff --git a/.sass-lint.yml b/.sass-lint.yml index eabb7cb3f..17980a189 100644 --- a/.sass-lint.yml +++ b/.sass-lint.yml @@ -22,7 +22,7 @@ files: ignore: - node_modules/** - src/assets/stylesheets/_shame.scss - - src/assets/stylesheets/extensions/_codehilite.scss # Temporary disabled + - src/assets/stylesheets/extensions/_codehilite.scss options: merge-default-rules: true @@ -122,4 +122,4 @@ rules: - 2 - convention: hyphenatedbem - allow-leading-underscore: false - zero-unit: 2 \ No newline at end of file + zero-unit: 2 diff --git a/docs/extensions/codehilite.md b/docs/extensions/codehilite.md index ce8a4eb50..92c389f83 100644 --- a/docs/extensions/codehilite.md +++ b/docs/extensions/codehilite.md @@ -543,7 +543,7 @@ io.write("\n") ``` mysql SELECT - Employees.EmployeeID`, + Employees.EmployeeID, Employees.Name, Employees.Salary, Manager.Name AS Manager @@ -702,4 +702,4 @@ end ``` [Pygments]: http://pygments.org -[300 languages]: http://pygments.org/languages \ No newline at end of file +[300 languages]: http://pygments.org/languages diff --git a/docs/extensions/footnotes.md b/docs/extensions/footnotes.md index 8a18f78b3..655f3a60a 100644 --- a/docs/extensions/footnotes.md +++ b/docs/extensions/footnotes.md @@ -8,7 +8,7 @@ sit amet, consectetur adipiscing elit. ## Headline on fourth level Footnotes[^1] have a label[^@#$%] and the footnote's content. -### 2nd Headline on fourth level +### Second Headline on fourth level [^1]: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at nisl ac urna lobortis consectetur ut vitae urna. Donec eu viverra sapien. Nam @@ -44,4 +44,4 @@ Etiam ipsum quam, mattis in purus vitae, lacinia fermentum enim. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at nisl ac urna lobortis consectetur ut vitae urna. Donec eu viverra sapien. Nam tempor auctor lacus et congue. Quisque id congue velit. Lorem ipsum dolor -sit amet, consectetur adipiscing elit. \ No newline at end of file +sit amet, consectetur adipiscing elit. diff --git a/lib/providers/jsx.js b/lib/providers/jsx.js index efcda77b0..bf2d2a6ed 100644 --- a/lib/providers/jsx.js +++ b/lib/providers/jsx.js @@ -27,7 +27,7 @@ export default /* JSX */ { /** - * Create a native DOM node + * Create a native DOM node from JSX's intermediate representation * * @param {string} tag - Tag name * @param {object} properties - Properties diff --git a/lib/tasks/tests/regression/foo.js b/lib/tasks/tests/regression/foo.js new file mode 100644 index 000000000..5bc60af9c --- /dev/null +++ b/lib/tasks/tests/regression/foo.js @@ -0,0 +1,72 @@ + +import * as selenium from "./selenium" +import path from "path" +import Gemini from "gemini" + +export default (gulp, config) => { + return done => { + selenium.start(() => { + // const file = require( + // path.resolve(process.cwd(), + // config.tests.regression.geminiConfigPath, + // ".gemini-local.json" + // )) + + const configx = { + "rootUrl": "http://localhost:8000", + "gridUrl": "http://localhost:4444/wd/hub", + "screenshotsDir": "./tests/regression/baseline/local", + "browsers": { + "chrome": { + "desiredCapabilities": { + "browserName": "chrome" + } + } + }, + "system": { + "projectRoot": "../../../", + "sourceRoot": "src/assets/stylesheets" + } + } + + // https://www.npmjs.com/package/gemini-sauce + + console.log("running gemini...") + const gemini = new Gemini(configx) + + gemini.test("tests/regression/styleguide.js", { + reporters: ["html"] + }) + .then(() => { + console.log("success") + selenium.stop() + done() + }, err => { + console.log("fail") + selenium.stop() + throw err + }) + }) + // selenium.start(() => { + // const geminiConfig = require( + // path.resolve( + // process.cwd(), + // config.tests.regression.geminiConfigPath, + // ".gemini-local.json" + // )) + // geminiConfig.rootUrl = `http://127.0.0.1:${config.patternlabServer.port}` + // + // const gemini = new Gemini(geminiConfig) + // gemini.test(config.tests.regression.patternlabToGeminiOutput, { + // reporters: ["html"] + // }) + // .then(() => { + // selenium.stop() + // done() + // }, err => { + // selenium.stop() + // throw err + // }) + // }) + } +} diff --git a/src/assets/javascripts/components/expander.js b/lib/tasks/tests/regression/selenium.js similarity index 59% rename from src/assets/javascripts/components/expander.js rename to lib/tasks/tests/regression/selenium.js index b0d77b97e..6b58dbfb6 100644 --- a/src/assets/javascripts/components/expander.js +++ b/lib/tasks/tests/regression/selenium.js @@ -20,72 +20,53 @@ * IN THE SOFTWARE. */ +import selenium from "selenium-standalone" + /* ---------------------------------------------------------------------------- - * Navigation expander + * Locals * ------------------------------------------------------------------------- */ -class Expander { +/* Selenium server */ +let server = null - /** - * Constructor - * - * @constructor - * @param {(string|HTMLElement)} el - Selector or HTML element - */ - constructor(el) { - this.el_ = (typeof el === "string") - ? document.querySelector(el) - : el +/* ---------------------------------------------------------------------------- + * Definition + * ------------------------------------------------------------------------- */ - /* Event listener */ - this.handler_ = ev => { - this.update(ev) +export const start = done => { + selenium.start({}, (err, proc) => { + if (err) { + + /* Install selenium, if not present */ + if (/^Missing(.*)chromedriver$/.test(err.message)) { + selenium.install(done) + + /* Start selenium again */ + selenium.start({}, (err_, proc_) => { + server = proc_ + }) + + /* Otherwise, throw error */ + } else { + throw err + } } - } - /** - * Update state of expandable element - * - * @param {Event} ev - Event - * @return {void} - */ - update() {} + /* Remember process handle */ + server = server || proc + done() + }) +} - /** - * Reset state of expandable element - * - * @return {void} - */ - reset() {} - - /** - * Register listener for all relevant events - * - * @return {void} - */ - listen() { - ["click"].forEach(name => { - window.addEventListener(name, this.handler_, false) - }) - } - - /** - * Unregister listener for all relevant events - * - * @return {void} - */ - unlisten() { - ["click"].forEach(name => { - window.removeEventListener(name, this.handler_, false) - }) - - /* Perform reset */ - this.reset() - } +export const stop = () => { + if (server) + server.kill() } /* ---------------------------------------------------------------------------- - * Exports + * Signal handler * ------------------------------------------------------------------------- */ -export default Expander +/* Register signal handler for all relevant events */ +for (const signal of ["SIGTERM", "SIGINT", "exit"]) + process.on(signal, stop) diff --git a/material/assets/images/icons/bitbucket-black-850dc5f8b2.svg b/material/assets/images/icons/bitbucket-black-850dc5f8b2.svg deleted file mode 100644 index 8f79a03b7..000000000 --- a/material/assets/images/icons/bitbucket-black-850dc5f8b2.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/material/assets/images/icons/bitbucket-black.svg b/material/assets/images/icons/bitbucket-black.svg new file mode 100644 index 000000000..0ab16772c --- /dev/null +++ b/material/assets/images/icons/bitbucket-black.svg @@ -0,0 +1,20 @@ + + + diff --git a/material/assets/images/icons/bitbucket-white-42306ad0de.svg b/material/assets/images/icons/bitbucket-white-42306ad0de.svg deleted file mode 100644 index 1ddc25338..000000000 --- a/material/assets/images/icons/bitbucket-white-42306ad0de.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/material/assets/images/icons/bitbucket-white.svg b/material/assets/images/icons/bitbucket-white.svg new file mode 100644 index 000000000..1a8210a4a --- /dev/null +++ b/material/assets/images/icons/bitbucket-white.svg @@ -0,0 +1,20 @@ + + + diff --git a/material/assets/images/icons/github-black-da331b3ec4.svg b/material/assets/images/icons/github-black-da331b3ec4.svg deleted file mode 100644 index 169d723f9..000000000 --- a/material/assets/images/icons/github-black-da331b3ec4.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/material/assets/images/icons/github-black.svg b/material/assets/images/icons/github-black.svg new file mode 100644 index 000000000..843e3ac14 --- /dev/null +++ b/material/assets/images/icons/github-black.svg @@ -0,0 +1,18 @@ + + + diff --git a/material/assets/images/icons/github-white-1cfc8ff99e.svg b/material/assets/images/icons/github-white-1cfc8ff99e.svg deleted file mode 100644 index 45fbc8291..000000000 --- a/material/assets/images/icons/github-white-1cfc8ff99e.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/material/assets/images/icons/github-white.svg b/material/assets/images/icons/github-white.svg new file mode 100644 index 000000000..b475cdf2c --- /dev/null +++ b/material/assets/images/icons/github-white.svg @@ -0,0 +1,18 @@ + + + diff --git a/material/assets/images/icons/gitlab-black-81ba4a278f.svg b/material/assets/images/icons/gitlab-black-81ba4a278f.svg deleted file mode 100644 index fc533874e..000000000 --- a/material/assets/images/icons/gitlab-black-81ba4a278f.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/material/assets/images/icons/gitlab-black.svg b/material/assets/images/icons/gitlab-black.svg new file mode 100644 index 000000000..bd082aeb9 --- /dev/null +++ b/material/assets/images/icons/gitlab-black.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/material/assets/images/icons/gitlab-white-d65054b8fe.svg b/material/assets/images/icons/gitlab-white-d65054b8fe.svg deleted file mode 100644 index 1e922a9a4..000000000 --- a/material/assets/images/icons/gitlab-white-d65054b8fe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/material/assets/images/icons/gitlab-white.svg b/material/assets/images/icons/gitlab-white.svg new file mode 100644 index 000000000..b8e34209e --- /dev/null +++ b/material/assets/images/icons/gitlab-white.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/material/assets/javascripts/application-2ff8f6a9f1.js b/material/assets/javascripts/application-2ff8f6a9f1.js deleted file mode 100644 index 4171775bd..000000000 --- a/material/assets/javascripts/application-2ff8f6a9f1.js +++ /dev/null @@ -1,58 +0,0 @@ -var Application=function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n .md-nav__link");[].forEach.call(i,function(e){var t=e.nextElementSibling;t.style.maxHeight=t.getBoundingClientRect().height+"px",e.addEventListener("click",function(){var e=t.getBoundingClientRect().height;e?(t.style.maxHeight=e+"px",requestAnimationFrame(function(){t.classList.add("md-nav--transitioning"),t.style.maxHeight="0px"})):!function(){t.style.maxHeight="",t.classList.add("md-nav--toggled");var e=t.getBoundingClientRect().height;t.classList.remove("md-nav--toggled"),t.style.maxHeight="0px",requestAnimationFrame(function(){t.classList.add("md-nav--transitioning"),t.style.maxHeight=e+"px"})}()}),t.addEventListener("transitionend",function(e){e.target.classList.remove("md-nav--transitioning"),e.target.getBoundingClientRect().height>0&&(e.target.style.maxHeight="100%")})}),fetch("https://api.github.com/repos/squidfunk/mkdocs-material").then(function(e){return e.json()}).then(function(e){var t=e.stargazers_count,n=e.forks_count,i=document.querySelectorAll(".md-source__facts");[].forEach.call(i,function(e){var i=document.createElement("li");i.className="md-source__fact md-source__fact--hidden",i.innerText=t+" Stars",e.appendChild(i),setTimeout(function(e){e.classList.remove("md-source__fact--hidden")},100,i),i=document.createElement("li"),i.className="md-source__fact md-source__fact--hidden",i.innerText=n+" Forks",e.appendChild(i),setTimeout(function(e){e.classList.remove("md-source__fact--hidden")},500,i)})})["catch"](function(){}),fetch("/mkdocs/search_index.json").then(function(e){return e.json()}).then(function(t){var n=(0,u["default"])(function(){(void 0).field("title",{boost:10}),(void 0).field("text"),(void 0).ref("location")}),i={};t.docs.forEach(function(e){e.text=e.text.replace(/\s(\.,\:)\s/gi,function(e,t){return t+" "}),e.location=window.baseUrl+e.location,i[e.location]=e,n.add(e)});var o=document.getElementById("query");o.addEventListener("keyup",function(){for(var t=document.querySelector(".md-search-result__list");t.firstChild;)t.removeChild(t.firstChild);var o=n.search(e.value);o.forEach(function(e){var n=i[e.ref],o=document.createElement("a");o.classList.add("md-search-result__link"),o.href=n.location;var r=document.createElement("li");r.classList.add("md-search-result__item"),r.appendChild(o);var s=document.createElement("div");s.classList.add("md-search-result__title"),s.innerHTML=n.title,o.appendChild(s);var a=document.createElement("p");a.classList.add("md-search-result__description"),a.innerHTML=n.text,o.appendChild(a),t.appendChild(r)});var r=document.querySelector(".md-search-result__meta");r.innerHTML=o.length+" search result"+(1!==o.length?"s":"")})})["catch"](function(){})}),e.exports=t["default"]},function(e,t,n){var i;!function(){"use strict";/** - * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs. - * - * @codingstandard ftlabs-jsv2 - * @copyright The Financial Times Limited [All Rights Reserved] - * @license MIT License (see LICENSE.txt) - */ -function o(e,t){function n(e,t){return function(){return e.apply(t,arguments)}}var i;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=e,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!o.notNeeded(e)){for(var r=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],a=this,c=0,u=r.length;c=0,s=navigator.userAgent.indexOf("Android")>0&&!r,a=/iP(ad|hone|od)/.test(navigator.userAgent)&&!r,c=a&&/OS 4_\d(_\d)?/.test(navigator.userAgent),u=a&&/OS [6-7]_\d/.test(navigator.userAgent),l=navigator.userAgent.indexOf("BB10")>0;o.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(a&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},o.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!s;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},o.prototype.sendClick=function(e,t){var n,i;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),i=t.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(e),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,e.dispatchEvent(n)},o.prototype.determineEventType=function(e){return s&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},o.prototype.focus=function(e){var t;a&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},o.prototype.updateScrollParent=function(e){var t,n;if(t=e.fastClickScrollParent,!t||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},o.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},o.prototype.onTouchStart=function(e){var t,n,i;if(e.targetTouches.length>1)return!0;if(t=this.getTargetElementFromEventTarget(e.target),n=e.targetTouches[0],a){if(i=window.getSelection(),i.rangeCount&&!i.isCollapsed)return!0;if(!c){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(t)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=n.pageX,this.touchStartY=n.pageY,e.timeStamp-this.lastClickTimen||Math.abs(t.pageY-this.touchStartY)>n},o.prototype.onTouchMove=function(e){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0)},o.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},o.prototype.onTouchEnd=function(e){var t,n,i,o,r,l=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTimethis.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,u&&(r=e.changedTouches[0],l=document.elementFromPoint(r.pageX-window.pageXOffset,r.pageY-window.pageYOffset)||l,l.fastClickScrollParent=this.targetElement.fastClickScrollParent),i=l.tagName.toLowerCase(),"label"===i){if(t=this.findControl(l)){if(this.focus(l),s)return!1;l=t}}else if(this.needsFocus(l))return e.timeStamp-n>100||a&&window.top!==window&&"input"===i?(this.targetElement=null,!1):(this.focus(l),this.sendClick(l,e),a&&"select"===i||(this.targetElement=null,e.preventDefault()),!1);return!(!a||c||(o=l.fastClickScrollParent,!o||o.fastClickLastScrollTop===o.scrollTop))||(this.needsClick(l)||(e.preventDefault(),this.sendClick(l,e)),!1)},o.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},o.prototype.onMouse=function(e){return!this.targetElement||(!!e.forwardedTouchEvent||(!e.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1))))},o.prototype.onClick=function(e){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===e.target.type&&0===e.detail||(t=this.onMouse(e),t||(this.targetElement=null),t)},o.prototype.destroy=function(){var e=this.layer;s&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},o.notNeeded=function(e){var t,n,i,o;if("undefined"==typeof window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!s)return!0;if(t=document.querySelector("meta[name=viewport]")){if(t.content.indexOf("user-scalable=no")!==-1)return!0;if(n>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(l&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),i[1]>=10&&i[2]>=3&&(t=document.querySelector("meta[name=viewport]")))){if(t.content.indexOf("user-scalable=no")!==-1)return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction||(o=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],!!(o>=27&&(t=document.querySelector("meta[name=viewport]"),t&&(t.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))||("none"===e.style.touchAction||"manipulation"===e.style.touchAction))},o.attach=function(e,t){return new o(e,t)},i=function(){return o}.call(t,n,t,e),!(void 0!==i&&(e.exports=i))}()},function(e,t,n){var i,o;!function(){var r=function(e){var t=new r.Index;return t.pipeline.add(r.trimmer,r.stopWordFilter,r.stemmer),e&&e.call(t,t),t};r.version="0.7.1",/*! - * lunr.utils - * Copyright (C) 2016 Oliver Nightingale - */ -r.utils={},r.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),r.utils.asString=function(e){return void 0===e||null===e?"":e.toString()},/*! - * lunr.EventEmitter - * Copyright (C) 2016 Oliver Nightingale - */ -r.EventEmitter=function(){this.events={}},r.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},r.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);this.events[e].splice(n,1),this.events[e].length||delete this.events[e]}},r.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)})}},r.EventEmitter.prototype.hasHandler=function(e){return e in this.events},/*! - * lunr.tokenizer - * Copyright (C) 2016 Oliver Nightingale - */ -r.tokenizer=function(e){return arguments.length&&null!=e&&void 0!=e?Array.isArray(e)?e.map(function(e){return r.utils.asString(e).toLowerCase()}):e.toString().trim().toLowerCase().split(r.tokenizer.seperator):[]},r.tokenizer.seperator=/[\s\-]+/,r.tokenizer.load=function(e){var t=this.registeredFunctions[e];if(!t)throw new Error("Cannot load un-registered function: "+e);return t},r.tokenizer.label="default",r.tokenizer.registeredFunctions={"default":r.tokenizer},r.tokenizer.registerFunction=function(e,t){t in this.registeredFunctions&&r.utils.warn("Overwriting existing tokenizer: "+t),e.label=t,this.registeredFunctions[t]=e},/*! - * lunr.Pipeline - * Copyright (C) 2016 Oliver Nightingale - */ -r.Pipeline=function(){this._stack=[]},r.Pipeline.registeredFunctions={},r.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&r.utils.warn("Overwriting existing registered function: "+t),e.label=t,r.Pipeline.registeredFunctions[e.label]=e},r.Pipeline.warnIfFunctionNotRegistered=function(e){var t=e.label&&e.label in this.registeredFunctions;t||r.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},r.Pipeline.load=function(e){var t=new r.Pipeline;return e.forEach(function(e){var n=r.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load un-registered function: "+e);t.add(n)}),t},r.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){r.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},r.Pipeline.prototype.after=function(e,t){r.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},r.Pipeline.prototype.before=function(e,t){r.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},r.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);t!=-1&&this._stack.splice(t,1)},r.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,i=this._stack.length,o=0;on.idx?n=n.next:(i+=t.val*n.val,t=t.next,n=n.next);return i},r.Vector.prototype.similarity=function(e){return this.dot(e)/(this.magnitude()*e.magnitude())},/*! - * lunr.SortedSet - * Copyright (C) 2016 Oliver Nightingale - */ -r.SortedSet=function(){this.length=0,this.elements=[]},r.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},r.SortedSet.prototype.add=function(){var e,t;for(e=0;e1;){if(r===e)return o;re&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o]}return r===e?o:-1},r.SortedSet.prototype.locationFor=function(e){for(var t=0,n=this.elements.length,i=n-t,o=t+Math.floor(i/2),r=this.elements[o];i>1;)re&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o];return r>e?o:ro-1||i>s-1)break;a[n]!==c[i]?a[n]c[i]&&i++:(t.add(a[n]),n++,i++)}return t},r.SortedSet.prototype.clone=function(){var e=new r.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},r.SortedSet.prototype.union=function(e){var t,n,i;this.length>=e.length?(t=this,n=e):(t=e,n=this),i=t.clone();for(var o=0,r=n.toArray();o0&&(i=1+Math.log(this.documentStore.length/n)),this._idfCache[t]=i},r.Index.prototype.search=function(e){var t=this.pipeline.run(this.tokenizerFn(e)),n=new r.Vector,i=[],o=this._fields.reduce(function(e,t){return e+t.boost},0),s=t.some(function(e){return this.tokenStore.has(e)},this);if(!s)return[];t.forEach(function(e,t,s){var a=1/s.length*this._fields.length*o,c=this,u=this.tokenStore.expand(e).reduce(function(t,i){var o=c.corpusTokens.indexOf(i),s=c.idf(i),u=1,l=new r.SortedSet;if(i!==e){var d=Math.max(3,i.length-e.length);u=1/Math.log(d)}o>-1&&n.insert(o,a*s*u);for(var h=c.tokenStore.get(i),f=Object.keys(h),p=f.length,m=0;m0&&(this.els_[e-1].dataset.mdMarked=!0),this.index_=e;else for(var t=this.index_;t>=0;t--){if(!(this.anchors_[t].offsetTop>window.pageYOffset)){this.index_=t;break}t>0&&delete this.els_[t-1].dataset.mdMarked}this.offset_=window.pageYOffset}},{key:"reset",value:function(){[].forEach.call(this.els_,function(e){delete e.dataset.mdMarked})}}]),t}(u["default"]);t["default"]=l,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + + /* ---------------------------------------------------------------------------- + * Imports + * ------------------------------------------------------------------------- */ + + // import Expander from "./components/expander" + + var _fastclick = __webpack_require__(1); + + var _fastclick2 = _interopRequireDefault(_fastclick); + + var _lunr = __webpack_require__(3); + + var _lunr2 = _interopRequireDefault(_lunr); + + var _Material = __webpack_require__(4); + + var _Material2 = _interopRequireDefault(_Material); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + // import Search from './components/search'; + + /* ---------------------------------------------------------------------------- + * Application + * ------------------------------------------------------------------------- */ + + var Application = function () { + function Application() { + _classCallCheck(this, Application); + } + + _createClass(Application, [{ + key: "initialize", + + + /** + * @return {void} + */ + value: function initialize() { + var material = new _Material2.default(); + material.initialize(); + } + }]); + + return Application; + }(); + + exports.default = Application; + + // TODO: wrap in function call + // application module export + + /* Initialize application upon DOM ready */ + + document.addEventListener("DOMContentLoaded", function () { + + /* Test for iOS */ + Modernizr.addTest("ios", function () { + return !!navigator.userAgent.match(/(iPad|iPhone|iPod)/g); + }); + + /* Test for web application context */ + Modernizr.addTest("standalone", function () { + return !!navigator.standalone; + }); + + /* Attack FastClick to mitigate 300ms delay on touch devices */ + _fastclick2.default.attach(document.body); + + var query = document.getElementById("query"); + query.addEventListener("focus", function () { + document.querySelector(".md-search").dataset.mdLocked = ""; + }); + + /* Intercept click on search mode toggle */ + var offset = 0; + var toggle = document.getElementById("search"); + toggle.addEventListener("click", function (ev) { + // TODO: click may be the wrong event... + var list = document.body; // classList md bla + var lock = !matchMedia("only screen and (min-width: 960px)").matches; + + /* Exiting search mode */ + if (list.dataset.mdLocked) { + delete list.dataset.mdLocked; + + /* Scroll to former position, but wait for 100ms to prevent flashes + on iOS. A short timeout seems to do the trick */ + if (lock) setTimeout(function () { + window.scrollTo(0, offset); + }, 100); + + /* Entering search mode */ + } else { + offset = window.scrollY; + + /* First timeout: scroll to top after transition, to omit flickering */ + if (lock) setTimeout(function () { + window.scrollTo(0, 0); + }, 400); + + /* Second timeout: Lock body after finishing transition and scrolling to + top and focus input field. Sadly, the focus event is not dispatched + on iOS Safari and there's nothing we can do about it. */ + setTimeout(function () { + + /* This additional check is necessary to handle fast subsequent clicks + on the toggle and the timeout to lock the body must be cancelled */ + // if (ev.target.checked) { + if (lock) list.dataset.mdLocked = ""; + setTimeout(function () { + document.getElementById("query").focus(); + }, 200); + // } + }, 450); + } + }); + + // TODO: only do this on MOBILE and TABLET + var toggleSearchClose = document.querySelector(".md-search__icon"); + toggleSearchClose.setAttribute("for", "search"); // override query with search, when on mobile!!! + // toggleSearchClose.addEventListener("click", ev => { + // ev.preventDefault() + // // ev.target + // + // const search = document.getElementById("search") + // search.checked = false + // }) + + // var toc = new Sidebar('.md-sidebar--secondary'); + // toc.listen(); + + var toggles = document.querySelectorAll(".md-nav__item--nested > .md-nav__link"); + [].forEach.call(toggles, function (togglex) { + var nav = togglex.nextElementSibling; + + // 1. + + nav.style.maxHeight = nav.getBoundingClientRect().height + "px"; + + togglex.addEventListener("click", function () { + var first = nav.getBoundingClientRect().height; + if (first) { + // console.log('closing'); + nav.style.maxHeight = first + "px"; // reset! + requestAnimationFrame(function () { + + nav.classList.add("md-nav--transitioning"); + nav.style.maxHeight = "0px"; + }); + } else { + (function () { + // console.log('opening'); + + /* Toggle and read height */ + nav.style.maxHeight = ""; + + nav.classList.add("md-nav--toggled"); + var last = nav.getBoundingClientRect().height; + nav.classList.remove("md-nav--toggled"); + + // Initial state + nav.style.maxHeight = "0px"; + + /* Enable animations */ + requestAnimationFrame(function () { + nav.classList.add("md-nav--transitioning"); + nav.style.maxHeight = last + "px"; + }); + })(); + } + }); + + // Capture the end with transitionend + nav.addEventListener("transitionend", function (ev) { + ev.target.classList.remove("md-nav--transitioning"); + if (ev.target.getBoundingClientRect().height > 0) { + ev.target.style.maxHeight = "100%"; + } + }); + }); + + // setTimeout(function() { + fetch("https://api.github.com/repos/squidfunk/mkdocs-material").then(function (response) { + return response.json(); + }).then(function (data) { + // console.log(data) + var stars = data.stargazers_count; + var forks = data.forks_count; + // store in session!!! + var lists = document.querySelectorAll(".md-source__facts"); // TODO 2x list in drawer and header + [].forEach.call(lists, function (list) { + + var li = document.createElement("li"); + li.className = "md-source__fact md-source__fact--hidden"; + li.innerText = stars + " Stars"; + list.appendChild(li); + + setTimeout(function (lix) { + lix.classList.remove("md-source__fact--hidden"); + }, 100, li); + + li = document.createElement("li"); + li.className = "md-source__fact md-source__fact--hidden"; + li.innerText = forks + " Forks"; + list.appendChild(li); + + setTimeout(function (lix) { + lix.classList.remove("md-source__fact--hidden"); + }, 500, li); + }); + + // setTimeout(function() { + // li.classList.remove('md-source__fact--hidden'); + // }, 100); + }).catch(function () { + // console.log("parsing failed", ex) + + }); + + // setTimeout(function() { + fetch("/mkdocs/search_index.json") // TODO: prepend BASE URL!!! + .then(function (response) { + return response.json(); + }).then(function (data) { + // console.log(data) + + /* Create index */ + var index = (0, _lunr2.default)(function () { + /* eslint-disable no-invalid-this, lines-around-comment */ + this.field("title", { boost: 10 }); + this.field("text"); + this.ref("location"); + /* eslint-enable no-invalid-this, lines-around-comment */ + }); + + /* Index articles */ + var articles = {}; + data.docs.forEach(function (article) { + + // TODO: match for two whitespaces, then replace unnecessary whitespace after string + article.text = article.text.replace(/\s(\.,\:)\s/gi, function (string, g1) { + return g1 + " "; + }); + // TODO: window.baseUrl sucks... + article.location = window.baseUrl + article.location; + articles[article.location] = article; + index.add(article); + }); + + /* Register keyhandler to execute search on key up */ + var queryx = document.getElementById("query"); + queryx.addEventListener("keyup", function () { + var container = document.querySelector(".md-search-result__list"); + while (container.firstChild) { + container.removeChild(container.firstChild); + } // /* Abort, if the query is empty */ + // var bar = document.querySelector('.bar.search'); + // if (!query.value.length) { + // while (meta.firstChild) + // meta.removeChild(meta.firstChild); + // + // /* Restore state */ + // bar.classList.remove('non-empty'); + // return; + // } + + /* Show reset button */ + // bar.classList.add('non-empty'); + + /* Execute search */ + var results = index.search(query.value); + results.forEach(function (result) { + var article = articles[result.ref]; + + /* Create a link referring to the article */ + var link = document.createElement("a"); + link.classList.add("md-search-result__link"); + link.href = article.location; + + // /* Create article container */ + var li = document.createElement("li"); + li.classList.add("md-search-result__item"); + li.appendChild(link); + + /* Create title element */ + var title = document.createElement("div"); + title.classList.add("md-search-result__title"); + + // article.title.split(//) + + title.innerHTML = article.title; + link.appendChild(title); + + /* Truncate a string after the given number of characters */ + var truncate = function truncate(string, n) { + var i = n; + if (string.length > i) { + while (string[i] !== " " && --i > 0) {} + return string.substring(0, i) + "…"; + } + return string; + }; + + /* Create text element */ + var text = document.createElement("p"); + text.classList.add("md-search-result__description"); + text.innerHTML = truncate(article.text); // .truncate(140); + text.innerHTML = truncate(article.text, 140); // .truncate(140); + link.appendChild(text); + + container.appendChild(li); + }); + + /* Show number of search results */ + // var number = document.createElement('strong'); + + var meta = document.querySelector(".md-search-result__meta"); + meta.innerHTML = results.length + " search result" + (results.length !== 1 ? "s" : ""); + + /* Update number */ + // while (meta.firstChild) + // meta.removeChild(meta.firstChild); + // meta.appendChild(number); + }); + + // setTimeout(function() { + // li.classList.remove('md-source__fact--hidden'); + // }, 100); + }).catch(function () { + // console.log("parsing failed", ex) + }); + // }, 1000); + + fetch("https://api.github.com/repos/squidfunk/mkdocs-material/releases/latest").then(function (response) { + return response.json(); + }); + // .then(data => { + // // console.log(data) + // }) + }); + module.exports = exports["default"]; + +/***/ }, +/* 1 */ +/***/ function(module, exports, __webpack_require__) { + + var __WEBPACK_AMD_DEFINE_RESULT__;'use strict'; + + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + + ;(function () { + 'use strict'; + + /** + * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs. + * + * @codingstandard ftlabs-jsv2 + * @copyright The Financial Times Limited [All Rights Reserved] + * @license MIT License (see LICENSE.txt) + */ + + /*jslint browser:true, node:true*/ + /*global define, Event, Node*/ + + /** + * Instantiate fast-clicking listeners on the specified layer. + * + * @constructor + * @param {Element} layer The layer to listen on + * @param {Object} [options={}] The options to override the defaults + */ + + function FastClick(layer, options) { + var oldOnClick; + + options = options || {}; + + /** + * Whether a click is currently being tracked. + * + * @type boolean + */ + this.trackingClick = false; + + /** + * Timestamp for when click tracking started. + * + * @type number + */ + this.trackingClickStart = 0; + + /** + * The element being tracked for a click. + * + * @type EventTarget + */ + this.targetElement = null; + + /** + * X-coordinate of touch start event. + * + * @type number + */ + this.touchStartX = 0; + + /** + * Y-coordinate of touch start event. + * + * @type number + */ + this.touchStartY = 0; + + /** + * ID of the last touch, retrieved from Touch.identifier. + * + * @type number + */ + this.lastTouchIdentifier = 0; + + /** + * Touchmove boundary, beyond which a click will be cancelled. + * + * @type number + */ + this.touchBoundary = options.touchBoundary || 10; + + /** + * The FastClick layer. + * + * @type Element + */ + this.layer = layer; + + /** + * The minimum time between tap(touchstart and touchend) events + * + * @type number + */ + this.tapDelay = options.tapDelay || 200; + + /** + * The maximum time for a tap + * + * @type number + */ + this.tapTimeout = options.tapTimeout || 700; + + if (FastClick.notNeeded(layer)) { + return; + } + + // Some old versions of Android don't have Function.prototype.bind + function bind(method, context) { + return function () { + return method.apply(context, arguments); + }; + } + + var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel']; + var context = this; + for (var i = 0, l = methods.length; i < l; i++) { + context[methods[i]] = bind(context[methods[i]], context); + } + + // Set up event handlers as required + if (deviceIsAndroid) { + layer.addEventListener('mouseover', this.onMouse, true); + layer.addEventListener('mousedown', this.onMouse, true); + layer.addEventListener('mouseup', this.onMouse, true); + } + + layer.addEventListener('click', this.onClick, true); + layer.addEventListener('touchstart', this.onTouchStart, false); + layer.addEventListener('touchmove', this.onTouchMove, false); + layer.addEventListener('touchend', this.onTouchEnd, false); + layer.addEventListener('touchcancel', this.onTouchCancel, false); + + // Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) + // which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick + // layer when they are cancelled. + if (!Event.prototype.stopImmediatePropagation) { + layer.removeEventListener = function (type, callback, capture) { + var rmv = Node.prototype.removeEventListener; + if (type === 'click') { + rmv.call(layer, type, callback.hijacked || callback, capture); + } else { + rmv.call(layer, type, callback, capture); + } + }; + + layer.addEventListener = function (type, callback, capture) { + var adv = Node.prototype.addEventListener; + if (type === 'click') { + adv.call(layer, type, callback.hijacked || (callback.hijacked = function (event) { + if (!event.propagationStopped) { + callback(event); + } + }), capture); + } else { + adv.call(layer, type, callback, capture); + } + }; + } + + // If a handler is already declared in the element's onclick attribute, it will be fired before + // FastClick's onClick handler. Fix this by pulling out the user-defined handler function and + // adding it as listener. + if (typeof layer.onclick === 'function') { + + // Android browser on at least 3.2 requires a new reference to the function in layer.onclick + // - the old one won't work if passed to addEventListener directly. + oldOnClick = layer.onclick; + layer.addEventListener('click', function (event) { + oldOnClick(event); + }, false); + layer.onclick = null; + } + } + + /** + * Windows Phone 8.1 fakes user agent string to look like Android and iPhone. + * + * @type boolean + */ + var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0; + + /** + * Android requires exceptions. + * + * @type boolean + */ + var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone; + + /** + * iOS requires exceptions. + * + * @type boolean + */ + var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone; + + /** + * iOS 4 requires an exception for select elements. + * + * @type boolean + */ + var deviceIsIOS4 = deviceIsIOS && /OS 4_\d(_\d)?/.test(navigator.userAgent); + + /** + * iOS 6.0-7.* requires the target element to be manually derived + * + * @type boolean + */ + var deviceIsIOSWithBadTarget = deviceIsIOS && /OS [6-7]_\d/.test(navigator.userAgent); + + /** + * BlackBerry requires exceptions. + * + * @type boolean + */ + var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0; + + /** + * Determine whether a given element requires a native click. + * + * @param {EventTarget|Element} target Target DOM element + * @returns {boolean} Returns true if the element needs a native click + */ + FastClick.prototype.needsClick = function (target) { + switch (target.nodeName.toLowerCase()) { + + // Don't send a synthetic click to disabled inputs (issue #62) + case 'button': + case 'select': + case 'textarea': + if (target.disabled) { + return true; + } + + break; + case 'input': + + // File inputs need real clicks on iOS 6 due to a browser bug (issue #68) + if (deviceIsIOS && target.type === 'file' || target.disabled) { + return true; + } + + break; + case 'label': + case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames + case 'video': + return true; + } + + return (/\bneedsclick\b/.test(target.className) + ); + }; + + /** + * Determine whether a given element requires a call to focus to simulate click into element. + * + * @param {EventTarget|Element} target Target DOM element + * @returns {boolean} Returns true if the element requires a call to focus to simulate native click. + */ + FastClick.prototype.needsFocus = function (target) { + switch (target.nodeName.toLowerCase()) { + case 'textarea': + return true; + case 'select': + return !deviceIsAndroid; + case 'input': + switch (target.type) { + case 'button': + case 'checkbox': + case 'file': + case 'image': + case 'radio': + case 'submit': + return false; + } + + // No point in attempting to focus disabled inputs + return !target.disabled && !target.readOnly; + default: + return (/\bneedsfocus\b/.test(target.className) + ); + } + }; + + /** + * Send a click event to the specified element. + * + * @param {EventTarget|Element} targetElement + * @param {Event} event + */ + FastClick.prototype.sendClick = function (targetElement, event) { + var clickEvent, touch; + + // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24) + if (document.activeElement && document.activeElement !== targetElement) { + document.activeElement.blur(); + } + + touch = event.changedTouches[0]; + + // Synthesise a click event, with an extra attribute so it can be tracked + clickEvent = document.createEvent('MouseEvents'); + clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); + clickEvent.forwardedTouchEvent = true; + targetElement.dispatchEvent(clickEvent); + }; + + FastClick.prototype.determineEventType = function (targetElement) { + + //Issue #159: Android Chrome Select Box does not open with a synthetic click event + if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') { + return 'mousedown'; + } + + return 'click'; + }; + + /** + * @param {EventTarget|Element} targetElement + */ + FastClick.prototype.focus = function (targetElement) { + var length; + + // Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724. + if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') { + length = targetElement.value.length; + targetElement.setSelectionRange(length, length); + } else { + targetElement.focus(); + } + }; + + /** + * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it. + * + * @param {EventTarget|Element} targetElement + */ + FastClick.prototype.updateScrollParent = function (targetElement) { + var scrollParent, parentElement; + + scrollParent = targetElement.fastClickScrollParent; + + // Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the + // target element was moved to another parent. + if (!scrollParent || !scrollParent.contains(targetElement)) { + parentElement = targetElement; + do { + if (parentElement.scrollHeight > parentElement.offsetHeight) { + scrollParent = parentElement; + targetElement.fastClickScrollParent = parentElement; + break; + } + + parentElement = parentElement.parentElement; + } while (parentElement); + } + + // Always update the scroll top tracker if possible. + if (scrollParent) { + scrollParent.fastClickLastScrollTop = scrollParent.scrollTop; + } + }; + + /** + * @param {EventTarget} targetElement + * @returns {Element|EventTarget} + */ + FastClick.prototype.getTargetElementFromEventTarget = function (eventTarget) { + + // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node. + if (eventTarget.nodeType === Node.TEXT_NODE) { + return eventTarget.parentNode; + } + + return eventTarget; + }; + + /** + * On touch start, record the position and scroll offset. + * + * @param {Event} event + * @returns {boolean} + */ + FastClick.prototype.onTouchStart = function (event) { + var targetElement, touch, selection; + + // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111). + if (event.targetTouches.length > 1) { + return true; + } + + targetElement = this.getTargetElementFromEventTarget(event.target); + touch = event.targetTouches[0]; + + if (deviceIsIOS) { + + // Only trusted events will deselect text on iOS (issue #49) + selection = window.getSelection(); + if (selection.rangeCount && !selection.isCollapsed) { + return true; + } + + if (!deviceIsIOS4) { + + // Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23): + // when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched + // with the same identifier as the touch event that previously triggered the click that triggered the alert. + // Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an + // immediately preceeding touch event (issue #52), so this fix is unavailable on that platform. + // Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string, + // which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long, + // random integers, it's safe to to continue if the identifier is 0 here. + if (touch.identifier && touch.identifier === this.lastTouchIdentifier) { + event.preventDefault(); + return false; + } + + this.lastTouchIdentifier = touch.identifier; + + // If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and: + // 1) the user does a fling scroll on the scrollable layer + // 2) the user stops the fling scroll with another tap + // then the event.target of the last 'touchend' event will be the element that was under the user's finger + // when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check + // is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42). + this.updateScrollParent(targetElement); + } + } + + this.trackingClick = true; + this.trackingClickStart = event.timeStamp; + this.targetElement = targetElement; + + this.touchStartX = touch.pageX; + this.touchStartY = touch.pageY; + + // Prevent phantom clicks on fast double-tap (issue #36) + if (event.timeStamp - this.lastClickTime < this.tapDelay) { + event.preventDefault(); + } + + return true; + }; + + /** + * Based on a touchmove event object, check whether the touch has moved past a boundary since it started. + * + * @param {Event} event + * @returns {boolean} + */ + FastClick.prototype.touchHasMoved = function (event) { + var touch = event.changedTouches[0], + boundary = this.touchBoundary; + + if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) { + return true; + } + + return false; + }; + + /** + * Update the last position. + * + * @param {Event} event + * @returns {boolean} + */ + FastClick.prototype.onTouchMove = function (event) { + if (!this.trackingClick) { + return true; + } + + // If the touch has moved, cancel the click tracking + if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) { + this.trackingClick = false; + this.targetElement = null; + } + + return true; + }; + + /** + * Attempt to find the labelled control for the given label element. + * + * @param {EventTarget|HTMLLabelElement} labelElement + * @returns {Element|null} + */ + FastClick.prototype.findControl = function (labelElement) { + + // Fast path for newer browsers supporting the HTML5 control attribute + if (labelElement.control !== undefined) { + return labelElement.control; + } + + // All browsers under test that support touch events also support the HTML5 htmlFor attribute + if (labelElement.htmlFor) { + return document.getElementById(labelElement.htmlFor); + } + + // If no for attribute exists, attempt to retrieve the first labellable descendant element + // the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label + return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea'); + }; + + /** + * On touch end, determine whether to send a click event at once. + * + * @param {Event} event + * @returns {boolean} + */ + FastClick.prototype.onTouchEnd = function (event) { + var forElement, + trackingClickStart, + targetTagName, + scrollParent, + touch, + targetElement = this.targetElement; + + if (!this.trackingClick) { + return true; + } + + // Prevent phantom clicks on fast double-tap (issue #36) + if (event.timeStamp - this.lastClickTime < this.tapDelay) { + this.cancelNextClick = true; + return true; + } + + if (event.timeStamp - this.trackingClickStart > this.tapTimeout) { + return true; + } + + // Reset to prevent wrong click cancel on input (issue #156). + this.cancelNextClick = false; + + this.lastClickTime = event.timeStamp; + + trackingClickStart = this.trackingClickStart; + this.trackingClick = false; + this.trackingClickStart = 0; + + // On some iOS devices, the targetElement supplied with the event is invalid if the layer + // is performing a transition or scroll, and has to be re-detected manually. Note that + // for this to function correctly, it must be called *after* the event target is checked! + // See issue #57; also filed as rdar://13048589 . + if (deviceIsIOSWithBadTarget) { + touch = event.changedTouches[0]; + + // In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null + targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement; + targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent; + } + + targetTagName = targetElement.tagName.toLowerCase(); + if (targetTagName === 'label') { + forElement = this.findControl(targetElement); + if (forElement) { + this.focus(targetElement); + if (deviceIsAndroid) { + return false; + } + + targetElement = forElement; + } + } else if (this.needsFocus(targetElement)) { + + // Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through. + // Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37). + if (event.timeStamp - trackingClickStart > 100 || deviceIsIOS && window.top !== window && targetTagName === 'input') { + this.targetElement = null; + return false; + } + + this.focus(targetElement); + this.sendClick(targetElement, event); + + // Select elements need the event to go through on iOS 4, otherwise the selector menu won't open. + // Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others) + if (!deviceIsIOS || targetTagName !== 'select') { + this.targetElement = null; + event.preventDefault(); + } + + return false; + } + + if (deviceIsIOS && !deviceIsIOS4) { + + // Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled + // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42). + scrollParent = targetElement.fastClickScrollParent; + if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) { + return true; + } + } + + // Prevent the actual click from going though - unless the target node is marked as requiring + // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted. + if (!this.needsClick(targetElement)) { + event.preventDefault(); + this.sendClick(targetElement, event); + } + + return false; + }; + + /** + * On touch cancel, stop tracking the click. + * + * @returns {void} + */ + FastClick.prototype.onTouchCancel = function () { + this.trackingClick = false; + this.targetElement = null; + }; + + /** + * Determine mouse events which should be permitted. + * + * @param {Event} event + * @returns {boolean} + */ + FastClick.prototype.onMouse = function (event) { + + // If a target element was never set (because a touch event was never fired) allow the event + if (!this.targetElement) { + return true; + } + + if (event.forwardedTouchEvent) { + return true; + } + + // Programmatically generated events targeting a specific element should be permitted + if (!event.cancelable) { + return true; + } + + // Derive and check the target element to see whether the mouse event needs to be permitted; + // unless explicitly enabled, prevent non-touch click events from triggering actions, + // to prevent ghost/doubleclicks. + if (!this.needsClick(this.targetElement) || this.cancelNextClick) { + + // Prevent any user-added listeners declared on FastClick element from being fired. + if (event.stopImmediatePropagation) { + event.stopImmediatePropagation(); + } else { + + // Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) + event.propagationStopped = true; + } + + // Cancel the event + event.stopPropagation(); + event.preventDefault(); + + return false; + } + + // If the mouse event is permitted, return true for the action to go through. + return true; + }; + + /** + * On actual clicks, determine whether this is a touch-generated click, a click action occurring + * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or + * an actual click which should be permitted. + * + * @param {Event} event + * @returns {boolean} + */ + FastClick.prototype.onClick = function (event) { + var permitted; + + // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early. + if (this.trackingClick) { + this.targetElement = null; + this.trackingClick = false; + return true; + } + + // Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target. + if (event.target.type === 'submit' && event.detail === 0) { + return true; + } + + permitted = this.onMouse(event); + + // Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through. + if (!permitted) { + this.targetElement = null; + } + + // If clicks are permitted, return true for the action to go through. + return permitted; + }; + + /** + * Remove all FastClick's event listeners. + * + * @returns {void} + */ + FastClick.prototype.destroy = function () { + var layer = this.layer; + + if (deviceIsAndroid) { + layer.removeEventListener('mouseover', this.onMouse, true); + layer.removeEventListener('mousedown', this.onMouse, true); + layer.removeEventListener('mouseup', this.onMouse, true); + } + + layer.removeEventListener('click', this.onClick, true); + layer.removeEventListener('touchstart', this.onTouchStart, false); + layer.removeEventListener('touchmove', this.onTouchMove, false); + layer.removeEventListener('touchend', this.onTouchEnd, false); + layer.removeEventListener('touchcancel', this.onTouchCancel, false); + }; + + /** + * Check whether FastClick is needed. + * + * @param {Element} layer The layer to listen on + */ + FastClick.notNeeded = function (layer) { + var metaViewport; + var chromeVersion; + var blackberryVersion; + var firefoxVersion; + + // Devices that don't support touch don't need FastClick + if (typeof window.ontouchstart === 'undefined') { + return true; + } + + // Chrome version - zero for other browsers + chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [, 0])[1]; + + if (chromeVersion) { + + if (deviceIsAndroid) { + metaViewport = document.querySelector('meta[name=viewport]'); + + if (metaViewport) { + // Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89) + if (metaViewport.content.indexOf('user-scalable=no') !== -1) { + return true; + } + // Chrome 32 and above with width=device-width or less don't need FastClick + if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) { + return true; + } + } + + // Chrome desktop doesn't need FastClick (issue #15) + } else { + return true; + } + } + + if (deviceIsBlackBerry10) { + blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/); + + // BlackBerry 10.3+ does not require Fastclick library. + // https://github.com/ftlabs/fastclick/issues/251 + if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) { + metaViewport = document.querySelector('meta[name=viewport]'); + + if (metaViewport) { + // user-scalable=no eliminates click delay. + if (metaViewport.content.indexOf('user-scalable=no') !== -1) { + return true; + } + // width=device-width (or less than device-width) eliminates click delay. + if (document.documentElement.scrollWidth <= window.outerWidth) { + return true; + } + } + } + } + + // IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97) + if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') { + return true; + } + + // Firefox version - zero for other browsers + firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [, 0])[1]; + + if (firefoxVersion >= 27) { + // Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896 + + metaViewport = document.querySelector('meta[name=viewport]'); + if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) { + return true; + } + } + + // IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version + // http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx + if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') { + return true; + } + + return false; + }; + + /** + * Factory method for creating a FastClick object + * + * @param {Element} layer The layer to listen on + * @param {Object} [options={}] The options to override the defaults + */ + FastClick.attach = function (layer, options) { + return new FastClick(layer, options); + }; + + if ("function" === 'function' && _typeof(__webpack_require__(2)) === 'object' && __webpack_require__(2)) { + + // AMD. Register as an anonymous module. + !(__WEBPACK_AMD_DEFINE_RESULT__ = function () { + return FastClick; + }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else if (typeof module !== 'undefined' && module.exports) { + module.exports = FastClick.attach; + module.exports.FastClick = FastClick; + } else { + window.FastClick = FastClick; + } + })(); + +/***/ }, +/* 2 */ +/***/ function(module, exports) { + + /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__; + + /* WEBPACK VAR INJECTION */}.call(exports, {})) + +/***/ }, +/* 3 */ +/***/ function(module, exports, __webpack_require__) { + + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;"use strict"; + + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + + /** + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 0.7.1 + * Copyright (C) 2016 Oliver Nightingale + * @license MIT + */ + + ;(function () { + + /** + * Convenience function for instantiating a new lunr index and configuring it + * with the default pipeline functions and the passed config function. + * + * When using this convenience function a new index will be created with the + * following functions already in the pipeline: + * + * lunr.StopWordFilter - filters out any stop words before they enter the + * index + * + * lunr.stemmer - stems the tokens before entering the index. + * + * Example: + * + * var idx = lunr(function () { + * this.field('title', 10) + * this.field('tags', 100) + * this.field('body') + * + * this.ref('cid') + * + * this.pipeline.add(function () { + * // some custom pipeline function + * }) + * + * }) + * + * @param {Function} config A function that will be called with the new instance + * of the lunr.Index as both its context and first parameter. It can be used to + * customize the instance of new lunr.Index. + * @namespace + * @module + * @returns {lunr.Index} + * + */ + var lunr = function lunr(config) { + var idx = new lunr.Index(); + + idx.pipeline.add(lunr.trimmer, lunr.stopWordFilter, lunr.stemmer); + + if (config) config.call(idx, idx); + + return idx; + }; + + lunr.version = "0.7.1"; + /*! + * lunr.utils + * Copyright (C) 2016 Oliver Nightingale + */ + + /** + * A namespace containing utils for the rest of the lunr library + */ + lunr.utils = {}; + + /** + * Print a warning message to the console. + * + * @param {String} message The message to be printed. + * @memberOf Utils + */ + lunr.utils.warn = function (global) { + return function (message) { + if (global.console && console.warn) { + console.warn(message); + } + }; + }(this); + + /** + * Convert an object to a string. + * + * In the case of `null` and `undefined` the function returns + * the empty string, in all other cases the result of calling + * `toString` on the passed object is returned. + * + * @param {Any} obj The object to convert to a string. + * @return {String} string representation of the passed object. + * @memberOf Utils + */ + lunr.utils.asString = function (obj) { + if (obj === void 0 || obj === null) { + return ""; + } else { + return obj.toString(); + } + }; + /*! + * lunr.EventEmitter + * Copyright (C) 2016 Oliver Nightingale + */ + + /** + * lunr.EventEmitter is an event emitter for lunr. It manages adding and removing event handlers and triggering events and their handlers. + * + * @constructor + */ + lunr.EventEmitter = function () { + this.events = {}; + }; + + /** + * Binds a handler function to a specific event(s). + * + * Can bind a single function to many different events in one call. + * + * @param {String} [eventName] The name(s) of events to bind this function to. + * @param {Function} fn The function to call when an event is fired. + * @memberOf EventEmitter + */ + lunr.EventEmitter.prototype.addListener = function () { + var args = Array.prototype.slice.call(arguments), + fn = args.pop(), + names = args; + + if (typeof fn !== "function") throw new TypeError("last argument must be a function"); + + names.forEach(function (name) { + if (!this.hasHandler(name)) this.events[name] = []; + this.events[name].push(fn); + }, this); + }; + + /** + * Removes a handler function from a specific event. + * + * @param {String} eventName The name of the event to remove this function from. + * @param {Function} fn The function to remove from an event. + * @memberOf EventEmitter + */ + lunr.EventEmitter.prototype.removeListener = function (name, fn) { + if (!this.hasHandler(name)) return; + + var fnIndex = this.events[name].indexOf(fn); + this.events[name].splice(fnIndex, 1); + + if (!this.events[name].length) delete this.events[name]; + }; + + /** + * Calls all functions bound to the given event. + * + * Additional data can be passed to the event handler as arguments to `emit` + * after the event name. + * + * @param {String} eventName The name of the event to emit. + * @memberOf EventEmitter + */ + lunr.EventEmitter.prototype.emit = function (name) { + if (!this.hasHandler(name)) return; + + var args = Array.prototype.slice.call(arguments, 1); + + this.events[name].forEach(function (fn) { + fn.apply(undefined, args); + }); + }; + + /** + * Checks whether a handler has ever been stored against an event. + * + * @param {String} eventName The name of the event to check. + * @private + * @memberOf EventEmitter + */ + lunr.EventEmitter.prototype.hasHandler = function (name) { + return name in this.events; + }; + + /*! + * lunr.tokenizer + * Copyright (C) 2016 Oliver Nightingale + */ + + /** + * A function for splitting a string into tokens ready to be inserted into + * the search index. Uses `lunr.tokenizer.seperator` to split strings, change + * the value of this property to change how strings are split into tokens. + * + * @module + * @param {String} obj The string to convert into tokens + * @see lunr.tokenizer.seperator + * @returns {Array} + */ + lunr.tokenizer = function (obj) { + if (!arguments.length || obj == null || obj == undefined) return []; + if (Array.isArray(obj)) return obj.map(function (t) { + return lunr.utils.asString(t).toLowerCase(); + }); + + return obj.toString().trim().toLowerCase().split(lunr.tokenizer.seperator); + }; + + /** + * The sperator used to split a string into tokens. Override this property to change the behaviour of + * `lunr.tokenizer` behaviour when tokenizing strings. By default this splits on whitespace and hyphens. + * + * @static + * @see lunr.tokenizer + */ + lunr.tokenizer.seperator = /[\s\-]+/; + + /** + * Loads a previously serialised tokenizer. + * + * A tokenizer function to be loaded must already be registered with lunr.tokenizer. + * If the serialised tokenizer has not been registered then an error will be thrown. + * + * @param {String} label The label of the serialised tokenizer. + * @returns {Function} + * @memberOf tokenizer + */ + lunr.tokenizer.load = function (label) { + var fn = this.registeredFunctions[label]; + + if (!fn) { + throw new Error('Cannot load un-registered function: ' + label); + } + + return fn; + }; + + lunr.tokenizer.label = 'default'; + + lunr.tokenizer.registeredFunctions = { + 'default': lunr.tokenizer + }; + + /** + * Register a tokenizer function. + * + * Functions that are used as tokenizers should be registered if they are to be used with a serialised index. + * + * Registering a function does not add it to an index, functions must still be associated with a specific index for them to be used when indexing and searching documents. + * + * @param {Function} fn The function to register. + * @param {String} label The label to register this function with + * @memberOf tokenizer + */ + lunr.tokenizer.registerFunction = function (fn, label) { + if (label in this.registeredFunctions) { + lunr.utils.warn('Overwriting existing tokenizer: ' + label); + } + + fn.label = label; + this.registeredFunctions[label] = fn; + }; + /*! + * lunr.Pipeline + * Copyright (C) 2016 Oliver Nightingale + */ + + /** + * lunr.Pipelines maintain an ordered list of functions to be applied to all + * tokens in documents entering the search index and queries being ran against + * the index. + * + * An instance of lunr.Index created with the lunr shortcut will contain a + * pipeline with a stop word filter and an English language stemmer. Extra + * functions can be added before or after either of these functions or these + * default functions can be removed. + * + * When run the pipeline will call each function in turn, passing a token, the + * index of that token in the original list of all tokens and finally a list of + * all the original tokens. + * + * The output of functions in the pipeline will be passed to the next function + * in the pipeline. To exclude a token from entering the index the function + * should return undefined, the rest of the pipeline will not be called with + * this token. + * + * For serialisation of pipelines to work, all functions used in an instance of + * a pipeline should be registered with lunr.Pipeline. Registered functions can + * then be loaded. If trying to load a serialised pipeline that uses functions + * that are not registered an error will be thrown. + * + * If not planning on serialising the pipeline then registering pipeline functions + * is not necessary. + * + * @constructor + */ + lunr.Pipeline = function () { + this._stack = []; + }; + + lunr.Pipeline.registeredFunctions = {}; + + /** + * Register a function with the pipeline. + * + * Functions that are used in the pipeline should be registered if the pipeline + * needs to be serialised, or a serialised pipeline needs to be loaded. + * + * Registering a function does not add it to a pipeline, functions must still be + * added to instances of the pipeline for them to be used when running a pipeline. + * + * @param {Function} fn The function to check for. + * @param {String} label The label to register this function with + * @memberOf Pipeline + */ + lunr.Pipeline.registerFunction = function (fn, label) { + if (label in this.registeredFunctions) { + lunr.utils.warn('Overwriting existing registered function: ' + label); + } + + fn.label = label; + lunr.Pipeline.registeredFunctions[fn.label] = fn; + }; + + /** + * Warns if the function is not registered as a Pipeline function. + * + * @param {Function} fn The function to check for. + * @private + * @memberOf Pipeline + */ + lunr.Pipeline.warnIfFunctionNotRegistered = function (fn) { + var isRegistered = fn.label && fn.label in this.registeredFunctions; + + if (!isRegistered) { + lunr.utils.warn('Function is not registered with pipeline. This may cause problems when serialising the index.\n', fn); + } + }; + + /** + * Loads a previously serialised pipeline. + * + * All functions to be loaded must already be registered with lunr.Pipeline. + * If any function from the serialised data has not been registered then an + * error will be thrown. + * + * @param {Object} serialised The serialised pipeline to load. + * @returns {lunr.Pipeline} + * @memberOf Pipeline + */ + lunr.Pipeline.load = function (serialised) { + var pipeline = new lunr.Pipeline(); + + serialised.forEach(function (fnName) { + var fn = lunr.Pipeline.registeredFunctions[fnName]; + + if (fn) { + pipeline.add(fn); + } else { + throw new Error('Cannot load un-registered function: ' + fnName); + } + }); + + return pipeline; + }; + + /** + * Adds new functions to the end of the pipeline. + * + * Logs a warning if the function has not been registered. + * + * @param {Function} functions Any number of functions to add to the pipeline. + * @memberOf Pipeline + */ + lunr.Pipeline.prototype.add = function () { + var fns = Array.prototype.slice.call(arguments); + + fns.forEach(function (fn) { + lunr.Pipeline.warnIfFunctionNotRegistered(fn); + this._stack.push(fn); + }, this); + }; + + /** + * Adds a single function after a function that already exists in the + * pipeline. + * + * Logs a warning if the function has not been registered. + * + * @param {Function} existingFn A function that already exists in the pipeline. + * @param {Function} newFn The new function to add to the pipeline. + * @memberOf Pipeline + */ + lunr.Pipeline.prototype.after = function (existingFn, newFn) { + lunr.Pipeline.warnIfFunctionNotRegistered(newFn); + + var pos = this._stack.indexOf(existingFn); + if (pos == -1) { + throw new Error('Cannot find existingFn'); + } + + pos = pos + 1; + this._stack.splice(pos, 0, newFn); + }; + + /** + * Adds a single function before a function that already exists in the + * pipeline. + * + * Logs a warning if the function has not been registered. + * + * @param {Function} existingFn A function that already exists in the pipeline. + * @param {Function} newFn The new function to add to the pipeline. + * @memberOf Pipeline + */ + lunr.Pipeline.prototype.before = function (existingFn, newFn) { + lunr.Pipeline.warnIfFunctionNotRegistered(newFn); + + var pos = this._stack.indexOf(existingFn); + if (pos == -1) { + throw new Error('Cannot find existingFn'); + } + + this._stack.splice(pos, 0, newFn); + }; + + /** + * Removes a function from the pipeline. + * + * @param {Function} fn The function to remove from the pipeline. + * @memberOf Pipeline + */ + lunr.Pipeline.prototype.remove = function (fn) { + var pos = this._stack.indexOf(fn); + if (pos == -1) { + return; + } + + this._stack.splice(pos, 1); + }; + + /** + * Runs the current list of functions that make up the pipeline against the + * passed tokens. + * + * @param {Array} tokens The tokens to run through the pipeline. + * @returns {Array} + * @memberOf Pipeline + */ + lunr.Pipeline.prototype.run = function (tokens) { + var out = [], + tokenLength = tokens.length, + stackLength = this._stack.length; + + for (var i = 0; i < tokenLength; i++) { + var token = tokens[i]; + + for (var j = 0; j < stackLength; j++) { + token = this._stack[j](token, i, tokens); + if (token === void 0 || token === '') break; + }; + + if (token !== void 0 && token !== '') out.push(token); + }; + + return out; + }; + + /** + * Resets the pipeline by removing any existing processors. + * + * @memberOf Pipeline + */ + lunr.Pipeline.prototype.reset = function () { + this._stack = []; + }; + + /** + * Returns a representation of the pipeline ready for serialisation. + * + * Logs a warning if the function has not been registered. + * + * @returns {Array} + * @memberOf Pipeline + */ + lunr.Pipeline.prototype.toJSON = function () { + return this._stack.map(function (fn) { + lunr.Pipeline.warnIfFunctionNotRegistered(fn); + + return fn.label; + }); + }; + /*! + * lunr.Vector + * Copyright (C) 2016 Oliver Nightingale + */ + + /** + * lunr.Vectors implement vector related operations for + * a series of elements. + * + * @constructor + */ + lunr.Vector = function () { + this._magnitude = null; + this.list = undefined; + this.length = 0; + }; + + /** + * lunr.Vector.Node is a simple struct for each node + * in a lunr.Vector. + * + * @private + * @param {Number} The index of the node in the vector. + * @param {Object} The data at this node in the vector. + * @param {lunr.Vector.Node} The node directly after this node in the vector. + * @constructor + * @memberOf Vector + */ + lunr.Vector.Node = function (idx, val, next) { + this.idx = idx; + this.val = val; + this.next = next; + }; + + /** + * Inserts a new value at a position in a vector. + * + * @param {Number} The index at which to insert a value. + * @param {Object} The object to insert in the vector. + * @memberOf Vector. + */ + lunr.Vector.prototype.insert = function (idx, val) { + this._magnitude = undefined; + var list = this.list; + + if (!list) { + this.list = new lunr.Vector.Node(idx, val, list); + return this.length++; + } + + if (idx < list.idx) { + this.list = new lunr.Vector.Node(idx, val, list); + return this.length++; + } + + var prev = list, + next = list.next; + + while (next != undefined) { + if (idx < next.idx) { + prev.next = new lunr.Vector.Node(idx, val, next); + return this.length++; + } + + prev = next, next = next.next; + } + + prev.next = new lunr.Vector.Node(idx, val, next); + return this.length++; + }; + + /** + * Calculates the magnitude of this vector. + * + * @returns {Number} + * @memberOf Vector + */ + lunr.Vector.prototype.magnitude = function () { + if (this._magnitude) return this._magnitude; + var node = this.list, + sumOfSquares = 0, + val; + + while (node) { + val = node.val; + sumOfSquares += val * val; + node = node.next; + } + + return this._magnitude = Math.sqrt(sumOfSquares); + }; + + /** + * Calculates the dot product of this vector and another vector. + * + * @param {lunr.Vector} otherVector The vector to compute the dot product with. + * @returns {Number} + * @memberOf Vector + */ + lunr.Vector.prototype.dot = function (otherVector) { + var node = this.list, + otherNode = otherVector.list, + dotProduct = 0; + + while (node && otherNode) { + if (node.idx < otherNode.idx) { + node = node.next; + } else if (node.idx > otherNode.idx) { + otherNode = otherNode.next; + } else { + dotProduct += node.val * otherNode.val; + node = node.next; + otherNode = otherNode.next; + } + } + + return dotProduct; + }; + + /** + * Calculates the cosine similarity between this vector and another + * vector. + * + * @param {lunr.Vector} otherVector The other vector to calculate the + * similarity with. + * @returns {Number} + * @memberOf Vector + */ + lunr.Vector.prototype.similarity = function (otherVector) { + return this.dot(otherVector) / (this.magnitude() * otherVector.magnitude()); + }; + /*! + * lunr.SortedSet + * Copyright (C) 2016 Oliver Nightingale + */ + + /** + * lunr.SortedSets are used to maintain an array of uniq values in a sorted + * order. + * + * @constructor + */ + lunr.SortedSet = function () { + this.length = 0; + this.elements = []; + }; + + /** + * Loads a previously serialised sorted set. + * + * @param {Array} serialisedData The serialised set to load. + * @returns {lunr.SortedSet} + * @memberOf SortedSet + */ + lunr.SortedSet.load = function (serialisedData) { + var set = new this(); + + set.elements = serialisedData; + set.length = serialisedData.length; + + return set; + }; + + /** + * Inserts new items into the set in the correct position to maintain the + * order. + * + * @param {Object} The objects to add to this set. + * @memberOf SortedSet + */ + lunr.SortedSet.prototype.add = function () { + var i, element; + + for (i = 0; i < arguments.length; i++) { + element = arguments[i]; + if (~this.indexOf(element)) continue; + this.elements.splice(this.locationFor(element), 0, element); + } + + this.length = this.elements.length; + }; + + /** + * Converts this sorted set into an array. + * + * @returns {Array} + * @memberOf SortedSet + */ + lunr.SortedSet.prototype.toArray = function () { + return this.elements.slice(); + }; + + /** + * Creates a new array with the results of calling a provided function on every + * element in this sorted set. + * + * Delegates to Array.prototype.map and has the same signature. + * + * @param {Function} fn The function that is called on each element of the + * set. + * @param {Object} ctx An optional object that can be used as the context + * for the function fn. + * @returns {Array} + * @memberOf SortedSet + */ + lunr.SortedSet.prototype.map = function (fn, ctx) { + return this.elements.map(fn, ctx); + }; + + /** + * Executes a provided function once per sorted set element. + * + * Delegates to Array.prototype.forEach and has the same signature. + * + * @param {Function} fn The function that is called on each element of the + * set. + * @param {Object} ctx An optional object that can be used as the context + * @memberOf SortedSet + * for the function fn. + */ + lunr.SortedSet.prototype.forEach = function (fn, ctx) { + return this.elements.forEach(fn, ctx); + }; + + /** + * Returns the index at which a given element can be found in the + * sorted set, or -1 if it is not present. + * + * @param {Object} elem The object to locate in the sorted set. + * @returns {Number} + * @memberOf SortedSet + */ + lunr.SortedSet.prototype.indexOf = function (elem) { + var start = 0, + end = this.elements.length, + sectionLength = end - start, + pivot = start + Math.floor(sectionLength / 2), + pivotElem = this.elements[pivot]; + + while (sectionLength > 1) { + if (pivotElem === elem) return pivot; + + if (pivotElem < elem) start = pivot; + if (pivotElem > elem) end = pivot; + + sectionLength = end - start; + pivot = start + Math.floor(sectionLength / 2); + pivotElem = this.elements[pivot]; + } + + if (pivotElem === elem) return pivot; + + return -1; + }; + + /** + * Returns the position within the sorted set that an element should be + * inserted at to maintain the current order of the set. + * + * This function assumes that the element to search for does not already exist + * in the sorted set. + * + * @param {Object} elem The elem to find the position for in the set + * @returns {Number} + * @memberOf SortedSet + */ + lunr.SortedSet.prototype.locationFor = function (elem) { + var start = 0, + end = this.elements.length, + sectionLength = end - start, + pivot = start + Math.floor(sectionLength / 2), + pivotElem = this.elements[pivot]; + + while (sectionLength > 1) { + if (pivotElem < elem) start = pivot; + if (pivotElem > elem) end = pivot; + + sectionLength = end - start; + pivot = start + Math.floor(sectionLength / 2); + pivotElem = this.elements[pivot]; + } + + if (pivotElem > elem) return pivot; + if (pivotElem < elem) return pivot + 1; + }; + + /** + * Creates a new lunr.SortedSet that contains the elements in the intersection + * of this set and the passed set. + * + * @param {lunr.SortedSet} otherSet The set to intersect with this set. + * @returns {lunr.SortedSet} + * @memberOf SortedSet + */ + lunr.SortedSet.prototype.intersect = function (otherSet) { + var intersectSet = new lunr.SortedSet(), + i = 0, + j = 0, + a_len = this.length, + b_len = otherSet.length, + a = this.elements, + b = otherSet.elements; + + while (true) { + if (i > a_len - 1 || j > b_len - 1) break; + + if (a[i] === b[j]) { + intersectSet.add(a[i]); + i++, j++; + continue; + } + + if (a[i] < b[j]) { + i++; + continue; + } + + if (a[i] > b[j]) { + j++; + continue; + } + }; + + return intersectSet; + }; + + /** + * Makes a copy of this set + * + * @returns {lunr.SortedSet} + * @memberOf SortedSet + */ + lunr.SortedSet.prototype.clone = function () { + var clone = new lunr.SortedSet(); + + clone.elements = this.toArray(); + clone.length = clone.elements.length; + + return clone; + }; + + /** + * Creates a new lunr.SortedSet that contains the elements in the union + * of this set and the passed set. + * + * @param {lunr.SortedSet} otherSet The set to union with this set. + * @returns {lunr.SortedSet} + * @memberOf SortedSet + */ + lunr.SortedSet.prototype.union = function (otherSet) { + var longSet, shortSet, unionSet; + + if (this.length >= otherSet.length) { + longSet = this, shortSet = otherSet; + } else { + longSet = otherSet, shortSet = this; + } + + unionSet = longSet.clone(); + + for (var i = 0, shortSetElements = shortSet.toArray(); i < shortSetElements.length; i++) { + unionSet.add(shortSetElements[i]); + } + + return unionSet; + }; + + /** + * Returns a representation of the sorted set ready for serialisation. + * + * @returns {Array} + * @memberOf SortedSet + */ + lunr.SortedSet.prototype.toJSON = function () { + return this.toArray(); + }; + /*! + * lunr.Index + * Copyright (C) 2016 Oliver Nightingale + */ + + /** + * lunr.Index is object that manages a search index. It contains the indexes + * and stores all the tokens and document lookups. It also provides the main + * user facing API for the library. + * + * @constructor + */ + lunr.Index = function () { + this._fields = []; + this._ref = 'id'; + this.pipeline = new lunr.Pipeline(); + this.documentStore = new lunr.Store(); + this.tokenStore = new lunr.TokenStore(); + this.corpusTokens = new lunr.SortedSet(); + this.eventEmitter = new lunr.EventEmitter(); + this.tokenizerFn = lunr.tokenizer; + + this._idfCache = {}; + + this.on('add', 'remove', 'update', function () { + this._idfCache = {}; + }.bind(this)); + }; + + /** + * Bind a handler to events being emitted by the index. + * + * The handler can be bound to many events at the same time. + * + * @param {String} [eventName] The name(s) of events to bind the function to. + * @param {Function} fn The serialised set to load. + * @memberOf Index + */ + lunr.Index.prototype.on = function () { + var args = Array.prototype.slice.call(arguments); + return this.eventEmitter.addListener.apply(this.eventEmitter, args); + }; + + /** + * Removes a handler from an event being emitted by the index. + * + * @param {String} eventName The name of events to remove the function from. + * @param {Function} fn The serialised set to load. + * @memberOf Index + */ + lunr.Index.prototype.off = function (name, fn) { + return this.eventEmitter.removeListener(name, fn); + }; + + /** + * Loads a previously serialised index. + * + * Issues a warning if the index being imported was serialised + * by a different version of lunr. + * + * @param {Object} serialisedData The serialised set to load. + * @returns {lunr.Index} + * @memberOf Index + */ + lunr.Index.load = function (serialisedData) { + if (serialisedData.version !== lunr.version) { + lunr.utils.warn('version mismatch: current ' + lunr.version + ' importing ' + serialisedData.version); + } + + var idx = new this(); + + idx._fields = serialisedData.fields; + idx._ref = serialisedData.ref; + + idx.tokenizer = lunr.tokenizer.load(serialisedData.tokenizer); + idx.documentStore = lunr.Store.load(serialisedData.documentStore); + idx.tokenStore = lunr.TokenStore.load(serialisedData.tokenStore); + idx.corpusTokens = lunr.SortedSet.load(serialisedData.corpusTokens); + idx.pipeline = lunr.Pipeline.load(serialisedData.pipeline); + + return idx; + }; + + /** + * Adds a field to the list of fields that will be searchable within documents + * in the index. + * + * An optional boost param can be passed to affect how much tokens in this field + * rank in search results, by default the boost value is 1. + * + * Fields should be added before any documents are added to the index, fields + * that are added after documents are added to the index will only apply to new + * documents added to the index. + * + * @param {String} fieldName The name of the field within the document that + * should be indexed + * @param {Number} boost An optional boost that can be applied to terms in this + * field. + * @returns {lunr.Index} + * @memberOf Index + */ + lunr.Index.prototype.field = function (fieldName, opts) { + var opts = opts || {}, + field = { name: fieldName, boost: opts.boost || 1 }; + + this._fields.push(field); + return this; + }; + + /** + * Sets the property used to uniquely identify documents added to the index, + * by default this property is 'id'. + * + * This should only be changed before adding documents to the index, changing + * the ref property without resetting the index can lead to unexpected results. + * + * The value of ref can be of any type but it _must_ be stably comparable and + * orderable. + * + * @param {String} refName The property to use to uniquely identify the + * documents in the index. + * @param {Boolean} emitEvent Whether to emit add events, defaults to true + * @returns {lunr.Index} + * @memberOf Index + */ + lunr.Index.prototype.ref = function (refName) { + this._ref = refName; + return this; + }; + + /** + * Sets the tokenizer used for this index. + * + * By default the index will use the default tokenizer, lunr.tokenizer. The tokenizer + * should only be changed before adding documents to the index. Changing the tokenizer + * without re-building the index can lead to unexpected results. + * + * @param {Function} fn The function to use as a tokenizer. + * @returns {lunr.Index} + * @memberOf Index + */ + lunr.Index.prototype.tokenizer = function (fn) { + var isRegistered = fn.label && fn.label in lunr.tokenizer.registeredFunctions; + + if (!isRegistered) { + lunr.utils.warn('Function is not a registered tokenizer. This may cause problems when serialising the index'); + } + + this.tokenizerFn = fn; + return this; + }; + + /** + * Add a document to the index. + * + * This is the way new documents enter the index, this function will run the + * fields from the document through the index's pipeline and then add it to + * the index, it will then show up in search results. + * + * An 'add' event is emitted with the document that has been added and the index + * the document has been added to. This event can be silenced by passing false + * as the second argument to add. + * + * @param {Object} doc The document to add to the index. + * @param {Boolean} emitEvent Whether or not to emit events, default true. + * @memberOf Index + */ + lunr.Index.prototype.add = function (doc, emitEvent) { + var docTokens = {}, + allDocumentTokens = new lunr.SortedSet(), + docRef = doc[this._ref], + emitEvent = emitEvent === undefined ? true : emitEvent; + + this._fields.forEach(function (field) { + var fieldTokens = this.pipeline.run(this.tokenizerFn(doc[field.name])); + + docTokens[field.name] = fieldTokens; + + for (var i = 0; i < fieldTokens.length; i++) { + var token = fieldTokens[i]; + allDocumentTokens.add(token); + this.corpusTokens.add(token); + } + }, this); + + this.documentStore.set(docRef, allDocumentTokens); + + for (var i = 0; i < allDocumentTokens.length; i++) { + var token = allDocumentTokens.elements[i]; + var tf = 0; + + for (var j = 0; j < this._fields.length; j++) { + var field = this._fields[j]; + var fieldTokens = docTokens[field.name]; + var fieldLength = fieldTokens.length; + + if (!fieldLength) continue; + + var tokenCount = 0; + for (var k = 0; k < fieldLength; k++) { + if (fieldTokens[k] === token) { + tokenCount++; + } + } + + tf += tokenCount / fieldLength * field.boost; + } + + this.tokenStore.add(token, { ref: docRef, tf: tf }); + }; + + if (emitEvent) this.eventEmitter.emit('add', doc, this); + }; + + /** + * Removes a document from the index. + * + * To make sure documents no longer show up in search results they can be + * removed from the index using this method. + * + * The document passed only needs to have the same ref property value as the + * document that was added to the index, they could be completely different + * objects. + * + * A 'remove' event is emitted with the document that has been removed and the index + * the document has been removed from. This event can be silenced by passing false + * as the second argument to remove. + * + * @param {Object} doc The document to remove from the index. + * @param {Boolean} emitEvent Whether to emit remove events, defaults to true + * @memberOf Index + */ + lunr.Index.prototype.remove = function (doc, emitEvent) { + var docRef = doc[this._ref], + emitEvent = emitEvent === undefined ? true : emitEvent; + + if (!this.documentStore.has(docRef)) return; + + var docTokens = this.documentStore.get(docRef); + + this.documentStore.remove(docRef); + + docTokens.forEach(function (token) { + this.tokenStore.remove(token, docRef); + }, this); + + if (emitEvent) this.eventEmitter.emit('remove', doc, this); + }; + + /** + * Updates a document in the index. + * + * When a document contained within the index gets updated, fields changed, + * added or removed, to make sure it correctly matched against search queries, + * it should be updated in the index. + * + * This method is just a wrapper around `remove` and `add` + * + * An 'update' event is emitted with the document that has been updated and the index. + * This event can be silenced by passing false as the second argument to update. Only + * an update event will be fired, the 'add' and 'remove' events of the underlying calls + * are silenced. + * + * @param {Object} doc The document to update in the index. + * @param {Boolean} emitEvent Whether to emit update events, defaults to true + * @see Index.prototype.remove + * @see Index.prototype.add + * @memberOf Index + */ + lunr.Index.prototype.update = function (doc, emitEvent) { + var emitEvent = emitEvent === undefined ? true : emitEvent; + + this.remove(doc, false); + this.add(doc, false); + + if (emitEvent) this.eventEmitter.emit('update', doc, this); + }; + + /** + * Calculates the inverse document frequency for a token within the index. + * + * @param {String} token The token to calculate the idf of. + * @see Index.prototype.idf + * @private + * @memberOf Index + */ + lunr.Index.prototype.idf = function (term) { + var cacheKey = "@" + term; + if (Object.prototype.hasOwnProperty.call(this._idfCache, cacheKey)) return this._idfCache[cacheKey]; + + var documentFrequency = this.tokenStore.count(term), + idf = 1; + + if (documentFrequency > 0) { + idf = 1 + Math.log(this.documentStore.length / documentFrequency); + } + + return this._idfCache[cacheKey] = idf; + }; + + /** + * Searches the index using the passed query. + * + * Queries should be a string, multiple words are allowed and will lead to an + * AND based query, e.g. `idx.search('foo bar')` will run a search for + * documents containing both 'foo' and 'bar'. + * + * All query tokens are passed through the same pipeline that document tokens + * are passed through, so any language processing involved will be run on every + * query term. + * + * Each query term is expanded, so that the term 'he' might be expanded to + * 'hello' and 'help' if those terms were already included in the index. + * + * Matching documents are returned as an array of objects, each object contains + * the matching document ref, as set for this index, and the similarity score + * for this document against the query. + * + * @param {String} query The query to search the index with. + * @returns {Object} + * @see Index.prototype.idf + * @see Index.prototype.documentVector + * @memberOf Index + */ + lunr.Index.prototype.search = function (query) { + var queryTokens = this.pipeline.run(this.tokenizerFn(query)), + queryVector = new lunr.Vector(), + documentSets = [], + fieldBoosts = this._fields.reduce(function (memo, f) { + return memo + f.boost; + }, 0); + + var hasSomeToken = queryTokens.some(function (token) { + return this.tokenStore.has(token); + }, this); + + if (!hasSomeToken) return []; + + queryTokens.forEach(function (token, i, tokens) { + var tf = 1 / tokens.length * this._fields.length * fieldBoosts, + self = this; + + var set = this.tokenStore.expand(token).reduce(function (memo, key) { + var pos = self.corpusTokens.indexOf(key), + idf = self.idf(key), + similarityBoost = 1, + set = new lunr.SortedSet(); + + // if the expanded key is not an exact match to the token then + // penalise the score for this key by how different the key is + // to the token. + if (key !== token) { + var diff = Math.max(3, key.length - token.length); + similarityBoost = 1 / Math.log(diff); + } + + // calculate the query tf-idf score for this token + // applying an similarityBoost to ensure exact matches + // these rank higher than expanded terms + if (pos > -1) queryVector.insert(pos, tf * idf * similarityBoost); + + // add all the documents that have this key into a set + // ensuring that the type of key is preserved + var matchingDocuments = self.tokenStore.get(key), + refs = Object.keys(matchingDocuments), + refsLen = refs.length; + + for (var i = 0; i < refsLen; i++) { + set.add(matchingDocuments[refs[i]].ref); + } + + return memo.union(set); + }, new lunr.SortedSet()); + + documentSets.push(set); + }, this); + + var documentSet = documentSets.reduce(function (memo, set) { + return memo.intersect(set); + }); + + return documentSet.map(function (ref) { + return { ref: ref, score: queryVector.similarity(this.documentVector(ref)) }; + }, this).sort(function (a, b) { + return b.score - a.score; + }); + }; + + /** + * Generates a vector containing all the tokens in the document matching the + * passed documentRef. + * + * The vector contains the tf-idf score for each token contained in the + * document with the passed documentRef. The vector will contain an element + * for every token in the indexes corpus, if the document does not contain that + * token the element will be 0. + * + * @param {Object} documentRef The ref to find the document with. + * @returns {lunr.Vector} + * @private + * @memberOf Index + */ + lunr.Index.prototype.documentVector = function (documentRef) { + var documentTokens = this.documentStore.get(documentRef), + documentTokensLength = documentTokens.length, + documentVector = new lunr.Vector(); + + for (var i = 0; i < documentTokensLength; i++) { + var token = documentTokens.elements[i], + tf = this.tokenStore.get(token)[documentRef].tf, + idf = this.idf(token); + + documentVector.insert(this.corpusTokens.indexOf(token), tf * idf); + }; + + return documentVector; + }; + + /** + * Returns a representation of the index ready for serialisation. + * + * @returns {Object} + * @memberOf Index + */ + lunr.Index.prototype.toJSON = function () { + return { + version: lunr.version, + fields: this._fields, + ref: this._ref, + tokenizer: this.tokenizerFn.label, + documentStore: this.documentStore.toJSON(), + tokenStore: this.tokenStore.toJSON(), + corpusTokens: this.corpusTokens.toJSON(), + pipeline: this.pipeline.toJSON() + }; + }; + + /** + * Applies a plugin to the current index. + * + * A plugin is a function that is called with the index as its context. + * Plugins can be used to customise or extend the behaviour the index + * in some way. A plugin is just a function, that encapsulated the custom + * behaviour that should be applied to the index. + * + * The plugin function will be called with the index as its argument, additional + * arguments can also be passed when calling use. The function will be called + * with the index as its context. + * + * Example: + * + * var myPlugin = function (idx, arg1, arg2) { + * // `this` is the index to be extended + * // apply any extensions etc here. + * } + * + * var idx = lunr(function () { + * this.use(myPlugin, 'arg1', 'arg2') + * }) + * + * @param {Function} plugin The plugin to apply. + * @memberOf Index + */ + lunr.Index.prototype.use = function (plugin) { + var args = Array.prototype.slice.call(arguments, 1); + args.unshift(this); + plugin.apply(this, args); + }; + /*! + * lunr.Store + * Copyright (C) 2016 Oliver Nightingale + */ + + /** + * lunr.Store is a simple key-value store used for storing sets of tokens for + * documents stored in index. + * + * @constructor + * @module + */ + lunr.Store = function () { + this.store = {}; + this.length = 0; + }; + + /** + * Loads a previously serialised store + * + * @param {Object} serialisedData The serialised store to load. + * @returns {lunr.Store} + * @memberOf Store + */ + lunr.Store.load = function (serialisedData) { + var store = new this(); + + store.length = serialisedData.length; + store.store = Object.keys(serialisedData.store).reduce(function (memo, key) { + memo[key] = lunr.SortedSet.load(serialisedData.store[key]); + return memo; + }, {}); + + return store; + }; + + /** + * Stores the given tokens in the store against the given id. + * + * @param {Object} id The key used to store the tokens against. + * @param {Object} tokens The tokens to store against the key. + * @memberOf Store + */ + lunr.Store.prototype.set = function (id, tokens) { + if (!this.has(id)) this.length++; + this.store[id] = tokens; + }; + + /** + * Retrieves the tokens from the store for a given key. + * + * @param {Object} id The key to lookup and retrieve from the store. + * @returns {Object} + * @memberOf Store + */ + lunr.Store.prototype.get = function (id) { + return this.store[id]; + }; + + /** + * Checks whether the store contains a key. + * + * @param {Object} id The id to look up in the store. + * @returns {Boolean} + * @memberOf Store + */ + lunr.Store.prototype.has = function (id) { + return id in this.store; + }; + + /** + * Removes the value for a key in the store. + * + * @param {Object} id The id to remove from the store. + * @memberOf Store + */ + lunr.Store.prototype.remove = function (id) { + if (!this.has(id)) return; + + delete this.store[id]; + this.length--; + }; + + /** + * Returns a representation of the store ready for serialisation. + * + * @returns {Object} + * @memberOf Store + */ + lunr.Store.prototype.toJSON = function () { + return { + store: this.store, + length: this.length + }; + }; + + /*! + * lunr.stemmer + * Copyright (C) 2016 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + */ + + /** + * lunr.stemmer is an english language stemmer, this is a JavaScript + * implementation of the PorterStemmer taken from http://tartarus.org/~martin + * + * @module + * @param {String} str The string to stem + * @returns {String} + * @see lunr.Pipeline + */ + lunr.stemmer = function () { + var step2list = { + "ational": "ate", + "tional": "tion", + "enci": "ence", + "anci": "ance", + "izer": "ize", + "bli": "ble", + "alli": "al", + "entli": "ent", + "eli": "e", + "ousli": "ous", + "ization": "ize", + "ation": "ate", + "ator": "ate", + "alism": "al", + "iveness": "ive", + "fulness": "ful", + "ousness": "ous", + "aliti": "al", + "iviti": "ive", + "biliti": "ble", + "logi": "log" + }, + step3list = { + "icate": "ic", + "ative": "", + "alize": "al", + "iciti": "ic", + "ical": "ic", + "ful": "", + "ness": "" + }, + c = "[^aeiou]", + // consonant + v = "[aeiouy]", + // vowel + C = c + "[^aeiouy]*", + // consonant sequence + V = v + "[aeiou]*", + // vowel sequence + + mgr0 = "^(" + C + ")?" + V + C, + // [C]VC... is m>0 + meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$", + // [C]VC[V] is m=1 + mgr1 = "^(" + C + ")?" + V + C + V + C, + // [C]VCVC... is m>1 + s_v = "^(" + C + ")?" + v; // vowel in stem + + var re_mgr0 = new RegExp(mgr0); + var re_mgr1 = new RegExp(mgr1); + var re_meq1 = new RegExp(meq1); + var re_s_v = new RegExp(s_v); + + var re_1a = /^(.+?)(ss|i)es$/; + var re2_1a = /^(.+?)([^s])s$/; + var re_1b = /^(.+?)eed$/; + var re2_1b = /^(.+?)(ed|ing)$/; + var re_1b_2 = /.$/; + var re2_1b_2 = /(at|bl|iz)$/; + var re3_1b_2 = new RegExp("([^aeiouylsz])\\1$"); + var re4_1b_2 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + + var re_1c = /^(.+?[^aeiou])y$/; + var re_2 = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; + + var re_3 = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; + + var re_4 = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; + var re2_4 = /^(.+?)(s|t)(ion)$/; + + var re_5 = /^(.+?)e$/; + var re_5_1 = /ll$/; + var re3_5 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + + var porterStemmer = function porterStemmer(w) { + var stem, suffix, firstch, re, re2, re3, re4; + + if (w.length < 3) { + return w; + } + + firstch = w.substr(0, 1); + if (firstch == "y") { + w = firstch.toUpperCase() + w.substr(1); + } + + // Step 1a + re = re_1a; + re2 = re2_1a; + + if (re.test(w)) { + w = w.replace(re, "$1$2"); + } else if (re2.test(w)) { + w = w.replace(re2, "$1$2"); + } + + // Step 1b + re = re_1b; + re2 = re2_1b; + if (re.test(w)) { + var fp = re.exec(w); + re = re_mgr0; + if (re.test(fp[1])) { + re = re_1b_2; + w = w.replace(re, ""); + } + } else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1]; + re2 = re_s_v; + if (re2.test(stem)) { + w = stem; + re2 = re2_1b_2; + re3 = re3_1b_2; + re4 = re4_1b_2; + if (re2.test(w)) { + w = w + "e"; + } else if (re3.test(w)) { + re = re_1b_2;w = w.replace(re, ""); + } else if (re4.test(w)) { + w = w + "e"; + } + } + } + + // Step 1c - replace suffix y or Y by i if preceded by a non-vowel which is not the first letter of the word (so cry -> cri, by -> by, say -> say) + re = re_1c; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + w = stem + "i"; + } + + // Step 2 + re = re_2; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = re_mgr0; + if (re.test(stem)) { + w = stem + step2list[suffix]; + } + } + + // Step 3 + re = re_3; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = re_mgr0; + if (re.test(stem)) { + w = stem + step3list[suffix]; + } + } + + // Step 4 + re = re_4; + re2 = re2_4; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = re_mgr1; + if (re.test(stem)) { + w = stem; + } + } else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1] + fp[2]; + re2 = re_mgr1; + if (re2.test(stem)) { + w = stem; + } + } + + // Step 5 + re = re_5; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = re_mgr1; + re2 = re_meq1; + re3 = re3_5; + if (re.test(stem) || re2.test(stem) && !re3.test(stem)) { + w = stem; + } + } + + re = re_5_1; + re2 = re_mgr1; + if (re.test(w) && re2.test(w)) { + re = re_1b_2; + w = w.replace(re, ""); + } + + // and turn initial Y back to y + + if (firstch == "y") { + w = firstch.toLowerCase() + w.substr(1); + } + + return w; + }; + + return porterStemmer; + }(); + + lunr.Pipeline.registerFunction(lunr.stemmer, 'stemmer'); + /*! + * lunr.stopWordFilter + * Copyright (C) 2016 Oliver Nightingale + */ + + /** + * lunr.generateStopWordFilter builds a stopWordFilter function from the provided + * list of stop words. + * + * The built in lunr.stopWordFilter is built using this generator and can be used + * to generate custom stopWordFilters for applications or non English languages. + * + * @module + * @param {Array} token The token to pass through the filter + * @returns {Function} + * @see lunr.Pipeline + * @see lunr.stopWordFilter + */ + lunr.generateStopWordFilter = function (stopWords) { + var words = stopWords.reduce(function (memo, stopWord) { + memo[stopWord] = stopWord; + return memo; + }, {}); + + return function (token) { + if (token && words[token] !== token) return token; + }; + }; + + /** + * lunr.stopWordFilter is an English language stop word list filter, any words + * contained in the list will not be passed through the filter. + * + * This is intended to be used in the Pipeline. If the token does not pass the + * filter then undefined will be returned. + * + * @module + * @param {String} token The token to pass through the filter + * @returns {String} + * @see lunr.Pipeline + */ + lunr.stopWordFilter = lunr.generateStopWordFilter(['a', 'able', 'about', 'across', 'after', 'all', 'almost', 'also', 'am', 'among', 'an', 'and', 'any', 'are', 'as', 'at', 'be', 'because', 'been', 'but', 'by', 'can', 'cannot', 'could', 'dear', 'did', 'do', 'does', 'either', 'else', 'ever', 'every', 'for', 'from', 'get', 'got', 'had', 'has', 'have', 'he', 'her', 'hers', 'him', 'his', 'how', 'however', 'i', 'if', 'in', 'into', 'is', 'it', 'its', 'just', 'least', 'let', 'like', 'likely', 'may', 'me', 'might', 'most', 'must', 'my', 'neither', 'no', 'nor', 'not', 'of', 'off', 'often', 'on', 'only', 'or', 'other', 'our', 'own', 'rather', 'said', 'say', 'says', 'she', 'should', 'since', 'so', 'some', 'than', 'that', 'the', 'their', 'them', 'then', 'there', 'these', 'they', 'this', 'tis', 'to', 'too', 'twas', 'us', 'wants', 'was', 'we', 'were', 'what', 'when', 'where', 'which', 'while', 'who', 'whom', 'why', 'will', 'with', 'would', 'yet', 'you', 'your']); + + lunr.Pipeline.registerFunction(lunr.stopWordFilter, 'stopWordFilter'); + /*! + * lunr.trimmer + * Copyright (C) 2016 Oliver Nightingale + */ + + /** + * lunr.trimmer is a pipeline function for trimming non word + * characters from the begining and end of tokens before they + * enter the index. + * + * This implementation may not work correctly for non latin + * characters and should either be removed or adapted for use + * with languages with non-latin characters. + * + * @module + * @param {String} token The token to pass through the filter + * @returns {String} + * @see lunr.Pipeline + */ + lunr.trimmer = function (token) { + return token.replace(/^\W+/, '').replace(/\W+$/, ''); + }; + + lunr.Pipeline.registerFunction(lunr.trimmer, 'trimmer'); + /*! + * lunr.stemmer + * Copyright (C) 2016 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + */ + + /** + * lunr.TokenStore is used for efficient storing and lookup of the reverse + * index of token to document ref. + * + * @constructor + */ + lunr.TokenStore = function () { + this.root = { docs: {} }; + this.length = 0; + }; + + /** + * Loads a previously serialised token store + * + * @param {Object} serialisedData The serialised token store to load. + * @returns {lunr.TokenStore} + * @memberOf TokenStore + */ + lunr.TokenStore.load = function (serialisedData) { + var store = new this(); + + store.root = serialisedData.root; + store.length = serialisedData.length; + + return store; + }; + + /** + * Adds a new token doc pair to the store. + * + * By default this function starts at the root of the current store, however + * it can start at any node of any token store if required. + * + * @param {String} token The token to store the doc under + * @param {Object} doc The doc to store against the token + * @param {Object} root An optional node at which to start looking for the + * correct place to enter the doc, by default the root of this lunr.TokenStore + * is used. + * @memberOf TokenStore + */ + lunr.TokenStore.prototype.add = function (token, doc, root) { + var root = root || this.root, + key = token.charAt(0), + rest = token.slice(1); + + if (!(key in root)) root[key] = { docs: {} }; + + if (rest.length === 0) { + root[key].docs[doc.ref] = doc; + this.length += 1; + return; + } else { + return this.add(rest, doc, root[key]); + } + }; + + /** + * Checks whether this key is contained within this lunr.TokenStore. + * + * By default this function starts at the root of the current store, however + * it can start at any node of any token store if required. + * + * @param {String} token The token to check for + * @param {Object} root An optional node at which to start + * @memberOf TokenStore + */ + lunr.TokenStore.prototype.has = function (token) { + if (!token) return false; + + var node = this.root; + + for (var i = 0; i < token.length; i++) { + if (!node[token.charAt(i)]) return false; + + node = node[token.charAt(i)]; + } + + return true; + }; + + /** + * Retrieve a node from the token store for a given token. + * + * By default this function starts at the root of the current store, however + * it can start at any node of any token store if required. + * + * @param {String} token The token to get the node for. + * @param {Object} root An optional node at which to start. + * @returns {Object} + * @see TokenStore.prototype.get + * @memberOf TokenStore + */ + lunr.TokenStore.prototype.getNode = function (token) { + if (!token) return {}; + + var node = this.root; + + for (var i = 0; i < token.length; i++) { + if (!node[token.charAt(i)]) return {}; + + node = node[token.charAt(i)]; + } + + return node; + }; + + /** + * Retrieve the documents for a node for the given token. + * + * By default this function starts at the root of the current store, however + * it can start at any node of any token store if required. + * + * @param {String} token The token to get the documents for. + * @param {Object} root An optional node at which to start. + * @returns {Object} + * @memberOf TokenStore + */ + lunr.TokenStore.prototype.get = function (token, root) { + return this.getNode(token, root).docs || {}; + }; + + lunr.TokenStore.prototype.count = function (token, root) { + return Object.keys(this.get(token, root)).length; + }; + + /** + * Remove the document identified by ref from the token in the store. + * + * By default this function starts at the root of the current store, however + * it can start at any node of any token store if required. + * + * @param {String} token The token to get the documents for. + * @param {String} ref The ref of the document to remove from this token. + * @param {Object} root An optional node at which to start. + * @returns {Object} + * @memberOf TokenStore + */ + lunr.TokenStore.prototype.remove = function (token, ref) { + if (!token) return; + var node = this.root; + + for (var i = 0; i < token.length; i++) { + if (!(token.charAt(i) in node)) return; + node = node[token.charAt(i)]; + } + + delete node.docs[ref]; + }; + + /** + * Find all the possible suffixes of the passed token using tokens + * currently in the store. + * + * @param {String} token The token to expand. + * @returns {Array} + * @memberOf TokenStore + */ + lunr.TokenStore.prototype.expand = function (token, memo) { + var root = this.getNode(token), + docs = root.docs || {}, + memo = memo || []; + + if (Object.keys(docs).length) memo.push(token); + + Object.keys(root).forEach(function (key) { + if (key === 'docs') return; + + memo.concat(this.expand(token + key, memo)); + }, this); + + return memo; + }; + + /** + * Returns a representation of the token store ready for serialisation. + * + * @returns {Object} + * @memberOf TokenStore + */ + lunr.TokenStore.prototype.toJSON = function () { + return { + root: this.root, + length: this.length + }; + } + + /** + * export the module via AMD, CommonJS or as a browser global + * Export code from https://github.com/umdjs/umd/blob/master/returnExports.js + */ + ;(function (root, factory) { + if (true) { + // AMD. Register as an anonymous module. + !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else if ((typeof exports === "undefined" ? "undefined" : _typeof(exports)) === 'object') { + /** + * Node. Does not work with strict CommonJS, but + * only CommonJS-like enviroments that support module.exports, + * like Node. + */ + module.exports = factory(); + } else { + // Browser globals (root is window) + root.lunr = factory(); + } + })(this, function () { + /** + * Just return a value to define the module export. + * This example returns an object, but the module + * can return a function as the exported value. + */ + return lunr; + }); + })(); + +/***/ }, +/* 4 */ +/***/ function(module, exports, __webpack_require__) { + + "use strict"; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /* + * Copyright (c) 2016 Martin Donath + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + + var _Sidebar = __webpack_require__(5); + + var _Sidebar2 = _interopRequireDefault(_Sidebar); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + /* ---------------------------------------------------------------------------- + * Material application + * ------------------------------------------------------------------------- */ + + var Material = function () { + function Material() { + _classCallCheck(this, Material); + } + + _createClass(Material, [{ + key: "initialize", + + + /** + * Constructor + * + * @constructor + */ + // constructor() { + // + // } + + /** + * @return {void} + */ + value: function initialize() { + + // class AnchorMarker extends PageYOffsetListener + // class SidebarConstrainer extends PageYOffsetListener + + // MatchMedia!? + + var width = window.matchMedia("(min-width: 1200px)"); + + // separate function in application.js --> initSidebar() + var sidebar = new _Sidebar2.default.Position("[data-md-sidebar=primary]"); + var handler = function handler() { + if (width.matches) { + sidebar.listen(); + } else { + sidebar.unlisten(); + } + }; + handler(); // check listen! + + var toc = new _Sidebar2.default.Position("[data-md-sidebar=secondary]"); + toc.listen(); + + window.addEventListener("resize", handler); // TODO: orientation change etc... + + var marker = new _Sidebar2.default.Marker("[data-md-sidebar=secondary] .md-nav__link"); + marker.listen(); + } + }]); + + return Material; + }(); + + exports.default = Material; + module.exports = exports["default"]; + +/***/ }, +/* 5 */ +/***/ function(module, exports, __webpack_require__) { + + "use strict"; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _Marker = __webpack_require__(6); + + var _Marker2 = _interopRequireDefault(_Marker); + + var _Position = __webpack_require__(8); + + var _Position2 = _interopRequireDefault(_Position); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + /* ---------------------------------------------------------------------------- + * Definition + * ------------------------------------------------------------------------- */ + + /* + * Copyright (c) 2016 Martin Donath + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + + exports.default = { + Marker: _Marker2.default, + Position: _Position2.default + }; + module.exports = exports["default"]; + +/***/ }, +/* 6 */ +/***/ function(module, exports, __webpack_require__) { + + "use strict"; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _Abstract2 = __webpack_require__(7); + + var _Abstract3 = _interopRequireDefault(_Abstract2); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* + * Copyright (c) 2016 Martin Donath + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + + /* ---------------------------------------------------------------------------- + * Definition + * ------------------------------------------------------------------------- */ + + var Marker = function (_Abstract) { + _inherits(Marker, _Abstract); + + /** + * Mark anchors within the table of contents above current page y-offset + * + * @constructor + * @param {(string|NodeList)} els - Selector or HTML elements + */ + function Marker(els) { + _classCallCheck(this, Marker); + + /* Resolve elements */ + var _this = _possibleConstructorReturn(this, (Marker.__proto__ || Object.getPrototypeOf(Marker)).call(this)); + + _this.els_ = typeof els === "string" ? document.querySelectorAll(els) : els; + + /* Initialize index and page y-offset */ + _this.index_ = 0; + _this.offset_ = window.pageYOffset; + + /* Index anchor nodes for fast lookup */ + _this.anchors_ = [].map.call(_this.els_, function (el) { + return document.querySelector(el.hash); + }); + return _this; + } + + /** + * Update anchor states + * + * @param {Event} ev - Event (omitted) + */ + + + _createClass(Marker, [{ + key: "update", + value: function update() { + var offset = window.pageYOffset; + + /* Scroll direction is down */ + if (this.offset_ <= offset) { + for (var i = this.index_ + 1; i < this.els_.length; i++) { + if (this.anchors_[i].offsetTop <= offset) { + if (i > 0) this.els_[i - 1].dataset.mdMarked = ""; + this.index_ = i; + } else { + break; + } + } + + /* Scroll direction is up */ + } else { + for (var _i = this.index_; _i >= 0; _i--) { + if (this.anchors_[_i].offsetTop > offset) { + if (_i > 0) delete this.els_[_i - 1].dataset.mdMarked; + } else { + this.index_ = _i; + break; + } + } + } + + /* Remember current offset for next iteration */ + this.offset_ = offset; + } + + /** + * Reset anchor states + */ + + }, { + key: "reset", + value: function reset() { + [].forEach.call(this.els_, function (el) { + delete el.dataset.mdMarked; + }); + } + }]); + + return Marker; + }(_Abstract3.default); + + exports.default = Marker; + module.exports = exports["default"]; + +/***/ }, +/* 7 */ +/***/ function(module, exports) { + + "use strict"; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + /* + * Copyright (c) 2016 Martin Donath + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + + /* ---------------------------------------------------------------------------- + * Definition + * ------------------------------------------------------------------------- */ + + var Abstract = function () { + + /** + * Dispatch update on next repaint + * + * @constructor + */ + function Abstract() { + var _this = this; + + _classCallCheck(this, Abstract); + + if (this === Abstract) throw new TypeError("Cannot construct abstract instance"); + + /* Dispatch update on next repaint */ + this.handler_ = function (ev) { + window.requestAnimationFrame(function () { + _this.update(ev); + }); + }; + } + + /** + * Update state + * + * @abstract + */ + + + _createClass(Abstract, [{ + key: "update", + value: function update() { + throw new Error("update(): not implemented"); + } + + /** + * Reset state + * + * @abstract + */ + + }, { + key: "reset", + value: function reset() { + throw new Error("reset(): not implemented"); + } + + /** + * Register listener for all relevant events + */ + + }, { + key: "listen", + value: function listen() { + var _this2 = this; + + ["scroll", "resize", "orientationchange"].forEach(function (name) { + window.addEventListener(name, _this2.handler_, false); + }); + + /* Initial update */ + this.update(); + } + + /** + * Unregister listener for all relevant events + */ + + }, { + key: "unlisten", + value: function unlisten() { + var _this3 = this; + + ["scroll", "resize", "orientationchange"].forEach(function (name) { + window.removeEventListener(name, _this3.handler_, false); + }); + + /* Final reset */ + this.reset(); + } + }]); + + return Abstract; + }(); + + exports.default = Abstract; + module.exports = exports["default"]; + +/***/ }, +/* 8 */ +/***/ function(module, exports, __webpack_require__) { + + "use strict"; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _Abstract2 = __webpack_require__(7); + + var _Abstract3 = _interopRequireDefault(_Abstract2); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + + function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + + function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* + * Copyright (c) 2016 Martin Donath + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + + /* ---------------------------------------------------------------------------- + * Definition + * ------------------------------------------------------------------------- */ + + var Position = function (_Abstract) { + _inherits(Position, _Abstract); + + /** + * Set sidebars to locked state and limit height to parent node + * + * @constructor + * @param {(string|HTMLElement)} el - Selector or HTML element + */ + function Position(el) { + _classCallCheck(this, Position); + + /* Resolve elements */ + var _this = _possibleConstructorReturn(this, (Position.__proto__ || Object.getPrototypeOf(Position)).call(this)); + + _this.el_ = typeof el === "string" ? document.querySelector(el) : el; + + /* Index inner and outer container */ + var inner = _this.el_.parentNode; + var outer = _this.el_.parentNode.parentNode; + + /* Get top and bottom bounds */ + _this.offset_ = outer.offsetTop; + _this.bounds_ = { + top: inner.offsetTop, + bottom: inner.offsetTop + inner.offsetHeight + }; + + /* Initialize current height */ + _this.height_ = 0; + return _this; + } + + /** + * Update locked state and height + * + * @param {Event} ev - Event (omitted) + */ + + + _createClass(Position, [{ + key: "update", + value: function update() { + var scroll = window.pageYOffset; + var expand = window.innerHeight; + + /* Calculate new bounds */ + var offset = this.bounds_.top - scroll; + var height = expand - Math.max(0, scroll + expand - this.bounds_.bottom) - Math.max(offset, this.offset_); + + /* If height changed, update element */ + if (height !== this.height_) this.el_.style.height = (this.height_ = height) + "px"; + + /* Sidebar should be locked, as we're below parent offset */ + if (offset < this.offset_) { + if (!this.el_.dataset.mdLocked) this.el_.dataset.mdLocked = ""; + + /* Sidebar should be unlocked, if locked */ + } else if (typeof this.el_.dataset.mdLocked === "string") { + delete this.el_.dataset.mdLocked; + } + } + + /** + * Reset locked state and height + */ + + }, { + key: "reset", + value: function reset() { + delete this.el_.dataset.mdLocked; + this.el_.style.height = ""; + this.height_ = 0; + } + }]); + + return Position; + }(_Abstract3.default); + + exports.default = Position; + module.exports = exports["default"]; + +/***/ } +/******/ ]); \ No newline at end of file diff --git a/material/assets/javascripts/application.js.map b/material/assets/javascripts/application.js.map new file mode 100644 index 000000000..faab8ffb3 --- /dev/null +++ b/material/assets/javascripts/application.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/bootstrap 97ae729e1a23bf686599","webpack:///./src/assets/javascripts/application.js","webpack:///./~/fastclick/lib/fastclick.js","webpack:///(webpack)/buildin/amd-options.js","webpack:///./~/lunr/lunr.js","webpack:///./src/assets/javascripts/components/Material.js","webpack:///./src/assets/javascripts/components/Material/Sidebar.js","webpack:///./src/assets/javascripts/components/Material/Sidebar/Marker.js","webpack:///./src/assets/javascripts/components/Material/Sidebar/Abstract.js","webpack:///./src/assets/javascripts/components/Material/Sidebar/Position.js"],"names":["Application","material","initialize","document","addEventListener","Modernizr","addTest","navigator","userAgent","match","standalone","attach","body","query","getElementById","querySelector","dataset","mdLocked","offset","toggle","list","lock","matchMedia","matches","setTimeout","window","scrollTo","scrollY","focus","toggleSearchClose","setAttribute","toggles","querySelectorAll","forEach","call","nav","togglex","nextElementSibling","style","maxHeight","getBoundingClientRect","height","first","requestAnimationFrame","classList","add","last","remove","ev","target","fetch","then","response","json","stars","data","stargazers_count","forks","forks_count","lists","li","createElement","className","innerText","appendChild","lix","catch","index","field","boost","ref","articles","docs","article","text","replace","string","g1","location","baseUrl","queryx","container","firstChild","removeChild","results","search","value","result","link","href","title","innerHTML","truncate","n","i","length","substring","meta","FastClick","layer","options","oldOnClick","trackingClick","trackingClickStart","targetElement","touchStartX","touchStartY","lastTouchIdentifier","touchBoundary","tapDelay","tapTimeout","notNeeded","bind","method","context","apply","arguments","methods","l","deviceIsAndroid","onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel","Event","prototype","stopImmediatePropagation","removeEventListener","type","callback","capture","rmv","Node","hijacked","adv","event","propagationStopped","onclick","deviceIsWindowsPhone","indexOf","deviceIsIOS","test","deviceIsIOS4","deviceIsIOSWithBadTarget","deviceIsBlackBerry10","needsClick","nodeName","toLowerCase","disabled","needsFocus","readOnly","sendClick","clickEvent","touch","activeElement","blur","changedTouches","createEvent","initMouseEvent","determineEventType","screenX","screenY","clientX","clientY","forwardedTouchEvent","dispatchEvent","tagName","setSelectionRange","updateScrollParent","scrollParent","parentElement","fastClickScrollParent","contains","scrollHeight","offsetHeight","fastClickLastScrollTop","scrollTop","getTargetElementFromEventTarget","eventTarget","nodeType","TEXT_NODE","parentNode","selection","targetTouches","getSelection","rangeCount","isCollapsed","identifier","preventDefault","timeStamp","pageX","pageY","lastClickTime","touchHasMoved","boundary","Math","abs","findControl","labelElement","control","undefined","htmlFor","forElement","targetTagName","cancelNextClick","elementFromPoint","pageXOffset","pageYOffset","top","cancelable","stopPropagation","permitted","detail","destroy","metaViewport","chromeVersion","blackberryVersion","firefoxVersion","ontouchstart","exec","content","documentElement","scrollWidth","outerWidth","msTouchAction","touchAction","define","module","exports","lunr","config","idx","Index","pipeline","trimmer","stopWordFilter","stemmer","version","utils","warn","global","message","console","asString","obj","toString","EventEmitter","events","addListener","args","Array","slice","fn","pop","names","TypeError","name","hasHandler","push","removeListener","fnIndex","splice","emit","tokenizer","isArray","map","t","trim","split","seperator","load","label","registeredFunctions","Error","registerFunction","Pipeline","_stack","warnIfFunctionNotRegistered","isRegistered","serialised","fnName","fns","after","existingFn","newFn","pos","before","run","tokens","out","tokenLength","stackLength","token","j","reset","toJSON","Vector","_magnitude","val","next","insert","prev","magnitude","node","sumOfSquares","sqrt","dot","otherVector","otherNode","dotProduct","similarity","SortedSet","elements","serialisedData","set","element","locationFor","toArray","ctx","elem","start","end","sectionLength","pivot","floor","pivotElem","intersect","otherSet","intersectSet","a_len","b_len","a","b","clone","union","longSet","shortSet","unionSet","shortSetElements","_fields","_ref","documentStore","Store","tokenStore","TokenStore","corpusTokens","eventEmitter","tokenizerFn","_idfCache","on","off","fields","fieldName","opts","refName","doc","emitEvent","docTokens","allDocumentTokens","docRef","fieldTokens","tf","fieldLength","tokenCount","k","has","get","update","idf","term","cacheKey","Object","hasOwnProperty","documentFrequency","count","log","queryTokens","queryVector","documentSets","fieldBoosts","reduce","memo","f","hasSomeToken","some","self","expand","key","similarityBoost","diff","max","matchingDocuments","refs","keys","refsLen","documentSet","score","documentVector","sort","documentRef","documentTokens","documentTokensLength","use","plugin","unshift","store","id","step2list","step3list","c","v","C","V","mgr0","meq1","mgr1","s_v","re_mgr0","RegExp","re_mgr1","re_meq1","re_s_v","re_1a","re2_1a","re_1b","re2_1b","re_1b_2","re2_1b_2","re3_1b_2","re4_1b_2","re_1c","re_2","re_3","re_4","re2_4","re_5","re_5_1","re3_5","porterStemmer","w","stem","suffix","firstch","re","re2","re3","re4","substr","toUpperCase","fp","generateStopWordFilter","stopWords","words","stopWord","root","charAt","rest","getNode","concat","factory","Material","width","sidebar","Position","handler","listen","unlisten","toc","marker","Marker","els","els_","index_","offset_","anchors_","el","hash","offsetTop","mdMarked","Abstract","handler_","el_","inner","outer","bounds_","bottom","height_","scroll","innerHeight"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;sjBCtCA;;;;;;;;;;;;;;;;;;;;;;AAsBA;;;;AAOA;;AAHA;;;;AACA;;;;AAIA;;;;;;;;AAEA;;AAEA;;;;KAIMA,W;;;;;;;;;AAEJ;;;kCAGa;AACX,WAAMC,WAAW,wBAAjB;AACAA,gBAASC,UAAT;AACD;;;;;;mBAGYF,W;;AAEf;AACA;;AAEA;;AACAG,UAASC,gBAAT,CAA0B,kBAA1B,EAA8C,YAAM;;AAElD;AACAC,aAAUC,OAAV,CAAkB,KAAlB,EAAyB,YAAM;AAC7B,YAAO,CAAC,CAACC,UAAUC,SAAV,CAAoBC,KAApB,CAA0B,qBAA1B,CAAT;AACD,IAFD;;AAIA;AACAJ,aAAUC,OAAV,CAAkB,YAAlB,EAAgC,YAAM;AACpC,YAAO,CAAC,CAACC,UAAUG,UAAnB;AACD,IAFD;;AAIA;AACA,uBAAUC,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L,GAAe,CAAf;AApBc;AAqBf;;AAED;;;;;;;;;8BAKS;AACP,WAAMC,SAAShd,OAAOwL,WAAtB;AACA,WAAMmL,SAAS3W,OAAOid,WAAtB;;AAEA;AACA,WAAMxd,SAAS,KAAKod,OAAL,CAAapR,GAAb,GAAmBuR,MAAlC;AACA,WAAMhc,SAAS2V,SACA/L,KAAKmM,GAAL,CAAS,CAAT,EAAYiG,SAASrG,MAAT,GAAkB,KAAKkG,OAAL,CAAaC,MAA3C,CADA,GAEAlS,KAAKmM,GAAL,CAAStX,MAAT,EAAiB,KAAKyc,OAAtB,CAFf;;AAIA;AACA,WAAIlb,WAAW,KAAK+b,OAApB,EACE,KAAKL,GAAL,CAAS7b,KAAT,CAAeG,MAAf,IAA2B,KAAK+b,OAAL,GAAe/b,MAA1C;;AAEF;AACA,WAAIvB,SAAS,KAAKyc,OAAlB,EAA2B;AACzB,aAAI,CAAC,KAAKQ,GAAL,CAASnd,OAAT,CAAiBC,QAAtB,EACE,KAAKkd,GAAL,CAASnd,OAAT,CAAiBC,QAAjB,GAA4B,EAA5B;;AAEJ;AACC,QALD,MAKO,IAAI,OAAO,KAAKkd,GAAL,CAASnd,OAAT,CAAiBC,QAAxB,KAAqC,QAAzC,EAAmD;AACxD,gBAAO,KAAKkd,GAAL,CAASnd,OAAT,CAAiBC,QAAxB;AACD;AACF;;AAED;;;;;;6BAGQ;AACN,cAAO,KAAKkd,GAAL,CAASnd,OAAT,CAAiBC,QAAxB;AACA,YAAKkd,GAAL,CAAS7b,KAAT,CAAeG,MAAf,GAAwB,EAAxB;AACA,YAAK+b,OAAL,GAAe,CAAf;AACD;;;;;;mBApEkBvB,Q","file":"application.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 97ae729e1a23bf686599\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Imports\n * ------------------------------------------------------------------------- */\n\nimport FastClick from \"fastclick\"\nimport lunr from \"lunr\"\n\n// import Expander from \"./components/expander\"\n\nimport Material from \"./components/Material\"\n\n// import Search from './components/search';\n\n/* ----------------------------------------------------------------------------\n * Application\n * ------------------------------------------------------------------------- */\n\nclass Application {\n\n /**\n * @return {void}\n */\n initialize() {\n const material = new Material()\n material.initialize()\n }\n}\n\nexport default Application\n\n// TODO: wrap in function call\n// application module export\n\n/* Initialize application upon DOM ready */\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n\n /* Test for iOS */\n Modernizr.addTest(\"ios\", () => {\n return !!navigator.userAgent.match(/(iPad|iPhone|iPod)/g)\n })\n\n /* Test for web application context */\n Modernizr.addTest(\"standalone\", () => {\n return !!navigator.standalone\n })\n\n /* Attack FastClick to mitigate 300ms delay on touch devices */\n FastClick.attach(document.body)\n\n const query = document.getElementById(\"query\")\n query.addEventListener(\"focus\", () => {\n document.querySelector(\".md-search\").dataset.mdLocked = \"\"\n })\n\n /* Intercept click on search mode toggle */\n let offset = 0\n const toggle = document.getElementById(\"search\")\n toggle.addEventListener(\"click\", ev => { // TODO: click may be the wrong event...\n const list = document.body // classList md bla\n const lock = !matchMedia(\"only screen and (min-width: 960px)\").matches\n\n /* Exiting search mode */\n if (list.dataset.mdLocked) {\n delete list.dataset.mdLocked\n\n /* Scroll to former position, but wait for 100ms to prevent flashes\n on iOS. A short timeout seems to do the trick */\n if (lock)\n setTimeout(() => {\n window.scrollTo(0, offset)\n }, 100)\n\n /* Entering search mode */\n } else {\n offset = window.scrollY\n\n /* First timeout: scroll to top after transition, to omit flickering */\n if (lock)\n setTimeout(() => {\n window.scrollTo(0, 0)\n }, 400)\n\n /* Second timeout: Lock body after finishing transition and scrolling to\n top and focus input field. Sadly, the focus event is not dispatched\n on iOS Safari and there's nothing we can do about it. */\n setTimeout(() => {\n\n /* This additional check is necessary to handle fast subsequent clicks\n on the toggle and the timeout to lock the body must be cancelled */\n // if (ev.target.checked) {\n if (lock)\n list.dataset.mdLocked = \"\"\n setTimeout(() => {\n document.getElementById(\"query\").focus()\n }, 200)\n // }\n }, 450)\n }\n })\n\n // TODO: only do this on MOBILE and TABLET\n const toggleSearchClose = document.querySelector(\".md-search__icon\")\n toggleSearchClose.setAttribute(\"for\", \"search\") // override query with search, when on mobile!!!\n // toggleSearchClose.addEventListener(\"click\", ev => {\n // ev.preventDefault()\n // // ev.target\n //\n // const search = document.getElementById(\"search\")\n // search.checked = false\n // })\n\n // var toc = new Sidebar('.md-sidebar--secondary');\n // toc.listen();\n\n const toggles =\n document.querySelectorAll(\".md-nav__item--nested > .md-nav__link\");\n [].forEach.call(toggles, togglex => {\n const nav = togglex.nextElementSibling\n\n // 1.\n\n nav.style.maxHeight = `${nav.getBoundingClientRect().height}px`\n\n togglex.addEventListener(\"click\", () => {\n const first = nav.getBoundingClientRect().height\n if (first) {\n // console.log('closing');\n nav.style.maxHeight = `${first}px` // reset!\n requestAnimationFrame(() => {\n\n nav.classList.add(\"md-nav--transitioning\")\n nav.style.maxHeight = \"0px\"\n })\n } else {\n // console.log('opening');\n\n /* Toggle and read height */\n nav.style.maxHeight = \"\"\n\n nav.classList.add(\"md-nav--toggled\")\n const last = nav.getBoundingClientRect().height\n nav.classList.remove(\"md-nav--toggled\")\n\n // Initial state\n nav.style.maxHeight = \"0px\"\n\n /* Enable animations */\n requestAnimationFrame(() => {\n nav.classList.add(\"md-nav--transitioning\")\n nav.style.maxHeight = `${last}px`\n })\n }\n\n })\n\n // Capture the end with transitionend\n nav.addEventListener(\"transitionend\", ev => {\n ev.target.classList.remove(\"md-nav--transitioning\")\n if (ev.target.getBoundingClientRect().height > 0) {\n ev.target.style.maxHeight = \"100%\"\n }\n })\n })\n\n// setTimeout(function() {\n fetch(\"https://api.github.com/repos/squidfunk/mkdocs-material\")\n .then(response => {\n return response.json()\n })\n .then(data => {\n // console.log(data)\n const stars = data.stargazers_count\n const forks = data.forks_count\n // store in session!!!\n const lists = document.querySelectorAll(\".md-source__facts\"); // TODO 2x list in drawer and header\n [].forEach.call(lists, list => {\n\n let li = document.createElement(\"li\")\n li.className = \"md-source__fact md-source__fact--hidden\"\n li.innerText = `${stars} Stars`\n list.appendChild(li)\n\n setTimeout(lix => {\n lix.classList.remove(\"md-source__fact--hidden\")\n }, 100, li)\n\n li = document.createElement(\"li\")\n li.className = \"md-source__fact md-source__fact--hidden\"\n li.innerText = `${forks} Forks`\n list.appendChild(li)\n\n setTimeout(lix => {\n lix.classList.remove(\"md-source__fact--hidden\")\n }, 500, li)\n })\n\n // setTimeout(function() {\n // li.classList.remove('md-source__fact--hidden');\n // }, 100);\n\n })\n .catch(() => {\n // console.log(\"parsing failed\", ex)\n\n })\n\n // setTimeout(function() {\n fetch(\"/mkdocs/search_index.json\") // TODO: prepend BASE URL!!!\n .then(response => {\n return response.json()\n })\n .then(data => {\n // console.log(data)\n\n /* Create index */\n const index = lunr(function() {\n /* eslint-disable no-invalid-this, lines-around-comment */\n this.field(\"title\", { boost: 10 })\n this.field(\"text\")\n this.ref(\"location\")\n /* eslint-enable no-invalid-this, lines-around-comment */\n })\n\n /* Index articles */\n const articles = {}\n data.docs.forEach(article => {\n\n // TODO: match for two whitespaces, then replace unnecessary whitespace after string\n article.text = article.text.replace(/\\s(\\.,\\:)\\s/gi, (string, g1) => {\n return `${g1} `\n })\n // TODO: window.baseUrl sucks...\n article.location = window.baseUrl + article.location\n articles[article.location] = article\n index.add(article)\n })\n\n /* Register keyhandler to execute search on key up */\n const queryx = document.getElementById(\"query\")\n queryx.addEventListener(\"keyup\", () => {\n const container = document.querySelector(\".md-search-result__list\")\n while (container.firstChild)\n container.removeChild(container.firstChild)\n\n // /* Abort, if the query is empty */\n // var bar = document.querySelector('.bar.search');\n // if (!query.value.length) {\n // while (meta.firstChild)\n // meta.removeChild(meta.firstChild);\n //\n // /* Restore state */\n // bar.classList.remove('non-empty');\n // return;\n // }\n\n /* Show reset button */\n // bar.classList.add('non-empty');\n\n /* Execute search */\n const results = index.search(query.value)\n results.forEach(result => {\n const article = articles[result.ref]\n\n /* Create a link referring to the article */\n const link = document.createElement(\"a\")\n link.classList.add(\"md-search-result__link\")\n link.href = article.location\n\n // /* Create article container */\n const li = document.createElement(\"li\")\n li.classList.add(\"md-search-result__item\")\n li.appendChild(link)\n\n /* Create title element */\n const title = document.createElement(\"div\")\n title.classList.add(\"md-search-result__title\")\n\n // article.title.split(//)\n\n title.innerHTML = article.title\n link.appendChild(title)\n\n /* Truncate a string after the given number of characters */\n const truncate = function(string, n) {\n let i = n\n if (string.length > i) {\n while (string[i] !== \" \" && --i > 0);\n return `${string.substring(0, i)}…`\n }\n return string\n }\n\n /* Create text element */\n const text = document.createElement(\"p\")\n text.classList.add(\"md-search-result__description\")\n text.innerHTML = truncate(article.text) // .truncate(140);\n text.innerHTML = truncate(article.text, 140) // .truncate(140);\n link.appendChild(text)\n\n container.appendChild(li)\n })\n\n /* Show number of search results */\n // var number = document.createElement('strong');\n\n const meta = document.querySelector(\".md-search-result__meta\")\n meta.innerHTML = `${results.length} search result${\n results.length !== 1\n ? \"s\"\n : \"\"}`\n\n /* Update number */\n // while (meta.firstChild)\n // meta.removeChild(meta.firstChild);\n // meta.appendChild(number);\n })\n\n // setTimeout(function() {\n // li.classList.remove('md-source__fact--hidden');\n // }, 100);\n\n })\n .catch(() => {\n // console.log(\"parsing failed\", ex)\n })\n// }, 1000);\n\n fetch(\n \"https://api.github.com/repos/squidfunk/mkdocs-material/releases/latest\")\n .then(response => {\n return response.json()\n })\n // .then(data => {\n // // console.log(data)\n // })\n\n})\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/application.js\n **/",";(function () {\n\t'use strict';\n\n\t/**\n\t * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.\n\t *\n\t * @codingstandard ftlabs-jsv2\n\t * @copyright The Financial Times Limited [All Rights Reserved]\n\t * @license MIT License (see LICENSE.txt)\n\t */\n\n\t/*jslint browser:true, node:true*/\n\t/*global define, Event, Node*/\n\n\n\t/**\n\t * Instantiate fast-clicking listeners on the specified layer.\n\t *\n\t * @constructor\n\t * @param {Element} layer The layer to listen on\n\t * @param {Object} [options={}] The options to override the defaults\n\t */\n\tfunction FastClick(layer, options) {\n\t\tvar oldOnClick;\n\n\t\toptions = options || {};\n\n\t\t/**\n\t\t * Whether a click is currently being tracked.\n\t\t *\n\t\t * @type boolean\n\t\t */\n\t\tthis.trackingClick = false;\n\n\n\t\t/**\n\t\t * Timestamp for when click tracking started.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.trackingClickStart = 0;\n\n\n\t\t/**\n\t\t * The element being tracked for a click.\n\t\t *\n\t\t * @type EventTarget\n\t\t */\n\t\tthis.targetElement = null;\n\n\n\t\t/**\n\t\t * X-coordinate of touch start event.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.touchStartX = 0;\n\n\n\t\t/**\n\t\t * Y-coordinate of touch start event.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.touchStartY = 0;\n\n\n\t\t/**\n\t\t * ID of the last touch, retrieved from Touch.identifier.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.lastTouchIdentifier = 0;\n\n\n\t\t/**\n\t\t * Touchmove boundary, beyond which a click will be cancelled.\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.touchBoundary = options.touchBoundary || 10;\n\n\n\t\t/**\n\t\t * The FastClick layer.\n\t\t *\n\t\t * @type Element\n\t\t */\n\t\tthis.layer = layer;\n\n\t\t/**\n\t\t * The minimum time between tap(touchstart and touchend) events\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.tapDelay = options.tapDelay || 200;\n\n\t\t/**\n\t\t * The maximum time for a tap\n\t\t *\n\t\t * @type number\n\t\t */\n\t\tthis.tapTimeout = options.tapTimeout || 700;\n\n\t\tif (FastClick.notNeeded(layer)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Some old versions of Android don't have Function.prototype.bind\n\t\tfunction bind(method, context) {\n\t\t\treturn function() { return method.apply(context, arguments); };\n\t\t}\n\n\n\t\tvar methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];\n\t\tvar context = this;\n\t\tfor (var i = 0, l = methods.length; i < l; i++) {\n\t\t\tcontext[methods[i]] = bind(context[methods[i]], context);\n\t\t}\n\n\t\t// Set up event handlers as required\n\t\tif (deviceIsAndroid) {\n\t\t\tlayer.addEventListener('mouseover', this.onMouse, true);\n\t\t\tlayer.addEventListener('mousedown', this.onMouse, true);\n\t\t\tlayer.addEventListener('mouseup', this.onMouse, true);\n\t\t}\n\n\t\tlayer.addEventListener('click', this.onClick, true);\n\t\tlayer.addEventListener('touchstart', this.onTouchStart, false);\n\t\tlayer.addEventListener('touchmove', this.onTouchMove, false);\n\t\tlayer.addEventListener('touchend', this.onTouchEnd, false);\n\t\tlayer.addEventListener('touchcancel', this.onTouchCancel, false);\n\n\t\t// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)\n\t\t// which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick\n\t\t// layer when they are cancelled.\n\t\tif (!Event.prototype.stopImmediatePropagation) {\n\t\t\tlayer.removeEventListener = function(type, callback, capture) {\n\t\t\t\tvar rmv = Node.prototype.removeEventListener;\n\t\t\t\tif (type === 'click') {\n\t\t\t\t\trmv.call(layer, type, callback.hijacked || callback, capture);\n\t\t\t\t} else {\n\t\t\t\t\trmv.call(layer, type, callback, capture);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tlayer.addEventListener = function(type, callback, capture) {\n\t\t\t\tvar adv = Node.prototype.addEventListener;\n\t\t\t\tif (type === 'click') {\n\t\t\t\t\tadv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {\n\t\t\t\t\t\tif (!event.propagationStopped) {\n\t\t\t\t\t\t\tcallback(event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}), capture);\n\t\t\t\t} else {\n\t\t\t\t\tadv.call(layer, type, callback, capture);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\n\t\t// If a handler is already declared in the element's onclick attribute, it will be fired before\n\t\t// FastClick's onClick handler. Fix this by pulling out the user-defined handler function and\n\t\t// adding it as listener.\n\t\tif (typeof layer.onclick === 'function') {\n\n\t\t\t// Android browser on at least 3.2 requires a new reference to the function in layer.onclick\n\t\t\t// - the old one won't work if passed to addEventListener directly.\n\t\t\toldOnClick = layer.onclick;\n\t\t\tlayer.addEventListener('click', function(event) {\n\t\t\t\toldOnClick(event);\n\t\t\t}, false);\n\t\t\tlayer.onclick = null;\n\t\t}\n\t}\n\n\t/**\n\t* Windows Phone 8.1 fakes user agent string to look like Android and iPhone.\n\t*\n\t* @type boolean\n\t*/\n\tvar deviceIsWindowsPhone = navigator.userAgent.indexOf(\"Windows Phone\") >= 0;\n\n\t/**\n\t * Android requires exceptions.\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;\n\n\n\t/**\n\t * iOS requires exceptions.\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;\n\n\n\t/**\n\t * iOS 4 requires an exception for select elements.\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsIOS4 = deviceIsIOS && (/OS 4_\\d(_\\d)?/).test(navigator.userAgent);\n\n\n\t/**\n\t * iOS 6.0-7.* requires the target element to be manually derived\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\\d/).test(navigator.userAgent);\n\n\t/**\n\t * BlackBerry requires exceptions.\n\t *\n\t * @type boolean\n\t */\n\tvar deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;\n\n\t/**\n\t * Determine whether a given element requires a native click.\n\t *\n\t * @param {EventTarget|Element} target Target DOM element\n\t * @returns {boolean} Returns true if the element needs a native click\n\t */\n\tFastClick.prototype.needsClick = function(target) {\n\t\tswitch (target.nodeName.toLowerCase()) {\n\n\t\t// Don't send a synthetic click to disabled inputs (issue #62)\n\t\tcase 'button':\n\t\tcase 'select':\n\t\tcase 'textarea':\n\t\t\tif (target.disabled) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase 'input':\n\n\t\t\t// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)\n\t\t\tif ((deviceIsIOS && target.type === 'file') || target.disabled) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase 'label':\n\t\tcase 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames\n\t\tcase 'video':\n\t\t\treturn true;\n\t\t}\n\n\t\treturn (/\\bneedsclick\\b/).test(target.className);\n\t};\n\n\n\t/**\n\t * Determine whether a given element requires a call to focus to simulate click into element.\n\t *\n\t * @param {EventTarget|Element} target Target DOM element\n\t * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.\n\t */\n\tFastClick.prototype.needsFocus = function(target) {\n\t\tswitch (target.nodeName.toLowerCase()) {\n\t\tcase 'textarea':\n\t\t\treturn true;\n\t\tcase 'select':\n\t\t\treturn !deviceIsAndroid;\n\t\tcase 'input':\n\t\t\tswitch (target.type) {\n\t\t\tcase 'button':\n\t\t\tcase 'checkbox':\n\t\t\tcase 'file':\n\t\t\tcase 'image':\n\t\t\tcase 'radio':\n\t\t\tcase 'submit':\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// No point in attempting to focus disabled inputs\n\t\t\treturn !target.disabled && !target.readOnly;\n\t\tdefault:\n\t\t\treturn (/\\bneedsfocus\\b/).test(target.className);\n\t\t}\n\t};\n\n\n\t/**\n\t * Send a click event to the specified element.\n\t *\n\t * @param {EventTarget|Element} targetElement\n\t * @param {Event} event\n\t */\n\tFastClick.prototype.sendClick = function(targetElement, event) {\n\t\tvar clickEvent, touch;\n\n\t\t// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)\n\t\tif (document.activeElement && document.activeElement !== targetElement) {\n\t\t\tdocument.activeElement.blur();\n\t\t}\n\n\t\ttouch = event.changedTouches[0];\n\n\t\t// Synthesise a click event, with an extra attribute so it can be tracked\n\t\tclickEvent = document.createEvent('MouseEvents');\n\t\tclickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);\n\t\tclickEvent.forwardedTouchEvent = true;\n\t\ttargetElement.dispatchEvent(clickEvent);\n\t};\n\n\tFastClick.prototype.determineEventType = function(targetElement) {\n\n\t\t//Issue #159: Android Chrome Select Box does not open with a synthetic click event\n\t\tif (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {\n\t\t\treturn 'mousedown';\n\t\t}\n\n\t\treturn 'click';\n\t};\n\n\n\t/**\n\t * @param {EventTarget|Element} targetElement\n\t */\n\tFastClick.prototype.focus = function(targetElement) {\n\t\tvar length;\n\n\t\t// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.\n\t\tif (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {\n\t\t\tlength = targetElement.value.length;\n\t\t\ttargetElement.setSelectionRange(length, length);\n\t\t} else {\n\t\t\ttargetElement.focus();\n\t\t}\n\t};\n\n\n\t/**\n\t * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.\n\t *\n\t * @param {EventTarget|Element} targetElement\n\t */\n\tFastClick.prototype.updateScrollParent = function(targetElement) {\n\t\tvar scrollParent, parentElement;\n\n\t\tscrollParent = targetElement.fastClickScrollParent;\n\n\t\t// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the\n\t\t// target element was moved to another parent.\n\t\tif (!scrollParent || !scrollParent.contains(targetElement)) {\n\t\t\tparentElement = targetElement;\n\t\t\tdo {\n\t\t\t\tif (parentElement.scrollHeight > parentElement.offsetHeight) {\n\t\t\t\t\tscrollParent = parentElement;\n\t\t\t\t\ttargetElement.fastClickScrollParent = parentElement;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tparentElement = parentElement.parentElement;\n\t\t\t} while (parentElement);\n\t\t}\n\n\t\t// Always update the scroll top tracker if possible.\n\t\tif (scrollParent) {\n\t\t\tscrollParent.fastClickLastScrollTop = scrollParent.scrollTop;\n\t\t}\n\t};\n\n\n\t/**\n\t * @param {EventTarget} targetElement\n\t * @returns {Element|EventTarget}\n\t */\n\tFastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {\n\n\t\t// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.\n\t\tif (eventTarget.nodeType === Node.TEXT_NODE) {\n\t\t\treturn eventTarget.parentNode;\n\t\t}\n\n\t\treturn eventTarget;\n\t};\n\n\n\t/**\n\t * On touch start, record the position and scroll offset.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onTouchStart = function(event) {\n\t\tvar targetElement, touch, selection;\n\n\t\t// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).\n\t\tif (event.targetTouches.length > 1) {\n\t\t\treturn true;\n\t\t}\n\n\t\ttargetElement = this.getTargetElementFromEventTarget(event.target);\n\t\ttouch = event.targetTouches[0];\n\n\t\tif (deviceIsIOS) {\n\n\t\t\t// Only trusted events will deselect text on iOS (issue #49)\n\t\t\tselection = window.getSelection();\n\t\t\tif (selection.rangeCount && !selection.isCollapsed) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tif (!deviceIsIOS4) {\n\n\t\t\t\t// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):\n\t\t\t\t// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched\n\t\t\t\t// with the same identifier as the touch event that previously triggered the click that triggered the alert.\n\t\t\t\t// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an\n\t\t\t\t// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.\n\t\t\t\t// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,\n\t\t\t\t// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,\n\t\t\t\t// random integers, it's safe to to continue if the identifier is 0 here.\n\t\t\t\tif (touch.identifier && touch.identifier === this.lastTouchIdentifier) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tthis.lastTouchIdentifier = touch.identifier;\n\n\t\t\t\t// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:\n\t\t\t\t// 1) the user does a fling scroll on the scrollable layer\n\t\t\t\t// 2) the user stops the fling scroll with another tap\n\t\t\t\t// then the event.target of the last 'touchend' event will be the element that was under the user's finger\n\t\t\t\t// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check\n\t\t\t\t// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).\n\t\t\t\tthis.updateScrollParent(targetElement);\n\t\t\t}\n\t\t}\n\n\t\tthis.trackingClick = true;\n\t\tthis.trackingClickStart = event.timeStamp;\n\t\tthis.targetElement = targetElement;\n\n\t\tthis.touchStartX = touch.pageX;\n\t\tthis.touchStartY = touch.pageY;\n\n\t\t// Prevent phantom clicks on fast double-tap (issue #36)\n\t\tif ((event.timeStamp - this.lastClickTime) < this.tapDelay) {\n\t\t\tevent.preventDefault();\n\t\t}\n\n\t\treturn true;\n\t};\n\n\n\t/**\n\t * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.touchHasMoved = function(event) {\n\t\tvar touch = event.changedTouches[0], boundary = this.touchBoundary;\n\n\t\tif (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t};\n\n\n\t/**\n\t * Update the last position.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onTouchMove = function(event) {\n\t\tif (!this.trackingClick) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// If the touch has moved, cancel the click tracking\n\t\tif (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {\n\t\t\tthis.trackingClick = false;\n\t\t\tthis.targetElement = null;\n\t\t}\n\n\t\treturn true;\n\t};\n\n\n\t/**\n\t * Attempt to find the labelled control for the given label element.\n\t *\n\t * @param {EventTarget|HTMLLabelElement} labelElement\n\t * @returns {Element|null}\n\t */\n\tFastClick.prototype.findControl = function(labelElement) {\n\n\t\t// Fast path for newer browsers supporting the HTML5 control attribute\n\t\tif (labelElement.control !== undefined) {\n\t\t\treturn labelElement.control;\n\t\t}\n\n\t\t// All browsers under test that support touch events also support the HTML5 htmlFor attribute\n\t\tif (labelElement.htmlFor) {\n\t\t\treturn document.getElementById(labelElement.htmlFor);\n\t\t}\n\n\t\t// If no for attribute exists, attempt to retrieve the first labellable descendant element\n\t\t// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label\n\t\treturn labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');\n\t};\n\n\n\t/**\n\t * On touch end, determine whether to send a click event at once.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onTouchEnd = function(event) {\n\t\tvar forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;\n\n\t\tif (!this.trackingClick) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Prevent phantom clicks on fast double-tap (issue #36)\n\t\tif ((event.timeStamp - this.lastClickTime) < this.tapDelay) {\n\t\t\tthis.cancelNextClick = true;\n\t\t\treturn true;\n\t\t}\n\n\t\tif ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Reset to prevent wrong click cancel on input (issue #156).\n\t\tthis.cancelNextClick = false;\n\n\t\tthis.lastClickTime = event.timeStamp;\n\n\t\ttrackingClickStart = this.trackingClickStart;\n\t\tthis.trackingClick = false;\n\t\tthis.trackingClickStart = 0;\n\n\t\t// On some iOS devices, the targetElement supplied with the event is invalid if the layer\n\t\t// is performing a transition or scroll, and has to be re-detected manually. Note that\n\t\t// for this to function correctly, it must be called *after* the event target is checked!\n\t\t// See issue #57; also filed as rdar://13048589 .\n\t\tif (deviceIsIOSWithBadTarget) {\n\t\t\ttouch = event.changedTouches[0];\n\n\t\t\t// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null\n\t\t\ttargetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;\n\t\t\ttargetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;\n\t\t}\n\n\t\ttargetTagName = targetElement.tagName.toLowerCase();\n\t\tif (targetTagName === 'label') {\n\t\t\tforElement = this.findControl(targetElement);\n\t\t\tif (forElement) {\n\t\t\t\tthis.focus(targetElement);\n\t\t\t\tif (deviceIsAndroid) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\ttargetElement = forElement;\n\t\t\t}\n\t\t} else if (this.needsFocus(targetElement)) {\n\n\t\t\t// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.\n\t\t\t// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).\n\t\t\tif ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {\n\t\t\t\tthis.targetElement = null;\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tthis.focus(targetElement);\n\t\t\tthis.sendClick(targetElement, event);\n\n\t\t\t// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.\n\t\t\t// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)\n\t\t\tif (!deviceIsIOS || targetTagName !== 'select') {\n\t\t\t\tthis.targetElement = null;\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\n\t\tif (deviceIsIOS && !deviceIsIOS4) {\n\n\t\t\t// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled\n\t\t\t// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).\n\t\t\tscrollParent = targetElement.fastClickScrollParent;\n\t\t\tif (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t// Prevent the actual click from going though - unless the target node is marked as requiring\n\t\t// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.\n\t\tif (!this.needsClick(targetElement)) {\n\t\t\tevent.preventDefault();\n\t\t\tthis.sendClick(targetElement, event);\n\t\t}\n\n\t\treturn false;\n\t};\n\n\n\t/**\n\t * On touch cancel, stop tracking the click.\n\t *\n\t * @returns {void}\n\t */\n\tFastClick.prototype.onTouchCancel = function() {\n\t\tthis.trackingClick = false;\n\t\tthis.targetElement = null;\n\t};\n\n\n\t/**\n\t * Determine mouse events which should be permitted.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onMouse = function(event) {\n\n\t\t// If a target element was never set (because a touch event was never fired) allow the event\n\t\tif (!this.targetElement) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif (event.forwardedTouchEvent) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Programmatically generated events targeting a specific element should be permitted\n\t\tif (!event.cancelable) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Derive and check the target element to see whether the mouse event needs to be permitted;\n\t\t// unless explicitly enabled, prevent non-touch click events from triggering actions,\n\t\t// to prevent ghost/doubleclicks.\n\t\tif (!this.needsClick(this.targetElement) || this.cancelNextClick) {\n\n\t\t\t// Prevent any user-added listeners declared on FastClick element from being fired.\n\t\t\tif (event.stopImmediatePropagation) {\n\t\t\t\tevent.stopImmediatePropagation();\n\t\t\t} else {\n\n\t\t\t\t// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)\n\t\t\t\tevent.propagationStopped = true;\n\t\t\t}\n\n\t\t\t// Cancel the event\n\t\t\tevent.stopPropagation();\n\t\t\tevent.preventDefault();\n\n\t\t\treturn false;\n\t\t}\n\n\t\t// If the mouse event is permitted, return true for the action to go through.\n\t\treturn true;\n\t};\n\n\n\t/**\n\t * On actual clicks, determine whether this is a touch-generated click, a click action occurring\n\t * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or\n\t * an actual click which should be permitted.\n\t *\n\t * @param {Event} event\n\t * @returns {boolean}\n\t */\n\tFastClick.prototype.onClick = function(event) {\n\t\tvar permitted;\n\n\t\t// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.\n\t\tif (this.trackingClick) {\n\t\t\tthis.targetElement = null;\n\t\t\tthis.trackingClick = false;\n\t\t\treturn true;\n\t\t}\n\n\t\t// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.\n\t\tif (event.target.type === 'submit' && event.detail === 0) {\n\t\t\treturn true;\n\t\t}\n\n\t\tpermitted = this.onMouse(event);\n\n\t\t// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.\n\t\tif (!permitted) {\n\t\t\tthis.targetElement = null;\n\t\t}\n\n\t\t// If clicks are permitted, return true for the action to go through.\n\t\treturn permitted;\n\t};\n\n\n\t/**\n\t * Remove all FastClick's event listeners.\n\t *\n\t * @returns {void}\n\t */\n\tFastClick.prototype.destroy = function() {\n\t\tvar layer = this.layer;\n\n\t\tif (deviceIsAndroid) {\n\t\t\tlayer.removeEventListener('mouseover', this.onMouse, true);\n\t\t\tlayer.removeEventListener('mousedown', this.onMouse, true);\n\t\t\tlayer.removeEventListener('mouseup', this.onMouse, true);\n\t\t}\n\n\t\tlayer.removeEventListener('click', this.onClick, true);\n\t\tlayer.removeEventListener('touchstart', this.onTouchStart, false);\n\t\tlayer.removeEventListener('touchmove', this.onTouchMove, false);\n\t\tlayer.removeEventListener('touchend', this.onTouchEnd, false);\n\t\tlayer.removeEventListener('touchcancel', this.onTouchCancel, false);\n\t};\n\n\n\t/**\n\t * Check whether FastClick is needed.\n\t *\n\t * @param {Element} layer The layer to listen on\n\t */\n\tFastClick.notNeeded = function(layer) {\n\t\tvar metaViewport;\n\t\tvar chromeVersion;\n\t\tvar blackberryVersion;\n\t\tvar firefoxVersion;\n\n\t\t// Devices that don't support touch don't need FastClick\n\t\tif (typeof window.ontouchstart === 'undefined') {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Chrome version - zero for other browsers\n\t\tchromeVersion = +(/Chrome\\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];\n\n\t\tif (chromeVersion) {\n\n\t\t\tif (deviceIsAndroid) {\n\t\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\n\n\t\t\t\tif (metaViewport) {\n\t\t\t\t\t// Chrome on Android with user-scalable=\"no\" doesn't need FastClick (issue #89)\n\t\t\t\t\tif (metaViewport.content.indexOf('user-scalable=no') !== -1) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\t// Chrome 32 and above with width=device-width or less don't need FastClick\n\t\t\t\t\tif (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// Chrome desktop doesn't need FastClick (issue #15)\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tif (deviceIsBlackBerry10) {\n\t\t\tblackberryVersion = navigator.userAgent.match(/Version\\/([0-9]*)\\.([0-9]*)/);\n\n\t\t\t// BlackBerry 10.3+ does not require Fastclick library.\n\t\t\t// https://github.com/ftlabs/fastclick/issues/251\n\t\t\tif (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {\n\t\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\n\n\t\t\t\tif (metaViewport) {\n\t\t\t\t\t// user-scalable=no eliminates click delay.\n\t\t\t\t\tif (metaViewport.content.indexOf('user-scalable=no') !== -1) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\t// width=device-width (or less than device-width) eliminates click delay.\n\t\t\t\t\tif (document.documentElement.scrollWidth <= window.outerWidth) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)\n\t\tif (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Firefox version - zero for other browsers\n\t\tfirefoxVersion = +(/Firefox\\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];\n\n\t\tif (firefoxVersion >= 27) {\n\t\t\t// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896\n\n\t\t\tmetaViewport = document.querySelector('meta[name=viewport]');\n\t\t\tif (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version\n\t\t// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx\n\t\tif (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t};\n\n\n\t/**\n\t * Factory method for creating a FastClick object\n\t *\n\t * @param {Element} layer The layer to listen on\n\t * @param {Object} [options={}] The options to override the defaults\n\t */\n\tFastClick.attach = function(layer, options) {\n\t\treturn new FastClick(layer, options);\n\t};\n\n\n\tif (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\n\t\t// AMD. Register as an anonymous module.\n\t\tdefine(function() {\n\t\t\treturn FastClick;\n\t\t});\n\t} else if (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = FastClick.attach;\n\t\tmodule.exports.FastClick = FastClick;\n\t} else {\n\t\twindow.FastClick = FastClick;\n\t}\n}());\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/fastclick/lib/fastclick.js\n **/","module.exports = __webpack_amd_options__;\r\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/buildin/amd-options.js\n ** module id = 2\n ** module chunks = 0\n **/","/**\n * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 0.7.1\n * Copyright (C) 2016 Oliver Nightingale\n * @license MIT\n */\n\n;(function(){\n\n/**\n * Convenience function for instantiating a new lunr index and configuring it\n * with the default pipeline functions and the passed config function.\n *\n * When using this convenience function a new index will be created with the\n * following functions already in the pipeline:\n *\n * lunr.StopWordFilter - filters out any stop words before they enter the\n * index\n *\n * lunr.stemmer - stems the tokens before entering the index.\n *\n * Example:\n *\n * var idx = lunr(function () {\n * this.field('title', 10)\n * this.field('tags', 100)\n * this.field('body')\n * \n * this.ref('cid')\n * \n * this.pipeline.add(function () {\n * // some custom pipeline function\n * })\n * \n * })\n *\n * @param {Function} config A function that will be called with the new instance\n * of the lunr.Index as both its context and first parameter. It can be used to\n * customize the instance of new lunr.Index.\n * @namespace\n * @module\n * @returns {lunr.Index}\n *\n */\nvar lunr = function (config) {\n var idx = new lunr.Index\n\n idx.pipeline.add(\n lunr.trimmer,\n lunr.stopWordFilter,\n lunr.stemmer\n )\n\n if (config) config.call(idx, idx)\n\n return idx\n}\n\nlunr.version = \"0.7.1\"\n/*!\n * lunr.utils\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * A namespace containing utils for the rest of the lunr library\n */\nlunr.utils = {}\n\n/**\n * Print a warning message to the console.\n *\n * @param {String} message The message to be printed.\n * @memberOf Utils\n */\nlunr.utils.warn = (function (global) {\n return function (message) {\n if (global.console && console.warn) {\n console.warn(message)\n }\n }\n})(this)\n\n/**\n * Convert an object to a string.\n *\n * In the case of `null` and `undefined` the function returns\n * the empty string, in all other cases the result of calling\n * `toString` on the passed object is returned.\n *\n * @param {Any} obj The object to convert to a string.\n * @return {String} string representation of the passed object.\n * @memberOf Utils\n */\nlunr.utils.asString = function (obj) {\n if (obj === void 0 || obj === null) {\n return \"\"\n } else {\n return obj.toString()\n }\n}\n/*!\n * lunr.EventEmitter\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.EventEmitter is an event emitter for lunr. It manages adding and removing event handlers and triggering events and their handlers.\n *\n * @constructor\n */\nlunr.EventEmitter = function () {\n this.events = {}\n}\n\n/**\n * Binds a handler function to a specific event(s).\n *\n * Can bind a single function to many different events in one call.\n *\n * @param {String} [eventName] The name(s) of events to bind this function to.\n * @param {Function} fn The function to call when an event is fired.\n * @memberOf EventEmitter\n */\nlunr.EventEmitter.prototype.addListener = function () {\n var args = Array.prototype.slice.call(arguments),\n fn = args.pop(),\n names = args\n\n if (typeof fn !== \"function\") throw new TypeError (\"last argument must be a function\")\n\n names.forEach(function (name) {\n if (!this.hasHandler(name)) this.events[name] = []\n this.events[name].push(fn)\n }, this)\n}\n\n/**\n * Removes a handler function from a specific event.\n *\n * @param {String} eventName The name of the event to remove this function from.\n * @param {Function} fn The function to remove from an event.\n * @memberOf EventEmitter\n */\nlunr.EventEmitter.prototype.removeListener = function (name, fn) {\n if (!this.hasHandler(name)) return\n\n var fnIndex = this.events[name].indexOf(fn)\n this.events[name].splice(fnIndex, 1)\n\n if (!this.events[name].length) delete this.events[name]\n}\n\n/**\n * Calls all functions bound to the given event.\n *\n * Additional data can be passed to the event handler as arguments to `emit`\n * after the event name.\n *\n * @param {String} eventName The name of the event to emit.\n * @memberOf EventEmitter\n */\nlunr.EventEmitter.prototype.emit = function (name) {\n if (!this.hasHandler(name)) return\n\n var args = Array.prototype.slice.call(arguments, 1)\n\n this.events[name].forEach(function (fn) {\n fn.apply(undefined, args)\n })\n}\n\n/**\n * Checks whether a handler has ever been stored against an event.\n *\n * @param {String} eventName The name of the event to check.\n * @private\n * @memberOf EventEmitter\n */\nlunr.EventEmitter.prototype.hasHandler = function (name) {\n return name in this.events\n}\n\n/*!\n * lunr.tokenizer\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * A function for splitting a string into tokens ready to be inserted into\n * the search index. Uses `lunr.tokenizer.seperator` to split strings, change\n * the value of this property to change how strings are split into tokens.\n *\n * @module\n * @param {String} obj The string to convert into tokens\n * @see lunr.tokenizer.seperator\n * @returns {Array}\n */\nlunr.tokenizer = function (obj) {\n if (!arguments.length || obj == null || obj == undefined) return []\n if (Array.isArray(obj)) return obj.map(function (t) { return lunr.utils.asString(t).toLowerCase() })\n\n return obj.toString().trim().toLowerCase().split(lunr.tokenizer.seperator)\n}\n\n/**\n * The sperator used to split a string into tokens. Override this property to change the behaviour of\n * `lunr.tokenizer` behaviour when tokenizing strings. By default this splits on whitespace and hyphens.\n *\n * @static\n * @see lunr.tokenizer\n */\nlunr.tokenizer.seperator = /[\\s\\-]+/\n\n/**\n * Loads a previously serialised tokenizer.\n *\n * A tokenizer function to be loaded must already be registered with lunr.tokenizer.\n * If the serialised tokenizer has not been registered then an error will be thrown.\n *\n * @param {String} label The label of the serialised tokenizer.\n * @returns {Function}\n * @memberOf tokenizer\n */\nlunr.tokenizer.load = function (label) {\n var fn = this.registeredFunctions[label]\n\n if (!fn) {\n throw new Error('Cannot load un-registered function: ' + label)\n }\n\n return fn\n}\n\nlunr.tokenizer.label = 'default'\n\nlunr.tokenizer.registeredFunctions = {\n 'default': lunr.tokenizer\n}\n\n/**\n * Register a tokenizer function.\n *\n * Functions that are used as tokenizers should be registered if they are to be used with a serialised index.\n *\n * Registering a function does not add it to an index, functions must still be associated with a specific index for them to be used when indexing and searching documents.\n *\n * @param {Function} fn The function to register.\n * @param {String} label The label to register this function with\n * @memberOf tokenizer\n */\nlunr.tokenizer.registerFunction = function (fn, label) {\n if (label in this.registeredFunctions) {\n lunr.utils.warn('Overwriting existing tokenizer: ' + label)\n }\n\n fn.label = label\n this.registeredFunctions[label] = fn\n}\n/*!\n * lunr.Pipeline\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.Pipelines maintain an ordered list of functions to be applied to all\n * tokens in documents entering the search index and queries being ran against\n * the index.\n *\n * An instance of lunr.Index created with the lunr shortcut will contain a\n * pipeline with a stop word filter and an English language stemmer. Extra\n * functions can be added before or after either of these functions or these\n * default functions can be removed.\n *\n * When run the pipeline will call each function in turn, passing a token, the\n * index of that token in the original list of all tokens and finally a list of\n * all the original tokens.\n *\n * The output of functions in the pipeline will be passed to the next function\n * in the pipeline. To exclude a token from entering the index the function\n * should return undefined, the rest of the pipeline will not be called with\n * this token.\n *\n * For serialisation of pipelines to work, all functions used in an instance of\n * a pipeline should be registered with lunr.Pipeline. Registered functions can\n * then be loaded. If trying to load a serialised pipeline that uses functions\n * that are not registered an error will be thrown.\n *\n * If not planning on serialising the pipeline then registering pipeline functions\n * is not necessary.\n *\n * @constructor\n */\nlunr.Pipeline = function () {\n this._stack = []\n}\n\nlunr.Pipeline.registeredFunctions = {}\n\n/**\n * Register a function with the pipeline.\n *\n * Functions that are used in the pipeline should be registered if the pipeline\n * needs to be serialised, or a serialised pipeline needs to be loaded.\n *\n * Registering a function does not add it to a pipeline, functions must still be\n * added to instances of the pipeline for them to be used when running a pipeline.\n *\n * @param {Function} fn The function to check for.\n * @param {String} label The label to register this function with\n * @memberOf Pipeline\n */\nlunr.Pipeline.registerFunction = function (fn, label) {\n if (label in this.registeredFunctions) {\n lunr.utils.warn('Overwriting existing registered function: ' + label)\n }\n\n fn.label = label\n lunr.Pipeline.registeredFunctions[fn.label] = fn\n}\n\n/**\n * Warns if the function is not registered as a Pipeline function.\n *\n * @param {Function} fn The function to check for.\n * @private\n * @memberOf Pipeline\n */\nlunr.Pipeline.warnIfFunctionNotRegistered = function (fn) {\n var isRegistered = fn.label && (fn.label in this.registeredFunctions)\n\n if (!isRegistered) {\n lunr.utils.warn('Function is not registered with pipeline. This may cause problems when serialising the index.\\n', fn)\n }\n}\n\n/**\n * Loads a previously serialised pipeline.\n *\n * All functions to be loaded must already be registered with lunr.Pipeline.\n * If any function from the serialised data has not been registered then an\n * error will be thrown.\n *\n * @param {Object} serialised The serialised pipeline to load.\n * @returns {lunr.Pipeline}\n * @memberOf Pipeline\n */\nlunr.Pipeline.load = function (serialised) {\n var pipeline = new lunr.Pipeline\n\n serialised.forEach(function (fnName) {\n var fn = lunr.Pipeline.registeredFunctions[fnName]\n\n if (fn) {\n pipeline.add(fn)\n } else {\n throw new Error('Cannot load un-registered function: ' + fnName)\n }\n })\n\n return pipeline\n}\n\n/**\n * Adds new functions to the end of the pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {Function} functions Any number of functions to add to the pipeline.\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.add = function () {\n var fns = Array.prototype.slice.call(arguments)\n\n fns.forEach(function (fn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n this._stack.push(fn)\n }, this)\n}\n\n/**\n * Adds a single function after a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {Function} existingFn A function that already exists in the pipeline.\n * @param {Function} newFn The new function to add to the pipeline.\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.after = function (existingFn, newFn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n var pos = this._stack.indexOf(existingFn)\n if (pos == -1) {\n throw new Error('Cannot find existingFn')\n }\n\n pos = pos + 1\n this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Adds a single function before a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {Function} existingFn A function that already exists in the pipeline.\n * @param {Function} newFn The new function to add to the pipeline.\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.before = function (existingFn, newFn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n var pos = this._stack.indexOf(existingFn)\n if (pos == -1) {\n throw new Error('Cannot find existingFn')\n }\n\n this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Removes a function from the pipeline.\n *\n * @param {Function} fn The function to remove from the pipeline.\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.remove = function (fn) {\n var pos = this._stack.indexOf(fn)\n if (pos == -1) {\n return\n }\n\n this._stack.splice(pos, 1)\n}\n\n/**\n * Runs the current list of functions that make up the pipeline against the\n * passed tokens.\n *\n * @param {Array} tokens The tokens to run through the pipeline.\n * @returns {Array}\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.run = function (tokens) {\n var out = [],\n tokenLength = tokens.length,\n stackLength = this._stack.length\n\n for (var i = 0; i < tokenLength; i++) {\n var token = tokens[i]\n\n for (var j = 0; j < stackLength; j++) {\n token = this._stack[j](token, i, tokens)\n if (token === void 0 || token === '') break\n };\n\n if (token !== void 0 && token !== '') out.push(token)\n };\n\n return out\n}\n\n/**\n * Resets the pipeline by removing any existing processors.\n *\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.reset = function () {\n this._stack = []\n}\n\n/**\n * Returns a representation of the pipeline ready for serialisation.\n *\n * Logs a warning if the function has not been registered.\n *\n * @returns {Array}\n * @memberOf Pipeline\n */\nlunr.Pipeline.prototype.toJSON = function () {\n return this._stack.map(function (fn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n\n return fn.label\n })\n}\n/*!\n * lunr.Vector\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.Vectors implement vector related operations for\n * a series of elements.\n *\n * @constructor\n */\nlunr.Vector = function () {\n this._magnitude = null\n this.list = undefined\n this.length = 0\n}\n\n/**\n * lunr.Vector.Node is a simple struct for each node\n * in a lunr.Vector.\n *\n * @private\n * @param {Number} The index of the node in the vector.\n * @param {Object} The data at this node in the vector.\n * @param {lunr.Vector.Node} The node directly after this node in the vector.\n * @constructor\n * @memberOf Vector\n */\nlunr.Vector.Node = function (idx, val, next) {\n this.idx = idx\n this.val = val\n this.next = next\n}\n\n/**\n * Inserts a new value at a position in a vector.\n *\n * @param {Number} The index at which to insert a value.\n * @param {Object} The object to insert in the vector.\n * @memberOf Vector.\n */\nlunr.Vector.prototype.insert = function (idx, val) {\n this._magnitude = undefined;\n var list = this.list\n\n if (!list) {\n this.list = new lunr.Vector.Node (idx, val, list)\n return this.length++\n }\n\n if (idx < list.idx) {\n this.list = new lunr.Vector.Node (idx, val, list)\n return this.length++\n }\n\n var prev = list,\n next = list.next\n\n while (next != undefined) {\n if (idx < next.idx) {\n prev.next = new lunr.Vector.Node (idx, val, next)\n return this.length++\n }\n\n prev = next, next = next.next\n }\n\n prev.next = new lunr.Vector.Node (idx, val, next)\n return this.length++\n}\n\n/**\n * Calculates the magnitude of this vector.\n *\n * @returns {Number}\n * @memberOf Vector\n */\nlunr.Vector.prototype.magnitude = function () {\n if (this._magnitude) return this._magnitude\n var node = this.list,\n sumOfSquares = 0,\n val\n\n while (node) {\n val = node.val\n sumOfSquares += val * val\n node = node.next\n }\n\n return this._magnitude = Math.sqrt(sumOfSquares)\n}\n\n/**\n * Calculates the dot product of this vector and another vector.\n *\n * @param {lunr.Vector} otherVector The vector to compute the dot product with.\n * @returns {Number}\n * @memberOf Vector\n */\nlunr.Vector.prototype.dot = function (otherVector) {\n var node = this.list,\n otherNode = otherVector.list,\n dotProduct = 0\n\n while (node && otherNode) {\n if (node.idx < otherNode.idx) {\n node = node.next\n } else if (node.idx > otherNode.idx) {\n otherNode = otherNode.next\n } else {\n dotProduct += node.val * otherNode.val\n node = node.next\n otherNode = otherNode.next\n }\n }\n\n return dotProduct\n}\n\n/**\n * Calculates the cosine similarity between this vector and another\n * vector.\n *\n * @param {lunr.Vector} otherVector The other vector to calculate the\n * similarity with.\n * @returns {Number}\n * @memberOf Vector\n */\nlunr.Vector.prototype.similarity = function (otherVector) {\n return this.dot(otherVector) / (this.magnitude() * otherVector.magnitude())\n}\n/*!\n * lunr.SortedSet\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.SortedSets are used to maintain an array of uniq values in a sorted\n * order.\n *\n * @constructor\n */\nlunr.SortedSet = function () {\n this.length = 0\n this.elements = []\n}\n\n/**\n * Loads a previously serialised sorted set.\n *\n * @param {Array} serialisedData The serialised set to load.\n * @returns {lunr.SortedSet}\n * @memberOf SortedSet\n */\nlunr.SortedSet.load = function (serialisedData) {\n var set = new this\n\n set.elements = serialisedData\n set.length = serialisedData.length\n\n return set\n}\n\n/**\n * Inserts new items into the set in the correct position to maintain the\n * order.\n *\n * @param {Object} The objects to add to this set.\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.add = function () {\n var i, element\n\n for (i = 0; i < arguments.length; i++) {\n element = arguments[i]\n if (~this.indexOf(element)) continue\n this.elements.splice(this.locationFor(element), 0, element)\n }\n\n this.length = this.elements.length\n}\n\n/**\n * Converts this sorted set into an array.\n *\n * @returns {Array}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.toArray = function () {\n return this.elements.slice()\n}\n\n/**\n * Creates a new array with the results of calling a provided function on every\n * element in this sorted set.\n *\n * Delegates to Array.prototype.map and has the same signature.\n *\n * @param {Function} fn The function that is called on each element of the\n * set.\n * @param {Object} ctx An optional object that can be used as the context\n * for the function fn.\n * @returns {Array}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.map = function (fn, ctx) {\n return this.elements.map(fn, ctx)\n}\n\n/**\n * Executes a provided function once per sorted set element.\n *\n * Delegates to Array.prototype.forEach and has the same signature.\n *\n * @param {Function} fn The function that is called on each element of the\n * set.\n * @param {Object} ctx An optional object that can be used as the context\n * @memberOf SortedSet\n * for the function fn.\n */\nlunr.SortedSet.prototype.forEach = function (fn, ctx) {\n return this.elements.forEach(fn, ctx)\n}\n\n/**\n * Returns the index at which a given element can be found in the\n * sorted set, or -1 if it is not present.\n *\n * @param {Object} elem The object to locate in the sorted set.\n * @returns {Number}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.indexOf = function (elem) {\n var start = 0,\n end = this.elements.length,\n sectionLength = end - start,\n pivot = start + Math.floor(sectionLength / 2),\n pivotElem = this.elements[pivot]\n\n while (sectionLength > 1) {\n if (pivotElem === elem) return pivot\n\n if (pivotElem < elem) start = pivot\n if (pivotElem > elem) end = pivot\n\n sectionLength = end - start\n pivot = start + Math.floor(sectionLength / 2)\n pivotElem = this.elements[pivot]\n }\n\n if (pivotElem === elem) return pivot\n\n return -1\n}\n\n/**\n * Returns the position within the sorted set that an element should be\n * inserted at to maintain the current order of the set.\n *\n * This function assumes that the element to search for does not already exist\n * in the sorted set.\n *\n * @param {Object} elem The elem to find the position for in the set\n * @returns {Number}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.locationFor = function (elem) {\n var start = 0,\n end = this.elements.length,\n sectionLength = end - start,\n pivot = start + Math.floor(sectionLength / 2),\n pivotElem = this.elements[pivot]\n\n while (sectionLength > 1) {\n if (pivotElem < elem) start = pivot\n if (pivotElem > elem) end = pivot\n\n sectionLength = end - start\n pivot = start + Math.floor(sectionLength / 2)\n pivotElem = this.elements[pivot]\n }\n\n if (pivotElem > elem) return pivot\n if (pivotElem < elem) return pivot + 1\n}\n\n/**\n * Creates a new lunr.SortedSet that contains the elements in the intersection\n * of this set and the passed set.\n *\n * @param {lunr.SortedSet} otherSet The set to intersect with this set.\n * @returns {lunr.SortedSet}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.intersect = function (otherSet) {\n var intersectSet = new lunr.SortedSet,\n i = 0, j = 0,\n a_len = this.length, b_len = otherSet.length,\n a = this.elements, b = otherSet.elements\n\n while (true) {\n if (i > a_len - 1 || j > b_len - 1) break\n\n if (a[i] === b[j]) {\n intersectSet.add(a[i])\n i++, j++\n continue\n }\n\n if (a[i] < b[j]) {\n i++\n continue\n }\n\n if (a[i] > b[j]) {\n j++\n continue\n }\n };\n\n return intersectSet\n}\n\n/**\n * Makes a copy of this set\n *\n * @returns {lunr.SortedSet}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.clone = function () {\n var clone = new lunr.SortedSet\n\n clone.elements = this.toArray()\n clone.length = clone.elements.length\n\n return clone\n}\n\n/**\n * Creates a new lunr.SortedSet that contains the elements in the union\n * of this set and the passed set.\n *\n * @param {lunr.SortedSet} otherSet The set to union with this set.\n * @returns {lunr.SortedSet}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.union = function (otherSet) {\n var longSet, shortSet, unionSet\n\n if (this.length >= otherSet.length) {\n longSet = this, shortSet = otherSet\n } else {\n longSet = otherSet, shortSet = this\n }\n\n unionSet = longSet.clone()\n\n for(var i = 0, shortSetElements = shortSet.toArray(); i < shortSetElements.length; i++){\n unionSet.add(shortSetElements[i])\n }\n\n return unionSet\n}\n\n/**\n * Returns a representation of the sorted set ready for serialisation.\n *\n * @returns {Array}\n * @memberOf SortedSet\n */\nlunr.SortedSet.prototype.toJSON = function () {\n return this.toArray()\n}\n/*!\n * lunr.Index\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.Index is object that manages a search index. It contains the indexes\n * and stores all the tokens and document lookups. It also provides the main\n * user facing API for the library.\n *\n * @constructor\n */\nlunr.Index = function () {\n this._fields = []\n this._ref = 'id'\n this.pipeline = new lunr.Pipeline\n this.documentStore = new lunr.Store\n this.tokenStore = new lunr.TokenStore\n this.corpusTokens = new lunr.SortedSet\n this.eventEmitter = new lunr.EventEmitter\n this.tokenizerFn = lunr.tokenizer\n\n this._idfCache = {}\n\n this.on('add', 'remove', 'update', (function () {\n this._idfCache = {}\n }).bind(this))\n}\n\n/**\n * Bind a handler to events being emitted by the index.\n *\n * The handler can be bound to many events at the same time.\n *\n * @param {String} [eventName] The name(s) of events to bind the function to.\n * @param {Function} fn The serialised set to load.\n * @memberOf Index\n */\nlunr.Index.prototype.on = function () {\n var args = Array.prototype.slice.call(arguments)\n return this.eventEmitter.addListener.apply(this.eventEmitter, args)\n}\n\n/**\n * Removes a handler from an event being emitted by the index.\n *\n * @param {String} eventName The name of events to remove the function from.\n * @param {Function} fn The serialised set to load.\n * @memberOf Index\n */\nlunr.Index.prototype.off = function (name, fn) {\n return this.eventEmitter.removeListener(name, fn)\n}\n\n/**\n * Loads a previously serialised index.\n *\n * Issues a warning if the index being imported was serialised\n * by a different version of lunr.\n *\n * @param {Object} serialisedData The serialised set to load.\n * @returns {lunr.Index}\n * @memberOf Index\n */\nlunr.Index.load = function (serialisedData) {\n if (serialisedData.version !== lunr.version) {\n lunr.utils.warn('version mismatch: current ' + lunr.version + ' importing ' + serialisedData.version)\n }\n\n var idx = new this\n\n idx._fields = serialisedData.fields\n idx._ref = serialisedData.ref\n\n idx.tokenizer = lunr.tokenizer.load(serialisedData.tokenizer)\n idx.documentStore = lunr.Store.load(serialisedData.documentStore)\n idx.tokenStore = lunr.TokenStore.load(serialisedData.tokenStore)\n idx.corpusTokens = lunr.SortedSet.load(serialisedData.corpusTokens)\n idx.pipeline = lunr.Pipeline.load(serialisedData.pipeline)\n\n return idx\n}\n\n/**\n * Adds a field to the list of fields that will be searchable within documents\n * in the index.\n *\n * An optional boost param can be passed to affect how much tokens in this field\n * rank in search results, by default the boost value is 1.\n *\n * Fields should be added before any documents are added to the index, fields\n * that are added after documents are added to the index will only apply to new\n * documents added to the index.\n *\n * @param {String} fieldName The name of the field within the document that\n * should be indexed\n * @param {Number} boost An optional boost that can be applied to terms in this\n * field.\n * @returns {lunr.Index}\n * @memberOf Index\n */\nlunr.Index.prototype.field = function (fieldName, opts) {\n var opts = opts || {},\n field = { name: fieldName, boost: opts.boost || 1 }\n\n this._fields.push(field)\n return this\n}\n\n/**\n * Sets the property used to uniquely identify documents added to the index,\n * by default this property is 'id'.\n *\n * This should only be changed before adding documents to the index, changing\n * the ref property without resetting the index can lead to unexpected results.\n *\n * The value of ref can be of any type but it _must_ be stably comparable and\n * orderable.\n *\n * @param {String} refName The property to use to uniquely identify the\n * documents in the index.\n * @param {Boolean} emitEvent Whether to emit add events, defaults to true\n * @returns {lunr.Index}\n * @memberOf Index\n */\nlunr.Index.prototype.ref = function (refName) {\n this._ref = refName\n return this\n}\n\n/**\n * Sets the tokenizer used for this index.\n *\n * By default the index will use the default tokenizer, lunr.tokenizer. The tokenizer\n * should only be changed before adding documents to the index. Changing the tokenizer\n * without re-building the index can lead to unexpected results.\n *\n * @param {Function} fn The function to use as a tokenizer.\n * @returns {lunr.Index}\n * @memberOf Index\n */\nlunr.Index.prototype.tokenizer = function (fn) {\n var isRegistered = fn.label && (fn.label in lunr.tokenizer.registeredFunctions)\n\n if (!isRegistered) {\n lunr.utils.warn('Function is not a registered tokenizer. This may cause problems when serialising the index')\n }\n\n this.tokenizerFn = fn\n return this\n}\n\n/**\n * Add a document to the index.\n *\n * This is the way new documents enter the index, this function will run the\n * fields from the document through the index's pipeline and then add it to\n * the index, it will then show up in search results.\n *\n * An 'add' event is emitted with the document that has been added and the index\n * the document has been added to. This event can be silenced by passing false\n * as the second argument to add.\n *\n * @param {Object} doc The document to add to the index.\n * @param {Boolean} emitEvent Whether or not to emit events, default true.\n * @memberOf Index\n */\nlunr.Index.prototype.add = function (doc, emitEvent) {\n var docTokens = {},\n allDocumentTokens = new lunr.SortedSet,\n docRef = doc[this._ref],\n emitEvent = emitEvent === undefined ? true : emitEvent\n\n this._fields.forEach(function (field) {\n var fieldTokens = this.pipeline.run(this.tokenizerFn(doc[field.name]))\n\n docTokens[field.name] = fieldTokens\n\n for (var i = 0; i < fieldTokens.length; i++) {\n var token = fieldTokens[i]\n allDocumentTokens.add(token)\n this.corpusTokens.add(token)\n }\n }, this)\n\n this.documentStore.set(docRef, allDocumentTokens)\n\n for (var i = 0; i < allDocumentTokens.length; i++) {\n var token = allDocumentTokens.elements[i]\n var tf = 0;\n\n for (var j = 0; j < this._fields.length; j++){\n var field = this._fields[j]\n var fieldTokens = docTokens[field.name]\n var fieldLength = fieldTokens.length\n\n if (!fieldLength) continue\n\n var tokenCount = 0\n for (var k = 0; k < fieldLength; k++){\n if (fieldTokens[k] === token){\n tokenCount++\n }\n }\n\n tf += (tokenCount / fieldLength * field.boost)\n }\n\n this.tokenStore.add(token, { ref: docRef, tf: tf })\n };\n\n if (emitEvent) this.eventEmitter.emit('add', doc, this)\n}\n\n/**\n * Removes a document from the index.\n *\n * To make sure documents no longer show up in search results they can be\n * removed from the index using this method.\n *\n * The document passed only needs to have the same ref property value as the\n * document that was added to the index, they could be completely different\n * objects.\n *\n * A 'remove' event is emitted with the document that has been removed and the index\n * the document has been removed from. This event can be silenced by passing false\n * as the second argument to remove.\n *\n * @param {Object} doc The document to remove from the index.\n * @param {Boolean} emitEvent Whether to emit remove events, defaults to true\n * @memberOf Index\n */\nlunr.Index.prototype.remove = function (doc, emitEvent) {\n var docRef = doc[this._ref],\n emitEvent = emitEvent === undefined ? true : emitEvent\n\n if (!this.documentStore.has(docRef)) return\n\n var docTokens = this.documentStore.get(docRef)\n\n this.documentStore.remove(docRef)\n\n docTokens.forEach(function (token) {\n this.tokenStore.remove(token, docRef)\n }, this)\n\n if (emitEvent) this.eventEmitter.emit('remove', doc, this)\n}\n\n/**\n * Updates a document in the index.\n *\n * When a document contained within the index gets updated, fields changed,\n * added or removed, to make sure it correctly matched against search queries,\n * it should be updated in the index.\n *\n * This method is just a wrapper around `remove` and `add`\n *\n * An 'update' event is emitted with the document that has been updated and the index.\n * This event can be silenced by passing false as the second argument to update. Only\n * an update event will be fired, the 'add' and 'remove' events of the underlying calls\n * are silenced.\n *\n * @param {Object} doc The document to update in the index.\n * @param {Boolean} emitEvent Whether to emit update events, defaults to true\n * @see Index.prototype.remove\n * @see Index.prototype.add\n * @memberOf Index\n */\nlunr.Index.prototype.update = function (doc, emitEvent) {\n var emitEvent = emitEvent === undefined ? true : emitEvent\n\n this.remove(doc, false)\n this.add(doc, false)\n\n if (emitEvent) this.eventEmitter.emit('update', doc, this)\n}\n\n/**\n * Calculates the inverse document frequency for a token within the index.\n *\n * @param {String} token The token to calculate the idf of.\n * @see Index.prototype.idf\n * @private\n * @memberOf Index\n */\nlunr.Index.prototype.idf = function (term) {\n var cacheKey = \"@\" + term\n if (Object.prototype.hasOwnProperty.call(this._idfCache, cacheKey)) return this._idfCache[cacheKey]\n\n var documentFrequency = this.tokenStore.count(term),\n idf = 1\n\n if (documentFrequency > 0) {\n idf = 1 + Math.log(this.documentStore.length / documentFrequency)\n }\n\n return this._idfCache[cacheKey] = idf\n}\n\n/**\n * Searches the index using the passed query.\n *\n * Queries should be a string, multiple words are allowed and will lead to an\n * AND based query, e.g. `idx.search('foo bar')` will run a search for\n * documents containing both 'foo' and 'bar'.\n *\n * All query tokens are passed through the same pipeline that document tokens\n * are passed through, so any language processing involved will be run on every\n * query term.\n *\n * Each query term is expanded, so that the term 'he' might be expanded to\n * 'hello' and 'help' if those terms were already included in the index.\n *\n * Matching documents are returned as an array of objects, each object contains\n * the matching document ref, as set for this index, and the similarity score\n * for this document against the query.\n *\n * @param {String} query The query to search the index with.\n * @returns {Object}\n * @see Index.prototype.idf\n * @see Index.prototype.documentVector\n * @memberOf Index\n */\nlunr.Index.prototype.search = function (query) {\n var queryTokens = this.pipeline.run(this.tokenizerFn(query)),\n queryVector = new lunr.Vector,\n documentSets = [],\n fieldBoosts = this._fields.reduce(function (memo, f) { return memo + f.boost }, 0)\n\n var hasSomeToken = queryTokens.some(function (token) {\n return this.tokenStore.has(token)\n }, this)\n\n if (!hasSomeToken) return []\n\n queryTokens\n .forEach(function (token, i, tokens) {\n var tf = 1 / tokens.length * this._fields.length * fieldBoosts,\n self = this\n\n var set = this.tokenStore.expand(token).reduce(function (memo, key) {\n var pos = self.corpusTokens.indexOf(key),\n idf = self.idf(key),\n similarityBoost = 1,\n set = new lunr.SortedSet\n\n // if the expanded key is not an exact match to the token then\n // penalise the score for this key by how different the key is\n // to the token.\n if (key !== token) {\n var diff = Math.max(3, key.length - token.length)\n similarityBoost = 1 / Math.log(diff)\n }\n\n // calculate the query tf-idf score for this token\n // applying an similarityBoost to ensure exact matches\n // these rank higher than expanded terms\n if (pos > -1) queryVector.insert(pos, tf * idf * similarityBoost)\n\n // add all the documents that have this key into a set\n // ensuring that the type of key is preserved\n var matchingDocuments = self.tokenStore.get(key),\n refs = Object.keys(matchingDocuments),\n refsLen = refs.length\n\n for (var i = 0; i < refsLen; i++) {\n set.add(matchingDocuments[refs[i]].ref)\n }\n\n return memo.union(set)\n }, new lunr.SortedSet)\n\n documentSets.push(set)\n }, this)\n\n var documentSet = documentSets.reduce(function (memo, set) {\n return memo.intersect(set)\n })\n\n return documentSet\n .map(function (ref) {\n return { ref: ref, score: queryVector.similarity(this.documentVector(ref)) }\n }, this)\n .sort(function (a, b) {\n return b.score - a.score\n })\n}\n\n/**\n * Generates a vector containing all the tokens in the document matching the\n * passed documentRef.\n *\n * The vector contains the tf-idf score for each token contained in the\n * document with the passed documentRef. The vector will contain an element\n * for every token in the indexes corpus, if the document does not contain that\n * token the element will be 0.\n *\n * @param {Object} documentRef The ref to find the document with.\n * @returns {lunr.Vector}\n * @private\n * @memberOf Index\n */\nlunr.Index.prototype.documentVector = function (documentRef) {\n var documentTokens = this.documentStore.get(documentRef),\n documentTokensLength = documentTokens.length,\n documentVector = new lunr.Vector\n\n for (var i = 0; i < documentTokensLength; i++) {\n var token = documentTokens.elements[i],\n tf = this.tokenStore.get(token)[documentRef].tf,\n idf = this.idf(token)\n\n documentVector.insert(this.corpusTokens.indexOf(token), tf * idf)\n };\n\n return documentVector\n}\n\n/**\n * Returns a representation of the index ready for serialisation.\n *\n * @returns {Object}\n * @memberOf Index\n */\nlunr.Index.prototype.toJSON = function () {\n return {\n version: lunr.version,\n fields: this._fields,\n ref: this._ref,\n tokenizer: this.tokenizerFn.label,\n documentStore: this.documentStore.toJSON(),\n tokenStore: this.tokenStore.toJSON(),\n corpusTokens: this.corpusTokens.toJSON(),\n pipeline: this.pipeline.toJSON()\n }\n}\n\n/**\n * Applies a plugin to the current index.\n *\n * A plugin is a function that is called with the index as its context.\n * Plugins can be used to customise or extend the behaviour the index\n * in some way. A plugin is just a function, that encapsulated the custom\n * behaviour that should be applied to the index.\n *\n * The plugin function will be called with the index as its argument, additional\n * arguments can also be passed when calling use. The function will be called\n * with the index as its context.\n *\n * Example:\n *\n * var myPlugin = function (idx, arg1, arg2) {\n * // `this` is the index to be extended\n * // apply any extensions etc here.\n * }\n *\n * var idx = lunr(function () {\n * this.use(myPlugin, 'arg1', 'arg2')\n * })\n *\n * @param {Function} plugin The plugin to apply.\n * @memberOf Index\n */\nlunr.Index.prototype.use = function (plugin) {\n var args = Array.prototype.slice.call(arguments, 1)\n args.unshift(this)\n plugin.apply(this, args)\n}\n/*!\n * lunr.Store\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.Store is a simple key-value store used for storing sets of tokens for\n * documents stored in index.\n *\n * @constructor\n * @module\n */\nlunr.Store = function () {\n this.store = {}\n this.length = 0\n}\n\n/**\n * Loads a previously serialised store\n *\n * @param {Object} serialisedData The serialised store to load.\n * @returns {lunr.Store}\n * @memberOf Store\n */\nlunr.Store.load = function (serialisedData) {\n var store = new this\n\n store.length = serialisedData.length\n store.store = Object.keys(serialisedData.store).reduce(function (memo, key) {\n memo[key] = lunr.SortedSet.load(serialisedData.store[key])\n return memo\n }, {})\n\n return store\n}\n\n/**\n * Stores the given tokens in the store against the given id.\n *\n * @param {Object} id The key used to store the tokens against.\n * @param {Object} tokens The tokens to store against the key.\n * @memberOf Store\n */\nlunr.Store.prototype.set = function (id, tokens) {\n if (!this.has(id)) this.length++\n this.store[id] = tokens\n}\n\n/**\n * Retrieves the tokens from the store for a given key.\n *\n * @param {Object} id The key to lookup and retrieve from the store.\n * @returns {Object}\n * @memberOf Store\n */\nlunr.Store.prototype.get = function (id) {\n return this.store[id]\n}\n\n/**\n * Checks whether the store contains a key.\n *\n * @param {Object} id The id to look up in the store.\n * @returns {Boolean}\n * @memberOf Store\n */\nlunr.Store.prototype.has = function (id) {\n return id in this.store\n}\n\n/**\n * Removes the value for a key in the store.\n *\n * @param {Object} id The id to remove from the store.\n * @memberOf Store\n */\nlunr.Store.prototype.remove = function (id) {\n if (!this.has(id)) return\n\n delete this.store[id]\n this.length--\n}\n\n/**\n * Returns a representation of the store ready for serialisation.\n *\n * @returns {Object}\n * @memberOf Store\n */\nlunr.Store.prototype.toJSON = function () {\n return {\n store: this.store,\n length: this.length\n }\n}\n\n/*!\n * lunr.stemmer\n * Copyright (C) 2016 Oliver Nightingale\n * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt\n */\n\n/**\n * lunr.stemmer is an english language stemmer, this is a JavaScript\n * implementation of the PorterStemmer taken from http://tartarus.org/~martin\n *\n * @module\n * @param {String} str The string to stem\n * @returns {String}\n * @see lunr.Pipeline\n */\nlunr.stemmer = (function(){\n var step2list = {\n \"ational\" : \"ate\",\n \"tional\" : \"tion\",\n \"enci\" : \"ence\",\n \"anci\" : \"ance\",\n \"izer\" : \"ize\",\n \"bli\" : \"ble\",\n \"alli\" : \"al\",\n \"entli\" : \"ent\",\n \"eli\" : \"e\",\n \"ousli\" : \"ous\",\n \"ization\" : \"ize\",\n \"ation\" : \"ate\",\n \"ator\" : \"ate\",\n \"alism\" : \"al\",\n \"iveness\" : \"ive\",\n \"fulness\" : \"ful\",\n \"ousness\" : \"ous\",\n \"aliti\" : \"al\",\n \"iviti\" : \"ive\",\n \"biliti\" : \"ble\",\n \"logi\" : \"log\"\n },\n\n step3list = {\n \"icate\" : \"ic\",\n \"ative\" : \"\",\n \"alize\" : \"al\",\n \"iciti\" : \"ic\",\n \"ical\" : \"ic\",\n \"ful\" : \"\",\n \"ness\" : \"\"\n },\n\n c = \"[^aeiou]\", // consonant\n v = \"[aeiouy]\", // vowel\n C = c + \"[^aeiouy]*\", // consonant sequence\n V = v + \"[aeiou]*\", // vowel sequence\n\n mgr0 = \"^(\" + C + \")?\" + V + C, // [C]VC... is m>0\n meq1 = \"^(\" + C + \")?\" + V + C + \"(\" + V + \")?$\", // [C]VC[V] is m=1\n mgr1 = \"^(\" + C + \")?\" + V + C + V + C, // [C]VCVC... is m>1\n s_v = \"^(\" + C + \")?\" + v; // vowel in stem\n\n var re_mgr0 = new RegExp(mgr0);\n var re_mgr1 = new RegExp(mgr1);\n var re_meq1 = new RegExp(meq1);\n var re_s_v = new RegExp(s_v);\n\n var re_1a = /^(.+?)(ss|i)es$/;\n var re2_1a = /^(.+?)([^s])s$/;\n var re_1b = /^(.+?)eed$/;\n var re2_1b = /^(.+?)(ed|ing)$/;\n var re_1b_2 = /.$/;\n var re2_1b_2 = /(at|bl|iz)$/;\n var re3_1b_2 = new RegExp(\"([^aeiouylsz])\\\\1$\");\n var re4_1b_2 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n var re_1c = /^(.+?[^aeiou])y$/;\n var re_2 = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;\n\n var re_3 = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;\n\n var re_4 = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;\n var re2_4 = /^(.+?)(s|t)(ion)$/;\n\n var re_5 = /^(.+?)e$/;\n var re_5_1 = /ll$/;\n var re3_5 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n var porterStemmer = function porterStemmer(w) {\n var stem,\n suffix,\n firstch,\n re,\n re2,\n re3,\n re4;\n\n if (w.length < 3) { return w; }\n\n firstch = w.substr(0,1);\n if (firstch == \"y\") {\n w = firstch.toUpperCase() + w.substr(1);\n }\n\n // Step 1a\n re = re_1a\n re2 = re2_1a;\n\n if (re.test(w)) { w = w.replace(re,\"$1$2\"); }\n else if (re2.test(w)) { w = w.replace(re2,\"$1$2\"); }\n\n // Step 1b\n re = re_1b;\n re2 = re2_1b;\n if (re.test(w)) {\n var fp = re.exec(w);\n re = re_mgr0;\n if (re.test(fp[1])) {\n re = re_1b_2;\n w = w.replace(re,\"\");\n }\n } else if (re2.test(w)) {\n var fp = re2.exec(w);\n stem = fp[1];\n re2 = re_s_v;\n if (re2.test(stem)) {\n w = stem;\n re2 = re2_1b_2;\n re3 = re3_1b_2;\n re4 = re4_1b_2;\n if (re2.test(w)) { w = w + \"e\"; }\n else if (re3.test(w)) { re = re_1b_2; w = w.replace(re,\"\"); }\n else if (re4.test(w)) { w = w + \"e\"; }\n }\n }\n\n // Step 1c - replace suffix y or Y by i if preceded by a non-vowel which is not the first letter of the word (so cry -> cri, by -> by, say -> say)\n re = re_1c;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n w = stem + \"i\";\n }\n\n // Step 2\n re = re_2;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n suffix = fp[2];\n re = re_mgr0;\n if (re.test(stem)) {\n w = stem + step2list[suffix];\n }\n }\n\n // Step 3\n re = re_3;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n suffix = fp[2];\n re = re_mgr0;\n if (re.test(stem)) {\n w = stem + step3list[suffix];\n }\n }\n\n // Step 4\n re = re_4;\n re2 = re2_4;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n re = re_mgr1;\n if (re.test(stem)) {\n w = stem;\n }\n } else if (re2.test(w)) {\n var fp = re2.exec(w);\n stem = fp[1] + fp[2];\n re2 = re_mgr1;\n if (re2.test(stem)) {\n w = stem;\n }\n }\n\n // Step 5\n re = re_5;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n re = re_mgr1;\n re2 = re_meq1;\n re3 = re3_5;\n if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) {\n w = stem;\n }\n }\n\n re = re_5_1;\n re2 = re_mgr1;\n if (re.test(w) && re2.test(w)) {\n re = re_1b_2;\n w = w.replace(re,\"\");\n }\n\n // and turn initial Y back to y\n\n if (firstch == \"y\") {\n w = firstch.toLowerCase() + w.substr(1);\n }\n\n return w;\n };\n\n return porterStemmer;\n})();\n\nlunr.Pipeline.registerFunction(lunr.stemmer, 'stemmer')\n/*!\n * lunr.stopWordFilter\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.generateStopWordFilter builds a stopWordFilter function from the provided\n * list of stop words.\n *\n * The built in lunr.stopWordFilter is built using this generator and can be used\n * to generate custom stopWordFilters for applications or non English languages.\n *\n * @module\n * @param {Array} token The token to pass through the filter\n * @returns {Function}\n * @see lunr.Pipeline\n * @see lunr.stopWordFilter\n */\nlunr.generateStopWordFilter = function (stopWords) {\n var words = stopWords.reduce(function (memo, stopWord) {\n memo[stopWord] = stopWord\n return memo\n }, {})\n\n return function (token) {\n if (token && words[token] !== token) return token\n }\n}\n\n/**\n * lunr.stopWordFilter is an English language stop word list filter, any words\n * contained in the list will not be passed through the filter.\n *\n * This is intended to be used in the Pipeline. If the token does not pass the\n * filter then undefined will be returned.\n *\n * @module\n * @param {String} token The token to pass through the filter\n * @returns {String}\n * @see lunr.Pipeline\n */\nlunr.stopWordFilter = lunr.generateStopWordFilter([\n 'a',\n 'able',\n 'about',\n 'across',\n 'after',\n 'all',\n 'almost',\n 'also',\n 'am',\n 'among',\n 'an',\n 'and',\n 'any',\n 'are',\n 'as',\n 'at',\n 'be',\n 'because',\n 'been',\n 'but',\n 'by',\n 'can',\n 'cannot',\n 'could',\n 'dear',\n 'did',\n 'do',\n 'does',\n 'either',\n 'else',\n 'ever',\n 'every',\n 'for',\n 'from',\n 'get',\n 'got',\n 'had',\n 'has',\n 'have',\n 'he',\n 'her',\n 'hers',\n 'him',\n 'his',\n 'how',\n 'however',\n 'i',\n 'if',\n 'in',\n 'into',\n 'is',\n 'it',\n 'its',\n 'just',\n 'least',\n 'let',\n 'like',\n 'likely',\n 'may',\n 'me',\n 'might',\n 'most',\n 'must',\n 'my',\n 'neither',\n 'no',\n 'nor',\n 'not',\n 'of',\n 'off',\n 'often',\n 'on',\n 'only',\n 'or',\n 'other',\n 'our',\n 'own',\n 'rather',\n 'said',\n 'say',\n 'says',\n 'she',\n 'should',\n 'since',\n 'so',\n 'some',\n 'than',\n 'that',\n 'the',\n 'their',\n 'them',\n 'then',\n 'there',\n 'these',\n 'they',\n 'this',\n 'tis',\n 'to',\n 'too',\n 'twas',\n 'us',\n 'wants',\n 'was',\n 'we',\n 'were',\n 'what',\n 'when',\n 'where',\n 'which',\n 'while',\n 'who',\n 'whom',\n 'why',\n 'will',\n 'with',\n 'would',\n 'yet',\n 'you',\n 'your'\n])\n\nlunr.Pipeline.registerFunction(lunr.stopWordFilter, 'stopWordFilter')\n/*!\n * lunr.trimmer\n * Copyright (C) 2016 Oliver Nightingale\n */\n\n/**\n * lunr.trimmer is a pipeline function for trimming non word\n * characters from the begining and end of tokens before they\n * enter the index.\n *\n * This implementation may not work correctly for non latin\n * characters and should either be removed or adapted for use\n * with languages with non-latin characters.\n *\n * @module\n * @param {String} token The token to pass through the filter\n * @returns {String}\n * @see lunr.Pipeline\n */\nlunr.trimmer = function (token) {\n return token.replace(/^\\W+/, '').replace(/\\W+$/, '')\n}\n\nlunr.Pipeline.registerFunction(lunr.trimmer, 'trimmer')\n/*!\n * lunr.stemmer\n * Copyright (C) 2016 Oliver Nightingale\n * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt\n */\n\n/**\n * lunr.TokenStore is used for efficient storing and lookup of the reverse\n * index of token to document ref.\n *\n * @constructor\n */\nlunr.TokenStore = function () {\n this.root = { docs: {} }\n this.length = 0\n}\n\n/**\n * Loads a previously serialised token store\n *\n * @param {Object} serialisedData The serialised token store to load.\n * @returns {lunr.TokenStore}\n * @memberOf TokenStore\n */\nlunr.TokenStore.load = function (serialisedData) {\n var store = new this\n\n store.root = serialisedData.root\n store.length = serialisedData.length\n\n return store\n}\n\n/**\n * Adds a new token doc pair to the store.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to store the doc under\n * @param {Object} doc The doc to store against the token\n * @param {Object} root An optional node at which to start looking for the\n * correct place to enter the doc, by default the root of this lunr.TokenStore\n * is used.\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.add = function (token, doc, root) {\n var root = root || this.root,\n key = token.charAt(0),\n rest = token.slice(1)\n\n if (!(key in root)) root[key] = {docs: {}}\n\n if (rest.length === 0) {\n root[key].docs[doc.ref] = doc\n this.length += 1\n return\n } else {\n return this.add(rest, doc, root[key])\n }\n}\n\n/**\n * Checks whether this key is contained within this lunr.TokenStore.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to check for\n * @param {Object} root An optional node at which to start\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.has = function (token) {\n if (!token) return false\n\n var node = this.root\n\n for (var i = 0; i < token.length; i++) {\n if (!node[token.charAt(i)]) return false\n\n node = node[token.charAt(i)]\n }\n\n return true\n}\n\n/**\n * Retrieve a node from the token store for a given token.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to get the node for.\n * @param {Object} root An optional node at which to start.\n * @returns {Object}\n * @see TokenStore.prototype.get\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.getNode = function (token) {\n if (!token) return {}\n\n var node = this.root\n\n for (var i = 0; i < token.length; i++) {\n if (!node[token.charAt(i)]) return {}\n\n node = node[token.charAt(i)]\n }\n\n return node\n}\n\n/**\n * Retrieve the documents for a node for the given token.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to get the documents for.\n * @param {Object} root An optional node at which to start.\n * @returns {Object}\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.get = function (token, root) {\n return this.getNode(token, root).docs || {}\n}\n\nlunr.TokenStore.prototype.count = function (token, root) {\n return Object.keys(this.get(token, root)).length\n}\n\n/**\n * Remove the document identified by ref from the token in the store.\n *\n * By default this function starts at the root of the current store, however\n * it can start at any node of any token store if required.\n *\n * @param {String} token The token to get the documents for.\n * @param {String} ref The ref of the document to remove from this token.\n * @param {Object} root An optional node at which to start.\n * @returns {Object}\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.remove = function (token, ref) {\n if (!token) return\n var node = this.root\n\n for (var i = 0; i < token.length; i++) {\n if (!(token.charAt(i) in node)) return\n node = node[token.charAt(i)]\n }\n\n delete node.docs[ref]\n}\n\n/**\n * Find all the possible suffixes of the passed token using tokens\n * currently in the store.\n *\n * @param {String} token The token to expand.\n * @returns {Array}\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.expand = function (token, memo) {\n var root = this.getNode(token),\n docs = root.docs || {},\n memo = memo || []\n\n if (Object.keys(docs).length) memo.push(token)\n\n Object.keys(root)\n .forEach(function (key) {\n if (key === 'docs') return\n\n memo.concat(this.expand(token + key, memo))\n }, this)\n\n return memo\n}\n\n/**\n * Returns a representation of the token store ready for serialisation.\n *\n * @returns {Object}\n * @memberOf TokenStore\n */\nlunr.TokenStore.prototype.toJSON = function () {\n return {\n root: this.root,\n length: this.length\n }\n}\n\n /**\n * export the module via AMD, CommonJS or as a browser global\n * Export code from https://github.com/umdjs/umd/blob/master/returnExports.js\n */\n ;(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define(factory)\n } else if (typeof exports === 'object') {\n /**\n * Node. Does not work with strict CommonJS, but\n * only CommonJS-like enviroments that support module.exports,\n * like Node.\n */\n module.exports = factory()\n } else {\n // Browser globals (root is window)\n root.lunr = factory()\n }\n }(this, function () {\n /**\n * Just return a value to define the module export.\n * This example returns an object, but the module\n * can return a function as the exported value.\n */\n return lunr\n }))\n})();\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/lunr/lunr.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport Sidebar from \"./Material/Sidebar\"\n\n/* ----------------------------------------------------------------------------\n * Material application\n * ------------------------------------------------------------------------- */\n\nexport default\nclass Material {\n\n /**\n * Constructor\n *\n * @constructor\n */\n // constructor() {\n //\n // }\n\n /**\n * @return {void}\n */\n initialize() {\n\n // class AnchorMarker extends PageYOffsetListener\n // class SidebarConstrainer extends PageYOffsetListener\n\n // MatchMedia!?\n\n const width = window.matchMedia(\"(min-width: 1200px)\")\n\n // separate function in application.js --> initSidebar()\n const sidebar = new Sidebar.Position(\"[data-md-sidebar=primary]\")\n const handler = function() {\n if (width.matches) {\n sidebar.listen()\n } else {\n sidebar.unlisten()\n }\n }\n handler() // check listen!\n\n const toc = new Sidebar.Position(\"[data-md-sidebar=secondary]\")\n toc.listen()\n\n window.addEventListener(\"resize\", handler) // TODO: orientation change etc...\n\n const marker =\n new Sidebar.Marker(\"[data-md-sidebar=secondary] .md-nav__link\")\n marker.listen()\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport Marker from \"./Sidebar/Marker\"\nimport Position from \"./Sidebar/Position\"\n\n/* ----------------------------------------------------------------------------\n * Definition\n * ------------------------------------------------------------------------- */\n\nexport default {\n Marker,\n Position\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material/Sidebar.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport Abstract from \"./Abstract\"\n\n/* ----------------------------------------------------------------------------\n * Definition\n * ------------------------------------------------------------------------- */\n\nexport default class Marker extends Abstract {\n\n /**\n * Mark anchors within the table of contents above current page y-offset\n *\n * @constructor\n * @param {(string|NodeList)} els - Selector or HTML elements\n */\n constructor(els) {\n super()\n\n /* Resolve elements */\n this.els_ = (typeof els === \"string\")\n ? document.querySelectorAll(els)\n : els\n\n /* Initialize index and page y-offset */\n this.index_ = 0\n this.offset_ = window.pageYOffset\n\n /* Index anchor nodes for fast lookup */\n this.anchors_ = [].map.call(this.els_, el => {\n return document.querySelector(el.hash)\n })\n }\n\n /**\n * Update anchor states\n *\n * @param {Event} ev - Event (omitted)\n */\n update() {\n const offset = window.pageYOffset\n\n /* Scroll direction is down */\n if (this.offset_ <= offset) {\n for (let i = this.index_ + 1; i < this.els_.length; i++) {\n if (this.anchors_[i].offsetTop <= offset) {\n if (i > 0)\n this.els_[i - 1].dataset.mdMarked = \"\"\n this.index_ = i\n } else {\n break\n }\n }\n\n /* Scroll direction is up */\n } else {\n for (let i = this.index_; i >= 0; i--) {\n if (this.anchors_[i].offsetTop > offset) {\n if (i > 0)\n delete this.els_[i - 1].dataset.mdMarked\n } else {\n this.index_ = i\n break\n }\n }\n }\n\n /* Remember current offset for next iteration */\n this.offset_ = offset\n }\n\n /**\n * Reset anchor states\n */\n reset() {\n [].forEach.call(this.els_, el => {\n delete el.dataset.mdMarked\n })\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material/Sidebar/Marker.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/* ----------------------------------------------------------------------------\n * Definition\n * ------------------------------------------------------------------------- */\n\nexport default class Abstract {\n\n /**\n * Dispatch update on next repaint\n *\n * @constructor\n */\n constructor() {\n if (this === Abstract)\n throw new TypeError(\"Cannot construct abstract instance\")\n\n /* Dispatch update on next repaint */\n this.handler_ = ev => {\n window.requestAnimationFrame(() => {\n this.update(ev)\n })\n }\n }\n\n /**\n * Update state\n *\n * @abstract\n */\n update() {\n throw new Error(\"update(): not implemented\")\n }\n\n /**\n * Reset state\n *\n * @abstract\n */\n reset() {\n throw new Error(\"reset(): not implemented\")\n }\n\n /**\n * Register listener for all relevant events\n */\n listen() {\n [\"scroll\", \"resize\", \"orientationchange\"].forEach(name => {\n window.addEventListener(name, this.handler_, false)\n })\n\n /* Initial update */\n this.update()\n }\n\n /**\n * Unregister listener for all relevant events\n */\n unlisten() {\n [\"scroll\", \"resize\", \"orientationchange\"].forEach(name => {\n window.removeEventListener(name, this.handler_, false)\n })\n\n /* Final reset */\n this.reset()\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material/Sidebar/Abstract.js\n **/","/*\n * Copyright (c) 2016 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport Abstract from \"./Abstract\"\n\n/* ----------------------------------------------------------------------------\n * Definition\n * ------------------------------------------------------------------------- */\n\nexport default class Position extends Abstract {\n\n /**\n * Set sidebars to locked state and limit height to parent node\n *\n * @constructor\n * @param {(string|HTMLElement)} el - Selector or HTML element\n */\n constructor(el) {\n super()\n\n /* Resolve elements */\n this.el_ = (typeof el === \"string\")\n ? document.querySelector(el)\n : el\n\n /* Index inner and outer container */\n const inner = this.el_.parentNode\n const outer = this.el_.parentNode.parentNode\n\n /* Get top and bottom bounds */\n this.offset_ = outer.offsetTop\n this.bounds_ = {\n top: inner.offsetTop,\n bottom: inner.offsetTop + inner.offsetHeight\n }\n\n /* Initialize current height */\n this.height_ = 0\n }\n\n /**\n * Update locked state and height\n *\n * @param {Event} ev - Event (omitted)\n */\n update() {\n const scroll = window.pageYOffset\n const expand = window.innerHeight\n\n /* Calculate new bounds */\n const offset = this.bounds_.top - scroll\n const height = expand\n - Math.max(0, scroll + expand - this.bounds_.bottom)\n - Math.max(offset, this.offset_)\n\n /* If height changed, update element */\n if (height !== this.height_)\n this.el_.style.height = `${this.height_ = height}px`\n\n /* Sidebar should be locked, as we're below parent offset */\n if (offset < this.offset_) {\n if (!this.el_.dataset.mdLocked)\n this.el_.dataset.mdLocked = \"\"\n\n /* Sidebar should be unlocked, if locked */\n } else if (typeof this.el_.dataset.mdLocked === \"string\") {\n delete this.el_.dataset.mdLocked\n }\n }\n\n /**\n * Reset locked state and height\n */\n reset() {\n delete this.el_.dataset.mdLocked\n this.el_.style.height = \"\"\n this.height_ = 0\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/assets/javascripts/components/Material/Sidebar/Position.js\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/material/assets/javascripts/modernizr-dede1352ed.js b/material/assets/javascripts/modernizr-dede1352ed.js deleted file mode 100644 index fda45b632..000000000 --- a/material/assets/javascripts/modernizr-dede1352ed.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,t,n){function r(e,t){return typeof e===t}function s(){var e,t,n,s,o,i,a;for(var f in w)if(w.hasOwnProperty(f)){if(e=[],t=w[f],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n=9,s=t<533&&e.match(/android/gi);return n||s||r}();P?S.addTest("fontface",!1):E('@font-face {font-family:"font";src:url("https://")}',function(e,n){var r=t.getElementById("smodernizr"),s=r.sheet||r.styleSheet,o=s?s.cssRules&&s.cssRules[0]?s.cssRules[0].cssText:s.cssText||"":"",i=/src/i.test(o)&&0===o.indexOf(n.split(" ")[0]);S.addTest("fontface",i)});var z="Moz O ms Webkit",N=C._config.usePrefixes?z.split(" "):[];C._cssomPrefixes=N;var j={elem:a("modernizr")};S._q.push(function(){delete j.elem});var k={style:j.elem.style};S._q.unshift(function(){delete k.style});var R=C._config.usePrefixes?z.toLowerCase().split(" "):[];C._domPrefixes=R,C.testAllProps=v,C.testAllProps=y;var A="CSS"in e&&"supports"in e.CSS,q="supportsCSS"in e;S.addTest("supports",A||q),S.addTest("csstransforms3d",function(){var e=!!y("perspective","1px",!0),t=S._config.usePrefixes;if(e&&(!t||"webkitPerspective"in b.style)){var n,r="#modernizr{width:0;height:0}";S.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",t&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",E(r+n,function(t){e=7===t.offsetWidth&&18===t.offsetHeight})}return e}),s(),o(x),delete C.addTest,delete C.addAsyncTest;for(var L=0;L` element. This + * information allows you to progressively enhance your pages with a granular level + * of control over the experience. +*/ + +;(function(window, document, undefined){ + var tests = []; + + + /** + * + * ModernizrProto is the constructor for Modernizr + * + * @class + * @access public + */ + + var ModernizrProto = { + // The current version, dummy + _version: '3.3.1', + + // Any settings that don't work as separate modules + // can go in here as configuration. + _config: { + 'classPrefix': '', + 'enableClasses': true, + 'enableJSClass': true, + 'usePrefixes': true + }, + + // Queue of tests + _q: [], + + // Stub these for people who are listening + on: function(test, cb) { + // I don't really think people should do this, but we can + // safe guard it a bit. + // -- NOTE:: this gets WAY overridden in src/addTest for actual async tests. + // This is in case people listen to synchronous tests. I would leave it out, + // but the code to *disallow* sync tests in the real version of this + // function is actually larger than this. + var self = this; + setTimeout(function() { + cb(self[test]); + }, 0); + }, + + addTest: function(name, fn, options) { + tests.push({name: name, fn: fn, options: options}); + }, + + addAsyncTest: function(fn) { + tests.push({name: null, fn: fn}); + } + }; + + + + // Fake some of Object.create so we can force non test results to be non "own" properties. + var Modernizr = function() {}; + Modernizr.prototype = ModernizrProto; + + // Leak modernizr globally when you `require` it rather than force it here. + // Overwrite name so constructor name is nicer :D + Modernizr = new Modernizr(); + + + + var classes = []; + + + /** + * is returns a boolean if the typeof an obj is exactly type. + * + * @access private + * @function is + * @param {*} obj - A thing we want to check the type of + * @param {string} type - A string to compare the typeof against + * @returns {boolean} + */ + + function is(obj, type) { + return typeof obj === type; + } + ; + + /** + * Run through all tests and detect their support in the current UA. + * + * @access private + */ + + function testRunner() { + var featureNames; + var feature; + var aliasIdx; + var result; + var nameIdx; + var featureName; + var featureNameSplit; + + for (var featureIdx in tests) { + if (tests.hasOwnProperty(featureIdx)) { + featureNames = []; + feature = tests[featureIdx]; + // run the test, throw the return value into the Modernizr, + // then based on that boolean, define an appropriate className + // and push it into an array of classes we'll join later. + // + // If there is no name, it's an 'async' test that is run, + // but not directly added to the object. That should + // be done with a post-run addTest call. + if (feature.name) { + featureNames.push(feature.name.toLowerCase()); + + if (feature.options && feature.options.aliases && feature.options.aliases.length) { + // Add all the aliases into the names list + for (aliasIdx = 0; aliasIdx < feature.options.aliases.length; aliasIdx++) { + featureNames.push(feature.options.aliases[aliasIdx].toLowerCase()); + } + } + } + + // Run the test, or use the raw value if it's not a function + result = is(feature.fn, 'function') ? feature.fn() : feature.fn; + + + // Set each of the names on the Modernizr object + for (nameIdx = 0; nameIdx < featureNames.length; nameIdx++) { + featureName = featureNames[nameIdx]; + // Support dot properties as sub tests. We don't do checking to make sure + // that the implied parent tests have been added. You must call them in + // order (either in the test, or make the parent test a dependency). + // + // Cap it to TWO to make the logic simple and because who needs that kind of subtesting + // hashtag famous last words + featureNameSplit = featureName.split('.'); + + if (featureNameSplit.length === 1) { + Modernizr[featureNameSplit[0]] = result; + } else { + // cast to a Boolean, if not one already + /* jshint -W053 */ + if (Modernizr[featureNameSplit[0]] && !(Modernizr[featureNameSplit[0]] instanceof Boolean)) { + Modernizr[featureNameSplit[0]] = new Boolean(Modernizr[featureNameSplit[0]]); + } + + Modernizr[featureNameSplit[0]][featureNameSplit[1]] = result; + } + + classes.push((result ? '' : 'no-') + featureNameSplit.join('-')); + } + } + } + } + ; + + /** + * docElement is a convenience wrapper to grab the root element of the document + * + * @access private + * @returns {HTMLElement|SVGElement} The root element of the document + */ + + var docElement = document.documentElement; + + + /** + * A convenience helper to check if the document we are running in is an SVG document + * + * @access private + * @returns {boolean} + */ + + var isSVG = docElement.nodeName.toLowerCase() === 'svg'; + + + /** + * setClasses takes an array of class names and adds them to the root element + * + * @access private + * @function setClasses + * @param {string[]} classes - Array of class names + */ + + // Pass in an and array of class names, e.g.: + // ['no-webp', 'borderradius', ...] + function setClasses(classes) { + var className = docElement.className; + var classPrefix = Modernizr._config.classPrefix || ''; + + if (isSVG) { + className = className.baseVal; + } + + // Change `no-js` to `js` (independently of the `enableClasses` option) + // Handle classPrefix on this too + if (Modernizr._config.enableJSClass) { + var reJS = new RegExp('(^|\\s)' + classPrefix + 'no-js(\\s|$)'); + className = className.replace(reJS, '$1' + classPrefix + 'js$2'); + } + + if (Modernizr._config.enableClasses) { + // Add the new classes + className += ' ' + classPrefix + classes.join(' ' + classPrefix); + isSVG ? docElement.className.baseVal = className : docElement.className = className; + } + + } + + ; + + /** + * hasOwnProp is a shim for hasOwnProperty that is needed for Safari 2.0 support + * + * @author kangax + * @access private + * @function hasOwnProp + * @param {object} object - The object to check for a property + * @param {string} property - The property to check for + * @returns {boolean} + */ + + // hasOwnProperty shim by kangax needed for Safari 2.0 support + var hasOwnProp; + + (function() { + var _hasOwnProperty = ({}).hasOwnProperty; + /* istanbul ignore else */ + /* we have no way of testing IE 5.5 or safari 2, + * so just assume the else gets hit */ + if (!is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined')) { + hasOwnProp = function(object, property) { + return _hasOwnProperty.call(object, property); + }; + } + else { + hasOwnProp = function(object, property) { /* yes, this can give false positives/negatives, but most of the time we don't care about those */ + return ((property in object) && is(object.constructor.prototype[property], 'undefined')); + }; + } + })(); + + + + + // _l tracks listeners for async tests, as well as tests that execute after the initial run + ModernizrProto._l = {}; + + /** + * Modernizr.on is a way to listen for the completion of async tests. Being + * asynchronous, they may not finish before your scripts run. As a result you + * will get a possibly false negative `undefined` value. + * + * @memberof Modernizr + * @name Modernizr.on + * @access public + * @function on + * @param {string} feature - String name of the feature detect + * @param {function} cb - Callback function returning a Boolean - true if feature is supported, false if not + * @example + * + * ```js + * Modernizr.on('flash', function( result ) { + * if (result) { + * // the browser has flash + * } else { + * // the browser does not have flash + * } + * }); + * ``` + */ + + ModernizrProto.on = function(feature, cb) { + // Create the list of listeners if it doesn't exist + if (!this._l[feature]) { + this._l[feature] = []; + } + + // Push this test on to the listener list + this._l[feature].push(cb); + + // If it's already been resolved, trigger it on next tick + if (Modernizr.hasOwnProperty(feature)) { + // Next Tick + setTimeout(function() { + Modernizr._trigger(feature, Modernizr[feature]); + }, 0); + } + }; + + /** + * _trigger is the private function used to signal test completion and run any + * callbacks registered through [Modernizr.on](#modernizr-on) + * + * @memberof Modernizr + * @name Modernizr._trigger + * @access private + * @function _trigger + * @param {string} feature - string name of the feature detect + * @param {function|boolean} [res] - A feature detection function, or the boolean = + * result of a feature detection function + */ + + ModernizrProto._trigger = function(feature, res) { + if (!this._l[feature]) { + return; + } + + var cbs = this._l[feature]; + + // Force async + setTimeout(function() { + var i, cb; + for (i = 0; i < cbs.length; i++) { + cb = cbs[i]; + cb(res); + } + }, 0); + + // Don't trigger these again + delete this._l[feature]; + }; + + /** + * addTest allows you to define your own feature detects that are not currently + * included in Modernizr (under the covers it's the exact same code Modernizr + * uses for its own [feature detections](https://github.com/Modernizr/Modernizr/tree/master/feature-detects)). Just like the offical detects, the result + * will be added onto the Modernizr object, as well as an appropriate className set on + * the html element when configured to do so + * + * @memberof Modernizr + * @name Modernizr.addTest + * @optionName Modernizr.addTest() + * @optionProp addTest + * @access public + * @function addTest + * @param {string|object} feature - The string name of the feature detect, or an + * object of feature detect names and test + * @param {function|boolean} test - Function returning true if feature is supported, + * false if not. Otherwise a boolean representing the results of a feature detection + * @example + * + * The most common way of creating your own feature detects is by calling + * `Modernizr.addTest` with a string (preferably just lowercase, without any + * punctuation), and a function you want executed that will return a boolean result + * + * ```js + * Modernizr.addTest('itsTuesday', function() { + * var d = new Date(); + * return d.getDay() === 2; + * }); + * ``` + * + * When the above is run, it will set Modernizr.itstuesday to `true` when it is tuesday, + * and to `false` every other day of the week. One thing to notice is that the names of + * feature detect functions are always lowercased when added to the Modernizr object. That + * means that `Modernizr.itsTuesday` will not exist, but `Modernizr.itstuesday` will. + * + * + * Since we only look at the returned value from any feature detection function, + * you do not need to actually use a function. For simple detections, just passing + * in a statement that will return a boolean value works just fine. + * + * ```js + * Modernizr.addTest('hasJquery', 'jQuery' in window); + * ``` + * + * Just like before, when the above runs `Modernizr.hasjquery` will be true if + * jQuery has been included on the page. Not using a function saves a small amount + * of overhead for the browser, as well as making your code much more readable. + * + * Finally, you also have the ability to pass in an object of feature names and + * their tests. This is handy if you want to add multiple detections in one go. + * The keys should always be a string, and the value can be either a boolean or + * function that returns a boolean. + * + * ```js + * var detects = { + * 'hasjquery': 'jQuery' in window, + * 'itstuesday': function() { + * var d = new Date(); + * return d.getDay() === 2; + * } + * } + * + * Modernizr.addTest(detects); + * ``` + * + * There is really no difference between the first methods and this one, it is + * just a convenience to let you write more readable code. + */ + + function addTest(feature, test) { + + if (typeof feature == 'object') { + for (var key in feature) { + if (hasOwnProp(feature, key)) { + addTest(key, feature[ key ]); + } + } + } else { + + feature = feature.toLowerCase(); + var featureNameSplit = feature.split('.'); + var last = Modernizr[featureNameSplit[0]]; + + // Again, we don't check for parent test existence. Get that right, though. + if (featureNameSplit.length == 2) { + last = last[featureNameSplit[1]]; + } + + if (typeof last != 'undefined') { + // we're going to quit if you're trying to overwrite an existing test + // if we were to allow it, we'd do this: + // var re = new RegExp("\\b(no-)?" + feature + "\\b"); + // docElement.className = docElement.className.replace( re, '' ); + // but, no rly, stuff 'em. + return Modernizr; + } + + test = typeof test == 'function' ? test() : test; + + // Set the value (this is the magic, right here). + if (featureNameSplit.length == 1) { + Modernizr[featureNameSplit[0]] = test; + } else { + // cast to a Boolean, if not one already + /* jshint -W053 */ + if (Modernizr[featureNameSplit[0]] && !(Modernizr[featureNameSplit[0]] instanceof Boolean)) { + Modernizr[featureNameSplit[0]] = new Boolean(Modernizr[featureNameSplit[0]]); + } + + Modernizr[featureNameSplit[0]][featureNameSplit[1]] = test; + } + + // Set a single class (either `feature` or `no-feature`) + /* jshint -W041 */ + setClasses([(!!test && test != false ? '' : 'no-') + featureNameSplit.join('-')]); + /* jshint +W041 */ + + // Trigger the event + Modernizr._trigger(feature, test); + } + + return Modernizr; // allow chaining. + } + + // After all the tests are run, add self to the Modernizr prototype + Modernizr._q.push(function() { + ModernizrProto.addTest = addTest; + }); + + + +/*! +{ + "name": "SVG", + "property": "svg", + "caniuse": "svg", + "tags": ["svg"], + "authors": ["Erik Dahlstrom"], + "polyfills": [ + "svgweb", + "raphael", + "amplesdk", + "canvg", + "svg-boilerplate", + "sie", + "dojogfx", + "fabricjs" + ] +} +!*/ +/* DOC +Detects support for SVG in `` or `` elements. +*/ + + Modernizr.addTest('svg', !!document.createElementNS && !!document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect); + + + /** + * createElement is a convenience wrapper around document.createElement. Since we + * use createElement all over the place, this allows for (slightly) smaller code + * as well as abstracting away issues with creating elements in contexts other than + * HTML documents (e.g. SVG documents). + * + * @access private + * @function createElement + * @returns {HTMLElement|SVGElement} An HTML or SVG element + */ + + function createElement() { + if (typeof document.createElement !== 'function') { + // This is the case in IE7, where the type of createElement is "object". + // For this reason, we cannot call apply() as Object is not a Function. + return document.createElement(arguments[0]); + } else if (isSVG) { + return document.createElementNS.call(document, 'http://www.w3.org/2000/svg', arguments[0]); + } else { + return document.createElement.apply(document, arguments); + } + } + + ; + + /** + * getBody returns the body of a document, or an element that can stand in for + * the body if a real body does not exist + * + * @access private + * @function getBody + * @returns {HTMLElement|SVGElement} Returns the real body of a document, or an + * artificially created element that stands in for the body + */ + + function getBody() { + // After page load injecting a fake body doesn't work so check if body exists + var body = document.body; + + if (!body) { + // Can't use the real body create a fake one. + body = createElement(isSVG ? 'svg' : 'body'); + body.fake = true; + } + + return body; + } + + ; + + /** + * injectElementWithStyles injects an element with style element and some CSS rules + * + * @access private + * @function injectElementWithStyles + * @param {string} rule - String representing a css rule + * @param {function} callback - A function that is used to test the injected element + * @param {number} [nodes] - An integer representing the number of additional nodes you want injected + * @param {string[]} [testnames] - An array of strings that are used as ids for the additional nodes + * @returns {boolean} + */ + + function injectElementWithStyles(rule, callback, nodes, testnames) { + var mod = 'modernizr'; + var style; + var ret; + var node; + var docOverflow; + var div = createElement('div'); + var body = getBody(); + + if (parseInt(nodes, 10)) { + // In order not to give false positives we create a node for each test + // This also allows the method to scale for unspecified uses + while (nodes--) { + node = createElement('div'); + node.id = testnames ? testnames[nodes] : mod + (nodes + 1); + div.appendChild(node); + } + } + + style = createElement('style'); + style.type = 'text/css'; + style.id = 's' + mod; + + // IE6 will false positive on some tests due to the style element inside the test div somehow interfering offsetHeight, so insert it into body or fakebody. + // Opera will act all quirky when injecting elements in documentElement when page is served as xml, needs fakebody too. #270 + (!body.fake ? div : body).appendChild(style); + body.appendChild(div); + + if (style.styleSheet) { + style.styleSheet.cssText = rule; + } else { + style.appendChild(document.createTextNode(rule)); + } + div.id = mod; + + if (body.fake) { + //avoid crashing IE8, if background image is used + body.style.background = ''; + //Safari 5.13/5.1.4 OSX stops loading if ::-webkit-scrollbar is used and scrollbars are visible + body.style.overflow = 'hidden'; + docOverflow = docElement.style.overflow; + docElement.style.overflow = 'hidden'; + docElement.appendChild(body); + } + + ret = callback(div, rule); + // If this is done after page load we don't want to remove the body so check if body exists + if (body.fake) { + body.parentNode.removeChild(body); + docElement.style.overflow = docOverflow; + // Trigger layout so kinetic scrolling isn't disabled in iOS6+ + docElement.offsetHeight; + } else { + div.parentNode.removeChild(div); + } + + return !!ret; + + } + + ; + + /** + * testStyles injects an element with style element and some CSS rules + * + * @memberof Modernizr + * @name Modernizr.testStyles + * @optionName Modernizr.testStyles() + * @optionProp testStyles + * @access public + * @function testStyles + * @param {string} rule - String representing a css rule + * @param {function} callback - A function that is used to test the injected element + * @param {number} [nodes] - An integer representing the number of additional nodes you want injected + * @param {string[]} [testnames] - An array of strings that are used as ids for the additional nodes + * @returns {boolean} + * @example + * + * `Modernizr.testStyles` takes a CSS rule and injects it onto the current page + * along with (possibly multiple) DOM elements. This lets you check for features + * that can not be detected by simply checking the [IDL](https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Interface_development_guide/IDL_interface_rules). + * + * ```js + * Modernizr.testStyles('#modernizr { width: 9px; color: papayawhip; }', function(elem, rule) { + * // elem is the first DOM node in the page (by default #modernizr) + * // rule is the first argument you supplied - the CSS rule in string form + * + * addTest('widthworks', elem.style.width === '9px') + * }); + * ``` + * + * If your test requires multiple nodes, you can include a third argument + * indicating how many additional div elements to include on the page. The + * additional nodes are injected as children of the `elem` that is returned as + * the first argument to the callback. + * + * ```js + * Modernizr.testStyles('#modernizr {width: 1px}; #modernizr2 {width: 2px}', function(elem) { + * document.getElementById('modernizr').style.width === '1px'; // true + * document.getElementById('modernizr2').style.width === '2px'; // true + * elem.firstChild === document.getElementById('modernizr2'); // true + * }, 1); + * ``` + * + * By default, all of the additional elements have an ID of `modernizr[n]`, where + * `n` is its index (e.g. the first additional, second overall is `#modernizr2`, + * the second additional is `#modernizr3`, etc.). + * If you want to have more meaningful IDs for your function, you can provide + * them as the fourth argument, as an array of strings + * + * ```js + * Modernizr.testStyles('#foo {width: 10px}; #bar {height: 20px}', function(elem) { + * elem.firstChild === document.getElementById('foo'); // true + * elem.lastChild === document.getElementById('bar'); // true + * }, 2, ['foo', 'bar']); + * ``` + * + */ + + var testStyles = ModernizrProto.testStyles = injectElementWithStyles; + +/*! +{ + "name": "@font-face", + "property": "fontface", + "authors": ["Diego Perini", "Mat Marquis"], + "tags": ["css"], + "knownBugs": [ + "False Positive: WebOS https://github.com/Modernizr/Modernizr/issues/342", + "False Postive: WP7 https://github.com/Modernizr/Modernizr/issues/538" + ], + "notes": [{ + "name": "@font-face detection routine by Diego Perini", + "href": "http://javascript.nwbox.com/CSSSupport/" + },{ + "name": "Filament Group @font-face compatibility research", + "href": "https://docs.google.com/presentation/d/1n4NyG4uPRjAA8zn_pSQ_Ket0RhcWC6QlZ6LMjKeECo0/edit#slide=id.p" + },{ + "name": "Filament Grunticon/@font-face device testing results", + "href": "https://docs.google.com/spreadsheet/ccc?key=0Ag5_yGvxpINRdHFYeUJPNnZMWUZKR2ItMEpRTXZPdUE#gid=0" + },{ + "name": "CSS fonts on Android", + "href": "https://stackoverflow.com/questions/3200069/css-fonts-on-android" + },{ + "name": "@font-face and Android", + "href": "http://archivist.incutio.com/viewlist/css-discuss/115960" + }] +} +!*/ + + var blacklist = (function() { + var ua = navigator.userAgent; + var wkvers = ua.match(/applewebkit\/([0-9]+)/gi) && parseFloat(RegExp.$1); + var webos = ua.match(/w(eb)?osbrowser/gi); + var wppre8 = ua.match(/windows phone/gi) && ua.match(/iemobile\/([0-9])+/gi) && parseFloat(RegExp.$1) >= 9; + var oldandroid = wkvers < 533 && ua.match(/android/gi); + return webos || oldandroid || wppre8; + }()); + if (blacklist) { + Modernizr.addTest('fontface', false); + } else { + testStyles('@font-face {font-family:"font";src:url("https://")}', function(node, rule) { + var style = document.getElementById('smodernizr'); + var sheet = style.sheet || style.styleSheet; + var cssText = sheet ? (sheet.cssRules && sheet.cssRules[0] ? sheet.cssRules[0].cssText : sheet.cssText || '') : ''; + var bool = /src/i.test(cssText) && cssText.indexOf(rule.split(' ')[0]) === 0; + Modernizr.addTest('fontface', bool); + }); + } +; + + /** + * If the browsers follow the spec, then they would expose vendor-specific style as: + * elem.style.WebkitBorderRadius + * instead of something like the following, which would be technically incorrect: + * elem.style.webkitBorderRadius + + * Webkit ghosts their properties in lowercase but Opera & Moz do not. + * Microsoft uses a lowercase `ms` instead of the correct `Ms` in IE8+ + * erik.eae.net/archives/2008/03/10/21.48.10/ + + * More here: github.com/Modernizr/Modernizr/issues/issue/21 + * + * @access private + * @returns {string} The string representing the vendor-specific style properties + */ + + var omPrefixes = 'Moz O ms Webkit'; + + + var cssomPrefixes = (ModernizrProto._config.usePrefixes ? omPrefixes.split(' ') : []); + ModernizrProto._cssomPrefixes = cssomPrefixes; + + + + /** + * contains checks to see if a string contains another string + * + * @access private + * @function contains + * @param {string} str - The string we want to check for substrings + * @param {string} substr - The substring we want to search the first string for + * @returns {boolean} + */ + + function contains(str, substr) { + return !!~('' + str).indexOf(substr); + } + + ; + + /** + * Create our "modernizr" element that we do most feature tests on. + * + * @access private + */ + + var modElem = { + elem: createElement('modernizr') + }; + + // Clean up this element + Modernizr._q.push(function() { + delete modElem.elem; + }); + + + + var mStyle = { + style: modElem.elem.style + }; + + // kill ref for gc, must happen before mod.elem is removed, so we unshift on to + // the front of the queue. + Modernizr._q.unshift(function() { + delete mStyle.style; + }); + + + + /** + * domToCSS takes a camelCase string and converts it to kebab-case + * e.g. boxSizing -> box-sizing + * + * @access private + * @function domToCSS + * @param {string} name - String name of camelCase prop we want to convert + * @returns {string} The kebab-case version of the supplied name + */ + + function domToCSS(name) { + return name.replace(/([A-Z])/g, function(str, m1) { + return '-' + m1.toLowerCase(); + }).replace(/^ms-/, '-ms-'); + } + ; + + /** + * nativeTestProps allows for us to use native feature detection functionality if available. + * some prefixed form, or false, in the case of an unsupported rule + * + * @access private + * @function nativeTestProps + * @param {array} props - An array of property names + * @param {string} value - A string representing the value we want to check via @supports + * @returns {boolean|undefined} A boolean when @supports exists, undefined otherwise + */ + + // Accepts a list of property names and a single value + // Returns `undefined` if native detection not available + function nativeTestProps(props, value) { + var i = props.length; + // Start with the JS API: http://www.w3.org/TR/css3-conditional/#the-css-interface + if ('CSS' in window && 'supports' in window.CSS) { + // Try every prefixed variant of the property + while (i--) { + if (window.CSS.supports(domToCSS(props[i]), value)) { + return true; + } + } + return false; + } + // Otherwise fall back to at-rule (for Opera 12.x) + else if ('CSSSupportsRule' in window) { + // Build a condition string for every prefixed variant + var conditionText = []; + while (i--) { + conditionText.push('(' + domToCSS(props[i]) + ':' + value + ')'); + } + conditionText = conditionText.join(' or '); + return injectElementWithStyles('@supports (' + conditionText + ') { #modernizr { position: absolute; } }', function(node) { + return getComputedStyle(node, null).position == 'absolute'; + }); + } + return undefined; + } + ; + + /** + * cssToDOM takes a kebab-case string and converts it to camelCase + * e.g. box-sizing -> boxSizing + * + * @access private + * @function cssToDOM + * @param {string} name - String name of kebab-case prop we want to convert + * @returns {string} The camelCase version of the supplied name + */ + + function cssToDOM(name) { + return name.replace(/([a-z])-([a-z])/g, function(str, m1, m2) { + return m1 + m2.toUpperCase(); + }).replace(/^-/, ''); + } + ; + + // testProps is a generic CSS / DOM property test. + + // In testing support for a given CSS property, it's legit to test: + // `elem.style[styleName] !== undefined` + // If the property is supported it will return an empty string, + // if unsupported it will return undefined. + + // We'll take advantage of this quick test and skip setting a style + // on our modernizr element, but instead just testing undefined vs + // empty string. + + // Property names can be provided in either camelCase or kebab-case. + + function testProps(props, prefixed, value, skipValueTest) { + skipValueTest = is(skipValueTest, 'undefined') ? false : skipValueTest; + + // Try native detect first + if (!is(value, 'undefined')) { + var result = nativeTestProps(props, value); + if (!is(result, 'undefined')) { + return result; + } + } + + // Otherwise do it properly + var afterInit, i, propsLength, prop, before; + + // If we don't have a style element, that means we're running async or after + // the core tests, so we'll need to create our own elements to use + + // inside of an SVG element, in certain browsers, the `style` element is only + // defined for valid tags. Therefore, if `modernizr` does not have one, we + // fall back to a less used element and hope for the best. + var elems = ['modernizr', 'tspan']; + while (!mStyle.style) { + afterInit = true; + mStyle.modElem = createElement(elems.shift()); + mStyle.style = mStyle.modElem.style; + } + + // Delete the objects if we created them. + function cleanElems() { + if (afterInit) { + delete mStyle.style; + delete mStyle.modElem; + } + } + + propsLength = props.length; + for (i = 0; i < propsLength; i++) { + prop = props[i]; + before = mStyle.style[prop]; + + if (contains(prop, '-')) { + prop = cssToDOM(prop); + } + + if (mStyle.style[prop] !== undefined) { + + // If value to test has been passed in, do a set-and-check test. + // 0 (integer) is a valid property value, so check that `value` isn't + // undefined, rather than just checking it's truthy. + if (!skipValueTest && !is(value, 'undefined')) { + + // Needs a try catch block because of old IE. This is slow, but will + // be avoided in most cases because `skipValueTest` will be used. + try { + mStyle.style[prop] = value; + } catch (e) {} + + // If the property value has changed, we assume the value used is + // supported. If `value` is empty string, it'll fail here (because + // it hasn't changed), which matches how browsers have implemented + // CSS.supports() + if (mStyle.style[prop] != before) { + cleanElems(); + return prefixed == 'pfx' ? prop : true; + } + } + // Otherwise just return true, or the property name if this is a + // `prefixed()` call + else { + cleanElems(); + return prefixed == 'pfx' ? prop : true; + } + } + } + cleanElems(); + return false; + } + + ; + + /** + * List of JavaScript DOM values used for tests + * + * @memberof Modernizr + * @name Modernizr._domPrefixes + * @optionName Modernizr._domPrefixes + * @optionProp domPrefixes + * @access public + * @example + * + * Modernizr._domPrefixes is exactly the same as [_prefixes](#modernizr-_prefixes), but rather + * than kebab-case properties, all properties are their Capitalized variant + * + * ```js + * Modernizr._domPrefixes === [ "Moz", "O", "ms", "Webkit" ]; + * ``` + */ + + var domPrefixes = (ModernizrProto._config.usePrefixes ? omPrefixes.toLowerCase().split(' ') : []); + ModernizrProto._domPrefixes = domPrefixes; + + + /** + * fnBind is a super small [bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind) polyfill. + * + * @access private + * @function fnBind + * @param {function} fn - a function you want to change `this` reference to + * @param {object} that - the `this` you want to call the function with + * @returns {function} The wrapped version of the supplied function + */ + + function fnBind(fn, that) { + return function() { + return fn.apply(that, arguments); + }; + } + + ; + + /** + * testDOMProps is a generic DOM property test; if a browser supports + * a certain property, it won't return undefined for it. + * + * @access private + * @function testDOMProps + * @param {array.} props - An array of properties to test for + * @param {object} obj - An object or Element you want to use to test the parameters again + * @param {boolean|object} elem - An Element to bind the property lookup again. Use `false` to prevent the check + */ + function testDOMProps(props, obj, elem) { + var item; + + for (var i in props) { + if (props[i] in obj) { + + // return the property name as a string + if (elem === false) { + return props[i]; + } + + item = obj[props[i]]; + + // let's bind a function + if (is(item, 'function')) { + // bind to obj unless overriden + return fnBind(item, elem || obj); + } + + // return the unbound function or obj or value + return item; + } + } + return false; + } + + ; + + /** + * testPropsAll tests a list of DOM properties we want to check against. + * We specify literally ALL possible (known and/or likely) properties on + * the element including the non-vendor prefixed one, for forward- + * compatibility. + * + * @access private + * @function testPropsAll + * @param {string} prop - A string of the property to test for + * @param {string|object} [prefixed] - An object to check the prefixed properties on. Use a string to skip + * @param {HTMLElement|SVGElement} [elem] - An element used to test the property and value against + * @param {string} [value] - A string of a css value + * @param {boolean} [skipValueTest] - An boolean representing if you want to test if value sticks when set + */ + function testPropsAll(prop, prefixed, elem, value, skipValueTest) { + + var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1), + props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' '); + + // did they call .prefixed('boxSizing') or are we just testing a prop? + if (is(prefixed, 'string') || is(prefixed, 'undefined')) { + return testProps(props, prefixed, value, skipValueTest); + + // otherwise, they called .prefixed('requestAnimationFrame', window[, elem]) + } else { + props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' '); + return testDOMProps(props, prefixed, elem); + } + } + + // Modernizr.testAllProps() investigates whether a given style property, + // or any of its vendor-prefixed variants, is recognized + // + // Note that the property names must be provided in the camelCase variant. + // Modernizr.testAllProps('boxSizing') + ModernizrProto.testAllProps = testPropsAll; + + + + /** + * testAllProps determines whether a given CSS property is supported in the browser + * + * @memberof Modernizr + * @name Modernizr.testAllProps + * @optionName Modernizr.testAllProps() + * @optionProp testAllProps + * @access public + * @function testAllProps + * @param {string} prop - String naming the property to test (either camelCase or kebab-case) + * @param {string} [value] - String of the value to test + * @param {boolean} [skipValueTest=false] - Whether to skip testing that the value is supported when using non-native detection + * @example + * + * testAllProps determines whether a given CSS property, in some prefixed form, + * is supported by the browser. + * + * ```js + * testAllProps('boxSizing') // true + * ``` + * + * It can optionally be given a CSS value in string form to test if a property + * value is valid + * + * ```js + * testAllProps('display', 'block') // true + * testAllProps('display', 'penguin') // false + * ``` + * + * A boolean can be passed as a third parameter to skip the value check when + * native detection (@supports) isn't available. + * + * ```js + * testAllProps('shapeOutside', 'content-box', true); + * ``` + */ + + function testAllProps(prop, value, skipValueTest) { + return testPropsAll(prop, undefined, undefined, value, skipValueTest); + } + ModernizrProto.testAllProps = testAllProps; + +/*! +{ + "name": "CSS Supports", + "property": "supports", + "caniuse": "css-featurequeries", + "tags": ["css"], + "builderAliases": ["css_supports"], + "notes": [{ + "name": "W3 Spec", + "href": "http://dev.w3.org/csswg/css3-conditional/#at-supports" + },{ + "name": "Related Github Issue", + "href": "github.com/Modernizr/Modernizr/issues/648" + },{ + "name": "W3 Info", + "href": "http://dev.w3.org/csswg/css3-conditional/#the-csssupportsrule-interface" + }] +} +!*/ + + var newSyntax = 'CSS' in window && 'supports' in window.CSS; + var oldSyntax = 'supportsCSS' in window; + Modernizr.addTest('supports', newSyntax || oldSyntax); + +/*! +{ + "name": "CSS Transforms 3D", + "property": "csstransforms3d", + "caniuse": "transforms3d", + "tags": ["css"], + "warnings": [ + "Chrome may occassionally fail this test on some systems; more info: https://code.google.com/p/chromium/issues/detail?id=129004" + ] +} +!*/ + + Modernizr.addTest('csstransforms3d', function() { + var ret = !!testAllProps('perspective', '1px', true); + var usePrefix = Modernizr._config.usePrefixes; + + // Webkit's 3D transforms are passed off to the browser's own graphics renderer. + // It works fine in Safari on Leopard and Snow Leopard, but not in Chrome in + // some conditions. As a result, Webkit typically recognizes the syntax but + // will sometimes throw a false positive, thus we must do a more thorough check: + if (ret && (!usePrefix || 'webkitPerspective' in docElement.style)) { + var mq; + var defaultStyle = '#modernizr{width:0;height:0}'; + // Use CSS Conditional Rules if available + if (Modernizr.supports) { + mq = '@supports (perspective: 1px)'; + } else { + // Otherwise, Webkit allows this media query to succeed only if the feature is enabled. + // `@media (transform-3d),(-webkit-transform-3d){ ... }` + mq = '@media (transform-3d)'; + if (usePrefix) { + mq += ',(-webkit-transform-3d)'; + } + } + + mq += '{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}'; + + testStyles(defaultStyle + mq, function(elem) { + ret = elem.offsetWidth === 7 && elem.offsetHeight === 18; + }); + } + + return ret; + }); + + + // Run each test + testRunner(); + + // Remove the "no-js" class if it exists + setClasses(classes); + + delete ModernizrProto.addTest; + delete ModernizrProto.addAsyncTest; + + // Run the things that are supposed to run after the tests + for (var i = 0; i < Modernizr._q.length; i++) { + Modernizr._q[i](); + } + + // Leak Modernizr namespace + window.Modernizr = Modernizr; + + +; + +})(window, document); \ No newline at end of file diff --git a/material/assets/stylesheets/application-2ebf05d4b7.css b/material/assets/stylesheets/application-2ebf05d4b7.css deleted file mode 100644 index cbb09b9db..000000000 --- a/material/assets/stylesheets/application-2ebf05d4b7.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";html{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}*,:after,:before{box-sizing:inherit;-moz-box-sizing:inherit;-webkit-box-sizing:inherit}html{-webkit-text-size-adjust:none;-ms-text-size-adjust:none;text-size-adjust:none}body{margin:0}article,aside,figcaption,figure,footer,header,main,nav,section{display:block}hr{overflow:visible;box-sizing:content-box}a{color:inherit;text-decoration:none}a:active,a:hover{outline-width:0}a{-webkit-text-decoration-skip:objects}a,button,input,label{-webkit-tap-highlight-color:transparent}small,sub,sup{font-size:80%}sub,sup{position:relative;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}table{border-collapse:collapse;border-spacing:0}td,th{font-weight:400;text-align:left;vertical-align:top}button{padding:0;background:transparent;font-size:inherit}button,input{border:0;outline:0}.checklist li:before,.critic.comment:before,.footnote-backref,.md-icon,.md-nav__link:after,.md-nav__title:before,.md-search-term:before{font-family:Material Icons;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none;white-space:nowrap;speak:none;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.md-footer-nav__icon,.md-header-nav__icon,.md-nav__title:before{display:inline-block;margin:.4rem;padding:.8rem;font-size:2.4rem;cursor:pointer}.md-icon--back:before{content:"arrow_back"}.md-icon--forward:before{content:"arrow_forward"}.md-icon--close:before{content:"close"}body{color:rgba(0,0,0,.87);font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:400;-webkit-font-feature-settings:"kern","onum","liga";font-feature-settings:"kern","onum","liga";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.no-fontface body{font-family:Helvetica Neue,Helvetica,Arial,sans-serif}code,kbd,pre{color:rgba(0,0,0,.87);font-family:Roboto Mono,Courier New,Courier,monospace;font-weight:400;-webkit-font-feature-settings:"kern","onum","liga";font-feature-settings:"kern","onum","liga"}.no-fontface code,.no-fontface kbd,.no-fontface pre{font-family:Courier New,Courier,monospace}.md-typeset{font-size:1.6rem;line-height:1.6}.md-typeset blockquote,.md-typeset ol,.md-typeset p,.md-typeset ul{margin:1em 0}.md-typeset h1{margin:0 0 4rem;color:rgba(0,0,0,.54);font-size:3.125rem;line-height:1.3}.md-typeset h1,.md-typeset h2{font-weight:300;letter-spacing:-.01em}.md-typeset h2{margin:4rem 0 1.6rem;font-size:2.5rem;line-height:1.4}.md-typeset h3{margin:3.2rem 0 1.6rem;font-size:2rem;font-weight:400;letter-spacing:-.01em;line-height:1.5}.md-typeset h2+h3{margin-top:1.6rem}.md-typeset h4{font-size:1.6rem}.md-typeset h4,.md-typeset h5,.md-typeset h6{margin:1.6rem 0;font-weight:700;letter-spacing:-.01em}.md-typeset h5,.md-typeset h6{color:rgba(0,0,0,.54);font-size:1.28rem}.md-typeset h5{text-transform:uppercase}.md-typeset hr{margin:2.4rem 0;border-bottom:.1rem dotted rgba(0,0,0,.26)}.md-typeset a{color:#3f51b5}.md-typeset a,.md-typeset a:before{-webkit-transition:color .125s;transition:color .125s}.md-typeset a:active,.md-typeset a:hover{color:#536dfe}.md-typeset code{margin:0 .4rem;padding:.1rem 0;border-radius:.2rem;background:#f7f7f7;color:#37474f;font-size:85%;box-shadow:.4rem 0 0 #f7f7f7,-.4rem 0 0 #f7f7f7;word-break:break-word;-webkit-box-decoration-break:clone;box-decoration-break:clone}.md-typeset h1 code,.md-typeset h2 code,.md-typeset h3 code,.md-typeset h4 code,.md-typeset h5 code,.md-typeset h6 code{margin:0;background:transparent;box-shadow:none}.md-typeset pre{margin:1em 0;padding:1rem 1.2rem;border-radius:.2rem;background:#f7f7f7;color:#37474f;font-size:85%;line-height:1.4;overflow:auto;-webkit-overflow-scrolling:touch}.md-typeset pre>code{font-size:inherit}.md-typeset>div>pre::-webkit-scrollbar,.md-typeset>pre>code::-webkit-scrollbar{width:.4rem;height:.4rem}.md-typeset>div>pre::-webkit-scrollbar-thumb,.md-typeset>pre>code::-webkit-scrollbar-thumb{background:rgba(0,0,0,.26)}.md-typeset kbd{display:inline-block;padding:.4rem .5rem .5rem;border:.1rem solid #c9c9c9;border-radius:.3rem;border-bottom-color:#bcbcbc;background-color:#fcfcfc;color:#555;font-size:85%;line-height:1rem;box-shadow:inset 0 -.1rem 0 #b0b0b0;vertical-align:.1rem;word-break:break-word}.md-typeset small{opacity:.75}.md-typeset sub,.md-typeset sup{margin-left:.1rem}.md-typeset blockquote{padding-left:1.2rem;border-left:.4rem solid rgba(0,0,0,.26);color:rgba(0,0,0,.54)}.md-typeset ul{list-style-type:disc}.md-typeset ol ol{list-style-type:lower-alpha}.md-typeset ol ol ol{list-style-type:lower-roman}.md-typeset ol,.md-typeset ul{margin-left:1rem;padding:0}.md-typeset ol li,.md-typeset ul li{margin-bottom:.5em;margin-left:2rem}.md-typeset ol li blockquote,.md-typeset ol li p,.md-typeset ul li blockquote,.md-typeset ul li p{margin:.5em 0}.md-typeset ol li:last-child,.md-typeset ul li:last-child{margin-bottom:0}.md-typeset ol li ol,.md-typeset ol li ul,.md-typeset ul li ol,.md-typeset ul li ul{margin-bottom:1rem;margin-left:1rem;padding-top:1rem}html{height:100%;font-size:62.5%}body{position:relative;min-height:100%}body.md-js__body--locked{height:100%;overflow:hidden}hr{display:block;height:.1rem;padding:0;border:0}.md-grid{max-width:120rem;margin-right:auto;margin-left:auto}.md-container,.md-main{overflow:auto}.md-main{margin-top:5.6rem}.md-main__inner{margin-top:3rem;margin-bottom:9.2rem;overflow:auto}.md-toggle{display:none}.md-overlay{position:fixed;top:0;width:0;height:0;-webkit-transition:width 0s .25s,height 0s .25s,opacity .25s;transition:width 0s .25s,height 0s .25s,opacity .25s;background:rgba(0,0,0,.54);opacity:0;z-index:2}.md-flex{display:table}.md-flex__cell{display:table-cell;position:relative;vertical-align:top}.md-flex__cell--shrink{width:0}.md-flex__cell--stretch{display:table;width:100%;table-layout:fixed}.md-flex__ellipsis{display:table-cell;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.md-content__inner{margin:2.4rem 1.6rem}.md-content__copyright{display:block}.md-header{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2);position:fixed;top:0;right:0;left:0;height:5.6rem;background:#3f51b5;color:#fff;z-index:1}.md-header-nav{padding:.4rem}.md-header-nav__icon{position:relative;-webkit-transition:opacity .25s;transition:opacity .25s;z-index:1}.md-header-nav__icon:hover{opacity:.7}.md-header-nav__title{padding:0 2rem;font-size:1.8rem;line-height:4.8rem}.md-header-nav__source{display:none}.md-footer{position:absolute;bottom:0;width:100%}.md-footer-pagination{background:rgba(0,0,0,.87);color:#fff}.md-footer-nav{padding:.4rem;overflow:auto}.md-footer-nav__link{padding-top:2.8rem;padding-bottom:.8rem;-webkit-transition:opacity .25s;transition:opacity .25s}.md-footer-nav__link:hover{opacity:.7}.md-footer-nav__link--prev{width:25%;float:left}.md-footer-nav__link--next{width:75%;float:right;text-align:right}.md-footer-nav__icon{-webkit-transition:background .25s;transition:background .25s}.md-footer-nav__title{position:relative;padding:0 .4rem;font-size:1.8rem;line-height:4.8rem}.md-footer-nav__direction{position:absolute;right:0;left:0;margin-top:-2rem;padding:0 .4rem;color:hsla(0,0%,100%,.7);font-size:1.5rem}.md-nav{font-size:1.28rem;line-height:1.3}.md-nav--secondary{border-left:.4rem solid #3f51b5}.md-nav__title{display:block;padding:1.2rem 1.2rem 0;font-weight:700;text-overflow:ellipsis;overflow:hidden}.md-nav__title:before{display:none;content:"arrow_back"}.md-nav__list{margin:0;padding:0;list-style:none}.md-nav__item{padding:.625em 1.2rem 0}.md-nav__item:last-child{padding-bottom:1.2rem}.md-nav__item .md-nav__item{padding-right:0}.md-nav__item .md-nav__item:last-child{padding-bottom:0}.md-nav__link{display:block;-webkit-transition:color .125s;transition:color .125s;text-overflow:ellipsis;cursor:pointer;overflow:hidden}.md-nav__item--nested>.md-nav__link:after{content:"expand_more"}html .md-nav__link[for=toc],html .md-nav__link[for=toc]+.md-nav__link:after,html .md-nav__link[for=toc]~.md-nav{display:none}.md-nav__link[data-md-marked]{color:rgba(0,0,0,.54)}.md-nav__link--active,.md-nav__link:active,.md-nav__link:hover{color:#536dfe}.md-nav__source{display:none}.md-search{padding:.8rem .8rem 0}.no-js .md-search{display:none}.md-search__form{position:relative;border-radius:.2rem;text-align:right}.md-search__icon{position:absolute;top:.8rem;left:1.2rem;-webkit-transition:color .25s;transition:color .25s;font-size:2.4rem;cursor:pointer}.md-search__input{padding:0 1.6rem 0 6.4rem;border-radius:.2rem;text-overflow:ellipsis}.md-search__input+.md-search__icon,.md-search__input::-webkit-input-placeholder{color:rgba(0,0,0,.54)}.md-search__input+.md-search__icon,.md-search__input::-moz-placeholder{color:rgba(0,0,0,.54)}.md-search__input+.md-search__icon,.md-search__input:-ms-input-placeholder{color:rgba(0,0,0,.54)}.md-search__input+.md-search__icon,.md-search__input::placeholder{color:rgba(0,0,0,.54)}.md-sidebar{position:relative;width:24.2rem;float:left;overflow:visible}.md-sidebar[data-md-locked]{position:fixed;top:5.6rem}.md-sidebar--secondary{display:none}.md-sidebar__scrollwrap{margin:2.4rem .4rem;overflow-y:scroll}.js .md-sidebar__scrollwrap{position:absolute;top:0;right:0;bottom:0;left:0}.md-sidebar__scrollwrap::-webkit-scrollbar{width:.4rem;height:.4rem}.md-sidebar__scrollwrap::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.26)}.md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover{background-color:#536dfe}.md-source{display:block;-webkit-transition:opacity .25s;transition:opacity .25s;font-size:1.3rem;line-height:1.2;white-space:nowrap}.md-source:hover{opacity:.7}.md-source:before{display:inline-block;height:4.8rem;content:"";vertical-align:middle}.md-source--bitbucket:before,.md-source--github:before,.md-source--gitlab:before{width:4.8rem;background-repeat:no-repeat;background-position:50%;background-size:2.4rem 2.4rem}.md-source--bitbucket .md-source__repository,.md-source--github .md-source__repository,.md-source--gitlab .md-source__repository{margin-left:-4.4rem;padding-left:4rem}.md-source--bitbucket:before{background-image:url(../images/icons/bitbucket-white-42306ad0de.svg)}.md-source--github:before{background-image:url(../images/icons/github-white-1cfc8ff99e.svg)}.md-source--gitlab:before{background-image:url(../images/icons/gitlab-white-d65054b8fe.svg)}.md-source__repository{display:inline-block;max-width:100%;margin-left:.8rem;font-weight:700;text-overflow:ellipsis;overflow:hidden;vertical-align:middle}.md-source__facts{margin:0;padding:0;font-size:1.1rem;font-weight:700;opacity:.75;list-style-type:none}.md-source__fact{float:left;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition:opacity .25s,-webkit-transform .25s cubic-bezier(.1,.7,.1,1);transition:opacity .25s,-webkit-transform .25s cubic-bezier(.1,.7,.1,1);transition:opacity .25s,transform .25s cubic-bezier(.1,.7,.1,1);transition:opacity .25s,transform .25s cubic-bezier(.1,.7,.1,1),-webkit-transform .25s cubic-bezier(.1,.7,.1,1);opacity:1}.md-source__fact--hidden{-webkit-transform:translateY(100%);transform:translateY(100%);opacity:0}.md-source__fact:before{margin:0 .2rem;content:"\00B7"}.md-source__fact:first-child:before{display:none}.admonition{position:relative;margin:2rem 0;padding:.8rem 1.6rem;border-left:3.2rem solid #448aff;border-radius:.2rem;background:rgba(68,138,255,.05)}.admonition:before{display:block;position:absolute;top:.2rem;left:-2.6rem;float:left;color:#fff;font-family:Material Icons;font-size:2rem;font-weight:400;content:"edit";vertical-align:-.1em}.admonition-title{color:#2979ff;font-size:1.28rem;font-weight:700;line-height:2;text-transform:uppercase}html .admonition-title{margin-bottom:1.6rem}html .admonition-title+*{margin-top:1.6rem}.admonition :first-child{margin-top:0}.admonition :last-child{margin-bottom:0}.admonition.summary,.admonition.tldr{border-color:#00b0ff;background:rgba(0,176,255,.05)}.admonition.summary:before,.admonition.tldr:before{content:"subject"}.admonition.summary .admonition-title,.admonition.tldr .admonition-title{color:#00b0ff}.admonition.idea,.admonition.tip{border-color:#00bfa5;background:rgba(0,191,165,.05)}.admonition.idea:before,.admonition.tip:before{content:"whatshot"}.admonition.idea .admonition-title,.admonition.tip .admonition-title{color:#00bfa5}.admonition.check,.admonition.done,.admonition.success{border-color:#00e676;background:rgba(0,230,118,.05)}.admonition.check:before,.admonition.done:before,.admonition.success:before{content:"done"}.admonition.check .admonition-title,.admonition.done .admonition-title,.admonition.success .admonition-title{color:#00e676}.admonition.warn,.admonition.warning{border-color:#ff9100;background:rgba(255,145,0,.05)}.admonition.warn:before,.admonition.warning:before{content:"warning"}.admonition.warn .admonition-title,.admonition.warning .admonition-title{color:#ff9100}.admonition.fail,.admonition.failure,.admonition.missing{border-color:#ff5252;background:rgba(255,82,82,.05)}.admonition.fail:before,.admonition.failure:before,.admonition.missing:before{content:"clear"}.admonition.fail .admonition-title,.admonition.failure .admonition-title,.admonition.missing .admonition-title{color:#ff5252}.admonition.danger,.admonition.fatal{border-color:#ff1744;background:rgba(255,23,68,.05)}.admonition.danger:before,.admonition.fatal:before{content:"flash_on"}.admonition.danger .admonition-title,.admonition.fatal .admonition-title{color:#ff1744}.admonition.bug,.admonition.error{border-color:#f50057;background:rgba(245,0,87,.05)}.admonition.bug:before,.admonition.error:before{content:"bug_report"}.admonition.bug .admonition-title,.admonition.error .admonition-title{color:#f50057}.code .err,.codehilite .err{color:#a61717}.code .o,.codehilite .o{color:inherit}.code .ge,.codehilite .ge{color:#000}.code .gr,.codehilite .gr{color:#a00}.code .gh,.codehilite .gh{color:#999}.code .go,.codehilite .go{color:#888}.code .gp,.codehilite .gp{color:#555}.code .gs,.codehilite .gs{color:inherit}.code .gu,.codehilite .gu{color:#aaa}.code .gt,.codehilite .gt{color:#a00}.code .k,.code .kc,.code .kd,.code .kn,.code .kp,.codehilite .k,.codehilite .kc,.codehilite .kd,.codehilite .kn,.codehilite .kp{color:#a71d5d}.code .kr,.code .kt,.codehilite .kr,.codehilite .kt{color:#0086b3}.code .c,.code .cm,.codehilite .c,.codehilite .cm{color:#969896}.code .cp,.codehilite .cp{color:#666}.code .c1,.code .cs,.codehilite .c1,.codehilite .cs{color:#969896}.code .bp,.code .na,.code .nb,.code .nc,.code .nd,.code .ne,.code .nf,.code .ni,.code .nl,.code .nn,.code .no,.code .nt,.code .nv,.code .vc,.code .vg,.code .vi,.codehilite .bp,.codehilite .na,.codehilite .nb,.codehilite .nc,.codehilite .nd,.codehilite .ne,.codehilite .nf,.codehilite .ni,.codehilite .nl,.codehilite .nn,.codehilite .no,.codehilite .nt,.codehilite .nv,.codehilite .vc,.codehilite .vg,.codehilite .vi{color:#795da3}.code .ow,.codehilite .ow{color:inherit}.code .il,.code .m,.code .mf,.code .mh,.code .mi,.code .mo,.codehilite .il,.codehilite .m,.codehilite .mf,.codehilite .mh,.codehilite .mi,.codehilite .mo{color:#0086b3}.code .s,.code .s2,.code .sb,.code .sc,.code .sd,.code .se,.code .sh,.code .si,.code .sx,.codehilite .s,.codehilite .s2,.codehilite .sb,.codehilite .sc,.codehilite .sd,.codehilite .se,.codehilite .sh,.codehilite .si,.codehilite .sx{color:#183691}.code .sr,.codehilite .sr{color:#009926}.code .s1,.codehilite .s1{color:#d01040}.code .ss,.codehilite .ss{color:#990073}.code .gd,.codehilite .gd{background-color:#fdd}.code .gi,.codehilite .gi{background-color:#dfd}.code .w,.codehilite .w{color:transparent}.footnote{color:rgba(0,0,0,.54);font-size:80%}.footnote ol{margin-left:0}.footnote li:hover .footnote-backref,.footnote li:target .footnote-backref{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}.footnote li:hover .footnote-backref:hover,.footnote li:target .footnote-backref{color:#536dfe}.footnote-ref:before{position:absolute;margin-top:-8rem;padding-top:8rem;content:"";pointer-events:none}.footnote-backref{position:absolute;-webkit-transform:translate3d(.5rem,0,0);transform:translate3d(.5rem,0,0);-webkit-transition:color .25s,opacity .125s .125s,-webkit-transform .25s .125s;transition:color .25s,opacity .125s .125s,-webkit-transform .25s .125s;transition:transform .25s .125s,color .25s,opacity .125s .125s;transition:transform .25s .125s,color .25s,opacity .125s .125s,-webkit-transform .25s .125s;color:rgba(0,0,0,.26);font-size:2rem;opacity:0;vertical-align:middle}.footnote-backref:first-letter{font-size:0}.footnote-backref:after{content:"keyboard_return"}.md-typeset .headerlink{display:inline-block;margin-left:1rem;-webkit-transform:translateY(.5rem);transform:translateY(.5rem);-webkit-transition:color .25s,opacity .125s .25s,-webkit-transform .25s .25s;transition:color .25s,opacity .125s .25s,-webkit-transform .25s .25s;transition:transform .25s .25s,color .25s,opacity .125s .25s;transition:transform .25s .25s,color .25s,opacity .125s .25s,-webkit-transform .25s .25s;color:rgba(0,0,0,.26);opacity:0}.md-typeset [id] .headerlink:focus,.md-typeset [id]:hover .headerlink,.md-typeset [id]:target .headerlink{-webkit-transform:translate(0);transform:translate(0);opacity:1}.md-typeset [id] .headerlink:focus,.md-typeset [id]:hover .headerlink:hover,.md-typeset [id]:target .headerlink{color:#536dfe}.md-typeset h1[id]:before{display:block;margin-top:-11rem;padding-top:11rem;content:""}.md-typeset h2[id]:before{display:block;margin-top:-8.2rem;padding-top:8.2rem;content:""}.md-typeset h3[id]:before{display:block;margin-top:-8.4rem;padding-top:8.4rem;content:""}.md-typeset h4[id]:before{display:block;margin-top:-8.6rem;padding-top:8.6rem;content:""}.md-typeset h5[id]:before,.md-typeset h6[id]:before{display:block;margin-top:-9rem;padding-top:9rem;content:""}.md-search__input:focus{border-radius:.3rem .3rem 0 0}.md-search-term{position:relative;padding:0 .8rem 0 4.8rem;line-height:4rem;font-size:1.6rem;-webkit-transition:background .25s;transition:background .25s;cursor:pointer}.md-search-term:before{position:absolute;content:"access_time";font-size:2.4rem;line-height:4rem;left:1.2rem;color:rgba(0,0,0,.26)}.md-search-term:hover{background:#eceef8}.checklist li{position:relative;list-style-type:none}.checklist li:before{position:absolute;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:blue;content:"check_box";font-size:2.4rem}.checklist input[type=checkbox]:checked{width:20px}del.critic,ins.critic,mark{margin:0 .4rem;padding:.1rem 0;word-break:break-word;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:.2rem}ins.critic{background:#dfd;box-shadow:.4rem 0 0 #dfd,-.4rem 0 0 #dfd;text-decoration:none}del.critic{background:#fdd;box-shadow:.4rem 0 0 #fdd,-.4rem 0 0 #fdd}mark{background:#ff0;box-shadow:.4rem 0 0 #ff0,-.4rem 0 0 #ff0;overflow:auto}.critic.comment{margin:0 .4rem;padding:.1rem 0;border-radius:.2rem;background:#f0f0f0;color:#37474f;box-shadow:.4rem 0 0 #f0f0f0,-.4rem 0 0 #f0f0f0;-webkit-box-decoration-break:clone;box-decoration-break:clone}.critic.comment:before{color:rgba(0,0,0,.26);content:"chat";font-size:1.6rem;padding-right:.2rem;vertical-align:-.2rem}.md-button{float:right;margin-top:9px;font-size:13px;padding-left:2.6rem;font-weight:700;text-transform:uppercase}.task-list-item{list-style-type:none}.task-list-item input{margin:0 4px .25em -20px;vertical-align:middle}.task-list-item{position:relative}.task-list-item input[type=checkbox]{opacity:0}.task-list-item input[type=checkbox]+label{display:block;position:absolute;top:50%;left:-24px;width:16px;margin-top:-8px;height:16px;border-radius:2px;background:#ccc}.task-list-item input[type=checkbox]:checked+label:before{display:block;margin-top:-4px;margin-left:2px;font-size:1.2em;line-height:1;border-radius:2px;content:"✔";color:#1ebb52}.codehilite .hll{background:#ff0;display:block;margin:0 -16px;padding:0 16px}.md-search__output{overflow-y:auto}@media only screen and (max-width:44.9375em){.md-typeset>div>pre,.md-typeset>pre>code{margin:1em -1.6rem;padding:1rem 1.6rem;border-radius:0}.md-search__form{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2)}.md-search__icon{top:1.2rem}.md-search__icon:before{content:"arrow_back"}.md-search__input{width:100%;height:4.8rem;font-size:1.8rem}.md-search__inner{position:fixed;top:0;left:100%;width:100%;height:56px;opacity:0;z-index:2;-webkit-transform:translate3d(5%,0,0);transform:translate3d(5%,0,0);-webkit-transition:opacity .15s .15s,-webkit-transform .3s cubic-bezier(.1,.7,.1,1) .15s;transition:opacity .15s .15s,-webkit-transform .3s cubic-bezier(.1,.7,.1,1) .15s;transition:transform .3s cubic-bezier(.1,.7,.1,1) .15s,opacity .15s .15s;transition:transform .3s cubic-bezier(.1,.7,.1,1) .15s,opacity .15s .15s,-webkit-transform .3s cubic-bezier(.1,.7,.1,1) .15s}.md-toggle--search:checked~.md-header .md-search__inner{-webkit-transform:translateZ(0);transform:translateZ(0);left:0;opacity:1}.md-search__suggest{position:relative;z-index:2}}@media only screen and (min-width:100em){html{font-size:68.75%}}@media only screen and (min-width:125em){html{font-size:75%}}@media only screen and (max-width:74.9375em){.md-toggle--drawer:checked~.md-overlay{width:100%;height:100%;-webkit-transition:width 0s,height 0s,opacity .25s;transition:width 0s,height 0s,opacity .25s;opacity:1}.md-header-nav__icon--home{display:none}.md-nav--primary,.md-nav--primary .md-nav{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:0;right:0;left:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;z-index:1}.md-nav--primary{background:#fff}.md-nav--primary .md-nav__toggle~.md-nav{box-shadow:0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12),0 2px 4px -1px rgba(0,0,0,.4);left:.4rem;background:#fff}html .md-nav--primary .md-nav__title{position:relative;padding:.4rem 1.6rem .4rem 5.6rem;background:rgba(0,0,0,.07);color:rgba(0,0,0,.54);font-size:1.8rem;font-weight:400;line-height:4.8rem;white-space:nowrap;cursor:pointer}html .md-nav--primary .md-nav__title:before{display:block;position:absolute;left:.4rem;width:4rem;height:4rem;color:rgba(0,0,0,.54)}html .md-nav--primary .md-nav__title~.md-nav__list>.md-nav__item:first-child{border-top:0}.md-nav--primary .md-nav__list{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:scroll}.md-nav--primary .md-nav__item{padding:0;border-top:.1rem solid rgba(0,0,0,.07)}.md-nav--primary .md-nav__item--nested>.md-nav__link{padding-right:4.8rem}.md-nav--primary .md-nav__link{position:relative;padding:1.6rem}.md-nav--primary .md-nav__link:after{position:absolute;top:50%;right:1.2rem;-webkit-transform:translateY(-50%) rotate(-90deg);transform:translateY(-50%) rotate(-90deg);-webkit-transition:inherit;transition:inherit;color:rgba(0,0,0,.54);font-size:2.4rem}.md-nav--primary .md-nav__link:hover:after{color:#536dfe}.md-nav--primary .md-nav--secondary .md-nav{position:static}.md-nav--primary .md-nav--secondary .md-nav .md-nav__link{padding-left:2.8rem}.md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link{padding-left:4rem}.md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link{padding-left:5.2rem}.md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link{padding-left:6.4rem}.md-nav__toggle~.md-nav{display:none}.csstransforms3d .md-nav__toggle~.md-nav{display:block;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);-webkit-transition:opacity .125s .05s,-webkit-transform .25s cubic-bezier(.8,0,.6,1);transition:opacity .125s .05s,-webkit-transform .25s cubic-bezier(.8,0,.6,1);transition:transform .25s cubic-bezier(.8,0,.6,1),opacity .125s .05s;transition:transform .25s cubic-bezier(.8,0,.6,1),opacity .125s .05s,-webkit-transform .25s cubic-bezier(.8,0,.6,1);opacity:0}.md-nav__toggle:checked~.md-nav{display:block}.csstransforms3d .md-nav__toggle:checked~.md-nav{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:opacity .125s .125s,-webkit-transform .25s cubic-bezier(.4,0,.2,1);transition:opacity .125s .125s,-webkit-transform .25s cubic-bezier(.4,0,.2,1);transition:transform .25s cubic-bezier(.4,0,.2,1),opacity .125s .125s;transition:transform .25s cubic-bezier(.4,0,.2,1),opacity .125s .125s,-webkit-transform .25s cubic-bezier(.4,0,.2,1);opacity:1}.md-nav .md-nav__item,.md-nav .md-nav__title{font-size:1.6rem;line-height:1.4}.md-sidebar--primary{position:fixed;top:0;left:-24.2rem;width:24.2rem;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:box-shadow .25s,-webkit-transform .25s cubic-bezier(.4,0,.2,1);transition:box-shadow .25s,-webkit-transform .25s cubic-bezier(.4,0,.2,1);transition:transform .25s cubic-bezier(.4,0,.2,1),box-shadow .25s;transition:transform .25s cubic-bezier(.4,0,.2,1),box-shadow .25s,-webkit-transform .25s cubic-bezier(.4,0,.2,1);background:#fff;z-index:2}.no-csstransforms3d .md-sidebar--primary{display:none}.md-toggle--drawer:checked~.md-container .md-sidebar--primary{box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12),0 5px 5px -3px rgba(0,0,0,.4);-webkit-transform:translate3d(24.2rem,0,0);transform:translate3d(24.2rem,0,0)}.no-csstransforms3d .md-toggle--drawer:checked~.md-container .md-sidebar--primary{display:block}.md-sidebar--primary .md-sidebar__scrollwrap{overflow:hidden;margin:0}}@media only screen and (min-width:60em){.md-content{margin-right:24.2rem}.md-header-nav__source{display:block;width:23rem;max-width:23rem;padding-right:1.2rem}.md-sidebar--secondary{display:block;float:right}.md-sidebar--secondary[data-md-locked]{margin-left:100%;-webkit-transform:translate(-100%);transform:translate(-100%)}}@media only screen and (min-width:75em){.md-content{margin-left:24.2rem}.md-content__inner{margin:2.4rem}.md-header-nav__icon--menu{display:none}.md-nav.md-nav--transitioning{-webkit-transition:max-height .25s cubic-bezier(.86,0,.07,1);transition:max-height .25s cubic-bezier(.86,0,.07,1)}.md-nav__toggle~.md-nav{max-height:0;overflow:hidden}.md-nav.md-nav--toggled,.md-nav__toggle:checked~.md-nav{max-height:100%}.md-nav__title+.md-nav__list .md-nav__title{display:none}.md-nav__item--nested>.md-nav__link:after{display:inline-block;-webkit-transform-origin:.45em .45em;transform-origin:.45em .45em;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;vertical-align:-.125em}.js .md-nav__item--nested>.md-nav__link:after{-webkit-transition:-webkit-transform .4s;transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.md-nav__item--nested .md-nav__toggle:checked~.md-nav__link:after{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.md-sidebar__inner{border-right:.1rem solid rgba(0,0,0,.07)}.md-search__output{box-shadow:0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12),0 3px 5px -1px rgba(0,0,0,.4);width:100%;max-height:0;opacity:0;-webkit-transition:opacity .4s,max-height .4s;transition:opacity .4s,max-height .4s;position:absolute;background:#fff;border-top:.1rem solid rgba(0,0,0,.07);text-align:left;border-radius:0 0 .3rem .3rem;z-index:-1}.md-js__search--locked .md-search__output{max-height:75vh;opacity:1}.md-search__output::-webkit-scrollbar{width:.4rem;height:.4rem}.md-search__output::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.26)}.md-search__output::-webkit-scrollbar-thumb:hover{background-color:#536dfe}.md-search__output{background:-webkit-linear-gradient(#fff 10%,hsla(0,0%,100%,0)),-webkit-linear-gradient(top,rgba(0,0,0,.5),rgba(0,0,0,.2) 20%,transparent 60%);background:linear-gradient(#fff 10%,hsla(0,0%,100%,0)),linear-gradient(180deg,rgba(0,0,0,.5),rgba(0,0,0,.2) 20%,transparent 60%);background-repeat:no-repeat;background-color:#fff;background-size:100% 20px,100% 5px;background-attachment:local,scroll}.md-search-result__meta{color:rgba(0,0,0,.54);padding-left:4.8rem;padding-right:1.6rem;line-height:4rem;font-size:1.28rem}.md-search-result__list{margin:0;padding:0;list-style-type:none;border-top:.1rem solid rgba(0,0,0,.07)}.md-search-result__link{overflow:auto;display:block;padding-left:4.8rem;padding-right:1.6rem}.md-search-result__link:hover{background:#ff0}.md-search-result__title{color:rgba(0,0,0,.87);font-size:1.6rem;line-height:1.4;margin-top:.5em}.md-search-result__description{color:rgba(0,0,0,.54);font-size:1.28rem;line-height:1.4;margin:.5em 0}}@media only screen and (min-width:45em){.md-header-nav__icon--search{display:none}.md-search{padding:.4rem;padding-right:3.2rem}.md-search__form{width:23rem;-webkit-transition:width .25s cubic-bezier(.1,.7,.1,1);transition:width .25s cubic-bezier(.1,.7,.1,1)}.md-js__search--locked .md-search__form{width:66.8rem}.md-search__input{width:100%;height:4rem;padding-left:4.8rem;-webkit-transition:background-color .25s,color .25s;transition:background-color .25s,color .25s;background:rgba(0,0,0,.26);color:#fff;font-size:1.6rem}.md-search__input+.md-search__icon,.md-search__input::-webkit-input-placeholder{-webkit-transition:color .25s;transition:color .25s;color:#fff}.md-search__input+.md-search__icon,.md-search__input::-moz-placeholder{-webkit-transition:color .25s;transition:color .25s;color:#fff}.md-search__input+.md-search__icon,.md-search__input:-ms-input-placeholder{-webkit-transition:color .25s;transition:color .25s;color:#fff}.md-search__input+.md-search__icon,.md-search__input::placeholder{-webkit-transition:color .25s;transition:color .25s;color:#fff}.md-search__input:hover{background:hsla(0,0%,100%,.12)}.md-js__search--locked .md-search__input{border-radius:.3rem .3rem 0 0;background:#fff;color:rgba(0,0,0,.87);text-overflow:none}.md-js__search--locked .md-search__input+.md-search__icon,.md-js__search--locked .md-search__input::-webkit-input-placeholder{color:rgba(0,0,0,.54)}.md-js__search--locked .md-search__input+.md-search__icon,.md-js__search--locked .md-search__input::-moz-placeholder{color:rgba(0,0,0,.54)}.md-js__search--locked .md-search__input+.md-search__icon,.md-js__search--locked .md-search__input:-ms-input-placeholder{color:rgba(0,0,0,.54)}.md-js__search--locked .md-search__input+.md-search__icon,.md-js__search--locked .md-search__input::placeholder{color:rgba(0,0,0,.54)}}@media only screen and (min-width:30em){.md-footer-nav__link{width:50%}}@media only screen and (max-width:29.9375em){.md-footer-nav__link--prev .md-footer-nav__title{display:none}}@media only screen and (max-width:59.9375em){.md-nav--secondary{border-left:0}html .md-nav__link[for=toc]{display:block}html .md-nav__link[for=toc]:after{-webkit-transform:translateY(-50%);transform:translateY(-50%);color:#536dfe;content:"toc"}html .md-nav__link[for=toc]+.md-nav__link{display:none}html .md-nav__link[for=toc]~.md-nav{display:-webkit-box;display:-ms-flexbox;display:flex}.md-nav__source{display:block;padding:.4rem;background:rgba(0,0,0,.87);color:#fff}}@media only screen and (min-width:60em) and (min-width:75em){.md-sidebar--secondary[data-md-locked]{margin-left:120rem}} \ No newline at end of file diff --git a/material/assets/stylesheets/application.css b/material/assets/stylesheets/application.css new file mode 100644 index 000000000..133e90b1d --- /dev/null +++ b/material/assets/stylesheets/application.css @@ -0,0 +1,1576 @@ +@charset "UTF-8"; +html { + box-sizing: border-box; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; } + +*, +*::before, +*::after { + box-sizing: inherit; + -moz-box-sizing: inherit; + -webkit-box-sizing: inherit; } + +html { + -webkit-text-size-adjust: none; + -ms-text-size-adjust: none; + text-size-adjust: none; } + +body { + margin: 0; } + +article, +aside, +figcaption, +figure, +footer, +header, +main, +nav, +section { + display: block; } + +hr { + overflow: visible; + box-sizing: content-box; } + +a { + color: inherit; + text-decoration: none; } + a:active, a:hover { + outline-width: 0; } + +a { + -webkit-text-decoration-skip: objects; } + +a, +button, +label, +input { + -webkit-tap-highlight-color: transparent; } + +small { + font-size: 80%; } + +sub, +sup { + position: relative; + font-size: 80%; + line-height: 0; + vertical-align: baseline; } + +sub { + bottom: -0.25em; } + +sup { + top: -0.5em; } + +img { + border-style: none; } + +table { + border-collapse: collapse; + border-spacing: 0; } + +td, +th { + font-weight: normal; + text-align: left; + vertical-align: top; } + +button { + padding: 0; + border: 0; + outline: 0; + background: transparent; + font-size: inherit; } + +input { + border: 0; + outline: 0; } + +.md-icon, .md-nav__title::before, .md-nav__link::after, .admonition-title::before, .footnote-backref, .md-search-term::before, .checklist li::before, .critic.comment::before { + font-family: "Material Icons"; + font-style: normal; + font-variant: normal; + font-weight: normal; + line-height: 1; + text-transform: none; + white-space: nowrap; + speak: none; + word-wrap: normal; + direction: ltr; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } + .md-header-nav__icon, .md-footer-nav__icon, .md-nav__title::before { + display: inline-block; + margin: 0.4rem; + padding: 0.8rem; + font-size: 2.4rem; + cursor: pointer; } + +.md-icon--back::before { + content: "arrow_back"; } + +.md-icon--forward::before { + content: "arrow_forward"; } + +body, +input { + color: rgba(0, 0, 0, 0.87); + font-family: "Roboto", Helvetica, Arial, sans-serif; + font-weight: 400; + -webkit-font-feature-settings: "kern", "onum", "liga"; + font-feature-settings: "kern", "onum", "liga"; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } + .no-fontface body, .no-fontface + input { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } + +pre, +code, +kbd { + color: rgba(0, 0, 0, 0.87); + font-family: "Roboto Mono", "Courier New", Courier, monospace; + font-weight: 400; + -webkit-font-feature-settings: "kern", "onum", "liga"; + font-feature-settings: "kern", "onum", "liga"; } + .no-fontface pre, .no-fontface + code, .no-fontface + kbd { + font-family: "Courier New", Courier, monospace; } + +.md-typeset { + font-size: 1.6rem; + line-height: 1.6; } + .md-typeset p, + .md-typeset ul, + .md-typeset ol, + .md-typeset blockquote { + margin: 1.0em 0; } + .md-typeset h1 { + margin: 0 0 4.0rem; + color: rgba(0, 0, 0, 0.54); + font-size: 3.125rem; + font-weight: 300; + letter-spacing: -0.01em; + line-height: 1.3; } + .md-typeset h2 { + margin: 4.0rem 0 1.6rem; + font-size: 2.5rem; + font-weight: 300; + letter-spacing: -0.01em; + line-height: 1.4; } + .md-typeset h3 { + margin: 3.2rem 0 1.6rem; + font-size: 2rem; + font-weight: 400; + letter-spacing: -0.01em; + line-height: 1.5; } + .md-typeset h2 + h3 { + margin-top: 1.6rem; } + .md-typeset h4 { + margin: 1.6rem 0; + font-size: 1.6rem; + font-weight: 700; + letter-spacing: -0.01em; } + .md-typeset h5, + .md-typeset h6 { + margin: 1.6rem 0; + color: rgba(0, 0, 0, 0.54); + font-size: 1.28rem; + font-weight: 700; + letter-spacing: -0.01em; } + .md-typeset h5 { + text-transform: uppercase; } + .md-typeset hr { + margin: 2.4rem 0; + border-bottom: 0.1rem dotted rgba(0, 0, 0, 0.26); } + .md-typeset a { + color: #3f51b5; } + .md-typeset a, .md-typeset a::before { + -webkit-transition: color 0.125s; + transition: color 0.125s; } + .md-typeset a:hover, .md-typeset a:active { + color: #536dfe; } + .md-typeset code { + margin: 0 0.4rem; + padding: 0.1rem 0; + border-radius: 0.2rem; + background: rgba(0, 0, 0, 0.035); + color: #37474F; + font-size: 85%; + box-shadow: 0.4rem 0 0 rgba(0, 0, 0, 0.035), -0.4rem 0 0 rgba(0, 0, 0, 0.035); + word-break: break-word; + -webkit-box-decoration-break: clone; + box-decoration-break: clone; } + .md-typeset h1 code, + .md-typeset h2 code, + .md-typeset h3 code, + .md-typeset h4 code, + .md-typeset h5 code, + .md-typeset h6 code { + margin: 0; + background: transparent; + box-shadow: none; } + .md-typeset pre { + margin: 1.0em 0; + padding: 1.0rem 1.2rem; + border-radius: 0.2rem; + background: rgba(0, 0, 0, 0.035); + color: #37474F; + font-size: 85%; + line-height: 1.4; + overflow: auto; + -webkit-overflow-scrolling: touch; } + .md-typeset pre > code { + font-size: inherit; } + .md-typeset > div > pre::-webkit-scrollbar, + .md-typeset > pre > code::-webkit-scrollbar { + width: 0.4rem; + height: 0.4rem; } + .md-typeset > div > pre::-webkit-scrollbar-thumb, + .md-typeset > pre > code::-webkit-scrollbar-thumb { + background: rgba(0, 0, 0, 0.26); } + .md-typeset kbd { + display: inline-block; + padding: 0.4rem 0.5rem 0.5rem; + border: 0.1rem solid #c9c9c9; + border-radius: 0.2rem; + border-bottom-color: #bcbcbc; + background-color: #FCFCFC; + color: #555555; + font-size: 85%; + line-height: 1.0rem; + box-shadow: 0 -0.1rem 0 #b0b0b0 inset; + vertical-align: 0.1rem; + word-break: break-word; } + .md-typeset small { + opacity: 0.75; } + .md-typeset sup, + .md-typeset sub { + margin-left: 0.1rem; } + .md-typeset blockquote { + padding-left: 1.2rem; + border-left: 0.4rem solid rgba(0, 0, 0, 0.26); + color: rgba(0, 0, 0, 0.54); } + .md-typeset ul { + list-style-type: disc; } + .md-typeset ol ol { + list-style-type: lower-alpha; } + .md-typeset ol ol ol { + list-style-type: lower-roman; } + .md-typeset ul, + .md-typeset ol { + margin-left: 1.0rem; + padding: 0; } + .md-typeset ul li, + .md-typeset ol li { + margin-bottom: 0.5em; + margin-left: 2.0rem; } + .md-typeset ul li p, + .md-typeset ul li blockquote, + .md-typeset ol li p, + .md-typeset ol li blockquote { + margin: 0.5em 0; } + .md-typeset ul li:last-child, + .md-typeset ol li:last-child { + margin-bottom: 0; } + .md-typeset ul li ul, + .md-typeset ul li ol, + .md-typeset ol li ul, + .md-typeset ol li ol { + margin-bottom: 1.0rem; + margin-left: 1.0rem; + padding-top: 1.0rem; } + +html { + height: 100%; + font-size: 62.5%; } + +body { + position: relative; + min-height: 100%; } + body[data-md-locked] { + height: 100%; + overflow: hidden; } + +hr { + display: block; + height: 0.1rem; + padding: 0; + border: 0; } + +.md-grid { + max-width: 120.0rem; + margin-right: auto; + margin-left: auto; } + +.md-container, +.md-main { + overflow: auto; } + +.md-main { + margin-top: 5.6rem; } + .md-main__inner { + margin-top: 3rem; + margin-bottom: 9.2rem; + overflow: auto; } + +.md-toggle { + display: none; } + +.md-overlay { + position: fixed; + top: 0; + width: 0; + height: 0; + -webkit-transition: width 0s 0.25s, height 0s 0.25s, opacity 0.25s; + transition: width 0s 0.25s, height 0s 0.25s, opacity 0.25s; + background: rgba(0, 0, 0, 0.54); + opacity: 0; + z-index: 2; } + +.md-flex { + display: table; } + .md-flex__cell { + display: table-cell; + position: relative; + vertical-align: top; } + .md-flex__cell--shrink { + width: 0%; } + .md-flex__cell--stretch { + display: table; + width: 100%; + table-layout: fixed; } + .md-flex__ellipsis { + display: table-cell; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; } + +.md-content__inner { + margin: 2.4rem 1.6rem; } + +.md-content__copyright { + display: block; } + +.md-header { + box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); + position: fixed; + top: 0; + right: 0; + left: 0; + height: 5.6rem; + background: #3f51b5; + color: white; + z-index: 1; } + +.md-header-nav { + padding: 0.4rem; } + .md-header-nav__icon { + position: relative; + -webkit-transition: opacity 0.25s; + transition: opacity 0.25s; + z-index: 1; } + .md-header-nav__icon:hover { + opacity: 0.7; } + .no-js .md-header-nav__icon--search { + display: none; } + .md-header-nav__title { + padding: 0 2.0rem; + font-size: 1.8rem; + line-height: 4.8rem; } + .md-header-nav__source { + display: none; } + +.md-footer { + position: absolute; + bottom: 0; + width: 100%; } + +.md-footer-pagination { + background: rgba(0, 0, 0, 0.87); + color: white; } + +.md-footer-nav { + padding: 0.4rem; + overflow: auto; } + .md-footer-nav__link { + padding-top: 2.8rem; + padding-bottom: 0.8rem; + -webkit-transition: opacity 0.25s; + transition: opacity 0.25s; } + .md-footer-nav__link:hover { + opacity: 0.7; } + .md-footer-nav__link--prev { + width: 25%; + float: left; } + .md-footer-nav__link--next { + width: 75%; + float: right; + text-align: right; } + .md-footer-nav__icon { + -webkit-transition: background 0.25s; + transition: background 0.25s; } + .md-footer-nav__title { + position: relative; + padding: 0 0.4rem; + font-size: 1.8rem; + line-height: 4.8rem; } + .md-footer-nav__direction { + position: absolute; + right: 0; + left: 0; + margin-top: -2.0rem; + padding: 0 0.4rem; + color: rgba(255, 255, 255, 0.7); + font-size: 1.5rem; } + +.md-nav { + font-size: 1.28rem; + line-height: 1.3; } + .md-nav--secondary { + border-left: 0.4rem solid #3f51b5; } + .md-nav__title { + display: block; + padding: 1.2rem 1.2rem 0; + font-weight: 700; + text-overflow: ellipsis; + overflow: hidden; } + .md-nav__title::before { + display: none; + content: "arrow_back"; } + .md-nav__list { + margin: 0; + padding: 0; + list-style: none; } + .md-nav__item { + padding: 0.625em 1.2rem 0; } + .md-nav__item:last-child { + padding-bottom: 1.2rem; } + .md-nav__item .md-nav__item { + padding-right: 0; } + .md-nav__item .md-nav__item:last-child { + padding-bottom: 0; } + .md-nav__link { + display: block; + -webkit-transition: color 0.125s; + transition: color 0.125s; + text-overflow: ellipsis; + cursor: pointer; + overflow: hidden; } + .md-nav__item--nested > .md-nav__link::after { + content: "expand_more"; } + html .md-nav__link[for="toc"] { + display: none; } + html .md-nav__link[for="toc"] ~ .md-nav { + display: none; } + html .md-nav__link[for="toc"] + .md-nav__link::after { + display: none; } + .md-nav__link[data-md-marked] { + color: rgba(0, 0, 0, 0.54); } + .md-nav__link:hover, .md-nav__link:active, .md-nav__link--active { + color: #536dfe; } + .md-nav__source { + display: none; } + +.no-js .md-search { + display: none; } + +.md-search__overlay { + display: none; + pointer-events: none; } + +.md-search__inner { + width: 100%; } + +.md-search__icon { + position: absolute; + top: 0.8rem; + left: 1.2rem; + -webkit-transition: color 0.25s; + transition: color 0.25s; + font-size: 2.4rem; + cursor: pointer; } + .md-search__icon::before { + content: "search"; } + +.md-search__input { + padding: 0 1.6rem 0 7.2rem; + text-overflow: ellipsis; } + .md-search__input + .md-search__icon, .md-search__input::-webkit-input-placeholder { + color: rgba(0, 0, 0, 0.54); } + .md-search__input + .md-search__icon, .md-search__input::-moz-placeholder { + color: rgba(0, 0, 0, 0.54); } + .md-search__input + .md-search__icon, .md-search__input:-ms-input-placeholder { + color: rgba(0, 0, 0, 0.54); } + .md-search__input + .md-search__icon, .md-search__input::placeholder { + color: rgba(0, 0, 0, 0.54); } + +.md-sidebar { + position: relative; + width: 24.2rem; + float: left; + overflow: visible; } + .md-sidebar[data-md-locked] { + position: fixed; + top: 5.6rem; } + .md-sidebar--primary { + -webkit-backface-visibility: hidden; + backface-visibility: hidden; } + .md-sidebar--secondary { + display: none; } + .md-sidebar__scrollwrap { + margin: 2.4rem 0.4rem; + overflow-y: scroll; } + .js .md-sidebar__scrollwrap { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; } + .md-sidebar__scrollwrap::-webkit-scrollbar { + width: 0.4rem; + height: 0.4rem; } + .md-sidebar__scrollwrap::-webkit-scrollbar-thumb { + background-color: rgba(0, 0, 0, 0.26); } + .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover { + background-color: #536dfe; } + +.md-source { + display: block; + -webkit-transition: opacity 0.25s; + transition: opacity 0.25s; + font-size: 1.3rem; + line-height: 1.2; + white-space: nowrap; } + .md-source:hover { + opacity: 0.7; } + .md-source::before { + display: inline-block; + height: 4.8rem; + content: ""; + vertical-align: middle; } + .md-source--bitbucket::before, .md-source--github::before, .md-source--gitlab::before { + width: 4.8rem; + background-repeat: no-repeat; + background-position: center; + background-size: 2.4rem 2.4rem; } + .md-source--bitbucket .md-source__repository, .md-source--github .md-source__repository, .md-source--gitlab .md-source__repository { + margin-left: -4.4rem; + padding-left: 4.0rem; } + .md-source--bitbucket::before { + background-image: url("../images/icons/bitbucket-white.svg"); } + .md-source--github::before { + background-image: url("../images/icons/github-white.svg"); } + .md-source--gitlab::before { + background-image: url("../images/icons/gitlab-white.svg"); } + .md-source__repository { + display: inline-block; + max-width: 100%; + margin-left: 0.8rem; + font-weight: 700; + text-overflow: ellipsis; + overflow: hidden; + vertical-align: middle; } + .md-source__facts { + margin: 0; + padding: 0; + font-size: 1.1rem; + font-weight: 700; + opacity: 0.75; + list-style-type: none; } + .md-source__fact { + float: left; + -webkit-transform: translateY(0%); + transform: translateY(0%); + -webkit-transition: opacity 0.25s, -webkit-transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1); + transition: opacity 0.25s, -webkit-transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1); + transition: transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.25s; + transition: transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.25s, -webkit-transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1); + opacity: 1; } + .md-source__fact--hidden { + -webkit-transform: translateY(100%); + transform: translateY(100%); + opacity: 0; } + .md-source__fact::before { + margin: 0 0.2rem; + content: "\00B7"; } + .md-source__fact:first-child::before { + display: none; } + +.admonition { + margin: 2.0rem 0; + padding: 0.8rem 1.2rem; + border-left: 0.4rem solid #448aff; + border-radius: 0 0.2rem 0.2rem 0; + background: rgba(68, 138, 255, 0.05); } + .admonition-title { + color: #2979ff; + font-size: 1.28rem; + font-weight: 700; + line-height: 2; + text-transform: uppercase; } + html .admonition-title { + margin-bottom: 0; } + html .admonition-title + * { + margin-top: 0; } + .admonition-title::before { + margin-right: 0.45em; + font-size: 2.0rem; + content: "edit"; + vertical-align: -0.25em; } + .admonition :first-child { + margin-top: 0; } + .admonition :last-child { + margin-bottom: 0; } + .admonition.tldr, .admonition.summary { + border-color: #00b0ff; + background: rgba(0, 176, 255, 0.05); } + .admonition.tldr .admonition-title, .admonition.summary .admonition-title { + color: #00b0ff; } + .admonition.tldr .admonition-title::before, .admonition.summary .admonition-title::before { + content: "subject"; } + .admonition.idea, .admonition.tip { + border-color: #00bfa5; + background: rgba(0, 191, 165, 0.05); } + .admonition.idea .admonition-title, .admonition.tip .admonition-title { + color: #00bfa5; } + .admonition.idea .admonition-title::before, .admonition.tip .admonition-title::before { + content: "whatshot"; } + .admonition.check, .admonition.done, .admonition.success { + border-color: #00e676; + background: rgba(0, 230, 118, 0.05); } + .admonition.check .admonition-title, .admonition.done .admonition-title, .admonition.success .admonition-title { + color: #00e676; } + .admonition.check .admonition-title::before, .admonition.done .admonition-title::before, .admonition.success .admonition-title::before { + content: "done"; } + .admonition.attention, .admonition.important, .admonition.warning { + border-color: #ff9100; + background: rgba(255, 145, 0, 0.05); } + .admonition.attention .admonition-title, .admonition.important .admonition-title, .admonition.warning .admonition-title { + color: #ff9100; } + .admonition.attention .admonition-title::before, .admonition.important .admonition-title::before, .admonition.warning .admonition-title::before { + content: "warning"; } + .admonition.fail, .admonition.missing, .admonition.failure { + border-color: #ff5252; + background: rgba(255, 82, 82, 0.05); } + .admonition.fail .admonition-title, .admonition.missing .admonition-title, .admonition.failure .admonition-title { + color: #ff5252; } + .admonition.fail .admonition-title::before, .admonition.missing .admonition-title::before, .admonition.failure .admonition-title::before { + content: "clear"; } + .admonition.caution, .admonition.danger { + border-color: #ff1744; + background: rgba(255, 23, 68, 0.05); } + .admonition.caution .admonition-title, .admonition.danger .admonition-title { + color: #ff1744; } + .admonition.caution .admonition-title::before, .admonition.danger .admonition-title::before { + content: "flash_on"; } + .admonition.bug, .admonition.error { + border-color: #f50057; + background: rgba(245, 0, 87, 0.05); } + .admonition.bug .admonition-title, .admonition.error .admonition-title { + color: #f50057; } + .admonition.bug .admonition-title::before, .admonition.error .admonition-title::before { + content: "bug_report"; } + +.codehilite .err, +.code .err { + color: #A61717; } + +.codehilite .o, +.code .o { + color: inherit; } + +.codehilite .ge, +.code .ge { + color: #000000; } + +.codehilite .gr, +.code .gr { + color: #AA0000; } + +.codehilite .gh, +.code .gh { + color: #999999; } + +.codehilite .go, +.code .go { + color: #888888; } + +.codehilite .gp, +.code .gp { + color: #555555; } + +.codehilite .gs, +.code .gs { + color: inherit; } + +.codehilite .gu, +.code .gu { + color: #AAAAAA; } + +.codehilite .gt, +.code .gt { + color: #AA0000; } + +.codehilite .k, +.code .k { + color: #3B78E7; } + +.codehilite .kc, +.code .kc { + color: #A71D5D; } + +.codehilite .kd, +.code .kd { + color: #3B78E7; } + +.codehilite .kn, +.code .kn { + color: #3B78E7; } + +.codehilite .kp, +.code .kp { + color: #A71D5D; } + +.codehilite .kr, +.code .kr { + color: #3E61A2; } + +.codehilite .kt, +.code .kt { + color: #3E61A2; } + +.codehilite .c, +.code .c { + color: #999999; } + +.codehilite .cm, +.code .cm { + color: #999999; } + +.codehilite .cp, +.code .cp { + color: #666666; } + +.codehilite .c1, +.code .c1 { + color: #999999; } + +.codehilite .cs, +.code .cs { + color: #999999; } + +.codehilite .na, +.code .na { + color: #C2185B; } + +.codehilite .nb, +.code .nb { + color: #C2185B; } + +.codehilite .bp, +.code .bp { + color: #3E61A2; } + +.codehilite .nc, +.code .nc { + color: #C2185B; } + +.codehilite .no, +.code .no { + color: #3E61A2; } + +.codehilite .nd, +.code .nd { + color: #666666; } + +.codehilite .ni, +.code .ni { + color: #666666; } + +.codehilite .ne, +.code .ne { + color: #C2185B; } + +.codehilite .nf, +.code .nf { + color: #C2185B; } + +.codehilite .nl, +.code .nl { + color: #3B5179; } + +.codehilite .nn, +.code .nn { + color: #EC407A; } + +.codehilite .nt, +.code .nt { + color: #3B78E7; } + +.codehilite .nv, +.code .nv { + color: #3E61A2; } + +.codehilite .vc, +.code .vc { + color: #3E61A2; } + +.codehilite .vg, +.code .vg { + color: #3E61A2; } + +.codehilite .vi, +.code .vi { + color: #3E61A2; } + +.codehilite .nx, +.code .nx { + color: #EC407A; } + +.codehilite .ow, +.code .ow { + color: inherit; } + +.codehilite .m, +.code .m { + color: #E74C3C; } + +.codehilite .mf, +.code .mf { + color: #E74C3C; } + +.codehilite .mh, +.code .mh { + color: #E74C3C; } + +.codehilite .mi, +.code .mi { + color: #E74C3C; } + +.codehilite .il, +.code .il { + color: #E74C3C; } + +.codehilite .mo, +.code .mo { + color: #E74C3C; } + +.codehilite .s, +.code .s { + color: #0D904F; } + +.codehilite .sb, +.code .sb { + color: #0D904F; } + +.codehilite .sc, +.code .sc { + color: #0D904F; } + +.codehilite .sd, +.code .sd { + color: #999999; } + +.codehilite .s2, +.code .s2 { + color: #0D904F; } + +.codehilite .se, +.code .se { + color: #183691; } + +.codehilite .sh, +.code .sh { + color: #183691; } + +.codehilite .si, +.code .si { + color: #183691; } + +.codehilite .sx, +.code .sx { + color: #183691; } + +.codehilite .sr, +.code .sr { + color: #009926; } + +.codehilite .s1, +.code .s1 { + color: #0D904F; } + +.codehilite .ss, +.code .ss { + color: #0D904F; } + +.codehilite .gd, +.code .gd { + background-color: #FFDDDD; } + +.codehilite .gi, +.code .gi { + background-color: #DDFFDD; } + +.codehilite .w, +.code .w { + color: transparent; } + +.footnote { + color: rgba(0, 0, 0, 0.54); + font-size: 80%; } + .footnote ol { + margin-left: 0; } + .footnote li:hover .footnote-backref, + .footnote li:target .footnote-backref { + -webkit-transform: translateX(0); + transform: translateX(0); + opacity: 1; } + .footnote li:hover .footnote-backref:hover, + .footnote li:target .footnote-backref { + color: #536dfe; } + .footnote-ref::before { + position: absolute; + margin-top: -8rem; + padding-top: 8rem; + content: ""; + pointer-events: none; } + .footnote-backref { + position: absolute; + -webkit-transform: translateX(0.5rem); + transform: translateX(0.5rem); + -webkit-transition: color 0.25s, opacity 0.125s 0.125s, -webkit-transform 0.25s 0.125s; + transition: color 0.25s, opacity 0.125s 0.125s, -webkit-transform 0.25s 0.125s; + transition: transform 0.25s 0.125s, color 0.25s, opacity 0.125s 0.125s; + transition: transform 0.25s 0.125s, color 0.25s, opacity 0.125s 0.125s, -webkit-transform 0.25s 0.125s; + color: rgba(0, 0, 0, 0.26); + font-size: 2.0rem; + opacity: 0; + vertical-align: middle; } + .footnote-backref::first-letter { + font-size: 0; } + .footnote-backref::after { + content: "keyboard_return"; } + +.md-typeset .headerlink { + display: inline-block; + margin-left: 1.0rem; + -webkit-transform: translate(0, 0.5rem); + transform: translate(0, 0.5rem); + -webkit-transition: color 0.25s, opacity 0.125s 0.25s, -webkit-transform 0.25s 0.25s; + transition: color 0.25s, opacity 0.125s 0.25s, -webkit-transform 0.25s 0.25s; + transition: transform 0.25s 0.25s, color 0.25s, opacity 0.125s 0.25s; + transition: transform 0.25s 0.25s, color 0.25s, opacity 0.125s 0.25s, -webkit-transform 0.25s 0.25s; + color: rgba(0, 0, 0, 0.26); + opacity: 0; } + +.md-typeset [id]:hover .headerlink, +.md-typeset [id]:target .headerlink, +.md-typeset [id] .headerlink:focus { + -webkit-transform: translate(0, 0); + transform: translate(0, 0); + opacity: 1; } + +.md-typeset [id]:hover .headerlink:hover, +.md-typeset [id]:target .headerlink, +.md-typeset [id] .headerlink:focus { + color: #536dfe; } + +.md-typeset h1[id]::before { + display: block; + margin-top: -11rem; + padding-top: 11rem; + content: ""; } + +.md-typeset h2[id]::before { + display: block; + margin-top: -8.2rem; + padding-top: 8.2rem; + content: ""; } + +.md-typeset h3[id]::before { + display: block; + margin-top: -8.4rem; + padding-top: 8.4rem; + content: ""; } + +.md-typeset h4[id]::before { + display: block; + margin-top: -8.6rem; + padding-top: 8.6rem; + content: ""; } + +.md-typeset h5[id]::before { + display: block; + margin-top: -9rem; + padding-top: 9rem; + content: ""; } + +.md-typeset h6[id]::before { + display: block; + margin-top: -9rem; + padding-top: 9rem; + content: ""; } + +.md-search__output { + overflow-y: auto; + width: 100%; + opacity: 0; + -webkit-transition: opacity .4s, max-height .4s; + transition: opacity .4s, max-height .4s; + text-align: left; + z-index: -1; } + [data-md-locked] .md-search__output { + opacity: 1; } + +.md-search-result__meta { + color: rgba(0, 0, 0, 0.54); + padding-left: 4.8rem; + padding-right: 1.6rem; + line-height: 4.0rem; + font-size: 1.28rem; } + +.md-search-result__list { + margin: 0; + padding: 0; + list-style-type: none; + border-top: 0.1rem solid rgba(0, 0, 0, 0.07); } + +.md-search-result__link { + overflow: auto; + display: block; + padding-left: 4.8rem; + padding-right: 1.6rem; + -webkit-transition: background 0.25s; + transition: background 0.25s; } + .md-search-result__link:hover { + background: rgba(83, 109, 254, 0.1); } + +.md-search-result__title { + color: rgba(0, 0, 0, 0.87); + font-size: 1.6rem; + line-height: 1.4; + margin-top: 0.5em; } + +.md-search-result__description { + color: rgba(0, 0, 0, 0.54); + font-size: 1.28rem; + line-height: 1.4; + margin: 0.5em 0; } + +.md-search-term { + position: relative; + padding: 0 0.8rem 0 4.8rem; + line-height: 4.0rem; + font-size: 1.6rem; + -webkit-transition: background .25s; + transition: background .25s; + cursor: pointer; } + .md-search-term::before { + position: absolute; + content: "access_time"; + font-size: 2.4rem; + line-height: 4.0rem; + left: 1.2rem; + color: rgba(0, 0, 0, 0.26); } + .md-search-term:hover { + background: #eceef8; } + +.checklist li { + position: relative; + list-style-type: none; } + .checklist li::before { + position: absolute; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + color: blue; + content: "check_box"; + font-size: 2.4rem; } + +.checklist input[type="checkbox"]:checked { + width: 20px; } + +ins.critic, del.critic, mark { + margin: 0 0.4rem; + padding: 0.1rem 0; + word-break: break-word; + -webkit-box-decoration-break: clone; + box-decoration-break: clone; + border-radius: 0.2rem; } + +ins.critic { + background: #DDFFDD; + box-shadow: 0.4rem 0 0 #DDFFDD, -0.4rem 0 0 #DDFFDD; + text-decoration: none; } + +del.critic { + background: #FFDDDD; + box-shadow: 0.4rem 0 0 #FFDDDD, -0.4rem 0 0 #FFDDDD; } + +mark { + background: #FFFF00; + box-shadow: 0.4rem 0 0 #FFFF00, -0.4rem 0 0 #FFFF00; + overflow: auto; } + +.critic.comment { + margin: 0 0.4rem; + padding: 0.1rem 0; + border-radius: 0.2rem; + background: #F0F0F0; + color: #37474F; + box-shadow: 0.4rem 0 0 #F0F0F0, -0.4rem 0 0 #F0F0F0; + -webkit-box-decoration-break: clone; + box-decoration-break: clone; } + .critic.comment::before { + color: rgba(0, 0, 0, 0.26); + content: "chat"; + font-size: 1.6rem; + padding-right: 0.2rem; + vertical-align: -0.2rem; } + +.md-button { + float: right; + margin-top: 9px; + font-size: 13px; + padding-left: 2.6rem; + font-weight: 700; + text-transform: uppercase; } + +.task-list-item { + list-style-type: none; } + +.task-list-item input { + margin: 0 4px 0.25em -20px; + vertical-align: middle; } + +.task-list-item { + position: relative; } + +.task-list-item input[type="checkbox"] { + opacity: 0; } + +.task-list-item input[type="checkbox"] + label { + display: block; + position: absolute; + top: 50%; + left: -24px; + width: 16px; + margin-top: -8px; + height: 16px; + border-radius: 2px; + background: #CCC; } + +.task-list-item input[type="checkbox"]:checked + label::before { + display: block; + margin-top: -4px; + margin-left: 2px; + font-size: 1.2em; + line-height: 1; + border-radius: 2px; + content: "✔"; + color: #1EBB52; } + +.codehilite .hll { + background: #FFFF00; + display: block; + margin: 0 -16px; + padding: 0 16px; } + +.md-typeset sup { + padding: 0 0.125em; + border-radius: 0.2em; } + .md-typeset sup[id]:target { + background: orange; } + @media only screen and (max-width: 44.9375em){ + .md-typeset > div > pre, + .md-typeset > pre > code{ + margin: 1.0em -1.6rem; + padding: 1.0rem 1.6rem; + border-radius: 0; } + .md-search__suggest{ + position: relative; + z-index: 2; } } + @media only screen and (min-width: 100em){ + html{ + font-size: 68.75%; } } + @media only screen and (min-width: 125em){ + html{ + font-size: 75%; } } + @media only screen and (max-width: 74.9375em){ + .md-toggle--drawer:checked ~ .md-overlay{ + width: 100%; + height: 100%; + -webkit-transition: width 0s, height 0s, opacity 0.25s; + transition: width 0s, height 0s, opacity 0.25s; + opacity: 1; } + .md-header-nav__icon--home{ + display: none; } + .md-nav--primary, + .md-nav--primary .md-nav{ + display: -webkit-box; + display: -ms-flexbox; + display: flex; + position: absolute; + top: 0; + right: 0; + left: 0; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + height: 100%; + z-index: 1; } + .md-nav--primary{ + background: white; } + .md-nav--primary .md-nav__toggle ~ .md-nav{ + box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4); + left: 0.4rem; + background: white; } + html .md-nav--primary .md-nav__title{ + position: relative; + padding: 0.4rem 1.6rem 0.4rem 5.6rem; + background: rgba(0, 0, 0, 0.07); + color: rgba(0, 0, 0, 0.54); + font-size: 1.8rem; + font-weight: 400; + line-height: 4.8rem; + white-space: nowrap; + cursor: pointer; } + html .md-nav--primary .md-nav__title::before{ + display: block; + position: absolute; + left: 0.4rem; + width: 4.0rem; + height: 4.0rem; + color: rgba(0, 0, 0, 0.54); } + html .md-nav--primary .md-nav__title ~ .md-nav__list > .md-nav__item:first-child{ + border-top: 0; } + .md-nav--primary .md-nav__list{ + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + overflow-y: scroll; } + .md-nav--primary .md-nav__item{ + padding: 0; + border-top: 0.1rem solid rgba(0, 0, 0, 0.07); } + .md-nav--primary .md-nav__item--nested > .md-nav__link{ + padding-right: 4.8rem; } + .md-nav--primary .md-nav__link{ + position: relative; + padding: 1.6rem; } + .md-nav--primary .md-nav__link::after{ + position: absolute; + top: 50%; + right: 1.2rem; + -webkit-transform: translateY(-50%) rotate(-90deg); + transform: translateY(-50%) rotate(-90deg); + -webkit-transition: inherit; + transition: inherit; + color: rgba(0, 0, 0, 0.54); + font-size: 2.4rem; } + .md-nav--primary .md-nav__link:hover::after{ + color: #536dfe; } + .md-nav--primary .md-nav--secondary .md-nav{ + position: static; } + .md-nav--primary .md-nav--secondary .md-nav .md-nav__link{ + padding-left: 2.8rem; } + .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link{ + padding-left: 4.0rem; } + .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link{ + padding-left: 5.2rem; } + .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link{ + padding-left: 6.4rem; } + .md-nav__toggle ~ .md-nav{ + display: none; } + .csstransforms3d .md-nav__toggle ~ .md-nav{ + display: block; + -webkit-transform: translateX(100%); + transform: translateX(100%); + -webkit-transition: opacity 0.125s 0.05s, -webkit-transform 0.25s cubic-bezier(0.8, 0, 0.6, 1); + transition: opacity 0.125s 0.05s, -webkit-transform 0.25s cubic-bezier(0.8, 0, 0.6, 1); + transition: transform 0.25s cubic-bezier(0.8, 0, 0.6, 1), opacity 0.125s 0.05s; + transition: transform 0.25s cubic-bezier(0.8, 0, 0.6, 1), opacity 0.125s 0.05s, -webkit-transform 0.25s cubic-bezier(0.8, 0, 0.6, 1); + opacity: 0; } + .md-nav__toggle:checked ~ .md-nav{ + display: block; } + .csstransforms3d .md-nav__toggle:checked ~ .md-nav{ + -webkit-transform: translateX(0); + transform: translateX(0); + -webkit-transition: opacity 0.125s 0.125s, -webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); + transition: opacity 0.125s 0.125s, -webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); + transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.125s 0.125s; + transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.125s 0.125s, -webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); + opacity: 1; } + .md-nav .md-nav__title, + .md-nav .md-nav__item{ + font-size: 1.6rem; + line-height: 1.4; } + .md-sidebar--primary{ + position: fixed; + top: 0; + left: -24.2rem; + width: 24.2rem; + height: 100%; + -webkit-transform: translateX(0); + transform: translateX(0); + -webkit-transition: box-shadow 0.25s, -webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); + transition: box-shadow 0.25s, -webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); + transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s; + transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, -webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); + background: white; + z-index: 2; } + .no-csstransforms3d .md-sidebar--primary{ + display: none; } + .md-toggle--drawer:checked ~ .md-container .md-sidebar--primary{ + box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.4); + -webkit-transform: translateX(24.2rem); + transform: translateX(24.2rem); } + .no-csstransforms3d .md-toggle--drawer:checked ~ .md-container .md-sidebar--primary{ + display: block; } + .md-sidebar--primary .md-sidebar__scrollwrap{ + overflow: hidden; } + .md-sidebar--primary .md-sidebar__scrollwrap{ + margin: 0; } } + @media only screen and (min-width: 60em){ + .md-content{ + margin-right: 24.2rem; } + .md-header-nav__icon--search{ + display: none; } + .md-header-nav__source{ + display: block; + width: 23.0rem; + max-width: 23.0rem; + padding-right: 1.2rem; } + .md-search{ + padding: 0.4rem; + padding-right: 3.2rem; } + .md-search__inner{ + position: relative; } + .md-search__form{ + width: 23.0rem; + -webkit-transition: width 0.25s cubic-bezier(0.1, 0.7, 0.1, 1); + transition: width 0.25s cubic-bezier(0.1, 0.7, 0.1, 1); + border-radius: 0.2rem; } + [data-md-locked] .md-search__form{ + width: 66.8rem; } + .md-search__input{ + width: 100%; + height: 4.0rem; + padding-left: 4.8rem; + -webkit-transition: background-color 0.25s, color 0.25s; + transition: background-color 0.25s, color 0.25s; + border-radius: 0.2rem; + background: rgba(0, 0, 0, 0.26); + color: white; + font-size: 1.6rem; } + .md-search__input + .md-search__icon, .md-search__input::-webkit-input-placeholder{ + -webkit-transition: color 0.25s; + transition: color 0.25s; + color: white; } + .md-search__input + .md-search__icon, .md-search__input::-moz-placeholder{ + -webkit-transition: color 0.25s; + transition: color 0.25s; + color: white; } + .md-search__input + .md-search__icon, .md-search__input:-ms-input-placeholder{ + -webkit-transition: color 0.25s; + transition: color 0.25s; + color: white; } + .md-search__input + .md-search__icon, .md-search__input::placeholder{ + -webkit-transition: color 0.25s; + transition: color 0.25s; + color: white; } + .md-search__input:hover{ + background: rgba(255, 255, 255, 0.12); } + [data-md-locked] .md-search__input{ + border-radius: 0.2rem 0.2rem 0 0; + background: white; + color: rgba(0, 0, 0, 0.87); + text-overflow: none; } + [data-md-locked] .md-search__input + .md-search__icon, [data-md-locked] .md-search__input::-webkit-input-placeholder{ + color: rgba(0, 0, 0, 0.54); } + [data-md-locked] .md-search__input + .md-search__icon, [data-md-locked] .md-search__input::-moz-placeholder{ + color: rgba(0, 0, 0, 0.54); } + [data-md-locked] .md-search__input + .md-search__icon, [data-md-locked] .md-search__input:-ms-input-placeholder{ + color: rgba(0, 0, 0, 0.54); } + [data-md-locked] .md-search__input + .md-search__icon, [data-md-locked] .md-search__input::placeholder{ + color: rgba(0, 0, 0, 0.54); } + .md-sidebar--secondary{ + display: block; + float: right; } + .md-sidebar--secondary[data-md-locked]{ + margin-left: 100%; + -webkit-transform: translate(-100%, 0); + transform: translate(-100%, 0); } + .md-search__output{ + box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.4); + background: white; + border-top: 0.1rem solid rgba(0, 0, 0, 0.07); + border-radius: 0 0 0.3rem 0.3rem; + position: absolute; + max-height: 0vh; + background: -webkit-linear-gradient(white 10%, rgba(255, 255, 255, 0)), -webkit-linear-gradient(top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2) 20%, transparent 60%); + background: linear-gradient(white 10%, rgba(255, 255, 255, 0)), linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2) 20%, transparent 60%); + background-repeat: no-repeat; + background-color: white; + background-size: 100% 20px, 100% 5px; + /* Opera doesn't support this in the shorthand */ + background-attachment: local, scroll; } + [data-md-locked] .md-search__output{ + max-height: 75vh; } + .md-search__output::-webkit-scrollbar{ + width: 0.4rem; + height: 0.4rem; } + .md-search__output::-webkit-scrollbar-thumb{ + background-color: rgba(0, 0, 0, 0.26); } + .md-search__output::-webkit-scrollbar-thumb:hover{ + background-color: #536dfe; } } + @media only screen and (min-width: 75em){ + .md-content{ + margin-left: 24.2rem; } + .md-content__inner{ + margin: 2.4rem; } + .md-header-nav__icon--menu{ + display: none; } + .md-nav.md-nav--transitioning{ + -webkit-transition: max-height 0.25s cubic-bezier(0.86, 0, 0.07, 1); + transition: max-height 0.25s cubic-bezier(0.86, 0, 0.07, 1); } + .md-nav__toggle ~ .md-nav{ + max-height: 0; + overflow: hidden; } + .md-nav__toggle:checked ~ .md-nav, .md-nav.md-nav--toggled{ + max-height: 100%; } + .md-nav__title + .md-nav__list .md-nav__title{ + display: none; } + .md-nav__item--nested > .md-nav__link::after{ + display: inline-block; + -webkit-transform-origin: 0.45em 0.45em; + transform-origin: 0.45em 0.45em; + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d; + vertical-align: -0.125em; } + .js .md-nav__item--nested > .md-nav__link::after{ + -webkit-transition: -webkit-transform 0.4s; + transition: -webkit-transform 0.4s; + transition: transform 0.4s; + transition: transform 0.4s, -webkit-transform 0.4s; } + .md-nav__item--nested .md-nav__toggle:checked ~ .md-nav__link::after{ + -webkit-transform: rotateX(180deg); + transform: rotateX(180deg); } + .md-sidebar__inner{ + border-right: 0.1rem solid rgba(0, 0, 0, 0.07); } } + @media only screen and (min-width: 30em){ + .md-footer-nav__link{ + width: 50%; } } + @media only screen and (max-width: 29.9375em){ + .md-footer-nav__link--prev .md-footer-nav__title{ + display: none; } + .md-toggle--search:checked ~ .md-header .md-search__overlay{ + -webkit-transform: scale(45); + transform: scale(45); } } + @media only screen and (max-width: 59.9375em){ + .md-nav--secondary{ + border-left: 0; } + html .md-nav__link[for="toc"]{ + display: block; } + html .md-nav__link[for="toc"]::after{ + -webkit-transform: translateY(-50%); + transform: translateY(-50%); + color: #536dfe; + content: "toc"; } + html .md-nav__link[for="toc"] + .md-nav__link{ + display: none; } + html .md-nav__link[for="toc"] ~ .md-nav{ + display: -webkit-box; + display: -ms-flexbox; + display: flex; } + .md-nav__source{ + display: block; + padding: 0.4rem; + background: rgba(0, 0, 0, 0.87); + color: white; } + .md-search__overlay{ + display: block; + position: absolute; + top: 0.4rem; + left: 0.4rem; + width: 4.0rem; + height: 4.0rem; + -webkit-transform-origin: center; + transform-origin: center; + -webkit-transition: opacity 0.2s 0.2s, -webkit-transform 0.3s 0.1s; + transition: opacity 0.2s 0.2s, -webkit-transform 0.3s 0.1s; + transition: transform 0.3s 0.1s, opacity 0.2s 0.2s; + transition: transform 0.3s 0.1s, opacity 0.2s 0.2s, -webkit-transform 0.3s 0.1s; + border-radius: 2.0rem; + background: #EEEEEE; + opacity: 0; + overflow: hidden; + z-index: 1; } + .md-toggle--search:checked ~ .md-header .md-search__overlay{ + -webkit-transition: opacity 0.1s, -webkit-transform 0.4s; + transition: opacity 0.1s, -webkit-transform 0.4s; + transition: transform 0.4s, opacity 0.1s; + transition: transform 0.4s, opacity 0.1s, -webkit-transform 0.4s; + opacity: 1; } + .md-search__inner{ + position: fixed; + top: 0; + left: 100%; + height: 100%; + -webkit-transform: translateX(5%); + transform: translateX(5%); + -webkit-transition: left 0s 0.3s, opacity 0.15s 0.15s, -webkit-transform 0.15s 0.15s cubic-bezier(0.4, 0, 0.2, 1); + transition: left 0s 0.3s, opacity 0.15s 0.15s, -webkit-transform 0.15s 0.15s cubic-bezier(0.4, 0, 0.2, 1); + transition: left 0s 0.3s, transform 0.15s 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s 0.15s; + transition: left 0s 0.3s, transform 0.15s 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s 0.15s, -webkit-transform 0.15s 0.15s cubic-bezier(0.4, 0, 0.2, 1); + opacity: 0; + z-index: 2; } + .md-toggle--search:checked ~ .md-header .md-search__inner{ + left: 0; + -webkit-transform: translateX(0); + transform: translateX(0); + -webkit-transition: left 0s 0s, opacity 0.15s 0.15s, -webkit-transform 0.15s 0.15s cubic-bezier(0.1, 0.7, 0.1, 1); + transition: left 0s 0s, opacity 0.15s 0.15s, -webkit-transform 0.15s 0.15s cubic-bezier(0.1, 0.7, 0.1, 1); + transition: left 0s 0s, transform 0.15s 0.15s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.15s 0.15s; + transition: left 0s 0s, transform 0.15s 0.15s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.15s 0.15s, -webkit-transform 0.15s 0.15s cubic-bezier(0.1, 0.7, 0.1, 1); + opacity: 1; } + .md-search__icon{ + top: 1.6rem; + left: 1.6rem; } + .md-search__icon::before{ + content: "arrow_back"; } + .md-search__input{ + width: 100%; + height: 5.6rem; + font-size: 1.8rem; } + .md-search__output{ + position: absolute; + top: 5.6rem; + bottom: 0; + background: -webkit-linear-gradient(white 10%, rgba(255, 255, 255, 0)), -webkit-linear-gradient(top, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.125) 20%, transparent 60%); + background: linear-gradient(white 10%, rgba(255, 255, 255, 0)), linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.125) 20%, transparent 60%); + background-repeat: no-repeat; + background-color: white; + background-size: 100% 20px, 100% 10px; + background-attachment: local, scroll; } + .md-search-result__link{ + padding: 0 1.6rem; } + .md-search-result__meta{ + padding-left: 1.6rem; + border-top: 0.1rem solid rgba(0, 0, 0, 0.07); } } + @media only screen and (min-width: 30em) and (max-width: 44.9375em){ + .md-toggle--search:checked ~ .md-header .md-search__overlay{ + -webkit-transform: scale(60); + transform: scale(60); } } + @media only screen and (min-width: 45em) and (max-width: 59.9375em){ + .md-toggle--search:checked ~ .md-header .md-search__overlay{ + -webkit-transform: scale(75); + transform: scale(75); } } + @media only screen and (min-width: 60em) and (min-width: 75em){ + .md-sidebar--secondary[data-md-locked]{ + margin-left: 120.0rem; } } diff --git a/material/assets/stylesheets/application.css.map b/material/assets/stylesheets/application.css.map new file mode 100644 index 000000000..2cf78623d --- /dev/null +++ b/material/assets/stylesheets/application.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["application.css","base/_reset.scss","base/_icons.scss","_config.scss","base/_typeset.scss","../../../node_modules/modularscale-sass/stylesheets/modular-scale/_calc.scss","../../../node_modules/material-design-color/material-color.scss","layout/_base.scss","layout/_content.scss","layout/_header.scss","../../../node_modules/material-shadows/material-shadows.scss","layout/_footer.scss","layout/_nav.scss","layout/_search.scss","layout/_sidebar.scss","layout/_source.scss","extensions/_admonition.scss","extensions/_codehilite.scss","extensions/_footnotes.scss","extensions/_permalinks.scss","_shame.scss","helpers/_break.scss"],"names":[],"mappings":"AAAA,iBAAiB;AC4BjB;EACU,uBAAuB;EAC5B,4BAA4B;EAC/B,+BAA+B,EAChC;;AAGD;;;EAGU,oBAAoB;EACzB,yBAAyB;EAC5B,4BAA4B,EAC7B;;AAGD;EACE,+BAAuB;MAAvB,2BAAuB;UAAvB,uBAAuB,EACxB;;AAGD;EACE,UAAU,EACX;;AAGD;;;;;;;;;EASE,eAAe,EAChB;;AAGD;EACE,kBAAkB;EAClB,wBAAwB,EACzB;;AAGD;EACE,eAAe;EACf,sBAAsB,EAOvB;EATD;IAOI,iBAAiB,EAClB;;AAIH;EACE,sCAAsC,EACvC;;AAGD;;;;EAIE,yCAAyC,EAC1C;;AAGD;EACE,eAAe,EAChB;;AAGD;;EAEE,mBAAmB;EACnB,eAAe;EACf,eAAe;EACf,yBAAyB,EAC1B;;AAGD;EACE,gBAAgB,EACjB;;AAGD;EACE,YAAY,EACb;;AAED;EACE,mBAAmB,EACpB;;AAGD;EACE,0BAA0B;EAC1B,kBAAkB,EACnB;;AAGD;;EAEE,oBAAoB;EACpB,iBAAiB;EACjB,oBAAoB,EACrB;;AAGD;EACE,WAAW;EACX,UAAU;EACV,WAAW;EACX,wBAAwB;EACxB,mBAAmB,EACpB;;AAGD;EACE,UAAU;EACV,WAAW,EACZ;;AC7HD;EACE,8BAA8B;EAC9B,mBAAmB;EACnB,qBAAqB;EACrB,oBAAoB;EACpB,eAAe;EACf,qBAAqB;EACrB,oBAAoB;EACpB,YAAY;EACZ,kBAAkB;EAClB,eAAe;EAGf,oCAAoC;EACpC,mCAAmC,EAUpC;EAx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FjB,mEAEiB;IACjB,WAAW,EACZ;EA3CP;IAqDM,gBAAgB;IAChB,OAAO;IACP,WAAW;IACX,aAAa;IACb,kCAAqB;IAArB,0BAAqB;IACrB,kHAGuB;IAHvB,0GAGuB;IAHvB,kGAGuB;IAHvB,8JAGuB;IACvB,WAAW;IACX,WAAW,EAkBd;EAjFH;IAmEQ,QAAQ;IACR,iCAAqB;IAArB,yBAAqB;IACrB,kHAGuB;IAHvB,0GAGuB;IAHvB,kGAGuB;IAHvB,gKAGuB;IACvB,WAAW,EACZ;EA1EP;IAoHM,YAAY;IACZ,aAAa,EAOhB;EA5HH;IAyHQ,sBAAsB,EACvB;EA1HP;IA2IM,YAAY;IACZ,eAAe;IACf,kBAAkB,EA0CrB;EOxJD;IACE,mBAAmB;IACnB,YAAY;IACZ,UAAU;IAEV,qKAEiB;IAFjB,2JAEiB;IAGlB,6BAA6B;IAC7B,wBAAwB;IACxB,sCAAsC;IAGtC,qCAAqC,EACrC;EAID;IACE,kBAAkB,EAInB;EACD;IACE,qBAAqB;IACrB,6CAA6B,EAC9B,ERiPE;ES1GD;EPnMJ;IA2EU,sBAAsB,EAEzB,EAAA","file":"application.css","sourcesContent":["@charset \"UTF-8\";\nhtml {\n box-sizing: border-box;\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box; }\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n -moz-box-sizing: inherit;\n -webkit-box-sizing: inherit; }\n\nhtml {\n text-size-adjust: none; }\n\nbody {\n margin: 0; }\n\narticle,\naside,\nfigcaption,\nfigure,\nfooter,\nheader,\nmain,\nnav,\nsection {\n display: block; }\n\nhr {\n overflow: visible;\n box-sizing: content-box; }\n\na {\n color: inherit;\n text-decoration: none; }\n a:active, a:hover {\n outline-width: 0; }\n\na {\n -webkit-text-decoration-skip: objects; }\n\na,\nbutton,\nlabel,\ninput {\n -webkit-tap-highlight-color: transparent; }\n\nsmall {\n font-size: 80%; }\n\nsub,\nsup {\n position: relative;\n font-size: 80%;\n line-height: 0;\n vertical-align: baseline; }\n\nsub {\n bottom: -0.25em; }\n\nsup {\n top: -0.5em; }\n\nimg {\n border-style: none; }\n\ntable {\n border-collapse: collapse;\n border-spacing: 0; }\n\ntd,\nth {\n font-weight: normal;\n text-align: left;\n vertical-align: top; }\n\nbutton {\n padding: 0;\n border: 0;\n outline: 0;\n background: transparent;\n font-size: inherit; }\n\ninput {\n border: 0;\n outline: 0; }\n\n.md-icon, .md-nav__title::before, .md-nav__link::after, .admonition-title::before, .footnote-backref, .md-search-term::before, .checklist li::before, .critic.comment::before {\n font-family: \"Material Icons\";\n font-style: normal;\n font-variant: normal;\n font-weight: normal;\n line-height: 1;\n text-transform: none;\n white-space: nowrap;\n speak: none;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale; }\n .md-header-nav__icon, .md-footer-nav__icon, .md-nav__title::before {\n display: inline-block;\n margin: 0.4rem;\n padding: 0.8rem;\n font-size: 2.4rem;\n cursor: pointer; }\n\n.md-icon--back::before {\n content: \"arrow_back\"; }\n\n.md-icon--forward::before {\n content: \"arrow_forward\"; }\n\nbody,\ninput {\n color: rgba(0, 0, 0, 0.87);\n font-family: \"Roboto\", Helvetica, Arial, sans-serif;\n font-weight: 400;\n font-feature-settings: \"kern\", \"onum\", \"liga\";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale; }\n .no-fontface body, .no-fontface\n input {\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; }\n\npre,\ncode,\nkbd {\n color: rgba(0, 0, 0, 0.87);\n font-family: \"Roboto Mono\", \"Courier New\", Courier, monospace;\n font-weight: 400;\n font-feature-settings: \"kern\", \"onum\", \"liga\"; }\n .no-fontface pre, .no-fontface\n code, .no-fontface\n kbd {\n font-family: \"Courier New\", Courier, monospace; }\n\n.md-typeset {\n font-size: 1.6rem;\n line-height: 1.6; }\n .md-typeset p,\n .md-typeset ul,\n .md-typeset ol,\n .md-typeset blockquote {\n margin: 1.0em 0; }\n .md-typeset h1 {\n margin: 0 0 4.0rem;\n color: rgba(0, 0, 0, 0.54);\n font-size: 3.125rem;\n font-weight: 300;\n letter-spacing: -0.01em;\n line-height: 1.3; }\n .md-typeset h2 {\n margin: 4.0rem 0 1.6rem;\n font-size: 2.5rem;\n font-weight: 300;\n letter-spacing: -0.01em;\n line-height: 1.4; }\n .md-typeset h3 {\n margin: 3.2rem 0 1.6rem;\n font-size: 2rem;\n font-weight: 400;\n letter-spacing: -0.01em;\n line-height: 1.5; }\n .md-typeset h2 + h3 {\n margin-top: 1.6rem; }\n .md-typeset h4 {\n margin: 1.6rem 0;\n font-size: 1.6rem;\n font-weight: 700;\n letter-spacing: -0.01em; }\n .md-typeset h5,\n .md-typeset h6 {\n margin: 1.6rem 0;\n color: rgba(0, 0, 0, 0.54);\n font-size: 1.28rem;\n font-weight: 700;\n letter-spacing: -0.01em; }\n .md-typeset h5 {\n text-transform: uppercase; }\n .md-typeset hr {\n margin: 2.4rem 0;\n border-bottom: 0.1rem dotted rgba(0, 0, 0, 0.26); }\n .md-typeset a {\n color: #3f51b5; }\n .md-typeset a, .md-typeset a::before {\n transition: color 0.125s; }\n .md-typeset a:hover, .md-typeset a:active {\n color: #536dfe; }\n .md-typeset code {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n border-radius: 0.2rem;\n background: rgba(0, 0, 0, 0.035);\n color: #37474F;\n font-size: 85%;\n box-shadow: 0.4rem 0 0 rgba(0, 0, 0, 0.035), -0.4rem 0 0 rgba(0, 0, 0, 0.035);\n word-break: break-word;\n box-decoration-break: clone; }\n .md-typeset h1 code,\n .md-typeset h2 code,\n .md-typeset h3 code,\n .md-typeset h4 code,\n .md-typeset h5 code,\n .md-typeset h6 code {\n margin: 0;\n background: transparent;\n box-shadow: none; }\n .md-typeset pre {\n margin: 1.0em 0;\n padding: 1.0rem 1.2rem;\n border-radius: 0.2rem;\n background: rgba(0, 0, 0, 0.035);\n color: #37474F;\n font-size: 85%;\n line-height: 1.4;\n overflow: auto;\n -webkit-overflow-scrolling: touch; }\n .md-typeset pre > code {\n font-size: inherit; }\n @media only screen and (max-width: 44.9375em) {\n .md-typeset > div > pre,\n .md-typeset > pre > code {\n margin: 1.0em -1.6rem;\n padding: 1.0rem 1.6rem;\n border-radius: 0; } }\n .md-typeset > div > pre::-webkit-scrollbar,\n .md-typeset > pre > code::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem; }\n .md-typeset > div > pre::-webkit-scrollbar-thumb,\n .md-typeset > pre > code::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.26); }\n .md-typeset kbd {\n display: inline-block;\n padding: 0.4rem 0.5rem 0.5rem;\n border: 0.1rem solid #c9c9c9;\n border-radius: 0.2rem;\n border-bottom-color: #bcbcbc;\n background-color: #FCFCFC;\n color: #555555;\n font-size: 85%;\n line-height: 1.0rem;\n box-shadow: 0 -0.1rem 0 #b0b0b0 inset;\n vertical-align: 0.1rem;\n word-break: break-word; }\n .md-typeset small {\n opacity: 0.75; }\n .md-typeset sup,\n .md-typeset sub {\n margin-left: 0.1rem; }\n .md-typeset blockquote {\n padding-left: 1.2rem;\n border-left: 0.4rem solid rgba(0, 0, 0, 0.26);\n color: rgba(0, 0, 0, 0.54); }\n .md-typeset ul {\n list-style-type: disc; }\n .md-typeset ol ol {\n list-style-type: lower-alpha; }\n .md-typeset ol ol ol {\n list-style-type: lower-roman; }\n .md-typeset ul,\n .md-typeset ol {\n margin-left: 1.0rem;\n padding: 0; }\n .md-typeset ul li,\n .md-typeset ol li {\n margin-bottom: 0.5em;\n margin-left: 2.0rem; }\n .md-typeset ul li p,\n .md-typeset ul li blockquote,\n .md-typeset ol li p,\n .md-typeset ol li blockquote {\n margin: 0.5em 0; }\n .md-typeset ul li:last-child,\n .md-typeset ol li:last-child {\n margin-bottom: 0; }\n .md-typeset ul li ul,\n .md-typeset ul li ol,\n .md-typeset ol li ul,\n .md-typeset ol li ol {\n margin-bottom: 1.0rem;\n margin-left: 1.0rem;\n padding-top: 1.0rem; }\n\nhtml {\n height: 100%;\n font-size: 62.5%; }\n @media only screen and (min-width: 100em) {\n html {\n font-size: 68.75%; } }\n @media only screen and (min-width: 125em) {\n html {\n font-size: 75%; } }\n\nbody {\n position: relative;\n min-height: 100%; }\n body[data-md-locked] {\n height: 100%;\n overflow: hidden; }\n\nhr {\n display: block;\n height: 0.1rem;\n padding: 0;\n border: 0; }\n\n.md-grid {\n max-width: 120.0rem;\n margin-right: auto;\n margin-left: auto; }\n\n.md-container,\n.md-main {\n overflow: auto; }\n\n.md-main {\n margin-top: 5.6rem; }\n .md-main__inner {\n margin-top: 3rem;\n margin-bottom: 9.2rem;\n overflow: auto; }\n\n.md-toggle {\n display: none; }\n\n.md-overlay {\n position: fixed;\n top: 0;\n width: 0;\n height: 0;\n transition: width 0s 0.25s, height 0s 0.25s, opacity 0.25s;\n background: rgba(0, 0, 0, 0.54);\n opacity: 0;\n z-index: 2; }\n @media only screen and (max-width: 74.9375em) {\n .md-toggle--drawer:checked ~ .md-overlay {\n width: 100%;\n height: 100%;\n transition: width 0s, height 0s, opacity 0.25s;\n opacity: 1; } }\n\n.md-flex {\n display: table; }\n .md-flex__cell {\n display: table-cell;\n position: relative;\n vertical-align: top; }\n .md-flex__cell--shrink {\n width: 0%; }\n .md-flex__cell--stretch {\n display: table;\n width: 100%;\n table-layout: fixed; }\n .md-flex__ellipsis {\n display: table-cell;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden; }\n\n@media only screen and (min-width: 60em) {\n .md-content {\n margin-right: 24.2rem; } }\n\n@media only screen and (min-width: 75em) {\n .md-content {\n margin-left: 24.2rem; } }\n\n.md-content__inner {\n margin: 2.4rem 1.6rem; }\n @media only screen and (min-width: 75em) {\n .md-content__inner {\n margin: 2.4rem; } }\n\n.md-content__copyright {\n display: block; }\n\n.md-header {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n height: 5.6rem;\n background: #3f51b5;\n color: white;\n z-index: 1; }\n\n.md-header-nav {\n padding: 0.4rem; }\n .md-header-nav__icon {\n position: relative;\n transition: opacity 0.25s;\n z-index: 1; }\n .md-header-nav__icon:hover {\n opacity: 0.7; }\n .no-js .md-header-nav__icon--search {\n display: none; }\n @media only screen and (min-width: 60em) {\n .md-header-nav__icon--search {\n display: none; } }\n @media only screen and (max-width: 74.9375em) {\n .md-header-nav__icon--home {\n display: none; } }\n @media only screen and (min-width: 75em) {\n .md-header-nav__icon--menu {\n display: none; } }\n .md-header-nav__title {\n padding: 0 2.0rem;\n font-size: 1.8rem;\n line-height: 4.8rem; }\n .md-header-nav__source {\n display: none; }\n @media only screen and (min-width: 60em) {\n .md-header-nav__source {\n display: block;\n width: 23.0rem;\n max-width: 23.0rem;\n padding-right: 1.2rem; } }\n\n.md-footer {\n position: absolute;\n bottom: 0;\n width: 100%; }\n\n.md-footer-pagination {\n background: rgba(0, 0, 0, 0.87);\n color: white; }\n\n.md-footer-nav {\n padding: 0.4rem;\n overflow: auto; }\n .md-footer-nav__link {\n padding-top: 2.8rem;\n padding-bottom: 0.8rem;\n transition: opacity 0.25s; }\n @media only screen and (min-width: 30em) {\n .md-footer-nav__link {\n width: 50%; } }\n .md-footer-nav__link:hover {\n opacity: 0.7; }\n .md-footer-nav__link--prev {\n width: 25%;\n float: left; }\n @media only screen and (max-width: 29.9375em) {\n .md-footer-nav__link--prev .md-footer-nav__title {\n display: none; } }\n .md-footer-nav__link--next {\n width: 75%;\n float: right;\n text-align: right; }\n .md-footer-nav__icon {\n transition: background 0.25s; }\n .md-footer-nav__title {\n position: relative;\n padding: 0 0.4rem;\n font-size: 1.8rem;\n line-height: 4.8rem; }\n .md-footer-nav__direction {\n position: absolute;\n right: 0;\n left: 0;\n margin-top: -2.0rem;\n padding: 0 0.4rem;\n color: rgba(255, 255, 255, 0.7);\n font-size: 1.5rem; }\n\n.md-nav {\n font-size: 1.28rem;\n line-height: 1.3; }\n .md-nav--secondary {\n border-left: 0.4rem solid #3f51b5; }\n .md-nav__title {\n display: block;\n padding: 1.2rem 1.2rem 0;\n font-weight: 700;\n text-overflow: ellipsis;\n overflow: hidden; }\n .md-nav__title::before {\n display: none;\n content: \"arrow_back\"; }\n .md-nav__list {\n margin: 0;\n padding: 0;\n list-style: none; }\n .md-nav__item {\n padding: 0.625em 1.2rem 0; }\n .md-nav__item:last-child {\n padding-bottom: 1.2rem; }\n .md-nav__item .md-nav__item {\n padding-right: 0; }\n .md-nav__item .md-nav__item:last-child {\n padding-bottom: 0; }\n .md-nav__link {\n display: block;\n transition: color 0.125s;\n text-overflow: ellipsis;\n cursor: pointer;\n overflow: hidden; }\n .md-nav__item--nested > .md-nav__link::after {\n content: \"expand_more\"; }\n html .md-nav__link[for=\"toc\"] {\n display: none; }\n html .md-nav__link[for=\"toc\"] ~ .md-nav {\n display: none; }\n html .md-nav__link[for=\"toc\"] + .md-nav__link::after {\n display: none; }\n .md-nav__link[data-md-marked] {\n color: rgba(0, 0, 0, 0.54); }\n .md-nav__link:hover, .md-nav__link:active, .md-nav__link--active {\n color: #536dfe; }\n .md-nav__source {\n display: none; }\n @media only screen and (max-width: 74.9375em) {\n .md-nav--primary,\n .md-nav--primary .md-nav {\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n flex-direction: column;\n height: 100%;\n z-index: 1; }\n .md-nav--primary {\n background: white; }\n .md-nav--primary .md-nav__toggle ~ .md-nav {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4);\n left: 0.4rem;\n background: white; }\n html .md-nav--primary .md-nav__title {\n position: relative;\n padding: 0.4rem 1.6rem 0.4rem 5.6rem;\n background: rgba(0, 0, 0, 0.07);\n color: rgba(0, 0, 0, 0.54);\n font-size: 1.8rem;\n font-weight: 400;\n line-height: 4.8rem;\n white-space: nowrap;\n cursor: pointer; }\n html .md-nav--primary .md-nav__title::before {\n display: block;\n position: absolute;\n left: 0.4rem;\n width: 4.0rem;\n height: 4.0rem;\n color: rgba(0, 0, 0, 0.54); }\n html .md-nav--primary .md-nav__title ~ .md-nav__list > .md-nav__item:first-child {\n border-top: 0; }\n .md-nav--primary .md-nav__list {\n flex: 1;\n overflow-y: scroll; }\n .md-nav--primary .md-nav__item {\n padding: 0;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07); }\n .md-nav--primary .md-nav__item--nested > .md-nav__link {\n padding-right: 4.8rem; }\n .md-nav--primary .md-nav__link {\n position: relative;\n padding: 1.6rem; }\n .md-nav--primary .md-nav__link::after {\n position: absolute;\n top: 50%;\n right: 1.2rem;\n transform: translateY(-50%) rotate(-90deg);\n transition: inherit;\n color: rgba(0, 0, 0, 0.54);\n font-size: 2.4rem; }\n .md-nav--primary .md-nav__link:hover::after {\n color: #536dfe; }\n .md-nav--primary .md-nav--secondary .md-nav {\n position: static; }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav__link {\n padding-left: 2.8rem; }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav__link {\n padding-left: 4.0rem; }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav__link {\n padding-left: 5.2rem; }\n .md-nav--primary .md-nav--secondary .md-nav .md-nav .md-nav .md-nav .md-nav__link {\n padding-left: 6.4rem; }\n .md-nav__toggle ~ .md-nav {\n display: none; }\n .csstransforms3d .md-nav__toggle ~ .md-nav {\n display: block;\n transform: translateX(100%);\n transition: transform 0.25s cubic-bezier(0.8, 0, 0.6, 1), opacity 0.125s 0.05s;\n opacity: 0; }\n .md-nav__toggle:checked ~ .md-nav {\n display: block; }\n .csstransforms3d .md-nav__toggle:checked ~ .md-nav {\n transform: translateX(0);\n transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.125s 0.125s;\n opacity: 1; }\n .md-nav .md-nav__title,\n .md-nav .md-nav__item {\n font-size: 1.6rem;\n line-height: 1.4; } }\n @media only screen and (max-width: 59.9375em) {\n .md-nav--secondary {\n border-left: 0; }\n html .md-nav__link[for=\"toc\"] {\n display: block; }\n html .md-nav__link[for=\"toc\"]::after {\n transform: translateY(-50%);\n color: #536dfe;\n content: \"toc\"; }\n html .md-nav__link[for=\"toc\"] + .md-nav__link {\n display: none; }\n html .md-nav__link[for=\"toc\"] ~ .md-nav {\n display: flex; }\n .md-nav__source {\n display: block;\n padding: 0.4rem;\n background: rgba(0, 0, 0, 0.87);\n color: white; } }\n @media only screen and (min-width: 75em) {\n .md-nav.md-nav--transitioning {\n transition: max-height 0.25s cubic-bezier(0.86, 0, 0.07, 1); }\n .md-nav__toggle ~ .md-nav {\n max-height: 0;\n overflow: hidden; }\n .md-nav__toggle:checked ~ .md-nav, .md-nav.md-nav--toggled {\n max-height: 100%; }\n .md-nav__title + .md-nav__list .md-nav__title {\n display: none; }\n .md-nav__item--nested > .md-nav__link::after {\n display: inline-block;\n transform-origin: 0.45em 0.45em;\n transform-style: preserve-3d;\n vertical-align: -0.125em; }\n .js .md-nav__item--nested > .md-nav__link::after {\n transition: transform 0.4s; }\n .md-nav__item--nested .md-nav__toggle:checked ~ .md-nav__link::after {\n transform: rotateX(180deg); } }\n\n.no-js .md-search {\n display: none; }\n\n@media only screen and (min-width: 60em) {\n .md-search {\n padding: 0.4rem;\n padding-right: 3.2rem; } }\n\n.md-search__overlay {\n display: none;\n pointer-events: none; }\n @media only screen and (max-width: 59.9375em) {\n .md-search__overlay {\n display: block;\n position: absolute;\n top: 0.4rem;\n left: 0.4rem;\n width: 4.0rem;\n height: 4.0rem;\n transform-origin: center;\n transition: transform 0.3s 0.1s, opacity 0.2s 0.2s;\n border-radius: 2.0rem;\n background: #EEEEEE;\n opacity: 0;\n overflow: hidden;\n z-index: 1; }\n .md-toggle--search:checked ~ .md-header .md-search__overlay {\n transform: scale(40);\n transition: transform 0.4s, opacity 0.1s;\n opacity: 1; } }\n\n.md-search__inner {\n width: 100%; }\n @media only screen and (max-width: 59.9375em) {\n .md-search__inner {\n position: fixed;\n top: 0;\n left: 100%;\n height: 100%;\n transform: translateX(5%);\n transition: left 0s 0.3s, transform 0.15s 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s 0.15s;\n opacity: 0;\n z-index: 2; }\n .md-toggle--search:checked ~ .md-header .md-search__inner {\n left: 0;\n transform: translateX(0);\n transition: left 0s 0s, transform 0.15s 0.15s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.15s 0.15s;\n opacity: 1; } }\n @media only screen and (min-width: 60em) {\n .md-search__inner {\n position: relative; } }\n\n@media only screen and (min-width: 60em) {\n .md-search__form {\n width: 23.0rem;\n transition: width 0.25s cubic-bezier(0.1, 0.7, 0.1, 1);\n border-radius: 0.2rem; }\n [data-md-locked] .md-search__form {\n width: 66.8rem; } }\n\n.md-search__icon {\n position: absolute;\n top: 0.8rem;\n left: 1.2rem;\n transition: color 0.25s;\n font-size: 2.4rem;\n cursor: pointer; }\n .md-search__icon::before {\n content: \"search\"; }\n @media only screen and (max-width: 59.9375em) {\n .md-search__icon {\n top: 1.6rem;\n left: 1.6rem; }\n .md-search__icon::before {\n content: \"arrow_back\"; } }\n\n.md-search__input {\n padding: 0 1.6rem 0 7.2rem;\n text-overflow: ellipsis; }\n .md-search__input + .md-search__icon, .md-search__input::placeholder {\n color: rgba(0, 0, 0, 0.54); }\n @media only screen and (max-width: 59.9375em) {\n .md-search__input {\n width: 100%;\n height: 5.6rem;\n font-size: 1.8rem; } }\n @media only screen and (min-width: 60em) {\n .md-search__input {\n width: 100%;\n height: 4.0rem;\n padding-left: 4.8rem;\n transition: background-color 0.25s, color 0.25s;\n border-radius: 0.2rem;\n background: rgba(0, 0, 0, 0.26);\n color: white;\n font-size: 1.6rem; }\n .md-search__input + .md-search__icon, .md-search__input::placeholder {\n transition: color 0.25s;\n color: white; }\n .md-search__input:hover {\n background: rgba(255, 255, 255, 0.12); }\n [data-md-locked] .md-search__input {\n border-radius: 0.2rem 0.2rem 0 0;\n background: white;\n color: rgba(0, 0, 0, 0.87);\n text-overflow: none; }\n [data-md-locked] .md-search__input + .md-search__icon, [data-md-locked] .md-search__input::placeholder {\n color: rgba(0, 0, 0, 0.54); } }\n\n.md-sidebar {\n position: relative;\n width: 24.2rem;\n float: left;\n overflow: visible; }\n .md-sidebar[data-md-locked] {\n position: fixed;\n top: 5.6rem; }\n .md-sidebar--primary {\n backface-visibility: hidden; }\n @media only screen and (max-width: 74.9375em) {\n .md-sidebar--primary {\n position: fixed;\n top: 0;\n left: -24.2rem;\n width: 24.2rem;\n height: 100%;\n transform: translateX(0);\n transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;\n background: white;\n z-index: 2; }\n .no-csstransforms3d .md-sidebar--primary {\n display: none; }\n .md-toggle--drawer:checked ~ .md-container .md-sidebar--primary {\n box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.4);\n transform: translateX(24.2rem); }\n .no-csstransforms3d .md-toggle--drawer:checked ~ .md-container .md-sidebar--primary {\n display: block; }\n .md-sidebar--primary .md-sidebar__scrollwrap {\n overflow: hidden; } }\n .md-sidebar--secondary {\n display: none; }\n @media only screen and (min-width: 60em) {\n .md-sidebar--secondary {\n display: block;\n float: right; }\n .md-sidebar--secondary[data-md-locked] {\n margin-left: 100%;\n transform: translate(-100%, 0); } }\n @media only screen and (min-width: 60em) and (min-width: 75em) {\n .md-sidebar--secondary[data-md-locked] {\n margin-left: 120.0rem; } }\n .md-sidebar__scrollwrap {\n margin: 2.4rem 0.4rem;\n overflow-y: scroll; }\n @media only screen and (max-width: 74.9375em) {\n .md-sidebar--primary .md-sidebar__scrollwrap {\n margin: 0; } }\n .js .md-sidebar__scrollwrap {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0; }\n .md-sidebar__scrollwrap::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem; }\n .md-sidebar__scrollwrap::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.26); }\n .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {\n background-color: #536dfe; }\n @media only screen and (min-width: 75em) {\n .md-sidebar__inner {\n border-right: 0.1rem solid rgba(0, 0, 0, 0.07); } }\n\n.md-source {\n display: block;\n transition: opacity 0.25s;\n font-size: 1.3rem;\n line-height: 1.2;\n white-space: nowrap; }\n .md-source:hover {\n opacity: 0.7; }\n .md-source::before {\n display: inline-block;\n height: 4.8rem;\n content: \"\";\n vertical-align: middle; }\n .md-source--bitbucket::before, .md-source--github::before, .md-source--gitlab::before {\n width: 4.8rem;\n background-repeat: no-repeat;\n background-position: center;\n background-size: 2.4rem 2.4rem; }\n .md-source--bitbucket .md-source__repository, .md-source--github .md-source__repository, .md-source--gitlab .md-source__repository {\n margin-left: -4.4rem;\n padding-left: 4.0rem; }\n .md-source--bitbucket::before {\n background-image: url(\"../images/icons/bitbucket-white.svg\"); }\n .md-source--github::before {\n background-image: url(\"../images/icons/github-white.svg\"); }\n .md-source--gitlab::before {\n background-image: url(\"../images/icons/gitlab-white.svg\"); }\n .md-source__repository {\n display: inline-block;\n max-width: 100%;\n margin-left: 0.8rem;\n font-weight: 700;\n text-overflow: ellipsis;\n overflow: hidden;\n vertical-align: middle; }\n .md-source__facts {\n margin: 0;\n padding: 0;\n font-size: 1.1rem;\n font-weight: 700;\n opacity: 0.75;\n list-style-type: none; }\n .md-source__fact {\n float: left;\n transform: translateY(0%);\n transition: transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.25s;\n opacity: 1; }\n .md-source__fact--hidden {\n transform: translateY(100%);\n opacity: 0; }\n .md-source__fact::before {\n margin: 0 0.2rem;\n content: \"\\00B7\"; }\n .md-source__fact:first-child::before {\n display: none; }\n\n.admonition {\n margin: 2.0rem 0;\n padding: 0.8rem 1.2rem;\n border-left: 0.4rem solid #448aff;\n border-radius: 0 0.2rem 0.2rem 0;\n background: rgba(68, 138, 255, 0.05); }\n .admonition-title {\n color: #2979ff;\n font-size: 1.28rem;\n font-weight: 700;\n line-height: 2;\n text-transform: uppercase; }\n html .admonition-title {\n margin-bottom: 0; }\n html .admonition-title + * {\n margin-top: 0; }\n .admonition-title::before {\n margin-right: 0.45em;\n font-size: 2.0rem;\n content: \"edit\";\n vertical-align: -0.25em; }\n .admonition :first-child {\n margin-top: 0; }\n .admonition :last-child {\n margin-bottom: 0; }\n .admonition.tldr, .admonition.summary {\n border-color: #00b0ff;\n background: rgba(0, 176, 255, 0.05); }\n .admonition.tldr .admonition-title, .admonition.summary .admonition-title {\n color: #00b0ff; }\n .admonition.tldr .admonition-title::before, .admonition.summary .admonition-title::before {\n content: \"subject\"; }\n .admonition.idea, .admonition.tip {\n border-color: #00bfa5;\n background: rgba(0, 191, 165, 0.05); }\n .admonition.idea .admonition-title, .admonition.tip .admonition-title {\n color: #00bfa5; }\n .admonition.idea .admonition-title::before, .admonition.tip .admonition-title::before {\n content: \"whatshot\"; }\n .admonition.check, .admonition.done, .admonition.success {\n border-color: #00e676;\n background: rgba(0, 230, 118, 0.05); }\n .admonition.check .admonition-title, .admonition.done .admonition-title, .admonition.success .admonition-title {\n color: #00e676; }\n .admonition.check .admonition-title::before, .admonition.done .admonition-title::before, .admonition.success .admonition-title::before {\n content: \"done\"; }\n .admonition.attention, .admonition.important, .admonition.warning {\n border-color: #ff9100;\n background: rgba(255, 145, 0, 0.05); }\n .admonition.attention .admonition-title, .admonition.important .admonition-title, .admonition.warning .admonition-title {\n color: #ff9100; }\n .admonition.attention .admonition-title::before, .admonition.important .admonition-title::before, .admonition.warning .admonition-title::before {\n content: \"warning\"; }\n .admonition.fail, .admonition.missing, .admonition.failure {\n border-color: #ff5252;\n background: rgba(255, 82, 82, 0.05); }\n .admonition.fail .admonition-title, .admonition.missing .admonition-title, .admonition.failure .admonition-title {\n color: #ff5252; }\n .admonition.fail .admonition-title::before, .admonition.missing .admonition-title::before, .admonition.failure .admonition-title::before {\n content: \"clear\"; }\n .admonition.caution, .admonition.danger {\n border-color: #ff1744;\n background: rgba(255, 23, 68, 0.05); }\n .admonition.caution .admonition-title, .admonition.danger .admonition-title {\n color: #ff1744; }\n .admonition.caution .admonition-title::before, .admonition.danger .admonition-title::before {\n content: \"flash_on\"; }\n .admonition.bug, .admonition.error {\n border-color: #f50057;\n background: rgba(245, 0, 87, 0.05); }\n .admonition.bug .admonition-title, .admonition.error .admonition-title {\n color: #f50057; }\n .admonition.bug .admonition-title::before, .admonition.error .admonition-title::before {\n content: \"bug_report\"; }\n\n.codehilite .err,\n.code .err {\n color: #A61717; }\n\n.codehilite .o,\n.code .o {\n color: inherit; }\n\n.codehilite .ge,\n.code .ge {\n color: #000000; }\n\n.codehilite .gr,\n.code .gr {\n color: #AA0000; }\n\n.codehilite .gh,\n.code .gh {\n color: #999999; }\n\n.codehilite .go,\n.code .go {\n color: #888888; }\n\n.codehilite .gp,\n.code .gp {\n color: #555555; }\n\n.codehilite .gs,\n.code .gs {\n color: inherit; }\n\n.codehilite .gu,\n.code .gu {\n color: #AAAAAA; }\n\n.codehilite .gt,\n.code .gt {\n color: #AA0000; }\n\n.codehilite .k,\n.code .k {\n color: #3B78E7; }\n\n.codehilite .kc,\n.code .kc {\n color: #A71D5D; }\n\n.codehilite .kd,\n.code .kd {\n color: #3B78E7; }\n\n.codehilite .kn,\n.code .kn {\n color: #3B78E7; }\n\n.codehilite .kp,\n.code .kp {\n color: #A71D5D; }\n\n.codehilite .kr,\n.code .kr {\n color: #3E61A2; }\n\n.codehilite .kt,\n.code .kt {\n color: #3E61A2; }\n\n.codehilite .c,\n.code .c {\n color: #999999; }\n\n.codehilite .cm,\n.code .cm {\n color: #999999; }\n\n.codehilite .cp,\n.code .cp {\n color: #666666; }\n\n.codehilite .c1,\n.code .c1 {\n color: #999999; }\n\n.codehilite .cs,\n.code .cs {\n color: #999999; }\n\n.codehilite .na,\n.code .na {\n color: #C2185B; }\n\n.codehilite .nb,\n.code .nb {\n color: #C2185B; }\n\n.codehilite .bp,\n.code .bp {\n color: #3E61A2; }\n\n.codehilite .nc,\n.code .nc {\n color: #C2185B; }\n\n.codehilite .no,\n.code .no {\n color: #3E61A2; }\n\n.codehilite .nd,\n.code .nd {\n color: #666666; }\n\n.codehilite .ni,\n.code .ni {\n color: #666666; }\n\n.codehilite .ne,\n.code .ne {\n color: #C2185B; }\n\n.codehilite .nf,\n.code .nf {\n color: #C2185B; }\n\n.codehilite .nl,\n.code .nl {\n color: #3B5179; }\n\n.codehilite .nn,\n.code .nn {\n color: #EC407A; }\n\n.codehilite .nt,\n.code .nt {\n color: #3B78E7; }\n\n.codehilite .nv,\n.code .nv {\n color: #3E61A2; }\n\n.codehilite .vc,\n.code .vc {\n color: #3E61A2; }\n\n.codehilite .vg,\n.code .vg {\n color: #3E61A2; }\n\n.codehilite .vi,\n.code .vi {\n color: #3E61A2; }\n\n.codehilite .nx,\n.code .nx {\n color: #EC407A; }\n\n.codehilite .ow,\n.code .ow {\n color: inherit; }\n\n.codehilite .m,\n.code .m {\n color: #E74C3C; }\n\n.codehilite .mf,\n.code .mf {\n color: #E74C3C; }\n\n.codehilite .mh,\n.code .mh {\n color: #E74C3C; }\n\n.codehilite .mi,\n.code .mi {\n color: #E74C3C; }\n\n.codehilite .il,\n.code .il {\n color: #E74C3C; }\n\n.codehilite .mo,\n.code .mo {\n color: #E74C3C; }\n\n.codehilite .s,\n.code .s {\n color: #0D904F; }\n\n.codehilite .sb,\n.code .sb {\n color: #0D904F; }\n\n.codehilite .sc,\n.code .sc {\n color: #0D904F; }\n\n.codehilite .sd,\n.code .sd {\n color: #999999; }\n\n.codehilite .s2,\n.code .s2 {\n color: #0D904F; }\n\n.codehilite .se,\n.code .se {\n color: #183691; }\n\n.codehilite .sh,\n.code .sh {\n color: #183691; }\n\n.codehilite .si,\n.code .si {\n color: #183691; }\n\n.codehilite .sx,\n.code .sx {\n color: #183691; }\n\n.codehilite .sr,\n.code .sr {\n color: #009926; }\n\n.codehilite .s1,\n.code .s1 {\n color: #0D904F; }\n\n.codehilite .ss,\n.code .ss {\n color: #0D904F; }\n\n.codehilite .gd,\n.code .gd {\n background-color: #FFDDDD; }\n\n.codehilite .gi,\n.code .gi {\n background-color: #DDFFDD; }\n\n.codehilite .w,\n.code .w {\n color: transparent; }\n\n.footnote {\n color: rgba(0, 0, 0, 0.54);\n font-size: 80%; }\n .footnote ol {\n margin-left: 0; }\n .footnote li:hover .footnote-backref,\n .footnote li:target .footnote-backref {\n transform: translateX(0);\n opacity: 1; }\n .footnote li:hover .footnote-backref:hover,\n .footnote li:target .footnote-backref {\n color: #536dfe; }\n .footnote-ref::before {\n position: absolute;\n margin-top: -8rem;\n padding-top: 8rem;\n content: \"\";\n pointer-events: none; }\n .footnote-backref {\n position: absolute;\n transform: translateX(0.5rem);\n transition: transform 0.25s 0.125s, color 0.25s, opacity 0.125s 0.125s;\n color: rgba(0, 0, 0, 0.26);\n font-size: 2.0rem;\n opacity: 0;\n vertical-align: middle; }\n .footnote-backref::first-letter {\n font-size: 0; }\n .footnote-backref::after {\n content: \"keyboard_return\"; }\n\n.md-typeset .headerlink {\n display: inline-block;\n margin-left: 1.0rem;\n transform: translate(0, 0.5rem);\n transition: transform 0.25s 0.25s, color 0.25s, opacity 0.125s 0.25s;\n color: rgba(0, 0, 0, 0.26);\n opacity: 0; }\n\n.md-typeset [id]:hover .headerlink,\n.md-typeset [id]:target .headerlink,\n.md-typeset [id] .headerlink:focus {\n transform: translate(0, 0);\n opacity: 1; }\n\n.md-typeset [id]:hover .headerlink:hover,\n.md-typeset [id]:target .headerlink,\n.md-typeset [id] .headerlink:focus {\n color: #536dfe; }\n\n.md-typeset h1[id]::before {\n display: block;\n margin-top: -11rem;\n padding-top: 11rem;\n content: \"\"; }\n\n.md-typeset h2[id]::before {\n display: block;\n margin-top: -8.2rem;\n padding-top: 8.2rem;\n content: \"\"; }\n\n.md-typeset h3[id]::before {\n display: block;\n margin-top: -8.4rem;\n padding-top: 8.4rem;\n content: \"\"; }\n\n.md-typeset h4[id]::before {\n display: block;\n margin-top: -8.6rem;\n padding-top: 8.6rem;\n content: \"\"; }\n\n.md-typeset h5[id]::before {\n display: block;\n margin-top: -9rem;\n padding-top: 9rem;\n content: \"\"; }\n\n.md-typeset h6[id]::before {\n display: block;\n margin-top: -9rem;\n padding-top: 9rem;\n content: \"\"; }\n\n.md-search__output {\n overflow-y: auto;\n width: 100%;\n opacity: 0;\n transition: opacity .4s, max-height .4s;\n text-align: left;\n z-index: -1; }\n [data-md-locked] .md-search__output {\n opacity: 1; }\n\n@media only screen and (max-width: 59.9375em) {\n .md-search__output {\n position: absolute;\n top: 5.6rem;\n bottom: 0;\n background: linear-gradient(white 10%, rgba(255, 255, 255, 0)), linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.125) 20%, transparent 60%);\n background-repeat: no-repeat;\n background-color: white;\n background-size: 100% 20px, 100% 10px;\n background-attachment: local, scroll; }\n .md-search-result__link {\n padding: 0 1.6rem; }\n .md-search-result__meta {\n padding-left: 1.6rem;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07); } }\n\n@media only screen and (min-width: 60em) {\n .md-search__output {\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.4);\n background: white;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07);\n border-radius: 0 0 0.3rem 0.3rem;\n position: absolute;\n max-height: 0vh;\n background: linear-gradient(white 10%, rgba(255, 255, 255, 0)), linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2) 20%, transparent 60%);\n background-repeat: no-repeat;\n background-color: white;\n background-size: 100% 20px, 100% 5px;\n /* Opera doesn't support this in the shorthand */\n background-attachment: local, scroll; }\n [data-md-locked] .md-search__output {\n max-height: 75vh; }\n .md-search__output::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem; }\n .md-search__output::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.26); }\n .md-search__output::-webkit-scrollbar-thumb:hover {\n background-color: #536dfe; } }\n\n.md-search-result__meta {\n color: rgba(0, 0, 0, 0.54);\n padding-left: 4.8rem;\n padding-right: 1.6rem;\n line-height: 4.0rem;\n font-size: 1.28rem; }\n\n.md-search-result__list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07); }\n\n.md-search-result__link {\n overflow: auto;\n display: block;\n padding-left: 4.8rem;\n padding-right: 1.6rem;\n transition: background 0.25s; }\n .md-search-result__link:hover {\n background: rgba(83, 109, 254, 0.1); }\n\n.md-search-result__title {\n color: rgba(0, 0, 0, 0.87);\n font-size: 1.6rem;\n line-height: 1.4;\n margin-top: 0.5em; }\n\n.md-search-result__description {\n color: rgba(0, 0, 0, 0.54);\n font-size: 1.28rem;\n line-height: 1.4;\n margin: 0.5em 0; }\n\n@media only screen and (max-width: 44.9375em) {\n .md-search__suggest {\n position: relative;\n z-index: 2; } }\n\n.md-search-term {\n position: relative;\n padding: 0 0.8rem 0 4.8rem;\n line-height: 4.0rem;\n font-size: 1.6rem;\n transition: background .25s;\n cursor: pointer; }\n .md-search-term::before {\n position: absolute;\n content: \"access_time\";\n font-size: 2.4rem;\n line-height: 4.0rem;\n left: 1.2rem;\n color: rgba(0, 0, 0, 0.26); }\n .md-search-term:hover {\n background: #eceef8; }\n\n.checklist li {\n position: relative;\n list-style-type: none; }\n .checklist li::before {\n position: absolute;\n appearance: none;\n color: blue;\n content: \"check_box\";\n font-size: 2.4rem; }\n\n.checklist input[type=\"checkbox\"]:checked {\n width: 20px; }\n\nins.critic, del.critic, mark {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n word-break: break-word;\n box-decoration-break: clone;\n border-radius: 0.2rem; }\n\nins.critic {\n background: #DDFFDD;\n box-shadow: 0.4rem 0 0 #DDFFDD, -0.4rem 0 0 #DDFFDD;\n text-decoration: none; }\n\ndel.critic {\n background: #FFDDDD;\n box-shadow: 0.4rem 0 0 #FFDDDD, -0.4rem 0 0 #FFDDDD; }\n\nmark {\n background: #FFFF00;\n box-shadow: 0.4rem 0 0 #FFFF00, -0.4rem 0 0 #FFFF00;\n overflow: auto; }\n\n.critic.comment {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n border-radius: 0.2rem;\n background: #F0F0F0;\n color: #37474F;\n box-shadow: 0.4rem 0 0 #F0F0F0, -0.4rem 0 0 #F0F0F0;\n box-decoration-break: clone; }\n .critic.comment::before {\n color: rgba(0, 0, 0, 0.26);\n content: \"chat\";\n font-size: 1.6rem;\n padding-right: 0.2rem;\n vertical-align: -0.2rem; }\n\n.md-button {\n float: right;\n margin-top: 9px;\n font-size: 13px;\n padding-left: 2.6rem;\n font-weight: 700;\n text-transform: uppercase; }\n\n.task-list-item {\n list-style-type: none; }\n\n.task-list-item input {\n margin: 0 4px 0.25em -20px;\n vertical-align: middle; }\n\n.task-list-item {\n position: relative; }\n\n.task-list-item input[type=\"checkbox\"] {\n opacity: 0; }\n\n.task-list-item input[type=\"checkbox\"] + label {\n display: block;\n position: absolute;\n top: 50%;\n left: -24px;\n width: 16px;\n margin-top: -8px;\n height: 16px;\n border-radius: 2px;\n background: #CCC; }\n\n.task-list-item input[type=\"checkbox\"]:checked + label::before {\n display: block;\n margin-top: -4px;\n margin-left: 2px;\n font-size: 1.2em;\n line-height: 1;\n border-radius: 2px;\n content: \"✔\";\n color: #1EBB52; }\n\n.codehilite .hll {\n background: #FFFF00;\n display: block;\n margin: 0 -16px;\n padding: 0 16px; }\n\n.md-typeset sup {\n padding: 0 0.125em;\n border-radius: 0.2em; }\n .md-typeset sup[id]:target {\n background: orange; }\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Enfore correct box model - the prefixed versions are necessary for older\n// browsers, i.e. Chrome < 10, Firefox < 29, Safari < 6 and Android < 4\nhtml {\n box-sizing: border-box;\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n}\n\n// All elements shall inherit the document default\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n -moz-box-sizing: inherit;\n -webkit-box-sizing: inherit;\n}\n\n// Prevent adjustments of font size after orientation changes in IE and iOS\nhtml {\n text-size-adjust: none;\n}\n\n// Remove margin in all browsers\nbody {\n margin: 0;\n}\n\n// Add correct display property in IE < 9\narticle,\naside,\nfigcaption,\nfigure,\nfooter,\nheader,\nmain,\nnav,\nsection {\n display: block;\n}\n\n// Reset horizontal rules in FF\nhr {\n overflow: visible;\n box-sizing: content-box;\n}\n\n// Reset link styles\na {\n color: inherit;\n text-decoration: none;\n\n // Remove outline on focused or active links\n &:active,\n &:hover {\n outline-width: 0;\n }\n}\n\n// Remove gaps in links underline in iOS >= 8 and Safari >= 8\na {\n -webkit-text-decoration-skip: objects;\n}\n\n// Reset tap outlines on iOS and Android\na,\nbutton,\nlabel,\ninput {\n -webkit-tap-highlight-color: transparent;\n}\n\n// Correct font-size in all browsers\nsmall {\n font-size: 80%;\n}\n\n// Prevent subscript and superscript from affecting line-height\nsub,\nsup {\n position: relative;\n font-size: 80%;\n line-height: 0;\n vertical-align: baseline;\n}\n\n// Correct subscript offset\nsub {\n bottom: -0.25em;\n}\n\n// Correct superscript offset\nsup {\n top: -0.5em;\n}\n\nimg {\n border-style: none;\n}\n\n// Reset table styles\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n// Reset table cell styles\ntd,\nth {\n font-weight: normal;\n text-align: left;\n vertical-align: top;\n}\n\n// Reset (native) button styles\nbutton {\n padding: 0;\n border: 0;\n outline: 0;\n background: transparent;\n font-size: inherit;\n}\n\n// Reset (native) input styles\ninput {\n border: 0;\n outline: 0;\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Icon placeholders\n%md-icon {\n font-family: \"Material Icons\";\n font-style: normal;\n font-variant: normal;\n font-weight: normal;\n line-height: 1;\n text-transform: none;\n white-space: nowrap;\n speak: none;\n word-wrap: normal;\n direction: ltr;\n\n // Enable font-smoothing in Webkit and FF\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n\n // Icon rendered as button\n &__button {\n display: inline-block;\n margin: $md-icon-margin;\n padding: $md-icon-padding;\n font-size: $md-icon-size;\n cursor: pointer;\n }\n}\n\n// Representational classes\n.md-icon {\n @extend %md-icon;\n\n // Build representational classes\n @each $ligature, $name in (\n \"arrow_back\": \"back\",\n \"arrow_forward\": \"forward\"\n ) {\n &--#{$name}::before {\n content: $ligature;\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Variables: typography\n// ----------------------------------------------------------------------------\n\n// Modular typographic scale\n$ms-base: 1.6rem;\n$ms-ratio: $major-third;\n\n// ----------------------------------------------------------------------------\n// Variables: breakpoints\n// ----------------------------------------------------------------------------\n\n// Device-specific breakpoints\n$break-devices: (\n mobile: (\n portrait: px2em(220px) px2em(479px),\n landscape: px2em(480px) px2em(719px)\n ),\n tablet: (\n portrait: px2em(720px) px2em(959px),\n landscape: px2em(960px) px2em(1199px)\n ),\n screen: (\n small: px2em(1200px) px2em(1599px),\n medium: px2em(1600px) px2em(1999px),\n large: px2em(2000px)\n )\n);\n\n// ----------------------------------------------------------------------------\n// Variables: base colors\n// ----------------------------------------------------------------------------\n\n// Primary and accent colors\n$md-color-primary: $clr-indigo-500;\n$md-color-accent: $clr-indigo-a200;\n\n// Shades of black\n$md-color-black: hsla(0, 0%, 0%, 0.87);\n$md-color-black--light: hsla(0, 0%, 0%, 0.54);\n$md-color-black--lighter: hsla(0, 0%, 0%, 0.26);\n$md-color-black--lightest: hsla(0, 0%, 0%, 0.07);\n\n// Shades of white\n$md-color-white: hsla(0, 0%, 100%, 1.00);\n$md-color-white--light: hsla(0, 0%, 100%, 0.70);\n$md-color-white--lighter: hsla(0, 0%, 100%, 0.30);\n$md-color-white--lightest: hsla(0, 0%, 100%, 0.12);\n\n// ----------------------------------------------------------------------------\n// Variables: sizing and spacing\n// ----------------------------------------------------------------------------\n\n// Icons\n$md-icon-size: $ms-base * 1.5;\n$md-icon-padding: $ms-base * 0.5;\n$md-icon-margin: $ms-base * 0.25;\n\n// Code blocks\n$md-code-background: hsla(0, 0%, 0%, 0.035);\n$md-code-color: #37474F;\n\n// Keystrokes\n$md-keyboard-background: #FCFCFC;\n$md-keyboard-color: #555555;\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules: font definitions\n// ----------------------------------------------------------------------------\n\n// Default fonts\nbody,\ninput {\n color: $md-color-black;\n font-family: \"Roboto\", Helvetica, Arial, sans-serif;\n font-weight: 400;\n font-feature-settings: \"kern\", \"onum\", \"liga\";\n\n // Enable font-smoothing in Webkit and FF\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n\n // Use system fonts, if browser doesn't support webfonts\n .no-fontface & {\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n }\n}\n\n// Proportionally spaced fonts\npre,\ncode,\nkbd {\n color: $md-color-black;\n font-family: \"Roboto Mono\", \"Courier New\", Courier, monospace;\n font-weight: 400;\n font-feature-settings: \"kern\", \"onum\", \"liga\";\n\n // Use system fonts, if browser doesn't support webfonts\n .no-fontface & {\n font-family: \"Courier New\", Courier, monospace;\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: typesetted content\n// ----------------------------------------------------------------------------\n\n// Content that is typeset\n.md-typeset {\n font-size: ms(0);\n line-height: 1.6;\n\n // Default spacing\n p,\n ul,\n ol,\n blockquote {\n margin: 1.0em 0;\n }\n\n // 1st level headline\n h1 {\n margin: 0 0 4.0rem;\n color: $md-color-black--light;\n font-size: ms(3);\n font-weight: 300;\n letter-spacing: -0.01em;\n line-height: 1.3;\n }\n\n // 2nd level headline\n h2 {\n margin: 4.0rem 0 1.6rem;\n font-size: ms(2);\n font-weight: 300;\n letter-spacing: -0.01em;\n line-height: 1.4;\n }\n\n // 3rd level headline\n h3 {\n margin: 3.2rem 0 1.6rem;\n font-size: ms(1);\n font-weight: 400;\n letter-spacing: -0.01em;\n line-height: 1.5;\n }\n\n // 3rd level headline following an 2nd level headline\n h2 + h3 {\n margin-top: 1.6rem;\n }\n\n // 4th level headline\n h4 {\n margin: 1.6rem 0;\n font-size: ms(0);\n font-weight: 700;\n letter-spacing: -0.01em;\n }\n\n // 5th and 6th level headline\n h5,\n h6 {\n margin: 1.6rem 0;\n color: $md-color-black--light;\n font-size: ms(-1);\n font-weight: 700;\n letter-spacing: -0.01em;\n }\n\n // Overrides for 5th level headline\n h5 {\n text-transform: uppercase;\n }\n\n // Horizontal separators\n hr {\n margin: 2.4rem 0;\n border-bottom: 0.1rem dotted $md-color-black--lighter;\n }\n\n // Links\n a {\n color: $md-color-primary;\n\n // Also enable transition on pseudo elements\n &,\n &::before {\n transition: color 0.125s;\n }\n\n // Active links\n &:hover,\n &:active {\n color: $md-color-accent;\n }\n }\n\n // Inline code blocks\n code {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n border-radius: 0.2rem;\n background: $md-code-background;\n color: $md-code-color;\n font-size: 85%;\n box-shadow:\n 0.4rem 0 0 $md-code-background,\n -0.4rem 0 0 $md-code-background;\n word-break: break-word;\n box-decoration-break: clone;\n }\n\n // Disable containing block inside headlines\n h1 code,\n h2 code,\n h3 code,\n h4 code,\n h5 code,\n h6 code {\n margin: 0;\n background: transparent;\n box-shadow: none;\n }\n\n // Formatted code blocks\n pre {\n margin: 1.0em 0;\n padding: 1.0rem 1.2rem;\n border-radius: 0.2rem;\n background: $md-code-background;\n color: $md-code-color;\n font-size: 85%;\n line-height: 1.4;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n\n // Reset, if pre is inside code\n > code {\n font-size: inherit;\n }\n }\n\n // Full-width container\n > div > pre,\n > pre > code {\n\n // [mobile -]: Stretch to whole width\n @include break-to-device(mobile) {\n margin: 1.0em -1.6rem;\n padding: 1.0rem 1.6rem;\n border-radius: 0;\n }\n\n // Override native scrollbar styles\n &::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem;\n\n // Style scrollbar thumb\n &-thumb {\n background: $md-color-black--lighter;\n }\n }\n }\n\n // Keystrokes\n kbd {\n display: inline-block;\n padding: 0.4rem 0.5rem 0.5rem;\n border: 0.1rem solid darken($md-keyboard-background, 20%);\n border-radius: 0.2rem;\n border-bottom-color: darken($md-keyboard-background, 25%);\n background-color: $md-keyboard-background;\n color: $md-keyboard-color;\n font-size: 85%;\n line-height: 1.0rem;\n box-shadow: 0 -0.1rem 0\n darken($md-keyboard-background, 30%) inset;\n vertical-align: 0.1rem;\n word-break: break-word;\n }\n\n // Smaller text\n small {\n opacity: 0.75;\n }\n\n // Superscript and subscript\n sup,\n sub {\n margin-left: 0.1rem;\n }\n\n // Blockquotes, possibly nested\n blockquote {\n padding-left: 1.2rem;\n border-left: 0.4rem solid $md-color-black--lighter;\n color: $md-color-black--light;\n }\n\n // Unordered lists\n ul {\n list-style-type: disc;\n }\n\n // Ordered lists\n ol ol {\n list-style-type: lower-alpha;\n\n // Triply nested ordered list\n ol {\n list-style-type: lower-roman;\n }\n }\n\n // Unordered and ordered lists\n ul,\n ol {\n margin-left: 1.0rem;\n padding: 0;\n\n // List elements\n li {\n margin-bottom: 0.5em;\n margin-left: 2.0rem;\n\n // Decrease vertical spacing\n p,\n blockquote {\n margin: 0.5em 0;\n }\n\n // Remove margin on last element\n &:last-child {\n margin-bottom: 0;\n }\n\n // Nested lists\n ul,\n ol {\n margin-bottom: 1.0rem;\n margin-left: 1.0rem;\n padding-top: 1.0rem;\n }\n }\n }\n}\n","@function ms-calc($Value, $Base: $ms-base, $Ratio: $ms-ratio) {\n \n // If pow exists use it.\n // It supports non-interger values!\n @if $MS-pow-exists {\n\n // The formula for figuring out modular scales is:\n // (r^v)*b\n @return pow($Ratio, $Value) * $Base;\n }\n\n // If not, use ms-pow().\n // Not as fast or capable of non-integer exponents.\n @else {\n @return ms-pow($Ratio, $Value) * $Base;\n }\n}","// ==========================================================================\n//\n// Name: UI Color Palette\n// Description: The color palette of material design.\n// Version: 2.3.1\n//\n// Author: Denis Malinochkin\n// Git: https://github.com/mrmlnc/material-color\n//\n// twitter: @mrmlnc\n//\n// ==========================================================================\n\n\n//\n// List of base colors\n//\n\n// $clr-red\n// $clr-pink\n// $clr-purple\n// $clr-deep-purple\n// $clr-indigo\n// $clr-blue\n// $clr-light-blue\n// $clr-cyan\n// $clr-teal\n// $clr-green\n// $clr-light-green\n// $clr-lime\n// $clr-yellow\n// $clr-amber\n// $clr-orange\n// $clr-deep-orange\n// $clr-brown\n// $clr-grey\n// $clr-blue-grey\n// $clr-black\n// $clr-white\n\n\n//\n// Red\n//\n\n$clr-red-list: (\n \"base\": #f44336,\n \"50\": #ffebee,\n \"100\": #ffcdd2,\n \"200\": #ef9a9a,\n \"300\": #e57373,\n \"400\": #ef5350,\n \"500\": #f44336,\n \"600\": #e53935,\n \"700\": #d32f2f,\n \"800\": #c62828,\n \"900\": #b71c1c,\n \"a100\": #ff8a80,\n \"a200\": #ff5252,\n \"a400\": #ff1744,\n \"a700\": #d50000\n);\n\n$clr-red: map-get($clr-red-list, \"base\");\n\n$clr-red-50: map-get($clr-red-list, \"50\");\n$clr-red-100: map-get($clr-red-list, \"100\");\n$clr-red-200: map-get($clr-red-list, \"200\");\n$clr-red-300: map-get($clr-red-list, \"300\");\n$clr-red-400: map-get($clr-red-list, \"400\");\n$clr-red-500: map-get($clr-red-list, \"500\");\n$clr-red-600: map-get($clr-red-list, \"600\");\n$clr-red-700: map-get($clr-red-list, \"700\");\n$clr-red-800: map-get($clr-red-list, \"800\");\n$clr-red-900: map-get($clr-red-list, \"900\");\n$clr-red-a100: map-get($clr-red-list, \"a100\");\n$clr-red-a200: map-get($clr-red-list, \"a200\");\n$clr-red-a400: map-get($clr-red-list, \"a400\");\n$clr-red-a700: map-get($clr-red-list, \"a700\");\n\n\n//\n// Pink\n//\n\n$clr-pink-list: (\n \"base\": #e91e63,\n \"50\": #fce4ec,\n \"100\": #f8bbd0,\n \"200\": #f48fb1,\n \"300\": #f06292,\n \"400\": #ec407a,\n \"500\": #e91e63,\n \"600\": #d81b60,\n \"700\": #c2185b,\n \"800\": #ad1457,\n \"900\": #880e4f,\n \"a100\": #ff80ab,\n \"a200\": #ff4081,\n \"a400\": #f50057,\n \"a700\": #c51162\n);\n\n$clr-pink: map-get($clr-pink-list, \"base\");\n\n$clr-pink-50: map-get($clr-pink-list, \"50\");\n$clr-pink-100: map-get($clr-pink-list, \"100\");\n$clr-pink-200: map-get($clr-pink-list, \"200\");\n$clr-pink-300: map-get($clr-pink-list, \"300\");\n$clr-pink-400: map-get($clr-pink-list, \"400\");\n$clr-pink-500: map-get($clr-pink-list, \"500\");\n$clr-pink-600: map-get($clr-pink-list, \"600\");\n$clr-pink-700: map-get($clr-pink-list, \"700\");\n$clr-pink-800: map-get($clr-pink-list, \"800\");\n$clr-pink-900: map-get($clr-pink-list, \"900\");\n$clr-pink-a100: map-get($clr-pink-list, \"a100\");\n$clr-pink-a200: map-get($clr-pink-list, \"a200\");\n$clr-pink-a400: map-get($clr-pink-list, \"a400\");\n$clr-pink-a700: map-get($clr-pink-list, \"a700\");\n\n\n//\n// Purple\n//\n\n$clr-purple-list: (\n \"base\": #9c27b0,\n \"50\": #f3e5f5,\n \"100\": #e1bee7,\n \"200\": #ce93d8,\n \"300\": #ba68c8,\n \"400\": #ab47bc,\n \"500\": #9c27b0,\n \"600\": #8e24aa,\n \"700\": #7b1fa2,\n \"800\": #6a1b9a,\n \"900\": #4a148c,\n \"a100\": #ea80fc,\n \"a200\": #e040fb,\n \"a400\": #d500f9,\n \"a700\": #aa00ff\n);\n\n$clr-purple: map-get($clr-purple-list, \"base\");\n\n$clr-purple-50: map-get($clr-purple-list, \"50\");\n$clr-purple-100: map-get($clr-purple-list, \"100\");\n$clr-purple-200: map-get($clr-purple-list, \"200\");\n$clr-purple-300: map-get($clr-purple-list, \"300\");\n$clr-purple-400: map-get($clr-purple-list, \"400\");\n$clr-purple-500: map-get($clr-purple-list, \"500\");\n$clr-purple-600: map-get($clr-purple-list, \"600\");\n$clr-purple-700: map-get($clr-purple-list, \"700\");\n$clr-purple-800: map-get($clr-purple-list, \"800\");\n$clr-purple-900: map-get($clr-purple-list, \"900\");\n$clr-purple-a100: map-get($clr-purple-list, \"a100\");\n$clr-purple-a200: map-get($clr-purple-list, \"a200\");\n$clr-purple-a400: map-get($clr-purple-list, \"a400\");\n$clr-purple-a700: map-get($clr-purple-list, \"a700\");\n\n\n//\n// Deep purple\n//\n\n$clr-deep-purple-list: (\n \"base\": #673ab7,\n \"50\": #ede7f6,\n \"100\": #d1c4e9,\n \"200\": #b39ddb,\n \"300\": #9575cd,\n \"400\": #7e57c2,\n \"500\": #673ab7,\n \"600\": #5e35b1,\n \"700\": #512da8,\n \"800\": #4527a0,\n \"900\": #311b92,\n \"a100\": #b388ff,\n \"a200\": #7c4dff,\n \"a400\": #651fff,\n \"a700\": #6200ea\n);\n\n$clr-deep-purple: map-get($clr-deep-purple-list, \"base\");\n\n$clr-deep-purple-50: map-get($clr-deep-purple-list, \"50\");\n$clr-deep-purple-100: map-get($clr-deep-purple-list, \"100\");\n$clr-deep-purple-200: map-get($clr-deep-purple-list, \"200\");\n$clr-deep-purple-300: map-get($clr-deep-purple-list, \"300\");\n$clr-deep-purple-400: map-get($clr-deep-purple-list, \"400\");\n$clr-deep-purple-500: map-get($clr-deep-purple-list, \"500\");\n$clr-deep-purple-600: map-get($clr-deep-purple-list, \"600\");\n$clr-deep-purple-700: map-get($clr-deep-purple-list, \"700\");\n$clr-deep-purple-800: map-get($clr-deep-purple-list, \"800\");\n$clr-deep-purple-900: map-get($clr-deep-purple-list, \"900\");\n$clr-deep-purple-a100: map-get($clr-deep-purple-list, \"a100\");\n$clr-deep-purple-a200: map-get($clr-deep-purple-list, \"a200\");\n$clr-deep-purple-a400: map-get($clr-deep-purple-list, \"a400\");\n$clr-deep-purple-a700: map-get($clr-deep-purple-list, \"a700\");\n\n\n//\n// Indigo\n//\n\n$clr-indigo-list: (\n \"base\": #3f51b5,\n \"50\": #e8eaf6,\n \"100\": #c5cae9,\n \"200\": #9fa8da,\n \"300\": #7986cb,\n \"400\": #5c6bc0,\n \"500\": #3f51b5,\n \"600\": #3949ab,\n \"700\": #303f9f,\n \"800\": #283593,\n \"900\": #1a237e,\n \"a100\": #8c9eff,\n \"a200\": #536dfe,\n \"a400\": #3d5afe,\n \"a700\": #304ffe\n);\n\n$clr-indigo: map-get($clr-indigo-list, \"base\");\n\n$clr-indigo-50: map-get($clr-indigo-list, \"50\");\n$clr-indigo-100: map-get($clr-indigo-list, \"100\");\n$clr-indigo-200: map-get($clr-indigo-list, \"200\");\n$clr-indigo-300: map-get($clr-indigo-list, \"300\");\n$clr-indigo-400: map-get($clr-indigo-list, \"400\");\n$clr-indigo-500: map-get($clr-indigo-list, \"500\");\n$clr-indigo-600: map-get($clr-indigo-list, \"600\");\n$clr-indigo-700: map-get($clr-indigo-list, \"700\");\n$clr-indigo-800: map-get($clr-indigo-list, \"800\");\n$clr-indigo-900: map-get($clr-indigo-list, \"900\");\n$clr-indigo-a100: map-get($clr-indigo-list, \"a100\");\n$clr-indigo-a200: map-get($clr-indigo-list, \"a200\");\n$clr-indigo-a400: map-get($clr-indigo-list, \"a400\");\n$clr-indigo-a700: map-get($clr-indigo-list, \"a700\");\n\n\n//\n// Blue\n//\n\n$clr-blue-list: (\n \"base\": #2196f3,\n \"50\": #e3f2fd,\n \"100\": #bbdefb,\n \"200\": #90caf9,\n \"300\": #64b5f6,\n \"400\": #42a5f5,\n \"500\": #2196f3,\n \"600\": #1e88e5,\n \"700\": #1976d2,\n \"800\": #1565c0,\n \"900\": #0d47a1,\n \"a100\": #82b1ff,\n \"a200\": #448aff,\n \"a400\": #2979ff,\n \"a700\": #2962ff\n);\n\n$clr-blue: map-get($clr-blue-list, \"base\");\n\n$clr-blue-50: map-get($clr-blue-list, \"50\");\n$clr-blue-100: map-get($clr-blue-list, \"100\");\n$clr-blue-200: map-get($clr-blue-list, \"200\");\n$clr-blue-300: map-get($clr-blue-list, \"300\");\n$clr-blue-400: map-get($clr-blue-list, \"400\");\n$clr-blue-500: map-get($clr-blue-list, \"500\");\n$clr-blue-600: map-get($clr-blue-list, \"600\");\n$clr-blue-700: map-get($clr-blue-list, \"700\");\n$clr-blue-800: map-get($clr-blue-list, \"800\");\n$clr-blue-900: map-get($clr-blue-list, \"900\");\n$clr-blue-a100: map-get($clr-blue-list, \"a100\");\n$clr-blue-a200: map-get($clr-blue-list, \"a200\");\n$clr-blue-a400: map-get($clr-blue-list, \"a400\");\n$clr-blue-a700: map-get($clr-blue-list, \"a700\");\n\n\n//\n// Light Blue\n//\n\n$clr-light-blue-list: (\n \"base\": #03a9f4,\n \"50\": #e1f5fe,\n \"100\": #b3e5fc,\n \"200\": #81d4fa,\n \"300\": #4fc3f7,\n \"400\": #29b6f6,\n \"500\": #03a9f4,\n \"600\": #039be5,\n \"700\": #0288d1,\n \"800\": #0277bd,\n \"900\": #01579b,\n \"a100\": #80d8ff,\n \"a200\": #40c4ff,\n \"a400\": #00b0ff,\n \"a700\": #0091ea\n);\n\n$clr-light-blue: map-get($clr-light-blue-list, \"base\");\n\n$clr-light-blue-50: map-get($clr-light-blue-list, \"50\");\n$clr-light-blue-100: map-get($clr-light-blue-list, \"100\");\n$clr-light-blue-200: map-get($clr-light-blue-list, \"200\");\n$clr-light-blue-300: map-get($clr-light-blue-list, \"300\");\n$clr-light-blue-400: map-get($clr-light-blue-list, \"400\");\n$clr-light-blue-500: map-get($clr-light-blue-list, \"500\");\n$clr-light-blue-600: map-get($clr-light-blue-list, \"600\");\n$clr-light-blue-700: map-get($clr-light-blue-list, \"700\");\n$clr-light-blue-800: map-get($clr-light-blue-list, \"800\");\n$clr-light-blue-900: map-get($clr-light-blue-list, \"900\");\n$clr-light-blue-a100: map-get($clr-light-blue-list, \"a100\");\n$clr-light-blue-a200: map-get($clr-light-blue-list, \"a200\");\n$clr-light-blue-a400: map-get($clr-light-blue-list, \"a400\");\n$clr-light-blue-a700: map-get($clr-light-blue-list, \"a700\");\n\n\n//\n// Cyan\n//\n\n$clr-cyan-list: (\n \"base\": #00bcd4,\n \"50\": #e0f7fa,\n \"100\": #b2ebf2,\n \"200\": #80deea,\n \"300\": #4dd0e1,\n \"400\": #26c6da,\n \"500\": #00bcd4,\n \"600\": #00acc1,\n \"700\": #0097a7,\n \"800\": #00838f,\n \"900\": #006064,\n \"a100\": #84ffff,\n \"a200\": #18ffff,\n \"a400\": #00e5ff,\n \"a700\": #00b8d4\n);\n\n$clr-cyan: map-get($clr-cyan-list, \"base\");\n\n$clr-cyan-50: map-get($clr-cyan-list, \"50\");\n$clr-cyan-100: map-get($clr-cyan-list, \"100\");\n$clr-cyan-200: map-get($clr-cyan-list, \"200\");\n$clr-cyan-300: map-get($clr-cyan-list, \"300\");\n$clr-cyan-400: map-get($clr-cyan-list, \"400\");\n$clr-cyan-500: map-get($clr-cyan-list, \"500\");\n$clr-cyan-600: map-get($clr-cyan-list, \"600\");\n$clr-cyan-700: map-get($clr-cyan-list, \"700\");\n$clr-cyan-800: map-get($clr-cyan-list, \"800\");\n$clr-cyan-900: map-get($clr-cyan-list, \"900\");\n$clr-cyan-a100: map-get($clr-cyan-list, \"a100\");\n$clr-cyan-a200: map-get($clr-cyan-list, \"a200\");\n$clr-cyan-a400: map-get($clr-cyan-list, \"a400\");\n$clr-cyan-a700: map-get($clr-cyan-list, \"a700\");\n\n\n//\n// Teal\n//\n\n$clr-teal-list: (\n \"base\": #009688,\n \"50\": #e0f2f1,\n \"100\": #b2dfdb,\n \"200\": #80cbc4,\n \"300\": #4db6ac,\n \"400\": #26a69a,\n \"500\": #009688,\n \"600\": #00897b,\n \"700\": #00796b,\n \"800\": #00695c,\n \"900\": #004d40,\n \"a100\": #a7ffeb,\n \"a200\": #64ffda,\n \"a400\": #1de9b6,\n \"a700\": #00bfa5\n);\n\n$clr-teal: map-get($clr-teal-list, \"base\");\n\n$clr-teal-50: map-get($clr-teal-list, \"50\");\n$clr-teal-100: map-get($clr-teal-list, \"100\");\n$clr-teal-200: map-get($clr-teal-list, \"200\");\n$clr-teal-300: map-get($clr-teal-list, \"300\");\n$clr-teal-400: map-get($clr-teal-list, \"400\");\n$clr-teal-500: map-get($clr-teal-list, \"500\");\n$clr-teal-600: map-get($clr-teal-list, \"600\");\n$clr-teal-700: map-get($clr-teal-list, \"700\");\n$clr-teal-800: map-get($clr-teal-list, \"800\");\n$clr-teal-900: map-get($clr-teal-list, \"900\");\n$clr-teal-a100: map-get($clr-teal-list, \"a100\");\n$clr-teal-a200: map-get($clr-teal-list, \"a200\");\n$clr-teal-a400: map-get($clr-teal-list, \"a400\");\n$clr-teal-a700: map-get($clr-teal-list, \"a700\");\n\n\n//\n// Green\n//\n\n$clr-green-list: (\n \"base\": #4caf50,\n \"50\": #e8f5e9,\n \"100\": #c8e6c9,\n \"200\": #a5d6a7,\n \"300\": #81c784,\n \"400\": #66bb6a,\n \"500\": #4caf50,\n \"600\": #43a047,\n \"700\": #388e3c,\n \"800\": #2e7d32,\n \"900\": #1b5e20,\n \"a100\": #b9f6ca,\n \"a200\": #69f0ae,\n \"a400\": #00e676,\n \"a700\": #00c853\n);\n\n$clr-green: map-get($clr-green-list, \"base\");\n\n$clr-green-50: map-get($clr-green-list, \"50\");\n$clr-green-100: map-get($clr-green-list, \"100\");\n$clr-green-200: map-get($clr-green-list, \"200\");\n$clr-green-300: map-get($clr-green-list, \"300\");\n$clr-green-400: map-get($clr-green-list, \"400\");\n$clr-green-500: map-get($clr-green-list, \"500\");\n$clr-green-600: map-get($clr-green-list, \"600\");\n$clr-green-700: map-get($clr-green-list, \"700\");\n$clr-green-800: map-get($clr-green-list, \"800\");\n$clr-green-900: map-get($clr-green-list, \"900\");\n$clr-green-a100: map-get($clr-green-list, \"a100\");\n$clr-green-a200: map-get($clr-green-list, \"a200\");\n$clr-green-a400: map-get($clr-green-list, \"a400\");\n$clr-green-a700: map-get($clr-green-list, \"a700\");\n\n\n//\n// Light green\n//\n\n$clr-light-green-list: (\n \"base\": #8bc34a,\n \"50\": #f1f8e9,\n \"100\": #dcedc8,\n \"200\": #c5e1a5,\n \"300\": #aed581,\n \"400\": #9ccc65,\n \"500\": #8bc34a,\n \"600\": #7cb342,\n \"700\": #689f38,\n \"800\": #558b2f,\n \"900\": #33691e,\n \"a100\": #ccff90,\n \"a200\": #b2ff59,\n \"a400\": #76ff03,\n \"a700\": #64dd17\n);\n\n$clr-light-green: map-get($clr-light-green-list, \"base\");\n\n$clr-light-green-50: map-get($clr-light-green-list, \"50\");\n$clr-light-green-100: map-get($clr-light-green-list, \"100\");\n$clr-light-green-200: map-get($clr-light-green-list, \"200\");\n$clr-light-green-300: map-get($clr-light-green-list, \"300\");\n$clr-light-green-400: map-get($clr-light-green-list, \"400\");\n$clr-light-green-500: map-get($clr-light-green-list, \"500\");\n$clr-light-green-600: map-get($clr-light-green-list, \"600\");\n$clr-light-green-700: map-get($clr-light-green-list, \"700\");\n$clr-light-green-800: map-get($clr-light-green-list, \"800\");\n$clr-light-green-900: map-get($clr-light-green-list, \"900\");\n$clr-light-green-a100: map-get($clr-light-green-list, \"a100\");\n$clr-light-green-a200: map-get($clr-light-green-list, \"a200\");\n$clr-light-green-a400: map-get($clr-light-green-list, \"a400\");\n$clr-light-green-a700: map-get($clr-light-green-list, \"a700\");\n\n\n//\n// Lime\n//\n\n$clr-lime-list: (\n \"base\": #cddc39,\n \"50\": #f9fbe7,\n \"100\": #f0f4c3,\n \"200\": #e6ee9c,\n \"300\": #dce775,\n \"400\": #d4e157,\n \"500\": #cddc39,\n \"600\": #c0ca33,\n \"700\": #afb42b,\n \"800\": #9e9d24,\n \"900\": #827717,\n \"a100\": #f4ff81,\n \"a200\": #eeff41,\n \"a400\": #c6ff00,\n \"a700\": #aeea00\n);\n\n$clr-lime: map-get($clr-lime-list, \"base\");\n\n$clr-lime-50: map-get($clr-lime-list, \"50\");\n$clr-lime-100: map-get($clr-lime-list, \"100\");\n$clr-lime-200: map-get($clr-lime-list, \"200\");\n$clr-lime-300: map-get($clr-lime-list, \"300\");\n$clr-lime-400: map-get($clr-lime-list, \"400\");\n$clr-lime-500: map-get($clr-lime-list, \"500\");\n$clr-lime-600: map-get($clr-lime-list, \"600\");\n$clr-lime-700: map-get($clr-lime-list, \"700\");\n$clr-lime-800: map-get($clr-lime-list, \"800\");\n$clr-lime-900: map-get($clr-lime-list, \"900\");\n$clr-lime-a100: map-get($clr-lime-list, \"a100\");\n$clr-lime-a200: map-get($clr-lime-list, \"a200\");\n$clr-lime-a400: map-get($clr-lime-list, \"a400\");\n$clr-lime-a700: map-get($clr-lime-list, \"a700\");\n\n\n//\n// Yellow\n//\n\n$clr-yellow-list: (\n \"base\": #ffeb3b,\n \"50\": #fffde7,\n \"100\": #fff9c4,\n \"200\": #fff59d,\n \"300\": #fff176,\n \"400\": #ffee58,\n \"500\": #ffeb3b,\n \"600\": #fdd835,\n \"700\": #fbc02d,\n \"800\": #f9a825,\n \"900\": #f57f17,\n \"a100\": #ffff8d,\n \"a200\": #ffff00,\n \"a400\": #ffea00,\n \"a700\": #ffd600\n);\n\n$clr-yellow: map-get($clr-yellow-list, \"base\");\n\n$clr-yellow-50: map-get($clr-yellow-list, \"50\");\n$clr-yellow-100: map-get($clr-yellow-list, \"100\");\n$clr-yellow-200: map-get($clr-yellow-list, \"200\");\n$clr-yellow-300: map-get($clr-yellow-list, \"300\");\n$clr-yellow-400: map-get($clr-yellow-list, \"400\");\n$clr-yellow-500: map-get($clr-yellow-list, \"500\");\n$clr-yellow-600: map-get($clr-yellow-list, \"600\");\n$clr-yellow-700: map-get($clr-yellow-list, \"700\");\n$clr-yellow-800: map-get($clr-yellow-list, \"800\");\n$clr-yellow-900: map-get($clr-yellow-list, \"900\");\n$clr-yellow-a100: map-get($clr-yellow-list, \"a100\");\n$clr-yellow-a200: map-get($clr-yellow-list, \"a200\");\n$clr-yellow-a400: map-get($clr-yellow-list, \"a400\");\n$clr-yellow-a700: map-get($clr-yellow-list, \"a700\");\n\n\n//\n// amber\n//\n\n$clr-amber-list: (\n \"base\": #ffc107,\n \"50\": #fff8e1,\n \"100\": #ffecb3,\n \"200\": #ffe082,\n \"300\": #ffd54f,\n \"400\": #ffca28,\n \"500\": #ffc107,\n \"600\": #ffb300,\n \"700\": #ffa000,\n \"800\": #ff8f00,\n \"900\": #ff6f00,\n \"a100\": #ffe57f,\n \"a200\": #ffd740,\n \"a400\": #ffc400,\n \"a700\": #ffab00\n);\n\n$clr-amber: map-get($clr-amber-list, \"base\");\n\n$clr-amber-50: map-get($clr-amber-list, \"50\");\n$clr-amber-100: map-get($clr-amber-list, \"100\");\n$clr-amber-200: map-get($clr-amber-list, \"200\");\n$clr-amber-300: map-get($clr-amber-list, \"300\");\n$clr-amber-400: map-get($clr-amber-list, \"400\");\n$clr-amber-500: map-get($clr-amber-list, \"500\");\n$clr-amber-600: map-get($clr-amber-list, \"600\");\n$clr-amber-700: map-get($clr-amber-list, \"700\");\n$clr-amber-800: map-get($clr-amber-list, \"800\");\n$clr-amber-900: map-get($clr-amber-list, \"900\");\n$clr-amber-a100: map-get($clr-amber-list, \"a100\");\n$clr-amber-a200: map-get($clr-amber-list, \"a200\");\n$clr-amber-a400: map-get($clr-amber-list, \"a400\");\n$clr-amber-a700: map-get($clr-amber-list, \"a700\");\n\n\n//\n// Orange\n//\n\n$clr-orange-list: (\n \"base\": #ff9800,\n \"50\": #fff3e0,\n \"100\": #ffe0b2,\n \"200\": #ffcc80,\n \"300\": #ffb74d,\n \"400\": #ffa726,\n \"500\": #ff9800,\n \"600\": #fb8c00,\n \"700\": #f57c00,\n \"800\": #ef6c00,\n \"900\": #e65100,\n \"a100\": #ffd180,\n \"a200\": #ffab40,\n \"a400\": #ff9100,\n \"a700\": #ff6d00\n);\n\n$clr-orange: map-get($clr-orange-list, \"base\");\n\n$clr-orange-50: map-get($clr-orange-list, \"50\");\n$clr-orange-100: map-get($clr-orange-list, \"100\");\n$clr-orange-200: map-get($clr-orange-list, \"200\");\n$clr-orange-300: map-get($clr-orange-list, \"300\");\n$clr-orange-400: map-get($clr-orange-list, \"400\");\n$clr-orange-500: map-get($clr-orange-list, \"500\");\n$clr-orange-600: map-get($clr-orange-list, \"600\");\n$clr-orange-700: map-get($clr-orange-list, \"700\");\n$clr-orange-800: map-get($clr-orange-list, \"800\");\n$clr-orange-900: map-get($clr-orange-list, \"900\");\n$clr-orange-a100: map-get($clr-orange-list, \"a100\");\n$clr-orange-a200: map-get($clr-orange-list, \"a200\");\n$clr-orange-a400: map-get($clr-orange-list, \"a400\");\n$clr-orange-a700: map-get($clr-orange-list, \"a700\");\n\n\n//\n// Deep orange\n//\n\n$clr-deep-orange-list: (\n \"base\": #ff5722,\n \"50\": #fbe9e7,\n \"100\": #ffccbc,\n \"200\": #ffab91,\n \"300\": #ff8a65,\n \"400\": #ff7043,\n \"500\": #ff5722,\n \"600\": #f4511e,\n \"700\": #e64a19,\n \"800\": #d84315,\n \"900\": #bf360c,\n \"a100\": #ff9e80,\n \"a200\": #ff6e40,\n \"a400\": #ff3d00,\n \"a700\": #dd2c00\n);\n\n$clr-deep-orange: map-get($clr-deep-orange-list, \"base\");\n\n$clr-deep-orange-50: map-get($clr-deep-orange-list, \"50\");\n$clr-deep-orange-100: map-get($clr-deep-orange-list, \"100\");\n$clr-deep-orange-200: map-get($clr-deep-orange-list, \"200\");\n$clr-deep-orange-300: map-get($clr-deep-orange-list, \"300\");\n$clr-deep-orange-400: map-get($clr-deep-orange-list, \"400\");\n$clr-deep-orange-500: map-get($clr-deep-orange-list, \"500\");\n$clr-deep-orange-600: map-get($clr-deep-orange-list, \"600\");\n$clr-deep-orange-700: map-get($clr-deep-orange-list, \"700\");\n$clr-deep-orange-800: map-get($clr-deep-orange-list, \"800\");\n$clr-deep-orange-900: map-get($clr-deep-orange-list, \"900\");\n$clr-deep-orange-a100: map-get($clr-deep-orange-list, \"a100\");\n$clr-deep-orange-a200: map-get($clr-deep-orange-list, \"a200\");\n$clr-deep-orange-a400: map-get($clr-deep-orange-list, \"a400\");\n$clr-deep-orange-a700: map-get($clr-deep-orange-list, \"a700\");\n\n\n//\n// Brown\n//\n\n$clr-brown-list: (\n \"base\": #795548,\n \"50\": #efebe9,\n \"100\": #d7ccc8,\n \"200\": #bcaaa4,\n \"300\": #a1887f,\n \"400\": #8d6e63,\n \"500\": #795548,\n \"600\": #6d4c41,\n \"700\": #5d4037,\n \"800\": #4e342e,\n \"900\": #3e2723,\n);\n\n$clr-brown: map-get($clr-brown-list, \"base\");\n\n$clr-brown-50: map-get($clr-brown-list, \"50\");\n$clr-brown-100: map-get($clr-brown-list, \"100\");\n$clr-brown-200: map-get($clr-brown-list, \"200\");\n$clr-brown-300: map-get($clr-brown-list, \"300\");\n$clr-brown-400: map-get($clr-brown-list, \"400\");\n$clr-brown-500: map-get($clr-brown-list, \"500\");\n$clr-brown-600: map-get($clr-brown-list, \"600\");\n$clr-brown-700: map-get($clr-brown-list, \"700\");\n$clr-brown-800: map-get($clr-brown-list, \"800\");\n$clr-brown-900: map-get($clr-brown-list, \"900\");\n\n\n//\n// Grey\n//\n\n$clr-grey-list: (\n \"base\": #9e9e9e,\n \"50\": #fafafa,\n \"100\": #f5f5f5,\n \"200\": #eeeeee,\n \"300\": #e0e0e0,\n \"400\": #bdbdbd,\n \"500\": #9e9e9e,\n \"600\": #757575,\n \"700\": #616161,\n \"800\": #424242,\n \"900\": #212121,\n);\n\n$clr-grey: map-get($clr-grey-list, \"base\");\n\n$clr-grey-50: map-get($clr-grey-list, \"50\");\n$clr-grey-100: map-get($clr-grey-list, \"100\");\n$clr-grey-200: map-get($clr-grey-list, \"200\");\n$clr-grey-300: map-get($clr-grey-list, \"300\");\n$clr-grey-400: map-get($clr-grey-list, \"400\");\n$clr-grey-500: map-get($clr-grey-list, \"500\");\n$clr-grey-600: map-get($clr-grey-list, \"600\");\n$clr-grey-700: map-get($clr-grey-list, \"700\");\n$clr-grey-800: map-get($clr-grey-list, \"800\");\n$clr-grey-900: map-get($clr-grey-list, \"900\");\n\n\n//\n// Blue grey\n//\n\n$clr-blue-grey-list: (\n \"base\": #607d8b,\n \"50\": #eceff1,\n \"100\": #cfd8dc,\n \"200\": #b0bec5,\n \"300\": #90a4ae,\n \"400\": #78909c,\n \"500\": #607d8b,\n \"600\": #546e7a,\n \"700\": #455a64,\n \"800\": #37474f,\n \"900\": #263238,\n);\n\n$clr-blue-grey: map-get($clr-blue-grey-list, \"base\");\n\n$clr-blue-grey-50: map-get($clr-blue-grey-list, \"50\");\n$clr-blue-grey-100: map-get($clr-blue-grey-list, \"100\");\n$clr-blue-grey-200: map-get($clr-blue-grey-list, \"200\");\n$clr-blue-grey-300: map-get($clr-blue-grey-list, \"300\");\n$clr-blue-grey-400: map-get($clr-blue-grey-list, \"400\");\n$clr-blue-grey-500: map-get($clr-blue-grey-list, \"500\");\n$clr-blue-grey-600: map-get($clr-blue-grey-list, \"600\");\n$clr-blue-grey-700: map-get($clr-blue-grey-list, \"700\");\n$clr-blue-grey-800: map-get($clr-blue-grey-list, \"800\");\n$clr-blue-grey-900: map-get($clr-blue-grey-list, \"900\");\n\n\n//\n// Black\n//\n\n$clr-black-list: (\n \"base\": #000\n);\n\n$clr-black: map-get($clr-black-list, \"base\");\n\n\n//\n// White\n//\n\n$clr-white-list: (\n \"base\": #fff\n);\n\n$clr-white: map-get($clr-white-list, \"base\");\n\n\n//\n// List for all Colors for looping\n//\n\n$clr-list-all: (\n \"red\": $clr-red-list,\n \"pink\": $clr-pink-list,\n \"purple\": $clr-purple-list,\n \"deep-purple\": $clr-deep-purple-list,\n \"indigo\": $clr-indigo-list,\n \"blue\": $clr-blue-list,\n \"light-blue\": $clr-light-blue-list,\n \"cyan\": $clr-cyan-list,\n \"teal\": $clr-teal-list,\n \"green\": $clr-green-list,\n \"light-green\": $clr-light-green-list,\n \"lime\": $clr-lime-list,\n \"yellow\": $clr-yellow-list,\n \"amber\": $clr-amber-list,\n \"orange\": $clr-orange-list,\n \"deep-orange\": $clr-deep-orange-list,\n \"brown\": $clr-brown-list,\n \"grey\": $clr-grey-list,\n \"blue-grey\": $clr-blue-grey-list,\n \"black\": $clr-black-list,\n \"white\": $clr-white-list\n);\n\n\n//\n// Typography\n//\n\n$clr-ui-display-4: $clr-grey-600;\n$clr-ui-display-3: $clr-grey-600;\n$clr-ui-display-2: $clr-grey-600;\n$clr-ui-display-1: $clr-grey-600;\n$clr-ui-headline: $clr-grey-900;\n$clr-ui-title: $clr-grey-900;\n$clr-ui-subhead-1: $clr-grey-900;\n$clr-ui-body-2: $clr-grey-900;\n$clr-ui-body-1: $clr-grey-900;\n$clr-ui-caption: $clr-grey-600;\n$clr-ui-menu: $clr-grey-900;\n$clr-ui-button: $clr-grey-900;\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules: base grid and containers\n// ----------------------------------------------------------------------------\n\n// Stretch container to viewport and set base font-size to 10px for simple\n// calculations base on relative ems (rems).\nhtml {\n height: 100%;\n font-size: 62.5%;\n\n // [screen medium +] Set base font-size to 11px\n @include break-from-device(screen medium) {\n font-size: 68.75%;\n }\n\n // [screen large +] Set base font-size to 12px\n @include break-from-device(screen large) {\n font-size: 75%;\n }\n}\n\n// Stretch body to container and leave room for footer.\nbody {\n position: relative;\n min-height: 100%;\n\n // Lock body to viewport height (e.g. in search mode)\n &[data-md-locked] {\n height: 100%;\n overflow: hidden;\n }\n}\n\n// Horizontal separators\nhr {\n display: block;\n height: 0.1rem;\n padding: 0;\n border: 0;\n}\n\n// Template-wide grid\n.md-grid {\n max-width: 120.0rem;\n margin-right: auto;\n margin-left: auto;\n}\n\n// Prevent collapse of margin when setting margin on child element\n.md-container,\n.md-main {\n overflow: auto;\n}\n\n// Add top spacing to acount for header\n.md-main {\n margin-top: 5.6rem;\n\n // Bottom spacing to account for header and footer\n &__inner {\n margin-top: 2.4rem + 0.6rem;\n margin-bottom: 9.2rem;\n overflow: auto;\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: navigational elements\n// ----------------------------------------------------------------------------\n\n// Toggle checkbox\n.md-toggle {\n display: none;\n}\n\n// Overlay below expanded drawer\n.md-overlay {\n position: fixed;\n top: 0;\n width: 0;\n height: 0;\n transition:\n width 0s 0.25s,\n height 0s 0.25s,\n opacity 0.25s;\n background: $md-color-black--light;\n opacity: 0;\n z-index: 2;\n\n // [tablet -]: Trigger overlay\n @include break-to-device(tablet) {\n\n // Expanded drawer\n .md-toggle--drawer:checked ~ & {\n width: 100%;\n height: 100%;\n transition:\n width 0s,\n height 0s,\n opacity 0.25s;\n opacity: 1;\n }\n }\n}\n\n// ----------------------------------------------------------------------------\n// Rules: flexible elements, implemented with table layout\n// ----------------------------------------------------------------------------\n\n// Flexible layout container\n.md-flex {\n display: table;\n\n // Flexible layout container cell/element\n &__cell {\n display: table-cell;\n position: relative;\n vertical-align: top;\n\n // Shrink to minimum width\n &--shrink {\n width: 0%;\n }\n\n // Stretch to maximum width\n &--stretch {\n display: table;\n width: 100%;\n table-layout: fixed;\n }\n }\n\n // Apply ellipsis in case of overflowing text\n &__ellipsis {\n display: table-cell;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Content container\n.md-content {\n\n // [tablet landscape +]: Add space for table of contents\n @include break-from-device(tablet landscape) {\n margin-right: 24.2rem;\n }\n\n // [screen +]: Add space for table of contents\n @include break-from-device(screen) {\n margin-left: 24.2rem;\n }\n\n // Define spacing\n &__inner {\n margin: 2.4rem 1.6rem;\n\n // Hack: this is necessary for floating the edit button\n // overflow: auto;\n\n // [screen +]: Increase spacing\n @include break-from-device(screen) {\n margin: 2.4rem;\n }\n }\n\n // Copyright and theme information\n &__copyright {\n display: block;\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Application header (stays always on top)\n.md-header {\n @include z-depth(2);\n\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n height: 5.6rem;\n background: $md-color-primary;\n color: $md-color-white;\n z-index: 1;\n}\n\n// Navigation within header\n.md-header-nav {\n padding: 0.4rem;\n\n // Icons\n &__icon {\n @extend %md-icon__button;\n\n position: relative;\n transition: opacity 0.25s;\n z-index: 1;\n\n // Hovered icon\n &:hover {\n opacity: 0.7;\n }\n\n // Hide search icon, if JavaScript is not available.\n .no-js &--search {\n display: none;\n }\n\n // [tablet landscape +]: Hide the search icon\n @include break-from-device(tablet landscape) {\n\n // Search icon\n &--search {\n display: none;\n }\n }\n\n // [tablet -]: Hide the home icon\n @include break-to-device(tablet) {\n\n // Home icon\n &--home {\n display: none;\n }\n }\n\n // [screen +]: Hide the menu icon\n @include break-from-device(screen) {\n\n // Menu icon\n &--menu {\n display: none;\n }\n }\n }\n\n // Header title\n &__title {\n padding: 0 2.0rem;\n font-size: 1.8rem;\n line-height: 4.8rem;\n }\n\n // Repository containing source\n &__source {\n display: none;\n\n // [tablet landscape +]: Show the reposistory from tablet\n @include break-from-device(tablet landscape) {\n display: block;\n width: 23.0rem;\n max-width: 23.0rem;\n padding-right: 1.2rem;\n }\n }\n}\n","//\n// Name: Material Shadows\n// Description: Mixins for Material Design Shadows.\n// Version: 3.0.1\n//\n// Author: Denis Malinochkin\n// Git: https://github.com/mrmlnc/material-shadows\n//\n// twitter: @mrmlnc\n//\n// ------------------------------------\n\n\n// Mixins\n// ------------------------------------\n\n@mixin z-depth-transition() {\n transition: box-shadow .28s cubic-bezier(.4, 0, .2, 1);\n}\n\n@mixin z-depth-focus() {\n box-shadow: 0 0 8px rgba(0, 0, 0, .18), 0 8px 16px rgba(0, 0, 0, .36);\n}\n\n@mixin z-depth-2dp() {\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14),\n 0 1px 5px 0 rgba(0, 0, 0, .12),\n 0 3px 1px -2px rgba(0, 0, 0, .2);\n}\n\n@mixin z-depth-3dp() {\n box-shadow: 0 3px 4px 0 rgba(0, 0, 0, .14),\n 0 1px 8px 0 rgba(0, 0, 0, .12),\n 0 3px 3px -2px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-4dp() {\n box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .14),\n 0 1px 10px 0 rgba(0, 0, 0, .12),\n 0 2px 4px -1px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-6dp() {\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, .14),\n 0 1px 18px 0 rgba(0, 0, 0, .12),\n 0 3px 5px -1px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-8dp() {\n box-shadow: 0 8px 10px 1px rgba(0, 0, 0, .14),\n 0 3px 14px 2px rgba(0, 0, 0, .12),\n 0 5px 5px -3px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-16dp() {\n box-shadow: 0 16px 24px 2px rgba(0, 0, 0, .14),\n 0 6px 30px 5px rgba(0, 0, 0, .12),\n 0 8px 10px -5px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth-24dp() {\n box-shadow: 0 9px 46px 8px rgba(0, 0, 0, .14),\n 0 24px 38px 3px rgba(0, 0, 0, .12),\n 0 11px 15px -7px rgba(0, 0, 0, .4);\n}\n\n@mixin z-depth($dp: 2) {\n @if $dp == 2 {\n @include z-depth-2dp();\n } @else if $dp == 3 {\n @include z-depth-3dp();\n } @else if $dp == 4 {\n @include z-depth-4dp();\n } @else if $dp == 6 {\n @include z-depth-6dp();\n } @else if $dp == 8 {\n @include z-depth-8dp();\n } @else if $dp == 16 {\n @include z-depth-16dp();\n } @else if $dp == 24 {\n @include z-depth-24dp();\n }\n}\n\n\n// Class generator\n// ------------------------------------\n\n@mixin z-depth-classes($transition: false, $focus: false) {\n @if $transition == true {\n &-transition {\n @include z-depth-transition();\n }\n }\n\n @if $focus == true {\n &-focus {\n @include z-depth-focus();\n }\n }\n\n // The available values for the shadow depth\n @each $depth in 2, 3, 4, 6, 8, 16, 24 {\n &-#{$depth}dp {\n @include z-depth($depth);\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Application footer\n.md-footer {\n position: absolute;\n bottom: 0;\n width: 100%;\n}\n\n// Pagination container\n.md-footer-pagination {\n background: $md-color-black;\n color: $md-color-white;\n}\n\n// Footer navigation\n.md-footer-nav {\n padding: 0.4rem;\n overflow: auto;\n\n // Links to previous and next page\n &__link {\n padding-top: 2.8rem;\n padding-bottom: 0.8rem;\n transition: opacity 0.25s;\n\n // [mobile landscape +]: Set proportional width\n @include break-from-device(mobile landscape) {\n width: 50%;\n }\n\n // Hovered link\n &:hover {\n opacity: 0.7;\n }\n\n // Link to previous page\n &--prev {\n width: 25%;\n float: left;\n\n // Title\n .md-footer-nav__title {\n\n // [mobile portrait -]: Hide title for previous page\n @include break-to-device(mobile portrait) {\n display: none;\n }\n }\n }\n\n // Link to next page\n &--next {\n width: 75%;\n float: right;\n text-align: right;\n }\n }\n\n // Icons\n &__icon {\n @extend %md-icon__button;\n\n transition: background 0.25s;\n }\n\n // Link title\n &__title {\n position: relative;\n padding: 0 0.4rem;\n font-size: 1.8rem;\n line-height: 4.8rem;\n }\n\n // Link direction\n &__direction {\n position: absolute;\n right: 0;\n left: 0;\n margin-top: -2.0rem;\n padding: 0 0.4rem;\n color: $md-color-white--light;\n font-size: 1.5rem;\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Navigation container\n.md-nav {\n font-size: ms(-1);\n line-height: 1.3;\n\n // Table of contents\n &--secondary {\n border-left: 0.4rem solid $md-color-primary;\n }\n\n // List title\n &__title {\n display: block;\n padding: 1.2rem 1.2rem 0;\n font-weight: 700;\n text-overflow: ellipsis;\n overflow: hidden;\n\n // Icon, hidden by default\n &::before {\n @extend %md-icon, %md-icon__button;\n\n display: none;\n content: \"arrow_back\";\n }\n }\n\n // List of items\n &__list {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n // List item\n &__item {\n padding: 0.625em 1.2rem 0;\n\n // Add bottom spacing to last item\n &:last-child {\n padding-bottom: 1.2rem;\n }\n\n // 2nd+ level items\n & & {\n padding-right: 0;\n\n // Remove bottom spacing for nested items\n &:last-child {\n padding-bottom: 0;\n }\n }\n }\n\n // Link inside item\n &__link {\n display: block;\n transition: color 0.125s;\n text-overflow: ellipsis;\n cursor: pointer;\n overflow: hidden;\n\n // Icon\n &::after {\n @extend %md-icon;\n\n // Item contains a nested list\n .md-nav__item--nested > & {\n content: \"expand_more\";\n }\n }\n\n // Hide link to table of contents by default - this will only match the\n // table of contents inside the drawer below and including tablet portrait\n html &[for=\"toc\"] {\n display: none;\n\n // Hide table of contents by default\n & ~ .md-nav {\n display: none;\n }\n\n // Hide icon for current item\n + .md-nav__link::after {\n display: none;\n }\n }\n\n // Marked item\n &[data-md-marked] {\n color: $md-color-black--light;\n }\n\n // Current or hovered item\n &:hover,\n &:active,\n &--active {\n color: $md-color-accent;\n }\n }\n\n // Repository containing source\n &__source {\n display: none;\n }\n\n // [tablet -]: Layered navigation\n @include break-to-device(tablet) {\n\n // Stretch primary navigation to drawer\n &--primary,\n &--primary .md-nav {\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n flex-direction: column;\n height: 100%;\n z-index: 1;\n }\n\n // Adjust styles for primary navigation\n &--primary {\n background: $md-color-white;\n\n // Move subsequent navigations off\n .md-nav__toggle ~ .md-nav {\n @include z-depth(4);\n\n left: 0.4rem;\n background: $md-color-white;\n }\n\n // List title - higher specificity is necessary to ensure that the title\n // inside the drawer is always styled accordingly\n html & .md-nav__title {\n position: relative;\n padding: 0.4rem 1.6rem 0.4rem 5.6rem;\n background: $md-color-black--lightest;\n color: $md-color-black--light;\n font-size: 1.8rem;\n font-weight: 400;\n line-height: 4.8rem;\n white-space: nowrap;\n cursor: pointer;\n\n // Icon\n &::before {\n display: block;\n position: absolute;\n left: 0.4rem;\n width: 4.0rem;\n height: 4.0rem;\n color: $md-color-black--light;\n }\n\n // Remove border for first ist item\n ~ .md-nav__list > .md-nav__item:first-child {\n border-top: 0;\n }\n }\n\n // List of items\n .md-nav__list {\n flex: 1;\n overflow-y: scroll;\n }\n\n // List item\n .md-nav__item {\n padding: 0;\n border-top: 0.1rem solid $md-color-black--lightest;\n\n // Increase spacing to account for icon\n &--nested > .md-nav__link {\n padding-right: 4.8rem;\n }\n }\n\n // Link inside item\n .md-nav__link {\n position: relative;\n padding: 1.6rem;\n\n // Rotate icon\n &::after {\n position: absolute;\n top: 50%;\n right: 1.2rem;\n transform: translateY(-50%) rotate(-90deg);\n transition: inherit;\n color: $md-color-black--light;\n font-size: 2.4rem;\n }\n\n // Color of icon should inherit link color on hover\n &:hover::after {\n color: $md-color-accent;\n }\n }\n\n // Set nested navigation for table of contents to static\n .md-nav--secondary .md-nav {\n position: static;\n\n // 3rd level link\n .md-nav__link {\n padding-left: 2.8rem;\n }\n\n // 4th level link\n .md-nav .md-nav__link {\n padding-left: 4.0rem;\n }\n\n // 5th level link\n .md-nav .md-nav .md-nav__link {\n padding-left: 5.2rem;\n }\n\n // 6th level link\n .md-nav .md-nav .md-nav .md-nav__link {\n padding-left: 6.4rem;\n }\n }\n }\n\n // Hide nested navigation by default\n .md-nav__toggle ~ & {\n display: none;\n\n // Animate appearance, if browser supports 3D transforms\n .csstransforms3d & {\n display: block;\n transform: translateX(100%);\n transition:\n transform 0.25s cubic-bezier(0.8, 0.0, 0.6, 1.0),\n opacity 0.125s 0.05s;\n opacity: 0;\n }\n }\n\n // Expand nested navigation, if toggle is checked\n .md-nav__toggle:checked ~ & {\n display: block;\n\n // Animate appearance, if browser supports 3D transforms\n .csstransforms3d & {\n transform: translateX(0);\n transition:\n transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1.0),\n opacity 0.125s 0.125s;\n opacity: 1;\n }\n }\n\n // List item\n .md-nav__title,\n .md-nav__item {\n font-size: 1.6rem;\n line-height: 1.4;\n }\n }\n\n // [tablet portrait -]: Show table of contents in drawer\n @include break-to-device(tablet portrait) {\n\n // Remove border on secondary navigation\n &--secondary {\n border-left: 0;\n }\n\n // Show link to table of contents - higher specificity is necessary to\n // display the table of contents inside the drawer\n html &__link[for=\"toc\"] {\n display: block;\n\n // Unrotate icon for table of contents\n &::after {\n transform: translateY(-50%);\n color: $md-color-accent;\n content: \"toc\";\n }\n\n // Hide link to current item\n + .md-nav__link {\n display: none;\n }\n\n // Show table of contents\n & ~ .md-nav {\n display: flex;\n }\n }\n\n // Repository containing source\n &__source {\n display: block;\n padding: 0.4rem;\n background: $md-color-black;\n color: $md-color-white;\n }\n }\n\n // [screen +]: Tree-like navigation\n @include break-from-device(screen) {\n\n // Animation is only possible if JavaScript is available, as the max-height\n // property must be calculated before transitioning\n &.md-nav--transitioning {\n transition: max-height 0.25s cubic-bezier(0.86, 0.0, 0.07, 1.0);\n }\n\n // Hide nested navigation by default\n .md-nav__toggle ~ & {\n max-height: 0;\n overflow: hidden;\n }\n\n // Expand nested navigation, if toggle is checked\n .md-nav__toggle:checked ~ &,\n &.md-nav--toggled {\n max-height: 100%;\n }\n\n // List title\n &__title {\n\n // Hide titles for nested navigation\n & + .md-nav__list & {\n display: none;\n }\n }\n\n // Link inside item\n &__link {\n\n // Item contains a nested list\n .md-nav__item--nested > &::after {\n display: inline-block;\n transform-origin: 0.45em 0.45em;\n transform-style: preserve-3d;\n vertical-align: -0.125em;\n\n // Only animate icon when JavaScript is available, as the height can\n // not be animated anyway, and better no fun than half the fun\n .js & {\n transition: transform 0.4s;\n }\n }\n\n // Rotate icon for expanded lists\n .md-nav__item--nested .md-nav__toggle:checked ~ &::after {\n transform: rotateX(180deg);\n }\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Search container\n.md-search {\n\n // Hide search, if JavaScript is not available.\n .no-js & {\n display: none;\n }\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n padding: 0.4rem;\n padding-right: 3.2rem;\n }\n\n // Search modal overlay\n &__overlay {\n display: none;\n pointer-events: none;\n\n // [tablet portrait -]: Show overlay\n @include break-to-device(tablet portrait) {\n display: block;\n position: absolute;\n top: 0.4rem;\n left: 0.4rem;\n width: 4.0rem;\n height: 4.0rem;\n transform-origin: center;\n transition:\n transform 0.3s 0.1s,\n opacity 0.2s 0.2s;\n border-radius: 2.0rem; // TODO: correct?\n background: #EEEEEE; // TODO: put in variable\n opacity: 0;\n overflow: hidden;\n z-index: 1;\n\n // Expanded overlay\n .md-toggle--search:checked ~ .md-header & {\n transform: scale(40); // TODO: increase scale on larger devices factor, so the transition remains smooth\n transition:\n transform 0.4s,\n opacity 0.1s;\n opacity: 1;\n }\n }\n }\n\n // Search modal wrapper\n &__inner {\n width: 100%;\n\n // [tablet portrait -]: Put search modal off-canvas by default\n @include break-to-device(tablet portrait) {\n position: fixed;\n top: 0;\n left: 100%;\n height: 100%;\n transform: translateX(5%);\n transition:\n left 0s 0.3s,\n transform 0.15s 0.15s cubic-bezier(0.4, 0.0, 0.2, 1.0),\n opacity 0.15s 0.15s;\n opacity: 0;\n z-index: 2;\n\n // Active search modal\n .md-toggle--search:checked ~ .md-header & {\n left: 0;\n transform: translateX(0);\n transition:\n left 0s 0s,\n transform 0.15s 0.15s cubic-bezier(0.1, 0.7, 0.1, 1.0),\n opacity 0.15s 0.15s;\n opacity: 1;\n }\n }\n\n // [tablet landscape +]: Make relative for inner positioning\n @include break-from-device(tablet landscape) {\n position: relative;\n }\n }\n\n // Search form\n &__form {\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n width: 23.0rem;\n transition: width 0.25s cubic-bezier(0.1, 0.7, 0.1, 1.0);\n border-radius: 0.2rem;\n\n // Active search field\n [data-md-locked] & {\n width: 66.8rem;\n }\n }\n }\n\n // Icon\n &__icon {\n position: absolute;\n top: $md-icon-padding;\n left: $md-icon-padding + $md-icon-margin; // TODO: solve in some other way...\n transition: color 0.25s;\n font-size: $md-icon-size;\n cursor: pointer;\n\n // Set search icon on pseudo class, so it can be overridden for mobile\n // and tablet when the search is rendered in an overlay\n &::before {\n content: \"search\";\n }\n\n // [tablet portrait -]: Use back arrow as search icon\n @include break-to-device(tablet portrait) {\n top: 1.6rem;\n left: 1.6rem;\n\n // Show back arrow instead of search icon\n &::before {\n content: \"arrow_back\";\n }\n }\n }\n\n // Search field\n &__input {\n padding: 0 1.6rem 0 7.2rem;\n text-overflow: ellipsis;\n\n // Placeholder and icon color in active state\n + .md-search__icon,\n &::placeholder {\n color: $md-color-black--light;\n }\n\n // [tablet portrait -]: Full-screen search bar\n @include break-to-device(tablet portrait) {\n width: 100%;\n height: 5.6rem;\n font-size: 1.8rem;\n }\n\n // [tablet landscape +]: Header-embedded search\n @include break-from-device(tablet landscape) {\n width: 100%;\n height: 4.0rem;\n padding-left: 4.8rem;\n transition:\n background-color 0.25s,\n color 0.25s;\n border-radius: 0.2rem;\n background: $md-color-black--lighter;\n color: $md-color-white;\n font-size: ms(0);\n\n // Placeholder color\n + .md-search__icon,\n &::placeholder {\n transition: color 0.25s;\n color: $md-color-white;\n }\n\n // Hovered search field\n &:hover {\n background: $md-color-white--lightest;\n }\n\n // Active search field\n [data-md-locked] & {\n border-radius: 0.2rem 0.2rem 0 0;\n background: $md-color-white;\n color: $md-color-black;\n text-overflow: none;\n\n // Placeholder and icon color in active state\n + .md-search__icon,\n &::placeholder {\n color: $md-color-black--light;\n }\n }\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Sidebar container\n.md-sidebar {\n position: relative;\n width: 24.2rem;\n float: left;\n overflow: visible;\n\n // Lock sidebar to container height (account for fixed header)\n &[data-md-locked] {\n position: fixed;\n top: 5.6rem;\n }\n\n // Omit repaint of whole page by promoting primary sidebar to a separate\n // layer, but not the secondary sidebar to omit jittering\n &--primary {\n backface-visibility: hidden;\n }\n\n // [tablet -]: Convert navigation to drawer\n @include break-to-device(tablet) {\n\n // Render primary sidebar as a slideout container\n &--primary {\n position: fixed;\n top: 0;\n left: -24.2rem;\n width: 24.2rem;\n height: 100%;\n transform: translateX(0);\n transition:\n transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1.0),\n box-shadow 0.25s;\n background: $md-color-white;\n z-index: 2;\n\n // Just hide drawer, if browser doesn't support 3D transforms\n .no-csstransforms3d & {\n display: none;\n }\n\n // Expanded drawer\n .md-toggle--drawer:checked ~ .md-container & {\n @include z-depth(8);\n\n transform: translateX(24.2rem);\n\n // Just show drawer, if browser doesn't support 3D transforms\n .no-csstransforms3d & {\n display: block;\n }\n }\n\n // Hide overflow for nested navigation\n .md-sidebar__scrollwrap {\n overflow: hidden;\n }\n }\n }\n\n // Secondary sidebar with table of contents\n &--secondary {\n display: none;\n\n // [tablet landscape +]: Show table of contents next to body copy\n @include break-from-device(tablet landscape) {\n display: block;\n float: right;\n\n // Hack: align right in case of locked sidebar\n &[data-md-locked] {\n margin-left: 100%;\n transform: translate(-100%, 0);\n\n // [screen +]: Limit to grid\n @include break-from-device(screen) {\n margin-left: 120.0rem;\n }\n }\n }\n }\n\n // Wrapper for scrolling on overflow\n &__scrollwrap {\n margin: 2.4rem 0.4rem;\n overflow-y: scroll;\n // -webkit-overflow-scrolling: touch; // TODO: problems with iOS\n\n // [tablet -]: Adjust margins\n @include break-to-device(tablet) {\n\n // Adjust margins for primary scrollbar\n .md-sidebar--primary & {\n margin: 0;\n }\n }\n\n // Limit height to window, if JavaScript is available\n .js & {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n\n // Override native scrollbar styles\n &::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem;\n\n // Style scrollbar thumb\n &-thumb {\n background-color: $md-color-black--lighter;\n\n // Hovered scrollbar thumb\n &:hover {\n background-color: $md-color-accent;\n }\n }\n }\n }\n\n // Sidebar content\n &__inner {\n\n // [screen +]: Add line for reference\n @include break-from-device(screen) {\n border-right: 0.1rem solid $md-color-black--lightest;\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Source container\n.md-source {\n display: block;\n transition: opacity 0.25s;\n font-size: 1.3rem;\n line-height: 1.2;\n white-space: nowrap;\n\n // Hovered source information\n &:hover {\n opacity: 0.7;\n }\n\n // Necessary for vertical alignment\n &::before {\n display: inline-block;\n height: 4.8rem;\n content: \"\";\n vertical-align: middle;\n }\n\n // Repository is hosted on platform\n &--bitbucket,\n &--github,\n &--gitlab {\n\n // Platform icon\n &::before {\n width: 4.8rem;\n background-repeat: no-repeat;\n background-position: center;\n background-size: $md-icon-size $md-icon-size;\n }\n\n // Adjust repository information for platform icon\n .md-source__repository {\n margin-left: -4.4rem;\n padding-left: 4.0rem;\n }\n }\n\n // Code is hosted on BitBucket\n &--bitbucket::before {\n background-image: url(\"../images/icons/bitbucket-white.svg\");\n }\n\n // Code is hosted on GitHub\n &--github::before {\n background-image: url(\"../images/icons/github-white.svg\");\n }\n\n // Code is hosted on GitLab\n &--gitlab::before {\n background-image: url(\"../images/icons/gitlab-white.svg\");\n }\n\n // Repository name\n &__repository {\n display: inline-block;\n max-width: 100%;\n margin-left: 0.8rem;\n font-weight: 700;\n text-overflow: ellipsis;\n overflow: hidden;\n vertical-align: middle;\n }\n\n // Source facts (statistics etc.)\n &__facts {\n margin: 0;\n padding: 0;\n font-size: 1.1rem;\n font-weight: 700;\n opacity: 0.75;\n list-style-type: none;\n }\n\n // Fact\n &__fact {\n float: left;\n transform: translateY(0%);\n transition:\n transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1.0),\n opacity 0.25s;\n opacity: 1;\n\n // Facts are hidden by default\n &--hidden {\n transform: translateY(100%);\n opacity: 0;\n }\n\n // Middle dots before fact\n &::before {\n margin: 0 0.2rem;\n content: \"\\00B7\";\n }\n\n // Remove middle dot on first fact\n &:first-child::before {\n display: none;\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Admonition extension\n.admonition {\n margin: 2.0rem 0;\n padding: 0.8rem 1.2rem;\n border-left: 0.4rem solid $clr-blue-a200;\n border-radius: 0 0.2rem 0.2rem 0;\n background: transparentize($clr-blue-a200, 0.95);\n\n // Title\n &-title {\n color: $clr-blue-a400;\n font-size: ms(-1);\n font-weight: 700;\n line-height: 2;\n text-transform: uppercase;\n\n // Remove bottom spacing for title\n html & {\n margin-bottom: 0;\n }\n\n // Remove top spacing for first element following title\n html & + * {\n margin-top: 0;\n }\n\n // Icon\n &::before {\n @extend %md-icon;\n\n margin-right: 0.45em;\n font-size: 2.0rem;\n content: \"edit\";\n vertical-align: -0.25em;\n }\n }\n\n // Remove spacing on first element\n :first-child {\n margin-top: 0;\n }\n\n // Remove spacing on last element\n :last-child {\n margin-bottom: 0;\n }\n\n // Build representational classes\n @each $names, $appearance in (\n summary tldr: $clr-light-blue-a400 \"subject\",\n tip idea: $clr-teal-a700 \"whatshot\",\n success check done: $clr-green-a400 \"done\",\n warning attention important: $clr-orange-a400 \"warning\",\n failure fail missing: $clr-red-a200 \"clear\",\n danger caution: $clr-red-a400 \"flash_on\",\n error bug: $clr-pink-a400 \"bug_report\"\n ) {\n $tint: nth($appearance, 1);\n $icon: nth($appearance, 2);\n\n // Define base class\n &%#{nth($names, 1)},\n &.#{nth($names, 1)} {\n border-color: $tint;\n background: transparentize($tint, 0.95);\n\n // Set color for title\n .admonition-title {\n color: $tint;\n\n // Icon\n &::before {\n content: $icon;\n }\n }\n }\n\n // Define synonyms for base class\n @if length($names) > 1 {\n @for $n from 2 through length($names) {\n &.#{nth($names, $n)} {\n @extend .admonition%#{nth($names, 1)};\n }\n }\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Variables\n// ----------------------------------------------------------------------------\n\n// Keywords\n$codehilite-keyword: #3B78E7;\n$codehilite-keyword-declaration: #3B78E7;\n$codehilite-keyword-namespace: #3B78E7;\n$codehilite-keyword-reserved: #3E61A2;\n$codehilite-keyword-type: #3E61A2;\n\n// Comments\n$codehilite-comment: #999999;\n$codehilite-comment-multiline: #999999;\n$codehilite-comment-preproc: #666666;\n$codehilite-comment-single: #999999;\n$codehilite-comment-special: #999999;\n\n// Names\n$codehilite-name-attribute: #C2185B;\n$codehilite-name-builtin: #C2185B;\n$codehilite-name-builtin-pseudo: #3E61A2;\n$codehilite-name-class: #C2185B;\n$codehilite-name-constant: #3E61A2;\n$codehilite-name-decorator: #666666;\n$codehilite-name-entity: #666666;\n$codehilite-name-exception: #C2185B;\n$codehilite-name-function: #C2185B;\n$codehilite-name-label: #3B5179;\n$codehilite-name-namespace: #EC407A;\n$codehilite-name-tag: #3B78E7;\n$codehilite-name-variable: #3E61A2;\n$codehilite-name-variable-class: #3E61A2;\n$codehilite-name-variable-instance: #3E61A2;\n$codehilite-name-variable-global: #3E61A2;\n$codehilite-name-extension: #EC407A;\n\n// Literals\n$codehilite-literal-string: #0D904F; // #1eec86 for dark background\n$codehilite-literal-string-backticks: #0D904F;\n$codehilite-literal-string-char: #0D904F;\n$codehilite-literal-string-doc: #999999;\n$codehilite-literal-string-double: #0D904F;\n$codehilite-literal-string-single: #0D904F;\n$codehilite-literal-string-symbol: #0D904F;\n\n// Numbers\n$codehilite-literal-number: #E74C3C;\n$codehilite-literal-number-float: #E74C3C;\n$codehilite-literal-number-hex: #E74C3C;\n$codehilite-literal-number-integer: #E74C3C;\n$codehilite-literal-number-integer-long: #E74C3C;\n$codehilite-literal-number-oct: #E74C3C;\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Codehilite extension\n.codehilite,\n.code {\n\n // Errors\n .err { color: #A61717; }\n\n // Operators\n .o { color: inherit; }\n\n // Generics\n .ge { color: #000000; } // Generic.Emph\n .gr { color: #AA0000; } // Generic.Error\n .gh { color: #999999; } // Generic.Heading\n .go { color: #888888; } // Generic.Output\n .gp { color: #555555; } // Generic.Prompt\n .gs { color: inherit; } // Generic.Strong\n .gu { color: #AAAAAA; } // Generic.Subheading\n .gt { color: #AA0000; } // Generic.Traceback\n\n // Keywords\n .k { color: $codehilite-keyword; }\n .kc { color: #A71D5D; } // Keyword.Constant\n .kd { color: $codehilite-keyword-declaration; }\n .kn { color: $codehilite-keyword-namespace; }\n .kp { color: #A71D5D; } // Keyword.Pseudo\n .kr { color: $codehilite-keyword-reserved; }\n .kt { color: $codehilite-keyword-type; }\n\n // Comments\n .c { color: $codehilite-comment; }\n .cm { color: $codehilite-comment-multiline; }\n .cp { color: $codehilite-comment-preproc; }\n .c1 { color: $codehilite-comment-single; }\n .cs { color: $codehilite-comment-special; }\n\n // Names\n .na { color: $codehilite-name-attribute; }\n .nb { color: $codehilite-name-builtin; }\n .bp { color: $codehilite-name-builtin-pseudo; }\n .nc { color: $codehilite-name-class; }\n .no { color: $codehilite-name-constant; }\n .nd { color: $codehilite-name-entity; }\n .ni { color: $codehilite-name-entity; }\n .ne { color: $codehilite-name-exception; }\n .nf { color: $codehilite-name-function; }\n .nl { color: $codehilite-name-label; }\n .nn { color: $codehilite-name-namespace; }\n .nt { color: $codehilite-name-tag; }\n .nv { color: $codehilite-name-variable; }\n .vc { color: $codehilite-name-variable-class; }\n .vg { color: $codehilite-name-variable-global; }\n .vi { color: $codehilite-name-variable-instance; }\n .nx { color: $codehilite-name-extension; }\n .ow { color: inherit; }\n\n // Numbers\n .m { color: $codehilite-literal-number; }\n .mf { color: $codehilite-literal-number-float; }\n .mh { color: $codehilite-literal-number-hex; }\n .mi { color: $codehilite-literal-number-integer; }\n .il { color: $codehilite-literal-number-integer-long; }\n .mo { color: $codehilite-literal-number-oct; }\n\n // Strings\n .s { color: $codehilite-literal-string; }\n .sb { color: $codehilite-literal-string-backticks; }\n .sc { color: $codehilite-literal-string-char; }\n .sd { color: $codehilite-literal-string-doc; }\n .s2 { color: $codehilite-literal-string-double; }\n .se { color: #183691; } // Literal.String.Escape\n .sh { color: #183691; } // Literal.String.Heredoc\n .si { color: #183691; } // Literal.String.Interpol\n .sx { color: #183691; } // Literal.String.Other\n .sr { color: #009926; } // Literal.String.Regex\n .s1 { color: $codehilite-literal-string-single; }\n .ss { color: $codehilite-literal-string-symbol; }\n\n // Diffs\n .gd { background-color: #FFDDDD; } // Generic.Deleted\n .gi { background-color: #DDFFDD; } // Generic.Inserted\n\n // Miscellaneous\n .w { color: transparent; } // Text.Whitespace\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Footnotes extension\n.footnote {\n color: $md-color-black--light;\n font-size: 80%;\n\n // Remove additional spacing on footnotes\n ol {\n margin-left: 0;\n }\n\n // Single footnote\n li {\n\n // TODO: this doesn't work entirely\n // &::before {\n // display: block;\n // content: \"\";\n // padding-top: (5.6rem + 2.4rem + 0.4rem);\n // margin-top: -(5.6rem + 2.4rem + 0.4rem);\n // }\n\n // Make back references visible on hover\n &:hover .footnote-backref,\n &:target .footnote-backref {\n transform: translateX(0);\n opacity: 1;\n }\n\n // Active or targeted back reference\n &:hover .footnote-backref:hover,\n &:target .footnote-backref {\n color: $md-color-accent;\n }\n }\n\n // Correct anchor offset\n &-ref::before {\n position: absolute;\n margin-top: -(5.6rem + 2.4rem);\n padding-top: (5.6rem + 2.4rem);\n content: \"\";\n pointer-events: none;\n }\n\n // Make back reference text transparent for icon\n &-backref {\n @extend %md-icon;\n\n position: absolute;\n transform: translateX(0.5rem);\n transition: transform 0.25s 0.125s,\n color 0.25s,\n opacity 0.125s 0.125s;\n color: $md-color-black--lighter;\n font-size: 2.0rem;\n opacity: 0;\n vertical-align: middle;\n\n // Hack: remove Unicode arrow for icon\n &::first-letter {\n font-size: 0;\n }\n\n // Back reference icon\n &::after {\n content: \"keyboard_return\";\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// Scoped in typesetted content for greater specificity\n.md-typeset {\n\n // Permalinks extension\n .headerlink {\n display: inline-block;\n margin-left: 1.0rem;\n transform: translate(0, 0.5rem);\n transition: transform 0.25s 0.25s,\n color 0.25s,\n opacity 0.125s 0.25s;\n color: $md-color-black--lighter;\n opacity: 0;\n }\n\n // All headers with permalinks have ids\n [id] {\n\n // Make permalink visible on hover\n &:hover .headerlink,\n &:target .headerlink,\n & .headerlink:focus {\n transform: translate(0, 0);\n opacity: 1;\n }\n\n // Active or targeted permalink\n &:hover .headerlink:hover,\n &:target .headerlink,\n & .headerlink:focus {\n color: $md-color-accent;\n }\n }\n\n // Correct anchor offset of headlines\n @each $level, $delta in (\n h1: 3.0rem,\n h2: 0.2rem,\n h3: 0.4rem,\n h4: 0.6rem,\n h5: 1.0rem,\n h6: 1.0rem\n ) {\n #{$level}[id]::before {\n display: block;\n margin-top: -(5.6rem + 2.4rem + $delta);\n padding-top: (5.6rem + 2.4rem + $delta);\n content: \"\";\n }\n }\n}\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Rules\n// ----------------------------------------------------------------------------\n\n// TODO: cleanup redundant data-md-locked,\n// --> use hidden checkbox for reasons of label/button/trigger easyness...\n// TODO: set label for magnifying glasses onto search toggle\n// --> this way we can always use the search toggle and only need the locked state on the body!\n// --> question: how does this play with directly focusing the search field!?\n\n.md-search__output {\n overflow-y: auto; // necessary for rounded borders\n // &::after {\n // display: block;\n // content: \"\";\n // width: 100%;\n // height: 20px;\n // background: red; // TODO: white shadow overlay to fade out result scrolling\n // }\n\n [data-md-locked] & {\n opacity: 1;\n }\n\n width: 100%;\n\n opacity: 0;\n transition: opacity .4s, max-height .4s;\n\n\n text-align: left; // TODO: wrap with another div for this effect\n\n z-index: -1; // ??? wherefor? probably not necessary anymore.\n}\n\n@include break-to-device(tablet portrait) {\n .md-search__output {\n position: absolute;\n top: 5.6rem;\n bottom: 0;\n\n background:\n \t\tlinear-gradient(white 10%, rgba(255,255,255,0)), // cover\n linear-gradient(to bottom, rgba(0, 0, 0, 0.25),\n rgba(0, 0, 0, 0.125) 20%,\n rgba(0, 0, 0, 0) 60%); // shadow\n \tbackground-repeat: no-repeat;\n \tbackground-color: white;\n \tbackground-size: 100% 20px, 100% 10px;\n\n \t// Opera doesn't support this in the shorthand\n \tbackground-attachment: local, scroll;\n }\n .md-search-result__item {\n // margin: 0.8rem;\n }\n .md-search-result__link {\n padding: 0 1.6rem;\n // background: white;\n // border-radius: 0.2rem;\n // @include z-depth(2);\n }\n .md-search-result__meta {\n padding-left: 1.6rem;\n border-top: 0.1rem solid rgba(0, 0, 0, 0.07);\n }\n}\n\n@include break-from-device(tablet landscape) {\n\n // Scroll shadow - WIP\n .md-search__output {\n @include z-depth(6);\n\n background: $md-color-white;\n // color: red;\n border-top: 0.1rem solid $md-color-black--lightest; // TODO: box-shadow inset!\n border-radius: 0 0 0.3rem 0.3rem; // ???\n position: absolute; // must be absolute, or header nav will stretch\n max-height: 0vh; // TODO: can this be done in percent!?!?!?\n [data-md-locked] & {\n max-height: 75vh;\n }\n\n // Override native scrollbar styles\n &::-webkit-scrollbar {\n width: 0.4rem;\n height: 0.4rem;\n\n // Style scrollbar thumb\n &-thumb {\n background-color: $md-color-black--lighter;\n\n // Hovered scrollbar thumb\n &:hover {\n background-color: $md-color-accent;\n }\n }\n }\n\n \tbackground:\n \t\tlinear-gradient(white 10%, rgba(255,255,255,0)), // cover\n linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2) 20%, rgba(0, 0, 0, 0) 60%); // shadow\n \tbackground-repeat: no-repeat;\n \tbackground-color: white;\n \tbackground-size: 100% 20px, 100% 5px;\n\n \t/* Opera doesn't support this in the shorthand */\n \tbackground-attachment: local, scroll;\n }\n}\n\n.md-search-result {\n\n\n &__meta {\n color: $md-color-black--light;\n padding-left: 4.8rem;\n padding-right: 1.6rem;\n line-height: 4.0rem;\n font-size: ms(-1);\n\n }\n\n &__list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n border-top: 0.1rem solid $md-color-black--lightest;\n }\n\n &__item {\n // background: yellow;\n\n // border-top: 0.1rem solid $md-color-black--lightest;\n }\n\n\n &__link {\n overflow: auto;\n display: block;\n padding-left: 4.8rem;\n padding-right: 1.6rem;\n transition: background 0.25s;\n\n &:hover {\n background: transparentize($md-color-accent, 0.9);\n }\n }\n\n &__title {\n color: $md-color-black;\n font-size: ms(0);\n line-height: 1.4;\n margin-top: 0.5em;\n }\n\n &__description {\n color: $md-color-black--light;\n font-size: ms(-1);\n line-height: 1.4;\n margin: 0.5em 0;;\n }\n}\n\n// .md-nav--secondary > .md-nav__title {\n// // -webkit-overflow-scrolling: touch;\n// @include z-depth(1);\n// }\n\n\n// // add light border for more contrast\n// .md-typeset pre {\n// border: 1px solid rgba(0,0,0,0.0125);\n// }\n\n\n// .md-search__suggest {\n//\n//\n// background: $md-color-white;\n// border-radius: 0 0 0.3rem 0.3rem;\n// color: #000000;\n// text-align: left;\n// border-top: 0.1rem solid $md-color-black--lightest;\n// display: none; // TODO: doesnt work due to display: none;\n// opacity: 0;\n//\n// // overflow: auto;\n// transition: opacity .3s;\n// // pointer-events: none;\n//\n//\n// .md-search__input:focus ~ & {\n// // animation: anima .3s;\n// display: block;\n// opacity: 1;\n// }\n// }\n\n// TODO: only on tablet and bind to search active state!\n// .md-search__input:focus {\n// border-radius: 0.3rem 0.3rem 0 0;\n// }\n\n@include break-to-device(mobile landscape) {\n\n .md-search__suggest {\n position: relative;\n z-index: 2;\n }\n}\n\n.md-search-term {\n position: relative;\n padding: 0 0.8rem 0 4.8rem;\n line-height: 4.0rem; // don't use line height????\n font-size: 1.6rem;\n\n &::before {\n @extend %md-icon;\n\n position: absolute;\n\n content: \"access_time\";\n font-size: 2.4rem;\n line-height: 4.0rem; // this sucks...\n left: 1.2rem;\n color: $md-color-black--lighter;\n }\n transition: background .25s;\n cursor: pointer;\n &:hover {\n background: mix($md-color-white, $md-color-primary, 90%);\n }\n}\n\n\n\n\n\n\n\n\n\n.checklist {\n\n li {\n position: relative;\n list-style-type: none;\n\n &::before {\n @extend %md-icon;\n\n position: absolute;\n appearance: none;\n color: blue;\n\n content: \"check_box\";\n font-size: 2.4rem;\n }\n }\n\n input[type=\"checkbox\"]:checked {\n width: 20px;\n // & ~ .checklist li::after {\n // color: red;\n // }\n }\n}\n\n// Inline code blocks\nins.critic, del.critic, mark {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n word-break: break-word;\n box-decoration-break: clone;\n\n border-radius: 0.2rem;\n\n // &::before {\n // @extend %md-icon;\n //\n // color: $md-color-black--light;\n //\n // font-size: 1.6rem;\n // padding-right: 0.2rem;\n // vertical-align: -0.2rem;\n // }\n}\n\nins.critic {\n background: #DDFFDD;\n box-shadow: 0.4rem 0 0 #DDFFDD,\n -0.4rem 0 0 #DDFFDD;\n text-decoration: none;\n // &::before {\n // content: \"add\";\n // }\n}\n\ndel.critic {\n background: #FFDDDD;\n box-shadow: 0.4rem 0 0 #FFDDDD,\n -0.4rem 0 0 #FFDDDD;\n //\n // &::before {\n // content: \"remove\";\n // }\n}\n\n// Not critic-specific!\nmark {\n background: #FFFF00;\n box-shadow: 0.4rem 0 0 #FFFF00,\n -0.4rem 0 0 #FFFF00; // ligher yellow...\n overflow: auto; // TODO: remove this, just needed to rebuild\n}\n\n.critic.comment {\n margin: 0 0.4rem;\n padding: 0.1rem 0;\n border-radius: 0.2rem;\n background: #F0F0F0;\n color: #37474F;\n // font-size: 85%;\n box-shadow: 0.4rem 0 0 #F0F0F0,\n -0.4rem 0 0 #F0F0F0; // darker than code!!!\n box-decoration-break: clone;\n\n &::before {\n @extend %md-icon;\n\n color: $md-color-black--lighter;\n\n content: \"chat\";\n font-size: 1.6rem;\n padding-right: 0.2rem;\n vertical-align: -0.2rem;\n }\n}\n\n.md-button {\n float: right;\n margin-top: 9px;\n font-size: 13px;\n padding-left: 2.6rem;\n font-weight: 700;\n text-transform: uppercase;\n}\n\n.task-list-item {\n list-style-type: none;\n}\n\n.task-list-item input {\n margin: 0 4px 0.25em -20px;\n vertical-align: middle;\n}\n//\n//\n//\n.task-list-item {\n position: relative;\n}\n\n.task-list-item input[type=\"checkbox\"] {\n opacity: 0;\n}\n\n.task-list-item input[type=\"checkbox\"] + label {\n display: block;\n position: absolute;\n top: 50%;\n left: -24px;\n width: 16px;\n margin-top: -8px;\n height: 16px;\n border-radius: 2px;\n background: #CCC;\n}\n\n.task-list-item input[type=\"checkbox\"]:checked + label::before {\n display: block;\n margin-top: -4px;\n margin-left: 2px;\n font-size: 1.2em;\n line-height: 1;\n border-radius: 2px;\n content: \"✔\";\n color: #1EBB52;\n}\n\n.codehilite .hll {\n background: #FFFF00;\n display: block;\n margin: 0 -16px;\n padding: 0 16px;\n}\n\n// TODO: integrate stylelint and property order!\n\n\n.md-typeset {\n sup {\n // background: $md-color-black--lighter;\n padding: 0 0.125em;\n border-radius: 0.2em;\n // font-weight: bold;\n // color: $md-color-white;\n &[id]:target {\n background: orange;\n }\n\n a {\n // color: white;\n }\n }\n}\n\n// TODO: remove jitter\n// .md-search,\n// .md-search__inner,\n// .md-search__form {\n// text-align: right;\n// }\n","////\n/// Copyright (c) 2016 Martin Donath \n///\n/// Permission is hereby granted, free of charge, to any person obtaining a\n/// copy of this software and associated documentation files (the \"Software\"),\n/// to deal in the Software without restriction, including without limitation\n/// the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/// and/or sell copies of the Software, and to permit persons to whom the\n/// Software is furnished to do so, subject to the following conditions:\n///\n/// The above copyright notice and this permission notice shall be included in\n/// all copies or substantial portions of the Software.\n///\n/// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n/// DEALINGS\n////\n\n// ----------------------------------------------------------------------------\n// Variables\n// ----------------------------------------------------------------------------\n\n///\n/// Device-specific breakpoints\n///\n/// @example\n/// $break-devices: (\n/// mobile: (\n/// portrait: 220px 479px,\n/// landscape: 480px 719px\n/// ),\n/// tablet: (\n/// portrait: 720px 959px,\n/// landscape: 960px 1199px\n/// ),\n/// screen: (\n/// small: 1200px 1599px,\n/// medium: 1600px 1999px,\n/// large: 2000px\n/// )\n/// );\n///\n/// @group helpers\n/// @access private\n/// @type Map\n///\n$break-devices: () !default;\n\n// ----------------------------------------------------------------------------\n// Helpers\n// ----------------------------------------------------------------------------\n\n///\n/// Choose minimum and maximum device widths\n///\n/// @group helpers\n/// @access private\n/// @param {Map} $devices Map of devices\n/// @return {List} Minimum and maximum width\n///\n@function break-select-min-max($devices) {\n $min: 1000000;\n $max: 0;\n @each $key, $value in $devices {\n @while type-of($value) == map {\n $value: break-select-min-max($value);\n }\n @if type-of($value) == list {\n @each $number in $value {\n @if type-of($number) == number {\n $min: min($number, $min);\n @if $max != null {\n $max: max($number, $max);\n }\n } @else {\n @error \"Invalid number: #{$number}\";\n }\n }\n } @elseif type-of($value) == number {\n $min: min($value, $min);\n $max: null;\n } @else {\n @error \"Invalid value: #{$value}\";\n }\n }\n @return $min, $max;\n}\n\n///\n/// Select minimum and maximum widths for a device breakpoint\n///\n/// @group helpers\n/// @access private\n/// @param {String} $device Device\n/// @return {List} Minimum and maximum width\n///\n@function break-select-device($device) {\n $current: $break-devices;\n @for $n from 1 through length($device) {\n @if type-of($current) == map {\n $current: map-get($current, nth($device, $n));\n } @else {\n @error \"Invalid device map: #{$devices}\";\n }\n }\n @if type-of($current) == list or\n type-of($current) == number {\n $current: (default: $current);\n }\n @return break-select-min-max($current);\n}\n\n// ----------------------------------------------------------------------------\n// Mixins\n// ----------------------------------------------------------------------------\n\n///\n/// A minimum-maximum media query breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {Number|List} $breakpoint Number or number pair\n///\n@mixin break-at($breakpoint) {\n @if type-of($breakpoint) == number {\n @media only screen and (min-width: $breakpoint) {\n @content;\n }\n } @elseif type-of($breakpoint) == list {\n $min: nth($breakpoint, 1);\n $max: nth($breakpoint, 2);\n @if type-of($min) == number and type-of($max) == number {\n @media only screen and (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// An orientation media query breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {String} $breakpoint Orientation\n///\n@mixin break-at-orientation($breakpoint) {\n @if type-of($breakpoint) == string {\n @media only screen and (orientation: $breakpoint) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// A maximum-aspect-ratio media query breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {Number} $breakpoint Ratio\n///\n@mixin break-at-ratio($breakpoint) {\n @if type-of($breakpoint) == number {\n @media only screen and (max-aspect-ratio: $breakpoint) {\n @content;\n }\n } @else {\n @error \"Invalid breakpoint: #{$breakpoint}\";\n }\n}\n\n///\n/// A minimum-maximum media query device breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {String|List} $breakpoint Device\n///\n@mixin break-at-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n @if nth($breakpoint, 2) != null {\n $min: nth($breakpoint, 1);\n $max: nth($breakpoint, 2);\n @media only screen and (min-width: $min) and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n\n///\n/// A minimum media query device breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {String|List} $breakpoint Device\n///\n@mixin break-from-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n $min: nth($breakpoint, 1);\n @media only screen and (min-width: $min) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n\n///\n/// A maximum media query device breakpoint\n///\n/// @group helpers\n/// @access public\n/// @param {String|List} $breakpoint Device\n///\n@mixin break-to-device($device) {\n @if type-of($device) == string {\n $device: $device,;\n }\n @if type-of($device) == list {\n $breakpoint: break-select-device($device);\n $max: nth($breakpoint, 2);\n @media only screen and (max-width: $max) {\n @content;\n }\n } @else {\n @error \"Invalid device: #{$device}\";\n }\n}\n"],"sourceRoot":"/source/"} \ No newline at end of file diff --git a/material/base.html b/material/base.html index 230d7e5eb..19cba13a5 100644 --- a/material/base.html +++ b/material/base.html @@ -20,11 +20,11 @@ {% endif %} - + - + {% for path in extra_css %} {% endfor %} @@ -87,7 +87,7 @@ {% include "partials/footer.html" %} - +