mkdocs-material/material/assets/javascripts/application-cd89c74ae5.js

58 lines
56 KiB
JavaScript
Raw Normal View History

var Application=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].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){n(1),e.exports=n(2)},function(e,t){"use strict";!function(e){function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!=typeof e&&(e=String(e)),e}function r(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return v.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function a(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function s(e){var t=new FileReader;return t.readAsArrayBuffer(e),a(t)}function u(e){var t=new FileReader;return t.readAsText(e),a(t)}function l(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(v.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(v.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(v.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(e){if(!v.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):v.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},v.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(s)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return u(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e?e:Promise.resolve(this._bodyText)},v.formData&&(this.formData=function(){return this.text().then(d)}),this.json=function(){return this.text().then(JSON.parse)},this}function c(e){var t=e.toUpperCase();return m.indexOf(t)>-1?t:e}function f(e,t){t=t||{};var n=t.body;if(f.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=c(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function d(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function h(e){var t=new o,n=(e.getAllResponseHeaders()||"").trim().split("\n");return n.forEach(function(e){var n=e.trim().split(":"),r=n.shift().trim(),o=n.join(":").trim();t.append(r,o)}),t}function p(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof o?t.headers:new o(t.headers),this.url=t.url||"",th
* @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 i(e,t){function n(e,t){return function(){return e.apply(t,arguments)}}var r;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,!i.notNeeded(e)){for(var o=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],a=this,u=0,l=o.length;u<l;u++)a[o[u]]=n(a[o[u]],a);s&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,n,r){var o=Node.prototype.removeEventListener;"click"===t?o.call(e,t,n.hijacked||n,r):o.call(e,t,n,r)},e.addEventListener=function(t,n,r){var o=Node.prototype.addEventListener;"click"===t?o.call(e,t,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),r):o.call(e,t,n,r)}),"function"==typeof e.onclick&&(r=e.onclick,e.addEventListener("click",function(e){r(e)},!1),e.onclick=null)}}var a=navigator.userAgent.indexOf("Windows Phone")>=0,s=navigator.userAgent.indexOf("Android")>0&&!a,u=/iP(ad|hone|od)/.test(navigator.userAgent)&&!a,l=u&&/OS 4_\d(_\d)?/.test(navigator.userAgent),c=u&&/OS [6-7]_\d/.test(navigator.userAgent),f=navigator.userAgent.indexOf("BB10")>0;i.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(u&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},i.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)}},i.prototype.sendClick=function(e,t){var n,r;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),r=t.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(e),!0,!0,window,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,e.dispatchEvent(n)},i.prototype.determineEventType=function(e){return s&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},i.prototype.focus=function(e){var t;u&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},i.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)},i.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},i.prototype.onTouchStart=function(e){var t,n,r;if(e.targetTouches.length>1)return!0;if(t=this.getTargetElementFromEventTarget(e.target),n=e.targetTouches[0],u){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!l){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.lastClickTime<this.tapDelay&&e.preventDefault(),!0},i.prototype.touchHasMoved=function(e){var t=e.changedTouches[0],n=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n},i.prototype.onTouchMove=function(e){return!this.trackingClick||((this.targetElement!==this.
* lunr.utils
* Copyright (C) 2016 Oliver Nightingale
*/
i.utils={},i.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),i.utils.asString=function(e){return void 0===e||null===e?"":e.toString()},/*!
* lunr.EventEmitter
* Copyright (C) 2016 Oliver Nightingale
*/
i.EventEmitter=function(){this.events={}},i.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)},i.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]}},i.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)})}},i.EventEmitter.prototype.hasHandler=function(e){return e in this.events},/*!
* lunr.tokenizer
* Copyright (C) 2016 Oliver Nightingale
*/
i.tokenizer=function(e){return arguments.length&&null!=e&&void 0!=e?Array.isArray(e)?e.map(function(e){return i.utils.asString(e).toLowerCase()}):e.toString().trim().toLowerCase().split(i.tokenizer.seperator):[]},i.tokenizer.seperator=/[\s\-]+/,i.tokenizer.load=function(e){var t=this.registeredFunctions[e];if(!t)throw new Error("Cannot load un-registered function: "+e);return t},i.tokenizer.label="default",i.tokenizer.registeredFunctions={"default":i.tokenizer},i.tokenizer.registerFunction=function(e,t){t in this.registeredFunctions&&i.utils.warn("Overwriting existing tokenizer: "+t),e.label=t,this.registeredFunctions[t]=e},/*!
* lunr.Pipeline
* Copyright (C) 2016 Oliver Nightingale
*/
i.Pipeline=function(){this._stack=[]},i.Pipeline.registeredFunctions={},i.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&i.utils.warn("Overwriting existing registered function: "+t),e.label=t,i.Pipeline.registeredFunctions[e.label]=e},i.Pipeline.warnIfFunctionNotRegistered=function(e){var t=e.label&&e.label in this.registeredFunctions;t||i.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},i.Pipeline.load=function(e){var t=new i.Pipeline;return e.forEach(function(e){var n=i.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load un-registered function: "+e);t.add(n)}),t},i.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){i.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},i.Pipeline.prototype.after=function(e,t){i.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)},i.Pipeline.prototype.before=function(e,t){i.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},i.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);t!=-1&&this._stack.splice(t,1)},i.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,r=this._stack.length,o=0;o<n;o++){for(var i=e[o],a=0;a<r&&(i=this._stack[a](i,o,e),void 0!==i&&""!==i);a++);void 0!==i&&""!==i&&t.push(i)}return t},i.Pipeline.prototype.reset=function(){this._stack=[]},i.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return i.Pipeline.warnIfFunctionNotRegistered(e),e.label})},/*!
* lunr.Vector
* Copyright (C) 2016 Oliver Nightingale
*/
i.Vector=function(){this._magnitude=null,this.list=void 0,this.length=0},i.Vector.Node=function(e,t,n){this.idx=e,this.val=t,this.next=n},i.Vector.prototype.insert=function(e,t){this._magnitude=void 0;var n=this.list;if(!n)return this.list=new i.Vector.Node(e,t,n),this.length++;if(e<n.idx)return this.list=new i.Vector.Node(e,t,n),this.length++;for(var r=n,o=n.next;void 0!=o;){if(e<o.idx)return r.next=new i.Vector.Node(e,t,o),this.length++;r=o,o=o.next}return r.next=new i.Vector.Node(e,t,o),this.length++},i.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e,t=this.list,n=0;t;)e=t.val,n+=e*e,t=t.next;return this._magnitude=Math.sqrt(n)},i.Vector.prototype.dot=function(e){for(var t=this.list,n=e.list,r=0;t&&n;)t.idx<n.idx?t=t.next:t.idx>n.idx?n=n.next:(r+=t.val*n.val,t=t.next,n=n.next);return r},i.Vector.prototype.similarity=function(e){return this.dot(e)/(this.magnitude()*e.magnitude())},/*!
* lunr.SortedSet
* Copyright (C) 2016 Oliver Nightingale
*/
i.SortedSet=function(){this.length=0,this.elements=[]},i.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},i.SortedSet.prototype.add=function(){var e,t;for(e=0;e<arguments.length;e++)t=arguments[e],~this.indexOf(t)||this.elements.splice(this.locationFor(t),0,t);this.length=this.elements.length},i.SortedSet.prototype.toArray=function(){return this.elements.slice()},i.SortedSet.prototype.map=function(e,t){return this.elements.map(e,t)},i.SortedSet.prototype.forEach=function(e,t){return this.elements.forEach(e,t)},i.SortedSet.prototype.indexOf=function(e){for(var t=0,n=this.elements.length,r=n-t,o=t+Math.floor(r/2),i=this.elements[o];r>1;){if(i===e)return o;i<e&&(t=o),i>e&&(n=o),r=n-t,o=t+Math.floor(r/2),i=this.elements[o]}return i===e?o:-1},i.SortedSet.prototype.locationFor=function(e){for(var t=0,n=this.elements.length,r=n-t,o=t+Math.floor(r/2),i=this.elements[o];r>1;)i<e&&(t=o),i>e&&(n=o),r=n-t,o=t+Math.floor(r/2),i=this.elements[o];return i>e?o:i<e?o+1:void 0},i.SortedSet.prototype.intersect=function(e){for(var t=new i.SortedSet,n=0,r=0,o=this.length,a=e.length,s=this.elements,u=e.elements;;){if(n>o-1||r>a-1)break;s[n]!==u[r]?s[n]<u[r]?n++:s[n]>u[r]&&r++:(t.add(s[n]),n++,r++)}return t},i.SortedSet.prototype.clone=function(){var e=new i.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},i.SortedSet.prototype.union=function(e){var t,n,r;this.length>=e.length?(t=this,n=e):(t=e,n=this),r=t.clone();for(var o=0,i=n.toArray();o<i.length;o++)r.add(i[o]);return r},i.SortedSet.prototype.toJSON=function(){return this.toArray()},/*!
* lunr.Index
* Copyright (C) 2016 Oliver Nightingale
*/
i.Index=function(){this._fields=[],this._ref="id",this.pipeline=new i.Pipeline,this.documentStore=new i.Store,this.tokenStore=new i.TokenStore,this.corpusTokens=new i.SortedSet,this.eventEmitter=new i.EventEmitter,this.tokenizerFn=i.tokenizer,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},i.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},i.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},i.Index.load=function(e){e.version!==i.version&&i.utils.warn("version mismatch: current "+i.version+" importing "+e.version);var t=new this;return t._fields=e.fields,t._ref=e.ref,t.tokenizer=i.tokenizer.load(e.tokenizer),t.documentStore=i.Store.load(e.documentStore),t.tokenStore=i.TokenStore.load(e.tokenStore),t.corpusTokens=i.SortedSet.load(e.corpusTokens),t.pipeline=i.Pipeline.load(e.pipeline),t},i.Index.prototype.field=function(e,t){var t=t||{},n={name:e,boost:t.boost||1};return this._fields.push(n),this},i.Index.prototype.ref=function(e){return this._ref=e,this},i.Index.prototype.tokenizer=function(e){var t=e.label&&e.label in i.tokenizer.registeredFunctions;return t||i.utils.warn("Function is not a registered tokenizer. This may cause problems when serialising the index"),this.tokenizerFn=e,this},i.Index.prototype.add=function(e,t){var n={},r=new i.SortedSet,o=e[this._ref],t=void 0===t||t;this._fields.forEach(function(t){var o=this.pipeline.run(this.tokenizerFn(e[t.name]));n[t.name]=o;for(var i=0;i<o.length;i++){var a=o[i];r.add(a),this.corpusTokens.add(a)}},this),this.documentStore.set(o,r);for(var a=0;a<r.length;a++){for(var s=r.elements[a],u=0,l=0;l<this._fields.length;l++){var c=this._fields[l],f=n[c.name],d=f.length;if(d){for(var h=0,p=0;p<d;p++)f[p]===s&&h++;u+=h/d*c.boost}}this.tokenStore.add(s,{ref:o,tf:u})}t&&this.eventEmitter.emit("add",e,this)},i.Index.prototype.remove=function(e,t){var n=e[this._ref],t=void 0===t||t;if(this.documentStore.has(n)){var r=this.documentStore.get(n);this.documentStore.remove(n),r.forEach(function(e){this.tokenStore.remove(e,n)},this),t&&this.eventEmitter.emit("remove",e,this)}},i.Index.prototype.update=function(e,t){var t=void 0===t||t;this.remove(e,!1),this.add(e,!1),t&&this.eventEmitter.emit("update",e,this)},i.Index.prototype.idf=function(e){var t="@"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,t))return this._idfCache[t];var n=this.tokenStore.count(e),r=1;return n>0&&(r=1+Math.log(this.documentStore.length/n)),this._idfCache[t]=r},i.Index.prototype.search=function(e){var t=this.pipeline.run(this.tokenizerFn(e)),n=new i.Vector,r=[],o=this._fields.reduce(function(e,t){return e+t.boost},0),a=t.some(function(e){return this.tokenStore.has(e)},this);if(!a)return[];t.forEach(function(e,t,a){var s=1/a.length*this._fields.length*o,u=this,l=this.tokenStore.expand(e).reduce(function(t,r){var o=u.corpusTokens.indexOf(r),a=u.idf(r),l=1,c=new i.SortedSet;if(r!==e){var f=Math.max(3,r.length-e.length);l=1/Math.log(f)}o>-1&&n.insert(o,s*a*l);for(var d=u.tokenStore.get(r),h=Object.keys(d),p=h.length,v=0;v<p;v++)c.add(d[h[v]].ref);return t.union(c)},new i.SortedSet);r.push(l)},this);var s=r.reduce(function(e,t){return e.intersect(t)});return s.map(function(e){return{ref:e,score:n.similarity(this.documentVector(e))}},this).sort(function(e,t){return t.score-e.score})},i.Index.prototype.documentVector=function(e){for(var t=this.documentStore.get(e),n=t.length,r=new i.Vector,o=0;o<n;o++){var a=t.elements[o],s=this.tokenStore.get(a)[e].tf,u=this.idf(a);r.insert(this.corpusTokens.indexOf(a),s*u)}return r},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(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},/*!
* lunr.Store
* Copyright (C) 2016 Oliver Nightingale
*/
i.Store=function(){this.store={},this.length=0},i.Store.load=function(e){var t=new this;return t.length=e.length,t.store=Object.keys(e.store).reduce(function(t,n){return t[n]=i.SortedSet.load(e.store[n]),t},{}),t},i.Store.prototype.set=function(e,t){this.has(e)||this.length++,this.store[e]=t},i.Store.prototype.get=function(e){return this.store[e]},i.Store.prototype.has=function(e){return e in this.store},i.Store.prototype.remove=function(e){this.has(e)&&(delete this.store[e],this.length--)},i.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
*/
i.stemmer=function(){var e={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"},t={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[^aeiou]",r="[aeiouy]",o=n+"[^aeiouy]*",i=r+"[aeiou]*",a="^("+o+")?"+i+o,s="^("+o+")?"+i+o+"("+i+")?$",u="^("+o+")?"+i+o+i+o,l="^("+o+")?"+r,c=new RegExp(a),f=new RegExp(u),d=new RegExp(s),h=new RegExp(l),p=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,m=/^(.+?)eed$/,y=/^(.+?)(ed|ing)$/,g=/.$/,w=/(at|bl|iz)$/,b=new RegExp("([^aeiouylsz])\\1$"),_=new RegExp("^"+o+r+"[^aeiouwxy]$"),S=/^(.+?[^aeiou])y$/,k=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,x=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,E=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,T=/^(.+?)(s|t)(ion)$/,O=/^(.+?)e$/,C=/ll$/,P=new RegExp("^"+o+r+"[^aeiouwxy]$"),M=function(n){var r,o,i,a,s,u,l;if(n.length<3)return n;if(i=n.substr(0,1),"y"==i&&(n=i.toUpperCase()+n.substr(1)),a=p,s=v,a.test(n)?n=n.replace(a,"$1$2"):s.test(n)&&(n=n.replace(s,"$1$2")),a=m,s=y,a.test(n)){var M=a.exec(n);a=c,a.test(M[1])&&(a=g,n=n.replace(a,""))}else if(s.test(n)){var M=s.exec(n);r=M[1],s=h,s.test(r)&&(n=r,s=w,u=b,l=_,s.test(n)?n+="e":u.test(n)?(a=g,n=n.replace(a,"")):l.test(n)&&(n+="e"))}if(a=S,a.test(n)){var M=a.exec(n);r=M[1],n=r+"i"}if(a=k,a.test(n)){var M=a.exec(n);r=M[1],o=M[2],a=c,a.test(r)&&(n=r+e[o])}if(a=x,a.test(n)){var M=a.exec(n);r=M[1],o=M[2],a=c,a.test(r)&&(n=r+t[o])}if(a=E,s=T,a.test(n)){var M=a.exec(n);r=M[1],a=f,a.test(r)&&(n=r)}else if(s.test(n)){var M=s.exec(n);r=M[1]+M[2],s=f,s.test(r)&&(n=r)}if(a=O,a.test(n)){var M=a.exec(n);r=M[1],a=f,s=d,u=P,(a.test(r)||s.test(r)&&!u.test(r))&&(n=r)}return a=C,s=f,a.test(n)&&s.test(n)&&(a=g,n=n.replace(a,"")),"y"==i&&(n=i.toLowerCase()+n.substr(1)),n};return M}(),i.Pipeline.registerFunction(i.stemmer,"stemmer"),/*!
* lunr.stopWordFilter
* Copyright (C) 2016 Oliver Nightingale
*/
i.generateStopWordFilter=function(e){var t=e.reduce(function(e,t){return e[t]=t,e},{});return function(e){if(e&&t[e]!==e)return e}},i.stopWordFilter=i.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"]),i.Pipeline.registerFunction(i.stopWordFilter,"stopWordFilter"),/*!
* lunr.trimmer
* Copyright (C) 2016 Oliver Nightingale
*/
i.trimmer=function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")},i.Pipeline.registerFunction(i.trimmer,"trimmer"),/*!
* lunr.stemmer
* Copyright (C) 2016 Oliver Nightingale
* Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt
*/
2016-12-28 14:24:42 +03:00
i.TokenStore=function(){this.root={docs:{}},this.length=0},i.TokenStore.load=function(e){var t=new this;return t.root=e.root,t.length=e.length,t},i.TokenStore.prototype.add=function(e,t,n){var n=n||this.root,r=e.charAt(0),o=e.slice(1);return r in n||(n[r]={docs:{}}),0===o.length?(n[r].docs[t.ref]=t,void(this.length+=1)):this.add(o,t,n[r])},i.TokenStore.prototype.has=function(e){if(!e)return!1;for(var t=this.root,n=0;n<e.length;n++){if(!t[e.charAt(n)])return!1;t=t[e.charAt(n)]}return!0},i.TokenStore.prototype.getNode=function(e){if(!e)return{};for(var t=this.root,n=0;n<e.length;n++){if(!t[e.charAt(n)])return{};t=t[e.charAt(n)]}return t},i.TokenStore.prototype.get=function(e,t){return this.getNode(e,t).docs||{}},i.TokenStore.prototype.count=function(e,t){return Object.keys(this.get(e,t)).length},i.TokenStore.prototype.remove=function(e,t){if(e){for(var n=this.root,r=0;r<e.length;r++){if(!(e.charAt(r)in n))return;n=n[e.charAt(r)]}delete n.docs[t]}},i.TokenStore.prototype.expand=function(e,t){var n=this.getNode(e),r=n.docs||{},t=t||[];return Object.keys(r).length&&t.push(e),Object.keys(n).forEach(function(n){"docs"!==n&&t.concat(this.expand(e+n,t))},this),t},i.TokenStore.prototype.toJSON=function(){return{root:this.root,length:this.length}},function(i,a){r=a,o="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==o&&(e.exports=o))}(this,function(){return i})}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(19),i=r(o),a=n(20),s=r(a);t["default"]={Container:i["default"],Position:s["default"]},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 r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){n(this,e),this.el_="string"==typeof t?document.querySelector(t):t,this.parent_=this.el_.parentNode}return r(e,[{key:"setup",value:function(){this.update()}},{key:"update",value:function(){var e=this.parent_.offsetHeight-this.el_.offsetTop;this.el_.style.minHeight=e+"px"}},{key:"reset",value:function(){this.el_.style.minHeight=""}}]),e}();t["default"]=o,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 r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){n(this,e),this.el_="string"==typeof t?document.querySelector(t):t,this.parent_=this.el_.parentNode,this.height_=0}return r(e,[{key:"setup",value:function(){this.offset_=this.el_.offsetTop-this.parent_.offsetTop,this.update()}},{key:"update",value:function(){var e=window.pageYOffset,t=window.innerHeight;this.bounds_={top:this.parent_.offsetTop,bottom:this.parent_.offsetTop+this.parent_.offsetHeight};var n=t-this.bounds_.top-Math.max(0,this.offset_-e)-Math.max(0,e+t-this.bounds_.bottom);n!==this.height_&&(this.el_.style.height=(this.height_=n)+"px"),e>=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}}]),e}();t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(22),i=r(o),a=n(26),s=r(a);t["default"]={Adapter:i["default"],Repository:s["default"]},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.definePr