@ouestfrance/sipa-bms-ui 8.25.0 → 8.25.2
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/components/form/BmsCombobox.vue.d.ts +3 -1
- package/dist/mockServiceWorker.js +1 -1
- package/dist/sipa-bms-ui.css +14 -14
- package/dist/sipa-bms-ui.es.js +240 -146
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +240 -146
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +12 -12
- package/src/components/form/BmsCombobox.vue +18 -14
- package/src/showroom/pages/combobox.vue +2 -2
package/dist/sipa-bms-ui.es.js
CHANGED
|
@@ -87837,7 +87837,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
87837
87837
|
"modelModifiers": {}
|
|
87838
87838
|
}),
|
|
87839
87839
|
emits: /* @__PURE__ */ mergeModels(["addNewOption", "select"], ["update:modelValue"]),
|
|
87840
|
-
setup(__props, { emit: __emit }) {
|
|
87840
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
87841
87841
|
const props = __props;
|
|
87842
87842
|
const emits = __emit;
|
|
87843
87843
|
const modelValue = useModel(__props, "modelValue");
|
|
@@ -87888,6 +87888,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
87888
87888
|
allServerLoadedOptions.value.push(element);
|
|
87889
87889
|
}
|
|
87890
87890
|
});
|
|
87891
|
+
synchronizeSearchWithValue(modelValue.value);
|
|
87891
87892
|
}
|
|
87892
87893
|
} catch (e) {
|
|
87893
87894
|
console.error(e);
|
|
@@ -87941,20 +87942,19 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
87941
87942
|
return localOptions.value;
|
|
87942
87943
|
});
|
|
87943
87944
|
const localOptions = computed(() => {
|
|
87944
|
-
|
|
87945
|
+
const options = props.request ? allServerLoadedOptions.value : props.options;
|
|
87946
|
+
return Array.isArray(options) && !!options.length && typeof options[0] === "string" ? options.map((o) => ({ label: o, value: o })) : options;
|
|
87945
87947
|
});
|
|
87946
87948
|
const selectedItems = computed(() => {
|
|
87947
87949
|
if (!modelValue.value || !Array.isArray(modelValue.value)) return [];
|
|
87948
87950
|
const items = [];
|
|
87949
|
-
|
|
87950
|
-
(option)
|
|
87951
|
-
|
|
87952
|
-
|
|
87953
|
-
|
|
87954
|
-
items.push(option);
|
|
87955
|
-
}
|
|
87951
|
+
localOptions.value.forEach((option) => {
|
|
87952
|
+
if (modelValue.value === option.value) {
|
|
87953
|
+
items.push(option);
|
|
87954
|
+
} else if (modelValue.value?.includes(option.value)) {
|
|
87955
|
+
items.push(option);
|
|
87956
87956
|
}
|
|
87957
|
-
);
|
|
87957
|
+
});
|
|
87958
87958
|
return items;
|
|
87959
87959
|
});
|
|
87960
87960
|
const isOptionSelected = (option) => {
|
|
@@ -88026,6 +88026,9 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
88026
88026
|
closeDatalist();
|
|
88027
88027
|
}
|
|
88028
88028
|
};
|
|
88029
|
+
__expose({
|
|
88030
|
+
setFocus
|
|
88031
|
+
});
|
|
88029
88032
|
return (_ctx, _cache) => {
|
|
88030
88033
|
const _component_field = resolveComponent("field");
|
|
88031
88034
|
return openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
@@ -88131,7 +88134,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
88131
88134
|
}
|
|
88132
88135
|
});
|
|
88133
88136
|
|
|
88134
|
-
const BmsCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-
|
|
88137
|
+
const BmsCombobox = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-acd40993"]]);
|
|
88135
88138
|
|
|
88136
88139
|
const _hoisted_1$F = ["value", "required", "placeholder", "disabled"];
|
|
88137
88140
|
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
@@ -100100,30 +100103,30 @@ function bind(fn, thisArg) {
|
|
|
100100
100103
|
|
|
100101
100104
|
// utils is a library of generic helper functions non-specific to axios
|
|
100102
100105
|
|
|
100103
|
-
const {toString} = Object.prototype;
|
|
100104
|
-
const {getPrototypeOf} = Object;
|
|
100105
|
-
const {iterator, toStringTag} = Symbol;
|
|
100106
|
+
const { toString } = Object.prototype;
|
|
100107
|
+
const { getPrototypeOf } = Object;
|
|
100108
|
+
const { iterator, toStringTag } = Symbol;
|
|
100106
100109
|
|
|
100107
|
-
const kindOf = (cache => thing => {
|
|
100108
|
-
|
|
100109
|
-
|
|
100110
|
+
const kindOf = ((cache) => (thing) => {
|
|
100111
|
+
const str = toString.call(thing);
|
|
100112
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
100110
100113
|
})(Object.create(null));
|
|
100111
100114
|
|
|
100112
100115
|
const kindOfTest = (type) => {
|
|
100113
100116
|
type = type.toLowerCase();
|
|
100114
|
-
return (thing) => kindOf(thing) === type
|
|
100117
|
+
return (thing) => kindOf(thing) === type;
|
|
100115
100118
|
};
|
|
100116
100119
|
|
|
100117
|
-
const typeOfTest = type => thing => typeof thing === type;
|
|
100120
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
100118
100121
|
|
|
100119
100122
|
/**
|
|
100120
|
-
* Determine if a value is
|
|
100123
|
+
* Determine if a value is a non-null object
|
|
100121
100124
|
*
|
|
100122
100125
|
* @param {Object} val The value to test
|
|
100123
100126
|
*
|
|
100124
100127
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
100125
100128
|
*/
|
|
100126
|
-
const {isArray} = Array;
|
|
100129
|
+
const { isArray } = Array;
|
|
100127
100130
|
|
|
100128
100131
|
/**
|
|
100129
100132
|
* Determine if a value is undefined
|
|
@@ -100132,7 +100135,7 @@ const {isArray} = Array;
|
|
|
100132
100135
|
*
|
|
100133
100136
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
100134
100137
|
*/
|
|
100135
|
-
const isUndefined = typeOfTest(
|
|
100138
|
+
const isUndefined = typeOfTest("undefined");
|
|
100136
100139
|
|
|
100137
100140
|
/**
|
|
100138
100141
|
* Determine if a value is a Buffer
|
|
@@ -100142,8 +100145,14 @@ const isUndefined = typeOfTest('undefined');
|
|
|
100142
100145
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
100143
100146
|
*/
|
|
100144
100147
|
function isBuffer(val) {
|
|
100145
|
-
return
|
|
100146
|
-
|
|
100148
|
+
return (
|
|
100149
|
+
val !== null &&
|
|
100150
|
+
!isUndefined(val) &&
|
|
100151
|
+
val.constructor !== null &&
|
|
100152
|
+
!isUndefined(val.constructor) &&
|
|
100153
|
+
isFunction$1(val.constructor.isBuffer) &&
|
|
100154
|
+
val.constructor.isBuffer(val)
|
|
100155
|
+
);
|
|
100147
100156
|
}
|
|
100148
100157
|
|
|
100149
100158
|
/**
|
|
@@ -100153,8 +100162,7 @@ function isBuffer(val) {
|
|
|
100153
100162
|
*
|
|
100154
100163
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
100155
100164
|
*/
|
|
100156
|
-
const isArrayBuffer = kindOfTest(
|
|
100157
|
-
|
|
100165
|
+
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
100158
100166
|
|
|
100159
100167
|
/**
|
|
100160
100168
|
* Determine if a value is a view on an ArrayBuffer
|
|
@@ -100165,10 +100173,10 @@ const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
|
100165
100173
|
*/
|
|
100166
100174
|
function isArrayBufferView(val) {
|
|
100167
100175
|
let result;
|
|
100168
|
-
if (
|
|
100176
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
100169
100177
|
result = ArrayBuffer.isView(val);
|
|
100170
100178
|
} else {
|
|
100171
|
-
result =
|
|
100179
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
100172
100180
|
}
|
|
100173
100181
|
return result;
|
|
100174
100182
|
}
|
|
@@ -100180,7 +100188,7 @@ function isArrayBufferView(val) {
|
|
|
100180
100188
|
*
|
|
100181
100189
|
* @returns {boolean} True if value is a String, otherwise false
|
|
100182
100190
|
*/
|
|
100183
|
-
const isString = typeOfTest(
|
|
100191
|
+
const isString = typeOfTest("string");
|
|
100184
100192
|
|
|
100185
100193
|
/**
|
|
100186
100194
|
* Determine if a value is a Function
|
|
@@ -100188,7 +100196,7 @@ const isString = typeOfTest('string');
|
|
|
100188
100196
|
* @param {*} val The value to test
|
|
100189
100197
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
100190
100198
|
*/
|
|
100191
|
-
const isFunction$1 = typeOfTest(
|
|
100199
|
+
const isFunction$1 = typeOfTest("function");
|
|
100192
100200
|
|
|
100193
100201
|
/**
|
|
100194
100202
|
* Determine if a value is a Number
|
|
@@ -100197,7 +100205,7 @@ const isFunction$1 = typeOfTest('function');
|
|
|
100197
100205
|
*
|
|
100198
100206
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
100199
100207
|
*/
|
|
100200
|
-
const isNumber = typeOfTest(
|
|
100208
|
+
const isNumber = typeOfTest("number");
|
|
100201
100209
|
|
|
100202
100210
|
/**
|
|
100203
100211
|
* Determine if a value is an Object
|
|
@@ -100206,7 +100214,7 @@ const isNumber = typeOfTest('number');
|
|
|
100206
100214
|
*
|
|
100207
100215
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
100208
100216
|
*/
|
|
100209
|
-
const isObject$1 = (thing) => thing !== null && typeof thing ===
|
|
100217
|
+
const isObject$1 = (thing) => thing !== null && typeof thing === "object";
|
|
100210
100218
|
|
|
100211
100219
|
/**
|
|
100212
100220
|
* Determine if a value is a Boolean
|
|
@@ -100214,7 +100222,7 @@ const isObject$1 = (thing) => thing !== null && typeof thing === 'object';
|
|
|
100214
100222
|
* @param {*} thing The value to test
|
|
100215
100223
|
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
100216
100224
|
*/
|
|
100217
|
-
const isBoolean = thing => thing === true || thing === false;
|
|
100225
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
100218
100226
|
|
|
100219
100227
|
/**
|
|
100220
100228
|
* Determine if a value is a plain Object
|
|
@@ -100224,12 +100232,18 @@ const isBoolean = thing => thing === true || thing === false;
|
|
|
100224
100232
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
100225
100233
|
*/
|
|
100226
100234
|
const isPlainObject = (val) => {
|
|
100227
|
-
if (kindOf(val) !==
|
|
100235
|
+
if (kindOf(val) !== "object") {
|
|
100228
100236
|
return false;
|
|
100229
100237
|
}
|
|
100230
100238
|
|
|
100231
100239
|
const prototype = getPrototypeOf(val);
|
|
100232
|
-
return (
|
|
100240
|
+
return (
|
|
100241
|
+
(prototype === null ||
|
|
100242
|
+
prototype === Object.prototype ||
|
|
100243
|
+
Object.getPrototypeOf(prototype) === null) &&
|
|
100244
|
+
!(toStringTag in val) &&
|
|
100245
|
+
!(iterator in val)
|
|
100246
|
+
);
|
|
100233
100247
|
};
|
|
100234
100248
|
|
|
100235
100249
|
/**
|
|
@@ -100246,7 +100260,10 @@ const isEmptyObject = (val) => {
|
|
|
100246
100260
|
}
|
|
100247
100261
|
|
|
100248
100262
|
try {
|
|
100249
|
-
return
|
|
100263
|
+
return (
|
|
100264
|
+
Object.keys(val).length === 0 &&
|
|
100265
|
+
Object.getPrototypeOf(val) === Object.prototype
|
|
100266
|
+
);
|
|
100250
100267
|
} catch (e) {
|
|
100251
100268
|
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
100252
100269
|
return false;
|
|
@@ -100260,7 +100277,7 @@ const isEmptyObject = (val) => {
|
|
|
100260
100277
|
*
|
|
100261
100278
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
100262
100279
|
*/
|
|
100263
|
-
const isDate = kindOfTest(
|
|
100280
|
+
const isDate = kindOfTest("Date");
|
|
100264
100281
|
|
|
100265
100282
|
/**
|
|
100266
100283
|
* Determine if a value is a File
|
|
@@ -100269,7 +100286,7 @@ const isDate = kindOfTest('Date');
|
|
|
100269
100286
|
*
|
|
100270
100287
|
* @returns {boolean} True if value is a File, otherwise false
|
|
100271
100288
|
*/
|
|
100272
|
-
const isFile = kindOfTest(
|
|
100289
|
+
const isFile = kindOfTest("File");
|
|
100273
100290
|
|
|
100274
100291
|
/**
|
|
100275
100292
|
* Determine if a value is a Blob
|
|
@@ -100278,7 +100295,7 @@ const isFile = kindOfTest('File');
|
|
|
100278
100295
|
*
|
|
100279
100296
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
100280
100297
|
*/
|
|
100281
|
-
const isBlob = kindOfTest(
|
|
100298
|
+
const isBlob = kindOfTest("Blob");
|
|
100282
100299
|
|
|
100283
100300
|
/**
|
|
100284
100301
|
* Determine if a value is a FileList
|
|
@@ -100287,7 +100304,7 @@ const isBlob = kindOfTest('Blob');
|
|
|
100287
100304
|
*
|
|
100288
100305
|
* @returns {boolean} True if value is a File, otherwise false
|
|
100289
100306
|
*/
|
|
100290
|
-
const isFileList = kindOfTest(
|
|
100307
|
+
const isFileList = kindOfTest("FileList");
|
|
100291
100308
|
|
|
100292
100309
|
/**
|
|
100293
100310
|
* Determine if a value is a Stream
|
|
@@ -100307,15 +100324,16 @@ const isStream = (val) => isObject$1(val) && isFunction$1(val.pipe);
|
|
|
100307
100324
|
*/
|
|
100308
100325
|
const isFormData = (thing) => {
|
|
100309
100326
|
let kind;
|
|
100310
|
-
return
|
|
100311
|
-
|
|
100312
|
-
|
|
100313
|
-
|
|
100314
|
-
|
|
100315
|
-
|
|
100316
|
-
|
|
100317
|
-
|
|
100318
|
-
|
|
100327
|
+
return (
|
|
100328
|
+
thing &&
|
|
100329
|
+
((typeof FormData === "function" && thing instanceof FormData) ||
|
|
100330
|
+
(isFunction$1(thing.append) &&
|
|
100331
|
+
((kind = kindOf(thing)) === "formdata" ||
|
|
100332
|
+
// detect form-data instance
|
|
100333
|
+
(kind === "object" &&
|
|
100334
|
+
isFunction$1(thing.toString) &&
|
|
100335
|
+
thing.toString() === "[object FormData]"))))
|
|
100336
|
+
);
|
|
100319
100337
|
};
|
|
100320
100338
|
|
|
100321
100339
|
/**
|
|
@@ -100325,9 +100343,14 @@ const isFormData = (thing) => {
|
|
|
100325
100343
|
*
|
|
100326
100344
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
100327
100345
|
*/
|
|
100328
|
-
const isURLSearchParams = kindOfTest(
|
|
100346
|
+
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
100329
100347
|
|
|
100330
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
100348
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
100349
|
+
"ReadableStream",
|
|
100350
|
+
"Request",
|
|
100351
|
+
"Response",
|
|
100352
|
+
"Headers",
|
|
100353
|
+
].map(kindOfTest);
|
|
100331
100354
|
|
|
100332
100355
|
/**
|
|
100333
100356
|
* Trim excess whitespace off the beginning and end of a string
|
|
@@ -100336,8 +100359,8 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream',
|
|
|
100336
100359
|
*
|
|
100337
100360
|
* @returns {String} The String freed of excess whitespace
|
|
100338
100361
|
*/
|
|
100339
|
-
const trim = (str) =>
|
|
100340
|
-
str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
100362
|
+
const trim = (str) =>
|
|
100363
|
+
str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
100341
100364
|
|
|
100342
100365
|
/**
|
|
100343
100366
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
@@ -100355,9 +100378,9 @@ const trim = (str) => str.trim ?
|
|
|
100355
100378
|
* @param {Boolean} [options.allOwnKeys = false]
|
|
100356
100379
|
* @returns {any}
|
|
100357
100380
|
*/
|
|
100358
|
-
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
100381
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
100359
100382
|
// Don't bother if no value provided
|
|
100360
|
-
if (obj === null || typeof obj ===
|
|
100383
|
+
if (obj === null || typeof obj === "undefined") {
|
|
100361
100384
|
return;
|
|
100362
100385
|
}
|
|
100363
100386
|
|
|
@@ -100365,7 +100388,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
100365
100388
|
let l;
|
|
100366
100389
|
|
|
100367
100390
|
// Force an array if not already something iterable
|
|
100368
|
-
if (typeof obj !==
|
|
100391
|
+
if (typeof obj !== "object") {
|
|
100369
100392
|
/*eslint no-param-reassign:0*/
|
|
100370
100393
|
obj = [obj];
|
|
100371
100394
|
}
|
|
@@ -100382,7 +100405,9 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
100382
100405
|
}
|
|
100383
100406
|
|
|
100384
100407
|
// Iterate over object keys
|
|
100385
|
-
const keys = allOwnKeys
|
|
100408
|
+
const keys = allOwnKeys
|
|
100409
|
+
? Object.getOwnPropertyNames(obj)
|
|
100410
|
+
: Object.keys(obj);
|
|
100386
100411
|
const len = keys.length;
|
|
100387
100412
|
let key;
|
|
100388
100413
|
|
|
@@ -100394,7 +100419,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
100394
100419
|
}
|
|
100395
100420
|
|
|
100396
100421
|
function findKey(obj, key) {
|
|
100397
|
-
if (isBuffer(obj)){
|
|
100422
|
+
if (isBuffer(obj)) {
|
|
100398
100423
|
return null;
|
|
100399
100424
|
}
|
|
100400
100425
|
|
|
@@ -100414,10 +100439,15 @@ function findKey(obj, key) {
|
|
|
100414
100439
|
const _global = (() => {
|
|
100415
100440
|
/*eslint no-undef:0*/
|
|
100416
100441
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
100417
|
-
return typeof self !== "undefined"
|
|
100442
|
+
return typeof self !== "undefined"
|
|
100443
|
+
? self
|
|
100444
|
+
: typeof window !== "undefined"
|
|
100445
|
+
? window
|
|
100446
|
+
: global;
|
|
100418
100447
|
})();
|
|
100419
100448
|
|
|
100420
|
-
const isContextDefined = (context) =>
|
|
100449
|
+
const isContextDefined = (context) =>
|
|
100450
|
+
!isUndefined(context) && context !== _global;
|
|
100421
100451
|
|
|
100422
100452
|
/**
|
|
100423
100453
|
* Accepts varargs expecting each argument to be an object, then
|
|
@@ -100438,10 +100468,15 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
100438
100468
|
* @returns {Object} Result of all merge properties
|
|
100439
100469
|
*/
|
|
100440
100470
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
100441
|
-
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
100471
|
+
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
100442
100472
|
const result = {};
|
|
100443
100473
|
const assignValue = (val, key) => {
|
|
100444
|
-
|
|
100474
|
+
// Skip dangerous property names to prevent prototype pollution
|
|
100475
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
100476
|
+
return;
|
|
100477
|
+
}
|
|
100478
|
+
|
|
100479
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
100445
100480
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
100446
100481
|
result[targetKey] = merge(result[targetKey], val);
|
|
100447
100482
|
} else if (isPlainObject(val)) {
|
|
@@ -100470,24 +100505,28 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
100470
100505
|
* @param {Boolean} [options.allOwnKeys]
|
|
100471
100506
|
* @returns {Object} The resulting value of object a
|
|
100472
100507
|
*/
|
|
100473
|
-
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
100474
|
-
forEach(
|
|
100475
|
-
|
|
100476
|
-
|
|
100477
|
-
|
|
100478
|
-
|
|
100479
|
-
|
|
100480
|
-
|
|
100481
|
-
|
|
100482
|
-
|
|
100483
|
-
|
|
100484
|
-
|
|
100485
|
-
|
|
100486
|
-
|
|
100487
|
-
|
|
100488
|
-
|
|
100489
|
-
|
|
100490
|
-
|
|
100508
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
100509
|
+
forEach(
|
|
100510
|
+
b,
|
|
100511
|
+
(val, key) => {
|
|
100512
|
+
if (thisArg && isFunction$1(val)) {
|
|
100513
|
+
Object.defineProperty(a, key, {
|
|
100514
|
+
value: bind(val, thisArg),
|
|
100515
|
+
writable: true,
|
|
100516
|
+
enumerable: true,
|
|
100517
|
+
configurable: true,
|
|
100518
|
+
});
|
|
100519
|
+
} else {
|
|
100520
|
+
Object.defineProperty(a, key, {
|
|
100521
|
+
value: val,
|
|
100522
|
+
writable: true,
|
|
100523
|
+
enumerable: true,
|
|
100524
|
+
configurable: true,
|
|
100525
|
+
});
|
|
100526
|
+
}
|
|
100527
|
+
},
|
|
100528
|
+
{ allOwnKeys },
|
|
100529
|
+
);
|
|
100491
100530
|
return a;
|
|
100492
100531
|
};
|
|
100493
100532
|
|
|
@@ -100499,7 +100538,7 @@ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
|
100499
100538
|
* @returns {string} content value without BOM
|
|
100500
100539
|
*/
|
|
100501
100540
|
const stripBOM = (content) => {
|
|
100502
|
-
if (content.charCodeAt(0) ===
|
|
100541
|
+
if (content.charCodeAt(0) === 0xfeff) {
|
|
100503
100542
|
content = content.slice(1);
|
|
100504
100543
|
}
|
|
100505
100544
|
return content;
|
|
@@ -100515,15 +100554,18 @@ const stripBOM = (content) => {
|
|
|
100515
100554
|
* @returns {void}
|
|
100516
100555
|
*/
|
|
100517
100556
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
100518
|
-
constructor.prototype = Object.create(
|
|
100519
|
-
|
|
100557
|
+
constructor.prototype = Object.create(
|
|
100558
|
+
superConstructor.prototype,
|
|
100559
|
+
descriptors,
|
|
100560
|
+
);
|
|
100561
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
100520
100562
|
value: constructor,
|
|
100521
100563
|
writable: true,
|
|
100522
100564
|
enumerable: false,
|
|
100523
|
-
configurable: true
|
|
100565
|
+
configurable: true,
|
|
100524
100566
|
});
|
|
100525
|
-
Object.defineProperty(constructor,
|
|
100526
|
-
value: superConstructor.prototype
|
|
100567
|
+
Object.defineProperty(constructor, "super", {
|
|
100568
|
+
value: superConstructor.prototype,
|
|
100527
100569
|
});
|
|
100528
100570
|
props && Object.assign(constructor.prototype, props);
|
|
100529
100571
|
};
|
|
@@ -100552,13 +100594,20 @@ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
|
|
|
100552
100594
|
i = props.length;
|
|
100553
100595
|
while (i-- > 0) {
|
|
100554
100596
|
prop = props[i];
|
|
100555
|
-
if (
|
|
100597
|
+
if (
|
|
100598
|
+
(!propFilter || propFilter(prop, sourceObj, destObj)) &&
|
|
100599
|
+
!merged[prop]
|
|
100600
|
+
) {
|
|
100556
100601
|
destObj[prop] = sourceObj[prop];
|
|
100557
100602
|
merged[prop] = true;
|
|
100558
100603
|
}
|
|
100559
100604
|
}
|
|
100560
100605
|
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
|
100561
|
-
} while (
|
|
100606
|
+
} while (
|
|
100607
|
+
sourceObj &&
|
|
100608
|
+
(!filter || filter(sourceObj, destObj)) &&
|
|
100609
|
+
sourceObj !== Object.prototype
|
|
100610
|
+
);
|
|
100562
100611
|
|
|
100563
100612
|
return destObj;
|
|
100564
100613
|
};
|
|
@@ -100582,7 +100631,6 @@ const endsWith = (str, searchString, position) => {
|
|
|
100582
100631
|
return lastIndex !== -1 && lastIndex === position;
|
|
100583
100632
|
};
|
|
100584
100633
|
|
|
100585
|
-
|
|
100586
100634
|
/**
|
|
100587
100635
|
* Returns new array from array like object or null if failed
|
|
100588
100636
|
*
|
|
@@ -100611,12 +100659,12 @@ const toArray = (thing) => {
|
|
|
100611
100659
|
* @returns {Array}
|
|
100612
100660
|
*/
|
|
100613
100661
|
// eslint-disable-next-line func-names
|
|
100614
|
-
const isTypedArray = (TypedArray => {
|
|
100662
|
+
const isTypedArray = ((TypedArray) => {
|
|
100615
100663
|
// eslint-disable-next-line func-names
|
|
100616
|
-
return thing => {
|
|
100664
|
+
return (thing) => {
|
|
100617
100665
|
return TypedArray && thing instanceof TypedArray;
|
|
100618
100666
|
};
|
|
100619
|
-
})(typeof Uint8Array !==
|
|
100667
|
+
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
100620
100668
|
|
|
100621
100669
|
/**
|
|
100622
100670
|
* For each entry in the object, call the function with the key and value.
|
|
@@ -100659,18 +100707,22 @@ const matchAll = (regExp, str) => {
|
|
|
100659
100707
|
};
|
|
100660
100708
|
|
|
100661
100709
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
100662
|
-
const isHTMLForm = kindOfTest(
|
|
100710
|
+
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
100663
100711
|
|
|
100664
|
-
const toCamelCase = str => {
|
|
100665
|
-
return str
|
|
100666
|
-
|
|
100712
|
+
const toCamelCase = (str) => {
|
|
100713
|
+
return str
|
|
100714
|
+
.toLowerCase()
|
|
100715
|
+
.replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
100667
100716
|
return p1.toUpperCase() + p2;
|
|
100668
|
-
}
|
|
100669
|
-
);
|
|
100717
|
+
});
|
|
100670
100718
|
};
|
|
100671
100719
|
|
|
100672
100720
|
/* Creating a function that will check if an object has a property. */
|
|
100673
|
-
const hasOwnProperty = (
|
|
100721
|
+
const hasOwnProperty = (
|
|
100722
|
+
({ hasOwnProperty }) =>
|
|
100723
|
+
(obj, prop) =>
|
|
100724
|
+
hasOwnProperty.call(obj, prop)
|
|
100725
|
+
)(Object.prototype);
|
|
100674
100726
|
|
|
100675
100727
|
/**
|
|
100676
100728
|
* Determine if a value is a RegExp object
|
|
@@ -100679,7 +100731,7 @@ const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call
|
|
|
100679
100731
|
*
|
|
100680
100732
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
100681
100733
|
*/
|
|
100682
|
-
const isRegExp = kindOfTest(
|
|
100734
|
+
const isRegExp = kindOfTest("RegExp");
|
|
100683
100735
|
|
|
100684
100736
|
const reduceDescriptors = (obj, reducer) => {
|
|
100685
100737
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -100703,7 +100755,10 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
100703
100755
|
const freezeMethods = (obj) => {
|
|
100704
100756
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
100705
100757
|
// skip restricted props in strict mode
|
|
100706
|
-
if (
|
|
100758
|
+
if (
|
|
100759
|
+
isFunction$1(obj) &&
|
|
100760
|
+
["arguments", "caller", "callee"].indexOf(name) !== -1
|
|
100761
|
+
) {
|
|
100707
100762
|
return false;
|
|
100708
100763
|
}
|
|
100709
100764
|
|
|
@@ -100713,14 +100768,14 @@ const freezeMethods = (obj) => {
|
|
|
100713
100768
|
|
|
100714
100769
|
descriptor.enumerable = false;
|
|
100715
100770
|
|
|
100716
|
-
if (
|
|
100771
|
+
if ("writable" in descriptor) {
|
|
100717
100772
|
descriptor.writable = false;
|
|
100718
100773
|
return;
|
|
100719
100774
|
}
|
|
100720
100775
|
|
|
100721
100776
|
if (!descriptor.set) {
|
|
100722
100777
|
descriptor.set = () => {
|
|
100723
|
-
throw Error(
|
|
100778
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
100724
100779
|
};
|
|
100725
100780
|
}
|
|
100726
100781
|
});
|
|
@@ -100730,12 +100785,14 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
100730
100785
|
const obj = {};
|
|
100731
100786
|
|
|
100732
100787
|
const define = (arr) => {
|
|
100733
|
-
arr.forEach(value => {
|
|
100788
|
+
arr.forEach((value) => {
|
|
100734
100789
|
obj[value] = true;
|
|
100735
100790
|
});
|
|
100736
100791
|
};
|
|
100737
100792
|
|
|
100738
|
-
isArray(arrayOrString)
|
|
100793
|
+
isArray(arrayOrString)
|
|
100794
|
+
? define(arrayOrString)
|
|
100795
|
+
: define(String(arrayOrString).split(delimiter));
|
|
100739
100796
|
|
|
100740
100797
|
return obj;
|
|
100741
100798
|
};
|
|
@@ -100743,11 +100800,11 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
100743
100800
|
const noop = () => {};
|
|
100744
100801
|
|
|
100745
100802
|
const toFiniteNumber = (value, defaultValue) => {
|
|
100746
|
-
return value != null && Number.isFinite(value = +value)
|
|
100803
|
+
return value != null && Number.isFinite((value = +value))
|
|
100804
|
+
? value
|
|
100805
|
+
: defaultValue;
|
|
100747
100806
|
};
|
|
100748
100807
|
|
|
100749
|
-
|
|
100750
|
-
|
|
100751
100808
|
/**
|
|
100752
100809
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
100753
100810
|
*
|
|
@@ -100756,14 +100813,18 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
100756
100813
|
* @returns {boolean}
|
|
100757
100814
|
*/
|
|
100758
100815
|
function isSpecCompliantForm(thing) {
|
|
100759
|
-
return !!(
|
|
100816
|
+
return !!(
|
|
100817
|
+
thing &&
|
|
100818
|
+
isFunction$1(thing.append) &&
|
|
100819
|
+
thing[toStringTag] === "FormData" &&
|
|
100820
|
+
thing[iterator]
|
|
100821
|
+
);
|
|
100760
100822
|
}
|
|
100761
100823
|
|
|
100762
100824
|
const toJSONObject = (obj) => {
|
|
100763
100825
|
const stack = new Array(10);
|
|
100764
100826
|
|
|
100765
100827
|
const visit = (source, i) => {
|
|
100766
|
-
|
|
100767
100828
|
if (isObject$1(source)) {
|
|
100768
100829
|
if (stack.indexOf(source) >= 0) {
|
|
100769
100830
|
return;
|
|
@@ -100774,7 +100835,7 @@ const toJSONObject = (obj) => {
|
|
|
100774
100835
|
return source;
|
|
100775
100836
|
}
|
|
100776
100837
|
|
|
100777
|
-
if(!(
|
|
100838
|
+
if (!("toJSON" in source)) {
|
|
100778
100839
|
stack[i] = source;
|
|
100779
100840
|
const target = isArray(source) ? [] : {};
|
|
100780
100841
|
|
|
@@ -100795,10 +100856,13 @@ const toJSONObject = (obj) => {
|
|
|
100795
100856
|
return visit(obj, 0);
|
|
100796
100857
|
};
|
|
100797
100858
|
|
|
100798
|
-
const isAsyncFn = kindOfTest(
|
|
100859
|
+
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
100799
100860
|
|
|
100800
100861
|
const isThenable = (thing) =>
|
|
100801
|
-
thing &&
|
|
100862
|
+
thing &&
|
|
100863
|
+
(isObject$1(thing) || isFunction$1(thing)) &&
|
|
100864
|
+
isFunction$1(thing.then) &&
|
|
100865
|
+
isFunction$1(thing.catch);
|
|
100802
100866
|
|
|
100803
100867
|
// original code
|
|
100804
100868
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
@@ -100808,32 +100872,35 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
100808
100872
|
return setImmediate;
|
|
100809
100873
|
}
|
|
100810
100874
|
|
|
100811
|
-
return postMessageSupported
|
|
100812
|
-
|
|
100813
|
-
|
|
100814
|
-
|
|
100815
|
-
|
|
100816
|
-
|
|
100875
|
+
return postMessageSupported
|
|
100876
|
+
? ((token, callbacks) => {
|
|
100877
|
+
_global.addEventListener(
|
|
100878
|
+
"message",
|
|
100879
|
+
({ source, data }) => {
|
|
100880
|
+
if (source === _global && data === token) {
|
|
100881
|
+
callbacks.length && callbacks.shift()();
|
|
100882
|
+
}
|
|
100883
|
+
},
|
|
100884
|
+
false,
|
|
100885
|
+
);
|
|
100817
100886
|
|
|
100818
|
-
|
|
100819
|
-
|
|
100820
|
-
|
|
100821
|
-
|
|
100822
|
-
|
|
100823
|
-
|
|
100824
|
-
|
|
100825
|
-
isFunction$1(_global.postMessage)
|
|
100826
|
-
);
|
|
100887
|
+
return (cb) => {
|
|
100888
|
+
callbacks.push(cb);
|
|
100889
|
+
_global.postMessage(token, "*");
|
|
100890
|
+
};
|
|
100891
|
+
})(`axios@${Math.random()}`, [])
|
|
100892
|
+
: (cb) => setTimeout(cb);
|
|
100893
|
+
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
100827
100894
|
|
|
100828
|
-
const asap =
|
|
100829
|
-
|
|
100895
|
+
const asap =
|
|
100896
|
+
typeof queueMicrotask !== "undefined"
|
|
100897
|
+
? queueMicrotask.bind(_global)
|
|
100898
|
+
: (typeof process !== "undefined" && process.nextTick) || _setImmediate;
|
|
100830
100899
|
|
|
100831
100900
|
// *********************
|
|
100832
100901
|
|
|
100833
|
-
|
|
100834
100902
|
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
100835
100903
|
|
|
100836
|
-
|
|
100837
100904
|
const utils$1 = {
|
|
100838
100905
|
isArray,
|
|
100839
100906
|
isArrayBuffer,
|
|
@@ -100891,7 +100958,7 @@ const utils$1 = {
|
|
|
100891
100958
|
isThenable,
|
|
100892
100959
|
setImmediate: _setImmediate,
|
|
100893
100960
|
asap,
|
|
100894
|
-
isIterable
|
|
100961
|
+
isIterable,
|
|
100895
100962
|
};
|
|
100896
100963
|
|
|
100897
100964
|
let AxiosError$1 = class AxiosError extends Error {
|
|
@@ -101363,7 +101430,8 @@ class InterceptorManager {
|
|
|
101363
101430
|
const transitionalDefaults = {
|
|
101364
101431
|
silentJSONParsing: true,
|
|
101365
101432
|
forcedJSONParsing: true,
|
|
101366
|
-
clarifyTimeoutError: false
|
|
101433
|
+
clarifyTimeoutError: false,
|
|
101434
|
+
legacyInterceptorReqResOrdering: true
|
|
101367
101435
|
};
|
|
101368
101436
|
|
|
101369
101437
|
const URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
|
@@ -102337,6 +102405,10 @@ function isAbsoluteURL(url) {
|
|
|
102337
102405
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
102338
102406
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
102339
102407
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
102408
|
+
if (typeof url !== 'string') {
|
|
102409
|
+
return false;
|
|
102410
|
+
}
|
|
102411
|
+
|
|
102340
102412
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
102341
102413
|
}
|
|
102342
102414
|
|
|
@@ -102372,7 +102444,8 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
102372
102444
|
return requestedURL;
|
|
102373
102445
|
}
|
|
102374
102446
|
|
|
102375
|
-
const headersToObject = (thing) =>
|
|
102447
|
+
const headersToObject = (thing) =>
|
|
102448
|
+
thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
102376
102449
|
|
|
102377
102450
|
/**
|
|
102378
102451
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -102461,14 +102534,27 @@ function mergeConfig$1(config1, config2) {
|
|
|
102461
102534
|
socketPath: defaultToConfig2,
|
|
102462
102535
|
responseEncoding: defaultToConfig2,
|
|
102463
102536
|
validateStatus: mergeDirectKeys,
|
|
102464
|
-
headers: (a, b, prop) =>
|
|
102537
|
+
headers: (a, b, prop) =>
|
|
102538
|
+
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
102465
102539
|
};
|
|
102466
102540
|
|
|
102467
|
-
utils$1.forEach(
|
|
102468
|
-
|
|
102469
|
-
|
|
102470
|
-
|
|
102471
|
-
|
|
102541
|
+
utils$1.forEach(
|
|
102542
|
+
Object.keys({ ...config1, ...config2 }),
|
|
102543
|
+
function computeConfigValue(prop) {
|
|
102544
|
+
if (
|
|
102545
|
+
prop === "__proto__" ||
|
|
102546
|
+
prop === "constructor" ||
|
|
102547
|
+
prop === "prototype"
|
|
102548
|
+
)
|
|
102549
|
+
return;
|
|
102550
|
+
const merge = utils$1.hasOwnProp(mergeMap, prop)
|
|
102551
|
+
? mergeMap[prop]
|
|
102552
|
+
: mergeDeepProperties;
|
|
102553
|
+
const configValue = merge(config1[prop], config2[prop], prop);
|
|
102554
|
+
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) ||
|
|
102555
|
+
(config[prop] = configValue);
|
|
102556
|
+
},
|
|
102557
|
+
);
|
|
102472
102558
|
|
|
102473
102559
|
return config;
|
|
102474
102560
|
}
|
|
@@ -103084,14 +103170,14 @@ const factory = (env) => {
|
|
|
103084
103170
|
|
|
103085
103171
|
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
103086
103172
|
throw Object.assign(
|
|
103087
|
-
new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
|
|
103173
|
+
new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request, err && err.response),
|
|
103088
103174
|
{
|
|
103089
103175
|
cause: err.cause || err
|
|
103090
103176
|
}
|
|
103091
103177
|
)
|
|
103092
103178
|
}
|
|
103093
103179
|
|
|
103094
|
-
throw AxiosError$1.from(err, err && err.code, config, request);
|
|
103180
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
103095
103181
|
}
|
|
103096
103182
|
}
|
|
103097
103183
|
};
|
|
@@ -103316,7 +103402,7 @@ function dispatchRequest(config) {
|
|
|
103316
103402
|
});
|
|
103317
103403
|
}
|
|
103318
103404
|
|
|
103319
|
-
const VERSION$1 = "1.13.
|
|
103405
|
+
const VERSION$1 = "1.13.5";
|
|
103320
103406
|
|
|
103321
103407
|
const validators$1 = {};
|
|
103322
103408
|
|
|
@@ -103484,7 +103570,8 @@ let Axios$1 = class Axios {
|
|
|
103484
103570
|
validator.assertOptions(transitional, {
|
|
103485
103571
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
103486
103572
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
103487
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
103573
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
103574
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
103488
103575
|
}, false);
|
|
103489
103576
|
}
|
|
103490
103577
|
|
|
@@ -103541,7 +103628,14 @@ let Axios$1 = class Axios {
|
|
|
103541
103628
|
|
|
103542
103629
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
103543
103630
|
|
|
103544
|
-
|
|
103631
|
+
const transitional = config.transitional || transitionalDefaults;
|
|
103632
|
+
const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
|
|
103633
|
+
|
|
103634
|
+
if (legacyInterceptorReqResOrdering) {
|
|
103635
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
103636
|
+
} else {
|
|
103637
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
103638
|
+
}
|
|
103545
103639
|
});
|
|
103546
103640
|
|
|
103547
103641
|
const responseInterceptorChain = [];
|