ERP-admin/build/admin/assets/axios.fbe06b45.js

3 lines
20 KiB
JavaScript
Raw Normal View History

2024-05-21 13:42:22 +08:00
var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pt(e){var r=e.default;if(typeof r=="function"){var t=function(){return r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),t}var Je={exports:{}},ue={exports:{}},Ve=function(r,t){return function(){for(var n=new Array(arguments.length),a=0;a<n.length;a++)n[a]=arguments[a];return r.apply(t,n)}},ur=Ve,fe=Object.prototype.toString,le=function(e){return function(r){var t=fe.call(r);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())}}(Object.create(null));function O(e){return e=e.toLowerCase(),function(t){return le(t)===e}}function ce(e){return Array.isArray(e)}function L(e){return typeof e>"u"}function fr(e){return e!==null&&!L(e)&&e.constructor!==null&&!L(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var We=O("ArrayBuffer");function lr(e){var r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&We(e.buffer),r}function cr(e){return typeof e=="string"}function dr(e){return typeof e=="number"}function ze(e){return e!==null&&typeof e=="object"}function U(e){if(le(e)!=="object")return!1;var r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}var hr=O("Date"),pr=O("File"),vr=O("Blob"),mr=O("FileList");function de(e){return fe.call(e)==="[object Function]"}function Er(e){return ze(e)&&de(e.pipe)}function yr(e){var r="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||fe.call(e)===r||de(e.toString)&&e.toString()===r)}var Rr=O("URLSearchParams");function br(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function wr(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function he(e,r){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),ce(e))for(var t=0,i=e.length;t<i;t++)r.call(null,e[t],t,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.call(null,e[n],n,e)}function oe(){var e={};function r(n,a){U(e[a])&&U(n)?e[a]=oe(e[a],n):U(n)?e[a]=oe({},n):ce(n)?e[a]=n.slice():e[a]=n}for(var t=0,i=arguments.length;t<i;t++)he(arguments[t],r);return e}function Or(e,r,t){return he(r,function(n,a){t&&typeof n=="function"?e[a]=ur(n,t):e[a]=n}),e}function Ar(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function Sr(e,r,t,i){e.prototype=Object.create(r.prototype,i),e.prototype.constructor=e,t&&Object.assign(e.prototype,t)}function Cr(e,r,t){var i,n,a,o={};r=r||{};do{for(i=Object.getOwnPropertyNames(e),n=i.length;n-- >0;)a=i[n],o[a]||(r[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!t||t(e,r))&&e!==Object.prototype);return r}function xr(e,r,t){e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=r.length;var i=e.indexOf(r,t);return i!==-1&&i===t}function Tr(e){if(!e)return null;var r=e.length;if(L(r))return null;for(var t=new Array(r);r-- >0;)t[r]=e[r];return t}var Pr=function(e){return function(r){return e&&r instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),v={isArray:ce,isArrayBuffer:We,isBuffer:fr,isFormData:yr,isArrayBufferView:lr,isString:cr,isNumber:dr,isObject:ze,isPlainObject:U,isUndefined:L,isDate:hr,isFile:pr,isBlob:vr,isFunction:de,isStream:Er,isURLSearchParams:Rr,isStandardBrowserEnv:wr,forEach:he,merge:oe,extend:Or,trim:br,stripBOM:Ar,inherits:Sr,toFlatObject:Cr,kindOf:le,kindOfTest:O,endsWith:xr,toArray:Tr,isTypedArray:Pr,isFileList:mr},x=v;function Re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Xe=function(r,t,i){if(!t)return r;var n;if(i)n=i(t);else if(x.isURLSearchParams(t))n=t.toStri
`),function(h){if(s=h.indexOf(":"),a=e.trim(h.substr(0,s)).toLowerCase(),o=e.trim(h.substr(s+1)),a){if(n[a]&&r.indexOf(a)>=0)return;a==="set-cookie"?n[a]=(n[a]?n[a]:[]).concat([o]):n[a]=n[a]?n[a]+", "+o:o}}),n},X}var K,Ce;function $r(){if(Ce)return K;Ce=1;var e=v;return K=e.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),n;function a(o){var s=o;return t&&(i.setAttribute("href",s),s=i.href),i.setAttribute("href",s),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return n=a(window.location.href),function(s){var f=e.isString(s)?a(s):s;return f.protocol===n.protocol&&f.host===n.host}}():function(){return function(){return!0}}(),K}var Q,xe;function j(){if(xe)return Q;xe=1;var e=_(),r=v;function t(i){e.call(this,i==null?"canceled":i,e.ERR_CANCELED),this.name="CanceledError"}return r.inherits(t,e,{__CANCEL__:!0}),Q=t,Q}var G,Te;function kr(){return Te||(Te=1,G=function(r){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return t&&t[1]||""}),G}var Y,Pe;function _e(){if(Pe)return Y;Pe=1;var e=v,r=qr(),t=Ur(),i=Xe,n=Ge,a=Ir(),o=$r(),s=Ke,f=_(),h=j(),l=kr();return Y=function(u){return new Promise(function(q,A){var N=u.data,D=u.headers,g=u.responseType,S;function me(){u.cancelToken&&u.cancelToken.unsubscribe(S),u.signal&&u.signal.removeEventListener("abort",S)}e.isFormData(N)&&e.isStandardBrowserEnv()&&delete D["Content-Type"];var c=new XMLHttpRequest;if(u.auth){var ir=u.auth.username||"",ar=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";D.Authorization="Basic "+btoa(ir+":"+ar)}var k=n(u.baseURL,u.url);c.open(u.method.toUpperCase(),i(k,u.params,u.paramsSerializer),!0),c.timeout=u.timeout;function Ee(){if(!!c){var R="getAllResponseHeaders"in c?a(c.getAllResponseHeaders()):null,C=!g||g==="text"||g==="json"?c.responseText:c.response,w={data:C,status:c.status,statusText:c.statusText,headers:R,config:u,request:c};r(function(H){q(H),me()},function(H){A(H),me()},w),c=null}}if("onloadend"in c?c.onloadend=Ee:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(Ee)},c.onabort=function(){!c||(A(new f("Request aborted",f.ECONNABORTED,u,c)),c=null)},c.onerror=function(){A(new f("Network Error",f.ERR_NETWORK,u,c,c)),c=null},c.ontimeout=function(){var C=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",w=u.transitional||s;u.timeoutErrorMessage&&(C=u.timeoutErrorMessage),A(new f(C,w.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,u,c)),c=null},e.isStandardBrowserEnv()){var ye=(u.withCredentials||o(k))&&u.xsrfCookieName?t.read(u.xsrfCookieName):void 0;ye&&(D[u.xsrfHeaderName]=ye)}"setRequestHeader"in c&&e.forEach(D,function(C,w){typeof N>"u"&&w.toLowerCase()==="content-type"?delete D[w]:c.setRequestHeader(w,C)}),e.isUndefined(u.withCredentials)||(c.withCredentials=!!u.withCredentials),g&&g!=="json"&&(c.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&c.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",u.onUploadProgress),(u.cancelToken||u.signal)&&(S=function(R){!c||(A(!R||R&&R.type?new h:R),c.abort(),c=null)},u.cancelToken&&u.cancelToken.subscribe(S),u.signal&&(u.signal.aborted?S():u.signal.addEventListener("abort",S))),N||(N=null);var M=l(k);if(M&&["http","https","file"].indexOf(M)===-1){A(new f("Unsupported protocol "+M+":",f.ERR_BAD_REQUEST,u));return}c.send(N)})},Y}var Z,Ne;function Mr(){return Ne||(Ne=1,Z=null),Z}var p=v,De=gr,ge=_(),Hr=Ke,Jr=Qe(),Vr={"Content-Type":"application/x-www-form-urlencoded"};function qe(e,r){!p.isUndefined(e)&&p.isUndefined(e["Content-Type"])&&(e["Content-Type"]=r)}function Wr(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=_e()),e}function zr(e,r,t){if(p.is