text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("uploadFile",[],t):"object"==typeof exports?exports.uploadFile=t():e.uploadFile=t()}(self,(function(){return function(){"use strict";var e={257:function(e,t){t.default=(e={},t={})=>{let o=new FormData;for(let t in e)e.hasOwnProperty(t)&&o.append(t,e[t]);for(let e in t)if(t.hasOwnProperty(e)&&t[e]&&t[e].length){let n=t[e];for(let t=0,r=n.length;t<r;t++)o.append(e,n[t])}return o}},3072:function(e,t,o){function n(e){const t=Object.prototype.toString;return{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object","[object Promise]":"promise","[object Map]":"map","[object Set]":"set","[object Map Iterator]":"map-iterator","[[object Symbol]]":"symbol","[object Module]":"module"}[t.call(e)]||t.call(e)}o.d(t,{default:function(){return n}})}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var c=t[n]={exports:{}};return e[n](c,c.exports,o),c.exports}o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var n={};return function(){o.d(n,{default:function(){return i}});var e=o(3072),t=o(257);const r="object"==typeof o.g&&null!==o.g&&o.g.Object===Object&&o.g,c="object"==typeof globalThis&&null!==globalThis&&globalThis.Object==Object&&globalThis,l="object"==typeof self&&null!==self&&self.Object===Object&&self;var u=c||r||l||Function("return this")(),i=function(o,n,r={},c){return new Promise(((l,i)=>{let a=(0,t.default)(r,n),f=u.XMLHttpRequest?new u.XMLHttpRequest:new ActiveObject("Microsoft");f.upload.addEventListener("progress",(function(t){c&&"function"==(0,e.default)(c)&&c(t)}),!1),f.addEventListener("load",(function(e){console.log(e),l({data:f.responseText,status:f.status})}),!1),f.addEventListener("error",(function(e){i(f.responseText)}),!1),f.open("POST",o,!0),f.send(a)}))}}(),n.default}()}));