!function(){functionp(e){vart=newp.Index;returnt.pipeline.add(p.trimmer,p.stopWordFilter,p.stemmer),e&&e.call(t,t),t}vart;p.version="0.9.5",(lunr=p).utils={},p.utils.warn=(t=this,function(e){t.console&&console.warn&&console.warn(e)}),p.utils.toString=function(e){returnnull==e?"":e.toString()},(p.EventEmitter=function(){this.events={}}).prototype.addListener=function(){vare=Array.prototype.slice.call(arguments);constt=e.pop();if("function"!=typeoft)thrownewTypeError("last argument must be a function");e.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},p.EventEmitter.prototype.removeListener=function(e,t){this.hasHandler(e)&&-1!==(t=this.events[e].indexOf(t))&&(this.events[e].splice(t,1),0===this.events[e].length)&&deletethis.events[e]},p.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){constt=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void0,t)},this)}},p.EventEmitter.prototype.hasHandler=function(e){returneinthis.events},(p.tokenizer=function(n){if(!arguments.length||null==n)return[];if(Array.isArray(n)){lete=n.filter(function(e){returnnull!=e}),t=(e=e.map(function(e){returnp.utils.toString(e).toLowerCase()}),[]);returne.forEach(function(e){e=e.split(p.tokenizer.seperator),t=t.concat(e)},this),t}returnn.toString().trim().toLowerCase().split(p.tokenizer.seperator)}).defaultSeperator=/[\s-]+/,p.tokenizer.seperator=p.tokenizer.defaultSeperator,p.tokenizer.setSeperator=function(e){null!=e&&"object"==typeofe&&(p.tokenizer.seperator=e)},p.tokenizer.resetSeperator=function(){p.tokenizer.seperator=p.tokenizer.defaultSeperator},p.tokenizer.getSeperator=function(){returnp.tokenizer.seperator},(p.Pipeline=function(){this._queue=[]}).registeredFunctions={},p.Pipeline.registerFunction=function(e,t){tinp.Pipeline.registeredFunctions&&p.utils.warn("Overwriting existing registered function: "+t),e.label=t,p.Pipeline.registeredFunctions[t]=e},p.Pipeline.getRegisteredFunction=function(e){returneinp.Pipeline.registeredFunctions!=1?null:p.Pipeline.registeredFunctions[e]},p.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.labelinthis.registeredFunctions||p.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},p.Pipeline.load=function(e){constn=newp.Pipeline;returne.forEach(function(e){vart=p.Pipeline.getRegisteredFunction(e);if(!t)thrownewError("Cannot load un-registered function: "+e);n.add(t)}),n},p.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){p.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},p.Pipeline.prototype.after=function(e,t){if(p.Pipeline.warnIfFunctionNotRegistered(t),-1===(e=this._queue.indexOf(e)))thrownewError("Cannot find existingFn");this._queue.splice(e+1,0,t)},p.Pipeline.prototype.before=function(e,t){if(p.Pipeline.warnIfFunctionNotRegistered(t),-1===(e=this._queue.indexOf(e)))thrownewError("Cannot find existingFn");this._queue.splice(e,0,t)},p.Pipeline.prototype.remove=function(e){-1!==(e=this._queue.indexOf(e))&&this._queue.splice(e,1)},p.Pipeline.prototype.run=function(o){vare=[],t=o.length,i=this._queue.length;for(letn=0;n<t;n++){lett=o[n];for(lete=0;e<i&&void0!==(t=this._queue[e](t,n,o))&&null!==t;e++);null!=t&&e.push(t)}returne},p.Pipeline.prototype.reset=function(){this._queue=[]},p.Pipeline.prototype.get=function(){returnthis._queue},p.Pipeline.prototype.toJSON=function(){returnthis._queue.map(function(e){returnp.Pipeline.warnIfFunctionNotRegistered(e),e.label})},(p.Index=function(){this._fields=[],this._ref="id",this.pipeline=newp.Pipeline,this.documentStore=newp.DocumentStore,this.index={},this.eventEmitter=newp.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))}).prototype.on=function(){vare=Array.prototype.slice.call(arguments);returnthis.eventEmitter.addListener.apply(this.eventEmitter,e)},p.Index.prototype.off=function(e,t){returnthis.eventEmitter.removeListener(e,t)},p.Ind