(()=>{varle=Object.create,U=Object.defineProperty,he=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty,fe=Object.getOwnPropertyNames,pe=Object.getOwnPropertyDescriptor;varge=t=>U(t,"__esModule",{value:!0});varq=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);varye=(t,e,r)=>{if(e&&typeofe=="object"||typeofe=="function")for(letnoffe(e))!de.call(t,n)&&n!=="default"&&U(t,n,{get:()=>e[n],enumerable:!(r=pe(e,n))||r.enumerable});returnt},Y=t=>ye(ge(U(t!=null?le(he(t)):{},"default",t&&t.__esModule&&"default"int?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);varz=(t,e,r)=>newPromise((n,i)=>{vars=u=>{try{a(r.next(u))}catch(c){i(c)}},o=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(t,e)).next())});varX=q((G,J)=>{(function(){vart=function(e){varr=newt.Builder;returnr.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=function(e){returnfunction(r){e.console&&console.warn&&console.warn(r)}}(this),t.utils.asString=function(e){returne==null?"":e.toString()},t.utils.clone=function(e){if(e==null)returne;for(varr=Object.create(null),n=Object.keys(e),i=0;i<n.length;i++){vars=n[i],o=e[s];if(Array.isArray(o)){r[s]=o.slice();continue}if(typeofo=="string"||typeofo=="number"||typeofo=="boolean"){r[s]=o;continue}thrownewTypeError("clone is not deep and does not support nested objects")}returnr},t.FieldRef=function(e,r,n){this.docRef=e,this.fieldName=r,this._stringValue=n},t.FieldRef.joiner="/",t.FieldRef.fromString=function(e){varr=e.indexOf(t.FieldRef.joiner);if(r===-1)throw"malformed field ref string";varn=e.slice(0,r),i=e.slice(r+1);returnnewt.FieldRef(i,n,e)},t.FieldRef.prototype.toString=function(){returnthis._stringValue==null&&(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(varr=0;r<this.length;r++)this.elements[e[r]]=!0}elsethis.length=0},t.Set.complete={intersect:function(e){returne},union:function(){returnthis},contains:function(){return!0}},t.Set.empty={intersect:function(){returnthis},union:function(e){returne},contains:function(){return!1}},t.Set.prototype.contains=function(e){return!!this.elements[e]},t.Set.prototype.intersect=function(e){varr,n,i,s=[];if(e===t.Set.complete)returnthis;if(e===t.Set.empty)returne;this.length<e.length?(r=this,n=e):(r=e,n=this),i=Object.keys(r.elements);for(varo=0;o<i.length;o++){vara=i[o];ainn.elements&&s.push(a)}returnnewt.Set(s)},t.Set.prototype.union=function(e){returne===t.Set.complete?t.Set.complete:e===t.Set.empty?this:newt.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},t.idf=function(e,r){varn=0;for(variine)i!="_index"&&(n+=Object.keys(e[i]).length);vars=(r-n+.5)/(n+.5);returnMath.log(1+Math.abs(s))},t.Token=function(e,r){this.str=e||"",this.metadata=r||{}},t.Token.prototype.toString=function(){returnthis.str},t.Token.prototype.update=function(e){returnthis.str=e(this.str,this.metadata),this},t.Token.prototype.clone=function(e){returne=e||function(r){returnr},newt.Token(e(this.str,this.metadata),this.metadata)};t.tokenizer=function(e,r){if(e==null||e==null)return[];if(Array.isArray(e))returne.map(function(y){returnnewt.Token(t.utils.asString(y).toLowerCase(),t.utils.clone(r))});for(varn=e.toString().toLowerCase(),i=n.length,s=[],o=0,a=0;o<=i;o++){varu=n.charAt(o),c=o-a;if(u.match(t.tokenizer.separator)||o==i){if(c>0){vard=t.utils.clone(r)||{};d.position=[a,c],d.index=s.length,s.push(newt.Token(n.slice(a,o),d))}a=o+1}}returns},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,r){rinthis.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+r),e.label=r,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){varr=e.label&&e.labelin