f_000012 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126
  1. import "/node_modules/.vite/deps/chunk-WQG2LZMB.js?v=9548b9c3";
  2. // node_modules/axios/lib/helpers/bind.js
  3. function bind(fn, thisArg) {
  4. return function wrap() {
  5. return fn.apply(thisArg, arguments);
  6. };
  7. }
  8. // node_modules/axios/lib/utils.js
  9. var { toString } = Object.prototype;
  10. var { getPrototypeOf } = Object;
  11. var kindOf = ((cache) => (thing) => {
  12. const str = toString.call(thing);
  13. return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
  14. })(/* @__PURE__ */ Object.create(null));
  15. var kindOfTest = (type) => {
  16. type = type.toLowerCase();
  17. return (thing) => kindOf(thing) === type;
  18. };
  19. var typeOfTest = (type) => (thing) => typeof thing === type;
  20. var { isArray } = Array;
  21. var isUndefined = typeOfTest("undefined");
  22. function isBuffer(val) {
  23. return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
  24. }
  25. var isArrayBuffer = kindOfTest("ArrayBuffer");
  26. function isArrayBufferView(val) {
  27. let result;
  28. if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
  29. result = ArrayBuffer.isView(val);
  30. } else {
  31. result = val && val.buffer && isArrayBuffer(val.buffer);
  32. }
  33. return result;
  34. }
  35. var isString = typeOfTest("string");
  36. var isFunction = typeOfTest("function");
  37. var isNumber = typeOfTest("number");
  38. var isObject = (thing) => thing !== null && typeof thing === "object";
  39. var isBoolean = (thing) => thing === true || thing === false;
  40. var isPlainObject = (val) => {
  41. if (kindOf(val) !== "object") {
  42. return false;
  43. }
  44. const prototype3 = getPrototypeOf(val);
  45. return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
  46. };
  47. var isDate = kindOfTest("Date");
  48. var isFile = kindOfTest("File");
  49. var isBlob = kindOfTest("Blob");
  50. var isFileList = kindOfTest("FileList");
  51. var isStream = (val) => isObject(val) && isFunction(val.pipe);
  52. var isFormData = (thing) => {
  53. let kind;
  54. return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
  55. kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
  56. };
  57. var isURLSearchParams = kindOfTest("URLSearchParams");
  58. var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
  59. function forEach(obj, fn, { allOwnKeys = false } = {}) {
  60. if (obj === null || typeof obj === "undefined") {
  61. return;
  62. }
  63. let i;
  64. let l;
  65. if (typeof obj !== "object") {
  66. obj = [obj];
  67. }
  68. if (isArray(obj)) {
  69. for (i = 0, l = obj.length; i < l; i++) {
  70. fn.call(null, obj[i], i, obj);
  71. }
  72. } else {
  73. const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
  74. const len = keys.length;
  75. let key;
  76. for (i = 0; i < len; i++) {
  77. key = keys[i];
  78. fn.call(null, obj[key], key, obj);
  79. }
  80. }
  81. }
  82. function findKey(obj, key) {
  83. key = key.toLowerCase();
  84. const keys = Object.keys(obj);
  85. let i = keys.length;
  86. let _key;
  87. while (i-- > 0) {
  88. _key = keys[i];
  89. if (key === _key.toLowerCase()) {
  90. return _key;
  91. }
  92. }
  93. return null;
  94. }
  95. var _global = (() => {
  96. if (typeof globalThis !== "undefined")
  97. return globalThis;
  98. return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
  99. })();
  100. var isContextDefined = (context) => !isUndefined(context) && context !== _global;
  101. function merge() {
  102. const { caseless } = isContextDefined(this) && this || {};
  103. const result = {};
  104. const assignValue = (val, key) => {
  105. const targetKey = caseless && findKey(result, key) || key;
  106. if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
  107. result[targetKey] = merge(result[targetKey], val);
  108. } else if (isPlainObject(val)) {
  109. result[targetKey] = merge({}, val);
  110. } else if (isArray(val)) {
  111. result[targetKey] = val.slice();
  112. } else {
  113. result[targetKey] = val;
  114. }
  115. };
  116. for (let i = 0, l = arguments.length; i < l; i++) {
  117. arguments[i] && forEach(arguments[i], assignValue);
  118. }
  119. return result;
  120. }
  121. var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
  122. forEach(b, (val, key) => {
  123. if (thisArg && isFunction(val)) {
  124. a[key] = bind(val, thisArg);
  125. } else {
  126. a[key] = val;
  127. }
  128. }, { allOwnKeys });
  129. return a;
  130. };
  131. var stripBOM = (content) => {
  132. if (content.charCodeAt(0) === 65279) {
  133. content = content.slice(1);
  134. }
  135. return content;
  136. };
  137. var inherits = (constructor, superConstructor, props, descriptors2) => {
  138. constructor.prototype = Object.create(superConstructor.prototype, descriptors2);
  139. constructor.prototype.constructor = constructor;
  140. Object.defineProperty(constructor, "super", {
  141. value: superConstructor.prototype
  142. });
  143. props && Object.assign(constructor.prototype, props);
  144. };
  145. var toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
  146. let props;
  147. let i;
  148. let prop;
  149. const merged = {};
  150. destObj = destObj || {};
  151. if (sourceObj == null)
  152. return destObj;
  153. do {
  154. props = Object.getOwnPropertyNames(sourceObj);
  155. i = props.length;
  156. while (i-- > 0) {
  157. prop = props[i];
  158. if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
  159. destObj[prop] = sourceObj[prop];
  160. merged[prop] = true;
  161. }
  162. }
  163. sourceObj = filter2 !== false && getPrototypeOf(sourceObj);
  164. } while (sourceObj && (!filter2 || filter2(sourceObj, destObj)) && sourceObj !== Object.prototype);
  165. return destObj;
  166. };
  167. var endsWith = (str, searchString, position) => {
  168. str = String(str);
  169. if (position === void 0 || position > str.length) {
  170. position = str.length;
  171. }
  172. position -= searchString.length;
  173. const lastIndex = str.indexOf(searchString, position);
  174. return lastIndex !== -1 && lastIndex === position;
  175. };
  176. var toArray = (thing) => {
  177. if (!thing)
  178. return null;
  179. if (isArray(thing))
  180. return thing;
  181. let i = thing.length;
  182. if (!isNumber(i))
  183. return null;
  184. const arr = new Array(i);
  185. while (i-- > 0) {
  186. arr[i] = thing[i];
  187. }
  188. return arr;
  189. };
  190. var isTypedArray = ((TypedArray) => {
  191. return (thing) => {
  192. return TypedArray && thing instanceof TypedArray;
  193. };
  194. })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
  195. var forEachEntry = (obj, fn) => {
  196. const generator = obj && obj[Symbol.iterator];
  197. const iterator = generator.call(obj);
  198. let result;
  199. while ((result = iterator.next()) && !result.done) {
  200. const pair = result.value;
  201. fn.call(obj, pair[0], pair[1]);
  202. }
  203. };
  204. var matchAll = (regExp, str) => {
  205. let matches;
  206. const arr = [];
  207. while ((matches = regExp.exec(str)) !== null) {
  208. arr.push(matches);
  209. }
  210. return arr;
  211. };
  212. var isHTMLForm = kindOfTest("HTMLFormElement");
  213. var toCamelCase = (str) => {
  214. return str.toLowerCase().replace(
  215. /[-_\s]([a-z\d])(\w*)/g,
  216. function replacer(m, p1, p2) {
  217. return p1.toUpperCase() + p2;
  218. }
  219. );
  220. };
  221. var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
  222. var isRegExp = kindOfTest("RegExp");
  223. var reduceDescriptors = (obj, reducer) => {
  224. const descriptors2 = Object.getOwnPropertyDescriptors(obj);
  225. const reducedDescriptors = {};
  226. forEach(descriptors2, (descriptor, name) => {
  227. if (reducer(descriptor, name, obj) !== false) {
  228. reducedDescriptors[name] = descriptor;
  229. }
  230. });
  231. Object.defineProperties(obj, reducedDescriptors);
  232. };
  233. var freezeMethods = (obj) => {
  234. reduceDescriptors(obj, (descriptor, name) => {
  235. if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
  236. return false;
  237. }
  238. const value = obj[name];
  239. if (!isFunction(value))
  240. return;
  241. descriptor.enumerable = false;
  242. if ("writable" in descriptor) {
  243. descriptor.writable = false;
  244. return;
  245. }
  246. if (!descriptor.set) {
  247. descriptor.set = () => {
  248. throw Error("Can not rewrite read-only method '" + name + "'");
  249. };
  250. }
  251. });
  252. };
  253. var toObjectSet = (arrayOrString, delimiter) => {
  254. const obj = {};
  255. const define = (arr) => {
  256. arr.forEach((value) => {
  257. obj[value] = true;
  258. });
  259. };
  260. isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
  261. return obj;
  262. };
  263. var noop = () => {
  264. };
  265. var toFiniteNumber = (value, defaultValue) => {
  266. value = +value;
  267. return Number.isFinite(value) ? value : defaultValue;
  268. };
  269. var ALPHA = "abcdefghijklmnopqrstuvwxyz";
  270. var DIGIT = "0123456789";
  271. var ALPHABET = {
  272. DIGIT,
  273. ALPHA,
  274. ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
  275. };
  276. var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
  277. let str = "";
  278. const { length } = alphabet;
  279. while (size--) {
  280. str += alphabet[Math.random() * length | 0];
  281. }
  282. return str;
  283. };
  284. function isSpecCompliantForm(thing) {
  285. return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
  286. }
  287. var toJSONObject = (obj) => {
  288. const stack = new Array(10);
  289. const visit = (source, i) => {
  290. if (isObject(source)) {
  291. if (stack.indexOf(source) >= 0) {
  292. return;
  293. }
  294. if (!("toJSON" in source)) {
  295. stack[i] = source;
  296. const target = isArray(source) ? [] : {};
  297. forEach(source, (value, key) => {
  298. const reducedValue = visit(value, i + 1);
  299. !isUndefined(reducedValue) && (target[key] = reducedValue);
  300. });
  301. stack[i] = void 0;
  302. return target;
  303. }
  304. }
  305. return source;
  306. };
  307. return visit(obj, 0);
  308. };
  309. var isAsyncFn = kindOfTest("AsyncFunction");
  310. var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
  311. var utils_default = {
  312. isArray,
  313. isArrayBuffer,
  314. isBuffer,
  315. isFormData,
  316. isArrayBufferView,
  317. isString,
  318. isNumber,
  319. isBoolean,
  320. isObject,
  321. isPlainObject,
  322. isUndefined,
  323. isDate,
  324. isFile,
  325. isBlob,
  326. isRegExp,
  327. isFunction,
  328. isStream,
  329. isURLSearchParams,
  330. isTypedArray,
  331. isFileList,
  332. forEach,
  333. merge,
  334. extend,
  335. trim,
  336. stripBOM,
  337. inherits,
  338. toFlatObject,
  339. kindOf,
  340. kindOfTest,
  341. endsWith,
  342. toArray,
  343. forEachEntry,
  344. matchAll,
  345. isHTMLForm,
  346. hasOwnProperty,
  347. hasOwnProp: hasOwnProperty,
  348. // an alias to avoid ESLint no-prototype-builtins detection
  349. reduceDescriptors,
  350. freezeMethods,
  351. toObjectSet,
  352. toCamelCase,
  353. noop,
  354. toFiniteNumber,
  355. findKey,
  356. global: _global,
  357. isContextDefined,
  358. ALPHABET,
  359. generateString,
  360. isSpecCompliantForm,
  361. toJSONObject,
  362. isAsyncFn,
  363. isThenable
  364. };
  365. // node_modules/axios/lib/core/AxiosError.js
  366. function AxiosError(message, code, config, request, response) {
  367. Error.call(this);
  368. if (Error.captureStackTrace) {
  369. Error.captureStackTrace(this, this.constructor);
  370. } else {
  371. this.stack = new Error().stack;
  372. }
  373. this.message = message;
  374. this.name = "AxiosError";
  375. code && (this.code = code);
  376. config && (this.config = config);
  377. request && (this.request = request);
  378. response && (this.response = response);
  379. }
  380. utils_default.inherits(AxiosError, Error, {
  381. toJSON: function toJSON() {
  382. return {
  383. // Standard
  384. message: this.message,
  385. name: this.name,
  386. // Microsoft
  387. description: this.description,
  388. number: this.number,
  389. // Mozilla
  390. fileName: this.fileName,
  391. lineNumber: this.lineNumber,
  392. columnNumber: this.columnNumber,
  393. stack: this.stack,
  394. // Axios
  395. config: utils_default.toJSONObject(this.config),
  396. code: this.code,
  397. status: this.response && this.response.status ? this.response.status : null
  398. };
  399. }
  400. });
  401. var prototype = AxiosError.prototype;
  402. var descriptors = {};
  403. [
  404. "ERR_BAD_OPTION_VALUE",
  405. "ERR_BAD_OPTION",
  406. "ECONNABORTED",
  407. "ETIMEDOUT",
  408. "ERR_NETWORK",
  409. "ERR_FR_TOO_MANY_REDIRECTS",
  410. "ERR_DEPRECATED",
  411. "ERR_BAD_RESPONSE",
  412. "ERR_BAD_REQUEST",
  413. "ERR_CANCELED",
  414. "ERR_NOT_SUPPORT",
  415. "ERR_INVALID_URL"
  416. // eslint-disable-next-line func-names
  417. ].forEach((code) => {
  418. descriptors[code] = { value: code };
  419. });
  420. Object.defineProperties(AxiosError, descriptors);
  421. Object.defineProperty(prototype, "isAxiosError", { value: true });
  422. AxiosError.from = (error, code, config, request, response, customProps) => {
  423. const axiosError = Object.create(prototype);
  424. utils_default.toFlatObject(error, axiosError, function filter2(obj) {
  425. return obj !== Error.prototype;
  426. }, (prop) => {
  427. return prop !== "isAxiosError";
  428. });
  429. AxiosError.call(axiosError, error.message, code, config, request, response);
  430. axiosError.cause = error;
  431. axiosError.name = error.name;
  432. customProps && Object.assign(axiosError, customProps);
  433. return axiosError;
  434. };
  435. var AxiosError_default = AxiosError;
  436. // node_modules/axios/lib/helpers/null.js
  437. var null_default = null;
  438. // node_modules/axios/lib/helpers/toFormData.js
  439. function isVisitable(thing) {
  440. return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
  441. }
  442. function removeBrackets(key) {
  443. return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
  444. }
  445. function renderKey(path, key, dots) {
  446. if (!path)
  447. return key;
  448. return path.concat(key).map(function each(token, i) {
  449. token = removeBrackets(token);
  450. return !dots && i ? "[" + token + "]" : token;
  451. }).join(dots ? "." : "");
  452. }
  453. function isFlatArray(arr) {
  454. return utils_default.isArray(arr) && !arr.some(isVisitable);
  455. }
  456. var predicates = utils_default.toFlatObject(utils_default, {}, null, function filter(prop) {
  457. return /^is[A-Z]/.test(prop);
  458. });
  459. function toFormData(obj, formData, options) {
  460. if (!utils_default.isObject(obj)) {
  461. throw new TypeError("target must be an object");
  462. }
  463. formData = formData || new (null_default || FormData)();
  464. options = utils_default.toFlatObject(options, {
  465. metaTokens: true,
  466. dots: false,
  467. indexes: false
  468. }, false, function defined(option, source) {
  469. return !utils_default.isUndefined(source[option]);
  470. });
  471. const metaTokens = options.metaTokens;
  472. const visitor = options.visitor || defaultVisitor;
  473. const dots = options.dots;
  474. const indexes = options.indexes;
  475. const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
  476. const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
  477. if (!utils_default.isFunction(visitor)) {
  478. throw new TypeError("visitor must be a function");
  479. }
  480. function convertValue(value) {
  481. if (value === null)
  482. return "";
  483. if (utils_default.isDate(value)) {
  484. return value.toISOString();
  485. }
  486. if (!useBlob && utils_default.isBlob(value)) {
  487. throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
  488. }
  489. if (utils_default.isArrayBuffer(value) || utils_default.isTypedArray(value)) {
  490. return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
  491. }
  492. return value;
  493. }
  494. function defaultVisitor(value, key, path) {
  495. let arr = value;
  496. if (value && !path && typeof value === "object") {
  497. if (utils_default.endsWith(key, "{}")) {
  498. key = metaTokens ? key : key.slice(0, -2);
  499. value = JSON.stringify(value);
  500. } else if (utils_default.isArray(value) && isFlatArray(value) || (utils_default.isFileList(value) || utils_default.endsWith(key, "[]")) && (arr = utils_default.toArray(value))) {
  501. key = removeBrackets(key);
  502. arr.forEach(function each(el, index) {
  503. !(utils_default.isUndefined(el) || el === null) && formData.append(
  504. // eslint-disable-next-line no-nested-ternary
  505. indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
  506. convertValue(el)
  507. );
  508. });
  509. return false;
  510. }
  511. }
  512. if (isVisitable(value)) {
  513. return true;
  514. }
  515. formData.append(renderKey(path, key, dots), convertValue(value));
  516. return false;
  517. }
  518. const stack = [];
  519. const exposedHelpers = Object.assign(predicates, {
  520. defaultVisitor,
  521. convertValue,
  522. isVisitable
  523. });
  524. function build(value, path) {
  525. if (utils_default.isUndefined(value))
  526. return;
  527. if (stack.indexOf(value) !== -1) {
  528. throw Error("Circular reference detected in " + path.join("."));
  529. }
  530. stack.push(value);
  531. utils_default.forEach(value, function each(el, key) {
  532. const result = !(utils_default.isUndefined(el) || el === null) && visitor.call(
  533. formData,
  534. el,
  535. utils_default.isString(key) ? key.trim() : key,
  536. path,
  537. exposedHelpers
  538. );
  539. if (result === true) {
  540. build(el, path ? path.concat(key) : [key]);
  541. }
  542. });
  543. stack.pop();
  544. }
  545. if (!utils_default.isObject(obj)) {
  546. throw new TypeError("data must be an object");
  547. }
  548. build(obj);
  549. return formData;
  550. }
  551. var toFormData_default = toFormData;
  552. // node_modules/axios/lib/helpers/AxiosURLSearchParams.js
  553. function encode(str) {
  554. const charMap = {
  555. "!": "%21",
  556. "'": "%27",
  557. "(": "%28",
  558. ")": "%29",
  559. "~": "%7E",
  560. "%20": "+",
  561. "%00": "\0"
  562. };
  563. return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
  564. return charMap[match];
  565. });
  566. }
  567. function AxiosURLSearchParams(params, options) {
  568. this._pairs = [];
  569. params && toFormData_default(params, this, options);
  570. }
  571. var prototype2 = AxiosURLSearchParams.prototype;
  572. prototype2.append = function append(name, value) {
  573. this._pairs.push([name, value]);
  574. };
  575. prototype2.toString = function toString2(encoder) {
  576. const _encode = encoder ? function(value) {
  577. return encoder.call(this, value, encode);
  578. } : encode;
  579. return this._pairs.map(function each(pair) {
  580. return _encode(pair[0]) + "=" + _encode(pair[1]);
  581. }, "").join("&");
  582. };
  583. var AxiosURLSearchParams_default = AxiosURLSearchParams;
  584. // node_modules/axios/lib/helpers/buildURL.js
  585. function encode2(val) {
  586. return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
  587. }
  588. function buildURL(url, params, options) {
  589. if (!params) {
  590. return url;
  591. }
  592. const _encode = options && options.encode || encode2;
  593. const serializeFn = options && options.serialize;
  594. let serializedParams;
  595. if (serializeFn) {
  596. serializedParams = serializeFn(params, options);
  597. } else {
  598. serializedParams = utils_default.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams_default(params, options).toString(_encode);
  599. }
  600. if (serializedParams) {
  601. const hashmarkIndex = url.indexOf("#");
  602. if (hashmarkIndex !== -1) {
  603. url = url.slice(0, hashmarkIndex);
  604. }
  605. url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
  606. }
  607. return url;
  608. }
  609. // node_modules/axios/lib/core/InterceptorManager.js
  610. var InterceptorManager = class {
  611. constructor() {
  612. this.handlers = [];
  613. }
  614. /**
  615. * Add a new interceptor to the stack
  616. *
  617. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  618. * @param {Function} rejected The function to handle `reject` for a `Promise`
  619. *
  620. * @return {Number} An ID used to remove interceptor later
  621. */
  622. use(fulfilled, rejected, options) {
  623. this.handlers.push({
  624. fulfilled,
  625. rejected,
  626. synchronous: options ? options.synchronous : false,
  627. runWhen: options ? options.runWhen : null
  628. });
  629. return this.handlers.length - 1;
  630. }
  631. /**
  632. * Remove an interceptor from the stack
  633. *
  634. * @param {Number} id The ID that was returned by `use`
  635. *
  636. * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
  637. */
  638. eject(id) {
  639. if (this.handlers[id]) {
  640. this.handlers[id] = null;
  641. }
  642. }
  643. /**
  644. * Clear all interceptors from the stack
  645. *
  646. * @returns {void}
  647. */
  648. clear() {
  649. if (this.handlers) {
  650. this.handlers = [];
  651. }
  652. }
  653. /**
  654. * Iterate over all the registered interceptors
  655. *
  656. * This method is particularly useful for skipping over any
  657. * interceptors that may have become `null` calling `eject`.
  658. *
  659. * @param {Function} fn The function to call for each interceptor
  660. *
  661. * @returns {void}
  662. */
  663. forEach(fn) {
  664. utils_default.forEach(this.handlers, function forEachHandler(h) {
  665. if (h !== null) {
  666. fn(h);
  667. }
  668. });
  669. }
  670. };
  671. var InterceptorManager_default = InterceptorManager;
  672. // node_modules/axios/lib/defaults/transitional.js
  673. var transitional_default = {
  674. silentJSONParsing: true,
  675. forcedJSONParsing: true,
  676. clarifyTimeoutError: false
  677. };
  678. // node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
  679. var URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams_default;
  680. // node_modules/axios/lib/platform/browser/classes/FormData.js
  681. var FormData_default = typeof FormData !== "undefined" ? FormData : null;
  682. // node_modules/axios/lib/platform/browser/classes/Blob.js
  683. var Blob_default = typeof Blob !== "undefined" ? Blob : null;
  684. // node_modules/axios/lib/platform/browser/index.js
  685. var isStandardBrowserEnv = (() => {
  686. let product;
  687. if (typeof navigator !== "undefined" && ((product = navigator.product) === "ReactNative" || product === "NativeScript" || product === "NS")) {
  688. return false;
  689. }
  690. return typeof window !== "undefined" && typeof document !== "undefined";
  691. })();
  692. var isStandardBrowserWebWorkerEnv = (() => {
  693. return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
  694. self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
  695. })();
  696. var browser_default = {
  697. isBrowser: true,
  698. classes: {
  699. URLSearchParams: URLSearchParams_default,
  700. FormData: FormData_default,
  701. Blob: Blob_default
  702. },
  703. isStandardBrowserEnv,
  704. isStandardBrowserWebWorkerEnv,
  705. protocols: ["http", "https", "file", "blob", "url", "data"]
  706. };
  707. // node_modules/axios/lib/helpers/toURLEncodedForm.js
  708. function toURLEncodedForm(data, options) {
  709. return toFormData_default(data, new browser_default.classes.URLSearchParams(), Object.assign({
  710. visitor: function(value, key, path, helpers) {
  711. if (browser_default.isNode && utils_default.isBuffer(value)) {
  712. this.append(key, value.toString("base64"));
  713. return false;
  714. }
  715. return helpers.defaultVisitor.apply(this, arguments);
  716. }
  717. }, options));
  718. }
  719. // node_modules/axios/lib/helpers/formDataToJSON.js
  720. function parsePropPath(name) {
  721. return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
  722. return match[0] === "[]" ? "" : match[1] || match[0];
  723. });
  724. }
  725. function arrayToObject(arr) {
  726. const obj = {};
  727. const keys = Object.keys(arr);
  728. let i;
  729. const len = keys.length;
  730. let key;
  731. for (i = 0; i < len; i++) {
  732. key = keys[i];
  733. obj[key] = arr[key];
  734. }
  735. return obj;
  736. }
  737. function formDataToJSON(formData) {
  738. function buildPath(path, value, target, index) {
  739. let name = path[index++];
  740. const isNumericKey = Number.isFinite(+name);
  741. const isLast = index >= path.length;
  742. name = !name && utils_default.isArray(target) ? target.length : name;
  743. if (isLast) {
  744. if (utils_default.hasOwnProp(target, name)) {
  745. target[name] = [target[name], value];
  746. } else {
  747. target[name] = value;
  748. }
  749. return !isNumericKey;
  750. }
  751. if (!target[name] || !utils_default.isObject(target[name])) {
  752. target[name] = [];
  753. }
  754. const result = buildPath(path, value, target[name], index);
  755. if (result && utils_default.isArray(target[name])) {
  756. target[name] = arrayToObject(target[name]);
  757. }
  758. return !isNumericKey;
  759. }
  760. if (utils_default.isFormData(formData) && utils_default.isFunction(formData.entries)) {
  761. const obj = {};
  762. utils_default.forEachEntry(formData, (name, value) => {
  763. buildPath(parsePropPath(name), value, obj, 0);
  764. });
  765. return obj;
  766. }
  767. return null;
  768. }
  769. var formDataToJSON_default = formDataToJSON;
  770. // node_modules/axios/lib/defaults/index.js
  771. var DEFAULT_CONTENT_TYPE = {
  772. "Content-Type": void 0
  773. };
  774. function stringifySafely(rawValue, parser, encoder) {
  775. if (utils_default.isString(rawValue)) {
  776. try {
  777. (parser || JSON.parse)(rawValue);
  778. return utils_default.trim(rawValue);
  779. } catch (e) {
  780. if (e.name !== "SyntaxError") {
  781. throw e;
  782. }
  783. }
  784. }
  785. return (encoder || JSON.stringify)(rawValue);
  786. }
  787. var defaults = {
  788. transitional: transitional_default,
  789. adapter: ["xhr", "http"],
  790. transformRequest: [function transformRequest(data, headers) {
  791. const contentType = headers.getContentType() || "";
  792. const hasJSONContentType = contentType.indexOf("application/json") > -1;
  793. const isObjectPayload = utils_default.isObject(data);
  794. if (isObjectPayload && utils_default.isHTMLForm(data)) {
  795. data = new FormData(data);
  796. }
  797. const isFormData2 = utils_default.isFormData(data);
  798. if (isFormData2) {
  799. if (!hasJSONContentType) {
  800. return data;
  801. }
  802. return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
  803. }
  804. if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
  805. return data;
  806. }
  807. if (utils_default.isArrayBufferView(data)) {
  808. return data.buffer;
  809. }
  810. if (utils_default.isURLSearchParams(data)) {
  811. headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
  812. return data.toString();
  813. }
  814. let isFileList2;
  815. if (isObjectPayload) {
  816. if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
  817. return toURLEncodedForm(data, this.formSerializer).toString();
  818. }
  819. if ((isFileList2 = utils_default.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
  820. const _FormData = this.env && this.env.FormData;
  821. return toFormData_default(
  822. isFileList2 ? { "files[]": data } : data,
  823. _FormData && new _FormData(),
  824. this.formSerializer
  825. );
  826. }
  827. }
  828. if (isObjectPayload || hasJSONContentType) {
  829. headers.setContentType("application/json", false);
  830. return stringifySafely(data);
  831. }
  832. return data;
  833. }],
  834. transformResponse: [function transformResponse(data) {
  835. const transitional2 = this.transitional || defaults.transitional;
  836. const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
  837. const JSONRequested = this.responseType === "json";
  838. if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
  839. const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
  840. const strictJSONParsing = !silentJSONParsing && JSONRequested;
  841. try {
  842. return JSON.parse(data);
  843. } catch (e) {
  844. if (strictJSONParsing) {
  845. if (e.name === "SyntaxError") {
  846. throw AxiosError_default.from(e, AxiosError_default.ERR_BAD_RESPONSE, this, null, this.response);
  847. }
  848. throw e;
  849. }
  850. }
  851. }
  852. return data;
  853. }],
  854. /**
  855. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  856. * timeout is not created.
  857. */
  858. timeout: 0,
  859. xsrfCookieName: "XSRF-TOKEN",
  860. xsrfHeaderName: "X-XSRF-TOKEN",
  861. maxContentLength: -1,
  862. maxBodyLength: -1,
  863. env: {
  864. FormData: browser_default.classes.FormData,
  865. Blob: browser_default.classes.Blob
  866. },
  867. validateStatus: function validateStatus(status) {
  868. return status >= 200 && status < 300;
  869. },
  870. headers: {
  871. common: {
  872. "Accept": "application/json, text/plain, */*"
  873. }
  874. }
  875. };
  876. utils_default.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
  877. defaults.headers[method] = {};
  878. });
  879. utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
  880. defaults.headers[method] = utils_default.merge(DEFAULT_CONTENT_TYPE);
  881. });
  882. var defaults_default = defaults;
  883. // node_modules/axios/lib/helpers/parseHeaders.js
  884. var ignoreDuplicateOf = utils_default.toObjectSet([
  885. "age",
  886. "authorization",
  887. "content-length",
  888. "content-type",
  889. "etag",
  890. "expires",
  891. "from",
  892. "host",
  893. "if-modified-since",
  894. "if-unmodified-since",
  895. "last-modified",
  896. "location",
  897. "max-forwards",
  898. "proxy-authorization",
  899. "referer",
  900. "retry-after",
  901. "user-agent"
  902. ]);
  903. var parseHeaders_default = (rawHeaders) => {
  904. const parsed = {};
  905. let key;
  906. let val;
  907. let i;
  908. rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
  909. i = line.indexOf(":");
  910. key = line.substring(0, i).trim().toLowerCase();
  911. val = line.substring(i + 1).trim();
  912. if (!key || parsed[key] && ignoreDuplicateOf[key]) {
  913. return;
  914. }
  915. if (key === "set-cookie") {
  916. if (parsed[key]) {
  917. parsed[key].push(val);
  918. } else {
  919. parsed[key] = [val];
  920. }
  921. } else {
  922. parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
  923. }
  924. });
  925. return parsed;
  926. };
  927. // node_modules/axios/lib/core/AxiosHeaders.js
  928. var $internals = Symbol("internals");
  929. function normalizeHeader(header) {
  930. return header && String(header).trim().toLowerCase();
  931. }
  932. function normalizeValue(value) {
  933. if (value === false || value == null) {
  934. return value;
  935. }
  936. return utils_default.isArray(value) ? value.map(normalizeValue) : String(value);
  937. }
  938. function parseTokens(str) {
  939. const tokens = /* @__PURE__ */ Object.create(null);
  940. const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  941. let match;
  942. while (match = tokensRE.exec(str)) {
  943. tokens[match[1]] = match[2];
  944. }
  945. return tokens;
  946. }
  947. var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
  948. function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
  949. if (utils_default.isFunction(filter2)) {
  950. return filter2.call(this, value, header);
  951. }
  952. if (isHeaderNameFilter) {
  953. value = header;
  954. }
  955. if (!utils_default.isString(value))
  956. return;
  957. if (utils_default.isString(filter2)) {
  958. return value.indexOf(filter2) !== -1;
  959. }
  960. if (utils_default.isRegExp(filter2)) {
  961. return filter2.test(value);
  962. }
  963. }
  964. function formatHeader(header) {
  965. return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
  966. return char.toUpperCase() + str;
  967. });
  968. }
  969. function buildAccessors(obj, header) {
  970. const accessorName = utils_default.toCamelCase(" " + header);
  971. ["get", "set", "has"].forEach((methodName) => {
  972. Object.defineProperty(obj, methodName + accessorName, {
  973. value: function(arg1, arg2, arg3) {
  974. return this[methodName].call(this, header, arg1, arg2, arg3);
  975. },
  976. configurable: true
  977. });
  978. });
  979. }
  980. var AxiosHeaders = class {
  981. constructor(headers) {
  982. headers && this.set(headers);
  983. }
  984. set(header, valueOrRewrite, rewrite) {
  985. const self2 = this;
  986. function setHeader(_value, _header, _rewrite) {
  987. const lHeader = normalizeHeader(_header);
  988. if (!lHeader) {
  989. throw new Error("header name must be a non-empty string");
  990. }
  991. const key = utils_default.findKey(self2, lHeader);
  992. if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
  993. self2[key || _header] = normalizeValue(_value);
  994. }
  995. }
  996. const setHeaders = (headers, _rewrite) => utils_default.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
  997. if (utils_default.isPlainObject(header) || header instanceof this.constructor) {
  998. setHeaders(header, valueOrRewrite);
  999. } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
  1000. setHeaders(parseHeaders_default(header), valueOrRewrite);
  1001. } else {
  1002. header != null && setHeader(valueOrRewrite, header, rewrite);
  1003. }
  1004. return this;
  1005. }
  1006. get(header, parser) {
  1007. header = normalizeHeader(header);
  1008. if (header) {
  1009. const key = utils_default.findKey(this, header);
  1010. if (key) {
  1011. const value = this[key];
  1012. if (!parser) {
  1013. return value;
  1014. }
  1015. if (parser === true) {
  1016. return parseTokens(value);
  1017. }
  1018. if (utils_default.isFunction(parser)) {
  1019. return parser.call(this, value, key);
  1020. }
  1021. if (utils_default.isRegExp(parser)) {
  1022. return parser.exec(value);
  1023. }
  1024. throw new TypeError("parser must be boolean|regexp|function");
  1025. }
  1026. }
  1027. }
  1028. has(header, matcher) {
  1029. header = normalizeHeader(header);
  1030. if (header) {
  1031. const key = utils_default.findKey(this, header);
  1032. return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
  1033. }
  1034. return false;
  1035. }
  1036. delete(header, matcher) {
  1037. const self2 = this;
  1038. let deleted = false;
  1039. function deleteHeader(_header) {
  1040. _header = normalizeHeader(_header);
  1041. if (_header) {
  1042. const key = utils_default.findKey(self2, _header);
  1043. if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
  1044. delete self2[key];
  1045. deleted = true;
  1046. }
  1047. }
  1048. }
  1049. if (utils_default.isArray(header)) {
  1050. header.forEach(deleteHeader);
  1051. } else {
  1052. deleteHeader(header);
  1053. }
  1054. return deleted;
  1055. }
  1056. clear(matcher) {
  1057. const keys = Object.keys(this);
  1058. let i = keys.length;
  1059. let deleted = false;
  1060. while (i--) {
  1061. const key = keys[i];
  1062. if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
  1063. delete this[key];
  1064. deleted = true;
  1065. }
  1066. }
  1067. return deleted;
  1068. }
  1069. normalize(format) {
  1070. const self2 = this;
  1071. const headers = {};
  1072. utils_default.forEach(this, (value, header) => {
  1073. const key = utils_default.findKey(headers, header);
  1074. if (key) {
  1075. self2[key] = normalizeValue(value);
  1076. delete self2[header];
  1077. return;
  1078. }
  1079. const normalized = format ? formatHeader(header) : String(header).trim();
  1080. if (normalized !== header) {
  1081. delete self2[header];
  1082. }
  1083. self2[normalized] = normalizeValue(value);
  1084. headers[normalized] = true;
  1085. });
  1086. return this;
  1087. }
  1088. concat(...targets) {
  1089. return this.constructor.concat(this, ...targets);
  1090. }
  1091. toJSON(asStrings) {
  1092. const obj = /* @__PURE__ */ Object.create(null);
  1093. utils_default.forEach(this, (value, header) => {
  1094. value != null && value !== false && (obj[header] = asStrings && utils_default.isArray(value) ? value.join(", ") : value);
  1095. });
  1096. return obj;
  1097. }
  1098. [Symbol.iterator]() {
  1099. return Object.entries(this.toJSON())[Symbol.iterator]();
  1100. }
  1101. toString() {
  1102. return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
  1103. }
  1104. get [Symbol.toStringTag]() {
  1105. return "AxiosHeaders";
  1106. }
  1107. static from(thing) {
  1108. return thing instanceof this ? thing : new this(thing);
  1109. }
  1110. static concat(first, ...targets) {
  1111. const computed = new this(first);
  1112. targets.forEach((target) => computed.set(target));
  1113. return computed;
  1114. }
  1115. static accessor(header) {
  1116. const internals = this[$internals] = this[$internals] = {
  1117. accessors: {}
  1118. };
  1119. const accessors = internals.accessors;
  1120. const prototype3 = this.prototype;
  1121. function defineAccessor(_header) {
  1122. const lHeader = normalizeHeader(_header);
  1123. if (!accessors[lHeader]) {
  1124. buildAccessors(prototype3, _header);
  1125. accessors[lHeader] = true;
  1126. }
  1127. }
  1128. utils_default.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
  1129. return this;
  1130. }
  1131. };
  1132. AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
  1133. utils_default.freezeMethods(AxiosHeaders.prototype);
  1134. utils_default.freezeMethods(AxiosHeaders);
  1135. var AxiosHeaders_default = AxiosHeaders;
  1136. // node_modules/axios/lib/core/transformData.js
  1137. function transformData(fns, response) {
  1138. const config = this || defaults_default;
  1139. const context = response || config;
  1140. const headers = AxiosHeaders_default.from(context.headers);
  1141. let data = context.data;
  1142. utils_default.forEach(fns, function transform(fn) {
  1143. data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
  1144. });
  1145. headers.normalize();
  1146. return data;
  1147. }
  1148. // node_modules/axios/lib/cancel/isCancel.js
  1149. function isCancel(value) {
  1150. return !!(value && value.__CANCEL__);
  1151. }
  1152. // node_modules/axios/lib/cancel/CanceledError.js
  1153. function CanceledError(message, config, request) {
  1154. AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
  1155. this.name = "CanceledError";
  1156. }
  1157. utils_default.inherits(CanceledError, AxiosError_default, {
  1158. __CANCEL__: true
  1159. });
  1160. var CanceledError_default = CanceledError;
  1161. // node_modules/axios/lib/core/settle.js
  1162. function settle(resolve, reject, response) {
  1163. const validateStatus2 = response.config.validateStatus;
  1164. if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
  1165. resolve(response);
  1166. } else {
  1167. reject(new AxiosError_default(
  1168. "Request failed with status code " + response.status,
  1169. [AxiosError_default.ERR_BAD_REQUEST, AxiosError_default.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
  1170. response.config,
  1171. response.request,
  1172. response
  1173. ));
  1174. }
  1175. }
  1176. // node_modules/axios/lib/helpers/cookies.js
  1177. var cookies_default = browser_default.isStandardBrowserEnv ? (
  1178. // Standard browser envs support document.cookie
  1179. function standardBrowserEnv() {
  1180. return {
  1181. write: function write(name, value, expires, path, domain, secure) {
  1182. const cookie = [];
  1183. cookie.push(name + "=" + encodeURIComponent(value));
  1184. if (utils_default.isNumber(expires)) {
  1185. cookie.push("expires=" + new Date(expires).toGMTString());
  1186. }
  1187. if (utils_default.isString(path)) {
  1188. cookie.push("path=" + path);
  1189. }
  1190. if (utils_default.isString(domain)) {
  1191. cookie.push("domain=" + domain);
  1192. }
  1193. if (secure === true) {
  1194. cookie.push("secure");
  1195. }
  1196. document.cookie = cookie.join("; ");
  1197. },
  1198. read: function read(name) {
  1199. const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
  1200. return match ? decodeURIComponent(match[3]) : null;
  1201. },
  1202. remove: function remove(name) {
  1203. this.write(name, "", Date.now() - 864e5);
  1204. }
  1205. };
  1206. }()
  1207. ) : (
  1208. // Non standard browser env (web workers, react-native) lack needed support.
  1209. function nonStandardBrowserEnv() {
  1210. return {
  1211. write: function write() {
  1212. },
  1213. read: function read() {
  1214. return null;
  1215. },
  1216. remove: function remove() {
  1217. }
  1218. };
  1219. }()
  1220. );
  1221. // node_modules/axios/lib/helpers/isAbsoluteURL.js
  1222. function isAbsoluteURL(url) {
  1223. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  1224. }
  1225. // node_modules/axios/lib/helpers/combineURLs.js
  1226. function combineURLs(baseURL, relativeURL) {
  1227. return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
  1228. }
  1229. // node_modules/axios/lib/core/buildFullPath.js
  1230. function buildFullPath(baseURL, requestedURL) {
  1231. if (baseURL && !isAbsoluteURL(requestedURL)) {
  1232. return combineURLs(baseURL, requestedURL);
  1233. }
  1234. return requestedURL;
  1235. }
  1236. // node_modules/axios/lib/helpers/isURLSameOrigin.js
  1237. var isURLSameOrigin_default = browser_default.isStandardBrowserEnv ? (
  1238. // Standard browser envs have full support of the APIs needed to test
  1239. // whether the request URL is of the same origin as current location.
  1240. function standardBrowserEnv2() {
  1241. const msie = /(msie|trident)/i.test(navigator.userAgent);
  1242. const urlParsingNode = document.createElement("a");
  1243. let originURL;
  1244. function resolveURL(url) {
  1245. let href = url;
  1246. if (msie) {
  1247. urlParsingNode.setAttribute("href", href);
  1248. href = urlParsingNode.href;
  1249. }
  1250. urlParsingNode.setAttribute("href", href);
  1251. return {
  1252. href: urlParsingNode.href,
  1253. protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
  1254. host: urlParsingNode.host,
  1255. search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
  1256. hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
  1257. hostname: urlParsingNode.hostname,
  1258. port: urlParsingNode.port,
  1259. pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
  1260. };
  1261. }
  1262. originURL = resolveURL(window.location.href);
  1263. return function isURLSameOrigin(requestURL) {
  1264. const parsed = utils_default.isString(requestURL) ? resolveURL(requestURL) : requestURL;
  1265. return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
  1266. };
  1267. }()
  1268. ) : (
  1269. // Non standard browser envs (web workers, react-native) lack needed support.
  1270. function nonStandardBrowserEnv2() {
  1271. return function isURLSameOrigin() {
  1272. return true;
  1273. };
  1274. }()
  1275. );
  1276. // node_modules/axios/lib/helpers/parseProtocol.js
  1277. function parseProtocol(url) {
  1278. const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
  1279. return match && match[1] || "";
  1280. }
  1281. // node_modules/axios/lib/helpers/speedometer.js
  1282. function speedometer(samplesCount, min) {
  1283. samplesCount = samplesCount || 10;
  1284. const bytes = new Array(samplesCount);
  1285. const timestamps = new Array(samplesCount);
  1286. let head = 0;
  1287. let tail = 0;
  1288. let firstSampleTS;
  1289. min = min !== void 0 ? min : 1e3;
  1290. return function push(chunkLength) {
  1291. const now = Date.now();
  1292. const startedAt = timestamps[tail];
  1293. if (!firstSampleTS) {
  1294. firstSampleTS = now;
  1295. }
  1296. bytes[head] = chunkLength;
  1297. timestamps[head] = now;
  1298. let i = tail;
  1299. let bytesCount = 0;
  1300. while (i !== head) {
  1301. bytesCount += bytes[i++];
  1302. i = i % samplesCount;
  1303. }
  1304. head = (head + 1) % samplesCount;
  1305. if (head === tail) {
  1306. tail = (tail + 1) % samplesCount;
  1307. }
  1308. if (now - firstSampleTS < min) {
  1309. return;
  1310. }
  1311. const passed = startedAt && now - startedAt;
  1312. return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
  1313. };
  1314. }
  1315. var speedometer_default = speedometer;
  1316. // node_modules/axios/lib/adapters/xhr.js
  1317. function progressEventReducer(listener, isDownloadStream) {
  1318. let bytesNotified = 0;
  1319. const _speedometer = speedometer_default(50, 250);
  1320. return (e) => {
  1321. const loaded = e.loaded;
  1322. const total = e.lengthComputable ? e.total : void 0;
  1323. const progressBytes = loaded - bytesNotified;
  1324. const rate = _speedometer(progressBytes);
  1325. const inRange = loaded <= total;
  1326. bytesNotified = loaded;
  1327. const data = {
  1328. loaded,
  1329. total,
  1330. progress: total ? loaded / total : void 0,
  1331. bytes: progressBytes,
  1332. rate: rate ? rate : void 0,
  1333. estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
  1334. event: e
  1335. };
  1336. data[isDownloadStream ? "download" : "upload"] = true;
  1337. listener(data);
  1338. };
  1339. }
  1340. var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
  1341. var xhr_default = isXHRAdapterSupported && function(config) {
  1342. return new Promise(function dispatchXhrRequest(resolve, reject) {
  1343. let requestData = config.data;
  1344. const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
  1345. const responseType = config.responseType;
  1346. let onCanceled;
  1347. function done() {
  1348. if (config.cancelToken) {
  1349. config.cancelToken.unsubscribe(onCanceled);
  1350. }
  1351. if (config.signal) {
  1352. config.signal.removeEventListener("abort", onCanceled);
  1353. }
  1354. }
  1355. if (utils_default.isFormData(requestData)) {
  1356. if (browser_default.isStandardBrowserEnv || browser_default.isStandardBrowserWebWorkerEnv) {
  1357. requestHeaders.setContentType(false);
  1358. } else {
  1359. requestHeaders.setContentType("multipart/form-data;", false);
  1360. }
  1361. }
  1362. let request = new XMLHttpRequest();
  1363. if (config.auth) {
  1364. const username = config.auth.username || "";
  1365. const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
  1366. requestHeaders.set("Authorization", "Basic " + btoa(username + ":" + password));
  1367. }
  1368. const fullPath = buildFullPath(config.baseURL, config.url);
  1369. request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
  1370. request.timeout = config.timeout;
  1371. function onloadend() {
  1372. if (!request) {
  1373. return;
  1374. }
  1375. const responseHeaders = AxiosHeaders_default.from(
  1376. "getAllResponseHeaders" in request && request.getAllResponseHeaders()
  1377. );
  1378. const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
  1379. const response = {
  1380. data: responseData,
  1381. status: request.status,
  1382. statusText: request.statusText,
  1383. headers: responseHeaders,
  1384. config,
  1385. request
  1386. };
  1387. settle(function _resolve(value) {
  1388. resolve(value);
  1389. done();
  1390. }, function _reject(err) {
  1391. reject(err);
  1392. done();
  1393. }, response);
  1394. request = null;
  1395. }
  1396. if ("onloadend" in request) {
  1397. request.onloadend = onloadend;
  1398. } else {
  1399. request.onreadystatechange = function handleLoad() {
  1400. if (!request || request.readyState !== 4) {
  1401. return;
  1402. }
  1403. if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
  1404. return;
  1405. }
  1406. setTimeout(onloadend);
  1407. };
  1408. }
  1409. request.onabort = function handleAbort() {
  1410. if (!request) {
  1411. return;
  1412. }
  1413. reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
  1414. request = null;
  1415. };
  1416. request.onerror = function handleError() {
  1417. reject(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request));
  1418. request = null;
  1419. };
  1420. request.ontimeout = function handleTimeout() {
  1421. let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
  1422. const transitional2 = config.transitional || transitional_default;
  1423. if (config.timeoutErrorMessage) {
  1424. timeoutErrorMessage = config.timeoutErrorMessage;
  1425. }
  1426. reject(new AxiosError_default(
  1427. timeoutErrorMessage,
  1428. transitional2.clarifyTimeoutError ? AxiosError_default.ETIMEDOUT : AxiosError_default.ECONNABORTED,
  1429. config,
  1430. request
  1431. ));
  1432. request = null;
  1433. };
  1434. if (browser_default.isStandardBrowserEnv) {
  1435. const xsrfValue = (config.withCredentials || isURLSameOrigin_default(fullPath)) && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
  1436. if (xsrfValue) {
  1437. requestHeaders.set(config.xsrfHeaderName, xsrfValue);
  1438. }
  1439. }
  1440. requestData === void 0 && requestHeaders.setContentType(null);
  1441. if ("setRequestHeader" in request) {
  1442. utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
  1443. request.setRequestHeader(key, val);
  1444. });
  1445. }
  1446. if (!utils_default.isUndefined(config.withCredentials)) {
  1447. request.withCredentials = !!config.withCredentials;
  1448. }
  1449. if (responseType && responseType !== "json") {
  1450. request.responseType = config.responseType;
  1451. }
  1452. if (typeof config.onDownloadProgress === "function") {
  1453. request.addEventListener("progress", progressEventReducer(config.onDownloadProgress, true));
  1454. }
  1455. if (typeof config.onUploadProgress === "function" && request.upload) {
  1456. request.upload.addEventListener("progress", progressEventReducer(config.onUploadProgress));
  1457. }
  1458. if (config.cancelToken || config.signal) {
  1459. onCanceled = (cancel) => {
  1460. if (!request) {
  1461. return;
  1462. }
  1463. reject(!cancel || cancel.type ? new CanceledError_default(null, config, request) : cancel);
  1464. request.abort();
  1465. request = null;
  1466. };
  1467. config.cancelToken && config.cancelToken.subscribe(onCanceled);
  1468. if (config.signal) {
  1469. config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled);
  1470. }
  1471. }
  1472. const protocol = parseProtocol(fullPath);
  1473. if (protocol && browser_default.protocols.indexOf(protocol) === -1) {
  1474. reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
  1475. return;
  1476. }
  1477. request.send(requestData || null);
  1478. });
  1479. };
  1480. // node_modules/axios/lib/adapters/adapters.js
  1481. var knownAdapters = {
  1482. http: null_default,
  1483. xhr: xhr_default
  1484. };
  1485. utils_default.forEach(knownAdapters, (fn, value) => {
  1486. if (fn) {
  1487. try {
  1488. Object.defineProperty(fn, "name", { value });
  1489. } catch (e) {
  1490. }
  1491. Object.defineProperty(fn, "adapterName", { value });
  1492. }
  1493. });
  1494. var adapters_default = {
  1495. getAdapter: (adapters) => {
  1496. adapters = utils_default.isArray(adapters) ? adapters : [adapters];
  1497. const { length } = adapters;
  1498. let nameOrAdapter;
  1499. let adapter;
  1500. for (let i = 0; i < length; i++) {
  1501. nameOrAdapter = adapters[i];
  1502. if (adapter = utils_default.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter) {
  1503. break;
  1504. }
  1505. }
  1506. if (!adapter) {
  1507. if (adapter === false) {
  1508. throw new AxiosError_default(
  1509. `Adapter ${nameOrAdapter} is not supported by the environment`,
  1510. "ERR_NOT_SUPPORT"
  1511. );
  1512. }
  1513. throw new Error(
  1514. utils_default.hasOwnProp(knownAdapters, nameOrAdapter) ? `Adapter '${nameOrAdapter}' is not available in the build` : `Unknown adapter '${nameOrAdapter}'`
  1515. );
  1516. }
  1517. if (!utils_default.isFunction(adapter)) {
  1518. throw new TypeError("adapter is not a function");
  1519. }
  1520. return adapter;
  1521. },
  1522. adapters: knownAdapters
  1523. };
  1524. // node_modules/axios/lib/core/dispatchRequest.js
  1525. function throwIfCancellationRequested(config) {
  1526. if (config.cancelToken) {
  1527. config.cancelToken.throwIfRequested();
  1528. }
  1529. if (config.signal && config.signal.aborted) {
  1530. throw new CanceledError_default(null, config);
  1531. }
  1532. }
  1533. function dispatchRequest(config) {
  1534. throwIfCancellationRequested(config);
  1535. config.headers = AxiosHeaders_default.from(config.headers);
  1536. config.data = transformData.call(
  1537. config,
  1538. config.transformRequest
  1539. );
  1540. if (["post", "put", "patch"].indexOf(config.method) !== -1) {
  1541. config.headers.setContentType("application/x-www-form-urlencoded", false);
  1542. }
  1543. const adapter = adapters_default.getAdapter(config.adapter || defaults_default.adapter);
  1544. return adapter(config).then(function onAdapterResolution(response) {
  1545. throwIfCancellationRequested(config);
  1546. response.data = transformData.call(
  1547. config,
  1548. config.transformResponse,
  1549. response
  1550. );
  1551. response.headers = AxiosHeaders_default.from(response.headers);
  1552. return response;
  1553. }, function onAdapterRejection(reason) {
  1554. if (!isCancel(reason)) {
  1555. throwIfCancellationRequested(config);
  1556. if (reason && reason.response) {
  1557. reason.response.data = transformData.call(
  1558. config,
  1559. config.transformResponse,
  1560. reason.response
  1561. );
  1562. reason.response.headers = AxiosHeaders_default.from(reason.response.headers);
  1563. }
  1564. }
  1565. return Promise.reject(reason);
  1566. });
  1567. }
  1568. // node_modules/axios/lib/core/mergeConfig.js
  1569. var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
  1570. function mergeConfig(config1, config2) {
  1571. config2 = config2 || {};
  1572. const config = {};
  1573. function getMergedValue(target, source, caseless) {
  1574. if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
  1575. return utils_default.merge.call({ caseless }, target, source);
  1576. } else if (utils_default.isPlainObject(source)) {
  1577. return utils_default.merge({}, source);
  1578. } else if (utils_default.isArray(source)) {
  1579. return source.slice();
  1580. }
  1581. return source;
  1582. }
  1583. function mergeDeepProperties(a, b, caseless) {
  1584. if (!utils_default.isUndefined(b)) {
  1585. return getMergedValue(a, b, caseless);
  1586. } else if (!utils_default.isUndefined(a)) {
  1587. return getMergedValue(void 0, a, caseless);
  1588. }
  1589. }
  1590. function valueFromConfig2(a, b) {
  1591. if (!utils_default.isUndefined(b)) {
  1592. return getMergedValue(void 0, b);
  1593. }
  1594. }
  1595. function defaultToConfig2(a, b) {
  1596. if (!utils_default.isUndefined(b)) {
  1597. return getMergedValue(void 0, b);
  1598. } else if (!utils_default.isUndefined(a)) {
  1599. return getMergedValue(void 0, a);
  1600. }
  1601. }
  1602. function mergeDirectKeys(a, b, prop) {
  1603. if (prop in config2) {
  1604. return getMergedValue(a, b);
  1605. } else if (prop in config1) {
  1606. return getMergedValue(void 0, a);
  1607. }
  1608. }
  1609. const mergeMap = {
  1610. url: valueFromConfig2,
  1611. method: valueFromConfig2,
  1612. data: valueFromConfig2,
  1613. baseURL: defaultToConfig2,
  1614. transformRequest: defaultToConfig2,
  1615. transformResponse: defaultToConfig2,
  1616. paramsSerializer: defaultToConfig2,
  1617. timeout: defaultToConfig2,
  1618. timeoutMessage: defaultToConfig2,
  1619. withCredentials: defaultToConfig2,
  1620. adapter: defaultToConfig2,
  1621. responseType: defaultToConfig2,
  1622. xsrfCookieName: defaultToConfig2,
  1623. xsrfHeaderName: defaultToConfig2,
  1624. onUploadProgress: defaultToConfig2,
  1625. onDownloadProgress: defaultToConfig2,
  1626. decompress: defaultToConfig2,
  1627. maxContentLength: defaultToConfig2,
  1628. maxBodyLength: defaultToConfig2,
  1629. beforeRedirect: defaultToConfig2,
  1630. transport: defaultToConfig2,
  1631. httpAgent: defaultToConfig2,
  1632. httpsAgent: defaultToConfig2,
  1633. cancelToken: defaultToConfig2,
  1634. socketPath: defaultToConfig2,
  1635. responseEncoding: defaultToConfig2,
  1636. validateStatus: mergeDirectKeys,
  1637. headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
  1638. };
  1639. utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
  1640. const merge2 = mergeMap[prop] || mergeDeepProperties;
  1641. const configValue = merge2(config1[prop], config2[prop], prop);
  1642. utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
  1643. });
  1644. return config;
  1645. }
  1646. // node_modules/axios/lib/env/data.js
  1647. var VERSION = "1.4.0";
  1648. // node_modules/axios/lib/helpers/validator.js
  1649. var validators = {};
  1650. ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
  1651. validators[type] = function validator(thing) {
  1652. return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
  1653. };
  1654. });
  1655. var deprecatedWarnings = {};
  1656. validators.transitional = function transitional(validator, version, message) {
  1657. function formatMessage(opt, desc) {
  1658. return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
  1659. }
  1660. return (value, opt, opts) => {
  1661. if (validator === false) {
  1662. throw new AxiosError_default(
  1663. formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
  1664. AxiosError_default.ERR_DEPRECATED
  1665. );
  1666. }
  1667. if (version && !deprecatedWarnings[opt]) {
  1668. deprecatedWarnings[opt] = true;
  1669. console.warn(
  1670. formatMessage(
  1671. opt,
  1672. " has been deprecated since v" + version + " and will be removed in the near future"
  1673. )
  1674. );
  1675. }
  1676. return validator ? validator(value, opt, opts) : true;
  1677. };
  1678. };
  1679. function assertOptions(options, schema, allowUnknown) {
  1680. if (typeof options !== "object") {
  1681. throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
  1682. }
  1683. const keys = Object.keys(options);
  1684. let i = keys.length;
  1685. while (i-- > 0) {
  1686. const opt = keys[i];
  1687. const validator = schema[opt];
  1688. if (validator) {
  1689. const value = options[opt];
  1690. const result = value === void 0 || validator(value, opt, options);
  1691. if (result !== true) {
  1692. throw new AxiosError_default("option " + opt + " must be " + result, AxiosError_default.ERR_BAD_OPTION_VALUE);
  1693. }
  1694. continue;
  1695. }
  1696. if (allowUnknown !== true) {
  1697. throw new AxiosError_default("Unknown option " + opt, AxiosError_default.ERR_BAD_OPTION);
  1698. }
  1699. }
  1700. }
  1701. var validator_default = {
  1702. assertOptions,
  1703. validators
  1704. };
  1705. // node_modules/axios/lib/core/Axios.js
  1706. var validators2 = validator_default.validators;
  1707. var Axios = class {
  1708. constructor(instanceConfig) {
  1709. this.defaults = instanceConfig;
  1710. this.interceptors = {
  1711. request: new InterceptorManager_default(),
  1712. response: new InterceptorManager_default()
  1713. };
  1714. }
  1715. /**
  1716. * Dispatch a request
  1717. *
  1718. * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
  1719. * @param {?Object} config
  1720. *
  1721. * @returns {Promise} The Promise to be fulfilled
  1722. */
  1723. request(configOrUrl, config) {
  1724. if (typeof configOrUrl === "string") {
  1725. config = config || {};
  1726. config.url = configOrUrl;
  1727. } else {
  1728. config = configOrUrl || {};
  1729. }
  1730. config = mergeConfig(this.defaults, config);
  1731. const { transitional: transitional2, paramsSerializer, headers } = config;
  1732. if (transitional2 !== void 0) {
  1733. validator_default.assertOptions(transitional2, {
  1734. silentJSONParsing: validators2.transitional(validators2.boolean),
  1735. forcedJSONParsing: validators2.transitional(validators2.boolean),
  1736. clarifyTimeoutError: validators2.transitional(validators2.boolean)
  1737. }, false);
  1738. }
  1739. if (paramsSerializer != null) {
  1740. if (utils_default.isFunction(paramsSerializer)) {
  1741. config.paramsSerializer = {
  1742. serialize: paramsSerializer
  1743. };
  1744. } else {
  1745. validator_default.assertOptions(paramsSerializer, {
  1746. encode: validators2.function,
  1747. serialize: validators2.function
  1748. }, true);
  1749. }
  1750. }
  1751. config.method = (config.method || this.defaults.method || "get").toLowerCase();
  1752. let contextHeaders;
  1753. contextHeaders = headers && utils_default.merge(
  1754. headers.common,
  1755. headers[config.method]
  1756. );
  1757. contextHeaders && utils_default.forEach(
  1758. ["delete", "get", "head", "post", "put", "patch", "common"],
  1759. (method) => {
  1760. delete headers[method];
  1761. }
  1762. );
  1763. config.headers = AxiosHeaders_default.concat(contextHeaders, headers);
  1764. const requestInterceptorChain = [];
  1765. let synchronousRequestInterceptors = true;
  1766. this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
  1767. if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config) === false) {
  1768. return;
  1769. }
  1770. synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
  1771. requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
  1772. });
  1773. const responseInterceptorChain = [];
  1774. this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
  1775. responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
  1776. });
  1777. let promise;
  1778. let i = 0;
  1779. let len;
  1780. if (!synchronousRequestInterceptors) {
  1781. const chain = [dispatchRequest.bind(this), void 0];
  1782. chain.unshift.apply(chain, requestInterceptorChain);
  1783. chain.push.apply(chain, responseInterceptorChain);
  1784. len = chain.length;
  1785. promise = Promise.resolve(config);
  1786. while (i < len) {
  1787. promise = promise.then(chain[i++], chain[i++]);
  1788. }
  1789. return promise;
  1790. }
  1791. len = requestInterceptorChain.length;
  1792. let newConfig = config;
  1793. i = 0;
  1794. while (i < len) {
  1795. const onFulfilled = requestInterceptorChain[i++];
  1796. const onRejected = requestInterceptorChain[i++];
  1797. try {
  1798. newConfig = onFulfilled(newConfig);
  1799. } catch (error) {
  1800. onRejected.call(this, error);
  1801. break;
  1802. }
  1803. }
  1804. try {
  1805. promise = dispatchRequest.call(this, newConfig);
  1806. } catch (error) {
  1807. return Promise.reject(error);
  1808. }
  1809. i = 0;
  1810. len = responseInterceptorChain.length;
  1811. while (i < len) {
  1812. promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
  1813. }
  1814. return promise;
  1815. }
  1816. getUri(config) {
  1817. config = mergeConfig(this.defaults, config);
  1818. const fullPath = buildFullPath(config.baseURL, config.url);
  1819. return buildURL(fullPath, config.params, config.paramsSerializer);
  1820. }
  1821. };
  1822. utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData2(method) {
  1823. Axios.prototype[method] = function(url, config) {
  1824. return this.request(mergeConfig(config || {}, {
  1825. method,
  1826. url,
  1827. data: (config || {}).data
  1828. }));
  1829. };
  1830. });
  1831. utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
  1832. function generateHTTPMethod(isForm) {
  1833. return function httpMethod(url, data, config) {
  1834. return this.request(mergeConfig(config || {}, {
  1835. method,
  1836. headers: isForm ? {
  1837. "Content-Type": "multipart/form-data"
  1838. } : {},
  1839. url,
  1840. data
  1841. }));
  1842. };
  1843. }
  1844. Axios.prototype[method] = generateHTTPMethod();
  1845. Axios.prototype[method + "Form"] = generateHTTPMethod(true);
  1846. });
  1847. var Axios_default = Axios;
  1848. // node_modules/axios/lib/cancel/CancelToken.js
  1849. var CancelToken = class {
  1850. constructor(executor) {
  1851. if (typeof executor !== "function") {
  1852. throw new TypeError("executor must be a function.");
  1853. }
  1854. let resolvePromise;
  1855. this.promise = new Promise(function promiseExecutor(resolve) {
  1856. resolvePromise = resolve;
  1857. });
  1858. const token = this;
  1859. this.promise.then((cancel) => {
  1860. if (!token._listeners)
  1861. return;
  1862. let i = token._listeners.length;
  1863. while (i-- > 0) {
  1864. token._listeners[i](cancel);
  1865. }
  1866. token._listeners = null;
  1867. });
  1868. this.promise.then = (onfulfilled) => {
  1869. let _resolve;
  1870. const promise = new Promise((resolve) => {
  1871. token.subscribe(resolve);
  1872. _resolve = resolve;
  1873. }).then(onfulfilled);
  1874. promise.cancel = function reject() {
  1875. token.unsubscribe(_resolve);
  1876. };
  1877. return promise;
  1878. };
  1879. executor(function cancel(message, config, request) {
  1880. if (token.reason) {
  1881. return;
  1882. }
  1883. token.reason = new CanceledError_default(message, config, request);
  1884. resolvePromise(token.reason);
  1885. });
  1886. }
  1887. /**
  1888. * Throws a `CanceledError` if cancellation has been requested.
  1889. */
  1890. throwIfRequested() {
  1891. if (this.reason) {
  1892. throw this.reason;
  1893. }
  1894. }
  1895. /**
  1896. * Subscribe to the cancel signal
  1897. */
  1898. subscribe(listener) {
  1899. if (this.reason) {
  1900. listener(this.reason);
  1901. return;
  1902. }
  1903. if (this._listeners) {
  1904. this._listeners.push(listener);
  1905. } else {
  1906. this._listeners = [listener];
  1907. }
  1908. }
  1909. /**
  1910. * Unsubscribe from the cancel signal
  1911. */
  1912. unsubscribe(listener) {
  1913. if (!this._listeners) {
  1914. return;
  1915. }
  1916. const index = this._listeners.indexOf(listener);
  1917. if (index !== -1) {
  1918. this._listeners.splice(index, 1);
  1919. }
  1920. }
  1921. /**
  1922. * Returns an object that contains a new `CancelToken` and a function that, when called,
  1923. * cancels the `CancelToken`.
  1924. */
  1925. static source() {
  1926. let cancel;
  1927. const token = new CancelToken(function executor(c) {
  1928. cancel = c;
  1929. });
  1930. return {
  1931. token,
  1932. cancel
  1933. };
  1934. }
  1935. };
  1936. var CancelToken_default = CancelToken;
  1937. // node_modules/axios/lib/helpers/spread.js
  1938. function spread(callback) {
  1939. return function wrap(arr) {
  1940. return callback.apply(null, arr);
  1941. };
  1942. }
  1943. // node_modules/axios/lib/helpers/isAxiosError.js
  1944. function isAxiosError(payload) {
  1945. return utils_default.isObject(payload) && payload.isAxiosError === true;
  1946. }
  1947. // node_modules/axios/lib/helpers/HttpStatusCode.js
  1948. var HttpStatusCode = {
  1949. Continue: 100,
  1950. SwitchingProtocols: 101,
  1951. Processing: 102,
  1952. EarlyHints: 103,
  1953. Ok: 200,
  1954. Created: 201,
  1955. Accepted: 202,
  1956. NonAuthoritativeInformation: 203,
  1957. NoContent: 204,
  1958. ResetContent: 205,
  1959. PartialContent: 206,
  1960. MultiStatus: 207,
  1961. AlreadyReported: 208,
  1962. ImUsed: 226,
  1963. MultipleChoices: 300,
  1964. MovedPermanently: 301,
  1965. Found: 302,
  1966. SeeOther: 303,
  1967. NotModified: 304,
  1968. UseProxy: 305,
  1969. Unused: 306,
  1970. TemporaryRedirect: 307,
  1971. PermanentRedirect: 308,
  1972. BadRequest: 400,
  1973. Unauthorized: 401,
  1974. PaymentRequired: 402,
  1975. Forbidden: 403,
  1976. NotFound: 404,
  1977. MethodNotAllowed: 405,
  1978. NotAcceptable: 406,
  1979. ProxyAuthenticationRequired: 407,
  1980. RequestTimeout: 408,
  1981. Conflict: 409,
  1982. Gone: 410,
  1983. LengthRequired: 411,
  1984. PreconditionFailed: 412,
  1985. PayloadTooLarge: 413,
  1986. UriTooLong: 414,
  1987. UnsupportedMediaType: 415,
  1988. RangeNotSatisfiable: 416,
  1989. ExpectationFailed: 417,
  1990. ImATeapot: 418,
  1991. MisdirectedRequest: 421,
  1992. UnprocessableEntity: 422,
  1993. Locked: 423,
  1994. FailedDependency: 424,
  1995. TooEarly: 425,
  1996. UpgradeRequired: 426,
  1997. PreconditionRequired: 428,
  1998. TooManyRequests: 429,
  1999. RequestHeaderFieldsTooLarge: 431,
  2000. UnavailableForLegalReasons: 451,
  2001. InternalServerError: 500,
  2002. NotImplemented: 501,
  2003. BadGateway: 502,
  2004. ServiceUnavailable: 503,
  2005. GatewayTimeout: 504,
  2006. HttpVersionNotSupported: 505,
  2007. VariantAlsoNegotiates: 506,
  2008. InsufficientStorage: 507,
  2009. LoopDetected: 508,
  2010. NotExtended: 510,
  2011. NetworkAuthenticationRequired: 511
  2012. };
  2013. Object.entries(HttpStatusCode).forEach(([key, value]) => {
  2014. HttpStatusCode[value] = key;
  2015. });
  2016. var HttpStatusCode_default = HttpStatusCode;
  2017. // node_modules/axios/lib/axios.js
  2018. function createInstance(defaultConfig) {
  2019. const context = new Axios_default(defaultConfig);
  2020. const instance = bind(Axios_default.prototype.request, context);
  2021. utils_default.extend(instance, Axios_default.prototype, context, { allOwnKeys: true });
  2022. utils_default.extend(instance, context, null, { allOwnKeys: true });
  2023. instance.create = function create(instanceConfig) {
  2024. return createInstance(mergeConfig(defaultConfig, instanceConfig));
  2025. };
  2026. return instance;
  2027. }
  2028. var axios = createInstance(defaults_default);
  2029. axios.Axios = Axios_default;
  2030. axios.CanceledError = CanceledError_default;
  2031. axios.CancelToken = CancelToken_default;
  2032. axios.isCancel = isCancel;
  2033. axios.VERSION = VERSION;
  2034. axios.toFormData = toFormData_default;
  2035. axios.AxiosError = AxiosError_default;
  2036. axios.Cancel = axios.CanceledError;
  2037. axios.all = function all(promises) {
  2038. return Promise.all(promises);
  2039. };
  2040. axios.spread = spread;
  2041. axios.isAxiosError = isAxiosError;
  2042. axios.mergeConfig = mergeConfig;
  2043. axios.AxiosHeaders = AxiosHeaders_default;
  2044. axios.formToJSON = (thing) => formDataToJSON_default(utils_default.isHTMLForm(thing) ? new FormData(thing) : thing);
  2045. axios.HttpStatusCode = HttpStatusCode_default;
  2046. axios.default = axios;
  2047. var axios_default = axios;
  2048. // node_modules/axios/index.js
  2049. var {
  2050. Axios: Axios2,
  2051. AxiosError: AxiosError2,
  2052. CanceledError: CanceledError2,
  2053. isCancel: isCancel2,
  2054. CancelToken: CancelToken2,
  2055. VERSION: VERSION2,
  2056. all: all2,
  2057. Cancel,
  2058. isAxiosError: isAxiosError2,
  2059. spread: spread2,
  2060. toFormData: toFormData2,
  2061. AxiosHeaders: AxiosHeaders2,
  2062. HttpStatusCode: HttpStatusCode2,
  2063. formToJSON,
  2064. mergeConfig: mergeConfig2
  2065. } = axios_default;
  2066. export {
  2067. Axios2 as Axios,
  2068. AxiosError2 as AxiosError,
  2069. AxiosHeaders2 as AxiosHeaders,
  2070. Cancel,
  2071. CancelToken2 as CancelToken,
  2072. CanceledError2 as CanceledError,
  2073. HttpStatusCode2 as HttpStatusCode,
  2074. VERSION2 as VERSION,
  2075. all2 as all,
  2076. axios_default as default,
  2077. formToJSON,
  2078. isAxiosError2 as isAxiosError,
  2079. isCancel2 as isCancel,
  2080. mergeConfig2 as mergeConfig,
  2081. spread2 as spread,
  2082. toFormData2 as toFormData
  2083. };
  2084. //# sourceMappingURL=axios.js.map