var bio;(()=>{"use strict";var e,r,t={9810(e,r,t){var n=t(6066);const o=e=>null==e;function a(e,r,t,n){if(t>e[e.length-1])return;const o=e.findIndex(e=>t<e);e.pop(),e.splice(o,0,t),r.pop(),r.splice(o,0,n)}var s=t(2780),i=t(8774);onmessage=async e=>{const{values:r,fnNames:t,opts:c,nNeighbours:l,weights:p,aggregationMethod:u,target:f,startIdx:h}=e.data;try{const e=new Array(l).fill(-1),g=new Array(l).fill(999999),v=function(e,r){return e===n.G.MANHATTAN?e=>e.reduce((e,t,n)=>e+t*r[n],0):e=>{const t=e.reduce((e,t,n)=>e+(t*r[n])**2,0);return Math.sqrt(t)}}(u,p);r.forEach((e,n)=>{if((0,s.lW)(t[n]))for(let t=0;t<e.length;++t)o(e[t])||(r[n][t]=new i.A(r[n][t]._data,r[n][t]._length))});const b=new Array(t.length).fill(null).map((e,r)=>new s.t$(t[r]).getMeasure(c[r]));for(let t=0;t<r[0].length;t++){const n=b.map((e,n)=>o(f[n])||o(r[n][t])?1:e(f[n],r[n][t]));a(g,e,1===n.length?n[0]:v(n),t+h)}postMessage({knnDistances:g,knnIndexes:e})}catch(e){postMessage({error:e})}}}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,o.x=()=>{var e=o.O(void 0,[242,589],()=>o(9810));return o.O(e)},e=[],o.O=(r,t,n,a)=>{if(!t){var s=1/0;for(p=0;p<e.length;p++){for(var[t,n,a]=e[p],i=!0,c=0;c<t.length;c++)(!1&a||s>=a)&&Object.keys(o.O).every(e=>o.O[e](t[c]))?t.splice(c--,1):(i=!1,a<s&&(s=a));if(i){e.splice(p--,1);var l=n();void 0!==l&&(r=l)}}return r}a=a||0;for(var p=e.length;p>0&&e[p-1][2]>a;p--)e[p]=e[p-1];e[p]=[t,n,a]},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var r=o.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={810:1};o.f.i=(r,t)=>{e[r]||importScripts(o.p+o.u(r))};var r=self.webpackChunkbio=self.webpackChunkbio||[],t=r.push.bind(r);r.push=r=>{var[n,a,s]=r;for(var i in a)o.o(a,i)&&(o.m[i]=a[i]);for(s&&s(o);n.length;)e[n.pop()]=1;t(r)}})(),r=o.x,o.x=()=>Promise.all([o.e(242),o.e(589)]).then(r);var a=o.x();bio=a})();
//# sourceMappingURL=810.js.map