import { createLogger } from "../logger.js";
const log = createLogger("providers");
let cached = null;
function getExtractProvider() {
  if (cached) return cached;
  cached = import("../extraction/v1/extract-provider.js").then(
    (m) => {
      log.info("extract provider ready", { provider: "extract", impl: "v1" });
      return new m.V1Extractor();
    },
    (err) => {
      cached = null;
      throw err;
    }
  );
  return cached;
}
function _resetExtractProviderForTest() {
  cached = null;
}
export {
  _resetExtractProviderForTest,
  getExtractProvider
};
//# sourceMappingURL=extract-provider.js.map