/*!
 * Custom elements for Nanopore-Digital Web applications
 */
import { c as createWorker } from './nano-data-table-Bn4l0Q3q.js';
import './index-BM3Om9WE.js';
import './renderer-DpNDfhNy.js';
import './math-BEqsTfVK.js';
import './throttle-C93FMm2Z.js';
import './scroll-1nFw8CNk.js';
import './dom-dlicJTEJ.js';
import './index-BlBZYxu4.js';

const workerName = 'table.worker';
const workerMsgId = 'stencil.table.worker';
const workerPath = new URL('table.worker-DM_2DNEe.js', import.meta.url).href;
let worker;
try {
  // first try directly starting the worker with the URL
  worker = /*@__PURE__*/createWorker(workerPath, workerName, workerMsgId);
} catch(e) {
  // probably a cross-origin issue, try using a Blob instead
  const blob = new Blob(['importScripts("' + workerPath + '")'], { type: 'text/javascript' });
  const url = URL.createObjectURL(blob);
  worker = /*@__PURE__*/createWorker(url, workerName, workerMsgId);
  URL.revokeObjectURL(url);
}

export { worker, workerMsgId, workerName, workerPath };
