xianniu-ui 0.5.1 → 0.5.2-beta.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/lib/static/css/chunk-elementUI.0b417c2d.css +1 -0
- package/lib/static/css/xianniu-ui.umd.5be6bd50.css +1 -0
- package/lib/static/css/xianniu-ui.umd.min.5be6bd50.css +1 -0
- package/lib/static/fonts/element-icons.535877f5.woff +0 -0
- package/lib/static/fonts/element-icons.732389de.ttf +0 -0
- package/lib/xianniu-ui.common.chunk-elementUI.js +1680 -0
- package/lib/xianniu-ui.common.chunk-libs~253ae210.js +2594 -0
- package/lib/xianniu-ui.common.chunk-libs~31ecd969.js +1250 -0
- package/lib/xianniu-ui.common.chunk-libs~93acefaf.js +3328 -0
- package/lib/xianniu-ui.common.chunk-libs~af0f4b76.js +17212 -0
- package/lib/xianniu-ui.common.chunk-libs~d939e436.js +2292 -0
- package/lib/xianniu-ui.common.chunk-libs~dfe5688e.js +4924 -0
- package/lib/xianniu-ui.common.js +55 -122634
- package/lib/xianniu-ui.common.xianniu-ui.common.js +17174 -0
- package/lib/xianniu-ui.umd.chunk-elementUI.js +1680 -0
- package/lib/xianniu-ui.umd.chunk-libs~253ae210.js +2594 -0
- package/lib/xianniu-ui.umd.chunk-libs~31ecd969.js +1250 -0
- package/lib/xianniu-ui.umd.chunk-libs~93acefaf.js +3328 -0
- package/lib/xianniu-ui.umd.chunk-libs~af0f4b76.js +17212 -0
- package/lib/xianniu-ui.umd.chunk-libs~d939e436.js +2292 -0
- package/lib/xianniu-ui.umd.chunk-libs~dfe5688e.js +4924 -0
- package/lib/xianniu-ui.umd.js +56 -122645
- package/lib/xianniu-ui.umd.min.chunk-elementUI.js +1 -0
- package/lib/xianniu-ui.umd.min.chunk-libs~253ae210.js +1 -0
- package/lib/xianniu-ui.umd.min.chunk-libs~31ecd969.js +1 -0
- package/lib/xianniu-ui.umd.min.chunk-libs~93acefaf.js +1 -0
- package/lib/xianniu-ui.umd.min.chunk-libs~af0f4b76.js +9 -0
- package/lib/xianniu-ui.umd.min.chunk-libs~d939e436.js +1 -0
- package/lib/xianniu-ui.umd.min.chunk-libs~dfe5688e.js +8 -0
- package/lib/xianniu-ui.umd.min.js +1 -39
- package/lib/xianniu-ui.umd.min.xianniu-ui.umd.min.js +1 -0
- package/lib/xianniu-ui.umd.xianniu-ui.umd.js +17184 -0
- package/package.json +1 -1
- package/packages/search/main.vue +1 -1
- /package/lib/{xianniu-ui.css → static/css/xianniu-ui.common.5be6bd50.css} +0 -0
|
@@ -0,0 +1,2594 @@
|
|
|
1
|
+
((typeof self !== 'undefined' ? self : this)["webpackJsonpxianniu_ui"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpxianniu_ui"] || []).push([[1],{
|
|
2
|
+
|
|
3
|
+
/***/ "06c5":
|
|
4
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
|
|
8
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6b75");
|
|
9
|
+
|
|
10
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
11
|
+
if (!o) return;
|
|
12
|
+
if (typeof o === "string") return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
|
|
13
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
16
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/***/ }),
|
|
20
|
+
|
|
21
|
+
/***/ "0a06":
|
|
22
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
23
|
+
|
|
24
|
+
"use strict";
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
var utils = __webpack_require__("c532");
|
|
28
|
+
var buildURL = __webpack_require__("30b5");
|
|
29
|
+
var InterceptorManager = __webpack_require__("f6b4");
|
|
30
|
+
var dispatchRequest = __webpack_require__("5270");
|
|
31
|
+
var mergeConfig = __webpack_require__("4a7b");
|
|
32
|
+
var validator = __webpack_require__("848b");
|
|
33
|
+
|
|
34
|
+
var validators = validator.validators;
|
|
35
|
+
/**
|
|
36
|
+
* Create a new instance of Axios
|
|
37
|
+
*
|
|
38
|
+
* @param {Object} instanceConfig The default config for the instance
|
|
39
|
+
*/
|
|
40
|
+
function Axios(instanceConfig) {
|
|
41
|
+
this.defaults = instanceConfig;
|
|
42
|
+
this.interceptors = {
|
|
43
|
+
request: new InterceptorManager(),
|
|
44
|
+
response: new InterceptorManager()
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Dispatch a request
|
|
50
|
+
*
|
|
51
|
+
* @param {Object} config The config specific for this request (merged with this.defaults)
|
|
52
|
+
*/
|
|
53
|
+
Axios.prototype.request = function request(configOrUrl, config) {
|
|
54
|
+
/*eslint no-param-reassign:0*/
|
|
55
|
+
// Allow for axios('example/url'[, config]) a la fetch API
|
|
56
|
+
if (typeof configOrUrl === 'string') {
|
|
57
|
+
config = config || {};
|
|
58
|
+
config.url = configOrUrl;
|
|
59
|
+
} else {
|
|
60
|
+
config = configOrUrl || {};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
config = mergeConfig(this.defaults, config);
|
|
64
|
+
|
|
65
|
+
// Set config.method
|
|
66
|
+
if (config.method) {
|
|
67
|
+
config.method = config.method.toLowerCase();
|
|
68
|
+
} else if (this.defaults.method) {
|
|
69
|
+
config.method = this.defaults.method.toLowerCase();
|
|
70
|
+
} else {
|
|
71
|
+
config.method = 'get';
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
var transitional = config.transitional;
|
|
75
|
+
|
|
76
|
+
if (transitional !== undefined) {
|
|
77
|
+
validator.assertOptions(transitional, {
|
|
78
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
79
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
80
|
+
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
81
|
+
}, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// filter out skipped interceptors
|
|
85
|
+
var requestInterceptorChain = [];
|
|
86
|
+
var synchronousRequestInterceptors = true;
|
|
87
|
+
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
88
|
+
if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
93
|
+
|
|
94
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
var responseInterceptorChain = [];
|
|
98
|
+
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
99
|
+
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
var promise;
|
|
103
|
+
|
|
104
|
+
if (!synchronousRequestInterceptors) {
|
|
105
|
+
var chain = [dispatchRequest, undefined];
|
|
106
|
+
|
|
107
|
+
Array.prototype.unshift.apply(chain, requestInterceptorChain);
|
|
108
|
+
chain = chain.concat(responseInterceptorChain);
|
|
109
|
+
|
|
110
|
+
promise = Promise.resolve(config);
|
|
111
|
+
while (chain.length) {
|
|
112
|
+
promise = promise.then(chain.shift(), chain.shift());
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return promise;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
var newConfig = config;
|
|
120
|
+
while (requestInterceptorChain.length) {
|
|
121
|
+
var onFulfilled = requestInterceptorChain.shift();
|
|
122
|
+
var onRejected = requestInterceptorChain.shift();
|
|
123
|
+
try {
|
|
124
|
+
newConfig = onFulfilled(newConfig);
|
|
125
|
+
} catch (error) {
|
|
126
|
+
onRejected(error);
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
try {
|
|
132
|
+
promise = dispatchRequest(newConfig);
|
|
133
|
+
} catch (error) {
|
|
134
|
+
return Promise.reject(error);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
while (responseInterceptorChain.length) {
|
|
138
|
+
promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return promise;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
Axios.prototype.getUri = function getUri(config) {
|
|
145
|
+
config = mergeConfig(this.defaults, config);
|
|
146
|
+
return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
// Provide aliases for supported request methods
|
|
150
|
+
utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
|
151
|
+
/*eslint func-names:0*/
|
|
152
|
+
Axios.prototype[method] = function(url, config) {
|
|
153
|
+
return this.request(mergeConfig(config || {}, {
|
|
154
|
+
method: method,
|
|
155
|
+
url: url,
|
|
156
|
+
data: (config || {}).data
|
|
157
|
+
}));
|
|
158
|
+
};
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
162
|
+
/*eslint func-names:0*/
|
|
163
|
+
Axios.prototype[method] = function(url, data, config) {
|
|
164
|
+
return this.request(mergeConfig(config || {}, {
|
|
165
|
+
method: method,
|
|
166
|
+
url: url,
|
|
167
|
+
data: data
|
|
168
|
+
}));
|
|
169
|
+
};
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
module.exports = Axios;
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
/***/ }),
|
|
176
|
+
|
|
177
|
+
/***/ "0c7c":
|
|
178
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
179
|
+
|
|
180
|
+
"use strict";
|
|
181
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
182
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
183
|
+
|
|
184
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
185
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
186
|
+
// be included in the final webpack user bundle.
|
|
187
|
+
|
|
188
|
+
function normalizeComponent (
|
|
189
|
+
scriptExports,
|
|
190
|
+
render,
|
|
191
|
+
staticRenderFns,
|
|
192
|
+
functionalTemplate,
|
|
193
|
+
injectStyles,
|
|
194
|
+
scopeId,
|
|
195
|
+
moduleIdentifier, /* server only */
|
|
196
|
+
shadowMode /* vue-cli only */
|
|
197
|
+
) {
|
|
198
|
+
// Vue.extend constructor export interop
|
|
199
|
+
var options = typeof scriptExports === 'function'
|
|
200
|
+
? scriptExports.options
|
|
201
|
+
: scriptExports
|
|
202
|
+
|
|
203
|
+
// render functions
|
|
204
|
+
if (render) {
|
|
205
|
+
options.render = render
|
|
206
|
+
options.staticRenderFns = staticRenderFns
|
|
207
|
+
options._compiled = true
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// functional template
|
|
211
|
+
if (functionalTemplate) {
|
|
212
|
+
options.functional = true
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// scopedId
|
|
216
|
+
if (scopeId) {
|
|
217
|
+
options._scopeId = 'data-v-' + scopeId
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
var hook
|
|
221
|
+
if (moduleIdentifier) { // server build
|
|
222
|
+
hook = function (context) {
|
|
223
|
+
// 2.3 injection
|
|
224
|
+
context =
|
|
225
|
+
context || // cached call
|
|
226
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
227
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
228
|
+
// 2.2 with runInNewContext: true
|
|
229
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
230
|
+
context = __VUE_SSR_CONTEXT__
|
|
231
|
+
}
|
|
232
|
+
// inject component styles
|
|
233
|
+
if (injectStyles) {
|
|
234
|
+
injectStyles.call(this, context)
|
|
235
|
+
}
|
|
236
|
+
// register component module identifier for async chunk inferrence
|
|
237
|
+
if (context && context._registeredComponents) {
|
|
238
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
// used by ssr in case component is cached and beforeCreate
|
|
242
|
+
// never gets called
|
|
243
|
+
options._ssrRegister = hook
|
|
244
|
+
} else if (injectStyles) {
|
|
245
|
+
hook = shadowMode
|
|
246
|
+
? function () {
|
|
247
|
+
injectStyles.call(
|
|
248
|
+
this,
|
|
249
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
250
|
+
)
|
|
251
|
+
}
|
|
252
|
+
: injectStyles
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
if (hook) {
|
|
256
|
+
if (options.functional) {
|
|
257
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
258
|
+
// go through the normalizer
|
|
259
|
+
options._injectStyles = hook
|
|
260
|
+
// register for functional component in vue file
|
|
261
|
+
var originalRender = options.render
|
|
262
|
+
options.render = function renderWithStyleInjection (h, context) {
|
|
263
|
+
hook.call(context)
|
|
264
|
+
return originalRender(h, context)
|
|
265
|
+
}
|
|
266
|
+
} else {
|
|
267
|
+
// inject component registration as beforeCreate hook
|
|
268
|
+
var existing = options.beforeCreate
|
|
269
|
+
options.beforeCreate = existing
|
|
270
|
+
? [].concat(existing, hook)
|
|
271
|
+
: [hook]
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
return {
|
|
276
|
+
exports: scriptExports,
|
|
277
|
+
options: options
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
/***/ }),
|
|
283
|
+
|
|
284
|
+
/***/ "0df6":
|
|
285
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
286
|
+
|
|
287
|
+
"use strict";
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
|
292
|
+
*
|
|
293
|
+
* Common use case would be to use `Function.prototype.apply`.
|
|
294
|
+
*
|
|
295
|
+
* ```js
|
|
296
|
+
* function f(x, y, z) {}
|
|
297
|
+
* var args = [1, 2, 3];
|
|
298
|
+
* f.apply(null, args);
|
|
299
|
+
* ```
|
|
300
|
+
*
|
|
301
|
+
* With `spread` this example can be re-written.
|
|
302
|
+
*
|
|
303
|
+
* ```js
|
|
304
|
+
* spread(function(x, y, z) {})([1, 2, 3]);
|
|
305
|
+
* ```
|
|
306
|
+
*
|
|
307
|
+
* @param {Function} callback
|
|
308
|
+
* @returns {Function}
|
|
309
|
+
*/
|
|
310
|
+
module.exports = function spread(callback) {
|
|
311
|
+
return function wrap(arr) {
|
|
312
|
+
return callback.apply(null, arr);
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
/***/ }),
|
|
318
|
+
|
|
319
|
+
/***/ "1d2b":
|
|
320
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
321
|
+
|
|
322
|
+
"use strict";
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
module.exports = function bind(fn, thisArg) {
|
|
326
|
+
return function wrap() {
|
|
327
|
+
var args = new Array(arguments.length);
|
|
328
|
+
for (var i = 0; i < args.length; i++) {
|
|
329
|
+
args[i] = arguments[i];
|
|
330
|
+
}
|
|
331
|
+
return fn.apply(thisArg, args);
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
/***/ }),
|
|
337
|
+
|
|
338
|
+
/***/ "1da1":
|
|
339
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
340
|
+
|
|
341
|
+
"use strict";
|
|
342
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _asyncToGenerator; });
|
|
343
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
344
|
+
try {
|
|
345
|
+
var info = gen[key](arg);
|
|
346
|
+
var value = info.value;
|
|
347
|
+
} catch (error) {
|
|
348
|
+
reject(error);
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
if (info.done) {
|
|
353
|
+
resolve(value);
|
|
354
|
+
} else {
|
|
355
|
+
Promise.resolve(value).then(_next, _throw);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
function _asyncToGenerator(fn) {
|
|
360
|
+
return function () {
|
|
361
|
+
var self = this,
|
|
362
|
+
args = arguments;
|
|
363
|
+
return new Promise(function (resolve, reject) {
|
|
364
|
+
var gen = fn.apply(self, args);
|
|
365
|
+
|
|
366
|
+
function _next(value) {
|
|
367
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
function _throw(err) {
|
|
371
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
_next(undefined);
|
|
375
|
+
});
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/***/ }),
|
|
380
|
+
|
|
381
|
+
/***/ "2909":
|
|
382
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
383
|
+
|
|
384
|
+
"use strict";
|
|
385
|
+
|
|
386
|
+
// EXPORTS
|
|
387
|
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; });
|
|
388
|
+
|
|
389
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
390
|
+
var arrayLikeToArray = __webpack_require__("6b75");
|
|
391
|
+
|
|
392
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
393
|
+
|
|
394
|
+
function _arrayWithoutHoles(arr) {
|
|
395
|
+
if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr);
|
|
396
|
+
}
|
|
397
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
398
|
+
var iterableToArray = __webpack_require__("db90");
|
|
399
|
+
|
|
400
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
401
|
+
var unsupportedIterableToArray = __webpack_require__("06c5");
|
|
402
|
+
|
|
403
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
404
|
+
function _nonIterableSpread() {
|
|
405
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
406
|
+
}
|
|
407
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
function _toConsumableArray(arr) {
|
|
413
|
+
return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread();
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/***/ }),
|
|
417
|
+
|
|
418
|
+
/***/ "2d83":
|
|
419
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
420
|
+
|
|
421
|
+
"use strict";
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
var enhanceError = __webpack_require__("387f");
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
428
|
+
*
|
|
429
|
+
* @param {string} message The error message.
|
|
430
|
+
* @param {Object} config The config.
|
|
431
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
432
|
+
* @param {Object} [request] The request.
|
|
433
|
+
* @param {Object} [response] The response.
|
|
434
|
+
* @returns {Error} The created error.
|
|
435
|
+
*/
|
|
436
|
+
module.exports = function createError(message, config, code, request, response) {
|
|
437
|
+
var error = new Error(message);
|
|
438
|
+
return enhanceError(error, config, code, request, response);
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
/***/ }),
|
|
443
|
+
|
|
444
|
+
/***/ "2e67":
|
|
445
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
446
|
+
|
|
447
|
+
"use strict";
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
module.exports = function isCancel(value) {
|
|
451
|
+
return !!(value && value.__CANCEL__);
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
/***/ }),
|
|
456
|
+
|
|
457
|
+
/***/ "30b5":
|
|
458
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
459
|
+
|
|
460
|
+
"use strict";
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
var utils = __webpack_require__("c532");
|
|
464
|
+
|
|
465
|
+
function encode(val) {
|
|
466
|
+
return encodeURIComponent(val).
|
|
467
|
+
replace(/%3A/gi, ':').
|
|
468
|
+
replace(/%24/g, '$').
|
|
469
|
+
replace(/%2C/gi, ',').
|
|
470
|
+
replace(/%20/g, '+').
|
|
471
|
+
replace(/%5B/gi, '[').
|
|
472
|
+
replace(/%5D/gi, ']');
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Build a URL by appending params to the end
|
|
477
|
+
*
|
|
478
|
+
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
479
|
+
* @param {object} [params] The params to be appended
|
|
480
|
+
* @returns {string} The formatted url
|
|
481
|
+
*/
|
|
482
|
+
module.exports = function buildURL(url, params, paramsSerializer) {
|
|
483
|
+
/*eslint no-param-reassign:0*/
|
|
484
|
+
if (!params) {
|
|
485
|
+
return url;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
var serializedParams;
|
|
489
|
+
if (paramsSerializer) {
|
|
490
|
+
serializedParams = paramsSerializer(params);
|
|
491
|
+
} else if (utils.isURLSearchParams(params)) {
|
|
492
|
+
serializedParams = params.toString();
|
|
493
|
+
} else {
|
|
494
|
+
var parts = [];
|
|
495
|
+
|
|
496
|
+
utils.forEach(params, function serialize(val, key) {
|
|
497
|
+
if (val === null || typeof val === 'undefined') {
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
if (utils.isArray(val)) {
|
|
502
|
+
key = key + '[]';
|
|
503
|
+
} else {
|
|
504
|
+
val = [val];
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
utils.forEach(val, function parseValue(v) {
|
|
508
|
+
if (utils.isDate(v)) {
|
|
509
|
+
v = v.toISOString();
|
|
510
|
+
} else if (utils.isObject(v)) {
|
|
511
|
+
v = JSON.stringify(v);
|
|
512
|
+
}
|
|
513
|
+
parts.push(encode(key) + '=' + encode(v));
|
|
514
|
+
});
|
|
515
|
+
});
|
|
516
|
+
|
|
517
|
+
serializedParams = parts.join('&');
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
if (serializedParams) {
|
|
521
|
+
var hashmarkIndex = url.indexOf('#');
|
|
522
|
+
if (hashmarkIndex !== -1) {
|
|
523
|
+
url = url.slice(0, hashmarkIndex);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
return url;
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
/***/ }),
|
|
534
|
+
|
|
535
|
+
/***/ "387f":
|
|
536
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
537
|
+
|
|
538
|
+
"use strict";
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Update an Error with the specified config, error code, and response.
|
|
543
|
+
*
|
|
544
|
+
* @param {Error} error The error to update.
|
|
545
|
+
* @param {Object} config The config.
|
|
546
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
547
|
+
* @param {Object} [request] The request.
|
|
548
|
+
* @param {Object} [response] The response.
|
|
549
|
+
* @returns {Error} The error.
|
|
550
|
+
*/
|
|
551
|
+
module.exports = function enhanceError(error, config, code, request, response) {
|
|
552
|
+
error.config = config;
|
|
553
|
+
if (code) {
|
|
554
|
+
error.code = code;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
error.request = request;
|
|
558
|
+
error.response = response;
|
|
559
|
+
error.isAxiosError = true;
|
|
560
|
+
|
|
561
|
+
error.toJSON = function toJSON() {
|
|
562
|
+
return {
|
|
563
|
+
// Standard
|
|
564
|
+
message: this.message,
|
|
565
|
+
name: this.name,
|
|
566
|
+
// Microsoft
|
|
567
|
+
description: this.description,
|
|
568
|
+
number: this.number,
|
|
569
|
+
// Mozilla
|
|
570
|
+
fileName: this.fileName,
|
|
571
|
+
lineNumber: this.lineNumber,
|
|
572
|
+
columnNumber: this.columnNumber,
|
|
573
|
+
stack: this.stack,
|
|
574
|
+
// Axios
|
|
575
|
+
config: this.config,
|
|
576
|
+
code: this.code,
|
|
577
|
+
status: this.response && this.response.status ? this.response.status : null
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
return error;
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
/***/ }),
|
|
585
|
+
|
|
586
|
+
/***/ "3934":
|
|
587
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
588
|
+
|
|
589
|
+
"use strict";
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
var utils = __webpack_require__("c532");
|
|
593
|
+
|
|
594
|
+
module.exports = (
|
|
595
|
+
utils.isStandardBrowserEnv() ?
|
|
596
|
+
|
|
597
|
+
// Standard browser envs have full support of the APIs needed to test
|
|
598
|
+
// whether the request URL is of the same origin as current location.
|
|
599
|
+
(function standardBrowserEnv() {
|
|
600
|
+
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
601
|
+
var urlParsingNode = document.createElement('a');
|
|
602
|
+
var originURL;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Parse a URL to discover it's components
|
|
606
|
+
*
|
|
607
|
+
* @param {String} url The URL to be parsed
|
|
608
|
+
* @returns {Object}
|
|
609
|
+
*/
|
|
610
|
+
function resolveURL(url) {
|
|
611
|
+
var href = url;
|
|
612
|
+
|
|
613
|
+
if (msie) {
|
|
614
|
+
// IE needs attribute set twice to normalize properties
|
|
615
|
+
urlParsingNode.setAttribute('href', href);
|
|
616
|
+
href = urlParsingNode.href;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
urlParsingNode.setAttribute('href', href);
|
|
620
|
+
|
|
621
|
+
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
|
622
|
+
return {
|
|
623
|
+
href: urlParsingNode.href,
|
|
624
|
+
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
|
625
|
+
host: urlParsingNode.host,
|
|
626
|
+
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
|
627
|
+
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
|
628
|
+
hostname: urlParsingNode.hostname,
|
|
629
|
+
port: urlParsingNode.port,
|
|
630
|
+
pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
|
|
631
|
+
urlParsingNode.pathname :
|
|
632
|
+
'/' + urlParsingNode.pathname
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
originURL = resolveURL(window.location.href);
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Determine if a URL shares the same origin as the current location
|
|
640
|
+
*
|
|
641
|
+
* @param {String} requestURL The URL to test
|
|
642
|
+
* @returns {boolean} True if URL shares the same origin, otherwise false
|
|
643
|
+
*/
|
|
644
|
+
return function isURLSameOrigin(requestURL) {
|
|
645
|
+
var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
|
|
646
|
+
return (parsed.protocol === originURL.protocol &&
|
|
647
|
+
parsed.host === originURL.host);
|
|
648
|
+
};
|
|
649
|
+
})() :
|
|
650
|
+
|
|
651
|
+
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
652
|
+
(function nonStandardBrowserEnv() {
|
|
653
|
+
return function isURLSameOrigin() {
|
|
654
|
+
return true;
|
|
655
|
+
};
|
|
656
|
+
})()
|
|
657
|
+
);
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
/***/ }),
|
|
661
|
+
|
|
662
|
+
/***/ "467f":
|
|
663
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
664
|
+
|
|
665
|
+
"use strict";
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
var createError = __webpack_require__("2d83");
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Resolve or reject a Promise based on response status.
|
|
672
|
+
*
|
|
673
|
+
* @param {Function} resolve A function that resolves the promise.
|
|
674
|
+
* @param {Function} reject A function that rejects the promise.
|
|
675
|
+
* @param {object} response The response.
|
|
676
|
+
*/
|
|
677
|
+
module.exports = function settle(resolve, reject, response) {
|
|
678
|
+
var validateStatus = response.config.validateStatus;
|
|
679
|
+
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
680
|
+
resolve(response);
|
|
681
|
+
} else {
|
|
682
|
+
reject(createError(
|
|
683
|
+
'Request failed with status code ' + response.status,
|
|
684
|
+
response.config,
|
|
685
|
+
null,
|
|
686
|
+
response.request,
|
|
687
|
+
response
|
|
688
|
+
));
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
/***/ }),
|
|
694
|
+
|
|
695
|
+
/***/ "4a7b":
|
|
696
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
697
|
+
|
|
698
|
+
"use strict";
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
var utils = __webpack_require__("c532");
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Config-specific merge-function which creates a new config-object
|
|
705
|
+
* by merging two configuration objects together.
|
|
706
|
+
*
|
|
707
|
+
* @param {Object} config1
|
|
708
|
+
* @param {Object} config2
|
|
709
|
+
* @returns {Object} New object resulting from merging config2 to config1
|
|
710
|
+
*/
|
|
711
|
+
module.exports = function mergeConfig(config1, config2) {
|
|
712
|
+
// eslint-disable-next-line no-param-reassign
|
|
713
|
+
config2 = config2 || {};
|
|
714
|
+
var config = {};
|
|
715
|
+
|
|
716
|
+
function getMergedValue(target, source) {
|
|
717
|
+
if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
|
|
718
|
+
return utils.merge(target, source);
|
|
719
|
+
} else if (utils.isPlainObject(source)) {
|
|
720
|
+
return utils.merge({}, source);
|
|
721
|
+
} else if (utils.isArray(source)) {
|
|
722
|
+
return source.slice();
|
|
723
|
+
}
|
|
724
|
+
return source;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
// eslint-disable-next-line consistent-return
|
|
728
|
+
function mergeDeepProperties(prop) {
|
|
729
|
+
if (!utils.isUndefined(config2[prop])) {
|
|
730
|
+
return getMergedValue(config1[prop], config2[prop]);
|
|
731
|
+
} else if (!utils.isUndefined(config1[prop])) {
|
|
732
|
+
return getMergedValue(undefined, config1[prop]);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
// eslint-disable-next-line consistent-return
|
|
737
|
+
function valueFromConfig2(prop) {
|
|
738
|
+
if (!utils.isUndefined(config2[prop])) {
|
|
739
|
+
return getMergedValue(undefined, config2[prop]);
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
// eslint-disable-next-line consistent-return
|
|
744
|
+
function defaultToConfig2(prop) {
|
|
745
|
+
if (!utils.isUndefined(config2[prop])) {
|
|
746
|
+
return getMergedValue(undefined, config2[prop]);
|
|
747
|
+
} else if (!utils.isUndefined(config1[prop])) {
|
|
748
|
+
return getMergedValue(undefined, config1[prop]);
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
// eslint-disable-next-line consistent-return
|
|
753
|
+
function mergeDirectKeys(prop) {
|
|
754
|
+
if (prop in config2) {
|
|
755
|
+
return getMergedValue(config1[prop], config2[prop]);
|
|
756
|
+
} else if (prop in config1) {
|
|
757
|
+
return getMergedValue(undefined, config1[prop]);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
var mergeMap = {
|
|
762
|
+
'url': valueFromConfig2,
|
|
763
|
+
'method': valueFromConfig2,
|
|
764
|
+
'data': valueFromConfig2,
|
|
765
|
+
'baseURL': defaultToConfig2,
|
|
766
|
+
'transformRequest': defaultToConfig2,
|
|
767
|
+
'transformResponse': defaultToConfig2,
|
|
768
|
+
'paramsSerializer': defaultToConfig2,
|
|
769
|
+
'timeout': defaultToConfig2,
|
|
770
|
+
'timeoutMessage': defaultToConfig2,
|
|
771
|
+
'withCredentials': defaultToConfig2,
|
|
772
|
+
'adapter': defaultToConfig2,
|
|
773
|
+
'responseType': defaultToConfig2,
|
|
774
|
+
'xsrfCookieName': defaultToConfig2,
|
|
775
|
+
'xsrfHeaderName': defaultToConfig2,
|
|
776
|
+
'onUploadProgress': defaultToConfig2,
|
|
777
|
+
'onDownloadProgress': defaultToConfig2,
|
|
778
|
+
'decompress': defaultToConfig2,
|
|
779
|
+
'maxContentLength': defaultToConfig2,
|
|
780
|
+
'maxBodyLength': defaultToConfig2,
|
|
781
|
+
'transport': defaultToConfig2,
|
|
782
|
+
'httpAgent': defaultToConfig2,
|
|
783
|
+
'httpsAgent': defaultToConfig2,
|
|
784
|
+
'cancelToken': defaultToConfig2,
|
|
785
|
+
'socketPath': defaultToConfig2,
|
|
786
|
+
'responseEncoding': defaultToConfig2,
|
|
787
|
+
'validateStatus': mergeDirectKeys
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
|
|
791
|
+
var merge = mergeMap[prop] || mergeDeepProperties;
|
|
792
|
+
var configValue = merge(prop);
|
|
793
|
+
(utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
794
|
+
});
|
|
795
|
+
|
|
796
|
+
return config;
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
/***/ }),
|
|
801
|
+
|
|
802
|
+
/***/ "4c3d":
|
|
803
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
804
|
+
|
|
805
|
+
"use strict";
|
|
806
|
+
/* WEBPACK VAR INJECTION */(function(process) {
|
|
807
|
+
|
|
808
|
+
var utils = __webpack_require__("c532");
|
|
809
|
+
var normalizeHeaderName = __webpack_require__("c8af");
|
|
810
|
+
var enhanceError = __webpack_require__("387f");
|
|
811
|
+
var transitionalDefaults = __webpack_require__("cafa");
|
|
812
|
+
|
|
813
|
+
var DEFAULT_CONTENT_TYPE = {
|
|
814
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
function setContentTypeIfUnset(headers, value) {
|
|
818
|
+
if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
|
|
819
|
+
headers['Content-Type'] = value;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
function getDefaultAdapter() {
|
|
824
|
+
var adapter;
|
|
825
|
+
if (typeof XMLHttpRequest !== 'undefined') {
|
|
826
|
+
// For browsers use XHR adapter
|
|
827
|
+
adapter = __webpack_require__("b50d");
|
|
828
|
+
} else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
|
|
829
|
+
// For node use HTTP adapter
|
|
830
|
+
adapter = __webpack_require__("b50d");
|
|
831
|
+
}
|
|
832
|
+
return adapter;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
836
|
+
if (utils.isString(rawValue)) {
|
|
837
|
+
try {
|
|
838
|
+
(parser || JSON.parse)(rawValue);
|
|
839
|
+
return utils.trim(rawValue);
|
|
840
|
+
} catch (e) {
|
|
841
|
+
if (e.name !== 'SyntaxError') {
|
|
842
|
+
throw e;
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
var defaults = {
|
|
851
|
+
|
|
852
|
+
transitional: transitionalDefaults,
|
|
853
|
+
|
|
854
|
+
adapter: getDefaultAdapter(),
|
|
855
|
+
|
|
856
|
+
transformRequest: [function transformRequest(data, headers) {
|
|
857
|
+
normalizeHeaderName(headers, 'Accept');
|
|
858
|
+
normalizeHeaderName(headers, 'Content-Type');
|
|
859
|
+
|
|
860
|
+
if (utils.isFormData(data) ||
|
|
861
|
+
utils.isArrayBuffer(data) ||
|
|
862
|
+
utils.isBuffer(data) ||
|
|
863
|
+
utils.isStream(data) ||
|
|
864
|
+
utils.isFile(data) ||
|
|
865
|
+
utils.isBlob(data)
|
|
866
|
+
) {
|
|
867
|
+
return data;
|
|
868
|
+
}
|
|
869
|
+
if (utils.isArrayBufferView(data)) {
|
|
870
|
+
return data.buffer;
|
|
871
|
+
}
|
|
872
|
+
if (utils.isURLSearchParams(data)) {
|
|
873
|
+
setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
|
|
874
|
+
return data.toString();
|
|
875
|
+
}
|
|
876
|
+
if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
|
|
877
|
+
setContentTypeIfUnset(headers, 'application/json');
|
|
878
|
+
return stringifySafely(data);
|
|
879
|
+
}
|
|
880
|
+
return data;
|
|
881
|
+
}],
|
|
882
|
+
|
|
883
|
+
transformResponse: [function transformResponse(data) {
|
|
884
|
+
var transitional = this.transitional || defaults.transitional;
|
|
885
|
+
var silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
886
|
+
var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
887
|
+
var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
|
|
888
|
+
|
|
889
|
+
if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
|
|
890
|
+
try {
|
|
891
|
+
return JSON.parse(data);
|
|
892
|
+
} catch (e) {
|
|
893
|
+
if (strictJSONParsing) {
|
|
894
|
+
if (e.name === 'SyntaxError') {
|
|
895
|
+
throw enhanceError(e, this, 'E_JSON_PARSE');
|
|
896
|
+
}
|
|
897
|
+
throw e;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
return data;
|
|
903
|
+
}],
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
907
|
+
* timeout is not created.
|
|
908
|
+
*/
|
|
909
|
+
timeout: 0,
|
|
910
|
+
|
|
911
|
+
xsrfCookieName: 'XSRF-TOKEN',
|
|
912
|
+
xsrfHeaderName: 'X-XSRF-TOKEN',
|
|
913
|
+
|
|
914
|
+
maxContentLength: -1,
|
|
915
|
+
maxBodyLength: -1,
|
|
916
|
+
|
|
917
|
+
validateStatus: function validateStatus(status) {
|
|
918
|
+
return status >= 200 && status < 300;
|
|
919
|
+
},
|
|
920
|
+
|
|
921
|
+
headers: {
|
|
922
|
+
common: {
|
|
923
|
+
'Accept': 'application/json, text/plain, */*'
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
|
|
929
|
+
defaults.headers[method] = {};
|
|
930
|
+
});
|
|
931
|
+
|
|
932
|
+
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
933
|
+
defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
|
|
934
|
+
});
|
|
935
|
+
|
|
936
|
+
module.exports = defaults;
|
|
937
|
+
|
|
938
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("4362")))
|
|
939
|
+
|
|
940
|
+
/***/ }),
|
|
941
|
+
|
|
942
|
+
/***/ "4f96":
|
|
943
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
944
|
+
|
|
945
|
+
"use strict";
|
|
946
|
+
|
|
947
|
+
// EXPORTS
|
|
948
|
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toArray; });
|
|
949
|
+
|
|
950
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
951
|
+
function _arrayWithHoles(arr) {
|
|
952
|
+
if (Array.isArray(arr)) return arr;
|
|
953
|
+
}
|
|
954
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
955
|
+
var iterableToArray = __webpack_require__("db90");
|
|
956
|
+
|
|
957
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
958
|
+
var unsupportedIterableToArray = __webpack_require__("06c5");
|
|
959
|
+
|
|
960
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
961
|
+
function _nonIterableRest() {
|
|
962
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
963
|
+
}
|
|
964
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
function _toArray(arr) {
|
|
970
|
+
return _arrayWithHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableRest();
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
/***/ }),
|
|
974
|
+
|
|
975
|
+
/***/ "5270":
|
|
976
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
977
|
+
|
|
978
|
+
"use strict";
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
var utils = __webpack_require__("c532");
|
|
982
|
+
var transformData = __webpack_require__("c401");
|
|
983
|
+
var isCancel = __webpack_require__("2e67");
|
|
984
|
+
var defaults = __webpack_require__("4c3d");
|
|
985
|
+
var Cancel = __webpack_require__("7a77");
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Throws a `Cancel` if cancellation has been requested.
|
|
989
|
+
*/
|
|
990
|
+
function throwIfCancellationRequested(config) {
|
|
991
|
+
if (config.cancelToken) {
|
|
992
|
+
config.cancelToken.throwIfRequested();
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
if (config.signal && config.signal.aborted) {
|
|
996
|
+
throw new Cancel('canceled');
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* Dispatch a request to the server using the configured adapter.
|
|
1002
|
+
*
|
|
1003
|
+
* @param {object} config The config that is to be used for the request
|
|
1004
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
1005
|
+
*/
|
|
1006
|
+
module.exports = function dispatchRequest(config) {
|
|
1007
|
+
throwIfCancellationRequested(config);
|
|
1008
|
+
|
|
1009
|
+
// Ensure headers exist
|
|
1010
|
+
config.headers = config.headers || {};
|
|
1011
|
+
|
|
1012
|
+
// Transform request data
|
|
1013
|
+
config.data = transformData.call(
|
|
1014
|
+
config,
|
|
1015
|
+
config.data,
|
|
1016
|
+
config.headers,
|
|
1017
|
+
config.transformRequest
|
|
1018
|
+
);
|
|
1019
|
+
|
|
1020
|
+
// Flatten headers
|
|
1021
|
+
config.headers = utils.merge(
|
|
1022
|
+
config.headers.common || {},
|
|
1023
|
+
config.headers[config.method] || {},
|
|
1024
|
+
config.headers
|
|
1025
|
+
);
|
|
1026
|
+
|
|
1027
|
+
utils.forEach(
|
|
1028
|
+
['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
|
|
1029
|
+
function cleanHeaderConfig(method) {
|
|
1030
|
+
delete config.headers[method];
|
|
1031
|
+
}
|
|
1032
|
+
);
|
|
1033
|
+
|
|
1034
|
+
var adapter = config.adapter || defaults.adapter;
|
|
1035
|
+
|
|
1036
|
+
return adapter(config).then(function onAdapterResolution(response) {
|
|
1037
|
+
throwIfCancellationRequested(config);
|
|
1038
|
+
|
|
1039
|
+
// Transform response data
|
|
1040
|
+
response.data = transformData.call(
|
|
1041
|
+
config,
|
|
1042
|
+
response.data,
|
|
1043
|
+
response.headers,
|
|
1044
|
+
config.transformResponse
|
|
1045
|
+
);
|
|
1046
|
+
|
|
1047
|
+
return response;
|
|
1048
|
+
}, function onAdapterRejection(reason) {
|
|
1049
|
+
if (!isCancel(reason)) {
|
|
1050
|
+
throwIfCancellationRequested(config);
|
|
1051
|
+
|
|
1052
|
+
// Transform response data
|
|
1053
|
+
if (reason && reason.response) {
|
|
1054
|
+
reason.response.data = transformData.call(
|
|
1055
|
+
config,
|
|
1056
|
+
reason.response.data,
|
|
1057
|
+
reason.response.headers,
|
|
1058
|
+
config.transformResponse
|
|
1059
|
+
);
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
return Promise.reject(reason);
|
|
1064
|
+
});
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
/***/ }),
|
|
1069
|
+
|
|
1070
|
+
/***/ "5530":
|
|
1071
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1072
|
+
|
|
1073
|
+
"use strict";
|
|
1074
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread2; });
|
|
1075
|
+
/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ade3");
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
function ownKeys(object, enumerableOnly) {
|
|
1079
|
+
var keys = Object.keys(object);
|
|
1080
|
+
|
|
1081
|
+
if (Object.getOwnPropertySymbols) {
|
|
1082
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
1083
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
1084
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
1085
|
+
})), keys.push.apply(keys, symbols);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
return keys;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
function _objectSpread2(target) {
|
|
1092
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1093
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
1094
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
1095
|
+
Object(_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]);
|
|
1096
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
1097
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
return target;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
/***/ }),
|
|
1105
|
+
|
|
1106
|
+
/***/ "5cce":
|
|
1107
|
+
/***/ (function(module, exports) {
|
|
1108
|
+
|
|
1109
|
+
module.exports = {
|
|
1110
|
+
"version": "0.26.1"
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1113
|
+
/***/ }),
|
|
1114
|
+
|
|
1115
|
+
/***/ "5f02":
|
|
1116
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1117
|
+
|
|
1118
|
+
"use strict";
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
var utils = __webpack_require__("c532");
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* Determines whether the payload is an error thrown by Axios
|
|
1125
|
+
*
|
|
1126
|
+
* @param {*} payload The value to test
|
|
1127
|
+
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
1128
|
+
*/
|
|
1129
|
+
module.exports = function isAxiosError(payload) {
|
|
1130
|
+
return utils.isObject(payload) && (payload.isAxiosError === true);
|
|
1131
|
+
};
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
/***/ }),
|
|
1135
|
+
|
|
1136
|
+
/***/ "6b75":
|
|
1137
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1138
|
+
|
|
1139
|
+
"use strict";
|
|
1140
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; });
|
|
1141
|
+
function _arrayLikeToArray(arr, len) {
|
|
1142
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
1143
|
+
|
|
1144
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
1145
|
+
arr2[i] = arr[i];
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
return arr2;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
/***/ }),
|
|
1152
|
+
|
|
1153
|
+
/***/ "7a77":
|
|
1154
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1155
|
+
|
|
1156
|
+
"use strict";
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* A `Cancel` is an object that is thrown when an operation is canceled.
|
|
1161
|
+
*
|
|
1162
|
+
* @class
|
|
1163
|
+
* @param {string=} message The message.
|
|
1164
|
+
*/
|
|
1165
|
+
function Cancel(message) {
|
|
1166
|
+
this.message = message;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
Cancel.prototype.toString = function toString() {
|
|
1170
|
+
return 'Cancel' + (this.message ? ': ' + this.message : '');
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1173
|
+
Cancel.prototype.__CANCEL__ = true;
|
|
1174
|
+
|
|
1175
|
+
module.exports = Cancel;
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
/***/ }),
|
|
1179
|
+
|
|
1180
|
+
/***/ "7aac":
|
|
1181
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1182
|
+
|
|
1183
|
+
"use strict";
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
var utils = __webpack_require__("c532");
|
|
1187
|
+
|
|
1188
|
+
module.exports = (
|
|
1189
|
+
utils.isStandardBrowserEnv() ?
|
|
1190
|
+
|
|
1191
|
+
// Standard browser envs support document.cookie
|
|
1192
|
+
(function standardBrowserEnv() {
|
|
1193
|
+
return {
|
|
1194
|
+
write: function write(name, value, expires, path, domain, secure) {
|
|
1195
|
+
var cookie = [];
|
|
1196
|
+
cookie.push(name + '=' + encodeURIComponent(value));
|
|
1197
|
+
|
|
1198
|
+
if (utils.isNumber(expires)) {
|
|
1199
|
+
cookie.push('expires=' + new Date(expires).toGMTString());
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
if (utils.isString(path)) {
|
|
1203
|
+
cookie.push('path=' + path);
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
if (utils.isString(domain)) {
|
|
1207
|
+
cookie.push('domain=' + domain);
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
if (secure === true) {
|
|
1211
|
+
cookie.push('secure');
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
document.cookie = cookie.join('; ');
|
|
1215
|
+
},
|
|
1216
|
+
|
|
1217
|
+
read: function read(name) {
|
|
1218
|
+
var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
|
|
1219
|
+
return (match ? decodeURIComponent(match[3]) : null);
|
|
1220
|
+
},
|
|
1221
|
+
|
|
1222
|
+
remove: function remove(name) {
|
|
1223
|
+
this.write(name, '', Date.now() - 86400000);
|
|
1224
|
+
}
|
|
1225
|
+
};
|
|
1226
|
+
})() :
|
|
1227
|
+
|
|
1228
|
+
// Non standard browser env (web workers, react-native) lack needed support.
|
|
1229
|
+
(function nonStandardBrowserEnv() {
|
|
1230
|
+
return {
|
|
1231
|
+
write: function write() {},
|
|
1232
|
+
read: function read() { return null; },
|
|
1233
|
+
remove: function remove() {}
|
|
1234
|
+
};
|
|
1235
|
+
})()
|
|
1236
|
+
);
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
/***/ }),
|
|
1240
|
+
|
|
1241
|
+
/***/ "83b9":
|
|
1242
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1243
|
+
|
|
1244
|
+
"use strict";
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
var isAbsoluteURL = __webpack_require__("d925");
|
|
1248
|
+
var combineURLs = __webpack_require__("e683");
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* Creates a new URL by combining the baseURL with the requestedURL,
|
|
1252
|
+
* only when the requestedURL is not already an absolute URL.
|
|
1253
|
+
* If the requestURL is absolute, this function returns the requestedURL untouched.
|
|
1254
|
+
*
|
|
1255
|
+
* @param {string} baseURL The base URL
|
|
1256
|
+
* @param {string} requestedURL Absolute or relative URL to combine
|
|
1257
|
+
* @returns {string} The combined full path
|
|
1258
|
+
*/
|
|
1259
|
+
module.exports = function buildFullPath(baseURL, requestedURL) {
|
|
1260
|
+
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
1261
|
+
return combineURLs(baseURL, requestedURL);
|
|
1262
|
+
}
|
|
1263
|
+
return requestedURL;
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
/***/ }),
|
|
1268
|
+
|
|
1269
|
+
/***/ "848b":
|
|
1270
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1271
|
+
|
|
1272
|
+
"use strict";
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
var VERSION = __webpack_require__("5cce").version;
|
|
1276
|
+
|
|
1277
|
+
var validators = {};
|
|
1278
|
+
|
|
1279
|
+
// eslint-disable-next-line func-names
|
|
1280
|
+
['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
|
|
1281
|
+
validators[type] = function validator(thing) {
|
|
1282
|
+
return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
|
|
1283
|
+
};
|
|
1284
|
+
});
|
|
1285
|
+
|
|
1286
|
+
var deprecatedWarnings = {};
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* Transitional option validator
|
|
1290
|
+
* @param {function|boolean?} validator - set to false if the transitional option has been removed
|
|
1291
|
+
* @param {string?} version - deprecated version / removed since version
|
|
1292
|
+
* @param {string?} message - some message with additional info
|
|
1293
|
+
* @returns {function}
|
|
1294
|
+
*/
|
|
1295
|
+
validators.transitional = function transitional(validator, version, message) {
|
|
1296
|
+
function formatMessage(opt, desc) {
|
|
1297
|
+
return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
// eslint-disable-next-line func-names
|
|
1301
|
+
return function(value, opt, opts) {
|
|
1302
|
+
if (validator === false) {
|
|
1303
|
+
throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
if (version && !deprecatedWarnings[opt]) {
|
|
1307
|
+
deprecatedWarnings[opt] = true;
|
|
1308
|
+
// eslint-disable-next-line no-console
|
|
1309
|
+
console.warn(
|
|
1310
|
+
formatMessage(
|
|
1311
|
+
opt,
|
|
1312
|
+
' has been deprecated since v' + version + ' and will be removed in the near future'
|
|
1313
|
+
)
|
|
1314
|
+
);
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
return validator ? validator(value, opt, opts) : true;
|
|
1318
|
+
};
|
|
1319
|
+
};
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* Assert object's properties type
|
|
1323
|
+
* @param {object} options
|
|
1324
|
+
* @param {object} schema
|
|
1325
|
+
* @param {boolean?} allowUnknown
|
|
1326
|
+
*/
|
|
1327
|
+
|
|
1328
|
+
function assertOptions(options, schema, allowUnknown) {
|
|
1329
|
+
if (typeof options !== 'object') {
|
|
1330
|
+
throw new TypeError('options must be an object');
|
|
1331
|
+
}
|
|
1332
|
+
var keys = Object.keys(options);
|
|
1333
|
+
var i = keys.length;
|
|
1334
|
+
while (i-- > 0) {
|
|
1335
|
+
var opt = keys[i];
|
|
1336
|
+
var validator = schema[opt];
|
|
1337
|
+
if (validator) {
|
|
1338
|
+
var value = options[opt];
|
|
1339
|
+
var result = value === undefined || validator(value, opt, options);
|
|
1340
|
+
if (result !== true) {
|
|
1341
|
+
throw new TypeError('option ' + opt + ' must be ' + result);
|
|
1342
|
+
}
|
|
1343
|
+
continue;
|
|
1344
|
+
}
|
|
1345
|
+
if (allowUnknown !== true) {
|
|
1346
|
+
throw Error('Unknown option ' + opt);
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
module.exports = {
|
|
1352
|
+
assertOptions: assertOptions,
|
|
1353
|
+
validators: validators
|
|
1354
|
+
};
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
/***/ }),
|
|
1358
|
+
|
|
1359
|
+
/***/ "8875":
|
|
1360
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1361
|
+
|
|
1362
|
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller
|
|
1363
|
+
// MIT license
|
|
1364
|
+
// source: https://github.com/amiller-gh/currentScript-polyfill
|
|
1365
|
+
|
|
1366
|
+
// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505
|
|
1367
|
+
|
|
1368
|
+
(function (root, factory) {
|
|
1369
|
+
if (true) {
|
|
1370
|
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
1371
|
+
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
1372
|
+
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
1373
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
1374
|
+
} else {}
|
|
1375
|
+
}(typeof self !== 'undefined' ? self : this, function () {
|
|
1376
|
+
function getCurrentScript () {
|
|
1377
|
+
var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
|
|
1378
|
+
// for chrome
|
|
1379
|
+
if (!descriptor && 'currentScript' in document && document.currentScript) {
|
|
1380
|
+
return document.currentScript
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
// for other browsers with native support for currentScript
|
|
1384
|
+
if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
|
|
1385
|
+
return document.currentScript
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
// IE 8-10 support script readyState
|
|
1389
|
+
// IE 11+ & Firefox support stack trace
|
|
1390
|
+
try {
|
|
1391
|
+
throw new Error();
|
|
1392
|
+
}
|
|
1393
|
+
catch (err) {
|
|
1394
|
+
// Find the second match for the "at" string to get file src url from stack.
|
|
1395
|
+
var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig,
|
|
1396
|
+
ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig,
|
|
1397
|
+
stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),
|
|
1398
|
+
scriptLocation = (stackDetails && stackDetails[1]) || false,
|
|
1399
|
+
line = (stackDetails && stackDetails[2]) || false,
|
|
1400
|
+
currentLocation = document.location.href.replace(document.location.hash, ''),
|
|
1401
|
+
pageSource,
|
|
1402
|
+
inlineScriptSourceRegExp,
|
|
1403
|
+
inlineScriptSource,
|
|
1404
|
+
scripts = document.getElementsByTagName('script'); // Live NodeList collection
|
|
1405
|
+
|
|
1406
|
+
if (scriptLocation === currentLocation) {
|
|
1407
|
+
pageSource = document.documentElement.outerHTML;
|
|
1408
|
+
inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i');
|
|
1409
|
+
inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
for (var i = 0; i < scripts.length; i++) {
|
|
1413
|
+
// If ready state is interactive, return the script tag
|
|
1414
|
+
if (scripts[i].readyState === 'interactive') {
|
|
1415
|
+
return scripts[i];
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
// If src matches, return the script tag
|
|
1419
|
+
if (scripts[i].src === scriptLocation) {
|
|
1420
|
+
return scripts[i];
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
// If inline source matches, return the script tag
|
|
1424
|
+
if (
|
|
1425
|
+
scriptLocation === currentLocation &&
|
|
1426
|
+
scripts[i].innerHTML &&
|
|
1427
|
+
scripts[i].innerHTML.trim() === inlineScriptSource
|
|
1428
|
+
) {
|
|
1429
|
+
return scripts[i];
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
// If no match, return null
|
|
1434
|
+
return null;
|
|
1435
|
+
}
|
|
1436
|
+
};
|
|
1437
|
+
|
|
1438
|
+
return getCurrentScript
|
|
1439
|
+
}));
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
/***/ }),
|
|
1443
|
+
|
|
1444
|
+
/***/ "8df4":
|
|
1445
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1446
|
+
|
|
1447
|
+
"use strict";
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
var Cancel = __webpack_require__("7a77");
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
|
1454
|
+
*
|
|
1455
|
+
* @class
|
|
1456
|
+
* @param {Function} executor The executor function.
|
|
1457
|
+
*/
|
|
1458
|
+
function CancelToken(executor) {
|
|
1459
|
+
if (typeof executor !== 'function') {
|
|
1460
|
+
throw new TypeError('executor must be a function.');
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
var resolvePromise;
|
|
1464
|
+
|
|
1465
|
+
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
1466
|
+
resolvePromise = resolve;
|
|
1467
|
+
});
|
|
1468
|
+
|
|
1469
|
+
var token = this;
|
|
1470
|
+
|
|
1471
|
+
// eslint-disable-next-line func-names
|
|
1472
|
+
this.promise.then(function(cancel) {
|
|
1473
|
+
if (!token._listeners) return;
|
|
1474
|
+
|
|
1475
|
+
var i;
|
|
1476
|
+
var l = token._listeners.length;
|
|
1477
|
+
|
|
1478
|
+
for (i = 0; i < l; i++) {
|
|
1479
|
+
token._listeners[i](cancel);
|
|
1480
|
+
}
|
|
1481
|
+
token._listeners = null;
|
|
1482
|
+
});
|
|
1483
|
+
|
|
1484
|
+
// eslint-disable-next-line func-names
|
|
1485
|
+
this.promise.then = function(onfulfilled) {
|
|
1486
|
+
var _resolve;
|
|
1487
|
+
// eslint-disable-next-line func-names
|
|
1488
|
+
var promise = new Promise(function(resolve) {
|
|
1489
|
+
token.subscribe(resolve);
|
|
1490
|
+
_resolve = resolve;
|
|
1491
|
+
}).then(onfulfilled);
|
|
1492
|
+
|
|
1493
|
+
promise.cancel = function reject() {
|
|
1494
|
+
token.unsubscribe(_resolve);
|
|
1495
|
+
};
|
|
1496
|
+
|
|
1497
|
+
return promise;
|
|
1498
|
+
};
|
|
1499
|
+
|
|
1500
|
+
executor(function cancel(message) {
|
|
1501
|
+
if (token.reason) {
|
|
1502
|
+
// Cancellation has already been requested
|
|
1503
|
+
return;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
token.reason = new Cancel(message);
|
|
1507
|
+
resolvePromise(token.reason);
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* Throws a `Cancel` if cancellation has been requested.
|
|
1513
|
+
*/
|
|
1514
|
+
CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
1515
|
+
if (this.reason) {
|
|
1516
|
+
throw this.reason;
|
|
1517
|
+
}
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* Subscribe to the cancel signal
|
|
1522
|
+
*/
|
|
1523
|
+
|
|
1524
|
+
CancelToken.prototype.subscribe = function subscribe(listener) {
|
|
1525
|
+
if (this.reason) {
|
|
1526
|
+
listener(this.reason);
|
|
1527
|
+
return;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
if (this._listeners) {
|
|
1531
|
+
this._listeners.push(listener);
|
|
1532
|
+
} else {
|
|
1533
|
+
this._listeners = [listener];
|
|
1534
|
+
}
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* Unsubscribe from the cancel signal
|
|
1539
|
+
*/
|
|
1540
|
+
|
|
1541
|
+
CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
|
|
1542
|
+
if (!this._listeners) {
|
|
1543
|
+
return;
|
|
1544
|
+
}
|
|
1545
|
+
var index = this._listeners.indexOf(listener);
|
|
1546
|
+
if (index !== -1) {
|
|
1547
|
+
this._listeners.splice(index, 1);
|
|
1548
|
+
}
|
|
1549
|
+
};
|
|
1550
|
+
|
|
1551
|
+
/**
|
|
1552
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1553
|
+
* cancels the `CancelToken`.
|
|
1554
|
+
*/
|
|
1555
|
+
CancelToken.source = function source() {
|
|
1556
|
+
var cancel;
|
|
1557
|
+
var token = new CancelToken(function executor(c) {
|
|
1558
|
+
cancel = c;
|
|
1559
|
+
});
|
|
1560
|
+
return {
|
|
1561
|
+
token: token,
|
|
1562
|
+
cancel: cancel
|
|
1563
|
+
};
|
|
1564
|
+
};
|
|
1565
|
+
|
|
1566
|
+
module.exports = CancelToken;
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
/***/ }),
|
|
1570
|
+
|
|
1571
|
+
/***/ "ade3":
|
|
1572
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1573
|
+
|
|
1574
|
+
"use strict";
|
|
1575
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
|
|
1576
|
+
function _defineProperty(obj, key, value) {
|
|
1577
|
+
if (key in obj) {
|
|
1578
|
+
Object.defineProperty(obj, key, {
|
|
1579
|
+
value: value,
|
|
1580
|
+
enumerable: true,
|
|
1581
|
+
configurable: true,
|
|
1582
|
+
writable: true
|
|
1583
|
+
});
|
|
1584
|
+
} else {
|
|
1585
|
+
obj[key] = value;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
return obj;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
/***/ }),
|
|
1592
|
+
|
|
1593
|
+
/***/ "b50d":
|
|
1594
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1595
|
+
|
|
1596
|
+
"use strict";
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
var utils = __webpack_require__("c532");
|
|
1600
|
+
var settle = __webpack_require__("467f");
|
|
1601
|
+
var cookies = __webpack_require__("7aac");
|
|
1602
|
+
var buildURL = __webpack_require__("30b5");
|
|
1603
|
+
var buildFullPath = __webpack_require__("83b9");
|
|
1604
|
+
var parseHeaders = __webpack_require__("c345");
|
|
1605
|
+
var isURLSameOrigin = __webpack_require__("3934");
|
|
1606
|
+
var createError = __webpack_require__("2d83");
|
|
1607
|
+
var transitionalDefaults = __webpack_require__("cafa");
|
|
1608
|
+
var Cancel = __webpack_require__("7a77");
|
|
1609
|
+
|
|
1610
|
+
module.exports = function xhrAdapter(config) {
|
|
1611
|
+
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
1612
|
+
var requestData = config.data;
|
|
1613
|
+
var requestHeaders = config.headers;
|
|
1614
|
+
var responseType = config.responseType;
|
|
1615
|
+
var onCanceled;
|
|
1616
|
+
function done() {
|
|
1617
|
+
if (config.cancelToken) {
|
|
1618
|
+
config.cancelToken.unsubscribe(onCanceled);
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
if (config.signal) {
|
|
1622
|
+
config.signal.removeEventListener('abort', onCanceled);
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
if (utils.isFormData(requestData)) {
|
|
1627
|
+
delete requestHeaders['Content-Type']; // Let the browser set it
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
var request = new XMLHttpRequest();
|
|
1631
|
+
|
|
1632
|
+
// HTTP basic authentication
|
|
1633
|
+
if (config.auth) {
|
|
1634
|
+
var username = config.auth.username || '';
|
|
1635
|
+
var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
|
|
1636
|
+
requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
var fullPath = buildFullPath(config.baseURL, config.url);
|
|
1640
|
+
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
|
1641
|
+
|
|
1642
|
+
// Set the request timeout in MS
|
|
1643
|
+
request.timeout = config.timeout;
|
|
1644
|
+
|
|
1645
|
+
function onloadend() {
|
|
1646
|
+
if (!request) {
|
|
1647
|
+
return;
|
|
1648
|
+
}
|
|
1649
|
+
// Prepare the response
|
|
1650
|
+
var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
|
|
1651
|
+
var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
|
|
1652
|
+
request.responseText : request.response;
|
|
1653
|
+
var response = {
|
|
1654
|
+
data: responseData,
|
|
1655
|
+
status: request.status,
|
|
1656
|
+
statusText: request.statusText,
|
|
1657
|
+
headers: responseHeaders,
|
|
1658
|
+
config: config,
|
|
1659
|
+
request: request
|
|
1660
|
+
};
|
|
1661
|
+
|
|
1662
|
+
settle(function _resolve(value) {
|
|
1663
|
+
resolve(value);
|
|
1664
|
+
done();
|
|
1665
|
+
}, function _reject(err) {
|
|
1666
|
+
reject(err);
|
|
1667
|
+
done();
|
|
1668
|
+
}, response);
|
|
1669
|
+
|
|
1670
|
+
// Clean up request
|
|
1671
|
+
request = null;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
if ('onloadend' in request) {
|
|
1675
|
+
// Use onloadend if available
|
|
1676
|
+
request.onloadend = onloadend;
|
|
1677
|
+
} else {
|
|
1678
|
+
// Listen for ready state to emulate onloadend
|
|
1679
|
+
request.onreadystatechange = function handleLoad() {
|
|
1680
|
+
if (!request || request.readyState !== 4) {
|
|
1681
|
+
return;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
// The request errored out and we didn't get a response, this will be
|
|
1685
|
+
// handled by onerror instead
|
|
1686
|
+
// With one exception: request that using file: protocol, most browsers
|
|
1687
|
+
// will return status as 0 even though it's a successful request
|
|
1688
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
|
|
1689
|
+
return;
|
|
1690
|
+
}
|
|
1691
|
+
// readystate handler is calling before onerror or ontimeout handlers,
|
|
1692
|
+
// so we should call onloadend on the next 'tick'
|
|
1693
|
+
setTimeout(onloadend);
|
|
1694
|
+
};
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
// Handle browser request cancellation (as opposed to a manual cancellation)
|
|
1698
|
+
request.onabort = function handleAbort() {
|
|
1699
|
+
if (!request) {
|
|
1700
|
+
return;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
reject(createError('Request aborted', config, 'ECONNABORTED', request));
|
|
1704
|
+
|
|
1705
|
+
// Clean up request
|
|
1706
|
+
request = null;
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
// Handle low level network errors
|
|
1710
|
+
request.onerror = function handleError() {
|
|
1711
|
+
// Real errors are hidden from us by the browser
|
|
1712
|
+
// onerror should only fire if it's a network error
|
|
1713
|
+
reject(createError('Network Error', config, null, request));
|
|
1714
|
+
|
|
1715
|
+
// Clean up request
|
|
1716
|
+
request = null;
|
|
1717
|
+
};
|
|
1718
|
+
|
|
1719
|
+
// Handle timeout
|
|
1720
|
+
request.ontimeout = function handleTimeout() {
|
|
1721
|
+
var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
1722
|
+
var transitional = config.transitional || transitionalDefaults;
|
|
1723
|
+
if (config.timeoutErrorMessage) {
|
|
1724
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
1725
|
+
}
|
|
1726
|
+
reject(createError(
|
|
1727
|
+
timeoutErrorMessage,
|
|
1728
|
+
config,
|
|
1729
|
+
transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
|
|
1730
|
+
request));
|
|
1731
|
+
|
|
1732
|
+
// Clean up request
|
|
1733
|
+
request = null;
|
|
1734
|
+
};
|
|
1735
|
+
|
|
1736
|
+
// Add xsrf header
|
|
1737
|
+
// This is only done if running in a standard browser environment.
|
|
1738
|
+
// Specifically not if we're in a web worker, or react-native.
|
|
1739
|
+
if (utils.isStandardBrowserEnv()) {
|
|
1740
|
+
// Add xsrf header
|
|
1741
|
+
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
|
|
1742
|
+
cookies.read(config.xsrfCookieName) :
|
|
1743
|
+
undefined;
|
|
1744
|
+
|
|
1745
|
+
if (xsrfValue) {
|
|
1746
|
+
requestHeaders[config.xsrfHeaderName] = xsrfValue;
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
// Add headers to the request
|
|
1751
|
+
if ('setRequestHeader' in request) {
|
|
1752
|
+
utils.forEach(requestHeaders, function setRequestHeader(val, key) {
|
|
1753
|
+
if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
|
|
1754
|
+
// Remove Content-Type if data is undefined
|
|
1755
|
+
delete requestHeaders[key];
|
|
1756
|
+
} else {
|
|
1757
|
+
// Otherwise add header to the request
|
|
1758
|
+
request.setRequestHeader(key, val);
|
|
1759
|
+
}
|
|
1760
|
+
});
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
// Add withCredentials to request if needed
|
|
1764
|
+
if (!utils.isUndefined(config.withCredentials)) {
|
|
1765
|
+
request.withCredentials = !!config.withCredentials;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
// Add responseType to request if needed
|
|
1769
|
+
if (responseType && responseType !== 'json') {
|
|
1770
|
+
request.responseType = config.responseType;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
// Handle progress if needed
|
|
1774
|
+
if (typeof config.onDownloadProgress === 'function') {
|
|
1775
|
+
request.addEventListener('progress', config.onDownloadProgress);
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
// Not all browsers support upload events
|
|
1779
|
+
if (typeof config.onUploadProgress === 'function' && request.upload) {
|
|
1780
|
+
request.upload.addEventListener('progress', config.onUploadProgress);
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
if (config.cancelToken || config.signal) {
|
|
1784
|
+
// Handle cancellation
|
|
1785
|
+
// eslint-disable-next-line func-names
|
|
1786
|
+
onCanceled = function(cancel) {
|
|
1787
|
+
if (!request) {
|
|
1788
|
+
return;
|
|
1789
|
+
}
|
|
1790
|
+
reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel);
|
|
1791
|
+
request.abort();
|
|
1792
|
+
request = null;
|
|
1793
|
+
};
|
|
1794
|
+
|
|
1795
|
+
config.cancelToken && config.cancelToken.subscribe(onCanceled);
|
|
1796
|
+
if (config.signal) {
|
|
1797
|
+
config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
if (!requestData) {
|
|
1802
|
+
requestData = null;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
// Send the request
|
|
1806
|
+
request.send(requestData);
|
|
1807
|
+
});
|
|
1808
|
+
};
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
/***/ }),
|
|
1812
|
+
|
|
1813
|
+
/***/ "b85c":
|
|
1814
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1815
|
+
|
|
1816
|
+
"use strict";
|
|
1817
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _createForOfIteratorHelper; });
|
|
1818
|
+
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("06c5");
|
|
1819
|
+
|
|
1820
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
1821
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
1822
|
+
|
|
1823
|
+
if (!it) {
|
|
1824
|
+
if (Array.isArray(o) || (it = Object(_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
1825
|
+
if (it) o = it;
|
|
1826
|
+
var i = 0;
|
|
1827
|
+
|
|
1828
|
+
var F = function F() {};
|
|
1829
|
+
|
|
1830
|
+
return {
|
|
1831
|
+
s: F,
|
|
1832
|
+
n: function n() {
|
|
1833
|
+
if (i >= o.length) return {
|
|
1834
|
+
done: true
|
|
1835
|
+
};
|
|
1836
|
+
return {
|
|
1837
|
+
done: false,
|
|
1838
|
+
value: o[i++]
|
|
1839
|
+
};
|
|
1840
|
+
},
|
|
1841
|
+
e: function e(_e) {
|
|
1842
|
+
throw _e;
|
|
1843
|
+
},
|
|
1844
|
+
f: F
|
|
1845
|
+
};
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
var normalCompletion = true,
|
|
1852
|
+
didErr = false,
|
|
1853
|
+
err;
|
|
1854
|
+
return {
|
|
1855
|
+
s: function s() {
|
|
1856
|
+
it = it.call(o);
|
|
1857
|
+
},
|
|
1858
|
+
n: function n() {
|
|
1859
|
+
var step = it.next();
|
|
1860
|
+
normalCompletion = step.done;
|
|
1861
|
+
return step;
|
|
1862
|
+
},
|
|
1863
|
+
e: function e(_e2) {
|
|
1864
|
+
didErr = true;
|
|
1865
|
+
err = _e2;
|
|
1866
|
+
},
|
|
1867
|
+
f: function f() {
|
|
1868
|
+
try {
|
|
1869
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
1870
|
+
} finally {
|
|
1871
|
+
if (didErr) throw err;
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
};
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
/***/ }),
|
|
1878
|
+
|
|
1879
|
+
/***/ "bc3a":
|
|
1880
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1881
|
+
|
|
1882
|
+
module.exports = __webpack_require__("cee4");
|
|
1883
|
+
|
|
1884
|
+
/***/ }),
|
|
1885
|
+
|
|
1886
|
+
/***/ "c345":
|
|
1887
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1888
|
+
|
|
1889
|
+
"use strict";
|
|
1890
|
+
|
|
1891
|
+
|
|
1892
|
+
var utils = __webpack_require__("c532");
|
|
1893
|
+
|
|
1894
|
+
// Headers whose duplicates are ignored by node
|
|
1895
|
+
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
1896
|
+
var ignoreDuplicateOf = [
|
|
1897
|
+
'age', 'authorization', 'content-length', 'content-type', 'etag',
|
|
1898
|
+
'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
|
|
1899
|
+
'last-modified', 'location', 'max-forwards', 'proxy-authorization',
|
|
1900
|
+
'referer', 'retry-after', 'user-agent'
|
|
1901
|
+
];
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* Parse headers into an object
|
|
1905
|
+
*
|
|
1906
|
+
* ```
|
|
1907
|
+
* Date: Wed, 27 Aug 2014 08:58:49 GMT
|
|
1908
|
+
* Content-Type: application/json
|
|
1909
|
+
* Connection: keep-alive
|
|
1910
|
+
* Transfer-Encoding: chunked
|
|
1911
|
+
* ```
|
|
1912
|
+
*
|
|
1913
|
+
* @param {String} headers Headers needing to be parsed
|
|
1914
|
+
* @returns {Object} Headers parsed into an object
|
|
1915
|
+
*/
|
|
1916
|
+
module.exports = function parseHeaders(headers) {
|
|
1917
|
+
var parsed = {};
|
|
1918
|
+
var key;
|
|
1919
|
+
var val;
|
|
1920
|
+
var i;
|
|
1921
|
+
|
|
1922
|
+
if (!headers) { return parsed; }
|
|
1923
|
+
|
|
1924
|
+
utils.forEach(headers.split('\n'), function parser(line) {
|
|
1925
|
+
i = line.indexOf(':');
|
|
1926
|
+
key = utils.trim(line.substr(0, i)).toLowerCase();
|
|
1927
|
+
val = utils.trim(line.substr(i + 1));
|
|
1928
|
+
|
|
1929
|
+
if (key) {
|
|
1930
|
+
if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
|
|
1931
|
+
return;
|
|
1932
|
+
}
|
|
1933
|
+
if (key === 'set-cookie') {
|
|
1934
|
+
parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
|
|
1935
|
+
} else {
|
|
1936
|
+
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
});
|
|
1940
|
+
|
|
1941
|
+
return parsed;
|
|
1942
|
+
};
|
|
1943
|
+
|
|
1944
|
+
|
|
1945
|
+
/***/ }),
|
|
1946
|
+
|
|
1947
|
+
/***/ "c401":
|
|
1948
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1949
|
+
|
|
1950
|
+
"use strict";
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
var utils = __webpack_require__("c532");
|
|
1954
|
+
var defaults = __webpack_require__("4c3d");
|
|
1955
|
+
|
|
1956
|
+
/**
|
|
1957
|
+
* Transform the data for a request or a response
|
|
1958
|
+
*
|
|
1959
|
+
* @param {Object|String} data The data to be transformed
|
|
1960
|
+
* @param {Array} headers The headers for the request or response
|
|
1961
|
+
* @param {Array|Function} fns A single function or Array of functions
|
|
1962
|
+
* @returns {*} The resulting transformed data
|
|
1963
|
+
*/
|
|
1964
|
+
module.exports = function transformData(data, headers, fns) {
|
|
1965
|
+
var context = this || defaults;
|
|
1966
|
+
/*eslint no-param-reassign:0*/
|
|
1967
|
+
utils.forEach(fns, function transform(fn) {
|
|
1968
|
+
data = fn.call(context, data, headers);
|
|
1969
|
+
});
|
|
1970
|
+
|
|
1971
|
+
return data;
|
|
1972
|
+
};
|
|
1973
|
+
|
|
1974
|
+
|
|
1975
|
+
/***/ }),
|
|
1976
|
+
|
|
1977
|
+
/***/ "c532":
|
|
1978
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1979
|
+
|
|
1980
|
+
"use strict";
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
var bind = __webpack_require__("1d2b");
|
|
1984
|
+
|
|
1985
|
+
// utils is a library of generic helper functions non-specific to axios
|
|
1986
|
+
|
|
1987
|
+
var toString = Object.prototype.toString;
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
* Determine if a value is an Array
|
|
1991
|
+
*
|
|
1992
|
+
* @param {Object} val The value to test
|
|
1993
|
+
* @returns {boolean} True if value is an Array, otherwise false
|
|
1994
|
+
*/
|
|
1995
|
+
function isArray(val) {
|
|
1996
|
+
return Array.isArray(val);
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
/**
|
|
2000
|
+
* Determine if a value is undefined
|
|
2001
|
+
*
|
|
2002
|
+
* @param {Object} val The value to test
|
|
2003
|
+
* @returns {boolean} True if the value is undefined, otherwise false
|
|
2004
|
+
*/
|
|
2005
|
+
function isUndefined(val) {
|
|
2006
|
+
return typeof val === 'undefined';
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
/**
|
|
2010
|
+
* Determine if a value is a Buffer
|
|
2011
|
+
*
|
|
2012
|
+
* @param {Object} val The value to test
|
|
2013
|
+
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
2014
|
+
*/
|
|
2015
|
+
function isBuffer(val) {
|
|
2016
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
|
|
2017
|
+
&& typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
/**
|
|
2021
|
+
* Determine if a value is an ArrayBuffer
|
|
2022
|
+
*
|
|
2023
|
+
* @param {Object} val The value to test
|
|
2024
|
+
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
2025
|
+
*/
|
|
2026
|
+
function isArrayBuffer(val) {
|
|
2027
|
+
return toString.call(val) === '[object ArrayBuffer]';
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
/**
|
|
2031
|
+
* Determine if a value is a FormData
|
|
2032
|
+
*
|
|
2033
|
+
* @param {Object} val The value to test
|
|
2034
|
+
* @returns {boolean} True if value is an FormData, otherwise false
|
|
2035
|
+
*/
|
|
2036
|
+
function isFormData(val) {
|
|
2037
|
+
return toString.call(val) === '[object FormData]';
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* Determine if a value is a view on an ArrayBuffer
|
|
2042
|
+
*
|
|
2043
|
+
* @param {Object} val The value to test
|
|
2044
|
+
* @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
|
|
2045
|
+
*/
|
|
2046
|
+
function isArrayBufferView(val) {
|
|
2047
|
+
var result;
|
|
2048
|
+
if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
|
|
2049
|
+
result = ArrayBuffer.isView(val);
|
|
2050
|
+
} else {
|
|
2051
|
+
result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
|
|
2052
|
+
}
|
|
2053
|
+
return result;
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
/**
|
|
2057
|
+
* Determine if a value is a String
|
|
2058
|
+
*
|
|
2059
|
+
* @param {Object} val The value to test
|
|
2060
|
+
* @returns {boolean} True if value is a String, otherwise false
|
|
2061
|
+
*/
|
|
2062
|
+
function isString(val) {
|
|
2063
|
+
return typeof val === 'string';
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
/**
|
|
2067
|
+
* Determine if a value is a Number
|
|
2068
|
+
*
|
|
2069
|
+
* @param {Object} val The value to test
|
|
2070
|
+
* @returns {boolean} True if value is a Number, otherwise false
|
|
2071
|
+
*/
|
|
2072
|
+
function isNumber(val) {
|
|
2073
|
+
return typeof val === 'number';
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
/**
|
|
2077
|
+
* Determine if a value is an Object
|
|
2078
|
+
*
|
|
2079
|
+
* @param {Object} val The value to test
|
|
2080
|
+
* @returns {boolean} True if value is an Object, otherwise false
|
|
2081
|
+
*/
|
|
2082
|
+
function isObject(val) {
|
|
2083
|
+
return val !== null && typeof val === 'object';
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
* Determine if a value is a plain Object
|
|
2088
|
+
*
|
|
2089
|
+
* @param {Object} val The value to test
|
|
2090
|
+
* @return {boolean} True if value is a plain Object, otherwise false
|
|
2091
|
+
*/
|
|
2092
|
+
function isPlainObject(val) {
|
|
2093
|
+
if (toString.call(val) !== '[object Object]') {
|
|
2094
|
+
return false;
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
var prototype = Object.getPrototypeOf(val);
|
|
2098
|
+
return prototype === null || prototype === Object.prototype;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
/**
|
|
2102
|
+
* Determine if a value is a Date
|
|
2103
|
+
*
|
|
2104
|
+
* @param {Object} val The value to test
|
|
2105
|
+
* @returns {boolean} True if value is a Date, otherwise false
|
|
2106
|
+
*/
|
|
2107
|
+
function isDate(val) {
|
|
2108
|
+
return toString.call(val) === '[object Date]';
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
/**
|
|
2112
|
+
* Determine if a value is a File
|
|
2113
|
+
*
|
|
2114
|
+
* @param {Object} val The value to test
|
|
2115
|
+
* @returns {boolean} True if value is a File, otherwise false
|
|
2116
|
+
*/
|
|
2117
|
+
function isFile(val) {
|
|
2118
|
+
return toString.call(val) === '[object File]';
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
/**
|
|
2122
|
+
* Determine if a value is a Blob
|
|
2123
|
+
*
|
|
2124
|
+
* @param {Object} val The value to test
|
|
2125
|
+
* @returns {boolean} True if value is a Blob, otherwise false
|
|
2126
|
+
*/
|
|
2127
|
+
function isBlob(val) {
|
|
2128
|
+
return toString.call(val) === '[object Blob]';
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
/**
|
|
2132
|
+
* Determine if a value is a Function
|
|
2133
|
+
*
|
|
2134
|
+
* @param {Object} val The value to test
|
|
2135
|
+
* @returns {boolean} True if value is a Function, otherwise false
|
|
2136
|
+
*/
|
|
2137
|
+
function isFunction(val) {
|
|
2138
|
+
return toString.call(val) === '[object Function]';
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
/**
|
|
2142
|
+
* Determine if a value is a Stream
|
|
2143
|
+
*
|
|
2144
|
+
* @param {Object} val The value to test
|
|
2145
|
+
* @returns {boolean} True if value is a Stream, otherwise false
|
|
2146
|
+
*/
|
|
2147
|
+
function isStream(val) {
|
|
2148
|
+
return isObject(val) && isFunction(val.pipe);
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
/**
|
|
2152
|
+
* Determine if a value is a URLSearchParams object
|
|
2153
|
+
*
|
|
2154
|
+
* @param {Object} val The value to test
|
|
2155
|
+
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
2156
|
+
*/
|
|
2157
|
+
function isURLSearchParams(val) {
|
|
2158
|
+
return toString.call(val) === '[object URLSearchParams]';
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
/**
|
|
2162
|
+
* Trim excess whitespace off the beginning and end of a string
|
|
2163
|
+
*
|
|
2164
|
+
* @param {String} str The String to trim
|
|
2165
|
+
* @returns {String} The String freed of excess whitespace
|
|
2166
|
+
*/
|
|
2167
|
+
function trim(str) {
|
|
2168
|
+
return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* Determine if we're running in a standard browser environment
|
|
2173
|
+
*
|
|
2174
|
+
* This allows axios to run in a web worker, and react-native.
|
|
2175
|
+
* Both environments support XMLHttpRequest, but not fully standard globals.
|
|
2176
|
+
*
|
|
2177
|
+
* web workers:
|
|
2178
|
+
* typeof window -> undefined
|
|
2179
|
+
* typeof document -> undefined
|
|
2180
|
+
*
|
|
2181
|
+
* react-native:
|
|
2182
|
+
* navigator.product -> 'ReactNative'
|
|
2183
|
+
* nativescript
|
|
2184
|
+
* navigator.product -> 'NativeScript' or 'NS'
|
|
2185
|
+
*/
|
|
2186
|
+
function isStandardBrowserEnv() {
|
|
2187
|
+
if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
|
|
2188
|
+
navigator.product === 'NativeScript' ||
|
|
2189
|
+
navigator.product === 'NS')) {
|
|
2190
|
+
return false;
|
|
2191
|
+
}
|
|
2192
|
+
return (
|
|
2193
|
+
typeof window !== 'undefined' &&
|
|
2194
|
+
typeof document !== 'undefined'
|
|
2195
|
+
);
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
/**
|
|
2199
|
+
* Iterate over an Array or an Object invoking a function for each item.
|
|
2200
|
+
*
|
|
2201
|
+
* If `obj` is an Array callback will be called passing
|
|
2202
|
+
* the value, index, and complete array for each item.
|
|
2203
|
+
*
|
|
2204
|
+
* If 'obj' is an Object callback will be called passing
|
|
2205
|
+
* the value, key, and complete object for each property.
|
|
2206
|
+
*
|
|
2207
|
+
* @param {Object|Array} obj The object to iterate
|
|
2208
|
+
* @param {Function} fn The callback to invoke for each item
|
|
2209
|
+
*/
|
|
2210
|
+
function forEach(obj, fn) {
|
|
2211
|
+
// Don't bother if no value provided
|
|
2212
|
+
if (obj === null || typeof obj === 'undefined') {
|
|
2213
|
+
return;
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
// Force an array if not already something iterable
|
|
2217
|
+
if (typeof obj !== 'object') {
|
|
2218
|
+
/*eslint no-param-reassign:0*/
|
|
2219
|
+
obj = [obj];
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
if (isArray(obj)) {
|
|
2223
|
+
// Iterate over array values
|
|
2224
|
+
for (var i = 0, l = obj.length; i < l; i++) {
|
|
2225
|
+
fn.call(null, obj[i], i, obj);
|
|
2226
|
+
}
|
|
2227
|
+
} else {
|
|
2228
|
+
// Iterate over object keys
|
|
2229
|
+
for (var key in obj) {
|
|
2230
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
2231
|
+
fn.call(null, obj[key], key, obj);
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
/**
|
|
2238
|
+
* Accepts varargs expecting each argument to be an object, then
|
|
2239
|
+
* immutably merges the properties of each object and returns result.
|
|
2240
|
+
*
|
|
2241
|
+
* When multiple objects contain the same key the later object in
|
|
2242
|
+
* the arguments list will take precedence.
|
|
2243
|
+
*
|
|
2244
|
+
* Example:
|
|
2245
|
+
*
|
|
2246
|
+
* ```js
|
|
2247
|
+
* var result = merge({foo: 123}, {foo: 456});
|
|
2248
|
+
* console.log(result.foo); // outputs 456
|
|
2249
|
+
* ```
|
|
2250
|
+
*
|
|
2251
|
+
* @param {Object} obj1 Object to merge
|
|
2252
|
+
* @returns {Object} Result of all merge properties
|
|
2253
|
+
*/
|
|
2254
|
+
function merge(/* obj1, obj2, obj3, ... */) {
|
|
2255
|
+
var result = {};
|
|
2256
|
+
function assignValue(val, key) {
|
|
2257
|
+
if (isPlainObject(result[key]) && isPlainObject(val)) {
|
|
2258
|
+
result[key] = merge(result[key], val);
|
|
2259
|
+
} else if (isPlainObject(val)) {
|
|
2260
|
+
result[key] = merge({}, val);
|
|
2261
|
+
} else if (isArray(val)) {
|
|
2262
|
+
result[key] = val.slice();
|
|
2263
|
+
} else {
|
|
2264
|
+
result[key] = val;
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
2269
|
+
forEach(arguments[i], assignValue);
|
|
2270
|
+
}
|
|
2271
|
+
return result;
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
/**
|
|
2275
|
+
* Extends object a by mutably adding to it the properties of object b.
|
|
2276
|
+
*
|
|
2277
|
+
* @param {Object} a The object to be extended
|
|
2278
|
+
* @param {Object} b The object to copy properties from
|
|
2279
|
+
* @param {Object} thisArg The object to bind function to
|
|
2280
|
+
* @return {Object} The resulting value of object a
|
|
2281
|
+
*/
|
|
2282
|
+
function extend(a, b, thisArg) {
|
|
2283
|
+
forEach(b, function assignValue(val, key) {
|
|
2284
|
+
if (thisArg && typeof val === 'function') {
|
|
2285
|
+
a[key] = bind(val, thisArg);
|
|
2286
|
+
} else {
|
|
2287
|
+
a[key] = val;
|
|
2288
|
+
}
|
|
2289
|
+
});
|
|
2290
|
+
return a;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
/**
|
|
2294
|
+
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
|
2295
|
+
*
|
|
2296
|
+
* @param {string} content with BOM
|
|
2297
|
+
* @return {string} content value without BOM
|
|
2298
|
+
*/
|
|
2299
|
+
function stripBOM(content) {
|
|
2300
|
+
if (content.charCodeAt(0) === 0xFEFF) {
|
|
2301
|
+
content = content.slice(1);
|
|
2302
|
+
}
|
|
2303
|
+
return content;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
module.exports = {
|
|
2307
|
+
isArray: isArray,
|
|
2308
|
+
isArrayBuffer: isArrayBuffer,
|
|
2309
|
+
isBuffer: isBuffer,
|
|
2310
|
+
isFormData: isFormData,
|
|
2311
|
+
isArrayBufferView: isArrayBufferView,
|
|
2312
|
+
isString: isString,
|
|
2313
|
+
isNumber: isNumber,
|
|
2314
|
+
isObject: isObject,
|
|
2315
|
+
isPlainObject: isPlainObject,
|
|
2316
|
+
isUndefined: isUndefined,
|
|
2317
|
+
isDate: isDate,
|
|
2318
|
+
isFile: isFile,
|
|
2319
|
+
isBlob: isBlob,
|
|
2320
|
+
isFunction: isFunction,
|
|
2321
|
+
isStream: isStream,
|
|
2322
|
+
isURLSearchParams: isURLSearchParams,
|
|
2323
|
+
isStandardBrowserEnv: isStandardBrowserEnv,
|
|
2324
|
+
forEach: forEach,
|
|
2325
|
+
merge: merge,
|
|
2326
|
+
extend: extend,
|
|
2327
|
+
trim: trim,
|
|
2328
|
+
stripBOM: stripBOM
|
|
2329
|
+
};
|
|
2330
|
+
|
|
2331
|
+
|
|
2332
|
+
/***/ }),
|
|
2333
|
+
|
|
2334
|
+
/***/ "c8af":
|
|
2335
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2336
|
+
|
|
2337
|
+
"use strict";
|
|
2338
|
+
|
|
2339
|
+
|
|
2340
|
+
var utils = __webpack_require__("c532");
|
|
2341
|
+
|
|
2342
|
+
module.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
2343
|
+
utils.forEach(headers, function processHeader(value, name) {
|
|
2344
|
+
if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
|
|
2345
|
+
headers[normalizedName] = value;
|
|
2346
|
+
delete headers[name];
|
|
2347
|
+
}
|
|
2348
|
+
});
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
/***/ }),
|
|
2353
|
+
|
|
2354
|
+
/***/ "cafa":
|
|
2355
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2356
|
+
|
|
2357
|
+
"use strict";
|
|
2358
|
+
|
|
2359
|
+
|
|
2360
|
+
module.exports = {
|
|
2361
|
+
silentJSONParsing: true,
|
|
2362
|
+
forcedJSONParsing: true,
|
|
2363
|
+
clarifyTimeoutError: false
|
|
2364
|
+
};
|
|
2365
|
+
|
|
2366
|
+
|
|
2367
|
+
/***/ }),
|
|
2368
|
+
|
|
2369
|
+
/***/ "cee4":
|
|
2370
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2371
|
+
|
|
2372
|
+
"use strict";
|
|
2373
|
+
|
|
2374
|
+
|
|
2375
|
+
var utils = __webpack_require__("c532");
|
|
2376
|
+
var bind = __webpack_require__("1d2b");
|
|
2377
|
+
var Axios = __webpack_require__("0a06");
|
|
2378
|
+
var mergeConfig = __webpack_require__("4a7b");
|
|
2379
|
+
var defaults = __webpack_require__("4c3d");
|
|
2380
|
+
|
|
2381
|
+
/**
|
|
2382
|
+
* Create an instance of Axios
|
|
2383
|
+
*
|
|
2384
|
+
* @param {Object} defaultConfig The default config for the instance
|
|
2385
|
+
* @return {Axios} A new instance of Axios
|
|
2386
|
+
*/
|
|
2387
|
+
function createInstance(defaultConfig) {
|
|
2388
|
+
var context = new Axios(defaultConfig);
|
|
2389
|
+
var instance = bind(Axios.prototype.request, context);
|
|
2390
|
+
|
|
2391
|
+
// Copy axios.prototype to instance
|
|
2392
|
+
utils.extend(instance, Axios.prototype, context);
|
|
2393
|
+
|
|
2394
|
+
// Copy context to instance
|
|
2395
|
+
utils.extend(instance, context);
|
|
2396
|
+
|
|
2397
|
+
// Factory for creating new instances
|
|
2398
|
+
instance.create = function create(instanceConfig) {
|
|
2399
|
+
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
2400
|
+
};
|
|
2401
|
+
|
|
2402
|
+
return instance;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
// Create the default instance to be exported
|
|
2406
|
+
var axios = createInstance(defaults);
|
|
2407
|
+
|
|
2408
|
+
// Expose Axios class to allow class inheritance
|
|
2409
|
+
axios.Axios = Axios;
|
|
2410
|
+
|
|
2411
|
+
// Expose Cancel & CancelToken
|
|
2412
|
+
axios.Cancel = __webpack_require__("7a77");
|
|
2413
|
+
axios.CancelToken = __webpack_require__("8df4");
|
|
2414
|
+
axios.isCancel = __webpack_require__("2e67");
|
|
2415
|
+
axios.VERSION = __webpack_require__("5cce").version;
|
|
2416
|
+
|
|
2417
|
+
// Expose all/spread
|
|
2418
|
+
axios.all = function all(promises) {
|
|
2419
|
+
return Promise.all(promises);
|
|
2420
|
+
};
|
|
2421
|
+
axios.spread = __webpack_require__("0df6");
|
|
2422
|
+
|
|
2423
|
+
// Expose isAxiosError
|
|
2424
|
+
axios.isAxiosError = __webpack_require__("5f02");
|
|
2425
|
+
|
|
2426
|
+
module.exports = axios;
|
|
2427
|
+
|
|
2428
|
+
// Allow use of default import syntax in TypeScript
|
|
2429
|
+
module.exports.default = axios;
|
|
2430
|
+
|
|
2431
|
+
|
|
2432
|
+
/***/ }),
|
|
2433
|
+
|
|
2434
|
+
/***/ "d925":
|
|
2435
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2436
|
+
|
|
2437
|
+
"use strict";
|
|
2438
|
+
|
|
2439
|
+
|
|
2440
|
+
/**
|
|
2441
|
+
* Determines whether the specified URL is absolute
|
|
2442
|
+
*
|
|
2443
|
+
* @param {string} url The URL to test
|
|
2444
|
+
* @returns {boolean} True if the specified URL is absolute, otherwise false
|
|
2445
|
+
*/
|
|
2446
|
+
module.exports = function isAbsoluteURL(url) {
|
|
2447
|
+
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
2448
|
+
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
2449
|
+
// by any combination of letters, digits, plus, period, or hyphen.
|
|
2450
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
2451
|
+
};
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
/***/ }),
|
|
2455
|
+
|
|
2456
|
+
/***/ "db90":
|
|
2457
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2458
|
+
|
|
2459
|
+
"use strict";
|
|
2460
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _iterableToArray; });
|
|
2461
|
+
function _iterableToArray(iter) {
|
|
2462
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
/***/ }),
|
|
2466
|
+
|
|
2467
|
+
/***/ "e683":
|
|
2468
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2469
|
+
|
|
2470
|
+
"use strict";
|
|
2471
|
+
|
|
2472
|
+
|
|
2473
|
+
/**
|
|
2474
|
+
* Creates a new URL by combining the specified URLs
|
|
2475
|
+
*
|
|
2476
|
+
* @param {string} baseURL The base URL
|
|
2477
|
+
* @param {string} relativeURL The relative URL
|
|
2478
|
+
* @returns {string} The combined URL
|
|
2479
|
+
*/
|
|
2480
|
+
module.exports = function combineURLs(baseURL, relativeURL) {
|
|
2481
|
+
return relativeURL
|
|
2482
|
+
? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
|
|
2483
|
+
: baseURL;
|
|
2484
|
+
};
|
|
2485
|
+
|
|
2486
|
+
|
|
2487
|
+
/***/ }),
|
|
2488
|
+
|
|
2489
|
+
/***/ "f6b4":
|
|
2490
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2491
|
+
|
|
2492
|
+
"use strict";
|
|
2493
|
+
|
|
2494
|
+
|
|
2495
|
+
var utils = __webpack_require__("c532");
|
|
2496
|
+
|
|
2497
|
+
function InterceptorManager() {
|
|
2498
|
+
this.handlers = [];
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
/**
|
|
2502
|
+
* Add a new interceptor to the stack
|
|
2503
|
+
*
|
|
2504
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
2505
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
2506
|
+
*
|
|
2507
|
+
* @return {Number} An ID used to remove interceptor later
|
|
2508
|
+
*/
|
|
2509
|
+
InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
|
|
2510
|
+
this.handlers.push({
|
|
2511
|
+
fulfilled: fulfilled,
|
|
2512
|
+
rejected: rejected,
|
|
2513
|
+
synchronous: options ? options.synchronous : false,
|
|
2514
|
+
runWhen: options ? options.runWhen : null
|
|
2515
|
+
});
|
|
2516
|
+
return this.handlers.length - 1;
|
|
2517
|
+
};
|
|
2518
|
+
|
|
2519
|
+
/**
|
|
2520
|
+
* Remove an interceptor from the stack
|
|
2521
|
+
*
|
|
2522
|
+
* @param {Number} id The ID that was returned by `use`
|
|
2523
|
+
*/
|
|
2524
|
+
InterceptorManager.prototype.eject = function eject(id) {
|
|
2525
|
+
if (this.handlers[id]) {
|
|
2526
|
+
this.handlers[id] = null;
|
|
2527
|
+
}
|
|
2528
|
+
};
|
|
2529
|
+
|
|
2530
|
+
/**
|
|
2531
|
+
* Iterate over all the registered interceptors
|
|
2532
|
+
*
|
|
2533
|
+
* This method is particularly useful for skipping over any
|
|
2534
|
+
* interceptors that may have become `null` calling `eject`.
|
|
2535
|
+
*
|
|
2536
|
+
* @param {Function} fn The function to call for each interceptor
|
|
2537
|
+
*/
|
|
2538
|
+
InterceptorManager.prototype.forEach = function forEach(fn) {
|
|
2539
|
+
utils.forEach(this.handlers, function forEachHandler(h) {
|
|
2540
|
+
if (h !== null) {
|
|
2541
|
+
fn(h);
|
|
2542
|
+
}
|
|
2543
|
+
});
|
|
2544
|
+
};
|
|
2545
|
+
|
|
2546
|
+
module.exports = InterceptorManager;
|
|
2547
|
+
|
|
2548
|
+
|
|
2549
|
+
/***/ }),
|
|
2550
|
+
|
|
2551
|
+
/***/ "fb15":
|
|
2552
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2553
|
+
|
|
2554
|
+
"use strict";
|
|
2555
|
+
// ESM COMPAT FLAG
|
|
2556
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2557
|
+
|
|
2558
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
2559
|
+
// This file is imported into lib/wc client bundles.
|
|
2560
|
+
|
|
2561
|
+
if (typeof window !== 'undefined') {
|
|
2562
|
+
var currentScript = window.document.currentScript
|
|
2563
|
+
if (true) {
|
|
2564
|
+
var getCurrentScript = __webpack_require__("8875")
|
|
2565
|
+
currentScript = getCurrentScript()
|
|
2566
|
+
|
|
2567
|
+
// for backward compatibility, because previously we directly included the polyfill
|
|
2568
|
+
if (!('currentScript' in document)) {
|
|
2569
|
+
Object.defineProperty(document, 'currentScript', { get: getCurrentScript })
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
2574
|
+
if (src) {
|
|
2575
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
// Indicate to webpack that this file can be concatenated
|
|
2580
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
2581
|
+
|
|
2582
|
+
// EXTERNAL MODULE: ./src/index.js + 113 modules
|
|
2583
|
+
var src_0 = __webpack_require__("b635");
|
|
2584
|
+
|
|
2585
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
2586
|
+
|
|
2587
|
+
|
|
2588
|
+
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src_0["a" /* default */]);
|
|
2589
|
+
|
|
2590
|
+
|
|
2591
|
+
|
|
2592
|
+
/***/ })
|
|
2593
|
+
|
|
2594
|
+
}]);
|