"use strict";const r=require("./index.cjs348.js"),n=require("./index.cjs242.js"),u=require("./index.cjs238.js"),l=require("./index.cjs240.js"),a=require("./index.cjs248.js"),p=require("./index.cjs249.js");function s(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new l(null,e)}function o(e){return s(e),e.headers=a.from(e.headers),e.data=r.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),p.getAdapter(e.adapter||u.adapter)(e).then(function(t){return s(e),t.data=r.call(e,e.transformResponse,t),t.headers=a.from(t.headers),t},function(t){return n(t)||(s(e),t&&t.response&&(t.response.data=r.call(e,e.transformResponse,t.response),t.response.headers=a.from(t.response.headers))),Promise.reject(t)})}module.exports=o;
//# sourceMappingURL=index.cjs302.js.map
