!functione(t,n,r){functions(o,u){if(!n[o]){if(!t[o]){vara="function"==typeofrequire&&require;if(!u&&a)returna(o,!0);if(i)returni(o,!0);thrownewError("Cannot find module '"+o+"'")}varf=n[o]={exports:{}};t[o][0].call(f.exports,function(e){varn=t[o][1][e];returns(n?n:e)},f,f.exports,e,t,n,r)}returnn[o].exports}for(vari="function"==typeofrequire&&require,o=0;o<r.length;o++)s(r[o]);returns}({1:[function(require,module,exports){functionload(location,callback){varxhr=window.XMLHttpRequest?newXMLHttpRequest:newActiveXObject("Microsoft.XMLHTTP");xhr.open("GET",location,!0),xhr.onreadystatechange=function(){if(200==xhr.status&&4==xhr.readyState)try{callback(null,JSON.parse(xhr.responseText))}catch(err){callback(err,null)}},xhr.send()}module.exports={load:load}},{}],2:[function(require,module,exports){functionput(data){returnisObject(data)?addObject(data):isArray(data)?addArray(data):void0}functionclear(){returndata.length=0,data}functionget(){returndata}functionisObject(obj){return!!obj&&"[object Object]"==Object.prototype.toString.call(obj)}functionisArray(obj){return!!obj&&"[object Array]"==Object.prototype.toString.call(obj)}functionaddObject(_data){returndata.push(_data),data}functionaddArray(_data){for(varadded=[],i=0;i<_data.length;i++)isObject(_data[i])&&added.push(addObject(_data[i]));returnadded}functionsearch(crit){returncrit?findMatches(data,crit,opt.searchStrategy,opt):[]}functionsetOptions(_opt){opt=_opt||{},opt.fuzzy=_opt.fuzzy||!1,opt.limit=_opt.limit||10,opt.searchStrategy=require(_opt.fuzzy?"./SearchStrategies/FuzzySearchStrategy":"./SearchStrategies/LiteralSearchStrategy")}functionfindMatches(data,crit,strategy,opt){for(varmatches=[],i=0;i<data.length&&matches.length<opt.limit;i++){varmatch=findMatchesInObject(data[i],crit,strategy,opt);match&&matches.push(match)}returnmatches}functionfindMatchesInObject(obj,crit,strategy,opt){for(varkeyinobj)if(!isExcluded(obj[key],opt.exclude)&&strategy.matches(obj[key],crit))returnobj}functionisExcluded(term,excludedTerms){varexcluded=!1;excludedTerms=excludedTerms||[];for(vari=0;i<excludedTerms.length;i++){varexcludedTerm=excludedTerms[i];!excluded&&newRegExp(term).test(excludedTerm)&&(excluded=!0)}returnexcluded}module.exports={put:put,clear:clear,get:get,search:search,setOptions:setOptions};vardata=[],opt={};opt.fuzzy=!1,opt.limit=10,opt.searchStrategy=require(opt.fuzzy?"./SearchStrategies/FuzzySearchStrategy":"./SearchStrategies/LiteralSearchStrategy")},{"./SearchStrategies/FuzzySearchStrategy":3,"./SearchStrategies/LiteralSearchStrategy":4}],3:[function(require,module,exports){functionFuzzySearchStrategy(){functionfuzzyRegexFromString(string){returnnewRegExp(string.split("").join(".*?"),"gi")}this.matches=function(string,crit){return"string"!=typeofstring?!1:(string=string.trim(),!!fuzzyRegexFromString(crit).test(string))}}module.exports=newFuzzySearchStrategy},{}],4:[function(require,module,exports){functionLiteralSearchStrategy(){this.matches=function(string,crit){return"string"!=typeofstring?!1:(string=string.trim(),string.toLowerCase().indexOf(crit.toLowerCase())>=0)}}module.exports=newLiteralSearchStrategy},{}],5:[function(require,module,exports){functionsetOptions(_opt){opt=_opt||{},opt.templatePattern=_opt.templatePattern||/\{(.*?)\}/g}functionrender(t,data){returnt.replace(opt.templatePattern,function(match,prop){returndata[prop]||match})}module.exports={render:render,setOptions:setOptions};varopt={};opt.templatePattern=/\{(.*?)\}/g},{}],6:[function(require,module,exports){!function(window,document,undefined){"use strict";functioninitWithJSON(json){store.put(opt.json),registerInput()}functioninitWithURL(url){jsonLoader.load(url,function(err,json){err?throwError("failed to get JSON ("+url+")"):(store.put(json),registerInput())})}functionthrowError(message){thrownewError("SimpleJekyllSearch --- "+message)}functionvalidateOptions(_opt){for(vari=0;i<requiredOptions.length;i++){varreq=requiredOptions[i];_opt[req]||throwError("You must specify a "+req)}varret=_opt;for(varoptioninopt)ret[optio