var e=Object.defineProperty,a=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,r=(a,t,o)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[t]=o,n=(e,n)=>{for(var p in n||(n={}))t.call(n,p)&&r(e,p,n[p]);if(a)for(var p of a(n))o.call(n,p)&&r(e,p,n[p]);return e};import{J as p}from"./index-DOwSoTEN.js";function i(){return p.get({url:"/api/common/captcha",params:{_t:Date.now()},skipAuth:!0})}function l(e,a){return p.post({url:"/api/common/sendMobileCode",data:n({mobile:e},a||{}),skipDockingToken:!0})}function s(e,a){return p.post({url:"/api/common/sendEmailCode",data:n({email:e},a||{}),skipDockingToken:!0})}function u(e,a){const t=new FormData;return t.append("file",e),a&&t.append("type",a),p.post({url:"/api/upload/image",data:t,headers:{"Content-Type":"multipart/form-data"}})}export{l as a,i as g,s,u};
