import{b as $,d as q}from"./chunk-P42HNYSU.min.js";var Z=$((K,Y)=>{(function(){var 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=function(e){return function(r){e.console&&console.warn&&console.warn(r)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var r=Object.create(null),i=Object.keys(e),n=0;n0){var h=t.utils.clone(r)||{};h.position=[u,l],h.index=s.length,s.push(new t.Token(i.slice(u,o),h))}u=o+1}}return s},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){var r=e.label&&e.label in this.registeredFunctions;r||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. `,e)},t.Pipeline.load=function(e){var r=new t.Pipeline;return e.forEach(function(i){var n=t.Pipeline.registeredFunctions[i];if(n)r.add(n);else throw new Error("Cannot load unregistered function: "+i)}),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(i==-1)throw new Error("Cannot find existingFn");i=i+1,this._stack.splice(i,0,r)},t.Pipeline.prototype.before=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var i=this._stack.indexOf(e);if(i==-1)throw new Error("Cannot find existingFn");this._stack.splice(i,0,r)},t.Pipeline.prototype.remove=function(e){var r=this._stack.indexOf(e);r!=-1&&this._stack.splice(r,1)},t.Pipeline.prototype.run=function(e){for(var r=this._stack.length,i=0;i1&&(oe&&(i=s),o!=e);)n=i-r,s=r+Math.floor(n/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(oa?h+=2:u==a&&(r+=i[l+1]*n[h+1],l+=2,h+=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;r0){var o=s.str.charAt(0),u;o in s.node.edges?u=s.node.edges[o]:(u=new t.TokenSet,s.node.edges[o]=u),s.str.length==1&&(u.final=!0),n.push({node:u,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var a=s.node.edges["*"];else{var a=new t.TokenSet;s.node.edges["*"]=a}if(s.str.length==0&&(a.final=!0),n.push({node:a,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)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}s.str.length==1&&(l.final=!0),n.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var h=s.str.charAt(0),v=s.str.charAt(1),p;v in s.node.edges?p=s.node.edges[v]:(p=new t.TokenSet,s.node.edges[v]=p),s.str.length==1&&(p.final=!0),n.push({node:p,editsRemaining:s.editsRemaining-1,str:h+s.str.slice(2)})}}}return i},t.TokenSet.fromString=function(e){for(var r=new t.TokenSet,i=r,n=0,s=e.length;n=e;r--){var i=this.uncheckedNodes[r],n=i.child.toString();n in this.minimizedNodes?i.parent.edges[i.char]=this.minimizedNodes[n]:(i.child._str=n,this.minimizedNodes[n]=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){var i=new t.QueryParser(e,r);i.parse()})},t.Index.prototype.query=function(e){for(var r=new t.Query(this.fields),i=Object.create(null),n=Object.create(null),s=Object.create(null),o=Object.create(null),u=Object.create(null),a=0;a1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,r){var i=e[this._ref],n=Object.keys(this._fields);this._documents[i]=r||{},this.documentCount+=1;for(var s=0;s=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 e=this.next(),r=e.charCodeAt(0);while(r>47&&r<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(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(r.charCodeAt(0)==92){e.escapeCharacter();continue}if(r==":")return t.QueryLexer.lexField;if(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=="+"&&e.width()===1||r=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(r.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},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(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var r=e.peekLexeme();if(r!=null)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(r!=null){switch(r.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var i="unrecognised presence operator'"+r.str+"'";throw new t.QueryParseError(i,r.start,r.end)}var n=e.peekLexeme();if(n==null){var i="expecting term or field, found nothing";throw new t.QueryParseError(i,r.start,r.end)}switch(n.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term or field, found '"+n.type+"'";throw new t.QueryParseError(i,n.start,n.end)}}},t.QueryParser.parseField=function(e){var r=e.consumeLexeme();if(r!=null){if(e.query.allFields.indexOf(r.str)==-1){var i=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),n="unrecognised field '"+r.str+"', possible fields: "+i;throw new t.QueryParseError(n,r.start,r.end)}e.currentClause.fields=[r.str];var s=e.peekLexeme();if(s==null){var n="expecting term, found nothing";throw new t.QueryParseError(n,r.start,r.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var n="expecting term, found '"+s.type+"'";throw new t.QueryParseError(n,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var r=e.consumeLexeme();if(r!=null){e.currentClause.term=r.str.toLowerCase(),r.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var i=e.peekLexeme();if(i==null){e.nextClause();return}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:var n="Unexpected lexeme type '"+i.type+"'";throw new t.QueryParseError(n,i.start,i.end)}}},t.QueryParser.parseEditDistance=function(e){var r=e.consumeLexeme();if(r!=null){var i=parseInt(r.str,10);if(isNaN(i)){var n="edit distance must be numeric";throw new t.QueryParseError(n,r.start,r.end)}e.currentClause.editDistance=i;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.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:var n="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(n,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var r=e.consumeLexeme();if(r!=null){var i=parseInt(r.str,10);if(isNaN(i)){var n="boost must be numeric";throw new t.QueryParseError(n,r.start,r.end)}e.currentClause.boost=i;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.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:var n="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(n,s.start,s.end)}}},function(e,r){typeof define=="function"&&define.amd?define(r):typeof K=="object"?Y.exports=r():e.lunr=r()}(this,function(){return t})})()});var te=$((W,ee)=>{(function(t,e){typeof define=="function"&&define.amd?define(e):typeof W=="object"?ee.exports=e():e()(t.lunr)})(W,function(){return function(t){t.stemmerSupport={Among:function(e,r,i,n){if(this.toCharArray=function(s){for(var o=s.length,u=new Array(o),a=0;a=i&&(s-=i,r[s>>3]&1<<(s&7)))return this.cursor++,!0}return!1},in_grouping_b:function(r,i,n){if(this.cursor>this.limit_backward){var s=e.charCodeAt(this.cursor-1);if(s<=n&&s>=i&&(s-=i,r[s>>3]&1<<(s&7)))return this.cursor--,!0}return!1},out_grouping:function(r,i,n){if(this.cursorn||s>3]&1<<(s&7)))return this.cursor++,!0}return!1},out_grouping_b:function(r,i,n){if(this.cursor>this.limit_backward){var s=e.charCodeAt(this.cursor-1);if(s>n||s>3]&1<<(s&7)))return this.cursor--,!0}return!1},eq_s:function(r,i){if(this.limit-this.cursor>1),p=0,m=a0||s==n||h)break;h=!0}}for(;;){var f=r[n];if(a>=f.s_size){if(this.cursor=o+f.s_size,!f.method)return f.result;var y=f.method();if(this.cursor=o+f.s_size,y)return f.result}if(n=f.substring_i,n<0)return 0}},find_among_b:function(r,i){for(var n=0,s=i,o=this.cursor,u=this.limit_backward,a=0,l=0,h=!1;;){for(var v=n+(s-n>>1),p=0,m=a=0;b--){if(o-m==u){p=-1;break}if(p=e.charCodeAt(o-1-m)-f.s[b],p)break;m++}if(p<0?(s=v,l=m):(n=v,a=m),s-n<=1){if(n>0||s==n||h)break;h=!0}}for(;;){var f=r[n];if(a>=f.s_size){if(this.cursor=o-f.s_size,!f.method)return f.result;var y=f.method();if(this.cursor=o-f.s_size,y)return f.result}if(n=f.substring_i,n<0)return 0}},replace_s:function(r,i,n){var s=n.length-(i-r),o=e.substring(0,r),u=e.substring(i);return e=o+n+u,this.limit+=s,this.cursor>=i?this.cursor+=s:this.cursor>r&&(this.cursor=r),s},slice_check:function(){if(this.bra<0||this.bra>this.ket||this.ket>this.limit||this.limit>e.length)throw"faulty slice operation"},slice_from:function(r){this.slice_check(),this.replace_s(this.bra,this.ket,r)},slice_del:function(){this.slice_from("")},insert:function(r,i,n){var s=this.replace_s(r,i,n);r<=this.bra&&(this.bra+=s),r<=this.ket&&(this.ket+=s)},slice_to:function(){return this.slice_check(),e.substring(this.bra,this.ket)},eq_v_b:function(r){return this.eq_s_b(r.length,r)}}}},t.trimmerSupport={generateTrimmer:function(e){var r=new RegExp("^[^"+e+"]+"),i=new RegExp("[^"+e+"]+$");return function(n){return typeof n.update=="function"?n.update(function(s){return s.replace(r,"").replace(i,"")}):n.replace(r,"").replace(i,"")}}}}})});var ie=$((U,re)=>{(function(t,e){typeof define=="function"&&define.amd?define(e):typeof U=="object"?re.exports=e():e()(t.lunr)})(U,function(){return function(t){t.multiLanguage=function(){for(var e=Array.prototype.slice.call(arguments),r=e.join("-"),i="",n=[],s=[],o=0;o{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)})}function H(t,e){let r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);let i=X(r);return(n,s)=>i.then(o=>s(o.transaction(e,n).objectStore(e)))}var J;function ne(){return J||(J=H("keyval-store","keyval")),J}function se(t,e=ne()){return e("readonly",r=>X(r.get(t)))}function oe(t,e,r=ne()){return r("readwrite",i=>(i.put(e,t),X(i.transaction)))}var G;async function de({lunrLanguages:t}){let{index:e,data:r}=await i();G=n=>e.search(n).map(({ref:s})=>r[s]),postMessage({e:"index-ready"});async function i(){let n=await fetch("../index.json"),s=n.headers.get("etag"),o=await n.json(),u=H("docfx","lunr");if(t&&t.length>0&&((0,ae.default)(P.default),(0,ue.default)(P.default),await Promise.all(t.map(ye))),s){let l=JSON.parse(await se("index",u)||"{}");if(l&&l.etag===s)return{index:P.default.Index.load(l),data:o}}let a=(0,P.default)(function(){P.default.tokenizer.separator=/[\s\-.()]+/,this.ref("href"),this.field("title",{boost:50}),this.field("keywords",{boost:20}),t&&t.length>0&&this.use(P.default.multiLanguage(...t));for(let l in o)this.add(o[l])});return s&&await oe("index",JSON.stringify(Object.assign(a.toJSON(),{etag:s})),u),{index:a,data:o}}}onmessage=function(t){t.data.q&&G?postMessage({e:"query-ready",d:G(t.data.q)}):t.data.init&&de(t.data.init).catch(console.error)};var pe={ar:()=>import("./lunr.ar-E7GAKDHK.min.js"),da:()=>import("./lunr.da-WZCDGCDT.min.js"),de:()=>import("./lunr.de-7XZMXZII.min.js"),du:()=>import("./lunr.du-QL47PPFK.min.js"),el:()=>import("./lunr.el-6EBCVLMJ.min.js"),es:()=>import("./lunr.es-4YT3M4ID.min.js"),fi:()=>import("./lunr.fi-TLAOR23U.min.js"),fr:()=>import("./lunr.fr-G4S422VA.min.js"),he:()=>import("./lunr.he-J62KVQ3T.min.js"),hi:()=>import("./lunr.hi-VEBDFZQ2.min.js"),hu:()=>import("./lunr.hu-ZCNH23T6.min.js"),hy:()=>import("./lunr.hy-XFQCAWFO.min.js"),it:()=>import("./lunr.it-43SEBRLN.min.js"),ja:()=>import("./lunr.ja-6645DQV5.min.js"),jp:()=>import("./lunr.jp-2KRE2L63.min.js"),kn:()=>import("./lunr.kn-EGFANKI2.min.js"),ko:()=>import("./lunr.ko-64QAI4XT.min.js"),nl:()=>import("./lunr.nl-JVT7LKKG.min.js"),no:()=>import("./lunr.no-SUO4TTOY.min.js"),pt:()=>import("./lunr.pt-EAA2HV6I.min.js"),ro:()=>import("./lunr.ro-U2ICUNNF.min.js"),ru:()=>import("./lunr.ru-5AQBX5R2.min.js"),sa:()=>import("./lunr.sa-M7TYHLRJ.min.js"),sv:()=>import("./lunr.sv-K3GSGWC2.min.js"),ta:()=>import("./lunr.ta-AKIPBQLC.min.js"),te:()=>import("./lunr.te-OBAK5FVS.min.js"),th:()=>import("./lunr.th-LSQ6T65I.min.js"),tr:()=>import("./lunr.tr-T3KKXR52.min.js"),vi:()=>import("./lunr.vi-S3VOAA5A.min.js")};async function ye(t){if(t!=="en"){let{default:e}=await pe[t]();e(P.default)}} /*! Bundled license information: lunr/lunr.js: (** * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 * Copyright (C) 2020 Oliver Nightingale * @license MIT *) (*! * lunr.utils * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.Set * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.tokenizer * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.Pipeline * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.Vector * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.stemmer * Copyright (C) 2020 Oliver Nightingale * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt *) (*! * lunr.stopWordFilter * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.trimmer * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.TokenSet * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.Index * Copyright (C) 2020 Oliver Nightingale *) (*! * lunr.Builder * Copyright (C) 2020 Oliver Nightingale *) lunr-languages/lunr.stemmer.support.js: (*! * Snowball JavaScript Library v0.3 * http://code.google.com/p/urim/ * http://snowball.tartarus.org/ * * Copyright 2010, Oleg Mazko * http://www.mozilla.org/MPL/ *) */ //# sourceMappingURL=search-worker.min.js.map