import { wrap as n } from "../../node_modules/.pnpm/comlink@4.4.2/node_modules/comlink/dist/esm/comlink.js";
let r;
function t() {
  if (!(typeof Worker > "u")) {
    if (r)
      return r;
    try {
      const e = new Worker(new URL(
        /* @vite-ignore */
        "" + new URL("worker.js", import.meta.url).href,
        import.meta.url
      ), {
        type: "module"
      });
      return r = n(e), r;
    } catch (e) {
      console.warn(
        "@mintlify/components: Shiki worker unavailable, using synchronous highlighting",
        e
      );
      return;
    }
  }
}
export {
  t as getShikiWorker
};
