1(self.webpackChunkgw_core_sites_app=self.webpackChunkgw_core_sites_app||[]).push([["default-src_app_ft-components_products_fund-listing_services_fund-filter_service_ts"],{70634:(z,H,I)=>{var Y,j;!function(){var e,t=function(e){var r=new t.Builder;return r.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),r.searchPipeline.add(t.stemmer),e.call(r,r),r.build()};t.version="2.3.9",t.utils={},t.utils.warn=(e=this,function(r){e.console&&console.warn&&console.warn(r)}),t.utils.asString=function(e){return null==e?"":e.toString()},t.utils.clone=function(e){if(null==e)return e;for(var r=Object.create(null),i=Object.keys(e),s=0;s<i.length;s++){var n=i[s],a=e[n];if(Array.isArray(a))r[n]=a.slice();else{if("string"!=typeof a&&"number"!=typeof a&&"boolean"!=typeof a)throw new TypeError("clone is not deep and does not support nested objects");r[n]=a}}return r},t.FieldRef=function(e,r,i){this.docRef=e,this.fieldName=r,this._stringValue=i},t.FieldRef.joiner="/",t.FieldRef.fromString=function(e){var r=e.indexOf(t.FieldRef.joiner);if(-1===r)throw"malformed field ref string";var i=e.slice(0,r),s=e.slice(r+1);return new t.FieldRef(s,i,e)},t.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+t.FieldRef.joiner+this.docRef),this._stringValue},t.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var r=0;r<this.length;r++)this.elements[e[r]]=!0}else this.length=0},t.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},t.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},t.Set.prototype.contains=function(e){return!!this.elements[e]},t.Set.prototype.intersect=function(e){var r,i,s,n=[];if(e===t.Set.complete)return this;if(e===t.Set.empty)return e;this.length<e.length?(r=this,i=e):(r=e,i=this),s=Object.keys(r.elements);for(var a=0;a<s.length;a++){var u=s[a];u in i.elements&&n.push(u)}return new t.Set(n)},t.Set.prototype.union=function(e){return e===t.Set.complete?t.Set.complete:e===t.Set.empty?this:new t.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},t.idf=function(e,r){var i=0;for(var s in e)"_index"!=s&&(i+=Object.keys(e[s]).length);return Math.log(1+Math.abs((r-i+.5)/(i+.5)))},t.Token=function(e,r){this.str=e||"",this.metadata=r||{}},t.Token.prototype.toString=function(){return this.str},t.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},t.Token.prototype.clone=function(e){return new t.Token((e=e||function(r){return r})(this.str,this.metadata),this.metadata)},t.tokenizer=function(e,r){if(null==e||null==e)return[];if(Array.isArray(e))return e.map(function(L){return new t.Token(t.utils.asString(L).toLowerCase(),t.utils.clone(r))});for(var i=e.toString().toLowerCase(),s=i.length,n=[],a=0,u=0;a<=s;a++){var c=a-u;if(i.charAt(a).match(t.tokenizer.separator)||a==s){if(c>0){var x=t.utils.clone(r)||{};x.position=[u,c],x.index=n.length,n.push(new t.Token(i.slice(u,a),x))}u=a+1}}return n},t.tokenizer.separator=/[\s\-]+/,t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,r){r in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+r),e.label=r,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||t.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},t.Pipeline.load=function(e){var r=new t.Pipeline;return e.forEach(function(i){var s=t.Pipeline.registeredFunctions[i];if(!s)throw new Error("Cannot load unregistered function: "+i);r.add(s)}),r},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(r){t.Pipeline.warnIfFunctionNotRegistered(r),this._stack.push(r)},this)},t.Pipeline.prototype.after=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var i=this._stack.indexOf(e);if(-1==i)throw new Error("Cannot find existingFn");this._stack.splice(i+=1,0,r)},t.Pipeline.prototype.before=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var i=this._stack.indexOf(e);if(-1==i)throw new Error("Cannot find existingFn");this._stack.splice(i,0,r)},t.Pipeline.prototype.remove=function(e){var r=this._stack.indexOf(e);-1!=r&&this._stack.splice(r,1)},t.Pipeline.prototype.run=function(e){for(var r=this._stack.length,i=0;i<r;i++){for(var s=this._stack[i],n=[],a=0;a<e.length;a++){var u=s(e[a],a,e);if(null!=u&&""!==u)if(Array.isArray(u))for(var h=0;h<u.length;h++)n.push(u[h]);else n.push(u)}e=n}return e},t.Pipeline.prototype.runString=function(e,r){var i=new t.Token(e,r);return this.run([i]).map(function(s){return s.toString()})},t.Pipeline.prototype.reset=function(){this._stack=[]},t.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Vector=function(e){this._magnitude=0,this.elements=e||[]},t.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var r=0,i=this.elements.length/2,s=i-r,n=Math.floor(s/2),a=this.elements[2*n];s>1&&(a<e&&(r=n),a>e&&(i=n),a!=e);)s=i-r,n=r+Math.floor(s/2),a=this.elements[2*n];return a==e||a>e?2*n:a<e?2*(n+1):void 0},t.Vector.prototype.insert=function(e,r){this.upsert(e,r,function(){throw"duplicate index"})},t.Vector.prototype.upsert=function(e,r,i){this._magnitude=0;var s=this.positionForIndex(e);this.elements[s]==e?this.elements[s+1]=i(this.elements[s+1],r):this.elements.splice(s,0,e,r)},t.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,r=this.elements.length,i=1;i<r;i+=2){var s=this.elements[i];e+=s*s}return this._magnitude=Math.sqrt(e)},t.Vector.prototype.dot=function(e){for(var r=0,i=this.elements,s=e.elements,n=i.length,a=s.length,u=0,h=0,c=0,x=0;c<n&&x<a;)(u=i[c])<(h=s[x])?c+=2:u>h?x+=2:u==h&&(r+=i[c+1]*s[x+1],c+=2,x+=2);return r},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),r=1,i=0;r<this.elements.length;r+=2,i++)e[i]=this.elements[r];return e},t.Vector.prototype.toJSON=function(){return this.elements},t.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"},r={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},s="[aeiouy]",n="[^aeiou][^aeiouy]*",L=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),T=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),Q=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),A=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),N=/^(.+?)(ss|i)es$/,C=/^(.+?)([^s])s$/,k=/^(.+?)eed$/,V=/^(.+?)(ed|ing)$/,_=/.$/,g=/(at|bl|iz)$/,B=new RegExp("([^aeiouylsz])\\1$"),m=new RegExp("^"+n+s+"[^aeiouwxy]$"),D=/^(.+?[^aeiou])y$/,M=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,b=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,f=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,v=/^(.+?)(s|t)(ion)$/,o=/^(.+?)e$/,d=/ll$/,p=new RegExp("^"+n+s+"[^aeiouwxy]$"),y=function(l){var E,O,w,S,R,G,U;if(l.length<3)return l;if("y"==(w=l.substr(0,1))&&(l=w.toUpperCase()+l.substr(1)),R=C,(S=N).test(l)?l=l.replace(S,"$1$2"):R.test(l)&&(l=l.replace(R,"$1$2")),R=V,(S=k).test(l)){var P=S.exec(l);(S=L).test(P[1])&&(l=l.replace(S=_,""))}else if(R.test(l)){P=R.exec(l);(R=A).test(E=P[1])&&(G=B,U=m,(R=g).test(l=E)?l+="e":G.test(l)?l=l.replace(S=_,""):U.test(l)&&(l+="e"))}return(S=D).test(l)&&(l=(E=(P=S.exec(l))[1])+"i"),(S=M).test(l)&&(O=(P=S.exec(l))[2],(S=L).test(E=P[1])&&(l=E+e[O])),(S=b).test(l)&&(O=(P=S.exec(l))[2],(S=L).test(E=P[1])&&(l=E+r[O])),R=v,(S=f).test(l)?(P=S.exec(l),(S=T).test(E=P[1])&&(l=E)):R.test(l)&&(P=R.exec(l),(R=T).test(E=P[1]+P[2])&&(l=E)),(S=o).test(l)&&(P=S.exec(l),R=Q,G=p,((S=T).test(E=P[1])||R.test(E)&&!G.test(E))&&(l=E)),R=T,(S=d).test(l)&&R.test(l)&&(l=l.replace(S=_,"")),"y"==w&&(l=w.toLowerCase()+l.substr(1)),l};return function(F){return F.update(y)}}(),t.Pipeline.registerFunction(t.stemmer,"stemmer"),t.generateStopWordFilter=function(e){var r=e.reduce(function(i,s){return i[s]=s,i},{});return function(i){if(i&&r[i.toString()]!==i.toString())return i}},t.stopWordFilter=t.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"]),t.Pipeline.registerFunction(t.stopWordFilter,"stopWordFilter"),t.trimmer=function(e){return e.update(function(r){return r.replace(/^\W+/,"").replace(/\W+$/,"")})},t.Pipeline.registerFunction(t.trimmer,"trimmer"),t.TokenSet=function(){this.final=!1,this.edges={},this.id=t.TokenSet._nextId,t.TokenSet._nextId+=1},t.TokenSet._nextId=1,t.TokenSet.fromArray=function(e){for(var r=new t.TokenSet.Builder,i=0,s=e.length;i<s;i++)r.insert(e[i]);return r.finish(),r.root},t.TokenSet.fromClause=function(e){return"editDistance"in e?t.TokenSet.fromFuzzyString(e.term,e.editDistance):t.TokenSet.fromString(e.term)},t.TokenSet.fromFuzzyString=function(e,r){for(var i=new t.TokenSet,s=[{node:i,editsRemaining:r,str:e}];s.length;){var n=s.pop();if(n.str.length>0){var u,a=n.str.charAt(0);a in n.node.edges?u=n.node.edges[a]:(u=new t.TokenSet,n.node.edges[a]=u),1==n.str.length&&(u.final=!0),s.push({node:u,editsRemaining:n.editsRemaining,str:n.str.slice(1)})}if(0!=n.editsRemaining){if("*"in n.node.edges)var h=n.node.edges["*"];else h=new t.TokenSet,n.node.edges["*"]=h;if(0==n.str.length&&(h.final=!0),s.push({node:h,editsRemaining:n.editsRemaining-1,str:n.str}),n.str.length>1&&s.push({node:n.node,editsRemaining:n.editsRemaining-1,str:n.str.slice(1)}),1==n.str.length&&(n.node.final=!0),n.str.length>=1){if("*"in n.node.edges)var c=n.node.edges["*"];else c=new t.TokenSet,n.node.edges["*"]=c;1==n.str.length&&(c.final=!0),s.push({node:c,editsRemaining:n.editsRemaining-1,str:n.str.slice(1)})}if(n.str.length>1){var T,x=n.str.charAt(0),L=n.str.charAt(1);L in n.node.edges?T=n.node.edges[L]:(T=new t.TokenSet,n.node.edges[L]=T),1==n.str.length&&(T.final=!0),s.push({node:T,editsRemaining:n.editsRemaining-1,str:x+n.str.slice(2)})}}}return i},t.TokenSet.fromString=function(e){for(var r=new t.TokenSet,i=r,s=0,n=e.length;s<n;s++){var a=e[s],u=s==n-1;if("*"==a)r.edges[a]=r,r.final=u;else{var h=new t.TokenSet;h.final=u,r.edges[a]=h,r=h}}return i},t.TokenSet.prototype.toArray=function(){for(var e=[],r=[{prefix:"",node:this}];r.length;){var i=r.pop(),s=Object.keys(i.node.edges),n=s.length;i.node.final&&(i.prefix.charAt(0),e.push(i.prefix));for(var a=0;a<n;a++){var u=s[a];r.push({prefix:i.prefix.concat(u),node:i.node.edges[u]})}}return e},t.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",r=Object.keys(this.edges).sort(),i=r.length,s=0;s<i;s++){var n=r[s];e=e+n+this.edges[n].id}return e},t.TokenSet.prototype.intersect=function(e){for(var r=new t.TokenSet,i=void 0,s=[{qNode:e,output:r,node:this}];s.length;){i=s.pop();for(var n=Object.keys(i.qNode.edges),a=n.length,u=Object.keys(i.node.edges),h=u.length,c=0;c<a;c++)for(var x=n[c],L=0;L<h;L++){var T=u[L];if(T==x||"*"==x){var Q=i.node.edges[T],A=i.qNode.edges[x],N=Q.final&&A.final,C=void 0;T in i.output.edges?(C=i.output.edges[T]).final=C.final||N:((C=new t.TokenSet).final=N,i.output.edges[T]=C),s.push({qNode:A,output:C,node:Q})}}}return r},t.TokenSet.Builder=function(){this.previousWord="",this.root=new t.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},t.TokenSet.Builder.prototype.insert=function(e){var r,i=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var s=0;s<e.length&&s<this.previousWord.length&&e[s]==this.previousWord[s];s++)i++;for(this.minimize(i),r=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,s=i;s<e.length;s++){var n=new t.TokenSet,a=e[s];r.edges[a]=n,this.uncheckedNodes.push({parent:r,char:a,child:n}),r=n}r.final=!0,this.previousWord=e},t.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},t.TokenSet.Builder.prototype.minimize=function(e){for(var r=this.uncheckedNodes.length-1;r>=e;r--){var i=this.uncheckedNodes[r],s=i.child.toString();s in this.minimizedNodes?i.parent.edges[i.char]=this.minimizedNodes[s]:(i.child._str=s,this.minimizedNodes[s]=i.child),this.uncheckedNodes.pop()}},t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(r){new t.QueryParser(e,r).parse()})},t.Index.prototype.query=function(e){for(var r=new t.Query(this.fields),i=Object.create(null),s=Object.create(null),n=Object.create(null),a=Object.create(null),u=Object.create(null),h=0;h<this.fields.length;h++)s[this.fields[h]]=new t.Vector;for(e.call(r,r),h=0;h<r.clauses.length;h++){var x,c=r.clauses[h],L=t.Set.empty;x=c.usePipeline?this.pipeline.runString(c.term,{fields:c.fields}):[c.term];for(var T=0;T<x.length;T++){c.term=x[T];var A=t.TokenSet.fromClause(c),N=this.tokenSet.intersect(A).toArray();if(0===N.length&&c.presence===t.Query.presence.REQUIRED){for(var C=0;C<c.fields.length;C++)a[k=c.fields[C]]=t.Set.empty;break}for(var V=0;V<N.length;V++){var _=N[V],g=this.invertedIndex[_],B=g._index;for(C=0;C<c.fields.length;C++){var m=g[k=c.fields[C]],D=Object.keys(m),M=_+"/"+k,b=new t.Set(D);if(c.presence==t.Query.presence.REQUIRED&&(L=L.union(b),void 0===a[k]&&(a[k]=t.Set.complete)),c.presence!=t.Query.presence.PROHIBITED){if(s[k].upsert(B,c.boost,function(J,K){return J+K}),!n[M]){for(var f=0;f<D.length;f++){var p,v=D[f],o=new t.FieldRef(v,k),d=m[v];void 0===(p=i[o])?i[o]=new t.MatchData(_,k,d):p.add(_,k,d)}n[M]=!0}}else void 0===u[k]&&(u[k]=t.Set.empty),u[k]=u[k].union(b)}}}if(c.presence===t.Query.presence.REQUIRED)for(C=0;C<c.fields.length;C++)a[k=c.fields[C]]=a[k].intersect(L)}var y=t.Set.complete,F=t.Set.empty;for(h=0;h<this.fields.length;h++){var k;a[k=this.fields[h]]&&(y=y.intersect(a[k])),u[k]&&(F=F.union(u[k]))}var l=Object.keys(i),E=[],O=Object.create(null);if(r.isNegated())for(l=Object.keys(this.fieldVectors),h=0;h<l.length;h++){var w=t.FieldRef.fromString(o=l[h]);i[o]=new t.MatchData}for(h=0;h<l.length;h++){var S=(w=t.FieldRef.fromString(l[h])).docRef;if(y.contains(S)&&!F.contains(S)){var U,G=s[w.fieldName].similarity(this.fieldVectors[w]);if(void 0!==(U=O[S]))U.score+=G,U.matchData.combine(i[w]);
1else{var P={ref:S,score:G,matchData:i[w]};O[S]=P,E.push(P)}}}return E.sort(function($,W){return W.score-$.score})},t.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map(function(i){return[i,this.invertedIndex[i]]},this),r=Object.keys(this.fieldVectors).map(function(i){return[i,this.fieldVectors[i].toJSON()]},this);return{version:t.version,fields:this.fields,fieldVectors:r,invertedIndex:e,pipeline:this.pipeline.toJSON()}},t.Index.load=function(e){var r={},i={},s=e.fieldVectors,n=Object.create(null),a=e.invertedIndex,u=new t.TokenSet.Builder,h=t.Pipeline.load(e.pipeline);e.version!=t.version&&t.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+t.version+"' does not match serialized index '"+e.version+"'");for(var c=0;c<s.length;c++)i[(x=s[c])[0]]=new t.Vector(x[1]);for(c=0;c<a.length;c++){var x,Q=(x=a[c])[0],A=x[1];u.insert(Q),n[Q]=A}return u.finish(),r.fields=e.fields,r.fieldVectors=i,r.invertedIndex=n,r.tokenSet=u.root,r.pipeline=h,new t.Index(r)},t.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=t.tokenizer,this.pipeline=new t.Pipeline,this.searchPipeline=new t.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},t.Builder.prototype.ref=function(e){this._ref=e},t.Builder.prototype.field=function(e,r){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=r||{}},t.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,r){var i=e[this._ref],s=Object.keys(this._fields);this._documents[i]=r||{},this.documentCount+=1;for(var n=0;n<s.length;n++){var a=s[n],u=this._fields[a].extractor,h=u?u(e):e[a],c=this.tokenizer(h,{fields:[a]}),x=this.pipeline.run(c),L=new t.FieldRef(i,a),T=Object.create(null);this.fieldTermFrequencies[L]=T,this.fieldLengths[L]=0,this.fieldLengths[L]+=x.length;for(var Q=0;Q<x.length;Q++){var A=x[Q];if(null==T[A]&&(T[A]=0),T[A]+=1,null==this.invertedIndex[A]){var N=Object.create(null);N._index=this.termIndex,this.termIndex+=1;for(var C=0;C<s.length;C++)N[s[C]]=Object.create(null);this.invertedIndex[A]=N}null==this.invertedIndex[A][a][i]&&(this.invertedIndex[A][a][i]=Object.create(null));for(var k=0;k<this.metadataWhitelist.length;k++){var V=this.metadataWhitelist[k],_=A.metadata[V];null==this.invertedIndex[A][a][i][V]&&(this.invertedIndex[A][a][i][V]=[]),this.invertedIndex[A][a][i][V].push(_)}}}},t.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),r=e.length,i={},s={},n=0;n<r;n++){var a=t.FieldRef.fromString(e[n]),u=a.fieldName;s[u]||(s[u]=0),s[u]+=1,i[u]||(i[u]=0),i[u]+=this.fieldLengths[a]}var h=Object.keys(this._fields);for(n=0;n<h.length;n++){var c=h[n];i[c]=i[c]/s[c]}this.averageFieldLength=i},t.Builder.prototype.createFieldVectors=function(){for(var e={},r=Object.keys(this.fieldTermFrequencies),i=r.length,s=Object.create(null),n=0;n<i;n++){for(var a=t.FieldRef.fromString(r[n]),u=a.fieldName,h=this.fieldLengths[a],c=new t.Vector,x=this.fieldTermFrequencies[a],L=Object.keys(x),T=L.length,Q=this._fields[u].boost||1,A=this._documents[a.docRef].boost||1,N=0;N<T;N++){var _,g,B,C=L[N],k=x[C],V=this.invertedIndex[C]._index;void 0===s[C]?(_=t.idf(this.invertedIndex[C],this.documentCount),s[C]=_):_=s[C],g=_*((this._k1+1)*k)/(this._k1*(1-this._b+this._b*(h/this.averageFieldLength[u]))+k),g*=Q,g*=A,B=Math.round(1e3*g)/1e3,c.insert(V,B)}e[a]=c}this.fieldVectors=e},t.Builder.prototype.createTokenSet=function(){this.tokenSet=t.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},t.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new t.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},t.Builder.prototype.use=function(e){var r=Array.prototype.slice.call(arguments,1
1);r.unshift(this),e.apply(this,r)},t.MatchData=function(e,r,i){for(var s=Object.create(null),n=Object.keys(i||{}),a=0;a<n.length;a++){var u=n[a];s[u]=i[u].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][r]=s)},t.MatchData.prototype.combine=function(e){for(var r=Object.keys(e.metadata),i=0;i<r.length;i++){var s=r[i],n=Object.keys(e.metadata[s]);null==this.metadata[s]&&(this.metadata[s]=Object.create(null));for(var a=0;a<n.length;a++){var u=n[a],h=Object.keys(e.metadata[s][u]);null==this.metadata[s][u]&&(this.metadata[s][u]=Object.create(null));for(var c=0;c<h.length;c++){var x=h[c];this.metadata[s][u][x]=null==this.metadata[s][u][x]?e.metadata[s][u][x]:this.metadata[s][u][x].concat(e.metadata[s][u][x])}}}},t.MatchData.prototype.add=function(e,r,i){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][r]=i);if(r in this.metadata[e])for(var s=Object.keys(i),n=0;n<s.length;n++){var a=s[n];this.metadata[e][r][a]=a in this.metadata[e][r]?this.metadata[e][r][a].concat(i[a]):i[a]}else this.metadata[e][r]=i},t.Query=function(e){this.clauses=[],this.allFields=e},t.Query.wildcard=new String("*"),t.Query.wildcard.NONE=0,t.Query.wildcard.LEADING=1,t.Query.wildcard.TRAILING=2,t.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},t.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=t.Query.wildcard.NONE),e.wildcard&t.Query.wildcard.LEADING&&e.term.charAt(0)!=t.Query.wildcard&&(e.term="*"+e.term),e.wildcard&t.Query.wildcard.TRAILING&&e.term.slice(-1)!=t.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=t.Query.presence.OPTIONAL),this.clauses.push(e),this},t.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=t.Query.presence.PROHIBITED)return!1;return!0},t.Query.prototype.term=function(e,r){if(Array.isArray(e))return e.forEach(function(s){this.term(s,t.utils.clone(r))},this),this;var i=r||{};return i.term=e.toString(),this.clause(i),this},t.QueryParseError=function(e,r,i){this.name="QueryParseError",this.message=e,this.start=r,this.end=i},t.QueryParseError.prototype=new Error,t.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},t.QueryLexer.prototype.run=function(){for(var e=t.QueryLexer.lexText;e;)e=e(this)},t.QueryLexer.prototype.sliceString=function(){for(var e=[],r=this.start,i=this.pos,s=0;s<this.escapeCharPositions.length;s++)e.push(this.str.slice(r,i=this.escapeCharPositions[s])),r=i+1;return e.push(this.str.slice(r,this.pos)),this.escapeCharPositions.length=0,e.join("")},t.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},t.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},t.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,r;do{r=(e=this.next()).charCodeAt(0)}while(r>47&&r<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos<this.length},t.QueryLexer.EOS="EOS",t.QueryLexer.FIELD="FIELD",t.QueryLexer.TERM="TERM",t.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",t.QueryLexer.BOOST="BOOST",t.QueryLexer.PRESENCE="PRESENCE",t.QueryLexer.lexField=function(e){return e.backup(),e.emit(t.QueryLexer.FIELD),e.ignore(),t.QueryLexer.lexText},t.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var r=e.next();if(r==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(92!=r.charCodeAt(0)){if(":"==r)return t.QueryLexer.lexField;
1if("~"==r)return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if("^"==r)return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if("+"==r&&1===e.width()||"-"==r&&1===e.width())return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(r.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}else e.escapeCharacter()}},t.QueryParser=function(e,r){this.lexer=new t.QueryLexer(e),this.query=r,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){this.query.clause(this.currentClause),this.currentClause={}},t.QueryParser.parseClause=function(e){var r=e.peekLexeme();if(null!=r)switch(r.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expected either a field or a term, found "+r.type;throw r.str.length>=1&&(i+=" with value '"+r.str+"'"),new t.QueryParseError(i,r.start,r.end)}},t.QueryParser.parsePresence=function(e){var r=e.consumeLexeme();if(null!=r){switch(r.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:throw new t.QueryParseError("unrecognised presence operator'"+r.str+"'",r.start,r.end)}var s=e.peekLexeme();if(null==s)throw new t.QueryParseError("expecting term or field, found nothing",r.start,r.end);switch(s.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:throw new t.QueryParseError("expecting term or field, found '"+s.type+"'",s.start,s.end)}}},t.QueryParser.parseField=function(e){var r=e.consumeLexeme();if(null!=r){if(-1==e.query.allFields.indexOf(r.str)){var i=e.query.allFields.map(function(a){return"'"+a+"'"}).join(", ");throw new t.QueryParseError("unrecognised field '"+r.str+"', possible fields: "+i,r.start,r.end)}e.currentClause.fields=[r.str];var n=e.peekLexeme();if(null==n)throw new t.QueryParseError("expecting term, found nothing",r.start,r.end);if(n.type===t.QueryLexer.TERM)return t.QueryParser.parseTerm;throw new t.QueryParseError("expecting term, found '"+n.type+"'",n.start,n.end)}},t.QueryParser.parseTerm=function(e){var r=e.consumeLexeme();if(null!=r){e.currentClause.term=r.str.toLowerCase(),-1!=r.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var i=e.peekLexeme();if(null==i)return void e.nextClause();switch(i.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:throw new t.QueryParseError("Unexpected lexeme type '"+i.type+"'",i.start,i.end)}}},t.QueryParser.parseEditDistance=function(e){var r=e.consumeLexeme();if(null!=r){var i=parseInt(r.str,10);if(isNaN(i))throw new t.QueryParseError("edit distance must be numeric",r.start,r.end);e.currentClause.editDistance=i;var n=e.peekLexeme();if(null==n)return void e.nextClause();switch(n.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:throw new t.QueryParseError("Unexpected lexeme type '"+n.type+"'",n.start,n.end)}}},t.QueryParser.parseBoost=function(e){var r=e.consumeLexeme();if(null!=r){var i=parseInt(r.str,10);if(isNaN(i))throw new t.QueryParseError("boost must be numeric",r.start,r.end);e.currentClause.boost=i;var n=e.peekLexeme();if(null==n)return void e.nextClause();switch(n.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:throw new t.QueryParseError("Unexpected lexeme type '"+n.type+"'",n.start,n.end)}}},void 0!==(j="function"==typeof(Y=function(){return t})?Y.call(H,I,H,z):Y)&&(z.exports=j)}()},32540:(z,H,I)=>{"use strict";I.d(H,{eT:()=>M,Zm:()=>m,B6:()=>_,Gf:()=>b});var Y=I(44022),j=I(19369),t=I(68411),e=I(70634),r=I.n(e),i=I(13413),s=I(2316);const n=t.Y.getLogger("LunrSearchService"),a=[{key:"fundName",extractor:"fundName"},{key:"investmentGroup",extractor:"investmentGroup"},{key:"shareClassFeeStructure",extractor:"shareClass.shareClassFeeStructure"},{key:"shareClassCurrency",extractor:"shareClass.shareClassCurrency"},{key:"fundId",extractor:"shareClass.identifiers.fundId"},{key:"shareClassCode",extractor:"shareClass.identifiers.shareClassCode"},{key:"shareClassName",extractor:"shareClass.shareClassName"},{key:"ticker",extractor:"shareClass.identifiers.ticker"},{key:"isin",extractor:"shareClass.identifiers.isin"},{key:"sedol",extractor:"shareClass.identifiers.sedol"},{key:"bloomberg",extractor:"shareClass.identifiers.bloomberg"},{key:"taid",extractor:"shareClass.identifiers.taid"},{key:"cusip",extractor:"shareClass.identifiers.cusip"},{key:"reuterSystem",extractor:"shareClass.identifiers.reuterSystem"},{key:"countryCode",extractor:"shareClass.identifiers.countryCode"},{key:"languageCode",extractor:"shareClass.identifiers.languageCode"},{key:"mexId",extractor:"shareClass.identifiers.mexId"},{key:"apir",extractor:"shareClass.identifiers.apir"},{key:"arsn",extractor:"shareClass.identifiers.arsn"},{key:"anbimaCode",extractor:"shareClass.identifiers.anbimaCode"},{key:"vln",extractor:"shareClass.identifiers.vln"},{key:"intradayNav",extractor:"shareClass.identifiers.intradayNav"},{key:"rfi",extractor:"shareClass.identifiers.rfi"},{key:"adm",extractor:"shareClass.identifiers.adm"},{key:"dsc",extractor:"shareClass.identifiers.dsc"},{key:"iress",extractor:"shareClass.identifiers.iress"},{key:"iressinavCode",extractor:"shareClass.identifiers.iressinavCode"},{key:"fundbmTicker",extractor:"shareClass.identifiers.fundbmTicker"},{key:"wkn",extractor:"shareClass.identifiers.wkn"},{key:"nasdaqxnms",extractor:"shareClass.identifiers.nasdaqxnms"},{key:"iopv",extractor:"shareClass.identifiers.iopv"},{key:"frontend",extractor:"shareClass.identifiers.frontend"},{key:"lowload",extractor:"shareClass.identifiers.lowload"},{key:"dsc",extractor:"shareClass.identifiers.dsc"},{key:"adm",extractor:"shareClass.identifiers.adm"},{key:"annualCharge",extractor:"shareClass.charges.annualCharge"}],u=[{key:"fundId",extractor:"product.fundId"},{key:"fundName",extractor:"product.fundName"},{key:"LitFundName",extractor:"literatureData.fundName"},{key:"docId",extractor:"literatureData.docId"},{key:"assetClass",extractor:"product.assetClass"},{key:"sfdrcategory",extractor:"product.sfdrcategory"},{key:"productType",extractor:"product.productType"},{key:"keywords",extractor:"literatureData.keywords"},{key:"dctermsType",extractor:"literatureData.dctermsType"},{key:"dctermsDescription",extractor:"literatureData.dctermsDescription"},{key:"fundNameGenerated",extractor:"literatureData.fundNameGenerated"},{key:"frkFundGroupCode",extractor:"literatureData.frkFundGroupCode"},{key:"translatedDctermsType",extractor:"literatureData.translatedDctermsType"},{key:"litbloomberg",extractor:"literatureData.identifiers.bloomberg"},{key:"littaid",extractor:"literatureData.identifiers.taid"},{key:"litsedol",extractor:"literatureData.identifiers.sedol"},{key:"litisin",extractor:"literatureData.identifiers.isin"},{key:"litcusip",extractor:"literatureData.identifiers.cusip"},{key:"litreuterSystem",extractor:"literatureData.identifiers.reuterSystem"},{key:"litwkn",extractor:"literatureData.identifiers.wkn"},{key:"litvln",extractor:"literatureData.identifiers.vln"},{key:"litmexid",extractor:"literatureData.identifiers.mexid"},{key:"litrfi",extractor:"literatureData.identifiers.rfi"},{key:"litapir",extractor:"literatureData.identifiers.apir"},{key:"litarsn",extractor:"literatureData.identifiers.arsn"},{key:"litadm",extractor:"literatureData.identifiers.adm"},{key:"litdsc",extractor:"literatureData.identifiers.dsc"},{key:"litticker",extractor:"literatureData.identifiers.ticker"},{key:"litiress",extractor:"literatureData.identifiers.iress"},{key:"litiressinavcode",extractor:"literatureData.identifiers.iressinavcode"},{key:"litanbimacode",extractor:"literatureData.identifiers.anbimacode"},{key:"litintradaynav",extractor:"literatureData.identifiers.intradaynav"},{key:"litfundbmticker",extractor:"literatureData.identifiers.fundbmticker"},{key:"littopic",extractor:"literatureData.topic"},{key:"litsubTopic",extractor:"literatureData.subTopic"},{key:"litassetCategory",extractor:"literatureData.assetCategory"},{key:"fundIds",extractor:"literatureData.multipleProductsForSearch.fundIds"},{key:"fundNames",extractor:"literatureData.multipleProductsForSearch.fundNames"},{key:"bloomberg",extractor:"literatureData.multipleProductsForSearch.identifiers.bloomberg"},{key:"taid",extractor:"literatureData.multipleProductsForSearch.identifiers.taid"},{key:"sedol",extractor:"literatureData.multipleProductsForSearch.identifiers.sedol"},{key:"isin",extractor:"literatureData.multipleProductsForSearch.identifiers.isin"},{key:"cusip",extractor:"literatureData.multipleProductsForSearch.identifiers.cusip"},{key:"reuterSystem",extractor:"literatureData.multipleProductsForSearch.identifiers.reuterSystem"},{key:"wkn",extractor:"literatureData.multipleProductsForSearch.identifiers.wkn"},{key:"vln",extractor:"literatureData.multipleProductsForSearch.identifiers.vln"},{key:"mexid",extractor:"literatureData.multipleProductsForSearch.identifiers.mexid"},{key:"rfi",extractor:"literatureData.multipleProductsForSearch.identifiers.rfi"},{key:"apir",extractor:"literatureData.multipleProductsForSearch.identifiers.apir"},{key:"arsn",extractor:"literatureData.multipleProductsForSearch.identifiers.arsn"},{key:"adm",extractor:"literatureData.multipleProductsForSearch.identifiers.adm"},{key:"dsc",extractor:"literatureData.multipleProductsForSearch.identifiers.dsc"},{key:"ticker",extractor:"literatureData.multipleProductsForSearch.identifiers.ticker"},{key:"iress",extractor:"literatureData.multipleProductsForSearch.identifiers.iress"},{key:"iressinavcode",extractor:"literatureData.multipleProductsForSearch.identifiers.iressinavcode"},{key:"anbimacode",extractor:"literatureData.multipleProductsForSearch.identifiers.anbimacode"},{key:"intradaynav",extractor:"literatureData.multipleProductsForSearch.identifiers.intradaynav"},{key:"fundbmticker",extractor:"literatureData.multipleProductsForSearch.identifiers.fundbmticker"},{key:"fundShareClassNames",extractor:"literatureData.shareClassNames"},{key:"isins",extractor:"isins"}],h=["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"];let c=(()=>{class f{constructor(){this.numericTokenPattern=/^\d+$/,this.indexingDoneSubject$=new i.t(1),this.loadModule()}loadModule(){this.lunrAsyncModule||Promise.resolve().then(I.t.bind(I,70634,23)).then(o=>{this.lunrAsyncModule=o.default})}init(o,d){var p=this;return(0,j.Z)(function*(){if(p.lunrAsyncModule&&o?.length){const y=p;p.lunrIndex=p.lunrAsyncModule(function(){this.ref("indexId"),this.use((l,E)=>
1{E.forEach(O=>{const w=O.extractor;l.field(O.key,{boost:1,extractor:R=>{let G=R;return w.split(".").forEach(P=>{G[P]&&(G=G[P])}),"object"!=typeof G?G:null}})})},d),o.forEach((l,E)=>{l.indexId=E,this.add(l)},this),y.indexingDoneSubject$.next(!0),y.indexingDoneSubject$.complete()})}})()}sanitizeSearchKeyword(o,d){let p=o.toLowerCase().replace(/[-|_|`|!|'|&|%|$|#|<|>|"|?|@|+|=|*|~|:]/g," ");return d||(p=p.replace("funds"," ").replace("fund"," ")),p}normalizeSearch(o,d){const p=["bio","tech","biotech"];return(o=this.sanitizeSearchKeyword(o,d)).split(" ").map(y=>((y=y.trim())&&(p.includes(y)?y="*"+y+"*":h.includes(y)||(y=this.numericTokenPattern.test(y)?"+"+y:y?.length>2?"+"+y+"~1":y)),y)).filter(y=>y).join(" ")}search(o,d){const p=d;d=this.normalizeSearch(d,!!o[0]?.literatureData);try{return this.sortByFilteredData(this.lunrIndex?.search(d),o)}catch(y){if(y instanceof r().QueryParseError)return n.error("[lunr error] "+p,y),[]}}sortByFilteredData(o,d){return o?.length&&o?.map(p=>{const y=d.filter((F,l)=>F.indexId===parseInt(p.ref,10))[0];return y&&(y.score=p.score),y})?.filter(p=>void 0!==p)||[]}getInitializationDone$(){return this.indexingDoneSubject$.asObservable()}}return f.\u0275fac=function(o){return new(o||f)},f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();var x=I(26310),L=I(98220),T=I(26954),Q=I.n(T),A=I(79441),N=I(22663),C=I(59278),k=I(55311);const V=["ASSET_CLASS","CLASS_GEOGRAPHY","CLASS_STRATEGY","INVESTMENT_MANAGER","INVESTMENT_GROUP","INVESTMENT_VEHICLE","FUND_CATEGORY","FUND_FAMILY","ETF_TYPE","METHODOLOGY","SFDR"];let _=(()=>{class f{constructor(o,d,p){this.siteConfigService=o,this.lunrSearchService=d,this.personalisationService=p,this.subject=new A.xQ,this.totalCheckedCheckboxes=0,this.favoriteOnlySwitchState=x.wl.OFF,this.unsubscribe$=new A.xQ,this.isActiveListUpdatedByFirmFunds=!1,this.personalisationService.getIsActiveListUpdatedByFirm$()?.pipe((0,N.R)(this.unsubscribe$))?.subscribe(y=>this.isActiveListUpdatedByFirmFunds=y)}setFavoriteOnlySwitchState(o){this.favoriteOnlySwitchState=o}init(o,d){switch(this.products=o,d){case"PPSS":this.lunrSearchService.init(o,a),this.sendNext("initialListPPSS",this.products);break;case"Literature":this.lunrSearchService.init(o,u),this.sendNext("initialListLiterature",this.products);break;default:this.sendNext("initialList",this.products)}}setProducts(o){this.products=o}getData(){return this.subject.asObservable()}setCheckboxState(o,d){this.products.find(p=>p.literatureData.rowId===o).literatureData.isSelected=d,this.updateCheckedCheckboxes()}updateCheckedCheckboxes(){this.totalCheckedCheckboxes=this.products.filter(o=>o.literatureData.isSelected).length}getTotalCheckedChecboxes(){return this.totalCheckedCheckboxes}getCurrentFilterSelection(){return this.currentFilterSelection}sendNext(o,d){this.subject.next([o,d])}filter(o){o&&(this.currentFilterSelection=o),this.sendNext("filteredList",this.filterBySelection(this.currentFilterSelection,this.products))}filterWithLunr(o,d,p){o&&(this.currentFilterSelection=o);const y=this.filterBySelection(this.currentFilterSelection,this.products);if(d?.selected?.length>0){const F=new Map;F.set(d.type,d.selected);const l=this.filterBySelection({selectedFilters:F},y);l?.length?this.sendNext("filteredList",l):this.lunrSearchService.getInitializationDone$().pipe((0,N.R)(this.unsubscribe$)).subscribe(E=>{if(E){const O=d.selected.pop(),w=this.lunrSearchService.search(y,O);p&&!w?.length?this.sendNext("requery",this.lunrSearchService.search(this.products,O)):this.sendNext("filteredList",w)}})}else this.sendNext("filteredList",y)}filterBySelection(o,d){let p=d.filter(y=>this.isSelected(o,y));return p[0]?.literatureData&&(p=this.addMatchesOnTicker(p,o)),p}addMatchesOnTicker(o,d){const p=Array.from(d.selectedFilters).filter(F=>"SEARCH_KEYWORD"===F[0]?.key)[0];let y="";return p?.length>1&&(y=p[1][0]),o.map(F=>{let l=!1;return y&&F?.literatureData?.identifiers?.ticker&&(l=F?.literatureData.identifiers.ticker.includes(y.toUpperCase())),{...F,matchesOnTicker:l}})}isSelected(o,d){let p=!0,y=!1;
1for(const[F,l]of o.selectedFilters.entries())("SHARE_CLASS"===F?.key||"CURRENCY"===F?.key||"SHARE_CLASS_NAME"===F?.key)&&(y=!0);for(const[F,l]of o.selectedFilters.entries()){const E=Boolean(V.find(w=>F?.key===w));let O=!1;for(const w of F.paths){if("PRIMARY_SHARE_CLASS"===F?.key&&d?.productType===Y.KJ&&1===o.selectedFilters.size){O=!0;break}if(F.predicate(l,Q()(d,w,null),o)){O=!0;break}}if(!O){p=!1;break}if(!this.siteConfigService.isNjBest()&&O&&E&&!1===d?.shareClass?.primaryShareClass&&!y&&this.favoriteOnlySwitchState===x.wl.OFF&&"ETFs"!==d?.productType&&!this.isActiveListUpdatedByFirmFunds){p=!1;break}}return p}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}}return f.\u0275fac=function(o){return new(o||f)(s.LFG(C.r5),s.LFG(c),s.LFG(k.Cc))},f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const g=(f,v)=>f.indexOf(String(v).trim())>-1;class B{constructor(v,o,d,p=[]){this.key=v,this.predicate=o,this.paths=d,this.excludeValuesFromFilter=p}}class m extends B{constructor(v,o,d,p=[]){super(v,o,d,p),this.key=v,this.predicate=o,this.paths=d,this.excludeValuesFromFilter=p}}m.PRIMARY_SHARE_CLASS=new m("PRIMARY_SHARE_CLASS",g,["shareClass.primaryShareClass"]),m.FAV_FUND_WITH_PRIMARY_SHARECLASS=new m("FAV_FUND_WITH_PRIMARY_SHARECLASS",g,["shareClass.primaryShareClass","shareClass.isFavoriteFund"]),m.ASSET_CLASS=new m("ASSET_CLASS",g,["assetClass"]),m.SFDR=new m("SFDR",g,["sfdrCategory"]),m.INVESTMENT_MANAGER=new m("INVESTMENT_MANAGER",g,["investmentManager"]),m.SHARE_CLASS=new m("SHARE_CLASS",g,["shareClass.shareClassFeeStructure"],["SINGLCLASS","NA","N/A"]),m.SHARE_CLASS_NAME=new m("SHARE_CLASS_NAME",g,["shareClass.shareClassName"],["SINGLCLASS","NA","N/A"]),m.CLASS_STRATEGY=new m("CLASS_STRATEGY",g,["investmentCategory"]),m.INVESTMENT_VEHICLE=new m("INVESTMENT_VEHICLE",g,["investmentVehicle"]),m.CLASS_GEOGRAPHY=new m("CLASS_GEOGRAPHY",g,["region"]),m.INVESTMENT_GROUP=new m("INVESTMENT_GROUP",g,["investmentGroup"]),m.SEARCH_KEYWORD=new m("SEARCH_KEYWORD",(f,v)=>f.filter(o=>!!v&&v.toUpperCase().indexOf(o.toUpperCase())>-1).length>0,["fundName","investmentGroup","shareClass.shareClassFeeStructure","shareClass.shareClassCurrency","shareClass.identifiers.fundId","shareClass.identifiers.shareClassCode","shareClass.identifiers.ticker","shareClass.identifiers.isin","shareClass.identifiers.sedol","shareClass.identifiers.bloomberg","shareClass.identifiers.taid","shareClass.identifiers.cusip","shareClass.identifiers.reuterSystem","shareClass.identifiers.countryCode","shareClass.identifiers.languageCode","shareClass.identifiers.mexId","shareClass.identifiers.apir","shareClass.identifiers.arsn","shareClass.identifiers.anbimaCode","shareClass.identifiers.vln","shareClass.identifiers.intradayNav","shareClass.identifiers.rfi","shareClass.identifiers.adm","shareClass.identifiers.dsc","shareClass.identifiers.iress","shareClass.identifiers.iressinavCode","shareClass.identifiers.fundbmTicker","shareClass.identifiers.wkn","shareClass.identifiers.nasdaqxnms","shareClass.identifiers.iopv","shareClass.identifiers.frontend","shareClass.identifiers.lowload","shareClass.identifiers.dsc","shareClass.identifiers.adm","shareClass.charges.annualCharge"]),m.FUND_CATEGORY_ASSET_CLASS=new m("FUND_CATEGORY_ASSET_CLASS",g,["fundCategory"]),m.CURRENCY=new m("CURRENCY",g,["shareClass.shareClassCurrency"]),m.ETF_TYPE=new m("ETF_TYPE",g,["etfType"]),m.FUND_CATEGORY=new m("FUND_CATEGORY",g,["fundCategory"]),m.WEB_STRATEGY=new m("WEB_STRATEGY",g,["strategy"]),m.MORNINGSTAR_RATING=new m("MORNINGSTAR_RATING",(f,v)=>f.filter(o=>(0,L.p3)(v)>=(0,L.p3)(o)).length>0,["shareClass.ratings.morningStarRatingOverall"]),m.FUND_FAMILY=new m("FUND_FAMILY",g,["fundFamily"]),m.METHODOLOGY=new m("METHODOLOGY",g,["methodology"]);class D extends B{constructor(v,o,d,p=[]){super(v,o,d,p),this.key=v,this.predicate=o,this.paths=d,this.excludeValuesFromFilter=p}static isDataSelected(v,o){let d=!1;for(const p of o){for(const y of v)if(d=p?.trim().toUpperCase().indexOf(y.trim().toUpperCase())>-1,d)break;if(d)break}return d}}D.INVESTMENT_MANAGER=new D("INVESTMENT_MANAGER",g,["product.investmentManager"]),D.INVESTMENT_VEHICLE=new D("INVESTMENT_VEHICLE",g,["product.investmentVehicle"]),D.ASSET_CLASS=new D("ASSET_CLASS",g,["product.assetClass"]),D.SFDR=new D("SFDR",g,["product.sfdrCategory"]),D.PRODUCT_TYPE=new D("PRODUCT_TYPE",g,["product.productType"]),D.ASSET_CATEGORY=new D("ASSET_CATEGORY",g,["literatureData.assetCategory"]),D.DATE=new D("DATE",g,["literatureData.frkReferenceYear"]),D.INVESTMENT_GROUP=new D("INVESTMENT_GROUP",g,["product.investmentGroup"]),D.SHARE_CLASS_NAME=new D("SHARE_CLASS_NAME",g,["shareClass"],["SINGLCLASS","NA","N/A"]);class M extends D{}M.SHARE_CLASS=new M("SHARE_CLASS",(f,v)=>M.isDataSelected(f,v),["shareClass"]),M.SHARE_CLASS_NAME=new M("SHARE_CLASS_NAME",(f,v)=>M.isDataSelected(f,v),["shareClass"],["SINGLCLASS","NA","N/A"]),M.SEARCH_KEYWORD=new M("SEARCH_KEYWORD",(f,v)=>f.filter(o=>{let d=!1;return Array.isArray(v)?M.isDataSelected(f,v):(d=v?.toUpperCase().indexOf(o?.toUpperCase())>-1,d)}).length>0,["product.fundId","product.fundName","product.assetClass","product.sfdrcategory","product.productType","identifier.bloomberg","identifier.taid","identifier.sedol","identifier.isin","identifier.cusip","identifier.reuterSystem","identifier.wkn","identifier.vln","identifier.mexid","identifier.rfi","identifier.apir","
1identifier.arsn","identifier.adm","identifier.dsc","identifier.ticker","identifier.iress","identifier.iressinavcode","identifier.anbimacode","identifier.intradaynav","identifier.fundbmticker"]);class b extends D{}b.DOCUMENT_TYPE=new b("DOCUMENT_TYPE",g,["literatureData.dctermsType"]),b.CURRENCY=new b("CURRENCY",(f,v)=>D.isDataSelected(f,v),["literatureData.identifiers.shareClassCurrency"]),b.DISTRIBUTION=new b("DISTRIBUTION",(f,v)=>D.isDataSelected(f,v),["literatureData.identifiers.distributionIndicator"]),b.SHARE_CLASS=new b("SHARE_CLASS",(f,v)=>D.isDataSelected(f,v),["literatureData.identifiers.shareClassFeeStructure"]),b.SHARE_CLASS_NAME=new b("SHARE_CLASS_NAME",g,["literatureData.shareclass.shareClassName"],["SINGLCLASS","NA","N/A"]),b.TOPICS=new b("TOPICS",(f,v)=>D.isDataSelected(f,v),["literatureData.topic"]),b.SUB_TOPICS=new b("SUB_TOPICS",g,["literatureData.subTopic"]),b.CLIENT_USE=new b("CLIENT_USE",g,["literatureData.isPublicDoc"]),b.LANGUAGE=new b("LANGUAGE",(f,v)=>D.isDataSelected(f,v),["literatureData.languageFilterValues"]),b.SEARCH_KEYWORD=new b("SEARCH_KEYWORD",(f,v)=>f.filter(o=>{let d=!1;return Array.isArray(v)?D.isDataSelected(f,v):(d=v?.toUpperCase().indexOf(o?.toUpperCase())>-1,d)}).length>0,["product.fundId","product.fundName","literatureData.fundName","shareClassNames","isins","literatureData.docId","product.assetClass","product.sfdrcategory","product.productType","literatureData.keywords","literatureData.dctermsType","literatureData.dctermsDescription","literatureData.fundNameGenerated","literatureData.frkFundGroupCode","literatureData.translatedDctermsType","literatureData.identifiers.bloomberg","literatureData.identifiers.taid","literatureData.identifiers.sedol","literatureData.identifiers.isin","literatureData.identifiers.cusip","literatureData.identifiers.reuterSystem","literatureData.identifiers.wkn","literatureData.identifiers.vln","literatureData.identifiers.mexid","literatureData.identifiers.rfi","literatureData.identifiers.apir","literatureData.identifiers.arsn","literatureData.identifiers.adm","literatureData.identifiers.dsc","literatureData.identifiers.ticker","literatureData.identifiers.iress","literatureData.identifiers.iressinavcode","literatureData.identifiers.anbimacode","literatureData.identifiers.intradaynav","literatureData.identifiers.fundbmticker","literatureData.topic","literatureData.subTopic","literatureData.assetCategory","literatureData.multipleProductsForSearch.fundIds","literatureData.multipleProductsForSearch.fundNames","literatureData.multipleProductsForSearch.identifiers.bloomberg","literatureData.multipleProductsForSearch.identifiers.taid","literatureData.multipleProductsForSearch.identifiers.sedol","literatureData.multipleProductsForSearch.identifiers.isin","literatureData.multipleProductsForSearch.identifiers.cusip","literatureData.multipleProductsForSearch.identifiers.reuterSystem","literatureData.multipleProductsForSearch.identifiers.wkn","literatureData.multipleProductsForSearch.identifiers.vln","literatureData.multipleProductsForSearch.identifiers.mexid","literatureData.multipleProductsForSearch.identifiers.rfi","literatureData.multipleProductsForSearch.identifiers.apir","literatureData.multipleProductsForSearch.identifiers.arsn","literatureData.multipleProductsForSearch.identifiers.adm","literatureData.multipleProductsForSearch.identifiers.dsc","literatureData.multipleProductsForSearch.identifiers.ticker","literatureData.multipleProductsForSearch.identifiers.iress","literatureData.multipleProductsForSearch.identifiers.iressinavcode","literatureData.multipleProductsForSearch.identifiers.anbimacode","literatureData.multipleProductsForSearch.identifiers.intradaynav","literatureData.multipleProductsForSearch.identifiers.fundbmticker"])}}]); 2//# sourceMappingURL=default-src_app_ft-components_products_fund-listing_services_fund-filter_service_ts.5d2f15b78209be55eabe.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.