var e=this,t=function(){"use strict";function v(e,s){var t=Object.keys(e),n;return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),s&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),t.push.apply(t,n)),t}function i(n){for(var e=1,t;en.length)&&(e=n.length);for(var t=0,s=new Array(e);t0&&void 0!==arguments[0]?arguments[0]:1,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,e=new Map,t=Math.pow(10,s);return{get:function(i){if(s=i.match(I).length,e.has(s))return e.get(s);var s,a=1/Math.pow(s,.5*n),o=parseFloat(Math.round(a*t)/t);return e.set(s,o),o},clear:function(){e.clear()}}}f=function(){function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,i=void 0===n?e.getFn:n,s=t.fieldNormWeight,a=void 0===s?e.fieldNormWeight:s;l(this,o),this.norm=z(a,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return r(o,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=e,this._keysMap={},e.forEach(function(e,n){t._keysMap[e.id]=n})}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,n(this.docs[0])?this.docs.forEach(function(t,n){e._addString(t,n)}):this.docs.forEach(function(t,n){e._addObject(t,n)}),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();n(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(t){this.records.splice(t,1);for(var e=t,n=this.size();e2&&void 0!==arguments[2]?arguments[2]:{},s=n.getFn,a=void 0===s?e.getFn:s,o=n.fieldNormWeight,r=void 0===o?e.fieldNormWeight:o,t=new f({getFn:a,fieldNormWeight:r});return t.setKeys(i.map(x)),t.setSources(c),t.create(),t}function c(f){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.errors,m=void 0===o?0:o,i=t.currentLocation,u=void 0===i?0:i,r=t.expectedLocation,d=void 0===r?0:r,l=t.distance,s=void 0===l?e.distance:l,a=t.ignoreLocation,h=void 0===a?e.ignoreLocation:a,n=m/f.length,c;return h?n:(c=Math.abs(d-u),s?n+c/s:c?1:n)}function M(){for(var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.minMatchCharLength,o=[],t=-1,a=-1,n=0,c=s.length,r;n=i&&o.push([t,a]),t=-1);return s[n-1]&&n-t>=i&&o.push([t,n-1]),o}o=32;function T(n){for(var t={},e=0,s=n.length,o;e1&&void 0!==arguments[1]?arguments[1]:{},d=n.location,C=void 0===d?e.location:d,c=n.threshold,x=void 0===c?e.threshold:c,u=n.distance,O=void 0===u?e.distance:u,m=n.includeMatches,_=void 0===m?e.includeMatches:m,p=n.findAllMatches,A=void 0===p?e.findAllMatches:p,v=n.minMatchCharLength,y=void 0===v?e.minMatchCharLength:v,r=n.isCaseSensitive,b=void 0===r?e.isCaseSensitive:r,f=n.ignoreLocation,w=void 0===f?e.ignoreLocation:f,a,i,j;if(l(this,t),this.options={location:C,threshold:x,distance:O,includeMatches:_,findAllMatches:A,minMatchCharLength:y,isCaseSensitive:b,ignoreLocation:w},this.pattern=b?g:g.toLowerCase(),this.chunks=[],this.pattern.length)if(a=function(e,t){E.chunks.push({pattern:e,alphabet:T(e),startIndex:t})},i=this.pattern.length,i>o){for(var s=0,h=i%o,k=i-h;s3&&void 0!==arguments[3]?arguments[3]:{},H=a.location,W=void 0===H?e.location:H,P=a.distance,b=void 0===P?e.distance:P,L=a.threshold,U=void 0===L?e.threshold:L,B=a.findAllMatches,$=void 0===B?e.findAllMatches:B,D=a.minMatchCharLength,z=void 0===D?e.minMatchCharLength:D,T=a.includeMatches,F=void 0===T?e.includeMatches:T,A=a.ignoreLocation,y=void 0===A?e.ignoreLocation:A,V,O,j,s,n,v,N,E,R;if(i.length>o)throw new Error(S(o));for(var _,h=i.length,m=C.length,t=Math.max(0,Math.min(W,m)),d=U,l=t,p=z>1||F,k=p?Array(m):[];(_=C.indexOf(i,l))>-1;)if(V=c(i,{currentLocation:_,expectedLocation:t,distance:b,ignoreLocation:y}),d=Math.min(V,d),l=_+h,p)for(O=0;O=I;n-=1)if(v=n-1,N=K[C.charAt(v)],p&&(k[v]=+!!N),u[n]=(u[n+1]<<1|1)&N,r&&(u[n]|=(g[n+1]|g[n])<<1|1|g[n+1]),u[n]&q&&(w=c(i,{errors:r,currentLocation:v,expectedLocation:t,distance:b,ignoreLocation:y}))<=d){if(d=w,(l=v)<=t)break;I=Math.max(1,2*t-l)}if(c(i,{errors:r+1,currentLocation:t,expectedLocation:t,distance:b,ignoreLocation:y})>d)break;g=u}return E={isMatch:l>=0,score:Math.max(.001,w)},p&&(R=M(k,z),R.length?F&&(E.indices=R):E.isMatch=!1),E}(n,w,b,{location:v+y,distance:g,threshold:j,findAllMatches:m,minMatchCharLength:f,includeMatches:a,ignoreLocation:p}),h=r.isMatch,_=r.score,u=r.indices;h&&(s=!0),l+=_,h&&u&&(i=[].concat(d(i),d(u)))}),h={isMatch:s,score:s?l/this.chunks.length:1},s&&a&&(h.indices=i),h}}]),t}(),O=[];function C(e,t){for(var n=0,o=O.length,s;n-1&&(s.refIndex=n.idx),e.matches.push(s)}})}function P(e,t){t.score=e.score}function H(i,c){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=n.includeMatches,a=void 0===s?e.includeMatches:s,o=n.includeScore,r=void 0===o?e.includeScore:o,t=[];return a&&t.push(R),r&&t.push(P),i.map(function(e){var n=e.idx,s={item:c[n],refIndex:n};return t.length&&t.forEach(function(t){t(e,s)}),s})}return a=function(){function o(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;if(l(this,o),this.options=i(i({},e),n),this.options.useExtendedSearch)throw new Error(F);this._keyStore=new A(this.options.keys),this.setCollection(t,s)}return r(o,[{key:"setCollection",value:function(t,e){if(this._docs=t,e&&!(e instanceof f))throw new Error("Incorrect 'index' type");this._myIndex=e||j(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){t(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],e=0,n=this._docs.length,s;e1&&void 0!==arguments[1]?arguments[1]:{},i=a.limit,o=void 0===i?-1:i,e=this.options,r=e.includeMatches,c=e.includeScore,l=e.shouldSort,d=e.sortFn,u=e.ignoreFieldNorm,t=n(s)?n(this._docs[0])?this._searchStringList(s):this._searchObjectList(s):this._searchLogical(s);return L(t,{ignoreFieldNorm:u}),l&&t.sort(d),g(o)&&o>-1&&(t=t.slice(0,o)),H(t,this._docs,{includeMatches:r,includeScore:c})}},{key:"_searchStringList",value:function(n){var s=C(n,this.options),o=this._myIndex.records,e=[];return o.forEach(function(o){var n=o.v,a=o.i,r=o.n;if(t(n)){var i=s.searchIn(n),c=i.isMatch,l=i.score,d=i.indices;c&&e.push({item:n,idx:a,matches:[{score:l,value:n,norm:r,indices:d}]})}}),e}},{key:"_searchLogical",value:function(){throw new Error("Logical search is not available")}},{key:"_searchObjectList",value:function(r){var s=this,o=C(r,this.options),n=this._myIndex,i=n.keys,a=n.records,e=[];return a.forEach(function(r){var a=r.$,c=r.i,n;t(a)&&(n=[],i.forEach(function(e,t){n.push.apply(n,d(s._findMatches({key:e,value:a[t],searcher:o})))}),n.length&&e.push({idx:c,item:a,matches:n}))}),e}},{key:"_findMatches",value:function(n){var c=n.key,e=n.value,a=n.searcher;if(!t(e))return[];if(i=[],s(e))e.forEach(function(e){var n=e.v,o=e.i,r=e.n;if(t(n)){var s=a.searchIn(n),l=s.isMatch,d=s.score,u=s.indices;l&&i.push({score:d,key:c,value:n,idx:o,norm:r,indices:u})}});else{var i,r=e.v,l=e.n,o=a.searchIn(r),d=o.isMatch,u=o.score,h=o.indices;d&&i.push({score:u,key:c,value:r,norm:l,indices:h})}return i}}]),o}(),a.version="6.5.3",a.createIndex=j,a.parseIndex=function(n){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=s.getFn,a=void 0===i?e.getFn:i,o=s.fieldNormWeight,r=void 0===o?e.fieldNormWeight:o,c=n.keys,l=n.records,t=new f({getFn:a,fieldNormWeight:r});return t.setKeys(c),t.setIndexRecords(l),t},a.config=e,a};"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Fuse=t(),(()=>{var e=null,a,r,c,n=document.getElementById("searchResults"),t=document.getElementById("searchInput"),i=null,s=!1;window.onload=function(){var t=new XMLHttpRequest;t.onreadystatechange=function(){if(t.readyState===4)if(t.status===200){var n=JSON.parse(t.responseText),s;n&&(s={distance:100,threshold:.4,ignoreLocation:!0,keys:["title","permalink","summary","content"]},e&&(s={isCaseSensitive:!!e.iscasesensitive&&e.iscasesensitive,includeScore:!!e.includescore&&e.includescore,includeMatches:!!e.includematches&&e.includematches,minMatchCharLength:e.minmatchcharlength?e.minmatchcharlength:1,shouldSort:!e.shouldsort||e.shouldsort,findAllMatches:!!e.findallmatches&&e.findallmatches,keys:e.keys?e.keys:["title","permalink","summary","content"],location:e.location?e.location:0,threshold:e.threshold?e.threshold:.4,distance:e.distance?e.distance:100,ignoreLocation:!e.ignorelocation||e.ignorelocation}),a=new Fuse(n,s))}else console.log(t.responseText)},t.open("GET","../index.json"),t.send()};function o(e){document.querySelectorAll(".focus").forEach(function(e){e.classList.remove("focus")}),e?(e.focus(),document.activeElement=i=e,e.parentElement.classList.add("focus")):document.activeElement.parentElement.classList.add("focus")}function l(){s=!1,n.innerHTML=t.value="",t.focus()}t.onkeyup=function(){if(a){const e=a.search(this.value.trim());if(e.length!==0){let t="";for(let n in e)t+=`
  • ${e[n].item.title} \xBB
  • `;n.innerHTML=t,s=!0,r=n.firstChild,c=n.lastChild}else s=!1,n.innerHTML=""}},t.addEventListener("search",function(){this.value||l()}),document.onkeydown=function(d){let a=d.key;var e=document.activeElement,u;let h=document.getElementById("searchbox").contains(e);if(e===t)for(u=document.getElementsByClassName("focus");u.length>0;)u[0].classList.remove("focus");else i&&(e=i);if(a==="Escape")l();else if(!s||!h)return;else a==="ArrowDown"?(d.preventDefault(),e==t?o(n.firstChild.lastChild):e.parentElement!=c&&o(e.parentElement.nextSibling.lastChild)):a==="ArrowUp"?(d.preventDefault(),e.parentElement==r?o(t):e!=t&&o(e.parentElement.previousSibling.lastChild)):a==="ArrowRight"&&e.click()}})()