Files
jiapu/dist/utils/axios.js
T

10 lines
54 KiB
JavaScript

(function(J,V){typeof exports=="object"&&typeof module!="undefined"?module.exports=V():typeof define=="function"&&define.amd?define(V):(J=typeof globalThis!="undefined"?globalThis:J||self,J.axios=V())})(this,(function(){"use strict";function J(r){var e,t;function n(i,o){try{var s=r[i](o),u=s.value,c=u instanceof V;Promise.resolve(c?u.v:u).then(function(l){if(c){var h=i==="return"?"return":"next";if(!u.k||l.done)return n(h,l);l=r[h](l).value}a(s.done?"return":"normal",l)},function(l){n("throw",l)})}catch(l){a("throw",l)}}function a(i,o){switch(i){case"return":e.resolve({value:o,done:!0});break;case"throw":e.reject(o);break;default:e.resolve({value:o,done:!1})}(e=e.next)?n(e.key,e.arg):t=null}this._invoke=function(i,o){return new Promise(function(s,u){var c={key:i,arg:o,resolve:s,reject:u,next:null};t?t=t.next=c:(e=t=c,n(i,o))})},typeof r.return!="function"&&(this.return=void 0)}J.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},J.prototype.next=function(r){return this._invoke("next",r)},J.prototype.throw=function(r){return this._invoke("throw",r)},J.prototype.return=function(r){return this._invoke("return",r)};function V(r,e){this.v=r,this.k=e}function Ve(r){var e={},t=!1;function n(a,i){return t=!0,i=new Promise(function(o){o(r[a](i))}),{done:!1,value:new V(i,1)}}return e[typeof Symbol!="undefined"&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(a){return t?(t=!1,a):n("next",a)},typeof r.throw=="function"&&(e.throw=function(a){if(t)throw t=!1,a;return n("throw",a)}),typeof r.return=="function"&&(e.return=function(a){return t?(t=!1,a):n("return",a)}),e}function je(r){var e,t,n,a=2;for(typeof Symbol!="undefined"&&(t=Symbol.asyncIterator,n=Symbol.iterator);a--;){if(t&&(e=r[t])!=null)return e.call(r);if(n&&(e=r[n])!=null)return new de(e.call(r));t="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function de(r){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var n=t.done;return Promise.resolve(t.value).then(function(a){return{value:a,done:n}})}return de=function(t){this.s=t,this.n=t.next},de.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var n=this.s.return;return n===void 0?Promise.resolve({value:t,done:!0}):e(n.apply(this.s,arguments))},throw:function(t){var n=this.s.return;return n===void 0?Promise.reject(t):e(n.apply(this.s,arguments))}},new de(r)}function pe(r){return new V(r,0)}function zr(r,e){var t=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,a,i,o,s=[],u=!0,c=!1;try{if(i=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=i.call(t)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(l){c=!0,a=l}finally{try{if(!u&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function Xe(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function se(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Xe(Object(t),!0).forEach(function(n){rr(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Xe(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function L(){L=function(){return e};var r,e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(p,d,v){p[d]=v.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(p,d,v){return Object.defineProperty(p,d,{value:v,enumerable:!0,configurable:!0,writable:!0}),p[d]}try{c({},"")}catch(p){c=function(d,v,O){return d[v]=O}}function l(p,d,v,O){var w=d&&d.prototype instanceof C?d:C,P=Object.create(w.prototype),g=new Z(O||[]);return a(P,"_invoke",{value:ae(p,v,g)}),P}function h(p,d,v){try{return{type:"normal",arg:p.call(d,v)}}catch(O){return{type:"throw",arg:O}}}e.wrap=l;var y="suspendedStart",E="suspendedYield",b="executing",S="completed",m={};function C(){}function A(){}function T(){}var N={};c(N,o,function(){return this});var M=Object.getPrototypeOf,_=M&&M(M(ie([])));_&&_!==t&&n.call(_,o)&&(N=_);var F=T.prototype=C.prototype=Object.create(N);function D(p){["next","throw","return"].forEach(function(d){c(p,d,function(v){return this._invoke(d,v)})})}function I(p,d){function v(w,P,g,j){var x=h(p[w],p,P);if(x.type!=="throw"){var oe=x.arg,le=oe.value;return le&&typeof le=="object"&&n.call(le,"__await")?d.resolve(le.__await).then(function(ee){v("next",ee,g,j)},function(ee){v("throw",ee,g,j)}):d.resolve(le).then(function(ee){oe.value=ee,g(oe)},function(ee){return v("throw",ee,g,j)})}j(x.arg)}var O;a(this,"_invoke",{value:function(w,P){function g(){return new d(function(j,x){v(w,P,j,x)})}return O=O?O.then(g,g):g()}})}function ae(p,d,v){var O=y;return function(w,P){if(O===b)throw new Error("Generator is already running");if(O===S){if(w==="throw")throw P;return{value:r,done:!0}}for(v.method=w,v.arg=P;;){var g=v.delegate;if(g){var j=W(g,v);if(j){if(j===m)continue;return j}}if(v.method==="next")v.sent=v._sent=v.arg;else if(v.method==="throw"){if(O===y)throw O=S,v.arg;v.dispatchException(v.arg)}else v.method==="return"&&v.abrupt("return",v.arg);O=b;var x=h(p,d,v);if(x.type==="normal"){if(O=v.done?S:E,x.arg===m)continue;return{value:x.arg,done:v.done}}x.type==="throw"&&(O=S,v.method="throw",v.arg=x.arg)}}}function W(p,d){var v=d.method,O=p.iterator[v];if(O===r)return d.delegate=null,v==="throw"&&p.iterator.return&&(d.method="return",d.arg=r,W(p,d),d.method==="throw")||v!=="return"&&(d.method="throw",d.arg=new TypeError("The iterator does not provide a '"+v+"' method")),m;var w=h(O,p.iterator,d.arg);if(w.type==="throw")return d.method="throw",d.arg=w.arg,d.delegate=null,m;var P=w.arg;return P?P.done?(d[p.resultName]=P.value,d.next=p.nextLoc,d.method!=="return"&&(d.method="next",d.arg=r),d.delegate=null,m):P:(d.method="throw",d.arg=new TypeError("iterator result is not an object"),d.delegate=null,m)}function z(p){var d={tryLoc:p[0]};1 in p&&(d.catchLoc=p[1]),2 in p&&(d.finallyLoc=p[2],d.afterLoc=p[3]),this.tryEntries.push(d)}function Q(p){var d=p.completion||{};d.type="normal",delete d.arg,p.completion=d}function Z(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(z,this),this.reset(!0)}function ie(p){if(p||p===""){var d=p[o];if(d)return d.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var v=-1,O=function w(){for(;++v<p.length;)if(n.call(p,v))return w.value=p[v],w.done=!1,w;return w.value=r,w.done=!0,w};return O.next=O}}throw new TypeError(typeof p+" is not iterable")}return A.prototype=T,a(F,"constructor",{value:T,configurable:!0}),a(T,"constructor",{value:A,configurable:!0}),A.displayName=c(T,u,"GeneratorFunction"),e.isGeneratorFunction=function(p){var d=typeof p=="function"&&p.constructor;return!!d&&(d===A||(d.displayName||d.name)==="GeneratorFunction")},e.mark=function(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,T):(p.__proto__=T,c(p,u,"GeneratorFunction")),p.prototype=Object.create(F),p},e.awrap=function(p){return{__await:p}},D(I.prototype),c(I.prototype,s,function(){return this}),e.AsyncIterator=I,e.async=function(p,d,v,O,w){w===void 0&&(w=Promise);var P=new I(l(p,d,v,O),w);return e.isGeneratorFunction(d)?P:P.next().then(function(g){return g.done?g.value:P.next()})},D(F),c(F,u,"Generator"),c(F,o,function(){return this}),c(F,"toString",function(){return"[object Generator]"}),e.keys=function(p){var d=Object(p),v=[];for(var O in d)v.push(O);return v.reverse(),function w(){for(;v.length;){var P=v.pop();if(P in d)return w.value=P,w.done=!1,w}return w.done=!0,w}},e.values=ie,Z.prototype={constructor:Z,reset:function(p){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(Q),!p)for(var d in this)d.charAt(0)==="t"&&n.call(this,d)&&!isNaN(+d.slice(1))&&(this[d]=r)},stop:function(){this.done=!0;var p=this.tryEntries[0].completion;if(p.type==="throw")throw p.arg;return this.rval},dispatchException:function(p){if(this.done)throw p;var d=this;function v(x,oe){return P.type="throw",P.arg=p,d.next=x,oe&&(d.method="next",d.arg=r),!!oe}for(var O=this.tryEntries.length-1;O>=0;--O){var w=this.tryEntries[O],P=w.completion;if(w.tryLoc==="root")return v("end");if(w.tryLoc<=this.prev){var g=n.call(w,"catchLoc"),j=n.call(w,"finallyLoc");if(g&&j){if(this.prev<w.catchLoc)return v(w.catchLoc,!0);if(this.prev<w.finallyLoc)return v(w.finallyLoc)}else if(g){if(this.prev<w.catchLoc)return v(w.catchLoc,!0)}else{if(!j)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return v(w.finallyLoc)}}}},abrupt:function(p,d){for(var v=this.tryEntries.length-1;v>=0;--v){var O=this.tryEntries[v];if(O.tryLoc<=this.prev&&n.call(O,"finallyLoc")&&this.prev<O.finallyLoc){var w=O;break}}w&&(p==="break"||p==="continue")&&w.tryLoc<=d&&d<=w.finallyLoc&&(w=null);var P=w?w.completion:{};return P.type=p,P.arg=d,w?(this.method="next",this.next=w.finallyLoc,m):this.complete(P)},complete:function(p,d){if(p.type==="throw")throw p.arg;return p.type==="break"||p.type==="continue"?this.next=p.arg:p.type==="return"?(this.rval=this.arg=p.arg,this.method="return",this.next="end"):p.type==="normal"&&d&&(this.next=d),m},finish:function(p){for(var d=this.tryEntries.length-1;d>=0;--d){var v=this.tryEntries[d];if(v.finallyLoc===p)return this.complete(v.completion,v.afterLoc),Q(v),m}},catch:function(p){for(var d=this.tryEntries.length-1;d>=0;--d){var v=this.tryEntries[d];if(v.tryLoc===p){var O=v.completion;if(O.type==="throw"){var w=O.arg;Q(v)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(p,d,v){return this.delegate={iterator:ie(p),resultName:d,nextLoc:v},this.method==="next"&&(this.arg=r),m}},e}function $r(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Ye(r){var e=$r(r,"string");return typeof e=="symbol"?e:String(e)}function G(r){"@babel/helpers - typeof";return G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(r)}function Qe(r){return function(){return new J(r.apply(this,arguments))}}function Ze(r,e,t,n,a,i,o){try{var s=r[i](o),u=s.value}catch(c){t(c);return}s.done?e(u):Promise.resolve(u).then(n,a)}function re(r){return function(){var e=this,t=arguments;return new Promise(function(n,a){var i=r.apply(e,t);function o(u){Ze(i,n,a,o,s,"next",u)}function s(u){Ze(i,n,a,o,s,"throw",u)}o(void 0)})}}function he(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function er(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,Ye(n.key),n)}}function ve(r,e,t){return e&&er(r.prototype,e),t&&er(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function rr(r,e,t){return e=Ye(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function K(r,e){return tr(r)||zr(r,e)||me(r,e)||ar()}function Jr(r){return tr(r)||nr(r)||me(r)||ar()}function Gr(r){return Kr(r)||nr(r)||me(r)||Wr()}function Kr(r){if(Array.isArray(r))return Fe(r)}function tr(r){if(Array.isArray(r))return r}function nr(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function me(r,e){if(r){if(typeof r=="string")return Fe(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Fe(r,e)}}function Fe(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function Wr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ar(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vr(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=me(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var n=0,a=function(){};return{s:a,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(r)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function ir(r,e){return function(){return r.apply(e,arguments)}}var Xr=Object.prototype.toString,De=Object.getPrototypeOf,ye=(function(r){return function(e){var t=Xr.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}})(Object.create(null)),q=function(e){return e=e.toLowerCase(),function(t){return ye(t)===e}},be=function(e){return function(t){return G(t)===e}},te=Array.isArray,ue=be("undefined");function Yr(r){return r!==null&&!ue(r)&&r.constructor!==null&&!ue(r.constructor)&&U(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}var or=q("ArrayBuffer");function Qr(r){var e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&or(r.buffer),e}var Zr=be("string"),U=be("function"),sr=be("number"),we=function(e){return e!==null&&G(e)==="object"},et=function(e){return e===!0||e===!1},ge=function(e){if(ye(e)!=="object")return!1;var t=De(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},rt=q("Date"),tt=q("File"),nt=q("Blob"),at=q("FileList"),it=function(e){return we(e)&&U(e.pipe)},ot=function(e){var t;return e&&(typeof FormData=="function"&&e instanceof FormData||U(e.append)&&((t=ye(e))==="formdata"||t==="object"&&U(e.toString)&&e.toString()==="[object FormData]"))},st=q("URLSearchParams"),ut=["ReadableStream","Request","Response","Headers"].map(q),Ee=K(ut,4),ft=Ee[0],ct=Ee[1],lt=Ee[2],dt=Ee[3],pt=function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function fe(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t.allOwnKeys,a=n===void 0?!1:n;if(!(r===null||typeof r=="undefined")){var i,o;if(G(r)!=="object"&&(r=[r]),te(r))for(i=0,o=r.length;i<o;i++)e.call(null,r[i],i,r);else{var s=a?Object.getOwnPropertyNames(r):Object.keys(r),u=s.length,c;for(i=0;i<u;i++)c=s[i],e.call(null,r[c],c,r)}}}function ur(r,e){e=e.toLowerCase();for(var t=Object.keys(r),n=t.length,a;n-- >0;)if(a=t[n],e===a.toLowerCase())return a;return null}var X=(function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global})(),fr=function(e){return!ue(e)&&e!==X};function Be(){for(var r=fr(this)&&this||{},e=r.caseless,t={},n=function(s,u){var c=e&&ur(t,u)||u;ge(t[c])&&ge(s)?t[c]=Be(t[c],s):ge(s)?t[c]=Be({},s):te(s)?t[c]=s.slice():t[c]=s},a=0,i=arguments.length;a<i;a++)arguments[a]&&fe(arguments[a],n);return t}var ht=function(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=a.allOwnKeys;return fe(t,function(o,s){n&&U(o)?e[s]=ir(o,n):e[s]=o},{allOwnKeys:i}),e},vt=function(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e},mt=function(e,t,n,a){e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},yt=function(e,t,n,a){var i,o,s,u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!a||a(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=n!==!1&&De(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},bt=function(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var a=e.indexOf(t,n);return a!==-1&&a===n},wt=function(e){if(!e)return null;if(te(e))return e;var t=e.length;if(!sr(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},gt=(function(r){return function(e){return r&&e instanceof r}})(typeof Uint8Array!="undefined"&&De(Uint8Array)),Et=function(e,t){for(var n=e&&e[Symbol.iterator],a=n.call(e),i;(i=a.next())&&!i.done;){var o=i.value;t.call(e,o[0],o[1])}},St=function(e,t){for(var n,a=[];(n=e.exec(t))!==null;)a.push(n);return a},Ot=q("HTMLFormElement"),Rt=function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,i){return a.toUpperCase()+i})},cr=(function(r){var e=r.hasOwnProperty;return function(t,n){return e.call(t,n)}})(Object.prototype),At=q("RegExp"),lr=function(e,t){var n=Object.getOwnPropertyDescriptors(e),a={};fe(n,function(i,o){var s;(s=t(i,o,e))!==!1&&(a[o]=s||i)}),Object.defineProperties(e,a)},Tt=function(e){lr(e,function(t,n){if(U(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;var a=e[n];if(U(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")})}})},Pt=function(e,t){var n={},a=function(o){o.forEach(function(s){n[s]=!0})};return te(e)?a(e):a(String(e).split(t)),n},Ct=function(){},kt=function(e,t){return e!=null&&Number.isFinite(e=+e)?e:t},xe="abcdefghijklmnopqrstuvwxyz",dr="0123456789",pr={DIGIT:dr,ALPHA:xe,ALPHA_DIGIT:xe+xe.toUpperCase()+dr},Lt=function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pr.ALPHA_DIGIT,n="",a=t.length;e--;)n+=t[Math.random()*a|0];return n};function Nt(r){return!!(r&&U(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}var jt=function(e){var t=new Array(10),n=function a(i,o){if(we(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;var s=te(i)?[]:{};return fe(i,function(u,c){var l=a(u,o+1);!ue(l)&&(s[c]=l)}),t[o]=void 0,s}}return i};return n(e,0)},Ft=q("AsyncFunction"),Dt=function(e){return e&&(we(e)||U(e))&&U(e.then)&&U(e.catch)},hr=(function(r,e){return r?setImmediate:e?(function(t,n){return X.addEventListener("message",function(a){var i=a.source,o=a.data;i===X&&o===t&&n.length&&n.shift()()},!1),function(a){n.push(a),X.postMessage(t,"*")}})("axios@".concat(Math.random()),[]):function(t){return setTimeout(t)}})(typeof setImmediate=="function",U(X.postMessage)),Bt=typeof queueMicrotask!="undefined"?queueMicrotask.bind(X):typeof process!="undefined"&&process.nextTick||hr,f={isArray:te,isArrayBuffer:or,isBuffer:Yr,isFormData:ot,isArrayBufferView:Qr,isString:Zr,isNumber:sr,isBoolean:et,isObject:we,isPlainObject:ge,isReadableStream:ft,isRequest:ct,isResponse:lt,isHeaders:dt,isUndefined:ue,isDate:rt,isFile:tt,isBlob:nt,isRegExp:At,isFunction:U,isStream:it,isURLSearchParams:st,isTypedArray:gt,isFileList:at,forEach:fe,merge:Be,extend:ht,trim:pt,stripBOM:vt,inherits:mt,toFlatObject:yt,kindOf:ye,kindOfTest:q,endsWith:bt,toArray:wt,forEachEntry:Et,matchAll:St,isHTMLForm:Ot,hasOwnProperty:cr,hasOwnProp:cr,reduceDescriptors:lr,freezeMethods:Tt,toObjectSet:Pt,toCamelCase:Rt,noop:Ct,toFiniteNumber:kt,findKey:ur,global:X,isContextDefined:fr,ALPHABET:pr,generateString:Lt,isSpecCompliantForm:Nt,toJSONObject:jt,isAsyncFn:Ft,isThenable:Dt,setImmediate:hr,asap:Bt};function R(r,e,t,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}f.inherits(R,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:f.toJSONObject(this.config),code:this.code,status:this.status}}});var vr=R.prototype,mr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(r){mr[r]={value:r}}),Object.defineProperties(R,mr),Object.defineProperty(vr,"isAxiosError",{value:!0}),R.from=function(r,e,t,n,a,i){var o=Object.create(vr);return f.toFlatObject(r,o,function(u){return u!==Error.prototype},function(s){return s!=="isAxiosError"}),R.call(o,r.message,e,t,n,a),o.cause=r,o.name=r.name,i&&Object.assign(o,i),o};var xt=null;function Ue(r){return f.isPlainObject(r)||f.isArray(r)}function yr(r){return f.endsWith(r,"[]")?r.slice(0,-2):r}function br(r,e,t){return r?r.concat(e).map(function(a,i){return a=yr(a),!t&&i?"["+a+"]":a}).join(t?".":""):e}function Ut(r){return f.isArray(r)&&!r.some(Ue)}var It=f.toFlatObject(f,{},null,function(e){return/^is[A-Z]/.test(e)});function Se(r,e,t){if(!f.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=f.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,m){return!f.isUndefined(m[S])});var n=t.metaTokens,a=t.visitor||l,i=t.dots,o=t.indexes,s=t.Blob||typeof Blob!="undefined"&&Blob,u=s&&f.isSpecCompliantForm(e);if(!f.isFunction(a))throw new TypeError("visitor must be a function");function c(b){if(b===null)return"";if(f.isDate(b))return b.toISOString();if(!u&&f.isBlob(b))throw new R("Blob is not supported. Use a Buffer instead.");return f.isArrayBuffer(b)||f.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function l(b,S,m){var C=b;if(b&&!m&&G(b)==="object"){if(f.endsWith(S,"{}"))S=n?S:S.slice(0,-2),b=JSON.stringify(b);else if(f.isArray(b)&&Ut(b)||(f.isFileList(b)||f.endsWith(S,"[]"))&&(C=f.toArray(b)))return S=yr(S),C.forEach(function(T,N){!(f.isUndefined(T)||T===null)&&e.append(o===!0?br([S],N,i):o===null?S:S+"[]",c(T))}),!1}return Ue(b)?!0:(e.append(br(m,S,i),c(b)),!1)}var h=[],y=Object.assign(It,{defaultVisitor:l,convertValue:c,isVisitable:Ue});function E(b,S){if(!f.isUndefined(b)){if(h.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(b),f.forEach(b,function(C,A){var T=!(f.isUndefined(C)||C===null)&&a.call(e,C,f.isString(A)?A.trim():A,S,y);T===!0&&E(C,S?S.concat(A):[A])}),h.pop()}}if(!f.isObject(r))throw new TypeError("data must be an object");return E(r),e}function wr(r){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Ie(r,e){this._pairs=[],r&&Se(r,this,e)}var gr=Ie.prototype;gr.append=function(e,t){this._pairs.push([e,t])},gr.toString=function(e){var t=e?function(n){return e.call(this,n,wr)}:wr;return this._pairs.map(function(a){return t(a[0])+"="+t(a[1])},"").join("&")};function qt(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Er(r,e,t){if(!e)return r;var n=t&&t.encode||qt;f.isFunction(t)&&(t={serialize:t});var a=t&&t.serialize,i;if(a?i=a(e,t):i=f.isURLSearchParams(e)?e.toString():new Ie(e,t).toString(n),i){var o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}var Ht=(function(){function r(){he(this,r),this.handlers=[]}return ve(r,[{key:"use",value:function(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(t){this.handlers[t]&&(this.handlers[t]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(t){f.forEach(this.handlers,function(a){a!==null&&t(a)})}}]),r})(),Sr=Ht,Or={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mt=typeof URLSearchParams!="undefined"?URLSearchParams:Ie,_t=typeof FormData!="undefined"?FormData:null,zt=typeof Blob!="undefined"?Blob:null,$t={isBrowser:!0,classes:{URLSearchParams:Mt,FormData:_t,Blob:zt},protocols:["http","https","file","blob","url","data"]},qe=typeof window!="undefined"&&typeof document!="undefined",He=(typeof navigator=="undefined"?"undefined":G(navigator))==="object"&&navigator||void 0,Jt=qe&&(!He||["ReactNative","NativeScript","NS"].indexOf(He.product)<0),Gt=(function(){return typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function"})(),Kt=qe&&window.location.href||"http://localhost",Wt=Object.freeze({__proto__:null,hasBrowserEnv:qe,hasStandardBrowserWebWorkerEnv:Gt,hasStandardBrowserEnv:Jt,navigator:He,origin:Kt}),B=se(se({},Wt),$t);function Vt(r,e){return Se(r,new B.classes.URLSearchParams,Object.assign({visitor:function(n,a,i,o){return B.isNode&&f.isBuffer(n)?(this.append(a,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Xt(r){return f.matchAll(/\w+|\[(\w*)]/g,r).map(function(e){return e[0]==="[]"?"":e[1]||e[0]})}function Yt(r){var e={},t=Object.keys(r),n,a=t.length,i;for(n=0;n<a;n++)i=t[n],e[i]=r[i];return e}function Rr(r){function e(n,a,i,o){var s=n[o++];if(s==="__proto__")return!0;var u=Number.isFinite(+s),c=o>=n.length;if(s=!s&&f.isArray(i)?i.length:s,c)return f.hasOwnProp(i,s)?i[s]=[i[s],a]:i[s]=a,!u;(!i[s]||!f.isObject(i[s]))&&(i[s]=[]);var l=e(n,a,i[s],o);return l&&f.isArray(i[s])&&(i[s]=Yt(i[s])),!u}if(f.isFormData(r)&&f.isFunction(r.entries)){var t={};return f.forEachEntry(r,function(n,a){e(Xt(n),a,t,0)}),t}return null}function Qt(r,e,t){if(f.isString(r))try{return(e||JSON.parse)(r),f.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}var Me={transitional:Or,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n=t.getContentType()||"",a=n.indexOf("application/json")>-1,i=f.isObject(e);i&&f.isHTMLForm(e)&&(e=new FormData(e));var o=f.isFormData(e);if(o)return a?JSON.stringify(Rr(e)):e;if(f.isArrayBuffer(e)||f.isBuffer(e)||f.isStream(e)||f.isFile(e)||f.isBlob(e)||f.isReadableStream(e))return e;if(f.isArrayBufferView(e))return e.buffer;if(f.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();var s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Vt(e,this.formSerializer).toString();if((s=f.isFileList(e))||n.indexOf("multipart/form-data")>-1){var u=this.env&&this.env.FormData;return Se(s?{"files[]":e}:e,u&&new u,this.formSerializer)}}return i||a?(t.setContentType("application/json",!1),Qt(e)):e}],transformResponse:[function(e){var t=this.transitional||Me.transitional,n=t&&t.forcedJSONParsing,a=this.responseType==="json";if(f.isResponse(e)||f.isReadableStream(e))return e;if(e&&f.isString(e)&&(n&&!this.responseType||a)){var i=t&&t.silentJSONParsing,o=!i&&a;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?R.from(s,R.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:B.classes.FormData,Blob:B.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};f.forEach(["delete","get","head","post","put","patch"],function(r){Me.headers[r]={}});var _e=Me,Zt=f.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),en=(function(r){var e={},t,n,a;return r&&r.split(`
`).forEach(function(o){a=o.indexOf(":"),t=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!t||e[t]&&Zt[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e}),Ar=Symbol("internals");function ce(r){return r&&String(r).trim().toLowerCase()}function Oe(r){return r===!1||r==null?r:f.isArray(r)?r.map(Oe):String(r)}function rn(r){for(var e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;n=t.exec(r);)e[n[1]]=n[2];return e}var tn=function(e){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())};function ze(r,e,t,n,a){if(f.isFunction(n))return n.call(this,e,t);if(a&&(e=t),!!f.isString(e)){if(f.isString(n))return e.indexOf(n)!==-1;if(f.isRegExp(n))return n.test(e)}}function nn(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n})}function an(r,e){var t=f.toCamelCase(" "+e);["get","set","has"].forEach(function(n){Object.defineProperty(r,n+t,{value:function(i,o,s){return this[n].call(this,e,i,o,s)},configurable:!0})})}var Re=(function(r,e){function t(n){he(this,t),n&&this.set(n)}return ve(t,[{key:"set",value:function(a,i,o){var s=this;function u(S,m,C){var A=ce(m);if(!A)throw new Error("header name must be a non-empty string");var T=f.findKey(s,A);(!T||s[T]===void 0||C===!0||C===void 0&&s[T]!==!1)&&(s[T||m]=Oe(S))}var c=function(m,C){return f.forEach(m,function(A,T){return u(A,T,C)})};if(f.isPlainObject(a)||a instanceof this.constructor)c(a,i);else if(f.isString(a)&&(a=a.trim())&&!tn(a))c(en(a),i);else if(f.isHeaders(a)){var l=Vr(a.entries()),h;try{for(l.s();!(h=l.n()).done;){var y=K(h.value,2),E=y[0],b=y[1];u(b,E,o)}}catch(S){l.e(S)}finally{l.f()}}else a!=null&&u(i,a,o);return this}},{key:"get",value:function(a,i){if(a=ce(a),a){var o=f.findKey(this,a);if(o){var s=this[o];if(!i)return s;if(i===!0)return rn(s);if(f.isFunction(i))return i.call(this,s,o);if(f.isRegExp(i))return i.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(a,i){if(a=ce(a),a){var o=f.findKey(this,a);return!!(o&&this[o]!==void 0&&(!i||ze(this,this[o],o,i)))}return!1}},{key:"delete",value:function(a,i){var o=this,s=!1;function u(c){if(c=ce(c),c){var l=f.findKey(o,c);l&&(!i||ze(o,o[l],l,i))&&(delete o[l],s=!0)}}return f.isArray(a)?a.forEach(u):u(a),s}},{key:"clear",value:function(a){for(var i=Object.keys(this),o=i.length,s=!1;o--;){var u=i[o];(!a||ze(this,this[u],u,a,!0))&&(delete this[u],s=!0)}return s}},{key:"normalize",value:function(a){var i=this,o={};return f.forEach(this,function(s,u){var c=f.findKey(o,u);if(c){i[c]=Oe(s),delete i[u];return}var l=a?nn(u):String(u).trim();l!==u&&delete i[u],i[l]=Oe(s),o[l]=!0}),this}},{key:"concat",value:function(){for(var a,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(a=this.constructor).concat.apply(a,[this].concat(o))}},{key:"toJSON",value:function(a){var i=Object.create(null);return f.forEach(this,function(o,s){o!=null&&o!==!1&&(i[s]=a&&f.isArray(o)?o.join(", "):o)}),i}},{key:r,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map(function(a){var i=K(a,2),o=i[0],s=i[1];return o+": "+s}).join(`
`)}},{key:e,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(a){return a instanceof this?a:new this(a)}},{key:"concat",value:function(a){for(var i=new this(a),o=arguments.length,s=new Array(o>1?o-1:0),u=1;u<o;u++)s[u-1]=arguments[u];return s.forEach(function(c){return i.set(c)}),i}},{key:"accessor",value:function(a){var i=this[Ar]=this[Ar]={accessors:{}},o=i.accessors,s=this.prototype;function u(c){var l=ce(c);o[l]||(an(s,c),o[l]=!0)}return f.isArray(a)?a.forEach(u):u(a),this}}]),t})(Symbol.iterator,Symbol.toStringTag);Re.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),f.reduceDescriptors(Re.prototype,function(r,e){var t=r.value,n=e[0].toUpperCase()+e.slice(1);return{get:function(){return t},set:function(i){this[n]=i}}}),f.freezeMethods(Re);var H=Re;function $e(r,e){var t=this||_e,n=e||t,a=H.from(n.headers),i=n.data;return f.forEach(r,function(s){i=s.call(t,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function Tr(r){return!!(r&&r.__CANCEL__)}function ne(r,e,t){R.call(this,r==null?"canceled":r,R.ERR_CANCELED,e,t),this.name="CanceledError"}f.inherits(ne,R,{__CANCEL__:!0});function Pr(r,e,t){var n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new R("Request failed with status code "+t.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function on(r){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function sn(r,e){r=r||10;var t=new Array(r),n=new Array(r),a=0,i=0,o;return e=e!==void 0?e:1e3,function(u){var c=Date.now(),l=n[i];o||(o=c),t[a]=u,n[a]=c;for(var h=i,y=0;h!==a;)y+=t[h++],h=h%r;if(a=(a+1)%r,a===i&&(i=(i+1)%r),!(c-o<e)){var E=l&&c-l;return E?Math.round(y*1e3/E):void 0}}}function un(r,e){var t=0,n=1e3/e,a,i,o=function(l){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Date.now();t=h,a=null,i&&(clearTimeout(i),i=null),r.apply(null,l)},s=function(){for(var l=Date.now(),h=l-t,y=arguments.length,E=new Array(y),b=0;b<y;b++)E[b]=arguments[b];h>=n?o(E,l):(a=E,i||(i=setTimeout(function(){i=null,o(a)},n-h)))},u=function(){return a&&o(a)};return[s,u]}var Ae=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,a=0,i=sn(50,250);return un(function(o){var s=o.loaded,u=o.lengthComputable?o.total:void 0,c=s-a,l=i(c),h=s<=u;a=s;var y=rr({loaded:s,total:u,progress:u?s/u:void 0,bytes:c,rate:l||void 0,estimated:l&&u&&h?(u-s)/l:void 0,event:o,lengthComputable:u!=null},t?"download":"upload",!0);e(y)},n)},Cr=function(e,t){var n=e!=null;return[function(a){return t[0]({lengthComputable:n,total:e,loaded:a})},t[1]]},kr=function(e){return function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return f.asap(function(){return e.apply(void 0,n)})}},fn=B.hasStandardBrowserEnv?(function(r,e){return function(t){return t=new URL(t,B.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)}})(new URL(B.origin),B.navigator&&/(msie|trident)/i.test(B.navigator.userAgent)):function(){return!0},cn=B.hasStandardBrowserEnv?{write:function(e,t,n,a,i,o){var s=[e+"="+encodeURIComponent(t)];f.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),f.isString(a)&&s.push("path="+a),f.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ln(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function dn(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function Lr(r,e){return r&&!ln(e)?dn(r,e):e}var Nr=function(e){return e instanceof H?se({},e):e};function Y(r,e){e=e||{};var t={};function n(c,l,h,y){return f.isPlainObject(c)&&f.isPlainObject(l)?f.merge.call({caseless:y},c,l):f.isPlainObject(l)?f.merge({},l):f.isArray(l)?l.slice():l}function a(c,l,h,y){if(f.isUndefined(l)){if(!f.isUndefined(c))return n(void 0,c,h,y)}else return n(c,l,h,y)}function i(c,l){if(!f.isUndefined(l))return n(void 0,l)}function o(c,l){if(f.isUndefined(l)){if(!f.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function s(c,l,h){if(h in e)return n(c,l);if(h in r)return n(void 0,c)}var u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:function(l,h,y){return a(Nr(l),Nr(h),y,!0)}};return f.forEach(Object.keys(Object.assign({},r,e)),function(l){var h=u[l]||a,y=h(r[l],e[l],l);f.isUndefined(y)&&h!==s||(t[l]=y)}),t}var jr=(function(r){var e=Y({},r),t=e.data,n=e.withXSRFToken,a=e.xsrfHeaderName,i=e.xsrfCookieName,o=e.headers,s=e.auth;e.headers=o=H.from(o),e.url=Er(Lr(e.baseURL,e.url),r.params,r.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));var u;if(f.isFormData(t)){if(B.hasStandardBrowserEnv||B.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){var c=u?u.split(";").map(function(b){return b.trim()}).filter(Boolean):[],l=Jr(c),h=l[0],y=l.slice(1);o.setContentType([h||"multipart/form-data"].concat(Gr(y)).join("; "))}}if(B.hasStandardBrowserEnv&&(n&&f.isFunction(n)&&(n=n(e)),n||n!==!1&&fn(e.url))){var E=a&&i&&cn.read(i);E&&o.set(a,E)}return e}),pn=typeof XMLHttpRequest!="undefined",hn=pn&&function(r){return new Promise(function(t,n){var a=jr(r),i=a.data,o=H.from(a.headers).normalize(),s=a.responseType,u=a.onUploadProgress,c=a.onDownloadProgress,l,h,y,E,b;function S(){E&&E(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(l),a.signal&&a.signal.removeEventListener("abort",l)}var m=new XMLHttpRequest;m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout;function C(){if(m){var F=H.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),D=!s||s==="text"||s==="json"?m.responseText:m.response,I={data:D,status:m.status,statusText:m.statusText,headers:F,config:r,request:m};Pr(function(W){t(W),S()},function(W){n(W),S()},I),m=null}}if("onloadend"in m?m.onloadend=C:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(C)},m.onabort=function(){m&&(n(new R("Request aborted",R.ECONNABORTED,r,m)),m=null)},m.onerror=function(){n(new R("Network Error",R.ERR_NETWORK,r,m)),m=null},m.ontimeout=function(){var D=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",I=a.transitional||Or;a.timeoutErrorMessage&&(D=a.timeoutErrorMessage),n(new R(D,I.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,r,m)),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&f.forEach(o.toJSON(),function(D,I){m.setRequestHeader(I,D)}),f.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),s&&s!=="json"&&(m.responseType=a.responseType),c){var A=Ae(c,!0),T=K(A,2);y=T[0],b=T[1],m.addEventListener("progress",y)}if(u&&m.upload){var N=Ae(u),M=K(N,2);h=M[0],E=M[1],m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",E)}(a.cancelToken||a.signal)&&(l=function(D){m&&(n(!D||D.type?new ne(null,r,m):D),m.abort(),m=null)},a.cancelToken&&a.cancelToken.subscribe(l),a.signal&&(a.signal.aborted?l():a.signal.addEventListener("abort",l)));var _=on(a.url);if(_&&B.protocols.indexOf(_)===-1){n(new R("Unsupported protocol "+_+":",R.ERR_BAD_REQUEST,r));return}m.send(i||null)})},vn=function(e,t){var n=e=e?e.filter(Boolean):[],a=n.length;if(t||a){var i=new AbortController,o,s=function(y){if(!o){o=!0,c();var E=y instanceof Error?y:this.reason;i.abort(E instanceof R?E:new ne(E instanceof Error?E.message:E))}},u=t&&setTimeout(function(){u=null,s(new R("timeout ".concat(t," of ms exceeded"),R.ETIMEDOUT))},t),c=function(){e&&(u&&clearTimeout(u),u=null,e.forEach(function(y){y.unsubscribe?y.unsubscribe(s):y.removeEventListener("abort",s)}),e=null)};e.forEach(function(h){return h.addEventListener("abort",s)});var l=i.signal;return l.unsubscribe=function(){return f.asap(c)},l}},mn=vn,yn=L().mark(function r(e,t){var n,a,i;return L().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(n=e.byteLength,!(!t||n<t)){s.next=5;break}return s.next=4,e;case 4:return s.abrupt("return");case 5:a=0;case 6:if(!(a<n)){s.next=13;break}return i=a+t,s.next=10,e.slice(a,i);case 10:a=i,s.next=6;break;case 13:case"end":return s.stop()}},r)}),bn=(function(){var r=Qe(L().mark(function e(t,n){var a,i,o,s,u,c;return L().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:a=!1,i=!1,h.prev=2,s=je(wn(t));case 4:return h.next=6,pe(s.next());case 6:if(!(a=!(u=h.sent).done)){h.next=12;break}return c=u.value,h.delegateYield(Ve(je(yn(c,n))),"t0",9);case 9:a=!1,h.next=4;break;case 12:h.next=18;break;case 14:h.prev=14,h.t1=h.catch(2),i=!0,o=h.t1;case 18:if(h.prev=18,h.prev=19,!(a&&s.return!=null)){h.next=23;break}return h.next=23,pe(s.return());case 23:if(h.prev=23,!i){h.next=26;break}throw o;case 26:return h.finish(23);case 27:return h.finish(18);case 28:case"end":return h.stop()}},e,null,[[2,14,18,28],[19,,23,27]])}));return function(t,n){return r.apply(this,arguments)}})(),wn=(function(){var r=Qe(L().mark(function e(t){var n,a,i,o;return L().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!t[Symbol.asyncIterator]){u.next=3;break}return u.delegateYield(Ve(je(t)),"t0",2);case 2:return u.abrupt("return");case 3:n=t.getReader(),u.prev=4;case 5:return u.next=7,pe(n.read());case 7:if(a=u.sent,i=a.done,o=a.value,!i){u.next=12;break}return u.abrupt("break",16);case 12:return u.next=14,o;case 14:u.next=5;break;case 16:return u.prev=16,u.next=19,pe(n.cancel());case 19:return u.finish(16);case 20:case"end":return u.stop()}},e,null,[[4,,16,20]])}));return function(t){return r.apply(this,arguments)}})(),Fr=function(e,t,n,a){var i=bn(e,t),o=0,s,u=function(l){s||(s=!0,a&&a(l))};return new ReadableStream({pull:function(l){return re(L().mark(function h(){var y,E,b,S,m;return L().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.prev=0,A.next=3,i.next();case 3:if(y=A.sent,E=y.done,b=y.value,!E){A.next=10;break}return u(),l.close(),A.abrupt("return");case 10:S=b.byteLength,n&&(m=o+=S,n(m)),l.enqueue(new Uint8Array(b)),A.next=19;break;case 15:throw A.prev=15,A.t0=A.catch(0),u(A.t0),A.t0;case 19:case"end":return A.stop()}},h,null,[[0,15]])}))()},cancel:function(l){return u(l),i.return()}},{highWaterMark:2})},Te=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Dr=Te&&typeof ReadableStream=="function",gn=Te&&(typeof TextEncoder=="function"?(function(r){return function(e){return r.encode(e)}})(new TextEncoder):(function(){var r=re(L().mark(function e(t){return L().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.t0=Uint8Array,a.next=3,new Response(t).arrayBuffer();case 3:return a.t1=a.sent,a.abrupt("return",new a.t0(a.t1));case 5:case"end":return a.stop()}},e)}));return function(e){return r.apply(this,arguments)}})()),Br=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return!!e.apply(void 0,n)}catch(i){return!1}},En=Dr&&Br(function(){var r=!1,e=new Request(B.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!e}),xr=64*1024,Je=Dr&&Br(function(){return f.isReadableStream(new Response("").body)}),Pe={stream:Je&&function(r){return r.body}};Te&&(function(r){["text","arrayBuffer","blob","formData","stream"].forEach(function(e){!Pe[e]&&(Pe[e]=f.isFunction(r[e])?function(t){return t[e]()}:function(t,n){throw new R("Response type '".concat(e,"' is not supported"),R.ERR_NOT_SUPPORT,n)})})})(new Response);var Sn=(function(){var r=re(L().mark(function e(t){var n;return L().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(t!=null){i.next=2;break}return i.abrupt("return",0);case 2:if(!f.isBlob(t)){i.next=4;break}return i.abrupt("return",t.size);case 4:if(!f.isSpecCompliantForm(t)){i.next=9;break}return n=new Request(B.origin,{method:"POST",body:t}),i.next=8,n.arrayBuffer();case 8:return i.abrupt("return",i.sent.byteLength);case 9:if(!(f.isArrayBufferView(t)||f.isArrayBuffer(t))){i.next=11;break}return i.abrupt("return",t.byteLength);case 11:if(f.isURLSearchParams(t)&&(t=t+""),!f.isString(t)){i.next=16;break}return i.next=15,gn(t);case 15:return i.abrupt("return",i.sent.byteLength);case 16:case"end":return i.stop()}},e)}));return function(t){return r.apply(this,arguments)}})(),On=(function(){var r=re(L().mark(function e(t,n){var a;return L().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return a=f.toFiniteNumber(t.getContentLength()),o.abrupt("return",a==null?Sn(n):a);case 2:case"end":return o.stop()}},e)}));return function(t,n){return r.apply(this,arguments)}})(),Rn=Te&&(function(){var r=re(L().mark(function e(t){var n,a,i,o,s,u,c,l,h,y,E,b,S,m,C,A,T,N,M,_,F,D,I,ae,W,z,Q,Z,ie,p,d,v,O,w;return L().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(n=jr(t),a=n.url,i=n.method,o=n.data,s=n.signal,u=n.cancelToken,c=n.timeout,l=n.onDownloadProgress,h=n.onUploadProgress,y=n.responseType,E=n.headers,b=n.withCredentials,S=b===void 0?"same-origin":b,m=n.fetchOptions,y=y?(y+"").toLowerCase():"text",C=mn([s,u&&u.toAbortSignal()],c),T=C&&C.unsubscribe&&function(){C.unsubscribe()},g.prev=4,g.t0=h&&En&&i!=="get"&&i!=="head",!g.t0){g.next=11;break}return g.next=9,On(E,o);case 9:g.t1=N=g.sent,g.t0=g.t1!==0;case 11:if(!g.t0){g.next=15;break}M=new Request(a,{method:"POST",body:o,duplex:"half"}),f.isFormData(o)&&(_=M.headers.get("content-type"))&&E.setContentType(_),M.body&&(F=Cr(N,Ae(kr(h))),D=K(F,2),I=D[0],ae=D[1],o=Fr(M.body,xr,I,ae));case 15:return f.isString(S)||(S=S?"include":"omit"),W="credentials"in Request.prototype,A=new Request(a,se(se({},m),{},{signal:C,method:i.toUpperCase(),headers:E.normalize().toJSON(),body:o,duplex:"half",credentials:W?S:void 0})),g.next=20,fetch(A);case 20:return z=g.sent,Q=Je&&(y==="stream"||y==="response"),Je&&(l||Q&&T)&&(Z={},["status","statusText","headers"].forEach(function(j){Z[j]=z[j]}),ie=f.toFiniteNumber(z.headers.get("content-length")),p=l&&Cr(ie,Ae(kr(l),!0))||[],d=K(p,2),v=d[0],O=d[1],z=new Response(Fr(z.body,xr,v,function(){O&&O(),T&&T()}),Z)),y=y||"text",g.next=26,Pe[f.findKey(Pe,y)||"text"](z,t);case 26:return w=g.sent,!Q&&T&&T(),g.next=30,new Promise(function(j,x){Pr(j,x,{data:w,headers:H.from(z.headers),status:z.status,statusText:z.statusText,config:t,request:A})});case 30:return g.abrupt("return",g.sent);case 33:if(g.prev=33,g.t2=g.catch(4),T&&T(),!(g.t2&&g.t2.name==="TypeError"&&/fetch/i.test(g.t2.message))){g.next=38;break}throw Object.assign(new R("Network Error",R.ERR_NETWORK,t,A),{cause:g.t2.cause||g.t2});case 38:throw R.from(g.t2,g.t2&&g.t2.code,t,A);case 39:case"end":return g.stop()}},e,null,[[4,33]])}));return function(e){return r.apply(this,arguments)}})(),Ge={http:xt,xhr:hn,fetch:Rn};f.forEach(Ge,function(r,e){if(r){try{Object.defineProperty(r,"name",{value:e})}catch(t){}Object.defineProperty(r,"adapterName",{value:e})}});var Ur=function(e){return"- ".concat(e)},An=function(e){return f.isFunction(e)||e===null||e===!1},Ir={getAdapter:function(e){e=f.isArray(e)?e:[e];for(var t=e,n=t.length,a,i,o={},s=0;s<n;s++){a=e[s];var u=void 0;if(i=a,!An(a)&&(i=Ge[(u=String(a)).toLowerCase()],i===void 0))throw new R("Unknown adapter '".concat(u,"'"));if(i)break;o[u||"#"+s]=i}if(!i){var c=Object.entries(o).map(function(h){var y=K(h,2),E=y[0],b=y[1];return"adapter ".concat(E," ")+(b===!1?"is not supported by the environment":"is not available in the build")}),l=n?c.length>1?`since :
`+c.map(Ur).join(`
`):" "+Ur(c[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:Ge};function Ke(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new ne(null,r)}function qr(r){Ke(r),r.headers=H.from(r.headers),r.data=$e.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1);var e=Ir.getAdapter(r.adapter||_e.adapter);return e(r).then(function(n){return Ke(r),n.data=$e.call(r,r.transformResponse,n),n.headers=H.from(n.headers),n},function(n){return Tr(n)||(Ke(r),n&&n.response&&(n.response.data=$e.call(r,r.transformResponse,n.response),n.response.headers=H.from(n.response.headers))),Promise.reject(n)})}var Hr="1.7.9",Ce={};["object","boolean","number","function","string","symbol"].forEach(function(r,e){Ce[r]=function(n){return G(n)===r||"a"+(e<1?"n ":" ")+r}});var Mr={};Ce.transitional=function(e,t,n){function a(i,o){return"[Axios v"+Hr+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return function(i,o,s){if(e===!1)throw new R(a(o," has been removed"+(t?" in "+t:"")),R.ERR_DEPRECATED);return t&&!Mr[o]&&(Mr[o]=!0,console.warn(a(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}},Ce.spelling=function(e){return function(t,n){return console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0}};function Tn(r,e,t){if(G(r)!=="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(r),a=n.length;a-- >0;){var i=n[a],o=e[i];if(o){var s=r[i],u=s===void 0||o(s,i,r);if(u!==!0)throw new R("option "+i+" must be "+u,R.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new R("Unknown option "+i,R.ERR_BAD_OPTION)}}var ke={assertOptions:Tn,validators:Ce},$=ke.validators,Le=(function(){function r(e){he(this,r),this.defaults=e,this.interceptors={request:new Sr,response:new Sr}}return ve(r,[{key:"request",value:(function(){var e=re(L().mark(function n(a,i){var o,s;return L().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,this._request(a,i);case 3:return c.abrupt("return",c.sent);case 6:if(c.prev=6,c.t0=c.catch(0),c.t0 instanceof Error){o={},Error.captureStackTrace?Error.captureStackTrace(o):o=new Error,s=o.stack?o.stack.replace(/^.+\n/,""):"";try{c.t0.stack?s&&!String(c.t0.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(c.t0.stack+=`
`+s):c.t0.stack=s}catch(l){}}throw c.t0;case 10:case"end":return c.stop()}},n,this,[[0,6]])}));function t(n,a){return e.apply(this,arguments)}return t})()},{key:"_request",value:function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Y(this.defaults,n);var a=n,i=a.transitional,o=a.paramsSerializer,s=a.headers;i!==void 0&&ke.assertOptions(i,{silentJSONParsing:$.transitional($.boolean),forcedJSONParsing:$.transitional($.boolean),clarifyTimeoutError:$.transitional($.boolean)},!1),o!=null&&(f.isFunction(o)?n.paramsSerializer={serialize:o}:ke.assertOptions(o,{encode:$.function,serialize:$.function},!0)),ke.assertOptions(n,{baseUrl:$.spelling("baseURL"),withXsrfToken:$.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();var u=s&&f.merge(s.common,s[n.method]);s&&f.forEach(["delete","get","head","post","put","patch","common"],function(T){delete s[T]}),n.headers=H.concat(u,s);var c=[],l=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(n)===!1||(l=l&&N.synchronous,c.unshift(N.fulfilled,N.rejected))});var h=[];this.interceptors.response.forEach(function(N){h.push(N.fulfilled,N.rejected)});var y,E=0,b;if(!l){var S=[qr.bind(this),void 0];for(S.unshift.apply(S,c),S.push.apply(S,h),b=S.length,y=Promise.resolve(n);E<b;)y=y.then(S[E++],S[E++]);return y}b=c.length;var m=n;for(E=0;E<b;){var C=c[E++],A=c[E++];try{m=C(m)}catch(T){A.call(this,T);break}}try{y=qr.call(this,m)}catch(T){return Promise.reject(T)}for(E=0,b=h.length;E<b;)y=y.then(h[E++],h[E++]);return y}},{key:"getUri",value:function(t){t=Y(this.defaults,t);var n=Lr(t.baseURL,t.url);return Er(n,t.params,t.paramsSerializer)}}]),r})();f.forEach(["delete","get","head","options"],function(e){Le.prototype[e]=function(t,n){return this.request(Y(n||{},{method:e,url:t,data:(n||{}).data}))}}),f.forEach(["post","put","patch"],function(e){function t(n){return function(i,o,s){return this.request(Y(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Le.prototype[e]=t(),Le.prototype[e+"Form"]=t(!0)});var Ne=Le,Pn=(function(){function r(e){if(he(this,r),typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var n=this;this.promise.then(function(a){if(n._listeners){for(var i=n._listeners.length;i-- >0;)n._listeners[i](a);n._listeners=null}}),this.promise.then=function(a){var i,o=new Promise(function(s){n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},e(function(i,o,s){n.reason||(n.reason=new ne(i,o,s),t(n.reason))})}return ve(r,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}},{key:"unsubscribe",value:function(t){if(this._listeners){var n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}}},{key:"toAbortSignal",value:function(){var t=this,n=new AbortController,a=function(o){n.abort(o)};return this.subscribe(a),n.signal.unsubscribe=function(){return t.unsubscribe(a)},n.signal}}],[{key:"source",value:function(){var t,n=new r(function(i){t=i});return{token:n,cancel:t}}}]),r})(),Cn=Pn;function kn(r){return function(t){return r.apply(null,t)}}function Ln(r){return f.isObject(r)&&r.isAxiosError===!0}var We={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(We).forEach(function(r){var e=K(r,2),t=e[0],n=e[1];We[n]=t});var Nn=We;function _r(r){var e=new Ne(r),t=ir(Ne.prototype.request,e);return f.extend(t,Ne.prototype,e,{allOwnKeys:!0}),f.extend(t,e,null,{allOwnKeys:!0}),t.create=function(a){return _r(Y(r,a))},t}var k=_r(_e);return k.Axios=Ne,k.CanceledError=ne,k.CancelToken=Cn,k.isCancel=Tr,k.VERSION=Hr,k.toFormData=Se,k.AxiosError=R,k.Cancel=k.CanceledError,k.all=function(e){return Promise.all(e)},k.spread=kn,k.isAxiosError=Ln,k.mergeConfig=Y,k.AxiosHeaders=H,k.formToJSON=function(r){return Rr(f.isHTMLForm(r)?new FormData(r):r)},k.getAdapter=Ir.getAdapter,k.HttpStatusCode=Nn,k.default=k,k}));