12 |
- /*! For license information please see main.js.LICENSE.txt */
- "use strict";(()=>{var e,t,r=Object.create,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,l=(e=(e,t)=>{!function(){var r,i=function(e){var t=new i.Builder;return t.pipeline.add(i.trimmer,i.stopWordFilter,i.stemmer),t.searchPipeline.add(i.stemmer),e.call(t,t),t.build()};i.version="2.3.9",i.utils={},i.utils.warn=(r=this,function(e){r.console&&console.warn&&console.warn(e)}),i.utils.asString=function(e){return null==e?"":e.toString()},i.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),i=0;i<r.length;i++){var n=r[i],s=e[n];if(Array.isArray(s))t[n]=s.slice();else{if("string"!=typeof s&&"number"!=typeof s&&"boolean"!=typeof s)throw new TypeError("clone is not deep and does not support nested objects");t[n]=s}}return t},i.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},i.FieldRef.joiner="/",i.FieldRef.fromString=function(e){var t=e.indexOf(i.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var r=e.slice(0,t),n=e.slice(t+1);return new i.FieldRef(n,r,e)},i.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+i.FieldRef.joiner+this.docRef),this._stringValue},i.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},i.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},i.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},i.Set.prototype.contains=function(e){return!!this.elements[e]},i.Set.prototype.intersect=function(e){var t,r,n,s=[];if(e===i.Set.complete)return this;if(e===i.Set.empty)return e;this.length<e.length?(t=this,r=e):(t=e,r=this),n=Object.keys(t.elements);for(var o=0;o<n.length;o++){var a=n[o];a in r.elements&&s.push(a)}return new i.Set(s)},i.Set.prototype.union=function(e){return e===i.Set.complete?i.Set.complete:e===i.Set.empty?this:new i.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},i.idf=function(e,t){var r=0;for(var i in e)"_index"!=i&&(r+=Object.keys(e[i]).length);var n=(t-r+.5)/(r+.5);return Math.log(1+Math.abs(n))},i.Token=function(e,t){this.str=e||"",this.metadata=t||{}},i.Token.prototype.toString=function(){return this.str},i.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},i.Token.prototype.clone=function(e){return e=e||function(e){return e},new i.Token(e(this.str,this.metadata),this.metadata)},i.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new i.Token(i.utils.asString(e).toLowerCase(),i.utils.clone(t))}));for(var r=e.toString().toLowerCase(),n=r.length,s=[],o=0,a=0;o<=n;o++){var l=o-a;if(r.charAt(o).match(i.tokenizer.separator)||o==n){if(l>0){var u=i.utils.clone(t)||{};u.position=[a,l],u.index=s.length,s.push(new i.Token(r.slice(a,o),u))}a=o+1}}return s},i.tokenizer.separator=/[\s\-]+/,i.Pipeline=function(){this._stack=[]},i.Pipeline.registeredFunctions=Object.create(null),i.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&i.utils.warn("Overwriting existing registered function: "+t),e.label=t,i.Pipeline.registeredFunctions[e.label]=e},i.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||i.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},i.Pipeline.load=function(e){var t=new i.Pipeline;return e.forEach((function(e){var r=i.Pipeline.registeredFunctions[e];if(!r)throw new Error("Cannot load unregistered function: "+e);t.add(r)})),t},i.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach((function(e){i.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},i.Pipeline.prototype.after=function(e,t){i.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},i.Pipeline.prototype.before=function(e,t){i.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},i.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},i.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r<t;r++){for(var i=this._stack[r],n=[],s=0;s<e.length;s++){var o=i(e[s],s,e);if(null!=o&&""!==o)if(Array.isArray(o))for(var a=0;a<o.length;a++)n.push(o[a]);else n.push(o)}e=n}return e},i.Pipeline.prototype.runString=function(e,t){var r=new i.Token(e,t);return this.run([r]).map((function(e){return e.toString()}))},i.Pipeline.prototype.reset=function(){this._stack=[]},i.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return i.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},i.Vector=function(e){this._magnitude=0,this.elements=e||[]},i.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,r=this.elements.length/2,i=r-t,n=Math.floor(i/2),s=this.elements[2*n];i>1&&(s<e&&(t=n),s>e&&(r=n),s!=e);)i=r-t,n=t+Math.floor(i/2),s=this.elements[2*n];return s==e||s>e?2*n:s<e?2*(n+1):void 0},i.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},i.Vector.prototype.upsert=function(e,t,r){this._magnitude=0;var i=this.positionForIndex(e);this.elements[i]==e?this.elements[i+1]=r(this.elements[i+1],t):this.elements.splice(i,0,e,t)},i.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,r=1;r<t;r+=2){var i=this.elements[r];e+=i*i}return this._magnitude=Math.sqrt(e)},i.Vector.prototype.dot=function(e){for(var t=0,r=this.elements,i=e.elements,n=r.length,s=i.length,o=0,a=0,l=0,u=0;l<n&&u<s;)(o=r[l])<(a=i[u])?l+=2:o>a?u+=2:o==a&&(t+=r[l+1]*i[u+1],l+=2,u+=2);return t},i.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},i.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t<this.elements.length;t+=2,r++)e[r]=this.elements[t];return e},i.Vector.prototype.toJSON=function(){return this.elements},i.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"},t={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},r="[aeiouy]",i="[^aeiou][^aeiouy]*",n=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),s=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),o=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),a=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),l=/^(.+?)(ss|i)es$/,u=/^(.+?)([^s])s$/,c=/^(.+?)eed$/,h=/^(.+?)(ed|ing)$/,d=/.$/,f=/(at|bl|iz)$/,p=new RegExp("([^aeiouylsz])\\1$"),m=new RegExp("^"+i+r+"[^aeiouwxy]$"),y=/^(.+?[^aeiou])y$/,g=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,v=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,x=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,w=/^(.+?)(s|t)(ion)$/,E=/^(.+?)e$/,L=/ll$/,b=new RegExp("^"+i+r+"[^aeiouwxy]$"),S=function(r){var i,S,k,Q,T,P,I;if(r.length<3)return r;if("y"==(k=r.substr(0,1))&&(r=k.toUpperCase()+r.substr(1)),T=u,(Q=l).test(r)?r=r.replace(Q,"$1$2"):T.test(r)&&(r=r.replace(T,"$1$2")),T=h,(Q=c).test(r)){var O=Q.exec(r);(Q=n).test(O[1])&&(Q=d,r=r.replace(Q,""))}else T.test(r)&&(i=(O=T.exec(r))[1],(T=a).test(i)&&(P=p,I=m,(T=f).test(r=i)?r+="e":P.test(r)?(Q=d,r=r.replace(Q,"")):I.test(r)&&(r+="e")));return(Q=y).test(r)&&(r=(i=(O=Q.exec(r))[1])+"i"),(Q=g).test(r)&&(i=(O=Q.exec(r))[1],S=O[2],(Q=n).test(i)&&(r=i+e[S])),(Q=v).test(r)&&(i=(O=Q.exec(r))[1],S=O[2],(Q=n).test(i)&&(r=i+t[S])),T=w,(Q=x).test(r)?(i=(O=Q.exec(r))[1],(Q=s).test(i)&&(r=i)):T.test(r)&&(i=(O=T.exec(r))[1]+O[2],(T=s).test(i)&&(r=i)),(Q=E).test(r)&&(i=(O=Q.exec(r))[1],T=o,P=b,((Q=s).test(i)||T.test(i)&&!P.test(i))&&(r=i)),T=s,(Q=L).test(r)&&T.test(r)&&(Q=d,r=r.replace(Q,"")),"y"==k&&(r=k.toLowerCase()+r.substr(1)),r};return function(e){return e.update(S)}}(),i.Pipeline.registerFunction(i.stemmer,"stemmer"),i.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},i.stopWordFilter=i.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"]),i.Pipeline.registerFunction(i.stopWordFilter,"stopWordFilter"),i.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},i.Pipeline.registerFunction(i.trimmer,"trimmer"),i.TokenSet=function(){this.final=!1,this.edges={},this.id=i.TokenSet._nextId,i.TokenSet._nextId+=1},i.TokenSet._nextId=1,i.TokenSet.fromArray=function(e){for(var t=new i.TokenSet.Builder,r=0,n=e.length;r<n;r++)t.insert(e[r]);return t.finish(),t.root},i.TokenSet.fromClause=function(e){return"editDistance"in e?i.TokenSet.fromFuzzyString(e.term,e.editDistance):i.TokenSet.fromString(e.term)},i.TokenSet.fromFuzzyString=function(e,t){for(var r=new i.TokenSet,n=[{node:r,editsRemaining:t,str:e}];n.length;){var s=n.pop();if(s.str.length>0){var o,a=s.str.charAt(0);a in s.node.edges?o=s.node.edges[a]:(o=new i.TokenSet,s.node.edges[a]=o),1==s.str.length&&(o.final=!0),n.push({node:o,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(0!=s.editsRemaining){if("*"in s.node.edges)var l=s.node.edges["*"];else l=new i.TokenSet,s.node.edges["*"]=l;if(0==s.str.length&&(l.final=!0),n.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&n.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),1==s.str.length&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else u=new i.TokenSet,s.node.edges["*"]=u;1==s.str.length&&(u.final=!0),n.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var c,h=s.str.charAt(0),d=s.str.charAt(1);d in s.node.edges?c=s.node.edges[d]:(c=new i.TokenSet,s.node.edges[d]=c),1==s.str.length&&(c.final=!0),n.push({node:c,editsRemaining:s.editsRemaining-1,str:h+s.str.slice(2)})}}}return r},i.TokenSet.fromString=function(e){for(var t=new i.TokenSet,r=t,n=0,s=e.length;n<s;n++){var o=e[n],a=n==s-1;if("*"==o)t.edges[o]=t,t.final=a;else{var l=new i.TokenSet;l.final=a,t.edges[o]=l,t=l}}return r},i.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var r=t.pop(),i=Object.keys(r.node.edges),n=i.length;r.node.final&&(r.prefix.charAt(0),e.push(r.prefix));for(var s=0;s<n;s++){var o=i[s];t.push({prefix:r.prefix.concat(o),node:r.node.edges[o]})}}return e},i.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),r=t.length,i=0;i<r;i++){var n=t[i];e=e+n+this.edges[n].id}return e},i.TokenSet.prototype.intersect=function(e){for(var t=new i.TokenSet,r=void 0,n=[{qNode:e,output:t,node:this}];n.length;){r=n.pop();for(var s=Object.keys(r.qNode.edges),o=s.length,a=Object.keys(r.node.edges),l=a.length,u=0;u<o;u++)for(var c=s[u],h=0;h<l;h++){var d=a[h];if(d==c||"*"==c){var f=r.node.edges[d],p=r.qNode.edges[c],m=f.final&&p.final,y=void 0;d in r.output.edges?(y=r.output.edges[d]).final=y.final||m:((y=new i.TokenSet).final=m,r.output.edges[d]=y),n.push({qNode:p,output:y,node:f})}}}return t},i.TokenSet.Builder=function(){this.previousWord="",this.root=new i.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},i.TokenSet.Builder.prototype.insert=function(e){var t,r=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var n=0;n<e.length&&n<this.previousWord.length&&e[n]==this.previousWord[n];n++)r++;for(this.minimize(r),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,n=r;n<e.length;n++){var s=new i.TokenSet,o=e[n];t.edges[o]=s,this.uncheckedNodes.push({parent:t,char:o,child:s}),t=s}t.final=!0,this.previousWord=e},i.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},i.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var r=this.uncheckedNodes[t],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}},i.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},i.Index.prototype.search=function(e){return this.query((function(t){new i.QueryParser(e,t).parse()}))},i.Index.prototype.query=function(e){for(var t=new i.Query(this.fields),r=Object.create(null),n=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l<this.fields.length;l++)n[this.fields[l]]=new i.Vector;for(e.call(t,t),l=0;l<t.clauses.length;l++){var u,c=t.clauses[l],h=i.Set.empty;u=c.usePipeline?this.pipeline.runString(c.term,{fields:c.fields}):[c.term];for(var d=0;d<u.length;d++){var f=u[d];c.term=f;var p=i.TokenSet.fromClause(c),m=this.tokenSet.intersect(p).toArray();if(0===m.length&&c.presence===i.Query.presence.REQUIRED){for(var y=0;y<c.fields.length;y++)o[C=c.fields[y]]=i.Set.empty;break}for(var g=0;g<m.length;g++){var v=m[g],x=this.invertedIndex[v],w=x._index;for(y=0;y<c.fields.length;y++){var E=x[C=c.fields[y]],L=Object.keys(E),b=v+"/"+C,S=new i.Set(L);if(c.presence==i.Query.presence.REQUIRED&&(h=h.union(S),void 0===o[C]&&(o[C]=i.Set.complete)),c.presence!=i.Query.presence.PROHIBITED){if(n[C].upsert(w,c.boost,(function(e,t){return e+t})),!s[b]){for(var k=0;k<L.length;k++){var Q,T=L[k],P=new i.FieldRef(T,C),I=E[T];void 0===(Q=r[P])?r[P]=new i.MatchData(v,C,I):Q.add(v,C,I)}s[b]=!0}}else void 0===a[C]&&(a[C]=i.Set.empty),a[C]=a[C].union(S)}}}if(c.presence===i.Query.presence.REQUIRED)for(y=0;y<c.fields.length;y++)o[C=c.fields[y]]=o[C].intersect(h)}var O=i.Set.complete,R=i.Set.empty;for(l=0;l<this.fields.length;l++){var C;o[C=this.fields[l]]&&(O=O.intersect(o[C])),a[C]&&(R=R.union(a[C]))}var F=Object.keys(r),D=[],N=Object.create(null);if(t.isNegated())for(F=Object.keys(this.fieldVectors),l=0;l<F.length;l++){P=F[l];var j=i.FieldRef.fromString(P);r[P]=new i.MatchData}for(l=0;l<F.length;l++){var _=(j=i.FieldRef.fromString(F[l])).docRef;if(O.contains(_)&&!R.contains(_)){var A,V=this.fieldVectors[j],B=n[j.fieldName].similarity(V);if(void 0!==(A=N[_]))A.score+=B,A.matchData.combine(r[j]);else{var z={ref:_,score:B,matchData:r[j]};N[_]=z,D.push(z)}}}return D.sort((function(e,t){return t.score-e.score}))},i.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:i.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},i.Index.load=function(e){var t={},r={},n=e.fieldVectors,s=Object.create(null),o=e.invertedIndex,a=new i.TokenSet.Builder,l=i.Pipeline.load(e.pipeline);e.version!=i.version&&i.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+i.version+"' does not match serialized index '"+e.version+"'");for(var u=0;u<n.length;u++){var c=(d=n[u])[0],h=d[1];r[c]=new i.Vector(h)}for(u=0;u<o.length;u++){var d,f=(d=o[u])[0],p=d[1];a.insert(f),s[f]=p}return a.finish(),t.fields=e.fields,t.fieldVectors=r,t.invertedIndex=s,t.tokenSet=a.root,t.pipeline=l,new i.Index(t)},i.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=i.tokenizer,this.pipeline=new i.Pipeline,this.searchPipeline=new i.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},i.Builder.prototype.ref=function(e){this._ref=e},i.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},i.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},i.Builder.prototype.k1=function(e){this._k1=e},i.Builder.prototype.add=function(e,t){var r=e[this._ref],n=Object.keys(this._fields);this._documents[r]=t||{},this.documentCount+=1;for(var s=0;s<n.length;s++){var o=n[s],a=this._fields[o].extractor,l=a?a(e):e[o],u=this.tokenizer(l,{fields:[o]}),c=this.pipeline.run(u),h=new i.FieldRef(r,o),d=Object.create(null);this.fieldTermFrequencies[h]=d,this.fieldLengths[h]=0,this.fieldLengths[h]+=c.length;for(var f=0;f<c.length;f++){var p=c[f];if(null==d[p]&&(d[p]=0),d[p]+=1,null==this.invertedIndex[p]){var m=Object.create(null);m._index=this.termIndex,this.termIndex+=1;for(var y=0;y<n.length;y++)m[n[y]]=Object.create(null);this.invertedIndex[p]=m}null==this.invertedIndex[p][o][r]&&(this.invertedIndex[p][o][r]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var v=this.metadataWhitelist[g],x=p.metadata[v];null==this.invertedIndex[p][o][r][v]&&(this.invertedIndex[p][o][r][v]=[]),this.invertedIndex[p][o][r][v].push(x)}}}},i.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,r={},n={},s=0;s<t;s++){var o=i.FieldRef.fromString(e[s]),a=o.fieldName;n[a]||(n[a]=0),n[a]+=1,r[a]||(r[a]=0),r[a]+=this.fieldLengths[o]}var l=Object.keys(this._fields);for(s=0;s<l.length;s++){var u=l[s];r[u]=r[u]/n[u]}this.averageFieldLength=r},i.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),r=t.length,n=Object.create(null),s=0;s<r;s++){for(var o=i.FieldRef.fromString(t[s]),a=o.fieldName,l=this.fieldLengths[o],u=new i.Vector,c=this.fieldTermFrequencies[o],h=Object.keys(c),d=h.length,f=this._fields[a].boost||1,p=this._documents[o.docRef].boost||1,m=0;m<d;m++){var y,g,v,x=h[m],w=c[x],E=this.invertedIndex[x]._index;void 0===n[x]?(y=i.idf(this.invertedIndex[x],this.documentCount),n[x]=y):y=n[x],g=y*((this._k1+1)*w)/(this._k1*(1-this._b+this._b*(l/this.averageFieldLength[a]))+w),g*=f,g*=p,v=Math.round(1e3*g)/1e3,u.insert(E,v)}e[o]=u}this.fieldVectors=e},i.Builder.prototype.createTokenSet=function(){this.tokenSet=i.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},i.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new i.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},i.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},i.MatchData=function(e,t,r){for(var i=Object.create(null),n=Object.keys(r||{}),s=0;s<n.length;s++){var o=n[s];i[o]=r[o].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=i)},i.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),r=0;r<t.length;r++){var i=t[r],n=Object.keys(e.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var s=0;s<n.length;s++){var o=n[s],a=Object.keys(e.metadata[i][o]);null==this.metadata[i][o]&&(this.metadata[i][o]=Object.create(null));for(var l=0;l<a.length;l++){var u=a[l];null==this.metadata[i][o][u]?this.metadata[i][o][u]=e.metadata[i][o][u]:this.metadata[i][o][u]=this.metadata[i][o][u].concat(e.metadata[i][o][u])}}}},i.MatchData.prototype.add=function(e,t,r){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=r);if(t in this.metadata[e])for(var i=Object.keys(r),n=0;n<i.length;n++){var s=i[n];s in this.metadata[e][t]?this.metadata[e][t][s]=this.metadata[e][t][s].concat(r[s]):this.metadata[e][t][s]=r[s]}else this.metadata[e][t]=r},i.Query=function(e){this.clauses=[],this.allFields=e},i.Query.wildcard=new String("*"),i.Query.wildcard.NONE=0,i.Query.wildcard.LEADING=1,i.Query.wildcard.TRAILING=2,i.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},i.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=i.Query.wildcard.NONE),e.wildcard&i.Query.wildcard.LEADING&&e.term.charAt(0)!=i.Query.wildcard&&(e.term="*"+e.term),e.wildcard&i.Query.wildcard.TRAILING&&e.term.slice(-1)!=i.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=i.Query.presence.OPTIONAL),this.clauses.push(e),this},i.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=i.Query.presence.PROHIBITED)return!1;return!0},i.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,i.utils.clone(t))}),this),this;var r=t||{};return r.term=e.toString(),this.clause(r),this},i.QueryParseError=function(e,t,r){this.name="QueryParseError",this.message=e,this.start=t,this.end=r},i.QueryParseError.prototype=new Error,i.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},i.QueryLexer.prototype.run=function(){for(var e=i.QueryLexer.lexText;e;)e=e(this)},i.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,r=this.pos,i=0;i<this.escapeCharPositions.length;i++)r=this.escapeCharPositions[i],e.push(this.str.slice(t,r)),t=r+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},i.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},i.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},i.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return i.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},i.QueryLexer.prototype.width=function(){return this.pos-this.start},i.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},i.QueryLexer.prototype.backup=function(){this.pos-=1},i.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=i.QueryLexer.EOS&&this.backup()},i.QueryLexer.prototype.more=function(){return this.pos<this.length},i.QueryLexer.EOS="EOS",i.QueryLexer.FIELD="FIELD",i.QueryLexer.TERM="TERM",i.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",i.QueryLexer.BOOST="BOOST",i.QueryLexer.PRESENCE="PRESENCE",i.QueryLexer.lexField=function(e){return e.backup(),e.emit(i.QueryLexer.FIELD),e.ignore(),i.QueryLexer.lexText},i.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(i.QueryLexer.TERM)),e.ignore(),e.more())return i.QueryLexer.lexText},i.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(i.QueryLexer.EDIT_DISTANCE),i.QueryLexer.lexText},i.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(i.QueryLexer.BOOST),i.QueryLexer.lexText},i.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(i.QueryLexer.TERM)},i.QueryLexer.termSeparator=i.tokenizer.separator,i.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==i.QueryLexer.EOS)return i.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return i.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(i.QueryLexer.TERM),i.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(i.QueryLexer.TERM),i.QueryLexer.lexBoost;if("+"==t&&1===e.width()||"-"==t&&1===e.width())return e.emit(i.QueryLexer.PRESENCE),i.QueryLexer.lexText;if(t.match(i.QueryLexer.termSeparator))return i.QueryLexer.lexTerm}else e.escapeCharacter()}},i.QueryParser=function(e,t){this.lexer=new i.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},i.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=i.QueryParser.parseClause;e;)e=e(this);return this.query},i.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},i.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},i.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},i.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case i.QueryLexer.PRESENCE:return i.QueryParser.parsePresence;case i.QueryLexer.FIELD:return i.QueryParser.parseField;case i.QueryLexer.TERM:return i.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(r+=" with value '"+t.str+"'"),new i.QueryParseError(r,t.start,t.end)}},i.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=i.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=i.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+t.str+"'";throw new i.QueryParseError(r,t.start,t.end)}var n=e.peekLexeme();if(null==n)throw r="expecting term or field, found nothing",new i.QueryParseError(r,t.start,t.end);switch(n.type){case i.QueryLexer.FIELD:return i.QueryParser.parseField;case i.QueryLexer.TERM:return i.QueryParser.parseTerm;default:throw r="expecting term or field, found '"+n.type+"'",new i.QueryParseError(r,n.start,n.end)}}},i.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var r=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),n="unrecognised field '"+t.str+"', possible fields: "+r;throw new i.QueryParseError(n,t.start,t.end)}e.currentClause.fields=[t.str];var s=e.peekLexeme();if(null==s)throw n="expecting term, found nothing",new i.QueryParseError(n,t.start,t.end);if(s.type===i.QueryLexer.TERM)return i.QueryParser.parseTerm;throw n="expecting term, found '"+s.type+"'",new i.QueryParseError(n,s.start,s.end)}},i.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(null==r)return void e.nextClause();switch(r.type){case i.QueryLexer.TERM:return e.nextClause(),i.QueryParser.parseTerm;case i.QueryLexer.FIELD:return e.nextClause(),i.QueryParser.parseField;case i.QueryLexer.EDIT_DISTANCE:return i.QueryParser.parseEditDistance;case i.QueryLexer.BOOST:return i.QueryParser.parseBoost;case i.QueryLexer.PRESENCE:return e.nextClause(),i.QueryParser.parsePresence;default:var n="Unexpected lexeme type '"+r.type+"'";throw new i.QueryParseError(n,r.start,r.end)}}},i.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="edit distance must be numeric";throw new i.QueryParseError(n,t.start,t.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(null==s)return void e.nextClause();switch(s.type){case i.QueryLexer.TERM:return e.nextClause(),i.QueryParser.parseTerm;case i.QueryLexer.FIELD:return e.nextClause(),i.QueryParser.parseField;case i.QueryLexer.EDIT_DISTANCE:return i.QueryParser.parseEditDistance;case i.QueryLexer.BOOST:return i.QueryParser.parseBoost;case i.QueryLexer.PRESENCE:return e.nextClause(),i.QueryParser.parsePresence;default:throw n="Unexpected lexeme type '"+s.type+"'",new i.QueryParseError(n,s.start,s.end)}}},i.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="boost must be numeric";throw new i.QueryParseError(n,t.start,t.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(null==s)return void e.nextClause();switch(s.type){case i.QueryLexer.TERM:return e.nextClause(),i.QueryParser.parseTerm;case i.QueryLexer.FIELD:return e.nextClause(),i.QueryParser.parseField;case i.QueryLexer.EDIT_DISTANCE:return i.QueryParser.parseEditDistance;case i.QueryLexer.BOOST:return i.QueryParser.parseBoost;case i.QueryLexer.PRESENCE:return e.nextClause(),i.QueryParser.parsePresence;default:throw n="Unexpected lexeme type '"+s.type+"'",new i.QueryParseError(n,s.start,s.end)}}},function(r,i){"function"==typeof define&&define.amd?define(i):"object"==typeof e?t.exports=i():r.lunr=i()}(this,(function(){return i}))}()},()=>(t||e((t={exports:{}}).exports,t),t.exports)),u=[];function c(e,t){u.push({selector:t,constructor:e})}var h=class{constructor(e){this.el=e.el,this.app=e.app}},d=(e,t=100)=>{let r=Date.now();return(...i)=>{r+t-Date.now()<0&&(e(...i),r=Date.now())}},f=class extends class{constructor(){this.listeners={}}addEventListener(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)}removeEventListener(e,t){if(!(e in this.listeners))return;let r=this.listeners[e];for(let e=0,i=r.length;e<i;e++)if(r[e]===t)return void r.splice(e,1)}dispatchEvent(e){if(!(e.type in this.listeners))return!0;let t=this.listeners[e.type].slice();for(let r=0,i=t.length;r<i;r++)t[r].call(this,e);return!e.defaultPrevented}}{constructor(){super(),this.scrollTop=0,this.lastY=0,this.width=0,this.height=0,this.showToolbar=!0,this.toolbar=document.querySelector(".tsd-page-toolbar"),this.navigation=document.querySelector(".col-menu"),window.addEventListener("scroll",d((()=>this.onScroll()),10)),window.addEventListener("resize",d((()=>this.onResize()),10)),this.searchInput=document.querySelector("#tsd-search input"),this.searchInput&&this.searchInput.addEventListener("focus",(()=>{this.hideShowToolbar()})),this.onResize(),this.onScroll()}triggerResize(){let e=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(e)}onResize(){this.width=window.innerWidth||0,this.height=window.innerHeight||0;let e=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(e)}onScroll(){this.scrollTop=window.scrollY||0;let e=new CustomEvent("scroll",{detail:{scrollTop:this.scrollTop}});this.dispatchEvent(e),this.hideShowToolbar()}hideShowToolbar(){let e=this.showToolbar;this.showToolbar=this.lastY>=this.scrollTop||this.scrollTop<=0||!!this.searchInput&&this.searchInput===document.activeElement,e!==this.showToolbar&&(this.toolbar.classList.toggle("tsd-page-toolbar--hide"),this.navigation?.classList.toggle("col-menu--hide")),this.lastY=this.scrollTop}},p=f;p.instance=new f;var m=((e,t,l)=>(l=null!=e?r(o(e)):{},((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of s(t))!a.call(e,r)&&undefined!==r&&i(e,r,{get:()=>t[r],enumerable:!(o=n(t,r))||o.enumerable});return e})(e&&e.__esModule?l:i(l,"default",{value:e,enumerable:!0}),e)))(l());function y(e,t){let r=e.querySelector(".current");if(r){let e=r;if(1===t)do{e=e.nextElementSibling??void 0}while(e instanceof HTMLElement&&null==e.offsetParent);else do{e=e.previousElementSibling??void 0}while(e instanceof HTMLElement&&null==e.offsetParent);e&&(r.classList.remove("current"),e.classList.add("current"))}else r=e.querySelector(1==t?"li:first-child":"li:last-child"),r&&r.classList.add("current")}function g(e,t){if(""===t)return e;let r=e.toLocaleLowerCase(),i=t.toLocaleLowerCase(),n=[],s=0,o=r.indexOf(i);for(;-1!=o;)n.push(x(e.substring(s,o)),`<b>${x(e.substring(o,o+i.length))}</b>`),s=o+i.length,o=r.indexOf(i,s);return n.push(x(e.substring(s))),n.join("")}var v={"&":"&","<":"<",">":">","'":"'",'"':"""};function x(e){return e.replace(/[&<>"'"]/g,(e=>v[e]))}var w,E="mousedown",L="mousemove",b="mouseup",S={x:0,y:0},k=!1,Q=!1,T=!1,P=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(P?"is-mobile":"not-mobile"),P&&"ontouchstart"in document.documentElement&&(E="touchstart",L="touchmove",b="touchend"),document.addEventListener(E,(e=>{Q=!0,T=!1;let t="touchstart"==E?e.targetTouches[0]:e;S.y=t.pageY||0,S.x=t.pageX||0})),document.addEventListener(L,(e=>{if(Q&&!T){let t="touchstart"==E?e.targetTouches[0]:e,r=S.x-(t.pageX||0),i=S.y-(t.pageY||0);T=Math.sqrt(r*r+i*i)>10}})),document.addEventListener(b,(()=>{Q=!1})),document.addEventListener("click",(e=>{k&&(e.preventDefault(),e.stopImmediatePropagation(),k=!1)}));try{w=localStorage}catch{w={getItem:()=>null,setItem(){}}}var I=w,O=document.head.appendChild(document.createElement("style"));function R(e){document.documentElement.dataset.theme=e}O.dataset.for="filters",function(){let e=document.getElementById("tsd-search");if(!e)return;let t=document.getElementById("search-script");e.classList.add("loading"),t&&(t.addEventListener("error",(()=>{e.classList.remove("loading"),e.classList.add("failure")})),t.addEventListener("load",(()=>{e.classList.remove("loading"),e.classList.add("ready")})),window.searchData&&e.classList.remove("loading"));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let n=!1;i.addEventListener("mousedown",(()=>n=!0)),i.addEventListener("mouseup",(()=>{n=!1,e.classList.remove("has-focus")})),r.addEventListener("focus",(()=>e.classList.add("has-focus"))),r.addEventListener("blur",(()=>{n||(n=!1,e.classList.remove("has-focus"))}));let s={base:e.dataset.base+"/"};!function(e,t,r,i){r.addEventListener("input",((e,t=100)=>{let r;return()=>{clearTimeout(r),r=setTimeout((()=>e()),t)}})((()=>{!function(e,t,r,i){if(function(e,t){e.index||window.searchData&&(t.classList.remove("loading"),t.classList.add("ready"),e.data=window.searchData,e.index=m.Index.load(window.searchData.index))}(i,e),!i.index||!i.data)return;t.textContent="";let n=r.value.trim(),s=n?i.index.search(`*${n}*`):[];for(let e=0;e<s.length;e++){let t=s[e],r=i.data.rows[Number(t.ref)],o=1;r.name.toLowerCase().startsWith(n.toLowerCase())&&(o*=1+1/(1+Math.abs(r.name.length-n.length))),t.score*=o}s.sort(((e,t)=>t.score-e.score));for(let e=0,r=Math.min(10,s.length);e<r;e++){let r=i.data.rows[Number(s[e].ref)],o=g(r.name,n);globalThis.DEBUG_SEARCH_WEIGHTS&&(o+=` (score: ${s[e].score.toFixed(2)})`),r.parent&&(o=`<span class="parent">${g(r.parent,n)}.</span>${o}`);let a=document.createElement("li");a.classList.value=r.classes??"";let l=document.createElement("a");l.href=i.base+r.url,l.innerHTML=o,a.append(l),t.appendChild(a)}}(e,t,r,i)}),200));let n=!1;r.addEventListener("keydown",(e=>{n=!0,"Enter"==e.key?function(e,t){let r=e.querySelector(".current");if(r||(r=e.querySelector("li:first-child")),r){let e=r.querySelector("a");e&&(window.location.href=e.href),t.blur()}}(t,r):"Escape"==e.key?r.blur():"ArrowUp"==e.key?y(t,-1):"ArrowDown"===e.key?y(t,1):n=!1})),r.addEventListener("keypress",(e=>{n&&e.preventDefault()})),document.body.addEventListener("keydown",(e=>{e.altKey||e.ctrlKey||e.metaKey||!r.matches(":focus")&&"/"===e.key&&(r.focus(),e.preventDefault())}))}(e,i,r,s)}(),c(class extends h{constructor(e){super(e),this.anchors=[],this.index=-1,p.instance.addEventListener("resize",(()=>this.onResize())),p.instance.addEventListener("scroll",(e=>this.onScroll(e))),this.createAnchors()}createAnchors(){let e=window.location.href;-1!=e.indexOf("#")&&(e=e.substring(0,e.indexOf("#"))),this.el.querySelectorAll("a").forEach((t=>{let r=t.href;if(-1==r.indexOf("#")||r.substring(0,e.length)!=e)return;let i=r.substring(r.indexOf("#")+1),n=document.querySelector("a.tsd-anchor[name="+i+"]"),s=t.parentNode;!n||!s||this.anchors.push({link:s,anchor:n,position:0})})),this.onResize()}onResize(){let e;for(let t=0,r=this.anchors.length;t<r;t++){e=this.anchors[t];let r=e.anchor.getBoundingClientRect();e.position=r.top+document.body.scrollTop}this.anchors.sort(((e,t)=>e.position-t.position));let t=new CustomEvent("scroll",{detail:{scrollTop:p.instance.scrollTop}});this.onScroll(t)}onScroll(e){let t=e.detail.scrollTop+5,r=this.anchors,i=r.length-1,n=this.index;for(;n>-1&&r[n].position>t;)n-=1;for(;n<i&&r[n+1].position<t;)n+=1;this.index!=n&&(this.index>-1&&this.anchors[this.index].link.classList.remove("focus"),this.index=n,this.index>-1&&this.anchors[this.index].link.classList.add("focus"))}},".menu-highlight"),c(class extends h{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(b,(e=>this.onPointerUp(e))),this.el.addEventListener("click",(e=>e.preventDefault())),document.addEventListener(E,(e=>this.onDocumentPointerDown(e))),document.addEventListener(b,(e=>this.onDocumentPointerUp(e)))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let t=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(t),setTimeout((()=>document.documentElement.classList.remove(t)),500)}onPointerUp(e){T||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-menu, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!T&&this.active&&e.target.closest(".col-menu")){let t=e.target.closest("a");if(t){let e=window.location.href;-1!=e.indexOf("#")&&(e=e.substring(0,e.indexOf("#"))),t.href.substring(0,e.length)==e&&setTimeout((()=>this.setActive(!1)),250)}}}},"a[data-toggle]"),c(class extends h{constructor(e){super(e),this.calculateHeights(),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.textContent.replace(/\s+/g,"-").toLowerCase()}`,this.setLocalStorage(this.fromLocalStorage(),!0),this.summary.addEventListener("click",(e=>this.toggleVisibility(e))),this.icon.style.transform=this.getIconRotation()}getIconRotation(e=this.el.open){return`rotate(${e?0:-90}deg)`}calculateHeights(){let e=this.el.open,{position:t,left:r}=this.el.style;this.el.style.position="fixed",this.el.style.left="-9999px",this.el.open=!0,this.expandedHeight=this.el.offsetHeight+"px",this.el.open=!1,this.collapsedHeight=this.el.offsetHeight+"px",this.el.open=e,this.el.style.height=e?this.expandedHeight:this.collapsedHeight,this.el.style.position=t,this.el.style.left=r}toggleVisibility(e){e.preventDefault(),this.el.style.overflow="hidden",this.el.open?this.collapse():this.expand()}expand(e=!0){this.el.open=!0,this.animate(this.collapsedHeight,this.expandedHeight,{opening:!0,duration:e?300:0})}collapse(e=!0){this.animate(this.expandedHeight,this.collapsedHeight,{opening:!1,duration:e?300:0})}animate(e,t,{opening:r,duration:i=300}){if(this.animation)return;let n={duration:i,easing:"ease"};this.animation=this.el.animate({height:[e,t]},n),this.icon.animate({transform:[this.icon.style.transform||this.getIconRotation(!r),this.getIconRotation(r)]},n).addEventListener("finish",(()=>{this.icon.style.transform=this.getIconRotation(r)})),this.animation.addEventListener("finish",(()=>this.animationEnd(r)))}animationEnd(e){this.el.open=e,this.animation=void 0,this.el.style.height="auto",this.el.style.overflow="visible",this.setLocalStorage(e)}fromLocalStorage(){let e=I.getItem(this.key);return e?"true"===e:this.el.open}setLocalStorage(e,t=!1){this.fromLocalStorage()===e&&!t||(I.setItem(this.key,e.toString()),this.el.open=e,this.handleValueChange(t))}handleValueChange(e=!1){this.fromLocalStorage()===this.el.open&&!e||(this.fromLocalStorage()?this.expand(!1):this.collapse(!1))}},".tsd-index-accordion"),c(class extends h{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",(()=>{this.setLocalStorage(this.el.checked)})),this.setLocalStorage(this.fromLocalStorage()),O.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; }\n`}fromLocalStorage(){let e=I.getItem(this.key);return e?"true"===e:this.el.checked}setLocalStorage(e){I.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),document.querySelectorAll(".tsd-index-section").forEach((e=>{e.style.display="block";let t=Array.from(e.querySelectorAll(".tsd-index-link")).every((e=>null==e.offsetParent));e.style.display=t?"none":"block"}))}},".tsd-filter-item input[type=checkbox]");var C=document.getElementById("theme");C&&function(e){let t=I.getItem("tsd-theme")||"os";e.value=t,R(t),e.addEventListener("change",(()=>{I.setItem("tsd-theme",e.value),R(e.value)}))}(C);var F=new class{constructor(){this.alwaysVisibleMember=null,this.createComponents(document.body),this.ensureFocusedElementVisible(),window.addEventListener("hashchange",(()=>this.ensureFocusedElementVisible()))}createComponents(e){u.forEach((t=>{e.querySelectorAll(t.selector).forEach((e=>{e.dataset.hasInstance||(new t.constructor({el:e,app:this}),e.dataset.hasInstance=String(!0))}))}))}filterChanged(){this.ensureFocusedElementVisible()}ensureFocusedElementVisible(){this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null);let e=document.getElementById(location.hash.substring(1));if(!e)return;let t=e.parentElement;for(;t&&"SECTION"!==t.tagName;)t=t.parentElement;if(t&&null==t.offsetParent){this.alwaysVisibleMember=t,t.classList.add("always-visible");let e=document.createElement("p");e.classList.add("warning"),e.textContent="This member is normally hidden due to your filter settings.",t.prepend(e)}}};Object.defineProperty(window,"app",{value:F})})();
|