"use strict";const i=require("./index.cjs310.js"),d=require("./index.cjs227.js"),m=require("./index.cjs463.js"),h=require("./index.cjs464.js"),q=require("./index.cjs306.js"),w=require("./index.cjs230.js"),C=require("./index.cjs241.js"),b=require("./index.cjs303.js"),x=a=>{const e=w({},a);let{data:c,withXSRFToken:s,xsrfHeaderName:u,xsrfCookieName:l,headers:r,auth:t}=e;e.headers=r=C.from(r),e.url=b(q(e.baseURL,e.url,e.allowAbsoluteUrls),a.params,a.paramsSerializer),t&&r.set("Authorization","Basic "+btoa((t.username||"")+":"+(t.password?unescape(encodeURIComponent(t.password)):"")));let n;if(d.isFormData(c)){if(i.hasStandardBrowserEnv||i.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((n=r.getContentType())!==!1){const[o,...f]=n?n.split(";").map(p=>p.trim()).filter(Boolean):[];r.setContentType([o||"multipart/form-data",...f].join("; "))}}if(i.hasStandardBrowserEnv&&(s&&d.isFunction(s)&&(s=s(e)),s||s!==!1&&m(e.url))){const o=u&&l&&h.read(l);o&&r.set(u,o)}return e};module.exports=x;
//# sourceMappingURL=index.cjs384.js.map
