@vonage/client-sdk 1.3.1-snapshot.104.0 → 1.3.1
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/client/index.cjs +12 -12
- package/dist/client/index.mjs +12 -12
- package/dist/vonageClientSDK.js +332 -254
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +332 -254
- package/package.json +2 -2
package/dist/vonageClientSDK.js
CHANGED
|
@@ -19593,16 +19593,6 @@
|
|
|
19593
19593
|
setMetadataFor(Companion_121, 'Companion', objectMeta);
|
|
19594
19594
|
setMetadataFor($serializer_143, '$serializer', objectMeta, VOID, [GeneratedSerializer]);
|
|
19595
19595
|
setMetadataFor(SessionTerminatedEvent, 'SessionTerminatedEvent', classMeta, VOID, [SocketEvent], VOID, {0: $serializer_getInstance_143});
|
|
19596
|
-
function onRTCHangup(conversationId, legId, hangup) {
|
|
19597
|
-
}
|
|
19598
|
-
function onRTCTransfer(conversationId, legId) {
|
|
19599
|
-
}
|
|
19600
|
-
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
19601
|
-
}
|
|
19602
|
-
setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
|
|
19603
|
-
function onConversationEvent(event) {
|
|
19604
|
-
}
|
|
19605
|
-
setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
|
|
19606
19596
|
function onAudioSay() {
|
|
19607
19597
|
}
|
|
19608
19598
|
function onAudioMuteUpdate(conversationId, legId, isMuted) {
|
|
@@ -19612,7 +19602,17 @@
|
|
|
19612
19602
|
function onAudioDTMFUpdate(conversationId, legId, digits) {
|
|
19613
19603
|
}
|
|
19614
19604
|
setMetadataFor(AudioEventListener, 'AudioEventListener', interfaceMeta);
|
|
19615
|
-
|
|
19605
|
+
function onConversationEvent(event) {
|
|
19606
|
+
}
|
|
19607
|
+
setMetadataFor(ConversationEventListener, 'ConversationEventListener', interfaceMeta);
|
|
19608
|
+
function onRTCHangup(conversationId, legId, hangup) {
|
|
19609
|
+
}
|
|
19610
|
+
function onRTCTransfer(conversationId, legId) {
|
|
19611
|
+
}
|
|
19612
|
+
function onLegStatusUpdate(conversationId, legId, fromUserId, status) {
|
|
19613
|
+
}
|
|
19614
|
+
setMetadataFor(RTCEventListener, 'RTCEventListener', interfaceMeta);
|
|
19615
|
+
setMetadataFor(ChatAPIImpl$1, VOID, classMeta, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
|
|
19616
19616
|
setMetadataFor(ChatAPIImpl, 'ChatAPIImpl', classMeta, VOID, [ChatAPI]);
|
|
19617
19617
|
setMetadataFor(LoggingLevel, 'LoggingLevel', classMeta, Enum);
|
|
19618
19618
|
setMetadataFor(ClientConfigRegion, 'ClientConfigRegion', classMeta, Enum);
|
|
@@ -19721,7 +19721,7 @@
|
|
|
19721
19721
|
setMetadataFor(HangupReason, 'HangupReason', classMeta, Enum);
|
|
19722
19722
|
setMetadataFor(LegStatus, 'LegStatus', classMeta, Enum);
|
|
19723
19723
|
setMetadataFor(CallDisconnectReason, 'CallDisconnectReason', classMeta, Enum);
|
|
19724
|
-
setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [
|
|
19724
|
+
setMetadataFor(VoiceAPIImpl$1, VOID, classMeta, VOID, [AudioEventListener, ConversationEventListener, RTCEventListener]);
|
|
19725
19725
|
setMetadataFor(VoiceAPIImpl, 'VoiceAPIImpl', classMeta);
|
|
19726
19726
|
setMetadataFor(CallEvent, 'CallEvent', interfaceMeta);
|
|
19727
19727
|
setMetadataFor(SetupOutboundCall, 'SetupOutboundCall', classMeta, VOID, [CallEvent]);
|
|
@@ -65556,12 +65556,16 @@
|
|
|
65556
65556
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
65557
65557
|
*/
|
|
65558
65558
|
const isFormData = (thing) => {
|
|
65559
|
-
|
|
65559
|
+
let kind;
|
|
65560
65560
|
return thing && (
|
|
65561
|
-
(typeof FormData === 'function' && thing instanceof FormData) ||
|
|
65562
|
-
|
|
65563
|
-
|
|
65564
|
-
|
|
65561
|
+
(typeof FormData === 'function' && thing instanceof FormData) || (
|
|
65562
|
+
isFunction(thing.append) && (
|
|
65563
|
+
(kind = kindOf(thing)) === 'formdata' ||
|
|
65564
|
+
// detect form-data instance
|
|
65565
|
+
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
|
|
65566
|
+
)
|
|
65567
|
+
)
|
|
65568
|
+
)
|
|
65565
65569
|
};
|
|
65566
65570
|
|
|
65567
65571
|
/**
|
|
@@ -65880,7 +65884,7 @@
|
|
|
65880
65884
|
const isHTMLForm = kindOfTest('HTMLFormElement');
|
|
65881
65885
|
|
|
65882
65886
|
const toCamelCase = str => {
|
|
65883
|
-
return str.toLowerCase().replace(/[_
|
|
65887
|
+
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
|
|
65884
65888
|
function replacer(m, p1, p2) {
|
|
65885
65889
|
return p1.toUpperCase() + p2;
|
|
65886
65890
|
}
|
|
@@ -65904,8 +65908,9 @@
|
|
|
65904
65908
|
const reducedDescriptors = {};
|
|
65905
65909
|
|
|
65906
65910
|
forEach(descriptors, (descriptor, name) => {
|
|
65907
|
-
|
|
65908
|
-
|
|
65911
|
+
let ret;
|
|
65912
|
+
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
65913
|
+
reducedDescriptors[name] = ret || descriptor;
|
|
65909
65914
|
}
|
|
65910
65915
|
});
|
|
65911
65916
|
|
|
@@ -65964,6 +65969,37 @@
|
|
|
65964
65969
|
return Number.isFinite(value) ? value : defaultValue;
|
|
65965
65970
|
};
|
|
65966
65971
|
|
|
65972
|
+
const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
|
|
65973
|
+
|
|
65974
|
+
const DIGIT = '0123456789';
|
|
65975
|
+
|
|
65976
|
+
const ALPHABET = {
|
|
65977
|
+
DIGIT,
|
|
65978
|
+
ALPHA,
|
|
65979
|
+
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
65980
|
+
};
|
|
65981
|
+
|
|
65982
|
+
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
65983
|
+
let str = '';
|
|
65984
|
+
const {length} = alphabet;
|
|
65985
|
+
while (size--) {
|
|
65986
|
+
str += alphabet[Math.random() * length|0];
|
|
65987
|
+
}
|
|
65988
|
+
|
|
65989
|
+
return str;
|
|
65990
|
+
};
|
|
65991
|
+
|
|
65992
|
+
/**
|
|
65993
|
+
* If the thing is a FormData object, return true, otherwise return false.
|
|
65994
|
+
*
|
|
65995
|
+
* @param {unknown} thing - The thing to check.
|
|
65996
|
+
*
|
|
65997
|
+
* @returns {boolean}
|
|
65998
|
+
*/
|
|
65999
|
+
function isSpecCompliantForm(thing) {
|
|
66000
|
+
return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);
|
|
66001
|
+
}
|
|
66002
|
+
|
|
65967
66003
|
const toJSONObject = (obj) => {
|
|
65968
66004
|
const stack = new Array(10);
|
|
65969
66005
|
|
|
@@ -65995,7 +66031,12 @@
|
|
|
65995
66031
|
return visit(obj, 0);
|
|
65996
66032
|
};
|
|
65997
66033
|
|
|
65998
|
-
|
|
66034
|
+
const isAsyncFn = kindOfTest('AsyncFunction');
|
|
66035
|
+
|
|
66036
|
+
const isThenable = (thing) =>
|
|
66037
|
+
thing && (isObject$2(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
66038
|
+
|
|
66039
|
+
var utils$2 = {
|
|
65999
66040
|
isArray,
|
|
66000
66041
|
isArrayBuffer,
|
|
66001
66042
|
isBuffer,
|
|
@@ -66041,7 +66082,12 @@
|
|
|
66041
66082
|
findKey,
|
|
66042
66083
|
global: _global,
|
|
66043
66084
|
isContextDefined,
|
|
66044
|
-
|
|
66085
|
+
ALPHABET,
|
|
66086
|
+
generateString,
|
|
66087
|
+
isSpecCompliantForm,
|
|
66088
|
+
toJSONObject,
|
|
66089
|
+
isAsyncFn,
|
|
66090
|
+
isThenable
|
|
66045
66091
|
};
|
|
66046
66092
|
|
|
66047
66093
|
/**
|
|
@@ -66072,7 +66118,7 @@
|
|
|
66072
66118
|
response && (this.response = response);
|
|
66073
66119
|
}
|
|
66074
66120
|
|
|
66075
|
-
utils$
|
|
66121
|
+
utils$2.inherits(AxiosError, Error, {
|
|
66076
66122
|
toJSON: function toJSON() {
|
|
66077
66123
|
return {
|
|
66078
66124
|
// Standard
|
|
@@ -66087,7 +66133,7 @@
|
|
|
66087
66133
|
columnNumber: this.columnNumber,
|
|
66088
66134
|
stack: this.stack,
|
|
66089
66135
|
// Axios
|
|
66090
|
-
config: utils$
|
|
66136
|
+
config: utils$2.toJSONObject(this.config),
|
|
66091
66137
|
code: this.code,
|
|
66092
66138
|
status: this.response && this.response.status ? this.response.status : null
|
|
66093
66139
|
};
|
|
@@ -66122,7 +66168,7 @@
|
|
|
66122
66168
|
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
66123
66169
|
const axiosError = Object.create(prototype$1);
|
|
66124
66170
|
|
|
66125
|
-
utils$
|
|
66171
|
+
utils$2.toFlatObject(error, axiosError, function filter(obj) {
|
|
66126
66172
|
return obj !== Error.prototype;
|
|
66127
66173
|
}, prop => {
|
|
66128
66174
|
return prop !== 'isAxiosError';
|
|
@@ -66139,11 +66185,8 @@
|
|
|
66139
66185
|
return axiosError;
|
|
66140
66186
|
};
|
|
66141
66187
|
|
|
66142
|
-
|
|
66143
|
-
|
|
66144
|
-
var browser = typeof self == 'object' ? self.FormData : window.FormData;
|
|
66145
|
-
|
|
66146
|
-
var FormData$2 = browser;
|
|
66188
|
+
// eslint-disable-next-line strict
|
|
66189
|
+
var httpAdapter = null;
|
|
66147
66190
|
|
|
66148
66191
|
/**
|
|
66149
66192
|
* Determines if the given thing is a array or js object.
|
|
@@ -66153,7 +66196,7 @@
|
|
|
66153
66196
|
* @returns {boolean}
|
|
66154
66197
|
*/
|
|
66155
66198
|
function isVisitable(thing) {
|
|
66156
|
-
return utils$
|
|
66199
|
+
return utils$2.isPlainObject(thing) || utils$2.isArray(thing);
|
|
66157
66200
|
}
|
|
66158
66201
|
|
|
66159
66202
|
/**
|
|
@@ -66164,7 +66207,7 @@
|
|
|
66164
66207
|
* @returns {string} the key without the brackets.
|
|
66165
66208
|
*/
|
|
66166
66209
|
function removeBrackets(key) {
|
|
66167
|
-
return utils$
|
|
66210
|
+
return utils$2.endsWith(key, '[]') ? key.slice(0, -2) : key;
|
|
66168
66211
|
}
|
|
66169
66212
|
|
|
66170
66213
|
/**
|
|
@@ -66193,24 +66236,13 @@
|
|
|
66193
66236
|
* @returns {boolean}
|
|
66194
66237
|
*/
|
|
66195
66238
|
function isFlatArray(arr) {
|
|
66196
|
-
return utils$
|
|
66239
|
+
return utils$2.isArray(arr) && !arr.some(isVisitable);
|
|
66197
66240
|
}
|
|
66198
66241
|
|
|
66199
|
-
const predicates = utils$
|
|
66242
|
+
const predicates = utils$2.toFlatObject(utils$2, {}, null, function filter(prop) {
|
|
66200
66243
|
return /^is[A-Z]/.test(prop);
|
|
66201
66244
|
});
|
|
66202
66245
|
|
|
66203
|
-
/**
|
|
66204
|
-
* If the thing is a FormData object, return true, otherwise return false.
|
|
66205
|
-
*
|
|
66206
|
-
* @param {unknown} thing - The thing to check.
|
|
66207
|
-
*
|
|
66208
|
-
* @returns {boolean}
|
|
66209
|
-
*/
|
|
66210
|
-
function isSpecCompliant(thing) {
|
|
66211
|
-
return thing && utils$1.isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator];
|
|
66212
|
-
}
|
|
66213
|
-
|
|
66214
66246
|
/**
|
|
66215
66247
|
* Convert a data object to FormData
|
|
66216
66248
|
*
|
|
@@ -66235,21 +66267,21 @@
|
|
|
66235
66267
|
* @returns
|
|
66236
66268
|
*/
|
|
66237
66269
|
function toFormData(obj, formData, options) {
|
|
66238
|
-
if (!utils$
|
|
66270
|
+
if (!utils$2.isObject(obj)) {
|
|
66239
66271
|
throw new TypeError('target must be an object');
|
|
66240
66272
|
}
|
|
66241
66273
|
|
|
66242
66274
|
// eslint-disable-next-line no-param-reassign
|
|
66243
|
-
formData = formData || new (FormData
|
|
66275
|
+
formData = formData || new (FormData)();
|
|
66244
66276
|
|
|
66245
66277
|
// eslint-disable-next-line no-param-reassign
|
|
66246
|
-
options = utils$
|
|
66278
|
+
options = utils$2.toFlatObject(options, {
|
|
66247
66279
|
metaTokens: true,
|
|
66248
66280
|
dots: false,
|
|
66249
66281
|
indexes: false
|
|
66250
66282
|
}, false, function defined(option, source) {
|
|
66251
66283
|
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
66252
|
-
return !utils$
|
|
66284
|
+
return !utils$2.isUndefined(source[option]);
|
|
66253
66285
|
});
|
|
66254
66286
|
|
|
66255
66287
|
const metaTokens = options.metaTokens;
|
|
@@ -66258,24 +66290,24 @@
|
|
|
66258
66290
|
const dots = options.dots;
|
|
66259
66291
|
const indexes = options.indexes;
|
|
66260
66292
|
const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
|
|
66261
|
-
const useBlob = _Blob &&
|
|
66293
|
+
const useBlob = _Blob && utils$2.isSpecCompliantForm(formData);
|
|
66262
66294
|
|
|
66263
|
-
if (!utils$
|
|
66295
|
+
if (!utils$2.isFunction(visitor)) {
|
|
66264
66296
|
throw new TypeError('visitor must be a function');
|
|
66265
66297
|
}
|
|
66266
66298
|
|
|
66267
66299
|
function convertValue(value) {
|
|
66268
66300
|
if (value === null) return '';
|
|
66269
66301
|
|
|
66270
|
-
if (utils$
|
|
66302
|
+
if (utils$2.isDate(value)) {
|
|
66271
66303
|
return value.toISOString();
|
|
66272
66304
|
}
|
|
66273
66305
|
|
|
66274
|
-
if (!useBlob && utils$
|
|
66306
|
+
if (!useBlob && utils$2.isBlob(value)) {
|
|
66275
66307
|
throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
66276
66308
|
}
|
|
66277
66309
|
|
|
66278
|
-
if (utils$
|
|
66310
|
+
if (utils$2.isArrayBuffer(value) || utils$2.isTypedArray(value)) {
|
|
66279
66311
|
return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
|
|
66280
66312
|
}
|
|
66281
66313
|
|
|
@@ -66296,20 +66328,20 @@
|
|
|
66296
66328
|
let arr = value;
|
|
66297
66329
|
|
|
66298
66330
|
if (value && !path && typeof value === 'object') {
|
|
66299
|
-
if (utils$
|
|
66331
|
+
if (utils$2.endsWith(key, '{}')) {
|
|
66300
66332
|
// eslint-disable-next-line no-param-reassign
|
|
66301
66333
|
key = metaTokens ? key : key.slice(0, -2);
|
|
66302
66334
|
// eslint-disable-next-line no-param-reassign
|
|
66303
66335
|
value = JSON.stringify(value);
|
|
66304
66336
|
} else if (
|
|
66305
|
-
(utils$
|
|
66306
|
-
(utils$
|
|
66337
|
+
(utils$2.isArray(value) && isFlatArray(value)) ||
|
|
66338
|
+
((utils$2.isFileList(value) || utils$2.endsWith(key, '[]')) && (arr = utils$2.toArray(value))
|
|
66307
66339
|
)) {
|
|
66308
66340
|
// eslint-disable-next-line no-param-reassign
|
|
66309
66341
|
key = removeBrackets(key);
|
|
66310
66342
|
|
|
66311
66343
|
arr.forEach(function each(el, index) {
|
|
66312
|
-
!(utils$
|
|
66344
|
+
!(utils$2.isUndefined(el) || el === null) && formData.append(
|
|
66313
66345
|
// eslint-disable-next-line no-nested-ternary
|
|
66314
66346
|
indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
|
|
66315
66347
|
convertValue(el)
|
|
@@ -66337,7 +66369,7 @@
|
|
|
66337
66369
|
});
|
|
66338
66370
|
|
|
66339
66371
|
function build(value, path) {
|
|
66340
|
-
if (utils$
|
|
66372
|
+
if (utils$2.isUndefined(value)) return;
|
|
66341
66373
|
|
|
66342
66374
|
if (stack.indexOf(value) !== -1) {
|
|
66343
66375
|
throw Error('Circular reference detected in ' + path.join('.'));
|
|
@@ -66345,9 +66377,9 @@
|
|
|
66345
66377
|
|
|
66346
66378
|
stack.push(value);
|
|
66347
66379
|
|
|
66348
|
-
utils$
|
|
66349
|
-
const result = !(utils$
|
|
66350
|
-
formData, el, utils$
|
|
66380
|
+
utils$2.forEach(value, function each(el, key) {
|
|
66381
|
+
const result = !(utils$2.isUndefined(el) || el === null) && visitor.call(
|
|
66382
|
+
formData, el, utils$2.isString(key) ? key.trim() : key, path, exposedHelpers
|
|
66351
66383
|
);
|
|
66352
66384
|
|
|
66353
66385
|
if (result === true) {
|
|
@@ -66358,7 +66390,7 @@
|
|
|
66358
66390
|
stack.pop();
|
|
66359
66391
|
}
|
|
66360
66392
|
|
|
66361
|
-
if (!utils$
|
|
66393
|
+
if (!utils$2.isObject(obj)) {
|
|
66362
66394
|
throw new TypeError('data must be an object');
|
|
66363
66395
|
}
|
|
66364
66396
|
|
|
@@ -66462,7 +66494,7 @@
|
|
|
66462
66494
|
if (serializeFn) {
|
|
66463
66495
|
serializedParams = serializeFn(params, options);
|
|
66464
66496
|
} else {
|
|
66465
|
-
serializedParams = utils$
|
|
66497
|
+
serializedParams = utils$2.isURLSearchParams(params) ?
|
|
66466
66498
|
params.toString() :
|
|
66467
66499
|
new AxiosURLSearchParams(params, options).toString(_encode);
|
|
66468
66500
|
}
|
|
@@ -66537,7 +66569,7 @@
|
|
|
66537
66569
|
* @returns {void}
|
|
66538
66570
|
*/
|
|
66539
66571
|
forEach(fn) {
|
|
66540
|
-
utils$
|
|
66572
|
+
utils$2.forEach(this.handlers, function forEachHandler(h) {
|
|
66541
66573
|
if (h !== null) {
|
|
66542
66574
|
fn(h);
|
|
66543
66575
|
}
|
|
@@ -66555,7 +66587,21 @@
|
|
|
66555
66587
|
|
|
66556
66588
|
var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
|
66557
66589
|
|
|
66558
|
-
var FormData$1 = FormData;
|
|
66590
|
+
var FormData$1 = typeof FormData !== 'undefined' ? FormData : null;
|
|
66591
|
+
|
|
66592
|
+
var Blob$1 = typeof Blob !== 'undefined' ? Blob : null;
|
|
66593
|
+
|
|
66594
|
+
var platform$1 = {
|
|
66595
|
+
isBrowser: true,
|
|
66596
|
+
classes: {
|
|
66597
|
+
URLSearchParams: URLSearchParams$1,
|
|
66598
|
+
FormData: FormData$1,
|
|
66599
|
+
Blob: Blob$1
|
|
66600
|
+
},
|
|
66601
|
+
protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
|
|
66602
|
+
};
|
|
66603
|
+
|
|
66604
|
+
const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
66559
66605
|
|
|
66560
66606
|
/**
|
|
66561
66607
|
* Determine if we're running in a standard browser environment
|
|
@@ -66574,18 +66620,10 @@
|
|
|
66574
66620
|
*
|
|
66575
66621
|
* @returns {boolean}
|
|
66576
66622
|
*/
|
|
66577
|
-
const
|
|
66578
|
-
|
|
66579
|
-
|
|
66580
|
-
|
|
66581
|
-
product === 'NativeScript' ||
|
|
66582
|
-
product === 'NS')
|
|
66583
|
-
) {
|
|
66584
|
-
return false;
|
|
66585
|
-
}
|
|
66586
|
-
|
|
66587
|
-
return typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
66588
|
-
})();
|
|
66623
|
+
const hasStandardBrowserEnv = (
|
|
66624
|
+
(product) => {
|
|
66625
|
+
return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0
|
|
66626
|
+
})(typeof navigator !== 'undefined' && navigator.product);
|
|
66589
66627
|
|
|
66590
66628
|
/**
|
|
66591
66629
|
* Determine if we're running in a standard browser webWorker environment
|
|
@@ -66596,7 +66634,7 @@
|
|
|
66596
66634
|
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
|
66597
66635
|
* This leads to a problem when axios post `FormData` in webWorker
|
|
66598
66636
|
*/
|
|
66599
|
-
|
|
66637
|
+
const hasStandardBrowserWebWorkerEnv = (() => {
|
|
66600
66638
|
return (
|
|
66601
66639
|
typeof WorkerGlobalScope !== 'undefined' &&
|
|
66602
66640
|
// eslint-disable-next-line no-undef
|
|
@@ -66605,23 +66643,22 @@
|
|
|
66605
66643
|
);
|
|
66606
66644
|
})();
|
|
66607
66645
|
|
|
66646
|
+
var utils$1 = /*#__PURE__*/Object.freeze({
|
|
66647
|
+
__proto__: null,
|
|
66648
|
+
hasBrowserEnv: hasBrowserEnv,
|
|
66649
|
+
hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv,
|
|
66650
|
+
hasStandardBrowserEnv: hasStandardBrowserEnv
|
|
66651
|
+
});
|
|
66608
66652
|
|
|
66609
66653
|
var platform = {
|
|
66610
|
-
|
|
66611
|
-
|
|
66612
|
-
URLSearchParams: URLSearchParams$1,
|
|
66613
|
-
FormData: FormData$1,
|
|
66614
|
-
Blob
|
|
66615
|
-
},
|
|
66616
|
-
isStandardBrowserEnv,
|
|
66617
|
-
isStandardBrowserWebWorkerEnv,
|
|
66618
|
-
protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
|
|
66654
|
+
...utils$1,
|
|
66655
|
+
...platform$1
|
|
66619
66656
|
};
|
|
66620
66657
|
|
|
66621
66658
|
function toURLEncodedForm(data, options) {
|
|
66622
66659
|
return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
66623
66660
|
visitor: function(value, key, path, helpers) {
|
|
66624
|
-
if (platform.isNode && utils$
|
|
66661
|
+
if (platform.isNode && utils$2.isBuffer(value)) {
|
|
66625
66662
|
this.append(key, value.toString('base64'));
|
|
66626
66663
|
return false;
|
|
66627
66664
|
}
|
|
@@ -66643,7 +66680,7 @@
|
|
|
66643
66680
|
// foo.x.y.z
|
|
66644
66681
|
// foo-x-y-z
|
|
66645
66682
|
// foo x y z
|
|
66646
|
-
return utils$
|
|
66683
|
+
return utils$2.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
|
|
66647
66684
|
return match[0] === '[]' ? '' : match[1] || match[0];
|
|
66648
66685
|
});
|
|
66649
66686
|
}
|
|
@@ -66680,10 +66717,10 @@
|
|
|
66680
66717
|
let name = path[index++];
|
|
66681
66718
|
const isNumericKey = Number.isFinite(+name);
|
|
66682
66719
|
const isLast = index >= path.length;
|
|
66683
|
-
name = !name && utils$
|
|
66720
|
+
name = !name && utils$2.isArray(target) ? target.length : name;
|
|
66684
66721
|
|
|
66685
66722
|
if (isLast) {
|
|
66686
|
-
if (utils$
|
|
66723
|
+
if (utils$2.hasOwnProp(target, name)) {
|
|
66687
66724
|
target[name] = [target[name], value];
|
|
66688
66725
|
} else {
|
|
66689
66726
|
target[name] = value;
|
|
@@ -66692,23 +66729,23 @@
|
|
|
66692
66729
|
return !isNumericKey;
|
|
66693
66730
|
}
|
|
66694
66731
|
|
|
66695
|
-
if (!target[name] || !utils$
|
|
66732
|
+
if (!target[name] || !utils$2.isObject(target[name])) {
|
|
66696
66733
|
target[name] = [];
|
|
66697
66734
|
}
|
|
66698
66735
|
|
|
66699
66736
|
const result = buildPath(path, value, target[name], index);
|
|
66700
66737
|
|
|
66701
|
-
if (result && utils$
|
|
66738
|
+
if (result && utils$2.isArray(target[name])) {
|
|
66702
66739
|
target[name] = arrayToObject(target[name]);
|
|
66703
66740
|
}
|
|
66704
66741
|
|
|
66705
66742
|
return !isNumericKey;
|
|
66706
66743
|
}
|
|
66707
66744
|
|
|
66708
|
-
if (utils$
|
|
66745
|
+
if (utils$2.isFormData(formData) && utils$2.isFunction(formData.entries)) {
|
|
66709
66746
|
const obj = {};
|
|
66710
66747
|
|
|
66711
|
-
utils$
|
|
66748
|
+
utils$2.forEachEntry(formData, (name, value) => {
|
|
66712
66749
|
buildPath(parsePropPath(name), value, obj, 0);
|
|
66713
66750
|
});
|
|
66714
66751
|
|
|
@@ -66718,10 +66755,6 @@
|
|
|
66718
66755
|
return null;
|
|
66719
66756
|
}
|
|
66720
66757
|
|
|
66721
|
-
const DEFAULT_CONTENT_TYPE = {
|
|
66722
|
-
'Content-Type': undefined
|
|
66723
|
-
};
|
|
66724
|
-
|
|
66725
66758
|
/**
|
|
66726
66759
|
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
|
66727
66760
|
* of the input
|
|
@@ -66733,10 +66766,10 @@
|
|
|
66733
66766
|
* @returns {string} A stringified version of the rawValue.
|
|
66734
66767
|
*/
|
|
66735
66768
|
function stringifySafely(rawValue, parser, encoder) {
|
|
66736
|
-
if (utils$
|
|
66769
|
+
if (utils$2.isString(rawValue)) {
|
|
66737
66770
|
try {
|
|
66738
66771
|
(parser || JSON.parse)(rawValue);
|
|
66739
|
-
return utils$
|
|
66772
|
+
return utils$2.trim(rawValue);
|
|
66740
66773
|
} catch (e) {
|
|
66741
66774
|
if (e.name !== 'SyntaxError') {
|
|
66742
66775
|
throw e;
|
|
@@ -66756,13 +66789,13 @@
|
|
|
66756
66789
|
transformRequest: [function transformRequest(data, headers) {
|
|
66757
66790
|
const contentType = headers.getContentType() || '';
|
|
66758
66791
|
const hasJSONContentType = contentType.indexOf('application/json') > -1;
|
|
66759
|
-
const isObjectPayload = utils$
|
|
66792
|
+
const isObjectPayload = utils$2.isObject(data);
|
|
66760
66793
|
|
|
66761
|
-
if (isObjectPayload && utils$
|
|
66794
|
+
if (isObjectPayload && utils$2.isHTMLForm(data)) {
|
|
66762
66795
|
data = new FormData(data);
|
|
66763
66796
|
}
|
|
66764
66797
|
|
|
66765
|
-
const isFormData = utils$
|
|
66798
|
+
const isFormData = utils$2.isFormData(data);
|
|
66766
66799
|
|
|
66767
66800
|
if (isFormData) {
|
|
66768
66801
|
if (!hasJSONContentType) {
|
|
@@ -66771,18 +66804,18 @@
|
|
|
66771
66804
|
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
66772
66805
|
}
|
|
66773
66806
|
|
|
66774
|
-
if (utils$
|
|
66775
|
-
utils$
|
|
66776
|
-
utils$
|
|
66777
|
-
utils$
|
|
66778
|
-
utils$
|
|
66807
|
+
if (utils$2.isArrayBuffer(data) ||
|
|
66808
|
+
utils$2.isBuffer(data) ||
|
|
66809
|
+
utils$2.isStream(data) ||
|
|
66810
|
+
utils$2.isFile(data) ||
|
|
66811
|
+
utils$2.isBlob(data)
|
|
66779
66812
|
) {
|
|
66780
66813
|
return data;
|
|
66781
66814
|
}
|
|
66782
|
-
if (utils$
|
|
66815
|
+
if (utils$2.isArrayBufferView(data)) {
|
|
66783
66816
|
return data.buffer;
|
|
66784
66817
|
}
|
|
66785
|
-
if (utils$
|
|
66818
|
+
if (utils$2.isURLSearchParams(data)) {
|
|
66786
66819
|
headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
|
|
66787
66820
|
return data.toString();
|
|
66788
66821
|
}
|
|
@@ -66794,7 +66827,7 @@
|
|
|
66794
66827
|
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
66795
66828
|
}
|
|
66796
66829
|
|
|
66797
|
-
if ((isFileList = utils$
|
|
66830
|
+
if ((isFileList = utils$2.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
|
|
66798
66831
|
const _FormData = this.env && this.env.FormData;
|
|
66799
66832
|
|
|
66800
66833
|
return toFormData(
|
|
@@ -66818,7 +66851,7 @@
|
|
|
66818
66851
|
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
66819
66852
|
const JSONRequested = this.responseType === 'json';
|
|
66820
66853
|
|
|
66821
|
-
if (data && utils$
|
|
66854
|
+
if (data && utils$2.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
|
|
66822
66855
|
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
66823
66856
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
66824
66857
|
|
|
@@ -66860,24 +66893,21 @@
|
|
|
66860
66893
|
|
|
66861
66894
|
headers: {
|
|
66862
66895
|
common: {
|
|
66863
|
-
'Accept': 'application/json, text/plain, */*'
|
|
66896
|
+
'Accept': 'application/json, text/plain, */*',
|
|
66897
|
+
'Content-Type': undefined
|
|
66864
66898
|
}
|
|
66865
66899
|
}
|
|
66866
66900
|
};
|
|
66867
66901
|
|
|
66868
|
-
utils$
|
|
66902
|
+
utils$2.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
|
|
66869
66903
|
defaults.headers[method] = {};
|
|
66870
66904
|
});
|
|
66871
66905
|
|
|
66872
|
-
utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
66873
|
-
defaults.headers[method] = utils$1.merge(DEFAULT_CONTENT_TYPE);
|
|
66874
|
-
});
|
|
66875
|
-
|
|
66876
66906
|
var defaults$1 = defaults;
|
|
66877
66907
|
|
|
66878
66908
|
// RawAxiosHeaders whose duplicates are ignored by node
|
|
66879
66909
|
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
66880
|
-
const ignoreDuplicateOf = utils$
|
|
66910
|
+
const ignoreDuplicateOf = utils$2.toObjectSet([
|
|
66881
66911
|
'age', 'authorization', 'content-length', 'content-type', 'etag',
|
|
66882
66912
|
'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
|
|
66883
66913
|
'last-modified', 'location', 'max-forwards', 'proxy-authorization',
|
|
@@ -66938,7 +66968,7 @@
|
|
|
66938
66968
|
return value;
|
|
66939
66969
|
}
|
|
66940
66970
|
|
|
66941
|
-
return utils$
|
|
66971
|
+
return utils$2.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
66942
66972
|
}
|
|
66943
66973
|
|
|
66944
66974
|
function parseTokens(str) {
|
|
@@ -66953,22 +66983,24 @@
|
|
|
66953
66983
|
return tokens;
|
|
66954
66984
|
}
|
|
66955
66985
|
|
|
66956
|
-
|
|
66957
|
-
return /^[-_a-zA-Z]+$/.test(str.trim());
|
|
66958
|
-
}
|
|
66986
|
+
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
66959
66987
|
|
|
66960
|
-
function matchHeaderValue(context, value, header, filter) {
|
|
66961
|
-
if (utils$
|
|
66988
|
+
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
66989
|
+
if (utils$2.isFunction(filter)) {
|
|
66962
66990
|
return filter.call(this, value, header);
|
|
66963
66991
|
}
|
|
66964
66992
|
|
|
66965
|
-
if (
|
|
66993
|
+
if (isHeaderNameFilter) {
|
|
66994
|
+
value = header;
|
|
66995
|
+
}
|
|
66996
|
+
|
|
66997
|
+
if (!utils$2.isString(value)) return;
|
|
66966
66998
|
|
|
66967
|
-
if (utils$
|
|
66999
|
+
if (utils$2.isString(filter)) {
|
|
66968
67000
|
return value.indexOf(filter) !== -1;
|
|
66969
67001
|
}
|
|
66970
67002
|
|
|
66971
|
-
if (utils$
|
|
67003
|
+
if (utils$2.isRegExp(filter)) {
|
|
66972
67004
|
return filter.test(value);
|
|
66973
67005
|
}
|
|
66974
67006
|
}
|
|
@@ -66981,7 +67013,7 @@
|
|
|
66981
67013
|
}
|
|
66982
67014
|
|
|
66983
67015
|
function buildAccessors(obj, header) {
|
|
66984
|
-
const accessorName = utils$
|
|
67016
|
+
const accessorName = utils$2.toCamelCase(' ' + header);
|
|
66985
67017
|
|
|
66986
67018
|
['get', 'set', 'has'].forEach(methodName => {
|
|
66987
67019
|
Object.defineProperty(obj, methodName + accessorName, {
|
|
@@ -67008,7 +67040,7 @@
|
|
|
67008
67040
|
throw new Error('header name must be a non-empty string');
|
|
67009
67041
|
}
|
|
67010
67042
|
|
|
67011
|
-
const key = utils$
|
|
67043
|
+
const key = utils$2.findKey(self, lHeader);
|
|
67012
67044
|
|
|
67013
67045
|
if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
|
|
67014
67046
|
self[key || _header] = normalizeValue(_value);
|
|
@@ -67016,11 +67048,11 @@
|
|
|
67016
67048
|
}
|
|
67017
67049
|
|
|
67018
67050
|
const setHeaders = (headers, _rewrite) =>
|
|
67019
|
-
utils$
|
|
67051
|
+
utils$2.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
67020
67052
|
|
|
67021
|
-
if (utils$
|
|
67053
|
+
if (utils$2.isPlainObject(header) || header instanceof this.constructor) {
|
|
67022
67054
|
setHeaders(header, valueOrRewrite);
|
|
67023
|
-
} else if(utils$
|
|
67055
|
+
} else if(utils$2.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
67024
67056
|
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
67025
67057
|
} else {
|
|
67026
67058
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
@@ -67033,7 +67065,7 @@
|
|
|
67033
67065
|
header = normalizeHeader(header);
|
|
67034
67066
|
|
|
67035
67067
|
if (header) {
|
|
67036
|
-
const key = utils$
|
|
67068
|
+
const key = utils$2.findKey(this, header);
|
|
67037
67069
|
|
|
67038
67070
|
if (key) {
|
|
67039
67071
|
const value = this[key];
|
|
@@ -67046,11 +67078,11 @@
|
|
|
67046
67078
|
return parseTokens(value);
|
|
67047
67079
|
}
|
|
67048
67080
|
|
|
67049
|
-
if (utils$
|
|
67081
|
+
if (utils$2.isFunction(parser)) {
|
|
67050
67082
|
return parser.call(this, value, key);
|
|
67051
67083
|
}
|
|
67052
67084
|
|
|
67053
|
-
if (utils$
|
|
67085
|
+
if (utils$2.isRegExp(parser)) {
|
|
67054
67086
|
return parser.exec(value);
|
|
67055
67087
|
}
|
|
67056
67088
|
|
|
@@ -67063,9 +67095,9 @@
|
|
|
67063
67095
|
header = normalizeHeader(header);
|
|
67064
67096
|
|
|
67065
67097
|
if (header) {
|
|
67066
|
-
const key = utils$
|
|
67098
|
+
const key = utils$2.findKey(this, header);
|
|
67067
67099
|
|
|
67068
|
-
return !!(key && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
67100
|
+
return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
67069
67101
|
}
|
|
67070
67102
|
|
|
67071
67103
|
return false;
|
|
@@ -67079,7 +67111,7 @@
|
|
|
67079
67111
|
_header = normalizeHeader(_header);
|
|
67080
67112
|
|
|
67081
67113
|
if (_header) {
|
|
67082
|
-
const key = utils$
|
|
67114
|
+
const key = utils$2.findKey(self, _header);
|
|
67083
67115
|
|
|
67084
67116
|
if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
|
|
67085
67117
|
delete self[key];
|
|
@@ -67089,7 +67121,7 @@
|
|
|
67089
67121
|
}
|
|
67090
67122
|
}
|
|
67091
67123
|
|
|
67092
|
-
if (utils$
|
|
67124
|
+
if (utils$2.isArray(header)) {
|
|
67093
67125
|
header.forEach(deleteHeader);
|
|
67094
67126
|
} else {
|
|
67095
67127
|
deleteHeader(header);
|
|
@@ -67098,16 +67130,28 @@
|
|
|
67098
67130
|
return deleted;
|
|
67099
67131
|
}
|
|
67100
67132
|
|
|
67101
|
-
clear() {
|
|
67102
|
-
|
|
67133
|
+
clear(matcher) {
|
|
67134
|
+
const keys = Object.keys(this);
|
|
67135
|
+
let i = keys.length;
|
|
67136
|
+
let deleted = false;
|
|
67137
|
+
|
|
67138
|
+
while (i--) {
|
|
67139
|
+
const key = keys[i];
|
|
67140
|
+
if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
67141
|
+
delete this[key];
|
|
67142
|
+
deleted = true;
|
|
67143
|
+
}
|
|
67144
|
+
}
|
|
67145
|
+
|
|
67146
|
+
return deleted;
|
|
67103
67147
|
}
|
|
67104
67148
|
|
|
67105
67149
|
normalize(format) {
|
|
67106
67150
|
const self = this;
|
|
67107
67151
|
const headers = {};
|
|
67108
67152
|
|
|
67109
|
-
utils$
|
|
67110
|
-
const key = utils$
|
|
67153
|
+
utils$2.forEach(this, (value, header) => {
|
|
67154
|
+
const key = utils$2.findKey(headers, header);
|
|
67111
67155
|
|
|
67112
67156
|
if (key) {
|
|
67113
67157
|
self[key] = normalizeValue(value);
|
|
@@ -67136,8 +67180,8 @@
|
|
|
67136
67180
|
toJSON(asStrings) {
|
|
67137
67181
|
const obj = Object.create(null);
|
|
67138
67182
|
|
|
67139
|
-
utils$
|
|
67140
|
-
value != null && value !== false && (obj[header] = asStrings && utils$
|
|
67183
|
+
utils$2.forEach(this, (value, header) => {
|
|
67184
|
+
value != null && value !== false && (obj[header] = asStrings && utils$2.isArray(value) ? value.join(', ') : value);
|
|
67141
67185
|
});
|
|
67142
67186
|
|
|
67143
67187
|
return obj;
|
|
@@ -67184,16 +67228,26 @@
|
|
|
67184
67228
|
}
|
|
67185
67229
|
}
|
|
67186
67230
|
|
|
67187
|
-
utils$
|
|
67231
|
+
utils$2.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
67188
67232
|
|
|
67189
67233
|
return this;
|
|
67190
67234
|
}
|
|
67191
67235
|
}
|
|
67192
67236
|
|
|
67193
|
-
AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent']);
|
|
67237
|
+
AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
|
|
67194
67238
|
|
|
67195
|
-
|
|
67196
|
-
utils$
|
|
67239
|
+
// reserved names hotfix
|
|
67240
|
+
utils$2.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
|
|
67241
|
+
let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
|
|
67242
|
+
return {
|
|
67243
|
+
get: () => value,
|
|
67244
|
+
set(headerValue) {
|
|
67245
|
+
this[mapped] = headerValue;
|
|
67246
|
+
}
|
|
67247
|
+
}
|
|
67248
|
+
});
|
|
67249
|
+
|
|
67250
|
+
utils$2.freezeMethods(AxiosHeaders);
|
|
67197
67251
|
|
|
67198
67252
|
var AxiosHeaders$1 = AxiosHeaders;
|
|
67199
67253
|
|
|
@@ -67211,7 +67265,7 @@
|
|
|
67211
67265
|
const headers = AxiosHeaders$1.from(context.headers);
|
|
67212
67266
|
let data = context.data;
|
|
67213
67267
|
|
|
67214
|
-
utils$
|
|
67268
|
+
utils$2.forEach(fns, function transform(fn) {
|
|
67215
67269
|
data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
|
|
67216
67270
|
});
|
|
67217
67271
|
|
|
@@ -67239,13 +67293,10 @@
|
|
|
67239
67293
|
this.name = 'CanceledError';
|
|
67240
67294
|
}
|
|
67241
67295
|
|
|
67242
|
-
utils$
|
|
67296
|
+
utils$2.inherits(CanceledError, AxiosError, {
|
|
67243
67297
|
__CANCEL__: true
|
|
67244
67298
|
});
|
|
67245
67299
|
|
|
67246
|
-
// eslint-disable-next-line strict
|
|
67247
|
-
var httpAdapter = null;
|
|
67248
|
-
|
|
67249
67300
|
/**
|
|
67250
67301
|
* Resolve or reject a Promise based on response status.
|
|
67251
67302
|
*
|
|
@@ -67270,53 +67321,44 @@
|
|
|
67270
67321
|
}
|
|
67271
67322
|
}
|
|
67272
67323
|
|
|
67273
|
-
var cookies = platform.
|
|
67324
|
+
var cookies = platform.hasStandardBrowserEnv ?
|
|
67274
67325
|
|
|
67275
|
-
|
|
67276
|
-
|
|
67277
|
-
|
|
67278
|
-
|
|
67279
|
-
const cookie = [];
|
|
67280
|
-
cookie.push(name + '=' + encodeURIComponent(value));
|
|
67326
|
+
// Standard browser envs support document.cookie
|
|
67327
|
+
{
|
|
67328
|
+
write(name, value, expires, path, domain, secure) {
|
|
67329
|
+
const cookie = [name + '=' + encodeURIComponent(value)];
|
|
67281
67330
|
|
|
67282
|
-
|
|
67283
|
-
cookie.push('expires=' + new Date(expires).toGMTString());
|
|
67284
|
-
}
|
|
67331
|
+
utils$2.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
|
|
67285
67332
|
|
|
67286
|
-
|
|
67287
|
-
cookie.push('path=' + path);
|
|
67288
|
-
}
|
|
67333
|
+
utils$2.isString(path) && cookie.push('path=' + path);
|
|
67289
67334
|
|
|
67290
|
-
|
|
67291
|
-
cookie.push('domain=' + domain);
|
|
67292
|
-
}
|
|
67335
|
+
utils$2.isString(domain) && cookie.push('domain=' + domain);
|
|
67293
67336
|
|
|
67294
|
-
|
|
67295
|
-
cookie.push('secure');
|
|
67296
|
-
}
|
|
67337
|
+
secure === true && cookie.push('secure');
|
|
67297
67338
|
|
|
67298
|
-
|
|
67299
|
-
|
|
67339
|
+
document.cookie = cookie.join('; ');
|
|
67340
|
+
},
|
|
67300
67341
|
|
|
67301
|
-
|
|
67302
|
-
|
|
67303
|
-
|
|
67304
|
-
|
|
67342
|
+
read(name) {
|
|
67343
|
+
const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
|
|
67344
|
+
return (match ? decodeURIComponent(match[3]) : null);
|
|
67345
|
+
},
|
|
67305
67346
|
|
|
67306
|
-
|
|
67307
|
-
|
|
67308
|
-
|
|
67309
|
-
|
|
67310
|
-
})() :
|
|
67347
|
+
remove(name) {
|
|
67348
|
+
this.write(name, '', Date.now() - 86400000);
|
|
67349
|
+
}
|
|
67350
|
+
}
|
|
67311
67351
|
|
|
67312
|
-
|
|
67313
|
-
|
|
67314
|
-
|
|
67315
|
-
|
|
67316
|
-
|
|
67317
|
-
|
|
67318
|
-
|
|
67319
|
-
|
|
67352
|
+
:
|
|
67353
|
+
|
|
67354
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
67355
|
+
{
|
|
67356
|
+
write() {},
|
|
67357
|
+
read() {
|
|
67358
|
+
return null;
|
|
67359
|
+
},
|
|
67360
|
+
remove() {}
|
|
67361
|
+
};
|
|
67320
67362
|
|
|
67321
67363
|
/**
|
|
67322
67364
|
* Determines whether the specified URL is absolute
|
|
@@ -67363,7 +67405,7 @@
|
|
|
67363
67405
|
return requestedURL;
|
|
67364
67406
|
}
|
|
67365
67407
|
|
|
67366
|
-
var isURLSameOrigin = platform.
|
|
67408
|
+
var isURLSameOrigin = platform.hasStandardBrowserEnv ?
|
|
67367
67409
|
|
|
67368
67410
|
// Standard browser envs have full support of the APIs needed to test
|
|
67369
67411
|
// whether the request URL is of the same origin as current location.
|
|
@@ -67373,7 +67415,7 @@
|
|
|
67373
67415
|
let originURL;
|
|
67374
67416
|
|
|
67375
67417
|
/**
|
|
67376
|
-
* Parse a URL to discover
|
|
67418
|
+
* Parse a URL to discover its components
|
|
67377
67419
|
*
|
|
67378
67420
|
* @param {String} url The URL to be parsed
|
|
67379
67421
|
* @returns {Object}
|
|
@@ -67413,7 +67455,7 @@
|
|
|
67413
67455
|
* @returns {boolean} True if URL shares the same origin, otherwise false
|
|
67414
67456
|
*/
|
|
67415
67457
|
return function isURLSameOrigin(requestURL) {
|
|
67416
|
-
const parsed = (utils$
|
|
67458
|
+
const parsed = (utils$2.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
|
|
67417
67459
|
return (parsed.protocol === originURL.protocol &&
|
|
67418
67460
|
parsed.host === originURL.host);
|
|
67419
67461
|
};
|
|
@@ -67518,7 +67560,7 @@
|
|
|
67518
67560
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
67519
67561
|
let requestData = config.data;
|
|
67520
67562
|
const requestHeaders = AxiosHeaders$1.from(config.headers).normalize();
|
|
67521
|
-
|
|
67563
|
+
let {responseType, withXSRFToken} = config;
|
|
67522
67564
|
let onCanceled;
|
|
67523
67565
|
function done() {
|
|
67524
67566
|
if (config.cancelToken) {
|
|
@@ -67530,8 +67572,16 @@
|
|
|
67530
67572
|
}
|
|
67531
67573
|
}
|
|
67532
67574
|
|
|
67533
|
-
|
|
67534
|
-
|
|
67575
|
+
let contentType;
|
|
67576
|
+
|
|
67577
|
+
if (utils$2.isFormData(requestData)) {
|
|
67578
|
+
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
67579
|
+
requestHeaders.setContentType(false); // Let the browser set it
|
|
67580
|
+
} else if ((contentType = requestHeaders.getContentType()) !== false) {
|
|
67581
|
+
// fix semicolon duplication issue for ReactNative FormData implementation
|
|
67582
|
+
const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
|
|
67583
|
+
requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
|
|
67584
|
+
}
|
|
67535
67585
|
}
|
|
67536
67586
|
|
|
67537
67587
|
let request = new XMLHttpRequest();
|
|
@@ -67646,13 +67696,16 @@
|
|
|
67646
67696
|
// Add xsrf header
|
|
67647
67697
|
// This is only done if running in a standard browser environment.
|
|
67648
67698
|
// Specifically not if we're in a web worker, or react-native.
|
|
67649
|
-
if
|
|
67650
|
-
|
|
67651
|
-
|
|
67652
|
-
|
|
67699
|
+
if(platform.hasStandardBrowserEnv) {
|
|
67700
|
+
withXSRFToken && utils$2.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
|
|
67701
|
+
|
|
67702
|
+
if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {
|
|
67703
|
+
// Add xsrf header
|
|
67704
|
+
const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
|
|
67653
67705
|
|
|
67654
|
-
|
|
67655
|
-
|
|
67706
|
+
if (xsrfValue) {
|
|
67707
|
+
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
67708
|
+
}
|
|
67656
67709
|
}
|
|
67657
67710
|
}
|
|
67658
67711
|
|
|
@@ -67661,13 +67714,13 @@
|
|
|
67661
67714
|
|
|
67662
67715
|
// Add headers to the request
|
|
67663
67716
|
if ('setRequestHeader' in request) {
|
|
67664
|
-
utils$
|
|
67717
|
+
utils$2.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
|
|
67665
67718
|
request.setRequestHeader(key, val);
|
|
67666
67719
|
});
|
|
67667
67720
|
}
|
|
67668
67721
|
|
|
67669
67722
|
// Add withCredentials to request if needed
|
|
67670
|
-
if (!utils$
|
|
67723
|
+
if (!utils$2.isUndefined(config.withCredentials)) {
|
|
67671
67724
|
request.withCredentials = !!config.withCredentials;
|
|
67672
67725
|
}
|
|
67673
67726
|
|
|
@@ -67722,8 +67775,8 @@
|
|
|
67722
67775
|
xhr: xhrAdapter
|
|
67723
67776
|
};
|
|
67724
67777
|
|
|
67725
|
-
utils$
|
|
67726
|
-
if(fn) {
|
|
67778
|
+
utils$2.forEach(knownAdapters, (fn, value) => {
|
|
67779
|
+
if (fn) {
|
|
67727
67780
|
try {
|
|
67728
67781
|
Object.defineProperty(fn, 'name', {value});
|
|
67729
67782
|
} catch (e) {
|
|
@@ -67733,38 +67786,56 @@
|
|
|
67733
67786
|
}
|
|
67734
67787
|
});
|
|
67735
67788
|
|
|
67789
|
+
const renderReason = (reason) => `- ${reason}`;
|
|
67790
|
+
|
|
67791
|
+
const isResolvedHandle = (adapter) => utils$2.isFunction(adapter) || adapter === null || adapter === false;
|
|
67792
|
+
|
|
67736
67793
|
var adapters = {
|
|
67737
67794
|
getAdapter: (adapters) => {
|
|
67738
|
-
adapters = utils$
|
|
67795
|
+
adapters = utils$2.isArray(adapters) ? adapters : [adapters];
|
|
67739
67796
|
|
|
67740
67797
|
const {length} = adapters;
|
|
67741
67798
|
let nameOrAdapter;
|
|
67742
67799
|
let adapter;
|
|
67743
67800
|
|
|
67801
|
+
const rejectedReasons = {};
|
|
67802
|
+
|
|
67744
67803
|
for (let i = 0; i < length; i++) {
|
|
67745
67804
|
nameOrAdapter = adapters[i];
|
|
67746
|
-
|
|
67805
|
+
let id;
|
|
67806
|
+
|
|
67807
|
+
adapter = nameOrAdapter;
|
|
67808
|
+
|
|
67809
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
67810
|
+
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
67811
|
+
|
|
67812
|
+
if (adapter === undefined) {
|
|
67813
|
+
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
67814
|
+
}
|
|
67815
|
+
}
|
|
67816
|
+
|
|
67817
|
+
if (adapter) {
|
|
67747
67818
|
break;
|
|
67748
67819
|
}
|
|
67820
|
+
|
|
67821
|
+
rejectedReasons[id || '#' + i] = adapter;
|
|
67749
67822
|
}
|
|
67750
67823
|
|
|
67751
67824
|
if (!adapter) {
|
|
67752
|
-
|
|
67753
|
-
|
|
67754
|
-
|
|
67755
|
-
'
|
|
67825
|
+
|
|
67826
|
+
const reasons = Object.entries(rejectedReasons)
|
|
67827
|
+
.map(([id, state]) => `adapter ${id} ` +
|
|
67828
|
+
(state === false ? 'is not supported by the environment' : 'is not available in the build')
|
|
67756
67829
|
);
|
|
67757
|
-
}
|
|
67758
67830
|
|
|
67759
|
-
|
|
67760
|
-
|
|
67761
|
-
|
|
67762
|
-
`Unknown adapter '${nameOrAdapter}'`
|
|
67763
|
-
);
|
|
67764
|
-
}
|
|
67831
|
+
let s = length ?
|
|
67832
|
+
(reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
|
|
67833
|
+
'as no adapter specified';
|
|
67765
67834
|
|
|
67766
|
-
|
|
67767
|
-
|
|
67835
|
+
throw new AxiosError(
|
|
67836
|
+
`There is no suitable adapter to dispatch the request ` + s,
|
|
67837
|
+
'ERR_NOT_SUPPORT'
|
|
67838
|
+
);
|
|
67768
67839
|
}
|
|
67769
67840
|
|
|
67770
67841
|
return adapter;
|
|
@@ -67862,11 +67933,11 @@
|
|
|
67862
67933
|
const config = {};
|
|
67863
67934
|
|
|
67864
67935
|
function getMergedValue(target, source, caseless) {
|
|
67865
|
-
if (utils$
|
|
67866
|
-
return utils$
|
|
67867
|
-
} else if (utils$
|
|
67868
|
-
return utils$
|
|
67869
|
-
} else if (utils$
|
|
67936
|
+
if (utils$2.isPlainObject(target) && utils$2.isPlainObject(source)) {
|
|
67937
|
+
return utils$2.merge.call({caseless}, target, source);
|
|
67938
|
+
} else if (utils$2.isPlainObject(source)) {
|
|
67939
|
+
return utils$2.merge({}, source);
|
|
67940
|
+
} else if (utils$2.isArray(source)) {
|
|
67870
67941
|
return source.slice();
|
|
67871
67942
|
}
|
|
67872
67943
|
return source;
|
|
@@ -67874,25 +67945,25 @@
|
|
|
67874
67945
|
|
|
67875
67946
|
// eslint-disable-next-line consistent-return
|
|
67876
67947
|
function mergeDeepProperties(a, b, caseless) {
|
|
67877
|
-
if (!utils$
|
|
67948
|
+
if (!utils$2.isUndefined(b)) {
|
|
67878
67949
|
return getMergedValue(a, b, caseless);
|
|
67879
|
-
} else if (!utils$
|
|
67950
|
+
} else if (!utils$2.isUndefined(a)) {
|
|
67880
67951
|
return getMergedValue(undefined, a, caseless);
|
|
67881
67952
|
}
|
|
67882
67953
|
}
|
|
67883
67954
|
|
|
67884
67955
|
// eslint-disable-next-line consistent-return
|
|
67885
67956
|
function valueFromConfig2(a, b) {
|
|
67886
|
-
if (!utils$
|
|
67957
|
+
if (!utils$2.isUndefined(b)) {
|
|
67887
67958
|
return getMergedValue(undefined, b);
|
|
67888
67959
|
}
|
|
67889
67960
|
}
|
|
67890
67961
|
|
|
67891
67962
|
// eslint-disable-next-line consistent-return
|
|
67892
67963
|
function defaultToConfig2(a, b) {
|
|
67893
|
-
if (!utils$
|
|
67964
|
+
if (!utils$2.isUndefined(b)) {
|
|
67894
67965
|
return getMergedValue(undefined, b);
|
|
67895
|
-
} else if (!utils$
|
|
67966
|
+
} else if (!utils$2.isUndefined(a)) {
|
|
67896
67967
|
return getMergedValue(undefined, a);
|
|
67897
67968
|
}
|
|
67898
67969
|
}
|
|
@@ -67917,6 +67988,7 @@
|
|
|
67917
67988
|
timeout: defaultToConfig2,
|
|
67918
67989
|
timeoutMessage: defaultToConfig2,
|
|
67919
67990
|
withCredentials: defaultToConfig2,
|
|
67991
|
+
withXSRFToken: defaultToConfig2,
|
|
67920
67992
|
adapter: defaultToConfig2,
|
|
67921
67993
|
responseType: defaultToConfig2,
|
|
67922
67994
|
xsrfCookieName: defaultToConfig2,
|
|
@@ -67937,16 +68009,16 @@
|
|
|
67937
68009
|
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
|
|
67938
68010
|
};
|
|
67939
68011
|
|
|
67940
|
-
utils$
|
|
68012
|
+
utils$2.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
67941
68013
|
const merge = mergeMap[prop] || mergeDeepProperties;
|
|
67942
68014
|
const configValue = merge(config1[prop], config2[prop], prop);
|
|
67943
|
-
(utils$
|
|
68015
|
+
(utils$2.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
67944
68016
|
});
|
|
67945
68017
|
|
|
67946
68018
|
return config;
|
|
67947
68019
|
}
|
|
67948
68020
|
|
|
67949
|
-
const VERSION = "1.
|
|
68021
|
+
const VERSION = "1.6.2";
|
|
67950
68022
|
|
|
67951
68023
|
const validators$1 = {};
|
|
67952
68024
|
|
|
@@ -68083,25 +68155,29 @@
|
|
|
68083
68155
|
}, false);
|
|
68084
68156
|
}
|
|
68085
68157
|
|
|
68086
|
-
if (paramsSerializer
|
|
68087
|
-
|
|
68088
|
-
|
|
68089
|
-
|
|
68090
|
-
|
|
68158
|
+
if (paramsSerializer != null) {
|
|
68159
|
+
if (utils$2.isFunction(paramsSerializer)) {
|
|
68160
|
+
config.paramsSerializer = {
|
|
68161
|
+
serialize: paramsSerializer
|
|
68162
|
+
};
|
|
68163
|
+
} else {
|
|
68164
|
+
validator.assertOptions(paramsSerializer, {
|
|
68165
|
+
encode: validators.function,
|
|
68166
|
+
serialize: validators.function
|
|
68167
|
+
}, true);
|
|
68168
|
+
}
|
|
68091
68169
|
}
|
|
68092
68170
|
|
|
68093
68171
|
// Set config.method
|
|
68094
68172
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
68095
68173
|
|
|
68096
|
-
let contextHeaders;
|
|
68097
|
-
|
|
68098
68174
|
// Flatten headers
|
|
68099
|
-
contextHeaders = headers && utils$
|
|
68175
|
+
let contextHeaders = headers && utils$2.merge(
|
|
68100
68176
|
headers.common,
|
|
68101
68177
|
headers[config.method]
|
|
68102
68178
|
);
|
|
68103
68179
|
|
|
68104
|
-
|
|
68180
|
+
headers && utils$2.forEach(
|
|
68105
68181
|
['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
|
|
68106
68182
|
(method) => {
|
|
68107
68183
|
delete headers[method];
|
|
@@ -68188,7 +68264,7 @@
|
|
|
68188
68264
|
}
|
|
68189
68265
|
|
|
68190
68266
|
// Provide aliases for supported request methods
|
|
68191
|
-
utils$
|
|
68267
|
+
utils$2.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
|
68192
68268
|
/*eslint func-names:0*/
|
|
68193
68269
|
Axios.prototype[method] = function(url, config) {
|
|
68194
68270
|
return this.request(mergeConfig(config || {}, {
|
|
@@ -68199,7 +68275,7 @@
|
|
|
68199
68275
|
};
|
|
68200
68276
|
});
|
|
68201
68277
|
|
|
68202
|
-
utils$
|
|
68278
|
+
utils$2.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
68203
68279
|
/*eslint func-names:0*/
|
|
68204
68280
|
|
|
68205
68281
|
function generateHTTPMethod(isForm) {
|
|
@@ -68375,7 +68451,7 @@
|
|
|
68375
68451
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
68376
68452
|
*/
|
|
68377
68453
|
function isAxiosError(payload) {
|
|
68378
|
-
return utils$
|
|
68454
|
+
return utils$2.isObject(payload) && (payload.isAxiosError === true);
|
|
68379
68455
|
}
|
|
68380
68456
|
|
|
68381
68457
|
const HttpStatusCode = {
|
|
@@ -68462,10 +68538,10 @@
|
|
|
68462
68538
|
const instance = bind(Axios$1.prototype.request, context);
|
|
68463
68539
|
|
|
68464
68540
|
// Copy axios.prototype to instance
|
|
68465
|
-
utils$
|
|
68541
|
+
utils$2.extend(instance, Axios$1.prototype, context, {allOwnKeys: true});
|
|
68466
68542
|
|
|
68467
68543
|
// Copy context to instance
|
|
68468
|
-
utils$
|
|
68544
|
+
utils$2.extend(instance, context, null, {allOwnKeys: true});
|
|
68469
68545
|
|
|
68470
68546
|
// Factory for creating new instances
|
|
68471
68547
|
instance.create = function create(instanceConfig) {
|
|
@@ -68509,7 +68585,9 @@
|
|
|
68509
68585
|
|
|
68510
68586
|
axios.AxiosHeaders = AxiosHeaders$1;
|
|
68511
68587
|
|
|
68512
|
-
axios.formToJSON = thing => formDataToJSON(utils$
|
|
68588
|
+
axios.formToJSON = thing => formDataToJSON(utils$2.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
68589
|
+
|
|
68590
|
+
axios.getAdapter = adapters.getAdapter;
|
|
68513
68591
|
|
|
68514
68592
|
axios.HttpStatusCode = HttpStatusCode$1;
|
|
68515
68593
|
|