var chem;(()=>{"use strict";var e,t,r={3371:(e,t,r)=>{const o=e=>null==e;var n=r(1542),a=r(6465);onmessage=async e=>{const{values:t,startIdx:r,endIdx:s,sampleLength:c,fnName:l,opts:i}=e.data;try{let e=new Float32Array(c);const h=s-r;if((0,n.sQ)(l))for(let e=0;e<t.length;++e)o(t[e])||(t[e]=new a.Z(t[e]._data,t[e]._length));let p=0;const f=Math.floor(h/c),u=new n.UH(l).getMeasure(i),g=t.length-2-Math.floor(Math.sqrt(-8*r+4*t.length*(t.length-1)-7)/2-.5),v=r-t.length*g+Math.floor((g+1)*(g+2)/2);let m=g,d=v,b=0;for(;p<h&&b<c;){const r=o(t[m])||o(t[d])?1:u(t[m],t[d]);for(e[b]=r,b++,p+=f,d+=f;d>=t.length&&p<h;)m++,d=m+1+(d-t.length)}b<c&&(e=e.slice(0,b)),postMessage({distance:e})}catch(e){postMessage({error:e})}}}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.x=()=>{var e=n.O(void 0,[388,542],(()=>n(3371)));return n.O(e)},e=[],n.O=(t,r,o,a)=>{if(!r){var s=1/0;for(h=0;h<e.length;h++){for(var[r,o,a]=e[h],c=!0,l=0;l<r.length;l++)(!1&a||s>=a)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(c=!1,a<s&&(s=a));if(c){e.splice(h--,1);var i=o();void 0!==i&&(t=i)}}return t}a=a||0;for(var h=e.length;h>0&&e[h-1][2]>a;h--)e[h]=e[h-1];e[h]=[r,o,a]},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),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,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={371:1};n.f.i=(t,r)=>{e[t]||importScripts(n.p+n.u(t))};var t=self.webpackChunkchem=self.webpackChunkchem||[],r=t.push.bind(t);t.push=t=>{var[o,a,s]=t;for(var c in a)n.o(a,c)&&(n.m[c]=a[c]);for(s&&s(n);o.length;)e[o.pop()]=1;r(t)}})(),t=n.x,n.x=()=>Promise.all([n.e(388),n.e(542)]).then(t);var a=n.x();chem=a})();
//# sourceMappingURL=371.js.map