axios.js 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322
  1. import {
  2. __commonJS,
  3. init_define_APP_INFO
  4. } from "./chunk-XY75H3MP.js";
  5. // node_modules/axios/lib/helpers/bind.js
  6. var require_bind = __commonJS({
  7. "node_modules/axios/lib/helpers/bind.js"(exports, module) {
  8. "use strict";
  9. init_define_APP_INFO();
  10. module.exports = function bind(fn, thisArg) {
  11. return function wrap() {
  12. var args = new Array(arguments.length);
  13. for (var i = 0; i < args.length; i++) {
  14. args[i] = arguments[i];
  15. }
  16. return fn.apply(thisArg, args);
  17. };
  18. };
  19. }
  20. });
  21. // node_modules/axios/lib/utils.js
  22. var require_utils = __commonJS({
  23. "node_modules/axios/lib/utils.js"(exports, module) {
  24. "use strict";
  25. init_define_APP_INFO();
  26. var bind = require_bind();
  27. var toString = Object.prototype.toString;
  28. function isArray(val) {
  29. return toString.call(val) === "[object Array]";
  30. }
  31. function isUndefined(val) {
  32. return typeof val === "undefined";
  33. }
  34. function isBuffer(val) {
  35. return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === "function" && val.constructor.isBuffer(val);
  36. }
  37. function isArrayBuffer(val) {
  38. return toString.call(val) === "[object ArrayBuffer]";
  39. }
  40. function isFormData(val) {
  41. return typeof FormData !== "undefined" && val instanceof FormData;
  42. }
  43. function isArrayBufferView(val) {
  44. var result;
  45. if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
  46. result = ArrayBuffer.isView(val);
  47. } else {
  48. result = val && val.buffer && val.buffer instanceof ArrayBuffer;
  49. }
  50. return result;
  51. }
  52. function isString(val) {
  53. return typeof val === "string";
  54. }
  55. function isNumber(val) {
  56. return typeof val === "number";
  57. }
  58. function isObject(val) {
  59. return val !== null && typeof val === "object";
  60. }
  61. function isPlainObject(val) {
  62. if (toString.call(val) !== "[object Object]") {
  63. return false;
  64. }
  65. var prototype = Object.getPrototypeOf(val);
  66. return prototype === null || prototype === Object.prototype;
  67. }
  68. function isDate(val) {
  69. return toString.call(val) === "[object Date]";
  70. }
  71. function isFile(val) {
  72. return toString.call(val) === "[object File]";
  73. }
  74. function isBlob(val) {
  75. return toString.call(val) === "[object Blob]";
  76. }
  77. function isFunction(val) {
  78. return toString.call(val) === "[object Function]";
  79. }
  80. function isStream(val) {
  81. return isObject(val) && isFunction(val.pipe);
  82. }
  83. function isURLSearchParams(val) {
  84. return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
  85. }
  86. function trim(str) {
  87. return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, "");
  88. }
  89. function isStandardBrowserEnv() {
  90. if (typeof navigator !== "undefined" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS")) {
  91. return false;
  92. }
  93. return typeof window !== "undefined" && typeof document !== "undefined";
  94. }
  95. function forEach(obj, fn) {
  96. if (obj === null || typeof obj === "undefined") {
  97. return;
  98. }
  99. if (typeof obj !== "object") {
  100. obj = [obj];
  101. }
  102. if (isArray(obj)) {
  103. for (var i = 0, l = obj.length; i < l; i++) {
  104. fn.call(null, obj[i], i, obj);
  105. }
  106. } else {
  107. for (var key in obj) {
  108. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  109. fn.call(null, obj[key], key, obj);
  110. }
  111. }
  112. }
  113. }
  114. function merge() {
  115. var result = {};
  116. function assignValue(val, key) {
  117. if (isPlainObject(result[key]) && isPlainObject(val)) {
  118. result[key] = merge(result[key], val);
  119. } else if (isPlainObject(val)) {
  120. result[key] = merge({}, val);
  121. } else if (isArray(val)) {
  122. result[key] = val.slice();
  123. } else {
  124. result[key] = val;
  125. }
  126. }
  127. for (var i = 0, l = arguments.length; i < l; i++) {
  128. forEach(arguments[i], assignValue);
  129. }
  130. return result;
  131. }
  132. function extend(a, b, thisArg) {
  133. forEach(b, function assignValue(val, key) {
  134. if (thisArg && typeof val === "function") {
  135. a[key] = bind(val, thisArg);
  136. } else {
  137. a[key] = val;
  138. }
  139. });
  140. return a;
  141. }
  142. function stripBOM(content) {
  143. if (content.charCodeAt(0) === 65279) {
  144. content = content.slice(1);
  145. }
  146. return content;
  147. }
  148. module.exports = {
  149. isArray,
  150. isArrayBuffer,
  151. isBuffer,
  152. isFormData,
  153. isArrayBufferView,
  154. isString,
  155. isNumber,
  156. isObject,
  157. isPlainObject,
  158. isUndefined,
  159. isDate,
  160. isFile,
  161. isBlob,
  162. isFunction,
  163. isStream,
  164. isURLSearchParams,
  165. isStandardBrowserEnv,
  166. forEach,
  167. merge,
  168. extend,
  169. trim,
  170. stripBOM
  171. };
  172. }
  173. });
  174. // node_modules/axios/lib/helpers/buildURL.js
  175. var require_buildURL = __commonJS({
  176. "node_modules/axios/lib/helpers/buildURL.js"(exports, module) {
  177. "use strict";
  178. init_define_APP_INFO();
  179. var utils = require_utils();
  180. function encode(val) {
  181. return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
  182. }
  183. module.exports = function buildURL(url, params, paramsSerializer) {
  184. if (!params) {
  185. return url;
  186. }
  187. var serializedParams;
  188. if (paramsSerializer) {
  189. serializedParams = paramsSerializer(params);
  190. } else if (utils.isURLSearchParams(params)) {
  191. serializedParams = params.toString();
  192. } else {
  193. var parts = [];
  194. utils.forEach(params, function serialize(val, key) {
  195. if (val === null || typeof val === "undefined") {
  196. return;
  197. }
  198. if (utils.isArray(val)) {
  199. key = key + "[]";
  200. } else {
  201. val = [val];
  202. }
  203. utils.forEach(val, function parseValue(v) {
  204. if (utils.isDate(v)) {
  205. v = v.toISOString();
  206. } else if (utils.isObject(v)) {
  207. v = JSON.stringify(v);
  208. }
  209. parts.push(encode(key) + "=" + encode(v));
  210. });
  211. });
  212. serializedParams = parts.join("&");
  213. }
  214. if (serializedParams) {
  215. var hashmarkIndex = url.indexOf("#");
  216. if (hashmarkIndex !== -1) {
  217. url = url.slice(0, hashmarkIndex);
  218. }
  219. url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
  220. }
  221. return url;
  222. };
  223. }
  224. });
  225. // node_modules/axios/lib/core/InterceptorManager.js
  226. var require_InterceptorManager = __commonJS({
  227. "node_modules/axios/lib/core/InterceptorManager.js"(exports, module) {
  228. "use strict";
  229. init_define_APP_INFO();
  230. var utils = require_utils();
  231. function InterceptorManager() {
  232. this.handlers = [];
  233. }
  234. InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
  235. this.handlers.push({
  236. fulfilled,
  237. rejected,
  238. synchronous: options ? options.synchronous : false,
  239. runWhen: options ? options.runWhen : null
  240. });
  241. return this.handlers.length - 1;
  242. };
  243. InterceptorManager.prototype.eject = function eject(id) {
  244. if (this.handlers[id]) {
  245. this.handlers[id] = null;
  246. }
  247. };
  248. InterceptorManager.prototype.forEach = function forEach(fn) {
  249. utils.forEach(this.handlers, function forEachHandler(h) {
  250. if (h !== null) {
  251. fn(h);
  252. }
  253. });
  254. };
  255. module.exports = InterceptorManager;
  256. }
  257. });
  258. // node_modules/axios/lib/helpers/normalizeHeaderName.js
  259. var require_normalizeHeaderName = __commonJS({
  260. "node_modules/axios/lib/helpers/normalizeHeaderName.js"(exports, module) {
  261. "use strict";
  262. init_define_APP_INFO();
  263. var utils = require_utils();
  264. module.exports = function normalizeHeaderName(headers, normalizedName) {
  265. utils.forEach(headers, function processHeader(value, name) {
  266. if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
  267. headers[normalizedName] = value;
  268. delete headers[name];
  269. }
  270. });
  271. };
  272. }
  273. });
  274. // node_modules/axios/lib/core/enhanceError.js
  275. var require_enhanceError = __commonJS({
  276. "node_modules/axios/lib/core/enhanceError.js"(exports, module) {
  277. "use strict";
  278. init_define_APP_INFO();
  279. module.exports = function enhanceError(error, config, code, request, response) {
  280. error.config = config;
  281. if (code) {
  282. error.code = code;
  283. }
  284. error.request = request;
  285. error.response = response;
  286. error.isAxiosError = true;
  287. error.toJSON = function toJSON() {
  288. return {
  289. message: this.message,
  290. name: this.name,
  291. description: this.description,
  292. number: this.number,
  293. fileName: this.fileName,
  294. lineNumber: this.lineNumber,
  295. columnNumber: this.columnNumber,
  296. stack: this.stack,
  297. config: this.config,
  298. code: this.code,
  299. status: this.response && this.response.status ? this.response.status : null
  300. };
  301. };
  302. return error;
  303. };
  304. }
  305. });
  306. // node_modules/axios/lib/core/createError.js
  307. var require_createError = __commonJS({
  308. "node_modules/axios/lib/core/createError.js"(exports, module) {
  309. "use strict";
  310. init_define_APP_INFO();
  311. var enhanceError = require_enhanceError();
  312. module.exports = function createError(message, config, code, request, response) {
  313. var error = new Error(message);
  314. return enhanceError(error, config, code, request, response);
  315. };
  316. }
  317. });
  318. // node_modules/axios/lib/core/settle.js
  319. var require_settle = __commonJS({
  320. "node_modules/axios/lib/core/settle.js"(exports, module) {
  321. "use strict";
  322. init_define_APP_INFO();
  323. var createError = require_createError();
  324. module.exports = function settle(resolve, reject, response) {
  325. var validateStatus = response.config.validateStatus;
  326. if (!response.status || !validateStatus || validateStatus(response.status)) {
  327. resolve(response);
  328. } else {
  329. reject(createError(
  330. "Request failed with status code " + response.status,
  331. response.config,
  332. null,
  333. response.request,
  334. response
  335. ));
  336. }
  337. };
  338. }
  339. });
  340. // node_modules/axios/lib/helpers/cookies.js
  341. var require_cookies = __commonJS({
  342. "node_modules/axios/lib/helpers/cookies.js"(exports, module) {
  343. "use strict";
  344. init_define_APP_INFO();
  345. var utils = require_utils();
  346. module.exports = utils.isStandardBrowserEnv() ? function standardBrowserEnv() {
  347. return {
  348. write: function write(name, value, expires, path, domain, secure) {
  349. var cookie = [];
  350. cookie.push(name + "=" + encodeURIComponent(value));
  351. if (utils.isNumber(expires)) {
  352. cookie.push("expires=" + new Date(expires).toGMTString());
  353. }
  354. if (utils.isString(path)) {
  355. cookie.push("path=" + path);
  356. }
  357. if (utils.isString(domain)) {
  358. cookie.push("domain=" + domain);
  359. }
  360. if (secure === true) {
  361. cookie.push("secure");
  362. }
  363. document.cookie = cookie.join("; ");
  364. },
  365. read: function read(name) {
  366. var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
  367. return match ? decodeURIComponent(match[3]) : null;
  368. },
  369. remove: function remove(name) {
  370. this.write(name, "", Date.now() - 864e5);
  371. }
  372. };
  373. }() : function nonStandardBrowserEnv() {
  374. return {
  375. write: function write() {
  376. },
  377. read: function read() {
  378. return null;
  379. },
  380. remove: function remove() {
  381. }
  382. };
  383. }();
  384. }
  385. });
  386. // node_modules/axios/lib/helpers/isAbsoluteURL.js
  387. var require_isAbsoluteURL = __commonJS({
  388. "node_modules/axios/lib/helpers/isAbsoluteURL.js"(exports, module) {
  389. "use strict";
  390. init_define_APP_INFO();
  391. module.exports = function isAbsoluteURL(url) {
  392. return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
  393. };
  394. }
  395. });
  396. // node_modules/axios/lib/helpers/combineURLs.js
  397. var require_combineURLs = __commonJS({
  398. "node_modules/axios/lib/helpers/combineURLs.js"(exports, module) {
  399. "use strict";
  400. init_define_APP_INFO();
  401. module.exports = function combineURLs(baseURL, relativeURL) {
  402. return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
  403. };
  404. }
  405. });
  406. // node_modules/axios/lib/core/buildFullPath.js
  407. var require_buildFullPath = __commonJS({
  408. "node_modules/axios/lib/core/buildFullPath.js"(exports, module) {
  409. "use strict";
  410. init_define_APP_INFO();
  411. var isAbsoluteURL = require_isAbsoluteURL();
  412. var combineURLs = require_combineURLs();
  413. module.exports = function buildFullPath(baseURL, requestedURL) {
  414. if (baseURL && !isAbsoluteURL(requestedURL)) {
  415. return combineURLs(baseURL, requestedURL);
  416. }
  417. return requestedURL;
  418. };
  419. }
  420. });
  421. // node_modules/axios/lib/helpers/parseHeaders.js
  422. var require_parseHeaders = __commonJS({
  423. "node_modules/axios/lib/helpers/parseHeaders.js"(exports, module) {
  424. "use strict";
  425. init_define_APP_INFO();
  426. var utils = require_utils();
  427. var ignoreDuplicateOf = [
  428. "age",
  429. "authorization",
  430. "content-length",
  431. "content-type",
  432. "etag",
  433. "expires",
  434. "from",
  435. "host",
  436. "if-modified-since",
  437. "if-unmodified-since",
  438. "last-modified",
  439. "location",
  440. "max-forwards",
  441. "proxy-authorization",
  442. "referer",
  443. "retry-after",
  444. "user-agent"
  445. ];
  446. module.exports = function parseHeaders(headers) {
  447. var parsed = {};
  448. var key;
  449. var val;
  450. var i;
  451. if (!headers) {
  452. return parsed;
  453. }
  454. utils.forEach(headers.split("\n"), function parser(line) {
  455. i = line.indexOf(":");
  456. key = utils.trim(line.substr(0, i)).toLowerCase();
  457. val = utils.trim(line.substr(i + 1));
  458. if (key) {
  459. if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
  460. return;
  461. }
  462. if (key === "set-cookie") {
  463. parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
  464. } else {
  465. parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
  466. }
  467. }
  468. });
  469. return parsed;
  470. };
  471. }
  472. });
  473. // node_modules/axios/lib/helpers/isURLSameOrigin.js
  474. var require_isURLSameOrigin = __commonJS({
  475. "node_modules/axios/lib/helpers/isURLSameOrigin.js"(exports, module) {
  476. "use strict";
  477. init_define_APP_INFO();
  478. var utils = require_utils();
  479. module.exports = utils.isStandardBrowserEnv() ? function standardBrowserEnv() {
  480. var msie = /(msie|trident)/i.test(navigator.userAgent);
  481. var urlParsingNode = document.createElement("a");
  482. var originURL;
  483. function resolveURL(url) {
  484. var href = url;
  485. if (msie) {
  486. urlParsingNode.setAttribute("href", href);
  487. href = urlParsingNode.href;
  488. }
  489. urlParsingNode.setAttribute("href", href);
  490. return {
  491. href: urlParsingNode.href,
  492. protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
  493. host: urlParsingNode.host,
  494. search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
  495. hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
  496. hostname: urlParsingNode.hostname,
  497. port: urlParsingNode.port,
  498. pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
  499. };
  500. }
  501. originURL = resolveURL(window.location.href);
  502. return function isURLSameOrigin(requestURL) {
  503. var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
  504. return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
  505. };
  506. }() : function nonStandardBrowserEnv() {
  507. return function isURLSameOrigin() {
  508. return true;
  509. };
  510. }();
  511. }
  512. });
  513. // node_modules/axios/lib/cancel/Cancel.js
  514. var require_Cancel = __commonJS({
  515. "node_modules/axios/lib/cancel/Cancel.js"(exports, module) {
  516. "use strict";
  517. init_define_APP_INFO();
  518. function Cancel(message) {
  519. this.message = message;
  520. }
  521. Cancel.prototype.toString = function toString() {
  522. return "Cancel" + (this.message ? ": " + this.message : "");
  523. };
  524. Cancel.prototype.__CANCEL__ = true;
  525. module.exports = Cancel;
  526. }
  527. });
  528. // node_modules/axios/lib/adapters/xhr.js
  529. var require_xhr = __commonJS({
  530. "node_modules/axios/lib/adapters/xhr.js"(exports, module) {
  531. "use strict";
  532. init_define_APP_INFO();
  533. var utils = require_utils();
  534. var settle = require_settle();
  535. var cookies = require_cookies();
  536. var buildURL = require_buildURL();
  537. var buildFullPath = require_buildFullPath();
  538. var parseHeaders = require_parseHeaders();
  539. var isURLSameOrigin = require_isURLSameOrigin();
  540. var createError = require_createError();
  541. var defaults = require_defaults();
  542. var Cancel = require_Cancel();
  543. module.exports = function xhrAdapter(config) {
  544. return new Promise(function dispatchXhrRequest(resolve, reject) {
  545. var requestData = config.data;
  546. var requestHeaders = config.headers;
  547. var responseType = config.responseType;
  548. var onCanceled;
  549. function done() {
  550. if (config.cancelToken) {
  551. config.cancelToken.unsubscribe(onCanceled);
  552. }
  553. if (config.signal) {
  554. config.signal.removeEventListener("abort", onCanceled);
  555. }
  556. }
  557. if (utils.isFormData(requestData)) {
  558. delete requestHeaders["Content-Type"];
  559. }
  560. var request = new XMLHttpRequest();
  561. if (config.auth) {
  562. var username = config.auth.username || "";
  563. var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
  564. requestHeaders.Authorization = "Basic " + btoa(username + ":" + password);
  565. }
  566. var fullPath = buildFullPath(config.baseURL, config.url);
  567. request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
  568. request.timeout = config.timeout;
  569. function onloadend() {
  570. if (!request) {
  571. return;
  572. }
  573. var responseHeaders = "getAllResponseHeaders" in request ? parseHeaders(request.getAllResponseHeaders()) : null;
  574. var responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
  575. var response = {
  576. data: responseData,
  577. status: request.status,
  578. statusText: request.statusText,
  579. headers: responseHeaders,
  580. config,
  581. request
  582. };
  583. settle(function _resolve(value) {
  584. resolve(value);
  585. done();
  586. }, function _reject(err) {
  587. reject(err);
  588. done();
  589. }, response);
  590. request = null;
  591. }
  592. if ("onloadend" in request) {
  593. request.onloadend = onloadend;
  594. } else {
  595. request.onreadystatechange = function handleLoad() {
  596. if (!request || request.readyState !== 4) {
  597. return;
  598. }
  599. if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
  600. return;
  601. }
  602. setTimeout(onloadend);
  603. };
  604. }
  605. request.onabort = function handleAbort() {
  606. if (!request) {
  607. return;
  608. }
  609. reject(createError("Request aborted", config, "ECONNABORTED", request));
  610. request = null;
  611. };
  612. request.onerror = function handleError() {
  613. reject(createError("Network Error", config, null, request));
  614. request = null;
  615. };
  616. request.ontimeout = function handleTimeout() {
  617. var timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
  618. var transitional = config.transitional || defaults.transitional;
  619. if (config.timeoutErrorMessage) {
  620. timeoutErrorMessage = config.timeoutErrorMessage;
  621. }
  622. reject(createError(
  623. timeoutErrorMessage,
  624. config,
  625. transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
  626. request
  627. ));
  628. request = null;
  629. };
  630. if (utils.isStandardBrowserEnv()) {
  631. var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : void 0;
  632. if (xsrfValue) {
  633. requestHeaders[config.xsrfHeaderName] = xsrfValue;
  634. }
  635. }
  636. if ("setRequestHeader" in request) {
  637. utils.forEach(requestHeaders, function setRequestHeader(val, key) {
  638. if (typeof requestData === "undefined" && key.toLowerCase() === "content-type") {
  639. delete requestHeaders[key];
  640. } else {
  641. request.setRequestHeader(key, val);
  642. }
  643. });
  644. }
  645. if (!utils.isUndefined(config.withCredentials)) {
  646. request.withCredentials = !!config.withCredentials;
  647. }
  648. if (responseType && responseType !== "json") {
  649. request.responseType = config.responseType;
  650. }
  651. if (typeof config.onDownloadProgress === "function") {
  652. request.addEventListener("progress", config.onDownloadProgress);
  653. }
  654. if (typeof config.onUploadProgress === "function" && request.upload) {
  655. request.upload.addEventListener("progress", config.onUploadProgress);
  656. }
  657. if (config.cancelToken || config.signal) {
  658. onCanceled = function(cancel) {
  659. if (!request) {
  660. return;
  661. }
  662. reject(!cancel || cancel && cancel.type ? new Cancel("canceled") : cancel);
  663. request.abort();
  664. request = null;
  665. };
  666. config.cancelToken && config.cancelToken.subscribe(onCanceled);
  667. if (config.signal) {
  668. config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled);
  669. }
  670. }
  671. if (!requestData) {
  672. requestData = null;
  673. }
  674. request.send(requestData);
  675. });
  676. };
  677. }
  678. });
  679. // node_modules/axios/lib/defaults.js
  680. var require_defaults = __commonJS({
  681. "node_modules/axios/lib/defaults.js"(exports, module) {
  682. "use strict";
  683. init_define_APP_INFO();
  684. var utils = require_utils();
  685. var normalizeHeaderName = require_normalizeHeaderName();
  686. var enhanceError = require_enhanceError();
  687. var DEFAULT_CONTENT_TYPE = {
  688. "Content-Type": "application/x-www-form-urlencoded"
  689. };
  690. function setContentTypeIfUnset(headers, value) {
  691. if (!utils.isUndefined(headers) && utils.isUndefined(headers["Content-Type"])) {
  692. headers["Content-Type"] = value;
  693. }
  694. }
  695. function getDefaultAdapter() {
  696. var adapter;
  697. if (typeof XMLHttpRequest !== "undefined") {
  698. adapter = require_xhr();
  699. } else if (typeof process !== "undefined" && Object.prototype.toString.call(process) === "[object process]") {
  700. adapter = require_xhr();
  701. }
  702. return adapter;
  703. }
  704. function stringifySafely(rawValue, parser, encoder) {
  705. if (utils.isString(rawValue)) {
  706. try {
  707. (parser || JSON.parse)(rawValue);
  708. return utils.trim(rawValue);
  709. } catch (e) {
  710. if (e.name !== "SyntaxError") {
  711. throw e;
  712. }
  713. }
  714. }
  715. return (encoder || JSON.stringify)(rawValue);
  716. }
  717. var defaults = {
  718. transitional: {
  719. silentJSONParsing: true,
  720. forcedJSONParsing: true,
  721. clarifyTimeoutError: false
  722. },
  723. adapter: getDefaultAdapter(),
  724. transformRequest: [function transformRequest(data, headers) {
  725. normalizeHeaderName(headers, "Accept");
  726. normalizeHeaderName(headers, "Content-Type");
  727. if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data)) {
  728. return data;
  729. }
  730. if (utils.isArrayBufferView(data)) {
  731. return data.buffer;
  732. }
  733. if (utils.isURLSearchParams(data)) {
  734. setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
  735. return data.toString();
  736. }
  737. if (utils.isObject(data) || headers && headers["Content-Type"] === "application/json") {
  738. setContentTypeIfUnset(headers, "application/json");
  739. return stringifySafely(data);
  740. }
  741. return data;
  742. }],
  743. transformResponse: [function transformResponse(data) {
  744. var transitional = this.transitional || defaults.transitional;
  745. var silentJSONParsing = transitional && transitional.silentJSONParsing;
  746. var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
  747. var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
  748. if (strictJSONParsing || forcedJSONParsing && utils.isString(data) && data.length) {
  749. try {
  750. return JSON.parse(data);
  751. } catch (e) {
  752. if (strictJSONParsing) {
  753. if (e.name === "SyntaxError") {
  754. throw enhanceError(e, this, "E_JSON_PARSE");
  755. }
  756. throw e;
  757. }
  758. }
  759. }
  760. return data;
  761. }],
  762. timeout: 0,
  763. xsrfCookieName: "XSRF-TOKEN",
  764. xsrfHeaderName: "X-XSRF-TOKEN",
  765. maxContentLength: -1,
  766. maxBodyLength: -1,
  767. validateStatus: function validateStatus(status) {
  768. return status >= 200 && status < 300;
  769. },
  770. headers: {
  771. common: {
  772. "Accept": "application/json, text/plain, */*"
  773. }
  774. }
  775. };
  776. utils.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
  777. defaults.headers[method] = {};
  778. });
  779. utils.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
  780. defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
  781. });
  782. module.exports = defaults;
  783. }
  784. });
  785. // node_modules/axios/lib/core/transformData.js
  786. var require_transformData = __commonJS({
  787. "node_modules/axios/lib/core/transformData.js"(exports, module) {
  788. "use strict";
  789. init_define_APP_INFO();
  790. var utils = require_utils();
  791. var defaults = require_defaults();
  792. module.exports = function transformData(data, headers, fns) {
  793. var context = this || defaults;
  794. utils.forEach(fns, function transform(fn) {
  795. data = fn.call(context, data, headers);
  796. });
  797. return data;
  798. };
  799. }
  800. });
  801. // node_modules/axios/lib/cancel/isCancel.js
  802. var require_isCancel = __commonJS({
  803. "node_modules/axios/lib/cancel/isCancel.js"(exports, module) {
  804. "use strict";
  805. init_define_APP_INFO();
  806. module.exports = function isCancel(value) {
  807. return !!(value && value.__CANCEL__);
  808. };
  809. }
  810. });
  811. // node_modules/axios/lib/core/dispatchRequest.js
  812. var require_dispatchRequest = __commonJS({
  813. "node_modules/axios/lib/core/dispatchRequest.js"(exports, module) {
  814. "use strict";
  815. init_define_APP_INFO();
  816. var utils = require_utils();
  817. var transformData = require_transformData();
  818. var isCancel = require_isCancel();
  819. var defaults = require_defaults();
  820. var Cancel = require_Cancel();
  821. function throwIfCancellationRequested(config) {
  822. if (config.cancelToken) {
  823. config.cancelToken.throwIfRequested();
  824. }
  825. if (config.signal && config.signal.aborted) {
  826. throw new Cancel("canceled");
  827. }
  828. }
  829. module.exports = function dispatchRequest(config) {
  830. throwIfCancellationRequested(config);
  831. config.headers = config.headers || {};
  832. config.data = transformData.call(
  833. config,
  834. config.data,
  835. config.headers,
  836. config.transformRequest
  837. );
  838. config.headers = utils.merge(
  839. config.headers.common || {},
  840. config.headers[config.method] || {},
  841. config.headers
  842. );
  843. utils.forEach(
  844. ["delete", "get", "head", "post", "put", "patch", "common"],
  845. function cleanHeaderConfig(method) {
  846. delete config.headers[method];
  847. }
  848. );
  849. var adapter = config.adapter || defaults.adapter;
  850. return adapter(config).then(function onAdapterResolution(response) {
  851. throwIfCancellationRequested(config);
  852. response.data = transformData.call(
  853. config,
  854. response.data,
  855. response.headers,
  856. config.transformResponse
  857. );
  858. return response;
  859. }, function onAdapterRejection(reason) {
  860. if (!isCancel(reason)) {
  861. throwIfCancellationRequested(config);
  862. if (reason && reason.response) {
  863. reason.response.data = transformData.call(
  864. config,
  865. reason.response.data,
  866. reason.response.headers,
  867. config.transformResponse
  868. );
  869. }
  870. }
  871. return Promise.reject(reason);
  872. });
  873. };
  874. }
  875. });
  876. // node_modules/axios/lib/core/mergeConfig.js
  877. var require_mergeConfig = __commonJS({
  878. "node_modules/axios/lib/core/mergeConfig.js"(exports, module) {
  879. "use strict";
  880. init_define_APP_INFO();
  881. var utils = require_utils();
  882. module.exports = function mergeConfig(config1, config2) {
  883. config2 = config2 || {};
  884. var config = {};
  885. function getMergedValue(target, source) {
  886. if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
  887. return utils.merge(target, source);
  888. } else if (utils.isPlainObject(source)) {
  889. return utils.merge({}, source);
  890. } else if (utils.isArray(source)) {
  891. return source.slice();
  892. }
  893. return source;
  894. }
  895. function mergeDeepProperties(prop) {
  896. if (!utils.isUndefined(config2[prop])) {
  897. return getMergedValue(config1[prop], config2[prop]);
  898. } else if (!utils.isUndefined(config1[prop])) {
  899. return getMergedValue(void 0, config1[prop]);
  900. }
  901. }
  902. function valueFromConfig2(prop) {
  903. if (!utils.isUndefined(config2[prop])) {
  904. return getMergedValue(void 0, config2[prop]);
  905. }
  906. }
  907. function defaultToConfig2(prop) {
  908. if (!utils.isUndefined(config2[prop])) {
  909. return getMergedValue(void 0, config2[prop]);
  910. } else if (!utils.isUndefined(config1[prop])) {
  911. return getMergedValue(void 0, config1[prop]);
  912. }
  913. }
  914. function mergeDirectKeys(prop) {
  915. if (prop in config2) {
  916. return getMergedValue(config1[prop], config2[prop]);
  917. } else if (prop in config1) {
  918. return getMergedValue(void 0, config1[prop]);
  919. }
  920. }
  921. var mergeMap = {
  922. "url": valueFromConfig2,
  923. "method": valueFromConfig2,
  924. "data": valueFromConfig2,
  925. "baseURL": defaultToConfig2,
  926. "transformRequest": defaultToConfig2,
  927. "transformResponse": defaultToConfig2,
  928. "paramsSerializer": defaultToConfig2,
  929. "timeout": defaultToConfig2,
  930. "timeoutMessage": defaultToConfig2,
  931. "withCredentials": defaultToConfig2,
  932. "adapter": defaultToConfig2,
  933. "responseType": defaultToConfig2,
  934. "xsrfCookieName": defaultToConfig2,
  935. "xsrfHeaderName": defaultToConfig2,
  936. "onUploadProgress": defaultToConfig2,
  937. "onDownloadProgress": defaultToConfig2,
  938. "decompress": defaultToConfig2,
  939. "maxContentLength": defaultToConfig2,
  940. "maxBodyLength": defaultToConfig2,
  941. "transport": defaultToConfig2,
  942. "httpAgent": defaultToConfig2,
  943. "httpsAgent": defaultToConfig2,
  944. "cancelToken": defaultToConfig2,
  945. "socketPath": defaultToConfig2,
  946. "responseEncoding": defaultToConfig2,
  947. "validateStatus": mergeDirectKeys
  948. };
  949. utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
  950. var merge = mergeMap[prop] || mergeDeepProperties;
  951. var configValue = merge(prop);
  952. utils.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
  953. });
  954. return config;
  955. };
  956. }
  957. });
  958. // node_modules/axios/lib/env/data.js
  959. var require_data = __commonJS({
  960. "node_modules/axios/lib/env/data.js"(exports, module) {
  961. init_define_APP_INFO();
  962. module.exports = {
  963. "version": "0.24.0"
  964. };
  965. }
  966. });
  967. // node_modules/axios/lib/helpers/validator.js
  968. var require_validator = __commonJS({
  969. "node_modules/axios/lib/helpers/validator.js"(exports, module) {
  970. "use strict";
  971. init_define_APP_INFO();
  972. var VERSION = require_data().version;
  973. var validators = {};
  974. ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type, i) {
  975. validators[type] = function validator(thing) {
  976. return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
  977. };
  978. });
  979. var deprecatedWarnings = {};
  980. validators.transitional = function transitional(validator, version, message) {
  981. function formatMessage(opt, desc) {
  982. return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
  983. }
  984. return function(value, opt, opts) {
  985. if (validator === false) {
  986. throw new Error(formatMessage(opt, " has been removed" + (version ? " in " + version : "")));
  987. }
  988. if (version && !deprecatedWarnings[opt]) {
  989. deprecatedWarnings[opt] = true;
  990. console.warn(
  991. formatMessage(
  992. opt,
  993. " has been deprecated since v" + version + " and will be removed in the near future"
  994. )
  995. );
  996. }
  997. return validator ? validator(value, opt, opts) : true;
  998. };
  999. };
  1000. function assertOptions(options, schema, allowUnknown) {
  1001. if (typeof options !== "object") {
  1002. throw new TypeError("options must be an object");
  1003. }
  1004. var keys = Object.keys(options);
  1005. var i = keys.length;
  1006. while (i-- > 0) {
  1007. var opt = keys[i];
  1008. var validator = schema[opt];
  1009. if (validator) {
  1010. var value = options[opt];
  1011. var result = value === void 0 || validator(value, opt, options);
  1012. if (result !== true) {
  1013. throw new TypeError("option " + opt + " must be " + result);
  1014. }
  1015. continue;
  1016. }
  1017. if (allowUnknown !== true) {
  1018. throw Error("Unknown option " + opt);
  1019. }
  1020. }
  1021. }
  1022. module.exports = {
  1023. assertOptions,
  1024. validators
  1025. };
  1026. }
  1027. });
  1028. // node_modules/axios/lib/core/Axios.js
  1029. var require_Axios = __commonJS({
  1030. "node_modules/axios/lib/core/Axios.js"(exports, module) {
  1031. "use strict";
  1032. init_define_APP_INFO();
  1033. var utils = require_utils();
  1034. var buildURL = require_buildURL();
  1035. var InterceptorManager = require_InterceptorManager();
  1036. var dispatchRequest = require_dispatchRequest();
  1037. var mergeConfig = require_mergeConfig();
  1038. var validator = require_validator();
  1039. var validators = validator.validators;
  1040. function Axios(instanceConfig) {
  1041. this.defaults = instanceConfig;
  1042. this.interceptors = {
  1043. request: new InterceptorManager(),
  1044. response: new InterceptorManager()
  1045. };
  1046. }
  1047. Axios.prototype.request = function request(config) {
  1048. if (typeof config === "string") {
  1049. config = arguments[1] || {};
  1050. config.url = arguments[0];
  1051. } else {
  1052. config = config || {};
  1053. }
  1054. config = mergeConfig(this.defaults, config);
  1055. if (config.method) {
  1056. config.method = config.method.toLowerCase();
  1057. } else if (this.defaults.method) {
  1058. config.method = this.defaults.method.toLowerCase();
  1059. } else {
  1060. config.method = "get";
  1061. }
  1062. var transitional = config.transitional;
  1063. if (transitional !== void 0) {
  1064. validator.assertOptions(transitional, {
  1065. silentJSONParsing: validators.transitional(validators.boolean),
  1066. forcedJSONParsing: validators.transitional(validators.boolean),
  1067. clarifyTimeoutError: validators.transitional(validators.boolean)
  1068. }, false);
  1069. }
  1070. var requestInterceptorChain = [];
  1071. var synchronousRequestInterceptors = true;
  1072. this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
  1073. if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) {
  1074. return;
  1075. }
  1076. synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
  1077. requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
  1078. });
  1079. var responseInterceptorChain = [];
  1080. this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
  1081. responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
  1082. });
  1083. var promise;
  1084. if (!synchronousRequestInterceptors) {
  1085. var chain = [dispatchRequest, void 0];
  1086. Array.prototype.unshift.apply(chain, requestInterceptorChain);
  1087. chain = chain.concat(responseInterceptorChain);
  1088. promise = Promise.resolve(config);
  1089. while (chain.length) {
  1090. promise = promise.then(chain.shift(), chain.shift());
  1091. }
  1092. return promise;
  1093. }
  1094. var newConfig = config;
  1095. while (requestInterceptorChain.length) {
  1096. var onFulfilled = requestInterceptorChain.shift();
  1097. var onRejected = requestInterceptorChain.shift();
  1098. try {
  1099. newConfig = onFulfilled(newConfig);
  1100. } catch (error) {
  1101. onRejected(error);
  1102. break;
  1103. }
  1104. }
  1105. try {
  1106. promise = dispatchRequest(newConfig);
  1107. } catch (error) {
  1108. return Promise.reject(error);
  1109. }
  1110. while (responseInterceptorChain.length) {
  1111. promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
  1112. }
  1113. return promise;
  1114. };
  1115. Axios.prototype.getUri = function getUri(config) {
  1116. config = mergeConfig(this.defaults, config);
  1117. return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, "");
  1118. };
  1119. utils.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
  1120. Axios.prototype[method] = function(url, config) {
  1121. return this.request(mergeConfig(config || {}, {
  1122. method,
  1123. url,
  1124. data: (config || {}).data
  1125. }));
  1126. };
  1127. });
  1128. utils.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
  1129. Axios.prototype[method] = function(url, data, config) {
  1130. return this.request(mergeConfig(config || {}, {
  1131. method,
  1132. url,
  1133. data
  1134. }));
  1135. };
  1136. });
  1137. module.exports = Axios;
  1138. }
  1139. });
  1140. // node_modules/axios/lib/cancel/CancelToken.js
  1141. var require_CancelToken = __commonJS({
  1142. "node_modules/axios/lib/cancel/CancelToken.js"(exports, module) {
  1143. "use strict";
  1144. init_define_APP_INFO();
  1145. var Cancel = require_Cancel();
  1146. function CancelToken(executor) {
  1147. if (typeof executor !== "function") {
  1148. throw new TypeError("executor must be a function.");
  1149. }
  1150. var resolvePromise;
  1151. this.promise = new Promise(function promiseExecutor(resolve) {
  1152. resolvePromise = resolve;
  1153. });
  1154. var token = this;
  1155. this.promise.then(function(cancel) {
  1156. if (!token._listeners)
  1157. return;
  1158. var i;
  1159. var l = token._listeners.length;
  1160. for (i = 0; i < l; i++) {
  1161. token._listeners[i](cancel);
  1162. }
  1163. token._listeners = null;
  1164. });
  1165. this.promise.then = function(onfulfilled) {
  1166. var _resolve;
  1167. var promise = new Promise(function(resolve) {
  1168. token.subscribe(resolve);
  1169. _resolve = resolve;
  1170. }).then(onfulfilled);
  1171. promise.cancel = function reject() {
  1172. token.unsubscribe(_resolve);
  1173. };
  1174. return promise;
  1175. };
  1176. executor(function cancel(message) {
  1177. if (token.reason) {
  1178. return;
  1179. }
  1180. token.reason = new Cancel(message);
  1181. resolvePromise(token.reason);
  1182. });
  1183. }
  1184. CancelToken.prototype.throwIfRequested = function throwIfRequested() {
  1185. if (this.reason) {
  1186. throw this.reason;
  1187. }
  1188. };
  1189. CancelToken.prototype.subscribe = function subscribe(listener) {
  1190. if (this.reason) {
  1191. listener(this.reason);
  1192. return;
  1193. }
  1194. if (this._listeners) {
  1195. this._listeners.push(listener);
  1196. } else {
  1197. this._listeners = [listener];
  1198. }
  1199. };
  1200. CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
  1201. if (!this._listeners) {
  1202. return;
  1203. }
  1204. var index = this._listeners.indexOf(listener);
  1205. if (index !== -1) {
  1206. this._listeners.splice(index, 1);
  1207. }
  1208. };
  1209. CancelToken.source = function source() {
  1210. var cancel;
  1211. var token = new CancelToken(function executor(c) {
  1212. cancel = c;
  1213. });
  1214. return {
  1215. token,
  1216. cancel
  1217. };
  1218. };
  1219. module.exports = CancelToken;
  1220. }
  1221. });
  1222. // node_modules/axios/lib/helpers/spread.js
  1223. var require_spread = __commonJS({
  1224. "node_modules/axios/lib/helpers/spread.js"(exports, module) {
  1225. "use strict";
  1226. init_define_APP_INFO();
  1227. module.exports = function spread(callback) {
  1228. return function wrap(arr) {
  1229. return callback.apply(null, arr);
  1230. };
  1231. };
  1232. }
  1233. });
  1234. // node_modules/axios/lib/helpers/isAxiosError.js
  1235. var require_isAxiosError = __commonJS({
  1236. "node_modules/axios/lib/helpers/isAxiosError.js"(exports, module) {
  1237. "use strict";
  1238. init_define_APP_INFO();
  1239. module.exports = function isAxiosError(payload) {
  1240. return typeof payload === "object" && payload.isAxiosError === true;
  1241. };
  1242. }
  1243. });
  1244. // node_modules/axios/lib/axios.js
  1245. var require_axios = __commonJS({
  1246. "node_modules/axios/lib/axios.js"(exports, module) {
  1247. "use strict";
  1248. init_define_APP_INFO();
  1249. var utils = require_utils();
  1250. var bind = require_bind();
  1251. var Axios = require_Axios();
  1252. var mergeConfig = require_mergeConfig();
  1253. var defaults = require_defaults();
  1254. function createInstance(defaultConfig) {
  1255. var context = new Axios(defaultConfig);
  1256. var instance = bind(Axios.prototype.request, context);
  1257. utils.extend(instance, Axios.prototype, context);
  1258. utils.extend(instance, context);
  1259. instance.create = function create(instanceConfig) {
  1260. return createInstance(mergeConfig(defaultConfig, instanceConfig));
  1261. };
  1262. return instance;
  1263. }
  1264. var axios = createInstance(defaults);
  1265. axios.Axios = Axios;
  1266. axios.Cancel = require_Cancel();
  1267. axios.CancelToken = require_CancelToken();
  1268. axios.isCancel = require_isCancel();
  1269. axios.VERSION = require_data().version;
  1270. axios.all = function all(promises) {
  1271. return Promise.all(promises);
  1272. };
  1273. axios.spread = require_spread();
  1274. axios.isAxiosError = require_isAxiosError();
  1275. module.exports = axios;
  1276. module.exports.default = axios;
  1277. }
  1278. });
  1279. // node_modules/axios/index.js
  1280. var require_axios2 = __commonJS({
  1281. "node_modules/axios/index.js"(exports, module) {
  1282. init_define_APP_INFO();
  1283. module.exports = require_axios();
  1284. }
  1285. });
  1286. // dep:axios
  1287. init_define_APP_INFO();
  1288. var axios_default = require_axios2();
  1289. export {
  1290. axios_default as default
  1291. };
  1292. //# sourceMappingURL=axios.js.map