ywana-core8 0.2.10 → 0.2.13
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.
- package/dist/index.css +5 -1
- package/dist/index.js +258 -198
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +258 -198
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +258 -198
- package/dist/index.umd.js.map +1 -1
- package/package.json +6 -7
- package/src/desktop/window.css +5 -1
- package/src/desktop/window.js +3 -1
- package/src/html/switch.example.js +1 -1
- package/src/html/switch-debug.js +0 -197
- package/src/html/switch-test-visual.js +0 -294
package/dist/index.modern.js
CHANGED
@@ -6152,7 +6152,7 @@ const Uploader = ({ icon, label, view = "area", target, accept, simultaneousUplo
|
|
6152
6152
|
}
|
6153
6153
|
return /* @__PURE__ */ React.createElement("div", { className: `uploader ${className}` }, state === UPLOAD_STATES.IDLE ? renderView() : /* @__PURE__ */ React.createElement(UploadProgress, { files }));
|
6154
6154
|
};
|
6155
|
-
const isFunction$
|
6155
|
+
const isFunction$5 = (value) => value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
|
6156
6156
|
const DataTable = (props) => {
|
6157
6157
|
const { columns = [], rows = [], onRowSelection, onSort, onCheckAll, editable, outlined, expanded = false, className, emptyMessage = "No Results Found", emptyIcon = "search_off", multisort = false, filterable = false, onClearFilters } = props;
|
6158
6158
|
const [sortDir, setSortDir] = useState({});
|
@@ -6245,7 +6245,7 @@ const DataTableRow$1 = (props) => {
|
|
6245
6245
|
const infoIcon = isInfoOpen ? "expand_less" : "expand_more";
|
6246
6246
|
let style = isInfoOpen ? "expanded" : "";
|
6247
6247
|
if (selected) style += " selected";
|
6248
|
-
return /* @__PURE__ */ React.createElement(Fragment, null, /* @__PURE__ */ React.createElement("tr", { className: `${style} ${className}`, onClick: (ev) => onSelect2(row, ev) }, columns.map((column, cindex) => /* @__PURE__ */ React.createElement(DataTableCell$1, { key: `${column.id}_${cindex}`, index, row, column, cell: row[column.id], editable: editable || column.editable })), hasInfoRows ? row.info ? /* @__PURE__ */ React.createElement("td", null, /* @__PURE__ */ React.createElement(Icon, { icon: infoIcon, clickable: true, action: () => toggleInfo(!isInfoOpen) })) : /* @__PURE__ */ React.createElement("td", null) : null), row.info && isInfoOpen ? /* @__PURE__ */ React.createElement("tr", { className: "table-row-info" }, /* @__PURE__ */ React.createElement("td", { colSpan: columns.length + (hasInfoRows ? 1 : 0) }, isFunction$
|
6248
|
+
return /* @__PURE__ */ React.createElement(Fragment, null, /* @__PURE__ */ React.createElement("tr", { className: `${style} ${className}`, onClick: (ev) => onSelect2(row, ev) }, columns.map((column, cindex) => /* @__PURE__ */ React.createElement(DataTableCell$1, { key: `${column.id}_${cindex}`, index, row, column, cell: row[column.id], editable: editable || column.editable })), hasInfoRows ? row.info ? /* @__PURE__ */ React.createElement("td", null, /* @__PURE__ */ React.createElement(Icon, { icon: infoIcon, clickable: true, action: () => toggleInfo(!isInfoOpen) })) : /* @__PURE__ */ React.createElement("td", null) : null), row.info && isInfoOpen ? /* @__PURE__ */ React.createElement("tr", { className: "table-row-info" }, /* @__PURE__ */ React.createElement("td", { colSpan: columns.length + (hasInfoRows ? 1 : 0) }, isFunction$5(row.info) ? row.info() : row.info)) : null);
|
6249
6249
|
};
|
6250
6250
|
const DataTableCell$1 = ({ index, row, column, cell, editable }) => {
|
6251
6251
|
const render = (type2) => {
|
@@ -6981,7 +6981,7 @@ const exportFormats = {
|
|
6981
6981
|
extension: ".xml"
|
6982
6982
|
}
|
6983
6983
|
};
|
6984
|
-
const isFunction$
|
6984
|
+
const isFunction$4 = (value) => value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
|
6985
6985
|
const DataTable2 = (props) => {
|
6986
6986
|
const {
|
6987
6987
|
id,
|
@@ -7831,7 +7831,7 @@ const DataTableRow = ({
|
|
7831
7831
|
const rowClasses = [
|
7832
7832
|
"datatable2__row",
|
7833
7833
|
isSelected && "datatable2__row--selected",
|
7834
|
-
rowClassName && isFunction$
|
7834
|
+
rowClassName && isFunction$4(rowClassName) ? rowClassName(row, index) : rowClassName
|
7835
7835
|
].filter(Boolean).join(" ");
|
7836
7836
|
return /* @__PURE__ */ React.createElement(
|
7837
7837
|
"tr",
|
@@ -7951,7 +7951,7 @@ const DataTableCell = ({
|
|
7951
7951
|
"datatable2__cell",
|
7952
7952
|
editable && "datatable2__cell--editable",
|
7953
7953
|
isEditing && "datatable2__cell--editing",
|
7954
|
-
cellClassName && isFunction$
|
7954
|
+
cellClassName && isFunction$4(cellClassName) ? cellClassName(column, row, value) : cellClassName
|
7955
7955
|
].filter(Boolean).join(" ");
|
7956
7956
|
const renderCellContent = () => {
|
7957
7957
|
if (isEditing && editable) {
|
@@ -7983,7 +7983,7 @@ const DataTableCell = ({
|
|
7983
7983
|
);
|
7984
7984
|
}
|
7985
7985
|
}
|
7986
|
-
if (column.render && isFunction$
|
7986
|
+
if (column.render && isFunction$4(column.render)) {
|
7987
7987
|
return column.render(value, row, column);
|
7988
7988
|
}
|
7989
7989
|
return /* @__PURE__ */ React.createElement(Text, null, value);
|
@@ -14958,7 +14958,7 @@ const SwitchExamples = () => {
|
|
14958
14958
|
borderRadius: "8px",
|
14959
14959
|
marginBottom: "2rem",
|
14960
14960
|
border: "1px solid #e9ecef"
|
14961
|
-
} }, /* @__PURE__ */ React.createElement("h3", null, "✅ Mejoras Implementadas:"), /* @__PURE__ */ React.createElement("ul", null, /* @__PURE__ */ React.createElement("li", null, "🛡️ ", /* @__PURE__ */ React.createElement("strong", null, "Validación de props"), " - Advertencias para props incorrectas"), /* @__PURE__ */ React.createElement("li", null, "♿ ", /* @__PURE__ */ React.createElement("strong", null, "Accesibilidad completa"), " - ARIA, soporte de teclado, focus"), /* @__PURE__ */ React.createElement("li", null, "📝 ", /* @__PURE__ */ React.createElement("strong", null, "PropTypes y documentación"), " - Validación y documentación completa"), /* @__PURE__ */ React.createElement("li", null, "🎯 ", /* @__PURE__ */ React.createElement("strong", null, "Estados avanzados"), " - disabled, readOnly, error"), /* @__PURE__ */ React.createElement("li", null, "🎨 ", /* @__PURE__ */ React.createElement("strong", null, "CSS mejorado"), " - Estados visuales consistentes y responsivos"), /* @__PURE__ */ React.createElement("li", null, "⌨️ ", /* @__PURE__ */ React.createElement("strong", null, "Soporte de teclado"), " - Enter y Espacio para alternar"), /* @__PURE__ */ React.createElement("li", null, "🔧 ", /* @__PURE__ */ React.createElement("strong", null, "Manejo de errores"), " - Mensajes de error integrados"), /* @__PURE__ */ React.createElement("li", null, "📏 ", /* @__PURE__ */ React.createElement("strong", null, "Tamaños múltiples"), " - small, normal, large"), /* @__PURE__ */ React.createElement("li", null, "🎨 ", /* @__PURE__ */ React.createElement("strong", null, "Colores personalizables"), " - Integración con sistema de temas"), /* @__PURE__ */ React.createElement("li", null, "🧪 ", /* @__PURE__ */ React.createElement("strong", null, "Pruebas unitarias"), " - 17 pruebas que cubren toda la funcionalidad"))), /* @__PURE__ */ React.createElement("section", { style: { marginBottom: "2rem" } }, /* @__PURE__ */ React.createElement("h3", null, "Switch Básicos
|
14961
|
+
} }, /* @__PURE__ */ React.createElement("h3", null, "✅ Mejoras Implementadas:"), /* @__PURE__ */ React.createElement("ul", null, /* @__PURE__ */ React.createElement("li", null, "🛡️ ", /* @__PURE__ */ React.createElement("strong", null, "Validación de props"), " - Advertencias para props incorrectas"), /* @__PURE__ */ React.createElement("li", null, "♿ ", /* @__PURE__ */ React.createElement("strong", null, "Accesibilidad completa"), " - ARIA, soporte de teclado, focus"), /* @__PURE__ */ React.createElement("li", null, "📝 ", /* @__PURE__ */ React.createElement("strong", null, "PropTypes y documentación"), " - Validación y documentación completa"), /* @__PURE__ */ React.createElement("li", null, "🎯 ", /* @__PURE__ */ React.createElement("strong", null, "Estados avanzados"), " - disabled, readOnly, error"), /* @__PURE__ */ React.createElement("li", null, "🎨 ", /* @__PURE__ */ React.createElement("strong", null, "CSS mejorado"), " - Estados visuales consistentes y responsivos"), /* @__PURE__ */ React.createElement("li", null, "⌨️ ", /* @__PURE__ */ React.createElement("strong", null, "Soporte de teclado"), " - Enter y Espacio para alternar"), /* @__PURE__ */ React.createElement("li", null, "🔧 ", /* @__PURE__ */ React.createElement("strong", null, "Manejo de errores"), " - Mensajes de error integrados"), /* @__PURE__ */ React.createElement("li", null, "📏 ", /* @__PURE__ */ React.createElement("strong", null, "Tamaños múltiples"), " - small, normal, large"), /* @__PURE__ */ React.createElement("li", null, "🎨 ", /* @__PURE__ */ React.createElement("strong", null, "Colores personalizables"), " - Integración con sistema de temas"), /* @__PURE__ */ React.createElement("li", null, "🧪 ", /* @__PURE__ */ React.createElement("strong", null, "Pruebas unitarias"), " - 17 pruebas que cubren toda la funcionalidad"))), /* @__PURE__ */ React.createElement("section", { style: { marginBottom: "2rem" } }, /* @__PURE__ */ React.createElement("h3", null, "Switch Básicos"), /* @__PURE__ */ React.createElement("div", { style: {
|
14962
14962
|
background: "#fff",
|
14963
14963
|
padding: "1.5rem",
|
14964
14964
|
borderRadius: "8px",
|
@@ -23033,7 +23033,7 @@ function deprecateSimple(name, msg) {
|
|
23033
23033
|
}
|
23034
23034
|
hooks.suppressDeprecationWarnings = false;
|
23035
23035
|
hooks.deprecationHandler = null;
|
23036
|
-
function isFunction$
|
23036
|
+
function isFunction$3(input) {
|
23037
23037
|
return typeof Function !== "undefined" && input instanceof Function || Object.prototype.toString.call(input) === "[object Function]";
|
23038
23038
|
}
|
23039
23039
|
function set(config) {
|
@@ -23041,7 +23041,7 @@ function set(config) {
|
|
23041
23041
|
for (i in config) {
|
23042
23042
|
if (hasOwnProp(config, i)) {
|
23043
23043
|
prop = config[i];
|
23044
|
-
if (isFunction$
|
23044
|
+
if (isFunction$3(prop)) {
|
23045
23045
|
this[i] = prop;
|
23046
23046
|
} else {
|
23047
23047
|
this["_" + i] = prop;
|
@@ -23104,7 +23104,7 @@ var defaultCalendar = {
|
|
23104
23104
|
};
|
23105
23105
|
function calendar(key, mom, now2) {
|
23106
23106
|
var output = this._calendar[key] || this._calendar["sameElse"];
|
23107
|
-
return isFunction$
|
23107
|
+
return isFunction$3(output) ? output.call(mom, now2) : output;
|
23108
23108
|
}
|
23109
23109
|
function zeroFill(number, targetLength, forceSign) {
|
23110
23110
|
var absNumber = "" + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign2 = number >= 0;
|
@@ -23153,7 +23153,7 @@ function makeFormatFunction(format2) {
|
|
23153
23153
|
return function(mom) {
|
23154
23154
|
var output = "", i2;
|
23155
23155
|
for (i2 = 0; i2 < length; i2++) {
|
23156
|
-
output += isFunction$
|
23156
|
+
output += isFunction$3(array[i2]) ? array[i2].call(mom, format2) : array[i2];
|
23157
23157
|
}
|
23158
23158
|
return output;
|
23159
23159
|
};
|
@@ -23231,11 +23231,11 @@ var defaultRelativeTime = {
|
|
23231
23231
|
};
|
23232
23232
|
function relativeTime(number, withoutSuffix, string, isFuture) {
|
23233
23233
|
var output = this._relativeTime[string];
|
23234
|
-
return isFunction$
|
23234
|
+
return isFunction$3(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
|
23235
23235
|
}
|
23236
23236
|
function pastFuture(diff2, output) {
|
23237
23237
|
var format2 = this._relativeTime[diff2 > 0 ? "future" : "past"];
|
23238
|
-
return isFunction$
|
23238
|
+
return isFunction$3(format2) ? format2(output) : format2.replace(/%s/i, output);
|
23239
23239
|
}
|
23240
23240
|
var aliases = {
|
23241
23241
|
D: "date",
|
@@ -23335,7 +23335,7 @@ function getPrioritizedUnits(unitsObj) {
|
|
23335
23335
|
var match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, match1to2NoLeadingZero = /^[1-9]\d?/, match1to2HasZero = /^([1-9]\d|\d)/, regexes;
|
23336
23336
|
regexes = {};
|
23337
23337
|
function addRegexToken(token2, regex, strictRegex) {
|
23338
|
-
regexes[token2] = isFunction$
|
23338
|
+
regexes[token2] = isFunction$3(regex) ? regex : function(isStrict, localeData2) {
|
23339
23339
|
return isStrict && strictRegex ? strictRegex : regex;
|
23340
23340
|
};
|
23341
23341
|
}
|
@@ -23511,7 +23511,7 @@ function set$1(mom, unit, value) {
|
|
23511
23511
|
}
|
23512
23512
|
function stringGet(units) {
|
23513
23513
|
units = normalizeUnits(units);
|
23514
|
-
if (isFunction$
|
23514
|
+
if (isFunction$3(this[units])) {
|
23515
23515
|
return this[units]();
|
23516
23516
|
}
|
23517
23517
|
return this;
|
@@ -23525,7 +23525,7 @@ function stringSet(units, value) {
|
|
23525
23525
|
}
|
23526
23526
|
} else {
|
23527
23527
|
units = normalizeUnits(units);
|
23528
|
-
if (isFunction$
|
23528
|
+
if (isFunction$3(this[units])) {
|
23529
23529
|
return this[units](value);
|
23530
23530
|
}
|
23531
23531
|
}
|
@@ -25443,7 +25443,7 @@ function calendar$1(time, formats) {
|
|
25443
25443
|
time = void 0;
|
25444
25444
|
}
|
25445
25445
|
}
|
25446
|
-
var now2 = time || createLocal(), sod = cloneWithOffset(now2, this).startOf("day"), format2 = hooks.calendarFormat(this, sod) || "sameElse", output = formats && (isFunction$
|
25446
|
+
var now2 = time || createLocal(), sod = cloneWithOffset(now2, this).startOf("day"), format2 = hooks.calendarFormat(this, sod) || "sameElse", output = formats && (isFunction$3(formats[format2]) ? formats[format2].call(this, now2) : formats[format2]);
|
25447
25447
|
return this.format(
|
25448
25448
|
output || this.localeData().calendar(format2, this, createLocal(now2))
|
25449
25449
|
);
|
@@ -25578,7 +25578,7 @@ function toISOString(keepOffset) {
|
|
25578
25578
|
utc ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
25579
25579
|
);
|
25580
25580
|
}
|
25581
|
-
if (isFunction$
|
25581
|
+
if (isFunction$3(Date.prototype.toISOString)) {
|
25582
25582
|
if (utc) {
|
25583
25583
|
return this.toDate().toISOString();
|
25584
25584
|
} else {
|
@@ -27163,8 +27163,8 @@ function requireMoment() {
|
|
27163
27163
|
if (hasRequiredMoment) return moment$2.exports;
|
27164
27164
|
hasRequiredMoment = 1;
|
27165
27165
|
(function(module2, exports) {
|
27166
|
-
(function(global2,
|
27167
|
-
module2.exports =
|
27166
|
+
(function(global2, factory2) {
|
27167
|
+
module2.exports = factory2();
|
27168
27168
|
})(moment$1, (function() {
|
27169
27169
|
var hookCallback2;
|
27170
27170
|
function hooks2() {
|
@@ -31166,8 +31166,8 @@ function requireEs() {
|
|
31166
31166
|
if (hasRequiredEs) return es$1.exports;
|
31167
31167
|
hasRequiredEs = 1;
|
31168
31168
|
(function(module2, exports) {
|
31169
|
-
(function(global2,
|
31170
|
-
typeof commonjsRequire === "function" ?
|
31169
|
+
(function(global2, factory2) {
|
31170
|
+
typeof commonjsRequire === "function" ? factory2(requireMoment()) : factory2(global2.moment);
|
31171
31171
|
})(es, (function(moment2) {
|
31172
31172
|
//! moment.js locale configuration
|
31173
31173
|
var monthsShortDot = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split(
|
@@ -32329,11 +32329,14 @@ const Window = ({
|
|
32329
32329
|
height: maximized ? "calc(100% - 50px)" : size.height,
|
32330
32330
|
// Leave space for taskbar
|
32331
32331
|
zIndex,
|
32332
|
-
display
|
32332
|
+
// Removed display property - let CSS handle it
|
32333
|
+
...minimized && { visibility: "hidden" }
|
32334
|
+
// Use visibility instead of display
|
32333
32335
|
};
|
32334
32336
|
const windowClasses = [
|
32335
32337
|
"window",
|
32336
32338
|
maximized && "window--maximized",
|
32339
|
+
minimized && "window--minimized",
|
32337
32340
|
isDragging && "window--dragging",
|
32338
32341
|
isResizing && "window--resizing",
|
32339
32342
|
className
|
@@ -33469,7 +33472,7 @@ const typeOfTest = (type2) => (thing) => typeof thing === type2;
|
|
33469
33472
|
const { isArray } = Array;
|
33470
33473
|
const isUndefined = typeOfTest("undefined");
|
33471
33474
|
function isBuffer(val) {
|
33472
|
-
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$
|
33475
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$2(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
33473
33476
|
}
|
33474
33477
|
const isArrayBuffer$1 = kindOfTest("ArrayBuffer");
|
33475
33478
|
function isArrayBufferView(val) {
|
@@ -33482,7 +33485,7 @@ function isArrayBufferView(val) {
|
|
33482
33485
|
return result;
|
33483
33486
|
}
|
33484
33487
|
const isString$1 = typeOfTest("string");
|
33485
|
-
const isFunction$
|
33488
|
+
const isFunction$2 = typeOfTest("function");
|
33486
33489
|
const isNumber = typeOfTest("number");
|
33487
33490
|
const isObject = (thing) => thing !== null && typeof thing === "object";
|
33488
33491
|
const isBoolean = (thing) => thing === true || thing === false;
|
@@ -33507,11 +33510,11 @@ const isDate = kindOfTest("Date");
|
|
33507
33510
|
const isFile = kindOfTest("File");
|
33508
33511
|
const isBlob = kindOfTest("Blob");
|
33509
33512
|
const isFileList = kindOfTest("FileList");
|
33510
|
-
const isStream = (val) => isObject(val) && isFunction$
|
33513
|
+
const isStream = (val) => isObject(val) && isFunction$2(val.pipe);
|
33511
33514
|
const isFormData = (thing) => {
|
33512
33515
|
let kind;
|
33513
|
-
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction$
|
33514
|
-
kind === "object" && isFunction$
|
33516
|
+
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction$2(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
33517
|
+
kind === "object" && isFunction$2(thing.toString) && thing.toString() === "[object FormData]"));
|
33515
33518
|
};
|
33516
33519
|
const isURLSearchParams = kindOfTest("URLSearchParams");
|
33517
33520
|
const [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
@@ -33564,7 +33567,7 @@ const _global = (() => {
|
|
33564
33567
|
})();
|
33565
33568
|
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
33566
33569
|
function merge() {
|
33567
|
-
const { caseless } = isContextDefined(this) && this || {};
|
33570
|
+
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
33568
33571
|
const result = {};
|
33569
33572
|
const assignValue = (val, key) => {
|
33570
33573
|
const targetKey = caseless && findKey(result, key) || key;
|
@@ -33574,7 +33577,7 @@ function merge() {
|
|
33574
33577
|
result[targetKey] = merge({}, val);
|
33575
33578
|
} else if (isArray(val)) {
|
33576
33579
|
result[targetKey] = val.slice();
|
33577
|
-
} else {
|
33580
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
33578
33581
|
result[targetKey] = val;
|
33579
33582
|
}
|
33580
33583
|
};
|
@@ -33585,7 +33588,7 @@ function merge() {
|
|
33585
33588
|
}
|
33586
33589
|
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
33587
33590
|
forEach$1(b, (val, key) => {
|
33588
|
-
if (thisArg && isFunction$
|
33591
|
+
if (thisArg && isFunction$2(val)) {
|
33589
33592
|
a[key] = bind(val, thisArg);
|
33590
33593
|
} else {
|
33591
33594
|
a[key] = val;
|
@@ -33694,11 +33697,11 @@ const reduceDescriptors = (obj, reducer) => {
|
|
33694
33697
|
};
|
33695
33698
|
const freezeMethods = (obj) => {
|
33696
33699
|
reduceDescriptors(obj, (descriptor, name) => {
|
33697
|
-
if (isFunction$
|
33700
|
+
if (isFunction$2(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
33698
33701
|
return false;
|
33699
33702
|
}
|
33700
33703
|
const value = obj[name];
|
33701
|
-
if (!isFunction$
|
33704
|
+
if (!isFunction$2(value)) return;
|
33702
33705
|
descriptor.enumerable = false;
|
33703
33706
|
if ("writable" in descriptor) {
|
33704
33707
|
descriptor.writable = false;
|
@@ -33727,7 +33730,7 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
33727
33730
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
33728
33731
|
};
|
33729
33732
|
function isSpecCompliantForm(thing) {
|
33730
|
-
return !!(thing && isFunction$
|
33733
|
+
return !!(thing && isFunction$2(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
33731
33734
|
}
|
33732
33735
|
const toJSONObject = (obj) => {
|
33733
33736
|
const stack = new Array(10);
|
@@ -33755,7 +33758,7 @@ const toJSONObject = (obj) => {
|
|
33755
33758
|
return visit(obj, 0);
|
33756
33759
|
};
|
33757
33760
|
const isAsyncFn = kindOfTest("AsyncFunction");
|
33758
|
-
const isThenable = (thing) => thing && (isObject(thing) || isFunction$
|
33761
|
+
const isThenable = (thing) => thing && (isObject(thing) || isFunction$2(thing)) && isFunction$2(thing.then) && isFunction$2(thing.catch);
|
33759
33762
|
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
33760
33763
|
if (setImmediateSupported) {
|
33761
33764
|
return setImmediate;
|
@@ -33773,10 +33776,10 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
33773
33776
|
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
33774
33777
|
})(
|
33775
33778
|
typeof setImmediate === "function",
|
33776
|
-
isFunction$
|
33779
|
+
isFunction$2(_global.postMessage)
|
33777
33780
|
);
|
33778
33781
|
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
33779
|
-
const isIterable = (thing) => thing != null && isFunction$
|
33782
|
+
const isIterable = (thing) => thing != null && isFunction$2(thing[iterator]);
|
33780
33783
|
const utils$1 = {
|
33781
33784
|
isArray,
|
33782
33785
|
isArrayBuffer: isArrayBuffer$1,
|
@@ -33798,7 +33801,7 @@ const utils$1 = {
|
|
33798
33801
|
isFile,
|
33799
33802
|
isBlob,
|
33800
33803
|
isRegExp,
|
33801
|
-
isFunction: isFunction$
|
33804
|
+
isFunction: isFunction$2,
|
33802
33805
|
isStream,
|
33803
33806
|
isURLSearchParams,
|
33804
33807
|
isTypedArray,
|
@@ -33903,9 +33906,13 @@ AxiosError$1.from = (error, code, config, request, response, customProps) => {
|
|
33903
33906
|
}, (prop) => {
|
33904
33907
|
return prop !== "isAxiosError";
|
33905
33908
|
});
|
33906
|
-
|
33907
|
-
|
33908
|
-
axiosError
|
33909
|
+
const msg = error && error.message ? error.message : "Error";
|
33910
|
+
const errCode = code == null && error ? error.code : code;
|
33911
|
+
AxiosError$1.call(axiosError, msg, errCode, config, request, response);
|
33912
|
+
if (error && axiosError.cause == null) {
|
33913
|
+
Object.defineProperty(axiosError, "cause", { value: error, configurable: true });
|
33914
|
+
}
|
33915
|
+
axiosError.name = error && error.name || "Error";
|
33909
33916
|
customProps && Object.assign(axiosError, customProps);
|
33910
33917
|
return axiosError;
|
33911
33918
|
};
|
@@ -34053,7 +34060,7 @@ prototype.toString = function toString2(encoder) {
|
|
34053
34060
|
}, "").join("&");
|
34054
34061
|
};
|
34055
34062
|
function encode(val) {
|
34056
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+")
|
34063
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
34057
34064
|
}
|
34058
34065
|
function buildURL(url, params, options) {
|
34059
34066
|
if (!params) {
|
@@ -34309,7 +34316,7 @@ const defaults = {
|
|
34309
34316
|
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
34310
34317
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
34311
34318
|
try {
|
34312
|
-
return JSON.parse(data);
|
34319
|
+
return JSON.parse(data, this.parseReviver);
|
34313
34320
|
} catch (e) {
|
34314
34321
|
if (strictJSONParsing) {
|
34315
34322
|
if (e.name === "SyntaxError") {
|
@@ -34893,13 +34900,17 @@ const resolveConfig = (config) => {
|
|
34893
34900
|
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
|
34894
34901
|
);
|
34895
34902
|
}
|
34896
|
-
let contentType;
|
34897
34903
|
if (utils$1.isFormData(data)) {
|
34898
34904
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
34899
34905
|
headers.setContentType(void 0);
|
34900
|
-
} else if ((
|
34901
|
-
const
|
34902
|
-
|
34906
|
+
} else if (utils$1.isFunction(data.getHeaders)) {
|
34907
|
+
const formHeaders = data.getHeaders();
|
34908
|
+
const allowedHeaders = ["content-type", "content-length"];
|
34909
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
34910
|
+
if (allowedHeaders.includes(key.toLowerCase())) {
|
34911
|
+
headers.set(key, val);
|
34912
|
+
}
|
34913
|
+
});
|
34903
34914
|
}
|
34904
34915
|
}
|
34905
34916
|
if (platform.hasStandardBrowserEnv) {
|
@@ -34977,8 +34988,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
34977
34988
|
reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
|
34978
34989
|
request = null;
|
34979
34990
|
};
|
34980
|
-
request.onerror = function handleError() {
|
34981
|
-
|
34991
|
+
request.onerror = function handleError(event) {
|
34992
|
+
const msg = event && event.message ? event.message : "Network Error";
|
34993
|
+
const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
|
34994
|
+
err.event = event || null;
|
34995
|
+
reject(err);
|
34982
34996
|
request = null;
|
34983
34997
|
};
|
34984
34998
|
request.ontimeout = function handleTimeout() {
|
@@ -35146,9 +35160,16 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
35146
35160
|
highWaterMark: 2
|
35147
35161
|
});
|
35148
35162
|
};
|
35149
|
-
const
|
35150
|
-
const
|
35151
|
-
const
|
35163
|
+
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
35164
|
+
const { isFunction: isFunction$1 } = utils$1;
|
35165
|
+
const globalFetchAPI = (({ Request, Response }) => ({
|
35166
|
+
Request,
|
35167
|
+
Response
|
35168
|
+
}))(utils$1.global);
|
35169
|
+
const {
|
35170
|
+
ReadableStream: ReadableStream$1,
|
35171
|
+
TextEncoder
|
35172
|
+
} = utils$1.global;
|
35152
35173
|
const test = (fn, ...args) => {
|
35153
35174
|
try {
|
35154
35175
|
return !!fn(...args);
|
@@ -35156,162 +35177,202 @@ const test = (fn, ...args) => {
|
|
35156
35177
|
return false;
|
35157
35178
|
}
|
35158
35179
|
};
|
35159
|
-
const
|
35160
|
-
|
35161
|
-
|
35162
|
-
|
35163
|
-
|
35164
|
-
|
35165
|
-
|
35166
|
-
|
35167
|
-
|
35168
|
-
|
35169
|
-
return duplexAccessed && !hasContentType;
|
35170
|
-
});
|
35171
|
-
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
35172
|
-
const supportsResponseStream = isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
35173
|
-
const resolvers = {
|
35174
|
-
stream: supportsResponseStream && ((res) => res.body)
|
35175
|
-
};
|
35176
|
-
isFetchSupported && ((res) => {
|
35177
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type2) => {
|
35178
|
-
!resolvers[type2] && (resolvers[type2] = utils$1.isFunction(res[type2]) ? (res2) => res2[type2]() : (_, config) => {
|
35179
|
-
throw new AxiosError$1(`Response type '${type2}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
|
35180
|
-
});
|
35181
|
-
});
|
35182
|
-
})(new Response());
|
35183
|
-
const getBodyLength = async (body) => {
|
35184
|
-
if (body == null) {
|
35185
|
-
return 0;
|
35186
|
-
}
|
35187
|
-
if (utils$1.isBlob(body)) {
|
35188
|
-
return body.size;
|
35180
|
+
const factory = (env) => {
|
35181
|
+
env = utils$1.merge.call({
|
35182
|
+
skipUndefined: true
|
35183
|
+
}, globalFetchAPI, env);
|
35184
|
+
const { fetch: envFetch, Request, Response } = env;
|
35185
|
+
const isFetchSupported = envFetch ? isFunction$1(envFetch) : typeof fetch === "function";
|
35186
|
+
const isRequestSupported = isFunction$1(Request);
|
35187
|
+
const isResponseSupported = isFunction$1(Response);
|
35188
|
+
if (!isFetchSupported) {
|
35189
|
+
return false;
|
35189
35190
|
}
|
35190
|
-
|
35191
|
-
|
35191
|
+
const isReadableStreamSupported = isFetchSupported && isFunction$1(ReadableStream$1);
|
35192
|
+
const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
35193
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
35194
|
+
let duplexAccessed = false;
|
35195
|
+
const hasContentType = new Request(platform.origin, {
|
35196
|
+
body: new ReadableStream$1(),
|
35192
35197
|
method: "POST",
|
35193
|
-
|
35194
|
-
|
35195
|
-
|
35196
|
-
|
35197
|
-
|
35198
|
-
return
|
35199
|
-
}
|
35200
|
-
if (utils$1.isURLSearchParams(body)) {
|
35201
|
-
body = body + "";
|
35202
|
-
}
|
35203
|
-
if (utils$1.isString(body)) {
|
35204
|
-
return (await encodeText(body)).byteLength;
|
35205
|
-
}
|
35206
|
-
};
|
35207
|
-
const resolveBodyLength = async (headers, body) => {
|
35208
|
-
const length = utils$1.toFiniteNumber(headers.getContentLength());
|
35209
|
-
return length == null ? getBodyLength(body) : length;
|
35210
|
-
};
|
35211
|
-
const fetchAdapter = isFetchSupported && (async (config) => {
|
35212
|
-
let {
|
35213
|
-
url,
|
35214
|
-
method,
|
35215
|
-
data,
|
35216
|
-
signal,
|
35217
|
-
cancelToken,
|
35218
|
-
timeout,
|
35219
|
-
onDownloadProgress,
|
35220
|
-
onUploadProgress,
|
35221
|
-
responseType,
|
35222
|
-
headers,
|
35223
|
-
withCredentials = "same-origin",
|
35224
|
-
fetchOptions
|
35225
|
-
} = resolveConfig(config);
|
35226
|
-
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
35227
|
-
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
35228
|
-
let request;
|
35229
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
35230
|
-
composedSignal.unsubscribe();
|
35198
|
+
get duplex() {
|
35199
|
+
duplexAccessed = true;
|
35200
|
+
return "half";
|
35201
|
+
}
|
35202
|
+
}).headers.has("Content-Type");
|
35203
|
+
return duplexAccessed && !hasContentType;
|
35231
35204
|
});
|
35232
|
-
|
35233
|
-
|
35234
|
-
|
35235
|
-
|
35236
|
-
|
35237
|
-
|
35238
|
-
|
35205
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
35206
|
+
const resolvers = {
|
35207
|
+
stream: supportsResponseStream && ((res) => res.body)
|
35208
|
+
};
|
35209
|
+
isFetchSupported && (() => {
|
35210
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type2) => {
|
35211
|
+
!resolvers[type2] && (resolvers[type2] = (res, config) => {
|
35212
|
+
let method = res && res[type2];
|
35213
|
+
if (method) {
|
35214
|
+
return method.call(res);
|
35215
|
+
}
|
35216
|
+
throw new AxiosError$1(`Response type '${type2}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
|
35239
35217
|
});
|
35240
|
-
|
35241
|
-
|
35242
|
-
|
35243
|
-
|
35244
|
-
|
35245
|
-
const [onProgress, flush] = progressEventDecorator(
|
35246
|
-
requestContentLength,
|
35247
|
-
progressEventReducer(asyncDecorator(onUploadProgress))
|
35248
|
-
);
|
35249
|
-
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
35250
|
-
}
|
35218
|
+
});
|
35219
|
+
})();
|
35220
|
+
const getBodyLength = async (body) => {
|
35221
|
+
if (body == null) {
|
35222
|
+
return 0;
|
35251
35223
|
}
|
35252
|
-
if (
|
35253
|
-
|
35224
|
+
if (utils$1.isBlob(body)) {
|
35225
|
+
return body.size;
|
35254
35226
|
}
|
35255
|
-
|
35256
|
-
|
35257
|
-
|
35258
|
-
|
35259
|
-
method: method.toUpperCase(),
|
35260
|
-
headers: headers.normalize().toJSON(),
|
35261
|
-
body: data,
|
35262
|
-
duplex: "half",
|
35263
|
-
credentials: isCredentialsSupported ? withCredentials : void 0
|
35264
|
-
});
|
35265
|
-
let response = await fetch(request, fetchOptions);
|
35266
|
-
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
35267
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
35268
|
-
const options = {};
|
35269
|
-
["status", "statusText", "headers"].forEach((prop) => {
|
35270
|
-
options[prop] = response[prop];
|
35227
|
+
if (utils$1.isSpecCompliantForm(body)) {
|
35228
|
+
const _request = new Request(platform.origin, {
|
35229
|
+
method: "POST",
|
35230
|
+
body
|
35271
35231
|
});
|
35272
|
-
|
35273
|
-
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
35274
|
-
responseContentLength,
|
35275
|
-
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
35276
|
-
) || [];
|
35277
|
-
response = new Response(
|
35278
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
35279
|
-
flush && flush();
|
35280
|
-
unsubscribe && unsubscribe();
|
35281
|
-
}),
|
35282
|
-
options
|
35283
|
-
);
|
35232
|
+
return (await _request.arrayBuffer()).byteLength;
|
35284
35233
|
}
|
35285
|
-
|
35286
|
-
|
35287
|
-
|
35288
|
-
|
35289
|
-
|
35290
|
-
|
35291
|
-
|
35292
|
-
|
35293
|
-
|
35294
|
-
|
35295
|
-
|
35296
|
-
|
35234
|
+
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
35235
|
+
return body.byteLength;
|
35236
|
+
}
|
35237
|
+
if (utils$1.isURLSearchParams(body)) {
|
35238
|
+
body = body + "";
|
35239
|
+
}
|
35240
|
+
if (utils$1.isString(body)) {
|
35241
|
+
return (await encodeText(body)).byteLength;
|
35242
|
+
}
|
35243
|
+
};
|
35244
|
+
const resolveBodyLength = async (headers, body) => {
|
35245
|
+
const length = utils$1.toFiniteNumber(headers.getContentLength());
|
35246
|
+
return length == null ? getBodyLength(body) : length;
|
35247
|
+
};
|
35248
|
+
return async (config) => {
|
35249
|
+
let {
|
35250
|
+
url,
|
35251
|
+
method,
|
35252
|
+
data,
|
35253
|
+
signal,
|
35254
|
+
cancelToken,
|
35255
|
+
timeout,
|
35256
|
+
onDownloadProgress,
|
35257
|
+
onUploadProgress,
|
35258
|
+
responseType,
|
35259
|
+
headers,
|
35260
|
+
withCredentials = "same-origin",
|
35261
|
+
fetchOptions
|
35262
|
+
} = resolveConfig(config);
|
35263
|
+
let _fetch = envFetch || fetch;
|
35264
|
+
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
35265
|
+
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
35266
|
+
let request = null;
|
35267
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
35268
|
+
composedSignal.unsubscribe();
|
35297
35269
|
});
|
35298
|
-
|
35299
|
-
|
35300
|
-
|
35301
|
-
|
35302
|
-
|
35303
|
-
|
35304
|
-
|
35270
|
+
let requestContentLength;
|
35271
|
+
try {
|
35272
|
+
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
35273
|
+
let _request = new Request(url, {
|
35274
|
+
method: "POST",
|
35275
|
+
body: data,
|
35276
|
+
duplex: "half"
|
35277
|
+
});
|
35278
|
+
let contentTypeHeader;
|
35279
|
+
if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
35280
|
+
headers.setContentType(contentTypeHeader);
|
35281
|
+
}
|
35282
|
+
if (_request.body) {
|
35283
|
+
const [onProgress, flush] = progressEventDecorator(
|
35284
|
+
requestContentLength,
|
35285
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
35286
|
+
);
|
35287
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
35305
35288
|
}
|
35306
|
-
|
35289
|
+
}
|
35290
|
+
if (!utils$1.isString(withCredentials)) {
|
35291
|
+
withCredentials = withCredentials ? "include" : "omit";
|
35292
|
+
}
|
35293
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
35294
|
+
const resolvedOptions = {
|
35295
|
+
...fetchOptions,
|
35296
|
+
signal: composedSignal,
|
35297
|
+
method: method.toUpperCase(),
|
35298
|
+
headers: headers.normalize().toJSON(),
|
35299
|
+
body: data,
|
35300
|
+
duplex: "half",
|
35301
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
35302
|
+
};
|
35303
|
+
request = isRequestSupported && new Request(url, resolvedOptions);
|
35304
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
35305
|
+
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
35306
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
35307
|
+
const options = {};
|
35308
|
+
["status", "statusText", "headers"].forEach((prop) => {
|
35309
|
+
options[prop] = response[prop];
|
35310
|
+
});
|
35311
|
+
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
35312
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
35313
|
+
responseContentLength,
|
35314
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
35315
|
+
) || [];
|
35316
|
+
response = new Response(
|
35317
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
35318
|
+
flush && flush();
|
35319
|
+
unsubscribe && unsubscribe();
|
35320
|
+
}),
|
35321
|
+
options
|
35322
|
+
);
|
35323
|
+
}
|
35324
|
+
responseType = responseType || "text";
|
35325
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
|
35326
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
35327
|
+
return await new Promise((resolve, reject) => {
|
35328
|
+
settle(resolve, reject, {
|
35329
|
+
data: responseData,
|
35330
|
+
headers: AxiosHeaders$1.from(response.headers),
|
35331
|
+
status: response.status,
|
35332
|
+
statusText: response.statusText,
|
35333
|
+
config,
|
35334
|
+
request
|
35335
|
+
});
|
35336
|
+
});
|
35337
|
+
} catch (err) {
|
35338
|
+
unsubscribe && unsubscribe();
|
35339
|
+
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
35340
|
+
throw Object.assign(
|
35341
|
+
new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request),
|
35342
|
+
{
|
35343
|
+
cause: err.cause || err
|
35344
|
+
}
|
35345
|
+
);
|
35346
|
+
}
|
35347
|
+
throw AxiosError$1.from(err, err && err.code, config, request);
|
35307
35348
|
}
|
35308
|
-
|
35349
|
+
};
|
35350
|
+
};
|
35351
|
+
const seedCache = /* @__PURE__ */ new Map();
|
35352
|
+
const getFetch = (config) => {
|
35353
|
+
let env = config ? config.env : {};
|
35354
|
+
const { fetch: fetch2, Request, Response } = env;
|
35355
|
+
const seeds = [
|
35356
|
+
Request,
|
35357
|
+
Response,
|
35358
|
+
fetch2
|
35359
|
+
];
|
35360
|
+
let len = seeds.length, i = len, seed, target, map2 = seedCache;
|
35361
|
+
while (i--) {
|
35362
|
+
seed = seeds[i];
|
35363
|
+
target = map2.get(seed);
|
35364
|
+
target === void 0 && map2.set(seed, target = i ? /* @__PURE__ */ new Map() : factory(env));
|
35365
|
+
map2 = target;
|
35309
35366
|
}
|
35310
|
-
|
35367
|
+
return target;
|
35368
|
+
};
|
35369
|
+
getFetch();
|
35311
35370
|
const knownAdapters = {
|
35312
35371
|
http: httpAdapter,
|
35313
35372
|
xhr: xhrAdapter,
|
35314
|
-
fetch:
|
35373
|
+
fetch: {
|
35374
|
+
get: getFetch
|
35375
|
+
}
|
35315
35376
|
};
|
35316
35377
|
utils$1.forEach(knownAdapters, (fn, value) => {
|
35317
35378
|
if (fn) {
|
@@ -35325,7 +35386,7 @@ utils$1.forEach(knownAdapters, (fn, value) => {
|
|
35325
35386
|
const renderReason = (reason) => `- ${reason}`;
|
35326
35387
|
const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
35327
35388
|
const adapters = {
|
35328
|
-
getAdapter: (adapters2) => {
|
35389
|
+
getAdapter: (adapters2, config) => {
|
35329
35390
|
adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
|
35330
35391
|
const { length } = adapters2;
|
35331
35392
|
let nameOrAdapter;
|
@@ -35341,7 +35402,7 @@ const adapters = {
|
|
35341
35402
|
throw new AxiosError$1(`Unknown adapter '${id}'`);
|
35342
35403
|
}
|
35343
35404
|
}
|
35344
|
-
if (adapter) {
|
35405
|
+
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
35345
35406
|
break;
|
35346
35407
|
}
|
35347
35408
|
rejectedReasons[id || "#" + i] = adapter;
|
@@ -35378,7 +35439,7 @@ function dispatchRequest(config) {
|
|
35378
35439
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
35379
35440
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
35380
35441
|
}
|
35381
|
-
const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
|
35442
|
+
const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
|
35382
35443
|
return adapter(config).then(function onAdapterResolution(response) {
|
35383
35444
|
throwIfCancellationRequested(config);
|
35384
35445
|
response.data = transformData.call(
|
@@ -35403,7 +35464,7 @@ function dispatchRequest(config) {
|
|
35403
35464
|
return Promise.reject(reason);
|
35404
35465
|
});
|
35405
35466
|
}
|
35406
|
-
const VERSION$1 = "1.
|
35467
|
+
const VERSION$1 = "1.12.2";
|
35407
35468
|
const validators$1 = {};
|
35408
35469
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type2, i) => {
|
35409
35470
|
validators$1[type2] = function validator2(thing) {
|
@@ -35582,7 +35643,6 @@ let Axios$1 = class Axios {
|
|
35582
35643
|
}
|
35583
35644
|
len = requestInterceptorChain.length;
|
35584
35645
|
let newConfig = config;
|
35585
|
-
i = 0;
|
35586
35646
|
while (i < len) {
|
35587
35647
|
const onFulfilled = requestInterceptorChain[i++];
|
35588
35648
|
const onRejected = requestInterceptorChain[i++];
|