var bio;(()=>{"use strict";var e,r,t={9040:(e,r,t)=>{var o=t(7862);const n=e=>null==e;var a=t(6361),s=t(9657);onmessage=async e=>{const{values:r,startIdx:t,endIdx:i,sampleLength:l,fnNames:c,opts:h,weights:p,aggregationMethod:f}=e.data;try{let e=new Float32Array(l);const u=i-t,g=function(e,r){return e===o.y.MANHATTAN?e=>e.reduce(((e,t,o)=>e+t*r[o]),0):e=>{const t=e.reduce(((e,t,o)=>e+(t*r[o])**2),0);return Math.sqrt(t)}}(f,p);r.forEach(((e,t)=>{if((0,a.sQ)(c[t]))for(let o=0;o<e.length;++o)n(e[o])||(r[t][o]=new s.Z(r[t][o]._data,r[t][o]._length))}));let v=0;const d=Math.floor(u/l),b=new Array(c.length).fill(null).map(((e,r)=>new a.UH(c[r]).getMeasure(h[r]))),m=r[0].length-2-Math.floor(Math.sqrt(-8*t+4*r[0].length*(r[0].length-1)-7)/2-.5),w=t-r[0].length*m+Math.floor((m+1)*(m+2)/2);let y=m,x=w,M=0;for(;v<u&&M<l;){const t=b.map(((e,t)=>n(r[t][y])||n(r[t][x])?1:e(r[t][y],r[t][x]))),o=1===t.length?t[0]:g(t);for(e[M]=o,M++,v+=d,x+=d;x>=r[0].length&&v<u;)y++,x=y+1+(x-r[0].length)}M<l&&(e=e.slice(0,M)),postMessage({distance:e})}catch(e){postMessage({error:e})}}}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.m=t,n.x=()=>{var e=n.O(void 0,[36,413],(()=>n(9040)));return n.O(e)},e=[],n.O=(r,t,o,a)=>{if(!t){var s=1/0;for(h=0;h<e.length;h++){for(var[t,o,a]=e[h],i=!0,l=0;l<t.length;l++)(!1&a||s>=a)&&Object.keys(n.O).every((e=>n.O[e](t[l])))?t.splice(l--,1):(i=!1,a<s&&(s=a));if(i){e.splice(h--,1);var c=o();void 0!==c&&(r=c)}}return r}a=a||0;for(var h=e.length;h>0&&e[h-1][2]>a;h--)e[h]=e[h-1];e[h]=[t,o,a]},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>e+".js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var r=n.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var o=t.length-1;o>-1&&!e;)e=t[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={40:1};n.f.i=(r,t)=>{e[r]||importScripts(n.p+n.u(r))};var r=self.webpackChunkbio=self.webpackChunkbio||[],t=r.push.bind(r);r.push=r=>{var[o,a,s]=r;for(var i in a)n.o(a,i)&&(n.m[i]=a[i]);for(s&&s(n);o.length;)e[o.pop()]=1;t(r)}})(),r=n.x,n.x=()=>Promise.all([n.e(36),n.e(413)]).then(r);var a=n.x();bio=a})();
//# sourceMappingURL=40.js.map