if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=newo(e.headers)),this.method=d(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)thrownewTypeError("Body not allowed for GET or HEAD requests");
functioni(t,e){functionn(t,e){returnfunction(){returnt.apply(e,arguments)}}varr;if(e=e||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=e.touchBoundary||10,this.layer=t,this.tapDelay=e.tapDelay||200,this.tapTimeout=e.tapTimeout||700,!i.notNeeded(t)){for(varo=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],s=this,u=0,c=o.length;u<c;u++)s[o[u]]=n(s[o[u]],s);a&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0)),t.addEventListener("click",this.onClick,!0),t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1),t.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(t.removeEventListener=function(e,n,r){varo=Node.prototype.removeEventListener;"click"===e?o.call(t,e,n.hijacked||n,r):o.call(t,e,n,r)},t.addEventListener=function(e,n,r){varo=Node.prototype.addEventListener;"click"===e?o.call(t,e,n.hijacked||(n.hijacked=function(t){t.propagationStopped||n(t)}),r):o.call(t,e,n,r)}),"function"==typeoft.onclick&&(r=t.onclick,t.addEventListener("click",function(t){r(t)},!1),t.onclick=null)}}vars=navigator.userAgent.indexOf("Windows Phone")>=0,a=navigator.userAgent.indexOf("Android")>0&&!s,u=/iP(ad|hone|od)/.test(navigator.userAgent)&&!s,c=u&&/OS 4_\d(_\d)?/.test(navigator.userAgent),l=u&&/OS [6-7]_\d/.test(navigator.userAgent),f=navigator.userAgent.indexOf("BB10")>0;i.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(u&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},i.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!a;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},i.prototype.sendClick=function(t,e){varn,r;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),r=e.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(t),!0,!0,window,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,t.dispatchEvent(n)},i.prototype.determineEventType=function(t){returna&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},i.prototype.focus=function(t){vare;u&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},i.prototype.updateScrollParent=function(t){vare,n;if(e=t.fastClickScrollParent,!e||!e.contains(t)){n=t;do{if(n.scrollHeight>n.offsetHeight){e=n,t.fastClickScrollParent=n;break}n=n.parentElement}while(n)}e&&(e.fastClickLastScrollTop=e.scrollTop)},i.prototype.getTargetElementFromEventTarget=function(t){returnt.nodeType===Node.TEXT_NODE?t.parentNode:t},i.prototype.onTouchStart=function(t){vare,n,r;if(t.targetTouches.length>1)return!0;if(e=this.getTargetElementFromEventTarget(t.target),n=t.targetTouches[0],u){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!c){if(n.identifier&&n.identifier===this.lastTouchIdentifier)returnt.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(e)}}returnthis.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=n.pageX,this.touchStartY=n.pageY,t.timeStamp-this.lastClickTime<this.tapDelay&&t.preventDefault(),!0},i.prototype.touchHasMoved=function(t){vare=t.changedTouches[0],n=this.touchBoundary;returnMath.abs(e.pageX-this.touchStartX)>n||Math.abs(e.pageY-this.touchStartY)>n},i.prototype.onTouchMove=function(t){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0)},i.prototype.findControl=function(t){returnvoid0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},i.prototype.onTouchEnd=function(t){vare,n,r,o,i,s=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<this.tapDelay)returnthis.cancelNextClick=!0,!0;if(t.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,l&&(i=t.changedTouches[0],s=document.elementFromPoint(i.pageX-window.pageXOffset,i.pageY-window.pageYOffset)||s,s.fastClickScrollParent=this.targetElement.fastClickScrollParent),r=s.tagName.toLowerCase(),"label"===r){if(e=this.findControl(s)){if(this.focus(s),a)return!1;s=e}}elseif(this.needsFocus(s))returnt.timeStamp-n>100||u&&window.top!==window&&"input"===r?(this.targetElement=null,!1):(this.focus(s),this.sendClick(s,t),u&&"select"===r||(this.targetElement=null,t.preventDefault()),!1);return!(!u||c||(o=s.fastClickScrollParent,!o||o.fastClickLastScrollTop===o.scrollTop))||(this.needsClick(s)||(t.preventDefault(),this.sendClick(s,t)),!1)},i.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},i.prototype.onMouse=function(t){return!this.targetElement||(!!t.forwardedTouchEvent||(!t.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1))))},i.prototype.onClick=function(t){vare;returnthis.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail||(e=this.onMouse(t),e||(this.targetElement=null),e)},i.prototype.destroy=function(){vart=this.layer;a&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},i.notNeeded=function(t){vare,n,r,o;if("undefined"==typeofwindow.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!a)return!0;if(e=document.querySelector("meta[name=viewport]")){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(n>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(f&&(r=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),r[1]>=10&&r[2]>=3&&(e=document.querySelector("meta[name=viewport]")))){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||(o=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],!!(o>=27&&(e=document.querySelector("meta[name=viewport]"),e&&(e.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))||("none"===t.style.touchAction||"manipulation"===t.style.touchAction))},i.attach=function(t,e){returnnewi(t,e)},"object"===o(n(69))&&n(69)?(r=function(){returni}.call(e,n,e,t),!(void0!==r&&(t.exports=r))):"undefined"!=typeoft&&t.exports?(t.exports=i.attach,t.exports.FastClick=i):window.FastClick=i}()},function(t,e){(function(e){t.exports=e}).call(e,{})},function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});varo=n(71),i=r(o),s=n(74),a=r(s),u=n(78),c=r(u),l=n(83),f=r(l),d=n(86),h=r(d);e.default={Event:i.default,Nav:a.default,Search:c.default,Sidebar:f.default,Source:h.default},t.exports=e.default},function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});varo=n(72),i=r(o),s=n(73),a=r(s);e.default={Listener:i.default,MatchMedia:a.default},t.exports=e.default},function(t,e){"use strict";functionn(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});varr=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){functiont(e,r,o){vari=this;n(this,t),this.els_="string"==typeofe?document.querySelectorAll(e):[].concat(e),this.handler_="function"==typeofo?{update:o}:o,this.events_=[].concat(r),this.update_=function(t){returni.handler_.update(t)}}returnr(t,[{key:"listen",value:function(){vart=this;Array.prototype.forEach.call(this.els_,function(e){t.events_.forEach(function(n){e.addEventListener(n,t.update_,!1)})}),"function"==typeofthis.handler_.setup&&this.handler_.setup()}},{key:"unlisten",value:function(){vart=this;Array.prototype.forEach.call(this.els_,function(e){t.events_.forEach(function(n){e.removeEventListener(n,t.update_)})}),"function"==typeofthis.handler_.reset&&this.handler_.reset()}}]),t}();e.default=o,t.exports=e.default},function(t,e){"use strict";functionn(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});varr=functiont(e,r){n(this,t),this.handler_=function(t){t.matches?r.listen():r.unlisten()};varo=window.matchMedia(e);o.addListener(this.handler_),this.handler_(o)};e.default=r,t.exports=e.default},function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});varo=n(75),i=r(o),s=n(76),a=r(s),u=n(77),c=r(u);e.default={Blur:i.default,Collapse:a.default,Scrolling:c.default},t.exports=e.default},function(t,e){"use strict";functionn(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});varr=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){functiont(e){n(this,t),this.els_="string"==typeofe?document.querySelectorAll(e):e,this.index_=0,this.offset_=window.pageYOffset,this.anchors_=[].map.call(this.els_,function(t){returndocument.getElementById(t.hash.substring(1))})}returnr(t,[{key:"setup",value:function(){this.update()}},{key:"update",value:function(){vart=window.pageYOffset;if(0!==this.anchors_.length){if(this.offset_<=t)for(vare=this.index_+1;e<this.els_.length&&this.anchors_[e].offsetTop-80<=t;e++)e>0&&(this.els_[e-1].dataset.mdState="blur"),this.index_=e;elsefor(varn=this.index_;n>=0;n--){if(!(this.anchors_[n].offsetTop-80>t)){this.index_=n;break}n>0&&(this.els_[n-1].dataset.mdState="")}this.offset_=t}}},{key:"reset",value:function(){Array.prototype.forEach.call(this.els_,function(t){t.dataset.mdState=""}),this.index_=0,this.offset_=window.pageYOffset}}]),t}();e.default=o,t.exports=e.default},function(t,e){"use strict";functionn(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});varr=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){functiont(e){n(this,t),this.el_="string"==typeofe?document.querySelector(e):e}returnr(t,[{key:"update",value:function(){vart=this,e=this.el_.getBoundingClientRect().height;e?(this.el_.style.maxHeight=e+"px",requestAnimationFrame(function(){t.el_.setAttribute("data-md-state","animate"),t.el_.style.maxHeight="0px"})):!function(){t.el_.setAttribute("data-md-state","expand"),t.el_.style.maxHeight="";vare=t.el_.getBoundingClientRect().height;t.el_.removeAttribute("data-md-state"),t.el_.style.maxHeight="0px",requestAnimationFrame(function(){t.el_.setAttribute("data-md-state","animate"),t.el_.style.maxHeight=e+"px"})}();varn=functiont(e){e.target.removeAttribute("data-md-state"),e.target.style.maxHeight="",e.target.removeEventListener("transitionend",t)};this.el_.addEventListener("transitionend",n,!1)}},{key:"reset",value:function(){this.el_.dataset.mdState="",this.el_.style.maxHeight=""}}]),t}();e.default=o,t.exports=e.default},function(t,e){"use strict";functionn(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});varr=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){functiont(e){n(this,t),this.el_="string"==typeofe?document.querySelector(e):e}returnr(t,[{key:"setup",value:function(){this.el_.children[1].style.webkitOverflowScrolling="touch";vart=this.el_.querySelectorAll("[data-md-toggle]");Array.prototype.forEach.call(t,function(t){if(t.checked){for(vare=t.nextElementSibling;"NAV"!==e.tagName;)e=e.nextElementSibling;varn=t.parentNode.parentNode,r=e.children[e.children.length-1];n.style.webkitOverflowScrolling="",r.style.webkitOverflowScrolling="touch"}})}},{key:"update",value:function(t){for(vare=t.target.nextElementSibling;"NAV"!==e.tagName;)e=e.nextElementSibling;varn=t.target.parentNode.parentNode,r=e.children[e.children.length-1];n.style.webkitOverflowScrolling="",r.style.webkitOverflowScrolling="",t.target.checked||!function(){vart=functiont(){n.style.webkitOverflowScrolling="touch",e.removeEventListener("transitionend",t)};e.addEventListener("transitionend",t,!1)}(),t.target.checked&&!function(){vart=functiont(){r.style.webkitOverflowScrolling="touch",e.removeEventListener("transitionend",t,!1)};e.addEventListener("transitionend",t,!1)}()}},{key:"reset",value:function(){this.el_.children[1].style.webkitOverflowScrolling="";vart=this.el_.querySelectorAll("[data-md-toggle]");Array.prototype.forEach.call(t,function(t){if(t.checked){for(vare=t.nextElementSibling;"NAV"!==e.tagName;)e=e.nextElementSibling;varn=t.parentNode.parentNode,r=e.children[e.children.length-1];n.style.webkitOverflowScrolling="",r.style.webkitOverflowScrolling=""}})}}]),t}();e.default=o,t.exports=e.default},function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});varo=n(79),i=r(o),s=n(80),a=r(s);e.default={Lock:i.default,Result:a.default},t.exports=e.default},function(t,e){"use strict";functionn(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});varr=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){functiont(e){n(this,t),this.el_="string"==typeofe?document.querySelector(e):e}returnr(t,[{key:"setup",value:function(){this.update()}},{key:"update",value:function(){vart=this;this.el_.checked?(this.offset_=window.pageYOffset,setTimeout(function(){window.scrollTo(0,0),t.el_.checked&&(document.body.dataset.mdState="lock")},400)):(document.body.dataset.mdState="",setTimeout(function(){"undefined"!=typeoft.offset_&&window.scrollTo(0,t.offset_)},100))}},{key:"reset",value:function(){"lock"===document.body.dataset.mdState&&window.scrollTo(0,this.offset_),document.body.dataset.mdState=""}}]),t}();e.default=o,t.exports=e.default},function(t,e,n){(function(r){"use strict";functiono(t){returnt&&t.__esModule?t:{default:t}}functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});vars=function(){functiont(t,e){varn=[],r=!0,o=!1,i=void0;try{for(vars,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throwi}}returnn}returnfunction(e,n){if(Array.isArray(e))returne;if(Symbol.iteratorinObject(e))returnt(e,n);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(82),c=o(u),l=function(){functiont(e,n){i(this,t),this.el_="string"==typeofe?document.querySelector(e):e,this.data_=n,this.meta_=r.createElement("div",{class:"md-search-result__meta"},"Type to start searching"),this.list_=r.createElement("ol",{class:"md-search-result__list"}),this.el_.appendChild(this.meta_),this.el_.appendChild(this.list_),this.truncate_=function(t,e){varn=e;if(t.length>n){for(;""!==t[n]&&--n>0;);returnt.substring(0,n)+"..."}returnt}}returna(t,[{key:"update",value:function(t){vare=this;if("focus"!==t.type||this.index_){if("keyup"===t.type){for(;this.list_.firstChild;)this.list_.removeChild(this.list_.firstChild);varn=this.index_.search(t.target.value);n.forEach(function(t){varn=e.data_[t.ref],o=n.location.split("#"),i=s(o,1),a=i[0];a=a.replace(/^(\/?\.{2})+/g,""),e.list_.appendChild(r.createElement("li",{class:"md-search-result__item"},r.createElement("a",{href:n.location,title:n.title,class:"md-search-result__link","data-md-rel":a===document.location.pathname?"anchor":""},r.createElement("article",{class:"md-search-result__article"},r.createElement("h1",{class:"md-search-result__title"},n.title),r.createElement("p",{class:"md-search-result__teaser"},e.truncate_(n.text,140))))))});varo=this.list_.querySelectorAll("[data-md-rel=anchor]");Array.prototype.forEach.call(o,function(t){t.addEventListener("click",function(e){varn=document.querySelector("[data-md-toggle=search]");n.checked&&(n.checked=!1,n.dispatchEvent(newCustomEvent("change"))),e.preventDefault(),setTimeout(function(){document.location.href=t.href},100)})}),this.meta_.textContent=n.length+" search result"+(1!==n.length?"s":"")}}else!function(){vart=function(t){e.index_=(0,c.default)(function(){this.field("title",{boost:10}),this.field("text"),this.ref("location")}),e.data_=t.reduce(function(t,n){returne.index_.add(n),t[n.location]=n,t},{})};setTimeout(function(){return"function"==typeofe.data_?e.data_().then(t):t(e.data_)},250)}()}}]),t}();e.default=l,t.exports=e.default}).call(e,n(81))},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={createElement:function(t,e){varn=document.createElement(t);e&&Array.prototype.forEach.call(Object.keys(e),function(t){n.setAttribute(t,e[t])});for(varr=functiont(e){Array.prototype.forEach.call(e,function(e){"string"==typeofe||"number"==typeofe?n.textContent+=e:Array.isArray(e)?t(e):n.appendChild(e)})},o=arguments.length,i=Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];returnr(i),n}},t.exports=e.default},function(t,e,n){varr,o;"function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft};!function(){vari=functiont(e){varn=newt.Index;returnn.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};i.version="0.7.2",/*!
i.EventEmitter=function(){this.events={}},i.EventEmitter.prototype.addListener=function(){vart=Array.prototype.slice.call(arguments),e=t.pop(),n=t;if("function"!=typeofe)thrownewTypeError("last argument must be a function");n.forEach(function(t){this.hasHandler(t)||(this.events[t]=[]),this.events[t].push(e)},this)},i.EventEmitter.prototype.removeListener=function(t,e){if(this.hasHandler(t)){varn=this.events[t].indexOf(e);this.events[t].splice(n,1),this.events[t].length||deletethis.events[t]}},i.EventEmitter.prototype.emit=function(t){if(this.hasHandler(t)){vare=Array.prototype.slice.call(arguments,1);this.events[t].forEach(function(t){t.apply(void0,e)})}},i.EventEmitter.prototype.hasHandler=function(t){returntinthis.events},/*!
i.Pipeline=function(){this._stack=[]},i.Pipeline.registeredFunctions={},i.Pipeline.registerFunction=function(t,e){einthis.registeredFunctions&&i.utils.warn("Overwriting existing registered function: "+e),t.label=e,i.Pipeline.registeredFunctions[t.label]=t},i.Pipeline.warnIfFunctionNotRegistered=function(t){vare=t.label&&t.labelinthis.registeredFunctions;e||i.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},i.Pipeline.load=function(t){vare=newi.Pipeline;returnt.forEach(function(t){varn=i.Pipeline.registeredFunctions[t];if(!n)thrownewError("Cannot load un-registered function: "+t);e.add(n)}),e},i.Pipeline.prototype.add=function(){vart=Array.prototype.slice.call(arguments);t.forEach(function(t){i.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)},this)},i.Pipeline.prototype.after=function(t,e){i.Pipeline.warnIfFunctionNotRegistered(e);varn=this._stack.indexOf(t);if(n==-1)thrownewError("Cannot find existingFn");n+=1,this._stack.splice(n,0,e)},i.Pipeline.prototype.before=function(t,e){i.Pipeline.warnIfFunctionNotRegistered(e);varn=this._stack.indexOf(t);if(n==-1)thrownewError("Cannot find existingFn");this._stack.splice(n,0,e)},i.Pipeline.prototype.remove=function(t){vare=this._stack.indexOf(t);e!=-1&&this._stack.splice(e,1)},i.Pipeline.prototype.run=function(t){for(vare=[],n=t.length,r=this._stack.length,o=0;o<n;o++){for(vari=t[o],s=0;s<r&&(i=this._stack[s](i,o,t),void0!==i&&""!==i);s++);void0!==i&&""!==i&&e.push(i)}returne},i.Pipeline.prototype.reset=function(){this._stack=[]},i.Pipeline.prototype.toJSON=function(){returnthis._stack.map(function(t){returni.Pipeline.warnIfFunctionNotRegistered(t),t.label})},/*!
i.Index=function(){this._fields=[],this._ref="id",this.pipeline=newi.Pipeline,this.documentStore=newi.Store,this.tokenStore=newi.TokenStore,this.corpusTokens=newi.SortedSet,this.eventEmitter=newi.EventEmitter,this.tokenizerFn=i.tokenizer,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},i.Index.prototype.on=function(){vart=Array.prototype.slice.call(arguments);returnthis.eventEmitter.addListener.apply(this.eventEmitter,t)},i.Index.prototype.off=function(t,e){returnthis.eventEmitter.removeListener(t,e)},i.Index.load=function(t){t.version!==i.version&&i.utils.warn("version mismatch: current "+i.version+" importing "+t.version);vare=newthis;returne._fields=t.fields,e._ref=t.ref,e.tokenizer(i.tokenizer.load(t.tokenizer)),e.documentStore=i.Store.load(t.documentStore),e.tokenStore=i.TokenStore.load(t.tokenStore),e.corpusTokens=i.SortedSet.load(t.corpusTokens),e.pipeline=i.Pipeline.load(t.pipeline),e},i.Index.prototype.field=function(t,e){vare=e||{},n={name:t,boost:e.boost||1};returnthis._fields.push(n),this},i.Index.prototype.ref=function(t){returnthis._ref=t,this},i.Index.prototype.tokenizer=function(t){vare=t.label&&t.labelini.tokenizer.registeredFunctions;returne||i.utils.warn("Function is not a registered tokenizer. This may cause problems when serialising the index"),this.tokenizerFn=t,this},i.Index.prototype.add=function(t,e){varn={},r=newi.SortedSet,o=t[this._ref],e=void0===e||e;this._fields.forEach(function(e){varo=this.pipeline.run(this.tokenizerFn(t[e.name]));n[e.name]=o;for(vari=0;i<o.length;i++){vars=o[i];r.add(s),this.corpusTokens.add(s)}},this),this.documentStore.set(o,r);for(vars=0;s<r.length;s++){for(vara=r.elements[s],u=0,c=0;c<this._fields.length;c++){varl=this._fields[c],f=n[l.name],d=f.length;if(d){for(varh=0,p=0;p<d;p++)f[p]===a&&h++;u+=h/d*l.boost}}this.tokenStore.add(a,{ref:o,tf:u})}e&&this.eventEmitter.emit("add",t,this)},i.Index.prototype.remove=function(t,e){varn=t[this._ref],e=void0===e||e;if(this.documentStore.has(n)){varr=this.documentStore.get(n);this.documentStore.remove(n),r.forEach(function(t){this.tokenStore.remove(t,n)},this),e&&this.eventEmitter.emit("remove",t,this)}},i.Index.prototype.update=function(t,e){vare=void0===e||e;this.remove(t,!1),this.add(t,!1),e&&this.eventEmitter.emit("update",t,this)},i.Index.prototype.idf=function(t){vare="@"+t;if(Object.prototype.hasOwnProperty.call(this._idfCache,e))returnthis._idfCache[e];varn=this.tokenStore.count(t),r=1;returnn>0&&(r=1+Math.log(this.documentStore.length/n)),this._idfCache[e]=r},i.Index.prototype.search=function(t){vare=this.pipeline.run(this.tokenizerFn(t)),n=newi.Vector,r=[],o=this._fields.reduce(function(t,e){returnt+e.boost},0),s=e.some(function(t){returnthis.tokenStore.has(t)},this);if(!s)return[];e.forEach(function(t,e,s){vara=1/s.length*this._fields.length*o,u=this,c=this.tokenStore.expand(t).reduce(function(e,r){varo=u.corpusTokens.indexOf(r),s=u.idf(r),c=1,l=newi.SortedSet;if(r!==t){varf=Math.max(3,r.length-t.length);c=1/Math.log(f)}o>-1&&n.insert(o,a*s*c);for(vard=u.tokenStore.get(r),h=Object.keys(d),p=h.length,v=0;v<p;v++)l.add(d[h[v]].ref);returne.union(l)},newi.SortedSet);r.push(c)},this);vara=r.reduce(function(t,e){returnt.intersect(e)});returna.map(function(t){return{ref:t,score:n.similarity(this.documentVector(t))}},this).sort(function(t,e){returne.score-t.score})},i.Index.prototype.documentVector=function(t){for(vare=this.documentStore.get(t),n=e.length,r=newi.Vector,o=0;o<n;o++){vars=e.elements[o],a=this.tokenStore.get(s)[t].tf,u=this.idf(s);r.insert(this.corpusTokens.indexOf(s),a*u)}returnr},i.Index.prototype.toJSON=function(){return{version:i.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()}},i.Index.prototype.use=function(t){vare=Array.prototype.slice.call(arguments,1);e.unshift(this),t.apply(this,e)},/*!
i.TokenStore=function(){this.root={docs:{}},this.length=0},i.TokenStore.load=function(t){vare=newthis;returne.root=t.root,e.length=t.length,e},i.TokenStore.prototype.add=function(t,e,n){varn=n||this.root,r=t.charAt(0),o=t.slice(1);returnrinn||(n[r]={docs:{}}),0===o.length?(n[r].docs[e.ref]=e,void(this.length+=1)):this.add(o,e,n[r])},i.TokenStore.prototype.has=function(t){if(!t)return!1;for(vare=this.root,n=0;n<t.length;n++){if(!e[t.charAt(n)])return!1;e=e[t.charAt(n)]}return!0},i.TokenStore.prototype.getNode=function(t){if(!t)return{};for(vare=this.root,n=0;n<t.length;n++){if(!e[t.charAt(n)])return{};e=e[t.charAt(n)]}returne},i.TokenStore.prototype.get=function(t,e){returnthis.getNode(t,e).docs||{}},i.TokenStore.prototype.count=function(t,e){returnObject.keys(this.get(t,e)).length},i.TokenStore.prototype.remove=function(t,e){if(t){for(varn=this.root,r=0;r<t.length;r++){if(!(t.charAt(r)inn))return;n=n[t.charAt(r)]}deleten.docs[e]}},i.TokenStore.prototype.expand=function(t,e){varn=this.getNode(t),r=n.docs||{},e=e||[];returnObject.keys(r).length&&e.push(t),Object.keys(n).forEach(function(n){"docs"!==n&&e.concat(this.expand(t+n,e))},this),e},i.TokenStore.prototype.toJSON=function(){return{root:this.root,length:this.length}},function(i,s){r=s,o="function"==typeofr?r.call(e,n,e,t):r,!(void0!==o&&(t.exports=o))}(this,function(){returni})}()},function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});varo=n(84),i=r(o),s=n(85),a=r(s);e.default={Container:i.default,Position:a.default},t.exports=e.default},function(t,e){"use strict";functionn(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});varr=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){functiont(e){n(this,t),this.el_="string"==typeofe?document.querySelector(e):e,this.parent_=this.el_.parentNode}returnr(t,[{key:"setup",value:function(){this.update()}},{key:"update",value:function(){vart=this.parent_.offsetHeight-this.el_.offsetTop;this.el_.style.minHeight=t+"px"}},{key:"reset",value:function(){this.el_.style.minHeight=""}}]),t}();e.default=o,t.exports=e.default},function(t,e){"use strict";functionn(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});varr=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){functiont(e){n(this,t),this.el_="string"==typeofe?document.querySelector(e):e,this.parent_=this.el_.parentNode,this.height_=0}returnr(t,[{key:"setup",value:function(){this.offset_=this.el_.offsetTop-this.parent_.offsetTop,this.update()}},{key:"update",value:function(){vart=window.pageYOffset,e=window.innerHeight;this.bounds_={top:this.parent_.offsetTop,bottom:this.parent_.offsetTop+this.parent_.offsetHeight};varn=e-this.bounds_.top-Math.max(0,this.offset_-t)-Math.max(0,t+e-this.bounds_.bottom);n!==this.height_&&(this.el_.style.height=(this.height_=n)+"px"),t>=this.offset_?"lock"!==this.el_.dataset.mdState&&(this.el_.dataset.mdState="lock"):"lock"===this.el_.dataset.mdState&&(this.el_.dataset.mdState="")}},{key:"reset",value:function(){this.el_.dataset.mdState="",this.el_.style.height="",this.height_=0}}]),t}();e.default=o,t.exports=e.default},function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});varo=n(87),i=r(o),s=n(91),a=r(s);e.default={Adapter:i.default,Repository:a.default},t.exports=e.default},function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});varo=n(88),i=r(o);e.default={GitHub:i.default},t.exports=e.default},function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}functiono(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functioni(t,e){if(!t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeofe&&"function"!=typeofe?t:e}functions(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});vara=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(89),c=r(u),l=function(t){functione(t){o(this,e);varn=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));returnn.base_=n.base_.replace("github.com/","api.github.com/repos/"),n}returns(e,t),a(e,[{key:"fetch_",value:function(){vart=this;returnfetch(this.base_).then(function(t){returnt.json()}).then(function(e){return[t.format_(e.stargazers_count)+" Stars",t.format_(e.forks_count)+" Forks"]})}}]),e}(c.default);e.default=l,t.exports=e.default},function(t,e,n){"use strict";functionr(t){returnt&&t.__esModule?t:{default:t}}functiono(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});vari=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(90),a=r(s),u=function(){functiont(e){o(this,t),this.el_="string"==typeofe?document.querySelector(e):e,this.base_=this.el_.href,this.salt_=this.hash_(this.base_)}returni(t,[{key:"fetch",value:function(){vart=this;returnnewPromise(function(e){varn=a.default.getJSON(t.salt_+".cache-source");"undefined"!=typeofn?e(n):t.fetch_().then(function(n){a.default.set(t.salt_+".cache-source",n,{expires:1/96}),e(n)})})}},{key:"fetch_",value:function(){thrownewError("fetch_(): Not implemented")}},{key:"format_",value:function(t){returnt>1e4?(t/1e3).toFixed(0)+"k":t>1e3?(t/1e3).toFixed(1)+"k":t}},{key:"hash_",value:function(t){vare=0;if(0===t.length)returne;for(varn=0,r=t.length;n<r;n++)e=(e<<5)-e+t.charCodeAt(n),e|=0;returne}}]),t}();e.default=u,t.exports=e.default},function(t,e,n){varr,o,i="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft};!function(s){vara=!1;if(r=s,o="function"==typeofr?r.call(e,n,e,t):r,!(void0!==o&&(t.exports=o)),a=!0,"object"===i(e)&&(t.exports=s(),a=!0),!a){varu=window.Cookies,c=window.Cookies=s();c.noConflict=function(){returnwindow.Cookies=u,c}}}(function(){functiont(){for(vart=0,e={};t<arguments.length;t++){varn=arguments[t];for(varrinn)e[r]=n[r]}returne}functione(n){functionr(e,o,i){vars;if("undefined"!=typeofdocument){if(arguments.length>1){if(i=t({path:"/"},r.defaults,i),"number"==typeofi.expires){vara=newDate;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}try{s=JSON.stringify(o),/^[\{\[]/.test(s)&&(o=s)}catch(t){}returno=n.write?n.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape),document.cookie=[e,"=",o,i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}e||(s={});for(varu=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,l=0;l<u.length;l++){varf=u[l].split("="),d=f.slice(1).join("=");'"'===d.charAt(0)&&(d=d.slice(1,-1));try{varh=f[0].replace(c,decodeURIComponent);if(d=n.read?n.read(d,h):n(d,h)||d.replace(c,decodeURIComponent),this.json)try{d=JSON.parse(d)}catch(t){}if(e===h){s=d;break}e||(s[h]=d)}catch(t){}}returns}}returnr.set=r,r.get=function(t){returnr.call(r,t)},r.getJSON=function(){returnr.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(e,n){r(e,"",t(n,{expires:-1}))},r.withConverter=e,r}returne(function(){})})},function(t,e,n){(function(n){"use strict";functionr(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});varo=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){functiont(e){r(this,t),this.el_="string"==typeofe?document.querySelector(e):e}returno(t,[{key:"initialize",value:function(t){t.length&&this.el_.children[this.el_.children.length-1].appendChild(n.createElement("ul",{class:"md-source__facts"},t.map(function(t){returnn.createElement("li",{class:"md-source__fact"},t)}))),this.el_.dataset.mdState="done"}}]),t}();e.default=i,t.exports=e.default}).call(e,n(81))}]);