(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e5dd1"],{"95fe":function(e,t,n){"use strict";function r(e,t,n){let r;r=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:`fail to post ${e} ${n.status}`;const o=new Error(r);return o.status=n.status,o.method="post",o.url=e,o}function o(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function s(e,t,n){if("undefined"===typeof XMLHttpRequest)return;const s=new XMLHttpRequest,a=e.action;s.upload&&(s.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});const u=new FormData;e.data&&Object.keys(e.data).forEach(t=>{u.append(t,e.data[t])}),u.append(e.name,e.file,e.file.name),s.onerror=function(e){n(e)},s.onload=function(){if(s.status<200||s.status>=300)return e.onError(r(a,e,s));t(o(s))},s.open("post",a,!0),e.withCredentials&&"withCredentials"in s&&(s.withCredentials=!0);const p=e.headers||{};for(const r in p)p.hasOwnProperty(r)&&null!==p[r]&&s.setRequestHeader(r,p[r]);return s.send(u),s}n.r(t),n.d(t,"default",(function(){return s}))}}]);