"use strict";function loadHandler(e,o){const n=require(e);if(o&&"default"!==o){const e=n?.[o];if("function"!=typeof e)throw new Error(`Spawned queue worker export not found or not a function: ${o}`);return e}if("function"==typeof n)return n;if("function"==typeof n?.default)return n.default;throw new Error("Spawned queue worker module must export a function or default function")}module.exports={loadHandler:loadHandler};