@fefeding/aicmd 1.0.24 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -456,7 +456,7 @@ var init_App = __esmMin((() => {
456
456
  App_default = App_vue_vue_type_script_setup_true_lang_default;
457
457
  }));
458
458
  //#endregion
459
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/bind.js
459
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/bind.js
460
460
  /**
461
461
  * Create a bound version of a function with a specified `this` context
462
462
  *
@@ -471,7 +471,7 @@ function bind(fn, thisArg) {
471
471
  }
472
472
  var init_bind = __esmMin((() => {}));
473
473
  //#endregion
474
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/utils.js
474
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/utils.js
475
475
  /**
476
476
  * Determine if a value is a Buffer
477
477
  *
@@ -615,25 +615,65 @@ function merge(...objs) {
615
615
  function isSpecCompliantForm(thing) {
616
616
  return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
617
617
  }
618
- var toString, getPrototypeOf, iterator, toStringTag, hasOwnProperty, hasOwnInPrototypeChain, getSafeProp, kindOf, kindOfTest, typeOfTest, isArray, isUndefined, isArrayBuffer, isString, isFunction$1, isNumber, isObject, isBoolean, isPlainObject$1, isEmptyObject, isDate, isFile, isReactNativeBlob, isReactNative, isBlob, isFileList, isSet, isStream, G, FormDataCtor, isFormData, isURLSearchParams, isReadableStream, isRequest, isResponse, isHeaders, trim, _global$1, isContextDefined, extend, stripBOM, inherits, toFlatObject, endsWith, toArray, isTypedArray, forEachEntry, matchAll, isHTMLForm, toCamelCase, propertyIsEnumerable, isRegExp, reduceDescriptors, freezeMethods, toObjectSet, noop$1, toFiniteNumber, toJSONObject, isAsyncFn, isThenable, _setImmediate, asap, isIterable, isSafeIterable, utils_default;
618
+ var toString, getPrototypeOf, iterator, toStringTag, hasOwnProperty, isUnsafeObjectKey, isPrototypeBoundary, isSafeAndFullyMutable, hasOwnInPrototypeChain, getSafeProp, toSafeFlatObject, kindOf, kindOfTest, typeOfTest, isArray, isUndefined, isArrayBuffer, isString, isFunction$1, isNumber, isObject, isBoolean, isPlainObject$1, isEmptyObject, isDate, isFile, isReactNativeBlob, isReactNative, isBlob, isFileList, isSet, isStream, G, FormDataCtor, isFormData, isURLSearchParams, isReadableStream, isRequest, isResponse, isHeaders, trim, _global$1, isContextDefined, extend, stripBOM, inherits, toFlatObject, endsWith, toArray, isTypedArray, forEachEntry, matchAll, isHTMLForm, toCamelCase, propertyIsEnumerable, isRegExp, reduceDescriptors, freezeMethods, toObjectSet, noop$1, toFiniteNumber, toJSONObject, isAsyncFn, isThenable, _setImmediate, asap, isIterable, isSafeIterable, utils_default;
619
619
  var init_utils$1 = __esmMin((() => {
620
620
  init_bind();
621
621
  ({toString} = Object.prototype);
622
622
  ({getPrototypeOf} = Object);
623
623
  ({iterator, toStringTag} = Symbol);
624
624
  hasOwnProperty = (({ hasOwnProperty }) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
625
+ isUnsafeObjectKey = (prop) => typeof prop === "string" && (prop === "__proto__" || prop === "constructor" || prop === "prototype");
626
+ isPrototypeBoundary = (obj, prototype, source) => obj === Object.prototype || !source && prototype === null;
627
+ isSafeAndFullyMutable = (obj) => {
628
+ if (!Object.isExtensible(obj)) return false;
629
+ const props = Object.getOwnPropertyNames(obj);
630
+ if (Object.getOwnPropertySymbols) props.push(...Object.getOwnPropertySymbols(obj));
631
+ return props.every((prop) => {
632
+ if (isUnsafeObjectKey(prop)) return false;
633
+ const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
634
+ return !!descriptor && descriptor.configurable && descriptor.writable === true;
635
+ });
636
+ };
625
637
  hasOwnInPrototypeChain = (thing, prop) => {
626
638
  let obj = thing;
627
639
  const seen = [];
628
- while (obj != null && obj !== Object.prototype) {
640
+ while (obj != null) {
629
641
  if (seen.indexOf(obj) !== -1) return false;
630
642
  seen.push(obj);
643
+ const prototype = getPrototypeOf(obj);
644
+ if (isPrototypeBoundary(obj, prototype, obj === thing)) return false;
631
645
  if (hasOwnProperty(obj, prop)) return true;
632
- obj = getPrototypeOf(obj);
646
+ obj = prototype;
633
647
  }
634
648
  return false;
635
649
  };
636
650
  getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : void 0;
651
+ toSafeFlatObject = (thing) => {
652
+ if (thing == null || typeof thing !== "object" && typeof thing !== "function") return thing;
653
+ const sourcePrototype = getPrototypeOf(thing);
654
+ if (sourcePrototype === null && isSafeAndFullyMutable(thing)) return thing;
655
+ const result = Object.create(null);
656
+ const merged = Object.create(null);
657
+ const seen = [];
658
+ let current = thing;
659
+ while (current != null) {
660
+ if (seen.indexOf(current) !== -1) break;
661
+ seen.push(current);
662
+ const prototype = current === thing ? sourcePrototype : getPrototypeOf(current);
663
+ if (isPrototypeBoundary(current, prototype, current === thing)) break;
664
+ const props = Object.getOwnPropertyNames(current);
665
+ if (Object.getOwnPropertySymbols) props.push(...Object.getOwnPropertySymbols(current));
666
+ for (const prop of props) {
667
+ if (isUnsafeObjectKey(prop)) continue;
668
+ if (!hasOwnProperty(merged, prop)) {
669
+ result[prop] = thing[prop];
670
+ merged[prop] = true;
671
+ }
672
+ }
673
+ current = prototype;
674
+ }
675
+ return result;
676
+ };
637
677
  kindOf = ((cache) => (thing) => {
638
678
  const str = toString.call(thing);
639
679
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -937,6 +977,7 @@ var init_utils$1 = __esmMin((() => {
937
977
  hasOwnProp: hasOwnProperty,
938
978
  hasOwnInPrototypeChain,
939
979
  getSafeProp,
980
+ toSafeFlatObject,
940
981
  reduceDescriptors,
941
982
  freezeMethods,
942
983
  toObjectSet,
@@ -957,7 +998,7 @@ var init_utils$1 = __esmMin((() => {
957
998
  };
958
999
  }));
959
1000
  //#endregion
960
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/parseHeaders.js
1001
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/parseHeaders.js
961
1002
  var ignoreDuplicateOf, parseHeaders_default;
962
1003
  var init_parseHeaders = __esmMin((() => {
963
1004
  init_utils$1();
@@ -1000,7 +1041,7 @@ var init_parseHeaders = __esmMin((() => {
1000
1041
  };
1001
1042
  }));
1002
1043
  //#endregion
1003
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
1044
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
1004
1045
  function trimSPorHTAB(str) {
1005
1046
  let start = 0;
1006
1047
  let end = str.length;
@@ -1036,7 +1077,7 @@ var init_sanitizeHeaderValue = __esmMin((() => {
1036
1077
  sanitizeByteStringHeaderValue = (value) => sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
1037
1078
  }));
1038
1079
  //#endregion
1039
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/AxiosHeaders.js
1080
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/AxiosHeaders.js
1040
1081
  function normalizeHeader(header) {
1041
1082
  return header && String(header).trim().toLowerCase();
1042
1083
  }
@@ -1141,12 +1182,12 @@ function buildAccessors(obj, header) {
1141
1182
  });
1142
1183
  });
1143
1184
  }
1144
- var $internals, parameterNameRE, isValidHeaderName, AxiosHeaders;
1185
+ var $internals$1, parameterNameRE, isValidHeaderName, AxiosHeaders;
1145
1186
  var init_AxiosHeaders = __esmMin((() => {
1146
1187
  init_utils$1();
1147
1188
  init_parseHeaders();
1148
1189
  init_sanitizeHeaderValue();
1149
- $internals = Symbol("internals");
1190
+ $internals$1 = Symbol("internals");
1150
1191
  parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
1151
1192
  isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
1152
1193
  AxiosHeaders = class {
@@ -1282,7 +1323,7 @@ var init_AxiosHeaders = __esmMin((() => {
1282
1323
  return computed;
1283
1324
  }
1284
1325
  static accessor(header) {
1285
- const accessors = (this[$internals] = this[$internals] = { accessors: {} }).accessors;
1326
+ const accessors = (this[$internals$1] = this[$internals$1] = { accessors: {} }).accessors;
1286
1327
  const prototype = this.prototype;
1287
1328
  function defineAccessor(_header) {
1288
1329
  const lHeader = normalizeHeader(_header);
@@ -1315,7 +1356,7 @@ var init_AxiosHeaders = __esmMin((() => {
1315
1356
  utils_default.freezeMethods(AxiosHeaders);
1316
1357
  }));
1317
1358
  //#endregion
1318
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/AxiosError.js
1359
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/AxiosError.js
1319
1360
  function hasOwnOrPrototypeToJSON(source) {
1320
1361
  if (utils_default.hasOwnProp(source, "toJSON")) return true;
1321
1362
  let prototype = Object.getPrototypeOf(source);
@@ -1460,10 +1501,10 @@ var init_AxiosError = __esmMin((() => {
1460
1501
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
1461
1502
  }));
1462
1503
  //#endregion
1463
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/null.js
1504
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/null.js
1464
1505
  var init_null = __esmMin((() => {}));
1465
1506
  //#endregion
1466
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/toFormData.js
1507
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/toFormData.js
1467
1508
  /**
1468
1509
  * Determines if the given thing is a array or js object.
1469
1510
  *
@@ -1535,19 +1576,16 @@ function isFlatArray(arr) {
1535
1576
  function toFormData(obj, formData, options) {
1536
1577
  if (!utils_default.isObject(obj)) throw new TypeError("target must be an object");
1537
1578
  formData = formData || new FormData();
1538
- options = utils_default.toFlatObject(options, {
1539
- metaTokens: true,
1540
- dots: false,
1541
- indexes: false
1542
- }, false, function defined(option, source) {
1543
- return !utils_default.isUndefined(source[option]);
1544
- });
1545
- const metaTokens = options.metaTokens;
1546
- const visitor = options.visitor || defaultVisitor;
1547
- const dots = options.dots;
1548
- const indexes = options.indexes;
1549
- const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
1550
- const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
1579
+ const option = (name, fallback) => {
1580
+ const value = utils_default.getSafeProp(options, name);
1581
+ return utils_default.isUndefined(value) ? fallback : value;
1582
+ };
1583
+ const metaTokens = option("metaTokens", true);
1584
+ const visitor = option("visitor") || defaultVisitor;
1585
+ const dots = option("dots", false);
1586
+ const indexes = option("indexes", false);
1587
+ const _Blob = option("Blob") || typeof Blob !== "undefined" && Blob;
1588
+ const maxDepth = option("maxDepth", 100);
1551
1589
  const useBlob = _Blob && utils_default.isSpecCompliantForm(formData);
1552
1590
  const stack = [];
1553
1591
  if (!utils_default.isFunction(visitor)) throw new TypeError("visitor must be a function");
@@ -1637,7 +1675,7 @@ var init_toFormData = __esmMin((() => {
1637
1675
  });
1638
1676
  }));
1639
1677
  //#endregion
1640
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
1678
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
1641
1679
  /**
1642
1680
  * It encodes a string by replacing all characters that are not in the unreserved set with
1643
1681
  * their percent-encoded equivalents
@@ -1686,7 +1724,7 @@ var init_AxiosURLSearchParams = __esmMin((() => {
1686
1724
  };
1687
1725
  }));
1688
1726
  //#endregion
1689
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/buildURL.js
1727
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/buildURL.js
1690
1728
  /**
1691
1729
  * It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
1692
1730
  * their plain counterparts (`:`, `$`, `,`, `+`).
@@ -1728,13 +1766,42 @@ var init_buildURL = __esmMin((() => {
1728
1766
  init_AxiosURLSearchParams();
1729
1767
  }));
1730
1768
  //#endregion
1731
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/InterceptorManager.js
1732
- var InterceptorManager;
1769
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/InterceptorManager.js
1770
+ function countHandlers(handlers) {
1771
+ return handlers ? handlers.length : 0;
1772
+ }
1773
+ function trimHandlers(handlers) {
1774
+ if (!handlers) return;
1775
+ while (handlers.length && handlers[handlers.length - 1] === null) handlers.pop();
1776
+ }
1777
+ function syncHandlerEntries(manager, internals) {
1778
+ const handlers = manager.handlers;
1779
+ const length = countHandlers(handlers);
1780
+ if (handlers !== internals.handlersRef) {
1781
+ internals.handlersRef = handlers;
1782
+ internals.handlerEntries.clear();
1783
+ } else if (length !== internals.handlersLength) {
1784
+ if (!length) internals.handlerEntries.clear();
1785
+ else internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
1786
+ if (handlers[entry.index] !== entry.handler) internals.handlerEntries.delete(id);
1787
+ });
1788
+ }
1789
+ internals.handlersLength = length;
1790
+ }
1791
+ var $internals, InterceptorManager;
1733
1792
  var init_InterceptorManager = __esmMin((() => {
1734
1793
  init_utils$1();
1794
+ $internals = Symbol("internals");
1735
1795
  InterceptorManager = class {
1736
1796
  constructor() {
1737
1797
  this.handlers = [];
1798
+ this[$internals] = {
1799
+ handlersRef: this.handlers,
1800
+ handlersLength: this.handlers.length,
1801
+ handlerEntries: /* @__PURE__ */ new Map(),
1802
+ iterationDepth: 0,
1803
+ nextId: 0
1804
+ };
1738
1805
  }
1739
1806
  /**
1740
1807
  * Add a new interceptor to the stack
@@ -1746,13 +1813,23 @@ var init_InterceptorManager = __esmMin((() => {
1746
1813
  * @return {Number} An ID used to remove interceptor later
1747
1814
  */
1748
1815
  use(fulfilled, rejected, options) {
1749
- this.handlers.push({
1816
+ const handler = {
1750
1817
  fulfilled,
1751
1818
  rejected,
1752
1819
  synchronous: options ? options.synchronous : false,
1753
1820
  runWhen: options ? options.runWhen : null
1821
+ };
1822
+ const internals = this[$internals];
1823
+ if (this.handlers == null) this.handlers = [];
1824
+ syncHandlerEntries(this, internals);
1825
+ const id = internals.nextId++;
1826
+ this.handlers.push(handler);
1827
+ internals.handlerEntries.set(id, {
1828
+ handler,
1829
+ index: this.handlers.length - 1
1754
1830
  });
1755
- return this.handlers.length - 1;
1831
+ internals.handlersLength = this.handlers.length;
1832
+ return id;
1756
1833
  }
1757
1834
  /**
1758
1835
  * Remove an interceptor from the stack
@@ -1762,7 +1839,18 @@ var init_InterceptorManager = __esmMin((() => {
1762
1839
  * @returns {void}
1763
1840
  */
1764
1841
  eject(id) {
1765
- if (this.handlers[id]) this.handlers[id] = null;
1842
+ const internals = this[$internals];
1843
+ syncHandlerEntries(this, internals);
1844
+ const entry = internals.handlerEntries.get(id);
1845
+ if (entry) {
1846
+ internals.handlerEntries.delete(id);
1847
+ if (this.handlers[entry.index] !== entry.handler) return;
1848
+ this.handlers[entry.index] = null;
1849
+ if (!internals.iterationDepth) {
1850
+ trimHandlers(this.handlers);
1851
+ internals.handlersLength = this.handlers.length;
1852
+ }
1853
+ }
1766
1854
  }
1767
1855
  /**
1768
1856
  * Clear all interceptors from the stack
@@ -1770,7 +1858,10 @@ var init_InterceptorManager = __esmMin((() => {
1770
1858
  * @returns {void}
1771
1859
  */
1772
1860
  clear() {
1773
- if (this.handlers) this.handlers = [];
1861
+ if (this.handlers) {
1862
+ this.handlers = [];
1863
+ syncHandlerEntries(this, this[$internals]);
1864
+ }
1774
1865
  }
1775
1866
  /**
1776
1867
  * Iterate over all the registered interceptors
@@ -1783,14 +1874,25 @@ var init_InterceptorManager = __esmMin((() => {
1783
1874
  * @returns {void}
1784
1875
  */
1785
1876
  forEach(fn) {
1786
- utils_default.forEach(this.handlers, function forEachHandler(h) {
1787
- if (h !== null) fn(h);
1788
- });
1877
+ const internals = this[$internals];
1878
+ syncHandlerEntries(this, internals);
1879
+ internals.iterationDepth++;
1880
+ try {
1881
+ utils_default.forEach(this.handlers, function forEachHandler(h) {
1882
+ if (h !== null) fn(h);
1883
+ });
1884
+ } finally {
1885
+ if (!--internals.iterationDepth) {
1886
+ syncHandlerEntries(this, internals);
1887
+ trimHandlers(this.handlers);
1888
+ internals.handlersLength = countHandlers(this.handlers);
1889
+ }
1890
+ }
1789
1891
  }
1790
1892
  };
1791
1893
  }));
1792
1894
  //#endregion
1793
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/defaults/transitional.js
1895
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/defaults/transitional.js
1794
1896
  var transitional_default;
1795
1897
  var init_transitional = __esmMin((() => {
1796
1898
  transitional_default = {
@@ -1803,26 +1905,26 @@ var init_transitional = __esmMin((() => {
1803
1905
  };
1804
1906
  }));
1805
1907
  //#endregion
1806
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
1908
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
1807
1909
  var URLSearchParams_default;
1808
1910
  var init_URLSearchParams = __esmMin((() => {
1809
1911
  init_AxiosURLSearchParams();
1810
1912
  URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
1811
1913
  }));
1812
1914
  //#endregion
1813
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/platform/browser/classes/FormData.js
1915
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/platform/browser/classes/FormData.js
1814
1916
  var FormData_default;
1815
1917
  var init_FormData = __esmMin((() => {
1816
1918
  FormData_default = typeof FormData !== "undefined" ? FormData : null;
1817
1919
  }));
1818
1920
  //#endregion
1819
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/platform/browser/classes/Blob.js
1921
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/platform/browser/classes/Blob.js
1820
1922
  var Blob_default;
1821
1923
  var init_Blob = __esmMin((() => {
1822
1924
  Blob_default = typeof Blob !== "undefined" ? Blob : null;
1823
1925
  }));
1824
1926
  //#endregion
1825
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/platform/browser/index.js
1927
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/platform/browser/index.js
1826
1928
  var browser_default;
1827
1929
  var init_browser = __esmMin((() => {
1828
1930
  init_URLSearchParams();
@@ -1846,7 +1948,7 @@ var init_browser = __esmMin((() => {
1846
1948
  };
1847
1949
  }));
1848
1950
  //#endregion
1849
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/platform/common/utils.js
1951
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/platform/common/utils.js
1850
1952
  var utils_exports = /* @__PURE__ */ __exportAll({
1851
1953
  hasBrowserEnv: () => hasBrowserEnv,
1852
1954
  hasStandardBrowserEnv: () => hasStandardBrowserEnv,
@@ -1869,7 +1971,7 @@ var init_utils = __esmMin((() => {
1869
1971
  origin = hasBrowserEnv && window.location.href || "http://localhost";
1870
1972
  }));
1871
1973
  //#endregion
1872
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/platform/index.js
1974
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/platform/index.js
1873
1975
  var platform_default;
1874
1976
  var init_platform = __esmMin((() => {
1875
1977
  init_browser();
@@ -1880,7 +1982,7 @@ var init_platform = __esmMin((() => {
1880
1982
  };
1881
1983
  }));
1882
1984
  //#endregion
1883
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
1985
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
1884
1986
  function toURLEncodedForm(data, options) {
1885
1987
  return toFormData(data, new platform_default.classes.URLSearchParams(), {
1886
1988
  visitor: function(value, key, path, helpers) {
@@ -1899,7 +2001,7 @@ var init_toURLEncodedForm = __esmMin((() => {
1899
2001
  init_platform();
1900
2002
  }));
1901
2003
  //#endregion
1902
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/formDataToJSON.js
2004
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/formDataToJSON.js
1903
2005
  function throwIfDepthExceeded(index) {
1904
2006
  if (index > MAX_DEPTH) throw new AxiosError("FormData field is too deeply nested (" + index + " levels). Max depth: " + MAX_DEPTH, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
1905
2007
  }
@@ -1980,7 +2082,25 @@ var init_formDataToJSON = __esmMin((() => {
1980
2082
  MAX_DEPTH = 100;
1981
2083
  }));
1982
2084
  //#endregion
1983
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/defaults/index.js
2085
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/methodList.js
2086
+ var methodList;
2087
+ var init_methodList = __esmMin((() => {
2088
+ methodList = Object.freeze([
2089
+ "get",
2090
+ "delete",
2091
+ "head",
2092
+ "options",
2093
+ "post",
2094
+ "put",
2095
+ "patch",
2096
+ "purge",
2097
+ "link",
2098
+ "unlink",
2099
+ "query"
2100
+ ]);
2101
+ }));
2102
+ //#endregion
2103
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/defaults/index.js
1984
2104
  /**
1985
2105
  * It takes a string, tries to parse it, and if it fails, it returns the stringified version
1986
2106
  * of the input
@@ -2009,6 +2129,7 @@ var init_defaults = __esmMin((() => {
2009
2129
  init_toURLEncodedForm();
2010
2130
  init_platform();
2011
2131
  init_formDataToJSON();
2132
+ init_methodList();
2012
2133
  own = (obj, key) => obj != null && utils_default.hasOwnProp(obj, key) ? obj[key] : void 0;
2013
2134
  defaults = {
2014
2135
  transitional: transitional_default,
@@ -2085,20 +2206,12 @@ var init_defaults = __esmMin((() => {
2085
2206
  "Content-Type": void 0
2086
2207
  } }
2087
2208
  };
2088
- utils_default.forEach([
2089
- "delete",
2090
- "get",
2091
- "head",
2092
- "post",
2093
- "put",
2094
- "patch",
2095
- "query"
2096
- ], (method) => {
2209
+ utils_default.forEach(methodList, (method) => {
2097
2210
  defaults.headers[method] = {};
2098
2211
  });
2099
2212
  }));
2100
2213
  //#endregion
2101
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/transformData.js
2214
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/transformData.js
2102
2215
  /**
2103
2216
  * Transform the data for a request or a response
2104
2217
  *
@@ -2124,13 +2237,13 @@ var init_transformData = __esmMin((() => {
2124
2237
  init_AxiosHeaders();
2125
2238
  }));
2126
2239
  //#endregion
2127
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/cancel/isCancel.js
2240
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/cancel/isCancel.js
2128
2241
  function isCancel(value) {
2129
2242
  return !!(value && value.__CANCEL__);
2130
2243
  }
2131
2244
  var init_isCancel = __esmMin((() => {}));
2132
2245
  //#endregion
2133
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/cancel/CanceledError.js
2246
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/cancel/CanceledError.js
2134
2247
  var CanceledError;
2135
2248
  var init_CanceledError = __esmMin((() => {
2136
2249
  init_AxiosError();
@@ -2152,7 +2265,7 @@ var init_CanceledError = __esmMin((() => {
2152
2265
  };
2153
2266
  }));
2154
2267
  //#endregion
2155
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/settle.js
2268
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/settle.js
2156
2269
  /**
2157
2270
  * Resolve or reject a Promise based on response status.
2158
2271
  *
@@ -2171,14 +2284,33 @@ var init_settle = __esmMin((() => {
2171
2284
  init_AxiosError();
2172
2285
  }));
2173
2286
  //#endregion
2174
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/parseProtocol.js
2287
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js
2288
+ /**
2289
+ * Match WHATWG URL preprocessing before checking a URL's protocol.
2290
+ *
2291
+ * @param {string} url
2292
+ *
2293
+ * @returns {string}
2294
+ */
2295
+ function normalizeURLForProtocolCheck(url) {
2296
+ if (typeof url !== "string") return url;
2297
+ let start = 0;
2298
+ while (start < url.length && url.charCodeAt(start) <= 32) start++;
2299
+ return url.slice(start).replace(urlParserControlCharacters, "");
2300
+ }
2301
+ var urlParserControlCharacters;
2302
+ var init_normalizeURLForProtocolCheck = __esmMin((() => {
2303
+ urlParserControlCharacters = /[\t\n\r]/g;
2304
+ }));
2305
+ //#endregion
2306
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/parseProtocol.js
2175
2307
  function parseProtocol(url) {
2176
2308
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
2177
2309
  return match && match[1] || "";
2178
2310
  }
2179
2311
  var init_parseProtocol = __esmMin((() => {}));
2180
2312
  //#endregion
2181
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/speedometer.js
2313
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/speedometer.js
2182
2314
  /**
2183
2315
  * Calculate data maxRate
2184
2316
  * @param {Number} [samplesCount= 10]
@@ -2214,12 +2346,12 @@ function speedometer(samplesCount, min) {
2214
2346
  }
2215
2347
  var init_speedometer = __esmMin((() => {}));
2216
2348
  //#endregion
2217
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/throttle.js
2349
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/throttle.js
2218
2350
  /**
2219
2351
  * Throttle decorator
2220
2352
  * @param {Function} fn
2221
2353
  * @param {Number} freq
2222
- * @return {Function}
2354
+ * @return {Array<Function>}
2223
2355
  */
2224
2356
  function throttle(fn, freq) {
2225
2357
  let timestamp = 0;
@@ -2248,11 +2380,16 @@ function throttle(fn, freq) {
2248
2380
  }
2249
2381
  };
2250
2382
  const flush = () => lastArgs && invoke(lastArgs);
2251
- return [throttled, flush];
2383
+ const flushWith = (...args) => invoke(args);
2384
+ return [
2385
+ throttled,
2386
+ flush,
2387
+ flushWith
2388
+ ];
2252
2389
  }
2253
2390
  var init_throttle = __esmMin((() => {}));
2254
2391
  //#endregion
2255
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/progressEventReducer.js
2392
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/progressEventReducer.js
2256
2393
  var progressEventReducer, progressEventDecorator, asyncDecorator;
2257
2394
  var init_progressEventReducer = __esmMin((() => {
2258
2395
  init_speedometer();
@@ -2262,7 +2399,7 @@ var init_progressEventReducer = __esmMin((() => {
2262
2399
  let bytesNotified = 0;
2263
2400
  const _speedometer = speedometer(50, 250);
2264
2401
  return throttle((e) => {
2265
- if (!e || typeof e.loaded !== "number") return;
2402
+ if (!e || !utils_default.isNumber(e.loaded)) return;
2266
2403
  const rawLoaded = e.loaded;
2267
2404
  const total = e.lengthComputable ? e.total : void 0;
2268
2405
  const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
@@ -2293,7 +2430,7 @@ var init_progressEventReducer = __esmMin((() => {
2293
2430
  asyncDecorator = (fn, scheduler = utils_default.asap) => (...args) => scheduler(() => fn(...args));
2294
2431
  }));
2295
2432
  //#endregion
2296
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
2433
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
2297
2434
  var isURLSameOrigin_default;
2298
2435
  var init_isURLSameOrigin = __esmMin((() => {
2299
2436
  init_platform();
@@ -2303,7 +2440,7 @@ var init_isURLSameOrigin = __esmMin((() => {
2303
2440
  })(new URL(platform_default.origin), platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)) : () => true;
2304
2441
  }));
2305
2442
  //#endregion
2306
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/cookies.js
2443
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/cookies.js
2307
2444
  var cookies_default;
2308
2445
  var init_cookies = __esmMin((() => {
2309
2446
  init_utils$1();
@@ -2345,7 +2482,7 @@ var init_cookies = __esmMin((() => {
2345
2482
  };
2346
2483
  }));
2347
2484
  //#endregion
2348
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
2485
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
2349
2486
  /**
2350
2487
  * Determines whether the specified URL is absolute
2351
2488
  *
@@ -2359,7 +2496,7 @@ function isAbsoluteURL(url) {
2359
2496
  }
2360
2497
  var init_isAbsoluteURL = __esmMin((() => {}));
2361
2498
  //#endregion
2362
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/combineURLs.js
2499
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/combineURLs.js
2363
2500
  /**
2364
2501
  * Creates a new URL by combining the specified URLs
2365
2502
  *
@@ -2376,15 +2513,7 @@ function combineURLs(baseURL, relativeURL) {
2376
2513
  }
2377
2514
  var init_combineURLs = __esmMin((() => {}));
2378
2515
  //#endregion
2379
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/buildFullPath.js
2380
- function stripLeadingC0ControlOrSpace(url) {
2381
- let i = 0;
2382
- while (i < url.length && url.charCodeAt(i) <= 32) i++;
2383
- return url.slice(i);
2384
- }
2385
- function normalizeURLForProtocolCheck(url) {
2386
- return stripLeadingC0ControlOrSpace(url).replace(httpProtocolControlCharacters, "");
2387
- }
2516
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/buildFullPath.js
2388
2517
  function redactFragment(fragment) {
2389
2518
  if (!fragment) return fragment;
2390
2519
  return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = "") => {
@@ -2423,16 +2552,16 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
2423
2552
  }
2424
2553
  return requestedURL;
2425
2554
  }
2426
- var malformedHttpProtocol, httpProtocolControlCharacters;
2555
+ var malformedHttpProtocol;
2427
2556
  var init_buildFullPath = __esmMin((() => {
2428
2557
  init_AxiosError();
2429
2558
  init_isAbsoluteURL();
2430
2559
  init_combineURLs();
2560
+ init_normalizeURLForProtocolCheck();
2431
2561
  malformedHttpProtocol = /^https?:(?!\/\/)/i;
2432
- httpProtocolControlCharacters = /[\t\n\r]/g;
2433
2562
  }));
2434
2563
  //#endregion
2435
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/mergeConfig.js
2564
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/mergeConfig.js
2436
2565
  /**
2437
2566
  * Config-specific merge-function which creates a new config-object
2438
2567
  * by merging two configuration objects together.
@@ -2493,7 +2622,7 @@ function mergeConfig(config1, config2) {
2493
2622
  transformResponse: defaultToConfig2,
2494
2623
  paramsSerializer: defaultToConfig2,
2495
2624
  timeout: defaultToConfig2,
2496
- timeoutMessage: defaultToConfig2,
2625
+ timeoutErrorMessage: defaultToConfig2,
2497
2626
  withCredentials: defaultToConfig2,
2498
2627
  withXSRFToken: defaultToConfig2,
2499
2628
  adapter: defaultToConfig2,
@@ -2542,7 +2671,7 @@ var init_mergeConfig = __esmMin((() => {
2542
2671
  };
2543
2672
  }));
2544
2673
  //#endregion
2545
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/setFormDataHeaders.js
2674
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/setFormDataHeaders.js
2546
2675
  /**
2547
2676
  * Apply the headers generated by a FormData implementation to the request headers,
2548
2677
  * honoring the `formDataHeaderPolicy` option: with 'content-only', copy only the
@@ -2568,7 +2697,7 @@ var init_setFormDataHeaders = __esmMin((() => {
2568
2697
  FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
2569
2698
  }));
2570
2699
  //#endregion
2571
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/resolveConfig.js
2700
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/resolveConfig.js
2572
2701
  function resolveConfig(config) {
2573
2702
  const newConfig = mergeConfig({}, config);
2574
2703
  const own = (key) => utils_default.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
@@ -2593,8 +2722,9 @@ function resolveConfig(config) {
2593
2722
  }
2594
2723
  }
2595
2724
  if (utils_default.isFormData(data)) {
2725
+ const getHeaders = utils_default.getSafeProp(data, "getHeaders");
2596
2726
  if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv || utils_default.isReactNative(data)) headers.setContentType(void 0);
2597
- else if (utils_default.isFunction(data.getHeaders)) setFormDataHeaders(headers, data.getHeaders(), own("formDataHeaderPolicy"));
2727
+ else if (utils_default.isFunction(getHeaders)) setFormDataHeaders(headers, getHeaders.call(data), own("formDataHeaderPolicy"));
2598
2728
  }
2599
2729
  if (platform_default.hasStandardBrowserEnv) {
2600
2730
  if (utils_default.isFunction(withXSRFToken)) withXSRFToken = withXSRFToken(newConfig);
@@ -2620,7 +2750,7 @@ var init_resolveConfig = __esmMin((() => {
2620
2750
  encodeUTF8$1 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
2621
2751
  }));
2622
2752
  //#endregion
2623
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/adapters/xhr.js
2753
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/adapters/xhr.js
2624
2754
  var isXHRAdapterSupported, xhr_default;
2625
2755
  var init_xhr = __esmMin((() => {
2626
2756
  init_utils$1();
@@ -2628,6 +2758,7 @@ var init_xhr = __esmMin((() => {
2628
2758
  init_transitional();
2629
2759
  init_AxiosError();
2630
2760
  init_CanceledError();
2761
+ init_normalizeURLForProtocolCheck();
2631
2762
  init_parseProtocol();
2632
2763
  init_platform();
2633
2764
  init_AxiosHeaders();
@@ -2643,7 +2774,7 @@ var init_xhr = __esmMin((() => {
2643
2774
  let { responseType, onUploadProgress, onDownloadProgress } = _config;
2644
2775
  let onCanceled;
2645
2776
  let uploadThrottled, downloadThrottled;
2646
- let flushUpload, flushDownload;
2777
+ let flushUpload, flushDownload, flushDownloadWithEvent;
2647
2778
  function done() {
2648
2779
  flushUpload && flushUpload();
2649
2780
  flushDownload && flushDownload();
@@ -2653,7 +2784,22 @@ var init_xhr = __esmMin((() => {
2653
2784
  let request = new XMLHttpRequest();
2654
2785
  request.open(_config.method.toUpperCase(), _config.url, true);
2655
2786
  request.timeout = _config.timeout;
2656
- function onloadend() {
2787
+ function onloadend(event) {
2788
+ if (!request) return;
2789
+ if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform_default.origin)) !== "file" && !(request.responseURL && request.responseURL.startsWith("file:"))) {
2790
+ reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
2791
+ done();
2792
+ request = null;
2793
+ return;
2794
+ }
2795
+ try {
2796
+ if (event) flushDownloadWithEvent && flushDownloadWithEvent(event);
2797
+ else flushDownload && flushDownload();
2798
+ } catch (err) {
2799
+ setTimeout(() => {
2800
+ throw err;
2801
+ });
2802
+ }
2657
2803
  if (!request) return;
2658
2804
  const responseHeaders = AxiosHeaders.from("getAllResponseHeaders" in request && request.getAllResponseHeaders());
2659
2805
  settle(function _resolve(value) {
@@ -2707,7 +2853,7 @@ var init_xhr = __esmMin((() => {
2707
2853
  if (!utils_default.isUndefined(_config.withCredentials)) request.withCredentials = !!_config.withCredentials;
2708
2854
  if (responseType && responseType !== "json") request.responseType = _config.responseType;
2709
2855
  if (onDownloadProgress) {
2710
- [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
2856
+ [downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(onDownloadProgress, true);
2711
2857
  request.addEventListener("progress", downloadThrottled);
2712
2858
  }
2713
2859
  if (onUploadProgress && request.upload) {
@@ -2737,7 +2883,7 @@ var init_xhr = __esmMin((() => {
2737
2883
  };
2738
2884
  }));
2739
2885
  //#endregion
2740
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/composeSignals.js
2886
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/composeSignals.js
2741
2887
  var composeSignals;
2742
2888
  var init_composeSignals = __esmMin((() => {
2743
2889
  init_CanceledError();
@@ -2783,7 +2929,7 @@ var init_composeSignals = __esmMin((() => {
2783
2929
  };
2784
2930
  }));
2785
2931
  //#endregion
2786
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/trackStream.js
2932
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/trackStream.js
2787
2933
  var streamChunk, readBytes, readStream, trackStream;
2788
2934
  var init_trackStream = __esmMin((() => {
2789
2935
  streamChunk = function* (chunk, chunkSize) {
@@ -2854,7 +3000,7 @@ var init_trackStream = __esmMin((() => {
2854
3000
  };
2855
3001
  }));
2856
3002
  //#endregion
2857
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
3003
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
2858
3004
  /**
2859
3005
  * Estimate the percent-decoded payload size used by Fetch data: URLs.
2860
3006
  *
@@ -2939,11 +3085,11 @@ var init_estimateDataURLDecodedBytes = __esmMin((() => {
2939
3085
  };
2940
3086
  }));
2941
3087
  //#endregion
2942
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/env/data.js
3088
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/env/data.js
2943
3089
  var VERSION;
2944
3090
  var init_data = __esmMin((() => {
2945
- VERSION = "1.19.0";
2946
- })), DEFAULT_CHUNK_SIZE, isFunction, encodeUTF8, decodeURIComponentSafe, test, maybeWithAuthCredentials, factory, seedCache, getFetch;
3091
+ VERSION = "1.20.0";
3092
+ })), DEFAULT_CHUNK_SIZE, DEFAULT_REQUEST_OPTIONS, isFunction, encodeUTF8, decodeURIComponentSafe, test, maybeWithAuthCredentials, factory, seedCache, getFetch;
2947
3093
  var init_fetch = __esmMin((() => {
2948
3094
  init_platform();
2949
3095
  init_utils$1();
@@ -2958,6 +3104,17 @@ var init_fetch = __esmMin((() => {
2958
3104
  init_data();
2959
3105
  init_sanitizeHeaderValue();
2960
3106
  DEFAULT_CHUNK_SIZE = 65536;
3107
+ DEFAULT_REQUEST_OPTIONS = {
3108
+ cache: "default",
3109
+ redirect: "follow",
3110
+ referrer: "about:client",
3111
+ referrerPolicy: "",
3112
+ mode: "cors",
3113
+ integrity: "",
3114
+ keepalive: false,
3115
+ priority: "auto",
3116
+ window: null
3117
+ };
2961
3118
  ({isFunction} = utils_default);
2962
3119
  encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
2963
3120
  decodeURIComponentSafe = (value) => {
@@ -3042,7 +3199,7 @@ var init_fetch = __esmMin((() => {
3042
3199
  return length == null ? getBodyLength(body) : length;
3043
3200
  };
3044
3201
  return async (config) => {
3045
- let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions, maxContentLength, maxBodyLength } = resolveConfig(config);
3202
+ let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = "same-origin", fetchOptions, maxContentLength, maxBodyLength, maxRedirects } = resolveConfig(config);
3046
3203
  const hasMaxContentLength = utils_default.isNumber(maxContentLength) && maxContentLength > -1;
3047
3204
  const hasMaxBodyLength = utils_default.isNumber(maxBodyLength) && maxBodyLength > -1;
3048
3205
  const own = (key) => utils_default.hasOwnProp(config, key) ? config[key] : void 0;
@@ -3118,17 +3275,36 @@ var init_fetch = __esmMin((() => {
3118
3275
  if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) headers.delete("content-type");
3119
3276
  }
3120
3277
  headers.set("User-Agent", "axios/" + VERSION, false);
3121
- const resolvedOptions = {
3122
- ...fetchOptions,
3278
+ const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(Object.create(null), fetchOptions);
3279
+ if (safeFetchOptions) {
3280
+ delete safeFetchOptions.body;
3281
+ delete safeFetchOptions.headers;
3282
+ delete safeFetchOptions.method;
3283
+ delete safeFetchOptions.signal;
3284
+ delete safeFetchOptions.duplex;
3285
+ delete safeFetchOptions.credentials;
3286
+ }
3287
+ const resolvedOptions = Object.assign(Object.create(null), safeFetchOptions, {
3123
3288
  signal: composedSignal,
3124
3289
  method: method.toUpperCase(),
3125
3290
  headers: toByteStringHeaderObject(headers.normalize()),
3126
3291
  body: data,
3127
3292
  duplex: "half",
3128
3293
  credentials: isCredentialsSupported ? withCredentials : void 0
3129
- };
3294
+ });
3295
+ if (isRequestSupported) {
3296
+ utils_default.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
3297
+ if (resolvedOptions[key] === void 0) resolvedOptions[key] = value;
3298
+ });
3299
+ if (resolvedOptions.signal === void 0) resolvedOptions.signal = null;
3300
+ if (resolvedOptions.body === void 0) resolvedOptions.body = null;
3301
+ }
3302
+ if (maxRedirects === 0) {
3303
+ resolvedOptions.redirect = "manual";
3304
+ if (safeFetchOptions) safeFetchOptions.redirect = "manual";
3305
+ }
3130
3306
  request = isRequestSupported && new Request(url, resolvedOptions);
3131
- let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
3307
+ let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url, resolvedOptions));
3132
3308
  const responseHeaders = AxiosHeaders.from(response.headers);
3133
3309
  if (hasMaxContentLength) {
3134
3310
  const declaredLength = utils_default.toFiniteNumber(responseHeaders.getContentLength());
@@ -3240,7 +3416,7 @@ var init_fetch = __esmMin((() => {
3240
3416
  getFetch();
3241
3417
  }));
3242
3418
  //#endregion
3243
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/adapters/adapters.js
3419
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/adapters/adapters.js
3244
3420
  /**
3245
3421
  * Get the first suitable adapter from the provided list.
3246
3422
  * Tries each adapter in order until a supported one is found.
@@ -3317,7 +3493,7 @@ var init_adapters = __esmMin((() => {
3317
3493
  };
3318
3494
  }));
3319
3495
  //#endregion
3320
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/dispatchRequest.js
3496
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/dispatchRequest.js
3321
3497
  /**
3322
3498
  * Throws a `CanceledError` if cancellation has been requested.
3323
3499
  *
@@ -3336,9 +3512,10 @@ function throwIfCancellationRequested(config) {
3336
3512
  *
3337
3513
  * @returns {Promise} The Promise to be fulfilled
3338
3514
  */
3339
- function dispatchRequest(config) {
3515
+ function dispatchRequest(_config) {
3516
+ const config = utils_default.toSafeFlatObject(_config);
3340
3517
  throwIfCancellationRequested(config);
3341
- config.headers = AxiosHeaders.from(config.headers);
3518
+ config.headers = AxiosHeaders.from(utils_default.getSafeProp(config, "headers"));
3342
3519
  config.data = transformData.call(config, config.transformRequest);
3343
3520
  if ([
3344
3521
  "post",
@@ -3378,9 +3555,10 @@ var init_dispatchRequest = __esmMin((() => {
3378
3555
  init_CanceledError();
3379
3556
  init_AxiosHeaders();
3380
3557
  init_adapters();
3558
+ init_utils$1();
3381
3559
  }));
3382
3560
  //#endregion
3383
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/validator.js
3561
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/validator.js
3384
3562
  /**
3385
3563
  * Assert object's properties type
3386
3564
  *
@@ -3458,7 +3636,7 @@ var init_validator = __esmMin((() => {
3458
3636
  };
3459
3637
  }));
3460
3638
  //#endregion
3461
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/core/Axios.js
3639
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/core/Axios.js
3462
3640
  var validators, Axios;
3463
3641
  var init_Axios = __esmMin((() => {
3464
3642
  init_utils$1();
@@ -3467,6 +3645,7 @@ var init_Axios = __esmMin((() => {
3467
3645
  init_dispatchRequest();
3468
3646
  init_mergeConfig();
3469
3647
  init_buildFullPath();
3648
+ init_methodList();
3470
3649
  init_validator();
3471
3650
  init_AxiosHeaders();
3472
3651
  init_transitional();
@@ -3491,24 +3670,23 @@ var init_Axios = __esmMin((() => {
3491
3670
  try {
3492
3671
  return await this._request(configOrUrl, config);
3493
3672
  } catch (err) {
3494
- if (err instanceof Error) {
3673
+ if (err instanceof Error) try {
3495
3674
  let dummy = {};
3496
3675
  Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = /* @__PURE__ */ new Error();
3497
- const stack = (() => {
3498
- if (!dummy.stack) return "";
3499
- const firstNewlineIndex = dummy.stack.indexOf("\n");
3500
- return firstNewlineIndex === -1 ? "" : dummy.stack.slice(firstNewlineIndex + 1);
3501
- })();
3502
- try {
3503
- if (!err.stack) err.stack = stack;
3504
- else if (stack) {
3505
- const firstNewlineIndex = stack.indexOf("\n");
3506
- const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
3507
- const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
3508
- if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) err.stack += "\n" + stack;
3509
- }
3510
- } catch (e) {}
3511
- }
3676
+ const dummyStack = dummy.stack;
3677
+ let stack = "";
3678
+ if (typeof dummyStack === "string") {
3679
+ const firstNewlineIndex = dummyStack.indexOf("\n");
3680
+ stack = firstNewlineIndex === -1 ? "" : dummyStack.slice(firstNewlineIndex + 1);
3681
+ }
3682
+ if (!err.stack) err.stack = stack;
3683
+ else if (stack) {
3684
+ const firstNewlineIndex = stack.indexOf("\n");
3685
+ const secondNewlineIndex = firstNewlineIndex === -1 ? -1 : stack.indexOf("\n", firstNewlineIndex + 1);
3686
+ const stackWithoutTwoTopLines = secondNewlineIndex === -1 ? "" : stack.slice(secondNewlineIndex + 1);
3687
+ if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) err.stack += "\n" + stack;
3688
+ }
3689
+ } catch (e) {}
3512
3690
  throw err;
3513
3691
  }
3514
3692
  }
@@ -3540,18 +3718,9 @@ var init_Axios = __esmMin((() => {
3540
3718
  baseUrl: validators.spelling("baseURL"),
3541
3719
  withXsrfToken: validators.spelling("withXSRFToken")
3542
3720
  }, true);
3543
- config.method = (config.method || this.defaults.method || "get").toLowerCase();
3721
+ config.method = (utils_default.getSafeProp(config, "method") || utils_default.getSafeProp(this.defaults, "method") || "get").toLowerCase();
3544
3722
  let contextHeaders = headers && utils_default.merge(headers.common, headers[config.method]);
3545
- headers && utils_default.forEach([
3546
- "delete",
3547
- "get",
3548
- "head",
3549
- "post",
3550
- "put",
3551
- "patch",
3552
- "query",
3553
- "common"
3554
- ], (method) => {
3723
+ headers && utils_default.forEach(methodList.concat("common"), (method) => {
3555
3724
  delete headers[method];
3556
3725
  });
3557
3726
  config.headers = AxiosHeaders.concat(contextHeaders, headers);
@@ -3651,7 +3820,7 @@ var init_Axios = __esmMin((() => {
3651
3820
  });
3652
3821
  }));
3653
3822
  //#endregion
3654
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/cancel/CancelToken.js
3823
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/cancel/CancelToken.js
3655
3824
  var CancelToken;
3656
3825
  var init_CancelToken = __esmMin((() => {
3657
3826
  init_CanceledError();
@@ -3736,7 +3905,7 @@ var init_CancelToken = __esmMin((() => {
3736
3905
  };
3737
3906
  }));
3738
3907
  //#endregion
3739
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/spread.js
3908
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/spread.js
3740
3909
  /**
3741
3910
  * Syntactic sugar for invoking a function and expanding an array for arguments.
3742
3911
  *
@@ -3765,7 +3934,7 @@ function spread(callback) {
3765
3934
  }
3766
3935
  var init_spread = __esmMin((() => {}));
3767
3936
  //#endregion
3768
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/isAxiosError.js
3937
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/isAxiosError.js
3769
3938
  /**
3770
3939
  * Determines whether the payload is an error thrown by Axios
3771
3940
  *
@@ -3780,7 +3949,7 @@ var init_isAxiosError = __esmMin((() => {
3780
3949
  init_utils$1();
3781
3950
  }));
3782
3951
  //#endregion
3783
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/HttpStatusCode.js
3952
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/helpers/HttpStatusCode.js
3784
3953
  var HttpStatusCode;
3785
3954
  var init_HttpStatusCode = __esmMin((() => {
3786
3955
  HttpStatusCode = {
@@ -3820,14 +3989,22 @@ var init_HttpStatusCode = __esmMin((() => {
3820
3989
  Gone: 410,
3821
3990
  LengthRequired: 411,
3822
3991
  PreconditionFailed: 412,
3992
+ /**
3993
+ * @deprecated Use `ContentTooLarge` instead.
3994
+ */
3823
3995
  PayloadTooLarge: 413,
3996
+ ContentTooLarge: 413,
3824
3997
  UriTooLong: 414,
3825
3998
  UnsupportedMediaType: 415,
3826
3999
  RangeNotSatisfiable: 416,
3827
4000
  ExpectationFailed: 417,
3828
4001
  ImATeapot: 418,
3829
4002
  MisdirectedRequest: 421,
4003
+ /**
4004
+ * @deprecated Use `UnprocessableContent` instead.
4005
+ */
3830
4006
  UnprocessableEntity: 422,
4007
+ UnprocessableContent: 422,
3831
4008
  Locked: 423,
3832
4009
  FailedDependency: 424,
3833
4010
  TooEarly: 425,
@@ -3856,11 +4033,11 @@ var init_HttpStatusCode = __esmMin((() => {
3856
4033
  InvalidSslCertificate: 526
3857
4034
  };
3858
4035
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
3859
- HttpStatusCode[value] = key;
4036
+ if (HttpStatusCode[value] === void 0) HttpStatusCode[value] = key;
3860
4037
  });
3861
4038
  }));
3862
4039
  //#endregion
3863
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/axios.js
4040
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/lib/axios.js
3864
4041
  /**
3865
4042
  * Create an instance of Axios
3866
4043
  *
@@ -3919,7 +4096,7 @@ var init_axios$1 = __esmMin((() => {
3919
4096
  axios.default = axios;
3920
4097
  }));
3921
4098
  //#endregion
3922
- //#region node_modules/.pnpm/axios@1.19.0/node_modules/axios/index.js
4099
+ //#region node_modules/.pnpm/axios@1.20.0/node_modules/axios/index.js
3923
4100
  var init_axios = __esmMin((() => {
3924
4101
  init_axios$1();
3925
4102
  }));
@@ -4737,7 +4914,7 @@ var init_router = __esmMin((() => {
4737
4914
  });
4738
4915
  }));
4739
4916
  //#endregion
4740
- //#region node_modules/.pnpm/pinia@3.0.4_typescript@5.9.3_vue@3.5.41_typescript@5.9.3_/node_modules/pinia/dist/pinia.mjs
4917
+ //#region node_modules/.pnpm/pinia@3.0.4_typescript@5.9.3_vue@3.5.42_typescript@5.9.3_/node_modules/pinia/dist/pinia.mjs
4741
4918
  /*!
4742
4919
  * pinia v3.0.4
4743
4920
  * (c) 2025 Eduardo San Martin Morote