const n = (s) => (console.error(s), Promise.reject(s));
function o(s = [], u) {
  const t = u;
  return s.forEach((e) => {
    t.interceptors.request.use(
      (...r) => e.request(...r),
      (r) => e.requestError ? e.requestError(r) : n(r)
    ), t.interceptors.response.use(
      (...r) => e.response(...r),
      (r) => e.responseError ? e.responseError(r) : n(r)
    );
  }), t;
}
export {
  o as createHttpClientInterceptor
};
//# sourceMappingURL=createHttpClientInterceptor.mjs.map
