PageSourceSearch

https://www.kovecollection.co.za/375-574ba8c416f55f336ff3.js

js kovecollection.co.za collected 2026-10-09 17:35:37 UTC 26,105 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[375],{8481:function(e){!function(t,i,n){let r;(r=n.define)&&r.amd?r([],(function(){return i})):(r=n.modules)?r["FlexSearch".toLowerCase()]=i:e.exports=i}(0,function e(t){function i(e,t){const i=t?t.id:e&&e.id;this.id=i||0===i?i:A++,this.init(e,t),o(this,"index",(function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)})),o(this,"length",(function(){return this.index.length}))}function n(e,t,i,n){return this.u!==this.g&&(this.o=this.o.concat(i),this.u++,n&&this.o.length>=n&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(t,this.o),this.F&&this.F(this.o))),this}function r(e){const t=N();for(const i in e)if(e.hasOwnProperty(i)){const n=e[i];b(n)?t[i]=n.slice(0):w(n)?t[i]=r(n):t[i]=n}return t}function s(e,t){const i=e.length,n=x(t),r=[];for(let s=0,l=0;s<i;s++){const i=e[s];(n&&t(i)||!n&&!t[i])&&(r[l++]=i)}return r}function l(e,t,i,n,r,s,l,o,a,c){let h;if(i=v(i,l?0:r,o,s,t,a,c),o&&(o=i.page,h=i.next,i=i.result),l)t=this.where(l,null,r,i);else{for(t=i,i=this.l,r=t.length,s=Array(r),l=0;l<r;l++)s[l]=i[t[l]];t=s}return i=t,n&&(x(n)||(I=n.split(":"),1<I.length?n=m:(I=I[0],n=p)),i.sort(n)),i=g(o,h,i),this.cache&&this.j.set(e,i),i}function o(e,t,i){Object.defineProperty(e,t,{get:i})}function a(e){return new RegExp(e,"g")}function c(e,t){for(let i=0;i<t.length;i+=2)e=e.replace(t[i],t[i+1]);return e}function h(e,t,i,n,r,s,l,o){return t[i]?t[i]:(r=r?(o-(l||o/1.5))*s+(l||o/1.5)*r:s,t[i]=r,r>=l&&((e=(e=e[o-(r+.5>>0)])[i]||(e[i]=[]))[e.length]=n),r)}function f(e,t){if(e){const i=Object.keys(e);for(let n=0,r=i.length;n<r;n++){const r=i[n],s=e[r];if(s)for(let i=0,n=s.length;i<n;i++){if(s[i]===t){1===n?delete e[r]:s.splice(i,1);break}w(s[i])&&f(s[i],t)}}}}function u(e){let t="",i="";var n="";for(let r=0;r<e.length;r++){const s=e[r];s!==i&&(r&&"h"===s?(n="a"===n||"e"===n||"i"===n||"o"===n||"u"===n||"y"===n,(("a"===i||"e"===i||"i"===i||"o"===i||"u"===i||"y"===i)&&n||" "===i)&&(t+=s)):t+=s),n=r===e.length-1?"":e[r+1],i=s}return t}function d(e,t){return 0>(e=e.length-t.length)?1:e?-1:0}function p(e,t){return(e=e[I])<(t=t[I])?-1:e>t?1:0}function m(e,t){const i=I.length;for(let n=0;n<i;n++)e=e[I[n]],t=t[I[n]];return e<t?-1:e>t?1:0}function g(e,t,i){return e?{page:e,next:t?""+t:null,result:i}:i}function v(e,t,i,n,r,s,l){let o,a=[];if(!0===i){i="0";var c=""}else c=i&&i.split(":");const h=e.length;if(1<h){const b=N(),x=[];let w,k;var f,u=0;let j;var d=!0;let S,C,O,P,A,z,D=0;if(c&&(2===c.length?(P=c,c=!1):c=A=parseInt(c[0],10)),l){for(w=N();u<h;u++)if("not"===r[u])for(k=e[u],j=k.length,f=0;f<j;f++)w["@"+k[f]]=1;else O=u+1;if(E(O))return g(i,o,a);u=0}else C=y(r)&&r;for(;u<h;u++){const y=u===(O||h)-1;if(!C||!u)if((f=C||r&&r[u])&&"and"!==f){if("or"!==f)continue;z=!1}else z=s=!0;if(k=e[u],j=k.length){if(d){if(!S){S=k;continue}var p=S.length;for(f=0;f<p;f++){var m="@"+(d=S[f]);l&&w[m]||(b[m]=1,s||(a[D++]=d))}S=null,d=!1}for(m=!1,f=0;f<j;f++){var v="@"+(p=k[f]);const e=s?b[v]||0:u;if(!(!e&&!n||l&&w[v]||!s&&b[v]))if(e===u){if(y){if((!A||--A<D)&&(a[D++]=p,t&&D===t))return g(i,D+(c||0),a)}else b[v]=u+1;m=!0}else n&&((v=x[e]||(x[e]=[]))[v.length]=p)}if(z&&!m&&!n)break}else if(z&&!n)return g(i,o,k)}if(S)if(u=S.length,l)for(f=c?parseInt(c,10):0;f<u;f++)w["@"+(e=S[f])]||(a[D++]=e);else a=S;if(n)for(D=a.length,P?(u=parseInt(P[0],10)+1,f=parseInt(P[1],10)+1):(u=x.length,f=0);u--;)if(p=x[u]){for(j=p.length;f<j;f++)if(n=p[f],(!l||!w["@"+n])&&(a[D++]=n,t&&D===t))return g(i,u+":"+f,a);f=0}}else!h||r&&"not"===r[0]||(a=e[0],c&&(c=parseInt(c[0],10)));return t&&(l=a.length,c&&c>l&&(c=0),o=(c=c||0)+t,o<l?a=a.slice(c,o):(o=0,c&&(a=a.slice(c)))),g(i,o,a)}function y(e){return"string"==typeof e}function b(e){return e.constructor===Array}function x(e){return"function"==typeof e}function w(e){return"object"==typeof e}function E(e){return void 0===e}function k(e){const t=Array(e);for(let i=0;i<e;i++)t[i]=N();return t}function N(){return Object.create(null)}function j(){let e,t;self.onmessage=function(i){if(i=i.data)if(i.search){const n=t.search(i.content,i.threshold?{limit:i.limit,threshold:i.threshold,where:i.where}:i.limit);self.postMessage({id:e,content:i.content,limit:i.limit,result:n})}else i.add?t.add(i.id,i.content):i.update?t.update(i.id,i.content):i.remove?t.remove(i.id):i.clear?t.clear():i.info?((i=t.info()).worker=e,console.log(i)):i.register&&(e=i.id,i.options.cache=!1,i.options.async=!1,i.options.worker=!1,t=new Function(i.register.substring(i.register.indexOf("{")+1,i.register.lastIndexOf("}")))(),t=new t(i.options))}}function S(i,n,r,s){i=t("flexsearch","id"+i,j,(function(e){(e=e.data)&&e.result&&s(e.id,e.content,e.result,e.limit,e.where,e.cursor,e.suggest)}),n);const l=e.toString();return r.id=n,i.postMessage({register:l,options:r,id:n}),i}const C={encode:"icase",f:"forward",split:/\W+/,cache:!1,async:!1,g:!1,D:!1,a:!1,b:9,threshold:0,depth:0},O={memory:{encode:"extra",f:"strict",threshold:0,b:1},speed:{encode:"icase",f:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",f:"full",threshold:1,b:3},score:{encode:"extra",f:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",f:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",f:"strict",threshold:8,b:9,depth:1}},P=[];let A=0;const z={},D={};let I;i.create=function(e,t){return new i(e,t)},i.registerMatcher=function(e){for(const t in e)e.hasOwnProperty(t)&&P.push(a(t),e[t]);return this},i.registerEncoder=function(e,t){return R[e]=t.bind(R),this},i.registerLanguage=function(e,t){return z[e]=t.filter,D[e]=t.stemmer,this},i.encode=function(e,t){return R[e](t)},i.prototype.init=function(e,t){if(this.v=[],t){var s=t.preset;e=t}else e||(e=C),s=e.preset;if(t={},y(e)?(t=O[e],e={}):s&&(t=O[s]),s=e.worker)if("undefined"==typeof Worker)e.worker=!1,this.m=null;else{var l=parseInt(s,10)||4;this.C=-1,this.u=0,this.o=[],this.F=null,this.m=Array(l);for(var o=0;o<l;o++)this.m[o]=S(this.id,o,e,n.bind(this))}if(this.f=e.tokenize||t.f||this.f||C.f,this.split=E(s=e.split)?this.split||C.split:y(s)?a(s):s,this.D=e.rtl||this.D||C.D,this.async="undefined"==typeof Promise||E(s=e.async)?this.async||C.async:s,this.g=E(s=e.worker)?this.g||C.g:s,this.threshold=E(s=e.threshold)?t.threshold||this.threshold||C.threshold:s,this.b=E(s=e.resolution)?s=t.b||this.b||C.b:s,s<=this.threshold&&(this.b=this.threshold+1),this.depth="strict"!==this.f||E(s=e.depth)?t.depth||this.depth||C.depth:s,this.w=(s=E(s=e.encode)?t.encode||C.encode:s)&&R[s]&&R[s].bind(R)||(x(s)?s:this.w||!1),(s=e.matcher)&&this.addMatcher(s),s=(t=e.lang)||e.filter){if(y(s)&&(s=z[s]),b(s)){l=this.w,o=N();for(var c=0;c<s.length;c++){var h=l?l(s[c]):s[c];o[h]=1}s=o}this.filter=s}if(s=t||e.stemmer){var f;for(f in t=y(s)?D[s]:s,l=this.w,o=[],t)t.hasOwnProperty(f)&&(c=l?l(f):f,o.push(a(c+"($|\\W)"),l?l(t[f]):t[f]));this.stemmer=f=o}if(this.a=o=(s=e.doc)?r(s):this.a||C.a,this.i=k(this.b-(this.threshold||0)),this.h=N(),this.c=N(),o){if(this.l=N(),e.doc=null,f=o.index={},t=o.keys=[],l=o.field,c=o.tag,h=o.store,b(o.id)||(o.id=o.id.split(":")),h){var u=N();if(y(h))u[h]=1;else if(b(h))for(let e=0;e<h.length;e++)u[h[e]]=1;else w(h)&&(u=h);o.store=u}if(c){if(this.G=N(),h=N(),l)if(y(l))h[l]=e;else if(b(l))for(u=0;
vendor: 7,024 bytes, line 1
1u<l.length;u++)h[l[u]]=e;else w(l)&&(h=l);for(b(c)||(o.tag=c=[c]),l=0;l<c.length;l++)this.G[c[l]]=N();this.I=c,l=h}if(l){let n;for(b(l)||(w(l)?(n=l,o.field=l=Object.keys(l)):o.field=l=[l]),o=0;o<l.length;o++)b(c=l[o])||(n&&(e=n[c]),t[o]=c,l[o]=c.split(":")),f[c]=new i(e)}e.doc=s}return this.B=!0,this.j=!!(this.cache=s=E(s=e.cache)?this.cache||C.cache:s)&&new B(s),this},i.prototype.encode=function(e){return e&&(P.length&&(e=c(e,P)),this.v.length&&(e=c(e,this.v)),this.w&&(e=this.w(e)),this.stemmer&&(e=c(e,this.stemmer))),e},i.prototype.addMatcher=function(e){const t=this.v;for(const i in e)e.hasOwnProperty(i)&&t.push(a(i),e[i]);return this},i.prototype.add=function(e,t,i,n,r){if(this.a&&w(e))return this.A("add",e,t);if(t&&y(t)&&(e||0===e)){var l="@"+e;if(this.c[l]&&!n)return this.update(e,t);if(this.g)return++this.C>=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:e,content:t}),this.c[l]=""+this.C,i&&i(),this;if(!r){if(this.async&&"function"!=typeof importScripts){let r=this;return l=new Promise((function(i){setTimeout((function(){r.add(e,t,null,n,!0),r=null,i()}))})),i?(l.then(i),this):l}if(i)return this.add(e,t,null,n,!0),i(),this}if(!(t=this.encode(t)).length)return this;r=x(i=this.f)?i(t):t.split(this.split),this.filter&&(r=s(r,this.filter));const d=N();d._ctx=N();const p=r.length,m=this.threshold,g=this.depth,v=this.b,y=this.i,b=this.D;for(let t=0;t<p;t++){var o=r[t];if(o){var a=o.length,c=(b?t+1:p-t)/p,f="";switch(i){case"reverse":case"both":for(var u=a;--u;)h(y,d,f=o[u]+f,e,b?1:(a-u)/a,c,m,v-1);f="";case"forward":for(u=0;u<a;u++)h(y,d,f+=o[u],e,b?(u+1)/a:1,c,m,v-1);break;case"full":for(u=0;u<a;u++){const t=(b?u+1:a-u)/a;for(let i=a;i>u;i--)h(y,d,f=o.substring(u,i),e,t,c,m,v-1)}break;default:if(a=h(y,d,o,e,1,c,m,v-1),g&&1<p&&a>=m)for(a=d._ctx[o]||(d._ctx[o]=N()),o=this.h[o]||(this.h[o]=k(v-(m||0))),0>(c=t-g)&&(c=0),(f=t+g+1)>p&&(f=p);c<f;c++)c!==t&&h(o,a,r[c],e,0,v-(c<t?t-c:c-t),m,v-1)}}}this.c[l]=1,this.B=!1}return this},i.prototype.A=function(e,t,i){if(b(t)){var n=t.length;if(n--){for(var r=0;r<n;r++)this.A(e,t[r]);return this.A(e,t[n],i)}}else{var s,l=this.a.index,o=this.a.keys,a=this.a.tag;r=this.a.store;var c=this.a.id;n=t;for(var h=0;h<c.length;h++)n=n[c[h]];if("remove"===e&&(delete this.l[n],c=o.length,c--)){for(t=0;t<c;t++)l[o[t]].remove(n);return l[o[c]].remove(n,i)}if(a){for(s=0;s<a.length;s++){var f=a[s],u=t;for(c=f.split(":"),h=0;h<c.length;h++)u=u[c[h]];u="@"+u}s=(s=this.G[f])[u]||(s[u]=[])}for(let r=0,s=(c=this.a.field).length;r<s;r++){for(f=c[r],a=t,u=0;u<f.length;u++)a=a[f[u]];f=l[o[r]],u="add"===e?f.add:f.update,r===s-1?u.call(f,n,a,i):u.call(f,n,a)}if(r){for(i=Object.keys(r),e=N(),l=0;l<i.length;l++)if(r[o=i[l]]){let i,n;for(o=o.split(":"),c=0;c<o.length;c++)i=(i||t)[a=o[c]],n=(n||e)[a]=i}t=e}s&&(s[s.length]=t),this.l[n]=t}return this},i.prototype.update=function(e,t,i){return this.a&&w(e)?this.A("update",e,t):(this.c["@"+e]&&y(t)&&(this.remove(e),this.add(e,t,i,!0)),this)},i.prototype.remove=function(e,t,i){if(this.a&&w(e))return this.A("remove",e,t);var n="@"+e;if(this.c[n]){if(this.g)return this.m[this.c[n]].postMessage({remove:!0,id:e}),delete this.c[n],t&&t(),this;if(!i){if(this.async&&"function"!=typeof importScripts){let i=this;return n=new Promise((function(t){setTimeout((function(){i.remove(e,null,!0),i=null,t()}))})),t?(n.then(t),this):n}if(t)return this.remove(e,null,!0),t(),this}for(t=0;t<this.b-(this.threshold||0);t++)f(this.i[t],e);this.depth&&f(this.h,e),delete this.c[n],this.B=!1}return this},i.prototype.search=function(e,t,i,n){if(w(t)){if(b(t))for(var r=0;r<t.length;r++)t[r].query=e;else t.query=e;e=t,t=1e3}else t&&x(t)?(i=t,t=1e3):t||0===t||(t=1e3);if(!this.g){var o=[],a=e;if(w(e)&&!b(e)){i||(i=e.callback)&&(a.callback=null);var c=e.sort,h=e.page;t=e.limit,j=e.threshold;var f=e.suggest;e=e.query}if(this.a){j=this.a.index;const s=a.where;var u=a.bool||"or",p=a.field;let d,v,x=u;if(p)b(p)||(p=[p]);else if(b(a)){var m=a;p=[],x=[];for(var g=0;g<a.length;g++)r=(n=a[g]).bool||u,p[g]=n.field,x[g]=r,"not"===r?d=!0:"and"===r&&(v=!0)}else p=this.a.keys;for(u=p.length,g=0;g<u;g++)m&&(a=m[g]),h&&!y(a)&&(a.page=null,a.limit=0),o[g]=j[p[g]].search(a,0);if(i)return i(l.call(this,e,x,o,c,t,f,s,h,v,d));if(this.async){const i=this;return new Promise((function(n){Promise.all(o).then((function(r){n(l.call(i,e,x,r,c,t,f,s,h,v,d))}))}))}return l.call(this,e,x,o,c,t,f,s,h,v,d)}if(j||(j=this.threshold||0),!n){if(this.async&&"function"!=typeof importScripts){let e=this;return j=new Promise((function(i){setTimeout((function(){i(e.search(a,t,null,!0)),e=null}))})),i?(j.then(i),this):j}if(i)return i(this.search(a,t,null,!0)),this}if(!e||!y(e))return o;if(a=e,this.cache)if(this.B){if(i=this.j.get(e))return i}else this.j.clear(),this.B=!0;if(!(a=this.encode(a)).length)return o;i=x(i=this.f)?i(a):a.split(this.split),this.filter&&(i=s(i,this.filter)),m=i.length,n=!0,r=[];var E=N(),k=0;if(1<m&&(this.depth&&"strict"===this.f?u=!0:i.sort(d)),!u||(g=this.h)){const e=this.b;for(;k<m;k++){let t=i[k];if(t){if(u){if(!p)if(g[t])p=t,E[t]=1;else if(!f)return o;if(f&&k===m-1&&!r.length)u=!1,t=p||t,E[t]=0;else if(!p)continue}if(!E[t]){const i=[];let s=!1,l=0;const o=u?g[p]:this.i;if(o){let n;for(let r=0;r<e-j;r++)(n=o[r]&&o[r][t])&&(i[l++]=n,s=!0)}if(s)p=t,r[r.length]=1<l?i.concat.apply([],i):i[0];else if(!f){n=!1;break}E[t]=1}}}}else n=!1;return n&&(o=v(r,t,h,f)),this.cache&&this.j.set(e,o),o}this.F=i,this.u=0,this.o=[];for(var j=0;j<this.g;j++)this.m[j].postMessage({search:!0,limit:t,content:e})},i.prototype.find=function(e,t){return this.where(e,t,1)[0]||null},i.prototype.where=function(e,t,i,n){const r=this.l,s=[];let l,o=0;var a;let c;if(w(e)){i||(i=t);var h=Object.keys(e),f=h.length;if(l=!1,1===f&&"id"===h[0])return[r[e.id]];if((a=this.I)&&!n)for(var u=0;u<a.length;u++){var d=a[u],p=e[d];if(!E(p)){if(c=this.G[d]["@"+p],0==--f)return c;h.splice(h.indexOf(d),1),delete e[d];break}}for(a=Array(f),u=0;u<f;u++)a[u]=h[u].split(":")}else{if(x(e)){for(i=(t=n||Object.keys(r)).length,h=0;h<i;h++)e(f=r[t[h]])&&(s[o++]=f);return s}if(E(t))return[r[e]];if("id"===e)return[r[t]];h=[e],f=1,a=[e.split(":")],l=!0}for(u=(n=c||n||Object.keys(r)).length,d=0;d<u;d++){p=c?n[d]:r[n[d]];let u=!0;for(let i=0;i<f;i++){l||(t=e[h[i]]);const n=a[i],r=n.length;let s=p;if(1<r)for(let e=0;e<r;e++)s=s[n[e]];else s=s[n[0]];if(s!==t){u=!1;break}}if(u&&(s[o++]=p,i&&o===i))break}return s},i.prototype.info=function(){if(!this.g)return{id:this.id,items:this.length,cache:!(!this.cache||!this.cache.s)&&this.cache.s.length,matcher:P.length+(this.v?this.v.length:0),worker:this.g,threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&"strict"===this.f};for(let e=0;e<this.g;e++)this.m[e].postMessage({info:!0,id:this.id})},i.prototype.clear=function(){return this.destroy().init()},i.prototype.destroy=function(){if(this.cache&&(this.j.clear(),this.j=null),this.i=this.h=this.c=null,this.a){const e=this.a.keys;for(let t=0;t<e.length;t++)this.a.index[e[t]].destroy();this.a=this.l=null}return this}
1,i.prototype.export=function(e){const t=!e||E(e.serialize)||e.serialize;if(this.a){const t=!e||E(e.doc)||e.doc;var i=!e||E(e.index)||e.index;e=[];let n=0;if(i)for(i=this.a.keys;n<i.length;n++){const t=this.a.index[i[n]];e[n]=[t.i,t.h,Object.keys(t.c)]}t&&(e[n]=this.l)}else e=[this.i,this.h,Object.keys(this.c)];return t&&(e=JSON.stringify(e)),e},i.prototype.import=function(e,t){(!t||E(t.serialize)||t.serialize)&&(e=JSON.parse(e));const i=N();if(this.a){var n=!t||E(t.doc)||t.doc,r=0;if(!t||E(t.index)||t.index){const n=(t=this.a.keys).length;for(var s=e[0][2];r<s.length;r++)i[s[r]]=1;for(r=0;r<n;r++){s=this.a.index[t[r]];const n=e[r];n&&(s.i=n[0],s.h=n[1],s.c=i)}}n&&(this.l=w(n)?n:e[r])}else{for(n=e[2],r=0;r<n.length;r++)i[n[r]]=1;this.i=e[0],this.h=e[1],this.c=i}};const L=function(){const e=a("\\s+"),t=a("[^a-z0-9 ]"),i=[a("[-/]")," ",t,"",e," "];return function(e){return u(c(e.toLowerCase(),i))}}(),R={icase:function(e){return e.toLowerCase()},simple:function(){const e=a("\\s+"),t=a("[^a-z0-9 ]"),i=a("[-/]"),n=[a("[àáâãäå]"),"a",a("[èéêë]"),"e",a("[ìíîï]"),"i",a("[òóôõöő]"),"o",a("[ùúûüű]"),"u",a("[ýŷÿ]"),"y",a("ñ"),"n",a("[çc]"),"k",a("ß"),"s",a(" & ")," and ",i," ",t,"",e," "];return function(e){return" "===(e=c(e.toLowerCase(),n))?"":e}}(),advanced:function(){const e=a("ae"),t=a("ai"),i=a("ay"),n=a("ey"),r=a("oe"),s=a("ue"),l=a("ie"),o=a("sz"),h=a("zs"),f=a("ck"),d=a("cc"),p=[e,"a",t,"ei",i,"ei",n,"ei",r,"o",s,"u",l,"i",o,"s",h,"s",a("sh"),"s",f,"k",d,"k",a("th"),"t",a("dt"),"t",a("ph"),"f",a("pf"),"f",a("ou"),"o",a("uo"),"u"];return function(e,t){return e?(2<(e=this.simple(e)).length&&(e=c(e,p)),t||1<e.length&&(e=u(e)),e):e}}(),extra:function(){const e=[a("p"),"b",a("z"),"s",a("[cgq]"),"k",a("n"),"m",a("d"),"t",a("[vw]"),"f",a("[aeiouy]"),""];return function(t){if(!t)return t;if(1<(t=this.advanced(t,!0)).length){t=t.split(" ");for(let i=0;i<t.length;i++){const n=t[i];1<n.length&&(t[i]=n[0]+c(n.substring(1),e))}t=u(t=t.join(" "))}return t}}(),balance:L},B=function(){function e(e){this.clear(),this.H=!0!==e&&e}return e.prototype.clear=function(){this.cache=N(),this.count=N(),this.index=N(),this.s=[]},e.prototype.set=function(e,t){if(this.H&&E(this.cache[e])){let i=this.s.length;if(i===this.H){i--;const e=this.s[i];delete this.cache[e],delete this.count[e],delete this.index[e]}this.index[e]=i,this.s[i]=e,this.count[e]=-1,this.cache[e]=t,this.get(e)}else this.cache[e]=t},e.prototype.get=function(e){const t=this.cache[e];if(this.H&&t){var i=++this.count[e];const t=this.index;let r=t[e];if(0<r){const s=this.s;for(var n=r;this.count[s[--r]]<=i&&-1!==r;);if(r++,r!==n){for(i=n;i>r;i--)n=s[i-1],s[i]=n,t[n]=i;s[r]=e,t[e]=r}}}return t},e}();return i}(function(){const e={},t="undefined"!=typeof Blob&&"undefined"!=typeof URL&&URL.createObjectURL;return function(i,n,r,s,l){return r=t?URL.createObjectURL(new Blob(["("+r.toString()+")()"],{type:"text/javascript"})):i+".min.js",e[i+="-"+n]||(e[i]=[]),e[i][l]=new Worker(r),e[i][l].onmessage=s,e[i][l]}}()),this)},8375:function(e,t,i){i.r(t),i.d(t,{default:function(){return E}});var n=i(574),r=i(1318),s=i(5935),l=i(7294),o=i(8481),a=i.n(o);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=[],n=!0,r=!1,s=void 0;try{for(var l,o=e[Symbol.iterator]();!(n=(l=o.next()).done)&&(i.push(l.value),!t||i.length!==t);n=!0);}catch(a){r=!0,s=a}finally{try{n||null==o.return||o.return()}finally{if(r)throw s}}return i}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var h,f=new Error("FlexSearch index is required. Check that your index exists and is valid."),u=new Error("FlexSearch store is required. Check that your store exists and is valid."),d=new Uint8Array(16);function p(){if(!h&&!(h="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return h(d)}var m=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var g=function(e){return"string"==typeof e&&m.test(e)},v=[],y=0;y<256;++y)v.push((y+256).toString(16).substr(1));var b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]).toLowerCase();
1if(!g(i))throw TypeError("Stringified UUID is invalid");return i};var x=function(e,t,i){var n=(e=e||{}).random||(e.rng||p)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return b(n)},w=i(5440);var E=e=>{let{module:t}=e;const{0:i,1:o}=(0,l.useState)(null),{0:h,1:d}=(0,l.useState)([]),{0:p,1:m}=(0,l.useState)(6);let g={};"undefined"!=typeof window&&(g=new Proxy(new URLSearchParams(window.location.search),{get:(e,t)=>e.get(t)})),(0,l.useEffect)((()=>{o(g.q)}),[g,p]);const v=(0,n.useStaticQuery)("3667468360"),y=function(e,t,i,n){var r=c((0,l.useState)(null),2),s=r[0],o=r[1];return(0,l.useEffect)((function(){if(!t)throw f;if(!i)throw u}),[t,i]),(0,l.useEffect)((function(){if(t instanceof a())o(t);else{var e=a().create();e.import(t),o(e)}}),[t]),(0,l.useMemo)((function(){return e&&s&&i?s.search(e,n).map((function(e){return i[e]})):[]}),[e,s,i])}(i,v.localSearchPages.index,v.localSearchPages.store);return(0,l.useEffect)((()=>{d(y)}),[i]),(0,l.useEffect)((()=>{document.querySelector(".search-loader-wrapper__inner").style.opacity="0",setTimeout((()=>{document.getElementById("search-loader-wrapper").style.display="none",document.querySelector("body").style.overflow="auto"}),400)}),[h]),l.createElement(l.Fragment,null,l.createElement("div",{id:"search-loader-wrapper",className:"search-loader-wrapper fixed z-[99999999999] h-full w-full top-0 left-0"},l.createElement("div",{className:"search-loader-wrapper__inner h-full w-full flex flex-col justify-center items-center bg-[#272525]/70 transition-all duration-[400ms] ease-in-out"},l.createElement("div",{className:"loader-spinner"}),l.createElement("p",{className:"loader-text text-15 leading-[24px] text-[#ffffff] font-primary text-center mt-20"},"Searching for the best results, just a moment..."))),l.createElement("section",{className:"banner--wapper"},l.createElement("div",{className:"h-[88px] smscreen2:h-[89px] opacity-0","aria-label":"Kova"},"Kove"),l.createElement("div",{className:"banner half-banner relative bg-stone"},l.createElement("div",{className:"container-fluid h-full"},l.createElement("div",{className:"banner-inner relative h-full"},l.createElement("div",{className:"desk-img h-full mdscreen:h-full relative block smscreen2:hidden"},l.createElement(w.Z,{imgData:"http://cms.kovecollection.co.za/app/uploads/2023/11/SearchResults-scaled.jpg",width:1440,height:700,imgAlt:"Search Listing",imgLoad:"lazy",imgClass:"w-full h-full object-cover"})),l.createElement("div",{className:"mobile-img h-full mdscreen:h-full relative hidden smscreen2:block"},l.createElement(w.Z,{imgData:"http://cms.kovecollection.co.za/app/uploads/2023/11/SearchResults-scaled.jpg",width:1440,height:700,imgAlt:"Search Listing",imgLoad:"lazy",imgClass:"w-full h-full object-cover"})),l.createElement("div",{className:"absolute bottom-0 pb-120 lgscreen:pb-50 z-10 text-center w-full px-30"},l.createElement("div",{className:"preheading mb-10 lgscreen:mb-15"},l.createElement("span",{className:"font-ositalic text-17 text-white-100 "},"Search")),l.createElement("div",{className:"title-white"},l.createElement("h1",null,y.length,' Results for "',l.createElement("i",null,i),' "'))))))),l.createElement("section",{className:"simple-content  py-50 lgscreen:py-25"},l.createElement("div",{className:"w-full max-w-[980px] lgscreen:px-20 mx-auto text-center"},l.createElement("div",{className:"content"},l.createElement("p",null,"Explore the links below to find what you may be looking for")))),l.createElement("section",{className:"bg-white-100 small-img-grid with-pattern px-15 py-30"+(null!=t&&t.extraClass?" "+t.extraClass:"")},l.createElement("div",{className:"container-fluid category-listing py-75 lgscreen:py-30 "},0===(null==h?void 0:h.length)?l.createElement("div",{className:"w-[856px] m-auto text-center lgscreen:w-full px-20 content fade-ani"},l.createElement("div",{className:"title-black"},l.createElement("h3",null,"Can't find what you're looking for?")),l.createElement("p",{className:""},"Please try a different search term or return to our homepage."),l.createElement(r.Z,{to:"/",className:"btn btn-border mt-20"},"Go Back Home")):l.createElement(l.Fragment,null,l.createElement("div",{className:"pt-40 pb-40 lg:mx-minus-30 mx-0 lg:px-15"},h.some((e=>"WpEatDrink"===e.type))&&l.createElement("p",{className:"font-ositalic text-charcoal text-16"},"Eat & Drink")),l.createElement("div",{className:"flex flex-wrap lg:mx-minus-30 mx-0 gap-y-14"},(null==h?void 0:h.length)>0&&h.slice(0,p).filter((e=>"WpEatDrink"===e.type)).map((e=>{var t,i,n;return l.createElement("div",{key:x(),className:"lg:w-4/12 w-full lg:px-15 px-0 fade-ani "+("Guest Enquiry"==e.title?"hidden":"")},l.createElement("div",null,e.featuredImage?l.createElement(w.Z,{imgData:null===(t=e.featuredImage)||void 0===t?void 0:t.node.mediaItemUrl,imgAlt:null===(i=e.featuredImage)||void 0===i||null===(n=i.node)||void 0===n?void 0:n.altText,imgClass:"img relative w-[500px] h-[300px] object-cover",width:1500,height:1500}):l.createElement("img",{src:"/images/Hero.jpg",className:"img relative w-[500px] h-[300px] object-cover"}),l.createElement("div",{className:"ig-info p-30 lgsccreen:p-15"},"WpEatDrink"===e.type&&l.createElement("span",{className:"text-12 text-black-500 font-400 uppercase leading-22 mb-10 inline-block font-preheaders"},"Eat & Drink"),l.createElement("div",{className:"title-black"},(null==e?void 0:e.title)&&l.createElement("h6",{className:""},e.title),l.createElement("div",{className:"content"},(0,s.ZP)(e.excerpt&&e.excerpt)),(null==e?void 0:e.uri)&&l.createElement("div",{className:"btn-custom flex flex-wrap items-center space-x-4 mt-20 "},l.createElement(r.Z,{className:"btn btn-border block smscreen2:hidden",to:"/book-a-table/"},"Book Now"),l.createElement(r.Z,{to:e.uri,className:"button btn-red-border underline"},"View"))))))}
1))),l.createElement("div",{className:"pt-40 pb-40 lg:mx-minus-30 mx-0 lg:px-15"},l.createElement("p",{className:"font-ositalic text-charcoal text-16"},"Other results")),l.createElement("div",{className:"flex flex-wrap lg:mx-minus-30 mx-0 gap-y-14"},(null==h?void 0:h.length)>0&&h.slice(0,p).map((e=>l.createElement("div",{className:"lg:w-4/12 w-full px-20 lgscreen:px-0"},l.createElement("div",{className:"border-1 border-charcoal rounded-2 py-50 px-60 lgscreen:p-20"},"WpEatDrink"===e.type&&l.createElement("span",{className:"text-12 text-black-500 font-400 uppercase leading-22 mb-10 inline-block font-preheaders"},"Eat & Drink"),"WpPost"===e.type&&l.createElement("span",{className:"text-12 text-black-500 font-400 uppercase leading-22 mb-10 inline-block font-preheaders"},"Blogs"),"WpPage"===e.type&&l.createElement("span",{className:"text-12 text-black-500 font-400 uppercase leading-22 mb-10 inline-block font-preheaders"},"KOVE Collection"),(null==e?void 0:e.title)&&l.createElement("h5",null,e.title),(null==e?void 0:e.excerpt)&&l.createElement("div",{className:"content pt-15"},(0,s.ZP)(e.excerpt)),(null==e?void 0:e.uri)&&l.createElement("div",{className:"btn-custom flex flex-wrap items-center space-x-4 mt-20 "},l.createElement(r.Z,{to:e.uri,className:"button btn-red-border underline"},"View")))))))))))}}}]);
2//# sourceMappingURL=375-574ba8c416f55f336ff3.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.