/*! 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,s=-1,r=0,o=e.length;r<o;r+=1){vara=e[r];a&&-1===n?n=r:a||-1===n||((s=r-1)-n+1>=t&&i.push([n,s]),n=-1)}returne[r-1]&&r-n>=t&&i.push([n,r-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(vars=0;s<i;s+=1)t[e.charAt(s)]|=1<<i-s-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,s=newRegExp(t.replace(i,"\\$&").replace(n,"|")),r=e.match(s),o=!!r,a=[];if(o)for(varl=0,c=r.length;l<c;l+=1){varh=r[l];a.push([e.indexOf(h),h.length-1])}return{score:o?.5:1,isMatch:o,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,s=t.currentLocation,r=void0===s?0:s,o=t.expectedLocation,a=void0===o?0:o,l=t.distance,c=void0===l?100:l,h=n/e.length,u=Math.abs(a-r);returnc?h+u/c:u?1:h}},"./src/bitap/bitap_search.js":
/*! no static exports found */function(e,t,i){varn=i(/*! ./bitap_score */"./src/bitap/bitap_score.js"),s=i(/*! ./bitap_matched_indices */"./src/bitap/bitap_matched_indices.js");e.exports=function(e,t,i,r){for(varo=r.location,a=void0===o?0:o,l=r.distance,c=void0===l?100:l,h=r.threshold,u=void0===h?.6:h,d=r.findAllMatches,p=void0!==d&&d,f=r.minMatchCharLength,m=void0===f?1:f,v=a,g=e.length,_=u,b=e.indexOf(t,v),y=t.length,E=[],S=0;S<g;S+=1)E[S]=0;if(-1!==b){varI=n(t,{errors:0,currentLocation:b,expectedLocation:v,distance:c});if(_=Math.min(I,_),-1!==(b=e.lastIndexOf(t,v+y))){varw=n(t,{errors:0,currentLocation:b,expectedLocation:v,distance:c});_=Math.min(w,_)}}b=-1;for(varC=[],O=1,A=y+g,x=1<<y-1,T=0;T<y;T+=1){for(varL=0,k=A;L<k;)n(t,{errors:T,currentLocation:v+k,expectedLocation:v,distance:c})<=_?L=k:A=k,k=Math.floor((A-L)/2+L);A=k;varD=Math.max(1,v-k+1),P=p?g:Math.min(v+k,g)+y,F=Array(P+2);F[P+1]=(1<<T)-1;for(varj=P;j>=D;j-=1){varM=j-1,N=i[e.charAt(M)];if(N&&(E[M]=1),F[j]=(F[j+1]<<1|1)&N,0!==T&&(F[j]|=(C[j+1]|C[j])<<1|1|C[j+1]),F[j]&x&&(O=n(t,{errors:T,currentLocation:M,expectedLocation:v,distance:c}))<=_){if(_=O,(b=M)<=v)break;D=Math.max(1,2*v-b)}}if(n(t,{errors:T+1,currentLocation:v,expectedLocation:v,distance:c})>_)break;C=F}return{isMatch:b>=0,score:0===O?.001:O,matchedIndices:s(E,m)}}},"./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)}}vars=i(/*! ./bitap_regex_search */"./src/bitap/bitap_regex_search.js"),r=i(/*! ./bitap_search */"./src/bitap/bitap_search.js"),o=i(/*! ./bitap_pattern_alphabet */"./src/bitap/bitap_pattern_alphabet.js"),a=function(){functione(t,i){varn=i.location,s=void0===n?0:n,r=i.distance,a=void0===r?100:r,l=i.threshold,c=void0===l?.6:l,h=i.maxPatternLength,u=void0===h?32:h,d=i.isCaseSensitive,p=void0!==d&&d,f=i.tokenSeparator,m=void0===f?/ +/g:f,v=i.findAllMatches,g=void0!==v&&v,_=i.minMatchCharLength,b=void0===_?1:_;!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,e),this.options={location:s,distance:a,threshold:c,maxPatternLength:u,isCaseSensitive:p,tokenSeparator:m,findAllMatches:g,minMatchCharLength:b},this.pattern=this.options.isCaseSensitive?t:t.toLowerCase(),this.pattern.length<=u&&(this.patternAlphabet=o(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)returns(e,this.pattern,n);varo=this.options,a=o.location,l=o.distance,c=o.threshold,h=o.findAllMatches,u=o.minMatchCharLength;returnr(e,this.pattern,this.patternAlphabet,{location:a,distance:l,threshold:c,findAllMatches:h,minMatchCharLength:u})}}])&&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,s){if(i){varr=i.indexOf("."),o=i,a=null;-1!==r&&(o=i.slice(0,r),a=i.slice(r+1));varl=t[o];if(null!=l)if(a||"string"!=typeofl&&"number"!=typeofl)if(n(l))for(varc=0,h=l.length;c<h;c+=1)e(l[c],a,s);elsea&&e(l,a,s);elses.push(l.toString())}elses.push(t);returns}(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)}functions(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 */"./src/bitap/index.js"),o=i(/*! ./helpers/deep_value */"./src/helpers/deep_value.js"),a=i(/*! ./helpers/is_array */"./src/helpers/is_array.js"),l=function(){functione(t,i){varn=i.location,s=void0===n?0:n,r=i.distance,a=void0===r?100:r,l=i.threshold,c=void0===l?.6:l,h=i.maxPatternLength,u=void0===h?32:h,d=i.caseSensitive,p=void0!==d&&d,f=i.tokenSeparator,m=void0===f?/ +/g:f,v=i.findAllMatches,g=void0!==v&&v,_=i.minMatchCharLength,b=void0===_?1:_,y=i.id,E=void0===y?null:y,S=i.keys,I=void0===S?[]:S,w=i.shouldSort,C=void0===w||w,O=i.getFn,A=void0===O?o:O,x=i.sortFn,T=void0===x?function(e,t){returne.score-t.score}:x,L=i.tokenize,k=void0!==L&&L,D=i.matchAllTokens,P=void0!==D&&D,F=i.includeMatches,j=void0!==F&&F,M=i.includeScore,N=void0!==M&&M,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:s,distance:a,threshold:c,maxPatternLength:u,isCaseSensitive:p,tokenSeparator:m,findAllMatches:g,minMatchCharLength:b,id:E,keys:I,includeMatches:j,includeScore:N,shouldSort:C,getFn:A,sortFn:T,verbose:R,tokenize:k,matchAllTokens:P},this.setCollection(t)}vart,i,l;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,s=i.fullSearcher,r=this._search(n,s),o=r.weights,a=r.results;returnthis._computeScore(o,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,s=i.length;n<s;n+=1)t.push(newr(i[n],this.options));varo=newr(e,this.options);return{tokenSearchers:t,fullSearcher:o}}},{key:"_search",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void0,i=this.list,n={},s=[];if("string"==typeofi[0]){for(varr=0,o=i.length;r<o;r+=1)this._analyze({key:"",value:i[r],record:r,index:r},{resultMap:n,results:s,tokenSearchers:e,fullSearcher:t});return{weights:null,results:s}}for(vara={},l=0,c=i.length;l<c;l+=1)for(varh=i[l],u=0,d=this.options.keys.length;u<d;u+=1){varp=this.options.keys[u];if("string"!=typeofp){if(a[p.name]={weight:1-p.weight||1},p.weight<=0||p.weight>1)thrownewError("Key weight has to be > 0 and <= 1");p=p.name}elsea[p]={weight:1};this._analyze({key:p,value:this.options.getFn(h,p),record:h,index:l},{resultMap:n,results:s,tokenSearchers:e,fullSearcher:t})}return{weights:a,results:s}}},{key:"_analyze",value:function(e,t){vari=e.key,n=e.arrayIndex,s=void0===n?-1:n,r=e.value,o=e.record,l=e.index,c=t.tokenSearchers,h=void0===c?[]:c,u=t.fullSearcher,d=void0===u?[]:u,p=t.resultMap,f=void0===p?{}:p,m=t.results,v=void0===m?[]:m;if(null!=r){varg=!1,_=-1,b=0;if("string"==typeofr){this._log("\nKey: ".concat(""===i?"-":i));vary=d.search(r);if(this._log('Full text: "'.concat(r,'", score: ').concat(y.score)),this.options.tokenize){for(varE=r.split(this.options.tokenSeparator),S=[],I=0;I<h.length;I+=1){varw=h[I];this._log('\nPattern: "'.concat(w.pattern,'"'));for(varC=!1,O=0;O<E.length;O+=1){varA=E[O],x=w.search(A),T={};x.isMatch?(T[A]=x.score,g=!0,C=!0,S.push(x.score)):(T[A]=1,this.options.matchAllTokens||S.push(1)),this._log('Token: "'.concat(A,'", score: ').concat(T[A]))}C&&(b+=1)}_=S[0];for(varL=S.length,k=1;k<L;