/*! no static exports found */function(e,t){e.exports=function(){for(vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void0!==arguments[1]?arguments[1]:1,i=[],n=-1,r=-1,o=0,s=e.length;o<s;o+=1){vara=e[o];a&&-1===n?n=o:a||-1===n||((r=o-1)-n+1>=t&&i.push([n,r]),n=-1)}returne[o-1]&&o-n>=t&&i.push([n,o-1]),i}},"./src/bitap/bitap_pattern_alphabet.js":
/*! no static exports found */function(e,t){e.exports=function(e){for(vart={},i=e.length,n=0;n<i;n+=1)t[e.charAt(n)]=0;for(varr=0;r<i;r+=1)t[e.charAt(r)]|=1<<i-r-1;returnt}},"./src/bitap/bitap_regex_search.js":
/*! no static exports found */function(e,t){vari=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;e.exports=function(e,t){varn=arguments.length>2&&void0!==arguments[2]?arguments[2]:/ +/g,r=newRegExp(t.replace(i,"\\$&").replace(n,"|")),o=e.match(r),s=!!o,a=[];if(s)for(varc=0,l=o.length;c<l;c+=1){varu=o[c];a.push([e.indexOf(u),u.length-1])}return{score:s?.5:1,isMatch:s,matchedIndices:a}}},"./src/bitap/bitap_score.js":
/*! no static exports found */function(e,t){e.exports=function(e,t){vari=t.errors,n=void0===i?0:i,r=t.currentLocation,o=void0===r?0:r,s=t.expectedLocation,a=void0===s?0:s,c=t.distance,l=void0===c?100:c,u=n/e.length,h=Math.abs(a-o);returnl?u+h/l:h?1:u}},"./src/bitap/bitap_search.js":
/*! no static exports found */function(e,t,i){varn=i(/*! ./bitap_score */"./src/bitap/bitap_score.js"),r=i(/*! ./bitap_matched_indices */"./src/bitap/bitap_matched_indices.js");e.exports=function(e,t,i,o){for(vars=o.location,a=void0===s?0:s,c=o.distance,l=void0===c?100:c,u=o.threshold,h=void0===u?.6:u,d=o.findAllMatches,f=void0!==d&&d,p=o.minMatchCharLength,v=void0===p?1:p,m=a,g=e.length,_=h,y=e.indexOf(t,m),b=t.length,E=[],S=0;S<g;S+=1)E[S]=0;if(-1!==y){varI=n(t,{errors:0,currentLocation:y,expectedLocation:m,distance:l});if(_=Math.min(I,_),-1!==(y=e.lastIndexOf(t,m+b))){varO=n(t,{errors:0,currentLocation:y,expectedLocation:m,distance:l});_=Math.min(O,_)}}y=-1;for(varC=[],T=1,w=b+g,k=1<<b-1,A=0;A<b;A+=1){for(varL=0,P=w;L<P;){n(t,{errors:A,currentLocation:m+P,expectedLocation:m,distance:l})<=_?L=P:w=P,P=Math.floor((w-L)/2+L)}w=P;varx=Math.max(1,m-P+1),D=f?g:Math.min(m+P,g)+b,j=Array(D+2);j[D+1]=(1<<A)-1;for(varM=D;M>=x;M-=1){varN=M-1,F=i[e.charAt(N)];if(F&&(E[N]=1),j[M]=(j[M+1]<<1|1)&F,0!==A&&(j[M]|=(C[M+1]|C[M])<<1|1|C[M+1]),j[M]&k&&(T=n(t,{errors:A,currentLocation:N,expectedLocation:m,distance:l}))<=_){if(_=T,(y=N)<=m)break;x=Math.max(1,2*m-y)}}if(n(t,{errors:A+1,currentLocation:m,expectedLocation:m,distance:l})>_)break;C=j}return{isMatch:y>=0,score:0===T?.001:T,matchedIndices:r(E,v)}}},"./src/bitap/index.js":
/*! no static exports found */function(e,t,i){functionn(e,t){for(vari=0;i<t.length;i++){varn=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}varr=i(/*! ./bitap_regex_search */"./src/bitap/bitap_regex_search.js"),o=i(/*! ./bitap_search */"./src/bitap/bitap_search.js"),s=i(/*! ./bitap_pattern_alphabet */"./src/bitap/bitap_pattern_alphabet.js"),a=function(){functione(t,i){varn=i.location,r=void0===n?0:n,o=i.distance,a=void0===o?100:o,c=i.threshold,l=void0===c?.6:c,u=i.maxPatternLength,h=void0===u?32:u,d=i.isCaseSensitive,f=void0!==d&&d,p=i.tokenSeparator,v=void0===p?/ +/g:p,m=i.findAllMatches,g=void0!==m&&m,_=i.minMatchCharLength,y=void0===_?1:_;!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,e),this.options={location:r,distance:a,threshold:l,maxPatternLength:h,isCaseSensitive:f,tokenSeparator:v,findAllMatches:g,minMatchCharLength:y},this.pattern=this.options.isCaseSensitive?t:t.toLowerCase(),this.pattern.length<=h&&(this.patternAlphabet=s(this.pattern))}vart,i,a;returnt=e,(i=[{key:"search",value:function(e){if(this.options.isCaseSensitive||(e=e.toLowerCase()),this.pattern===e)return{isMatch:!0,score:0,matchedIndices:[[0,e.length-1]]};vart=this.options,i=t.maxPatternLength,n=t.tokenSeparator;if(this.pattern.length>i)returnr(e,this.pattern,n);vars=this.options,a=s.location,c=s.distance,l=s.threshold,u=s.findAllMatches,h=s.minMatchCharLength;returno(e,this.pattern,this.patternAlphabet,{location:a,distance:c,threshold:l,findAllMatches:u,minMatchCharLength:h})}}])&&n(t.prototype,i),a&&n(t,a),e}();e.exports=a},"./src/helpers/deep_value.js":
/*! no static exports found */function(e,t,i){varn=i(/*! ./is_array */"./src/helpers/is_array.js");e.exports=function(e,t){returnfunctione(t,i,r){if(i){varo=i.indexOf("."),s=i,a=null;-1!==o&&(s=i.slice(0,o),a=i.slice(o+1));varc=t[s];if(null!=c)if(a||"string"!=typeofc&&"number"!=typeofc)if(n(c))for(varl=0,u=c.length;l<u;l+=1)e(c[l],a,r);elsea&&e(c,a,r);elser.push(c.toString())}elser.push(t);returnr}(e,t,[])}},"./src/helpers/is_array.js":
/*! no static exports found */function(e,t){e.exports=function(e){returnArray.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}},"./src/index.js":
/*! no static exports found */function(e,t,i){functionn(e){return(n="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe})(e)}functionr(e,t){for(vari=0;i<t.length;i++){varn=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}varo=i(/*! ./bitap */"./src/bitap/index.js"),s=i(/*! ./helpers/deep_value */"./src/helpers/deep_value.js"),a=i(/*! ./helpers/is_array */"./src/helpers/is_array.js"),c=function(){functione(t,i){varn=i.location,r=void0===n?0:n,o=i.distance,a=void0===o?100:o,c=i.threshold,l=void0===c?.6:c,u=i.maxPatternLength,h=void0===u?32:u,d=i.caseSensitive,f=void0!==d&&d,p=i.tokenSeparator,v=void0===p?/ +/g:p,m=i.findAllMatches,g=void0!==m&&m,_=i.minMatchCharLength,y=void0===_?1:_,b=i.id,E=void0===b?null:b,S=i.keys,I=void0===S?[]:S,O=i.shouldSort,C=void0===O||O,T=i.getFn,w=void0===T?s:T,k=i.sortFn,A=void0===k?function(e,t){returne.score-t.score}:k,L=i.tokenize,P=void0!==L&&L,x=i.matchAllTokens,D=void0!==x&&x,j=i.includeMatches,M=void0!==j&&j,N=i.includeScore,F=void0!==N&&N,K=i.verbose,R=void0!==K&&K;!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,e),this.options={location:r,distance:a,threshold:l,maxPatternLength:h,isCaseSensitive:f,tokenSeparator:v,findAllMatches:g,minMatchCharLength:y,id:E,keys:I,includeMatches:M,includeScore:F,shouldSort:C,getFn:w,sortFn:A,verbose:R,tokenize:P,matchAllTokens:D},this.setCollection(t)}vart,i,c;returnt=e,(i=[{key:"setCollection",value:function(e){returnthis.list=e,e}},{key:"search",value:function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(e,'"'));vari=this._prepareSearchers(e),n=i.tokenSearchers,r=i.fullSearcher,o=this._search(n,r),s=o.weights,a=o.results;returnthis._computeScore(s,a),this.options.shouldSort&&this._sort(a),t.limit&&"number"==typeoft.limit&&(a=a.slice(0,t.limit)),this._format(a)}},{key:"_prepareSearchers",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(vari=e.split(this.options.tokenSeparator),n=0,r=i.length;n<r;n+=1)t.push(newo(i[n],this.options));return{tokenSearchers:t,fullSearcher:newo(e,this.options)}}},{key:"_search",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void0,i=this.list,n={},r=[];if("string"==typeofi[0]){for(varo=0,s=i.length;o<s;o+=1)this._analyze({key:"",value:i[o],record:o,index:o},{resultMap:n,results:r,tokenSearchers:e,fullSearcher:t});return{weights:null,results:r}}for(vara={},c=0,l=i.length;c<l;c+=1)for(varu=i[c],h=0,d=this.options.keys.length;h<d;h+=1){varf=this.options.keys[h];if("string"!=typeoff){if(a[f.name]={weight:1-f.weight||1},f.weight<=0||f.weight>1)thrownewError("Key weight has to be > 0 and <= 1");f=f.name}elsea[f]={weight:1};this._analyze({key:f,value:this.options.getFn(u,f),record:u,index:c},{resultMap:n,results:r,tokenSearchers:e,fullSearcher:t})}return{weights:a,results:r}}},{key:"_analyze",value:function(e,t){vari=e.key,n=e.arrayIndex,r=void0===n?-1:n,o=e.value,s=e.record,c=e.index,l=t.tokenSearchers,u=void0===l?[]:l,h=t.fullSearcher,d=void0===h?[]:h,f=t.resultMap,p=void0===f?{}:f,v=t.results,m=void0===v?[]:v;if(null!=o){varg=!1,_=-1,y=0;if("string"==typeofo){this._log("\nKey: ".concat(""===i?"-":i));varb=d.search(o);if(this._log('Full text: "'.concat(o,'", score: ').concat(b.score)),this.options.tokenize){for(varE=o.split(this.options.tokenSeparator),S=[],I=0;I<u.length;I+=1){varO=u[I];this._log('\nPattern: "'.concat(O.pattern,'"'));for(varC=!1,T=0;T<E.length;T+=1){varw=E[T],k=O.search(w),A={};k.isMatch?(A[w]=k.score,g=!0,C=!0,S.push(k.score)):(A[w]=1,this.options.matchAllTokens||S.push(1)),this._log('Token: "'.concat(w,'", score: ').concat(A[w]))}C&&(y+=1)}_=S[0];for(varL=S.length,P=1;P<L;P+=1)_+=